@m4l/components 9.17.1-beta-feature-731-m4l-components-code-editor.0 → 9.18.0

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.
Files changed (170) hide show
  1. package/@types/types.d.ts +0 -11
  2. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts +2 -1
  3. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts.map +1 -1
  4. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +30 -41
  5. package/components/CommonActions/components/ActionFormCancel/types.d.ts +2 -2
  6. package/components/CommonActions/index.d.ts +1 -0
  7. package/components/CommonActions/index.d.ts.map +1 -1
  8. package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +3 -14
  9. package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
  10. package/components/DragResizeWindowRND/DragResizeWindowRND.js +105 -119
  11. package/components/DragResizeWindowRND/helpers/index.d.ts +1 -0
  12. package/components/DragResizeWindowRND/helpers/index.d.ts.map +1 -1
  13. package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts +15 -0
  14. package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts.map +1 -0
  15. package/components/DragResizeWindowRND/helpers/resizeHandles.js +68 -0
  16. package/components/DragResizeWindowRND/types.d.ts +3 -1
  17. package/components/DragResizeWindowRND/types.d.ts.map +1 -1
  18. package/components/WindowBase/WindowBase.d.ts.map +1 -1
  19. package/components/WindowBase/WindowBase.js +49 -49
  20. package/components/WindowBase/WindowBase.styles.d.ts +1 -1
  21. package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
  22. package/components/WindowBase/WindowBase.styles.js +37 -12
  23. package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +19 -34
  24. package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts.map +1 -1
  25. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +18 -18
  26. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +2 -5
  27. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
  28. package/components/areas/components/AreasAdmin/AreasAdmin.js +24 -24
  29. package/components/areas/components/AreasAdmin/helper.d.ts +1 -4
  30. package/components/areas/components/AreasAdmin/helper.d.ts.map +1 -1
  31. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +2 -26
  32. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts.map +1 -1
  33. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +72 -71
  34. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +1 -1
  35. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +17 -17
  36. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -24
  37. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts.map +1 -1
  38. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +58 -57
  39. package/components/areas/components/AreasAdmin/types.d.ts +9 -9
  40. package/components/areas/components/AreasViewer/AreasViewer.styles.d.ts.map +1 -1
  41. package/components/areas/components/AreasViewer/AreasViewer.styles.js +174 -6
  42. package/components/areas/components/AreasViewer/constants.d.ts +12 -0
  43. package/components/areas/components/AreasViewer/constants.d.ts.map +1 -1
  44. package/components/areas/components/AreasViewer/constants.js +5 -2
  45. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +9 -0
  46. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts.map +1 -1
  47. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +2 -2
  48. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +27 -0
  49. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts.map +1 -1
  50. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +62 -25
  51. package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts +1 -4
  52. package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts.map +1 -1
  53. package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +4 -4
  54. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts +1 -2
  55. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
  56. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts +1 -1
  57. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts.map +1 -1
  58. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +12 -11
  59. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts +78 -0
  60. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts.map +1 -0
  61. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.js +86 -0
  62. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts +33 -0
  63. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts.map +1 -0
  64. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.js +91 -0
  65. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts +6 -0
  66. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts.map +1 -0
  67. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.js +45 -0
  68. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts +16 -0
  69. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts.map +1 -0
  70. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.js +105 -0
  71. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts +6 -0
  72. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts.map +1 -0
  73. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.js +158 -0
  74. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts +15 -0
  75. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts.map +1 -0
  76. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.js +19 -0
  77. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts +14 -0
  78. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts.map +1 -0
  79. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.js +35 -0
  80. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts +7 -0
  81. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts.map +1 -0
  82. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.js +68 -0
  83. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +61 -0
  84. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts.map +1 -1
  85. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +3 -6
  86. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts.map +1 -1
  87. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +45 -45
  88. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -3
  89. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts.map +1 -1
  90. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
  91. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts.map +1 -1
  92. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +68 -40
  93. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +6 -11
  94. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts.map +1 -1
  95. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +77 -76
  96. package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +3 -5
  97. package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts.map +1 -1
  98. package/components/areas/contexts/AreasContext/helpers/helper.d.ts +20 -15
  99. package/components/areas/contexts/AreasContext/helpers/helper.d.ts.map +1 -1
  100. package/components/areas/contexts/AreasContext/helpers/helper.js +8 -7
  101. package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
  102. package/components/areas/contexts/AreasContext/index.js +51 -48
  103. package/components/areas/contexts/AreasContext/store.d.ts +2 -3
  104. package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
  105. package/components/areas/contexts/AreasContext/store.js +397 -290
  106. package/components/areas/contexts/AreasContext/types.d.ts +109 -85
  107. package/components/areas/contexts/AreasContext/types.d.ts.map +1 -1
  108. package/components/areas/dictionary.d.ts +3 -0
  109. package/components/areas/dictionary.d.ts.map +1 -1
  110. package/components/areas/dictionary.js +9 -6
  111. package/components/areas/hooks/useAreas/index.d.ts +2 -2
  112. package/components/areas/hooks/useAreas/index.js +4 -4
  113. package/components/areas/types.d.ts +173 -47
  114. package/components/areas/types.d.ts.map +1 -1
  115. package/components/areas/utils/useOnClickOutside/index.d.ts +2 -1
  116. package/components/areas/utils/useOnClickOutside/index.d.ts.map +1 -1
  117. package/components/areas/utils/useOnClickOutside/index.js +15 -0
  118. package/components/extended/index.d.ts +0 -1
  119. package/components/extended/index.d.ts.map +1 -1
  120. package/components/hook-form/index.d.ts +0 -1
  121. package/components/hook-form/index.d.ts.map +1 -1
  122. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +5 -4
  123. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
  124. package/components/popups/components/PopupsProvider/hooks/usePopups.js +2 -2
  125. package/hooks/index.d.ts +1 -0
  126. package/hooks/index.d.ts.map +1 -1
  127. package/hooks/useWindowCloseGuard/index.d.ts +18 -0
  128. package/hooks/useWindowCloseGuard/index.d.ts.map +1 -0
  129. package/hooks/useWindowCloseGuard/index.js +56 -0
  130. package/index.js +664 -675
  131. package/package.json +7 -10
  132. package/test/mocks/dictionary-mock.d.ts +2 -0
  133. package/test/mocks/dictionary-mock.d.ts.map +1 -1
  134. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +0 -6
  135. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +0 -1
  136. package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +0 -247
  137. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +0 -3
  138. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +0 -1
  139. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +0 -297
  140. package/components/extended/ReactSimpleCodeEditor/constants.d.ts +0 -82
  141. package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +0 -1
  142. package/components/extended/ReactSimpleCodeEditor/constants.js +0 -149
  143. package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +0 -11
  144. package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +0 -1
  145. package/components/extended/ReactSimpleCodeEditor/dictionary.js +0 -7
  146. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +0 -59
  147. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +0 -1
  148. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +0 -1063
  149. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +0 -6
  150. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +0 -1
  151. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +0 -7
  152. package/components/extended/ReactSimpleCodeEditor/index.d.ts +0 -4
  153. package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +0 -1
  154. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +0 -18
  155. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +0 -1
  156. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +0 -4
  157. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +0 -84
  158. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +0 -1
  159. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +0 -63
  160. package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +0 -3
  161. package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +0 -1
  162. package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts +0 -15
  163. package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts.map +0 -1
  164. package/components/extended/ReactSimpleCodeEditor/types.d.ts +0 -127
  165. package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +0 -1
  166. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +0 -7
  167. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +0 -1
  168. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +0 -6
  169. package/components/hook-form/RHFCodeEditor/index.d.ts +0 -3
  170. package/components/hook-form/RHFCodeEditor/index.d.ts.map +0 -1
