@1024pix/epreuves-components 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{LLMMessage.ce-D_SYQOna.js → LLMMessage.ce-DSYjzT9g.js} +8 -8
  2. package/dist/{Loading.ce-CjAv1WaY.js → Loading.ce-DmUVuFq5.js} +1 -1
  3. package/dist/{NavigationButton.ce-DlErTyfv.js → NavigationButton.ce-COLdN-XJ.js} +5 -5
  4. package/dist/{Retry--whpA3a8.js → Retry-Df6WpF65.js} +1 -1
  5. package/dist/{_plugin-vue_export-helper-CP5OpzZH.js → _plugin-vue_export-helper-b0PKqEbd.js} +1579 -1559
  6. package/dist/components/calcul-impact.ce.js.js +8 -8
  7. package/dist/components/capacity-calculation.ce.js.js +29 -29
  8. package/dist/components/clickable-image.ce.js.js +72 -71
  9. package/dist/components/complete-phrase.ce.js.js +50 -50
  10. package/dist/components/flip-cards.ce.js.js +10 -10
  11. package/dist/components/image-quiz.ce.js.js +2 -2
  12. package/dist/components/image-quizzes.ce.js.js +2 -2
  13. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  14. package/dist/components/llm-messages.ce.js.js +3 -3
  15. package/dist/components/llm-prompt-select.ce.js.js +6 -6
  16. package/dist/components/message-conversation.ce.js.js +12 -12
  17. package/dist/components/pix-article.ce.js.js +4 -4
  18. package/dist/components/pix-carousel.ce.js.js +7 -7
  19. package/dist/components/pix-cursor.ce.js.js +11 -11
  20. package/dist/components/qcm-deepfake.ce.js.js +15 -15
  21. package/dist/{i18n-BB4WILwM.js → i18n-DwNjk2PP.js} +1 -1
  22. package/dist/{image-quiz.ce-UlVFo5Sr.js → image-quiz.ce-DbLH3Dkt.js} +15 -15
  23. package/dist/index.js +1 -1
  24. package/dist/schema.js +6 -6
  25. package/dist/{shadow-dom-D3DtD_VO.js → shadow-dom-CG-UQz_W.js} +1 -1
  26. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { d as g, c as s, o as t, a, y as c, t as j, _ as y, v as S, L as M, B as R, r as b, k as w, E, F as $, b as q, e as k, z as L, f as T } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { a as V, i as B, b as I } from "../i18n-BB4WILwM.js";
