@1024pix/epreuves-components 2.4.2 → 2.4.4

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 (36) hide show
  1. package/dist/{ButtonTooltip.ce-CjtFa5aM.js → ButtonTooltip.ce-CZed5BUq.js} +1 -1
  2. package/dist/{LLMMessage.ce-Cjpb0CiE.js → LLMMessage.ce-FJCO_wvC.js} +2 -2
  3. package/dist/{Loading.ce-1tk4uU9c.js → Loading.ce-EWTMcywS.js} +1 -1
  4. package/dist/{NavigationButton.ce-CxI2QW8z.js → NavigationButton.ce-CMbVRJbG.js} +2 -2
  5. package/dist/{Retry-CY90VQJl.js → Retry-B27znRn6.js} +1 -1
  6. package/dist/{_plugin-vue_export-helper-DOoVeFcJ.js → _plugin-vue_export-helper-CJxDisp0.js} +1698 -1681
  7. package/dist/components/calcul-impact.ce.js.js +3 -3
  8. package/dist/components/capacity-calculation.ce.js.js +4 -4
  9. package/dist/components/clickable-image.ce.js.js +2 -2
  10. package/dist/components/complete-phrase.ce.js.js +4 -4
  11. package/dist/components/flip-cards.ce.js.js +2 -2
  12. package/dist/components/image-quiz.ce.js.js +3 -3
  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 +2 -2
  17. package/dist/components/message-conversation.ce.js.js +61 -60
  18. package/dist/components/mobile-shell.ce.js.js +1 -1
  19. package/dist/components/phishing-message.ce.js.js +60 -60
  20. package/dist/components/phishing-notification.ce.js.js +104 -104
  21. package/dist/components/pix-article.ce.js.js +25 -23
  22. package/dist/components/pix-carousel.ce.js.js +232 -131
  23. package/dist/components/pix-cursor.ce.js.js +3 -3
  24. package/dist/components/qcm-deepfake.ce.js.js +4 -4
  25. package/dist/components/select-conversation.ce.js.js +43 -43
  26. package/dist/{i18n-ecSMtuba.js → i18n-Bs7vpvgi.js} +84 -100
  27. package/dist/{image-quiz.ce-CpI6lZ9m.js → image-quiz.ce-jh8ME9Wm.js} +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/{normalize-props-AlmAfi_u.js → normalize-props-BAFlcMqH.js} +6 -2
  30. package/dist/schema.js +78 -51
  31. package/dist/shadow-dom-Bs_4iILW.js +9 -0
  32. package/dist/temporal.utils-DBcWSjWy.js +16840 -0
  33. package/package.json +1 -1
  34. package/dist/index-4XnHmtKv.js +0 -11905
  35. package/dist/shadow-dom-DZbyKUWP.js +0 -9
  36. package/dist/temporal.utils-B23shw3k.js +0 -4958
