sass-cms-template-common 0.0.0 → 0.0.2

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.js CHANGED
@@ -12,28 +12,59 @@ import g from "@mui/material/Menu";
12
12
  import _ from "@mui/material/MenuItem";
13
13
  import v from "@mui/material/Tooltip";
14
14
  import y from "@mui/material/Typography";
15
- import b from "@mui/icons-material/AddOutlined";
16
- import x from "@mui/icons-material/DevicesOtherOutlined";
17
- import S from "@mui/icons-material/HelpOutlineOutlined";
18
- import C from "@mui/icons-material/LanguageOutlined";
19
- import w from "@mui/icons-material/Menu";
20
- import T from "@mui/material/AppBar";
21
- import ee from "@mui/material/Toolbar";
22
- import E from "@mui/icons-material/KeyboardArrowDown";
23
- import D from "@mui/material/Button";
24
- import O from "@mui/icons-material/NotificationsNoneOutlined";
25
- import k from "@mui/material/Badge";
26
- import A from "@mui/material/List";
27
- import te from "@mui/material/ListItemButton";
28
- import ne from "@mui/icons-material/EditOutlined";
29
- import re from "@mui/icons-material/LogoutOutlined";
30
- import ie from "@mui/icons-material/PersonOutlined";
31
- import ae from "@mui/material/Avatar";
32
- import oe from "@mui/material/Divider";
33
- import j from "@mui/material/CssBaseline";
34
- import { AppRouterCacheProvider as se } from "@mui/material-nextjs/v16-appRouter";
15
+ import b from "@mui/icons-material/AccountTreeOutlined";
16
+ import x from "@mui/icons-material/ArticleOutlined";
17
+ import S from "@mui/icons-material/AssignmentOutlined";
18
+ import C from "@mui/icons-material/AudioFileOutlined";
19
+ import w from "@mui/icons-material/BarChartOutlined";
20
+ import T from "@mui/icons-material/BookmarkBorderOutlined";
21
+ import E from "@mui/icons-material/ChatBubbleOutlineOutlined";
22
+ import D from "@mui/icons-material/CreateOutlined";
23
+ import O from "@mui/icons-material/EventOutlined";
24
+ import k from "@mui/icons-material/ExploreOutlined";
25
+ import A from "@mui/icons-material/FormatListBulletedOutlined";
26
+ import j from "@mui/icons-material/GridViewOutlined";
27
+ import M from "@mui/icons-material/ImageOutlined";
28
+ import N from "@mui/icons-material/ImportExportOutlined";
29
+ import ee from "@mui/icons-material/LabelOutlined";
30
+ import te from "@mui/icons-material/LayersOutlined";
31
+ import ne from "@mui/icons-material/MailOutlineOutlined";
32
+ import re from "@mui/icons-material/MoreHorizOutlined";
33
+ import ie from "@mui/icons-material/NotificationsNoneOutlined";
34
+ import ae from "@mui/icons-material/PeopleOutlineOutlined";
35
+ import oe from "@mui/icons-material/PeopleOutlined";
36
+ import se from "@mui/icons-material/PermMediaOutlined";
37
+ import ce from "@mui/icons-material/PlayCircleOutlineOutlined";
38
+ import le from "@mui/icons-material/PollOutlined";
39
+ import ue from "@mui/icons-material/QueueMusicOutlined";
40
+ import de from "@mui/icons-material/QuizOutlined";
41
+ import fe from "@mui/icons-material/RestaurantOutlined";
42
+ import pe from "@mui/icons-material/SearchOutlined";
43
+ import me from "@mui/icons-material/ShoppingCartOutlined";
44
+ import he from "@mui/icons-material/SubscriptionsOutlined";
45
+ import ge from "@mui/icons-material/ViewCarouselOutlined";
46
+ import P from "@mui/icons-material/ViewListOutlined";
47
+ import _e from "@mui/icons-material/AddOutlined";
48
+ import ve from "@mui/icons-material/DevicesOtherOutlined";
49
+ import ye from "@mui/icons-material/HelpOutlineOutlined";
50
+ import be from "@mui/icons-material/LanguageOutlined";
51
+ import xe from "@mui/icons-material/Menu";
52
+ import Se from "@mui/material/AppBar";
53
+ import Ce from "@mui/material/Toolbar";
54
+ import we from "@mui/icons-material/KeyboardArrowDown";
55
+ import Te from "@mui/material/Button";
56
+ import Ee from "@mui/material/Badge";
57
+ import De from "@mui/material/List";
58
+ import Oe from "@mui/material/ListItemButton";
59
+ import ke from "@mui/icons-material/EditOutlined";
60
+ import Ae from "@mui/icons-material/LogoutOutlined";
61
+ import je from "@mui/icons-material/PersonOutlined";
62
+ import Me from "@mui/material/Avatar";
63
+ import Ne from "@mui/material/Divider";
64
+ import F from "@mui/material/CssBaseline";
65
+ import { AppRouterCacheProvider as Pe } from "@mui/material-nextjs/v16-appRouter";
35
66
  //#region src/lib/version.ts