3
- import { u as O } from "../normalize-props-AlmAfi_u.js";
4
- import { L as P } from "../LLMMessage.ce-D_SYQOna.js";
5
- const D = {}, F = {}, W = {}, H = {
1
+ import { d as g, c as s, o as t, a, A as c, t as z, _ as y, y as S, L as M, D as R, r as b, k as w, v as T, F as $, b as q, e as k, B as L, f as V } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
+ import { a as E, i as B, b as I } from "../i18n-DwNjk2PP.js";
3
+ import { u as D } from "../normalize-props-AlmAfi_u.js";
4
+ import { L as P } from "../LLMMessage.ce-DSYjzT9g.js";
5
+ const O = {}, F = {}, W = {}, H = {
6
6
  "complete-phrase": { title: "Probabilité du mot suivant", description: "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: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisit par l’IA dans les propositions suivantes :", feedback: "En effet, c'est le mot le plus probable !" }
7
7
  }, Q = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ g({
8
8
  __name: "ProbabilityBar.ce",
@@ -11,11 +11,11 @@ const D = {}, F = {}, W = {}, H = {
11
11
  percent: { type: Number }
12
12
  },
13
13
  setup(e) {
14
- return (d, o) => (t(), s("div", G, [
14
+ return (p, o) => (t(), s("div", G, [
15
15
  a("p", J, c(e.name), 1),
16
- a("p", K, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
16
+ a("p", K, c(p.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
17
17
  a("div", {
18
- style: j(`width: ${e.percent}%`),
18
+ style: z(`width: ${e.percent}%`),
19
19
  class: "probability-bar__percent",
20
20
  "aria-hidden": "true"
21
21
  }, null, 4),
@@ -32,10 +32,10 @@ const D = {}, F = {}, W = {}, H = {
32
32
  state: { type: String }
33
33
  },
34
34
  setup(e) {
35
- return (d, o) => (t(), s("button", {
35
+ return (p, o) => (t(), s("button", {
36
36
  class: S(["complete-phrase_button", e.state])
37
37
  }, [
38
- M(d.$slots, "icon"),
38
+ M(p.$slots, "icon"),
39
39
  R(" " + c(e.label), 1)
40
40
  ], 2));
41
41
  }
@@ -49,35 +49,35 @@ const D = {}, F = {}, W = {}, H = {
49
49
  title: { type: String }
50
50
  },
51
51
  emits: ["visible"],
52
- setup(e, { emit: d }) {
53
- const o = d, r = b(null), m = w(() => e.list.find((n) => n.percent === 100).name), p = b(!1);
52
+ setup(e, { emit: p }) {
53
+ const o = p, r = b(null), m = w(() => e.list.find((n) => n.percent === 100).name), d = b(!1);
54
54
  function u(n) {
55
- r.value = n.target.value, m.value === r.value && (o("visible"), p.value = !0);
55
+ r.value = n.target.value, m.value === r.value && (o("visible"), d.value = !0);
56
56
  }
57
57
  return (n, x) => (t(), s("div", oe, [
58
58
  a("p", null, c(e.title), 1),
59
59
  a("section", re, [
60
- (t(!0), s($, null, q(e.list, (_, h) => (t(), s("div", {
60
+ (t(!0), s($, null, q(e.list, (_, v) => (t(), s("div", {
61
61
  class: "qcu__list-choice",
62
- key: h
62
+ key: v
63
63
  }, [
64
64
  a("input", {
65
- id: `choice${h}`,
65
+ id: `choice${v}`,
66
66
  type: "radio",
67
67
  name: "qcu-choice",
68
68
  onClick: u,
69
69
  "aria-label": _.name,
70
70
  value: _.name,
71
71
  checked: r.value === _.name,
72
- disabled: p.value
72
+ disabled: d.value
73
73
  }, null, 8, ie),
74
74
  a("label", se, c(_.name), 1)
75
75
  ]))), 128))
76
76
  ]),
77
- m.value === r.value ? (t(), s("section", ne, c(n.$t("complete-phrase.feedback")), 1)) : E("", !0)
77
+ m.value === r.value ? (t(), s("section", ne, c(n.$t("complete-phrase.feedback")), 1)) : T("", !0)
78
78
  ]));
79
79
  }
80
- }), ce = "[data-v-ddadee99]{--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.qcu[data-v-ddadee99]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-ddadee99]{margin:0}.qcu__list[data-v-ddadee99]{display:flex;gap:16px}.qcu__list-choice[data-v-ddadee99]{position:relative}.qcu__list-choice input[data-v-ddadee99]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-ddadee99]{background-color:var(--pix-info-500);color:var(--pix-neutral-0)}.qcu__list-choice input[data-v-ddadee99]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-ddadee99]{background-color:var(--pix-info-500);color:var(--pix-neutral-0);transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-ddadee99],.qcu__list-choice input[data-v-ddadee99]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-ddadee99],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-ddadee99]{background:var(--pix-info-50);color:var(--pix-neutral-900);cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-ddadee99]{align-items:center;background:var(--pix-info-50);border-radius:4px;color:inherit;display:flex;font-weight:700;gap:10px;justify-content:center;padding:4px 8px;transition:background-color .5s ease,color .5s ease}.qcu .feedback[data-v-ddadee99]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:var(--pix-info-50)}", de = /* @__PURE__ */ y(le, [["styles", [ce]], ["__scopeId", "data-v-ddadee99"]]), pe = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, _e = { class: "complete-phrase-container__conversation" }, ve = { class: "complete-phrase-container__probabilities" }, he = ["id", "aria-hidden"], fe = /* @__PURE__ */ g({
80
+ }), ce = "[data-v-631720f6]{--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.qcu[data-v-631720f6]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-631720f6]{margin:0}.qcu__list[data-v-631720f6]{display:flex;gap:16px}.qcu__list-choice[data-v-631720f6]{position:relative}.qcu__list-choice input[data-v-631720f6]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-631720f6]{background-color:var(--pix-info-500);color:var(--pix-neutral-0)}.qcu__list-choice input[data-v-631720f6]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-631720f6]{background-color:var(--pix-info-500);color:var(--pix-neutral-0);transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-631720f6],.qcu__list-choice input[data-v-631720f6]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-631720f6],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-631720f6]{background:var(--pix-info-50);color:var(--pix-neutral-900);cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-631720f6]{align-items:center;background:var(--pix-info-50);border-radius:4px;color:inherit;display:flex;font-weight:700;gap:10px;justify-content:center;padding:4px 8px;transition:background-color .5s ease,color .5s ease}.qcu .feedback[data-v-631720f6]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:var(--pix-info-50)}", pe = /* @__PURE__ */ y(le, [["styles", [ce]], ["__scopeId", "data-v-631720f6"]]), de = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, _e = { class: "complete-phrase-container__conversation" }, fe = { class: "complete-phrase-container__probabilities" }, ve = ["id", "aria-hidden"], he = /* @__PURE__ */ g({
81
81
  __name: "CompletePhrase.ce",
82
82
  props: {
83
83
  listOfProbabilityBarsLists: { type: Array },
@@ -86,29 +86,29 @@ const D = {}, F = {}, W = {}, H = {
86
86
  wordsToAdd: { type: Array },
87
87
  titleLevel: { type: Number }
88
88
  },
89
- setup(e, { expose: d }) {
90
- const o = e, r = b(0), m = b(o.llmMessage), p = b(!1), u = b(o.wordsToAdd), n = b(!1), x = w(() => {
91
- const [i] = o.listOfProbabilityBarsLists.filter((l, v) => v === r.value);
89
+ setup(e, { expose: p }) {
90
+ const o = e, r = b(0), m = b(o.llmMessage), d = b(!1), u = b(o.wordsToAdd), n = b(!1), x = w(() => {
91
+ const [i] = o.listOfProbabilityBarsLists.filter((l, f) => f === r.value);
92
92
  return i;
93
93
  }), _ = w(() => {
94
94
  let [i] = u.value, l = "complete-message-word";
95
- if (p.value) {
96
- const [v] = x.value;
97
- i = v.name, l += ` complete-message-word--${n.value ? "visible" : "hidden"}`;
95
+ if (d.value) {
96
+ const [f] = x.value;
97
+ i = f.name, l += ` complete-message-word--${n.value ? "visible" : "hidden"}`;
98
98
  }
99
99
  return `<p>${m.value} <span class="${l}">${i}</span></p>`;
100
100
  });
101
- function h() {
102
- p.value = !1, m.value = o.llmMessage, u.value = o.wordsToAdd, r.value = 0;
101
+ function v() {
102
+ d.value = !1, m.value = o.llmMessage, u.value = o.wordsToAdd, r.value = 0;
103
103
  }
104
- function A() {
105
- u.value.length === 1 && (p.value = !0), r.value += 1;
104
+ function N() {
105
+ u.value.length === 1 && (d.value = !0), r.value += 1;
106
106
  const [i, ...l] = u.value;
107
107
  u.value = l, m.value += `<span class="complete-message-word">${i} </span>`;
108
108
  }
109
- return d({
110
- reset: h
111
- }), (i, l) => (t(), s("div", pe, [
109
+ return p({
110
+ reset: v
111
+ }), (i, l) => (t(), s("div", de, [
112
112
  a("div", {
113
113
  class: "complete-phrase__title",
114
114
  role: "heading",
@@ -126,44 +126,44 @@ const D = {}, F = {}, W = {}, H = {
126
126
  message: { content: _.value, direction: "inbound" }
127
127
  }, null, 8, ["message"])
128
128
  ]),
129
- a("div", ve, [
130
- (t(!0), s($, null, q(e.listOfProbabilityBarsLists, (v, f) => (t(), s("div", {
131
- class: S(["probability", { hidden: f !== r.value }]),
132
- key: f,
133
- id: `currentProbability${f}`,
134
- "aria-hidden": f !== r.value
129
+ a("div", fe, [
130
+ (t(!0), s($, null, q(e.listOfProbabilityBarsLists, (f, h) => (t(), s("div", {
131
+ class: S(["probability", { hidden: h !== r.value }]),
132
+ key: h,
133
+ id: `currentProbability${h}`,
134
+ "aria-hidden": h !== r.value
135
135
  }, [
136
- (t(!0), s($, null, q(v, (C, N) => (t(), k(Z, {
136
+ (t(!0), s($, null, q(f, (C, j) => (t(), k(Z, {
137
137
  name: C.name,
138
138
  percent: C.percent,
139
- key: N
139
+ key: j
140
140
  }, null, 8, ["name", "percent"]))), 128))
141
- ], 10, he))), 128))
141
+ ], 10, ve))), 128))
142
142
  ])
143
143
  ]),
144
- p.value ? (t(), k(de, {
144
+ d.value ? (t(), k(pe, {
145
145
  key: 1,
146
146
  list: x.value,
147
147
  title: i.$t("complete-phrase.successfullyCompletedSentence"),
148
- onVisible: l[0] || (l[0] = (v) => n.value = !0)
148
+ onVisible: l[0] || (l[0] = (f) => n.value = !0)
149
149
  }, null, 8, ["list", "title"])) : (t(), k(ae, {
150
150
  key: 0,
151
- onClick: A,
151
+ onClick: N,
152
152
  state: "primary",
153
153
  label: i.$t("complete-phrase.clickHereButton"),
154
154
  "aria-describedby": `currentProbability${r.value}`
155
155
  }, null, 8, ["label", "aria-describedby"]))
156
156
  ]));
157
157
  }
158
- }), ge = "[data-v-be9b10f3]{--pix-info-50: #e6f2fe;--pix-info-500: #3b82f6;--pix-neutral-0: #fff;--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.complete-phrase__title[data-v-be9b10f3]{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description[data-v-be9b10f3]{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container[data-v-be9b10f3]{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation[data-v-be9b10f3]{background:#fff;border:1px solid var(--pix-neutral-100);border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message[data-v-be9b10f3]{align-items:center}.complete-phrase-container__probabilities[data-v-be9b10f3]{display:grid}.complete-phrase-container__probabilities .probability[data-v-be9b10f3]{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{visibility:hidden}@media(max-width:600px){.complete-phrase__container[data-v-be9b10f3]{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{display:none}}", ye = /* @__PURE__ */ y(fe, [["styles", [ge]], ["__scopeId", "data-v-be9b10f3"]]);
159
- V(/* @__PURE__ */ Object.assign({ "./locales/en.json": D, "./locales/es-419.json": F, "./locales/es.json": W, "./locales/fr.json": H, "./locales/it.json": Q, "./locales/nl.json": U })).catch((e) => console.error(e));
160
- const z = T(ye, {
158
+ }), ge = "[data-v-be9b10f3]{--pix-info-50: #e6f2fe;--pix-info-500: #3b82f6;--pix-neutral-0: #fff;--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.complete-phrase__title[data-v-be9b10f3]{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description[data-v-be9b10f3]{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container[data-v-be9b10f3]{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation[data-v-be9b10f3]{background:#fff;border:1px solid var(--pix-neutral-100);border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message[data-v-be9b10f3]{align-items:center}.complete-phrase-container__probabilities[data-v-be9b10f3]{display:grid}.complete-phrase-container__probabilities .probability[data-v-be9b10f3]{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{visibility:hidden}@media(max-width:600px){.complete-phrase__container[data-v-be9b10f3]{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{display:none}}", ye = /* @__PURE__ */ y(he, [["styles", [ge]], ["__scopeId", "data-v-be9b10f3"]]);
159
+ E(/* @__PURE__ */ Object.assign({ "./locales/en.json": O, "./locales/es-419.json": F, "./locales/es.json": W, "./locales/fr.json": H, "./locales/it.json": Q, "./locales/nl.json": U })).catch((e) => console.error(e));
160
+ const A = V(ye, {
161
161
  configureApp(e) {
162
162
  B.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(I, { i18next: B });
163
163
  }
164
164
  });
165
- z.prototype.normalizeProps = (e) => ({
165
+ A.prototype.normalizeProps = (e) => ({
166
166
  ...e,
167
- titleLevel: O(e.titleLevel)
167
+ titleLevel: D(e.titleLevel)
168
168
  });
169
- window.customElements.define("complete-phrase", z);
169
+ window.customElements.define("complete-phrase", A);
@@ -1,6 +1,6 @@
1
- import { d as m, c as n, o as d, F as u, a as t, v, G as p, y as f, E as y, _ as h, r as w, b as k, H as g, z as F, f as _ } from "../_plugin-vue_export-helper-CP5OpzZH.js";
1
+ import { d as m, c as n, o as d, F as u, a as t, y as v, x as p, A as f, v as y, _ as h, r as w, b as k, H as g, B as F, f as _ } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
2
  import { u as L } from "../normalize-props-AlmAfi_u.js";
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({
3
+ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"], $ = ["aria-level"], B = { class: "description" }, U = { class: "image-container" }, j = ["src"], E = /* @__PURE__ */ m({
4
4
  __name: "FlipCard.ce",
5
5
  props: {
6
6
  titleLevel: { type: Number },
@@ -39,17 +39,17 @@ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"]
39
39
  class: "title"
40
40
  }, f(e.name), 9, $),
41
41
  t("p", B, f(e.description), 1),
42
- t("div", E, [
42
+ t("div", U, [
43
43
  p(l) ? (d(), n("img", {
44
44
  key: 0,
45
45
  src: p(l),
46
46
  alt: ""
47
- }, null, 8, U)) : y("", !0)
47
+ }, null, 8, j)) : y("", !0)
48
48
  ])
49
49
  ], 10, S)
50
50
  ], 64));
51
51
  }
52
- }), K = "[data-v-897a493f]{box-sizing:border-box}.card[data-v-897a493f]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-897a493f]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-897a493f]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-897a493f]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-897a493f]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-897a493f]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-897a493f]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-897a493f]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-897a493f]{display:block;height:auto;width:40px}.card.verso[data-v-897a493f]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-897a493f]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-897a493f]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-897a493f]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-897a493f]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-897a493f]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-897a493f]{border:2px solid #f041bf}.card.verso .description[data-v-897a493f]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-897a493f]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-897a493f]{display:block;height:100%;object-fit:contain;width:100%}", V = /* @__PURE__ */ h(j, [["styles", [K]], ["__scopeId", "data-v-897a493f"]]), D = { class: "flip-cards" }, I = ["aria-level"], R = ["aria-expanded", "onClick", "onKeydown"], Y = { class: "flip-container" }, Z = /* @__PURE__ */ m({
52
+ }), K = "[data-v-897a493f]{box-sizing:border-box}.card[data-v-897a493f]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-897a493f]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-897a493f]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-897a493f]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-897a493f]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-897a493f]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-897a493f]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-897a493f]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-897a493f]{display:block;height:auto;width:40px}.card.verso[data-v-897a493f]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-897a493f]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-897a493f]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-897a493f]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-897a493f]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-897a493f]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-897a493f]{border:2px solid #f041bf}.card.verso .description[data-v-897a493f]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-897a493f]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-897a493f]{display:block;height:100%;object-fit:contain;width:100%}", V = /* @__PURE__ */ h(E, [["styles", [K]], ["__scopeId", "data-v-897a493f"]]), A = { class: "flip-cards" }, D = ["aria-level"], I = ["aria-expanded", "onClick", "onKeydown"], R = { class: "flip-container" }, Y = /* @__PURE__ */ m({
53
53
  __name: "FlipCards.ce",
54
54
  props: {
55
55
  titleLevel: { default: 2, type: Number },
@@ -66,12 +66,12 @@ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"]
66
66
  ), s = (i, c) => {
67
67
  c.preventDefault(), i.isFlipped = !i.isFlipped;
68
68
  };
69
- return (i, c) => (d(), n("div", D, [
69
+ return (i, c) => (d(), n("div", A, [
70
70
  t("div", {
71
71
  role: "heading",
72
72
  "aria-level": e.titleLevel,
73
73
  class: "sr-only"
74
- }, f(e.name), 9, I),
74
+ }, f(e.name), 9, D),
75
75
  (d(!0), n(u, null, k(l.value, (a, x) => (d(), n("div", {
76
76
  key: x,
77
77
  class: v(["card-container", { flipped: a.isFlipped, [a.color]: a.color }]),
@@ -84,7 +84,7 @@ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"]
84
84
  g((r) => s(a, r), ["space"])
85
85
  ]
86
86
  }, [
87
- t("div", Y, [
87
+ t("div", R, [
88
88
  F(V, {
89
89
  color: a.color,
90
90
  description: a.description,
@@ -95,10 +95,10 @@ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"]
95
95
  "title-level": e.titleLevel + 1
96
96
  }, null, 8, ["color", "description", "icon", "image", "is-flipped", "name", "title-level"])
97
97
  ])
98
- ], 42, R))), 128))
98
+ ], 42, I))), 128))
99
99
  ]));
100
100
  }
101
- }), A = "[data-v-394f37d2]{box-sizing:border-box}.sr-only[data-v-394f37d2]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-394f37d2]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-394f37d2]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-394f37d2]:hover,.flip-cards .card-container[data-v-394f37d2]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-394f37d2]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-394f37d2]{transform:rotateY(180deg)}", G = /* @__PURE__ */ h(Z, [["styles", [A]], ["__scopeId", "data-v-394f37d2"]]), b = _(G);
101
+ }), Z = "[data-v-394f37d2]{box-sizing:border-box}.sr-only[data-v-394f37d2]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-394f37d2]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-394f37d2]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-394f37d2]:hover,.flip-cards .card-container[data-v-394f37d2]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-394f37d2]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-394f37d2]{transform:rotateY(180deg)}", H = /* @__PURE__ */ h(Y, [["styles", [Z]], ["__scopeId", "data-v-394f37d2"]]), b = _(H);
102
102
  b.prototype.normalizeProps = (e) => ({
103
103
  ...e,
104
104
  titleLevel: L(e.titleLevel)
@@ -1,5 +1,5 @@
1
- import "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { n as p } from "../image-quiz.ce-UlVFo5Sr.js";
1
+ import "../_plugin-vue_export-helper-b0PKqEbd.js";
2
+ import { n as p } from "../image-quiz.ce-DbLH3Dkt.js";
3
3
  import "../normalize-props-AlmAfi_u.js";
4
4
  export {
5
5
  p as normalizeImageQuizProps
@@ -1,5 +1,5 @@
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-CP5OpzZH.js";
2
- import { I as A, n as I } from "../image-quiz.ce-UlVFo5Sr.js";
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-b0PKqEbd.js";
2
+ import { I as A, n as I } from "../image-quiz.ce-DbLH3Dkt.js";
3
3
  const _ = /* @__PURE__ */ l({
4
4
  __name: "ImageQuizzes.ce",
5
5
  props: {
@@ -1,6 +1,6 @@
1
- import { d as c, c as t, o as s, a as e, y as n, F as r, b as m, z as i, _ as p, f as g } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { L as l } from "../LLMMessage.ce-D_SYQOna.js";
3
- import { p as u } from "../shadow-dom-D3DtD_VO.js";
1
+ import { d as c, c as t, o as s, a as e, A as n, F as r, b as m, B as i, _ as p, f as g } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
+ import { L as l } from "../LLMMessage.ce-DSYjzT9g.js";
3
+ import { p as u } from "../shadow-dom-CG-UQz_W.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
@@ -1,6 +1,6 @@
1
- import { d as c, C as m, D as i, c as t, o as e, F as p, b as d, e as f, _ as g, f as u } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { L as h } from "../LLMMessage.ce-D_SYQOna.js";
3
- import { p as _ } from "../shadow-dom-D3DtD_VO.js";
1
+ import { d as c, E as m, G as i, c as t, o as e, F as p, b as d, e as f, _ as g, f as u } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
+ import { L as h } from "../LLMMessage.ce-DSYjzT9g.js";
3
+ import { p as _ } from "../shadow-dom-CG-UQz_W.js";
4
4
  const x = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
@@ -1,7 +1,7 @@
1
- import { d as y, r as c, A as h, c as d, o as m, z as w, a, B as k, F as b, b as L, y as S, _ as C, f as P } from "../_plugin-vue_export-helper-CP5OpzZH.js";
1
+ import { d as h, r as c, C as y, c as d, o as m, B as w, a, D as k, F as b, b as C, A as L, _ as S, f as P } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
2
  import { u as N } from "../normalize-props-AlmAfi_u.js";
3
3
  import "./llm-messages.ce.js.js";
4
- const B = { class: "prompt-select" }, M = { class: "prompt-select__options" }, z = ["disabled", "onClick"], A = /* @__PURE__ */ y({
4
+ const B = { class: "prompt-select" }, M = { class: "prompt-select__options" }, A = ["disabled", "onClick"], E = /* @__PURE__ */ h({
5
5
  __name: "LLMPromptSelect.ce",
6
6
  props: {
7
7
  messages: { type: Array },
@@ -45,7 +45,7 @@ const B = { class: "prompt-select" }, M = { class: "prompt-select__options" }, z
45
45
  l.value = !1;
46
46
  }
47
47
  return (e, t) => {
48
- const p = h("llm-messages");
48
+ const p = y("llm-messages");
49
49
  return m(), d(b, null, [
50
50
  w(p, { messages: s.value }, null, 8, ["messages"]),
51
51
  a("div", B, [
@@ -54,17 +54,17 @@ const B = { class: "prompt-select" }, M = { class: "prompt-select__options" }, z
54
54
  a("span", { class: "sr-only" }, "  une fois sélectionnés, les prompts ne sont plus disponibles. ")
55
55
  ], -1)),
56
56
  a("div", M, [
57
- (m(!0), d(b, null, L(u.value, (n, i) => (m(), d("button", {
57
+ (m(!0), d(b, null, C(u.value, (n, i) => (m(), d("button", {
58
58
  key: i,
59
59
  disabled: n.disabled || l.value,
60
60
  onClick: (f) => v(n)
61
- }, S(n.prompt), 9, z))), 128))
61
+ }, L(n.prompt), 9, A))), 128))
62
62
  ])
63
63
  ])
64
64
  ], 64);
65
65
  };
66
66
  }
67
- }), E = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;border:none;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", V = /* @__PURE__ */ C(A, [["styles", [E]]]), _ = P(V);
67
+ }), V = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;border:none;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", z = /* @__PURE__ */ S(E, [["styles", [V]]]), _ = P(z);
68
68
  _.prototype.normalizeProps = (r) => ({
69
69
  ...r,
70
70
  speed: N(r.speed)
@@ -1,5 +1,5 @@
1
- import { d as S, r as x, k as M, h as B, c as n, o as s, v as k, E as g, a as _, B as w, y as v, z as E, I as z, m as P, F as b, b as N, _ as D, g as T, e as V, f as F } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { L as I } from "../Loading.ce-CjAv1WaY.js";
1
+ import { d as S, r as x, k as D, h as B, c as n, o as s, y as k, v as g, a as _, D as w, A as v, B as E, I as z, m as P, F as b, b as M, _ as N, g as T, e as V, f as F } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
+ import { L as I } from "../Loading.ce-DmUVuFq5.js";
3
3
  import { u as L, a as j } from "../normalize-props-AlmAfi_u.js";
4
4
  const O = ["part"], R = {
5
5
  key: 1,
@@ -15,7 +15,7 @@ const O = ["part"], R = {
15
15
  loadingDuration: { type: Number }
16
16
  },
17
17
  setup(e, { expose: d }) {
18
- const i = x("hidden"), l = x([]), p = M(() => e.message.content.split(`
18
+ const i = x("hidden"), l = x([]), p = D(() => e.message.content.split(`
19
19
  `));
20
20
  function m(t) {
21
21
  return new Promise((a) => {
@@ -55,14 +55,14 @@ const O = ["part"], R = {
55
55
  }, [
56
56
  e.message.image ? (s(), n("img", z(P({ key: 0 }, e.message.image)), null, 16)) : g("", !0),
57
57
  e.message.image ? (s(), n("br", G)) : g("", !0),
58
- (s(!0), n(b, null, N(p.value, (o, r) => (s(), n(b, { key: r }, [
58
+ (s(!0), n(b, null, M(p.value, (o, r) => (s(), n(b, { key: r }, [
59
59
  r > 0 ? (s(), n("br", H)) : g("", !0),
60
60
  w(" " + v(o), 1)
61
61
  ], 64))), 128))
62
62
  ], 10, q)
63
63
  ], 2));
64
64
  }
65
- }), K = ".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}.message__content>img{max-width:100%}.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}}", Q = /* @__PURE__ */ D(J, [["styles", [K]]]), U = { part: "conversation" }, W = { class: "sr-only" }, X = /* @__PURE__ */ S({
65
+ }), K = ".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}.message__content>img{max-width:100%}.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}}", Q = /* @__PURE__ */ N(J, [["styles", [K]]]), U = { part: "conversation" }, W = { class: "sr-only" }, X = /* @__PURE__ */ S({
66
66
  __name: "MessageConversation.ce",
67
67
  props: {
68
68
  title: { default: "Conversation par messages", type: String },
@@ -70,7 +70,7 @@ const O = ["part"], R = {
70
70
  animationSpeed: { default: 20, type: Number }
71
71
  },
72
72
  setup(e, { expose: d }) {
73
- const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p = M(
73
+ const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p = D(
74
74
  () => e.messages.reduce(
75
75
  (t, a, o) => {
76
76
  const r = c(a);
@@ -80,8 +80,8 @@ const O = ["part"], R = {
80
80
  message: u,
81
81
  startAnimation: y,
82
82
  animationDuration: h
83
- } = t.at(-1), A = a.direction !== u.direction || a.userName !== u.userName, $ = y + h + i;
84
- return [...t, { message: a, displaySender: A, startAnimation: $, animationDuration: r }];
83
+ } = t.at(-1), C = a.direction !== u.direction || a.userName !== u.userName, $ = y + h + i;
84
+ return [...t, { message: a, displaySender: C, startAnimation: $, animationDuration: r }];
85
85
  },
86
86
  []
87
87
  )
@@ -97,7 +97,7 @@ const O = ["part"], R = {
97
97
  reset: f
98
98
  }), (t, a) => (s(), n("figure", U, [
99
99
  _("figcaption", W, v(e.title), 1),
100
- (s(!0), n(b, null, N(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, h) => (s(), V(Q, {
100
+ (s(!0), n(b, null, M(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, h) => (s(), V(Q, {
101
101
  ref_for: !0,
102
102
  ref: "messages",
103
103
  message: o,
@@ -109,8 +109,8 @@ const O = ["part"], R = {
109
109
  }, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
110
110
  ]));
111
111
  }
112
- }), Y = "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-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ D(X, [["styles", [Y]]]), C = F(Z);
113
- C.prototype.normalizeProps = (e) => ({
112
+ }), Y = "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-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ N(X, [["styles", [Y]]]), A = F(Z);
113
+ A.prototype.normalizeProps = (e) => ({
114
114
  ...e,
115
115
  animationSpeed: L(e.animationSpeed),
116
116
  messages: e.messages.map((d) => ({
@@ -118,4 +118,4 @@ C.prototype.normalizeProps = (e) => ({
118
118
  image: j(d.image)
119
119
  }))
120
120
  });
121
- window.customElements.define("message-conversation", C);
121
+ window.customElements.define("message-conversation", A);
@@ -1,9 +1,9 @@
1
- import { d as u, c as a, o as n, a as t, y as i, F as l, b as d, G as h, _ as m, f } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { a as p, i as o, b as v } from "../i18n-BB4WILwM.js";
1
+ import { d as u, c as a, o as n, a as t, A as i, F as l, b as d, x as h, _ as m, f } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
+ import { a as p, i as o, b as v } from "../i18n-DwNjk2PP.js";
3
3
  import { u as y } from "../normalize-props-AlmAfi_u.js";
4
4
  const b = {}, x = {}, S = {}, L = {
5
5
  "pix-article": { byAuthor: "Par {{author}}" }
6
- }, j = {}, A = {}, P = ["titleLevel"], E = { class: "article__metadata" }, H = { class: "article__author" }, N = ["innerHTML"], k = /* @__PURE__ */ u({
6
+ }, A = {}, j = {}, P = ["titleLevel"], E = { class: "article__metadata" }, H = { class: "article__author" }, N = ["innerHTML"], k = /* @__PURE__ */ u({
7
7
  __name: "PixArticle.ce",
8
8
  props: {
9
9
  titleLevel: { default: 2, type: Number },
@@ -35,7 +35,7 @@ const b = {}, x = {}, S = {}, L = {
35
35
  ], 64));
36
36
  }
37
37
  }), w = "[data-v-30ea36f1]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-30ea36f1]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-30ea36f1]{font-style:italic}.article__author[data-v-30ea36f1]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", B = /* @__PURE__ */ m(k, [["styles", [w]], ["__scopeId", "data-v-30ea36f1"]]);
38
- p(/* @__PURE__ */ Object.assign({ "./locales/en.json": b, "./locales/es-419.json": x, "./locales/es.json": S, "./locales/fr.json": L, "./locales/it.json": j, "./locales/nl.json": A })).catch((e) => console.error(e));
38
+ p(/* @__PURE__ */ Object.assign({ "./locales/en.json": b, "./locales/es-419.json": x, "./locales/es.json": S, "./locales/fr.json": L, "./locales/it.json": A, "./locales/nl.json": j })).catch((e) => console.error(e));
39
39
  const r = f(B, {
40
40
  configureApp(e) {
41
41
  o.changeLanguage(document?.documentElement?.lang ?? navigator.language), e.use(v, { i18next: o });
@@ -1,7 +1,7 @@
1
- import { d as S, c as n, o as t, v as M, a as s, E as L, L as R, B as z, y as g, G as l, _ as h, r as $, K as V, k as w, z as m, t as k, J as P, M as _, F as A, b as N, e as B, f as F } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { a as G, i as T, b as O } from "../i18n-BB4WILwM.js";
3
- import { B as j, N as D } from "../NavigationButton.ce-DlErTyfv.js";
4
- import { u as C, a as W } from "../normalize-props-AlmAfi_u.js";
1
+ import { d as S, c as n, o as t, y as M, a as s, v as L, L as R, D as z, A as g, x as l, _ as h, r as $, K as V, k as w, B as m, t as k, J as P, M as _, F as A, b as N, e as B, f as F } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
+ import { a as O, i as T, b as W } from "../i18n-DwNjk2PP.js";
3
+ import { B as j, N as D } from "../NavigationButton.ce-COLdN-XJ.js";
4
+ import { u as C, a as G } from "../normalize-props-AlmAfi_u.js";
5
5
  const Z = {
6
6
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
7
7
  }, J = {}, K = {
@@ -260,10 +260,10 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
260
260
  ], 8, Le));
261
261
  }
262
262
  }), Te = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{align-items:center;display:flex;grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:inline-flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap;transform:translateY(-.25rem)}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media only screen and (max-width:576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", je = /* @__PURE__ */ h(Be, [["styles", [Te]]]);
263
- G(/* @__PURE__ */ Object.assign({ "./locales/en.json": Z, "./locales/es-419.json": J, "./locales/es.json": K, "./locales/fr.json": Y, "./locales/it.json": q, "./locales/nl.json": Q })).catch((e) => console.error(e));
263
+ O(/* @__PURE__ */ Object.assign({ "./locales/en.json": Z, "./locales/es-419.json": J, "./locales/es.json": K, "./locales/fr.json": Y, "./locales/it.json": q, "./locales/nl.json": Q })).catch((e) => console.error(e));
264
264
  const I = F(je, {
265
265
  configureApp(e) {
266
- T.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(O, { i18next: T });
266
+ T.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(W, { i18next: T });
267
267
  }
268
268
  });
269
269
  I.prototype.normalizeProps = (e) => ({
@@ -273,7 +273,7 @@ I.prototype.normalizeProps = (e) => ({
273
273
  ...i,
274
274
  displayHeight: C(i.displayHeight),
275
275
  displayWidth: C(i.displayWidth),
276
- license: W(i.license)
276
+ license: G(i.license)
277
277
  }))
278
278
  });
279
279
  window.customElements.define("pix-carousel", I);
@@ -1,6 +1,6 @@
1
- import { d as E, r as k, J as y, k as m, A as S, c as a, o as i, a as s, l as B, G as d, y as u, F as f, b, N as H, z as g, v as C, M as L, E as F, q as P, _ as D, f as G } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { a as q, i as w, b as J } from "../i18n-BB4WILwM.js";
3
- import { N as j } from "../NavigationButton.ce-DlErTyfv.js";
1
+ import { d as B, r as k, J as y, k as m, C as S, c as a, o as i, a as s, l as E, x as d, A as u, F as f, b, N as H, B as g, y as C, M as L, v as F, q as P, _ as D, f as q } from "../_plugin-vue_export-helper-b0PKqEbd.js";
2
+ import { a as G, i as w, b as J } from "../i18n-DwNjk2PP.js";
3
+ import { N as j } from "../NavigationButton.ce-COLdN-XJ.js";
4
4
  const R = {}, U = {}, K = {}, Q = {
5
5
  "pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
6
6
  }, W = {}, X = {}, Y = ["for"], Z = {
@@ -12,17 +12,17 @@ const R = {}, U = {}, K = {}, Q = {
12
12
  }, ce = {
13
13
  key: 0,
14
14
  class: "confirm"
15
- }, de = ["innerHTML", "aria-hidden"], ue = /* @__PURE__ */ E({
15
+ }, de = ["innerHTML", "aria-hidden"], ue = /* @__PURE__ */ B({
16
16
  __name: "PixCursor.ce",
17
17
  props: {
18
18
  options: { type: Array }
19
19
  },
20
20
  setup(n, { expose: M }) {
21
21
  const p = n, r = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), x = y(), N = m(() => r.value === p.options.length - 1), I = m(() => r.value === 0), c = m(() => Number(r.value));
22
- function z() {
22
+ function $() {
23
23
  o.value = !0;
24
24
  }
25
- function $() {
25
+ function z() {
26
26
  o.value || (r.value = Math.max(0, c.value - 1));
27
27
  }
28
28
  function O() {
@@ -40,7 +40,7 @@ const R = {}, U = {}, K = {}, Q = {
40
40
  const V = S("i18next");
41
41
  return i(), a("form", {
42
42
  class: "pix-cursor",
43
- onSubmit: P(z, ["prevent"])
43
+ onSubmit: P($, ["prevent"])
44
44
  }, [
45
45
  s("div", null, [
46
46
  s("label", {
@@ -61,7 +61,7 @@ const R = {}, U = {}, K = {}, Q = {
61
61
  label: t.label
62
62
  }, u(t.label), 9, te))), 128))
63
63
  ], 8, oe),
64
- B(s("input", {
64
+ E(s("input", {
65
65
  "onUpdate:modelValue": h[0] || (h[0] = (t) => r.value = t),
66
66
  id: d(v),
67
67
  type: "range",
@@ -74,7 +74,7 @@ const R = {}, U = {}, K = {}, Q = {
74
74
  ]),
75
75
  s("div", ae, [
76
76
  g(j, {
77
- onClick: $,
77
+ onClick: z,
78
78
  disabled: o.value || I.value,
79
79
  label: l.$t("pix-cursor.previous"),
80
80
  "aria-controls": d(v),
@@ -129,8 +129,8 @@ const R = {}, U = {}, K = {}, Q = {
129
129
  };
130
130
  }
131
131
  }), pe = "[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}", ve = /* @__PURE__ */ D(ue, [["styles", [pe]], ["__scopeId", "data-v-58e704c5"]]);
132
- q(/* @__PURE__ */ Object.assign({ "./locales/en.json": R, "./locales/es-419.json": U, "./locales/es.json": K, "./locales/fr.json": Q, "./locales/it.json": W, "./locales/nl.json": X })).catch((n) => console.error(n));
133
- window.customElements.define("pix-cursor", G(ve, {
132
+ G(/* @__PURE__ */ Object.assign({ "./locales/en.json": R, "./locales/es-419.json": U, "./locales/es.json": K, "./locales/fr.json": Q, "./locales/it.json": W, "./locales/nl.json": X })).catch((n) => console.error(n));
133
+ window.customElements.define("pix-cursor", q(ve, {
134
134
  configureApp(n) {
135
135
  w.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(J, { i18next: w });
136
136
  }