@1024pix/epreuves-components 2.9.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button.ce-CTKrSDrC.js +27 -0
- package/dist/{ButtonTooltip.ce-CIo_7tm0.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
- package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-C2TfFGJP.js → Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js} +5 -5
- package/dist/{LLMMessage.ce-y0pOYUCI.js → LLMMessage.ce-Dv4hVX0C.js} +2 -2
- package/dist/{Loading.ce-Cxcx64IX.js → Loading.ce-Bh7-h48F.js} +1 -1
- package/dist/{NavigationButton.ce-DpzmC2Dd.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
- package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
- package/dist/Popin.ce-DUQ7-GMT.js +197 -0
- package/dist/{Retry-BYnFnneH.js → Retry-BZf7NJz9.js} +1 -1
- package/dist/Stepper.ce-B1yDelzC.js +27 -0
- package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js} +29 -28
- package/dist/components/analyse-mails-phishing.ce.js.js +99 -98
- package/dist/components/calcul-impact.ce.js.js +9 -9
- package/dist/components/capacity-calculation.ce.js.js +28 -28
- package/dist/components/clickable-image.ce.js.js +11 -11
- package/dist/components/complete-phrase.ce.js.js +7 -7
- package/dist/components/flip-cards.ce.js.js +5 -5
- package/dist/components/image-quiz.ce.js.js +4 -4
- package/dist/components/image-quizzes.ce.js.js +3 -3
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +2 -2
- package/dist/components/mdp-classement.ce.js.js +29 -29
- package/dist/components/message-conversation.ce.js.js +5 -5
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +27 -27
- package/dist/components/phishing-notification.ce.js.js +23 -23
- package/dist/components/pix-anonymisation.ce.js.js +83 -87
- package/dist/components/pix-article.ce.js.js +5 -5
- package/dist/components/pix-carousel.ce.js.js +13 -13
- package/dist/components/pix-combinaisons.ce.js.js +238 -0
- package/dist/components/pix-cursor.ce.js.js +19 -19
- package/dist/components/pix-mail-message.ce.js.js +11 -0
- package/dist/components/proteger-mail-spam.ce.js.js +129 -0
- package/dist/components/qcm-deepfake.ce.js.js +21 -21
- package/dist/components/quiz-stepper.ce.js.js +8 -7
- package/dist/components/select-conversation.ce.js.js +15 -15
- package/dist/components/template-mail.ce.js.js +49 -151
- package/dist/components/test-top-mdp.ce.js.js +14 -14
- package/dist/components/trouver-mdp-rs.ce.js.js +213 -249
- package/dist/{i18n-BJ6FRipD.js → i18n-ekiZvzf6.js} +9 -9
- package/dist/{i18n-lite-Dn1Iqj1Y.js → i18n-lite-t2jNOu0C.js} +8 -8
- package/dist/{image-quiz.ce-DvpG9mbT.js → image-quiz.ce-DqalWHKw.js} +11 -11
- package/dist/index-BpqxFmwz.js +10 -0
- package/dist/index.js +4 -1
- package/dist/metadata.js +31 -19
- package/dist/nl-Bonww6Q2.js +13 -0
- package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
- package/dist/props.examples.js +130 -0
- package/dist/schema.js +103 -67
- package/dist/{shadow-dom-Db7VMkC0.js → shadow-dom-C3AZuSZe.js} +1 -1
- package/dist/temporal.utils-7Uvm62ss.js +10926 -0
- package/package.json +3 -2
- package/dist/Button.ce-CkwcReY5.js +0 -18
- package/dist/index-BCutQvmP.js +0 -34
- package/dist/temporal.utils-CotrC6ao.js +0 -14456
|
@@ -1,140 +1,136 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as G, i as $, b as H } from "../i18n-
|
|
3
|
-
import {
|
|
4
|
-
import { B as z } from "../Button.ce-
|
|
5
|
-
const
|
|
1
|
+
import { b as E, r as f, j as q, g as p, c as s, o, a as e, t as n, F as m, e as g, s as k, n as _, E as V, A as F, P as T, K as w, H as S, B as y, f as D, _ as I, d as U } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { a as G, i as $, b as H } from "../i18n-ekiZvzf6.js";
|
|
3
|
+
import { b as K } from "../normalize-props-DH0oPBss.js";
|
|
4
|
+
import { B as z } from "../Button.ce-CTKrSDrC.js";
|
|
5
|
+
const M = {}, O = {}, J = {}, Q = {}, W = {}, X = {
|
|
6
6
|
"pix-anonymisation": { title: "Exercice d'anonymisation", instruction: 'Cliquez sur les morceaux de phrase contenant des données sensibles. Un fois que toutes les données sensibles sont mise en couleur, cliquez sur "Suivant" pour vérifier votre réponse.', prompt: { title: "Prompt" }, rephrase: { title: "Reformulation" }, buttons: { checkNow: "Suivant", displayRephrasing: "Suivant", nextPrompt: "Suivant" }, correction: "élements qui doivent être anonymisés:" }
|
|
7
|
-
},
|
|
7
|
+
}, Y = {}, Z = {}, ee = {
|
|
8
8
|
ref: "prompt-container",
|
|
9
9
|
tabindex: "-1"
|
|
10
|
-
},
|
|
10
|
+
}, ae = ["aria-level"], te = { class: "instruction" }, ne = { class: "stepper-container" }, oe = { key: 0 }, se = { class: "prompt-card" }, de = ["aria-level"], re = { class: "prompt-card-content" }, ie = ["for"], le = ["id", "value"], be = { class: "prompt-card-content-part" }, pe = { class: "prompt-card" }, ce = ["aria-level"], ve = { class: "prompt-card-content" }, ue = { class: "sr-only" }, me = { class: "sr-only" }, ge = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "prompt-card rephrase"
|
|
13
|
-
},
|
|
13
|
+
}, he = ["aria-level"], fe = { class: "prompt-card-content" }, _e = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "feedback"
|
|
16
|
-
},
|
|
16
|
+
}, ye = /* @__PURE__ */ E({
|
|
17
17
|
__name: "PixAnonymisation.ce",
|
|
18
18
|
props: {
|
|
19
19
|
titleLevel: { default: 2, type: Number },
|
|
20
20
|
steps: { type: Array }
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
content:
|
|
25
|
-
color: b.value.includes(
|
|
26
|
-
})), R =
|
|
22
|
+
setup(t, { expose: j }) {
|
|
23
|
+
const i = f(0), b = f([]), l = f(1), L = q("prompt-container"), c = p(() => t.steps[i.value]), N = p(() => l.value === 3 && i.value + 1 === t.steps.length), v = p(() => l.value === 3), P = p(() => c.value.fullSentence.map(({ content: a }) => a)), B = p(() => c.value.fullSentence.map(({ content: a, isAnonymizable: u }) => u ? { content: a, color: "green" } : {
|
|
24
|
+
content: a,
|
|
25
|
+
color: b.value.includes(a) ? "red" : "neutral"
|
|
26
|
+
})), R = p(() => c.value.fullSentence.filter(({ isAnonymizable: a }) => a).map(({ content: a }) => a));
|
|
27
27
|
function A() {
|
|
28
|
-
|
|
28
|
+
l.value = 1, i.value = 0, b.value = [];
|
|
29
29
|
}
|
|
30
30
|
function x() {
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
i.value++, L.value.focus();
|
|
31
|
+
if (v.value) {
|
|
32
|
+
l.value = 1, i.value++, b.value = [];
|
|
33
|
+
return;
|
|
37
34
|
}
|
|
35
|
+
l.value++, L.value.focus();
|
|
38
36
|
}
|
|
39
37
|
return j({
|
|
40
38
|
reset: A
|
|
41
|
-
}), (
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
}), (a, u) => (o(), s("div", ee, [
|
|
40
|
+
e("header", null, [
|
|
41
|
+
e("div", {
|
|
44
42
|
role: "heading",
|
|
45
43
|
class: "heading",
|
|
46
|
-
"aria-level":
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(
|
|
51
|
-
key:
|
|
52
|
-
class: _(["stepper-background", { "is-active":
|
|
53
|
-
style: k({ "--step-width": `${100 /
|
|
44
|
+
"aria-level": t.titleLevel
|
|
45
|
+
}, n(a.$t("pix-anonymisation.title")), 9, ae),
|
|
46
|
+
e("p", te, n(a.$t("pix-anonymisation.instruction")), 1),
|
|
47
|
+
e("div", ne, [
|
|
48
|
+
(o(!0), s(m, null, g(t.steps, (d, r) => (o(), s("div", {
|
|
49
|
+
key: r,
|
|
50
|
+
class: _(["stepper-background", { "is-active": i.value === r, "is-finished": r < i.value }]),
|
|
51
|
+
style: k({ "--step-width": `${100 / t.steps.length}%` })
|
|
54
52
|
}, [
|
|
55
|
-
|
|
53
|
+
e("div", {
|
|
56
54
|
class: "progress-bar",
|
|
57
|
-
style: k({ "--progress-bar-width": `${100 /
|
|
55
|
+
style: k({ "--progress-bar-width": `${100 / t.steps.length * l.value}%` })
|
|
58
56
|
}, null, 4)
|
|
59
57
|
], 6))), 128)),
|
|
60
|
-
|
|
58
|
+
e("span", null, n(i.value + 1) + " / " + n(t.steps.length), 1)
|
|
61
59
|
])
|
|
62
60
|
]),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, [
|
|
68
|
-
a("div", na, [
|
|
69
|
-
a("div", {
|
|
61
|
+
e("main", null, [
|
|
62
|
+
l.value === 1 ? (o(), s("form", oe, [
|
|
63
|
+
e("div", se, [
|
|
64
|
+
e("div", {
|
|
70
65
|
role: "heading",
|
|
71
66
|
class: "prompt-card__heading",
|
|
72
|
-
"aria-level":
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
(
|
|
76
|
-
for: `${
|
|
77
|
-
key:
|
|
67
|
+
"aria-level": t.titleLevel + 1
|
|
68
|
+
}, n(a.$t("pix-anonymisation.prompt.title")), 9, de),
|
|
69
|
+
e("div", re, [
|
|
70
|
+
(o(!0), s(m, null, g(P.value, (d, r) => (o(), s("label", {
|
|
71
|
+
for: `${d}-${r}`,
|
|
72
|
+
key: d
|
|
78
73
|
}, [
|
|
79
|
-
|
|
80
|
-
id: `${
|
|
81
|
-
value:
|
|
74
|
+
F(e("input", {
|
|
75
|
+
id: `${d}-${r}`,
|
|
76
|
+
value: d,
|
|
82
77
|
class: "sr-only",
|
|
83
78
|
type: "checkbox",
|
|
84
79
|
"onUpdate:modelValue": u[0] || (u[0] = (h) => b.value = h)
|
|
85
|
-
}, null, 8,
|
|
86
|
-
[
|
|
80
|
+
}, null, 8, le), [
|
|
81
|
+
[T, b.value]
|
|
87
82
|
]),
|
|
88
|
-
|
|
89
|
-
], 8,
|
|
83
|
+
e("span", be, n(d), 1)
|
|
84
|
+
], 8, ie))), 128))
|
|
90
85
|
])
|
|
91
86
|
]),
|
|
92
|
-
|
|
93
|
-
"is-disabled": b.value.length === 0
|
|
87
|
+
V(z, {
|
|
88
|
+
"is-disabled": b.value.length === 0,
|
|
89
|
+
onClick: x
|
|
94
90
|
}, {
|
|
95
91
|
default: w(() => [
|
|
96
|
-
S(
|
|
92
|
+
S(n(a.$t("pix-anonymisation.buttons.checkNow")), 1)
|
|
97
93
|
]),
|
|
98
94
|
_: 1
|
|
99
95
|
}, 8, ["is-disabled"])
|
|
100
|
-
]
|
|
96
|
+
])) : (o(), s("div", {
|
|
101
97
|
key: 1,
|
|
102
98
|
class: _(["results", { "prompt-and-rephrase": v.value }])
|
|
103
99
|
}, [
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
e("div", pe, [
|
|
101
|
+
e("div", {
|
|
106
102
|
role: "heading",
|
|
107
103
|
class: "prompt-card__heading",
|
|
108
|
-
"aria-level":
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
(
|
|
112
|
-
|
|
113
|
-
class: _(["prompt-card-content-part",
|
|
114
|
-
}, d
|
|
104
|
+
"aria-level": t.titleLevel + 1
|
|
105
|
+
}, n(a.$t("pix-anonymisation.prompt.title")), 9, ce),
|
|
106
|
+
e("p", ve, [
|
|
107
|
+
(o(!0), s(m, null, g(B.value, ({ content: d, color: r }, h) => (o(), s("span", { key: h }, [
|
|
108
|
+
e("span", {
|
|
109
|
+
class: _(["prompt-card-content-part", r])
|
|
110
|
+
}, n(d), 3)
|
|
115
111
|
]))), 128))
|
|
116
112
|
]),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
(
|
|
113
|
+
e("p", ue, n(a.$t("pix-anonymisation.correction")), 1),
|
|
114
|
+
e("ul", me, [
|
|
115
|
+
(o(!0), s(m, null, g(R.value, (d) => (o(), s("li", { key: d }, n(d), 1))), 128))
|
|
120
116
|
])
|
|
121
117
|
]),
|
|
122
|
-
v.value ? (
|
|
123
|
-
|
|
118
|
+
v.value ? (o(), s("div", ge, [
|
|
119
|
+
e("div", {
|
|
124
120
|
role: "heading",
|
|
125
121
|
class: "prompt-card__heading",
|
|
126
|
-
"aria-level":
|
|
127
|
-
},
|
|
128
|
-
|
|
122
|
+
"aria-level": t.titleLevel + 1
|
|
123
|
+
}, n(a.$t("pix-anonymisation.rephrase.title")), 9, he),
|
|
124
|
+
e("p", fe, n(c.value.rephrase), 1)
|
|
129
125
|
])) : y("", !0),
|
|
130
|
-
v.value ? (
|
|
131
|
-
N.value ? y("", !0) : (
|
|
126
|
+
v.value ? (o(), s("p", _e, n(c.value.feedback), 1)) : y("", !0),
|
|
127
|
+
N.value ? y("", !0) : (o(), D(z, {
|
|
132
128
|
key: 2,
|
|
133
129
|
onClick: x,
|
|
134
130
|
class: "feedback-button"
|
|
135
131
|
}, {
|
|
136
132
|
default: w(() => [
|
|
137
|
-
S(
|
|
133
|
+
S(n(v.value ? a.$t("pix-anonymisation.buttons.nextPrompt") : a.$t("pix-anonymisation.buttons.displayRephrasing")), 1)
|
|
138
134
|
]),
|
|
139
135
|
_: 1
|
|
140
136
|
}))
|
|
@@ -142,15 +138,15 @@ const O = {}, J = {}, Q = {}, W = {}, X = {}, Y = {
|
|
|
142
138
|
])
|
|
143
139
|
], 512));
|
|
144
140
|
}
|
|
145
|
-
}),
|
|
146
|
-
G(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json":
|
|
147
|
-
const C = U(
|
|
148
|
-
configureApp(
|
|
149
|
-
$.changeLanguage(document?.documentElement?.lang || navigator.language),
|
|
141
|
+
}), xe = "html[data-v-0b04659e],body[data-v-0b04659e],div[data-v-0b04659e],span[data-v-0b04659e],applet[data-v-0b04659e],object[data-v-0b04659e],iframe[data-v-0b04659e],h1[data-v-0b04659e],h2[data-v-0b04659e],h3[data-v-0b04659e],h4[data-v-0b04659e],h5[data-v-0b04659e],h6[data-v-0b04659e],p[data-v-0b04659e],blockquote[data-v-0b04659e],pre[data-v-0b04659e],a[data-v-0b04659e],abbr[data-v-0b04659e],acronym[data-v-0b04659e],address[data-v-0b04659e],big[data-v-0b04659e],cite[data-v-0b04659e],code[data-v-0b04659e],del[data-v-0b04659e],dfn[data-v-0b04659e],em[data-v-0b04659e],img[data-v-0b04659e],ins[data-v-0b04659e],kbd[data-v-0b04659e],q[data-v-0b04659e],s[data-v-0b04659e],samp[data-v-0b04659e],small[data-v-0b04659e],strike[data-v-0b04659e],strong[data-v-0b04659e],sub[data-v-0b04659e],sup[data-v-0b04659e],tt[data-v-0b04659e],var[data-v-0b04659e],b[data-v-0b04659e],u[data-v-0b04659e],i[data-v-0b04659e],center[data-v-0b04659e],dl[data-v-0b04659e],dt[data-v-0b04659e],dd[data-v-0b04659e],ol[data-v-0b04659e],ul[data-v-0b04659e],li[data-v-0b04659e],fieldset[data-v-0b04659e],form[data-v-0b04659e],label[data-v-0b04659e],legend[data-v-0b04659e],table[data-v-0b04659e],caption[data-v-0b04659e],tbody[data-v-0b04659e],tfoot[data-v-0b04659e],thead[data-v-0b04659e],tr[data-v-0b04659e],th[data-v-0b04659e],td[data-v-0b04659e],article[data-v-0b04659e],aside[data-v-0b04659e],canvas[data-v-0b04659e],details[data-v-0b04659e],embed[data-v-0b04659e],figure[data-v-0b04659e],figcaption[data-v-0b04659e],footer[data-v-0b04659e],header[data-v-0b04659e],hgroup[data-v-0b04659e],menu[data-v-0b04659e],nav[data-v-0b04659e],output[data-v-0b04659e],ruby[data-v-0b04659e],section[data-v-0b04659e],summary[data-v-0b04659e],time[data-v-0b04659e],mark[data-v-0b04659e],audio[data-v-0b04659e],video[data-v-0b04659e]{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article[data-v-0b04659e],aside[data-v-0b04659e],details[data-v-0b04659e],figcaption[data-v-0b04659e],figure[data-v-0b04659e],footer[data-v-0b04659e],header[data-v-0b04659e],hgroup[data-v-0b04659e],menu[data-v-0b04659e],nav[data-v-0b04659e],section[data-v-0b04659e]{display:block}body[data-v-0b04659e]{line-height:1}ol[data-v-0b04659e],ul[data-v-0b04659e]{list-style:none}table[data-v-0b04659e]{border-collapse:collapse;border-spacing:0}[data-v-0b04659e]{color:#122647;font-style:normal;box-sizing:border-box}p[data-v-0b04659e],label[data-v-0b04659e],button[data-v-0b04659e]{font-family:Roboto,sans-serif;font-size:.875rem;font-weight:400}form[data-v-0b04659e],.results[data-v-0b04659e]{display:flex;flex-direction:column;gap:16px}button[data-v-0b04659e]{font-weight:700;margin:0 auto}.heading[data-v-0b04659e]{font-family:Nunito,Roboto,sans-serif;text-align:center;font-size:1.25rem;font-weight:700}.stepper-container[data-v-0b04659e]{display:flex;gap:6px;margin-bottom:16px;align-items:center}.stepper-container span[data-v-0b04659e]{font-size:.875rem;white-space:nowrap}.stepper-background[data-v-0b04659e]{background-color:#e8eaed;height:8px;flex:1 1 var(--step-width);border-radius:64px}.stepper-background.is-active .progress-bar[data-v-0b04659e]{background:#613fdd;height:8px;border-radius:64px;width:var(--progress-bar-width)}.stepper-background.is-finished[data-v-0b04659e]{background:#613fdd;height:8px;border-radius:64px;width:100%}.instruction[data-v-0b04659e]{text-align:center}.prompt-card[data-v-0b04659e]{border-radius:16px;border:1px solid #cdd1d9;padding:16px}.prompt-card__heading[data-v-0b04659e]{font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;margin-bottom:8px}.prompt-card-content[data-v-0b04659e]{display:flex;flex-wrap:wrap;border-radius:8px;background:#f4f5f7;padding:16px;gap:4px}.prompt-card-content>span[data-v-0b04659e]{padding:2px}.prompt-card-content-part[data-v-0b04659e]{padding:1px 4px;border-radius:4px;border:1px solid #cdd1d9;margin-bottom:5px}.prompt-card-content-part.red[data-v-0b04659e]{border-color:transparent;background:#e4766f}.prompt-card-content-part.green[data-v-0b04659e]{border-color:transparent;background:#54c590}input:checked~.prompt-card-content-part[data-v-0b04659e]{background:#ffdc76;border-color:transparent}input:focus~.prompt-card-content-part[data-v-0b04659e]{outline:1px solid black}.prompt-and-rephrase[data-v-0b04659e]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.prompt-and-rephrase .feedback[data-v-0b04659e]{grid-column:1/span 2;border-radius:16px;background:#eaf1ff;padding:16px}.feedback-button[data-v-0b04659e]{grid-column:1/span 2}.sr-only[data-v-0b04659e]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}@media screen and (max-width:768px){.prompt-card[data-v-0b04659e]{grid-column:1/span 2;margin-top:8px}.prompt-card.rephrase[data-v-0b04659e]{margin-top:0}.feedback[data-v-0b04659e]{margin-block:8px}}", ke = /* @__PURE__ */ I(ye, [["styles", [xe]], ["__scopeId", "data-v-0b04659e"]]);
|
|
142
|
+
G(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": M, "./locales/en.json": O, "./locales/es-419.json": J, "./locales/es.json": Q, "./locales/fr-BE.json": W, "./locales/fr.json": X, "./locales/it.json": Y, "./locales/nl.json": Z })).catch((t) => console.error(t));
|
|
143
|
+
const C = U(ke, {
|
|
144
|
+
configureApp(t) {
|
|
145
|
+
$.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(H, { i18next: $ });
|
|
150
146
|
}
|
|
151
147
|
});
|
|
152
|
-
C.prototype.normalizeProps = (
|
|
153
|
-
...
|
|
154
|
-
titleLevel: K(
|
|
148
|
+
C.prototype.normalizeProps = (t) => ({
|
|
149
|
+
...t,
|
|
150
|
+
titleLevel: K(t.titleLevel)
|
|
155
151
|
});
|
|
156
152
|
window.customElements.define("pix-anonymisation", C);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as p, i as r, b
|
|
3
|
-
import { a as s,
|
|
1
|
+
import { b as u, g as d, c as a, o as l, a as t, t as i, F as o, e as m, _ as f, d as v } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { a as p, i as r, b } from "../i18n-ekiZvzf6.js";
|
|
3
|
+
import { a as s, b as y } from "../normalize-props-DH0oPBss.js";
|
|
4
4
|
const S = {}, x = {}, L = {}, j = {}, A = {}, H = {
|
|
5
5
|
"pix-article": { byAuthor: "Par {{author}}" }
|
|
6
6
|
}, E = {}, O = {}, P = ["titleLevel"], B = { class: "article__metadata" }, N = { class: "article__author" }, T = ["innerHTML"], k = /* @__PURE__ */ u({
|
|
@@ -38,12 +38,12 @@ const S = {}, x = {}, L = {}, j = {}, A = {}, H = {
|
|
|
38
38
|
p(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": S, "./locales/en.json": x, "./locales/es-419.json": L, "./locales/es.json": j, "./locales/fr-BE.json": A, "./locales/fr.json": H, "./locales/it.json": E, "./locales/nl.json": O })).catch((e) => console.error(e));
|
|
39
39
|
const c = v(C, {
|
|
40
40
|
configureApp(e) {
|
|
41
|
-
r.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(
|
|
41
|
+
r.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(b, { i18next: r });
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
c.prototype.normalizeProps = (e) => ({
|
|
45
45
|
...e,
|
|
46
|
-
titleLevel:
|
|
46
|
+
titleLevel: y(e.titleLevel),
|
|
47
47
|
highlightedSentence: s(e.highlightedSentence),
|
|
48
48
|
colorOfHighlightSentence: s(e.colorOfHighlightSentence)
|
|
49
49
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as ie, i as E, b as te } from "../i18n-
|
|
3
|
-
import { N as H } from "../NavigationButton.ce-
|
|
4
|
-
import { B as I } from "../ButtonTooltip.ce-
|
|
5
|
-
import { a as ne,
|
|
1
|
+
import { y as W, x as Y, X as q, Y as K, Z as O, g as h, v as A, L as N, $ as V, b as j, c as l, o, n as S, a as g, B, q as X, H as P, t as b, k as f, _ as C, r as T, j as J, E as y, s as D, h as Q, K as $, F as M, e as R, f as z, d as ee } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { a as ie, i as E, b as te } from "../i18n-ekiZvzf6.js";
|
|
3
|
+
import { N as H } from "../NavigationButton.ce-CA1M8sgV.js";
|
|
4
|
+
import { B as I } from "../ButtonTooltip.ce-CtHo2Dwx.js";
|
|
5
|
+
import { a as ne, b as k, u as ae } from "../normalize-props-DH0oPBss.js";
|
|
6
6
|
const se = {}, oe = {
|
|
7
7
|
"pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
|
|
8
8
|
}, le = {}, re = {
|
|
@@ -36,7 +36,7 @@ function _(e) {
|
|
|
36
36
|
}
|
|
37
37
|
// @__NO_SIDE_EFFECTS__
|
|
38
38
|
function he() {
|
|
39
|
-
const e =
|
|
39
|
+
const e = A(!1), i = O();
|
|
40
40
|
return i && W(() => {
|
|
41
41
|
e.value = !0;
|
|
42
42
|
}, i), e;
|
|
@@ -77,7 +77,7 @@ function we(e, i = {
|
|
|
77
77
|
const { window: s = G, box: c = "content-box" } = a, p = h(() => {
|
|
78
78
|
var t;
|
|
79
79
|
return (t = _(e)) === null || t === void 0 || (t = t.namespaceURI) === null || t === void 0 ? void 0 : t.includes("svg");
|
|
80
|
-
}), r =
|
|
80
|
+
}), r = A(i.width), d = A(i.height), { stop: x } = be(e, ([t]) => {
|
|
81
81
|
const v = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
82
82
|
if (s && p.value) {
|
|
83
83
|
const u = _(e);
|
|
@@ -144,7 +144,7 @@ const _e = ["aria-level"], Ce = ["innerHTML"], Se = {
|
|
|
144
144
|
}, null, 8, Ce)) : e.description ? (o(), l("p", Se, b(e.description), 1)) : B("", !0)
|
|
145
145
|
], 2));
|
|
146
146
|
}
|
|
147
|
-
}), $e = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width:576px){.slide-info.active{border:none;padding-left:0}}", Z = /* @__PURE__ */ C(Le, [["styles", [$e]]]),
|
|
147
|
+
}), $e = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width:576px){.slide-info.active{border:none;padding-left:0}}", Z = /* @__PURE__ */ C(Le, [["styles", [$e]]]), ke = ["aria-hidden", "aria-roledescription", "aria-label"], Ae = {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "image-container"
|
|
150
150
|
}, Be = ["alt", "src"], Te = {
|
|
@@ -187,7 +187,7 @@ const _e = ["aria-level"], Ce = ["innerHTML"], Se = {
|
|
|
187
187
|
"aria-label": e.label,
|
|
188
188
|
ref: "container"
|
|
189
189
|
}, [
|
|
190
|
-
e.type === "image" ? (o(), l("div",
|
|
190
|
+
e.type === "image" ? (o(), l("div", Ae, [
|
|
191
191
|
g("img", {
|
|
192
192
|
style: D({ "--max-width": `${e.slide.displayWidth}px`, "--max-height": `${e.slide.displayHeight}px`, "--svg-image-display": m.value }),
|
|
193
193
|
class: S({ "has-shadow": !e.disableStyleAroundImage }),
|
|
@@ -229,7 +229,7 @@ const _e = ["aria-level"], Ce = ["innerHTML"], Se = {
|
|
|
229
229
|
"title-level": e.titleLevel,
|
|
230
230
|
class: "sr-only"
|
|
231
231
|
}, null, 8, ["description", "title", "is-active", "title-level"])
|
|
232
|
-
], 10,
|
|
232
|
+
], 10, ke));
|
|
233
233
|
}
|
|
234
234
|
}), He = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:890px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;max-width:var(--max-width);max-height:var(--max-height);width:var(--svg-image-display, 100%);object-fit:contain;border-radius:16px}.image-container img.has-shadow{filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2))}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;flex:1;gap:12px;padding:16px;border-radius:16px;background:#fff}.text-image-container.has-shadow{filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2))}.text-image-container .img-container{width:calc(var(--image-display) / (var(--image-display) + var(--text-display)) * 100%);display:flex;justify-content:center;align-items:center}.text-image-container .img-container img{max-width:100%;width:auto;height:auto}.text-image-container .text-container{width:calc(var(--text-display) / (var(--image-display) + var(--text-display)) * 100%)}.text-image-container .text-container>*{margin:0}@media only screen and (max-width:576px){.license{font-size:.5rem}.image-container img{border-radius:8px;width:95%}.text-image-container{flex-direction:column}.text-image-container .img-container,.text-image-container .text-container{width:100%}}@media(prefers-reduced-motion:reduce){.slide{transition:none}}", Ie = /* @__PURE__ */ C(Ee, [["styles", [He]]]), We = {}, Oe = {
|
|
235
235
|
width: "25",
|
|
@@ -370,12 +370,12 @@ const U = ee(ti, {
|
|
|
370
370
|
});
|
|
371
371
|
U.prototype.normalizeProps = (e) => ({
|
|
372
372
|
...e,
|
|
373
|
-
titleLevel:
|
|
373
|
+
titleLevel: k(e.titleLevel),
|
|
374
374
|
imageTextDisplay: ne(e.imageTextDisplay),
|
|
375
375
|
slides: e.slides.map((i) => ({
|
|
376
376
|
...i,
|
|
377
|
-
displayHeight:
|
|
378
|
-
displayWidth:
|
|
377
|
+
displayHeight: k(i.displayHeight),
|
|
378
|
+
displayWidth: k(i.displayWidth),
|
|
379
379
|
license: ae(i.license)
|
|
380
380
|
}))
|
|
381
381
|
});
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { b as X, j as S, u as Y, r as h, g as i, G as ee, c as b, o as u, a as e, E as w, K as m, H as f, t as o, s as T, B as te, F as L, e as P, f as ae, m as se, k as oe, x as ie, _ as ne, d as re } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { u as le, i as B } from "../i18n-lite-t2jNOu0C.js";
|
|
3
|
+
import { B as V } from "../Button.ce-CTKrSDrC.js";
|
|
4
|
+
import { P as ce } from "../Popin.ce-DUQ7-GMT.js";
|
|
5
|
+
import { b as de } from "../normalize-props-DH0oPBss.js";
|
|
6
|
+
const pe = {
|
|
7
|
+
"pix-combinaisons": { findCombinations: "Trouvez les combinaisons", discoverCombinations: "Combinaisons découvertes", progression: "Progression", validate: "Valider", ariaValidate: "Valider la combinaison", displayAllCombinations: "Voir toutes les combinaisons", combinationAlreadyTried: "Vous avez déjà essayé cette combinaison", fourPasswords: "4 mots de passe sont possibles. C’est peu !", easilyTestable: "Une personne peut facilement tester toutes les combinaisons à la main.", next: "Suivant", soManyPasswords: "27 mots de passe sont possibles !", feedbackSoManyPasswords: "Environ 7 fois plus de combinaisons qu’avant. Ça augmente vite dis donc ! 😱\u2028Quand on ajoute des caractères et qu’on allonge le mot de passe, il faut beaucoup plus de temps pour tout tester à la main.", completed: "Terminé", backspace: "Retour en arrière", currentStep: "{{step}} {{number}}", step: "Étape", numberOfChars: "{{number}} caractères", completionState: "Vous avez trouvé {{percent}} des combinaisons possibles" }
|
|
8
|
+
}, A = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.8333%209.16675H4.16667C3.24619%209.16675%202.5%209.91294%202.5%2010.8334V16.6667C2.5%2017.5872%203.24619%2018.3334%204.16667%2018.3334H15.8333C16.7538%2018.3334%2017.5%2017.5872%2017.5%2016.6667V10.8334C17.5%209.91294%2016.7538%209.16675%2015.8333%209.16675Z'%20stroke='%235E6C84'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.83331%209.16675V5.83341C5.83331%204.72835%206.2723%203.66854%207.0537%202.88714C7.8351%202.10573%208.89491%201.66675%209.99998%201.66675C11.105%201.66675%2012.1649%202.10573%2012.9463%202.88714C13.7277%203.66854%2014.1666%204.72835%2014.1666%205.83341V9.16675'%20stroke='%235E6C84'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", ue = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.83713%207.37459C10.522%206.70686%2011.4406%206.33317%2012.3971%206.33325H26.1265C26.9238%206.33325%2027.8518%206.55459%2028.6105%207.02525C29.3825%207.50259%2030.0905%208.32392%2030.0905%209.49992V22.4999C30.0905%2023.6759%2029.3825%2024.4959%2028.6105%2024.9746C27.8597%2025.4244%2027.0016%2025.6635%2026.1265%2025.6666H12.3971C11.4406%2025.6667%2010.522%2025.293%209.83713%2024.6253L2.70379%2017.6706C2.48084%2017.4532%202.30365%2017.1934%202.18267%2016.9065C2.06169%2016.6195%201.99936%2016.3113%201.99936%2015.9999C1.99936%2015.6885%202.06169%2015.3803%202.18267%2015.0934C2.30365%2014.8064%202.48084%2014.5466%202.70379%2014.3293L9.83713%207.37459ZM18.7065%2012.6266C18.6149%2012.5283%2018.5045%2012.4495%2018.3818%2012.3949C18.2592%2012.3402%2018.1268%2012.3108%2017.9925%2012.3085C17.8582%2012.3061%2017.7248%2012.3308%2017.6003%2012.3811C17.4758%2012.4314%2017.3627%2012.5062%2017.2677%2012.6012C17.1728%2012.6962%2017.0979%2012.8093%2017.0476%2012.9338C16.9973%2013.0583%2016.9726%2013.1917%2016.975%2013.3259C16.9774%2013.4602%2017.0068%2013.5926%2017.0614%2013.7153C17.1161%2013.838%2017.1949%2013.9484%2017.2931%2014.0399L19.2531%2015.9999L17.2931%2017.9599C17.1949%2018.0515%2017.1161%2018.1619%2017.0614%2018.2845C17.0068%2018.4072%2016.9774%2018.5396%2016.975%2018.6739C16.9726%2018.8082%2016.9973%2018.9415%2017.0476%2019.066C17.0979%2019.1906%2017.1728%2019.3037%2017.2677%2019.3986C17.3627%2019.4936%2017.4758%2019.5685%2017.6003%2019.6187C17.7248%2019.669%2017.8582%2019.6937%2017.9925%2019.6914C18.1268%2019.689%2018.2592%2019.6596%2018.3818%2019.605C18.5045%2019.5503%2018.6149%2019.4715%2018.7065%2019.3733L20.6665%2017.4133L22.6265%2019.3733C22.718%2019.4715%2022.8284%2019.5503%2022.9511%2019.605C23.0737%2019.6596%2023.2062%2019.689%2023.3404%2019.6914C23.4747%2019.6937%2023.6081%2019.669%2023.7326%2019.6187C23.8571%2019.5685%2023.9702%2019.4936%2024.0652%2019.3986C24.1601%2019.3037%2024.235%2019.1906%2024.2853%2019.066C24.3356%2018.9415%2024.3603%2018.8082%2024.3579%2018.6739C24.3555%2018.5396%2024.3262%2018.4072%2024.2715%2018.2845C24.2168%2018.1619%2024.138%2018.0515%2024.0398%2017.9599L22.0798%2015.9999L24.0398%2014.0399C24.138%2013.9484%2024.2168%2013.838%2024.2715%2013.7153C24.3262%2013.5926%2024.3555%2013.4602%2024.3579%2013.3259C24.3603%2013.1917%2024.3356%2013.0583%2024.2853%2012.9338C24.235%2012.8093%2024.1601%2012.6962%2024.0652%2012.6012C23.9702%2012.5062%2023.8571%2012.4314%2023.7326%2012.3811C23.6081%2012.3308%2023.4747%2012.3061%2023.3404%2012.3085C23.2062%2012.3108%2023.0737%2012.3402%2022.9511%2012.3949C22.8284%2012.4495%2022.718%2012.5283%2022.6265%2012.6266L20.6665%2014.5866L18.7065%2012.6266Z'%20fill='%232C75FF'/%3e%3c/svg%3e", fe = { class: "stepper" }, be = ["aria-hidden"], me = { class: "character-value" }, ve = { class: "sr-only" }, ge = { class: "character-info" }, he = ["aria-hidden"], xe = { class: "character-value" }, Ce = { class: "sr-only" }, we = { class: "character-info" }, ye = { class: "cards" }, ke = { class: "card card-left" }, _e = ["aria-level"], Le = ["src"], Pe = {
|
|
9
|
+
class: "sr-only",
|
|
10
|
+
"aria-live": "polite"
|
|
11
|
+
}, Ve = {
|
|
12
|
+
class: "placeholders",
|
|
13
|
+
id: "letters",
|
|
14
|
+
"aria-live": "polite"
|
|
15
|
+
}, Be = { class: "letters-and-back" }, $e = ["src"], je = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "doublon-feedback",
|
|
18
|
+
"aria-live": "polite"
|
|
19
|
+
}, ze = { class: "card card-right" }, Se = ["aria-level"], Te = ["src"], Ae = ["aria-live"], Ee = /* @__PURE__ */ X({
|
|
20
|
+
__name: "PixCombinaisons.ce",
|
|
21
|
+
props: {
|
|
22
|
+
wontWait: { type: Boolean, default: !1 },
|
|
23
|
+
titleLevel: { default: 2, type: Number }
|
|
24
|
+
},
|
|
25
|
+
setup(d, { expose: M }) {
|
|
26
|
+
const { t: l } = le(), D = S("combination"), $ = S("wrapper"), F = Y(), n = h([]), x = h(!1), c = h([]), p = h(1), k = h(!1), y = h(!1), N = i(() => n.value.length === C.value.length || v.value), R = i(() => n.value.length === 0 || v.value), H = i(() => n.value.length !== C.value.length && !v.value || y.value), v = i(() => c.value.length >= 7), C = i(() => ["A", "B", "C"].slice(0, p.value + 1)), I = i(() => c.value.length === _.value.length && !k.value), q = i(() => p.value === 1 ? {
|
|
27
|
+
title: l("pix-combinaisons.fourPasswords"),
|
|
28
|
+
content: l("pix-combinaisons.easilyTestable"),
|
|
29
|
+
textButton: l("pix-combinaisons.next")
|
|
30
|
+
} : {
|
|
31
|
+
title: l("pix-combinaisons.soManyPasswords"),
|
|
32
|
+
content: l("pix-combinaisons.feedbackSoManyPasswords"),
|
|
33
|
+
textButton: l("pix-combinaisons.completed")
|
|
34
|
+
}), O = i(() => v.value ? l("pix-combinaisons.displayAllCombinations") : l("pix-combinaisons.validate")), Z = i(() => v.value ? l("pix-combinaisons.displayAllCombinations") : l("pix-combinaisons.ariaValidate")), j = i(() => `${(c.value.length * 100 / _.value.length).toFixed(0)}%`), G = i(() => `${p.value === 1 ? "50" : "100"}%`), _ = i(() => z(C.value));
|
|
35
|
+
function W() {
|
|
36
|
+
n.value = [], x.value = !1, c.value = [], p.value = 1, k.value = !1, y.value = !1;
|
|
37
|
+
}
|
|
38
|
+
function z(t, a = t) {
|
|
39
|
+
const r = [];
|
|
40
|
+
for (let s = 0; s < t.length; s++)
|
|
41
|
+
for (let g = 0; g < a.length; g++)
|
|
42
|
+
r.push(`${t[s]}${a[g]}`);
|
|
43
|
+
return r[0].length !== a.length ? z(r, t) : r;
|
|
44
|
+
}
|
|
45
|
+
async function K() {
|
|
46
|
+
if (p.value === 2) {
|
|
47
|
+
k.value = !0;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
n.value = [], x.value = !1, c.value = [], await ie(), $.value.focus(), p.value = 2;
|
|
51
|
+
}
|
|
52
|
+
function Q(t) {
|
|
53
|
+
n.value.push(t);
|
|
54
|
+
}
|
|
55
|
+
async function U() {
|
|
56
|
+
if (v.value) {
|
|
57
|
+
y.value = !0;
|
|
58
|
+
const a = _.value.filter((r) => !c.value.includes(r));
|
|
59
|
+
for (const r of a)
|
|
60
|
+
c.value.push(r), D.value.at(-1).scrollIntoView({ behavior: "smooth" }), d.wontWait || await new Promise((s) => setTimeout(s, 200));
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const t = n.value.join("");
|
|
64
|
+
if (J(c.value, t)) {
|
|
65
|
+
x.value = !0, n.value = [];
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
c.value.push(t), n.value = [], x.value = !1;
|
|
69
|
+
}
|
|
70
|
+
function J(t, a) {
|
|
71
|
+
return t.includes(a);
|
|
72
|
+
}
|
|
73
|
+
return M({
|
|
74
|
+
reset: W
|
|
75
|
+
}), (t, a) => {
|
|
76
|
+
const r = ee("i18n");
|
|
77
|
+
return u(), b("div", {
|
|
78
|
+
ref_key: "wrapper",
|
|
79
|
+
ref: $,
|
|
80
|
+
class: "wrapper",
|
|
81
|
+
tabindex: "-1"
|
|
82
|
+
}, [
|
|
83
|
+
e("div", fe, [
|
|
84
|
+
e("div", {
|
|
85
|
+
class: "character",
|
|
86
|
+
"aria-hidden": p.value !== 1
|
|
87
|
+
}, [
|
|
88
|
+
e("p", me, [
|
|
89
|
+
w(r, { t: "pix-combinaisons.currentStep" }, {
|
|
90
|
+
step: m(() => [
|
|
91
|
+
e("span", ve, o(t.$t("pix-combinaisons.step")), 1)
|
|
92
|
+
]),
|
|
93
|
+
number: m(() => [...a[1] || (a[1] = [
|
|
94
|
+
f("1", -1)
|
|
95
|
+
])]),
|
|
96
|
+
_: 1
|
|
97
|
+
})
|
|
98
|
+
]),
|
|
99
|
+
e("p", ge, [
|
|
100
|
+
f(o(t.$t("pix-combinaisons.numberOfChars", { number: 2 })), 1),
|
|
101
|
+
a[2] || (a[2] = e("span", null, "(a,b)", -1))
|
|
102
|
+
])
|
|
103
|
+
], 8, be),
|
|
104
|
+
e("div", {
|
|
105
|
+
class: "stepper-bar",
|
|
106
|
+
style: T({ "--step-progression": G.value })
|
|
107
|
+
}, null, 4),
|
|
108
|
+
e("div", {
|
|
109
|
+
class: "character",
|
|
110
|
+
"aria-hidden": p.value !== 2
|
|
111
|
+
}, [
|
|
112
|
+
e("p", xe, [
|
|
113
|
+
w(r, { t: "pix-combinaisons.currentStep" }, {
|
|
114
|
+
step: m(() => [
|
|
115
|
+
e("span", Ce, o(t.$t("pix-combinaisons.step")), 1)
|
|
116
|
+
]),
|
|
117
|
+
number: m(() => [...a[3] || (a[3] = [
|
|
118
|
+
f("2", -1)
|
|
119
|
+
])]),
|
|
120
|
+
_: 1
|
|
121
|
+
})
|
|
122
|
+
]),
|
|
123
|
+
e("p", we, [
|
|
124
|
+
f(o(t.$t("pix-combinaisons.numberOfChars", { number: 3 })), 1),
|
|
125
|
+
a[4] || (a[4] = e("span", null, "(a,b,c)", -1))
|
|
126
|
+
])
|
|
127
|
+
], 8, he)
|
|
128
|
+
]),
|
|
129
|
+
e("div", ye, [
|
|
130
|
+
e("section", ke, [
|
|
131
|
+
e("div", {
|
|
132
|
+
id: "title",
|
|
133
|
+
role: "heading",
|
|
134
|
+
"aria-level": d.titleLevel + 1
|
|
135
|
+
}, [
|
|
136
|
+
e("img", {
|
|
137
|
+
alt: "",
|
|
138
|
+
src: A
|
|
139
|
+
}, null, 8, Le),
|
|
140
|
+
f(" " + o(t.$t("pix-combinaisons.findCombinations")), 1)
|
|
141
|
+
], 8, _e),
|
|
142
|
+
e("p", null, o(t.$t("pix-combinaisons.progression")), 1),
|
|
143
|
+
e("div", {
|
|
144
|
+
class: "progress-bar",
|
|
145
|
+
style: T({ "--completion": j.value })
|
|
146
|
+
}, null, 4),
|
|
147
|
+
e("p", Pe, o(t.$t("pix-combinaisons.completionState", { percent: j.value })), 1),
|
|
148
|
+
e("div", Ve, [
|
|
149
|
+
(u(!0), b(L, null, P(C.value.length, (s, g) => (u(), b("p", {
|
|
150
|
+
class: "placeholder",
|
|
151
|
+
key: s
|
|
152
|
+
}, o(n.value[g]), 1))), 128))
|
|
153
|
+
]),
|
|
154
|
+
e("div", Be, [
|
|
155
|
+
(u(!0), b(L, null, P(C.value, (s) => (u(), ae(V, {
|
|
156
|
+
"is-disabled": N.value,
|
|
157
|
+
class: "letter",
|
|
158
|
+
onClick: (g) => Q(s),
|
|
159
|
+
key: s,
|
|
160
|
+
"aria-controls": "letters"
|
|
161
|
+
}, {
|
|
162
|
+
default: m(() => [
|
|
163
|
+
f(o(s), 1)
|
|
164
|
+
]),
|
|
165
|
+
_: 2
|
|
166
|
+
}, 1032, ["is-disabled", "onClick"]))), 128)),
|
|
167
|
+
w(V, {
|
|
168
|
+
"is-disabled": R.value,
|
|
169
|
+
class: "backspace",
|
|
170
|
+
onClick: a[0] || (a[0] = (s) => n.value.pop()),
|
|
171
|
+
"aria-label": t.$t("pix-combinaisons.backspace")
|
|
172
|
+
}, {
|
|
173
|
+
default: m(() => [
|
|
174
|
+
e("img", {
|
|
175
|
+
src: ue,
|
|
176
|
+
alt: ""
|
|
177
|
+
}, null, 8, $e)
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["is-disabled", "aria-label"])
|
|
181
|
+
]),
|
|
182
|
+
w(V, {
|
|
183
|
+
class: "validate",
|
|
184
|
+
"is-disabled": H.value,
|
|
185
|
+
onClick: U,
|
|
186
|
+
"aria-label": Z.value,
|
|
187
|
+
"aria-describedby": "letters"
|
|
188
|
+
}, {
|
|
189
|
+
default: m(() => [
|
|
190
|
+
f(o(O.value), 1)
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
}, 8, ["is-disabled", "aria-label"]),
|
|
194
|
+
x.value ? (u(), b("p", je, o(t.$t("pix-combinaisons.combinationAlreadyTried")), 1)) : te("", !0)
|
|
195
|
+
]),
|
|
196
|
+
e("section", ze, [
|
|
197
|
+
e("div", {
|
|
198
|
+
role: "heading",
|
|
199
|
+
"aria-level": d.titleLevel + 1
|
|
200
|
+
}, [
|
|
201
|
+
e("img", {
|
|
202
|
+
alt: "",
|
|
203
|
+
src: A
|
|
204
|
+
}, null, 8, Te),
|
|
205
|
+
f(" " + o(t.$t("pix-combinaisons.discoverCombinations")), 1)
|
|
206
|
+
], 8, Se),
|
|
207
|
+
e("ul", {
|
|
208
|
+
class: "results",
|
|
209
|
+
"aria-live": y.value ? "polite" : "off"
|
|
210
|
+
}, [
|
|
211
|
+
(u(!0), b(L, null, P(c.value, (s) => (u(), b("li", {
|
|
212
|
+
ref_for: !0,
|
|
213
|
+
ref: "combination",
|
|
214
|
+
key: s
|
|
215
|
+
}, o(s), 1))), 128))
|
|
216
|
+
], 8, Ae)
|
|
217
|
+
])
|
|
218
|
+
]),
|
|
219
|
+
w(ce, se(q.value, {
|
|
220
|
+
show: I.value,
|
|
221
|
+
"root-element": oe(F),
|
|
222
|
+
onPrimaryAction: K
|
|
223
|
+
}), null, 16, ["show", "root-element"])
|
|
224
|
+
], 512);
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
}), 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}*{box-sizing:border-box;font-family:Nunito,Roboto,sans-serif;color:#122647}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.doublon-feedback{border-radius:8px;background:#eaf1ff;padding:8px}.wrapper{position:relative;padding:24px 16px}.stepper{display:flex;align-items:center;gap:8px;width:60%;margin:0 auto;margin-bottom:calc(28px + 1.5rem)}.stepper .stepper-bar{height:4px;width:100%;background:#cdd1d9;border-radius:4px;position:relative}.stepper .stepper-bar:after{content:"";position:absolute;border-radius:inherit;background:#155dfc;width:var(--step-progression);height:100%}.stepper .character{display:flex;justify-content:center;align-items:center;position:relative;font-size:.875rem;font-weight:700;border-radius:50%;background-color:#3d68ff;aspect-ratio:1;width:32px}.stepper .character-value{color:#fff}.stepper .character-info{position:absolute;width:fit-content;color:#3d68ff;top:100%;left:50%;transform:translate(-50%);line-height:.75rem;text-align:center}.stepper .character-info span{display:block;font-size:.75rem;color:inherit}.cards{display:flex;gap:24px;justify-content:center;flex-wrap:wrap}.card{width:100%;max-width:356px;border-radius:24px;background:#fff;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset;padding:24px}.card p{font-family:Roboto,sans-serif;font-size:.875rem;margin-block:8px}.card-left .progress-bar{height:12px;border-radius:12px;background:#cdd1d9;margin-bottom:24px;position:relative}.card-left .progress-bar:after{content:"";position:absolute;left:0;border-radius:12px;background:linear-gradient(90deg,#2b7fff,#00b8db);height:100%;width:var(--completion)}.card-left .placeholders{display:flex;gap:8px;justify-content:center}.card-left .placeholder{font-size:1.25rem;border-radius:10px;border:2px dashed #cdd1d9;background:#f4f5f7;width:64px;height:80px;text-align:center;display:flex;align-items:center;justify-content:center;font-weight:700}.card-left .letters-and-back{display:flex;gap:8px;justify-content:center;cursor:pointer;margin:16px 0}.card-left .letter{padding-block:16px;border-radius:10px;background:#155dfc;color:#fff;font-size:1.25rem;font-weight:700;text-align:center}.card-left .letter:hover{background:#155dfcdd}.card-left .letter[aria-disabled=true]{background:#155dfc50}.card-left .backspace,.card-left .backspace:hover,.card-left .backspace[aria-disabled=true]{background:#f4f5f7}.card-left .backspace[aria-disabled=true] img{opacity:.5}.card-left .validate{width:100%;font-weight:700;font-size:1rem;margin-bottom:24px}.card-right{display:flex;flex-direction:column}.results{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;overflow-y:auto;max-height:300px}.results li{list-style:none;border-radius:10px;border:2px solid #2c75ff;background:#eaf1ff;padding:15px 0;text-align:center;font-weight:700}div[role=heading]{font-size:1.25rem;font-weight:700;display:flex;align-items:center;gap:8px;margin-bottom:24px}button{border:none;border-radius:10px;flex:1;cursor:pointer}', De = /* @__PURE__ */ ne(Ee, [["styles", [Me]]]);
|
|
228
|
+
B.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/fr.json": pe }));
|
|
229
|
+
const E = re(De, {
|
|
230
|
+
configureApp(d) {
|
|
231
|
+
B.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(B);
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
E.prototype.normalizeProps = (d) => ({
|
|
235
|
+
...d,
|
|
236
|
+
titleLevel: de(d.titleLevel)
|
|
237
|
+
});
|
|
238
|
+
window.customElements.define("pix-combinaisons", E);
|