@1024pix/epreuves-components 0.9.6 → 0.10.0

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,4 +1,4 @@
1
- import { a as v, r as i, h, c, o as d, g as y, f as l, i as w, F as f, b as k, t as S, _ as C, d as L } from "../_plugin-vue_export-helper-DLH45Sxm.js";
1
+ import { a as v, r as c, h, c as i, o as d, g as y, f as l, j as w, F as f, b as k, t as S, _ as C, d as L } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
2
  import "./llm-messages.ce.js.js";
3
3
  const N = { class: "prompt-select" }, P = { class: "prompt-select__options" }, B = ["disabled", "onClick"], E = /* @__PURE__ */ v({
4
4
  __name: "LLMPromptSelect.ce",
@@ -8,10 +8,10 @@ const N = { class: "prompt-select" }, P = { class: "prompt-select__options" }, B
8
8
  speed: { type: Number }
9
9
  },
10
10
  setup(_, { expose: b }) {
11
- const o = _, s = i(o.messages), m = i(o.prompts.map((e) => ({
11
+ const o = _, s = c(o.messages), m = c(o.prompts.map((e) => ({
12
12
  ...e,
13
13
  disabled: !1
14
- }))), r = i(!1);
14
+ }))), r = c(!1);
15
15
  function g() {
16
16
  s.value = o.messages, m.value = o.prompts.map((e) => ({
17
17
  ...e,
@@ -45,7 +45,7 @@ const N = { class: "prompt-select" }, P = { class: "prompt-select__options" }, B
45
45
  }
46
46
  return (e, t) => {
47
47
  const a = h("llm-messages");
48
- return d(), c(f, null, [
48
+ return d(), i(f, null, [
49
49
  y(a, { messages: s.value }, null, 8, ["messages"]),
50
50
  l("div", N, [
51
51
  t[0] || (t[0] = l("p", { class: "prompt-select__label" }, [
@@ -53,7 +53,7 @@ const N = { class: "prompt-select" }, P = { class: "prompt-select__options" }, B
53
53
  l("span", { class: "sr-only" }, "  une fois sélectionnés, les prompts ne sont plus disponibles. ")
54
54
  ], -1)),
55
55
  l("div", P, [
56
- (d(!0), c(f, null, k(m.value, (n, p) => (d(), c("button", {
56
+ (d(!0), i(f, null, k(m.value, (n, p) => (d(), i("button", {
57
57
  key: p,
58
58
  disabled: n.disabled || r.value,
59
59
  onClick: (u) => x(n)
@@ -1,13 +1,10 @@
1
- import { _ as b, c as o, o as s, a as M, r as v, s as N, B as A, q as w, y as f, f as y, i as k, t as h, g as C, F as x, b as D, x as B, e as E, d as T } from "../_plugin-vue_export-helper-DLH45Sxm.js";
2
- const V = ".loader{width:8px;aspect-ratio:1;border-radius:50%;animation:l5 1s infinite linear alternate;transform:translate(100%)}@keyframes l5{0%{box-shadow:13px 0 #000,-13px 0 #0002;background:#000}33%{box-shadow:13px 0 #000,-13px 0 #0002;background:#0002}66%{box-shadow:13px 0 #0002,-13px 0 #000;background:#0002}to{box-shadow:13px 0 #0002,-13px 0 #000;background:#000}}@media (prefers-reduced-motion: reduce){.loader{display:none}}", F = {}, z = { class: "loader" };
3
- function I(t, l) {
4
- return s(), o("div", z);
5
- }
6
- const L = /* @__PURE__ */ b(F, [["render", I], ["styles", [V]]]), j = ["part"], q = {
1
+ import { a as k, r as b, q as D, E as C, c as r, o as t, v as x, x as _, f as y, j as w, t as h, g as $, F as v, b as M, _ as N, D as E, e as B, d as T } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
+ import { L as V } from "../Loading.ce-BRzyhDRe.js";
3
+ const F = ["part"], L = {
7
4
  key: 1,
8
5
  class: "message__loader message__content",
9
6
  "aria-hidden": "true"
10
- }, O = ["part"], P = { key: 0 }, R = /* @__PURE__ */ M({
7
+ }, j = ["part"], z = { key: 0 }, I = /* @__PURE__ */ k({
11
8
  __name: "Message.ce",
12
9
  props: {
13
10
  displaySender: { type: Boolean, default: !0 },
@@ -16,97 +13,97 @@ const L = /* @__PURE__ */ b(F, [["render", I], ["styles", [V]]]), j = ["part"],
16
13
  animationDuration: { type: Number },
17
14
  loadingDuration: { type: Number }
18
15
  },
19
- setup(t, { expose: l }) {
20
- const n = v("hidden"), m = v([]), g = N(() => t.message.content.split(`
16
+ setup(n, { expose: c }) {
17
+ const s = b("hidden"), l = b([]), u = D(() => n.message.content.split(`
21
18
  `));
22
- function c(e) {
19
+ function m(e) {
23
20
  return new Promise((i) => {
24
- const r = setTimeout(i, e);
25
- m.value.push(r);
21
+ const o = setTimeout(i, e);
22
+ l.value.push(o);
26
23
  });
27
24
  }
28
- async function u() {
29
- await c(t.startAnimation), n.value = "loading", await c(t.loadingDuration), n.value = "visible", await c(t.animationDuration);
25
+ async function g() {
26
+ await m(n.startAnimation), s.value = "loading", await m(n.loadingDuration), s.value = "visible", await m(n.animationDuration);
30
27
  }
31
- A(u);
28
+ C(g);
32
29
  async function a() {
33
- n.value = "hidden", m.value.forEach(clearTimeout), await u();
30
+ s.value = "hidden", l.value.forEach(clearTimeout), await g();
34
31
  }
35
- return l({
32
+ return c({
36
33
  reset: a
37
- }), (e, i) => (s(), o("div", {
38
- class: w(["message", [
34
+ }), (e, i) => (t(), r("div", {
35
+ class: x(["message", [
39
36
  `message--${e.message.direction}`,
40
- { "hidden-state": n.value === "hidden" }
37
+ { "hidden-state": s.value === "hidden" }
41
38
  ]])
42
39
  }, [
43
- e.displaySender ? (s(), o("p", {
40
+ e.displaySender ? (t(), r("p", {
44
41
  key: 0,
45
42
  class: "message__sender",
46
43
  part: `sender ${e.message.direction}`
47
44
  }, [
48
45
  i[0] || (i[0] = y("span", { class: "sr-only" }, "Message de ", -1)),
49
- k(h(e.message.userName), 1)
50
- ], 8, j)) : f("", !0),
51
- n.value === "loading" ? (s(), o("div", q, [
52
- C(L)
53
- ])) : f("", !0),
46
+ w(h(e.message.userName), 1)
47
+ ], 8, F)) : _("", !0),
48
+ s.value === "loading" ? (t(), r("div", L, [
49
+ $(V)
50
+ ])) : _("", !0),
54
51
  y("p", {
55
- class: w(["message__content", { "hidden-state": n.value !== "visible" }]),
52
+ class: x(["message__content", { "hidden-state": s.value !== "visible" }]),
56
53
  part: `message ${e.message.direction}`
57
54
  }, [
58
- (s(!0), o(x, null, D(g.value, (r, d) => (s(), o(x, { key: d }, [
59
- d > 0 ? (s(), o("br", P)) : f("", !0),
60
- k(" " + h(r), 1)
55
+ (t(!0), r(v, null, M(u.value, (o, d) => (t(), r(v, { key: d }, [
56
+ d > 0 ? (t(), r("br", z)) : _("", !0),
57
+ w(" " + h(o), 1)
61
58
  ], 64))), 128))
62
- ], 10, O)
59
+ ], 10, j)
63
60
  ], 2));
64
61
  }
65
- }), G = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion: reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", H = /* @__PURE__ */ b(R, [["styles", [G]]]), J = { part: "conversation" }, K = { class: "sr-only" }, Q = /* @__PURE__ */ M({
62
+ }), q = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion: reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", O = /* @__PURE__ */ N(I, [["styles", [q]]]), P = { part: "conversation" }, R = { class: "sr-only" }, G = /* @__PURE__ */ k({
66
63
  __name: "MessageConversation.ce",
67
64
  props: {
68
65
  title: { default: "Conversation par messages", type: String },
69
66
  messages: { type: Array },
70
67
  animationSpeed: { default: 20, type: Number }
71
68
  },
72
- setup(t, { expose: l }) {
73
- const n = 50 * t.animationSpeed, m = N(
74
- () => t.messages.reduce(
69
+ setup(n, { expose: c }) {
70
+ const s = 50 * n.animationSpeed, l = D(
71
+ () => n.messages.reduce(
75
72
  (a, e, i) => {
76
- const r = c(e);
73
+ const o = m(e);
77
74
  if (i === 0)
78
- return [{ message: e, displaySender: !0, startAnimation: 0, animationDuration: r }];
75
+ return [{ message: e, displaySender: !0, startAnimation: 0, animationDuration: o }];
79
76
  const {
80
77
  message: d,
81
78
  startAnimation: p,
82
- animationDuration: _
83
- } = a.at(-1), S = e.direction !== d.direction || e.userName !== d.userName, $ = p + _ + n;
84
- return [...a, { message: e, displaySender: S, startAnimation: $, animationDuration: r }];
79
+ animationDuration: f
80
+ } = a.at(-1), S = e.direction !== d.direction || e.userName !== d.userName, A = p + f + s;
81
+ return [...a, { message: e, displaySender: S, startAnimation: A, animationDuration: o }];
85
82
  },
86
83
  []
87
84
  )
88
- ), g = B("messages");
89
- function c(a) {
90
- return a.content.length * t.animationSpeed;
85
+ ), u = E("messages");
86
+ function m(a) {
87
+ return a.content.length * n.animationSpeed;
91
88
  }
92
- function u() {
93
- g.value.forEach((a) => a.reset());
89
+ function g() {
90
+ u.value.forEach((a) => a.reset());
94
91
  }
95
- return l({
96
- reset: u
97
- }), (a, e) => (s(), o("figure", J, [
98
- y("figcaption", K, h(a.title), 1),
99
- (s(!0), o(x, null, D(m.value, ({ message: i, displaySender: r, startAnimation: d, animationDuration: p }, _) => (s(), E(H, {
92
+ return c({
93
+ reset: g
94
+ }), (a, e) => (t(), r("figure", P, [
95
+ y("figcaption", R, h(a.title), 1),
96
+ (t(!0), r(v, null, M(l.value, ({ message: i, displaySender: o, startAnimation: d, animationDuration: p }, f) => (t(), B(O, {
100
97
  ref_for: !0,
101
98
  ref: "messages",
102
99
  message: i,
103
100
  "start-animation": d,
104
101
  "animation-duration": p,
105
- "loading-duration": n,
106
- "display-sender": r,
107
- key: _
102
+ "loading-duration": s,
103
+ "display-sender": o,
104
+ key: f
108
105
  }, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
109
106
  ]));
110
107
  }
111
- }), U = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}", W = /* @__PURE__ */ b(Q, [["styles", [U]]]);
112
- window.customElements.define("message-conversation", T(W));
108
+ }), H = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}", J = /* @__PURE__ */ N(G, [["styles", [H]]]);
109
+ window.customElements.define("message-conversation", T(J));
@@ -1,19 +1,20 @@
1
- import { a as b, s as _, c as a, o as s, q as B, f as l, y as E, J as M, i as T, t as g, _ as v, r as y, v as z, g as u, K as C, k as R, E as x, p, F as L, b as $, e as S, d as D } from "../_plugin-vue_export-helper-DLH45Sxm.js";
2
- import { B as k, N as A, a as H, i as N, b as V } from "../NavigationButton.ce-DrjZmR37.js";
3
- const I = {
1
+ import { a as b, q as _, c as a, o as s, v as N, f as l, x as E, H as M, j as T, t as m, _ as v, r as y, C as z, g as u, G as C, y as H, I as x, B as p, F as L, b as $, e as S, d as R } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
+ import { a as D, i as k, b as I } from "../i18n-DZYcdfDF.js";
3
+ import { B as A, N as B } from "../NavigationButton.ce-RaQYJjPs.js";
4
+ const V = {
4
5
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
5
6
  }, F = {
6
7
  "pix-carousel": { license: "Licencia de imagen", next: "Siguiente", of: "{{ currentSlide }} de {{ slideLength }}", previous: "Anterior", slide: "Diapositiva", title: "Carrusel" }
7
- }, P = {
8
- "pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
9
8
  }, G = {
9
+ "pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
10
+ }, P = {
10
11
  "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
11
12
  }, O = {
12
13
  "pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
13
- }, Z = ["aria-level"], q = ["innerHTML"], J = {
14
+ }, Z = ["aria-level"], q = ["innerHTML"], W = {
14
15
  key: 1,
15
16
  class: "description"
16
- }, K = /* @__PURE__ */ b({
17
+ }, J = /* @__PURE__ */ b({
17
18
  __name: "SlideInfo.ce",
18
19
  props: {
19
20
  description: { type: String },
@@ -30,7 +31,7 @@ const I = {
30
31
  return t.description.match(e);
31
32
  });
32
33
  return (n, e) => (s(), a("div", {
33
- class: B(["slide-info", { active: n.isActive }])
34
+ class: N(["slide-info", { active: n.isActive }])
34
35
  }, [
35
36
  l("div", {
36
37
  role: "heading",
@@ -38,16 +39,16 @@ const I = {
38
39
  class: "title"
39
40
  }, [
40
41
  M(n.$slots, "pagination"),
41
- T(" " + g(n.title), 1)
42
+ T(" " + m(n.title), 1)
42
43
  ], 8, Z),
43
44
  i.value ? (s(), a("div", {
44
45
  key: 0,
45
46
  class: "description",
46
47
  innerHTML: n.description
47
- }, null, 8, q)) : n.description ? (s(), a("p", J, g(n.description), 1)) : E("", !0)
48
+ }, null, 8, q)) : n.description ? (s(), a("p", W, m(n.description), 1)) : E("", !0)
48
49
  ], 2));
49
50
  }
50
- }), W = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;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: 768px){.slide-info.active{border:none;padding-left:0}}", j = /* @__PURE__ */ v(K, [["styles", [W]]]), Q = ["aria-hidden", "aria-roledescription", "aria-label"], U = ["alt", "src"], X = {
51
+ }), K = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width: 576px){.slide-info.active{border:none;padding-left:0}}", j = /* @__PURE__ */ v(J, [["styles", [K]]]), Q = ["aria-hidden", "aria-roledescription", "aria-label"], U = ["alt", "src"], X = {
51
52
  key: 0,
52
53
  class: "license"
53
54
  }, Y = ["href"], ee = {
@@ -75,9 +76,9 @@ const I = {
75
76
  }, 800));
76
77
  });
77
78
  const n = _(() => t.direction === 1);
78
- return (e, m) => (s(), a("div", {
79
+ return (e, f) => (s(), a("div", {
79
80
  role: "group",
80
- class: B(["slide", { active: e.isActive, [i.value]: i.value, "is-next": n.value, "disable-animation": e.disableAnimation }]),
81
+ class: N(["slide", { active: e.isActive, [i.value]: i.value, "is-next": n.value, "disable-animation": e.disableAnimation }]),
81
82
  "aria-hidden": !e.isActive,
82
83
  "aria-roledescription": e.$t("pix-carousel.slide"),
83
84
  "aria-label": e.label
@@ -93,11 +94,11 @@ const I = {
93
94
  src: e.slide.image.src
94
95
  }, null, 12, U),
95
96
  e.slide.license ? (s(), a("p", X, [
96
- T(g(e.slide.license.attribution) + " / ", 1),
97
+ T(m(e.slide.license.attribution) + " / ", 1),
97
98
  l("a", {
98
99
  href: e.slide.license.url,
99
100
  target: "_blank"
100
- }, g(e.slide.license.name), 9, Y)
101
+ }, m(e.slide.license.name), 9, Y)
101
102
  ])) : E("", !0)
102
103
  ], 4)) : e.type === "image-text" ? (s(), a("div", ee, [
103
104
  l("img", {
@@ -123,7 +124,7 @@ const I = {
123
124
  }, null, 8, ["description", "title", "is-active", "title-level"])
124
125
  ], 10, Q));
125
126
  }
126
- }), oe = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:920px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;gap:12px;padding:0 16px}@media only screen and (max-width: 768px){.license{font-size:.5rem}.image-container img{border-radius:8px}.text-image-container{padding:16px}}@media (prefers-reduced-motion: reduce){.slide{transition:none}}", ae = /* @__PURE__ */ v(se, [["styles", [oe]]]), le = {}, re = {
127
+ }), oe = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:920px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;gap:12px;padding:0 16px}@media only screen and (max-width: 576px){.license{font-size:.5rem}.image-container img{border-radius:8px}.text-image-container{padding:16px}}@media (prefers-reduced-motion: reduce){.slide{transition:none}}", ae = /* @__PURE__ */ v(se, [["styles", [oe]]]), le = {}, re = {
127
128
  width: "25",
128
129
  height: "24",
129
130
  viewBox: "0 0 25 24",
@@ -145,7 +146,7 @@ const ce = /* @__PURE__ */ v(le, [["render", de]]), pe = {}, ue = {
145
146
  fill: "inherit",
146
147
  xmlns: "http://www.w3.org/2000/svg"
147
148
  };
148
- function ge(t, i) {
149
+ function me(t, i) {
149
150
  return s(), a("svg", ue, i[0] || (i[0] = [
150
151
  l("path", {
151
152
  d: "M13.0754 11.9996L9.27085 8.19536C9.05969 7.98403 8.9541 7.71878 8.9541 7.39961C8.9541 7.08044 9.05969 6.81519 9.27085 6.60386C9.48219 6.39269 9.74743 6.28711 10.0666 6.28711C10.3858 6.28711 10.651 6.39269 10.8624 6.60386L15.4564 11.1979C15.5682 11.3099 15.6499 11.4342 15.7016 11.5709C15.7533 11.7074 15.7791 11.8503 15.7791 11.9996C15.7791 12.1489 15.7533 12.2919 15.7016 12.4284C15.6499 12.565 15.5682 12.6894 15.4564 12.8014L10.8624 17.3954C10.651 17.6065 10.3858 17.7121 10.0666 17.7121C9.74743 17.7121 9.48219 17.6065 9.27085 17.3954C9.05969 17.184 8.9541 16.9188 8.9541 16.5996C8.9541 16.2804 9.05969 16.0152 9.27085 15.8039L13.0754 11.9996Z",
@@ -153,7 +154,7 @@ function ge(t, i) {
153
154
  }, null, -1)
154
155
  ]));
155
156
  }
156
- const me = /* @__PURE__ */ v(pe, [["render", ge]]), fe = ["aria-roledescription"], ve = ["id"], he = { class: "footer" }, xe = { class: "control" }, ye = { class: "slide-info-container" }, be = { class: "tagination" }, _e = /* @__PURE__ */ b({
157
+ const fe = /* @__PURE__ */ v(pe, [["render", me]]), ge = ["aria-roledescription"], ve = ["id"], he = { class: "footer" }, xe = { class: "control" }, ye = { class: "slide-info-container" }, be = { class: "tagination" }, _e = /* @__PURE__ */ b({
157
158
  __name: "Carousel.ce",
158
159
  props: {
159
160
  randomSlides: { type: Boolean },
@@ -164,22 +165,22 @@ const me = /* @__PURE__ */ v(pe, [["render", ge]]), fe = ["aria-roledescription"
164
165
  aspectRatio: { type: Number }
165
166
  },
166
167
  setup(t) {
167
- const i = t, n = i.titleLevel ?? 2, e = _(() => i.randomSlides ? [...i.slides].sort(() => Math.round(Math.random()) === 0 ? -1 : 1) : i.slides), m = y(0), w = y(1);
168
+ const i = t, n = i.titleLevel ?? 2, e = _(() => i.randomSlides ? [...i.slides].sort(() => Math.round(Math.random()) === 0 ? -1 : 1) : i.slides), f = y(0), w = y(1);
168
169
  function h(o) {
169
- w.value = o, m.value = (m.value - o + i.slides.length) % i.slides.length;
170
+ w.value = o, f.value = (f.value - o + i.slides.length) % i.slides.length;
170
171
  }
171
- const f = R();
172
+ const g = H();
172
173
  return (o, r) => (s(), a("section", {
173
174
  "aria-roledescription": o.$t("pix-carousel.title")
174
175
  }, [
175
176
  l("div", {
176
177
  "aria-live": "polite",
177
178
  class: "slides",
178
- id: p(f)
179
+ id: p(g)
179
180
  }, [
180
- u(k, {
181
+ u(A, {
181
182
  class: "carousel__nav previous",
182
- "aria-controls": p(f),
183
+ "aria-controls": p(g),
183
184
  onClick: r[0] || (r[0] = (d) => h(1)),
184
185
  label: o.$t("pix-carousel.previous"),
185
186
  "tooltip-position": "right"
@@ -194,37 +195,37 @@ const me = /* @__PURE__ */ v(pe, [["render", ge]]), fe = ["aria-roledescription"
194
195
  slide: d,
195
196
  direction: w.value,
196
197
  label: o.$t("pix-carousel.of", { currentSlide: c + 1, slideLength: e.value.length }),
197
- "is-active": m.value === c,
198
+ "is-active": f.value === c,
198
199
  "title-level": p(n),
199
200
  "aspect-ratio": o.aspectRatio,
200
201
  type: o.type,
201
202
  "disable-animation": o.disableAnimation
202
203
  }, null, 8, ["slide", "direction", "label", "is-active", "title-level", "aspect-ratio", "type", "disable-animation"]))), 128)),
203
- u(k, {
204
+ u(A, {
204
205
  class: "carousel__nav next",
205
- "aria-controls": p(f),
206
+ "aria-controls": p(g),
206
207
  onClick: r[1] || (r[1] = (d) => h(-1)),
207
208
  label: o.$t("pix-carousel.next"),
208
209
  "tooltip-position": "left"
209
210
  }, {
210
211
  default: x(() => [
211
- u(me, { "aria-hidden": "true" })
212
+ u(fe, { "aria-hidden": "true" })
212
213
  ]),
213
214
  _: 1
214
215
  }, 8, ["aria-controls", "label"])
215
216
  ], 8, ve),
216
217
  l("div", he, [
217
218
  l("div", xe, [
218
- u(A, {
219
+ u(B, {
219
220
  onClick: r[2] || (r[2] = (d) => h(1)),
220
221
  label: o.$t("pix-carousel.previous"),
221
- "aria-controls": p(f),
222
+ "aria-controls": p(g),
222
223
  direction: "previous"
223
224
  }, null, 8, ["label", "aria-controls"]),
224
- u(A, {
225
+ u(B, {
225
226
  onClick: r[3] || (r[3] = (d) => h(-1)),
226
227
  label: o.$t("pix-carousel.next"),
227
- "aria-controls": p(f),
228
+ "aria-controls": p(g),
228
229
  direction: "next"
229
230
  }, null, 8, ["label", "aria-controls"])
230
231
  ]),
@@ -234,22 +235,22 @@ const me = /* @__PURE__ */ v(pe, [["render", ge]]), fe = ["aria-roledescription"
234
235
  description: d.description,
235
236
  title: d.title,
236
237
  "title-level": p(n),
237
- "is-active": m.value === c,
238
+ "is-active": f.value === c,
238
239
  "aria-hidden": "true"
239
240
  }, {
240
241
  pagination: x(() => [
241
- l("span", be, g(c + 1) + " / " + g(e.value.length), 1)
242
+ l("span", be, m(c + 1) + " / " + m(e.value.length), 1)
242
243
  ]),
243
244
  _: 2
244
245
  }, 1032, ["description", "title", "title-level", "is-active"]))), 128))
245
246
  ])
246
247
  ])
247
- ], 8, fe));
248
+ ], 8, ge));
248
249
  }
249
- }), we = "*{--pix-neutral-0: white;--pix-neutral-800: #253858;--pix-primary-100: #CEC3F4;--pix-primary-300: #957EE8;--pix-primary-700: #452D9D;--pix-primary-900: #291A5D;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.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 .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .tagination{display:flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media only screen and (max-width: 768px){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}}", Ce = /* @__PURE__ */ v(_e, [["styles", [we]]]);
250
- H(/* @__PURE__ */ Object.assign({ "./locales/en.json": I, "./locales/es.json": F, "./locales/fr.json": P, "./locales/it.json": G, "./locales/nl.json": O })).catch((t) => console.error(t));
251
- window.customElements.define("pix-carousel", D(Ce, {
250
+ }), we = "*{--pix-neutral-0: white;--pix-neutral-800: #253858;--pix-primary-100: #CEC3F4;--pix-primary-300: #957EE8;--pix-primary-700: #452D9D;--pix-primary-900: #291A5D;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.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 .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .tagination{display:flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media only screen and (max-width: 576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", Ce = /* @__PURE__ */ v(_e, [["styles", [we]]]);
251
+ D(/* @__PURE__ */ Object.assign({ "./locales/en.json": V, "./locales/es.json": F, "./locales/fr.json": G, "./locales/it.json": P, "./locales/nl.json": O })).catch((t) => console.error(t));
252
+ window.customElements.define("pix-carousel", R(Ce, {
252
253
  configureApp(t) {
253
- N.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(V, { i18next: N });
254
+ k.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(I, { i18next: k });
254
255
  }
255
256
  }));
@@ -1,6 +1,7 @@
1
- import { a as S, r as k, k as y, s as m, h as A, c as a, o as i, f as s, C as B, p as c, t as u, F as f, b, D as H, g, q as C, E as L, y as D, n as F, _ as P, d as q } from "../_plugin-vue_export-helper-DLH45Sxm.js";
2
- import { N as w, a as G, i as j, b as R } from "../NavigationButton.ce-DrjZmR37.js";
3
- const U = {}, J = {}, K = {
1
+ import { a as B, r as y, y as k, q as m, h as S, c as a, o as i, f as s, J as E, B as c, t as u, F as f, b, K as H, g, v as C, I as L, x as F, A as P, _ as D, d as q } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
+ import { a as G, i as w, b as J } from "../i18n-DZYcdfDF.js";
3
+ import { N as j } from "../NavigationButton.ce-RaQYJjPs.js";
4
+ const K = {}, R = {}, U = {
4
5
  "pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
5
6
  }, Q = {}, W = {}, X = ["for"], Y = {
6
7
  class: "visible-options",
@@ -11,13 +12,13 @@ const U = {}, J = {}, K = {
11
12
  }, le = {
12
13
  key: 0,
13
14
  class: "confirm"
14
- }, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ S({
15
+ }, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ B({
15
16
  __name: "PixCursor.ce",
16
17
  props: {
17
18
  options: { type: Array }
18
19
  },
19
20
  setup(d, { expose: M }) {
20
- const p = d, r = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), h = y(), I = m(() => r.value === p.options.length - 1), N = m(() => r.value === 0), l = m(() => Number(r.value));
21
+ const p = d, r = y(Math.floor(p.options.length / 2)), o = y(!1), v = k(), h = k(), I = m(() => r.value === p.options.length - 1), N = m(() => r.value === 0), l = m(() => Number(r.value));
21
22
  function $() {
22
23
  o.value = !0;
23
24
  }
@@ -36,10 +37,10 @@ const U = {}, J = {}, K = {
36
37
  return M({
37
38
  reset: T
38
39
  }), (t, x) => {
39
- const V = A("i18next");
40
+ const V = S("i18next");
40
41
  return i(), a("form", {
41
42
  class: "pix-cursor",
42
- onSubmit: F($, ["prevent"])
43
+ onSubmit: P($, ["prevent"])
43
44
  }, [
44
45
  s("div", null, [
45
46
  s("label", {
@@ -48,19 +49,19 @@ const U = {}, J = {}, K = {
48
49
  }, u(t.$t("pix-cursor.selectAnOption")), 9, X),
49
50
  s("ul", Y, [
50
51
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("li", {
51
- onClick: (E) => _(e),
52
+ onClick: (A) => _(e),
52
53
  key: e
53
54
  }, u(n.label), 9, Z))), 128))
54
55
  ]),
55
56
  s("datalist", { id: c(h) }, [
56
57
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("option", {
57
- onClick: (E) => _(e),
58
+ onClick: (A) => _(e),
58
59
  key: e,
59
60
  value: e,
60
61
  label: n.label
61
62
  }, u(n.label), 9, oe))), 128))
62
63
  ], 8, ee),
63
- B(s("input", {
64
+ E(s("input", {
64
65
  "onUpdate:modelValue": x[0] || (x[0] = (n) => r.value = n),
65
66
  id: c(v),
66
67
  type: "range",
@@ -72,7 +73,7 @@ const U = {}, J = {}, K = {
72
73
  [H, r.value]
73
74
  ]),
74
75
  s("div", ne, [
75
- g(w, {
76
+ g(j, {
76
77
  onClick: z,
77
78
  disabled: o.value || N.value,
78
79
  label: t.$t("pix-cursor.previous"),
@@ -100,7 +101,7 @@ const U = {}, J = {}, K = {
100
101
  }, 1032, ["translation"])
101
102
  ], 10, ie))), 128))
102
103
  ]),
103
- g(w, {
104
+ g(j, {
104
105
  onClick: O,
105
106
  disabled: o.value || I.value,
106
107
  label: t.$t("pix-cursor.next"),
@@ -113,7 +114,7 @@ const U = {}, J = {}, K = {
113
114
  ])
114
115
  ]),
115
116
  s("div", se, [
116
- o.value ? D("", !0) : (i(), a("button", le, u(t.$t("pix-cursor.confirm")), 1)),
117
+ o.value ? F("", !0) : (i(), a("button", le, u(t.$t("pix-cursor.confirm")), 1)),
117
118
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("p", {
118
119
  innerHTML: n.feedback.text,
119
120
  key: e,
@@ -127,10 +128,10 @@ const U = {}, J = {}, K = {
127
128
  ], 32);
128
129
  };
129
130
  }
130
- }), ue = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", pe = /* @__PURE__ */ P(de, [["styles", [ue]], ["__scopeId", "data-v-58e704c5"]]);
131
- G(/* @__PURE__ */ Object.assign({ "./locales/en.json": U, "./locales/es.json": J, "./locales/fr.json": K, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
131
+ }), ue = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", pe = /* @__PURE__ */ D(de, [["styles", [ue]], ["__scopeId", "data-v-58e704c5"]]);
132
+ G(/* @__PURE__ */ Object.assign({ "./locales/en.json": K, "./locales/es.json": R, "./locales/fr.json": U, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
132
133
  window.customElements.define("pix-cursor", q(pe, {
133
134
  configureApp(d) {
134
- j.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(R, { i18next: j });
135
+ w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(J, { i18next: w });
135
136
  }
136
137
  }));