sass-cms-template-common 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./services-DlTJ4HIV.js";
2
+ import { ThemeProvider as u, alpha as d, createTheme as f } from "@mui/material/styles";
3
+ import { createContext as p, forwardRef as m, useContext as h, useMemo as g, useState as _ } from "react";
4
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
5
+ import x from "@mui/material/Box";
6
+ import S from "@mui/icons-material/ChevronRight";
7
+ import ee from "@mui/icons-material/ExpandMore";
8
+ import te from "@mui/material/Collapse";
9
+ import C from "@mui/material/IconButton";
10
+ import w from "@mui/material/ListItemIcon";
11
+ import T from "@mui/material/ListItemText";
12
+ import E from "@mui/material/Menu";
13
+ import D from "@mui/material/MenuItem";
14
+ import O from "@mui/material/Tooltip";
15
+ import k from "@mui/material/Typography";
16
+ import ne from "@mui/icons-material/BarChartOutlined";
17
+ import A from "@mui/icons-material/BookmarkBorderOutlined";
18
+ import j from "@mui/icons-material/ChatBubbleOutlineOutlined";
19
+ import M from "@mui/icons-material/CreateOutlined";
20
+ import N from "@mui/icons-material/EventOutlined";
21
+ import P from "@mui/icons-material/ExploreOutlined";
22
+ import re from "@mui/icons-material/ImageOutlined";
23
+ import ie from "@mui/icons-material/ImportExportOutlined";
24
+ import ae from "@mui/icons-material/LabelOutlined";
25
+ import oe from "@mui/icons-material/MailOutlineOutlined";
26
+ import se from "@mui/icons-material/MoreHorizOutlined";
27
+ import ce from "@mui/icons-material/NotificationsNoneOutlined";
28
+ import le from "@mui/icons-material/PeopleOutlineOutlined";
29
+ import ue from "@mui/icons-material/PeopleOutlined";
30
+ import de from "@mui/icons-material/PermMediaOutlined";
31
+ import fe from "@mui/icons-material/PlayCircleOutlineOutlined";
32
+ import pe from "@mui/icons-material/RestaurantOutlined";
33
+ import me from "@mui/icons-material/SearchOutlined";
34
+ import he from "@mui/icons-material/ShoppingCartOutlined";
35
+ import ge from "@mui/icons-material/ViewListOutlined";
36
+ import _e from "@mui/icons-material/FormatAlignCenter";
37
+ import ve from "@mui/icons-material/TimelineOutlined";
38
+ import ye from "@mui/icons-material/MessageOutlined";
39
+ import be from "@mui/icons-material/MicNoneOutlined";
40
+ import xe from "@mui/icons-material/PlaylistPlayOutlined";
41
+ import Se from "@mui/icons-material/PendingActionsOutlined";
42
+ import Ce from "@mui/icons-material/ForumOutlined";
43
+ import we from "@mui/icons-material/UsbOutlined";
44
+ import Te from "@mui/icons-material/FormatListBulletedOutlined";
45
+ import Ee from "@mui/icons-material/VerticalSplitOutlined";
46
+ import De from "@mui/icons-material/ViewQuiltOutlined";
47
+ import Oe from "@mui/icons-material/SubscriptionsOutlined";
48
+ import ke from "@mui/icons-material/AddOutlined";
49
+ import Ae from "@mui/icons-material/DevicesOtherOutlined";
50
+ import je from "@mui/icons-material/HelpOutlineOutlined";
51
+ import Me from "@mui/icons-material/Menu";
52
+ import Ne from "@mui/material/AppBar";
53
+ import Pe from "@mui/material/Toolbar";
54
+ import Fe from "@mui/icons-material/KeyboardArrowDown";
55
+ import Ie from "@mui/material/Button";
56
+ import Le from "@mui/material/Badge";
57
+ import Re from "@mui/material/List";
58
+ import ze from "@mui/material/ListItemButton";
59
+ import Be from "@mui/icons-material/EditOutlined";
60
+ import Ve from "@mui/icons-material/LogoutOutlined";
61
+ import He from "@mui/icons-material/PersonOutlined";
62
+ import Ue from "@mui/material/Avatar";
63
+ import We from "@mui/material/Divider";
64
64
  import F from "@mui/material/CssBaseline";
65
- import { AppRouterCacheProvider as Pe } from "@mui/material-nextjs/v16-appRouter";
65
+ import { AppRouterCacheProvider as Ge } from "@mui/material-nextjs/v16-appRouter";
66
66
  //#region src/lib/version.ts
