@1024pix/epreuves-components 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button.ce-Dvxeebpx.js +31 -0
- package/dist/{ButtonTooltip.ce-BnJlaEqx.js → ButtonTooltip.ce-WwOarMJq.js} +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-DVLRq2sO.js +53 -0
- package/dist/Feedback.ce-CnZRBGWf.js +26 -0
- package/dist/{FocusManager.ce-DHXwg6WZ.js → FocusManager.ce-Cv3wYF9s.js} +2 -2
- package/dist/{LLMMessage.ce-jLEqjxsl.js → LLMMessage.ce-B7EwoHy2.js} +4 -4
- package/dist/{Loading.ce-DDtlSLlu.js → Loading.ce-Dv2gEjXm.js} +1 -1
- package/dist/{NavigationButton.ce-BnnVUwGr.js → NavigationButton.ce-D8_YC96l.js} +2 -2
- package/dist/{PixMailMessage.ce-oCccQFGV.js → PixMailMessage.ce-TnjyOfiH.js} +141 -137
- package/dist/{Popin.ce-Co12R3C8.js → Popin.ce-BPnBZykQ.js} +3 -3
- package/dist/{Retry-C7C78Wpj.js → Retry-C3g7zhz8.js} +1 -1
- package/dist/{Stepper.ce-Dttf3Dsf.js → Stepper.ce-DEMN02yr.js} +1 -1
- package/dist/{_plugin-vue_export-helper-B-lVMTio.js → _plugin-vue_export-helper-Dz58mCLm.js} +4 -4
- package/dist/components/analyse-mails-phishing.ce.js.js +9 -8
- package/dist/components/button.ce.js.js +4 -0
- package/dist/components/calcul-impact.ce.js.js +8 -8
- package/dist/components/capacity-calculation.ce.js.js +124 -137
- package/dist/components/clickable-image.ce.js.js +1 -1
- package/dist/components/complete-phrase.ce.js.js +12 -12
- package/dist/components/feedback.ce.js.js +4 -0
- package/dist/components/flip-cards.ce.js.js +7 -7
- 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 +6 -6
- package/dist/components/mdp-classement.ce.js.js +20 -19
- package/dist/components/message-conversation.ce.js.js +10 -10
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +60 -61
- package/dist/components/phishing-notification.ce.js.js +4 -4
- package/dist/components/pix-anonymisation.ce.js.js +63 -64
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +4 -4
- package/dist/components/pix-combinaisons.ce.js.js +96 -96
- package/dist/components/pix-cursor.ce.js.js +10 -10
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +15 -14
- package/dist/components/qcm-deepfake.ce.js.js +41 -41
- package/dist/components/quiz-stepper.ce.js.js +30 -29
- package/dist/components/select-conversation.ce.js.js +6 -6
- package/dist/components/template-mail.ce.js.js +3 -3
- package/dist/components/test-top-mdp.ce.js.js +11 -12
- package/dist/components/trouver-mdp-rs.ce.js.js +97 -96
- package/dist/components/usages-donnees.ce.js.js +183 -0
- package/dist/{i18n-CsT7k7zW.js → i18n-H4HokXDX.js} +1 -1
- package/dist/{i18n-lite-BIJ2LVs6.js → i18n-lite-CzqISEWm.js} +1 -1
- package/dist/{image-quiz.ce-B4NDetit.js → image-quiz.ce-C-iI27gD.js} +2 -2
- package/dist/{index-BaI3Qosp.js → index-BUPiE5WR.js} +1 -1
- package/dist/index.js +2 -1
- package/dist/metadata.js +11 -7
- package/dist/props.examples.js +36 -33
- package/dist/schema.js +38 -29
- package/dist/{shadow-dom-Bouq869n.js → shadow-dom-D54WF-WZ.js} +1 -1
- package/package.json +1 -1
- package/dist/Button.ce-DZ8jDtW5.js +0 -27
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js +0 -75
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import { b, o as
|
|
2
|
-
import { u as
|
|
3
|
-
import { b as
|
|
4
|
-
import { R as
|
|
5
|
-
const
|
|
6
|
-
"capacity-calculation": {
|
|
7
|
-
},
|
|
1
|
+
import { b as g, o as r, c as u, t as p, q as E, B as L, x as s, _, U as C, a as t, F as D, e as R, v as T, D as x, y as V, W as Z, E as O, r as y, g as w, f, l as $, d as z } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
|
+
import { u as F, a as P, i as k, b as W } from "../i18n-H4HokXDX.js";
|
|
3
|
+
import { b as G } from "../normalize-props-DH0oPBss.js";
|
|
4
|
+
import { R as H } from "../Retry-C3g7zhz8.js";
|
|
5
|
+
const K = {}, J = {}, X = {}, Y = {}, aa = {}, ea = {
|
|
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
|
+
}, ta = {}, ca = {}, la = /* @__PURE__ */ g({
|
|
8
8
|
__name: "Button.ce",
|
|
9
9
|
props: {
|
|
10
10
|
label: { type: String },
|
|
11
11
|
state: { type: String }
|
|
12
12
|
},
|
|
13
13
|
setup(a) {
|
|
14
|
-
return (
|
|
15
|
-
class:
|
|
14
|
+
return (c, n) => (r(), u("button", {
|
|
15
|
+
class: p(["epreuve-button", a.state])
|
|
16
16
|
}, [
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
E(c.$slots, "icon"),
|
|
18
|
+
L(" " + s(a.label), 1)
|
|
19
19
|
], 2));
|
|
20
20
|
}
|
|
21
|
-
}),
|
|
21
|
+
}), na = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", ia = /* @__PURE__ */ _(la, [["styles", [na]]]), oa = { class: "capacity-calculation__column capacity-calculation__column--questions" }, ra = { class: "capacity-calculation__fieldset capacity-calculation__fieldset--ai" }, sa = { class: "capacity-calculation__legend" }, ua = ["aria-disabled", "value", "checked"], da = { class: "capacity-calculation__fieldset capacity-calculation__fieldset--range" }, _a = { class: "capacity-calculation__legend--user-question" }, pa = { class: "capacity-calculation__range-wrap" }, va = ["max", "value", "aria-disabled"], ma = {
|
|
22
22
|
for: "nbUser",
|
|
23
23
|
class: "capacity-calculation__range-label"
|
|
24
|
-
},
|
|
24
|
+
}, ya = /* @__PURE__ */ g({
|
|
25
25
|
__name: "Questions.ce",
|
|
26
|
-
props:
|
|
27
|
-
titleLevel: { type: Number }
|
|
28
|
-
}, {
|
|
26
|
+
props: {
|
|
29
27
|
selectedAiQuestion: {
|
|
30
28
|
type: Number,
|
|
31
29
|
default: void 0
|
|
@@ -41,13 +39,13 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
|
|
|
41
39
|
default: "initial"
|
|
42
40
|
},
|
|
43
41
|
currentLevelModifiers: {}
|
|
44
|
-
}
|
|
42
|
+
},
|
|
45
43
|
emits: ["update:selectedAiQuestion", "update:selectedNbUser", "update:currentLevel"],
|
|
46
44
|
setup(a) {
|
|
47
|
-
const
|
|
48
|
-
state:
|
|
49
|
-
label:
|
|
50
|
-
})),
|
|
45
|
+
const { t: c } = F(), n = C(a, "selectedAiQuestion"), e = C(a, "selectedNbUser"), l = C(a, "currentLevel"), i = y(!1), d = w(() => ({
|
|
46
|
+
state: l.value === "initial" ? "primary" : "warning",
|
|
47
|
+
label: c(`capacity-calculation.in.buttonLabel.${l.value === "initial" ? "primary" : "warning"}`)
|
|
48
|
+
})), h = w(() => Number.isInteger(n.value)), q = [800, 8e3, 14e3, 25e3, 9e4, 15e4], U = /* @__PURE__ */ new Set([
|
|
51
49
|
// Valeurs de base
|
|
52
50
|
10,
|
|
53
51
|
20,
|
|
@@ -72,7 +70,7 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
|
|
|
72
70
|
4e3,
|
|
73
71
|
5e3,
|
|
74
72
|
1e4,
|
|
75
|
-
...
|
|
73
|
+
...q,
|
|
76
74
|
2e4,
|
|
77
75
|
3e4,
|
|
78
76
|
4e4,
|
|
@@ -80,140 +78,135 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
|
|
|
80
78
|
75e3,
|
|
81
79
|
1e5,
|
|
82
80
|
125e3
|
|
83
|
-
]),
|
|
84
|
-
const
|
|
85
|
-
return Math.max(0,
|
|
86
|
-
}),
|
|
87
|
-
const
|
|
88
|
-
e.value =
|
|
89
|
-
},
|
|
90
|
-
if (
|
|
91
|
-
|
|
81
|
+
]), b = Array.from(U).sort((o, v) => o - v), M = w(() => {
|
|
82
|
+
const o = b.indexOf(e.value);
|
|
83
|
+
return Math.max(0, o);
|
|
84
|
+
}), Q = (o) => {
|
|
85
|
+
const v = o.target;
|
|
86
|
+
e.value = b[Number(v.value)];
|
|
87
|
+
}, S = (o) => {
|
|
88
|
+
if (i.value) {
|
|
89
|
+
o.preventDefault();
|
|
92
90
|
return;
|
|
93
91
|
}
|
|
94
|
-
},
|
|
95
|
-
if (
|
|
96
|
-
if (
|
|
97
|
-
|
|
92
|
+
}, j = () => {
|
|
93
|
+
if (h.value) {
|
|
94
|
+
if (l.value !== "initial") {
|
|
95
|
+
I();
|
|
98
96
|
return;
|
|
99
97
|
}
|
|
100
|
-
|
|
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;
|
|
101
99
|
}
|
|
102
100
|
};
|
|
103
|
-
function
|
|
104
|
-
if (
|
|
105
|
-
|
|
101
|
+
function A(o) {
|
|
102
|
+
if (i.value) {
|
|
103
|
+
o.preventDefault();
|
|
106
104
|
return;
|
|
107
105
|
}
|
|
108
|
-
|
|
106
|
+
n.value = Number(o.target.value);
|
|
109
107
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
108
|
+
function I() {
|
|
109
|
+
n.value = void 0, e.value = 10, l.value = "initial", i.value = !1;
|
|
112
110
|
}
|
|
113
|
-
return (
|
|
114
|
-
t("
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
class: "capacity-calculation__subtitle"
|
|
118
|
-
}, o(i.$t("capacity-calculation.in.title")), 1),
|
|
119
|
-
t("fieldset", da, [
|
|
120
|
-
t("legend", _a, o(i.$t("capacity-calculation.in.aiQuestion")), 1),
|
|
121
|
-
(n(!0), s(D, null, R(i.$t("capacity-calculation.in.aiOptions", { returnObjects: !0 }), (z, y) => (n(), s("div", { key: y }, [
|
|
111
|
+
return (o, v) => (r(), u("div", oa, [
|
|
112
|
+
t("fieldset", ra, [
|
|
113
|
+
t("legend", sa, s(o.$t("capacity-calculation.in.aiQuestion")), 1),
|
|
114
|
+
(r(!0), u(D, null, R(o.$t("capacity-calculation.in.aiOptions", { returnObjects: !0 }), (B, m) => (r(), u("div", { key: m }, [
|
|
122
115
|
t("label", {
|
|
123
|
-
class:
|
|
116
|
+
class: p(["capacity-calculation__ai-option", { "capacity-calculation__ai-option--active": n.value === m, disabled: i.value }])
|
|
124
117
|
}, [
|
|
125
118
|
t("input", {
|
|
126
119
|
type: "radio",
|
|
127
|
-
"aria-disabled":
|
|
120
|
+
"aria-disabled": i.value,
|
|
128
121
|
name: "ai-answer",
|
|
129
|
-
value:
|
|
130
|
-
onClick:
|
|
131
|
-
checked:
|
|
132
|
-
}, null, 8,
|
|
133
|
-
|
|
122
|
+
value: m,
|
|
123
|
+
onClick: A,
|
|
124
|
+
checked: n.value === m
|
|
125
|
+
}, null, 8, ua),
|
|
126
|
+
L(" " + s(B), 1)
|
|
134
127
|
], 2)
|
|
135
128
|
]))), 128))
|
|
136
129
|
]),
|
|
137
|
-
t("fieldset",
|
|
138
|
-
t("legend",
|
|
139
|
-
t("div",
|
|
130
|
+
t("fieldset", da, [
|
|
131
|
+
t("legend", _a, s(o.$t("capacity-calculation.in.userQuestion")), 1),
|
|
132
|
+
t("div", pa, [
|
|
140
133
|
t("input", {
|
|
141
134
|
type: "range",
|
|
142
135
|
id: "nbUser",
|
|
143
136
|
name: "nbUser",
|
|
144
137
|
min: 0,
|
|
145
|
-
max: T(
|
|
146
|
-
value:
|
|
147
|
-
onChange:
|
|
148
|
-
onKeydown:
|
|
149
|
-
"aria-disabled":
|
|
138
|
+
max: T(b).length - 1,
|
|
139
|
+
value: M.value,
|
|
140
|
+
onChange: Q,
|
|
141
|
+
onKeydown: S,
|
|
142
|
+
"aria-disabled": i.value,
|
|
150
143
|
class: "capacity-calculation__range"
|
|
151
|
-
}, null, 40,
|
|
152
|
-
t("label",
|
|
144
|
+
}, null, 40, va),
|
|
145
|
+
t("label", ma, s(e.value.toLocaleString()), 1)
|
|
153
146
|
])
|
|
154
147
|
]),
|
|
155
|
-
x(
|
|
156
|
-
onClick:
|
|
157
|
-
"aria-disabled": !
|
|
158
|
-
label:
|
|
159
|
-
state:
|
|
160
|
-
},
|
|
161
|
-
|
|
148
|
+
x(ia, {
|
|
149
|
+
onClick: V(j, ["prevent"]),
|
|
150
|
+
"aria-disabled": !h.value,
|
|
151
|
+
label: d.value.label,
|
|
152
|
+
state: d.value.state
|
|
153
|
+
}, Z({ _: 2 }, [
|
|
154
|
+
l.value !== "initial" ? {
|
|
162
155
|
name: "icon",
|
|
163
|
-
fn:
|
|
164
|
-
x(
|
|
156
|
+
fn: O(() => [
|
|
157
|
+
x(H)
|
|
165
158
|
]),
|
|
166
159
|
key: "0"
|
|
167
160
|
} : void 0
|
|
168
161
|
]), 1032, ["aria-disabled", "label", "state"])
|
|
169
162
|
]));
|
|
170
163
|
}
|
|
171
|
-
}),
|
|
164
|
+
}), fa = ".capacity-calculation__column--questions[data-v-55aedee7]{background:#fff;border:1px solid #cdd1d9}.capacity-calculation__column--questions .capacity-calculation__fieldset[data-v-55aedee7]{border:none;display:flex;flex-direction:column;gap:12px;padding:0}.capacity-calculation__column--questions .capacity-calculation__fieldset--range[data-v-55aedee7]{margin-top:12px}.capacity-calculation__column--questions .capacity-calculation__legend[data-v-55aedee7]{font-weight:500;margin-bottom:16px}.capacity-calculation__column--questions .capacity-calculation__legend--user-question[data-v-55aedee7]{font-weight:500;margin:16px 0}.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-55aedee7]{border:1px solid #5e6c84;border-radius:8px;display:block;cursor:pointer;padding:12px;transition:all .2s ease}.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-55aedee7]:hover,.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-55aedee7]:focus{background-color:#f7f5ff;border-color:#613fdd;color:#291a5d}.capacity-calculation__column--questions .capacity-calculation__ai-option--active[data-v-55aedee7]{background-color:#f7f5ff;border-color:#613fdd;color:#291a5d}.capacity-calculation__column--questions .capacity-calculation__ai-option.disabled[data-v-55aedee7]{cursor:not-allowed;background:#f1f1f1;border-color:#5b5b5b}.capacity-calculation__column--questions .capacity-calculation__range-wrap[data-v-55aedee7]{display:flex;flex-direction:column;gap:8px}.capacity-calculation__column--questions .capacity-calculation__range[data-v-55aedee7]{width:100%;accent-color:#613fdd}.capacity-calculation__column--questions .capacity-calculation__range[aria-disabled=true][data-v-55aedee7]{opacity:.3;pointer-events:none}.capacity-calculation__column--questions .capacity-calculation__range-label[data-v-55aedee7]{display:flex;justify-content:center;font-weight:700;margin-block:-5px 10px}", ga = /* @__PURE__ */ _(ya, [["styles", [fa]], ["__scopeId", "data-v-55aedee7"]]), ba = {}, Ca = {
|
|
172
165
|
width: "43",
|
|
173
166
|
height: "43",
|
|
174
167
|
viewBox: "0 0 43 43",
|
|
175
168
|
fill: "none",
|
|
176
169
|
xmlns: "http://www.w3.org/2000/svg"
|
|
177
170
|
};
|
|
178
|
-
function
|
|
179
|
-
return
|
|
171
|
+
function wa(a, c) {
|
|
172
|
+
return r(), u("svg", Ca, [...c[0] || (c[0] = [
|
|
180
173
|
t("path", {
|
|
181
174
|
d: "M21.5001 24.1262L26.5243 29.1505C26.8743 29.5004 27.3121 29.6736 27.8376 29.6701C28.3632 29.6665 28.8008 29.4898 29.1505 29.1402C29.5004 28.7902 29.6754 28.3524 29.6754 27.8269C29.6754 27.3013 29.5004 26.8636 29.1505 26.5136L24.1262 21.5001L29.1505 16.4758C29.5004 16.1258 29.6754 15.688 29.6754 15.1625C29.6754 14.6369 29.5004 14.1993 29.1505 13.8496C28.8008 13.4997 28.3632 13.3247 27.8376 13.3247C27.3121 13.3247 26.8743 13.4997 26.5243 13.8496L21.5001 18.8739L16.4758 13.8496C16.1258 13.4997 15.6898 13.3247 15.1679 13.3247C14.6459 13.3247 14.2099 13.4997 13.8599 13.8496C13.5103 14.1993 13.3354 14.6369 13.3354 15.1625C13.3354 15.688 13.5103 16.1258 13.8599 16.4758L18.8739 21.5001L13.8496 26.5243C13.4997 26.8743 13.3265 27.3103 13.3301 27.8323C13.3336 28.3542 13.5103 28.7902 13.8599 29.1402C14.2099 29.4898 14.6477 29.6647 15.1732 29.6647C15.6988 29.6647 16.1366 29.4898 16.4865 29.1402L21.5001 24.1262ZM21.5001 39.7809C18.9646 39.7809 16.5854 39.3016 14.3625 38.3431C12.1399 37.3845 10.2063 36.083 8.56154 34.4386C6.91709 32.7938 5.61559 30.8602 4.65705 28.6376C3.69851 26.4148 3.21924 24.0356 3.21924 21.5001C3.21924 18.9646 3.69851 16.5854 4.65705 14.3625C5.61559 12.1399 6.91709 10.2063 8.56154 8.56154C10.2063 6.91709 12.1399 5.61559 14.3625 4.65705C16.5854 3.69851 18.9646 3.21924 21.5001 3.21924C24.0356 3.21924 26.4148 3.69851 28.6376 4.65705C30.8602 5.61559 32.7938 6.91709 34.4386 8.56154C36.083 10.2063 37.3845 12.1399 38.3431 14.3625C39.3016 16.5854 39.7809 18.9646 39.7809 21.5001C39.7809 24.0356 39.3016 26.4148 38.3431 28.6376C37.3845 30.8602 36.083 32.7938 34.4386 34.4386C32.7938 36.083 30.8602 37.3845 28.6376 38.3431C26.4148 39.3016 24.0356 39.7809 21.5001 39.7809Z",
|
|
182
175
|
fill: "#D24140"
|
|
183
176
|
}, null, -1)
|
|
184
177
|
])]);
|
|
185
178
|
}
|
|
186
|
-
const
|
|
179
|
+
const xa = /* @__PURE__ */ _(ba, [["render", wa]]), ha = {}, ka = {
|
|
187
180
|
width: "43",
|
|
188
181
|
height: "43",
|
|
189
182
|
viewBox: "0 0 43 43",
|
|
190
183
|
fill: "none",
|
|
191
184
|
xmlns: "http://www.w3.org/2000/svg"
|
|
192
185
|
};
|
|
193
|
-
function
|
|
194
|
-
return
|
|
186
|
+
function La(a, c) {
|
|
187
|
+
return r(), u("svg", ka, [...c[0] || (c[0] = [
|
|
195
188
|
t("path", {
|
|
196
189
|
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",
|
|
197
190
|
fill: "#1f53b5"
|
|
198
191
|
}, null, -1)
|
|
199
192
|
])]);
|
|
200
193
|
}
|
|
201
|
-
const
|
|
194
|
+
const $a = /* @__PURE__ */ _(ha, [["render", La]]), Na = {}, qa = {
|
|
202
195
|
width: "43",
|
|
203
196
|
height: "43",
|
|
204
197
|
viewBox: "0 0 43 43",
|
|
205
198
|
fill: "none",
|
|
206
199
|
xmlns: "http://www.w3.org/2000/svg"
|
|
207
200
|
};
|
|
208
|
-
function
|
|
209
|
-
return
|
|
201
|
+
function Ua(a, c) {
|
|
202
|
+
return r(), u("svg", qa, [...c[0] || (c[0] = [
|
|
210
203
|
t("path", {
|
|
211
204
|
d: "M5.00009 37.8074C4.62175 37.8074 4.27999 37.7135 3.9748 37.5257C3.66962 37.3379 3.43238 37.0903 3.26307 36.783C3.09226 36.4785 2.99939 36.1476 2.98446 35.7905C2.96953 35.4333 3.0624 35.0848 3.26307 34.745L19.7182 6.27096C19.9186 5.92965 20.1806 5.67538 20.5043 5.50816C20.828 5.34093 21.1602 5.25732 21.5009 5.25732C21.8416 5.25732 22.1735 5.34093 22.4966 5.50816C22.8197 5.67538 23.0814 5.92965 23.2818 6.27096L39.7369 34.745C39.9376 35.0848 40.0305 35.4333 40.0155 35.7905C40.0006 36.1476 39.9077 36.4785 39.7369 36.783C39.5661 37.0873 39.3286 37.3341 39.0243 37.5234C38.7197 37.7128 38.3782 37.8074 37.9999 37.8074H5.00009ZM21.5 32.2179C22.0148 32.2179 22.4511 32.039 22.8088 31.6813C23.1665 31.3238 23.3454 30.8877 23.3454 30.3729C23.3454 29.8581 23.1665 29.4236 22.8088 29.0695C22.4511 28.7153 22.0148 28.5382 21.5 28.5382C20.9852 28.5382 20.5489 28.7153 20.1912 29.0695C19.8334 29.4236 19.6546 29.8581 19.6546 30.3729C19.6546 30.8877 19.8334 31.3238 20.1912 31.6813C20.5489 32.039 20.9852 32.2179 21.5 32.2179ZM21.5 26.8751C22.0076 26.8751 22.4332 26.7034 22.7766 26.36C23.12 26.0166 23.2917 25.5911 23.2917 25.0835V19.8263C23.2917 19.3186 23.12 18.8931 22.7766 18.5497C22.4332 18.2063 22.0076 18.0346 21.5 18.0346C20.9924 18.0346 20.5668 18.2063 20.2234 18.5497C19.88 18.8931 19.7083 19.3186 19.7083 19.8263V25.0835C19.7083 25.5911 19.88 26.0166 20.2234 26.36C20.5668 26.7034 20.9924 26.8751 21.5 26.8751Z",
|
|
212
205
|
fill: "#EE6911"
|
|
213
206
|
}, null, -1)
|
|
214
207
|
])]);
|
|
215
208
|
}
|
|
216
|
-
const
|
|
209
|
+
const Ma = /* @__PURE__ */ _(Na, [["render", Ua]]), Qa = ["aria-level"], Sa = { 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({
|
|
217
210
|
__name: "Answers.ce",
|
|
218
211
|
props: {
|
|
219
212
|
currentLevel: { type: String },
|
|
@@ -222,92 +215,86 @@ const Sa = /* @__PURE__ */ p(Ua, [["render", Qa]]), ja = ["aria-level"], Ia = {
|
|
|
222
215
|
capacityImage: { type: String }
|
|
223
216
|
},
|
|
224
217
|
setup(a) {
|
|
225
|
-
return (
|
|
226
|
-
class:
|
|
218
|
+
return (c, n) => (r(), u("div", {
|
|
219
|
+
class: p(["capacity-calculation__column capacity-calculation__column--answers", { [`capacity-calculation__column--answers--${a.currentLevel}`]: !0 }])
|
|
227
220
|
}, [
|
|
228
221
|
t("div", {
|
|
229
222
|
role: "heading",
|
|
230
|
-
"aria-level": a.titleLevel
|
|
231
|
-
class: "capacity-
|
|
232
|
-
},
|
|
233
|
-
t("div",
|
|
234
|
-
t("p",
|
|
235
|
-
t("div",
|
|
223
|
+
"aria-level": a.titleLevel,
|
|
224
|
+
class: "capacity-calculation__title"
|
|
225
|
+
}, s(c.$t("capacity-calculation.out.title")), 9, Qa),
|
|
226
|
+
t("div", Sa, [
|
|
227
|
+
t("p", ja, s(c.$t("capacity-calculation.out.capacity.label")), 1),
|
|
228
|
+
t("div", Aa, [
|
|
236
229
|
t("img", {
|
|
237
230
|
src: a.capacityImage,
|
|
238
231
|
alt: ""
|
|
239
|
-
}, null, 8,
|
|
240
|
-
a.currentLevel.startsWith("normal_") ? (
|
|
232
|
+
}, null, 8, Ia),
|
|
233
|
+
a.currentLevel.startsWith("normal_") ? (r(), f($a, {
|
|
241
234
|
key: 0,
|
|
242
235
|
class: "capacity-calculation__img--status"
|
|
243
|
-
})) : a.currentLevel === "warning" ? (
|
|
236
|
+
})) : a.currentLevel === "warning" ? (r(), f(Ma, {
|
|
244
237
|
key: 1,
|
|
245
238
|
class: "capacity-calculation__img--status"
|
|
246
|
-
})) : a.currentLevel === "error" ? (
|
|
239
|
+
})) : a.currentLevel === "error" ? (r(), f(xa, {
|
|
247
240
|
key: 2,
|
|
248
241
|
class: "capacity-calculation__img--status"
|
|
249
|
-
})) :
|
|
242
|
+
})) : $("", !0)
|
|
250
243
|
]),
|
|
251
|
-
t("p",
|
|
244
|
+
t("p", Ba, s(c.$t(`capacity-calculation.out.capacity.${a.currentLevel}`)), 1)
|
|
252
245
|
]),
|
|
253
|
-
t("div",
|
|
254
|
-
t("div",
|
|
255
|
-
t("p",
|
|
246
|
+
t("div", Ea, [
|
|
247
|
+
t("div", Da, [
|
|
248
|
+
t("p", Ra, s(c.$t("capacity-calculation.out.consumption.label")), 1),
|
|
256
249
|
t("div", {
|
|
257
|
-
class:
|
|
250
|
+
class: p(["capacity-calculation__progress-bar", a.currentLevel])
|
|
258
251
|
}, null, 2),
|
|
259
|
-
t("p",
|
|
252
|
+
t("p", Ta, s(c.$t(`capacity-calculation.out.consumption.${a.currentLevel}`)), 1)
|
|
260
253
|
])
|
|
261
254
|
])
|
|
262
255
|
], 2));
|
|
263
256
|
}
|
|
264
|
-
}),
|
|
257
|
+
}), Za = ".capacity-calculation__column--answers[data-v-c8dd3f3a]{display:flex;gap:.3rem;border:0px}.capacity-calculation__column--answers--normal_weak[data-v-c8dd3f3a],.capacity-calculation__column--answers--normal_medium[data-v-c8dd3f3a]{background:#eaf1ff}.capacity-calculation__column--answers--warning[data-v-c8dd3f3a]{background:#fffaeb}.capacity-calculation__column--answers--error[data-v-c8dd3f3a]{background:#fbebea}.capacity-calculation__column--answers .capacity-calculation__answers[data-v-c8dd3f3a]{display:flex;flex-direction:column;align-items:stretch;gap:8px;justify-content:center;margin-bottom:1rem}.capacity-calculation__column--answers .capacity-calculation__card[data-v-c8dd3f3a]{border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:8px}.capacity-calculation__column--answers .capacity-calculation__text[data-v-c8dd3f3a]{font-size:.875rem;font-weight:400;line-height:1.5rem;text-align:center;margin:0}.capacity-calculation__column--answers .capacity-calculation__text--strong[data-v-c8dd3f3a]{font-weight:700;margin:0}.capacity-calculation__column--answers img[data-v-c8dd3f3a]{max-width:100%}.capacity-calculation__column--answers .capacity-calculation__img[data-v-c8dd3f3a]{position:relative}.capacity-calculation__column--answers .capacity-calculation__img img[data-v-c8dd3f3a]{width:100px;height:100px;border-radius:24px}.capacity-calculation__column--answers .capacity-calculation__img--status[data-v-c8dd3f3a]{position:absolute;top:0;right:0;transform:translate(30%,-30%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar[data-v-c8dd3f3a]{width:100%;height:32px;border-radius:24px;border:solid 2px #253858}.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_weak[data-v-c8dd3f3a],.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_medium[data-v-c8dd3f3a]{background:linear-gradient(90deg,#1f53b5 10%,#fff 36%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.warning[data-v-c8dd3f3a]{background:linear-gradient(90deg,#ee6911 30%,#fff 66%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.error[data-v-c8dd3f3a]{background:linear-gradient(90deg,#d24140 51%,#fff 88%)}@media(max-width:720px){.capacity-calculation__column--answers .capacity-calculation__answers[data-v-c8dd3f3a]{flex-direction:row;justify-content:center;gap:16px}}", Oa = /* @__PURE__ */ _(Va, [["styles", [Za]], ["__scopeId", "data-v-c8dd3f3a"]]), za = { class: "capacity-calculation" }, Fa = {
|
|
265
258
|
class: "capacity-calculation__grid",
|
|
266
259
|
"aria-live": "polite"
|
|
267
|
-
},
|
|
260
|
+
}, Pa = /* @__PURE__ */ g({
|
|
268
261
|
__name: "CapacityCalculation.ce",
|
|
269
262
|
props: {
|
|
270
263
|
titleLevel: { default: 2, type: Number },
|
|
271
264
|
capacityImage: { type: String }
|
|
272
265
|
},
|
|
273
266
|
setup(a) {
|
|
274
|
-
const
|
|
275
|
-
return (
|
|
276
|
-
t("div",
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
"
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
"onUpdate:selectedNbUser": e[1] || (e[1] = (c) => u.value = c),
|
|
288
|
-
"current-level": d.value,
|
|
289
|
-
"onUpdate:currentLevel": e[2] || (e[2] = (c) => d.value = c),
|
|
290
|
-
class: v({ "initial-state": d.value === "initial" })
|
|
291
|
-
}, null, 8, ["title-level", "selected-ai-question", "selected-nb-user", "current-level", "class"]),
|
|
292
|
-
d.value !== "initial" ? (n(), f(Pa, {
|
|
267
|
+
const c = y(void 0), n = y(10), e = y("initial");
|
|
268
|
+
return (l, i) => (r(), u("div", za, [
|
|
269
|
+
t("div", Fa, [
|
|
270
|
+
x(ga, {
|
|
271
|
+
"selected-ai-question": c.value,
|
|
272
|
+
"onUpdate:selectedAiQuestion": i[0] || (i[0] = (d) => c.value = d),
|
|
273
|
+
"selected-nb-user": n.value,
|
|
274
|
+
"onUpdate:selectedNbUser": i[1] || (i[1] = (d) => n.value = d),
|
|
275
|
+
"current-level": e.value,
|
|
276
|
+
"onUpdate:currentLevel": i[2] || (i[2] = (d) => e.value = d),
|
|
277
|
+
class: p({ "initial-state": e.value === "initial" })
|
|
278
|
+
}, null, 8, ["selected-ai-question", "selected-nb-user", "current-level", "class"]),
|
|
279
|
+
e.value !== "initial" ? (r(), f(Oa, {
|
|
293
280
|
key: 0,
|
|
294
281
|
"title-level": a.titleLevel,
|
|
295
|
-
"selected-nb-user":
|
|
296
|
-
"current-level":
|
|
282
|
+
"selected-nb-user": n.value,
|
|
283
|
+
"current-level": e.value,
|
|
297
284
|
"capacity-image": a.capacityImage
|
|
298
|
-
}, null, 8, ["title-level", "selected-nb-user", "current-level", "capacity-image"])) :
|
|
285
|
+
}, null, 8, ["title-level", "selected-nb-user", "current-level", "capacity-image"])) : $("", !0)
|
|
299
286
|
])
|
|
300
287
|
]));
|
|
301
288
|
}
|
|
302
|
-
}),
|
|
303
|
-
|
|
304
|
-
const
|
|
289
|
+
}), Wa = ".capacity-calculation__title{color:#122647;font-family:Nunito,serif;font-weight:700;text-align:center;font-size:1.25rem;line-height:1.75rem;margin-bottom:1rem}.capacity-calculation__grid{display:grid;gap:1rem;grid-template-columns:5fr 2.6fr}.capacity-calculation__grid .initial-state{grid-column:1/span 2}.capacity-calculation__column{display:flex;border-radius:8px;flex-direction:column;padding:16px}@media screen and (max-width:720px){.capacity-calculation__grid{display:flex;flex-direction:column}}", Ga = /* @__PURE__ */ _(Pa, [["styles", [Wa]]]);
|
|
290
|
+
P(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": K, "./locales/en.json": J, "./locales/es-419.json": X, "./locales/es.json": Y, "./locales/fr-BE.json": aa, "./locales/fr.json": ea, "./locales/it.json": ta, "./locales/nl.json": ca })).catch((a) => console.error(a));
|
|
291
|
+
const N = z(Ga, {
|
|
305
292
|
configureApp(a) {
|
|
306
|
-
|
|
293
|
+
k.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(W, { i18next: k });
|
|
307
294
|
}
|
|
308
295
|
});
|
|
309
|
-
|
|
296
|
+
N.prototype.normalizeProps = (a) => ({
|
|
310
297
|
...a,
|
|
311
|
-
titleLevel:
|
|
298
|
+
titleLevel: G(a.titleLevel)
|
|
312
299
|
});
|
|
313
|
-
window.customElements.define("capacity-calculation",
|
|
300
|
+
window.customElements.define("capacity-calculation", N);
|
|
@@ -1,4 +1,4 @@
|
|
|
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, z 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-
|
|
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, z 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-Dz58mCLm.js";
|
|
2
2
|
import { a as J, b as z } from "../normalize-props-DH0oPBss.js";
|
|
3
3
|
const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], m = 10, Z = /* @__PURE__ */ B({
|
|
4
4
|
__name: "ClickableImage.ce",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as h, o, c as n, a, x as c, z as A, _ as f, t as
|
|
2
|
-
import { u as
|
|
1
|
+
import { b as h, o, c as n, a, x as c, z as A, _ as f, t as P, q as S, B as z, F as y, e as x, l as N, r as k, g as m, D as L, f as v, d as M } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
|
+
import { u as O, a as T, i as q, b as E } from "../i18n-H4HokXDX.js";
|
|
3
3
|
import { b as I } from "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import { L as B } from "../LLMMessage.ce-
|
|
5
|
-
const R = {},
|
|
4
|
+
import { L as B } from "../LLMMessage.ce-B7EwoHy2.js";
|
|
5
|
+
const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
|
|
6
6
|
"complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisi par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! L’IA peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... L’IA choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
|
|
7
7
|
}, H = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ h({
|
|
8
8
|
__name: "ProbabilityBar.ce",
|
|
@@ -33,7 +33,7 @@ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
|
|
|
33
33
|
},
|
|
34
34
|
setup(e) {
|
|
35
35
|
return (d, t) => (o(), n("button", {
|
|
36
|
-
class:
|
|
36
|
+
class: P(["complete-phrase_button", e.state])
|
|
37
37
|
}, [
|
|
38
38
|
S(d.$slots, "icon"),
|
|
39
39
|
z(" " + c(e.label), 1)
|
|
@@ -50,7 +50,7 @@ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["answer"],
|
|
52
52
|
setup(e, { emit: d }) {
|
|
53
|
-
const t = d, s = k(null), { t: p } =
|
|
53
|
+
const t = d, s = k(null), { t: p } = O(), _ = m(() => s.value.percent === 100 ? p("complete-phrase.feedback.sure") : s.value.percent >= 50 ? p("complete-phrase.feedback.probably", { word: e.list.find((i) => i.percent === 100).name }) : p("complete-phrase.feedback.notSure", { words: e.list.filter((i) => i.percent >= 50).map((i) => i.name) }));
|
|
54
54
|
function g(i) {
|
|
55
55
|
s.value = i, t("answer", i.name);
|
|
56
56
|
}
|
|
@@ -122,7 +122,7 @@ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
|
|
|
122
122
|
]),
|
|
123
123
|
a("div", fe, [
|
|
124
124
|
(o(!0), n(y, null, x(e.listOfProbabilityBarsLists, (u, b) => (o(), n("div", {
|
|
125
|
-
class:
|
|
125
|
+
class: P(["probability", { hidden: b !== t.value }]),
|
|
126
126
|
key: b,
|
|
127
127
|
id: `currentProbability${b}`,
|
|
128
128
|
"aria-hidden": b !== t.value
|
|
@@ -150,14 +150,14 @@ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
|
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
152
152
|
}), ve = "*{font-family:Roboto,sans-serif;color:#122647}.complete-phrase__title{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation{background:#fff;border:1px solid #cdd1d9;border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message{align-items:center}.complete-phrase-container__probabilities{display:grid}.complete-phrase-container__probabilities .probability{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden{visibility:hidden}.complete-message-word:last-child{border:none;filter:blur(4px);font-weight:600;height:auto;width:auto}.complete-message-word--visible:last-child{color:inherit;filter:none;font-weight:700}.complete-message-word--hidden:last-child{background-color:#f4f5f7;border-radius:4px;border:1px dashed #5e6c84;color:transparent;display:inline-block;filter:none;padding:2px 4px}.complete-message-word:nth-last-child(2){font-weight:600}@media(max-width:600px){.complete-phrase__container{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden{display:none}}", ye = /* @__PURE__ */ f(ge, [["styles", [ve]]]);
|
|
153
|
-
|
|
154
|
-
const
|
|
153
|
+
T(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": D, "./locales/es-419.json": V, "./locales/es.json": F, "./locales/fr-BE.json": Q, "./locales/fr.json": W, "./locales/it.json": H, "./locales/nl.json": U })).catch((e) => console.error(e));
|
|
154
|
+
const C = M(ye, {
|
|
155
155
|
configureApp(e) {
|
|
156
|
-
q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(
|
|
156
|
+
q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(E, { i18next: q });
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
|
|
159
|
+
C.prototype.normalizeProps = (e) => ({
|
|
160
160
|
...e,
|
|
161
161
|
titleLevel: I(e.titleLevel)
|
|
162
162
|
});
|
|
163
|
-
window.customElements.define("complete-phrase",
|
|
163
|
+
window.customElements.define("complete-phrase", C);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as g, o as r, c as n, F as m, a as i, t as f, x as l, l as x, _ as u, r as y, e as k, N as v,
|
|
1
|
+
import { b as g, o as r, c as n, F as m, a as i, t as f, x as l, l as x, _ as u, r as y, e as k, N as v, D as w, d as F } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
2
|
import { b as _ } from "../normalize-props-DH0oPBss.js";
|
|
3
|
-
const
|
|
3
|
+
const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], D = /* @__PURE__ */ g({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
5
5
|
props: {
|
|
6
6
|
titleLevel: { type: Number },
|
|
@@ -21,13 +21,13 @@ const C = ["aria-hidden"], L = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
21
21
|
class: "icon",
|
|
22
22
|
src: e.icon,
|
|
23
23
|
alt: ""
|
|
24
|
-
}, null, 8,
|
|
24
|
+
}, null, 8, C),
|
|
25
25
|
i("div", {
|
|
26
26
|
role: "heading",
|
|
27
27
|
"aria-level": e.titleLevel,
|
|
28
28
|
class: "title"
|
|
29
29
|
}, l(e.name), 9, N)
|
|
30
|
-
], 10,
|
|
30
|
+
], 10, L),
|
|
31
31
|
i("div", {
|
|
32
32
|
class: f(["card verso", { flipped: e.isFlipped, [e.color]: e.color }]),
|
|
33
33
|
"aria-hidden": e.isFlipped ? "false" : "true"
|
|
@@ -48,7 +48,7 @@ const C = ["aria-hidden"], L = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
48
48
|
], 10, z)
|
|
49
49
|
], 64));
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), E = "[data-v-c0da3f12]{box-sizing:border-box}.card[data-v-c0da3f12]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-c0da3f12]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-c0da3f12]{display:block;height:auto;width:40px}.card.verso[data-v-c0da3f12]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-c0da3f12]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-c0da3f12]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-c0da3f12]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-c0da3f12]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-c0da3f12]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-c0da3f12]{border:2px solid #f041bf}.card.verso .description[data-v-c0da3f12]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-c0da3f12]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-c0da3f12]{display:block;height:100%;object-fit:contain;width:100%}", K = /* @__PURE__ */ u(D, [["styles", [E]], ["__scopeId", "data-v-c0da3f12"]]), V = { class: "flip-cards" }, I = ["aria-level"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, A = /* @__PURE__ */ g({
|
|
52
52
|
__name: "FlipCards.ce",
|
|
53
53
|
props: {
|
|
54
54
|
titleLevel: { default: 2, type: Number },
|
|
@@ -65,7 +65,7 @@ const C = ["aria-hidden"], L = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
65
65
|
), c = (t, o) => {
|
|
66
66
|
o.preventDefault(), t.isFlipped = !t.isFlipped;
|
|
67
67
|
};
|
|
68
|
-
return (t, o) => (r(), n("div",
|
|
68
|
+
return (t, o) => (r(), n("div", V, [
|
|
69
69
|
i("div", {
|
|
70
70
|
role: "heading",
|
|
71
71
|
"aria-level": e.titleLevel,
|
|
@@ -84,7 +84,7 @@ const C = ["aria-hidden"], L = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
84
84
|
]
|
|
85
85
|
}, [
|
|
86
86
|
i("div", Z, [
|
|
87
|
-
w(
|
|
87
|
+
w(K, {
|
|
88
88
|
color: a.color,
|
|
89
89
|
description: a.description,
|
|
90
90
|
icon: a.icon,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as t } from "../image-quiz.ce-
|
|
2
|
-
import "../_plugin-vue_export-helper-
|
|
1
|
+
import { n as t } from "../image-quiz.ce-C-iI27gD.js";
|
|
2
|
+
import "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
3
3
|
import "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import "../i18n-lite-
|
|
4
|
+
import "../i18n-lite-CzqISEWm.js";
|
|
5
5
|
export {
|
|
6
6
|
t as normalizeImageQuizProps
|
|
7
7
|
};
|