@1024pix/epreuves-components 2.4.6 → 2.4.7

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
1
  import { d as j, G as T, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as E, e as U, h as N, O as x, f as G } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { a as H, i as V, b as Q } from "../i18n-Bs7vpvgi.js";
3
- import { u as J } from "../normalize-props-BAFlcMqH.js";
3
+ import { u as J } from "../normalize-props-DtfVI0Xg.js";
4
4
  const X = {}, Z = {}, ee = {}, te = {
5
5
  "calcul-impact": { title: "Calculez votre impact IA", subtitle: "Quels ont été vos usages de l'IA la semaine dernière ?", numberOfConversationLabel: "Nombre de conversations courtes :", numberOfImagesLabel: "Nombre de créations d’images :", seePersonalImpact: "Voir votre impact personnel sur une semaine", seeCollectiveImpact: "Si 1 million de personnes faisaient comme vous toutes les semaines pendant un an", legals: "Estimations basées sur l'étude Hugging Face, Carnegie Mellon University, Allen Institute for AI, Oct 2024", yourPersonalImpact: "Votre impact personnel", consumptionForAWeek: "Votre consommation sur une semaine", consumptionForAYear: "1 million de personnes toutes les semaines pendant un an", personalConsumption: "Vous avez consommé environ {{energy}} Wh", personalDuration: "Cela équivaut à {{number}} minutes de micro-ondes", collectiveConsumption: "Cela représenterait {{energy}} kWh, soit l'équivalent de la consommation en électricité de {{homes}} foyers français", collectiveDuration: "Équivalent à {{number}} minutes de micro-ondes", planeKilometers: "Et {{kilometers}} km parcourus en avion", yourCollectiveImpact: "Impact collectif simulé" }
6
6
  }, ae = {}, le = {}, oe = {
@@ -1,6 +1,6 @@
1
1
  import { d as C, c as d, o, n as m, j as D, H as $, t as r, _ as v, P as O, Q as h, r as g, y as x, a as t, E as L, F as R, b as V, h as Z, i as z, S as F, K as T, e as f, B as N, f as P } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { i as k, a as H, b as K } from "../i18n-Bs7vpvgi.js";
3
- import { u as W } from "../normalize-props-BAFlcMqH.js";
3
+ import { u as W } from "../normalize-props-DtfVI0Xg.js";
4
4
  import { R as G } from "../Retry-B27znRn6.js";
5
5
  const J = {}, X = {}, Y = {}, aa = {
6
6
  "capacity-calculation": { title: "Observer l'impact des demandes", in: { title: "Demandes à l'IA", aiQuestion: "Quelle est la demande à l'IA ?", aiOptions: ["Fais une vidéo d’une durée d'une minute.", "Écris un texte de 10 lignes.", "Fais un dessin de haute qualité."], userQuestion: "Combien d’utilisateurs font la demande en même temps ?", buttonLabel: { primary: "Observer l'effet", warning: "Recommencer" } }, out: { title: "Impact des demandes", consumption: { label: "Consommation d’électricité :", normal_weak: "Faible", normal_medium: "Moyenne", warning: "Très forte", error: "Très forte", initial: "À l'arrêt" }, capacity: { label: "État du supercalculateur :", normal_weak: "Normal", normal_medium: "Normal", warning: "Sollicitation maximale", error: "Ne peut pas répondre à la demande", initial: "À l'arrêt" } } }
@@ -1,22 +1,22 @@
1
- import { d as E, q as O, r as x, v as P, x as W, y as c, c as d, o as p, a as w, z as _, m as D, F as L, b as V, i as j, A as y, B as q, h as T, n as U, C as X, t as Y, _ as G, f as H } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
- import { u as C } from "../normalize-props-BAFlcMqH.js";
3
- const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "aria-label"], v = 10, Q = /* @__PURE__ */ E({
1
+ import { d as R, q as E, r as y, v as O, x as W, y as d, c as p, o as v, a as C, z as _, m as D, F as L, b as V, i as j, A as b, B as q, h as T, n as U, C as X, t as Y, _ as G, f as H } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { u as z, a as J } from "../normalize-props-DtfVI0Xg.js";
3
+ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], f = 10, Z = /* @__PURE__ */ R({
4
4
  __name: "ClickableImage.ce",
5
5
  props: {
6
6
  image: { type: Object },
7
7
  areas: { type: Array }
8
8
  },
9
- setup(n, { expose: S }) {
10
- const l = O("image"), r = x(1), b = new ResizeObserver(() => g());
11
- function g() {
9
+ setup(a, { expose: i }) {
10
+ const l = E("image"), r = y(1), g = new ResizeObserver(() => h());
11
+ function h() {
12
12
  l.value.naturalWidth && (r.value = l.value.offsetWidth / l.value.naturalWidth);
13
13
  }
14
- P(() => {
15
- b.observe(l.value);
14
+ O(() => {
15
+ g.observe(l.value);
16
16
  }), W(() => {
17
- b.disconnect();
17
+ g.disconnect();
18
18
  });
19
- const A = n.areas.some(({ spot: e }) => !!e), h = c(() => n.areas.map((e) => ({
19
+ const A = a.areas.some(({ spot: e }) => !!e), $ = d(() => a.areas.map((e) => ({
20
20
  ...e,
21
21
  coords: I(e.coords),
22
22
  spot: M(e.spot)
@@ -35,104 +35,108 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
35
35
  y: t * r.value
36
36
  };
37
37
  }
38
- const f = x();
39
- function $(e) {
40
- f.value = e;
38
+ const m = y();
39
+ function k(e) {
40
+ m.value = e;
41
41
  }
42
- function k() {
43
- f.value = void 0;
42
+ function w() {
43
+ m.value = void 0;
44
44
  }
45
- const i = x();
45
+ const u = y();
46
46
  function F(e) {
47
- i.value = e;
47
+ u.value = e;
48
48
  }
49
- function B() {
50
- i.value = void 0;
49
+ function P() {
50
+ u.value = void 0;
51
51
  }
52
- const m = c(() => i.value ?? f.value), u = c(() => {
53
- if (m.value !== void 0)
54
- return h.value[m.value];
55
- }), N = c(() => {
56
- if (!u.value) return {};
57
- const { tooltipPosition: e, coords: { x1: t, y1: o, x2: a, y2: s } } = u.value;
52
+ const x = d(() => u.value ?? m.value), c = d(() => {
53
+ if (x.value !== void 0)
54
+ return $.value[x.value];
55
+ }), B = d(() => {
56
+ if (!c.value) return {};
57
+ const { tooltipPosition: e, coords: { x1: t, y1: o, x2: n, y2: s } } = c.value;
58
58
  switch (e) {
59
59
  case "top":
60
60
  return {
61
- left: `${t + (a - t) / 2}px`,
61
+ left: `${t + (n - t) / 2}px`,
62
62
  transform: "translate(-50%, -100%)",
63
- top: `${o - v}px`
63
+ top: `${o - f}px`
64
64
  };
65
65
  case "bottom":
66
66
  return {
67
- left: `${t + (a - t) / 2}px`,
67
+ left: `${t + (n - t) / 2}px`,
68
68
  transform: "translateX(-50%)",
69
- top: `${s + v}px`
69
+ top: `${s + f}px`
70
70
  };
71
71
  case "left":
72
72
  return {
73
- left: `${t - v}px`,
73
+ left: `${t - f}px`,
74
74
  top: `${o + (s - o) / 2}px`,
75
75
  transform: "translate(-100%, -50%)"
76
76
  };
77
77
  default:
78
78
  return {
79
- left: `${a + v}px`,
79
+ left: `${n + f}px`,
80
80
  top: `${o + (s - o) / 2}px`,
81
81
  transform: "translateY(-50%)"
82
82
  };
83
83
  }
84
84
  });
85
- function R() {
86
- i.value = void 0;
85
+ function N() {
86
+ u.value = void 0;
87
87
  }
88
- return S({ reset: R }), (e, t) => (p(), d("div", J, [
89
- w("img", D(n.image, {
88
+ return i({ reset: N }), (e, t) => (v(), p("div", K, [
89
+ C("img", D(a.image, {
90
90
  ref: "image",
91
- onLoad: t[0] || (t[0] = (o) => g()),
92
- onClick: t[1] || (t[1] = (o) => B()),
91
+ onLoad: t[0] || (t[0] = (o) => h()),
92
+ onClick: t[1] || (t[1] = (o) => P()),
93
93
  alt: ""
94
94
  }), null, 16),
95
- (p(!0), d(L, null, V(h.value, (o, a) => (p(), d("button", {
96
- key: a,
97
- style: y({
95
+ (v(!0), p(L, null, V($.value, (o, n) => (v(), p("button", {
96
+ key: n,
97
+ style: b({
98
98
  "--y1": `${o.coords.y1}px`,
99
99
  "--y2": `${o.coords.y2}px`,
100
100
  "--x1": `${o.coords.x1}px`,
101
101
  "--x2": `${o.coords.x2}px`
102
102
  }),
103
103
  class: "area",
104
- onMouseenter: (s) => $(a),
105
- onMouseleave: t[2] || (t[2] = (s) => k()),
106
- onFocusin: (s) => $(a),
107
- onFocusout: t[3] || (t[3] = (s) => k()),
108
- onClick: j((s) => F(a), ["stop"]),
104
+ onMouseenter: (s) => k(n),
105
+ onMouseleave: t[2] || (t[2] = (s) => w()),
106
+ onFocusin: (s) => k(n),
107
+ onFocusout: t[3] || (t[3] = (s) => w()),
108
+ onClick: j((s) => F(n), ["stop"]),
109
109
  "aria-label": o.info
110
110
  }, [
111
- T(A) ? (p(), d("span", {
111
+ T(A) ? (v(), p("span", {
112
112
  key: 0,
113
- class: U(["spot", { active: m.value === a }]),
114
- style: y({
113
+ class: U(["spot", { active: x.value === n }]),
114
+ style: b({
115
115
  "--s-x": `${o.spot.x}px`,
116
116
  "--s-y": `${o.spot.y}px`
117
117
  })
118
118
  }, null, 6)) : q("", !0)
119
- ], 44, K))), 128)),
120
- _(w("p", {
119
+ ], 44, Q))), 128)),
120
+ _(C("p", {
121
121
  class: "tooltip",
122
122
  "aria-hidden": "true",
123
- style: y(N.value)
124
- }, Y(u.value?.info), 5), [
125
- [X, u.value]
123
+ style: b(B.value)
124
+ }, Y(c.value?.info), 5), [
125
+ [X, c.value]
126
126
  ])
127
127
  ]));
128
128
  }
129
- }), Z = "*{font-family:Nunito,Roboto,sans-serif;color:var(#253858)}.container{position:relative;max-width:100%;border:1px solid #ccc}.container img{width:100%;height:auto;display:block}.container .area{cursor:pointer;position:absolute;top:var(--y1);left:var(--x1);height:calc(var(--y2) - var(--y1));width:calc(var(--x2) - var(--x1));border:none;background:transparent}.container .spot{cursor:pointer;position:absolute;width:32px;aspect-ratio:1;border:solid 4px #d9d9d9;background:#d9d9d999;border-radius:50%;top:50%;left:50%;transform:translate(calc(-50% + var(--s-x)),calc(-50% + var(--s-y)))}.container .spot.active{border-color:#6495ed}.container .tooltip{position:absolute;background-color:#000000d9;color:#fff;padding:8px 12px;border-radius:6px;font-size:14px;max-width:260px;z-index:10}", ee = /* @__PURE__ */ G(Q, [["styles", [Z]]]), z = H(ee);
130
- z.prototype.normalizeProps = (n) => ({
131
- ...n,
129
+ }), ee = "*{font-family:Nunito,Roboto,sans-serif;color:var(#253858)}.container{position:relative;max-width:100%;border:1px solid #ccc}.container img{width:100%;height:auto;display:block}.container .area{cursor:pointer;position:absolute;top:var(--y1);left:var(--x1);height:calc(var(--y2) - var(--y1));width:calc(var(--x2) - var(--x1));border:none;background:transparent}.container .spot{cursor:pointer;position:absolute;width:32px;aspect-ratio:1;border:solid 4px #d9d9d9;background:#d9d9d999;border-radius:50%;top:50%;left:50%;transform:translate(calc(-50% + var(--s-x)),calc(-50% + var(--s-y)))}.container .spot.active{border-color:#6495ed}.container .tooltip{position:absolute;background-color:#000000d9;color:#fff;padding:8px 12px;border-radius:6px;font-size:14px;max-width:260px;z-index:10}", te = /* @__PURE__ */ G(Z, [["styles", [ee]]]), S = H(te);
130
+ S.prototype.normalizeProps = (a) => ({
131
+ ...a,
132
132
  image: {
133
- ...n.image,
134
- height: C(n.height),
135
- width: C(n.width)
133
+ ...a.image,
134
+ height: z(a.height),
135
+ width: z(a.width),
136
+ areas: a.areas.map((i) => ({
137
+ ...i,
138
+ tooltipPosition: J(i.tooltipPosition)
139
+ }))
136
140
  }
137
141
  });
138
- window.customElements.define("clickable-image", z);
142
+ window.customElements.define("clickable-image", S);
@@ -1,6 +1,6 @@
1
1
  import { d as h, c as n, o, a, t as c, A as S, _ as f, n as P, j as A, H as N, r as y, y as m, B as z, F as x, b as k, e as v, E as q, f as M } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { u as O, a as E, i as L, b as I } from "../i18n-Bs7vpvgi.js";
3
- import { u as R } from "../normalize-props-BAFlcMqH.js";
3
+ import { u as R } from "../normalize-props-DtfVI0Xg.js";
4
4
  import { L as B } from "../LLMMessage.ce-FJCO_wvC.js";
5
5
  const T = {}, V = {}, D = {}, F = {
6
6
  "complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisit par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! Il peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... Il choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
@@ -1,5 +1,5 @@
1
1
  import { d as m, c as n, o as d, F as u, a as t, n as v, h as p, t as f, B as y, _ as h, r as w, b as k, L as g, E as F, f as _ } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
- import { u as L } from "../normalize-props-BAFlcMqH.js";
2
+ import { u as L } from "../normalize-props-DtfVI0Xg.js";
3
3
  const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"], $ = ["aria-level"], B = { class: "description" }, E = { class: "image-container" }, U = ["src"], j = /* @__PURE__ */ m({
4
4
  __name: "FlipCard.ce",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import "../_plugin-vue_export-helper-CJxDisp0.js";
2
- import { n as p } from "../image-quiz.ce-jh8ME9Wm.js";
3
- import "../normalize-props-BAFlcMqH.js";
2
+ import { n as p } from "../image-quiz.ce-Yh1nj0LD.js";
3
+ import "../normalize-props-DtfVI0Xg.js";
4
4
  export {
5
5
  p as normalizeImageQuizProps
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { d as l, r as f, w, c as p, o, b as g, e as d, m as q, F as v, f as y } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
- import { I as A, n as I } from "../image-quiz.ce-jh8ME9Wm.js";
2
+ import { I as A, n as I } from "../image-quiz.ce-Yh1nj0LD.js";
3
3
  const _ = /* @__PURE__ */ l({
4
4
  __name: "ImageQuizzes.ce",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { d as h, r as c, G as y, c as d, o as m, E as w, a, H as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
- import { u as N } from "../normalize-props-BAFlcMqH.js";
2
+ import { u as N } from "../normalize-props-DtfVI0Xg.js";
3
3
  import "./llm-messages.ce.js.js";
4
4
  const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B = ["disabled", "onClick"], V = /* @__PURE__ */ h({
5
5
  __name: "LLMPromptSelect.ce",
@@ -1,6 +1,6 @@
1
1
  import { d as S, r as x, y as M, v as B, c as i, o as n, n as w, B as l, a as h, H as k, t as v, E, M as z, m as P, F as b, b as N, _ as D, q as T, e as V, f as F } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { L } from "../Loading.ce-EWTMcywS.js";
3
- import { u as j, a as I, b as O } from "../normalize-props-BAFlcMqH.js";
3
+ import { u as j, b as I, a as O } from "../normalize-props-DtfVI0Xg.js";
4
4
  const q = ["part"], H = {
5
5
  key: 1,
6
6
  class: "message__loader message__content",
@@ -1,6 +1,6 @@
1
1
  import { d as f, c, o, F as k, a as t, t as a, h as x, i as R, H as D, _ as m, B as C, b as Z, q as _, r as b, y as u, A, e as w, D as I, m as $, k as T, f as E } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { a as Q, i as M, b as q } from "../i18n-Bs7vpvgi.js";
3
- import { u as O } from "../normalize-props-BAFlcMqH.js";
3
+ import { u as O } from "../normalize-props-DtfVI0Xg.js";
4
4
  const U = {}, G = {}, J = {}, W = {
5
5
  "phishing-message": { title: "Message et émotions", description: "Pour chacun des cas ci-dessous : Ouvrez et lisez le message d’arnaque, puis répondez à la question.", messagePreviewTitle: "Messagerie :", feedBackQuizTitle: "Qu’avez-vous ressenti en lisant ce message ?", next: "Message suivant", step: "Étape {{step}} sur {{totalStep}}" }
6
6
  }, K = {}, X = {}, Y = "data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='34'%20height='34'%20rx='8'%20fill='%23E9F3EF'/%3e%3cpath%20d='M8%2025.3451V10.0551C8%209.52465%208.21071%209.01594%208.58579%208.64087C8.96086%208.2658%209.46957%208.05508%2010%208.05508H24C24.5304%208.05508%2025.0391%208.2658%2025.4142%208.64087C25.7893%209.01594%2026%209.52465%2026%2010.0551V20.0551C26%2020.5855%2025.7893%2021.0942%2025.4142%2021.4693C25.0391%2021.8444%2024.5304%2022.0551%2024%2022.0551H12.961C12.6612%2022.0551%2012.3653%2022.1225%2012.0951%2022.2524C11.8249%2022.3822%2011.5874%2022.5711%2011.4%2022.8051L9.069%2025.7191C8.99143%2025.8163%208.88556%2025.887%208.76604%2025.9214C8.64652%2025.9559%208.51926%2025.9523%208.40186%2025.9112C8.28446%2025.8701%208.18273%2025.7936%208.11073%2025.6922C8.03874%2025.5907%208.00005%2025.4695%208%2025.3451Z'%20stroke='%231C825D'%20stroke-width='2'/%3e%3c/svg%3e", e2 = ["aria-level"], t2 = { class: "message-page-preview" }, a2 = { class: "card-wrapper" }, i2 = ["src"], s2 = ["aria-level"], o2 = { class: "card-wrapper__time" }, n2 = /* @__PURE__ */ f({
@@ -1,6 +1,6 @@
1
1
  import { r as x, q as P, y as v, N as J, v as Q, k as R, c as a, B as k, o as r, a as t, j as U, d as W, g as X, u as e2, G as t2, E as H, K as F, t as n, H as B, A as o2, F as Z, b as N, n as S, i as i2, h as w, L as n2, _ as s2, f as a2 } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { u as r2, a as l2, i as T, b as c2 } from "../i18n-Bs7vpvgi.js";
3
- import { u as d2 } from "../normalize-props-BAFlcMqH.js";
3
+ import { u as d2 } from "../normalize-props-DtfVI0Xg.js";
4
4
  import "./mobile-shell.ce.js.js";
5
5
  import { r as h2 } from "../temporal.utils-DBcWSjWy.js";
6
6
  import { B as u2 } from "../ButtonTooltip.ce-CZed5BUq.js";
@@ -1,7 +1,7 @@
1
1
  import { d as u, y as d, c as a, o as i, a as t, t as l, F as o, b as m, _ as f, f as v } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { a as p, i as r, b as y } from "../i18n-Bs7vpvgi.js";
3
- import { b as s, u as b } from "../normalize-props-BAFlcMqH.js";
4
- const S = {}, x = {}, L = {}, A = {
3
+ import { a as s, u as S } from "../normalize-props-DtfVI0Xg.js";
4
+ const b = {}, x = {}, L = {}, A = {
5
5
  "pix-article": { byAuthor: "Par {{author}}" }
6
6
  }, j = {}, H = {}, O = ["titleLevel"], P = { class: "article__metadata" }, E = { class: "article__author" }, N = ["innerHTML"], k = /* @__PURE__ */ u({
7
7
  __name: "PixArticle.ce",
@@ -35,7 +35,7 @@ const S = {}, x = {}, L = {}, A = {
35
35
  ], 64));
36
36
  }
37
37
  }), w = "[data-v-8f376e91]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-8f376e91]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-8f376e91]{font-style:italic}.article__author[data-v-8f376e91]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", B = /* @__PURE__ */ f(k, [["styles", [w]], ["__scopeId", "data-v-8f376e91"]]);
38
- p(/* @__PURE__ */ Object.assign({ "./locales/en.json": S, "./locales/es-419.json": x, "./locales/es.json": L, "./locales/fr.json": A, "./locales/it.json": j, "./locales/nl.json": H })).catch((e) => console.error(e));
38
+ p(/* @__PURE__ */ Object.assign({ "./locales/en.json": b, "./locales/es-419.json": x, "./locales/es.json": L, "./locales/fr.json": A, "./locales/it.json": j, "./locales/nl.json": H })).catch((e) => console.error(e));
39
39
  const c = v(B, {
40
40
  configureApp(e) {
41
41
  r.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(y, { i18next: r });
@@ -43,7 +43,7 @@ const c = v(B, {
43
43
  });
44
44
  c.prototype.normalizeProps = (e) => ({
45
45
  ...e,
46
- titleLevel: b(e.titleLevel),
46
+ titleLevel: S(e.titleLevel),
47
47
  highlightedSentence: s(e.highlightedSentence),
48
48
  colorOfHighlightSentence: s(e.colorOfHighlightSentence)
49
49
  });
@@ -1,55 +1,55 @@
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";
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 D, 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 M, g as Q, K as $, F as R, b as z, e as j, f as ee } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { a as ie, i as E, b as te } from "../i18n-Bs7vpvgi.js";
3
3
  import { N as H } from "../NavigationButton.ce-CMbVRJbG.js";
4
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 = {
5
+ import { a as ne, u as k, b as ae } from "../normalize-props-DtfVI0Xg.js";
6
+ const se = {
7
7
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
8
- }, se = {}, oe = {
8
+ }, oe = {}, le = {
9
9
  "pix-carousel": { license: "Licencia de imagen", next: "Siguiente", of: "{{ currentSlide }} de {{ slideLength }}", previous: "Anterior", slide: "Diapositiva", title: "Carrusel" }
10
- }, le = {
11
- "pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
12
10
  }, re = {
13
- "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
11
+ "pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
14
12
  }, de = {
13
+ "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
14
+ }, ce = {
15
15
  "pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
16
16
  };
17
- function ce(e, i) {
17
+ function ue(e, i) {
18
18
  return K() ? (X(e, i), !0) : !1;
19
19
  }
20
- const ue = typeof window < "u" && typeof document < "u";
20
+ const pe = typeof window < "u" && typeof document < "u";
21
21
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
22
- function pe(e) {
22
+ function me(e) {
23
23
  return Array.isArray(e) ? e : [e];
24
24
  }
25
- function me(e) {
25
+ function fe(e) {
26
26
  return O();
27
27
  }
28
- function fe(e, i = !0, a) {
29
- me() ? W(e, a) : i ? e() : q(e);
28
+ function ge(e, i = !0, a) {
29
+ fe() ? W(e, a) : i ? e() : q(e);
30
30
  }
31
- const G = ue ? window : void 0;
31
+ const G = pe ? window : void 0;
32
32
  function C(e) {
33
33
  var i;
34
34
  const a = V(e);
35
35
  return (i = a?.$el) !== null && i !== void 0 ? i : a;
36
36
  }
37
37
  // @__NO_SIDE_EFFECTS__
38
- function ge() {
38
+ function ve() {
39
39
  const e = A(!1), i = O();
40
40
  return i && W(() => {
41
41
  e.value = !0;
42
42
  }, i), e;
43
43
  }
44
44
  // @__NO_SIDE_EFFECTS__
45
- function ve(e) {
46
- const i = /* @__PURE__ */ ge();
45
+ function xe(e) {
46
+ const i = /* @__PURE__ */ ve();
47
47
  return h(() => (i.value, !!e()));
48
48
  }
49
- function xe(e, i, a = {}) {
49
+ function he(e, i, a = {}) {
50
50
  const { window: s = G, ...c } = a;
51
51
  let p;
52
- const r = /* @__PURE__ */ ve(() => s && "ResizeObserver" in s), d = () => {
52
+ const r = /* @__PURE__ */ xe(() => s && "ResizeObserver" in s), d = () => {
53
53
  p && (p.disconnect(), p = void 0);
54
54
  }, x = N(h(() => {
55
55
  const n = V(e);
@@ -65,19 +65,19 @@ function xe(e, i, a = {}) {
65
65
  }), m = () => {
66
66
  d(), x();
67
67
  };
68
- return ce(m), {
68
+ return ue(m), {
69
69
  isSupported: r,
70
70
  stop: m
71
71
  };
72
72
  }
73
- function he(e, i = {
73
+ function ye(e, i = {
74
74
  width: 0,
75
75
  height: 0
76
76
  }, a = {}) {
77
77
  const { window: s = G, box: c = "content-box" } = a, p = h(() => {
78
78
  var t;
79
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]) => {
80
+ }), r = A(i.width), d = A(i.height), { stop: x } = he(e, ([t]) => {
81
81
  const v = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
82
82
  if (s && p.value) {
83
83
  const u = C(e);
@@ -86,12 +86,12 @@ function he(e, i = {
86
86
  r.value = w.width, d.value = w.height;
87
87
  }
88
88
  } else if (v) {
89
- const u = pe(v);
89
+ const u = me(v);
90
90
  r.value = u.reduce((w, { inlineSize: L }) => w + L, 0), d.value = u.reduce((w, { blockSize: L }) => w + L, 0);
91
91
  } else
92
92
  r.value = t.contentRect.width, d.value = t.contentRect.height;
93
93
  }, a);
94
- fe(() => {
94
+ ge(() => {
95
95
  const t = C(e);
96
96
  t && (r.value = "offsetWidth" in t ? t.offsetWidth : i.width, d.value = "offsetHeight" in t ? t.offsetHeight : i.height);
97
97
  });
@@ -114,10 +114,10 @@ function F(e) {
114
114
  const a = new RegExp(`</?${i[0][1]}/?>`, "gm");
115
115
  return e.match(a);
116
116
  }
117
- const ye = ["aria-level"], be = ["innerHTML"], we = {
117
+ const be = ["aria-level"], we = ["innerHTML"], Ce = {
118
118
  key: 1,
119
119
  class: "description"
120
- }, Ce = /* @__PURE__ */ M({
120
+ }, Se = /* @__PURE__ */ D({
121
121
  __name: "SlideInfo.ce",
122
122
  props: {
123
123
  description: { type: String },
@@ -136,24 +136,24 @@ const ye = ["aria-level"], be = ["innerHTML"], we = {
136
136
  }, [
137
137
  Y(i.$slots, "pagination"),
138
138
  P(" " + b(e.title), 1)
139
- ], 8, ye),
139
+ ], 8, be),
140
140
  f(F)(e.description) ? (o(), l("div", {
141
141
  key: 0,
142
142
  class: "description",
143
143
  innerHTML: e.description
144
- }, null, 8, be)) : e.description ? (o(), l("p", we, b(e.description), 1)) : B("", !0)
144
+ }, null, 8, we)) : e.description ? (o(), l("p", Ce, b(e.description), 1)) : B("", !0)
145
145
  ], 2));
146
146
  }
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 = {
147
+ }), _e = ".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(Se, [["styles", [_e]]]), Le = ["aria-hidden", "aria-roledescription", "aria-label"], $e = {
148
148
  key: 0,
149
149
  class: "image-container"
150
- }, $e = ["alt", "src"], ke = {
150
+ }, ke = ["alt", "src"], Ae = {
151
151
  key: 0,
152
152
  class: "license"
153
- }, Ae = ["href"], Be = { class: "img-container" }, Te = ["alt", "src"], Ne = ["innerHTML"], Me = {
153
+ }, Be = ["href"], Te = { class: "img-container" }, Ne = ["alt", "src"], De = ["innerHTML"], Me = {
154
154
  key: 1,
155
155
  class: "text-container"
156
- }, Re = ["innerHTML"], ze = /* @__PURE__ */ M({
156
+ }, Re = ["innerHTML"], ze = /* @__PURE__ */ D({
157
157
  __name: "Slide.ce",
158
158
  props: {
159
159
  slide: { type: Object },
@@ -167,7 +167,7 @@ const ye = ["aria-level"], be = ["innerHTML"], we = {
167
167
  imageTextDisplay: { default: "1:2", type: String }
168
168
  },
169
169
  setup(e) {
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);
170
+ const i = window.matchMedia("(prefers-reduced-motion: reduce)"), a = e.disableAnimation ?? i.matches, s = T(e.isActive ? "on" : "off"), c = J("container"), p = ye(c), [r, d] = e.imageTextDisplay.split(":").map(Number);
171
171
  N(() => e.isActive, (n) => {
172
172
  n ? (s.value = a ? "on" : "initStart", window.setTimeout(() => {
173
173
  s.value === "initStart" && (s.value = "on");
@@ -187,36 +187,36 @@ const ye = ["aria-level"], be = ["innerHTML"], we = {
187
187
  "aria-label": e.label,
188
188
  ref: "container"
189
189
  }, [
190
- e.type === "image" ? (o(), l("div", Le, [
190
+ e.type === "image" ? (o(), l("div", $e, [
191
191
  g("img", {
192
- style: R({ "--max-width": `${e.slide.displayWidth}px`, "--max-height": `${e.slide.displayHeight}px`, "--svg-image-display": m.value }),
192
+ style: M({ "--max-width": `${e.slide.displayWidth}px`, "--max-height": `${e.slide.displayHeight}px`, "--svg-image-display": m.value }),
193
193
  class: _({ "has-shadow": !e.disableStyleAroundImage }),
194
194
  alt: e.slide.image.alt,
195
195
  src: e.slide.image.src
196
- }, null, 14, $e),
197
- e.slide.license ? (o(), l("p", ke, [
196
+ }, null, 14, ke),
197
+ e.slide.license ? (o(), l("p", Ae, [
198
198
  P(b(e.slide.license.attribution) + " / ", 1),
199
199
  g("a", {
200
200
  href: e.slide.license.url,
201
201
  target: "_blank"
202
- }, b(e.slide.license.name), 9, Ae)
202
+ }, b(e.slide.license.name), 9, Be)
203
203
  ])) : B("", !0)
204
204
  ])) : e.type === "image-text" ? (o(), l("div", {
205
205
  key: 1,
206
206
  class: _(["text-image-container", { "has-shadow": !e.disableStyleAroundImage }]),
207
- style: R({ "--image-display": f(r), "--text-display": f(d) })
207
+ style: M({ "--image-display": f(r), "--text-display": f(d) })
208
208
  }, [
209
- g("div", Be, [
209
+ g("div", Te, [
210
210
  g("img", {
211
211
  alt: e.slide.image.alt,
212
212
  src: e.slide.image.src
213
- }, null, 8, Te)
213
+ }, null, 8, Ne)
214
214
  ]),
215
215
  f(F)(e.slide.text) ? (o(), l("div", {
216
216
  key: 0,
217
217
  class: "text-container",
218
218
  innerHTML: e.slide.text
219
- }, null, 8, Ne)) : e.slide.text ? (o(), l("p", Me, b(e.slide.text), 1)) : B("", !0)
219
+ }, null, 8, De)) : e.slide.text ? (o(), l("p", Me, b(e.slide.text), 1)) : B("", !0)
220
220
  ], 6)) : (o(), l("div", {
221
221
  key: 2,
222
222
  innerHTML: e.slide.text,
@@ -229,39 +229,39 @@ const ye = ["aria-level"], be = ["innerHTML"], we = {
229
229
  "title-level": e.titleLevel,
230
230
  class: "sr-only"
231
231
  }, null, 8, ["description", "title", "is-active", "title-level"])
232
- ], 10, _e));
232
+ ], 10, Le));
233
233
  }
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 = {
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}}", Ee = /* @__PURE__ */ S(ze, [["styles", [je]]]), He = {}, Ie = {
235
235
  width: "25",
236
236
  height: "24",
237
237
  viewBox: "0 0 25 24",
238
238
  fill: "inherit",
239
239
  xmlns: "http://www.w3.org/2000/svg"
240
240
  };
241
- function Ie(e, i) {
242
- return o(), l("svg", He, [...i[0] || (i[0] = [
241
+ function We(e, i) {
242
+ return o(), l("svg", Ie, [...i[0] || (i[0] = [
243
243
  g("path", {
244
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",
245
245
  fill: "inherit"
246
246
  }, null, -1)
247
247
  ])]);
248
248
  }
249
- const We = /* @__PURE__ */ S(Ee, [["render", Ie]]), Oe = {}, Ve = {
249
+ const Oe = /* @__PURE__ */ S(He, [["render", We]]), Ve = {}, Pe = {
250
250
  width: "25",
251
251
  height: "24",
252
252
  viewBox: "0 0 25 24",
253
253
  fill: "inherit",
254
254
  xmlns: "http://www.w3.org/2000/svg"
255
255
  };
256
- function Pe(e, i) {
257
- return o(), l("svg", Ve, [...i[0] || (i[0] = [
256
+ function Ge(e, i) {
257
+ return o(), l("svg", Pe, [...i[0] || (i[0] = [
258
258
  g("path", {
259
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",
260
260
  fill: "inherit"
261
261
  }, null, -1)
262
262
  ])]);
263
263
  }
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({
264
+ const Fe = /* @__PURE__ */ S(Ve, [["render", Ge]]), Ue = ["aria-roledescription"], Ze = ["id"], qe = { class: "footer" }, Ke = { class: "control" }, Xe = { class: "slide-info-container" }, Ye = { class: "pagination" }, Je = /* @__PURE__ */ D({
265
265
  __name: "Carousel.ce",
266
266
  props: {
267
267
  randomSlides: { type: Boolean },
@@ -296,11 +296,11 @@ const Ge = /* @__PURE__ */ S(Oe, [["render", Pe]]), Fe = ["aria-roledescription"
296
296
  "tooltip-position": "right"
297
297
  }, {
298
298
  default: $(() => [
299
- y(We, { "aria-hidden": "true" })
299
+ y(Oe, { "aria-hidden": "true" })
300
300
  ]),
301
301
  _: 1
302
302
  }, 8, ["disabled", "aria-controls", "label"]),
303
- (o(!0), l(z, null, j(s.value, (v, u) => (o(), D(De, {
303
+ (o(!0), l(R, null, z(s.value, (v, u) => (o(), j(Ee, {
304
304
  key: u,
305
305
  slide: v,
306
306
  direction: p.value,
@@ -321,13 +321,13 @@ const Ge = /* @__PURE__ */ S(Oe, [["render", Pe]]), Fe = ["aria-roledescription"
321
321
  "tooltip-position": "left"
322
322
  }, {
323
323
  default: $(() => [
324
- y(Ge, { "aria-hidden": "true" })
324
+ y(Fe, { "aria-hidden": "true" })
325
325
  ]),
326
326
  _: 1
327
327
  }, 8, ["disabled", "aria-controls", "label"])
328
- ], 8, Ue),
329
- g("div", Ze, [
330
- g("div", qe, [
328
+ ], 8, Ze),
329
+ g("div", qe, [
330
+ g("div", Ke, [
331
331
  y(H, {
332
332
  onClick: t[2] || (t[2] = (v) => x(1)),
333
333
  label: n.$t("pix-carousel.previous"),
@@ -343,8 +343,8 @@ const Ge = /* @__PURE__ */ S(Oe, [["render", Pe]]), Fe = ["aria-roledescription"
343
343
  disabled: d.value
344
344
  }, null, 8, ["label", "aria-controls", "disabled"])
345
345
  ]),
346
- g("div", Ke, [
347
- (o(!0), l(z, null, j(s.value, (v, u) => (o(), D(U, {
346
+ g("div", Xe, [
347
+ (o(!0), l(R, null, z(s.value, (v, u) => (o(), j(U, {
348
348
  key: u,
349
349
  description: v.description,
350
350
  title: v.title,
@@ -353,17 +353,17 @@ const Ge = /* @__PURE__ */ S(Oe, [["render", Pe]]), Fe = ["aria-roledescription"
353
353
  "aria-hidden": "true"
354
354
  }, {
355
355
  pagination: $(() => [
356
- g("span", Xe, b(u + 1) + " / " + b(s.value.length), 1)
356
+ g("span", Ye, b(u + 1) + " / " + b(s.value.length), 1)
357
357
  ]),
358
358
  _: 2
359
359
  }, 1032, ["description", "title", "title-level", "is-active"]))), 128))
360
360
  ])
361
361
  ])
362
- ], 8, Fe));
362
+ ], 8, Ue));
363
363
  }
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, {
364
+ }), Qe = "*{--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}}", ei = /* @__PURE__ */ S(Je, [["styles", [Qe]]]);
365
+ ie(/* @__PURE__ */ Object.assign({ "./locales/en.json": se, "./locales/es-419.json": oe, "./locales/es.json": le, "./locales/fr.json": re, "./locales/it.json": de, "./locales/nl.json": ce })).catch((e) => console.error(e));
366
+ const Z = ee(ei, {
367
367
  configureApp(e) {
368
368
  E.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(te, { i18next: E });
369
369
  }
@@ -371,11 +371,12 @@ const Z = ee(Qe, {
371
371
  Z.prototype.normalizeProps = (e) => ({
372
372
  ...e,
373
373
  titleLevel: k(e.titleLevel),
374
+ imageTextDisplay: ne(e.imageTextDisplay),
374
375
  slides: e.slides.map((i) => ({
375
376
  ...i,
376
377
  displayHeight: k(i.displayHeight),
377
378
  displayWidth: k(i.displayWidth),
378
- license: ne(i.license)
379
+ license: ae(i.license)
379
380
  }))
380
381
  });
381
382
  window.customElements.define("pix-carousel", Z);
@@ -1,7 +1,7 @@
1
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
2
  import { i as a, a as J, b as X } from "../i18n-Bs7vpvgi.js";
3
3
  import { R as Y } from "../Retry-B27znRn6.js";
4
- import { u as Z } from "../normalize-props-BAFlcMqH.js";
4
+ import { u as Z } from "../normalize-props-DtfVI0Xg.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 = {
@@ -1,6 +1,6 @@
1
1
  import { d as w, r as g, y as u, c as n, o as i, a as e, t as a, h as l, n as k, H as z, F as p, b as M, B as D, _ as T, f as C } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  import { a as L, i as _, b as S } from "../i18n-Bs7vpvgi.js";
3
- import { u as j } from "../normalize-props-BAFlcMqH.js";
3
+ import { u as j } from "../normalize-props-DtfVI0Xg.js";
4
4
  import { r as F, q as $, t as f } from "../temporal.utils-DBcWSjWy.js";
5
5
  const B = {}, I = {}, N = {}, q = {
6
6
  "select-conversation": { "select-response-title": "Sélectionnez le message que {{username}} devrait envoyer :", "message-date": "{{messageDay, relativetime(numeric: auto)}} · {{messageTime, datetime(timeStyle: short)}}", "incoming-message-sr": "Message de {{username}} reçu {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "outgoing-message-sr": "Message envoyé par {{username}} {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "good-idea": "Bonne idée", "bad-idea": "Mauvaise idée" }
@@ -1,6 +1,6 @@
1
- import { d as N, r as B, g as I, c as g, o as u, L as x, i as p, h as f, n as b, a as h, m as T, t as $, _ as L, y as d, N as E, q as F, F as k, b as A, e as H, f as P } from "./_plugin-vue_export-helper-CJxDisp0.js";
2
- import { u as K, a as R } from "./normalize-props-BAFlcMqH.js";
3
- function D(e, s = V) {
1
+ import { d as B, r as I, g as L, c as g, o as u, L as x, i as p, h as f, n as b, a as h, m as E, t as $, _ as S, y as d, N as F, q as A, F as k, b as H, e as K, f as P } from "./_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { a as N, u as R, b as D } from "./normalize-props-DtfVI0Xg.js";
3
+ function V(e, s = G) {
4
4
  const a = [...e];
5
5
  for (let o = a.length - 1; o > 0; o--) {
6
6
  const l = s() % (o + 1);
@@ -8,10 +8,10 @@ function D(e, s = V) {
8
8
  }
9
9
  return a;
10
10
  }
11
- function V() {
11
+ function G() {
12
12
  return Math.floor(Math.random() * 2 ** 32);
13
13
  }
14
- const G = ["aria-labelledby", "aria-selected", "tabindex"], J = { key: 0 }, U = ["id"], W = ["id"], X = /* @__PURE__ */ N({
14
+ const J = ["aria-labelledby", "aria-selected", "tabindex"], U = { key: 0 }, W = ["id"], X = ["id"], Y = /* @__PURE__ */ B({
15
15
  __name: "ImageOption.ce",
16
16
  props: {
17
17
  choice: { type: Object },
@@ -23,12 +23,12 @@ const G = ["aria-labelledby", "aria-selected", "tabindex"], J = { key: 0 }, U =
23
23
  },
24
24
  emits: ["toggle", "next", "previous"],
25
25
  setup(e, { expose: s }) {
26
- const a = e, o = B();
26
+ const a = e, o = I();
27
27
  function l() {
28
28
  o.value.focus();
29
29
  }
30
30
  s({ focus: l });
31
- const n = I();
31
+ const n = L();
32
32
  return (c, t) => (u(), g("div", {
33
33
  ref_key: "el",
34
34
  ref: o,
@@ -44,22 +44,22 @@ const G = ["aria-labelledby", "aria-selected", "tabindex"], J = { key: 0 }, U =
44
44
  t[3] || (t[3] = x(p((r) => c.$emit("next"), ["stop", "prevent"]), ["down", "right"]))
45
45
  ]
46
46
  }, [
47
- e.choice.image ? (u(), g("figure", J, [
48
- h("img", T(e.choice.image, {
47
+ e.choice.image ? (u(), g("figure", U, [
48
+ h("img", E(e.choice.image, {
49
49
  class: e.imageClass,
50
50
  alt: ""
51
51
  }), null, 16),
52
52
  h("figcaption", {
53
53
  class: b(e.nameClass),
54
54
  id: f(n)
55
- }, $(e.choice.name), 11, U)
55
+ }, $(e.choice.name), 11, W)
56
56
  ])) : (u(), g("span", {
57
57
  key: 1,
58
58
  id: f(n)
59
- }, $(e.choice.name), 9, W))
60
- ], 42, G));
59
+ }, $(e.choice.name), 9, X))
60
+ ], 42, J));
61
61
  }
62
- }), Y = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', Z = /* @__PURE__ */ L(X, [["styles", [Y]]]), _ = ["id", "innerHTML"], ee = ["aria-multiselectable", "aria-labelledby"], ie = /* @__PURE__ */ N({
62
+ }), Z = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', _ = /* @__PURE__ */ S(Y, [["styles", [Z]]]), ee = ["id", "innerHTML"], ie = ["aria-multiselectable", "aria-labelledby"], te = /* @__PURE__ */ B({
63
63
  __name: "ImageQuiz.ce",
64
64
  props: {
65
65
  multiple: { type: Boolean, default: !1 },
@@ -73,14 +73,14 @@ const G = ["aria-labelledby", "aria-selected", "tabindex"], J = { key: 0 }, U =
73
73
  },
74
74
  emits: ["answer"],
75
75
  setup(e, { emit: s }) {
76
- const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = B(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r = I();
77
- E(t, () => {
76
+ const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : V(e.choices)), n = I(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r = L();
77
+ F(t, () => {
78
78
  a("answer", t.value);
79
79
  }, { immediate: !1 });
80
- const O = d(() => {
80
+ const T = d(() => {
81
81
  const i = n.value.indexOf(!0);
82
82
  return i === -1 ? 0 : i;
83
- }), y = F("options");
83
+ }), y = A("options");
84
84
  function w(i) {
85
85
  e.multiple || n.value.fill(!1), n.value[i] = !n.value[i];
86
86
  }
@@ -92,7 +92,7 @@ const G = ["aria-labelledby", "aria-selected", "tabindex"], J = { key: 0 }, U =
92
92
  id: f(r),
93
93
  class: b(["image-quiz-label", { "sr-only": !e.showName }]),
94
94
  innerHTML: e.name
95
- }, null, 10, _),
95
+ }, null, 10, ee),
96
96
  h("div", {
97
97
  role: "listbox",
98
98
  class: "image-quiz",
@@ -100,42 +100,44 @@ const G = ["aria-labelledby", "aria-selected", "tabindex"], J = { key: 0 }, U =
100
100
  "aria-labelledby": f(r),
101
101
  "aria-orientation": "horizontal"
102
102
  }, [
103
- (u(!0), g(k, null, A(l.value, (Q, m) => (u(), H(Z, {
103
+ (u(!0), g(k, null, H(l.value, (q, m) => (u(), K(_, {
104
104
  ref_for: !0,
105
105
  ref_key: "options",
106
106
  ref: y,
107
- choice: Q,
107
+ choice: q,
108
108
  "max-choices-per-line": e.maxChoicesPerLine,
109
109
  key: m,
110
110
  "name-class": o.value,
111
111
  "image-class": e.imageChoicesSize,
112
112
  selected: n.value[m],
113
- "tab-focusable": m === O.value,
113
+ "tab-focusable": m === T.value,
114
114
  onToggle: (z) => w(m),
115
115
  onNext: (z) => v(m + 1),
116
116
  onPrevious: (z) => v(m - 1)
117
117
  }, null, 8, ["choice", "max-choices-per-line", "name-class", "image-class", "selected", "tab-focusable", "onToggle", "onNext", "onPrevious"]))), 128))
118
- ], 8, ee)
118
+ ], 8, ie)
119
119
  ], 64));
120
120
  }
121
- }), te = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", j = /* @__PURE__ */ L(ie, [["styles", [te]]]);
122
- function S(e) {
121
+ }), ae = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", j = /* @__PURE__ */ S(te, [["styles", [ae]]]);
122
+ function M(e) {
123
123
  return {
124
124
  ...e,
125
- maxChoicesPerLine: K(e.maxChoicesPerLine),
125
+ maxChoicesPerLine: R(e.maxChoicesPerLine),
126
+ imageChoicesSize: N(e.imageChoicesSize),
126
127
  choices: e.choices.map((s) => ({
127
128
  ...s,
128
- image: R(s.image)
129
+ image: D(s.image),
130
+ response: N(s.response)
129
131
  }))
130
132
  };
131
133
  }
132
- const q = P(j);
133
- q.prototype.normalizeProps = S;
134
- window.customElements.define("image-quiz", q);
135
- const M = P(j);
136
- M.prototype.normalizeProps = S;
137
- window.customElements.define("qcu-image", M);
134
+ const O = P(j);
135
+ O.prototype.normalizeProps = M;
136
+ window.customElements.define("image-quiz", O);
137
+ const Q = P(j);
138
+ Q.prototype.normalizeProps = M;
139
+ window.customElements.define("qcu-image", Q);
138
140
  export {
139
141
  j as I,
140
- S as n
142
+ M as n
141
143
  };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import "./components/capacity-calculation.ce.js.js";
3
3
  import "./components/clickable-image.ce.js.js";
4
4
  import "./components/complete-phrase.ce.js.js";
5
5
  import "./components/flip-cards.ce.js.js";
6
- import "./image-quiz.ce-jh8ME9Wm.js";
6
+ import "./image-quiz.ce-Yh1nj0LD.js";
7
7
  import "./components/image-quizzes.ce.js.js";
8
8
  import "./components/message-conversation.ce.js.js";
9
9
  import "./components/pix-article.ce.js.js";
@@ -11,7 +11,7 @@ function r(n) {
11
11
  return n === "" ? void 0 : n;
12
12
  }
13
13
  export {
14
- t as a,
15
- r as b,
14
+ r as a,
15
+ t as b,
16
16
  u
17
17
  };
package/dist/schema.js CHANGED
@@ -23,7 +23,7 @@ const c = e.object({
23
23
  y: e.number().optional()
24
24
  }).optional(),
25
25
  info: e.string().required(),
26
- tooltipPosition: e.string().valid("bottom").optional()
26
+ tooltipPosition: e.string().empty("").valid("bottom").optional()
27
27
  }).required()).required().min(1)
28
28
  }), l = e.object({
29
29
  titleLevel: e.number().optional(),
@@ -38,7 +38,7 @@ const c = e.object({
38
38
  userMessage: e.string().required(),
39
39
  llmMessage: e.string().required(),
40
40
  wordsToAdd: e.array().items(e.string()).required()
41
- }), g = e.object({
41
+ }), m = e.object({
42
42
  titleLevel: e.number().optional(),
43
43
  name: e.string().required(),
44
44
  cardList: e.array().items(
@@ -55,17 +55,17 @@ const c = e.object({
55
55
  maxChoicesPerLine: e.number().optional(),
56
56
  hideChoicesName: e.boolean().optional(),
57
57
  orderChoices: e.boolean().optional(),
58
- imageChoicesSize: e.string().valid("icon", "medium", "large").optional(),
58
+ imageChoicesSize: e.string().empty("").valid("icon", "medium", "large").optional(),
59
59
  choices: e.array().items(
60
60
  e.object({
61
61
  name: e.string().required(),
62
62
  image: e.object({
63
63
  src: e.string().required()
64
64
  }).optional().unknown(!0),
65
- response: e.string().optional()
65
+ response: e.string().empty("").optional()
66
66
  }).required()
67
67
  ).required()
68
- }).required(), m = e.object({
68
+ }).required(), g = e.object({
69
69
  quizzes: e.array().items(s).required()
70
70
  }).required(), r = {
71
71
  userName: e.string().required(),
@@ -137,8 +137,8 @@ const c = e.object({
137
137
  author: e.string().required(),
138
138
  date: e.string().required(),
139
139
  paragraphs: e.array().items(e.string().required()),
140
- highlightedSentence: e.string().optional(),
141
- colorOfHighlightSentence: e.string().optional()
140
+ highlightedSentence: e.string().empty("").optional(),
141
+ colorOfHighlightSentence: e.string().empty("").optional()
142
142
  }), j = e.object({
143
143
  name: e.string().allow("").required(),
144
144
  attribution: e.string().allow("").required(),
@@ -178,7 +178,7 @@ const c = e.object({
178
178
  disableAnimation: e.boolean().required(),
179
179
  disableStyleAroundImage: e.boolean().optional(),
180
180
  enableLoop: e.boolean().optional(),
181
- imageTextDisplay: e.string().optional()
181
+ imageTextDisplay: e.string().empty("").optional()
182
182
  }).meta({ title: "pix-carousel" }).required(), f = e.object({
183
183
  options: e.array().items(e.object({
184
184
  label: e.string().required(),
@@ -239,7 +239,7 @@ const c = e.object({
239
239
  goodIdea: e.boolean().required(),
240
240
  feedback: e.string().required()
241
241
  })).required()
242
- }), T = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": c, "./capacity-calculation/capacity-calculation.schema.js": u, "./clickable-image/clickable-image.schema.js": d, "./complete-phrase/complete-phrase.schema.js": l, "./flip-cards/flip-cards.schema.js": g, "./image-quiz/image-quiz.schema.js": s, "./image-quiz/image-quizzes.schema.js": m, "./message-conversation/message-conversation.schema.js": q, "./phishing-message/phishing-message.schema.js": b, "./phishing-notification/phishing-notification.schema.js": p, "./pix-article/pix-article.schema.js": _, "./pix-carousel/pix-carousel.schema.js": x, "./pix-cursor/pix-cursor.schema.js": f, "./pix-llm/llm-compare-messages.schema.js": I, "./pix-llm/llm-messages.schema.js": S, "./pix-llm/llm-prompt-select.schema.js": k, "./qcm-deepfake/qcm-deepfake.schema.js": z, "./select-conversation/select-conversation.schema.js": M }), N = Object.fromEntries(Object.entries(T).map(([o, a]) => [
242
+ }), T = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": c, "./capacity-calculation/capacity-calculation.schema.js": u, "./clickable-image/clickable-image.schema.js": d, "./complete-phrase/complete-phrase.schema.js": l, "./flip-cards/flip-cards.schema.js": m, "./image-quiz/image-quiz.schema.js": s, "./image-quiz/image-quizzes.schema.js": g, "./message-conversation/message-conversation.schema.js": q, "./phishing-message/phishing-message.schema.js": b, "./phishing-notification/phishing-notification.schema.js": p, "./pix-article/pix-article.schema.js": _, "./pix-carousel/pix-carousel.schema.js": x, "./pix-cursor/pix-cursor.schema.js": f, "./pix-llm/llm-compare-messages.schema.js": I, "./pix-llm/llm-messages.schema.js": S, "./pix-llm/llm-prompt-select.schema.js": k, "./qcm-deepfake/qcm-deepfake.schema.js": z, "./select-conversation/select-conversation.schema.js": M }), N = Object.fromEntries(Object.entries(T).map(([o, a]) => [
243
243
  o.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
244
244
  a
245
245
  ]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "description": "A collection of interactive components to be used in Pix challenges or modules",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",