@1024pix/epreuves-components 4.5.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button.ce-DNrjLa1r.js → Button.ce-Ccv3OLk2.js} +1 -1
- package/dist/{ButtonTooltip.ce-DQ8QAvUM.js → ButtonTooltip.ce-Bo42SFAP.js} +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js +83 -0
- package/dist/{FocusManager.ce-CwF5pnqR.js → FocusManager.ce-BG_n76ZF.js} +2 -2
- package/dist/Icon.ce-Be0LymfA.js +50 -0
- package/dist/{LLMMessage.ce-Duki08xd.js → LLMMessage.ce-y0WmEj7m.js} +24 -22
- package/dist/{Loading.ce-D7CUjrcI.js → Loading.ce-CG-e7tdE.js} +1 -1
- package/dist/Modal.ce-DCTwYJKJ.js +86 -0
- package/dist/{NavigationButton.ce-17UL0Mwu.js → NavigationButton.ce-B-c0m9H8.js} +14 -12
- package/dist/{PixMailMessage.ce-CNULZecQ.js → PixMailMessage.ce-CH6CVQ3H.js} +20 -20
- package/dist/{Popin.ce-VvQiVxjk.js → Popin.ce-CQtpIOkM.js} +3 -3
- package/dist/{Retry-CGkQcck5.js → Retry-DLOo5neI.js} +1 -1
- package/dist/{Stepper.ce-gx2YaVCo.js → Stepper.ce-MmSadTrx.js} +1 -1
- package/dist/{_plugin-vue_export-helper-DROOAHrz.js → _plugin-vue_export-helper-CD1RUA2y.js} +12 -12
- package/dist/components/analyse-mails-phishing.ce.js.js +104 -105
- 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 +13 -13
- package/dist/components/capacity-calculation.ce.js.js +38 -35
- package/dist/components/clickable-image.ce.js.js +10 -10
- package/dist/components/complete-phrase.ce.js.js +12 -12
- package/dist/components/flip-cards.ce.js.js +10 -10
- package/dist/components/generate-mdp.ce.js.js +82 -151
- 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 +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +7 -7
- package/dist/components/mdp-classement.ce.js.js +100 -108
- package/dist/components/message-conversation.ce.js.js +19 -19
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/notification-antivirus.ce.js.js +139 -149
- package/dist/components/phishing-message.ce.js.js +23 -23
- package/dist/components/phishing-notification.ce.js.js +18 -18
- package/dist/components/pix-anonymisation.ce.js.js +9 -9
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +10 -8
- package/dist/components/pix-combinaisons.ce.js.js +13 -13
- package/dist/components/pix-cursor.ce.js.js +13 -13
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +70 -82
- package/dist/components/qcm-deepfake.ce.js.js +23 -23
- package/dist/components/quiz-stepper.ce.js.js +61 -68
- package/dist/components/select-conversation.ce.js.js +4 -4
- package/dist/components/template-mail.ce.js.js +3 -3
- package/dist/components/test-top-mdp.ce.js.js +4 -4
- package/dist/components/trouver-mdp-rs.ce.js.js +52 -66
- package/dist/components/usages-donnees.ce.js.js +7 -7
- package/dist/{i18n-BVfGnSnP.js → i18n-C-1Ne5JG.js} +1 -1
- package/dist/{i18n-lite-V7Z5qwB2.js → i18n-lite-WQsHAHqG.js} +1 -1
- package/dist/{image-quiz.ce-DLpB-rde.js → image-quiz.ce-DGVVVaQN.js} +8 -8
- package/dist/{index-BgVc_wZ5.js → index-C8-9QxHJ.js} +1 -1
- package/dist/index.js +2 -1
- package/dist/metadata.js +29 -25
- package/dist/props.examples.js +115 -113
- package/dist/schema.js +55 -53
- package/dist/{shadow-dom-4LHwwhYa.js → shadow-dom-DSLDIcsa.js} +1 -1
- package/package.json +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js +0 -53
- package/dist/Feedback.ce-MqHV98f3.js +0 -26
- package/dist/Icon.ce-O_y_jvjK.js +0 -50
- package/dist/components/feedback.ce.js.js +0 -4
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { b as C, o as v, f as J, D as r, C as a, E as i, x as t, 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 _ } from "../i18n-lite-WQsHAHqG.js";
|
|
3
|
+
import { b as oe } from "../normalize-props-DH0oPBss.js";
|
|
4
|
+
import { p as le } from "../shadow-dom-DSLDIcsa.js";
|
|
5
|
+
import { B as V, I as N } from "../Icon.ce-Be0LymfA.js";
|
|
6
|
+
import { M as L, I as B } from "../Modal.ce-DCTwYJKJ.js";
|
|
7
|
+
const te = {}, ae = {}, ne = {
|
|
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
|
+
}, ie = {}, se = {}, de = {}, ue = {
|
|
10
|
+
"unavailable-feature": { title: "Fonctionnalité désactivée", content: "Vous n'avez pas accès à cette fonctionnalité.", close: "Fermer" }
|
|
11
|
+
}, re = {}, pe = "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", ce = /* @__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
|
+
i(t(s.$t("unavailable-feature.title")), 1)
|
|
24
|
+
]),
|
|
25
|
+
content: r(() => [
|
|
26
|
+
i(t(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
|
+
i(t(s.$t("unavailable-feature.close")), 1)
|
|
34
|
+
]),
|
|
35
|
+
_: 1
|
|
36
|
+
})
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 8, ["show"]));
|
|
40
|
+
}
|
|
41
|
+
}), me = { "aria-live": "polite" }, fe = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "sr-only"
|
|
44
|
+
}, be = {
|
|
45
|
+
key: 0,
|
|
46
|
+
"aria-labelledby": "dialog-label",
|
|
47
|
+
class: "autocompletion-modal",
|
|
48
|
+
role: "dialog"
|
|
49
|
+
}, ve = {
|
|
50
|
+
id: "dialog-label",
|
|
51
|
+
class: "autocompletion-modal__url"
|
|
52
|
+
}, ge = { class: "autocompletion-modal__identity" }, he = { key: 0 }, we = /* @__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, l) => (v(), g(W, null, [
|
|
65
|
+
n("div", me, [
|
|
66
|
+
o.displayModal ? (v(), g("p", fe, t(d.$t("autocompletion-mdp.a11y-info")), 1)) : F("", !0)
|
|
67
|
+
]),
|
|
68
|
+
o.displayModal ? (v(), g("div", be, [
|
|
69
|
+
n("p", ve, t(o.savedUrl), 1),
|
|
70
|
+
n("div", ge, [
|
|
71
|
+
a(N, {
|
|
72
|
+
"background-color": "#bed4ff",
|
|
73
|
+
class: "dialog-label-icon"
|
|
74
|
+
}, {
|
|
75
|
+
default: r(() => [
|
|
76
|
+
i(t(d.$t("autocompletion-mdp.vault.email").at(0).toUpperCase()), 1)
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}),
|
|
80
|
+
n("p", null, [
|
|
81
|
+
o.relatedValueToFill ? (v(), g("span", he, [
|
|
82
|
+
i(t(o.relatedValueToFill), 1),
|
|
83
|
+
l[2] || (l[2] = n("br", null, null, -1))
|
|
84
|
+
])) : F("", !0),
|
|
85
|
+
i(t(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: l[0] || (l[0] = P((u) => d.$emit("fill-input", o.valueToFill), ["prevent"])),
|
|
94
|
+
onFocusout: l[1] || (l[1] = (u) => d.$emit("hide-modal"))
|
|
95
|
+
}, {
|
|
96
|
+
default: r(() => [
|
|
97
|
+
i(t(d.$t("autocompletion-mdp.button.label")), 1)
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 8, ["aria-label"])
|
|
101
|
+
])
|
|
102
|
+
])) : F("", !0)
|
|
103
|
+
], 64));
|
|
104
|
+
}
|
|
105
|
+
}), _e = ".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}}", S = /* @__PURE__ */ R(we, [["styles", [_e]], ["__scopeId", "data-v-2dd3430d"]]), ye = { class: "wrapper" }, xe = ["aria-level"], ke = ["src"], $e = { class: "wrapper__input" }, Fe = { class: "wrapper__input" }, Me = /* @__PURE__ */ C({
|
|
106
|
+
__name: "AutocompletionMdp.ce",
|
|
107
|
+
props: {
|
|
108
|
+
titleLevel: { type: Number }
|
|
109
|
+
},
|
|
110
|
+
setup(o, { expose: s }) {
|
|
111
|
+
le();
|
|
112
|
+
function p() {
|
|
113
|
+
l.value = "", u.value = "", y.value = !1, c.value = !1, m.value = !1, h.value = !1;
|
|
114
|
+
}
|
|
115
|
+
const d = b("success-modal"), l = f(""), u = f(""), y = f(!1), c = f(!1), m = f(!1), h = f(!1), E = b("emailInput"), A = b("passwordInput"), x = b("fillEmailModal"), k = b("fillPasswordModal"), H = Y(() => !(l.value && u.value));
|
|
116
|
+
async function q() {
|
|
117
|
+
y.value = !0, await M(), d.value.dialogElement.focus();
|
|
118
|
+
}
|
|
119
|
+
function D() {
|
|
120
|
+
l.value || (c.value = !0, m.value = !1);
|
|
121
|
+
}
|
|
122
|
+
function G() {
|
|
123
|
+
u.value || (c.value = !1, m.value = !0);
|
|
124
|
+
}
|
|
125
|
+
function I(e) {
|
|
126
|
+
e?.relatedTarget !== x?.value?.buttonFill?.buttonElement && (c.value = !1);
|
|
127
|
+
}
|
|
128
|
+
function T(e) {
|
|
129
|
+
e?.relatedTarget !== k?.value?.buttonFill?.buttonElement && (m.value = !1);
|
|
130
|
+
}
|
|
131
|
+
async function K(e) {
|
|
132
|
+
l.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, A.value.inputField.focus();
|
|
136
|
+
}
|
|
137
|
+
function Z() {
|
|
138
|
+
x?.value?.buttonFill?.buttonElement.focus();
|
|
139
|
+
}
|
|
140
|
+
function Q() {
|
|
141
|
+
k?.value?.buttonFill?.buttonElement.focus();
|
|
142
|
+
}
|
|
143
|
+
function j() {
|
|
144
|
+
h.value = !h.value;
|
|
145
|
+
}
|
|
146
|
+
return s({
|
|
147
|
+
reset: p
|
|
148
|
+
}), (e, w) => (v(), g("div", ye, [
|
|
149
|
+
n("div", {
|
|
150
|
+
"aria-level": o.titleLevel ?? 2,
|
|
151
|
+
class: "title",
|
|
152
|
+
role: "heading"
|
|
153
|
+
}, [
|
|
154
|
+
a(N, { "background-color": "#2c75ff" }, {
|
|
155
|
+
default: r(() => [
|
|
156
|
+
n("img", {
|
|
157
|
+
src: X(pe),
|
|
158
|
+
alt: ""
|
|
159
|
+
}, null, 8, ke)
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}),
|
|
163
|
+
i(" " + t(e.$t("autocompletion-mdp.title")), 1)
|
|
164
|
+
], 8, xe),
|
|
165
|
+
n("form", null, [
|
|
166
|
+
n("div", $e, [
|
|
167
|
+
a(B, {
|
|
168
|
+
ref_key: "emailInput",
|
|
169
|
+
ref: E,
|
|
170
|
+
modelValue: l.value,
|
|
171
|
+
"onUpdate:modelValue": w[0] || (w[0] = ($) => l.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: I,
|
|
178
|
+
onKeydown: z(Z, ["down"])
|
|
179
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
180
|
+
a(S, {
|
|
181
|
+
ref_key: "fillEmailModal",
|
|
182
|
+
ref: x,
|
|
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: I
|
|
189
|
+
}, null, 8, ["display-modal", "saved-url", "value-to-fill", "button-aria-label"])
|
|
190
|
+
]),
|
|
191
|
+
n("div", Fe, [
|
|
192
|
+
a(B, {
|
|
193
|
+
ref_key: "passwordInput",
|
|
194
|
+
ref: A,
|
|
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: T,
|
|
202
|
+
onKeydown: z(Q, ["down"])
|
|
203
|
+
}, null, 8, ["modelValue", "label"]),
|
|
204
|
+
a(S, {
|
|
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: T
|
|
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
|
+
i(t(e.$t("autocompletion-mdp.connect")), 1)
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["is-disabled"])
|
|
226
|
+
]),
|
|
227
|
+
n("a", {
|
|
228
|
+
class: "forgot-link",
|
|
229
|
+
href: "#",
|
|
230
|
+
onClick: P(j, ["prevent"])
|
|
231
|
+
}, t(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: y.value,
|
|
237
|
+
title: e.$t("autocompletion-mdp.feedback.title")
|
|
238
|
+
}, null, 8, ["content", "show", "title"]),
|
|
239
|
+
a(ce, {
|
|
240
|
+
show: h.value,
|
|
241
|
+
onClose: j
|
|
242
|
+
}, null, 8, ["show"])
|
|
243
|
+
]));
|
|
244
|
+
}
|
|
245
|
+
}), Ce = "*{--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}", Ve = ".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}", Ee = /* @__PURE__ */ R(Me, [["styles", [Ce, Ve]], ["__scopeId", "data-v-b47b4dfe"]]);
|
|
246
|
+
_.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": te, "./locales/es.json": ae, "./locales/fr.json": ne, "./locales/it.json": ie }));
|
|
247
|
+
_.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "../common/poi-design-system/unavailable-feature/locales/de-AT.json": se, "../common/poi-design-system/unavailable-feature/locales/es.json": de, "../common/poi-design-system/unavailable-feature/locales/fr.json": ue, "../common/poi-design-system/unavailable-feature/locales/it.json": re }));
|
|
248
|
+
const U = ee(Ee, {
|
|
249
|
+
configureApp(o) {
|
|
250
|
+
_.changeLanguage(document?.documentElement?.lang || navigator.language), o.use(_);
|
|
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-CD1RUA2y.js";
|
|
2
|
+
import { B as o } from "../Button.ce-Ccv3OLk2.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
|
|
2
|
-
import { a as
|
|
1
|
+
import { b as V, K as R, o as d, 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
|
+
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 = {
|
|
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 =
|
|
23
|
+
const i = R("i18next");
|
|
24
24
|
return d(), p(U, null, [
|
|
25
25
|
v(D, { name: "fade-perso" }, {
|
|
26
26
|
default: r(() => [
|
|
@@ -117,22 +117,22 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
117
117
|
setup(t, { expose: o }) {
|
|
118
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, $.value = 0, B.value = 0, c.value = !1, y.value = !1, k.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, 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({}), m = l({}), k = l(0),
|
|
125
|
+
}, u = l({}), m = l({}), k = l(0), F = l(0), g = l(0), A = 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, F.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 = F.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, 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, 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;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
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:
|
|
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
|
-
}),
|
|
188
|
-
|
|
189
|
-
const Y = H(
|
|
187
|
+
}), Fe = "[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%}}", Ae = /* @__PURE__ */ z(Be, [["styles", [Fe]], ["__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(Ae, {
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { b as g, o as r, c as u, t as p, q as E,
|
|
2
|
-
import { u as F, a as P, i as k, b as W } from "../i18n-
|
|
1
|
+
import { b as g, o as r, c as u, t as p, q as E, E as L, x as s, _, N as C, a as t, F as D, e as R, v as T, C as h, y as V, X as Z, D as O, r as y, g as w, f, l as $, d as z } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { u as F, a as P, i as k, b as W } from "../i18n-C-1Ne5JG.js";
|
|
3
3
|
import { b as G } from "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import { R as H } from "../Retry-
|
|
4
|
+
import { R as H } from "../Retry-DLOo5neI.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({
|
|
@@ -45,7 +45,7 @@ const K = {}, X = {}, J = {}, 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
|
-
})),
|
|
48
|
+
})), x = w(() => Number.isInteger(n.value)), q = [800, 8e3, 14e3, 25e3, 9e4, 15e4], M = /* @__PURE__ */ new Set([
|
|
49
49
|
// Valeurs de base
|
|
50
50
|
10,
|
|
51
51
|
20,
|
|
@@ -78,19 +78,19 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
|
|
|
78
78
|
75e3,
|
|
79
79
|
1e5,
|
|
80
80
|
125e3
|
|
81
|
-
]), b = Array.from(
|
|
81
|
+
]), b = Array.from(M).sort((o, v) => o - v), Q = w(() => {
|
|
82
82
|
const o = b.indexOf(e.value);
|
|
83
83
|
return Math.max(0, o);
|
|
84
|
-
}),
|
|
84
|
+
}), S = (o) => {
|
|
85
85
|
const v = o.target;
|
|
86
86
|
e.value = b[Number(v.value)];
|
|
87
|
-
},
|
|
87
|
+
}, U = (o) => {
|
|
88
88
|
if (i.value) {
|
|
89
89
|
o.preventDefault();
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
},
|
|
93
|
-
if (
|
|
92
|
+
}, j = () => {
|
|
93
|
+
if (x.value) {
|
|
94
94
|
if (l.value !== "initial") {
|
|
95
95
|
I();
|
|
96
96
|
return;
|
|
@@ -98,7 +98,7 @@ const K = {}, X = {}, J = {}, 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 A(o) {
|
|
102
102
|
if (i.value) {
|
|
103
103
|
o.preventDefault();
|
|
104
104
|
return;
|
|
@@ -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(
|
|
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
|
}, [
|
|
@@ -120,7 +120,7 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
|
|
|
120
120
|
"aria-disabled": i.value,
|
|
121
121
|
name: "ai-answer",
|
|
122
122
|
value: m,
|
|
123
|
-
onClick:
|
|
123
|
+
onClick: A,
|
|
124
124
|
checked: n.value === m
|
|
125
125
|
}, null, 8, ua),
|
|
126
126
|
L(" " + s(B), 1)
|
|
@@ -136,25 +136,25 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
|
|
|
136
136
|
name: "nbUser",
|
|
137
137
|
min: 0,
|
|
138
138
|
max: T(b).length - 1,
|
|
139
|
-
value:
|
|
140
|
-
onChange:
|
|
141
|
-
onKeydown:
|
|
139
|
+
value: Q.value,
|
|
140
|
+
onChange: S,
|
|
141
|
+
onKeydown: U,
|
|
142
142
|
"aria-disabled": i.value,
|
|
143
143
|
class: "capacity-calculation__range"
|
|
144
144
|
}, null, 40, va),
|
|
145
145
|
t("label", ma, s(e.value.toLocaleString()), 1)
|
|
146
146
|
])
|
|
147
147
|
]),
|
|
148
|
-
|
|
149
|
-
onClick: V(
|
|
150
|
-
"aria-disabled": !
|
|
148
|
+
h(ia, {
|
|
149
|
+
onClick: V(j, ["prevent"]),
|
|
150
|
+
"aria-disabled": !x.value,
|
|
151
151
|
label: d.value.label,
|
|
152
152
|
state: d.value.state
|
|
153
153
|
}, Z({ _: 2 }, [
|
|
154
154
|
l.value !== "initial" ? {
|
|
155
155
|
name: "icon",
|
|
156
156
|
fn: O(() => [
|
|
157
|
-
|
|
157
|
+
h(H)
|
|
158
158
|
]),
|
|
159
159
|
key: "0"
|
|
160
160
|
} : void 0
|
|
@@ -166,7 +166,8 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
|
|
|
166
166
|
height: "43",
|
|
167
167
|
viewBox: "0 0 43 43",
|
|
168
168
|
fill: "none",
|
|
169
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
169
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
170
|
+
"aria-hidden": "true"
|
|
170
171
|
};
|
|
171
172
|
function wa(a, c) {
|
|
172
173
|
return r(), u("svg", Ca, [...c[0] || (c[0] = [
|
|
@@ -176,12 +177,13 @@ function wa(a, c) {
|
|
|
176
177
|
}, null, -1)
|
|
177
178
|
])]);
|
|
178
179
|
}
|
|
179
|
-
const
|
|
180
|
+
const ha = /* @__PURE__ */ _(ba, [["render", wa]]), xa = {}, ka = {
|
|
180
181
|
width: "43",
|
|
181
182
|
height: "43",
|
|
182
183
|
viewBox: "0 0 43 43",
|
|
183
184
|
fill: "none",
|
|
184
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
185
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
186
|
+
"aria-hidden": "true"
|
|
185
187
|
};
|
|
186
188
|
function La(a, c) {
|
|
187
189
|
return r(), u("svg", ka, [...c[0] || (c[0] = [
|
|
@@ -191,14 +193,15 @@ function La(a, c) {
|
|
|
191
193
|
}, null, -1)
|
|
192
194
|
])]);
|
|
193
195
|
}
|
|
194
|
-
const $a = /* @__PURE__ */ _(
|
|
196
|
+
const $a = /* @__PURE__ */ _(xa, [["render", La]]), Na = {}, qa = {
|
|
195
197
|
width: "43",
|
|
196
198
|
height: "43",
|
|
197
199
|
viewBox: "0 0 43 43",
|
|
198
200
|
fill: "none",
|
|
199
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
201
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
202
|
+
"aria-hidden": "true"
|
|
200
203
|
};
|
|
201
|
-
function
|
|
204
|
+
function Ma(a, c) {
|
|
202
205
|
return r(), u("svg", qa, [...c[0] || (c[0] = [
|
|
203
206
|
t("path", {
|
|
204
207
|
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 +209,7 @@ function Aa(a, c) {
|
|
|
206
209
|
}, null, -1)
|
|
207
210
|
])]);
|
|
208
211
|
}
|
|
209
|
-
const
|
|
212
|
+
const Qa = /* @__PURE__ */ _(Na, [["render", Ma]]), Sa = ["aria-level"], Ua = { class: "capacity-calculation__card" }, ja = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Aa = { 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
213
|
__name: "Answers.ce",
|
|
211
214
|
props: {
|
|
212
215
|
currentLevel: { type: String },
|
|
@@ -222,10 +225,10 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
|
|
|
222
225
|
role: "heading",
|
|
223
226
|
"aria-level": a.titleLevel,
|
|
224
227
|
class: "capacity-calculation__title"
|
|
225
|
-
}, s(c.$t("capacity-calculation.out.title")), 9,
|
|
226
|
-
t("div",
|
|
227
|
-
t("p",
|
|
228
|
-
t("div",
|
|
228
|
+
}, s(c.$t("capacity-calculation.out.title")), 9, Sa),
|
|
229
|
+
t("div", Ua, [
|
|
230
|
+
t("p", ja, s(c.$t("capacity-calculation.out.capacity.label")), 1),
|
|
231
|
+
t("div", Aa, [
|
|
229
232
|
t("img", {
|
|
230
233
|
src: a.capacityImage,
|
|
231
234
|
alt: ""
|
|
@@ -233,10 +236,10 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
|
|
|
233
236
|
a.currentLevel.startsWith("normal_") ? (r(), f($a, {
|
|
234
237
|
key: 0,
|
|
235
238
|
class: "capacity-calculation__img--status"
|
|
236
|
-
})) : a.currentLevel === "warning" ? (r(), f(
|
|
239
|
+
})) : a.currentLevel === "warning" ? (r(), f(Qa, {
|
|
237
240
|
key: 1,
|
|
238
241
|
class: "capacity-calculation__img--status"
|
|
239
|
-
})) : a.currentLevel === "error" ? (r(), f(
|
|
242
|
+
})) : a.currentLevel === "error" ? (r(), f(ha, {
|
|
240
243
|
key: 2,
|
|
241
244
|
class: "capacity-calculation__img--status"
|
|
242
245
|
})) : $("", !0)
|
|
@@ -244,8 +247,8 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
|
|
|
244
247
|
t("p", Ba, s(c.$t(`capacity-calculation.out.capacity.${a.currentLevel}`)), 1)
|
|
245
248
|
]),
|
|
246
249
|
t("div", Ea, [
|
|
247
|
-
t("div",
|
|
248
|
-
t("p",
|
|
250
|
+
t("div", Da, [
|
|
251
|
+
t("p", Ra, s(c.$t("capacity-calculation.out.consumption.label")), 1),
|
|
249
252
|
t("div", {
|
|
250
253
|
class: p(["capacity-calculation__progress-bar", a.currentLevel])
|
|
251
254
|
}, null, 2),
|
|
@@ -267,7 +270,7 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
|
|
|
267
270
|
const c = y(void 0), n = y(10), e = y("initial");
|
|
268
271
|
return (l, i) => (r(), u("div", za, [
|
|
269
272
|
t("div", Fa, [
|
|
270
|
-
|
|
273
|
+
h(ga, {
|
|
271
274
|
"selected-ai-question": c.value,
|
|
272
275
|
"onUpdate:selectedAiQuestion": i[0] || (i[0] = (d) => c.value = d),
|
|
273
276
|
"selected-nb-user": n.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as B, 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, A 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-CD1RUA2y.js";
|
|
2
2
|
import { a as J, b as S } from "../normalize-props-DH0oPBss.js";
|
|
3
|
-
const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], m = 10, Z = /* @__PURE__ */
|
|
3
|
+
const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], m = 10, Z = /* @__PURE__ */ B({
|
|
4
4
|
__name: "ClickableImage.ce",
|
|
5
5
|
props: {
|
|
6
6
|
image: { type: Object },
|
|
@@ -18,10 +18,10 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
18
18
|
});
|
|
19
19
|
const I = a.areas.some(({ spot: e }) => !!e), $ = v(() => a.areas.map((e) => ({
|
|
20
20
|
...e,
|
|
21
|
-
coords:
|
|
22
|
-
spot:
|
|
21
|
+
coords: A(e.coords),
|
|
22
|
+
spot: M(e.spot)
|
|
23
23
|
})));
|
|
24
|
-
function
|
|
24
|
+
function A(e) {
|
|
25
25
|
return {
|
|
26
26
|
x1: e.x1 * r.value,
|
|
27
27
|
y1: e.y1 * r.value,
|
|
@@ -29,7 +29,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
29
29
|
y2: e.y2 * r.value
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function M({ x: e = 0, y: t = 0 } = {}) {
|
|
33
33
|
return {
|
|
34
34
|
x: e * r.value,
|
|
35
35
|
y: t * r.value
|
|
@@ -52,7 +52,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
52
52
|
const x = v(() => u.value ?? f.value), c = v(() => {
|
|
53
53
|
if (x.value !== void 0)
|
|
54
54
|
return $.value[x.value];
|
|
55
|
-
}),
|
|
55
|
+
}), N = v(() => {
|
|
56
56
|
if (!c.value) return {};
|
|
57
57
|
const { tooltipPosition: e, coords: { x1: t, y1: o, x2: n, y2: s } } = c.value;
|
|
58
58
|
switch (e) {
|
|
@@ -82,10 +82,10 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
function
|
|
85
|
+
function R() {
|
|
86
86
|
u.value = void 0;
|
|
87
87
|
}
|
|
88
|
-
return i({ reset:
|
|
88
|
+
return i({ reset: R }), (e, t) => (d(), p("div", K, [
|
|
89
89
|
C("img", _(a.image, {
|
|
90
90
|
ref: "image",
|
|
91
91
|
onLoad: t[0] || (t[0] = (o) => h()),
|
|
@@ -120,7 +120,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
120
120
|
T(C("p", {
|
|
121
121
|
class: "tooltip",
|
|
122
122
|
"aria-hidden": "true",
|
|
123
|
-
style: y(
|
|
123
|
+
style: y(N.value)
|
|
124
124
|
}, X(c.value?.info), 5), [
|
|
125
125
|
[U, c.value]
|
|
126
126
|
])
|