67
- var Fe = "0.0.0", I = {
67
+ var Ke = "0.0.0", I = {
68
68
  description: "TYPE: CUSTOM\nMaterial Theme Builder export 2026-05-08 02:18:51",
69
69
  seed: "#0067C4",
70
70
  coreColors: {
@@ -532,7 +532,7 @@ var Fe = "0.0.0", I = {
532
532
  function L(e) {
533
533
  return I.extendedColors.find((t) => t.name === e)?.color;
534
534
  }
535
- function Ie(e) {
535
+ function qe(e) {
536
536
  return {
537
537
  50: e[98],
538
538
  100: e[95],
@@ -550,33 +550,33 @@ function Ie(e) {
550
550
  A700: e[40]
551
551
  };
552
552
  }
553
- function R(e, n) {
554
- let r = n.onSurface;
553
+ function Je(e, t) {
554
+ let n = 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
582
  main: L("Estado Programado") ?? "#FF6D00",
@@ -598,52 +598,52 @@ function R(e, n) {
598
598
  },
599
599
  brand: { main: L("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: d(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: d(n, .56),
612
+ hover: d(n, e === "light" ? .04 : .08),
613
+ selected: d(t.primary, .12),
614
+ focus: d(t.primary, .12),
615
+ disabled: d(n, .26),
616
+ disabledBackground: d(n, .12)
617
617
  },
618
618
  common: {
619
- black: n.shadow,
619
+ black: t.shadow,
620
620
  white: "#FFFFFF"
621
621
  },
622
- grey: Ie(I.palettes.neutral),
622
+ grey: qe(I.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 R() {
645
+ let e = Je("light", I.schemes.light), t = Je("dark", I.schemes.dark);
646
+ return f({
647
647
  cssVariables: { colorSchemeSelector: "data" },
648
648
  defaultColorScheme: "light",
649
649
  colorSchemes: {
@@ -659,15 +659,322 @@ function z() {
659
659
  });
660
660
  }
661
661
  //#endregion
662
+ //#region src/lib/i18n/createTranslator.ts
663
+ function Ye(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 z(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) => Ye(e.notificationsMenu[t], n)
678
+ };
679
+ }
680
+ //#endregion
681
+ //#region src/lib/i18n/messages/en.ts
682
+ var Xe = {
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
+ OTHERS: "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
+ }, Ze = {
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
+ OTHERS: "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
+ }, Qe = {
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
+ OTHERS: "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
+ }, B = {
881
+ en: Xe,
882
+ es: Ze,
883
+ pt: Qe
884
+ };
885
+ function V(e, t) {
886
+ return t ? {
887
+ ...e,
888
+ ...t
889
+ } : e;
890
+ }
891
+ function H(e, t, n) {
892
+ let r = t[e], i = t.en;
893
+ return {
894
+ navigation: V({
895
+ ...i.navigation,
896
+ ...r.navigation
897
+ }, n?.navigation),
898
+ sidebar: V({
899
+ ...i.sidebar,
900
+ ...r.sidebar
901
+ }, n?.sidebar),
902
+ topBar: V({
903
+ ...i.topBar,
904
+ ...r.topBar
905
+ }, n?.topBar),
906
+ profileMenu: V({
907
+ ...i.profileMenu,
908
+ ...r.profileMenu
909
+ }, n?.profileMenu),
910
+ notificationsMenu: V({
911
+ ...i.notificationsMenu,
912
+ ...r.notificationsMenu
913
+ }, n?.notificationsMenu)
914
+ };
915
+ }
916
+ //#endregion
917
+ //#region src/lib/i18n/types.ts
918
+ var U = [
919
+ "es",
920
+ "en",
921
+ "pt"
922
+ ], $e = "en";
923
+ //#endregion
924
+ //#region src/lib/i18n/normalizeLocale.ts
925
+ function et(e) {
926
+ if (!e) return "en";
927
+ let t = e.trim().toLowerCase().replace("_", "-"), n = t.split("-")[0];
928
+ return U.includes(t) ? t : U.includes(n) ? n : "en";
929
+ }
930
+ //#endregion
931
+ //#region src/lib/i18n/CmsI18nProvider.tsx
932
+ var tt = p(null);
933
+ function nt({ locale: e, language: t, messages: n, catalog: r = B, children: i }) {
934
+ let a = et(e ?? t), o = g(() => ({
935
+ locale: a,
936
+ t: z(H(a, r, n))
937
+ }), [
938
+ r,
939
+ n,
940
+ a
941
+ ]);
942
+ return /* @__PURE__ */ y(tt.Provider, {
943
+ value: o,
944
+ children: i
945
+ });
946
+ }
947
+ //#endregion
948
+ //#region src/lib/i18n/useCmsTranslation.ts
949
+ function W(e) {
950
+ let t = h(tt), n = e?.locale ?? t?.locale ?? "en", r = e?.catalog ?? B, i = e?.messages;
951
+ return {
952
+ locale: n,
953
+ t: g(() => !i && t && t.locale === n ? t.t : z(H(n, r, i)), [
954
+ r,
955
+ t,
956
+ n,
957
+ i
958
+ ])
959
+ };
960
+ }
961
+ function rt(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 G = m(function({ href: e, children: t, ...n }, r) {
971
+ return /* @__PURE__ */ y("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
+ }), K = "#D8E2FF", it = "#E3E2E6", q = "#414752", at = 24, ot = 24, J = {
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: q,
745
1052
  textDecoration: "none",
746
- bgcolor: e ? V : "transparent",
747
- "&:hover": { bgcolor: e ? V : "action.hover" }
1053
+ bgcolor: e ? K : "transparent",
1054
+ "&:hover": { bgcolor: e ? K : "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: q,
766
1073
  textDecoration: "none",
767
- bgcolor: e ? V : "transparent",
768
- "&:hover": { bgcolor: e ? V : H }
1074
+ bgcolor: e ? K : "transparent",
1075
+ "&:hover": { bgcolor: e ? K : it }
769
1076
  },
770
1077
  sxItemIcon: (e, t = !1) => ({
771
- fontSize: t ? Re : Le,
1078
+ fontSize: t ? ot : at,
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: q,
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: q,
1118
+ bgcolor: e ? K : "transparent",
1119
+ "&:hover": { bgcolor: e ? K : it },
813
1120
  "&.Mui-selected": {
814
- bgcolor: V,
815
- "&:hover": { bgcolor: V }
1121
+ bgcolor: K,
1122
+ "&:hover": { bgcolor: K }
816
1123
  }
817
1124
  }),
818
1125
  sxChildrenMenuListItemIcon: {
@@ -836,295 +1143,241 @@ var B = r(function({ href: e, children: t, ...n }, r) {
836
1143
  alignItems: "center",
837
1144
  justifyContent: "center"
838
1145
  })
839
- }, G = [
1146
+ }, st = [
840
1147
  {
841
- label: "Comments",
842
- href: "/comentarios",
843
- icon: E,
1148
+ href: "/admin/comments/",
1149
+ icon: ye,
844
1150
  module: "COMMENTS"
845
1151
  },
846
1152
  {
847
- label: "Polls",
848
- href: "/encuestas",
849
- icon: le,
1153
+ href: "/system/modules/com.tfsla.diario.admin/templates/poll.jsp",
1154
+ icon: ne,
850
1155
  module: "POLLS"
851
1156
  },
852
1157
  {
853
- label: "Media",
854
1158
  href: "/media",
855
- icon: se,
856
- defaultOpen: !0,
1159
+ icon: de,
857
1160
  module: "MEDIA",
858
1161
  children: [
859
1162
  {
860
- label: "Audio",
861
- href: "/media/audios",
862
- icon: C,
1163
+ href: "/system/modules/com.tfsla.diario.admin/templates/audios.jsp",
1164
+ icon: be,
863
1165
  module: "AUDIOS"
864
1166
  },
865
1167
  {
866
- label: "Images",
867
- href: "/media/imagenes",
868
- icon: M,
1168
+ href: "/system/modules/com.tfsla.diario.admin/templates/playlist.jsp",
1169
+ icon: re,
869
1170
  module: "IMAGES"
870
1171
  },
871
1172
  {
872
- label: "Playlist",
873
1173
  href: "/media/playlist",
874
- icon: ue,
1174
+ icon: xe,
875
1175
  module: "PLAYLISTS"
876
1176
  },
877
1177
  {
878
- label: "Videos",
879
- href: "/media/videos",
880
- icon: ce,
1178
+ href: "/admin/videos/",
1179
+ icon: fe,
881
1180
  module: "VIDEOS"
882
1181
  }
883
1182
  ]
884
1183
  },
885
1184
  {
886
- label: "News",
887
- href: "/noticias",
888
- icon: x,
889
- module: "NEWS"
1185
+ href: "/admin/posts/",
1186
+ icon: _e,
1187
+ module: "POSTS"
890
1188
  },
891
1189
  {
892
- label: "Planning",
893
- href: "/planificacion",
894
- icon: S,
895
- module: "PLANNING"
1190
+ href: "/admin/reports/",
1191
+ icon: ve,
1192
+ module: "PRODUCTION"
896
1193
  },
897
1194
  {
898
- label: "Analytics",
899
- href: "/analiticas",
900
- icon: w,
901
- module: "ANALYTICS"
1195
+ href: "/planificacion",
1196
+ icon: Se,
1197
+ module: "PLANNING"
902
1198
  },
903
1199
  {
904
- label: "Tags",
905
1200
  href: "/tags",
906
- icon: ee,
1201
+ icon: ae,
907
1202
  module: "TAGS"
908
1203
  },
909
1204
  {
910
- label: "Trivia",
911
- href: "/trivias",
912
- icon: de,
1205
+ href: "/system/modules/com.tfsla.diario.admin/templates/trivias.jsp",
1206
+ icon: Ce,
913
1207
  module: "TRIVIAS"
914
1208
  },
915
1209
  {
916
- label: "Other",
917
1210
  href: "/otros",
918
- icon: re,
919
- module: "OTHER",
1211
+ icon: se,
1212
+ module: "OTHERS",
920
1213
  children: [
921
1214
  {
922
- label: "News Wires",
923
- href: "/otros/news-wires",
924
- icon: b,
1215
+ href: "/system/modules/com.tfsla.diario.admin/templates/newswires.jsp",
1216
+ icon: we,
925
1217
  module: "NEWSWIRES"
926
1218
  },
927
1219
  {
928
- label: "Events",
929
- href: "/otros/eventos",
930
- icon: O,
1220
+ href: "/system/modules/com.tfsla.diario.admin/templates/event.jsp",
1221
+ icon: N,
931
1222
  module: "EVENTS"
932
1223
  },
933
1224
  {
934
- label: "Pages",
935
- href: "/otros/paginas",
936
- icon: k,
1225
+ href: "/system/modules/com.tfsla.diario.admin/templates/adminPages.jsp",
1226
+ icon: P,
937
1227
  module: "PAGES"
938
1228
  },
939
1229
  {
940
- label: "Feed",
941
- href: "/otros/feed",
942
- icon: A,
1230
+ href: "/system/modules/com.tfsla.diario.admin/templates/dashboard.jsp",
1231
+ icon: Te,
943
1232
  module: "FEEDS"
944
1233
  },
945
1234
  {
946
- label: "People",
947
- href: "/otros/personas",
948
- icon: oe,
1235
+ href: "/system/modules/com.tfsla.diario.admin/templates/adminPages.jsp",
1236
+ icon: ue,
949
1237
  module: "PERSONS"
950
1238
  },
951
1239
  {
952
- label: "Contributions",
953
- href: "/otros/contribuciones",
954
- icon: D,
955
- module: "CONTRIBUTIONS"
1240
+ href: "/system/modules/com.tfsla.diario.admin/templates/adminPosts.jsp",
1241
+ icon: M,
1242
+ module: "POSTS"
956
1243
  },
957
1244
  {
958
- label: "Recipes",
959
- href: "/otros/recetas",
960
- icon: fe,
1245
+ href: "/system/modules/com.tfsla.diario.admin/templates/recipe.jsp",
1246
+ icon: pe,
961
1247
  module: "RECIPES"
962
- },
963
- {
964
- label: "Posts",
965
- href: "/otros/posts",
966
- icon: x,
967
- module: "POSTS"
968
1248
  }
969
1249
  ]
970
1250
  },
971
1251
  {
972
- label: "Banners",
973
- href: "/banners",
974
- icon: ge,
1252
+ href: "/system/modules/com.tfsla.diario.admin/templates/banners.jsp",
1253
+ icon: Ee,
975
1254
  module: "BANNERS"
976
1255
  },
977
1256
  {
978
- label: "Blocks",
979
- href: "/bloques",
980
- icon: j,
1257
+ href: "/system/modules/com.tfsla.diario.admin/templates/dynamicContent.jsp",
1258
+ icon: De,
981
1259
  module: "BLOCKS"
982
1260
  },
983
1261
  {
984
- label: "Menu",
985
- href: "/menu",
986
- icon: P,
1262
+ href: "/system/modules/com.tfsla.diario.admin/templates/menuSite.jsp",
1263
+ icon: ge,
987
1264
  module: "MENUS"
988
1265
  },
989
1266
  {
990
- label: "Topics",
991
- href: "/temas",
992
- icon: T,
1267
+ href: "/system/modules/com.tfsla.diario.admin/templates/navigationTags.jsp",
1268
+ icon: A,
993
1269
  module: "TOPICS"
994
1270
  },
995
1271
  {
996
- label: "Advanced search",
997
- href: "/busqueda",
998
- icon: pe,
1272
+ href: "/system/modules/com.tfsla.diario.admin/templates/filterQueryList.jsp",
1273
+ icon: me,
999
1274
  module: "ADVANCEDQUERYS"
1000
1275
  },
1001
1276
  {
1002
- label: "Imports",
1003
- href: "/importaciones",
1004
- icon: N,
1277
+ href: "/system/modules/com.tfsla.diario.admin/templates/adminImports.jsp",
1278
+ icon: ie,
1005
1279
  module: "IMPORTS"
1006
1280
  },
1007
1281
  {
1008
- label: "Newsletters",
1009
- href: "/newsletters",
1010
- icon: ne,
1282
+ href: "/system/modules/com.tfsla.diario.admin/templates/newsletter.jsp",
1283
+ icon: oe,
1011
1284
  module: "NEWSLETTERS"
1012
1285
  },
1013
1286
  {
1014
- label: "Notifications",
1015
- href: "/notificaciones",
1016
- icon: ie,
1287
+ href: "/system/modules/com.tfsla.diario.admin/templates/adminQueues.jsp",
1288
+ icon: ce,
1017
1289
  module: "NOTIFICATIONS"
1018
1290
  },
1019
1291
  {
1020
- label: "Payments",
1021
- href: "/pagos",
1022
- icon: me,
1023
- module: "PAYMENTS"
1024
- },
1025
- {
1026
- label: "Plans",
1027
- href: "/planes",
1292
+ href: "/system/modules/com.tfsla.diario.admin/templates/payments.jsp",
1028
1293
  icon: he,
1029
- module: "PLANS"
1030
- },
1031
- {
1032
- label: "Reports",
1033
- href: "/reportes",
1034
- icon: w,
1035
- module: "REPORTS"
1294
+ module: "PAYMENTS"
1036
1295
  },
1037
1296
  {
1038
- label: "Sections",
1039
- href: "/secciones",
1040
- icon: P,
1041
- module: "SECTIONS"
1297
+ href: "/system/modules/com.tfsla.diario.admin/templates/subscriptions.jsp",
1298
+ icon: Oe,
1299
+ module: "PAYMENTS"
1042
1300
  },
1043
1301
  {
1044
- label: "Twitter Feeds",
1045
1302
  href: "/twitter-feeds",
1046
- icon: E,
1303
+ icon: j,
1047
1304
  module: "TWITTERS"
1048
1305
  },
1049
1306
  {
1050
- label: "Users",
1051
1307
  href: "/usuarios",
1052
- icon: ae,
1308
+ icon: le,
1053
1309
  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
1310
  }
1067
1311
  ];
1068
1312
  //#endregion
1069
1313
  //#region src/lib/components/sidebar/Sidebar.tsx
1070
- function K(e, t) {
1314
+ function ct(e, t) {
1315
+ return e.label ?? t.navigation(e.module);
1316
+ }
1317
+ function Y(e, t) {
1071
1318
  return !!(e === t || t !== "/" && e.startsWith(`${t}/`));
1072
1319
  }
1073
- function ze(e, t) {
1074
- return K(e, t.href) ? !0 : t.children?.some((t) => K(e, t.href)) ?? !1;
1320
+ function lt(e, t) {
1321
+ return Y(e, t.href) ? !0 : t.children?.some((t) => Y(e, t.href)) ?? !1;
1322
+ }
1323
+ function ut(e, t) {
1324
+ return e.find((e) => e.module === t);
1075
1325
  }
1076
- function Be(e, t, n) {
1077
- return e ? n : /* @__PURE__ */ s(v, {
1326
+ function dt(e, t) {
1327
+ return e.children?.filter((e) => ut(t, e.module)) ?? [];
1328
+ }
1329
+ function ft(e, t, n) {
1330
+ return e ? n : /* @__PURE__ */ y(O, {
1078
1331
  title: t,
1079
1332
  placement: "right",
1080
1333
  arrow: !0,
1081
- children: /* @__PURE__ */ s(d, {
1334
+ children: /* @__PURE__ */ y(x, {
1082
1335
  component: "span",
1083
- sx: W.sxTooltipWrap(e),
1336
+ sx: J.sxTooltipWrap(e),
1084
1337
  children: n
1085
1338
  })
1086
1339
  });
1087
1340
  }
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, {
1341
+ function pt({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand: i, LinkComponent: a, pathname: o, permissions: s, t: c, baseUrl: l, selectedPublicationId: u }) {
1342
+ let d = ct(e, c), f = ut(s, e.module), p = dt(e, s), m = !n, h = Y(o, e.href), g = lt(o, e), O = p.length > 0, ne = e.icon, A = t ? h : h || g, [j, M] = _(null), N = !!j;
1343
+ if (!f && !O) return null;
1344
+ let P = /* @__PURE__ */ b(v, { children: [
1345
+ O && !m ? /* @__PURE__ */ y(C, {
1093
1346
  size: "small",
1094
- "aria-label": r ? "Contraer" : "Expandir",
1347
+ "aria-label": r ? c.sidebar("collapse") : c.sidebar("expand"),
1095
1348
  onClick: (e) => {
1096
1349
  e.preventDefault(), e.stopPropagation(), i?.();
1097
1350
  },
1098
- sx: W.sxExpandButton,
1099
- children: s(r ? u : l, { sx: { fontSize: 20 } })
1351
+ sx: J.sxExpandButton,
1352
+ children: y(r ? ee : S, { sx: { fontSize: 20 } })
1100
1353
  }) : null,
1101
- /* @__PURE__ */ s(D, { sx: W.sxItemIcon(O, C) }),
1102
- C ? null : /* @__PURE__ */ s(y, {
1354
+ /* @__PURE__ */ y(ne, { sx: J.sxItemIcon(A, m) }),
1355
+ m ? null : /* @__PURE__ */ y(k, {
1103
1356
  component: "span",
1104
- sx: W.sxItemLabel(w),
1105
- children: e.label
1357
+ sx: J.sxItemLabel(h),
1358
+ children: d
1106
1359
  }),
1107
- S.isNew && /* @__PURE__ */ s(d, {
1360
+ f?.isnew && /* @__PURE__ */ y(x, {
1108
1361
  component: "span",
1109
- sx: W.sxBetaChip(n),
1110
- children: S.isNew ? "New" : ""
1362
+ sx: J.sxBetaChip(n),
1363
+ children: c.sidebar("newBadge")
1111
1364
  })
1112
1365
  ] });
1113
- if (E && !C) return /* @__PURE__ */ c(d, {
1114
- sx: W.sxNavGroup(n),
1115
- children: [/* @__PURE__ */ s(d, {
1366
+ return O && !m ? /* @__PURE__ */ b(x, {
1367
+ sx: J.sxNavGroup(n),
1368
+ children: [/* @__PURE__ */ y(x, {
1116
1369
  component: "div",
1117
1370
  onClick: i,
1118
1371
  sx: {
1119
- ...W.sxItem(T, t, !0, !1),
1372
+ ...J.sxItem(g, t, !0, !1),
1120
1373
  cursor: "pointer"
1121
1374
  },
1122
- children: M
1123
- }), /* @__PURE__ */ s(f, {
1375
+ children: P
1376
+ }), /* @__PURE__ */ y(te, {
1124
1377
  in: r,
1125
1378
  timeout: "auto",
1126
1379
  unmountOnExit: !0,
1127
- children: /* @__PURE__ */ s(d, {
1380
+ children: /* @__PURE__ */ y(x, {
1128
1381
  sx: {
1129
1382
  display: "flex",
1130
1383
  flexDirection: "column",
@@ -1134,38 +1387,40 @@ function Ve({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
1134
1387
  maxWidth: "100%",
1135
1388
  overflow: "hidden"
1136
1389
  },
1137
- children: e.children.map((e) => /* @__PURE__ */ s(Ve, {
1390
+ children: p.map((e) => /* @__PURE__ */ y(pt, {
1138
1391
  item: e,
1139
1392
  nested: !0,
1140
1393
  open: n,
1141
- LinkComponent: v,
1142
- pathname: b,
1143
- permissions: x
1394
+ LinkComponent: a,
1395
+ pathname: o,
1396
+ permissions: s,
1397
+ t: c,
1398
+ baseUrl: l,
1399
+ selectedPublicationId: u
1144
1400
  }, e.href))
1145
1401
  })
1146
1402
  })]
1147
- });
1148
- if (E && C) return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(d, {
1403
+ }) : O && m ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(x, {
1149
1404
  component: "button",
1150
1405
  type: "button",
1151
- "aria-label": e.label,
1152
- "aria-controls": j ? `sidebar-children-${e.href}` : void 0,
1406
+ "aria-label": d,
1407
+ "aria-controls": N ? `sidebar-children-${e.href}` : void 0,
1153
1408
  "aria-haspopup": "true",
1154
- "aria-expanded": j ? "true" : void 0,
1155
- onClick: (e) => A(e.currentTarget),
1156
- onMouseEnter: (e) => A(e.currentTarget),
1409
+ "aria-expanded": N ? "true" : void 0,
1410
+ onClick: (e) => M(e.currentTarget),
1411
+ onMouseEnter: (e) => M(e.currentTarget),
1157
1412
  sx: {
1158
- ...W.sxItem(T, t, E, !0),
1413
+ ...J.sxItem(g, t, O, !0),
1159
1414
  border: 0,
1160
1415
  background: "transparent",
1161
1416
  cursor: "pointer"
1162
1417
  },
1163
- children: M
1164
- }), /* @__PURE__ */ s(g, {
1418
+ children: P
1419
+ }), /* @__PURE__ */ y(E, {
1165
1420
  id: `sidebar-children-${e.href}`,
1166
- anchorEl: k,
1167
- open: j,
1168
- onClose: () => A(null),
1421
+ anchorEl: j,
1422
+ open: N,
1423
+ onClose: () => M(null),
1169
1424
  anchorOrigin: {
1170
1425
  vertical: "center",
1171
1426
  horizontal: "right"
@@ -1175,24 +1430,24 @@ function Ve({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
1175
1430
  horizontal: "left"
1176
1431
  },
1177
1432
  slotProps: {
1178
- paper: { sx: W.sxChildrenMenuPaper },
1433
+ paper: { sx: J.sxChildrenMenuPaper },
1179
1434
  list: {
1180
- onMouseLeave: () => A(null),
1435
+ onMouseLeave: () => M(null),
1181
1436
  sx: { py: 1 }
1182
1437
  }
1183
1438
  },
1184
- children: e.children.map((e) => {
1439
+ children: p.map((e) => {
1185
1440
  let t = e.icon;
1186
- return /* @__PURE__ */ c(_, {
1187
- component: v,
1188
- 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,
1441
+ return /* @__PURE__ */ b(D, {
1442
+ component: a,
1443
+ href: `${l}${e.href}`,
1444
+ onClick: () => M(null),
1445
+ sx: J.sxChildrenMenuItem(Y(o, e.href)),
1446
+ children: [/* @__PURE__ */ y(w, {
1447
+ sx: J.sxChildrenMenuListItemIcon,
1448
+ children: /* @__PURE__ */ y(t, {})
1449
+ }), /* @__PURE__ */ y(T, {
1450
+ primary: ct(e, c),
1196
1451
  slotProps: { primary: { sx: {
1197
1452
  fontSize: 14,
1198
1453
  fontWeight: 400,
@@ -1201,86 +1456,71 @@ function Ve({ item: e, nested: t = !1, open: n = !0, expanded: r, onToggleExpand
1201
1456
  })]
1202
1457
  }, e.href);
1203
1458
  })
1204
- })] });
1205
- let N = /* @__PURE__ */ s(d, {
1206
- component: v,
1459
+ })] }) : ft(n, d, /* @__PURE__ */ y(x, {
1460
+ component: a,
1207
1461
  href: e.href,
1208
- sx: W.sxItem(C ? T : w, t, E, C),
1209
- children: M
1210
- });
1211
- return Be(n, e.label, N);
1462
+ sx: J.sxItem(m ? g : h, t, O, m),
1463
+ children: P
1464
+ }));
1212
1465
  }
1213
- function He({ items: e, open: t, LinkComponent: n, pathname: r, permissions: c }) {
1214
- let [l, u] = a(i(() => {
1466
+ function mt({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions: i, t: a, baseUrl: o, selectedPublicationId: s }) {
1467
+ let [c, l] = _(g(() => {
1215
1468
  let t = {};
1216
- for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => K(r, e.href)));
1469
+ for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => Y(r, e.href)));
1217
1470
  return t;
1218
- }, [e, r])), d = (e) => {
1219
- u((t) => ({
1471
+ }, [e, r])), u = (e) => {
1472
+ l((t) => ({
1220
1473
  ...t,
1221
1474
  [e]: !t[e]
1222
1475
  }));
1223
1476
  };
1224
- return /* @__PURE__ */ s(o, { children: e.map((e) => /* @__PURE__ */ s(Ve, {
1477
+ return /* @__PURE__ */ y(v, { children: e.map((e) => /* @__PURE__ */ y(pt, {
1225
1478
  item: e,
1226
1479
  open: t,
1227
- permissions: c,
1228
- expanded: l[e.href],
1229
- onToggleExpand: e.children ? () => d(e.href) : void 0,
1480
+ permissions: i,
1481
+ expanded: c[e.href],
1482
+ onToggleExpand: dt(e, i).length > 0 ? () => u(e.href) : void 0,
1230
1483
  LinkComponent: n,
1231
- pathname: r
1484
+ pathname: r,
1485
+ t: a,
1486
+ baseUrl: o,
1487
+ selectedPublicationId: s
1232
1488
  }, e.href)) });
1233
1489
  }
1234
- function Ue({ open: e, pathname: t, permissions: n, LinkComponent: r = B }) {
1235
- return /* @__PURE__ */ s(d, {
1490
+ function ht({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = G, baseUrl: i, selectedPublicationId: a }) {
1491
+ let { t: o } = W();
1492
+ return /* @__PURE__ */ y(x, {
1236
1493
  component: "aside",
1237
- sx: W.sxRoot(e),
1238
- children: /* @__PURE__ */ s(d, {
1239
- sx: W.sxNavScroll,
1240
- children: /* @__PURE__ */ s(d, {
1494
+ sx: J.sxRoot(e),
1495
+ children: /* @__PURE__ */ y(x, {
1496
+ sx: J.sxNavScroll,
1497
+ children: /* @__PURE__ */ y(x, {
1241
1498
  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, {
1499
+ "aria-label": o.sidebar("navAriaLabel"),
1500
+ sx: J.sxNav(e),
1501
+ children: /* @__PURE__ */ y(mt, {
1245
1502
  permissions: n,
1246
- items: i,
1503
+ items: st,
1247
1504
  open: e,
1248
1505
  LinkComponent: r,
1249
- pathname: t
1250
- }, `section-${a}`) : null)
1506
+ pathname: t,
1507
+ t: o,
1508
+ baseUrl: i,
1509
+ selectedPublicationId: a
1510
+ })
1251
1511
  })
1252
1512
  })
1253
1513
  });
1254
1514
  }
1255
1515
  //#endregion
1256
- //#region src/lib/utils/site-selector.ts
1257
- var We = "#ECEDF6", q = "#D8E2FF", Ge = "#FFFFFF", Ke = "bluestack-es";
1258
- function J(e) {
1259
- return e.flatMap((e) => e.publications);
1260
- }
1261
- function qe(e, t) {
1262
- return J(e).find((e) => String(e.id) === t);
1263
- }
1264
- function Je(e, t) {
1265
- return J(e).find((e) => String(e.id) === t)?.description ?? "Seleccionar publicación";
1266
- }
1267
- function Ye(e) {
1268
- let t = J(e)[0];
1269
- return t ? String(t.id) : "1";
1270
- }
1271
- function Xe(e) {
1272
- let t = Number(e);
1273
- return Number.isFinite(t) && t > 0 ? t : 1;
1274
- }
1275
- //#endregion
1276
1516
  //#region src/lib/components/site-selector-menu/SiteSelectorMenu.styles.ts
1277
- var Y = {
1517
+ var X = {
1278
1518
  sxTriggerButton: (e) => ({
1279
1519
  height: 34,
1280
1520
  borderRadius: "8px",
1281
1521
  borderColor: e ? "transparent" : "m3.outline",
1282
1522
  color: "black",
1283
- bgcolor: e ? q : "transparent",
1523
+ bgcolor: e ? n : "transparent",
1284
1524
  textTransform: "none",
1285
1525
  fontSize: "12px",
1286
1526
  fontWeight: 500,
@@ -1291,13 +1531,13 @@ var Y = {
1291
1531
  flexShrink: 0,
1292
1532
  "&:hover": {
1293
1533
  borderColor: "m3.outline",
1294
- bgcolor: e ? q : "action.hover"
1534
+ bgcolor: e ? n : "action.hover"
1295
1535
  }
1296
1536
  }),
1297
1537
  sxTriggerIcon: { fontSize: 20 },
1298
1538
  sxMenuPaper: {
1299
1539
  mt: 1,
1300
- bgcolor: We,
1540
+ bgcolor: e,
1301
1541
  borderRadius: 2,
1302
1542
  marginTop: 0,
1303
1543
  boxShadow: "0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)",
@@ -1333,17 +1573,17 @@ var Y = {
1333
1573
  padding: "1rem",
1334
1574
  margin: ".65rem",
1335
1575
  borderRadius: "28px",
1336
- bgcolor: e ? q : Ge,
1576
+ bgcolor: e ? n : o,
1337
1577
  color: "m3.onSurfaceVariant",
1338
1578
  display: "flex",
1339
1579
  alignItems: "center",
1340
1580
  justifyContent: "space-between",
1341
1581
  gap: 1.5,
1342
1582
  whiteSpace: "nowrap",
1343
- "&:hover": { bgcolor: q },
1583
+ "&:hover": { bgcolor: n },
1344
1584
  "&.Mui-selected": {
1345
- bgcolor: q,
1346
- "&:hover": { bgcolor: q }
1585
+ bgcolor: n,
1586
+ "&:hover": { bgcolor: n }
1347
1587
  }
1348
1588
  }),
1349
1589
  sxMenuItemLabel: (e) => ({
@@ -1370,22 +1610,22 @@ var Y = {
1370
1610
  };
1371
1611
  //#endregion
1372
1612
  //#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", {
1613
+ function gt({ publication: e, selected: t, href: n, imageUrl: r }) {
1614
+ return /* @__PURE__ */ y("a", {
1375
1615
  href: n,
1376
1616
  style: {
1377
1617
  textDecoration: "none",
1378
1618
  color: "inherit"
1379
1619
  },
1380
- children: /* @__PURE__ */ c(_, {
1620
+ children: /* @__PURE__ */ b(D, {
1381
1621
  selected: t,
1382
- sx: Y.sxMenuItem(t),
1383
- children: [/* @__PURE__ */ s(y, {
1384
- sx: Y.sxMenuItemLabel(t),
1622
+ sx: X.sxMenuItem(t),
1623
+ children: [/* @__PURE__ */ y(k, {
1624
+ sx: X.sxMenuItemLabel(t),
1385
1625
  children: e.description
1386
- }), r ? /* @__PURE__ */ s(d, {
1387
- sx: Y.sxMenuItemLogoWrap,
1388
- children: /* @__PURE__ */ s("img", {
1626
+ }), r ? /* @__PURE__ */ y(x, {
1627
+ sx: X.sxMenuItemLogoWrap,
1628
+ children: /* @__PURE__ */ y("img", {
1389
1629
  src: r,
1390
1630
  alt: e.description,
1391
1631
  width: 90,
@@ -1395,27 +1635,27 @@ function Ze({ publication: e, selected: t, href: n, imageUrl: r }) {
1395
1635
  })
1396
1636
  });
1397
1637
  }
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);
1401
- }, p = () => {
1402
- l(null);
1403
- }, m = t ?? "";
1404
- return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(Te, {
1638
+ function _t({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolvePublicationImageUrl: r }) {
1639
+ let [i, a] = _(null), o = !!i, c = (e) => {
1640
+ a(e.currentTarget);
1641
+ }, l = () => {
1642
+ a(null);
1643
+ }, u = t ?? "";
1644
+ return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Ie, {
1405
1645
  id: "site-selector-button",
1406
- "aria-controls": u ? "site-selector-menu" : void 0,
1646
+ "aria-controls": o ? "site-selector-menu" : void 0,
1407
1647
  "aria-haspopup": "true",
1408
- "aria-expanded": u ? "true" : void 0,
1648
+ "aria-expanded": o ? "true" : void 0,
1409
1649
  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, {
1650
+ onClick: c,
1651
+ endIcon: /* @__PURE__ */ y(Fe, { sx: X.sxTriggerIcon }),
1652
+ sx: X.sxTriggerButton(o),
1653
+ children: s(e, u)
1654
+ }), /* @__PURE__ */ y(E, {
1415
1655
  id: "site-selector-menu",
1416
1656
  anchorEl: i,
1417
- open: u,
1418
- onClose: p,
1657
+ open: o,
1658
+ onClose: l,
1419
1659
  anchorOrigin: {
1420
1660
  vertical: "bottom",
1421
1661
  horizontal: "right"
@@ -1425,21 +1665,21 @@ function Qe({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
1425
1665
  horizontal: "right"
1426
1666
  },
1427
1667
  slotProps: {
1428
- paper: { sx: Y.sxMenuPaper },
1668
+ paper: { sx: X.sxMenuPaper },
1429
1669
  list: {
1430
1670
  "aria-labelledby": "site-selector-button",
1431
1671
  disablePadding: !0,
1432
- sx: Y.sxMenuList
1672
+ sx: X.sxMenuList
1433
1673
  }
1434
1674
  },
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,
1675
+ children: e.map((i, a) => /* @__PURE__ */ b(x, {
1676
+ sx: X.sxSection(a === e.length - 1),
1677
+ children: [/* @__PURE__ */ y(k, {
1678
+ sx: X.sxSectionTitle,
1439
1679
  children: i.title
1440
- }), /* @__PURE__ */ s(d, {
1441
- sx: Y.sxSectionGrid(i.fullWidth),
1442
- children: i.publications.map((e) => /* @__PURE__ */ s(Ze, {
1680
+ }), /* @__PURE__ */ y(x, {
1681
+ sx: X.sxSectionGrid(i.fullWidth),
1682
+ children: i.publications.map((e) => /* @__PURE__ */ y(gt, {
1443
1683
  publication: e,
1444
1684
  selected: Number(t) === e.id,
1445
1685
  href: n(e),
@@ -1449,7 +1689,7 @@ function Qe({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
1449
1689
  }, i.title))
1450
1690
  })] });
1451
1691
  }
1452
- var X = {
1692
+ var Z = {
1453
1693
  sxAppBar: {
1454
1694
  bgcolor: "m3.surfaceContainer",
1455
1695
  color: "m3.onSurfaceVariant",
@@ -1490,7 +1730,6 @@ var X = {
1490
1730
  sxIconActionsRow: {
1491
1731
  display: "flex",
1492
1732
  alignItems: "center",
1493
- width: 240,
1494
1733
  height: 48,
1495
1734
  flexShrink: 0
1496
1735
  },
@@ -1555,36 +1794,36 @@ var X = {
1555
1794
  };
1556
1795
  //#endregion
1557
1796
  //#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", {
1797
+ function vt(e, t) {
1798
+ let n = new Date(e);
1799
+ return Number.isNaN(n.getTime()) ? "" : n.toLocaleString(t, {
1561
1800
  day: "2-digit",
1562
1801
  month: "short",
1563
1802
  hour: "2-digit",
1564
1803
  minute: "2-digit"
1565
1804
  });
1566
1805
  }
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",
1806
+ function yt({ unreadCount: e, notifications: t }) {
1807
+ let { locale: n, t: r } = W(), [i, a] = _(null), o = !!i, s = rt(n), c = g(() => e > 0 ? e : void 0, [e]);
1808
+ return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(O, {
1809
+ title: r.notificationsMenu("title"),
1810
+ children: /* @__PURE__ */ y(C, {
1811
+ "aria-label": r.notificationsMenu("ariaLabel"),
1573
1812
  "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,
1813
+ "aria-expanded": o,
1814
+ onClick: (e) => a(e.currentTarget),
1815
+ sx: Z.sxActionIcon,
1816
+ children: /* @__PURE__ */ y(Le, {
1817
+ badgeContent: c,
1579
1818
  color: "error",
1580
- sx: X.sxBadge,
1581
- children: /* @__PURE__ */ s(ie, { sx: X.sxActionIconGlyph })
1819
+ sx: Z.sxBadge,
1820
+ children: /* @__PURE__ */ y(ce, { sx: Z.sxActionIconGlyph })
1582
1821
  })
1583
1822
  })
1584
- }), /* @__PURE__ */ c(g, {
1585
- anchorEl: n,
1586
- open: l,
1587
- onClose: () => r(null),
1823
+ }), /* @__PURE__ */ b(E, {
1824
+ anchorEl: i,
1825
+ open: o,
1826
+ onClose: () => a(null),
1588
1827
  anchorOrigin: {
1589
1828
  vertical: "bottom",
1590
1829
  horizontal: "right"
@@ -1600,50 +1839,50 @@ function Z({ unreadCount: e, notifications: t }) {
1600
1839
  borderRadius: 2,
1601
1840
  bgcolor: "m3.surfaceContainerHigh"
1602
1841
  } } },
1603
- children: [/* @__PURE__ */ c(d, {
1842
+ children: [/* @__PURE__ */ b(x, {
1604
1843
  sx: {
1605
1844
  px: 2,
1606
1845
  py: 1.5,
1607
1846
  borderBottom: 1,
1608
1847
  borderColor: "m3.outlineVariant"
1609
1848
  },
1610
- children: [/* @__PURE__ */ s(y, {
1849
+ children: [/* @__PURE__ */ y(k, {
1611
1850
  variant: "subtitle2",
1612
1851
  color: "m3.onSurface",
1613
- children: "Notificaciones"
1614
- }), e > 0 ? /* @__PURE__ */ c(y, {
1852
+ children: r.notificationsMenu("title")
1853
+ }), e > 0 ? /* @__PURE__ */ y(k, {
1615
1854
  variant: "caption",
1616
1855
  color: "m3.onSurfaceVariant",
1617
- children: [e, " sin leer"]
1856
+ children: r.notificationsMenu("unreadCount", { count: e })
1618
1857
  }) : null]
1619
- }), t.length === 0 ? /* @__PURE__ */ s(d, {
1858
+ }), t && t?.length === 0 ? /* @__PURE__ */ y(x, {
1620
1859
  sx: {
1621
1860
  px: 2,
1622
1861
  py: 3
1623
1862
  },
1624
- children: /* @__PURE__ */ s(y, {
1863
+ children: /* @__PURE__ */ y(k, {
1625
1864
  variant: "body2",
1626
1865
  color: "m3.onSurfaceVariant",
1627
1866
  sx: { textAlign: "center" },
1628
- children: "No hay notificaciones"
1867
+ children: r.notificationsMenu("empty")
1629
1868
  })
1630
- }) : /* @__PURE__ */ s(De, {
1869
+ }) : /* @__PURE__ */ y(Re, {
1631
1870
  dense: !0,
1632
1871
  disablePadding: !0,
1633
1872
  sx: { py: .5 },
1634
- children: t.map((e) => /* @__PURE__ */ s(Oe, {
1873
+ children: t && t.map((e) => /* @__PURE__ */ y(ze, {
1635
1874
  component: e.href ? "a" : "div",
1636
1875
  href: e.href,
1637
- onClick: () => r(null),
1876
+ onClick: () => a(null),
1638
1877
  sx: {
1639
1878
  alignItems: "flex-start",
1640
1879
  py: 1.25,
1641
- bgcolor: e.read ? "transparent" : "m3.secondaryContainer",
1642
- "&:hover": { bgcolor: e.read ? "action.hover" : "m3.secondaryContainer" }
1880
+ bgcolor: e.read ? "transparent" : "secondary.light",
1881
+ "&:hover": { bgcolor: e.read ? "action.hover" : "secondary.light" }
1643
1882
  },
1644
- children: /* @__PURE__ */ s(h, {
1883
+ children: /* @__PURE__ */ y(T, {
1645
1884
  primary: e.title,
1646
- secondary: /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(y, {
1885
+ secondary: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(k, {
1647
1886
  component: "span",
1648
1887
  variant: "body2",
1649
1888
  color: "m3.onSurfaceVariant",
@@ -1652,7 +1891,7 @@ function Z({ unreadCount: e, notifications: t }) {
1652
1891
  mt: .25
1653
1892
  },
1654
1893
  children: e.message
1655
- }), /* @__PURE__ */ s(y, {
1894
+ }), /* @__PURE__ */ y(k, {
1656
1895
  component: "span",
1657
1896
  variant: "caption",
1658
1897
  color: "m3.onSurfaceVariant",
@@ -1660,7 +1899,7 @@ function Z({ unreadCount: e, notifications: t }) {
1660
1899
  display: "block",
1661
1900
  mt: .5
1662
1901
  },
1663
- children: $e(e.createdAt)
1902
+ children: vt(e.createdAt, s)
1664
1903
  })] }),
1665
1904
  slotProps: { primary: {
1666
1905
  variant: "subtitle2",
@@ -1674,52 +1913,39 @@ function Z({ unreadCount: e, notifications: t }) {
1674
1913
  }
1675
1914
  //#endregion
1676
1915
  //#region src/lib/utils/cms-asset.ts
1677
- var et = "https://dev.cms-medios.com";
1678
- function tt(e) {
1916
+ var bt = "https://dev.cms-medios.com";
1917
+ function xt(e) {
1679
1918
  let t = e?.trim();
1680
- return t ? t.replace(/\/$/, "") : et;
1919
+ return t ? t.replace(/\/$/, "") : bt;
1681
1920
  }
1682
- function nt(e, t) {
1921
+ function St(e, t) {
1683
1922
  if (!e) return "";
1684
1923
  if (e.startsWith("http://") || e.startsWith("https://")) return e;
1685
1924
  let n = e.startsWith("/") ? e : `/${e}`;
1686
- return `${tt(t)}${n}`;
1925
+ return `${xt(t)}${n}`;
1687
1926
  }
1688
1927
  //#endregion
1689
1928
  //#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);
1929
+ var Ct = "noPicture", wt = "/topbar_profile.png";
1930
+ function Tt(e, t) {
1931
+ let { image: n } = e, r = t?.fallbackAvatar ?? wt;
1932
+ return !n || n === Ct ? r : St(n, t?.cmsOrigin);
1694
1933
  }
1695
- function ot(e) {
1934
+ function Et(e) {
1696
1935
  if (e.fullName?.trim()) return e.fullName.trim();
1697
1936
  let t = [e.firstName, e.lastName].filter(Boolean);
1698
1937
  return t.length > 0 ? t.join(" ") : e.userName;
1699
1938
  }
1700
1939
  //#endregion
1701
1940
  //#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(_, {
1941
+ function Dt({ label: e, icon: t, onSelect: n }) {
1942
+ return /* @__PURE__ */ b(D, {
1717
1943
  onClick: n,
1718
- sx: X.sxProfileMenuItem,
1719
- children: [/* @__PURE__ */ s(m, {
1720
- sx: X.sxProfileMenuListItemIcon,
1721
- children: /* @__PURE__ */ s(t, {})
1722
- }), /* @__PURE__ */ s(h, {
1944
+ sx: Z.sxProfileMenuItem,
1945
+ children: [/* @__PURE__ */ y(w, {
1946
+ sx: Z.sxProfileMenuListItemIcon,
1947
+ children: /* @__PURE__ */ y(t, {})
1948
+ }), /* @__PURE__ */ y(T, {
1723
1949
  primary: e,
1724
1950
  slotProps: { primary: { sx: {
1725
1951
  fontSize: 14,
@@ -1729,37 +1955,49 @@ function lt({ label: e, icon: t, onSelect: n }) {
1729
1955
  })]
1730
1956
  });
1731
1957
  }
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();
1958
+ function Ot({ profile: e, avatarOptions: t }) {
1959
+ let { t: n } = W(), [r, i] = _(null), a = !!r, o = Et(e), s = Tt(e, t), c = s.startsWith("/"), l = g(() => [{
1960
+ id: "profile",
1961
+ labelKey: "myProfile",
1962
+ icon: He
1963
+ }, {
1964
+ id: "webmaster",
1965
+ labelKey: "webmasterView",
1966
+ icon: Be
1967
+ }], []), u = g(() => ({
1968
+ id: "sign-off",
1969
+ labelKey: "signOff",
1970
+ icon: Ve
1971
+ }), []), d = () => i(null), f = (e) => {
1972
+ d();
1735
1973
  };
1736
- return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(p, {
1974
+ return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(C, {
1737
1975
  id: "profile-menu-button",
1738
- "aria-label": "Mi perfil",
1739
- "aria-controls": i ? "profile-menu" : void 0,
1976
+ "aria-label": n.profileMenu("ariaLabel"),
1977
+ "aria-controls": a ? "profile-menu" : void 0,
1740
1978
  "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, {
1979
+ "aria-expanded": a ? "true" : void 0,
1980
+ onClick: (e) => i(e.currentTarget),
1981
+ sx: Z.sxProfileButton,
1982
+ children: /* @__PURE__ */ y(Ue, {
1983
+ sx: Z.sxProfileAvatar,
1984
+ children: /* @__PURE__ */ y(x, {
1747
1985
  component: "img",
1748
- src: u,
1986
+ src: s,
1749
1987
  alt: "",
1750
1988
  sx: {
1751
1989
  width: "100%",
1752
1990
  height: "100%",
1753
1991
  objectFit: "cover"
1754
1992
  },
1755
- ...f ? {} : { crossOrigin: "anonymous" }
1993
+ ...c ? {} : { crossOrigin: "anonymous" }
1756
1994
  })
1757
1995
  })
1758
- }), /* @__PURE__ */ c(g, {
1996
+ }), /* @__PURE__ */ b(E, {
1759
1997
  id: "profile-menu",
1760
- anchorEl: n,
1761
- open: i,
1762
- onClose: m,
1998
+ anchorEl: r,
1999
+ open: a,
2000
+ onClose: d,
1763
2001
  anchorOrigin: {
1764
2002
  vertical: "bottom",
1765
2003
  horizontal: "right"
@@ -1769,127 +2007,125 @@ function ut({ profile: e, avatarOptions: t }) {
1769
2007
  horizontal: "right"
1770
2008
  },
1771
2009
  slotProps: {
1772
- paper: { sx: X.sxProfileMenuPaper },
2010
+ paper: { sx: Z.sxProfileMenuPaper },
1773
2011
  list: { disablePadding: !0 }
1774
2012
  },
1775
2013
  children: [
1776
- /* @__PURE__ */ c(d, {
2014
+ /* @__PURE__ */ b(x, {
1777
2015
  sx: {
1778
2016
  px: 2,
1779
2017
  py: 1.5,
1780
2018
  borderBottom: 1,
1781
2019
  borderColor: "divider"
1782
2020
  },
1783
- children: [/* @__PURE__ */ s(y, {
2021
+ children: [/* @__PURE__ */ y(k, {
1784
2022
  variant: "subtitle2",
1785
2023
  sx: {
1786
2024
  fontWeight: 600,
1787
2025
  color: "#191C22"
1788
2026
  },
1789
- children: l
1790
- }), /* @__PURE__ */ s(y, {
2027
+ children: o
2028
+ }), /* @__PURE__ */ y(k, {
1791
2029
  variant: "caption",
1792
2030
  sx: { color: "#414752" },
1793
2031
  children: e.email
1794
2032
  })]
1795
2033
  }),
1796
- st.map((e) => /* @__PURE__ */ s(lt, {
1797
- ...e,
1798
- onSelect: () => h(e.id)
2034
+ l.map((e) => /* @__PURE__ */ y(Dt, {
2035
+ label: n.profileMenu(e.labelKey),
2036
+ icon: e.icon,
2037
+ onSelect: () => f(e.id)
1799
2038
  }, e.id)),
1800
- /* @__PURE__ */ s(Ne, { sx: X.sxProfileMenuDivider }),
1801
- /* @__PURE__ */ s(lt, {
1802
- ...ct,
1803
- onSelect: () => h(ct.id)
2039
+ /* @__PURE__ */ y(We, { sx: Z.sxProfileMenuDivider }),
2040
+ /* @__PURE__ */ y(Dt, {
2041
+ label: n.profileMenu(u.labelKey),
2042
+ icon: u.icon,
2043
+ onSelect: () => f(u.id)
1804
2044
  })
1805
2045
  ]
1806
2046
  })] });
1807
2047
  }
1808
2048
  //#endregion
1809
2049
  //#region src/lib/components/top-bar/TopBar.tsx
1810
- function dt() {
1811
- return /* @__PURE__ */ s(d, {
2050
+ function kt() {
2051
+ return /* @__PURE__ */ y(x, {
1812
2052
  component: "span",
1813
2053
  role: "separator",
1814
2054
  "aria-orientation": "vertical",
1815
- sx: X.sxDivider
2055
+ sx: Z.sxDivider
1816
2056
  });
1817
2057
  }
1818
- function Q({ title: e, icon: t }) {
1819
- return /* @__PURE__ */ s(v, {
2058
+ function At({ title: e, icon: t }) {
2059
+ return /* @__PURE__ */ y(O, {
1820
2060
  title: e,
1821
- children: /* @__PURE__ */ s(p, {
2061
+ children: /* @__PURE__ */ y(C, {
1822
2062
  "aria-label": e,
1823
- sx: X.sxActionIcon,
1824
- children: /* @__PURE__ */ s(t, { sx: X.sxActionIconGlyph })
2063
+ sx: Z.sxActionIcon,
2064
+ children: /* @__PURE__ */ y(t, { sx: Z.sxActionIconGlyph })
1825
2065
  })
1826
2066
  });
1827
2067
  }
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
2068
+ function Q({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: s, selectedPublicationId: c, getPublicationHref: l, resolvePublicationImageUrl: u, profileAvatarOptions: d }) {
2069
+ let { t: f } = W(), p = [{
2070
+ title: f.topBar("analytics"),
2071
+ icon: Ae
1832
2072
  }, {
1833
- title: "Ayuda",
1834
- icon: ye
2073
+ title: f.topBar("help"),
2074
+ icon: je
1835
2075
  }];
1836
- return /* @__PURE__ */ s(Se, {
2076
+ return /* @__PURE__ */ y(Ne, {
1837
2077
  position: "static",
1838
2078
  elevation: 0,
1839
- sx: X.sxAppBar,
1840
- children: /* @__PURE__ */ c(Ce, {
2079
+ sx: Z.sxAppBar,
2080
+ children: /* @__PURE__ */ b(Pe, {
1841
2081
  disableGutters: !0,
1842
2082
  variant: "dense",
1843
- sx: X.sxToolbar,
2083
+ sx: Z.sxToolbar,
1844
2084
  children: [
1845
- /* @__PURE__ */ s(p, {
1846
- "aria-label": t ? "Cerrar menú lateral" : "Abrir menú lateral",
2085
+ /* @__PURE__ */ y(C, {
2086
+ "aria-label": t ? f.topBar("closeSidebar") : f.topBar("openSidebar"),
1847
2087
  "aria-expanded": t,
1848
2088
  onClick: n,
1849
- sx: X.sxMenuButton,
1850
- children: /* @__PURE__ */ s(xe, { sx: X.sxMenuButtonIcon })
2089
+ sx: Z.sxMenuButton,
2090
+ children: /* @__PURE__ */ y(Me, { sx: Z.sxMenuButtonIcon })
1851
2091
  }),
1852
- /* @__PURE__ */ s(d, {
1853
- sx: X.sxLogoBox,
2092
+ /* @__PURE__ */ y(x, {
2093
+ sx: Z.sxLogoBox,
1854
2094
  children: o
1855
2095
  }),
1856
- /* @__PURE__ */ s(d, { sx: { flex: 1 } }),
1857
- /* @__PURE__ */ c(d, {
1858
- sx: X.sxActionsFrame,
2096
+ /* @__PURE__ */ y(x, { sx: { flex: 1 } }),
2097
+ /* @__PURE__ */ b(x, {
2098
+ sx: Z.sxActionsFrame,
1859
2099
  children: [
1860
- /* @__PURE__ */ c(d, {
1861
- sx: X.sxIconActionsRow,
2100
+ /* @__PURE__ */ b(x, {
2101
+ sx: Z.sxIconActionsRow,
1862
2102
  children: [
1863
- /* @__PURE__ */ s(Q, {
1864
- title: "Nuevo",
1865
- icon: _e
2103
+ /* @__PURE__ */ y(At, {
2104
+ title: f.topBar("new"),
2105
+ icon: ke
1866
2106
  }),
1867
- /* @__PURE__ */ s(Z, {
2107
+ /* @__PURE__ */ y(yt, {
1868
2108
  unreadCount: r,
1869
2109
  notifications: i
1870
2110
  }),
1871
- /* @__PURE__ */ s(Q, {
1872
- title: "Idioma",
1873
- icon: be
1874
- }),
1875
- g.map(({ title: e, icon: t }) => /* @__PURE__ */ s(Q, {
2111
+ p.map(({ title: e, icon: t }) => /* @__PURE__ */ y(At, {
1876
2112
  title: e,
1877
2113
  icon: t
1878
2114
  }, e))
1879
2115
  ]
1880
2116
  }),
1881
- /* @__PURE__ */ s(dt, {}),
1882
- l,
1883
- /* @__PURE__ */ s(Qe, {
2117
+ /* @__PURE__ */ y(kt, {}),
2118
+ s,
2119
+ /* @__PURE__ */ y(_t, {
1884
2120
  sites: e,
1885
- selectedPublicationId: u,
1886
- getPublicationHref: f,
1887
- resolvePublicationImageUrl: m
2121
+ selectedPublicationId: c,
2122
+ getPublicationHref: l,
2123
+ resolvePublicationImageUrl: u
1888
2124
  }),
1889
- /* @__PURE__ */ s(dt, {}),
1890
- /* @__PURE__ */ s(ut, {
2125
+ /* @__PURE__ */ y(kt, {}),
2126
+ /* @__PURE__ */ y(Ot, {
1891
2127
  profile: a,
1892
- avatarOptions: h
2128
+ avatarOptions: d
1893
2129
  })
1894
2130
  ]
1895
2131
  })
@@ -1898,65 +2134,117 @@ function $({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCou
1898
2134
  });
1899
2135
  }
1900
2136
  //#endregion
2137
+ //#region src/lib/components/shell/AppShell.styles.ts
2138
+ var $ = {
2139
+ sxRoot: {
2140
+ display: "flex",
2141
+ flexDirection: "column",
2142
+ flex: 1,
2143
+ height: "100%",
2144
+ minHeight: 0,
2145
+ overflow: "hidden",
2146
+ bgcolor: "m3.surfaceContainer"
2147
+ },
2148
+ sxHeader: { flexShrink: 0 },
2149
+ sxBody: {
2150
+ display: "flex",
2151
+ flex: 1,
2152
+ minHeight: 0,
2153
+ overflow: "hidden"
2154
+ },
2155
+ sxMain: {
2156
+ display: "flex",
2157
+ flexDirection: "column",
2158
+ flex: 1,
2159
+ minWidth: 0,
2160
+ minHeight: 0,
2161
+ overflowY: "auto",
2162
+ overflowX: "hidden",
2163
+ mt: "10px",
2164
+ pt: 1,
2165
+ pb: 3,
2166
+ pr: 3
2167
+ }
2168
+ };
2169
+ //#endregion
1901
2170
  //#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
2171
+ function jt({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notifications: i, profile: a, primaryLogo: o, brandLogo: s, selectedPublicationId: c, getPublicationHref: l, resolvePublicationImageUrl: u, profileAvatarOptions: d, LinkComponent: f = G, permissions: p, locale: m, language: h, messages: g, baseUrl: v }) {
2172
+ let [S, ee] = _(!0);
2173
+ return /* @__PURE__ */ y(nt, {
2174
+ locale: m,
2175
+ language: h,
2176
+ messages: g,
2177
+ children: /* @__PURE__ */ b(x, {
2178
+ sx: $.sxRoot,
2179
+ children: [/* @__PURE__ */ y(x, {
2180
+ component: "header",
2181
+ sx: $.sxHeader,
2182
+ children: /* @__PURE__ */ y(Q, {
2183
+ sites: t,
2184
+ sidebarOpen: S,
2185
+ onToggleSidebar: () => ee((e) => !e),
2186
+ notificationUnreadCount: r,
2187
+ notifications: i,
2188
+ profile: a,
2189
+ primaryLogo: o,
2190
+ brandLogo: s,
2191
+ selectedPublicationId: c,
2192
+ getPublicationHref: l,
2193
+ resolvePublicationImageUrl: u,
2194
+ profileAvatarOptions: d
2195
+ })
2196
+ }), /* @__PURE__ */ b(x, {
2197
+ sx: $.sxBody,
2198
+ children: [/* @__PURE__ */ y(ht, {
2199
+ open: S,
2200
+ pathname: e,
2201
+ LinkComponent: f,
2202
+ permissions: p,
2203
+ baseUrl: v,
2204
+ selectedPublicationId: c
2205
+ }), /* @__PURE__ */ y(x, {
2206
+ component: "main",
2207
+ sx: $.sxMain,
2208
+ children: n
2209
+ })]
1930
2210
  })]
1931
- })]
2211
+ })
1932
2212
  });
1933
2213
  }
1934
2214
  //#endregion
1935
2215
  //#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,
2216
+ var Mt = R();
2217
+ function Nt({ children: e }) {
2218
+ return /* @__PURE__ */ b(u, {
2219
+ theme: Mt,
1940
2220
  defaultMode: "light",
1941
2221
  storageManager: null,
1942
- children: [/* @__PURE__ */ s(F, { enableColorScheme: !0 }), t]
2222
+ children: [/* @__PURE__ */ y(F, { enableColorScheme: !0 }), e]
1943
2223
  });
1944
2224
  }
1945
2225
  //#endregion
1946
2226
  //#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
1947
- var ht = z();
1948
- function gt({ children: t }) {
1949
- return /* @__PURE__ */ s(Pe, {
2227
+ var Pt = R();
2228
+ function Ft({ children: e }) {
2229
+ return /* @__PURE__ */ y(Ge, {
1950
2230
  options: { enableCssLayer: !0 },
1951
- children: /* @__PURE__ */ c(e, {
1952
- theme: ht,
2231
+ children: /* @__PURE__ */ b(u, {
2232
+ theme: Pt,
1953
2233
  defaultMode: "light",
1954
2234
  storageManager: null,
1955
- children: [/* @__PURE__ */ s(F, { enableColorScheme: !0 }), t]
2235
+ children: [/* @__PURE__ */ y(F, { enableColorScheme: !0 }), /* @__PURE__ */ y(x, {
2236
+ sx: {
2237
+ display: "flex",
2238
+ flexDirection: "column",
2239
+ height: "100%",
2240
+ minHeight: "100dvh"
2241
+ },
2242
+ children: e
2243
+ })]
1956
2244
  })
1957
2245
  });
1958
2246
  }
1959
2247
  //#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 };
2248
+ export { st as ACCOUNT_NAV_BLOCKS, jt as AppShell, c as CmsCommonServices, nt as CmsI18nProvider, Nt as CmsMuiProvider, $e as DEFAULT_LOCALE, i as DEFAULT_SITE_ID, G as DefaultCmsLink, o as ITEM_DEFAULT_BG, n as ITEM_HOVER_BG, Ke as LIB_VERSION, e as MENU_BG, Ft as NextCmsMuiProvider, yt as NotificationsMenu, Ot as ProfileMenu, U as SUPPORTED_LOCALES, ht as Sidebar, _t as SiteSelectorMenu, Q as TopBar, R as createAppTheme, z as createTranslator, B as defaultLocaleCatalog, Xe as enMessages, Ze as esMessages, a as findPublicationBySlug, s as findPublicationLabel, t as getAllPublications, r as getDefaultPublicationSlug, rt as getIntlLocaleTag, Tt as getProfileAvatarSrc, Et as getProfileDisplayName, H as mergeMessages, et as normalizeLocale, l as parsePublicationSlug, Qe as ptMessages, St as resolveCmsAssetUrl, xt as resolveCmsOrigin, W as useCmsTranslation };
1961
2249
 
1962
2250
  //# sourceMappingURL=index.js.map