@1024pix/epreuves-components 2.4.2 → 2.4.4

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 (36) hide show
  1. package/dist/{ButtonTooltip.ce-CjtFa5aM.js → ButtonTooltip.ce-CZed5BUq.js} +1 -1
  2. package/dist/{LLMMessage.ce-Cjpb0CiE.js → LLMMessage.ce-FJCO_wvC.js} +2 -2
  3. package/dist/{Loading.ce-1tk4uU9c.js → Loading.ce-EWTMcywS.js} +1 -1
  4. package/dist/{NavigationButton.ce-CxI2QW8z.js → NavigationButton.ce-CMbVRJbG.js} +2 -2
  5. package/dist/{Retry-CY90VQJl.js → Retry-B27znRn6.js} +1 -1
  6. package/dist/{_plugin-vue_export-helper-DOoVeFcJ.js → _plugin-vue_export-helper-CJxDisp0.js} +1698 -1681
  7. package/dist/components/calcul-impact.ce.js.js +3 -3
  8. package/dist/components/capacity-calculation.ce.js.js +4 -4
  9. package/dist/components/clickable-image.ce.js.js +2 -2
  10. package/dist/components/complete-phrase.ce.js.js +4 -4
  11. package/dist/components/flip-cards.ce.js.js +2 -2
  12. package/dist/components/image-quiz.ce.js.js +3 -3
  13. package/dist/components/image-quizzes.ce.js.js +2 -2
  14. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  15. package/dist/components/llm-messages.ce.js.js +3 -3
  16. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  17. package/dist/components/message-conversation.ce.js.js +61 -60
  18. package/dist/components/mobile-shell.ce.js.js +1 -1
  19. package/dist/components/phishing-message.ce.js.js +60 -60
  20. package/dist/components/phishing-notification.ce.js.js +104 -104
  21. package/dist/components/pix-article.ce.js.js +25 -23
  22. package/dist/components/pix-carousel.ce.js.js +232 -131
  23. package/dist/components/pix-cursor.ce.js.js +3 -3
  24. package/dist/components/qcm-deepfake.ce.js.js +4 -4
  25. package/dist/components/select-conversation.ce.js.js +43 -43
  26. package/dist/{i18n-ecSMtuba.js → i18n-Bs7vpvgi.js} +84 -100
  27. package/dist/{image-quiz.ce-CpI6lZ9m.js → image-quiz.ce-jh8ME9Wm.js} +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/{normalize-props-AlmAfi_u.js → normalize-props-BAFlcMqH.js} +6 -2
  30. package/dist/schema.js +78 -51
  31. package/dist/shadow-dom-Bs_4iILW.js +9 -0
  32. package/dist/temporal.utils-DBcWSjWy.js +16840 -0
  33. package/package.json +1 -1
  34. package/dist/index-4XnHmtKv.js +0 -11905
  35. package/dist/shadow-dom-DZbyKUWP.js +0 -9
  36. package/dist/temporal.utils-B23shw3k.js +0 -4958
