@1024pix/epreuves-components 4.5.0 → 4.6.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-DNrjLa1r.js → Button.ce-Ccv3OLk2.js} +1 -1
- package/dist/{ButtonTooltip.ce-DQ8QAvUM.js → ButtonTooltip.ce-Bo42SFAP.js} +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js +83 -0
- package/dist/{FocusManager.ce-CwF5pnqR.js → FocusManager.ce-BG_n76ZF.js} +2 -2
- package/dist/Icon.ce-Be0LymfA.js +50 -0
- package/dist/{LLMMessage.ce-Duki08xd.js → LLMMessage.ce-y0WmEj7m.js} +24 -22
- package/dist/{Loading.ce-D7CUjrcI.js → Loading.ce-CG-e7tdE.js} +1 -1
- package/dist/Modal.ce-DCTwYJKJ.js +86 -0
- package/dist/{NavigationButton.ce-17UL0Mwu.js → NavigationButton.ce-B-c0m9H8.js} +14 -12
- package/dist/{PixMailMessage.ce-CNULZecQ.js → PixMailMessage.ce-CH6CVQ3H.js} +20 -20
- package/dist/{Popin.ce-VvQiVxjk.js → Popin.ce-CQtpIOkM.js} +3 -3
- package/dist/{Retry-CGkQcck5.js → Retry-DLOo5neI.js} +1 -1
- package/dist/{Stepper.ce-gx2YaVCo.js → Stepper.ce-MmSadTrx.js} +1 -1
- package/dist/{_plugin-vue_export-helper-DROOAHrz.js → _plugin-vue_export-helper-CD1RUA2y.js} +12 -12
- package/dist/components/analyse-mails-phishing.ce.js.js +104 -105
- package/dist/components/autocompletion-mdp.ce.js.js +256 -0
- package/dist/components/button.ce.js.js +2 -2
- package/dist/components/calcul-impact.ce.js.js +13 -13
- package/dist/components/capacity-calculation.ce.js.js +38 -35
- package/dist/components/clickable-image.ce.js.js +10 -10
- package/dist/components/complete-phrase.ce.js.js +12 -12
- package/dist/components/flip-cards.ce.js.js +10 -10
- package/dist/components/generate-mdp.ce.js.js +82 -151
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +3 -3
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +7 -7
- package/dist/components/mdp-classement.ce.js.js +100 -108
- package/dist/components/message-conversation.ce.js.js +19 -19
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/notification-antivirus.ce.js.js +139 -149
- package/dist/components/phishing-message.ce.js.js +23 -23
- package/dist/components/phishing-notification.ce.js.js +18 -18
- package/dist/components/pix-anonymisation.ce.js.js +9 -9
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +10 -8
- package/dist/components/pix-combinaisons.ce.js.js +13 -13
- package/dist/components/pix-cursor.ce.js.js +13 -13
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +70 -82
- package/dist/components/qcm-deepfake.ce.js.js +23 -23
- package/dist/components/quiz-stepper.ce.js.js +61 -68
- package/dist/components/select-conversation.ce.js.js +4 -4
- package/dist/components/template-mail.ce.js.js +3 -3
- package/dist/components/test-top-mdp.ce.js.js +4 -4
- package/dist/components/trouver-mdp-rs.ce.js.js +52 -66
- package/dist/components/usages-donnees.ce.js.js +7 -7
- package/dist/{i18n-BVfGnSnP.js → i18n-C-1Ne5JG.js} +1 -1
- package/dist/{i18n-lite-V7Z5qwB2.js → i18n-lite-WQsHAHqG.js} +1 -1
- package/dist/{image-quiz.ce-DLpB-rde.js → image-quiz.ce-DGVVVaQN.js} +8 -8
- package/dist/{index-BgVc_wZ5.js → index-C8-9QxHJ.js} +1 -1
- package/dist/index.js +2 -1
- package/dist/metadata.js +29 -25
- package/dist/props.examples.js +115 -113
- package/dist/schema.js +55 -53
- package/dist/{shadow-dom-4LHwwhYa.js → shadow-dom-DSLDIcsa.js} +1 -1
- package/package.json +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js +0 -53
- package/dist/Feedback.ce-MqHV98f3.js +0 -26
- package/dist/Icon.ce-O_y_jvjK.js +0 -50
- package/dist/components/feedback.ce.js.js +0 -4
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { a as J, i as
|
|
3
|
-
import { B as W } from "../Button.ce-
|
|
4
|
-
import { F as X } from "../
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { B as I } from "../ButtonTooltip.ce-DQ8QAvUM.js";
|
|
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
|
+
import { a as J, i as F, b as Q } from "../i18n-C-1Ne5JG.js";
|
|
3
|
+
import { B as W } from "../Button.ce-Ccv3OLk2.js";
|
|
4
|
+
import { _ as A, a as E, F as X } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js";
|
|
5
|
+
import { s as I } from "../shuffled-B8VGTceh.js";
|
|
6
|
+
import { B as j } from "../ButtonTooltip.ce-Bo42SFAP.js";
|
|
8
7
|
const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
9
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." } }
|
|
10
|
-
}, o0 = {}, r0 = {},
|
|
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 = {
|
|
11
10
|
key: 0,
|
|
12
11
|
class: "card-right"
|
|
13
|
-
},
|
|
12
|
+
}, u0 = ["src"], m0 = ["src"], b0 = /* @__PURE__ */ S({
|
|
14
13
|
__name: "DraggableCard.ce",
|
|
15
14
|
props: {
|
|
16
15
|
password: { type: String },
|
|
@@ -19,123 +18,122 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
19
18
|
state: { type: String }
|
|
20
19
|
},
|
|
21
20
|
emits: ["move-up", "move-down", "dragstart", "drop"],
|
|
22
|
-
setup(t, { emit:
|
|
23
|
-
const u = L("card"), r = L("button-up"), c =
|
|
24
|
-
function p(
|
|
25
|
-
|
|
21
|
+
setup(t, { emit: h }) {
|
|
22
|
+
const u = L("card"), r = L("button-up"), c = h;
|
|
23
|
+
function p(n) {
|
|
24
|
+
n.dataTransfer.setDragImage(u.value, 30, 30), c("dragstart", n);
|
|
26
25
|
}
|
|
27
26
|
async function m() {
|
|
28
|
-
c("move-up"), await
|
|
27
|
+
c("move-up"), await O(), r.value.button.focus();
|
|
29
28
|
}
|
|
30
|
-
return (
|
|
31
|
-
class:
|
|
29
|
+
return (n, l) => (o(), d("div", {
|
|
30
|
+
class: N(["card", { [t.state]: !0 }]),
|
|
32
31
|
ref: "card"
|
|
33
32
|
}, [
|
|
34
33
|
s("div", C0, [
|
|
35
|
-
t.state === "active" ? (
|
|
34
|
+
t.state === "active" ? (o(), d("img", {
|
|
36
35
|
key: 0,
|
|
37
36
|
src: p0,
|
|
38
37
|
alt: "",
|
|
39
38
|
class: "drag-handle",
|
|
40
39
|
draggable: "",
|
|
41
40
|
onDragstart: p,
|
|
42
|
-
onDrop:
|
|
43
|
-
onDragenter:
|
|
41
|
+
onDrop: l[0] || (l[0] = (b) => c("drop", b)),
|
|
42
|
+
onDragenter: l[1] || (l[1] = w(() => {
|
|
44
43
|
}, ["prevent"])),
|
|
45
|
-
onDragover:
|
|
44
|
+
onDragover: l[2] || (l[2] = w(() => {
|
|
46
45
|
}, ["prevent"]))
|
|
47
|
-
}, null, 40, g0)) : t.state === "correct" ? (
|
|
46
|
+
}, null, 40, g0)) : t.state === "correct" ? (o(), _(A, {
|
|
48
47
|
key: 1,
|
|
49
|
-
|
|
48
|
+
"aria-label": n.$t("mdp-classement.correct"),
|
|
50
49
|
color: "#007740",
|
|
51
|
-
class: "icon"
|
|
52
|
-
|
|
50
|
+
class: "icon",
|
|
51
|
+
"aria-hidden": "false"
|
|
52
|
+
}, null, 8, ["aria-label"])) : (o(), _(E, {
|
|
53
53
|
key: 2,
|
|
54
|
-
|
|
54
|
+
"aria-label": n.$t("mdp-classement.incorrect"),
|
|
55
55
|
color: "#a94b0c",
|
|
56
|
-
class: "icon"
|
|
57
|
-
|
|
56
|
+
class: "icon",
|
|
57
|
+
"aria-hidden": "false"
|
|
58
|
+
}, null, 8, ["aria-label"])),
|
|
58
59
|
s("p", {
|
|
59
60
|
id: `password-${t.password}`
|
|
60
61
|
}, g(t.password), 9, v0)
|
|
61
62
|
]),
|
|
62
|
-
t.state === "active" ? (
|
|
63
|
-
|
|
63
|
+
t.state === "active" ? (o(), d("div", f0, [
|
|
64
|
+
f(j, {
|
|
64
65
|
class: "move",
|
|
65
66
|
ref: "button-up",
|
|
66
67
|
onClick: m,
|
|
67
|
-
label:
|
|
68
|
+
label: n.$t("mdp-classement.moveUp"),
|
|
68
69
|
disabled: t.isUpDisabled,
|
|
69
70
|
"aria-describedby": `password-${t.password}`
|
|
70
71
|
}, {
|
|
71
72
|
default: v(() => [
|
|
72
73
|
s("img", {
|
|
73
|
-
src: t.isUpDisabled ? c0 :
|
|
74
|
+
src: t.isUpDisabled ? c0 : i0,
|
|
74
75
|
alt: ""
|
|
75
|
-
}, null, 8,
|
|
76
|
+
}, null, 8, u0)
|
|
76
77
|
]),
|
|
77
78
|
_: 1
|
|
78
79
|
}, 8, ["label", "disabled", "aria-describedby"]),
|
|
79
|
-
|
|
80
|
+
f(j, {
|
|
80
81
|
class: "move",
|
|
81
|
-
onClick:
|
|
82
|
-
label:
|
|
82
|
+
onClick: l[3] || (l[3] = (b) => n.$emit("move-down")),
|
|
83
|
+
label: n.$t("mdp-classement.moveDown"),
|
|
83
84
|
disabled: t.isDownDisabled,
|
|
84
85
|
"aria-describedby": `password-${t.password}`
|
|
85
86
|
}, {
|
|
86
87
|
default: v(() => [
|
|
87
88
|
s("img", {
|
|
88
|
-
src: t.isDownDisabled ? d0 :
|
|
89
|
+
src: t.isDownDisabled ? d0 : l0,
|
|
89
90
|
alt: ""
|
|
90
|
-
}, null, 8,
|
|
91
|
+
}, null, 8, m0)
|
|
91
92
|
]),
|
|
92
93
|
_: 1
|
|
93
94
|
}, 8, ["label", "disabled", "aria-describedby"])
|
|
94
|
-
])) :
|
|
95
|
+
])) : D("", !0)
|
|
95
96
|
], 2));
|
|
96
97
|
}
|
|
97
|
-
}), w0 = "p[data-v-
|
|
98
|
+
}), w0 = "p[data-v-7e81fabd]{margin:5px}.drag-handle[data-v-7e81fabd]{cursor:grabbing;z-index:217;-webkit-user-select:none;user-select:none;padding:0 4px}svg.icon[data-v-7e81fabd]{width:24px;height:24px}.card[data-v-7e81fabd]{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-7e81fabd]{display:flex;align-items:center;gap:12px;padding-left:8px}.card .card-right[data-v-7e81fabd]{display:flex;gap:16px;padding-right:8px}.correct[data-v-7e81fabd]{border:solid 1px #00a85a}.incorrect[data-v-7e81fabd]{border:solid 1px #ee6911}[data-v-7e81fabd] .move{background:none;border:none}@media screen and (max-width:768px){.card .card-left[data-v-7e81fabd]{gap:8px}.card .card-right[data-v-7e81fabd]{gap:4px}.drag-handle[data-v-7e81fabd]{display:none}}", _0 = /* @__PURE__ */ Z(b0, [["styles", [w0]], ["__scopeId", "data-v-7e81fabd"]]), h0 = { class: "wrapper" }, x0 = { class: "sr-only" }, y0 = { class: "ranking-container" }, D0 = { class: "strongness-bar__container" }, k0 = ["onDrop"], $0 = {
|
|
98
99
|
key: 0,
|
|
99
100
|
class: "validate-container"
|
|
100
|
-
}, B0 = {
|
|
101
|
-
class: "feedback",
|
|
102
|
-
"aria-live": "polite"
|
|
103
|
-
}, L0 = /* @__PURE__ */ j({
|
|
101
|
+
}, B0 = /* @__PURE__ */ S({
|
|
104
102
|
__name: "MdpClassement.ce",
|
|
105
103
|
props: {
|
|
106
104
|
passwords: { type: Array }
|
|
107
105
|
},
|
|
108
|
-
setup(t, { expose:
|
|
109
|
-
const u = t, r =
|
|
106
|
+
setup(t, { expose: h }) {
|
|
107
|
+
const u = t, r = y(I(u.passwords, { ensureIsShuffled: !0 })), c = y(!1), p = y(!0), m = U(() => r.value.map((e, a) => ({
|
|
110
108
|
password: e,
|
|
111
109
|
isFirst: a === 0,
|
|
112
110
|
isLast: a === r.value.length - 1,
|
|
113
|
-
state:
|
|
114
|
-
}))),
|
|
115
|
-
function
|
|
111
|
+
state: l(a, e)
|
|
112
|
+
}))), n = U(() => m.value.every(({ state: e }) => e === "correct"));
|
|
113
|
+
function l(e, a) {
|
|
116
114
|
return p.value ? "active" : a === u.passwords[e] ? "correct" : "incorrect";
|
|
117
115
|
}
|
|
118
|
-
function
|
|
119
|
-
r.value =
|
|
116
|
+
function b() {
|
|
117
|
+
r.value = I(u.passwords, { ensureIsShuffled: !0 }), p.value = !0;
|
|
120
118
|
}
|
|
121
119
|
function k(e, a) {
|
|
122
120
|
[r.value[e], r.value[a]] = [r.value[a], r.value[e]];
|
|
123
121
|
}
|
|
124
122
|
function $(e, a) {
|
|
125
|
-
const
|
|
126
|
-
r.value.splice(a, 0, ...r.value.splice(
|
|
123
|
+
const x = parseInt(e.dataTransfer.getData("oldIndex"));
|
|
124
|
+
r.value.splice(a, 0, ...r.value.splice(x, 1));
|
|
127
125
|
}
|
|
128
|
-
function
|
|
126
|
+
function P(e, a) {
|
|
129
127
|
c.value = !0, e.dataTransfer.dropEffect = "move", e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("oldIndex", a.toString());
|
|
130
128
|
}
|
|
131
|
-
function
|
|
129
|
+
function R() {
|
|
132
130
|
p.value = !1;
|
|
133
131
|
}
|
|
134
|
-
return
|
|
135
|
-
reset:
|
|
132
|
+
return h({
|
|
133
|
+
reset: b
|
|
136
134
|
}), (e, a) => {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
135
|
+
const x = q("i18next");
|
|
136
|
+
return o(), d(M, null, [
|
|
139
137
|
s("div", h0, [
|
|
140
138
|
s("p", x0, g(e.$t("mdp-classement.altInformation")), 1),
|
|
141
139
|
s("div", y0, [
|
|
@@ -145,76 +143,70 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
145
143
|
s("p", null, g(e.$t("mdp-classement.weak")), 1)
|
|
146
144
|
]),
|
|
147
145
|
s("ul", null, [
|
|
148
|
-
(
|
|
149
|
-
|
|
146
|
+
(o(!0), d(M, null, K(m.value, ({ password: B, isFirst: V, isLast: z, state: G }, C) => (o(), d("li", { key: B }, [
|
|
147
|
+
f(_0, {
|
|
150
148
|
password: B,
|
|
151
|
-
"is-up-disabled":
|
|
152
|
-
"is-down-disabled":
|
|
153
|
-
state:
|
|
154
|
-
onMoveUp: (
|
|
155
|
-
onMoveDown: (
|
|
156
|
-
onDragstart: (
|
|
157
|
-
onDrop: (
|
|
158
|
-
onDragend: a[0] || (a[0] = (
|
|
149
|
+
"is-up-disabled": V,
|
|
150
|
+
"is-down-disabled": z,
|
|
151
|
+
state: G,
|
|
152
|
+
onMoveUp: (i) => k(C, C - 1),
|
|
153
|
+
onMoveDown: (i) => k(C, C + 1),
|
|
154
|
+
onDragstart: (i) => P(i, C),
|
|
155
|
+
onDrop: (i) => $(i, C),
|
|
156
|
+
onDragend: a[0] || (a[0] = (i) => c.value = !1)
|
|
159
157
|
}, null, 8, ["password", "is-up-disabled", "is-down-disabled", "state", "onMoveUp", "onMoveDown", "onDragstart", "onDrop"]),
|
|
160
|
-
c.value ? (
|
|
158
|
+
c.value ? (o(), d("div", {
|
|
161
159
|
key: 0,
|
|
162
|
-
onDrop: (
|
|
163
|
-
onDragenter: a[1] || (a[1] =
|
|
160
|
+
onDrop: (i) => $(i, C),
|
|
161
|
+
onDragenter: a[1] || (a[1] = w(() => {
|
|
164
162
|
}, ["prevent"])),
|
|
165
|
-
onDragover: a[2] || (a[2] =
|
|
163
|
+
onDragover: a[2] || (a[2] = w(() => {
|
|
166
164
|
}, ["prevent"])),
|
|
167
165
|
class: "drop-down"
|
|
168
|
-
}, null, 40, k0)) :
|
|
166
|
+
}, null, 40, k0)) : D("", !0)
|
|
169
167
|
]))), 128))
|
|
170
168
|
])
|
|
171
169
|
])
|
|
172
170
|
]),
|
|
173
|
-
p.value ? (
|
|
174
|
-
|
|
171
|
+
p.value ? (o(), d("div", $0, [
|
|
172
|
+
f(W, {
|
|
175
173
|
class: "validate",
|
|
176
|
-
onClick:
|
|
174
|
+
onClick: R
|
|
177
175
|
}, {
|
|
178
176
|
default: v(() => [
|
|
179
|
-
|
|
177
|
+
T(g(e.$t("mdp-classement.validate")), 1)
|
|
180
178
|
]),
|
|
181
179
|
_: 1
|
|
182
180
|
})
|
|
183
|
-
])) :
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
_: 1
|
|
206
|
-
}, 8, ["translation"])
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["title"]))
|
|
210
|
-
])
|
|
181
|
+
])) : D("", !0),
|
|
182
|
+
f(X, {
|
|
183
|
+
"display-feedback": !p.value
|
|
184
|
+
}, {
|
|
185
|
+
icon: v(() => [
|
|
186
|
+
n.value ? (o(), _(A, { key: 0 })) : (o(), _(E, { key: 1 }))
|
|
187
|
+
]),
|
|
188
|
+
title: v(() => [
|
|
189
|
+
T(g(n.value ? e.$t("mdp-classement.feedback.positiveTitle") : e.$t("mdp-classement.feedback.negativeTitle")), 1)
|
|
190
|
+
]),
|
|
191
|
+
content: v(() => [
|
|
192
|
+
f(x, {
|
|
193
|
+
translation: n.value ? e.$t("mdp-classement.feedback.positiveContent") : e.$t("mdp-classement.feedback.negativeContent")
|
|
194
|
+
}, {
|
|
195
|
+
strongestPassword: v(() => [
|
|
196
|
+
s("strong", null, g(m.value[0].password), 1)
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["translation"])
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 8, ["display-feedback"])
|
|
211
203
|
], 64);
|
|
212
204
|
};
|
|
213
205
|
}
|
|
214
|
-
}),
|
|
206
|
+
}), L0 = "[data-v-c1a89ee1]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.sr-only[data-v-c1a89ee1]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.strongness-bar__container[data-v-c1a89ee1]{display:flex;flex-direction:column;align-items:center;gap:8px}.strongness-bar__container p[data-v-c1a89ee1]{font-family:Roboto,sans-serif;font-size:14px;font-weight:700}.strongness-bar__container .strongness-bar[data-v-c1a89ee1]{width:10px;height:calc(100% - 48px);border-radius:16px;background:linear-gradient(180deg,#2b7fff,#00b8db)}.wrapper[data-v-c1a89ee1]{background:#eaf1ff;border-radius:8px;padding:24px}.wrapper .draggable-card[data-v-c1a89ee1]{border:solid 2px #f0f}.ranking-container[data-v-c1a89ee1]{display:flex}.ranking-container ul[data-v-c1a89ee1]{width:100%;display:flex;flex-direction:column;gap:12px}.ranking-container li[data-v-c1a89ee1]{position:relative;list-style-type:none}.ranking-container .drop-down[data-v-c1a89ee1]{border:dashed 1px #2b7fff;top:0;height:calc(100% + 10px);position:absolute;width:100%;opacity:.5;z-index:90}.validate-container[data-v-c1a89ee1]{width:100%;display:flex;justify-content:center;margin:24px 0 8px}.validate-container .validate[data-v-c1a89ee1]{font-size:14px;font-weight:700}@media screen and (max-width:768px){.wrapper[data-v-c1a89ee1]{padding:12px}ul[data-v-c1a89ee1]{padding-left:8px}}", M0 = /* @__PURE__ */ Z(B0, [["styles", [L0]], ["__scopeId", "data-v-c1a89ee1"]]);
|
|
215
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));
|
|
216
|
-
window.customElements.define("mdp-classement", H(
|
|
208
|
+
window.customElements.define("mdp-classement", H(M0, {
|
|
217
209
|
configureApp(t) {
|
|
218
|
-
|
|
210
|
+
F.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(Q, { i18next: F });
|
|
219
211
|
}
|
|
220
212
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as S, k as
|
|
2
|
-
import { L } from "../Loading.ce-
|
|
3
|
-
import { u as
|
|
1
|
+
import { b as S, k as E, o as n, c as i, t as x, a as _, E as k, x as v, l, C as T, R as B, m as z, F as b, e as M, r as w, g as N, _ as D, h as P, f as V, d as F } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { L } from "../Loading.ce-CG-e7tdE.js";
|
|
3
|
+
import { u as j, a as I, b as O } from "../normalize-props-DH0oPBss.js";
|
|
4
4
|
const R = ["part"], q = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "message__loader message__content",
|
|
@@ -15,7 +15,7 @@ const R = ["part"], q = {
|
|
|
15
15
|
loadingDuration: { type: Number }
|
|
16
16
|
},
|
|
17
17
|
setup(e, { expose: c }) {
|
|
18
|
-
const t = w("hidden"), d = w([]), m =
|
|
18
|
+
const t = w("hidden"), d = w([]), m = N(() => e.message.content?.split(`
|
|
19
19
|
`));
|
|
20
20
|
function g(s) {
|
|
21
21
|
return new Promise((a) => {
|
|
@@ -26,7 +26,7 @@ const R = ["part"], q = {
|
|
|
26
26
|
async function u() {
|
|
27
27
|
await g(e.startAnimation), t.value = "loading", await g(e.loadingDuration), t.value = "visible", await g(e.animationDuration);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
E(u);
|
|
30
30
|
async function y() {
|
|
31
31
|
t.value = "hidden", d.value.forEach(clearTimeout), await u();
|
|
32
32
|
}
|
|
@@ -47,22 +47,22 @@ const R = ["part"], q = {
|
|
|
47
47
|
k(v(e.message.userName), 1)
|
|
48
48
|
], 8, R)) : l("", !0),
|
|
49
49
|
t.value === "loading" ? (n(), i("div", q, [
|
|
50
|
-
|
|
50
|
+
T(L)
|
|
51
51
|
])) : l("", !0),
|
|
52
52
|
_("p", {
|
|
53
53
|
class: x(["message__content", { "hidden-state": t.value !== "visible" }]),
|
|
54
54
|
part: `message ${e.message.direction}`
|
|
55
55
|
}, [
|
|
56
|
-
e.message.image ? (n(), i("img",
|
|
56
|
+
e.message.image ? (n(), i("img", B(z({ key: 0 }, e.message.image)), null, 16)) : l("", !0),
|
|
57
57
|
e.message.image && m.value ? (n(), i("br", H)) : l("", !0),
|
|
58
|
-
(n(!0), i(b, null,
|
|
58
|
+
(n(!0), i(b, null, M(m.value, (o, r) => (n(), i(b, { key: r }, [
|
|
59
59
|
r > 0 ? (n(), i("br", J)) : l("", !0),
|
|
60
60
|
k(" " + v(o), 1)
|
|
61
61
|
], 64))), 128))
|
|
62
62
|
], 10, G)
|
|
63
63
|
], 2));
|
|
64
64
|
}
|
|
65
|
-
}), Q = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", U = /* @__PURE__ */
|
|
65
|
+
}), Q = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", U = /* @__PURE__ */ D(K, [["styles", [Q]]]), W = { part: "conversation" }, X = { class: "sr-only" }, Y = /* @__PURE__ */ S({
|
|
66
66
|
__name: "MessageConversation.ce",
|
|
67
67
|
props: {
|
|
68
68
|
conversationTitle: { default: "Conversation par messages", type: String },
|
|
@@ -70,7 +70,7 @@ const R = ["part"], q = {
|
|
|
70
70
|
animationSpeed: { default: 20, type: Number }
|
|
71
71
|
},
|
|
72
72
|
setup(e, { expose: c }) {
|
|
73
|
-
const t = 50 * e.animationSpeed, d = 50 * e.animationSpeed, m =
|
|
73
|
+
const t = 50 * e.animationSpeed, d = 50 * e.animationSpeed, m = N(
|
|
74
74
|
() => e.messages.reduce(
|
|
75
75
|
(s, a, o) => {
|
|
76
76
|
const r = u(a);
|
|
@@ -80,8 +80,8 @@ const R = ["part"], q = {
|
|
|
80
80
|
message: p,
|
|
81
81
|
startAnimation: f,
|
|
82
82
|
animationDuration: h
|
|
83
|
-
} = s.at(-1),
|
|
84
|
-
return [...s, { message: a, displaySender:
|
|
83
|
+
} = s.at(-1), A = a.direction !== p.direction || a.userName !== p.userName, $ = f + h + t;
|
|
84
|
+
return [...s, { message: a, displaySender: A, startAnimation: $, animationDuration: r }];
|
|
85
85
|
},
|
|
86
86
|
[]
|
|
87
87
|
)
|
|
@@ -97,7 +97,7 @@ const R = ["part"], q = {
|
|
|
97
97
|
reset: y
|
|
98
98
|
}), (s, a) => (n(), i("figure", W, [
|
|
99
99
|
_("figcaption", X, v(e.conversationTitle), 1),
|
|
100
|
-
(n(!0), i(b, null,
|
|
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
103
|
message: o,
|
|
@@ -109,14 +109,14 @@ const R = ["part"], q = {
|
|
|
109
109
|
}, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
|
|
110
110
|
]));
|
|
111
111
|
}
|
|
112
|
-
}), Z = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", ee = /* @__PURE__ */
|
|
113
|
-
|
|
112
|
+
}), Z = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", ee = /* @__PURE__ */ D(Y, [["styles", [Z]]]), C = F(ee);
|
|
113
|
+
C.prototype.normalizeProps = (e) => ({
|
|
114
114
|
...e,
|
|
115
|
-
animationSpeed:
|
|
115
|
+
animationSpeed: O(e.animationSpeed),
|
|
116
116
|
messages: e.messages.map(({ type: c, content: t, image: d, ...m }) => ({
|
|
117
117
|
...m,
|
|
118
|
-
content:
|
|
119
|
-
image:
|
|
118
|
+
content: I(t),
|
|
119
|
+
image: j(d)
|
|
120
120
|
}))
|
|
121
121
|
});
|
|
122
|
-
window.customElements.define("message-conversation",
|
|
122
|
+
window.customElements.define("message-conversation", C);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as i, o as a, c as l, J as s, a as r, q as n,
|
|
1
|
+
import { b as i, o as a, c as l, J as s, a as r, q as n, A as d, t as b, _ as p, d as h } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
2
|
const m = {
|
|
3
3
|
class: "content",
|
|
4
4
|
part: "content"
|