@1024pix/epreuves-components 2.1.0 → 2.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/{LLMMessage.ce-CcaSmq0J.js → LLMMessage.ce-D_SYQOna.js} +22 -22
- package/dist/{Loading.ce-kO02LfAR.js → Loading.ce-CjAv1WaY.js} +1 -1
- package/dist/{NavigationButton.ce-BUeEdL4x.js → NavigationButton.ce-DlErTyfv.js} +5 -5
- package/dist/Retry--whpA3a8.js +18 -0
- package/dist/{_plugin-vue_export-helper-BGEtPlxS.js → _plugin-vue_export-helper-CP5OpzZH.js} +976 -966
- package/dist/components/calcul-impact.ce.js.js +2 -2
- package/dist/components/capacity-calculation.ce.js.js +116 -129
- package/dist/components/clickable-image.ce.js.js +86 -69
- package/dist/components/complete-phrase.ce.js.js +129 -66
- package/dist/components/flip-cards.ce.js.js +4 -4
- 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 +6 -6
- package/dist/components/llm-prompt-select.ce.js.js +10 -10
- package/dist/components/message-conversation.ce.js.js +14 -14
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +11 -12
- package/dist/components/pix-cursor.ce.js.js +10 -10
- package/dist/components/qcm-deepfake.ce.js.js +107 -100
- package/dist/{i18n-D3E2CT0o.js → i18n-BB4WILwM.js} +12 -12
- package/dist/{image-quiz.ce-Qe3SbGDF.js → image-quiz.ce-UlVFo5Sr.js} +11 -11
- package/dist/index.js +1 -1
- package/dist/metadata.js +1 -1
- package/dist/schema.js +7 -4
- package/dist/{shadow-dom-Bqt3ZRMI.js → shadow-dom-D3DtD_VO.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as S, r as x, k as
|
|
2
|
-
import { L as I } from "../Loading.ce-
|
|
1
|
+
import { d as S, r as x, k as M, h as B, c as n, o as s, v as k, E as g, a as _, B as w, y as v, z as E, I as z, m as P, F as b, b as N, _ as D, g as T, e as V, f as F } from "../_plugin-vue_export-helper-CP5OpzZH.js";
|
|
2
|
+
import { L as I } from "../Loading.ce-CjAv1WaY.js";
|
|
3
3
|
import { u as L, a as j } from "../normalize-props-AlmAfi_u.js";
|
|
4
4
|
const O = ["part"], R = {
|
|
5
5
|
key: 1,
|
|
@@ -15,7 +15,7 @@ const O = ["part"], R = {
|
|
|
15
15
|
loadingDuration: { type: Number }
|
|
16
16
|
},
|
|
17
17
|
setup(e, { expose: d }) {
|
|
18
|
-
const i = x("hidden"), l = x([]), p =
|
|
18
|
+
const i = x("hidden"), l = x([]), p = M(() => e.message.content.split(`
|
|
19
19
|
`));
|
|
20
20
|
function m(t) {
|
|
21
21
|
return new Promise((a) => {
|
|
@@ -26,7 +26,7 @@ const O = ["part"], R = {
|
|
|
26
26
|
async function c() {
|
|
27
27
|
await m(e.startAnimation), i.value = "loading", await m(e.loadingDuration), i.value = "visible", await m(e.animationDuration);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
B(c);
|
|
30
30
|
async function f() {
|
|
31
31
|
i.value = "hidden", l.value.forEach(clearTimeout), await c();
|
|
32
32
|
}
|
|
@@ -47,7 +47,7 @@ const O = ["part"], R = {
|
|
|
47
47
|
w(v(e.message.userName), 1)
|
|
48
48
|
], 8, O)) : g("", !0),
|
|
49
49
|
i.value === "loading" ? (s(), n("div", R, [
|
|
50
|
-
|
|
50
|
+
E(I)
|
|
51
51
|
])) : g("", !0),
|
|
52
52
|
_("p", {
|
|
53
53
|
class: k(["message__content", { "hidden-state": i.value !== "visible" }]),
|
|
@@ -55,14 +55,14 @@ const O = ["part"], R = {
|
|
|
55
55
|
}, [
|
|
56
56
|
e.message.image ? (s(), n("img", z(P({ key: 0 }, e.message.image)), null, 16)) : g("", !0),
|
|
57
57
|
e.message.image ? (s(), n("br", G)) : g("", !0),
|
|
58
|
-
(s(!0), n(b, null,
|
|
58
|
+
(s(!0), n(b, null, N(p.value, (o, r) => (s(), n(b, { key: r }, [
|
|
59
59
|
r > 0 ? (s(), n("br", H)) : g("", !0),
|
|
60
60
|
w(" " + v(o), 1)
|
|
61
61
|
], 64))), 128))
|
|
62
62
|
], 10, q)
|
|
63
63
|
], 2));
|
|
64
64
|
}
|
|
65
|
-
}), K = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", Q = /* @__PURE__ */
|
|
65
|
+
}), K = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", Q = /* @__PURE__ */ D(J, [["styles", [K]]]), U = { part: "conversation" }, W = { class: "sr-only" }, X = /* @__PURE__ */ S({
|
|
66
66
|
__name: "MessageConversation.ce",
|
|
67
67
|
props: {
|
|
68
68
|
title: { default: "Conversation par messages", type: String },
|
|
@@ -70,7 +70,7 @@ const O = ["part"], R = {
|
|
|
70
70
|
animationSpeed: { default: 20, type: Number }
|
|
71
71
|
},
|
|
72
72
|
setup(e, { expose: d }) {
|
|
73
|
-
const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p =
|
|
73
|
+
const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p = M(
|
|
74
74
|
() => e.messages.reduce(
|
|
75
75
|
(t, a, o) => {
|
|
76
76
|
const r = c(a);
|
|
@@ -80,8 +80,8 @@ const O = ["part"], R = {
|
|
|
80
80
|
message: u,
|
|
81
81
|
startAnimation: y,
|
|
82
82
|
animationDuration: h
|
|
83
|
-
} = t.at(-1),
|
|
84
|
-
return [...t, { message: a, displaySender:
|
|
83
|
+
} = t.at(-1), A = a.direction !== u.direction || a.userName !== u.userName, $ = y + h + i;
|
|
84
|
+
return [...t, { message: a, displaySender: A, startAnimation: $, animationDuration: r }];
|
|
85
85
|
},
|
|
86
86
|
[]
|
|
87
87
|
)
|
|
@@ -97,7 +97,7 @@ const O = ["part"], R = {
|
|
|
97
97
|
reset: f
|
|
98
98
|
}), (t, a) => (s(), n("figure", U, [
|
|
99
99
|
_("figcaption", W, v(e.title), 1),
|
|
100
|
-
(s(!0), n(b, null,
|
|
100
|
+
(s(!0), n(b, null, N(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, h) => (s(), V(Q, {
|
|
101
101
|
ref_for: !0,
|
|
102
102
|
ref: "messages",
|
|
103
103
|
message: o,
|
|
@@ -109,8 +109,8 @@ const O = ["part"], R = {
|
|
|
109
109
|
}, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
|
|
110
110
|
]));
|
|
111
111
|
}
|
|
112
|
-
}), Y = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */
|
|
113
|
-
|
|
112
|
+
}), Y = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ D(X, [["styles", [Y]]]), C = F(Z);
|
|
113
|
+
C.prototype.normalizeProps = (e) => ({
|
|
114
114
|
...e,
|
|
115
115
|
animationSpeed: L(e.animationSpeed),
|
|
116
116
|
messages: e.messages.map((d) => ({
|
|
@@ -118,4 +118,4 @@ A.prototype.normalizeProps = (e) => ({
|
|
|
118
118
|
image: j(d.image)
|
|
119
119
|
}))
|
|
120
120
|
});
|
|
121
|
-
window.customElements.define("message-conversation",
|
|
121
|
+
window.customElements.define("message-conversation", C);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as u, c as a, o as n,
|
|
2
|
-
import { a as p, i as o, b as v } from "../i18n-
|
|
1
|
+
import { d as u, c as a, o as n, a as t, y as i, F as l, b as d, G as h, _ as m, f } from "../_plugin-vue_export-helper-CP5OpzZH.js";
|
|
2
|
+
import { a as p, i as o, b as v } from "../i18n-BB4WILwM.js";
|
|
3
3
|
import { u as y } from "../normalize-props-AlmAfi_u.js";
|
|
4
4
|
const b = {}, x = {}, S = {}, L = {
|
|
5
5
|
"pix-article": { byAuthor: "Par {{author}}" }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as S, c as n, o as t,
|
|
2
|
-
import { a as G, i as
|
|
3
|
-
import { B as j, N as D } from "../NavigationButton.ce-
|
|
1
|
+
import { d as S, c as n, o as t, v as M, a as s, E as L, L as R, B as z, y as g, G as l, _ as h, r as $, K as V, k as w, z as m, t as k, J as P, M as _, F as A, b as N, e as B, f as F } from "../_plugin-vue_export-helper-CP5OpzZH.js";
|
|
2
|
+
import { a as G, i as T, b as O } from "../i18n-BB4WILwM.js";
|
|
3
|
+
import { B as j, N as D } from "../NavigationButton.ce-DlErTyfv.js";
|
|
4
4
|
import { u as C, a as W } from "../normalize-props-AlmAfi_u.js";
|
|
5
5
|
const Z = {
|
|
6
6
|
"pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
|
|
@@ -56,7 +56,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
|
|
|
56
56
|
}, le = ["alt", "src"], se = {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: "license"
|
|
59
|
-
}, oe = ["href"], re = { class: "img-container" }, de = ["alt", "src"
|
|
59
|
+
}, oe = ["href"], re = { class: "img-container" }, de = ["alt", "src"], ce = ["innerHTML"], ue = {
|
|
60
60
|
key: 1,
|
|
61
61
|
class: "text-container"
|
|
62
62
|
}, pe = ["innerHTML"], me = /* @__PURE__ */ S({
|
|
@@ -109,8 +109,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
|
|
|
109
109
|
s("div", re, [
|
|
110
110
|
s("img", {
|
|
111
111
|
alt: e.slide.image.alt,
|
|
112
|
-
src: e.slide.image.src
|
|
113
|
-
height: e.slide.displayHeight
|
|
112
|
+
src: e.slide.image.src
|
|
114
113
|
}, null, 8, de)
|
|
115
114
|
]),
|
|
116
115
|
l(E)(e.slide.text) ? (t(), n("div", {
|
|
@@ -132,7 +131,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
|
|
|
132
131
|
}, null, 8, ["description", "title", "is-active", "title-level"])
|
|
133
132
|
], 10, ne));
|
|
134
133
|
}
|
|
135
|
-
}), ge = ".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:890px;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:16px;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px;background:#fff}.text-image-container .img-container{width:calc(var(--image-display) / (var(--image-display) + var(--text-display)) * 100%);display:flex;justify-content:center;align-items:center}.text-image-container .img-container img{max-width:100%;width:auto;height:auto}.text-image-container .text-container{width:calc(var(--text-display) / (var(--image-display) + var(--text-display)) * 100%)}.text-image-container .text-container>*{margin:0}@media only screen and (max-width:576px){.license{font-size:.5rem}.image-container img{border-radius:8px;width:95%}.text-image-container{flex-direction:column}.text-image-container .img-container,.text-image-container .text-container{width:100%}}@media(prefers-reduced-motion:reduce){.slide{transition:none}}", fe = /* @__PURE__ */ h(me, [["styles", [ge]]]), ve = {}, xe = {
|
|
134
|
+
}), ge = ".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:890px;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;flex:1;gap:12px;padding:16px;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px;background:#fff}.text-image-container .img-container{width:calc(var(--image-display) / (var(--image-display) + var(--text-display)) * 100%);display:flex;justify-content:center;align-items:center}.text-image-container .img-container img{max-width:100%;width:auto;height:auto}.text-image-container .text-container{width:calc(var(--text-display) / (var(--image-display) + var(--text-display)) * 100%)}.text-image-container .text-container>*{margin:0}@media only screen and (max-width:576px){.license{font-size:.5rem}.image-container img{border-radius:8px;width:95%}.text-image-container{flex-direction:column}.text-image-container .img-container,.text-image-container .text-container{width:100%}}@media(prefers-reduced-motion:reduce){.slide{transition:none}}", fe = /* @__PURE__ */ h(me, [["styles", [ge]]]), ve = {}, xe = {
|
|
136
135
|
width: "25",
|
|
137
136
|
height: "24",
|
|
138
137
|
viewBox: "0 0 25 24",
|
|
@@ -162,7 +161,7 @@ function _e(e, i) {
|
|
|
162
161
|
}, null, -1)
|
|
163
162
|
])]);
|
|
164
163
|
}
|
|
165
|
-
const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"], $e = ["id"], Se = { class: "footer" }, ke = { class: "control" }, Ae = { class: "slide-info-container" }, Ne = { class: "pagination" },
|
|
164
|
+
const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"], $e = ["id"], Se = { class: "footer" }, ke = { class: "control" }, Ae = { class: "slide-info-container" }, Ne = { class: "pagination" }, Be = /* @__PURE__ */ S({
|
|
166
165
|
__name: "Carousel.ce",
|
|
167
166
|
props: {
|
|
168
167
|
randomSlides: { type: Boolean },
|
|
@@ -200,7 +199,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
200
199
|
]),
|
|
201
200
|
_: 1
|
|
202
201
|
}, 8, ["disabled", "aria-controls", "label"]),
|
|
203
|
-
(t(!0), n(A, null, N(a.value, (u, p) => (t(),
|
|
202
|
+
(t(!0), n(A, null, N(a.value, (u, p) => (t(), B(fe, {
|
|
204
203
|
key: p,
|
|
205
204
|
slide: u,
|
|
206
205
|
direction: y.value,
|
|
@@ -243,7 +242,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
243
242
|
}, null, 8, ["label", "aria-controls", "disabled"])
|
|
244
243
|
]),
|
|
245
244
|
s("div", Ae, [
|
|
246
|
-
(t(!0), n(A, null, N(a.value, (u, p) => (t(),
|
|
245
|
+
(t(!0), n(A, null, N(a.value, (u, p) => (t(), B(H, {
|
|
247
246
|
key: p,
|
|
248
247
|
description: u.description,
|
|
249
248
|
title: u.title,
|
|
@@ -260,11 +259,11 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
260
259
|
])
|
|
261
260
|
], 8, Le));
|
|
262
261
|
}
|
|
263
|
-
}),
|
|
262
|
+
}), Te = "*{--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{align-items:center;display:flex;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:inline-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;transform:translateY(-.25rem)}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);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}}", je = /* @__PURE__ */ h(Be, [["styles", [Te]]]);
|
|
264
263
|
G(/* @__PURE__ */ Object.assign({ "./locales/en.json": Z, "./locales/es-419.json": J, "./locales/es.json": K, "./locales/fr.json": Y, "./locales/it.json": q, "./locales/nl.json": Q })).catch((e) => console.error(e));
|
|
265
264
|
const I = F(je, {
|
|
266
265
|
configureApp(e) {
|
|
267
|
-
|
|
266
|
+
T.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(O, { i18next: T });
|
|
268
267
|
}
|
|
269
268
|
});
|
|
270
269
|
I.prototype.normalizeProps = (e) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { a as q, i as w, b as J } from "../i18n-
|
|
3
|
-
import { N as j } from "../NavigationButton.ce-
|
|
1
|
+
import { d as E, r as k, J as y, k as m, A as S, c as a, o as i, a as s, l as B, G as d, y as u, F as f, b, N as H, z as g, v as C, M as L, E as F, q as P, _ as D, f as G } from "../_plugin-vue_export-helper-CP5OpzZH.js";
|
|
2
|
+
import { a as q, i as w, b as J } from "../i18n-BB4WILwM.js";
|
|
3
|
+
import { N as j } from "../NavigationButton.ce-DlErTyfv.js";
|
|
4
4
|
const R = {}, U = {}, K = {}, Q = {
|
|
5
5
|
"pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
|
|
6
6
|
}, W = {}, X = {}, Y = ["for"], Z = {
|
|
@@ -12,7 +12,7 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
12
12
|
}, ce = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "confirm"
|
|
15
|
-
}, de = ["innerHTML", "aria-hidden"], ue = /* @__PURE__ */
|
|
15
|
+
}, de = ["innerHTML", "aria-hidden"], ue = /* @__PURE__ */ E({
|
|
16
16
|
__name: "PixCursor.ce",
|
|
17
17
|
props: {
|
|
18
18
|
options: { type: Array }
|
|
@@ -37,10 +37,10 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
37
37
|
return M({
|
|
38
38
|
reset: T
|
|
39
39
|
}), (l, h) => {
|
|
40
|
-
const V =
|
|
40
|
+
const V = S("i18next");
|
|
41
41
|
return i(), a("form", {
|
|
42
42
|
class: "pix-cursor",
|
|
43
|
-
onSubmit:
|
|
43
|
+
onSubmit: P(z, ["prevent"])
|
|
44
44
|
}, [
|
|
45
45
|
s("div", null, [
|
|
46
46
|
s("label", {
|
|
@@ -49,13 +49,13 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
49
49
|
}, u(l.$t("pix-cursor.selectAnOption")), 9, Y),
|
|
50
50
|
s("ul", Z, [
|
|
51
51
|
(i(!0), a(f, null, b(n.options, (t, e) => (i(), a("li", {
|
|
52
|
-
onClick: (
|
|
52
|
+
onClick: (A) => _(e),
|
|
53
53
|
key: e
|
|
54
54
|
}, u(t.label), 9, ee))), 128))
|
|
55
55
|
]),
|
|
56
56
|
s("datalist", { id: d(x) }, [
|
|
57
57
|
(i(!0), a(f, null, b(n.options, (t, e) => (i(), a("option", {
|
|
58
|
-
onClick: (
|
|
58
|
+
onClick: (A) => _(e),
|
|
59
59
|
key: e,
|
|
60
60
|
value: e,
|
|
61
61
|
label: t.label
|
|
@@ -114,7 +114,7 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
114
114
|
])
|
|
115
115
|
]),
|
|
116
116
|
s("div", le, [
|
|
117
|
-
o.value ?
|
|
117
|
+
o.value ? F("", !0) : (i(), a("button", ce, u(l.$t("pix-cursor.confirm")), 1)),
|
|
118
118
|
(i(!0), a(f, null, b(n.options, (t, e) => (i(), a("p", {
|
|
119
119
|
innerHTML: t.feedback.text,
|
|
120
120
|
key: e,
|
|
@@ -128,7 +128,7 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
128
128
|
], 32);
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
}), pe = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", ve = /* @__PURE__ */
|
|
131
|
+
}), pe = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", ve = /* @__PURE__ */ D(ue, [["styles", [pe]], ["__scopeId", "data-v-58e704c5"]]);
|
|
132
132
|
q(/* @__PURE__ */ Object.assign({ "./locales/en.json": R, "./locales/es-419.json": U, "./locales/es.json": K, "./locales/fr.json": Q, "./locales/it.json": W, "./locales/nl.json": X })).catch((n) => console.error(n));
|
|
133
133
|
window.customElements.define("pix-cursor", G(ve, {
|
|
134
134
|
configureApp(n) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { d as y, k as b, c as
|
|
2
|
-
import { i as a, a as
|
|
1
|
+
import { d as y, k as b, c as i, o, a as s, E as v, y as c, v as w, _, O as E, P as A, r as x, l as O, B as V, Q as G, L as M, g as P, F as $, b as C, e as Q, G as F, z as k, R as U, M as W, q as H, f as J } from "../_plugin-vue_export-helper-CP5OpzZH.js";
|
|
2
|
+
import { i as a, a as K, b as X } from "../i18n-BB4WILwM.js";
|
|
3
|
+
import { R as Y } from "../Retry--whpA3a8.js";
|
|
3
4
|
import { u as Z } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
-
const
|
|
5
|
+
const ee = {}, te = {}, ae = {}, ne = {
|
|
5
6
|
"qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "les partitions de la chanson", "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", in: "Entrée", out: "Sortie", waiting: "Logiciel d'IA générative", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo de Caroline :", generateVideo: "Générer la vidéo !", loading: "Chargement…", 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: "Bien joué !", 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." } }
|
|
6
|
-
},
|
|
7
|
+
}, oe = {}, ie = {}, re = ["aria-hidden"], se = ["aria-level"], le = ["src"], de = {
|
|
7
8
|
key: 1,
|
|
8
9
|
class: "description"
|
|
9
|
-
},
|
|
10
|
+
}, ce = ["src"], ue = ["aria-level"], fe = /* @__PURE__ */ y({
|
|
10
11
|
__name: "NarrativeAnswer.ce",
|
|
11
12
|
props: {
|
|
12
13
|
messageTitle: { type: String },
|
|
@@ -18,41 +19,41 @@ const J = {}, K = {}, X = {}, Y = {
|
|
|
18
19
|
type: { type: String }
|
|
19
20
|
},
|
|
20
21
|
setup(e) {
|
|
21
|
-
const
|
|
22
|
-
return (
|
|
22
|
+
const u = e, n = b(() => u.type === "success" || u.type === "fail" ? a.t("qcm-deepfake.out") : a.t("qcm-deepfake.waiting"));
|
|
23
|
+
return (l, t) => (o(), i("div", {
|
|
23
24
|
class: "right-container",
|
|
24
25
|
"aria-hidden": e.type !== e.stateAnswer
|
|
25
26
|
}, [
|
|
26
|
-
|
|
27
|
+
s("div", {
|
|
27
28
|
class: "subtitle",
|
|
28
29
|
role: "heading",
|
|
29
30
|
"aria-level": e.titleLevel
|
|
30
|
-
}, c(
|
|
31
|
-
e.type === "search" ? (
|
|
31
|
+
}, c(n.value), 9, se),
|
|
32
|
+
e.type === "search" ? (o(), i("img", {
|
|
32
33
|
key: 0,
|
|
33
34
|
src: e.image,
|
|
34
35
|
alt: ""
|
|
35
|
-
}, null, 8,
|
|
36
|
-
e.type === "success" || e.type === "fail" ? (
|
|
37
|
-
e.type !== "search" ? (
|
|
36
|
+
}, null, 8, le)) : v("", !0),
|
|
37
|
+
e.type === "success" || e.type === "fail" ? (o(), i("p", de, c(e.title), 1)) : v("", !0),
|
|
38
|
+
e.type !== "search" ? (o(), i("img", {
|
|
38
39
|
key: 2,
|
|
39
40
|
src: e.image,
|
|
40
41
|
alt: ""
|
|
41
|
-
}, null, 8,
|
|
42
|
-
e.messageTitle ? (
|
|
42
|
+
}, null, 8, ce)) : v("", !0),
|
|
43
|
+
e.messageTitle ? (o(), i("div", {
|
|
43
44
|
key: 3,
|
|
44
|
-
class:
|
|
45
|
+
class: w(["answer-block", e.stateAnswer])
|
|
45
46
|
}, [
|
|
46
|
-
|
|
47
|
+
s("div", {
|
|
47
48
|
class: "answer-block__title",
|
|
48
49
|
role: "heading",
|
|
49
50
|
"aria-level": e.titleLevel + 1
|
|
50
|
-
}, c(e.messageTitle), 9,
|
|
51
|
-
|
|
52
|
-
], 2)) :
|
|
53
|
-
], 8,
|
|
51
|
+
}, c(e.messageTitle), 9, ue),
|
|
52
|
+
s("p", null, c(e.messageDescription), 1)
|
|
53
|
+
], 2)) : v("", !0)
|
|
54
|
+
], 8, re));
|
|
54
55
|
}
|
|
55
|
-
}),
|
|
56
|
+
}), ge = ".right-container[data-v-2a82aa38]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-2a82aa38]{visibility:hidden}img[data-v-2a82aa38]{margin-block:.5rem}.subtitle[data-v-2a82aa38]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-2a82aa38]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-2a82aa38]{width:200px;height:auto}.answer-block[data-v-2a82aa38]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-2a82aa38]{margin-bottom:0}.answer-block.success[data-v-2a82aa38]{background:#e8f3ef}.answer-block.fail[data-v-2a82aa38]{border-radius:16px;background:#fbecec}", pe = /* @__PURE__ */ _(fe, [["styles", [ge]], ["__scopeId", "data-v-2a82aa38"]]), me = ["aria-disabled"], ve = /* @__PURE__ */ y({
|
|
56
57
|
__name: "Option.ce",
|
|
57
58
|
props: /* @__PURE__ */ E({
|
|
58
59
|
option: { type: String },
|
|
@@ -63,49 +64,55 @@ const J = {}, K = {}, X = {}, Y = {
|
|
|
63
64
|
modelModifiers: {}
|
|
64
65
|
}),
|
|
65
66
|
emits: ["update:modelValue"],
|
|
66
|
-
setup(e, { expose:
|
|
67
|
-
const
|
|
68
|
-
function h(
|
|
67
|
+
setup(e, { expose: u }) {
|
|
68
|
+
const n = A(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
|
|
69
|
+
function h(p) {
|
|
69
70
|
if (t.value) {
|
|
70
|
-
|
|
71
|
+
p.preventDefault();
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
|
-
|
|
74
|
+
p.target.checked ? n.value.push(e.option) : n.value = n.value.filter((g) => g !== e.option);
|
|
74
75
|
}
|
|
75
|
-
return
|
|
76
|
-
isChecked:
|
|
77
|
-
}), (
|
|
78
|
-
class:
|
|
76
|
+
return u({
|
|
77
|
+
isChecked: l
|
|
78
|
+
}), (p, m) => (o(), i("label", {
|
|
79
|
+
class: w({ selected: l.value, disabled: t.value })
|
|
79
80
|
}, [
|
|
80
|
-
|
|
81
|
+
O(s("input", {
|
|
81
82
|
type: "checkbox",
|
|
82
83
|
name: "options",
|
|
83
84
|
onClick: h,
|
|
84
85
|
"aria-disabled": t.value,
|
|
85
|
-
"onUpdate:modelValue":
|
|
86
|
-
}, null, 8,
|
|
87
|
-
[
|
|
86
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => l.value = g)
|
|
87
|
+
}, null, 8, me), [
|
|
88
|
+
[G, l.value]
|
|
88
89
|
]),
|
|
89
90
|
V(c(e.option), 1)
|
|
90
91
|
], 2));
|
|
91
92
|
}
|
|
92
|
-
}),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
}), be = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", he = /* @__PURE__ */ _(ve, [["styles", [be]], ["__scopeId", "data-v-a067b43a"]]), ye = /* @__PURE__ */ y({
|
|
94
|
+
__name: "Button.ce",
|
|
95
|
+
props: {
|
|
96
|
+
label: { type: String },
|
|
97
|
+
state: { type: String }
|
|
98
|
+
},
|
|
99
|
+
setup(e) {
|
|
100
|
+
return (u, n) => (o(), i("button", {
|
|
101
|
+
class: w(["epreuve-button", e.state])
|
|
102
|
+
}, [
|
|
103
|
+
M(u.$slots, "icon"),
|
|
104
|
+
V(" " + c(e.label), 1)
|
|
105
|
+
], 2));
|
|
106
|
+
}
|
|
107
|
+
}), _e = ".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}", ke = /* @__PURE__ */ _(ye, [["styles", [_e]]]), xe = { class: "container" }, we = { class: "left-side" }, qe = ["aria-level"], Ie = { class: "left-side__description" }, Se = { class: "left-side__action" }, $e = {
|
|
101
108
|
key: 0,
|
|
102
109
|
id: "optionsSelectedInfo",
|
|
103
110
|
class: "left-side__lower-legend",
|
|
104
111
|
"aria-hidden": "true"
|
|
105
|
-
},
|
|
112
|
+
}, Ce = {
|
|
106
113
|
class: "right-side",
|
|
107
114
|
"aria-live": "polite"
|
|
108
|
-
},
|
|
115
|
+
}, Ve = /* @__PURE__ */ y({
|
|
109
116
|
__name: "QcmDeepfake.ce",
|
|
110
117
|
props: {
|
|
111
118
|
titleLevel: { default: 2, type: Number },
|
|
@@ -115,8 +122,8 @@ const J = {}, K = {}, X = {}, Y = {
|
|
|
115
122
|
searchImage: { type: String },
|
|
116
123
|
searchDelay: { default: 3e3, type: Number }
|
|
117
124
|
},
|
|
118
|
-
setup(e, { expose:
|
|
119
|
-
const
|
|
125
|
+
setup(e, { expose: u }) {
|
|
126
|
+
const n = x([]), l = [2, 4, 5], t = x("info"), h = P("optionsNode"), p = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩🎤", "🎧", "🎶", "👩", "🎙️"], g = p.map((d, r) => `${m[r]} ${d}`), z = g.filter((d, r) => l.includes(r + 1)), B = [
|
|
120
127
|
{
|
|
121
128
|
type: "info",
|
|
122
129
|
image: e.infoImage
|
|
@@ -139,85 +146,85 @@ const J = {}, K = {}, X = {}, Y = {
|
|
|
139
146
|
type: "search",
|
|
140
147
|
image: e.searchImage
|
|
141
148
|
}
|
|
142
|
-
],
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
-
return t.value === "info" ? B() : x();
|
|
149
|
+
], q = b(() => n.value.length !== 3 || t.value === "search"), D = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), L = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
|
|
150
|
+
function T() {
|
|
151
|
+
return q.value ? !1 : t.value === "info" ? R() : I();
|
|
146
152
|
}
|
|
147
|
-
function
|
|
153
|
+
function I() {
|
|
148
154
|
h.value.forEach((d) => {
|
|
149
155
|
d.isChecked = !1;
|
|
150
|
-
}),
|
|
156
|
+
}), n.value = [], t.value = "info";
|
|
151
157
|
}
|
|
152
|
-
async function
|
|
153
|
-
const d =
|
|
154
|
-
t.value = "search", await new Promise((
|
|
158
|
+
async function R() {
|
|
159
|
+
const d = n.value.every((r) => z.includes(r.trim()));
|
|
160
|
+
t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)), d ? t.value = "success" : t.value = "fail";
|
|
155
161
|
}
|
|
156
|
-
return
|
|
157
|
-
reset:
|
|
158
|
-
}), (d,
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
return u({
|
|
163
|
+
reset: I
|
|
164
|
+
}), (d, r) => (o(), i("div", xe, [
|
|
165
|
+
s("form", we, [
|
|
166
|
+
s("div", {
|
|
161
167
|
class: "left-side__subtitle",
|
|
162
168
|
role: "heading",
|
|
163
169
|
"aria-level": e.titleLevel
|
|
164
|
-
}, c(d.$t("qcm-deepfake.in")), 9,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
(
|
|
170
|
+
}, c(d.$t("qcm-deepfake.in")), 9, qe),
|
|
171
|
+
s("fieldset", null, [
|
|
172
|
+
s("legend", Ie, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
173
|
+
(o(!0), i($, null, C(F(g), (f, S) => (o(), Q(he, {
|
|
168
174
|
ref_for: !0,
|
|
169
175
|
ref_key: "optionsNode",
|
|
170
176
|
ref: h,
|
|
171
|
-
modelValue:
|
|
172
|
-
"onUpdate:modelValue":
|
|
173
|
-
key:
|
|
177
|
+
modelValue: n.value,
|
|
178
|
+
"onUpdate:modelValue": r[0] || (r[0] = (j) => n.value = j),
|
|
179
|
+
key: S,
|
|
174
180
|
class: "left-side__options",
|
|
175
|
-
option:
|
|
176
|
-
value:
|
|
181
|
+
option: f,
|
|
182
|
+
value: S + 1,
|
|
177
183
|
readonly: t.value !== "info"
|
|
178
184
|
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
179
185
|
]),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
onClick:
|
|
183
|
-
|
|
184
|
-
|
|
186
|
+
s("div", Se, [
|
|
187
|
+
k(ke, {
|
|
188
|
+
onClick: H(T, ["prevent"]),
|
|
189
|
+
"aria-disabled": q.value,
|
|
190
|
+
label: D.value,
|
|
191
|
+
state: t.value === "info" ? "primary" : "warning",
|
|
185
192
|
"aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
|
|
186
|
-
}, [
|
|
187
|
-
t.value === "success" || t.value === "fail" ?
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
],
|
|
195
|
-
["success", "search"].includes(t.value) ?
|
|
193
|
+
}, U({ _: 2 }, [
|
|
194
|
+
t.value === "success" || t.value === "fail" ? {
|
|
195
|
+
name: "icon",
|
|
196
|
+
fn: W(() => [
|
|
197
|
+
k(Y)
|
|
198
|
+
]),
|
|
199
|
+
key: "0"
|
|
200
|
+
} : void 0
|
|
201
|
+
]), 1032, ["aria-disabled", "label", "state", "aria-describedby"]),
|
|
202
|
+
["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", $e, c(L.value), 1))
|
|
196
203
|
])
|
|
197
204
|
]),
|
|
198
|
-
|
|
199
|
-
(
|
|
200
|
-
key:
|
|
205
|
+
s("div", Ce, [
|
|
206
|
+
(o(), i($, null, C(B, (f) => k(pe, {
|
|
207
|
+
key: f,
|
|
201
208
|
"title-level": e.titleLevel,
|
|
202
|
-
type:
|
|
203
|
-
image:
|
|
204
|
-
title:
|
|
205
|
-
"message-title":
|
|
206
|
-
"message-description":
|
|
209
|
+
type: f.type,
|
|
210
|
+
image: f.image,
|
|
211
|
+
title: f.title,
|
|
212
|
+
"message-title": f.messageTitle,
|
|
213
|
+
"message-description": f.messageDescription,
|
|
207
214
|
"state-answer": t.value
|
|
208
215
|
}, null, 8, ["title-level", "type", "image", "title", "message-title", "message-description", "state-answer"])), 64))
|
|
209
216
|
])
|
|
210
217
|
]));
|
|
211
218
|
}
|
|
212
|
-
}),
|
|
213
|
-
|
|
214
|
-
const
|
|
219
|
+
}), Ne = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", ze = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{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-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}", Be = /* @__PURE__ */ _(Ve, [["styles", [Ne, ze]], ["__scopeId", "data-v-66f8d52f"]]);
|
|
220
|
+
K(/* @__PURE__ */ Object.assign({ "./locales/en.json": ee, "./locales/es-419.json": te, "./locales/es.json": ae, "./locales/fr.json": ne, "./locales/it.json": oe, "./locales/nl.json": ie })).catch((e) => console.error(e));
|
|
221
|
+
const N = J(Be, {
|
|
215
222
|
configureApp(e) {
|
|
216
|
-
a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(
|
|
223
|
+
a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(X, { i18next: a });
|
|
217
224
|
}
|
|
218
225
|
});
|
|
219
|
-
|
|
226
|
+
N.prototype.normalizeProps = (e) => ({
|
|
220
227
|
...e,
|
|
221
228
|
titleLevel: Z(e.titleLevel)
|
|
222
229
|
});
|
|
223
|
-
window.customElements.define("qcm-deepfake",
|
|
230
|
+
window.customElements.define("qcm-deepfake", N);
|