@1024pix/epreuves-components 2.2.6 → 2.4.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.
Files changed (35) hide show
  1. package/dist/ButtonTooltip.ce-CjtFa5aM.js +44 -0
  2. package/dist/{LLMMessage.ce-qbRxqNxR.js → LLMMessage.ce-Cjpb0CiE.js} +22 -22
  3. package/dist/{Loading.ce-CiVWBT3g.js → Loading.ce-1tk4uU9c.js} +1 -1
  4. package/dist/NavigationButton.ce-CxI2QW8z.js +59 -0
  5. package/dist/{Retry-CuUMOAZi.js → Retry-CY90VQJl.js} +1 -1
  6. package/dist/{_plugin-vue_export-helper-D7ghZaw4.js → _plugin-vue_export-helper-DOoVeFcJ.js} +26 -26
  7. package/dist/components/calcul-impact.ce.js.js +11 -11
  8. package/dist/components/capacity-calculation.ce.js.js +31 -31
  9. package/dist/components/clickable-image.ce.js.js +10 -10
  10. package/dist/components/complete-phrase.ce.js.js +85 -91
  11. package/dist/components/flip-cards.ce.js.js +11 -11
  12. package/dist/components/image-quiz.ce.js.js +2 -2
  13. package/dist/components/image-quizzes.ce.js.js +2 -2
  14. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  15. package/dist/components/llm-messages.ce.js.js +3 -3
  16. package/dist/components/llm-prompt-select.ce.js.js +4 -4
  17. package/dist/components/message-conversation.ce.js.js +21 -21
  18. package/dist/components/mobile-shell.ce.js.js +8 -5
  19. package/dist/components/phishing-message.ce.js.js +261 -0
  20. package/dist/components/phishing-notification.ce.js.js +355 -0
  21. package/dist/components/pix-article.ce.js.js +5 -5
  22. package/dist/components/pix-carousel.ce.js.js +19 -18
  23. package/dist/components/pix-cursor.ce.js.js +28 -28
  24. package/dist/components/qcm-deepfake.ce.js.js +19 -19
  25. package/dist/components/select-conversation.ce.js.js +104 -0
  26. package/dist/{i18n-DX3ApBSH.js → i18n-ecSMtuba.js} +74 -53
  27. package/dist/{image-quiz.ce-3HDl6Z67.js → image-quiz.ce-CpI6lZ9m.js} +15 -15
  28. package/dist/index-4XnHmtKv.js +11905 -0
  29. package/dist/index.js +4 -1
  30. package/dist/metadata.js +44 -32
  31. package/dist/schema.js +63 -24
  32. package/dist/{shadow-dom-CFAQERh6.js → shadow-dom-DZbyKUWP.js} +1 -1
  33. package/dist/temporal.utils-B23shw3k.js +4958 -0
  34. package/package.json +1 -1
  35. package/dist/NavigationButton.ce-DF5ScHc4.js +0 -98
@@ -1,4 +1,4 @@
1
- import { d as E, g as O, r as x, h as P, j as W, k as c, c as d, o as p, a as w, l as _, m as j, F as D, b as L, q as V, t as y, v as q, x as T, y as U, z as X, A as Y, _ as G, f as H } from "../_plugin-vue_export-helper-D7ghZaw4.js";
1
+ import { d as E, q as O, r as x, v as P, x as W, y as c, c as d, o as p, a as w, z as _, m as D, F as L, b as V, i as j, A as y, B as q, h as T, n as U, C as X, t as Y, _ as G, f as H } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
2
  import { u as C } from "../normalize-props-AlmAfi_u.js";
