@1024pix/epreuves-components 4.6.1 → 4.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button.ce-CsTDnAGh.js +31 -0
- package/dist/{ButtonTooltip.ce-Bo42SFAP.js → ButtonTooltip.ce-CUxXoH9n.js} +4 -4
- package/dist/{Icon.ce-Be0LymfA.js → Icon.ce-DqVOTSTE.js} +7 -7
- package/dist/{LLMMessage.ce-y0WmEj7m.js → LLMMessage.ce-BM9ikl_y.js} +3 -3
- package/dist/{NavigationButton.ce-B-c0m9H8.js → NavigationButton.ce-CIOKG2O0.js} +3 -3
- package/dist/{PixMailMessage.ce-CH6CVQ3H.js → PixMailMessage.ce-DUSt6eGF.js} +52 -52
- package/dist/{Popin.ce-CQtpIOkM.js → Popin.ce-OnxaZNvT.js} +3 -3
- package/dist/components/analyse-mails-phishing.ce.js.js +6 -6
- package/dist/components/autocompletion-mdp.ce.js.js +79 -79
- package/dist/components/button.ce.js.js +1 -1
- package/dist/components/calcul-impact.ce.js.js +34 -34
- package/dist/components/capacity-calculation.ce.js.js +20 -20
- package/dist/components/clickable-image.ce.js.js +18 -18
- package/dist/components/complete-phrase.ce.js.js +41 -41
- package/dist/components/flip-cards.ce.js.js +18 -18
- package/dist/components/generate-mdp.ce.js.js +23 -23
- package/dist/components/image-quiz.ce.js.js +1 -1
- package/dist/components/image-quizzes.ce.js.js +1 -1
- package/dist/components/llm-compare-messages.ce.js.js +2 -2
- package/dist/components/llm-messages.ce.js.js +1 -1
- package/dist/components/llm-prompt-select.ce.js.js +1 -1
- package/dist/components/mdp-classement.ce.js.js +13 -13
- package/dist/components/message-conversation.ce.js.js +2 -2
- package/dist/components/notification-antivirus.ce.js.js +62 -62
- package/dist/components/phishing-message.ce.js.js +81 -81
- package/dist/components/phishing-notification.ce.js.js +9 -9
- package/dist/components/pix-anonymisation.ce.js.js +72 -72
- package/dist/components/pix-article.ce.js.js +6 -6
- package/dist/components/pix-carousel.ce.js.js +16 -16
- package/dist/components/pix-combinaisons.ce.js.js +14 -14
- package/dist/components/pix-cursor.ce.js.js +28 -28
- package/dist/components/pix-mail-message.ce.js.js +1 -1
- package/dist/components/proteger-mail-spam.ce.js.js +6 -6
- package/dist/components/qcm-deepfake.ce.js.js +26 -26
- package/dist/components/quiz-stepper.ce.js.js +6 -6
- package/dist/components/template-mail.ce.js.js +1 -1
- package/dist/components/test-top-mdp.ce.js.js +3 -3
- package/dist/components/trouver-mdp-rs.ce.js.js +125 -125
- package/dist/components/usages-donnees.ce.js.js +30 -30
- package/dist/{image-quiz.ce-DGVVVaQN.js → image-quiz.ce-KliaBWpC.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Button.ce-Ccv3OLk2.js +0 -31
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as B, h as G, r as d, o as E, c as I, a as t, C as s, D as u, v as w, E as g, x as i, t as f, g as L, n as R, _ as z, d as N } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
2
|
import { u as P, i as h } from "../i18n-lite-WQsHAHqG.js";
|
|
3
3
|
import { p as $ } from "../shadow-dom-DSLDIcsa.js";
|
|
4
|
-
import { I as H, B as _ } from "../Icon.ce-
|
|
4
|
+
import { I as H, B as _ } from "../Icon.ce-DqVOTSTE.js";
|
|
5
5
|
import { I as m, M as F } from "../Modal.ce-DCTwYJKJ.js";
|
|
6
6
|
import { b as T } from "../normalize-props-DH0oPBss.js";
|
|
7
|
-
const q = {}, D = {}, A = {}, J = {
|
|
7
|
+
const q = {}, D = {}, A = {}, J = {}, S = {
|
|
8
8
|
"generate-mdp": { addPassword: "Ajouter un mot de passe", title: { label: "Titre", value: "La belle fripe" }, email: { label: "Adresse e-mail", value: "elio@pixmail.org" }, password: "Mot de passe", save: "Enregistrer", strength: "Fort", weak: "Faible", generatePassword: "Générer un mot de passe fort", feedback: { title: "Bravo !", content: "Grâce au gestionnaire de mots de passe, vous pouvez générer automatiquement des mots de passe forts." } }
|
|
9
|
-
},
|
|
9
|
+
}, U = {}, Q = {}, Z = "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='M8.99976%2011.25V12.75M4.49976%2015.75H13.4998C13.8976%2015.75%2014.2791%2015.592%2014.5604%2015.3107C14.8417%2015.0294%2014.9998%2014.6478%2014.9998%2014.25V9.75C14.9998%209.35218%2014.8417%208.97064%2014.5604%208.68934C14.2791%208.40804%2013.8976%208.25%2013.4998%208.25H4.49976C4.10193%208.25%203.7204%208.40804%203.4391%208.68934C3.15779%208.97064%202.99976%209.35218%202.99976%209.75V14.25C2.99976%2014.6478%203.15779%2015.0294%203.4391%2015.3107C3.7204%2015.592%204.10193%2015.75%204.49976%2015.75ZM11.9998%208.25V5.25C11.9998%204.45435%2011.6837%203.69129%2011.1211%203.12868C10.5585%202.56607%209.79541%202.25%208.99976%202.25C8.20411%202.25%207.44104%202.56607%206.87844%203.12868C6.31583%203.69129%205.99976%204.45435%205.99976%205.25V8.25H11.9998Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", K = "data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.562%2016.5C29.562%2019.0835%2028.7959%2021.609%2027.3606%2023.7571C25.9253%2025.9053%2023.8852%2027.5795%2021.4983%2028.5682C19.1115%2029.5568%2016.485%2029.8155%2013.9512%2029.3115C11.4173%2028.8075%209.08976%2027.5634%207.26294%2025.7366C5.43611%2023.9098%204.19203%2021.5822%203.68801%2019.0484C3.18399%2016.5145%203.44267%2013.8881%204.43134%2011.5012C5.42001%209.11434%207.09426%207.07425%209.24238%205.63893C11.3905%204.2036%2013.916%203.4375%2016.4995%203.4375C19.0419%203.43667%2021.5293%204.17778%2023.6566%205.56996C25.784%206.96214%2027.4588%208.94486%2028.4758%2011.275M29.562%207.5625L28.9089%2011.9281L24.7495%2011'%20stroke='white'%20stroke-width='3.09375'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.7495%2015.125V13.0625C13.7495%2012.3332%2014.0392%2011.6337%2014.555%2011.118C15.0707%2010.6022%2015.7702%2010.3125%2016.4995%2010.3125C17.2289%2010.3125%2017.9283%2010.6022%2018.4441%2011.118C18.9598%2011.6337%2019.2495%2012.3332%2019.2495%2013.0625V15.125M15.4683%2022.6875H17.5308C19.1436%2022.6875%2019.9508%2022.6875%2020.5049%2022.2613C20.6479%2022.1515%2020.776%2022.0234%2020.8858%2021.8804C21.312%2021.3249%2021.312%2020.5191%2021.312%2018.9062C21.312%2017.2934%2021.312%2016.4862%2020.8858%2015.9321C20.776%2015.7891%2020.6479%2015.661%2020.5049%2015.5513C19.9494%2015.125%2019.1436%2015.125%2017.5308%2015.125H15.4683C13.8554%2015.125%2013.0483%2015.125%2012.4941%2015.5513C12.3511%2015.661%2012.223%2015.7891%2012.1133%2015.9321C11.687%2016.4876%2011.687%2017.2934%2011.687%2018.9062C11.687%2020.5191%2011.687%2021.3263%2012.1133%2021.8804C12.223%2022.0234%2012.3511%2022.1515%2012.4941%2022.2613C13.0496%2022.6875%2013.8554%2022.6875%2015.4683%2022.6875Z'%20stroke='white'%20stroke-width='3.09375'%20stroke-linejoin='round'/%3e%3c/svg%3e", Y = { class: "wrapper" }, O = ["aria-level"], W = ["src"], X = { class: "password-field" }, ee = { class: "password-strength" }, te = {
|
|
10
10
|
"aria-live": "polite",
|
|
11
11
|
class: "password-strength__strengthness"
|
|
12
|
-
},
|
|
12
|
+
}, ae = { class: "sr-only" }, se = ["src"], oe = /* @__PURE__ */ B({
|
|
13
13
|
__name: "GenerateMdp.ce",
|
|
14
14
|
props: {
|
|
15
15
|
titleLevel: { default: 2, type: Number }
|
|
@@ -46,14 +46,14 @@ const q = {}, D = {}, A = {}, J = {
|
|
|
46
46
|
",2G+Gj<pk:fD",
|
|
47
47
|
"*D4W0asv+$:("
|
|
48
48
|
];
|
|
49
|
-
function
|
|
49
|
+
function j() {
|
|
50
50
|
const e = Math.floor(c.length * Math.random());
|
|
51
51
|
a.value = c[e];
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const M = L(() => c.includes(a.value) ? r("generate-mdp.strength") : r("generate-mdp.weak"));
|
|
54
54
|
return C({
|
|
55
55
|
reset: V
|
|
56
|
-
}), (e, o) => (E(), I("div",
|
|
56
|
+
}), (e, o) => (E(), I("div", Y, [
|
|
57
57
|
t("div", {
|
|
58
58
|
"aria-level": l.titleLevel,
|
|
59
59
|
class: "title",
|
|
@@ -62,14 +62,14 @@ const q = {}, D = {}, A = {}, J = {
|
|
|
62
62
|
s(H, { "background-color": "#2c75ff" }, {
|
|
63
63
|
default: u(() => [
|
|
64
64
|
t("img", {
|
|
65
|
-
src: w(
|
|
65
|
+
src: w(Z),
|
|
66
66
|
alt: ""
|
|
67
|
-
}, null, 8,
|
|
67
|
+
}, null, 8, W)
|
|
68
68
|
]),
|
|
69
69
|
_: 1
|
|
70
70
|
}),
|
|
71
71
|
g(" " + i(e.$t("generate-mdp.addPassword")), 1)
|
|
72
|
-
], 8,
|
|
72
|
+
], 8, O),
|
|
73
73
|
t("form", null, [
|
|
74
74
|
s(m, {
|
|
75
75
|
modelValue: b.value,
|
|
@@ -85,7 +85,7 @@ const q = {}, D = {}, A = {}, J = {
|
|
|
85
85
|
readonly: !0,
|
|
86
86
|
type: "text"
|
|
87
87
|
}, null, 8, ["modelValue", "label"]),
|
|
88
|
-
t("div",
|
|
88
|
+
t("div", X, [
|
|
89
89
|
s(m, {
|
|
90
90
|
modelValue: a.value,
|
|
91
91
|
"onUpdate:modelValue": o[2] || (o[2] = (n) => a.value = n),
|
|
@@ -94,10 +94,10 @@ const q = {}, D = {}, A = {}, J = {
|
|
|
94
94
|
class: "password",
|
|
95
95
|
type: "text"
|
|
96
96
|
}, null, 8, ["modelValue", "label"]),
|
|
97
|
-
t("div",
|
|
98
|
-
t("p",
|
|
99
|
-
t("span",
|
|
100
|
-
g(i(
|
|
97
|
+
t("div", ee, [
|
|
98
|
+
t("p", te, [
|
|
99
|
+
t("span", ae, i(e.$t("generate-mdp.password")) + " ", 1),
|
|
100
|
+
g(i(M.value), 1)
|
|
101
101
|
]),
|
|
102
102
|
t("div", {
|
|
103
103
|
class: f([{ "filled-strength": a.value !== "" }, "password-strength__step"]),
|
|
@@ -115,21 +115,21 @@ const q = {}, D = {}, A = {}, J = {
|
|
|
115
115
|
s(_, {
|
|
116
116
|
title: e.$t("generate-mdp.generatePassword"),
|
|
117
117
|
variant: "primary-bis",
|
|
118
|
-
onClick:
|
|
118
|
+
onClick: j
|
|
119
119
|
}, {
|
|
120
120
|
default: u(() => [
|
|
121
121
|
t("img", {
|
|
122
|
-
src: w(
|
|
122
|
+
src: w(K),
|
|
123
123
|
alt: ""
|
|
124
|
-
}, null, 8,
|
|
124
|
+
}, null, 8, se)
|
|
125
125
|
]),
|
|
126
126
|
_: 1
|
|
127
127
|
}, 8, ["title"])
|
|
128
128
|
]),
|
|
129
129
|
s(_, {
|
|
130
130
|
class: "send",
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
"is-disabled": !a.value,
|
|
132
|
+
onClick: y
|
|
133
133
|
}, {
|
|
134
134
|
default: u(() => [
|
|
135
135
|
g(i(e.$t("generate-mdp.save")), 1)
|
|
@@ -146,9 +146,9 @@ const q = {}, D = {}, A = {}, J = {
|
|
|
146
146
|
])
|
|
147
147
|
]));
|
|
148
148
|
}
|
|
149
|
-
}),
|
|
150
|
-
h.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": q, "./locales/en.json": D, "./locales/es.json": A, "./locales/
|
|
151
|
-
const x = N(
|
|
149
|
+
}), le = "*{--text-blue: #122647;--background-blue: #253858;font-family:Nunito,Roboto,sans-serif;font-size:14px;box-sizing:border-box}h1,h2,h3,h4,h5,h6{color:var(--text-blue);font-family:Nunito,sans-serif}h2{color:var(--text-blue);font-size:20px}p,a,span,li{color:var(--text-blue);font-family:Roboto,sans-serif}button{border-radius:8px;background:var(--background-blue);font-weight:700;font-size:16px}button:disabled{background:#c8cfd9}input{border-radius:10px;border:#cdd1d9;background:#f4f5f7}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}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,dialog{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}*{color:#253858}", ne = ".wrapper[data-v-cee41612]{padding:25px;border-radius:14px;position:relative;background:#fff;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset}[data-v-cee41612] label{margin-top:16px}.title[data-v-cee41612]{display:flex;align-items:center;gap:8px;font-size:1.25rem;font-weight:700}.password-field[data-v-cee41612]{display:grid;grid-template-columns:1fr 1fr 45px;gap:0 16px}.password-field .password-strength[data-v-cee41612]{grid-column:2/span 2;justify-self:end;display:flex;align-items:center;gap:8px}.password-field .password-strength__step[data-v-cee41612]{width:40px;height:5px;border-radius:5px;background:#c8cfd9}.password-field .password-strength__strengthness[data-v-cee41612]{color:#5e6c84;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400}.password-field .password-strength .filled-strength[data-v-cee41612]{background:#54c590}.password-field[data-v-cee41612] input{grid-column:1/span 2;grid-row:2}.password-field button[data-v-cee41612]{height:45px;width:45px;justify-content:center;display:flex}.send[data-v-cee41612]{display:block;margin:16px auto 0}@media screen and (max-width:576px){.password-field[data-v-cee41612]{display:grid;grid-template-columns:1fr 1fr 45px;grid-column:unset}.password-field[data-v-cee41612] .password{grid-row:unset}.password-field .password-strength[data-v-cee41612]{grid-column:unset;grid-row:3/span 2;justify-self:start;margin-top:8px}}", re = /* @__PURE__ */ z(oe, [["styles", [le, ne]], ["__scopeId", "data-v-cee41612"]]);
|
|
150
|
+
h.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": q, "./locales/en.json": D, "./locales/es-419.json": A, "./locales/es.json": J, "./locales/fr.json": S, "./locales/it.json": U, "./locales/nl.json": Q }));
|
|
151
|
+
const x = N(re, {
|
|
152
152
|
configureApp(l) {
|
|
153
153
|
h.changeLanguage(document?.documentElement?.lang || navigator.language), l.use(h);
|
|
154
154
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as g, _ as f, a as z, b as v, c as w, d, e as p, f as b, g as j, n as A } from "../image-quiz.ce-
|
|
1
|
+
import { I as g, _ as f, a as z, b as v, c as w, d, e as p, f as b, g as j, n as A } from "../image-quiz.ce-KliaBWpC.js";
|
|
2
2
|
import { b as q, r as E, w as h, o as l, c as y, e as I, f as k, m as B, F as Q, d as C } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
3
3
|
import { i as n } from "../i18n-lite-WQsHAHqG.js";
|
|
4
4
|
const F = /* @__PURE__ */ q({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as c, o as t, c as s, a as e, x as n, F as r, e as m, C as i, _ as p, d as g } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
-
import { L as l } from "../LLMMessage.ce-
|
|
2
|
+
import { L as l } from "../LLMMessage.ce-BM9ikl_y.js";
|
|
3
3
|
import { p as u } from "../shadow-dom-DSLDIcsa.js";
|
|
4
4
|
const f = {
|
|
5
5
|
class: "header",
|
|
@@ -59,5 +59,5 @@ const f = {
|
|
|
59
59
|
])
|
|
60
60
|
], 64));
|
|
61
61
|
}
|
|
62
|
-
}), _ = '*{box-sizing:border-box}:host{display:grid;gap:8px;grid-template-columns:1fr 1fr;grid-template-rows:auto auto}:host:after{content:"";grid-row:2;grid-column:1;border-radius:8px;border:1px solid #
|
|
62
|
+
}), _ = '*{box-sizing:border-box}:host{display:grid;gap:8px;grid-template-columns:1fr 1fr;grid-template-rows:auto auto}:host:after{content:"";grid-row:2;grid-column:1;border-radius:8px;border:1px solid #452d9d;background:#fff}:host:before{content:"";grid-row:2;grid-column:2;border-radius:8px;border:solid 1px #a16207;background:#fff}.llm-compare-messages{grid-row:2;grid-column:1/span 2;display:flex;flex-direction:column;gap:24px;position:relative;overflow-y:scroll;padding:6px;max-height:460px}.llm-compare-messages__row{display:flex;flex-direction:row;gap:32px}.llm-compare-messages__row>div{display:flex;flex-direction:column;width:50%}.header{display:flex;grid-row:1;grid-column:1/span 2}.header div{display:flex;width:50%;justify-content:center;align-items:center;padding:0 1rem}.header p{font-family:Nunito,sans-serif;font-size:1.25rem;font-style:normal;font-weight:700;line-height:1.75rem;margin:0;padding:8px 32px;background:#cec3f4;width:fit-content;border:1px solid #452d9d;border-radius:8px;text-align:center}.header p.title-2{border-color:#a16207;background:#fffec0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}', k = /* @__PURE__ */ p(b, [["styles", [_]]]);
|
|
63
63
|
window.customElements.define("llm-compare-messages", g(k));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as c, L as m, M as i, o as e, c as t, F as p, e as d, f, _ as g, d as u } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
-
import { L as h } from "../LLMMessage.ce-
|
|
2
|
+
import { L as h } from "../LLMMessage.ce-BM9ikl_y.js";
|
|
3
3
|
import { p as _ } from "../shadow-dom-DSLDIcsa.js";
|
|
4
4
|
const x = {
|
|
5
5
|
class: "llm-messages",
|
|
@@ -64,7 +64,7 @@ const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B
|
|
|
64
64
|
], 64);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}), z = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;
|
|
67
|
+
}), z = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", A = /* @__PURE__ */ S(V, [["styles", [z]]]), _ = P(A);
|
|
68
68
|
_.prototype.normalizeProps = (r) => ({
|
|
69
69
|
...r,
|
|
70
70
|
speed: N(r.speed)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as S, h as L, o, c as d, t as N, a as s, y as w, f as _, x as g, C as f, D as v, l as D, n as O, _ as Z, r as y, K as q, F as M, e as K, E as T, g as U, d as H } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
2
|
import { a as J, i as F, b as Q } from "../i18n-C-1Ne5JG.js";
|
|
3
|
-
import { B as W } from "../Button.ce-
|
|
3
|
+
import { B as W } from "../Button.ce-CsTDnAGh.js";
|
|
4
4
|
import { _ as A, a as E, F as X } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js";
|
|
5
5
|
import { s as I } from "../shuffled-B8VGTceh.js";
|
|
6
|
-
import { B as j } from "../ButtonTooltip.ce-
|
|
6
|
+
import { B as j } from "../ButtonTooltip.ce-CUxXoH9n.js";
|
|
7
7
|
const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
8
8
|
"mdp-classement": { correct: "Correct", incorrect: "Incorrect", strong: "Fort", weak: "Faible", moveUp: "Classer l'élément comme étant plus fort", moveDown: "Classer l'élément comme étant plus faible", altInformation: "Une liste de mots de passe à ordonner du plus fort au plus faible", validate: "Valider", feedback: { positiveTitle: "Bien joué !", positiveContent: "Votre classement est correct ! Dans cette liste, seul le mot de passe {strongestPassword} est un mot de passe fort.", negativeTitle: "Pas tout à fait", negativeContent: "Plus un mot de passe est long, varié et imprévisible, plus il est fort. Il n'y a qu'un seul mot de passe fort dans cette liste." } }
|
|
9
9
|
}, o0 = {}, r0 = {}, l0 = "data:image/svg+xml,%3csvg%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.61667%209.1C7.41756%209.1%207.227%209.06556%207.045%208.99667C6.86278%208.92778%206.697%208.81878%206.54767%208.66967L0.422334%202.54433C0.140778%202.26256%200%201.90889%200%201.48333C0%201.05778%200.140778%200.704111%200.422334%200.422333C0.704112%200.140777%201.05778%200%201.48333%200C1.90889%200%202.26256%200.140777%202.54433%200.422333L7.61667%205.495L12.689%200.422333C12.9708%200.140777%2013.3244%200%2013.75%200C14.1756%200%2014.5292%200.140777%2014.811%200.422333C15.0926%200.704111%2015.2333%201.05778%2015.2333%201.48333C15.2333%201.90889%2015.0926%202.26256%2014.811%202.54433L8.68567%208.66967C8.53633%208.81878%208.37056%208.92778%208.18833%208.99667C8.00633%209.06556%207.81578%209.1%207.61667%209.1Z'%20fill='url(%23paint0_linear_3023_127)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3023_127'%20x1='0'%20y1='4.55'%20x2='15.2333'%20y2='4.55'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232B7FFF'/%3e%3cstop%20offset='1'%20stop-color='%2300b8db'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", i0 = "data:image/svg+xml,%3csvg%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.61667%203.63033L2.54433%208.703C2.26256%208.98456%201.90889%209.12533%201.48333%209.12533C1.05778%209.12533%200.704112%208.98456%200.422334%208.703C0.140778%208.42122%200%208.06756%200%207.642C0%207.21645%200.140778%206.86278%200.422334%206.581L6.54767%200.455666C6.85167%200.151888%207.208%200%207.61667%200C8.02533%200%208.38167%200.151888%208.68567%200.455666L14.811%206.581C15.0926%206.86278%2015.2333%207.21645%2015.2333%207.642C15.2333%208.06756%2015.0926%208.42122%2014.811%208.703C14.5292%208.98456%2014.1756%209.12533%2013.75%209.12533C13.3244%209.12533%2012.9708%208.98456%2012.689%208.703L7.61667%203.63033Z'%20fill='url(%23paint0_linear_3023_130)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3023_130'%20x1='0'%20y1='4.56267'%20x2='15.2333'%20y2='4.56267'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232B7FFF'/%3e%3cstop%20offset='1'%20stop-color='%2300b8db'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", d0 = "data:image/svg+xml,%3csvg%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.61667%209.1C7.41756%209.1%207.227%209.06556%207.045%208.99667C6.86278%208.92778%206.697%208.81878%206.54767%208.66967L0.422334%202.54433C0.140778%202.26256%200%201.90889%200%201.48333C0%201.05778%200.140778%200.704111%200.422334%200.422333C0.704112%200.140777%201.05778%200%201.48333%200C1.90889%200%202.26256%200.140777%202.54433%200.422333L7.61667%205.495L12.689%200.422333C12.9708%200.140777%2013.3244%200%2013.75%200C14.1756%200%2014.5292%200.140777%2014.811%200.422333C15.0926%200.704111%2015.2333%201.05778%2015.2333%201.48333C15.2333%201.90889%2015.0926%202.26256%2014.811%202.54433L8.68567%208.66967C8.53633%208.81878%208.37056%208.92778%208.18833%208.99667C8.00633%209.06556%207.81578%209.1%207.61667%209.1Z'%20fill='%23CDD1D9'/%3e%3c/svg%3e", c0 = "data:image/svg+xml,%3csvg%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.61667%203.63033L2.54433%208.703C2.26256%208.98456%201.90889%209.12533%201.48333%209.12533C1.05778%209.12533%200.704112%208.98456%200.422334%208.703C0.140778%208.42122%200%208.06756%200%207.642C0%207.21645%200.140778%206.86278%200.422334%206.581L6.54767%200.455666C6.85167%200.151888%207.208%200%207.61667%200C8.02533%200%208.38167%200.151888%208.68567%200.455666L14.811%206.581C15.0926%206.86278%2015.2333%207.21645%2015.2333%207.642C15.2333%208.06756%2015.0926%208.42122%2014.811%208.703C14.5292%208.98456%2014.1756%209.12533%2013.75%209.12533C13.3244%209.12533%2012.9708%208.98456%2012.689%208.703L7.61667%203.63033Z'%20fill='%23cdd1d9'/%3e%3c/svg%3e", p0 = "data:image/svg+xml,%3csvg%20width='9'%20height='15'%20viewBox='0%200%209%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%201.5C0%201.29%20-1.55065e-07%201.1865%200.0119998%201.0995C0.0501813%200.824562%200.177043%200.569595%200.373319%200.373319C0.569595%200.177043%200.824562%200.0501813%201.0995%200.0119998C1.185%20-1.55065e-07%201.29%200%201.5%200C1.71%200%201.8135%20-1.55065e-07%201.9005%200.0119998C2.17544%200.0501813%202.4304%200.177043%202.62668%200.373319C2.82296%200.569595%202.94982%200.824562%202.988%201.0995C3%201.185%203%201.29%203%201.5C3%201.71%203%201.8135%202.988%201.9005C2.94982%202.17544%202.82296%202.4304%202.62668%202.62668C2.4304%202.82296%202.17544%202.94982%201.9005%202.988C1.815%203%201.71%203%201.5%203C1.29%203%201.1865%203%201.0995%202.988C0.824562%202.94982%200.569595%202.82296%200.373319%202.62668C0.177043%202.4304%200.0501813%202.17544%200.0119998%201.9005C-1.55065e-07%201.815%200%201.71%200%201.5ZM0%207.5C0%207.29%20-1.55065e-07%207.1865%200.0119998%207.0995C0.0501813%206.82456%200.177043%206.5696%200.373319%206.37332C0.569595%206.17704%200.824562%206.05018%201.0995%206.012C1.185%206%201.29%206%201.5%206C1.71%206%201.8135%206%201.9005%206.012C2.17544%206.05018%202.4304%206.17704%202.62668%206.37332C2.82296%206.5696%202.94982%206.82456%202.988%207.0995C3%207.185%203%207.29%203%207.5C3%207.71%203%207.8135%202.988%207.9005C2.94982%208.17544%202.82296%208.4304%202.62668%208.62668C2.4304%208.82296%202.17544%208.94982%201.9005%208.988C1.815%209%201.71%209%201.5%209C1.29%209%201.1865%209%201.0995%208.988C0.824562%208.94982%200.569595%208.82296%200.373319%208.62668C0.177043%208.4304%200.0501813%208.17544%200.0119998%207.9005C-1.55065e-07%207.815%200%207.71%200%207.5ZM0%2013.5C0%2013.2915%20-1.55065e-07%2013.1865%200.0119998%2013.0995C0.0504049%2012.8251%200.177181%2012.5706%200.373135%2012.3746C0.56909%2012.1787%200.823553%2012.0519%201.098%2012.0135C1.1865%2012.0015%201.29%2012.0015%201.4985%2012.0015C1.707%2012.0015%201.8135%2012.0015%201.899%2012.0135C2.17345%2012.0519%202.42791%2012.1787%202.62386%2012.3746C2.81982%2012.5706%202.94659%2012.8251%202.985%2013.0995C2.997%2013.1865%202.997%2013.2915%202.997%2013.5C2.997%2013.7085%202.997%2013.8135%202.985%2013.9005C2.94659%2014.1749%202.81982%2014.4294%202.62386%2014.6254C2.42791%2014.8213%202.17345%2014.9481%201.899%2014.9865C1.812%2014.9985%201.707%2014.9985%201.4985%2014.9985C1.29%2014.9985%201.185%2014.9985%201.098%2014.9865C0.823553%2014.9481%200.56909%2014.8213%200.373135%2014.6254C0.177181%2014.4294%200.0504049%2014.1749%200.0119998%2013.9005C-1.55065e-07%2013.8135%200%2013.7085%200%2013.5ZM6%201.5C6%201.29%206%201.1865%206.012%201.0995C6.05018%200.824562%206.17704%200.569595%206.37332%200.373319C6.5696%200.177043%206.82456%200.0501813%207.0995%200.0119998C7.185%20-1.55065e-07%207.29%200%207.5%200C7.71%200%207.8135%20-1.55065e-07%207.9005%200.0119998C8.17544%200.0501813%208.4304%200.177043%208.62668%200.373319C8.82296%200.569595%208.94982%200.824562%208.988%201.0995C9%201.185%209%201.29%209%201.5C9%201.71%209%201.8135%208.988%201.9005C8.94982%202.17544%208.82296%202.4304%208.62668%202.62668C8.4304%202.82296%208.17544%202.94982%207.9005%202.988C7.815%203%207.71%203%207.5%203C7.29%203%207.1865%203%207.0995%202.988C6.82456%202.94982%206.5696%202.82296%206.37332%202.62668C6.17704%202.4304%206.05018%202.17544%206.012%201.9005C6%201.815%206%201.71%206%201.5ZM6%207.5C6%207.29%206%207.1865%206.012%207.0995C6.05018%206.82456%206.17704%206.5696%206.37332%206.37332C6.5696%206.17704%206.82456%206.05018%207.0995%206.012C7.185%206%207.29%206%207.5%206C7.71%206%207.8135%206%207.9005%206.012C8.17544%206.05018%208.4304%206.17704%208.62668%206.37332C8.82296%206.5696%208.94982%206.82456%208.988%207.0995C9%207.185%209%207.29%209%207.5C9%207.71%209%207.8135%208.988%207.9005C8.94982%208.17544%208.82296%208.4304%208.62668%208.62668C8.4304%208.82296%208.17544%208.94982%207.9005%208.988C7.815%209%207.71%209%207.5%209C7.29%209%207.1865%209%207.0995%208.988C6.82456%208.94982%206.5696%208.82296%206.37332%208.62668C6.17704%208.4304%206.05018%208.17544%206.012%207.9005C6%207.815%206%207.71%206%207.5ZM6%2013.5C6%2013.2915%206%2013.1865%206.012%2013.0995C6.05041%2012.8251%206.17718%2012.5706%206.37314%2012.3746C6.56909%2012.1787%206.82355%2012.0519%207.098%2012.0135C7.1865%2012.0015%207.29%2012.0015%207.4985%2012.0015C7.7085%2012.0015%207.8135%2012.0015%207.899%2012.0135C8.17345%2012.0519%208.42791%2012.1787%208.62386%2012.3746C8.81982%2012.5706%208.94659%2012.8251%208.985%2013.0995C8.997%2013.1865%208.997%2013.2915%208.997%2013.5C8.997%2013.7085%208.997%2013.8135%208.985%2013.9005C8.94659%2014.1749%208.81982%2014.4294%208.62386%2014.6254C8.42791%2014.8213%208.17345%2014.9481%207.899%2014.9865C7.812%2014.9985%207.707%2014.9985%207.4985%2014.9985C7.29%2014.9985%207.185%2014.9985%207.098%2014.9865C6.82355%2014.9481%206.56909%2014.8213%206.37314%2014.6254C6.17718%2014.4294%206.05041%2014.1749%206.012%2013.9005C6%2013.8135%206%2013.7085%206%2013.5Z'%20fill='%23CDD1D9'/%3e%3c/svg%3e", C0 = { class: "card-left" }, g0 = ["src"], v0 = ["id"], f0 = {
|
|
@@ -27,8 +27,8 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
27
27
|
c("move-up"), await O(), r.value.button.focus();
|
|
28
28
|
}
|
|
29
29
|
return (n, l) => (o(), d("div", {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
ref: "card",
|
|
31
|
+
class: N(["card", { [t.state]: !0 }])
|
|
32
32
|
}, [
|
|
33
33
|
s("div", C0, [
|
|
34
34
|
t.state === "active" ? (o(), d("img", {
|
|
@@ -62,12 +62,12 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
62
62
|
]),
|
|
63
63
|
t.state === "active" ? (o(), d("div", f0, [
|
|
64
64
|
f(j, {
|
|
65
|
-
class: "move",
|
|
66
65
|
ref: "button-up",
|
|
67
|
-
|
|
66
|
+
class: "move",
|
|
68
67
|
label: n.$t("mdp-classement.moveUp"),
|
|
69
68
|
disabled: t.isUpDisabled,
|
|
70
|
-
"aria-describedby": `password-${t.password}
|
|
69
|
+
"aria-describedby": `password-${t.password}`,
|
|
70
|
+
onClick: m
|
|
71
71
|
}, {
|
|
72
72
|
default: v(() => [
|
|
73
73
|
s("img", {
|
|
@@ -79,10 +79,10 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
79
79
|
}, 8, ["label", "disabled", "aria-describedby"]),
|
|
80
80
|
f(j, {
|
|
81
81
|
class: "move",
|
|
82
|
-
onClick: l[3] || (l[3] = (b) => n.$emit("move-down")),
|
|
83
82
|
label: n.$t("mdp-classement.moveDown"),
|
|
84
83
|
disabled: t.isDownDisabled,
|
|
85
|
-
"aria-describedby": `password-${t.password}
|
|
84
|
+
"aria-describedby": `password-${t.password}`,
|
|
85
|
+
onClick: l[3] || (l[3] = (b) => n.$emit("move-down"))
|
|
86
86
|
}, {
|
|
87
87
|
default: v(() => [
|
|
88
88
|
s("img", {
|
|
@@ -95,7 +95,7 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
95
95
|
])) : D("", !0)
|
|
96
96
|
], 2));
|
|
97
97
|
}
|
|
98
|
-
}), w0 = "p[data-v-
|
|
98
|
+
}), w0 = "p[data-v-a259a6b0]{margin:5px}.drag-handle[data-v-a259a6b0]{cursor:grabbing;z-index:217;-webkit-user-select:none;user-select:none;padding:0 4px}svg.icon[data-v-a259a6b0]{width:24px;height:24px}.card[data-v-a259a6b0]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:100px;box-shadow:0 4px 8px #07142e14;padding:8px;border:solid 1px transparent}.card .card-left[data-v-a259a6b0]{display:flex;align-items:center;gap:12px;padding-left:8px}.card .card-right[data-v-a259a6b0]{display:flex;gap:16px;padding-right:8px}.correct[data-v-a259a6b0]{border:solid 1px #00a85a}.incorrect[data-v-a259a6b0]{border:solid 1px #ee6911}[data-v-a259a6b0] .move{background:none;border:none}@media screen and (max-width:768px){.card .card-left[data-v-a259a6b0]{gap:8px}.card .card-right[data-v-a259a6b0]{gap:4px}.drag-handle[data-v-a259a6b0]{display:none}}", _0 = /* @__PURE__ */ Z(b0, [["styles", [w0]], ["__scopeId", "data-v-a259a6b0"]]), h0 = { class: "wrapper" }, x0 = { class: "sr-only" }, y0 = { class: "ranking-container" }, D0 = { class: "strongness-bar__container" }, k0 = ["onDrop"], $0 = {
|
|
99
99
|
key: 0,
|
|
100
100
|
class: "validate-container"
|
|
101
101
|
}, B0 = /* @__PURE__ */ S({
|
|
@@ -157,12 +157,12 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
157
157
|
}, null, 8, ["password", "is-up-disabled", "is-down-disabled", "state", "onMoveUp", "onMoveDown", "onDragstart", "onDrop"]),
|
|
158
158
|
c.value ? (o(), d("div", {
|
|
159
159
|
key: 0,
|
|
160
|
+
class: "drop-down",
|
|
160
161
|
onDrop: (i) => $(i, C),
|
|
161
162
|
onDragenter: a[1] || (a[1] = w(() => {
|
|
162
163
|
}, ["prevent"])),
|
|
163
164
|
onDragover: a[2] || (a[2] = w(() => {
|
|
164
|
-
}, ["prevent"]))
|
|
165
|
-
class: "drop-down"
|
|
165
|
+
}, ["prevent"]))
|
|
166
166
|
}, null, 40, k0)) : D("", !0)
|
|
167
167
|
]))), 128))
|
|
168
168
|
])
|
|
@@ -203,7 +203,7 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
203
203
|
], 64);
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
}), L0 = "[data-v-
|
|
206
|
+
}), L0 = "[data-v-1af97a1b]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.sr-only[data-v-1af97a1b]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.strongness-bar__container[data-v-1af97a1b]{display:flex;flex-direction:column;align-items:center;gap:8px}.strongness-bar__container p[data-v-1af97a1b]{font-family:Roboto,sans-serif;font-size:14px;font-weight:700}.strongness-bar__container .strongness-bar[data-v-1af97a1b]{width:10px;height:calc(100% - 48px);border-radius:16px;background:linear-gradient(180deg,#2b7fff,#00b8db)}.wrapper[data-v-1af97a1b]{background:#eaf1ff;border-radius:8px;padding:24px}.wrapper .draggable-card[data-v-1af97a1b]{border:solid 2px #f0f}.ranking-container[data-v-1af97a1b]{display:flex}.ranking-container ul[data-v-1af97a1b]{width:100%;display:flex;flex-direction:column;gap:12px}.ranking-container li[data-v-1af97a1b]{position:relative;list-style-type:none}.ranking-container .drop-down[data-v-1af97a1b]{border:dashed 1px #2b7fff;top:0;height:calc(100% + 10px);position:absolute;width:100%;opacity:.5;z-index:90}.validate-container[data-v-1af97a1b]{width:100%;display:flex;justify-content:center;margin:24px 0 8px}.validate-container .validate[data-v-1af97a1b]{font-size:14px;font-weight:700}@media screen and (max-width:768px){.wrapper[data-v-1af97a1b]{padding:12px}ul[data-v-1af97a1b]{padding-left:8px}}", M0 = /* @__PURE__ */ Z(B0, [["styles", [L0]], ["__scopeId", "data-v-1af97a1b"]]);
|
|
207
207
|
J(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": Y, "./locales/en.json": e0, "./locales/es-419.json": a0, "./locales/es.json": t0, "./locales/fr-BE.json": s0, "./locales/fr.json": n0, "./locales/it.json": o0, "./locales/nl.json": r0 })).catch((t) => console.error(t));
|
|
208
208
|
window.customElements.define("mdp-classement", H(M0, {
|
|
209
209
|
configureApp(t) {
|
|
@@ -100,12 +100,12 @@ const R = ["part"], q = {
|
|
|
100
100
|
(n(!0), i(b, null, M(m.value, ({ message: o, displaySender: r, startAnimation: p, animationDuration: f }, h) => (n(), V(U, {
|
|
101
101
|
ref_for: !0,
|
|
102
102
|
ref: "messages",
|
|
103
|
+
key: h,
|
|
103
104
|
message: o,
|
|
104
105
|
"start-animation": p,
|
|
105
106
|
"animation-duration": f,
|
|
106
107
|
"loading-duration": t,
|
|
107
|
-
"display-sender": r
|
|
108
|
-
key: h
|
|
108
|
+
"display-sender": r
|
|
109
109
|
}, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
|
|
110
110
|
]));
|
|
111
111
|
}
|