@1024pix/epreuves-components 1.1.0 → 1.2.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.
@@ -1,6 +1,6 @@
1
- import { a as _, v, c as a, o as n, x as j, f as l, y as z, G as H, j as E, t as m, _ as h, r as y, C as R, g as f, K as $, z as V, H as x, q as u, F as S, b as k, e as A, d as D } from "../_plugin-vue_export-helper-BihDtAH2.js";
2
- import { a as I, i as N, b as P } from "../i18n-kZiLXTQh.js";
3
- import { B, N as T } from "../NavigationButton.ce-BPCs1QdC.js";
1
+ import { a as C, q as h, c as l, o, v as j, f as r, x as M, H as z, j as E, t as g, _ as b, r as w, C as H, B as u, g as m, L as $, y as I, I as _, F as S, b as k, e as A, d as D } from "../_plugin-vue_export-helper-CWFVtOvN.js";
2
+ import { a as V, i as N, b as P } from "../i18n-C63rdMbm.js";
3
+ import { B, N as T } from "../NavigationButton.ce-DWJMfoec.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 = {
@@ -11,10 +11,10 @@ const F = {
11
11
  "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
12
12
  }, q = {
13
13
  "pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
14
- }, K = ["aria-level"], W = ["innerHTML"], J = {
14
+ }, W = ["aria-level"], J = ["innerHTML"], K = {
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(t) {
26
- const i = v(() => {
27
- if (!t.description) return !1;
28
- const s = [...t.description.matchAll(/<(\w+)[^>]*>/gm)];
29
- if (!s.length) return !1;
30
- const e = new RegExp(`</${s[0][1]}>`, "gm");
31
- return t.description.match(e);
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 (s, e) => (n(), a("div", {
34
- class: j(["slide-info", { active: s.isActive }])
33
+ return (t, s) => (o(), l("div", {
34
+ class: j(["slide-info", { active: t.isActive }])
35
35
  }, [
36
- l("div", {
36
+ r("div", {
37
37
  role: "heading",
38
- "aria-level": s.titleLevel,
38
+ "aria-level": t.titleLevel,
39
39
  class: "title"
40
40
  }, [
41
- H(s.$slots, "pagination"),
42
- E(" " + m(s.title), 1)
43
- ], 8, K),
44
- i.value ? (n(), a("div", {
41
+ z(t.$slots, "pagination"),
42
+ E(" " + g(t.title), 1)
43
+ ], 8, W),
44
+ i.value ? (o(), l("div", {
45
45
  key: 0,
46
46
  class: "description",
47
- innerHTML: s.description
48
- }, null, 8, W)) : s.description ? (n(), a("p", J, m(s.description), 1)) : z("", !0)
47
+ innerHTML: t.description
48
+ }, null, 8, J)) : t.description ? (o(), l("p", K, 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}}", M = /* @__PURE__ */ h(Q, [["styles", [U]]]), X = ["aria-hidden", "aria-roledescription", "aria-label"], Y = ["alt", "src"], ee = {
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}}", R = /* @__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
- }, se = ["alt", "src", "height"], ne = ["innerHTML"], oe = ["innerHTML"], ae = /* @__PURE__ */ _({
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(t) {
70
- const i = y(t.isActive ? "on" : "off");
71
- R(() => t.isActive, (e) => {
72
- e ? (i.value = "initStart", window.setTimeout(() => {
73
- i.value === "initStart" && (i.value = "on");
74
- }, 20)) : (i.value = "initEnd", window.setTimeout(() => {
75
- i.value === "initEnd" && (i.value = "off");
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 s = v(() => t.direction === 1);
79
- return (e, c) => (n(), a("div", {
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, [i.value]: i.value, "is-next": s.value, "disable-animation": e.disableAnimation }]),
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" ? (n(), a("div", {
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
- l("img", {
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 ? (n(), a("p", ee, [
97
- E(m(e.slide.license.attribution) + " / ", 1),
98
- l("a", {
96
+ e.slide.license ? (o(), l("p", ee, [
97
+ E(g(e.slide.license.attribution) + " / ", 1),
98
+ r("a", {
99
99
  href: e.slide.license.url,
100
100
  target: "_blank"
101
- }, m(e.slide.license.name), 9, ie)
102
- ])) : z("", !0)
103
- ], 4)) : e.type === "image-text" ? (n(), a("div", te, [
104
- l("img", {
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, se),
109
- l("div", {
108
+ }, null, 8, ne),
109
+ r("div", {
110
110
  innerHTML: e.slide.text,
111
111
  class: "text-container"
112
- }, null, 8, ne)
113
- ])) : (n(), a("div", {
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
- f(M, {
118
+ m(R, {
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__ */ h(ae, [["styles", [le]]]), de = {}, ce = {
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(t, i) {
135
- return n(), a("svg", ce, [...i[0] || (i[0] = [
136
- l("path", {
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__ */ h(de, [["render", pe]]), fe = {}, me = {
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(t, i) {
150
- return n(), a("svg", me, [...i[0] || (i[0] = [
151
- l("path", {
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__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"], be = ["id"], xe = { class: "footer" }, ye = { class: "control" }, _e = { class: "slide-info-container" }, we = { class: "pagination" }, Ce = /* @__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(t) {
169
- const i = t, s = i.titleLevel ?? 2, e = v(() => i.randomSlides ? [...i.slides].sort(() => Math.round(Math.random()) === 0 ? -1 : 1) : i.slides), c = y(0), w = y(1), C = v(() => i.disableLoop && c.value === 0), L = v(() => i.disableLoop && c.value === i.slides.length - 1);
170
- function b(o) {
171
- w.value = o, c.value = (c.value - o + i.slides.length) % i.slides.length;
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 g = V();
174
- return (o, r) => (n(), a("section", {
175
- "aria-roledescription": o.$t("pix-carousel.title")
173
+ const v = I();
174
+ return (a, c) => (o(), l("section", {
175
+ "aria-roledescription": a.$t("pix-carousel.title")
176
176
  }, [
177
- l("div", {
177
+ r("div", {
178
178
  "aria-live": "polite",
179
179
  class: "slides",
180
- id: u(g)
180
+ id: u(v)
181
181
  }, [
182
- f(B, {
182
+ m(B, {
183
183
  class: "carousel__nav previous",
184
- disabled: C.value,
185
- "aria-controls": u(g),
186
- onClick: r[0] || (r[0] = (d) => b(1)),
187
- label: o.$t("pix-carousel.previous"),
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: x(() => [
191
- f(ue, { "aria-hidden": "true" })
190
+ default: _(() => [
191
+ m(ue, { "aria-hidden": "true" })
192
192
  ]),
193
193
  _: 1
194
194
  }, 8, ["disabled", "aria-controls", "label"]),
195
- (n(!0), a(S, null, k(e.value, (d, p) => (n(), A(re, {
196
- key: p,
197
- slide: d,
198
- direction: w.value,
199
- label: o.$t("pix-carousel.of", { currentSlide: p + 1, slideLength: e.value.length }),
200
- "is-active": c.value === p,
201
- "title-level": u(s),
202
- "aspect-ratio": o.aspectRatio,
203
- type: o.type,
204
- "disable-animation": o.disableAnimation
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
- f(B, {
206
+ m(B, {
207
207
  class: "carousel__nav next",
208
208
  disabled: L.value,
209
- "aria-controls": u(g),
210
- onClick: r[1] || (r[1] = (d) => b(-1)),
211
- label: o.$t("pix-carousel.next"),
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: x(() => [
215
- f(ve, { "aria-hidden": "true" })
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
- l("div", xe, [
221
- l("div", ye, [
222
- f(T, {
223
- onClick: r[2] || (r[2] = (d) => b(1)),
224
- label: o.$t("pix-carousel.previous"),
225
- "aria-controls": u(g),
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: C.value
227
+ disabled: y.value
228
228
  }, null, 8, ["label", "aria-controls", "disabled"]),
229
- f(T, {
230
- onClick: r[3] || (r[3] = (d) => b(-1)),
231
- label: o.$t("pix-carousel.next"),
232
- "aria-controls": u(g),
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
- l("div", _e, [
238
- (n(!0), a(S, null, k(e.value, (d, p) => (n(), A(M, {
239
- key: p,
240
- description: d.description,
241
- title: d.title,
242
- "title-level": u(s),
243
- "is-active": c.value === p,
237
+ r("div", _e, [
238
+ (o(!0), l(S, null, k(s.value, (p, f) => (o(), A(R, {
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: x(() => [
247
- l("span", we, m(p + 1) + " / " + m(e.value.length), 1)
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__ */ h(Ce, [["styles", [Le]]]);
256
- I(/* @__PURE__ */ Object.assign({ "./locales/en.json": F, "./locales/es.json": G, "./locales/fr.json": O, "./locales/it.json": Z, "./locales/nl.json": q })).catch((t) => console.error(t));
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
257
  window.customElements.define("pix-carousel", D($e, {
258
- configureApp(t) {
259
- N.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(P, { i18next: N });
258
+ configureApp(n) {
259
+ N.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(P, { i18next: N });
260
260
  }
261
261
  }));
@@ -1,7 +1,7 @@
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-BihDtAH2.js";
2
- import { a as G, i as w, b as J } from "../i18n-kZiLXTQh.js";
3
- import { N as j } from "../NavigationButton.ce-BPCs1QdC.js";
4
- const R = {}, U = {}, K = {
1
+ import { a as B, r as y, y as k, q as m, h as S, c as a, o as i, f as s, J as E, B as c, t as u, F as f, b, K as H, g, v as C, I as L, x as F, A as P, _ as D, d as q } from "../_plugin-vue_export-helper-CWFVtOvN.js";
2
+ import { a as G, i as w, b as J } from "../i18n-C63rdMbm.js";
3
+ import { N as j } from "../NavigationButton.ce-DWJMfoec.js";
4
+ const K = {}, R = {}, U = {
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 = {
7
7
  class: "visible-options",
@@ -12,17 +12,17 @@ const R = {}, U = {}, K = {
12
12
  }, le = {
13
13
  key: 0,
14
14
  class: "confirm"
15
- }, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ H({
15
+ }, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ B({
16
16
  __name: "PixCursor.ce",
17
17
  props: {
18
18
  options: { type: Array }
19
19
  },
20
20
  setup(d, { expose: M }) {
21
21
  const p = d, r = y(Math.floor(p.options.length / 2)), o = y(!1), v = k(), h = k(), I = m(() => r.value === p.options.length - 1), N = m(() => r.value === 0), l = m(() => Number(r.value));
22
- function z() {
22
+ function $() {
23
23
  o.value = !0;
24
24
  }
25
- function $() {
25
+ function z() {
26
26
  o.value || (r.value = Math.max(0, l.value - 1));
27
27
  }
28
28
  function O() {
@@ -40,7 +40,7 @@ const R = {}, U = {}, K = {
40
40
  const V = S("i18next");
41
41
  return i(), a("form", {
42
42
  class: "pix-cursor",
43
- onSubmit: P(z, ["prevent"])
43
+ onSubmit: P($, ["prevent"])
44
44
  }, [
45
45
  s("div", null, [
46
46
  s("label", {
@@ -49,19 +49,19 @@ const R = {}, U = {}, K = {
49
49
  }, u(t.$t("pix-cursor.selectAnOption")), 9, X),
50
50
  s("ul", Y, [
51
51
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("li", {
52
- onClick: (B) => _(e),
52
+ onClick: (A) => _(e),
53
53
  key: e
54
54
  }, u(n.label), 9, Z))), 128))
55
55
  ]),
56
56
  s("datalist", { id: c(h) }, [
57
57
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("option", {
58
- onClick: (B) => _(e),
58
+ onClick: (A) => _(e),
59
59
  key: e,
60
60
  value: e,
61
61
  label: n.label
62
62
  }, u(n.label), 9, oe))), 128))
63
63
  ], 8, ee),
64
- A(s("input", {
64
+ E(s("input", {
65
65
  "onUpdate:modelValue": x[0] || (x[0] = (n) => r.value = n),
66
66
  id: c(v),
67
67
  type: "range",
@@ -70,11 +70,11 @@ const R = {}, U = {}, K = {
70
70
  max: t.options.length - 1,
71
71
  disabled: o.value
72
72
  }, null, 8, te), [
73
- [E, r.value]
73
+ [H, r.value]
74
74
  ]),
75
75
  s("div", ne, [
76
76
  g(j, {
77
- onClick: $,
77
+ onClick: z,
78
78
  disabled: o.value || N.value,
79
79
  label: t.$t("pix-cursor.previous"),
80
80
  "aria-controls": c(v),
@@ -129,7 +129,7 @@ const R = {}, U = {}, K = {
129
129
  };
130
130
  }
131
131
  }), ue = "[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}", pe = /* @__PURE__ */ D(de, [["styles", [ue]], ["__scopeId", "data-v-58e704c5"]]);
132
- G(/* @__PURE__ */ Object.assign({ "./locales/en.json": R, "./locales/es.json": U, "./locales/fr.json": K, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
132
+ G(/* @__PURE__ */ Object.assign({ "./locales/en.json": K, "./locales/es.json": R, "./locales/fr.json": U, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
133
133
  window.customElements.define("pix-cursor", q(pe, {
134
134
  configureApp(d) {
135
135
  w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(J, { i18next: w });