@1024pix/epreuves-components 2.9.0 → 4.0.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.
Files changed (56) hide show
  1. package/dist/Button.ce-CTKrSDrC.js +27 -0
  2. package/dist/{ButtonTooltip.ce-CIo_7tm0.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
  3. 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
  4. package/dist/{LLMMessage.ce-y0pOYUCI.js → LLMMessage.ce-Bdmf0R1g.js} +7 -7
  5. package/dist/{Loading.ce-Cxcx64IX.js → Loading.ce-Bh7-h48F.js} +1 -1
  6. package/dist/{NavigationButton.ce-DpzmC2Dd.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
  7. package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
  8. package/dist/Popin.ce-DUQ7-GMT.js +197 -0
  9. package/dist/{Retry-BYnFnneH.js → Retry-BZf7NJz9.js} +1 -1
  10. package/dist/Stepper.ce-B1yDelzC.js +27 -0
  11. package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js} +29 -28
  12. package/dist/components/analyse-mails-phishing.ce.js.js +99 -98
  13. package/dist/components/calcul-impact.ce.js.js +9 -9
  14. package/dist/components/capacity-calculation.ce.js.js +28 -28
  15. package/dist/components/clickable-image.ce.js.js +11 -11
  16. package/dist/components/complete-phrase.ce.js.js +7 -7
  17. package/dist/components/flip-cards.ce.js.js +5 -5
  18. package/dist/components/image-quiz.ce.js.js +4 -4
  19. package/dist/components/image-quizzes.ce.js.js +3 -3
  20. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  21. package/dist/components/llm-messages.ce.js.js +3 -3
  22. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  23. package/dist/components/mdp-classement.ce.js.js +29 -29
  24. package/dist/components/message-conversation.ce.js.js +18 -18
  25. package/dist/components/mobile-shell.ce.js.js +1 -1
  26. package/dist/components/phishing-message.ce.js.js +27 -27
  27. package/dist/components/phishing-notification.ce.js.js +23 -23
  28. package/dist/components/pix-anonymisation.ce.js.js +83 -87
  29. package/dist/components/pix-article.ce.js.js +19 -19
  30. package/dist/components/pix-carousel.ce.js.js +13 -13
  31. package/dist/components/pix-combinaisons.ce.js.js +238 -0
  32. package/dist/components/pix-cursor.ce.js.js +19 -19
  33. package/dist/components/pix-mail-message.ce.js.js +11 -0
  34. package/dist/components/proteger-mail-spam.ce.js.js +131 -0
  35. package/dist/components/qcm-deepfake.ce.js.js +21 -21
  36. package/dist/components/quiz-stepper.ce.js.js +8 -7
  37. package/dist/components/select-conversation.ce.js.js +15 -15
  38. package/dist/components/template-mail.ce.js.js +49 -151
  39. package/dist/components/test-top-mdp.ce.js.js +14 -14
  40. package/dist/components/trouver-mdp-rs.ce.js.js +201 -239
  41. package/dist/{i18n-BJ6FRipD.js → i18n-ekiZvzf6.js} +9 -9
  42. package/dist/{i18n-lite-Dn1Iqj1Y.js → i18n-lite-t2jNOu0C.js} +8 -8
  43. package/dist/{image-quiz.ce-DvpG9mbT.js → image-quiz.ce-DqalWHKw.js} +11 -11
  44. package/dist/index-BpqxFmwz.js +10 -0
  45. package/dist/index.js +4 -1
  46. package/dist/metadata.js +31 -19
  47. package/dist/nl-Bonww6Q2.js +13 -0
  48. package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
  49. package/dist/props.examples.js +130 -0
  50. package/dist/schema.js +108 -72
  51. package/dist/{shadow-dom-Db7VMkC0.js → shadow-dom-C3AZuSZe.js} +1 -1
  52. package/dist/temporal.utils-7Uvm62ss.js +10926 -0
  53. package/package.json +3 -2
  54. package/dist/Button.ce-CkwcReY5.js +0 -18
  55. package/dist/index-BCutQvmP.js +0 -34
  56. package/dist/temporal.utils-CotrC6ao.js +0 -14456
@@ -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);
@@ -1,6 +1,6 @@
1
- import { d as V, r as k, h as y, y as m, G as A, c as a, o as i, a as r, z as S, k as d, t as u, F as f, b, Q as H, E as g, n as C, K as L, B as F, l as P, _ as D, f as G } from "../_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { a as K, i as w, b as Q } from "../i18n-BJ6FRipD.js";
3
- import { N as j } from "../NavigationButton.ce-DpzmC2Dd.js";
1
+ import { b as O, r as k, h as y, g, G as V, c as a, o as i, a as r, A as S, k as d, t as u, F as f, e as b, Q as H, E as m, n as C, K as L, B as F, l as P, _ as D, d as G } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { a as K, i as w, b as Q } from "../i18n-ekiZvzf6.js";
3
+ import { N as j } from "../NavigationButton.ce-CA1M8sgV.js";
4
4
  const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
