@codezee/sixtify-brahma 0.2.231 → 0.2.232

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 (19) hide show
  1. package/package.json +1 -1
  2. package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerMenuItem.d.ts +3 -1
  3. package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerMenuItem.d.ts.map +1 -1
  4. package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerMenuItemList.d.ts +4 -1
  5. package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerMenuItemList.d.ts.map +1 -1
  6. package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerSubMenuItemList.d.ts +4 -2
  7. package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerSubMenuItemList.d.ts.map +1 -1
  8. package/packages/shared-components/dist/Drawer/Drawer.d.ts +4 -1
  9. package/packages/shared-components/dist/Drawer/Drawer.d.ts.map +1 -1
  10. package/packages/shared-components/dist/Drawer/MenuItem.d.ts +4 -1
  11. package/packages/shared-components/dist/Drawer/MenuItem.d.ts.map +1 -1
  12. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItem.d.ts +3 -1
  13. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItem.d.ts.map +1 -1
  14. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.d.ts +7 -2
  15. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.d.ts.map +1 -1
  16. package/packages/shared-components/dist/index.cjs.js +1 -1
  17. package/packages/shared-components/dist/index.cjs.js.map +1 -1
  18. package/packages/shared-components/dist/index.esm.js +1 -1
  19. package/packages/shared-components/dist/index.esm.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.231",
3
+ "version": "0.2.232",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
@@ -7,7 +7,9 @@ type CloseDrawerMenuItemProps = {
7
7
  selected?: MenuItemProps["selected"];
8
8
  onMouseEnter?: MenuItemProps["onMouseEnter"];
9
9
  href?: MenuItemProps["href"];
10
+ onPreventRedirection?: MenuItemProps["onPreventRedirection"];
11
+ preventRedirection?: MenuItemProps["preventRedirection"];
10
12
  };