@@ -1,30 +1,123 @@
1
- import { d as S, c as n, o as t, n as M, a as s, B as L, j as R, H as z, t as g, h as l, _ as h, r as $, N as V, y as w, E as m, A as k, g as P, K as _, F as A, b as N, e as B, f as F } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
- import { a as O, i as T, b as W } from "../i18n-ecSMtuba.js";
3
- import { N as j } from "../NavigationButton.ce-CxI2QW8z.js";
4
- import { B as D } from "../ButtonTooltip.ce-CjtFa5aM.js";
5
- import { u as C, a as G } from "../normalize-props-AlmAfi_u.js";
6
- const Z = {
1
+ import { v as W, k as q, U as K, V as X, W as O, y as h, s as A, N, X as V, d as M, c as l, o, n as _, a as g, B, j as Y, H as P, t as b, h as f, _ as S, r as T, q as J, E as y, A as R, g as Q, K as $, F as z, b as j, e as D, f as ee } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { a as ie, i as E, b as te } from "../i18n-Bs7vpvgi.js";
3
+ import { N as H } from "../NavigationButton.ce-CMbVRJbG.js";
4
+ import { B as I } from "../ButtonTooltip.ce-CZed5BUq.js";
5
+ import { u as k, a as ne } from "../normalize-props-BAFlcMqH.js";
6
+ const ae = {
7
7
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
8
- }, K = {}, Y = {
8
+ }, se = {}, oe = {
9
9
  "pix-carousel": { license: "Licencia de imagen", next: "Siguiente", of: "{{ currentSlide }} de {{ slideLength }}", previous: "Anterior", slide: "Diapositiva", title: "Carrusel" }
10
- }, q = {
10
+ }, le = {
11
11
  "pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
12
- }, J = {
12
+ }, re = {
13
13
  "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
14
- }, Q = {
14
+ }, de = {
15
15
  "pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
16
16
  };
17
- function E(e) {
17
+ function ce(e, i) {
18
+ return K() ? (X(e, i), !0) : !1;
19
+ }
20
+ const ue = typeof window < "u" && typeof document < "u";
21
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
22
+ function pe(e) {
23
+ return Array.isArray(e) ? e : [e];
24
+ }
25
+ function me(e) {
26
+ return O();
27
+ }
28
+ function fe(e, i = !0, a) {
29
+ me() ? W(e, a) : i ? e() : q(e);
30
+ }
31
+ const G = ue ? window : void 0;
32
+ function C(e) {
33
+ var i;
34
+ const a = V(e);
35
+ return (i = a?.$el) !== null && i !== void 0 ? i : a;
36
+ }
37
+ // @__NO_SIDE_EFFECTS__
38
+ function ge() {
39
+ const e = A(!1), i = O();
40
+ return i && W(() => {
41
+ e.value = !0;
42
+ }, i), e;
43
+ }
44
+ // @__NO_SIDE_EFFECTS__
45
+ function ve(e) {
46
+ const i = /* @__PURE__ */ ge();
47
+ return h(() => (i.value, !!e()));
48
+ }
49
+ function xe(e, i, a = {}) {
50
+ const { window: s = G, ...c } = a;
51
+ let p;
52
+ const r = /* @__PURE__ */ ve(() => s && "ResizeObserver" in s), d = () => {
53
+ p && (p.disconnect(), p = void 0);
54
+ }, x = N(h(() => {
55
+ const n = V(e);
56
+ return Array.isArray(n) ? n.map((t) => C(t)) : [C(n)];
57
+ }), (n) => {
58
+ if (d(), r.value && s) {
59
+ p = new ResizeObserver(i);
60
+ for (const t of n) t && p.observe(t, c);
61
+ }
62
+ }, {
63
+ immediate: !0,
64
+ flush: "post"
65
+ }), m = () => {
66
+ d(), x();
67
+ };
68
+ return ce(m), {
69
+ isSupported: r,
70
+ stop: m
71
+ };
72
+ }
73
+ function he(e, i = {
74
+ width: 0,
75
+ height: 0
76
+ }, a = {}) {
77
+ const { window: s = G, box: c = "content-box" } = a, p = h(() => {
78
+ var t;
79
+ return (t = C(e)) === null || t === void 0 || (t = t.namespaceURI) === null || t === void 0 ? void 0 : t.includes("svg");
80
+ }), r = A(i.width), d = A(i.height), { stop: x } = xe(e, ([t]) => {
81
+ const v = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
82
+ if (s && p.value) {
83
+ const u = C(e);
84
+ if (u) {
85
+ const w = u.getBoundingClientRect();
86
+ r.value = w.width, d.value = w.height;
87
+ }
88
+ } else if (v) {
89
+ const u = pe(v);
90
+ r.value = u.reduce((w, { inlineSize: L }) => w + L, 0), d.value = u.reduce((w, { blockSize: L }) => w + L, 0);
91
+ } else
92
+ r.value = t.contentRect.width, d.value = t.contentRect.height;
93
+ }, a);
94
+ fe(() => {
95
+ const t = C(e);
96
+ t && (r.value = "offsetWidth" in t ? t.offsetWidth : i.width, d.value = "offsetHeight" in t ? t.offsetHeight : i.height);
97
+ });
98
+ const m = N(() => C(e), (t) => {
99
+ r.value = t ? i.width : 0, d.value = t ? i.height : 0;
100
+ });
101
+ function n() {
102
+ x(), m();
103
+ }
104
+ return {
105
+ width: r,
106
+ height: d,
107
+ stop: n
108
+ };
109
+ }
110
+ function F(e) {
18
111
  if (!e) return !1;
19
112
  const i = [...e.matchAll(/<(\w+)[^>]*>/gm)];
20
113
  if (!i.length) return !1;
21
- const r = new RegExp(`</?${i[0][1]}/?>`, "gm");
22
- return e.match(r);
114
+ const a = new RegExp(`</?${i[0][1]}/?>`, "gm");
115
+ return e.match(a);
23
116
  }
24
- const U = ["aria-level"], X = ["innerHTML"], ee = {
117
+ const ye = ["aria-level"], be = ["innerHTML"], we = {
25
118
  key: 1,
26
119
  class: "description"
27
- }, ie = /* @__PURE__ */ S({
120
+ }, Ce = /* @__PURE__ */ M({
28
121
  __name: "SlideInfo.ce",
29
122
  props: {
30
123
  description: { type: String },
@@ -33,34 +126,34 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
33
126
  isActive: { type: Boolean }
34
127
  },
35
128
  setup(e) {
36
- return (i, r) => (t(), n("div", {
37
- class: M(["slide-info", { active: e.isActive }])
129
+ return (i, a) => (o(), l("div", {
130
+ class: _(["slide-info", { active: e.isActive }])
38
131
  }, [
39
- s("div", {
132
+ g("div", {
40
133
  role: "heading",
41
134
  "aria-level": e.titleLevel,
42
135
  class: "title"
43
136
  }, [
44
- R(i.$slots, "pagination"),
45
- z(" " + g(e.title), 1)
46
- ], 8, U),
47
- l(E)(e.description) ? (t(), n("div", {
137
+ Y(i.$slots, "pagination"),
138
+ P(" " + b(e.title), 1)
139
+ ], 8, ye),
140
+ f(F)(e.description) ? (o(), l("div", {
48
141
  key: 0,
49
142
  class: "description",
50
143
  innerHTML: e.description
51
- }, null, 8, X)) : e.description ? (t(), n("p", ee, g(e.description), 1)) : L("", !0)
144
+ }, null, 8, be)) : e.description ? (o(), l("p", we, b(e.description), 1)) : B("", !0)
52
145
  ], 2));
53
146
  }
54
- }), 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 = {
147
+ }), Se = ".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}}", U = /* @__PURE__ */ S(Ce, [["styles", [Se]]]), _e = ["aria-hidden", "aria-roledescription", "aria-label"], Le = {
55
148
  key: 0,
56
149
  class: "image-container"
57
- }, le = ["alt", "src"], se = {
150
+ }, $e = ["alt", "src"], ke = {
58
151
  key: 0,
59
152
  class: "license"
60
- }, oe = ["href"], re = { class: "img-container" }, de = ["alt", "src"], ce = ["innerHTML"], ue = {
153
+ }, Ae = ["href"], Be = { class: "img-container" }, Te = ["alt", "src"], Ne = ["innerHTML"], Me = {
61
154
  key: 1,
62
155
  class: "text-container"
63
- }, pe = ["innerHTML"], me = /* @__PURE__ */ S({
156
+ }, Re = ["innerHTML"], ze = /* @__PURE__ */ M({
64
157
  __name: "Slide.ce",
65
158
  props: {
66
159
  slide: { type: Object },
@@ -70,99 +163,105 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
70
163
  direction: { type: Number },
71
164
  type: { type: String },
72
165
  disableAnimation: { type: Boolean },
166
+ disableStyleAroundImage: { type: Boolean },
73
167
  imageTextDisplay: { default: "1:2", type: String }
74
168
  },
75
169
  setup(e) {
76
- 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);
77
- V(() => e.isActive, (f) => {
78
- f ? (a.value = r ? "on" : "initStart", window.setTimeout(() => {
79
- a.value === "initStart" && (a.value = "on");
80
- }, 20)) : (a.value = r ? "off" : "initEnd", window.setTimeout(() => {
81
- a.value === "initEnd" && (a.value = "off");
170
+ const i = window.matchMedia("(prefers-reduced-motion: reduce)"), a = e.disableAnimation ?? i.matches, s = T(e.isActive ? "on" : "off"), c = J("container"), p = he(c), [r, d] = e.imageTextDisplay.split(":").map(Number);
171
+ N(() => e.isActive, (n) => {
172
+ n ? (s.value = a ? "on" : "initStart", window.setTimeout(() => {
173
+ s.value === "initStart" && (s.value = "on");
174
+ }, 20)) : (s.value = a ? "off" : "initEnd", window.setTimeout(() => {
175
+ s.value === "initEnd" && (s.value = "off");
82
176
  }, 800));
83
177
  });
84
- const b = w(() => e.direction === 1);
85
- return (f, v) => (t(), n("div", {
178
+ const x = h(() => e.direction === 1), m = h(() => {
179
+ if (new URL(e.slide.image.src).pathname.endsWith(".svg"))
180
+ return p.width.value + "px";
181
+ });
182
+ return (n, t) => (o(), l("div", {
86
183
  role: "group",
87
- class: M(["slide", { active: e.isActive, [a.value]: a.value, "is-next": b.value, "disable-animation": l(r) }]),
184
+ class: _(["slide", { active: e.isActive, [s.value]: s.value, "is-next": x.value, "disable-animation": f(a) }]),
88
185
  "aria-hidden": !e.isActive,
89
- "aria-roledescription": f.$t("pix-carousel.slide"),
90
- "aria-label": e.label
186
+ "aria-roledescription": n.$t("pix-carousel.slide"),
187
+ "aria-label": e.label,
188
+ ref: "container"
91
189
  }, [
92
- e.type === "image" ? (t(), n("div", ae, [
93
- s("img", {
94
- style: k(`max-width: ${e.slide.displayWidth}px`),
190
+ e.type === "image" ? (o(), l("div", Le, [
191
+ g("img", {
192
+ style: R({ "--max-width": `${e.slide.displayWidth}px`, "--max-height": `${e.slide.displayHeight}px`, "--svg-image-display": m.value }),
193
+ class: _({ "has-shadow": !e.disableStyleAroundImage }),
95
194
  alt: e.slide.image.alt,
96
195
  src: e.slide.image.src
97
- }, null, 12, le),
98
- e.slide.license ? (t(), n("p", se, [
99
- z(g(e.slide.license.attribution) + " / ", 1),
100
- s("a", {
196
+ }, null, 14, $e),
197
+ e.slide.license ? (o(), l("p", ke, [
198
+ P(b(e.slide.license.attribution) + " / ", 1),
199
+ g("a", {
101
200
  href: e.slide.license.url,
102
201
  target: "_blank"
103
- }, g(e.slide.license.name), 9, oe)
104
- ])) : L("", !0)
105
- ])) : e.type === "image-text" ? (t(), n("div", {
202
+ }, b(e.slide.license.name), 9, Ae)
203
+ ])) : B("", !0)
204
+ ])) : e.type === "image-text" ? (o(), l("div", {
106
205
  key: 1,
107
- class: "text-image-container",
108
- style: k({ "--image-display": l(d), "--text-display": l(y) })
206
+ class: _(["text-image-container", { "has-shadow": !e.disableStyleAroundImage }]),
207
+ style: R({ "--image-display": f(r), "--text-display": f(d) })
109
208
  }, [
110
- s("div", re, [
111
- s("img", {
209
+ g("div", Be, [
210
+ g("img", {
112
211
  alt: e.slide.image.alt,
113
212
  src: e.slide.image.src
114
- }, null, 8, de)
213
+ }, null, 8, Te)
115
214
  ]),
116
- l(E)(e.slide.text) ? (t(), n("div", {
215
+ f(F)(e.slide.text) ? (o(), l("div", {
117
216
  key: 0,
118
217
  class: "text-container",
119
218
  innerHTML: e.slide.text
120
- }, null, 8, ce)) : e.slide.text ? (t(), n("p", ue, g(e.slide.text), 1)) : L("", !0)
121
- ], 4)) : (t(), n("div", {
219
+ }, null, 8, Ne)) : e.slide.text ? (o(), l("p", Me, b(e.slide.text), 1)) : B("", !0)
220
+ ], 6)) : (o(), l("div", {
122
221
  key: 2,
123
222
  innerHTML: e.slide.text,
124
223
  class: "text-container"
125
- }, null, 8, pe)),
126
- m(H, {
224
+ }, null, 8, Re)),
225
+ y(U, {
127
226
  description: e.slide.description,
128
227
  title: e.slide.title,
129
228
  "is-active": e.isActive,
130
229
  "title-level": e.titleLevel,
131
230
  class: "sr-only"
132
231
  }, null, 8, ["description", "title", "is-active", "title-level"])
133
- ], 10, ne));
232
+ ], 10, _e));
134
233
  }
135
- }), ge = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:890px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;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 = {
234
+ }), je = ".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%;max-width:var(--max-width);max-height:var(--max-height);width:var(--svg-image-display, 100%);object-fit:contain;border-radius:16px}.image-container img.has-shadow{filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2))}.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;border-radius:16px;background:#fff}.text-image-container.has-shadow{filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2))}.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}}", De = /* @__PURE__ */ S(ze, [["styles", [je]]]), Ee = {}, He = {
136
235
  width: "25",
137
236
  height: "24",
138
237
  viewBox: "0 0 25 24",
139
238
  fill: "inherit",
140
239
  xmlns: "http://www.w3.org/2000/svg"
141
240
  };
142
- function he(e, i) {
143
- return t(), n("svg", xe, [...i[0] || (i[0] = [
144
- s("path", {
241
+ function Ie(e, i) {
242
+ return o(), l("svg", He, [...i[0] || (i[0] = [
243
+ g("path", {
145
244
  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",
146
245
  fill: "inherit"
147
246
  }, null, -1)
148
247
  ])]);
149
248
  }
150
- const ye = /* @__PURE__ */ h(ve, [["render", he]]), be = {}, we = {
249
+ const We = /* @__PURE__ */ S(Ee, [["render", Ie]]), Oe = {}, Ve = {
151
250
  width: "25",
152
251
  height: "24",
153
252
  viewBox: "0 0 25 24",
154
253
  fill: "inherit",
155
254
  xmlns: "http://www.w3.org/2000/svg"
156
255
  };
157
- function _e(e, i) {
158
- return t(), n("svg", we, [...i[0] || (i[0] = [
159
- s("path", {
256
+ function Pe(e, i) {
257
+ return o(), l("svg", Ve, [...i[0] || (i[0] = [
258
+ g("path", {
160
259
  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",
161
260
  fill: "inherit"
162
261
  }, null, -1)
163
262
  ])]);
164
263
  }
165
- const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"], $e = ["id"], Se = { class: "footer" }, ke = { class: "control" }, Ae = { class: "slide-info-container" }, Ne = { class: "pagination" }, Be = /* @__PURE__ */ S({
264
+ const Ge = /* @__PURE__ */ S(Oe, [["render", Pe]]), Fe = ["aria-roledescription"], Ue = ["id"], Ze = { class: "footer" }, qe = { class: "control" }, Ke = { class: "slide-info-container" }, Xe = { class: "pagination" }, Ye = /* @__PURE__ */ M({
166
265
  __name: "Carousel.ce",
167
266
  props: {
168
267
  randomSlides: { type: Boolean },
@@ -171,110 +270,112 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
171
270
  titleLevel: { type: Number },
172
271
  disableAnimation: { type: Boolean },
173
272
  enableLoop: { type: Boolean },
273
+ disableStyleAroundImage: { type: Boolean },
174
274
  imageTextDisplay: { type: String }
175
275
  },
176
276
  setup(e) {
177
- 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.enableLoop ? !1 : d.value === 0), f = w(() => i.enableLoop ? !1 : d.value === i.slides.length - 1);
178
- function v(o) {
179
- y.value = o, d.value = (d.value - o + i.slides.length) % i.slides.length;
277
+ const i = e, a = i.titleLevel ?? 2, s = h(() => i.randomSlides ? [...i.slides].sort(() => Math.round(Math.random()) === 0 ? -1 : 1) : i.slides), c = T(0), p = T(1), r = h(() => i.enableLoop ? !1 : c.value === 0), d = h(() => i.enableLoop ? !1 : c.value === i.slides.length - 1);
278
+ function x(n) {
279
+ p.value = n, c.value = (c.value - n + i.slides.length) % i.slides.length;
180
280
  }
181
- const x = P();
182
- return (o, c) => (t(), n("section", {
183
- "aria-roledescription": o.$t("pix-carousel.title")
281
+ const m = Q();
282
+ return (n, t) => (o(), l("section", {
283
+ "aria-roledescription": n.$t("pix-carousel.title")
184
284
  }, [
185
- s("div", {
285
+ g("div", {
186
286
  "aria-live": "polite",
187
287
  class: "slides",
188
- id: l(x)
288
+ id: f(m)
189
289
  }, [
190
- m(D, {
290
+ y(I, {
191
291
  class: "carousel__nav previous",
192
- disabled: b.value,
193
- "aria-controls": l(x),
194
- onClick: c[0] || (c[0] = (u) => v(1)),
195
- label: o.$t("pix-carousel.previous"),
292
+ disabled: r.value,
293
+ "aria-controls": f(m),
294
+ onClick: t[0] || (t[0] = (v) => x(1)),
295
+ label: n.$t("pix-carousel.previous"),
196
296
  "tooltip-position": "right"
197
297
  }, {
198
- default: _(() => [
199
- m(ye, { "aria-hidden": "true" })
298
+ default: $(() => [
299
+ y(We, { "aria-hidden": "true" })
200
300
  ]),
201
301
  _: 1
202
302
  }, 8, ["disabled", "aria-controls", "label"]),
203
- (t(!0), n(A, null, N(a.value, (u, p) => (t(), B(fe, {
204
- key: p,
205
- slide: u,
206
- direction: y.value,
207
- label: o.$t("pix-carousel.of", { currentSlide: p + 1, slideLength: a.value.length }),
208
- "is-active": d.value === p,
209
- "title-level": l(r),
303
+ (o(!0), l(z, null, j(s.value, (v, u) => (o(), D(De, {
304
+ key: u,
305
+ slide: v,
306
+ direction: p.value,
307
+ label: n.$t("pix-carousel.of", { currentSlide: u + 1, slideLength: s.value.length }),
308
+ "is-active": c.value === u,
309
+ "title-level": f(a),
210
310
  type: e.type,
211
311
  "disable-animation": e.disableAnimation,
312
+ "disable-style-around-image": e.disableStyleAroundImage,
212
313
  "image-text-display": e.imageTextDisplay
213
- }, null, 8, ["slide", "direction", "label", "is-active", "title-level", "type", "disable-animation", "image-text-display"]))), 128)),
214
- m(D, {
314
+ }, null, 8, ["slide", "direction", "label", "is-active", "title-level", "type", "disable-animation", "disable-style-around-image", "image-text-display"]))), 128)),
315
+ y(I, {
215
316
  class: "carousel__nav next",
216
- disabled: f.value,
217
- "aria-controls": l(x),
218
- onClick: c[1] || (c[1] = (u) => v(-1)),
219
- label: o.$t("pix-carousel.next"),
317
+ disabled: d.value,
318
+ "aria-controls": f(m),
319
+ onClick: t[1] || (t[1] = (v) => x(-1)),
320
+ label: n.$t("pix-carousel.next"),
220
321
  "tooltip-position": "left"
221
322
  }, {
222
- default: _(() => [
223
- m(Ce, { "aria-hidden": "true" })
323
+ default: $(() => [
324
+ y(Ge, { "aria-hidden": "true" })
224
325
  ]),
225
326
  _: 1
226
327
  }, 8, ["disabled", "aria-controls", "label"])
227
- ], 8, $e),
228
- s("div", Se, [
229
- s("div", ke, [
230
- m(j, {
231
- onClick: c[2] || (c[2] = (u) => v(1)),
232
- label: o.$t("pix-carousel.previous"),
233
- "aria-controls": l(x),
328
+ ], 8, Ue),
329
+ g("div", Ze, [
330
+ g("div", qe, [
331
+ y(H, {
332
+ onClick: t[2] || (t[2] = (v) => x(1)),
333
+ label: n.$t("pix-carousel.previous"),
334
+ "aria-controls": f(m),
234
335
  direction: "previous",
235
- disabled: b.value
336
+ disabled: r.value
236
337
  }, null, 8, ["label", "aria-controls", "disabled"]),
237
- m(j, {
238
- onClick: c[3] || (c[3] = (u) => v(-1)),
239
- label: o.$t("pix-carousel.next"),
240
- "aria-controls": l(x),
338
+ y(H, {
339
+ onClick: t[3] || (t[3] = (v) => x(-1)),
340
+ label: n.$t("pix-carousel.next"),
341
+ "aria-controls": f(m),
241
342
  direction: "next",
242
- disabled: f.value
343
+ disabled: d.value
243
344
  }, null, 8, ["label", "aria-controls", "disabled"])
244
345
  ]),
245
- s("div", Ae, [
246
- (t(!0), n(A, null, N(a.value, (u, p) => (t(), B(H, {
247
- key: p,
248
- description: u.description,
249
- title: u.title,
250
- "title-level": l(r),
251
- "is-active": d.value === p,
346
+ g("div", Ke, [
347
+ (o(!0), l(z, null, j(s.value, (v, u) => (o(), D(U, {
348
+ key: u,
349
+ description: v.description,
350
+ title: v.title,
351
+ "title-level": f(a),
352
+ "is-active": c.value === u,
252
353
  "aria-hidden": "true"
253
354
  }, {
254
- pagination: _(() => [
255
- s("span", Ne, g(p + 1) + " / " + g(a.value.length), 1)
355
+ pagination: $(() => [
356
+ g("span", Xe, b(u + 1) + " / " + b(s.value.length), 1)
256
357
  ]),
257
358
  _: 2
258
359
  }, 1032, ["description", "title", "title-level", "is-active"]))), 128))
259
360
  ])
260
361
  ])
261
- ], 8, Le));
362
+ ], 8, Fe));
262
363
  }
263
- }), Te = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{align-items:center;display:flex;grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:inline-flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap;transform:translateY(-.25rem)}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media only screen and (max-width:576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", je = /* @__PURE__ */ h(Be, [["styles", [Te]]]);
264
- O(/* @__PURE__ */ Object.assign({ "./locales/en.json": Z, "./locales/es-419.json": K, "./locales/es.json": Y, "./locales/fr.json": q, "./locales/it.json": J, "./locales/nl.json": Q })).catch((e) => console.error(e));
265
- const I = F(je, {
364
+ }), Je = "*{--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}}", Qe = /* @__PURE__ */ S(Ye, [["styles", [Je]]]);
365
+ ie(/* @__PURE__ */ Object.assign({ "./locales/en.json": ae, "./locales/es-419.json": se, "./locales/es.json": oe, "./locales/fr.json": le, "./locales/it.json": re, "./locales/nl.json": de })).catch((e) => console.error(e));
366
+ const Z = ee(Qe, {
266
367
  configureApp(e) {
267
- T.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(W, { i18next: T });
368
+ E.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(te, { i18next: E });
268
369
  }
269
370
  });
270
- I.prototype.normalizeProps = (e) => ({
371
+ Z.prototype.normalizeProps = (e) => ({
271
372
  ...e,
272
- titleLevel: C(e.titleLevel),
373
+ titleLevel: k(e.titleLevel),
273
374
  slides: e.slides.map((i) => ({
274
375
  ...i,
275
- displayHeight: C(i.displayHeight),
276
- displayWidth: C(i.displayWidth),
277
- license: G(i.license)
376
+ displayHeight: k(i.displayHeight),
377
+ displayWidth: k(i.displayWidth),
378
+ license: ne(i.license)
278
379
  }))
279
380
  });
280
- window.customElements.define("pix-carousel", I);
381
+ window.customElements.define("pix-carousel", Z);
@@ -1,6 +1,6 @@
1
- import { d as E, r as y, g as k, y as m, G as S, c as a, o as i, a as s, z as A, h as d, t as u, F as f, b, O as H, E as g, n as C, K as L, B as F, i as P, _ as D, f as G } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
- import { a as K, i as w, b as R } from "../i18n-ecSMtuba.js";
3
- import { N as j } from "../NavigationButton.ce-CxI2QW8z.js";
1
+ import { d as E, r as y, g as k, y as m, G as S, c as a, o as i, a as s, z as A, h as d, t as u, F as f, b, O as H, E as g, n as C, K as L, B as F, i as P, _ as D, f as G } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { a as K, i as w, b as R } from "../i18n-Bs7vpvgi.js";
3
+ import { N as j } from "../NavigationButton.ce-CMbVRJbG.js";
4
4
  const U = {}, q = {}, J = {}, 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 = {
@@ -1,7 +1,7 @@
1
- import { d as y, y as b, c as i, o, a as s, B as v, t as c, n as w, _, P as E, Q as A, r as x, z as O, H as V, R as P, j as G, q as M, F as $, b as C, e as Q, h as F, E as k, S as U, K as H, i as K, f as W } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
- import { i as a, a as J, b as X } from "../i18n-ecSMtuba.js";
3
- import { R as Y } from "../Retry-CY90VQJl.js";
4
- import { u as Z } from "../normalize-props-AlmAfi_u.js";
1
+ import { d as y, y as b, c as i, o, a as s, B as v, t as c, n as w, _, P as E, Q as A, r as x, z as O, H as V, R as P, j as G, q as M, F as $, b as C, e as Q, h as F, E as k, S as U, K as H, i as K, f as W } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { i as a, a as J, b as X } from "../i18n-Bs7vpvgi.js";
3
+ import { R as Y } from "../Retry-B27znRn6.js";
4
+ import { u as Z } from "../normalize-props-BAFlcMqH.js";
5
5
  const ee = {}, te = {}, ae = {}, ne = {
6
6
  "qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "les partitions de la chanson", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d'IA générative", in: "Entrée", out: "Sortie", waiting: "Logiciel d'IA générative", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo de Caroline :", generateVideo: "Générer la vidéo !", loading: "Chargement…", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Bien joué !", description: "C'est bien la vidéo de Caroline. Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." } }
7
7
  }, oe = {}, ie = {}, re = ["aria-hidden"], se = ["aria-level"], le = ["src"], de = {