@1024pix/epreuves-components 4.5.0 → 4.6.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.
Files changed (61) hide show
  1. package/dist/{Button.ce-DNrjLa1r.js → Button.ce-C-lBihdF.js} +1 -1
  2. package/dist/{ButtonTooltip.ce-DQ8QAvUM.js → ButtonTooltip.ce-B071jWM0.js} +1 -1
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js → Cross.ce.vue_vue_type_script_setup_true_lang-Cc1FblLh.js} +1 -1
  4. package/dist/{Feedback.ce-MqHV98f3.js → Feedback.ce-CeyQhenY.js} +1 -1
  5. package/dist/{FocusManager.ce-CwF5pnqR.js → FocusManager.ce-Cb8fkfeb.js} +2 -2
  6. package/dist/Icon.ce-AUDpzQic.js +50 -0
  7. package/dist/{LLMMessage.ce-Duki08xd.js → LLMMessage.ce-DBorHEa1.js} +2 -2
  8. package/dist/{Loading.ce-D7CUjrcI.js → Loading.ce-D7EpPBBD.js} +1 -1
  9. package/dist/Modal.ce-CRJ7RcAX.js +86 -0
  10. package/dist/{NavigationButton.ce-17UL0Mwu.js → NavigationButton.ce-DqFqWt9V.js} +2 -2
  11. package/dist/{PixMailMessage.ce-CNULZecQ.js → PixMailMessage.ce-Cqrs9R3i.js} +13 -13
  12. package/dist/{Popin.ce-VvQiVxjk.js → Popin.ce-D1V8wzxE.js} +3 -3
  13. package/dist/{Retry-CGkQcck5.js → Retry-fzluiEoj.js} +3 -3
  14. package/dist/{Stepper.ce-gx2YaVCo.js → Stepper.ce-cG0al2pY.js} +1 -1
  15. package/dist/{_plugin-vue_export-helper-DROOAHrz.js → _plugin-vue_export-helper-DJlRxzRH.js} +9 -9
  16. package/dist/components/analyse-mails-phishing.ce.js.js +16 -16
  17. package/dist/components/autocompletion-mdp.ce.js.js +256 -0
  18. package/dist/components/button.ce.js.js +2 -2
  19. package/dist/components/calcul-impact.ce.js.js +7 -7
  20. package/dist/components/capacity-calculation.ce.js.js +7 -7
  21. package/dist/components/clickable-image.ce.js.js +1 -1
  22. package/dist/components/complete-phrase.ce.js.js +3 -3
  23. package/dist/components/feedback.ce.js.js +2 -2
  24. package/dist/components/flip-cards.ce.js.js +5 -5
  25. package/dist/components/generate-mdp.ce.js.js +81 -150
  26. package/dist/components/image-quiz.ce.js.js +3 -3
  27. package/dist/components/image-quizzes.ce.js.js +3 -3
  28. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  29. package/dist/components/llm-messages.ce.js.js +6 -6
  30. package/dist/components/llm-prompt-select.ce.js.js +1 -1
  31. package/dist/components/mdp-classement.ce.js.js +6 -6
  32. package/dist/components/message-conversation.ce.js.js +6 -6
  33. package/dist/components/mobile-shell.ce.js.js +1 -1
  34. package/dist/components/notification-antivirus.ce.js.js +4 -4
  35. package/dist/components/phishing-message.ce.js.js +2 -2
  36. package/dist/components/phishing-notification.ce.js.js +18 -18
  37. package/dist/components/pix-anonymisation.ce.js.js +6 -6
  38. package/dist/components/pix-article.ce.js.js +2 -2
  39. package/dist/components/pix-carousel.ce.js.js +4 -4
  40. package/dist/components/pix-combinaisons.ce.js.js +5 -5
  41. package/dist/components/pix-cursor.ce.js.js +6 -6
  42. package/dist/components/pix-mail-message.ce.js.js +3 -3
  43. package/dist/components/proteger-mail-spam.ce.js.js +9 -9
  44. package/dist/components/qcm-deepfake.ce.js.js +23 -23
  45. package/dist/components/quiz-stepper.ce.js.js +6 -6
  46. package/dist/components/select-conversation.ce.js.js +2 -2
  47. package/dist/components/template-mail.ce.js.js +3 -3
  48. package/dist/components/test-top-mdp.ce.js.js +2 -2
  49. package/dist/components/trouver-mdp-rs.ce.js.js +15 -15
  50. package/dist/components/usages-donnees.ce.js.js +3 -3
  51. package/dist/{i18n-BVfGnSnP.js → i18n-C0iMUvqX.js} +1 -1
  52. package/dist/{i18n-lite-V7Z5qwB2.js → i18n-lite-X2ADNonj.js} +1 -1
  53. package/dist/{image-quiz.ce-DLpB-rde.js → image-quiz.ce-BaKLPvSS.js} +8 -8
  54. package/dist/{index-BgVc_wZ5.js → index-Ck6CFpiq.js} +1 -1
  55. package/dist/index.js +2 -1
  56. package/dist/metadata.js +29 -25
  57. package/dist/props.examples.js +115 -113
  58. package/dist/schema.js +55 -53
  59. package/dist/{shadow-dom-4LHwwhYa.js → shadow-dom-Dh5hLXcx.js} +1 -1
  60. package/package.json +1 -1
  61. package/dist/Icon.ce-O_y_jvjK.js +0 -50
