@1024pix/epreuves-components 1.0.2 → 1.2.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/{ImageQuiz.ce-B7shuhfQ.js → ImageQuiz.ce-BpbKbNe3.js} +1 -1
- package/dist/{LLMMessage.ce--tBITfVq.js → LLMMessage.ce-BXgLZdHB.js} +2 -2
- package/dist/{Loading.ce-DFM6f_1v.js → Loading.ce-BaqTP6QH.js} +1 -1
- package/dist/{NavigationButton.ce-CF4O2FoQ.js → NavigationButton.ce-CJGPfdW7.js} +1 -1
- package/dist/_plugin-vue_export-helper-CXkSGj2f.js +4717 -0
- package/dist/components/calcul-impact.ce.js.js +196 -0
- package/dist/components/complete-phrase.ce.js.js +33 -33
- 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 +1 -1
- package/dist/components/message-conversation.ce.js.js +61 -58
- package/dist/components/pix-article.ce.js.js +9 -9
- package/dist/components/pix-carousel.ce.js.js +112 -112
- package/dist/components/pix-cursor.ce.js.js +3 -3
- package/dist/components/qcm-deepfake.ce.js.js +221 -0
- package/dist/{i18n-b8OapH7K.js → i18n-CnN3ours.js} +1 -1
- package/dist/index.js +2 -0
- package/dist/metadata.js +19 -15
- package/dist/schema.js +32 -20
- package/dist/{shadow-dom-CTg-8Iam.js → shadow-dom-BPtJYPTL.js} +1 -1
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-DGDsC3jx.js +0 -4186
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import { B, N as T } from "../NavigationButton.ce-
|
|
1
|
+
import { a as C, v as h, c as l, o, x as j, f as r, y as M, K as R, j as z, t as g, _ as b, r as w, C as H, q as u, g as m, L as $, z as D, H as _, F as S, b as k, e as A, d as I } from "../_plugin-vue_export-helper-CXkSGj2f.js";
|
|
2
|
+
import { a as V, i as N, b as P } from "../i18n-CnN3ours.js";
|
|
3
|
+
import { B, N as T } from "../NavigationButton.ce-CJGPfdW7.js";
|
|
4
4
|
const F = {
|
|
5
5
|
"pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
|
|
6
6
|
}, G = {
|
|
@@ -14,7 +14,7 @@ const F = {
|
|
|
14
14
|
}, K = ["aria-level"], W = ["innerHTML"], J = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "description"
|
|
17
|
-
}, Q = /* @__PURE__ */
|
|
17
|
+
}, Q = /* @__PURE__ */ C({
|
|
18
18
|
__name: "SlideInfo.ce",
|
|
19
19
|
props: {
|
|
20
20
|
description: { type: String },
|
|
@@ -22,39 +22,39 @@ const F = {
|
|
|
22
22
|
titleLevel: { type: Number },
|
|
23
23
|
isActive: { type: Boolean }
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const i =
|
|
27
|
-
if (!
|
|
28
|
-
const
|
|
29
|
-
if (!
|
|
30
|
-
const
|
|
31
|
-
return
|
|
25
|
+
setup(n) {
|
|
26
|
+
const i = h(() => {
|
|
27
|
+
if (!n.description) return !1;
|
|
28
|
+
const t = [...n.description.matchAll(/<(\w+)[^>]*>/gm)];
|
|
29
|
+
if (!t.length) return !1;
|
|
30
|
+
const s = new RegExp(`</${t[0][1]}>`, "gm");
|
|
31
|
+
return n.description.match(s);
|
|
32
32
|
});
|
|
33
|
-
return (
|
|
34
|
-
class: j(["slide-info", { active:
|
|
33
|
+
return (t, s) => (o(), l("div", {
|
|
34
|
+
class: j(["slide-info", { active: t.isActive }])
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
r("div", {
|
|
37
37
|
role: "heading",
|
|
38
|
-
"aria-level":
|
|
38
|
+
"aria-level": t.titleLevel,
|
|
39
39
|
class: "title"
|
|
40
40
|
}, [
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
R(t.$slots, "pagination"),
|
|
42
|
+
z(" " + g(t.title), 1)
|
|
43
43
|
], 8, K),
|
|
44
|
-
i.value ? (
|
|
44
|
+
i.value ? (o(), l("div", {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "description",
|
|
47
|
-
innerHTML:
|
|
48
|
-
}, null, 8, W)) :
|
|
47
|
+
innerHTML: t.description
|
|
48
|
+
}, null, 8, W)) : t.description ? (o(), l("p", J, g(t.description), 1)) : M("", !0)
|
|
49
49
|
], 2));
|
|
50
50
|
}
|
|
51
|
-
}), U = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width: 576px){.slide-info.active{border:none;padding-left:0}}",
|
|
51
|
+
}), U = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width: 576px){.slide-info.active{border:none;padding-left:0}}", E = /* @__PURE__ */ b(Q, [["styles", [U]]]), X = ["aria-hidden", "aria-roledescription", "aria-label"], Y = ["alt", "src"], ee = {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "license"
|
|
54
54
|
}, ie = ["href"], te = {
|
|
55
55
|
key: 1,
|
|
56
56
|
class: "text-image-container"
|
|
57
|
-
},
|
|
57
|
+
}, ne = ["alt", "src", "height"], se = ["innerHTML"], oe = ["innerHTML"], ae = /* @__PURE__ */ C({
|
|
58
58
|
__name: "Slide.ce",
|
|
59
59
|
props: {
|
|
60
60
|
slide: { type: Object },
|
|
@@ -66,56 +66,56 @@ const F = {
|
|
|
66
66
|
type: { type: String },
|
|
67
67
|
disableAnimation: { type: Boolean }
|
|
68
68
|
},
|
|
69
|
-
setup(
|
|
70
|
-
const i =
|
|
71
|
-
|
|
72
|
-
e ? (
|
|
73
|
-
|
|
74
|
-
}, 20)) : (
|
|
75
|
-
|
|
69
|
+
setup(n) {
|
|
70
|
+
const i = window.matchMedia("(prefers-reduced-motion: reduce)"), t = n.disableAnimation ?? i.matches, s = w(n.isActive ? "on" : "off");
|
|
71
|
+
H(() => n.isActive, (e) => {
|
|
72
|
+
e ? (s.value = t ? "on" : "initStart", window.setTimeout(() => {
|
|
73
|
+
s.value === "initStart" && (s.value = "on");
|
|
74
|
+
}, 20)) : (s.value = t ? "off" : "initEnd", window.setTimeout(() => {
|
|
75
|
+
s.value === "initEnd" && (s.value = "off");
|
|
76
76
|
}, 800));
|
|
77
77
|
});
|
|
78
|
-
const
|
|
79
|
-
return (e,
|
|
78
|
+
const d = h(() => n.direction === 1);
|
|
79
|
+
return (e, y) => (o(), l("div", {
|
|
80
80
|
role: "group",
|
|
81
|
-
class: j(["slide", { active: e.isActive, [
|
|
81
|
+
class: j(["slide", { active: e.isActive, [s.value]: s.value, "is-next": d.value, "disable-animation": u(t) }]),
|
|
82
82
|
"aria-hidden": !e.isActive,
|
|
83
83
|
"aria-roledescription": e.$t("pix-carousel.slide"),
|
|
84
84
|
"aria-label": e.label
|
|
85
85
|
}, [
|
|
86
|
-
e.type === "image" ? (
|
|
86
|
+
e.type === "image" ? (o(), l("div", {
|
|
87
87
|
key: 0,
|
|
88
88
|
class: "image-container",
|
|
89
89
|
style: $(`aspect-ratio: ${e.aspectRatio}`)
|
|
90
90
|
}, [
|
|
91
|
-
|
|
91
|
+
r("img", {
|
|
92
92
|
style: $(`max-width: ${e.slide.displayWidth}px`),
|
|
93
93
|
alt: e.slide.image.alt,
|
|
94
94
|
src: e.slide.image.src
|
|
95
95
|
}, null, 12, Y),
|
|
96
|
-
e.slide.license ? (
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
e.slide.license ? (o(), l("p", ee, [
|
|
97
|
+
z(g(e.slide.license.attribution) + " / ", 1),
|
|
98
|
+
r("a", {
|
|
99
99
|
href: e.slide.license.url,
|
|
100
100
|
target: "_blank"
|
|
101
|
-
},
|
|
102
|
-
])) :
|
|
103
|
-
], 4)) : e.type === "image-text" ? (
|
|
104
|
-
|
|
101
|
+
}, g(e.slide.license.name), 9, ie)
|
|
102
|
+
])) : M("", !0)
|
|
103
|
+
], 4)) : e.type === "image-text" ? (o(), l("div", te, [
|
|
104
|
+
r("img", {
|
|
105
105
|
alt: e.slide.image.alt,
|
|
106
106
|
src: e.slide.image.src,
|
|
107
107
|
height: e.slide.displayHeight
|
|
108
|
-
}, null, 8,
|
|
109
|
-
|
|
108
|
+
}, null, 8, ne),
|
|
109
|
+
r("div", {
|
|
110
110
|
innerHTML: e.slide.text,
|
|
111
111
|
class: "text-container"
|
|
112
|
-
}, null, 8,
|
|
113
|
-
])) : (
|
|
112
|
+
}, null, 8, se)
|
|
113
|
+
])) : (o(), l("div", {
|
|
114
114
|
key: 2,
|
|
115
115
|
innerHTML: e.slide.text,
|
|
116
116
|
class: "text-container"
|
|
117
117
|
}, null, 8, oe)),
|
|
118
|
-
|
|
118
|
+
m(E, {
|
|
119
119
|
description: e.slide.description,
|
|
120
120
|
title: e.slide.title,
|
|
121
121
|
"is-active": e.isActive,
|
|
@@ -124,37 +124,37 @@ const F = {
|
|
|
124
124
|
}, null, 8, ["description", "title", "is-active", "title-level"])
|
|
125
125
|
], 10, X));
|
|
126
126
|
}
|
|
127
|
-
}), le = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:920px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;gap:12px;padding:0 16px}@media only screen and (max-width: 576px){.license{font-size:.5rem}.image-container img{border-radius:8px}.text-image-container{padding:16px}}@media (prefers-reduced-motion: reduce){.slide{transition:none}}", re = /* @__PURE__ */
|
|
127
|
+
}), le = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:920px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;gap:12px;padding:0 16px}@media only screen and (max-width: 576px){.license{font-size:.5rem}.image-container img{border-radius:8px}.text-image-container{padding:16px}}@media (prefers-reduced-motion: reduce){.slide{transition:none}}", re = /* @__PURE__ */ b(ae, [["styles", [le]]]), de = {}, ce = {
|
|
128
128
|
width: "25",
|
|
129
129
|
height: "24",
|
|
130
130
|
viewBox: "0 0 25 24",
|
|
131
131
|
fill: "inherit",
|
|
132
132
|
xmlns: "http://www.w3.org/2000/svg"
|
|
133
133
|
};
|
|
134
|
-
function pe(
|
|
135
|
-
return
|
|
136
|
-
|
|
134
|
+
function pe(n, i) {
|
|
135
|
+
return o(), l("svg", ce, [...i[0] || (i[0] = [
|
|
136
|
+
r("path", {
|
|
137
137
|
d: "M11.6579 11.9996L15.4624 15.8039C15.6735 16.0152 15.7791 16.2804 15.7791 16.5996C15.7791 16.9188 15.6735 17.184 15.4624 17.3954C15.251 17.6065 14.9858 17.7121 14.6666 17.7121C14.3474 17.7121 14.0822 17.6065 13.8709 17.3954L9.27685 12.8014C9.16502 12.6894 9.08327 12.565 9.0316 12.4284C8.97994 12.2919 8.9541 12.1489 8.9541 11.9996C8.9541 11.8503 8.97994 11.7074 9.0316 11.5709C9.08327 11.4342 9.16502 11.3099 9.27685 11.1979L13.8709 6.60386C14.0822 6.39269 14.3474 6.28711 14.6666 6.28711C14.9858 6.28711 15.251 6.39269 15.4624 6.60386C15.6735 6.81519 15.7791 7.08044 15.7791 7.39961C15.7791 7.71878 15.6735 7.98403 15.4624 8.19536L11.6579 11.9996Z",
|
|
138
138
|
fill: "inherit"
|
|
139
139
|
}, null, -1)
|
|
140
140
|
])]);
|
|
141
141
|
}
|
|
142
|
-
const ue = /* @__PURE__ */
|
|
142
|
+
const ue = /* @__PURE__ */ b(de, [["render", pe]]), fe = {}, me = {
|
|
143
143
|
width: "25",
|
|
144
144
|
height: "24",
|
|
145
145
|
viewBox: "0 0 25 24",
|
|
146
146
|
fill: "inherit",
|
|
147
147
|
xmlns: "http://www.w3.org/2000/svg"
|
|
148
148
|
};
|
|
149
|
-
function ge(
|
|
150
|
-
return
|
|
151
|
-
|
|
149
|
+
function ge(n, i) {
|
|
150
|
+
return o(), l("svg", me, [...i[0] || (i[0] = [
|
|
151
|
+
r("path", {
|
|
152
152
|
d: "M13.0754 11.9996L9.27085 8.19536C9.05969 7.98403 8.9541 7.71878 8.9541 7.39961C8.9541 7.08044 9.05969 6.81519 9.27085 6.60386C9.48219 6.39269 9.74743 6.28711 10.0666 6.28711C10.3858 6.28711 10.651 6.39269 10.8624 6.60386L15.4564 11.1979C15.5682 11.3099 15.6499 11.4342 15.7016 11.5709C15.7533 11.7074 15.7791 11.8503 15.7791 11.9996C15.7791 12.1489 15.7533 12.2919 15.7016 12.4284C15.6499 12.565 15.5682 12.6894 15.4564 12.8014L10.8624 17.3954C10.651 17.6065 10.3858 17.7121 10.0666 17.7121C9.74743 17.7121 9.48219 17.6065 9.27085 17.3954C9.05969 17.184 8.9541 16.9188 8.9541 16.5996C8.9541 16.2804 9.05969 16.0152 9.27085 15.8039L13.0754 11.9996Z",
|
|
153
153
|
fill: "inherit"
|
|
154
154
|
}, null, -1)
|
|
155
155
|
])]);
|
|
156
156
|
}
|
|
157
|
-
const ve = /* @__PURE__ */
|
|
157
|
+
const ve = /* @__PURE__ */ b(fe, [["render", ge]]), he = ["aria-roledescription"], be = ["id"], xe = { class: "footer" }, ye = { class: "control" }, _e = { class: "slide-info-container" }, we = { class: "pagination" }, Ce = /* @__PURE__ */ C({
|
|
158
158
|
__name: "Carousel.ce",
|
|
159
159
|
props: {
|
|
160
160
|
randomSlides: { type: Boolean },
|
|
@@ -165,86 +165,86 @@ const ve = /* @__PURE__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"
|
|
|
165
165
|
disableLoop: { type: Boolean },
|
|
166
166
|
aspectRatio: { type: Number }
|
|
167
167
|
},
|
|
168
|
-
setup(
|
|
169
|
-
const i =
|
|
170
|
-
function
|
|
171
|
-
|
|
168
|
+
setup(n) {
|
|
169
|
+
const i = n, t = i.titleLevel ?? 2, s = h(() => i.randomSlides ? [...i.slides].sort(() => Math.round(Math.random()) === 0 ? -1 : 1) : i.slides), d = w(0), e = w(1), y = h(() => i.disableLoop && d.value === 0), L = h(() => i.disableLoop && d.value === i.slides.length - 1);
|
|
170
|
+
function x(a) {
|
|
171
|
+
e.value = a, d.value = (d.value - a + i.slides.length) % i.slides.length;
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
return (
|
|
175
|
-
"aria-roledescription":
|
|
173
|
+
const v = D();
|
|
174
|
+
return (a, c) => (o(), l("section", {
|
|
175
|
+
"aria-roledescription": a.$t("pix-carousel.title")
|
|
176
176
|
}, [
|
|
177
|
-
|
|
177
|
+
r("div", {
|
|
178
178
|
"aria-live": "polite",
|
|
179
179
|
class: "slides",
|
|
180
|
-
id: u(
|
|
180
|
+
id: u(v)
|
|
181
181
|
}, [
|
|
182
|
-
|
|
182
|
+
m(B, {
|
|
183
183
|
class: "carousel__nav previous",
|
|
184
|
-
disabled:
|
|
185
|
-
"aria-controls": u(
|
|
186
|
-
onClick:
|
|
187
|
-
label:
|
|
184
|
+
disabled: y.value,
|
|
185
|
+
"aria-controls": u(v),
|
|
186
|
+
onClick: c[0] || (c[0] = (p) => x(1)),
|
|
187
|
+
label: a.$t("pix-carousel.previous"),
|
|
188
188
|
"tooltip-position": "right"
|
|
189
189
|
}, {
|
|
190
|
-
default:
|
|
191
|
-
|
|
190
|
+
default: _(() => [
|
|
191
|
+
m(ue, { "aria-hidden": "true" })
|
|
192
192
|
]),
|
|
193
193
|
_: 1
|
|
194
194
|
}, 8, ["disabled", "aria-controls", "label"]),
|
|
195
|
-
(
|
|
196
|
-
key:
|
|
197
|
-
slide:
|
|
198
|
-
direction:
|
|
199
|
-
label:
|
|
200
|
-
"is-active":
|
|
201
|
-
"title-level": u(
|
|
202
|
-
"aspect-ratio":
|
|
203
|
-
type:
|
|
204
|
-
"disable-animation":
|
|
195
|
+
(o(!0), l(S, null, k(s.value, (p, f) => (o(), A(re, {
|
|
196
|
+
key: f,
|
|
197
|
+
slide: p,
|
|
198
|
+
direction: e.value,
|
|
199
|
+
label: a.$t("pix-carousel.of", { currentSlide: f + 1, slideLength: s.value.length }),
|
|
200
|
+
"is-active": d.value === f,
|
|
201
|
+
"title-level": u(t),
|
|
202
|
+
"aspect-ratio": a.aspectRatio,
|
|
203
|
+
type: a.type,
|
|
204
|
+
"disable-animation": a.disableAnimation
|
|
205
205
|
}, null, 8, ["slide", "direction", "label", "is-active", "title-level", "aspect-ratio", "type", "disable-animation"]))), 128)),
|
|
206
|
-
|
|
206
|
+
m(B, {
|
|
207
207
|
class: "carousel__nav next",
|
|
208
208
|
disabled: L.value,
|
|
209
|
-
"aria-controls": u(
|
|
210
|
-
onClick:
|
|
211
|
-
label:
|
|
209
|
+
"aria-controls": u(v),
|
|
210
|
+
onClick: c[1] || (c[1] = (p) => x(-1)),
|
|
211
|
+
label: a.$t("pix-carousel.next"),
|
|
212
212
|
"tooltip-position": "left"
|
|
213
213
|
}, {
|
|
214
|
-
default:
|
|
215
|
-
|
|
214
|
+
default: _(() => [
|
|
215
|
+
m(ve, { "aria-hidden": "true" })
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
218
218
|
}, 8, ["disabled", "aria-controls", "label"])
|
|
219
219
|
], 8, be),
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
onClick:
|
|
224
|
-
label:
|
|
225
|
-
"aria-controls": u(
|
|
220
|
+
r("div", xe, [
|
|
221
|
+
r("div", ye, [
|
|
222
|
+
m(T, {
|
|
223
|
+
onClick: c[2] || (c[2] = (p) => x(1)),
|
|
224
|
+
label: a.$t("pix-carousel.previous"),
|
|
225
|
+
"aria-controls": u(v),
|
|
226
226
|
direction: "previous",
|
|
227
|
-
disabled:
|
|
227
|
+
disabled: y.value
|
|
228
228
|
}, null, 8, ["label", "aria-controls", "disabled"]),
|
|
229
|
-
|
|
230
|
-
onClick:
|
|
231
|
-
label:
|
|
232
|
-
"aria-controls": u(
|
|
229
|
+
m(T, {
|
|
230
|
+
onClick: c[3] || (c[3] = (p) => x(-1)),
|
|
231
|
+
label: a.$t("pix-carousel.next"),
|
|
232
|
+
"aria-controls": u(v),
|
|
233
233
|
direction: "next",
|
|
234
234
|
disabled: L.value
|
|
235
235
|
}, null, 8, ["label", "aria-controls", "disabled"])
|
|
236
236
|
]),
|
|
237
|
-
|
|
238
|
-
(
|
|
239
|
-
key:
|
|
240
|
-
description:
|
|
241
|
-
title:
|
|
242
|
-
"title-level": u(
|
|
243
|
-
"is-active":
|
|
237
|
+
r("div", _e, [
|
|
238
|
+
(o(!0), l(S, null, k(s.value, (p, f) => (o(), A(E, {
|
|
239
|
+
key: f,
|
|
240
|
+
description: p.description,
|
|
241
|
+
title: p.title,
|
|
242
|
+
"title-level": u(t),
|
|
243
|
+
"is-active": d.value === f,
|
|
244
244
|
"aria-hidden": "true"
|
|
245
245
|
}, {
|
|
246
|
-
pagination:
|
|
247
|
-
|
|
246
|
+
pagination: _(() => [
|
|
247
|
+
r("span", we, g(f + 1) + " / " + g(s.value.length), 1)
|
|
248
248
|
]),
|
|
249
249
|
_: 2
|
|
250
250
|
}, 1032, ["description", "title", "title-level", "is-active"]))), 128))
|
|
@@ -252,10 +252,10 @@ const ve = /* @__PURE__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"
|
|
|
252
252
|
])
|
|
253
253
|
], 8, he));
|
|
254
254
|
}
|
|
255
|
-
}), Le = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media only screen and (max-width: 576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", $e = /* @__PURE__ */
|
|
256
|
-
|
|
257
|
-
window.customElements.define("pix-carousel",
|
|
258
|
-
configureApp(
|
|
259
|
-
N.changeLanguage(document?.documentElement?.lang || navigator.language),
|
|
255
|
+
}), Le = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media only screen and (max-width: 576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", $e = /* @__PURE__ */ b(Ce, [["styles", [Le]]]);
|
|
256
|
+
V(/* @__PURE__ */ Object.assign({ "./locales/en.json": F, "./locales/es.json": G, "./locales/fr.json": O, "./locales/it.json": Z, "./locales/nl.json": q })).catch((n) => console.error(n));
|
|
257
|
+
window.customElements.define("pix-carousel", I($e, {
|
|
258
|
+
configureApp(n) {
|
|
259
|
+
N.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(P, { i18next: N });
|
|
260
260
|
}
|
|
261
261
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as H, r as y, z as k, v as m, h as S, c as a, o as i, f as s, I as A, q as c, t as u, F as f, b, J as E, g, x as C, H as L, y as F, B as P, _ as D, d as q } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { a as G, i as w, b as J } from "../i18n-
|
|
3
|
-
import { N as j } from "../NavigationButton.ce-
|
|
1
|
+
import { a as H, r as y, z as k, v as m, h as S, c as a, o as i, f as s, I as A, q as c, t as u, F as f, b, J as E, g, x as C, H as L, y as F, B as P, _ as D, d as q } from "../_plugin-vue_export-helper-CXkSGj2f.js";
|
|
2
|
+
import { a as G, i as w, b as J } from "../i18n-CnN3ours.js";
|
|
3
|
+
import { N as j } from "../NavigationButton.ce-CJGPfdW7.js";
|
|
4
4
|
const R = {}, U = {}, K = {
|
|
5
5
|
"pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
|
|
6
6
|
}, Q = {}, W = {}, X = ["for"], Y = {
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { a as k, c, o as r, f as t, y as b, t as d, x as C, _ as w, M as R, N as A, r as y, v as h, I as E, j as V, O as M, D as O, F as _, b as S, e as G, q as j, B as P, g as F, d as H } from "../_plugin-vue_export-helper-CXkSGj2f.js";
|
|
2
|
+
import { i as s, a as Q, b as U } from "../i18n-CnN3ours.js";
|
|
3
|
+
const W = {
|
|
4
|
+
"qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "un enregistrement de Caroline qui chante", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d’IA générative :", title: "Recréez la vidéo de Caroline", in: "Entrée", out: "Sortie", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo :", generateVideo: "Générer la vidéo !", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Super !", description: "C'est bien la vidéo de Caroline? Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." }, searchTitle: "Le logiciel d’IA générative crée la vidéo" }
|
|
5
|
+
}, Z = ["aria-hidden"], J = ["aria-level"], K = ["src"], X = { class: "description" }, Y = ["src"], ee = ["aria-level"], te = /* @__PURE__ */ k({
|
|
6
|
+
__name: "NarrativeAnswer.ce",
|
|
7
|
+
props: {
|
|
8
|
+
messageTitle: { type: String },
|
|
9
|
+
messageDescription: { type: String },
|
|
10
|
+
titleLevel: { type: Number },
|
|
11
|
+
image: { type: String },
|
|
12
|
+
title: { type: String },
|
|
13
|
+
stateAnswer: { type: String },
|
|
14
|
+
type: { type: String }
|
|
15
|
+
},
|
|
16
|
+
setup(a) {
|
|
17
|
+
return (e, l) => (r(), c("div", {
|
|
18
|
+
class: "right-container",
|
|
19
|
+
"aria-hidden": e.type !== e.stateAnswer
|
|
20
|
+
}, [
|
|
21
|
+
t("div", {
|
|
22
|
+
class: "subtitle",
|
|
23
|
+
role: "heading",
|
|
24
|
+
"aria-level": e.titleLevel + 1
|
|
25
|
+
}, d(e.$t("qcm-deepfake.out")), 9, J),
|
|
26
|
+
e.type === "search" ? (r(), c("img", {
|
|
27
|
+
key: 0,
|
|
28
|
+
src: e.image,
|
|
29
|
+
alt: ""
|
|
30
|
+
}, null, 8, K)) : b("", !0),
|
|
31
|
+
t("p", X, d(e.title), 1),
|
|
32
|
+
e.type !== "search" ? (r(), c("img", {
|
|
33
|
+
key: 1,
|
|
34
|
+
src: e.image,
|
|
35
|
+
alt: ""
|
|
36
|
+
}, null, 8, Y)) : b("", !0),
|
|
37
|
+
e.messageTitle ? (r(), c("div", {
|
|
38
|
+
key: 2,
|
|
39
|
+
class: C(["answer-block", e.stateAnswer])
|
|
40
|
+
}, [
|
|
41
|
+
t("div", {
|
|
42
|
+
class: "answer-block__title",
|
|
43
|
+
role: "heading",
|
|
44
|
+
"aria-level": e.titleLevel + 2
|
|
45
|
+
}, d(e.messageTitle), 9, ee),
|
|
46
|
+
t("p", null, d(e.messageDescription), 1)
|
|
47
|
+
], 2)) : b("", !0)
|
|
48
|
+
], 8, Z));
|
|
49
|
+
}
|
|
50
|
+
}), ae = ".right-container[data-v-3d782b51]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-3d782b51]{visibility:hidden}img[data-v-3d782b51]{margin-block:.5rem}.subtitle[data-v-3d782b51]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-3d782b51]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-3d782b51]{width:200px;height:auto}.answer-block[data-v-3d782b51]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-3d782b51]{margin-bottom:0}.answer-block.success[data-v-3d782b51]{background:#e8f3ef}.answer-block.fail[data-v-3d782b51]{border-radius:16px;background:#fbecec}", ie = /* @__PURE__ */ w(te, [["styles", [ae]], ["__scopeId", "data-v-3d782b51"]]), se = ["aria-disabled"], ne = /* @__PURE__ */ k({
|
|
51
|
+
__name: "Option.ce",
|
|
52
|
+
props: /* @__PURE__ */ R({
|
|
53
|
+
option: { type: String },
|
|
54
|
+
value: { type: Number },
|
|
55
|
+
readonly: { type: Boolean }
|
|
56
|
+
}, {
|
|
57
|
+
modelValue: {},
|
|
58
|
+
modelModifiers: {}
|
|
59
|
+
}),
|
|
60
|
+
emits: ["update:modelValue"],
|
|
61
|
+
setup(a, { expose: e }) {
|
|
62
|
+
const l = A(a, "modelValue"), u = y(!1), i = h(() => l.value.length === 3 && !u.value || a.readonly);
|
|
63
|
+
function v(m) {
|
|
64
|
+
if (i.value) {
|
|
65
|
+
m.preventDefault();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
m.target.checked ? l.value.push(a.option) : l.value = l.value.filter((p) => p !== a.option);
|
|
69
|
+
}
|
|
70
|
+
return e({
|
|
71
|
+
isChecked: u
|
|
72
|
+
}), (m, g) => (r(), c("label", {
|
|
73
|
+
class: C({ selected: u.value, disabled: i.value })
|
|
74
|
+
}, [
|
|
75
|
+
E(t("input", {
|
|
76
|
+
type: "checkbox",
|
|
77
|
+
name: "options",
|
|
78
|
+
onClick: v,
|
|
79
|
+
"aria-disabled": i.value,
|
|
80
|
+
"onUpdate:modelValue": g[0] || (g[0] = (p) => u.value = p)
|
|
81
|
+
}, null, 8, se), [
|
|
82
|
+
[M, u.value]
|
|
83
|
+
]),
|
|
84
|
+
V(d(m.option), 1)
|
|
85
|
+
], 2));
|
|
86
|
+
}
|
|
87
|
+
}), le = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", oe = /* @__PURE__ */ w(ne, [["styles", [le]], ["__scopeId", "data-v-a067b43a"]]), re = ["aria-level"], de = { class: "container" }, ce = { class: "left-side" }, ue = ["aria-level"], fe = { class: "left-side__description" }, me = { class: "left-side__action" }, pe = ["aria-disabled"], ge = {
|
|
88
|
+
key: 0,
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
width: "20",
|
|
91
|
+
height: "20",
|
|
92
|
+
viewBox: "0 0 20 20",
|
|
93
|
+
fill: "none",
|
|
94
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
95
|
+
}, ve = {
|
|
96
|
+
id: "optionsSelectedInfo",
|
|
97
|
+
class: "left-side__lower-legend",
|
|
98
|
+
"aria-hidden": "true"
|
|
99
|
+
}, be = {
|
|
100
|
+
class: "right-side",
|
|
101
|
+
"aria-live": "polite"
|
|
102
|
+
}, he = /* @__PURE__ */ k({
|
|
103
|
+
__name: "QcmDeepfake.ce",
|
|
104
|
+
props: {
|
|
105
|
+
titleLevel: { default: 2, type: Number },
|
|
106
|
+
successImage: { type: String },
|
|
107
|
+
failImage: { type: String },
|
|
108
|
+
infoImage: { type: String },
|
|
109
|
+
searchImage: { type: String },
|
|
110
|
+
searchDelay: { default: 2e3, type: Number }
|
|
111
|
+
},
|
|
112
|
+
setup(a, { expose: e }) {
|
|
113
|
+
const l = y([]), u = [2, 4, 5], i = y("info"), v = O("optionsNode"), m = s.t("qcm-deepfake.options", { returnObjects: !0 }), g = ["👩🎤", "🎧", "🎤", "👩", "🎙️"], p = m.map((n, o) => `${g[o]} ${n}`), $ = p.filter((n, o) => u.includes(o + 1)), N = [
|
|
114
|
+
{
|
|
115
|
+
type: "info",
|
|
116
|
+
image: a.infoImage,
|
|
117
|
+
title: s.t("qcm-deepfake.iaResultInfo")
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
type: "success",
|
|
121
|
+
image: a.successImage,
|
|
122
|
+
title: s.t("qcm-deepfake.iaResultGenerated"),
|
|
123
|
+
messageTitle: `🥳 ${s.t("qcm-deepfake.success.title")}`,
|
|
124
|
+
messageDescription: s.t("qcm-deepfake.success.description")
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: "fail",
|
|
128
|
+
image: a.failImage,
|
|
129
|
+
title: s.t("qcm-deepfake.iaResultGenerated"),
|
|
130
|
+
messageTitle: `🫤 ${s.t("qcm-deepfake.fail.title")}`,
|
|
131
|
+
messageDescription: s.t("qcm-deepfake.fail.description")
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
type: "search",
|
|
135
|
+
image: a.searchImage,
|
|
136
|
+
title: s.t("qcm-deepfake.searchTitle")
|
|
137
|
+
}
|
|
138
|
+
], q = h(() => l.value.length !== 3), T = h(() => i.value === "info" ? s.t("qcm-deepfake.generateVideo") : s.t("qcm-deepfake.restart")), D = h(() => i.value === "info" ? s.t("qcm-deepfake.generateVideoInfo", { count: u.length - l.value.length }) : s.t("qcm-deepfake.restartInfo"));
|
|
139
|
+
function z() {
|
|
140
|
+
return i.value === "info" ? B() : I();
|
|
141
|
+
}
|
|
142
|
+
function I() {
|
|
143
|
+
v.value.forEach((n) => {
|
|
144
|
+
n.isChecked = !1;
|
|
145
|
+
}), l.value = [], i.value = "info";
|
|
146
|
+
}
|
|
147
|
+
async function B() {
|
|
148
|
+
if (q.value) return;
|
|
149
|
+
const n = l.value.every((o) => $.includes(o.trim()));
|
|
150
|
+
i.value = "search", await new Promise((o) => setTimeout(o, a.searchDelay)), n ? i.value = "success" : i.value = "fail";
|
|
151
|
+
}
|
|
152
|
+
return e({
|
|
153
|
+
reset: I
|
|
154
|
+
}), (n, o) => (r(), c(_, null, [
|
|
155
|
+
t("div", {
|
|
156
|
+
role: "heading",
|
|
157
|
+
"aria-level": n.titleLevel,
|
|
158
|
+
class: "title"
|
|
159
|
+
}, d(n.$t("qcm-deepfake.title")), 9, re),
|
|
160
|
+
t("div", de, [
|
|
161
|
+
t("form", ce, [
|
|
162
|
+
t("div", {
|
|
163
|
+
class: "left-side__subtitle",
|
|
164
|
+
role: "heading",
|
|
165
|
+
"aria-level": n.titleLevel + 1
|
|
166
|
+
}, d(n.$t("qcm-deepfake.in")), 9, ue),
|
|
167
|
+
t("fieldset", null, [
|
|
168
|
+
t("legend", fe, d(n.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
169
|
+
(r(!0), c(_, null, S(j(p), (f, x) => (r(), G(oe, {
|
|
170
|
+
ref_for: !0,
|
|
171
|
+
ref_key: "optionsNode",
|
|
172
|
+
ref: v,
|
|
173
|
+
modelValue: l.value,
|
|
174
|
+
"onUpdate:modelValue": o[0] || (o[0] = (L) => l.value = L),
|
|
175
|
+
key: x,
|
|
176
|
+
class: "left-side__options",
|
|
177
|
+
option: f,
|
|
178
|
+
value: x + 1,
|
|
179
|
+
readonly: i.value !== "info"
|
|
180
|
+
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
181
|
+
]),
|
|
182
|
+
t("div", me, [
|
|
183
|
+
t("button", {
|
|
184
|
+
onClick: P(z, ["prevent"]),
|
|
185
|
+
class: C(["left-side__button", { generate: i.value === "info" }]),
|
|
186
|
+
"aria-disabled": q.value,
|
|
187
|
+
"aria-describedby": "optionsSelectedInfo"
|
|
188
|
+
}, [
|
|
189
|
+
i.value !== "info" ? (r(), c("svg", ge, [...o[1] || (o[1] = [
|
|
190
|
+
t("path", {
|
|
191
|
+
d: "M9.98002 16.836C8.07572 16.836 6.4603 16.1728 5.13377 14.8462C3.80725 13.5197 3.14398 11.9043 3.14398 9.99998C3.14398 8.09568 3.80725 6.48026 5.13377 5.15373C6.4603 3.8272 8.07572 3.16394 9.98002 3.16394C10.9684 3.16394 11.9108 3.36686 12.8073 3.77269C13.7038 4.17839 14.4713 4.76095 15.1096 5.5204V4.03707C15.1096 3.7897 15.1933 3.58234 15.3606 3.41498C15.528 3.24762 15.7354 3.16394 15.9827 3.16394C16.2302 3.16394 16.4377 3.24762 16.605 3.41498C16.7724 3.58234 16.8561 3.7897 16.8561 4.03707V8.29352C16.8561 8.5595 16.7645 8.78394 16.5815 8.96686C16.3986 9.14991 16.1741 9.24144 15.9081 9.24144H11.6417C11.3957 9.24144 11.1895 9.15776 11.0231 8.9904C10.8568 8.82304 10.7736 8.61561 10.7736 8.36811C10.7736 8.12213 10.8572 7.91595 11.0246 7.74956C11.192 7.58318 11.3993 7.49998 11.6467 7.49998H14.2438C13.7993 6.74207 13.199 6.14589 12.4427 5.71144C11.6866 5.277 10.8657 5.05977 9.98002 5.05977C8.6078 5.05977 7.44141 5.54005 6.48086 6.50061C5.52016 7.4613 5.03982 8.62776 5.03982 9.99998C5.03982 11.3722 5.52016 12.5387 6.48086 13.4994C7.44141 14.4599 8.6078 14.9402 9.98002 14.9402C10.8879 14.9402 11.7218 14.713 12.4817 14.2587C13.2416 13.8046 13.8384 13.1963 14.2723 12.4339C14.402 12.2189 14.5845 12.0692 14.8198 11.9848C15.055 11.9005 15.2895 11.8996 15.5236 11.9823C15.7733 12.0651 15.9534 12.2275 16.064 12.4696C16.1744 12.7118 16.1675 12.9401 16.0431 13.1544C15.4537 14.2688 14.6221 15.161 13.5484 15.831C12.4745 16.501 11.285 16.836 9.98002 16.836Z",
|
|
192
|
+
fill: "#122647"
|
|
193
|
+
}, null, -1)
|
|
194
|
+
])])) : b("", !0),
|
|
195
|
+
V(" " + d(T.value), 1)
|
|
196
|
+
], 10, pe),
|
|
197
|
+
t("p", ve, d(D.value), 1)
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
t("div", be, [
|
|
201
|
+
(r(), c(_, null, S(N, (f) => F(ie, {
|
|
202
|
+
key: f,
|
|
203
|
+
"title-level": n.titleLevel,
|
|
204
|
+
type: f.type,
|
|
205
|
+
image: f.image,
|
|
206
|
+
title: f.title,
|
|
207
|
+
"message-title": f.messageTitle,
|
|
208
|
+
"message-description": f.messageDescription,
|
|
209
|
+
"state-answer": i.value
|
|
210
|
+
}, null, 8, ["title-level", "type", "image", "title", "message-title", "message-description", "state-answer"])), 64))
|
|
211
|
+
])
|
|
212
|
+
])
|
|
213
|
+
], 64));
|
|
214
|
+
}
|
|
215
|
+
}), _e = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", ye = ".container[data-v-a7a0f3aa]{display:flex;gap:.8rem}.title[data-v-a7a0f3aa]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-a7a0f3aa]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-a7a0f3aa]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-a7a0f3aa]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-a7a0f3aa]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-a7a0f3aa]{font-weight:700}.left-side__button[data-v-a7a0f3aa]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-a7a0f3aa]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-a7a0f3aa]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-a7a0f3aa]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-a7a0f3aa]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-a7a0f3aa]{border:none;display:flex;flex-direction:column;gap:.8rem}@media (max-width: 770px){.container[data-v-a7a0f3aa]{flex-wrap:wrap}.left-side[data-v-a7a0f3aa],.right-side[data-v-a7a0f3aa]{width:100%}}", ke = /* @__PURE__ */ w(he, [["styles", [_e, ye]], ["__scopeId", "data-v-a7a0f3aa"]]);
|
|
216
|
+
Q(/* @__PURE__ */ Object.assign({ "./locales/fr.json": W })).catch((a) => console.error(a));
|
|
217
|
+
window.customElements.define("qcm-deepfake", H(ke, {
|
|
218
|
+
configureApp(a) {
|
|
219
|
+
s.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(U, { i18next: s });
|
|
220
|
+
}
|
|
221
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-CXkSGj2f.js";
|
|
2
2
|
const d = (o) => typeof o == "string", V = () => {
|
|
3
3
|
let o, e;
|
|
4
4
|
const t = new Promise((i, s) => {
|
package/dist/index.js
CHANGED
|
@@ -7,4 +7,6 @@ import "./components/image-quizzes.ce.js.js";
|
|
|
7
7
|
import "./components/pix-carousel.ce.js.js";
|
|
8
8
|
import "./components/pix-cursor.ce.js.js";
|
|
9
9
|
import "./components/complete-phrase.ce.js.js";
|
|
10
|
+
import "./components/qcm-deepfake.ce.js.js";
|
|
10
11
|
import "./components/pix-article.ce.js.js";
|
|
12
|
+
import "./components/calcul-impact.ce.js.js";
|