@1024pix/epreuves-components 4.4.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.
- package/dist/{Button.ce-Dvxeebpx.js → Button.ce-C-lBihdF.js} +1 -1
- package/dist/{ButtonTooltip.ce-WwOarMJq.js → ButtonTooltip.ce-B071jWM0.js} +1 -1
- package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-DVLRq2sO.js → Cross.ce.vue_vue_type_script_setup_true_lang-Cc1FblLh.js} +1 -1
- package/dist/{Feedback.ce-CnZRBGWf.js → Feedback.ce-CeyQhenY.js} +1 -1
- package/dist/{FocusManager.ce-Cv3wYF9s.js → FocusManager.ce-Cb8fkfeb.js} +6 -6
- package/dist/Icon.ce-AUDpzQic.js +50 -0
- package/dist/{LLMMessage.ce-B7EwoHy2.js → LLMMessage.ce-DBorHEa1.js} +2 -2
- package/dist/{Loading.ce-Dv2gEjXm.js → Loading.ce-D7EpPBBD.js} +1 -1
- package/dist/Modal.ce-CRJ7RcAX.js +86 -0
- package/dist/{NavigationButton.ce-D8_YC96l.js → NavigationButton.ce-DqFqWt9V.js} +2 -2
- package/dist/{PixMailMessage.ce-TnjyOfiH.js → PixMailMessage.ce-Cqrs9R3i.js} +20 -20
- package/dist/{Popin.ce-BPnBZykQ.js → Popin.ce-D1V8wzxE.js} +8 -8
- package/dist/{Retry-C3g7zhz8.js → Retry-fzluiEoj.js} +3 -3
- package/dist/{Stepper.ce-DEMN02yr.js → Stepper.ce-cG0al2pY.js} +1 -1
- package/dist/{_plugin-vue_export-helper-Dz58mCLm.js → _plugin-vue_export-helper-DJlRxzRH.js} +1635 -1540
- package/dist/components/analyse-mails-phishing.ce.js.js +17 -17
- package/dist/components/autocompletion-mdp.ce.js.js +256 -0
- package/dist/components/button.ce.js.js +2 -2
- package/dist/components/calcul-impact.ce.js.js +15 -15
- package/dist/components/capacity-calculation.ce.js.js +15 -15
- package/dist/components/clickable-image.ce.js.js +12 -12
- package/dist/components/complete-phrase.ce.js.js +8 -8
- package/dist/components/feedback.ce.js.js +2 -2
- package/dist/components/flip-cards.ce.js.js +5 -5
- package/dist/components/generate-mdp.ce.js.js +159 -0
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +3 -3
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +6 -6
- package/dist/components/llm-prompt-select.ce.js.js +6 -6
- package/dist/components/mdp-classement.ce.js.js +17 -17
- package/dist/components/message-conversation.ce.js.js +13 -13
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/notification-antivirus.ce.js.js +137 -175
- package/dist/components/phishing-message.ce.js.js +9 -9
- package/dist/components/phishing-notification.ce.js.js +19 -19
- package/dist/components/pix-anonymisation.ce.js.js +23 -23
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +13 -13
- package/dist/components/pix-combinaisons.ce.js.js +6 -6
- package/dist/components/pix-cursor.ce.js.js +6 -6
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +14 -14
- package/dist/components/qcm-deepfake.ce.js.js +29 -29
- package/dist/components/quiz-stepper.ce.js.js +6 -6
- package/dist/components/select-conversation.ce.js.js +7 -7
- package/dist/components/template-mail.ce.js.js +3 -3
- package/dist/components/test-top-mdp.ce.js.js +5 -5
- package/dist/components/trouver-mdp-rs.ce.js.js +6 -6
- package/dist/components/usages-donnees.ce.js.js +27 -27
- package/dist/{i18n-H4HokXDX.js → i18n-C0iMUvqX.js} +13 -13
- package/dist/{i18n-lite-CzqISEWm.js → i18n-lite-X2ADNonj.js} +1 -1
- package/dist/{image-quiz.ce-C-iI27gD.js → image-quiz.ce-BaKLPvSS.js} +8 -8
- package/dist/{index-BUPiE5WR.js → index-Ck6CFpiq.js} +1 -1
- package/dist/index.js +3 -1
- package/dist/metadata.js +29 -21
- package/dist/props.examples.js +121 -117
- package/dist/schema.js +58 -54
- package/dist/{shadow-dom-D54WF-WZ.js → shadow-dom-Dh5hLXcx.js} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as ne, i as P } from "../i18n-lite-
|
|
1
|
+
import { a as V, i as W, h as D, w as J, o as a, f as S, E as s, q as U, Q as z, y as L, t as X, v as M, V as Y, g as o, _ as Z, K as ee, c, D as u, b as n, A as y, x as l, F as w, e as A, l as x, W as te, r as N, p as ae, d as se } from "../_plugin-vue_export-helper-DJlRxzRH.js";
|
|
2
|
+
import { u as ne, i as P } from "../i18n-lite-X2ADNonj.js";
|
|
3
3
|
import { b as le } from "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import { F as oe } from "../Feedback.ce-
|
|
5
|
-
import { _ as ie, a as re } from "../Cross.ce.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { S as ce } from "../Stepper.ce-
|
|
7
|
-
import { l as de } from "../index-
|
|
4
|
+
import { F as oe } from "../Feedback.ce-CeyQhenY.js";
|
|
5
|
+
import { _ as ie, a as re } from "../Cross.ce.vue_vue_type_script_setup_true_lang-Cc1FblLh.js";
|
|
6
|
+
import { S as ce } from "../Stepper.ce-cG0al2pY.js";
|
|
7
|
+
import { l as de } from "../index-Ck6CFpiq.js";
|
|
8
8
|
const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
9
9
|
"analyse-mails-phishing": { continue: "Continuer", subject: "{{srOnly}}{{subject}}", subjectSrOnly: "Sujet : ", sender: "{{srOnly}}{{sender}}", senderSrOnly: "Expéditeur : ", recipient: "{{srOnly}}{{recipient}}", recipientSrOnly: "Destinataire : ", to: "À moi", feedbackTitle: { correct: "Bien joué", incorrect: "Ce n’est pas ça" }, feedbackSrOnly: "Vous pouvez cliquer sur Continuer pour afficher le prochain mail." }
|
|
10
10
|
}, ve = {}, ge = {}, ye = "data:image/svg+xml,%3csvg%20width='41'%20height='41'%20viewBox='0%200%2041%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2033.5484C9.02496%2031.6445%209.79268%2029.8271%2011.1371%2028.4893C12.4815%2027.1515%2014.2944%2026.4009%2016.1837%2026.3999H24.8163C26.7056%2026.4009%2028.5185%2027.1515%2029.8629%2028.4893C31.2073%2029.8271%2031.975%2031.6445%2032%2033.5484C28.8446%2036.4141%2024.7476%2038%2020.5%2038C16.2524%2038%2012.1554%2036.4141%209%2033.5484ZM26.9744%2015.525C26.9744%2016.8155%2026.5947%2018.077%2025.8833%2019.1501C25.1719%2020.2231%2024.1607%2021.0594%2022.9776%2021.5533C21.7946%2022.0471%2020.4928%2022.1763%2019.2369%2021.9246C17.981%2021.6728%2016.8274%2021.0514%2015.9219%2020.1388C15.0164%2019.2263%2014.3998%2018.0637%2014.15%2016.7979C13.9002%2015.5322%2014.0284%2014.2203%2014.5184%2013.028C15.0085%2011.8357%2015.8383%2010.8166%2016.903%2010.0997C17.9677%209.38268%2019.2195%209%2020.5%209C22.2171%209%2023.8639%209.68745%2025.0781%2010.9111C26.2923%2012.1348%2026.9744%2013.7944%2026.9744%2015.525Z'%20fill='white'/%3e%3cpath%20d='M36.2655%2033.5758C38.3699%2031.0459%2039.8335%2028.0469%2040.5326%2024.8323C41.2316%2021.6177%2041.1455%2018.2822%2040.2815%2015.1079C39.4175%2011.9336%2037.8011%209.0139%2035.569%206.59581C33.3368%204.17772%2030.5547%202.33238%2027.4578%201.21587C24.3609%200.0993725%2021.0405%20-0.255438%2017.7774%200.181459C14.5142%200.618355%2011.4044%201.83411%208.71099%203.72586C6.01756%205.61762%203.81975%208.12973%202.30349%2011.0497C0.787232%2013.9696%20-0.00287585%2017.2115%207.86538e-06%2020.5011C0.00111445%2025.2832%201.6877%2029.9122%204.7638%2033.5758L4.7345%2033.6007C4.83707%2033.7237%204.9543%2033.8291%205.0598%2033.9506C5.19168%2034.1014%205.33382%2034.2435%205.47009%2034.3899C5.88039%2034.835%206.3024%2035.2625%206.74493%2035.6637C6.87974%2035.7866%207.01895%2035.9008%207.15522%2036.018C7.62413%2036.4221%208.10623%2036.8057%208.6059%2037.1629C8.67038%2037.2068%208.72899%2037.264%208.79347%2037.3093V37.2918C12.2254%2039.7049%2016.3196%2041%2020.5161%2041C24.7127%2041%2028.8068%2039.7049%2032.2388%2037.2918V37.3093C32.3033%2037.264%2032.3604%2037.2068%2032.4263%2037.1629C32.9246%2036.8042%2033.4081%2036.4221%2033.877%2036.018C34.0133%2035.9008%2034.1525%2035.7852%2034.2873%2035.6637C34.7298%2035.261%2035.1519%2034.835%2035.5622%2034.3899C35.6984%2034.2435%2035.8391%2034.1014%2035.9725%2033.9506C36.0765%2033.8291%2036.1952%2033.7237%2036.2978%2033.5992L36.2655%2033.5758ZM20.5147%208.78808C21.8188%208.78808%2023.0937%209.1745%2024.1781%209.89846C25.2625%2010.6224%2026.1076%2011.6514%2026.6067%2012.8553C27.1058%2014.0592%2027.2364%2015.384%2026.982%2016.662C26.7275%2017.9401%2026.0995%2019.1141%2025.1773%2020.0355C24.2551%2020.9569%2023.0802%2021.5844%2021.8011%2021.8387C20.522%2022.0929%2019.1961%2021.9624%2017.9912%2021.4637C16.7864%2020.9651%2015.7565%2020.1206%2015.032%2019.0371C14.3074%2017.9536%2013.9207%2016.6798%2013.9207%2015.3767C13.9207%2013.6293%2014.6154%2011.9534%2015.852%2010.7178C17.0886%209.48224%2018.7658%208.78808%2020.5147%208.78808ZM8.80226%2033.5758C8.82768%2031.6534%209.60958%2029.8182%2010.9788%2028.4674C12.348%2027.1165%2014.1945%2026.3586%2016.1187%2026.3576H24.9107C26.8349%2026.3586%2028.6813%2027.1165%2030.0505%2028.4674C31.4197%2029.8182%2032.2016%2031.6534%2032.2271%2033.5758C29.0134%2036.4694%2024.8407%2038.0708%2020.5147%2038.0708C16.1886%2038.0708%2012.016%2036.4694%208.80226%2033.5758Z'%20fill='%232F80ED'/%3e%3c/svg%3e", be = "data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200L3.53%203.38803L7.06%200H0Z'%20fill='black'/%3e%3c/svg%3e", Ce = /* @__PURE__ */ V({
|
|
@@ -14,7 +14,7 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
|
14
14
|
path: { type: String }
|
|
15
15
|
},
|
|
16
16
|
setup(t) {
|
|
17
|
-
const { selectedPath: f, correct: $, paths: b, pathToIndex: _ } =
|
|
17
|
+
const { selectedPath: f, correct: $, paths: b, pathToIndex: _ } = W("store"), p = D("el"), m = o(() => f.value === t.path), v = o(() => _.value[t.path]), d = o(() => m.value || f.value === void 0 && v.value === 0);
|
|
18
18
|
function O() {
|
|
19
19
|
f.value = t.path;
|
|
20
20
|
}
|
|
@@ -24,7 +24,7 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
|
24
24
|
function E() {
|
|
25
25
|
v.value !== b.value.length - 1 && (f.value = b.value[v.value + 1]);
|
|
26
26
|
}
|
|
27
|
-
return
|
|
27
|
+
return J(() => {
|
|
28
28
|
m.value && p.value.focus();
|
|
29
29
|
}), (T, i) => (a(), S(Y(t.block ? "div" : "span"), {
|
|
30
30
|
class: X(["mail-element", {
|
|
@@ -44,7 +44,7 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
|
44
44
|
ref: p
|
|
45
45
|
}, {
|
|
46
46
|
default: s(() => [
|
|
47
|
-
|
|
47
|
+
U(T.$slots, "default")
|
|
48
48
|
]),
|
|
49
49
|
_: 3
|
|
50
50
|
}, 40, ["class", "aria-selected", "tabindex"]));
|
|
@@ -58,17 +58,17 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
|
58
58
|
}, Fe = {
|
|
59
59
|
key: 1,
|
|
60
60
|
class: "mail__button"
|
|
61
|
-
},
|
|
61
|
+
}, Ae = {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "sr-only"
|
|
64
|
-
},
|
|
64
|
+
}, Ne = /* @__PURE__ */ V({
|
|
65
65
|
__name: "AnalyseMailsPhishing.ce",
|
|
66
66
|
props: {
|
|
67
67
|
titleLevel: { type: Number },
|
|
68
68
|
mails: { type: Array }
|
|
69
69
|
},
|
|
70
70
|
setup(t, { expose: f }) {
|
|
71
|
-
const $ = te(t, ["mails"]), { t: b } = ne(), _ =
|
|
71
|
+
const $ = te(t, ["mails"]), { t: b } = ne(), _ = N(0), p = N(), m = D("container"), v = o(() => $.titleLevel ?? 2), d = o(() => t.mails[_.value]), O = o(() => p.value !== void 0), g = o(() => d.value.answers.includes(p.value)), E = o(() => g.value ? b("analyse-mails-phishing.feedbackTitle.correct") : b("analyse-mails-phishing.feedbackTitle.incorrect")), T = o(() => g.value ? d.value.correctFeedback : d.value.incorrectFeedback), i = o(() => g.value && _.value < t.mails.length - 1), C = o(
|
|
72
72
|
() => d.value.body.map((e, r) => {
|
|
73
73
|
if (e.type === "paragraph")
|
|
74
74
|
return {
|
|
@@ -192,15 +192,15 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
|
192
192
|
])
|
|
193
193
|
])
|
|
194
194
|
]),
|
|
195
|
-
(a(!0), c(w, null,
|
|
195
|
+
(a(!0), c(w, null, A(C.value, (h, I) => (a(), c(w, { key: I }, [
|
|
196
196
|
h.type === "paragraph" ? (a(), c("p", Be, [
|
|
197
|
-
(a(!0), c(w, null,
|
|
197
|
+
(a(!0), c(w, null, A(h.content, ({ path: G, text: Q }, F) => (a(), c(w, { key: F }, [
|
|
198
198
|
F !== 0 ? (a(), c(w, { key: 0 }, [
|
|
199
199
|
y(l(" "))
|
|
200
200
|
], 64)) : x("", !0),
|
|
201
201
|
u(j, { path: G }, {
|
|
202
202
|
default: s(() => [
|
|
203
|
-
y(l(
|
|
203
|
+
y(l(Q), 1)
|
|
204
204
|
]),
|
|
205
205
|
_: 2
|
|
206
206
|
}, 1032, ["path"])
|
|
@@ -233,7 +233,7 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
|
233
233
|
]),
|
|
234
234
|
content: s(() => [
|
|
235
235
|
y(l(T.value) + " ", 1),
|
|
236
|
-
i.value ? (a(), c("span",
|
|
236
|
+
i.value ? (a(), c("span", Ae, l(e.$t("analyse-mails-phishing.feedbackSrOnly")), 1)) : x("", !0)
|
|
237
237
|
]),
|
|
238
238
|
_: 1
|
|
239
239
|
}, 8, ["title"])) : x("", !0),
|
|
@@ -245,7 +245,7 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
|
245
245
|
], 512);
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
}), Ve = "*{font-family:Nunito,Roboto,sans-serif;color:#122647}p{margin:0}.analyse-mails-phishing{display:flex;flex-direction:column;gap:24px}.mail{display:flex;padding:16px;flex-direction:column;gap:12px;border-radius:8px;background:#f4f5f7;align-items:start}.mail__subject{font-size:18px}.mail-header{display:flex;gap:16px;align-items:center}.mail-header__content{display:flex;flex-direction:column;gap:4px}.mail-header__from-name{font-size:15px;font-weight:700}.mail-header__from-address{color:#757575;font-size:12px}.mail-header__to{color:#818488;font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px}.mail__paragraph{font-size:14px;line-height:24px}.mail__button{padding:8px 24px;border-radius:8px;border:1px solid #cdd1d9;background-color:#fff;color:#253858;font-size:14px;font-weight:700;text-align:center}.mail-element--correct .mail-header__from-address,.mail-element--incorrect .mail-header__from-address{color:#122647}.feedback-icon{height:16px;width:16px}.continue-button{border-style:none;padding:8px 24px;border-radius:8px;background-color:#253858;color:#fff;font-size:14px;font-weight:700;cursor:pointer;align-self:center}@media only screen and (max-width:576px){.analyse-mails-phishing{gap:12px}.mail__subject{font-size:16px}.mail__button{padding:8px 12px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", De = /* @__PURE__ */ Z(
|
|
248
|
+
}), Ve = "*{font-family:Nunito,Roboto,sans-serif;color:#122647}p{margin:0}.analyse-mails-phishing{display:flex;flex-direction:column;gap:24px}.mail{display:flex;padding:16px;flex-direction:column;gap:12px;border-radius:8px;background:#f4f5f7;align-items:start}.mail__subject{font-size:18px}.mail-header{display:flex;gap:16px;align-items:center}.mail-header__content{display:flex;flex-direction:column;gap:4px}.mail-header__from-name{font-size:15px;font-weight:700}.mail-header__from-address{color:#757575;font-size:12px}.mail-header__to{color:#818488;font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px}.mail__paragraph{font-size:14px;line-height:24px}.mail__button{padding:8px 24px;border-radius:8px;border:1px solid #cdd1d9;background-color:#fff;color:#253858;font-size:14px;font-weight:700;text-align:center}.mail-element--correct .mail-header__from-address,.mail-element--incorrect .mail-header__from-address{color:#122647}.feedback-icon{height:16px;width:16px}.continue-button{border-style:none;padding:8px 24px;border-radius:8px;background-color:#253858;color:#fff;font-size:14px;font-weight:700;cursor:pointer;align-self:center}@media only screen and (max-width:576px){.analyse-mails-phishing{gap:12px}.mail__subject{font-size:16px}.mail__button{padding:8px 12px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", De = /* @__PURE__ */ Z(Ne, [["styles", [Ve]]]);
|
|
249
249
|
P.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ue, "./locales/en.json": pe, "./locales/es-419.json": me, "./locales/es.json": he, "./locales/fr-BE.json": fe, "./locales/fr.json": _e, "./locales/it.json": ve, "./locales/nl.json": ge }));
|
|
250
250
|
de();
|
|
251
251
|
const R = se(De, {
|
|
@@ -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-
|
|
2
|
-
import { B as o } from "../Button.ce-
|
|
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 {
|
|
2
|
-
import { a as
|
|
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é" }
|
|
@@ -21,7 +21,7 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
21
21
|
setup(t) {
|
|
22
22
|
return (o, n) => {
|
|
23
23
|
const i = R("i18next");
|
|
24
|
-
return d(), p(
|
|
24
|
+
return d(), p(U, null, [
|
|
25
25
|
v(D, { name: "fade-perso" }, {
|
|
26
26
|
default: r(() => [
|
|
27
27
|
t.isPersonal ? (d(), p("div", ie, [
|
|
@@ -109,25 +109,25 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
109
109
|
], 64);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
}), _e = ".result-calculation[data-v-b69dd4ff]{background:#e0f7fa;border-left:solid 3px #00796b;padding:1rem;border-radius:10px}.header[data-v-b69dd4ff]{font-size:1.125rem;font-weight:700}.consumption[data-v-b69dd4ff]{font-style:italic}.fade-perso-enter-active[data-v-b69dd4ff],.fade-collectif-enter-active[data-v-b69dd4ff]{transition:all .3s ease-out}.fade-perso-leave-active[data-v-b69dd4ff],.fade-collectif-leave-active[data-v-b69dd4ff]{transition:all .8s cubic-bezier(1,.5,.8,1)}.fade-perso-enter-from[data-v-b69dd4ff],.fade-collectif-enter-from[data-v-b69dd4ff],.fade-perso-leave-to[data-v-b69dd4ff],.fade-collectif-leave-to[data-v-b69dd4ff]{transform:translate(20px);opacity:0}", Ce = /* @__PURE__ */ z(ge, [["styles", [_e]], ["__scopeId", "data-v-b69dd4ff"]]), he = { class: "container" }, ke = ["arial-level"], Ie = { for: "numberOfConversation" }, we = { for: "numberOfImage" },
|
|
112
|
+
}), _e = ".result-calculation[data-v-b69dd4ff]{background:#e0f7fa;border-left:solid 3px #00796b;padding:1rem;border-radius:10px}.header[data-v-b69dd4ff]{font-size:1.125rem;font-weight:700}.consumption[data-v-b69dd4ff]{font-style:italic}.fade-perso-enter-active[data-v-b69dd4ff],.fade-collectif-enter-active[data-v-b69dd4ff]{transition:all .3s ease-out}.fade-perso-leave-active[data-v-b69dd4ff],.fade-collectif-leave-active[data-v-b69dd4ff]{transition:all .8s cubic-bezier(1,.5,.8,1)}.fade-perso-enter-from[data-v-b69dd4ff],.fade-collectif-enter-from[data-v-b69dd4ff],.fade-perso-leave-to[data-v-b69dd4ff],.fade-collectif-leave-to[data-v-b69dd4ff]{transform:translate(20px);opacity:0}", Ce = /* @__PURE__ */ z(ge, [["styles", [_e]], ["__scopeId", "data-v-b69dd4ff"]]), he = { class: "container" }, ke = ["arial-level"], Ie = { for: "numberOfConversation" }, we = { for: "numberOfImage" }, $e = { class: "legals" }, Be = /* @__PURE__ */ V({
|
|
113
113
|
__name: "CalculImpact.ce",
|
|
114
114
|
props: {
|
|
115
115
|
titleLevel: { type: Number }
|
|
116
116
|
},
|
|
117
117
|
setup(t, { expose: o }) {
|
|
118
|
-
const i = t.titleLevel ?? 2, b = l(10), f = l(2), w = l(0),
|
|
118
|
+
const i = t.titleLevel ?? 2, b = l(10), f = l(2), w = l(0), $ = l(0), B = l(0), c = l(!1), y = l(!1);
|
|
119
119
|
function q() {
|
|
120
|
-
b.value = 10, f.value = 2, u.value = {}, m.value = {}, w.value = 0,
|
|
120
|
+
b.value = 10, f.value = 2, u.value = {}, m.value = {}, w.value = 0, $.value = 0, B.value = 0, c.value = !1, y.value = !1, k.value = 0, A.value = 0, g.value = 0, F.value = 0, L.value = 0;
|
|
121
121
|
}
|
|
122
122
|
const h = {
|
|
123
123
|
text: { energy: 2.9, co2: 1.5 },
|
|
124
124
|
image: { energy: 32, co2: 20 }
|
|
125
|
-
}, u = l({}), m = l({}), k = l(0),
|
|
125
|
+
}, u = l({}), m = l({}), k = l(0), A = l(0), g = l(0), F = l(0), L = l(0);
|
|
126
126
|
function P() {
|
|
127
|
-
k.value = b.value * h.text.energy + f.value * h.image.energy,
|
|
127
|
+
k.value = b.value * h.text.energy + f.value * h.image.energy, A.value = b.value * h.text.co2 + f.value * h.image.co2, w.value = Number((k.value / 0.8).toFixed(1)), u.value.energyByWeek = k.value.toFixed(1), u.value.personalMicrowavesDuration = w.value, u.value.co2ByWeek = A.value.toFixed(1);
|
|
128
128
|
}
|
|
129
129
|
function M() {
|
|
130
|
-
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3,
|
|
130
|
+
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, F.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300), $.value = g.value / 0.8, B.value = F.value * 2410, m.value.collectiveMicrowavesDuration = $.value.toLocaleString(), m.value.kilometerByPlane = B.value.toLocaleString(), m.value.equivalentPopulationByCity = L.value.toLocaleString(), m.value.collectiveAnnualEnergy = g.value.toLocaleString();
|
|
131
131
|
}
|
|
132
132
|
function S() {
|
|
133
133
|
P(), c.value = !0;
|
|
@@ -165,7 +165,7 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
165
165
|
}, null, 544), [
|
|
166
166
|
[x, f.value]
|
|
167
167
|
]),
|
|
168
|
-
c.value ? (d(),
|
|
168
|
+
c.value ? (d(), K(Ce, {
|
|
169
169
|
key: 0,
|
|
170
170
|
"is-collective": y.value,
|
|
171
171
|
"is-personal": c.value,
|
|
@@ -181,14 +181,14 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
181
181
|
key: 2,
|
|
182
182
|
onClick: T
|
|
183
183
|
}, "🌍 " + a(s.$t("calcul-impact.seeCollectiveImpact")), 1)) : C("", !0),
|
|
184
|
-
e("p",
|
|
184
|
+
e("p", $e, "📝 " + a(s.$t("calcul-impact.legals")), 1)
|
|
185
185
|
]));
|
|
186
186
|
}
|
|
187
|
-
}),
|
|
188
|
-
|
|
189
|
-
const Y = H(
|
|
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
|
+
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
|
+
const Y = H(Fe, {
|
|
190
190
|
configureApp(t) {
|
|
191
|
-
N.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(
|
|
191
|
+
N.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(Q, {
|
|
192
192
|
i18next: N,
|
|
193
193
|
slotStart: "{{",
|
|
194
194
|
slotEnd: "}}"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as F, a as P, i as k, b as W } from "../i18n-
|
|
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-
|
|
5
|
-
const K = {},
|
|
4
|
+
import { R as H } from "../Retry-fzluiEoj.js";
|
|
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({
|
|
8
8
|
__name: "Button.ce",
|
|
@@ -45,7 +45,7 @@ const K = {}, J = {}, X = {}, Y = {}, aa = {}, ea = {
|
|
|
45
45
|
const { t: c } = F(), n = C(a, "selectedAiQuestion"), e = C(a, "selectedNbUser"), l = C(a, "currentLevel"), i = y(!1), d = w(() => ({
|
|
46
46
|
state: l.value === "initial" ? "primary" : "warning",
|
|
47
47
|
label: c(`capacity-calculation.in.buttonLabel.${l.value === "initial" ? "primary" : "warning"}`)
|
|
48
|
-
})), h = w(() => Number.isInteger(n.value)), q = [800, 8e3, 14e3, 25e3, 9e4, 15e4],
|
|
48
|
+
})), h = w(() => Number.isInteger(n.value)), q = [800, 8e3, 14e3, 25e3, 9e4, 15e4], A = /* @__PURE__ */ new Set([
|
|
49
49
|
// Valeurs de base
|
|
50
50
|
10,
|
|
51
51
|
20,
|
|
@@ -78,7 +78,7 @@ const K = {}, J = {}, X = {}, Y = {}, aa = {}, ea = {
|
|
|
78
78
|
75e3,
|
|
79
79
|
1e5,
|
|
80
80
|
125e3
|
|
81
|
-
]), b = Array.from(
|
|
81
|
+
]), b = Array.from(A).sort((o, v) => o - v), M = w(() => {
|
|
82
82
|
const o = b.indexOf(e.value);
|
|
83
83
|
return Math.max(0, o);
|
|
84
84
|
}), Q = (o) => {
|
|
@@ -89,7 +89,7 @@ const K = {}, J = {}, X = {}, Y = {}, aa = {}, ea = {
|
|
|
89
89
|
o.preventDefault();
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, U = () => {
|
|
93
93
|
if (h.value) {
|
|
94
94
|
if (l.value !== "initial") {
|
|
95
95
|
I();
|
|
@@ -98,7 +98,7 @@ const K = {}, J = {}, X = {}, Y = {}, aa = {}, ea = {
|
|
|
98
98
|
n.value === 0 ? e.value >= 10 && e.value <= 400 ? l.value = "normal_weak" : e.value >= 401 && e.value <= 700 ? l.value = "normal_medium" : e.value >= 701 && e.value <= 1e3 ? l.value = "warning" : l.value = "error" : n.value === 1 ? e.value >= 10 && e.value <= 4e4 ? l.value = "normal_weak" : e.value >= 40001 && e.value <= 7e4 ? l.value = "normal_medium" : e.value >= 70001 && e.value <= 1e5 ? l.value = "warning" : l.value = "error" : n.value === 2 && (e.value >= 10 && e.value <= 8e3 ? l.value = "normal_weak" : e.value >= 8001 && e.value <= 14e3 ? l.value = "normal_medium" : e.value >= 14001 && e.value <= 2e4 ? l.value = "warning" : l.value = "error"), i.value = !0;
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
function
|
|
101
|
+
function j(o) {
|
|
102
102
|
if (i.value) {
|
|
103
103
|
o.preventDefault();
|
|
104
104
|
return;
|
|
@@ -120,7 +120,7 @@ const K = {}, J = {}, X = {}, Y = {}, aa = {}, ea = {
|
|
|
120
120
|
"aria-disabled": i.value,
|
|
121
121
|
name: "ai-answer",
|
|
122
122
|
value: m,
|
|
123
|
-
onClick:
|
|
123
|
+
onClick: j,
|
|
124
124
|
checked: n.value === m
|
|
125
125
|
}, null, 8, ua),
|
|
126
126
|
L(" " + s(B), 1)
|
|
@@ -146,7 +146,7 @@ const K = {}, J = {}, X = {}, Y = {}, aa = {}, ea = {
|
|
|
146
146
|
])
|
|
147
147
|
]),
|
|
148
148
|
x(ia, {
|
|
149
|
-
onClick: V(
|
|
149
|
+
onClick: V(U, ["prevent"]),
|
|
150
150
|
"aria-disabled": !h.value,
|
|
151
151
|
label: d.value.label,
|
|
152
152
|
state: d.value.state
|
|
@@ -198,7 +198,7 @@ const $a = /* @__PURE__ */ _(ha, [["render", La]]), Na = {}, qa = {
|
|
|
198
198
|
fill: "none",
|
|
199
199
|
xmlns: "http://www.w3.org/2000/svg"
|
|
200
200
|
};
|
|
201
|
-
function
|
|
201
|
+
function Aa(a, c) {
|
|
202
202
|
return r(), u("svg", qa, [...c[0] || (c[0] = [
|
|
203
203
|
t("path", {
|
|
204
204
|
d: "M5.00009 37.8074C4.62175 37.8074 4.27999 37.7135 3.9748 37.5257C3.66962 37.3379 3.43238 37.0903 3.26307 36.783C3.09226 36.4785 2.99939 36.1476 2.98446 35.7905C2.96953 35.4333 3.0624 35.0848 3.26307 34.745L19.7182 6.27096C19.9186 5.92965 20.1806 5.67538 20.5043 5.50816C20.828 5.34093 21.1602 5.25732 21.5009 5.25732C21.8416 5.25732 22.1735 5.34093 22.4966 5.50816C22.8197 5.67538 23.0814 5.92965 23.2818 6.27096L39.7369 34.745C39.9376 35.0848 40.0305 35.4333 40.0155 35.7905C40.0006 36.1476 39.9077 36.4785 39.7369 36.783C39.5661 37.0873 39.3286 37.3341 39.0243 37.5234C38.7197 37.7128 38.3782 37.8074 37.9999 37.8074H5.00009ZM21.5 32.2179C22.0148 32.2179 22.4511 32.039 22.8088 31.6813C23.1665 31.3238 23.3454 30.8877 23.3454 30.3729C23.3454 29.8581 23.1665 29.4236 22.8088 29.0695C22.4511 28.7153 22.0148 28.5382 21.5 28.5382C20.9852 28.5382 20.5489 28.7153 20.1912 29.0695C19.8334 29.4236 19.6546 29.8581 19.6546 30.3729C19.6546 30.8877 19.8334 31.3238 20.1912 31.6813C20.5489 32.039 20.9852 32.2179 21.5 32.2179ZM21.5 26.8751C22.0076 26.8751 22.4332 26.7034 22.7766 26.36C23.12 26.0166 23.2917 25.5911 23.2917 25.0835V19.8263C23.2917 19.3186 23.12 18.8931 22.7766 18.5497C22.4332 18.2063 22.0076 18.0346 21.5 18.0346C20.9924 18.0346 20.5668 18.2063 20.2234 18.5497C19.88 18.8931 19.7083 19.3186 19.7083 19.8263V25.0835C19.7083 25.5911 19.88 26.0166 20.2234 26.36C20.5668 26.7034 20.9924 26.8751 21.5 26.8751Z",
|
|
@@ -206,7 +206,7 @@ function Ua(a, c) {
|
|
|
206
206
|
}, null, -1)
|
|
207
207
|
])]);
|
|
208
208
|
}
|
|
209
|
-
const Ma = /* @__PURE__ */ _(Na, [["render",
|
|
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 },
|
|
@@ -224,8 +224,8 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Ua]]), Qa = ["aria-level"], Sa = {
|
|
|
224
224
|
class: "capacity-calculation__title"
|
|
225
225
|
}, s(c.$t("capacity-calculation.out.title")), 9, Qa),
|
|
226
226
|
t("div", Sa, [
|
|
227
|
-
t("p",
|
|
228
|
-
t("div",
|
|
227
|
+
t("p", Ua, s(c.$t("capacity-calculation.out.capacity.label")), 1),
|
|
228
|
+
t("div", ja, [
|
|
229
229
|
t("img", {
|
|
230
230
|
src: a.capacityImage,
|
|
231
231
|
alt: ""
|
|
@@ -287,7 +287,7 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Ua]]), Qa = ["aria-level"], Sa = {
|
|
|
287
287
|
]));
|
|
288
288
|
}
|
|
289
289
|
}), Wa = ".capacity-calculation__title{color:#122647;font-family:Nunito,serif;font-weight:700;text-align:center;font-size:1.25rem;line-height:1.75rem;margin-bottom:1rem}.capacity-calculation__grid{display:grid;gap:1rem;grid-template-columns:5fr 2.6fr}.capacity-calculation__grid .initial-state{grid-column:1/span 2}.capacity-calculation__column{display:flex;border-radius:8px;flex-direction:column;padding:16px}@media screen and (max-width:720px){.capacity-calculation__grid{display:flex;flex-direction:column}}", Ga = /* @__PURE__ */ _(Pa, [["styles", [Wa]]]);
|
|
290
|
-
P(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": K, "./locales/en.json":
|
|
290
|
+
P(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": K, "./locales/en.json": X, "./locales/es-419.json": J, "./locales/es.json": Y, "./locales/fr-BE.json": aa, "./locales/fr.json": ea, "./locales/it.json": ta, "./locales/nl.json": ca })).catch((a) => console.error(a));
|
|
291
291
|
const N = z(Ga, {
|
|
292
292
|
configureApp(a) {
|
|
293
293
|
k.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(W, { i18next: k });
|