@@ -0,0 +1,256 @@
1
+ import { a as C, o as v, f as J, E as r, D as a, A as n, x as l, h as b, c as g, F as W, b as i, l as F, y as R, _ as N, v as X, Q as B, r as f, g as Y, n as M, d as ee } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
+ import { i as y } from "../i18n-lite-X2ADNonj.js";
3
+ import { b as oe } from "../normalize-props-DH0oPBss.js";
4
+ import { p as te } from "../shadow-dom-Dh5hLXcx.js";
5
+ import { B as V, I as j } from "../Icon.ce-AUDpzQic.js";
6
+ import { M as L, I as S } from "../Modal.ce-CRJ7RcAX.js";
7
+ const le = {
8
+ "autocompletion-mdp": { title: "Connexion", "label-email": "Adresse e-mail", "label-password": "Mot de passe", connect: "Se connecter", forgot: "Mot de passe oublié ?", "a11y-info": "le menu d'auto-completion de votre gestionnaire de mot de passe est disponible. Appuyez sur flèche du bas pour le sélectionner.", vault: { url: "www.toptracteur.pix.org", email: "elio@pixmail.org", placeholder: "mon-email@pixmail.org" }, button: { "email-label": "Remplir le champ adresse e-mail avec la valeur: elio@pixmail.org", "password-label": "Remplir le champ mot de passe avec la valeur enregistrée", label: "Remplir" }, feedback: { title: "Bravo !", content: "Grâce à une extension de navigateur proposée par le gestionnaire de mot de passe, vous pouvez vous connecter facilement en remplissant automatiquement les champs d'identification." } }
9
+ }, ae = {
10
+ "unavailable-feature": { title: "Fonctionnalité désactivée", content: "Vous n'avez pas accès à cette fonctionnalité.", close: "Fermer" }
11
+ }, ie = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.99976%2011.25V12.75M4.49976%2015.75H13.4998C13.8976%2015.75%2014.2791%2015.592%2014.5604%2015.3107C14.8417%2015.0294%2014.9998%2014.6478%2014.9998%2014.25V9.75C14.9998%209.35218%2014.8417%208.97064%2014.5604%208.68934C14.2791%208.40804%2013.8976%208.25%2013.4998%208.25H4.49976C4.10193%208.25%203.7204%208.40804%203.4391%208.68934C3.15779%208.97064%202.99976%209.35218%202.99976%209.75V14.25C2.99976%2014.6478%203.15779%2015.0294%203.4391%2015.3107C3.7204%2015.592%204.10193%2015.75%204.49976%2015.75ZM11.9998%208.25V5.25C11.9998%204.45435%2011.6837%203.69129%2011.1211%203.12868C10.5585%202.56607%209.79541%202.25%208.99976%202.25C8.20411%202.25%207.44104%202.56607%206.87844%203.12868C6.31583%203.69129%205.99976%204.45435%205.99976%205.25V8.25H11.9998Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", ne = /* @__PURE__ */ C({
12
+ __name: "UnavailableFeatureModal.ce",
13
+ props: {
14
+ show: { type: Boolean }
15
+ },
16
+ emits: ["close"],
17
+ setup(o) {
18
+ return (s, p) => (v(), J(L, {
19
+ loop: !0,
20
+ show: o.show
21
+ }, {
22
+ title: r(() => [
23
+ n(l(s.$t("unavailable-feature.title")), 1)
24
+ ]),
25
+ content: r(() => [
26
+ n(l(s.$t("unavailable-feature.content")), 1)
27
+ ]),
28
+ footer: r(() => [
29
+ a(V, {
30
+ onClick: p[0] || (p[0] = (d) => s.$emit("close"))
31
+ }, {
32
+ default: r(() => [
33
+ n(l(s.$t("unavailable-feature.close")), 1)
34
+ ]),
35
+ _: 1
36
+ })
37
+ ]),
38
+ _: 1
39
+ }, 8, ["show"]));
40
+ }
41
+ }), se = { "aria-live": "polite" }, de = {
42
+ key: 0,
43
+ class: "sr-only"
44
+ }, ue = {
45
+ key: 0,
46
+ "aria-labelledby": "dialog-label",
47
+ class: "autocompletion-modal",
48
+ role: "dialog"
49
+ }, re = {
50
+ id: "dialog-label",
51
+ class: "autocompletion-modal__url"
52
+ }, pe = { class: "autocompletion-modal__identity" }, ce = { key: 0 }, me = /* @__PURE__ */ C({
53
+ __name: "AutocompletionModal.ce",
54
+ props: {
55
+ valueToFill: { type: String },
56
+ relatedValueToFill: { type: String },
57
+ savedUrl: { type: String },
58
+ buttonAriaLabel: { type: String },
59
+ displayModal: { type: Boolean }
60
+ },
61
+ emits: ["fill-input", "hide-modal"],
62
+ setup(o, { expose: s }) {
63
+ const p = b("buttonFill");
64
+ return s({ buttonFill: p }), (d, t) => (v(), g(W, null, [
65
+ i("div", se, [
66
+ o.displayModal ? (v(), g("p", de, l(d.$t("autocompletion-mdp.a11y-info")), 1)) : F("", !0)
67
+ ]),
68
+ o.displayModal ? (v(), g("div", ue, [
69
+ i("p", re, l(o.savedUrl), 1),
70
+ i("div", pe, [
71
+ a(j, {
72
+ "background-color": "#bed4ff",
73
+ class: "dialog-label-icon"
74
+ }, {
75
+ default: r(() => [
76
+ n(l(d.$t("autocompletion-mdp.vault.email").at(0).toUpperCase()), 1)
77
+ ]),
78
+ _: 1
79
+ }),
80
+ i("p", null, [
81
+ o.relatedValueToFill ? (v(), g("span", ce, [
82
+ n(l(o.relatedValueToFill), 1),
83
+ t[2] || (t[2] = i("br", null, null, -1))
84
+ ])) : F("", !0),
85
+ n(l(o.valueToFill), 1)
86
+ ]),
87
+ a(V, {
88
+ ref_key: "buttonFill",
89
+ ref: p,
90
+ tabindex: "-1",
91
+ "aria-label": o.buttonAriaLabel,
92
+ variant: "secondary",
93
+ onClick: t[0] || (t[0] = R((u) => d.$emit("fill-input", o.valueToFill), ["prevent"])),
94
+ onFocusout: t[1] || (t[1] = (u) => d.$emit("hide-modal"))
95
+ }, {
96
+ default: r(() => [
97
+ n(l(d.$t("autocompletion-mdp.button.label")), 1)
98
+ ]),
99
+ _: 1
100
+ }, 8, ["aria-label"])
101
+ ])
102
+ ])) : F("", !0)
103
+ ], 64));
104
+ }
105
+ }), fe = ".autocompletion-modal[data-v-2dd3430d]{position:absolute;z-index:1;border-radius:8px;border:1px solid #c8cfd9;box-shadow:0 6px 12px #07142e14;padding:8px 16px 16px;width:100%;margin-top:8px;background-color:#fff}.autocompletion-modal__url[data-v-2dd3430d]{color:#4f6384;margin-bottom:8px}.autocompletion-modal__identity[data-v-2dd3430d]{display:flex;gap:16px;align-items:center}.autocompletion-modal__identity button[data-v-2dd3430d]{margin-left:auto}.autocompletion-modal[data-v-2dd3430d] .rounded-icon{width:2rem;height:2rem;display:flex;justify-content:center;font-size:1rem;font-weight:700}@media(max-width:576px){.autocompletion-modal__identity[data-v-2dd3430d]{flex-wrap:wrap}.autocompletion-modal__identity button[data-v-2dd3430d]{margin-left:0;flex-grow:1}}", P = /* @__PURE__ */ N(me, [["styles", [fe]], ["__scopeId", "data-v-2dd3430d"]]), be = { class: "wrapper" }, ve = ["aria-level"], ge = ["src"], he = { class: "wrapper__input" }, we = { class: "wrapper__input" }, ye = /* @__PURE__ */ C({
106
+ __name: "AutocompletionMdp.ce",
107
+ props: {
108
+ titleLevel: { type: Number }
109
+ },
110
+ setup(o, { expose: s }) {
111
+ te();
112
+ function p() {
113
+ t.value = "", u.value = "", x.value = !1, c.value = !1, m.value = !1, h.value = !1;
114
+ }
115
+ const d = b("success-modal"), t = f(""), u = f(""), x = f(!1), c = f(!1), m = f(!1), h = f(!1), E = b("emailInput"), I = b("passwordInput"), _ = b("fillEmailModal"), k = b("fillPasswordModal"), H = Y(() => !(t.value && u.value));
116
+ async function q() {
117
+ x.value = !0, await M(), d.value.dialogElement.focus();
118
+ }
119
+ function D() {
120
+ t.value || (c.value = !0, m.value = !1);
121
+ }
122
+ function G() {
123
+ u.value || (c.value = !1, m.value = !0);
124
+ }
125
+ function A(e) {
126
+ e?.relatedTarget !== _?.value?.buttonFill?.buttonElement && (c.value = !1);
127
+ }
128
+ function z(e) {
129
+ e?.relatedTarget !== k?.value?.buttonFill?.buttonElement && (m.value = !1);
130
+ }
131
+ async function K(e) {
132
+ t.value = e, await M(), c.value = !1, E.value.inputField.focus();
133
+ }
134
+ async function O(e) {
135
+ u.value = e, await M(), m.value = !1, I.value.inputField.focus();
136
+ }
137
+ function Z() {
138
+ _?.value?.buttonFill?.buttonElement.focus();
139
+ }
140
+ function Q() {
141
+ k?.value?.buttonFill?.buttonElement.focus();
142
+ }
143
+ function T() {
144
+ h.value = !h.value;
145
+ }
146
+ return s({
147
+ reset: p
148
+ }), (e, w) => (v(), g("div", be, [
149
+ i("div", {
150
+ "aria-level": o.titleLevel ?? 2,
151
+ class: "title",
152
+ role: "heading"
153
+ }, [
154
+ a(j, { "background-color": "#2c75ff" }, {
155
+ default: r(() => [
156
+ i("img", {
157
+ src: X(ie),
158
+ alt: ""
159
+ }, null, 8, ge)
160
+ ]),
161
+ _: 1
162
+ }),
163
+ n(" " + l(e.$t("autocompletion-mdp.title")), 1)
164
+ ], 8, ve),
165
+ i("form", null, [
166
+ i("div", he, [
167
+ a(S, {
168
+ ref_key: "emailInput",
169
+ ref: E,
170
+ modelValue: t.value,
171
+ "onUpdate:modelValue": w[0] || (w[0] = ($) => t.value = $),
172
+ label: e.$t("autocompletion-mdp.label-email"),
173
+ readonly: !0,
174
+ placeholder: e.$t("autocompletion-mdp.vault.placeholder"),
175
+ type: "text",
176
+ onFocusin: D,
177
+ onFocusout: A,
178
+ onKeydown: B(Z, ["down"])
179
+ }, null, 8, ["modelValue", "label", "placeholder"]),
180
+ a(P, {
181
+ ref_key: "fillEmailModal",
182
+ ref: _,
183
+ "display-modal": c.value,
184
+ "saved-url": e.$t("autocompletion-mdp.vault.url"),
185
+ "value-to-fill": e.$t("autocompletion-mdp.vault.email"),
186
+ "button-aria-label": e.$t("autocompletion-mdp.button.email-label"),
187
+ onFillInput: K,
188
+ onHideModal: A
189
+ }, null, 8, ["display-modal", "saved-url", "value-to-fill", "button-aria-label"])
190
+ ]),
191
+ i("div", we, [
192
+ a(S, {
193
+ ref_key: "passwordInput",
194
+ ref: I,
195
+ modelValue: u.value,
196
+ "onUpdate:modelValue": w[1] || (w[1] = ($) => u.value = $),
197
+ label: e.$t("autocompletion-mdp.label-password"),
198
+ readonly: !0,
199
+ type: "text",
200
+ onFocusin: G,
201
+ onFocusout: z,
202
+ onKeydown: B(Q, ["down"])
203
+ }, null, 8, ["modelValue", "label"]),
204
+ a(P, {
205
+ ref_key: "fillPasswordModal",
206
+ ref: k,
207
+ "display-modal": m.value,
208
+ "saved-url": e.$t("autocompletion-mdp.vault.url"),
209
+ "value-to-fill": "************",
210
+ "related-value-to-fill": e.$t("autocompletion-mdp.vault.email"),
211
+ "button-aria-label": e.$t("autocompletion-mdp.button.password-label"),
212
+ onFillInput: O,
213
+ onHideModal: z
214
+ }, null, 8, ["display-modal", "saved-url", "related-value-to-fill", "button-aria-label"])
215
+ ]),
216
+ a(V, {
217
+ "is-disabled": H.value,
218
+ class: "connect",
219
+ onClick: q
220
+ }, {
221
+ default: r(() => [
222
+ n(l(e.$t("autocompletion-mdp.connect")), 1)
223
+ ]),
224
+ _: 1
225
+ }, 8, ["is-disabled"])
226
+ ]),
227
+ i("a", {
228
+ class: "forgot-link",
229
+ href: "#",
230
+ onClick: R(T, ["prevent"])
231
+ }, l(e.$t("autocompletion-mdp.forgot")), 1),
232
+ a(L, {
233
+ ref: "success-modal",
234
+ content: e.$t("autocompletion-mdp.feedback.content"),
235
+ loop: !1,
236
+ show: x.value,
237
+ title: e.$t("autocompletion-mdp.feedback.title")
238
+ }, null, 8, ["content", "show", "title"]),
239
+ a(ne, {
240
+ show: h.value,
241
+ onClose: T
242
+ }, null, 8, ["show"])
243
+ ]));
244
+ }
245
+ }), xe = "*{--text-blue: #122647;--background-blue: #253858;font-family:Nunito,Roboto,sans-serif;font-size:14px;box-sizing:border-box}h1,h2,h3,h4,h5,h6{color:var(--text-blue);font-family:Nunito,sans-serif}h2{color:var(--text-blue);font-size:20px}p,a,span,li{color:var(--text-blue);font-family:Roboto,sans-serif}button{border-radius:8px;background:var(--background-blue);font-weight:700;font-size:16px}button:disabled{background:#c8cfd9}input{border-radius:10px;border:#cdd1d9;background:#f4f5f7}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,dialog{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}*{color:#253858}", _e = ".wrapper[data-v-b47b4dfe]{padding:25px;border-radius:14px;position:relative;background:#fff;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset}.wrapper__input[data-v-b47b4dfe]{position:relative;width:100%}[data-v-b47b4dfe] label{margin-top:16px}.title[data-v-b47b4dfe]{display:flex;align-items:center;gap:8px;font-size:1.25rem;font-weight:700}.connect[data-v-b47b4dfe]{display:block;width:100%;margin:16px auto}.forgot-link[data-v-b47b4dfe]{display:block;width:100%;text-align:center;font-size:.875rem}", ke = /* @__PURE__ */ N(ye, [["styles", [xe, _e]], ["__scopeId", "data-v-b47b4dfe"]]);
246
+ y.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/fr.json": le }));
247
+ y.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "../common/poi-design-system/unavailable-feature/locales/fr.json": ae }));
248
+ const U = ee(ke, {
249
+ configureApp(o) {
250
+ y.changeLanguage(document?.documentElement?.lang || navigator.language), o.use(y);
251
+ }
252
+ });
253
+ U.prototype.normalizeProps = (o) => ({
254
+ titleLevel: oe(o.titleLevel)
255
+ });
256
+ window.customElements.define("autocompletion-mdp", U);
@@ -1,4 +1,4 @@
1
- import { d as t } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { B as o } from "../Button.ce-DNrjLa1r.js";
1
+ import { d as t } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
+ import { B as o } from "../Button.ce-C-lBihdF.js";
3
3
  const e = t(o);