@@ -1,8 +1,5 @@
1
1
  /**
2
- * Función para realizar una comparación superficial entre dos objetos.
3
- * @param objA Primer objeto a comparar.
4
- * @param objB Segundo objeto a comparar.
5
- * @returns Booleano que indica si los objetos son iguales superficialmente.
2
+ * Compare two area collections shallowly by array shape and area names.
6
3
  */
7
4
  export declare function shallowAreas<T>(objA: T, objB: T): boolean;
8
5
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/helper.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CA8BzD"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/helper.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CA8BzD"}
@@ -1,31 +1,7 @@
1
1
  import { AreaChipProps } from './types';
2
2
  /**
3
- * Componente de chip de área.
4
- *
5
- * Props:
6
- * - areaId: string - The ID of the area.
7
- * - selected: boolean - Indicates if the chip is selected.
8
- * - disabled: boolean - Indicates if the chip is disabled.
9
- * - setAnchorMenuAreas: (element: HTMLElement) => void - Function to set the anchor element for the menu.
10
- *
11
- * Constants:
12
- * - host_static_assets: string - The host for static assets.
13
- * - environment_assets: string - The environment-specific assets.
14
- * - deleteArea: (areaId: string) => void - Function to delete an area.
15
- * - selectArea: (areaId: string) => void - Function to select an area.
16
- * - editArea: (areaId: string, data: any) => void - Function to edit an area.
17
- * - setFocus: (focus: boolean) => void - Function to set focus.
18
- * - areaName: string - The name of the area.
19
- * - listAreas: string[] - List of area IDs.
20
- * - open: boolean - State to control the open/close state of the popover.
21
- * - getLabel: (key: string) => string - Function to get a label from the dictionary.
22
- * - isDesktop: boolean - Indicates if the current view is desktop.
23
- * - anchorRef: React.RefObject<null> - Reference to the anchor element.
24
- * - theme: Theme - The current theme.
25
- * - initialValues: { inputEditArea: string } - Initial values for the form.
26
- * - validationSchema: Yup.ObjectSchema - Validation schema for the form.
27
- * - rippleRef: React.RefObject<any> - Reference to the ripple effect.
28
- *
3
+ * Render one desktop area chip together with its edit/delete affordances.
4
+ * The `disabled` prop is currently used to block destructive delete actions when only one area remains.
29
5
  */