3
3
  const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "aria-label"], v = 10, Q = /* @__PURE__ */ E({
4
4
  __name: "ClickableImage.ce",
@@ -46,13 +46,13 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
46
46
  function F(e) {
47
47
  i.value = e;
48
48
  }
49
- function N() {
49
+ function B() {
50
50
  i.value = void 0;
51
51
  }
52
52
  const m = c(() => i.value ?? f.value), u = c(() => {
53
53
  if (m.value !== void 0)
54
54
  return h.value[m.value];
55
- }), R = c(() => {
55
+ }), N = c(() => {
56
56
  if (!u.value) return {};
57
57
  const { tooltipPosition: e, coords: { x1: t, y1: o, x2: a, y2: s } } = u.value;
58
58
  switch (e) {
@@ -82,17 +82,17 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
82
82
  };
83
83
  }
84
84
  });
85
- function B() {
85
+ function R() {
86
86
  i.value = void 0;
87
87
  }
88
- return S({ reset: B }), (e, t) => (p(), d("div", J, [
89
- w("img", j(n.image, {
88
+ return S({ reset: R }), (e, t) => (p(), d("div", J, [
89
+ w("img", D(n.image, {
90
90
  ref: "image",
91
91
  onLoad: t[0] || (t[0] = (o) => g()),
92
- onClick: t[1] || (t[1] = (o) => N()),
92
+ onClick: t[1] || (t[1] = (o) => B()),
93
93
  alt: ""
94
94
  }), null, 16),
95
- (p(!0), d(D, null, L(h.value, (o, a) => (p(), d("button", {
95
+ (p(!0), d(L, null, V(h.value, (o, a) => (p(), d("button", {
96
96
  key: a,
97
97
  style: y({
98
98
  "--y1": `${o.coords.y1}px`,
@@ -105,7 +105,7 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
105
105
  onMouseleave: t[2] || (t[2] = (s) => k()),
106
106
  onFocusin: (s) => $(a),
107
107
  onFocusout: t[3] || (t[3] = (s) => k()),
108
- onClick: V((s) => F(a), ["stop"]),
108
+ onClick: j((s) => F(a), ["stop"]),
109
109
  "aria-label": o.info
110
110
  }, [
111
111
  T(A) ? (p(), d("span", {
@@ -120,7 +120,7 @@ const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "
120
120
  _(w("p", {
121
121
  class: "tooltip",
122
122
  "aria-hidden": "true",
123
- style: y(R.value)
123
+ style: y(N.value)
124
124
  }, Y(u.value?.info), 5), [
125
125
  [X, u.value]
126
126
  ])
@@ -1,83 +1,82 @@
1
- import { d as g, c as s, o as t, a, A as c, t as z, _ as y, y as S, C as M, G as R, r as b, k as w, v as T, F as $, b as q, e as k, D as L, f as V } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { a as E, i as P, b as I } from "../i18n-DX3ApBSH.js";
3
- import { u as D } from "../normalize-props-AlmAfi_u.js";
4
- import { L as B } from "../LLMMessage.ce-qbRxqNxR.js";
5
- const O = {}, F = {}, W = {}, G = {
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
- }, H = {}, Q = {}, U = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ g({
1
+ import { d as h, c as n, o, a, t as c, A as S, _ as f, n as P, j as A, H as N, r as y, y as m, B as z, F as x, b as k, e as v, E as q, f as M } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
+ import { u as O, a as E, i as L, b as I } from "../i18n-ecSMtuba.js";
3
+ import { u as R } from "../normalize-props-AlmAfi_u.js";
4
+ import { L as B } from "../LLMMessage.ce-Cjpb0CiE.js";
5
+ const T = {}, V = {}, D = {}, F = {
6
+ "complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisit par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! Il peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... Il choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
7
+ }, H = {}, Q = {}, W = { class: "probability-bar" }, U = { "aria-hidden": "true" }, G = { class: "sr-only" }, J = /* @__PURE__ */ h({
8
8
  __name: "ProbabilityBar.ce",
9
9
  props: {
10
10
  name: { type: String },
11
11
  percent: { type: Number }
12
12
  },
13
13
  setup(e) {
14
- return (p, o) => (t(), s("div", U, [
15
- a("p", J, c(e.name), 1),
16
- a("p", K, c(p.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
14
+ return (d, t) => (o(), n("div", W, [
15
+ a("p", U, c(e.name), 1),
16
+ a("p", G, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
17
17
  a("div", {
18
- style: z(`width: ${e.percent}%`),
18
+ style: S(`width: ${e.percent}%`),
19
19
  class: "probability-bar__percent",
20
20
  "aria-hidden": "true"
21
21
  }, null, 4),
22
- o[0] || (o[0] = a("div", {
22
+ t[0] || (t[0] = a("div", {
23
23
  class: "probability-bar__background",
24
24
  "aria-hidden": "true"
25
25
  }, null, -1))
26
26
  ]));
27
27
  }
28
- }), Y = ".probability-bar[data-v-195ffe53]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-195ffe53]{margin:0}.probability-bar__percent[data-v-195ffe53]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:var(--pix-neutral-900)}.probability-bar__background[data-v-195ffe53]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:var(--pix-neutral-100)}.sr-only[data-v-195ffe53]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ y(X, [["styles", [Y]], ["__scopeId", "data-v-195ffe53"]]), ee = /* @__PURE__ */ g({
28
+ }), K = ".probability-bar[data-v-19f7d147]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-19f7d147]{margin:0}.probability-bar__percent[data-v-19f7d147]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:#122647}.probability-bar__background[data-v-19f7d147]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:#cdd1d9}.sr-only[data-v-19f7d147]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", X = /* @__PURE__ */ f(J, [["styles", [K]], ["__scopeId", "data-v-19f7d147"]]), Y = /* @__PURE__ */ h({
29
29
  __name: "Button.ce",
30
30
  props: {
31
31
  label: { type: String },
32
32
  state: { type: String }
33
33
  },
34
34
  setup(e) {
35
- return (p, o) => (t(), s("button", {
36
- class: S(["complete-phrase_button", e.state])
35
+ return (d, t) => (o(), n("button", {
36
+ class: P(["complete-phrase_button", e.state])
37
37
  }, [
38
- M(p.$slots, "icon"),
39
- R(" " + c(e.label), 1)
38
+ A(d.$slots, "icon"),
39
+ N(" " + c(e.label), 1)
40
40
  ], 2));
41
41
  }
42
- }), te = ".complete-phrase_button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.complete-phrase_button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.complete-phrase_button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.complete-phrase_button.primary,.complete-phrase_button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}", ae = /* @__PURE__ */ y(ee, [["styles", [te]]]), oe = { class: "qcu" }, re = { class: "qcu__list" }, ie = ["id", "aria-label", "value", "checked", "disabled"], se = { for: "`choice${index}`" }, ne = {
42
+ }), Z = ".complete-phrase_button.primary{--background-color: #253858;--background-color-hover: #122647;--color: #fff;--color-hover: #fff}.complete-phrase_button.warning{--background-color: #ffcb33;--background-color-hover: #a16206;--color: #122647;--color-hover: #fff}.complete-phrase_button.primary,.complete-phrase_button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}", ee = /* @__PURE__ */ f(Y, [["styles", [Z]]]), te = { class: "qcu" }, oe = { class: "qcu__list" }, ae = ["id", "onClick", "aria-label", "checked", "disabled"], se = { for: "`choice${index}`" }, ie = {
43
43
  key: 0,
44
44
  class: "feedback"
45
- }, le = /* @__PURE__ */ g({
45
+ }, re = /* @__PURE__ */ h({
46
46
  __name: "QCU.ce",
47
47
  props: {
48
48
  list: { type: Array },
49
49
  title: { type: String }
50
50
  },
51
- emits: ["visible"],
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
- function u(n) {
55
- r.value = n.target.value, m.value === r.value && (o("visible"), d.value = !0);
51
+ emits: ["answer"],
52
+ setup(e, { emit: d }) {
53
+ const t = d, s = y(null), { t: p } = O(), _ = m(() => s.value.percent === 100 ? p("complete-phrase.feedback.sure") : s.value.percent >= 50 ? p("complete-phrase.feedback.probably", { word: e.list.find((i) => i.percent === 100).name }) : p("complete-phrase.feedback.notSure", { words: e.list.filter((i) => i.percent >= 50).map((i) => i.name) }));
54
+ function g(i) {
55
+ s.value = i, t("answer", i.name);
56
56
  }
57
- return (n, x) => (t(), s("div", oe, [
57
+ return (i, w) => (o(), n("div", te, [
58
58
  a("p", null, c(e.title), 1),
59
- a("section", re, [
60
- (t(!0), s($, null, q(e.list, (_, v) => (t(), s("div", {
59
+ a("section", oe, [
60
+ (o(!0), n(x, null, k(e.list, (r, l) => (o(), n("div", {
61
61
  class: "qcu__list-choice",
62
- key: v
62
+ key: l
63
63
  }, [
64
64
  a("input", {
65
- id: `choice${v}`,
65
+ id: `choice${l}`,
66
66
  type: "radio",
67
67
  name: "qcu-choice",
68
- onClick: u,
69
- "aria-label": _.name,
70
- value: _.name,
71
- checked: r.value === _.name,
72
- disabled: d.value
73
- }, null, 8, ie),
74
- a("label", se, c(_.name), 1)
68
+ onClick: (u) => g(r),
69
+ "aria-label": r.name,
70
+ checked: s.value === r,
71
+ disabled: !!s.value
72
+ }, null, 8, ae),
73
+ a("label", se, c(r.name), 1)
75
74
  ]))), 128))
76
75
  ]),
77
- m.value === r.value ? (t(), s("section", ne, c(n.$t("complete-phrase.feedback")), 1)) : T("", !0)
76
+ s.value ? (o(), n("section", ie, c(_.value), 1)) : z("", !0)
78
77
  ]));
79
78
  }
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({
79
+ }), ne = "[data-v-74566fe6]{font-family:Roboto,sans-serif;color:#122647}.qcu[data-v-74566fe6]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-74566fe6]{margin:0}.qcu__list[data-v-74566fe6]{display:flex;gap:16px}.qcu__list-choice[data-v-74566fe6]{position:relative}.qcu__list-choice input[data-v-74566fe6]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-74566fe6]{background-color:#3b82f6;color:#fff}.qcu__list-choice input[data-v-74566fe6]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-74566fe6]{background-color:#3b82f6;color:#fff;transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-74566fe6],.qcu__list-choice input[data-v-74566fe6]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-74566fe6],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-74566fe6]{background:#e6f2fe;color:#122647;cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-74566fe6]{align-items:center;background:#e6f2fe;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-74566fe6]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:#e6f2fe}", le = /* @__PURE__ */ f(re, [["styles", [ne]], ["__scopeId", "data-v-74566fe6"]]), ce = { class: "complete-phrase" }, de = ["aria-level"], pe = { class: "complete-phrase__description" }, ue = { class: "complete-phrase__container" }, be = { class: "complete-phrase-container__conversation" }, me = { class: "complete-phrase-container__probabilities" }, he = ["id", "aria-hidden"], fe = /* @__PURE__ */ h({
81
80
  __name: "CompletePhrase.ce",
82
81
  props: {
83
82
  listOfProbabilityBarsLists: { type: Array },
@@ -86,84 +85,79 @@ const O = {}, F = {}, W = {}, G = {
86
85
  wordsToAdd: { type: Array },
87
86
  titleLevel: { type: Number }
88
87
  },
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
- return i;
93
- }), _ = w(() => {
94
- let [i] = u.value, l = "complete-message-word";
95
- if (d.value) {
96
- const [f] = x.value;
97
- i = f.name, l += ` complete-message-word--${n.value ? "visible" : "hidden"}`;
98
- }
99
- return `<p>${m.value} <span class="${l}">${i}</span></p>`;
88
+ setup(e, { expose: d }) {
89
+ const t = y(0), s = y(null), p = m(() => t.value === e.listOfProbabilityBarsLists.length - 1), _ = m(() => e.listOfProbabilityBarsLists[e.listOfProbabilityBarsLists.length - 1]), g = m(() => {
90
+ const r = e.wordsToAdd[t.value] ?? s.value ?? e.listOfProbabilityBarsLists[t.value][0].name, l = ["complete-message-word"];
91
+ return p.value && l.push(`complete-message-word--${s.value ? "visible" : "hidden"}`), `<p>
92
+ ${e.llmMessage}
93
+ ${e.wordsToAdd.slice(0, t.value).map((u) => `<span class="complete-message-word">${u}</span>`).join(" ")}
94
+ <span class="${l.join(" ")}">${r}</span>
95
+ </p>`;
100
96
  });
101
- function v() {
102
- d.value = !1, m.value = o.llmMessage, u.value = o.wordsToAdd, r.value = 0;
97
+ function i() {
98
+ t.value = 0, s.value = null;
103
99
  }
104
- function N() {
105
- u.value.length === 1 && (d.value = !0), r.value += 1;
106
- const [i, ...l] = u.value;
107
- u.value = l, m.value += `<span class="complete-message-word">${i} </span>`;
100
+ function w() {
101
+ t.value += 1;
108
102
  }
109
- return p({
110
- reset: v
111
- }), (i, l) => (t(), s("div", de, [
103
+ return d({
104
+ reset: i
105
+ }), (r, l) => (o(), n("div", ce, [
112
106
  a("div", {
113
107
  class: "complete-phrase__title",
114
108
  role: "heading",
115
109
  "aria-level": e.titleLevel
116
- }, c(i.$t("complete-phrase.title")), 9, ue),
117
- a("p", be, c(i.$t("complete-phrase.description")), 1),
118
- a("section", me, [
119
- a("div", _e, [
120
- L(B, {
110
+ }, c(r.$t("complete-phrase.title")), 9, de),
111
+ a("p", pe, c(r.$t("complete-phrase.description")), 1),
112
+ a("section", ue, [
113
+ a("div", be, [
114
+ q(B, {
121
115
  class: "container__message",
122
116
  message: { content: e.userMessage, direction: "outbound" }
123
117
  }, null, 8, ["message"]),
124
- L(B, {
118
+ q(B, {
125
119
  class: "container__message",
126
- message: { content: _.value, direction: "inbound" }
120
+ message: { content: g.value, direction: "inbound" }
127
121
  }, null, 8, ["message"])
128
122
  ]),
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
123
+ a("div", me, [
124
+ (o(!0), n(x, null, k(e.listOfProbabilityBarsLists, (u, b) => (o(), n("div", {
125
+ class: P(["probability", { hidden: b !== t.value }]),
126
+ key: b,
127
+ id: `currentProbability${b}`,
128
+ "aria-hidden": b !== t.value
135
129
  }, [
136
- (t(!0), s($, null, q(f, (C, j) => (t(), k(Z, {
137
- name: C.name,
138
- percent: C.percent,
130
+ (o(!0), n(x, null, k(u, ($, j) => (o(), v(X, {
131
+ name: $.name,
132
+ percent: $.percent,
139
133
  key: j
140
134
  }, null, 8, ["name", "percent"]))), 128))
141
- ], 10, ve))), 128))
135
+ ], 10, he))), 128))
142
136
  ])
143
137
  ]),
144
- d.value ? (t(), k(pe, {
145
- key: 1,
146
- list: x.value,
147
- title: i.$t("complete-phrase.successfullyCompletedSentence"),
148
- onVisible: l[0] || (l[0] = (f) => n.value = !0)
149
- }, null, 8, ["list", "title"])) : (t(), k(ae, {
138
+ p.value ? (o(), v(le, {
150
139
  key: 0,
151
- onClick: N,
140
+ list: _.value,
141
+ title: r.$t("complete-phrase.successfullyCompletedSentence"),
142
+ onAnswer: l[0] || (l[0] = (u) => s.value = u)
143
+ }, null, 8, ["list", "title"])) : (o(), v(ee, {
144
+ key: 1,
145
+ onClick: w,
152
146
  state: "primary",
153
- label: i.$t("complete-phrase.clickHereButton"),
154
- "aria-describedby": `currentProbability${r.value}`
147
+ label: r.$t("complete-phrase.clickHereButton"),
148
+ "aria-describedby": `currentProbability${t.value}`
155
149
  }, null, 8, ["label", "aria-describedby"]))
156
150
  ]));
157
151
  }
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": G, "./locales/it.json": H, "./locales/nl.json": Q })).catch((e) => console.error(e));
160
- const A = V(ye, {
152
+ }), _e = "*{font-family:Roboto,sans-serif;color:#122647}.complete-phrase__title{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation{background:#fff;border:1px solid #cdd1d9;border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message{align-items:center}.complete-phrase-container__probabilities{display:grid}.complete-phrase-container__probabilities .probability{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden{visibility:hidden}.complete-message-word:last-child{border:none;filter:blur(4px);font-weight:600;height:auto;width:auto}.complete-message-word--visible:last-child{color:inherit;filter:none;font-weight:700}.complete-message-word--hidden:last-child{background-color:#f4f5f7;border-radius:4px;border:1px dashed #5e6c84;color:transparent;display:inline-block;filter:none;padding:2px 4px}.complete-message-word:nth-last-child(2){font-weight:600}@media(max-width:600px){.complete-phrase__container{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden{display:none}}", ge = /* @__PURE__ */ f(fe, [["styles", [_e]]]);
153
+ E(/* @__PURE__ */ Object.assign({ "./locales/en.json": T, "./locales/es-419.json": V, "./locales/es.json": D, "./locales/fr.json": F, "./locales/it.json": H, "./locales/nl.json": Q })).catch((e) => console.error(e));
154
+ const C = M(ge, {
161
155
  configureApp(e) {
162
- P.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(I, { i18next: P });
156
+ L.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(I, { i18next: L });
163
157
  }
164
158
  });
165
- A.prototype.normalizeProps = (e) => ({
159
+ C.prototype.normalizeProps = (e) => ({
166
160
  ...e,
167
- titleLevel: D(e.titleLevel)
161
+ titleLevel: R(e.titleLevel)
168
162
  });
169
- window.customElements.define("complete-phrase", A);
163
+ window.customElements.define("complete-phrase", C);
@@ -1,6 +1,6 @@
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, J as g, D as F, f as _ } from "../_plugin-vue_export-helper-D7ghZaw4.js";
1
+ import { d as m, c as n, o as d, F as u, a as t, n as v, h as p, t as f, B as y, _ as h, r as w, b as k, L as g, E as F, f as _ } from "../_plugin-vue_export-helper-DOoVeFcJ.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" }, U = { class: "image-container" }, j = ["src"], D = /* @__PURE__ */ m({
3
+ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"], $ = ["aria-level"], B = { class: "description" }, E = { class: "image-container" }, U = ["src"], j = /* @__PURE__ */ m({
4
4
  __name: "FlipCard.ce",
5
5
  props: {
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", U, [
42
+ t("div", E, [
43
43
  p(l) ? (d(), n("img", {
44
44
  key: 0,
45
45
  src: p(l),
46
46
  alt: ""
47
- }, null, 8, j)) : y("", !0)
47
+ }, null, 8, U)) : y("", !0)
48
48
  ])
49
49
  ], 10, S)
50
50
  ], 64));
51
51
  }
52
- }), E = "[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%}", K = /* @__PURE__ */ h(D, [["styles", [E]], ["__scopeId", "data-v-897a493f"]]), V = { class: "flip-cards" }, A = ["aria-level"], I = ["aria-expanded", "onClick", "onKeydown"], R = { class: "flip-container" }, Y = /* @__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(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({
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", V, [
69
+ return (i, c) => (d(), n("div", D, [
70
70
  t("div", {
71
71
  role: "heading",
72
72
  "aria-level": e.titleLevel,
73
73
  class: "sr-only"
74
- }, f(e.name), 9, A),
74
+ }, f(e.name), 9, I),
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,8 +84,8 @@ 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", R, [
88
- F(K, {
87
+ t("div", Y, [
88
+ F(V, {
89
89
  color: a.color,
90
90
  description: a.description,
91
91
  icon: a.icon,
@@ -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, I))), 128))
98
+ ], 42, R))), 128))
99
99
  ]));
100
100
  }
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)}", J = /* @__PURE__ */ h(Y, [["styles", [Z]], ["__scopeId", "data-v-394f37d2"]]), b = _(J);
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)}", P = /* @__PURE__ */ h(Z, [["styles", [A]], ["__scopeId", "data-v-394f37d2"]]), b = _(P);
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-D7ghZaw4.js";
2
- import { n as p } from "../image-quiz.ce-3HDl6Z67.js";
1
+ import "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
+ import { n as p } from "../image-quiz.ce-CpI6lZ9m.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-D7ghZaw4.js";
2
- import { I as A, n as I } from "../image-quiz.ce-3HDl6Z67.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-DOoVeFcJ.js";
2
+ import { I as A, n as I } from "../image-quiz.ce-CpI6lZ9m.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, A as n, F as r, b as m, D as i, _ as p, f as g } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { L as l } from "../LLMMessage.ce-qbRxqNxR.js";
3
- import { p as u } from "../shadow-dom-CFAQERh6.js";
1
+ import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, E as i, _ as p, f as g } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
+ import { L as l } from "../LLMMessage.ce-Cjpb0CiE.js";
3
+ import { p as u } from "../shadow-dom-DZbyKUWP.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
@@ -1,6 +1,6 @@
1
- import { d as c, H as m, I 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-D7ghZaw4.js";
2
- import { L as h } from "../LLMMessage.ce-qbRxqNxR.js";
3
- import { p as _ } from "../shadow-dom-CFAQERh6.js";
1
+ import { d as c, I as m, J 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-DOoVeFcJ.js";
2
+ import { L as h } from "../LLMMessage.ce-Cjpb0CiE.js";
3
+ import { p as _ } from "../shadow-dom-DZbyKUWP.js";
4
4
  const x = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
@@ -1,7 +1,7 @@
1
- import { d as h, r as c, E as y, c as d, o as m, D as w, a, G as k, F as b, b as L, A as S, _ as C, f as P } from "../_plugin-vue_export-helper-D7ghZaw4.js";
1
+ import { d as h, r as c, G as y, c as d, o as m, E as w, a, H as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
2
  import { u as N } from "../normalize-props-AlmAfi_u.js";
3
3
  import "./llm-messages.ce.js.js";
4
- const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, A = ["disabled", "onClick"], B = /* @__PURE__ */ h({
4
+ const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B = ["disabled", "onClick"], V = /* @__PURE__ */ h({
5
5
  __name: "LLMPromptSelect.ce",
6
6
  props: {
7
7
  messages: { type: Array },
@@ -58,13 +58,13 @@ const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, A
58
58
  key: i,
59
59
  disabled: n.disabled || l.value,
60
60
  onClick: (f) => v(n)
61
- }, S(n.prompt), 9, A))), 128))
61
+ }, S(n.prompt), 9, B))), 128))
62
62
  ])
63
63
  ])
64
64
  ], 64);
65
65
  };
66
66
  }
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__ */ C(B, [["styles", [V]]]), _ = P(z);
67
+ }), z = ".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}", A = /* @__PURE__ */ C(V, [["styles", [z]]]), _ = P(A);
68
68
  _.prototype.normalizeProps = (r) => ({
69
69
  ...r,
70
70
  speed: N(r.speed)
@@ -1,11 +1,11 @@
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 _, G as w, A as v, D as E, K 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-D7ghZaw4.js";
2
- import { L } from "../Loading.ce-CiVWBT3g.js";
1
+ import { d as M, r as x, y as S, v as B, c as n, o as s, n as w, B as g, a as _, H as k, t as v, E, M as z, m as P, F as b, b as N, _ as D, q as T, e as V, f as F } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
+ import { L } from "../Loading.ce-1tk4uU9c.js";
3
3
  import { u as j, a as I } from "../normalize-props-AlmAfi_u.js";
4
- const O = ["part"], G = {
4
+ const O = ["part"], q = {
5
5
  key: 1,
6
6
  class: "message__loader message__content",
7
7
  "aria-hidden": "true"
8
- }, K = ["part"], R = { key: 1 }, q = { key: 0 }, H = /* @__PURE__ */ S({
8
+ }, H = ["part"], R = { key: 1 }, G = { key: 0 }, J = /* @__PURE__ */ M({
9
9
  __name: "Message.ce",
10
10
  props: {
11
11
  displaySender: { type: Boolean, default: !0 },
@@ -15,7 +15,7 @@ const O = ["part"], G = {
15
15
  loadingDuration: { type: Number }
16
16
  },
17
17
  setup(e, { expose: d }) {
18
- const i = x("hidden"), l = x([]), p = D(() => e.message.content.split(`
18
+ const i = x("hidden"), l = x([]), p = S(() => e.message.content.split(`
19
19
  `));
20
20
  function m(t) {
21
21
  return new Promise((a) => {
@@ -33,7 +33,7 @@ const O = ["part"], G = {
33
33
  return d({
34
34
  reset: f
35
35
  }), (t, a) => (s(), n("div", {
36
- class: k(["message", [
36
+ class: w(["message", [
37
37
  `message--${e.message.direction}`,
38
38
  { "hidden-state": i.value === "hidden" }
39
39
  ]])
@@ -44,25 +44,25 @@ const O = ["part"], G = {
44
44
  part: `sender ${e.message.direction}`
45
45
  }, [
46
46
  a[0] || (a[0] = _("span", { class: "sr-only" }, "Message de ", -1)),
47
- w(v(e.message.userName), 1)
47
+ k(v(e.message.userName), 1)
48
48
  ], 8, O)) : g("", !0),
49
- i.value === "loading" ? (s(), n("div", G, [
49
+ i.value === "loading" ? (s(), n("div", q, [
50
50
  E(L)
51
51
  ])) : g("", !0),
52
52
  _("p", {
53
- class: k(["message__content", { "hidden-state": i.value !== "visible" }]),
53
+ class: w(["message__content", { "hidden-state": i.value !== "visible" }]),
54
54
  part: `message ${e.message.direction}`
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", R)) : g("", !0),
58
- (s(!0), n(b, null, M(p.value, (o, r) => (s(), n(b, { key: r }, [
59
- r > 0 ? (s(), n("br", q)) : g("", !0),
60
- w(" " + v(o), 1)
58
+ (s(!0), n(b, null, N(p.value, (o, r) => (s(), n(b, { key: r }, [
59
+ r > 0 ? (s(), n("br", G)) : g("", !0),
60
+ k(" " + v(o), 1)
61
61
  ], 64))), 128))
62
- ], 10, K)
62
+ ], 10, H)
63
63
  ], 2));
64
64
  }
65
- }), J = ".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(H, [["styles", [J]]]), 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__ */ D(J, [["styles", [K]]]), U = { part: "conversation" }, W = { class: "sr-only" }, X = /* @__PURE__ */ M({
66
66
  __name: "MessageConversation.ce",
67
67
  props: {
68
68
  title: { default: "Conversation par messages", type: String },
@@ -70,7 +70,7 @@ const O = ["part"], G = {
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 = D(
73
+ const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p = S(
74
74
  () => e.messages.reduce(
75
75
  (t, a, o) => {
76
76
  const r = c(a);
@@ -80,8 +80,8 @@ const O = ["part"], G = {
80
80
  message: u,
81
81
  startAnimation: y,
82
82
  animationDuration: h
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 }];
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 }];
85
85
  },
86
86
  []
87
87
  )
@@ -97,7 +97,7 @@ const O = ["part"], G = {
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, M(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, h) => (s(), V(Q, {
100
+ (s(!0), n(b, null, N(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"], G = {
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__ */ N(X, [["styles", [Y]]]), A = F(Z);
113
- A.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__ */ D(X, [["styles", [Y]]]), C = F(Z);
113
+ C.prototype.normalizeProps = (e) => ({
114
114
  ...e,
115
115
  animationSpeed: j(e.animationSpeed),
116
116
  messages: e.messages.map((d) => ({
@@ -118,4 +118,4 @@ A.prototype.normalizeProps = (e) => ({
118
118
  image: I(d.image)
119
119
  }))
120
120
  });
121
- window.customElements.define("message-conversation", A);
121
+ window.customElements.define("message-conversation", C);