4
4
  window.customElements.define("pix-button", e);
@@ -1,5 +1,5 @@
1
- import { b as V, K as T, o as d, c as p, F as U, D as v, E as r, a as e, x as a, A as _, l as C, U as D, _ as z, v as E, H as j, Q as x, f as K, r as l, d as H } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { a as Q, i as N, b as G } from "../i18n-BVfGnSnP.js";
1
+ import { a as V, K as R, o as d, c as p, F as U, D as v, E as r, b as e, x as a, A as _, l as C, U as D, _ as z, v as E, H as j, T as x, f as K, r as l, d as H } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
+ import { a as G, i as N, b as Q } from "../i18n-C0iMUvqX.js";
3
3
  import { b as J } from "../normalize-props-DH0oPBss.js";
4
4
  const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
5
5
  "calcul-impact": { title: "Calculez votre impact IA", subtitle: "Quels ont été vos usages de l'IA la semaine dernière ?", numberOfConversationLabel: "Nombre de conversations courtes :", numberOfImagesLabel: "Nombre de créations d’images :", seePersonalImpact: "Voir votre impact personnel sur une semaine", seeCollectiveImpact: "Si 1 million de personnes faisaient comme vous toutes les semaines pendant un an", legals: "Estimations basées sur l'étude Hugging Face, Carnegie Mellon University, Allen Institute for AI, Oct 2024", yourPersonalImpact: "Votre impact personnel", consumptionForAWeek: "Votre consommation sur une semaine", consumptionForAYear: "1 million de personnes toutes les semaines pendant un an", personalConsumption: "Vous avez consommé environ {{energy}} Wh", personalDuration: "Cela équivaut à {{number}} minutes de micro-ondes", collectiveConsumption: "Cela représenterait {{energy}} kWh, soit l'équivalent de la consommation en électricité de {{homes}} foyers français", collectiveDuration: "Équivalent à {{number}} minutes de micro-ondes", planeKilometers: "Et {{kilometers}} km parcourus en avion", yourCollectiveImpact: "Impact collectif simulé" }
