@1024pix/epreuves-components 2.3.0 → 2.4.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/ButtonTooltip.ce-CjtFa5aM.js +44 -0
- package/dist/{LLMMessage.ce-DOzBmUDF.js → LLMMessage.ce-Cjpb0CiE.js} +7 -7
- package/dist/{Loading.ce-CiVWBT3g.js → Loading.ce-1tk4uU9c.js} +1 -1
- package/dist/NavigationButton.ce-CxI2QW8z.js +59 -0
- package/dist/{Retry-CuUMOAZi.js → Retry-CY90VQJl.js} +1 -1
- package/dist/{_plugin-vue_export-helper-D7ghZaw4.js → _plugin-vue_export-helper-DOoVeFcJ.js} +26 -26
- package/dist/components/calcul-impact.ce.js.js +11 -11
- package/dist/components/capacity-calculation.ce.js.js +31 -31
- package/dist/components/clickable-image.ce.js.js +10 -10
- package/dist/components/complete-phrase.ce.js.js +20 -20
- package/dist/components/flip-cards.ce.js.js +11 -11
- package/dist/components/image-quiz.ce.js.js +2 -2
- package/dist/components/image-quizzes.ce.js.js +2 -2
- 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 +4 -4
- package/dist/components/message-conversation.ce.js.js +21 -21
- package/dist/components/mobile-shell.ce.js.js +8 -5
- package/dist/components/phishing-message.ce.js.js +261 -0
- package/dist/components/phishing-notification.ce.js.js +355 -0
- package/dist/components/pix-article.ce.js.js +5 -5
- package/dist/components/pix-carousel.ce.js.js +19 -18
- package/dist/components/pix-cursor.ce.js.js +28 -28
- package/dist/components/qcm-deepfake.ce.js.js +19 -19
- package/dist/components/select-conversation.ce.js.js +104 -0
- package/dist/{i18n-CGAadjAA.js → i18n-ecSMtuba.js} +1 -1
- package/dist/{image-quiz.ce-3HDl6Z67.js → image-quiz.ce-CpI6lZ9m.js} +15 -15
- package/dist/index-4XnHmtKv.js +11905 -0
- package/dist/index.js +4 -1
- package/dist/metadata.js +44 -32
- package/dist/schema.js +63 -24
- package/dist/{shadow-dom-CFAQERh6.js → shadow-dom-DZbyKUWP.js} +1 -1
- package/dist/temporal.utils-B23shw3k.js +4958 -0
- package/package.json +1 -1
- package/dist/NavigationButton.ce-DF5ScHc4.js +0 -98
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { d as h, r as b, g as f, c as v, o as u, a as n, n as w, h as s, t as g, m, i as x, j as y, _ as k } from "./_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
const z = { class: "tooltip-container" }, B = ["id"], $ = ["aria-labelledby", "aria-disabled"], C = /* @__PURE__ */ h({
|
|
3
|
+
inheritAttrs: !1,
|
|
4
|
+
__name: "ButtonTooltip.ce",
|
|
5
|
+
props: {
|
|
6
|
+
disabled: { type: Boolean, default: !1 },
|
|
7
|
+
label: { type: String },
|
|
8
|
+
tooltipPosition: { default: "top", type: String }
|
|
9
|
+
},
|
|
10
|
+
emits: ["click"],
|
|
11
|
+
setup(o, { emit: p }) {
|
|
12
|
+
const i = b(!0), l = f(), d = p;
|
|
13
|
+
function r(a) {
|
|
14
|
+
i.value = a;
|
|
15
|
+
}
|
|
16
|
+
function c() {
|
|
17
|
+
o.disabled || d("click");
|
|
18
|
+
}
|
|
19
|
+
return (a, t) => (u(), v("div", z, [
|
|
20
|
+
n("p", {
|
|
21
|
+
id: s(l),
|
|
22
|
+
class: w(["tooltip", {
|
|
23
|
+
"sr-only": i.value || o.disabled,
|
|
24
|
+
[`${o.tooltipPosition}`]: !0
|
|
25
|
+
}])
|
|
26
|
+
}, g(o.label), 11, B),
|
|
27
|
+
n("button", m(a.$attrs, {
|
|
28
|
+
onMouseenter: t[0] || (t[0] = (e) => r(!1)),
|
|
29
|
+
onMouseleave: t[1] || (t[1] = (e) => r(!0)),
|
|
30
|
+
onFocusin: t[2] || (t[2] = (e) => r(!1)),
|
|
31
|
+
onFocusout: t[3] || (t[3] = (e) => r(!0)),
|
|
32
|
+
onClick: x(c, ["stop"]),
|
|
33
|
+
"aria-labelledby": s(l),
|
|
34
|
+
"aria-disabled": o.disabled,
|
|
35
|
+
class: { disabled: o.disabled }
|
|
36
|
+
}), [
|
|
37
|
+
y(a.$slots, "default")
|
|
38
|
+
], 16, $)
|
|
39
|
+
]));
|
|
40
|
+
}
|
|
41
|
+
}), S = '*{--pix-neutral-800: #253858}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.tooltip-container{position:relative;display:grid}.tooltip-container .tooltip{position:absolute;padding:5px 7px;background:var(--pix-neutral-800);color:#fff;border-radius:4px;z-index:400;margin:0;--horizontal-shift: 12px;--tooltip-gap: 1px;--arrow-height: 6px;--arrow-width: 5px}.tooltip-container .tooltip:before{content:"";position:absolute}.tooltip-container .tooltip.top{bottom:calc(100% + var(--tooltip-gap) + var(--arrow-height));left:50%;transform:translate(calc(var(--horizontal-shift) * -1))}.tooltip-container .tooltip.top:before{top:100%;left:calc(var(--horizontal-shift) - var(--arrow-width));border-right:var(--arrow-width) solid transparent;border-left:var(--arrow-width) solid transparent;border-top:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.bottom{top:calc(100% + var(--tooltip-gap) + var(--arrow-height));left:50%;transform:translate(calc(var(--horizontal-shift) * -1))}.tooltip-container .tooltip.bottom:before{bottom:100%;left:calc(var(--horizontal-shift) - var(--arrow-width));border-right:var(--arrow-width) solid transparent;border-left:var(--arrow-width) solid transparent;border-bottom:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.left{right:calc(100% + var(--tooltip-gap) + var(--arrow-height));top:50%;transform:translateY(-50%)}.tooltip-container .tooltip.left:before{left:100%;top:50%;transform:translateY(-50%);border-top:var(--arrow-width) solid transparent;border-bottom:var(--arrow-width) solid transparent;border-left:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.right{left:calc(100% + var(--tooltip-gap) + var(--arrow-height));top:50%;transform:translateY(-50%)}.tooltip-container .tooltip.right:before{right:100%;top:50%;transform:translateY(-50%);border-top:var(--arrow-width) solid transparent;border-bottom:var(--arrow-width) solid transparent;border-right:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container button:hover{cursor:pointer}.tooltip-container button.disabled{color:#797e89;cursor:not-allowed;border-color:transparent;background:transparent}', M = /* @__PURE__ */ k(C, [["styles", [S]]]);
|
|
42
|
+
export {
|
|
43
|
+
M as B
|
|
44
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a, c as r, o as s, a as b, d as i,
|
|
2
|
-
import { L as p } from "./Loading.ce-
|
|
1
|
+
import { _ as a, c as r, o as s, a as b, d as i, y as n, n as d, e as l, B as o, t as c, E as h } from "./_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
import { L as p } from "./Loading.ce-1tk4uU9c.js";
|
|
3
3
|
const f = {}, C = {
|
|
4
4
|
height: "1rem",
|
|
5
5
|
width: "auto",
|
|
@@ -50,7 +50,7 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
|
|
|
50
50
|
key: 1,
|
|
51
51
|
role: "alert",
|
|
52
52
|
class: "error"
|
|
53
|
-
},
|
|
53
|
+
}, E = {
|
|
54
54
|
key: 2,
|
|
55
55
|
class: "attachment-label"
|
|
56
56
|
}, H = /* @__PURE__ */ i({
|
|
@@ -64,7 +64,7 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
|
|
|
64
64
|
if (e.message.content)
|
|
65
65
|
return e.name ? `<strong>${e.name}</strong> : ${e.message.content}` : e.message.content;
|
|
66
66
|
}), u = n(() => e.message.hasError && e.message.errorMessage?.length > 0);
|
|
67
|
-
return (
|
|
67
|
+
return (A, V) => (s(), r("div", {
|
|
68
68
|
class: d(["message", t.message.direction])
|
|
69
69
|
}, [
|
|
70
70
|
b("span", z, [
|
|
@@ -83,14 +83,14 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
|
|
|
83
83
|
u.value ? (s(), r("div", N, [
|
|
84
84
|
b("p", null, c(t.message.errorMessage), 1)
|
|
85
85
|
])) : o("", !0),
|
|
86
|
-
t.message.attachmentName && m.value ? (s(), r("p",
|
|
86
|
+
t.message.attachmentName && m.value ? (s(), r("p", E, [
|
|
87
87
|
b("span", null, c(t.message.attachmentName), 1),
|
|
88
88
|
h(y)
|
|
89
89
|
])) : o("", !0)
|
|
90
90
|
])
|
|
91
91
|
], 2));
|
|
92
92
|
}
|
|
93
|
-
}), j = ".message{display:flex;width:90%;gap:12px;align-items:start}.message .avatar{align-items:center;aspect-ratio:1/1;background-color:#1c825d;border-radius:8px;display:flex;justify-content:center;margin-top:2px;padding:4px;width:32px;height:32px}.message .loader{margin-top:14px}.message .bubble .content,.message .bubble .error{--background: #efefef;--focus: #0096bfab;--border: #dbdbdb;box-sizing:border-box;font-size:14px;color:#253858;line-height:20px}.message .bubble .content p,.message .bubble .error p{margin:0;word-wrap:break-word}.message .bubble .content h1,.message .bubble .error h1{font-size:1.8em}.message .bubble .content h2,.message .bubble .error h2{font-size:1.4em}.message .bubble .content h3,.message .bubble .error h3{font-size:1.2em}.message .bubble .content h1,.message .bubble .content h2,.message .bubble .content h3,.message .bubble .content h4,.message .bubble .content h5,.message .bubble .content h6,.message .bubble .error h1,.message .bubble .error h2,.message .bubble .error h3,.message .bubble .error h4,.message .bubble .error h5,.message .bubble .error h6{margin-bottom:12px;color:#000}.message .bubble .content strong,.message .bubble .error strong{color:#000}.message .bubble .content h1,.message .bubble .content h2,.message .bubble .content h3,.message .bubble .content h4,.message .bubble .content h5,.message .bubble .content h6,.message .bubble .content b,.message .bubble .content strong,.message .bubble .content th,.message .bubble .error h1,.message .bubble .error h2,.message .bubble .error h3,.message .bubble .error h4,.message .bubble .error h5,.message .bubble .error h6,.message .bubble .error b,.message .bubble .error strong,.message .bubble .error th{font-weight:600}.message .bubble .content q:before,.message .bubble .error q:before{content:none}.message .bubble .content q:after,.message .bubble .error q:after{content:none}.message .bubble .content blockquote,.message .bubble .error blockquote,.message .bubble .content q,.message .bubble .error q{border-left:4px solid var(--focus);margin:1.5em 0;padding:.5em 1em;font-style:italic}.message .bubble .content blockquote>footer,.message .bubble .error blockquote>footer{font-style:normal;border:0}.message .bubble .content blockquote cite,.message .bubble .error blockquote cite{font-style:normal}.message .bubble .content mark,.message .bubble .error mark{background-color:#ff0;border-radius:2px;padding:0 2px;color:#000}.message .bubble .content code,.message .bubble .error code{background:var(--background);color:#000;padding:2.5px 5px;border-radius:6px;font-size:1em}.message .bubble .content hr,.message .bubble .error hr{border:none;border-top:1px solid var(--border)}.message .bubble .content table,.message .bubble .error table{border-collapse:collapse;margin-bottom:10px;width:100%;table-layout:fixed;border:1px solid #dbdbdb;border-radius:8px}.message .bubble .content table caption,.message .bubble .error table caption{text-align:left}.message .bubble .content td,.message .bubble .content th,.message .bubble .error td,.message .bubble .error th{padding:6px;text-align:left;vertical-align:top;word-wrap:break-word;border-right:1px solid var(--border)}.message .bubble .content thead,.message .bubble .error thead{border-bottom:1px solid var(--border)}.message .bubble .content tfoot,.message .bubble .error tfoot{border-top:1px solid var(--border)}.message .bubble .content tbody tr:nth-child(2n),.message .bubble .error tbody tr:nth-child(2n){background-color:#efefef}.message .bubble .content tbody tr:nth-child(2n) button,.message .bubble .error tbody tr:nth-child(2n) button{background-color:#f7f7f7}.message .bubble .content tbody tr:nth-child(2n) button:hover,.message .bubble .error tbody tr:nth-child(2n) button:hover{background-color:#fff}.message .bubble .content details,.message .bubble .error details{display:flex;flex-direction:column;align-items:flex-start;background-color:#f7f7f7;padding:10px 10px 0;margin:1em 0;border-radius:6px;overflow:hidden}.message .bubble .content details[open],.message .bubble .error details[open]{padding:10px}.message .bubble .content details>:last-child,.message .bubble .error details>:last-child{margin-bottom:0}.message .bubble .content details[open] summary,.message .bubble .error details[open] summary{margin-bottom:10px}.message .bubble .content summary,.message .bubble .error summary{display:list-item;background-color:#efefef;padding:10px;margin:-10px -10px 0;cursor:pointer;outline:none}.message .bubble .content summary:hover,.message .bubble .content summary:focus,.message .bubble .error summary:hover,.message .bubble .error summary:focus{text-decoration:underline}.message .bubble .content details>:not(summary),.message .bubble .error details>:not(summary){margin-top:0}.message .bubble .content summary::-webkit-details-marker,.message .bubble .error summary::-webkit-details-marker{color:#363636}.message .bubble .content ul,.message .bubble .error ul{list-style-type:disc;list-style-position:inside}.message .bubble .content ol,.message .bubble .error ol{list-style-type:decimal}.message .bubble .attachment-label{display:flex;align-items:center;gap:.5rem;font-size:.8rem;font-style:italic;justify-content:end;margin:1rem}.message .bubble .error{color:#952e2e;font-style:italic;font-weight:700}.message.outbound{align-self:end;flex-direction:row-reverse}.message.outbound .avatar{background-color:#957ee8}.message.outbound .bubble{background:#cec3f4;border-radius:16px;padding:8px 16px}",
|
|
93
|
+
}), j = ".message{display:flex;width:90%;gap:12px;align-items:start}.message .avatar{align-items:center;aspect-ratio:1/1;background-color:#1c825d;border-radius:8px;display:flex;justify-content:center;margin-top:2px;padding:4px;width:32px;height:32px}.message .loader{margin-top:14px}.message .bubble .content,.message .bubble .error{--background: #efefef;--focus: #0096bfab;--border: #dbdbdb;box-sizing:border-box;font-size:14px;color:#253858;line-height:20px}.message .bubble .content p,.message .bubble .error p{margin:0;word-wrap:break-word}.message .bubble .content h1,.message .bubble .error h1{font-size:1.8em}.message .bubble .content h2,.message .bubble .error h2{font-size:1.4em}.message .bubble .content h3,.message .bubble .error h3{font-size:1.2em}.message .bubble .content h1,.message .bubble .content h2,.message .bubble .content h3,.message .bubble .content h4,.message .bubble .content h5,.message .bubble .content h6,.message .bubble .error h1,.message .bubble .error h2,.message .bubble .error h3,.message .bubble .error h4,.message .bubble .error h5,.message .bubble .error h6{margin-bottom:12px;color:#000}.message .bubble .content strong,.message .bubble .error strong{color:#000}.message .bubble .content h1,.message .bubble .content h2,.message .bubble .content h3,.message .bubble .content h4,.message .bubble .content h5,.message .bubble .content h6,.message .bubble .content b,.message .bubble .content strong,.message .bubble .content th,.message .bubble .error h1,.message .bubble .error h2,.message .bubble .error h3,.message .bubble .error h4,.message .bubble .error h5,.message .bubble .error h6,.message .bubble .error b,.message .bubble .error strong,.message .bubble .error th{font-weight:600}.message .bubble .content q:before,.message .bubble .error q:before{content:none}.message .bubble .content q:after,.message .bubble .error q:after{content:none}.message .bubble .content blockquote,.message .bubble .error blockquote,.message .bubble .content q,.message .bubble .error q{border-left:4px solid var(--focus);margin:1.5em 0;padding:.5em 1em;font-style:italic}.message .bubble .content blockquote>footer,.message .bubble .error blockquote>footer{font-style:normal;border:0}.message .bubble .content blockquote cite,.message .bubble .error blockquote cite{font-style:normal}.message .bubble .content mark,.message .bubble .error mark{background-color:#ff0;border-radius:2px;padding:0 2px;color:#000}.message .bubble .content code,.message .bubble .error code{background:var(--background);color:#000;padding:2.5px 5px;border-radius:6px;font-size:1em}.message .bubble .content hr,.message .bubble .error hr{border:none;border-top:1px solid var(--border)}.message .bubble .content table,.message .bubble .error table{border-collapse:collapse;margin-bottom:10px;width:100%;table-layout:fixed;border:1px solid #dbdbdb;border-radius:8px}.message .bubble .content table caption,.message .bubble .error table caption{text-align:left}.message .bubble .content td,.message .bubble .content th,.message .bubble .error td,.message .bubble .error th{padding:6px;text-align:left;vertical-align:top;word-wrap:break-word;border-right:1px solid var(--border)}.message .bubble .content thead,.message .bubble .error thead{border-bottom:1px solid var(--border)}.message .bubble .content tfoot,.message .bubble .error tfoot{border-top:1px solid var(--border)}.message .bubble .content tbody tr:nth-child(2n),.message .bubble .error tbody tr:nth-child(2n){background-color:#efefef}.message .bubble .content tbody tr:nth-child(2n) button,.message .bubble .error tbody tr:nth-child(2n) button{background-color:#f7f7f7}.message .bubble .content tbody tr:nth-child(2n) button:hover,.message .bubble .error tbody tr:nth-child(2n) button:hover{background-color:#fff}.message .bubble .content details,.message .bubble .error details{display:flex;flex-direction:column;align-items:flex-start;background-color:#f7f7f7;padding:10px 10px 0;margin:1em 0;border-radius:6px;overflow:hidden}.message .bubble .content details[open],.message .bubble .error details[open]{padding:10px}.message .bubble .content details>:last-child,.message .bubble .error details>:last-child{margin-bottom:0}.message .bubble .content details[open] summary,.message .bubble .error details[open] summary{margin-bottom:10px}.message .bubble .content summary,.message .bubble .error summary{display:list-item;background-color:#efefef;padding:10px;margin:-10px -10px 0;cursor:pointer;outline:none}.message .bubble .content summary:hover,.message .bubble .content summary:focus,.message .bubble .error summary:hover,.message .bubble .error summary:focus{text-decoration:underline}.message .bubble .content details>:not(summary),.message .bubble .error details>:not(summary){margin-top:0}.message .bubble .content summary::-webkit-details-marker,.message .bubble .error summary::-webkit-details-marker{color:#363636}.message .bubble .content ul,.message .bubble .error ul{list-style-type:disc;list-style-position:inside}.message .bubble .content ol,.message .bubble .error ol{list-style-type:decimal}.message .bubble .attachment-label{display:flex;align-items:center;gap:.5rem;font-size:.8rem;font-style:italic;justify-content:end;margin:1rem}.message .bubble .error{color:#952e2e;font-style:italic;font-weight:700}.message.outbound{align-self:end;flex-direction:row-reverse}.message.outbound .avatar{background-color:#957ee8}.message.outbound .bubble{background:#cec3f4;border-radius:16px;padding:8px 16px}", U = /* @__PURE__ */ a(H, [["styles", [j]]]);
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
U as L
|
|
96
96
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o, c as a, o as r, a as s } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { _ as o, c as a, o as r, a as s } from "./_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
2
|
const n = ".loader{width:8px;aspect-ratio:1;border-radius:50%;animation:l5 1s infinite linear alternate;transform:translate(100%)}.sr-only{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}@keyframes l5{0%{box-shadow:13px 0 #000,-13px 0 #0002;background:#000}33%{box-shadow:13px 0 #000,-13px 0 #0002;background:#0002}66%{box-shadow:13px 0 #0002,-13px 0 #000;background:#0002}to{box-shadow:13px 0 #0002,-13px 0 #000;background:#000}}@media(prefers-reduced-motion:reduce){.loader{display:none}}", t = {}, d = {
|
|
3
3
|
class: "loader",
|
|
4
4
|
role: "alert"
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { B as a } from "./ButtonTooltip.ce-CjtFa5aM.js";
|
|
2
|
+
import { _ as o, c as l, o as i, a as s, d as c, e as n, K as d } from "./_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
3
|
+
const C = {}, p = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: "16",
|
|
6
|
+
height: "16",
|
|
7
|
+
viewBox: "0 0 16 16",
|
|
8
|
+
fill: "inherit"
|
|
9
|
+
};
|
|
10
|
+
function u(e, t) {
|
|
11
|
+
return i(), l("svg", p, [...t[0] || (t[0] = [
|
|
12
|
+
s("path", {
|
|
13
|
+
d: "M10.5642 8.75826H3.28958C3.07681 8.75826 2.89719 8.68509 2.75075 8.53875C2.60442 8.39231 2.53125 8.2127 2.53125 7.99992C2.53125 7.78714 2.60442 7.60753 2.75075 7.46109C2.89719 7.31475 3.07681 7.24159 3.28958 7.24159H10.5642L7.45292 4.13042C7.30103 3.97842 7.22719 3.80025 7.23142 3.59592C7.23564 3.39159 7.31369 3.21348 7.46558 3.06159C7.61758 2.9207 7.79575 2.84814 8.00008 2.84392C8.20442 2.8397 8.38258 2.91353 8.53458 3.06542L12.9346 7.46542C13.0091 7.54009 13.0636 7.62298 13.0981 7.71409C13.1325 7.80509 13.1498 7.90037 13.1498 7.99992C13.1498 8.09948 13.1325 8.19475 13.0981 8.28575C13.0636 8.37687 13.0091 8.45975 12.9346 8.53442L8.53058 12.9383C8.38703 13.0818 8.21164 13.1536 8.00442 13.1536C7.79719 13.1536 7.61758 13.0818 7.46558 12.9383C7.31369 12.7864 7.23775 12.6061 7.23775 12.3976C7.23775 12.189 7.31369 12.0088 7.46558 11.8568L10.5642 8.75826Z",
|
|
14
|
+
fill: "inherit"
|
|
15
|
+
}, null, -1)
|
|
16
|
+
])]);
|
|
17
|
+
}
|
|
18
|
+
const f = /* @__PURE__ */ o(C, [["render", u]]), g = {}, h = {
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
+
width: "16",
|
|
21
|
+
height: "16",
|
|
22
|
+
viewBox: "0 0 16 16",
|
|
23
|
+
fill: "inherit"
|
|
24
|
+
};
|
|
25
|
+
function x(e, t) {
|
|
26
|
+
return i(), l("svg", h, [...t[0] || (t[0] = [
|
|
27
|
+
s("path", {
|
|
28
|
+
d: "M5.4356 8.75868L8.54693 11.8698C8.69882 12.0218 8.77265 12.2 8.76843 12.4043C8.76421 12.6087 8.68615 12.7868 8.53426 12.9387C8.38226 13.0796 8.2041 13.1521 7.99976 13.1563C7.79543 13.1606 7.61726 13.0867 7.46526 12.9348L3.06526 8.53485C2.99071 8.46018 2.93621 8.37729 2.90176 8.28618C2.86732 8.19518 2.8501 8.0999 2.8501 8.00035C2.8501 7.90079 2.86732 7.80551 2.90176 7.71451C2.93621 7.6234 2.99071 7.54051 3.06526 7.46585L7.46926 3.06201C7.61282 2.91846 7.78821 2.84668 7.99543 2.84668C8.20265 2.84668 8.38226 2.91846 8.53426 3.06201C8.68615 3.2139 8.7621 3.39412 8.7621 3.60268C8.7621 3.81124 8.68615 3.99151 8.53426 4.14351L5.4356 7.24201H12.7103C12.923 7.24201 13.1027 7.31518 13.2491 7.46151C13.3954 7.60796 13.4686 7.78757 13.4686 8.00035C13.4686 8.21312 13.3954 8.39274 13.2491 8.53918C13.1027 8.68551 12.923 8.75868 12.7103 8.75868H5.4356Z",
|
|
29
|
+
fill: "inherit"
|
|
30
|
+
}, null, -1)
|
|
31
|
+
])]);
|
|
32
|
+
}
|
|
33
|
+
const b = /* @__PURE__ */ o(g, [["render", x]]), w = /* @__PURE__ */ c({
|
|
34
|
+
__name: "NavigationButton.ce",
|
|
35
|
+
props: {
|
|
36
|
+
disabled: { type: Boolean },
|
|
37
|
+
label: { type: String },
|
|
38
|
+
tooltipPosition: { type: String },
|
|
39
|
+
direction: { type: String }
|
|
40
|
+
},
|
|
41
|
+
emits: ["click"],
|
|
42
|
+
setup(e) {
|
|
43
|
+
return (t, r) => (i(), n(a, {
|
|
44
|
+
class: "button",
|
|
45
|
+
onClick: r[0] || (r[0] = (_) => t.$emit("click")),
|
|
46
|
+
"tooltip-position": e.tooltipPosition,
|
|
47
|
+
label: e.label,
|
|
48
|
+
disabled: e.disabled
|
|
49
|
+
}, {
|
|
50
|
+
default: d(() => [
|
|
51
|
+
e.direction === "next" ? (i(), n(f, { key: 0 })) : (i(), n(b, { key: 1 }))
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["tooltip-position", "label", "disabled"]));
|
|
55
|
+
}
|
|
56
|
+
}), m = "*{--pix-neutral-800: #253858;color:var(--pix-neutral-800)}.button{border-radius:100%;padding:4px;width:32px;height:32px;background:transparent;border:1px var(--pix-neutral-800) solid;aspect-ratio:1/1;fill:var(--pix-neutral-800);display:flex;align-items:center;justify-content:center}.button:hover{background:#c3d0ff}.button:active{background:#cdd1d9}", B = /* @__PURE__ */ o(w, [["styles", [m]]]);
|
|
57
|
+
export {
|
|
58
|
+
B as N
|
|
59
|
+
};
|
package/dist/{_plugin-vue_export-helper-D7ghZaw4.js → _plugin-vue_export-helper-DOoVeFcJ.js}
RENAMED
|
@@ -4773,20 +4773,20 @@ const $c = (e, t) => {
|
|
|
4773
4773
|
return s;
|
|
4774
4774
|
};
|
|
4775
4775
|
export {
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4776
|
+
ys as A,
|
|
4777
|
+
Rc as B,
|
|
4778
|
+
Nc as C,
|
|
4779
|
+
Mc as D,
|
|
4780
|
+
ce as E,
|
|
4781
4781
|
Se as F,
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4782
|
+
xc as G,
|
|
4783
|
+
xl as H,
|
|
4784
|
+
rc as I,
|
|
4785
|
+
Ac as J,
|
|
4786
|
+
Co as K,
|
|
4787
|
+
jc as L,
|
|
4788
|
+
_c as M,
|
|
4789
|
+
Hs as N,
|
|
4790
4790
|
Lc as O,
|
|
4791
4791
|
Tc as P,
|
|
4792
4792
|
Pc as Q,
|
|
@@ -4800,24 +4800,24 @@ export {
|
|
|
4800
4800
|
Po as d,
|
|
4801
4801
|
tn as e,
|
|
4802
4802
|
Fc as f,
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4803
|
+
yc as g,
|
|
4804
|
+
Di as h,
|
|
4805
|
+
Hc as i,
|
|
4806
|
+
wc as j,
|
|
4807
|
+
Hi as k,
|
|
4808
|
+
Zt as l,
|
|
4809
4809
|
Sl as m,
|
|
4810
|
-
|
|
4810
|
+
vs as n,
|
|
4811
4811
|
en as o,
|
|
4812
4812
|
Yo as p,
|
|
4813
|
-
|
|
4813
|
+
vc as q,
|
|
4814
4814
|
mc as r,
|
|
4815
4815
|
uo as s,
|
|
4816
|
-
|
|
4816
|
+
Br as t,
|
|
4817
4817
|
Dc as u,
|
|
4818
|
-
|
|
4818
|
+
Qi as v,
|
|
4819
4819
|
Ec as w,
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4820
|
+
Zi as x,
|
|
4821
|
+
Il as y,
|
|
4822
|
+
bc as z
|
|
4823
4823
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as j,
|
|
2
|
-
import { a as H, i as V, b as Q } from "../i18n-
|
|
1
|
+
import { d as j, G as T, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as E, e as U, h as N, O as x, f as G } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
import { a as H, i as V, b as Q } from "../i18n-ecSMtuba.js";
|
|
3
3
|
import { u as J } from "../normalize-props-AlmAfi_u.js";
|
|
4
4
|
const X = {}, Z = {}, ee = {}, te = {
|
|
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 = {
|
|
|
21
21
|
setup(t) {
|
|
22
22
|
return (o, n) => {
|
|
23
23
|
const i = T("i18next");
|
|
24
|
-
return d(), p(
|
|
24
|
+
return d(), p(K, null, [
|
|
25
25
|
v(D, { name: "fade-perso" }, {
|
|
26
26
|
default: r(() => [
|
|
27
27
|
t.isPersonal ? (d(), p("div", oe, [
|
|
@@ -144,32 +144,32 @@ const X = {}, Z = {}, ee = {}, te = {
|
|
|
144
144
|
e("div", {
|
|
145
145
|
class: "title",
|
|
146
146
|
role: "heading",
|
|
147
|
-
"arial-level":
|
|
147
|
+
"arial-level": N(i)
|
|
148
148
|
}, "📊 " + a(s.$t("calcul-impact.title")), 9, Ce),
|
|
149
149
|
e("p", null, a(s.$t("calcul-impact.subtitle")), 1),
|
|
150
150
|
e("label", he, "🤖 " + a(s.$t("calcul-impact.numberOfConversationLabel")), 1),
|
|
151
|
-
|
|
151
|
+
E(e("input", {
|
|
152
152
|
onChange: W,
|
|
153
153
|
type: "number",
|
|
154
154
|
id: "numberOfConversation",
|
|
155
155
|
"onUpdate:modelValue": I[0] || (I[0] = (O) => b.value = O)
|
|
156
156
|
}, null, 544), [
|
|
157
|
-
[
|
|
157
|
+
[x, b.value]
|
|
158
158
|
]),
|
|
159
159
|
e("label", ke, "🖼️ " + a(s.$t("calcul-impact.numberOfImagesLabel")), 1),
|
|
160
|
-
|
|
160
|
+
E(e("input", {
|
|
161
161
|
onChange: W,
|
|
162
162
|
type: "number",
|
|
163
163
|
id: "numberOfImage",
|
|
164
164
|
"onUpdate:modelValue": I[1] || (I[1] = (O) => f.value = O)
|
|
165
165
|
}, null, 544), [
|
|
166
|
-
[
|
|
166
|
+
[x, f.value]
|
|
167
167
|
]),
|
|
168
|
-
c.value ? (d(),
|
|
168
|
+
c.value ? (d(), U(ge, {
|
|
169
169
|
key: 0,
|
|
170
170
|
"is-collective": y.value,
|
|
171
171
|
"is-personal": c.value,
|
|
172
|
-
"title-level":
|
|
172
|
+
"title-level": N(i),
|
|
173
173
|
"by-week-for-one": u.value,
|
|
174
174
|
"by-year-for-a-million": m.value
|
|
175
175
|
}, null, 8, ["is-collective", "is-personal", "title-level", "by-week-for-one", "by-year-for-a-million"])) : C("", !0),
|
|
@@ -186,7 +186,7 @@ const X = {}, Z = {}, ee = {}, te = {
|
|
|
186
186
|
}
|
|
187
187
|
}), $e = "[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%}}", Be = /* @__PURE__ */ z(we, [["styles", [$e]], ["__scopeId", "data-v-7fbb31b5"]]);
|
|
188
188
|
H(/* @__PURE__ */ Object.assign({ "./locales/en.json": X, "./locales/es-419.json": Z, "./locales/es.json": ee, "./locales/fr.json": te, "./locales/it.json": ae, "./locales/nl.json": le })).catch((t) => console.error(t));
|
|
189
|
-
const Y =
|
|
189
|
+
const Y = G(Be, {
|
|
190
190
|
configureApp(t) {
|
|
191
191
|
V.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(Q, {
|
|
192
192
|
i18next: V,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as C, c as d, o,
|
|
2
|
-
import { i as
|
|
3
|
-
import { u as
|
|
4
|
-
import { R as
|
|
1
|
+
import { d as C, c as d, o, n as m, j as D, H as $, t as r, _ as v, P as O, Q as h, r as g, y as x, a as t, E as L, F as R, b as V, h as Z, i as z, S as F, K as T, e as f, B as N, f as P } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
import { i as k, a as H, b as K } from "../i18n-ecSMtuba.js";
|
|
3
|
+
import { u as W } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
+
import { R as G } from "../Retry-CY90VQJl.js";
|
|
5
5
|
const J = {}, X = {}, Y = {}, aa = {
|
|
6
6
|
"capacity-calculation": { title: "Observer l'impact des demandes", in: { title: "Demandes à l'IA", 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: "Faible", normal_medium: "Moyenne", warning: "Très forte", error: "Très forte", initial: "À l'arrêt" }, capacity: { label: "État du supercalculateur :", normal_weak: "Normal", normal_medium: "Normal", warning: "Sollicitation maximale", error: "Ne peut pas répondre à la demande", initial: "À l'arrêt" } } }
|
|
7
7
|
}, ea = {}, ta = {}, ca = /* @__PURE__ */ C({
|
|
@@ -14,7 +14,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
14
14
|
return (c, _) => (o(), d("button", {
|
|
15
15
|
class: m(["epreuve-button", a.state])
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
D(c.$slots, "icon"),
|
|
18
18
|
$(" " + r(a.label), 1)
|
|
19
19
|
], 2));
|
|
20
20
|
}
|
|
@@ -46,7 +46,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
46
46
|
setup(a) {
|
|
47
47
|
const _ = a.titleLevel + 1, n = h(a, "selectedAiQuestion"), e = h(a, "selectedNbUser"), l = h(a, "currentLevel"), s = g(!1), u = x(() => ({
|
|
48
48
|
state: l.value === "initial" ? "primary" : "warning",
|
|
49
|
-
label:
|
|
49
|
+
label: k.t(`capacity-calculation.in.buttonLabel.${l.value === "initial" ? "primary" : "warning"}`)
|
|
50
50
|
})), p = x(() => Number.isInteger(n.value)), Q = [800, 8e3, 14e3, 25e3, 9e4, 15e4], S = /* @__PURE__ */ new Set([
|
|
51
51
|
// Valeurs de base
|
|
52
52
|
10,
|
|
@@ -80,13 +80,13 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
80
80
|
75e3,
|
|
81
81
|
1e5,
|
|
82
82
|
125e3
|
|
83
|
-
]), w = Array.from(S).sort((i, y) => i - y),
|
|
83
|
+
]), w = Array.from(S).sort((i, y) => i - y), M = x(() => {
|
|
84
84
|
const i = w.indexOf(e.value);
|
|
85
85
|
return Math.max(0, i);
|
|
86
|
-
}),
|
|
86
|
+
}), U = (i) => {
|
|
87
87
|
const y = i.target;
|
|
88
88
|
e.value = w[Number(y.value)];
|
|
89
|
-
},
|
|
89
|
+
}, A = (i) => {
|
|
90
90
|
if (s.value) {
|
|
91
91
|
i.preventDefault();
|
|
92
92
|
return;
|
|
@@ -118,7 +118,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
118
118
|
}, r(i.$t("capacity-calculation.in.title")), 1),
|
|
119
119
|
t("fieldset", oa, [
|
|
120
120
|
t("legend", ra, r(i.$t("capacity-calculation.in.aiQuestion")), 1),
|
|
121
|
-
(o(!0), d(R, null, V(i.$t("capacity-calculation.in.aiOptions", { returnObjects: !0 }), (
|
|
121
|
+
(o(!0), d(R, null, V(i.$t("capacity-calculation.in.aiOptions", { returnObjects: !0 }), (E, b) => (o(), d("div", { key: b }, [
|
|
122
122
|
t("label", {
|
|
123
123
|
class: m(["capacity-calculation__ai-option", { "capacity-calculation__ai-option--active": n.value === b, disabled: s.value }])
|
|
124
124
|
}, [
|
|
@@ -130,7 +130,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
130
130
|
onClick: j,
|
|
131
131
|
checked: n.value === b
|
|
132
132
|
}, null, 8, sa),
|
|
133
|
-
$(" " + r(
|
|
133
|
+
$(" " + r(E), 1)
|
|
134
134
|
], 2)
|
|
135
135
|
]))), 128))
|
|
136
136
|
]),
|
|
@@ -143,16 +143,16 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
143
143
|
name: "nbUser",
|
|
144
144
|
min: 0,
|
|
145
145
|
max: Z(w).length - 1,
|
|
146
|
-
value:
|
|
147
|
-
onChange:
|
|
148
|
-
onKeydown:
|
|
146
|
+
value: M.value,
|
|
147
|
+
onChange: U,
|
|
148
|
+
onKeydown: A,
|
|
149
149
|
"aria-disabled": s.value,
|
|
150
150
|
class: "capacity-calculation__range"
|
|
151
151
|
}, null, 40, _a),
|
|
152
152
|
t("label", va, r(e.value.toLocaleString()), 1)
|
|
153
153
|
])
|
|
154
154
|
]),
|
|
155
|
-
|
|
155
|
+
L(ia, {
|
|
156
156
|
onClick: z(I, ["prevent"]),
|
|
157
157
|
"aria-disabled": !p.value,
|
|
158
158
|
label: u.value.label,
|
|
@@ -161,7 +161,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
161
161
|
l.value !== "initial" ? {
|
|
162
162
|
name: "icon",
|
|
163
163
|
fn: T(() => [
|
|
164
|
-
|
|
164
|
+
L(G)
|
|
165
165
|
]),
|
|
166
166
|
key: "0"
|
|
167
167
|
} : void 0
|
|
@@ -190,7 +190,7 @@ const wa = /* @__PURE__ */ v(ga, [["render", Ca]]), ha = {}, xa = {
|
|
|
190
190
|
fill: "none",
|
|
191
191
|
xmlns: "http://www.w3.org/2000/svg"
|
|
192
192
|
};
|
|
193
|
-
function
|
|
193
|
+
function La(a, c) {
|
|
194
194
|
return o(), d("svg", xa, [...c[0] || (c[0] = [
|
|
195
195
|
t("path", {
|
|
196
196
|
d: "M18.9595 24.3502L15.386 20.7767C15.0148 20.4052 14.5468 20.2195 13.9818 20.2195C13.4171 20.2195 12.949 20.4052 12.5776 20.7767C12.2064 21.1479 12.0226 21.6159 12.0262 22.1809C12.0298 22.7456 12.2171 23.2135 12.5883 23.5847L17.5235 28.5198C17.9343 28.928 18.4138 29.1321 18.9617 29.1321C19.5094 29.1321 19.9874 28.928 20.3959 28.5198L30.3581 18.5572C30.7295 18.1861 30.9153 17.7199 30.9153 17.1589C30.9153 16.5975 30.7295 16.1312 30.3581 15.76C29.9869 15.3885 29.5188 15.2028 28.9538 15.2028C28.3892 15.2028 27.9212 15.3885 27.5501 15.76L18.9595 24.3502ZM21.5001 39.7809C18.9646 39.7809 16.5855 39.3013 14.363 38.3422C12.1401 37.383 10.2066 36.0815 8.56244 34.4377C6.91858 32.7935 5.61709 30.86 4.65795 28.6372C3.69881 26.4146 3.21924 24.0356 3.21924 21.5001C3.21924 18.9646 3.69881 16.5855 4.65795 14.363C5.61709 12.1401 6.91858 10.2066 8.56244 8.56244C10.2066 6.91858 12.1401 5.61709 14.363 4.65795C16.5855 3.69881 18.9646 3.21924 21.5001 3.21924C24.0356 3.21924 26.4146 3.69881 28.6372 4.65795C30.86 5.61709 32.7935 6.91858 34.4377 8.56244C36.0815 10.2066 37.383 12.1401 38.3422 14.363C39.3013 16.5855 39.7809 18.9646 39.7809 21.5001C39.7809 24.0356 39.3013 26.4146 38.3422 28.6372C37.383 30.86 36.0815 32.7935 34.4377 34.4377C32.7935 36.0815 30.86 37.383 28.6372 38.3422C26.4146 39.3013 24.0356 39.7809 21.5001 39.7809Z",
|
|
@@ -198,7 +198,7 @@ function ka(a, c) {
|
|
|
198
198
|
}, null, -1)
|
|
199
199
|
])]);
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const ka = /* @__PURE__ */ v(ha, [["render", La]]), $a = {}, Na = {
|
|
202
202
|
width: "43",
|
|
203
203
|
height: "43",
|
|
204
204
|
viewBox: "0 0 43 43",
|
|
@@ -213,7 +213,7 @@ function qa(a, c) {
|
|
|
213
213
|
}, null, -1)
|
|
214
214
|
])]);
|
|
215
215
|
}
|
|
216
|
-
const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"],
|
|
216
|
+
const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"], Ma = { class: "capacity-calculation__card" }, Ua = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Aa = { class: "capacity-calculation__img" }, Ia = ["src"], ja = { class: "capacity-calculation__text" }, Ba = { class: "capacity-calculation__answers" }, Ea = { class: "capacity-calculation__card" }, Da = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Oa = { class: "capacity-calculation__text" }, Ra = /* @__PURE__ */ C({
|
|
217
217
|
__name: "Answers.ce",
|
|
218
218
|
props: {
|
|
219
219
|
currentLevel: { type: String },
|
|
@@ -230,14 +230,14 @@ const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"], Aa = {
|
|
|
230
230
|
"aria-level": a.titleLevel + 1,
|
|
231
231
|
class: "capacity-calculation__subtitle"
|
|
232
232
|
}, r(c.$t("capacity-calculation.out.title")), 9, Sa),
|
|
233
|
-
t("div",
|
|
234
|
-
t("p",
|
|
235
|
-
t("div",
|
|
233
|
+
t("div", Ma, [
|
|
234
|
+
t("p", Ua, r(c.$t("capacity-calculation.out.capacity.label")), 1),
|
|
235
|
+
t("div", Aa, [
|
|
236
236
|
t("img", {
|
|
237
237
|
src: a.capacityImage,
|
|
238
238
|
alt: ""
|
|
239
239
|
}, null, 8, Ia),
|
|
240
|
-
a.currentLevel.startsWith("normal_") ? (o(), f(
|
|
240
|
+
a.currentLevel.startsWith("normal_") ? (o(), f(ka, {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "capacity-calculation__img--status"
|
|
243
243
|
})) : a.currentLevel === "warning" ? (o(), f(Qa, {
|
|
@@ -251,8 +251,8 @@ const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"], Aa = {
|
|
|
251
251
|
t("p", ja, r(c.$t(`capacity-calculation.out.capacity.${a.currentLevel}`)), 1)
|
|
252
252
|
]),
|
|
253
253
|
t("div", Ba, [
|
|
254
|
-
t("div",
|
|
255
|
-
t("p",
|
|
254
|
+
t("div", Ea, [
|
|
255
|
+
t("p", Da, r(c.$t("capacity-calculation.out.consumption.label")), 1),
|
|
256
256
|
t("div", {
|
|
257
257
|
class: m(["capacity-calculation__progress-bar", a.currentLevel])
|
|
258
258
|
}, null, 2),
|
|
@@ -282,7 +282,7 @@ const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"], Aa = {
|
|
|
282
282
|
class: "capacity-calculation__title"
|
|
283
283
|
}, r(s.$t("capacity-calculation.title")), 9, Fa),
|
|
284
284
|
t("div", Ta, [
|
|
285
|
-
|
|
285
|
+
L(ba, {
|
|
286
286
|
"title-level": a.titleLevel,
|
|
287
287
|
"selected-ai-question": _.value,
|
|
288
288
|
"onUpdate:selectedAiQuestion": u[0] || (u[0] = (p) => _.value = p),
|
|
@@ -302,15 +302,15 @@ const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"], Aa = {
|
|
|
302
302
|
])
|
|
303
303
|
]));
|
|
304
304
|
}
|
|
305
|
-
}),
|
|
306
|
-
|
|
307
|
-
const q = P(
|
|
305
|
+
}), Ha = ".capacity-calculation__title,.capacity-calculation__subtitle{color:#122647;font-family:Nunito,serif;font-weight:700;text-align:center}.capacity-calculation__title{font-size:1.75rem;line-height:2.25rem;margin-bottom:1rem}.capacity-calculation__subtitle{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}}", Ka = /* @__PURE__ */ v(Pa, [["styles", [Ha]]]);
|
|
306
|
+
H(/* @__PURE__ */ Object.assign({ "./locales/en.json": J, "./locales/es-419.json": X, "./locales/es.json": Y, "./locales/fr.json": aa, "./locales/it.json": ea, "./locales/nl.json": ta })).catch((a) => console.error(a));
|
|
307
|
+
const q = P(Ka, {
|
|
308
308
|
configureApp(a) {
|
|
309
|
-
|
|
309
|
+
k.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(K, { i18next: k });
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
q.prototype.normalizeProps = (a) => ({
|
|
313
313
|
...a,
|
|
314
|
-
titleLevel:
|
|
314
|
+
titleLevel: W(a.titleLevel)
|
|
315
315
|
});
|
|
316
316
|
window.customElements.define("capacity-calculation", q);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as E,
|
|
1
|
+
import { d as E, q as O, r as x, v as P, x as W, y as c, c as d, o as p, a as w, z as _, m as D, F as L, b as V, i as j, A as y, B as q, h as T, n as U, C as X, t as Y, _ as G, f as H } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
2
|
import { u as C } from "../normalize-props-AlmAfi_u.js";
|
|
3
3
|
const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "aria-label"], v = 10, Q = /* @__PURE__ */ E({
|
|
4
4
|
__name: "ClickableImage.ce",
|
|
@@ -46,13 +46,13 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
46
46
|
function F(e) {
|
|
47
47
|
i.value = e;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function B() {
|
|
50
50
|
i.value = void 0;
|
|
51
51
|
}
|
|
52
52
|
const m = c(() => i.value ?? f.value), u = c(() => {
|
|
53
53
|
if (m.value !== void 0)
|
|
54
54
|
return h.value[m.value];
|
|
55
|
-
}),
|
|
55
|
+
}), N = c(() => {
|
|
56
56
|
if (!u.value) return {};
|
|
57
57
|
const { tooltipPosition: e, coords: { x1: t, y1: o, x2: a, y2: s } } = u.value;
|
|
58
58
|
switch (e) {
|
|
@@ -82,17 +82,17 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
function
|
|
85
|
+
function R() {
|
|
86
86
|
i.value = void 0;
|
|
87
87
|
}
|
|
88
|
-
return S({ reset:
|
|
89
|
-
w("img",
|
|
88
|
+
return S({ reset: R }), (e, t) => (p(), d("div", J, [
|
|
89
|
+
w("img", D(n.image, {
|
|
90
90
|
ref: "image",
|
|
91
91
|
onLoad: t[0] || (t[0] = (o) => g()),
|
|
92
|
-
onClick: t[1] || (t[1] = (o) =>
|
|
92
|
+
onClick: t[1] || (t[1] = (o) => B()),
|
|
93
93
|
alt: ""
|
|
94
94
|
}), null, 16),
|
|
95
|
-
(p(!0), d(
|
|
95
|
+
(p(!0), d(L, null, V(h.value, (o, a) => (p(), d("button", {
|
|
96
96
|
key: a,
|
|
97
97
|
style: y({
|
|
98
98
|
"--y1": `${o.coords.y1}px`,
|
|
@@ -105,7 +105,7 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
105
105
|
onMouseleave: t[2] || (t[2] = (s) => k()),
|
|
106
106
|
onFocusin: (s) => $(a),
|
|
107
107
|
onFocusout: t[3] || (t[3] = (s) => k()),
|
|
108
|
-
onClick:
|
|
108
|
+
onClick: j((s) => F(a), ["stop"]),
|
|
109
109
|
"aria-label": o.info
|
|
110
110
|
}, [
|
|
111
111
|
T(A) ? (p(), d("span", {
|
|
@@ -120,7 +120,7 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
120
120
|
_(w("p", {
|
|
121
121
|
class: "tooltip",
|
|
122
122
|
"aria-hidden": "true",
|
|
123
|
-
style: y(
|
|
123
|
+
style: y(N.value)
|
|
124
124
|
}, Y(u.value?.info), 5), [
|
|
125
125
|
[X, u.value]
|
|
126
126
|
])
|