@1024pix/epreuves-components 4.6.1 → 4.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button.ce-CsTDnAGh.js +31 -0
- package/dist/{ButtonTooltip.ce-Bo42SFAP.js → ButtonTooltip.ce-CUxXoH9n.js} +4 -4
- package/dist/{Icon.ce-Be0LymfA.js → Icon.ce-DqVOTSTE.js} +7 -7
- package/dist/{LLMMessage.ce-y0WmEj7m.js → LLMMessage.ce-BM9ikl_y.js} +3 -3
- package/dist/{NavigationButton.ce-B-c0m9H8.js → NavigationButton.ce-CIOKG2O0.js} +3 -3
- package/dist/{PixMailMessage.ce-CH6CVQ3H.js → PixMailMessage.ce-DUSt6eGF.js} +52 -52
- package/dist/{Popin.ce-CQtpIOkM.js → Popin.ce-OnxaZNvT.js} +3 -3
- package/dist/components/analyse-mails-phishing.ce.js.js +6 -6
- package/dist/components/autocompletion-mdp.ce.js.js +79 -79
- package/dist/components/button.ce.js.js +1 -1
- package/dist/components/calcul-impact.ce.js.js +34 -34
- package/dist/components/capacity-calculation.ce.js.js +20 -20
- package/dist/components/clickable-image.ce.js.js +18 -18
- package/dist/components/complete-phrase.ce.js.js +41 -41
- package/dist/components/flip-cards.ce.js.js +18 -18
- package/dist/components/generate-mdp.ce.js.js +23 -23
- package/dist/components/image-quiz.ce.js.js +1 -1
- package/dist/components/image-quizzes.ce.js.js +1 -1
- package/dist/components/llm-compare-messages.ce.js.js +2 -2
- package/dist/components/llm-messages.ce.js.js +1 -1
- package/dist/components/llm-prompt-select.ce.js.js +1 -1
- package/dist/components/mdp-classement.ce.js.js +13 -13
- package/dist/components/message-conversation.ce.js.js +2 -2
- package/dist/components/notification-antivirus.ce.js.js +62 -62
- package/dist/components/phishing-message.ce.js.js +81 -81
- package/dist/components/phishing-notification.ce.js.js +9 -9
- package/dist/components/pix-anonymisation.ce.js.js +72 -72
- package/dist/components/pix-article.ce.js.js +6 -6
- package/dist/components/pix-carousel.ce.js.js +16 -16
- package/dist/components/pix-combinaisons.ce.js.js +14 -14
- package/dist/components/pix-cursor.ce.js.js +28 -28
- package/dist/components/pix-mail-message.ce.js.js +1 -1
- package/dist/components/proteger-mail-spam.ce.js.js +6 -6
- package/dist/components/qcm-deepfake.ce.js.js +26 -26
- package/dist/components/quiz-stepper.ce.js.js +6 -6
- package/dist/components/template-mail.ce.js.js +1 -1
- package/dist/components/test-top-mdp.ce.js.js +3 -3
- package/dist/components/trouver-mdp-rs.ce.js.js +125 -125
- package/dist/components/usages-donnees.ce.js.js +30 -30
- package/dist/{image-quiz.ce-DGVVVaQN.js → image-quiz.ce-KliaBWpC.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Button.ce-Ccv3OLk2.js +0 -31
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
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 as b, l as $, d as z } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
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
4
|
import { R as H } from "../Retry-DLOo5neI.js";
|
|
@@ -78,12 +78,12 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
|
|
|
78
78
|
75e3,
|
|
79
79
|
1e5,
|
|
80
80
|
125e3
|
|
81
|
-
]),
|
|
82
|
-
const o =
|
|
81
|
+
]), f = Array.from(M).sort((o, v) => o - v), Q = w(() => {
|
|
82
|
+
const o = f.indexOf(e.value);
|
|
83
83
|
return Math.max(0, o);
|
|
84
84
|
}), S = (o) => {
|
|
85
85
|
const v = o.target;
|
|
86
|
-
e.value =
|
|
86
|
+
e.value = f[Number(v.value)];
|
|
87
87
|
}, U = (o) => {
|
|
88
88
|
if (i.value) {
|
|
89
89
|
o.preventDefault();
|
|
@@ -120,8 +120,8 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
|
|
|
120
120
|
"aria-disabled": i.value,
|
|
121
121
|
name: "ai-answer",
|
|
122
122
|
value: m,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
checked: n.value === m,
|
|
124
|
+
onClick: A
|
|
125
125
|
}, null, 8, ua),
|
|
126
126
|
L(" " + s(B), 1)
|
|
127
127
|
], 2)
|
|
@@ -131,25 +131,25 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
|
|
|
131
131
|
t("legend", _a, s(o.$t("capacity-calculation.in.userQuestion")), 1),
|
|
132
132
|
t("div", pa, [
|
|
133
133
|
t("input", {
|
|
134
|
-
type: "range",
|
|
135
134
|
id: "nbUser",
|
|
135
|
+
type: "range",
|
|
136
136
|
name: "nbUser",
|
|
137
137
|
min: 0,
|
|
138
|
-
max: T(
|
|
138
|
+
max: T(f).length - 1,
|
|
139
139
|
value: Q.value,
|
|
140
|
-
onChange: S,
|
|
141
|
-
onKeydown: U,
|
|
142
140
|
"aria-disabled": i.value,
|
|
143
|
-
class: "capacity-calculation__range"
|
|
141
|
+
class: "capacity-calculation__range",
|
|
142
|
+
onChange: S,
|
|
143
|
+
onKeydown: U
|
|
144
144
|
}, null, 40, va),
|
|
145
145
|
t("label", ma, s(e.value.toLocaleString()), 1)
|
|
146
146
|
])
|
|
147
147
|
]),
|
|
148
148
|
h(ia, {
|
|
149
|
-
onClick: V(j, ["prevent"]),
|
|
150
149
|
"aria-disabled": !x.value,
|
|
151
150
|
label: d.value.label,
|
|
152
|
-
state: d.value.state
|
|
151
|
+
state: d.value.state,
|
|
152
|
+
onClick: V(j, ["prevent"])
|
|
153
153
|
}, Z({ _: 2 }, [
|
|
154
154
|
l.value !== "initial" ? {
|
|
155
155
|
name: "icon",
|
|
@@ -161,7 +161,7 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
|
|
|
161
161
|
]), 1032, ["aria-disabled", "label", "state"])
|
|
162
162
|
]));
|
|
163
163
|
}
|
|
164
|
-
}),
|
|
164
|
+
}), ba = ".capacity-calculation__column--questions[data-v-358b5c7c]{background:#fff;border:1px solid #cdd1d9}.capacity-calculation__column--questions .capacity-calculation__fieldset[data-v-358b5c7c]{border:none;display:flex;flex-direction:column;gap:12px;padding:0}.capacity-calculation__column--questions .capacity-calculation__fieldset--range[data-v-358b5c7c]{margin-top:12px}.capacity-calculation__column--questions .capacity-calculation__legend[data-v-358b5c7c]{font-weight:500;margin-bottom:16px}.capacity-calculation__column--questions .capacity-calculation__legend--user-question[data-v-358b5c7c]{font-weight:500;margin:16px 0}.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-358b5c7c]{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-358b5c7c]:hover,.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-358b5c7c]:focus{background-color:#f7f5ff;border-color:#613fdd;color:#291a5d}.capacity-calculation__column--questions .capacity-calculation__ai-option--active[data-v-358b5c7c]{background-color:#f7f5ff;border-color:#613fdd;color:#291a5d}.capacity-calculation__column--questions .capacity-calculation__ai-option.disabled[data-v-358b5c7c]{cursor:not-allowed;background:#f1f1f1;border-color:#5b5b5b}.capacity-calculation__column--questions .capacity-calculation__range-wrap[data-v-358b5c7c]{display:flex;flex-direction:column;gap:8px}.capacity-calculation__column--questions .capacity-calculation__range[data-v-358b5c7c]{width:100%;accent-color:#613fdd}.capacity-calculation__column--questions .capacity-calculation__range[aria-disabled=true][data-v-358b5c7c]{opacity:.3;pointer-events:none}.capacity-calculation__column--questions .capacity-calculation__range-label[data-v-358b5c7c]{display:flex;justify-content:center;font-weight:700;margin-block:-5px 10px}", ga = /* @__PURE__ */ _(ya, [["styles", [ba]], ["__scopeId", "data-v-358b5c7c"]]), fa = {}, Ca = {
|
|
165
165
|
width: "43",
|
|
166
166
|
height: "43",
|
|
167
167
|
viewBox: "0 0 43 43",
|
|
@@ -177,7 +177,7 @@ function wa(a, c) {
|
|
|
177
177
|
}, null, -1)
|
|
178
178
|
])]);
|
|
179
179
|
}
|
|
180
|
-
const ha = /* @__PURE__ */ _(
|
|
180
|
+
const ha = /* @__PURE__ */ _(fa, [["render", wa]]), xa = {}, ka = {
|
|
181
181
|
width: "43",
|
|
182
182
|
height: "43",
|
|
183
183
|
viewBox: "0 0 43 43",
|
|
@@ -233,13 +233,13 @@ const Qa = /* @__PURE__ */ _(Na, [["render", Ma]]), Sa = ["aria-level"], Ua = {
|
|
|
233
233
|
src: a.capacityImage,
|
|
234
234
|
alt: ""
|
|
235
235
|
}, null, 8, Ia),
|
|
236
|
-
a.currentLevel.startsWith("normal_") ? (r(),
|
|
236
|
+
a.currentLevel.startsWith("normal_") ? (r(), b($a, {
|
|
237
237
|
key: 0,
|
|
238
238
|
class: "capacity-calculation__img--status"
|
|
239
|
-
})) : a.currentLevel === "warning" ? (r(),
|
|
239
|
+
})) : a.currentLevel === "warning" ? (r(), b(Qa, {
|
|
240
240
|
key: 1,
|
|
241
241
|
class: "capacity-calculation__img--status"
|
|
242
|
-
})) : a.currentLevel === "error" ? (r(),
|
|
242
|
+
})) : a.currentLevel === "error" ? (r(), b(ha, {
|
|
243
243
|
key: 2,
|
|
244
244
|
class: "capacity-calculation__img--status"
|
|
245
245
|
})) : $("", !0)
|
|
@@ -257,7 +257,7 @@ const Qa = /* @__PURE__ */ _(Na, [["render", Ma]]), Sa = ["aria-level"], Ua = {
|
|
|
257
257
|
])
|
|
258
258
|
], 2));
|
|
259
259
|
}
|
|
260
|
-
}), Za = ".capacity-calculation__column--answers[data-v-
|
|
260
|
+
}), Za = ".capacity-calculation__column--answers[data-v-51d8db7d]{display:flex;gap:.3rem;border:0px}.capacity-calculation__column--answers--normal_weak[data-v-51d8db7d],.capacity-calculation__column--answers--normal_medium[data-v-51d8db7d]{background:#eaf1ff}.capacity-calculation__column--answers--warning[data-v-51d8db7d]{background:#fffaeb}.capacity-calculation__column--answers--error[data-v-51d8db7d]{background:#fbebea}.capacity-calculation__column--answers .capacity-calculation__answers[data-v-51d8db7d]{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-51d8db7d]{border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:8px}.capacity-calculation__column--answers .capacity-calculation__text[data-v-51d8db7d]{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-51d8db7d]{font-weight:700;margin:0}.capacity-calculation__column--answers img[data-v-51d8db7d]{max-width:100%}.capacity-calculation__column--answers .capacity-calculation__img[data-v-51d8db7d]{position:relative}.capacity-calculation__column--answers .capacity-calculation__img img[data-v-51d8db7d]{width:100px;height:100px;border-radius:24px}.capacity-calculation__column--answers .capacity-calculation__img--status[data-v-51d8db7d]{position:absolute;top:0;right:0;transform:translate(30%,-30%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar[data-v-51d8db7d]{width:100%;height:32px;border-radius:24px;border:solid 2px #253858}.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_weak[data-v-51d8db7d],.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_medium[data-v-51d8db7d]{background:linear-gradient(90deg,#1f53b5 10%,#fff 36%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.warning[data-v-51d8db7d]{background:linear-gradient(90deg,#ee6911 30%,#fff 66%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.error[data-v-51d8db7d]{background:linear-gradient(90deg,#d24140 51%,#fff 88%)}@media(max-width:720px){.capacity-calculation__column--answers .capacity-calculation__answers[data-v-51d8db7d]{flex-direction:row;justify-content:center;gap:16px}}", Oa = /* @__PURE__ */ _(Va, [["styles", [Za]], ["__scopeId", "data-v-51d8db7d"]]), za = { class: "capacity-calculation" }, Fa = {
|
|
261
261
|
class: "capacity-calculation__grid",
|
|
262
262
|
"aria-live": "polite"
|
|
263
263
|
}, Pa = /* @__PURE__ */ g({
|
|
@@ -279,7 +279,7 @@ const Qa = /* @__PURE__ */ _(Na, [["render", Ma]]), Sa = ["aria-level"], Ua = {
|
|
|
279
279
|
"onUpdate:currentLevel": i[2] || (i[2] = (d) => e.value = d),
|
|
280
280
|
class: p({ "initial-state": e.value === "initial" })
|
|
281
281
|
}, null, 8, ["selected-ai-question", "selected-nb-user", "current-level", "class"]),
|
|
282
|
-
e.value !== "initial" ? (r(),
|
|
282
|
+
e.value !== "initial" ? (r(), b(Oa, {
|
|
283
283
|
key: 0,
|
|
284
284
|
"title-level": a.titleLevel,
|
|
285
285
|
"selected-nb-user": n.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as B, h as E, k as O, G as W, o as
|
|
1
|
+
import { b as B, h as E, k as O, G as W, o as p, c as d, 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 = ["
|
|
3
|
+
const K = { class: "container" }, Q = ["aria-label", "onMouseenter", "onFocusin", "onClick"], f = 10, Z = /* @__PURE__ */ B({
|
|
4
4
|
__name: "ClickableImage.ce",
|
|
5
5
|
props: {
|
|
6
6
|
image: { type: Object },
|
|
@@ -35,12 +35,12 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
35
35
|
y: t * r.value
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const m = b();
|
|
39
39
|
function k(e) {
|
|
40
|
-
|
|
40
|
+
m.value = e;
|
|
41
41
|
}
|
|
42
42
|
function w() {
|
|
43
|
-
|
|
43
|
+
m.value = void 0;
|
|
44
44
|
}
|
|
45
45
|
const u = b();
|
|
46
46
|
function F(e) {
|
|
@@ -49,7 +49,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
49
49
|
function P() {
|
|
50
50
|
u.value = void 0;
|
|
51
51
|
}
|
|
52
|
-
const x = v(() => u.value ??
|
|
52
|
+
const x = v(() => u.value ?? m.value), c = v(() => {
|
|
53
53
|
if (x.value !== void 0)
|
|
54
54
|
return $.value[x.value];
|
|
55
55
|
}), N = v(() => {
|
|
@@ -60,23 +60,23 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
60
60
|
return {
|
|
61
61
|
left: `${t + (n - t) / 2}px`,
|
|
62
62
|
transform: "translate(-50%, -100%)",
|
|
63
|
-
top: `${o -
|
|
63
|
+
top: `${o - f}px`
|
|
64
64
|
};
|
|
65
65
|
case "bottom":
|
|
66
66
|
return {
|
|
67
67
|
left: `${t + (n - t) / 2}px`,
|
|
68
68
|
transform: "translateX(-50%)",
|
|
69
|
-
top: `${s +
|
|
69
|
+
top: `${s + f}px`
|
|
70
70
|
};
|
|
71
71
|
case "left":
|
|
72
72
|
return {
|
|
73
|
-
left: `${t -
|
|
73
|
+
left: `${t - f}px`,
|
|
74
74
|
top: `${o + (s - o) / 2}px`,
|
|
75
75
|
transform: "translate(-100%, -50%)"
|
|
76
76
|
};
|
|
77
77
|
default:
|
|
78
78
|
return {
|
|
79
|
-
left: `${n +
|
|
79
|
+
left: `${n + f}px`,
|
|
80
80
|
top: `${o + (s - o) / 2}px`,
|
|
81
81
|
transform: "translateY(-50%)"
|
|
82
82
|
};
|
|
@@ -85,14 +85,14 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
85
85
|
function R() {
|
|
86
86
|
u.value = void 0;
|
|
87
87
|
}
|
|
88
|
-
return i({ reset: R }), (e, t) => (
|
|
88
|
+
return i({ reset: R }), (e, t) => (p(), d("div", K, [
|
|
89
89
|
C("img", _(a.image, {
|
|
90
90
|
ref: "image",
|
|
91
|
+
alt: "",
|
|
91
92
|
onLoad: t[0] || (t[0] = (o) => h()),
|
|
92
|
-
onClick: t[1] || (t[1] = (o) => P())
|
|
93
|
-
alt: ""
|
|
93
|
+
onClick: t[1] || (t[1] = (o) => P())
|
|
94
94
|
}), null, 16),
|
|
95
|
-
(
|
|
95
|
+
(p(!0), d(D, null, L($.value, (o, n) => (p(), d("button", {
|
|
96
96
|
key: n,
|
|
97
97
|
style: y({
|
|
98
98
|
"--y1": `${o.coords.y1}px`,
|
|
@@ -101,14 +101,14 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
101
101
|
"--x2": `${o.coords.x2}px`
|
|
102
102
|
}),
|
|
103
103
|
class: "area",
|
|
104
|
+
"aria-label": o.info,
|
|
104
105
|
onMouseenter: (s) => k(n),
|
|
105
106
|
onMouseleave: t[2] || (t[2] = (s) => w()),
|
|
106
107
|
onFocusin: (s) => k(n),
|
|
107
108
|
onFocusout: t[3] || (t[3] = (s) => w()),
|
|
108
|
-
onClick: V((s) => F(n), ["stop"])
|
|
109
|
-
"aria-label": o.info
|
|
109
|
+
onClick: V((s) => F(n), ["stop"])
|
|
110
110
|
}, [
|
|
111
|
-
j(I) ? (
|
|
111
|
+
j(I) ? (p(), d("span", {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: G(["spot", { active: x.value === n }]),
|
|
114
114
|
style: y({
|
|
@@ -126,7 +126,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
126
126
|
])
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
129
|
-
}), ee = "*{font-family:Nunito,Roboto,sans-serif;color:var(#253858)}.container{position:relative;max-width:100%;border:1px solid #ccc}.container img{width:100%;height:auto;display:block}.container .area{cursor:pointer;position:absolute;top:var(--y1);left:var(--x1);height:calc(var(--y2) - var(--y1));width:calc(var(--x2) - var(--x1));border:none;background:transparent}.container .spot{cursor:pointer;position:absolute;width:32px;aspect-ratio:1;border:solid 4px #
|
|
129
|
+
}), ee = "*{font-family:Nunito,Roboto,sans-serif;color:var(#253858)}.container{position:relative;max-width:100%;border:1px solid #ccc}.container img{width:100%;height:auto;display:block}.container .area{cursor:pointer;position:absolute;top:var(--y1);left:var(--x1);height:calc(var(--y2) - var(--y1));width:calc(var(--x2) - var(--x1));border:none;background:transparent}.container .spot{cursor:pointer;position:absolute;width:32px;aspect-ratio:1;border:solid 4px #edeff3;background:#212a3799;border-radius:50%;top:50%;left:50%;transform:translate(calc(-50% + var(--s-x)),calc(-50% + var(--s-y)))}.container .spot.active{border-color:#6495ed}.container .tooltip{position:absolute;background-color:#000000d9;color:#fff;padding:8px 12px;border-radius:6px;font-size:14px;max-width:260px;z-index:10}", te = /* @__PURE__ */ Y(Z, [["styles", [ee]]]), z = q(te);
|
|
130
130
|
z.prototype.normalizeProps = (a) => ({
|
|
131
131
|
...a,
|
|
132
132
|
image: {
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as f, o as a, c as n, a as o, x as c, A as j, _ as h, t as C, q as S, E as N, F as y, e as x, l as z, r as k, g as m, C as L, f as v, d as E } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
2
|
import { u as M, a as O, i as q, b as T } from "../i18n-C-1Ne5JG.js";
|
|
3
3
|
import { b as I } from "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import { L as B } from "../LLMMessage.ce-
|
|
4
|
+
import { L as B } from "../LLMMessage.ce-BM9ikl_y.js";
|
|
5
5
|
const R = {}, V = {}, D = {}, 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
|
-
}, H = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */
|
|
7
|
+
}, H = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ f({
|
|
8
8
|
__name: "ProbabilityBar.ce",
|
|
9
9
|
props: {
|
|
10
10
|
name: { type: String },
|
|
11
11
|
percent: { type: Number }
|
|
12
12
|
},
|
|
13
13
|
setup(e) {
|
|
14
|
-
return (d, t) => (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
return (d, t) => (a(), n("div", G, [
|
|
15
|
+
o("p", J, c(e.name), 1),
|
|
16
|
+
o("p", K, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
|
|
17
|
+
o("div", {
|
|
18
18
|
style: j(`width: ${e.percent}%`),
|
|
19
19
|
class: "probability-bar__percent",
|
|
20
20
|
"aria-hidden": "true"
|
|
21
21
|
}, null, 4),
|
|
22
|
-
t[0] || (t[0] =
|
|
22
|
+
t[0] || (t[0] = o("div", {
|
|
23
23
|
class: "probability-bar__background",
|
|
24
24
|
"aria-hidden": "true"
|
|
25
25
|
}, null, -1))
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}), Y = ".probability-bar[data-v-19f7d147]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-19f7d147]{margin:0}.probability-bar__percent[data-v-19f7d147]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:#122647}.probability-bar__background[data-v-19f7d147]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:#cdd1d9}.sr-only[data-v-19f7d147]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */
|
|
28
|
+
}), Y = ".probability-bar[data-v-19f7d147]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-19f7d147]{margin:0}.probability-bar__percent[data-v-19f7d147]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:#122647}.probability-bar__background[data-v-19f7d147]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:#cdd1d9}.sr-only[data-v-19f7d147]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ h(X, [["styles", [Y]], ["__scopeId", "data-v-19f7d147"]]), ee = /* @__PURE__ */ f({
|
|
29
29
|
__name: "Button.ce",
|
|
30
30
|
props: {
|
|
31
31
|
label: { type: String },
|
|
32
32
|
state: { type: String }
|
|
33
33
|
},
|
|
34
34
|
setup(e) {
|
|
35
|
-
return (d, t) => (
|
|
35
|
+
return (d, t) => (a(), n("button", {
|
|
36
36
|
class: C(["complete-phrase_button", e.state])
|
|
37
37
|
}, [
|
|
38
38
|
S(d.$slots, "icon"),
|
|
39
39
|
N(" " + c(e.label), 1)
|
|
40
40
|
], 2));
|
|
41
41
|
}
|
|
42
|
-
}), te = ".complete-phrase_button.primary{--background-color: #253858;--background-color-hover: #122647;--color: #fff;--color-hover: #fff}.complete-phrase_button.warning{--background-color: #ffcb33;--background-color-hover: #a16206;--color: #122647;--color-hover: #fff}.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}",
|
|
42
|
+
}), te = ".complete-phrase_button.primary{--background-color: #253858;--background-color-hover: #122647;--color: #fff;--color-hover: #fff}.complete-phrase_button.warning{--background-color: #ffcb33;--background-color-hover: #a16206;--color: #122647;--color-hover: #fff}.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}", ae = /* @__PURE__ */ h(ee, [["styles", [te]]]), oe = { class: "qcu" }, se = { class: "qcu__list" }, ie = ["id", "aria-label", "checked", "disabled", "onClick"], re = { for: "`choice${index}`" }, ne = {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "feedback"
|
|
45
|
-
}, le = /* @__PURE__ */
|
|
45
|
+
}, le = /* @__PURE__ */ f({
|
|
46
46
|
__name: "QCU.ce",
|
|
47
47
|
props: {
|
|
48
48
|
list: { type: Array },
|
|
@@ -54,29 +54,29 @@ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
|
|
|
54
54
|
function g(i) {
|
|
55
55
|
s.value = i, t("answer", i.name);
|
|
56
56
|
}
|
|
57
|
-
return (i, w) => (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
(
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
return (i, w) => (a(), n("div", oe, [
|
|
58
|
+
o("p", null, c(e.title), 1),
|
|
59
|
+
o("section", se, [
|
|
60
|
+
(a(!0), n(y, null, x(e.list, (r, l) => (a(), n("div", {
|
|
61
|
+
key: l,
|
|
62
|
+
class: "qcu__list-choice"
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
o("input", {
|
|
65
65
|
id: `choice${l}`,
|
|
66
66
|
type: "radio",
|
|
67
67
|
name: "qcu-choice",
|
|
68
|
-
onClick: (u) => g(r),
|
|
69
68
|
"aria-label": r.name,
|
|
70
69
|
checked: s.value === r,
|
|
71
|
-
disabled: !!s.value
|
|
70
|
+
disabled: !!s.value,
|
|
71
|
+
onClick: (u) => g(r)
|
|
72
72
|
}, null, 8, ie),
|
|
73
|
-
|
|
73
|
+
o("label", re, c(r.name), 1)
|
|
74
74
|
]))), 128))
|
|
75
75
|
]),
|
|
76
|
-
s.value ? (
|
|
76
|
+
s.value ? (a(), n("section", ne, c(_.value), 1)) : z("", !0)
|
|
77
77
|
]));
|
|
78
78
|
}
|
|
79
|
-
}), ce = "[data-v-
|
|
79
|
+
}), ce = "[data-v-af3c8f6a]{font-family:Roboto,sans-serif;color:#122647}.qcu[data-v-af3c8f6a]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-af3c8f6a]{margin:0}.qcu__list[data-v-af3c8f6a]{display:flex;gap:16px}.qcu__list-choice[data-v-af3c8f6a]{position:relative}.qcu__list-choice input[data-v-af3c8f6a]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-af3c8f6a]{background-color:#3b82f6;color:#fff}.qcu__list-choice input[data-v-af3c8f6a]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-af3c8f6a]{background-color:#3b82f6;color:#fff;transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-af3c8f6a],.qcu__list-choice input[data-v-af3c8f6a]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-af3c8f6a],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-af3c8f6a]{background:#e6f2fe;color:#122647;cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-af3c8f6a]{align-items:center;background:#e6f2fe;border-radius:4px;color:inherit;display:flex;font-weight:700;gap:10px;justify-content:center;padding:4px 8px;transition:background-color .5s ease,color .5s ease}.qcu .feedback[data-v-af3c8f6a]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:#e6f2fe}", de = /* @__PURE__ */ h(le, [["styles", [ce]], ["__scopeId", "data-v-af3c8f6a"]]), pe = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, fe = { class: "complete-phrase-container__conversation" }, he = { class: "complete-phrase-container__probabilities" }, _e = ["id", "aria-hidden"], ge = /* @__PURE__ */ f({
|
|
80
80
|
__name: "CompletePhrase.ce",
|
|
81
81
|
props: {
|
|
82
82
|
listOfProbabilityBarsLists: { type: Array },
|
|
@@ -102,15 +102,15 @@ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
|
|
|
102
102
|
}
|
|
103
103
|
return d({
|
|
104
104
|
reset: i
|
|
105
|
-
}), (r, l) => (
|
|
106
|
-
|
|
105
|
+
}), (r, l) => (a(), n("div", pe, [
|
|
106
|
+
o("div", {
|
|
107
107
|
class: "complete-phrase__title",
|
|
108
108
|
role: "heading",
|
|
109
109
|
"aria-level": e.titleLevel
|
|
110
110
|
}, c(r.$t("complete-phrase.title")), 9, ue),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
o("p", be, c(r.$t("complete-phrase.description")), 1),
|
|
112
|
+
o("section", me, [
|
|
113
|
+
o("div", fe, [
|
|
114
114
|
L(B, {
|
|
115
115
|
class: "container__message",
|
|
116
116
|
message: { content: e.userMessage, direction: "outbound" }
|
|
@@ -120,36 +120,36 @@ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
|
|
|
120
120
|
message: { content: g.value, direction: "inbound" }
|
|
121
121
|
}, null, 8, ["message"])
|
|
122
122
|
]),
|
|
123
|
-
|
|
124
|
-
(
|
|
125
|
-
class: C(["probability", { hidden: b !== t.value }]),
|
|
126
|
-
key: b,
|
|
123
|
+
o("div", he, [
|
|
124
|
+
(a(!0), n(y, null, x(e.listOfProbabilityBarsLists, (u, b) => (a(), n("div", {
|
|
127
125
|
id: `currentProbability${b}`,
|
|
126
|
+
key: b,
|
|
127
|
+
class: C(["probability", { hidden: b !== t.value }]),
|
|
128
128
|
"aria-hidden": b !== t.value
|
|
129
129
|
}, [
|
|
130
|
-
(
|
|
130
|
+
(a(!0), n(y, null, x(u, ($, A) => (a(), v(Z, {
|
|
131
|
+
key: A,
|
|
131
132
|
name: $.name,
|
|
132
|
-
percent: $.percent
|
|
133
|
-
key: A
|
|
133
|
+
percent: $.percent
|
|
134
134
|
}, null, 8, ["name", "percent"]))), 128))
|
|
135
135
|
], 10, _e))), 128))
|
|
136
136
|
])
|
|
137
137
|
]),
|
|
138
|
-
p.value ? (
|
|
138
|
+
p.value ? (a(), v(de, {
|
|
139
139
|
key: 0,
|
|
140
140
|
list: _.value,
|
|
141
141
|
title: r.$t("complete-phrase.successfullyCompletedSentence"),
|
|
142
142
|
onAnswer: l[0] || (l[0] = (u) => s.value = u)
|
|
143
|
-
}, null, 8, ["list", "title"])) : (
|
|
143
|
+
}, null, 8, ["list", "title"])) : (a(), v(ae, {
|
|
144
144
|
key: 1,
|
|
145
|
-
onClick: w,
|
|
146
145
|
state: "primary",
|
|
147
146
|
label: r.$t("complete-phrase.clickHereButton"),
|
|
148
|
-
"aria-describedby": `currentProbability${t.value}
|
|
147
|
+
"aria-describedby": `currentProbability${t.value}`,
|
|
148
|
+
onClick: w
|
|
149
149
|
}, null, 8, ["label", "aria-describedby"]))
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
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__ */
|
|
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__ */ h(ge, [["styles", [ve]]]);
|
|
153
153
|
O(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": V, "./locales/es-419.json": D, "./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
154
|
const P = E(ye, {
|
|
155
155
|
configureApp(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as v, o as d, c as n, F as g, a as i, t as p, x as l, l as x, _ as m, r as y, e as k, Q as b, C as w, d as F } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
2
|
import { b as _ } from "../normalize-props-DH0oPBss.js";
|
|
3
|
-
const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], E = /* @__PURE__ */
|
|
3
|
+
const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], E = /* @__PURE__ */ v({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
5
5
|
props: {
|
|
6
6
|
titleLevel: { type: Number },
|
|
@@ -12,9 +12,9 @@ const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"],
|
|
|
12
12
|
name: { type: String }
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
-
return (s,
|
|
15
|
+
return (s, f) => (d(), n(g, null, [
|
|
16
16
|
i("div", {
|
|
17
|
-
class:
|
|
17
|
+
class: p(["card recto", `${e.color}`]),
|
|
18
18
|
"aria-hidden": e.isFlipped ? "true" : "false"
|
|
19
19
|
}, [
|
|
20
20
|
i("img", {
|
|
@@ -29,7 +29,7 @@ const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"],
|
|
|
29
29
|
}, l(e.name), 9, z)
|
|
30
30
|
], 10, C),
|
|
31
31
|
i("div", {
|
|
32
|
-
class:
|
|
32
|
+
class: p(["card verso", { flipped: e.isFlipped, [e.color]: e.color }]),
|
|
33
33
|
"aria-hidden": e.isFlipped ? "false" : "true"
|
|
34
34
|
}, [
|
|
35
35
|
i("div", {
|
|
@@ -39,7 +39,7 @@ const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"],
|
|
|
39
39
|
}, l(e.name), 9, S),
|
|
40
40
|
i("p", $, l(e.description), 1),
|
|
41
41
|
i("div", B, [
|
|
42
|
-
e.image ? (
|
|
42
|
+
e.image ? (d(), n("img", {
|
|
43
43
|
key: 0,
|
|
44
44
|
src: e.image,
|
|
45
45
|
alt: ""
|
|
@@ -48,7 +48,7 @@ const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"],
|
|
|
48
48
|
], 10, N)
|
|
49
49
|
], 64));
|
|
50
50
|
}
|
|
51
|
-
}), K = "[data-v-
|
|
51
|
+
}), K = "[data-v-042dbbc1]{box-sizing:border-box}.card[data-v-042dbbc1]{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-042dbbc1]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-042dbbc1]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-042dbbc1]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-042dbbc1]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-042dbbc1]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-042dbbc1]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-042dbbc1]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-042dbbc1]{display:block;height:auto;width:40px}.card.verso[data-v-042dbbc1]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-042dbbc1]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-042dbbc1]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-042dbbc1]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-042dbbc1]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-042dbbc1]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-042dbbc1]{border:2px solid #f041bf}.card.verso .description[data-v-042dbbc1]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-042dbbc1]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-042dbbc1]{display:block;height:100%;object-fit:contain;width:100%}", V = /* @__PURE__ */ m(E, [["styles", [K]], ["__scopeId", "data-v-042dbbc1"]]), D = { class: "flip-cards" }, I = ["aria-level"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, A = /* @__PURE__ */ v({
|
|
52
52
|
__name: "FlipCards.ce",
|
|
53
53
|
props: {
|
|
54
54
|
titleLevel: { default: 2, type: Number },
|
|
@@ -56,7 +56,7 @@ const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"],
|
|
|
56
56
|
cardList: { type: Array }
|
|
57
57
|
},
|
|
58
58
|
setup(e) {
|
|
59
|
-
const s = ["red", "yellow", "blue", "purple", "green", "pink"],
|
|
59
|
+
const s = ["red", "yellow", "blue", "purple", "green", "pink"], f = y(
|
|
60
60
|
e.cardList.map((t, o) => ({
|
|
61
61
|
...t,
|
|
62
62
|
color: s[o % s.length],
|
|
@@ -65,22 +65,22 @@ const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"],
|
|
|
65
65
|
), c = (t, o) => {
|
|
66
66
|
o.preventDefault(), t.isFlipped = !t.isFlipped;
|
|
67
67
|
};
|
|
68
|
-
return (t, o) => (
|
|
68
|
+
return (t, o) => (d(), n("div", D, [
|
|
69
69
|
i("div", {
|
|
70
70
|
role: "heading",
|
|
71
71
|
"aria-level": e.titleLevel,
|
|
72
72
|
class: "sr-only"
|
|
73
73
|
}, l(e.name), 9, I),
|
|
74
|
-
(
|
|
75
|
-
key:
|
|
76
|
-
class:
|
|
74
|
+
(d(!0), n(g, null, k(f.value, (a, h) => (d(), n("div", {
|
|
75
|
+
key: h,
|
|
76
|
+
class: p(["card-container", { flipped: a.isFlipped, [a.color]: a.color }]),
|
|
77
77
|
role: "button",
|
|
78
78
|
tabindex: "0",
|
|
79
79
|
"aria-expanded": a.isFlipped,
|
|
80
|
-
onClick: (
|
|
80
|
+
onClick: (r) => c(a, r),
|
|
81
81
|
onKeydown: [
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
b((r) => c(a, r), ["enter"]),
|
|
83
|
+
b((r) => c(a, r), ["space"])
|
|
84
84
|
]
|
|
85
85
|
}, [
|
|
86
86
|
i("div", Z, [
|
|
@@ -97,9 +97,9 @@ const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"],
|
|
|
97
97
|
], 42, Y))), 128))
|
|
98
98
|
]));
|
|
99
99
|
}
|
|
100
|
-
}), P = "[data-v-
|
|
101
|
-
|
|
100
|
+
}), P = "[data-v-98a76b7e]{box-sizing:border-box}.sr-only[data-v-98a76b7e]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-98a76b7e]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-98a76b7e]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-98a76b7e]:hover,.flip-cards .card-container[data-v-98a76b7e]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-98a76b7e]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-98a76b7e]{transform:rotateY(180deg)}", Q = /* @__PURE__ */ m(A, [["styles", [P]], ["__scopeId", "data-v-98a76b7e"]]), u = F(Q);
|
|
101
|
+
u.prototype.normalizeProps = (e) => ({
|
|
102
102
|
...e,
|
|
103
103
|
titleLevel: _(e.titleLevel)
|
|
104
104
|
});
|
|
105
|
-
window.customElements.define("flip-cards",
|
|
105
|
+
window.customElements.define("flip-cards", u);
|