@1024pix/epreuves-components 2.8.0 → 2.8.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-D1_fAhqr.js +18 -0
- package/dist/{ButtonTooltip.ce-B-f0Ebfa.js → ButtonTooltip.ce-BjlMn9Ez.js} +15 -15
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js +73 -0
- package/dist/{LLMMessage.ce-DAA_BQYY.js → LLMMessage.ce-B4Tg1zsn.js} +2 -2
- package/dist/{Loading.ce-BPbyGkTl.js → Loading.ce-S-dh_E78.js} +1 -1
- package/dist/{NavigationButton.ce-D7sjcUuO.js → NavigationButton.ce-DRBC3gta.js} +2 -2
- package/dist/{Retry-CTdYYKx5.js → Retry-CoaWKuPG.js} +1 -1
- package/dist/{_plugin-vue_export-helper-CGJjSxi7.js → _plugin-vue_export-helper-BPDEgOal.js} +1711 -1618
- package/dist/components/calcul-impact.ce.js.js +42 -42
- package/dist/components/capacity-calculation.ce.js.js +70 -70
- package/dist/components/clickable-image.ce.js.js +12 -12
- package/dist/components/complete-phrase.ce.js.js +36 -36
- package/dist/components/flip-cards.ce.js.js +1 -1
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +20 -20
- 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 +1 -1
- package/dist/components/mdp-classement.ce.js.js +219 -0
- package/dist/components/message-conversation.ce.js.js +11 -11
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +61 -61
- package/dist/components/phishing-notification.ce.js.js +85 -85
- package/dist/components/pix-anonymisation.ce.js.js +85 -97
- package/dist/components/pix-article.ce.js.js +18 -18
- package/dist/components/pix-carousel.ce.js.js +86 -86
- package/dist/components/pix-cursor.ce.js.js +50 -50
- package/dist/components/qcm-deepfake.ce.js.js +55 -55
- package/dist/components/quiz-stepper.ce.js.js +103 -111
- package/dist/components/select-conversation.ce.js.js +41 -41
- package/dist/components/template-mail.ce.js.js +55 -55
- package/dist/components/test-top-mdp.ce.js.js +58 -58
- package/dist/components/trouver-mdp-rs.ce.js.js +758 -0
- package/dist/{i18n-BkraEFZL.js → i18n-BuCPzaih.js} +9 -9
- package/dist/{i18n-lite-J-aj5pZd.js → i18n-lite-DBVKHY8J.js} +1 -1
- package/dist/{image-quiz.ce-BFISPs8m.js → image-quiz.ce-CXOFcx1H.js} +86 -95
- package/dist/index.js +6 -4
- package/dist/metadata.js +29 -21
- package/dist/schema.js +64 -42
- package/dist/{shadow-dom-DN_6ctXp.js → shadow-dom-By5w43W7.js} +1 -1
- package/dist/shuffled-B8VGTceh.js +19 -0
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { d as w, r as g, y as u, c as n, o as i, a as e, t as a,
|
|
2
|
-
import { a as
|
|
3
|
-
import { u as
|
|
4
|
-
import { r as F, q as
|
|
5
|
-
const
|
|
1
|
+
import { d as w, r as g, y as u, c as n, o as i, a as e, t as a, k as l, n as z, H as k, F as p, b as M, B as T, _ as D, f as C } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
|
+
import { a as j, i as _, b as L } from "../i18n-BuCPzaih.js";
|
|
3
|
+
import { u as S } from "../normalize-props-DtfVI0Xg.js";
|
|
4
|
+
import { r as F, q as B, t as f } from "../temporal.utils-CotrC6ao.js";
|
|
5
|
+
const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
|
|
6
6
|
"select-conversation": { "select-response-title": "Sélectionnez le message que {{username}} devrait envoyer :", "message-date": "{{messageDay, relativetime(numeric: auto)}} · {{messageTime, datetime(timeStyle: short)}}", "incoming-message-sr": "Message de {{username}} reçu {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "outgoing-message-sr": "Message envoyé par {{username}} {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "good-idea": "Bonne idée", "bad-idea": "Mauvaise idée" }
|
|
7
|
-
},
|
|
7
|
+
}, R = {}, H = {}, O = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M434.8%2070.1c14.3%2010.4%2017.5%2030.4%207.1%2044.7l-256%20352c-5.5%207.6-14%2012.3-23.4%2013.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l101.5%20101.5%20234-321.7c10.4-14.3%2030.4-17.5%2044.7-7.1z'/%3e%3c/svg%3e", V = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M256%2048a208%20208%200%201%201%200%20416%20208%20208%200%201%201%200-416zm0%20464a256%20256%200%201%200%200-512%20256%20256%200%201%200%200%20512zM167%20167c-9.4%209.4-9.4%2024.6%200%2033.9l55%2055-55%2055c-9.4%209.4-9.4%2024.6%200%2033.9s24.6%209.4%2033.9%200l55-55%2055%2055c9.4%209.4%2024.6%209.4%2033.9%200s9.4-24.6%200-33.9l-55-55%2055-55c9.4-9.4%209.4-24.6%200-33.9s-24.6-9.4-33.9%200l-55%2055-55-55c-9.4-9.4-24.6-9.4-33.9%200z'/%3e%3c/svg%3e", G = { class: "messages" }, P = { class: "message" }, X = {
|
|
8
8
|
class: "message__username",
|
|
9
9
|
"aria-hidden": "true"
|
|
10
|
-
},
|
|
10
|
+
}, J = { class: "sr-only" }, K = { class: "message__content" }, Q = {
|
|
11
11
|
class: "message__date",
|
|
12
12
|
"aria-hidden": "true"
|
|
13
|
-
},
|
|
13
|
+
}, U = ["aria-hidden"], W = {
|
|
14
14
|
class: "message__username",
|
|
15
15
|
"aria-hidden": "true"
|
|
16
|
-
},
|
|
16
|
+
}, Y = { class: "sr-only" }, Z = { class: "message__content-container" }, ee = { class: "message__content-title" }, se = ["src"], te = { class: "message__content" }, ae = {
|
|
17
17
|
class: "message__date",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
},
|
|
19
|
+
}, oe = { class: "response-select" }, ne = ["aria-level"], ie = { class: "response-select__choices" }, le = ["aria-disabled", "onClick"], re = { "aria-live": "polite" }, ce = ["innerHTML"], de = /* @__PURE__ */ w({
|
|
20
20
|
__name: "SelectConversation.ce",
|
|
21
21
|
props: {
|
|
22
22
|
titleLevel: { default: 2, type: Number },
|
|
@@ -25,7 +25,7 @@ const B = {}, I = {}, N = {}, q = {
|
|
|
25
25
|
responseChoices: { type: Array }
|
|
26
26
|
},
|
|
27
27
|
setup(s, { expose: v }) {
|
|
28
|
-
const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(),
|
|
28
|
+
const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(), r = u(() => F(s.incomingMessage.time)), m = u(() => r.value.day - B.Now.plainDateTimeISO().day);
|
|
29
29
|
function b(t) {
|
|
30
30
|
t.selected || (t.selected = !0, o.value = t);
|
|
31
31
|
}
|
|
@@ -36,69 +36,69 @@ const B = {}, I = {}, N = {}, q = {
|
|
|
36
36
|
}
|
|
37
37
|
return v({
|
|
38
38
|
reset: y
|
|
39
|
-
}), (t,
|
|
40
|
-
e("div",
|
|
41
|
-
e("div",
|
|
42
|
-
e("p",
|
|
43
|
-
e("p",
|
|
44
|
-
e("p",
|
|
45
|
-
e("p",
|
|
39
|
+
}), (t, ue) => (i(), n(p, null, [
|
|
40
|
+
e("div", G, [
|
|
41
|
+
e("div", P, [
|
|
42
|
+
e("p", X, a(s.incomingMessage.username), 1),
|
|
43
|
+
e("p", J, a(t.$t("select-conversation.incoming-message-sr", { username: s.incomingMessage.username, messageDay: m.value, messageTime: l(f)(r.value) })), 1),
|
|
44
|
+
e("p", K, a(s.incomingMessage.content), 1),
|
|
45
|
+
e("p", Q, a(t.$t("select-conversation.message-date", { messageDay: m.value, messageTime: l(f)(r.value) })), 1)
|
|
46
46
|
]),
|
|
47
47
|
e("div", {
|
|
48
48
|
class: z(["message message--outgoing", { "message--hidden": !o.value }]),
|
|
49
49
|
"aria-hidden": !o.value,
|
|
50
50
|
"aria-live": "polite"
|
|
51
51
|
}, [
|
|
52
|
-
e("p",
|
|
53
|
-
e("p",
|
|
54
|
-
e("div",
|
|
55
|
-
e("p",
|
|
52
|
+
e("p", W, a(s.username), 1),
|
|
53
|
+
e("p", Y, a(t.$t("select-conversation.outgoing-message-sr", { username: s.username, messageDay: 0, messageTime: /* @__PURE__ */ new Date() })), 1),
|
|
54
|
+
e("div", Z, [
|
|
55
|
+
e("p", ee, [
|
|
56
56
|
e("img", {
|
|
57
|
-
src: o.value?.goodIdea ?
|
|
57
|
+
src: o.value?.goodIdea ? l(O) : l(V),
|
|
58
58
|
alt: "",
|
|
59
59
|
width: "16"
|
|
60
|
-
}, null, 8,
|
|
60
|
+
}, null, 8, se),
|
|
61
61
|
k(" " + a(t.$t(`select-conversation.${o.value?.goodIdea ? "good-idea" : "bad-idea"}`)), 1)
|
|
62
62
|
]),
|
|
63
|
-
e("p",
|
|
63
|
+
e("p", te, a(o.value?.content ?? "no content"), 1)
|
|
64
64
|
]),
|
|
65
|
-
e("p",
|
|
66
|
-
], 10,
|
|
65
|
+
e("p", ae, a(t.$t("select-conversation.message-date", { messageDay: 0, messageTime: /* @__PURE__ */ new Date() })), 1)
|
|
66
|
+
], 10, U)
|
|
67
67
|
]),
|
|
68
|
-
e("div",
|
|
68
|
+
e("div", oe, [
|
|
69
69
|
e("div", {
|
|
70
70
|
role: "heading",
|
|
71
71
|
"aria-level": s.titleLevel,
|
|
72
72
|
class: "title"
|
|
73
|
-
}, a(t.$t("select-conversation.select-response-title", { username: s.username })), 9,
|
|
74
|
-
e("div",
|
|
75
|
-
(i(!0), n(p, null, M(d.value, (
|
|
73
|
+
}, a(t.$t("select-conversation.select-response-title", { username: s.username })), 9, ne),
|
|
74
|
+
e("div", ie, [
|
|
75
|
+
(i(!0), n(p, null, M(d.value, (c, x) => (i(), n("button", {
|
|
76
76
|
key: x,
|
|
77
77
|
type: "button",
|
|
78
78
|
class: "response-select__choice",
|
|
79
|
-
"aria-disabled":
|
|
80
|
-
onClick: (
|
|
81
|
-
}, a(
|
|
79
|
+
"aria-disabled": c.selected,
|
|
80
|
+
onClick: (pe) => b(c)
|
|
81
|
+
}, a(c.content), 9, le))), 128))
|
|
82
82
|
]),
|
|
83
|
-
e("div",
|
|
83
|
+
e("div", re, [
|
|
84
84
|
o.value ? (i(), n("p", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "response-select__feedback",
|
|
87
87
|
innerHTML: o.value.feedback
|
|
88
|
-
}, null, 8,
|
|
88
|
+
}, null, 8, ce)) : T("", !0)
|
|
89
89
|
])
|
|
90
90
|
])
|
|
91
91
|
], 64));
|
|
92
92
|
}
|
|
93
|
-
}),
|
|
94
|
-
|
|
95
|
-
const h = C(
|
|
93
|
+
}), me = "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}.messages,.response-select{--primary-font-size: .875rem;--secondary-font-size: .75rem}*{font-family:Roboto,sans-serif;color:#122647;line-height:normal}.messages{display:flex;flex-direction:column;gap:8px;padding:16px}.message{display:flex;flex-direction:column;align-items:start;gap:8px;margin-left:0;margin-right:16px}.message__username,.message__date{color:#5e6c84;font-size:var(--secondary-font-size);font-weight:400}.message__content{padding:16px 8px;border-radius:8px;background:#e8e8e8;font-size:var(--primary-font-size);font-weight:400}.message--hidden{visibility:hidden}.message--outgoing{align-self:end;align-items:end;margin-left:16px;margin-right:0}.message--outgoing .message__content-container{display:flex;flex-direction:column}.message--outgoing .message__content-title{color:#fff;font-size:var(--secondary-font-size);font-weight:700;border-radius:8px 8px 0 0;background:#452d9d;padding:4px 8px;align-self:start;display:flex;gap:4px;align-items:center}.message--outgoing .message__content-title>img{filter:invert(100%);max-height:16px;max-width:16px}.message--outgoing .message__content{border-top-left-radius:0;background:#cec3f4}.response-select{border-radius:16px;border:1px solid #cdd1d9;background-color:#fff;display:flex;padding:24px 16px;flex-direction:column;gap:16px;margin-top:25px}.response-select__choices{display:flex;gap:8px}.response-select__choice{border-style:none;border-radius:8px;background-color:#253858;padding:8px 16px;color:#fff;text-align:center;font-size:var(--primary-font-size);font-weight:400;line-height:18px;flex:1;cursor:pointer}.response-select__choice[aria-disabled=true]{background-color:#f4f5f7;color:#5e6c84;cursor:not-allowed}.response-select__feedback{border-radius:8px;background:#eaf1ff;padding:8px;color:#122647;font-size:var(--secondary-font-size);font-weight:400;line-height:20px}.title{font-family:Nunito,Roboto,sans-serif;font-size:var(--primary-font-size);font-weight:700}@media(max-width:640px){.messages,.response-select{--primary-font-size: .75rem;--secondary-font-size: .688rem}.response-select__choices{flex-direction:column}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", ge = /* @__PURE__ */ D(de, [["styles", [me]]]);
|
|
94
|
+
j(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": $, "./locales/en.json": I, "./locales/es-419.json": N, "./locales/es.json": E, "./locales/fr-BE.json": q, "./locales/fr.json": A, "./locales/it.json": R, "./locales/nl.json": H })).catch((s) => console.error(s));
|
|
95
|
+
const h = C(ge, {
|
|
96
96
|
configureApp(s) {
|
|
97
|
-
|
|
97
|
+
_.changeLanguage(document?.documentElement?.lang || navigator.language), s.use(L, { i18next: _ });
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
h.prototype.normalizeProps = (s) => ({
|
|
101
101
|
...s,
|
|
102
|
-
titleLevel:
|
|
102
|
+
titleLevel: S(s.titleLevel)
|
|
103
103
|
});
|
|
104
104
|
window.customElements.define("select-conversation", h);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { b as v, a as
|
|
2
|
-
import { c as p, o as m, a as e, d as
|
|
3
|
-
import { u as
|
|
4
|
-
import { r as D, t as
|
|
5
|
-
const z = {
|
|
1
|
+
import { b as v, a as _, u as b } from "../normalize-props-DtfVI0Xg.js";
|
|
2
|
+
import { c as p, o as m, a as e, d as x, j as C, v as w, k as o, t as i, B as y, E as k, H as M, F as L, _ as j, f as T } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
3
|
+
import { u as H, i as r } from "../i18n-lite-DBVKHY8J.js";
|
|
4
|
+
import { r as D, t as B } from "../temporal.utils-CotrC6ao.js";
|
|
5
|
+
const S = {}, z = {}, E = {}, V = {}, N = {}, A = {
|
|
6
6
|
"template-mail": { send: "Répondre", forward: "Transférer", menu: "menu", toMe: "À moi", details: "Afficher les détails", previousHeader: "Le {{ date }} à {{time}}, {{ name }}" }
|
|
7
|
-
},
|
|
7
|
+
}, Z = {}, q = {}, F = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.125%204.25H14.875M2.125%208.5H14.875M2.125%2012.75H14.875'%20stroke='black'%20stroke-width='1.77083'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", O = "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", P = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2744_7877)'%3e%3cpath%20d='M8.57141%202.85714L5.14284%206.28571L8.57141%209.71429'%20stroke='%23122647'%20stroke-width='1.14286'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.4286%2013.1429V10.8571C15.4286%209.64472%2014.9469%208.48196%2014.0896%207.62465C13.2323%206.76735%2012.0696%206.28571%2010.8571%206.28571H5.14285M4%202.85714L0.571426%206.28571L4%209.71429'%20stroke='%23122647'%20stroke-width='1.14286'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2744_7877'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", R = "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", $ = {
|
|
8
8
|
width: "41",
|
|
9
9
|
height: "41",
|
|
10
10
|
viewBox: "0 0 41 41",
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
-
},
|
|
12
|
+
}, G = ["fill"], I = {
|
|
13
13
|
__name: "UserSVG.ce",
|
|
14
14
|
props: {
|
|
15
15
|
color: {
|
|
@@ -18,21 +18,21 @@ const z = {
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
setup(t) {
|
|
21
|
-
return (a,
|
|
22
|
-
|
|
21
|
+
return (a, l) => (m(), p("svg", $, [
|
|
22
|
+
l[0] || (l[0] = e("path", {
|
|
23
23
|
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",
|
|
24
24
|
fill: "white"
|
|
25
25
|
}, null, -1)),
|
|
26
26
|
e("path", {
|
|
27
27
|
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",
|
|
28
28
|
fill: t.color
|
|
29
|
-
}, null, 8,
|
|
29
|
+
}, null, 8, G)
|
|
30
30
|
]));
|
|
31
31
|
}
|
|
32
|
-
},
|
|
32
|
+
}, U = { class: "nav" }, X = { "aria-disabled": "true" }, J = ["src"], K = { class: "sr-only-mobile" }, Q = { "aria-disabled": "true" }, W = ["src"], Y = { class: "sr-only-mobile" }, ee = { "aria-disabled": "true" }, te = ["src"], oe = { class: "sr-only" }, ie = { class: "main" }, ae = { class: "header" }, se = ["aria-level"], ne = { class: "date" }, le = { class: "expeditor" }, re = ["aria-level"], de = { class: "expeditor-mail" }, ce = { class: "recipient" }, pe = ["aria-label"], me = ["src"], ue = ["innerHTML"], ge = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "previous-message"
|
|
35
|
-
},
|
|
35
|
+
}, he = { class: "previous-message__header" }, fe = ["innerHTML"], ve = /* @__PURE__ */ x({
|
|
36
36
|
__name: "TemplateMail.ce",
|
|
37
37
|
props: {
|
|
38
38
|
titleLevel: { default: 2, type: Number },
|
|
@@ -45,17 +45,17 @@ const z = {
|
|
|
45
45
|
previousMail: { type: Object }
|
|
46
46
|
},
|
|
47
47
|
setup(t) {
|
|
48
|
-
const { t: a } =
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
const { t: a } = H(), l = C("content");
|
|
49
|
+
w(() => {
|
|
50
|
+
l.value.querySelectorAll("a").forEach((s) => {
|
|
51
51
|
s.addEventListener("click", (c) => {
|
|
52
52
|
c.preventDefault();
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
function d(n, s) {
|
|
57
|
-
const c = D(n), f =
|
|
58
|
-
return new Intl.DateTimeFormat(
|
|
57
|
+
const c = D(n), f = B(c);
|
|
58
|
+
return new Intl.DateTimeFormat(r.language, s).format(f);
|
|
59
59
|
}
|
|
60
60
|
const g = d(t.time, {
|
|
61
61
|
weekday: "short",
|
|
@@ -78,40 +78,40 @@ const z = {
|
|
|
78
78
|
return a("template-mail.previousHeader", { name: t.previousMail.name, time: s, date: n, interpolation: { escapeValue: !1 } });
|
|
79
79
|
}
|
|
80
80
|
return (n, s) => (m(), p(L, null, [
|
|
81
|
-
e("div",
|
|
82
|
-
e("button",
|
|
81
|
+
e("div", U, [
|
|
82
|
+
e("button", X, [
|
|
83
83
|
e("img", {
|
|
84
|
-
src:
|
|
84
|
+
src: o(O),
|
|
85
85
|
alt: ""
|
|
86
|
-
}, null, 8,
|
|
87
|
-
e("span",
|
|
86
|
+
}, null, 8, J),
|
|
87
|
+
e("span", K, i(o(a)("template-mail.send")), 1)
|
|
88
88
|
]),
|
|
89
|
-
e("button",
|
|
89
|
+
e("button", Q, [
|
|
90
90
|
e("img", {
|
|
91
91
|
class: "forward",
|
|
92
|
-
src:
|
|
92
|
+
src: o(P),
|
|
93
93
|
alt: ""
|
|
94
|
-
}, null, 8,
|
|
95
|
-
e("span",
|
|
94
|
+
}, null, 8, W),
|
|
95
|
+
e("span", Y, i(o(a)("template-mail.forward")), 1)
|
|
96
96
|
]),
|
|
97
|
-
e("button",
|
|
97
|
+
e("button", ee, [
|
|
98
98
|
e("img", {
|
|
99
|
-
src:
|
|
99
|
+
src: o(F),
|
|
100
100
|
alt: ""
|
|
101
|
-
}, null, 8,
|
|
102
|
-
e("span",
|
|
101
|
+
}, null, 8, te),
|
|
102
|
+
e("span", oe, i(o(a)("template-mail.menu")), 1)
|
|
103
103
|
])
|
|
104
104
|
]),
|
|
105
|
-
e("div",
|
|
106
|
-
e("div",
|
|
105
|
+
e("div", ie, [
|
|
106
|
+
e("div", ae, [
|
|
107
107
|
e("div", {
|
|
108
108
|
role: "heading",
|
|
109
109
|
"aria-level": t.titleLevel
|
|
110
|
-
},
|
|
111
|
-
e("p",
|
|
110
|
+
}, i(t.subject), 9, se),
|
|
111
|
+
e("p", ne, i(o(g)), 1)
|
|
112
112
|
]),
|
|
113
|
-
e("div",
|
|
114
|
-
k(
|
|
113
|
+
e("div", le, [
|
|
114
|
+
k(I, {
|
|
115
115
|
class: "avatar",
|
|
116
116
|
color: t.avatarColor
|
|
117
117
|
}, null, 8, ["color"]),
|
|
@@ -119,47 +119,47 @@ const z = {
|
|
|
119
119
|
role: "heading",
|
|
120
120
|
"aria-level": t.titleLevel + 1
|
|
121
121
|
}, [
|
|
122
|
-
M(
|
|
123
|
-
e("span",
|
|
124
|
-
], 8,
|
|
125
|
-
e("div",
|
|
126
|
-
e("p", null, o(
|
|
122
|
+
M(i(t.expeditor) + " ", 1),
|
|
123
|
+
e("span", de, " <" + i(t.mailAddress) + ">", 1)
|
|
124
|
+
], 8, re),
|
|
125
|
+
e("div", ce, [
|
|
126
|
+
e("p", null, i(o(a)("template-mail.toMe")), 1),
|
|
127
127
|
e("button", {
|
|
128
128
|
"aria-disabled": "true",
|
|
129
|
-
"aria-label":
|
|
129
|
+
"aria-label": o(a)("template-mail.details")
|
|
130
130
|
}, [
|
|
131
131
|
e("img", {
|
|
132
|
-
src:
|
|
132
|
+
src: o(R),
|
|
133
133
|
alt: ""
|
|
134
|
-
}, null, 8,
|
|
135
|
-
], 8,
|
|
134
|
+
}, null, 8, me)
|
|
135
|
+
], 8, pe)
|
|
136
136
|
])
|
|
137
137
|
]),
|
|
138
138
|
e("p", {
|
|
139
139
|
ref: "content",
|
|
140
140
|
class: "content",
|
|
141
141
|
innerHTML: t.content
|
|
142
|
-
}, null, 8,
|
|
143
|
-
t.previousMail ? (m(), p("div",
|
|
144
|
-
e("p",
|
|
142
|
+
}, null, 8, ue),
|
|
143
|
+
t.previousMail ? (m(), p("div", ge, [
|
|
144
|
+
e("p", he, i(h()), 1),
|
|
145
145
|
e("blockquote", {
|
|
146
146
|
innerHTML: t.previousMail.content
|
|
147
|
-
}, null, 8,
|
|
147
|
+
}, null, 8, fe)
|
|
148
148
|
])) : y("", !0)
|
|
149
149
|
])
|
|
150
150
|
], 64));
|
|
151
151
|
}
|
|
152
|
-
}),
|
|
153
|
-
|
|
154
|
-
const u = T(
|
|
152
|
+
}), _e = "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}button,p,div[role=heading]{font-family:Roboto,sans-serif;color:#253858}.nav{border-radius:8px 8px 0 0;padding:12px 16px;display:flex;gap:8px;background:#fff;border-right:1px solid #cdd1d9;border-top:1px solid #cdd1d9;border-left:1px solid #cdd1d9}.nav button{display:flex;gap:8px;align-items:center;cursor:not-allowed;padding:4px 16px;border:1px solid #cdd1d9;background:#fff;border-radius:8px;color:#122647;font-size:.875rem;font-weight:700}.nav button:last-child{margin-left:auto}.nav .forward{transform:scaleX(-1)}.main{border-radius:0 0 8px 8px;border-right:1px solid #cdd1d9;border-bottom:1px solid #cdd1d9;border-left:1px solid #cdd1d9;background:#f4f5f7;padding:24px 16px}.header{display:flex;justify-content:space-between}.header div[role]{font-family:open-sans,sans-serif;font-size:1.125rem}.header .date{color:#5e6c84;font-size:.75rem}.expeditor{display:grid;column-gap:4px;width:fit-content;margin:12px 0;grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto)}.expeditor div[role]{font-weight:700}.expeditor-mail,.expeditor .recipient p{align-self:end;font-size:.75rem;color:#5e6c84;font-weight:400;word-break:break-word}.expeditor .recipient{display:flex}.expeditor .recipient button{border:none;background:transparent;display:flex;align-items:center;cursor:not-allowed}.expeditor .avatar{grid-row:1/span 2;margin-right:12px}.content{color:#122647;font-size:.875rem}.previous-message{font-size:.875rem;margin-top:24px}.previous-message__header{font-style:italic;font-size:.875rem;color:#5e6c84;margin-bottom:8px}.previous-message blockquote{border-left:1px solid #cdd1d9;margin-left:8px;padding-left:8px}.sr-only{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{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.date{display:none}}", be = /* @__PURE__ */ j(ve, [["styles", [_e]]]);
|
|
153
|
+
r.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": S, "./locales/en.json": z, "./locales/es-419.json": E, "./locales/es.json": V, "./locales/fr-BE.json": N, "./locales/fr.json": A, "./locales/it.json": Z, "./locales/nl.json": q }));
|
|
154
|
+
const u = T(be, {
|
|
155
155
|
configureApp(t) {
|
|
156
|
-
|
|
156
|
+
r.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(r);
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
u.prototype.normalizeProps = (t) => ({
|
|
160
160
|
...t,
|
|
161
|
-
titleLevel:
|
|
162
|
-
avatarColor:
|
|
161
|
+
titleLevel: b(t.titleLevel),
|
|
162
|
+
avatarColor: _(t.avatarColor),
|
|
163
163
|
previousMail: v(t.previousMail)
|
|
164
164
|
});
|
|
165
165
|
window.customElements.define("template-mail", u);
|
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { u as S, i as k } from "../i18n-lite-
|
|
3
|
-
const U = {
|
|
1
|
+
import { d as E, y as a, r as j, G as I, c as l, o as i, a as e, B as b, t as s, A as N, F as m, b as z, n as F, H as h, k as w, E as P, K as A, _ as H, f as R } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
|
+
import { u as S, i as k } from "../i18n-lite-DBVKHY8J.js";
|
|
3
|
+
const U = {}, G = {}, Z = {}, D = {}, K = {}, O = {
|
|
4
4
|
"test-top-mdp": { passwords: { title: "Top {{count}} des mots de passe en France", cta: "Cliquez sur un mot de passe pour le tester" }, loginForm: { title: "Connexion", login: "Identifiant", loginValue: "Ulysse", password: "Mot de passe", passwordPlaceholder: "Séléctionnez un mot de passe...", submit: "Tester", attemptsCount: "Nombre d’essais : {{count}}" }, feedback: { negative: { title: "Eh non !", content: "Mot de passe incorrect. Réessayez avec un autre mot de passe." }, positive: { title_one: "Vous avez trouvé le mot de passe d’Ulysse en un essai.", title_other: "Vous avez trouvé le mot de passe d’Ulysse en {{count}} essais.", content: `Les pirates ont des listes contenant les mots de passe les plus fréquents, tous les mots du dictionnaire, des prénoms.
|
|
5
5
|
Ils utilisent des programmes informatiques qui permettent de tester des millions de mots en quelques secondes : on appelle ça une attaque par dictionnaire.` } } }
|
|
6
|
-
},
|
|
6
|
+
}, J = {}, Q = {}, W = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2011.25V12.75M4.5%2015.75H13.5C13.8978%2015.75%2014.2794%2015.592%2014.5607%2015.3107C14.842%2015.0294%2015%2014.6478%2015%2014.25V9.75C15%209.35218%2014.842%208.97064%2014.5607%208.68934C14.2794%208.40804%2013.8978%208.25%2013.5%208.25H4.5C4.10218%208.25%203.72064%208.40804%203.43934%208.68934C3.15804%208.97064%203%209.35218%203%209.75V14.25C3%2014.6478%203.15804%2015.0294%203.43934%2015.3107C3.72064%2015.592%204.10218%2015.75%204.5%2015.75ZM12%208.25V5.25C12%204.45435%2011.6839%203.69129%2011.1213%203.12868C10.5587%202.56607%209.79565%202.25%209%202.25C8.20435%202.25%207.44129%202.56607%206.87868%203.12868C6.31607%203.69129%206%204.45435%206%205.25V8.25H12Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", X = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.5%207L9.5%2017L4.5%2012'%20stroke='%23007740'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Y = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.875%207.125L7.125%2016.875M7.125%207.125L16.875%2016.875'%20stroke='%23A94B0C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", ee = { class: "container" }, te = { class: "card" }, oe = ["arial-level"], se = ["onClick", "aria-disabled", "aria-selected"], ne = { class: "password" }, ae = { class: "card" }, le = ["arial-level"], ie = { class: "lock-icon" }, re = ["src"], de = { class: "form" }, ce = { class: "form__field" }, pe = { for: "login" }, ue = ["value"], fe = { class: "form__field" }, me = { for: "password" }, ge = ["value", "placeholder"], _e = ["src"], ve = ["aria-disabled"], xe = { class: "attempts-count" }, be = { class: "attempts-count__count" }, he = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "feedback",
|
|
9
9
|
"aria-live": "polite"
|
|
10
|
-
},
|
|
10
|
+
}, we = ["arial-level"], ke = { class: "feedback__content" }, ye = { key: 0 }, Ce = /* @__PURE__ */ E({
|
|
11
11
|
__name: "TestTopMdp.ce",
|
|
12
12
|
props: {
|
|
13
13
|
titleLevel: { type: Number },
|
|
14
14
|
passwords: { type: Array },
|
|
15
15
|
expectedPassword: { type: String }
|
|
16
16
|
},
|
|
17
|
-
setup(g, { expose:
|
|
18
|
-
const c = g, { t: p } = S(),
|
|
17
|
+
setup(g, { expose: V }) {
|
|
18
|
+
const c = g, { t: p } = S(), _ = a(() => c.titleLevel ?? 2), n = j(), d = j([]), v = a(() => d.value.at(-1)), x = a(() => c.passwords.map((t) => ({
|
|
19
19
|
password: t,
|
|
20
20
|
selected: t === n.value,
|
|
21
21
|
attempted: d.value.includes(t),
|
|
22
22
|
expected: t === c.expectedPassword
|
|
23
|
-
}))), y = a(() => d.value.length), u = a(() =>
|
|
24
|
-
function
|
|
23
|
+
}))), y = a(() => d.value.length), u = a(() => v.value !== void 0 && n.value === void 0), r = a(() => v.value === c.expectedPassword), M = a(() => r.value ? p("test-top-mdp.feedback.positive.title", { count: y.value }) : p("test-top-mdp.feedback.negative.title")), T = a(() => r.value ? p("test-top-mdp.feedback.positive.content") : p("test-top-mdp.feedback.negative.content"));
|
|
24
|
+
function L(t) {
|
|
25
25
|
r.value || t.attempted || (n.value = t.password);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function $() {
|
|
28
28
|
n.value && (d.value.push(n.value), n.value = void 0);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function B() {
|
|
31
31
|
n.value = void 0, d.value = [];
|
|
32
32
|
}
|
|
33
|
-
return
|
|
34
|
-
reset:
|
|
33
|
+
return V({
|
|
34
|
+
reset: B
|
|
35
35
|
}), (t, C) => {
|
|
36
|
-
const q =
|
|
36
|
+
const q = I("i18next");
|
|
37
37
|
return i(), l(m, null, [
|
|
38
|
-
e("div",
|
|
39
|
-
e("div",
|
|
38
|
+
e("div", ee, [
|
|
39
|
+
e("div", te, [
|
|
40
40
|
e("div", {
|
|
41
41
|
class: "title",
|
|
42
42
|
role: "heading",
|
|
43
|
-
"arial-level":
|
|
44
|
-
}, s(t.$t("test-top-mdp.passwords.title", { count:
|
|
43
|
+
"arial-level": _.value
|
|
44
|
+
}, s(t.$t("test-top-mdp.passwords.title", { count: x.value.length })), 9, oe),
|
|
45
45
|
e("p", null, s(t.$t("test-top-mdp.passwords.cta")), 1),
|
|
46
46
|
e("div", {
|
|
47
47
|
class: "passwords",
|
|
48
|
-
style:
|
|
48
|
+
style: N({ "--count-per-column": Math.round(x.value.length / 2) })
|
|
49
49
|
}, [
|
|
50
|
-
(i(!0), l(m, null,
|
|
50
|
+
(i(!0), l(m, null, z(x.value, (o, f) => (i(), l("button", {
|
|
51
51
|
key: o.password,
|
|
52
|
-
onClick: (
|
|
53
|
-
class:
|
|
52
|
+
onClick: (Fe) => L(o),
|
|
53
|
+
class: F({
|
|
54
54
|
selected: o.selected || o.attempted && o.expected,
|
|
55
55
|
disabled: o.attempted && !o.expected
|
|
56
56
|
}),
|
|
57
57
|
"aria-disabled": r.value || o.attempted,
|
|
58
58
|
"aria-selected": o.selected
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
e("span",
|
|
62
|
-
], 10,
|
|
60
|
+
h(" #" + s(f + 1) + " ", 1),
|
|
61
|
+
e("span", ne, s(o.password), 1)
|
|
62
|
+
], 10, se))), 128))
|
|
63
63
|
], 4)
|
|
64
64
|
]),
|
|
65
|
-
e("div",
|
|
65
|
+
e("div", ae, [
|
|
66
66
|
e("div", {
|
|
67
67
|
class: "title",
|
|
68
68
|
role: "heading",
|
|
69
|
-
"arial-level":
|
|
69
|
+
"arial-level": _.value
|
|
70
70
|
}, [
|
|
71
|
-
e("div",
|
|
71
|
+
e("div", ie, [
|
|
72
72
|
e("img", {
|
|
73
|
-
src: w(
|
|
73
|
+
src: w(W),
|
|
74
74
|
alt: ""
|
|
75
|
-
}, null, 8,
|
|
75
|
+
}, null, 8, re)
|
|
76
76
|
]),
|
|
77
|
-
|
|
78
|
-
], 8,
|
|
79
|
-
e("div",
|
|
80
|
-
e("div",
|
|
81
|
-
e("label",
|
|
77
|
+
h(" " + s(t.$t("test-top-mdp.loginForm.title")), 1)
|
|
78
|
+
], 8, le),
|
|
79
|
+
e("div", de, [
|
|
80
|
+
e("div", ce, [
|
|
81
|
+
e("label", pe, s(t.$t("test-top-mdp.loginForm.login")), 1),
|
|
82
82
|
e("input", {
|
|
83
83
|
id: "login",
|
|
84
84
|
type: "text",
|
|
85
85
|
value: t.$t("test-top-mdp.loginForm.loginValue"),
|
|
86
86
|
readonly: "",
|
|
87
87
|
tabIndex: "-1"
|
|
88
|
-
}, null, 8,
|
|
88
|
+
}, null, 8, ue)
|
|
89
89
|
]),
|
|
90
|
-
e("div",
|
|
91
|
-
e("label",
|
|
90
|
+
e("div", fe, [
|
|
91
|
+
e("label", me, s(t.$t("test-top-mdp.loginForm.password")), 1),
|
|
92
92
|
e("input", {
|
|
93
93
|
id: "password",
|
|
94
94
|
type: "text",
|
|
95
|
-
value: n.value ??
|
|
95
|
+
value: n.value ?? v.value,
|
|
96
96
|
readonly: "",
|
|
97
97
|
placeholder: t.$t("test-top-mdp.loginForm.passwordPlaceholder"),
|
|
98
98
|
tabIndex: "-1",
|
|
99
|
-
class:
|
|
100
|
-
}, null, 10,
|
|
99
|
+
class: F({ right: u.value && r.value, wrong: u.value && !r.value })
|
|
100
|
+
}, null, 10, ge),
|
|
101
101
|
u.value ? (i(), l("img", {
|
|
102
102
|
key: 0,
|
|
103
|
-
src: r.value ? w(
|
|
103
|
+
src: r.value ? w(X) : w(Y),
|
|
104
104
|
alt: "",
|
|
105
105
|
class: "form__field-icon"
|
|
106
|
-
}, null, 8,
|
|
106
|
+
}, null, 8, _e)) : b("", !0)
|
|
107
107
|
]),
|
|
108
108
|
e("button", {
|
|
109
109
|
"aria-disabled": !n.value,
|
|
110
|
-
onClick: C[0] || (C[0] = (o) =>
|
|
111
|
-
}, s(t.$t("test-top-mdp.loginForm.submit")), 9,
|
|
112
|
-
e("p",
|
|
113
|
-
|
|
110
|
+
onClick: C[0] || (C[0] = (o) => $())
|
|
111
|
+
}, s(t.$t("test-top-mdp.loginForm.submit")), 9, ve),
|
|
112
|
+
e("p", xe, [
|
|
113
|
+
P(q, { name: "test-top-mdp.loginForm.attemptsCount" }, {
|
|
114
114
|
count: A(() => [
|
|
115
|
-
e("span",
|
|
115
|
+
e("span", be, s(y.value), 1)
|
|
116
116
|
]),
|
|
117
117
|
_: 1
|
|
118
118
|
})
|
|
@@ -120,26 +120,26 @@ Ils utilisent des programmes informatiques qui permettent de tester des millions
|
|
|
120
120
|
])
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
|
-
u.value ? (i(), l("div",
|
|
123
|
+
u.value ? (i(), l("div", he, [
|
|
124
124
|
e("div", {
|
|
125
125
|
class: "feedback__title",
|
|
126
126
|
role: "heading",
|
|
127
|
-
"arial-level":
|
|
128
|
-
}, s(
|
|
129
|
-
e("div",
|
|
130
|
-
(i(!0), l(m, null,
|
|
127
|
+
"arial-level": _.value + 1
|
|
128
|
+
}, s(M.value), 9, we),
|
|
129
|
+
e("div", ke, [
|
|
130
|
+
(i(!0), l(m, null, z(T.value.split(`
|
|
131
131
|
`), (o, f) => (i(), l(m, { key: f }, [
|
|
132
|
-
f !== 0 ? (i(), l("br",
|
|
133
|
-
|
|
132
|
+
f !== 0 ? (i(), l("br", ye)) : b("", !0),
|
|
133
|
+
h(" " + s(o), 1)
|
|
134
134
|
], 64))), 128))
|
|
135
135
|
])
|
|
136
136
|
])) : b("", !0)
|
|
137
137
|
], 64);
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
}),
|
|
141
|
-
k.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/
|
|
142
|
-
window.customElements.define("test-top-mdp", R(
|
|
140
|
+
}), je = "*{font-family:Roboto,sans-serif;color:#5e6c84;box-sizing:border-box;font-size:14px}p{margin:0}.container{display:flex;flex-direction:row;gap:16px}.card{background:#fff;border-radius:16px;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset;padding:24px;width:50%}.title{color:#122647;font-family:Nunito,Roboto,sans-serif;font-size:20px;font-weight:700;display:flex;align-items:center;gap:8px}.passwords{margin-top:16px;display:grid;grid-template-rows:repeat(var(--count-per-column, 5),1fr);grid-auto-flow:column;gap:8px}.passwords>button{display:flex;padding:8px 16px;gap:4px;border-radius:8px;background-color:#eaf1ff;border-style:none;cursor:pointer;height:44px;align-items:center;color:#122647}.passwords>button.selected{background-color:#3b82f6;color:#fff}.passwords>button.disabled{background-color:#f4f5f7;color:#5e6c84}.passwords>button[aria-disabled=true]{cursor:not-allowed}.lock-icon{border-radius:50%;background-color:#2c75ff;aspect-ratio:1;width:34px;display:flex;align-items:center;justify-content:center}.password{font-weight:700;line-height:20px;color:inherit}.form{margin-top:24px;display:flex;gap:16px;flex-direction:column}.form__field{display:flex;gap:8px;flex-direction:column;position:relative}.form__field-icon{aspect-ratio:1;width:24px;position:absolute;left:12px;bottom:12px}.form input{display:flex;height:50px;padding:12px 16px;align-items:center;border-radius:10px;border:1px solid #cdd1d9;background-color:#f4f5f7;font-size:16px;pointer-events:none;color:#122647}.form input.right{padding-left:40px;border-color:#00a85a;background-color:#e6f6ef;color:#007740}.form input.wrong{padding-left:40px;border-color:#d73328;background-color:#fbebea;color:#99241c}.form label{pointer-events:none}.form button{display:flex;height:50px;padding:12px 16px;align-items:center;border-radius:10px;background-color:#122647;font-size:16px;font-weight:700;color:#fff;justify-content:center;cursor:pointer;border-style:none}.form button[aria-disabled=true]{background-color:#cdd1d9;color:#5e6c84;cursor:not-allowed}.attempts-count{text-align:center}.attempts-count__count{color:#122647;font-weight:700}.feedback{margin-top:24px;display:flex;flex-direction:column}.feedback__title{color:#fff;padding:4px 8px;border-radius:8px 8px 0 0;background-color:#1f53b5;font-weight:700;align-self:start;font-size:12px}.feedback__content{border-radius:0 8px 8px;background-color:#eaf1ff;color:#122647;padding:8px}@media only screen and (max-width:680px){.container{flex-direction:column}.card{width:100%}}", ze = /* @__PURE__ */ H(Ce, [["styles", [je]]]);
|
|
141
|
+
k.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": U, "./locales/en.json": G, "./locales/es-419.json": Z, "./locales/es.json": D, "./locales/fr-BE.json": K, "./locales/fr.json": O, "./locales/it.json": J, "./locales/nl.json": Q }));
|
|
142
|
+
window.customElements.define("test-top-mdp", R(ze, {
|
|
143
143
|
configureApp(g) {
|
|
144
144
|
k.changeLanguage(document?.documentElement?.lang || navigator.language), g.use(k);
|
|
145
145
|
}
|