@1024pix/epreuves-components 4.0.1 → 4.1.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/{Button.ce-CTKrSDrC.js → Button.ce-DZ8jDtW5.js} +2 -2
- package/dist/{ButtonTooltip.ce-CtHo2Dwx.js → ButtonTooltip.ce-BnJlaEqx.js} +8 -8
- package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js → Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js} +16 -14
- package/dist/FocusManager.ce-DHXwg6WZ.js +131 -0
- package/dist/{LLMMessage.ce-Bdmf0R1g.js → LLMMessage.ce-jLEqjxsl.js} +11 -11
- package/dist/{Loading.ce-Bh7-h48F.js → Loading.ce-DDtlSLlu.js} +2 -2
- package/dist/{NavigationButton.ce-CA1M8sgV.js → NavigationButton.ce-BnnVUwGr.js} +2 -2
- package/dist/PixMailMessage.ce-oCccQFGV.js +261 -0
- package/dist/Popin.ce-Co12R3C8.js +75 -0
- package/dist/{Retry-BZf7NJz9.js → Retry-C7C78Wpj.js} +2 -2
- package/dist/{Stepper.ce-B1yDelzC.js → Stepper.ce-Dttf3Dsf.js} +4 -4
- package/dist/{_plugin-vue_export-helper-D0N_62VD.js → _plugin-vue_export-helper-B-lVMTio.js} +1777 -1713
- package/dist/components/analyse-mails-phishing.ce.js.js +14 -14
- package/dist/components/calcul-impact.ce.js.js +20 -20
- package/dist/components/capacity-calculation.ce.js.js +22 -22
- package/dist/components/clickable-image.ce.js.js +30 -30
- package/dist/components/complete-phrase.ce.js.js +18 -18
- package/dist/components/flip-cards.ce.js.js +10 -10
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +3 -3
- package/dist/components/llm-compare-messages.ce.js.js +7 -7
- package/dist/components/llm-messages.ce.js.js +7 -7
- package/dist/components/llm-prompt-select.ce.js.js +5 -5
- package/dist/components/mdp-classement.ce.js.js +29 -29
- package/dist/components/message-conversation.ce.js.js +34 -34
- package/dist/components/mobile-shell.ce.js.js +8 -8
- package/dist/components/phishing-message.ce.js.js +128 -128
- package/dist/components/phishing-notification.ce.js.js +30 -30
- package/dist/components/pix-anonymisation.ce.js.js +27 -27
- package/dist/components/pix-article.ce.js.js +5 -5
- package/dist/components/pix-carousel.ce.js.js +38 -38
- package/dist/components/pix-combinaisons.ce.js.js +93 -92
- package/dist/components/pix-cursor.ce.js.js +26 -26
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +66 -64
- package/dist/components/qcm-deepfake.ce.js.js +16 -16
- package/dist/components/quiz-stepper.ce.js.js +21 -21
- package/dist/components/select-conversation.ce.js.js +11 -11
- package/dist/components/template-mail.ce.js.js +4 -4
- package/dist/components/test-top-mdp.ce.js.js +86 -79
- package/dist/components/trouver-mdp-rs.ce.js.js +334 -418
- package/dist/{i18n-ekiZvzf6.js → i18n-CsT7k7zW.js} +329 -316
- package/dist/{i18n-lite-t2jNOu0C.js → i18n-lite-BIJ2LVs6.js} +19 -12
- package/dist/{image-quiz.ce-DqalWHKw.js → image-quiz.ce-BK6-8YF1.js} +9 -9
- package/dist/{index-BpqxFmwz.js → index-BaI3Qosp.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/props.examples.js +13 -13
- package/dist/schema.js +77 -67
- package/dist/shadow-dom-Bouq869n.js +14 -0
- package/dist/{temporal.utils-7Uvm62ss.js → temporal.utils-DgmGPVba.js} +537 -536
- package/package.json +1 -1
- package/dist/PixMailMessage.ce-XPDbJiyC.js +0 -219
- package/dist/Popin.ce-DUQ7-GMT.js +0 -197
- package/dist/shadow-dom-C3AZuSZe.js +0 -9
|
@@ -1,168 +1,175 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as
|
|
3
|
-
import { b as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { i as ve, a0 as M, a1 as F, a2 as ge, T as be, r as y, a3 as he, g as c, b as P, U as I, h as _e, o as v, c as k, y as ye, a as n, v as S, E as xe, x as p, t as E, H as we, Q as ke, f as B, l as A, D as _, V as Te, _ as q, K as Me, F as U, C as w, e as Ce, z as Be, J as Ae, q as Se, m as Le, d as Pe } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
2
|
+
import { u as z, a as qe, i as Y, b as Fe } from "../i18n-CsT7k7zW.js";
|
|
3
|
+
import { b as je } from "../normalize-props-DH0oPBss.js";
|
|
4
|
+
import { p as Ve } from "../shadow-dom-Bouq869n.js";
|
|
5
|
+
import { _ as O, a as W, F as ze } from "../Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js";
|
|
6
|
+
import { P as Re } from "../Popin.ce-Co12R3C8.js";
|
|
7
|
+
const He = {}, Ne = {}, Ie = {}, Ee = {}, Ue = {}, Ye = {
|
|
8
|
+
"trouver-mdp-rs": { connection: "Connexion", login: "Identifiant", password: "Mot de passe", submitButton: "Se connecter", retryButtonLabel: "Réessayer", userProfile: { subscriptions: "{count} abonnements", followers: "{count} abonnés" } }
|
|
9
|
+
}, Oe = {}, We = {};
|
|
10
|
+
var D = Object.defineProperty, De = (e, o) => {
|
|
11
|
+
let t = {};
|
|
12
|
+
for (var a in e) D(t, a, {
|
|
13
|
+
get: e[a],
|
|
14
|
+
enumerable: !0
|
|
15
|
+
});
|
|
16
|
+
return D(t, Symbol.toStringTag, { value: "Module" }), t;
|
|
17
|
+
}, ee = y([]), te = y(null), ae = y(null), oe = y(null), ne = y(null), u = he({ current: "" });
|
|
18
|
+
const V = [], Xe = y(!1), T = M(ee), Ge = M(te), Ze = M(ae), Qe = M(oe), Ke = M(ne), g = M(u), Je = (e) => {
|
|
19
|
+
ee.value = e;
|
|
20
|
+
}, $e = (e) => {
|
|
21
|
+
te.value = e;
|
|
22
|
+
}, et = (e) => {
|
|
23
|
+
ae.value = e;
|
|
24
|
+
}, tt = (e) => {
|
|
11
25
|
oe.value = e;
|
|
12
|
-
},
|
|
26
|
+
}, at = (e) => {
|
|
13
27
|
ne.value = e;
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ie.value = e;
|
|
18
|
-
}, Qe = (e) => {
|
|
19
|
-
se.value = e;
|
|
20
|
-
}, le = (e = Oe.value) => {
|
|
21
|
-
f.current = e;
|
|
22
|
-
const o = B.value.findIndex(
|
|
23
|
-
(a) => a.name === e
|
|
24
|
-
), t = B.value.map((a) => a.name);
|
|
28
|
+
}, re = (e = Ge.value) => {
|
|
29
|
+
u.current = e;
|
|
30
|
+
let o = T.value.findIndex((a) => a.name === e), t = T.value.map((a) => a.name);
|
|
25
31
|
for (let a = 0; a < t.length; a++) {
|
|
26
32
|
if (a > 0 && a < t.length - 1) {
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
let r = t[a] + "Minus", s = t[a] + "Plus";
|
|
34
|
+
u[r] = o <= a, u[s] = o >= a;
|
|
29
35
|
}
|
|
30
|
-
|
|
36
|
+
u[t[a]] = t[a] === e;
|
|
31
37
|
}
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
for (let o of e)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
f.motionPreference = e, f.isMotion = e === "no-preference", f.isInert = e === "reduce";
|
|
38
|
+
}, ot = () => {
|
|
39
|
+
let e = Object.keys(u);
|
|
40
|
+
for (let o of e) delete u[o];
|
|
41
|
+
re(), ie(), le(), se();
|
|
42
|
+
}, ie = (e = Ze.value) => {
|
|
43
|
+
u.orientation = e, u.isLandscape = e === "landscape", u.isPortrait = e === "portrait";
|
|
44
|
+
}, le = (e = Qe.value || "light") => {
|
|
45
|
+
u.theme = e, u.isDark = e === "dark", u.isLight = e === "light";
|
|
46
|
+
}, se = (e = Ke.value || "no-preference") => {
|
|
47
|
+
u.motionPreference = e, u.isMotion = e === "no-preference", u.isInert = e === "reduce";
|
|
43
48
|
};
|
|
44
|
-
function
|
|
45
|
-
for (;
|
|
46
|
-
|
|
49
|
+
function nt() {
|
|
50
|
+
for (; V.length > 0; ) {
|
|
51
|
+
let e = V.shift();
|
|
47
52
|
if (e && typeof e == "object") {
|
|
48
|
-
|
|
53
|
+
let { mql: o, cb: t } = e;
|
|
49
54
|
o.addEventListener && typeof o.addEventListener == "function" ? o.removeEventListener("change", t) : o.removeListener(t);
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
55
|
-
(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[o.name]: s
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
{}
|
|
62
|
-
);
|
|
58
|
+
function rt() {
|
|
59
|
+
return T.value.reduce((e, o, t, a) => {
|
|
60
|
+
let r = `(min-width: ${o.min}px)`, s = t < a.length - 1 ? `(max-width: ${a[t + 1].min - 1}px)` : null, i = r + (s ? " and " + s : "");
|
|
61
|
+
return Object.assign(e, { [o.name]: i });
|
|
62
|
+
}, {});
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function L(e, o) {
|
|
65
65
|
if (typeof window > "u" || !window.matchMedia) return !1;
|
|
66
|
-
if (typeof window < "u" && !window.matchMedia)
|
|
67
|
-
return console.error(
|
|
68
|
-
"Vue3 Mq: No MatchMedia support detected in this browser. Responsive breakpoints not available."
|
|
69
|
-
), !1;
|
|
66
|
+
if (typeof window < "u" && !window.matchMedia) return console.error("Vue3 Mq: No MatchMedia support detected in this browser. Responsive breakpoints not available."), !1;
|
|
70
67
|
{
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
Xe.value = !0;
|
|
69
|
+
let t = window.matchMedia(e), a = ({ matches: r }) => {
|
|
73
70
|
r && o();
|
|
74
71
|
};
|
|
75
|
-
|
|
72
|
+
V.push({
|
|
73
|
+
mql: t,
|
|
74
|
+
cb: a
|
|
75
|
+
}), t.addEventListener && typeof t.addEventListener == "function" ? t.addEventListener("change", a) : t.addListener(a), a(t);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const t = o.value.map((a) => a.name);
|
|
78
|
+
var x = (e) => T.value.some((o) => o.name === e);
|
|
79
|
+
const X = (e, o) => {
|
|
80
|
+
let t = o.value.map((a) => a.name);
|
|
82
81
|
if (e) {
|
|
83
|
-
if (Array.isArray(e))
|
|
84
|
-
return e.filter((a) => w(a));
|
|
82
|
+
if (Array.isArray(e)) return e.filter((a) => x(a));
|
|
85
83
|
if (typeof e == "string" && /\w+\+$/.test(e)) {
|
|
86
|
-
if (e = e.replace(/\+$/, ""),
|
|
87
|
-
|
|
88
|
-
`Vue3 Mq: ${e} is not a valid breakpoint key. Invalid range.`
|
|
89
|
-
), t;
|
|
90
|
-
const a = o.value.findIndex((r) => r.name === e);
|
|
84
|
+
if (e = e.replace(/\+$/, ""), x(e) === !1) return console.error(`Vue3 Mq: ${e} is not a valid breakpoint key. Invalid range.`), t;
|
|
85
|
+
let a = o.value.findIndex((r) => r.name === e);
|
|
91
86
|
return o.value.slice(a).map((r) => r.name);
|
|
92
87
|
} else if (typeof e == "string" && /\w+-$/.test(e)) {
|
|
93
|
-
if (e = e.replace(/-$/, ""),
|
|
94
|
-
|
|
95
|
-
`Vue3 Mq: ${e} is not a valid breakpoint key. Invalid range.`
|
|
96
|
-
), t;
|
|
97
|
-
const a = o.value.findIndex((r) => r.name === e);
|
|
88
|
+
if (e = e.replace(/-$/, ""), x(e) === !1) return console.error(`Vue3 Mq: ${e} is not a valid breakpoint key. Invalid range.`), t;
|
|
89
|
+
let a = o.value.findIndex((r) => r.name === e);
|
|
98
90
|
return o.value.slice(0, a + 1).map((r) => r.name);
|
|
99
91
|
} else if (typeof e == "string" && /^\w+-\w+$/.test(e)) {
|
|
100
|
-
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return console.error(
|
|
107
|
-
`Vue3 Mq: ${r} is not a valid breakpoint key. Invalid range.`
|
|
108
|
-
), t;
|
|
109
|
-
const i = o.value.findIndex((l) => l.name === a), s = o.value.findIndex((l) => l.name === r);
|
|
110
|
-
return o.value.slice(i, s + 1).map((l) => l.name);
|
|
111
|
-
} else return typeof e == "string" && w(e) === !0 ? [e] : t;
|
|
92
|
+
let [a, r] = e.split("-");
|
|
93
|
+
if (x(a) === !1) return console.error(`Vue3 Mq: ${a} is not a valid breakpoint key. Invalid range.`), t;
|
|
94
|
+
if (x(r) === !1) return console.error(`Vue3 Mq: ${r} is not a valid breakpoint key. Invalid range.`), t;
|
|
95
|
+
let s = o.value.findIndex((l) => l.name === a), i = o.value.findIndex((l) => l.name === r);
|
|
96
|
+
return o.value.slice(s, i + 1).map((l) => l.name);
|
|
97
|
+
} else return typeof e == "string" && x(e) === !0 ? [e] : t;
|
|
112
98
|
} else return t;
|
|
113
|
-
},
|
|
114
|
-
|
|
99
|
+
}, G = (e, o) => {
|
|
100
|
+
let t = [];
|
|
115
101
|
return !e && !o ? ["landscape", "portrait"] : (e && t.push("landscape"), o && t.push("portrait"), t);
|
|
116
|
-
},
|
|
117
|
-
|
|
102
|
+
}, Z = (e, o) => {
|
|
103
|
+
let t = [];
|
|
118
104
|
return !o && !e ? ["light", "dark"] : (o && t.push("light"), e && t.push("dark"), t);
|
|
119
|
-
},
|
|
120
|
-
|
|
105
|
+
}, Q = (e, o) => {
|
|
106
|
+
let t = [];
|
|
121
107
|
return !e && !o ? ["reduce", "no-preference"] : (e && t.push("reduce"), o && t.push("no-preference"), t);
|
|
122
|
-
}
|
|
108
|
+
};
|
|
109
|
+
var j = /* @__PURE__ */ De({
|
|
110
|
+
bootstrap3: () => st,
|
|
111
|
+
bootstrap4: () => lt,
|
|
112
|
+
bootstrap5: () => it,
|
|
113
|
+
bulma: () => gt,
|
|
114
|
+
devices: () => pt,
|
|
115
|
+
mui: () => vt,
|
|
116
|
+
tailwind: () => ft,
|
|
117
|
+
vuetify: () => ut,
|
|
118
|
+
vuetify3: () => ct,
|
|
119
|
+
vuetify4: () => dt,
|
|
120
|
+
wordpress: () => mt
|
|
121
|
+
});
|
|
122
|
+
const it = {
|
|
123
123
|
xs: 0,
|
|
124
124
|
sm: 576,
|
|
125
125
|
md: 768,
|
|
126
126
|
lg: 992,
|
|
127
127
|
xl: 1200,
|
|
128
128
|
xxl: 1400
|
|
129
|
-
},
|
|
129
|
+
}, lt = {
|
|
130
130
|
xs: 0,
|
|
131
131
|
sm: 576,
|
|
132
132
|
md: 768,
|
|
133
133
|
lg: 992,
|
|
134
134
|
xl: 1200
|
|
135
|
-
},
|
|
135
|
+
}, st = {
|
|
136
136
|
xs: 0,
|
|
137
137
|
sm: 768,
|
|
138
138
|
md: 992,
|
|
139
139
|
lg: 1200
|
|
140
|
-
},
|
|
140
|
+
}, dt = {
|
|
141
|
+
xs: 0,
|
|
142
|
+
sm: 600,
|
|
143
|
+
md: 840,
|
|
144
|
+
lg: 1145,
|
|
145
|
+
xl: 1545,
|
|
146
|
+
xxl: 2138
|
|
147
|
+
}, ct = {
|
|
141
148
|
xs: 0,
|
|
142
149
|
sm: 600,
|
|
143
150
|
md: 960,
|
|
144
151
|
lg: 1280,
|
|
145
152
|
xl: 1920,
|
|
146
153
|
xxl: 2560
|
|
147
|
-
},
|
|
154
|
+
}, ut = {
|
|
148
155
|
xs: 0,
|
|
149
156
|
sm: 600,
|
|
150
157
|
md: 960,
|
|
151
158
|
lg: 1264,
|
|
152
159
|
xl: 1904
|
|
153
|
-
},
|
|
160
|
+
}, ft = {
|
|
154
161
|
xs: 0,
|
|
155
162
|
sm: 640,
|
|
156
163
|
md: 768,
|
|
157
164
|
lg: 1024,
|
|
158
165
|
xl: 1280,
|
|
159
166
|
xxl: 1536
|
|
160
|
-
},
|
|
167
|
+
}, pt = {
|
|
161
168
|
phone: 0,
|
|
162
169
|
tablet: 768,
|
|
163
170
|
laptop: 1370,
|
|
164
171
|
desktop: 1906
|
|
165
|
-
},
|
|
172
|
+
}, mt = {
|
|
166
173
|
mobile: 0,
|
|
167
174
|
small: 600,
|
|
168
175
|
medium: 782,
|
|
@@ -170,53 +177,37 @@ const w = (e) => B.value.some(
|
|
|
170
177
|
xlarge: 1080,
|
|
171
178
|
wide: 1280,
|
|
172
179
|
huge: 1440
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
180
|
+
}, vt = {
|
|
181
|
+
xs: 0,
|
|
182
|
+
sm: 600,
|
|
183
|
+
md: 900,
|
|
184
|
+
lg: 1200,
|
|
185
|
+
xl: 1536
|
|
186
|
+
}, gt = {
|
|
187
|
+
mobile: 0,
|
|
188
|
+
tablet: 768,
|
|
189
|
+
desktop: 1024,
|
|
190
|
+
widescreen: 1216,
|
|
191
|
+
fullhd: 1408
|
|
192
|
+
}, bt = (e) => {
|
|
193
|
+
if (typeof e == "string" && j[e]) return j[e];
|
|
185
194
|
{
|
|
186
|
-
|
|
187
|
-
return console.error(
|
|
188
|
-
`Vue3 Mq: "${e}" is not a valid preset. Available options are: ${o.join(
|
|
189
|
-
", "
|
|
190
|
-
)}`
|
|
191
|
-
), !1;
|
|
195
|
+
let o = Object.keys(j);
|
|
196
|
+
return console.error(`Vue3 Mq: "${e}" is not a valid preset. Available options are: ${o.join(", ")}`), !1;
|
|
192
197
|
}
|
|
193
|
-
},
|
|
194
|
-
`Vue3 Mq: "${e}" is not a valid default orientation. Reverting to unset value.`
|
|
195
|
-
), null) : e, ct = (e = null) => ["dark", "light"].includes(e) === !1 && e !== null ? (console.error(
|
|
196
|
-
`Vue3 Mq: "${e}" is not a valid default theme. Reverting to unset value.`
|
|
197
|
-
), null) : e, ut = (e = null) => ["no-preference", "reduce"].includes(e) === !1 && e !== null ? (console.error(
|
|
198
|
-
`Vue3 Mq: "${e}" is not a valid default motion preference. Reverting to unset value.`
|
|
199
|
-
), null) : e, $ = (e) => {
|
|
198
|
+
}, ht = (e) => ["landscape", "portrait"].includes(e) === !1 ? (console.error(`Vue3 Mq: "${e}" is not a valid default orientation. Reverting to unset value.`), null) : e, _t = (e = null) => ["dark", "light"].includes(e) === !1 && e !== null ? (console.error(`Vue3 Mq: "${e}" is not a valid default theme. Reverting to unset value.`), null) : e, yt = (e = null) => ["no-preference", "reduce"].includes(e) === !1 && e !== null ? (console.error(`Vue3 Mq: "${e}" is not a valid default motion preference. Reverting to unset value.`), null) : e, K = (e) => {
|
|
200
199
|
if (!e || typeof e != "object") return !1;
|
|
201
|
-
|
|
200
|
+
let o = [];
|
|
202
201
|
for (let t in e) {
|
|
203
|
-
|
|
202
|
+
let a = parseFloat(e[t]);
|
|
204
203
|
if (!t || typeof t != "string") {
|
|
205
|
-
console.warn(
|
|
206
|
-
`Vue3 Mq: Invalid or missing breakpoint key (${JSON.stringify(
|
|
207
|
-
t
|
|
208
|
-
)}). Skipping.`
|
|
209
|
-
);
|
|
204
|
+
console.warn(`Vue3 Mq: Invalid or missing breakpoint key (${JSON.stringify(t)}). Skipping.`);
|
|
210
205
|
continue;
|
|
211
206
|
} else if (/^[^a-z]/i.test(t) || /[^a-zA-Z0-9_]/.test(t)) {
|
|
212
|
-
console.warn(
|
|
213
|
-
`Vue3 Mq: "${t}" is an invalid breakpoint key. Breakpoint keys must start with a letter and contain only alphanumeric characters and underscores. Skipping.`
|
|
214
|
-
);
|
|
207
|
+
console.warn(`Vue3 Mq: "${t}" is an invalid breakpoint key. Breakpoint keys must start with a letter and contain only alphanumeric characters and underscores. Skipping.`);
|
|
215
208
|
continue;
|
|
216
209
|
} else if (!a && a !== 0 || isNaN(a) || a < 0) {
|
|
217
|
-
console.warn(
|
|
218
|
-
`Vue3 Mq: "${t}: ${e[t]}" is not a valid breakpoint. Breakpoints should be a number of zero or above. Skipping.`
|
|
219
|
-
);
|
|
210
|
+
console.warn(`Vue3 Mq: "${t}: ${e[t]}" is not a valid breakpoint. Breakpoints should be a number of zero or above. Skipping.`);
|
|
220
211
|
continue;
|
|
221
212
|
}
|
|
222
213
|
o.push({
|
|
@@ -224,318 +215,231 @@ const w = (e) => B.value.some(
|
|
|
224
215
|
min: a
|
|
225
216
|
});
|
|
226
217
|
}
|
|
227
|
-
return o.some(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
), new Set(
|
|
232
|
-
o.map((t) => t.min)
|
|
233
|
-
).size < o.length && console.warn(
|
|
234
|
-
"Vue3 Mq: Your breakpoint configuration contains duplicate values. Behaviour may be unpredictable."
|
|
235
|
-
), o.length === 0 ? !1 : o.sort((t, a) => t.min - a.min);
|
|
236
|
-
}, ft = (e) => {
|
|
237
|
-
const o = e.split(":"), t = {};
|
|
238
|
-
for (let a of o)
|
|
239
|
-
/\D/.test(a) !== !1 && (["landscape", "portrait"].includes(a) ? t.slotOrientation = a : ["light", "dark"].includes(a) ? t.slotTheme = a : ["inert", "motion"].includes(a) ? t.slotMotion = a : t.slotBp = a);
|
|
218
|
+
return o.some((t) => t.min === 0) || console.warn("Vue3 Mq: You have not declared a breakpoint with a minimum value of 0. There may be screen sizes to which Vue3Mq does not respond."), new Set(o.map((t) => t.min)).size < o.length && console.warn("Vue3 Mq: Your breakpoint configuration contains duplicate values. Behaviour may be unpredictable."), o.length === 0 ? !1 : o.sort((t, a) => t.min - a.min);
|
|
219
|
+
}, xt = (e) => {
|
|
220
|
+
let o = e.split(":"), t = {};
|
|
221
|
+
for (let a of o) /\D/.test(a) !== !1 && (["landscape", "portrait"].includes(a) ? t.slotOrientation = a : ["light", "dark"].includes(a) ? t.slotTheme = a : ["inert", "motion"].includes(a) ? t.slotMotion = a : t.slotBp = a);
|
|
240
222
|
return t;
|
|
241
|
-
}
|
|
223
|
+
};
|
|
224
|
+
var wt = {
|
|
242
225
|
name: "fade",
|
|
243
226
|
mode: "out-in"
|
|
244
|
-
},
|
|
227
|
+
}, kt = {
|
|
245
228
|
name: "MqResponsive",
|
|
246
229
|
props: {
|
|
247
|
-
/**
|
|
248
|
-
* Breakpoints to target when rendering component
|
|
249
|
-
*/
|
|
250
230
|
target: [String, Array],
|
|
251
|
-
/**
|
|
252
|
-
* Only render in a landscape view
|
|
253
|
-
*/
|
|
254
231
|
landscape: {
|
|
255
232
|
type: Boolean,
|
|
256
233
|
default: !1
|
|
257
234
|
},
|
|
258
|
-
/**
|
|
259
|
-
* Only render in a portrait view
|
|
260
|
-
*/
|
|
261
235
|
portrait: {
|
|
262
236
|
type: Boolean,
|
|
263
237
|
default: !1
|
|
264
238
|
},
|
|
265
|
-
/**
|
|
266
|
-
* Only render when dark mode is preferred
|
|
267
|
-
*/
|
|
268
239
|
dark: {
|
|
269
240
|
type: Boolean,
|
|
270
241
|
default: !1
|
|
271
242
|
},
|
|
272
|
-
/**
|
|
273
|
-
* Only render when light mode is preferred
|
|
274
|
-
*/
|
|
275
243
|
light: {
|
|
276
244
|
type: Boolean,
|
|
277
245
|
default: !1
|
|
278
246
|
},
|
|
279
|
-
/**
|
|
280
|
-
* Only render when reduced motion is preferred
|
|
281
|
-
*/
|
|
282
247
|
inert: {
|
|
283
248
|
type: Boolean,
|
|
284
249
|
default: !1
|
|
285
250
|
},
|
|
286
|
-
/**
|
|
287
|
-
* Only render when normal motion is preferred
|
|
288
|
-
*/
|
|
289
251
|
motion: {
|
|
290
252
|
type: Boolean,
|
|
291
253
|
default: !1
|
|
292
254
|
},
|
|
293
|
-
/**
|
|
294
|
-
* HTML tag to use when rendering
|
|
295
|
-
*/
|
|
296
255
|
tag: {
|
|
297
256
|
type: String,
|
|
298
257
|
default: "div"
|
|
299
258
|
},
|
|
300
|
-
/**
|
|
301
|
-
* When in group mode, the HTML tag to use on list items
|
|
302
|
-
*/
|
|
303
259
|
listTag: {
|
|
304
260
|
type: String,
|
|
305
261
|
default: "div"
|
|
306
262
|
},
|
|
307
|
-
/**
|
|
308
|
-
* Render items as part of a transition group
|
|
309
|
-
*/
|
|
310
263
|
group: {
|
|
311
264
|
type: Boolean,
|
|
312
265
|
default: !1
|
|
313
266
|
}
|
|
314
267
|
},
|
|
315
268
|
setup(e, { attrs: o, emit: t, slots: a }) {
|
|
316
|
-
|
|
317
|
-
e.target,
|
|
318
|
-
B
|
|
319
|
-
)), i = u(() => Q(
|
|
320
|
-
e.landscape,
|
|
321
|
-
e.portrait
|
|
322
|
-
)), s = u(() => K(e.dark, e.light)), l = u(() => J(e.inert, e.motion)), d = u(() => r.value.includes(b.current) && i.value.includes(b.orientation) && s.value.includes(b.theme) && l.value.includes(b.motionPreference)), p = (c) => {
|
|
269
|
+
let r = c(() => X(e.target, T)), s = c(() => G(e.landscape, e.portrait)), i = c(() => Z(e.dark, e.light)), l = c(() => Q(e.inert, e.motion)), b = c(() => r.value.includes(g.current) && s.value.includes(g.orientation) && i.value.includes(g.theme) && l.value.includes(g.motionPreference)), h = (d) => {
|
|
323
270
|
if (!e.group && a.length > 0) return a;
|
|
324
|
-
|
|
325
|
-
for (let
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
B
|
|
329
|
-
)), M = u(() => Q(
|
|
330
|
-
g === "landscape",
|
|
331
|
-
g === "portrait"
|
|
332
|
-
)), y = u(() => K(
|
|
333
|
-
q === "dark",
|
|
334
|
-
q === "light"
|
|
335
|
-
)), me = u(() => J(
|
|
336
|
-
V === "inert",
|
|
337
|
-
V === "motion"
|
|
338
|
-
));
|
|
339
|
-
u(() => I.value.includes(
|
|
340
|
-
b.current
|
|
341
|
-
) && M.value.includes(
|
|
342
|
-
b.orientation
|
|
343
|
-
) && y.value.includes(b.theme) && me.value.includes(
|
|
344
|
-
b.motionPreference
|
|
345
|
-
)).value === !0 && h.push(
|
|
346
|
-
N(
|
|
347
|
-
c || a[x],
|
|
348
|
-
{ key: x },
|
|
349
|
-
c ? a[x]() : void 0
|
|
350
|
-
)
|
|
351
|
-
);
|
|
271
|
+
let m = [];
|
|
272
|
+
for (let f in a) {
|
|
273
|
+
let { slotBp: C, slotOrientation: R, slotTheme: H, slotMotion: N } = xt(f), ue = c(() => X(C, T)), fe = c(() => G(R === "landscape", R === "portrait")), pe = c(() => Z(H === "dark", H === "light")), me = c(() => Q(N === "inert", N === "motion"));
|
|
274
|
+
c(() => ue.value.includes(g.current) && fe.value.includes(g.orientation) && pe.value.includes(g.theme) && me.value.includes(g.motionPreference)).value === !0 && m.push(F(d || a[f], { key: f }, d ? a[f]() : void 0));
|
|
352
275
|
}
|
|
353
|
-
return
|
|
276
|
+
return m.length > 0 ? m : void 0;
|
|
354
277
|
};
|
|
355
|
-
return a.default ? () =>
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
pt,
|
|
359
|
-
o,
|
|
360
|
-
{ tag: e.tag }
|
|
361
|
-
), h = e.group ? be : he;
|
|
362
|
-
return N(
|
|
363
|
-
h,
|
|
364
|
-
c,
|
|
365
|
-
() => p(e.listTag)
|
|
366
|
-
);
|
|
278
|
+
return a.default ? () => b.value ? F(e.tag, { ...o }, a.default()) : void 0 : () => {
|
|
279
|
+
let d = Object.assign({}, wt, o, { tag: e.tag });
|
|
280
|
+
return F(e.group ? ge : be, d, () => h(e.listTag));
|
|
367
281
|
};
|
|
368
282
|
}
|
|
369
283
|
};
|
|
370
|
-
function
|
|
371
|
-
|
|
372
|
-
if (
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
z(s, () => {
|
|
383
|
-
le(i);
|
|
284
|
+
function J({ breakpoints: e, mergeBreakpoints: o = {}, preset: t }) {
|
|
285
|
+
let a = t ? bt(t) : !1, r = e ? K(e) : !1;
|
|
286
|
+
if (a === !1 && !r) throw TypeError("Vue3 Mq: You must provide a valid preset, or valid breakpoint settings.");
|
|
287
|
+
Je(r || K({
|
|
288
|
+
...a,
|
|
289
|
+
...o
|
|
290
|
+
})), nt(), ot();
|
|
291
|
+
let s = rt();
|
|
292
|
+
for (let i in s) {
|
|
293
|
+
let l = s[i];
|
|
294
|
+
L(l, () => {
|
|
295
|
+
re(i);
|
|
384
296
|
});
|
|
385
297
|
}
|
|
386
298
|
["portrait", "landscape"].forEach((i) => {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
};
|
|
390
|
-
z(`(orientation: ${i})`, s);
|
|
299
|
+
L(`(orientation: ${i})`, () => {
|
|
300
|
+
ie(i);
|
|
301
|
+
});
|
|
391
302
|
}), ["light", "dark"].forEach((i) => {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
};
|
|
395
|
-
z(`(prefers-color-scheme: ${i})`, s);
|
|
303
|
+
L(`(prefers-color-scheme: ${i})`, () => {
|
|
304
|
+
le(i);
|
|
305
|
+
});
|
|
396
306
|
}), ["reduce", "no-preference"].forEach((i) => {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
};
|
|
400
|
-
z(`(prefers-reduced-motion: ${i})`, s);
|
|
307
|
+
L(`(prefers-reduced-motion: ${i})`, () => {
|
|
308
|
+
se(i);
|
|
309
|
+
});
|
|
401
310
|
});
|
|
402
311
|
}
|
|
403
|
-
function
|
|
404
|
-
|
|
405
|
-
if (e)
|
|
406
|
-
|
|
407
|
-
throw new Error(
|
|
408
|
-
"Vue3Mq is not installed in this app. Please follow the installation instructions and try again."
|
|
409
|
-
);
|
|
312
|
+
function de() {
|
|
313
|
+
let e = ve("mq");
|
|
314
|
+
if (e) return e;
|
|
315
|
+
throw Error("Vue3Mq is not installed in this app. Please follow the installation instructions and try again.");
|
|
410
316
|
}
|
|
411
|
-
|
|
412
|
-
preset: o = "bootstrap5",
|
|
413
|
-
breakpoints: t,
|
|
414
|
-
defaultBreakpoint: a,
|
|
415
|
-
defaultOrientation: r = "landscape",
|
|
416
|
-
defaultMotion: i = "no-preference",
|
|
417
|
-
defaultTheme: s,
|
|
418
|
-
global: l = !1
|
|
419
|
-
} = {}) => {
|
|
317
|
+
var Tt = { install: (e, { preset: o = "bootstrap5", breakpoints: t, mergeBreakpoints: a, defaultBreakpoint: r, defaultOrientation: s = "landscape", defaultMotion: i = "no-preference", defaultTheme: l, global: b = !1 } = {}) => {
|
|
420
318
|
try {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
319
|
+
let h = ht(s), d = _t(l), m = yt(i);
|
|
320
|
+
$e(r), et(h), tt(d), at(m), e.provide("mq", g), e.provide("updateBreakpoints", J), b === !0 && (e.component("MqResponsive", kt), e.config.globalProperties.$mq = g), J({
|
|
321
|
+
breakpoints: t,
|
|
322
|
+
mergeBreakpoints: a,
|
|
323
|
+
preset: o
|
|
324
|
+
});
|
|
325
|
+
} catch (h) {
|
|
326
|
+
console.error(h);
|
|
425
327
|
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
}, bt = "data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2017C0%207.61116%207.61116%200%2017%200C26.3888%200%2034%207.61116%2034%2017C34%2026.3888%2026.3888%2034%2017%2034C7.61116%2034%200%2026.3888%200%2017Z'%20fill='%232C75FF'/%3e%3cpath%20d='M17%2019.25V20.75M12.5%2023.75H21.5C21.8978%2023.75%2022.2794%2023.592%2022.5607%2023.3107C22.842%2023.0294%2023%2022.6478%2023%2022.25V17.75C23%2017.3522%2022.842%2016.9706%2022.5607%2016.6893C22.2794%2016.408%2021.8978%2016.25%2021.5%2016.25H12.5C12.1022%2016.25%2011.7206%2016.408%2011.4393%2016.6893C11.158%2016.9706%2011%2017.3522%2011%2017.75V22.25C11%2022.6478%2011.158%2023.0294%2011.4393%2023.3107C11.7206%2023.592%2012.1022%2023.75%2012.5%2023.75ZM20%2016.25V13.25C20%2012.4544%2019.6839%2011.6913%2019.1213%2011.1287C18.5587%2010.5661%2017.7956%2010.25%2017%2010.25C16.2044%2010.25%2015.4413%2010.5661%2014.8787%2011.1287C14.3161%2011.6913%2014%2012.4544%2014%2013.25V16.25H20Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", ht = ["aria-level"], _t = ["src"], xt = { class: "login-form__field" }, yt = { class: "login-form__field__input-container is-disabled" }, wt = ["value"], kt = { class: "login-form__field" }, Ct = ["readonly", "value"], Bt = ["aria-disabled"], Pt = /* @__PURE__ */ R({
|
|
328
|
+
} };
|
|
329
|
+
const Mt = "data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2017C0%207.61116%207.61116%200%2017%200C26.3888%200%2034%207.61116%2034%2017C34%2026.3888%2026.3888%2034%2017%2034C7.61116%2034%200%2026.3888%200%2017Z'%20fill='%232C75FF'/%3e%3cpath%20d='M17%2019.25V20.75M12.5%2023.75H21.5C21.8978%2023.75%2022.2794%2023.592%2022.5607%2023.3107C22.842%2023.0294%2023%2022.6478%2023%2022.25V17.75C23%2017.3522%2022.842%2016.9706%2022.5607%2016.6893C22.2794%2016.408%2021.8978%2016.25%2021.5%2016.25H12.5C12.1022%2016.25%2011.7206%2016.408%2011.4393%2016.6893C11.158%2016.9706%2011%2017.3522%2011%2017.75V22.25C11%2022.6478%2011.158%2023.0294%2011.4393%2023.3107C11.7206%2023.592%2012.1022%2023.75%2012.5%2023.75ZM20%2016.25V13.25C20%2012.4544%2019.6839%2011.6913%2019.1213%2011.1287C18.5587%2010.5661%2017.7956%2010.25%2017%2010.25C16.2044%2010.25%2015.4413%2010.5661%2014.8787%2011.1287C14.3161%2011.6913%2014%2012.4544%2014%2013.25V16.25H20Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Ct = ["aria-level"], Bt = ["src"], At = { class: "login-form__field" }, St = { for: "user" }, Lt = { class: "login-form__field__input-container is-disabled" }, Pt = ["value"], qt = { class: "login-form__field" }, Ft = { for: "password" }, jt = ["readonly"], Vt = ["innerHTML"], zt = ["innerHTML"], Rt = ["aria-disabled"], Ht = /* @__PURE__ */ P({
|
|
429
330
|
__name: "LoginForm.ce",
|
|
430
|
-
props: {
|
|
431
|
-
feedback: { type: Object },
|
|
331
|
+
props: /* @__PURE__ */ Te({
|
|
432
332
|
titleLevel: { type: Number },
|
|
433
|
-
validations: { type: Object }
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
444
|
-
function
|
|
445
|
-
|
|
333
|
+
validations: { type: Object },
|
|
334
|
+
currentFeedback: { type: Object }
|
|
335
|
+
}, {
|
|
336
|
+
password: {},
|
|
337
|
+
passwordModifiers: {},
|
|
338
|
+
currentFeedbackType: {},
|
|
339
|
+
currentFeedbackTypeModifiers: {}
|
|
340
|
+
}),
|
|
341
|
+
emits: ["update:password", "update:currentFeedbackType"],
|
|
342
|
+
setup(e) {
|
|
343
|
+
const { i18next: o } = z(), t = de(), a = I(e, "password"), r = I(e, "currentFeedbackType"), s = _e("passwordInput");
|
|
344
|
+
function i() {
|
|
345
|
+
const d = e.validations.password.localeCompare(a.value, o.language, { sensitivity: "base" }) === 0;
|
|
346
|
+
r.value = d ? "success" : "failure", !d && s.value.focus();
|
|
446
347
|
}
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
reset: q,
|
|
450
|
-
inputPasswordRef: s
|
|
451
|
-
});
|
|
452
|
-
const I = t;
|
|
453
|
-
return (M, y) => (v(), C("form", {
|
|
348
|
+
const l = c(() => r.value === "success"), b = c(() => r.value === "failure"), h = c(() => e.currentFeedback !== void 0 && !t.phone);
|
|
349
|
+
return (d, m) => (v(), k("form", {
|
|
454
350
|
class: "login-form",
|
|
455
|
-
onSubmit:
|
|
351
|
+
onSubmit: m[1] || (m[1] = ye((f) => i(), ["prevent"]))
|
|
456
352
|
}, [
|
|
457
353
|
n("div", {
|
|
458
354
|
role: "heading",
|
|
459
|
-
"aria-level": e.titleLevel
|
|
355
|
+
"aria-level": e.titleLevel,
|
|
460
356
|
class: "login-form__title"
|
|
461
357
|
}, [
|
|
462
358
|
n("img", {
|
|
463
|
-
src:
|
|
359
|
+
src: S(Mt),
|
|
464
360
|
alt: ""
|
|
465
|
-
}, null, 8,
|
|
466
|
-
|
|
467
|
-
], 8,
|
|
468
|
-
n("div",
|
|
469
|
-
|
|
470
|
-
n("div",
|
|
361
|
+
}, null, 8, Bt),
|
|
362
|
+
xe(" " + p(d.$t("trouver-mdp-rs.connection")), 1)
|
|
363
|
+
], 8, Ct),
|
|
364
|
+
n("div", At, [
|
|
365
|
+
n("label", St, p(d.$t("trouver-mdp-rs.login")), 1),
|
|
366
|
+
n("div", Lt, [
|
|
471
367
|
n("input", {
|
|
472
368
|
id: "user",
|
|
473
369
|
value: e.validations.user,
|
|
474
370
|
readonly: "",
|
|
475
371
|
class: "is-disabled"
|
|
476
|
-
}, null, 8,
|
|
372
|
+
}, null, 8, Pt)
|
|
477
373
|
])
|
|
478
374
|
]),
|
|
479
|
-
n("div",
|
|
480
|
-
|
|
375
|
+
n("div", qt, [
|
|
376
|
+
n("label", Ft, p(d.$t("trouver-mdp-rs.password")), 1),
|
|
481
377
|
n("div", {
|
|
482
|
-
class:
|
|
483
|
-
"is-error":
|
|
484
|
-
"is-success":
|
|
485
|
-
"is-disabled":
|
|
378
|
+
class: E(["login-form__field__input-container", {
|
|
379
|
+
"is-error": b.value,
|
|
380
|
+
"is-success": l.value,
|
|
381
|
+
"is-disabled": l.value
|
|
486
382
|
}])
|
|
487
383
|
}, [
|
|
488
|
-
n("input", {
|
|
489
|
-
|
|
384
|
+
we(n("input", {
|
|
385
|
+
ref_key: "passwordInput",
|
|
386
|
+
ref: s,
|
|
490
387
|
id: "password",
|
|
491
|
-
readonly:
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
388
|
+
readonly: l.value,
|
|
389
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => a.value = f)
|
|
390
|
+
}, null, 8, jt), [
|
|
391
|
+
[ke, a.value]
|
|
392
|
+
]),
|
|
393
|
+
l.value ? (v(), B(O, {
|
|
496
394
|
key: 0,
|
|
497
395
|
color: "#007740",
|
|
498
396
|
class: "login-form__field__feedback-icon",
|
|
499
397
|
"aria-hidden": "true"
|
|
500
|
-
})) :
|
|
501
|
-
|
|
398
|
+
})) : A("", !0),
|
|
399
|
+
b.value ? (v(), B(W, {
|
|
502
400
|
key: 1,
|
|
503
401
|
class: "login-form__field__feedback-icon",
|
|
504
402
|
color: "#A94B0C",
|
|
505
403
|
"aria-hidden": "true"
|
|
506
|
-
})) :
|
|
404
|
+
})) : A("", !0)
|
|
507
405
|
], 2)
|
|
508
406
|
]),
|
|
509
|
-
|
|
407
|
+
h.value ? (v(), B(ze, {
|
|
510
408
|
key: 0,
|
|
511
|
-
title: x.value,
|
|
512
409
|
class: "feedback"
|
|
513
410
|
}, {
|
|
514
|
-
icon:
|
|
515
|
-
|
|
411
|
+
icon: _(() => [
|
|
412
|
+
l.value ? (v(), B(O, {
|
|
516
413
|
key: 0,
|
|
517
414
|
class: "feedback__feedback-icon",
|
|
518
415
|
"aria-hidden": "true"
|
|
519
|
-
})) :
|
|
520
|
-
|
|
416
|
+
})) : A("", !0),
|
|
417
|
+
b.value ? (v(), B(W, {
|
|
521
418
|
key: 1,
|
|
522
419
|
class: "feedback__feedback-icon",
|
|
523
420
|
"aria-hidden": "true"
|
|
524
|
-
})) :
|
|
421
|
+
})) : A("", !0)
|
|
422
|
+
]),
|
|
423
|
+
title: _(() => [
|
|
424
|
+
n("span", {
|
|
425
|
+
innerHTML: e.currentFeedback.title
|
|
426
|
+
}, null, 8, Vt)
|
|
525
427
|
]),
|
|
526
|
-
content:
|
|
527
|
-
n("p",
|
|
428
|
+
content: _(() => [
|
|
429
|
+
n("p", {
|
|
430
|
+
innerHTML: e.currentFeedback.content
|
|
431
|
+
}, null, 8, zt)
|
|
528
432
|
]),
|
|
529
433
|
_: 1
|
|
530
|
-
}
|
|
434
|
+
})) : A("", !0),
|
|
531
435
|
n("button", {
|
|
532
436
|
type: "submit",
|
|
533
|
-
"aria-disabled":
|
|
534
|
-
class:
|
|
535
|
-
}, "
|
|
437
|
+
"aria-disabled": l.value,
|
|
438
|
+
class: E({ "is-disabled": l.value })
|
|
439
|
+
}, p(d.$t("trouver-mdp-rs.submitButton")), 11, Rt)
|
|
536
440
|
], 32));
|
|
537
441
|
}
|
|
538
|
-
}),
|
|
442
|
+
}), Nt = ".feedback p[data-v-d34e40f1]{margin:0}.feedback__feedback-icon[data-v-d34e40f1]{width:16px}.feedback[data-v-d34e40f1] .feedback-container__title,.feedback[data-v-d34e40f1] .feedback-container__content{font-size:.75rem}.login-form[data-v-d34e40f1]{display:flex;flex-direction:column;border-radius:14px;flex:1;padding:1.56rem;gap:1rem;border-radius:.875rem;background:#fff;box-shadow:0 2px 5px #2c75ff40,0 -2px 5px #2c75ff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset;height:fit-content}.login-form__title[data-v-d34e40f1]{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;font-family:Nunito,sans-serif;font-size:1.25rem;font-weight:700;line-height:1.75rem}.login-form__field[data-v-d34e40f1]{display:flex;flex-direction:column}.login-form__field label[data-v-d34e40f1]{color:#5e6c84;font-size:.875rem;line-height:1.25rem}.login-form__field__feedback-icon[data-v-d34e40f1]{width:24px}.login-form__field__input-container[data-v-d34e40f1]{display:flex;align-items:center;border-radius:10px;border:1px solid #cdd1d9;background:#f4f5f7;padding:.75rem 1rem}.login-form__field__input-container input[data-v-d34e40f1]{background:transparent;border:none;width:100%}.login-form__field__input-container input[data-v-d34e40f1]:focus{border:none;outline:none}.login-form__field__input-container input.is-disabled[data-v-d34e40f1]{cursor:not-allowed}.login-form__field__input-container.is-error[data-v-d34e40f1]{border:1px solid #d73328;background:#fbebea}.login-form__field__input-container.is-success[data-v-d34e40f1]{border:1px solid #00a85a;background:#e6f6ef}.login-form__field__input-container.is-disabled[data-v-d34e40f1]{cursor:not-allowed}.login-form__field__input-container[data-v-d34e40f1]:focus-within{outline:2px solid black}.login-form button[data-v-d34e40f1]{cursor:pointer;padding:12px 107px 12px 115px;font-size:16px;width:100%;text-wrap:nowrap;padding:.75rem;text-align:center;border-radius:10px;background:#122647;color:#fff;font-size:1rem;border:none}.login-form button.is-disabled[data-v-d34e40f1]{background:#cdd1d9;border:none;cursor:not-allowed}@media screen and (max-width:769px){.login-form[data-v-d34e40f1]{border-radius:14px;background:#fff;box-shadow:0 -20px 60px -15px #2c75ff26;z-index:10}}", It = /* @__PURE__ */ q(Ht, [["styles", [Nt]], ["__scopeId", "data-v-d34e40f1"]]), $ = "data:image/webp;base64,UklGRq4OAABXRUJQVlA4WAoAAAAQAAAAmwAAmwAAQUxQSEADAAABCqqurU1urJJKqhcINurByC+QgRkZB1sqFqmYJT9CkmbBxkX7jj2bmtWdX8BSWCTjD/Xw38FDDf93dOH5vy8iJoARHM+qV/X6t+1OPodkstv6mq+q2ThTvrha1H99Dq2bc3FVKDW93YRe+u1Um7PytYQeC0tXo5i/CQO0eaHB+UrCQIXnsbNNGLRbxPLFNg3ePI/U8ilF0ZYxunlM0aTHZtaEqDYWk1EdostRNCoJEZYqDs/ehEjbswiUEqIt5eBWIeoc1qQJkW8mA7qWEH2xwSyDijaQh6SkD6JOanIAPyZFvW/5+6QqrV/vk7LslSd1vUd1Upi9eUgqe0+WSWnrxXVS23owEb1k0l0TFG86WwXV2VEZlC87eSbaybMu3gT1rYMqAFi1NhIEhG3VAUK2NEsgWjsNCk0rNwFGb+MRB7awTEDaSfkTEpafskhQ+ilbLOyEeQLTjtug4UedJzh5zAoPHlEIHlIcsgCoHXqDiB04S5D6vhKTct9rTLhPMJE90wDq9D+3qPh/Nqg4ySLAWpBXuDi5wMXJGhdm/AsXJz/jY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iyPybYIvQSkurCTK8RXRwqWnzFX9wUxJ5Uk5brMEoLTq+/OagVnCu8z6n6BamKEccLcHOWH2fpLemOSzh+54zYuw/6JqHpHHdWyX20cP8MGAT9aPBJQLMHpWleGNwAAAAA==", Et = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.00016%204.66658C6.7135%204.66658%205.66683%205.71325%205.66683%206.99992C5.66683%208.28658%206.7135%209.33325%208.00016%209.33325C9.28683%209.33325%2010.3335%208.28658%2010.3335%206.99992C10.3335%205.71325%209.28683%204.66658%208.00016%204.66658ZM8.00016%207.99992C7.44883%207.99992%207.00016%207.55125%207.00016%206.99992C7.00016%206.44859%207.44883%205.99992%208.00016%205.99992C8.5515%205.99992%209.00016%206.44859%209.00016%206.99992C9.00016%207.55125%208.5515%207.99992%208.00016%207.99992ZM8.00016%201.33325C4.8755%201.33325%202.3335%203.87525%202.3335%206.99992C2.3335%2010.9779%207.41416%2014.4106%207.63016%2014.5546L8.00016%2014.8013L8.37016%2014.5546C8.58616%2014.4106%2013.6668%2010.9779%2013.6668%206.99992C13.6668%203.87525%2011.1248%201.33325%208.00016%201.33325ZM8.00016%2013.1799C6.89016%2012.3526%203.66683%209.71592%203.66683%206.99992C3.66683%204.61058%205.61083%202.66659%208.00016%202.66659C10.3895%202.66659%2012.3335%204.61058%2012.3335%206.99992C12.3335%209.71525%209.11016%2012.3519%208.00016%2013.1799Z'%20fill='%235E6C84'/%3e%3c/svg%3e", Ut = { class: "header" }, Yt = ["src"], Ot = { class: "header__user" }, Wt = { class: "header__user__name" }, Dt = { class: "header__user__tag" }, Xt = { class: "user-profile" }, Gt = { class: "user-profile__location" }, Zt = ["src"], Qt = { class: "user-profile__metadata" }, Kt = ["aria-setsize"], Jt = ["aria-posinset", "aria-labeledby", "aria-describedby"], $t = ["aria-level"], ea = { class: "article__header__user-container" }, ta = ["src"], aa = { class: "article__header__user" }, oa = { class: "article__header__user__name" }, na = { class: "article__header__user__tag" }, ra = ["datetime"], ia = /* @__PURE__ */ P({
|
|
539
443
|
__name: "SocialNetwork.ce",
|
|
540
444
|
props: {
|
|
541
445
|
userName: { type: String },
|
|
@@ -546,48 +450,48 @@ const vt = (e, {
|
|
|
546
450
|
titleLevel: { type: Number }
|
|
547
451
|
},
|
|
548
452
|
setup(e) {
|
|
549
|
-
const { i18next: o } =
|
|
453
|
+
const { i18next: o } = z();
|
|
550
454
|
function t(a) {
|
|
551
455
|
return Intl.DateTimeFormat(o.language).format(new Date(a));
|
|
552
456
|
}
|
|
553
457
|
return (a, r) => {
|
|
554
|
-
const
|
|
555
|
-
return v(),
|
|
556
|
-
n("header",
|
|
458
|
+
const s = Me("i18next");
|
|
459
|
+
return v(), k(U, null, [
|
|
460
|
+
n("header", Ut, [
|
|
557
461
|
n("img", {
|
|
558
|
-
src:
|
|
462
|
+
src: S($),
|
|
559
463
|
alt: ""
|
|
560
|
-
}, null, 8,
|
|
561
|
-
n("div",
|
|
562
|
-
n("span",
|
|
563
|
-
n("span",
|
|
464
|
+
}, null, 8, Yt),
|
|
465
|
+
n("div", Ot, [
|
|
466
|
+
n("span", Wt, p(e.userName), 1),
|
|
467
|
+
n("span", Dt, p(e.tag), 1)
|
|
564
468
|
])
|
|
565
469
|
]),
|
|
566
|
-
n("section",
|
|
567
|
-
n("p", null,
|
|
568
|
-
n("div",
|
|
470
|
+
n("section", Xt, [
|
|
471
|
+
n("p", null, p(e.bio), 1),
|
|
472
|
+
n("div", Gt, [
|
|
569
473
|
n("img", {
|
|
570
|
-
src:
|
|
474
|
+
src: S(Et),
|
|
571
475
|
alt: ""
|
|
572
|
-
}, null, 8,
|
|
573
|
-
n("p", null,
|
|
476
|
+
}, null, 8, Zt),
|
|
477
|
+
n("p", null, p(e.location), 1)
|
|
574
478
|
]),
|
|
575
|
-
n("div",
|
|
479
|
+
n("div", Qt, [
|
|
576
480
|
n("p", null, [
|
|
577
|
-
|
|
481
|
+
w(s, {
|
|
578
482
|
translation: a.$t("trouver-mdp-rs.userProfile.followers")
|
|
579
483
|
}, {
|
|
580
|
-
count:
|
|
484
|
+
count: _(() => [...r[0] || (r[0] = [
|
|
581
485
|
n("span", { class: "user-profile__metadata__number" }, "146", -1)
|
|
582
486
|
])]),
|
|
583
487
|
_: 1
|
|
584
488
|
}, 8, ["translation"])
|
|
585
489
|
]),
|
|
586
490
|
n("p", null, [
|
|
587
|
-
|
|
491
|
+
w(s, {
|
|
588
492
|
translation: a.$t("trouver-mdp-rs.userProfile.subscriptions")
|
|
589
493
|
}, {
|
|
590
|
-
count:
|
|
494
|
+
count: _(() => [...r[1] || (r[1] = [
|
|
591
495
|
n("span", { class: "user-profile__metadata__number" }, "146", -1)
|
|
592
496
|
])]),
|
|
593
497
|
_: 1
|
|
@@ -601,11 +505,11 @@ const vt = (e, {
|
|
|
601
505
|
"aria-setsize": e.publications.length,
|
|
602
506
|
class: "feed-container"
|
|
603
507
|
}, [
|
|
604
|
-
(v(!0),
|
|
508
|
+
(v(!0), k(U, null, Ce(e.publications, (i, l) => (v(), k("article", {
|
|
605
509
|
key: e.tag + l,
|
|
606
510
|
"aria-posinset": l,
|
|
607
511
|
"aria-labeledby": e.userName,
|
|
608
|
-
"aria-describedby":
|
|
512
|
+
"aria-describedby": i.content,
|
|
609
513
|
"aria-busy": "false",
|
|
610
514
|
tabindex: "0",
|
|
611
515
|
role: "article",
|
|
@@ -616,46 +520,46 @@ const vt = (e, {
|
|
|
616
520
|
"aria-level": e.titleLevel + 2,
|
|
617
521
|
class: "article__header"
|
|
618
522
|
}, [
|
|
619
|
-
n("address",
|
|
523
|
+
n("address", ea, [
|
|
620
524
|
n("img", {
|
|
621
|
-
src:
|
|
525
|
+
src: S($),
|
|
622
526
|
alt: ""
|
|
623
|
-
}, null, 8,
|
|
624
|
-
n("div",
|
|
625
|
-
n("span",
|
|
626
|
-
n("span",
|
|
527
|
+
}, null, 8, ta),
|
|
528
|
+
n("div", aa, [
|
|
529
|
+
n("span", oa, p(e.userName), 1),
|
|
530
|
+
n("span", na, p(e.tag), 1)
|
|
627
531
|
])
|
|
628
532
|
]),
|
|
629
533
|
n("time", {
|
|
630
534
|
class: "article__header__date",
|
|
631
|
-
datetime:
|
|
632
|
-
},
|
|
633
|
-
], 8,
|
|
634
|
-
n("p", null,
|
|
635
|
-
], 8,
|
|
636
|
-
], 8,
|
|
535
|
+
datetime: i.date
|
|
536
|
+
}, p(t(i.date)), 9, ra)
|
|
537
|
+
], 8, $t),
|
|
538
|
+
n("p", null, p(i.content), 1)
|
|
539
|
+
], 8, Jt))), 128))
|
|
540
|
+
], 8, Kt)
|
|
637
541
|
], 64);
|
|
638
542
|
};
|
|
639
543
|
}
|
|
640
|
-
}),
|
|
544
|
+
}), la = ".header[data-v-368fcfaf]{display:flex;gap:8px;padding:1.687rem 2rem 1.188rem 1rem;align-items:flex-start;border-radius:1.5rem 1.5rem 0 0;background:linear-gradient(90deg,#2b7fff26,#00b8db26)}.header img[data-v-368fcfaf]{width:50px}.header__user[data-v-368fcfaf]{display:flex;flex-direction:column}.header__user__name[data-v-368fcfaf]{font-family:Nunito,sans-serif;font-size:1.125rem;font-weight:700;line-height:1.56rem}.header__user__tag[data-v-368fcfaf]{color:#5e6c84;font-size:.875rem;font-weight:400;line-height:1.25rem}.user-profile[data-v-368fcfaf]{display:flex;flex-direction:column;gap:8px;font-size:.875rem;padding:.25rem 1rem}.user-profile p[data-v-368fcfaf]{margin:0}.user-profile__location[data-v-368fcfaf]{display:flex;gap:.25rem;color:#5e6c84;font-weight:400;line-height:1.25rem;margin:0}.user-profile__metadata[data-v-368fcfaf]{display:flex;gap:.75rem}.user-profile__metadata__number[data-v-368fcfaf]{color:#122647;font-weight:700}.user-profile__metadata__text[data-v-368fcfaf]{color:#5e6c84;font-weight:400;margin-left:.25rem}.feed-container[data-v-368fcfaf]{display:flex;flex-direction:column;padding:0 1rem;align-items:center;gap:.625rem;overflow-y:auto;overflow-x:hidden;font-size:.875rem}.feed-container .article[data-v-368fcfaf]{display:flex;padding:.5rem 1rem;flex-direction:column;gap:1rem;border-radius:1rem;border:1px solid #cdd1d9;background:#fff;width:calc(100% - 2rem)}.feed-container .article p[data-v-368fcfaf]{margin:0}.feed-container .article__header[data-v-368fcfaf]{display:flex;justify-content:space-between;gap:.5rem;align-items:flex-start;font-size:.875rem;line-height:1.25rem;font-weight:400;color:#5e6c84}.feed-container .article__header__user-container[data-v-368fcfaf]{display:flex;gap:4px;font-style:normal}.feed-container .article__header__user-container img[data-v-368fcfaf]{width:35px;height:35px}.feed-container .article__header__user[data-v-368fcfaf]{display:flex;flex-direction:column}.feed-container .article__header__user__name[data-v-368fcfaf]{font-family:Nunito,sans-serif;font-weight:700}@media screen and (max-width:769px){.header[data-v-368fcfaf]{border-radius:0}.feed-container[data-v-368fcfaf]{overflow:unset}}", sa = /* @__PURE__ */ q(ia, [["styles", [la]], ["__scopeId", "data-v-368fcfaf"]]), da = /* @__PURE__ */ P({
|
|
641
545
|
__name: "MobileShellWrapper.ce",
|
|
642
546
|
props: {
|
|
643
547
|
backgroundColor: { type: String },
|
|
644
548
|
hasBorderBottom: { type: Boolean }
|
|
645
549
|
},
|
|
646
550
|
setup(e) {
|
|
647
|
-
return (o, t) => (v(),
|
|
648
|
-
style:
|
|
551
|
+
return (o, t) => (v(), k("div", {
|
|
552
|
+
style: Be({
|
|
649
553
|
"--background-color": e.backgroundColor ?? "#f4f5f7",
|
|
650
554
|
"--border-bottom": e.hasBorderBottom ? "10px solid black" : "none"
|
|
651
555
|
}),
|
|
652
556
|
class: "mobile-wrapper"
|
|
653
557
|
}, [
|
|
654
|
-
t[0] || (t[0] =
|
|
655
|
-
|
|
558
|
+
t[0] || (t[0] = Ae('<div class="cache-top" data-v-695582c9><div class="camera" data-v-695582c9></div></div><div class="buttons" data-v-695582c9><div class="button small" data-v-695582c9></div><div class="button long" data-v-695582c9></div><div class="button long" data-v-695582c9></div></div>', 2)),
|
|
559
|
+
Se(o.$slots, "content", {}, void 0, !0)
|
|
656
560
|
], 4));
|
|
657
561
|
}
|
|
658
|
-
}),
|
|
562
|
+
}), ca = '.mobile-wrapper[data-v-695582c9]{border-radius:30px 30px 0 0;background:var(--background-color);height:inherit;position:relative;border:10px solid black;border-bottom:var(--border-bottom);display:flex;flex-direction:column;min-width:300px}.mobile-wrapper .cache-top[data-v-695582c9]{position:absolute;z-index:6;top:0;left:32.5%;width:35%;height:15px;background:#000;border-bottom-left-radius:20px;border-bottom-right-radius:20px}.mobile-wrapper .cache-top .camera[data-v-695582c9]{position:absolute;top:40%;right:5%;width:9%;max-width:10px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#ffffff4d}.mobile-wrapper .cache-top .camera[data-v-695582c9]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:25%;height:25%;border-radius:50%;background:#fff;filter:blur(1px)}.mobile-wrapper .buttons[data-v-695582c9]{position:absolute;top:10%;left:-12.5px;height:20%;width:5px}.mobile-wrapper .button[data-v-695582c9]{width:5px;background:#000;margin-bottom:10px;border-radius:30%}.mobile-wrapper .button.small[data-v-695582c9]{height:15px;margin-bottom:10px}.mobile-wrapper .button.long[data-v-695582c9]{height:30px}.mobile-wrapper[data-v-695582c9]:first-child{border-radius:16px}', ua = /* @__PURE__ */ q(da, [["styles", [ca]], ["__scopeId", "data-v-695582c9"]]), fa = { class: "main-container" }, pa = ["innerHTML"], ma = ["innerHTML"], va = /* @__PURE__ */ P({
|
|
659
563
|
__name: "TrouverMdpRs.ce",
|
|
660
564
|
props: {
|
|
661
565
|
titleLevel: { default: 2, type: Number },
|
|
@@ -664,57 +568,69 @@ const vt = (e, {
|
|
|
664
568
|
userProfile: { type: Object }
|
|
665
569
|
},
|
|
666
570
|
setup(e, { expose: o }) {
|
|
667
|
-
const { t } =
|
|
668
|
-
|
|
669
|
-
|
|
571
|
+
const { t } = z(), a = de();
|
|
572
|
+
Ve();
|
|
573
|
+
const r = y(""), s = y(), i = c(() => s.value === "success"), l = c(() => {
|
|
574
|
+
if (s.value !== void 0)
|
|
575
|
+
return i.value ? e.feedback.success : e.feedback.failed;
|
|
576
|
+
}), b = c(() => l.value !== void 0 && a.phone);
|
|
577
|
+
function h() {
|
|
578
|
+
r.value = "", s.value = void 0;
|
|
670
579
|
}
|
|
671
|
-
function
|
|
672
|
-
|
|
580
|
+
function d() {
|
|
581
|
+
s.value = void 0;
|
|
673
582
|
}
|
|
674
|
-
function x() {
|
|
675
|
-
s.value = !1, i.value.inputPasswordRef.focus();
|
|
676
|
-
}
|
|
677
|
-
const A = u(() => a.phone);
|
|
678
583
|
return o({
|
|
679
|
-
reset:
|
|
680
|
-
}), (
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
584
|
+
reset: h
|
|
585
|
+
}), (m, f) => (v(), k("div", fa, [
|
|
586
|
+
w(It, {
|
|
587
|
+
"current-feedback-type": s.value,
|
|
588
|
+
"onUpdate:currentFeedbackType": f[0] || (f[0] = (C) => s.value = C),
|
|
589
|
+
password: r.value,
|
|
590
|
+
"onUpdate:password": f[1] || (f[1] = (C) => r.value = C),
|
|
591
|
+
"current-feedback": l.value,
|
|
592
|
+
"title-level": e.titleLevel + 1,
|
|
593
|
+
validations: e.validations
|
|
594
|
+
}, null, 8, ["current-feedback-type", "password", "current-feedback", "title-level", "validations"]),
|
|
595
|
+
w(ua, {
|
|
689
596
|
class: "mobile-shell",
|
|
690
597
|
"background-color": "#fff"
|
|
691
598
|
}, {
|
|
692
|
-
content:
|
|
693
|
-
|
|
599
|
+
content: _(() => [
|
|
600
|
+
w(sa, Le(e.userProfile, { "title-level": e.titleLevel }), null, 16, ["title-level"])
|
|
694
601
|
]),
|
|
695
602
|
_: 1
|
|
696
603
|
}),
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
"text-button": p.value,
|
|
701
|
-
content: d.value,
|
|
702
|
-
title: l.value,
|
|
604
|
+
w(Re, {
|
|
605
|
+
show: b.value,
|
|
606
|
+
"text-button": i.value ? "" : S(t)("trouver-mdp-rs.retryButtonLabel"),
|
|
703
607
|
"button-position": "center",
|
|
704
608
|
class: "popin",
|
|
705
|
-
onPrimaryAction:
|
|
706
|
-
},
|
|
609
|
+
onPrimaryAction: d
|
|
610
|
+
}, {
|
|
611
|
+
title: _(() => [
|
|
612
|
+
n("span", {
|
|
613
|
+
innerHTML: l.value?.title
|
|
614
|
+
}, null, 8, pa)
|
|
615
|
+
]),
|
|
616
|
+
content: _(() => [
|
|
617
|
+
n("span", {
|
|
618
|
+
innerHTML: l.value?.content
|
|
619
|
+
}, null, 8, ma)
|
|
620
|
+
]),
|
|
621
|
+
_: 1
|
|
622
|
+
}, 8, ["show", "text-button"])
|
|
707
623
|
]));
|
|
708
624
|
}
|
|
709
|
-
}),
|
|
710
|
-
qe(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json":
|
|
711
|
-
const
|
|
625
|
+
}), ga = ".main-container[data-v-597973c4]{font-family:Roboto,Nunito,sans-serif;color:#122647;position:relative;display:flex;gap:32px;padding-inline:.75rem;max-height:550px}.mobile-shell[data-v-597973c4]{flex:1}.popin[data-v-597973c4]{display:none}@media screen and (max-width:769px){.main-container[data-v-597973c4]{flex-direction:column-reverse}.mobile-shell[data-v-597973c4]{display:flex;flex-direction:column;gap:16px;overflow-y:scroll;border:none;border-radius:0}.mobile-shell[data-v-597973c4] .buttons,.mobile-shell[data-v-597973c4] .cache-top{display:none}.popin[data-v-597973c4]{display:inherit}}", ba = /* @__PURE__ */ q(va, [["styles", [ga]], ["__scopeId", "data-v-597973c4"]]);
|
|
626
|
+
qe(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": He, "./locales/en.json": Ne, "./locales/es-419.json": Ie, "./locales/es.json": Ee, "./locales/fr-BE.json": Ue, "./locales/fr.json": Ye, "./locales/it.json": Oe, "./locales/nl.json": We })).catch((e) => console.error(e));
|
|
627
|
+
const ce = Pe(ba, {
|
|
712
628
|
configureApp(e) {
|
|
713
|
-
|
|
629
|
+
Y.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(Fe, { i18next: Y }), e.use(Tt, { preset: "devices" });
|
|
714
630
|
}
|
|
715
631
|
});
|
|
716
|
-
|
|
632
|
+
ce.prototype.normalizeProps = (e) => ({
|
|
717
633
|
...e,
|
|
718
|
-
titleLevel:
|
|
634
|
+
titleLevel: je(e.titleLevel)
|
|
719
635
|
});
|
|
720
|
-
window.customElements.define("trouver-mdp-rs",
|
|
636
|
+
window.customElements.define("trouver-mdp-rs", ce);
|