5
5
  "pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
6
6
  }, Y = {}, Z = {}, ee = ["for"], oe = {
@@ -12,35 +12,35 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
12
12
  }, ue = {
13
13
  key: 0,
14
14
  class: "confirm"
15
- }, pe = ["innerHTML", "aria-hidden"], ve = /* @__PURE__ */ V({
15
+ }, pe = ["innerHTML", "aria-hidden"], ve = /* @__PURE__ */ O({
16
16
  __name: "PixCursor.ce",
17
17
  props: {
18
18
  options: { type: Array }
19
19
  },
20
20
  setup(n, { expose: M }) {
21
- const p = n, s = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), _ = y(), I = m(() => s.value === p.options.length - 1), N = m(() => s.value === 0), c = m(() => Number(s.value));
22
- function z() {
21
+ const p = n, s = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), _ = y(), I = g(() => s.value === p.options.length - 1), N = g(() => s.value === 0), c = g(() => Number(s.value));
22
+ function T() {
23
23
  o.value = !0;
24
24
  }
25
- function T() {
25
+ function $() {
26
26
  o.value || (s.value = Math.max(0, c.value - 1));
27
27
  }
28
- function $() {
28
+ function z() {
29
29
  o.value || (s.value = Math.min(p.options.length - 1, c.value + 1));
30
30
  }
31
31
  function h(l) {
32
32
  o.value || (s.value = l);
33
33
  }
34
- function B() {
34
+ function A() {
35
35
  o.value = !1, s.value = Math.floor(p.options.length / 2);
36
36
  }
37
37
  return M({
38
- reset: B
38
+ reset: A
39
39
  }), (l, x) => {
40
- const E = A("i18next");
40
+ const B = V("i18next");
41
41
  return i(), a("form", {
42
42
  class: "pix-cursor",
43
- onSubmit: P(z, ["prevent"])
43
+ onSubmit: P(T, ["prevent"])
44
44
  }, [
45
45
  r("div", null, [
46
46
  r("label", {
@@ -49,13 +49,13 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
49
49
  }, u(l.$t("pix-cursor.selectAnOption")), 9, ee),
50
50
  r("ul", oe, [
51
51
  (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("li", {
52
- onClick: (O) => h(e),
52
+ onClick: (E) => h(e),
53
53
  key: e
54
54
  }, u(t.label), 9, te))), 128))
55
55
  ]),
56
56
  r("datalist", { id: d(_) }, [
57
57
  (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("option", {
58
- onClick: (O) => h(e),
58
+ onClick: (E) => h(e),
59
59
  key: e,
60
60
  value: e,
61
61
  label: t.label
@@ -73,8 +73,8 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
73
73
  [H, s.value]
74
74
  ]),
75
75
  r("div", se, [
76
- g(j, {
77
- onClick: T,
76
+ m(j, {
77
+ onClick: $,
78
78
  disabled: o.value || N.value,
79
79
  label: l.$t("pix-cursor.previous"),
80
80
  "aria-controls": d(v),
@@ -91,7 +91,7 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
91
91
  }),
92
92
  "aria-hidden": e !== c.value
93
93
  }, [
94
- g(E, {
94
+ m(B, {
95
95
  translation: l.$t("pix-cursor.youHaveChosen")
96
96
  }, {
97
97
  choice: L(() => [
@@ -101,8 +101,8 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
101
101
  }, 1032, ["translation"])
102
102
  ], 10, le))), 128))
103
103
  ]),
104
- g(j, {
105
- onClick: $,
104
+ m(j, {
105
+ onClick: z,
106
106
  disabled: o.value || I.value,
107
107
  label: l.$t("pix-cursor.next"),
108
108
  "aria-controls": d(v),
@@ -0,0 +1,11 @@
1
+ import { _ as o, a as _, b as a, c as l, d as n, e as i, f as t, g } from "../nl-Bonww6Q2.js";
2
+ import { d as m } from "../_plugin-vue_export-helper-D0N_62VD.js";
3
+ import { i as e } from "../i18n-lite-t2jNOu0C.js";
4
+ import { P as c } from "../PixMailMessage.ce-XPDbJiyC.js";
5
+ e.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": g, "./locales/en.json": t, "./locales/es-419.json": i, "./locales/es.json": n, "./locales/fr-BE.json": l, "./locales/fr.json": a, "./locales/it.json": _, "./locales/nl.json": o }));
6
+ const r = m(c, {
7
+ configureApp(s) {
8
+ e.changeLanguage(document?.documentElement?.lang || navigator.language), s.use(e);
9
+ }
10
+ });
11
+ window.customElements.define("pix-mail-message", r);
@@ -0,0 +1,131 @@
1
+ import { b as M, r as f, j as k, u as j, g as o, c as F, o as l, a as s, E as g, f as p, B as y, t as d, n as O, K as v, H as $, k as c, x as S, _ as V, d as K } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { u as D, i as b } from "../i18n-lite-t2jNOu0C.js";
3
+ import { S as I } from "../Stepper.ce-B1yDelzC.js";
4
+ import { _ as G, a as H, F as J } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
5
+ import { P as Q } from "../Popin.ce-DUQ7-GMT.js";
6
+ import { B as U } from "../Button.ce-CTKrSDrC.js";
7
+ import { P as W } from "../PixMailMessage.ce-XPDbJiyC.js";
8
+ import { u as w, a as X, b as Y } from "../normalize-props-DH0oPBss.js";
9
+ const Z = {
10
+ "proteger-mail-spam": { step: "Étape {{step}} sur {{totalStep}}", mailRecipent: "À moi", nextStepButton: "Continuer", successPopin: { title: "Se protéger, mais protéger aussi les autres.", content: "Dans le prochain exemple, l’interface dispose d'avantage de possibilités.", buttonLabel: "Suivant" }, feedback: { titleOk: "Bonne décision", titleKo: "Mauvais choix", step1: { reply: "Répondre confirme votre adresse mail et peut encourager l’escroc. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", forward: "Transférer ce message expose quelqu’un d’autre à l’arnaque, et ne vous empêche pas de recevoir d’autres mails de cet expéditeur. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", delete: "Supprimer ce message ne vous empêche pas d’en recevoir d’autres de cet expéditeur. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", blockSender: "En choisissant de bloquer l’expéditeur, vous ne recevrez plus de message de cet expéditeur." }, step2: { reply: "Répondre valide votre adresse mail et ne vous permet ni de vous protéger, ni de protéger les autres de cet escroc. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", forward: "Transférer ce message expose quelqu’un d’autre à l’arnaque. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", delete: "Supprimer ce message ne vous permet ni de vous protéger, ni de protéger les autres de cet escroc. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", blockSender: "En choisissant de bloquer l’expéditeur, vous vous protégez de cet escroc mais vous ne protégez pas les autres. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", reportSpam: " En signalant ce message, vous vous protégez et vous contribuez à la protection des autres, car cela améliore les filtres anti-spam de tous les utilisateurs." } } }
11
+ }, ee = {
12
+ class: "main-container",
13
+ ref: "container",
14
+ tabindex: "-1"
15
+ }, te = ["aria-level"], ae = { class: "header__description" }, ne = /* @__PURE__ */ M({
16
+ __name: "ProtegerMailSpam.ce",
17
+ props: {
18
+ titleLevel: { default: 2, type: Number },
19
+ steps: { type: Array }
20
+ },
21
+ setup(a, { expose: m }) {
22
+ const { t: e } = D(), t = f(0), n = f(""), u = f(!1), P = k("continue-button"), B = k("container"), C = j(), i = o(() => a.steps.at(t.value)), r = o(() => i.value.goodAction === n.value), h = o(() => t.value === a.steps.length - 1), q = o(() => n.value ? e(`proteger-mail-spam.feedback.step${t.value + 1}.${n.value}`) : ""), R = o(() => r.value ? e("proteger-mail-spam.feedback.titleOk") : e("proteger-mail-spam.feedback.titleKo")), A = o(() => r.value ? {
23
+ return: "disabled",
24
+ reply: "disabled",
25
+ forward: "disabled",
26
+ menu: "disabled"
27
+ } : i.value.actions);
28
+ function E() {
29
+ n.value = "", t.value = 0, u.value = !1;
30
+ }
31
+ async function L(x) {
32
+ n.value = x, await S(), r.value && !h.value && P.value?.buttonElement.focus();
33
+ }
34
+ async function N() {
35
+ t.value += 1, n.value = "", await S(), B.value.focus();
36
+ }
37
+ async function T() {
38
+ await N(), u.value = !1;
39
+ }
40
+ return m({
41
+ reset: E
42
+ }), (x, _) => (l(), F("div", ee, [
43
+ s("section", null, [
44
+ s("div", null, [
45
+ s("div", {
46
+ role: "heading",
47
+ "aria-level": a.titleLevel,
48
+ class: "header__title"
49
+ }, d(i.value.title), 9, te),
50
+ s("p", ae, d(i.value.description), 1)
51
+ ]),
52
+ g(I, {
53
+ step: t.value,
54
+ "steps-count": a.steps.length
55
+ }, null, 8, ["step", "steps-count"]),
56
+ g(W, {
57
+ actions: A.value,
58
+ mail: i.value.mail,
59
+ onAction: L
60
+ }, null, 8, ["actions", "mail"]),
61
+ s("div", {
62
+ class: O(["feedback", { "is-hidden": !n.value }]),
63
+ "aria-live": "polite"
64
+ }, [
65
+ n.value ? (l(), p(J, {
66
+ key: 0,
67
+ title: R.value
68
+ }, {
69
+ icon: v(() => [
70
+ r.value ? (l(), p(G, {
71
+ key: 0,
72
+ class: "feedback__icon",
73
+ "aria-hiden": "true"
74
+ })) : (l(), p(H, {
75
+ key: 1,
76
+ class: "feedback__icon",
77
+ "aria-hiden": "true"
78
+ }))
79
+ ]),
80
+ content: v(() => [
81
+ s("p", null, d(q.value), 1)
82
+ ]),
83
+ _: 1
84
+ }, 8, ["title"])) : y("", !0)
85
+ ], 2),
86
+ r.value && !h.value ? (l(), p(U, {
87
+ key: 0,
88
+ ref: "continue-button",
89
+ onClick: _[0] || (_[0] = (ie) => u.value = !0),
90
+ class: "next-button"
91
+ }, {
92
+ default: v(() => [
93
+ $(d(c(e)("proteger-mail-spam.nextStepButton")), 1)
94
+ ]),
95
+ _: 1
96
+ }, 512)) : y("", !0)
97
+ ]),
98
+ g(Q, {
99
+ content: c(e)("proteger-mail-spam.successPopin.content"),
100
+ title: c(e)("proteger-mail-spam.successPopin.title"),
101
+ show: u.value,
102
+ "text-button": c(e)("proteger-mail-spam.successPopin.buttonLabel"),
103
+ "root-element": c(C),
104
+ onPrimaryAction: T
105
+ }, null, 8, ["content", "title", "show", "text-button", "root-element"])
106
+ ], 512));
107
+ }
108
+ }), oe = "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}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}*{font-family:Roboto,Nunito,sans-serif}.main-container{position:relative}.main-container section{display:flex;flex-direction:column;align-items:center;color:#122647;padding:.5rem}.main-container section>:not(:first-child){margin-top:1.5rem}.main-container .header{font-style:normal;text-align:center}.main-container .header__title{font-family:Nunito,sans-serif;text-align:center;font-size:1.25rem;font-weight:700;line-height:28px;margin-bottom:.25rem}.main-container .header__description{text-align:center;font-family:Roboto,sans-serif;font-size:.875rem;line-height:20px}.main-container .feedback{width:100%}.main-container .feedback.is-hidden{margin-top:unset}.main-container .feedback__icon{width:1rem}.main-container .next-button{font-size:.875rem;font-weight:700;line-height:24px}", se = /* @__PURE__ */ V(ne, [["styles", [oe]]]);
109
+ b.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/fr.json": Z }));
110
+ const z = K(se, {
111
+ configureApp(a) {
112
+ b.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(b);
113
+ }
114
+ });
115
+ z.prototype.normalizeProps = (a) => {
116
+ const m = a.steps.map((e) => {
117
+ const t = {
118
+ ...e,
119
+ actions: w({
120
+ ...e.actions,
121
+ menuActions: w(e.actions?.menuActions)
122
+ })
123
+ };
124
+ return t.mail.sender.avatarColor = X(t.mail.sender.avatarColor), t;
125
+ });
126
+ return {
127
+ titleLevel: Y(a.titleLevel),
128
+ steps: m
129
+ };
130
+ };
131
+ window.customElements.define("proteger-mail-spam", z);
@@ -1,7 +1,7 @@
1
- import { d as y, y as b, c as i, o, a as s, B as v, t as d, n as w, _, R as E, S as A, r as x, z as O, H as V, P, g as G, j as M, F as $, b as C, e as F, k as Q, E as k, U, K as H, l as K, f as W } from "../_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { i as a, a as J, b as X } from "../i18n-BJ6FRipD.js";
3
- import { R as Y } from "../Retry-BYnFnneH.js";
4
- import { u as Z } from "../normalize-props-DtfVI0Xg.js";
1
+ import { b as y, g as b, c as i, o, a as s, B as v, t as d, n as w, _, U as E, V as R, r as x, A as O, H as V, P, q as G, j as M, F as $, e as C, f as F, k as Q, E as k, W as U, K as W, l as H, d as K } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { i as a, a as J, b as X } from "../i18n-ekiZvzf6.js";
3
+ import { R as Y } from "../Retry-BZf7NJz9.js";
4
+ import { b as Z } from "../normalize-props-DH0oPBss.js";
5
5
  const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
6
6
  "qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "les partitions de la chanson", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d'IA générative", in: "Entrée", out: "Sortie", waiting: "Logiciel d'IA générative", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo de Caroline :", generateVideo: "Générer la vidéo !", loading: "Chargement…", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Bien joué !", description: "C'est bien la vidéo de Caroline. Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." } }
7
7
  }, re = {}, se = {}, le = ["aria-hidden"], ce = ["aria-level"], de = ["src"], ue = {
@@ -65,7 +65,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
65
65
  }),
66
66
  emits: ["update:modelValue"],
67
67
  setup(e, { expose: u }) {
68
- const n = A(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
68
+ const n = R(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
69
69
  function h(p) {
70
70
  if (t.value) {
71
71
  p.preventDefault();
@@ -104,7 +104,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
104
104
  V(" " + d(e.label), 1)
105
105
  ], 2));
106
106
  }
107
- }), xe = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", we = /* @__PURE__ */ _(ke, [["styles", [xe]]]), Se = { class: "container" }, Ie = { class: "left-side" }, qe = ["aria-level"], $e = { class: "left-side__description" }, Ce = { class: "left-side__action" }, Ve = {
107
+ }), xe = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", we = /* @__PURE__ */ _(ke, [["styles", [xe]]]), qe = { class: "container" }, Ie = { class: "left-side" }, Se = ["aria-level"], $e = { class: "left-side__description" }, Ce = { class: "left-side__action" }, Ve = {
108
108
  key: 0,
109
109
  id: "optionsSelectedInfo",
110
110
  class: "left-side__lower-legend",
@@ -146,9 +146,9 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
146
146
  type: "search",
147
147
  image: e.searchImage
148
148
  }
149
- ], S = b(() => n.value.length !== 3 || t.value === "search"), j = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), z = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
150
- function D() {
151
- return S.value ? !1 : t.value === "info" ? L() : I();
149
+ ], q = b(() => n.value.length !== 3 || t.value === "search"), j = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), D = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
150
+ function z() {
151
+ return q.value ? !1 : t.value === "info" ? L() : I();
152
152
  }
153
153
  function I() {
154
154
  h.value.forEach((c) => {
@@ -161,45 +161,45 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
161
161
  }
162
162
  return u({
163
163
  reset: I
164
- }), (c, r) => (o(), i("div", Se, [
164
+ }), (c, r) => (o(), i("div", qe, [
165
165
  s("form", Ie, [
166
166
  s("div", {
167
167
  class: "left-side__subtitle",
168
168
  role: "heading",
169
169
  "aria-level": e.titleLevel
170
- }, d(c.$t("qcm-deepfake.in")), 9, qe),
170
+ }, d(c.$t("qcm-deepfake.in")), 9, Se),
171
171
  s("fieldset", null, [
172
172
  s("legend", $e, d(c.$t("qcm-deepfake.selectThreeElements")), 1),
173
- (o(!0), i($, null, C(Q(g), (f, q) => (o(), F(_e, {
173
+ (o(!0), i($, null, C(Q(g), (f, S) => (o(), F(_e, {
174
174
  ref_for: !0,
175
175
  ref_key: "optionsNode",
176
176
  ref: h,
177
177
  modelValue: n.value,
178
- "onUpdate:modelValue": r[0] || (r[0] = (R) => n.value = R),
179
- key: q,
178
+ "onUpdate:modelValue": r[0] || (r[0] = (A) => n.value = A),
179
+ key: S,
180
180
  class: "left-side__options",
181
181
  option: f,
182
- value: q + 1,
182
+ value: S + 1,
183
183
  readonly: t.value !== "info"
184
184
  }, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
185
185
  ]),
186
186
  s("div", Ce, [
187
187
  k(we, {
188
- onClick: K(D, ["prevent"]),
189
- "aria-disabled": S.value,
188
+ onClick: H(z, ["prevent"]),
189
+ "aria-disabled": q.value,
190
190
  label: j.value,
191
191
  state: t.value === "info" ? "primary" : "warning",
192
192
  "aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
193
193
  }, U({ _: 2 }, [
194
194
  t.value === "success" || t.value === "fail" ? {
195
195
  name: "icon",
196
- fn: H(() => [
196
+ fn: W(() => [
197
197
  k(Y)
198
198
  ]),
199
199
  key: "0"
200
200
  } : void 0
201
201
  ]), 1032, ["aria-disabled", "label", "state", "aria-describedby"]),
202
- ["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", Ve, d(z.value), 1))
202
+ ["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", Ve, d(D.value), 1))
203
203
  ])
204
204
  ]),
205
205
  s("div", Ne, [
@@ -216,9 +216,9 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
216
216
  ])
217
217
  ]));
218
218
  }
219
- }), Te = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", je = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}", ze = /* @__PURE__ */ _(Be, [["styles", [Te, je]], ["__scopeId", "data-v-66f8d52f"]]);
219
+ }), Te = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", je = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}", De = /* @__PURE__ */ _(Be, [["styles", [Te, je]], ["__scopeId", "data-v-66f8d52f"]]);
220
220
  J(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ee, "./locales/en.json": te, "./locales/es-419.json": ae, "./locales/es.json": ne, "./locales/fr-BE.json": oe, "./locales/fr.json": ie, "./locales/it.json": re, "./locales/nl.json": se })).catch((e) => console.error(e));
221
- const N = W(ze, {
221
+ const N = K(De, {
222
222
  configureApp(e) {
223
223
  a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(X, { i18next: a });
224
224
  }