@@ -1,6 +1,6 @@
1
- import { d as j, G as T, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as E, e as U, h as N, O as x, f as G } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
- import { a as H, i as V, b as Q } from "../i18n-ecSMtuba.js";
3
- import { u as J } from "../normalize-props-AlmAfi_u.js";
1
+ import { d as j, G as T, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as E, e as U, h as N, O as x, f as G } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { a as H, i as V, b as Q } from "../i18n-Bs7vpvgi.js";
3
+ import { u as J } from "../normalize-props-BAFlcMqH.js";
4
4
  const X = {}, Z = {}, ee = {}, te = {
5
5
  "calcul-impact": { title: "Calculez votre impact IA", subtitle: "Quels ont été vos usages de l'IA la semaine dernière ?", numberOfConversationLabel: "Nombre de conversations courtes :", numberOfImagesLabel: "Nombre de créations d’images :", seePersonalImpact: "Voir votre impact personnel sur une semaine", seeCollectiveImpact: "Si 1 million de personnes faisaient comme vous toutes les semaines pendant un an", legals: "Estimations basées sur l'étude Hugging Face, Carnegie Mellon University, Allen Institute for AI, Oct 2024", yourPersonalImpact: "Votre impact personnel", consumptionForAWeek: "Votre consommation sur une semaine", consumptionForAYear: "1 million de personnes toutes les semaines pendant un an", personalConsumption: "Vous avez consommé environ {{energy}} Wh", personalDuration: "Cela équivaut à {{number}} minutes de micro-ondes", collectiveConsumption: "Cela représenterait {{energy}} kWh, soit l'équivalent de la consommation en électricité de {{homes}} foyers français", collectiveDuration: "Équivalent à {{number}} minutes de micro-ondes", planeKilometers: "Et {{kilometers}} km parcourus en avion", yourCollectiveImpact: "Impact collectif simulé" }
6
6
  }, ae = {}, le = {}, oe = {
@@ -1,7 +1,7 @@
1
- import { d as C, c as d, o, n as m, j as D, H as $, t as r, _ as v, P as O, Q as h, r as g, y as x, a as t, E as L, F as R, b as V, h as Z, i as z, S as F, K as T, e as f, B as N, f as P } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
- import { i as k, a as H, b as K } from "../i18n-ecSMtuba.js";
3
- import { u as W } from "../normalize-props-AlmAfi_u.js";
4
- import { R as G } from "../Retry-CY90VQJl.js";
1
+ import { d as C, c as d, o, n as m, j as D, H as $, t as r, _ as v, P as O, Q as h, r as g, y as x, a as t, E as L, F as R, b as V, h as Z, i as z, S as F, K as T, e as f, B as N, f as P } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { i as k, a as H, b as K } from "../i18n-Bs7vpvgi.js";
3
+ import { u as W } from "../normalize-props-BAFlcMqH.js";
4
+ import { R as G } from "../Retry-B27znRn6.js";
5
5
  const J = {}, X = {}, Y = {}, aa = {
6
6
  "capacity-calculation": { title: "Observer l'impact des demandes", in: { title: "Demandes à l'IA", aiQuestion: "Quelle est la demande à l'IA ?", aiOptions: ["Fais une vidéo d’une durée d'une minute.", "Écris un texte de 10 lignes.", "Fais un dessin de haute qualité."], userQuestion: "Combien d’utilisateurs font la demande en même temps ?", buttonLabel: { primary: "Observer l'effet", warning: "Recommencer" } }, out: { title: "Impact des demandes", consumption: { label: "Consommation d’électricité :", normal_weak: "Faible", normal_medium: "Moyenne", warning: "Très forte", error: "Très forte", initial: "À l'arrêt" }, capacity: { label: "État du supercalculateur :", normal_weak: "Normal", normal_medium: "Normal", warning: "Sollicitation maximale", error: "Ne peut pas répondre à la demande", initial: "À l'arrêt" } } }
7
7
  }, ea = {}, ta = {}, ca = /* @__PURE__ */ C({
@@ -1,5 +1,5 @@
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
- import { u as C } from "../normalize-props-AlmAfi_u.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-CJxDisp0.js";
2
+ import { u as C } from "../normalize-props-BAFlcMqH.js";
3
3
  const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "aria-label"], v = 10, Q = /* @__PURE__ */ E({
4
4
  __name: "ClickableImage.ce",
5
5
  props: {
@@ -1,7 +1,7 @@
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";
1
+ import { d as h, c as n, o, a, t as c, A as S, _ as f, n as P, j as A, H as N, r as y, y as m, B as z, F as x, b as k, e as v, E as q, f as M } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { u as O, a as E, i as L, b as I } from "../i18n-Bs7vpvgi.js";
3
+ import { u as R } from "../normalize-props-BAFlcMqH.js";
4
+ import { L as B } from "../LLMMessage.ce-FJCO_wvC.js";
5
5
  const T = {}, V = {}, D = {}, F = {
6
6
  "complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisit par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! Il peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... Il choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
7
7
  }, H = {}, Q = {}, W = { class: "probability-bar" }, U = { "aria-hidden": "true" }, G = { class: "sr-only" }, J = /* @__PURE__ */ h({
@@ -1,5 +1,5 @@
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
- import { u as L } from "../normalize-props-AlmAfi_u.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-CJxDisp0.js";
2
+ import { u as L } from "../normalize-props-BAFlcMqH.js";
3
3
  const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"], $ = ["aria-level"], B = { class: "description" }, E = { class: "image-container" }, U = ["src"], j = /* @__PURE__ */ m({
4
4
  __name: "FlipCard.ce",
5
5
  props: {
@@ -1,6 +1,6 @@
1
- import "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
- import { n as p } from "../image-quiz.ce-CpI6lZ9m.js";
3
- import "../normalize-props-AlmAfi_u.js";
1
+ import "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { n as p } from "../image-quiz.ce-jh8ME9Wm.js";
3
+ import "../normalize-props-BAFlcMqH.js";
4
4
  export {
5
5
  p as normalizeImageQuizProps
6
6
  };
@@ -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-DOoVeFcJ.js";
2
- import { I as A, n as I } from "../image-quiz.ce-CpI6lZ9m.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-CJxDisp0.js";
2
+ import { I as A, n as I } from "../image-quiz.ce-jh8ME9Wm.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, 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";
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-CJxDisp0.js";
2
+ import { L as l } from "../LLMMessage.ce-FJCO_wvC.js";
3
+ import { p as u } from "../shadow-dom-Bs_4iILW.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
@@ -1,6 +1,6 @@
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";
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-CJxDisp0.js";
2
+ import { L as h } from "../LLMMessage.ce-FJCO_wvC.js";
3
+ import { p as _ } from "../shadow-dom-Bs_4iILW.js";
4
4
  const x = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
@@ -1,5 +1,5 @@
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
- import { u as N } from "../normalize-props-AlmAfi_u.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-CJxDisp0.js";
2
+ import { u as N } from "../normalize-props-BAFlcMqH.js";
3
3
  import "./llm-messages.ce.js.js";
4
4
  const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B = ["disabled", "onClick"], V = /* @__PURE__ */ h({
5
5
  __name: "LLMPromptSelect.ce",
@@ -1,11 +1,11 @@
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
- import { u as j, a as I } from "../normalize-props-AlmAfi_u.js";
4
- const O = ["part"], q = {
1
+ import { d as S, r as x, y as M, v as B, c as i, o as n, n as w, B as l, a as h, H as k, t as v, E, M as z, m as P, F as b, b as N, _ as D, q as T, e as V, f as F } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { L } from "../Loading.ce-EWTMcywS.js";
3
+ import { u as j, a as I, b as O } from "../normalize-props-BAFlcMqH.js";
4
+ const q = ["part"], H = {
5
5
  key: 1,
6
6
  class: "message__loader message__content",
7
7
  "aria-hidden": "true"
8
- }, H = ["part"], R = { key: 1 }, G = { key: 0 }, J = /* @__PURE__ */ M({
8
+ }, R = ["part"], G = { key: 1 }, J = { key: 0 }, K = /* @__PURE__ */ S({
9
9
  __name: "Message.ce",
10
10
  props: {
11
11
  displaySender: { type: Boolean, default: !0 },
@@ -14,108 +14,109 @@ const O = ["part"], q = {
14
14
  animationDuration: { type: Number },
15
15
  loadingDuration: { type: Number }
16
16
  },
17
- setup(e, { expose: d }) {
18
- const i = x("hidden"), l = x([]), p = S(() => e.message.content.split(`
17
+ setup(e, { expose: c }) {
18
+ const t = x("hidden"), d = x([]), m = M(() => e.message.content?.split(`
19
19
  `));
20
- function m(t) {
20
+ function g(s) {
21
21
  return new Promise((a) => {
22
- const o = setTimeout(a, t);
23
- l.value.push(o);
22
+ const o = setTimeout(a, s);
23
+ d.value.push(o);
24
24
  });
25
25
  }
26
- async function c() {
27
- await m(e.startAnimation), i.value = "loading", await m(e.loadingDuration), i.value = "visible", await m(e.animationDuration);
26
+ async function u() {
27
+ await g(e.startAnimation), t.value = "loading", await g(e.loadingDuration), t.value = "visible", await g(e.animationDuration);
28
28
  }
29
- B(c);
30
- async function f() {
31
- i.value = "hidden", l.value.forEach(clearTimeout), await c();
29
+ B(u);
30
+ async function y() {
31
+ t.value = "hidden", d.value.forEach(clearTimeout), await u();
32
32
  }
33
- return d({
34
- reset: f
35
- }), (t, a) => (s(), n("div", {
33
+ return c({
34
+ reset: y
35
+ }), (s, a) => (n(), i("div", {
36
36
  class: w(["message", [
37
37
  `message--${e.message.direction}`,
38
- { "hidden-state": i.value === "hidden" }
38
+ { "hidden-state": t.value === "hidden" }
39
39
  ]])
40
40
  }, [
41
- e.displaySender ? (s(), n("p", {
41
+ e.displaySender ? (n(), i("p", {
42
42
  key: 0,
43
43
  class: "message__sender",
44
44
  part: `sender ${e.message.direction}`
45
45
  }, [
46
- a[0] || (a[0] = _("span", { class: "sr-only" }, "Message de ", -1)),
46
+ a[0] || (a[0] = h("span", { class: "sr-only" }, "Message de ", -1)),
47
47
  k(v(e.message.userName), 1)
48
- ], 8, O)) : g("", !0),
49
- i.value === "loading" ? (s(), n("div", q, [
48
+ ], 8, q)) : l("", !0),
49
+ t.value === "loading" ? (n(), i("div", H, [
50
50
  E(L)
51
- ])) : g("", !0),
52
- _("p", {
53
- class: w(["message__content", { "hidden-state": i.value !== "visible" }]),
51
+ ])) : l("", !0),
52
+ h("p", {
53
+ class: w(["message__content", { "hidden-state": t.value !== "visible" }]),
54
54
  part: `message ${e.message.direction}`
55
55
  }, [
56
- e.message.image ? (s(), n("img", z(P({ key: 0 }, e.message.image)), null, 16)) : g("", !0),
57
- e.message.image ? (s(), n("br", R)) : g("", !0),
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),
56
+ e.message.image ? (n(), i("img", z(P({ key: 0 }, e.message.image)), null, 16)) : l("", !0),
57
+ e.message.image && m.value ? (n(), i("br", G)) : l("", !0),
58
+ (n(!0), i(b, null, N(m.value, (o, r) => (n(), i(b, { key: r }, [
59
+ r > 0 ? (n(), i("br", J)) : l("", !0),
60
60
  k(" " + v(o), 1)
61
61
  ], 64))), 128))
62
- ], 10, H)
62
+ ], 10, R)
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__ */ M({
65
+ }), Q = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.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}}", U = /* @__PURE__ */ D(K, [["styles", [Q]]]), W = { part: "conversation" }, X = { class: "sr-only" }, Y = /* @__PURE__ */ S({
66
66
  __name: "MessageConversation.ce",
67
67
  props: {
68
68
  title: { default: "Conversation par messages", type: String },
69
69
  messages: { type: Array },
70
70
  animationSpeed: { default: 20, type: Number }
71
71
  },
72
- setup(e, { expose: d }) {
73
- const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p = S(
72
+ setup(e, { expose: c }) {
73
+ const t = 50 * e.animationSpeed, d = 50 * e.animationSpeed, m = M(
74
74
  () => e.messages.reduce(
75
- (t, a, o) => {
76
- const r = c(a);
75
+ (s, a, o) => {
76
+ const r = u(a);
77
77
  if (o === 0)
78
78
  return [{ message: a, displaySender: !0, startAnimation: 0, animationDuration: r }];
79
79
  const {
80
- message: u,
81
- startAnimation: y,
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 }];
80
+ message: p,
81
+ startAnimation: f,
82
+ animationDuration: _
83
+ } = s.at(-1), A = a.direction !== p.direction || a.userName !== p.userName, $ = f + _ + t;
84
+ return [...s, { message: a, displaySender: A, startAnimation: $, animationDuration: r }];
85
85
  },
86
86
  []
87
87
  )
88
- ), m = T("messages");
89
- function c(t) {
90
- let a = t.content.length * e.animationSpeed;
91
- return t.image && (a += l), a;
88
+ ), g = T("messages");
89
+ function u(s) {
90
+ let a = (s.content?.length ?? 0) * e.animationSpeed;
91
+ return s.image && (a += d), a;
92
92
  }
93
- function f() {
94
- m.value.forEach((t) => t.reset());
93
+ function y() {
94
+ g.value.forEach((s) => s.reset());
95
95
  }
96
- return d({
97
- reset: f
98
- }), (t, a) => (s(), n("figure", U, [
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, {
96
+ return c({
97
+ reset: y
98
+ }), (s, a) => (n(), i("figure", W, [
99
+ h("figcaption", X, v(e.title), 1),
100
+ (n(!0), i(b, null, N(m.value, ({ message: o, displaySender: r, startAnimation: p, animationDuration: f }, _) => (n(), V(U, {
101
101
  ref_for: !0,
102
102
  ref: "messages",
103
103
  message: o,
104
- "start-animation": u,
105
- "animation-duration": y,
106
- "loading-duration": i,
104
+ "start-animation": p,
105
+ "animation-duration": f,
106
+ "loading-duration": t,
107
107
  "display-sender": r,
108
- key: h
108
+ key: _
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);
112
+ }), Z = "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}", ee = /* @__PURE__ */ D(Y, [["styles", [Z]]]), C = F(ee);
113
113
  C.prototype.normalizeProps = (e) => ({
114
114
  ...e,
115
115
  animationSpeed: j(e.animationSpeed),
116
- messages: e.messages.map((d) => ({
117
- ...d,
118
- image: I(d.image)
116
+ messages: e.messages.map(({ type: c, content: t, image: d, ...m }) => ({
117
+ ...m,
118
+ content: O(t),
119
+ image: I(d)
119
120
  }))
120
121
  });
121
122
  window.customElements.define("message-conversation", C);
@@ -1,4 +1,4 @@
1
- import { d as i, c as a, o as l, D as s, a as r, j as n, A as d, n as b, _ as p, f as h } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
1
+ import { d as i, c as a, o as l, D as s, a as r, j as n, A as d, n as b, _ as p, f as h } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
2
  const m = {
3
3
  class: "content",
4
4
  part: "content"