@1024pix/epreuves-components 2.8.1 → 4.0.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.
Files changed (55) hide show
  1. package/dist/Button.ce-CTKrSDrC.js +27 -0
  2. package/dist/{ButtonTooltip.ce-BjlMn9Ez.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js → Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js} +5 -5
  4. package/dist/{LLMMessage.ce-B4Tg1zsn.js → LLMMessage.ce-Dv4hVX0C.js} +2 -2
  5. package/dist/{Loading.ce-S-dh_E78.js → Loading.ce-Bh7-h48F.js} +1 -1
  6. package/dist/{NavigationButton.ce-DRBC3gta.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
  7. package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
  8. package/dist/Popin.ce-DUQ7-GMT.js +197 -0
  9. package/dist/{Retry-CoaWKuPG.js → Retry-BZf7NJz9.js} +1 -1
  10. package/dist/Stepper.ce-B1yDelzC.js +27 -0
  11. package/dist/{_plugin-vue_export-helper-BPDEgOal.js → _plugin-vue_export-helper-D0N_62VD.js} +273 -258
  12. package/dist/components/analyse-mails-phishing.ce.js.js +259 -0
  13. package/dist/components/calcul-impact.ce.js.js +9 -9
  14. package/dist/components/capacity-calculation.ce.js.js +4 -4
  15. package/dist/components/clickable-image.ce.js.js +11 -11
  16. package/dist/components/complete-phrase.ce.js.js +7 -7
  17. package/dist/components/flip-cards.ce.js.js +5 -5
  18. package/dist/components/image-quiz.ce.js.js +4 -4
  19. package/dist/components/image-quizzes.ce.js.js +3 -3
  20. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  21. package/dist/components/llm-messages.ce.js.js +3 -3
  22. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  23. package/dist/components/mdp-classement.ce.js.js +29 -29
  24. package/dist/components/message-conversation.ce.js.js +5 -5
  25. package/dist/components/mobile-shell.ce.js.js +1 -1
  26. package/dist/components/phishing-message.ce.js.js +17 -17
  27. package/dist/components/phishing-notification.ce.js.js +15 -15
  28. package/dist/components/pix-anonymisation.ce.js.js +83 -87
  29. package/dist/components/pix-article.ce.js.js +5 -5
  30. package/dist/components/pix-carousel.ce.js.js +13 -13
  31. package/dist/components/pix-combinaisons.ce.js.js +238 -0
  32. package/dist/components/pix-cursor.ce.js.js +20 -20
  33. package/dist/components/pix-mail-message.ce.js.js +11 -0
  34. package/dist/components/proteger-mail-spam.ce.js.js +129 -0
  35. package/dist/components/qcm-deepfake.ce.js.js +27 -27
  36. package/dist/components/quiz-stepper.ce.js.js +83 -89
  37. package/dist/components/select-conversation.ce.js.js +15 -15
  38. package/dist/components/template-mail.ce.js.js +49 -151
  39. package/dist/components/test-top-mdp.ce.js.js +14 -14
  40. package/dist/components/trouver-mdp-rs.ce.js.js +307 -343
  41. package/dist/{i18n-BuCPzaih.js → i18n-ekiZvzf6.js} +9 -9
  42. package/dist/{i18n-lite-DBVKHY8J.js → i18n-lite-t2jNOu0C.js} +8 -8
  43. package/dist/{image-quiz.ce-CXOFcx1H.js → image-quiz.ce-DqalWHKw.js} +11 -11
  44. package/dist/index-BpqxFmwz.js +10 -0
  45. package/dist/index.js +5 -1
  46. package/dist/metadata.js +45 -29
  47. package/dist/nl-Bonww6Q2.js +13 -0
  48. package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
  49. package/dist/props.examples.js +130 -0
  50. package/dist/schema.js +134 -68
  51. package/dist/{shadow-dom-By5w43W7.js → shadow-dom-C3AZuSZe.js} +1 -1
  52. package/dist/temporal.utils-7Uvm62ss.js +10926 -0
  53. package/package.json +4 -2
  54. package/dist/Button.ce-D1_fAhqr.js +0 -18
  55. package/dist/temporal.utils-CotrC6ao.js +0 -14456
@@ -1,13 +1,15 @@
1
- import { d as S, c as h, o as u, n as B, a as i, B as b, t as l, _ as j, r as m, j as G, y as d, e as v, A as I, E as y, K as z, H as P, l as Q, f as R } from "../_plugin-vue_export-helper-BPDEgOal.js";
2
- import { u as M, a as O, i as k, b as D } from "../i18n-BuCPzaih.js";
3
- import { _ as H, a as K, F as J } from "../Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js";
4
- import { a as f, u as U } from "../normalize-props-DtfVI0Xg.js";
1
+ import { b as q, c as m, o as r, n as B, a as l, B as g, t as u, _ as j, r as b, j as V, g as p, E as h, f as v, K as k, H as G, l as Q, d as R } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { u as O, a as P, i as z, b as D } from "../i18n-ekiZvzf6.js";
3
+ import { _ as H, a as I, F as K } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
4
+ import { S as M } from "../Stepper.ce-B1yDelzC.js";
5
+ import { a as f, b as J } from "../normalize-props-DH0oPBss.js";
6
+ import { l as U } from "../index-BpqxFmwz.js";
5
7
  const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
6
- "quiz-stepper": { submitButton: "Valider", nextStepButton: "Continuer", step: "Étape {{step}} sur {{totalStep}}", feedback: { success: "Bien joué", failed: "Pas tout à fait" } }
7
- }, se = {}, ne = {}, ie = ["id", "aria-disabled", "checked"], ae = ["for"], oe = {
8
+ "quiz-stepper": { submitButton: "Valider", nextStepButton: "Continuer", feedback: { success: "Bien joué", failed: "Pas tout à fait" } }
9
+ }, ne = {}, se = {}, ie = ["id", "aria-disabled", "checked"], oe = ["for"], ae = {
8
10
  key: 0,
9
11
  class: "answer__subtitle"
10
- }, re = { class: "answer__content" }, le = /* @__PURE__ */ S({
12
+ }, le = { class: "answer__content" }, ce = /* @__PURE__ */ q({
11
13
  __name: "Answer.ce",
12
14
  props: {
13
15
  choice: { type: Object },
@@ -17,14 +19,14 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
17
19
  },
18
20
  emits: ["select-answer"],
19
21
  setup(e, { emit: c }) {
20
- const n = c;
22
+ const s = c;
21
23
  function t() {
22
- n("select-answer", e.choice);
24
+ s("select-answer", e.choice);
23
25
  }
24
- return (s, o) => (u(), h("div", {
26
+ return (n, o) => (r(), m("div", {
25
27
  class: B(["answer", { "is-selected": e.isSelected, "is-disabled": e.showFeedback }])
26
28
  }, [
27
- i("input", {
29
+ l("input", {
28
30
  type: "radio",
29
31
  id: e.id,
30
32
  name: "choice",
@@ -33,151 +35,143 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
33
35
  onChange: t,
34
36
  class: "sr-only"
35
37
  }, null, 40, ie),
36
- i("label", { for: e.id }, [
37
- e.choice.title ? (u(), h("span", oe, l(e.choice.title), 1)) : b("", !0),
38
- i("span", re, l(e.choice.content), 1)
39
- ], 8, ae)
38
+ l("label", { for: e.id }, [
39
+ e.choice.title ? (r(), m("span", ae, u(e.choice.title), 1)) : g("", !0),
40
+ l("span", le, u(e.choice.content), 1)
41
+ ], 8, oe)
40
42
  ], 2));
41
43
  }
42
- }), ce = ".answer{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:.25em;border-radius:8px;border:1px solid #cdd1d9;background:#fff;color:var(--neutral-900);text-align:left;font-size:.875em}.answer label{cursor:pointer;height:100%;padding:1em}.answer.is-selected{border-radius:8px;border:1px solid #fff;background:var(--neutral-800);color:#fff}.answer__subtitle{font-size:1em;font-weight:700;line-height:24px;display:block}.answer__content{text-wrap-mode:wrap;white-space-collapse:preserve}.answer .is-disabled{cursor:not-allowed}.answer:focus-within{outline:2px solid black}", q = /* @__PURE__ */ j(le, [["styles", [ce]]]), ue = { class: "quiz-stepper-container__layout" }, de = { class: "steps-wrapper" }, pe = { class: "steps-wrapper__stepper" }, fe = { "aria-hidden": "true" }, he = {
43
- class: "sr-only",
44
- "aria-live": "polite"
45
- }, me = ["aria-level"], ve = { class: "card-wrapper" }, be = ["aria-disable"], ge = /* @__PURE__ */ S({
44
+ }), re = ".answer{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:.25em;border-radius:8px;border:1px solid #cdd1d9;background:#fff;color:var(--neutral-900);text-align:left;font-size:.875em}.answer label{cursor:pointer;height:100%;padding:1em}.answer.is-selected{border-radius:8px;border:1px solid #fff;background:var(--neutral-800);color:#fff}.answer__subtitle{font-size:1em;font-weight:700;line-height:24px;display:block}.answer__content{text-wrap-mode:wrap;white-space-collapse:preserve}.answer .is-disabled{cursor:not-allowed}.answer:focus-within{outline:2px solid black}", S = /* @__PURE__ */ j(ce, [["styles", [re]]]), ue = { class: "quiz-stepper-container__layout" }, de = ["aria-level"], pe = { class: "card-wrapper" }, fe = ["aria-disable"], me = /* @__PURE__ */ q({
46
45
  __name: "QuizStepper.ce",
47
46
  props: {
48
47
  steps: { type: Array },
49
48
  titleLevel: { default: 2, type: Number }
50
49
  },
51
50
  setup(e, { expose: c }) {
52
- const n = m(0), t = m(), s = m(!1), o = G("form"), { t: g } = M(), r = d(() => e.steps?.[n.value]), _ = d(() => !s.value), $ = d(() => {
53
- const a = n.value === e.steps.length - 1;
54
- return a ? a && !s.value : !0;
55
- }), C = d(() => Math.floor((n.value + 1) / e.steps.length * 100)), F = d(() => _.value ? g("quiz-stepper.submitButton") : g("quiz-stepper.nextStepButton"));
56
- function w(a) {
57
- s.value || (t.value = a);
51
+ const s = b(0), t = b(), n = b(!1), o = V("form"), { t: _ } = O(), a = p(() => e.steps?.[s.value]), w = p(() => !n.value), $ = p(() => {
52
+ const i = s.value === e.steps.length - 1;
53
+ return i ? i && !n.value : !0;
54
+ }), C = p(() => w.value ? _("quiz-stepper.submitButton") : _("quiz-stepper.nextStepButton"));
55
+ function x(i) {
56
+ n.value || (t.value = i);
58
57
  }
59
- function N() {
60
- if (n.value + 1 > e.steps.length) {
61
- n.value = e.steps.length;
58
+ function F() {
59
+ if (s.value + 1 > e.steps.length) {
60
+ s.value = e.steps.length;
62
61
  return;
63
62
  }
64
- n.value++, s.value = !1, t.value = void 0, o.value?.focus();
63
+ s.value++, n.value = !1, t.value = void 0, o.value?.focus();
65
64
  }
66
- function T() {
67
- t.value && (s.value = !0, n.value + 1 === e.steps.length && o.value?.focus());
65
+ function N() {
66
+ t.value && (n.value = !0, s.value + 1 === e.steps.length && o.value?.focus());
68
67
  }
69
- function E() {
70
- if (_.value) {
71
- T();
68
+ function T() {
69
+ if (w.value) {
70
+ N();
72
71
  return;
73
72
  }
74
- N();
73
+ F();
75
74
  }
76
- function x(a) {
77
- return a.content ? a.content === t.value?.content : a.title === t.value?.title;
75
+ function y(i) {
76
+ return i.content ? i.content === t.value?.content : i.title === t.value?.title;
78
77
  }
79
- function L() {
80
- n.value = 0, t.value = void 0, s.value = !1;
78
+ function E() {
79
+ s.value = 0, t.value = void 0, n.value = !1;
81
80
  }
82
81
  return c({
83
- reset: L
84
- }), (a, p) => (u(), h("form", {
82
+ reset: E
83
+ }), (i, d) => (r(), m("form", {
85
84
  class: "quiz-stepper-container",
86
- onSubmit: Q(E, ["prevent"]),
85
+ onSubmit: Q(T, ["prevent"]),
87
86
  ref_key: "form",
88
87
  ref: o,
89
88
  tabindex: "-1"
90
89
  }, [
91
- i("div", ue, [
92
- i("div", de, [
93
- i("div", pe, [
94
- i("div", {
95
- class: "steps-wrapper__effective-steps",
96
- style: I({ "--stepIndex": `${C.value}%` })
97
- }, null, 4)
98
- ]),
99
- i("p", fe, l(n.value + 1) + "/" + l(e.steps.length), 1),
100
- i("p", he, l(a.$t("quiz-stepper.step", { step: n.value + 1, totalStep: e.steps.length })), 1)
101
- ]),
102
- i("fieldset", null, [
103
- i("legend", null, [
104
- i("div", {
90
+ l("div", ue, [
91
+ h(M, {
92
+ step: s.value,
93
+ "steps-count": e.steps.length
94
+ }, null, 8, ["step", "steps-count"]),
95
+ l("fieldset", null, [
96
+ l("legend", null, [
97
+ l("div", {
105
98
  role: "heading",
106
99
  "aria-level": e.titleLevel,
107
100
  class: "question"
108
- }, l(r.value.question), 9, me)
101
+ }, u(a.value.question), 9, de)
109
102
  ]),
110
- i("div", ve, [
111
- y(q, {
103
+ l("div", pe, [
104
+ h(S, {
112
105
  id: "choice1",
113
- choice: r.value.choice1,
114
- "show-feedback": s.value,
115
- "is-selected": x(r.value.choice1),
116
- onSelectAnswer: p[0] || (p[0] = (V) => w(r.value.choice1))
106
+ choice: a.value.choice1,
107
+ "show-feedback": n.value,
108
+ "is-selected": y(a.value.choice1),
109
+ onSelectAnswer: d[0] || (d[0] = (L) => x(a.value.choice1))
117
110
  }, null, 8, ["choice", "show-feedback", "is-selected"]),
118
- y(q, {
111
+ h(S, {
119
112
  id: "choice2",
120
- choice: r.value.choice2,
121
- "show-feedback": s.value,
122
- "is-selected": x(r.value.choice2),
123
- onSelectAnswer: p[1] || (p[1] = (V) => w(r.value.choice2))
113
+ choice: a.value.choice2,
114
+ "show-feedback": n.value,
115
+ "is-selected": y(a.value.choice2),
116
+ onSelectAnswer: d[1] || (d[1] = (L) => x(a.value.choice2))
124
117
  }, null, 8, ["choice", "show-feedback", "is-selected"])
125
118
  ])
126
119
  ]),
127
- s.value ? (u(), v(J, {
120
+ n.value ? (r(), v(K, {
128
121
  key: 0,
129
- title: t.value?.isGoodAnswer ? a.$t("quiz-stepper.feedback.success") : a.$t("quiz-stepper.feedback.failed")
122
+ title: t.value?.isGoodAnswer ? i.$t("quiz-stepper.feedback.success") : i.$t("quiz-stepper.feedback.failed")
130
123
  }, {
131
- icon: z(() => [
132
- t.value?.isGoodAnswer ? (u(), v(H, {
124
+ icon: k(() => [
125
+ t.value?.isGoodAnswer ? (r(), v(H, {
133
126
  key: 0,
134
127
  class: "icon-size"
135
- })) : (u(), v(K, {
128
+ })) : (r(), v(I, {
136
129
  key: 1,
137
130
  class: "icon-size"
138
131
  }))
139
132
  ]),
140
- content: z(() => [
141
- P(l(t.value?.isGoodAnswer ? r.value.feedback.success : r.value.feedback.failed), 1)
133
+ content: k(() => [
134
+ G(u(t.value?.isGoodAnswer ? a.value.feedback.success : a.value.feedback.failed), 1)
142
135
  ]),
143
136
  _: 1
144
- }, 8, ["title"])) : b("", !0),
145
- $.value ? (u(), h("button", {
137
+ }, 8, ["title"])) : g("", !0),
138
+ $.value ? (r(), m("button", {
146
139
  key: 1,
147
140
  type: "submit",
148
141
  class: B(["submit-button", { "is-disabled": !t.value }]),
149
142
  "aria-disable": !t.value
150
- }, l(F.value), 11, be)) : b("", !0)
143
+ }, u(C.value), 11, fe)) : g("", !0)
151
144
  ])
152
145
  ], 544));
153
146
  }
154
- }), _e = "*{--neutral-800: #253858;--neutral-900: #122647;font-family:Roboto,sans-serif}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.icon-size{width:16px;height:16px}.quiz-stepper-container{display:flex;flex-direction:column;align-items:center;color:var(--neutral-800)}.quiz-stepper-container button{cursor:pointer}.quiz-stepper-container fieldset{border:none}.quiz-stepper-container legend{margin-bottom:1.5em}.quiz-stepper-container__layout{width:80%;display:flex;flex-direction:column;gap:1.5em;align-items:center;padding:1.5em 1em}.quiz-stepper-container .question{color:var(--neutral-900);text-align:center;font-family:Nunito;font-size:1.25em;font-style:normal;font-weight:700;line-height:28px}.quiz-stepper-container .card-wrapper{display:flex;padding:1.5em;justify-content:center;gap:1.5em;border-radius:16px;background:#f4f5f7;width:calc(100% - 3em)}.quiz-stepper-container .submit-button{display:flex;padding:.5em 1.5em;justify-content:center;align-items:center;gap:.5em;border-radius:8px;background:#253858;border:none;color:#fff;font-weight:700}.quiz-stepper-container .submit-button.is-disabled{background:#cdd1d9;cursor:not-allowed}.quiz-stepper-container .steps-wrapper{display:flex;align-items:center;justify-content:center;color:#613fdd;font-size:.875rem;gap:6px;font-weight:500;width:100%}.quiz-stepper-container .steps-wrapper p{text-wrap:nowrap;margin:0}.quiz-stepper-container .steps-wrapper__stepper{background:#e8eaed;height:8px;width:100%;border-radius:4px}.quiz-stepper-container .steps-wrapper__effective-steps{width:var(--stepIndex);background:#613fdd;border-radius:4px;height:8px}@media screen and (max-width:630px){.quiz-stepper-container__layout{width:calc(100% - 1em);padding:1em .5em}.quiz-stepper-container .card-wrapper{padding:1em;flex-direction:column;width:calc(100% - 2em)}}", we = /* @__PURE__ */ j(ge, [["styles", [_e]]]);
155
- O(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": W, "./locales/en.json": X, "./locales/es-419.json": Y, "./locales/es.json": Z, "./locales/fr-BE.json": ee, "./locales/fr.json": te, "./locales/it.json": se, "./locales/nl.json": ne })).catch((e) => console.error(e));
156
- const A = R(we, {
147
+ }), be = "*{--neutral-800: #253858;--neutral-900: #122647;font-family:Roboto,sans-serif}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.icon-size{width:16px;height:16px}.quiz-stepper-container{display:flex;flex-direction:column;align-items:center;color:var(--neutral-800)}.quiz-stepper-container button{cursor:pointer}.quiz-stepper-container fieldset{border:none}.quiz-stepper-container legend{margin-bottom:1.5em}.quiz-stepper-container__layout{width:80%;display:flex;flex-direction:column;gap:1.5em;align-items:center;padding:1.5em 1em}.quiz-stepper-container .question{color:var(--neutral-900);text-align:center;font-family:Nunito;font-size:1.25em;font-style:normal;font-weight:700;line-height:28px}.quiz-stepper-container .card-wrapper{display:flex;padding:1.5em;justify-content:center;gap:1.5em;border-radius:16px;background:#f4f5f7;width:calc(100% - 3em)}.quiz-stepper-container .submit-button{display:flex;padding:.5em 1.5em;justify-content:center;align-items:center;gap:.5em;border-radius:8px;background:#253858;border:none;color:#fff;font-weight:700}.quiz-stepper-container .submit-button.is-disabled{background:#cdd1d9;cursor:not-allowed}@media screen and (max-width:630px){.quiz-stepper-container__layout{width:calc(100% - 1em);padding:1em .5em}.quiz-stepper-container .card-wrapper{padding:1em;flex-direction:column;width:calc(100% - 2em)}}", he = /* @__PURE__ */ j(me, [["styles", [be]]]);
148
+ P(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": W, "./locales/en.json": X, "./locales/es-419.json": Y, "./locales/es.json": Z, "./locales/fr-BE.json": ee, "./locales/fr.json": te, "./locales/it.json": ne, "./locales/nl.json": se })).catch((e) => console.error(e));
149
+ U();
150
+ const A = R(he, {
157
151
  configureApp(e) {
158
- k.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(D, { i18next: k });
152
+ z.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(D, { i18next: z });
159
153
  }
160
154
  });
161
155
  A.prototype.normalizeProps = (e) => {
162
- let { steps: c, titleLevel: n } = e;
156
+ let { steps: c, titleLevel: s } = e;
163
157
  return c = c.map((t) => {
164
- let { choice1: s, choice2: o } = t;
165
- return s = {
158
+ let { choice1: n, choice2: o } = t;
159
+ return n = {
166
160
  ...t.choice1,
167
- title: f(s.title),
168
- content: f(s.content)
161
+ title: f(n.title),
162
+ content: f(n.content)
169
163
  }, o = {
170
164
  ...t.choice2,
171
165
  title: f(o.title),
172
166
  content: f(o.content)
173
167
  }, {
174
168
  ...t,
175
- choice1: s,
169
+ choice1: n,
176
170
  choice2: o
177
171
  };
178
172
  }), {
179
173
  steps: c,
180
- titleLevel: U(n)
174
+ titleLevel: J(s)
181
175
  };
182
176
  };
183
177
  window.customElements.define("quiz-stepper", A);
@@ -1,7 +1,7 @@
1
- import { d as w, r as g, y as u, c as n, o as i, a as e, t as a, k as l, n as z, H as k, F as p, b as M, B as T, _ as D, f as C } from "../_plugin-vue_export-helper-BPDEgOal.js";
2
- import { a as j, i as _, b as L } from "../i18n-BuCPzaih.js";
3
- import { u as S } from "../normalize-props-DtfVI0Xg.js";
4
- import { r as F, q as B, t as f } from "../temporal.utils-CotrC6ao.js";
1
+ import { b as w, r as g, g as p, c as n, o as i, a as e, t as a, k as l, n as z, H as k, F as u, e as M, B as T, _ as D, d as C } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { a as j, i as _, b as L } from "../i18n-ekiZvzf6.js";
3
+ import { b as S } from "../normalize-props-DH0oPBss.js";
4
+ import { a as F, q as B, t as f } from "../temporal.utils-7Uvm62ss.js";
5
5
  const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
6
6
  "select-conversation": { "select-response-title": "Sélectionnez le message que {{username}} devrait envoyer :", "message-date": "{{messageDay, relativetime(numeric: auto)}} · {{messageTime, datetime(timeStyle: short)}}", "incoming-message-sr": "Message de {{username}} reçu {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "outgoing-message-sr": "Message envoyé par {{username}} {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "good-idea": "Bonne idée", "bad-idea": "Mauvaise idée" }
7
7
  }, R = {}, H = {}, O = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M434.8%2070.1c14.3%2010.4%2017.5%2030.4%207.1%2044.7l-256%20352c-5.5%207.6-14%2012.3-23.4%2013.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l101.5%20101.5%20234-321.7c10.4-14.3%2030.4-17.5%2044.7-7.1z'/%3e%3c/svg%3e", V = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M256%2048a208%20208%200%201%201%200%20416%20208%20208%200%201%201%200-416zm0%20464a256%20256%200%201%200%200-512%20256%20256%200%201%200%200%20512zM167%20167c-9.4%209.4-9.4%2024.6%200%2033.9l55%2055-55%2055c-9.4%209.4-9.4%2024.6%200%2033.9s24.6%209.4%2033.9%200l55-55%2055%2055c9.4%209.4%2024.6%209.4%2033.9%200s9.4-24.6%200-33.9l-55-55%2055-55c9.4-9.4%209.4-24.6%200-33.9s-24.6-9.4-33.9%200l-55%2055-55-55c-9.4-9.4-24.6-9.4-33.9%200z'/%3e%3c/svg%3e", G = { class: "messages" }, P = { class: "message" }, X = {
@@ -16,7 +16,7 @@ const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
16
16
  }, Y = { class: "sr-only" }, Z = { class: "message__content-container" }, ee = { class: "message__content-title" }, se = ["src"], te = { class: "message__content" }, ae = {
17
17
  class: "message__date",
18
18
  "aria-hidden": "true"
19
- }, oe = { class: "response-select" }, ne = ["aria-level"], ie = { class: "response-select__choices" }, le = ["aria-disabled", "onClick"], re = { "aria-live": "polite" }, ce = ["innerHTML"], de = /* @__PURE__ */ w({
19
+ }, oe = { class: "response-select" }, ne = ["aria-level"], ie = { class: "response-select__choices" }, le = ["aria-disabled", "onClick"], ce = { "aria-live": "polite" }, re = ["innerHTML"], de = /* @__PURE__ */ w({
20
20
  __name: "SelectConversation.ce",
21
21
  props: {
22
22
  titleLevel: { default: 2, type: Number },
@@ -25,7 +25,7 @@ const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
25
25
  responseChoices: { type: Array }
26
26
  },
27
27
  setup(s, { expose: v }) {
28
- const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(), r = u(() => F(s.incomingMessage.time)), m = u(() => r.value.day - B.Now.plainDateTimeISO().day);
28
+ const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(), c = p(() => F(s.incomingMessage.time)), m = p(() => c.value.day - B.Now.plainDateTimeISO().day);
29
29
  function b(t) {
30
30
  t.selected || (t.selected = !0, o.value = t);
31
31
  }
@@ -36,13 +36,13 @@ const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
36
36
  }
37
37
  return v({
38
38
  reset: y
39
- }), (t, ue) => (i(), n(p, null, [
39
+ }), (t, pe) => (i(), n(u, null, [
40
40
  e("div", G, [
41
41
  e("div", P, [
42
42
  e("p", X, a(s.incomingMessage.username), 1),
43
- e("p", J, a(t.$t("select-conversation.incoming-message-sr", { username: s.incomingMessage.username, messageDay: m.value, messageTime: l(f)(r.value) })), 1),
43
+ e("p", J, a(t.$t("select-conversation.incoming-message-sr", { username: s.incomingMessage.username, messageDay: m.value, messageTime: l(f)(c.value) })), 1),
44
44
  e("p", K, a(s.incomingMessage.content), 1),
45
- e("p", Q, a(t.$t("select-conversation.message-date", { messageDay: m.value, messageTime: l(f)(r.value) })), 1)
45
+ e("p", Q, a(t.$t("select-conversation.message-date", { messageDay: m.value, messageTime: l(f)(c.value) })), 1)
46
46
  ]),
47
47
  e("div", {
48
48
  class: z(["message message--outgoing", { "message--hidden": !o.value }]),
@@ -72,20 +72,20 @@ const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
72
72
  class: "title"
73
73
  }, a(t.$t("select-conversation.select-response-title", { username: s.username })), 9, ne),
74
74
  e("div", ie, [
75
- (i(!0), n(p, null, M(d.value, (c, x) => (i(), n("button", {
75
+ (i(!0), n(u, null, M(d.value, (r, x) => (i(), n("button", {
76
76
  key: x,
77
77
  type: "button",
78
78
  class: "response-select__choice",
79
- "aria-disabled": c.selected,
80
- onClick: (pe) => b(c)
81
- }, a(c.content), 9, le))), 128))
79
+ "aria-disabled": r.selected,
80
+ onClick: (ue) => b(r)
81
+ }, a(r.content), 9, le))), 128))
82
82
  ]),
83
- e("div", re, [
83
+ e("div", ce, [
84
84
  o.value ? (i(), n("p", {
85
85
  key: 0,
86
86
  class: "response-select__feedback",
87
87
  innerHTML: o.value.feedback
88
- }, null, 8, ce)) : T("", !0)
88
+ }, null, 8, re)) : T("", !0)
89
89
  ])
90
90
  ])
91
91
  ], 64));
@@ -1,41 +1,12 @@
1
- import { b as v, a as _, u as b } from "../normalize-props-DtfVI0Xg.js";
2
- import { c as p, o as m, a as e, d as x, j as C, v as w, k as o, t as i, B as y, E as k, H as M, F as L, _ as j, f as T } from "../_plugin-vue_export-helper-BPDEgOal.js";
3
- import { u as H, i as r } from "../i18n-lite-DBVKHY8J.js";
4
- import { r as D, t as B } from "../temporal.utils-CotrC6ao.js";
5
- const S = {}, z = {}, E = {}, V = {}, N = {}, A = {
6
- "template-mail": { send: "Répondre", forward: "Transférer", menu: "menu", toMe: "À moi", details: "Afficher les détails", previousHeader: "Le {{ date }} à {{time}}, {{ name }}" }
7
- }, Z = {}, q = {}, F = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.125%204.25H14.875M2.125%208.5H14.875M2.125%2012.75H14.875'%20stroke='black'%20stroke-width='1.77083'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20width='18'%20height='16'%20viewBox='0%200%2018%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.75%206.28086H11.95C18.35%206.28086%2018.35%2014.9722%2011.95%2014.9722M0.75%206.28086L6.35%200.75M0.75%206.28086L6.35%2011.8117'%20stroke='%23122647'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", P = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2744_7877)'%3e%3cpath%20d='M8.57141%202.85714L5.14284%206.28571L8.57141%209.71429'%20stroke='%23122647'%20stroke-width='1.14286'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.4286%2013.1429V10.8571C15.4286%209.64472%2014.9469%208.48196%2014.0896%207.62465C13.2323%206.76735%2012.0696%206.28571%2010.8571%206.28571H5.14285M4%202.85714L0.571426%206.28571L4%209.71429'%20stroke='%23122647'%20stroke-width='1.14286'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2744_7877'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", R = "data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200L3.53%203.38803L7.06%200H0Z'%20fill='black'/%3e%3c/svg%3e", $ = {
8
- width: "41",
9
- height: "41",
10
- viewBox: "0 0 41 41",
11
- xmlns: "http://www.w3.org/2000/svg"
12
- }, G = ["fill"], I = {
13
- __name: "UserSVG.ce",
14
- props: {
15
- color: {
16
- type: String,
17
- default: "#2F80ED"
18
- }
19
- },
20
- setup(t) {
21
- return (a, l) => (m(), p("svg", $, [
22
- l[0] || (l[0] = e("path", {
23
- d: "M9 33.5484C9.02496 31.6445 9.79268 29.8271 11.1371 28.4893C12.4815 27.1515 14.2944 26.4009 16.1837 26.3999H24.8163C26.7056 26.4009 28.5185 27.1515 29.8629 28.4893C31.2073 29.8271 31.975 31.6445 32 33.5484C28.8446 36.4141 24.7476 38 20.5 38C16.2524 38 12.1554 36.4141 9 33.5484ZM26.9744 15.525C26.9744 16.8155 26.5947 18.077 25.8833 19.1501C25.1719 20.2231 24.1607 21.0594 22.9776 21.5533C21.7946 22.0471 20.4928 22.1763 19.2369 21.9246C17.981 21.6728 16.8274 21.0514 15.9219 20.1388C15.0164 19.2263 14.3998 18.0637 14.15 16.7979C13.9002 15.5322 14.0284 14.2203 14.5184 13.028C15.0085 11.8357 15.8383 10.8166 16.903 10.0997C17.9677 9.38268 19.2195 9 20.5 9C22.2171 9 23.8639 9.68745 25.0781 10.9111C26.2923 12.1348 26.9744 13.7944 26.9744 15.525Z",
24
- fill: "white"
25
- }, null, -1)),
26
- e("path", {
27
- d: "M36.2655 33.5758C38.3699 31.0459 39.8335 28.0469 40.5326 24.8323C41.2316 21.6177 41.1455 18.2822 40.2815 15.1079C39.4175 11.9336 37.8011 9.0139 35.569 6.59581C33.3368 4.17772 30.5547 2.33238 27.4578 1.21587C24.3609 0.0993725 21.0405 -0.255438 17.7774 0.181459C14.5142 0.618355 11.4044 1.83411 8.71099 3.72586C6.01756 5.61762 3.81975 8.12973 2.30349 11.0497C0.787232 13.9696 -0.00287585 17.2115 7.86538e-06 20.5011C0.00111445 25.2832 1.6877 29.9122 4.7638 33.5758L4.7345 33.6007C4.83707 33.7237 4.9543 33.8291 5.0598 33.9506C5.19168 34.1014 5.33382 34.2435 5.47009 34.3899C5.88039 34.835 6.3024 35.2625 6.74493 35.6637C6.87974 35.7866 7.01895 35.9008 7.15522 36.018C7.62413 36.4221 8.10623 36.8057 8.6059 37.1629C8.67038 37.2068 8.72899 37.264 8.79347 37.3093V37.2918C12.2254 39.7049 16.3196 41 20.5161 41C24.7127 41 28.8068 39.7049 32.2388 37.2918V37.3093C32.3033 37.264 32.3604 37.2068 32.4263 37.1629C32.9246 36.8042 33.4081 36.4221 33.877 36.018C34.0133 35.9008 34.1525 35.7852 34.2873 35.6637C34.7298 35.261 35.1519 34.835 35.5622 34.3899C35.6984 34.2435 35.8391 34.1014 35.9725 33.9506C36.0765 33.8291 36.1952 33.7237 36.2978 33.5992L36.2655 33.5758ZM20.5147 8.78808C21.8188 8.78808 23.0937 9.1745 24.1781 9.89846C25.2625 10.6224 26.1076 11.6514 26.6067 12.8553C27.1058 14.0592 27.2364 15.384 26.982 16.662C26.7275 17.9401 26.0995 19.1141 25.1773 20.0355C24.2551 20.9569 23.0802 21.5844 21.8011 21.8387C20.522 22.0929 19.1961 21.9624 17.9912 21.4637C16.7864 20.9651 15.7565 20.1206 15.032 19.0371C14.3074 17.9536 13.9207 16.6798 13.9207 15.3767C13.9207 13.6293 14.6154 11.9534 15.852 10.7178C17.0886 9.48224 18.7658 8.78808 20.5147 8.78808ZM8.80226 33.5758C8.82768 31.6534 9.60958 29.8182 10.9788 28.4674C12.348 27.1165 14.1945 26.3586 16.1187 26.3576H24.9107C26.8349 26.3586 28.6813 27.1165 30.0505 28.4674C31.4197 29.8182 32.2016 31.6534 32.2271 33.5758C29.0134 36.4694 24.8407 38.0708 20.5147 38.0708C16.1886 38.0708 12.016 36.4694 8.80226 33.5758Z",
28
- fill: t.color
29
- }, null, 8, G)
30
- ]));
31
- }
32
- }, U = { class: "nav" }, X = { "aria-disabled": "true" }, J = ["src"], K = { class: "sr-only-mobile" }, Q = { "aria-disabled": "true" }, W = ["src"], Y = { class: "sr-only-mobile" }, ee = { "aria-disabled": "true" }, te = ["src"], oe = { class: "sr-only" }, ie = { class: "main" }, ae = { class: "header" }, se = ["aria-level"], ne = { class: "date" }, le = { class: "expeditor" }, re = ["aria-level"], de = { class: "expeditor-mail" }, ce = { class: "recipient" }, pe = ["aria-label"], me = ["src"], ue = ["innerHTML"], ge = {
33
- key: 0,
34
- class: "previous-message"
35
- }, he = { class: "previous-message__header" }, fe = ["innerHTML"], ve = /* @__PURE__ */ x({
1
+ import { _ as r, a as m, b as _, c as p, d as c, e as u, f as d, g } from "../nl-Bonww6Q2.js";
2
+ import { u as v, a as b, b as f } from "../normalize-props-DH0oPBss.js";
3
+ import { b as j, g as s, f as M, o as x, d as y } from "../_plugin-vue_export-helper-D0N_62VD.js";
4
+ import { i as t } from "../i18n-lite-t2jNOu0C.js";
5
+ import { P as C } from "../PixMailMessage.ce-XPDbJiyC.js";
6
+ const S = /* @__PURE__ */ j({
36
7
  __name: "TemplateMail.ce",
37
8
  props: {
38
- titleLevel: { default: 2, type: Number },
9
+ titleLevel: { type: Number },
39
10
  subject: { type: String },
40
11
  mailAddress: { type: String },
41
12
  avatarColor: { type: String },
@@ -44,122 +15,49 @@ const S = {}, z = {}, E = {}, V = {}, N = {}, A = {
44
15
  content: { type: String },
45
16
  previousMail: { type: Object }
46
17
  },
47
- setup(t) {
48
- const { t: a } = H(), l = C("content");
49
- w(() => {
50
- l.value.querySelectorAll("a").forEach((s) => {
51
- s.addEventListener("click", (c) => {
52
- c.preventDefault();
53
- });
54
- });
55
- });
56
- function d(n, s) {
57
- const c = D(n), f = B(c);
58
- return new Intl.DateTimeFormat(r.language, s).format(f);
59
- }
60
- const g = d(t.time, {
61
- weekday: "short",
62
- day: "numeric",
63
- month: "numeric",
64
- year: "2-digit",
65
- hour: "2-digit",
66
- minute: "2-digit"
67
- });
68
- function h() {
69
- const n = d(t.previousMail.time, {
70
- weekday: "short",
71
- day: "numeric",
72
- month: "numeric",
73
- year: "2-digit"
74
- }), s = d(t.previousMail.time, {
75
- hour: "2-digit",
76
- minute: "2-digit"
77
- });
78
- return a("template-mail.previousHeader", { name: t.previousMail.name, time: s, date: n, interpolation: { escapeValue: !1 } });
79
- }
80
- return (n, s) => (m(), p(L, null, [
81
- e("div", U, [
82
- e("button", X, [
83
- e("img", {
84
- src: o(O),
85
- alt: ""
86
- }, null, 8, J),
87
- e("span", K, i(o(a)("template-mail.send")), 1)
88
- ]),
89
- e("button", Q, [
90
- e("img", {
91
- class: "forward",
92
- src: o(P),
93
- alt: ""
94
- }, null, 8, W),
95
- e("span", Y, i(o(a)("template-mail.forward")), 1)
96
- ]),
97
- e("button", ee, [
98
- e("img", {
99
- src: o(F),
100
- alt: ""
101
- }, null, 8, te),
102
- e("span", oe, i(o(a)("template-mail.menu")), 1)
103
- ])
104
- ]),
105
- e("div", ie, [
106
- e("div", ae, [
107
- e("div", {
108
- role: "heading",
109
- "aria-level": t.titleLevel
110
- }, i(t.subject), 9, se),
111
- e("p", ne, i(o(g)), 1)
112
- ]),
113
- e("div", le, [
114
- k(I, {
115
- class: "avatar",
116
- color: t.avatarColor
117
- }, null, 8, ["color"]),
118
- e("div", {
119
- role: "heading",
120
- "aria-level": t.titleLevel + 1
121
- }, [
122
- M(i(t.expeditor) + " ", 1),
123
- e("span", de, " <" + i(t.mailAddress) + ">", 1)
124
- ], 8, re),
125
- e("div", ce, [
126
- e("p", null, i(o(a)("template-mail.toMe")), 1),
127
- e("button", {
128
- "aria-disabled": "true",
129
- "aria-label": o(a)("template-mail.details")
130
- }, [
131
- e("img", {
132
- src: o(R),
133
- alt: ""
134
- }, null, 8, me)
135
- ], 8, pe)
136
- ])
137
- ]),
138
- e("p", {
139
- ref: "content",
140
- class: "content",
141
- innerHTML: t.content
142
- }, null, 8, ue),
143
- t.previousMail ? (m(), p("div", ge, [
144
- e("p", he, i(h()), 1),
145
- e("blockquote", {
146
- innerHTML: t.previousMail.content
147
- }, null, 8, fe)
148
- ])) : y("", !0)
149
- ])
150
- ], 64));
18
+ setup(a) {
19
+ const e = a, l = s(() => {
20
+ if (e.previousMail)
21
+ return {
22
+ sender: {
23
+ name: e.previousMail.name
24
+ },
25
+ time: e.previousMail.time,
26
+ body: e.previousMail.content
27
+ };
28
+ }), o = s(() => ({
29
+ subject: e.subject,
30
+ sender: {
31
+ name: e.expeditor,
32
+ address: e.mailAddress,
33
+ avatarColor: e.avatarColor
34
+ },
35
+ time: e.time,
36
+ body: e.content,
37
+ previousMail: l.value
38
+ })), n = {
39
+ reply: "disabled",
40
+ forward: "disabled",
41
+ menu: "disabled",
42
+ return: "hidden"
43
+ };
44
+ return (L, A) => (x(), M(C, {
45
+ "title-level": a.titleLevel,
46
+ mail: o.value,
47
+ actions: n
48
+ }, null, 8, ["title-level", "mail"]));
151
49
  }
152
- }), _e = "html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}button,p,div[role=heading]{font-family:Roboto,sans-serif;color:#253858}.nav{border-radius:8px 8px 0 0;padding:12px 16px;display:flex;gap:8px;background:#fff;border-right:1px solid #cdd1d9;border-top:1px solid #cdd1d9;border-left:1px solid #cdd1d9}.nav button{display:flex;gap:8px;align-items:center;cursor:not-allowed;padding:4px 16px;border:1px solid #cdd1d9;background:#fff;border-radius:8px;color:#122647;font-size:.875rem;font-weight:700}.nav button:last-child{margin-left:auto}.nav .forward{transform:scaleX(-1)}.main{border-radius:0 0 8px 8px;border-right:1px solid #cdd1d9;border-bottom:1px solid #cdd1d9;border-left:1px solid #cdd1d9;background:#f4f5f7;padding:24px 16px}.header{display:flex;justify-content:space-between}.header div[role]{font-family:open-sans,sans-serif;font-size:1.125rem}.header .date{color:#5e6c84;font-size:.75rem}.expeditor{display:grid;column-gap:4px;width:fit-content;margin:12px 0;grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto)}.expeditor div[role]{font-weight:700}.expeditor-mail,.expeditor .recipient p{align-self:end;font-size:.75rem;color:#5e6c84;font-weight:400;word-break:break-word}.expeditor .recipient{display:flex}.expeditor .recipient button{border:none;background:transparent;display:flex;align-items:center;cursor:not-allowed}.expeditor .avatar{grid-row:1/span 2;margin-right:12px}.content{color:#122647;font-size:.875rem}.previous-message{font-size:.875rem;margin-top:24px}.previous-message__header{font-style:italic;font-size:.875rem;color:#5e6c84;margin-bottom:8px}.previous-message blockquote{border-left:1px solid #cdd1d9;margin-left:8px;padding-left:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}@media screen and (max-width:576px){.sr-only-mobile{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.date{display:none}}", be = /* @__PURE__ */ j(ve, [["styles", [_e]]]);
153
- r.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": S, "./locales/en.json": z, "./locales/es-419.json": E, "./locales/es.json": V, "./locales/fr-BE.json": N, "./locales/fr.json": A, "./locales/it.json": Z, "./locales/nl.json": q }));
154
- const u = T(be, {
155
- configureApp(t) {
156
- r.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(r);
50
+ });
51
+ t.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "../pix-mail-message/locales/de-AT.json": g, "../pix-mail-message/locales/en.json": d, "../pix-mail-message/locales/es-419.json": u, "../pix-mail-message/locales/es.json": c, "../pix-mail-message/locales/fr-BE.json": p, "../pix-mail-message/locales/fr.json": _, "../pix-mail-message/locales/it.json": m, "../pix-mail-message/locales/nl.json": r }));
52
+ const i = y(S, {
53
+ configureApp(a) {
54
+ t.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(t);
157
55
  }
158
56
  });
159
- u.prototype.normalizeProps = (t) => ({
160
- ...t,
161
- titleLevel: b(t.titleLevel),
162
- avatarColor: _(t.avatarColor),
163
- previousMail: v(t.previousMail)
57
+ i.prototype.normalizeProps = (a) => ({
58
+ ...a,
59
+ titleLevel: f(a.titleLevel),
60
+ avatarColor: b(a.avatarColor),
61
+ previousMail: v(a.previousMail)
164
62
  });
165
- window.customElements.define("template-mail", u);
63
+ window.customElements.define("template-mail", i);