sass-cms-template-common 0.0.1 → 0.0.3

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
@@ -1,70 +1,70 @@
1
- import { ThemeProvider as e, alpha as t, createTheme as n } from "@mui/material/styles";
2
- import { forwardRef as r, useMemo as i, useState as a } from "react";
3
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
4
- import l from "@mui/icons-material/ChevronRight";
5
- import u from "@mui/icons-material/ExpandMore";
6
- import d from "@mui/material/Box";
7
- import f from "@mui/material/Collapse";
8
- import p from "@mui/material/IconButton";
9
- import m from "@mui/material/ListItemIcon";
10
- import h from "@mui/material/ListItemText";
11
- import g from "@mui/material/Menu";
12
- import _ from "@mui/material/MenuItem";
13
- import v from "@mui/material/Tooltip";
14
- import y from "@mui/material/Typography";
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";
1
+ import { t as e } from "./services-D9XCHGgK.js";
2
+ import { ThemeProvider as t, alpha as n, createTheme as r } from "@mui/material/styles";
3
+ import { createContext as i, forwardRef as a, useContext as o, useMemo as s, useState as c } from "react";
4
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
5
+ import f from "@mui/material/Box";
6
+ import p from "@mui/icons-material/ChevronRight";
7
+ import m from "@mui/icons-material/ExpandMore";
8
+ import h from "@mui/material/Collapse";
9
+ import g from "@mui/material/IconButton";
10
+ import _ from "@mui/material/ListItemIcon";
11
+ import v from "@mui/material/ListItemText";
12
+ import y from "@mui/material/Menu";
13
+ import b from "@mui/material/MenuItem";
14
+ import x from "@mui/material/Tooltip";
15
+ import S from "@mui/material/Typography";
16
+ import C from "@mui/icons-material/AccountTreeOutlined";
17
+ import w from "@mui/icons-material/ArticleOutlined";
18
+ import T from "@mui/icons-material/AssignmentOutlined";
19
+ import E from "@mui/icons-material/AudioFileOutlined";
20
+ import D from "@mui/icons-material/BarChartOutlined";
21
+ import O from "@mui/icons-material/BookmarkBorderOutlined";
22
+ import k from "@mui/icons-material/ChatBubbleOutlineOutlined";
23
+ import ee from "@mui/icons-material/CreateOutlined";
24
+ import te from "@mui/icons-material/EventOutlined";
25
+ import A from "@mui/icons-material/ExploreOutlined";
26
+ import j from "@mui/icons-material/FormatListBulletedOutlined";
27
+ import M from "@mui/icons-material/GridViewOutlined";
28
+ import N from "@mui/icons-material/ImageOutlined";
29
+ import ne from "@mui/icons-material/ImportExportOutlined";
30
+ import re from "@mui/icons-material/LabelOutlined";
31
+ import ie from "@mui/icons-material/LayersOutlined";
32
+ import ae from "@mui/icons-material/MailOutlineOutlined";
33
+ import oe from "@mui/icons-material/MoreHorizOutlined";
34
+ import se from "@mui/icons-material/NotificationsNoneOutlined";
35
+ import ce from "@mui/icons-material/PeopleOutlineOutlined";
36
+ import le from "@mui/icons-material/PeopleOutlined";
37
+ import ue from "@mui/icons-material/PermMediaOutlined";
38
+ import de from "@mui/icons-material/PlayCircleOutlineOutlined";
39
+ import fe from "@mui/icons-material/PollOutlined";
40
+ import pe from "@mui/icons-material/QueueMusicOutlined";
41
+ import me from "@mui/icons-material/QuizOutlined";
42
+ import he from "@mui/icons-material/RestaurantOutlined";
43
+ import ge from "@mui/icons-material/SearchOutlined";
44
+ import _e from "@mui/icons-material/ShoppingCartOutlined";
45
+ import ve from "@mui/icons-material/SubscriptionsOutlined";
46
+ import ye from "@mui/icons-material/ViewCarouselOutlined";
47
+ import be from "@mui/icons-material/ViewListOutlined";
48
+ import xe from "@mui/icons-material/AddOutlined";
49
+ import Se from "@mui/icons-material/DevicesOtherOutlined";
50
+ import Ce from "@mui/icons-material/HelpOutlineOutlined";
51
+ import we from "@mui/icons-material/Menu";
52
+ import Te from "@mui/material/AppBar";
53
+ import Ee from "@mui/material/Toolbar";
54
+ import De from "@mui/icons-material/KeyboardArrowDown";
55
+ import Oe from "@mui/material/Button";
56
+ import ke from "@mui/material/Badge";
57
+ import Ae from "@mui/material/List";
58
+ import je from "@mui/material/ListItemButton";
59
+ import Me from "@mui/icons-material/EditOutlined";
60
+ import Ne from "@mui/icons-material/LogoutOutlined";
61
+ import Pe from "@mui/icons-material/PersonOutlined";
62
+ import Fe from "@mui/material/Avatar";
63
+ import Ie from "@mui/material/Divider";
64
+ import Le from "@mui/material/CssBaseline";
65
+ import { AppRouterCacheProvider as Re } from "@mui/material-nextjs/v16-appRouter";
66
66
  //#region src/lib/version.ts
