@1024pix/epreuves-components 1.3.0 → 1.4.1

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 (27) hide show
  1. package/dist/{ImageQuiz.ce-DtarwFF1.js → ImageQuiz.ce-BU1wvQqO.js} +56 -66
  2. package/dist/{LLMMessage.ce-CnMf3mGa.js → LLMMessage.ce-55YTC7a9.js} +7 -7
  3. package/dist/{Loading.ce-BLJllV22.js → Loading.ce-BQOiwGj0.js} +1 -1
  4. package/dist/{NavigationButton.ce-Cz9511sV.js → NavigationButton.ce-CgyZHLpi.js} +8 -8
  5. package/dist/{_plugin-vue_export-helper-DK91u00G.js → _plugin-vue_export-helper-BaT1QC5Q.js} +150 -136
  6. package/dist/components/calcul-impact.ce.js.js +49 -49
  7. package/dist/components/capacity-calculation.ce.js.js +279 -0
  8. package/dist/components/clickable-image.ce.js.js +1 -1
  9. package/dist/components/complete-phrase.ce.js.js +8 -8
  10. package/dist/components/flip-cards.ce.js.js +108 -0
  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 +1 -1
  16. package/dist/components/message-conversation.ce.js.js +11 -11
  17. package/dist/components/pix-article.ce.js.js +2 -2
  18. package/dist/components/pix-carousel.ce.js.js +7 -7
  19. package/dist/components/pix-cursor.ce.js.js +12 -12
  20. package/dist/components/qcm-deepfake.ce.js.js +10 -10
  21. package/dist/{i18n-Gv3Ze5vF.js → i18n-BOk_ejZ-.js} +1 -1
  22. package/dist/index.js +2 -0
  23. package/dist/metadata.js +46 -38
  24. package/dist/schema.js +59 -24
  25. package/dist/{shadow-dom-DTRtrvgC.js → shadow-dom-CLVtaG5r.js} +1 -1
  26. package/dist/shuffled-CzcgAL34.js +14 -0
  27. package/package.json +1 -1
