@1024pix/epreuves-components 2.9.0 → 4.0.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 (56) hide show
  1. package/dist/Button.ce-CTKrSDrC.js +27 -0
  2. package/dist/{ButtonTooltip.ce-CIo_7tm0.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-C2TfFGJP.js → Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js} +5 -5
  4. package/dist/{LLMMessage.ce-y0pOYUCI.js → LLMMessage.ce-Bdmf0R1g.js} +7 -7
  5. package/dist/{Loading.ce-Cxcx64IX.js → Loading.ce-Bh7-h48F.js} +1 -1
  6. package/dist/{NavigationButton.ce-DpzmC2Dd.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
  7. package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
  8. package/dist/Popin.ce-DUQ7-GMT.js +197 -0
  9. package/dist/{Retry-BYnFnneH.js → Retry-BZf7NJz9.js} +1 -1
  10. package/dist/Stepper.ce-B1yDelzC.js +27 -0
  11. package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js} +29 -28
  12. package/dist/components/analyse-mails-phishing.ce.js.js +99 -98
  13. package/dist/components/calcul-impact.ce.js.js +9 -9
  14. package/dist/components/capacity-calculation.ce.js.js +28 -28
  15. package/dist/components/clickable-image.ce.js.js +11 -11
  16. package/dist/components/complete-phrase.ce.js.js +7 -7
  17. package/dist/components/flip-cards.ce.js.js +5 -5
  18. package/dist/components/image-quiz.ce.js.js +4 -4
  19. package/dist/components/image-quizzes.ce.js.js +3 -3
  20. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  21. package/dist/components/llm-messages.ce.js.js +3 -3
  22. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  23. package/dist/components/mdp-classement.ce.js.js +29 -29
  24. package/dist/components/message-conversation.ce.js.js +18 -18
  25. package/dist/components/mobile-shell.ce.js.js +1 -1
  26. package/dist/components/phishing-message.ce.js.js +27 -27
  27. package/dist/components/phishing-notification.ce.js.js +23 -23
  28. package/dist/components/pix-anonymisation.ce.js.js +83 -87
  29. package/dist/components/pix-article.ce.js.js +19 -19
  30. package/dist/components/pix-carousel.ce.js.js +13 -13
  31. package/dist/components/pix-combinaisons.ce.js.js +238 -0
  32. package/dist/components/pix-cursor.ce.js.js +19 -19
  33. package/dist/components/pix-mail-message.ce.js.js +11 -0
  34. package/dist/components/proteger-mail-spam.ce.js.js +131 -0
  35. package/dist/components/qcm-deepfake.ce.js.js +21 -21
  36. package/dist/components/quiz-stepper.ce.js.js +8 -7
  37. package/dist/components/select-conversation.ce.js.js +15 -15
  38. package/dist/components/template-mail.ce.js.js +49 -151
  39. package/dist/components/test-top-mdp.ce.js.js +14 -14
  40. package/dist/components/trouver-mdp-rs.ce.js.js +201 -239
  41. package/dist/{i18n-BJ6FRipD.js → i18n-ekiZvzf6.js} +9 -9
  42. package/dist/{i18n-lite-Dn1Iqj1Y.js → i18n-lite-t2jNOu0C.js} +8 -8
  43. package/dist/{image-quiz.ce-DvpG9mbT.js → image-quiz.ce-DqalWHKw.js} +11 -11
  44. package/dist/index-BpqxFmwz.js +10 -0
  45. package/dist/index.js +4 -1
  46. package/dist/metadata.js +31 -19
  47. package/dist/nl-Bonww6Q2.js +13 -0
  48. package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
  49. package/dist/props.examples.js +130 -0
  50. package/dist/schema.js +108 -72
  51. package/dist/{shadow-dom-Db7VMkC0.js → shadow-dom-C3AZuSZe.js} +1 -1
  52. package/dist/temporal.utils-7Uvm62ss.js +10926 -0
  53. package/package.json +3 -2
  54. package/dist/Button.ce-CkwcReY5.js +0 -18
  55. package/dist/index-BCutQvmP.js +0 -34
  56. package/dist/temporal.utils-CotrC6ao.js +0 -14456
