@1024pix/epreuves-components 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{LLMMessage.ce-CcaSmq0J.js → LLMMessage.ce-DsVQstKz.js} +18 -18
- package/dist/{Loading.ce-kO02LfAR.js → Loading.ce-DoJ4rCWj.js} +1 -1
- package/dist/{NavigationButton.ce-BUeEdL4x.js → NavigationButton.ce-CtLZqKRv.js} +1 -1
- package/dist/Retry-CNZNkXbY.js +18 -0
- package/dist/{_plugin-vue_export-helper-BGEtPlxS.js → _plugin-vue_export-helper-DRMLIazq.js} +973 -963
- package/dist/components/calcul-impact.ce.js.js +2 -2
- package/dist/components/capacity-calculation.ce.js.js +113 -126
- package/dist/components/clickable-image.ce.js.js +9 -9
- package/dist/components/complete-phrase.ce.js.js +129 -66
- package/dist/components/flip-cards.ce.js.js +1 -1
- 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 +6 -6
- package/dist/components/message-conversation.ce.js.js +2 -2
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +140 -130
- package/dist/components/pix-cursor.ce.js.js +3 -3
- package/dist/components/qcm-deepfake.ce.js.js +108 -101
- package/dist/{i18n-D3E2CT0o.js → i18n-_lDmquwK.js} +12 -12
- package/dist/{image-quiz.ce-Qe3SbGDF.js → image-quiz.ce-By2A_llO.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/schema.js +5 -5
- package/dist/{shadow-dom-Bqt3ZRMI.js → shadow-dom-CAG14nqa.js} +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { a as
|
|
3
|
-
import { B, N as
|
|
4
|
-
import { u as
|
|
5
|
-
const
|
|
1
|
+
import { d as S, c as n, o as t, D as M, a as s, E as L, L as R, A as z, t as g, G as l, _ as h, r as $, K as V, k as w, y as m, x as k, J as P, M as _, F as A, b as N, e as T, f as F } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
|
+
import { a as G, i as B, b as O } from "../i18n-_lDmquwK.js";
|
|
3
|
+
import { B as j, N as D } from "../NavigationButton.ce-CtLZqKRv.js";
|
|
4
|
+
import { u as C, a as W } from "../normalize-props-AlmAfi_u.js";
|
|
5
|
+
const Z = {
|
|
6
6
|
"pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
|
|
7
|
-
},
|
|
7
|
+
}, J = {}, K = {
|
|
8
8
|
"pix-carousel": { license: "Licencia de imagen", next: "Siguiente", of: "{{ currentSlide }} de {{ slideLength }}", previous: "Anterior", slide: "Diapositiva", title: "Carrusel" }
|
|
9
|
-
}, K = {
|
|
10
|
-
"pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
|
|
11
9
|
}, Y = {
|
|
12
|
-
"pix-carousel": { license: "
|
|
10
|
+
"pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
|
|
13
11
|
}, q = {
|
|
12
|
+
"pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
|
|
13
|
+
}, Q = {
|
|
14
14
|
"pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
|
+
function E(e) {
|
|
17
|
+
if (!e) return !1;
|
|
18
|
+
const i = [...e.matchAll(/<(\w+)[^>]*>/gm)];
|
|
19
|
+
if (!i.length) return !1;
|
|
20
|
+
const r = new RegExp(`</?${i[0][1]}/?>`, "gm");
|
|
21
|
+
return e.match(r);
|
|
22
|
+
}
|
|
23
|
+
const U = ["aria-level"], X = ["innerHTML"], ee = {
|
|
16
24
|
key: 1,
|
|
17
25
|
class: "description"
|
|
18
|
-
},
|
|
26
|
+
}, ie = /* @__PURE__ */ S({
|
|
19
27
|
__name: "SlideInfo.ce",
|
|
20
28
|
props: {
|
|
21
29
|
description: { type: String },
|
|
@@ -24,41 +32,34 @@ const W = {
|
|
|
24
32
|
isActive: { type: Boolean }
|
|
25
33
|
},
|
|
26
34
|
setup(e) {
|
|
27
|
-
|
|
28
|
-
if (!e.description) return !1;
|
|
29
|
-
const a = [...e.description.matchAll(/<(\w+)[^>]*>/gm)];
|
|
30
|
-
if (!a.length) return !1;
|
|
31
|
-
const t = new RegExp(`</?${a[0][1]}/?>`, "gm");
|
|
32
|
-
return e.description.match(t);
|
|
33
|
-
});
|
|
34
|
-
return (a, t) => (n(), s("div", {
|
|
35
|
+
return (i, r) => (t(), n("div", {
|
|
35
36
|
class: M(["slide-info", { active: e.isActive }])
|
|
36
37
|
}, [
|
|
37
|
-
|
|
38
|
+
s("div", {
|
|
38
39
|
role: "heading",
|
|
39
40
|
"aria-level": e.titleLevel,
|
|
40
41
|
class: "title"
|
|
41
42
|
}, [
|
|
42
|
-
|
|
43
|
-
z(" " +
|
|
44
|
-
], 8,
|
|
45
|
-
|
|
43
|
+
R(i.$slots, "pagination"),
|
|
44
|
+
z(" " + g(e.title), 1)
|
|
45
|
+
], 8, U),
|
|
46
|
+
l(E)(e.description) ? (t(), n("div", {
|
|
46
47
|
key: 0,
|
|
47
48
|
class: "description",
|
|
48
49
|
innerHTML: e.description
|
|
49
|
-
}, null, 8,
|
|
50
|
+
}, null, 8, X)) : e.description ? (t(), n("p", ee, g(e.description), 1)) : L("", !0)
|
|
50
51
|
], 2));
|
|
51
52
|
}
|
|
52
|
-
}),
|
|
53
|
+
}), te = ".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{font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;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}}", H = /* @__PURE__ */ h(ie, [["styles", [te]]]), ne = ["aria-hidden", "aria-roledescription", "aria-label"], ae = {
|
|
53
54
|
key: 0,
|
|
54
55
|
class: "image-container"
|
|
55
|
-
},
|
|
56
|
+
}, le = ["alt", "src"], se = {
|
|
56
57
|
key: 0,
|
|
57
58
|
class: "license"
|
|
58
|
-
},
|
|
59
|
+
}, oe = ["href"], re = { class: "img-container" }, de = ["alt", "src"], ce = ["innerHTML"], ue = {
|
|
59
60
|
key: 1,
|
|
60
|
-
class: "text-
|
|
61
|
-
},
|
|
61
|
+
class: "text-container"
|
|
62
|
+
}, pe = ["innerHTML"], me = /* @__PURE__ */ S({
|
|
62
63
|
__name: "Slide.ce",
|
|
63
64
|
props: {
|
|
64
65
|
slide: { type: Object },
|
|
@@ -67,93 +68,100 @@ const W = {
|
|
|
67
68
|
label: { type: String },
|
|
68
69
|
direction: { type: Number },
|
|
69
70
|
type: { type: String },
|
|
70
|
-
disableAnimation: { type: Boolean }
|
|
71
|
+
disableAnimation: { type: Boolean },
|
|
72
|
+
imageTextDisplay: { default: "1:2", type: String }
|
|
71
73
|
},
|
|
72
74
|
setup(e) {
|
|
73
|
-
const i = window.matchMedia("(prefers-reduced-motion: reduce)"),
|
|
74
|
-
|
|
75
|
-
f ? (
|
|
76
|
-
|
|
77
|
-
}, 20)) : (
|
|
78
|
-
|
|
75
|
+
const i = window.matchMedia("(prefers-reduced-motion: reduce)"), r = e.disableAnimation ?? i.matches, a = $(e.isActive ? "on" : "off"), [d, y] = e.imageTextDisplay.split(":").map(Number);
|
|
76
|
+
V(() => e.isActive, (f) => {
|
|
77
|
+
f ? (a.value = r ? "on" : "initStart", window.setTimeout(() => {
|
|
78
|
+
a.value === "initStart" && (a.value = "on");
|
|
79
|
+
}, 20)) : (a.value = r ? "off" : "initEnd", window.setTimeout(() => {
|
|
80
|
+
a.value === "initEnd" && (a.value = "off");
|
|
79
81
|
}, 800));
|
|
80
82
|
});
|
|
81
|
-
const
|
|
82
|
-
return (f,
|
|
83
|
+
const b = w(() => e.direction === 1);
|
|
84
|
+
return (f, v) => (t(), n("div", {
|
|
83
85
|
role: "group",
|
|
84
|
-
class: M(["slide", { active: e.isActive, [
|
|
86
|
+
class: M(["slide", { active: e.isActive, [a.value]: a.value, "is-next": b.value, "disable-animation": l(r) }]),
|
|
85
87
|
"aria-hidden": !e.isActive,
|
|
86
88
|
"aria-roledescription": f.$t("pix-carousel.slide"),
|
|
87
89
|
"aria-label": e.label
|
|
88
90
|
}, [
|
|
89
|
-
e.type === "image" ? (
|
|
90
|
-
|
|
91
|
-
style:
|
|
91
|
+
e.type === "image" ? (t(), n("div", ae, [
|
|
92
|
+
s("img", {
|
|
93
|
+
style: k(`max-width: ${e.slide.displayWidth}px`),
|
|
92
94
|
alt: e.slide.image.alt,
|
|
93
95
|
src: e.slide.image.src
|
|
94
|
-
}, null, 12,
|
|
95
|
-
e.slide.license ? (
|
|
96
|
-
z(
|
|
97
|
-
|
|
96
|
+
}, null, 12, le),
|
|
97
|
+
e.slide.license ? (t(), n("p", se, [
|
|
98
|
+
z(g(e.slide.license.attribution) + " / ", 1),
|
|
99
|
+
s("a", {
|
|
98
100
|
href: e.slide.license.url,
|
|
99
101
|
target: "_blank"
|
|
100
|
-
},
|
|
101
|
-
])) :
|
|
102
|
-
])) : e.type === "image-text" ? (
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
}, g(e.slide.license.name), 9, oe)
|
|
103
|
+
])) : L("", !0)
|
|
104
|
+
])) : e.type === "image-text" ? (t(), n("div", {
|
|
105
|
+
key: 1,
|
|
106
|
+
class: "text-image-container",
|
|
107
|
+
style: k({ "--image-display": l(d), "--text-display": l(y) })
|
|
108
|
+
}, [
|
|
109
|
+
s("div", re, [
|
|
110
|
+
s("img", {
|
|
111
|
+
alt: e.slide.image.alt,
|
|
112
|
+
src: e.slide.image.src
|
|
113
|
+
}, null, 8, de)
|
|
114
|
+
]),
|
|
115
|
+
l(E)(e.slide.text) ? (t(), n("div", {
|
|
116
|
+
key: 0,
|
|
117
|
+
class: "text-container",
|
|
118
|
+
innerHTML: e.slide.text
|
|
119
|
+
}, null, 8, ce)) : e.slide.text ? (t(), n("p", ue, g(e.slide.text), 1)) : L("", !0)
|
|
120
|
+
], 4)) : (t(), n("div", {
|
|
113
121
|
key: 2,
|
|
114
122
|
innerHTML: e.slide.text,
|
|
115
123
|
class: "text-container"
|
|
116
|
-
}, null, 8,
|
|
117
|
-
m(
|
|
124
|
+
}, null, 8, pe)),
|
|
125
|
+
m(H, {
|
|
118
126
|
description: e.slide.description,
|
|
119
127
|
title: e.slide.title,
|
|
120
128
|
"is-active": e.isActive,
|
|
121
129
|
"title-level": e.titleLevel,
|
|
122
130
|
class: "sr-only"
|
|
123
131
|
}, null, 8, ["description", "title", "is-active", "title-level"])
|
|
124
|
-
], 10,
|
|
132
|
+
], 10, ne));
|
|
125
133
|
}
|
|
126
|
-
}),
|
|
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 = {
|
|
127
135
|
width: "25",
|
|
128
136
|
height: "24",
|
|
129
137
|
viewBox: "0 0 25 24",
|
|
130
138
|
fill: "inherit",
|
|
131
139
|
xmlns: "http://www.w3.org/2000/svg"
|
|
132
140
|
};
|
|
133
|
-
function
|
|
134
|
-
return
|
|
135
|
-
|
|
141
|
+
function he(e, i) {
|
|
142
|
+
return t(), n("svg", xe, [...i[0] || (i[0] = [
|
|
143
|
+
s("path", {
|
|
136
144
|
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",
|
|
137
145
|
fill: "inherit"
|
|
138
146
|
}, null, -1)
|
|
139
147
|
])]);
|
|
140
148
|
}
|
|
141
|
-
const
|
|
149
|
+
const ye = /* @__PURE__ */ h(ve, [["render", he]]), be = {}, we = {
|
|
142
150
|
width: "25",
|
|
143
151
|
height: "24",
|
|
144
152
|
viewBox: "0 0 25 24",
|
|
145
153
|
fill: "inherit",
|
|
146
154
|
xmlns: "http://www.w3.org/2000/svg"
|
|
147
155
|
};
|
|
148
|
-
function
|
|
149
|
-
return
|
|
150
|
-
|
|
156
|
+
function _e(e, i) {
|
|
157
|
+
return t(), n("svg", we, [...i[0] || (i[0] = [
|
|
158
|
+
s("path", {
|
|
151
159
|
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",
|
|
152
160
|
fill: "inherit"
|
|
153
161
|
}, null, -1)
|
|
154
162
|
])]);
|
|
155
163
|
}
|
|
156
|
-
const
|
|
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" }, Te = /* @__PURE__ */ S({
|
|
157
165
|
__name: "Carousel.ce",
|
|
158
166
|
props: {
|
|
159
167
|
randomSlides: { type: Boolean },
|
|
@@ -161,109 +169,111 @@ const we = /* @__PURE__ */ h(he, [["render", ye]]), _e = ["aria-roledescription"
|
|
|
161
169
|
slides: { type: Array },
|
|
162
170
|
titleLevel: { type: Number },
|
|
163
171
|
disableAnimation: { type: Boolean },
|
|
164
|
-
disableLoop: { type: Boolean }
|
|
172
|
+
disableLoop: { type: Boolean },
|
|
173
|
+
imageTextDisplay: { type: String }
|
|
165
174
|
},
|
|
166
175
|
setup(e) {
|
|
167
|
-
const i = e,
|
|
168
|
-
function
|
|
169
|
-
|
|
176
|
+
const i = e, r = i.titleLevel ?? 2, a = w(() => i.randomSlides ? [...i.slides].sort(() => Math.round(Math.random()) === 0 ? -1 : 1) : i.slides), d = $(0), y = $(1), b = w(() => i.disableLoop && d.value === 0), f = w(() => i.disableLoop && d.value === i.slides.length - 1);
|
|
177
|
+
function v(o) {
|
|
178
|
+
y.value = o, d.value = (d.value - o + i.slides.length) % i.slides.length;
|
|
170
179
|
}
|
|
171
|
-
const
|
|
172
|
-
return (o,
|
|
180
|
+
const x = P();
|
|
181
|
+
return (o, c) => (t(), n("section", {
|
|
173
182
|
"aria-roledescription": o.$t("pix-carousel.title")
|
|
174
183
|
}, [
|
|
175
|
-
|
|
184
|
+
s("div", {
|
|
176
185
|
"aria-live": "polite",
|
|
177
186
|
class: "slides",
|
|
178
|
-
id:
|
|
187
|
+
id: l(x)
|
|
179
188
|
}, [
|
|
180
|
-
m(
|
|
189
|
+
m(j, {
|
|
181
190
|
class: "carousel__nav previous",
|
|
182
|
-
disabled:
|
|
183
|
-
"aria-controls":
|
|
184
|
-
onClick:
|
|
191
|
+
disabled: b.value,
|
|
192
|
+
"aria-controls": l(x),
|
|
193
|
+
onClick: c[0] || (c[0] = (u) => v(1)),
|
|
185
194
|
label: o.$t("pix-carousel.previous"),
|
|
186
195
|
"tooltip-position": "right"
|
|
187
196
|
}, {
|
|
188
|
-
default:
|
|
189
|
-
m(
|
|
197
|
+
default: _(() => [
|
|
198
|
+
m(ye, { "aria-hidden": "true" })
|
|
190
199
|
]),
|
|
191
200
|
_: 1
|
|
192
201
|
}, 8, ["disabled", "aria-controls", "label"]),
|
|
193
|
-
(
|
|
202
|
+
(t(!0), n(A, null, N(a.value, (u, p) => (t(), T(fe, {
|
|
194
203
|
key: p,
|
|
195
|
-
slide:
|
|
196
|
-
direction:
|
|
197
|
-
label: o.$t("pix-carousel.of", { currentSlide: p + 1, slideLength:
|
|
198
|
-
"is-active":
|
|
199
|
-
"title-level":
|
|
204
|
+
slide: u,
|
|
205
|
+
direction: y.value,
|
|
206
|
+
label: o.$t("pix-carousel.of", { currentSlide: p + 1, slideLength: a.value.length }),
|
|
207
|
+
"is-active": d.value === p,
|
|
208
|
+
"title-level": l(r),
|
|
200
209
|
type: e.type,
|
|
201
|
-
"disable-animation": e.disableAnimation
|
|
202
|
-
|
|
203
|
-
|
|
210
|
+
"disable-animation": e.disableAnimation,
|
|
211
|
+
"image-text-display": e.imageTextDisplay
|
|
212
|
+
}, null, 8, ["slide", "direction", "label", "is-active", "title-level", "type", "disable-animation", "image-text-display"]))), 128)),
|
|
213
|
+
m(j, {
|
|
204
214
|
class: "carousel__nav next",
|
|
205
|
-
disabled:
|
|
206
|
-
"aria-controls":
|
|
207
|
-
onClick:
|
|
215
|
+
disabled: f.value,
|
|
216
|
+
"aria-controls": l(x),
|
|
217
|
+
onClick: c[1] || (c[1] = (u) => v(-1)),
|
|
208
218
|
label: o.$t("pix-carousel.next"),
|
|
209
219
|
"tooltip-position": "left"
|
|
210
220
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
m(
|
|
221
|
+
default: _(() => [
|
|
222
|
+
m(Ce, { "aria-hidden": "true" })
|
|
213
223
|
]),
|
|
214
224
|
_: 1
|
|
215
225
|
}, 8, ["disabled", "aria-controls", "label"])
|
|
216
|
-
], 8,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
m(
|
|
220
|
-
onClick:
|
|
226
|
+
], 8, $e),
|
|
227
|
+
s("div", Se, [
|
|
228
|
+
s("div", ke, [
|
|
229
|
+
m(D, {
|
|
230
|
+
onClick: c[2] || (c[2] = (u) => v(1)),
|
|
221
231
|
label: o.$t("pix-carousel.previous"),
|
|
222
|
-
"aria-controls":
|
|
232
|
+
"aria-controls": l(x),
|
|
223
233
|
direction: "previous",
|
|
224
|
-
disabled:
|
|
234
|
+
disabled: b.value
|
|
225
235
|
}, null, 8, ["label", "aria-controls", "disabled"]),
|
|
226
|
-
m(
|
|
227
|
-
onClick:
|
|
236
|
+
m(D, {
|
|
237
|
+
onClick: c[3] || (c[3] = (u) => v(-1)),
|
|
228
238
|
label: o.$t("pix-carousel.next"),
|
|
229
|
-
"aria-controls":
|
|
239
|
+
"aria-controls": l(x),
|
|
230
240
|
direction: "next",
|
|
231
|
-
disabled:
|
|
241
|
+
disabled: f.value
|
|
232
242
|
}, null, 8, ["label", "aria-controls", "disabled"])
|
|
233
243
|
]),
|
|
234
|
-
|
|
235
|
-
(
|
|
244
|
+
s("div", Ae, [
|
|
245
|
+
(t(!0), n(A, null, N(a.value, (u, p) => (t(), T(H, {
|
|
236
246
|
key: p,
|
|
237
|
-
description:
|
|
238
|
-
title:
|
|
239
|
-
"title-level":
|
|
240
|
-
"is-active":
|
|
247
|
+
description: u.description,
|
|
248
|
+
title: u.title,
|
|
249
|
+
"title-level": l(r),
|
|
250
|
+
"is-active": d.value === p,
|
|
241
251
|
"aria-hidden": "true"
|
|
242
252
|
}, {
|
|
243
|
-
pagination:
|
|
244
|
-
|
|
253
|
+
pagination: _(() => [
|
|
254
|
+
s("span", Ne, g(p + 1) + " / " + g(a.value.length), 1)
|
|
245
255
|
]),
|
|
246
256
|
_: 2
|
|
247
257
|
}, 1032, ["description", "title", "title-level", "is-active"]))), 128))
|
|
248
258
|
])
|
|
249
259
|
])
|
|
250
|
-
], 8,
|
|
260
|
+
], 8, Le));
|
|
251
261
|
}
|
|
252
|
-
}),
|
|
253
|
-
|
|
254
|
-
const
|
|
262
|
+
}), Be = "*{--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(Te, [["styles", [Be]]]);
|
|
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));
|
|
264
|
+
const I = F(je, {
|
|
255
265
|
configureApp(e) {
|
|
256
|
-
|
|
266
|
+
B.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(O, { i18next: B });
|
|
257
267
|
}
|
|
258
268
|
});
|
|
259
|
-
|
|
269
|
+
I.prototype.normalizeProps = (e) => ({
|
|
260
270
|
...e,
|
|
261
|
-
titleLevel:
|
|
271
|
+
titleLevel: C(e.titleLevel),
|
|
262
272
|
slides: e.slides.map((i) => ({
|
|
263
273
|
...i,
|
|
264
|
-
displayHeight:
|
|
265
|
-
displayWidth:
|
|
266
|
-
license:
|
|
274
|
+
displayHeight: C(i.displayHeight),
|
|
275
|
+
displayWidth: C(i.displayWidth),
|
|
276
|
+
license: W(i.license)
|
|
267
277
|
}))
|
|
268
278
|
});
|
|
269
|
-
window.customElements.define("pix-carousel",
|
|
279
|
+
window.customElements.define("pix-carousel", I);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as S, r as k, J as y, k as m, z as A, c as a, o as i,
|
|
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 S, r as k, J as y, k as m, z as A, c as a, o as i, a as s, l as B, G as d, t as u, F as f, b, N as H, y as g, D as C, M as L, E as D, q as F, _ as P, f as G } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
|
+
import { a as q, i as w, b as J } from "../i18n-_lDmquwK.js";
|
|
3
|
+
import { N as j } from "../NavigationButton.ce-CtLZqKRv.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 = {
|