@1024pix/epreuves-components 4.6.1 → 4.6.2
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-CsTDnAGh.js +31 -0
- package/dist/{ButtonTooltip.ce-Bo42SFAP.js → ButtonTooltip.ce-CUxXoH9n.js} +4 -4
- package/dist/{Icon.ce-Be0LymfA.js → Icon.ce-DqVOTSTE.js} +7 -7
- package/dist/{LLMMessage.ce-y0WmEj7m.js → LLMMessage.ce-BM9ikl_y.js} +3 -3
- package/dist/{NavigationButton.ce-B-c0m9H8.js → NavigationButton.ce-CIOKG2O0.js} +3 -3
- package/dist/{PixMailMessage.ce-CH6CVQ3H.js → PixMailMessage.ce-DUSt6eGF.js} +52 -52
- package/dist/{Popin.ce-CQtpIOkM.js → Popin.ce-OnxaZNvT.js} +3 -3
- package/dist/components/analyse-mails-phishing.ce.js.js +6 -6
- package/dist/components/autocompletion-mdp.ce.js.js +79 -79
- package/dist/components/button.ce.js.js +1 -1
- package/dist/components/calcul-impact.ce.js.js +34 -34
- package/dist/components/capacity-calculation.ce.js.js +20 -20
- package/dist/components/clickable-image.ce.js.js +18 -18
- package/dist/components/complete-phrase.ce.js.js +41 -41
- package/dist/components/flip-cards.ce.js.js +18 -18
- package/dist/components/generate-mdp.ce.js.js +23 -23
- package/dist/components/image-quiz.ce.js.js +1 -1
- package/dist/components/image-quizzes.ce.js.js +1 -1
- package/dist/components/llm-compare-messages.ce.js.js +2 -2
- package/dist/components/llm-messages.ce.js.js +1 -1
- package/dist/components/llm-prompt-select.ce.js.js +1 -1
- package/dist/components/mdp-classement.ce.js.js +13 -13
- package/dist/components/message-conversation.ce.js.js +2 -2
- package/dist/components/notification-antivirus.ce.js.js +62 -62
- package/dist/components/phishing-message.ce.js.js +81 -81
- package/dist/components/phishing-notification.ce.js.js +9 -9
- package/dist/components/pix-anonymisation.ce.js.js +72 -72
- package/dist/components/pix-article.ce.js.js +6 -6
- package/dist/components/pix-carousel.ce.js.js +16 -16
- package/dist/components/pix-combinaisons.ce.js.js +14 -14
- package/dist/components/pix-cursor.ce.js.js +28 -28
- package/dist/components/pix-mail-message.ce.js.js +1 -1
- package/dist/components/proteger-mail-spam.ce.js.js +6 -6
- package/dist/components/qcm-deepfake.ce.js.js +26 -26
- package/dist/components/quiz-stepper.ce.js.js +6 -6
- package/dist/components/template-mail.ce.js.js +1 -1
- package/dist/components/test-top-mdp.ce.js.js +3 -3
- package/dist/components/trouver-mdp-rs.ce.js.js +125 -125
- package/dist/components/usages-donnees.ce.js.js +30 -30
- package/dist/{image-quiz.ce-DGVVVaQN.js → image-quiz.ce-KliaBWpC.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Button.ce-Ccv3OLk2.js +0 -31
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { b as C, o as v, f as J, D as r, C as
|
|
2
|
-
import { i as
|
|
1
|
+
import { b as C, o as v, f as J, D as r, C as t, E as i, x as a, h as b, c as g, F as W, a as n, l as F, y as P, _ as R, v as X, Q as z, r as f, g as Y, n as M, d as ee } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { i as w } from "../i18n-lite-WQsHAHqG.js";
|
|
3
3
|
import { b as oe } from "../normalize-props-DH0oPBss.js";
|
|
4
4
|
import { p as le } from "../shadow-dom-DSLDIcsa.js";
|
|
5
|
-
import { B as
|
|
5
|
+
import { B as j, I as N } from "../Icon.ce-DqVOTSTE.js";
|
|
6
6
|
import { M as L, I as B } from "../Modal.ce-DCTwYJKJ.js";
|
|
7
|
-
const
|
|
7
|
+
const ae = {}, te = {}, ne = {}, ie = {}, se = {
|
|
8
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
|
-
},
|
|
9
|
+
}, de = {}, ue = {}, re = {}, ce = {}, pe = {}, me = {}, fe = {
|
|
10
10
|
"unavailable-feature": { title: "Fonctionnalité désactivée", content: "Vous n'avez pas accès à cette fonctionnalité.", close: "Fermer" }
|
|
11
|
-
},
|
|
11
|
+
}, be = {}, ve = {}, ge = "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", _e = /* @__PURE__ */ C({
|
|
12
12
|
__name: "UnavailableFeatureModal.ce",
|
|
13
13
|
props: {
|
|
14
14
|
show: { type: Boolean }
|
|
15
15
|
},
|
|
16
16
|
emits: ["close"],
|
|
17
17
|
setup(o) {
|
|
18
|
-
return (s,
|
|
18
|
+
return (s, c) => (v(), J(L, {
|
|
19
19
|
loop: !0,
|
|
20
20
|
show: o.show
|
|
21
21
|
}, {
|
|
22
22
|
title: r(() => [
|
|
23
|
-
i(
|
|
23
|
+
i(a(s.$t("unavailable-feature.title")), 1)
|
|
24
24
|
]),
|
|
25
25
|
content: r(() => [
|
|
26
|
-
i(
|
|
26
|
+
i(a(s.$t("unavailable-feature.content")), 1)
|
|
27
27
|
]),
|
|
28
28
|
footer: r(() => [
|
|
29
|
-
|
|
30
|
-
onClick:
|
|
29
|
+
t(j, {
|
|
30
|
+
onClick: c[0] || (c[0] = (d) => s.$emit("close"))
|
|
31
31
|
}, {
|
|
32
32
|
default: r(() => [
|
|
33
|
-
i(
|
|
33
|
+
i(a(s.$t("unavailable-feature.close")), 1)
|
|
34
34
|
]),
|
|
35
35
|
_: 1
|
|
36
36
|
})
|
|
@@ -38,18 +38,18 @@ const te = {}, ae = {}, ne = {
|
|
|
38
38
|
_: 1
|
|
39
39
|
}, 8, ["show"]));
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
41
|
+
}), he = { "aria-live": "polite" }, we = {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "sr-only"
|
|
44
|
-
},
|
|
44
|
+
}, ye = {
|
|
45
45
|
key: 0,
|
|
46
46
|
"aria-labelledby": "dialog-label",
|
|
47
47
|
class: "autocompletion-modal",
|
|
48
48
|
role: "dialog"
|
|
49
|
-
},
|
|
49
|
+
}, xe = {
|
|
50
50
|
id: "dialog-label",
|
|
51
51
|
class: "autocompletion-modal__url"
|
|
52
|
-
},
|
|
52
|
+
}, ke = { class: "autocompletion-modal__identity" }, $e = { key: 0 }, Fe = /* @__PURE__ */ C({
|
|
53
53
|
__name: "AutocompletionModal.ce",
|
|
54
54
|
props: {
|
|
55
55
|
valueToFill: { type: String },
|
|
@@ -60,33 +60,33 @@ const te = {}, ae = {}, ne = {
|
|
|
60
60
|
},
|
|
61
61
|
emits: ["fill-input", "hide-modal"],
|
|
62
62
|
setup(o, { expose: s }) {
|
|
63
|
-
const
|
|
64
|
-
return s({ buttonFill:
|
|
65
|
-
n("div",
|
|
66
|
-
o.displayModal ? (v(), g("p",
|
|
63
|
+
const c = b("buttonFill");
|
|
64
|
+
return s({ buttonFill: c }), (d, l) => (v(), g(W, null, [
|
|
65
|
+
n("div", he, [
|
|
66
|
+
o.displayModal ? (v(), g("p", we, a(d.$t("autocompletion-mdp.a11y-info")), 1)) : F("", !0)
|
|
67
67
|
]),
|
|
68
|
-
o.displayModal ? (v(), g("div",
|
|
69
|
-
n("p",
|
|
70
|
-
n("div",
|
|
71
|
-
|
|
68
|
+
o.displayModal ? (v(), g("div", ye, [
|
|
69
|
+
n("p", xe, a(o.savedUrl), 1),
|
|
70
|
+
n("div", ke, [
|
|
71
|
+
t(N, {
|
|
72
72
|
"background-color": "#bed4ff",
|
|
73
73
|
class: "dialog-label-icon"
|
|
74
74
|
}, {
|
|
75
75
|
default: r(() => [
|
|
76
|
-
i(
|
|
76
|
+
i(a(d.$t("autocompletion-mdp.vault.email").at(0).toUpperCase()), 1)
|
|
77
77
|
]),
|
|
78
78
|
_: 1
|
|
79
79
|
}),
|
|
80
80
|
n("p", null, [
|
|
81
|
-
o.relatedValueToFill ? (v(), g("span",
|
|
82
|
-
i(
|
|
81
|
+
o.relatedValueToFill ? (v(), g("span", $e, [
|
|
82
|
+
i(a(o.relatedValueToFill), 1),
|
|
83
83
|
l[2] || (l[2] = n("br", null, null, -1))
|
|
84
84
|
])) : F("", !0),
|
|
85
|
-
i(
|
|
85
|
+
i(a(o.valueToFill), 1)
|
|
86
86
|
]),
|
|
87
|
-
|
|
87
|
+
t(j, {
|
|
88
88
|
ref_key: "buttonFill",
|
|
89
|
-
ref:
|
|
89
|
+
ref: c,
|
|
90
90
|
tabindex: "-1",
|
|
91
91
|
"aria-label": o.buttonAriaLabel,
|
|
92
92
|
variant: "secondary",
|
|
@@ -94,7 +94,7 @@ const te = {}, ae = {}, ne = {
|
|
|
94
94
|
onFocusout: l[1] || (l[1] = (u) => d.$emit("hide-modal"))
|
|
95
95
|
}, {
|
|
96
96
|
default: r(() => [
|
|
97
|
-
i(
|
|
97
|
+
i(a(d.$t("autocompletion-mdp.button.label")), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["aria-label"])
|
|
@@ -102,37 +102,37 @@ const te = {}, ae = {}, ne = {
|
|
|
102
102
|
])) : F("", !0)
|
|
103
103
|
], 64));
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
105
|
+
}), Me = ".autocompletion-modal[data-v-1d7ac28f]{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-1d7ac28f]{color:#4f6384;margin-bottom:8px}.autocompletion-modal__identity[data-v-1d7ac28f]{display:flex;gap:16px;align-items:center}.autocompletion-modal__identity button[data-v-1d7ac28f]{margin-left:auto}.autocompletion-modal[data-v-1d7ac28f] .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-1d7ac28f]{flex-wrap:wrap}.autocompletion-modal__identity button[data-v-1d7ac28f]{margin-left:0;flex-grow:1}}", S = /* @__PURE__ */ R(Fe, [["styles", [Me]], ["__scopeId", "data-v-1d7ac28f"]]), Ce = { class: "wrapper" }, je = ["aria-level"], Ve = ["src"], Ee = { class: "wrapper__input" }, Ae = { class: "wrapper__input" }, Ie = /* @__PURE__ */ C({
|
|
106
106
|
__name: "AutocompletionMdp.ce",
|
|
107
107
|
props: {
|
|
108
108
|
titleLevel: { type: Number }
|
|
109
109
|
},
|
|
110
110
|
setup(o, { expose: s }) {
|
|
111
111
|
le();
|
|
112
|
-
function
|
|
113
|
-
l.value = "", u.value = "", y.value = !1,
|
|
112
|
+
function c() {
|
|
113
|
+
l.value = "", u.value = "", y.value = !1, p.value = !1, m.value = !1, _.value = !1;
|
|
114
114
|
}
|
|
115
|
-
const d = b("success-modal"), l = f(""), u = f(""), y = f(!1),
|
|
115
|
+
const d = b("success-modal"), l = f(""), u = f(""), y = f(!1), p = f(!1), m = f(!1), _ = f(!1), V = b("emailInput"), E = b("passwordInput"), x = b("fillEmailModal"), k = b("fillPasswordModal"), H = Y(() => !(l.value && u.value));
|
|
116
116
|
async function q() {
|
|
117
117
|
y.value = !0, await M(), d.value.dialogElement.focus();
|
|
118
118
|
}
|
|
119
119
|
function D() {
|
|
120
|
-
l.value || (
|
|
120
|
+
l.value || (p.value = !0, m.value = !1);
|
|
121
121
|
}
|
|
122
122
|
function G() {
|
|
123
|
-
u.value || (
|
|
123
|
+
u.value || (p.value = !1, m.value = !0);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
e?.relatedTarget !== x?.value?.buttonFill?.buttonElement && (
|
|
125
|
+
function A(e) {
|
|
126
|
+
e?.relatedTarget !== x?.value?.buttonFill?.buttonElement && (p.value = !1);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function I(e) {
|
|
129
129
|
e?.relatedTarget !== k?.value?.buttonFill?.buttonElement && (m.value = !1);
|
|
130
130
|
}
|
|
131
131
|
async function K(e) {
|
|
132
|
-
l.value = e, await M(),
|
|
132
|
+
l.value = e, await M(), p.value = !1, V.value.inputField.focus();
|
|
133
133
|
}
|
|
134
134
|
async function O(e) {
|
|
135
|
-
u.value = e, await M(), m.value = !1,
|
|
135
|
+
u.value = e, await M(), m.value = !1, E.value.inputField.focus();
|
|
136
136
|
}
|
|
137
137
|
function Z() {
|
|
138
138
|
x?.value?.buttonFill?.buttonElement.focus();
|
|
@@ -140,68 +140,68 @@ const te = {}, ae = {}, ne = {
|
|
|
140
140
|
function Q() {
|
|
141
141
|
k?.value?.buttonFill?.buttonElement.focus();
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function T() {
|
|
144
|
+
_.value = !_.value;
|
|
145
145
|
}
|
|
146
146
|
return s({
|
|
147
|
-
reset:
|
|
148
|
-
}), (e,
|
|
147
|
+
reset: c
|
|
148
|
+
}), (e, h) => (v(), g("div", Ce, [
|
|
149
149
|
n("div", {
|
|
150
150
|
"aria-level": o.titleLevel ?? 2,
|
|
151
151
|
class: "title",
|
|
152
152
|
role: "heading"
|
|
153
153
|
}, [
|
|
154
|
-
|
|
154
|
+
t(N, { "background-color": "#2c75ff" }, {
|
|
155
155
|
default: r(() => [
|
|
156
156
|
n("img", {
|
|
157
|
-
src: X(
|
|
157
|
+
src: X(ge),
|
|
158
158
|
alt: ""
|
|
159
|
-
}, null, 8,
|
|
159
|
+
}, null, 8, Ve)
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}),
|
|
163
|
-
i(" " +
|
|
164
|
-
], 8,
|
|
163
|
+
i(" " + a(e.$t("autocompletion-mdp.title")), 1)
|
|
164
|
+
], 8, je),
|
|
165
165
|
n("form", null, [
|
|
166
|
-
n("div",
|
|
167
|
-
|
|
166
|
+
n("div", Ee, [
|
|
167
|
+
t(B, {
|
|
168
168
|
ref_key: "emailInput",
|
|
169
|
-
ref:
|
|
169
|
+
ref: V,
|
|
170
170
|
modelValue: l.value,
|
|
171
|
-
"onUpdate:modelValue":
|
|
171
|
+
"onUpdate:modelValue": h[0] || (h[0] = ($) => l.value = $),
|
|
172
172
|
label: e.$t("autocompletion-mdp.label-email"),
|
|
173
173
|
readonly: !0,
|
|
174
174
|
placeholder: e.$t("autocompletion-mdp.vault.placeholder"),
|
|
175
175
|
type: "text",
|
|
176
176
|
onFocusin: D,
|
|
177
|
-
onFocusout:
|
|
177
|
+
onFocusout: A,
|
|
178
178
|
onKeydown: z(Z, ["down"])
|
|
179
179
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
180
|
-
|
|
180
|
+
t(S, {
|
|
181
181
|
ref_key: "fillEmailModal",
|
|
182
182
|
ref: x,
|
|
183
|
-
"display-modal":
|
|
183
|
+
"display-modal": p.value,
|
|
184
184
|
"saved-url": e.$t("autocompletion-mdp.vault.url"),
|
|
185
185
|
"value-to-fill": e.$t("autocompletion-mdp.vault.email"),
|
|
186
186
|
"button-aria-label": e.$t("autocompletion-mdp.button.email-label"),
|
|
187
187
|
onFillInput: K,
|
|
188
|
-
onHideModal:
|
|
188
|
+
onHideModal: A
|
|
189
189
|
}, null, 8, ["display-modal", "saved-url", "value-to-fill", "button-aria-label"])
|
|
190
190
|
]),
|
|
191
|
-
n("div",
|
|
192
|
-
|
|
191
|
+
n("div", Ae, [
|
|
192
|
+
t(B, {
|
|
193
193
|
ref_key: "passwordInput",
|
|
194
|
-
ref:
|
|
194
|
+
ref: E,
|
|
195
195
|
modelValue: u.value,
|
|
196
|
-
"onUpdate:modelValue":
|
|
196
|
+
"onUpdate:modelValue": h[1] || (h[1] = ($) => u.value = $),
|
|
197
197
|
label: e.$t("autocompletion-mdp.label-password"),
|
|
198
198
|
readonly: !0,
|
|
199
199
|
type: "text",
|
|
200
200
|
onFocusin: G,
|
|
201
|
-
onFocusout:
|
|
201
|
+
onFocusout: I,
|
|
202
202
|
onKeydown: z(Q, ["down"])
|
|
203
203
|
}, null, 8, ["modelValue", "label"]),
|
|
204
|
-
|
|
204
|
+
t(S, {
|
|
205
205
|
ref_key: "fillPasswordModal",
|
|
206
206
|
ref: k,
|
|
207
207
|
"display-modal": m.value,
|
|
@@ -210,16 +210,16 @@ const te = {}, ae = {}, ne = {
|
|
|
210
210
|
"related-value-to-fill": e.$t("autocompletion-mdp.vault.email"),
|
|
211
211
|
"button-aria-label": e.$t("autocompletion-mdp.button.password-label"),
|
|
212
212
|
onFillInput: O,
|
|
213
|
-
onHideModal:
|
|
213
|
+
onHideModal: I
|
|
214
214
|
}, null, 8, ["display-modal", "saved-url", "related-value-to-fill", "button-aria-label"])
|
|
215
215
|
]),
|
|
216
|
-
|
|
216
|
+
t(j, {
|
|
217
217
|
"is-disabled": H.value,
|
|
218
218
|
class: "connect",
|
|
219
219
|
onClick: q
|
|
220
220
|
}, {
|
|
221
221
|
default: r(() => [
|
|
222
|
-
i(
|
|
222
|
+
i(a(e.$t("autocompletion-mdp.connect")), 1)
|
|
223
223
|
]),
|
|
224
224
|
_: 1
|
|
225
225
|
}, 8, ["is-disabled"])
|
|
@@ -227,27 +227,27 @@ const te = {}, ae = {}, ne = {
|
|
|
227
227
|
n("a", {
|
|
228
228
|
class: "forgot-link",
|
|
229
229
|
href: "#",
|
|
230
|
-
onClick: P(
|
|
231
|
-
},
|
|
232
|
-
|
|
230
|
+
onClick: P(T, ["prevent"])
|
|
231
|
+
}, a(e.$t("autocompletion-mdp.forgot")), 1),
|
|
232
|
+
t(L, {
|
|
233
233
|
ref: "success-modal",
|
|
234
234
|
content: e.$t("autocompletion-mdp.feedback.content"),
|
|
235
235
|
loop: !1,
|
|
236
236
|
show: y.value,
|
|
237
237
|
title: e.$t("autocompletion-mdp.feedback.title")
|
|
238
238
|
}, null, 8, ["content", "show", "title"]),
|
|
239
|
-
|
|
240
|
-
show:
|
|
241
|
-
onClose:
|
|
239
|
+
t(_e, {
|
|
240
|
+
show: _.value,
|
|
241
|
+
onClose: T
|
|
242
242
|
}, null, 8, ["show"])
|
|
243
243
|
]));
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
const U = ee(
|
|
245
|
+
}), Te = "*{--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}", ze = ".wrapper[data-v-ffa98bb7]{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-ffa98bb7]{position:relative;width:100%}[data-v-ffa98bb7] label{margin-top:16px}.title[data-v-ffa98bb7]{display:flex;align-items:center;gap:8px;font-size:1.25rem;font-weight:700}.connect[data-v-ffa98bb7]{display:block;width:100%;margin:16px auto}.forgot-link[data-v-ffa98bb7]{display:block;width:100%;text-align:center;font-size:.875rem}", Be = /* @__PURE__ */ R(Ie, [["styles", [Te, ze]], ["__scopeId", "data-v-ffa98bb7"]]);
|
|
246
|
+
w.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ae, "./locales/en.json": te, "./locales/es-419.json": ne, "./locales/es.json": ie, "./locales/fr.json": se, "./locales/it.json": de, "./locales/nl.json": ue }));
|
|
247
|
+
w.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "../common/poi-design-system/unavailable-feature/locales/de-AT.json": re, "../common/poi-design-system/unavailable-feature/locales/en.json": ce, "../common/poi-design-system/unavailable-feature/locales/es-419.json": pe, "../common/poi-design-system/unavailable-feature/locales/es.json": me, "../common/poi-design-system/unavailable-feature/locales/fr.json": fe, "../common/poi-design-system/unavailable-feature/locales/it.json": be, "../common/poi-design-system/unavailable-feature/locales/nl.json": ve }));
|
|
248
|
+
const U = ee(Be, {
|
|
249
249
|
configureApp(o) {
|
|
250
|
-
|
|
250
|
+
w.changeLanguage(document?.documentElement?.lang || navigator.language), o.use(w);
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
253
|
U.prototype.normalizeProps = (o) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as V, K as R, o as
|
|
1
|
+
import { b as V, K as R, o as m, c as p, F as U, C as v, D as r, a as e, x as a, E 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-CD1RUA2y.js";
|
|
2
2
|
import { a as G, i as N, b as Q } from "../i18n-C-1Ne5JG.js";
|
|
3
3
|
import { b as J } from "../normalize-props-DH0oPBss.js";
|
|
4
4
|
const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
@@ -9,7 +9,7 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
9
9
|
}, se = ["aria-level"], re = { class: "consumption" }, ce = { style: { "font-weight": "bold" } }, ue = { style: { "font-weight": "bold" } }, ve = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "result-calculation"
|
|
12
|
-
},
|
|
12
|
+
}, me = ["titleLevel"], de = { class: "consumption" }, pe = { style: { "font-weight": "bold" } }, fe = { style: { "font-weight": "bold" } }, be = { style: { "font-weight": "bold" } }, ye = { style: { "font-weight": "bold" } }, ge = /* @__PURE__ */ V({
|
|
13
13
|
__name: "ImpactsResults.ce",
|
|
14
14
|
props: {
|
|
15
15
|
titleLevel: { type: Number },
|
|
@@ -21,15 +21,15 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
21
21
|
setup(t) {
|
|
22
22
|
return (o, n) => {
|
|
23
23
|
const i = R("i18next");
|
|
24
|
-
return
|
|
24
|
+
return m(), p(U, null, [
|
|
25
25
|
v(D, { name: "fade-perso" }, {
|
|
26
26
|
default: r(() => [
|
|
27
|
-
t.isPersonal ? (
|
|
27
|
+
t.isPersonal ? (m(), p("div", ie, [
|
|
28
28
|
e("div", {
|
|
29
29
|
class: "header",
|
|
30
30
|
role: "heading",
|
|
31
31
|
"aria-level": t.titleLevel + 1
|
|
32
|
-
}, "📌 " + a(o.$t("calcul-impact.yourPersonalImpact")), 9, se),
|
|
32
|
+
}, " 📌 " + a(o.$t("calcul-impact.yourPersonalImpact")), 9, se),
|
|
33
33
|
e("p", re, a(o.$t("calcul-impact.consumptionForAWeek")), 1),
|
|
34
34
|
e("p", null, [
|
|
35
35
|
n[0] || (n[0] = _(" ⚡ ", -1)),
|
|
@@ -59,13 +59,13 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
59
59
|
}),
|
|
60
60
|
v(D, { name: "fade-collectif" }, {
|
|
61
61
|
default: r(() => [
|
|
62
|
-
t.isCollective ? (
|
|
62
|
+
t.isCollective ? (m(), p("div", ve, [
|
|
63
63
|
e("div", {
|
|
64
64
|
class: "header",
|
|
65
65
|
role: "heading",
|
|
66
66
|
titleLevel: t.titleLevel + 1
|
|
67
|
-
}, "🌍 " + a(o.$t("calcul-impact.yourCollectiveImpact")), 9,
|
|
68
|
-
e("p",
|
|
67
|
+
}, " 🌍 " + a(o.$t("calcul-impact.yourCollectiveImpact")), 9, me),
|
|
68
|
+
e("p", de, a(o.$t("calcul-impact.consumptionForAYear")), 1),
|
|
69
69
|
e("p", null, [
|
|
70
70
|
n[2] || (n[2] = _(" ⚡ ", -1)),
|
|
71
71
|
v(i, {
|
|
@@ -75,7 +75,7 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
75
75
|
e("span", pe, a(t.byYearForAMillion.collectiveAnnualEnergy), 1)
|
|
76
76
|
]),
|
|
77
77
|
homes: r(() => [
|
|
78
|
-
e("span",
|
|
78
|
+
e("span", fe, a(t.byYearForAMillion.equivalentPopulationByCity), 1)
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
}, 8, ["translation"])
|
|
@@ -86,7 +86,7 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
86
86
|
translation: o.$t("calcul-impact.collectiveDuration")
|
|
87
87
|
}, {
|
|
88
88
|
number: r(() => [
|
|
89
|
-
e("span",
|
|
89
|
+
e("span", be, a(t.byYearForAMillion.collectiveMicrowavesDuration), 1)
|
|
90
90
|
]),
|
|
91
91
|
_: 1
|
|
92
92
|
}, 8, ["translation"])
|
|
@@ -109,25 +109,25 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
109
109
|
], 64);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
}), _e = ".result-calculation[data-v-
|
|
112
|
+
}), _e = ".result-calculation[data-v-4769d7ea]{background:#e0f7fa;border-left:solid 3px #00796b;padding:1rem;border-radius:10px}.header[data-v-4769d7ea]{font-size:1.125rem;font-weight:700}.consumption[data-v-4769d7ea]{font-style:italic}.fade-perso-enter-active[data-v-4769d7ea],.fade-collectif-enter-active[data-v-4769d7ea]{transition:all .3s ease-out}.fade-perso-leave-active[data-v-4769d7ea],.fade-collectif-leave-active[data-v-4769d7ea]{transition:all .8s cubic-bezier(1,.5,.8,1)}.fade-perso-enter-from[data-v-4769d7ea],.fade-collectif-enter-from[data-v-4769d7ea],.fade-perso-leave-to[data-v-4769d7ea],.fade-collectif-leave-to[data-v-4769d7ea]{transform:translate(20px);opacity:0}", Ce = /* @__PURE__ */ z(ge, [["styles", [_e]], ["__scopeId", "data-v-4769d7ea"]]), 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,
|
|
118
|
+
const i = t.titleLevel ?? 2, f = l(10), b = l(2), w = l(0), $ = l(0), B = l(0), c = l(!1), y = l(!1);
|
|
119
119
|
function q() {
|
|
120
|
-
|
|
120
|
+
f.value = 10, b.value = 2, u.value = {}, d.value = {}, w.value = 0, $.value = 0, B.value = 0, c.value = !1, y.value = !1, k.value = 0, F.value = 0, g.value = 0, A.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({}),
|
|
125
|
+
}, u = l({}), d = l({}), k = l(0), F = l(0), g = l(0), A = l(0), L = l(0);
|
|
126
126
|
function P() {
|
|
127
|
-
k.value =
|
|
127
|
+
k.value = f.value * h.text.energy + b.value * h.image.energy, F.value = f.value * h.text.co2 + b.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 = F.value.toFixed(1);
|
|
128
128
|
}
|
|
129
129
|
function M() {
|
|
130
|
-
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, A.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300), $.value = g.value / 0.8, B.value = A.value * 2410,
|
|
130
|
+
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, A.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300), $.value = g.value / 0.8, B.value = A.value * 2410, d.value.collectiveMicrowavesDuration = $.value.toLocaleString(), d.value.kilometerByPlane = B.value.toLocaleString(), d.value.equivalentPopulationByCity = L.value.toLocaleString(), d.value.collectiveAnnualEnergy = g.value.toLocaleString();
|
|
131
131
|
}
|
|
132
132
|
function S() {
|
|
133
133
|
P(), c.value = !0;
|
|
@@ -140,51 +140,51 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
140
140
|
}
|
|
141
141
|
return o({
|
|
142
142
|
reset: q
|
|
143
|
-
}), (s, I) => (
|
|
143
|
+
}), (s, I) => (m(), p("div", he, [
|
|
144
144
|
e("div", {
|
|
145
145
|
class: "title",
|
|
146
146
|
role: "heading",
|
|
147
147
|
"arial-level": E(i)
|
|
148
|
-
}, "📊 " + a(s.$t("calcul-impact.title")), 9, ke),
|
|
148
|
+
}, " 📊 " + a(s.$t("calcul-impact.title")), 9, ke),
|
|
149
149
|
e("p", null, a(s.$t("calcul-impact.subtitle")), 1),
|
|
150
150
|
e("label", Ie, "🤖 " + a(s.$t("calcul-impact.numberOfConversationLabel")), 1),
|
|
151
151
|
j(e("input", {
|
|
152
|
-
onChange: W,
|
|
153
|
-
type: "number",
|
|
154
152
|
id: "numberOfConversation",
|
|
155
|
-
"onUpdate:modelValue": I[0] || (I[0] = (O) =>
|
|
153
|
+
"onUpdate:modelValue": I[0] || (I[0] = (O) => f.value = O),
|
|
154
|
+
type: "number",
|
|
155
|
+
onChange: W
|
|
156
156
|
}, null, 544), [
|
|
157
|
-
[x,
|
|
157
|
+
[x, f.value]
|
|
158
158
|
]),
|
|
159
159
|
e("label", we, "🖼️ " + a(s.$t("calcul-impact.numberOfImagesLabel")), 1),
|
|
160
160
|
j(e("input", {
|
|
161
|
-
onChange: W,
|
|
162
|
-
type: "number",
|
|
163
161
|
id: "numberOfImage",
|
|
164
|
-
"onUpdate:modelValue": I[1] || (I[1] = (O) =>
|
|
162
|
+
"onUpdate:modelValue": I[1] || (I[1] = (O) => b.value = O),
|
|
163
|
+
type: "number",
|
|
164
|
+
onChange: W
|
|
165
165
|
}, null, 544), [
|
|
166
|
-
[x,
|
|
166
|
+
[x, b.value]
|
|
167
167
|
]),
|
|
168
|
-
c.value ? (
|
|
168
|
+
c.value ? (m(), K(Ce, {
|
|
169
169
|
key: 0,
|
|
170
170
|
"is-collective": y.value,
|
|
171
171
|
"is-personal": c.value,
|
|
172
172
|
"title-level": E(i),
|
|
173
173
|
"by-week-for-one": u.value,
|
|
174
|
-
"by-year-for-a-million":
|
|
174
|
+
"by-year-for-a-million": d.value
|
|
175
175
|
}, null, 8, ["is-collective", "is-personal", "title-level", "by-week-for-one", "by-year-for-a-million"])) : C("", !0),
|
|
176
|
-
c.value ? C("", !0) : (
|
|
176
|
+
c.value ? C("", !0) : (m(), p("button", {
|
|
177
177
|
key: 1,
|
|
178
178
|
onClick: S
|
|
179
|
-
}, "📌 " + a(s.$t("calcul-impact.seePersonalImpact")), 1)),
|
|
180
|
-
c.value && !y.value ? (
|
|
179
|
+
}, " 📌 " + a(s.$t("calcul-impact.seePersonalImpact")), 1)),
|
|
180
|
+
c.value && !y.value ? (m(), p("button", {
|
|
181
181
|
key: 2,
|
|
182
182
|
onClick: T
|
|
183
|
-
}, "🌍 " + a(s.$t("calcul-impact.seeCollectiveImpact")), 1)) : C("", !0),
|
|
184
|
-
e("p", $e, "📝 " + a(s.$t("calcul-impact.legals")), 1)
|
|
183
|
+
}, " 🌍 " + a(s.$t("calcul-impact.seeCollectiveImpact")), 1)) : C("", !0),
|
|
184
|
+
e("p", $e, " 📝 " + a(s.$t("calcul-impact.legals")), 1)
|
|
185
185
|
]));
|
|
186
186
|
}
|
|
187
|
-
}), Fe = "[data-v-
|
|
187
|
+
}), Fe = "[data-v-61643738]{font-family:Nunito,Roboto,sans-serif;color:#253858}p[data-v-61643738]{padding:0}.container[data-v-61643738]{display:flex;flex-direction:column;gap:1rem}.container button[data-v-61643738]{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-61643738]:hover{background:#225d93}.container input[data-v-61643738]{border:solid 1px lightgrey;border-radius:5px;padding-block:.2rem;width:40%}.container label[data-v-61643738]{font-weight:700}.container .legals[data-v-61643738]{font-size:.9rem;font-style:italic}.container .title[data-v-61643738]{font-size:1.3rem;font-weight:700}@media only screen and (max-width:768px){.container button[data-v-61643738]{width:100%}.container input[data-v-61643738]{width:80%}}", Ae = /* @__PURE__ */ z(Be, [["styles", [Fe]], ["__scopeId", "data-v-61643738"]]);
|
|
188
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(Ae, {
|
|
190
190
|
configureApp(t) {
|