@1024pix/epreuves-components 4.6.0 → 4.6.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 (58) hide show
  1. package/dist/{Button.ce-C-lBihdF.js → Button.ce-Ccv3OLk2.js} +1 -1
  2. package/dist/{ButtonTooltip.ce-B071jWM0.js → ButtonTooltip.ce-Bo42SFAP.js} +1 -1
  3. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js +83 -0
  4. package/dist/{FocusManager.ce-Cb8fkfeb.js → FocusManager.ce-BG_n76ZF.js} +2 -2
  5. package/dist/{Icon.ce-AUDpzQic.js → Icon.ce-Be0LymfA.js} +1 -1
  6. package/dist/{LLMMessage.ce-DBorHEa1.js → LLMMessage.ce-y0WmEj7m.js} +24 -22
  7. package/dist/{Loading.ce-D7EpPBBD.js → Loading.ce-CG-e7tdE.js} +1 -1
  8. package/dist/{Modal.ce-CRJ7RcAX.js → Modal.ce-DCTwYJKJ.js} +9 -9
  9. package/dist/{NavigationButton.ce-DqFqWt9V.js → NavigationButton.ce-B-c0m9H8.js} +14 -12
  10. package/dist/{PixMailMessage.ce-Cqrs9R3i.js → PixMailMessage.ce-CH6CVQ3H.js} +13 -13
  11. package/dist/{Popin.ce-D1V8wzxE.js → Popin.ce-CQtpIOkM.js} +3 -3
  12. package/dist/{Retry-fzluiEoj.js → Retry-DLOo5neI.js} +3 -3
  13. package/dist/{Stepper.ce-cG0al2pY.js → Stepper.ce-MmSadTrx.js} +1 -1
  14. package/dist/{_plugin-vue_export-helper-DJlRxzRH.js → _plugin-vue_export-helper-CD1RUA2y.js} +7 -7
  15. package/dist/components/analyse-mails-phishing.ce.js.js +104 -105
  16. package/dist/components/autocompletion-mdp.ce.js.js +81 -81
  17. package/dist/components/button.ce.js.js +2 -2
  18. package/dist/components/calcul-impact.ce.js.js +8 -8
  19. package/dist/components/capacity-calculation.ce.js.js +35 -32
  20. package/dist/components/clickable-image.ce.js.js +10 -10
  21. package/dist/components/complete-phrase.ce.js.js +12 -12
  22. package/dist/components/flip-cards.ce.js.js +7 -7
  23. package/dist/components/generate-mdp.ce.js.js +52 -52
  24. package/dist/components/image-quiz.ce.js.js +3 -3
  25. package/dist/components/image-quizzes.ce.js.js +3 -3
  26. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  27. package/dist/components/llm-messages.ce.js.js +6 -6
  28. package/dist/components/llm-prompt-select.ce.js.js +7 -7
  29. package/dist/components/mdp-classement.ce.js.js +100 -108
  30. package/dist/components/message-conversation.ce.js.js +15 -15
  31. package/dist/components/mobile-shell.ce.js.js +1 -1
  32. package/dist/components/notification-antivirus.ce.js.js +139 -149
  33. package/dist/components/phishing-message.ce.js.js +23 -23
  34. package/dist/components/phishing-notification.ce.js.js +3 -3
  35. package/dist/components/pix-anonymisation.ce.js.js +10 -10
  36. package/dist/components/pix-article.ce.js.js +2 -2
  37. package/dist/components/pix-carousel.ce.js.js +10 -8
  38. package/dist/components/pix-combinaisons.ce.js.js +13 -13
  39. package/dist/components/pix-cursor.ce.js.js +10 -10
  40. package/dist/components/pix-mail-message.ce.js.js +3 -3
  41. package/dist/components/proteger-mail-spam.ce.js.js +70 -82
  42. package/dist/components/qcm-deepfake.ce.js.js +6 -6
  43. package/dist/components/quiz-stepper.ce.js.js +61 -68
  44. package/dist/components/select-conversation.ce.js.js +4 -4
  45. package/dist/components/template-mail.ce.js.js +3 -3
  46. package/dist/components/test-top-mdp.ce.js.js +4 -4
  47. package/dist/components/trouver-mdp-rs.ce.js.js +57 -71
  48. package/dist/components/usages-donnees.ce.js.js +7 -7
  49. package/dist/{i18n-C0iMUvqX.js → i18n-C-1Ne5JG.js} +1 -1
  50. package/dist/{i18n-lite-X2ADNonj.js → i18n-lite-WQsHAHqG.js} +1 -1
  51. package/dist/{image-quiz.ce-BaKLPvSS.js → image-quiz.ce-DGVVVaQN.js} +2 -2
  52. package/dist/{index-Ck6CFpiq.js → index-C8-9QxHJ.js} +1 -1
  53. package/dist/index.js +1 -1
  54. package/dist/{shadow-dom-Dh5hLXcx.js → shadow-dom-DSLDIcsa.js} +1 -1
  55. package/package.json +1 -1
  56. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-Cc1FblLh.js +0 -53
  57. package/dist/Feedback.ce-CeyQhenY.js +0 -26
  58. package/dist/components/feedback.ce.js.js +0 -4
