@1024pix/epreuves-components 4.5.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button.ce-DNrjLa1r.js → Button.ce-Ccv3OLk2.js} +1 -1
- package/dist/{ButtonTooltip.ce-DQ8QAvUM.js → ButtonTooltip.ce-Bo42SFAP.js} +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js +83 -0
- package/dist/{FocusManager.ce-CwF5pnqR.js → FocusManager.ce-BG_n76ZF.js} +2 -2
- package/dist/Icon.ce-Be0LymfA.js +50 -0
- package/dist/{LLMMessage.ce-Duki08xd.js → LLMMessage.ce-y0WmEj7m.js} +24 -22
- package/dist/{Loading.ce-D7CUjrcI.js → Loading.ce-CG-e7tdE.js} +1 -1
- package/dist/Modal.ce-DCTwYJKJ.js +86 -0
- package/dist/{NavigationButton.ce-17UL0Mwu.js → NavigationButton.ce-B-c0m9H8.js} +14 -12
- package/dist/{PixMailMessage.ce-CNULZecQ.js → PixMailMessage.ce-CH6CVQ3H.js} +20 -20
- package/dist/{Popin.ce-VvQiVxjk.js → Popin.ce-CQtpIOkM.js} +3 -3
- package/dist/{Retry-CGkQcck5.js → Retry-DLOo5neI.js} +1 -1
- package/dist/{Stepper.ce-gx2YaVCo.js → Stepper.ce-MmSadTrx.js} +1 -1
- package/dist/{_plugin-vue_export-helper-DROOAHrz.js → _plugin-vue_export-helper-CD1RUA2y.js} +12 -12
- package/dist/components/analyse-mails-phishing.ce.js.js +104 -105
- package/dist/components/autocompletion-mdp.ce.js.js +256 -0
- package/dist/components/button.ce.js.js +2 -2
- package/dist/components/calcul-impact.ce.js.js +13 -13
- package/dist/components/capacity-calculation.ce.js.js +38 -35
- package/dist/components/clickable-image.ce.js.js +10 -10
- package/dist/components/complete-phrase.ce.js.js +12 -12
- package/dist/components/flip-cards.ce.js.js +10 -10
- package/dist/components/generate-mdp.ce.js.js +82 -151
- 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 +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +7 -7
- package/dist/components/mdp-classement.ce.js.js +100 -108
- package/dist/components/message-conversation.ce.js.js +19 -19
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/notification-antivirus.ce.js.js +139 -149
- package/dist/components/phishing-message.ce.js.js +23 -23
- package/dist/components/phishing-notification.ce.js.js +18 -18
- package/dist/components/pix-anonymisation.ce.js.js +9 -9
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +10 -8
- package/dist/components/pix-combinaisons.ce.js.js +13 -13
- package/dist/components/pix-cursor.ce.js.js +13 -13
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +70 -82
- package/dist/components/qcm-deepfake.ce.js.js +23 -23
- package/dist/components/quiz-stepper.ce.js.js +61 -68
- package/dist/components/select-conversation.ce.js.js +4 -4
- package/dist/components/template-mail.ce.js.js +3 -3
- package/dist/components/test-top-mdp.ce.js.js +4 -4
- package/dist/components/trouver-mdp-rs.ce.js.js +52 -66
- package/dist/components/usages-donnees.ce.js.js +7 -7
- package/dist/{i18n-BVfGnSnP.js → i18n-C-1Ne5JG.js} +1 -1
- package/dist/{i18n-lite-V7Z5qwB2.js → i18n-lite-WQsHAHqG.js} +1 -1
- package/dist/{image-quiz.ce-DLpB-rde.js → image-quiz.ce-DGVVVaQN.js} +8 -8
- package/dist/{index-BgVc_wZ5.js → index-C8-9QxHJ.js} +1 -1
- package/dist/index.js +2 -1
- package/dist/metadata.js +29 -25
- package/dist/props.examples.js +115 -113
- package/dist/schema.js +55 -53
- package/dist/{shadow-dom-4LHwwhYa.js → shadow-dom-DSLDIcsa.js} +1 -1
- package/package.json +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js +0 -53
- package/dist/Feedback.ce-MqHV98f3.js +0 -26
- package/dist/Icon.ce-O_y_jvjK.js +0 -50
- package/dist/components/feedback.ce.js.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as h, o, c as n, a, x as c,
|
|
2
|
-
import { u as
|
|
1
|
+
import { b as h, o, c as n, a, x as c, A as j, _ as f, t as C, q as S, E as N, F as y, e as x, l as z, r as k, g as m, C as L, f as v, d as E } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { u as M, a as O, i as q, b as T } from "../i18n-C-1Ne5JG.js";
|
|
3
3
|
import { b as I } from "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import { L as B } from "../LLMMessage.ce-
|
|
5
|
-
const R = {},
|
|
4
|
+
import { L as B } from "../LLMMessage.ce-y0WmEj7m.js";
|
|
5
|
+
const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
|
|
6
6
|
"complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisi par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! L’IA peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... L’IA choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
|
|
7
7
|
}, H = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ h({
|
|
8
8
|
__name: "ProbabilityBar.ce",
|
|
@@ -33,7 +33,7 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
|
|
|
33
33
|
},
|
|
34
34
|
setup(e) {
|
|
35
35
|
return (d, t) => (o(), n("button", {
|
|
36
|
-
class:
|
|
36
|
+
class: C(["complete-phrase_button", e.state])
|
|
37
37
|
}, [
|
|
38
38
|
S(d.$slots, "icon"),
|
|
39
39
|
N(" " + c(e.label), 1)
|
|
@@ -50,7 +50,7 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["answer"],
|
|
52
52
|
setup(e, { emit: d }) {
|
|
53
|
-
const t = d, s = k(null), { t: p } =
|
|
53
|
+
const t = d, s = k(null), { t: p } = M(), _ = m(() => s.value.percent === 100 ? p("complete-phrase.feedback.sure") : s.value.percent >= 50 ? p("complete-phrase.feedback.probably", { word: e.list.find((i) => i.percent === 100).name }) : p("complete-phrase.feedback.notSure", { words: e.list.filter((i) => i.percent >= 50).map((i) => i.name) }));
|
|
54
54
|
function g(i) {
|
|
55
55
|
s.value = i, t("answer", i.name);
|
|
56
56
|
}
|
|
@@ -122,7 +122,7 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
|
|
|
122
122
|
]),
|
|
123
123
|
a("div", fe, [
|
|
124
124
|
(o(!0), n(y, null, x(e.listOfProbabilityBarsLists, (u, b) => (o(), n("div", {
|
|
125
|
-
class:
|
|
125
|
+
class: C(["probability", { hidden: b !== t.value }]),
|
|
126
126
|
key: b,
|
|
127
127
|
id: `currentProbability${b}`,
|
|
128
128
|
"aria-hidden": b !== t.value
|
|
@@ -150,14 +150,14 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
|
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
152
152
|
}), ve = "*{font-family:Roboto,sans-serif;color:#122647}.complete-phrase__title{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation{background:#fff;border:1px solid #cdd1d9;border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message{align-items:center}.complete-phrase-container__probabilities{display:grid}.complete-phrase-container__probabilities .probability{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden{visibility:hidden}.complete-message-word:last-child{border:none;filter:blur(4px);font-weight:600;height:auto;width:auto}.complete-message-word--visible:last-child{color:inherit;filter:none;font-weight:700}.complete-message-word--hidden:last-child{background-color:#f4f5f7;border-radius:4px;border:1px dashed #5e6c84;color:transparent;display:inline-block;filter:none;padding:2px 4px}.complete-message-word:nth-last-child(2){font-weight:600}@media(max-width:600px){.complete-phrase__container{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden{display:none}}", ye = /* @__PURE__ */ f(ge, [["styles", [ve]]]);
|
|
153
|
-
|
|
154
|
-
const
|
|
153
|
+
O(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": V, "./locales/es-419.json": D, "./locales/es.json": F, "./locales/fr-BE.json": Q, "./locales/fr.json": W, "./locales/it.json": H, "./locales/nl.json": U })).catch((e) => console.error(e));
|
|
154
|
+
const P = E(ye, {
|
|
155
155
|
configureApp(e) {
|
|
156
|
-
q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(
|
|
156
|
+
q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(T, { i18next: q });
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
|
|
159
|
+
P.prototype.normalizeProps = (e) => ({
|
|
160
160
|
...e,
|
|
161
161
|
titleLevel: I(e.titleLevel)
|
|
162
162
|
});
|
|
163
|
-
window.customElements.define("complete-phrase",
|
|
163
|
+
window.customElements.define("complete-phrase", P);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as g, o as r, c as n, F as m, a as i, t as f, x as l, l as x, _ as u, r as y, e as k,
|
|
1
|
+
import { b as g, o as r, c as n, F as m, a as i, t as f, x as l, l as x, _ as u, r as y, e as k, Q as v, C as w, d as F } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
2
|
import { b as _ } from "../normalize-props-DH0oPBss.js";
|
|
3
|
-
const
|
|
3
|
+
const C = ["aria-hidden"], L = ["src"], z = ["aria-level"], N = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], E = /* @__PURE__ */ g({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
5
5
|
props: {
|
|
6
6
|
titleLevel: { type: Number },
|
|
@@ -21,13 +21,13 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
21
21
|
class: "icon",
|
|
22
22
|
src: e.icon,
|
|
23
23
|
alt: ""
|
|
24
|
-
}, null, 8,
|
|
24
|
+
}, null, 8, L),
|
|
25
25
|
i("div", {
|
|
26
26
|
role: "heading",
|
|
27
27
|
"aria-level": e.titleLevel,
|
|
28
28
|
class: "title"
|
|
29
|
-
}, l(e.name), 9,
|
|
30
|
-
], 10,
|
|
29
|
+
}, l(e.name), 9, z)
|
|
30
|
+
], 10, C),
|
|
31
31
|
i("div", {
|
|
32
32
|
class: f(["card verso", { flipped: e.isFlipped, [e.color]: e.color }]),
|
|
33
33
|
"aria-hidden": e.isFlipped ? "false" : "true"
|
|
@@ -45,10 +45,10 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
45
45
|
alt: ""
|
|
46
46
|
}, null, 8, j)) : x("", !0)
|
|
47
47
|
])
|
|
48
|
-
], 10,
|
|
48
|
+
], 10, N)
|
|
49
49
|
], 64));
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), K = "[data-v-c0da3f12]{box-sizing:border-box}.card[data-v-c0da3f12]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-c0da3f12]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-c0da3f12]{display:block;height:auto;width:40px}.card.verso[data-v-c0da3f12]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-c0da3f12]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-c0da3f12]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-c0da3f12]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-c0da3f12]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-c0da3f12]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-c0da3f12]{border:2px solid #f041bf}.card.verso .description[data-v-c0da3f12]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-c0da3f12]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-c0da3f12]{display:block;height:100%;object-fit:contain;width:100%}", V = /* @__PURE__ */ u(E, [["styles", [K]], ["__scopeId", "data-v-c0da3f12"]]), D = { class: "flip-cards" }, I = ["aria-level"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, A = /* @__PURE__ */ g({
|
|
52
52
|
__name: "FlipCards.ce",
|
|
53
53
|
props: {
|
|
54
54
|
titleLevel: { default: 2, type: Number },
|
|
@@ -65,7 +65,7 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
65
65
|
), c = (t, o) => {
|
|
66
66
|
o.preventDefault(), t.isFlipped = !t.isFlipped;
|
|
67
67
|
};
|
|
68
|
-
return (t, o) => (r(), n("div",
|
|
68
|
+
return (t, o) => (r(), n("div", D, [
|
|
69
69
|
i("div", {
|
|
70
70
|
role: "heading",
|
|
71
71
|
"aria-level": e.titleLevel,
|
|
@@ -84,7 +84,7 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
84
84
|
]
|
|
85
85
|
}, [
|
|
86
86
|
i("div", Z, [
|
|
87
|
-
w(
|
|
87
|
+
w(V, {
|
|
88
88
|
color: a.color,
|
|
89
89
|
description: a.description,
|
|
90
90
|
icon: a.icon,
|
|
@@ -97,7 +97,7 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
97
97
|
], 42, Y))), 128))
|
|
98
98
|
]));
|
|
99
99
|
}
|
|
100
|
-
}), P = "[data-v-394f37d2]{box-sizing:border-box}.sr-only[data-v-394f37d2]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-394f37d2]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-394f37d2]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-394f37d2]:hover,.flip-cards .card-container[data-v-394f37d2]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-394f37d2]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-394f37d2]{transform:rotateY(180deg)}",
|
|
100
|
+
}), P = "[data-v-394f37d2]{box-sizing:border-box}.sr-only[data-v-394f37d2]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-394f37d2]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-394f37d2]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-394f37d2]:hover,.flip-cards .card-container[data-v-394f37d2]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-394f37d2]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-394f37d2]{transform:rotateY(180deg)}", Q = /* @__PURE__ */ u(A, [["styles", [P]], ["__scopeId", "data-v-394f37d2"]]), h = F(Q);
|
|
101
101
|
h.prototype.normalizeProps = (e) => ({
|
|
102
102
|
...e,
|
|
103
103
|
titleLevel: _(e.titleLevel)
|
|
@@ -1,98 +1,29 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { u as
|
|
3
|
-
import { p as
|
|
4
|
-
import { I as
|
|
5
|
-
import {
|
|
6
|
-
import { b as
|
|
7
|
-
const
|
|
8
|
-
"generate-mdp": { addPassword: "Ajouter un mot de passe", title: "Titre", email: "Adresse e-mail", password: "Mot de passe", save: "Enregistrer", strength: "Fort", weak: "Faible", generatePassword: "Générer un mot de passe fort", feedback: { title: "Bravo !", content: "Grâce au gestionnaire de mots de passe, vous pouvez générer automatiquement des mots de passe forts." } }
|
|
9
|
-
},
|
|
10
|
-
__name: "Input.ce",
|
|
11
|
-
props: /* @__PURE__ */ S({
|
|
12
|
-
label: { type: String }
|
|
13
|
-
}, {
|
|
14
|
-
modelValue: {},
|
|
15
|
-
modelModifiers: {}
|
|
16
|
-
}),
|
|
17
|
-
emits: ["update:modelValue"],
|
|
18
|
-
setup(t) {
|
|
19
|
-
const d = G(t, "modelValue"), n = L();
|
|
20
|
-
return (i, r) => (b(), h(B, null, [
|
|
21
|
-
e("label", { for: v(n) }, l(t.label), 9, O),
|
|
22
|
-
N(e("input", H({
|
|
23
|
-
id: v(n),
|
|
24
|
-
"onUpdate:modelValue": r[0] || (r[0] = (f) => d.value = f)
|
|
25
|
-
}, i.$attrs), null, 16, W), [
|
|
26
|
-
[P, d.value]
|
|
27
|
-
])
|
|
28
|
-
], 64));
|
|
29
|
-
}
|
|
30
|
-
}), ee = "label[data-v-cf0dabbb]{display:block;margin-bottom:8px;font-size:.875rem;color:#5e6c84;line-height:20px}input[data-v-cf0dabbb]{width:100%;display:block;padding:12px 16px}", y = /* @__PURE__ */ V(X, [["styles", [ee]], ["__scopeId", "data-v-cf0dabbb"]]), te = {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: "overlay"
|
|
33
|
-
}, ae = ["aria-label"], se = { class: "pop-in__header" }, oe = { class: "pop-in__title" }, ne = {
|
|
34
|
-
id: "content",
|
|
35
|
-
class: "pop-in__content"
|
|
36
|
-
}, le = /* @__PURE__ */ k({
|
|
37
|
-
__name: "Modal.ce",
|
|
38
|
-
props: {
|
|
39
|
-
title: { type: String },
|
|
40
|
-
content: { type: String },
|
|
41
|
-
show: { type: Boolean },
|
|
42
|
-
loop: { type: Boolean }
|
|
43
|
-
},
|
|
44
|
-
setup(t, { expose: d }) {
|
|
45
|
-
const n = z("pop-in");
|
|
46
|
-
return d({ dialogElement: n }), (i, r) => (b(), h(B, null, [
|
|
47
|
-
t.show ? (b(), h("div", te)) : D("", !0),
|
|
48
|
-
o(Z, {
|
|
49
|
-
"is-visible": t.show,
|
|
50
|
-
loop: !!t.loop
|
|
51
|
-
}, {
|
|
52
|
-
default: g(() => [
|
|
53
|
-
e("dialog", {
|
|
54
|
-
ref: "pop-in",
|
|
55
|
-
"aria-label": t.title,
|
|
56
|
-
"aria-describedBy": "content",
|
|
57
|
-
class: "pop-in",
|
|
58
|
-
tabindex: "-1"
|
|
59
|
-
}, [
|
|
60
|
-
e("div", se, [
|
|
61
|
-
e("h1", oe, [
|
|
62
|
-
$(i.$slots, "title", {}, () => [
|
|
63
|
-
u(l(t.title), 1)
|
|
64
|
-
])
|
|
65
|
-
]),
|
|
66
|
-
e("p", ne, [
|
|
67
|
-
$(i.$slots, "content", {}, () => [
|
|
68
|
-
u(l(t.content), 1)
|
|
69
|
-
])
|
|
70
|
-
])
|
|
71
|
-
])
|
|
72
|
-
], 8, ae)
|
|
73
|
-
]),
|
|
74
|
-
_: 3
|
|
75
|
-
}, 8, ["is-visible", "loop"])
|
|
76
|
-
], 64));
|
|
77
|
-
}
|
|
78
|
-
}), de = ".overlay{position:absolute;border-radius:8px;z-index:200;inset:0;background-color:#25385859}.pop-in{display:flex;flex-direction:column;width:min(560px,95%);gap:16px;padding-bottom:24px;position:absolute;z-index:300;border-radius:16px;top:40%;left:50%;transform:translate(-50%,-50%);background-color:#fff;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset}.pop-in__header{padding:24px;border-radius:16px 16px 0 0;background:linear-gradient(180deg,#613fdd33,#613fdd1a 40%,#fff)}.pop-in__title{font-weight:700;font-size:1.25rem}.pop-in__content{font-family:Roboto,sans-serif;font-size:.875rem}", ie = /* @__PURE__ */ V(le, [["styles", [de]]]), re = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.99976%2011.25V12.75M4.49976%2015.75H13.4998C13.8976%2015.75%2014.2791%2015.592%2014.5604%2015.3107C14.8417%2015.0294%2014.9998%2014.6478%2014.9998%2014.25V9.75C14.9998%209.35218%2014.8417%208.97064%2014.5604%208.68934C14.2791%208.40804%2013.8976%208.25%2013.4998%208.25H4.49976C4.10193%208.25%203.7204%208.40804%203.4391%208.68934C3.15779%208.97064%202.99976%209.35218%202.99976%209.75V14.25C2.99976%2014.6478%203.15779%2015.0294%203.4391%2015.3107C3.7204%2015.592%204.10193%2015.75%204.49976%2015.75ZM11.9998%208.25V5.25C11.9998%204.45435%2011.6837%203.69129%2011.1211%203.12868C10.5585%202.56607%209.79541%202.25%208.99976%202.25C8.20411%202.25%207.44104%202.56607%206.87844%203.12868C6.31583%203.69129%205.99976%204.45435%205.99976%205.25V8.25H11.9998Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", pe = "data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.562%2016.5C29.562%2019.0835%2028.7959%2021.609%2027.3606%2023.7571C25.9253%2025.9053%2023.8852%2027.5795%2021.4983%2028.5682C19.1115%2029.5568%2016.485%2029.8155%2013.9512%2029.3115C11.4173%2028.8075%209.08976%2027.5634%207.26294%2025.7366C5.43611%2023.9098%204.19203%2021.5822%203.68801%2019.0484C3.18399%2016.5145%203.44267%2013.8881%204.43134%2011.5012C5.42001%209.11434%207.09426%207.07425%209.24238%205.63893C11.3905%204.2036%2013.916%203.4375%2016.4995%203.4375C19.0419%203.43667%2021.5293%204.17778%2023.6566%205.56996C25.784%206.96214%2027.4588%208.94486%2028.4758%2011.275M29.562%207.5625L28.9089%2011.9281L24.7495%2011'%20stroke='white'%20stroke-width='3.09375'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.7495%2015.125V13.0625C13.7495%2012.3332%2014.0392%2011.6337%2014.555%2011.118C15.0707%2010.6022%2015.7702%2010.3125%2016.4995%2010.3125C17.2289%2010.3125%2017.9283%2010.6022%2018.4441%2011.118C18.9598%2011.6337%2019.2495%2012.3332%2019.2495%2013.0625V15.125M15.4683%2022.6875H17.5308C19.1436%2022.6875%2019.9508%2022.6875%2020.5049%2022.2613C20.6479%2022.1515%2020.776%2022.0234%2020.8858%2021.8804C21.312%2021.3249%2021.312%2020.5191%2021.312%2018.9062C21.312%2017.2934%2021.312%2016.4862%2020.8858%2015.9321C20.776%2015.7891%2020.6479%2015.661%2020.5049%2015.5513C19.9494%2015.125%2019.1436%2015.125%2017.5308%2015.125H15.4683C13.8554%2015.125%2013.0483%2015.125%2012.4941%2015.5513C12.3511%2015.661%2012.223%2015.7891%2012.1133%2015.9321C11.687%2016.4876%2011.687%2017.2934%2011.687%2018.9062C11.687%2020.5191%2011.687%2021.3263%2012.1133%2021.8804C12.223%2022.0234%2012.3511%2022.1515%2012.4941%2022.2613C13.0496%2022.6875%2013.8554%2022.6875%2015.4683%2022.6875Z'%20stroke='white'%20stroke-width='3.09375'%20stroke-linejoin='round'/%3e%3c/svg%3e", ce = { class: "wrapper" }, ue = ["aria-level"], fe = ["src"], me = { class: "password-field" }, ge = { class: "password-strength" }, be = {
|
|
1
|
+
import { b as B, h as G, r as d, o as E, c as I, a as t, C as s, D as u, v as w, E as g, x as i, t as f, g as L, n as R, _ as z, d as N } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { u as P, i as h } from "../i18n-lite-WQsHAHqG.js";
|
|
3
|
+
import { p as $ } from "../shadow-dom-DSLDIcsa.js";
|
|
4
|
+
import { I as H, B as _ } from "../Icon.ce-Be0LymfA.js";
|
|
5
|
+
import { I as m, M as F } from "../Modal.ce-DCTwYJKJ.js";
|
|
6
|
+
import { b as T } from "../normalize-props-DH0oPBss.js";
|
|
7
|
+
const q = {}, D = {}, A = {}, J = {
|
|
8
|
+
"generate-mdp": { addPassword: "Ajouter un mot de passe", title: { label: "Titre", value: "La belle fripe" }, email: { label: "Adresse e-mail", value: "elio@pixmail.org" }, password: "Mot de passe", save: "Enregistrer", strength: "Fort", weak: "Faible", generatePassword: "Générer un mot de passe fort", feedback: { title: "Bravo !", content: "Grâce au gestionnaire de mots de passe, vous pouvez générer automatiquement des mots de passe forts." } }
|
|
9
|
+
}, S = {}, U = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.99976%2011.25V12.75M4.49976%2015.75H13.4998C13.8976%2015.75%2014.2791%2015.592%2014.5604%2015.3107C14.8417%2015.0294%2014.9998%2014.6478%2014.9998%2014.25V9.75C14.9998%209.35218%2014.8417%208.97064%2014.5604%208.68934C14.2791%208.40804%2013.8976%208.25%2013.4998%208.25H4.49976C4.10193%208.25%203.7204%208.40804%203.4391%208.68934C3.15779%208.97064%202.99976%209.35218%202.99976%209.75V14.25C2.99976%2014.6478%203.15779%2015.0294%203.4391%2015.3107C3.7204%2015.592%204.10193%2015.75%204.49976%2015.75ZM11.9998%208.25V5.25C11.9998%204.45435%2011.6837%203.69129%2011.1211%203.12868C10.5585%202.56607%209.79541%202.25%208.99976%202.25C8.20411%202.25%207.44104%202.56607%206.87844%203.12868C6.31583%203.69129%205.99976%204.45435%205.99976%205.25V8.25H11.9998Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Q = "data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.562%2016.5C29.562%2019.0835%2028.7959%2021.609%2027.3606%2023.7571C25.9253%2025.9053%2023.8852%2027.5795%2021.4983%2028.5682C19.1115%2029.5568%2016.485%2029.8155%2013.9512%2029.3115C11.4173%2028.8075%209.08976%2027.5634%207.26294%2025.7366C5.43611%2023.9098%204.19203%2021.5822%203.68801%2019.0484C3.18399%2016.5145%203.44267%2013.8881%204.43134%2011.5012C5.42001%209.11434%207.09426%207.07425%209.24238%205.63893C11.3905%204.2036%2013.916%203.4375%2016.4995%203.4375C19.0419%203.43667%2021.5293%204.17778%2023.6566%205.56996C25.784%206.96214%2027.4588%208.94486%2028.4758%2011.275M29.562%207.5625L28.9089%2011.9281L24.7495%2011'%20stroke='white'%20stroke-width='3.09375'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.7495%2015.125V13.0625C13.7495%2012.3332%2014.0392%2011.6337%2014.555%2011.118C15.0707%2010.6022%2015.7702%2010.3125%2016.4995%2010.3125C17.2289%2010.3125%2017.9283%2010.6022%2018.4441%2011.118C18.9598%2011.6337%2019.2495%2012.3332%2019.2495%2013.0625V15.125M15.4683%2022.6875H17.5308C19.1436%2022.6875%2019.9508%2022.6875%2020.5049%2022.2613C20.6479%2022.1515%2020.776%2022.0234%2020.8858%2021.8804C21.312%2021.3249%2021.312%2020.5191%2021.312%2018.9062C21.312%2017.2934%2021.312%2016.4862%2020.8858%2015.9321C20.776%2015.7891%2020.6479%2015.661%2020.5049%2015.5513C19.9494%2015.125%2019.1436%2015.125%2017.5308%2015.125H15.4683C13.8554%2015.125%2013.0483%2015.125%2012.4941%2015.5513C12.3511%2015.661%2012.223%2015.7891%2012.1133%2015.9321C11.687%2016.4876%2011.687%2017.2934%2011.687%2018.9062C11.687%2020.5191%2011.687%2021.3263%2012.1133%2021.8804C12.223%2022.0234%2012.3511%2022.1515%2012.4941%2022.2613C13.0496%2022.6875%2013.8554%2022.6875%2015.4683%2022.6875Z'%20stroke='white'%20stroke-width='3.09375'%20stroke-linejoin='round'/%3e%3c/svg%3e", Z = { class: "wrapper" }, K = ["aria-level"], Y = ["src"], O = { class: "password-field" }, W = { class: "password-strength" }, X = {
|
|
79
10
|
"aria-live": "polite",
|
|
80
11
|
class: "password-strength__strengthness"
|
|
81
|
-
},
|
|
12
|
+
}, ee = { class: "sr-only" }, te = ["src"], ae = /* @__PURE__ */ B({
|
|
82
13
|
__name: "GenerateMdp.ce",
|
|
83
14
|
props: {
|
|
84
15
|
titleLevel: { default: 2, type: Number }
|
|
85
16
|
},
|
|
86
|
-
setup(
|
|
87
|
-
const { t:
|
|
88
|
-
async function
|
|
89
|
-
|
|
17
|
+
setup(l, { expose: C }) {
|
|
18
|
+
const { t: r } = P(), k = G("success-modal"), b = d(r("generate-mdp.title.value")), v = d(r("generate-mdp.email.value")), a = d(""), p = d(!1);
|
|
19
|
+
async function y() {
|
|
20
|
+
p.value = !0, await R(), k.value.dialogElement.focus();
|
|
90
21
|
}
|
|
91
|
-
|
|
92
|
-
function
|
|
93
|
-
|
|
22
|
+
$();
|
|
23
|
+
function V() {
|
|
24
|
+
p.value = !1, a.value = "";
|
|
94
25
|
}
|
|
95
|
-
const
|
|
26
|
+
const c = [
|
|
96
27
|
"39m%,Yqp4brJ",
|
|
97
28
|
"aqN1^!T`:GID",
|
|
98
29
|
"4_nakXe59Hi5",
|
|
@@ -115,114 +46,114 @@ const Y = {
|
|
|
115
46
|
",2G+Gj<pk:fD",
|
|
116
47
|
"*D4W0asv+$:("
|
|
117
48
|
];
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
|
|
49
|
+
function M() {
|
|
50
|
+
const e = Math.floor(c.length * Math.random());
|
|
51
|
+
a.value = c[e];
|
|
121
52
|
}
|
|
122
|
-
const
|
|
123
|
-
return
|
|
124
|
-
reset:
|
|
125
|
-
}), (
|
|
126
|
-
|
|
127
|
-
"aria-level":
|
|
53
|
+
const j = L(() => c.includes(a.value) ? r("generate-mdp.strength") : r("generate-mdp.weak"));
|
|
54
|
+
return C({
|
|
55
|
+
reset: V
|
|
56
|
+
}), (e, o) => (E(), I("div", Z, [
|
|
57
|
+
t("div", {
|
|
58
|
+
"aria-level": l.titleLevel,
|
|
128
59
|
class: "title",
|
|
129
60
|
role: "heading"
|
|
130
61
|
}, [
|
|
131
|
-
|
|
132
|
-
default:
|
|
133
|
-
|
|
134
|
-
src:
|
|
62
|
+
s(H, { "background-color": "#2c75ff" }, {
|
|
63
|
+
default: u(() => [
|
|
64
|
+
t("img", {
|
|
65
|
+
src: w(U),
|
|
135
66
|
alt: ""
|
|
136
|
-
}, null, 8,
|
|
67
|
+
}, null, 8, Y)
|
|
137
68
|
]),
|
|
138
69
|
_: 1
|
|
139
70
|
}),
|
|
140
|
-
|
|
141
|
-
], 8,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
modelValue:
|
|
145
|
-
"onUpdate:modelValue":
|
|
146
|
-
label:
|
|
71
|
+
g(" " + i(e.$t("generate-mdp.addPassword")), 1)
|
|
72
|
+
], 8, K),
|
|
73
|
+
t("form", null, [
|
|
74
|
+
s(m, {
|
|
75
|
+
modelValue: b.value,
|
|
76
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => b.value = n),
|
|
77
|
+
label: e.$t("generate-mdp.title.label"),
|
|
147
78
|
readonly: !0,
|
|
148
79
|
type: "text"
|
|
149
80
|
}, null, 8, ["modelValue", "label"]),
|
|
150
|
-
|
|
151
|
-
modelValue:
|
|
152
|
-
"onUpdate:modelValue":
|
|
153
|
-
label:
|
|
81
|
+
s(m, {
|
|
82
|
+
modelValue: v.value,
|
|
83
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => v.value = n),
|
|
84
|
+
label: e.$t("generate-mdp.email.label"),
|
|
154
85
|
readonly: !0,
|
|
155
86
|
type: "text"
|
|
156
87
|
}, null, 8, ["modelValue", "label"]),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
modelValue:
|
|
160
|
-
"onUpdate:modelValue":
|
|
161
|
-
label:
|
|
88
|
+
t("div", O, [
|
|
89
|
+
s(m, {
|
|
90
|
+
modelValue: a.value,
|
|
91
|
+
"onUpdate:modelValue": o[2] || (o[2] = (n) => a.value = n),
|
|
92
|
+
label: e.$t("generate-mdp.password"),
|
|
162
93
|
readonly: !0,
|
|
163
94
|
class: "password",
|
|
164
95
|
type: "text"
|
|
165
96
|
}, null, 8, ["modelValue", "label"]),
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
97
|
+
t("div", W, [
|
|
98
|
+
t("p", X, [
|
|
99
|
+
t("span", ee, i(e.$t("generate-mdp.password")) + " ", 1),
|
|
100
|
+
g(i(j.value), 1)
|
|
170
101
|
]),
|
|
171
|
-
|
|
172
|
-
class:
|
|
102
|
+
t("div", {
|
|
103
|
+
class: f([{ "filled-strength": a.value !== "" }, "password-strength__step"]),
|
|
173
104
|
"aria-hidden": "true"
|
|
174
105
|
}, null, 2),
|
|
175
|
-
|
|
176
|
-
class:
|
|
106
|
+
t("div", {
|
|
107
|
+
class: f([{ "filled-strength": a.value !== "" }, "password-strength__step"]),
|
|
177
108
|
"aria-hidden": "true"
|
|
178
109
|
}, null, 2),
|
|
179
|
-
|
|
180
|
-
class:
|
|
110
|
+
t("div", {
|
|
111
|
+
class: f([{ "filled-strength": a.value !== "" }, "password-strength__step"]),
|
|
181
112
|
"aria-hidden": "true"
|
|
182
113
|
}, null, 2)
|
|
183
114
|
]),
|
|
184
|
-
|
|
185
|
-
title:
|
|
115
|
+
s(_, {
|
|
116
|
+
title: e.$t("generate-mdp.generatePassword"),
|
|
186
117
|
variant: "primary-bis",
|
|
187
|
-
onClick:
|
|
118
|
+
onClick: M
|
|
188
119
|
}, {
|
|
189
|
-
default:
|
|
190
|
-
|
|
191
|
-
src:
|
|
120
|
+
default: u(() => [
|
|
121
|
+
t("img", {
|
|
122
|
+
src: w(Q),
|
|
192
123
|
alt: ""
|
|
193
|
-
}, null, 8,
|
|
124
|
+
}, null, 8, te)
|
|
194
125
|
]),
|
|
195
126
|
_: 1
|
|
196
127
|
}, 8, ["title"])
|
|
197
128
|
]),
|
|
198
|
-
|
|
129
|
+
s(_, {
|
|
199
130
|
class: "send",
|
|
200
|
-
onClick:
|
|
201
|
-
"is-disabled": !
|
|
131
|
+
onClick: y,
|
|
132
|
+
"is-disabled": !a.value
|
|
202
133
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
134
|
+
default: u(() => [
|
|
135
|
+
g(i(e.$t("generate-mdp.save")), 1)
|
|
205
136
|
]),
|
|
206
137
|
_: 1
|
|
207
138
|
}, 8, ["is-disabled"]),
|
|
208
|
-
|
|
139
|
+
s(F, {
|
|
209
140
|
ref: "success-modal",
|
|
210
|
-
content:
|
|
211
|
-
show:
|
|
141
|
+
content: e.$t("generate-mdp.feedback.content"),
|
|
142
|
+
show: p.value,
|
|
212
143
|
loop: !1,
|
|
213
|
-
title:
|
|
144
|
+
title: e.$t("generate-mdp.feedback.title")
|
|
214
145
|
}, null, 8, ["content", "show", "title"])
|
|
215
146
|
])
|
|
216
147
|
]));
|
|
217
148
|
}
|
|
218
|
-
}),
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
-
configureApp(
|
|
222
|
-
|
|
149
|
+
}), se = "*{--text-blue: #122647;--background-blue: #253858;font-family:Nunito,Roboto,sans-serif;font-size:14px;box-sizing:border-box}h1,h2,h3,h4,h5,h6{color:var(--text-blue);font-family:Nunito,sans-serif}h2{color:var(--text-blue);font-size:20px}p,a,span,li{color:var(--text-blue);font-family:Roboto,sans-serif}button{border-radius:8px;background:var(--background-blue);font-weight:700;font-size:16px}button:disabled{background:#c8cfd9}input{border-radius:10px;border:#cdd1d9;background:#f4f5f7}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}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,dialog{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}", oe = ".wrapper[data-v-774c3724]{padding:25px;border-radius:14px;position:relative;background:#fff;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset}[data-v-774c3724] label{margin-top:16px}.title[data-v-774c3724]{display:flex;align-items:center;gap:8px;font-size:1.25rem;font-weight:700}.password-field[data-v-774c3724]{display:grid;grid-template-columns:1fr 1fr 45px;gap:0 16px}.password-field .password-strength[data-v-774c3724]{grid-column:2/span 2;justify-self:end;display:flex;align-items:center;gap:8px}.password-field .password-strength__step[data-v-774c3724]{width:40px;height:5px;border-radius:5px;background:#c8cfd9}.password-field .password-strength__strengthness[data-v-774c3724]{color:#5e6c84;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400}.password-field .password-strength .filled-strength[data-v-774c3724]{background:#54c590}.password-field[data-v-774c3724] input{grid-column:1/span 2;grid-row:2}.password-field button[data-v-774c3724]{height:45px;width:45px;justify-content:center;display:flex}.send[data-v-774c3724]{display:block;margin:16px auto 0}@media screen and (max-width:576px){.password-field[data-v-774c3724]{display:grid;grid-template-columns:1fr 1fr 45px;grid-column:unset}.password-field[data-v-774c3724] .password{grid-row:unset}.password-field .password-strength[data-v-774c3724]{grid-column:unset;grid-row:3/span 2;justify-self:start;margin-top:8px}}", le = /* @__PURE__ */ z(ae, [["styles", [se, oe]], ["__scopeId", "data-v-774c3724"]]);
|
|
150
|
+
h.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": q, "./locales/en.json": D, "./locales/es.json": A, "./locales/fr.json": J, "./locales/it.json": S }));
|
|
151
|
+
const x = N(le, {
|
|
152
|
+
configureApp(l) {
|
|
153
|
+
h.changeLanguage(document?.documentElement?.lang || navigator.language), l.use(h);
|
|
223
154
|
}
|
|
224
155
|
});
|
|
225
|
-
|
|
226
|
-
titleLevel:
|
|
156
|
+
x.prototype.normalizeProps = (l) => ({
|
|
157
|
+
titleLevel: T(l.titleLevel)
|
|
227
158
|
});
|
|
228
|
-
window.customElements.define("generate-mdp",
|
|
159
|
+
window.customElements.define("generate-mdp", x);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as t } from "../image-quiz.ce-
|
|
2
|
-
import "../_plugin-vue_export-helper-
|
|
1
|
+
import { n as t } from "../image-quiz.ce-DGVVVaQN.js";
|
|
2
|
+
import "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
3
3
|
import "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import "../i18n-lite-
|
|
4
|
+
import "../i18n-lite-WQsHAHqG.js";
|
|
5
5
|
export {
|
|
6
6
|
t as normalizeImageQuizProps
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as g, _ as f, a as z, b as v, c as w, d, e as p, f as b, g as j, n as A } from "../image-quiz.ce-
|
|
2
|
-
import { b as q, r as E, w as h, o as l, c as y, e as I, f as k, m as B, F as Q, d as C } from "../_plugin-vue_export-helper-
|
|
3
|
-
import { i as n } from "../i18n-lite-
|
|
1
|
+
import { I as g, _ as f, a as z, b as v, c as w, d, e as p, f as b, g as j, n as A } from "../image-quiz.ce-DGVVVaQN.js";
|
|
2
|
+
import { b as q, r as E, w as h, o as l, c as y, e as I, f as k, m as B, F as Q, d as C } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
3
|
+
import { i as n } from "../i18n-lite-WQsHAHqG.js";
|
|
4
4
|
const F = /* @__PURE__ */ q({
|
|
5
5
|
__name: "ImageQuizzes.ce",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as c, o as t, c as s, a as e, x as n, F as r, e as m,
|
|
2
|
-
import { L as l } from "../LLMMessage.ce-
|
|
3
|
-
import { p as u } from "../shadow-dom-
|
|
1
|
+
import { b as c, o as t, c as s, a as e, x as n, F as r, e as m, C as i, _ as p, d as g } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { L as l } from "../LLMMessage.ce-y0WmEj7m.js";
|
|
3
|
+
import { p as u } from "../shadow-dom-DSLDIcsa.js";
|
|
4
4
|
const f = {
|
|
5
5
|
class: "header",
|
|
6
6
|
"aria-hidden": "true"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as c, L as m, M as i, o as e, c as t, F as p, e as d, f, _ as g, d as u } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { L as h } from "../LLMMessage.ce-
|
|
3
|
-
import { p as _ } from "../shadow-dom-
|
|
1
|
+
import { b as c, L as m, M as i, o as e, c as t, F as p, e as d, f, _ as g, d as u } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { L as h } from "../LLMMessage.ce-y0WmEj7m.js";
|
|
3
|
+
import { p as _ } from "../shadow-dom-DSLDIcsa.js";
|
|
4
4
|
const x = {
|
|
5
5
|
class: "llm-messages",
|
|
6
6
|
"aria-live": "polite"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as h, r as c, K as y, o as d, c as m,
|
|
1
|
+
import { b as h, r as c, K as y, o as d, c as m, C as w, a, E as k, F as b, e as C, x as L, _ as S, d as P } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
2
|
import { b as N } from "../normalize-props-DH0oPBss.js";
|
|
3
3
|
import "./llm-messages.ce.js.js";
|
|
4
|
-
const
|
|
4
|
+
const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B = ["disabled", "onClick"], V = /* @__PURE__ */ h({
|
|
5
5
|
__name: "LLMPromptSelect.ce",
|
|
6
6
|
props: {
|
|
7
7
|
messages: { type: Array },
|
|
@@ -48,23 +48,23 @@ const M = { class: "prompt-select" }, A = { class: "prompt-select__options" }, B
|
|
|
48
48
|
const p = y("llm-messages");
|
|
49
49
|
return d(), m(b, null, [
|
|
50
50
|
w(p, { messages: s.value }, null, 8, ["messages"]),
|
|
51
|
-
a("div",
|
|
51
|
+
a("div", E, [
|
|
52
52
|
t[0] || (t[0] = a("p", { class: "prompt-select__label" }, [
|
|
53
53
|
k(" Sélectionner un des prompts "),
|
|
54
54
|
a("span", { class: "sr-only" }, " une fois sélectionnés, les prompts ne sont plus disponibles. ")
|
|
55
55
|
], -1)),
|
|
56
|
-
a("div",
|
|
57
|
-
(d(!0), m(b, null,
|
|
56
|
+
a("div", M, [
|
|
57
|
+
(d(!0), m(b, null, C(u.value, (n, i) => (d(), m("button", {
|
|
58
58
|
key: i,
|
|
59
59
|
disabled: n.disabled || l.value,
|
|
60
60
|
onClick: (f) => v(n)
|
|
61
|
-
},
|
|
61
|
+
}, L(n.prompt), 9, B))), 128))
|
|
62
62
|
])
|
|
63
63
|
])
|
|
64
64
|
], 64);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
67
|
+
}), z = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;border:none;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", A = /* @__PURE__ */ S(V, [["styles", [z]]]), _ = P(A);
|
|
68
68
|
_.prototype.normalizeProps = (r) => ({
|
|
69
69
|
...r,
|
|
70
70
|
speed: N(r.speed)
|