sass-cms-template-common 0.0.3 → 0.0.4
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 +10 -7
- package/dist/index.js +465 -503
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +10 -0
- package/dist/server.js +2 -2
- package/dist/{services-D9XCHGgK.js → services-DlTJ4HIV.js} +32 -11
- package/dist/services-DlTJ4HIV.js.map +1 -0
- package/package.json +1 -1
- package/dist/services-D9XCHGgK.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
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, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./services-DlTJ4HIV.js";
|
|
2
|
+
import { ThemeProvider as u, alpha as d, createTheme as f } from "@mui/material/styles";
|
|
3
|
+
import { createContext as p, forwardRef as m, useContext as h, useMemo as g, useState as _ } from "react";
|
|
4
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
5
|
+
import x from "@mui/material/Box";
|
|
6
|
+
import S from "@mui/icons-material/ChevronRight";
|
|
7
|
+
import ee from "@mui/icons-material/ExpandMore";
|
|
8
|
+
import te from "@mui/material/Collapse";
|
|
9
|
+
import C from "@mui/material/IconButton";
|
|
10
|
+
import w from "@mui/material/ListItemIcon";
|
|
11
|
+
import T from "@mui/material/ListItemText";
|
|
12
|
+
import E from "@mui/material/Menu";
|
|
13
|
+
import D from "@mui/material/MenuItem";
|
|
14
|
+
import O from "@mui/material/Tooltip";
|
|
15
|
+
import k from "@mui/material/Typography";
|
|
16
|
+
import ne from "@mui/icons-material/BarChartOutlined";
|
|
17
|
+
import A from "@mui/icons-material/BookmarkBorderOutlined";
|
|
18
|
+
import j from "@mui/icons-material/ChatBubbleOutlineOutlined";
|
|
19
|
+
import M from "@mui/icons-material/CreateOutlined";
|
|
20
|
+
import N from "@mui/icons-material/EventOutlined";
|
|
21
|
+
import P from "@mui/icons-material/ExploreOutlined";
|
|
22
|
+
import re from "@mui/icons-material/ImageOutlined";
|
|
23
|
+
import ie from "@mui/icons-material/ImportExportOutlined";
|
|
24
|
+
import ae from "@mui/icons-material/LabelOutlined";
|
|
25
|
+
import oe from "@mui/icons-material/MailOutlineOutlined";
|
|
26
|
+
import se from "@mui/icons-material/MoreHorizOutlined";
|
|
27
|
+
import ce from "@mui/icons-material/NotificationsNoneOutlined";
|
|
28
|
+
import le from "@mui/icons-material/PeopleOutlineOutlined";
|
|
29
|
+
import ue from "@mui/icons-material/PeopleOutlined";
|
|
30
|
+
import de from "@mui/icons-material/PermMediaOutlined";
|
|
31
|
+
import fe from "@mui/icons-material/PlayCircleOutlineOutlined";
|
|
32
|
+
import pe from "@mui/icons-material/RestaurantOutlined";
|
|
33
|
+
import me from "@mui/icons-material/SearchOutlined";
|
|
34
|
+
import he from "@mui/icons-material/ShoppingCartOutlined";
|
|
35
|
+
import ge from "@mui/icons-material/ViewListOutlined";
|
|
36
|
+
import _e from "@mui/icons-material/FormatAlignCenter";
|
|
37
|
+
import ve from "@mui/icons-material/TimelineOutlined";
|
|
38
|
+
import ye from "@mui/icons-material/MessageOutlined";
|
|
39
|
+
import be from "@mui/icons-material/MicNoneOutlined";
|
|
40
|
+
import xe from "@mui/icons-material/PlaylistPlayOutlined";
|
|
41
|
+
import Se from "@mui/icons-material/PendingActionsOutlined";
|
|
42
|
+
import Ce from "@mui/icons-material/ForumOutlined";
|
|
43
|
+
import we from "@mui/icons-material/UsbOutlined";
|
|
44
|
+
import Te from "@mui/icons-material/FormatListBulletedOutlined";
|
|
45
|
+
import Ee from "@mui/icons-material/VerticalSplitOutlined";
|
|
46
|
+
import De from "@mui/icons-material/ViewQuiltOutlined";
|
|
47
|
+
import Oe from "@mui/icons-material/SubscriptionsOutlined";
|
|
48
|
+
import ke from "@mui/icons-material/AddOutlined";
|
|
49
|
+
import Ae from "@mui/icons-material/DevicesOtherOutlined";
|
|
50
|
+
import je from "@mui/icons-material/HelpOutlineOutlined";
|
|
51
|
+
import Me from "@mui/icons-material/Menu";
|
|
52
|
+
import Ne from "@mui/material/AppBar";
|
|
53
|
+
import Pe from "@mui/material/Toolbar";
|
|
54
|
+
import Fe from "@mui/icons-material/KeyboardArrowDown";
|
|
55
|
+
import Ie from "@mui/material/Button";
|
|
56
|
+
import Le from "@mui/material/Badge";
|
|
57
|
+
import Re from "@mui/material/List";
|
|
58
|
+
import ze from "@mui/material/ListItemButton";
|
|
59
|
+
import Be from "@mui/icons-material/EditOutlined";
|
|
60
|
+
import Ve from "@mui/icons-material/LogoutOutlined";
|
|
61
|
+
import He from "@mui/icons-material/PersonOutlined";
|
|
62
|
+
import Ue from "@mui/material/Avatar";
|
|
63
|
+
import We from "@mui/material/Divider";
|
|
64
|
+
import F from "@mui/material/CssBaseline";
|
|
65
|
+
import { AppRouterCacheProvider as Ge } from "@mui/material-nextjs/v16-appRouter";
|
|
66
66
|
//#region src/lib/version.ts
|
|
67
|
-
var
|
|
67
|
+
var Ke = "0.0.0", I = {
|
|
68
68
|
description: "TYPE: CUSTOM\nMaterial Theme Builder export 2026-05-08 02:18:51",
|
|
69
69
|
seed: "#0067C4",
|
|
70
70
|
coreColors: {
|
|
@@ -529,10 +529,10 @@ var ze = "0.0.0", P = {
|
|
|
529
529
|
};
|
|
530
530
|
//#endregion
|
|
531
531
|
//#region src/lib/theme/createAppTheme.ts
|
|
532
|
-
function
|
|
533
|
-
return
|
|
532
|
+
function L(e) {
|
|
533
|
+
return I.extendedColors.find((t) => t.name === e)?.color;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function qe(e) {
|
|
536
536
|
return {
|
|
537
537
|
50: e[98],
|
|
538
538
|
100: e[95],
|
|
@@ -550,8 +550,8 @@ function Be(e) {
|
|
|
550
550
|
A700: e[40]
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
let
|
|
553
|
+
function Je(e, t) {
|
|
554
|
+
let n = t.onSurface;
|
|
555
555
|
return {
|
|
556
556
|
mode: e,
|
|
557
557
|
primary: {
|
|
@@ -579,28 +579,28 @@ function Ve(e, t) {
|
|
|
579
579
|
contrastText: t.onError
|
|
580
580
|
},
|
|
581
581
|
warning: {
|
|
582
|
-
main:
|
|
582
|
+
main: L("Estado Programado") ?? "#FF6D00",
|
|
583
583
|
light: "#FF9E40",
|
|
584
584
|
dark: "#C25400",
|
|
585
585
|
contrastText: "#FFFFFF"
|
|
586
586
|
},
|
|
587
587
|
info: {
|
|
588
|
-
main:
|
|
588
|
+
main: L("Estado Redaccion") ?? "#0091EA",
|
|
589
589
|
light: "#64B5F6",
|
|
590
590
|
dark: "#0064B7",
|
|
591
591
|
contrastText: "#FFFFFF"
|
|
592
592
|
},
|
|
593
593
|
success: {
|
|
594
|
-
main:
|
|
594
|
+
main: L("Estado publicada") ?? "#00C853",
|
|
595
595
|
light: "#69F0AE",
|
|
596
596
|
dark: "#009624",
|
|
597
597
|
contrastText: "#FFFFFF"
|
|
598
598
|
},
|
|
599
|
-
brand: { main:
|
|
599
|
+
brand: { main: L("Bluestack color") ?? "#2962FF" },
|
|
600
600
|
text: {
|
|
601
601
|
primary: t.onSurface,
|
|
602
602
|
secondary: t.onSurfaceVariant,
|
|
603
|
-
disabled:
|
|
603
|
+
disabled: d(t.onSurface, .38)
|
|
604
604
|
},
|
|
605
605
|
divider: t.outlineVariant,
|
|
606
606
|
background: {
|
|
@@ -608,18 +608,18 @@ function Ve(e, t) {
|
|
|
608
608
|
paper: t.surfaceContainerLowest
|
|
609
609
|
},
|
|
610
610
|
action: {
|
|
611
|
-
active: n
|
|
612
|
-
hover: n
|
|
613
|
-
selected:
|
|
614
|
-
focus:
|
|
615
|
-
disabled: n
|
|
616
|
-
disabledBackground: n
|
|
611
|
+
active: d(n, .56),
|
|
612
|
+
hover: d(n, e === "light" ? .04 : .08),
|
|
613
|
+
selected: d(t.primary, .12),
|
|
614
|
+
focus: d(t.primary, .12),
|
|
615
|
+
disabled: d(n, .26),
|
|
616
|
+
disabledBackground: d(n, .12)
|
|
617
617
|
},
|
|
618
618
|
common: {
|
|
619
619
|
black: t.shadow,
|
|
620
620
|
white: "#FFFFFF"
|
|
621
621
|
},
|
|
622
|
-
grey:
|
|
622
|
+
grey: qe(I.palettes.neutral),
|
|
623
623
|
m3: {
|
|
624
624
|
surfaceTint: t.surfaceTint,
|
|
625
625
|
surfaceDim: t.surfaceDim,
|
|
@@ -641,9 +641,9 @@ function Ve(e, t) {
|
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
let e =
|
|
646
|
-
return
|
|
644
|
+
function R() {
|
|
645
|
+
let e = Je("light", I.schemes.light), t = Je("dark", I.schemes.dark);
|
|
646
|
+
return f({
|
|
647
647
|
cssVariables: { colorSchemeSelector: "data" },
|
|
648
648
|
defaultColorScheme: "light",
|
|
649
649
|
colorSchemes: {
|
|
@@ -660,13 +660,13 @@ function I() {
|
|
|
660
660
|
}
|
|
661
661
|
//#endregion
|
|
662
662
|
//#region src/lib/i18n/createTranslator.ts
|
|
663
|
-
function
|
|
663
|
+
function Ye(e, t) {
|
|
664
664
|
return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
|
|
665
665
|
let r = t[n];
|
|
666
666
|
return r === void 0 ? `{${n}}` : String(r);
|
|
667
667
|
}) : e;
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function z(e) {
|
|
670
670
|
let t = e.navigation;
|
|
671
671
|
return {
|
|
672
672
|
messages: e,
|
|
@@ -674,12 +674,12 @@ function L(e) {
|
|
|
674
674
|
sidebar: (t) => e.sidebar[t],
|
|
675
675
|
topBar: (t) => e.topBar[t],
|
|
676
676
|
profileMenu: (t) => e.profileMenu[t],
|
|
677
|
-
notificationsMenu: (t, n) =>
|
|
677
|
+
notificationsMenu: (t, n) => Ye(e.notificationsMenu[t], n)
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
680
|
//#endregion
|
|
681
681
|
//#region src/lib/i18n/messages/en.ts
|
|
682
|
-
var
|
|
682
|
+
var Xe = {
|
|
683
683
|
navigation: {
|
|
684
684
|
COMMENTS: "Comments",
|
|
685
685
|
POLLS: "Polls",
|
|
@@ -693,7 +693,7 @@ var Ue = {
|
|
|
693
693
|
ANALYTICS: "Analytics",
|
|
694
694
|
TAGS: "Tags",
|
|
695
695
|
TRIVIAS: "Trivia",
|
|
696
|
-
|
|
696
|
+
OTHERS: "Other",
|
|
697
697
|
NEWSWIRES: "News Wires",
|
|
698
698
|
EVENTS: "Events",
|
|
699
699
|
PAGES: "Pages",
|
|
@@ -745,7 +745,7 @@ var Ue = {
|
|
|
745
745
|
empty: "No notifications",
|
|
746
746
|
ariaLabel: "Notifications"
|
|
747
747
|
}
|
|
748
|
-
},
|
|
748
|
+
}, Ze = {
|
|
749
749
|
navigation: {
|
|
750
750
|
COMMENTS: "Comentarios",
|
|
751
751
|
POLLS: "Encuestas",
|
|
@@ -759,7 +759,7 @@ var Ue = {
|
|
|
759
759
|
ANALYTICS: "Analíticas",
|
|
760
760
|
TAGS: "Tags",
|
|
761
761
|
TRIVIAS: "Trivias",
|
|
762
|
-
|
|
762
|
+
OTHERS: "Otros",
|
|
763
763
|
NEWSWIRES: "News Wires",
|
|
764
764
|
EVENTS: "Eventos",
|
|
765
765
|
PAGES: "Páginas",
|
|
@@ -811,7 +811,7 @@ var Ue = {
|
|
|
811
811
|
empty: "No hay notificaciones",
|
|
812
812
|
ariaLabel: "Notificaciones"
|
|
813
813
|
}
|
|
814
|
-
},
|
|
814
|
+
}, Qe = {
|
|
815
815
|
navigation: {
|
|
816
816
|
COMMENTS: "Comentários",
|
|
817
817
|
POLLS: "Enquetes",
|
|
@@ -825,7 +825,7 @@ var Ue = {
|
|
|
825
825
|
ANALYTICS: "Análises",
|
|
826
826
|
TAGS: "Tags",
|
|
827
827
|
TRIVIAS: "Trivias",
|
|
828
|
-
|
|
828
|
+
OTHERS: "Outros",
|
|
829
829
|
NEWSWIRES: "News Wires",
|
|
830
830
|
EVENTS: "Eventos",
|
|
831
831
|
PAGES: "Páginas",
|
|
@@ -877,37 +877,37 @@ var Ue = {
|
|
|
877
877
|
empty: "Nenhuma notificação",
|
|
878
878
|
ariaLabel: "Notificações"
|
|
879
879
|
}
|
|
880
|
-
},
|
|
881
|
-
en:
|
|
882
|
-
es:
|
|
883
|
-
pt:
|
|
880
|
+
}, B = {
|
|
881
|
+
en: Xe,
|
|
882
|
+
es: Ze,
|
|
883
|
+
pt: Qe
|
|
884
884
|
};
|
|
885
|
-
function
|
|
885
|
+
function V(e, t) {
|
|
886
886
|
return t ? {
|
|
887
887
|
...e,
|
|
888
888
|
...t
|
|
889
889
|
} : e;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function H(e, t, n) {
|
|
892
892
|
let r = t[e], i = t.en;
|
|
893
893
|
return {
|
|
894
|
-
navigation:
|
|
894
|
+
navigation: V({
|
|
895
895
|
...i.navigation,
|
|
896
896
|
...r.navigation
|
|
897
897
|
}, n?.navigation),
|
|
898
|
-
sidebar:
|
|
898
|
+
sidebar: V({
|
|
899
899
|
...i.sidebar,
|
|
900
900
|
...r.sidebar
|
|
901
901
|
}, n?.sidebar),
|
|
902
|
-
topBar:
|
|
902
|
+
topBar: V({
|
|
903
903
|
...i.topBar,
|
|
904
904
|
...r.topBar
|
|
905
905
|
}, n?.topBar),
|
|
906
|
-
profileMenu:
|
|
906
|
+
profileMenu: V({
|
|
907
907
|
...i.profileMenu,
|
|
908
908
|
...r.profileMenu
|
|
909
909
|
}, n?.profileMenu),
|
|
910
|
-
notificationsMenu:
|
|
910
|
+
notificationsMenu: V({
|
|
911
911
|
...i.notificationsMenu,
|
|
912
912
|
...r.notificationsMenu
|
|
913
913
|
}, n?.notificationsMenu)
|
|
@@ -915,42 +915,42 @@ function B(e, t, n) {
|
|
|
915
915
|
}
|
|
916
916
|
//#endregion
|
|
917
917
|
//#region src/lib/i18n/types.ts
|
|
918
|
-
var
|
|
918
|
+
var U = [
|
|
919
919
|
"es",
|
|
920
920
|
"en",
|
|
921
921
|
"pt"
|
|
922
|
-
],
|
|
922
|
+
], $e = "en";
|
|
923
923
|
//#endregion
|
|
924
924
|
//#region src/lib/i18n/normalizeLocale.ts
|
|
925
|
-
function
|
|
925
|
+
function et(e) {
|
|
926
926
|
if (!e) return "en";
|
|
927
927
|
let t = e.trim().toLowerCase().replace("_", "-"), n = t.split("-")[0];
|
|
928
|
-
return
|
|
928
|
+
return U.includes(t) ? t : U.includes(n) ? n : "en";
|
|
929
929
|
}
|
|
930
930
|
//#endregion
|
|
931
931
|
//#region src/lib/i18n/CmsI18nProvider.tsx
|
|
932
|
-
var
|
|
933
|
-
function
|
|
934
|
-
let a =
|
|
932
|
+
var tt = p(null);
|
|
933
|
+
function nt({ locale: e, language: t, messages: n, catalog: r = B, children: i }) {
|
|
934
|
+
let a = et(e ?? t), o = g(() => ({
|
|
935
935
|
locale: a,
|
|
936
|
-
t:
|
|
936
|
+
t: z(H(a, r, n))
|
|
937
937
|
}), [
|
|
938
938
|
r,
|
|
939
939
|
n,
|
|
940
940
|
a
|
|
941
941
|
]);
|
|
942
|
-
return /* @__PURE__ */
|
|
942
|
+
return /* @__PURE__ */ y(tt.Provider, {
|
|
943
943
|
value: o,
|
|
944
944
|
children: i
|
|
945
945
|
});
|
|
946
946
|
}
|
|
947
947
|
//#endregion
|
|
948
948
|
//#region src/lib/i18n/useCmsTranslation.ts
|
|
949
|
-
function
|
|
950
|
-
let t =
|
|
949
|
+
function W(e) {
|
|
950
|
+
let t = h(tt), n = e?.locale ?? t?.locale ?? "en", r = e?.catalog ?? B, i = e?.messages;
|
|
951
951
|
return {
|
|
952
952
|
locale: n,
|
|
953
|
-
t:
|
|
953
|
+
t: g(() => !i && t && t.locale === n ? t.t : z(H(n, r, i)), [
|
|
954
954
|
r,
|
|
955
955
|
t,
|
|
956
956
|
n,
|
|
@@ -958,7 +958,7 @@ function H(e) {
|
|
|
958
958
|
])
|
|
959
959
|
};
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function rt(e) {
|
|
962
962
|
switch (e) {
|
|
963
963
|
case "pt": return "pt-BR";
|
|
964
964
|
case "en": return "en-US";
|
|
@@ -967,14 +967,14 @@ function Xe(e) {
|
|
|
967
967
|
}
|
|
968
968
|
//#endregion
|
|
969
969
|
//#region src/lib/components/link.tsx
|
|
970
|
-
var
|
|
971
|
-
return /* @__PURE__ */
|
|
970
|
+
var G = m(function({ href: e, children: t, ...n }, r) {
|
|
971
|
+
return /* @__PURE__ */ y("a", {
|
|
972
972
|
href: e,
|
|
973
973
|
ref: r,
|
|
974
974
|
...n,
|
|
975
975
|
children: t
|
|
976
976
|
});
|
|
977
|
-
}),
|
|
977
|
+
}), K = "#D8E2FF", it = "#E3E2E6", q = "#414752", at = 24, ot = 24, J = {
|
|
978
978
|
sxRoot: (e) => {
|
|
979
979
|
let t = e ? 195 : 96;
|
|
980
980
|
return {
|
|
@@ -1048,10 +1048,10 @@ var U = a(function({ href: e, children: t, ...n }, r) {
|
|
|
1048
1048
|
px: 0,
|
|
1049
1049
|
py: 0,
|
|
1050
1050
|
borderRadius: "100px",
|
|
1051
|
-
color:
|
|
1051
|
+
color: q,
|
|
1052
1052
|
textDecoration: "none",
|
|
1053
|
-
bgcolor: e ?
|
|
1054
|
-
"&:hover": { bgcolor: e ?
|
|
1053
|
+
bgcolor: e ? K : "transparent",
|
|
1054
|
+
"&:hover": { bgcolor: e ? K : "action.hover" }
|
|
1055
1055
|
} : {
|
|
1056
1056
|
position: "relative",
|
|
1057
1057
|
display: "flex",
|
|
@@ -1069,13 +1069,13 @@ var U = a(function({ href: e, children: t, ...n }, r) {
|
|
|
1069
1069
|
ml: "-1rem",
|
|
1070
1070
|
mr: 0,
|
|
1071
1071
|
borderRadius: t ? "100px" : "0 100px 100px 0",
|
|
1072
|
-
color:
|
|
1072
|
+
color: q,
|
|
1073
1073
|
textDecoration: "none",
|
|
1074
|
-
bgcolor: e ?
|
|
1075
|
-
"&:hover": { bgcolor: e ?
|
|
1074
|
+
bgcolor: e ? K : "transparent",
|
|
1075
|
+
"&:hover": { bgcolor: e ? K : it }
|
|
1076
1076
|
},
|
|
1077
1077
|
sxItemIcon: (e, t = !1) => ({
|
|
1078
|
-
fontSize: t ?
|
|
1078
|
+
fontSize: t ? ot : at,
|
|
1079
1079
|
color: e ? "secondary.dark" : "m3.onSurfaceVariant",
|
|
1080
1080
|
width: t ? 48 : "auto",
|
|
1081
1081
|
flexShrink: 0
|
|
@@ -1086,7 +1086,7 @@ var U = a(function({ href: e, children: t, ...n }, r) {
|
|
|
1086
1086
|
fontSize: 14,
|
|
1087
1087
|
fontWeight: e ? 600 : 400,
|
|
1088
1088
|
lineHeight: 1.43,
|
|
1089
|
-
color:
|
|
1089
|
+
color: q,
|
|
1090
1090
|
overflow: "hidden",
|
|
1091
1091
|
textOverflow: "ellipsis",
|
|
1092
1092
|
whiteSpace: "nowrap"
|
|
@@ -1114,12 +1114,12 @@ var U = a(function({ href: e, children: t, ...n }, r) {
|
|
|
1114
1114
|
px: 2,
|
|
1115
1115
|
py: 1,
|
|
1116
1116
|
gap: 1.25,
|
|
1117
|
-
color:
|
|
1118
|
-
bgcolor: e ?
|
|
1119
|
-
"&:hover": { bgcolor: e ?
|
|
1117
|
+
color: q,
|
|
1118
|
+
bgcolor: e ? K : "transparent",
|
|
1119
|
+
"&:hover": { bgcolor: e ? K : it },
|
|
1120
1120
|
"&.Mui-selected": {
|
|
1121
|
-
bgcolor:
|
|
1122
|
-
"&:hover": { bgcolor:
|
|
1121
|
+
bgcolor: K,
|
|
1122
|
+
"&:hover": { bgcolor: K }
|
|
1123
1123
|
}
|
|
1124
1124
|
}),
|
|
1125
1125
|
sxChildrenMenuListItemIcon: {
|
|
@@ -1143,267 +1143,241 @@ var U = a(function({ href: e, children: t, ...n }, r) {
|
|
|
1143
1143
|
alignItems: "center",
|
|
1144
1144
|
justifyContent: "center"
|
|
1145
1145
|
})
|
|
1146
|
-
},
|
|
1146
|
+
}, st = [
|
|
1147
1147
|
{
|
|
1148
|
-
href: "/
|
|
1149
|
-
icon:
|
|
1148
|
+
href: "/admin/comments/",
|
|
1149
|
+
icon: ye,
|
|
1150
1150
|
module: "COMMENTS"
|
|
1151
1151
|
},
|
|
1152
1152
|
{
|
|
1153
|
-
href: "/
|
|
1154
|
-
icon:
|
|
1153
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/poll.jsp",
|
|
1154
|
+
icon: ne,
|
|
1155
1155
|
module: "POLLS"
|
|
1156
1156
|
},
|
|
1157
1157
|
{
|
|
1158
1158
|
href: "/media",
|
|
1159
|
-
icon:
|
|
1160
|
-
defaultOpen: !0,
|
|
1159
|
+
icon: de,
|
|
1161
1160
|
module: "MEDIA",
|
|
1162
1161
|
children: [
|
|
1163
1162
|
{
|
|
1164
|
-
href: "/
|
|
1165
|
-
icon:
|
|
1163
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/audios.jsp",
|
|
1164
|
+
icon: be,
|
|
1166
1165
|
module: "AUDIOS"
|
|
1167
1166
|
},
|
|
1168
1167
|
{
|
|
1169
|
-
href: "/
|
|
1170
|
-
icon:
|
|
1168
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/playlist.jsp",
|
|
1169
|
+
icon: re,
|
|
1171
1170
|
module: "IMAGES"
|
|
1172
1171
|
},
|
|
1173
1172
|
{
|
|
1174
1173
|
href: "/media/playlist",
|
|
1175
|
-
icon:
|
|
1174
|
+
icon: xe,
|
|
1176
1175
|
module: "PLAYLISTS"
|
|
1177
1176
|
},
|
|
1178
1177
|
{
|
|
1179
|
-
href: "/
|
|
1180
|
-
icon:
|
|
1178
|
+
href: "/admin/videos/",
|
|
1179
|
+
icon: fe,
|
|
1181
1180
|
module: "VIDEOS"
|
|
1182
1181
|
}
|
|
1183
1182
|
]
|
|
1184
1183
|
},
|
|
1185
1184
|
{
|
|
1186
|
-
href: "/
|
|
1187
|
-
icon:
|
|
1188
|
-
module: "
|
|
1185
|
+
href: "/admin/posts/",
|
|
1186
|
+
icon: _e,
|
|
1187
|
+
module: "POSTS"
|
|
1189
1188
|
},
|
|
1190
1189
|
{
|
|
1191
|
-
href: "/
|
|
1192
|
-
icon:
|
|
1193
|
-
module: "
|
|
1190
|
+
href: "/admin/reports/",
|
|
1191
|
+
icon: ve,
|
|
1192
|
+
module: "PRODUCTION"
|
|
1194
1193
|
},
|
|
1195
1194
|
{
|
|
1196
|
-
href: "/
|
|
1197
|
-
icon:
|
|
1198
|
-
module: "
|
|
1195
|
+
href: "/planificacion",
|
|
1196
|
+
icon: Se,
|
|
1197
|
+
module: "PLANNING"
|
|
1199
1198
|
},
|
|
1200
1199
|
{
|
|
1201
1200
|
href: "/tags",
|
|
1202
|
-
icon:
|
|
1201
|
+
icon: ae,
|
|
1203
1202
|
module: "TAGS"
|
|
1204
1203
|
},
|
|
1205
1204
|
{
|
|
1206
|
-
href: "/trivias",
|
|
1207
|
-
icon:
|
|
1205
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/trivias.jsp",
|
|
1206
|
+
icon: Ce,
|
|
1208
1207
|
module: "TRIVIAS"
|
|
1209
1208
|
},
|
|
1210
1209
|
{
|
|
1211
1210
|
href: "/otros",
|
|
1212
|
-
icon:
|
|
1213
|
-
module: "
|
|
1211
|
+
icon: se,
|
|
1212
|
+
module: "OTHERS",
|
|
1214
1213
|
children: [
|
|
1215
1214
|
{
|
|
1216
|
-
href: "/
|
|
1217
|
-
icon:
|
|
1215
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/newswires.jsp",
|
|
1216
|
+
icon: we,
|
|
1218
1217
|
module: "NEWSWIRES"
|
|
1219
1218
|
},
|
|
1220
1219
|
{
|
|
1221
|
-
href: "/
|
|
1222
|
-
icon:
|
|
1220
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/event.jsp",
|
|
1221
|
+
icon: N,
|
|
1223
1222
|
module: "EVENTS"
|
|
1224
1223
|
},
|
|
1225
1224
|
{
|
|
1226
|
-
href: "/
|
|
1227
|
-
icon:
|
|
1225
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/adminPages.jsp",
|
|
1226
|
+
icon: P,
|
|
1228
1227
|
module: "PAGES"
|
|
1229
1228
|
},
|
|
1230
1229
|
{
|
|
1231
|
-
href: "/
|
|
1232
|
-
icon:
|
|
1230
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/dashboard.jsp",
|
|
1231
|
+
icon: Te,
|
|
1233
1232
|
module: "FEEDS"
|
|
1234
1233
|
},
|
|
1235
1234
|
{
|
|
1236
|
-
href: "/
|
|
1237
|
-
icon:
|
|
1235
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/adminPages.jsp",
|
|
1236
|
+
icon: ue,
|
|
1238
1237
|
module: "PERSONS"
|
|
1239
1238
|
},
|
|
1240
1239
|
{
|
|
1241
|
-
href: "/
|
|
1242
|
-
icon:
|
|
1243
|
-
module: "
|
|
1240
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/adminPosts.jsp",
|
|
1241
|
+
icon: M,
|
|
1242
|
+
module: "POSTS"
|
|
1244
1243
|
},
|
|
1245
1244
|
{
|
|
1246
|
-
href: "/
|
|
1247
|
-
icon:
|
|
1245
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/recipe.jsp",
|
|
1246
|
+
icon: pe,
|
|
1248
1247
|
module: "RECIPES"
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
href: "/otros/posts",
|
|
1252
|
-
icon: w,
|
|
1253
|
-
module: "POSTS"
|
|
1254
1248
|
}
|
|
1255
1249
|
]
|
|
1256
1250
|
},
|
|
1257
1251
|
{
|
|
1258
|
-
href: "/banners",
|
|
1259
|
-
icon:
|
|
1252
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/banners.jsp",
|
|
1253
|
+
icon: Ee,
|
|
1260
1254
|
module: "BANNERS"
|
|
1261
1255
|
},
|
|
1262
1256
|
{
|
|
1263
|
-
href: "/
|
|
1264
|
-
icon:
|
|
1257
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/dynamicContent.jsp",
|
|
1258
|
+
icon: De,
|
|
1265
1259
|
module: "BLOCKS"
|
|
1266
1260
|
},
|
|
1267
1261
|
{
|
|
1268
|
-
href: "/
|
|
1269
|
-
icon:
|
|
1262
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/menuSite.jsp",
|
|
1263
|
+
icon: ge,
|
|
1270
1264
|
module: "MENUS"
|
|
1271
1265
|
},
|
|
1272
1266
|
{
|
|
1273
|
-
href: "/
|
|
1274
|
-
icon:
|
|
1267
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/navigationTags.jsp",
|
|
1268
|
+
icon: A,
|
|
1275
1269
|
module: "TOPICS"
|
|
1276
1270
|
},
|
|
1277
1271
|
{
|
|
1278
|
-
href: "/
|
|
1279
|
-
icon:
|
|
1272
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/filterQueryList.jsp",
|
|
1273
|
+
icon: me,
|
|
1280
1274
|
module: "ADVANCEDQUERYS"
|
|
1281
1275
|
},
|
|
1282
1276
|
{
|
|
1283
|
-
href: "/
|
|
1284
|
-
icon:
|
|
1277
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/adminImports.jsp",
|
|
1278
|
+
icon: ie,
|
|
1285
1279
|
module: "IMPORTS"
|
|
1286
1280
|
},
|
|
1287
1281
|
{
|
|
1288
|
-
href: "/
|
|
1289
|
-
icon:
|
|
1282
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/newsletter.jsp",
|
|
1283
|
+
icon: oe,
|
|
1290
1284
|
module: "NEWSLETTERS"
|
|
1291
1285
|
},
|
|
1292
1286
|
{
|
|
1293
|
-
href: "/
|
|
1294
|
-
icon:
|
|
1287
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/adminQueues.jsp",
|
|
1288
|
+
icon: ce,
|
|
1295
1289
|
module: "NOTIFICATIONS"
|
|
1296
1290
|
},
|
|
1297
1291
|
{
|
|
1298
|
-
href: "/
|
|
1299
|
-
icon:
|
|
1292
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/payments.jsp",
|
|
1293
|
+
icon: he,
|
|
1300
1294
|
module: "PAYMENTS"
|
|
1301
1295
|
},
|
|
1302
1296
|
{
|
|
1303
|
-
href: "/
|
|
1304
|
-
icon:
|
|
1305
|
-
module: "
|
|
1306
|
-
},
|
|
1307
|
-
{
|
|
1308
|
-
href: "/reportes",
|
|
1309
|
-
icon: D,
|
|
1310
|
-
module: "REPORTS"
|
|
1311
|
-
},
|
|
1312
|
-
{
|
|
1313
|
-
href: "/secciones",
|
|
1314
|
-
icon: be,
|
|
1315
|
-
module: "SECTIONS"
|
|
1297
|
+
href: "/system/modules/com.tfsla.diario.admin/templates/subscriptions.jsp",
|
|
1298
|
+
icon: Oe,
|
|
1299
|
+
module: "PAYMENTS"
|
|
1316
1300
|
},
|
|
1317
1301
|
{
|
|
1318
1302
|
href: "/twitter-feeds",
|
|
1319
|
-
icon:
|
|
1303
|
+
icon: j,
|
|
1320
1304
|
module: "TWITTERS"
|
|
1321
1305
|
},
|
|
1322
1306
|
{
|
|
1323
1307
|
href: "/usuarios",
|
|
1324
|
-
icon:
|
|
1308
|
+
icon: le,
|
|
1325
1309
|
module: "USERS"
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
href: "/zonas",
|
|
1329
|
-
icon: ie,
|
|
1330
|
-
module: "ZONES"
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
href: "/ia",
|
|
1334
|
-
icon: A,
|
|
1335
|
-
module: "IA"
|
|
1336
1310
|
}
|
|
1337
1311
|
];
|
|
1338
1312
|
//#endregion
|
|
1339
1313
|
//#region src/lib/components/sidebar/Sidebar.tsx
|
|
1340
|
-
function
|
|
1314
|
+
function ct(e, t) {
|
|
1341
1315
|
return e.label ?? t.navigation(e.module);
|
|
1342
1316
|
}
|
|
1343
|
-
function
|
|
1317
|
+
function Y(e, t) {
|
|
1344
1318
|
return !!(e === t || t !== "/" && e.startsWith(`${t}/`));
|
|
1345
1319
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return
|
|
1320
|
+
function lt(e, t) {
|
|
1321
|
+
return Y(e, t.href) ? !0 : t.children?.some((t) => Y(e, t.href)) ?? !1;
|
|
1348
1322
|
}
|
|
1349
|
-
function
|
|
1323
|
+
function ut(e, t) {
|
|
1350
1324
|
return e.find((e) => e.module === t);
|
|
1351
1325
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return e.children?.filter((e) =>
|
|
1326
|
+
function dt(e, t) {
|
|
1327
|
+
return e.children?.filter((e) => ut(t, e.module)) ?? [];
|
|
1354
1328
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return e ? n : /* @__PURE__ */
|
|
1329
|
+
function ft(e, t, n) {
|
|
1330
|
+
return e ? n : /* @__PURE__ */ y(O, {
|
|
1357
1331
|
title: t,
|
|
1358
1332
|
placement: "right",
|
|
1359
1333
|
arrow: !0,
|
|
1360
|
-
children: /* @__PURE__ */
|
|
1334
|
+
children: /* @__PURE__ */ y(x, {
|
|
1361
1335
|
component: "span",
|
|
1362
|
-
sx:
|
|
1336
|
+
sx: J.sxTooltipWrap(e),
|
|
1363
1337
|
children: n
|
|
1364
1338
|
})
|
|
1365
1339
|
});
|
|
1366
1340
|
}
|
|
1367
|
-
function
|
|
1368
|
-
let
|
|
1369
|
-
if (!
|
|
1370
|
-
let
|
|
1371
|
-
|
|
1341
|
+
function pt({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand: i, LinkComponent: a, pathname: o, permissions: s, t: c, baseUrl: l, selectedPublicationId: u }) {
|
|
1342
|
+
let d = ct(e, c), f = ut(s, e.module), p = dt(e, s), m = !n, h = Y(o, e.href), g = lt(o, e), O = p.length > 0, ne = e.icon, A = t ? h : h || g, [j, M] = _(null), N = !!j;
|
|
1343
|
+
if (!f && !O) return null;
|
|
1344
|
+
let P = /* @__PURE__ */ b(v, { children: [
|
|
1345
|
+
O && !m ? /* @__PURE__ */ y(C, {
|
|
1372
1346
|
size: "small",
|
|
1373
|
-
"aria-label": r ?
|
|
1347
|
+
"aria-label": r ? c.sidebar("collapse") : c.sidebar("expand"),
|
|
1374
1348
|
onClick: (e) => {
|
|
1375
1349
|
e.preventDefault(), e.stopPropagation(), i?.();
|
|
1376
1350
|
},
|
|
1377
|
-
sx:
|
|
1378
|
-
children:
|
|
1351
|
+
sx: J.sxExpandButton,
|
|
1352
|
+
children: y(r ? ee : S, { sx: { fontSize: 20 } })
|
|
1379
1353
|
}) : null,
|
|
1380
|
-
/* @__PURE__ */
|
|
1381
|
-
|
|
1354
|
+
/* @__PURE__ */ y(ne, { sx: J.sxItemIcon(A, m) }),
|
|
1355
|
+
m ? null : /* @__PURE__ */ y(k, {
|
|
1382
1356
|
component: "span",
|
|
1383
|
-
sx:
|
|
1384
|
-
children:
|
|
1357
|
+
sx: J.sxItemLabel(h),
|
|
1358
|
+
children: d
|
|
1385
1359
|
}),
|
|
1386
|
-
|
|
1360
|
+
f?.isnew && /* @__PURE__ */ y(x, {
|
|
1387
1361
|
component: "span",
|
|
1388
|
-
sx:
|
|
1389
|
-
children:
|
|
1362
|
+
sx: J.sxBetaChip(n),
|
|
1363
|
+
children: c.sidebar("newBadge")
|
|
1390
1364
|
})
|
|
1391
1365
|
] });
|
|
1392
|
-
return
|
|
1393
|
-
sx:
|
|
1394
|
-
children: [/* @__PURE__ */
|
|
1366
|
+
return O && !m ? /* @__PURE__ */ b(x, {
|
|
1367
|
+
sx: J.sxNavGroup(n),
|
|
1368
|
+
children: [/* @__PURE__ */ y(x, {
|
|
1395
1369
|
component: "div",
|
|
1396
1370
|
onClick: i,
|
|
1397
1371
|
sx: {
|
|
1398
|
-
...
|
|
1372
|
+
...J.sxItem(g, t, !0, !1),
|
|
1399
1373
|
cursor: "pointer"
|
|
1400
1374
|
},
|
|
1401
|
-
children:
|
|
1402
|
-
}), /* @__PURE__ */
|
|
1375
|
+
children: P
|
|
1376
|
+
}), /* @__PURE__ */ y(te, {
|
|
1403
1377
|
in: r,
|
|
1404
1378
|
timeout: "auto",
|
|
1405
1379
|
unmountOnExit: !0,
|
|
1406
|
-
children: /* @__PURE__ */
|
|
1380
|
+
children: /* @__PURE__ */ y(x, {
|
|
1407
1381
|
sx: {
|
|
1408
1382
|
display: "flex",
|
|
1409
1383
|
flexDirection: "column",
|
|
@@ -1413,38 +1387,40 @@ function at({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
|
|
|
1413
1387
|
maxWidth: "100%",
|
|
1414
1388
|
overflow: "hidden"
|
|
1415
1389
|
},
|
|
1416
|
-
children:
|
|
1390
|
+
children: p.map((e) => /* @__PURE__ */ y(pt, {
|
|
1417
1391
|
item: e,
|
|
1418
1392
|
nested: !0,
|
|
1419
1393
|
open: n,
|
|
1420
1394
|
LinkComponent: a,
|
|
1421
1395
|
pathname: o,
|
|
1422
1396
|
permissions: s,
|
|
1423
|
-
t:
|
|
1397
|
+
t: c,
|
|
1398
|
+
baseUrl: l,
|
|
1399
|
+
selectedPublicationId: u
|
|
1424
1400
|
}, e.href))
|
|
1425
1401
|
})
|
|
1426
1402
|
})]
|
|
1427
|
-
}) :
|
|
1403
|
+
}) : O && m ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(x, {
|
|
1428
1404
|
component: "button",
|
|
1429
1405
|
type: "button",
|
|
1430
|
-
"aria-label":
|
|
1431
|
-
"aria-controls":
|
|
1406
|
+
"aria-label": d,
|
|
1407
|
+
"aria-controls": N ? `sidebar-children-${e.href}` : void 0,
|
|
1432
1408
|
"aria-haspopup": "true",
|
|
1433
|
-
"aria-expanded":
|
|
1434
|
-
onClick: (e) =>
|
|
1435
|
-
onMouseEnter: (e) =>
|
|
1409
|
+
"aria-expanded": N ? "true" : void 0,
|
|
1410
|
+
onClick: (e) => M(e.currentTarget),
|
|
1411
|
+
onMouseEnter: (e) => M(e.currentTarget),
|
|
1436
1412
|
sx: {
|
|
1437
|
-
...
|
|
1413
|
+
...J.sxItem(g, t, O, !0),
|
|
1438
1414
|
border: 0,
|
|
1439
1415
|
background: "transparent",
|
|
1440
1416
|
cursor: "pointer"
|
|
1441
1417
|
},
|
|
1442
|
-
children:
|
|
1443
|
-
}), /* @__PURE__ */
|
|
1418
|
+
children: P
|
|
1419
|
+
}), /* @__PURE__ */ y(E, {
|
|
1444
1420
|
id: `sidebar-children-${e.href}`,
|
|
1445
|
-
anchorEl:
|
|
1446
|
-
open:
|
|
1447
|
-
onClose: () =>
|
|
1421
|
+
anchorEl: j,
|
|
1422
|
+
open: N,
|
|
1423
|
+
onClose: () => M(null),
|
|
1448
1424
|
anchorOrigin: {
|
|
1449
1425
|
vertical: "center",
|
|
1450
1426
|
horizontal: "right"
|
|
@@ -1454,24 +1430,24 @@ function at({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
|
|
|
1454
1430
|
horizontal: "left"
|
|
1455
1431
|
},
|
|
1456
1432
|
slotProps: {
|
|
1457
|
-
paper: { sx:
|
|
1433
|
+
paper: { sx: J.sxChildrenMenuPaper },
|
|
1458
1434
|
list: {
|
|
1459
|
-
onMouseLeave: () =>
|
|
1435
|
+
onMouseLeave: () => M(null),
|
|
1460
1436
|
sx: { py: 1 }
|
|
1461
1437
|
}
|
|
1462
1438
|
},
|
|
1463
|
-
children:
|
|
1439
|
+
children: p.map((e) => {
|
|
1464
1440
|
let t = e.icon;
|
|
1465
|
-
return /* @__PURE__ */
|
|
1441
|
+
return /* @__PURE__ */ b(D, {
|
|
1466
1442
|
component: a,
|
|
1467
|
-
href: e.href
|
|
1468
|
-
onClick: () =>
|
|
1469
|
-
sx:
|
|
1470
|
-
children: [/* @__PURE__ */
|
|
1471
|
-
sx:
|
|
1472
|
-
children: /* @__PURE__ */
|
|
1473
|
-
}), /* @__PURE__ */
|
|
1474
|
-
primary:
|
|
1443
|
+
href: `${l}${e.href}`,
|
|
1444
|
+
onClick: () => M(null),
|
|
1445
|
+
sx: J.sxChildrenMenuItem(Y(o, e.href)),
|
|
1446
|
+
children: [/* @__PURE__ */ y(w, {
|
|
1447
|
+
sx: J.sxChildrenMenuListItemIcon,
|
|
1448
|
+
children: /* @__PURE__ */ y(t, {})
|
|
1449
|
+
}), /* @__PURE__ */ y(T, {
|
|
1450
|
+
primary: ct(e, c),
|
|
1475
1451
|
slotProps: { primary: { sx: {
|
|
1476
1452
|
fontSize: 14,
|
|
1477
1453
|
fontWeight: 400,
|
|
@@ -1480,87 +1456,71 @@ function at({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
|
|
|
1480
1456
|
})]
|
|
1481
1457
|
}, e.href);
|
|
1482
1458
|
})
|
|
1483
|
-
})] }) :
|
|
1459
|
+
})] }) : ft(n, d, /* @__PURE__ */ y(x, {
|
|
1484
1460
|
component: a,
|
|
1485
1461
|
href: e.href,
|
|
1486
|
-
sx:
|
|
1487
|
-
children:
|
|
1462
|
+
sx: J.sxItem(m ? g : h, t, O, m),
|
|
1463
|
+
children: P
|
|
1488
1464
|
}));
|
|
1489
1465
|
}
|
|
1490
|
-
function
|
|
1491
|
-
let [
|
|
1466
|
+
function mt({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions: i, t: a, baseUrl: o, selectedPublicationId: s }) {
|
|
1467
|
+
let [c, l] = _(g(() => {
|
|
1492
1468
|
let t = {};
|
|
1493
|
-
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) =>
|
|
1469
|
+
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => Y(r, e.href)));
|
|
1494
1470
|
return t;
|
|
1495
|
-
}, [e, r])),
|
|
1496
|
-
|
|
1471
|
+
}, [e, r])), u = (e) => {
|
|
1472
|
+
l((t) => ({
|
|
1497
1473
|
...t,
|
|
1498
1474
|
[e]: !t[e]
|
|
1499
1475
|
}));
|
|
1500
1476
|
};
|
|
1501
|
-
return /* @__PURE__ */
|
|
1477
|
+
return /* @__PURE__ */ y(v, { children: e.map((e) => /* @__PURE__ */ y(pt, {
|
|
1502
1478
|
item: e,
|
|
1503
1479
|
open: t,
|
|
1504
1480
|
permissions: i,
|
|
1505
|
-
expanded:
|
|
1506
|
-
onToggleExpand:
|
|
1481
|
+
expanded: c[e.href],
|
|
1482
|
+
onToggleExpand: dt(e, i).length > 0 ? () => u(e.href) : void 0,
|
|
1507
1483
|
LinkComponent: n,
|
|
1508
1484
|
pathname: r,
|
|
1509
|
-
t: a
|
|
1485
|
+
t: a,
|
|
1486
|
+
baseUrl: o,
|
|
1487
|
+
selectedPublicationId: s
|
|
1510
1488
|
}, e.href)) });
|
|
1511
1489
|
}
|
|
1512
|
-
function
|
|
1513
|
-
let { t:
|
|
1514
|
-
return /* @__PURE__ */
|
|
1490
|
+
function ht({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = G, baseUrl: i, selectedPublicationId: a }) {
|
|
1491
|
+
let { t: o } = W();
|
|
1492
|
+
return /* @__PURE__ */ y(x, {
|
|
1515
1493
|
component: "aside",
|
|
1516
|
-
sx:
|
|
1517
|
-
children: /* @__PURE__ */
|
|
1518
|
-
sx:
|
|
1519
|
-
children: /* @__PURE__ */
|
|
1494
|
+
sx: J.sxRoot(e),
|
|
1495
|
+
children: /* @__PURE__ */ y(x, {
|
|
1496
|
+
sx: J.sxNavScroll,
|
|
1497
|
+
children: /* @__PURE__ */ y(x, {
|
|
1520
1498
|
component: "nav",
|
|
1521
|
-
"aria-label":
|
|
1522
|
-
sx:
|
|
1523
|
-
children: /* @__PURE__ */
|
|
1499
|
+
"aria-label": o.sidebar("navAriaLabel"),
|
|
1500
|
+
sx: J.sxNav(e),
|
|
1501
|
+
children: /* @__PURE__ */ y(mt, {
|
|
1524
1502
|
permissions: n,
|
|
1525
|
-
items:
|
|
1503
|
+
items: st,
|
|
1526
1504
|
open: e,
|
|
1527
1505
|
LinkComponent: r,
|
|
1528
1506
|
pathname: t,
|
|
1529
|
-
t:
|
|
1507
|
+
t: o,
|
|
1508
|
+
baseUrl: i,
|
|
1509
|
+
selectedPublicationId: a
|
|
1530
1510
|
})
|
|
1531
1511
|
})
|
|
1532
1512
|
})
|
|
1533
1513
|
});
|
|
1534
1514
|
}
|
|
1535
1515
|
//#endregion
|
|
1536
|
-
//#region src/lib/utils/site-selector.ts
|
|
1537
|
-
var ct = "#ECEDF6", Y = "#D8E2FF", lt = "#FFFFFF", ut = "bluestack-es";
|
|
1538
|
-
function X(e) {
|
|
1539
|
-
return e.flatMap((e) => e.publications);
|
|
1540
|
-
}
|
|
1541
|
-
function dt(e, t) {
|
|
1542
|
-
return X(e).find((e) => String(e.id) === t);
|
|
1543
|
-
}
|
|
1544
|
-
function ft(e, t) {
|
|
1545
|
-
return X(e).find((e) => String(e.id) === t)?.description ?? "Seleccionar publicación";
|
|
1546
|
-
}
|
|
1547
|
-
function pt(e) {
|
|
1548
|
-
let t = X(e)[0];
|
|
1549
|
-
return t ? String(t.id) : "1";
|
|
1550
|
-
}
|
|
1551
|
-
function mt(e) {
|
|
1552
|
-
let t = Number(e);
|
|
1553
|
-
return Number.isFinite(t) && t > 0 ? t : 1;
|
|
1554
|
-
}
|
|
1555
|
-
//#endregion
|
|
1556
1516
|
//#region src/lib/components/site-selector-menu/SiteSelectorMenu.styles.ts
|
|
1557
|
-
var
|
|
1517
|
+
var X = {
|
|
1558
1518
|
sxTriggerButton: (e) => ({
|
|
1559
1519
|
height: 34,
|
|
1560
1520
|
borderRadius: "8px",
|
|
1561
1521
|
borderColor: e ? "transparent" : "m3.outline",
|
|
1562
1522
|
color: "black",
|
|
1563
|
-
bgcolor: e ?
|
|
1523
|
+
bgcolor: e ? n : "transparent",
|
|
1564
1524
|
textTransform: "none",
|
|
1565
1525
|
fontSize: "12px",
|
|
1566
1526
|
fontWeight: 500,
|
|
@@ -1571,13 +1531,13 @@ var Z = {
|
|
|
1571
1531
|
flexShrink: 0,
|
|
1572
1532
|
"&:hover": {
|
|
1573
1533
|
borderColor: "m3.outline",
|
|
1574
|
-
bgcolor: e ?
|
|
1534
|
+
bgcolor: e ? n : "action.hover"
|
|
1575
1535
|
}
|
|
1576
1536
|
}),
|
|
1577
1537
|
sxTriggerIcon: { fontSize: 20 },
|
|
1578
1538
|
sxMenuPaper: {
|
|
1579
1539
|
mt: 1,
|
|
1580
|
-
bgcolor:
|
|
1540
|
+
bgcolor: e,
|
|
1581
1541
|
borderRadius: 2,
|
|
1582
1542
|
marginTop: 0,
|
|
1583
1543
|
boxShadow: "0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)",
|
|
@@ -1613,17 +1573,17 @@ var Z = {
|
|
|
1613
1573
|
padding: "1rem",
|
|
1614
1574
|
margin: ".65rem",
|
|
1615
1575
|
borderRadius: "28px",
|
|
1616
|
-
bgcolor: e ?
|
|
1576
|
+
bgcolor: e ? n : o,
|
|
1617
1577
|
color: "m3.onSurfaceVariant",
|
|
1618
1578
|
display: "flex",
|
|
1619
1579
|
alignItems: "center",
|
|
1620
1580
|
justifyContent: "space-between",
|
|
1621
1581
|
gap: 1.5,
|
|
1622
1582
|
whiteSpace: "nowrap",
|
|
1623
|
-
"&:hover": { bgcolor:
|
|
1583
|
+
"&:hover": { bgcolor: n },
|
|
1624
1584
|
"&.Mui-selected": {
|
|
1625
|
-
bgcolor:
|
|
1626
|
-
"&:hover": { bgcolor:
|
|
1585
|
+
bgcolor: n,
|
|
1586
|
+
"&:hover": { bgcolor: n }
|
|
1627
1587
|
}
|
|
1628
1588
|
}),
|
|
1629
1589
|
sxMenuItemLabel: (e) => ({
|
|
@@ -1650,22 +1610,22 @@ var Z = {
|
|
|
1650
1610
|
};
|
|
1651
1611
|
//#endregion
|
|
1652
1612
|
//#region src/lib/components/site-selector-menu/SiteSelectorMenu.tsx
|
|
1653
|
-
function
|
|
1654
|
-
return /* @__PURE__ */
|
|
1613
|
+
function gt({ publication: e, selected: t, href: n, imageUrl: r }) {
|
|
1614
|
+
return /* @__PURE__ */ y("a", {
|
|
1655
1615
|
href: n,
|
|
1656
1616
|
style: {
|
|
1657
1617
|
textDecoration: "none",
|
|
1658
1618
|
color: "inherit"
|
|
1659
1619
|
},
|
|
1660
|
-
children: /* @__PURE__ */
|
|
1620
|
+
children: /* @__PURE__ */ b(D, {
|
|
1661
1621
|
selected: t,
|
|
1662
|
-
sx:
|
|
1663
|
-
children: [/* @__PURE__ */
|
|
1664
|
-
sx:
|
|
1622
|
+
sx: X.sxMenuItem(t),
|
|
1623
|
+
children: [/* @__PURE__ */ y(k, {
|
|
1624
|
+
sx: X.sxMenuItemLabel(t),
|
|
1665
1625
|
children: e.description
|
|
1666
|
-
}), r ? /* @__PURE__ */
|
|
1667
|
-
sx:
|
|
1668
|
-
children: /* @__PURE__ */
|
|
1626
|
+
}), r ? /* @__PURE__ */ y(x, {
|
|
1627
|
+
sx: X.sxMenuItemLogoWrap,
|
|
1628
|
+
children: /* @__PURE__ */ y("img", {
|
|
1669
1629
|
src: r,
|
|
1670
1630
|
alt: e.description,
|
|
1671
1631
|
width: 90,
|
|
@@ -1675,27 +1635,27 @@ function ht({ publication: e, selected: t, href: n, imageUrl: r }) {
|
|
|
1675
1635
|
})
|
|
1676
1636
|
});
|
|
1677
1637
|
}
|
|
1678
|
-
function
|
|
1679
|
-
let [i, a] =
|
|
1638
|
+
function _t({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolvePublicationImageUrl: r }) {
|
|
1639
|
+
let [i, a] = _(null), o = !!i, c = (e) => {
|
|
1680
1640
|
a(e.currentTarget);
|
|
1681
|
-
},
|
|
1641
|
+
}, l = () => {
|
|
1682
1642
|
a(null);
|
|
1683
|
-
},
|
|
1684
|
-
return /* @__PURE__ */
|
|
1643
|
+
}, u = t ?? "";
|
|
1644
|
+
return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Ie, {
|
|
1685
1645
|
id: "site-selector-button",
|
|
1686
1646
|
"aria-controls": o ? "site-selector-menu" : void 0,
|
|
1687
1647
|
"aria-haspopup": "true",
|
|
1688
1648
|
"aria-expanded": o ? "true" : void 0,
|
|
1689
1649
|
variant: "outlined",
|
|
1690
|
-
onClick:
|
|
1691
|
-
endIcon: /* @__PURE__ */
|
|
1692
|
-
sx:
|
|
1693
|
-
children:
|
|
1694
|
-
}), /* @__PURE__ */
|
|
1650
|
+
onClick: c,
|
|
1651
|
+
endIcon: /* @__PURE__ */ y(Fe, { sx: X.sxTriggerIcon }),
|
|
1652
|
+
sx: X.sxTriggerButton(o),
|
|
1653
|
+
children: s(e, u)
|
|
1654
|
+
}), /* @__PURE__ */ y(E, {
|
|
1695
1655
|
id: "site-selector-menu",
|
|
1696
1656
|
anchorEl: i,
|
|
1697
1657
|
open: o,
|
|
1698
|
-
onClose:
|
|
1658
|
+
onClose: l,
|
|
1699
1659
|
anchorOrigin: {
|
|
1700
1660
|
vertical: "bottom",
|
|
1701
1661
|
horizontal: "right"
|
|
@@ -1705,21 +1665,21 @@ function gt({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
|
|
|
1705
1665
|
horizontal: "right"
|
|
1706
1666
|
},
|
|
1707
1667
|
slotProps: {
|
|
1708
|
-
paper: { sx:
|
|
1668
|
+
paper: { sx: X.sxMenuPaper },
|
|
1709
1669
|
list: {
|
|
1710
1670
|
"aria-labelledby": "site-selector-button",
|
|
1711
1671
|
disablePadding: !0,
|
|
1712
|
-
sx:
|
|
1672
|
+
sx: X.sxMenuList
|
|
1713
1673
|
}
|
|
1714
1674
|
},
|
|
1715
|
-
children: e.map((i, a) => /* @__PURE__ */
|
|
1716
|
-
sx:
|
|
1717
|
-
children: [/* @__PURE__ */
|
|
1718
|
-
sx:
|
|
1675
|
+
children: e.map((i, a) => /* @__PURE__ */ b(x, {
|
|
1676
|
+
sx: X.sxSection(a === e.length - 1),
|
|
1677
|
+
children: [/* @__PURE__ */ y(k, {
|
|
1678
|
+
sx: X.sxSectionTitle,
|
|
1719
1679
|
children: i.title
|
|
1720
|
-
}), /* @__PURE__ */
|
|
1721
|
-
sx:
|
|
1722
|
-
children: i.publications.map((e) => /* @__PURE__ */
|
|
1680
|
+
}), /* @__PURE__ */ y(x, {
|
|
1681
|
+
sx: X.sxSectionGrid(i.fullWidth),
|
|
1682
|
+
children: i.publications.map((e) => /* @__PURE__ */ y(gt, {
|
|
1723
1683
|
publication: e,
|
|
1724
1684
|
selected: Number(t) === e.id,
|
|
1725
1685
|
href: n(e),
|
|
@@ -1729,7 +1689,7 @@ function gt({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
|
|
|
1729
1689
|
}, i.title))
|
|
1730
1690
|
})] });
|
|
1731
1691
|
}
|
|
1732
|
-
var
|
|
1692
|
+
var Z = {
|
|
1733
1693
|
sxAppBar: {
|
|
1734
1694
|
bgcolor: "m3.surfaceContainer",
|
|
1735
1695
|
color: "m3.onSurfaceVariant",
|
|
@@ -1834,7 +1794,7 @@ var Q = {
|
|
|
1834
1794
|
};
|
|
1835
1795
|
//#endregion
|
|
1836
1796
|
//#region src/lib/components/top-bar/NotificationsMenu.tsx
|
|
1837
|
-
function
|
|
1797
|
+
function vt(e, t) {
|
|
1838
1798
|
let n = new Date(e);
|
|
1839
1799
|
return Number.isNaN(n.getTime()) ? "" : n.toLocaleString(t, {
|
|
1840
1800
|
day: "2-digit",
|
|
@@ -1843,24 +1803,24 @@ function _t(e, t) {
|
|
|
1843
1803
|
minute: "2-digit"
|
|
1844
1804
|
});
|
|
1845
1805
|
}
|
|
1846
|
-
function
|
|
1847
|
-
let { locale: n, t: r } =
|
|
1848
|
-
return /* @__PURE__ */
|
|
1806
|
+
function yt({ unreadCount: e, notifications: t }) {
|
|
1807
|
+
let { locale: n, t: r } = W(), [i, a] = _(null), o = !!i, s = rt(n), c = g(() => e > 0 ? e : void 0, [e]);
|
|
1808
|
+
return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(O, {
|
|
1849
1809
|
title: r.notificationsMenu("title"),
|
|
1850
|
-
children: /* @__PURE__ */
|
|
1810
|
+
children: /* @__PURE__ */ y(C, {
|
|
1851
1811
|
"aria-label": r.notificationsMenu("ariaLabel"),
|
|
1852
1812
|
"aria-haspopup": "true",
|
|
1853
1813
|
"aria-expanded": o,
|
|
1854
1814
|
onClick: (e) => a(e.currentTarget),
|
|
1855
|
-
sx:
|
|
1856
|
-
children: /* @__PURE__ */
|
|
1857
|
-
badgeContent:
|
|
1815
|
+
sx: Z.sxActionIcon,
|
|
1816
|
+
children: /* @__PURE__ */ y(Le, {
|
|
1817
|
+
badgeContent: c,
|
|
1858
1818
|
color: "error",
|
|
1859
|
-
sx:
|
|
1860
|
-
children: /* @__PURE__ */
|
|
1819
|
+
sx: Z.sxBadge,
|
|
1820
|
+
children: /* @__PURE__ */ y(ce, { sx: Z.sxActionIconGlyph })
|
|
1861
1821
|
})
|
|
1862
1822
|
})
|
|
1863
|
-
}), /* @__PURE__ */
|
|
1823
|
+
}), /* @__PURE__ */ b(E, {
|
|
1864
1824
|
anchorEl: i,
|
|
1865
1825
|
open: o,
|
|
1866
1826
|
onClose: () => a(null),
|
|
@@ -1879,38 +1839,38 @@ function vt({ unreadCount: e, notifications: t }) {
|
|
|
1879
1839
|
borderRadius: 2,
|
|
1880
1840
|
bgcolor: "m3.surfaceContainerHigh"
|
|
1881
1841
|
} } },
|
|
1882
|
-
children: [/* @__PURE__ */
|
|
1842
|
+
children: [/* @__PURE__ */ b(x, {
|
|
1883
1843
|
sx: {
|
|
1884
1844
|
px: 2,
|
|
1885
1845
|
py: 1.5,
|
|
1886
1846
|
borderBottom: 1,
|
|
1887
1847
|
borderColor: "m3.outlineVariant"
|
|
1888
1848
|
},
|
|
1889
|
-
children: [/* @__PURE__ */
|
|
1849
|
+
children: [/* @__PURE__ */ y(k, {
|
|
1890
1850
|
variant: "subtitle2",
|
|
1891
1851
|
color: "m3.onSurface",
|
|
1892
1852
|
children: r.notificationsMenu("title")
|
|
1893
|
-
}), e > 0 ? /* @__PURE__ */
|
|
1853
|
+
}), e > 0 ? /* @__PURE__ */ y(k, {
|
|
1894
1854
|
variant: "caption",
|
|
1895
1855
|
color: "m3.onSurfaceVariant",
|
|
1896
1856
|
children: r.notificationsMenu("unreadCount", { count: e })
|
|
1897
1857
|
}) : null]
|
|
1898
|
-
}), t && t?.length === 0 ? /* @__PURE__ */
|
|
1858
|
+
}), t && t?.length === 0 ? /* @__PURE__ */ y(x, {
|
|
1899
1859
|
sx: {
|
|
1900
1860
|
px: 2,
|
|
1901
1861
|
py: 3
|
|
1902
1862
|
},
|
|
1903
|
-
children: /* @__PURE__ */
|
|
1863
|
+
children: /* @__PURE__ */ y(k, {
|
|
1904
1864
|
variant: "body2",
|
|
1905
1865
|
color: "m3.onSurfaceVariant",
|
|
1906
1866
|
sx: { textAlign: "center" },
|
|
1907
1867
|
children: r.notificationsMenu("empty")
|
|
1908
1868
|
})
|
|
1909
|
-
}) : /* @__PURE__ */
|
|
1869
|
+
}) : /* @__PURE__ */ y(Re, {
|
|
1910
1870
|
dense: !0,
|
|
1911
1871
|
disablePadding: !0,
|
|
1912
1872
|
sx: { py: .5 },
|
|
1913
|
-
children: t && t.map((e) => /* @__PURE__ */
|
|
1873
|
+
children: t && t.map((e) => /* @__PURE__ */ y(ze, {
|
|
1914
1874
|
component: e.href ? "a" : "div",
|
|
1915
1875
|
href: e.href,
|
|
1916
1876
|
onClick: () => a(null),
|
|
@@ -1920,9 +1880,9 @@ function vt({ unreadCount: e, notifications: t }) {
|
|
|
1920
1880
|
bgcolor: e.read ? "transparent" : "secondary.light",
|
|
1921
1881
|
"&:hover": { bgcolor: e.read ? "action.hover" : "secondary.light" }
|
|
1922
1882
|
},
|
|
1923
|
-
children: /* @__PURE__ */
|
|
1883
|
+
children: /* @__PURE__ */ y(T, {
|
|
1924
1884
|
primary: e.title,
|
|
1925
|
-
secondary: /* @__PURE__ */
|
|
1885
|
+
secondary: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(k, {
|
|
1926
1886
|
component: "span",
|
|
1927
1887
|
variant: "body2",
|
|
1928
1888
|
color: "m3.onSurfaceVariant",
|
|
@@ -1931,7 +1891,7 @@ function vt({ unreadCount: e, notifications: t }) {
|
|
|
1931
1891
|
mt: .25
|
|
1932
1892
|
},
|
|
1933
1893
|
children: e.message
|
|
1934
|
-
}), /* @__PURE__ */
|
|
1894
|
+
}), /* @__PURE__ */ y(k, {
|
|
1935
1895
|
component: "span",
|
|
1936
1896
|
variant: "caption",
|
|
1937
1897
|
color: "m3.onSurfaceVariant",
|
|
@@ -1939,7 +1899,7 @@ function vt({ unreadCount: e, notifications: t }) {
|
|
|
1939
1899
|
display: "block",
|
|
1940
1900
|
mt: .5
|
|
1941
1901
|
},
|
|
1942
|
-
children:
|
|
1902
|
+
children: vt(e.createdAt, s)
|
|
1943
1903
|
})] }),
|
|
1944
1904
|
slotProps: { primary: {
|
|
1945
1905
|
variant: "subtitle2",
|
|
@@ -1953,39 +1913,39 @@ function vt({ unreadCount: e, notifications: t }) {
|
|
|
1953
1913
|
}
|
|
1954
1914
|
//#endregion
|
|
1955
1915
|
//#region src/lib/utils/cms-asset.ts
|
|
1956
|
-
var
|
|
1957
|
-
function
|
|
1916
|
+
var bt = "https://dev.cms-medios.com";
|
|
1917
|
+
function xt(e) {
|
|
1958
1918
|
let t = e?.trim();
|
|
1959
|
-
return t ? t.replace(/\/$/, "") :
|
|
1919
|
+
return t ? t.replace(/\/$/, "") : bt;
|
|
1960
1920
|
}
|
|
1961
|
-
function
|
|
1921
|
+
function St(e, t) {
|
|
1962
1922
|
if (!e) return "";
|
|
1963
1923
|
if (e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
1964
1924
|
let n = e.startsWith("/") ? e : `/${e}`;
|
|
1965
|
-
return `${
|
|
1925
|
+
return `${xt(t)}${n}`;
|
|
1966
1926
|
}
|
|
1967
1927
|
//#endregion
|
|
1968
1928
|
//#region src/lib/utils/profile-avatar.ts
|
|
1969
|
-
var
|
|
1970
|
-
function
|
|
1971
|
-
let { image: n } = e, r = t?.fallbackAvatar ??
|
|
1972
|
-
return !n || n ===
|
|
1929
|
+
var Ct = "noPicture", wt = "/topbar_profile.png";
|
|
1930
|
+
function Tt(e, t) {
|
|
1931
|
+
let { image: n } = e, r = t?.fallbackAvatar ?? wt;
|
|
1932
|
+
return !n || n === Ct ? r : St(n, t?.cmsOrigin);
|
|
1973
1933
|
}
|
|
1974
|
-
function
|
|
1934
|
+
function Et(e) {
|
|
1975
1935
|
if (e.fullName?.trim()) return e.fullName.trim();
|
|
1976
1936
|
let t = [e.firstName, e.lastName].filter(Boolean);
|
|
1977
1937
|
return t.length > 0 ? t.join(" ") : e.userName;
|
|
1978
1938
|
}
|
|
1979
1939
|
//#endregion
|
|
1980
1940
|
//#region src/lib/components/top-bar/ProfileMenu.tsx
|
|
1981
|
-
function
|
|
1982
|
-
return /* @__PURE__ */
|
|
1941
|
+
function Dt({ label: e, icon: t, onSelect: n }) {
|
|
1942
|
+
return /* @__PURE__ */ b(D, {
|
|
1983
1943
|
onClick: n,
|
|
1984
|
-
sx:
|
|
1985
|
-
children: [/* @__PURE__ */
|
|
1986
|
-
sx:
|
|
1987
|
-
children: /* @__PURE__ */
|
|
1988
|
-
}), /* @__PURE__ */
|
|
1944
|
+
sx: Z.sxProfileMenuItem,
|
|
1945
|
+
children: [/* @__PURE__ */ y(w, {
|
|
1946
|
+
sx: Z.sxProfileMenuListItemIcon,
|
|
1947
|
+
children: /* @__PURE__ */ y(t, {})
|
|
1948
|
+
}), /* @__PURE__ */ y(T, {
|
|
1989
1949
|
primary: e,
|
|
1990
1950
|
slotProps: { primary: { sx: {
|
|
1991
1951
|
fontSize: 14,
|
|
@@ -1995,49 +1955,49 @@ function Et({ label: e, icon: t, onSelect: n }) {
|
|
|
1995
1955
|
})]
|
|
1996
1956
|
});
|
|
1997
1957
|
}
|
|
1998
|
-
function
|
|
1999
|
-
let { t: n } =
|
|
1958
|
+
function Ot({ profile: e, avatarOptions: t }) {
|
|
1959
|
+
let { t: n } = W(), [r, i] = _(null), a = !!r, o = Et(e), s = Tt(e, t), c = s.startsWith("/"), l = g(() => [{
|
|
2000
1960
|
id: "profile",
|
|
2001
1961
|
labelKey: "myProfile",
|
|
2002
|
-
icon:
|
|
1962
|
+
icon: He
|
|
2003
1963
|
}, {
|
|
2004
1964
|
id: "webmaster",
|
|
2005
1965
|
labelKey: "webmasterView",
|
|
2006
|
-
icon:
|
|
2007
|
-
}], []),
|
|
1966
|
+
icon: Be
|
|
1967
|
+
}], []), u = g(() => ({
|
|
2008
1968
|
id: "sign-off",
|
|
2009
1969
|
labelKey: "signOff",
|
|
2010
|
-
icon:
|
|
2011
|
-
}), []),
|
|
2012
|
-
|
|
1970
|
+
icon: Ve
|
|
1971
|
+
}), []), d = () => i(null), f = (e) => {
|
|
1972
|
+
d();
|
|
2013
1973
|
};
|
|
2014
|
-
return /* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(C, {
|
|
2015
1975
|
id: "profile-menu-button",
|
|
2016
1976
|
"aria-label": n.profileMenu("ariaLabel"),
|
|
2017
1977
|
"aria-controls": a ? "profile-menu" : void 0,
|
|
2018
1978
|
"aria-haspopup": "true",
|
|
2019
1979
|
"aria-expanded": a ? "true" : void 0,
|
|
2020
1980
|
onClick: (e) => i(e.currentTarget),
|
|
2021
|
-
sx:
|
|
2022
|
-
children: /* @__PURE__ */
|
|
2023
|
-
sx:
|
|
2024
|
-
children: /* @__PURE__ */
|
|
1981
|
+
sx: Z.sxProfileButton,
|
|
1982
|
+
children: /* @__PURE__ */ y(Ue, {
|
|
1983
|
+
sx: Z.sxProfileAvatar,
|
|
1984
|
+
children: /* @__PURE__ */ y(x, {
|
|
2025
1985
|
component: "img",
|
|
2026
|
-
src:
|
|
1986
|
+
src: s,
|
|
2027
1987
|
alt: "",
|
|
2028
1988
|
sx: {
|
|
2029
1989
|
width: "100%",
|
|
2030
1990
|
height: "100%",
|
|
2031
1991
|
objectFit: "cover"
|
|
2032
1992
|
},
|
|
2033
|
-
...
|
|
1993
|
+
...c ? {} : { crossOrigin: "anonymous" }
|
|
2034
1994
|
})
|
|
2035
1995
|
})
|
|
2036
|
-
}), /* @__PURE__ */
|
|
1996
|
+
}), /* @__PURE__ */ b(E, {
|
|
2037
1997
|
id: "profile-menu",
|
|
2038
1998
|
anchorEl: r,
|
|
2039
1999
|
open: a,
|
|
2040
|
-
onClose:
|
|
2000
|
+
onClose: d,
|
|
2041
2001
|
anchorOrigin: {
|
|
2042
2002
|
vertical: "bottom",
|
|
2043
2003
|
horizontal: "right"
|
|
@@ -2047,125 +2007,125 @@ function Dt({ profile: e, avatarOptions: t }) {
|
|
|
2047
2007
|
horizontal: "right"
|
|
2048
2008
|
},
|
|
2049
2009
|
slotProps: {
|
|
2050
|
-
paper: { sx:
|
|
2010
|
+
paper: { sx: Z.sxProfileMenuPaper },
|
|
2051
2011
|
list: { disablePadding: !0 }
|
|
2052
2012
|
},
|
|
2053
2013
|
children: [
|
|
2054
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ b(x, {
|
|
2055
2015
|
sx: {
|
|
2056
2016
|
px: 2,
|
|
2057
2017
|
py: 1.5,
|
|
2058
2018
|
borderBottom: 1,
|
|
2059
2019
|
borderColor: "divider"
|
|
2060
2020
|
},
|
|
2061
|
-
children: [/* @__PURE__ */
|
|
2021
|
+
children: [/* @__PURE__ */ y(k, {
|
|
2062
2022
|
variant: "subtitle2",
|
|
2063
2023
|
sx: {
|
|
2064
2024
|
fontWeight: 600,
|
|
2065
2025
|
color: "#191C22"
|
|
2066
2026
|
},
|
|
2067
2027
|
children: o
|
|
2068
|
-
}), /* @__PURE__ */
|
|
2028
|
+
}), /* @__PURE__ */ y(k, {
|
|
2069
2029
|
variant: "caption",
|
|
2070
2030
|
sx: { color: "#414752" },
|
|
2071
2031
|
children: e.email
|
|
2072
2032
|
})]
|
|
2073
2033
|
}),
|
|
2074
|
-
|
|
2034
|
+
l.map((e) => /* @__PURE__ */ y(Dt, {
|
|
2075
2035
|
label: n.profileMenu(e.labelKey),
|
|
2076
2036
|
icon: e.icon,
|
|
2077
|
-
onSelect: () =>
|
|
2037
|
+
onSelect: () => f(e.id)
|
|
2078
2038
|
}, e.id)),
|
|
2079
|
-
/* @__PURE__ */
|
|
2080
|
-
/* @__PURE__ */
|
|
2081
|
-
label: n.profileMenu(
|
|
2082
|
-
icon:
|
|
2083
|
-
onSelect: () =>
|
|
2039
|
+
/* @__PURE__ */ y(We, { sx: Z.sxProfileMenuDivider }),
|
|
2040
|
+
/* @__PURE__ */ y(Dt, {
|
|
2041
|
+
label: n.profileMenu(u.labelKey),
|
|
2042
|
+
icon: u.icon,
|
|
2043
|
+
onSelect: () => f(u.id)
|
|
2084
2044
|
})
|
|
2085
2045
|
]
|
|
2086
2046
|
})] });
|
|
2087
2047
|
}
|
|
2088
2048
|
//#endregion
|
|
2089
2049
|
//#region src/lib/components/top-bar/TopBar.tsx
|
|
2090
|
-
function
|
|
2091
|
-
return /* @__PURE__ */
|
|
2050
|
+
function kt() {
|
|
2051
|
+
return /* @__PURE__ */ y(x, {
|
|
2092
2052
|
component: "span",
|
|
2093
2053
|
role: "separator",
|
|
2094
2054
|
"aria-orientation": "vertical",
|
|
2095
|
-
sx:
|
|
2055
|
+
sx: Z.sxDivider
|
|
2096
2056
|
});
|
|
2097
2057
|
}
|
|
2098
|
-
function
|
|
2099
|
-
return /* @__PURE__ */
|
|
2058
|
+
function At({ title: e, icon: t }) {
|
|
2059
|
+
return /* @__PURE__ */ y(O, {
|
|
2100
2060
|
title: e,
|
|
2101
|
-
children: /* @__PURE__ */
|
|
2061
|
+
children: /* @__PURE__ */ y(C, {
|
|
2102
2062
|
"aria-label": e,
|
|
2103
|
-
sx:
|
|
2104
|
-
children: /* @__PURE__ */
|
|
2063
|
+
sx: Z.sxActionIcon,
|
|
2064
|
+
children: /* @__PURE__ */ y(t, { sx: Z.sxActionIconGlyph })
|
|
2105
2065
|
})
|
|
2106
2066
|
});
|
|
2107
2067
|
}
|
|
2108
|
-
function
|
|
2109
|
-
let { t:
|
|
2110
|
-
title:
|
|
2111
|
-
icon:
|
|
2068
|
+
function Q({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: s, selectedPublicationId: c, getPublicationHref: l, resolvePublicationImageUrl: u, profileAvatarOptions: d }) {
|
|
2069
|
+
let { t: f } = W(), p = [{
|
|
2070
|
+
title: f.topBar("analytics"),
|
|
2071
|
+
icon: Ae
|
|
2112
2072
|
}, {
|
|
2113
|
-
title:
|
|
2114
|
-
icon:
|
|
2073
|
+
title: f.topBar("help"),
|
|
2074
|
+
icon: je
|
|
2115
2075
|
}];
|
|
2116
|
-
return /* @__PURE__ */
|
|
2076
|
+
return /* @__PURE__ */ y(Ne, {
|
|
2117
2077
|
position: "static",
|
|
2118
2078
|
elevation: 0,
|
|
2119
|
-
sx:
|
|
2120
|
-
children: /* @__PURE__ */
|
|
2079
|
+
sx: Z.sxAppBar,
|
|
2080
|
+
children: /* @__PURE__ */ b(Pe, {
|
|
2121
2081
|
disableGutters: !0,
|
|
2122
2082
|
variant: "dense",
|
|
2123
|
-
sx:
|
|
2083
|
+
sx: Z.sxToolbar,
|
|
2124
2084
|
children: [
|
|
2125
|
-
/* @__PURE__ */
|
|
2126
|
-
"aria-label": t ?
|
|
2085
|
+
/* @__PURE__ */ y(C, {
|
|
2086
|
+
"aria-label": t ? f.topBar("closeSidebar") : f.topBar("openSidebar"),
|
|
2127
2087
|
"aria-expanded": t,
|
|
2128
2088
|
onClick: n,
|
|
2129
|
-
sx:
|
|
2130
|
-
children: /* @__PURE__ */
|
|
2089
|
+
sx: Z.sxMenuButton,
|
|
2090
|
+
children: /* @__PURE__ */ y(Me, { sx: Z.sxMenuButtonIcon })
|
|
2131
2091
|
}),
|
|
2132
|
-
/* @__PURE__ */
|
|
2133
|
-
sx:
|
|
2092
|
+
/* @__PURE__ */ y(x, {
|
|
2093
|
+
sx: Z.sxLogoBox,
|
|
2134
2094
|
children: o
|
|
2135
2095
|
}),
|
|
2136
|
-
/* @__PURE__ */
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
sx:
|
|
2096
|
+
/* @__PURE__ */ y(x, { sx: { flex: 1 } }),
|
|
2097
|
+
/* @__PURE__ */ b(x, {
|
|
2098
|
+
sx: Z.sxActionsFrame,
|
|
2139
2099
|
children: [
|
|
2140
|
-
/* @__PURE__ */
|
|
2141
|
-
sx:
|
|
2100
|
+
/* @__PURE__ */ b(x, {
|
|
2101
|
+
sx: Z.sxIconActionsRow,
|
|
2142
2102
|
children: [
|
|
2143
|
-
/* @__PURE__ */
|
|
2144
|
-
title:
|
|
2145
|
-
icon:
|
|
2103
|
+
/* @__PURE__ */ y(At, {
|
|
2104
|
+
title: f.topBar("new"),
|
|
2105
|
+
icon: ke
|
|
2146
2106
|
}),
|
|
2147
|
-
/* @__PURE__ */
|
|
2107
|
+
/* @__PURE__ */ y(yt, {
|
|
2148
2108
|
unreadCount: r,
|
|
2149
2109
|
notifications: i
|
|
2150
2110
|
}),
|
|
2151
|
-
|
|
2111
|
+
p.map(({ title: e, icon: t }) => /* @__PURE__ */ y(At, {
|
|
2152
2112
|
title: e,
|
|
2153
2113
|
icon: t
|
|
2154
2114
|
}, e))
|
|
2155
2115
|
]
|
|
2156
2116
|
}),
|
|
2157
|
-
/* @__PURE__ */
|
|
2117
|
+
/* @__PURE__ */ y(kt, {}),
|
|
2158
2118
|
s,
|
|
2159
|
-
/* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ y(_t, {
|
|
2160
2120
|
sites: e,
|
|
2161
2121
|
selectedPublicationId: c,
|
|
2162
2122
|
getPublicationHref: l,
|
|
2163
|
-
resolvePublicationImageUrl:
|
|
2123
|
+
resolvePublicationImageUrl: u
|
|
2164
2124
|
}),
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
/* @__PURE__ */
|
|
2125
|
+
/* @__PURE__ */ y(kt, {}),
|
|
2126
|
+
/* @__PURE__ */ y(Ot, {
|
|
2167
2127
|
profile: a,
|
|
2168
|
-
avatarOptions:
|
|
2128
|
+
avatarOptions: d
|
|
2169
2129
|
})
|
|
2170
2130
|
]
|
|
2171
2131
|
})
|
|
@@ -2208,39 +2168,41 @@ var $ = {
|
|
|
2208
2168
|
};
|
|
2209
2169
|
//#endregion
|
|
2210
2170
|
//#region src/lib/components/shell/AppShell.tsx
|
|
2211
|
-
function jt({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: s, selectedPublicationId:
|
|
2212
|
-
let [
|
|
2213
|
-
return /* @__PURE__ */
|
|
2214
|
-
locale:
|
|
2215
|
-
language:
|
|
2216
|
-
messages:
|
|
2217
|
-
children: /* @__PURE__ */
|
|
2171
|
+
function jt({ 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 = G, permissions: p, locale: m, language: h, messages: g, baseUrl: v }) {
|
|
2172
|
+
let [S, ee] = _(!0);
|
|
2173
|
+
return /* @__PURE__ */ y(nt, {
|
|
2174
|
+
locale: m,
|
|
2175
|
+
language: h,
|
|
2176
|
+
messages: g,
|
|
2177
|
+
children: /* @__PURE__ */ b(x, {
|
|
2218
2178
|
sx: $.sxRoot,
|
|
2219
|
-
children: [/* @__PURE__ */
|
|
2179
|
+
children: [/* @__PURE__ */ y(x, {
|
|
2220
2180
|
component: "header",
|
|
2221
2181
|
sx: $.sxHeader,
|
|
2222
|
-
children: /* @__PURE__ */
|
|
2182
|
+
children: /* @__PURE__ */ y(Q, {
|
|
2223
2183
|
sites: t,
|
|
2224
|
-
sidebarOpen:
|
|
2225
|
-
onToggleSidebar: () =>
|
|
2184
|
+
sidebarOpen: S,
|
|
2185
|
+
onToggleSidebar: () => ee((e) => !e),
|
|
2226
2186
|
notificationUnreadCount: r,
|
|
2227
2187
|
notifications: i,
|
|
2228
2188
|
profile: a,
|
|
2229
2189
|
primaryLogo: o,
|
|
2230
2190
|
brandLogo: s,
|
|
2231
|
-
selectedPublicationId:
|
|
2232
|
-
getPublicationHref:
|
|
2233
|
-
resolvePublicationImageUrl:
|
|
2234
|
-
profileAvatarOptions:
|
|
2191
|
+
selectedPublicationId: c,
|
|
2192
|
+
getPublicationHref: l,
|
|
2193
|
+
resolvePublicationImageUrl: u,
|
|
2194
|
+
profileAvatarOptions: d
|
|
2235
2195
|
})
|
|
2236
|
-
}), /* @__PURE__ */
|
|
2196
|
+
}), /* @__PURE__ */ b(x, {
|
|
2237
2197
|
sx: $.sxBody,
|
|
2238
|
-
children: [/* @__PURE__ */
|
|
2239
|
-
open:
|
|
2198
|
+
children: [/* @__PURE__ */ y(ht, {
|
|
2199
|
+
open: S,
|
|
2240
2200
|
pathname: e,
|
|
2241
|
-
LinkComponent:
|
|
2242
|
-
permissions:
|
|
2243
|
-
|
|
2201
|
+
LinkComponent: f,
|
|
2202
|
+
permissions: p,
|
|
2203
|
+
baseUrl: v,
|
|
2204
|
+
selectedPublicationId: c
|
|
2205
|
+
}), /* @__PURE__ */ y(x, {
|
|
2244
2206
|
component: "main",
|
|
2245
2207
|
sx: $.sxMain,
|
|
2246
2208
|
children: n
|
|
@@ -2251,26 +2213,26 @@ function jt({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
2251
2213
|
}
|
|
2252
2214
|
//#endregion
|
|
2253
2215
|
//#region src/lib/components/mui-provider/CmsMuiProvider.tsx
|
|
2254
|
-
var Mt =
|
|
2216
|
+
var Mt = R();
|
|
2255
2217
|
function Nt({ children: e }) {
|
|
2256
|
-
return /* @__PURE__ */
|
|
2218
|
+
return /* @__PURE__ */ b(u, {
|
|
2257
2219
|
theme: Mt,
|
|
2258
2220
|
defaultMode: "light",
|
|
2259
2221
|
storageManager: null,
|
|
2260
|
-
children: [/* @__PURE__ */
|
|
2222
|
+
children: [/* @__PURE__ */ y(F, { enableColorScheme: !0 }), e]
|
|
2261
2223
|
});
|
|
2262
2224
|
}
|
|
2263
2225
|
//#endregion
|
|
2264
2226
|
//#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
|
|
2265
|
-
var Pt =
|
|
2227
|
+
var Pt = R();
|
|
2266
2228
|
function Ft({ children: e }) {
|
|
2267
|
-
return /* @__PURE__ */
|
|
2229
|
+
return /* @__PURE__ */ y(Ge, {
|
|
2268
2230
|
options: { enableCssLayer: !0 },
|
|
2269
|
-
children: /* @__PURE__ */
|
|
2231
|
+
children: /* @__PURE__ */ b(u, {
|
|
2270
2232
|
theme: Pt,
|
|
2271
2233
|
defaultMode: "light",
|
|
2272
2234
|
storageManager: null,
|
|
2273
|
-
children: [/* @__PURE__ */
|
|
2235
|
+
children: [/* @__PURE__ */ y(F, { enableColorScheme: !0 }), /* @__PURE__ */ y(x, {
|
|
2274
2236
|
sx: {
|
|
2275
2237
|
display: "flex",
|
|
2276
2238
|
flexDirection: "column",
|
|
@@ -2283,6 +2245,6 @@ function Ft({ children: e }) {
|
|
|
2283
2245
|
});
|
|
2284
2246
|
}
|
|
2285
2247
|
//#endregion
|
|
2286
|
-
export {
|
|
2248
|
+
export { st as ACCOUNT_NAV_BLOCKS, jt as AppShell, c as CmsCommonServices, nt as CmsI18nProvider, Nt as CmsMuiProvider, $e as DEFAULT_LOCALE, i as DEFAULT_SITE_ID, G as DefaultCmsLink, o as ITEM_DEFAULT_BG, n as ITEM_HOVER_BG, Ke as LIB_VERSION, e as MENU_BG, Ft as NextCmsMuiProvider, yt as NotificationsMenu, Ot as ProfileMenu, U as SUPPORTED_LOCALES, ht as Sidebar, _t as SiteSelectorMenu, Q as TopBar, R as createAppTheme, z as createTranslator, B as defaultLocaleCatalog, Xe as enMessages, Ze as esMessages, a as findPublicationBySlug, s as findPublicationLabel, t as getAllPublications, r as getDefaultPublicationSlug, rt as getIntlLocaleTag, Tt as getProfileAvatarSrc, Et as getProfileDisplayName, H as mergeMessages, et as normalizeLocale, l as parsePublicationSlug, Qe as ptMessages, St as resolveCmsAssetUrl, xt as resolveCmsOrigin, W as useCmsTranslation };
|
|
2287
2249
|
|
|
2288
2250
|
//# sourceMappingURL=index.js.map
|