@1024pix/epreuves-components 2.3.0 → 2.4.0
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 +44 -0
- package/dist/{LLMMessage.ce-DOzBmUDF.js → LLMMessage.ce-Cjpb0CiE.js} +7 -7
- package/dist/{Loading.ce-CiVWBT3g.js → Loading.ce-1tk4uU9c.js} +1 -1
- package/dist/NavigationButton.ce-CxI2QW8z.js +59 -0
- package/dist/{Retry-CuUMOAZi.js → Retry-CY90VQJl.js} +1 -1
- package/dist/{_plugin-vue_export-helper-D7ghZaw4.js → _plugin-vue_export-helper-DOoVeFcJ.js} +26 -26
- package/dist/components/calcul-impact.ce.js.js +11 -11
- package/dist/components/capacity-calculation.ce.js.js +31 -31
- package/dist/components/clickable-image.ce.js.js +10 -10
- package/dist/components/complete-phrase.ce.js.js +20 -20
- package/dist/components/flip-cards.ce.js.js +11 -11
- package/dist/components/image-quiz.ce.js.js +2 -2
- 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 +4 -4
- package/dist/components/message-conversation.ce.js.js +21 -21
- package/dist/components/mobile-shell.ce.js.js +8 -5
- package/dist/components/phishing-message.ce.js.js +261 -0
- package/dist/components/phishing-notification.ce.js.js +355 -0
- package/dist/components/pix-article.ce.js.js +5 -5
- package/dist/components/pix-carousel.ce.js.js +19 -18
- package/dist/components/pix-cursor.ce.js.js +28 -28
- package/dist/components/qcm-deepfake.ce.js.js +19 -19
- package/dist/components/select-conversation.ce.js.js +104 -0
- package/dist/{i18n-CGAadjAA.js → i18n-ecSMtuba.js} +1 -1
- package/dist/{image-quiz.ce-3HDl6Z67.js → image-quiz.ce-CpI6lZ9m.js} +15 -15
- package/dist/index-4XnHmtKv.js +11905 -0
- package/dist/index.js +4 -1
- package/dist/metadata.js +44 -32
- package/dist/schema.js +63 -24
- package/dist/{shadow-dom-CFAQERh6.js → shadow-dom-DZbyKUWP.js} +1 -1
- package/dist/temporal.utils-B23shw3k.js +4958 -0
- package/package.json +1 -1
- package/dist/NavigationButton.ce-DF5ScHc4.js +0 -98
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { r as x, q as P, y as k, N as J, v as Q, k as R, c as a, B as v, 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 _, L as n2, _ as s2, f as a2 } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
import { u as r2, a as l2, i as T, b as c2 } from "../i18n-ecSMtuba.js";
|
|
3
|
+
import { u as d2 } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
+
import "./mobile-shell.ce.js.js";
|
|
5
|
+
import { r as h2 } from "../temporal.utils-B23shw3k.js";
|
|
6
|
+
import { B as u2 } from "../ButtonTooltip.ce-CjtFa5aM.js";
|
|
7
|
+
const p2 = {
|
|
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
|
+
}, g2 = ["tabindex"], f2 = ["tabindex"], m2 = {
|
|
10
|
+
__name: "FocusManager",
|
|
11
|
+
props: {
|
|
12
|
+
isVisible: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
autoFocus: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !0
|
|
19
|
+
},
|
|
20
|
+
loop: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
rootElement: {
|
|
25
|
+
type: Node,
|
|
26
|
+
default: document.body
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup(s) {
|
|
30
|
+
const y = [
|
|
31
|
+
...["input", "select", "button", "textarea"].map((e) => `${e}:not([disabled])`),
|
|
32
|
+
"a[href]",
|
|
33
|
+
"video[controls]",
|
|
34
|
+
"audio[controls]",
|
|
35
|
+
'[tabindex]:not([tabindex^="-"])',
|
|
36
|
+
'[contenteditable]:not([contenteditable="false"])'
|
|
37
|
+
].join(",");
|
|
38
|
+
let u = [], l = [];
|
|
39
|
+
const c = x(!1), f = x(), g = P("vueFocusLoopContainer"), h = s, b = k(() => h.isVisible ? 0 : -1);
|
|
40
|
+
J(() => h.isVisible, () => {
|
|
41
|
+
m();
|
|
42
|
+
}), Q(() => {
|
|
43
|
+
m();
|
|
44
|
+
});
|
|
45
|
+
function m() {
|
|
46
|
+
z(h.isVisible), R(() => {
|
|
47
|
+
const e = h.isVisible;
|
|
48
|
+
j(e && h.autoFocus), V(e);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function z(e) {
|
|
52
|
+
!e && window.vflPrevFocusedElement ? window.vflPrevFocusedElement.focus() : h.rootElement instanceof ShadowRoot ? window.vflPrevFocusedElement = h.rootElement.activeElement : window.vflPrevFocusedElement = document.activeElement;
|
|
53
|
+
}
|
|
54
|
+
function M() {
|
|
55
|
+
u = [], l = [];
|
|
56
|
+
}
|
|
57
|
+
function L() {
|
|
58
|
+
C(h.rootElement);
|
|
59
|
+
}
|
|
60
|
+
function C(e) {
|
|
61
|
+
let d = !0;
|
|
62
|
+
l.push(e);
|
|
63
|
+
const A = Array.from(e.children);
|
|
64
|
+
return A.length !== 0 && A.forEach(($) => {
|
|
65
|
+
$ !== g.value && C($) || (d = !1);
|
|
66
|
+
}), d && e.getAttribute("aria-hidden") !== "true" && u.push(e), d;
|
|
67
|
+
}
|
|
68
|
+
function V(e) {
|
|
69
|
+
e ? (L(), i()) : (p(), M());
|
|
70
|
+
}
|
|
71
|
+
function i() {
|
|
72
|
+
o("true"), l.filter(w).forEach((e) => {
|
|
73
|
+
e.hasAttribute("tabindex") && e.setAttribute("old-tabindex", e.getAttribute("tabindex")), e.setAttribute("tabindex", "-1");
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function p() {
|
|
77
|
+
o("false"), l.filter(w).forEach((e) => {
|
|
78
|
+
e.hasAttribute("old-tabindex") ? (e.setAttribute("tabindex", e.getAttribute("old-tabindex")), e.removeAttribute("old-tabindex")) : e.removeAttribute("tabindex");
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function w(e) {
|
|
82
|
+
return !(["SCRIPT", "STYLE", "#document-fragment"].includes(e.nodeName) || e.hasAttribute("aria-live"));
|
|
83
|
+
}
|
|
84
|
+
function o(e) {
|
|
85
|
+
u.filter(w).forEach((d) => {
|
|
86
|
+
d.setAttribute("aria-hidden", e);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function j(e) {
|
|
90
|
+
if (e) {
|
|
91
|
+
const d = E();
|
|
92
|
+
d.length && setTimeout(() => d[0].focus(), 200);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function E() {
|
|
96
|
+
const e = f.value.querySelectorAll(y);
|
|
97
|
+
return e && e.length ? e : [];
|
|
98
|
+
}
|
|
99
|
+
function K() {
|
|
100
|
+
const e = E();
|
|
101
|
+
if (e.length) {
|
|
102
|
+
const d = c.value ? e.length - 1 : 0;
|
|
103
|
+
c.value = !0, e[d].focus();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function G() {
|
|
107
|
+
const e = E();
|
|
108
|
+
e.length > 0 && e[0].focus();
|
|
109
|
+
}
|
|
110
|
+
return (e, d) => s.isVisible ? (r(), a("div", {
|
|
111
|
+
key: 0,
|
|
112
|
+
ref_key: "vueFocusLoopContainer",
|
|
113
|
+
ref: g,
|
|
114
|
+
class: "vue-focus-loop"
|
|
115
|
+
}, [
|
|
116
|
+
s.loop ? (r(), a("div", {
|
|
117
|
+
key: 0,
|
|
118
|
+
tabindex: b.value,
|
|
119
|
+
"aria-hidden": "true",
|
|
120
|
+
onFocus: K
|
|
121
|
+
}, null, 40, g2)) : v("", !0),
|
|
122
|
+
t("div", {
|
|
123
|
+
ref_key: "focusLoop",
|
|
124
|
+
ref: f
|
|
125
|
+
}, [
|
|
126
|
+
U(e.$slots, "default")
|
|
127
|
+
], 512),
|
|
128
|
+
s.loop ? (r(), a("div", {
|
|
129
|
+
key: 1,
|
|
130
|
+
tabindex: b.value,
|
|
131
|
+
"aria-hidden": "true",
|
|
132
|
+
onFocus: G
|
|
133
|
+
}, null, 40, f2)) : v("", !0)
|
|
134
|
+
], 512)) : v("", !0);
|
|
135
|
+
}
|
|
136
|
+
}, C2 = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='30'%20height='30'%20rx='7.05882'%20fill='%23E9F3EF'/%3e%3cpath%20d='M7.05884%2022.3633V8.87213C7.05884%208.4041%207.24476%207.95524%207.57571%207.62429C7.90665%207.29335%208.35551%207.10742%208.82354%207.10742H21.1765C21.6445%207.10742%2022.0934%207.29335%2022.4243%207.62429C22.7553%207.95524%2022.9412%208.4041%2022.9412%208.87213V17.6957C22.9412%2018.1637%2022.7553%2018.6125%2022.4243%2018.9435C22.0934%2019.2744%2021.6445%2019.4604%2021.1765%2019.4604H11.4362C11.1717%2019.4604%2010.9106%2019.5199%2010.6722%2019.6344C10.4338%2019.749%2010.2242%2019.9157%2010.0588%2020.1221L8.00207%2022.6933C7.93363%2022.7791%207.84021%2022.8415%207.73475%2022.8718C7.6293%2022.9022%207.51701%2022.8991%207.41342%2022.8628C7.30983%2022.8266%207.22007%2022.759%207.15655%2022.6696C7.09302%2022.5801%207.05888%2022.473%207.05884%2022.3633Z'%20stroke='%231C825D'%20stroke-width='1.76471'/%3e%3c/svg%3e", w2 = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='30'%20height='30'%20rx='7.05882'%20fill='%23ECF0FF'/%3e%3cpath%20d='M7.94122%2022.0591C7.45593%2022.0591%207.04063%2021.8864%206.69534%2021.5411C6.35004%2021.1958%206.1771%2020.7802%206.17651%2020.2943V9.70611C6.17651%209.22082%206.34945%208.80552%206.69534%208.46023C7.04122%208.11494%207.45651%207.94199%207.94122%207.94141H22.0589C22.5442%207.94141%2022.9597%208.11435%2023.3056%208.46023C23.6515%208.80611%2023.8242%209.22141%2023.8236%209.70611V20.2943C23.8236%2020.7796%2023.6509%2021.1952%2023.3056%2021.5411C22.9603%2021.887%2022.5447%2022.0596%2022.0589%2022.0591H7.94122ZM15%2015.8826L7.94122%2011.4708V20.2943H22.0589V11.4708L15%2015.8826ZM15%2014.1179L22.0589%209.70611H7.94122L15%2014.1179ZM7.94122%2011.4708V9.70611V20.2943V11.4708Z'%20fill='%233B82F6'/%3e%3c/svg%3e", _2 = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='30'%20height='30'%20rx='7.05882'%20fill='%23F0ECFC'/%3e%3cpath%20d='M11.4706%2015.0099C11.4706%2015.9459%2011.8424%2016.8437%2012.5043%2017.5056C13.1662%2018.1674%2014.0639%2018.5393%2015%2018.5393C15.936%2018.5393%2016.8338%2018.1674%2017.4957%2017.5056C18.1576%2016.8437%2018.5294%2015.9459%2018.5294%2015.0099C18.5294%2014.0738%2018.1576%2013.1761%2017.4957%2012.5142C16.8338%2011.8523%2015.936%2011.4805%2015%2011.4805C14.0639%2011.4805%2013.1662%2011.8523%2012.5043%2012.5142C11.8424%2013.1761%2011.4706%2014.0738%2011.4706%2015.0099Z'%20stroke='%23613FDD'%20stroke-width='1.76471'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.5294%2015.01V16.3335C18.5294%2016.9185%2018.7618%2017.4796%2019.1755%2017.8933C19.5892%2018.307%2020.1503%2018.5394%2020.7353%2018.5394C21.3203%2018.5394%2021.8814%2018.307%2022.2951%2017.8933C22.7088%2017.4796%2022.9412%2016.9185%2022.9412%2016.3335V15.01C22.9434%2013.3036%2022.3959%2011.6419%2021.3798%2010.271C20.3637%208.90016%2018.933%207.89305%2017.2998%207.39889C15.6665%206.90472%2013.9175%206.94979%2012.3119%207.52741C10.7062%208.10504%209.32935%209.18449%208.3852%2010.6059C7.44104%2012.0272%206.97984%2013.7149%207.06991%2015.4189C7.15998%2017.1229%207.79653%2018.7526%208.88527%2020.0665C9.974%2021.3805%2011.457%2022.3087%2013.1146%2022.7139C14.7722%2023.119%2016.5162%2022.9794%2018.0882%2022.3159'%20stroke='%23613FDD'%20stroke-width='1.76471'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", k2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%23613FDD'/%3e%3cpath%20d='M19.6042%2011.9127C19.6407%2011.839%2019.6971%2011.7768%2019.767%2011.7334C19.837%2011.69%2019.9177%2011.667%2020%2011.667C20.0823%2011.667%2020.163%2011.69%2020.233%2011.7334C20.3029%2011.7768%2020.3593%2011.839%2020.3958%2011.9127L22.3208%2015.8119C22.4476%2016.0685%2022.6348%2016.2906%2022.8663%2016.4589C23.0979%2016.6273%2023.3668%2016.737%2023.65%2016.7786L27.955%2017.4086C28.0366%2017.4204%2028.1132%2017.4548%2028.1762%2017.5079C28.2393%2017.561%2028.2862%2017.6307%2028.3117%2017.7091C28.3372%2017.7875%2028.3402%2017.8714%2028.3205%2017.9514C28.3007%2018.0315%2028.259%2018.1044%2028.2%2018.1619L25.0867%2021.1936C24.8813%2021.3937%2024.7277%2021.6406%2024.639%2021.9133C24.5503%2022.1859%2024.5292%2022.476%2024.5775%2022.7586L25.3125%2027.0419C25.3269%2027.1234%2025.3181%2027.2074%2025.2871%2027.2841C25.2561%2027.3609%2025.2041%2027.4274%2025.1371%2027.4761C25.0701%2027.5247%2024.9908%2027.5536%2024.9082%2027.5593C24.8256%2027.5651%2024.7431%2027.5475%2024.67%2027.5086L20.8217%2025.4852C20.5681%2025.3521%2020.286%2025.2825%2019.9996%2025.2825C19.7132%2025.2825%2019.4311%2025.3521%2019.1775%2025.4852L15.33%2027.5086C15.2569%2027.5472%2015.1745%2027.5646%2015.092%2027.5588C15.0096%2027.5529%2014.9304%2027.524%2014.8636%2027.4754C14.7967%2027.4268%2014.7449%2027.3604%2014.7139%2027.2838C14.6829%2027.2071%2014.674%2027.1233%2014.6883%2027.0419L15.4225%2022.7594C15.471%2022.4767%2015.45%2022.1864%2015.3613%2021.9136C15.2726%2021.6408%2015.1188%2021.3937%2014.9133%2021.1936L11.8%2018.1627C11.7405%2018.1053%2011.6983%2018.0322%2011.6783%2017.952C11.6583%2017.8717%2011.6612%2017.7874%2011.6867%2017.7087C11.7123%2017.63%2011.7594%2017.5601%2011.8227%2017.5069C11.8861%2017.4537%2011.9631%2017.4193%2012.045%2017.4077L16.3492%2016.7786C16.6327%2016.7373%2016.902%2016.6278%2017.1338%2016.4594C17.3656%2016.291%2017.5531%2016.0688%2017.68%2015.8119L19.6042%2011.9127Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", v2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%23FFCB33'/%3e%3cpath%20d='M23.3333%2018.333C23.3333%2019.2171%2022.9821%2020.0649%2022.357%2020.69C21.7319%2021.3152%2020.884%2021.6663%2020%2021.6663C19.1159%2021.6663%2018.2681%2021.3152%2017.6429%2020.69C17.0178%2020.0649%2016.6666%2019.2171%2016.6666%2018.333'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.5858%2015.0283H27.4141'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8333%2014.5562C12.617%2014.8447%2012.5%2015.1955%2012.5%2015.5562V26.667C12.5%2027.109%2012.6756%2027.5329%2012.9882%2027.8455C13.3007%2028.1581%2013.7246%2028.3337%2014.1667%2028.3337H25.8333C26.2754%2028.3337%2026.6993%2028.1581%2027.0118%2027.8455C27.3244%2027.5329%2027.5%2027.109%2027.5%2026.667V15.5562C27.5%2015.1955%2027.383%2014.8447%2027.1667%2014.5562L25.5%2012.3337C25.3448%2012.1267%2025.1434%2011.9587%2024.912%2011.8429C24.6806%2011.7272%2024.4254%2011.667%2024.1667%2011.667H15.8333C15.5746%2011.667%2015.3194%2011.7272%2015.088%2011.8429C14.8566%2011.9587%2014.6552%2012.1267%2014.5%2012.3337L12.8333%2014.5562Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", b2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%2300A85A'/%3e%3cpath%20d='M18.3334%2020H21.6667'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.3334%2016.667H21.6667'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M21.6667%2027.4997V24.9997C21.6667%2024.5576%2021.4911%2024.1337%2021.1786%2023.8212C20.866%2023.5086%2020.4421%2023.333%2020%2023.333C19.558%2023.333%2019.1341%2023.5086%2018.8215%2023.8212C18.509%2024.1337%2018.3334%2024.5576%2018.3334%2024.9997V27.4997'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15%2018.333H13.3333C12.8913%2018.333%2012.4673%2018.5086%2012.1548%2018.8212C11.8422%2019.1337%2011.6666%2019.5576%2011.6666%2019.9997V25.833C11.6666%2026.275%2011.8422%2026.699%2012.1548%2027.0115C12.4673%2027.3241%2012.8913%2027.4997%2013.3333%2027.4997H26.6666C27.1087%2027.4997%2027.5326%2027.3241%2027.8451%2027.0115C28.1577%2026.699%2028.3333%2026.275%2028.3333%2025.833V17.4997C28.3333%2017.0576%2028.1577%2016.6337%2027.8451%2016.3212C27.5326%2016.0086%2027.1087%2015.833%2026.6666%2015.833H25'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15%2027.5V14.1667C15%2013.7246%2015.1756%2013.3007%2015.4882%2012.9882C15.8007%2012.6756%2016.2246%2012.5%2016.6667%2012.5H23.3333C23.7754%2012.5%2024.1993%2012.6756%2024.5118%2012.9882C24.8244%2013.3007%2025%2013.7246%2025%2014.1667V27.5'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", x2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%23D24140'/%3e%3cpath%20d='M23.3333%2027.5V25.8333C23.3333%2024.9493%2022.9821%2024.1014%2022.357%2023.4763C21.7319%2022.8512%2020.884%2022.5%2020%2022.5H15C14.1159%2022.5%2013.2681%2022.8512%2012.6429%2023.4763C12.0178%2024.1014%2011.6666%2024.9493%2011.6666%2025.8333V27.5'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.3334%2012.6064C24.0482%2012.7918%2024.6812%2013.2092%2025.1331%2013.7932C25.585%2014.3772%2025.8302%2015.0947%2025.8302%2015.8331C25.8302%2016.5715%2025.585%2017.2891%2025.1331%2017.8731C24.6812%2018.4571%2024.0482%2018.8745%2023.3334%2019.0598'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.3334%2027.5001V25.8334C28.3328%2025.0948%2028.087%2024.3774%2027.6345%2023.7937C27.182%2023.2099%2026.5485%2022.793%2025.8334%2022.6084'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.5%2019.1667C19.3409%2019.1667%2020.8333%2017.6743%2020.8333%2015.8333C20.8333%2013.9924%2019.3409%2012.5%2017.5%2012.5C15.659%2012.5%2014.1666%2013.9924%2014.1666%2015.8333C14.1666%2017.6743%2015.659%2019.1667%2017.5%2019.1667Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", y2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%233B82F6'/%3e%3cpath%20d='M20%2018.333H20.0083'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20%2021.667H20.0083'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20%2015H20.0083'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.3334%2018.333H23.3417'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.3334%2021.667H23.3417'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.3334%2015H23.3417'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.6666%2018.333H16.675'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.6666%2021.667H16.675'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.6666%2015H16.675'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.5%2028.3333V25.8333C17.5%2025.6123%2017.5878%2025.4004%2017.7441%2025.2441C17.9004%2025.0878%2018.1123%2025%2018.3333%2025H21.6667C21.8877%2025%2022.0996%2025.0878%2022.2559%2025.2441C22.4122%2025.4004%2022.5%2025.6123%2022.5%2025.8333V28.3333'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M25%2011.667H15C14.0796%2011.667%2013.3334%2012.4132%2013.3334%2013.3337V26.667C13.3334%2027.5875%2014.0796%2028.3337%2015%2028.3337H25C25.9205%2028.3337%2026.6667%2027.5875%2026.6667%2026.667V13.3337C26.6667%2012.4132%2025.9205%2011.667%2025%2011.667Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%2027.5C21.9036%2027.5%2027.5%2021.9036%2027.5%2015C27.5%208.09644%2021.9036%202.5%2015%202.5C8.09644%202.5%202.5%208.09644%202.5%2015C2.5%2021.9036%208.09644%2027.5%2015%2027.5Z'%20stroke='%23145C42'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.25%2015L13.75%2017.5L18.75%2012.5'%20stroke='%23145C42'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", q = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9999%2027.501C21.9034%2027.501%2027.4999%2021.9045%2027.4999%2015.001C27.4999%208.09742%2021.9034%202.50098%2014.9999%202.50098C8.09632%202.50098%202.49988%208.09742%202.49988%2015.001C2.49988%2021.9045%208.09632%2027.501%2014.9999%2027.501Z'%20stroke='%23952E2E'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.75%2011.25L11.25%2018.75'%20stroke='%23952E2E'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.25%2011.25L18.75%2018.75'%20stroke='%23952E2E'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Y = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%206L6%2018'%20stroke='%23122647'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6%206L18%2018'%20stroke='%23122647'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
137
|
+
__proto__: null,
|
|
138
|
+
arobase: _2,
|
|
139
|
+
bubble: C2,
|
|
140
|
+
business: v2,
|
|
141
|
+
celebrity: k2,
|
|
142
|
+
close: Y,
|
|
143
|
+
company: b2,
|
|
144
|
+
letter: w2,
|
|
145
|
+
person: x2,
|
|
146
|
+
publicService: y2,
|
|
147
|
+
right: O,
|
|
148
|
+
wrong: q
|
|
149
|
+
}, Symbol.toStringTag, { value: "Module" })), z2 = { class: "mobile-container" }, M2 = { class: "content" }, L2 = { key: 0 }, V2 = ["aria-level"], j2 = {
|
|
150
|
+
class: "progress",
|
|
151
|
+
"aria-hidden": "true"
|
|
152
|
+
}, E2 = { class: "sr-only" }, H2 = {
|
|
153
|
+
key: 1,
|
|
154
|
+
class: "result"
|
|
155
|
+
}, F2 = { class: "title" }, B2 = { class: "notifications" }, A2 = ["src"], $2 = {
|
|
156
|
+
key: 0,
|
|
157
|
+
class: "notification__preview"
|
|
158
|
+
}, Z2 = { class: "notification__top" }, N2 = { class: "notification__title" }, S2 = { class: "notification__time" }, T2 = { key: 0 }, D2 = {
|
|
159
|
+
class: "notification__selected-category notification__selected-category--right",
|
|
160
|
+
"aria-hidden": "true"
|
|
161
|
+
}, P2 = { class: "sr-only" }, R2 = { key: 1 }, O2 = {
|
|
162
|
+
class: "notification__selected-category notification__selected-category--wrong",
|
|
163
|
+
"aria-hidden": "true"
|
|
164
|
+
}, q2 = { class: "sr-only" }, Y2 = ["onClick"], I2 = { class: "notification__top" }, K2 = { class: "notification__title" }, G2 = { class: "notification__time" }, J2 = { class: "notification__description" }, Q2 = ["src"], U2 = ["aria-labelledby", "aria-describedby"], W2 = { class: "title-close" }, X2 = ["aria-level", "id"], e0 = ["src"], t0 = ["id"], o0 = { class: "categorization__sender" }, i0 = { class: "categorization__content" }, n0 = ["aria-level"], s0 = ["onClick"], a0 = ["src"], r0 = { "aria-live": "polite" }, l0 = {
|
|
165
|
+
key: 0,
|
|
166
|
+
class: "information-message"
|
|
167
|
+
}, c0 = /* @__PURE__ */ W({
|
|
168
|
+
__name: "PhishingNotification.ce",
|
|
169
|
+
props: {
|
|
170
|
+
notifications: { type: Array },
|
|
171
|
+
categories: { type: Array },
|
|
172
|
+
informationMessage: { type: String },
|
|
173
|
+
titleLevel: { default: 2, type: Number }
|
|
174
|
+
},
|
|
175
|
+
setup(s, { expose: y }) {
|
|
176
|
+
const u = X(), l = x(s.notifications), c = x(null), f = k(() => l.value.every((i) => i.selectedCategory)), g = k(() => l.value.filter((i) => i.selectedCategory).length), h = k(() => l.value.filter((i) => i.selectedCategory == i.category).length), b = k(() => Math.floor(g.value / l.value.length * 100)), m = P("notificationsList");
|
|
177
|
+
function z() {
|
|
178
|
+
l.value.forEach((i) => i.selectedCategory = void 0);
|
|
179
|
+
}
|
|
180
|
+
async function M(i) {
|
|
181
|
+
c.value.selectedCategory = i;
|
|
182
|
+
const p = l.value.indexOf(c.value);
|
|
183
|
+
c.value = null, await R(), m.value[p].focus();
|
|
184
|
+
}
|
|
185
|
+
const { i18next: L } = r2();
|
|
186
|
+
function C(i) {
|
|
187
|
+
return h2(i).toLocaleString(L.language, { timeStyle: "short" });
|
|
188
|
+
}
|
|
189
|
+
const V = e2();
|
|
190
|
+
return y({
|
|
191
|
+
reset: z
|
|
192
|
+
}), (i, p) => {
|
|
193
|
+
const w = t2("mobile-shell");
|
|
194
|
+
return r(), a("div", z2, [
|
|
195
|
+
H(w, { "persist-mobile-shell": !0 }, {
|
|
196
|
+
default: F(() => [
|
|
197
|
+
t("div", M2, [
|
|
198
|
+
f.value ? (r(), a("div", H2, [
|
|
199
|
+
t("h2", F2, n(i.$t("phishing-notification.titleResult")), 1),
|
|
200
|
+
t("p", null, n(i.$t("phishing-notification.result", { count: h.value, total: l.value.length })), 1)
|
|
201
|
+
])) : (r(), a("div", L2, [
|
|
202
|
+
t("div", {
|
|
203
|
+
role: "heading",
|
|
204
|
+
"aria-level": s.titleLevel,
|
|
205
|
+
class: "title"
|
|
206
|
+
}, n(i.$t("phishing-notification.titleCta")), 9, V2),
|
|
207
|
+
t("p", j2, [
|
|
208
|
+
t("span", {
|
|
209
|
+
class: "progress-bar",
|
|
210
|
+
style: o2({ "--threshold": `${b.value}%` })
|
|
211
|
+
}, null, 4),
|
|
212
|
+
B(" " + n(g.value) + "/" + n(l.value.length), 1)
|
|
213
|
+
]),
|
|
214
|
+
t("p", E2, n(i.$t("phishing-notification.progressBar.progressBarA11Y", { count: g.value, total: l.value.length })), 1)
|
|
215
|
+
])),
|
|
216
|
+
t("ul", B2, [
|
|
217
|
+
(r(!0), a(Z, null, N(l.value, (o) => (r(), a("li", {
|
|
218
|
+
key: o.sender,
|
|
219
|
+
class: S(["notification", { "notification--categorized": o.selectedCategory }]),
|
|
220
|
+
ref_for: !0,
|
|
221
|
+
ref_key: "notificationsList",
|
|
222
|
+
ref: m,
|
|
223
|
+
tabindex: "-1"
|
|
224
|
+
}, [
|
|
225
|
+
t("img", {
|
|
226
|
+
src: D[o.icon],
|
|
227
|
+
alt: "",
|
|
228
|
+
class: "notification__icon"
|
|
229
|
+
}, null, 8, A2),
|
|
230
|
+
o.selectedCategory ? (r(), a("p", $2, [
|
|
231
|
+
t("span", Z2, [
|
|
232
|
+
t("span", N2, n(o.sender), 1),
|
|
233
|
+
t("span", S2, n(C(o.time)), 1)
|
|
234
|
+
]),
|
|
235
|
+
o.selectedCategory == o.category ? (r(), a("span", T2, [
|
|
236
|
+
t("span", D2, n(o.category), 1),
|
|
237
|
+
t("span", P2, n(i.$t("phishing-notification.validation", { selectedCategory: o.selectedCategory })), 1)
|
|
238
|
+
])) : (r(), a("span", R2, [
|
|
239
|
+
t("span", O2, [
|
|
240
|
+
t("s", null, n(o.selectedCategory), 1),
|
|
241
|
+
B(" → " + n(o.category), 1)
|
|
242
|
+
]),
|
|
243
|
+
t("span", q2, n(i.$t("phishing-notification.correction", { selectedCategory: o.selectedCategory, category: o.category })), 1)
|
|
244
|
+
]))
|
|
245
|
+
])) : (r(), a("a", {
|
|
246
|
+
key: 1,
|
|
247
|
+
class: "notification__preview",
|
|
248
|
+
href: "#",
|
|
249
|
+
onClick: i2((j) => c.value = o, ["prevent"])
|
|
250
|
+
}, [
|
|
251
|
+
t("span", I2, [
|
|
252
|
+
t("span", K2, n(o.sender), 1),
|
|
253
|
+
t("span", G2, n(C(o.time)), 1)
|
|
254
|
+
]),
|
|
255
|
+
t("span", J2, n(o.content), 1)
|
|
256
|
+
], 8, Y2)),
|
|
257
|
+
o.selectedCategory ? (r(), a("div", {
|
|
258
|
+
key: 2,
|
|
259
|
+
class: S(["notification__pill", { "notification__pill--right": o.selectedCategory === o.category }]),
|
|
260
|
+
"aria-hidden": "true"
|
|
261
|
+
}, [
|
|
262
|
+
t("img", {
|
|
263
|
+
src: o.selectedCategory === o.category ? O : q,
|
|
264
|
+
alt: ""
|
|
265
|
+
}, null, 8, Q2)
|
|
266
|
+
], 2)) : v("", !0)
|
|
267
|
+
], 2))), 128))
|
|
268
|
+
])
|
|
269
|
+
])
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}),
|
|
273
|
+
H(m2, {
|
|
274
|
+
"root-element": _(V),
|
|
275
|
+
"is-visible": !!c.value
|
|
276
|
+
}, {
|
|
277
|
+
default: F(() => [
|
|
278
|
+
t("div", {
|
|
279
|
+
class: "categorization",
|
|
280
|
+
role: "alertdialog",
|
|
281
|
+
onKeyup: p[1] || (p[1] = n2((o) => c.value = null, ["esc"])),
|
|
282
|
+
"aria-modal": "true",
|
|
283
|
+
"aria-labelledby": `${_(u)}-title`,
|
|
284
|
+
"aria-describedby": `${_(u)}-content`
|
|
285
|
+
}, [
|
|
286
|
+
t("div", W2, [
|
|
287
|
+
t("div", {
|
|
288
|
+
role: "heading",
|
|
289
|
+
"aria-level": s.titleLevel + 1,
|
|
290
|
+
id: `${_(u)}-title`,
|
|
291
|
+
class: "categorization__title"
|
|
292
|
+
}, n(i.$t("phishing-notification.categorization.titleCta")), 9, X2),
|
|
293
|
+
H(u2, {
|
|
294
|
+
class: "close-button",
|
|
295
|
+
onClick: p[0] || (p[0] = (o) => c.value = null),
|
|
296
|
+
label: i.$t("phishing-notification.close")
|
|
297
|
+
}, {
|
|
298
|
+
default: F(() => [
|
|
299
|
+
t("img", {
|
|
300
|
+
src: Y,
|
|
301
|
+
alt: ""
|
|
302
|
+
}, null, 8, e0)
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}, 8, ["label"])
|
|
306
|
+
]),
|
|
307
|
+
t("div", {
|
|
308
|
+
id: `${_(u)}-content`,
|
|
309
|
+
class: "categorization__message"
|
|
310
|
+
}, [
|
|
311
|
+
t("p", o0, n(i.$t("phishing-notification.categorization.from", { sender: c.value.sender })), 1),
|
|
312
|
+
t("p", i0, n(c.value.content), 1)
|
|
313
|
+
], 8, t0),
|
|
314
|
+
t("div", {
|
|
315
|
+
role: "heading",
|
|
316
|
+
"aria-level": s.titleLevel ? s.titleLevel + 1 : 3,
|
|
317
|
+
class: "categorization__title"
|
|
318
|
+
}, n(i.$t("phishing-notification.categorization.titleCategories")), 9, n0),
|
|
319
|
+
t("ul", null, [
|
|
320
|
+
(r(!0), a(Z, null, N(s.categories, (o) => (r(), a("li", {
|
|
321
|
+
key: o.name
|
|
322
|
+
}, [
|
|
323
|
+
t("button", {
|
|
324
|
+
onClick: (j) => M(o.name)
|
|
325
|
+
}, [
|
|
326
|
+
t("img", {
|
|
327
|
+
src: D[o.icon],
|
|
328
|
+
alt: ""
|
|
329
|
+
}, null, 8, a0),
|
|
330
|
+
B(" " + n(o.name), 1)
|
|
331
|
+
], 8, s0)
|
|
332
|
+
]))), 128))
|
|
333
|
+
])
|
|
334
|
+
], 40, U2)
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
}, 8, ["root-element", "is-visible"]),
|
|
338
|
+
t("div", r0, [
|
|
339
|
+
f.value ? (r(), a("p", l0, n(s.informationMessage), 1)) : v("", !0)
|
|
340
|
+
])
|
|
341
|
+
]);
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
}), d0 = 'html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}*{color:#253858}.title,.categorization__title{font-family:Nunito,Roboto,sans-serif}p,a,button,li{font-family:Roboto,sans-serif}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.mobile-container{position:relative}.information-message{background:#eaf1ff;padding:1rem;border-radius:1rem;font-size:.875rem;box-shadow:0 0 25px #00000040;text-align:center;position:absolute;bottom:10%;left:50%;transform:translate(-50%);z-index:999;width:420px}.content{display:flex;flex-direction:column;padding:40px 16px;margin-bottom:8px}.notifications{background:#fff;display:flex;flex-direction:column;padding:1rem;gap:.5rem;font-style:normal;line-height:normal;color:#122647;border-radius:24px}.progress{display:flex;align-items:center;width:100%;text-wrap:nowrap;gap:8px;margin:16px 0}.progress-bar{display:block;position:relative;width:100%;background:#cdd1d9;height:8px;border-radius:4px;font-size:.875rem}.progress-bar:after{content:"";width:var(--threshold);position:absolute;left:0;top:0;height:100%;border-radius:4px;background:linear-gradient(90deg,#2b7fff,#ad46ff)}.result{display:flex;flex-direction:column;align-items:center}.result p{padding:8px 16px;color:#fff;background:linear-gradient(90deg,#2b7fff,#ad46ff);border-radius:50px;margin:16px 0;font-weight:700}.notification{display:flex;gap:.5rem;padding-bottom:12px;position:relative}.notification:not(:last-child){border-bottom:1px solid #cdd1d9}.notification--categorized .notification__icon{opacity:.2}.notification__pill{position:absolute;left:calc(100% + 32px);top:calc((100% - 12px)/2);padding:.5rem 1rem;border-radius:100px;display:flex;align-items:center;justify-content:center;background:#fbecec;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;transform:translate(-50%,-50%)}.notification__pill--right{background:#e8f3ef}.notification__pill img{width:30px}.notification__preview{position:relative;text-decoration:none;width:calc(100% - 34px - .5rem)}.notification__preview:after{content:"";position:absolute;inset:0}.notification__icon{width:34px;height:auto}.notification__top{display:flex;justify-content:space-between}.notification__title{display:block;font-size:.875rem;font-weight:700}.notification__description,.notification__selected-category{display:block;font-size:.75rem;font-weight:400;text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden}.notification__selected-category--right{color:#007740}.notification__selected-category--wrong{color:#99241c}.notification__selected-category--wrong>s{color:#99241c}.notification__time{text-wrap:nowrap;color:#5e6c84;font-size:.75rem;font-weight:400}mobile-shell::part(screen){margin-top:0;max-width:320px}mobile-shell::part(content){overflow:visible;width:100%;aspect-ratio:1/2;background:#f4f5f7}.title{color:#122647;font-size:1.125rem;font-weight:700;line-height:1.5rem}.categorization{position:absolute;top:20%;left:50%;transform:translate(-50%);z-index:999;width:415px;background:#fff;box-shadow:0 0 20px #00000080;border-radius:1rem;padding:1.5rem}.categorization__title{font-weight:700;color:#122647;font-size:1.125rem;margin-bottom:16px}.categorization__message{background:#f4f5f7;padding:1rem;font-style:normal;font-weight:700;border-radius:.5rem;margin-bottom:1.5rem}.categorization__sender{color:#5e6c84;font-size:1rem}.categorization__content{color:#122647;font-size:.875rem}.categorization>ul{display:flex;justify-content:center;align-items:center;gap:.5rem;flex-wrap:wrap}.categorization button{border:none;display:flex;flex-direction:column;background:#f4f5f7;align-items:center;padding:.5rem;white-space:nowrap;border-radius:.5rem;cursor:pointer;width:116px;height:104px;justify-content:center;gap:8px;font-size:.875rem}.categorization button>img{width:40px}.categorization .title-close{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.categorization .title-close .close-button{background:transparent;width:24px;height:24px}@media(max-width:480px){mobile-shell::part(screen){max-width:234px}.information-message{width:calc(100% - 30px);padding:.5rem;font-size:.75rem}.title{font-size:.875rem}.progress,.result p{font-size:.75rem}.notification{gap:.25rem}.notification__title,.notification__description{font-size:.75rem}.notification__description,.notification__selected-category{font-size:.625rem}.notification__preview{max-width:calc(100% - 30px - .25rem)}.notification__time{display:none}.notification .notification__pill img{width:20px}.notification img{width:30px}.information-message{bottom:12px}.categorization{width:300px}.categorization button{width:90px;height:80px;font-size:.75rem}.categorization button>img{width:30px}.categorization__title,.categorization__sender{font-size:.875rem}.categorization__content{font-size:.75rem}}', h0 = /* @__PURE__ */ s2(c0, [["styles", [d0]]]);
|
|
345
|
+
l2(/* @__PURE__ */ Object.assign({ "./locales/fr.json": p2 })).catch((s) => console.error(s));
|
|
346
|
+
const I = a2(h0, {
|
|
347
|
+
configureApp(s) {
|
|
348
|
+
T.changeLanguage(document?.documentElement?.lang || navigator.language), s.use(c2, { i18next: T });
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
I.prototype.normalizeProps = (s) => ({
|
|
352
|
+
...s,
|
|
353
|
+
titleLevel: d2(s.titleLevel)
|
|
354
|
+
});
|
|
355
|
+
window.customElements.define("phishing-notification", I);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as u, c as a, o as n, a as t,
|
|
2
|
-
import { a as p, i as o, b as v } from "../i18n-
|
|
1
|
+
import { d as u, c as a, o as n, a as t, t as i, F as l, b as h, h as d, _ as m, f } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
import { a as p, i as o, b as v } from "../i18n-ecSMtuba.js";
|
|
3
3
|
import { u as y } from "../normalize-props-AlmAfi_u.js";
|
|
4
4
|
const b = {}, x = {}, S = {}, L = {
|
|
5
5
|
"pix-article": { byAuthor: "Par {{author}}" }
|
|
6
|
-
},
|
|
6
|
+
}, j = {}, A = {}, P = ["titleLevel"], E = { class: "article__metadata" }, H = { class: "article__author" }, N = ["innerHTML"], k = /* @__PURE__ */ u({
|
|
7
7
|
__name: "PixArticle.ce",
|
|
8
8
|
props: {
|
|
9
9
|
titleLevel: { default: 2, type: Number },
|
|
@@ -28,14 +28,14 @@ const b = {}, x = {}, S = {}, L = {
|
|
|
28
28
|
t("span", H, i(c.$t("pix-article.byAuthor", { author: e.author })), 1),
|
|
29
29
|
t("time", null, i(e.date), 1)
|
|
30
30
|
]),
|
|
31
|
-
(n(!0), a(l, null, d(
|
|
31
|
+
(n(!0), a(l, null, h(d(s), (_, g) => (n(), a("p", {
|
|
32
32
|
innerHTML: _,
|
|
33
33
|
key: g
|
|
34
34
|
}, null, 8, N))), 128))
|
|
35
35
|
], 64));
|
|
36
36
|
}
|
|
37
37
|
}), w = "[data-v-30ea36f1]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-30ea36f1]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-30ea36f1]{font-style:italic}.article__author[data-v-30ea36f1]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", B = /* @__PURE__ */ m(k, [["styles", [w]], ["__scopeId", "data-v-30ea36f1"]]);
|
|
38
|
-
p(/* @__PURE__ */ Object.assign({ "./locales/en.json": b, "./locales/es-419.json": x, "./locales/es.json": S, "./locales/fr.json": L, "./locales/it.json":
|
|
38
|
+
p(/* @__PURE__ */ Object.assign({ "./locales/en.json": b, "./locales/es-419.json": x, "./locales/es.json": S, "./locales/fr.json": L, "./locales/it.json": j, "./locales/nl.json": A })).catch((e) => console.error(e));
|
|
39
39
|
const r = f(B, {
|
|
40
40
|
configureApp(e) {
|
|
41
41
|
o.changeLanguage(document?.documentElement?.lang ?? navigator.language), e.use(v, { i18next: o });
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { d as S, c as n, o as t,
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { d as S, c as n, o as t, n as M, a as s, B as L, j as R, H as z, t as g, h as l, _ as h, r as $, N as V, y as w, E as m, A as k, g as P, K as _, F as A, b as N, e as B, f as F } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
import { a as O, i as T, b as W } from "../i18n-ecSMtuba.js";
|
|
3
|
+
import { N as j } from "../NavigationButton.ce-CxI2QW8z.js";
|
|
4
|
+
import { B as D } from "../ButtonTooltip.ce-CjtFa5aM.js";
|
|
5
|
+
import { u as C, a as G } from "../normalize-props-AlmAfi_u.js";
|
|
5
6
|
const Z = {
|
|
6
7
|
"pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
|
|
7
|
-
},
|
|
8
|
+
}, K = {}, Y = {
|
|
8
9
|
"pix-carousel": { license: "Licencia de imagen", next: "Siguiente", of: "{{ currentSlide }} de {{ slideLength }}", previous: "Anterior", slide: "Diapositiva", title: "Carrusel" }
|
|
9
|
-
},
|
|
10
|
+
}, q = {
|
|
10
11
|
"pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
|
|
11
|
-
},
|
|
12
|
+
}, J = {
|
|
12
13
|
"pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
|
|
13
14
|
}, Q = {
|
|
14
15
|
"pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
|
|
@@ -161,7 +162,7 @@ function _e(e, i) {
|
|
|
161
162
|
}, null, -1)
|
|
162
163
|
])]);
|
|
163
164
|
}
|
|
164
|
-
const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"], $e = ["id"], Se = { class: "footer" }, ke = { class: "control" }, Ae = { class: "slide-info-container" }, Ne = { class: "pagination" },
|
|
165
|
+
const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"], $e = ["id"], Se = { class: "footer" }, ke = { class: "control" }, Ae = { class: "slide-info-container" }, Ne = { class: "pagination" }, Be = /* @__PURE__ */ S({
|
|
165
166
|
__name: "Carousel.ce",
|
|
166
167
|
props: {
|
|
167
168
|
randomSlides: { type: Boolean },
|
|
@@ -186,7 +187,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
186
187
|
class: "slides",
|
|
187
188
|
id: l(x)
|
|
188
189
|
}, [
|
|
189
|
-
m(
|
|
190
|
+
m(D, {
|
|
190
191
|
class: "carousel__nav previous",
|
|
191
192
|
disabled: b.value,
|
|
192
193
|
"aria-controls": l(x),
|
|
@@ -199,7 +200,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
199
200
|
]),
|
|
200
201
|
_: 1
|
|
201
202
|
}, 8, ["disabled", "aria-controls", "label"]),
|
|
202
|
-
(t(!0), n(A, null, N(a.value, (u, p) => (t(),
|
|
203
|
+
(t(!0), n(A, null, N(a.value, (u, p) => (t(), B(fe, {
|
|
203
204
|
key: p,
|
|
204
205
|
slide: u,
|
|
205
206
|
direction: y.value,
|
|
@@ -210,7 +211,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
210
211
|
"disable-animation": e.disableAnimation,
|
|
211
212
|
"image-text-display": e.imageTextDisplay
|
|
212
213
|
}, null, 8, ["slide", "direction", "label", "is-active", "title-level", "type", "disable-animation", "image-text-display"]))), 128)),
|
|
213
|
-
m(
|
|
214
|
+
m(D, {
|
|
214
215
|
class: "carousel__nav next",
|
|
215
216
|
disabled: f.value,
|
|
216
217
|
"aria-controls": l(x),
|
|
@@ -226,14 +227,14 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
226
227
|
], 8, $e),
|
|
227
228
|
s("div", Se, [
|
|
228
229
|
s("div", ke, [
|
|
229
|
-
m(
|
|
230
|
+
m(j, {
|
|
230
231
|
onClick: c[2] || (c[2] = (u) => v(1)),
|
|
231
232
|
label: o.$t("pix-carousel.previous"),
|
|
232
233
|
"aria-controls": l(x),
|
|
233
234
|
direction: "previous",
|
|
234
235
|
disabled: b.value
|
|
235
236
|
}, null, 8, ["label", "aria-controls", "disabled"]),
|
|
236
|
-
m(
|
|
237
|
+
m(j, {
|
|
237
238
|
onClick: c[3] || (c[3] = (u) => v(-1)),
|
|
238
239
|
label: o.$t("pix-carousel.next"),
|
|
239
240
|
"aria-controls": l(x),
|
|
@@ -242,7 +243,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
242
243
|
}, null, 8, ["label", "aria-controls", "disabled"])
|
|
243
244
|
]),
|
|
244
245
|
s("div", Ae, [
|
|
245
|
-
(t(!0), n(A, null, N(a.value, (u, p) => (t(),
|
|
246
|
+
(t(!0), n(A, null, N(a.value, (u, p) => (t(), B(H, {
|
|
246
247
|
key: p,
|
|
247
248
|
description: u.description,
|
|
248
249
|
title: u.title,
|
|
@@ -259,11 +260,11 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
|
|
|
259
260
|
])
|
|
260
261
|
], 8, Le));
|
|
261
262
|
}
|
|
262
|
-
}),
|
|
263
|
-
|
|
263
|
+
}), Te = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{align-items:center;display:flex;grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:inline-flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap;transform:translateY(-.25rem)}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media only screen and (max-width:576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", je = /* @__PURE__ */ h(Be, [["styles", [Te]]]);
|
|
264
|
+
O(/* @__PURE__ */ Object.assign({ "./locales/en.json": Z, "./locales/es-419.json": K, "./locales/es.json": Y, "./locales/fr.json": q, "./locales/it.json": J, "./locales/nl.json": Q })).catch((e) => console.error(e));
|
|
264
265
|
const I = F(je, {
|
|
265
266
|
configureApp(e) {
|
|
266
|
-
|
|
267
|
+
T.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(W, { i18next: T });
|
|
267
268
|
}
|
|
268
269
|
});
|
|
269
270
|
I.prototype.normalizeProps = (e) => ({
|
|
@@ -273,7 +274,7 @@ I.prototype.normalizeProps = (e) => ({
|
|
|
273
274
|
...i,
|
|
274
275
|
displayHeight: C(i.displayHeight),
|
|
275
276
|
displayWidth: C(i.displayWidth),
|
|
276
|
-
license:
|
|
277
|
+
license: G(i.license)
|
|
277
278
|
}))
|
|
278
279
|
});
|
|
279
280
|
window.customElements.define("pix-carousel", I);
|