@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.
Files changed (30) hide show
  1. package/dist/LLMMessage.ce-CcaSmq0J.js +96 -0
  2. package/dist/Loading.ce-kO02LfAR.js +14 -0
  3. package/dist/NavigationButton.ce-BUeEdL4x.js +98 -0
  4. package/dist/{_plugin-vue_export-helper-CwwQJ1m6.js → _plugin-vue_export-helper-BGEtPlxS.js} +1373 -1355
  5. package/dist/components/calcul-impact.ce.js.js +91 -85
  6. package/dist/components/capacity-calculation.ce.js.js +117 -111
  7. package/dist/components/clickable-image.ce.js.js +83 -59
  8. package/dist/components/complete-phrase.ce.js.js +57 -51
  9. package/dist/components/flip-cards.ce.js.js +43 -46
  10. package/dist/components/image-quiz.ce.js.js +6 -4
  11. package/dist/components/image-quizzes.ce.js.js +18 -14
  12. package/dist/components/llm-compare-messages.ce.js.js +17 -17
  13. package/dist/components/llm-messages.ce.js.js +17 -17
  14. package/dist/components/llm-prompt-select.ce.js.js +37 -32
  15. package/dist/components/message-conversation.ce.js.js +61 -52
  16. package/dist/components/pix-article.ce.js.js +26 -20
  17. package/dist/components/pix-carousel.ce.js.js +142 -134
  18. package/dist/components/pix-cursor.ce.js.js +62 -62
  19. package/dist/components/qcm-deepfake.ce.js.js +97 -91
  20. package/dist/{i18n-gncqQJ0G.js → i18n-D3E2CT0o.js} +44 -40
  21. package/dist/image-quiz.ce-Qe3SbGDF.js +141 -0
  22. package/dist/index.js +1 -1
  23. package/dist/normalize-props-AlmAfi_u.js +13 -0
  24. package/dist/schema.js +8 -9
  25. package/dist/{shadow-dom-MxYtPVXS.js → shadow-dom-Bqt3ZRMI.js} +1 -1
  26. package/package.json +1 -1
  27. package/dist/ImageQuiz.ce-BLOWdEiw.js +0 -123
  28. package/dist/LLMMessage.ce-DnZ8kE2i.js +0 -89
  29. package/dist/Loading.ce-FI776zdC.js +0 -14
  30. package/dist/NavigationButton.ce-gp04deGY.js +0 -98
