@1024pix/epreuves-components 2.4.3 → 2.4.4
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/{ButtonTooltip.ce-CjtFa5aM.js → ButtonTooltip.ce-CZed5BUq.js} +1 -1
- package/dist/{LLMMessage.ce-Cjpb0CiE.js → LLMMessage.ce-FJCO_wvC.js} +2 -2
- package/dist/{Loading.ce-1tk4uU9c.js → Loading.ce-EWTMcywS.js} +1 -1
- package/dist/{NavigationButton.ce-CxI2QW8z.js → NavigationButton.ce-CMbVRJbG.js} +2 -2
- package/dist/{Retry-CY90VQJl.js → Retry-B27znRn6.js} +1 -1
- package/dist/{_plugin-vue_export-helper-DOoVeFcJ.js → _plugin-vue_export-helper-CJxDisp0.js} +1698 -1681
- package/dist/components/calcul-impact.ce.js.js +3 -3
- package/dist/components/capacity-calculation.ce.js.js +4 -4
- package/dist/components/clickable-image.ce.js.js +2 -2
- package/dist/components/complete-phrase.ce.js.js +4 -4
- package/dist/components/flip-cards.ce.js.js +2 -2
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +2 -2
- 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/message-conversation.ce.js.js +61 -60
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +3 -3
- package/dist/components/phishing-notification.ce.js.js +5 -5
- package/dist/components/pix-article.ce.js.js +25 -23
- package/dist/components/pix-carousel.ce.js.js +232 -131
- package/dist/components/pix-cursor.ce.js.js +3 -3
- package/dist/components/qcm-deepfake.ce.js.js +4 -4
- package/dist/components/select-conversation.ce.js.js +4 -4
- package/dist/{i18n-ecSMtuba.js → i18n-Bs7vpvgi.js} +84 -100
- package/dist/{image-quiz.ce-CpI6lZ9m.js → image-quiz.ce-jh8ME9Wm.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-props-AlmAfi_u.js → normalize-props-BAFlcMqH.js} +6 -2
- package/dist/schema.js +78 -51
- package/dist/shadow-dom-Bs_4iILW.js +9 -0
- package/dist/{temporal.utils-DGOneXL8.js → temporal.utils-DBcWSjWy.js} +4 -4
- package/package.json +1 -1
- package/dist/shadow-dom-DZbyKUWP.js +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as j, G as T, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as E, e as U, h as N, O as x, f as G } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { a as H, i as V, b as Q } from "../i18n-
|
|
3
|
-
import { u as J } from "../normalize-props-
|
|
1
|
+
import { d as j, G as T, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as E, e as U, h as N, O as x, f as G } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { a as H, i as V, b as Q } from "../i18n-Bs7vpvgi.js";
|
|
3
|
+
import { u as J } from "../normalize-props-BAFlcMqH.js";
|
|
4
4
|
const X = {}, Z = {}, ee = {}, te = {
|
|
5
5
|
"calcul-impact": { title: "Calculez votre impact IA", subtitle: "Quels ont été vos usages de l'IA la semaine dernière ?", numberOfConversationLabel: "Nombre de conversations courtes :", numberOfImagesLabel: "Nombre de créations d’images :", seePersonalImpact: "Voir votre impact personnel sur une semaine", seeCollectiveImpact: "Si 1 million de personnes faisaient comme vous toutes les semaines pendant un an", legals: "Estimations basées sur l'étude Hugging Face, Carnegie Mellon University, Allen Institute for AI, Oct 2024", yourPersonalImpact: "Votre impact personnel", consumptionForAWeek: "Votre consommation sur une semaine", consumptionForAYear: "1 million de personnes toutes les semaines pendant un an", personalConsumption: "Vous avez consommé environ {{energy}} Wh", personalDuration: "Cela équivaut à {{number}} minutes de micro-ondes", collectiveConsumption: "Cela représenterait {{energy}} kWh, soit l'équivalent de la consommation en électricité de {{homes}} foyers français", collectiveDuration: "Équivalent à {{number}} minutes de micro-ondes", planeKilometers: "Et {{kilometers}} km parcourus en avion", yourCollectiveImpact: "Impact collectif simulé" }
|
|
6
6
|
}, ae = {}, le = {}, oe = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as C, c as d, o, n as m, j as D, H as $, t as r, _ as v, P as O, Q as h, r as g, y as x, a as t, E as L, F as R, b as V, h as Z, i as z, S as F, K as T, e as f, B as N, f as P } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { i as k, a as H, b as K } from "../i18n-
|
|
3
|
-
import { u as W } from "../normalize-props-
|
|
4
|
-
import { R as G } from "../Retry-
|
|
1
|
+
import { d as C, c as d, o, n as m, j as D, H as $, t as r, _ as v, P as O, Q as h, r as g, y as x, a as t, E as L, F as R, b as V, h as Z, i as z, S as F, K as T, e as f, B as N, f as P } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { i as k, a as H, b as K } from "../i18n-Bs7vpvgi.js";
|
|
3
|
+
import { u as W } from "../normalize-props-BAFlcMqH.js";
|
|
4
|
+
import { R as G } from "../Retry-B27znRn6.js";
|
|
5
5
|
const J = {}, X = {}, Y = {}, aa = {
|
|
6
6
|
"capacity-calculation": { title: "Observer l'impact des demandes", in: { title: "Demandes à l'IA", aiQuestion: "Quelle est la demande à l'IA ?", aiOptions: ["Fais une vidéo d’une durée d'une minute.", "Écris un texte de 10 lignes.", "Fais un dessin de haute qualité."], userQuestion: "Combien d’utilisateurs font la demande en même temps ?", buttonLabel: { primary: "Observer l'effet", warning: "Recommencer" } }, out: { title: "Impact des demandes", consumption: { label: "Consommation d’électricité :", normal_weak: "Faible", normal_medium: "Moyenne", warning: "Très forte", error: "Très forte", initial: "À l'arrêt" }, capacity: { label: "État du supercalculateur :", normal_weak: "Normal", normal_medium: "Normal", warning: "Sollicitation maximale", error: "Ne peut pas répondre à la demande", initial: "À l'arrêt" } } }
|
|
7
7
|
}, ea = {}, ta = {}, ca = /* @__PURE__ */ C({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as E, q as O, r as x, v as P, x as W, y as c, c as d, o as p, a as w, z as _, m as D, F as L, b as V, i as j, A as y, B as q, h as T, n as U, C as X, t as Y, _ as G, f as H } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { u as C } from "../normalize-props-
|
|
1
|
+
import { d as E, q as O, r as x, v as P, x as W, y as c, c as d, o as p, a as w, z as _, m as D, F as L, b as V, i as j, A as y, B as q, h as T, n as U, C as X, t as Y, _ as G, f as H } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { u as C } from "../normalize-props-BAFlcMqH.js";
|
|
3
3
|
const J = { class: "container" }, K = ["onMouseenter", "onFocusin", "onClick", "aria-label"], v = 10, Q = /* @__PURE__ */ E({
|
|
4
4
|
__name: "ClickableImage.ce",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as h, c as n, o, a, t as c, A as S, _ as f, n as P, j as A, H as N, r as y, y as m, B as z, F as x, b as k, e as v, E as q, f as M } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { u as O, a as E, i as L, b as I } from "../i18n-
|
|
3
|
-
import { u as R } from "../normalize-props-
|
|
4
|
-
import { L as B } from "../LLMMessage.ce-
|
|
1
|
+
import { d as h, c as n, o, a, t as c, A as S, _ as f, n as P, j as A, H as N, r as y, y as m, B as z, F as x, b as k, e as v, E as q, f as M } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { u as O, a as E, i as L, b as I } from "../i18n-Bs7vpvgi.js";
|
|
3
|
+
import { u as R } from "../normalize-props-BAFlcMqH.js";
|
|
4
|
+
import { L as B } from "../LLMMessage.ce-FJCO_wvC.js";
|
|
5
5
|
const T = {}, V = {}, D = {}, F = {
|
|
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 choisit par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! Il peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... Il choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
|
|
7
7
|
}, H = {}, Q = {}, W = { class: "probability-bar" }, U = { "aria-hidden": "true" }, G = { class: "sr-only" }, J = /* @__PURE__ */ h({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as m, c as n, o as d, F as u, a as t, n as v, h as p, t as f, B as y, _ as h, r as w, b as k, L as g, E as F, f as _ } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { u as L } from "../normalize-props-
|
|
1
|
+
import { d as m, c as n, o as d, F as u, a as t, n as v, h as p, t as f, B as y, _ as h, r as w, b as k, L as g, E as F, f as _ } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { u as L } from "../normalize-props-BAFlcMqH.js";
|
|
3
3
|
const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"], $ = ["aria-level"], B = { class: "description" }, E = { class: "image-container" }, U = ["src"], j = /* @__PURE__ */ m({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../_plugin-vue_export-helper-
|
|
2
|
-
import { n as p } from "../image-quiz.ce-
|
|
3
|
-
import "../normalize-props-
|
|
1
|
+
import "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { n as p } from "../image-quiz.ce-jh8ME9Wm.js";
|
|
3
|
+
import "../normalize-props-BAFlcMqH.js";
|
|
4
4
|
export {
|
|
5
5
|
p as normalizeImageQuizProps
|
|
6
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as l, r as f, w, c as p, o, b as g, e as d, m as q, F as v, f as y } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { I as A, n as I } from "../image-quiz.ce-
|
|
1
|
+
import { d as l, r as f, w, c as p, o, b as g, e as d, m as q, F as v, f as y } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { I as A, n as I } from "../image-quiz.ce-jh8ME9Wm.js";
|
|
3
3
|
const _ = /* @__PURE__ */ l({
|
|
4
4
|
__name: "ImageQuizzes.ce",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, E as i, _ as p, f as g } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { L as l } from "../LLMMessage.ce-
|
|
3
|
-
import { p as u } from "../shadow-dom-
|
|
1
|
+
import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, E as i, _ as p, f as g } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { L as l } from "../LLMMessage.ce-FJCO_wvC.js";
|
|
3
|
+
import { p as u } from "../shadow-dom-Bs_4iILW.js";
|
|
4
4
|
const f = {
|
|
5
5
|
class: "header",
|
|
6
6
|
"aria-hidden": "true"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c, I as m, J as i, c as t, o as e, F as p, b as d, e as f, _ as g, f as u } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { L as h } from "../LLMMessage.ce-
|
|
3
|
-
import { p as _ } from "../shadow-dom-
|
|
1
|
+
import { d as c, I as m, J as i, c as t, o as e, F as p, b as d, e as f, _ as g, f as u } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { L as h } from "../LLMMessage.ce-FJCO_wvC.js";
|
|
3
|
+
import { p as _ } from "../shadow-dom-Bs_4iILW.js";
|
|
4
4
|
const x = {
|
|
5
5
|
class: "llm-messages",
|
|
6
6
|
"aria-live": "polite"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as h, r as c, G as y, c as d, o as m, E as w, a, H as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { u as N } from "../normalize-props-
|
|
1
|
+
import { d as h, r as c, G as y, c as d, o as m, E as w, a, H as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { u as N } from "../normalize-props-BAFlcMqH.js";
|
|
3
3
|
import "./llm-messages.ce.js.js";
|
|
4
4
|
const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B = ["disabled", "onClick"], V = /* @__PURE__ */ h({
|
|
5
5
|
__name: "LLMPromptSelect.ce",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { L } from "../Loading.ce-
|
|
3
|
-
import { u as j, a as I } from "../normalize-props-
|
|
4
|
-
const
|
|
1
|
+
import { d as S, r as x, y as M, v as B, c as i, o as n, n as w, B as l, a as h, H as k, t as v, E, M as z, m as P, F as b, b as N, _ as D, q as T, e as V, f as F } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { L } from "../Loading.ce-EWTMcywS.js";
|
|
3
|
+
import { u as j, a as I, b as O } from "../normalize-props-BAFlcMqH.js";
|
|
4
|
+
const q = ["part"], H = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "message__loader message__content",
|
|
7
7
|
"aria-hidden": "true"
|
|
8
|
-
},
|
|
8
|
+
}, R = ["part"], G = { key: 1 }, J = { key: 0 }, K = /* @__PURE__ */ S({
|
|
9
9
|
__name: "Message.ce",
|
|
10
10
|
props: {
|
|
11
11
|
displaySender: { type: Boolean, default: !0 },
|
|
@@ -14,108 +14,109 @@ const O = ["part"], q = {
|
|
|
14
14
|
animationDuration: { type: Number },
|
|
15
15
|
loadingDuration: { type: Number }
|
|
16
16
|
},
|
|
17
|
-
setup(e, { expose:
|
|
18
|
-
const
|
|
17
|
+
setup(e, { expose: c }) {
|
|
18
|
+
const t = x("hidden"), d = x([]), m = M(() => e.message.content?.split(`
|
|
19
19
|
`));
|
|
20
|
-
function
|
|
20
|
+
function g(s) {
|
|
21
21
|
return new Promise((a) => {
|
|
22
|
-
const o = setTimeout(a,
|
|
23
|
-
|
|
22
|
+
const o = setTimeout(a, s);
|
|
23
|
+
d.value.push(o);
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
27
|
-
await
|
|
26
|
+
async function u() {
|
|
27
|
+
await g(e.startAnimation), t.value = "loading", await g(e.loadingDuration), t.value = "visible", await g(e.animationDuration);
|
|
28
28
|
}
|
|
29
|
-
B(
|
|
30
|
-
async function
|
|
31
|
-
|
|
29
|
+
B(u);
|
|
30
|
+
async function y() {
|
|
31
|
+
t.value = "hidden", d.value.forEach(clearTimeout), await u();
|
|
32
32
|
}
|
|
33
|
-
return
|
|
34
|
-
reset:
|
|
35
|
-
}), (
|
|
33
|
+
return c({
|
|
34
|
+
reset: y
|
|
35
|
+
}), (s, a) => (n(), i("div", {
|
|
36
36
|
class: w(["message", [
|
|
37
37
|
`message--${e.message.direction}`,
|
|
38
|
-
{ "hidden-state":
|
|
38
|
+
{ "hidden-state": t.value === "hidden" }
|
|
39
39
|
]])
|
|
40
40
|
}, [
|
|
41
|
-
e.displaySender ? (
|
|
41
|
+
e.displaySender ? (n(), i("p", {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "message__sender",
|
|
44
44
|
part: `sender ${e.message.direction}`
|
|
45
45
|
}, [
|
|
46
|
-
a[0] || (a[0] =
|
|
46
|
+
a[0] || (a[0] = h("span", { class: "sr-only" }, "Message de ", -1)),
|
|
47
47
|
k(v(e.message.userName), 1)
|
|
48
|
-
], 8,
|
|
49
|
-
|
|
48
|
+
], 8, q)) : l("", !0),
|
|
49
|
+
t.value === "loading" ? (n(), i("div", H, [
|
|
50
50
|
E(L)
|
|
51
|
-
])) :
|
|
52
|
-
|
|
53
|
-
class: w(["message__content", { "hidden-state":
|
|
51
|
+
])) : l("", !0),
|
|
52
|
+
h("p", {
|
|
53
|
+
class: w(["message__content", { "hidden-state": t.value !== "visible" }]),
|
|
54
54
|
part: `message ${e.message.direction}`
|
|
55
55
|
}, [
|
|
56
|
-
e.message.image ? (
|
|
57
|
-
e.message.image ? (
|
|
58
|
-
(
|
|
59
|
-
r > 0 ? (
|
|
56
|
+
e.message.image ? (n(), i("img", z(P({ key: 0 }, e.message.image)), null, 16)) : l("", !0),
|
|
57
|
+
e.message.image && m.value ? (n(), i("br", G)) : l("", !0),
|
|
58
|
+
(n(!0), i(b, null, N(m.value, (o, r) => (n(), i(b, { key: r }, [
|
|
59
|
+
r > 0 ? (n(), i("br", J)) : l("", !0),
|
|
60
60
|
k(" " + v(o), 1)
|
|
61
61
|
], 64))), 128))
|
|
62
|
-
], 10,
|
|
62
|
+
], 10, R)
|
|
63
63
|
], 2));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), Q = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", U = /* @__PURE__ */ D(K, [["styles", [Q]]]), W = { part: "conversation" }, X = { class: "sr-only" }, Y = /* @__PURE__ */ S({
|
|
66
66
|
__name: "MessageConversation.ce",
|
|
67
67
|
props: {
|
|
68
68
|
title: { default: "Conversation par messages", type: String },
|
|
69
69
|
messages: { type: Array },
|
|
70
70
|
animationSpeed: { default: 20, type: Number }
|
|
71
71
|
},
|
|
72
|
-
setup(e, { expose:
|
|
73
|
-
const
|
|
72
|
+
setup(e, { expose: c }) {
|
|
73
|
+
const t = 50 * e.animationSpeed, d = 50 * e.animationSpeed, m = M(
|
|
74
74
|
() => e.messages.reduce(
|
|
75
|
-
(
|
|
76
|
-
const r =
|
|
75
|
+
(s, a, o) => {
|
|
76
|
+
const r = u(a);
|
|
77
77
|
if (o === 0)
|
|
78
78
|
return [{ message: a, displaySender: !0, startAnimation: 0, animationDuration: r }];
|
|
79
79
|
const {
|
|
80
|
-
message:
|
|
81
|
-
startAnimation:
|
|
82
|
-
animationDuration:
|
|
83
|
-
} =
|
|
84
|
-
return [...
|
|
80
|
+
message: p,
|
|
81
|
+
startAnimation: f,
|
|
82
|
+
animationDuration: _
|
|
83
|
+
} = s.at(-1), A = a.direction !== p.direction || a.userName !== p.userName, $ = f + _ + t;
|
|
84
|
+
return [...s, { message: a, displaySender: A, startAnimation: $, animationDuration: r }];
|
|
85
85
|
},
|
|
86
86
|
[]
|
|
87
87
|
)
|
|
88
|
-
),
|
|
89
|
-
function
|
|
90
|
-
let a =
|
|
91
|
-
return
|
|
88
|
+
), g = T("messages");
|
|
89
|
+
function u(s) {
|
|
90
|
+
let a = (s.content?.length ?? 0) * e.animationSpeed;
|
|
91
|
+
return s.image && (a += d), a;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
|
|
93
|
+
function y() {
|
|
94
|
+
g.value.forEach((s) => s.reset());
|
|
95
95
|
}
|
|
96
|
-
return
|
|
97
|
-
reset:
|
|
98
|
-
}), (
|
|
99
|
-
|
|
100
|
-
(
|
|
96
|
+
return c({
|
|
97
|
+
reset: y
|
|
98
|
+
}), (s, a) => (n(), i("figure", W, [
|
|
99
|
+
h("figcaption", X, v(e.title), 1),
|
|
100
|
+
(n(!0), i(b, null, N(m.value, ({ message: o, displaySender: r, startAnimation: p, animationDuration: f }, _) => (n(), V(U, {
|
|
101
101
|
ref_for: !0,
|
|
102
102
|
ref: "messages",
|
|
103
103
|
message: o,
|
|
104
|
-
"start-animation":
|
|
105
|
-
"animation-duration":
|
|
106
|
-
"loading-duration":
|
|
104
|
+
"start-animation": p,
|
|
105
|
+
"animation-duration": f,
|
|
106
|
+
"loading-duration": t,
|
|
107
107
|
"display-sender": r,
|
|
108
|
-
key:
|
|
108
|
+
key: _
|
|
109
109
|
}, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
|
|
110
110
|
]));
|
|
111
111
|
}
|
|
112
|
-
}),
|
|
112
|
+
}), Z = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", ee = /* @__PURE__ */ D(Y, [["styles", [Z]]]), C = F(ee);
|
|
113
113
|
C.prototype.normalizeProps = (e) => ({
|
|
114
114
|
...e,
|
|
115
115
|
animationSpeed: j(e.animationSpeed),
|
|
116
|
-
messages: e.messages.map((d) => ({
|
|
117
|
-
...
|
|
118
|
-
|
|
116
|
+
messages: e.messages.map(({ type: c, content: t, image: d, ...m }) => ({
|
|
117
|
+
...m,
|
|
118
|
+
content: O(t),
|
|
119
|
+
image: I(d)
|
|
119
120
|
}))
|
|
120
121
|
});
|
|
121
122
|
window.customElements.define("message-conversation", C);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as i, c as a, o as l, D as s, a as r, j as n, A as d, n as b, _ as p, f as h } from "../_plugin-vue_export-helper-
|
|
1
|
+
import { d as i, c as a, o as l, D as s, a as r, j as n, A as d, n as b, _ as p, f as h } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
2
|
const m = {
|
|
3
3
|
class: "content",
|
|
4
4
|
part: "content"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as m, c, o, F as k, a as t, t as a, h as x, H as R, _ as f, B as C, b as D, q as _, r as b, y as u, A as Z, e as w, D as A, m as $, k as I, f as T } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { a as E, i as M, b as Q } from "../i18n-
|
|
3
|
-
import { u as q } from "../normalize-props-
|
|
1
|
+
import { d as m, c, o, F as k, a as t, t as a, h as x, H as R, _ as f, B as C, b as D, q as _, r as b, y as u, A as Z, e as w, D as A, m as $, k as I, f as T } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { a as E, i as M, b as Q } from "../i18n-Bs7vpvgi.js";
|
|
3
|
+
import { u as q } from "../normalize-props-BAFlcMqH.js";
|
|
4
4
|
const O = {}, U = {}, G = {}, J = {
|
|
5
5
|
"phishing-message": { title: "Message et émotions", description: "Pour chacun des cas ci-dessous : Ouvrez et lisez le message d’arnaque, puis répondez à la question.", messagePreviewTitle: "Messagerie :", feedBackQuizTitle: "Qu’avez-vous ressenti en lisant ce message ?", next: "Message suivant", step: "Étape {{step}} sur {{totalStep}}" }
|
|
6
6
|
}, W = {}, K = {}, X = "data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='34'%20height='34'%20rx='8'%20fill='%23E9F3EF'/%3e%3cpath%20d='M8%2025.3451V10.0551C8%209.52465%208.21071%209.01594%208.58579%208.64087C8.96086%208.2658%209.46957%208.05508%2010%208.05508H24C24.5304%208.05508%2025.0391%208.2658%2025.4142%208.64087C25.7893%209.01594%2026%209.52465%2026%2010.0551V20.0551C26%2020.5855%2025.7893%2021.0942%2025.4142%2021.4693C25.0391%2021.8444%2024.5304%2022.0551%2024%2022.0551H12.961C12.6612%2022.0551%2012.3653%2022.1225%2012.0951%2022.2524C11.8249%2022.3822%2011.5874%2022.5711%2011.4%2022.8051L9.069%2025.7191C8.99143%2025.8163%208.88556%2025.887%208.76604%2025.9214C8.64652%2025.9559%208.51926%2025.9523%208.40186%2025.9112C8.28446%2025.8701%208.18273%2025.7936%208.11073%2025.6922C8.03874%2025.5907%208.00005%2025.4695%208%2025.3451Z'%20stroke='%231C825D'%20stroke-width='2'/%3e%3c/svg%3e", Y = ["aria-level"], e2 = { class: "message-page-preview" }, t2 = { class: "card-wrapper" }, a2 = ["src"], i2 = ["aria-level"], s2 = { class: "card-wrapper__time" }, o2 = /* @__PURE__ */ m({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as x, q as P, y as v, N as J, v as Q, k as R, c as a, B as k, o as r, a as t, j as U, d as W, g as X, u as e2, G as t2, E as H, K as F, t as n, H as B, A as o2, F as Z, b as N, n as S, i as i2, h as w, L as n2, _ as s2, f as a2 } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { u as r2, a as l2, i as T, b as c2 } from "../i18n-
|
|
3
|
-
import { u as d2 } from "../normalize-props-
|
|
1
|
+
import { r as x, q as P, y as v, N as J, v as Q, k as R, c as a, B as k, o as r, a as t, j as U, d as W, g as X, u as e2, G as t2, E as H, K as F, t as n, H as B, A as o2, F as Z, b as N, n as S, i as i2, h as w, L as n2, _ as s2, f as a2 } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { u as r2, a as l2, i as T, b as c2 } from "../i18n-Bs7vpvgi.js";
|
|
3
|
+
import { u as d2 } from "../normalize-props-BAFlcMqH.js";
|
|
4
4
|
import "./mobile-shell.ce.js.js";
|
|
5
|
-
import { r as h2 } from "../temporal.utils-
|
|
6
|
-
import { B as u2 } from "../ButtonTooltip.ce-
|
|
5
|
+
import { r as h2 } from "../temporal.utils-DBcWSjWy.js";
|
|
6
|
+
import { B as u2 } from "../ButtonTooltip.ce-CZed5BUq.js";
|
|
7
7
|
const g2 = {}, p2 = {}, f2 = {}, m2 = {
|
|
8
8
|
"phishing-notification": { titleCta: "Catégorisez les notifications", categorization: { titleCta: "Catégorisez cette notification", from: "De : {{sender}}", titleCategories: "L’expéditeur se fait passer pour :" }, correction: "La catégorie {{selectedCategory}} n'est pas la bonne. La bonne catégorisation est : {{category}}", validation: "La catégorie {{selectedCategory}} est la bonne.", progressBarA11Y_one: "{{count}} réponse sur {{total}}", progressBarA11Y_other: "{{count}} réponses sur {{total}}", titleResult: "Résultats", result_one: "{{count}} / {{total}} bonne réponse", result_other: "{{count}} / {{total}} bonnes réponses", close: "Fermer" }
|
|
9
9
|
}, _2 = {}, C2 = {}, w2 = ["tabindex"], v2 = ["tabindex"], k2 = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as u, c as a, o as
|
|
2
|
-
import { a as p, i as
|
|
3
|
-
import { u as
|
|
4
|
-
const
|
|
1
|
+
import { d as u, y as d, c as a, o as i, a as t, t as l, F as o, b as m, _ as f, f as v } from "../_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { a as p, i as r, b as y } from "../i18n-Bs7vpvgi.js";
|
|
3
|
+
import { b as s, u as b } from "../normalize-props-BAFlcMqH.js";
|
|
4
|
+
const S = {}, x = {}, L = {}, A = {
|
|
5
5
|
"pix-article": { byAuthor: "Par {{author}}" }
|
|
6
|
-
}, j = {},
|
|
6
|
+
}, j = {}, H = {}, O = ["titleLevel"], P = { class: "article__metadata" }, E = { class: "article__author" }, N = ["innerHTML"], k = /* @__PURE__ */ u({
|
|
7
7
|
__name: "PixArticle.ce",
|
|
8
8
|
props: {
|
|
9
9
|
titleLevel: { default: 2, type: Number },
|
|
@@ -15,34 +15,36 @@ const b = {}, x = {}, S = {}, L = {
|
|
|
15
15
|
colorOfHighlightSentence: { type: String }
|
|
16
16
|
},
|
|
17
17
|
setup(e) {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return (
|
|
18
|
+
const g = d(() => e.highlightedSentence ? e.paragraphs.map(
|
|
19
|
+
(n) => n.replace("{{highlightedSentence}}", `<strong style="color: ${e.colorOfHighlightSentence};">${e.highlightedSentence}</strong>`)
|
|
20
|
+
) : e.paragraphs);
|
|
21
|
+
return (n, C) => (i(), 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
|
+
}, l(e.title), 9, O),
|
|
27
|
+
t("p", P, [
|
|
28
|
+
t("span", E, l(n.$t("pix-article.byAuthor", { author: e.author })), 1),
|
|
29
|
+
t("time", null, l(e.date), 1)
|
|
30
30
|
]),
|
|
31
|
-
(
|
|
32
|
-
innerHTML:
|
|
33
|
-
key:
|
|
31
|
+
(i(!0), a(o, null, m(g.value, (h, _) => (i(), a("p", {
|
|
32
|
+
innerHTML: h,
|
|
33
|
+
key: _
|
|
34
34
|
}, null, 8, N))), 128))
|
|
35
35
|
], 64));
|
|
36
36
|
}
|
|
37
|
-
}), w = "[data-v-
|
|
38
|
-
p(/* @__PURE__ */ Object.assign({ "./locales/en.json":
|
|
39
|
-
const
|
|
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}", B = /* @__PURE__ */ f(k, [["styles", [w]], ["__scopeId", "data-v-8f376e91"]]);
|
|
38
|
+
p(/* @__PURE__ */ Object.assign({ "./locales/en.json": S, "./locales/es-419.json": x, "./locales/es.json": L, "./locales/fr.json": A, "./locales/it.json": j, "./locales/nl.json": H })).catch((e) => console.error(e));
|
|
39
|
+
const c = v(B, {
|
|
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
|
+
highlightedSentence: s(e.highlightedSentence),
|
|
48
|
+
colorOfHighlightSentence: s(e.colorOfHighlightSentence)
|
|
47
49
|
});
|
|
48
|
-
window.customElements.define("pix-article",
|
|
50
|
+
window.customElements.define("pix-article", c);
|