@1024pix/epreuves-components 2.8.0 → 2.8.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.
- package/dist/Button.ce-D1_fAhqr.js +18 -0
- package/dist/{ButtonTooltip.ce-B-f0Ebfa.js → ButtonTooltip.ce-BjlMn9Ez.js} +15 -15
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js +73 -0
- package/dist/{LLMMessage.ce-DAA_BQYY.js → LLMMessage.ce-B4Tg1zsn.js} +2 -2
- package/dist/{Loading.ce-BPbyGkTl.js → Loading.ce-S-dh_E78.js} +1 -1
- package/dist/{NavigationButton.ce-D7sjcUuO.js → NavigationButton.ce-DRBC3gta.js} +2 -2
- package/dist/{Retry-CTdYYKx5.js → Retry-CoaWKuPG.js} +1 -1
- package/dist/{_plugin-vue_export-helper-CGJjSxi7.js → _plugin-vue_export-helper-BPDEgOal.js} +1711 -1618
- package/dist/components/calcul-impact.ce.js.js +42 -42
- package/dist/components/capacity-calculation.ce.js.js +70 -70
- package/dist/components/clickable-image.ce.js.js +12 -12
- package/dist/components/complete-phrase.ce.js.js +36 -36
- package/dist/components/flip-cards.ce.js.js +1 -1
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +20 -20
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +1 -1
- package/dist/components/mdp-classement.ce.js.js +219 -0
- package/dist/components/message-conversation.ce.js.js +11 -11
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +61 -61
- package/dist/components/phishing-notification.ce.js.js +85 -85
- package/dist/components/pix-anonymisation.ce.js.js +85 -97
- package/dist/components/pix-article.ce.js.js +18 -18
- package/dist/components/pix-carousel.ce.js.js +86 -86
- package/dist/components/pix-cursor.ce.js.js +50 -50
- package/dist/components/qcm-deepfake.ce.js.js +55 -55
- package/dist/components/quiz-stepper.ce.js.js +103 -111
- package/dist/components/select-conversation.ce.js.js +41 -41
- package/dist/components/template-mail.ce.js.js +55 -55
- package/dist/components/test-top-mdp.ce.js.js +58 -58
- package/dist/components/trouver-mdp-rs.ce.js.js +758 -0
- package/dist/{i18n-BkraEFZL.js → i18n-BuCPzaih.js} +9 -9
- package/dist/{i18n-lite-J-aj5pZd.js → i18n-lite-DBVKHY8J.js} +1 -1
- package/dist/{image-quiz.ce-BFISPs8m.js → image-quiz.ce-CXOFcx1H.js} +86 -95
- package/dist/index.js +6 -4
- package/dist/metadata.js +29 -21
- package/dist/schema.js +64 -42
- package/dist/{shadow-dom-DN_6ctXp.js → shadow-dom-By5w43W7.js} +1 -1
- package/dist/shuffled-B8VGTceh.js +19 -0
- package/package.json +1 -1
|
@@ -1,152 +1,140 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { a as G, i as
|
|
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, N as D, K as w, H as S, B as y, e as I, _ as M, f as U } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
|
+
import { a as G, i as $, b as H } from "../i18n-BuCPzaih.js";
|
|
3
3
|
import { u as K } from "../normalize-props-DtfVI0Xg.js";
|
|
4
|
-
|
|
4
|
+
import { B as z } from "../Button.ce-D1_fAhqr.js";
|
|
5
|
+
const O = {}, J = {}, Q = {}, W = {}, X = {}, Y = {
|
|
5
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:" }
|
|
6
|
-
},
|
|
7
|
-
__name: "Button.ce",
|
|
8
|
-
props: {
|
|
9
|
-
isDisabled: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
setup(a) {
|
|
12
|
-
return (h, s) => (c(), n("button", {
|
|
13
|
-
"aria-disabled": a.isDisabled,
|
|
14
|
-
class: f({ "is-disabled": a.isDisabled })
|
|
15
|
-
}, [
|
|
16
|
-
D(h.$slots, "default", {}, void 0, !0)
|
|
17
|
-
], 10, aa));
|
|
18
|
-
}
|
|
19
|
-
}), ea = "button[data-v-a5fa59a1]{padding:8px 24px;border-radius:8px;background:#253858;border:none;color:#fff}button[data-v-a5fa59a1]:hover{cursor:pointer;background:#334d77}button.is-disabled[data-v-a5fa59a1]{background:#25385880;cursor:not-allowed}", C = /* @__PURE__ */ N(ta, [["styles", [ea]], ["__scopeId", "data-v-a5fa59a1"]]), da = {
|
|
7
|
+
}, Z = {}, aa = {}, ta = {
|
|
20
8
|
ref: "prompt-container",
|
|
21
9
|
tabindex: "-1"
|
|
22
|
-
},
|
|
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 = {
|
|
23
11
|
key: 0,
|
|
24
12
|
class: "prompt-card rephrase"
|
|
25
|
-
},
|
|
13
|
+
}, ha = ["aria-level"], fa = { class: "prompt-card-content" }, _a = {
|
|
26
14
|
key: 1,
|
|
27
15
|
class: "feedback"
|
|
28
|
-
},
|
|
16
|
+
}, ya = /* @__PURE__ */ E({
|
|
29
17
|
__name: "PixAnonymisation.ce",
|
|
30
18
|
props: {
|
|
31
19
|
titleLevel: { default: 2, type: Number },
|
|
32
20
|
steps: { type: Array }
|
|
33
21
|
},
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
content:
|
|
37
|
-
color: b.value.includes(
|
|
38
|
-
})),
|
|
39
|
-
function
|
|
40
|
-
i.value = 1,
|
|
22
|
+
setup(e, { expose: j }) {
|
|
23
|
+
const r = f(0), b = f([]), i = f(1), N = q("prompt-container"), p = l(() => e.steps[r.value]), L = l(() => i.value === 3 && r.value + 1 === e.steps.length), v = l(() => i.value === 3), B = l(() => p.value.fullSentence.map(({ content: t }) => t)), P = 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));
|
|
27
|
+
function A() {
|
|
28
|
+
i.value = 1, r.value = 0, b.value = [];
|
|
41
29
|
}
|
|
42
|
-
function
|
|
30
|
+
function x() {
|
|
43
31
|
if (b.value.length !== 0) {
|
|
44
32
|
if (v.value) {
|
|
45
|
-
i.value = 1,
|
|
33
|
+
i.value = 1, r.value++, b.value = [];
|
|
46
34
|
return;
|
|
47
35
|
}
|
|
48
|
-
i.value++,
|
|
36
|
+
i.value++, N.value.focus();
|
|
49
37
|
}
|
|
50
38
|
}
|
|
51
|
-
return
|
|
52
|
-
reset:
|
|
53
|
-
}), (
|
|
54
|
-
|
|
55
|
-
|
|
39
|
+
return j({
|
|
40
|
+
reset: A
|
|
41
|
+
}), (t, u) => (c(), n("div", ta, [
|
|
42
|
+
a("header", null, [
|
|
43
|
+
a("div", {
|
|
56
44
|
role: "heading",
|
|
57
45
|
class: "heading",
|
|
58
|
-
"aria-level":
|
|
59
|
-
}, d(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(c(!0), n(m, null, g(
|
|
63
|
-
key:
|
|
64
|
-
class:
|
|
65
|
-
style:
|
|
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}%` })
|
|
66
54
|
}, [
|
|
67
|
-
|
|
55
|
+
a("div", {
|
|
68
56
|
class: "progress-bar",
|
|
69
|
-
style:
|
|
57
|
+
style: k({ "--progress-bar-width": `${100 / e.steps.length * i.value}%` })
|
|
70
58
|
}, null, 4)
|
|
71
59
|
], 6))), 128)),
|
|
72
|
-
|
|
60
|
+
a("span", null, d(r.value + 1) + " / " + d(e.steps.length), 1)
|
|
73
61
|
])
|
|
74
62
|
]),
|
|
75
|
-
|
|
63
|
+
a("main", null, [
|
|
76
64
|
i.value === 1 ? (c(), n("form", {
|
|
77
65
|
key: 0,
|
|
78
|
-
onSubmit:
|
|
66
|
+
onSubmit: V(x, ["prevent"])
|
|
79
67
|
}, [
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
a("div", na, [
|
|
69
|
+
a("div", {
|
|
82
70
|
role: "heading",
|
|
83
71
|
class: "prompt-card__heading",
|
|
84
|
-
"aria-level":
|
|
85
|
-
}, d(
|
|
86
|
-
|
|
87
|
-
(c(!0), n(m, null, g(
|
|
88
|
-
for: `${o}-${
|
|
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(B.value, (o, s) => (c(), n("label", {
|
|
76
|
+
for: `${o}-${s}`,
|
|
89
77
|
key: o
|
|
90
78
|
}, [
|
|
91
|
-
T(
|
|
92
|
-
id: `${o}-${
|
|
79
|
+
T(a("input", {
|
|
80
|
+
id: `${o}-${s}`,
|
|
93
81
|
value: o,
|
|
94
82
|
class: "sr-only",
|
|
95
83
|
type: "checkbox",
|
|
96
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
97
|
-
}, null, 8,
|
|
98
|
-
[
|
|
84
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => b.value = h)
|
|
85
|
+
}, null, 8, ba), [
|
|
86
|
+
[D, b.value]
|
|
99
87
|
]),
|
|
100
|
-
|
|
101
|
-
], 8,
|
|
88
|
+
a("span", ia, d(o), 1)
|
|
89
|
+
], 8, ra))), 128))
|
|
102
90
|
])
|
|
103
91
|
]),
|
|
104
|
-
|
|
92
|
+
F(z, {
|
|
105
93
|
"is-disabled": b.value.length === 0
|
|
106
94
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
S(d(
|
|
95
|
+
default: w(() => [
|
|
96
|
+
S(d(t.$t("pix-anonymisation.buttons.checkNow")), 1)
|
|
109
97
|
]),
|
|
110
98
|
_: 1
|
|
111
99
|
}, 8, ["is-disabled"])
|
|
112
100
|
], 32)) : (c(), n("div", {
|
|
113
101
|
key: 1,
|
|
114
|
-
class:
|
|
102
|
+
class: _(["results", { "prompt-and-rephrase": v.value }])
|
|
115
103
|
}, [
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
a("div", la, [
|
|
105
|
+
a("div", {
|
|
118
106
|
role: "heading",
|
|
119
107
|
class: "prompt-card__heading",
|
|
120
|
-
"aria-level":
|
|
121
|
-
}, d(
|
|
122
|
-
|
|
123
|
-
(c(!0), n(m, null, g(
|
|
124
|
-
|
|
125
|
-
class:
|
|
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(P.value, ({ content: o, color: s }, h) => (c(), n("span", { key: h }, [
|
|
112
|
+
a("span", {
|
|
113
|
+
class: _(["prompt-card-content-part", s])
|
|
126
114
|
}, d(o), 3)
|
|
127
115
|
]))), 128))
|
|
128
116
|
]),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
(c(!0), n(m, null, g(
|
|
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))
|
|
132
120
|
])
|
|
133
121
|
]),
|
|
134
|
-
v.value ? (c(), n("div",
|
|
135
|
-
|
|
122
|
+
v.value ? (c(), n("div", ga, [
|
|
123
|
+
a("div", {
|
|
136
124
|
role: "heading",
|
|
137
125
|
class: "prompt-card__heading",
|
|
138
|
-
"aria-level":
|
|
139
|
-
}, d(
|
|
140
|
-
|
|
141
|
-
])) :
|
|
142
|
-
v.value ? (c(), n("p",
|
|
143
|
-
|
|
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)
|
|
129
|
+
])) : y("", !0),
|
|
130
|
+
v.value ? (c(), n("p", _a, d(p.value.feedback), 1)) : y("", !0),
|
|
131
|
+
L.value ? y("", !0) : (c(), I(z, {
|
|
144
132
|
key: 2,
|
|
145
|
-
onClick:
|
|
133
|
+
onClick: x,
|
|
146
134
|
class: "feedback-button"
|
|
147
135
|
}, {
|
|
148
|
-
default:
|
|
149
|
-
S(d(v.value ?
|
|
136
|
+
default: w(() => [
|
|
137
|
+
S(d(v.value ? t.$t("pix-anonymisation.buttons.nextPrompt") : t.$t("pix-anonymisation.buttons.displayRephrasing")), 1)
|
|
150
138
|
]),
|
|
151
139
|
_: 1
|
|
152
140
|
}))
|
|
@@ -154,15 +142,15 @@ const J = {}, Q = {}, W = {}, X = {
|
|
|
154
142
|
])
|
|
155
143
|
], 512));
|
|
156
144
|
}
|
|
157
|
-
}),
|
|
158
|
-
G(/* @__PURE__ */ Object.assign({ "./locales/en.json": J, "./locales/es-419.json": Q, "./locales/es.json": W, "./locales/fr.json": X, "./locales/
|
|
159
|
-
const
|
|
160
|
-
configureApp(
|
|
161
|
-
|
|
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: $ });
|
|
162
150
|
}
|
|
163
151
|
});
|
|
164
|
-
|
|
165
|
-
...
|
|
166
|
-
titleLevel: K(
|
|
152
|
+
C.prototype.normalizeProps = (e) => ({
|
|
153
|
+
...e,
|
|
154
|
+
titleLevel: K(e.titleLevel)
|
|
167
155
|
});
|
|
168
|
-
window.customElements.define("pix-anonymisation",
|
|
156
|
+
window.customElements.define("pix-anonymisation", C);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as u, y as d, c as a, o as
|
|
2
|
-
import { a as p, i as r, b as y } from "../i18n-
|
|
3
|
-
import { a as s, u as
|
|
4
|
-
const
|
|
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-BPDEgOal.js";
|
|
2
|
+
import { a as p, i as r, b as y } from "../i18n-BuCPzaih.js";
|
|
3
|
+
import { a as s, u as b } from "../normalize-props-DtfVI0Xg.js";
|
|
4
|
+
const S = {}, x = {}, L = {}, j = {}, A = {}, H = {
|
|
5
5
|
"pix-article": { byAuthor: "Par {{author}}" }
|
|
6
|
-
},
|
|
6
|
+
}, E = {}, O = {}, P = ["titleLevel"], B = { class: "article__metadata" }, N = { class: "article__author" }, T = ["innerHTML"], k = /* @__PURE__ */ u({
|
|
7
7
|
__name: "PixArticle.ce",
|
|
8
8
|
props: {
|
|
9
9
|
titleLevel: { default: 2, type: Number },
|
|
@@ -18,32 +18,32 @@ const b = {}, x = {}, L = {}, A = {
|
|
|
18
18
|
const g = d(() => e.highlightedSentence ? e.paragraphs.map(
|
|
19
19
|
(n) => n.replace("{{highlightedSentence}}", `<strong style="color: ${e.colorOfHighlightSentence};">${e.highlightedSentence}</strong>`)
|
|
20
20
|
) : e.paragraphs);
|
|
21
|
-
return (n,
|
|
21
|
+
return (n, F) => (l(), a(o, null, [
|
|
22
22
|
t("div", {
|
|
23
23
|
class: "article__title",
|
|
24
24
|
role: "heading",
|
|
25
25
|
titleLevel: e.titleLevel
|
|
26
|
-
},
|
|
27
|
-
t("p",
|
|
28
|
-
t("span",
|
|
29
|
-
t("time", null,
|
|
26
|
+
}, i(e.title), 9, P),
|
|
27
|
+
t("p", B, [
|
|
28
|
+
t("span", N, i(n.$t("pix-article.byAuthor", { author: e.author })), 1),
|
|
29
|
+
t("time", null, i(e.date), 1)
|
|
30
30
|
]),
|
|
31
|
-
(
|
|
32
|
-
innerHTML:
|
|
33
|
-
key:
|
|
34
|
-
}, null, 8,
|
|
31
|
+
(l(!0), a(o, null, m(g.value, (_, h) => (l(), a("p", {
|
|
32
|
+
innerHTML: _,
|
|
33
|
+
key: h
|
|
34
|
+
}, null, 8, T))), 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}",
|
|
38
|
-
p(/* @__PURE__ */ Object.assign({ "./locales/en.json":
|
|
39
|
-
const c = v(
|
|
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));
|
|
39
|
+
const c = v(C, {
|
|
40
40
|
configureApp(e) {
|
|
41
41
|
r.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(y, { i18next: r });
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
c.prototype.normalizeProps = (e) => ({
|
|
45
45
|
...e,
|
|
46
|
-
titleLevel:
|
|
46
|
+
titleLevel: b(e.titleLevel),
|
|
47
47
|
highlightedSentence: s(e.highlightedSentence),
|
|
48
48
|
colorOfHighlightSentence: s(e.colorOfHighlightSentence)
|
|
49
49
|
});
|