30
6
  export declare const AreaChip: {
31
7
  (props: AreaChipProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"AreaChip.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAqC,MAAM,SAAS,CAAC;AAgB3E;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAkL5C,CAAC"}
1
+ {"version":3,"file":"AreaChip.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAqC,MAAM,SAAS,CAAC;AAgB3E;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAoL5C,CAAC"}
@@ -1,91 +1,92 @@
1
- import { jsxs as p, Fragment as V, jsx as t } from "@emotion/react/jsx-runtime";
2
- import { useState as x, useRef as y, useMemo as H } from "react";
3
- import * as L from "yup";
1
+ import { jsxs as p, Fragment as H, jsx as t } from "@emotion/react/jsx-runtime";
2
+ import { useState as L, useRef as y, useMemo as Y } from "react";
3
+ import * as B from "yup";
4
4
  import { useAreasStore as d } from "../../../../hooks/useAreas/index.js";
5
- import { Typography as Y } from "@m4l/base";
6
- import { useIsMobile as B } from "@m4l/graphics";
7
- import { ChipActionsMobile as q } from "./subcomponents/ChipActionsMobile/ChipActionsMobile.js";
8
- import { shallow as b } from "zustand/shallow";
9
- import { AreaChipRootStyled as K, AreaContainerChipEditButtonStyled as U, ChipAreasStyled as G, MenuActionsChipStyled as J, EditAreaChipContainerStyled as Q, EditAreaHeaderStyled as W } from "../../slots/AreasAdminSlots.js";
10
- import { useComponentSize as X } from "../../../../../../hooks/useComponentSize/index.js";
11
- import { useModuleDictionary as Z, useEnvironment as ee } from "@m4l/core";
12
- import { ICONS as u } from "../../../../icons.js";
5
+ import { Typography as q } from "@m4l/base";
6
+ import { useIsMobile as K } from "@m4l/graphics";
7
+ import { ChipActionsMobile as U } from "./subcomponents/ChipActionsMobile/ChipActionsMobile.js";
8
+ import { shallow as I } from "zustand/shallow";
9
+ import { AreaChipRootStyled as G, AreaContainerChipEditButtonStyled as J, ChipAreasStyled as Q, MenuActionsChipStyled as W, EditAreaChipContainerStyled as X, EditAreaHeaderStyled as Z } from "../../slots/AreasAdminSlots.js";
10
+ import { useComponentSize as ee } from "../../../../../../hooks/useComponentSize/index.js";
11
+ import { useModuleDictionary as te, useEnvironment as oe } from "@m4l/core";
12
+ import { ICONS as A } from "../../../../icons.js";
13
13
  import { getAreasDictionary as i, AREAS_DICCTIONARY as a } from "../../../../dictionary.js";
14
- import { AREAS_ADMIN_KEY_COMPONENT as te } from "../../constants.js";
15
- import { getComponentClasses as oe } from "../../../../../../utils/getComponentSlotRoot.js";
16
- import { createValidationSchema as re, createValidationFullObject as ne, createValidationPartialObject as ie } from "../../../../../hook-form/RHFormProvider/schema.js";
17
- import { AreasAdminSlots as ae } from "../../slots/AreasAdminEnum.js";
18
- import { RHFormProvider as se } from "../../../../../hook-form/RHFormProvider/RHFormProvider.js";
19
- import { RHFTextField as le } from "../../../../../hook-form/RHFTextField/RHFTextField.js";
20
- import { ActionsContainer as ce } from "../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
21
- import { Popover as me } from "../../../../../extended/mui/Popover/Popover.js";
22
- import { ActionCancel as pe } from "../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
23
- import { ActionIntro as de } from "../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
24
- const ue = (I) => {
14
+ import { AREAS_ADMIN_KEY_COMPONENT as re } from "../../constants.js";
15
+ import { getComponentClasses as ne } from "../../../../../../utils/getComponentSlotRoot.js";
16
+ import { createValidationSchema as ie, createValidationFullObject as ae, createValidationPartialObject as se } from "../../../../../hook-form/RHFormProvider/schema.js";
17
+ import { AreasAdminSlots as le } from "../../slots/AreasAdminEnum.js";
18
+ import { RHFormProvider as ce } from "../../../../../hook-form/RHFormProvider/RHFormProvider.js";
19
+ import { RHFTextField as me } from "../../../../../hook-form/RHFTextField/RHFTextField.js";
20
+ import { ActionsContainer as pe } from "../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
21
+ import { Popover as de } from "../../../../../extended/mui/Popover/Popover.js";
22
+ import { ActionCancel as Ae } from "../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
23
+ import { ActionIntro as ue } from "../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
24
+ const fe = (O) => {
25
25
  const {
26
26
  areaId: o,
27
27
  selected: s,
28
- //disabled,
29
- setAnchorMenuAreas: A,
28
+ disabled: R,
29
+ setAnchorMenuAreas: u,
30
30
  size: f,
31
- color: O
32
- } = I, { selectArea: h, editArea: R, deleteArea: v } = d((e) => e.areasActions), C = d((e) => e.hashAreas[o].name, b), $ = d((e) => e.areasIds, b), [M, n] = x(!1), S = y(null), { currentSize: l } = X(f), E = B(), { getLabel: r } = Z(), { host_static_assets: c, environment_assets: m } = ee(), z = (e) => {
33
- $.length > 1 && (e.stopPropagation(), v(o));
34
- }, T = (e) => {
35
- R(o, e.inputEditArea), n(!1);
36
- }, w = (e) => {
31
+ color: v
32
+ } = O, { selectArea: h, editArea: $, deleteArea: M } = d((e) => e.areasActions), C = d((e) => e.hashAreas[o].name, I), z = d((e) => e.areasIds, I), [T, n] = L(!1), S = y(null), { currentSize: l } = ee(f), E = K(), { getLabel: r } = te(), { host_static_assets: c, environment_assets: m } = oe(), _ = !R && z.length > 1, w = (e) => {
33
+ _ && (e.stopPropagation(), M(o));
34
+ }, k = (e) => {
35
+ $(o, e.inputEditArea), n(!1);
36
+ }, D = (e) => {
37
37
  e?.stopPropagation(), n(!0);
38
- }, k = {
38
+ }, N = {
39
39
  inputEditArea: C
40
- }, N = H(
41
- () => re(ne(ie({
42
- inputEditArea: L.string().required(
40
+ }, P = Y(
41
+ () => ie(ae(se({
42
+ inputEditArea: B.string().required(
43
43
  r(i(a.validation_edit_area))
44
44
  )
45
45
  }))),
46
46
  [r]
47
- ), P = (e) => {
48
- A && A(e.currentTarget), h(o);
49
- }, _ = y(null), D = (e) => {
50
- _.current && _.current.stop(e);
47
+ ), j = (e) => {
48
+ u && u(e.currentTarget), h(o);
49
+ }, b = y(null), F = (e) => {
50
+ b.current && b.current.stop(e);
51
51
  }, g = {
52
52
  isMobile: E,
53
- color: O,
53
+ color: v,
54
54
  size: l === "small" || l === "medium" ? l : "medium",
55
55
  isAreaSelected: s
56
- }, j = [
56
+ }, V = [
57
57
  {
58
58
  type: "menuItem",
59
- startIcon: `${c}/${m}/frontend/components/areas/assets/icons/${u.EDIT_AREA}`,
59
+ startIcon: `${c}/${m}/frontend/components/areas/assets/icons/${A.EDIT_AREA}`,
60
60
  label: `${r(i(a.label_edit_area))}`,
61
- onClick: w
61
+ onClick: D
62
62
  },
63
63
  {
64
64
  type: "menuItem",
65
- startIcon: `${c}/${m}/frontend/components/areas/assets/icons/${u.DELETE_AREA}`,
65
+ startIcon: `${c}/${m}/frontend/components/areas/assets/icons/${A.DELETE_AREA}`,
66
66
  label: `${r(i(a.label_delete_area))}`,
67
- onClick: z,
68
- color: "error"
67
+ onClick: w,
68
+ color: "error",
69
+ disabled: !_
69
70
  }
70
- ], F = oe(te, ae);
71
- return /* @__PURE__ */ p(V, { children: [
71
+ ], x = ne(re, le);
72
+ return /* @__PURE__ */ p(H, { children: [
72
73
  /* @__PURE__ */ t(
73
- K,
74
+ G,
74
75
  {
75
76
  role: "presentation",
76
77
  ref: S,
77
- onMouseUp: D,
78
+ onMouseUp: F,
78
79
  onClick: (e) => {
79
- P(e);
80
+ j(e);
80
81
  },
81
82
  children: E ? /* @__PURE__ */ t(
82
- q,
83
+ U,
83
84
  {}
84
85
  ) : /* @__PURE__ */ t(
85
- U,
86
+ J,
86
87
  {
87
88
  children: /* @__PURE__ */ t(
88
- G,
89
+ Q,
89
90
  {
90
91
  opacity: !s,
91
92
  color: s ? "primary" : "default",
@@ -94,15 +95,15 @@ const ue = (I) => {
94
95
  size: f,
95
96
  label: `${C}`,
96
97
  endIcon: /* @__PURE__ */ t(
97
- J,
98
+ W,
98
99
  {
99
- className: F.menuActionsChip,
100
+ className: x.menuActionsChip,
100
101
  ownerState: { ...g },
101
- icon: `${c}/${m}/frontend/components/window_base/assets/icons/${u.MORE_VERTICAL}`,
102
+ icon: `${c}/${m}/frontend/components/window_base/assets/icons/${A.MORE_VERTICAL}`,
102
103
  arrowType: "no-arrow",
103
104
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
104
105
  transformOrigin: { vertical: "top", horizontal: "right" },
105
- menuActions: j
106
+ menuActions: V
106
107
  }
107
108
  )
108
109
  }
@@ -112,17 +113,17 @@ const ue = (I) => {
112
113
  }
113
114
  ),
114
115
  /* @__PURE__ */ t(
115
- Q,
116
+ X,
116
117
  {
117
118
  role: "presentation",
118
119
  onClick: (e) => {
119
120
  e.stopPropagation();
120
121
  },
121
122
  children: /* @__PURE__ */ t(
122
- me,
123
+ de,
123
124
  {
124
125
  arrowType: "top-center",
125
- open: M,
126
+ open: T,
126
127
  anchorEl: S.current,
127
128
  anchorOrigin: { vertical: "bottom", horizontal: "center" },
128
129
  transformOrigin: { vertical: "top", horizontal: "center" },
@@ -130,22 +131,22 @@ const ue = (I) => {
130
131
  n(!1);
131
132
  },
132
133
  children: /* @__PURE__ */ p(
133
- se,
134
+ ce,
134
135
  {
135
- onSubmit: T,
136
- values: k,
137
- validationSchema: N,
136
+ onSubmit: k,
137
+ values: N,
138
+ validationSchema: P,
138
139
  children: [
139
- /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(Y, { children: r(i(a.label_edit_area)) }) }),
140
+ /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(q, { children: r(i(a.label_edit_area)) }) }),
140
141
  /* @__PURE__ */ t(
141
- le,
142
+ me,
142
143
  {
143
144
  name: "inputEditArea"
144
145
  }
145
146
  ),
146
- /* @__PURE__ */ p(ce, { children: [
147
+ /* @__PURE__ */ p(pe, { children: [
147
148
  /* @__PURE__ */ t(
148
- pe,
149
+ Ae,
149
150
  {
150
151
  onClick: () => {
151
152
  n(!1);
@@ -153,7 +154,7 @@ const ue = (I) => {
153
154
  variant: "outlined"
154
155
  }
155
156
  ),
156
- /* @__PURE__ */ t(de, {})
157
+ /* @__PURE__ */ t(ue, {})
157
158
  ] })
158
159
  ]
159
160
  }
@@ -164,7 +165,7 @@ const ue = (I) => {
164
165
  )
165
166
  ] });
166
167
  };
167
- ue.displayName = "AreaButtons";
168
+ fe.displayName = "AreaButtons";
168
169
  export {
169
- ue as AreaChip
170
+ fe as AreaChip
170
171
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * TODO: Documentar
2
+ * Render the mobile Areas admin selector and the current area action chip.
3
3
  */
4
4
  export declare const AreaChipMobile: () => import("@emotion/react/jsx-runtime").JSX.Element;
5
5
  //# sourceMappingURL=AreaChipMobile.d.ts.map
@@ -1,34 +1,34 @@
1
- import { jsxs as h, jsx as r } from "@emotion/react/jsx-runtime";
1
+ import { jsxs as b, jsx as r } from "@emotion/react/jsx-runtime";
2
2
  import { useAreasStore as o } from "../../../../hooks/useAreas/index.js";
3
3
  import { shallow as l } from "zustand/shallow";
4
- import { useModuleDictionary as f, useEnvironment as C } from "@m4l/core";
4
+ import { useModuleDictionary as C, useEnvironment as I } from "@m4l/core";
5
5
  import { ICONS as m } from "../../../../icons.js";
6
- import { useMemo as b } from "react";
7
- import { getAreasDictionary as I, AREAS_DICCTIONARY as y } from "../../../../dictionary.js";
6
+ import { useMemo as g } from "react";
7
+ import { getAreasDictionary as A, AREAS_DICCTIONARY as u } from "../../../../dictionary.js";
8
8
  import { ChipMobile as S } from "./subcomponents/ChipMobile/ChipMobile.js";
9
- import { AreaChipMobileRootStyled as g, AddAreasMobileContainerStyled as $, MenuActionsAreaChipMobileStyled as w, ButtonAddAreaStyled as M } from "../../slots/AreasAdminSlots.js";
9
+ import { AreaChipMobileRootStyled as _, AddAreasMobileContainerStyled as y, MenuActionsAreaChipMobileStyled as $, ButtonAddAreaStyled as w } from "../../slots/AreasAdminSlots.js";
10
10
  const L = () => {
11
11
  const t = o(
12
- (e) => e.areasIds.map((d) => ({ id: d, name: e.hashAreas[d].name })),
12
+ (e) => e.areasIds.map((p) => ({ id: p, name: e.hashAreas[p].name })),
13
13
  l
14
- ), { selectArea: p } = o((e) => e.areasActions), n = o((e) => e.currentAreaId, l), { addArea: A } = o((e) => e.areasActions, l), { getLabel: u } = f(), a = t.find((e) => e.id === n), { host_static_assets: i, environment_assets: s } = C(), c = b(() => t.length === 0 ? [
14
+ ), { selectArea: h } = o((e) => e.areasActions), n = o((e) => e.currentAreaId, l), { addArea: f } = o((e) => e.areasActions, l), { getLabel: c } = C(), a = t.find((e) => e.id === n), { host_static_assets: i, environment_assets: s } = I(), d = g(() => t.length === 0 ? [
15
15
  {
16
16
  type: "menuItem",
17
17
  startIcon: `${i}/${s}/frontend/components/areas/assets/icons/${m.CHECK}`,
18
18
  onClick: () => {
19
19
  },
20
- label: "No hay Áreas",
20
+ label: c(A(u.label_no_areas_available)),
21
21
  disabled: !0
22
22
  }
23
23
  ] : t.map((e) => ({
24
24
  type: "menuItem",
25
- onClick: () => p(e.id),
25
+ onClick: () => h(e.id),
26
26
  label: e.name,
27
27
  selected: e.id === n
28
28
  })), [t, n]);
29
- return /* @__PURE__ */ h(g, { "data-testid": "area-chip-mobile", ownerState: {}, children: [
30
- c.length >= 0 ? /* @__PURE__ */ r($, { ownerState: {}, children: /* @__PURE__ */ r(
31
- w,
29
+ return /* @__PURE__ */ b(_, { "data-testid": "area-chip-mobile", ownerState: {}, children: [
30
+ d.length >= 0 ? /* @__PURE__ */ r(y, { ownerState: {}, children: /* @__PURE__ */ r(
31
+ $,
32
32
  {
33
33
  ownerState: {},
34
34
  urlIcon: `${i}/${s}/frontend/components/areas/assets/icons/${m.CHEVRON_DOWN}`,
@@ -37,18 +37,18 @@ const L = () => {
37
37
  marginLeft: "14px!important",
38
38
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
39
39
  transformOrigin: { vertical: "top", horizontal: "right" },
40
- menuActions: c,
40
+ menuActions: d,
41
41
  endListElement: /* @__PURE__ */ r(
42
- M,
42
+ w,
43
43
  {
44
44
  color: "primary",
45
45
  ownerState: {},
46
46
  onClick: () => {
47
- A();
47
+ f();
48
48
  },
49
49
  variant: "contained",
50
50
  endIcon: `${i}/${s}/frontend/components/areas/assets/icons/${m.ADD_AREA}`,
51
- label: u(I(y.area_add_new))
51
+ label: c(A(u.area_add_new))
52
52
  }
53
53
  )
54
54
  }
@@ -58,7 +58,7 @@ const L = () => {
58
58
  {
59
59
  areaId: a.id,
60
60
  selected: !0,
61
- disabled: !0
61
+ disabled: t.length === 1
62
62
  },
63
63
  a.id
64
64
  ) : null
@@ -1,29 +1,7 @@
1
1
  import { AreaChipProps } from '../../../AreaChip/types';
2
2
  /**
3
- * ChipMobile component for rendering a mobile-friendly chip with area details.
4
- *
5
- * Props:
6
- * - areaId: string - The ID of the area.
7
- * - selected: boolean - Indicates if the chip is selected.
8
- * - disabled: boolean - Indicates if the chip is disabled.
9
- * - setAnchorMenuAreas: (element: HTMLElement) => void - Function to set the anchor element for the menu.
10
- *
11
- * Constants:
12
- * - host_static_assets: string - The host for static assets.
13
- * - environment_assets: string - The environment-specific assets.
14
- * - deleteArea: (areaId: string) => void - Function to delete an area.
15
- * - selectArea: (areaId: string) => void - Function to select an area.
16
- * - editArea: (areaId: string, data: any) => void - Function to edit an area.
17
- * - areaName: string - The name of the area.
18
- * - listAreas: string[] - List of area IDs.
19
- * - open: boolean - State to control the open/close state of the popover.
20
- * - getLabel: (key: string) => string - Function to get a label from the dictionary.
21
- * - isDesktop: boolean - Indicates if the current view is desktop.
22
- * - anchorRef: React.RefObject<null> - Reference to the anchor element.
23
- * - theme: Theme - The current theme.
24
- * - initialValues: { inputEditArea: string } - Initial values for the form.
25
- * - validationSchema: Yup.ObjectSchema - Validation schema for the form.
26
- * - rippleRef: React.RefObject<any> - Reference to the ripple effect.
3
+ * Render the mobile area chip together with its edit/delete affordances.
4
+ * The `disabled` prop is currently used to block destructive delete actions when only one area remains.
27
5
  */
28
6
  export declare const ChipMobile: {
29
7
  (props: AreaChipProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ChipMobile.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAgB,MAAM,yBAAyB,CAAC;AAkBtE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,UAAU;YAAW,aAAa;;CAoJ9C,CAAC"}
1
+ {"version":3,"file":"ChipMobile.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAgB,MAAM,yBAAyB,CAAC;AAkBtE;;;GAGG;AACH,eAAO,MAAM,UAAU;YAAW,aAAa;;CAqJ9C,CAAC"}
@@ -1,86 +1,87 @@
1
1
  import { jsxs as i, jsx as o } from "@emotion/react/jsx-runtime";
2
- import { useEnvironment as w, useModuleDictionary as D } from "@m4l/core";
3
- import { useState as N, useRef as A, useMemo as V } from "react";
4
- import * as j from "yup";
5
- import { shallow as C } from "zustand/shallow";
6
- import z from "@mui/material/ButtonBase/TouchRipple";
2
+ import { useEnvironment as w, useModuleDictionary as N } from "@m4l/core";
3
+ import { useState as V, useRef as b, useMemo as j } from "react";
4
+ import * as z from "yup";
5
+ import { shallow as E } from "zustand/shallow";
6
+ import F from "@mui/material/ButtonBase/TouchRipple";
7
7
  import { useAreasStore as m } from "../../../../../../hooks/useAreas/index.js";
8
8
  import { getAreasDictionary as a, AREAS_DICCTIONARY as s } from "../../../../../../dictionary.js";
9
- import { Typography as F } from "@m4l/base";
9
+ import { Typography as L } from "@m4l/base";
10
10
  import { ICONS as d } from "../../../../../../icons.js";
11
- import { ChipActionsMobile as L } from "../../../AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js";
12
- import { ChipMobileRootStyled as B, ChipMobileContentStyled as H, NameChipMobileStyled as Y, EditAreaChipMobileContainerStyled as q } from "../../../../slots/AreasAdminSlots.js";
13
- import { RHFormProvider as U } from "../../../../../../../hook-form/RHFormProvider/RHFormProvider.js";
14
- import { ActionsContainer as G } from "../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
15
- import { createValidationSchema as J, createValidationFullObject as K, createValidationPartialObject as Q } from "../../../../../../../hook-form/RHFormProvider/schema.js";
16
- import { MenuActions as W } from "../../../../../../../MenuActions/MenuActions.js";
17
- import { Popover as X } from "../../../../../../../extended/mui/Popover/Popover.js";
18
- import { RHFTextField as Z } from "../../../../../../../hook-form/RHFTextField/RHFTextField.js";
19
- import { ActionCancel as ee } from "../../../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
20
- import { ActionIntro as oe } from "../../../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
21
- const te = z, re = (b) => {
22
- const { areaId: r, selected: E, disabled: g, setAnchorMenuAreas: h } = b, { host_static_assets: l, environment_assets: c } = w(), { deleteArea: _, selectArea: v, editArea: R } = m((e) => e.areasActions), f = m((e) => e.hashAreas[r].name, C), y = m((e) => e.areasIds, C), [M, n] = N(!1), { getLabel: t } = D(), u = A(null), S = (e) => {
23
- y.length > 1 && (e.stopPropagation(), _(r));
24
- }, I = (e) => {
25
- R(r, e.inputEditArea), n(!1);
11
+ import { ChipActionsMobile as B } from "../../../AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js";
12
+ import { ChipMobileRootStyled as H, ChipMobileContentStyled as Y, NameChipMobileStyled as q, EditAreaChipMobileContainerStyled as U } from "../../../../slots/AreasAdminSlots.js";
13
+ import { RHFormProvider as G } from "../../../../../../../hook-form/RHFormProvider/RHFormProvider.js";
14
+ import { ActionsContainer as J } from "../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
15
+ import { createValidationSchema as K, createValidationFullObject as Q, createValidationPartialObject as W } from "../../../../../../../hook-form/RHFormProvider/schema.js";
16
+ import { MenuActions as X } from "../../../../../../../MenuActions/MenuActions.js";
17
+ import { Popover as Z } from "../../../../../../../extended/mui/Popover/Popover.js";
18
+ import { RHFTextField as ee } from "../../../../../../../hook-form/RHFTextField/RHFTextField.js";
19
+ import { ActionCancel as oe } from "../../../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
20
+ import { ActionIntro as te } from "../../../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
21
+ const re = F, ne = (g) => {
22
+ const { areaId: r, selected: _, disabled: h, setAnchorMenuAreas: f } = g, { host_static_assets: l, environment_assets: c } = w(), { deleteArea: v, selectArea: R, editArea: y } = m((e) => e.areasActions), u = m((e) => e.hashAreas[r].name, E), M = m((e) => e.areasIds, E), [S, n] = V(!1), { getLabel: t } = N(), A = b(null), C = !h && M.length > 1, I = (e) => {
23
+ C && (e.stopPropagation(), v(r));
26
24
  }, O = (e) => {
25
+ y(r, e.inputEditArea), n(!1);
26
+ }, T = (e) => {
27
27
  e?.stopPropagation(), n(!0);
28
- }, T = {
29
- inputEditArea: f
30
- }, $ = V(
31
- () => J(K(Q({
32
- inputEditArea: j.string().required(
28
+ }, $ = {
29
+ inputEditArea: u
30
+ }, x = j(
31
+ () => K(Q(W({
32
+ inputEditArea: z.string().required(
33
33
  t(a(s.validation_edit_area))
34
34
  )
35
35
  }))),
36
36
  [t]
37
- ), x = (e) => {
38
- h && h(e.currentTarget), v(r);
39
- }, p = A(null), P = (e) => {
37
+ ), P = (e) => {
38
+ f && f(e.currentTarget), R(r);
39
+ }, p = b(null), k = (e) => {
40
40
  p.current && p.current.stop(e);
41
- }, k = [
41
+ }, D = [
42
42
  {
43
43
  type: "menuItem",
44
44
  startIcon: `${l}/${c}/frontend/components/areas/assets/icons/${d.EDIT_AREA}`,
45
45
  label: `${t(a(s.label_edit_area))}`,
46
- onClick: O
46
+ onClick: T
47
47
  },
48
48
  {
49
49
  type: "menuItem",
50
50
  startIcon: `${l}/${c}/frontend/components/areas/assets/icons/${d.DELETE_AREA}`,
51
51
  label: `${t(a(s.label_delete_area))}`,
52
- onClick: S,
53
- color: "error"
52
+ onClick: I,
53
+ color: "error",
54
+ disabled: !C
54
55
  }
55
56
  ];
56
- return /* @__PURE__ */ i(B, { selected: E, disabled: g, children: [
57
+ return /* @__PURE__ */ i(H, { selected: _, disabled: h, children: [
57
58
  /* @__PURE__ */ i(
58
- H,
59
+ Y,
59
60
  {
60
61
  role: "presentation",
61
- ref: u,
62
- onMouseUp: P,
62
+ ref: A,
63
+ onMouseUp: k,
63
64
  onClick: (e) => {
64
- x(e);
65
+ P(e);
65
66
  },
66
67
  children: [
67
- /* @__PURE__ */ o(te, { ref: p, center: !1 }),
68
- /* @__PURE__ */ o(Y, { variant: "bodyStandard", children: `${f}` }),
68
+ /* @__PURE__ */ o(re, { ref: p, center: !1 }),
69
+ /* @__PURE__ */ o(q, { variant: "bodyStandard", children: `${u}` }),
69
70
  /* @__PURE__ */ o(
70
- W,
71
+ X,
71
72
  {
72
73
  icon: `${l}/${c}/frontend/components/window_base/assets/icons/${d.MORE_VERTICAL}`,
73
74
  arrowType: "no-arrow",
74
75
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
75
76
  transformOrigin: { vertical: "top", horizontal: "right" },
76
- menuActions: k
77
+ menuActions: D
77
78
  }
78
79
  )
79
80
  ]
80
81
  }
81
82
  ),
82
83
  /* @__PURE__ */ o(
83
- L,
84
+ B,
84
85
  {}
85
86
  ),
86
87
  /* @__PURE__ */ o(
@@ -91,11 +92,11 @@ const te = z, re = (b) => {
91
92
  e.stopPropagation();
92
93
  },
93
94
  children: /* @__PURE__ */ o(
94
- X,
95
+ Z,
95
96
  {
96
97
  arrowType: "top-center",
97
- open: M,
98
- anchorEl: u.current,
98
+ open: S,
99
+ anchorEl: A.current,
99
100
  anchorOrigin: { vertical: "bottom", horizontal: "center" },
100
101
  transformOrigin: { vertical: "top", horizontal: "center" },
101
102
  onClose: () => {
@@ -107,23 +108,23 @@ const te = z, re = (b) => {
107
108
  }
108
109
  },
109
110
  children: /* @__PURE__ */ i(
110
- U,
111
+ G,
111
112
  {
112
- onSubmit: I,
113
- values: T,
114
- validationSchema: $,
113
+ onSubmit: O,
114
+ values: $,
115
+ validationSchema: x,
115
116
  children: [
116
- /* @__PURE__ */ o(q, { children: /* @__PURE__ */ o(F, { children: t(a(s.label_edit_area)) }) }),
117
+ /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(L, { children: t(a(s.label_edit_area)) }) }),
117
118
  /* @__PURE__ */ o(
118
- Z,
119
+ ee,
119
120
  {
120
121
  name: "inputEditArea",
121
122
  sx: { mt: "20px" }
122
123
  }
123
124
  ),
124
- /* @__PURE__ */ i(G, { children: [
125
+ /* @__PURE__ */ i(J, { children: [
125
126
  /* @__PURE__ */ o(
126
- ee,
127
+ oe,
127
128
  {
128
129
  onClick: () => {
129
130
  n(!1);
@@ -131,7 +132,7 @@ const te = z, re = (b) => {
131
132
  variant: "outlined"
132
133
  }
133
134
  ),
134
- /* @__PURE__ */ o(oe, {})
135
+ /* @__PURE__ */ o(te, {})
135
136
  ] })
136
137
  ]
137
138
  }
@@ -142,7 +143,7 @@ const te = z, re = (b) => {
142
143
  )
143
144
  ] });
144
145
  };
145
- re.displayName = "AreaButtons";
146
+ ne.displayName = "AreaButtons";
146
147
  export {
147
- re as ChipMobile
148
+ ne as ChipMobile
148
149
  };