sass-cms-template-common 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +79 -53
- package/dist/index.js +424 -461
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +60 -1
- package/dist/server.js +1 -1
- package/dist/{services-BjcJgeV1.js → services-DS4p6Tpl.js} +11 -1
- package/dist/services-DS4p6Tpl.js.map +1 -0
- package/package.json +1 -1
- package/dist/services-BjcJgeV1.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, _t as ee, a as te, at as O, b as ne, c as re, ct as ie, d as ae, dt as oe, et as se, f as ce, ft as le, g as ue, gt as de, h as fe, ht as pe, i as me, it as he, j as ge, k as _e, l as ve, lt as k, m as ye, mt as A, n as be, nt as xe, o as Se, ot as Ce, p as we, pt as j, q as Te, r as Ee, rt as De, s as Oe, st as ke, t as Ae, tt as je, u as Me, ut as M, v as Ne, vt as Pe, w as Fe, x as Ie, y as Le, z as Re } from "./services-DS4p6Tpl.js";
|
|
2
2
|
import { ThemeProvider as ze, alpha as N, createTheme as Be, useColorScheme as Ve } from "@mui/material/styles";
|
|
3
3
|
import { Fragment as He, cloneElement as Ue, createContext as We, forwardRef as Ge, isValidElement as Ke, useCallback as qe, useContext as Je, useEffect as Ye, useId as Xe, useMemo as P, useRef as Ze, useState as F } from "react";
|
|
4
4
|
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
@@ -2258,8 +2258,8 @@ var Nr = [
|
|
|
2258
2258
|
};
|
|
2259
2259
|
function Rr(e) {
|
|
2260
2260
|
return e === "ai" ? {
|
|
2261
|
-
bg:
|
|
2262
|
-
on:
|
|
2261
|
+
bg: ee.generating.bg,
|
|
2262
|
+
on: ee.generating.on
|
|
2263
2263
|
} : {
|
|
2264
2264
|
bg: O.secondary,
|
|
2265
2265
|
on: O.onSecondaryContainer
|
|
@@ -2391,7 +2391,7 @@ var G = {
|
|
|
2391
2391
|
width: 8,
|
|
2392
2392
|
height: 8,
|
|
2393
2393
|
borderRadius: "50%",
|
|
2394
|
-
bgcolor:
|
|
2394
|
+
bgcolor: ee.generating.on,
|
|
2395
2395
|
boxShadow: `0 0 0 2px ${O.surface}`
|
|
2396
2396
|
},
|
|
2397
2397
|
sxChildrenMenuPaper: {
|
|
@@ -3463,35 +3463,7 @@ function ni({ groups: e = Zr, operationPermissions: t, isAdmin: n, legacyBaseUrl
|
|
|
3463
3463
|
}
|
|
3464
3464
|
//#endregion
|
|
3465
3465
|
//#region src/lib/components/top-bar/notificationsFeed.ts
|
|
3466
|
-
|
|
3467
|
-
return [
|
|
3468
|
-
{
|
|
3469
|
-
id: 2843,
|
|
3470
|
-
title: "Récord de exportaciones de litio impulsa proyectos en el NOA",
|
|
3471
|
-
match: 94,
|
|
3472
|
-
trending: !0,
|
|
3473
|
-
isRead: !1,
|
|
3474
|
-
timeStamp: { time: e }
|
|
3475
|
-
},
|
|
3476
|
-
{
|
|
3477
|
-
id: 2840,
|
|
3478
|
-
title: "Ola de calor extrema en el centro del país: alerta roja por 4 días",
|
|
3479
|
-
match: 91,
|
|
3480
|
-
trending: !0,
|
|
3481
|
-
isRead: !1,
|
|
3482
|
-
timeStamp: { time: e }
|
|
3483
|
-
},
|
|
3484
|
-
{
|
|
3485
|
-
id: 2836,
|
|
3486
|
-
title: "Cripto: el Banco Central pone bajo lupa a billeteras virtuales",
|
|
3487
|
-
match: 82,
|
|
3488
|
-
trending: !1,
|
|
3489
|
-
isRead: !1,
|
|
3490
|
-
timeStamp: { time: e }
|
|
3491
|
-
}
|
|
3492
|
-
];
|
|
3493
|
-
}
|
|
3494
|
-
var ii = [
|
|
3466
|
+
var ri = [
|
|
3495
3467
|
"hls",
|
|
3496
3468
|
"dash",
|
|
3497
3469
|
"mp4",
|
|
@@ -3500,20 +3472,26 @@ var ii = [
|
|
|
3500
3472
|
"m3u8",
|
|
3501
3473
|
"mpd"
|
|
3502
3474
|
];
|
|
3503
|
-
function
|
|
3475
|
+
function ii(e) {
|
|
3504
3476
|
return String(e).padStart(2, "0");
|
|
3505
3477
|
}
|
|
3506
|
-
function
|
|
3478
|
+
function ai(e) {
|
|
3507
3479
|
if (e == null) return null;
|
|
3508
3480
|
if (typeof e == "object") {
|
|
3509
3481
|
let t = e.time;
|
|
3510
|
-
return
|
|
3482
|
+
return ai(t);
|
|
3511
3483
|
}
|
|
3512
|
-
|
|
3484
|
+
if (typeof e == "string") {
|
|
3485
|
+
let t = e.trim();
|
|
3486
|
+
if (/^\d+$/.test(t)) return parseInt(t, 10);
|
|
3487
|
+
let n = Date.parse(t);
|
|
3488
|
+
return Number.isNaN(n) ? null : n;
|
|
3489
|
+
}
|
|
3490
|
+
let t = Number(e);
|
|
3513
3491
|
return Number.isNaN(t) ? null : t;
|
|
3514
3492
|
}
|
|
3515
|
-
function
|
|
3516
|
-
let r =
|
|
3493
|
+
function oi(e, t, n) {
|
|
3494
|
+
let r = ai(e);
|
|
3517
3495
|
if (r == null) return {
|
|
3518
3496
|
date: "",
|
|
3519
3497
|
time: "",
|
|
@@ -3521,7 +3499,7 @@ function si(e, t, n) {
|
|
|
3521
3499
|
isYesterday: !1,
|
|
3522
3500
|
sortTime: 0
|
|
3523
3501
|
};
|
|
3524
|
-
let i = S(r, t), a = new Date(i), o = `${
|
|
3502
|
+
let i = S(r, t), a = new Date(i), o = `${ii(a.getUTCDate())}/${ii(a.getUTCMonth() + 1)}/${a.getUTCFullYear()}`, s = `${ii(a.getUTCHours())}:${ii(a.getUTCMinutes())}`, c = new Date(n), l = /* @__PURE__ */ new Date(n - 864e5), u = (e, t) => e.getUTCFullYear() === t.getUTCFullYear() && e.getUTCMonth() === t.getUTCMonth() && e.getUTCDate() === t.getUTCDate();
|
|
3525
3503
|
return {
|
|
3526
3504
|
date: o,
|
|
3527
3505
|
time: s,
|
|
@@ -3530,24 +3508,24 @@ function si(e, t, n) {
|
|
|
3530
3508
|
sortTime: r
|
|
3531
3509
|
};
|
|
3532
3510
|
}
|
|
3533
|
-
function
|
|
3534
|
-
let n =
|
|
3511
|
+
function si(e, t) {
|
|
3512
|
+
let n = ai(e);
|
|
3535
3513
|
if (n == null) return {
|
|
3536
3514
|
date: "",
|
|
3537
3515
|
time: ""
|
|
3538
3516
|
};
|
|
3539
3517
|
let r = new Date(S(n, t));
|
|
3540
3518
|
return {
|
|
3541
|
-
date: `${
|
|
3542
|
-
time: `${
|
|
3519
|
+
date: `${ii(r.getUTCDate())}/${ii(r.getUTCMonth() + 1)}`,
|
|
3520
|
+
time: `${ii(r.getUTCHours())}:${ii(r.getUTCMinutes())}`
|
|
3543
3521
|
};
|
|
3544
3522
|
}
|
|
3545
|
-
function
|
|
3523
|
+
function ci(e) {
|
|
3546
3524
|
if (!e) return "";
|
|
3547
|
-
let t = e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), n = RegExp(`\\b(${
|
|
3525
|
+
let t = e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), n = RegExp(`\\b(${ri.join("|")})\\b`, "gi");
|
|
3548
3526
|
return t.replace(n, (e) => `<strong>${e.toUpperCase()}</strong>`);
|
|
3549
3527
|
}
|
|
3550
|
-
function
|
|
3528
|
+
function li(e) {
|
|
3551
3529
|
if (!e) return {
|
|
3552
3530
|
preText: "",
|
|
3553
3531
|
pathPart: "",
|
|
@@ -3564,16 +3542,16 @@ function ui(e) {
|
|
|
3564
3542
|
postText: ""
|
|
3565
3543
|
};
|
|
3566
3544
|
}
|
|
3567
|
-
function
|
|
3545
|
+
function ui(e, t, n) {
|
|
3568
3546
|
if (!e || !e.length) return null;
|
|
3569
|
-
let r = e.filter((e) => e &&
|
|
3547
|
+
let r = e.filter((e) => e && ai(e.timeStamp) != null), i = r.length ? r.reduce((e, t) => Number(ai(t.timeStamp)) > Number(ai(e.timeStamp)) ? t : e, r[0]) : null;
|
|
3570
3548
|
return {
|
|
3571
3549
|
id: "assigned-group",
|
|
3572
3550
|
type: "assigned",
|
|
3573
|
-
...
|
|
3551
|
+
...oi(i ? i.timeStamp : Date.now(), t, n),
|
|
3574
3552
|
count: e.length,
|
|
3575
3553
|
children: e.map((e) => {
|
|
3576
|
-
let r =
|
|
3554
|
+
let r = oi(e.assignedDate, t, n);
|
|
3577
3555
|
return {
|
|
3578
3556
|
title: String(e.title ?? ""),
|
|
3579
3557
|
code: `CP-${e.id}`,
|
|
@@ -3590,9 +3568,9 @@ function di(e, t, n) {
|
|
|
3590
3568
|
unread: e.some((e) => !e.isRead)
|
|
3591
3569
|
};
|
|
3592
3570
|
}
|
|
3593
|
-
function
|
|
3571
|
+
function di(e, t, n, r) {
|
|
3594
3572
|
if (!e || !e.length) return null;
|
|
3595
|
-
let i = e.filter((e) => e && e.startdate != null), a = i.length ? i.reduce((e, t) => Number(t.startdate) < Number(e.startdate) ? t : e, i[0]) : e[0], o =
|
|
3573
|
+
let i = e.filter((e) => e && e.startdate != null), a = i.length ? i.reduce((e, t) => Number(t.startdate) < Number(e.startdate) ? t : e, i[0]) : e[0], o = oi(r, t, n), s = a.startdate == null ? null : si(a.startdate, t);
|
|
3596
3574
|
return {
|
|
3597
3575
|
id: "pending-group",
|
|
3598
3576
|
type: "pending",
|
|
@@ -3600,7 +3578,7 @@ function fi(e, t, n, r) {
|
|
|
3600
3578
|
count: e.length,
|
|
3601
3579
|
expirationDatetime: s ? `${s.date}, ${s.time}hs` : "",
|
|
3602
3580
|
children: e.map((e) => {
|
|
3603
|
-
let n =
|
|
3581
|
+
let n = si(e.startdate, t);
|
|
3604
3582
|
return {
|
|
3605
3583
|
title: String(e.title ?? ""),
|
|
3606
3584
|
code: `CP-${e.id}`,
|
|
@@ -3616,10 +3594,10 @@ function fi(e, t, n, r) {
|
|
|
3616
3594
|
unread: e.some((e) => !e.isRead)
|
|
3617
3595
|
};
|
|
3618
3596
|
}
|
|
3619
|
-
function
|
|
3597
|
+
function fi(e, t, n, r) {
|
|
3620
3598
|
let i = String(e.description ?? ""), a = i.indexOf("("), o = i.indexOf(")"), s, c = "", l = i;
|
|
3621
3599
|
a !== -1 && o !== -1 && o > a ? (s = i.substring(0, a).trim(), c = i.substring(a, o + 1).trim(), l = i.substring(o + 1).trim()) : s = String(e.userName ?? "");
|
|
3622
|
-
let u =
|
|
3600
|
+
let u = li(l), d = oi(e.timeStamp, t, n);
|
|
3623
3601
|
return {
|
|
3624
3602
|
id: `system-${e.actionId ?? "x"}-${r}`,
|
|
3625
3603
|
type: "system",
|
|
@@ -3627,46 +3605,51 @@ function pi(e, t, n, r) {
|
|
|
3627
3605
|
userFullName: s,
|
|
3628
3606
|
userLogin: c,
|
|
3629
3607
|
pathPart: u.pathPart,
|
|
3630
|
-
preTextHtml:
|
|
3631
|
-
postTextHtml:
|
|
3632
|
-
detailHtml:
|
|
3608
|
+
preTextHtml: ci(u.preText),
|
|
3609
|
+
postTextHtml: ci(u.postText),
|
|
3610
|
+
detailHtml: ci(i),
|
|
3633
3611
|
unread: !e.isRead
|
|
3634
3612
|
};
|
|
3635
3613
|
}
|
|
3636
|
-
function
|
|
3614
|
+
function pi(e, t, n, r) {
|
|
3637
3615
|
if (!e || !e.length) return null;
|
|
3638
|
-
let
|
|
3616
|
+
let i = e.filter((e) => e && !(e.id != null && r.has(String(e.id))));
|
|
3617
|
+
if (!i.length) return null;
|
|
3618
|
+
let a = i.filter((e) => ai(e.created_at) != null), o = a.length ? a.reduce((e, t) => Number(ai(t.created_at)) > Number(ai(e.created_at)) ? t : e, a[0]) : null;
|
|
3639
3619
|
return {
|
|
3640
3620
|
id: "editorial-group",
|
|
3641
3621
|
type: "editorialOpportunity",
|
|
3642
|
-
...
|
|
3643
|
-
count:
|
|
3644
|
-
children:
|
|
3622
|
+
...oi(o ? o.created_at : Date.now(), t, n),
|
|
3623
|
+
count: i.length,
|
|
3624
|
+
children: i.map((e) => ({
|
|
3625
|
+
id: e.id == null ? void 0 : String(e.id),
|
|
3645
3626
|
title: String(e.title ?? ""),
|
|
3646
|
-
code: `CP-${e.id}`,
|
|
3647
|
-
matchPercent: e.
|
|
3648
|
-
|
|
3627
|
+
code: e.id == null ? "" : `CP-${e.id}`,
|
|
3628
|
+
matchPercent: e.score,
|
|
3629
|
+
topic: e.topic,
|
|
3649
3630
|
unread: !e.isRead
|
|
3650
3631
|
})),
|
|
3651
|
-
unread:
|
|
3632
|
+
unread: i.some((e) => !e.isRead)
|
|
3652
3633
|
};
|
|
3653
3634
|
}
|
|
3654
|
-
function
|
|
3655
|
-
let n = t.now ?? Date.now(), r = t.gmtRedaction, i = S(n, r), a = [], o =
|
|
3656
|
-
if (
|
|
3657
|
-
let t =
|
|
3658
|
-
t &&
|
|
3659
|
-
let
|
|
3660
|
-
|
|
3661
|
-
|
|
3635
|
+
function mi(e, t = {}) {
|
|
3636
|
+
let n = t.now ?? Date.now(), r = t.gmtRedaction, i = S(n, r), a = new Set(t.snoozedCopilotIds ?? []), o = [];
|
|
3637
|
+
if (e) {
|
|
3638
|
+
let t = pi(e.copilot, r, i, a);
|
|
3639
|
+
t && o.push(t);
|
|
3640
|
+
let s = ui(e.newsTask, r, i);
|
|
3641
|
+
s && o.push(s);
|
|
3642
|
+
let c = di(e.expireTask, r, i, n);
|
|
3643
|
+
c && o.push(c), (e.videos ?? []).forEach((e, t) => {
|
|
3644
|
+
o.push(fi(e, r, i, t));
|
|
3662
3645
|
});
|
|
3663
3646
|
}
|
|
3664
|
-
return
|
|
3647
|
+
return o.sort((e, t) => (t.sortTime || 0) - (e.sortTime || 0)), o;
|
|
3665
3648
|
}
|
|
3666
|
-
function
|
|
3649
|
+
function hi(e, t) {
|
|
3667
3650
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
3668
3651
|
}
|
|
3669
|
-
function
|
|
3652
|
+
function gi(e, t, n) {
|
|
3670
3653
|
let r = e.publication == null ? Number(n) : Number(e.publication);
|
|
3671
3654
|
if (!r) return;
|
|
3672
3655
|
let i = `/admin/planning/${r}`;
|
|
@@ -3677,7 +3660,7 @@ function _i(e, t, n) {
|
|
|
3677
3660
|
});
|
|
3678
3661
|
e.eventId && t.set("eventId", String(e.eventId)), i += `?${t.toString()}`;
|
|
3679
3662
|
}
|
|
3680
|
-
return
|
|
3663
|
+
return hi(t, i);
|
|
3681
3664
|
}
|
|
3682
3665
|
//#endregion
|
|
3683
3666
|
//#region src/lib/components/top-bar/NotificationsMenu.styles.ts
|
|
@@ -4039,79 +4022,60 @@ var J = {
|
|
|
4039
4022
|
"&:hover": { textDecoration: "underline" }
|
|
4040
4023
|
},
|
|
4041
4024
|
sxOpportunitySeeMoreIcon: { fontSize: 18 }
|
|
4042
|
-
},
|
|
4043
|
-
function bi() {
|
|
4044
|
-
if (typeof window > "u") return 0;
|
|
4045
|
-
let e = window.localStorage.getItem(vi), t = e ? parseInt(e, 10) : 0;
|
|
4046
|
-
return Number.isNaN(t) ? 0 : t;
|
|
4047
|
-
}
|
|
4048
|
-
function xi(e) {
|
|
4049
|
-
typeof window > "u" || window.localStorage.setItem(vi, String(e));
|
|
4050
|
-
}
|
|
4051
|
-
var Si = {
|
|
4025
|
+
}, _i = {
|
|
4052
4026
|
assigned: ln,
|
|
4053
4027
|
pending: hn,
|
|
4054
4028
|
system: mn,
|
|
4055
4029
|
editorialOpportunity: un
|
|
4056
4030
|
};
|
|
4057
|
-
function
|
|
4058
|
-
let { t:
|
|
4059
|
-
|
|
4060
|
-
let e = m ?? 0;
|
|
4061
|
-
return g > e ? [] : a ?? ri(e);
|
|
4062
|
-
}, [
|
|
4063
|
-
o,
|
|
4064
|
-
a,
|
|
4065
|
-
m,
|
|
4066
|
-
g
|
|
4067
|
-
]), x = P(() => hi(t, {
|
|
4068
|
-
now: m ?? void 0,
|
|
4031
|
+
function vi({ unreadCount: e, notificationsData: t, masterBaseUrl: n, currentPublicationId: r, gmtRedaction: i, copilotSuggestionsHref: a, onEditorialSeeMore: o, onEditorialRemindLater: s }) {
|
|
4032
|
+
let { t: c } = U(), [l, u] = F(null), [d, f] = F({}), [p, m] = F(null), [h, g] = F(/* @__PURE__ */ new Set()), _ = !!l, v = e > 0 ? e : void 0, y = P(() => mi(t, {
|
|
4033
|
+
now: p ?? void 0,
|
|
4069
4034
|
gmtRedaction: i,
|
|
4070
|
-
|
|
4035
|
+
snoozedCopilotIds: h
|
|
4071
4036
|
}), [
|
|
4072
4037
|
t,
|
|
4073
4038
|
i,
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
]),
|
|
4077
|
-
|
|
4078
|
-
},
|
|
4039
|
+
p,
|
|
4040
|
+
h
|
|
4041
|
+
]), b = (e) => {
|
|
4042
|
+
m(Date.now()), u(e.currentTarget);
|
|
4043
|
+
}, x = () => u(null), S = (e) => f((t) => ({
|
|
4079
4044
|
...t,
|
|
4080
4045
|
[e]: !t[e]
|
|
4081
|
-
})),
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
let t = e.isToday ? l.notificationsMenu("today") : e.isYesterday ? l.notificationsMenu("yesterday") : e.date;
|
|
4046
|
+
})), C = (e) => {
|
|
4047
|
+
e.length && (g((t) => new Set([...t, ...e])), s?.(e));
|
|
4048
|
+
}, w = () => {
|
|
4049
|
+
a || o?.(), x();
|
|
4050
|
+
}, T = (e) => {
|
|
4051
|
+
let t = e.isToday ? c.notificationsMenu("today") : e.isYesterday ? c.notificationsMenu("yesterday") : e.date;
|
|
4088
4052
|
return t ? e.time ? `${t}, ${e.time}` : t : e.time;
|
|
4089
4053
|
};
|
|
4090
4054
|
return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(Qe, {
|
|
4091
|
-
title:
|
|
4055
|
+
title: c.notificationsMenu("title"),
|
|
4092
4056
|
children: /* @__PURE__ */ L(B, {
|
|
4093
|
-
"aria-label":
|
|
4057
|
+
"aria-label": c.notificationsMenu("ariaLabel"),
|
|
4094
4058
|
"aria-haspopup": "dialog",
|
|
4095
|
-
"aria-expanded":
|
|
4096
|
-
onClick:
|
|
4059
|
+
"aria-expanded": _,
|
|
4060
|
+
onClick: b,
|
|
4097
4061
|
"data-testid": "dropdown-toggle-notifications",
|
|
4098
4062
|
sx: q.sxActionIcon,
|
|
4099
4063
|
children: /* @__PURE__ */ L(_n, {
|
|
4100
|
-
badgeContent:
|
|
4064
|
+
badgeContent: v,
|
|
4101
4065
|
color: "error",
|
|
4102
4066
|
"data-testid": "badge-notifications-count",
|
|
4103
|
-
sx: [q.sxBadge, ...
|
|
4067
|
+
sx: [q.sxBadge, ...v ? [J.sxBadgePulse] : []],
|
|
4104
4068
|
children: /* @__PURE__ */ L(St, { sx: q.sxActionIconGlyph })
|
|
4105
4069
|
})
|
|
4106
4070
|
})
|
|
4107
4071
|
}), /* @__PURE__ */ L(bn, {
|
|
4108
|
-
open:
|
|
4109
|
-
onClose:
|
|
4072
|
+
open: _,
|
|
4073
|
+
onClose: x,
|
|
4110
4074
|
closeAfterTransition: !0,
|
|
4111
|
-
"aria-label":
|
|
4075
|
+
"aria-label": c.notificationsMenu("title"),
|
|
4112
4076
|
slotProps: { backdrop: { sx: J.sxBackdrop } },
|
|
4113
4077
|
children: /* @__PURE__ */ L(yn, {
|
|
4114
|
-
in:
|
|
4078
|
+
in: _,
|
|
4115
4079
|
children: /* @__PURE__ */ R(z, {
|
|
4116
4080
|
"data-testid": "modal-notifications",
|
|
4117
4081
|
sx: J.sxPanel,
|
|
@@ -4120,46 +4084,46 @@ function Ci({ unreadCount: e, notificationsData: t, masterBaseUrl: n, currentPub
|
|
|
4120
4084
|
children: [/* @__PURE__ */ L(V, {
|
|
4121
4085
|
variant: "subtitle2",
|
|
4122
4086
|
sx: J.sxHeaderTitle,
|
|
4123
|
-
children:
|
|
4087
|
+
children: c.notificationsMenu("title")
|
|
4124
4088
|
}), /* @__PURE__ */ L(B, {
|
|
4125
4089
|
size: "small",
|
|
4126
|
-
"aria-label":
|
|
4127
|
-
onClick:
|
|
4090
|
+
"aria-label": c.notificationsMenu("close"),
|
|
4091
|
+
onClick: x,
|
|
4128
4092
|
"data-testid": "icon-btn-notifications-close",
|
|
4129
4093
|
sx: J.sxCloseButton,
|
|
4130
4094
|
children: /* @__PURE__ */ L(fn, { fontSize: "small" })
|
|
4131
4095
|
})]
|
|
4132
|
-
}),
|
|
4096
|
+
}), y.length === 0 ? /* @__PURE__ */ L(z, {
|
|
4133
4097
|
sx: J.sxEmpty,
|
|
4134
4098
|
children: /* @__PURE__ */ L(V, {
|
|
4135
4099
|
variant: "body2",
|
|
4136
|
-
children:
|
|
4100
|
+
children: c.notificationsMenu("empty")
|
|
4137
4101
|
})
|
|
4138
4102
|
}) : /* @__PURE__ */ L(z, {
|
|
4139
4103
|
sx: J.sxScroll,
|
|
4140
|
-
children:
|
|
4104
|
+
children: y.map((e) => /* @__PURE__ */ R(z, {
|
|
4141
4105
|
"data-testid": `dropdown-item-${E(e.id)}`,
|
|
4142
|
-
children: [
|
|
4106
|
+
children: [T(e) ? /* @__PURE__ */ L(V, {
|
|
4143
4107
|
component: "div",
|
|
4144
4108
|
variant: "caption",
|
|
4145
4109
|
sx: J.sxTimestamp,
|
|
4146
|
-
children:
|
|
4147
|
-
}) : null, e.type === "editorialOpportunity" ? /* @__PURE__ */ L(
|
|
4110
|
+
children: T(e)
|
|
4111
|
+
}) : null, e.type === "editorialOpportunity" ? /* @__PURE__ */ L(yi, {
|
|
4148
4112
|
item: e,
|
|
4149
|
-
open: !!
|
|
4150
|
-
onToggle: () =>
|
|
4151
|
-
onRemindLater:
|
|
4152
|
-
onSeeMore:
|
|
4153
|
-
seeMoreHref:
|
|
4154
|
-
t:
|
|
4155
|
-
}) : e.type === "system" ? /* @__PURE__ */ L(
|
|
4113
|
+
open: !!d[e.id],
|
|
4114
|
+
onToggle: () => S(e.id),
|
|
4115
|
+
onRemindLater: C,
|
|
4116
|
+
onSeeMore: w,
|
|
4117
|
+
seeMoreHref: a,
|
|
4118
|
+
t: c
|
|
4119
|
+
}) : e.type === "system" ? /* @__PURE__ */ L(bi, { item: e }) : /* @__PURE__ */ L(xi, {
|
|
4156
4120
|
item: e,
|
|
4157
|
-
open: !!
|
|
4158
|
-
onToggle: () =>
|
|
4121
|
+
open: !!d[e.id],
|
|
4122
|
+
onToggle: () => S(e.id),
|
|
4159
4123
|
masterBaseUrl: n,
|
|
4160
4124
|
currentPublicationId: r,
|
|
4161
|
-
onNavigate:
|
|
4162
|
-
t:
|
|
4125
|
+
onNavigate: x,
|
|
4126
|
+
t: c
|
|
4163
4127
|
})]
|
|
4164
4128
|
}, e.id))
|
|
4165
4129
|
})]
|
|
@@ -4167,8 +4131,15 @@ function Ci({ unreadCount: e, notificationsData: t, masterBaseUrl: n, currentPub
|
|
|
4167
4131
|
})
|
|
4168
4132
|
})] });
|
|
4169
4133
|
}
|
|
4170
|
-
function
|
|
4171
|
-
let s = e.children ?? [], [c, ...l] = s, u = e.count ?? s.length
|
|
4134
|
+
function yi({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, seeMoreHref: a, t: o }) {
|
|
4135
|
+
let s = e.children ?? [], [c, ...l] = s, u = e.count ?? s.length, d = !!a && /^https?:\/\//i.test(a), f = a ? {
|
|
4136
|
+
href: a,
|
|
4137
|
+
onClick: i,
|
|
4138
|
+
...d ? {
|
|
4139
|
+
target: "_blank",
|
|
4140
|
+
rel: "noopener noreferrer"
|
|
4141
|
+
} : {}
|
|
4142
|
+
} : {}, p = () => r(s.map((e) => e.id).filter((e) => !!e));
|
|
4172
4143
|
return /* @__PURE__ */ R(z, {
|
|
4173
4144
|
sx: J.sxOpportunityCard,
|
|
4174
4145
|
children: [
|
|
@@ -4212,30 +4183,32 @@ function wi({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4212
4183
|
}),
|
|
4213
4184
|
c ? /* @__PURE__ */ R(z, {
|
|
4214
4185
|
component: a ? "a" : "div",
|
|
4215
|
-
...
|
|
4216
|
-
|
|
4217
|
-
target: "_blank",
|
|
4218
|
-
rel: "noopener noreferrer",
|
|
4219
|
-
onClick: i
|
|
4220
|
-
} : {},
|
|
4221
|
-
"data-testid": `link-opportunity-${E(c.code)}`,
|
|
4186
|
+
...f,
|
|
4187
|
+
"data-testid": `link-opportunity-${E(c.id || c.code || "top")}`,
|
|
4222
4188
|
sx: J.sxOpportunityTopic(!0, !!a),
|
|
4223
|
-
children: [
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4189
|
+
children: [
|
|
4190
|
+
/* @__PURE__ */ R(V, {
|
|
4191
|
+
component: "div",
|
|
4192
|
+
variant: "caption",
|
|
4193
|
+
sx: J.sxOpportunityMeta(!0),
|
|
4194
|
+
children: [/* @__PURE__ */ L(gn, { sx: J.sxOpportunityTrendingIcon }), /* @__PURE__ */ R("span", { children: [
|
|
4195
|
+
o.notificationsMenu("editorialOpportunityTop"),
|
|
4196
|
+
" · ",
|
|
4197
|
+
c.matchPercent,
|
|
4198
|
+
"%",
|
|
4199
|
+
" ",
|
|
4200
|
+
o.notificationsMenu("editorialOpportunityMatch")
|
|
4201
|
+
] })]
|
|
4202
|
+
}),
|
|
4203
|
+
/* @__PURE__ */ L(z, {
|
|
4204
|
+
sx: J.sxOpportunityTopicTitle,
|
|
4205
|
+
children: c.title
|
|
4206
|
+
}),
|
|
4207
|
+
c.topic ? /* @__PURE__ */ L(z, {
|
|
4208
|
+
sx: J.sxOpportunityCode,
|
|
4209
|
+
children: c.topic
|
|
4210
|
+
}) : null
|
|
4211
|
+
]
|
|
4239
4212
|
}) : null,
|
|
4240
4213
|
/* @__PURE__ */ L(vn, {
|
|
4241
4214
|
in: t,
|
|
@@ -4248,40 +4221,27 @@ function wi({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4248
4221
|
},
|
|
4249
4222
|
children: l.map((t, n) => /* @__PURE__ */ R(z, {
|
|
4250
4223
|
component: a ? "a" : "div",
|
|
4251
|
-
...
|
|
4252
|
-
|
|
4253
|
-
target: "_blank",
|
|
4254
|
-
rel: "noopener noreferrer",
|
|
4255
|
-
onClick: i
|
|
4256
|
-
} : {},
|
|
4257
|
-
"data-testid": `link-opportunity-${E(t.code)}`,
|
|
4224
|
+
...f,
|
|
4225
|
+
"data-testid": `link-opportunity-${E(t.id || t.code || String(n + 1))}`,
|
|
4258
4226
|
sx: J.sxOpportunityTopic(!1, !!a),
|
|
4259
4227
|
children: [
|
|
4260
|
-
/* @__PURE__ */
|
|
4228
|
+
/* @__PURE__ */ L(V, {
|
|
4261
4229
|
component: "div",
|
|
4262
4230
|
variant: "caption",
|
|
4263
4231
|
sx: J.sxOpportunityMeta(!1),
|
|
4264
|
-
children:
|
|
4232
|
+
children: /* @__PURE__ */ R("span", { children: [
|
|
4265
4233
|
t.matchPercent,
|
|
4266
4234
|
"% ",
|
|
4267
4235
|
o.notificationsMenu("editorialOpportunityMatch")
|
|
4268
|
-
] })
|
|
4269
|
-
component: "span",
|
|
4270
|
-
sx: J.sxOpportunityMetaDot,
|
|
4271
|
-
children: "·"
|
|
4272
|
-
}), /* @__PURE__ */ R(z, {
|
|
4273
|
-
component: "span",
|
|
4274
|
-
sx: J.sxOpportunityTrending,
|
|
4275
|
-
children: [/* @__PURE__ */ L(gn, { sx: J.sxOpportunityTrendingIcon }), o.notificationsMenu("editorialOpportunityTrending")]
|
|
4276
|
-
})] }) : null]
|
|
4236
|
+
] })
|
|
4277
4237
|
}),
|
|
4278
4238
|
/* @__PURE__ */ L(z, {
|
|
4279
4239
|
sx: J.sxOpportunityTopicTitle,
|
|
4280
4240
|
children: t.title
|
|
4281
4241
|
}),
|
|
4282
|
-
t.
|
|
4242
|
+
t.topic ? /* @__PURE__ */ L(z, {
|
|
4283
4243
|
sx: J.sxOpportunityCode,
|
|
4284
|
-
children: t.
|
|
4244
|
+
children: t.topic
|
|
4285
4245
|
}) : null
|
|
4286
4246
|
]
|
|
4287
4247
|
}, `${e.id}-${n + 1}`))
|
|
@@ -4300,7 +4260,7 @@ function wi({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4300
4260
|
children: [/* @__PURE__ */ L(z, {
|
|
4301
4261
|
component: "button",
|
|
4302
4262
|
type: "button",
|
|
4303
|
-
onClick:
|
|
4263
|
+
onClick: p,
|
|
4304
4264
|
"data-testid": "btn-opportunity-remind-later",
|
|
4305
4265
|
sx: J.sxOpportunityRemind,
|
|
4306
4266
|
children: o.notificationsMenu("editorialOpportunityRemindLater")
|
|
@@ -4308,10 +4268,15 @@ function wi({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4308
4268
|
component: a ? "a" : "button",
|
|
4309
4269
|
...a ? {
|
|
4310
4270
|
href: a,
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4271
|
+
onClick: i,
|
|
4272
|
+
...d ? {
|
|
4273
|
+
target: "_blank",
|
|
4274
|
+
rel: "noopener noreferrer"
|
|
4275
|
+
} : {}
|
|
4276
|
+
} : {
|
|
4277
|
+
type: "button",
|
|
4278
|
+
onClick: i
|
|
4279
|
+
},
|
|
4315
4280
|
"data-testid": "btn-opportunity-see-more",
|
|
4316
4281
|
sx: J.sxOpportunitySeeMore,
|
|
4317
4282
|
children: [o.notificationsMenu("editorialOpportunitySeeMore"), /* @__PURE__ */ L(cn, { sx: J.sxOpportunitySeeMoreIcon })]
|
|
@@ -4320,7 +4285,7 @@ function wi({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4320
4285
|
]
|
|
4321
4286
|
});
|
|
4322
4287
|
}
|
|
4323
|
-
function
|
|
4288
|
+
function bi({ item: e }) {
|
|
4324
4289
|
let t = e.userFullName || e.userLogin || e.preTextHtml || e.pathPart || e.postTextHtml;
|
|
4325
4290
|
return /* @__PURE__ */ R(z, {
|
|
4326
4291
|
sx: J.sxRow(!1),
|
|
@@ -4362,8 +4327,8 @@ function Ti({ item: e }) {
|
|
|
4362
4327
|
})]
|
|
4363
4328
|
});
|
|
4364
4329
|
}
|
|
4365
|
-
function
|
|
4366
|
-
let s =
|
|
4330
|
+
function xi({ item: e, open: t, onToggle: n, masterBaseUrl: r, currentPublicationId: i, onNavigate: a, t: o }) {
|
|
4331
|
+
let s = _i[e.type], c = e.type === "assigned" ? o.notificationsMenu("assignedBefore") : o.notificationsMenu("pendingBefore"), l = e.type === "assigned" ? o.notificationsMenu("assignedAfter") : o.notificationsMenu("pendingAfter");
|
|
4367
4332
|
return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ R(z, {
|
|
4368
4333
|
component: "button",
|
|
4369
4334
|
type: "button",
|
|
@@ -4404,7 +4369,7 @@ function Ei({ item: e, open: t, onToggle: n, masterBaseUrl: r, currentPublicatio
|
|
|
4404
4369
|
unmountOnExit: !0,
|
|
4405
4370
|
children: /* @__PURE__ */ L(z, {
|
|
4406
4371
|
sx: J.sxTopics,
|
|
4407
|
-
children: (e.children ?? []).map((t, n) => /* @__PURE__ */ L(
|
|
4372
|
+
children: (e.children ?? []).map((t, n) => /* @__PURE__ */ L(Si, {
|
|
4408
4373
|
topic: t,
|
|
4409
4374
|
type: e.type,
|
|
4410
4375
|
masterBaseUrl: r,
|
|
@@ -4415,8 +4380,8 @@ function Ei({ item: e, open: t, onToggle: n, masterBaseUrl: r, currentPublicatio
|
|
|
4415
4380
|
})
|
|
4416
4381
|
})] });
|
|
4417
4382
|
}
|
|
4418
|
-
function
|
|
4419
|
-
let o =
|
|
4383
|
+
function Si({ topic: e, type: t, masterBaseUrl: n, currentPublicationId: r, onNavigate: i, t: a }) {
|
|
4384
|
+
let o = gi(e, n, r), s = e.assignedToday ? a.notificationsMenu("assignedToday") : e.assignedYesterday ? a.notificationsMenu("assignedYesterday") : `${a.notificationsMenu("assignedOn")} ${e.assignedDate ?? ""}`;
|
|
4420
4385
|
return /* @__PURE__ */ R(z, {
|
|
4421
4386
|
component: o ? "a" : "div",
|
|
4422
4387
|
href: o,
|
|
@@ -4548,7 +4513,7 @@ var Y = {
|
|
|
4548
4513
|
};
|
|
4549
4514
|
//#endregion
|
|
4550
4515
|
//#region src/lib/components/dropdowns/SimpleDropdown.tsx
|
|
4551
|
-
function
|
|
4516
|
+
function Ci({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i, minWidth: a = 220, anchorOrigin: o = {
|
|
4552
4517
|
vertical: "bottom",
|
|
4553
4518
|
horizontal: "right"
|
|
4554
4519
|
}, transformOrigin: s = {
|
|
@@ -4641,7 +4606,7 @@ function Oi({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4641
4606
|
}
|
|
4642
4607
|
//#endregion
|
|
4643
4608
|
//#region src/lib/components/top-bar/previewMenu.config.ts
|
|
4644
|
-
var
|
|
4609
|
+
var wi = [
|
|
4645
4610
|
{
|
|
4646
4611
|
id: "desktop",
|
|
4647
4612
|
labelKey: "desktop",
|
|
@@ -4662,7 +4627,7 @@ var ki = [
|
|
|
4662
4627
|
];
|
|
4663
4628
|
//#endregion
|
|
4664
4629
|
//#region src/lib/components/top-bar/PreviewMenu.tsx
|
|
4665
|
-
function
|
|
4630
|
+
function Ti({ formats: e = wi, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
4666
4631
|
let { t: i } = U(), a = i.topBar("preview"), o = P(() => e.map((e) => ({
|
|
4667
4632
|
id: e.id,
|
|
4668
4633
|
label: e.labelKey ? i.previewMenu(e.labelKey) : e.label,
|
|
@@ -4689,7 +4654,7 @@ function Ai({ formats: e = ki, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
|
4689
4654
|
r,
|
|
4690
4655
|
i
|
|
4691
4656
|
]);
|
|
4692
|
-
return e.length === 0 ? null : /* @__PURE__ */ L(
|
|
4657
|
+
return e.length === 0 ? null : /* @__PURE__ */ L(Ci, {
|
|
4693
4658
|
options: o,
|
|
4694
4659
|
anchorOrigin: {
|
|
4695
4660
|
vertical: "bottom",
|
|
@@ -4715,32 +4680,32 @@ function Ai({ formats: e = ki, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
|
4715
4680
|
}
|
|
4716
4681
|
//#endregion
|
|
4717
4682
|
//#region src/lib/utils/cms-asset.ts
|
|
4718
|
-
var
|
|
4719
|
-
function
|
|
4683
|
+
var Ei = "https://dev.cms-medios.com";
|
|
4684
|
+
function Di(e) {
|
|
4720
4685
|
let t = e?.trim();
|
|
4721
|
-
return t ? t.replace(/\/$/, "") :
|
|
4686
|
+
return t ? t.replace(/\/$/, "") : Ei;
|
|
4722
4687
|
}
|
|
4723
|
-
function
|
|
4688
|
+
function Oi(e, t) {
|
|
4724
4689
|
if (!e) return "";
|
|
4725
4690
|
if (e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
4726
4691
|
let n = e.startsWith("/") ? e : `/${e}`;
|
|
4727
|
-
return `${
|
|
4692
|
+
return `${Di(t)}${n}`;
|
|
4728
4693
|
}
|
|
4729
4694
|
//#endregion
|
|
4730
4695
|
//#region src/lib/utils/profile-avatar.ts
|
|
4731
|
-
var
|
|
4732
|
-
function
|
|
4733
|
-
let { image: n } = e, r = t?.fallbackAvatar ??
|
|
4734
|
-
return !n || n ===
|
|
4696
|
+
var ki = "noPicture", Ai = "/topbar_profile.png";
|
|
4697
|
+
function ji(e, t) {
|
|
4698
|
+
let { image: n } = e, r = t?.fallbackAvatar ?? Ai;
|
|
4699
|
+
return !n || n === ki ? r : Oi(n, t?.cmsOrigin);
|
|
4735
4700
|
}
|
|
4736
|
-
function
|
|
4701
|
+
function Mi(e) {
|
|
4737
4702
|
if (e.fullName?.trim()) return e.fullName.trim();
|
|
4738
4703
|
let t = [e.firstName, e.lastName].filter(Boolean);
|
|
4739
4704
|
return t.length > 0 ? t.join(" ") : e.userName;
|
|
4740
4705
|
}
|
|
4741
4706
|
//#endregion
|
|
4742
4707
|
//#region src/lib/components/user-avatar/UserAvatar.styles.ts
|
|
4743
|
-
var
|
|
4708
|
+
var Ni = .58, Pi = {
|
|
4744
4709
|
sxAvatar: (e, t) => ({
|
|
4745
4710
|
width: e,
|
|
4746
4711
|
height: e,
|
|
@@ -4751,39 +4716,39 @@ var Ri = .58, zi = {
|
|
|
4751
4716
|
cursor: t ? "pointer" : "default"
|
|
4752
4717
|
}),
|
|
4753
4718
|
sxIcon: (e) => ({
|
|
4754
|
-
fontSize: Math.round(e *
|
|
4719
|
+
fontSize: Math.round(e * Ni),
|
|
4755
4720
|
color: O.onSecondaryContainer
|
|
4756
4721
|
})
|
|
4757
|
-
},
|
|
4758
|
-
function
|
|
4722
|
+
}, Fi = We(null);
|
|
4723
|
+
function Ii({ initialPhoto: e = null, children: t }) {
|
|
4759
4724
|
let [n, r] = F(e), [i, a] = F(e);
|
|
4760
4725
|
i !== e && (a(e), r(e));
|
|
4761
4726
|
let o = P(() => ({
|
|
4762
4727
|
photo: n,
|
|
4763
4728
|
setPhoto: r
|
|
4764
4729
|
}), [n]);
|
|
4765
|
-
return /* @__PURE__ */ L(
|
|
4730
|
+
return /* @__PURE__ */ L(Fi.Provider, {
|
|
4766
4731
|
value: o,
|
|
4767
4732
|
children: t
|
|
4768
4733
|
});
|
|
4769
4734
|
}
|
|
4770
4735
|
//#endregion
|
|
4771
4736
|
//#region src/lib/components/user-avatar/useCurrentUserPhoto.ts
|
|
4772
|
-
function
|
|
4773
|
-
return Je(
|
|
4737
|
+
function Li() {
|
|
4738
|
+
return Je(Fi);
|
|
4774
4739
|
}
|
|
4775
4740
|
//#endregion
|
|
4776
4741
|
//#region src/lib/components/user-avatar/UserAvatar.tsx
|
|
4777
|
-
var
|
|
4778
|
-
function
|
|
4779
|
-
let { t: u } = U(), d =
|
|
4742
|
+
var Ri = "noPicture";
|
|
4743
|
+
function zi({ photo: e, description: t, username: n, size: r = 32, showTooltip: i = !0, cmsOrigin: a, crossOrigin: o, isCurrentUser: s = !1, onClick: c, testId: l }) {
|
|
4744
|
+
let { t: u } = U(), d = Li(), f = s && d ? d.photo : e, p = P(() => !f || f === Ri ? "" : Oi(f, a), [f, a]), m = t?.trim() || n?.trim() || "", h = m || u.userAvatar("unknownUser"), g = m || u.userAvatar("alt"), _ = /* @__PURE__ */ L(En, {
|
|
4780
4745
|
src: p || void 0,
|
|
4781
4746
|
alt: g,
|
|
4782
4747
|
onClick: c,
|
|
4783
4748
|
"data-testid": l ? `avatar-${l}` : void 0,
|
|
4784
4749
|
slotProps: o ? { img: { crossOrigin: o } } : void 0,
|
|
4785
|
-
sx:
|
|
4786
|
-
children: /* @__PURE__ */ L(Tn, { sx:
|
|
4750
|
+
sx: Pi.sxAvatar(r, !!c),
|
|
4751
|
+
children: /* @__PURE__ */ L(Tn, { sx: Pi.sxIcon(r) })
|
|
4787
4752
|
});
|
|
4788
4753
|
return i ? /* @__PURE__ */ L(Qe, {
|
|
4789
4754
|
title: h,
|
|
@@ -4793,11 +4758,11 @@ function Wi({ photo: e, description: t, username: n, size: r = 32, showTooltip:
|
|
|
4793
4758
|
}
|
|
4794
4759
|
//#endregion
|
|
4795
4760
|
//#region src/lib/components/top-bar/ProfileMenu.tsx
|
|
4796
|
-
var
|
|
4797
|
-
function
|
|
4761
|
+
var Bi = "/admin/user_profile/user-settings", Vi = "/system/login";
|
|
4762
|
+
function Hi(e, t) {
|
|
4798
4763
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
4799
4764
|
}
|
|
4800
|
-
function
|
|
4765
|
+
function Ui({ label: e, icon: t, onSelect: n, href: r, external: i, danger: a, testId: o }) {
|
|
4801
4766
|
let s = a ? O.danger : O.textStrong;
|
|
4802
4767
|
return /* @__PURE__ */ R(ft, {
|
|
4803
4768
|
onClick: n,
|
|
@@ -4824,17 +4789,17 @@ function Ji({ label: e, icon: t, onSelect: n, href: r, external: i, danger: a, t
|
|
|
4824
4789
|
})]
|
|
4825
4790
|
});
|
|
4826
4791
|
}
|
|
4827
|
-
function
|
|
4828
|
-
let { t: r } = U(), [i, a] = F(null), o = !!i, s =
|
|
4792
|
+
function Wi({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
4793
|
+
let { t: r } = U(), [i, a] = F(null), o = !!i, s = Mi(e), c = P(() => [{
|
|
4829
4794
|
id: "profile",
|
|
4830
4795
|
labelKey: "myProfile",
|
|
4831
4796
|
icon: Tn,
|
|
4832
|
-
href:
|
|
4797
|
+
href: Hi(n, Bi)
|
|
4833
4798
|
}, {
|
|
4834
4799
|
id: "webmaster",
|
|
4835
4800
|
labelKey: "webmasterView",
|
|
4836
4801
|
icon: Cn,
|
|
4837
|
-
href:
|
|
4802
|
+
href: Hi(n, Vi),
|
|
4838
4803
|
external: !0
|
|
4839
4804
|
}], [n]), l = P(() => ({
|
|
4840
4805
|
id: "sign-off",
|
|
@@ -4852,7 +4817,7 @@ function Yi({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
|
4852
4817
|
onClick: (e) => a(e.currentTarget),
|
|
4853
4818
|
"data-testid": "dropdown-toggle-profile",
|
|
4854
4819
|
sx: q.sxProfileButton,
|
|
4855
|
-
children: /* @__PURE__ */ L(
|
|
4820
|
+
children: /* @__PURE__ */ L(zi, {
|
|
4856
4821
|
photo: e.image,
|
|
4857
4822
|
description: s,
|
|
4858
4823
|
username: e.userName,
|
|
@@ -4893,7 +4858,7 @@ function Yi({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
|
4893
4858
|
borderBottom: 1,
|
|
4894
4859
|
borderColor: "divider"
|
|
4895
4860
|
},
|
|
4896
|
-
children: [/* @__PURE__ */ L(
|
|
4861
|
+
children: [/* @__PURE__ */ L(zi, {
|
|
4897
4862
|
photo: e.image,
|
|
4898
4863
|
description: s,
|
|
4899
4864
|
username: e.userName,
|
|
@@ -4918,7 +4883,7 @@ function Yi({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
|
4918
4883
|
})]
|
|
4919
4884
|
})]
|
|
4920
4885
|
}),
|
|
4921
|
-
c.map((e) => /* @__PURE__ */ L(
|
|
4886
|
+
c.map((e) => /* @__PURE__ */ L(Ui, {
|
|
4922
4887
|
label: r.profileMenu(e.labelKey),
|
|
4923
4888
|
icon: e.icon,
|
|
4924
4889
|
href: e.href,
|
|
@@ -4927,7 +4892,7 @@ function Yi({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
|
4927
4892
|
onSelect: () => d(e.id)
|
|
4928
4893
|
}, e.id)),
|
|
4929
4894
|
/* @__PURE__ */ L(tn, { sx: q.sxProfileMenuDivider }),
|
|
4930
|
-
/* @__PURE__ */ L(
|
|
4895
|
+
/* @__PURE__ */ L(Ui, {
|
|
4931
4896
|
label: r.profileMenu(l.labelKey),
|
|
4932
4897
|
icon: l.icon,
|
|
4933
4898
|
testId: "dropdown-item-sign-off",
|
|
@@ -4939,11 +4904,11 @@ function Yi({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
|
4939
4904
|
}
|
|
4940
4905
|
//#endregion
|
|
4941
4906
|
//#region src/lib/components/top-bar/TopBarClock.tsx
|
|
4942
|
-
function
|
|
4907
|
+
function Gi(e) {
|
|
4943
4908
|
let t = (e ?? "").trim();
|
|
4944
4909
|
return t ? `GMT${/^[+-]/.test(t) ? t : `+${t}`}` : "GMT";
|
|
4945
4910
|
}
|
|
4946
|
-
function
|
|
4911
|
+
function Ki({ gmtRedaction: e, timeFormat: t }) {
|
|
4947
4912
|
let { locale: n, t: r } = U(), [i, a] = F(null);
|
|
4948
4913
|
if (Ye(() => {
|
|
4949
4914
|
a(Date.now());
|
|
@@ -4966,17 +4931,17 @@ function Zi({ gmtRedaction: e, timeFormat: t }) {
|
|
|
4966
4931
|
}), /* @__PURE__ */ L(V, {
|
|
4967
4932
|
component: "span",
|
|
4968
4933
|
sx: q.sxClockMeta,
|
|
4969
|
-
children: `${r.topBar("publication")} · ${
|
|
4934
|
+
children: `${r.topBar("publication")} · ${Gi(e)}`
|
|
4970
4935
|
})]
|
|
4971
4936
|
})]
|
|
4972
4937
|
});
|
|
4973
4938
|
}
|
|
4974
4939
|
//#endregion
|
|
4975
4940
|
//#region src/lib/components/top-bar/TopBar.tsx
|
|
4976
|
-
function
|
|
4941
|
+
function qi(e, t) {
|
|
4977
4942
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
4978
4943
|
}
|
|
4979
|
-
function
|
|
4944
|
+
function Ji() {
|
|
4980
4945
|
return /* @__PURE__ */ L(z, {
|
|
4981
4946
|
component: "span",
|
|
4982
4947
|
role: "separator",
|
|
@@ -4984,8 +4949,8 @@ function $i() {
|
|
|
4984
4949
|
sx: q.sxDivider
|
|
4985
4950
|
});
|
|
4986
4951
|
}
|
|
4987
|
-
function
|
|
4988
|
-
let { t:
|
|
4952
|
+
function Yi({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notificationsData: i, copilotSuggestionsHref: a, onEditorialSeeMore: o, onEditorialRemindLater: s, profile: c, primaryLogo: l, brandLogo: u, selectedPublicationId: f, getPublicationHref: p, resolvePublicationImageUrl: m, profileAvatarOptions: h, legacyBaseUrl: g, cmsBaseUrl: _, legacySession: v, newContentGroups: y, previewFormats: b, operationPermissions: x, isAdmin: S, onNewContentSelect: C, onPreviewSelect: w }) {
|
|
4953
|
+
let { t: T, locale: E } = U(), D = f ? d(e, f) : void 0, ee = T.topBar("help"), te = _ ?? g, O = `/system/modules/com.tfsla.diario.help/${E}/index.html`;
|
|
4989
4954
|
return /* @__PURE__ */ L(Kt, {
|
|
4990
4955
|
position: "static",
|
|
4991
4956
|
elevation: 0,
|
|
@@ -4996,7 +4961,7 @@ function ea({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
4996
4961
|
sx: q.sxToolbar,
|
|
4997
4962
|
children: [
|
|
4998
4963
|
n && /* @__PURE__ */ L(B, {
|
|
4999
|
-
"aria-label": t ?
|
|
4964
|
+
"aria-label": t ? T.topBar("closeSidebar") : T.topBar("openSidebar"),
|
|
5000
4965
|
"aria-expanded": t,
|
|
5001
4966
|
onClick: n,
|
|
5002
4967
|
sx: q.sxMenuButton,
|
|
@@ -5005,7 +4970,7 @@ function ea({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5005
4970
|
}),
|
|
5006
4971
|
/* @__PURE__ */ L(z, {
|
|
5007
4972
|
sx: q.sxLogoBox,
|
|
5008
|
-
children:
|
|
4973
|
+
children: l
|
|
5009
4974
|
}),
|
|
5010
4975
|
/* @__PURE__ */ L(z, { sx: { flex: 1 } }),
|
|
5011
4976
|
/* @__PURE__ */ R(z, {
|
|
@@ -5015,45 +4980,44 @@ function ea({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5015
4980
|
sx: q.sxIconActionsRow,
|
|
5016
4981
|
children: [
|
|
5017
4982
|
/* @__PURE__ */ L(ni, {
|
|
5018
|
-
groups:
|
|
5019
|
-
operationPermissions:
|
|
5020
|
-
isAdmin:
|
|
5021
|
-
legacyBaseUrl:
|
|
5022
|
-
onSelect:
|
|
4983
|
+
groups: y,
|
|
4984
|
+
operationPermissions: x,
|
|
4985
|
+
isAdmin: S,
|
|
4986
|
+
legacyBaseUrl: g,
|
|
4987
|
+
onSelect: C
|
|
5023
4988
|
}),
|
|
5024
4989
|
/* @__PURE__ */ L(Xr, {}),
|
|
5025
|
-
/* @__PURE__ */ L(
|
|
4990
|
+
/* @__PURE__ */ L(vi, {
|
|
5026
4991
|
unreadCount: r,
|
|
5027
4992
|
notificationsData: i,
|
|
5028
|
-
masterBaseUrl:
|
|
4993
|
+
masterBaseUrl: g,
|
|
5029
4994
|
currentPublicationId: D?.id,
|
|
5030
4995
|
gmtRedaction: D?.gmtRedaction,
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
onEditorialSeeMore: c
|
|
4996
|
+
copilotSuggestionsHref: a,
|
|
4997
|
+
onEditorialSeeMore: o,
|
|
4998
|
+
onEditorialRemindLater: s
|
|
5035
4999
|
}),
|
|
5036
|
-
/* @__PURE__ */ L(
|
|
5037
|
-
formats:
|
|
5038
|
-
cmsBaseUrl:
|
|
5039
|
-
legacySession:
|
|
5040
|
-
onSelect:
|
|
5000
|
+
/* @__PURE__ */ L(Ti, {
|
|
5001
|
+
formats: b,
|
|
5002
|
+
cmsBaseUrl: _,
|
|
5003
|
+
legacySession: v,
|
|
5004
|
+
onSelect: w
|
|
5041
5005
|
}),
|
|
5042
5006
|
/* @__PURE__ */ L(Qe, {
|
|
5043
|
-
title:
|
|
5007
|
+
title: ee,
|
|
5044
5008
|
children: /* @__PURE__ */ L(B, {
|
|
5045
5009
|
onClick: () => {
|
|
5046
|
-
if (
|
|
5010
|
+
if (_ && v) {
|
|
5047
5011
|
Gr({
|
|
5048
|
-
cmsBaseUrl:
|
|
5049
|
-
path:
|
|
5050
|
-
session:
|
|
5012
|
+
cmsBaseUrl: _,
|
|
5013
|
+
path: O,
|
|
5014
|
+
session: v
|
|
5051
5015
|
});
|
|
5052
5016
|
return;
|
|
5053
5017
|
}
|
|
5054
|
-
typeof window < "u" && window.open(
|
|
5018
|
+
typeof window < "u" && window.open(qi(te, O), "_blank", "noopener");
|
|
5055
5019
|
},
|
|
5056
|
-
"aria-label":
|
|
5020
|
+
"aria-label": ee,
|
|
5057
5021
|
sx: q.sxActionIcon,
|
|
5058
5022
|
"data-testid": "icon-btn-help",
|
|
5059
5023
|
children: /* @__PURE__ */ L(Wt, { sx: q.sxActionIconGlyph })
|
|
@@ -5061,24 +5025,24 @@ function ea({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5061
5025
|
})
|
|
5062
5026
|
]
|
|
5063
5027
|
}),
|
|
5064
|
-
/* @__PURE__ */ L(
|
|
5065
|
-
|
|
5028
|
+
/* @__PURE__ */ L(Ji, {}),
|
|
5029
|
+
u,
|
|
5066
5030
|
/* @__PURE__ */ L(Jr, {
|
|
5067
5031
|
sites: e,
|
|
5068
|
-
selectedPublicationId:
|
|
5069
|
-
getPublicationHref:
|
|
5070
|
-
resolvePublicationImageUrl:
|
|
5032
|
+
selectedPublicationId: f,
|
|
5033
|
+
getPublicationHref: p,
|
|
5034
|
+
resolvePublicationImageUrl: m
|
|
5071
5035
|
}),
|
|
5072
|
-
/* @__PURE__ */ L(
|
|
5073
|
-
/* @__PURE__ */ L(
|
|
5036
|
+
/* @__PURE__ */ L(Ji, {}),
|
|
5037
|
+
/* @__PURE__ */ L(Ki, {
|
|
5074
5038
|
gmtRedaction: D?.gmtRedaction,
|
|
5075
5039
|
timeFormat: D?.timeFormat
|
|
5076
5040
|
}),
|
|
5077
|
-
/* @__PURE__ */ L(
|
|
5078
|
-
/* @__PURE__ */ L(
|
|
5079
|
-
profile:
|
|
5080
|
-
avatarOptions:
|
|
5081
|
-
legacyBaseUrl:
|
|
5041
|
+
/* @__PURE__ */ L(Ji, {}),
|
|
5042
|
+
/* @__PURE__ */ L(Wi, {
|
|
5043
|
+
profile: c,
|
|
5044
|
+
avatarOptions: h,
|
|
5045
|
+
legacyBaseUrl: g
|
|
5082
5046
|
})
|
|
5083
5047
|
]
|
|
5084
5048
|
})
|
|
@@ -5088,7 +5052,7 @@ function ea({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5088
5052
|
}
|
|
5089
5053
|
//#endregion
|
|
5090
5054
|
//#region src/lib/components/shell/AppShell.styles.ts
|
|
5091
|
-
var
|
|
5055
|
+
var Xi = {
|
|
5092
5056
|
sxRoot: {
|
|
5093
5057
|
display: "flex",
|
|
5094
5058
|
flexDirection: "column",
|
|
@@ -5121,53 +5085,52 @@ var ta = {
|
|
|
5121
5085
|
};
|
|
5122
5086
|
//#endregion
|
|
5123
5087
|
//#region src/lib/components/shell/AppShell.tsx
|
|
5124
|
-
function
|
|
5088
|
+
function Zi({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notificationsData: i, copilotSuggestionsHref: a, onEditorialSeeMore: o, onEditorialRemindLater: s, profile: c, primaryLogo: l, brandLogo: u, selectedPublicationId: d, getPublicationHref: f, resolvePublicationImageUrl: p, profileAvatarOptions: m, legacyBaseUrl: h, cmsBaseUrl: g, legacySession: _, newContentGroups: v, previewFormats: y, operationPermissions: b, isAdmin: x, onNewContentSelect: S, onPreviewSelect: C, LinkComponent: w = Er, permissions: T, locale: E, language: D, messages: ee, appMessages: te, baseUrl: O, profileServices: ne }) {
|
|
5125
5089
|
return /* @__PURE__ */ L(gr, {
|
|
5126
|
-
locale:
|
|
5090
|
+
locale: E,
|
|
5127
5091
|
language: D,
|
|
5128
|
-
messages:
|
|
5129
|
-
appMessages:
|
|
5092
|
+
messages: ee,
|
|
5093
|
+
appMessages: te,
|
|
5130
5094
|
children: /* @__PURE__ */ R(z, {
|
|
5131
|
-
sx:
|
|
5095
|
+
sx: Xi.sxRoot,
|
|
5132
5096
|
children: [/* @__PURE__ */ L(z, {
|
|
5133
5097
|
component: "header",
|
|
5134
|
-
sx:
|
|
5135
|
-
children: /* @__PURE__ */ L(
|
|
5098
|
+
sx: Xi.sxHeader,
|
|
5099
|
+
children: /* @__PURE__ */ L(Yi, {
|
|
5136
5100
|
sites: t,
|
|
5137
5101
|
notificationUnreadCount: r,
|
|
5138
5102
|
notificationsData: i,
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
onPreviewSelect: w
|
|
5103
|
+
copilotSuggestionsHref: a,
|
|
5104
|
+
onEditorialSeeMore: o,
|
|
5105
|
+
onEditorialRemindLater: s,
|
|
5106
|
+
profile: c,
|
|
5107
|
+
primaryLogo: l,
|
|
5108
|
+
brandLogo: u,
|
|
5109
|
+
selectedPublicationId: d,
|
|
5110
|
+
getPublicationHref: f,
|
|
5111
|
+
resolvePublicationImageUrl: p,
|
|
5112
|
+
profileAvatarOptions: m,
|
|
5113
|
+
legacyBaseUrl: h,
|
|
5114
|
+
cmsBaseUrl: g ?? O,
|
|
5115
|
+
legacySession: _,
|
|
5116
|
+
newContentGroups: v,
|
|
5117
|
+
previewFormats: y,
|
|
5118
|
+
operationPermissions: b,
|
|
5119
|
+
isAdmin: x,
|
|
5120
|
+
onNewContentSelect: S,
|
|
5121
|
+
onPreviewSelect: C
|
|
5159
5122
|
})
|
|
5160
5123
|
}), /* @__PURE__ */ R(z, {
|
|
5161
|
-
sx:
|
|
5124
|
+
sx: Xi.sxBody,
|
|
5162
5125
|
children: [/* @__PURE__ */ L(Vr, {
|
|
5163
5126
|
pathname: e,
|
|
5164
|
-
LinkComponent:
|
|
5165
|
-
permissions:
|
|
5166
|
-
legacyBaseUrl:
|
|
5167
|
-
profileServices:
|
|
5127
|
+
LinkComponent: w,
|
|
5128
|
+
permissions: T,
|
|
5129
|
+
legacyBaseUrl: h,
|
|
5130
|
+
profileServices: ne
|
|
5168
5131
|
}), /* @__PURE__ */ L(z, {
|
|
5169
5132
|
component: "main",
|
|
5170
|
-
sx:
|
|
5133
|
+
sx: Xi.sxMain,
|
|
5171
5134
|
children: n
|
|
5172
5135
|
})]
|
|
5173
5136
|
})]
|
|
@@ -5176,7 +5139,7 @@ function na({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5176
5139
|
}
|
|
5177
5140
|
//#endregion
|
|
5178
5141
|
//#region src/lib/components/sidebar/Sidebar.styles.ts
|
|
5179
|
-
var
|
|
5142
|
+
var Qi = O.secondary, $i = O.surfaceHover, ea = O.textNav, ta = 24, na = 24, X = {
|
|
5180
5143
|
sxRoot: (e) => {
|
|
5181
5144
|
let t = e ? 195 : 96;
|
|
5182
5145
|
return {
|
|
@@ -5251,10 +5214,10 @@ var ra = O.secondary, ia = O.surfaceHover, aa = O.textNav, oa = 24, sa = 24, X =
|
|
|
5251
5214
|
px: 0,
|
|
5252
5215
|
py: 0,
|
|
5253
5216
|
borderRadius: "100px",
|
|
5254
|
-
color:
|
|
5217
|
+
color: ea,
|
|
5255
5218
|
textDecoration: "none",
|
|
5256
|
-
bgcolor: e ?
|
|
5257
|
-
"&:hover": { bgcolor: e ?
|
|
5219
|
+
bgcolor: e ? Qi : "transparent",
|
|
5220
|
+
"&:hover": { bgcolor: e ? Qi : "action.hover" }
|
|
5258
5221
|
} : {
|
|
5259
5222
|
position: "relative",
|
|
5260
5223
|
display: "flex",
|
|
@@ -5272,13 +5235,13 @@ var ra = O.secondary, ia = O.surfaceHover, aa = O.textNav, oa = 24, sa = 24, X =
|
|
|
5272
5235
|
ml: "-1rem",
|
|
5273
5236
|
mr: 0,
|
|
5274
5237
|
borderRadius: t ? "100px" : "0 100px 100px 0",
|
|
5275
|
-
color:
|
|
5238
|
+
color: ea,
|
|
5276
5239
|
textDecoration: "none",
|
|
5277
|
-
bgcolor: e ?
|
|
5278
|
-
"&:hover": { bgcolor: e ?
|
|
5240
|
+
bgcolor: e ? Qi : "transparent",
|
|
5241
|
+
"&:hover": { bgcolor: e ? Qi : $i }
|
|
5279
5242
|
},
|
|
5280
5243
|
sxItemIcon: (e, t = !1) => ({
|
|
5281
|
-
fontSize: t ?
|
|
5244
|
+
fontSize: t ? na : ta,
|
|
5282
5245
|
color: e ? "secondary.dark" : "m3.onSurfaceVariant",
|
|
5283
5246
|
width: t ? 48 : "auto",
|
|
5284
5247
|
flexShrink: 0
|
|
@@ -5289,7 +5252,7 @@ var ra = O.secondary, ia = O.surfaceHover, aa = O.textNav, oa = 24, sa = 24, X =
|
|
|
5289
5252
|
fontSize: 14,
|
|
5290
5253
|
fontWeight: e ? 600 : 400,
|
|
5291
5254
|
lineHeight: 1.43,
|
|
5292
|
-
color:
|
|
5255
|
+
color: ea,
|
|
5293
5256
|
overflow: "hidden",
|
|
5294
5257
|
textOverflow: "ellipsis",
|
|
5295
5258
|
whiteSpace: "nowrap"
|
|
@@ -5317,12 +5280,12 @@ var ra = O.secondary, ia = O.surfaceHover, aa = O.textNav, oa = 24, sa = 24, X =
|
|
|
5317
5280
|
px: 2,
|
|
5318
5281
|
py: 1,
|
|
5319
5282
|
gap: 1.25,
|
|
5320
|
-
color:
|
|
5321
|
-
bgcolor: e ?
|
|
5322
|
-
"&:hover": { bgcolor: e ?
|
|
5283
|
+
color: ea,
|
|
5284
|
+
bgcolor: e ? Qi : "transparent",
|
|
5285
|
+
"&:hover": { bgcolor: e ? Qi : $i },
|
|
5323
5286
|
"&.Mui-selected": {
|
|
5324
|
-
bgcolor:
|
|
5325
|
-
"&:hover": { bgcolor:
|
|
5287
|
+
bgcolor: Qi,
|
|
5288
|
+
"&:hover": { bgcolor: Qi }
|
|
5326
5289
|
}
|
|
5327
5290
|
}),
|
|
5328
5291
|
sxChildrenMenuListItemIcon: {
|
|
@@ -5349,7 +5312,7 @@ var ra = O.secondary, ia = O.surfaceHover, aa = O.textNav, oa = 24, sa = 24, X =
|
|
|
5349
5312
|
};
|
|
5350
5313
|
//#endregion
|
|
5351
5314
|
//#region src/lib/components/sidebar/Sidebar.tsx
|
|
5352
|
-
function
|
|
5315
|
+
function ra(e, t, n) {
|
|
5353
5316
|
return e ? n : /* @__PURE__ */ L(Qe, {
|
|
5354
5317
|
title: t,
|
|
5355
5318
|
placement: "right",
|
|
@@ -5361,7 +5324,7 @@ function ca(e, t, n) {
|
|
|
5361
5324
|
})
|
|
5362
5325
|
});
|
|
5363
5326
|
}
|
|
5364
|
-
function
|
|
5327
|
+
function ia({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i, onToggleExpand: a, LinkComponent: o, pathname: s, permissions: c, t: l, legacyBaseUrl: u, selectedPublicationId: d }) {
|
|
5365
5328
|
let f = `block-${t}`, p = Dr(e, l), m = jr(c, e.module), h = Mr(e, c), g = !r, _ = Or(s, e.href), v = kr(s, e), y = h.length > 0, b = e.icon, x = n ? _ : _ || v, [S, C] = F(null), w = !!S;
|
|
5366
5329
|
if (!m && !y) return null;
|
|
5367
5330
|
let T = /* @__PURE__ */ R(I, { children: [
|
|
@@ -5413,7 +5376,7 @@ function la({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5413
5376
|
maxWidth: "100%",
|
|
5414
5377
|
overflow: "hidden"
|
|
5415
5378
|
},
|
|
5416
|
-
children: h.map((e) => /* @__PURE__ */ L(
|
|
5379
|
+
children: h.map((e) => /* @__PURE__ */ L(ia, {
|
|
5417
5380
|
item: e,
|
|
5418
5381
|
blockIndex: t,
|
|
5419
5382
|
nested: !0,
|
|
@@ -5485,7 +5448,7 @@ function la({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5485
5448
|
})]
|
|
5486
5449
|
}, e.href);
|
|
5487
5450
|
})
|
|
5488
|
-
})] }) :
|
|
5451
|
+
})] }) : ra(r, p, /* @__PURE__ */ L(z, {
|
|
5489
5452
|
component: o,
|
|
5490
5453
|
href: Ar(e, u),
|
|
5491
5454
|
"data-testid": `nav-${f}-${E(e.module)}`,
|
|
@@ -5493,7 +5456,7 @@ function la({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5493
5456
|
children: T
|
|
5494
5457
|
}));
|
|
5495
5458
|
}
|
|
5496
|
-
function
|
|
5459
|
+
function aa({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions: i, t: a, legacyBaseUrl: o, selectedPublicationId: s }) {
|
|
5497
5460
|
let [c, l] = F(P(() => {
|
|
5498
5461
|
let t = {};
|
|
5499
5462
|
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => Or(r, e.href)));
|
|
@@ -5504,7 +5467,7 @@ function ua({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
5504
5467
|
[e]: !t[e]
|
|
5505
5468
|
}));
|
|
5506
5469
|
};
|
|
5507
|
-
return /* @__PURE__ */ L(I, { children: e.map((e, l) => /* @__PURE__ */ L(
|
|
5470
|
+
return /* @__PURE__ */ L(I, { children: e.map((e, l) => /* @__PURE__ */ L(ia, {
|
|
5508
5471
|
item: e,
|
|
5509
5472
|
blockIndex: l,
|
|
5510
5473
|
open: t,
|
|
@@ -5518,7 +5481,7 @@ function ua({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
5518
5481
|
selectedPublicationId: s
|
|
5519
5482
|
}, e.href)) });
|
|
5520
5483
|
}
|
|
5521
|
-
function
|
|
5484
|
+
function oa({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = Er, legacyBaseUrl: i, selectedPublicationId: a }) {
|
|
5522
5485
|
let { t: o } = U();
|
|
5523
5486
|
return /* @__PURE__ */ L(z, {
|
|
5524
5487
|
component: "aside",
|
|
@@ -5529,7 +5492,7 @@ function da({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = Er,
|
|
|
5529
5492
|
component: "nav",
|
|
5530
5493
|
"aria-label": o.sidebar("navAriaLabel"),
|
|
5531
5494
|
sx: X.sxNav(e),
|
|
5532
|
-
children: /* @__PURE__ */ L(
|
|
5495
|
+
children: /* @__PURE__ */ L(aa, {
|
|
5533
5496
|
permissions: n,
|
|
5534
5497
|
items: Nr,
|
|
5535
5498
|
open: e,
|
|
@@ -5545,7 +5508,7 @@ function da({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = Er,
|
|
|
5545
5508
|
}
|
|
5546
5509
|
//#endregion
|
|
5547
5510
|
//#region src/lib/components/error-page/CmsErrorPage.styles.ts
|
|
5548
|
-
var
|
|
5511
|
+
var sa = {
|
|
5549
5512
|
sxRoot: {
|
|
5550
5513
|
position: "fixed",
|
|
5551
5514
|
inset: 0,
|
|
@@ -5634,7 +5597,7 @@ var fa = {
|
|
|
5634
5597
|
};
|
|
5635
5598
|
//#endregion
|
|
5636
5599
|
//#region src/lib/components/error-page/CmsErrorPage.tsx
|
|
5637
|
-
function
|
|
5600
|
+
function ca({ variant: e, homeHref: t = "/", LinkComponent: n = Er, illustrationSrc: r }) {
|
|
5638
5601
|
let { t: i } = U(), [a, o] = F(!1), s = e === "not-allowed", c = i.errorPage(s ? "notAllowedTitle" : "notFoundTitle"), l = i.errorPage(s ? "notAllowedSubtitle" : "notFoundSubtitle"), u = r ?? (s ? "/errors/not-allowed.png" : "/errors/notfound.png"), d = async () => {
|
|
5639
5602
|
let e = typeof window < "u" ? window.location.href : "", t = i.errorPage("copyDetailText").replace("{url}", e);
|
|
5640
5603
|
try {
|
|
@@ -5644,24 +5607,24 @@ function pa({ variant: e, homeHref: t = "/", LinkComponent: n = Er, illustration
|
|
|
5644
5607
|
return /* @__PURE__ */ R(z, {
|
|
5645
5608
|
"data-testid": "panel-error",
|
|
5646
5609
|
"data-variant": e,
|
|
5647
|
-
sx:
|
|
5610
|
+
sx: sa.sxRoot,
|
|
5648
5611
|
children: [/* @__PURE__ */ L(z, {
|
|
5649
5612
|
component: "img",
|
|
5650
5613
|
src: u,
|
|
5651
5614
|
alt: "",
|
|
5652
5615
|
"aria-hidden": !0,
|
|
5653
|
-
sx:
|
|
5616
|
+
sx: sa.sxIllustration
|
|
5654
5617
|
}), /* @__PURE__ */ R(z, {
|
|
5655
|
-
sx:
|
|
5618
|
+
sx: sa.sxContent,
|
|
5656
5619
|
children: [
|
|
5657
5620
|
/* @__PURE__ */ L(V, {
|
|
5658
5621
|
component: "h1",
|
|
5659
|
-
sx:
|
|
5622
|
+
sx: sa.sxTitle,
|
|
5660
5623
|
children: c
|
|
5661
5624
|
}),
|
|
5662
5625
|
/* @__PURE__ */ L(V, {
|
|
5663
5626
|
component: "p",
|
|
5664
|
-
sx:
|
|
5627
|
+
sx: sa.sxSubtitle,
|
|
5665
5628
|
children: l
|
|
5666
5629
|
}),
|
|
5667
5630
|
/* @__PURE__ */ L(Zt, {
|
|
@@ -5670,13 +5633,13 @@ function pa({ variant: e, homeHref: t = "/", LinkComponent: n = Er, illustration
|
|
|
5670
5633
|
href: t,
|
|
5671
5634
|
sx: {
|
|
5672
5635
|
...$n("cta"),
|
|
5673
|
-
...
|
|
5636
|
+
...sa.sxButton
|
|
5674
5637
|
},
|
|
5675
5638
|
children: i.errorPage("homeButton")
|
|
5676
5639
|
}),
|
|
5677
5640
|
!s && /* @__PURE__ */ R(V, {
|
|
5678
5641
|
component: "p",
|
|
5679
|
-
sx:
|
|
5642
|
+
sx: sa.sxErrorLine,
|
|
5680
5643
|
children: [
|
|
5681
5644
|
i.errorPage("errorLabel"),
|
|
5682
5645
|
" ",
|
|
@@ -5688,7 +5651,7 @@ function pa({ variant: e, homeHref: t = "/", LinkComponent: n = Er, illustration
|
|
|
5688
5651
|
role: "button",
|
|
5689
5652
|
tabIndex: 0,
|
|
5690
5653
|
onClick: d,
|
|
5691
|
-
sx:
|
|
5654
|
+
sx: sa.sxCopyLink,
|
|
5692
5655
|
children: a ? i.errorPage("copied") : i.errorPage("copyDetail")
|
|
5693
5656
|
})
|
|
5694
5657
|
]
|
|
@@ -5699,48 +5662,48 @@ function pa({ variant: e, homeHref: t = "/", LinkComponent: n = Er, illustration
|
|
|
5699
5662
|
}
|
|
5700
5663
|
//#endregion
|
|
5701
5664
|
//#region src/lib/components/mui-provider/CmsColorSchemeVars.tsx
|
|
5702
|
-
var { light:
|
|
5703
|
-
function
|
|
5665
|
+
var { light: la, dark: ua } = he();
|
|
5666
|
+
function da() {
|
|
5704
5667
|
return /* @__PURE__ */ L(kn, { styles: {
|
|
5705
|
-
":root":
|
|
5706
|
-
":root[data-mui-color-scheme=\"dark\"]":
|
|
5668
|
+
":root": la,
|
|
5669
|
+
":root[data-mui-color-scheme=\"dark\"]": ua
|
|
5707
5670
|
} });
|
|
5708
5671
|
}
|
|
5709
5672
|
//#endregion
|
|
5710
5673
|
//#region src/lib/components/mui-provider/CmsFontFaces.tsx
|
|
5711
|
-
function
|
|
5674
|
+
function fa() {
|
|
5712
5675
|
return /* @__PURE__ */ L(kn, { styles: tr });
|
|
5713
5676
|
}
|
|
5714
5677
|
//#endregion
|
|
5715
5678
|
//#region src/lib/components/mui-provider/CmsMuiProvider.tsx
|
|
5716
|
-
var
|
|
5717
|
-
function
|
|
5679
|
+
var pa = Yn();
|
|
5680
|
+
function ma({ children: e }) {
|
|
5718
5681
|
return /* @__PURE__ */ R(ze, {
|
|
5719
|
-
theme:
|
|
5682
|
+
theme: pa,
|
|
5720
5683
|
defaultMode: "light",
|
|
5721
5684
|
storageManager: null,
|
|
5722
5685
|
children: [
|
|
5723
5686
|
/* @__PURE__ */ L(On, { enableColorScheme: !0 }),
|
|
5724
|
-
/* @__PURE__ */ L(
|
|
5725
|
-
/* @__PURE__ */ L(
|
|
5687
|
+
/* @__PURE__ */ L(da, {}),
|
|
5688
|
+
/* @__PURE__ */ L(fa, {}),
|
|
5726
5689
|
e
|
|
5727
5690
|
]
|
|
5728
5691
|
});
|
|
5729
5692
|
}
|
|
5730
5693
|
//#endregion
|
|
5731
5694
|
//#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
|
|
5732
|
-
var
|
|
5733
|
-
function
|
|
5695
|
+
var ha = Yn();
|
|
5696
|
+
function ga({ children: e }) {
|
|
5734
5697
|
return /* @__PURE__ */ L(An, {
|
|
5735
5698
|
options: { enableCssLayer: !0 },
|
|
5736
5699
|
children: /* @__PURE__ */ R(ze, {
|
|
5737
|
-
theme:
|
|
5700
|
+
theme: ha,
|
|
5738
5701
|
defaultMode: "light",
|
|
5739
5702
|
storageManager: null,
|
|
5740
5703
|
children: [
|
|
5741
5704
|
/* @__PURE__ */ L(On, { enableColorScheme: !0 }),
|
|
5742
|
-
/* @__PURE__ */ L(
|
|
5743
|
-
/* @__PURE__ */ L(
|
|
5705
|
+
/* @__PURE__ */ L(da, {}),
|
|
5706
|
+
/* @__PURE__ */ L(fa, {}),
|
|
5744
5707
|
/* @__PURE__ */ L(z, {
|
|
5745
5708
|
sx: {
|
|
5746
5709
|
display: "flex",
|
|
@@ -5756,14 +5719,14 @@ function xa({ children: e }) {
|
|
|
5756
5719
|
}
|
|
5757
5720
|
//#endregion
|
|
5758
5721
|
//#region src/lib/components/dropdowns/BtnDropdown.styles.ts
|
|
5759
|
-
var
|
|
5722
|
+
var _a = (e) => e ? "white" : "cta", va = {
|
|
5760
5723
|
sxGroup: {
|
|
5761
5724
|
display: "inline-flex",
|
|
5762
5725
|
alignItems: "stretch",
|
|
5763
5726
|
gap: "2px"
|
|
5764
5727
|
},
|
|
5765
5728
|
sxMainButton: (e, t) => {
|
|
5766
|
-
let n =
|
|
5729
|
+
let n = _a(e);
|
|
5767
5730
|
return {
|
|
5768
5731
|
height: pe.buttonHeight,
|
|
5769
5732
|
px: "20px",
|
|
@@ -5789,7 +5752,7 @@ var Sa = (e) => e ? "white" : "cta", Ca = {
|
|
|
5789
5752
|
};
|
|
5790
5753
|
},
|
|
5791
5754
|
sxArrowButton: (e, t) => {
|
|
5792
|
-
let n =
|
|
5755
|
+
let n = _a(e);
|
|
5793
5756
|
return {
|
|
5794
5757
|
height: pe.buttonHeight,
|
|
5795
5758
|
minWidth: 38,
|
|
@@ -5816,19 +5779,19 @@ var Sa = (e) => e ? "white" : "cta", Ca = {
|
|
|
5816
5779
|
};
|
|
5817
5780
|
//#endregion
|
|
5818
5781
|
//#region src/lib/components/dropdowns/BtnDropdown.tsx
|
|
5819
|
-
function
|
|
5782
|
+
function ya({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1, enableButton: a = !0, whiteBtn: o = !1, showDropdownOptions: s = !0, testId: c }) {
|
|
5820
5783
|
let [l, u] = F(null), d = !!l, f = (e) => {
|
|
5821
5784
|
u((t) => t ? null : e.currentTarget);
|
|
5822
5785
|
}, p = P(() => t.filter((e) => e.show !== !1), [t]).length > 0, m = s && p;
|
|
5823
5786
|
return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ R(z, {
|
|
5824
|
-
sx:
|
|
5787
|
+
sx: va.sxGroup,
|
|
5825
5788
|
children: [/* @__PURE__ */ L(Zt, {
|
|
5826
5789
|
disableElevation: !0,
|
|
5827
5790
|
startIcon: n,
|
|
5828
5791
|
onClick: r,
|
|
5829
5792
|
disabled: i || !a,
|
|
5830
5793
|
"data-testid": c ? `btn-${c}` : void 0,
|
|
5831
|
-
sx:
|
|
5794
|
+
sx: va.sxMainButton(o, !m),
|
|
5832
5795
|
children: e
|
|
5833
5796
|
}), m ? /* @__PURE__ */ L(Zt, {
|
|
5834
5797
|
disableElevation: !0,
|
|
@@ -5837,10 +5800,10 @@ function wa({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1
|
|
|
5837
5800
|
onClick: f,
|
|
5838
5801
|
disabled: i,
|
|
5839
5802
|
"data-testid": c ? `dropdown-toggle-${c}` : void 0,
|
|
5840
|
-
sx:
|
|
5803
|
+
sx: va.sxArrowButton(o, d),
|
|
5841
5804
|
children: /* @__PURE__ */ L(jn, {})
|
|
5842
5805
|
}) : null]
|
|
5843
|
-
}), /* @__PURE__ */ L(
|
|
5806
|
+
}), /* @__PURE__ */ L(Ci, {
|
|
5844
5807
|
options: t,
|
|
5845
5808
|
anchorEl: l,
|
|
5846
5809
|
open: d,
|
|
@@ -5858,17 +5821,17 @@ function wa({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1
|
|
|
5858
5821
|
}
|
|
5859
5822
|
//#endregion
|
|
5860
5823
|
//#region src/lib/components/dropdowns/SelectDropdown.tsx
|
|
5861
|
-
var
|
|
5862
|
-
function
|
|
5824
|
+
var ba = 18;
|
|
5825
|
+
function xa(e) {
|
|
5863
5826
|
if (!Ke(e)) return e;
|
|
5864
5827
|
let t = e;
|
|
5865
5828
|
return Ue(t, { sx: [t.props.sx, {
|
|
5866
|
-
fontSize:
|
|
5867
|
-
width:
|
|
5868
|
-
height:
|
|
5829
|
+
fontSize: ba,
|
|
5830
|
+
width: ba,
|
|
5831
|
+
height: ba
|
|
5869
5832
|
}] });
|
|
5870
5833
|
}
|
|
5871
|
-
function
|
|
5834
|
+
function Sa({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons: i = !0, minWidth: a = 200, disabled: o = !1, placeholder: s, prefix: c, ariaLabel: l, testId: u }) {
|
|
5872
5835
|
let [d, f] = F(null), p = !!d, m = P(() => t.filter((e) => e.show !== !1), [t]), h = P(() => m.find((t) => t.value === e), [m, e]), g = (e) => {
|
|
5873
5836
|
n(e), f(null);
|
|
5874
5837
|
}, _ = (t) => {
|
|
@@ -5880,7 +5843,7 @@ function Da({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
5880
5843
|
sx: er.sxItem(n),
|
|
5881
5844
|
children: [i && t.icon ? /* @__PURE__ */ L(lt, {
|
|
5882
5845
|
sx: { color: t.iconColor ?? "m3.onSurfaceVariant" },
|
|
5883
|
-
children:
|
|
5846
|
+
children: xa(t.icon)
|
|
5884
5847
|
}) : null, t.label]
|
|
5885
5848
|
}, t.value);
|
|
5886
5849
|
};
|
|
@@ -5899,7 +5862,7 @@ function Da({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
5899
5862
|
component: "span",
|
|
5900
5863
|
className: "sel-lead",
|
|
5901
5864
|
sx: { color: h.iconColor ?? "inherit" },
|
|
5902
|
-
children:
|
|
5865
|
+
children: xa(h.icon)
|
|
5903
5866
|
}) : null,
|
|
5904
5867
|
/* @__PURE__ */ L(z, {
|
|
5905
5868
|
component: "span",
|
|
@@ -5952,7 +5915,7 @@ function Da({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
5952
5915
|
}
|
|
5953
5916
|
//#endregion
|
|
5954
5917
|
//#region src/lib/components/search/CmsSearchField.styles.ts
|
|
5955
|
-
var
|
|
5918
|
+
var Ca = {
|
|
5956
5919
|
sxRoot: (e) => ({
|
|
5957
5920
|
display: "inline-flex",
|
|
5958
5921
|
alignItems: "center",
|
|
@@ -6030,15 +5993,15 @@ var Oa = {
|
|
|
6030
5993
|
};
|
|
6031
5994
|
//#endregion
|
|
6032
5995
|
//#region src/lib/components/search/CmsSearchField.tsx
|
|
6033
|
-
function
|
|
6034
|
-
let { t: v } = U(), y = v.messages.search, b = i ?? y.placeholder, x = g ?? y.inputAriaLabel, S = h ?? y.clearAriaLabel, C = m ?? y.advancedAriaLabel, w = Ze(null), [T, E] = F(!1),
|
|
5996
|
+
function wa({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, showIcon: a = !0, showAdvanced: o = !1, advancedActive: s = !1, onAdvancedClick: c, collapsible: l = !1, width: u = 320, grow: d = !1, maxWidth: f, endGap: p = 40, advancedAriaLabel: m, clearAriaLabel: h, ariaLabel: g, testId: _ }) {
|
|
5997
|
+
let { t: v } = U(), y = v.messages.search, b = i ?? y.placeholder, x = g ?? y.inputAriaLabel, S = h ?? y.clearAriaLabel, C = m ?? y.advancedAriaLabel, w = Ze(null), [T, E] = F(!1), D = l && !T && e.trim() === "", ee = (t) => {
|
|
6035
5998
|
t.key === "Enter" && n?.(e);
|
|
6036
5999
|
}, te = () => {
|
|
6037
6000
|
r ? r() : t(""), w.current?.focus();
|
|
6038
6001
|
}, O = () => {
|
|
6039
|
-
|
|
6002
|
+
D && w.current?.focus();
|
|
6040
6003
|
}, ne;
|
|
6041
|
-
return ne =
|
|
6004
|
+
return ne = D ? void 0 : d ? T ? {
|
|
6042
6005
|
flexGrow: 1,
|
|
6043
6006
|
flexShrink: 1,
|
|
6044
6007
|
flexBasis: 0,
|
|
@@ -6057,16 +6020,16 @@ function ka({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, sh
|
|
|
6057
6020
|
flexBasis: u,
|
|
6058
6021
|
maxWidth: "100%"
|
|
6059
6022
|
}, /* @__PURE__ */ R(z, {
|
|
6060
|
-
sx:
|
|
6061
|
-
collapsed:
|
|
6023
|
+
sx: Ca.sxRoot({
|
|
6024
|
+
collapsed: D,
|
|
6062
6025
|
focused: T
|
|
6063
6026
|
}),
|
|
6064
6027
|
style: ne,
|
|
6065
6028
|
onClick: O,
|
|
6066
6029
|
"data-testid": _,
|
|
6067
6030
|
children: [
|
|
6068
|
-
a && /* @__PURE__ */ L(Et, { sx:
|
|
6069
|
-
!
|
|
6031
|
+
a && /* @__PURE__ */ L(Et, { sx: Ca.sxLeadIcon }),
|
|
6032
|
+
!D && /* @__PURE__ */ L(z, {
|
|
6070
6033
|
component: "input",
|
|
6071
6034
|
ref: w,
|
|
6072
6035
|
type: "text",
|
|
@@ -6075,21 +6038,21 @@ function ka({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, sh
|
|
|
6075
6038
|
placeholder: b,
|
|
6076
6039
|
value: e,
|
|
6077
6040
|
onChange: (e) => t(e.target.value),
|
|
6078
|
-
onKeyDown:
|
|
6041
|
+
onKeyDown: ee,
|
|
6079
6042
|
onFocus: () => E(!0),
|
|
6080
6043
|
onBlur: () => E(!1),
|
|
6081
|
-
sx:
|
|
6044
|
+
sx: Ca.sxInput,
|
|
6082
6045
|
"data-testid": _ ? `${_}-input` : void 0
|
|
6083
6046
|
}),
|
|
6084
|
-
!
|
|
6047
|
+
!D && e.length > 0 && /* @__PURE__ */ L(B, {
|
|
6085
6048
|
size: "small",
|
|
6086
6049
|
"aria-label": S,
|
|
6087
6050
|
onClick: te,
|
|
6088
|
-
sx:
|
|
6051
|
+
sx: Ca.sxIconBtn,
|
|
6089
6052
|
"data-testid": _ ? `${_}-icon-btn-clear` : void 0,
|
|
6090
6053
|
children: /* @__PURE__ */ L(fn, {})
|
|
6091
6054
|
}),
|
|
6092
|
-
!
|
|
6055
|
+
!D && o && /* @__PURE__ */ R(B, {
|
|
6093
6056
|
size: "small",
|
|
6094
6057
|
"aria-label": C,
|
|
6095
6058
|
"aria-haspopup": "dialog",
|
|
@@ -6097,14 +6060,14 @@ function ka({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, sh
|
|
|
6097
6060
|
e.stopPropagation(), c?.();
|
|
6098
6061
|
},
|
|
6099
6062
|
sx: {
|
|
6100
|
-
...
|
|
6063
|
+
...Ca.sxIconBtn,
|
|
6101
6064
|
position: "relative",
|
|
6102
|
-
...s ?
|
|
6065
|
+
...s ? Ca.sxAdvancedActive : {}
|
|
6103
6066
|
},
|
|
6104
6067
|
"data-testid": _ ? `${_}-icon-btn-advanced` : void 0,
|
|
6105
6068
|
children: [/* @__PURE__ */ L(Mn, {}), s && /* @__PURE__ */ L(z, {
|
|
6106
6069
|
component: "span",
|
|
6107
|
-
sx:
|
|
6070
|
+
sx: Ca.sxDot
|
|
6108
6071
|
})]
|
|
6109
6072
|
})
|
|
6110
6073
|
]
|
|
@@ -6228,7 +6191,7 @@ var Z = {
|
|
|
6228
6191
|
};
|
|
6229
6192
|
//#endregion
|
|
6230
6193
|
//#region src/lib/components/fields/CmsCheckboxField.tsx
|
|
6231
|
-
function
|
|
6194
|
+
function Ta({ value: e, onChange: t, label: n, disabled: r = !1, testId: i }) {
|
|
6232
6195
|
let a = Xe();
|
|
6233
6196
|
return /* @__PURE__ */ L(Ln, {
|
|
6234
6197
|
sx: Z.sxCheckboxLabel,
|
|
@@ -6248,7 +6211,7 @@ function Aa({ value: e, onChange: t, label: n, disabled: r = !1, testId: i }) {
|
|
|
6248
6211
|
}
|
|
6249
6212
|
//#endregion
|
|
6250
6213
|
//#region src/lib/components/fields/FieldShell.tsx
|
|
6251
|
-
function
|
|
6214
|
+
function Ea({ label: e, htmlFor: t, hint: n, children: r }) {
|
|
6252
6215
|
return /* @__PURE__ */ R(z, {
|
|
6253
6216
|
sx: Z.sxField,
|
|
6254
6217
|
children: [
|
|
@@ -6268,9 +6231,9 @@ function ja({ label: e, htmlFor: t, hint: n, children: r }) {
|
|
|
6268
6231
|
}
|
|
6269
6232
|
//#endregion
|
|
6270
6233
|
//#region src/lib/components/fields/CmsComboboxField.tsx
|
|
6271
|
-
function
|
|
6234
|
+
function Da({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, noOptionsText: o, disabled: s = !1, testId: c }) {
|
|
6272
6235
|
let l = Xe(), { t: u } = U(), d = o ?? u.messages.search.noOptions, f = P(() => n.filter((e) => e.show !== !1), [n]);
|
|
6273
|
-
return /* @__PURE__ */ L(
|
|
6236
|
+
return /* @__PURE__ */ L(Ea, {
|
|
6274
6237
|
label: r,
|
|
6275
6238
|
htmlFor: l,
|
|
6276
6239
|
hint: a,
|
|
@@ -6394,10 +6357,10 @@ var Q = {
|
|
|
6394
6357
|
};
|
|
6395
6358
|
//#endregion
|
|
6396
6359
|
//#region src/lib/components/fields/CmsDateField.tsx
|
|
6397
|
-
function
|
|
6360
|
+
function Oa(e) {
|
|
6398
6361
|
return e < 10 ? `0${e}` : `${e}`;
|
|
6399
6362
|
}
|
|
6400
|
-
function
|
|
6363
|
+
function ka(e) {
|
|
6401
6364
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
6402
6365
|
return t ? {
|
|
6403
6366
|
y: +t[1],
|
|
@@ -6405,17 +6368,17 @@ function Pa(e) {
|
|
|
6405
6368
|
d: +t[3]
|
|
6406
6369
|
} : null;
|
|
6407
6370
|
}
|
|
6408
|
-
function
|
|
6409
|
-
return `${e}-${
|
|
6371
|
+
function Aa(e, t, n) {
|
|
6372
|
+
return `${e}-${Oa(t + 1)}-${Oa(n)}`;
|
|
6410
6373
|
}
|
|
6411
|
-
function
|
|
6412
|
-
let o = Xe(), { t: s, locale: c } = U(), l = s.messages.search, u = _r(c), [d, f] = F(null), [p, m] = F(!1), h =
|
|
6374
|
+
function ja({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId: a }) {
|
|
6375
|
+
let o = Xe(), { t: s, locale: c } = U(), l = s.messages.search, u = _r(c), [d, f] = F(null), [p, m] = F(!1), h = ka(e), g = /* @__PURE__ */ new Date(), [_, v] = F(() => h ? {
|
|
6413
6376
|
y: h.y,
|
|
6414
6377
|
m: h.m
|
|
6415
6378
|
} : {
|
|
6416
6379
|
y: g.getFullYear(),
|
|
6417
6380
|
m: g.getMonth()
|
|
6418
|
-
}), y = h ? `${
|
|
6381
|
+
}), y = h ? `${Oa(h.d)}/${Oa(h.m + 1)}/${h.y}` : "", b = P(() => {
|
|
6419
6382
|
let e = new Intl.DateTimeFormat(u, { weekday: "short" }), t = new Date(2023, 0, 2);
|
|
6420
6383
|
return Array.from({ length: 7 }, (n, r) => {
|
|
6421
6384
|
let i = new Date(t.getFullYear(), t.getMonth(), t.getDate() + r);
|
|
@@ -6455,9 +6418,9 @@ function Ia({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
6455
6418
|
y: e.y,
|
|
6456
6419
|
m: e.m + 1
|
|
6457
6420
|
}), E = (e) => {
|
|
6458
|
-
t(
|
|
6421
|
+
t(Aa(e.y, e.m, e.d)), m(!1);
|
|
6459
6422
|
};
|
|
6460
|
-
return /* @__PURE__ */ R(
|
|
6423
|
+
return /* @__PURE__ */ R(Ea, {
|
|
6461
6424
|
label: n,
|
|
6462
6425
|
htmlFor: o,
|
|
6463
6426
|
hint: r,
|
|
@@ -6560,7 +6523,7 @@ function Ia({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
6560
6523
|
}), /* @__PURE__ */ L(Zt, {
|
|
6561
6524
|
sx: Q.sxFooterBtn,
|
|
6562
6525
|
onClick: () => {
|
|
6563
|
-
t(
|
|
6526
|
+
t(Aa(g.getFullYear(), g.getMonth(), g.getDate())), m(!1);
|
|
6564
6527
|
},
|
|
6565
6528
|
children: l.dateToday
|
|
6566
6529
|
})]
|
|
@@ -6571,9 +6534,9 @@ function Ia({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
6571
6534
|
}
|
|
6572
6535
|
//#endregion
|
|
6573
6536
|
//#region src/lib/components/fields/CmsMultiSelectField.tsx
|
|
6574
|
-
function
|
|
6537
|
+
function Ma({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, noOptionsText: o, disabled: s = !1, testId: c }) {
|
|
6575
6538
|
let l = Xe(), { t: u } = U(), d = o ?? u.messages.search.noOptions, f = P(() => n.filter((e) => e.show !== !1), [n]), p = P(() => f.filter((t) => e.includes(t.value)), [f, e]);
|
|
6576
|
-
return /* @__PURE__ */ L(
|
|
6539
|
+
return /* @__PURE__ */ L(Ea, {
|
|
6577
6540
|
label: r,
|
|
6578
6541
|
htmlFor: l,
|
|
6579
6542
|
hint: a,
|
|
@@ -6654,9 +6617,9 @@ function La({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
6654
6617
|
}
|
|
6655
6618
|
//#endregion
|
|
6656
6619
|
//#region src/lib/components/fields/CmsNumberField.tsx
|
|
6657
|
-
function
|
|
6620
|
+
function Na({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a, max: o, disabled: s = !1, testId: c }) {
|
|
6658
6621
|
let l = Xe();
|
|
6659
|
-
return /* @__PURE__ */ L(
|
|
6622
|
+
return /* @__PURE__ */ L(Ea, {
|
|
6660
6623
|
label: n,
|
|
6661
6624
|
htmlFor: l,
|
|
6662
6625
|
hint: i,
|
|
@@ -6681,9 +6644,9 @@ function Ra({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a,
|
|
|
6681
6644
|
}
|
|
6682
6645
|
//#endregion
|
|
6683
6646
|
//#region src/lib/components/fields/CmsSelectField.tsx
|
|
6684
|
-
function
|
|
6647
|
+
function Pa({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, disabled: o = !1, showCheck: s = !0, testId: c }) {
|
|
6685
6648
|
let l = Xe(), u = P(() => n.filter((e) => e.show !== !1), [n]);
|
|
6686
|
-
return /* @__PURE__ */ L(
|
|
6649
|
+
return /* @__PURE__ */ L(Ea, {
|
|
6687
6650
|
label: r,
|
|
6688
6651
|
htmlFor: l,
|
|
6689
6652
|
hint: a,
|
|
@@ -6749,9 +6712,9 @@ function za({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
6749
6712
|
}
|
|
6750
6713
|
//#endregion
|
|
6751
6714
|
//#region src/lib/components/fields/CmsTagsField.tsx
|
|
6752
|
-
function
|
|
6715
|
+
function Fa({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggestions: a = [], startIcon: o, chipSx: s, disabled: c = !1, testId: l }) {
|
|
6753
6716
|
let u = Xe();
|
|
6754
|
-
return /* @__PURE__ */ L(
|
|
6717
|
+
return /* @__PURE__ */ L(Ea, {
|
|
6755
6718
|
label: n,
|
|
6756
6719
|
htmlFor: u,
|
|
6757
6720
|
hint: i,
|
|
@@ -6800,9 +6763,9 @@ function Ba({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggesti
|
|
|
6800
6763
|
}
|
|
6801
6764
|
//#endregion
|
|
6802
6765
|
//#region src/lib/components/fields/CmsTextField.tsx
|
|
6803
|
-
function
|
|
6766
|
+
function Ia({ value: e, onChange: t, label: n, placeholder: r, hint: i, type: a = "text", disabled: o = !1, testId: s }) {
|
|
6804
6767
|
let c = Xe();
|
|
6805
|
-
return /* @__PURE__ */ L(
|
|
6768
|
+
return /* @__PURE__ */ L(Ea, {
|
|
6806
6769
|
label: n,
|
|
6807
6770
|
htmlFor: c,
|
|
6808
6771
|
hint: i,
|
|
@@ -6822,10 +6785,10 @@ function Va({ value: e, onChange: t, label: n, placeholder: r, hint: i, type: a
|
|
|
6822
6785
|
}
|
|
6823
6786
|
//#endregion
|
|
6824
6787
|
//#region src/lib/components/fields/FieldRenderer.tsx
|
|
6825
|
-
function
|
|
6788
|
+
function La({ field: e, value: t, onChange: n }) {
|
|
6826
6789
|
let r = typeof t == "string" ? t : "", i = Array.isArray(t) ? t : [], a = t === !0;
|
|
6827
6790
|
switch (e.kind) {
|
|
6828
|
-
case "text": return /* @__PURE__ */ L(
|
|
6791
|
+
case "text": return /* @__PURE__ */ L(Ia, {
|
|
6829
6792
|
label: e.label,
|
|
6830
6793
|
placeholder: e.placeholder,
|
|
6831
6794
|
hint: e.hint,
|
|
@@ -6835,7 +6798,7 @@ function Ha({ field: e, value: t, onChange: n }) {
|
|
|
6835
6798
|
value: r,
|
|
6836
6799
|
onChange: n
|
|
6837
6800
|
});
|
|
6838
|
-
case "number": return /* @__PURE__ */ L(
|
|
6801
|
+
case "number": return /* @__PURE__ */ L(Na, {
|
|
6839
6802
|
label: e.label,
|
|
6840
6803
|
placeholder: e.placeholder,
|
|
6841
6804
|
hint: e.hint,
|
|
@@ -6846,7 +6809,7 @@ function Ha({ field: e, value: t, onChange: n }) {
|
|
|
6846
6809
|
value: r,
|
|
6847
6810
|
onChange: n
|
|
6848
6811
|
});
|
|
6849
|
-
case "date": return /* @__PURE__ */ L(
|
|
6812
|
+
case "date": return /* @__PURE__ */ L(ja, {
|
|
6850
6813
|
label: e.label,
|
|
6851
6814
|
hint: e.hint,
|
|
6852
6815
|
disabled: e.disabled,
|
|
@@ -6854,7 +6817,7 @@ function Ha({ field: e, value: t, onChange: n }) {
|
|
|
6854
6817
|
value: r,
|
|
6855
6818
|
onChange: n
|
|
6856
6819
|
});
|
|
6857
|
-
case "select": return /* @__PURE__ */ L(
|
|
6820
|
+
case "select": return /* @__PURE__ */ L(Pa, {
|
|
6858
6821
|
label: e.label,
|
|
6859
6822
|
placeholder: e.placeholder,
|
|
6860
6823
|
hint: e.hint,
|
|
@@ -6865,7 +6828,7 @@ function Ha({ field: e, value: t, onChange: n }) {
|
|
|
6865
6828
|
value: r,
|
|
6866
6829
|
onChange: n
|
|
6867
6830
|
});
|
|
6868
|
-
case "combobox": return /* @__PURE__ */ L(
|
|
6831
|
+
case "combobox": return /* @__PURE__ */ L(Da, {
|
|
6869
6832
|
label: e.label,
|
|
6870
6833
|
placeholder: e.placeholder,
|
|
6871
6834
|
hint: e.hint,
|
|
@@ -6875,7 +6838,7 @@ function Ha({ field: e, value: t, onChange: n }) {
|
|
|
6875
6838
|
value: r,
|
|
6876
6839
|
onChange: n
|
|
6877
6840
|
});
|
|
6878
|
-
case "multiselect": return /* @__PURE__ */ L(
|
|
6841
|
+
case "multiselect": return /* @__PURE__ */ L(Ma, {
|
|
6879
6842
|
label: e.label,
|
|
6880
6843
|
placeholder: e.placeholder,
|
|
6881
6844
|
hint: e.hint,
|
|
@@ -6885,7 +6848,7 @@ function Ha({ field: e, value: t, onChange: n }) {
|
|
|
6885
6848
|
value: i,
|
|
6886
6849
|
onChange: n
|
|
6887
6850
|
});
|
|
6888
|
-
case "tags": return /* @__PURE__ */ L(
|
|
6851
|
+
case "tags": return /* @__PURE__ */ L(Fa, {
|
|
6889
6852
|
label: e.label,
|
|
6890
6853
|
placeholder: e.placeholder,
|
|
6891
6854
|
hint: e.hint,
|
|
@@ -6894,7 +6857,7 @@ function Ha({ field: e, value: t, onChange: n }) {
|
|
|
6894
6857
|
value: i,
|
|
6895
6858
|
onChange: n
|
|
6896
6859
|
});
|
|
6897
|
-
case "checkbox": return /* @__PURE__ */ L(
|
|
6860
|
+
case "checkbox": return /* @__PURE__ */ L(Ta, {
|
|
6898
6861
|
label: e.label,
|
|
6899
6862
|
disabled: e.disabled,
|
|
6900
6863
|
testId: e.testId,
|
|
@@ -7016,7 +6979,7 @@ var $ = {
|
|
|
7016
6979
|
};
|
|
7017
6980
|
//#endregion
|
|
7018
6981
|
//#region src/lib/components/advanced-search/defaultFields.ts
|
|
7019
|
-
function
|
|
6982
|
+
function Ra(e) {
|
|
7020
6983
|
let t = e.messages.searchFields, n = e.messages.searchOptions;
|
|
7021
6984
|
return [
|
|
7022
6985
|
{
|
|
@@ -7208,7 +7171,7 @@ function Ua(e) {
|
|
|
7208
7171
|
}
|
|
7209
7172
|
//#endregion
|
|
7210
7173
|
//#region src/lib/components/advanced-search/CmsAdvancedSearch.tsx
|
|
7211
|
-
function
|
|
7174
|
+
function za(e) {
|
|
7212
7175
|
switch (e.kind) {
|
|
7213
7176
|
case "multiselect":
|
|
7214
7177
|
case "tags": return [];
|
|
@@ -7216,24 +7179,24 @@ function Wa(e) {
|
|
|
7216
7179
|
default: return "";
|
|
7217
7180
|
}
|
|
7218
7181
|
}
|
|
7219
|
-
function
|
|
7220
|
-
let { t: h } = U(), g = h.messages.search, _ = P(() => a ??
|
|
7182
|
+
function Ba({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i, fields: a, initialValues: o, onApply: s, onReset: c, applyLabel: l, resetLabel: u, closeAriaLabel: d, columns: f = 3, drawerWidth: p = 360, testId: m }) {
|
|
7183
|
+
let { t: h } = U(), g = h.messages.search, _ = P(() => a ?? Ra(h), [a, h]), v = r ?? g.title, y = l ?? g.apply, b = u ?? g.reset, x = d ?? g.close, S = P(() => {
|
|
7221
7184
|
let e = {};
|
|
7222
|
-
for (let t of _) e[t.name] =
|
|
7185
|
+
for (let t of _) e[t.name] = za(t);
|
|
7223
7186
|
return {
|
|
7224
7187
|
...e,
|
|
7225
7188
|
...o
|
|
7226
7189
|
};
|
|
7227
7190
|
}, [_, o]), [C, w] = F(S), [T, E] = F(e);
|
|
7228
7191
|
e !== T && (E(e), e && w(S));
|
|
7229
|
-
let
|
|
7192
|
+
let D = (e, t) => {
|
|
7230
7193
|
w((n) => ({
|
|
7231
7194
|
...n,
|
|
7232
7195
|
[e]: t
|
|
7233
7196
|
}));
|
|
7234
|
-
},
|
|
7197
|
+
}, ee = () => {
|
|
7235
7198
|
let e = {};
|
|
7236
|
-
for (let t of _) e[t.name] =
|
|
7199
|
+
for (let t of _) e[t.name] = za(t);
|
|
7237
7200
|
w(e), c?.();
|
|
7238
7201
|
}, te = () => {
|
|
7239
7202
|
s(C), t();
|
|
@@ -7268,10 +7231,10 @@ function Ga({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
7268
7231
|
sx: $.sxGrid(f, O),
|
|
7269
7232
|
children: _.map((e) => /* @__PURE__ */ L(z, {
|
|
7270
7233
|
sx: { gridColumn: !O && e.span && e.span > 1 ? `span ${e.span}` : void 0 },
|
|
7271
|
-
children: /* @__PURE__ */ L(
|
|
7234
|
+
children: /* @__PURE__ */ L(La, {
|
|
7272
7235
|
field: e,
|
|
7273
7236
|
value: C[e.name],
|
|
7274
|
-
onChange: (t) =>
|
|
7237
|
+
onChange: (t) => D(e.name, t)
|
|
7275
7238
|
})
|
|
7276
7239
|
}, e.name))
|
|
7277
7240
|
})
|
|
@@ -7281,7 +7244,7 @@ function Ga({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
7281
7244
|
children: [/* @__PURE__ */ L(Zt, {
|
|
7282
7245
|
type: "button",
|
|
7283
7246
|
disableElevation: !0,
|
|
7284
|
-
onClick:
|
|
7247
|
+
onClick: ee,
|
|
7285
7248
|
sx: $.sxReset,
|
|
7286
7249
|
"data-testid": m ? `${m}-btn-reset` : void 0,
|
|
7287
7250
|
children: b
|
|
@@ -7313,7 +7276,7 @@ function Ga({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
7313
7276
|
}
|
|
7314
7277
|
//#endregion
|
|
7315
7278
|
//#region src/lib/components/confirm-dialog/CmsConfirmDialog.styles.ts
|
|
7316
|
-
var
|
|
7279
|
+
var Va = {
|
|
7317
7280
|
sxPaper: (e, t, n) => ({
|
|
7318
7281
|
position: "relative",
|
|
7319
7282
|
width: e ?? "auto",
|
|
@@ -7385,16 +7348,16 @@ var Ka = {
|
|
|
7385
7348
|
mt: "auto",
|
|
7386
7349
|
pt: "8px"
|
|
7387
7350
|
}
|
|
7388
|
-
},
|
|
7351
|
+
}, Ha = {
|
|
7389
7352
|
start: "flex-start",
|
|
7390
7353
|
center: "center",
|
|
7391
7354
|
end: "flex-end",
|
|
7392
7355
|
between: "space-between"
|
|
7393
|
-
},
|
|
7356
|
+
}, Ua = {
|
|
7394
7357
|
sxRoot: (e) => ({
|
|
7395
7358
|
display: "flex",
|
|
7396
7359
|
alignItems: "center",
|
|
7397
|
-
justifyContent:
|
|
7360
|
+
justifyContent: Ha[e],
|
|
7398
7361
|
gap: "10px",
|
|
7399
7362
|
width: "100%"
|
|
7400
7363
|
}),
|
|
@@ -7420,12 +7383,12 @@ var Ka = {
|
|
|
7420
7383
|
}
|
|
7421
7384
|
},
|
|
7422
7385
|
sxCancelButton: (e) => ({
|
|
7423
|
-
...
|
|
7424
|
-
...e ?
|
|
7386
|
+
...Ua.sxCancel,
|
|
7387
|
+
...e ? Ua.sxGrow : {}
|
|
7425
7388
|
}),
|
|
7426
7389
|
sxConfirmButton: (e, t) => ({
|
|
7427
|
-
...
|
|
7428
|
-
...t ?
|
|
7390
|
+
...Ua.sxConfirm(e),
|
|
7391
|
+
...t ? Ua.sxGrow : {}
|
|
7429
7392
|
}),
|
|
7430
7393
|
sxConfirm: (e) => {
|
|
7431
7394
|
let t = e === "danger" ? O.danger : O.primary, n = e === "danger" ? O.dangerHover : O.primaryHover;
|
|
@@ -7456,17 +7419,17 @@ var Ka = {
|
|
|
7456
7419
|
};
|
|
7457
7420
|
//#endregion
|
|
7458
7421
|
//#region src/lib/components/confirm-dialog/CmsDialogActions.tsx
|
|
7459
|
-
function
|
|
7422
|
+
function Wa({ cancelLabel: e, onCancel: t, confirmLabel: n, onConfirm: r, confirmIcon: i, confirmColor: a = "primary", cancelDisabled: o, confirmDisabled: s, fullWidth: c = !0, align: l = "end", testId: u }) {
|
|
7460
7423
|
let d = e != null, f = n != null;
|
|
7461
7424
|
return !d && !f ? null : /* @__PURE__ */ R(z, {
|
|
7462
|
-
sx:
|
|
7425
|
+
sx: Ua.sxRoot(l),
|
|
7463
7426
|
"data-testid": u,
|
|
7464
7427
|
children: [d && /* @__PURE__ */ L(Zt, {
|
|
7465
7428
|
type: "button",
|
|
7466
7429
|
disableElevation: !0,
|
|
7467
7430
|
onClick: t,
|
|
7468
7431
|
disabled: o,
|
|
7469
|
-
sx:
|
|
7432
|
+
sx: Ua.sxCancelButton(c),
|
|
7470
7433
|
"data-testid": u ? `${u}-btn-cancel` : void 0,
|
|
7471
7434
|
"data-action": "cancel",
|
|
7472
7435
|
children: e
|
|
@@ -7476,7 +7439,7 @@ function Ya({ cancelLabel: e, onCancel: t, confirmLabel: n, onConfirm: r, confir
|
|
|
7476
7439
|
onClick: r,
|
|
7477
7440
|
disabled: s,
|
|
7478
7441
|
startIcon: i ?? void 0,
|
|
7479
|
-
sx:
|
|
7442
|
+
sx: Ua.sxConfirmButton(a, c),
|
|
7480
7443
|
"data-testid": u ? `${u}-btn-confirm` : void 0,
|
|
7481
7444
|
"data-action": "confirm",
|
|
7482
7445
|
children: n
|
|
@@ -7485,7 +7448,7 @@ function Ya({ cancelLabel: e, onCancel: t, confirmLabel: n, onConfirm: r, confir
|
|
|
7485
7448
|
}
|
|
7486
7449
|
//#endregion
|
|
7487
7450
|
//#region src/lib/components/confirm-dialog/CmsConfirmDialog.tsx
|
|
7488
|
-
function
|
|
7451
|
+
function Ga({ open: e, onClose: t, icon: n, iconColor: r = O.textNav, title: i, description: a, showClose: o = !0, closeAriaLabel: s, cancelLabel: c, onCancel: l, confirmLabel: u, onConfirm: d, confirmIcon: f, confirmColor: p = "primary", cancelDisabled: m, confirmDisabled: h, fullWidthActions: g = !1, actionsAlign: _ = "end", width: v, minWidth: y = 420, minHeight: b = 280, disableBackdropClose: x, testId: S }) {
|
|
7489
7452
|
let C = c != null || u != null;
|
|
7490
7453
|
return /* @__PURE__ */ R(Pn, {
|
|
7491
7454
|
open: e,
|
|
@@ -7494,34 +7457,34 @@ function Xa({ open: e, onClose: t, icon: n, iconColor: r = O.textNav, title: i,
|
|
|
7494
7457
|
},
|
|
7495
7458
|
maxWidth: !1,
|
|
7496
7459
|
slotProps: { paper: {
|
|
7497
|
-
sx:
|
|
7460
|
+
sx: Va.sxPaper(v, y, b),
|
|
7498
7461
|
...S == null ? {} : { "data-testid": S }
|
|
7499
7462
|
} },
|
|
7500
7463
|
children: [
|
|
7501
7464
|
o && /* @__PURE__ */ L(B, {
|
|
7502
7465
|
"aria-label": s ?? "Close",
|
|
7503
7466
|
onClick: t,
|
|
7504
|
-
sx:
|
|
7467
|
+
sx: Va.sxClose,
|
|
7505
7468
|
"data-testid": S ? `${S}-icon-btn-close` : void 0,
|
|
7506
7469
|
children: /* @__PURE__ */ L($e, {})
|
|
7507
7470
|
}),
|
|
7508
7471
|
n != null && /* @__PURE__ */ L(z, {
|
|
7509
|
-
sx:
|
|
7472
|
+
sx: Va.sxIcon(r),
|
|
7510
7473
|
children: n
|
|
7511
7474
|
}),
|
|
7512
7475
|
i != null && /* @__PURE__ */ L(z, {
|
|
7513
7476
|
component: "h2",
|
|
7514
|
-
sx:
|
|
7477
|
+
sx: Va.sxTitle,
|
|
7515
7478
|
children: i
|
|
7516
7479
|
}),
|
|
7517
7480
|
a != null && /* @__PURE__ */ L(z, {
|
|
7518
7481
|
component: "p",
|
|
7519
|
-
sx:
|
|
7482
|
+
sx: Va.sxDescription,
|
|
7520
7483
|
children: a
|
|
7521
7484
|
}),
|
|
7522
7485
|
C && /* @__PURE__ */ L(z, {
|
|
7523
|
-
sx:
|
|
7524
|
-
children: /* @__PURE__ */ L(
|
|
7486
|
+
sx: Va.sxActions,
|
|
7487
|
+
children: /* @__PURE__ */ L(Wa, {
|
|
7525
7488
|
cancelLabel: c,
|
|
7526
7489
|
onCancel: l ?? t,
|
|
7527
7490
|
confirmLabel: u,
|
|
@@ -7539,6 +7502,6 @@ function Xa({ open: e, onClose: t, icon: n, iconColor: r = O.textNav, title: i,
|
|
|
7539
7502
|
});
|
|
7540
7503
|
}
|
|
7541
7504
|
//#endregion
|
|
7542
|
-
export { Nr as ACCOUNT_NAV_BLOCKS,
|
|
7505
|
+
export { Nr as ACCOUNT_NAV_BLOCKS, Zi as AppShell, ya as BtnDropdown, Ba as CmsAdvancedSearch, i as CmsAudiosServices, t as CmsAuthLoginServices, o as CmsAuthServices, a as CmsCategoriesServices, Ta as CmsCheckboxField, b as CmsCkeditorServices, Da as CmsComboboxField, r as CmsCommentsServices, Ae as CmsCommonServices, Ga as CmsConfirmDialog, y as CmsContributionsServices, Fe as CmsCopilotServices, g as CmsDashboardServices, ja as CmsDateField, Wa as CmsDialogActions, ca as CmsErrorPage, Le as CmsEventsServices, Ne as CmsFileExplorerServices, fa as CmsFontFaces, D as CmsGeneralServices, gr as CmsI18nProvider, ue as CmsImagesServices, ma as CmsMuiProvider, Ma as CmsMultiSelectField, fe as CmsNewsServices, ye as CmsNotificationServices, Na as CmsNumberField, we as CmsPeopleServices, ce as CmsPlanningServices, ae as CmsPollsServices, h as CmsPreviewServices, ne as CmsProductivityPlanServices, m as CmsProfileServices, p as CmsPublicationsServices, Me as CmsRecipesServices, wa as CmsSearchField, Ie as CmsSectionsServices, Pa as CmsSelectField, ge as CmsSitesServices, Fa as CmsTagsField, be as CmsTagsServices, Ia as CmsTextField, xr as CmsToast, Sr as CmsToastContext, Cr as CmsToastProvider, Ee as CmsTranscribeServices, me as CmsTriviasServices, _e as CmsUploadServices, ve as CmsUsersServices, te as CmsVideosServices, Se as CmsVodsServices, Oe as CmsWorkpaperServices, re as CmsZonesServices, Ii as CurrentUserPhotoProvider, pr as DEFAULT_LOCALE, Zr as DEFAULT_NEW_CONTENT_GROUPS, wi as DEFAULT_PREVIEW_FORMATS, c as DEFAULT_SITE_ID, Er as DefaultCmsLink, La as FieldRenderer, Ea as FieldShell, x as ITEM_DEFAULT_BG, C as ITEM_HOVER_BG, Wn as LIB_VERSION, s as MENU_BG, ni as NewContentMenu, ga as NextCmsMuiProvider, vi as NotificationsMenu, Ti as PreviewMenu, Wi as ProfileMenu, fr as SUPPORTED_LOCALES, Sa as SelectDropdown, er as SelectStyles, oa as Sidebar, Vr as SidebarRail, Ci as SimpleDropdown, Jr as SiteSelectorMenu, Yi as TopBar, zi as UserAvatar, Ra as buildDefaultSearchFields, Qn as cmsButtonDivider, Zn as cmsButtonHoverBg, Xn as cmsButtonSurface, O as cmsColors, tr as cmsFontFaces, De as commonErrorsEn, xe as commonErrorsEs, je as commonErrorsPt, Ce as confidenceColors, Yn as createAppTheme, ir as createTranslator, cr as defaultLocaleCatalog, ke as editorialOpportunityColors, ar as enMessages, or as esMessages, ie as feedbackBadgeColors, k as feedbackColors, Z as fieldStyles, l as filterModulesByPermissions, d as findPublicationBySlug, Te as findPublicationLabel, M as fontFamilies, v as formatSiteDateTime, u as getAllPublications, _ as getCommonError, T as getDefaultPublicationSlug, _r as getIntlLocaleTag, ji as getProfileAvatarSrc, Mi as getProfileDisplayName, Re as getSiteNow, f as hasModulePermission, oe as interestColors, Qr as isNewContentItemVisible, dr as mergeAppMessages, lr as mergeMessages, e as normalizeErrorCode, mr as normalizeLocale, le as notificationColors, n as parseGmtOffsetMinutes, w as parsePublicationSlug, sr as ptMessages, j as radii, Oi as resolveCmsAssetUrl, Di as resolveCmsOrigin, se as resolveErrorSeverity, A as shadows, pe as sizes, de as sourceColors, ee as stateColors, Gr as submitLegacyAdminPage, $n as sxPillButton, S as toSiteWallClock, E as toTestId, Tr as useCmsToast, U as useCmsTranslation, Li as useCurrentUserPhoto, Pe as userStatusColors };
|
|
7543
7506
|
|
|
7544
7507
|
//# sourceMappingURL=index.js.map
|