@1024pix/epreuves-components 0.10.1 → 1.0.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,33 +1,33 @@
1
- import { a as w, c as i, o as a, f as e, t as s, G as C, _ as x, r as p, g, F as f, b as v, v as P, e as B, d as A } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
- import { a as M, i as h, b as z } from "../i18n-DZYcdfDF.js";
3
- import { L as y } from "../LLMMessage.ce-DUUayymi.js";
4
- const N = {
1
+ import { a as w, c as n, o as a, f as e, t as i, K as C, _ as x, r as p, g, F as f, b as v, x as P, e as B, d as A } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { a as M, i as h, b as j } from "../i18n-b8OapH7K.js";
3
+ import { L as y } from "../LLMMessage.ce--tBITfVq.js";
4
+ const z = {}, N = {}, I = {
5
5
  "complete-phrase": { iaSuggestions: "🧠 Suggestions de l'IA", explanation: "La barre indique la probabilité de chaque mot. Plus elle est longue, plus le mot est probable dans ce contexte.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Cliquez ici pour voir ce que l'IA va compléter", successfullyCompletedSentence: "🎉 Phrase complétée avec succès !" }
6
- }, I = { class: "probability-bar" }, T = { "aria-hidden": "true" }, q = { class: "sr-only" }, E = /* @__PURE__ */ w({
6
+ }, T = {}, q = {}, E = { class: "probability-bar" }, D = { "aria-hidden": "true" }, F = { class: "sr-only" }, O = /* @__PURE__ */ w({
7
7
  __name: "ProbabilityBar.ce",
8
8
  props: {
9
9
  name: { type: String },
10
10
  percent: { type: Number }
11
11
  },
12
- setup(n) {
13
- return (o, r) => (a(), i("div", I, [
14
- e("p", T, s(o.name), 1),
15
- e("p", q, s(o.$t("complete-phrase.ariaLabelDescription", { name: o.name, percent: o.percent })), 1),
12
+ setup(r) {
13
+ return (o, s) => (a(), n("div", E, [
14
+ e("p", D, i(o.name), 1),
15
+ e("p", F, i(o.$t("complete-phrase.ariaLabelDescription", { name: o.name, percent: o.percent })), 1),
16
16
  e("div", {
17
17
  style: C(`width: ${o.percent}%`),
18
18
  class: "probability-bar__percent",
19
19
  "aria-hidden": "true"
20
20
  }, null, 4),
21
- r[0] || (r[0] = e("div", {
21
+ s[0] || (s[0] = e("div", {
22
22
  class: "probability-bar__background",
23
23
  "aria-hidden": "true"
24
24
  }, null, -1))
25
25
  ]));
26
26
  }
27
- }), D = ".probability-bar[data-v-f5414745]{position:relative;padding-bottom:10px;border-bottom:1px solid #cbcbcb}.probability-bar__percent[data-v-f5414745]{position:absolute;left:0;z-index:2;height:5px;border-radius:5px;background-color:#235386}.probability-bar__background[data-v-f5414745]{position:absolute;left:0;z-index:1;width:100%;height:5px;border-radius:5px;background-color:#92a1b2}.probability-bar p[data-v-f5414745]{margin-bottom:0}.sr-only[data-v-f5414745]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}", F = /* @__PURE__ */ x(E, [["styles", [D]], ["__scopeId", "data-v-f5414745"]]), O = { class: "container" }, R = { class: "container__left-side" }, j = { class: "container__conversation" }, G = ["aria-describedby"], H = {
27
+ }), R = ".probability-bar[data-v-f5414745]{position:relative;padding-bottom:10px;border-bottom:1px solid #cbcbcb}.probability-bar__percent[data-v-f5414745]{position:absolute;left:0;z-index:2;height:5px;border-radius:5px;background-color:#235386}.probability-bar__background[data-v-f5414745]{position:absolute;left:0;z-index:1;width:100%;height:5px;border-radius:5px;background-color:#92a1b2}.probability-bar p[data-v-f5414745]{margin-bottom:0}.sr-only[data-v-f5414745]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}", H = /* @__PURE__ */ x(O, [["styles", [R]], ["__scopeId", "data-v-f5414745"]]), V = { class: "container" }, W = { class: "container__left-side" }, G = { class: "container__conversation" }, K = ["aria-describedby"], J = {
28
28
  key: 1,
29
29
  class: "container__successSentence"
30
- }, V = { class: "container__right-side" }, W = ["aria-level"], J = { "aria-hidden": "true" }, K = { class: "probabilities" }, Q = ["id", "aria-hidden"], U = /* @__PURE__ */ w({
30
+ }, Q = { class: "container__right-side" }, U = ["aria-level"], X = { "aria-hidden": "true" }, Y = { class: "probabilities" }, Z = ["id", "aria-hidden"], ee = /* @__PURE__ */ w({
31
31
  __name: "CompletePhrase.ce",
32
32
  props: {
33
33
  listOfProbabilityBarsLists: { type: Array },
@@ -36,21 +36,21 @@ const N = {
36
36
  wordsToAdd: { type: Array },
37
37
  titleLevel: { type: Number }
38
38
  },
39
- setup(n, { expose: o }) {
40
- const r = n, l = p(0), u = p(r.llmMessage), b = p(!1), d = p(r.wordsToAdd);
39
+ setup(r, { expose: o }) {
40
+ const s = r, l = p(0), u = p(s.llmMessage), _ = p(!1), c = p(s.wordsToAdd);
41
41
  function k() {
42
- b.value = !1, u.value = r.llmMessage, d.value = r.wordsToAdd, l.value = 0;
42
+ _.value = !1, u.value = s.llmMessage, c.value = s.wordsToAdd, l.value = 0;
43
43
  }
44
44
  function S() {
45
- d.value.length === 1 && (b.value = !0), l.value += 1;
46
- const [t, ...m] = d.value;
47
- d.value = m, u.value += `<span style="font-weight: bold;">${t} </span>`;
45
+ c.value.length === 1 && (_.value = !0), l.value += 1;
46
+ const [t, ...b] = c.value;
47
+ c.value = b, u.value += `<span style="font-weight: bold;">${t} </span>`;
48
48
  }
49
49
  return o({
50
50
  reset: k
51
- }), (t, m) => (a(), i("div", O, [
52
- e("div", R, [
53
- e("div", j, [
51
+ }), (t, b) => (a(), n("div", V, [
52
+ e("div", W, [
53
+ e("div", G, [
54
54
  g(y, {
55
55
  class: "container__message",
56
56
  message: { content: t.userMessage, direction: "outbound" }
@@ -60,41 +60,41 @@ const N = {
60
60
  message: { content: u.value, direction: "inbound" }
61
61
  }, null, 8, ["message"])
62
62
  ]),
63
- b.value ? (a(), i("p", H, s(t.$t("complete-phrase.successfullyCompletedSentence")), 1)) : (a(), i("button", {
63
+ _.value ? (a(), n("p", J, i(t.$t("complete-phrase.successfullyCompletedSentence")), 1)) : (a(), n("button", {
64
64
  key: 0,
65
65
  onClick: S,
66
66
  class: "container__button",
67
67
  "aria-describedby": `currentProbability${l.value}`
68
- }, s(t.$t("complete-phrase.clickHereButton")), 9, G))
68
+ }, i(t.$t("complete-phrase.clickHereButton")), 9, K))
69
69
  ]),
70
- e("div", V, [
70
+ e("div", Q, [
71
71
  e("div", {
72
72
  class: "container__title",
73
73
  role: "header",
74
74
  "aria-level": t.titleLevel
75
- }, s(t.$t("complete-phrase.iaSuggestions")), 9, W),
76
- e("p", J, s(t.$t("complete-phrase.explanation")), 1),
77
- e("div", K, [
78
- (a(!0), i(f, null, v(t.listOfProbabilityBarsLists, ($, c) => (a(), i("div", {
79
- class: P(["probability", { hidden: c !== l.value }]),
80
- key: c,
81
- id: `currentProbability${c}`,
82
- "aria-hidden": c !== l.value
75
+ }, i(t.$t("complete-phrase.iaSuggestions")), 9, U),
76
+ e("p", X, i(t.$t("complete-phrase.explanation")), 1),
77
+ e("div", Y, [
78
+ (a(!0), n(f, null, v(t.listOfProbabilityBarsLists, ($, d) => (a(), n("div", {
79
+ class: P(["probability", { hidden: d !== l.value }]),
80
+ key: d,
81
+ id: `currentProbability${d}`,
82
+ "aria-hidden": d !== l.value
83
83
  }, [
84
- (a(!0), i(f, null, v($, (_, L) => (a(), B(F, {
85
- name: _.name,
86
- percent: _.percent,
84
+ (a(!0), n(f, null, v($, (m, L) => (a(), B(H, {
85
+ name: m.name,
86
+ percent: m.percent,
87
87
  key: L
88
88
  }, null, 8, ["name", "percent"]))), 128))
89
- ], 10, Q))), 128))
89
+ ], 10, Z))), 128))
90
90
  ])
91
91
  ])
92
92
  ]));
93
93
  }
94
- }), X = "[data-v-f0837864]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.container[data-v-f0837864]{display:grid;grid-row:auto;gap:10px}.container__conversation[data-v-f0837864]{display:flex;flex-direction:column;background:#fff;padding:1rem;border-radius:10px;margin-bottom:1rem;border:solid 1px lightgrey}.container__title[data-v-f0837864]{font-size:1.2rem;font-weight:700}.container .probabilities[data-v-f0837864]{display:grid}.container .probability[data-v-f0837864]{grid-row:1;grid-column:1}.container__right-side[data-v-f0837864]{grid-column:2;grid-row:1}.container__right-side h2[data-v-f0837864]{margin-top:0}.container__right-side .hidden[data-v-f0837864]{visibility:hidden;grid-row:1;grid-column:1}.container__left-side[data-v-f0837864]{grid-column:1;grid-row:1}.container__message[data-v-f0837864]{margin-bottom:20px}.container__successSentence[data-v-f0837864]{width:90%;background-color:#cec3f4;padding:.8rem .5rem;border-radius:10px}.container__button[data-v-f0837864]{width:90%;border:none;padding:1.2rem 1rem;background:#355ac4;color:#fff;border-radius:10px;font-weight:700}.container__button[data-v-f0837864]:hover{background:#2b3c77;cursor:pointer}@media (max-width: 600px){.container[data-v-f0837864]{display:flex;flex-wrap:wrap}}", Y = /* @__PURE__ */ x(U, [["styles", [X]], ["__scopeId", "data-v-f0837864"]]);
95
- M(/* @__PURE__ */ Object.assign({ "./locales/fr.json": N })).catch((n) => console.error(n));
96
- window.customElements.define("complete-phrase", A(Y, {
97
- configureApp(n) {
98
- h.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(z, { i18next: h });
94
+ }), te = "[data-v-f0837864]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.container[data-v-f0837864]{display:grid;grid-row:auto;gap:10px}.container__conversation[data-v-f0837864]{display:flex;flex-direction:column;background:#fff;padding:1rem;border-radius:10px;margin-bottom:1rem;border:solid 1px lightgrey}.container__title[data-v-f0837864]{font-size:1.2rem;font-weight:700}.container .probabilities[data-v-f0837864]{display:grid}.container .probability[data-v-f0837864]{grid-row:1;grid-column:1}.container__right-side[data-v-f0837864]{grid-column:2;grid-row:1}.container__right-side h2[data-v-f0837864]{margin-top:0}.container__right-side .hidden[data-v-f0837864]{visibility:hidden;grid-row:1;grid-column:1}.container__left-side[data-v-f0837864]{grid-column:1;grid-row:1}.container__message[data-v-f0837864]{margin-bottom:20px}.container__successSentence[data-v-f0837864]{width:90%;background-color:#cec3f4;padding:.8rem .5rem;border-radius:10px}.container__button[data-v-f0837864]{width:90%;border:none;padding:1.2rem 1rem;background:#355ac4;color:#fff;border-radius:10px;font-weight:700}.container__button[data-v-f0837864]:hover{background:#2b3c77;cursor:pointer}@media (max-width: 600px){.container[data-v-f0837864]{display:flex;flex-wrap:wrap}}", ae = /* @__PURE__ */ x(ee, [["styles", [te]], ["__scopeId", "data-v-f0837864"]]);
95
+ M(/* @__PURE__ */ Object.assign({ "./locales/en.json": z, "./locales/es.json": N, "./locales/fr.json": I, "./locales/it.json": T, "./locales/nl.json": q })).catch((r) => console.error(r));
96
+ window.customElements.define("complete-phrase", A(ae, {
97
+ configureApp(r) {
98
+ h.changeLanguage(document?.documentElement?.lang || navigator.language), r.use(j, { i18next: h });
99
99
  }
100
100
  }));
@@ -1,4 +1,4 @@
1
- import { d as e } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
- import { I as m } from "../ImageQuiz.ce-BbfMcldf.js";
1
+ import { d as e } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { I as m } from "../ImageQuiz.ce-B7shuhfQ.js";
3
3
  window.customElements.define("image-quiz", e(m));
4
4
  window.customElements.define("qcu-image", e(m));
@@ -1,5 +1,5 @@
1
- import { a as l, r as f, w, c as z, o as t, b as p, e as d, m as g, F as v, d as _ } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
- import { I as A } from "../ImageQuiz.ce-BbfMcldf.js";
1
+ import { a as l, r as f, w, c as z, o as t, b as p, e as d, m as g, F as v, d as _ } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { I as A } from "../ImageQuiz.ce-B7shuhfQ.js";
3
3
  const h = /* @__PURE__ */ l({
4
4
  __name: "ImageQuizzes.ce",
5
5
  props: {
@@ -1,6 +1,6 @@
1
- import { a as m, c as r, o as a, f as e, t as n, F as t, b as p, g as i, _ as c, d as g } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
- import { L as l } from "../LLMMessage.ce-DUUayymi.js";
3
- import { p as u } from "../shadow-dom-BdDj1I6f.js";
1
+ import { a as m, c as r, o as a, f as e, t as n, F as t, b as p, g as i, _ as c, d as g } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { L as l } from "../LLMMessage.ce--tBITfVq.js";
3
+ import { p as u } from "../shadow-dom-CTg-8Iam.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
@@ -1,6 +1,6 @@
1
- import { a as m, k as i, l as p, c as o, o as e, F as d, b as g, e as u, _ as f, d as h } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
- import { L as _ } from "../LLMMessage.ce-DUUayymi.js";
3
- import { p as x } from "../shadow-dom-BdDj1I6f.js";
1
+ import { a as m, k as i, l as p, c as o, o as e, F as d, b as g, e as u, _ as f, d as h } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { L as _ } from "../LLMMessage.ce--tBITfVq.js";
3
+ import { p as x } from "../shadow-dom-CTg-8Iam.js";
4
4
  const b = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
@@ -1,4 +1,4 @@
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";
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-DGDsC3jx.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",
@@ -1,5 +1,5 @@
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-BsBClsn3.js";
1
+ import { a as k, r as b, v as D, E as C, c as r, o as t, x, y 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-DGDsC3jx.js";
2
+ import { L as V } from "../Loading.ce-DFM6f_1v.js";
3
3
  const F = ["part"], L = {
4
4
  key: 1,
5
5
  class: "message__loader message__content",
@@ -59,7 +59,7 @@ const F = ["part"], L = {
59
59
  ], 10, j)
60
60
  ], 2));
61
61
  }
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({
62
+ }), O = ".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}}", P = /* @__PURE__ */ N(I, [["styles", [O]]]), R = { part: "conversation" }, q = { class: "sr-only" }, G = /* @__PURE__ */ k({
63
63
  __name: "MessageConversation.ce",
64
64
  props: {
65
65
  title: { default: "Conversation par messages", type: String },
@@ -91,9 +91,9 @@ const F = ["part"], L = {
91
91
  }
92
92
  return c({
93
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, {
94
+ }), (a, e) => (t(), r("figure", R, [
95
+ y("figcaption", q, h(a.title), 1),
96
+ (t(!0), r(v, null, M(l.value, ({ message: i, displaySender: o, startAnimation: d, animationDuration: p }, f) => (t(), B(P, {
97
97
  ref_for: !0,
98
98
  ref: "messages",
99
99
  message: i,
@@ -0,0 +1,42 @@
1
+ import { a as d, c as n, o as r, f as a, t as i, F as l, b as h, q as u, _ as p, d as _ } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { a as m, i as o, b as f } from "../i18n-b8OapH7K.js";
3
+ const y = {
4
+ "pix-article": { byAuthor: "Par {{author}}" }
5
+ }, v = ["titleLevel"], S = { class: "article__metadata" }, b = { class: "article__author" }, L = ["innerHTML"], x = /* @__PURE__ */ d({
6
+ __name: "PixArticle.ce",
7
+ props: {
8
+ titleLevel: { default: 2, type: Number },
9
+ title: { type: String },
10
+ author: { type: String },
11
+ date: { type: String },
12
+ paragraphs: { type: Array },
13
+ highlightedSentence: { type: String },
14
+ colorOfHighlightSentence: { type: String }
15
+ },
16
+ setup(e) {
17
+ const s = e.paragraphs.join(`
18
+ `).replace("{{highlightedSentence}}", `<strong style="color: ${e.colorOfHighlightSentence};">${e.highlightedSentence}</strong>`).split(`
19
+ `);
20
+ return (t, H) => (r(), n(l, null, [
21
+ a("div", {
22
+ class: "article__title",
23
+ role: "header",
24
+ titleLevel: t.titleLevel
25
+ }, i(t.title), 9, v),
26
+ a("p", S, [
27
+ a("span", b, i(t.$t("pix-article.byAuthor", { author: t.author })), 1),
28
+ a("time", null, i(t.date), 1)
29
+ ]),
30
+ (r(!0), n(l, null, h(u(s), (c, g) => (r(), n("p", {
31
+ innerHTML: c,
32
+ key: g
33
+ }, null, 8, L))), 128))
34
+ ], 64));
35
+ }
36
+ }), A = "[data-v-38484447]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-38484447]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-38484447]{font-style:italic}.article__author[data-v-38484447]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", E = /* @__PURE__ */ p(x, [["styles", [A]], ["__scopeId", "data-v-38484447"]]);
37
+ m(/* @__PURE__ */ Object.assign({ "./locales/fr.json": y })).catch((e) => console.error(e));
38
+ window.customElements.define("pix-article", _(E, {
39
+ configureApp(e) {
40
+ o.changeLanguage(document?.documentElement?.lang ?? navigator.language), e.use(f, { i18next: o });
41
+ }
42
+ }));
@@ -1,6 +1,6 @@
1
- import { a as _, q as v, c as a, o as n, v as j, f as l, x as E, H, j as M, t as m, _ as h, r as y, C as R, g as f, G as $, y as I, I as x, B as u, F as S, b as k, e as A, d as V } from "../_plugin-vue_export-helper-CGpZIhKK.js";
2
- import { a as D, i as N, b as P } from "../i18n-DZYcdfDF.js";
3
- import { B, N as T } from "../NavigationButton.ce-RaQYJjPs.js";
1
+ import { a as _, v, c as a, o as n, x as j, f as l, y as z, G as H, j as E, t as m, _ as h, r as y, C as R, g as f, K as $, z as V, H as x, q as u, F as S, b as k, e as A, d as D } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { a as I, i as N, b as P } from "../i18n-b8OapH7K.js";
3
+ import { B, N as T } from "../NavigationButton.ce-CF4O2FoQ.js";
4
4
  const F = {
5
5
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
6
6
  }, G = {
@@ -11,7 +11,7 @@ const F = {
11
11
  "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
12
12
  }, q = {
13
13
  "pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
14
- }, W = ["aria-level"], J = ["innerHTML"], K = {
14
+ }, K = ["aria-level"], W = ["innerHTML"], J = {
15
15
  key: 1,
16
16
  class: "description"
17
17
  }, Q = /* @__PURE__ */ _({
@@ -39,16 +39,16 @@ const F = {
39
39
  class: "title"
40
40
  }, [
41
41
  H(s.$slots, "pagination"),
42
- M(" " + m(s.title), 1)
43
- ], 8, W),
42
+ E(" " + m(s.title), 1)
43
+ ], 8, K),
44
44
  i.value ? (n(), a("div", {
45
45
  key: 0,
46
46
  class: "description",
47
47
  innerHTML: s.description
48
- }, null, 8, J)) : s.description ? (n(), a("p", K, m(s.description), 1)) : E("", !0)
48
+ }, null, 8, W)) : s.description ? (n(), a("p", J, m(s.description), 1)) : z("", !0)
49
49
  ], 2));
50
50
  }
51
- }), U = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width: 576px){.slide-info.active{border:none;padding-left:0}}", z = /* @__PURE__ */ h(Q, [["styles", [U]]]), X = ["aria-hidden", "aria-roledescription", "aria-label"], Y = ["alt", "src"], ee = {
51
+ }), U = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width: 576px){.slide-info.active{border:none;padding-left:0}}", M = /* @__PURE__ */ h(Q, [["styles", [U]]]), X = ["aria-hidden", "aria-roledescription", "aria-label"], Y = ["alt", "src"], ee = {
52
52
  key: 0,
53
53
  class: "license"
54
54
  }, ie = ["href"], te = {
@@ -94,12 +94,12 @@ const F = {
94
94
  src: e.slide.image.src
95
95
  }, null, 12, Y),
96
96
  e.slide.license ? (n(), a("p", ee, [
97
- M(m(e.slide.license.attribution) + " / ", 1),
97
+ E(m(e.slide.license.attribution) + " / ", 1),
98
98
  l("a", {
99
99
  href: e.slide.license.url,
100
100
  target: "_blank"
101
101
  }, m(e.slide.license.name), 9, ie)
102
- ])) : E("", !0)
102
+ ])) : z("", !0)
103
103
  ], 4)) : e.type === "image-text" ? (n(), a("div", te, [
104
104
  l("img", {
105
105
  alt: e.slide.image.alt,
@@ -115,7 +115,7 @@ const F = {
115
115
  innerHTML: e.slide.text,
116
116
  class: "text-container"
117
117
  }, null, 8, oe)),
118
- f(z, {
118
+ f(M, {
119
119
  description: e.slide.description,
120
120
  title: e.slide.title,
121
121
  "is-active": e.isActive,
@@ -132,12 +132,12 @@ const F = {
132
132
  xmlns: "http://www.w3.org/2000/svg"
133
133
  };
134
134
  function pe(t, i) {
135
- return n(), a("svg", ce, i[0] || (i[0] = [
135
+ return n(), a("svg", ce, [...i[0] || (i[0] = [
136
136
  l("path", {
137
137
  d: "M11.6579 11.9996L15.4624 15.8039C15.6735 16.0152 15.7791 16.2804 15.7791 16.5996C15.7791 16.9188 15.6735 17.184 15.4624 17.3954C15.251 17.6065 14.9858 17.7121 14.6666 17.7121C14.3474 17.7121 14.0822 17.6065 13.8709 17.3954L9.27685 12.8014C9.16502 12.6894 9.08327 12.565 9.0316 12.4284C8.97994 12.2919 8.9541 12.1489 8.9541 11.9996C8.9541 11.8503 8.97994 11.7074 9.0316 11.5709C9.08327 11.4342 9.16502 11.3099 9.27685 11.1979L13.8709 6.60386C14.0822 6.39269 14.3474 6.28711 14.6666 6.28711C14.9858 6.28711 15.251 6.39269 15.4624 6.60386C15.6735 6.81519 15.7791 7.08044 15.7791 7.39961C15.7791 7.71878 15.6735 7.98403 15.4624 8.19536L11.6579 11.9996Z",
138
138
  fill: "inherit"
139
139
  }, null, -1)
140
- ]));
140
+ ])]);
141
141
  }
142
142
  const ue = /* @__PURE__ */ h(de, [["render", pe]]), fe = {}, me = {
143
143
  width: "25",
@@ -147,12 +147,12 @@ const ue = /* @__PURE__ */ h(de, [["render", pe]]), fe = {}, me = {
147
147
  xmlns: "http://www.w3.org/2000/svg"
148
148
  };
149
149
  function ge(t, i) {
150
- return n(), a("svg", me, i[0] || (i[0] = [
150
+ return n(), a("svg", me, [...i[0] || (i[0] = [
151
151
  l("path", {
152
152
  d: "M13.0754 11.9996L9.27085 8.19536C9.05969 7.98403 8.9541 7.71878 8.9541 7.39961C8.9541 7.08044 9.05969 6.81519 9.27085 6.60386C9.48219 6.39269 9.74743 6.28711 10.0666 6.28711C10.3858 6.28711 10.651 6.39269 10.8624 6.60386L15.4564 11.1979C15.5682 11.3099 15.6499 11.4342 15.7016 11.5709C15.7533 11.7074 15.7791 11.8503 15.7791 11.9996C15.7791 12.1489 15.7533 12.2919 15.7016 12.4284C15.6499 12.565 15.5682 12.6894 15.4564 12.8014L10.8624 17.3954C10.651 17.6065 10.3858 17.7121 10.0666 17.7121C9.74743 17.7121 9.48219 17.6065 9.27085 17.3954C9.05969 17.184 8.9541 16.9188 8.9541 16.5996C8.9541 16.2804 9.05969 16.0152 9.27085 15.8039L13.0754 11.9996Z",
153
153
  fill: "inherit"
154
154
  }, null, -1)
155
- ]));
155
+ ])]);
156
156
  }
157
157
  const ve = /* @__PURE__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"], be = ["id"], xe = { class: "footer" }, ye = { class: "control" }, _e = { class: "slide-info-container" }, we = { class: "pagination" }, Ce = /* @__PURE__ */ _({
158
158
  __name: "Carousel.ce",
@@ -170,7 +170,7 @@ const ve = /* @__PURE__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"
170
170
  function b(o) {
171
171
  w.value = o, c.value = (c.value - o + i.slides.length) % i.slides.length;
172
172
  }
173
- const g = I();
173
+ const g = V();
174
174
  return (o, r) => (n(), a("section", {
175
175
  "aria-roledescription": o.$t("pix-carousel.title")
176
176
  }, [
@@ -235,7 +235,7 @@ const ve = /* @__PURE__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"
235
235
  }, null, 8, ["label", "aria-controls", "disabled"])
236
236
  ]),
237
237
  l("div", _e, [
238
- (n(!0), a(S, null, k(e.value, (d, p) => (n(), A(z, {
238
+ (n(!0), a(S, null, k(e.value, (d, p) => (n(), A(M, {
239
239
  key: p,
240
240
  description: d.description,
241
241
  title: d.title,
@@ -253,8 +253,8 @@ const ve = /* @__PURE__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"
253
253
  ], 8, he));
254
254
  }
255
255
  }), Le = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media only screen and (max-width: 576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", $e = /* @__PURE__ */ h(Ce, [["styles", [Le]]]);
256
- D(/* @__PURE__ */ Object.assign({ "./locales/en.json": F, "./locales/es.json": G, "./locales/fr.json": O, "./locales/it.json": Z, "./locales/nl.json": q })).catch((t) => console.error(t));
257
- window.customElements.define("pix-carousel", V($e, {
256
+ I(/* @__PURE__ */ Object.assign({ "./locales/en.json": F, "./locales/es.json": G, "./locales/fr.json": O, "./locales/it.json": Z, "./locales/nl.json": q })).catch((t) => console.error(t));
257
+ window.customElements.define("pix-carousel", D($e, {
258
258
  configureApp(t) {
259
259
  N.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(P, { i18next: N });
260
260
  }
@@ -1,7 +1,7 @@
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 = {
1
+ import { a as H, r as y, z as k, v as m, h as S, c as a, o as i, f as s, I as A, q as c, t as u, F as f, b, J as E, g, x as C, H as L, y as F, B as P, _ as D, d as q } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { a as G, i as w, b as J } from "../i18n-b8OapH7K.js";
3
+ import { N as j } from "../NavigationButton.ce-CF4O2FoQ.js";
4
+ const R = {}, U = {}, K = {
5
5
  "pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
6
6
  }, Q = {}, W = {}, X = ["for"], Y = {
7
7
  class: "visible-options",
@@ -12,17 +12,17 @@ const K = {}, R = {}, U = {
12
12
  }, le = {
13
13
  key: 0,
14
14
  class: "confirm"
15
- }, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ B({
15
+ }, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ H({
16
16
  __name: "PixCursor.ce",
17
17
  props: {
18
18
  options: { type: Array }
19
19
  },
20
20
  setup(d, { expose: M }) {
21
21
  const p = d, r = y(Math.floor(p.options.length / 2)), o = y(!1), v = k(), h = k(), I = m(() => r.value === p.options.length - 1), N = m(() => r.value === 0), l = m(() => Number(r.value));
22
- function $() {
22
+ function z() {
23
23
  o.value = !0;
24
24
  }
25
- function z() {
25
+ function $() {
26
26
  o.value || (r.value = Math.max(0, l.value - 1));
27
27
  }
28
28
  function O() {
@@ -40,7 +40,7 @@ const K = {}, R = {}, U = {
40
40
  const V = S("i18next");
41
41
  return i(), a("form", {
42
42
  class: "pix-cursor",
43
- onSubmit: P($, ["prevent"])
43
+ onSubmit: P(z, ["prevent"])
44
44
  }, [
45
45
  s("div", null, [
46
46
  s("label", {
@@ -49,19 +49,19 @@ const K = {}, R = {}, U = {
49
49
  }, u(t.$t("pix-cursor.selectAnOption")), 9, X),
50
50
  s("ul", Y, [
51
51
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("li", {
52
- onClick: (A) => _(e),
52
+ onClick: (B) => _(e),
53
53
  key: e
54
54
  }, u(n.label), 9, Z))), 128))
55
55
  ]),
56
56
  s("datalist", { id: c(h) }, [
57
57
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("option", {
58
- onClick: (A) => _(e),
58
+ onClick: (B) => _(e),
59
59
  key: e,
60
60
  value: e,
61
61
  label: n.label
62
62
  }, u(n.label), 9, oe))), 128))
63
63
  ], 8, ee),
64
- E(s("input", {
64
+ A(s("input", {
65
65
  "onUpdate:modelValue": x[0] || (x[0] = (n) => r.value = n),
66
66
  id: c(v),
67
67
  type: "range",
@@ -70,11 +70,11 @@ const K = {}, R = {}, U = {
70
70
  max: t.options.length - 1,
71
71
  disabled: o.value
72
72
  }, null, 8, te), [
73
- [H, r.value]
73
+ [E, r.value]
74
74
  ]),
75
75
  s("div", ne, [
76
76
  g(j, {
77
- onClick: z,
77
+ onClick: $,
78
78
  disabled: o.value || N.value,
79
79
  label: t.$t("pix-cursor.previous"),
80
80
  "aria-controls": c(v),
@@ -129,7 +129,7 @@ const K = {}, R = {}, U = {
129
129
  };
130
130
  }
131
131
  }), ue = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", pe = /* @__PURE__ */ D(de, [["styles", [ue]], ["__scopeId", "data-v-58e704c5"]]);
132
- G(/* @__PURE__ */ Object.assign({ "./locales/en.json": K, "./locales/es.json": R, "./locales/fr.json": U, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
132
+ G(/* @__PURE__ */ Object.assign({ "./locales/en.json": R, "./locales/es.json": U, "./locales/fr.json": K, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
133
133
  window.customElements.define("pix-cursor", q(pe, {
134
134
  configureApp(d) {
135
135
  w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(J, { i18next: w });