@@ -1,140 +1,136 @@
1
- import { d as E, r as f, j as q, y as l, c as n, o as c, a, t as d, F as m, b as g, A as k, n as _, l as V, E as F, z as T, P as D, K as w, H as S, B as y, e as I, _ as M, f as U } from "../_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { a as G, i as $, b as H } from "../i18n-BJ6FRipD.js";
3
- import { u as K } from "../normalize-props-DtfVI0Xg.js";
4
- import { B as z } from "../Button.ce-CkwcReY5.js";
5
- const O = {}, J = {}, Q = {}, W = {}, X = {}, Y = {
1
+ import { b as E, r as f, j as q, g as p, c as s, o, a as e, t as n, F as m, e as g, s as k, n as _, E as V, A as F, P as T, K as w, H as S, B as y, f as D, _ as I, d as U } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { a as G, i as $, b as H } from "../i18n-ekiZvzf6.js";
3
+ import { b as K } from "../normalize-props-DH0oPBss.js";
4
+ import { B as z } from "../Button.ce-CTKrSDrC.js";
5
+ const M = {}, O = {}, J = {}, Q = {}, W = {}, X = {
6
6
  "pix-anonymisation": { title: "Exercice d'anonymisation", instruction: 'Cliquez sur les morceaux de phrase contenant des données sensibles. Un fois que toutes les données sensibles sont mise en couleur, cliquez sur "Suivant" pour vérifier votre réponse.', prompt: { title: "Prompt" }, rephrase: { title: "Reformulation" }, buttons: { checkNow: "Suivant", displayRephrasing: "Suivant", nextPrompt: "Suivant" }, correction: "élements qui doivent être anonymisés:" }
7
- }, Z = {}, aa = {}, ta = {
7
+ }, Y = {}, Z = {}, ee = {
8
8
  ref: "prompt-container",
9
9
  tabindex: "-1"
10
- }, ea = ["aria-level"], da = { class: "instruction" }, ca = { class: "stepper-container" }, na = { class: "prompt-card" }, oa = ["aria-level"], sa = { class: "prompt-card-content" }, ra = ["for"], ba = ["id", "value"], ia = { class: "prompt-card-content-part" }, la = { class: "prompt-card" }, pa = ["aria-level"], va = { class: "prompt-card-content" }, ua = { class: "sr-only" }, ma = { class: "sr-only" }, ga = {
10
+ }, ae = ["aria-level"], te = { class: "instruction" }, ne = { class: "stepper-container" }, oe = { key: 0 }, se = { class: "prompt-card" }, de = ["aria-level"], re = { class: "prompt-card-content" }, ie = ["for"], le = ["id", "value"], be = { class: "prompt-card-content-part" }, pe = { class: "prompt-card" }, ce = ["aria-level"], ve = { class: "prompt-card-content" }, ue = { class: "sr-only" }, me = { class: "sr-only" }, ge = {
11
11
  key: 0,
12
12
  class: "prompt-card rephrase"
13
- }, ha = ["aria-level"], fa = { class: "prompt-card-content" }, _a = {
13
+ }, he = ["aria-level"], fe = { class: "prompt-card-content" }, _e = {
14
14
  key: 1,
15
15
  class: "feedback"
16
- }, ya = /* @__PURE__ */ E({
16
+ }, ye = /* @__PURE__ */ E({
17
17
  __name: "PixAnonymisation.ce",
18
18
  props: {
19
19
  titleLevel: { default: 2, type: Number },
20
20
  steps: { type: Array }
21
21
  },
22
- setup(e, { expose: j }) {
23
- const r = f(0), b = f([]), i = f(1), L = q("prompt-container"), p = l(() => e.steps[r.value]), N = l(() => i.value === 3 && r.value + 1 === e.steps.length), v = l(() => i.value === 3), P = l(() => p.value.fullSentence.map(({ content: t }) => t)), B = l(() => p.value.fullSentence.map(({ content: t, isAnonymizable: u }) => u ? { content: t, color: "green" } : {
24
- content: t,
25
- color: b.value.includes(t) ? "red" : "neutral"
26
- })), R = l(() => p.value.fullSentence.filter(({ isAnonymizable: t }) => t).map(({ content: t }) => t));
22
+ setup(t, { expose: j }) {
23
+ const i = f(0), b = f([]), l = f(1), L = q("prompt-container"), c = p(() => t.steps[i.value]), N = p(() => l.value === 3 && i.value + 1 === t.steps.length), v = p(() => l.value === 3), P = p(() => c.value.fullSentence.map(({ content: a }) => a)), B = p(() => c.value.fullSentence.map(({ content: a, isAnonymizable: u }) => u ? { content: a, color: "green" } : {
24
+ content: a,
25
+ color: b.value.includes(a) ? "red" : "neutral"
26
+ })), R = p(() => c.value.fullSentence.filter(({ isAnonymizable: a }) => a).map(({ content: a }) => a));
27
27
  function A() {
28
- i.value = 1, r.value = 0, b.value = [];
28
+ l.value = 1, i.value = 0, b.value = [];
29
29
  }
30
30
  function x() {
31
- if (b.value.length !== 0) {
32
- if (v.value) {
33
- i.value = 1, r.value++, b.value = [];
34
- return;
35
- }
36
- i.value++, L.value.focus();
31
+ if (v.value) {
32
+ l.value = 1, i.value++, b.value = [];
33
+ return;
37
34
  }
35
+ l.value++, L.value.focus();
38
36
  }
39
37
  return j({
40
38
  reset: A
41
- }), (t, u) => (c(), n("div", ta, [
42
- a("header", null, [
43
- a("div", {
39
+ }), (a, u) => (o(), s("div", ee, [
40
+ e("header", null, [
41
+ e("div", {
44
42
  role: "heading",
45
43
  class: "heading",
46
- "aria-level": e.titleLevel
47
- }, d(t.$t("pix-anonymisation.title")), 9, ea),
48
- a("p", da, d(t.$t("pix-anonymisation.instruction")), 1),
49
- a("div", ca, [
50
- (c(!0), n(m, null, g(e.steps, (o, s) => (c(), n("div", {
51
- key: s,
52
- class: _(["stepper-background", { "is-active": r.value === s, "is-finished": s < r.value }]),
53
- style: k({ "--step-width": `${100 / e.steps.length}%` })
44
+ "aria-level": t.titleLevel
45
+ }, n(a.$t("pix-anonymisation.title")), 9, ae),
46
+ e("p", te, n(a.$t("pix-anonymisation.instruction")), 1),
47
+ e("div", ne, [
48
+ (o(!0), s(m, null, g(t.steps, (d, r) => (o(), s("div", {
49
+ key: r,
50
+ class: _(["stepper-background", { "is-active": i.value === r, "is-finished": r < i.value }]),
51
+ style: k({ "--step-width": `${100 / t.steps.length}%` })
54
52
  }, [
55
- a("div", {
53
+ e("div", {
56
54
  class: "progress-bar",
57
- style: k({ "--progress-bar-width": `${100 / e.steps.length * i.value}%` })
55
+ style: k({ "--progress-bar-width": `${100 / t.steps.length * l.value}%` })
58
56
  }, null, 4)
59
57
  ], 6))), 128)),
60
- a("span", null, d(r.value + 1) + " / " + d(e.steps.length), 1)
58
+ e("span", null, n(i.value + 1) + " / " + n(t.steps.length), 1)
61
59
  ])
62
60
  ]),
63
- a("main", null, [
64
- i.value === 1 ? (c(), n("form", {
65
- key: 0,
66
- onSubmit: V(x, ["prevent"])
67
- }, [
68
- a("div", na, [
69
- a("div", {
61
+ e("main", null, [
62
+ l.value === 1 ? (o(), s("form", oe, [
63
+ e("div", se, [
64
+ e("div", {
70
65
  role: "heading",
71
66
  class: "prompt-card__heading",
72
- "aria-level": e.titleLevel + 1
73
- }, d(t.$t("pix-anonymisation.prompt.title")), 9, oa),
74
- a("div", sa, [
75
- (c(!0), n(m, null, g(P.value, (o, s) => (c(), n("label", {
76
- for: `${o}-${s}`,
77
- key: o
67
+ "aria-level": t.titleLevel + 1
68
+ }, n(a.$t("pix-anonymisation.prompt.title")), 9, de),
69
+ e("div", re, [
70
+ (o(!0), s(m, null, g(P.value, (d, r) => (o(), s("label", {
71
+ for: `${d}-${r}`,
72
+ key: d
78
73
  }, [
79
- T(a("input", {
80
- id: `${o}-${s}`,
81
- value: o,
74
+ F(e("input", {
75
+ id: `${d}-${r}`,
76
+ value: d,
82
77
  class: "sr-only",
83
78
  type: "checkbox",
84
79
  "onUpdate:modelValue": u[0] || (u[0] = (h) => b.value = h)
85
- }, null, 8, ba), [
86
- [D, b.value]
80
+ }, null, 8, le), [
81
+ [T, b.value]
87
82
  ]),
88
- a("span", ia, d(o), 1)
89
- ], 8, ra))), 128))
83
+ e("span", be, n(d), 1)
84
+ ], 8, ie))), 128))
90
85
  ])
91
86
  ]),
92
- F(z, {
93
- "is-disabled": b.value.length === 0
87
+ V(z, {
88
+ "is-disabled": b.value.length === 0,
89
+ onClick: x
94
90
  }, {
95
91
  default: w(() => [
96
- S(d(t.$t("pix-anonymisation.buttons.checkNow")), 1)
92
+ S(n(a.$t("pix-anonymisation.buttons.checkNow")), 1)
97
93
  ]),
98
94
  _: 1
99
95
  }, 8, ["is-disabled"])
100
- ], 32)) : (c(), n("div", {
96
+ ])) : (o(), s("div", {
101
97
  key: 1,
102
98
  class: _(["results", { "prompt-and-rephrase": v.value }])
103
99
  }, [
104
- a("div", la, [
105
- a("div", {
100
+ e("div", pe, [
101
+ e("div", {
106
102
  role: "heading",
107
103
  class: "prompt-card__heading",
108
- "aria-level": e.titleLevel + 1
109
- }, d(t.$t("pix-anonymisation.prompt.title")), 9, pa),
110
- a("p", va, [
111
- (c(!0), n(m, null, g(B.value, ({ content: o, color: s }, h) => (c(), n("span", { key: h }, [
112
- a("span", {
113
- class: _(["prompt-card-content-part", s])
114
- }, d(o), 3)
104
+ "aria-level": t.titleLevel + 1
105
+ }, n(a.$t("pix-anonymisation.prompt.title")), 9, ce),
106
+ e("p", ve, [
107
+ (o(!0), s(m, null, g(B.value, ({ content: d, color: r }, h) => (o(), s("span", { key: h }, [
108
+ e("span", {
109
+ class: _(["prompt-card-content-part", r])
110
+ }, n(d), 3)
115
111
  ]))), 128))
116
112
  ]),
117
- a("p", ua, d(t.$t("pix-anonymisation.correction")), 1),
118
- a("ul", ma, [
119
- (c(!0), n(m, null, g(R.value, (o) => (c(), n("li", { key: o }, d(o), 1))), 128))
113
+ e("p", ue, n(a.$t("pix-anonymisation.correction")), 1),
114
+ e("ul", me, [
115
+ (o(!0), s(m, null, g(R.value, (d) => (o(), s("li", { key: d }, n(d), 1))), 128))
120
116
  ])
121
117
  ]),
122
- v.value ? (c(), n("div", ga, [
123
- a("div", {
118
+ v.value ? (o(), s("div", ge, [
119
+ e("div", {
124
120
  role: "heading",
125
121
  class: "prompt-card__heading",
126
- "aria-level": e.titleLevel + 1
127
- }, d(t.$t("pix-anonymisation.rephrase.title")), 9, ha),
128
- a("p", fa, d(p.value.rephrase), 1)
122
+ "aria-level": t.titleLevel + 1
123
+ }, n(a.$t("pix-anonymisation.rephrase.title")), 9, he),
124
+ e("p", fe, n(c.value.rephrase), 1)
129
125
  ])) : y("", !0),
130
- v.value ? (c(), n("p", _a, d(p.value.feedback), 1)) : y("", !0),
131
- N.value ? y("", !0) : (c(), I(z, {
126
+ v.value ? (o(), s("p", _e, n(c.value.feedback), 1)) : y("", !0),
127
+ N.value ? y("", !0) : (o(), D(z, {
132
128
  key: 2,
133
129
  onClick: x,
134
130
  class: "feedback-button"
135
131
  }, {
136
132
  default: w(() => [
137
- S(d(v.value ? t.$t("pix-anonymisation.buttons.nextPrompt") : t.$t("pix-anonymisation.buttons.displayRephrasing")), 1)
133
+ S(n(v.value ? a.$t("pix-anonymisation.buttons.nextPrompt") : a.$t("pix-anonymisation.buttons.displayRephrasing")), 1)
138
134
  ]),
139
135
  _: 1
140
136
  }))
@@ -142,15 +138,15 @@ const O = {}, J = {}, Q = {}, W = {}, X = {}, Y = {
142
138
  ])
143
139
  ], 512));
144
140
  }
145
- }), xa = "html[data-v-bb8adc2c],body[data-v-bb8adc2c],div[data-v-bb8adc2c],span[data-v-bb8adc2c],applet[data-v-bb8adc2c],object[data-v-bb8adc2c],iframe[data-v-bb8adc2c],h1[data-v-bb8adc2c],h2[data-v-bb8adc2c],h3[data-v-bb8adc2c],h4[data-v-bb8adc2c],h5[data-v-bb8adc2c],h6[data-v-bb8adc2c],p[data-v-bb8adc2c],blockquote[data-v-bb8adc2c],pre[data-v-bb8adc2c],a[data-v-bb8adc2c],abbr[data-v-bb8adc2c],acronym[data-v-bb8adc2c],address[data-v-bb8adc2c],big[data-v-bb8adc2c],cite[data-v-bb8adc2c],code[data-v-bb8adc2c],del[data-v-bb8adc2c],dfn[data-v-bb8adc2c],em[data-v-bb8adc2c],img[data-v-bb8adc2c],ins[data-v-bb8adc2c],kbd[data-v-bb8adc2c],q[data-v-bb8adc2c],s[data-v-bb8adc2c],samp[data-v-bb8adc2c],small[data-v-bb8adc2c],strike[data-v-bb8adc2c],strong[data-v-bb8adc2c],sub[data-v-bb8adc2c],sup[data-v-bb8adc2c],tt[data-v-bb8adc2c],var[data-v-bb8adc2c],b[data-v-bb8adc2c],u[data-v-bb8adc2c],i[data-v-bb8adc2c],center[data-v-bb8adc2c],dl[data-v-bb8adc2c],dt[data-v-bb8adc2c],dd[data-v-bb8adc2c],ol[data-v-bb8adc2c],ul[data-v-bb8adc2c],li[data-v-bb8adc2c],fieldset[data-v-bb8adc2c],form[data-v-bb8adc2c],label[data-v-bb8adc2c],legend[data-v-bb8adc2c],table[data-v-bb8adc2c],caption[data-v-bb8adc2c],tbody[data-v-bb8adc2c],tfoot[data-v-bb8adc2c],thead[data-v-bb8adc2c],tr[data-v-bb8adc2c],th[data-v-bb8adc2c],td[data-v-bb8adc2c],article[data-v-bb8adc2c],aside[data-v-bb8adc2c],canvas[data-v-bb8adc2c],details[data-v-bb8adc2c],embed[data-v-bb8adc2c],figure[data-v-bb8adc2c],figcaption[data-v-bb8adc2c],footer[data-v-bb8adc2c],header[data-v-bb8adc2c],hgroup[data-v-bb8adc2c],menu[data-v-bb8adc2c],nav[data-v-bb8adc2c],output[data-v-bb8adc2c],ruby[data-v-bb8adc2c],section[data-v-bb8adc2c],summary[data-v-bb8adc2c],time[data-v-bb8adc2c],mark[data-v-bb8adc2c],audio[data-v-bb8adc2c],video[data-v-bb8adc2c]{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article[data-v-bb8adc2c],aside[data-v-bb8adc2c],details[data-v-bb8adc2c],figcaption[data-v-bb8adc2c],figure[data-v-bb8adc2c],footer[data-v-bb8adc2c],header[data-v-bb8adc2c],hgroup[data-v-bb8adc2c],menu[data-v-bb8adc2c],nav[data-v-bb8adc2c],section[data-v-bb8adc2c]{display:block}body[data-v-bb8adc2c]{line-height:1}ol[data-v-bb8adc2c],ul[data-v-bb8adc2c]{list-style:none}table[data-v-bb8adc2c]{border-collapse:collapse;border-spacing:0}[data-v-bb8adc2c]{color:#122647;font-style:normal;box-sizing:border-box}p[data-v-bb8adc2c],label[data-v-bb8adc2c],button[data-v-bb8adc2c]{font-family:Roboto,sans-serif;font-size:.875rem;font-weight:400}form[data-v-bb8adc2c],.results[data-v-bb8adc2c]{display:flex;flex-direction:column;gap:16px}button[data-v-bb8adc2c]{font-weight:700;margin:0 auto}.heading[data-v-bb8adc2c]{font-family:Nunito,Roboto,sans-serif;text-align:center;font-size:1.25rem;font-weight:700}.stepper-container[data-v-bb8adc2c]{display:flex;gap:6px;margin-bottom:16px;align-items:center}.stepper-container span[data-v-bb8adc2c]{font-size:.875rem;white-space:nowrap}.stepper-background[data-v-bb8adc2c]{background-color:#e8eaed;height:8px;flex:1 1 var(--step-width);border-radius:64px}.stepper-background.is-active .progress-bar[data-v-bb8adc2c]{background:#613fdd;height:8px;border-radius:64px;width:var(--progress-bar-width)}.stepper-background.is-finished[data-v-bb8adc2c]{background:#613fdd;height:8px;border-radius:64px;width:100%}.instruction[data-v-bb8adc2c]{text-align:center}.prompt-card[data-v-bb8adc2c]{border-radius:16px;border:1px solid #cdd1d9;padding:16px}.prompt-card__heading[data-v-bb8adc2c]{font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;margin-bottom:8px}.prompt-card-content[data-v-bb8adc2c]{display:flex;flex-wrap:wrap;border-radius:8px;background:#f4f5f7;padding:16px;gap:4px}.prompt-card-content>span[data-v-bb8adc2c]{padding:2px}.prompt-card-content-part[data-v-bb8adc2c]{padding:1px 4px;border-radius:4px;border:1px solid #cdd1d9;margin-bottom:5px}.prompt-card-content-part.red[data-v-bb8adc2c]{border-color:transparent;background:#e4766f}.prompt-card-content-part.green[data-v-bb8adc2c]{border-color:transparent;background:#54c590}input:checked~.prompt-card-content-part[data-v-bb8adc2c]{background:#ffdc76;border-color:transparent}input:focus~.prompt-card-content-part[data-v-bb8adc2c]{outline:1px solid black}.prompt-and-rephrase[data-v-bb8adc2c]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.prompt-and-rephrase .feedback[data-v-bb8adc2c]{grid-column:1/span 2;border-radius:16px;background:#eaf1ff;padding:16px}.feedback-button[data-v-bb8adc2c]{grid-column:1/span 2}.sr-only[data-v-bb8adc2c]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}@media screen and (max-width:768px){.prompt-card[data-v-bb8adc2c]{grid-column:1/span 2;margin-top:8px}.prompt-card.rephrase[data-v-bb8adc2c]{margin-top:0}.feedback[data-v-bb8adc2c]{margin-block:8px}}", ka = /* @__PURE__ */ M(ya, [["styles", [xa]], ["__scopeId", "data-v-bb8adc2c"]]);
146
- G(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": O, "./locales/en.json": J, "./locales/es-419.json": Q, "./locales/es.json": W, "./locales/fr-BE.json": X, "./locales/fr.json": Y, "./locales/it.json": Z, "./locales/nl.json": aa })).catch((e) => console.error(e));
147
- const C = U(ka, {
148
- configureApp(e) {
149
- $.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(H, { i18next: $ });
141
+ }), xe = "html[data-v-0b04659e],body[data-v-0b04659e],div[data-v-0b04659e],span[data-v-0b04659e],applet[data-v-0b04659e],object[data-v-0b04659e],iframe[data-v-0b04659e],h1[data-v-0b04659e],h2[data-v-0b04659e],h3[data-v-0b04659e],h4[data-v-0b04659e],h5[data-v-0b04659e],h6[data-v-0b04659e],p[data-v-0b04659e],blockquote[data-v-0b04659e],pre[data-v-0b04659e],a[data-v-0b04659e],abbr[data-v-0b04659e],acronym[data-v-0b04659e],address[data-v-0b04659e],big[data-v-0b04659e],cite[data-v-0b04659e],code[data-v-0b04659e],del[data-v-0b04659e],dfn[data-v-0b04659e],em[data-v-0b04659e],img[data-v-0b04659e],ins[data-v-0b04659e],kbd[data-v-0b04659e],q[data-v-0b04659e],s[data-v-0b04659e],samp[data-v-0b04659e],small[data-v-0b04659e],strike[data-v-0b04659e],strong[data-v-0b04659e],sub[data-v-0b04659e],sup[data-v-0b04659e],tt[data-v-0b04659e],var[data-v-0b04659e],b[data-v-0b04659e],u[data-v-0b04659e],i[data-v-0b04659e],center[data-v-0b04659e],dl[data-v-0b04659e],dt[data-v-0b04659e],dd[data-v-0b04659e],ol[data-v-0b04659e],ul[data-v-0b04659e],li[data-v-0b04659e],fieldset[data-v-0b04659e],form[data-v-0b04659e],label[data-v-0b04659e],legend[data-v-0b04659e],table[data-v-0b04659e],caption[data-v-0b04659e],tbody[data-v-0b04659e],tfoot[data-v-0b04659e],thead[data-v-0b04659e],tr[data-v-0b04659e],th[data-v-0b04659e],td[data-v-0b04659e],article[data-v-0b04659e],aside[data-v-0b04659e],canvas[data-v-0b04659e],details[data-v-0b04659e],embed[data-v-0b04659e],figure[data-v-0b04659e],figcaption[data-v-0b04659e],footer[data-v-0b04659e],header[data-v-0b04659e],hgroup[data-v-0b04659e],menu[data-v-0b04659e],nav[data-v-0b04659e],output[data-v-0b04659e],ruby[data-v-0b04659e],section[data-v-0b04659e],summary[data-v-0b04659e],time[data-v-0b04659e],mark[data-v-0b04659e],audio[data-v-0b04659e],video[data-v-0b04659e]{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article[data-v-0b04659e],aside[data-v-0b04659e],details[data-v-0b04659e],figcaption[data-v-0b04659e],figure[data-v-0b04659e],footer[data-v-0b04659e],header[data-v-0b04659e],hgroup[data-v-0b04659e],menu[data-v-0b04659e],nav[data-v-0b04659e],section[data-v-0b04659e]{display:block}body[data-v-0b04659e]{line-height:1}ol[data-v-0b04659e],ul[data-v-0b04659e]{list-style:none}table[data-v-0b04659e]{border-collapse:collapse;border-spacing:0}[data-v-0b04659e]{color:#122647;font-style:normal;box-sizing:border-box}p[data-v-0b04659e],label[data-v-0b04659e],button[data-v-0b04659e]{font-family:Roboto,sans-serif;font-size:.875rem;font-weight:400}form[data-v-0b04659e],.results[data-v-0b04659e]{display:flex;flex-direction:column;gap:16px}button[data-v-0b04659e]{font-weight:700;margin:0 auto}.heading[data-v-0b04659e]{font-family:Nunito,Roboto,sans-serif;text-align:center;font-size:1.25rem;font-weight:700}.stepper-container[data-v-0b04659e]{display:flex;gap:6px;margin-bottom:16px;align-items:center}.stepper-container span[data-v-0b04659e]{font-size:.875rem;white-space:nowrap}.stepper-background[data-v-0b04659e]{background-color:#e8eaed;height:8px;flex:1 1 var(--step-width);border-radius:64px}.stepper-background.is-active .progress-bar[data-v-0b04659e]{background:#613fdd;height:8px;border-radius:64px;width:var(--progress-bar-width)}.stepper-background.is-finished[data-v-0b04659e]{background:#613fdd;height:8px;border-radius:64px;width:100%}.instruction[data-v-0b04659e]{text-align:center}.prompt-card[data-v-0b04659e]{border-radius:16px;border:1px solid #cdd1d9;padding:16px}.prompt-card__heading[data-v-0b04659e]{font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;margin-bottom:8px}.prompt-card-content[data-v-0b04659e]{display:flex;flex-wrap:wrap;border-radius:8px;background:#f4f5f7;padding:16px;gap:4px}.prompt-card-content>span[data-v-0b04659e]{padding:2px}.prompt-card-content-part[data-v-0b04659e]{padding:1px 4px;border-radius:4px;border:1px solid #cdd1d9;margin-bottom:5px}.prompt-card-content-part.red[data-v-0b04659e]{border-color:transparent;background:#e4766f}.prompt-card-content-part.green[data-v-0b04659e]{border-color:transparent;background:#54c590}input:checked~.prompt-card-content-part[data-v-0b04659e]{background:#ffdc76;border-color:transparent}input:focus~.prompt-card-content-part[data-v-0b04659e]{outline:1px solid black}.prompt-and-rephrase[data-v-0b04659e]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.prompt-and-rephrase .feedback[data-v-0b04659e]{grid-column:1/span 2;border-radius:16px;background:#eaf1ff;padding:16px}.feedback-button[data-v-0b04659e]{grid-column:1/span 2}.sr-only[data-v-0b04659e]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}@media screen and (max-width:768px){.prompt-card[data-v-0b04659e]{grid-column:1/span 2;margin-top:8px}.prompt-card.rephrase[data-v-0b04659e]{margin-top:0}.feedback[data-v-0b04659e]{margin-block:8px}}", ke = /* @__PURE__ */ I(ye, [["styles", [xe]], ["__scopeId", "data-v-0b04659e"]]);
142
+ G(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": M, "./locales/en.json": O, "./locales/es-419.json": J, "./locales/es.json": Q, "./locales/fr-BE.json": W, "./locales/fr.json": X, "./locales/it.json": Y, "./locales/nl.json": Z })).catch((t) => console.error(t));
143
+ const C = U(ke, {
144
+ configureApp(t) {
145
+ $.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(H, { i18next: $ });
150
146
  }
151
147
  });
152
- C.prototype.normalizeProps = (e) => ({
153
- ...e,
154
- titleLevel: K(e.titleLevel)
148
+ C.prototype.normalizeProps = (t) => ({
149
+ ...t,
150
+ titleLevel: K(t.titleLevel)
155
151
  });
156
152
  window.customElements.define("pix-anonymisation", C);
@@ -1,13 +1,13 @@
1
- import { d as u, y as d, c as a, o as l, a as t, t as i, F as o, b as m, _ as f, f as v } from "../_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { a as p, i as r, b as y } from "../i18n-BJ6FRipD.js";
3
- import { a as s, u as b } from "../normalize-props-DtfVI0Xg.js";
4
- const S = {}, x = {}, L = {}, j = {}, A = {}, H = {
1
+ import { b as d, g as u, c as n, o as l, a as t, t as i, F as o, e as m, _ as f, d as v } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { a as p, i as r, b } from "../i18n-ekiZvzf6.js";
3
+ import { a as s, b as y } from "../normalize-props-DH0oPBss.js";
4
+ const S = {}, x = {}, j = {}, A = {}, L = {}, H = {
5
5
  "pix-article": { byAuthor: "Par {{author}}" }
6
- }, E = {}, O = {}, P = ["titleLevel"], B = { class: "article__metadata" }, N = { class: "article__author" }, T = ["innerHTML"], k = /* @__PURE__ */ u({
6
+ }, T = {}, E = {}, O = ["aria-level"], P = { class: "article__metadata" }, B = { class: "article__author" }, N = ["innerHTML"], k = /* @__PURE__ */ d({
7
7
  __name: "PixArticle.ce",
8
8
  props: {
9
9
  titleLevel: { default: 2, type: Number },
10
- title: { type: String },
10
+ articleTitle: { type: String },
11
11
  author: { type: String },
12
12
  date: { type: String },
13
13
  paragraphs: { type: Array },
@@ -15,35 +15,35 @@ const S = {}, x = {}, L = {}, j = {}, A = {}, H = {
15
15
  colorOfHighlightSentence: { type: String }
16
16
  },
17
17
  setup(e) {
18
- const g = d(() => e.highlightedSentence ? e.paragraphs.map(
19
- (n) => n.replace("{{highlightedSentence}}", `<strong style="color: ${e.colorOfHighlightSentence};">${e.highlightedSentence}</strong>`)
18
+ const g = u(() => e.highlightedSentence ? e.paragraphs.map(
19
+ (a) => a.replace("{{highlightedSentence}}", `<strong style="color: ${e.colorOfHighlightSentence};">${e.highlightedSentence}</strong>`)
20
20
  ) : e.paragraphs);
21
- return (n, F) => (l(), a(o, null, [
21
+ return (a, F) => (l(), n(o, null, [
22
22
  t("div", {
23
23
  class: "article__title",
24
24
  role: "heading",
25
- titleLevel: e.titleLevel
26
- }, i(e.title), 9, P),
27
- t("p", B, [
28
- t("span", N, i(n.$t("pix-article.byAuthor", { author: e.author })), 1),
25
+ "aria-level": e.titleLevel
26
+ }, i(e.articleTitle), 9, O),
27
+ t("p", P, [
28
+ t("span", B, i(a.$t("pix-article.byAuthor", { author: e.author })), 1),
29
29
  t("time", null, i(e.date), 1)
30
30
  ]),
31
- (l(!0), a(o, null, m(g.value, (_, h) => (l(), a("p", {
31
+ (l(!0), n(o, null, m(g.value, (_, h) => (l(), n("p", {
32
32
  innerHTML: _,
33
33
  key: h
34
- }, null, 8, T))), 128))
34
+ }, null, 8, N))), 128))
35
35
  ], 64));
36
36
  }
37
- }), w = "[data-v-8f376e91]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-8f376e91]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-8f376e91]{font-style:italic}.article__author[data-v-8f376e91]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", C = /* @__PURE__ */ f(k, [["styles", [w]], ["__scopeId", "data-v-8f376e91"]]);
38
- p(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": S, "./locales/en.json": x, "./locales/es-419.json": L, "./locales/es.json": j, "./locales/fr-BE.json": A, "./locales/fr.json": H, "./locales/it.json": E, "./locales/nl.json": O })).catch((e) => console.error(e));
37
+ }), w = "[data-v-a4da82ef]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-a4da82ef]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-a4da82ef]{font-style:italic}.article__author[data-v-a4da82ef]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", C = /* @__PURE__ */ f(k, [["styles", [w]], ["__scopeId", "data-v-a4da82ef"]]);
38
+ p(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": S, "./locales/en.json": x, "./locales/es-419.json": j, "./locales/es.json": A, "./locales/fr-BE.json": L, "./locales/fr.json": H, "./locales/it.json": T, "./locales/nl.json": E })).catch((e) => console.error(e));
39
39
  const c = v(C, {
40
40
  configureApp(e) {
41
- r.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(y, { i18next: r });
41
+ r.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(b, { i18next: r });
42
42
  }
43
43
  });
44
44
  c.prototype.normalizeProps = (e) => ({
45
45
  ...e,
46
- titleLevel: b(e.titleLevel),
46
+ titleLevel: y(e.titleLevel),
47
47
  highlightedSentence: s(e.highlightedSentence),
48
48
  colorOfHighlightSentence: s(e.colorOfHighlightSentence)
49
49
  });
@@ -1,8 +1,8 @@
1
- import { v as W, q as Y, V as q, W as K, X as O, y as h, s as k, Y as N, Z as V, d as j, c as l, o, n as S, a as g, B, g as X, H as P, t as b, k as f, _ as C, r as T, j as J, E as y, A as D, h as Q, K as $, F as M, b as R, e as z, f as ee } from "../_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { a as ie, i as E, b as te } from "../i18n-BJ6FRipD.js";
3
- import { N as H } from "../NavigationButton.ce-DpzmC2Dd.js";
4
- import { B as I } from "../ButtonTooltip.ce-CIo_7tm0.js";
5
- import { a as ne, u as A, b as ae } from "../normalize-props-DtfVI0Xg.js";
1
+ import { y as W, x as Y, X as q, Y as K, Z as O, g as h, v as A, L as N, $ as V, b as j, c as l, o, n as S, a as g, B, q as X, H as P, t as b, k as f, _ as C, r as T, j as J, E as y, s as D, h as Q, K as $, F as M, e as R, f as z, d as ee } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { a as ie, i as E, b as te } from "../i18n-ekiZvzf6.js";
3
+ import { N as H } from "../NavigationButton.ce-CA1M8sgV.js";
4
+ import { B as I } from "../ButtonTooltip.ce-CtHo2Dwx.js";
5
+ import { a as ne, b as k, u as ae } from "../normalize-props-DH0oPBss.js";
6
6
  const se = {}, oe = {
7
7
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
8
8
  }, le = {}, re = {
@@ -36,7 +36,7 @@ function _(e) {
36
36
  }
37
37
  // @__NO_SIDE_EFFECTS__
38
38
  function he() {
39
- const e = k(!1), i = O();
39
+ const e = A(!1), i = O();
40
40
  return i && W(() => {
41
41
  e.value = !0;
42
42
  }, i), e;
@@ -77,7 +77,7 @@ function we(e, i = {
77
77
  const { window: s = G, box: c = "content-box" } = a, p = h(() => {
78
78
  var t;
79
79
  return (t = _(e)) === null || t === void 0 || (t = t.namespaceURI) === null || t === void 0 ? void 0 : t.includes("svg");
80
- }), r = k(i.width), d = k(i.height), { stop: x } = be(e, ([t]) => {
80
+ }), r = A(i.width), d = A(i.height), { stop: x } = be(e, ([t]) => {
81
81
  const v = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
82
82
  if (s && p.value) {
83
83
  const u = _(e);
@@ -144,7 +144,7 @@ const _e = ["aria-level"], Ce = ["innerHTML"], Se = {
144
144
  }, null, 8, Ce)) : e.description ? (o(), l("p", Se, b(e.description), 1)) : B("", !0)
145
145
  ], 2));
146
146
  }
147
- }), $e = ".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{font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;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}}", Z = /* @__PURE__ */ C(Le, [["styles", [$e]]]), Ae = ["aria-hidden", "aria-roledescription", "aria-label"], ke = {
147
+ }), $e = ".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{font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;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}}", Z = /* @__PURE__ */ C(Le, [["styles", [$e]]]), ke = ["aria-hidden", "aria-roledescription", "aria-label"], Ae = {
148
148
  key: 0,
149
149
  class: "image-container"
150
150
  }, Be = ["alt", "src"], Te = {
@@ -187,7 +187,7 @@ const _e = ["aria-level"], Ce = ["innerHTML"], Se = {
187
187
  "aria-label": e.label,
188
188
  ref: "container"
189
189
  }, [
190
- e.type === "image" ? (o(), l("div", ke, [
190
+ e.type === "image" ? (o(), l("div", Ae, [
191
191
  g("img", {
192
192
  style: D({ "--max-width": `${e.slide.displayWidth}px`, "--max-height": `${e.slide.displayHeight}px`, "--svg-image-display": m.value }),
193
193
  class: S({ "has-shadow": !e.disableStyleAroundImage }),
@@ -229,7 +229,7 @@ const _e = ["aria-level"], Ce = ["innerHTML"], Se = {
229
229
  "title-level": e.titleLevel,
230
230
  class: "sr-only"
231
231
  }, null, 8, ["description", "title", "is-active", "title-level"])
232
- ], 10, Ae));
232
+ ], 10, ke));
233
233
  }
234
234
  }), He = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:890px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;max-width:var(--max-width);max-height:var(--max-height);width:var(--svg-image-display, 100%);object-fit:contain;border-radius:16px}.image-container img.has-shadow{filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2))}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;flex:1;gap:12px;padding:16px;border-radius:16px;background:#fff}.text-image-container.has-shadow{filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2))}.text-image-container .img-container{width:calc(var(--image-display) / (var(--image-display) + var(--text-display)) * 100%);display:flex;justify-content:center;align-items:center}.text-image-container .img-container img{max-width:100%;width:auto;height:auto}.text-image-container .text-container{width:calc(var(--text-display) / (var(--image-display) + var(--text-display)) * 100%)}.text-image-container .text-container>*{margin:0}@media only screen and (max-width:576px){.license{font-size:.5rem}.image-container img{border-radius:8px;width:95%}.text-image-container{flex-direction:column}.text-image-container .img-container,.text-image-container .text-container{width:100%}}@media(prefers-reduced-motion:reduce){.slide{transition:none}}", Ie = /* @__PURE__ */ C(Ee, [["styles", [He]]]), We = {}, Oe = {
235
235
  width: "25",
@@ -370,12 +370,12 @@ const U = ee(ti, {
370
370
  });
371
371
  U.prototype.normalizeProps = (e) => ({
372
372
  ...e,
373
- titleLevel: A(e.titleLevel),
373
+ titleLevel: k(e.titleLevel),
374
374
  imageTextDisplay: ne(e.imageTextDisplay),
375
375
  slides: e.slides.map((i) => ({
376
376
  ...i,
377
- displayHeight: A(i.displayHeight),
378
- displayWidth: A(i.displayWidth),
377
+ displayHeight: k(i.displayHeight),
378
+ displayWidth: k(i.displayWidth),
379
379
  license: ae(i.license)
380
380
  }))
381
381
  });