36
- var ce = "0.0.0", M = {
67
+ var Fe = "0.0.0", I = {
37
68
  description: "TYPE: CUSTOM\nMaterial Theme Builder export 2026-05-08 02:18:51",
38
69
  seed: "#0067C4",
39
70
  coreColors: {
@@ -498,10 +529,10 @@ var ce = "0.0.0", M = {
498
529
  };
499
530
  //#endregion
500
531
  //#region src/lib/theme/createAppTheme.ts
501
- function N(e) {
502
- return M.extendedColors.find((t) => t.name === e)?.color;
532
+ function L(e) {
533
+ return I.extendedColors.find((t) => t.name === e)?.color;
503
534
  }
504
- function le(e) {
535
+ function Ie(e) {
505
536
  return {
506
537
  50: e[98],
507
538
  100: e[95],
@@ -519,7 +550,7 @@ function le(e) {
519
550
  A700: e[40]
520
551
  };
521
552
  }
522
- function P(e, n) {
553
+ function R(e, n) {
523
554
  let r = n.onSurface;
524
555
  return {
525
556
  mode: e,
@@ -548,24 +579,24 @@ function P(e, n) {
548
579
  contrastText: n.onError
549
580
  },
550
581
  warning: {
551
- main: N("Estado Programado") ?? "#FF6D00",
582
+ main: L("Estado Programado") ?? "#FF6D00",
552
583
  light: "#FF9E40",
553
584
  dark: "#C25400",
554
585
  contrastText: "#FFFFFF"
555
586
  },
556
587
  info: {
557
- main: N("Estado Redaccion") ?? "#0091EA",
588
+ main: L("Estado Redaccion") ?? "#0091EA",
558
589
  light: "#64B5F6",
559
590
  dark: "#0064B7",
560
591
  contrastText: "#FFFFFF"
561
592
  },
562
593
  success: {
563
- main: N("Estado publicada") ?? "#00C853",
594
+ main: L("Estado publicada") ?? "#00C853",
564
595
  light: "#69F0AE",
565
596
  dark: "#009624",
566
597
  contrastText: "#FFFFFF"
567
598
  },
568
- brand: { main: N("Bluestack color") ?? "#2962FF" },
599
+ brand: { main: L("Bluestack color") ?? "#2962FF" },
569
600
  text: {
570
601
  primary: n.onSurface,
571
602
  secondary: n.onSurfaceVariant,
@@ -588,7 +619,7 @@ function P(e, n) {
588
619
  black: n.shadow,
589
620
  white: "#FFFFFF"
590
621
  },
591
- grey: le(M.palettes.neutral),
622
+ grey: Ie(I.palettes.neutral),
592
623
  m3: {
593
624
  surfaceTint: n.surfaceTint,
594
625
  surfaceDim: n.surfaceDim,
@@ -610,8 +641,8 @@ function P(e, n) {
610
641
  }
611
642
  };
612
643
  }
613
- function F() {
614
- let e = P("light", M.schemes.light), t = P("dark", M.schemes.dark);
644
+ function z() {
645
+ let e = R("light", I.schemes.light), t = R("dark", I.schemes.dark);
615
646
  return n({
616
647
  cssVariables: { colorSchemeSelector: "data" },
617
648
  defaultColorScheme: "light",
@@ -629,14 +660,14 @@ function F() {
629
660
  }
630
661
  //#endregion
631
662
  //#region src/lib/components/link.tsx
632
- var I = r(function({ href: e, children: t, ...n }, r) {
663
+ var B = r(function({ href: e, children: t, ...n }, r) {
633
664
  return /* @__PURE__ */ s("a", {
634
665
  href: e,
635
666
  ref: r,
636
667
  ...n,
637
668
  children: t
638
669
  });
639
- }), L = "#D8E2FF", R = "#E3E2E6", z = "#414752", ue = 24, de = 24, B = {
670
+ }), V = "#D8E2FF", H = "#E3E2E6", U = "#414752", Le = 24, Re = 24, W = {
640
671
  sxRoot: (e) => {
641
672
  let t = e ? 195 : 96;
642
673
  return {
@@ -710,10 +741,10 @@ var I = r(function({ href: e, children: t, ...n }, r) {
710
741
  px: 0,
711
742
  py: 0,
712
743
  borderRadius: "100px",
713
- color: z,
744
+ color: U,
714
745
  textDecoration: "none",
715
- bgcolor: e ? L : "transparent",
716
- "&:hover": { bgcolor: e ? L : "action.hover" }
746
+ bgcolor: e ? V : "transparent",
747
+ "&:hover": { bgcolor: e ? V : "action.hover" }
717
748
  } : {
718
749
  position: "relative",
719
750
  display: "flex",
@@ -731,13 +762,13 @@ var I = r(function({ href: e, children: t, ...n }, r) {
731
762
  ml: "-1rem",
732
763
  mr: 0,
733
764
  borderRadius: t ? "100px" : "0 100px 100px 0",
734
- color: z,
765
+ color: U,
735
766
  textDecoration: "none",
736
- bgcolor: e ? L : "transparent",
737
- "&:hover": { bgcolor: e ? L : R }
767
+ bgcolor: e ? V : "transparent",
768
+ "&:hover": { bgcolor: e ? V : H }
738
769
  },
739
770
  sxItemIcon: (e, t = !1) => ({
740
- fontSize: t ? de : ue,
771
+ fontSize: t ? Re : Le,
741
772
  color: e ? "secondary.dark" : "m3.onSurfaceVariant",
742
773
  width: t ? 48 : "auto",
743
774
  flexShrink: 0
@@ -748,7 +779,7 @@ var I = r(function({ href: e, children: t, ...n }, r) {
748
779
  fontSize: 14,
749
780
  fontWeight: e ? 600 : 400,
750
781
  lineHeight: 1.43,
751
- color: z,
782
+ color: U,
752
783
  overflow: "hidden",
753
784
  textOverflow: "ellipsis",
754
785
  whiteSpace: "nowrap"
@@ -776,12 +807,12 @@ var I = r(function({ href: e, children: t, ...n }, r) {
776
807
  px: 2,
777
808
  py: 1,
778
809
  gap: 1.25,
779
- color: z,
780
- bgcolor: e ? L : "transparent",
781
- "&:hover": { bgcolor: e ? L : R },
810
+ color: U,
811
+ bgcolor: e ? V : "transparent",
812
+ "&:hover": { bgcolor: e ? V : H },
782
813
  "&.Mui-selected": {
783
- bgcolor: L,
784
- "&:hover": { bgcolor: L }
814
+ bgcolor: V,
815
+ "&:hover": { bgcolor: V }
785
816
  }
786
817
  }),
787
818
  sxChildrenMenuListItemIcon: {
@@ -805,60 +836,290 @@ var I = r(function({ href: e, children: t, ...n }, r) {
805
836
  alignItems: "center",
806
837
  justifyContent: "center"
807
838
  })
808
- };
839
+ }, G = [
840
+ {
841
+ label: "Comments",
842
+ href: "/comentarios",
843
+ icon: E,
844
+ module: "COMMENTS"
845
+ },
846
+ {
847
+ label: "Polls",
848
+ href: "/encuestas",
849
+ icon: le,
850
+ module: "POLLS"
851
+ },
852
+ {
853
+ label: "Media",
854
+ href: "/media",
855
+ icon: se,
856
+ defaultOpen: !0,
857
+ module: "MEDIA",
858
+ children: [
859
+ {
860
+ label: "Audio",
861
+ href: "/media/audios",
862
+ icon: C,
863
+ module: "AUDIOS"
864
+ },
865
+ {
866
+ label: "Images",
867
+ href: "/media/imagenes",
868
+ icon: M,
869
+ module: "IMAGES"
870
+ },
871
+ {
872
+ label: "Playlist",
873
+ href: "/media/playlist",
874
+ icon: ue,
875
+ module: "PLAYLISTS"
876
+ },
877
+ {
878
+ label: "Videos",
879
+ href: "/media/videos",
880
+ icon: ce,
881
+ module: "VIDEOS"
882
+ }
883
+ ]
884
+ },
885
+ {
886
+ label: "News",
887
+ href: "/noticias",
888
+ icon: x,
889
+ module: "NEWS"
890
+ },
891
+ {
892
+ label: "Planning",
893
+ href: "/planificacion",
894
+ icon: S,
895
+ module: "PLANNING"
896
+ },
897
+ {
898
+ label: "Analytics",
899
+ href: "/analiticas",
900
+ icon: w,
901
+ module: "ANALYTICS"
902
+ },
903
+ {
904
+ label: "Tags",
905
+ href: "/tags",
906
+ icon: ee,
907
+ module: "TAGS"
908
+ },
909
+ {
910
+ label: "Trivia",
911
+ href: "/trivias",
912
+ icon: de,
913
+ module: "TRIVIAS"
914
+ },
915
+ {
916
+ label: "Other",
917
+ href: "/otros",
918
+ icon: re,
919
+ module: "OTHER",
920
+ children: [
921
+ {
922
+ label: "News Wires",
923
+ href: "/otros/news-wires",
924
+ icon: b,
925
+ module: "NEWSWIRES"
926
+ },
927
+ {
928
+ label: "Events",
929
+ href: "/otros/eventos",
930
+ icon: O,
931
+ module: "EVENTS"
932
+ },
933
+ {
934
+ label: "Pages",
935
+ href: "/otros/paginas",
936
+ icon: k,
937
+ module: "PAGES"
938
+ },
939
+ {
940
+ label: "Feed",
941
+ href: "/otros/feed",
942
+ icon: A,
943
+ module: "FEEDS"
944
+ },
945
+ {
946
+ label: "People",
947
+ href: "/otros/personas",
948
+ icon: oe,
949
+ module: "PERSONS"
950
+ },
951
+ {
952
+ label: "Contributions",
953
+ href: "/otros/contribuciones",
954
+ icon: D,
955
+ module: "CONTRIBUTIONS"
956
+ },
957
+ {
958
+ label: "Recipes",
959
+ href: "/otros/recetas",
960
+ icon: fe,
961
+ module: "RECIPES"
962
+ },
963
+ {
964
+ label: "Posts",
965
+ href: "/otros/posts",
966
+ icon: x,
967
+ module: "POSTS"
968
+ }
969
+ ]
970
+ },
971
+ {
972
+ label: "Banners",
973
+ href: "/banners",
974
+ icon: ge,
975
+ module: "BANNERS"
976
+ },
977
+ {
978
+ label: "Blocks",
979
+ href: "/bloques",
980
+ icon: j,
981
+ module: "BLOCKS"
982
+ },
983
+ {
984
+ label: "Menu",
985
+ href: "/menu",
986
+ icon: P,
987
+ module: "MENUS"
988
+ },
989
+ {
990
+ label: "Topics",
991
+ href: "/temas",
992
+ icon: T,
993
+ module: "TOPICS"
994
+ },
995
+ {
996
+ label: "Advanced search",
997
+ href: "/busqueda",
998
+ icon: pe,
999
+ module: "ADVANCEDQUERYS"
1000
+ },
1001
+ {
1002
+ label: "Imports",
1003
+ href: "/importaciones",
1004
+ icon: N,
1005
+ module: "IMPORTS"
1006
+ },
1007
+ {
1008
+ label: "Newsletters",
1009
+ href: "/newsletters",
1010
+ icon: ne,
1011
+ module: "NEWSLETTERS"
1012
+ },
1013
+ {
1014
+ label: "Notifications",
1015
+ href: "/notificaciones",
1016
+ icon: ie,
1017
+ module: "NOTIFICATIONS"
1018
+ },
1019
+ {
1020
+ label: "Payments",
1021
+ href: "/pagos",
1022
+ icon: me,
1023
+ module: "PAYMENTS"
1024
+ },
1025
+ {
1026
+ label: "Plans",
1027
+ href: "/planes",
1028
+ icon: he,
1029
+ module: "PLANS"
1030
+ },
1031
+ {
1032
+ label: "Reports",
1033
+ href: "/reportes",
1034
+ icon: w,
1035
+ module: "REPORTS"
1036
+ },
1037
+ {
1038
+ label: "Sections",
1039
+ href: "/secciones",
1040
+ icon: P,
1041
+ module: "SECTIONS"
1042
+ },
1043
+ {
1044
+ label: "Twitter Feeds",
1045
+ href: "/twitter-feeds",
1046
+ icon: E,
1047
+ module: "TWITTERS"
1048
+ },
1049
+ {
1050
+ label: "Users",
1051
+ href: "/usuarios",
1052
+ icon: ae,
1053
+ module: "USERS"
1054
+ },
1055
+ {
1056
+ label: "Zones",
1057
+ href: "/zonas",
1058
+ icon: te,
1059
+ module: "ZONES"
1060
+ },
1061
+ {
1062
+ label: "IA",
1063
+ href: "/ia",
1064
+ icon: k,
1065
+ module: "IA"
1066
+ }
1067
+ ];
809
1068
  //#endregion
810
1069
  //#region src/lib/components/sidebar/Sidebar.tsx
811
- function V(e, t) {
1070
+ function K(e, t) {
812
1071
  return !!(e === t || t !== "/" && e.startsWith(`${t}/`));
813
1072
  }
814
- function fe(e, t) {
815
- return V(e, t.href) ? !0 : t.children?.some((t) => V(e, t.href)) ?? !1;
1073
+ function ze(e, t) {
1074
+ return K(e, t.href) ? !0 : t.children?.some((t) => K(e, t.href)) ?? !1;
816
1075
  }
817
- function pe(e, t, n) {
1076
+ function Be(e, t, n) {
818
1077
  return e ? n : /* @__PURE__ */ s(v, {
819
1078
  title: t,
820
1079
  placement: "right",
821
1080
  arrow: !0,
822
1081
  children: /* @__PURE__ */ s(d, {
823
1082
  component: "span",
824
- sx: B.sxTooltipWrap(e),
1083
+ sx: W.sxTooltipWrap(e),
825
1084
  children: n
826
1085
  })
827
1086
  });
828
1087
  }
829
- function H({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand: i, LinkComponent: v, pathname: b }) {
830
- let x = !n, S = V(b, e.href), C = fe(b, e), w = !!e.children?.length, T = e.icon, ee = t ? S : S || C, [E, D] = a(null), O = !!E, k = /* @__PURE__ */ c(o, { children: [
831
- w && !x ? /* @__PURE__ */ s(p, {
1088
+ function Ve({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand: i, LinkComponent: v, pathname: b, permissions: x }) {
1089
+ let S = x.find((t) => t.module === e.module), C = !n, w = K(b, e.href), T = ze(b, e), E = !!e.children?.length, D = e.icon, O = t ? w : w || T, [k, A] = a(null), j = !!k;
1090
+ if (!S) return null;
1091
+ let M = /* @__PURE__ */ c(o, { children: [
1092
+ E && !C ? /* @__PURE__ */ s(p, {
832
1093
  size: "small",
833
1094
  "aria-label": r ? "Contraer" : "Expandir",
834
1095
  onClick: (e) => {
835
1096
  e.preventDefault(), e.stopPropagation(), i?.();
836
1097
  },
837
- sx: B.sxExpandButton,
1098
+ sx: W.sxExpandButton,
838
1099
  children: s(r ? u : l, { sx: { fontSize: 20 } })
839
1100
  }) : null,
840
- /* @__PURE__ */ s(T, { sx: B.sxItemIcon(ee, x) }),
841
- x ? null : /* @__PURE__ */ s(y, {
1101
+ /* @__PURE__ */ s(D, { sx: W.sxItemIcon(O, C) }),
1102
+ C ? null : /* @__PURE__ */ s(y, {
842
1103
  component: "span",
843
- sx: B.sxItemLabel(S),
1104
+ sx: W.sxItemLabel(w),
844
1105
  children: e.label
845
1106
  }),
846
- e.badge && /* @__PURE__ */ s(d, {
1107
+ S.isNew && /* @__PURE__ */ s(d, {
847
1108
  component: "span",
848
- sx: B.sxBetaChip(n),
849
- children: e.badge
1109
+ sx: W.sxBetaChip(n),
1110
+ children: S.isNew ? "New" : ""
850
1111
  })
851
1112
  ] });
852
- if (w && !x) return /* @__PURE__ */ c(d, {
853
- sx: B.sxNavGroup(n),
1113
+ if (E && !C) return /* @__PURE__ */ c(d, {
1114
+ sx: W.sxNavGroup(n),
854
1115
  children: [/* @__PURE__ */ s(d, {
855
1116
  component: "div",
856
1117
  onClick: i,
857
1118
  sx: {
858
- ...B.sxItem(C, t, !0, !1),
1119
+ ...W.sxItem(T, t, !0, !1),
859
1120
  cursor: "pointer"
860
1121
  },
861
- children: k
1122
+ children: M
862
1123
  }), /* @__PURE__ */ s(f, {
863
1124
  in: r,
864
1125
  timeout: "auto",
@@ -873,37 +1134,38 @@ function H({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand:
873
1134
  maxWidth: "100%",
874
1135
  overflow: "hidden"
875
1136
  },
876
- children: e.children.map((e) => /* @__PURE__ */ s(H, {
1137
+ children: e.children.map((e) => /* @__PURE__ */ s(Ve, {
877
1138
  item: e,
878
1139
  nested: !0,
879
1140
  open: n,
880
1141
  LinkComponent: v,
881
- pathname: b
1142
+ pathname: b,
1143
+ permissions: x
882
1144
  }, e.href))
883
1145
  })
884
1146
  })]
885
1147
  });
886
- if (w && x) return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(d, {
1148
+ if (E && C) return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(d, {
887
1149
  component: "button",
888
1150
  type: "button",
889
1151
  "aria-label": e.label,
890
- "aria-controls": O ? `sidebar-children-${e.href}` : void 0,
1152
+ "aria-controls": j ? `sidebar-children-${e.href}` : void 0,
891
1153
  "aria-haspopup": "true",
892
- "aria-expanded": O ? "true" : void 0,
893
- onClick: (e) => D(e.currentTarget),
894
- onMouseEnter: (e) => D(e.currentTarget),
1154
+ "aria-expanded": j ? "true" : void 0,
1155
+ onClick: (e) => A(e.currentTarget),
1156
+ onMouseEnter: (e) => A(e.currentTarget),
895
1157
  sx: {
896
- ...B.sxItem(C, t, w, !0),
1158
+ ...W.sxItem(T, t, E, !0),
897
1159
  border: 0,
898
1160
  background: "transparent",
899
1161
  cursor: "pointer"
900
1162
  },
901
- children: k
1163
+ children: M
902
1164
  }), /* @__PURE__ */ s(g, {
903
1165
  id: `sidebar-children-${e.href}`,
904
- anchorEl: E,
905
- open: O,
906
- onClose: () => D(null),
1166
+ anchorEl: k,
1167
+ open: j,
1168
+ onClose: () => A(null),
907
1169
  anchorOrigin: {
908
1170
  vertical: "center",
909
1171
  horizontal: "right"
@@ -913,9 +1175,9 @@ function H({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand:
913
1175
  horizontal: "left"
914
1176
  },
915
1177
  slotProps: {
916
- paper: { sx: B.sxChildrenMenuPaper },
1178
+ paper: { sx: W.sxChildrenMenuPaper },
917
1179
  list: {
918
- onMouseLeave: () => D(null),
1180
+ onMouseLeave: () => A(null),
919
1181
  sx: { py: 1 }
920
1182
  }
921
1183
  },
@@ -924,10 +1186,10 @@ function H({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand:
924
1186
  return /* @__PURE__ */ c(_, {
925
1187
  component: v,
926
1188
  href: e.href,
927
- onClick: () => D(null),
928
- sx: B.sxChildrenMenuItem(V(b, e.href)),
1189
+ onClick: () => A(null),
1190
+ sx: W.sxChildrenMenuItem(K(b, e.href)),
929
1191
  children: [/* @__PURE__ */ s(m, {
930
- sx: B.sxChildrenMenuListItemIcon,
1192
+ sx: W.sxChildrenMenuListItemIcon,
931
1193
  children: /* @__PURE__ */ s(t, {})
932
1194
  }), /* @__PURE__ */ s(h, {
933
1195
  primary: e.label,
@@ -940,71 +1202,73 @@ function H({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand:
940
1202
  }, e.href);
941
1203
  })
942
1204
  })] });
943
- let A = /* @__PURE__ */ s(d, {
1205
+ let N = /* @__PURE__ */ s(d, {
944
1206
  component: v,
945
1207
  href: e.href,
946
- sx: B.sxItem(x ? C : S, t, w, x),
947
- children: k
1208
+ sx: W.sxItem(C ? T : w, t, E, C),
1209
+ children: M
948
1210
  });
949
- return pe(n, e.label, A);
1211
+ return Be(n, e.label, N);
950
1212
  }
951
- function me({ items: e, open: t, LinkComponent: n, pathname: r }) {
952
- let [c, l] = a(i(() => {
1213
+ function He({ items: e, open: t, LinkComponent: n, pathname: r, permissions: c }) {
1214
+ let [l, u] = a(i(() => {
953
1215
  let t = {};
954
- for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => V(r, e.href)));
1216
+ for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => K(r, e.href)));
955
1217
  return t;
956
- }, [e, r])), u = (e) => {
957
- l((t) => ({
1218
+ }, [e, r])), d = (e) => {
1219
+ u((t) => ({
958
1220
  ...t,
959
1221
  [e]: !t[e]
960
1222
  }));
961
1223
  };
962
- return /* @__PURE__ */ s(o, { children: e.map((e) => /* @__PURE__ */ s(H, {
1224
+ return /* @__PURE__ */ s(o, { children: e.map((e) => /* @__PURE__ */ s(Ve, {
963
1225
  item: e,
964
1226
  open: t,
965
- expanded: c[e.href],
966
- onToggleExpand: e.children ? () => u(e.href) : void 0,
1227
+ permissions: c,
1228
+ expanded: l[e.href],
1229
+ onToggleExpand: e.children ? () => d(e.href) : void 0,
967
1230
  LinkComponent: n,
968
1231
  pathname: r
969
1232
  }, e.href)) });
970
1233
  }
971
- function U({ open: e, pathname: t, navBlocks: n, LinkComponent: r = I }) {
1234
+ function Ue({ open: e, pathname: t, permissions: n, LinkComponent: r = B }) {
972
1235
  return /* @__PURE__ */ s(d, {
973
1236
  component: "aside",
974
- sx: B.sxRoot(e),
1237
+ sx: W.sxRoot(e),
975
1238
  children: /* @__PURE__ */ s(d, {
976
- sx: B.sxNavScroll,
1239
+ sx: W.sxNavScroll,
977
1240
  children: /* @__PURE__ */ s(d, {
978
1241
  component: "nav",
979
1242
  "aria-label": "Principal",
980
- sx: B.sxNav(e),
981
- children: n.map((n, i) => Array.isArray(n) ? /* @__PURE__ */ s(me, {
982
- items: n,
1243
+ sx: W.sxNav(e),
1244
+ children: G.map((i, a) => Array.isArray(i) && n.some((e) => e.module === i.module) ? /* @__PURE__ */ s(He, {
1245
+ permissions: n,
1246
+ items: i,
983
1247
  open: e,
984
1248
  LinkComponent: r,
985
1249
  pathname: t
986
- }, `section-${i}`) : null)
1250
+ }, `section-${a}`) : null)
987
1251
  })
988
1252
  })
989
1253
  });
990
1254
  }
991
1255
  //#endregion
992
1256
  //#region src/lib/utils/site-selector.ts
993
- var W = "#ECEDF6", G = "#D8E2FF", K = "#FFFFFF", he = "bluestack-es";
994
- function q(e) {
1257
+ var We = "#ECEDF6", q = "#D8E2FF", Ge = "#FFFFFF", Ke = "bluestack-es";
1258
+ function J(e) {
995
1259
  return e.flatMap((e) => e.publications);
996
1260
  }
997
- function ge(e, t) {
998
- return q(e).find((e) => String(e.id) === t);
1261
+ function qe(e, t) {
1262
+ return J(e).find((e) => String(e.id) === t);
999
1263
  }
1000
- function J(e, t) {
1001
- return q(e).find((e) => String(e.id) === t)?.description ?? "Seleccionar publicación";
1264
+ function Je(e, t) {
1265
+ return J(e).find((e) => String(e.id) === t)?.description ?? "Seleccionar publicación";
1002
1266
  }
1003
- function _e(e) {
1004
- let t = q(e)[0];
1267
+ function Ye(e) {
1268
+ let t = J(e)[0];
1005
1269
  return t ? String(t.id) : "1";
1006
1270
  }
1007
- function ve(e) {
1271
+ function Xe(e) {
1008
1272
  let t = Number(e);
1009
1273
  return Number.isFinite(t) && t > 0 ? t : 1;
1010
1274
  }
@@ -1016,7 +1280,7 @@ var Y = {
1016
1280
  borderRadius: "8px",
1017
1281
  borderColor: e ? "transparent" : "m3.outline",
1018
1282
  color: "black",
1019
- bgcolor: e ? G : "transparent",
1283
+ bgcolor: e ? q : "transparent",
1020
1284
  textTransform: "none",
1021
1285
  fontSize: "12px",
1022
1286
  fontWeight: 500,
@@ -1027,13 +1291,13 @@ var Y = {
1027
1291
  flexShrink: 0,
1028
1292
  "&:hover": {
1029
1293
  borderColor: "m3.outline",
1030
- bgcolor: e ? G : "action.hover"
1294
+ bgcolor: e ? q : "action.hover"
1031
1295
  }
1032
1296
  }),
1033
1297
  sxTriggerIcon: { fontSize: 20 },
1034
1298
  sxMenuPaper: {
1035
1299
  mt: 1,
1036
- bgcolor: W,
1300
+ bgcolor: We,
1037
1301
  borderRadius: 2,
1038
1302
  marginTop: 0,
1039
1303
  boxShadow: "0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)",
@@ -1069,17 +1333,17 @@ var Y = {
1069
1333
  padding: "1rem",
1070
1334
  margin: ".65rem",
1071
1335
  borderRadius: "28px",
1072
- bgcolor: e ? G : K,
1336
+ bgcolor: e ? q : Ge,
1073
1337
  color: "m3.onSurfaceVariant",
1074
1338
  display: "flex",
1075
1339
  alignItems: "center",
1076
1340
  justifyContent: "space-between",
1077
1341
  gap: 1.5,
1078
1342
  whiteSpace: "nowrap",
1079
- "&:hover": { bgcolor: G },
1343
+ "&:hover": { bgcolor: q },
1080
1344
  "&.Mui-selected": {
1081
- bgcolor: G,
1082
- "&:hover": { bgcolor: G }
1345
+ bgcolor: q,
1346
+ "&:hover": { bgcolor: q }
1083
1347
  }
1084
1348
  }),
1085
1349
  sxMenuItemLabel: (e) => ({
@@ -1106,7 +1370,7 @@ var Y = {
1106
1370
  };
1107
1371
  //#endregion
1108
1372
  //#region src/lib/components/site-selector-menu/SiteSelectorMenu.tsx
1109
- function ye({ publication: e, selected: t, href: n, imageUrl: r }) {
1373
+ function Ze({ publication: e, selected: t, href: n, imageUrl: r }) {
1110
1374
  return /* @__PURE__ */ s("a", {
1111
1375
  href: n,
1112
1376
  style: {
@@ -1131,22 +1395,22 @@ function ye({ publication: e, selected: t, href: n, imageUrl: r }) {
1131
1395
  })
1132
1396
  });
1133
1397
  }
1134
- function X({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolvePublicationImageUrl: r }) {
1398
+ function Qe({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolvePublicationImageUrl: r }) {
1135
1399
  let [i, l] = a(null), u = !!i, f = (e) => {
1136
1400
  l(e.currentTarget);
1137
1401
  }, p = () => {
1138
1402
  l(null);
1139
1403
  }, m = t ?? "";
1140
- return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(D, {
1404
+ return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(Te, {
1141
1405
  id: "site-selector-button",
1142
1406
  "aria-controls": u ? "site-selector-menu" : void 0,
1143
1407
  "aria-haspopup": "true",
1144
1408
  "aria-expanded": u ? "true" : void 0,
1145
1409
  variant: "outlined",
1146
1410
  onClick: f,
1147
- endIcon: /* @__PURE__ */ s(E, { sx: Y.sxTriggerIcon }),
1411
+ endIcon: /* @__PURE__ */ s(we, { sx: Y.sxTriggerIcon }),
1148
1412
  sx: Y.sxTriggerButton(u),
1149
- children: J(e, m)
1413
+ children: Je(e, m)
1150
1414
  }), /* @__PURE__ */ s(g, {
1151
1415
  id: "site-selector-menu",
1152
1416
  anchorEl: i,
@@ -1175,7 +1439,7 @@ function X({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolveP
1175
1439
  children: i.title
1176
1440
  }), /* @__PURE__ */ s(d, {
1177
1441
  sx: Y.sxSectionGrid(i.fullWidth),
1178
- children: i.publications.map((e) => /* @__PURE__ */ s(ye, {
1442
+ children: i.publications.map((e) => /* @__PURE__ */ s(Ze, {
1179
1443
  publication: e,
1180
1444
  selected: Number(t) === e.id,
1181
1445
  href: n(e),
@@ -1185,7 +1449,7 @@ function X({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolveP
1185
1449
  }, i.title))
1186
1450
  })] });
1187
1451
  }
1188
- var Z = {
1452
+ var X = {
1189
1453
  sxAppBar: {
1190
1454
  bgcolor: "m3.surfaceContainer",
1191
1455
  color: "m3.onSurfaceVariant",
@@ -1291,7 +1555,7 @@ var Z = {
1291
1555
  };
1292
1556
  //#endregion
1293
1557
  //#region src/lib/components/top-bar/NotificationsMenu.tsx
1294
- function be(e) {
1558
+ function $e(e) {
1295
1559
  let t = new Date(e);
1296
1560
  return Number.isNaN(t.getTime()) ? "" : t.toLocaleString("es-MX", {
1297
1561
  day: "2-digit",
@@ -1300,7 +1564,7 @@ function be(e) {
1300
1564
  minute: "2-digit"
1301
1565
  });
1302
1566
  }
1303
- function Q({ unreadCount: e, notifications: t }) {
1567
+ function Z({ unreadCount: e, notifications: t }) {
1304
1568
  let [n, r] = a(null), l = !!n, u = i(() => e > 0 ? e : void 0, [e]);
1305
1569
  return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(v, {
1306
1570
  title: "Notificaciones",
@@ -1309,12 +1573,12 @@ function Q({ unreadCount: e, notifications: t }) {
1309
1573
  "aria-haspopup": "true",
1310
1574
  "aria-expanded": l,
1311
1575
  onClick: (e) => r(e.currentTarget),
1312
- sx: Z.sxActionIcon,
1313
- children: /* @__PURE__ */ s(k, {
1576
+ sx: X.sxActionIcon,
1577
+ children: /* @__PURE__ */ s(Ee, {
1314
1578
  badgeContent: u,
1315
1579
  color: "error",
1316
- sx: Z.sxBadge,
1317
- children: /* @__PURE__ */ s(O, { sx: Z.sxActionIconGlyph })
1580
+ sx: X.sxBadge,
1581
+ children: /* @__PURE__ */ s(ie, { sx: X.sxActionIconGlyph })
1318
1582
  })
1319
1583
  })
1320
1584
  }), /* @__PURE__ */ c(g, {
@@ -1363,11 +1627,11 @@ function Q({ unreadCount: e, notifications: t }) {
1363
1627
  sx: { textAlign: "center" },
1364
1628
  children: "No hay notificaciones"
1365
1629
  })
1366
- }) : /* @__PURE__ */ s(A, {
1630
+ }) : /* @__PURE__ */ s(De, {
1367
1631
  dense: !0,
1368
1632
  disablePadding: !0,
1369
1633
  sx: { py: .5 },
1370
- children: t.map((e) => /* @__PURE__ */ s(te, {
1634
+ children: t.map((e) => /* @__PURE__ */ s(Oe, {
1371
1635
  component: e.href ? "a" : "div",
1372
1636
  href: e.href,
1373
1637
  onClick: () => r(null),
@@ -1396,7 +1660,7 @@ function Q({ unreadCount: e, notifications: t }) {
1396
1660
  display: "block",
1397
1661
  mt: .5
1398
1662
  },
1399
- children: be(e.createdAt)
1663
+ children: $e(e.createdAt)
1400
1664
  })] }),
1401
1665
  slotProps: { primary: {
1402
1666
  variant: "subtitle2",
@@ -1410,50 +1674,50 @@ function Q({ unreadCount: e, notifications: t }) {
1410
1674
  }
1411
1675
  //#endregion
1412
1676
  //#region src/lib/utils/cms-asset.ts
1413
- var xe = "https://dev.cms-medios.com";
1414
- function Se(e) {
1677
+ var et = "https://dev.cms-medios.com";
1678
+ function tt(e) {
1415
1679
  let t = e?.trim();
1416
- return t ? t.replace(/\/$/, "") : xe;
1680
+ return t ? t.replace(/\/$/, "") : et;
1417
1681
  }
1418
- function Ce(e, t) {
1682
+ function nt(e, t) {
1419
1683
  if (!e) return "";
1420
1684
  if (e.startsWith("http://") || e.startsWith("https://")) return e;
1421
1685
  let n = e.startsWith("/") ? e : `/${e}`;
1422
- return `${Se(t)}${n}`;
1686
+ return `${tt(t)}${n}`;
1423
1687
  }
1424
1688
  //#endregion
1425
1689
  //#region src/lib/utils/profile-avatar.ts
1426
- var we = "noPicture", Te = "/topbar_profile.png";
1427
- function Ee(e, t) {
1428
- let { image: n } = e, r = t?.fallbackAvatar ?? Te;
1429
- return !n || n === we ? r : Ce(n, t?.cmsOrigin);
1690
+ var rt = "noPicture", it = "/topbar_profile.png";
1691
+ function at(e, t) {
1692
+ let { image: n } = e, r = t?.fallbackAvatar ?? it;
1693
+ return !n || n === rt ? r : nt(n, t?.cmsOrigin);
1430
1694
  }
1431
- function De(e) {
1695
+ function ot(e) {
1432
1696
  if (e.fullName?.trim()) return e.fullName.trim();
1433
1697
  let t = [e.firstName, e.lastName].filter(Boolean);
1434
1698
  return t.length > 0 ? t.join(" ") : e.userName;
1435
1699
  }
1436
1700
  //#endregion
1437
1701
  //#region src/lib/components/top-bar/ProfileMenu.tsx
1438
- var Oe = [{
1702
+ var st = [{
1439
1703
  id: "profile",
1440
1704
  label: "My Profile",
1441
- icon: ie
1705
+ icon: je
1442
1706
  }, {
1443
1707
  id: "webmaster",
1444
1708
  label: "Webmaster View",
1445
- icon: ne
1446
- }], ke = {
1709
+ icon: ke
1710
+ }], ct = {
1447
1711
  id: "sign-off",
1448
1712
  label: "Sign off",
1449
- icon: re
1713
+ icon: Ae
1450
1714
  };
1451
- function Ae({ label: e, icon: t, onSelect: n }) {
1715
+ function lt({ label: e, icon: t, onSelect: n }) {
1452
1716
  return /* @__PURE__ */ c(_, {
1453
1717
  onClick: n,
1454
- sx: Z.sxProfileMenuItem,
1718
+ sx: X.sxProfileMenuItem,
1455
1719
  children: [/* @__PURE__ */ s(m, {
1456
- sx: Z.sxProfileMenuListItemIcon,
1720
+ sx: X.sxProfileMenuListItemIcon,
1457
1721
  children: /* @__PURE__ */ s(t, {})
1458
1722
  }), /* @__PURE__ */ s(h, {
1459
1723
  primary: e,
@@ -1465,8 +1729,8 @@ function Ae({ label: e, icon: t, onSelect: n }) {
1465
1729
  })]
1466
1730
  });
1467
1731
  }
1468
- function je({ profile: e, avatarOptions: t }) {
1469
- let [n, r] = a(null), i = !!n, l = De(e), u = Ee(e, t), f = u.startsWith("/"), m = () => r(null), h = (e) => {
1732
+ function ut({ profile: e, avatarOptions: t }) {
1733
+ let [n, r] = a(null), i = !!n, l = ot(e), u = at(e, t), f = u.startsWith("/"), m = () => r(null), h = (e) => {
1470
1734
  m();
1471
1735
  };
1472
1736
  return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(p, {
@@ -1476,9 +1740,9 @@ function je({ profile: e, avatarOptions: t }) {
1476
1740
  "aria-haspopup": "true",
1477
1741
  "aria-expanded": i ? "true" : void 0,
1478
1742
  onClick: (e) => r(e.currentTarget),
1479
- sx: Z.sxProfileButton,
1480
- children: /* @__PURE__ */ s(ae, {
1481
- sx: Z.sxProfileAvatar,
1743
+ sx: X.sxProfileButton,
1744
+ children: /* @__PURE__ */ s(Me, {
1745
+ sx: X.sxProfileAvatar,
1482
1746
  children: /* @__PURE__ */ s(d, {
1483
1747
  component: "img",
1484
1748
  src: u,
@@ -1505,7 +1769,7 @@ function je({ profile: e, avatarOptions: t }) {
1505
1769
  horizontal: "right"
1506
1770
  },
1507
1771
  slotProps: {
1508
- paper: { sx: Z.sxProfileMenuPaper },
1772
+ paper: { sx: X.sxProfileMenuPaper },
1509
1773
  list: { disablePadding: !0 }
1510
1774
  },
1511
1775
  children: [
@@ -1529,101 +1793,101 @@ function je({ profile: e, avatarOptions: t }) {
1529
1793
  children: e.email
1530
1794
  })]
1531
1795
  }),
1532
- Oe.map((e) => /* @__PURE__ */ s(Ae, {
1796
+ st.map((e) => /* @__PURE__ */ s(lt, {
1533
1797
  ...e,
1534
1798
  onSelect: () => h(e.id)
1535
1799
  }, e.id)),
1536
- /* @__PURE__ */ s(oe, { sx: Z.sxProfileMenuDivider }),
1537
- /* @__PURE__ */ s(Ae, {
1538
- ...ke,
1539
- onSelect: () => h(ke.id)
1800
+ /* @__PURE__ */ s(Ne, { sx: X.sxProfileMenuDivider }),
1801
+ /* @__PURE__ */ s(lt, {
1802
+ ...ct,
1803
+ onSelect: () => h(ct.id)
1540
1804
  })
1541
1805
  ]
1542
1806
  })] });
1543
1807
  }
1544
1808
  //#endregion
1545
1809
  //#region src/lib/components/top-bar/TopBar.tsx
1546
- function Me() {
1810
+ function dt() {
1547
1811
  return /* @__PURE__ */ s(d, {
1548
1812
  component: "span",
1549
1813
  role: "separator",
1550
1814
  "aria-orientation": "vertical",
1551
- sx: Z.sxDivider
1815
+ sx: X.sxDivider
1552
1816
  });
1553
1817
  }
1554
- function $({ title: e, icon: t }) {
1818
+ function Q({ title: e, icon: t }) {
1555
1819
  return /* @__PURE__ */ s(v, {
1556
1820
  title: e,
1557
1821
  children: /* @__PURE__ */ s(p, {
1558
1822
  "aria-label": e,
1559
- sx: Z.sxActionIcon,
1560
- children: /* @__PURE__ */ s(t, { sx: Z.sxActionIconGlyph })
1823
+ sx: X.sxActionIcon,
1824
+ children: /* @__PURE__ */ s(t, { sx: X.sxActionIconGlyph })
1561
1825
  })
1562
1826
  });
1563
1827
  }
1564
- function Ne({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: l, selectedPublicationId: u, getPublicationHref: f, resolvePublicationImageUrl: m, profileAvatarOptions: h }) {
1828
+ function $({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: l, selectedPublicationId: u, getPublicationHref: f, resolvePublicationImageUrl: m, profileAvatarOptions: h }) {
1565
1829
  let g = [{
1566
1830
  title: "Analíticas",
1567
- icon: x
1831
+ icon: ve
1568
1832
  }, {
1569
1833
  title: "Ayuda",
1570
- icon: S
1834
+ icon: ye
1571
1835
  }];
1572
- return /* @__PURE__ */ s(T, {
1836
+ return /* @__PURE__ */ s(Se, {
1573
1837
  position: "static",
1574
1838
  elevation: 0,
1575
- sx: Z.sxAppBar,
1576
- children: /* @__PURE__ */ c(ee, {
1839
+ sx: X.sxAppBar,
1840
+ children: /* @__PURE__ */ c(Ce, {
1577
1841
  disableGutters: !0,
1578
1842
  variant: "dense",
1579
- sx: Z.sxToolbar,
1843
+ sx: X.sxToolbar,
1580
1844
  children: [
1581
1845
  /* @__PURE__ */ s(p, {
1582
1846
  "aria-label": t ? "Cerrar menú lateral" : "Abrir menú lateral",
1583
1847
  "aria-expanded": t,
1584
1848
  onClick: n,
1585
- sx: Z.sxMenuButton,
1586
- children: /* @__PURE__ */ s(w, { sx: Z.sxMenuButtonIcon })
1849
+ sx: X.sxMenuButton,
1850
+ children: /* @__PURE__ */ s(xe, { sx: X.sxMenuButtonIcon })
1587
1851
  }),
1588
1852
  /* @__PURE__ */ s(d, {
1589
- sx: Z.sxLogoBox,
1853
+ sx: X.sxLogoBox,
1590
1854
  children: o
1591
1855
  }),
1592
1856
  /* @__PURE__ */ s(d, { sx: { flex: 1 } }),
1593
1857
  /* @__PURE__ */ c(d, {
1594
- sx: Z.sxActionsFrame,
1858
+ sx: X.sxActionsFrame,
1595
1859
  children: [
1596
1860
  /* @__PURE__ */ c(d, {
1597
- sx: Z.sxIconActionsRow,
1861
+ sx: X.sxIconActionsRow,
1598
1862
  children: [
1599
- /* @__PURE__ */ s($, {
1863
+ /* @__PURE__ */ s(Q, {
1600
1864
  title: "Nuevo",
1601
- icon: b
1865
+ icon: _e
1602
1866
  }),
1603
- /* @__PURE__ */ s(Q, {
1867
+ /* @__PURE__ */ s(Z, {
1604
1868
  unreadCount: r,
1605
1869
  notifications: i
1606
1870
  }),
1607
- /* @__PURE__ */ s($, {
1871
+ /* @__PURE__ */ s(Q, {
1608
1872
  title: "Idioma",
1609
- icon: C
1873
+ icon: be
1610
1874
  }),
1611
- g.map(({ title: e, icon: t }) => /* @__PURE__ */ s($, {
1875
+ g.map(({ title: e, icon: t }) => /* @__PURE__ */ s(Q, {
1612
1876
  title: e,
1613
1877
  icon: t
1614
1878
  }, e))
1615
1879
  ]
1616
1880
  }),
1617
- /* @__PURE__ */ s(Me, {}),
1881
+ /* @__PURE__ */ s(dt, {}),
1618
1882
  l,
1619
- /* @__PURE__ */ s(X, {
1883
+ /* @__PURE__ */ s(Qe, {
1620
1884
  sites: e,
1621
1885
  selectedPublicationId: u,
1622
1886
  getPublicationHref: f,
1623
1887
  resolvePublicationImageUrl: m
1624
1888
  }),
1625
- /* @__PURE__ */ s(Me, {}),
1626
- /* @__PURE__ */ s(je, {
1889
+ /* @__PURE__ */ s(dt, {}),
1890
+ /* @__PURE__ */ s(ut, {
1627
1891
  profile: a,
1628
1892
  avatarOptions: h
1629
1893
  })
@@ -1635,31 +1899,31 @@ function Ne({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
1635
1899
  }
1636
1900
  //#endregion
1637
1901
  //#region src/lib/components/shell/AppShell.tsx
1638
- function Pe({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notifications: i, profile: o, navBlocks: l, primaryLogo: u, brandLogo: d, selectedPublicationId: f, getPublicationHref: p, resolvePublicationImageUrl: m, profileAvatarOptions: h, LinkComponent: g = I }) {
1902
+ function ft({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notifications: i, profile: o, primaryLogo: l, brandLogo: u, selectedPublicationId: d, getPublicationHref: f, resolvePublicationImageUrl: p, profileAvatarOptions: m, LinkComponent: h = B, permissions: g }) {
1639
1903
  let [_, v] = a(!0);
1640
1904
  return /* @__PURE__ */ c("div", {
1641
1905
  className: "flex flex-col h-full",
1642
1906
  style: { background: "var(--md-surface-container)" },
1643
- children: [/* @__PURE__ */ s(Ne, {
1907
+ children: [/* @__PURE__ */ s($, {
1644
1908
  sites: t,
1645
1909
  sidebarOpen: _,
1646
1910
  onToggleSidebar: () => v((e) => !e),
1647
1911
  notificationUnreadCount: r,
1648
1912
  notifications: i,
1649
1913
  profile: o,
1650
- primaryLogo: u,
1651
- brandLogo: d,
1652
- selectedPublicationId: f,
1653
- getPublicationHref: p,
1654
- resolvePublicationImageUrl: m,
1655
- profileAvatarOptions: h
1914
+ primaryLogo: l,
1915
+ brandLogo: u,
1916
+ selectedPublicationId: d,
1917
+ getPublicationHref: f,
1918
+ resolvePublicationImageUrl: p,
1919
+ profileAvatarOptions: m
1656
1920
  }), /* @__PURE__ */ c("div", {
1657
1921
  className: "flex flex-1 min-h-0",
1658
- children: [/* @__PURE__ */ s(U, {
1922
+ children: [/* @__PURE__ */ s(Ue, {
1659
1923
  open: _,
1660
1924
  pathname: e,
1661
- navBlocks: l,
1662
- LinkComponent: g
1925
+ LinkComponent: h,
1926
+ permissions: g
1663
1927
  }), /* @__PURE__ */ s("main", {
1664
1928
  className: "flex flex-col flex-1 min-w-0 min-h-0 pt-1 pb-3 pr-3 mt-[10px]",
1665
1929
  children: n
@@ -1669,30 +1933,30 @@ function Pe({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
1669
1933
  }
1670
1934
  //#endregion
1671
1935
  //#region src/lib/components/mui-provider/CmsMuiProvider.tsx
1672
- var Fe = F();
1673
- function Ie({ children: t }) {
1936
+ var pt = z();
1937
+ function mt({ children: t }) {
1674
1938
  return /* @__PURE__ */ c(e, {
1675
- theme: Fe,
1939
+ theme: pt,
1676
1940
  defaultMode: "light",
1677
1941
  storageManager: null,
1678
- children: [/* @__PURE__ */ s(j, { enableColorScheme: !0 }), t]
1942
+ children: [/* @__PURE__ */ s(F, { enableColorScheme: !0 }), t]
1679
1943
  });
1680
1944
  }
1681
1945
  //#endregion
1682
1946
  //#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
1683
- var Le = F();
1684
- function Re({ children: t }) {
1685
- return /* @__PURE__ */ s(se, {
1947
+ var ht = z();
1948
+ function gt({ children: t }) {
1949
+ return /* @__PURE__ */ s(Pe, {
1686
1950
  options: { enableCssLayer: !0 },
1687
1951
  children: /* @__PURE__ */ c(e, {
1688
- theme: Le,
1952
+ theme: ht,
1689
1953
  defaultMode: "light",
1690
1954
  storageManager: null,
1691
- children: [/* @__PURE__ */ s(j, { enableColorScheme: !0 }), t]
1955
+ children: [/* @__PURE__ */ s(F, { enableColorScheme: !0 }), t]
1692
1956
  })
1693
1957
  });
1694
1958
  }
1695
1959
  //#endregion
1696
- export { Pe as AppShell, Ie as CmsMuiProvider, he as DEFAULT_SITE_ID, I as DefaultCmsLink, K as ITEM_DEFAULT_BG, G as ITEM_HOVER_BG, ce as LIB_VERSION, W as MENU_BG, Re as NextCmsMuiProvider, Q as NotificationsMenu, je as ProfileMenu, U as Sidebar, X as SiteSelectorMenu, Ne as TopBar, F as createAppTheme, ge as findPublicationBySlug, J as findPublicationLabel, q as getAllPublications, _e as getDefaultPublicationSlug, Ee as getProfileAvatarSrc, De as getProfileDisplayName, ve as parsePublicationSlug, Ce as resolveCmsAssetUrl, Se as resolveCmsOrigin };
1960
+ export { G as ACCOUNT_NAV_BLOCKS, ft as AppShell, mt as CmsMuiProvider, Ke as DEFAULT_SITE_ID, B as DefaultCmsLink, Ge as ITEM_DEFAULT_BG, q as ITEM_HOVER_BG, Fe as LIB_VERSION, We as MENU_BG, gt as NextCmsMuiProvider, Z as NotificationsMenu, ut as ProfileMenu, Ue as Sidebar, Qe as SiteSelectorMenu, $ as TopBar, z as createAppTheme, qe as findPublicationBySlug, Je as findPublicationLabel, J as getAllPublications, Ye as getDefaultPublicationSlug, at as getProfileAvatarSrc, ot as getProfileDisplayName, Xe as parsePublicationSlug, nt as resolveCmsAssetUrl, tt as resolveCmsOrigin };
1697
1961
 
1698
1962
  //# sourceMappingURL=index.js.map