@egov-moldova/mud-site-kit 1.0.6 → 1.0.7
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/mud-site-kit.esm.js +145 -131
- package/mud-site-kit.esm.js.map +1 -1
- package/mud-site-kit.iife.js +83 -70
- package/mud-site-kit.iife.js.map +1 -1
- package/package.json +1 -1
- package/types/components/header/data/texts.d.ts +0 -5
- package/types/components/header/header.styles.d.ts +1 -1
- package/types/components/header/types/header.types.d.ts +3 -1
package/mud-site-kit.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const t6 = ["mud.css", "tokens/core.tokens.css"];
|
|
2
|
-
let
|
|
2
|
+
let R, A;
|
|
3
3
|
function J3(t) {
|
|
4
|
-
|
|
4
|
+
R = t.baseUrl.endsWith("/") ? t.baseUrl : `${t.baseUrl}/`;
|
|
5
5
|
}
|
|
6
6
|
function n6() {
|
|
7
|
-
return
|
|
7
|
+
return R ?? new URL(
|
|
8
8
|
/* @vite-ignore */
|
|
9
9
|
"./mud/",
|
|
10
10
|
import.meta.url
|
|
@@ -19,15 +19,15 @@ function o6(t) {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
function r6() {
|
|
22
|
-
if (!
|
|
22
|
+
if (!A) {
|
|
23
23
|
const t = n6();
|
|
24
|
-
o6(t),
|
|
24
|
+
o6(t), A = import(
|
|
25
25
|
/* @vite-ignore */
|
|
26
26
|
`${t}mud.esm.js`
|
|
27
27
|
).then(() => {
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return A;
|
|
31
31
|
}
|
|
32
32
|
const a6 = ["ro", "ru", "en"], i6 = "ro";
|
|
33
33
|
function l6(t) {
|
|
@@ -44,10 +44,10 @@ function d6(t) {
|
|
|
44
44
|
function i(t, e) {
|
|
45
45
|
return typeof t == "string" ? t : t[e];
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function y(t, e) {
|
|
48
48
|
return t.replace("{lang}", e);
|
|
49
49
|
}
|
|
50
|
-
class
|
|
50
|
+
class B extends HTMLElement {
|
|
51
51
|
root;
|
|
52
52
|
stopWatchingLang;
|
|
53
53
|
constructor() {
|
|
@@ -91,7 +91,7 @@ function r(t) {
|
|
|
91
91
|
function V(t, e) {
|
|
92
92
|
customElements.get(t) || customElements.define(t, e);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const v = {
|
|
95
95
|
support: { text: "022 820 000", href: "tel:022820000" },
|
|
96
96
|
mconnect: { text: "022 820 022", href: "tel:022820022" },
|
|
97
97
|
evo: { text: "022 820 026", href: "tel:022820026" }
|
|
@@ -129,7 +129,7 @@ const h = {
|
|
|
129
129
|
logo: "mconnect",
|
|
130
130
|
logoHref: "https://mconnect.gov.md/ro/home",
|
|
131
131
|
tagline: { ro: "platforma guvernamentală de interoperabilitate", ru: "государственная платформа интероперабельности", en: "government interoperability platform" },
|
|
132
|
-
phone:
|
|
132
|
+
phone: v.mconnect,
|
|
133
133
|
emails: [c.mconnect],
|
|
134
134
|
legal: [
|
|
135
135
|
{
|
|
@@ -199,7 +199,7 @@ const h = {
|
|
|
199
199
|
logo: "mdate",
|
|
200
200
|
logoHref: "https://date.gov.md/",
|
|
201
201
|
tagline: { ro: "portalul guvernamental de date", ru: "государственный портал данных", en: "government data portal" },
|
|
202
|
-
phone:
|
|
202
|
+
phone: v.mconnect,
|
|
203
203
|
emails: [c.mconnect],
|
|
204
204
|
legal: [
|
|
205
205
|
{
|
|
@@ -246,7 +246,7 @@ const h = {
|
|
|
246
246
|
logo: "mpass",
|
|
247
247
|
logoHref: "https://mpass.gov.md/",
|
|
248
248
|
tagline: { ro: "serviciul de autentificare și control al accesului", ru: "сервис аутентификации и контроля доступа", en: "authentication and access control service" },
|
|
249
|
-
phone:
|
|
249
|
+
phone: v.support,
|
|
250
250
|
emails: [c.supportCitizens, c.services],
|
|
251
251
|
legal: [
|
|
252
252
|
{
|
|
@@ -301,7 +301,7 @@ const h = {
|
|
|
301
301
|
logo: "msign",
|
|
302
302
|
logoHref: "https://msign.gov.md/",
|
|
303
303
|
tagline: { ro: "serviciul guvernamental de semnătură electronică", ru: "государственный сервис электронной подписи", en: "government electronic signature service" },
|
|
304
|
-
phone:
|
|
304
|
+
phone: v.support,
|
|
305
305
|
emails: [c.supportCitizens, c.services],
|
|
306
306
|
legal: [
|
|
307
307
|
{
|
|
@@ -356,7 +356,7 @@ const h = {
|
|
|
356
356
|
logo: "mpower",
|
|
357
357
|
logoHref: "https://mpower.gov.md/#/ro",
|
|
358
358
|
tagline: { ro: "registrul împuternicirilor de reprezentare în baza semnăturii electronice", ru: "реестр доверенностей на представительство на основе электронной подписи", en: "register of representation authorizations based on electronic signature" },
|
|
359
|
-
phone:
|
|
359
|
+
phone: v.support,
|
|
360
360
|
emails: [c.supportCitizens, c.services],
|
|
361
361
|
legal: [
|
|
362
362
|
{
|
|
@@ -425,7 +425,7 @@ const h = {
|
|
|
425
425
|
logo: "mnotify",
|
|
426
426
|
logoHref: "https://mnotify.gov.md/#/ro/home",
|
|
427
427
|
tagline: { ro: "serviciul guvernamental de notificare", ru: "государственный сервис уведомлений", en: "government notification service" },
|
|
428
|
-
phone:
|
|
428
|
+
phone: v.support,
|
|
429
429
|
emails: [c.supportCitizens, c.services],
|
|
430
430
|
legal: [
|
|
431
431
|
{
|
|
@@ -480,7 +480,7 @@ const h = {
|
|
|
480
480
|
logo: "mdelivery",
|
|
481
481
|
logoHref: "https://mdelivery.gov.md/public",
|
|
482
482
|
tagline: { ro: "serviciul guvernamental de livrare", ru: "государственный сервис доставки", en: "government delivery service" },
|
|
483
|
-
phone:
|
|
483
|
+
phone: v.evo,
|
|
484
484
|
emails: [c.support],
|
|
485
485
|
legal: [
|
|
486
486
|
{
|
|
@@ -530,7 +530,7 @@ const h = {
|
|
|
530
530
|
logo: "mlearn",
|
|
531
531
|
logoHref: "https://mlearn.gov.md/",
|
|
532
532
|
tagline: { ro: "platforma guvernamentală de instruire la distanță", ru: "государственная платформа дистанционного обучения", en: "government distance learning platform" },
|
|
533
|
-
phone:
|
|
533
|
+
phone: v.support,
|
|
534
534
|
emails: [c.supportCitizens, c.services],
|
|
535
535
|
legal: [
|
|
536
536
|
{
|
|
@@ -578,7 +578,7 @@ const h = {
|
|
|
578
578
|
logo: "evosign",
|
|
579
579
|
logoHref: "https://evosign.gov.md/",
|
|
580
580
|
tagline: { ro: "Identitatea ta digitală direct în telefon", ru: "Ваша цифровая идентичность прямо в телефоне", en: "Your digital identity right on your phone" },
|
|
581
|
-
phone:
|
|
581
|
+
phone: v.evo,
|
|
582
582
|
emails: [c.support],
|
|
583
583
|
legal: [
|
|
584
584
|
{
|
|
@@ -753,7 +753,7 @@ const h = {
|
|
|
753
753
|
"./assets/footer/",
|
|
754
754
|
import.meta.url
|
|
755
755
|
).href;
|
|
756
|
-
function
|
|
756
|
+
function Z(t, e) {
|
|
757
757
|
const n = _6[t] ?? t;
|
|
758
758
|
return (e ? e.replace(/\/?$/, "/") : y6) + n;
|
|
759
759
|
}
|
|
@@ -1196,7 +1196,7 @@ const M6 = `<symbol id="icon-phone" viewBox="3.8 3.1 17.7 17.7">
|
|
|
1196
1196
|
align-items: flex-start;
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
`,
|
|
1199
|
+
`, I = (t) => t.newTab ? ' target="_blank" rel="noopener noreferrer"' : "", H = (t, e = "") => `<svg class="mud-icon ${e}"><use href="#${t}"></use></svg>`, M = (t, e) => t.sections?.[e] !== !1, w6 = (t) => (e) => `<li class="mud-footer__nav--item"><a class="mud-footer__nav--link" href="${r(e.href)}"${I(e)}>${r(i(e.label, t))}${e.badge ? `<span class="mud-badge">${r(i(e.badge, t))}</span>` : ""}</a></li>`, F = (t, e) => `
|
|
1200
1200
|
<div class="mud-footer__nav-col">
|
|
1201
1201
|
<div class="mud-footer__heading">${t || " "}</div>
|
|
1202
1202
|
<ul class="mud-footer__nav--list">${e}</ul>
|
|
@@ -1205,28 +1205,28 @@ function Z6(t, { key: e, lang: n, variant: o, shared: a }) {
|
|
|
1205
1205
|
const l = w6(n);
|
|
1206
1206
|
switch (t.type) {
|
|
1207
1207
|
case "links":
|
|
1208
|
-
return
|
|
1208
|
+
return F(r(i(t.heading, n)), t.items.map(l).join(""));
|
|
1209
1209
|
case "signature": {
|
|
1210
1210
|
const C = a.signature.filter((u) => u.platform !== e);
|
|
1211
|
-
return C.length ?
|
|
1211
|
+
return C.length ? F(r(i(a.signatureHeading, n)), C.map(l).join("")) : "";
|
|
1212
1212
|
}
|
|
1213
1213
|
case "platforms": {
|
|
1214
1214
|
const C = (o.usefulPlatforms ?? []).map((g) => a.platformCatalog[g]).filter(Boolean);
|
|
1215
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(i(u.label, n))}${
|
|
1217
|
-
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(i(u.label, n))}${H("icon-arrow-right", "mud-icon-small")}</a></li>`;
|
|
1217
|
+
return F(r(i(a.usefulPlatformsHeading, n)), C.map(l).join("") + f);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
const L6 = ({ variant: t, lang: e }) => {
|
|
1222
1222
|
const n = t.phone ? `
|
|
1223
1223
|
<li>
|
|
1224
|
-
<a href="${r(t.phone.href)}"><span class="mud-d-inline-flex" aria-hidden="true">${
|
|
1224
|
+
<a href="${r(t.phone.href)}"><span class="mud-d-inline-flex" aria-hidden="true">${H("icon-phone", "mud-icon--phone")}</span>${r(t.phone.text)}</a>
|
|
1225
1225
|
</li>` : "", o = t.emails.map((a) => {
|
|
1226
1226
|
const l = a.note ? `<span class="mud-footer__contact-label${a.noteTwoRows ? " mud-footer__contact-label--two-rows" : ""}">${r(i(a.note, e))}</span>` : "";
|
|
1227
1227
|
return `
|
|
1228
1228
|
<li>
|
|
1229
|
-
<a href="${r(a.href)}"><span class="mud-d-inline-flex" aria-hidden="true">${
|
|
1229
|
+
<a href="${r(a.href)}"><span class="mud-d-inline-flex" aria-hidden="true">${H("icon-envelope", "mud-icon--envelope")}</span>${r(a.text)}</a>${l}
|
|
1230
1230
|
</li>`;
|
|
1231
1231
|
}).join("");
|
|
1232
1232
|
return n || o ? `
|
|
@@ -1237,34 +1237,34 @@ const L6 = ({ variant: t, lang: e }) => {
|
|
|
1237
1237
|
return `
|
|
1238
1238
|
<div class="mud-footer__brand">
|
|
1239
1239
|
<a class="mud-footer__logo" href="${r(e.logoHref)}">
|
|
1240
|
-
<img class="mud-footer__brand--logo" src="${r(
|
|
1240
|
+
<img class="mud-footer__brand--logo" src="${r(Z(e.logo, o))}" alt="${r(e.name)}">
|
|
1241
1241
|
<div class="mud-footer__brand--details"${a}>
|
|
1242
1242
|
<span class="mud-brand-text">${r(e.name)}</span>
|
|
1243
1243
|
<span class="mud-brand-description">${r(i(e.tagline, n))}</span>
|
|
1244
1244
|
</div>
|
|
1245
|
-
</a>${
|
|
1245
|
+
</a>${M(e, "contact") ? L6(t) : ""}
|
|
1246
1246
|
</div>`;
|
|
1247
1247
|
}, $6 = ({ shared: t, lang: e, assetsBase: n }) => `
|
|
1248
1248
|
<div class="mud-footer__extras">
|
|
1249
|
-
<img class="mud-footer__extras-icon" src="${r(
|
|
1249
|
+
<img class="mud-footer__extras-icon" src="${r(Z("evo", n))}" alt="" aria-hidden="true">
|
|
1250
1250
|
<div class="mud-footer__description">${r(i(t.evo.description, e))}</div>
|
|
1251
1251
|
<div class="mud-footer__apps">
|
|
1252
1252
|
<a href="${r(t.evo.apple.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(i(t.evo.apple.label, e))}">
|
|
1253
|
-
<img class="mud-footer__apps-badge mud-footer__apps-badge--apple" src="${r(
|
|
1253
|
+
<img class="mud-footer__apps-badge mud-footer__apps-badge--apple" src="${r(Z("appStore", n))}" alt="${r(i(t.evo.apple.label, e))}">
|
|
1254
1254
|
</a>
|
|
1255
1255
|
<a href="${r(t.evo.google.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(i(t.evo.google.label, e))}">
|
|
1256
|
-
<img class="mud-footer__apps-badge mud-footer__apps-badge--google" src="${r(
|
|
1256
|
+
<img class="mud-footer__apps-badge mud-footer__apps-badge--google" src="${r(Z("googlePlay", n))}" alt="${r(i(t.evo.google.label, e))}">
|
|
1257
1257
|
</a>
|
|
1258
1258
|
</div>
|
|
1259
1259
|
</div>`, H6 = ({ shared: t, lang: e, assetsBase: n }) => t.institutions.map(
|
|
1260
1260
|
(o) => `
|
|
1261
1261
|
<a href="${r(o.href)}" class="mud-footer__institution-logo-link" target="_blank" rel="noopener noreferrer" aria-label="${r(i(o.label, e))}">
|
|
1262
|
-
<img class="mud-footer__institution-logo" src="${r(
|
|
1262
|
+
<img class="mud-footer__institution-logo" src="${r(Z(o.logo, n))}" alt="${r(i(o.label, e))}">
|
|
1263
1263
|
</a>`
|
|
1264
1264
|
).join(""), S6 = ({ 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)}">${
|
|
1265
|
+
(e) => `<li><a class="mud-footer__social--link" href="${r(e.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(e.label)}">${H(e.icon)}</a></li>`
|
|
1266
1266
|
).join(""), V6 = (t) => {
|
|
1267
|
-
const e =
|
|
1267
|
+
const e = M(t.variant, "institutions"), n = M(t.variant, "social");
|
|
1268
1268
|
return !e && !n ? "" : `
|
|
1269
1269
|
<hr class="mud-separator mud-separator--horizontal mud-separator--thin mud-separator--subtle">
|
|
1270
1270
|
|
|
@@ -1275,7 +1275,7 @@ const L6 = ({ variant: t, lang: e }) => {
|
|
|
1275
1275
|
</div>
|
|
1276
1276
|
`;
|
|
1277
1277
|
}, G6 = ({ variant: t, lang: e, shared: n }) => {
|
|
1278
|
-
const o =
|
|
1278
|
+
const o = M(t, "legal") ? (t.legal ?? []).map((a) => `<li><a href="${r(a.href)}"${I(a)}>${r(i(a.label, e))}</a></li>`).join("") : "";
|
|
1279
1279
|
return `
|
|
1280
1280
|
<div class="mud-footer__bottom">
|
|
1281
1281
|
<div class="mud-footer__container mud-footer__bottom-inner">
|
|
@@ -1285,7 +1285,7 @@ const L6 = ({ variant: t, lang: e }) => {
|
|
|
1285
1285
|
</div>`;
|
|
1286
1286
|
};
|
|
1287
1287
|
function U6(t) {
|
|
1288
|
-
const { variant: e } = t, n = e.columns.map((a) => Z6(a, t)).join(""), o =
|
|
1288
|
+
const { variant: e } = t, n = e.columns.map((a) => Z6(a, t)).join(""), o = M(e, "navigation") && n ? `
|
|
1289
1289
|
<nav class="mud-footer__nav" aria-label="Footer navigation">${n}
|
|
1290
1290
|
</nav>
|
|
1291
1291
|
` : "";
|
|
@@ -1294,14 +1294,14 @@ function U6(t) {
|
|
|
1294
1294
|
<div class="mud-footer__container">
|
|
1295
1295
|
<div class="mud-footer__top">
|
|
1296
1296
|
${k6(t)}
|
|
1297
|
-
${o}${
|
|
1297
|
+
${o}${M(e, "evo") ? $6(t) : ""}
|
|
1298
1298
|
</div>
|
|
1299
1299
|
${V6(t)}
|
|
1300
1300
|
</div>
|
|
1301
1301
|
${G6(t)}
|
|
1302
1302
|
</footer>`;
|
|
1303
1303
|
}
|
|
1304
|
-
class A6 extends
|
|
1304
|
+
class A6 extends B {
|
|
1305
1305
|
static get observedAttributes() {
|
|
1306
1306
|
return ["variant", "assets-base", "max-width", "padding-x"];
|
|
1307
1307
|
}
|
|
@@ -1367,9 +1367,8 @@ const F6 = {
|
|
|
1367
1367
|
{ id: "verify", label: { ro: "Verifică semnătură", ru: "Проверить подпись", en: "Verify signature" } },
|
|
1368
1368
|
{ id: "info", label: { ro: "Informații", ru: "Информация", en: "Information" } }
|
|
1369
1369
|
]
|
|
1370
|
-
},
|
|
1370
|
+
}, T = {
|
|
1371
1371
|
aboutService: { ro: "Despre serviciu", ru: "О сервисе", en: "About the service" },
|
|
1372
|
-
faq: { ro: "Întrebări frecvente", ru: "Часто задаваемые вопросы", en: "Frequently asked questions" },
|
|
1373
1372
|
verify: { ro: "Verifică", ru: "Проверить", en: "Verify" }
|
|
1374
1373
|
}, P6 = {
|
|
1375
1374
|
name: "mpower",
|
|
@@ -1379,10 +1378,10 @@ const F6 = {
|
|
|
1379
1378
|
{ ro: "în baza semnăturii electronice", ru: "на основе электронной подписи", en: "based on electronic signature" }
|
|
1380
1379
|
],
|
|
1381
1380
|
nav: [
|
|
1382
|
-
{ id: "verify", label:
|
|
1381
|
+
{ id: "verify", label: T.verify },
|
|
1383
1382
|
{ id: "authorization-types", label: { ro: "Tip împuterniciri", ru: "Типы доверенностей", en: "Authorization types" } },
|
|
1384
1383
|
{ id: "public-authorizations", label: { ro: "Autorizații publice", ru: "Публичные доверенности", en: "Public authorizations" } },
|
|
1385
|
-
{ id: "about", label:
|
|
1384
|
+
{ id: "about", label: T.aboutService }
|
|
1386
1385
|
],
|
|
1387
1386
|
buttons: ["login"]
|
|
1388
1387
|
}, E6 = {
|
|
@@ -1392,12 +1391,7 @@ const F6 = {
|
|
|
1392
1391
|
{ ro: "serviciul guvernamental", ru: "государственный сервис", en: "government" },
|
|
1393
1392
|
{ ro: "de notificare", ru: "уведомлений", en: "notification service" }
|
|
1394
1393
|
],
|
|
1395
|
-
|
|
1396
|
-
{ id: "about", label: H.aboutService },
|
|
1397
|
-
{ id: "faq", label: H.faq },
|
|
1398
|
-
{ label: { ro: "Integrare", ru: "Интеграция", en: "Integration" }, href: "https://egov-moldova.github.io/egov4dev/guides/mnotify/", newTab: !0 }
|
|
1399
|
-
],
|
|
1400
|
-
buttons: ["login"]
|
|
1394
|
+
buttons: ["login", "signature"]
|
|
1401
1395
|
}, T6 = {
|
|
1402
1396
|
name: "mdelivery",
|
|
1403
1397
|
logo: "mdelivery",
|
|
@@ -1418,14 +1412,14 @@ const F6 = {
|
|
|
1418
1412
|
{ ro: "platforma guvernamentală", ru: "государственная платформа", en: "government" },
|
|
1419
1413
|
{ ro: "de instruire la distanță", ru: "дистанционного обучения", en: "distance learning platform" }
|
|
1420
1414
|
]
|
|
1421
|
-
},
|
|
1415
|
+
}, j6 = {
|
|
1422
1416
|
name: "evosign",
|
|
1423
1417
|
logo: "evosign",
|
|
1424
1418
|
tagline: [
|
|
1425
1419
|
{ ro: "Identitatea ta digitală", ru: "Ваша цифровая идентичность", en: "Your digital identity" },
|
|
1426
1420
|
{ ro: "direct în telefon", ru: "прямо в телефоне", en: "right on your phone" }
|
|
1427
1421
|
]
|
|
1428
|
-
},
|
|
1422
|
+
}, q6 = {
|
|
1429
1423
|
name: "mdocs",
|
|
1430
1424
|
logo: "mdocs",
|
|
1431
1425
|
tagline: [
|
|
@@ -1445,7 +1439,7 @@ const F6 = {
|
|
|
1445
1439
|
{ id: "invoice", label: { ro: "Verifică nota", ru: "Проверить квитанцию", en: "Check invoice" } }
|
|
1446
1440
|
],
|
|
1447
1441
|
buttons: ["login"]
|
|
1448
|
-
},
|
|
1442
|
+
}, $ = {
|
|
1449
1443
|
government: {
|
|
1450
1444
|
label: { ro: "Guvernul Republicii Moldova", ru: "Правительство Республики Молдова", en: "Government of the Republic of Moldova" },
|
|
1451
1445
|
href: "https://gov.md/"
|
|
@@ -1453,6 +1447,10 @@ const F6 = {
|
|
|
1453
1447
|
buttons: {
|
|
1454
1448
|
login: {
|
|
1455
1449
|
label: { ro: "Autentifică-te", ru: "Войти", en: "Log in" }
|
|
1450
|
+
},
|
|
1451
|
+
signature: {
|
|
1452
|
+
label: { ro: "Obține semnătura", ru: "Получить подпись", en: "Get the signature" },
|
|
1453
|
+
href: "https://evo.gov.md/acasa/semnatura-electronica"
|
|
1456
1454
|
}
|
|
1457
1455
|
},
|
|
1458
1456
|
// 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.
|
|
@@ -1481,7 +1479,7 @@ const F6 = {
|
|
|
1481
1479
|
banner: { ro: "Informare importantă", ru: "Важная информация", en: "Important notice" },
|
|
1482
1480
|
cartCount: { ro: "Coș: {count}", ru: "Корзина: {count}", en: "Cart: {count}" }
|
|
1483
1481
|
}
|
|
1484
|
-
},
|
|
1482
|
+
}, D = {
|
|
1485
1483
|
mconnect: F6,
|
|
1486
1484
|
mdate: z6,
|
|
1487
1485
|
mpass: O6,
|
|
@@ -1490,8 +1488,8 @@ const F6 = {
|
|
|
1490
1488
|
mnotify: E6,
|
|
1491
1489
|
mdelivery: T6,
|
|
1492
1490
|
mlearn: D6,
|
|
1493
|
-
evosign:
|
|
1494
|
-
mdocs:
|
|
1491
|
+
evosign: j6,
|
|
1492
|
+
mdocs: q6,
|
|
1495
1493
|
mpay: R6
|
|
1496
1494
|
}, I6 = {
|
|
1497
1495
|
mconnect: "mconnect-logo.svg",
|
|
@@ -1511,11 +1509,11 @@ const F6 = {
|
|
|
1511
1509
|
"./assets/header/",
|
|
1512
1510
|
import.meta.url
|
|
1513
1511
|
).href;
|
|
1514
|
-
function
|
|
1512
|
+
function O(t, e) {
|
|
1515
1513
|
const n = I6[t] ?? t;
|
|
1516
1514
|
return (e ? e.replace(/\/?$/, "/") : W6) + n;
|
|
1517
1515
|
}
|
|
1518
|
-
const
|
|
1516
|
+
const _ = {
|
|
1519
1517
|
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
1518
|
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
1519
|
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>',
|
|
@@ -1854,6 +1852,19 @@ const b = {
|
|
|
1854
1852
|
background: var(--mud-blue-sky-800);
|
|
1855
1853
|
}
|
|
1856
1854
|
|
|
1855
|
+
.mud-header__btn--secondary {
|
|
1856
|
+
background: #e8f0fb;
|
|
1857
|
+
color: var(--mud-blue-sky-600);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
.mud-header__btn--secondary:hover {
|
|
1861
|
+
background: #d3e2f8;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
.mud-header__btn--secondary:active {
|
|
1865
|
+
background: #b8d0f3;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1857
1868
|
.mud-header a:focus-visible,
|
|
1858
1869
|
.mud-header button:focus-visible {
|
|
1859
1870
|
outline: 2px solid var(--mud-white);
|
|
@@ -2050,7 +2061,7 @@ const b = {
|
|
|
2050
2061
|
display: none;
|
|
2051
2062
|
}
|
|
2052
2063
|
}
|
|
2053
|
-
`,
|
|
2064
|
+
`, W = ({ links: t }) => t?.logo, Y6 = ({ links: t }, e) => "id" in e ? t?.nav?.[e.id] : e.href, K6 = ({ links: t }, e) => t?.icons?.[e.id], J6 = ({ links: t }) => t?.login;
|
|
2054
2065
|
function X6({ variant: t, links: e, buttons: n }) {
|
|
2055
2066
|
const o = [];
|
|
2056
2067
|
e?.logo || o.push("logo"), n.includes("login") && !e?.login && o.push("login");
|
|
@@ -2058,50 +2069,53 @@ function X6({ variant: t, links: e, buttons: n }) {
|
|
|
2058
2069
|
for (const a of t.icons ?? []) e?.icons?.[a.id] || o.push(`icons.${a.id}`);
|
|
2059
2070
|
return o;
|
|
2060
2071
|
}
|
|
2061
|
-
const
|
|
2072
|
+
const L = (t, e) => t ? ` href="${r(y(t, e))}"` : "", Q6 = (t) => t.newTab ? ' target="_blank" rel="noopener noreferrer"' : "", e3 = (t, { lang: e, shared: n }) => `
|
|
2062
2073
|
<div class="mud-header__banner" part="banner" role="region" aria-label="${r(i(n.labels.banner, e))}" data-banner-id="${r(t.id)}">
|
|
2063
2074
|
<div class="mud-container">
|
|
2064
|
-
${
|
|
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(
|
|
2066
|
-
<button type="button" class="mud-header__banner-close" part="banner-close" aria-label="${r(i(n.labels.closeBanner, e))}">${
|
|
2075
|
+
${_.alert}
|
|
2076
|
+
<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(y(t.linkHref, e))}" target="_blank" rel="noopener noreferrer">${r(t.linkText)}</a>` : ""}</p>
|
|
2077
|
+
<button type="button" class="mud-header__banner-close" part="banner-close" aria-label="${r(i(n.labels.closeBanner, e))}">${_.closeSmall}</button>
|
|
2067
2078
|
</div>
|
|
2068
|
-
</div>`,
|
|
2069
|
-
const n = Y6(t, e), o = n && t.currentUrl ===
|
|
2070
|
-
return `<li><a${
|
|
2079
|
+
</div>`, N = (t) => (e) => {
|
|
2080
|
+
const n = Y6(t, e), o = n && t.currentUrl === y(n, t.lang);
|
|
2081
|
+
return `<li><a${L(n, t.lang)}${Q6(e)}${o ? ' aria-current="page"' : ""}>${r(i(e.label, t.lang))}</a></li>`;
|
|
2071
2082
|
}, t3 = (t, e) => {
|
|
2072
2083
|
const { lang: n, variant: o, shared: a, assetsBase: l } = t, C = !!t.langOpen && e, u = a.languages.find((g) => g.code === n) ?? a.languages[0], f = a.languages.map(
|
|
2073
|
-
(g) => `<li role="presentation"><button type="button" role="option" lang="${g.code}" data-lang="${g.code}" aria-selected="${g.code === n}">${r(g.name)}${g.code === n ?
|
|
2084
|
+
(g) => `<li role="presentation"><button type="button" role="option" lang="${g.code}" data-lang="${g.code}" aria-selected="${g.code === n}">${r(g.name)}${g.code === n ? _.check : ""}</button></li>`
|
|
2074
2085
|
).join("");
|
|
2075
2086
|
return `<div class="mud-header__panel" id="mud-menu" part="panel" role="dialog" aria-modal="true" aria-label="${r(i(a.labels.menu, n))}"${e ? "" : " hidden"}>
|
|
2076
2087
|
<div class="mud-header__panel-top">
|
|
2077
|
-
<a class="mud-header__panel-logo"${
|
|
2088
|
+
<a class="mud-header__panel-logo"${L(W(t), n)}><img src="${r(O(o.logo, l))}" alt="${r(o.name)}"></a>
|
|
2078
2089
|
<div class="mud-header__panel-tools">
|
|
2079
2090
|
<div class="mud-header__langmenu">
|
|
2080
2091
|
<button type="button" class="mud-header__langbtn" aria-haspopup="listbox" aria-expanded="${C}" aria-label="${r(i(a.labels.language, n))}">
|
|
2081
|
-
${
|
|
2092
|
+
${_.globe}
|
|
2082
2093
|
<span>${r(u.label)}</span>
|
|
2083
2094
|
</button>
|
|
2084
2095
|
<ul class="mud-header__langlist" role="listbox" aria-label="${r(i(a.labels.language, n))}"${C ? "" : " hidden"}>
|
|
2085
2096
|
${f}
|
|
2086
2097
|
</ul>
|
|
2087
2098
|
</div>
|
|
2088
|
-
<button type="button" class="mud-header__panel-close" aria-label="${r(i(a.labels.closeMenu, n))}">${
|
|
2099
|
+
<button type="button" class="mud-header__panel-close" aria-label="${r(i(a.labels.closeMenu, n))}">${_.close}</button>
|
|
2089
2100
|
</div>
|
|
2090
2101
|
</div>
|
|
2091
|
-
<ul class="mud-header__panel-nav" aria-label="${r(i(a.labels.menu, n))}">${(o.nav ?? []).map(
|
|
2102
|
+
<ul class="mud-header__panel-nav" aria-label="${r(i(a.labels.menu, n))}">${(o.nav ?? []).map(N(t)).join("")}</ul>
|
|
2092
2103
|
</div>`;
|
|
2093
2104
|
};
|
|
2094
2105
|
function n3(t) {
|
|
2095
|
-
const { lang: e, variant: n, shared: o, assetsBase: a } = t, l = n.nav ?? [], C = l.length > 0, u = !!t.menuOpen && C, f = t.buttons.filter((p) => o.buttons[p]).map((p) =>
|
|
2096
|
-
const
|
|
2097
|
-
return `<a class="mud-
|
|
2098
|
-
}).join(""),
|
|
2106
|
+
const { lang: e, variant: n, shared: o, assetsBase: a } = t, l = n.nav ?? [], C = l.length > 0, u = !!t.menuOpen && C, f = t.buttons.filter((p) => o.buttons[p]).map((p) => {
|
|
2107
|
+
const h = o.buttons[p].href, w = h ? "secondary" : "primary", U = h ? ' target="_blank" rel="noopener noreferrer"' : "";
|
|
2108
|
+
return `<a class="mud-header__btn mud-header__btn--${w}" part="button-${w}"${L(h ?? J6(t), e)}${U}>${r(i(o.buttons[p].label, e))}</a>`;
|
|
2109
|
+
}).join(""), g = (n.icons ?? []).filter((p) => _[p.id]).map((p) => {
|
|
2110
|
+
const h = p.id === "cart" ? t.cartCount ?? 0 : 0, w = r(h > 0 ? i(o.labels.cartCount, e).replace("{count}", String(h)) : i(p.label, e)), U = h > 0 ? `<span class="mud-header__badge" part="badge" aria-hidden="true">${h > 99 ? "99+" : h}</span>` : "";
|
|
2111
|
+
return `<a class="mud-header__icon-btn" part="icon-button"${L(K6(t, p), e)} aria-label="${w}" title="${w}"><span class="mud-header__icon-wrapper">${_[p.id]}${U}</span></a>`;
|
|
2112
|
+
}).join(""), G = o.languages.map((p) => `<li><button type="button" lang="${p.code}" data-lang="${p.code}"${p.code === e ? ' aria-current="true"' : ""}>${r(p.label)}</button></li>`).join(""), P = r(i(o.labels.menu, e)), X = C ? `<ul class="mud-header__nav" part="nav" aria-label="${P}">${l.map(N(t)).join("")}</ul>` : "", Q = `<button type="button" class="mud-header__burger" part="burger" aria-label="${P}" aria-expanded="${u}" aria-controls="mud-menu">${_.burger}</button>`, e6 = n.tagline.map((p) => `<span class="mud-tagline-line">${r(i(p, e))}</span>`).join("");
|
|
2099
2113
|
return `
|
|
2100
2114
|
<header class="mud-header${C ? " mud-header--has-nav" : ""}" part="header">${t.banner ? e3(t.banner, t) : ""}
|
|
2101
2115
|
<div class="mud-header__pre" part="pre-header">
|
|
2102
2116
|
<div class="mud-container">
|
|
2103
|
-
<a class="mud-header__gov" href="${r(
|
|
2104
|
-
<img src="${r(
|
|
2117
|
+
<a class="mud-header__gov" href="${r(y(o.government.href, e))}" target="_blank" rel="noopener noreferrer">
|
|
2118
|
+
<img src="${r(O("guvernulEmblem", a))}" alt="">
|
|
2105
2119
|
<span>${r(i(o.government.label, e))}</span>
|
|
2106
2120
|
</a>
|
|
2107
2121
|
<ul class="mud-header__lang" aria-label="${r(i(o.labels.language, e))}">${G}</ul>
|
|
@@ -2109,25 +2123,25 @@ function n3(t) {
|
|
|
2109
2123
|
</div>
|
|
2110
2124
|
<div class="mud-header__bar" part="bar">
|
|
2111
2125
|
<div class="mud-container">
|
|
2112
|
-
<a class="mud-header__brand" part="brand"${
|
|
2113
|
-
<img class="mud-header__brand-logo" src="${r(
|
|
2126
|
+
<a class="mud-header__brand" part="brand"${L(W(t), e)}>
|
|
2127
|
+
<img class="mud-header__brand-logo" src="${r(O(n.logo, a))}" alt="${r(n.name)}">
|
|
2114
2128
|
<div class="mud-header__brand-details">
|
|
2115
2129
|
<span class="mud-header__brand-name">${r(n.name)}</span>
|
|
2116
|
-
<span class="mud-header__brand-tagline">${
|
|
2130
|
+
<span class="mud-header__brand-tagline">${e6}</span>
|
|
2117
2131
|
</div>
|
|
2118
2132
|
</a>
|
|
2119
|
-
${
|
|
2133
|
+
${X}
|
|
2120
2134
|
<div class="mud-header__actions" part="actions">${g}${f}</div>
|
|
2121
|
-
${C ?
|
|
2135
|
+
${C ? Q : ""}
|
|
2122
2136
|
</div>
|
|
2123
2137
|
</div>
|
|
2124
2138
|
${C ? t3(t, u) : ""}
|
|
2125
2139
|
</header>`;
|
|
2126
2140
|
}
|
|
2127
|
-
const
|
|
2128
|
-
document.cookie = `${
|
|
2141
|
+
const Y = "mud-banner-dismissed-", o3 = 720 * 60 * 60, r3 = (t) => t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 60), a3 = (t) => document.cookie.split("; ").includes(`${Y}${t}=1`), i3 = (t) => {
|
|
2142
|
+
document.cookie = `${Y}${t}=1; max-age=${o3}; path=/; SameSite=Lax`;
|
|
2129
2143
|
};
|
|
2130
|
-
class l3 extends
|
|
2144
|
+
class l3 extends B {
|
|
2131
2145
|
menuOpen = !1;
|
|
2132
2146
|
langOpen = !1;
|
|
2133
2147
|
bannerObserver;
|
|
@@ -2212,11 +2226,11 @@ class l3 extends O {
|
|
|
2212
2226
|
o && o !== this.reported && console.error(o), this.reported = o;
|
|
2213
2227
|
}
|
|
2214
2228
|
get variant() {
|
|
2215
|
-
return
|
|
2229
|
+
return D[this.getAttribute("variant") ?? ""];
|
|
2216
2230
|
}
|
|
2217
2231
|
buttons(e) {
|
|
2218
2232
|
const n = this.getAttribute("buttons");
|
|
2219
|
-
return n === null ? e.buttons ?? [] : n.split(",").map((o) => o.trim()).filter((o) => o in
|
|
2233
|
+
return n === null ? e.buttons ?? [] : n.split(",").map((o) => o.trim()).filter((o) => o in $.buttons);
|
|
2220
2234
|
}
|
|
2221
2235
|
/** The banner to show: from the `banner-*` attributes, else the site-wide one in data/shared.ts; null when off or closed. */
|
|
2222
2236
|
banner(e) {
|
|
@@ -2225,8 +2239,8 @@ class l3 extends O {
|
|
|
2225
2239
|
let o;
|
|
2226
2240
|
if (n("banner-title") || n("banner-text"))
|
|
2227
2241
|
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 (
|
|
2229
|
-
const l =
|
|
2242
|
+
else if ($.banner.enabled) {
|
|
2243
|
+
const l = $.banner;
|
|
2230
2244
|
o = {
|
|
2231
2245
|
id: l.id,
|
|
2232
2246
|
title: l.title && i(l.title, e),
|
|
@@ -2269,11 +2283,11 @@ class l3 extends O {
|
|
|
2269
2283
|
template() {
|
|
2270
2284
|
const e = this.getAttribute("variant") ?? "", n = this.variant;
|
|
2271
2285
|
if (!n)
|
|
2272
|
-
return console.error(`<mud-header>: unknown variant "${e}". Use one of: ${Object.keys(
|
|
2286
|
+
return console.error(`<mud-header>: unknown variant "${e}". Use one of: ${Object.keys(D).join(", ")}.`), "";
|
|
2273
2287
|
const o = this.pageLang, a = {
|
|
2274
2288
|
lang: o,
|
|
2275
2289
|
variant: n,
|
|
2276
|
-
shared:
|
|
2290
|
+
shared: $,
|
|
2277
2291
|
assetsBase: this.getAttribute("assets-base"),
|
|
2278
2292
|
buttons: this.buttons(n),
|
|
2279
2293
|
currentUrl: this.getAttribute("current-url") ?? location.href,
|
|
@@ -2287,7 +2301,7 @@ class l3 extends O {
|
|
|
2287
2301
|
}
|
|
2288
2302
|
}
|
|
2289
2303
|
V("mud-header", l3);
|
|
2290
|
-
const
|
|
2304
|
+
const b = {
|
|
2291
2305
|
support: { text: "022 820 000", href: "tel:022820000" },
|
|
2292
2306
|
mconnect: { text: "022 820 022", href: "tel:022820022" },
|
|
2293
2307
|
evo: { text: "022 820 026", href: "tel:022820026" }
|
|
@@ -2325,7 +2339,7 @@ const v = {
|
|
|
2325
2339
|
name: "mconnect",
|
|
2326
2340
|
logo: "mconnect",
|
|
2327
2341
|
tagline: { ro: "platforma guvernamentală de interoperabilitate", ru: "государственная платформа интероперабельности", en: "government interoperability platform" },
|
|
2328
|
-
phone:
|
|
2342
|
+
phone: b.mconnect,
|
|
2329
2343
|
emails: [m.mconnect],
|
|
2330
2344
|
legal: [
|
|
2331
2345
|
{
|
|
@@ -2394,7 +2408,7 @@ const v = {
|
|
|
2394
2408
|
name: "mdate",
|
|
2395
2409
|
logo: "mdate",
|
|
2396
2410
|
tagline: { ro: "portalul guvernamental de date", ru: "государственный портал данных", en: "government data portal" },
|
|
2397
|
-
phone:
|
|
2411
|
+
phone: b.mconnect,
|
|
2398
2412
|
emails: [m.mconnect],
|
|
2399
2413
|
legal: [
|
|
2400
2414
|
{
|
|
@@ -2440,7 +2454,7 @@ const v = {
|
|
|
2440
2454
|
name: "mpass",
|
|
2441
2455
|
logo: "mpass",
|
|
2442
2456
|
tagline: { ro: "serviciul de autentificare și control al accesului", ru: "сервис аутентификации и контроля доступа", en: "authentication and access control service" },
|
|
2443
|
-
phone:
|
|
2457
|
+
phone: b.support,
|
|
2444
2458
|
emails: [m.supportCitizens, m.services],
|
|
2445
2459
|
legal: [
|
|
2446
2460
|
{
|
|
@@ -2494,7 +2508,7 @@ const v = {
|
|
|
2494
2508
|
name: "msign",
|
|
2495
2509
|
logo: "msign",
|
|
2496
2510
|
tagline: { ro: "serviciul guvernamental de semnătură electronică", ru: "государственный сервис электронной подписи", en: "government electronic signature service" },
|
|
2497
|
-
phone:
|
|
2511
|
+
phone: b.support,
|
|
2498
2512
|
emails: [m.supportCitizens, m.services],
|
|
2499
2513
|
legal: [
|
|
2500
2514
|
{
|
|
@@ -2548,7 +2562,7 @@ const v = {
|
|
|
2548
2562
|
name: "mpower",
|
|
2549
2563
|
logo: "mpower",
|
|
2550
2564
|
tagline: { ro: "registrul împuternicirilor de reprezentare în baza semnăturii electronice", ru: "реестр доверенностей на представительство на основе электронной подписи", en: "register of representation authorizations based on electronic signature" },
|
|
2551
|
-
phone:
|
|
2565
|
+
phone: b.support,
|
|
2552
2566
|
emails: [m.supportCitizens, m.services],
|
|
2553
2567
|
legal: [
|
|
2554
2568
|
{
|
|
@@ -2620,7 +2634,7 @@ const v = {
|
|
|
2620
2634
|
name: "mnotify",
|
|
2621
2635
|
logo: "mnotify",
|
|
2622
2636
|
tagline: { ro: "serviciul guvernamental de notificare", ru: "государственный сервис уведомлений", en: "government notification service" },
|
|
2623
|
-
phone:
|
|
2637
|
+
phone: b.support,
|
|
2624
2638
|
emails: [m.supportCitizens, m.services],
|
|
2625
2639
|
legal: [
|
|
2626
2640
|
{
|
|
@@ -2674,7 +2688,7 @@ const v = {
|
|
|
2674
2688
|
name: "mdelivery",
|
|
2675
2689
|
logo: "mdelivery",
|
|
2676
2690
|
tagline: { ro: "serviciul guvernamental de livrare", ru: "государственный сервис доставки", en: "government delivery service" },
|
|
2677
|
-
phone:
|
|
2691
|
+
phone: b.evo,
|
|
2678
2692
|
emails: [m.support],
|
|
2679
2693
|
legal: [
|
|
2680
2694
|
{
|
|
@@ -2727,7 +2741,7 @@ const v = {
|
|
|
2727
2741
|
name: "mlearn",
|
|
2728
2742
|
logo: "mlearn",
|
|
2729
2743
|
tagline: { ro: "platforma guvernamentală de instruire la distanță", ru: "государственная платформа дистанционного обучения", en: "government distance learning platform" },
|
|
2730
|
-
phone:
|
|
2744
|
+
phone: b.support,
|
|
2731
2745
|
emails: [m.supportCitizens, m.services],
|
|
2732
2746
|
legal: [
|
|
2733
2747
|
{
|
|
@@ -2774,7 +2788,7 @@ const v = {
|
|
|
2774
2788
|
name: "evosign",
|
|
2775
2789
|
logo: "evosign",
|
|
2776
2790
|
tagline: { ro: "Identitatea ta digitală direct în telefon", ru: "Ваша цифровая идентичность прямо в телефоне", en: "Your digital identity right on your phone" },
|
|
2777
|
-
phone:
|
|
2791
|
+
phone: b.evo,
|
|
2778
2792
|
emails: [m.support],
|
|
2779
2793
|
legal: [
|
|
2780
2794
|
{
|
|
@@ -2923,7 +2937,7 @@ const v = {
|
|
|
2923
2937
|
href: "https://play.google.com/store/apps/details?id=md.egov.evo&pcampaignid=web_share"
|
|
2924
2938
|
}
|
|
2925
2939
|
}
|
|
2926
|
-
},
|
|
2940
|
+
}, j = {
|
|
2927
2941
|
mconnect: s3,
|
|
2928
2942
|
mdate: d3,
|
|
2929
2943
|
mpass: C3,
|
|
@@ -2953,7 +2967,7 @@ const v = {
|
|
|
2953
2967
|
"./assets/footer-v2/",
|
|
2954
2968
|
import.meta.url
|
|
2955
2969
|
).href;
|
|
2956
|
-
function
|
|
2970
|
+
function k(t, e) {
|
|
2957
2971
|
const n = v3[t] ?? t;
|
|
2958
2972
|
return (e ? e.replace(/\/?$/, "/") : b3) + n;
|
|
2959
2973
|
}
|
|
@@ -3396,16 +3410,16 @@ const _3 = `<symbol id="icon-phone" viewBox="3.8 3.1 17.7 17.7">
|
|
|
3396
3410
|
align-items: flex-start;
|
|
3397
3411
|
}
|
|
3398
3412
|
}
|
|
3399
|
-
`,
|
|
3413
|
+
`, K = (t) => t.newTab ? ' target="_blank" rel="noopener noreferrer"' : "", S = (t, e = "") => `<svg class="mud-icon ${e}"><use href="#${t}"></use></svg>`, x = (t, e) => t.sections?.[e] !== !1;
|
|
3400
3414
|
function M3(t) {
|
|
3401
3415
|
const e = [...t.legal ?? []];
|
|
3402
3416
|
for (const n of t.columns) n.type === "links" && e.push(...n.items);
|
|
3403
3417
|
return e.filter((n) => "id" in n).map((n) => n.id);
|
|
3404
3418
|
}
|
|
3405
|
-
const
|
|
3419
|
+
const J = ({ links: t, lang: e }, n) => {
|
|
3406
3420
|
const o = "id" in n ? t?.items?.[n.id] : n.href;
|
|
3407
|
-
return o ? ` href="${r(
|
|
3408
|
-
}, x3 = (t) => (e) => `<li class="mud-footer__nav--item"><a class="mud-footer__nav--link"${
|
|
3421
|
+
return o ? ` href="${r(y(o, e))}"` : "";
|
|
3422
|
+
}, x3 = (t) => (e) => `<li class="mud-footer__nav--item"><a class="mud-footer__nav--link"${J(t, e)}${K(e)}>${r(i(e.label, t.lang))}${e.badge ? `<span class="mud-badge">${r(i(e.badge, t.lang))}</span>` : ""}</a></li>`, z = (t, e) => `
|
|
3409
3423
|
<div class="mud-footer__nav-col">
|
|
3410
3424
|
<div class="mud-footer__heading">${t || " "}</div>
|
|
3411
3425
|
<ul class="mud-footer__nav--list">${e}</ul>
|
|
@@ -3414,16 +3428,16 @@ function w3(t, e) {
|
|
|
3414
3428
|
const { key: n, lang: o, variant: a, shared: l } = e, C = x3(e);
|
|
3415
3429
|
switch (t.type) {
|
|
3416
3430
|
case "links":
|
|
3417
|
-
return
|
|
3431
|
+
return z(r(i(t.heading, o)), t.items.map(C).join(""));
|
|
3418
3432
|
case "signature": {
|
|
3419
3433
|
const u = l.signature.filter((f) => f.platform !== n);
|
|
3420
|
-
return u.length ?
|
|
3434
|
+
return u.length ? z(r(i(l.signatureHeading, o)), u.map(C).join("")) : "";
|
|
3421
3435
|
}
|
|
3422
3436
|
case "platforms": {
|
|
3423
3437
|
const u = (a.usefulPlatforms ?? []).map((G) => l.platformCatalog[G]).filter(Boolean);
|
|
3424
3438
|
if (!u.length) return "";
|
|
3425
|
-
const f = l.platformMore, g = `<li class="mud-footer__nav--item"><a class="mud-footer__nav--link mud-footer__nav--link--more" href="${r(
|
|
3426
|
-
return
|
|
3439
|
+
const f = l.platformMore, g = `<li class="mud-footer__nav--item"><a class="mud-footer__nav--link mud-footer__nav--link--more" href="${r(y(f.href, o))}">${r(i(f.label, o))}${S("icon-arrow-right", "mud-icon-small")}</a></li>`;
|
|
3440
|
+
return z(r(i(l.usefulPlatformsHeading, o)), u.map(C).join("") + g);
|
|
3427
3441
|
}
|
|
3428
3442
|
}
|
|
3429
3443
|
}
|
|
@@ -3445,35 +3459,35 @@ const Z3 = ({ variant: t, lang: e }) => {
|
|
|
3445
3459
|
const { variant: e, lang: n, assetsBase: o } = t, a = e.taglineMaxWidth ? ` style="max-width:${e.taglineMaxWidth}px"` : "";
|
|
3446
3460
|
return `
|
|
3447
3461
|
<div class="mud-footer__brand">
|
|
3448
|
-
<a class="mud-footer__logo"${t.links?.logo ? ` href="${r(
|
|
3449
|
-
<img class="mud-footer__brand--logo" src="${r(
|
|
3462
|
+
<a class="mud-footer__logo"${t.links?.logo ? ` href="${r(y(t.links.logo, n))}"` : ""}>
|
|
3463
|
+
<img class="mud-footer__brand--logo" src="${r(k(e.logo, o))}" alt="${r(e.name)}">
|
|
3450
3464
|
<div class="mud-footer__brand--details"${a}>
|
|
3451
3465
|
<span class="mud-brand-text">${r(e.name)}</span>
|
|
3452
3466
|
<span class="mud-brand-description">${r(i(e.tagline, n))}</span>
|
|
3453
3467
|
</div>
|
|
3454
|
-
</a>${
|
|
3468
|
+
</a>${x(e, "contact") ? Z3(t) : ""}
|
|
3455
3469
|
</div>`;
|
|
3456
3470
|
}, k3 = ({ shared: t, lang: e, assetsBase: n }) => `
|
|
3457
3471
|
<div class="mud-footer__extras">
|
|
3458
|
-
<img class="mud-footer__extras-icon" src="${r(
|
|
3472
|
+
<img class="mud-footer__extras-icon" src="${r(k("evo", n))}" alt="" aria-hidden="true">
|
|
3459
3473
|
<div class="mud-footer__description">${r(i(t.evo.description, e))}</div>
|
|
3460
3474
|
<div class="mud-footer__apps">
|
|
3461
3475
|
<a href="${r(t.evo.apple.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(i(t.evo.apple.label, e))}">
|
|
3462
|
-
<img class="mud-footer__apps-badge mud-footer__apps-badge--apple" src="${r(
|
|
3476
|
+
<img class="mud-footer__apps-badge mud-footer__apps-badge--apple" src="${r(k("appStore", n))}" alt="${r(i(t.evo.apple.label, e))}">
|
|
3463
3477
|
</a>
|
|
3464
3478
|
<a href="${r(t.evo.google.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(i(t.evo.google.label, e))}">
|
|
3465
|
-
<img class="mud-footer__apps-badge mud-footer__apps-badge--google" src="${r(
|
|
3479
|
+
<img class="mud-footer__apps-badge mud-footer__apps-badge--google" src="${r(k("googlePlay", n))}" alt="${r(i(t.evo.google.label, e))}">
|
|
3466
3480
|
</a>
|
|
3467
3481
|
</div>
|
|
3468
3482
|
</div>`, $3 = ({ shared: t, lang: e, assetsBase: n }) => t.institutions.map(
|
|
3469
3483
|
(o) => `
|
|
3470
|
-
<a href="${r(
|
|
3471
|
-
<img class="mud-footer__institution-logo" src="${r(
|
|
3484
|
+
<a href="${r(y(o.href, e))}" class="mud-footer__institution-logo-link" target="_blank" rel="noopener noreferrer" aria-label="${r(i(o.label, e))}">
|
|
3485
|
+
<img class="mud-footer__institution-logo" src="${r(k(o.logo, n))}" alt="${r(i(o.label, e))}">
|
|
3472
3486
|
</a>`
|
|
3473
3487
|
).join(""), H3 = ({ shared: t }) => t.social.map(
|
|
3474
3488
|
(e) => `<li><a class="mud-footer__social--link" href="${r(e.href)}" target="_blank" rel="noopener noreferrer" aria-label="${r(e.label)}">${S(e.icon)}</a></li>`
|
|
3475
3489
|
).join(""), S3 = (t) => {
|
|
3476
|
-
const e =
|
|
3490
|
+
const e = x(t.variant, "institutions"), n = x(t.variant, "social");
|
|
3477
3491
|
return !e && !n ? "" : `
|
|
3478
3492
|
<hr class="mud-separator mud-separator--horizontal mud-separator--thin mud-separator--subtle">
|
|
3479
3493
|
|
|
@@ -3484,7 +3498,7 @@ const Z3 = ({ variant: t, lang: e }) => {
|
|
|
3484
3498
|
</div>
|
|
3485
3499
|
`;
|
|
3486
3500
|
}, V3 = (t) => {
|
|
3487
|
-
const { variant: e, lang: n, shared: o } = t, a =
|
|
3501
|
+
const { variant: e, lang: n, shared: o } = t, a = x(e, "legal") ? (e.legal ?? []).map((l) => `<li><a${J(t, l)}${K(l)}>${r(i(l.label, n))}</a></li>`).join("") : "";
|
|
3488
3502
|
return `
|
|
3489
3503
|
<div class="mud-footer__bottom">
|
|
3490
3504
|
<div class="mud-footer__container mud-footer__bottom-inner">
|
|
@@ -3494,7 +3508,7 @@ const Z3 = ({ variant: t, lang: e }) => {
|
|
|
3494
3508
|
</div>`;
|
|
3495
3509
|
};
|
|
3496
3510
|
function G3(t) {
|
|
3497
|
-
const { variant: e } = t, n = e.columns.map((a) => w3(a, t)).join(""), o =
|
|
3511
|
+
const { variant: e } = t, n = e.columns.map((a) => w3(a, t)).join(""), o = x(e, "navigation") && n ? `
|
|
3498
3512
|
<nav class="mud-footer__nav" aria-label="Footer navigation">${n}
|
|
3499
3513
|
</nav>
|
|
3500
3514
|
` : "";
|
|
@@ -3503,14 +3517,14 @@ function G3(t) {
|
|
|
3503
3517
|
<div class="mud-footer__container">
|
|
3504
3518
|
<div class="mud-footer__top">
|
|
3505
3519
|
${L3(t)}
|
|
3506
|
-
${o}${
|
|
3520
|
+
${o}${x(e, "evo") ? k3(t) : ""}
|
|
3507
3521
|
</div>
|
|
3508
3522
|
${S3(t)}
|
|
3509
3523
|
</div>
|
|
3510
3524
|
${V3(t)}
|
|
3511
3525
|
</footer>`;
|
|
3512
3526
|
}
|
|
3513
|
-
class U3 extends
|
|
3527
|
+
class U3 extends B {
|
|
3514
3528
|
_links;
|
|
3515
3529
|
reported = "";
|
|
3516
3530
|
static get observedAttributes() {
|
|
@@ -3551,9 +3565,9 @@ class U3 extends O {
|
|
|
3551
3565
|
return y3;
|
|
3552
3566
|
}
|
|
3553
3567
|
template() {
|
|
3554
|
-
const e = this.getAttribute("variant") ?? "", n =
|
|
3568
|
+
const e = this.getAttribute("variant") ?? "", n = j[e];
|
|
3555
3569
|
if (!n)
|
|
3556
|
-
return console.error(`<mud-footer-v2>: unknown variant "${e}". Use one of: ${Object.keys(
|
|
3570
|
+
return console.error(`<mud-footer-v2>: unknown variant "${e}". Use one of: ${Object.keys(j).join(", ")}.`), "";
|
|
3557
3571
|
const o = this.links;
|
|
3558
3572
|
return this.reportMissing(e, n, o), G3({ key: e, lang: this.pageLang, variant: n, shared: h3, assetsBase: this.getAttribute("assets-base"), links: o });
|
|
3559
3573
|
}
|
|
@@ -3968,7 +3982,7 @@ const F3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
3968
3982
|
</linearGradient>
|
|
3969
3983
|
</defs>
|
|
3970
3984
|
</svg>
|
|
3971
|
-
`,
|
|
3985
|
+
`, j3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3972
3986
|
<g>
|
|
3973
3987
|
<g>
|
|
3974
3988
|
<g>
|
|
@@ -4014,7 +4028,7 @@ const F3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
4014
4028
|
</linearGradient>
|
|
4015
4029
|
</defs>
|
|
4016
4030
|
</svg>
|
|
4017
|
-
`,
|
|
4031
|
+
`, q3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4018
4032
|
<g>
|
|
4019
4033
|
<g>
|
|
4020
4034
|
<g>
|
|
@@ -4159,7 +4173,7 @@ const F3 = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="h
|
|
|
4159
4173
|
</g>
|
|
4160
4174
|
</g>
|
|
4161
4175
|
</svg>
|
|
4162
|
-
`, q = { mpass:
|
|
4176
|
+
`, q = { mpass: j3, msign: I3, mconnect: O3, mpay: q3, mpower: R3, mnotify: D3, mdelivery: B3, mdocs: P3, mlog: T3, mlearn: E3, mcloud: z3, evo: F3, verifica: W3 }, N3 = /^\d*\.?\d+(px|rem|em|%|vw|vh|ch)$/;
|
|
4163
4177
|
function Y3(t) {
|
|
4164
4178
|
const e = t?.trim();
|
|
4165
4179
|
if (!e) return null;
|
|
@@ -4190,7 +4204,7 @@ class K3 extends HTMLElement {
|
|
|
4190
4204
|
}
|
|
4191
4205
|
V("mud-mproducts-logo", K3);
|
|
4192
4206
|
export {
|
|
4193
|
-
|
|
4207
|
+
B as MudComponent,
|
|
4194
4208
|
A6 as MudFooter,
|
|
4195
4209
|
U3 as MudFooterV2,
|
|
4196
4210
|
l3 as MudHeader,
|
|
@@ -4198,9 +4212,9 @@ export {
|
|
|
4198
4212
|
J3 as configureMud,
|
|
4199
4213
|
b6 as footerShared,
|
|
4200
4214
|
h3 as footerV2Shared,
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4215
|
+
j as footerV2Variants,
|
|
4216
|
+
$ as headerShared,
|
|
4217
|
+
D as headerVariants,
|
|
4204
4218
|
r6 as loadMud,
|
|
4205
4219
|
Q3 as mProductLogoUrl,
|
|
4206
4220
|
q as mProductLogos,
|