@@ -1,6 +1,6 @@
1
- import { a as R, h as E, k as O, G as W, o as d, c as p, b as C, m as _, F as D, e as L, y as V, B as y, v as j, t as G, l as H, H as T, I as U, x as X, r as b, g as v, _ as Y, d as q } from "../_plugin-vue_export-helper-DJlRxzRH.js";
1
+ import { b as B, h as E, k as O, G as W, o as d, c as p, a as C, m as _, F as D, e as L, y as V, A as y, v as j, t as G, l as H, H as T, I as U, x as X, r as b, g as v, _ as Y, d as q } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
2
  import { a as J, b as S } from "../normalize-props-DH0oPBss.js";
3
- const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], m = 10, Z = /* @__PURE__ */ R({
3
+ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], m = 10, Z = /* @__PURE__ */ B({
4
4
  __name: "ClickableImage.ce",
5
5
  props: {
6
6
  image: { type: Object },
@@ -18,10 +18,10 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
18
18
  });
19
19
  const I = a.areas.some(({ spot: e }) => !!e), $ = v(() => a.areas.map((e) => ({
20
20
  ...e,
21
- coords: M(e.coords),
22
- spot: A(e.spot)
21
+ coords: A(e.coords),
22
+ spot: M(e.spot)
23
23
  })));
24
- function M(e) {
24
+ function A(e) {
25
25
  return {
26
26
  x1: e.x1 * r.value,
27
27
  y1: e.y1 * r.value,
@@ -29,7 +29,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
29
29
  y2: e.y2 * r.value
30
30
  };
31
31
  }
32
- function A({ x: e = 0, y: t = 0 } = {}) {
32
+ function M({ x: e = 0, y: t = 0 } = {}) {
33
33
  return {
34
34
  x: e * r.value,
35
35
  y: t * r.value
@@ -52,7 +52,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
52
52
  const x = v(() => u.value ?? f.value), c = v(() => {
53
53
  if (x.value !== void 0)
54
54
  return $.value[x.value];
55
- }), B = v(() => {
55
+ }), N = v(() => {
56
56
  if (!c.value) return {};
57
57
  const { tooltipPosition: e, coords: { x1: t, y1: o, x2: n, y2: s } } = c.value;
58
58
  switch (e) {
@@ -82,10 +82,10 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
82
82
  };
83
83
  }
84
84
  });
85
- function N() {
85
+ function R() {
86
86
  u.value = void 0;
87
87
  }
88
- return i({ reset: N }), (e, t) => (d(), p("div", K, [
88
+ return i({ reset: R }), (e, t) => (d(), p("div", K, [
89
89
  C("img", _(a.image, {
90
90
  ref: "image",
91
91
  onLoad: t[0] || (t[0] = (o) => h()),
@@ -120,7 +120,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
120
120
  T(C("p", {
121
121
  class: "tooltip",
122
122
  "aria-hidden": "true",
123
- style: y(B.value)
123
+ style: y(N.value)
124
124
  }, X(c.value?.info), 5), [
125
125
  [U, c.value]
126
126
  ])
@@ -1,8 +1,8 @@
1
- import { a as h, o, c as n, b as a, x as c, B as j, _ as f, t as P, q as S, A as N, F as y, e as x, l as z, r as k, g as m, D as L, f as v, d as M } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
- import { u as O, a as T, i as q, b as E } from "../i18n-C0iMUvqX.js";
1
+ import { b as h, o, c as n, a, x as c, A as j, _ as f, t as C, q as S, E as N, F as y, e as x, l as z, r as k, g as m, C as L, f as v, d as E } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
+ import { u as M, a as O, i as q, b as T } from "../i18n-C-1Ne5JG.js";
3
3
  import { b as I } from "../normalize-props-DH0oPBss.js";
4
- import { L as B } from "../LLMMessage.ce-DBorHEa1.js";
5
- const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
4
+ import { L as B } from "../LLMMessage.ce-y0WmEj7m.js";
5
+ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
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 choisi par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! L’IA peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... L’IA choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
7
7
  }, H = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ h({
8
8
  __name: "ProbabilityBar.ce",
@@ -33,7 +33,7 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
33
33
  },
34
34
  setup(e) {
35
35
  return (d, t) => (o(), n("button", {
36
- class: P(["complete-phrase_button", e.state])
36
+ class: C(["complete-phrase_button", e.state])
37
37
  }, [
38
38
  S(d.$slots, "icon"),
39
39
  N(" " + c(e.label), 1)
@@ -50,7 +50,7 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
50
50
  },
51
51
  emits: ["answer"],
52
52
  setup(e, { emit: d }) {
53
- const t = d, s = k(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) }));
53
+ const t = d, s = k(null), { t: p } = M(), _ = 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
54
  function g(i) {
55
55
  s.value = i, t("answer", i.name);
56
56
  }
@@ -122,7 +122,7 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
122
122
  ]),
123
123
  a("div", fe, [
124
124
  (o(!0), n(y, null, x(e.listOfProbabilityBarsLists, (u, b) => (o(), n("div", {
125
- class: P(["probability", { hidden: b !== t.value }]),
125
+ class: C(["probability", { hidden: b !== t.value }]),
126
126
  key: b,
127
127
  id: `currentProbability${b}`,
128
128
  "aria-hidden": b !== t.value
@@ -150,14 +150,14 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
150
150
  ]));
151
151
  }
152
152
  }), ve = "*{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}}", ye = /* @__PURE__ */ f(ge, [["styles", [ve]]]);
153
- T(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": D, "./locales/es-419.json": V, "./locales/es.json": F, "./locales/fr-BE.json": Q, "./locales/fr.json": W, "./locales/it.json": H, "./locales/nl.json": U })).catch((e) => console.error(e));
154
- const C = M(ye, {
153
+ O(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": V, "./locales/es-419.json": D, "./locales/es.json": F, "./locales/fr-BE.json": Q, "./locales/fr.json": W, "./locales/it.json": H, "./locales/nl.json": U })).catch((e) => console.error(e));
154
+ const P = E(ye, {
155
155
  configureApp(e) {
156
- q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(E, { i18next: q });
156
+ q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(T, { i18next: q });
157
157
  }
158
158
  });
159
- C.prototype.normalizeProps = (e) => ({
159
+ P.prototype.normalizeProps = (e) => ({
160
160
  ...e,
161
161
  titleLevel: I(e.titleLevel)
162
162
  });
163
- window.customElements.define("complete-phrase", C);
163
+ window.customElements.define("complete-phrase", P);
@@ -1,6 +1,6 @@
1
- import { a as g, o as r, c as n, F as m, b as i, t as f, x as l, l as x, _ as u, r as y, e as k, Q as v, D as w, d as F } from "../_plugin-vue_export-helper-DJlRxzRH.js";
1
+ import { b as g, o as r, c as n, F as m, a as i, t as f, x as l, l as x, _ as u, r as y, e as k, Q as v, C as w, d as F } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
2
  import { b as _ } from "../normalize-props-DH0oPBss.js";
3
- const L = ["aria-hidden"], C = ["src"], z = ["aria-level"], N = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], D = /* @__PURE__ */ g({
3
+ const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], E = /* @__PURE__ */ g({
4
4
  __name: "FlipCard.ce",
5
5
  props: {
6
6
  titleLevel: { type: Number },
@@ -21,13 +21,13 @@ const L = ["aria-hidden"], C = ["src"], z = ["aria-level"], N = ["aria-hidden"],
21
21
  class: "icon",
22
22
  src: e.icon,
23
23
  alt: ""
24
- }, null, 8, C),
24
+ }, null, 8, L),
25
25
  i("div", {
26
26
  role: "heading",
27
27
  "aria-level": e.titleLevel,
28
28
  class: "title"
29
29
  }, l(e.name), 9, z)
30
- ], 10, L),
30
+ ], 10, C),
31
31
  i("div", {
32
32
  class: f(["card verso", { flipped: e.isFlipped, [e.color]: e.color }]),
33
33
  "aria-hidden": e.isFlipped ? "false" : "true"
@@ -48,7 +48,7 @@ const L = ["aria-hidden"], C = ["src"], z = ["aria-level"], N = ["aria-hidden"],
48
48
  ], 10, N)
49
49
  ], 64));
50
50
  }
51
- }), E = "[data-v-c0da3f12]{box-sizing:border-box}.card[data-v-c0da3f12]{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-c0da3f12]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-c0da3f12]{display:block;height:auto;width:40px}.card.verso[data-v-c0da3f12]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-c0da3f12]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-c0da3f12]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-c0da3f12]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-c0da3f12]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-c0da3f12]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-c0da3f12]{border:2px solid #f041bf}.card.verso .description[data-v-c0da3f12]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-c0da3f12]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-c0da3f12]{display:block;height:100%;object-fit:contain;width:100%}", K = /* @__PURE__ */ u(D, [["styles", [E]], ["__scopeId", "data-v-c0da3f12"]]), V = { class: "flip-cards" }, I = ["aria-level"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, A = /* @__PURE__ */ g({
51
+ }), K = "[data-v-c0da3f12]{box-sizing:border-box}.card[data-v-c0da3f12]{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-c0da3f12]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-c0da3f12]{display:block;height:auto;width:40px}.card.verso[data-v-c0da3f12]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-c0da3f12]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-c0da3f12]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-c0da3f12]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-c0da3f12]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-c0da3f12]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-c0da3f12]{border:2px solid #f041bf}.card.verso .description[data-v-c0da3f12]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-c0da3f12]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-c0da3f12]{display:block;height:100%;object-fit:contain;width:100%}", V = /* @__PURE__ */ u(E, [["styles", [K]], ["__scopeId", "data-v-c0da3f12"]]), D = { class: "flip-cards" }, I = ["aria-level"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, A = /* @__PURE__ */ g({
52
52
  __name: "FlipCards.ce",
53
53
  props: {
54
54
  titleLevel: { default: 2, type: Number },
@@ -65,7 +65,7 @@ const L = ["aria-hidden"], C = ["src"], z = ["aria-level"], N = ["aria-hidden"],
65
65
  ), c = (t, o) => {
66
66
  o.preventDefault(), t.isFlipped = !t.isFlipped;
67
67
  };
68
- return (t, o) => (r(), n("div", V, [
68
+ return (t, o) => (r(), n("div", D, [
69
69
  i("div", {
70
70
  role: "heading",
71
71
  "aria-level": e.titleLevel,
@@ -84,7 +84,7 @@ const L = ["aria-hidden"], C = ["src"], z = ["aria-level"], N = ["aria-hidden"],
84
84
  ]
85
85
  }, [
86
86
  i("div", Z, [
87
- w(K, {
87
+ w(V, {
88
88
  color: a.color,
89
89
  description: a.description,
90
90
  icon: a.icon,
@@ -1,29 +1,29 @@
1
- import { a as B, h as G, o as E, c as I, b as t, D as s, E as u, v as w, A as c, x as n, t as f, r as d, g as L, n as R, _ as z, d as N } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
- import { u as P, i as m } from "../i18n-lite-X2ADNonj.js";
3
- import { p as $ } from "../shadow-dom-Dh5hLXcx.js";
4
- import { I as H, B as x } from "../Icon.ce-AUDpzQic.js";
5
- import { I as g, M as F } from "../Modal.ce-CRJ7RcAX.js";
6
- import { b as q } from "../normalize-props-DH0oPBss.js";
7
- const D = {}, T = {}, A = {
8
- "generate-mdp": { addPassword: "Ajouter un mot de passe", title: "Titre", email: "Adresse e-mail", password: "Mot de passe", save: "Enregistrer", strength: "Fort", weak: "Faible", generatePassword: "Générer un mot de passe fort", feedback: { title: "Bravo !", content: "Grâce au gestionnaire de mots de passe, vous pouvez générer automatiquement des mots de passe forts." } }
9
- }, J = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.99976%2011.25V12.75M4.49976%2015.75H13.4998C13.8976%2015.75%2014.2791%2015.592%2014.5604%2015.3107C14.8417%2015.0294%2014.9998%2014.6478%2014.9998%2014.25V9.75C14.9998%209.35218%2014.8417%208.97064%2014.5604%208.68934C14.2791%208.40804%2013.8976%208.25%2013.4998%208.25H4.49976C4.10193%208.25%203.7204%208.40804%203.4391%208.68934C3.15779%208.97064%202.99976%209.35218%202.99976%209.75V14.25C2.99976%2014.6478%203.15779%2015.0294%203.4391%2015.3107C3.7204%2015.592%204.10193%2015.75%204.49976%2015.75ZM11.9998%208.25V5.25C11.9998%204.45435%2011.6837%203.69129%2011.1211%203.12868C10.5585%202.56607%209.79541%202.25%208.99976%202.25C8.20411%202.25%207.44104%202.56607%206.87844%203.12868C6.31583%203.69129%205.99976%204.45435%205.99976%205.25V8.25H11.9998Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", S = "data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.562%2016.5C29.562%2019.0835%2028.7959%2021.609%2027.3606%2023.7571C25.9253%2025.9053%2023.8852%2027.5795%2021.4983%2028.5682C19.1115%2029.5568%2016.485%2029.8155%2013.9512%2029.3115C11.4173%2028.8075%209.08976%2027.5634%207.26294%2025.7366C5.43611%2023.9098%204.19203%2021.5822%203.68801%2019.0484C3.18399%2016.5145%203.44267%2013.8881%204.43134%2011.5012C5.42001%209.11434%207.09426%207.07425%209.24238%205.63893C11.3905%204.2036%2013.916%203.4375%2016.4995%203.4375C19.0419%203.43667%2021.5293%204.17778%2023.6566%205.56996C25.784%206.96214%2027.4588%208.94486%2028.4758%2011.275M29.562%207.5625L28.9089%2011.9281L24.7495%2011'%20stroke='white'%20stroke-width='3.09375'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.7495%2015.125V13.0625C13.7495%2012.3332%2014.0392%2011.6337%2014.555%2011.118C15.0707%2010.6022%2015.7702%2010.3125%2016.4995%2010.3125C17.2289%2010.3125%2017.9283%2010.6022%2018.4441%2011.118C18.9598%2011.6337%2019.2495%2012.3332%2019.2495%2013.0625V15.125M15.4683%2022.6875H17.5308C19.1436%2022.6875%2019.9508%2022.6875%2020.5049%2022.2613C20.6479%2022.1515%2020.776%2022.0234%2020.8858%2021.8804C21.312%2021.3249%2021.312%2020.5191%2021.312%2018.9062C21.312%2017.2934%2021.312%2016.4862%2020.8858%2015.9321C20.776%2015.7891%2020.6479%2015.661%2020.5049%2015.5513C19.9494%2015.125%2019.1436%2015.125%2017.5308%2015.125H15.4683C13.8554%2015.125%2013.0483%2015.125%2012.4941%2015.5513C12.3511%2015.661%2012.223%2015.7891%2012.1133%2015.9321C11.687%2016.4876%2011.687%2017.2934%2011.687%2018.9062C11.687%2020.5191%2011.687%2021.3263%2012.1133%2021.8804C12.223%2022.0234%2012.3511%2022.1515%2012.4941%2022.2613C13.0496%2022.6875%2013.8554%2022.6875%2015.4683%2022.6875Z'%20stroke='white'%20stroke-width='3.09375'%20stroke-linejoin='round'/%3e%3c/svg%3e", U = { class: "wrapper" }, Q = ["aria-level"], Z = ["src"], K = { class: "password-field" }, Y = { class: "password-strength" }, O = {
1
+ import { b as B, h as G, r as d, o as E, c as I, a as t, C as s, D as u, v as w, E as g, x as i, t as f, g as L, n as R, _ as z, d as N } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
+ import { u as P, i as h } from "../i18n-lite-WQsHAHqG.js";
3
+ import { p as $ } from "../shadow-dom-DSLDIcsa.js";
4
+ import { I as H, B as _ } from "../Icon.ce-Be0LymfA.js";
5
+ import { I as m, M as F } from "../Modal.ce-DCTwYJKJ.js";
6
+ import { b as T } from "../normalize-props-DH0oPBss.js";
7
+ const q = {}, D = {}, A = {}, J = {
8
+ "generate-mdp": { addPassword: "Ajouter un mot de passe", title: { label: "Titre", value: "La belle fripe" }, email: { label: "Adresse e-mail", value: "elio@pixmail.org" }, password: "Mot de passe", save: "Enregistrer", strength: "Fort", weak: "Faible", generatePassword: "Générer un mot de passe fort", feedback: { title: "Bravo !", content: "Grâce au gestionnaire de mots de passe, vous pouvez générer automatiquement des mots de passe forts." } }
9
+ }, S = {}, U = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.99976%2011.25V12.75M4.49976%2015.75H13.4998C13.8976%2015.75%2014.2791%2015.592%2014.5604%2015.3107C14.8417%2015.0294%2014.9998%2014.6478%2014.9998%2014.25V9.75C14.9998%209.35218%2014.8417%208.97064%2014.5604%208.68934C14.2791%208.40804%2013.8976%208.25%2013.4998%208.25H4.49976C4.10193%208.25%203.7204%208.40804%203.4391%208.68934C3.15779%208.97064%202.99976%209.35218%202.99976%209.75V14.25C2.99976%2014.6478%203.15779%2015.0294%203.4391%2015.3107C3.7204%2015.592%204.10193%2015.75%204.49976%2015.75ZM11.9998%208.25V5.25C11.9998%204.45435%2011.6837%203.69129%2011.1211%203.12868C10.5585%202.56607%209.79541%202.25%208.99976%202.25C8.20411%202.25%207.44104%202.56607%206.87844%203.12868C6.31583%203.69129%205.99976%204.45435%205.99976%205.25V8.25H11.9998Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Q = "data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.562%2016.5C29.562%2019.0835%2028.7959%2021.609%2027.3606%2023.7571C25.9253%2025.9053%2023.8852%2027.5795%2021.4983%2028.5682C19.1115%2029.5568%2016.485%2029.8155%2013.9512%2029.3115C11.4173%2028.8075%209.08976%2027.5634%207.26294%2025.7366C5.43611%2023.9098%204.19203%2021.5822%203.68801%2019.0484C3.18399%2016.5145%203.44267%2013.8881%204.43134%2011.5012C5.42001%209.11434%207.09426%207.07425%209.24238%205.63893C11.3905%204.2036%2013.916%203.4375%2016.4995%203.4375C19.0419%203.43667%2021.5293%204.17778%2023.6566%205.56996C25.784%206.96214%2027.4588%208.94486%2028.4758%2011.275M29.562%207.5625L28.9089%2011.9281L24.7495%2011'%20stroke='white'%20stroke-width='3.09375'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.7495%2015.125V13.0625C13.7495%2012.3332%2014.0392%2011.6337%2014.555%2011.118C15.0707%2010.6022%2015.7702%2010.3125%2016.4995%2010.3125C17.2289%2010.3125%2017.9283%2010.6022%2018.4441%2011.118C18.9598%2011.6337%2019.2495%2012.3332%2019.2495%2013.0625V15.125M15.4683%2022.6875H17.5308C19.1436%2022.6875%2019.9508%2022.6875%2020.5049%2022.2613C20.6479%2022.1515%2020.776%2022.0234%2020.8858%2021.8804C21.312%2021.3249%2021.312%2020.5191%2021.312%2018.9062C21.312%2017.2934%2021.312%2016.4862%2020.8858%2015.9321C20.776%2015.7891%2020.6479%2015.661%2020.5049%2015.5513C19.9494%2015.125%2019.1436%2015.125%2017.5308%2015.125H15.4683C13.8554%2015.125%2013.0483%2015.125%2012.4941%2015.5513C12.3511%2015.661%2012.223%2015.7891%2012.1133%2015.9321C11.687%2016.4876%2011.687%2017.2934%2011.687%2018.9062C11.687%2020.5191%2011.687%2021.3263%2012.1133%2021.8804C12.223%2022.0234%2012.3511%2022.1515%2012.4941%2022.2613C13.0496%2022.6875%2013.8554%2022.6875%2015.4683%2022.6875Z'%20stroke='white'%20stroke-width='3.09375'%20stroke-linejoin='round'/%3e%3c/svg%3e", Z = { class: "wrapper" }, K = ["aria-level"], Y = ["src"], O = { class: "password-field" }, W = { class: "password-strength" }, X = {
10
10
  "aria-live": "polite",
11
11
  class: "password-strength__strengthness"
12
- }, W = { class: "sr-only" }, X = ["src"], ee = /* @__PURE__ */ B({
12
+ }, ee = { class: "sr-only" }, te = ["src"], ae = /* @__PURE__ */ B({
13
13
  __name: "GenerateMdp.ce",
14
14
  props: {
15
15
  titleLevel: { default: 2, type: Number }
16
16
  },
17
- setup(r, { expose: C }) {
18
- const { t: b } = P(), k = G("success-modal"), h = d("La belle fripe"), v = d("elio@pixmail.org"), a = d(""), i = d(!1);
17
+ setup(l, { expose: C }) {
18
+ const { t: r } = P(), k = G("success-modal"), b = d(r("generate-mdp.title.value")), v = d(r("generate-mdp.email.value")), a = d(""), p = d(!1);
19
19
  async function y() {
20
- i.value = !0, await R(), k.value.dialogElement.focus();
20
+ p.value = !0, await R(), k.value.dialogElement.focus();
21
21
  }
22
22
  $();
23
23
  function V() {
24
- i.value = !1, a.value = "";
24
+ p.value = !1, a.value = "";
25
25
  }
26
- const p = [
26
+ const c = [
27
27
  "39m%,Yqp4brJ",
28
28
  "aqN1^!T`:GID",
29
29
  "4_nakXe59Hi5",
@@ -47,57 +47,57 @@ const D = {}, T = {}, A = {
47
47
  "*D4W0asv+$:("
48
48
  ];
49
49
  function M() {
50
- const e = Math.floor(p.length * Math.random());
51
- a.value = p[e];
50
+ const e = Math.floor(c.length * Math.random());
51
+ a.value = c[e];
52
52
  }
53
- const j = L(() => p.includes(a.value) ? b("generate-mdp.strength") : b("generate-mdp.weak"));
53
+ const j = L(() => c.includes(a.value) ? r("generate-mdp.strength") : r("generate-mdp.weak"));
54
54
  return C({
55
55
  reset: V
56
- }), (e, o) => (E(), I("div", U, [
56
+ }), (e, o) => (E(), I("div", Z, [
57
57
  t("div", {
58
- "aria-level": r.titleLevel,
58
+ "aria-level": l.titleLevel,
59
59
  class: "title",
60
60
  role: "heading"
61
61
  }, [
62
62
  s(H, { "background-color": "#2c75ff" }, {
63
63
  default: u(() => [
64
64
  t("img", {
65
- src: w(J),
65
+ src: w(U),
66
66
  alt: ""
67
- }, null, 8, Z)
67
+ }, null, 8, Y)
68
68
  ]),
69
69
  _: 1
70
70
  }),
71
- c(" " + n(e.$t("generate-mdp.addPassword")), 1)
72
- ], 8, Q),
71
+ g(" " + i(e.$t("generate-mdp.addPassword")), 1)
72
+ ], 8, K),
73
73
  t("form", null, [
74
- s(g, {
75
- modelValue: h.value,
76
- "onUpdate:modelValue": o[0] || (o[0] = (l) => h.value = l),
77
- label: e.$t("generate-mdp.title"),
74
+ s(m, {
75
+ modelValue: b.value,
76
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => b.value = n),
77
+ label: e.$t("generate-mdp.title.label"),
78
78
  readonly: !0,
79
79
  type: "text"
80
80
  }, null, 8, ["modelValue", "label"]),
81
- s(g, {
81
+ s(m, {
82
82
  modelValue: v.value,
83
- "onUpdate:modelValue": o[1] || (o[1] = (l) => v.value = l),
84
- label: e.$t("generate-mdp.email"),
83
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => v.value = n),
84
+ label: e.$t("generate-mdp.email.label"),
85
85
  readonly: !0,
86
86
  type: "text"
87
87
  }, null, 8, ["modelValue", "label"]),
88
- t("div", K, [
89
- s(g, {
88
+ t("div", O, [
89
+ s(m, {
90
90
  modelValue: a.value,
91
- "onUpdate:modelValue": o[2] || (o[2] = (l) => a.value = l),
91
+ "onUpdate:modelValue": o[2] || (o[2] = (n) => a.value = n),
92
92
  label: e.$t("generate-mdp.password"),
93
93
  readonly: !0,
94
94
  class: "password",
95
95
  type: "text"
96
96
  }, null, 8, ["modelValue", "label"]),
97
- t("div", Y, [
98
- t("p", O, [
99
- t("span", W, n(e.$t("generate-mdp.password")) + " ", 1),
100
- c(n(j.value), 1)
97
+ t("div", W, [
98
+ t("p", X, [
99
+ t("span", ee, i(e.$t("generate-mdp.password")) + " ", 1),
100
+ g(i(j.value), 1)
101
101
  ]),
102
102
  t("div", {
103
103
  class: f([{ "filled-strength": a.value !== "" }, "password-strength__step"]),
@@ -112,48 +112,48 @@ const D = {}, T = {}, A = {
112
112
  "aria-hidden": "true"
113
113
  }, null, 2)
114
114
  ]),
115
- s(x, {
115
+ s(_, {
116
116
  title: e.$t("generate-mdp.generatePassword"),
117
117
  variant: "primary-bis",
118
118
  onClick: M
119
119
  }, {
120
120
  default: u(() => [
121
121
  t("img", {
122
- src: w(S),
122
+ src: w(Q),
123
123
  alt: ""
124
- }, null, 8, X)
124
+ }, null, 8, te)
125
125
  ]),
126
126
  _: 1
127
127
  }, 8, ["title"])
128
128
  ]),
129
- s(x, {
129
+ s(_, {
130
130
  class: "send",
131
131
  onClick: y,
132
132
  "is-disabled": !a.value
133
133
  }, {
134
134
  default: u(() => [
135
- c(n(e.$t("generate-mdp.save")), 1)
135
+ g(i(e.$t("generate-mdp.save")), 1)
136
136
  ]),
137
137
  _: 1
138
138
  }, 8, ["is-disabled"]),
139
139
  s(F, {
140
140
  ref: "success-modal",
141
141
  content: e.$t("generate-mdp.feedback.content"),
142
- show: i.value,
142
+ show: p.value,
143
143
  loop: !1,
144
144
  title: e.$t("generate-mdp.feedback.title")
145
145
  }, null, 8, ["content", "show", "title"])
146
146
  ])
147
147
  ]));
148
148
  }
149
- }), te = "*{--text-blue: #122647;--background-blue: #253858;font-family:Nunito,Roboto,sans-serif;font-size:14px;box-sizing:border-box}h1,h2,h3,h4,h5,h6{color:var(--text-blue);font-family:Nunito,sans-serif}h2{color:var(--text-blue);font-size:20px}p,a,span,li{color:var(--text-blue);font-family:Roboto,sans-serif}button{border-radius:8px;background:var(--background-blue);font-weight:700;font-size:16px}button:disabled{background:#c8cfd9}input{border-radius:10px;border:#cdd1d9;background:#f4f5f7}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,dialog{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}*{color:#253858}", ae = ".wrapper[data-v-a25e45eb]{padding:25px;border-radius:14px;position:relative;background:#fff;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset}[data-v-a25e45eb] label{margin-top:16px}.title[data-v-a25e45eb]{display:flex;align-items:center;gap:8px;font-size:1.25rem;font-weight:700}.password-field[data-v-a25e45eb]{display:grid;grid-template-columns:1fr 1fr 45px;gap:0 16px}.password-field .password-strength[data-v-a25e45eb]{grid-column:2/span 2;justify-self:end;display:flex;align-items:center;gap:8px}.password-field .password-strength__step[data-v-a25e45eb]{width:40px;height:5px;border-radius:5px;background:#c8cfd9}.password-field .password-strength__strengthness[data-v-a25e45eb]{color:#5e6c84;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400}.password-field .password-strength .filled-strength[data-v-a25e45eb]{background:#54c590}.password-field[data-v-a25e45eb] input{grid-column:1/span 2;grid-row:2}.password-field button[data-v-a25e45eb]{height:45px;width:45px;justify-content:center;display:flex}.send[data-v-a25e45eb]{display:block;margin:16px auto 0}@media screen and (max-width:576px){.password-field[data-v-a25e45eb]{display:grid;grid-template-columns:1fr 1fr 45px;grid-column:unset}.password-field[data-v-a25e45eb] .password{grid-row:unset}.password-field .password-strength[data-v-a25e45eb]{grid-column:unset;grid-row:3/span 2;justify-self:start;margin-top:8px}}", se = /* @__PURE__ */ z(ee, [["styles", [te, ae]], ["__scopeId", "data-v-a25e45eb"]]);
150
- m.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/en.json": D, "./locales/es.json": T, "./locales/fr.json": A }));
151
- const _ = N(se, {
152
- configureApp(r) {
153
- m.changeLanguage(document?.documentElement?.lang || navigator.language), r.use(m);
149
+ }), se = "*{--text-blue: #122647;--background-blue: #253858;font-family:Nunito,Roboto,sans-serif;font-size:14px;box-sizing:border-box}h1,h2,h3,h4,h5,h6{color:var(--text-blue);font-family:Nunito,sans-serif}h2{color:var(--text-blue);font-size:20px}p,a,span,li{color:var(--text-blue);font-family:Roboto,sans-serif}button{border-radius:8px;background:var(--background-blue);font-weight:700;font-size:16px}button:disabled{background:#c8cfd9}input{border-radius:10px;border:#cdd1d9;background:#f4f5f7}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,dialog{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}*{color:#253858}", oe = ".wrapper[data-v-774c3724]{padding:25px;border-radius:14px;position:relative;background:#fff;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset}[data-v-774c3724] label{margin-top:16px}.title[data-v-774c3724]{display:flex;align-items:center;gap:8px;font-size:1.25rem;font-weight:700}.password-field[data-v-774c3724]{display:grid;grid-template-columns:1fr 1fr 45px;gap:0 16px}.password-field .password-strength[data-v-774c3724]{grid-column:2/span 2;justify-self:end;display:flex;align-items:center;gap:8px}.password-field .password-strength__step[data-v-774c3724]{width:40px;height:5px;border-radius:5px;background:#c8cfd9}.password-field .password-strength__strengthness[data-v-774c3724]{color:#5e6c84;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400}.password-field .password-strength .filled-strength[data-v-774c3724]{background:#54c590}.password-field[data-v-774c3724] input{grid-column:1/span 2;grid-row:2}.password-field button[data-v-774c3724]{height:45px;width:45px;justify-content:center;display:flex}.send[data-v-774c3724]{display:block;margin:16px auto 0}@media screen and (max-width:576px){.password-field[data-v-774c3724]{display:grid;grid-template-columns:1fr 1fr 45px;grid-column:unset}.password-field[data-v-774c3724] .password{grid-row:unset}.password-field .password-strength[data-v-774c3724]{grid-column:unset;grid-row:3/span 2;justify-self:start;margin-top:8px}}", le = /* @__PURE__ */ z(ae, [["styles", [se, oe]], ["__scopeId", "data-v-774c3724"]]);
150
+ h.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": q, "./locales/en.json": D, "./locales/es.json": A, "./locales/fr.json": J, "./locales/it.json": S }));
151
+ const x = N(le, {
152
+ configureApp(l) {
153
+ h.changeLanguage(document?.documentElement?.lang || navigator.language), l.use(h);
154
154
  }
155
155
  });
156
- _.prototype.normalizeProps = (r) => ({
157
- titleLevel: q(r.titleLevel)
156
+ x.prototype.normalizeProps = (l) => ({
157
+ titleLevel: T(l.titleLevel)
158
158
  });
159
- window.customElements.define("generate-mdp", _);
159
+ window.customElements.define("generate-mdp", x);
@@ -1,7 +1,7 @@
1
- import { n as t } from "../image-quiz.ce-BaKLPvSS.js";
2
- import "../_plugin-vue_export-helper-DJlRxzRH.js";
1
+ import { n as t } from "../image-quiz.ce-DGVVVaQN.js";
2
+ import "../_plugin-vue_export-helper-CD1RUA2y.js";
3
3
  import "../normalize-props-DH0oPBss.js";
4
- import "../i18n-lite-X2ADNonj.js";
4
+ import "../i18n-lite-WQsHAHqG.js";
5
5
  export {
6
6
  t as normalizeImageQuizProps
7
7
  };
@@ -1,6 +1,6 @@
1
- import { I as g, _ as f, a as z, b as v, c as w, d, e as p, f as b, g as j, n as A } from "../image-quiz.ce-BaKLPvSS.js";
2
- import { a as q, r as E, w as h, o as l, c as y, e as I, f as k, m as B, F as Q, d as C } from "../_plugin-vue_export-helper-DJlRxzRH.js";
3
- import { i as n } from "../i18n-lite-X2ADNonj.js";
1
+ import { I as g, _ as f, a as z, b as v, c as w, d, e as p, f as b, g as j, n as A } from "../image-quiz.ce-DGVVVaQN.js";
2
+ import { b as q, r as E, w as h, o as l, c as y, e as I, f as k, m as B, F as Q, d as C } from "../_plugin-vue_export-helper-CD1RUA2y.js";
3
+ import { i as n } from "../i18n-lite-WQsHAHqG.js";
4
4
  const F = /* @__PURE__ */ q({
5
5
  __name: "ImageQuizzes.ce",
6
6
  props: {
@@ -1,6 +1,6 @@
1
- import { a as c, o as t, c as s, b as e, x as n, F as r, e as m, D as i, _ as p, d as g } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
- import { L as l } from "../LLMMessage.ce-DBorHEa1.js";
3
- import { p as u } from "../shadow-dom-Dh5hLXcx.js";
1
+ import { b as c, o as t, c as s, a as e, x as n, F as r, e as m, C as i, _ as p, d as g } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
+ import { L as l } from "../LLMMessage.ce-y0WmEj7m.js";
3
+ import { p as u } from "../shadow-dom-DSLDIcsa.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
@@ -1,6 +1,6 @@
1
- import { a as c, L as m, M as i, o as e, c as t, F as p, e as d, f, _ as g, d as u } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
- import { L as h } from "../LLMMessage.ce-DBorHEa1.js";
3
- import { p as _ } from "../shadow-dom-Dh5hLXcx.js";
1
+ import { b as c, L as m, M as i, o as e, c as t, F as p, e as d, f, _ as g, d as u } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
+ import { L as h } from "../LLMMessage.ce-y0WmEj7m.js";
3
+ import { p as _ } from "../shadow-dom-DSLDIcsa.js";
4
4
  const x = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
@@ -18,12 +18,12 @@ const x = {
18
18
  }
19
19
  return i(async () => {
20
20
  a.messages, r();
21
- }), (b, w) => (e(), t("div", x, [
21
+ }), (y, w) => (e(), t("div", x, [
22
22
  (e(!0), t(p, null, d(s.messages, (l, n) => (e(), f(h, {
23
23
  key: n,
24
24
  message: l
25
25
  }, null, 8, ["message"]))), 128))
26
26
  ]));
27
27
  }
28
- }), v = "*{box-sizing:border-box}:host{height:100%;overflow:auto;scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){:host{scroll-behavior:auto}}.llm-messages{display:flex;flex-direction:column;gap:29px;padding:24px}", y = /* @__PURE__ */ g(L, [["styles", [v]]]);
29
- window.customElements.define("llm-messages", u(y));
28
+ }), b = "*{box-sizing:border-box}:host{height:100%;overflow:auto;scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){:host{scroll-behavior:auto}}.llm-messages{display:flex;flex-direction:column;gap:29px;padding:24px}", v = /* @__PURE__ */ g(L, [["styles", [b]]]);
29
+ window.customElements.define("llm-messages", u(v));
@@ -1,7 +1,7 @@
1
- import { a as h, r as c, K as y, o as d, c as m, D as w, b as a, A as k, F as b, e as L, x as S, _ as C, d as P } from "../_plugin-vue_export-helper-DJlRxzRH.js";
1
+ import { b as h, r as c, K as y, o as d, c as m, C as w, a, E as k, F as b, e as C, x as L, _ as S, d as P } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
2
  import { b as N } from "../normalize-props-DH0oPBss.js";
3
3
  import "./llm-messages.ce.js.js";
4
- const M = { class: "prompt-select" }, A = { class: "prompt-select__options" }, B = ["disabled", "onClick"], E = /* @__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 },
@@ -48,23 +48,23 @@ const M = { class: "prompt-select" }, A = { class: "prompt-select__options" }, B
48
48
  const p = y("llm-messages");
49
49
  return d(), m(b, null, [
50
50
  w(p, { messages: s.value }, null, 8, ["messages"]),
51
- a("div", M, [
51
+ a("div", E, [
52
52
  t[0] || (t[0] = a("p", { class: "prompt-select__label" }, [
53
53
  k(" Sélectionner un des prompts "),
54
54
  a("span", { class: "sr-only" }, "  une fois sélectionnés, les prompts ne sont plus disponibles. ")
55
55
  ], -1)),
56
- a("div", A, [
57
- (d(!0), m(b, null, L(u.value, (n, i) => (d(), m("button", {
56
+ a("div", M, [
57
+ (d(!0), m(b, null, C(u.value, (n, i) => (d(), m("button", {
58
58
  key: i,
59
59
  disabled: n.disabled || l.value,
60
60
  onClick: (f) => v(n)
61
- }, S(n.prompt), 9, B))), 128))
61
+ }, L(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(E, [["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__ */ S(V, [["styles", [z]]]), _ = P(A);
68
68
  _.prototype.normalizeProps = (r) => ({
69
69
  ...r,
70
70
  speed: N(r.speed)