@@ -0,0 +1,108 @@
1
+ import { a as h, c as o, o as s, F as b, f as t, H as m, G as f, t as g, J as x, _, r as k, b as w, E as v, y as F, d as L } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { a as C, i as u, b as S } from "../i18n-BOk_ejZ-.js";
3
+ import { s as z } from "../shuffled-CzcgAL34.js";
4
+ const $ = {
5
+ "flip-cards": {}
6
+ }, j = ["aria-hidden"], E = ["src"], N = ["title-level"], B = ["aria-hidden"], U = ["aria-level"], K = { class: "description" }, R = { class: "image-container" }, V = ["src"], A = /* @__PURE__ */ h({
7
+ __name: "FlipCard.ce",
8
+ props: {
9
+ color: { type: String },
10
+ description: { type: String },
11
+ icon: { type: String },
12
+ image: { type: String },
13
+ isFlipped: { type: Boolean },
14
+ name: { type: String },
15
+ titleLevel: { type: Number }
16
+ },
17
+ setup(i) {
18
+ const l = new URL(i.icon, import.meta.url).href, d = new URL(i.image, import.meta.url).href;
19
+ return (a, c) => (s(), o(b, null, [
20
+ t("div", {
21
+ class: m(["card recto", `${a.color}`]),
22
+ "aria-hidden": a.isFlipped ? "true" : "false"
23
+ }, [
24
+ t("img", {
25
+ class: "icon",
26
+ src: f(l),
27
+ alt: ""
28
+ }, null, 8, E),
29
+ t("div", {
30
+ role: "heading",
31
+ "title-level": a.titleLevel,
32
+ class: "title"
33
+ }, g(a.name), 9, N)
34
+ ], 10, j),
35
+ t("div", {
36
+ class: m(["card verso", { flipped: a.isFlipped, [a.color]: a.color }]),
37
+ "aria-hidden": a.isFlipped ? "false" : "true"
38
+ }, [
39
+ t("div", {
40
+ role: "heading",
41
+ "aria-level": a.titleLevel,
42
+ class: "title"
43
+ }, g(a.name), 9, U),
44
+ t("p", K, g(a.description), 1),
45
+ t("div", R, [
46
+ f(d) ? (s(), o("img", {
47
+ key: 0,
48
+ src: f(d),
49
+ alt: ""
50
+ }, null, 8, V)) : x("", !0)
51
+ ])
52
+ ], 10, B)
53
+ ], 64));
54
+ }
55
+ }), D = "[data-v-1d94fd65]{box-sizing:border-box}.card[data-v-1d94fd65]{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-1d94fd65]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-1d94fd65]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-1d94fd65]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-1d94fd65]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-1d94fd65]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-1d94fd65]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-1d94fd65]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-1d94fd65]{display:block;height:auto;width:40px}.card.verso[data-v-1d94fd65]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-1d94fd65]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-1d94fd65]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-1d94fd65]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-1d94fd65]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-1d94fd65]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-1d94fd65]{border:2px solid #f041bf}.card.verso .description[data-v-1d94fd65]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-1d94fd65]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-1d94fd65]{display:block;height:100%;object-fit:contain;width:100%}", G = /* @__PURE__ */ _(A, [["styles", [D]], ["__scopeId", "data-v-1d94fd65"]]), I = ["aria-label"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, H = /* @__PURE__ */ h({
56
+ __name: "FlipCards.ce",
57
+ props: {
58
+ name: { type: String },
59
+ cardList: { type: Array }
60
+ },
61
+ setup(i) {
62
+ const l = i, d = z(["red", "yellow", "blue", "purple", "green", "pink"]), a = k(
63
+ l.cardList.map((r, p) => ({
64
+ ...r,
65
+ color: d[p % d.length],
66
+ isFlipped: !1,
67
+ titleLevel: r.titleLevel ?? 2
68
+ }))
69
+ ), c = (r, p) => {
70
+ p.preventDefault(), r.isFlipped = !r.isFlipped;
71
+ };
72
+ return (r, p) => (s(), o("div", {
73
+ class: "flip-cards",
74
+ "aria-label": l.name
75
+ }, [
76
+ (s(!0), o(b, null, w(a.value, (e, y) => (s(), o("div", {
77
+ key: y,
78
+ class: m(["card-container", { flipped: e.isFlipped, [e.color]: e.color }]),
79
+ role: "button",
80
+ tabindex: "0",
81
+ "aria-expanded": e.isFlipped,
82
+ onClick: (n) => c(e, n),
83
+ onKeydown: [
84
+ v((n) => c(e, n), ["enter"]),
85
+ v((n) => c(e, n), ["space"])
86
+ ]
87
+ }, [
88
+ t("div", Z, [
89
+ F(G, {
90
+ color: e.color,
91
+ description: e.description,
92
+ icon: e.icon,
93
+ image: e.image,
94
+ "is-flipped": e.isFlipped,
95
+ name: e.name,
96
+ "title-level": e.titleLevel
97
+ }, null, 8, ["color", "description", "icon", "image", "is-flipped", "name", "title-level"])
98
+ ])
99
+ ], 42, Y))), 128))
100
+ ], 8, I));
101
+ }
102
+ }), J = "[data-v-85c872ca]{box-sizing:border-box}.flip-cards[data-v-85c872ca]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-85c872ca]{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-85c872ca]:hover,.flip-cards .card-container[data-v-85c872ca]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-85c872ca]{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-85c872ca]{transform:rotateY(180deg)}", O = /* @__PURE__ */ _(H, [["styles", [J]], ["__scopeId", "data-v-85c872ca"]]);
103
+ C(/* @__PURE__ */ Object.assign({ "./locales/fr.json": $ })).catch((i) => console.error(i));
104
+ window.customElements.define("flip-cards", L(O, {
105
+ configureApp(i) {
106
+ u.changeLanguage(document?.documentElement?.lang || navigator.language), i.use(S, { i18next: u });
107
+ }
108
+ }));
@@ -1,4 +1,4 @@
1
- import { d as e } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { I as m } from "../ImageQuiz.ce-DtarwFF1.js";
1
+ import { d as e } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { I as m } from "../ImageQuiz.ce-BU1wvQqO.js";
3
3
  window.customElements.define("image-quiz", e(m));
4
4
  window.customElements.define("qcu-image", e(m));
@@ -1,5 +1,5 @@
1
- import { a as l, r as f, w, c as z, o as t, b as p, e as d, m as g, F as v, d as _ } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { I as A } from "../ImageQuiz.ce-DtarwFF1.js";
1
+ import { a as l, r as f, w, c as z, o as t, b as p, e as d, m as g, F as v, d as _ } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { I as A } from "../ImageQuiz.ce-BU1wvQqO.js";
3
3
  const h = /* @__PURE__ */ l({
4
4
  __name: "ImageQuizzes.ce",
5
5
  props: {
@@ -1,6 +1,6 @@
1
- import { a as m, c as r, o as a, f as e, t as n, F as t, b as p, y as i, _ as c, d as g } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { L as l } from "../LLMMessage.ce-CnMf3mGa.js";
3
- import { p as u } from "../shadow-dom-DTRtrvgC.js";
1
+ import { a as m, c as r, o as a, f as e, t as n, F as t, b as p, y as i, _ as c, d as g } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { L as l } from "../LLMMessage.ce-55YTC7a9.js";
3
+ import { p as u } from "../shadow-dom-CLVtaG5r.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
@@ -1,6 +1,6 @@
1
- import { a as m, B as i, C as p, c as o, o as e, F as d, b as g, e as u, _ as f, d as h } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { L as _ } from "../LLMMessage.ce-CnMf3mGa.js";
3
- import { p as x } from "../shadow-dom-DTRtrvgC.js";
1
+ import { a as m, B as i, C as p, c as o, o as e, F as d, b as g, e as u, _ as f, d as h } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { L as _ } from "../LLMMessage.ce-55YTC7a9.js";
3
+ import { p as x } from "../shadow-dom-CLVtaG5r.js";
4
4
  const b = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
@@ -1,4 +1,4 @@
1
- import { a as v, r as c, z as y, c as i, o as d, y as h, f as l, A as w, F as f, b as k, t as S, _ as C, d as L } from "../_plugin-vue_export-helper-DK91u00G.js";
1
+ import { a as v, r as c, z as y, c as i, o as d, y as h, f as l, A as w, F as f, b as k, t as S, _ as C, d as L } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
2
  import "./llm-messages.ce.js.js";
3
3
  const N = { class: "prompt-select" }, P = { class: "prompt-select__options" }, A = ["disabled", "onClick"], B = /* @__PURE__ */ v({
4
4
  __name: "LLMPromptSelect.ce",
@@ -1,10 +1,10 @@
1
- import { a as D, r as k, k as M, h as $, c as t, o as s, D as w, E as m, f as h, A as x, t as v, y as E, K as B, m as T, F as b, b as N, _ as S, g as V, e as z, d as F } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { L } from "../Loading.ce-BLJllV22.js";
1
+ import { a as D, r as k, k as M, h as $, c as t, o as s, H as w, J as m, f as h, A as x, t as v, y as B, K as E, m as T, F as b, b as N, _ as S, g as V, e as z, d as F } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { L } from "../Loading.ce-BQOiwGj0.js";
3
3
  const P = ["part"], I = {
4
4
  key: 1,
5
5
  class: "message__loader message__content",
6
6
  "aria-hidden": "true"
7
- }, j = ["part"], K = { key: 1 }, O = { key: 0 }, R = /* @__PURE__ */ D({
7
+ }, j = ["part"], H = { key: 1 }, J = { key: 0 }, K = /* @__PURE__ */ D({
8
8
  __name: "Message.ce",
9
9
  props: {
10
10
  displaySender: { type: Boolean, default: !0 },
@@ -46,22 +46,22 @@ const P = ["part"], I = {
46
46
  x(v(e.message.userName), 1)
47
47
  ], 8, P)) : m("", !0),
48
48
  i.value === "loading" ? (s(), t("div", I, [
49
- E(L)
49
+ B(L)
50
50
  ])) : m("", !0),
51
51
  h("p", {
52
52
  class: w(["message__content", { "hidden-state": i.value !== "visible" }]),
53
53
  part: `message ${e.message.direction}`
54
54
  }, [
55
- e.message.image ? (s(), t("img", B(T({ key: 0 }, e.message.image)), null, 16)) : m("", !0),
56
- e.message.image ? (s(), t("br", K)) : m("", !0),
55
+ e.message.image ? (s(), t("img", E(T({ key: 0 }, e.message.image)), null, 16)) : m("", !0),
56
+ e.message.image ? (s(), t("br", H)) : m("", !0),
57
57
  (s(!0), t(b, null, N(p.value, (o, r) => (s(), t(b, { key: r }, [
58
- r > 0 ? (s(), t("br", O)) : m("", !0),
58
+ r > 0 ? (s(), t("br", J)) : m("", !0),
59
59
  x(" " + v(o), 1)
60
60
  ], 64))), 128))
61
61
  ], 10, j)
62
62
  ], 2));
63
63
  }
64
- }), 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}}", G = /* @__PURE__ */ S(R, [["styles", [q]]]), H = { part: "conversation" }, J = { class: "sr-only" }, Q = /* @__PURE__ */ D({
64
+ }), O = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.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}}", R = /* @__PURE__ */ S(K, [["styles", [O]]]), q = { part: "conversation" }, G = { class: "sr-only" }, Q = /* @__PURE__ */ D({
65
65
  __name: "MessageConversation.ce",