@@ -20,7 +20,7 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
20
20
  },
21
21
  setup(t) {
22
22
  return (o, n) => {
23
- const i = T("i18next");
23
+ const i = R("i18next");
24
24
  return d(), p(U, null, [
25
25
  v(D, { name: "fade-perso" }, {
26
26
  default: r(() => [
@@ -132,7 +132,7 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
132
132
  function S() {
133
133
  P(), c.value = !0;
134
134
  }
135
- function R() {
135
+ function T() {
136
136
  M(), y.value = !0;
137
137
  }
138
138
  function W() {
@@ -179,16 +179,16 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
179
179
  }, "📌 " + a(s.$t("calcul-impact.seePersonalImpact")), 1)),
180
180
  c.value && !y.value ? (d(), p("button", {
181
181
  key: 2,
182
- onClick: R
182
+ onClick: T
183
183
  }, "🌍 " + a(s.$t("calcul-impact.seeCollectiveImpact")), 1)) : C("", !0),
184
184
  e("p", $e, "📝 " + a(s.$t("calcul-impact.legals")), 1)
185
185
  ]));
186
186
  }
187
187
  }), Ae = "[data-v-7fbb31b5]{font-family:Nunito,Roboto,sans-serif;color:#253858}p[data-v-7fbb31b5]{padding:0}.container[data-v-7fbb31b5]{display:flex;flex-direction:column;gap:1rem}.container button[data-v-7fbb31b5]{border:0;border-radius:5px;font-size:.9rem;background:#357abd;color:#fff;width:50%;padding:.4rem .8rem;margin:auto;cursor:pointer}.container button[data-v-7fbb31b5]:hover{background:#225d93}.container input[data-v-7fbb31b5]{border:solid 1px lightgrey;border-radius:5px;padding-block:.2rem;width:40%}.container label[data-v-7fbb31b5]{font-weight:700}.container .legals[data-v-7fbb31b5]{font-size:.9rem;font-style:italic}.container .title[data-v-7fbb31b5]{font-size:1.3rem;font-weight:700}@media only screen and (max-width:768px){.container button[data-v-7fbb31b5]{width:100%}.container input[data-v-7fbb31b5]{width:80%}}", Fe = /* @__PURE__ */ z(Be, [["styles", [Ae]], ["__scopeId", "data-v-7fbb31b5"]]);
188
- Q(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": X, "./locales/en.json": Z, "./locales/es-419.json": ee, "./locales/es.json": te, "./locales/fr-BE.json": ae, "./locales/fr.json": le, "./locales/it.json": oe, "./locales/nl.json": ne })).catch((t) => console.error(t));
188
+ G(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": X, "./locales/en.json": Z, "./locales/es-419.json": ee, "./locales/es.json": te, "./locales/fr-BE.json": ae, "./locales/fr.json": le, "./locales/it.json": oe, "./locales/nl.json": ne })).catch((t) => console.error(t));
189
189
  const Y = H(Fe, {
190
190
  configureApp(t) {
191
- N.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(G, {
191
+ N.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(Q, {
192
192
  i18next: N,
193
193
  slotStart: "{{",
194
194
  slotEnd: "}}"
@@ -1,7 +1,7 @@
1
- import { b as g, o as r, c as u, t as p, q as E, A as L, x as s, _, R as C, a as t, F as R, e as D, v as T, D as x, y as V, X as Z, E as O, r as y, g as w, f, l as $, d as z } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { u as F, a as P, i as k, b as W } from "../i18n-BVfGnSnP.js";
1
+ import { a as g, o as r, c as u, t as p, q as E, A as L, x as s, _, N as C, b as t, F as D, e as R, v as T, D as x, y as V, X as Z, E as O, r as y, g as w, f, l as $, d as z } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
+ import { u as F, a as P, i as k, b as W } from "../i18n-C0iMUvqX.js";
3
3
  import { b as G } from "../normalize-props-DH0oPBss.js";
4
- import { R as H } from "../Retry-CGkQcck5.js";
4
+ import { R as H } from "../Retry-fzluiEoj.js";
5
5
  const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
6
6
  "capacity-calculation": { in: { aiQuestion: "Quelle est la demande à l’IA ?", aiOptions: ["Fais une vidéo d’une durée d’une minute.", "Écris un texte de 10 lignes.", "Fais un dessin de haute qualité."], userQuestion: "Combien d’utilisateurs font la demande en même temps ?", buttonLabel: { primary: "Observer l’effet", warning: "Recommencer" } }, out: { title: "Impact des demandes", consumption: { label: "Consommation d’électricité :", normal_weak: "Moyenne", normal_medium: "Moyenne", warning: "Très forte", error: "Très forte", initial: "À l’arrêt" }, capacity: { label: "État du centre de données :", normal_weak: "Normal", normal_medium: "Normal", warning: "Sollicitation maximale", error: "Ne peut pas répondre à la demande", initial: "À l’arrêt" } } }
7
7
  }, ta = {}, ca = {}, la = /* @__PURE__ */ g({
@@ -111,7 +111,7 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
111
111
  return (o, v) => (r(), u("div", oa, [
112
112
  t("fieldset", ra, [
113
113
  t("legend", sa, s(o.$t("capacity-calculation.in.aiQuestion")), 1),
114
- (r(!0), u(R, null, D(o.$t("capacity-calculation.in.aiOptions", { returnObjects: !0 }), (B, m) => (r(), u("div", { key: m }, [
114
+ (r(!0), u(D, null, R(o.$t("capacity-calculation.in.aiOptions", { returnObjects: !0 }), (B, m) => (r(), u("div", { key: m }, [
115
115
  t("label", {
116
116
  class: p(["capacity-calculation__ai-option", { "capacity-calculation__ai-option--active": n.value === m, disabled: i.value }])
117
117
  }, [
@@ -206,7 +206,7 @@ function Aa(a, c) {
206
206
  }, null, -1)
207
207
  ])]);
208
208
  }
209
- const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = { class: "capacity-calculation__card" }, Ua = { class: "capacity-calculation__text capacity-calculation__text--strong" }, ja = { class: "capacity-calculation__img" }, Ia = ["src"], Ba = { class: "capacity-calculation__text" }, Ea = { class: "capacity-calculation__answers" }, Ra = { class: "capacity-calculation__card" }, Da = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Ta = { class: "capacity-calculation__text" }, Va = /* @__PURE__ */ g({
209
+ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = { class: "capacity-calculation__card" }, Ua = { class: "capacity-calculation__text capacity-calculation__text--strong" }, ja = { class: "capacity-calculation__img" }, Ia = ["src"], Ba = { class: "capacity-calculation__text" }, Ea = { class: "capacity-calculation__answers" }, Da = { class: "capacity-calculation__card" }, Ra = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Ta = { class: "capacity-calculation__text" }, Va = /* @__PURE__ */ g({
210
210
  __name: "Answers.ce",
211
211
  props: {
212
212
  currentLevel: { type: String },
@@ -244,8 +244,8 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
244
244
  t("p", Ba, s(c.$t(`capacity-calculation.out.capacity.${a.currentLevel}`)), 1)
245
245
  ]),
246
246
  t("div", Ea, [
247
- t("div", Ra, [
248
- t("p", Da, s(c.$t("capacity-calculation.out.consumption.label")), 1),
247
+ t("div", Da, [
248
+ t("p", Ra, s(c.$t("capacity-calculation.out.consumption.label")), 1),
249
249
  t("div", {
250
250
  class: p(["capacity-calculation__progress-bar", a.currentLevel])
251
251
  }, null, 2),
@@ -1,4 +1,4 @@
1
- import { b as R, h as E, k as O, G as W, o as d, c as p, a as C, m as _, F as D, e as L, y as V, B as y, v as j, t as G, l as H, H as T, I as U, x as X, r as b, g as v, _ as Y, d as q } from "../_plugin-vue_export-helper-DROOAHrz.js";
1
+ import { a as R, h as E, k as O, G as W, o as d, c as p, b as C, m as _, F as D, e as L, y as V, B as y, v as j, t as G, l as H, H as T, I as U, x as X, r as b, g as v, _ as Y, d as q } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
2
  import { a as J, b as S } from "../normalize-props-DH0oPBss.js";
3
3
  const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], m = 10, Z = /* @__PURE__ */ R({
4
4
  __name: "ClickableImage.ce",
@@ -1,7 +1,7 @@
1
- import { b as h, o, c as n, a, x as c, B as j, _ as f, t as P, q as S, A as N, F as y, e as x, l as z, r as k, g as m, D as L, f as v, d as M } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { u as O, a as T, i as q, b as E } from "../i18n-BVfGnSnP.js";
1
+ import { a as h, o, c as n, b as a, x as c, B as j, _ as f, t as P, q as S, A as N, F as y, e as x, l as z, r as k, g as m, D as L, f as v, d as M } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
+ import { u as O, a as T, i as q, b as E } from "../i18n-C0iMUvqX.js";
3
3
  import { b as I } from "../normalize-props-DH0oPBss.js";
4
- import { L as B } from "../LLMMessage.ce-Duki08xd.js";
4
+ import { L as B } from "../LLMMessage.ce-DBorHEa1.js";
5
5
  const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
6
6
  "complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisi par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! L’IA peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... L’IA choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
7
7
  }, H = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ h({
@@ -1,4 +1,4 @@
1
- import { d as e } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { F as m } from "../Feedback.ce-MqHV98f3.js";
1
+ import { d as e } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
+ import { F as m } from "../Feedback.ce-CeyQhenY.js";
3
3
  const o = e(m);
4
4
  window.customElements.define("pix-feedback", o);
@@ -1,6 +1,6 @@
1
- import { b as g, o as r, c as n, F as m, a as i, t as f, x as l, l as x, _ as u, r as y, e as k, N as v, D as w, d as F } from "../_plugin-vue_export-helper-DROOAHrz.js";
1
+ import { a as g, o as r, c as n, F as m, b as i, t as f, x as l, l as x, _ as u, r as y, e as k, Q as v, D as w, d as F } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
2
  import { b as _ } from "../normalize-props-DH0oPBss.js";
3
- const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], D = /* @__PURE__ */ g({
3
+ const L = ["aria-hidden"], C = ["src"], z = ["aria-level"], N = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], D = /* @__PURE__ */ g({
4
4
  __name: "FlipCard.ce",
5
5
  props: {
6
6
  titleLevel: { type: Number },
@@ -26,7 +26,7 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
26
26
  role: "heading",
27
27
  "aria-level": e.titleLevel,
28
28
  class: "title"
29
- }, l(e.name), 9, N)
29
+ }, l(e.name), 9, z)
30
30
  ], 10, L),
31
31
  i("div", {
32
32
  class: f(["card verso", { flipped: e.isFlipped, [e.color]: e.color }]),
@@ -45,7 +45,7 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
45
45
  alt: ""
46
46
  }, null, 8, j)) : x("", !0)
47
47
  ])
48
- ], 10, z)
48
+ ], 10, N)
49
49
  ], 64));
50
50
  }
51
51
  }), E = "[data-v-c0da3f12]{box-sizing:border-box}.card[data-v-c0da3f12]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-c0da3f12]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-c0da3f12]{display:block;height:auto;width:40px}.card.verso[data-v-c0da3f12]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-c0da3f12]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-c0da3f12]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-c0da3f12]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-c0da3f12]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-c0da3f12]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-c0da3f12]{border:2px solid #f041bf}.card.verso .description[data-v-c0da3f12]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-c0da3f12]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-c0da3f12]{display:block;height:100%;object-fit:contain;width:100%}", K = /* @__PURE__ */ u(D, [["styles", [E]], ["__scopeId", "data-v-c0da3f12"]]), V = { class: "flip-cards" }, I = ["aria-level"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, A = /* @__PURE__ */ g({
@@ -97,7 +97,7 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
97
97
  ], 42, Y))), 128))
98
98
  ]));
99
99
  }
100
- }), P = "[data-v-394f37d2]{box-sizing:border-box}.sr-only[data-v-394f37d2]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-394f37d2]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-394f37d2]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-394f37d2]:hover,.flip-cards .card-container[data-v-394f37d2]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-394f37d2]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-394f37d2]{transform:rotateY(180deg)}", q = /* @__PURE__ */ u(A, [["styles", [P]], ["__scopeId", "data-v-394f37d2"]]), h = F(q);
100
+ }), P = "[data-v-394f37d2]{box-sizing:border-box}.sr-only[data-v-394f37d2]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-394f37d2]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-394f37d2]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-394f37d2]:hover,.flip-cards .card-container[data-v-394f37d2]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-394f37d2]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-394f37d2]{transform:rotateY(180deg)}", Q = /* @__PURE__ */ u(A, [["styles", [P]], ["__scopeId", "data-v-394f37d2"]]), h = F(Q);
101
101
  h.prototype.normalizeProps = (e) => ({
102
102
  ...e,
103
103
  titleLevel: _(e.titleLevel)