@egov-moldova/mud-site-kit 1.0.4 → 1.0.5
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/README.md +22 -19
- package/assets/header/evosign-logo.svg +12 -0
- package/assets/header/guvernul-emblem.svg +10 -0
- package/assets/header/mconnect-logo.svg +32 -0
- package/assets/header/mdate-logo.svg +36 -0
- package/assets/header/mdelivery-logo.svg +36 -0
- package/assets/header/mdocs-logo.svg +40 -0
- package/assets/header/mlearn-logo.svg +62 -0
- package/assets/header/mnotify-logo.svg +36 -0
- package/assets/header/mpass-logo.svg +36 -0
- package/assets/header/mpay-logo.svg +39 -0
- package/assets/header/mpower-logo.svg +28 -0
- package/assets/header/msign-logo.svg +36 -0
- package/assets/m-products/png/edemocratie.png +0 -0
- package/mud-site-kit.esm.js +1192 -221
- package/mud-site-kit.esm.js.map +1 -1
- package/mud-site-kit.iife.js +617 -40
- package/mud-site-kit.iife.js.map +1 -1
- package/package.json +1 -1
- package/types/components/footer/data/contacts.d.ts +45 -0
- package/types/components/footer/data/evosign.d.ts +2 -0
- package/types/components/footer/data/index.d.ts +15 -0
- package/types/components/footer/data/links.production.d.ts +8 -0
- package/types/components/footer/data/mconnect.d.ts +2 -0
- package/types/components/footer/data/mdate.d.ts +2 -0
- package/types/components/footer/data/mdelivery.d.ts +2 -0
- package/types/components/footer/data/mlearn.d.ts +2 -0
- package/types/components/footer/data/mnotify.d.ts +2 -0
- package/types/components/footer/data/mpass.d.ts +2 -0
- package/types/components/footer/data/mpower.d.ts +2 -0
- package/types/components/footer/data/msign.d.ts +2 -0
- package/types/components/footer/data/shared.d.ts +3 -0
- package/types/components/footer/data/texts.d.ts +53 -0
- package/types/components/footer/footer.styles.d.ts +2 -0
- package/types/components/footer/footer.template.d.ts +18 -0
- package/types/components/footer/index.d.ts +4 -0
- package/types/components/footer/mud-footer.d.ts +34 -0
- package/types/components/footer/resources/footer.assets.d.ts +4 -0
- package/types/components/footer/resources/footer.icons.d.ts +2 -0
- package/types/components/footer/types/footer.types.d.ts +113 -0
- package/types/components/header/data/evosign.d.ts +2 -0
- package/types/components/header/data/index.d.ts +17 -0
- package/types/components/header/data/links.production.d.ts +8 -0
- package/types/components/header/data/mconnect.d.ts +2 -0
- package/types/components/header/data/mdate.d.ts +2 -0
- package/types/components/header/data/mdelivery.d.ts +2 -0
- package/types/components/header/data/mdocs.d.ts +2 -0
- package/types/components/header/data/mlearn.d.ts +2 -0
- package/types/components/header/data/mnotify.d.ts +2 -0
- package/types/components/header/data/mpass.d.ts +2 -0
- package/types/components/header/data/mpay.d.ts +2 -0
- package/types/components/header/data/mpower.d.ts +2 -0
- package/types/components/header/data/msign.d.ts +2 -0
- package/types/components/header/data/shared.d.ts +3 -0
- package/types/components/header/data/texts.d.ts +18 -0
- package/types/components/header/header.styles.d.ts +2 -0
- package/types/components/header/header.template.d.ts +34 -0
- package/types/components/header/index.d.ts +4 -0
- package/types/components/header/mud-header.d.ts +69 -0
- package/types/components/header/resources/header.assets.d.ts +4 -0
- package/types/components/header/resources/header.icons.d.ts +3 -0
- package/types/components/header/types/header.types.d.ts +86 -0
- package/types/i18n.d.ts +2 -2
- package/types/index.d.ts +3 -2
- package/types/{mud-widget.d.ts → mud-component.d.ts} +6 -6
- package/types/mud-loader.d.ts +1 -1
- package/types/widgets/footer/mud-footer.d.ts +2 -2
- /package/types/{widgets → components}/mproducts-logo/index.d.ts +0 -0
- /package/types/{widgets → components}/mproducts-logo/mud-mproducts-logo.d.ts +0 -0
package/mud-site-kit.esm.js
CHANGED
|
@@ -1,50 +1,53 @@
|
|
|
1
|
-
const
|
|
2
|
-
let
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
const R = ["mud.css", "tokens/core.tokens.css"];
|
|
2
|
+
let F, L;
|
|
3
|
+
function g3(t) {
|
|
4
|
+
F = t.baseUrl.endsWith("/") ? t.baseUrl : `${t.baseUrl}/`;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
return
|
|
6
|
+
function I() {
|
|
7
|
+
return F ?? new URL(
|
|
8
8
|
/* @vite-ignore */
|
|
9
9
|
"./mud/",
|
|
10
10
|
import.meta.url
|
|
11
11
|
).href;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
for (const e of
|
|
13
|
+
function N(t) {
|
|
14
|
+
for (const e of R) {
|
|
15
15
|
const n = t + e;
|
|
16
16
|
if (document.querySelector(`link[data-mud-site-kit][href="${n}"]`)) continue;
|
|
17
|
-
const
|
|
18
|
-
|
|
17
|
+
const o = document.createElement("link");
|
|
18
|
+
o.rel = "stylesheet", o.href = n, o.dataset.mudSiteKit = "", document.head.appendChild(o);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
if (!
|
|
23
|
-
const t =
|
|
24
|
-
|
|
21
|
+
function W() {
|
|
22
|
+
if (!L) {
|
|
23
|
+
const t = I();
|
|
24
|
+
N(t), L = import(
|
|
25
25
|
/* @vite-ignore */
|
|
26
26
|
`${t}mud.esm.js`
|
|
27
27
|
).then(() => {
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return L;
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const K = ["ro", "ru", "en"], Y = "ro";
|
|
33
|
+
function J(t) {
|
|
34
34
|
const e = t?.trim().toLowerCase().split("-")[0];
|
|
35
|
-
return
|
|
35
|
+
return K.find((n) => n === e) ?? Y;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
37
|
+
function X() {
|
|
38
|
+
return J(document.documentElement.getAttribute("lang"));
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Q(t) {
|
|
41
41
|
const e = new MutationObserver(t);
|
|
42
42
|
return e.observe(document.documentElement, { attributes: !0, attributeFilter: ["lang"] }), () => e.disconnect();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function l(t, e) {
|
|
45
45
|
return typeof t == "string" ? t : t[e];
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
function x(t, e) {
|
|
48
|
+
return t.replace("{lang}", e);
|
|
49
|
+
}
|
|
50
|
+
class A extends HTMLElement {
|
|
48
51
|
root;
|
|
49
52
|
stopWatchingLang;
|
|
50
53
|
constructor() {
|
|
@@ -56,9 +59,9 @@ class $ extends HTMLElement {
|
|
|
56
59
|
}
|
|
57
60
|
/** Page language (ro | ru | en), from <html lang>. */
|
|
58
61
|
get pageLang() {
|
|
59
|
-
return
|
|
62
|
+
return X();
|
|
60
63
|
}
|
|
61
|
-
/**
|
|
64
|
+
/** Component-specific CSS (added to the shadow root). */
|
|
62
65
|
styles() {
|
|
63
66
|
return "";
|
|
64
67
|
}
|
|
@@ -66,13 +69,13 @@ class $ extends HTMLElement {
|
|
|
66
69
|
afterRender() {
|
|
67
70
|
}
|
|
68
71
|
connectedCallback() {
|
|
69
|
-
|
|
72
|
+
W(), this.stopWatchingLang = Q(() => this.render()), this.render();
|
|
70
73
|
}
|
|
71
74
|
disconnectedCallback() {
|
|
72
75
|
this.stopWatchingLang?.();
|
|
73
76
|
}
|
|
74
|
-
attributeChangedCallback(e, n,
|
|
75
|
-
n !==
|
|
77
|
+
attributeChangedCallback(e, n, o) {
|
|
78
|
+
n !== o && this.isConnected && this.render();
|
|
76
79
|
}
|
|
77
80
|
render() {
|
|
78
81
|
this.root.innerHTML = `<style>:host{display:block}${this.styles()}</style>${this.template()}`, this.afterRender();
|
|
@@ -82,17 +85,17 @@ class $ extends HTMLElement {
|
|
|
82
85
|
this.dispatchEvent(new CustomEvent(e, { detail: n, bubbles: !0, composed: !0 }));
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
|
-
function
|
|
88
|
+
function r(t) {
|
|
86
89
|
return t.replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
87
90
|
}
|
|
88
|
-
function
|
|
91
|
+
function H(t, e) {
|
|
89
92
|
customElements.get(t) || customElements.define(t, e);
|
|
90
93
|
}
|
|
91
|
-
const
|
|
94
|
+
const m = {
|
|
92
95
|
support: { text: "022 820 000", href: "tel:022820000" },
|
|
93
96
|
mconnect: { text: "022 820 022", href: "tel:022820022" },
|
|
94
97
|
evo: { text: "022 820 026", href: "tel:022820026" }
|
|
95
|
-
},
|
|
98
|
+
}, p = {
|
|
96
99
|
support: { text: "suport@egov.md", href: "mailto:suport@egov.md" },
|
|
97
100
|
/** Support address with its caption, for the platforms that also list `services`. */
|
|
98
101
|
supportCitizens: {
|
|
@@ -111,7 +114,7 @@ const s = {
|
|
|
111
114
|
noteTwoRows: !0
|
|
112
115
|
},
|
|
113
116
|
mconnect: { text: "suport.mconnect@egov.md", href: "mailto:suport.mconnect@egov.md" }
|
|
114
|
-
},
|
|
117
|
+
}, i = {
|
|
115
118
|
aboutService: { ro: "Despre serviciu", ru: "О сервисе", en: "About the service" },
|
|
116
119
|
faq: { ro: "Întrebări frecvente", ru: "Часто задаваемые вопросы", en: "Frequently asked questions" },
|
|
117
120
|
integrationGuide: { ro: "Ghid de integrare", ru: "Руководство по интеграции", en: "Integration guide" },
|
|
@@ -121,16 +124,16 @@ const s = {
|
|
|
121
124
|
terms: { ro: "Termeni și condiții", ru: "Условия использования", en: "Terms and conditions" },
|
|
122
125
|
usefulResources: { ro: "Resurse utile", ru: "Полезные ресурсы", en: "Useful resources" },
|
|
123
126
|
userGuide: { ro: "Ghidul utilizatorului", ru: "Руководство пользователя", en: "User guide" }
|
|
124
|
-
},
|
|
127
|
+
}, e6 = {
|
|
125
128
|
name: "mconnect",
|
|
126
129
|
logo: "mconnect",
|
|
127
130
|
logoHref: "https://mconnect.gov.md/ro/home",
|
|
128
131
|
tagline: { ro: "platforma guvernamentală de interoperabilitate", ru: "государственная платформа интероперабельности", en: "government interoperability platform" },
|
|
129
|
-
phone:
|
|
130
|
-
emails: [
|
|
132
|
+
phone: m.mconnect,
|
|
133
|
+
emails: [p.mconnect],
|
|
131
134
|
legal: [
|
|
132
135
|
{
|
|
133
|
-
label:
|
|
136
|
+
label: i.terms,
|
|
134
137
|
href: "https://mconnect.gov.md/ro/terms"
|
|
135
138
|
}
|
|
136
139
|
],
|
|
@@ -159,7 +162,7 @@ const s = {
|
|
|
159
162
|
},
|
|
160
163
|
{
|
|
161
164
|
type: "links",
|
|
162
|
-
heading:
|
|
165
|
+
heading: i.usefulResources,
|
|
163
166
|
items: [
|
|
164
167
|
{
|
|
165
168
|
label: "eGov4Dev",
|
|
@@ -167,15 +170,15 @@ const s = {
|
|
|
167
170
|
newTab: !0
|
|
168
171
|
},
|
|
169
172
|
{
|
|
170
|
-
label:
|
|
173
|
+
label: i.faq,
|
|
171
174
|
href: "https://mconnect.gov.md/ro/faq"
|
|
172
175
|
},
|
|
173
176
|
{
|
|
174
|
-
label:
|
|
177
|
+
label: i.reportProblem,
|
|
175
178
|
href: "mailto:suport.mconnect@egov.md"
|
|
176
179
|
},
|
|
177
180
|
{
|
|
178
|
-
label:
|
|
181
|
+
label: i.userGuide,
|
|
179
182
|
href: "https://mconnect.gov.md/public/userGuide.pdf",
|
|
180
183
|
newTab: !0
|
|
181
184
|
}
|
|
@@ -191,13 +194,13 @@ const s = {
|
|
|
191
194
|
"mnotify",
|
|
192
195
|
"mpay"
|
|
193
196
|
]
|
|
194
|
-
},
|
|
197
|
+
}, t6 = {
|
|
195
198
|
name: "mdate",
|
|
196
199
|
logo: "mdate",
|
|
197
200
|
logoHref: "https://date.gov.md/",
|
|
198
201
|
tagline: { ro: "portalul guvernamental de date", ru: "государственный портал данных", en: "government data portal" },
|
|
199
|
-
phone:
|
|
200
|
-
emails: [
|
|
202
|
+
phone: m.mconnect,
|
|
203
|
+
emails: [p.mconnect],
|
|
201
204
|
legal: [
|
|
202
205
|
{
|
|
203
206
|
label: { ro: "Harta site-ului", ru: "Карта сайта", en: "Site map" },
|
|
@@ -211,7 +214,7 @@ const s = {
|
|
|
211
214
|
},
|
|
212
215
|
{
|
|
213
216
|
type: "links",
|
|
214
|
-
heading:
|
|
217
|
+
heading: i.usefulResources,
|
|
215
218
|
items: [
|
|
216
219
|
{
|
|
217
220
|
label: "eGov4Dev",
|
|
@@ -219,11 +222,11 @@ const s = {
|
|
|
219
222
|
newTab: !0
|
|
220
223
|
},
|
|
221
224
|
{
|
|
222
|
-
label:
|
|
225
|
+
label: i.faq,
|
|
223
226
|
href: "https://date.gov.md/#landing-faq-title"
|
|
224
227
|
},
|
|
225
228
|
{
|
|
226
|
-
label:
|
|
229
|
+
label: i.reportProblem,
|
|
227
230
|
href: "mailto:suport.mconnect@egov.md"
|
|
228
231
|
}
|
|
229
232
|
]
|
|
@@ -238,20 +241,20 @@ const s = {
|
|
|
238
241
|
"mnotify",
|
|
239
242
|
"mpay"
|
|
240
243
|
]
|
|
241
|
-
},
|
|
244
|
+
}, n6 = {
|
|
242
245
|
name: "mpass",
|
|
243
246
|
logo: "mpass",
|
|
244
247
|
logoHref: "https://mpass.gov.md/",
|
|
245
248
|
tagline: { ro: "serviciul de autentificare și control al accesului", ru: "сервис аутентификации и контроля доступа", en: "authentication and access control service" },
|
|
246
|
-
phone:
|
|
247
|
-
emails: [
|
|
249
|
+
phone: m.support,
|
|
250
|
+
emails: [p.supportCitizens, p.services],
|
|
248
251
|
legal: [
|
|
249
252
|
{
|
|
250
|
-
label:
|
|
253
|
+
label: i.terms,
|
|
251
254
|
href: "https://mpass.gov.md/info/terms"
|
|
252
255
|
},
|
|
253
256
|
{
|
|
254
|
-
label:
|
|
257
|
+
label: i.privacy,
|
|
255
258
|
href: "https://mpass.gov.md/info/privacy"
|
|
256
259
|
}
|
|
257
260
|
],
|
|
@@ -262,20 +265,20 @@ const s = {
|
|
|
262
265
|
heading: "MPass",
|
|
263
266
|
items: [
|
|
264
267
|
{
|
|
265
|
-
label:
|
|
268
|
+
label: i.integrationProcedure,
|
|
266
269
|
href: "https://mpass.gov.md/info/procedure"
|
|
267
270
|
},
|
|
268
271
|
{
|
|
269
|
-
label:
|
|
272
|
+
label: i.faq,
|
|
270
273
|
href: "https://mpass.gov.md/info/faq"
|
|
271
274
|
},
|
|
272
275
|
{
|
|
273
|
-
label:
|
|
276
|
+
label: i.integrationGuide,
|
|
274
277
|
href: "https://egov-moldova.github.io/egov4dev/guides/mpass/",
|
|
275
278
|
newTab: !0
|
|
276
279
|
},
|
|
277
280
|
{
|
|
278
|
-
label:
|
|
281
|
+
label: i.reportProblem,
|
|
279
282
|
href: "mailto:suport@egov.md"
|
|
280
283
|
}
|
|
281
284
|
]
|
|
@@ -293,20 +296,20 @@ const s = {
|
|
|
293
296
|
"mnotify",
|
|
294
297
|
"mpay"
|
|
295
298
|
]
|
|
296
|
-
},
|
|
299
|
+
}, o6 = {
|
|
297
300
|
name: "msign",
|
|
298
301
|
logo: "msign",
|
|
299
302
|
logoHref: "https://msign.gov.md/",
|
|
300
303
|
tagline: { ro: "serviciul guvernamental de semnătură electronică", ru: "государственный сервис электронной подписи", en: "government electronic signature service" },
|
|
301
|
-
phone:
|
|
302
|
-
emails: [
|
|
304
|
+
phone: m.support,
|
|
305
|
+
emails: [p.supportCitizens, p.services],
|
|
303
306
|
legal: [
|
|
304
307
|
{
|
|
305
|
-
label:
|
|
308
|
+
label: i.terms,
|
|
306
309
|
href: "https://msign.gov.md/#/info/terms"
|
|
307
310
|
},
|
|
308
311
|
{
|
|
309
|
-
label:
|
|
312
|
+
label: i.privacy,
|
|
310
313
|
href: "https://msign.gov.md/#/info/privacy"
|
|
311
314
|
}
|
|
312
315
|
],
|
|
@@ -317,20 +320,20 @@ const s = {
|
|
|
317
320
|
heading: "MSign",
|
|
318
321
|
items: [
|
|
319
322
|
{
|
|
320
|
-
label:
|
|
323
|
+
label: i.integrationProcedure,
|
|
321
324
|
href: "https://msign.gov.md/#/info/procedure"
|
|
322
325
|
},
|
|
323
326
|
{
|
|
324
|
-
label:
|
|
327
|
+
label: i.faq,
|
|
325
328
|
href: "https://msign.gov.md/#/info/FAQ"
|
|
326
329
|
},
|
|
327
330
|
{
|
|
328
|
-
label:
|
|
331
|
+
label: i.integrationGuide,
|
|
329
332
|
href: "https://egov-moldova.github.io/egov4dev/guides/msign/",
|
|
330
333
|
newTab: !0
|
|
331
334
|
},
|
|
332
335
|
{
|
|
333
|
-
label:
|
|
336
|
+
label: i.reportProblem,
|
|
334
337
|
href: "mailto:suport@egov.md"
|
|
335
338
|
}
|
|
336
339
|
]
|
|
@@ -348,20 +351,20 @@ const s = {
|
|
|
348
351
|
"mnotify",
|
|
349
352
|
"mpay"
|
|
350
353
|
]
|
|
351
|
-
},
|
|
354
|
+
}, r6 = {
|
|
352
355
|
name: "mpower",
|
|
353
356
|
logo: "mpower",
|
|
354
357
|
logoHref: "https://mpower.gov.md/#/ro",
|
|
355
358
|
tagline: { ro: "registrul împuternicirilor de reprezentare în baza semnăturii electronice", ru: "реестр доверенностей на представительство на основе электронной подписи", en: "register of representation authorizations based on electronic signature" },
|
|
356
|
-
phone:
|
|
357
|
-
emails: [
|
|
359
|
+
phone: m.support,
|
|
360
|
+
emails: [p.supportCitizens, p.services],
|
|
358
361
|
legal: [
|
|
359
362
|
{
|
|
360
|
-
label:
|
|
363
|
+
label: i.terms,
|
|
361
364
|
href: "https://mpower.gov.md/#/ro/terms"
|
|
362
365
|
},
|
|
363
366
|
{
|
|
364
|
-
label:
|
|
367
|
+
label: i.privacy,
|
|
365
368
|
href: "https://mpower.gov.md/#/ro/privacy"
|
|
366
369
|
}
|
|
367
370
|
],
|
|
@@ -372,20 +375,20 @@ const s = {
|
|
|
372
375
|
heading: "MPower",
|
|
373
376
|
items: [
|
|
374
377
|
{
|
|
375
|
-
label:
|
|
378
|
+
label: i.aboutService,
|
|
376
379
|
href: "https://mpower.gov.md/#/ro/about"
|
|
377
380
|
},
|
|
378
381
|
{
|
|
379
|
-
label:
|
|
382
|
+
label: i.faq,
|
|
380
383
|
href: "https://mpower.gov.md/#/ro/faq"
|
|
381
384
|
},
|
|
382
385
|
{
|
|
383
|
-
label:
|
|
386
|
+
label: i.integrationGuide,
|
|
384
387
|
href: "https://egov-moldova.github.io/egov4dev/guides/mpower/",
|
|
385
388
|
newTab: !0
|
|
386
389
|
},
|
|
387
390
|
{
|
|
388
|
-
label:
|
|
391
|
+
label: i.reportProblem,
|
|
389
392
|
href: "mailto:suport@egov.md"
|
|
390
393
|
}
|
|
391
394
|
]
|
|
@@ -407,7 +410,7 @@ const s = {
|
|
|
407
410
|
href: "https://mpower.gov.md/#/ro/public-authorization-types"
|
|
408
411
|
},
|
|
409
412
|
{
|
|
410
|
-
label:
|
|
413
|
+
label: i.userGuide,
|
|
411
414
|
href: "https://mpower.gov.md/assets/MPower%20Integration%20Guide.pdf",
|
|
412
415
|
newTab: !0
|
|
413
416
|
}
|
|
@@ -417,20 +420,20 @@ const s = {
|
|
|
417
420
|
type: "signature"
|
|
418
421
|
}
|
|
419
422
|
]
|
|
420
|
-
},
|
|
423
|
+
}, a6 = {
|
|
421
424
|
name: "mnotify",
|
|
422
425
|
logo: "mnotify",
|
|
423
426
|
logoHref: "https://mnotify.gov.md/#/ro/home",
|
|
424
427
|
tagline: { ro: "serviciul guvernamental de notificare", ru: "государственный сервис уведомлений", en: "government notification service" },
|
|
425
|
-
phone:
|
|
426
|
-
emails: [
|
|
428
|
+
phone: m.support,
|
|
429
|
+
emails: [p.supportCitizens, p.services],
|
|
427
430
|
legal: [
|
|
428
431
|
{
|
|
429
|
-
label:
|
|
432
|
+
label: i.terms,
|
|
430
433
|
href: "https://mnotify.gov.md/#/ro/terms"
|
|
431
434
|
},
|
|
432
435
|
{
|
|
433
|
-
label:
|
|
436
|
+
label: i.privacy,
|
|
434
437
|
href: "https://mnotify.gov.md/#/ro/confidentiality"
|
|
435
438
|
}
|
|
436
439
|
],
|
|
@@ -441,20 +444,20 @@ const s = {
|
|
|
441
444
|
heading: "MNotify",
|
|
442
445
|
items: [
|
|
443
446
|
{
|
|
444
|
-
label:
|
|
447
|
+
label: i.aboutService,
|
|
445
448
|
href: "https://mnotify.gov.md/#/ro/about"
|
|
446
449
|
},
|
|
447
450
|
{
|
|
448
|
-
label:
|
|
451
|
+
label: i.faq,
|
|
449
452
|
href: "https://mnotify.gov.md/#/ro/questions"
|
|
450
453
|
},
|
|
451
454
|
{
|
|
452
|
-
label:
|
|
455
|
+
label: i.integrationGuide,
|
|
453
456
|
href: "https://egov-moldova.github.io/egov4dev/guides/mnotify/",
|
|
454
457
|
newTab: !0
|
|
455
458
|
},
|
|
456
459
|
{
|
|
457
|
-
label:
|
|
460
|
+
label: i.reportProblem,
|
|
458
461
|
href: "mailto:suport@egov.md"
|
|
459
462
|
}
|
|
460
463
|
]
|
|
@@ -472,16 +475,16 @@ const s = {
|
|
|
472
475
|
"mpower",
|
|
473
476
|
"mpay"
|
|
474
477
|
]
|
|
475
|
-
},
|
|
478
|
+
}, i6 = {
|
|
476
479
|
name: "mdelivery",
|
|
477
480
|
logo: "mdelivery",
|
|
478
481
|
logoHref: "https://mdelivery.gov.md/public",
|
|
479
482
|
tagline: { ro: "serviciul guvernamental de livrare", ru: "государственный сервис доставки", en: "government delivery service" },
|
|
480
|
-
phone:
|
|
481
|
-
emails: [
|
|
483
|
+
phone: m.evo,
|
|
484
|
+
emails: [p.support],
|
|
482
485
|
legal: [
|
|
483
486
|
{
|
|
484
|
-
label:
|
|
487
|
+
label: i.terms,
|
|
485
488
|
href: "https://mdelivery.gov.md/public/terms-and-conditions"
|
|
486
489
|
}
|
|
487
490
|
],
|
|
@@ -491,20 +494,20 @@ const s = {
|
|
|
491
494
|
heading: "MDelivery",
|
|
492
495
|
items: [
|
|
493
496
|
{
|
|
494
|
-
label:
|
|
497
|
+
label: i.aboutService,
|
|
495
498
|
href: "https://mdelivery.gov.md/public/about-service"
|
|
496
499
|
},
|
|
497
500
|
{
|
|
498
|
-
label:
|
|
501
|
+
label: i.faq,
|
|
499
502
|
href: "https://mdelivery.gov.md/public/faq"
|
|
500
503
|
},
|
|
501
504
|
{
|
|
502
|
-
label:
|
|
505
|
+
label: i.integrationGuide,
|
|
503
506
|
href: "https://egov-moldova.github.io/egov4dev/guides/mdelivery/",
|
|
504
507
|
newTab: !0
|
|
505
508
|
},
|
|
506
509
|
{
|
|
507
|
-
label:
|
|
510
|
+
label: i.reportProblem,
|
|
508
511
|
href: "mailto:suport@egov.md"
|
|
509
512
|
}
|
|
510
513
|
]
|
|
@@ -522,16 +525,16 @@ const s = {
|
|
|
522
525
|
"mnotify",
|
|
523
526
|
"mpay"
|
|
524
527
|
]
|
|
525
|
-
},
|
|
528
|
+
}, l6 = {
|
|
526
529
|
name: "mlearn",
|
|
527
530
|
logo: "mlearn",
|
|
528
531
|
logoHref: "https://mlearn.gov.md/",
|
|
529
532
|
tagline: { ro: "platforma guvernamentală de instruire la distanță", ru: "государственная платформа дистанционного обучения", en: "government distance learning platform" },
|
|
530
|
-
phone:
|
|
531
|
-
emails: [
|
|
533
|
+
phone: m.support,
|
|
534
|
+
emails: [p.supportCitizens, p.services],
|
|
532
535
|
legal: [
|
|
533
536
|
{
|
|
534
|
-
label:
|
|
537
|
+
label: i.terms,
|
|
535
538
|
href: "https://mlearn.gov.md/course/view.php?id=168"
|
|
536
539
|
}
|
|
537
540
|
],
|
|
@@ -543,7 +546,7 @@ const s = {
|
|
|
543
546
|
heading: "MLearn",
|
|
544
547
|
items: [
|
|
545
548
|
{
|
|
546
|
-
label:
|
|
549
|
+
label: i.faq,
|
|
547
550
|
href: "https://mlearn.gov.md/course/view.php?id=169"
|
|
548
551
|
},
|
|
549
552
|
{
|
|
@@ -552,7 +555,7 @@ const s = {
|
|
|
552
555
|
newTab: !0
|
|
553
556
|
},
|
|
554
557
|
{
|
|
555
|
-
label:
|
|
558
|
+
label: i.reportProblem,
|
|
556
559
|
href: "mailto:suport@egov.md"
|
|
557
560
|
}
|
|
558
561
|
]
|
|
@@ -570,20 +573,20 @@ const s = {
|
|
|
570
573
|
"mnotify",
|
|
571
574
|
"mpay"
|
|
572
575
|
]
|
|
573
|
-
},
|
|
576
|
+
}, s6 = {
|
|
574
577
|
name: "evosign",
|
|
575
578
|
logo: "evosign",
|
|
576
579
|
logoHref: "https://evosign.gov.md/",
|
|
577
580
|
tagline: { ro: "Identitatea ta digitală direct în telefon", ru: "Ваша цифровая идентичность прямо в телефоне", en: "Your digital identity right on your phone" },
|
|
578
|
-
phone:
|
|
579
|
-
emails: [
|
|
581
|
+
phone: m.evo,
|
|
582
|
+
emails: [p.support],
|
|
580
583
|
legal: [
|
|
581
584
|
{
|
|
582
|
-
label:
|
|
585
|
+
label: i.terms,
|
|
583
586
|
href: "https://evosign.gov.md/info/tos"
|
|
584
587
|
},
|
|
585
588
|
{
|
|
586
|
-
label:
|
|
589
|
+
label: i.privacy,
|
|
587
590
|
href: "https://evosign.gov.md/info/privacy"
|
|
588
591
|
}
|
|
589
592
|
],
|
|
@@ -594,11 +597,11 @@ const s = {
|
|
|
594
597
|
heading: "EVOSign",
|
|
595
598
|
items: [
|
|
596
599
|
{
|
|
597
|
-
label:
|
|
600
|
+
label: i.faq,
|
|
598
601
|
href: "https://evosign.gov.md/info/faq"
|
|
599
602
|
},
|
|
600
603
|
{
|
|
601
|
-
label:
|
|
604
|
+
label: i.reportProblem,
|
|
602
605
|
href: "mailto:suport@egov.md"
|
|
603
606
|
}
|
|
604
607
|
]
|
|
@@ -616,7 +619,7 @@ const s = {
|
|
|
616
619
|
"mnotify",
|
|
617
620
|
"mpay"
|
|
618
621
|
]
|
|
619
|
-
},
|
|
622
|
+
}, C6 = {
|
|
620
623
|
copyright: { ro: "© 2026 Toate drepturile rezervate. Agenția de Guvernare Electronică", ru: "© 2026 Все права защищены. Агентство электронного управления", en: "© 2026 All rights reserved. e-Governance Agency" },
|
|
621
624
|
signatureHeading: { ro: "Semnătura electronică", ru: "Электронная подпись", en: "Electronic signature" },
|
|
622
625
|
usefulPlatformsHeading: { ro: "Platforme utile", ru: "Полезные платформы", en: "Useful platforms" },
|
|
@@ -720,17 +723,17 @@ const s = {
|
|
|
720
723
|
href: "https://play.google.com/store/apps/details?id=md.egov.evo&pcampaignid=web_share"
|
|
721
724
|
}
|
|
722
725
|
}
|
|
723
|
-
},
|
|
724
|
-
mconnect:
|
|
725
|
-
mdate:
|
|
726
|
-
mpass:
|
|
727
|
-
msign:
|
|
728
|
-
mpower:
|
|
729
|
-
mnotify:
|
|
730
|
-
mdelivery:
|
|
731
|
-
mlearn:
|
|
732
|
-
evosign:
|
|
733
|
-
},
|
|
726
|
+
}, S = {
|
|
727
|
+
mconnect: e6,
|
|
728
|
+
mdate: t6,
|
|
729
|
+
mpass: n6,
|
|
730
|
+
msign: o6,
|
|
731
|
+
mpower: r6,
|
|
732
|
+
mnotify: a6,
|
|
733
|
+
mdelivery: i6,
|
|
734
|
+
mlearn: l6,
|
|
735
|
+
evosign: s6
|
|
736
|
+
}, d6 = {
|
|
734
737
|
mconnect: "mconnect-logo.svg",
|
|
735
738
|
mdate: "mdate-logo.svg",
|
|
736
739
|
mpass: "mpass-logo.svg",
|
|
@@ -745,16 +748,16 @@ const s = {
|
|
|
745
748
|
evo: "evo-logo.svg",
|
|
746
749
|
appStore: "app-store-badge.svg",
|
|
747
750
|
googlePlay: "google-play-badge.svg"
|
|
748
|
-
},
|
|
751
|
+
}, p6 = new URL(
|
|
749
752
|
/* @vite-ignore */
|
|
750
753
|
"./assets/footer/",
|
|
751
754
|
import.meta.url
|
|
752
755
|
).href;
|
|
753
|
-
function
|
|
754
|
-
const n =
|
|
755
|
-
return (e ? e.replace(/\/?$/, "/") :
|
|
756
|
+
function v(t, e) {
|
|
757
|
+
const n = d6[t] ?? t;
|
|
758
|
+
return (e ? e.replace(/\/?$/, "/") : p6) + n;
|
|
756
759
|
}
|
|
757
|
-
const
|
|
760
|
+
const c6 = `<symbol id="icon-phone" viewBox="3.8 3.1 17.7 17.7">
|
|
758
761
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.60003 4.9001C5.95829 4.9001 5.55617 5.40073 5.61643 5.88498C6.4666 12.7167 11.8835 18.1335 18.7151 18.9837C19.1994 19.044 19.7 18.6418 19.7 18.0001V16.6882C19.7 16.2024 19.3814 15.7741 18.9161 15.6345L16.9135 15.0338C16.8783 15.0232 16.8401 15.0328 16.8141 15.0588L16.5539 15.319C15.6962 16.1767 14.3093 16.4698 13.1826 15.7576C11.4333 14.6519 9.94826 13.1668 8.84255 11.4175C8.13033 10.2908 8.42343 8.9039 9.28108 8.04625L9.54128 7.78605C9.56729 7.76004 9.57692 7.72184 9.56635 7.68661L8.96557 5.68402C8.82599 5.21873 8.39774 4.9001 7.91197 4.9001H6.60003ZM3.83021 6.10727C3.61766 4.39929 5.03262 3.1001 6.60003 3.1001H7.91197C9.19263 3.1001 10.3217 3.94014 10.6897 5.16679L11.2904 7.16938C11.4913 7.83888 11.3083 8.56459 10.8141 9.05884L10.5539 9.31905C10.2044 9.66856 10.1641 10.1395 10.3641 10.4558C11.327 11.9792 12.6209 13.2731 14.1443 14.2361C14.4607 14.436 14.9316 14.3958 15.2811 14.0463L15.5413 13.7861C16.0355 13.2918 16.7612 13.1088 17.4307 13.3097L19.4333 13.9105C20.66 14.2785 21.5 15.4075 21.5 16.6882V18.0001C21.5 19.5675 20.2008 20.9825 18.4929 20.7699C10.8433 19.818 4.78216 13.7568 3.83021 6.10727Z" fill="currentColor"/>
|
|
759
762
|
</symbol>
|
|
760
763
|
|
|
@@ -780,7 +783,7 @@ const I = `<symbol id="icon-phone" viewBox="3.8 3.1 17.7 17.7">
|
|
|
780
783
|
|
|
781
784
|
<symbol id="icon-linkedin-filled" viewBox="0 0 25 24">
|
|
782
785
|
<path d="M20.25 3H4.94998C4.59193 3 4.24856 3.14223 3.99538 3.39541C3.74221 3.64858 3.59998 3.99196 3.59998 4.35V19.65C3.59998 20.008 3.74221 20.3514 3.99538 20.6046C4.24856 20.8578 4.59193 21 4.94998 21H20.25C20.608 21 20.9514 20.8578 21.2046 20.6046C21.4577 20.3514 21.6 20.008 21.6 19.65V4.35C21.6 3.99196 21.4577 3.64858 21.2046 3.39541C20.9514 3.14223 20.608 3 20.25 3ZM8.99998 18.3H6.29998V10.2H8.99998V18.3ZM7.64998 8.625C7.34054 8.61616 7.04057 8.51632 6.78755 8.33797C6.53453 8.15962 6.33968 7.91066 6.22734 7.6222C6.115 7.33374 6.09016 7.01857 6.15592 6.71607C6.22168 6.41358 6.37512 6.13716 6.59708 5.92138C6.81903 5.70559 7.09965 5.55999 7.40388 5.50278C7.70811 5.44556 8.02246 5.47927 8.30764 5.59969C8.59282 5.7201 8.83619 5.92189 9.00735 6.17983C9.1785 6.43778 9.26985 6.74044 9.26998 7.05C9.26287 7.47331 9.08848 7.8766 8.78492 8.17173C8.48136 8.46685 8.07332 8.62982 7.64998 8.625ZM18.9 18.3H16.2V14.034C16.2 12.756 15.66 12.297 14.958 12.297C14.7522 12.3107 14.5511 12.3649 14.3663 12.4566C14.1815 12.5482 14.0166 12.6755 13.8811 12.831C13.7456 12.9866 13.6422 13.1674 13.5768 13.363C13.5114 13.5586 13.4853 13.7652 13.5 13.971C13.4955 14.0129 13.4955 14.0551 13.5 14.097V18.3H10.8V10.2H13.41V11.37C13.6733 10.9695 14.035 10.6433 14.4604 10.4227C14.8859 10.2021 15.3609 10.0944 15.84 10.11C17.235 10.11 18.864 10.884 18.864 13.404L18.9 18.3Z" fill="currentColor"/>
|
|
783
|
-
</symbol>`,
|
|
786
|
+
</symbol>`, u6 = `/* Footer styles, scoped by the shadow DOM. Values on :host are provisional design tokens; swap them for the MUD/Figma tokens. */
|
|
784
787
|
|
|
785
788
|
:host {
|
|
786
789
|
display: block;
|
|
@@ -1193,112 +1196,112 @@ const I = `<symbol id="icon-phone" viewBox="3.8 3.1 17.7 17.7">
|
|
|
1193
1196
|
align-items: flex-start;
|
|
1194
1197
|
}
|
|
1195
1198
|
}
|
|
1196
|
-
`,
|
|
1199
|
+
`, O = (t) => t.newTab ? ' target="_blank" rel="noopener noreferrer"' : "", y = (t, e = "") => `<svg class="mud-icon ${e}"><use href="#${t}"></use></svg>`, h = (t, e) => t.sections?.[e] !== !1, m6 = (t) => (e) => `<li class="mud-footer__nav--item"><a class="mud-footer__nav--link" href="${r(e.href)}"${O(e)}>${r(l(e.label, t))}${e.badge ? `<span class="mud-badge">${r(l(e.badge, t))}</span>` : ""}</a></li>`, w = (t, e) => `
|
|
1197
1200
|
<div class="mud-footer__nav-col">
|
|
1198
1201
|
<div class="mud-footer__heading">${t || " "}</div>
|
|
1199
1202
|
<ul class="mud-footer__nav--list">${e}</ul>
|
|
1200
1203
|
</div>`;
|
|
1201
|
-
function
|
|
1202
|
-
const
|
|
1204
|
+
function g6(t, { key: e, lang: n, variant: o, shared: a }) {
|
|
1205
|
+
const s = m6(n);
|
|
1203
1206
|
switch (t.type) {
|
|
1204
1207
|
case "links":
|
|
1205
|
-
return
|
|
1208
|
+
return w(r(l(t.heading, n)), t.items.map(s).join(""));
|
|
1206
1209
|
case "signature": {
|
|
1207
|
-
const
|
|
1208
|
-
return
|
|
1210
|
+
const C = a.signature.filter((u) => u.platform !== e);
|
|
1211
|
+
return C.length ? w(r(l(a.signatureHeading, n)), C.map(s).join("")) : "";
|
|
1209
1212
|
}
|
|
1210
1213
|
case "platforms": {
|
|
1211
|
-
const
|
|
1212
|
-
if (!
|
|
1213
|
-
const u =
|
|
1214
|
-
return
|
|
1214
|
+
const C = (o.usefulPlatforms ?? []).map((c) => a.platformCatalog[c]).filter(Boolean);
|
|
1215
|
+
if (!C.length) return "";
|
|
1216
|
+
const u = a.platformMore, f = `<li class="mud-footer__nav--item"><a class="mud-footer__nav--link mud-footer__nav--link--more" href="${r(u.href)}">${r(l(u.label, n))}${y("icon-arrow-right", "mud-icon-small")}</a></li>`;
|
|
1217
|
+
return w(r(l(a.usefulPlatformsHeading, n)), C.map(s).join("") + f);
|
|
1215
1218
|
}
|
|
1216
1219
|
}
|
|
1217
1220
|
}
|
|
1218
|
-
const
|
|
1221
|
+
const h6 = ({ variant: t, lang: e }) => {
|
|
1219
1222
|
const n = t.phone ? `
|
|
1220
1223
|
<li>
|
|
1221
|
-
<a href="${
|
|
1222
|
-
</li>` : "",
|
|
1223
|
-
const
|
|
1224
|
+
<a href="${r(t.phone.href)}"><span class="mud-d-inline-flex" aria-hidden="true">${y("icon-phone", "mud-icon--phone")}</span>${r(t.phone.text)}</a>
|
|
1225
|
+
</li>` : "", o = t.emails.map((a) => {
|
|
1226
|
+
const s = a.note ? `<span class="mud-footer__contact-label${a.noteTwoRows ? " mud-footer__contact-label--two-rows" : ""}">${r(l(a.note, e))}</span>` : "";
|
|
1224
1227
|
return `
|
|
1225
1228
|
<li>
|
|
1226
|
-
<a href="${
|
|
1229
|
+
<a href="${r(a.href)}"><span class="mud-d-inline-flex" aria-hidden="true">${y("icon-envelope", "mud-icon--envelope")}</span>${r(a.text)}</a>${s}
|
|
1227
1230
|
</li>`;
|
|
1228
1231
|
}).join("");
|
|
1229
|
-
return n ||
|
|
1230
|
-
<ul class="mud-footer__contact">${n}${
|
|
1232
|
+
return n || o ? `
|
|
1233
|
+
<ul class="mud-footer__contact">${n}${o}
|
|
1231
1234
|
</ul>` : "";
|
|
1232
|
-
},
|
|
1233
|
-
const { variant: e, lang: n, assetsBase:
|
|
1235
|
+
}, f6 = (t) => {
|
|
1236
|
+
const { variant: e, lang: n, assetsBase: o } = t, a = e.taglineMaxWidth ? ` style="max-width:${e.taglineMaxWidth}px"` : "";
|
|
1234
1237
|
return `
|
|
1235
1238
|
<div class="mud-footer__brand">
|
|
1236
|
-
<a class="mud-footer__logo" href="${
|
|
1237
|
-
<img class="mud-footer__brand--logo" src="${
|
|
1238
|
-
<div class="mud-footer__brand--details"${
|
|
1239
|
-
<span class="mud-brand-text">${
|
|
1240
|
-
<span class="mud-brand-description">${
|
|
1239
|
+
<a class="mud-footer__logo" href="${r(e.logoHref)}">
|
|
1240
|
+
<img class="mud-footer__brand--logo" src="${r(v(e.logo, o))}" alt="${r(e.name)}">
|
|
1241
|
+
<div class="mud-footer__brand--details"${a}>
|
|
1242
|
+
<span class="mud-brand-text">${r(e.name)}</span>
|
|
1243
|
+
<span class="mud-brand-description">${r(l(e.tagline, n))}</span>
|
|
1241
1244
|
</div>
|
|
1242
|
-
</a>${
|
|
1245
|
+
</a>${h(e, "contact") ? h6(t) : ""}
|
|
1243
1246
|
</div>`;
|
|
1244
|
-
},
|
|
1247
|
+
}, _6 = ({ shared: t, lang: e, assetsBase: n }) => `
|
|
1245
1248
|
<div class="mud-footer__extras">
|
|
1246
|
-
<img class="mud-footer__extras-icon" src="${
|
|
1247
|
-
<div class="mud-footer__description">${
|
|
1249
|
+
<img class="mud-footer__extras-icon" src="${r(v("evo", n))}" alt="" aria-hidden="true">
|
|
1250
|
+
<div class="mud-footer__description">${r(l(t.evo.description, e))}</div>
|
|
1248
1251
|
<div class="mud-footer__apps">
|
|
1249
|
-
<a href="${
|
|
1250
|
-
<img class="mud-footer__apps-badge mud-footer__apps-badge--apple" src="${
|
|
1252
|
+
<a href="${r(t.evo.apple.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(l(t.evo.apple.label, e))}">
|
|
1253
|
+
<img class="mud-footer__apps-badge mud-footer__apps-badge--apple" src="${r(v("appStore", n))}" alt="${r(l(t.evo.apple.label, e))}">
|
|
1251
1254
|
</a>
|
|
1252
|
-
<a href="${
|
|
1253
|
-
<img class="mud-footer__apps-badge mud-footer__apps-badge--google" src="${
|
|
1255
|
+
<a href="${r(t.evo.google.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(l(t.evo.google.label, e))}">
|
|
1256
|
+
<img class="mud-footer__apps-badge mud-footer__apps-badge--google" src="${r(v("googlePlay", n))}" alt="${r(l(t.evo.google.label, e))}">
|
|
1254
1257
|
</a>
|
|
1255
1258
|
</div>
|
|
1256
|
-
</div>`,
|
|
1257
|
-
(
|
|
1258
|
-
<a href="${
|
|
1259
|
-
<img class="mud-footer__institution-logo" src="${
|
|
1259
|
+
</div>`, v6 = ({ shared: t, lang: e, assetsBase: n }) => t.institutions.map(
|
|
1260
|
+
(o) => `
|
|
1261
|
+
<a href="${r(o.href)}" class="mud-footer__institution-logo-link" target="_blank" rel="noopener noreferrer" aria-label="${r(l(o.label, e))}">
|
|
1262
|
+
<img class="mud-footer__institution-logo" src="${r(v(o.logo, n))}" alt="${r(l(o.label, e))}">
|
|
1260
1263
|
</a>`
|
|
1261
|
-
).join(""),
|
|
1262
|
-
(e) => `<li><a class="mud-footer__social--link" href="${
|
|
1263
|
-
).join(""),
|
|
1264
|
-
const e =
|
|
1264
|
+
).join(""), b6 = ({ shared: t }) => t.social.map(
|
|
1265
|
+
(e) => `<li><a class="mud-footer__social--link" href="${r(e.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(e.label)}">${y(e.icon)}</a></li>`
|
|
1266
|
+
).join(""), M6 = (t) => {
|
|
1267
|
+
const e = h(t.variant, "institutions"), n = h(t.variant, "social");
|
|
1265
1268
|
return !e && !n ? "" : `
|
|
1266
1269
|
<hr class="mud-separator mud-separator--horizontal mud-separator--thin mud-separator--subtle">
|
|
1267
1270
|
|
|
1268
1271
|
<div class="mud-footer__middle">
|
|
1269
|
-
<div class="mud-footer__logos">${e ?
|
|
1272
|
+
<div class="mud-footer__logos">${e ? v6(t) : ""}
|
|
1270
1273
|
</div>${n ? `
|
|
1271
|
-
<ul class="mud-footer__social">${
|
|
1274
|
+
<ul class="mud-footer__social">${b6(t)}</ul>` : ""}
|
|
1272
1275
|
</div>
|
|
1273
1276
|
`;
|
|
1274
|
-
},
|
|
1275
|
-
const
|
|
1277
|
+
}, y6 = ({ variant: t, lang: e, shared: n }) => {
|
|
1278
|
+
const o = h(t, "legal") ? (t.legal ?? []).map((a) => `<li><a href="${r(a.href)}"${O(a)}>${r(l(a.label, e))}</a></li>`).join("") : "";
|
|
1276
1279
|
return `
|
|
1277
1280
|
<div class="mud-footer__bottom">
|
|
1278
1281
|
<div class="mud-footer__container mud-footer__bottom-inner">
|
|
1279
|
-
<div>${
|
|
1280
|
-
<ul class="mud-footer__legal">${
|
|
1282
|
+
<div>${r(l(t.copyright ?? n.copyright, e))}</div>
|
|
1283
|
+
<ul class="mud-footer__legal">${o}</ul>
|
|
1281
1284
|
</div>
|
|
1282
1285
|
</div>`;
|
|
1283
1286
|
};
|
|
1284
|
-
function
|
|
1285
|
-
const { variant: e } = t, n = e.columns.map((
|
|
1287
|
+
function Z6(t) {
|
|
1288
|
+
const { variant: e } = t, n = e.columns.map((a) => g6(a, t)).join(""), o = h(e, "navigation") && n ? `
|
|
1286
1289
|
<nav class="mud-footer__nav" aria-label="Footer navigation">${n}
|
|
1287
1290
|
</nav>
|
|
1288
1291
|
` : "";
|
|
1289
|
-
return `<svg xmlns="http://www.w3.org/2000/svg" style="display:none">${
|
|
1292
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" style="display:none">${c6}</svg>
|
|
1290
1293
|
<footer class="mud-footer" role="contentinfo" lang="${t.lang}">
|
|
1291
1294
|
<div class="mud-footer__container">
|
|
1292
1295
|
<div class="mud-footer__top">
|
|
1293
|
-
${
|
|
1294
|
-
${
|
|
1296
|
+
${f6(t)}
|
|
1297
|
+
${o}${h(e, "evo") ? _6(t) : ""}
|
|
1295
1298
|
</div>
|
|
1296
|
-
${
|
|
1299
|
+
${M6(t)}
|
|
1297
1300
|
</div>
|
|
1298
|
-
${
|
|
1301
|
+
${y6(t)}
|
|
1299
1302
|
</footer>`;
|
|
1300
1303
|
}
|
|
1301
|
-
class
|
|
1304
|
+
class x6 extends A {
|
|
1302
1305
|
static get observedAttributes() {
|
|
1303
1306
|
return ["variant", "assets-base", "max-width", "padding-x"];
|
|
1304
1307
|
}
|
|
@@ -1307,19 +1310,984 @@ class r6 extends $ {
|
|
|
1307
1310
|
}
|
|
1308
1311
|
/** Maps an optional length attribute to a CSS custom property; without a valid value the default from the styles stays. */
|
|
1309
1312
|
applyLength(e, n) {
|
|
1310
|
-
const
|
|
1311
|
-
|
|
1313
|
+
const o = this.getAttribute(e)?.trim(), a = o && /^\d+(\.\d+)?$/.test(o) ? `${o}px` : o;
|
|
1314
|
+
a && /^\d*\.?\d+(px|rem|em|%|vw|ch)$/.test(a) ? this.style.setProperty(n, a) : this.style.removeProperty(n);
|
|
1315
|
+
}
|
|
1316
|
+
styles() {
|
|
1317
|
+
return u6;
|
|
1318
|
+
}
|
|
1319
|
+
template() {
|
|
1320
|
+
const e = this.getAttribute("variant") ?? "", n = S[e];
|
|
1321
|
+
return n ? Z6({ key: e, lang: this.pageLang, variant: n, shared: C6, assetsBase: this.getAttribute("assets-base") }) : (console.error(`<mud-footer>: unknown variant "${e}". Use one of: ${Object.keys(S).join(", ")}.`), "");
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
H("mud-footer", x6);
|
|
1325
|
+
const L6 = {
|
|
1326
|
+
name: "mconnect",
|
|
1327
|
+
logo: "mconnect",
|
|
1328
|
+
tagline: [
|
|
1329
|
+
{ ro: "platforma guvernamentală", ru: "государственная платформа", en: "government" },
|
|
1330
|
+
{ ro: "de interoperabilitate", ru: "интероперабельности", en: "interoperability platform" }
|
|
1331
|
+
],
|
|
1332
|
+
nav: [
|
|
1333
|
+
{ id: "catalog", label: { ro: "Active semantice", ru: "Семантические активы", en: "Semantic assets" } },
|
|
1334
|
+
{ id: "statistics", label: { ro: "Statistici", ru: "Статистика", en: "Statistics" } }
|
|
1335
|
+
],
|
|
1336
|
+
buttons: ["login"],
|
|
1337
|
+
icons: [{ id: "cart", label: { ro: "Coș", ru: "Корзина", en: "Cart" } }]
|
|
1338
|
+
}, w6 = {
|
|
1339
|
+
name: "mdate",
|
|
1340
|
+
logo: "mdate",
|
|
1341
|
+
tagline: [
|
|
1342
|
+
{ ro: "portalul guvernamental", ru: "государственный", en: "government" },
|
|
1343
|
+
{ ro: "de date", ru: "портал данных", en: "data portal" }
|
|
1344
|
+
],
|
|
1345
|
+
nav: [
|
|
1346
|
+
{ id: "mconnect", label: "MConnect", newTab: !0 },
|
|
1347
|
+
{ id: "catalog", label: { ro: "Catalogul semantic", ru: "Семантический каталог", en: "Semantic catalog" }, newTab: !0 }
|
|
1348
|
+
],
|
|
1349
|
+
buttons: ["login"]
|
|
1350
|
+
}, k6 = {
|
|
1351
|
+
name: "mpass",
|
|
1352
|
+
logo: "mpass",
|
|
1353
|
+
tagline: [
|
|
1354
|
+
{ ro: "serviciul de autentificare", ru: "сервис аутентификации", en: "authentication" },
|
|
1355
|
+
{ ro: "și control al accesului", ru: "и контроля доступа", en: "and access control service" }
|
|
1356
|
+
],
|
|
1357
|
+
buttons: ["login"]
|
|
1358
|
+
}, H6 = {
|
|
1359
|
+
name: "msign",
|
|
1360
|
+
logo: "msign",
|
|
1361
|
+
tagline: [
|
|
1362
|
+
{ ro: "serviciul guvernamental", ru: "государственный сервис", en: "government" },
|
|
1363
|
+
{ ro: "de semnătură electronică", ru: "электронной подписи", en: "electronic signature service" }
|
|
1364
|
+
],
|
|
1365
|
+
nav: [
|
|
1366
|
+
{ id: "sign", label: { ro: "Semnează electronic", ru: "Подписать электронно", en: "Sign electronically" } },
|
|
1367
|
+
{ id: "verify", label: { ro: "Verifică semnătură", ru: "Проверить подпись", en: "Verify signature" } },
|
|
1368
|
+
{ id: "info", label: { ro: "Informații", ru: "Информация", en: "Information" } }
|
|
1369
|
+
]
|
|
1370
|
+
}, Z = {
|
|
1371
|
+
aboutService: { ro: "Despre serviciu", ru: "О сервисе", en: "About the service" },
|
|
1372
|
+
faq: { ro: "Întrebări frecvente", ru: "Часто задаваемые вопросы", en: "Frequently asked questions" },
|
|
1373
|
+
verify: { ro: "Verifică", ru: "Проверить", en: "Verify" }
|
|
1374
|
+
}, $6 = {
|
|
1375
|
+
name: "mpower",
|
|
1376
|
+
logo: "mpower",
|
|
1377
|
+
tagline: [
|
|
1378
|
+
{ ro: "registrul împuternicirilor de reprezentare", ru: "реестр доверенностей на представительство", en: "register of representation authorizations" },
|
|
1379
|
+
{ ro: "în baza semnăturii electronice", ru: "на основе электронной подписи", en: "based on electronic signature" }
|
|
1380
|
+
],
|
|
1381
|
+
nav: [
|
|
1382
|
+
{ id: "verify", label: Z.verify },
|
|
1383
|
+
{ id: "authorization-types", label: { ro: "Tip împuterniciri", ru: "Типы доверенностей", en: "Authorization types" } },
|
|
1384
|
+
{ id: "public-authorizations", label: { ro: "Autorizații publice", ru: "Публичные доверенности", en: "Public authorizations" } },
|
|
1385
|
+
{ id: "about", label: Z.aboutService }
|
|
1386
|
+
],
|
|
1387
|
+
buttons: ["login"]
|
|
1388
|
+
}, U6 = {
|
|
1389
|
+
name: "mnotify",
|
|
1390
|
+
logo: "mnotify",
|
|
1391
|
+
tagline: [
|
|
1392
|
+
{ ro: "serviciul guvernamental", ru: "государственный сервис", en: "government" },
|
|
1393
|
+
{ ro: "de notificare", ru: "уведомлений", en: "notification service" }
|
|
1394
|
+
],
|
|
1395
|
+
nav: [
|
|
1396
|
+
{ id: "about", label: Z.aboutService },
|
|
1397
|
+
{ id: "faq", label: Z.faq },
|
|
1398
|
+
{ label: { ro: "Integrare", ru: "Интеграция", en: "Integration" }, href: "https://egov-moldova.github.io/egov4dev/guides/mnotify/", newTab: !0 }
|
|
1399
|
+
],
|
|
1400
|
+
buttons: ["login"]
|
|
1401
|
+
}, S6 = {
|
|
1402
|
+
name: "mdelivery",
|
|
1403
|
+
logo: "mdelivery",
|
|
1404
|
+
tagline: [
|
|
1405
|
+
{ ro: "serviciul guvernamental", ru: "государственный сервис", en: "government" },
|
|
1406
|
+
{ ro: "de livrare", ru: "доставки", en: "delivery service" }
|
|
1407
|
+
],
|
|
1408
|
+
nav: [
|
|
1409
|
+
{ id: "about", label: { ro: "Despre", ru: "О сервисе", en: "About" } },
|
|
1410
|
+
{ id: "documents", label: { ro: "Ce documente livrăm", ru: "Какие документы мы доставляем", en: "Documents we deliver" } },
|
|
1411
|
+
{ id: "tracking", label: { ro: "Urmărește comanda", ru: "Отследить заказ", en: "Track your order" } }
|
|
1412
|
+
],
|
|
1413
|
+
buttons: ["login"]
|
|
1414
|
+
}, V6 = {
|
|
1415
|
+
name: "mlearn",
|
|
1416
|
+
logo: "mlearn",
|
|
1417
|
+
tagline: [
|
|
1418
|
+
{ ro: "platforma guvernamentală", ru: "государственная платформа", en: "government" },
|
|
1419
|
+
{ ro: "de instruire la distanță", ru: "дистанционного обучения", en: "distance learning platform" }
|
|
1420
|
+
]
|
|
1421
|
+
}, G6 = {
|
|
1422
|
+
name: "evosign",
|
|
1423
|
+
logo: "evosign",
|
|
1424
|
+
tagline: [
|
|
1425
|
+
{ ro: "Identitatea ta digitală", ru: "Ваша цифровая идентичность", en: "Your digital identity" },
|
|
1426
|
+
{ ro: "direct în telefon", ru: "прямо в телефоне", en: "right on your phone" }
|
|
1427
|
+
]
|
|
1428
|
+
}, F6 = {
|
|
1429
|
+
name: "mdocs",
|
|
1430
|
+
logo: "mdocs",
|
|
1431
|
+
tagline: [
|
|
1432
|
+
{ ro: "platforma de găzduire și", ru: "платформа хранения и", en: "document hosting and" },
|
|
1433
|
+
{ ro: "partajare a documentelor", ru: "обмена документами", en: "sharing platform" }
|
|
1434
|
+
],
|
|
1435
|
+
buttons: ["login"]
|
|
1436
|
+
}, A6 = {
|
|
1437
|
+
name: "mpay",
|
|
1438
|
+
logo: "mpay",
|
|
1439
|
+
tagline: [
|
|
1440
|
+
{ ro: "serviciul guvernamental", ru: "государственный сервис", en: "government" },
|
|
1441
|
+
{ ro: "de plăți electronice", ru: "электронных платежей", en: "electronic payment service" }
|
|
1442
|
+
],
|
|
1443
|
+
nav: [
|
|
1444
|
+
{ id: "services", label: { ro: "Plata serviciilor", ru: "Оплата услуг", en: "Pay for services" } },
|
|
1445
|
+
{ id: "invoice", label: { ro: "Verifică nota", ru: "Проверить квитанцию", en: "Check invoice" } }
|
|
1446
|
+
],
|
|
1447
|
+
buttons: ["login"]
|
|
1448
|
+
}, M = {
|
|
1449
|
+
government: {
|
|
1450
|
+
label: { ro: "Guvernul Republicii Moldova", ru: "Правительство Республики Молдова", en: "Government of the Republic of Moldova" },
|
|
1451
|
+
href: "https://gov.md/"
|
|
1452
|
+
},
|
|
1453
|
+
buttons: {
|
|
1454
|
+
login: {
|
|
1455
|
+
label: { ro: "Autentifică-te", ru: "Войти", en: "Log in" }
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
// Switch the banner off with `enabled: false` (or per page with banner="off"). A new `id` shows it again to people who closed the previous one.
|
|
1459
|
+
banner: {
|
|
1460
|
+
enabled: !0,
|
|
1461
|
+
id: "fraud-alert-2026-10",
|
|
1462
|
+
title: { ro: "Alertă de fraudă prin SMS și apeluri telefonice.", ru: "Предупреждение о мошенничестве по SMS и телефону.", en: "Fraud alert: SMS and phone scams." },
|
|
1463
|
+
text: {
|
|
1464
|
+
ro: "Nu accesați linkuri suspecte și nu transmiteți niciodată coduri, parole sau date bancare.",
|
|
1465
|
+
ru: "Не переходите по подозрительным ссылкам и никогда не передавайте коды, пароли или банковские данные.",
|
|
1466
|
+
en: "Do not open suspicious links and never share codes, passwords or bank details."
|
|
1467
|
+
},
|
|
1468
|
+
linkText: { ro: "Raportează fraudă", ru: "Сообщить о мошенничестве", en: "Report fraud" },
|
|
1469
|
+
linkHref: "https://cybercrime.mai.gov.md/"
|
|
1470
|
+
},
|
|
1471
|
+
languages: [
|
|
1472
|
+
{ code: "ro", label: "Ro", name: "Română" },
|
|
1473
|
+
{ code: "ru", label: "Ru", name: "Русский" },
|
|
1474
|
+
{ code: "en", label: "En", name: "English" }
|
|
1475
|
+
],
|
|
1476
|
+
labels: {
|
|
1477
|
+
menu: { ro: "Meniu", ru: "Меню", en: "Menu" },
|
|
1478
|
+
closeMenu: { ro: "Închide meniul", ru: "Закрыть меню", en: "Close menu" },
|
|
1479
|
+
language: { ro: "Limba", ru: "Язык", en: "Language" },
|
|
1480
|
+
closeBanner: { ro: "Închide", ru: "Закрыть", en: "Close" },
|
|
1481
|
+
banner: { ro: "Informare importantă", ru: "Важная информация", en: "Important notice" },
|
|
1482
|
+
cartCount: { ro: "Coș: {count}", ru: "Корзина: {count}", en: "Cart: {count}" }
|
|
1483
|
+
}
|
|
1484
|
+
}, V = {
|
|
1485
|
+
mconnect: L6,
|
|
1486
|
+
mdate: w6,
|
|
1487
|
+
mpass: k6,
|
|
1488
|
+
msign: H6,
|
|
1489
|
+
mpower: $6,
|
|
1490
|
+
mnotify: U6,
|
|
1491
|
+
mdelivery: S6,
|
|
1492
|
+
mlearn: V6,
|
|
1493
|
+
evosign: G6,
|
|
1494
|
+
mdocs: F6,
|
|
1495
|
+
mpay: A6
|
|
1496
|
+
}, O6 = {
|
|
1497
|
+
mconnect: "mconnect-logo.svg",
|
|
1498
|
+
mdate: "mdate-logo.svg",
|
|
1499
|
+
mpass: "mpass-logo.svg",
|
|
1500
|
+
msign: "msign-logo.svg",
|
|
1501
|
+
mpower: "mpower-logo.svg",
|
|
1502
|
+
mnotify: "mnotify-logo.svg",
|
|
1503
|
+
mdelivery: "mdelivery-logo.svg",
|
|
1504
|
+
mdocs: "mdocs-logo.svg",
|
|
1505
|
+
mpay: "mpay-logo.svg",
|
|
1506
|
+
mlearn: "mlearn-logo.svg",
|
|
1507
|
+
evosign: "evosign-logo.svg",
|
|
1508
|
+
guvernulEmblem: "guvernul-emblem.svg"
|
|
1509
|
+
}, B6 = new URL(
|
|
1510
|
+
/* @vite-ignore */
|
|
1511
|
+
"./assets/header/",
|
|
1512
|
+
import.meta.url
|
|
1513
|
+
).href;
|
|
1514
|
+
function k(t, e) {
|
|
1515
|
+
const n = O6[t] ?? t;
|
|
1516
|
+
return (e ? e.replace(/\/?$/, "/") : B6) + n;
|
|
1517
|
+
}
|
|
1518
|
+
const g = {
|
|
1519
|
+
cart: '<svg viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true"><path fill="currentColor" d="M8.09961 19C8.09961 18.9448 8.05523 18.9004 8 18.9004C7.94477 18.9004 7.90039 18.9448 7.90039 19C7.90039 19.0552 7.94477 19.0996 8 19.0996C8.05523 19.0996 8.09961 19.0552 8.09961 19ZM17.0996 19C17.0996 18.9448 17.0552 18.9004 17 18.9004C16.9448 18.9004 16.9004 18.9448 16.9004 19C16.9004 19.0552 16.9448 19.0996 17 19.0996C17.0552 19.0996 17.0996 19.0552 17.0996 19ZM3.15332 2.09961C4.08189 2.09982 4.87464 2.77153 5.02734 3.6875L5.2627 5.09961H20.0371C21.2317 5.09978 22.1301 6.18968 21.9023 7.3623L20.541 14.3623C20.3674 15.2551 19.5853 15.9004 18.6758 15.9004H6.84668C5.91811 15.9002 5.12536 15.2285 4.97266 14.3125L3.25195 3.9834C3.24391 3.93537 3.20198 3.90061 3.15332 3.90039H2C1.50294 3.90039 1.09961 3.49706 1.09961 3C1.09961 2.50294 1.50294 2.09961 2 2.09961H3.15332ZM6.74805 14.0166C6.75609 14.0646 6.79802 14.0994 6.84668 14.0996H18.6758C18.7234 14.0996 18.7641 14.0662 18.7734 14.0195L20.1348 7.01953C20.1468 6.95789 20.0999 6.90056 20.0371 6.90039H5.5625L6.74805 14.0166ZM9.90039 19C9.90039 20.0493 9.04934 20.9004 8 20.9004C6.95066 20.9004 6.09961 20.0493 6.09961 19C6.09961 17.9507 6.95066 17.0996 8 17.0996C9.04934 17.0996 9.90039 17.9507 9.90039 19ZM18.9004 19C18.9004 20.0493 18.0493 20.9004 17 20.9004C15.9507 20.9004 15.0996 20.0493 15.0996 19C15.0996 17.9507 15.9507 17.0996 17 17.0996C18.0493 17.0996 18.9004 17.9507 18.9004 19Z"/></svg>',
|
|
1520
|
+
burger: '<svg viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',
|
|
1521
|
+
close: '<svg viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',
|
|
1522
|
+
globe: '<svg viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="1.6"/><path d="M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9S14.5 18.4 12 21c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z" stroke="currentColor" stroke-width="1.6"/></svg>',
|
|
1523
|
+
check: '<svg viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',
|
|
1524
|
+
alert: '<svg class="mud-header__banner-icon" viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="12" fill="var(--mud-alert-icon)"/><path d="M12 6v6" stroke="#fff" stroke-width="2" stroke-linecap="round"/><circle cx="12" cy="15.5" r="1.5" fill="#fff"/></svg>',
|
|
1525
|
+
closeSmall: '<svg viewBox="0 0 20 20" width="20" height="20" fill="none" aria-hidden="true"><path d="M5.5 5.5l9 9M14.5 5.5l-9 9" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>'
|
|
1526
|
+
}, E6 = `
|
|
1527
|
+
:host {
|
|
1528
|
+
display: block;
|
|
1529
|
+
position: sticky; /* header stays on top while scrolling; set position: static on the element to turn off */
|
|
1530
|
+
top: var(--header-sticky-top, 0px); /* minus the banner height: the banner scrolls away, the rest stays pinned */
|
|
1531
|
+
z-index: 1000;
|
|
1532
|
+
|
|
1533
|
+
--mud-black: #121212;
|
|
1534
|
+
--mud-white: #ffffff;
|
|
1535
|
+
--mud-gray-50: #f5f5f5;
|
|
1536
|
+
--mud-gray-100: #f1f1f1;
|
|
1537
|
+
--mud-gray-250: #d9d9d9;
|
|
1538
|
+
--mud-gray-700: #383838;
|
|
1539
|
+
--mud-blue-sky-600: #0058d2;
|
|
1540
|
+
--mud-blue-sky-700: #0046a8;
|
|
1541
|
+
--mud-blue-sky-800: #00357e;
|
|
1542
|
+
--mud-focus-ring: #3379db;
|
|
1543
|
+
--mud-red-600: #d92d20;
|
|
1544
|
+
--mud-alert-bg: #fee4e2;
|
|
1545
|
+
--mud-alert-icon: #b91c1c;
|
|
1546
|
+
--mud-font-family: "Onest", system-ui, -apple-system, sans-serif;
|
|
1547
|
+
--header-max-width: 1270px;
|
|
1548
|
+
--header-padding-x: 16px; /* same gutter as <mud-footer>, so the two line up */
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
:host([menu-open]) {
|
|
1552
|
+
z-index: 2147483000; /* the open menu must sit above everything else on the page */
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
.mud-header,
|
|
1556
|
+
.mud-header * {
|
|
1557
|
+
box-sizing: border-box;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
.mud-header {
|
|
1561
|
+
background: var(--mud-white);
|
|
1562
|
+
color: var(--mud-black);
|
|
1563
|
+
font-family: var(--mud-font-family);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
.mud-header a,
|
|
1567
|
+
.mud-header button {
|
|
1568
|
+
font-family: inherit;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
.mud-container {
|
|
1572
|
+
width: 100%;
|
|
1573
|
+
max-width: var(--header-max-width);
|
|
1574
|
+
margin-inline: auto;
|
|
1575
|
+
padding-inline: var(--header-padding-x);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
/* ---------- alert banner (optional) ---------- */
|
|
1579
|
+
.mud-header__banner {
|
|
1580
|
+
background: var(--mud-alert-bg);
|
|
1581
|
+
color: var(--mud-gray-700);
|
|
1582
|
+
font-size: 14px;
|
|
1583
|
+
line-height: 20px;
|
|
1584
|
+
font-weight: 400;
|
|
1585
|
+
padding: 12px 0;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
.mud-header__banner .mud-container {
|
|
1589
|
+
display: flex;
|
|
1590
|
+
align-items: flex-start;
|
|
1591
|
+
gap: 12px; /* [icon + message] block on the left, close cross on the right */
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.mud-header__banner-icon {
|
|
1595
|
+
flex: 0 0 20px;
|
|
1596
|
+
width: 20px;
|
|
1597
|
+
height: 20px;
|
|
1598
|
+
margin-top: 1px;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
.mud-header__banner-text {
|
|
1602
|
+
flex: 1 1 auto;
|
|
1603
|
+
margin: 0;
|
|
1604
|
+
text-align: left; /* the message reads as one block with the alert icon */
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
.mud-header__banner-title,
|
|
1608
|
+
.mud-header__banner-link {
|
|
1609
|
+
font-weight: 500;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.mud-header__banner-link {
|
|
1613
|
+
color: inherit;
|
|
1614
|
+
text-decoration: underline;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
.mud-header__banner-close {
|
|
1618
|
+
flex: 0 0 20px;
|
|
1619
|
+
margin-top: 1px;
|
|
1620
|
+
width: 20px;
|
|
1621
|
+
height: 20px;
|
|
1622
|
+
padding: 0;
|
|
1623
|
+
border: 0;
|
|
1624
|
+
border-radius: 4px;
|
|
1625
|
+
background: transparent;
|
|
1626
|
+
color: var(--mud-gray-700);
|
|
1627
|
+
cursor: pointer;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.mud-header__banner-close:hover {
|
|
1631
|
+
background: rgba(0, 0, 0, 0.08);
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
/* ---------- top strip: Guvernul + language ---------- */
|
|
1635
|
+
.mud-header__pre {
|
|
1636
|
+
height: 32px;
|
|
1637
|
+
background: var(--mud-gray-100);
|
|
1638
|
+
border-bottom: 1px solid var(--mud-gray-250);
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
.mud-header__pre .mud-container {
|
|
1642
|
+
display: flex;
|
|
1643
|
+
align-items: center;
|
|
1644
|
+
justify-content: space-between;
|
|
1645
|
+
height: 100%;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
.mud-header__gov {
|
|
1649
|
+
display: inline-flex;
|
|
1650
|
+
align-items: center;
|
|
1651
|
+
gap: 10px;
|
|
1652
|
+
color: #000;
|
|
1653
|
+
font-size: 12px;
|
|
1654
|
+
line-height: 16px;
|
|
1655
|
+
font-weight: 500;
|
|
1656
|
+
text-decoration: none;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
.mud-header__gov img {
|
|
1660
|
+
display: block;
|
|
1661
|
+
width: 18px;
|
|
1662
|
+
height: 21px;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.mud-header__lang {
|
|
1666
|
+
display: flex;
|
|
1667
|
+
gap: 12px;
|
|
1668
|
+
margin: 0;
|
|
1669
|
+
padding: 0;
|
|
1670
|
+
list-style: none;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
.mud-header__lang button {
|
|
1674
|
+
margin: 0;
|
|
1675
|
+
padding: 0;
|
|
1676
|
+
border: 0;
|
|
1677
|
+
background: none;
|
|
1678
|
+
color: var(--mud-gray-700);
|
|
1679
|
+
font-size: 14px;
|
|
1680
|
+
line-height: 22.4px;
|
|
1681
|
+
font-weight: 400;
|
|
1682
|
+
cursor: pointer;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
.mud-header__lang button[aria-current="true"] {
|
|
1686
|
+
color: var(--mud-black);
|
|
1687
|
+
text-decoration: underline;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.mud-header__lang button:hover {
|
|
1691
|
+
color: var(--mud-black);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/* ---------- main bar: logo + buttons ---------- */
|
|
1695
|
+
.mud-header__bar {
|
|
1696
|
+
background: var(--mud-white);
|
|
1697
|
+
border-bottom: 1px solid var(--mud-gray-250);
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
.mud-header__bar .mud-container {
|
|
1701
|
+
display: flex;
|
|
1702
|
+
align-items: center;
|
|
1703
|
+
justify-content: space-between;
|
|
1704
|
+
gap: 16px;
|
|
1705
|
+
height: 67px;
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
.mud-header__brand {
|
|
1709
|
+
display: flex;
|
|
1710
|
+
gap: 12px;
|
|
1711
|
+
color: inherit;
|
|
1712
|
+
text-decoration: none;
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
.mud-header__brand-logo {
|
|
1716
|
+
display: block;
|
|
1717
|
+
flex-shrink: 0;
|
|
1718
|
+
width: 40px;
|
|
1719
|
+
height: 40px;
|
|
1720
|
+
margin-top: 8px;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
.mud-header__brand-details {
|
|
1724
|
+
display: flex;
|
|
1725
|
+
flex-direction: column;
|
|
1726
|
+
gap: 2px;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
.mud-header__brand-name {
|
|
1730
|
+
font-weight: 600;
|
|
1731
|
+
font-size: 18px;
|
|
1732
|
+
line-height: 26px;
|
|
1733
|
+
letter-spacing: -0.18px;
|
|
1734
|
+
color: var(--mud-black);
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.mud-header__brand-tagline {
|
|
1738
|
+
font-weight: 400;
|
|
1739
|
+
font-size: 10px;
|
|
1740
|
+
line-height: 12px;
|
|
1741
|
+
color: var(--mud-gray-700);
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
.mud-tagline-line {
|
|
1745
|
+
display: block;
|
|
1746
|
+
white-space: nowrap; /* the box is exactly as wide as the longest line */
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
.mud-header__nav {
|
|
1750
|
+
display: flex;
|
|
1751
|
+
align-self: stretch; /* links fill the bar height so the hover and the active border reach its edges */
|
|
1752
|
+
margin: 0 auto 0 29px; /* 29px + the 16px flex gap = 45px from the logo to the link box; + 20px link padding = first text 65px after the logo */
|
|
1753
|
+
padding: 0;
|
|
1754
|
+
list-style: none;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
.mud-header__nav li {
|
|
1758
|
+
display: flex;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
.mud-header__nav a {
|
|
1762
|
+
display: flex;
|
|
1763
|
+
align-items: center;
|
|
1764
|
+
padding: 0 20px; /* 20px + 20px = 40px between two link texts */
|
|
1765
|
+
border-bottom: 3px solid transparent;
|
|
1766
|
+
color: var(--mud-black);
|
|
1767
|
+
font-size: 16px;
|
|
1768
|
+
line-height: 24px;
|
|
1769
|
+
font-weight: 500;
|
|
1770
|
+
text-decoration: none;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
.mud-header__nav a:hover {
|
|
1774
|
+
background: var(--mud-gray-50);
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.mud-header__nav a[aria-current="page"] {
|
|
1778
|
+
color: var(--mud-blue-sky-600);
|
|
1779
|
+
border-bottom-color: var(--mud-blue-sky-600);
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
.mud-header__actions {
|
|
1783
|
+
display: flex;
|
|
1784
|
+
align-items: center;
|
|
1785
|
+
gap: 12px;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
.mud-header__icon-btn {
|
|
1789
|
+
display: inline-flex;
|
|
1790
|
+
align-items: center;
|
|
1791
|
+
justify-content: center;
|
|
1792
|
+
flex: 0 0 40px;
|
|
1793
|
+
width: 40px;
|
|
1794
|
+
height: 40px;
|
|
1795
|
+
border-radius: 9999px;
|
|
1796
|
+
color: var(--mud-black);
|
|
1797
|
+
text-decoration: none;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.mud-header__icon-btn:hover {
|
|
1801
|
+
background: var(--mud-gray-50);
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
/* cart counter, same look as .cart-badge on mconnect.gov.md: anchored to the 24px icon, sticking out of its top-right corner */
|
|
1805
|
+
.mud-header__icon-wrapper {
|
|
1806
|
+
position: relative;
|
|
1807
|
+
display: inline-flex;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.mud-header__badge {
|
|
1811
|
+
position: absolute;
|
|
1812
|
+
top: -50%;
|
|
1813
|
+
right: -50%;
|
|
1814
|
+
display: flex;
|
|
1815
|
+
align-items: center;
|
|
1816
|
+
justify-content: center;
|
|
1817
|
+
min-width: 16px;
|
|
1818
|
+
padding-inline: 2px;
|
|
1819
|
+
border-radius: 9999px;
|
|
1820
|
+
background: var(--mud-red-600);
|
|
1821
|
+
color: var(--mud-white);
|
|
1822
|
+
font-size: 12px;
|
|
1823
|
+
font-weight: inherit;
|
|
1824
|
+
line-height: 16px;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
.mud-header__btn {
|
|
1828
|
+
display: inline-flex;
|
|
1829
|
+
align-items: center;
|
|
1830
|
+
justify-content: center;
|
|
1831
|
+
padding: 10px 16px;
|
|
1832
|
+
border: 1px solid transparent;
|
|
1833
|
+
border-radius: 9999px;
|
|
1834
|
+
font-size: 14px;
|
|
1835
|
+
font-weight: 500;
|
|
1836
|
+
line-height: 1.375;
|
|
1837
|
+
text-align: center;
|
|
1838
|
+
text-decoration: none;
|
|
1839
|
+
white-space: nowrap;
|
|
1840
|
+
cursor: pointer;
|
|
1841
|
+
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.mud-header__btn--primary {
|
|
1845
|
+
background: var(--mud-blue-sky-600);
|
|
1846
|
+
color: var(--mud-white);
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
.mud-header__btn--primary:hover {
|
|
1850
|
+
background: var(--mud-blue-sky-700);
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
.mud-header__btn--primary:active {
|
|
1854
|
+
background: var(--mud-blue-sky-800);
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
.mud-header a:focus-visible,
|
|
1858
|
+
.mud-header button:focus-visible {
|
|
1859
|
+
outline: 2px solid var(--mud-white);
|
|
1860
|
+
box-shadow: 0 0 0 4px var(--mud-focus-ring);
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1864
|
+
.mud-header__btn {
|
|
1865
|
+
transition: none;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
/* ---------- burger + full-screen menu (tablet and phone) ---------- */
|
|
1870
|
+
.mud-header__burger {
|
|
1871
|
+
display: none;
|
|
1872
|
+
flex: 0 0 40px;
|
|
1873
|
+
width: 40px;
|
|
1874
|
+
height: 40px;
|
|
1875
|
+
margin: 0;
|
|
1876
|
+
padding: 0;
|
|
1877
|
+
border: 0;
|
|
1878
|
+
border-radius: 9999px;
|
|
1879
|
+
background: transparent;
|
|
1880
|
+
color: var(--mud-black);
|
|
1881
|
+
cursor: pointer;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
.mud-header__panel {
|
|
1885
|
+
position: fixed;
|
|
1886
|
+
inset: 0;
|
|
1887
|
+
z-index: 2000;
|
|
1888
|
+
overflow-y: auto;
|
|
1889
|
+
background: var(--mud-white);
|
|
1890
|
+
color: var(--mud-black);
|
|
1891
|
+
font-family: var(--mud-font-family);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
.mud-header__panel[hidden] {
|
|
1895
|
+
display: none;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
.mud-header__panel-top {
|
|
1899
|
+
display: flex;
|
|
1900
|
+
align-items: center;
|
|
1901
|
+
justify-content: space-between;
|
|
1902
|
+
height: 68px;
|
|
1903
|
+
padding: 0 16px;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
.mud-header__panel-logo img {
|
|
1907
|
+
display: block;
|
|
1908
|
+
width: 40px;
|
|
1909
|
+
height: 40px;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
.mud-header__panel-tools {
|
|
1913
|
+
display: flex;
|
|
1914
|
+
align-items: center;
|
|
1915
|
+
gap: 16px;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
.mud-header__panel-close {
|
|
1919
|
+
width: 40px;
|
|
1920
|
+
height: 40px;
|
|
1921
|
+
margin: 0;
|
|
1922
|
+
padding: 0;
|
|
1923
|
+
border: 0;
|
|
1924
|
+
border-radius: 9999px;
|
|
1925
|
+
background: transparent;
|
|
1926
|
+
color: var(--mud-black);
|
|
1927
|
+
cursor: pointer;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
.mud-header__langmenu {
|
|
1931
|
+
position: relative;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
.mud-header__langbtn {
|
|
1935
|
+
display: inline-flex;
|
|
1936
|
+
align-items: center;
|
|
1937
|
+
gap: 8px;
|
|
1938
|
+
height: 40px;
|
|
1939
|
+
margin: 0;
|
|
1940
|
+
padding: 0 16px;
|
|
1941
|
+
border: 0;
|
|
1942
|
+
border-radius: 9999px;
|
|
1943
|
+
background: var(--mud-gray-100);
|
|
1944
|
+
color: var(--mud-black);
|
|
1945
|
+
font-size: 16px;
|
|
1946
|
+
line-height: 24px;
|
|
1947
|
+
font-weight: 500;
|
|
1948
|
+
cursor: pointer;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
.mud-header__langbtn[aria-expanded="true"] {
|
|
1952
|
+
background: var(--mud-gray-250);
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.mud-header__langlist {
|
|
1956
|
+
position: absolute;
|
|
1957
|
+
top: 48px;
|
|
1958
|
+
right: 0;
|
|
1959
|
+
z-index: 1;
|
|
1960
|
+
min-width: 172px;
|
|
1961
|
+
margin: 0;
|
|
1962
|
+
padding: 8px;
|
|
1963
|
+
list-style: none;
|
|
1964
|
+
background: var(--mud-white);
|
|
1965
|
+
border-radius: 16px;
|
|
1966
|
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
.mud-header__langlist[hidden] {
|
|
1970
|
+
display: none;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
.mud-header__langlist button {
|
|
1974
|
+
display: flex;
|
|
1975
|
+
align-items: center;
|
|
1976
|
+
justify-content: space-between;
|
|
1977
|
+
gap: 16px;
|
|
1978
|
+
width: 100%;
|
|
1979
|
+
height: 48px;
|
|
1980
|
+
margin: 0;
|
|
1981
|
+
padding: 0 16px;
|
|
1982
|
+
border: 0;
|
|
1983
|
+
border-radius: 8px;
|
|
1984
|
+
background: transparent;
|
|
1985
|
+
color: var(--mud-gray-700);
|
|
1986
|
+
font-size: 16px;
|
|
1987
|
+
line-height: 24px;
|
|
1988
|
+
font-weight: 500;
|
|
1989
|
+
text-align: left;
|
|
1990
|
+
cursor: pointer;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
.mud-header__langlist button:hover {
|
|
1994
|
+
background: var(--mud-gray-100);
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
.mud-header__langlist button[aria-selected="true"] {
|
|
1998
|
+
background: #f5f5f5;
|
|
1999
|
+
color: var(--mud-blue-sky-600);
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
.mud-header__panel-nav {
|
|
2003
|
+
margin: 8px 0 0;
|
|
2004
|
+
padding: 0 16px;
|
|
2005
|
+
list-style: none;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
.mud-header__panel-nav a {
|
|
2009
|
+
display: block;
|
|
2010
|
+
padding: 14px 0;
|
|
2011
|
+
color: var(--mud-black);
|
|
2012
|
+
font-size: 16px;
|
|
2013
|
+
line-height: 24px;
|
|
2014
|
+
font-weight: 500;
|
|
2015
|
+
text-decoration: none;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
.mud-header__panel-nav a[aria-current="page"] {
|
|
2019
|
+
color: var(--mud-blue-sky-600);
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
/* ---------- responsive ---------- */
|
|
2023
|
+
@media screen and (max-width: 991px) {
|
|
2024
|
+
/* menu links move into the burger panel */
|
|
2025
|
+
.mud-header__nav {
|
|
2026
|
+
display: none;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
.mud-header--has-nav .mud-header__burger {
|
|
2030
|
+
display: block;
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
.mud-header__actions {
|
|
2034
|
+
margin-left: auto;
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
@media screen and (min-width: 992px) {
|
|
2039
|
+
.mud-header__panel {
|
|
2040
|
+
display: none;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
@media screen and (max-width: 576px) {
|
|
2045
|
+
.mud-header__pre {
|
|
2046
|
+
display: none;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
.mud-header__brand-details {
|
|
2050
|
+
display: none;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
`, B = ({ links: t }) => t?.logo, z6 = ({ links: t }, e) => "id" in e ? t?.nav?.[e.id] : e.href, P6 = ({ links: t }, e) => t?.icons?.[e.id], D6 = ({ links: t }) => t?.login;
|
|
2054
|
+
function T6({ variant: t, links: e, buttons: n }) {
|
|
2055
|
+
const o = [];
|
|
2056
|
+
e?.logo || o.push("logo"), n.includes("login") && !e?.login && o.push("login");
|
|
2057
|
+
for (const a of t.nav ?? []) "id" in a && !e?.nav?.[a.id] && o.push(`nav.${a.id}`);
|
|
2058
|
+
for (const a of t.icons ?? []) e?.icons?.[a.id] || o.push(`icons.${a.id}`);
|
|
2059
|
+
return o;
|
|
2060
|
+
}
|
|
2061
|
+
const b = (t, e) => t ? ` href="${r(x(t, e))}"` : "", q6 = (t) => t.newTab ? ' target="_blank" rel="noopener noreferrer"' : "", j6 = (t, { lang: e, shared: n }) => `
|
|
2062
|
+
<div class="mud-header__banner" part="banner" role="region" aria-label="${r(l(n.labels.banner, e))}" data-banner-id="${r(t.id)}">
|
|
2063
|
+
<div class="mud-container">
|
|
2064
|
+
${g.alert}
|
|
2065
|
+
<p class="mud-header__banner-text">${t.title ? `<strong class="mud-header__banner-title">${r(t.title)}</strong> ` : ""}${t.text ? r(t.text) : ""}${t.linkText && t.linkHref ? ` <a class="mud-header__banner-link" href="${r(x(t.linkHref, e))}" target="_blank" rel="noopener noreferrer">${r(t.linkText)}</a>` : ""}</p>
|
|
2066
|
+
<button type="button" class="mud-header__banner-close" part="banner-close" aria-label="${r(l(n.labels.closeBanner, e))}">${g.closeSmall}</button>
|
|
2067
|
+
</div>
|
|
2068
|
+
</div>`, E = (t) => (e) => {
|
|
2069
|
+
const n = z6(t, e), o = n && t.currentUrl === x(n, t.lang);
|
|
2070
|
+
return `<li><a${b(n, t.lang)}${q6(e)}${o ? ' aria-current="page"' : ""}>${r(l(e.label, t.lang))}</a></li>`;
|
|
2071
|
+
}, R6 = (t, e) => {
|
|
2072
|
+
const { lang: n, variant: o, shared: a, assetsBase: s } = t, C = !!t.langOpen && e, u = a.languages.find((c) => c.code === n) ?? a.languages[0], f = a.languages.map(
|
|
2073
|
+
(c) => `<li role="presentation"><button type="button" role="option" lang="${c.code}" data-lang="${c.code}" aria-selected="${c.code === n}">${r(c.name)}${c.code === n ? g.check : ""}</button></li>`
|
|
2074
|
+
).join("");
|
|
2075
|
+
return `<div class="mud-header__panel" id="mud-menu" part="panel" role="dialog" aria-modal="true" aria-label="${r(l(a.labels.menu, n))}"${e ? "" : " hidden"}>
|
|
2076
|
+
<div class="mud-header__panel-top">
|
|
2077
|
+
<a class="mud-header__panel-logo"${b(B(t), n)}><img src="${r(k(o.logo, s))}" alt="${r(o.name)}"></a>
|
|
2078
|
+
<div class="mud-header__panel-tools">
|
|
2079
|
+
<div class="mud-header__langmenu">
|
|
2080
|
+
<button type="button" class="mud-header__langbtn" aria-haspopup="listbox" aria-expanded="${C}" aria-label="${r(l(a.labels.language, n))}">
|
|
2081
|
+
${g.globe}
|
|
2082
|
+
<span>${r(u.label)}</span>
|
|
2083
|
+
</button>
|
|
2084
|
+
<ul class="mud-header__langlist" role="listbox" aria-label="${r(l(a.labels.language, n))}"${C ? "" : " hidden"}>
|
|
2085
|
+
${f}
|
|
2086
|
+
</ul>
|
|
2087
|
+
</div>
|
|
2088
|
+
<button type="button" class="mud-header__panel-close" aria-label="${r(l(a.labels.closeMenu, n))}">${g.close}</button>
|
|
2089
|
+
</div>
|
|
2090
|
+
</div>
|
|
2091
|
+
<ul class="mud-header__panel-nav" aria-label="${r(l(a.labels.menu, n))}">${(o.nav ?? []).map(E(t)).join("")}</ul>
|
|
2092
|
+
</div>`;
|
|
2093
|
+
};
|
|
2094
|
+
function I6(t) {
|
|
2095
|
+
const { lang: e, variant: n, shared: o, assetsBase: a } = t, s = n.nav ?? [], C = s.length > 0, u = !!t.menuOpen && C, f = t.buttons.filter((d) => o.buttons[d]).map((d) => `<a class="mud-header__btn mud-header__btn--primary" part="button-primary"${b(D6(t), e)}>${r(l(o.buttons[d].label, e))}</a>`).join(""), c = (n.icons ?? []).filter((d) => g[d.id]).map((d) => {
|
|
2096
|
+
const _ = d.id === "cart" ? t.cartCount ?? 0 : 0, U = r(_ > 0 ? l(o.labels.cartCount, e).replace("{count}", String(_)) : l(d.label, e)), j = _ > 0 ? `<span class="mud-header__badge" part="badge" aria-hidden="true">${_ > 99 ? "99+" : _}</span>` : "";
|
|
2097
|
+
return `<a class="mud-header__icon-btn" part="icon-button"${b(P6(t, d), e)} aria-label="${U}" title="${U}"><span class="mud-header__icon-wrapper">${g[d.id]}${j}</span></a>`;
|
|
2098
|
+
}).join(""), P = o.languages.map((d) => `<li><button type="button" lang="${d.code}" data-lang="${d.code}"${d.code === e ? ' aria-current="true"' : ""}>${r(d.label)}</button></li>`).join(""), $ = r(l(o.labels.menu, e)), D = C ? `<ul class="mud-header__nav" part="nav" aria-label="${$}">${s.map(E(t)).join("")}</ul>` : "", T = `<button type="button" class="mud-header__burger" part="burger" aria-label="${$}" aria-expanded="${u}" aria-controls="mud-menu">${g.burger}</button>`, q = n.tagline.map((d) => `<span class="mud-tagline-line">${r(l(d, e))}</span>`).join("");
|
|
2099
|
+
return `
|
|
2100
|
+
<header class="mud-header${C ? " mud-header--has-nav" : ""}" part="header">${t.banner ? j6(t.banner, t) : ""}
|
|
2101
|
+
<div class="mud-header__pre" part="pre-header">
|
|
2102
|
+
<div class="mud-container">
|
|
2103
|
+
<a class="mud-header__gov" href="${r(x(o.government.href, e))}" target="_blank" rel="noopener noreferrer">
|
|
2104
|
+
<img src="${r(k("guvernulEmblem", a))}" alt="">
|
|
2105
|
+
<span>${r(l(o.government.label, e))}</span>
|
|
2106
|
+
</a>
|
|
2107
|
+
<ul class="mud-header__lang" aria-label="${r(l(o.labels.language, e))}">${P}</ul>
|
|
2108
|
+
</div>
|
|
2109
|
+
</div>
|
|
2110
|
+
<div class="mud-header__bar" part="bar">
|
|
2111
|
+
<div class="mud-container">
|
|
2112
|
+
<a class="mud-header__brand" part="brand"${b(B(t), e)}>
|
|
2113
|
+
<img class="mud-header__brand-logo" src="${r(k(n.logo, a))}" alt="${r(n.name)}">
|
|
2114
|
+
<div class="mud-header__brand-details">
|
|
2115
|
+
<span class="mud-header__brand-name">${r(n.name)}</span>
|
|
2116
|
+
<span class="mud-header__brand-tagline">${q}</span>
|
|
2117
|
+
</div>
|
|
2118
|
+
</a>
|
|
2119
|
+
${D}
|
|
2120
|
+
<div class="mud-header__actions" part="actions">${c}${f}</div>
|
|
2121
|
+
${C ? T : ""}
|
|
2122
|
+
</div>
|
|
2123
|
+
</div>
|
|
2124
|
+
${C ? R6(t, u) : ""}
|
|
2125
|
+
</header>`;
|
|
2126
|
+
}
|
|
2127
|
+
const z = "mud-banner-dismissed-", N6 = 720 * 60 * 60, W6 = (t) => t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 60), K6 = (t) => document.cookie.split("; ").includes(`${z}${t}=1`), Y6 = (t) => {
|
|
2128
|
+
document.cookie = `${z}${t}=1; max-age=${N6}; path=/; SameSite=Lax`;
|
|
2129
|
+
};
|
|
2130
|
+
class J6 extends A {
|
|
2131
|
+
menuOpen = !1;
|
|
2132
|
+
langOpen = !1;
|
|
2133
|
+
bannerObserver;
|
|
2134
|
+
_links;
|
|
2135
|
+
reported = "";
|
|
2136
|
+
/** Addresses supplied by the host app (the property wins over the `links` attribute). */
|
|
2137
|
+
get links() {
|
|
2138
|
+
return this._links ?? this.linksFromAttribute();
|
|
2139
|
+
}
|
|
2140
|
+
set links(e) {
|
|
2141
|
+
this._links = e, this.isConnected && this.render();
|
|
2142
|
+
}
|
|
2143
|
+
linksFromAttribute() {
|
|
2144
|
+
const e = this.getAttribute("links");
|
|
2145
|
+
if (e) {
|
|
2146
|
+
try {
|
|
2147
|
+
const n = JSON.parse(e);
|
|
2148
|
+
if (n && typeof n == "object" && !Array.isArray(n)) return n;
|
|
2149
|
+
} catch {
|
|
2150
|
+
}
|
|
2151
|
+
console.error('<mud-header>: the "links" attribute is not a valid JSON object.');
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
static get observedAttributes() {
|
|
2155
|
+
return [
|
|
2156
|
+
"variant",
|
|
2157
|
+
"buttons",
|
|
2158
|
+
"current-url",
|
|
2159
|
+
"assets-base",
|
|
2160
|
+
"max-width",
|
|
2161
|
+
"padding-x",
|
|
2162
|
+
"links",
|
|
2163
|
+
"cart-count",
|
|
2164
|
+
"banner",
|
|
2165
|
+
"banner-title",
|
|
2166
|
+
"banner-text",
|
|
2167
|
+
"banner-link-text",
|
|
2168
|
+
"banner-link-href",
|
|
2169
|
+
"banner-id"
|
|
2170
|
+
];
|
|
2171
|
+
}
|
|
2172
|
+
connectedCallback() {
|
|
2173
|
+
super.connectedCallback(), window.addEventListener("hashchange", this.onRoute), window.addEventListener("popstate", this.onRoute), window.addEventListener("keydown", this.onKey), window.addEventListener("resize", this.onResize);
|
|
2174
|
+
}
|
|
2175
|
+
disconnectedCallback() {
|
|
2176
|
+
super.disconnectedCallback(), window.removeEventListener("hashchange", this.onRoute), window.removeEventListener("popstate", this.onRoute), window.removeEventListener("keydown", this.onKey), window.removeEventListener("resize", this.onResize), this.bannerObserver?.disconnect(), this.lockScroll(!1), this.removeAttribute("menu-open");
|
|
2177
|
+
}
|
|
2178
|
+
/** Following a link closes the menu and refreshes the active link. */
|
|
2179
|
+
onRoute = () => {
|
|
2180
|
+
this.menuOpen = !1, this.render();
|
|
2181
|
+
};
|
|
2182
|
+
onKey = (e) => {
|
|
2183
|
+
e.key === "Escape" && (this.langOpen ? this.setLangOpen(!1) : this.menuOpen && this.setMenuOpen(!1, !0));
|
|
2184
|
+
};
|
|
2185
|
+
onResize = () => {
|
|
2186
|
+
this.menuOpen && window.matchMedia("(min-width: 992px)").matches && this.setMenuOpen(!1);
|
|
2187
|
+
};
|
|
2188
|
+
lockScroll(e) {
|
|
2189
|
+
document.documentElement.style.overflow = e ? "hidden" : "";
|
|
2190
|
+
}
|
|
2191
|
+
setMenuOpen(e, n = !1) {
|
|
2192
|
+
this.menuOpen = e, this.langOpen = !1, this.toggleAttribute("menu-open", e);
|
|
2193
|
+
const o = this.root.querySelector(".mud-header__panel"), a = this.root.querySelector(".mud-header__burger");
|
|
2194
|
+
!o || !a || (o.hidden = !e, o.querySelector(".mud-header__langlist").hidden = !0, o.querySelector(".mud-header__langbtn").setAttribute("aria-expanded", "false"), a.setAttribute("aria-expanded", String(e)), this.lockScroll(e), e ? o.querySelector(".mud-header__panel-close").focus() : n && a.focus());
|
|
2195
|
+
}
|
|
2196
|
+
setLangOpen(e) {
|
|
2197
|
+
this.langOpen = e;
|
|
2198
|
+
const n = this.root.querySelector(".mud-header__langlist"), o = this.root.querySelector(".mud-header__langbtn");
|
|
2199
|
+
!n || !o || (n.hidden = !e, o.setAttribute("aria-expanded", String(e)));
|
|
2200
|
+
}
|
|
2201
|
+
changeLang(e, n) {
|
|
2202
|
+
this.setLangOpen(!1), e !== n && this.emit("mud-language-change", { lang: e });
|
|
2203
|
+
}
|
|
2204
|
+
/** Items in the cart, from the optional cart-count attribute; anything but a positive whole number counts as empty. */
|
|
2205
|
+
get cartCount() {
|
|
2206
|
+
const e = Number(this.getAttribute("cart-count")?.trim());
|
|
2207
|
+
return Number.isInteger(e) && e > 0 ? e : 0;
|
|
2208
|
+
}
|
|
2209
|
+
/** Tells the developer which app links have no address yet (once per change, not on every render). */
|
|
2210
|
+
reportMissing(e, n) {
|
|
2211
|
+
const o = n.length ? `<mud-header variant="${e}">: no address supplied for: ${n.join(", ")}. Set them with the "links" property.` : "";
|
|
2212
|
+
o && o !== this.reported && console.error(o), this.reported = o;
|
|
2213
|
+
}
|
|
2214
|
+
get variant() {
|
|
2215
|
+
return V[this.getAttribute("variant") ?? ""];
|
|
2216
|
+
}
|
|
2217
|
+
buttons(e) {
|
|
2218
|
+
const n = this.getAttribute("buttons");
|
|
2219
|
+
return n === null ? e.buttons ?? [] : n.split(",").map((o) => o.trim()).filter((o) => o in M.buttons);
|
|
2220
|
+
}
|
|
2221
|
+
/** The banner to show: from the `banner-*` attributes, else the site-wide one in data/shared.ts; null when off or closed. */
|
|
2222
|
+
banner(e) {
|
|
2223
|
+
if (this.getAttribute("banner") === "off") return null;
|
|
2224
|
+
const n = (s) => this.getAttribute(s);
|
|
2225
|
+
let o;
|
|
2226
|
+
if (n("banner-title") || n("banner-text"))
|
|
2227
|
+
o = { id: n("banner-id"), title: n("banner-title"), text: n("banner-text"), linkText: n("banner-link-text"), linkHref: n("banner-link-href") };
|
|
2228
|
+
else if (M.banner.enabled) {
|
|
2229
|
+
const s = M.banner;
|
|
2230
|
+
o = {
|
|
2231
|
+
id: s.id,
|
|
2232
|
+
title: s.title && l(s.title, e),
|
|
2233
|
+
text: s.text && l(s.text, e),
|
|
2234
|
+
linkText: s.linkText && l(s.linkText, e),
|
|
2235
|
+
linkHref: s.linkHref
|
|
2236
|
+
};
|
|
2237
|
+
} else return null;
|
|
2238
|
+
const a = o.id || W6(`${o.title ?? ""} ${o.text ?? ""}`);
|
|
2239
|
+
return K6(a) ? null : { ...o, id: a };
|
|
2240
|
+
}
|
|
2241
|
+
afterRender() {
|
|
2242
|
+
this.applyLength("max-width", "--header-max-width"), this.applyLength("padding-x", "--header-padding-x");
|
|
2243
|
+
const e = this.variant, n = this.pageLang, o = !!e?.nav?.length, a = this.menuOpen && o;
|
|
2244
|
+
this.toggleAttribute("menu-open", a), this.root.querySelectorAll("[data-lang]").forEach(
|
|
2245
|
+
(s) => s.addEventListener("click", () => this.changeLang(s.dataset.lang, n))
|
|
2246
|
+
), o && (this.root.querySelector(".mud-header__burger").addEventListener("click", () => this.setMenuOpen(!0)), this.root.querySelector(".mud-header__panel-close").addEventListener("click", () => this.setMenuOpen(!1, !0)), this.root.querySelector(".mud-header__langbtn").addEventListener("click", () => this.setLangOpen(!this.langOpen)), this.root.querySelectorAll(".mud-header__panel-nav a").forEach((s) => s.addEventListener("click", () => this.setMenuOpen(!1))), this.lockScroll(a)), this.pinBelowBanner(), this.root.querySelector(".mud-header__banner-close")?.addEventListener("click", () => {
|
|
2247
|
+
const s = this.root.querySelector(".mud-header__banner"), C = s.dataset.bannerId;
|
|
2248
|
+
Y6(C), s.remove(), this.pinBelowBanner(), this.emit("mud-banner-close", { id: C });
|
|
2249
|
+
});
|
|
2250
|
+
}
|
|
2251
|
+
/** The alert banner scrolls away with the page: the sticky offset is minus its height, so only the rest of the header stays pinned. */
|
|
2252
|
+
pinBelowBanner() {
|
|
2253
|
+
this.bannerObserver?.disconnect();
|
|
2254
|
+
const e = this.root.querySelector(".mud-header__banner");
|
|
2255
|
+
if (!e) {
|
|
2256
|
+
this.style.removeProperty("--header-sticky-top");
|
|
2257
|
+
return;
|
|
2258
|
+
}
|
|
2259
|
+
this.bannerObserver = new ResizeObserver(() => this.style.setProperty("--header-sticky-top", `-${e.offsetHeight}px`)), this.bannerObserver.observe(e);
|
|
2260
|
+
}
|
|
2261
|
+
/** Maps an optional length attribute to a CSS custom property; without a valid value the default from the styles stays. */
|
|
2262
|
+
applyLength(e, n) {
|
|
2263
|
+
const o = this.getAttribute(e)?.trim(), a = o && /^\d+(\.\d+)?$/.test(o) ? `${o}px` : o;
|
|
2264
|
+
a && /^\d*\.?\d+(px|rem|em|%|vw|ch)$/.test(a) ? this.style.setProperty(n, a) : this.style.removeProperty(n);
|
|
1312
2265
|
}
|
|
1313
2266
|
styles() {
|
|
1314
|
-
return
|
|
2267
|
+
return E6;
|
|
1315
2268
|
}
|
|
1316
2269
|
template() {
|
|
1317
|
-
const e = this.getAttribute("variant") ?? "", n =
|
|
1318
|
-
|
|
2270
|
+
const e = this.getAttribute("variant") ?? "", n = this.variant;
|
|
2271
|
+
if (!n)
|
|
2272
|
+
return console.error(`<mud-header>: unknown variant "${e}". Use one of: ${Object.keys(V).join(", ")}.`), "";
|
|
2273
|
+
const o = this.pageLang, a = {
|
|
2274
|
+
lang: o,
|
|
2275
|
+
variant: n,
|
|
2276
|
+
shared: M,
|
|
2277
|
+
assetsBase: this.getAttribute("assets-base"),
|
|
2278
|
+
buttons: this.buttons(n),
|
|
2279
|
+
currentUrl: this.getAttribute("current-url") ?? location.href,
|
|
2280
|
+
links: this.links,
|
|
2281
|
+
banner: this.banner(o),
|
|
2282
|
+
cartCount: this.cartCount,
|
|
2283
|
+
menuOpen: this.menuOpen,
|
|
2284
|
+
langOpen: this.langOpen
|
|
2285
|
+
};
|
|
2286
|
+
return this.reportMissing(e, T6(a)), I6(a);
|
|
1319
2287
|
}
|
|
1320
2288
|
}
|
|
1321
|
-
|
|
1322
|
-
const
|
|
2289
|
+
H("mud-header", J6);
|
|
2290
|
+
const h3 = [
|
|
1323
2291
|
"mpass",
|
|
1324
2292
|
"msign",
|
|
1325
2293
|
"mconnect",
|
|
@@ -1333,15 +2301,15 @@ const b6 = [
|
|
|
1333
2301
|
"mcloud",
|
|
1334
2302
|
"evo",
|
|
1335
2303
|
"verifica"
|
|
1336
|
-
],
|
|
2304
|
+
], X6 = new URL(
|
|
1337
2305
|
/* @vite-ignore */
|
|
1338
2306
|
"./assets/m-products/",
|
|
1339
2307
|
import.meta.url
|
|
1340
2308
|
).href;
|
|
1341
|
-
function
|
|
1342
|
-
return `${n ? n.replace(/\/?$/, "/") :
|
|
2309
|
+
function f3(t, e = "svg", n) {
|
|
2310
|
+
return `${n ? n.replace(/\/?$/, "/") : X6}${e}/${t}.${e}`;
|
|
1343
2311
|
}
|
|
1344
|
-
const
|
|
2312
|
+
const Q6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1345
2313
|
<g>
|
|
1346
2314
|
<g>
|
|
1347
2315
|
<g>
|
|
@@ -1376,7 +2344,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1376
2344
|
</clipPath>
|
|
1377
2345
|
</defs>
|
|
1378
2346
|
</svg>
|
|
1379
|
-
`,
|
|
2347
|
+
`, e3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1380
2348
|
<g>
|
|
1381
2349
|
<g>
|
|
1382
2350
|
<g>
|
|
@@ -1426,7 +2394,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1426
2394
|
</linearGradient>
|
|
1427
2395
|
</defs>
|
|
1428
2396
|
</svg>
|
|
1429
|
-
`,
|
|
2397
|
+
`, t3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1430
2398
|
<g>
|
|
1431
2399
|
<g>
|
|
1432
2400
|
<g>
|
|
@@ -1468,7 +2436,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1468
2436
|
</linearGradient>
|
|
1469
2437
|
</defs>
|
|
1470
2438
|
</svg>
|
|
1471
|
-
`,
|
|
2439
|
+
`, n3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1472
2440
|
<g>
|
|
1473
2441
|
<g>
|
|
1474
2442
|
<g>
|
|
@@ -1514,7 +2482,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1514
2482
|
</linearGradient>
|
|
1515
2483
|
</defs>
|
|
1516
2484
|
</svg>
|
|
1517
|
-
`,
|
|
2485
|
+
`, o3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1518
2486
|
<g>
|
|
1519
2487
|
<g>
|
|
1520
2488
|
<g>
|
|
@@ -1564,7 +2532,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1564
2532
|
</linearGradient>
|
|
1565
2533
|
</defs>
|
|
1566
2534
|
</svg>
|
|
1567
|
-
`,
|
|
2535
|
+
`, r3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1568
2536
|
<g>
|
|
1569
2537
|
<g>
|
|
1570
2538
|
<g>
|
|
@@ -1636,7 +2604,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1636
2604
|
</linearGradient>
|
|
1637
2605
|
</defs>
|
|
1638
2606
|
</svg>
|
|
1639
|
-
`,
|
|
2607
|
+
`, a3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1640
2608
|
<g>
|
|
1641
2609
|
<g>
|
|
1642
2610
|
<g>
|
|
@@ -1682,7 +2650,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1682
2650
|
</linearGradient>
|
|
1683
2651
|
</defs>
|
|
1684
2652
|
</svg>
|
|
1685
|
-
`,
|
|
2653
|
+
`, i3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1686
2654
|
<g>
|
|
1687
2655
|
<g>
|
|
1688
2656
|
<g>
|
|
@@ -1728,7 +2696,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1728
2696
|
</linearGradient>
|
|
1729
2697
|
</defs>
|
|
1730
2698
|
</svg>
|
|
1731
|
-
`,
|
|
2699
|
+
`, l3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1732
2700
|
<g>
|
|
1733
2701
|
<g>
|
|
1734
2702
|
<g>
|
|
@@ -1774,7 +2742,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1774
2742
|
</linearGradient>
|
|
1775
2743
|
</defs>
|
|
1776
2744
|
</svg>
|
|
1777
|
-
`,
|
|
2745
|
+
`, s3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1778
2746
|
<g>
|
|
1779
2747
|
<g>
|
|
1780
2748
|
<g>
|
|
@@ -1823,7 +2791,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1823
2791
|
</linearGradient>
|
|
1824
2792
|
</defs>
|
|
1825
2793
|
</svg>
|
|
1826
|
-
`,
|
|
2794
|
+
`, C3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1827
2795
|
<g>
|
|
1828
2796
|
<g>
|
|
1829
2797
|
<g>
|
|
@@ -1861,7 +2829,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1861
2829
|
</linearGradient>
|
|
1862
2830
|
</defs>
|
|
1863
2831
|
</svg>
|
|
1864
|
-
`,
|
|
2832
|
+
`, d3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1865
2833
|
<g>
|
|
1866
2834
|
<g>
|
|
1867
2835
|
<g>
|
|
@@ -1907,7 +2875,7 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1907
2875
|
</linearGradient>
|
|
1908
2876
|
</defs>
|
|
1909
2877
|
</svg>
|
|
1910
|
-
`,
|
|
2878
|
+
`, p3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1911
2879
|
<g>
|
|
1912
2880
|
<g>
|
|
1913
2881
|
<g>
|
|
@@ -1919,14 +2887,14 @@ const a6 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
1919
2887
|
</g>
|
|
1920
2888
|
</g>
|
|
1921
2889
|
</svg>
|
|
1922
|
-
`,
|
|
1923
|
-
function
|
|
2890
|
+
`, G = { mpass: l3, msign: d3, mconnect: t3, mpay: s3, mpower: C3, mnotify: i3, mdelivery: n3, mdocs: o3, mlog: a3, mlearn: r3, mcloud: e3, evo: Q6, verifica: p3 }, c3 = /^\d*\.?\d+(px|rem|em|%|vw|vh|ch)$/;
|
|
2891
|
+
function u3(t) {
|
|
1924
2892
|
const e = t?.trim();
|
|
1925
2893
|
if (!e) return null;
|
|
1926
2894
|
const n = /^\d+(\.\d+)?$/.test(e) ? `${e}px` : e;
|
|
1927
|
-
return
|
|
2895
|
+
return c3.test(n) ? n : null;
|
|
1928
2896
|
}
|
|
1929
|
-
class
|
|
2897
|
+
class m3 extends HTMLElement {
|
|
1930
2898
|
root = this.attachShadow({ mode: "open" });
|
|
1931
2899
|
static get observedAttributes() {
|
|
1932
2900
|
return ["product", "size", "label"];
|
|
@@ -1934,31 +2902,34 @@ class L6 extends HTMLElement {
|
|
|
1934
2902
|
connectedCallback() {
|
|
1935
2903
|
this.render();
|
|
1936
2904
|
}
|
|
1937
|
-
attributeChangedCallback(e, n,
|
|
1938
|
-
n !==
|
|
2905
|
+
attributeChangedCallback(e, n, o) {
|
|
2906
|
+
n !== o && this.isConnected && this.render();
|
|
1939
2907
|
}
|
|
1940
2908
|
render() {
|
|
1941
|
-
const e = this.getAttribute("product") ?? "", n =
|
|
2909
|
+
const e = this.getAttribute("product") ?? "", n = G[e];
|
|
1942
2910
|
if (!n) {
|
|
1943
|
-
console.error(`<mud-mproducts-logo>: unknown product "${e}". Use one of: ${Object.keys(
|
|
2911
|
+
console.error(`<mud-mproducts-logo>: unknown product "${e}". Use one of: ${Object.keys(G).join(", ")}.`), this.root.innerHTML = "";
|
|
1944
2912
|
return;
|
|
1945
2913
|
}
|
|
1946
|
-
const
|
|
2914
|
+
const o = u3(this.getAttribute("size")) ?? "40px", a = this.getAttribute("label") ?? e, s = a ? `role="img" aria-label="${r(a)}"` : 'aria-hidden="true"';
|
|
1947
2915
|
this.root.innerHTML = // The attributes only set the default size of the host; CSS on the tag (class / style) overrides it and the svg follows.
|
|
1948
|
-
`<style>:host{display:inline-block;line-height:0;width:${
|
|
2916
|
+
`<style>:host{display:inline-block;line-height:0;width:${o};height:${o}}svg{display:block;width:100%;height:100%}</style>` + n.replace(/^<svg\b/, `<svg ${s}`);
|
|
1949
2917
|
}
|
|
1950
2918
|
}
|
|
1951
|
-
|
|
2919
|
+
H("mud-mproducts-logo", m3);
|
|
1952
2920
|
export {
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
2921
|
+
A as MudComponent,
|
|
2922
|
+
x6 as MudFooter,
|
|
2923
|
+
J6 as MudHeader,
|
|
2924
|
+
m3 as MudMProductsLogo,
|
|
2925
|
+
g3 as configureMud,
|
|
2926
|
+
C6 as footerShared,
|
|
2927
|
+
M as headerShared,
|
|
2928
|
+
V as headerVariants,
|
|
2929
|
+
W as loadMud,
|
|
2930
|
+
f3 as mProductLogoUrl,
|
|
2931
|
+
G as mProductLogos,
|
|
2932
|
+
h3 as mProducts,
|
|
2933
|
+
S as variants
|
|
1963
2934
|
};
|
|
1964
2935
|
//# sourceMappingURL=mud-site-kit.esm.js.map
|