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