67
- var Fe = "0.0.0", I = {
67
+ var ze = "0.0.0", P = {
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 Fe = "0.0.0", I = {
529
529
  };
530
530
  //#endregion
531
531
  //#region src/lib/theme/createAppTheme.ts
532
- function L(e) {
533
- return I.extendedColors.find((t) => t.name === e)?.color;
532
+ function F(e) {
533
+ return P.extendedColors.find((t) => t.name === e)?.color;
534
534
  }
535
- function Ie(e) {
535
+ function Be(e) {
536
536
  return {
537
537
  50: e[98],
538
538
  100: e[95],
@@ -550,100 +550,100 @@ function Ie(e) {
550
550
  A700: e[40]
551
551
  };
552
552
  }
553
- function R(e, n) {
554
- let r = n.onSurface;
553
+ function Ve(e, t) {
554
+ let r = t.onSurface;
555
555
  return {
556
556
  mode: e,
557
557
  primary: {
558
- main: n.primary,
559
- light: n.primaryContainer,
560
- dark: n.onPrimaryContainer,
561
- contrastText: n.onPrimary
558
+ main: t.primary,
559
+ light: t.primaryContainer,
560
+ dark: t.onPrimaryContainer,
561
+ contrastText: t.onPrimary
562
562
  },
563
563
  secondary: {
564
- main: n.secondary,
565
- light: n.secondaryContainer,
566
- dark: n.onSecondaryContainer,
567
- contrastText: n.onSecondary
564
+ main: t.secondary,
565
+ light: "#D8E2FF",
566
+ dark: t.onSecondaryContainer,
567
+ contrastText: t.onSecondary
568
568
  },
569
569
  tertiary: {
570
- main: n.tertiary,
571
- light: n.tertiaryContainer,
572
- dark: n.onTertiaryContainer,
573
- contrastText: n.onTertiary
570
+ main: t.tertiary,
571
+ light: t.tertiaryContainer,
572
+ dark: t.onTertiaryContainer,
573
+ contrastText: t.onTertiary
574
574
  },
575
575
  error: {
576
- main: n.error,
577
- light: n.errorContainer,
578
- dark: n.onErrorContainer,
579
- contrastText: n.onError
576
+ main: t.error,
577
+ light: t.errorContainer,
578
+ dark: t.onErrorContainer,
579
+ contrastText: t.onError
580
580
  },
581
581
  warning: {
582
- main: L("Estado Programado") ?? "#FF6D00",
582
+ main: F("Estado Programado") ?? "#FF6D00",
583
583
  light: "#FF9E40",
584
584
  dark: "#C25400",
585
585
  contrastText: "#FFFFFF"
586
586
  },
587
587
  info: {
588
- main: L("Estado Redaccion") ?? "#0091EA",
588
+ main: F("Estado Redaccion") ?? "#0091EA",
589
589
  light: "#64B5F6",
590
590
  dark: "#0064B7",
591
591
  contrastText: "#FFFFFF"
592
592
  },
593
593
  success: {
594
- main: L("Estado publicada") ?? "#00C853",
594
+ main: F("Estado publicada") ?? "#00C853",
595
595
  light: "#69F0AE",
596
596
  dark: "#009624",
597
597
  contrastText: "#FFFFFF"
598
598
  },
599
- brand: { main: L("Bluestack color") ?? "#2962FF" },
599
+ brand: { main: F("Bluestack color") ?? "#2962FF" },
600
600
  text: {
601
- primary: n.onSurface,
602
- secondary: n.onSurfaceVariant,
603
- disabled: t(n.onSurface, .38)
601
+ primary: t.onSurface,
602
+ secondary: t.onSurfaceVariant,
603
+ disabled: n(t.onSurface, .38)
604
604
  },
605
- divider: n.outlineVariant,
605
+ divider: t.outlineVariant,
606
606
  background: {
607
- default: n.background,
608
- paper: n.surfaceContainerLowest
607
+ default: t.background,
608
+ paper: t.surfaceContainerLowest
609
609
  },
610
610
  action: {
611
- active: t(r, .56),
612
- hover: t(r, e === "light" ? .04 : .08),
613
- selected: t(n.primary, .12),
614
- focus: t(n.primary, .12),
615
- disabled: t(r, .26),
616
- disabledBackground: t(r, .12)
611
+ active: n(r, .56),
612
+ hover: n(r, e === "light" ? .04 : .08),
613
+ selected: n(t.primary, .12),
614
+ focus: n(t.primary, .12),
615
+ disabled: n(r, .26),
616
+ disabledBackground: n(r, .12)
617
617
  },
618
618
  common: {
619
- black: n.shadow,
619
+ black: t.shadow,
620
620
  white: "#FFFFFF"
621
621
  },
622
- grey: Ie(I.palettes.neutral),
622
+ grey: Be(P.palettes.neutral),
623
623
  m3: {
624
- surfaceTint: n.surfaceTint,
625
- surfaceDim: n.surfaceDim,
626
- surfaceBright: n.surfaceBright,
627
- surface: n.surface,
628
- surfaceContainerLowest: n.surfaceContainerLowest,
629
- surfaceContainerLow: n.surfaceContainerLow,
630
- surfaceContainer: n.surfaceContainer,
631
- surfaceContainerHigh: n.surfaceContainerHigh,
632
- surfaceContainerHighest: n.surfaceContainerHighest,
633
- outline: n.outline,
634
- outlineVariant: n.outlineVariant,
635
- inverseSurface: n.inverseSurface,
636
- inverseOnSurface: n.inverseOnSurface,
637
- inversePrimary: n.inversePrimary,
638
- onBackground: n.onBackground,
639
- surfaceVariant: n.surfaceVariant,
640
- onSurfaceVariant: n.onSurfaceVariant
624
+ surfaceTint: t.surfaceTint,
625
+ surfaceDim: t.surfaceDim,
626
+ surfaceBright: t.surfaceBright,
627
+ surface: t.surface,
628
+ surfaceContainerLowest: t.surfaceContainerLowest,
629
+ surfaceContainerLow: t.surfaceContainerLow,
630
+ surfaceContainer: t.surfaceContainer,
631
+ surfaceContainerHigh: t.surfaceContainerHigh,
632
+ surfaceContainerHighest: t.surfaceContainerHighest,
633
+ outline: t.outline,
634
+ outlineVariant: t.outlineVariant,
635
+ inverseSurface: t.inverseSurface,
636
+ inverseOnSurface: t.inverseOnSurface,
637
+ inversePrimary: t.inversePrimary,
638
+ onBackground: t.onBackground,
639
+ surfaceVariant: t.surfaceVariant,
640
+ onSurfaceVariant: t.onSurfaceVariant
641
641
  }
642
642
  };
643
643
  }
644
- function z() {
645
- let e = R("light", I.schemes.light), t = R("dark", I.schemes.dark);
646
- return n({
644
+ function I() {
645
+ let e = Ve("light", P.schemes.light), t = Ve("dark", P.schemes.dark);
646
+ return r({
647
647
  cssVariables: { colorSchemeSelector: "data" },
648
648
  defaultColorScheme: "light",
649
649
  colorSchemes: {
@@ -659,15 +659,322 @@ function z() {
659
659
  });
660
660
  }
661
661
  //#endregion
662
+ //#region src/lib/i18n/createTranslator.ts
663
+ function He(e, t) {
664
+ return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
665
+ let r = t[n];
666
+ return r === void 0 ? `{${n}}` : String(r);
667
+ }) : e;
668
+ }
669
+ function L(e) {
670
+ let t = e.navigation;
671
+ return {
672
+ messages: e,
673
+ navigation: (e) => t[e] ?? e,
674
+ sidebar: (t) => e.sidebar[t],
675
+ topBar: (t) => e.topBar[t],
676
+ profileMenu: (t) => e.profileMenu[t],
677
+ notificationsMenu: (t, n) => He(e.notificationsMenu[t], n)
678
+ };
679
+ }
680
+ //#endregion
681
+ //#region src/lib/i18n/messages/en.ts
682
+ var Ue = {
683
+ navigation: {
684
+ COMMENTS: "Comments",
685
+ POLLS: "Polls",
686
+ MEDIA: "Media",
687
+ AUDIOS: "Audio",
688
+ IMAGES: "Images",
689
+ PLAYLISTS: "Playlist",
690
+ VIDEOS: "Videos",
691
+ NEWS: "News",
692
+ PLANNING: "Planning",
693
+ ANALYTICS: "Analytics",
694
+ TAGS: "Tags",
695
+ TRIVIAS: "Trivia",
696
+ OTHER: "Other",
697
+ NEWSWIRES: "News Wires",
698
+ EVENTS: "Events",
699
+ PAGES: "Pages",
700
+ FEEDS: "Feed",
701
+ PERSONS: "People",
702
+ CONTRIBUTIONS: "Contributions",
703
+ RECIPES: "Recipes",
704
+ POSTS: "Posts",
705
+ BANNERS: "Banners",
706
+ BLOCKS: "Blocks",
707
+ MENUS: "Menu",
708
+ TOPICS: "Topics",
709
+ ADVANCEDQUERYS: "Advanced search",
710
+ IMPORTS: "Imports",
711
+ NEWSLETTERS: "Newsletters",
712
+ NOTIFICATIONS: "Notifications",
713
+ PAYMENTS: "Payments",
714
+ PLANS: "Plans",
715
+ REPORTS: "Reports",
716
+ SECTIONS: "Sections",
717
+ TWITTERS: "Twitter Feeds",
718
+ USERS: "Users",
719
+ ZONES: "Zones",
720
+ IA: "IA"
721
+ },
722
+ sidebar: {
723
+ navAriaLabel: "Main navigation",
724
+ collapse: "Collapse",
725
+ expand: "Expand",
726
+ newBadge: "New"
727
+ },
728
+ topBar: {
729
+ openSidebar: "Open sidebar menu",
730
+ closeSidebar: "Close sidebar menu",
731
+ new: "New",
732
+ language: "Language",
733
+ analytics: "Analytics",
734
+ help: "Help"
735
+ },
736
+ profileMenu: {
737
+ ariaLabel: "My profile",
738
+ myProfile: "My Profile",
739
+ webmasterView: "Webmaster View",
740
+ signOff: "Sign off"
741
+ },
742
+ notificationsMenu: {
743
+ title: "Notifications",
744
+ unreadCount: "{count} unread",
745
+ empty: "No notifications",
746
+ ariaLabel: "Notifications"
747
+ }
748
+ }, We = {
749
+ navigation: {
750
+ COMMENTS: "Comentarios",
751
+ POLLS: "Encuestas",
752
+ MEDIA: "Media",
753
+ AUDIOS: "Audio",
754
+ IMAGES: "Imágenes",
755
+ PLAYLISTS: "Playlist",
756
+ VIDEOS: "Videos",
757
+ NEWS: "Noticias",
758
+ PLANNING: "Planificación",
759
+ ANALYTICS: "Analíticas",
760
+ TAGS: "Tags",
761
+ TRIVIAS: "Trivias",
762
+ OTHER: "Otros",
763
+ NEWSWIRES: "News Wires",
764
+ EVENTS: "Eventos",
765
+ PAGES: "Páginas",
766
+ FEEDS: "Feed",
767
+ PERSONS: "Personas",
768
+ CONTRIBUTIONS: "Contribuciones",
769
+ RECIPES: "Recetas",
770
+ POSTS: "Posts",
771
+ BANNERS: "Banners",
772
+ BLOCKS: "Bloques",
773
+ MENUS: "Menú",
774
+ TOPICS: "Temas",
775
+ ADVANCEDQUERYS: "Búsqueda avanzada",
776
+ IMPORTS: "Importaciones",
777
+ NEWSLETTERS: "Newsletters",
778
+ NOTIFICATIONS: "Notificaciones",
779
+ PAYMENTS: "Pagos",
780
+ PLANS: "Planes",
781
+ REPORTS: "Reportes",
782
+ SECTIONS: "Secciones",
783
+ TWITTERS: "Twitter Feeds",
784
+ USERS: "Usuarios",
785
+ ZONES: "Zonas",
786
+ IA: "IA"
787
+ },
788
+ sidebar: {
789
+ navAriaLabel: "Principal",
790
+ collapse: "Contraer",
791
+ expand: "Expandir",
792
+ newBadge: "Nuevo"
793
+ },
794
+ topBar: {
795
+ openSidebar: "Abrir menú lateral",
796
+ closeSidebar: "Cerrar menú lateral",
797
+ new: "Nuevo",
798
+ language: "Idioma",
799
+ analytics: "Analíticas",
800
+ help: "Ayuda"
801
+ },
802
+ profileMenu: {
803
+ ariaLabel: "Mi perfil",
804
+ myProfile: "Mi perfil",
805
+ webmasterView: "Vista Webmaster",
806
+ signOff: "Cerrar sesión"
807
+ },
808
+ notificationsMenu: {
809
+ title: "Notificaciones",
810
+ unreadCount: "{count} sin leer",
811
+ empty: "No hay notificaciones",
812
+ ariaLabel: "Notificaciones"
813
+ }
814
+ }, Ge = {
815
+ navigation: {
816
+ COMMENTS: "Comentários",
817
+ POLLS: "Enquetes",
818
+ MEDIA: "Mídia",
819
+ AUDIOS: "Áudio",
820
+ IMAGES: "Imagens",
821
+ PLAYLISTS: "Playlist",
822
+ VIDEOS: "Vídeos",
823
+ NEWS: "Notícias",
824
+ PLANNING: "Planejamento",
825
+ ANALYTICS: "Análises",
826
+ TAGS: "Tags",
827
+ TRIVIAS: "Trivias",
828
+ OTHER: "Outros",
829
+ NEWSWIRES: "News Wires",
830
+ EVENTS: "Eventos",
831
+ PAGES: "Páginas",
832
+ FEEDS: "Feed",
833
+ PERSONS: "Pessoas",
834
+ CONTRIBUTIONS: "Contribuições",
835
+ RECIPES: "Receitas",
836
+ POSTS: "Posts",
837
+ BANNERS: "Banners",
838
+ BLOCKS: "Blocos",
839
+ MENUS: "Menu",
840
+ TOPICS: "Tópicos",
841
+ ADVANCEDQUERYS: "Busca avançada",
842
+ IMPORTS: "Importações",
843
+ NEWSLETTERS: "Newsletters",
844
+ NOTIFICATIONS: "Notificações",
845
+ PAYMENTS: "Pagamentos",
846
+ PLANS: "Planos",
847
+ REPORTS: "Relatórios",
848
+ SECTIONS: "Seções",
849
+ TWITTERS: "Twitter Feeds",
850
+ USERS: "Usuários",
851
+ ZONES: "Zonas",
852
+ IA: "IA"
853
+ },
854
+ sidebar: {
855
+ navAriaLabel: "Principal",
856
+ collapse: "Recolher",
857
+ expand: "Expandir",
858
+ newBadge: "Novo"
859
+ },
860
+ topBar: {
861
+ openSidebar: "Abrir menu lateral",
862
+ closeSidebar: "Fechar menu lateral",
863
+ new: "Novo",
864
+ language: "Idioma",
865
+ analytics: "Análises",
866
+ help: "Ajuda"
867
+ },
868
+ profileMenu: {
869
+ ariaLabel: "Meu perfil",
870
+ myProfile: "Meu perfil",
871
+ webmasterView: "Visão Webmaster",
872
+ signOff: "Sair"
873
+ },
874
+ notificationsMenu: {
875
+ title: "Notificações",
876
+ unreadCount: "{count} não lidas",
877
+ empty: "Nenhuma notificação",
878
+ ariaLabel: "Notificações"
879
+ }
880
+ }, R = {
881
+ en: Ue,
882
+ es: We,
883
+ pt: Ge
884
+ };
885
+ function z(e, t) {
886
+ return t ? {
887
+ ...e,
888
+ ...t
889
+ } : e;
890
+ }
891
+ function B(e, t, n) {
892
+ let r = t[e], i = t.en;
893
+ return {
894
+ navigation: z({
895
+ ...i.navigation,
896
+ ...r.navigation
897
+ }, n?.navigation),
898
+ sidebar: z({
899
+ ...i.sidebar,
900
+ ...r.sidebar
901
+ }, n?.sidebar),
902
+ topBar: z({
903
+ ...i.topBar,
904
+ ...r.topBar
905
+ }, n?.topBar),
906
+ profileMenu: z({
907
+ ...i.profileMenu,
908
+ ...r.profileMenu
909
+ }, n?.profileMenu),
910
+ notificationsMenu: z({
911
+ ...i.notificationsMenu,
912
+ ...r.notificationsMenu
913
+ }, n?.notificationsMenu)
914
+ };
915
+ }
916
+ //#endregion
917
+ //#region src/lib/i18n/types.ts
918
+ var V = [
919
+ "es",
920
+ "en",
921
+ "pt"
922
+ ], Ke = "en";
923
+ //#endregion
924
+ //#region src/lib/i18n/normalizeLocale.ts
925
+ function qe(e) {
926
+ if (!e) return "en";
927
+ let t = e.trim().toLowerCase().replace("_", "-"), n = t.split("-")[0];
928
+ return V.includes(t) ? t : V.includes(n) ? n : "en";
929
+ }
930
+ //#endregion
931
+ //#region src/lib/i18n/CmsI18nProvider.tsx
932
+ var Je = i(null);
933
+ function Ye({ locale: e, language: t, messages: n, catalog: r = R, children: i }) {
934
+ let a = qe(e ?? t), o = s(() => ({
935
+ locale: a,
936
+ t: L(B(a, r, n))
937
+ }), [
938
+ r,
939
+ n,
940
+ a
941
+ ]);
942
+ return /* @__PURE__ */ u(Je.Provider, {
943
+ value: o,
944
+ children: i
945
+ });
946
+ }
947
+ //#endregion
948
+ //#region src/lib/i18n/useCmsTranslation.ts
949
+ function H(e) {
950
+ let t = o(Je), n = e?.locale ?? t?.locale ?? "en", r = e?.catalog ?? R, i = e?.messages;
951
+ return {
952
+ locale: n,
953
+ t: s(() => !i && t && t.locale === n ? t.t : L(B(n, r, i)), [
954
+ r,
955
+ t,
956
+ n,
957
+ i
958
+ ])
959
+ };
960
+ }
961
+ function Xe(e) {
962
+ switch (e) {
963
+ case "pt": return "pt-BR";
964
+ case "en": return "en-US";
965
+ default: return "es-MX";
966
+ }
967
+ }
968
+ //#endregion
662
969
  //#region src/lib/components/link.tsx
663
- var B = r(function({ href: e, children: t, ...n }, r) {
664
- return /* @__PURE__ */ s("a", {
970
+ var U = a(function({ href: e, children: t, ...n }, r) {
971
+ return /* @__PURE__ */ u("a", {
665
972
  href: e,
666
973
  ref: r,
667
974
  ...n,
668
975
  children: t
669
976
  });
670
- }), V = "#D8E2FF", H = "#E3E2E6", U = "#414752", Le = 24, Re = 24, W = {
977
+ }), W = "#D8E2FF", G = "#E3E2E6", K = "#414752", Ze = 24, Qe = 24, q = {
671
978
  sxRoot: (e) => {
672
979
  let t = e ? 195 : 96;
673
980
  return {
@@ -677,12 +984,12 @@ var B = r(function({ href: e, children: t, ...n }, r) {
677
984
  flexShrink: 0,
678
985
  alignSelf: "stretch",
679
986
  minHeight: 0,
680
- height: "100%",
987
+ maxHeight: "100%",
681
988
  display: "flex",
682
989
  flexDirection: "column",
683
990
  overflow: "hidden",
684
991
  bgcolor: "m3.surfaceContainer",
685
- paddingTop: e ? "2rem" : "1.5rem",
992
+ paddingTop: e ? "1rem" : "1.5rem",
686
993
  boxSizing: "border-box",
687
994
  transition: "width 0.2s ease, min-width 0.2s ease, max-width 0.2s ease"
688
995
  };
@@ -741,10 +1048,10 @@ var B = r(function({ href: e, children: t, ...n }, r) {
741
1048
  px: 0,
742
1049
  py: 0,
743
1050
  borderRadius: "100px",
744
- color: U,
1051
+ color: K,
745
1052
  textDecoration: "none",
746
- bgcolor: e ? V : "transparent",
747
- "&:hover": { bgcolor: e ? V : "action.hover" }
1053
+ bgcolor: e ? W : "transparent",
1054
+ "&:hover": { bgcolor: e ? W : "action.hover" }
748
1055
  } : {
749
1056
  position: "relative",
750
1057
  display: "flex",
@@ -762,13 +1069,13 @@ var B = r(function({ href: e, children: t, ...n }, r) {
762
1069
  ml: "-1rem",
763
1070
  mr: 0,
764
1071
  borderRadius: t ? "100px" : "0 100px 100px 0",
765
- color: U,
1072
+ color: K,
766
1073
  textDecoration: "none",
767
- bgcolor: e ? V : "transparent",
768
- "&:hover": { bgcolor: e ? V : H }
1074
+ bgcolor: e ? W : "transparent",
1075
+ "&:hover": { bgcolor: e ? W : G }
769
1076
  },
770
1077
  sxItemIcon: (e, t = !1) => ({
771
- fontSize: t ? Re : Le,
1078
+ fontSize: t ? Qe : Ze,
772
1079
  color: e ? "secondary.dark" : "m3.onSurfaceVariant",
773
1080
  width: t ? 48 : "auto",
774
1081
  flexShrink: 0
@@ -779,7 +1086,7 @@ var B = r(function({ href: e, children: t, ...n }, r) {
779
1086
  fontSize: 14,
780
1087
  fontWeight: e ? 600 : 400,
781
1088
  lineHeight: 1.43,
782
- color: U,
1089
+ color: K,
783
1090
  overflow: "hidden",
784
1091
  textOverflow: "ellipsis",
785
1092
  whiteSpace: "nowrap"
@@ -807,12 +1114,12 @@ var B = r(function({ href: e, children: t, ...n }, r) {
807
1114
  px: 2,
808
1115
  py: 1,
809
1116
  gap: 1.25,
810
- color: U,
811
- bgcolor: e ? V : "transparent",
812
- "&:hover": { bgcolor: e ? V : H },
1117
+ color: K,
1118
+ bgcolor: e ? W : "transparent",
1119
+ "&:hover": { bgcolor: e ? W : G },
813
1120
  "&.Mui-selected": {
814
- bgcolor: V,
815
- "&:hover": { bgcolor: V }
1121
+ bgcolor: W,
1122
+ "&:hover": { bgcolor: W }
816
1123
  }
817
1124
  }),
818
1125
  sxChildrenMenuListItemIcon: {
@@ -836,295 +1143,267 @@ var B = r(function({ href: e, children: t, ...n }, r) {
836
1143
  alignItems: "center",
837
1144
  justifyContent: "center"
838
1145
  })
839
- }, G = [
1146
+ }, $e = [
840
1147
  {
841
- label: "Comments",
842
1148
  href: "/comentarios",
843
- icon: E,
1149
+ icon: k,
844
1150
  module: "COMMENTS"
845
1151
  },
846
1152
  {
847
- label: "Polls",
848
1153
  href: "/encuestas",
849
- icon: le,
1154
+ icon: fe,
850
1155
  module: "POLLS"
851
1156
  },
852
1157
  {
853
- label: "Media",
854
1158
  href: "/media",
855
- icon: se,
1159
+ icon: ue,
856
1160
  defaultOpen: !0,
857
1161
  module: "MEDIA",
858
1162
  children: [
859
1163
  {
860
- label: "Audio",
861
1164
  href: "/media/audios",
862
- icon: C,
1165
+ icon: E,
863
1166
  module: "AUDIOS"
864
1167
  },
865
1168
  {
866
- label: "Images",
867
1169
  href: "/media/imagenes",
868
- icon: M,
1170
+ icon: N,
869
1171
  module: "IMAGES"
870
1172
  },
871
1173
  {
872
- label: "Playlist",
873
1174
  href: "/media/playlist",
874
- icon: ue,
1175
+ icon: pe,
875
1176
  module: "PLAYLISTS"
876
1177
  },
877
1178
  {
878
- label: "Videos",
879
1179
  href: "/media/videos",
880
- icon: ce,
1180
+ icon: de,
881
1181
  module: "VIDEOS"
882
1182
  }
883
1183
  ]
884
1184
  },
885
1185
  {
886
- label: "News",
887
1186
  href: "/noticias",
888
- icon: x,
1187
+ icon: w,
889
1188
  module: "NEWS"
890
1189
  },
891
1190
  {
892
- label: "Planning",
893
1191
  href: "/planificacion",
894
- icon: S,
1192
+ icon: T,
895
1193
  module: "PLANNING"
896
1194
  },
897
1195
  {
898
- label: "Analytics",
899
1196
  href: "/analiticas",
900
- icon: w,
1197
+ icon: D,
901
1198
  module: "ANALYTICS"
902
1199
  },
903
1200
  {
904
- label: "Tags",
905
1201
  href: "/tags",
906
- icon: ee,
1202
+ icon: re,
907
1203
  module: "TAGS"
908
1204
  },
909
1205
  {
910
- label: "Trivia",
911
1206
  href: "/trivias",
912
- icon: de,
1207
+ icon: me,
913
1208
  module: "TRIVIAS"
914
1209
  },
915
1210
  {
916
- label: "Other",
917
1211
  href: "/otros",
918
- icon: re,
1212
+ icon: oe,
919
1213
  module: "OTHER",
920
1214
  children: [
921
1215
  {
922
- label: "News Wires",
923
1216
  href: "/otros/news-wires",
924
- icon: b,
1217
+ icon: C,
925
1218
  module: "NEWSWIRES"
926
1219
  },
927
1220
  {
928
- label: "Events",
929
1221
  href: "/otros/eventos",
930
- icon: O,
1222
+ icon: te,
931
1223
  module: "EVENTS"
932
1224
  },
933
1225
  {
934
- label: "Pages",
935
1226
  href: "/otros/paginas",
936
- icon: k,
1227
+ icon: A,
937
1228
  module: "PAGES"
938
1229
  },
939
1230
  {
940
- label: "Feed",
941
1231
  href: "/otros/feed",
942
- icon: A,
1232
+ icon: j,
943
1233
  module: "FEEDS"
944
1234
  },
945
1235
  {
946
- label: "People",
947
1236
  href: "/otros/personas",
948
- icon: oe,
1237
+ icon: le,
949
1238
  module: "PERSONS"
950
1239
  },
951
1240
  {
952
- label: "Contributions",
953
1241
  href: "/otros/contribuciones",
954
- icon: D,
1242
+ icon: ee,
955
1243
  module: "CONTRIBUTIONS"
956
1244
  },
957
1245
  {
958
- label: "Recipes",
959
1246
  href: "/otros/recetas",
960
- icon: fe,
1247
+ icon: he,
961
1248
  module: "RECIPES"
962
1249
  },
963
1250
  {
964
- label: "Posts",
965
1251
  href: "/otros/posts",
966
- icon: x,
1252
+ icon: w,
967
1253
  module: "POSTS"
968
1254
  }
969
1255
  ]
970
1256
  },
971
1257
  {
972
- label: "Banners",
973
1258
  href: "/banners",
974
- icon: ge,
1259
+ icon: ye,
975
1260
  module: "BANNERS"
976
1261
  },
977
1262
  {
978
- label: "Blocks",
979
1263
  href: "/bloques",
980
- icon: j,
1264
+ icon: M,
981
1265
  module: "BLOCKS"
982
1266
  },
983
1267
  {
984
- label: "Menu",
985
1268
  href: "/menu",
986
- icon: P,
1269
+ icon: be,
987
1270
  module: "MENUS"
988
1271
  },
989
1272
  {
990
- label: "Topics",
991
1273
  href: "/temas",
992
- icon: T,
1274
+ icon: O,
993
1275
  module: "TOPICS"
994
1276
  },
995
1277
  {
996
- label: "Advanced search",
997
1278
  href: "/busqueda",
998
- icon: pe,
1279
+ icon: ge,
999
1280
  module: "ADVANCEDQUERYS"
1000
1281
  },
1001
1282
  {
1002
- label: "Imports",
1003
1283
  href: "/importaciones",
1004
- icon: N,
1284
+ icon: ne,
1005
1285
  module: "IMPORTS"
1006
1286
  },
1007
1287
  {
1008
- label: "Newsletters",
1009
1288
  href: "/newsletters",
1010
- icon: ne,
1289
+ icon: ae,
1011
1290
  module: "NEWSLETTERS"
1012
1291
  },
1013
1292
  {
1014
- label: "Notifications",
1015
1293
  href: "/notificaciones",
1016
- icon: ie,
1294
+ icon: se,
1017
1295
  module: "NOTIFICATIONS"
1018
1296
  },
1019
1297
  {
1020
- label: "Payments",
1021
1298
  href: "/pagos",
1022
- icon: me,
1299
+ icon: _e,
1023
1300
  module: "PAYMENTS"
1024
1301
  },
1025
1302
  {
1026
- label: "Plans",
1027
1303
  href: "/planes",
1028
- icon: he,
1304
+ icon: ve,
1029
1305
  module: "PLANS"
1030
1306
  },
1031
1307
  {
1032
- label: "Reports",
1033
1308
  href: "/reportes",
1034
- icon: w,
1309
+ icon: D,
1035
1310
  module: "REPORTS"
1036
1311
  },
1037
1312
  {
1038
- label: "Sections",
1039
1313
  href: "/secciones",
1040
- icon: P,
1314
+ icon: be,
1041
1315
  module: "SECTIONS"
1042
1316
  },
1043
1317
  {
1044
- label: "Twitter Feeds",
1045
1318
  href: "/twitter-feeds",
1046
- icon: E,
1319
+ icon: k,
1047
1320
  module: "TWITTERS"
1048
1321
  },
1049
1322
  {
1050
- label: "Users",
1051
1323
  href: "/usuarios",
1052
- icon: ae,
1324
+ icon: ce,
1053
1325
  module: "USERS"
1054
1326
  },
1055
1327
  {
1056
- label: "Zones",
1057
1328
  href: "/zonas",
1058
- icon: te,
1329
+ icon: ie,
1059
1330
  module: "ZONES"
1060
1331
  },
1061
1332
  {
1062
- label: "IA",
1063
1333
  href: "/ia",
1064
- icon: k,
1334
+ icon: A,
1065
1335
  module: "IA"
1066
1336
  }
1067
1337
  ];
1068
1338
  //#endregion
1069
1339
  //#region src/lib/components/sidebar/Sidebar.tsx
1070
- function K(e, t) {
1340
+ function et(e, t) {
1341
+ return e.label ?? t.navigation(e.module);
1342
+ }
1343
+ function J(e, t) {
1071
1344
  return !!(e === t || t !== "/" && e.startsWith(`${t}/`));
1072
1345
  }
1073
- function ze(e, t) {
1074
- return K(e, t.href) ? !0 : t.children?.some((t) => K(e, t.href)) ?? !1;
1346
+ function tt(e, t) {
1347
+ return J(e, t.href) ? !0 : t.children?.some((t) => J(e, t.href)) ?? !1;
1348
+ }
1349
+ function nt(e, t) {
1350
+ return e.find((e) => e.module === t);
1351
+ }
1352
+ function rt(e, t) {
1353
+ return e.children?.filter((e) => nt(t, e.module)) ?? [];
1075
1354
  }
1076
- function Be(e, t, n) {
1077
- return e ? n : /* @__PURE__ */ s(v, {
1355
+ function it(e, t, n) {
1356
+ return e ? n : /* @__PURE__ */ u(x, {
1078
1357
  title: t,
1079
1358
  placement: "right",
1080
1359
  arrow: !0,
1081
- children: /* @__PURE__ */ s(d, {
1360
+ children: /* @__PURE__ */ u(f, {
1082
1361
  component: "span",
1083
- sx: W.sxTooltipWrap(e),
1362
+ sx: q.sxTooltipWrap(e),
1084
1363
  children: n
1085
1364
  })
1086
1365
  });
1087
1366
  }
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, {
1367
+ function at({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand: i, LinkComponent: a, pathname: o, permissions: s, t: x }) {
1368
+ let C = et(e, x), w = nt(s, e.module), T = rt(e, s), E = !n, D = J(o, e.href), O = tt(o, e), k = T.length > 0, ee = e.icon, te = t ? D : D || O, [A, j] = c(null), M = !!A;
1369
+ if (!w && !k) return null;
1370
+ let N = /* @__PURE__ */ d(l, { children: [
1371
+ k && !E ? /* @__PURE__ */ u(g, {
1093
1372
  size: "small",
1094
- "aria-label": r ? "Contraer" : "Expandir",
1373
+ "aria-label": r ? x.sidebar("collapse") : x.sidebar("expand"),
1095
1374
  onClick: (e) => {
1096
1375
  e.preventDefault(), e.stopPropagation(), i?.();
1097
1376
  },
1098
- sx: W.sxExpandButton,
1099
- children: s(r ? u : l, { sx: { fontSize: 20 } })
1377
+ sx: q.sxExpandButton,
1378
+ children: u(r ? m : p, { sx: { fontSize: 20 } })
1100
1379
  }) : null,
1101
- /* @__PURE__ */ s(D, { sx: W.sxItemIcon(O, C) }),
1102
- C ? null : /* @__PURE__ */ s(y, {
1380
+ /* @__PURE__ */ u(ee, { sx: q.sxItemIcon(te, E) }),
1381
+ E ? null : /* @__PURE__ */ u(S, {
1103
1382
  component: "span",
1104
- sx: W.sxItemLabel(w),
1105
- children: e.label
1383
+ sx: q.sxItemLabel(D),
1384
+ children: C
1106
1385
  }),
1107
- S.isNew && /* @__PURE__ */ s(d, {
1386
+ w?.isnew && /* @__PURE__ */ u(f, {
1108
1387
  component: "span",
1109
- sx: W.sxBetaChip(n),
1110
- children: S.isNew ? "New" : ""
1388
+ sx: q.sxBetaChip(n),
1389
+ children: x.sidebar("newBadge")
1111
1390
  })
1112
1391
  ] });
1113
- if (E && !C) return /* @__PURE__ */ c(d, {
1114
- sx: W.sxNavGroup(n),
1115
- children: [/* @__PURE__ */ s(d, {
1392
+ return k && !E ? /* @__PURE__ */ d(f, {
1393
+ sx: q.sxNavGroup(n),
1394
+ children: [/* @__PURE__ */ u(f, {
1116
1395
  component: "div",
1117
1396
  onClick: i,
1118
1397
  sx: {
1119
- ...W.sxItem(T, t, !0, !1),
1398
+ ...q.sxItem(O, t, !0, !1),
1120
1399
  cursor: "pointer"
1121
1400
  },
1122
- children: M
1123
- }), /* @__PURE__ */ s(f, {
1401
+ children: N
1402
+ }), /* @__PURE__ */ u(h, {
1124
1403
  in: r,
1125
1404
  timeout: "auto",
1126
1405
  unmountOnExit: !0,
1127
- children: /* @__PURE__ */ s(d, {
1406
+ children: /* @__PURE__ */ u(f, {
1128
1407
  sx: {
1129
1408
  display: "flex",
1130
1409
  flexDirection: "column",
@@ -1134,38 +1413,38 @@ function Ve({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
1134
1413
  maxWidth: "100%",
1135
1414
  overflow: "hidden"
1136
1415
  },
1137
- children: e.children.map((e) => /* @__PURE__ */ s(Ve, {
1416
+ children: T.map((e) => /* @__PURE__ */ u(at, {
1138
1417
  item: e,
1139
1418
  nested: !0,
1140
1419
  open: n,
1141
- LinkComponent: v,
1142
- pathname: b,
1143
- permissions: x
1420
+ LinkComponent: a,
1421
+ pathname: o,
1422
+ permissions: s,
1423
+ t: x
1144
1424
  }, e.href))
1145
1425
  })
1146
1426
  })]
1147
- });
1148
- if (E && C) return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(d, {
1427
+ }) : k && E ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(f, {
1149
1428
  component: "button",
1150
1429
  type: "button",
1151
- "aria-label": e.label,
1152
- "aria-controls": j ? `sidebar-children-${e.href}` : void 0,
1430
+ "aria-label": C,
1431
+ "aria-controls": M ? `sidebar-children-${e.href}` : void 0,
1153
1432
  "aria-haspopup": "true",
1154
- "aria-expanded": j ? "true" : void 0,
1155
- onClick: (e) => A(e.currentTarget),
1156
- onMouseEnter: (e) => A(e.currentTarget),
1433
+ "aria-expanded": M ? "true" : void 0,
1434
+ onClick: (e) => j(e.currentTarget),
1435
+ onMouseEnter: (e) => j(e.currentTarget),
1157
1436
  sx: {
1158
- ...W.sxItem(T, t, E, !0),
1437
+ ...q.sxItem(O, t, k, !0),
1159
1438
  border: 0,
1160
1439
  background: "transparent",
1161
1440
  cursor: "pointer"
1162
1441
  },
1163
- children: M
1164
- }), /* @__PURE__ */ s(g, {
1442
+ children: N
1443
+ }), /* @__PURE__ */ u(y, {
1165
1444
  id: `sidebar-children-${e.href}`,
1166
- anchorEl: k,
1167
- open: j,
1168
- onClose: () => A(null),
1445
+ anchorEl: A,
1446
+ open: M,
1447
+ onClose: () => j(null),
1169
1448
  anchorOrigin: {
1170
1449
  vertical: "center",
1171
1450
  horizontal: "right"
@@ -1175,24 +1454,24 @@ function Ve({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
1175
1454
  horizontal: "left"
1176
1455
  },
1177
1456
  slotProps: {
1178
- paper: { sx: W.sxChildrenMenuPaper },
1457
+ paper: { sx: q.sxChildrenMenuPaper },
1179
1458
  list: {
1180
- onMouseLeave: () => A(null),
1459
+ onMouseLeave: () => j(null),
1181
1460
  sx: { py: 1 }
1182
1461
  }
1183
1462
  },
1184
- children: e.children.map((e) => {
1463
+ children: T.map((e) => {
1185
1464
  let t = e.icon;
1186
- return /* @__PURE__ */ c(_, {
1187
- component: v,
1465
+ return /* @__PURE__ */ d(b, {
1466
+ component: a,
1188
1467
  href: e.href,
1189
- onClick: () => A(null),
1190
- sx: W.sxChildrenMenuItem(K(b, e.href)),
1191
- children: [/* @__PURE__ */ s(m, {
1192
- sx: W.sxChildrenMenuListItemIcon,
1193
- children: /* @__PURE__ */ s(t, {})
1194
- }), /* @__PURE__ */ s(h, {
1195
- primary: e.label,
1468
+ onClick: () => j(null),
1469
+ sx: q.sxChildrenMenuItem(J(o, e.href)),
1470
+ children: [/* @__PURE__ */ u(_, {
1471
+ sx: q.sxChildrenMenuListItemIcon,
1472
+ children: /* @__PURE__ */ u(t, {})
1473
+ }), /* @__PURE__ */ u(v, {
1474
+ primary: et(e, x),
1196
1475
  slotProps: { primary: { sx: {
1197
1476
  fontSize: 14,
1198
1477
  fontWeight: 400,
@@ -1201,86 +1480,87 @@ function Ve({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
1201
1480
  })]
1202
1481
  }, e.href);
1203
1482
  })
1204
- })] });
1205
- let N = /* @__PURE__ */ s(d, {
1206
- component: v,
1483
+ })] }) : it(n, C, /* @__PURE__ */ u(f, {
1484
+ component: a,
1207
1485
  href: e.href,
1208
- sx: W.sxItem(C ? T : w, t, E, C),
1209
- children: M
1210
- });
1211
- return Be(n, e.label, N);
1486
+ sx: q.sxItem(E ? O : D, t, k, E),
1487
+ children: N
1488
+ }));
1212
1489
  }
1213
- function He({ items: e, open: t, LinkComponent: n, pathname: r, permissions: c }) {
1214
- let [l, u] = a(i(() => {
1490
+ function ot({ items: e, open: t, LinkComponent: n, pathname: r, permissions: i, t: a }) {
1491
+ let [o, d] = c(s(() => {
1215
1492
  let t = {};
1216
- for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => K(r, e.href)));
1493
+ for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => J(r, e.href)));
1217
1494
  return t;
1218
- }, [e, r])), d = (e) => {
1219
- u((t) => ({
1495
+ }, [e, r])), f = (e) => {
1496
+ d((t) => ({
1220
1497
  ...t,
1221
1498
  [e]: !t[e]
1222
1499
  }));
1223
1500
  };
1224
- return /* @__PURE__ */ s(o, { children: e.map((e) => /* @__PURE__ */ s(Ve, {
1501
+ return /* @__PURE__ */ u(l, { children: e.map((e) => /* @__PURE__ */ u(at, {
1225
1502
  item: e,
1226
1503
  open: t,
1227
- permissions: c,
1228
- expanded: l[e.href],
1229
- onToggleExpand: e.children ? () => d(e.href) : void 0,
1504
+ permissions: i,
1505
+ expanded: o[e.href],
1506
+ onToggleExpand: rt(e, i).length > 0 ? () => f(e.href) : void 0,
1230
1507
  LinkComponent: n,
1231
- pathname: r
1508
+ pathname: r,
1509
+ t: a
1232
1510
  }, e.href)) });
1233
1511
  }
1234
- function Ue({ open: e, pathname: t, permissions: n, LinkComponent: r = B }) {
1235
- return /* @__PURE__ */ s(d, {
1512
+ function st({ open: e, pathname: t, permissions: n, LinkComponent: r = U }) {
1513
+ let { t: i } = H();
1514
+ return /* @__PURE__ */ u(f, {
1236
1515
  component: "aside",
1237
- sx: W.sxRoot(e),
1238
- children: /* @__PURE__ */ s(d, {
1239
- sx: W.sxNavScroll,
1240
- children: /* @__PURE__ */ s(d, {
1516
+ sx: q.sxRoot(e),
1517
+ children: /* @__PURE__ */ u(f, {
1518
+ sx: q.sxNavScroll,
1519
+ children: /* @__PURE__ */ u(f, {
1241
1520
  component: "nav",
1242
- "aria-label": "Principal",
1243
- sx: W.sxNav(e),
1244
- children: G.map((i, a) => Array.isArray(i) && n.some((e) => e.module === i.module) ? /* @__PURE__ */ s(He, {
1521
+ "aria-label": i.sidebar("navAriaLabel"),
1522
+ sx: q.sxNav(e),
1523
+ children: /* @__PURE__ */ u(ot, {
1245
1524
  permissions: n,
1246
- items: i,
1525
+ items: $e,
1247
1526
  open: e,
1248
1527
  LinkComponent: r,
1249
- pathname: t
1250
- }, `section-${a}`) : null)
1528
+ pathname: t,
1529
+ t: i
1530
+ })
1251
1531
  })
1252
1532
  })
1253
1533
  });
1254
1534
  }
1255
1535
  //#endregion
1256
1536
  //#region src/lib/utils/site-selector.ts
1257
- var We = "#ECEDF6", q = "#D8E2FF", Ge = "#FFFFFF", Ke = "bluestack-es";
1258
- function J(e) {
1537
+ var ct = "#ECEDF6", Y = "#D8E2FF", lt = "#FFFFFF", ut = "bluestack-es";
1538
+ function X(e) {
1259
1539
  return e.flatMap((e) => e.publications);
1260
1540
  }
1261
- function qe(e, t) {
1262
- return J(e).find((e) => String(e.id) === t);
1541
+ function dt(e, t) {
1542
+ return X(e).find((e) => String(e.id) === t);
1263
1543
  }
1264
- function Je(e, t) {
1265
- return J(e).find((e) => String(e.id) === t)?.description ?? "Seleccionar publicación";
1544
+ function ft(e, t) {
1545
+ return X(e).find((e) => String(e.id) === t)?.description ?? "Seleccionar publicación";
1266
1546
  }
1267
- function Ye(e) {
1268
- let t = J(e)[0];
1547
+ function pt(e) {
1548
+ let t = X(e)[0];
1269
1549
  return t ? String(t.id) : "1";
1270
1550
  }
1271
- function Xe(e) {
1551
+ function mt(e) {
1272
1552
  let t = Number(e);
1273
1553
  return Number.isFinite(t) && t > 0 ? t : 1;
1274
1554
  }
1275
1555
  //#endregion
1276
1556
  //#region src/lib/components/site-selector-menu/SiteSelectorMenu.styles.ts
1277
- var Y = {
1557
+ var Z = {
1278
1558
  sxTriggerButton: (e) => ({
1279
1559
  height: 34,
1280
1560
  borderRadius: "8px",
1281
1561
  borderColor: e ? "transparent" : "m3.outline",
1282
1562
  color: "black",
1283
- bgcolor: e ? q : "transparent",
1563
+ bgcolor: e ? Y : "transparent",
1284
1564
  textTransform: "none",
1285
1565
  fontSize: "12px",
1286
1566
  fontWeight: 500,
@@ -1291,13 +1571,13 @@ var Y = {
1291
1571
  flexShrink: 0,
1292
1572
  "&:hover": {
1293
1573
  borderColor: "m3.outline",
1294
- bgcolor: e ? q : "action.hover"
1574
+ bgcolor: e ? Y : "action.hover"
1295
1575
  }
1296
1576
  }),
1297
1577
  sxTriggerIcon: { fontSize: 20 },
1298
1578
  sxMenuPaper: {
1299
1579
  mt: 1,
1300
- bgcolor: We,
1580
+ bgcolor: ct,
1301
1581
  borderRadius: 2,
1302
1582
  marginTop: 0,
1303
1583
  boxShadow: "0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)",
@@ -1333,17 +1613,17 @@ var Y = {
1333
1613
  padding: "1rem",
1334
1614
  margin: ".65rem",
1335
1615
  borderRadius: "28px",
1336
- bgcolor: e ? q : Ge,
1616
+ bgcolor: e ? Y : lt,
1337
1617
  color: "m3.onSurfaceVariant",
1338
1618
  display: "flex",
1339
1619
  alignItems: "center",
1340
1620
  justifyContent: "space-between",
1341
1621
  gap: 1.5,
1342
1622
  whiteSpace: "nowrap",
1343
- "&:hover": { bgcolor: q },
1623
+ "&:hover": { bgcolor: Y },
1344
1624
  "&.Mui-selected": {
1345
- bgcolor: q,
1346
- "&:hover": { bgcolor: q }
1625
+ bgcolor: Y,
1626
+ "&:hover": { bgcolor: Y }
1347
1627
  }
1348
1628
  }),
1349
1629
  sxMenuItemLabel: (e) => ({
@@ -1370,22 +1650,22 @@ var Y = {
1370
1650
  };
1371
1651
  //#endregion
1372
1652
  //#region src/lib/components/site-selector-menu/SiteSelectorMenu.tsx
1373
- function Ze({ publication: e, selected: t, href: n, imageUrl: r }) {
1374
- return /* @__PURE__ */ s("a", {
1653
+ function ht({ publication: e, selected: t, href: n, imageUrl: r }) {
1654
+ return /* @__PURE__ */ u("a", {
1375
1655
  href: n,
1376
1656
  style: {
1377
1657
  textDecoration: "none",
1378
1658
  color: "inherit"
1379
1659
  },
1380
- children: /* @__PURE__ */ c(_, {
1660
+ children: /* @__PURE__ */ d(b, {
1381
1661
  selected: t,
1382
- sx: Y.sxMenuItem(t),
1383
- children: [/* @__PURE__ */ s(y, {
1384
- sx: Y.sxMenuItemLabel(t),
1662
+ sx: Z.sxMenuItem(t),
1663
+ children: [/* @__PURE__ */ u(S, {
1664
+ sx: Z.sxMenuItemLabel(t),
1385
1665
  children: e.description
1386
- }), r ? /* @__PURE__ */ s(d, {
1387
- sx: Y.sxMenuItemLogoWrap,
1388
- children: /* @__PURE__ */ s("img", {
1666
+ }), r ? /* @__PURE__ */ u(f, {
1667
+ sx: Z.sxMenuItemLogoWrap,
1668
+ children: /* @__PURE__ */ u("img", {
1389
1669
  src: r,
1390
1670
  alt: e.description,
1391
1671
  width: 90,
@@ -1395,26 +1675,26 @@ function Ze({ publication: e, selected: t, href: n, imageUrl: r }) {
1395
1675
  })
1396
1676
  });
1397
1677
  }
1398
- function Qe({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolvePublicationImageUrl: r }) {
1399
- let [i, l] = a(null), u = !!i, f = (e) => {
1400
- l(e.currentTarget);
1678
+ function gt({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolvePublicationImageUrl: r }) {
1679
+ let [i, a] = c(null), o = !!i, s = (e) => {
1680
+ a(e.currentTarget);
1401
1681
  }, p = () => {
1402
- l(null);
1682
+ a(null);
1403
1683
  }, m = t ?? "";
1404
- return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(Te, {
1684
+ return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(Oe, {
1405
1685
  id: "site-selector-button",
1406
- "aria-controls": u ? "site-selector-menu" : void 0,
1686
+ "aria-controls": o ? "site-selector-menu" : void 0,
1407
1687
  "aria-haspopup": "true",
1408
- "aria-expanded": u ? "true" : void 0,
1688
+ "aria-expanded": o ? "true" : void 0,
1409
1689
  variant: "outlined",
1410
- onClick: f,
1411
- endIcon: /* @__PURE__ */ s(we, { sx: Y.sxTriggerIcon }),
1412
- sx: Y.sxTriggerButton(u),
1413
- children: Je(e, m)
1414
- }), /* @__PURE__ */ s(g, {
1690
+ onClick: s,
1691
+ endIcon: /* @__PURE__ */ u(De, { sx: Z.sxTriggerIcon }),
1692
+ sx: Z.sxTriggerButton(o),
1693
+ children: ft(e, m)
1694
+ }), /* @__PURE__ */ u(y, {
1415
1695
  id: "site-selector-menu",
1416
1696
  anchorEl: i,
1417
- open: u,
1697
+ open: o,
1418
1698
  onClose: p,
1419
1699
  anchorOrigin: {
1420
1700
  vertical: "bottom",
@@ -1425,21 +1705,21 @@ function Qe({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
1425
1705
  horizontal: "right"
1426
1706
  },
1427
1707
  slotProps: {
1428
- paper: { sx: Y.sxMenuPaper },
1708
+ paper: { sx: Z.sxMenuPaper },
1429
1709
  list: {
1430
1710
  "aria-labelledby": "site-selector-button",
1431
1711
  disablePadding: !0,
1432
- sx: Y.sxMenuList
1712
+ sx: Z.sxMenuList
1433
1713
  }
1434
1714
  },
1435
- children: e.map((i, a) => /* @__PURE__ */ c(d, {
1436
- sx: Y.sxSection(a === e.length - 1),
1437
- children: [/* @__PURE__ */ s(y, {
1438
- sx: Y.sxSectionTitle,
1715
+ children: e.map((i, a) => /* @__PURE__ */ d(f, {
1716
+ sx: Z.sxSection(a === e.length - 1),
1717
+ children: [/* @__PURE__ */ u(S, {
1718
+ sx: Z.sxSectionTitle,
1439
1719
  children: i.title
1440
- }), /* @__PURE__ */ s(d, {
1441
- sx: Y.sxSectionGrid(i.fullWidth),
1442
- children: i.publications.map((e) => /* @__PURE__ */ s(Ze, {
1720
+ }), /* @__PURE__ */ u(f, {
1721
+ sx: Z.sxSectionGrid(i.fullWidth),
1722
+ children: i.publications.map((e) => /* @__PURE__ */ u(ht, {
1443
1723
  publication: e,
1444
1724
  selected: Number(t) === e.id,
1445
1725
  href: n(e),
@@ -1449,7 +1729,7 @@ function Qe({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
1449
1729
  }, i.title))
1450
1730
  })] });
1451
1731
  }
1452
- var X = {
1732
+ var Q = {
1453
1733
  sxAppBar: {
1454
1734
  bgcolor: "m3.surfaceContainer",
1455
1735
  color: "m3.onSurfaceVariant",
@@ -1490,7 +1770,6 @@ var X = {
1490
1770
  sxIconActionsRow: {
1491
1771
  display: "flex",
1492
1772
  alignItems: "center",
1493
- width: 240,
1494
1773
  height: 48,
1495
1774
  flexShrink: 0
1496
1775
  },
@@ -1555,36 +1834,36 @@ var X = {
1555
1834
  };
1556
1835
  //#endregion
1557
1836
  //#region src/lib/components/top-bar/NotificationsMenu.tsx
1558
- function $e(e) {
1559
- let t = new Date(e);
1560
- return Number.isNaN(t.getTime()) ? "" : t.toLocaleString("es-MX", {
1837
+ function _t(e, t) {
1838
+ let n = new Date(e);
1839
+ return Number.isNaN(n.getTime()) ? "" : n.toLocaleString(t, {
1561
1840
  day: "2-digit",
1562
1841
  month: "short",
1563
1842
  hour: "2-digit",
1564
1843
  minute: "2-digit"
1565
1844
  });
1566
1845
  }
1567
- function Z({ unreadCount: e, notifications: t }) {
1568
- let [n, r] = a(null), l = !!n, u = i(() => e > 0 ? e : void 0, [e]);
1569
- return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(v, {
1570
- title: "Notificaciones",
1571
- children: /* @__PURE__ */ s(p, {
1572
- "aria-label": "Notificaciones",
1846
+ function vt({ unreadCount: e, notifications: t }) {
1847
+ let { locale: n, t: r } = H(), [i, a] = c(null), o = !!i, p = Xe(n), m = s(() => e > 0 ? e : void 0, [e]);
1848
+ return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(x, {
1849
+ title: r.notificationsMenu("title"),
1850
+ children: /* @__PURE__ */ u(g, {
1851
+ "aria-label": r.notificationsMenu("ariaLabel"),
1573
1852
  "aria-haspopup": "true",
1574
- "aria-expanded": l,
1575
- onClick: (e) => r(e.currentTarget),
1576
- sx: X.sxActionIcon,
1577
- children: /* @__PURE__ */ s(Ee, {
1578
- badgeContent: u,
1853
+ "aria-expanded": o,
1854
+ onClick: (e) => a(e.currentTarget),
1855
+ sx: Q.sxActionIcon,
1856
+ children: /* @__PURE__ */ u(ke, {
1857
+ badgeContent: m,
1579
1858
  color: "error",
1580
- sx: X.sxBadge,
1581
- children: /* @__PURE__ */ s(ie, { sx: X.sxActionIconGlyph })
1859
+ sx: Q.sxBadge,
1860
+ children: /* @__PURE__ */ u(se, { sx: Q.sxActionIconGlyph })
1582
1861
  })
1583
1862
  })
1584
- }), /* @__PURE__ */ c(g, {
1585
- anchorEl: n,
1586
- open: l,
1587
- onClose: () => r(null),
1863
+ }), /* @__PURE__ */ d(y, {
1864
+ anchorEl: i,
1865
+ open: o,
1866
+ onClose: () => a(null),
1588
1867
  anchorOrigin: {
1589
1868
  vertical: "bottom",
1590
1869
  horizontal: "right"
@@ -1600,50 +1879,50 @@ function Z({ unreadCount: e, notifications: t }) {
1600
1879
  borderRadius: 2,
1601
1880
  bgcolor: "m3.surfaceContainerHigh"
1602
1881
  } } },
1603
- children: [/* @__PURE__ */ c(d, {
1882
+ children: [/* @__PURE__ */ d(f, {
1604
1883
  sx: {
1605
1884
  px: 2,
1606
1885
  py: 1.5,
1607
1886
  borderBottom: 1,
1608
1887
  borderColor: "m3.outlineVariant"
1609
1888
  },
1610
- children: [/* @__PURE__ */ s(y, {
1889
+ children: [/* @__PURE__ */ u(S, {
1611
1890
  variant: "subtitle2",
1612
1891
  color: "m3.onSurface",
1613
- children: "Notificaciones"
1614
- }), e > 0 ? /* @__PURE__ */ c(y, {
1892
+ children: r.notificationsMenu("title")
1893
+ }), e > 0 ? /* @__PURE__ */ u(S, {
1615
1894
  variant: "caption",
1616
1895
  color: "m3.onSurfaceVariant",
1617
- children: [e, " sin leer"]
1896
+ children: r.notificationsMenu("unreadCount", { count: e })
1618
1897
  }) : null]
1619
- }), t.length === 0 ? /* @__PURE__ */ s(d, {
1898
+ }), t && t?.length === 0 ? /* @__PURE__ */ u(f, {
1620
1899
  sx: {
1621
1900
  px: 2,
1622
1901
  py: 3
1623
1902
  },
1624
- children: /* @__PURE__ */ s(y, {
1903
+ children: /* @__PURE__ */ u(S, {
1625
1904
  variant: "body2",
1626
1905
  color: "m3.onSurfaceVariant",
1627
1906
  sx: { textAlign: "center" },
1628
- children: "No hay notificaciones"
1907
+ children: r.notificationsMenu("empty")
1629
1908
  })
1630
- }) : /* @__PURE__ */ s(De, {
1909
+ }) : /* @__PURE__ */ u(Ae, {
1631
1910
  dense: !0,
1632
1911
  disablePadding: !0,
1633
1912
  sx: { py: .5 },
1634
- children: t.map((e) => /* @__PURE__ */ s(Oe, {
1913
+ children: t && t.map((e) => /* @__PURE__ */ u(je, {
1635
1914
  component: e.href ? "a" : "div",
1636
1915
  href: e.href,
1637
- onClick: () => r(null),
1916
+ onClick: () => a(null),
1638
1917
  sx: {
1639
1918
  alignItems: "flex-start",
1640
1919
  py: 1.25,
1641
- bgcolor: e.read ? "transparent" : "m3.secondaryContainer",
1642
- "&:hover": { bgcolor: e.read ? "action.hover" : "m3.secondaryContainer" }
1920
+ bgcolor: e.read ? "transparent" : "secondary.light",
1921
+ "&:hover": { bgcolor: e.read ? "action.hover" : "secondary.light" }
1643
1922
  },
1644
- children: /* @__PURE__ */ s(h, {
1923
+ children: /* @__PURE__ */ u(v, {
1645
1924
  primary: e.title,
1646
- secondary: /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(y, {
1925
+ secondary: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(S, {
1647
1926
  component: "span",
1648
1927
  variant: "body2",
1649
1928
  color: "m3.onSurfaceVariant",
@@ -1652,7 +1931,7 @@ function Z({ unreadCount: e, notifications: t }) {
1652
1931
  mt: .25
1653
1932
  },
1654
1933
  children: e.message
1655
- }), /* @__PURE__ */ s(y, {
1934
+ }), /* @__PURE__ */ u(S, {
1656
1935
  component: "span",
1657
1936
  variant: "caption",
1658
1937
  color: "m3.onSurfaceVariant",
@@ -1660,7 +1939,7 @@ function Z({ unreadCount: e, notifications: t }) {
1660
1939
  display: "block",
1661
1940
  mt: .5
1662
1941
  },
1663
- children: $e(e.createdAt)
1942
+ children: _t(e.createdAt, p)
1664
1943
  })] }),
1665
1944
  slotProps: { primary: {
1666
1945
  variant: "subtitle2",
@@ -1674,52 +1953,39 @@ function Z({ unreadCount: e, notifications: t }) {
1674
1953
  }
1675
1954
  //#endregion
1676
1955
  //#region src/lib/utils/cms-asset.ts
1677
- var et = "https://dev.cms-medios.com";
1678
- function tt(e) {
1956
+ var yt = "https://dev.cms-medios.com";
1957
+ function bt(e) {
1679
1958
  let t = e?.trim();
1680
- return t ? t.replace(/\/$/, "") : et;
1959
+ return t ? t.replace(/\/$/, "") : yt;
1681
1960
  }
1682
- function nt(e, t) {
1961
+ function xt(e, t) {
1683
1962
  if (!e) return "";
1684
1963
  if (e.startsWith("http://") || e.startsWith("https://")) return e;
1685
1964
  let n = e.startsWith("/") ? e : `/${e}`;
1686
- return `${tt(t)}${n}`;
1965
+ return `${bt(t)}${n}`;
1687
1966
  }
1688
1967
  //#endregion
1689
1968
  //#region src/lib/utils/profile-avatar.ts
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);
1969
+ var St = "noPicture", Ct = "/topbar_profile.png";
1970
+ function wt(e, t) {
1971
+ let { image: n } = e, r = t?.fallbackAvatar ?? Ct;
1972
+ return !n || n === St ? r : xt(n, t?.cmsOrigin);
1694
1973
  }
1695
- function ot(e) {
1974
+ function Tt(e) {
1696
1975
  if (e.fullName?.trim()) return e.fullName.trim();
1697
1976
  let t = [e.firstName, e.lastName].filter(Boolean);
1698
1977
  return t.length > 0 ? t.join(" ") : e.userName;
1699
1978
  }
1700
1979
  //#endregion
1701
1980
  //#region src/lib/components/top-bar/ProfileMenu.tsx
1702
- var st = [{
1703
- id: "profile",
1704
- label: "My Profile",
1705
- icon: je
1706
- }, {
1707
- id: "webmaster",
1708
- label: "Webmaster View",
1709
- icon: ke
1710
- }], ct = {
1711
- id: "sign-off",
1712
- label: "Sign off",
1713
- icon: Ae
1714
- };
1715
- function lt({ label: e, icon: t, onSelect: n }) {
1716
- return /* @__PURE__ */ c(_, {
1981
+ function Et({ label: e, icon: t, onSelect: n }) {
1982
+ return /* @__PURE__ */ d(b, {
1717
1983
  onClick: n,
1718
- sx: X.sxProfileMenuItem,
1719
- children: [/* @__PURE__ */ s(m, {
1720
- sx: X.sxProfileMenuListItemIcon,
1721
- children: /* @__PURE__ */ s(t, {})
1722
- }), /* @__PURE__ */ s(h, {
1984
+ sx: Q.sxProfileMenuItem,
1985
+ children: [/* @__PURE__ */ u(_, {
1986
+ sx: Q.sxProfileMenuListItemIcon,
1987
+ children: /* @__PURE__ */ u(t, {})
1988
+ }), /* @__PURE__ */ u(v, {
1723
1989
  primary: e,
1724
1990
  slotProps: { primary: { sx: {
1725
1991
  fontSize: 14,
@@ -1729,37 +1995,49 @@ function lt({ label: e, icon: t, onSelect: n }) {
1729
1995
  })]
1730
1996
  });
1731
1997
  }
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) => {
1734
- m();
1998
+ function Dt({ profile: e, avatarOptions: t }) {
1999
+ let { t: n } = H(), [r, i] = c(null), a = !!r, o = Tt(e), p = wt(e, t), m = p.startsWith("/"), h = s(() => [{
2000
+ id: "profile",
2001
+ labelKey: "myProfile",
2002
+ icon: Pe
2003
+ }, {
2004
+ id: "webmaster",
2005
+ labelKey: "webmasterView",
2006
+ icon: Me
2007
+ }], []), _ = s(() => ({
2008
+ id: "sign-off",
2009
+ labelKey: "signOff",
2010
+ icon: Ne
2011
+ }), []), v = () => i(null), b = (e) => {
2012
+ v();
1735
2013
  };
1736
- return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(p, {
2014
+ return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(g, {
1737
2015
  id: "profile-menu-button",
1738
- "aria-label": "Mi perfil",
1739
- "aria-controls": i ? "profile-menu" : void 0,
2016
+ "aria-label": n.profileMenu("ariaLabel"),
2017
+ "aria-controls": a ? "profile-menu" : void 0,
1740
2018
  "aria-haspopup": "true",
1741
- "aria-expanded": i ? "true" : void 0,
1742
- onClick: (e) => r(e.currentTarget),
1743
- sx: X.sxProfileButton,
1744
- children: /* @__PURE__ */ s(Me, {
1745
- sx: X.sxProfileAvatar,
1746
- children: /* @__PURE__ */ s(d, {
2019
+ "aria-expanded": a ? "true" : void 0,
2020
+ onClick: (e) => i(e.currentTarget),
2021
+ sx: Q.sxProfileButton,
2022
+ children: /* @__PURE__ */ u(Fe, {
2023
+ sx: Q.sxProfileAvatar,
2024
+ children: /* @__PURE__ */ u(f, {
1747
2025
  component: "img",
1748
- src: u,
2026
+ src: p,
1749
2027
  alt: "",
1750
2028
  sx: {
1751
2029
  width: "100%",
1752
2030
  height: "100%",
1753
2031
  objectFit: "cover"
1754
2032
  },
1755
- ...f ? {} : { crossOrigin: "anonymous" }
2033
+ ...m ? {} : { crossOrigin: "anonymous" }
1756
2034
  })
1757
2035
  })
1758
- }), /* @__PURE__ */ c(g, {
2036
+ }), /* @__PURE__ */ d(y, {
1759
2037
  id: "profile-menu",
1760
- anchorEl: n,
1761
- open: i,
1762
- onClose: m,
2038
+ anchorEl: r,
2039
+ open: a,
2040
+ onClose: v,
1763
2041
  anchorOrigin: {
1764
2042
  vertical: "bottom",
1765
2043
  horizontal: "right"
@@ -1769,127 +2047,125 @@ function ut({ profile: e, avatarOptions: t }) {
1769
2047
  horizontal: "right"
1770
2048
  },
1771
2049
  slotProps: {
1772
- paper: { sx: X.sxProfileMenuPaper },
2050
+ paper: { sx: Q.sxProfileMenuPaper },
1773
2051
  list: { disablePadding: !0 }
1774
2052
  },
1775
2053
  children: [
1776
- /* @__PURE__ */ c(d, {
2054
+ /* @__PURE__ */ d(f, {
1777
2055
  sx: {
1778
2056
  px: 2,
1779
2057
  py: 1.5,
1780
2058
  borderBottom: 1,
1781
2059
  borderColor: "divider"
1782
2060
  },
1783
- children: [/* @__PURE__ */ s(y, {
2061
+ children: [/* @__PURE__ */ u(S, {
1784
2062
  variant: "subtitle2",
1785
2063
  sx: {
1786
2064
  fontWeight: 600,
1787
2065
  color: "#191C22"
1788
2066
  },
1789
- children: l
1790
- }), /* @__PURE__ */ s(y, {
2067
+ children: o
2068
+ }), /* @__PURE__ */ u(S, {
1791
2069
  variant: "caption",
1792
2070
  sx: { color: "#414752" },
1793
2071
  children: e.email
1794
2072
  })]
1795
2073
  }),
1796
- st.map((e) => /* @__PURE__ */ s(lt, {
1797
- ...e,
1798
- onSelect: () => h(e.id)
2074
+ h.map((e) => /* @__PURE__ */ u(Et, {
2075
+ label: n.profileMenu(e.labelKey),
2076
+ icon: e.icon,
2077
+ onSelect: () => b(e.id)
1799
2078
  }, e.id)),
1800
- /* @__PURE__ */ s(Ne, { sx: X.sxProfileMenuDivider }),
1801
- /* @__PURE__ */ s(lt, {
1802
- ...ct,
1803
- onSelect: () => h(ct.id)
2079
+ /* @__PURE__ */ u(Ie, { sx: Q.sxProfileMenuDivider }),
2080
+ /* @__PURE__ */ u(Et, {
2081
+ label: n.profileMenu(_.labelKey),
2082
+ icon: _.icon,
2083
+ onSelect: () => b(_.id)
1804
2084
  })
1805
2085
  ]
1806
2086
  })] });
1807
2087
  }
1808
2088
  //#endregion
1809
2089
  //#region src/lib/components/top-bar/TopBar.tsx
1810
- function dt() {
1811
- return /* @__PURE__ */ s(d, {
2090
+ function Ot() {
2091
+ return /* @__PURE__ */ u(f, {
1812
2092
  component: "span",
1813
2093
  role: "separator",
1814
2094
  "aria-orientation": "vertical",
1815
- sx: X.sxDivider
2095
+ sx: Q.sxDivider
1816
2096
  });
1817
2097
  }
1818
- function Q({ title: e, icon: t }) {
1819
- return /* @__PURE__ */ s(v, {
2098
+ function kt({ title: e, icon: t }) {
2099
+ return /* @__PURE__ */ u(x, {
1820
2100
  title: e,
1821
- children: /* @__PURE__ */ s(p, {
2101
+ children: /* @__PURE__ */ u(g, {
1822
2102
  "aria-label": e,
1823
- sx: X.sxActionIcon,
1824
- children: /* @__PURE__ */ s(t, { sx: X.sxActionIconGlyph })
2103
+ sx: Q.sxActionIcon,
2104
+ children: /* @__PURE__ */ u(t, { sx: Q.sxActionIconGlyph })
1825
2105
  })
1826
2106
  });
1827
2107
  }
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 }) {
1829
- let g = [{
1830
- title: "Analíticas",
1831
- icon: ve
2108
+ function At({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: s, selectedPublicationId: c, getPublicationHref: l, resolvePublicationImageUrl: p, profileAvatarOptions: m }) {
2109
+ let { t: h } = H(), _ = [{
2110
+ title: h.topBar("analytics"),
2111
+ icon: Se
1832
2112
  }, {
1833
- title: "Ayuda",
1834
- icon: ye
2113
+ title: h.topBar("help"),
2114
+ icon: Ce
1835
2115
  }];
1836
- return /* @__PURE__ */ s(Se, {
2116
+ return /* @__PURE__ */ u(Te, {
1837
2117
  position: "static",
1838
2118
  elevation: 0,
1839
- sx: X.sxAppBar,
1840
- children: /* @__PURE__ */ c(Ce, {
2119
+ sx: Q.sxAppBar,
2120
+ children: /* @__PURE__ */ d(Ee, {
1841
2121
  disableGutters: !0,
1842
2122
  variant: "dense",
1843
- sx: X.sxToolbar,
2123
+ sx: Q.sxToolbar,
1844
2124
  children: [
1845
- /* @__PURE__ */ s(p, {
1846
- "aria-label": t ? "Cerrar menú lateral" : "Abrir menú lateral",
2125
+ /* @__PURE__ */ u(g, {
2126
+ "aria-label": t ? h.topBar("closeSidebar") : h.topBar("openSidebar"),
1847
2127
  "aria-expanded": t,
1848
2128
  onClick: n,
1849
- sx: X.sxMenuButton,
1850
- children: /* @__PURE__ */ s(xe, { sx: X.sxMenuButtonIcon })
2129
+ sx: Q.sxMenuButton,
2130
+ children: /* @__PURE__ */ u(we, { sx: Q.sxMenuButtonIcon })
1851
2131
  }),
1852
- /* @__PURE__ */ s(d, {
1853
- sx: X.sxLogoBox,
2132
+ /* @__PURE__ */ u(f, {
2133
+ sx: Q.sxLogoBox,
1854
2134
  children: o
1855
2135
  }),
1856
- /* @__PURE__ */ s(d, { sx: { flex: 1 } }),
1857
- /* @__PURE__ */ c(d, {
1858
- sx: X.sxActionsFrame,
2136
+ /* @__PURE__ */ u(f, { sx: { flex: 1 } }),
2137
+ /* @__PURE__ */ d(f, {
2138
+ sx: Q.sxActionsFrame,
1859
2139
  children: [
1860
- /* @__PURE__ */ c(d, {
1861
- sx: X.sxIconActionsRow,
2140
+ /* @__PURE__ */ d(f, {
2141
+ sx: Q.sxIconActionsRow,
1862
2142
  children: [
1863
- /* @__PURE__ */ s(Q, {
1864
- title: "Nuevo",
1865
- icon: _e
2143
+ /* @__PURE__ */ u(kt, {
2144
+ title: h.topBar("new"),
2145
+ icon: xe
1866
2146
  }),
1867
- /* @__PURE__ */ s(Z, {
2147
+ /* @__PURE__ */ u(vt, {
1868
2148
  unreadCount: r,
1869
2149
  notifications: i
1870
2150
  }),
1871
- /* @__PURE__ */ s(Q, {
1872
- title: "Idioma",
1873
- icon: be
1874
- }),
1875
- g.map(({ title: e, icon: t }) => /* @__PURE__ */ s(Q, {
2151
+ _.map(({ title: e, icon: t }) => /* @__PURE__ */ u(kt, {
1876
2152
  title: e,
1877
2153
  icon: t
1878
2154
  }, e))
1879
2155
  ]
1880
2156
  }),
1881
- /* @__PURE__ */ s(dt, {}),
1882
- l,
1883
- /* @__PURE__ */ s(Qe, {
2157
+ /* @__PURE__ */ u(Ot, {}),
2158
+ s,
2159
+ /* @__PURE__ */ u(gt, {
1884
2160
  sites: e,
1885
- selectedPublicationId: u,
1886
- getPublicationHref: f,
1887
- resolvePublicationImageUrl: m
2161
+ selectedPublicationId: c,
2162
+ getPublicationHref: l,
2163
+ resolvePublicationImageUrl: p
1888
2164
  }),
1889
- /* @__PURE__ */ s(dt, {}),
1890
- /* @__PURE__ */ s(ut, {
2165
+ /* @__PURE__ */ u(Ot, {}),
2166
+ /* @__PURE__ */ u(Dt, {
1891
2167
  profile: a,
1892
- avatarOptions: h
2168
+ avatarOptions: m
1893
2169
  })
1894
2170
  ]
1895
2171
  })
@@ -1898,65 +2174,115 @@ function $({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCou
1898
2174
  });
1899
2175
  }
1900
2176
  //#endregion
2177
+ //#region src/lib/components/shell/AppShell.styles.ts
2178
+ var $ = {
2179
+ sxRoot: {
2180
+ display: "flex",
2181
+ flexDirection: "column",
2182
+ flex: 1,
2183
+ height: "100%",
2184
+ minHeight: 0,
2185
+ overflow: "hidden",
2186
+ bgcolor: "m3.surfaceContainer"
2187
+ },
2188
+ sxHeader: { flexShrink: 0 },
2189
+ sxBody: {
2190
+ display: "flex",
2191
+ flex: 1,
2192
+ minHeight: 0,
2193
+ overflow: "hidden"
2194
+ },
2195
+ sxMain: {
2196
+ display: "flex",
2197
+ flexDirection: "column",
2198
+ flex: 1,
2199
+ minWidth: 0,
2200
+ minHeight: 0,
2201
+ overflowY: "auto",
2202
+ overflowX: "hidden",
2203
+ mt: "10px",
2204
+ pt: 1,
2205
+ pb: 3,
2206
+ pr: 3
2207
+ }
2208
+ };
2209
+ //#endregion
1901
2210
  //#region src/lib/components/shell/AppShell.tsx
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 }) {
1903
- let [_, v] = a(!0);
1904
- return /* @__PURE__ */ c("div", {
1905
- className: "flex flex-col h-full",
1906
- style: { background: "var(--md-surface-container)" },
1907
- children: [/* @__PURE__ */ s($, {
1908
- sites: t,
1909
- sidebarOpen: _,
1910
- onToggleSidebar: () => v((e) => !e),
1911
- notificationUnreadCount: r,
1912
- notifications: i,
1913
- profile: o,
1914
- primaryLogo: l,
1915
- brandLogo: u,
1916
- selectedPublicationId: d,
1917
- getPublicationHref: f,
1918
- resolvePublicationImageUrl: p,
1919
- profileAvatarOptions: m
1920
- }), /* @__PURE__ */ c("div", {
1921
- className: "flex flex-1 min-h-0",
1922
- children: [/* @__PURE__ */ s(Ue, {
1923
- open: _,
1924
- pathname: e,
1925
- LinkComponent: h,
1926
- permissions: g
1927
- }), /* @__PURE__ */ s("main", {
1928
- className: "flex flex-col flex-1 min-w-0 min-h-0 pt-1 pb-3 pr-3 mt-[10px]",
1929
- children: n
2211
+ function jt({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: s, selectedPublicationId: l, getPublicationHref: p, resolvePublicationImageUrl: m, profileAvatarOptions: h, LinkComponent: g = U, permissions: _, locale: v, language: y, messages: b }) {
2212
+ let [x, S] = c(!0);
2213
+ return /* @__PURE__ */ u(Ye, {
2214
+ locale: v,
2215
+ language: y,
2216
+ messages: b,
2217
+ children: /* @__PURE__ */ d(f, {
2218
+ sx: $.sxRoot,
2219
+ children: [/* @__PURE__ */ u(f, {
2220
+ component: "header",
2221
+ sx: $.sxHeader,
2222
+ children: /* @__PURE__ */ u(At, {
2223
+ sites: t,
2224
+ sidebarOpen: x,
2225
+ onToggleSidebar: () => S((e) => !e),
2226
+ notificationUnreadCount: r,
2227
+ notifications: i,
2228
+ profile: a,
2229
+ primaryLogo: o,
2230
+ brandLogo: s,
2231
+ selectedPublicationId: l,
2232
+ getPublicationHref: p,
2233
+ resolvePublicationImageUrl: m,
2234
+ profileAvatarOptions: h
2235
+ })
2236
+ }), /* @__PURE__ */ d(f, {
2237
+ sx: $.sxBody,
2238
+ children: [/* @__PURE__ */ u(st, {
2239
+ open: x,
2240
+ pathname: e,
2241
+ LinkComponent: g,
2242
+ permissions: _
2243
+ }), /* @__PURE__ */ u(f, {
2244
+ component: "main",
2245
+ sx: $.sxMain,
2246
+ children: n
2247
+ })]
1930
2248
  })]
1931
- })]
2249
+ })
1932
2250
  });
1933
2251
  }
1934
2252
  //#endregion
1935
2253
  //#region src/lib/components/mui-provider/CmsMuiProvider.tsx
1936
- var pt = z();
1937
- function mt({ children: t }) {
1938
- return /* @__PURE__ */ c(e, {
1939
- theme: pt,
2254
+ var Mt = I();
2255
+ function Nt({ children: e }) {
2256
+ return /* @__PURE__ */ d(t, {
2257
+ theme: Mt,
1940
2258
  defaultMode: "light",
1941
2259
  storageManager: null,
1942
- children: [/* @__PURE__ */ s(F, { enableColorScheme: !0 }), t]
2260
+ children: [/* @__PURE__ */ u(Le, { enableColorScheme: !0 }), e]
1943
2261
  });
1944
2262
  }
1945
2263
  //#endregion
1946
2264
  //#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
1947
- var ht = z();
1948
- function gt({ children: t }) {
1949
- return /* @__PURE__ */ s(Pe, {
2265
+ var Pt = I();
2266
+ function Ft({ children: e }) {
2267
+ return /* @__PURE__ */ u(Re, {
1950
2268
  options: { enableCssLayer: !0 },
1951
- children: /* @__PURE__ */ c(e, {
1952
- theme: ht,
2269
+ children: /* @__PURE__ */ d(t, {
2270
+ theme: Pt,
1953
2271
  defaultMode: "light",
1954
2272
  storageManager: null,
1955
- children: [/* @__PURE__ */ s(F, { enableColorScheme: !0 }), t]
2273
+ children: [/* @__PURE__ */ u(Le, { enableColorScheme: !0 }), /* @__PURE__ */ u(f, {
2274
+ sx: {
2275
+ display: "flex",
2276
+ flexDirection: "column",
2277
+ height: "100%",
2278
+ minHeight: "100dvh"
2279
+ },
2280
+ children: e
2281
+ })]
1956
2282
  })
1957
2283
  });
1958
2284
  }
1959
2285
  //#endregion
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 };
2286
+ export { $e as ACCOUNT_NAV_BLOCKS, jt as AppShell, e as CmsCommonServices, Ye as CmsI18nProvider, Nt as CmsMuiProvider, Ke as DEFAULT_LOCALE, ut as DEFAULT_SITE_ID, U as DefaultCmsLink, lt as ITEM_DEFAULT_BG, Y as ITEM_HOVER_BG, ze as LIB_VERSION, ct as MENU_BG, Ft as NextCmsMuiProvider, vt as NotificationsMenu, Dt as ProfileMenu, V as SUPPORTED_LOCALES, st as Sidebar, gt as SiteSelectorMenu, At as TopBar, I as createAppTheme, L as createTranslator, R as defaultLocaleCatalog, Ue as enMessages, We as esMessages, dt as findPublicationBySlug, ft as findPublicationLabel, X as getAllPublications, pt as getDefaultPublicationSlug, Xe as getIntlLocaleTag, wt as getProfileAvatarSrc, Tt as getProfileDisplayName, B as mergeMessages, qe as normalizeLocale, mt as parsePublicationSlug, Ge as ptMessages, xt as resolveCmsAssetUrl, bt as resolveCmsOrigin, H as useCmsTranslation };
1961
2287
 
1962
2288
  //# sourceMappingURL=index.js.map