11
- export declare const CloseDrawerMenuItem: ({ icon, title, isShowEndAdornment, selected, onMouseEnter, href, onClick, }: CloseDrawerMenuItemProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const CloseDrawerMenuItem: ({ icon, title, isShowEndAdornment, selected, onMouseEnter, href, onClick, onPreventRedirection, preventRedirection, }: CloseDrawerMenuItemProps) => import("react/jsx-runtime").JSX.Element;
12
14
  export {};
13
15
  //# sourceMappingURL=CloseDrawerMenuItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloseDrawerMenuItem.d.ts","sourceRoot":"","sources":["../../../src/Drawer/CloseDrawer/CloseDrawerMenuItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,KAAK,wBAAwB,GAAG;IAC9B,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC7C,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,6EAQjC,wBAAwB,4CAqC1B,CAAC"}
1
+ {"version":3,"file":"CloseDrawerMenuItem.d.ts","sourceRoot":"","sources":["../../../src/Drawer/CloseDrawer/CloseDrawerMenuItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,KAAK,wBAAwB,GAAG;IAC9B,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC7C,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,oBAAoB,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAC7D,kBAAkB,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,uHAUjC,wBAAwB,4CAuC1B,CAAC"}
@@ -1,10 +1,13 @@
1
+ import type { OnAction } from "../../utils";
1
2
  import type { MenuItem } from "../Drawer";
2
3
  type CloseDrawerMenuItemListProps = {
3
4
  menuItems: MenuItem[];
4
5
  currentPathname: string;
5
6
  anchorEl: HTMLDivElement | null;
6
7
  setAnchorEl: (anchorEl: HTMLDivElement | null) => void;
8
+ preventRedirection?: boolean;
9
+ onPreventRedirection?: OnAction;
7
10
  };
8
- export declare const CloseDrawerMenuItemList: ({ menuItems, currentPathname, anchorEl, setAnchorEl, }: CloseDrawerMenuItemListProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const CloseDrawerMenuItemList: ({ menuItems, currentPathname, anchorEl, setAnchorEl, preventRedirection, onPreventRedirection, }: CloseDrawerMenuItemListProps) => import("react/jsx-runtime").JSX.Element;
9
12
  export {};
10
13
  //# sourceMappingURL=CloseDrawerMenuItemList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloseDrawerMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/CloseDrawer/CloseDrawerMenuItemList.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,KAAK,4BAA4B,GAAG;IAClC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,wDAKrC,4BAA4B,4CAqF9B,CAAC"}
1
+ {"version":3,"file":"CloseDrawerMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/CloseDrawer/CloseDrawerMenuItemList.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,KAAK,4BAA4B,GAAG;IAClC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,QAAQ,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,kGAOrC,4BAA4B,4CAyF9B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type MenuItem } from "../Drawer";
2
- import type { OnAction } from "../../utils/types";
2
+ import type { OnAction } from "../../utils";
3
3
  export type MenuOpenState = {
4
4
  [key: string]: MenuOpenState | boolean;
5
5
  };
@@ -7,7 +7,9 @@ type CloseDrawerSubMenuItemListProps = {
7
7
  currentPathMenuOpen: MenuOpenState;
8
8
  currentMenuItem?: MenuItem;
9
9
  onCloseMenuPopover: OnAction;
10
+ preventRedirection?: boolean;
11
+ onPreventRedirection?: OnAction;
10
12
  };
11
- export declare const CloseDrawerSubMenuItemList: ({ currentPathMenuOpen, currentMenuItem, onCloseMenuPopover, }: CloseDrawerSubMenuItemListProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const CloseDrawerSubMenuItemList: ({ currentPathMenuOpen, currentMenuItem, onCloseMenuPopover, preventRedirection, onPreventRedirection, }: CloseDrawerSubMenuItemListProps) => import("react/jsx-runtime").JSX.Element;
12
14
  export {};
13
15
  //# sourceMappingURL=CloseDrawerSubMenuItemList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloseDrawerSubMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/CloseDrawer/CloseDrawerSubMenuItemList.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,OAAO,CAAC;CACxC,CAAC;AAsFF,KAAK,+BAA+B,GAAG;IACrC,mBAAmB,EAAE,aAAa,CAAC;IACnC,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,kBAAkB,EAAE,QAAQ,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,+DAIxC,+BAA+B,4CAsBjC,CAAC"}
1
+ {"version":3,"file":"CloseDrawerSubMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/CloseDrawer/CloseDrawerSubMenuItemList.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,OAAO,CAAC;CACxC,CAAC;AA8FF,KAAK,+BAA+B,GAAG;IACrC,mBAAmB,EAAE,aAAa,CAAC;IACnC,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,QAAQ,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,yGAMxC,+BAA+B,4CAwBjC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { type HTMLAttributeAnchorTarget, type ReactNode } from "react";
2
+ import type { OnAction } from "../utils";
2
3
  export type MenuItem = {
3
4
  key: string;
4
5
  icon?: ReactNode;
@@ -11,6 +12,8 @@ export type DrawerProps = {
11
12
  menuItems?: MenuItem[];
12
13
  open: boolean;
13
14
  currentPathname: string;
15
+ preventRedirection?: boolean;
16
+ onPreventRedirection?: OnAction;
14
17
  };
15
- export declare const Drawer: ({ menuItems, open, currentPathname, }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Drawer: ({ menuItems, open, currentPathname, preventRedirection, onPreventRedirection, }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
16
19
  //# sourceMappingURL=Drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAWf,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,S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4CAiEb,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { type BoxProps } from "@mui/material/Box";
2
2
  import { type SxProps, type Theme } from "@mui/material/styles";
3
+ import type { OnAction } from "../utils";
3
4
  import type { HTMLAttributeAnchorTarget, ReactNode } from "react";
4
5
  export type MenuItemProps = Omit<BoxProps, "onClick"> & {
5
6
  icon?: ReactNode;
@@ -10,6 +11,8 @@ export type MenuItemProps = Omit<BoxProps, "onClick"> & {
10
11
  onClick: (target?: HTMLAttributeAnchorTarget) => void;
11
12
  selected?: boolean;
12
13
  isShowEndAdornment?: boolean;
14
+ preventRedirection?: boolean;
15
+ onPreventRedirection?: OnAction;
13
16
  };
14
- export declare const MenuItem: ({ selected, icon, title, endAdornment, sx, href, onClick, isShowEndAdornment, ...props }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const MenuItem: ({ selected, icon, title, endAdornment, sx, href, onClick, isShowEndAdornment, preventRedirection, onPreventRedirection, ...props }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
15
18
  //# sourceMappingURL=MenuItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../src/Drawer/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,sBAAsB,CAAC;AAM1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG;IACtD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,IAAI,CAAC,EAAE,M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href?: MenuItemProps["href"];
12
+ preventRedirection?: boolean;
13
+ onPreventRedirection?: MenuItemProps["onPreventRedirection"];
12
14
  };
13
- export declare const OpenDrawerMenuItem: ({ icon, title, isShowEndAdornment, selected, onClick, isExpanded, sx, href, }: OpenDrawerMenuItemProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const OpenDrawerMenuItem: ({ icon, title, isShowEndAdornment, selected, onClick, isExpanded, sx, preventRedirection, href, onPreventRedirection, }: OpenDrawerMenuItemProps) => import("react/jsx-runtime").JSX.Element;
14
16
  export {};
15
17
  //# sourceMappingURL=OpenDrawerMenuItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenDrawerMenuItem.d.ts","sourceRoot":"","sources":["../../../src/Drawer/OpenDrawer/OpenDrawerMenuItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE3D,KAAK,uBAAuB,GAAG;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,+EAShC,uBAAuB,4CAwBzB,CAAC"}
1
+ {"version":3,"file":"OpenDrawerMenuItem.d.ts","sourceRoot":"","sources":["../../../src/Drawer/OpenDrawer/OpenDrawerMenuItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE3D,KAAK,uBAAuB,GAAG;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAC;CAC9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,yHAWhC,uBAAuB,4CA0BzB,CAAC"}
@@ -1,7 +1,10 @@
1
+ import type { OnAction } from "../../utils";
1
2
  import type { MenuItem } from "../Drawer";
2
3
  type OpenDrawerMenuItemListProps = {
3
4
  menuItems: MenuItem[];
4
5
  currentPathname: string;
6
+ preventRedirection?: boolean;
7
+ onPreventRedirection?: OnAction;
5
8
  };
6
9
  export type NestedMenuState = {
7
10
  [K in MenuItem["key"]]?: boolean | {
@@ -15,10 +18,12 @@ type MenuItemRecursiveProps = {
15
18
  subMenusOpen: NestedMenuState;
16
19
  setSubMenusOpen: (value: NestedMenuState | ((prev: NestedMenuState) => NestedMenuState)) => void;
17
20
  currentPathMenuOpen: NestedMenuState;
21
+ preventRedirection?: boolean;
22
+ onPreventRedirection?: OnAction;
18
23
  };
19
24
  export declare const isPathInCurrentSelection: (state: NestedMenuState, path: string[]) => boolean;
20
25
  export declare const isMenuOpen: (state: NestedMenuState, path: string[]) => boolean;
21
- export declare const MenuItemRecursive: ({ menuItem, level, parentPath, subMenusOpen, setSubMenusOpen, currentPathMenuOpen, }: MenuItemRecursiveProps) => import("react/jsx-runtime").JSX.Element | undefined;
22
- export declare const OpenDrawerMenuItemList: ({ menuItems, currentPathname, }: OpenDrawerMenuItemListProps) => import("react/jsx-runtime").JSX.Element[];
26
+ export declare const MenuItemRecursive: ({ menuItem, level, parentPath, subMenusOpen, setSubMenusOpen, currentPathMenuOpen, preventRedirection, onPreventRedirection, }: MenuItemRecursiveProps) => import("react/jsx-runtime").JSX.Element | undefined;
27
+ export declare const OpenDrawerMenuItemList: ({ menuItems, currentPathname, preventRedirection, onPreventRedirection, }: OpenDrawerMenuItemListProps) => import("react/jsx-runtime").JSX.Element[];
23
28
  export {};
24
29
  //# sourceMappingURL=OpenDrawerMenuItemList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenDrawerMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/OpenDrawer/OpenDrawerMenuItemList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,KAAK,2BAA2B,GAAG;IACjC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAC3B,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EACnB,OAAO,GACP;SACG,IAAI,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,GAAG,eAAe;KACtD;CACN,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,eAAe,CAAC;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