@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.
- package/dist/Button.ce-CTKrSDrC.js +27 -0
- package/dist/{ButtonTooltip.ce-CIo_7tm0.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
- 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
- package/dist/{LLMMessage.ce-y0pOYUCI.js → LLMMessage.ce-Bdmf0R1g.js} +7 -7
- package/dist/{Loading.ce-Cxcx64IX.js → Loading.ce-Bh7-h48F.js} +1 -1
- package/dist/{NavigationButton.ce-DpzmC2Dd.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
- package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
- package/dist/Popin.ce-DUQ7-GMT.js +197 -0
- package/dist/{Retry-BYnFnneH.js → Retry-BZf7NJz9.js} +1 -1
- package/dist/Stepper.ce-B1yDelzC.js +27 -0
- package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js} +29 -28
- package/dist/components/analyse-mails-phishing.ce.js.js +99 -98
- package/dist/components/calcul-impact.ce.js.js +9 -9
- package/dist/components/capacity-calculation.ce.js.js +28 -28
- package/dist/components/clickable-image.ce.js.js +11 -11
- package/dist/components/complete-phrase.ce.js.js +7 -7
- package/dist/components/flip-cards.ce.js.js +5 -5
- package/dist/components/image-quiz.ce.js.js +4 -4
- package/dist/components/image-quizzes.ce.js.js +3 -3
- 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 +2 -2
- package/dist/components/mdp-classement.ce.js.js +29 -29
- package/dist/components/message-conversation.ce.js.js +18 -18
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +27 -27
- package/dist/components/phishing-notification.ce.js.js +23 -23
- package/dist/components/pix-anonymisation.ce.js.js +83 -87
- package/dist/components/pix-article.ce.js.js +19 -19
- package/dist/components/pix-carousel.ce.js.js +13 -13
- package/dist/components/pix-combinaisons.ce.js.js +238 -0
- package/dist/components/pix-cursor.ce.js.js +19 -19
- package/dist/components/pix-mail-message.ce.js.js +11 -0
- package/dist/components/proteger-mail-spam.ce.js.js +131 -0
- package/dist/components/qcm-deepfake.ce.js.js +21 -21
- package/dist/components/quiz-stepper.ce.js.js +8 -7
- package/dist/components/select-conversation.ce.js.js +15 -15
- package/dist/components/template-mail.ce.js.js +49 -151
- package/dist/components/test-top-mdp.ce.js.js +14 -14
- package/dist/components/trouver-mdp-rs.ce.js.js +201 -239
- package/dist/{i18n-BJ6FRipD.js → i18n-ekiZvzf6.js} +9 -9
- package/dist/{i18n-lite-Dn1Iqj1Y.js → i18n-lite-t2jNOu0C.js} +8 -8
- package/dist/{image-quiz.ce-DvpG9mbT.js → image-quiz.ce-DqalWHKw.js} +11 -11
- package/dist/index-BpqxFmwz.js +10 -0
- package/dist/index.js +4 -1
- package/dist/metadata.js +31 -19
- package/dist/nl-Bonww6Q2.js +13 -0
- package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
- package/dist/props.examples.js +130 -0
- package/dist/schema.js +108 -72
- package/dist/{shadow-dom-Db7VMkC0.js → shadow-dom-C3AZuSZe.js} +1 -1
- package/dist/temporal.utils-7Uvm62ss.js +10926 -0
- package/package.json +3 -2
- package/dist/Button.ce-CkwcReY5.js +0 -18
- package/dist/index-BCutQvmP.js +0 -34
- package/dist/temporal.utils-CotrC6ao.js +0 -14456
|
@@ -1,140 +1,136 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as G, i as $, b as H } from "../i18n-
|
|
3
|
-
import {
|
|
4
|
-
import { B as z } from "../Button.ce-
|
|
5
|
-
const
|
|
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
|
-
},
|
|
7
|
+
}, Y = {}, Z = {}, ee = {
|
|
8
8
|
ref: "prompt-container",
|
|
9
9
|
tabindex: "-1"
|
|
10
|
-
},
|
|
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
|
-
},
|
|
13
|
+
}, he = ["aria-level"], fe = { class: "prompt-card-content" }, _e = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "feedback"
|
|
16
|
-
},
|
|
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(
|
|
23
|
-
const
|
|
24
|
-
content:
|
|
25
|
-
color: b.value.includes(
|
|
26
|
-
})), R =
|
|
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
|
-
|
|
28
|
+
l.value = 1, i.value = 0, b.value = [];
|
|
29
29
|
}
|
|
30
30
|
function x() {
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
}), (
|
|
42
|
-
|
|
43
|
-
|
|
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":
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(
|
|
51
|
-
key:
|
|
52
|
-
class: _(["stepper-background", { "is-active":
|
|
53
|
-
style: k({ "--step-width": `${100 /
|
|
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
|
-
|
|
53
|
+
e("div", {
|
|
56
54
|
class: "progress-bar",
|
|
57
|
-
style: k({ "--progress-bar-width": `${100 /
|
|
55
|
+
style: k({ "--progress-bar-width": `${100 / t.steps.length * l.value}%` })
|
|
58
56
|
}, null, 4)
|
|
59
57
|
], 6))), 128)),
|
|
60
|
-
|
|
58
|
+
e("span", null, n(i.value + 1) + " / " + n(t.steps.length), 1)
|
|
61
59
|
])
|
|
62
60
|
]),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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":
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
(
|
|
76
|
-
for: `${
|
|
77
|
-
key:
|
|
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
|
-
|
|
80
|
-
id: `${
|
|
81
|
-
value:
|
|
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,
|
|
86
|
-
[
|
|
80
|
+
}, null, 8, le), [
|
|
81
|
+
[T, b.value]
|
|
87
82
|
]),
|
|
88
|
-
|
|
89
|
-
], 8,
|
|
83
|
+
e("span", be, n(d), 1)
|
|
84
|
+
], 8, ie))), 128))
|
|
90
85
|
])
|
|
91
86
|
]),
|
|
92
|
-
|
|
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(
|
|
92
|
+
S(n(a.$t("pix-anonymisation.buttons.checkNow")), 1)
|
|
97
93
|
]),
|
|
98
94
|
_: 1
|
|
99
95
|
}, 8, ["is-disabled"])
|
|
100
|
-
]
|
|
96
|
+
])) : (o(), s("div", {
|
|
101
97
|
key: 1,
|
|
102
98
|
class: _(["results", { "prompt-and-rephrase": v.value }])
|
|
103
99
|
}, [
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
e("div", pe, [
|
|
101
|
+
e("div", {
|
|
106
102
|
role: "heading",
|
|
107
103
|
class: "prompt-card__heading",
|
|
108
|
-
"aria-level":
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
(
|
|
112
|
-
|
|
113
|
-
class: _(["prompt-card-content-part",
|
|
114
|
-
}, d
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
(
|
|
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 ? (
|
|
123
|
-
|
|
118
|
+
v.value ? (o(), s("div", ge, [
|
|
119
|
+
e("div", {
|
|
124
120
|
role: "heading",
|
|
125
121
|
class: "prompt-card__heading",
|
|
126
|
-
"aria-level":
|
|
127
|
-
},
|
|
128
|
-
|
|
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 ? (
|
|
131
|
-
N.value ? y("", !0) : (
|
|
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(
|
|
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
|
-
}),
|
|
146
|
-
G(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json":
|
|
147
|
-
const C = U(
|
|
148
|
-
configureApp(
|
|
149
|
-
$.changeLanguage(document?.documentElement?.lang || navigator.language),
|
|
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 = (
|
|
153
|
-
...
|
|
154
|
-
titleLevel: K(
|
|
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 {
|
|
2
|
-
import { a as p, i as r, b
|
|
3
|
-
import { a as s,
|
|
4
|
-
const S = {}, x = {},
|
|
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
|
-
},
|
|
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
|
-
|
|
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 =
|
|
19
|
-
(
|
|
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 (
|
|
21
|
+
return (a, F) => (l(), n(o, null, [
|
|
22
22
|
t("div", {
|
|
23
23
|
class: "article__title",
|
|
24
24
|
role: "heading",
|
|
25
|
-
|
|
26
|
-
}, i(e.
|
|
27
|
-
t("p",
|
|
28
|
-
t("span",
|
|
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),
|
|
31
|
+
(l(!0), n(o, null, m(g.value, (_, h) => (l(), n("p", {
|
|
32
32
|
innerHTML: _,
|
|
33
33
|
key: h
|
|
34
|
-
}, null, 8,
|
|
34
|
+
}, null, 8, N))), 128))
|
|
35
35
|
], 64));
|
|
36
36
|
}
|
|
37
|
-
}), w = "[data-v-
|
|
38
|
-
p(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": S, "./locales/en.json": x, "./locales/es-419.json":
|
|
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(
|
|
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:
|
|
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 {
|
|
2
|
-
import { a as ie, i as E, b as te } from "../i18n-
|
|
3
|
-
import { N as H } from "../NavigationButton.ce-
|
|
4
|
-
import { B as I } from "../ButtonTooltip.ce-
|
|
5
|
-
import { a as ne,
|
|
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 =
|
|
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 =
|
|
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]]]),
|
|
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",
|
|
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,
|
|
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:
|
|
373
|
+
titleLevel: k(e.titleLevel),
|
|
374
374
|
imageTextDisplay: ne(e.imageTextDisplay),
|
|
375
375
|
slides: e.slides.map((i) => ({
|
|
376
376
|
...i,
|
|
377
|
-
displayHeight:
|
|
378
|
-
displayWidth:
|
|
377
|
+
displayHeight: k(i.displayHeight),
|
|
378
|
+
displayWidth: k(i.displayWidth),
|
|
379
379
|
license: ae(i.license)
|
|
380
380
|
}))
|
|
381
381
|
});
|