@@ -1,20 +1,21 @@
1
- import { a as C, k as h, c as l, o, D as T, f as r, E, L as z, A as j, t as g, _ as b, r as w, J as H, I as u, y as m, x as $, G as D, M as _, F as S, b as k, e as A, d as I } from "../_plugin-vue_export-helper-CwwQJ1m6.js";
2
- import { a as V, i as N, b as P } from "../i18n-gncqQJ0G.js";
3
- import { B, N as M } from "../NavigationButton.ce-gp04deGY.js";
4
- const F = {
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
- }, G = {
7
+ }, Z = {}, J = {
7
8
  "pix-carousel": { license: "Licencia de imagen", next: "Siguiente", of: "{{ currentSlide }} de {{ slideLength }}", previous: "Anterior", slide: "Diapositiva", title: "Carrusel" }
8
- }, O = {
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
- }, Z = {
11
+ }, Y = {
11
12
  "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
12
- }, J = {
13
+ }, q = {
13
14
  "pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
14
- }, W = ["aria-level"], q = ["innerHTML"], K = {
15
+ }, Q = ["aria-level"], U = ["innerHTML"], X = {
15
16
  key: 1,
16
17
  class: "description"
17
- }, Q = /* @__PURE__ */ C({
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(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);
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 (t, s) => (o(), l("div", {
34
- class: T(["slide-info", { active: t.isActive }])
34
+ return (a, t) => (n(), s("div", {
35
+ class: M(["slide-info", { active: e.isActive }])
35
36
  }, [
36
- r("div", {
37
+ l("div", {
37
38
  role: "heading",
38
- "aria-level": t.titleLevel,
39
+ "aria-level": e.titleLevel,
39
40
  class: "title"
40
41
  }, [
41
- z(t.$slots, "pagination"),
42
- j(" " + g(t.title), 1)
43
- ], 8, W),
44
- i.value ? (o(), l("div", {
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: t.description
48
- }, null, 8, q)) : t.description ? (o(), l("p", K, g(t.description), 1)) : E("", !0)
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
- }), 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
+ }), 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
- }, ie = ["href"], te = {
58
+ }, ae = ["href"], oe = {
55
59
  key: 1,
56
60
  class: "text-image-container"
57
- }, ne = ["alt", "src", "height"], se = ["innerHTML"], oe = ["innerHTML"], ae = /* @__PURE__ */ C({
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(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");
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 d = h(() => n.direction === 1);
79
- return (e, y) => (o(), l("div", {
81
+ const r = x(() => e.direction === 1);
82
+ return (f, y) => (n(), s("div", {
80
83
  role: "group",
81
- class: T(["slide", { active: e.isActive, [s.value]: s.value, "is-next": d.value, "disable-animation": u(t) }]),
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": e.$t("pix-carousel.slide"),
86
+ "aria-roledescription": f.$t("pix-carousel.slide"),
84
87
  "aria-label": e.label
85
88
  }, [
86
- e.type === "image" ? (o(), l("div", {
87
- key: 0,
88
- class: "image-container",
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, Y),
96
- e.slide.license ? (o(), l("p", ee, [
97
- j(g(e.slide.license.attribution) + " / ", 1),
98
- r("a", {
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
- }, g(e.slide.license.name), 9, ie)
102
- ])) : E("", !0)
103
- ], 4)) : e.type === "image-text" ? (o(), l("div", te, [
104
- r("img", {
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, ne),
109
- r("div", {
107
+ }, null, 8, re),
108
+ l("div", {
110
109
  innerHTML: e.slide.text,
111
110
  class: "text-container"
112
- }, null, 8, se)
113
- ])) : (o(), l("div", {
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, oe)),
118
- m(R, {
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, X));
124
+ ], 10, te));
126
125
  }
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 = {
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 pe(n, i) {
135
- return o(), l("svg", ce, [...i[0] || (i[0] = [
136
- r("path", {
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 ue = /* @__PURE__ */ b(de, [["render", pe]]), fe = {}, me = {
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 ge(n, i) {
150
- return o(), l("svg", me, [...i[0] || (i[0] = [
151
- r("path", {
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 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({
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(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;
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 v = D();
174
- return (a, c) => (o(), l("section", {
175
- "aria-roledescription": a.$t("pix-carousel.title")
171
+ const g = V();
172
+ return (o, d) => (n(), s("section", {
173
+ "aria-roledescription": o.$t("pix-carousel.title")
176
174
  }, [
177
- r("div", {
175
+ l("div", {
178
176
  "aria-live": "polite",
179
177
  class: "slides",
180
- id: u(v)
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(v),
186
- onClick: c[0] || (c[0] = (p) => x(1)),
187
- label: a.$t("pix-carousel.previous"),
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(ue, { "aria-hidden": "true" })
188
+ default: w(() => [
189
+ m(xe, { "aria-hidden": "true" })
192
190
  ]),
193
191
  _: 1
194
192
  }, 8, ["disabled", "aria-controls", "label"]),
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
- }, 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: L.value,
209
- "aria-controls": u(v),
210
- onClick: c[1] || (c[1] = (p) => x(-1)),
211
- label: a.$t("pix-carousel.next"),
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(ve, { "aria-hidden": "true" })
211
+ default: w(() => [
212
+ m(we, { "aria-hidden": "true" })
216
213
  ]),
217
214
  _: 1
218
215
  }, 8, ["disabled", "aria-controls", "label"])
219
- ], 8, be),
220
- r("div", xe, [
221
- r("div", ye, [
222
- m(M, {
223
- onClick: c[2] || (c[2] = (p) => x(1)),
224
- label: a.$t("pix-carousel.previous"),
225
- "aria-controls": u(v),
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(M, {
230
- onClick: c[3] || (c[3] = (p) => x(-1)),
231
- label: a.$t("pix-carousel.next"),
232
- "aria-controls": u(v),
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: L.value
231
+ disabled: $.value
235
232
  }, null, 8, ["label", "aria-controls", "disabled"])
236
233
  ]),
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,
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
- r("span", we, g(f + 1) + " / " + g(s.value.length), 1)
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, he));
250
+ ], 8, _e));
254
251
  }
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": J })).catch((n) => console.error(n));
257
- window.customElements.define("pix-carousel", I($e, {
258
- configureApp(n) {
259
- N.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(P, { i18next: N });
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);