sass-cms-template-common 0.0.5 → 0.0.6
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 +5051 -146
- package/dist/index.js +881 -408
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +4733 -136
- package/dist/server.js +2 -2
- package/dist/services-BqEo-2mI.js +3349 -0
- package/dist/services-BqEo-2mI.js.map +1 -0
- package/package.json +1 -1
- package/dist/services-CK6pkce_.js +0 -178
- package/dist/services-CK6pkce_.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,70 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ThemeProvider as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import { AppRouterCacheProvider as
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, K as l, L as u, M as d, N as f, O as p, P as m, R as h, S as g, T as _, U as v, V as y, W as b, _ as x, a as S, b as C, c as w, d as ee, f as te, g as ne, h as re, i as ie, j as ae, k as oe, l as se, m as ce, n as le, o as ue, p as de, q as T, r as fe, s as pe, t as me, u as he, v as ge, w as _e, x as ve, y as ye, z as be } from "./services-BqEo-2mI.js";
|
|
2
|
+
import { ThemeProvider as xe, alpha as E, createTheme as Se } from "@mui/material/styles";
|
|
3
|
+
import { Fragment as Ce, createContext as we, forwardRef as Te, useContext as Ee, useMemo as D, useState as O } from "react";
|
|
4
|
+
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
5
|
+
import M from "@mui/material/Box";
|
|
6
|
+
import De from "@mui/icons-material/ChevronRight";
|
|
7
|
+
import Oe from "@mui/icons-material/ExpandMore";
|
|
8
|
+
import ke from "@mui/material/Collapse";
|
|
9
|
+
import N from "@mui/material/IconButton";
|
|
10
|
+
import P from "@mui/material/ListItemIcon";
|
|
11
|
+
import Ae from "@mui/material/ListItemText";
|
|
12
|
+
import F from "@mui/material/Menu";
|
|
13
|
+
import I from "@mui/material/MenuItem";
|
|
14
|
+
import je from "@mui/material/Tooltip";
|
|
15
|
+
import L from "@mui/material/Typography";
|
|
16
|
+
import Me from "@mui/icons-material/BarChartOutlined";
|
|
17
|
+
import Ne from "@mui/icons-material/BookmarkBorderOutlined";
|
|
18
|
+
import Pe from "@mui/icons-material/ChatBubbleOutlineOutlined";
|
|
19
|
+
import Fe from "@mui/icons-material/CreateOutlined";
|
|
20
|
+
import Ie from "@mui/icons-material/EventOutlined";
|
|
21
|
+
import Le from "@mui/icons-material/ExploreOutlined";
|
|
22
|
+
import Re from "@mui/icons-material/ImageOutlined";
|
|
23
|
+
import ze from "@mui/icons-material/ImportExportOutlined";
|
|
24
|
+
import Be from "@mui/icons-material/LabelOutlined";
|
|
25
|
+
import Ve from "@mui/icons-material/MailOutlineOutlined";
|
|
26
|
+
import He from "@mui/icons-material/MoreHorizOutlined";
|
|
27
|
+
import Ue from "@mui/icons-material/NotificationsNoneOutlined";
|
|
28
|
+
import We from "@mui/icons-material/PeopleOutlineOutlined";
|
|
29
|
+
import Ge from "@mui/icons-material/PeopleOutlined";
|
|
30
|
+
import Ke from "@mui/icons-material/PermMediaOutlined";
|
|
31
|
+
import qe from "@mui/icons-material/PlayCircleOutlineOutlined";
|
|
32
|
+
import Je from "@mui/icons-material/RestaurantOutlined";
|
|
33
|
+
import Ye from "@mui/icons-material/SearchOutlined";
|
|
34
|
+
import Xe from "@mui/icons-material/ShoppingCartOutlined";
|
|
35
|
+
import Ze from "@mui/icons-material/ViewListOutlined";
|
|
36
|
+
import Qe from "@mui/icons-material/FormatAlignCenter";
|
|
37
|
+
import $e from "@mui/icons-material/TimelineOutlined";
|
|
38
|
+
import et from "@mui/icons-material/MessageOutlined";
|
|
39
|
+
import tt from "@mui/icons-material/MicNoneOutlined";
|
|
40
|
+
import nt from "@mui/icons-material/PlaylistPlayOutlined";
|
|
41
|
+
import rt from "@mui/icons-material/PendingActionsOutlined";
|
|
42
|
+
import it from "@mui/icons-material/ForumOutlined";
|
|
43
|
+
import at from "@mui/icons-material/UsbOutlined";
|
|
44
|
+
import ot from "@mui/icons-material/FormatListBulletedOutlined";
|
|
45
|
+
import st from "@mui/icons-material/VerticalSplitOutlined";
|
|
46
|
+
import ct from "@mui/icons-material/ViewQuiltOutlined";
|
|
47
|
+
import lt from "@mui/icons-material/SubscriptionsOutlined";
|
|
48
|
+
import ut from "@mui/icons-material/AddOutlined";
|
|
49
|
+
import dt from "@mui/icons-material/DevicesOtherOutlined";
|
|
50
|
+
import ft from "@mui/icons-material/HelpOutlineOutlined";
|
|
51
|
+
import pt from "@mui/icons-material/Menu";
|
|
52
|
+
import mt from "@mui/material/AppBar";
|
|
53
|
+
import ht from "@mui/material/Toolbar";
|
|
54
|
+
import gt from "@mui/icons-material/KeyboardArrowDown";
|
|
55
|
+
import R from "@mui/material/Button";
|
|
56
|
+
import _t from "@mui/material/Badge";
|
|
57
|
+
import vt from "@mui/material/List";
|
|
58
|
+
import yt from "@mui/material/ListItemButton";
|
|
59
|
+
import bt from "@mui/icons-material/EditOutlined";
|
|
60
|
+
import xt from "@mui/icons-material/LogoutOutlined";
|
|
61
|
+
import St from "@mui/icons-material/PersonOutlined";
|
|
62
|
+
import Ct from "@mui/material/Avatar";
|
|
63
|
+
import wt from "@mui/material/Divider";
|
|
64
|
+
import Tt from "@mui/material/CssBaseline";
|
|
65
|
+
import { AppRouterCacheProvider as Et } from "@mui/material-nextjs/v16-appRouter";
|
|
66
|
+
import Dt from "@mui/icons-material/MoreVert";
|
|
67
|
+
import Ot from "@mui/icons-material/ArrowDropDown";
|
|
66
68
|
//#region src/lib/version.ts
|
|
67
|
-
var
|
|
69
|
+
var kt = "0.0.0", z = {
|
|
68
70
|
description: "TYPE: CUSTOM\nMaterial Theme Builder export 2026-05-08 02:18:51",
|
|
69
71
|
seed: "#0067C4",
|
|
70
72
|
coreColors: {
|
|
@@ -529,10 +531,10 @@ var Je = "0.0.0", F = {
|
|
|
529
531
|
};
|
|
530
532
|
//#endregion
|
|
531
533
|
//#region src/lib/theme/createAppTheme.ts
|
|
532
|
-
function
|
|
533
|
-
return
|
|
534
|
+
function B(e) {
|
|
535
|
+
return z.extendedColors.find((t) => t.name === e)?.color;
|
|
534
536
|
}
|
|
535
|
-
function
|
|
537
|
+
function At(e) {
|
|
536
538
|
return {
|
|
537
539
|
50: e[98],
|
|
538
540
|
100: e[95],
|
|
@@ -550,7 +552,7 @@ function Ye(e) {
|
|
|
550
552
|
A700: e[40]
|
|
551
553
|
};
|
|
552
554
|
}
|
|
553
|
-
function
|
|
555
|
+
function jt(e, t) {
|
|
554
556
|
let n = t.onSurface;
|
|
555
557
|
return {
|
|
556
558
|
mode: e,
|
|
@@ -579,28 +581,28 @@ function Xe(e, t) {
|
|
|
579
581
|
contrastText: t.onError
|
|
580
582
|
},
|
|
581
583
|
warning: {
|
|
582
|
-
main:
|
|
584
|
+
main: B("Estado Programado") ?? "#FF6D00",
|
|
583
585
|
light: "#FF9E40",
|
|
584
586
|
dark: "#C25400",
|
|
585
587
|
contrastText: "#FFFFFF"
|
|
586
588
|
},
|
|
587
589
|
info: {
|
|
588
|
-
main:
|
|
590
|
+
main: B("Estado Redaccion") ?? "#0091EA",
|
|
589
591
|
light: "#64B5F6",
|
|
590
592
|
dark: "#0064B7",
|
|
591
593
|
contrastText: "#FFFFFF"
|
|
592
594
|
},
|
|
593
595
|
success: {
|
|
594
|
-
main:
|
|
596
|
+
main: B("Estado publicada") ?? "#00C853",
|
|
595
597
|
light: "#69F0AE",
|
|
596
598
|
dark: "#009624",
|
|
597
599
|
contrastText: "#FFFFFF"
|
|
598
600
|
},
|
|
599
|
-
brand: { main:
|
|
601
|
+
brand: { main: B("Bluestack color") ?? "#2962FF" },
|
|
600
602
|
text: {
|
|
601
603
|
primary: t.onSurface,
|
|
602
604
|
secondary: t.onSurfaceVariant,
|
|
603
|
-
disabled:
|
|
605
|
+
disabled: E(t.onSurface, .38)
|
|
604
606
|
},
|
|
605
607
|
divider: t.outlineVariant,
|
|
606
608
|
background: {
|
|
@@ -608,18 +610,18 @@ function Xe(e, t) {
|
|
|
608
610
|
paper: t.surfaceContainerLowest
|
|
609
611
|
},
|
|
610
612
|
action: {
|
|
611
|
-
active:
|
|
612
|
-
hover:
|
|
613
|
-
selected:
|
|
614
|
-
focus:
|
|
615
|
-
disabled:
|
|
616
|
-
disabledBackground:
|
|
613
|
+
active: E(n, .56),
|
|
614
|
+
hover: E(n, e === "light" ? .04 : .08),
|
|
615
|
+
selected: E(t.primary, .12),
|
|
616
|
+
focus: E(t.primary, .12),
|
|
617
|
+
disabled: E(n, .26),
|
|
618
|
+
disabledBackground: E(n, .12)
|
|
617
619
|
},
|
|
618
620
|
common: {
|
|
619
621
|
black: t.shadow,
|
|
620
622
|
white: "#FFFFFF"
|
|
621
623
|
},
|
|
622
|
-
grey:
|
|
624
|
+
grey: At(z.palettes.neutral),
|
|
623
625
|
m3: {
|
|
624
626
|
surfaceTint: t.surfaceTint,
|
|
625
627
|
surfaceDim: t.surfaceDim,
|
|
@@ -641,9 +643,9 @@ function Xe(e, t) {
|
|
|
641
643
|
}
|
|
642
644
|
};
|
|
643
645
|
}
|
|
644
|
-
function
|
|
645
|
-
let e =
|
|
646
|
-
return
|
|
646
|
+
function Mt() {
|
|
647
|
+
let e = jt("light", z.schemes.light), t = jt("dark", z.schemes.dark);
|
|
648
|
+
return Se({
|
|
647
649
|
cssVariables: { colorSchemeSelector: "data" },
|
|
648
650
|
defaultColorScheme: "light",
|
|
649
651
|
colorSchemes: {
|
|
@@ -659,14 +661,137 @@ function L() {
|
|
|
659
661
|
});
|
|
660
662
|
}
|
|
661
663
|
//#endregion
|
|
664
|
+
//#region src/lib/theme/buttonStyles.ts
|
|
665
|
+
function V(e) {
|
|
666
|
+
return e === "white" ? {
|
|
667
|
+
bgcolor: "m3.surfaceContainerLowest",
|
|
668
|
+
color: b.whiteBtnText,
|
|
669
|
+
border: "1px solid",
|
|
670
|
+
borderColor: b.whiteBtnBorder
|
|
671
|
+
} : {
|
|
672
|
+
bgcolor: b.primary,
|
|
673
|
+
color: b.white,
|
|
674
|
+
border: "none",
|
|
675
|
+
borderColor: "transparent"
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
function H(e) {
|
|
679
|
+
return e === "cta" ? b.primaryHover : "action.hover";
|
|
680
|
+
}
|
|
681
|
+
function Nt(e) {
|
|
682
|
+
return e === "white" ? b.whiteBtnBorder : "rgba(255, 255, 255, 0.28)";
|
|
683
|
+
}
|
|
684
|
+
function Pt(e = "cta") {
|
|
685
|
+
return {
|
|
686
|
+
height: T.buttonHeight,
|
|
687
|
+
px: "20px",
|
|
688
|
+
borderRadius: o.pill,
|
|
689
|
+
textTransform: "none",
|
|
690
|
+
fontSize: 14,
|
|
691
|
+
fontWeight: 500,
|
|
692
|
+
minWidth: 0,
|
|
693
|
+
gap: 1,
|
|
694
|
+
boxShadow: l.button,
|
|
695
|
+
...V(e),
|
|
696
|
+
"& .MuiSvgIcon-root": { fontSize: 18 },
|
|
697
|
+
"&:hover": {
|
|
698
|
+
boxShadow: l.button,
|
|
699
|
+
bgcolor: H(e)
|
|
700
|
+
},
|
|
701
|
+
"&.Mui-disabled": {
|
|
702
|
+
bgcolor: e === "white" ? "m3.surfaceContainerLowest" : b.primaryDisabled,
|
|
703
|
+
color: "action.disabled"
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region src/lib/theme/selectStyles.ts
|
|
709
|
+
var U = {
|
|
710
|
+
sxTrigger: (e, t) => {
|
|
711
|
+
let n = e || t;
|
|
712
|
+
return {
|
|
713
|
+
display: "inline-flex",
|
|
714
|
+
alignItems: "center",
|
|
715
|
+
gap: "10px",
|
|
716
|
+
height: T.buttonHeight,
|
|
717
|
+
pl: "16px",
|
|
718
|
+
pr: "10px",
|
|
719
|
+
borderRadius: o.md,
|
|
720
|
+
textTransform: "none",
|
|
721
|
+
fontSize: 14,
|
|
722
|
+
fontWeight: 600,
|
|
723
|
+
minWidth: 0,
|
|
724
|
+
border: "1px solid",
|
|
725
|
+
color: b.controlText,
|
|
726
|
+
bgcolor: n ? b.secondary : "transparent",
|
|
727
|
+
borderColor: n ? "transparent" : b.controlBorder,
|
|
728
|
+
"&:hover": {
|
|
729
|
+
bgcolor: n ? b.secondary : b.controlHoverBg,
|
|
730
|
+
borderColor: n ? "transparent" : b.controlBorder
|
|
731
|
+
},
|
|
732
|
+
"& .sel-lead": {
|
|
733
|
+
display: "inline-flex",
|
|
734
|
+
color: "inherit"
|
|
735
|
+
},
|
|
736
|
+
"& .sel-lead .MuiSvgIcon-root": { fontSize: 18 },
|
|
737
|
+
"& .sel-chevron": {
|
|
738
|
+
display: "inline-flex",
|
|
739
|
+
color: "m3.onSurfaceVariant",
|
|
740
|
+
transition: "transform 0.18s ease",
|
|
741
|
+
transform: t ? "rotate(180deg)" : "none"
|
|
742
|
+
},
|
|
743
|
+
"& .sel-chevron .MuiSvgIcon-root": { fontSize: 18 }
|
|
744
|
+
};
|
|
745
|
+
},
|
|
746
|
+
sxMenuPaper: (e) => ({
|
|
747
|
+
mt: .75,
|
|
748
|
+
py: "8px",
|
|
749
|
+
px: 0,
|
|
750
|
+
minWidth: e,
|
|
751
|
+
borderRadius: o.lg,
|
|
752
|
+
bgcolor: "m3.surfaceContainerLowest",
|
|
753
|
+
border: "1px solid",
|
|
754
|
+
borderColor: "m3.outlineVariant",
|
|
755
|
+
boxShadow: l.menuSoft,
|
|
756
|
+
overflow: "hidden"
|
|
757
|
+
}),
|
|
758
|
+
sxList: {
|
|
759
|
+
p: 0,
|
|
760
|
+
display: "flex",
|
|
761
|
+
flexDirection: "column"
|
|
762
|
+
},
|
|
763
|
+
sxItem: (e) => ({
|
|
764
|
+
display: "flex",
|
|
765
|
+
alignItems: "center",
|
|
766
|
+
gap: "12px",
|
|
767
|
+
px: "16px",
|
|
768
|
+
py: "10px",
|
|
769
|
+
borderRadius: 0,
|
|
770
|
+
fontSize: 14,
|
|
771
|
+
fontWeight: 400,
|
|
772
|
+
color: b.controlText,
|
|
773
|
+
bgcolor: e ? b.secondary : "transparent",
|
|
774
|
+
"& .MuiListItemIcon-root": {
|
|
775
|
+
minWidth: 0,
|
|
776
|
+
color: "m3.onSurfaceVariant"
|
|
777
|
+
},
|
|
778
|
+
"& .MuiSvgIcon-root": { fontSize: 18 },
|
|
779
|
+
"&:hover": { bgcolor: b.secondaryHover },
|
|
780
|
+
"&.Mui-selected": {
|
|
781
|
+
bgcolor: b.secondary,
|
|
782
|
+
"&:hover": { bgcolor: b.secondaryHover }
|
|
783
|
+
}
|
|
784
|
+
})
|
|
785
|
+
};
|
|
786
|
+
//#endregion
|
|
662
787
|
//#region src/lib/i18n/createTranslator.ts
|
|
663
|
-
function
|
|
788
|
+
function Ft(e, t) {
|
|
664
789
|
return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
|
|
665
790
|
let r = t[n];
|
|
666
791
|
return r === void 0 ? `{${n}}` : String(r);
|
|
667
792
|
}) : e;
|
|
668
793
|
}
|
|
669
|
-
function
|
|
794
|
+
function It(e) {
|
|
670
795
|
let t = e.navigation;
|
|
671
796
|
return {
|
|
672
797
|
messages: e,
|
|
@@ -674,12 +799,12 @@ function R(e) {
|
|
|
674
799
|
sidebar: (t) => e.sidebar[t],
|
|
675
800
|
topBar: (t) => e.topBar[t],
|
|
676
801
|
profileMenu: (t) => e.profileMenu[t],
|
|
677
|
-
notificationsMenu: (t, n) =>
|
|
802
|
+
notificationsMenu: (t, n) => Ft(e.notificationsMenu[t], n)
|
|
678
803
|
};
|
|
679
804
|
}
|
|
680
805
|
//#endregion
|
|
681
806
|
//#region src/lib/i18n/messages/en.ts
|
|
682
|
-
var
|
|
807
|
+
var Lt = {
|
|
683
808
|
navigation: {
|
|
684
809
|
COMMENTS: "Comments",
|
|
685
810
|
POLLS: "Polls",
|
|
@@ -745,7 +870,7 @@ var Qe = {
|
|
|
745
870
|
empty: "No notifications",
|
|
746
871
|
ariaLabel: "Notifications"
|
|
747
872
|
}
|
|
748
|
-
},
|
|
873
|
+
}, Rt = {
|
|
749
874
|
navigation: {
|
|
750
875
|
COMMENTS: "Comentarios",
|
|
751
876
|
POLLS: "Encuestas",
|
|
@@ -811,7 +936,7 @@ var Qe = {
|
|
|
811
936
|
empty: "No hay notificaciones",
|
|
812
937
|
ariaLabel: "Notificaciones"
|
|
813
938
|
}
|
|
814
|
-
},
|
|
939
|
+
}, zt = {
|
|
815
940
|
navigation: {
|
|
816
941
|
COMMENTS: "Comentários",
|
|
817
942
|
POLLS: "Enquetes",
|
|
@@ -877,37 +1002,37 @@ var Qe = {
|
|
|
877
1002
|
empty: "Nenhuma notificação",
|
|
878
1003
|
ariaLabel: "Notificações"
|
|
879
1004
|
}
|
|
880
|
-
},
|
|
881
|
-
en:
|
|
882
|
-
es:
|
|
883
|
-
pt:
|
|
1005
|
+
}, Bt = {
|
|
1006
|
+
en: Lt,
|
|
1007
|
+
es: Rt,
|
|
1008
|
+
pt: zt
|
|
884
1009
|
};
|
|
885
|
-
function
|
|
1010
|
+
function W(e, t) {
|
|
886
1011
|
return t ? {
|
|
887
1012
|
...e,
|
|
888
1013
|
...t
|
|
889
1014
|
} : e;
|
|
890
1015
|
}
|
|
891
|
-
function
|
|
1016
|
+
function Vt(e, t, n) {
|
|
892
1017
|
let r = t[e], i = t.en;
|
|
893
1018
|
return {
|
|
894
|
-
navigation:
|
|
1019
|
+
navigation: W({
|
|
895
1020
|
...i.navigation,
|
|
896
1021
|
...r.navigation
|
|
897
1022
|
}, n?.navigation),
|
|
898
|
-
sidebar:
|
|
1023
|
+
sidebar: W({
|
|
899
1024
|
...i.sidebar,
|
|
900
1025
|
...r.sidebar
|
|
901
1026
|
}, n?.sidebar),
|
|
902
|
-
topBar:
|
|
1027
|
+
topBar: W({
|
|
903
1028
|
...i.topBar,
|
|
904
1029
|
...r.topBar
|
|
905
1030
|
}, n?.topBar),
|
|
906
|
-
profileMenu:
|
|
1031
|
+
profileMenu: W({
|
|
907
1032
|
...i.profileMenu,
|
|
908
1033
|
...r.profileMenu
|
|
909
1034
|
}, n?.profileMenu),
|
|
910
|
-
notificationsMenu:
|
|
1035
|
+
notificationsMenu: W({
|
|
911
1036
|
...i.notificationsMenu,
|
|
912
1037
|
...r.notificationsMenu
|
|
913
1038
|
}, n?.notificationsMenu)
|
|
@@ -915,42 +1040,42 @@ function V(e, t, n) {
|
|
|
915
1040
|
}
|
|
916
1041
|
//#endregion
|
|
917
1042
|
//#region src/lib/i18n/types.ts
|
|
918
|
-
var
|
|
1043
|
+
var Ht = [
|
|
919
1044
|
"es",
|
|
920
1045
|
"en",
|
|
921
1046
|
"pt"
|
|
922
|
-
],
|
|
1047
|
+
], Ut = "en";
|
|
923
1048
|
//#endregion
|
|
924
1049
|
//#region src/lib/i18n/normalizeLocale.ts
|
|
925
|
-
function
|
|
1050
|
+
function Wt(e) {
|
|
926
1051
|
if (!e) return "en";
|
|
927
1052
|
let t = e.trim().toLowerCase().replace("_", "-"), n = t.split("-")[0];
|
|
928
|
-
return
|
|
1053
|
+
return Ht.includes(t) ? t : Ht.includes(n) ? n : "en";
|
|
929
1054
|
}
|
|
930
1055
|
//#endregion
|
|
931
1056
|
//#region src/lib/i18n/CmsI18nProvider.tsx
|
|
932
|
-
var
|
|
933
|
-
function
|
|
934
|
-
let a =
|
|
1057
|
+
var Gt = we(null);
|
|
1058
|
+
function Kt({ locale: e, language: t, messages: n, catalog: r = Bt, children: i }) {
|
|
1059
|
+
let a = Wt(e ?? t), o = D(() => ({
|
|
935
1060
|
locale: a,
|
|
936
|
-
t:
|
|
1061
|
+
t: It(Vt(a, r, n))
|
|
937
1062
|
}), [
|
|
938
1063
|
r,
|
|
939
1064
|
n,
|
|
940
1065
|
a
|
|
941
1066
|
]);
|
|
942
|
-
return /* @__PURE__ */
|
|
1067
|
+
return /* @__PURE__ */ A(Gt.Provider, {
|
|
943
1068
|
value: o,
|
|
944
1069
|
children: i
|
|
945
1070
|
});
|
|
946
1071
|
}
|
|
947
1072
|
//#endregion
|
|
948
1073
|
//#region src/lib/i18n/useCmsTranslation.ts
|
|
949
|
-
function
|
|
950
|
-
let t =
|
|
1074
|
+
function G(e) {
|
|
1075
|
+
let t = Ee(Gt), n = e?.locale ?? t?.locale ?? "en", r = e?.catalog ?? Bt, i = e?.messages;
|
|
951
1076
|
return {
|
|
952
1077
|
locale: n,
|
|
953
|
-
t:
|
|
1078
|
+
t: D(() => !i && t && t.locale === n ? t.t : It(Vt(n, r, i)), [
|
|
954
1079
|
r,
|
|
955
1080
|
t,
|
|
956
1081
|
n,
|
|
@@ -958,7 +1083,7 @@ function U(e) {
|
|
|
958
1083
|
])
|
|
959
1084
|
};
|
|
960
1085
|
}
|
|
961
|
-
function
|
|
1086
|
+
function qt(e) {
|
|
962
1087
|
switch (e) {
|
|
963
1088
|
case "pt": return "pt-BR";
|
|
964
1089
|
case "en": return "en-US";
|
|
@@ -967,14 +1092,14 @@ function at(e) {
|
|
|
967
1092
|
}
|
|
968
1093
|
//#endregion
|
|
969
1094
|
//#region src/lib/components/link.tsx
|
|
970
|
-
var
|
|
971
|
-
return /* @__PURE__ */
|
|
1095
|
+
var Jt = Te(function({ href: e, children: t, ...n }, r) {
|
|
1096
|
+
return /* @__PURE__ */ A("a", {
|
|
972
1097
|
href: e,
|
|
973
1098
|
ref: r,
|
|
974
1099
|
...n,
|
|
975
1100
|
children: t
|
|
976
1101
|
});
|
|
977
|
-
}),
|
|
1102
|
+
}), K = b.secondary, Yt = b.surfaceHover, q = b.textNav, Xt = 24, Zt = 24, J = {
|
|
978
1103
|
sxRoot: (e) => {
|
|
979
1104
|
let t = e ? 195 : 96;
|
|
980
1105
|
return {
|
|
@@ -1032,7 +1157,7 @@ var W = h(function({ href: e, children: t, ...n }, r) {
|
|
|
1032
1157
|
}),
|
|
1033
1158
|
sxDivider: {
|
|
1034
1159
|
my: 1,
|
|
1035
|
-
borderColor:
|
|
1160
|
+
borderColor: b.border
|
|
1036
1161
|
},
|
|
1037
1162
|
sxItem: (e, t = !1, n = !1, r = !1) => r ? {
|
|
1038
1163
|
position: "relative",
|
|
@@ -1048,10 +1173,10 @@ var W = h(function({ href: e, children: t, ...n }, r) {
|
|
|
1048
1173
|
px: 0,
|
|
1049
1174
|
py: 0,
|
|
1050
1175
|
borderRadius: "100px",
|
|
1051
|
-
color:
|
|
1176
|
+
color: q,
|
|
1052
1177
|
textDecoration: "none",
|
|
1053
|
-
bgcolor: e ?
|
|
1054
|
-
"&:hover": { bgcolor: e ?
|
|
1178
|
+
bgcolor: e ? K : "transparent",
|
|
1179
|
+
"&:hover": { bgcolor: e ? K : "action.hover" }
|
|
1055
1180
|
} : {
|
|
1056
1181
|
position: "relative",
|
|
1057
1182
|
display: "flex",
|
|
@@ -1069,13 +1194,13 @@ var W = h(function({ href: e, children: t, ...n }, r) {
|
|
|
1069
1194
|
ml: "-1rem",
|
|
1070
1195
|
mr: 0,
|
|
1071
1196
|
borderRadius: t ? "100px" : "0 100px 100px 0",
|
|
1072
|
-
color:
|
|
1197
|
+
color: q,
|
|
1073
1198
|
textDecoration: "none",
|
|
1074
|
-
bgcolor: e ?
|
|
1075
|
-
"&:hover": { bgcolor: e ?
|
|
1199
|
+
bgcolor: e ? K : "transparent",
|
|
1200
|
+
"&:hover": { bgcolor: e ? K : Yt }
|
|
1076
1201
|
},
|
|
1077
1202
|
sxItemIcon: (e, t = !1) => ({
|
|
1078
|
-
fontSize: t ?
|
|
1203
|
+
fontSize: t ? Zt : Xt,
|
|
1079
1204
|
color: e ? "secondary.dark" : "m3.onSurfaceVariant",
|
|
1080
1205
|
width: t ? 48 : "auto",
|
|
1081
1206
|
flexShrink: 0
|
|
@@ -1086,7 +1211,7 @@ var W = h(function({ href: e, children: t, ...n }, r) {
|
|
|
1086
1211
|
fontSize: 14,
|
|
1087
1212
|
fontWeight: e ? 600 : 400,
|
|
1088
1213
|
lineHeight: 1.43,
|
|
1089
|
-
color:
|
|
1214
|
+
color: q,
|
|
1090
1215
|
overflow: "hidden",
|
|
1091
1216
|
textOverflow: "ellipsis",
|
|
1092
1217
|
whiteSpace: "nowrap"
|
|
@@ -1103,9 +1228,9 @@ var W = h(function({ href: e, children: t, ...n }, r) {
|
|
|
1103
1228
|
},
|
|
1104
1229
|
sxChildrenMenuPaper: {
|
|
1105
1230
|
mt: .5,
|
|
1106
|
-
borderRadius:
|
|
1107
|
-
bgcolor:
|
|
1108
|
-
boxShadow:
|
|
1231
|
+
borderRadius: o.xl,
|
|
1232
|
+
bgcolor: b.white,
|
|
1233
|
+
boxShadow: l.flyout,
|
|
1109
1234
|
px: 1
|
|
1110
1235
|
},
|
|
1111
1236
|
sxChildrenMenuItem: (e) => ({
|
|
@@ -1114,12 +1239,12 @@ var W = h(function({ href: e, children: t, ...n }, r) {
|
|
|
1114
1239
|
px: 2,
|
|
1115
1240
|
py: 1,
|
|
1116
1241
|
gap: 1.25,
|
|
1117
|
-
color:
|
|
1118
|
-
bgcolor: e ?
|
|
1119
|
-
"&:hover": { bgcolor: e ?
|
|
1242
|
+
color: q,
|
|
1243
|
+
bgcolor: e ? K : "transparent",
|
|
1244
|
+
"&:hover": { bgcolor: e ? K : Yt },
|
|
1120
1245
|
"&.Mui-selected": {
|
|
1121
|
-
bgcolor:
|
|
1122
|
-
"&:hover": { bgcolor:
|
|
1246
|
+
bgcolor: K,
|
|
1247
|
+
"&:hover": { bgcolor: K }
|
|
1123
1248
|
}
|
|
1124
1249
|
}),
|
|
1125
1250
|
sxChildrenMenuListItemIcon: {
|
|
@@ -1143,241 +1268,241 @@ var W = h(function({ href: e, children: t, ...n }, r) {
|
|
|
1143
1268
|
alignItems: "center",
|
|
1144
1269
|
justifyContent: "center"
|
|
1145
1270
|
})
|
|
1146
|
-
},
|
|
1271
|
+
}, Qt = [
|
|
1147
1272
|
{
|
|
1148
1273
|
href: "/admin/comments/",
|
|
1149
|
-
icon:
|
|
1274
|
+
icon: et,
|
|
1150
1275
|
module: "COMMENTS"
|
|
1151
1276
|
},
|
|
1152
1277
|
{
|
|
1153
1278
|
href: "/system/modules/com.tfsla.diario.admin/templates/poll.jsp",
|
|
1154
|
-
icon:
|
|
1279
|
+
icon: Me,
|
|
1155
1280
|
module: "POLLS"
|
|
1156
1281
|
},
|
|
1157
1282
|
{
|
|
1158
1283
|
href: "/media",
|
|
1159
|
-
icon:
|
|
1284
|
+
icon: Ke,
|
|
1160
1285
|
module: "MEDIA",
|
|
1161
1286
|
children: [
|
|
1162
1287
|
{
|
|
1163
1288
|
href: "/system/modules/com.tfsla.diario.admin/templates/audios.jsp",
|
|
1164
|
-
icon:
|
|
1289
|
+
icon: tt,
|
|
1165
1290
|
module: "AUDIOS"
|
|
1166
1291
|
},
|
|
1167
1292
|
{
|
|
1168
1293
|
href: "/system/modules/com.tfsla.diario.admin/templates/playlist.jsp",
|
|
1169
|
-
icon:
|
|
1294
|
+
icon: Re,
|
|
1170
1295
|
module: "IMAGES"
|
|
1171
1296
|
},
|
|
1172
1297
|
{
|
|
1173
1298
|
href: "/media/playlist",
|
|
1174
|
-
icon:
|
|
1299
|
+
icon: nt,
|
|
1175
1300
|
module: "PLAYLISTS"
|
|
1176
1301
|
},
|
|
1177
1302
|
{
|
|
1178
1303
|
href: "/admin/videos/",
|
|
1179
|
-
icon:
|
|
1304
|
+
icon: qe,
|
|
1180
1305
|
module: "VIDEOS"
|
|
1181
1306
|
}
|
|
1182
1307
|
]
|
|
1183
1308
|
},
|
|
1184
1309
|
{
|
|
1185
1310
|
href: "/admin/posts/",
|
|
1186
|
-
icon:
|
|
1311
|
+
icon: Qe,
|
|
1187
1312
|
module: "POSTS"
|
|
1188
1313
|
},
|
|
1189
1314
|
{
|
|
1190
1315
|
href: "/admin/reports/",
|
|
1191
|
-
icon:
|
|
1316
|
+
icon: $e,
|
|
1192
1317
|
module: "PRODUCTION"
|
|
1193
1318
|
},
|
|
1194
1319
|
{
|
|
1195
1320
|
href: "/planificacion",
|
|
1196
|
-
icon:
|
|
1321
|
+
icon: rt,
|
|
1197
1322
|
module: "PLANNING"
|
|
1198
1323
|
},
|
|
1199
1324
|
{
|
|
1200
1325
|
href: "/tags",
|
|
1201
|
-
icon:
|
|
1326
|
+
icon: Be,
|
|
1202
1327
|
module: "TAGS"
|
|
1203
1328
|
},
|
|
1204
1329
|
{
|
|
1205
1330
|
href: "/system/modules/com.tfsla.diario.admin/templates/trivias.jsp",
|
|
1206
|
-
icon:
|
|
1331
|
+
icon: it,
|
|
1207
1332
|
module: "TRIVIAS"
|
|
1208
1333
|
},
|
|
1209
1334
|
{
|
|
1210
1335
|
href: "/otros",
|
|
1211
|
-
icon:
|
|
1336
|
+
icon: He,
|
|
1212
1337
|
module: "OTHERS",
|
|
1213
1338
|
children: [
|
|
1214
1339
|
{
|
|
1215
1340
|
href: "/system/modules/com.tfsla.diario.admin/templates/newswires.jsp",
|
|
1216
|
-
icon:
|
|
1341
|
+
icon: at,
|
|
1217
1342
|
module: "NEWSWIRES"
|
|
1218
1343
|
},
|
|
1219
1344
|
{
|
|
1220
1345
|
href: "/system/modules/com.tfsla.diario.admin/templates/event.jsp",
|
|
1221
|
-
icon:
|
|
1346
|
+
icon: Ie,
|
|
1222
1347
|
module: "EVENTS"
|
|
1223
1348
|
},
|
|
1224
1349
|
{
|
|
1225
1350
|
href: "/system/modules/com.tfsla.diario.admin/templates/adminPages.jsp",
|
|
1226
|
-
icon:
|
|
1351
|
+
icon: Le,
|
|
1227
1352
|
module: "PAGES"
|
|
1228
1353
|
},
|
|
1229
1354
|
{
|
|
1230
1355
|
href: "/system/modules/com.tfsla.diario.admin/templates/dashboard.jsp",
|
|
1231
|
-
icon:
|
|
1356
|
+
icon: ot,
|
|
1232
1357
|
module: "FEEDS"
|
|
1233
1358
|
},
|
|
1234
1359
|
{
|
|
1235
1360
|
href: "/system/modules/com.tfsla.diario.admin/templates/adminPages.jsp",
|
|
1236
|
-
icon:
|
|
1361
|
+
icon: Ge,
|
|
1237
1362
|
module: "PERSONS"
|
|
1238
1363
|
},
|
|
1239
1364
|
{
|
|
1240
1365
|
href: "/system/modules/com.tfsla.diario.admin/templates/adminPosts.jsp",
|
|
1241
|
-
icon:
|
|
1366
|
+
icon: Fe,
|
|
1242
1367
|
module: "POSTS"
|
|
1243
1368
|
},
|
|
1244
1369
|
{
|
|
1245
1370
|
href: "/system/modules/com.tfsla.diario.admin/templates/recipe.jsp",
|
|
1246
|
-
icon:
|
|
1371
|
+
icon: Je,
|
|
1247
1372
|
module: "RECIPES"
|
|
1248
1373
|
}
|
|
1249
1374
|
]
|
|
1250
1375
|
},
|
|
1251
1376
|
{
|
|
1252
1377
|
href: "/system/modules/com.tfsla.diario.admin/templates/banners.jsp",
|
|
1253
|
-
icon:
|
|
1378
|
+
icon: st,
|
|
1254
1379
|
module: "BANNERS"
|
|
1255
1380
|
},
|
|
1256
1381
|
{
|
|
1257
1382
|
href: "/system/modules/com.tfsla.diario.admin/templates/dynamicContent.jsp",
|
|
1258
|
-
icon:
|
|
1383
|
+
icon: ct,
|
|
1259
1384
|
module: "BLOCKS"
|
|
1260
1385
|
},
|
|
1261
1386
|
{
|
|
1262
1387
|
href: "/system/modules/com.tfsla.diario.admin/templates/menuSite.jsp",
|
|
1263
|
-
icon:
|
|
1388
|
+
icon: Ze,
|
|
1264
1389
|
module: "MENUS"
|
|
1265
1390
|
},
|
|
1266
1391
|
{
|
|
1267
1392
|
href: "/system/modules/com.tfsla.diario.admin/templates/navigationTags.jsp",
|
|
1268
|
-
icon:
|
|
1393
|
+
icon: Ne,
|
|
1269
1394
|
module: "TOPICS"
|
|
1270
1395
|
},
|
|
1271
1396
|
{
|
|
1272
1397
|
href: "/system/modules/com.tfsla.diario.admin/templates/filterQueryList.jsp",
|
|
1273
|
-
icon:
|
|
1398
|
+
icon: Ye,
|
|
1274
1399
|
module: "ADVANCEDQUERYS"
|
|
1275
1400
|
},
|
|
1276
1401
|
{
|
|
1277
1402
|
href: "/system/modules/com.tfsla.diario.admin/templates/adminImports.jsp",
|
|
1278
|
-
icon:
|
|
1403
|
+
icon: ze,
|
|
1279
1404
|
module: "IMPORTS"
|
|
1280
1405
|
},
|
|
1281
1406
|
{
|
|
1282
1407
|
href: "/system/modules/com.tfsla.diario.admin/templates/newsletter.jsp",
|
|
1283
|
-
icon:
|
|
1408
|
+
icon: Ve,
|
|
1284
1409
|
module: "NEWSLETTERS"
|
|
1285
1410
|
},
|
|
1286
1411
|
{
|
|
1287
1412
|
href: "/system/modules/com.tfsla.diario.admin/templates/adminQueues.jsp",
|
|
1288
|
-
icon:
|
|
1413
|
+
icon: Ue,
|
|
1289
1414
|
module: "NOTIFICATIONS"
|
|
1290
1415
|
},
|
|
1291
1416
|
{
|
|
1292
1417
|
href: "/system/modules/com.tfsla.diario.admin/templates/payments.jsp",
|
|
1293
|
-
icon:
|
|
1418
|
+
icon: Xe,
|
|
1294
1419
|
module: "PAYMENTS"
|
|
1295
1420
|
},
|
|
1296
1421
|
{
|
|
1297
1422
|
href: "/system/modules/com.tfsla.diario.admin/templates/subscriptions.jsp",
|
|
1298
|
-
icon:
|
|
1423
|
+
icon: lt,
|
|
1299
1424
|
module: "PAYMENTS"
|
|
1300
1425
|
},
|
|
1301
1426
|
{
|
|
1302
1427
|
href: "/twitter-feeds",
|
|
1303
|
-
icon:
|
|
1428
|
+
icon: Pe,
|
|
1304
1429
|
module: "TWITTERS"
|
|
1305
1430
|
},
|
|
1306
1431
|
{
|
|
1307
1432
|
href: "/usuarios",
|
|
1308
|
-
icon:
|
|
1433
|
+
icon: We,
|
|
1309
1434
|
module: "USERS"
|
|
1310
1435
|
}
|
|
1311
1436
|
];
|
|
1312
1437
|
//#endregion
|
|
1313
1438
|
//#region src/lib/components/sidebar/Sidebar.tsx
|
|
1314
|
-
function
|
|
1439
|
+
function $t(e, t) {
|
|
1315
1440
|
return e.label ?? t.navigation(e.module);
|
|
1316
1441
|
}
|
|
1317
|
-
function
|
|
1442
|
+
function Y(e, t) {
|
|
1318
1443
|
return !!(e === t || t !== "/" && e.startsWith(`${t}/`));
|
|
1319
1444
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return
|
|
1445
|
+
function en(e, t) {
|
|
1446
|
+
return Y(e, t.href) ? !0 : t.children?.some((t) => Y(e, t.href)) ?? !1;
|
|
1322
1447
|
}
|
|
1323
|
-
function
|
|
1448
|
+
function tn(e, t) {
|
|
1324
1449
|
return e.find((e) => e.module === t);
|
|
1325
1450
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return e.children?.filter((e) =>
|
|
1451
|
+
function nn(e, t) {
|
|
1452
|
+
return e.children?.filter((e) => tn(t, e.module)) ?? [];
|
|
1328
1453
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return e ? n : /* @__PURE__ */
|
|
1454
|
+
function rn(e, t, n) {
|
|
1455
|
+
return e ? n : /* @__PURE__ */ A(je, {
|
|
1331
1456
|
title: t,
|
|
1332
1457
|
placement: "right",
|
|
1333
1458
|
arrow: !0,
|
|
1334
|
-
children: /* @__PURE__ */
|
|
1459
|
+
children: /* @__PURE__ */ A(M, {
|
|
1335
1460
|
component: "span",
|
|
1336
|
-
sx:
|
|
1461
|
+
sx: J.sxTooltipWrap(e),
|
|
1337
1462
|
children: n
|
|
1338
1463
|
})
|
|
1339
1464
|
});
|
|
1340
1465
|
}
|
|
1341
|
-
function
|
|
1342
|
-
let d =
|
|
1466
|
+
function an({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand: i, LinkComponent: a, pathname: o, permissions: s, t: c, baseUrl: l, selectedPublicationId: u }) {
|
|
1467
|
+
let d = $t(e, c), f = tn(s, e.module), p = nn(e, s), m = !n, h = Y(o, e.href), g = en(o, e), _ = p.length > 0, v = e.icon, y = t ? h : h || g, [x, S] = O(null), C = !!x;
|
|
1343
1468
|
if (!f && !_) return null;
|
|
1344
|
-
let
|
|
1345
|
-
_ && !m ? /* @__PURE__ */
|
|
1469
|
+
let w = /* @__PURE__ */ j(k, { children: [
|
|
1470
|
+
_ && !m ? /* @__PURE__ */ A(N, {
|
|
1346
1471
|
size: "small",
|
|
1347
1472
|
"aria-label": r ? c.sidebar("collapse") : c.sidebar("expand"),
|
|
1348
1473
|
onClick: (e) => {
|
|
1349
1474
|
e.preventDefault(), e.stopPropagation(), i?.();
|
|
1350
1475
|
},
|
|
1351
|
-
sx:
|
|
1352
|
-
children:
|
|
1476
|
+
sx: J.sxExpandButton,
|
|
1477
|
+
children: A(r ? Oe : De, { sx: { fontSize: 20 } })
|
|
1353
1478
|
}) : null,
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
m ? null : /* @__PURE__ */
|
|
1479
|
+
/* @__PURE__ */ A(v, { sx: J.sxItemIcon(y, m) }),
|
|
1480
|
+
m ? null : /* @__PURE__ */ A(L, {
|
|
1356
1481
|
component: "span",
|
|
1357
|
-
sx:
|
|
1482
|
+
sx: J.sxItemLabel(h),
|
|
1358
1483
|
children: d
|
|
1359
1484
|
}),
|
|
1360
|
-
f?.isnew && /* @__PURE__ */
|
|
1485
|
+
f?.isnew && /* @__PURE__ */ A(M, {
|
|
1361
1486
|
component: "span",
|
|
1362
|
-
sx:
|
|
1487
|
+
sx: J.sxBetaChip(n),
|
|
1363
1488
|
children: c.sidebar("newBadge")
|
|
1364
1489
|
})
|
|
1365
1490
|
] });
|
|
1366
|
-
return _ && !m ? /* @__PURE__ */
|
|
1367
|
-
sx:
|
|
1368
|
-
children: [/* @__PURE__ */
|
|
1491
|
+
return _ && !m ? /* @__PURE__ */ j(M, {
|
|
1492
|
+
sx: J.sxNavGroup(n),
|
|
1493
|
+
children: [/* @__PURE__ */ A(M, {
|
|
1369
1494
|
component: "div",
|
|
1370
1495
|
onClick: i,
|
|
1371
1496
|
sx: {
|
|
1372
|
-
...
|
|
1497
|
+
...J.sxItem(g, t, !0, !1),
|
|
1373
1498
|
cursor: "pointer"
|
|
1374
1499
|
},
|
|
1375
|
-
children:
|
|
1376
|
-
}), /* @__PURE__ */
|
|
1500
|
+
children: w
|
|
1501
|
+
}), /* @__PURE__ */ A(ke, {
|
|
1377
1502
|
in: r,
|
|
1378
1503
|
timeout: "auto",
|
|
1379
1504
|
unmountOnExit: !0,
|
|
1380
|
-
children: /* @__PURE__ */
|
|
1505
|
+
children: /* @__PURE__ */ A(M, {
|
|
1381
1506
|
sx: {
|
|
1382
1507
|
display: "flex",
|
|
1383
1508
|
flexDirection: "column",
|
|
@@ -1387,7 +1512,7 @@ function ht({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
|
|
|
1387
1512
|
maxWidth: "100%",
|
|
1388
1513
|
overflow: "hidden"
|
|
1389
1514
|
},
|
|
1390
|
-
children: p.map((e) => /* @__PURE__ */
|
|
1515
|
+
children: p.map((e) => /* @__PURE__ */ A(an, {
|
|
1391
1516
|
item: e,
|
|
1392
1517
|
nested: !0,
|
|
1393
1518
|
open: n,
|
|
@@ -1400,27 +1525,27 @@ function ht({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
|
|
|
1400
1525
|
}, e.href))
|
|
1401
1526
|
})
|
|
1402
1527
|
})]
|
|
1403
|
-
}) : _ && m ? /* @__PURE__ */
|
|
1528
|
+
}) : _ && m ? /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(M, {
|
|
1404
1529
|
component: "button",
|
|
1405
1530
|
type: "button",
|
|
1406
1531
|
"aria-label": d,
|
|
1407
|
-
"aria-controls":
|
|
1532
|
+
"aria-controls": C ? `sidebar-children-${e.href}` : void 0,
|
|
1408
1533
|
"aria-haspopup": "true",
|
|
1409
|
-
"aria-expanded":
|
|
1410
|
-
onClick: (e) =>
|
|
1411
|
-
onMouseEnter: (e) =>
|
|
1534
|
+
"aria-expanded": C ? "true" : void 0,
|
|
1535
|
+
onClick: (e) => S(e.currentTarget),
|
|
1536
|
+
onMouseEnter: (e) => S(e.currentTarget),
|
|
1412
1537
|
sx: {
|
|
1413
|
-
...
|
|
1538
|
+
...J.sxItem(g, t, _, !0),
|
|
1414
1539
|
border: 0,
|
|
1415
1540
|
background: "transparent",
|
|
1416
1541
|
cursor: "pointer"
|
|
1417
1542
|
},
|
|
1418
|
-
children:
|
|
1419
|
-
}), /* @__PURE__ */
|
|
1543
|
+
children: w
|
|
1544
|
+
}), /* @__PURE__ */ A(F, {
|
|
1420
1545
|
id: `sidebar-children-${e.href}`,
|
|
1421
|
-
anchorEl:
|
|
1422
|
-
open:
|
|
1423
|
-
onClose: () =>
|
|
1546
|
+
anchorEl: x,
|
|
1547
|
+
open: C,
|
|
1548
|
+
onClose: () => S(null),
|
|
1424
1549
|
anchorOrigin: {
|
|
1425
1550
|
vertical: "center",
|
|
1426
1551
|
horizontal: "right"
|
|
@@ -1430,43 +1555,43 @@ function ht({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
|
|
|
1430
1555
|
horizontal: "left"
|
|
1431
1556
|
},
|
|
1432
1557
|
slotProps: {
|
|
1433
|
-
paper: { sx:
|
|
1558
|
+
paper: { sx: J.sxChildrenMenuPaper },
|
|
1434
1559
|
list: {
|
|
1435
|
-
onMouseLeave: () =>
|
|
1560
|
+
onMouseLeave: () => S(null),
|
|
1436
1561
|
sx: { py: 1 }
|
|
1437
1562
|
}
|
|
1438
1563
|
},
|
|
1439
1564
|
children: p.map((e) => {
|
|
1440
1565
|
let t = e.icon;
|
|
1441
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ j(I, {
|
|
1442
1567
|
component: a,
|
|
1443
1568
|
href: `${l}${e.href}`,
|
|
1444
|
-
onClick: () =>
|
|
1445
|
-
sx:
|
|
1446
|
-
children: [/* @__PURE__ */
|
|
1447
|
-
sx:
|
|
1448
|
-
children: /* @__PURE__ */
|
|
1449
|
-
}), /* @__PURE__ */
|
|
1450
|
-
primary:
|
|
1569
|
+
onClick: () => S(null),
|
|
1570
|
+
sx: J.sxChildrenMenuItem(Y(o, e.href)),
|
|
1571
|
+
children: [/* @__PURE__ */ A(P, {
|
|
1572
|
+
sx: J.sxChildrenMenuListItemIcon,
|
|
1573
|
+
children: /* @__PURE__ */ A(t, {})
|
|
1574
|
+
}), /* @__PURE__ */ A(Ae, {
|
|
1575
|
+
primary: $t(e, c),
|
|
1451
1576
|
slotProps: { primary: { sx: {
|
|
1452
1577
|
fontSize: 14,
|
|
1453
1578
|
fontWeight: 400,
|
|
1454
|
-
color:
|
|
1579
|
+
color: b.textStrong
|
|
1455
1580
|
} } }
|
|
1456
1581
|
})]
|
|
1457
1582
|
}, e.href);
|
|
1458
1583
|
})
|
|
1459
|
-
})] }) :
|
|
1584
|
+
})] }) : rn(n, d, /* @__PURE__ */ A(M, {
|
|
1460
1585
|
component: a,
|
|
1461
1586
|
href: e.href,
|
|
1462
|
-
sx:
|
|
1463
|
-
children:
|
|
1587
|
+
sx: J.sxItem(m ? g : h, t, _, m),
|
|
1588
|
+
children: w
|
|
1464
1589
|
}));
|
|
1465
1590
|
}
|
|
1466
|
-
function
|
|
1467
|
-
let [c, l] =
|
|
1591
|
+
function on({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions: i, t: a, baseUrl: o, selectedPublicationId: s }) {
|
|
1592
|
+
let [c, l] = O(D(() => {
|
|
1468
1593
|
let t = {};
|
|
1469
|
-
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) =>
|
|
1594
|
+
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => Y(r, e.href)));
|
|
1470
1595
|
return t;
|
|
1471
1596
|
}, [e, r])), u = (e) => {
|
|
1472
1597
|
l((t) => ({
|
|
@@ -1474,12 +1599,12 @@ function gt({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
1474
1599
|
[e]: !t[e]
|
|
1475
1600
|
}));
|
|
1476
1601
|
};
|
|
1477
|
-
return /* @__PURE__ */
|
|
1602
|
+
return /* @__PURE__ */ A(k, { children: e.map((e) => /* @__PURE__ */ A(an, {
|
|
1478
1603
|
item: e,
|
|
1479
1604
|
open: t,
|
|
1480
1605
|
permissions: i,
|
|
1481
1606
|
expanded: c[e.href],
|
|
1482
|
-
onToggleExpand:
|
|
1607
|
+
onToggleExpand: nn(e, i).length > 0 ? () => u(e.href) : void 0,
|
|
1483
1608
|
LinkComponent: n,
|
|
1484
1609
|
pathname: r,
|
|
1485
1610
|
t: a,
|
|
@@ -1487,20 +1612,20 @@ function gt({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
1487
1612
|
selectedPublicationId: s
|
|
1488
1613
|
}, e.href)) });
|
|
1489
1614
|
}
|
|
1490
|
-
function
|
|
1491
|
-
let { t: o } =
|
|
1492
|
-
return /* @__PURE__ */
|
|
1615
|
+
function sn({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = Jt, baseUrl: i, selectedPublicationId: a }) {
|
|
1616
|
+
let { t: o } = G();
|
|
1617
|
+
return /* @__PURE__ */ A(M, {
|
|
1493
1618
|
component: "aside",
|
|
1494
|
-
sx:
|
|
1495
|
-
children: /* @__PURE__ */
|
|
1496
|
-
sx:
|
|
1497
|
-
children: /* @__PURE__ */
|
|
1619
|
+
sx: J.sxRoot(e),
|
|
1620
|
+
children: /* @__PURE__ */ A(M, {
|
|
1621
|
+
sx: J.sxNavScroll,
|
|
1622
|
+
children: /* @__PURE__ */ A(M, {
|
|
1498
1623
|
component: "nav",
|
|
1499
1624
|
"aria-label": o.sidebar("navAriaLabel"),
|
|
1500
|
-
sx:
|
|
1501
|
-
children: /* @__PURE__ */
|
|
1625
|
+
sx: J.sxNav(e),
|
|
1626
|
+
children: /* @__PURE__ */ A(on, {
|
|
1502
1627
|
permissions: n,
|
|
1503
|
-
items:
|
|
1628
|
+
items: Qt,
|
|
1504
1629
|
open: e,
|
|
1505
1630
|
LinkComponent: r,
|
|
1506
1631
|
pathname: t,
|
|
@@ -1514,13 +1639,13 @@ function _t({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = W, b
|
|
|
1514
1639
|
}
|
|
1515
1640
|
//#endregion
|
|
1516
1641
|
//#region src/lib/components/site-selector-menu/SiteSelectorMenu.styles.ts
|
|
1517
|
-
var
|
|
1518
|
-
sxTriggerButton: (
|
|
1642
|
+
var X = {
|
|
1643
|
+
sxTriggerButton: (e) => ({
|
|
1519
1644
|
height: 34,
|
|
1520
|
-
borderRadius:
|
|
1521
|
-
borderColor:
|
|
1645
|
+
borderRadius: o.sm,
|
|
1646
|
+
borderColor: e ? "transparent" : "m3.outline",
|
|
1522
1647
|
color: "black",
|
|
1523
|
-
bgcolor:
|
|
1648
|
+
bgcolor: e ? u : "transparent",
|
|
1524
1649
|
textTransform: "none",
|
|
1525
1650
|
fontSize: "12px",
|
|
1526
1651
|
fontWeight: 500,
|
|
@@ -1531,16 +1656,16 @@ var Y = {
|
|
|
1531
1656
|
flexShrink: 0,
|
|
1532
1657
|
"&:hover": {
|
|
1533
1658
|
borderColor: "m3.outline",
|
|
1534
|
-
bgcolor:
|
|
1659
|
+
bgcolor: e ? u : "action.hover"
|
|
1535
1660
|
}
|
|
1536
1661
|
}),
|
|
1537
1662
|
sxTriggerIcon: { fontSize: 20 },
|
|
1538
1663
|
sxMenuPaper: {
|
|
1539
1664
|
mt: 1,
|
|
1540
|
-
bgcolor:
|
|
1665
|
+
bgcolor: h,
|
|
1541
1666
|
borderRadius: 2,
|
|
1542
1667
|
marginTop: 0,
|
|
1543
|
-
boxShadow:
|
|
1668
|
+
boxShadow: l.menu,
|
|
1544
1669
|
width: "auto",
|
|
1545
1670
|
minWidth: 380,
|
|
1546
1671
|
maxWidth: 640,
|
|
@@ -1563,7 +1688,7 @@ var Y = {
|
|
|
1563
1688
|
gridTemplateColumns: e ? "1fr" : "1fr 1fr",
|
|
1564
1689
|
gap: 1
|
|
1565
1690
|
}),
|
|
1566
|
-
sxMenuItem: (
|
|
1691
|
+
sxMenuItem: (e) => ({
|
|
1567
1692
|
width: "16.4rem",
|
|
1568
1693
|
maxWidth: "100%",
|
|
1569
1694
|
minHeight: 40,
|
|
@@ -1572,18 +1697,18 @@ var Y = {
|
|
|
1572
1697
|
py: 1,
|
|
1573
1698
|
padding: "1rem",
|
|
1574
1699
|
margin: ".65rem",
|
|
1575
|
-
borderRadius:
|
|
1576
|
-
bgcolor:
|
|
1700
|
+
borderRadius: o.xl,
|
|
1701
|
+
bgcolor: e ? u : c,
|
|
1577
1702
|
color: "m3.onSurfaceVariant",
|
|
1578
1703
|
display: "flex",
|
|
1579
1704
|
alignItems: "center",
|
|
1580
1705
|
justifyContent: "space-between",
|
|
1581
1706
|
gap: 1.5,
|
|
1582
1707
|
whiteSpace: "nowrap",
|
|
1583
|
-
"&:hover": { bgcolor:
|
|
1708
|
+
"&:hover": { bgcolor: u },
|
|
1584
1709
|
"&.Mui-selected": {
|
|
1585
|
-
bgcolor:
|
|
1586
|
-
"&:hover": { bgcolor:
|
|
1710
|
+
bgcolor: u,
|
|
1711
|
+
"&:hover": { bgcolor: u }
|
|
1587
1712
|
}
|
|
1588
1713
|
}),
|
|
1589
1714
|
sxMenuItemLabel: (e) => ({
|
|
@@ -1610,22 +1735,22 @@ var Y = {
|
|
|
1610
1735
|
};
|
|
1611
1736
|
//#endregion
|
|
1612
1737
|
//#region src/lib/components/site-selector-menu/SiteSelectorMenu.tsx
|
|
1613
|
-
function
|
|
1614
|
-
return /* @__PURE__ */
|
|
1738
|
+
function cn({ publication: e, selected: t, href: n, imageUrl: r }) {
|
|
1739
|
+
return /* @__PURE__ */ A("a", {
|
|
1615
1740
|
href: n,
|
|
1616
1741
|
style: {
|
|
1617
1742
|
textDecoration: "none",
|
|
1618
1743
|
color: "inherit"
|
|
1619
1744
|
},
|
|
1620
|
-
children: /* @__PURE__ */
|
|
1745
|
+
children: /* @__PURE__ */ j(I, {
|
|
1621
1746
|
selected: t,
|
|
1622
|
-
sx:
|
|
1623
|
-
children: [/* @__PURE__ */
|
|
1624
|
-
sx:
|
|
1747
|
+
sx: X.sxMenuItem(t),
|
|
1748
|
+
children: [/* @__PURE__ */ A(L, {
|
|
1749
|
+
sx: X.sxMenuItemLabel(t),
|
|
1625
1750
|
children: e.description
|
|
1626
|
-
}), r ? /* @__PURE__ */
|
|
1627
|
-
sx:
|
|
1628
|
-
children: /* @__PURE__ */
|
|
1751
|
+
}), r ? /* @__PURE__ */ A(M, {
|
|
1752
|
+
sx: X.sxMenuItemLogoWrap,
|
|
1753
|
+
children: /* @__PURE__ */ A("img", {
|
|
1629
1754
|
src: r,
|
|
1630
1755
|
alt: e.description,
|
|
1631
1756
|
width: 90,
|
|
@@ -1635,23 +1760,23 @@ function vt({ publication: e, selected: t, href: n, imageUrl: r }) {
|
|
|
1635
1760
|
})
|
|
1636
1761
|
});
|
|
1637
1762
|
}
|
|
1638
|
-
function
|
|
1639
|
-
let [a, o] =
|
|
1763
|
+
function ln({ sites: e, selectedPublicationId: n, getPublicationHref: r, resolvePublicationImageUrl: i }) {
|
|
1764
|
+
let [a, o] = O(null), s = !!a, c = (e) => {
|
|
1640
1765
|
o(e.currentTarget);
|
|
1641
1766
|
}, l = () => {
|
|
1642
1767
|
o(null);
|
|
1643
1768
|
}, u = n ?? "";
|
|
1644
|
-
return /* @__PURE__ */
|
|
1769
|
+
return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(R, {
|
|
1645
1770
|
id: "site-selector-button",
|
|
1646
1771
|
"aria-controls": s ? "site-selector-menu" : void 0,
|
|
1647
1772
|
"aria-haspopup": "true",
|
|
1648
1773
|
"aria-expanded": s ? "true" : void 0,
|
|
1649
1774
|
variant: "outlined",
|
|
1650
1775
|
onClick: c,
|
|
1651
|
-
endIcon: /* @__PURE__ */
|
|
1652
|
-
sx:
|
|
1776
|
+
endIcon: /* @__PURE__ */ A(gt, { sx: X.sxTriggerIcon }),
|
|
1777
|
+
sx: X.sxTriggerButton(s),
|
|
1653
1778
|
children: t(e, u)
|
|
1654
|
-
}), /* @__PURE__ */
|
|
1779
|
+
}), /* @__PURE__ */ A(F, {
|
|
1655
1780
|
id: "site-selector-menu",
|
|
1656
1781
|
anchorEl: a,
|
|
1657
1782
|
open: s,
|
|
@@ -1665,21 +1790,21 @@ function yt({ sites: e, selectedPublicationId: n, getPublicationHref: r, resolve
|
|
|
1665
1790
|
horizontal: "right"
|
|
1666
1791
|
},
|
|
1667
1792
|
slotProps: {
|
|
1668
|
-
paper: { sx:
|
|
1793
|
+
paper: { sx: X.sxMenuPaper },
|
|
1669
1794
|
list: {
|
|
1670
1795
|
"aria-labelledby": "site-selector-button",
|
|
1671
1796
|
disablePadding: !0,
|
|
1672
|
-
sx:
|
|
1797
|
+
sx: X.sxMenuList
|
|
1673
1798
|
}
|
|
1674
1799
|
},
|
|
1675
|
-
children: e.map((t, a) => /* @__PURE__ */
|
|
1676
|
-
sx:
|
|
1677
|
-
children: [/* @__PURE__ */
|
|
1678
|
-
sx:
|
|
1800
|
+
children: e.map((t, a) => /* @__PURE__ */ j(M, {
|
|
1801
|
+
sx: X.sxSection(a === e.length - 1),
|
|
1802
|
+
children: [/* @__PURE__ */ A(L, {
|
|
1803
|
+
sx: X.sxSectionTitle,
|
|
1679
1804
|
children: t.title
|
|
1680
|
-
}), /* @__PURE__ */
|
|
1681
|
-
sx:
|
|
1682
|
-
children: t.publications.map((e) => /* @__PURE__ */
|
|
1805
|
+
}), /* @__PURE__ */ A(M, {
|
|
1806
|
+
sx: X.sxSectionGrid(t.fullWidth),
|
|
1807
|
+
children: t.publications.map((e) => /* @__PURE__ */ A(cn, {
|
|
1683
1808
|
publication: e,
|
|
1684
1809
|
selected: Number(n) === e.id,
|
|
1685
1810
|
href: r(e),
|
|
@@ -1689,7 +1814,7 @@ function yt({ sites: e, selectedPublicationId: n, getPublicationHref: r, resolve
|
|
|
1689
1814
|
}, t.title))
|
|
1690
1815
|
})] });
|
|
1691
1816
|
}
|
|
1692
|
-
var
|
|
1817
|
+
var Z = {
|
|
1693
1818
|
sxAppBar: {
|
|
1694
1819
|
bgcolor: "m3.surfaceContainer",
|
|
1695
1820
|
color: "m3.onSurfaceVariant",
|
|
@@ -1708,7 +1833,7 @@ var X = {
|
|
|
1708
1833
|
flexShrink: 0,
|
|
1709
1834
|
borderRadius: "100px",
|
|
1710
1835
|
color: "m3.onSurfaceVariant",
|
|
1711
|
-
"&:hover": { bgcolor:
|
|
1836
|
+
"&:hover": { bgcolor: b.surfaceHover }
|
|
1712
1837
|
},
|
|
1713
1838
|
sxMenuButtonIcon: { fontSize: 24 },
|
|
1714
1839
|
sxLogoBox: {
|
|
@@ -1753,7 +1878,7 @@ var X = {
|
|
|
1753
1878
|
width: "1px",
|
|
1754
1879
|
height: 27.6,
|
|
1755
1880
|
flexShrink: 0,
|
|
1756
|
-
bgcolor:
|
|
1881
|
+
bgcolor: b.border
|
|
1757
1882
|
},
|
|
1758
1883
|
sxProfileButton: {
|
|
1759
1884
|
p: 0,
|
|
@@ -1764,22 +1889,22 @@ var X = {
|
|
|
1764
1889
|
sxProfileAvatar: {
|
|
1765
1890
|
width: 34,
|
|
1766
1891
|
height: 34,
|
|
1767
|
-
border:
|
|
1768
|
-
bgcolor:
|
|
1892
|
+
border: `1px solid ${b.avatarBorder}`,
|
|
1893
|
+
bgcolor: b.avatarBg
|
|
1769
1894
|
},
|
|
1770
1895
|
sxProfileMenuPaper: {
|
|
1771
1896
|
mt: 1,
|
|
1772
1897
|
minWidth: 220,
|
|
1773
1898
|
borderRadius: 2,
|
|
1774
|
-
bgcolor:
|
|
1899
|
+
bgcolor: b.menuSurface,
|
|
1775
1900
|
py: .5,
|
|
1776
|
-
boxShadow:
|
|
1901
|
+
boxShadow: l.menu
|
|
1777
1902
|
},
|
|
1778
1903
|
sxProfileMenuItem: {
|
|
1779
1904
|
py: 1.25,
|
|
1780
1905
|
px: 2,
|
|
1781
1906
|
fontSize: 14,
|
|
1782
|
-
color:
|
|
1907
|
+
color: b.textStrong,
|
|
1783
1908
|
"&:hover": { bgcolor: "action.hover" }
|
|
1784
1909
|
},
|
|
1785
1910
|
sxProfileMenuListItemIcon: {
|
|
@@ -1789,12 +1914,12 @@ var X = {
|
|
|
1789
1914
|
},
|
|
1790
1915
|
sxProfileMenuDivider: {
|
|
1791
1916
|
my: .5,
|
|
1792
|
-
borderColor:
|
|
1917
|
+
borderColor: b.border
|
|
1793
1918
|
}
|
|
1794
1919
|
};
|
|
1795
1920
|
//#endregion
|
|
1796
1921
|
//#region src/lib/components/top-bar/NotificationsMenu.tsx
|
|
1797
|
-
function
|
|
1922
|
+
function un(e, t) {
|
|
1798
1923
|
let n = new Date(e);
|
|
1799
1924
|
return Number.isNaN(n.getTime()) ? "" : n.toLocaleString(t, {
|
|
1800
1925
|
day: "2-digit",
|
|
@@ -1803,24 +1928,24 @@ function bt(e, t) {
|
|
|
1803
1928
|
minute: "2-digit"
|
|
1804
1929
|
});
|
|
1805
1930
|
}
|
|
1806
|
-
function
|
|
1807
|
-
let { locale: n, t: r } =
|
|
1808
|
-
return /* @__PURE__ */
|
|
1931
|
+
function dn({ unreadCount: e, notifications: t }) {
|
|
1932
|
+
let { locale: n, t: r } = G(), [i, a] = O(null), o = !!i, s = qt(n), c = D(() => e > 0 ? e : void 0, [e]);
|
|
1933
|
+
return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(je, {
|
|
1809
1934
|
title: r.notificationsMenu("title"),
|
|
1810
|
-
children: /* @__PURE__ */
|
|
1935
|
+
children: /* @__PURE__ */ A(N, {
|
|
1811
1936
|
"aria-label": r.notificationsMenu("ariaLabel"),
|
|
1812
1937
|
"aria-haspopup": "true",
|
|
1813
1938
|
"aria-expanded": o,
|
|
1814
1939
|
onClick: (e) => a(e.currentTarget),
|
|
1815
|
-
sx:
|
|
1816
|
-
children: /* @__PURE__ */
|
|
1940
|
+
sx: Z.sxActionIcon,
|
|
1941
|
+
children: /* @__PURE__ */ A(_t, {
|
|
1817
1942
|
badgeContent: c,
|
|
1818
1943
|
color: "error",
|
|
1819
|
-
sx:
|
|
1820
|
-
children: /* @__PURE__ */
|
|
1944
|
+
sx: Z.sxBadge,
|
|
1945
|
+
children: /* @__PURE__ */ A(Ue, { sx: Z.sxActionIconGlyph })
|
|
1821
1946
|
})
|
|
1822
1947
|
})
|
|
1823
|
-
}), /* @__PURE__ */
|
|
1948
|
+
}), /* @__PURE__ */ j(F, {
|
|
1824
1949
|
anchorEl: i,
|
|
1825
1950
|
open: o,
|
|
1826
1951
|
onClose: () => a(null),
|
|
@@ -1839,38 +1964,38 @@ function Z({ unreadCount: e, notifications: t }) {
|
|
|
1839
1964
|
borderRadius: 2,
|
|
1840
1965
|
bgcolor: "m3.surfaceContainerHigh"
|
|
1841
1966
|
} } },
|
|
1842
|
-
children: [/* @__PURE__ */
|
|
1967
|
+
children: [/* @__PURE__ */ j(M, {
|
|
1843
1968
|
sx: {
|
|
1844
1969
|
px: 2,
|
|
1845
1970
|
py: 1.5,
|
|
1846
1971
|
borderBottom: 1,
|
|
1847
1972
|
borderColor: "m3.outlineVariant"
|
|
1848
1973
|
},
|
|
1849
|
-
children: [/* @__PURE__ */
|
|
1974
|
+
children: [/* @__PURE__ */ A(L, {
|
|
1850
1975
|
variant: "subtitle2",
|
|
1851
1976
|
color: "m3.onSurface",
|
|
1852
1977
|
children: r.notificationsMenu("title")
|
|
1853
|
-
}), e > 0 ? /* @__PURE__ */
|
|
1978
|
+
}), e > 0 ? /* @__PURE__ */ A(L, {
|
|
1854
1979
|
variant: "caption",
|
|
1855
1980
|
color: "m3.onSurfaceVariant",
|
|
1856
1981
|
children: r.notificationsMenu("unreadCount", { count: e })
|
|
1857
1982
|
}) : null]
|
|
1858
|
-
}), t && t?.length === 0 ? /* @__PURE__ */
|
|
1983
|
+
}), t && t?.length === 0 ? /* @__PURE__ */ A(M, {
|
|
1859
1984
|
sx: {
|
|
1860
1985
|
px: 2,
|
|
1861
1986
|
py: 3
|
|
1862
1987
|
},
|
|
1863
|
-
children: /* @__PURE__ */
|
|
1988
|
+
children: /* @__PURE__ */ A(L, {
|
|
1864
1989
|
variant: "body2",
|
|
1865
1990
|
color: "m3.onSurfaceVariant",
|
|
1866
1991
|
sx: { textAlign: "center" },
|
|
1867
1992
|
children: r.notificationsMenu("empty")
|
|
1868
1993
|
})
|
|
1869
|
-
}) : /* @__PURE__ */
|
|
1994
|
+
}) : /* @__PURE__ */ A(vt, {
|
|
1870
1995
|
dense: !0,
|
|
1871
1996
|
disablePadding: !0,
|
|
1872
1997
|
sx: { py: .5 },
|
|
1873
|
-
children: t && t.map((e) => /* @__PURE__ */
|
|
1998
|
+
children: t && t.map((e) => /* @__PURE__ */ A(yt, {
|
|
1874
1999
|
component: e.href ? "a" : "div",
|
|
1875
2000
|
href: e.href,
|
|
1876
2001
|
onClick: () => a(null),
|
|
@@ -1880,9 +2005,9 @@ function Z({ unreadCount: e, notifications: t }) {
|
|
|
1880
2005
|
bgcolor: e.read ? "transparent" : "secondary.light",
|
|
1881
2006
|
"&:hover": { bgcolor: e.read ? "action.hover" : "secondary.light" }
|
|
1882
2007
|
},
|
|
1883
|
-
children: /* @__PURE__ */
|
|
2008
|
+
children: /* @__PURE__ */ A(Ae, {
|
|
1884
2009
|
primary: e.title,
|
|
1885
|
-
secondary: /* @__PURE__ */
|
|
2010
|
+
secondary: /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(L, {
|
|
1886
2011
|
component: "span",
|
|
1887
2012
|
variant: "body2",
|
|
1888
2013
|
color: "m3.onSurfaceVariant",
|
|
@@ -1891,7 +2016,7 @@ function Z({ unreadCount: e, notifications: t }) {
|
|
|
1891
2016
|
mt: .25
|
|
1892
2017
|
},
|
|
1893
2018
|
children: e.message
|
|
1894
|
-
}), /* @__PURE__ */
|
|
2019
|
+
}), /* @__PURE__ */ A(L, {
|
|
1895
2020
|
component: "span",
|
|
1896
2021
|
variant: "caption",
|
|
1897
2022
|
color: "m3.onSurfaceVariant",
|
|
@@ -1899,7 +2024,7 @@ function Z({ unreadCount: e, notifications: t }) {
|
|
|
1899
2024
|
display: "block",
|
|
1900
2025
|
mt: .5
|
|
1901
2026
|
},
|
|
1902
|
-
children:
|
|
2027
|
+
children: un(e.createdAt, s)
|
|
1903
2028
|
})] }),
|
|
1904
2029
|
slotProps: { primary: {
|
|
1905
2030
|
variant: "subtitle2",
|
|
@@ -1913,75 +2038,75 @@ function Z({ unreadCount: e, notifications: t }) {
|
|
|
1913
2038
|
}
|
|
1914
2039
|
//#endregion
|
|
1915
2040
|
//#region src/lib/utils/cms-asset.ts
|
|
1916
|
-
var
|
|
1917
|
-
function
|
|
2041
|
+
var fn = "https://dev.cms-medios.com";
|
|
2042
|
+
function pn(e) {
|
|
1918
2043
|
let t = e?.trim();
|
|
1919
|
-
return t ? t.replace(/\/$/, "") :
|
|
2044
|
+
return t ? t.replace(/\/$/, "") : fn;
|
|
1920
2045
|
}
|
|
1921
|
-
function
|
|
2046
|
+
function mn(e, t) {
|
|
1922
2047
|
if (!e) return "";
|
|
1923
2048
|
if (e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
1924
2049
|
let n = e.startsWith("/") ? e : `/${e}`;
|
|
1925
|
-
return `${
|
|
2050
|
+
return `${pn(t)}${n}`;
|
|
1926
2051
|
}
|
|
1927
2052
|
//#endregion
|
|
1928
2053
|
//#region src/lib/utils/profile-avatar.ts
|
|
1929
|
-
var
|
|
1930
|
-
function
|
|
1931
|
-
let { image: n } = e, r = t?.fallbackAvatar ??
|
|
1932
|
-
return !n || n ===
|
|
2054
|
+
var hn = "noPicture", gn = "/topbar_profile.png";
|
|
2055
|
+
function _n(e, t) {
|
|
2056
|
+
let { image: n } = e, r = t?.fallbackAvatar ?? gn;
|
|
2057
|
+
return !n || n === hn ? r : mn(n, t?.cmsOrigin);
|
|
1933
2058
|
}
|
|
1934
|
-
function
|
|
2059
|
+
function vn(e) {
|
|
1935
2060
|
if (e.fullName?.trim()) return e.fullName.trim();
|
|
1936
2061
|
let t = [e.firstName, e.lastName].filter(Boolean);
|
|
1937
2062
|
return t.length > 0 ? t.join(" ") : e.userName;
|
|
1938
2063
|
}
|
|
1939
2064
|
//#endregion
|
|
1940
2065
|
//#region src/lib/components/top-bar/ProfileMenu.tsx
|
|
1941
|
-
function
|
|
1942
|
-
return /* @__PURE__ */
|
|
2066
|
+
function yn({ label: e, icon: t, onSelect: n }) {
|
|
2067
|
+
return /* @__PURE__ */ j(I, {
|
|
1943
2068
|
onClick: n,
|
|
1944
|
-
sx:
|
|
1945
|
-
children: [/* @__PURE__ */
|
|
1946
|
-
sx:
|
|
1947
|
-
children: /* @__PURE__ */
|
|
1948
|
-
}), /* @__PURE__ */
|
|
2069
|
+
sx: Z.sxProfileMenuItem,
|
|
2070
|
+
children: [/* @__PURE__ */ A(P, {
|
|
2071
|
+
sx: Z.sxProfileMenuListItemIcon,
|
|
2072
|
+
children: /* @__PURE__ */ A(t, {})
|
|
2073
|
+
}), /* @__PURE__ */ A(Ae, {
|
|
1949
2074
|
primary: e,
|
|
1950
2075
|
slotProps: { primary: { sx: {
|
|
1951
2076
|
fontSize: 14,
|
|
1952
2077
|
fontWeight: 400,
|
|
1953
|
-
color:
|
|
2078
|
+
color: b.textStrong
|
|
1954
2079
|
} } }
|
|
1955
2080
|
})]
|
|
1956
2081
|
});
|
|
1957
2082
|
}
|
|
1958
|
-
function
|
|
1959
|
-
let { t: n } =
|
|
2083
|
+
function bn({ profile: e, avatarOptions: t }) {
|
|
2084
|
+
let { t: n } = G(), [r, i] = O(null), a = !!r, o = vn(e), s = _n(e, t), c = s.startsWith("/"), l = D(() => [{
|
|
1960
2085
|
id: "profile",
|
|
1961
2086
|
labelKey: "myProfile",
|
|
1962
|
-
icon:
|
|
2087
|
+
icon: St
|
|
1963
2088
|
}, {
|
|
1964
2089
|
id: "webmaster",
|
|
1965
2090
|
labelKey: "webmasterView",
|
|
1966
|
-
icon:
|
|
1967
|
-
}], []), u =
|
|
2091
|
+
icon: bt
|
|
2092
|
+
}], []), u = D(() => ({
|
|
1968
2093
|
id: "sign-off",
|
|
1969
2094
|
labelKey: "signOff",
|
|
1970
|
-
icon:
|
|
2095
|
+
icon: xt
|
|
1971
2096
|
}), []), d = () => i(null), f = (e) => {
|
|
1972
2097
|
d();
|
|
1973
2098
|
};
|
|
1974
|
-
return /* @__PURE__ */
|
|
2099
|
+
return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(N, {
|
|
1975
2100
|
id: "profile-menu-button",
|
|
1976
2101
|
"aria-label": n.profileMenu("ariaLabel"),
|
|
1977
2102
|
"aria-controls": a ? "profile-menu" : void 0,
|
|
1978
2103
|
"aria-haspopup": "true",
|
|
1979
2104
|
"aria-expanded": a ? "true" : void 0,
|
|
1980
2105
|
onClick: (e) => i(e.currentTarget),
|
|
1981
|
-
sx:
|
|
1982
|
-
children: /* @__PURE__ */
|
|
1983
|
-
sx:
|
|
1984
|
-
children: /* @__PURE__ */
|
|
2106
|
+
sx: Z.sxProfileButton,
|
|
2107
|
+
children: /* @__PURE__ */ A(Ct, {
|
|
2108
|
+
sx: Z.sxProfileAvatar,
|
|
2109
|
+
children: /* @__PURE__ */ A(M, {
|
|
1985
2110
|
component: "img",
|
|
1986
2111
|
src: s,
|
|
1987
2112
|
alt: "",
|
|
@@ -1993,7 +2118,7 @@ function kt({ profile: e, avatarOptions: t }) {
|
|
|
1993
2118
|
...c ? {} : { crossOrigin: "anonymous" }
|
|
1994
2119
|
})
|
|
1995
2120
|
})
|
|
1996
|
-
}), /* @__PURE__ */
|
|
2121
|
+
}), /* @__PURE__ */ j(F, {
|
|
1997
2122
|
id: "profile-menu",
|
|
1998
2123
|
anchorEl: r,
|
|
1999
2124
|
open: a,
|
|
@@ -2007,37 +2132,37 @@ function kt({ profile: e, avatarOptions: t }) {
|
|
|
2007
2132
|
horizontal: "right"
|
|
2008
2133
|
},
|
|
2009
2134
|
slotProps: {
|
|
2010
|
-
paper: { sx:
|
|
2135
|
+
paper: { sx: Z.sxProfileMenuPaper },
|
|
2011
2136
|
list: { disablePadding: !0 }
|
|
2012
2137
|
},
|
|
2013
2138
|
children: [
|
|
2014
|
-
/* @__PURE__ */
|
|
2139
|
+
/* @__PURE__ */ j(M, {
|
|
2015
2140
|
sx: {
|
|
2016
2141
|
px: 2,
|
|
2017
2142
|
py: 1.5,
|
|
2018
2143
|
borderBottom: 1,
|
|
2019
2144
|
borderColor: "divider"
|
|
2020
2145
|
},
|
|
2021
|
-
children: [/* @__PURE__ */
|
|
2146
|
+
children: [/* @__PURE__ */ A(L, {
|
|
2022
2147
|
variant: "subtitle2",
|
|
2023
2148
|
sx: {
|
|
2024
2149
|
fontWeight: 600,
|
|
2025
|
-
color:
|
|
2150
|
+
color: b.textStrong
|
|
2026
2151
|
},
|
|
2027
2152
|
children: o
|
|
2028
|
-
}), /* @__PURE__ */
|
|
2153
|
+
}), /* @__PURE__ */ A(L, {
|
|
2029
2154
|
variant: "caption",
|
|
2030
|
-
sx: { color:
|
|
2155
|
+
sx: { color: b.textNav },
|
|
2031
2156
|
children: e.email
|
|
2032
2157
|
})]
|
|
2033
2158
|
}),
|
|
2034
|
-
l.map((e) => /* @__PURE__ */
|
|
2159
|
+
l.map((e) => /* @__PURE__ */ A(yn, {
|
|
2035
2160
|
label: n.profileMenu(e.labelKey),
|
|
2036
2161
|
icon: e.icon,
|
|
2037
2162
|
onSelect: () => f(e.id)
|
|
2038
2163
|
}, e.id)),
|
|
2039
|
-
/* @__PURE__ */
|
|
2040
|
-
/* @__PURE__ */
|
|
2164
|
+
/* @__PURE__ */ A(wt, { sx: Z.sxProfileMenuDivider }),
|
|
2165
|
+
/* @__PURE__ */ A(yn, {
|
|
2041
2166
|
label: n.profileMenu(u.labelKey),
|
|
2042
2167
|
icon: u.icon,
|
|
2043
2168
|
onSelect: () => f(u.id)
|
|
@@ -2047,83 +2172,83 @@ function kt({ profile: e, avatarOptions: t }) {
|
|
|
2047
2172
|
}
|
|
2048
2173
|
//#endregion
|
|
2049
2174
|
//#region src/lib/components/top-bar/TopBar.tsx
|
|
2050
|
-
function
|
|
2051
|
-
return /* @__PURE__ */
|
|
2175
|
+
function xn() {
|
|
2176
|
+
return /* @__PURE__ */ A(M, {
|
|
2052
2177
|
component: "span",
|
|
2053
2178
|
role: "separator",
|
|
2054
2179
|
"aria-orientation": "vertical",
|
|
2055
|
-
sx:
|
|
2180
|
+
sx: Z.sxDivider
|
|
2056
2181
|
});
|
|
2057
2182
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return /* @__PURE__ */
|
|
2183
|
+
function Sn({ title: e, icon: t }) {
|
|
2184
|
+
return /* @__PURE__ */ A(je, {
|
|
2060
2185
|
title: e,
|
|
2061
|
-
children: /* @__PURE__ */
|
|
2186
|
+
children: /* @__PURE__ */ A(N, {
|
|
2062
2187
|
"aria-label": e,
|
|
2063
|
-
sx:
|
|
2064
|
-
children: /* @__PURE__ */
|
|
2188
|
+
sx: Z.sxActionIcon,
|
|
2189
|
+
children: /* @__PURE__ */ A(t, { sx: Z.sxActionIconGlyph })
|
|
2065
2190
|
})
|
|
2066
2191
|
});
|
|
2067
2192
|
}
|
|
2068
|
-
function
|
|
2069
|
-
let { t: f } =
|
|
2193
|
+
function Cn({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: s, selectedPublicationId: c, getPublicationHref: l, resolvePublicationImageUrl: u, profileAvatarOptions: d }) {
|
|
2194
|
+
let { t: f } = G(), p = [{
|
|
2070
2195
|
title: f.topBar("analytics"),
|
|
2071
|
-
icon:
|
|
2196
|
+
icon: dt
|
|
2072
2197
|
}, {
|
|
2073
2198
|
title: f.topBar("help"),
|
|
2074
|
-
icon:
|
|
2199
|
+
icon: ft
|
|
2075
2200
|
}];
|
|
2076
|
-
return /* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ A(mt, {
|
|
2077
2202
|
position: "static",
|
|
2078
2203
|
elevation: 0,
|
|
2079
|
-
sx:
|
|
2080
|
-
children: /* @__PURE__ */
|
|
2204
|
+
sx: Z.sxAppBar,
|
|
2205
|
+
children: /* @__PURE__ */ j(ht, {
|
|
2081
2206
|
disableGutters: !0,
|
|
2082
2207
|
variant: "dense",
|
|
2083
|
-
sx:
|
|
2208
|
+
sx: Z.sxToolbar,
|
|
2084
2209
|
children: [
|
|
2085
|
-
/* @__PURE__ */
|
|
2210
|
+
/* @__PURE__ */ A(N, {
|
|
2086
2211
|
"aria-label": t ? f.topBar("closeSidebar") : f.topBar("openSidebar"),
|
|
2087
2212
|
"aria-expanded": t,
|
|
2088
2213
|
onClick: n,
|
|
2089
|
-
sx:
|
|
2090
|
-
children: /* @__PURE__ */
|
|
2214
|
+
sx: Z.sxMenuButton,
|
|
2215
|
+
children: /* @__PURE__ */ A(pt, { sx: Z.sxMenuButtonIcon })
|
|
2091
2216
|
}),
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
sx:
|
|
2217
|
+
/* @__PURE__ */ A(M, {
|
|
2218
|
+
sx: Z.sxLogoBox,
|
|
2094
2219
|
children: o
|
|
2095
2220
|
}),
|
|
2096
|
-
/* @__PURE__ */
|
|
2097
|
-
/* @__PURE__ */
|
|
2098
|
-
sx:
|
|
2221
|
+
/* @__PURE__ */ A(M, { sx: { flex: 1 } }),
|
|
2222
|
+
/* @__PURE__ */ j(M, {
|
|
2223
|
+
sx: Z.sxActionsFrame,
|
|
2099
2224
|
children: [
|
|
2100
|
-
/* @__PURE__ */
|
|
2101
|
-
sx:
|
|
2225
|
+
/* @__PURE__ */ j(M, {
|
|
2226
|
+
sx: Z.sxIconActionsRow,
|
|
2102
2227
|
children: [
|
|
2103
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__PURE__ */ A(Sn, {
|
|
2104
2229
|
title: f.topBar("new"),
|
|
2105
|
-
icon:
|
|
2230
|
+
icon: ut
|
|
2106
2231
|
}),
|
|
2107
|
-
/* @__PURE__ */
|
|
2232
|
+
/* @__PURE__ */ A(dn, {
|
|
2108
2233
|
unreadCount: r,
|
|
2109
2234
|
notifications: i
|
|
2110
2235
|
}),
|
|
2111
|
-
p.map(({ title: e, icon: t }) => /* @__PURE__ */
|
|
2236
|
+
p.map(({ title: e, icon: t }) => /* @__PURE__ */ A(Sn, {
|
|
2112
2237
|
title: e,
|
|
2113
2238
|
icon: t
|
|
2114
2239
|
}, e))
|
|
2115
2240
|
]
|
|
2116
2241
|
}),
|
|
2117
|
-
/* @__PURE__ */
|
|
2242
|
+
/* @__PURE__ */ A(xn, {}),
|
|
2118
2243
|
s,
|
|
2119
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__PURE__ */ A(ln, {
|
|
2120
2245
|
sites: e,
|
|
2121
2246
|
selectedPublicationId: c,
|
|
2122
2247
|
getPublicationHref: l,
|
|
2123
2248
|
resolvePublicationImageUrl: u
|
|
2124
2249
|
}),
|
|
2125
|
-
/* @__PURE__ */
|
|
2126
|
-
/* @__PURE__ */
|
|
2250
|
+
/* @__PURE__ */ A(xn, {}),
|
|
2251
|
+
/* @__PURE__ */ A(bn, {
|
|
2127
2252
|
profile: a,
|
|
2128
2253
|
avatarOptions: d
|
|
2129
2254
|
})
|
|
@@ -2135,7 +2260,7 @@ function Q({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCou
|
|
|
2135
2260
|
}
|
|
2136
2261
|
//#endregion
|
|
2137
2262
|
//#region src/lib/components/shell/AppShell.styles.ts
|
|
2138
|
-
var
|
|
2263
|
+
var Q = {
|
|
2139
2264
|
sxRoot: {
|
|
2140
2265
|
display: "flex",
|
|
2141
2266
|
flexDirection: "column",
|
|
@@ -2168,21 +2293,21 @@ var $ = {
|
|
|
2168
2293
|
};
|
|
2169
2294
|
//#endregion
|
|
2170
2295
|
//#region src/lib/components/shell/AppShell.tsx
|
|
2171
|
-
function
|
|
2172
|
-
let [
|
|
2173
|
-
return /* @__PURE__ */
|
|
2296
|
+
function wn({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: s, selectedPublicationId: c, getPublicationHref: l, resolvePublicationImageUrl: u, profileAvatarOptions: d, LinkComponent: f = Jt, permissions: p, locale: m, language: h, messages: g, baseUrl: _ }) {
|
|
2297
|
+
let [v, y] = O(!0);
|
|
2298
|
+
return /* @__PURE__ */ A(Kt, {
|
|
2174
2299
|
locale: m,
|
|
2175
2300
|
language: h,
|
|
2176
2301
|
messages: g,
|
|
2177
|
-
children: /* @__PURE__ */
|
|
2178
|
-
sx:
|
|
2179
|
-
children: [/* @__PURE__ */
|
|
2302
|
+
children: /* @__PURE__ */ j(M, {
|
|
2303
|
+
sx: Q.sxRoot,
|
|
2304
|
+
children: [/* @__PURE__ */ A(M, {
|
|
2180
2305
|
component: "header",
|
|
2181
|
-
sx:
|
|
2182
|
-
children: /* @__PURE__ */
|
|
2306
|
+
sx: Q.sxHeader,
|
|
2307
|
+
children: /* @__PURE__ */ A(Cn, {
|
|
2183
2308
|
sites: t,
|
|
2184
|
-
sidebarOpen:
|
|
2185
|
-
onToggleSidebar: () =>
|
|
2309
|
+
sidebarOpen: v,
|
|
2310
|
+
onToggleSidebar: () => y((e) => !e),
|
|
2186
2311
|
notificationUnreadCount: r,
|
|
2187
2312
|
notifications: i,
|
|
2188
2313
|
profile: a,
|
|
@@ -2193,18 +2318,18 @@ function Mt({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
2193
2318
|
resolvePublicationImageUrl: u,
|
|
2194
2319
|
profileAvatarOptions: d
|
|
2195
2320
|
})
|
|
2196
|
-
}), /* @__PURE__ */
|
|
2197
|
-
sx:
|
|
2198
|
-
children: [/* @__PURE__ */
|
|
2199
|
-
open:
|
|
2321
|
+
}), /* @__PURE__ */ j(M, {
|
|
2322
|
+
sx: Q.sxBody,
|
|
2323
|
+
children: [/* @__PURE__ */ A(sn, {
|
|
2324
|
+
open: v,
|
|
2200
2325
|
pathname: e,
|
|
2201
2326
|
LinkComponent: f,
|
|
2202
2327
|
permissions: p,
|
|
2203
2328
|
baseUrl: _,
|
|
2204
2329
|
selectedPublicationId: c
|
|
2205
|
-
}), /* @__PURE__ */
|
|
2330
|
+
}), /* @__PURE__ */ A(M, {
|
|
2206
2331
|
component: "main",
|
|
2207
|
-
sx:
|
|
2332
|
+
sx: Q.sxMain,
|
|
2208
2333
|
children: n
|
|
2209
2334
|
})]
|
|
2210
2335
|
})]
|
|
@@ -2213,26 +2338,26 @@ function Mt({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
2213
2338
|
}
|
|
2214
2339
|
//#endregion
|
|
2215
2340
|
//#region src/lib/components/mui-provider/CmsMuiProvider.tsx
|
|
2216
|
-
var
|
|
2217
|
-
function
|
|
2218
|
-
return /* @__PURE__ */
|
|
2219
|
-
theme:
|
|
2341
|
+
var Tn = Mt();
|
|
2342
|
+
function En({ children: e }) {
|
|
2343
|
+
return /* @__PURE__ */ j(xe, {
|
|
2344
|
+
theme: Tn,
|
|
2220
2345
|
defaultMode: "light",
|
|
2221
2346
|
storageManager: null,
|
|
2222
|
-
children: [/* @__PURE__ */
|
|
2347
|
+
children: [/* @__PURE__ */ A(Tt, { enableColorScheme: !0 }), e]
|
|
2223
2348
|
});
|
|
2224
2349
|
}
|
|
2225
2350
|
//#endregion
|
|
2226
2351
|
//#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
|
|
2227
|
-
var
|
|
2228
|
-
function
|
|
2229
|
-
return /* @__PURE__ */
|
|
2352
|
+
var Dn = Mt();
|
|
2353
|
+
function On({ children: e }) {
|
|
2354
|
+
return /* @__PURE__ */ A(Et, {
|
|
2230
2355
|
options: { enableCssLayer: !0 },
|
|
2231
|
-
children: /* @__PURE__ */
|
|
2232
|
-
theme:
|
|
2356
|
+
children: /* @__PURE__ */ j(xe, {
|
|
2357
|
+
theme: Dn,
|
|
2233
2358
|
defaultMode: "light",
|
|
2234
2359
|
storageManager: null,
|
|
2235
|
-
children: [/* @__PURE__ */
|
|
2360
|
+
children: [/* @__PURE__ */ A(Tt, { enableColorScheme: !0 }), /* @__PURE__ */ A(M, {
|
|
2236
2361
|
sx: {
|
|
2237
2362
|
display: "flex",
|
|
2238
2363
|
flexDirection: "column",
|
|
@@ -2245,6 +2370,354 @@ function It({ children: e }) {
|
|
|
2245
2370
|
});
|
|
2246
2371
|
}
|
|
2247
2372
|
//#endregion
|
|
2248
|
-
|
|
2373
|
+
//#region src/lib/components/dropdowns/SimpleDropdown.styles.ts
|
|
2374
|
+
var $ = {
|
|
2375
|
+
sxTriggerWrap: { display: "inline-flex" },
|
|
2376
|
+
sxIconTrigger: (e) => ({
|
|
2377
|
+
borderRadius: "30px",
|
|
2378
|
+
color: e ? b.controlText : b.iconButtonIcon,
|
|
2379
|
+
bgcolor: e ? b.iconButtonHoverBg : "transparent",
|
|
2380
|
+
"& .MuiSvgIcon-root": { fontSize: 22 },
|
|
2381
|
+
"&:hover": {
|
|
2382
|
+
bgcolor: b.iconButtonHoverBg,
|
|
2383
|
+
color: b.controlText
|
|
2384
|
+
}
|
|
2385
|
+
}),
|
|
2386
|
+
sxMenuPaper: (e) => ({
|
|
2387
|
+
mt: 1,
|
|
2388
|
+
p: 1,
|
|
2389
|
+
minWidth: e,
|
|
2390
|
+
borderRadius: o.lg,
|
|
2391
|
+
bgcolor: "m3.surfaceContainerLowest",
|
|
2392
|
+
border: "1px solid",
|
|
2393
|
+
borderColor: "m3.outlineVariant",
|
|
2394
|
+
boxShadow: l.menuSoft
|
|
2395
|
+
}),
|
|
2396
|
+
sxList: {
|
|
2397
|
+
p: 0,
|
|
2398
|
+
display: "flex",
|
|
2399
|
+
flexDirection: "column",
|
|
2400
|
+
gap: "2px"
|
|
2401
|
+
},
|
|
2402
|
+
sxGrid: {
|
|
2403
|
+
display: "grid",
|
|
2404
|
+
gridTemplateColumns: "1fr 1fr",
|
|
2405
|
+
gap: "2px"
|
|
2406
|
+
},
|
|
2407
|
+
sxItem: (e) => ({
|
|
2408
|
+
display: "flex",
|
|
2409
|
+
alignItems: "flex-start",
|
|
2410
|
+
gap: "12px",
|
|
2411
|
+
px: "12px",
|
|
2412
|
+
py: "10px",
|
|
2413
|
+
borderRadius: o.md,
|
|
2414
|
+
color: "m3.onSurface",
|
|
2415
|
+
whiteSpace: "normal",
|
|
2416
|
+
bgcolor: e ? b.secondary : "transparent",
|
|
2417
|
+
"&:hover": { bgcolor: b.secondaryHover },
|
|
2418
|
+
"&.Mui-selected": {
|
|
2419
|
+
bgcolor: b.secondary,
|
|
2420
|
+
"&:hover": { bgcolor: b.secondaryHover }
|
|
2421
|
+
}
|
|
2422
|
+
}),
|
|
2423
|
+
sxIcon: {
|
|
2424
|
+
minWidth: 0,
|
|
2425
|
+
mt: "2px",
|
|
2426
|
+
color: "m3.onSurfaceVariant",
|
|
2427
|
+
display: "inline-flex",
|
|
2428
|
+
"& .MuiSvgIcon-root": { fontSize: 20 }
|
|
2429
|
+
},
|
|
2430
|
+
sxItemText: {
|
|
2431
|
+
display: "flex",
|
|
2432
|
+
flexDirection: "column",
|
|
2433
|
+
minWidth: 0
|
|
2434
|
+
},
|
|
2435
|
+
sxLabel: (e) => ({
|
|
2436
|
+
fontSize: 14,
|
|
2437
|
+
fontWeight: e ? 600 : 500,
|
|
2438
|
+
lineHeight: "20px",
|
|
2439
|
+
color: "m3.onSurface"
|
|
2440
|
+
}),
|
|
2441
|
+
sxDescription: {
|
|
2442
|
+
fontSize: 12,
|
|
2443
|
+
fontWeight: 400,
|
|
2444
|
+
lineHeight: "16px",
|
|
2445
|
+
color: "m3.onSurfaceVariant",
|
|
2446
|
+
mt: "2px"
|
|
2447
|
+
},
|
|
2448
|
+
sxSubItem: {
|
|
2449
|
+
pl: "44px",
|
|
2450
|
+
py: "8px",
|
|
2451
|
+
fontSize: 13,
|
|
2452
|
+
color: "m3.onSurface",
|
|
2453
|
+
borderRadius: o.md
|
|
2454
|
+
},
|
|
2455
|
+
sxFooter: {
|
|
2456
|
+
px: "12px",
|
|
2457
|
+
py: 1
|
|
2458
|
+
}
|
|
2459
|
+
};
|
|
2460
|
+
//#endregion
|
|
2461
|
+
//#region src/lib/components/dropdowns/SimpleDropdown.tsx
|
|
2462
|
+
function kn({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i, minWidth: a = 220, anchorOrigin: o = {
|
|
2463
|
+
vertical: "bottom",
|
|
2464
|
+
horizontal: "right"
|
|
2465
|
+
}, transformOrigin: s = {
|
|
2466
|
+
vertical: "top",
|
|
2467
|
+
horizontal: "right"
|
|
2468
|
+
}, closeOnSelect: c = !0, anchorEl: l, open: u, onClose: d, testId: f }) {
|
|
2469
|
+
let p = u !== void 0, [m, h] = O(null), [g, _] = O(null), v = p ? l ?? null : m, y = p ? !!u : !!m, b = () => {
|
|
2470
|
+
p ? d?.() : h(null), _(null);
|
|
2471
|
+
}, x = (e) => {
|
|
2472
|
+
h(e.currentTarget);
|
|
2473
|
+
}, S = D(() => e.filter((e) => e.show !== !1), [e]), C = (e, t) => {
|
|
2474
|
+
if (!e.disabled) {
|
|
2475
|
+
if (e.subItems?.length) {
|
|
2476
|
+
_((e) => e === t ? null : t);
|
|
2477
|
+
return;
|
|
2478
|
+
}
|
|
2479
|
+
e.onClick?.(e), c && b();
|
|
2480
|
+
}
|
|
2481
|
+
}, w = (e, t) => {
|
|
2482
|
+
let n = e.id ?? String(t), r = g === n;
|
|
2483
|
+
return /* @__PURE__ */ j(Ce, { children: [
|
|
2484
|
+
e.hasTopLine ? /* @__PURE__ */ A(wt, { sx: { my: .5 } }) : null,
|
|
2485
|
+
/* @__PURE__ */ j(I, {
|
|
2486
|
+
disabled: e.disabled,
|
|
2487
|
+
selected: e.selected,
|
|
2488
|
+
onClick: () => C(e, n),
|
|
2489
|
+
"data-testid": e.testId,
|
|
2490
|
+
sx: $.sxItem(!!e.selected),
|
|
2491
|
+
children: [e.icon ? /* @__PURE__ */ A(P, {
|
|
2492
|
+
sx: $.sxIcon,
|
|
2493
|
+
children: e.icon
|
|
2494
|
+
}) : null, /* @__PURE__ */ j(M, {
|
|
2495
|
+
sx: $.sxItemText,
|
|
2496
|
+
children: [/* @__PURE__ */ A(L, {
|
|
2497
|
+
component: "span",
|
|
2498
|
+
sx: $.sxLabel(!!e.description),
|
|
2499
|
+
children: e.label
|
|
2500
|
+
}), e.description ? /* @__PURE__ */ A(L, {
|
|
2501
|
+
component: "span",
|
|
2502
|
+
sx: $.sxDescription,
|
|
2503
|
+
children: e.description
|
|
2504
|
+
}) : null]
|
|
2505
|
+
})]
|
|
2506
|
+
}),
|
|
2507
|
+
r ? e.subItems?.filter((e) => e.show !== !1).map((e, t) => /* @__PURE__ */ A(I, {
|
|
2508
|
+
disabled: e.disabled,
|
|
2509
|
+
"data-testid": e.testId,
|
|
2510
|
+
onClick: () => {
|
|
2511
|
+
e.disabled || (e.onClick?.(e), c && b());
|
|
2512
|
+
},
|
|
2513
|
+
sx: $.sxSubItem,
|
|
2514
|
+
children: e.label
|
|
2515
|
+
}, `${n}-${e.id ?? t}`)) : null
|
|
2516
|
+
] }, n);
|
|
2517
|
+
}, ee = /* @__PURE__ */ A(N, {
|
|
2518
|
+
"aria-haspopup": "true",
|
|
2519
|
+
sx: $.sxIconTrigger(y),
|
|
2520
|
+
children: n ?? /* @__PURE__ */ A(Dt, {})
|
|
2521
|
+
}), te = typeof t == "function" ? t({ open: y }) : t ?? ee;
|
|
2522
|
+
return /* @__PURE__ */ j(k, { children: [!p && te ? /* @__PURE__ */ A(M, {
|
|
2523
|
+
component: "span",
|
|
2524
|
+
onClick: x,
|
|
2525
|
+
sx: $.sxTriggerWrap,
|
|
2526
|
+
children: te
|
|
2527
|
+
}) : null, /* @__PURE__ */ j(F, {
|
|
2528
|
+
anchorEl: v,
|
|
2529
|
+
open: y,
|
|
2530
|
+
onClose: b,
|
|
2531
|
+
anchorOrigin: o,
|
|
2532
|
+
transformOrigin: s,
|
|
2533
|
+
slotProps: {
|
|
2534
|
+
paper: { sx: $.sxMenuPaper(a) },
|
|
2535
|
+
list: {
|
|
2536
|
+
sx: $.sxList,
|
|
2537
|
+
...f ? { "data-testid": f } : {}
|
|
2538
|
+
}
|
|
2539
|
+
},
|
|
2540
|
+
children: [
|
|
2541
|
+
r === 2 ? /* @__PURE__ */ A(M, {
|
|
2542
|
+
sx: $.sxGrid,
|
|
2543
|
+
children: S.map((e, t) => w(e, t))
|
|
2544
|
+
}) : S.map((e, t) => w(e, t)),
|
|
2545
|
+
i ? /* @__PURE__ */ A(wt, { sx: { my: .5 } }) : null,
|
|
2546
|
+
i ? /* @__PURE__ */ A(M, {
|
|
2547
|
+
sx: $.sxFooter,
|
|
2548
|
+
children: i
|
|
2549
|
+
}) : null
|
|
2550
|
+
]
|
|
2551
|
+
})] });
|
|
2552
|
+
}
|
|
2553
|
+
//#endregion
|
|
2554
|
+
//#region src/lib/components/dropdowns/BtnDropdown.styles.ts
|
|
2555
|
+
var An = (e) => e ? "white" : "cta", jn = {
|
|
2556
|
+
sxGroup: {
|
|
2557
|
+
display: "inline-flex",
|
|
2558
|
+
alignItems: "stretch"
|
|
2559
|
+
},
|
|
2560
|
+
sxMainButton: (e, t) => {
|
|
2561
|
+
let n = An(e);
|
|
2562
|
+
return {
|
|
2563
|
+
height: T.buttonHeight,
|
|
2564
|
+
px: "20px",
|
|
2565
|
+
pr: t ? "20px" : "14px",
|
|
2566
|
+
borderRadius: t ? "999px" : "999px 0 0 999px",
|
|
2567
|
+
textTransform: "none",
|
|
2568
|
+
fontSize: 14,
|
|
2569
|
+
fontWeight: 500,
|
|
2570
|
+
minWidth: 0,
|
|
2571
|
+
gap: 1,
|
|
2572
|
+
boxShadow: l.button,
|
|
2573
|
+
...V(n),
|
|
2574
|
+
"& .MuiSvgIcon-root": { fontSize: 18 },
|
|
2575
|
+
"&:hover": {
|
|
2576
|
+
boxShadow: l.button,
|
|
2577
|
+
bgcolor: H(n)
|
|
2578
|
+
},
|
|
2579
|
+
"&.Mui-disabled": {
|
|
2580
|
+
bgcolor: e ? "m3.surfaceContainerLowest" : b.primaryDisabled,
|
|
2581
|
+
color: "action.disabled"
|
|
2582
|
+
}
|
|
2583
|
+
};
|
|
2584
|
+
},
|
|
2585
|
+
sxArrowButton: (e, t) => {
|
|
2586
|
+
let n = An(e);
|
|
2587
|
+
return {
|
|
2588
|
+
height: T.buttonHeight,
|
|
2589
|
+
minWidth: 38,
|
|
2590
|
+
width: 38,
|
|
2591
|
+
px: 0,
|
|
2592
|
+
borderRadius: "0 999px 999px 0",
|
|
2593
|
+
boxShadow: l.button,
|
|
2594
|
+
...V(n),
|
|
2595
|
+
borderLeft: "1px solid",
|
|
2596
|
+
borderLeftColor: Nt(n),
|
|
2597
|
+
"& .MuiSvgIcon-root": {
|
|
2598
|
+
fontSize: 22,
|
|
2599
|
+
transition: "transform 0.15s",
|
|
2600
|
+
transform: t ? "rotate(180deg)" : "none"
|
|
2601
|
+
},
|
|
2602
|
+
"&:hover": {
|
|
2603
|
+
boxShadow: l.button,
|
|
2604
|
+
bgcolor: H(n)
|
|
2605
|
+
}
|
|
2606
|
+
};
|
|
2607
|
+
}
|
|
2608
|
+
};
|
|
2609
|
+
//#endregion
|
|
2610
|
+
//#region src/lib/components/dropdowns/BtnDropdown.tsx
|
|
2611
|
+
function Mn({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1, enableButton: a = !0, whiteBtn: o = !1, showDropdownOptions: s = !0, testId: c }) {
|
|
2612
|
+
let [l, u] = O(null), d = !!l, f = (e) => {
|
|
2613
|
+
u((t) => t ? null : e.currentTarget);
|
|
2614
|
+
}, p = D(() => t.filter((e) => e.show !== !1), [t]).length > 0, m = s && p;
|
|
2615
|
+
return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ j(M, {
|
|
2616
|
+
sx: jn.sxGroup,
|
|
2617
|
+
children: [/* @__PURE__ */ A(R, {
|
|
2618
|
+
disableElevation: !0,
|
|
2619
|
+
startIcon: n,
|
|
2620
|
+
onClick: r,
|
|
2621
|
+
disabled: i || !a,
|
|
2622
|
+
"data-testid": c ? `btn-${c}` : void 0,
|
|
2623
|
+
sx: jn.sxMainButton(o, !m),
|
|
2624
|
+
children: e
|
|
2625
|
+
}), m ? /* @__PURE__ */ A(R, {
|
|
2626
|
+
disableElevation: !0,
|
|
2627
|
+
"aria-haspopup": "true",
|
|
2628
|
+
"aria-expanded": d ? "true" : void 0,
|
|
2629
|
+
onClick: f,
|
|
2630
|
+
disabled: i,
|
|
2631
|
+
"data-testid": c ? `dropdown-toggle-${c}` : void 0,
|
|
2632
|
+
sx: jn.sxArrowButton(o, d),
|
|
2633
|
+
children: /* @__PURE__ */ A(Ot, {})
|
|
2634
|
+
}) : null]
|
|
2635
|
+
}), /* @__PURE__ */ A(kn, {
|
|
2636
|
+
options: t,
|
|
2637
|
+
anchorEl: l,
|
|
2638
|
+
open: d,
|
|
2639
|
+
onClose: () => u(null),
|
|
2640
|
+
anchorOrigin: {
|
|
2641
|
+
vertical: "bottom",
|
|
2642
|
+
horizontal: "right"
|
|
2643
|
+
},
|
|
2644
|
+
transformOrigin: {
|
|
2645
|
+
vertical: "top",
|
|
2646
|
+
horizontal: "right"
|
|
2647
|
+
},
|
|
2648
|
+
testId: c ? `dropdown-menu-${c}` : void 0
|
|
2649
|
+
})] });
|
|
2650
|
+
}
|
|
2651
|
+
//#endregion
|
|
2652
|
+
//#region src/lib/components/dropdowns/SelectDropdown.tsx
|
|
2653
|
+
function Nn({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons: i = !0, minWidth: a = 200, disabled: o = !1, placeholder: s, ariaLabel: c, testId: l }) {
|
|
2654
|
+
let [u, d] = O(null), f = !!u, p = D(() => t.filter((e) => e.show !== !1), [t]), m = D(() => p.find((t) => t.value === e), [p, e]), h = (e) => {
|
|
2655
|
+
n(e), d(null);
|
|
2656
|
+
};
|
|
2657
|
+
return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ j(R, {
|
|
2658
|
+
type: "button",
|
|
2659
|
+
disableElevation: !0,
|
|
2660
|
+
disabled: o,
|
|
2661
|
+
"aria-haspopup": "listbox",
|
|
2662
|
+
"aria-expanded": f ? "true" : void 0,
|
|
2663
|
+
"aria-label": c,
|
|
2664
|
+
onClick: (e) => d(e.currentTarget),
|
|
2665
|
+
"data-testid": l,
|
|
2666
|
+
sx: U.sxTrigger(r, f),
|
|
2667
|
+
children: [
|
|
2668
|
+
i && m?.icon ? /* @__PURE__ */ A(M, {
|
|
2669
|
+
component: "span",
|
|
2670
|
+
className: "sel-lead",
|
|
2671
|
+
children: m.icon
|
|
2672
|
+
}) : null,
|
|
2673
|
+
/* @__PURE__ */ A(M, {
|
|
2674
|
+
component: "span",
|
|
2675
|
+
sx: {
|
|
2676
|
+
flex: 1,
|
|
2677
|
+
textAlign: "left",
|
|
2678
|
+
whiteSpace: "nowrap"
|
|
2679
|
+
},
|
|
2680
|
+
children: m?.label ?? s
|
|
2681
|
+
}),
|
|
2682
|
+
/* @__PURE__ */ A(M, {
|
|
2683
|
+
component: "span",
|
|
2684
|
+
className: "sel-chevron",
|
|
2685
|
+
children: /* @__PURE__ */ A(Oe, {})
|
|
2686
|
+
})
|
|
2687
|
+
]
|
|
2688
|
+
}), /* @__PURE__ */ A(F, {
|
|
2689
|
+
anchorEl: u,
|
|
2690
|
+
open: f,
|
|
2691
|
+
onClose: () => d(null),
|
|
2692
|
+
anchorOrigin: {
|
|
2693
|
+
vertical: "bottom",
|
|
2694
|
+
horizontal: "left"
|
|
2695
|
+
},
|
|
2696
|
+
transformOrigin: {
|
|
2697
|
+
vertical: "top",
|
|
2698
|
+
horizontal: "left"
|
|
2699
|
+
},
|
|
2700
|
+
slotProps: {
|
|
2701
|
+
paper: { sx: U.sxMenuPaper(a) },
|
|
2702
|
+
list: {
|
|
2703
|
+
sx: U.sxList,
|
|
2704
|
+
role: "listbox",
|
|
2705
|
+
...l ? { "data-testid": `${l}-menu` } : {}
|
|
2706
|
+
}
|
|
2707
|
+
},
|
|
2708
|
+
children: p.map((t) => {
|
|
2709
|
+
let n = t.value === e;
|
|
2710
|
+
return /* @__PURE__ */ j(I, {
|
|
2711
|
+
selected: n,
|
|
2712
|
+
onClick: () => h(t.value),
|
|
2713
|
+
"data-testid": l ? `${l}-option-${t.value}` : void 0,
|
|
2714
|
+
sx: U.sxItem(n),
|
|
2715
|
+
children: [i && t.icon ? /* @__PURE__ */ A(P, { children: t.icon }) : null, t.label]
|
|
2716
|
+
}, t.value);
|
|
2717
|
+
})
|
|
2718
|
+
})] });
|
|
2719
|
+
}
|
|
2720
|
+
//#endregion
|
|
2721
|
+
export { Qt as ACCOUNT_NAV_BLOCKS, wn as AppShell, Mn as BtnDropdown, i as CmsAudiosServices, oe as CmsAuthLoginServices, m as CmsAuthServices, _ as CmsCategoriesServices, _e as CmsCkeditorServices, n as CmsCommentsServices, me as CmsCommonServices, g as CmsContributionsServices, f as CmsDashboardServices, ye as CmsEventsServices, ge as CmsFileExplorerServices, x as CmsGeneralServices, Kt as CmsI18nProvider, ne as CmsImagesServices, En as CmsMuiProvider, re as CmsNewsServices, ce as CmsNotificationServices, de as CmsPeopleServices, te as CmsPlanningServices, ee as CmsPollsServices, r as CmsPreviewServices, C as CmsProductivityPlanServices, d as CmsProfileServices, ae as CmsPublicationsServices, he as CmsRecipesServices, ve as CmsSectionsServices, e as CmsSitesServices, le as CmsTagsServices, fe as CmsTranscribeServices, ie as CmsTriviasServices, p as CmsUploadServices, se as CmsUsersServices, S as CmsVideosServices, ue as CmsVodsServices, pe as CmsWorkpaperServices, w as CmsZonesServices, Ut as DEFAULT_LOCALE, a as DEFAULT_SITE_ID, Jt as DefaultCmsLink, c as ITEM_DEFAULT_BG, u as ITEM_HOVER_BG, kt as LIB_VERSION, h as MENU_BG, On as NextCmsMuiProvider, dn as NotificationsMenu, bn as ProfileMenu, Ht as SUPPORTED_LOCALES, Nn as SelectDropdown, U as SelectStyles, sn as Sidebar, kn as SimpleDropdown, ln as SiteSelectorMenu, Cn as TopBar, Nt as cmsButtonDivider, H as cmsButtonHoverBg, V as cmsButtonSurface, b as cmsColors, Mt as createAppTheme, It as createTranslator, Bt as defaultLocaleCatalog, Lt as enMessages, Rt as esMessages, be as findPublicationBySlug, t as findPublicationLabel, y as getAllPublications, s as getDefaultPublicationSlug, qt as getIntlLocaleTag, _n as getProfileAvatarSrc, vn as getProfileDisplayName, Vt as mergeMessages, Wt as normalizeLocale, v as parsePublicationSlug, zt as ptMessages, o as radii, mn as resolveCmsAssetUrl, pn as resolveCmsOrigin, l as shadows, T as sizes, Pt as sxPillButton, G as useCmsTranslation };
|
|
2249
2722
|
|
|
2250
2723
|
//# sourceMappingURL=index.js.map
|