66
66
  props: {
67
67
  title: { default: "Conversation par messages", type: String },
@@ -94,9 +94,9 @@ const P = ["part"], I = {
94
94
  }
95
95
  return c({
96
96
  reset: f
97
- }), (e, a) => (s(), t("figure", H, [
98
- h("figcaption", J, v(e.title), 1),
99
- (s(!0), t(b, null, N(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, _) => (s(), z(G, {
97
+ }), (e, a) => (s(), t("figure", q, [
98
+ h("figcaption", G, v(e.title), 1),
99
+ (s(!0), t(b, null, N(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, _) => (s(), z(R, {
100
100
  ref_for: !0,
101
101
  ref: "messages",
102
102
  message: o,
@@ -1,5 +1,5 @@
1
- import { a as g, c as n, o as i, f as a, t as l, F as o, b as d, I as h, _ as u, d as p } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { a as m, i as r, b as f } from "../i18n-Gv3Ze5vF.js";
1
+ import { a as g, c as n, o as i, f as a, t as l, F as o, b as d, G as h, _ as u, d as p } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { a as m, i as r, b as f } from "../i18n-BOk_ejZ-.js";
3
3
  const v = {}, y = {}, b = {
4
4
  "pix-article": { byAuthor: "Par {{author}}" }
5
5
  }, S = {}, L = {}, j = ["titleLevel"], x = { class: "article__metadata" }, A = { class: "article__author" }, E = ["innerHTML"], H = /* @__PURE__ */ g({
@@ -1,6 +1,6 @@
1
- import { a as C, k as h, c as l, o, D as T, f as r, E, L as z, A as j, t as g, _ as b, r as w, J as H, I as u, y as m, x as $, G as D, M as _, F as S, b as k, e as A, d as I } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { a as V, i as N, b as P } from "../i18n-Gv3Ze5vF.js";
3
- import { B, N as M } from "../NavigationButton.ce-Cz9511sV.js";
1
+ import { a as C, k as h, c as l, o, H as T, f as r, J as j, L as z, A as E, t as g, _ as b, r as w, I as H, G as u, y as m, x as $, D, M as _, F as S, b as k, e as A, d as I } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { a as V, i as N, b as P } from "../i18n-BOk_ejZ-.js";
3
+ import { B, N as M } from "../NavigationButton.ce-CgyZHLpi.js";
4
4
  const F = {
5
5
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
6
6
  }, G = {
@@ -39,13 +39,13 @@ const F = {
39
39
  class: "title"
40
40
  }, [
41
41
  z(t.$slots, "pagination"),
42
- j(" " + g(t.title), 1)
42
+ E(" " + g(t.title), 1)
43
43
  ], 8, W),
44
44
  i.value ? (o(), l("div", {
45
45
  key: 0,
46
46
  class: "description",
47
47
  innerHTML: t.description
48
- }, null, 8, q)) : t.description ? (o(), l("p", K, g(t.description), 1)) : E("", !0)
48
+ }, null, 8, q)) : t.description ? (o(), l("p", K, g(t.description), 1)) : j("", !0)
49
49
  ], 2));
50
50
  }
51
51
  }), U = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width: 576px){.slide-info.active{border:none;padding-left:0}}", R = /* @__PURE__ */ b(Q, [["styles", [U]]]), X = ["aria-hidden", "aria-roledescription", "aria-label"], Y = ["alt", "src"], ee = {
@@ -94,12 +94,12 @@ const F = {
94
94
  src: e.slide.image.src
95
95
  }, null, 12, Y),
96
96
  e.slide.license ? (o(), l("p", ee, [
97
- j(g(e.slide.license.attribution) + " / ", 1),
97
+ E(g(e.slide.license.attribution) + " / ", 1),
98
98
  r("a", {
99
99
  href: e.slide.license.url,
100
100
  target: "_blank"
101
101
  }, g(e.slide.license.name), 9, ie)
102
- ])) : E("", !0)
102
+ ])) : j("", !0)
103
103
  ], 4)) : e.type === "image-text" ? (o(), l("div", te, [
104
104
  r("img", {
105
105
  alt: e.slide.image.alt,
@@ -1,7 +1,7 @@
1
- import { a as S, r as k, G as y, k as m, z as A, c as a, o as i, f as s, l as B, I as c, t as u, F as f, b, N as H, y as g, D as C, M as L, E as D, q as F, _ as P, d as G } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { a as q, i as w, b as R } from "../i18n-Gv3Ze5vF.js";
3
- import { N as M } from "../NavigationButton.ce-Cz9511sV.js";
4
- const U = {}, J = {}, K = {
1
+ import { a as S, r as k, D as y, k as m, z as A, c as a, o as i, f as s, l as B, G as c, t as u, F as f, b, N as E, y as g, H as C, M as L, J as D, q as F, _ as P, d as G } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { a as q, i as w, b as J } from "../i18n-BOk_ejZ-.js";
3
+ import { N as M } from "../NavigationButton.ce-CgyZHLpi.js";
4
+ const R = {}, U = {}, K = {
5
5
  "pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
6
6
  }, Q = {}, W = {}, X = ["for"], Y = {
7
7
  class: "visible-options",
@@ -18,7 +18,7 @@ const U = {}, J = {}, K = {
18
18
  options: { type: Array }
19
19
  },
20
20
  setup(d, { expose: j }) {
21
- const p = d, r = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), _ = y(), I = m(() => r.value === p.options.length - 1), N = m(() => r.value === 0), l = m(() => Number(r.value));
21
+ const p = d, r = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), _ = y(), N = m(() => r.value === p.options.length - 1), I = m(() => r.value === 0), l = m(() => Number(r.value));
22
22
  function z() {
23
23
  o.value = !0;
24
24
  }
@@ -49,13 +49,13 @@ const U = {}, J = {}, K = {
49
49
  }, u(t.$t("pix-cursor.selectAnOption")), 9, X),
50
50
  s("ul", Y, [
51
51
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("li", {
52
- onClick: (E) => h(e),
52
+ onClick: (H) => h(e),
53
53
  key: e
54
54
  }, u(n.label), 9, Z))), 128))
55
55
  ]),
56
56
  s("datalist", { id: c(_) }, [
57
57
  (i(!0), a(f, null, b(t.options, (n, e) => (i(), a("option", {
58
- onClick: (E) => h(e),
58
+ onClick: (H) => h(e),
59
59
  key: e,
60
60
  value: e,
61
61
  label: n.label
@@ -70,12 +70,12 @@ const U = {}, J = {}, K = {
70
70
  max: t.options.length - 1,
71
71
  disabled: o.value
72
72
  }, null, 8, te), [
73
- [H, r.value]
73
+ [E, r.value]
74
74
  ]),
75
75
  s("div", ne, [
76
76
  g(M, {
77
77
  onClick: $,
78
- disabled: o.value || N.value,
78
+ disabled: o.value || I.value,
79
79
  label: t.$t("pix-cursor.previous"),
80
80
  "aria-controls": c(v),
81
81
  "aria-disabled": o.value,
@@ -103,7 +103,7 @@ const U = {}, J = {}, K = {
103
103
  ]),
104
104
  g(M, {
105
105
  onClick: O,
106
- disabled: o.value || I.value,
106
+ disabled: o.value || N.value,
107
107
  label: t.$t("pix-cursor.next"),
108
108
  "aria-controls": c(v),
109
109
  "aria-disabled": o.value,
@@ -129,9 +129,9 @@ const U = {}, J = {}, K = {
129
129
  };
130
130
  }
131
131
  }), ue = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", pe = /* @__PURE__ */ P(de, [["styles", [ue]], ["__scopeId", "data-v-58e704c5"]]);
132
- q(/* @__PURE__ */ Object.assign({ "./locales/en.json": U, "./locales/es.json": J, "./locales/fr.json": K, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
132
+ q(/* @__PURE__ */ Object.assign({ "./locales/en.json": R, "./locales/es.json": U, "./locales/fr.json": K, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
133
133
  window.customElements.define("pix-cursor", G(pe, {
134
134
  configureApp(d) {
135
- w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(R, { i18next: w });
135
+ w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(J, { i18next: w });
136
136
  }
137
137
  }));
@@ -1,6 +1,6 @@
1
- import { a as k, c, o as r, f as t, E as b, t as d, D as C, _ as w, O as B, P as E, r as y, k as _, l as R, A as V, Q as j, g as O, F as h, b as x, e as M, I as G, q as P, y as F, d as Q } from "../_plugin-vue_export-helper-DK91u00G.js";
2
- import { i as s, a as H, b as U } from "../i18n-Gv3Ze5vF.js";
3
- const W = {}, Z = {}, J = {
1
+ import { a as k, c, o as r, f as t, J as b, t as d, H as C, _ as w, O as A, P as B, r as y, k as _, l as E, A as V, R as j, g as O, F as h, b as x, e as G, G as M, q as P, y as F, d as H } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
2
+ import { i as s, a as Q, b as U } from "../i18n-BOk_ejZ-.js";
3
+ const J = {}, W = {}, Z = {
4
4
  "qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "un enregistrement de Caroline qui chante", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d’IA générative :", title: "Recréez la vidéo de Caroline", in: "Entrée", out: "Sortie", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo :", generateVideo: "Générer la vidéo !", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Super !", description: "C'est bien la vidéo de Caroline? Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." }, searchTitle: "Le logiciel d’IA générative crée la vidéo" }
5
5
  }, K = {}, X = {}, Y = ["aria-hidden"], ee = ["aria-level"], te = ["src"], ae = { class: "description" }, ie = ["src"], se = ["aria-level"], ne = /* @__PURE__ */ k({
6
6
  __name: "NarrativeAnswer.ce",
@@ -49,7 +49,7 @@ const W = {}, Z = {}, J = {
49
49
  }
50
50
  }), le = ".right-container[data-v-3d782b51]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-3d782b51]{visibility:hidden}img[data-v-3d782b51]{margin-block:.5rem}.subtitle[data-v-3d782b51]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-3d782b51]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-3d782b51]{width:200px;height:auto}.answer-block[data-v-3d782b51]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-3d782b51]{margin-bottom:0}.answer-block.success[data-v-3d782b51]{background:#e8f3ef}.answer-block.fail[data-v-3d782b51]{border-radius:16px;background:#fbecec}", oe = /* @__PURE__ */ w(ne, [["styles", [le]], ["__scopeId", "data-v-3d782b51"]]), re = ["aria-disabled"], de = /* @__PURE__ */ k({
51
51
  __name: "Option.ce",
52
- props: /* @__PURE__ */ B({
52
+ props: /* @__PURE__ */ A({
53
53
  option: { type: String },
54
54
  value: { type: Number },
55
55
  readonly: { type: Boolean }
@@ -59,7 +59,7 @@ const W = {}, Z = {}, J = {
59
59
  }),
60
60
  emits: ["update:modelValue"],
61
61
  setup(a, { expose: e }) {
62
- const l = E(a, "modelValue"), u = y(!1), i = _(() => l.value.length === 3 && !u.value || a.readonly);
62
+ const l = B(a, "modelValue"), u = y(!1), i = _(() => l.value.length === 3 && !u.value || a.readonly);
63
63
  function v(m) {
64
64
  if (i.value) {
65
65
  m.preventDefault();
@@ -72,7 +72,7 @@ const W = {}, Z = {}, J = {
72
72
  }), (m, g) => (r(), c("label", {
73
73
  class: C({ selected: u.value, disabled: i.value })
74
74
  }, [
75
- R(t("input", {
75
+ E(t("input", {
76
76
  type: "checkbox",
77
77
  name: "options",
78
78
  onClick: v,
@@ -166,12 +166,12 @@ const W = {}, Z = {}, J = {
166
166
  }, d(n.$t("qcm-deepfake.in")), 9, ge),
167
167
  t("fieldset", null, [
168
168
  t("legend", ve, d(n.$t("qcm-deepfake.selectThreeElements")), 1),
169
- (r(!0), c(h, null, x(G(p), (f, S) => (r(), M(ue, {
169
+ (r(!0), c(h, null, x(M(p), (f, S) => (r(), G(ue, {
170
170
  ref_for: !0,
171
171
  ref_key: "optionsNode",
172
172
  ref: v,
173
173
  modelValue: l.value,
174
- "onUpdate:modelValue": o[0] || (o[0] = (A) => l.value = A),
174
+ "onUpdate:modelValue": o[0] || (o[0] = (R) => l.value = R),
175
175
  key: S,
176
176
  class: "left-side__options",
177
177
  option: f,
@@ -213,8 +213,8 @@ const W = {}, Z = {}, J = {
213
213
  ], 64));
214
214
  }
215
215
  }), we = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", qe = ".container[data-v-a7a0f3aa]{display:flex;gap:.8rem}.title[data-v-a7a0f3aa]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-a7a0f3aa]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-a7a0f3aa]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-a7a0f3aa]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-a7a0f3aa]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-a7a0f3aa]{font-weight:700}.left-side__button[data-v-a7a0f3aa]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-a7a0f3aa]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-a7a0f3aa]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-a7a0f3aa]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-a7a0f3aa]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-a7a0f3aa]{border:none;display:flex;flex-direction:column;gap:.8rem}@media (max-width: 770px){.container[data-v-a7a0f3aa]{flex-wrap:wrap}.left-side[data-v-a7a0f3aa],.right-side[data-v-a7a0f3aa]{width:100%}}", Ie = /* @__PURE__ */ w(Ce, [["styles", [we, qe]], ["__scopeId", "data-v-a7a0f3aa"]]);
216
- H(/* @__PURE__ */ Object.assign({ "./locales/en.json": W, "./locales/es.json": Z, "./locales/fr.json": J, "./locales/it.json": K, "./locales/nl.json": X })).catch((a) => console.error(a));
217
- window.customElements.define("qcm-deepfake", Q(Ie, {
216
+ Q(/* @__PURE__ */ Object.assign({ "./locales/en.json": J, "./locales/es.json": W, "./locales/fr.json": Z, "./locales/it.json": K, "./locales/nl.json": X })).catch((a) => console.error(a));
217
+ window.customElements.define("qcm-deepfake", H(Ie, {
218
218
  configureApp(a) {
219
219
  s.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(U, { i18next: s });
220
220
  }
@@ -1,4 +1,4 @@
1
- import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-DK91u00G.js";
1
+ import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-BaT1QC5Q.js";
2
2
  const d = (o) => typeof o == "string", V = () => {
3
3
  let o, e;
4
4
  const t = new Promise((i, s) => {
package/dist/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import "./components/calcul-impact.ce.js.js";
2
+ import "./components/capacity-calculation.ce.js.js";
2
3
  import "./components/clickable-image.ce.js.js";
3
4
  import "./components/complete-phrase.ce.js.js";
5
+ import "./components/flip-cards.ce.js.js";
4
6
  import "./components/image-quiz.ce.js.js";
5
7
  import "./components/image-quizzes.ce.js.js";
6
8
  import "./components/message-conversation.ce.js.js";
package/dist/metadata.js CHANGED
@@ -1,48 +1,56 @@
1
1
  const i = "usable", s = {
2
2
  isInteractive: !0,
3
3
  mobileUsability: i
4
- }, a = "not-accessible", o = !0, c = "unusable", l = {
4
+ }, a = "accessible", c = !0, o = "not-recommended", l = {
5
5
  accessibility: a,
6
- isInteractive: o,
7
- mobileUsability: c
8
- }, n = !0, b = "not-recommended", m = {
9
- isInteractive: n,
10
- mobileUsability: b
11
- }, _ = !0, r = "usable", v = {
12
- isInteractive: _,
13
- mobileUsability: r
14
- }, u = !0, y = "usable", $ = {
15
- isInteractive: u,
16
- mobileUsability: y
17
- }, I = !1, U = "usable", d = {
18
- isInteractive: I,
19
- mobileUsability: U
20
- }, g = !1, p = "usable", j = {
21
- isInteractive: g,
6
+ isInteractive: c,
7
+ mobileUsability: o
8
+ }, n = "not-accessible", b = !0, m = "unusable", _ = {
9
+ accessibility: n,
10
+ isInteractive: b,
11
+ mobileUsability: m
12
+ }, r = !0, v = "not-recommended", y = {
13
+ isInteractive: r,
14
+ mobileUsability: v
15
+ }, u = "accessible", $ = !0, d = "usable", I = {
16
+ accessibility: u,
17
+ isInteractive: $,
18
+ mobileUsability: d
19
+ }, U = !0, p = "usable", g = {
20
+ isInteractive: U,
22
21
  mobileUsability: p
23
- }, x = "accessible", f = !0, q = "usable", z = {
24
- accessibility: x,
25
- isInteractive: f,
26
- mobileUsability: q
27
- }, k = !0, O = "not-recommended", h = {
28
- isInteractive: k,
29
- mobileUsability: O
30
- }, E = !1, w = "unusable", A = {
31
- isInteractive: E,
32
- mobileUsability: w
33
- }, B = !1, C = "usable", D = {
34
- isInteractive: B,
35
- mobileUsability: C
36
- }, F = !0, G = "usable", H = {
37
- isInteractive: F,
38
- mobileUsability: G
39
- }, J = !0, K = "not-recommended", L = {
40
- isInteractive: J,
41
- mobileUsability: K
42
- }, M = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.metadata.json": s, "./clickable-image/clickable-image.metadata.json": l, "./complete-phrase/complete-phrase.metadata.json": m, "./image-quiz/image-quiz.metadata.json": v, "./image-quiz/image-quizzes.metadata.json": $, "./message-conversation/message-conversation.metadata.json": d, "./pix-article/pix-article.metadata.json": j, "./pix-carousel/pix-carousel.metadata.json": z, "./pix-cursor/pix-cursor.metadata.json": h, "./pix-llm/llm-compare-messages.metadata.json": A, "./pix-llm/llm-messages.metadata.json": D, "./pix-llm/llm-prompt-select.metadata.json": H, "./qcm-deepfake/qcm-deepfake.metadata.json": L }), N = Object.fromEntries(Object.entries(M).map(([t, e]) => [
22
+ }, j = !0, x = "usable", f = {
23
+ isInteractive: j,
24
+ mobileUsability: x
25
+ }, q = !1, z = "usable", k = {
26
+ isInteractive: q,
27
+ mobileUsability: z
28
+ }, O = !1, h = "usable", E = {
29
+ isInteractive: O,
30
+ mobileUsability: h
31
+ }, w = "accessible", A = !0, B = "usable", C = {
32
+ accessibility: w,
33
+ isInteractive: A,
34
+ mobileUsability: B
35
+ }, D = !0, F = "not-recommended", G = {
36
+ isInteractive: D,
37
+ mobileUsability: F
38
+ }, H = !1, J = "unusable", K = {
39
+ isInteractive: H,
40
+ mobileUsability: J
41
+ }, L = !1, M = "usable", N = {
42
+ isInteractive: L,
43
+ mobileUsability: M
44
+ }, P = !0, Q = "usable", R = {
45
+ isInteractive: P,
46
+ mobileUsability: Q
47
+ }, S = !0, T = "not-recommended", V = {
48
+ isInteractive: S,
49
+ mobileUsability: T
50
+ }, W = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.metadata.json": s, "./capacity-calculation/capacity-calculation.metadata.json": l, "./clickable-image/clickable-image.metadata.json": _, "./complete-phrase/complete-phrase.metadata.json": y, "./flip-cards/flip-cards.metadata.json": I, "./image-quiz/image-quiz.metadata.json": g, "./image-quiz/image-quizzes.metadata.json": f, "./message-conversation/message-conversation.metadata.json": k, "./pix-article/pix-article.metadata.json": E, "./pix-carousel/pix-carousel.metadata.json": C, "./pix-cursor/pix-cursor.metadata.json": G, "./pix-llm/llm-compare-messages.metadata.json": K, "./pix-llm/llm-messages.metadata.json": N, "./pix-llm/llm-prompt-select.metadata.json": R, "./qcm-deepfake/qcm-deepfake.metadata.json": V }), X = Object.fromEntries(Object.entries(W).map(([t, e]) => [
43
51
  t.replace(/^.*\/([^/]+)\.metadata\.json$/, "$1"),
44
52
  e
45
53
  ]));
46
54
  export {
47
- N as metadata
55
+ X as metadata
48
56
  };