@yakavkaz/uikit 0.0.23 → 0.0.25

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,MAAM;cALP,OAAO;cACP,SAAS,GAAG,SAAS,GAAG,kBAAkB;gBACxC,OAAO;kLA8CpB,CAAA"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,MAAM;cALP,OAAO;cACP,SAAS,GAAG,SAAS,GAAG,kBAAkB;gBACxC,OAAO;kLAgDpB,CAAA"}
@@ -1,3 +1,14 @@
1
- import { HeaderProps } from './header.types.ts';
2
- export declare const Header: import('react').ForwardRefExoticComponent<HeaderProps & import('react').RefAttributes<HTMLDivElement>>;
1
+ import { HeaderLogo } from './parts/headerLogo';
2
+ import { HeaderLocations } from './parts/headerLocations';
3
+ import { HeaderNav } from './parts/headerNav';
4
+ export declare const Header: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>> & {
5
+ Left: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
+ Right: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
7
+ Group: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
+ Actions: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
9
+ Logo: typeof HeaderLogo;
10
+ Nav: typeof HeaderNav;
11
+ Locations: typeof HeaderLocations;
12
+ Profile: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
13
+ };
3
14
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/header/Header.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAO/C,eAAO,MAAM,MAAM,wGA6FjB,CAAA"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/header/Header.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAkD7C,eAAO,MAAM,MAAM;;;;;;;;;CASjB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { NavigationItem } from './header.types.ts';
2
2
  export declare const DEFAULT_NAV_ITEMS: NavigationItem[];
3
- export declare const DEFAULT_LOCATIONS: readonly ["Ингушетия", "Чечня", "Дагестан"];
3
+ export declare const DEFAULT_LOCATIONS: string[];
4
4
  //# sourceMappingURL=header.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.constants.d.ts","sourceRoot":"","sources":["../../../src/components/header/header.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAM7C,CAAA;AAED,eAAO,MAAM,iBAAiB,6CAA8C,CAAA"}
1
+ {"version":3,"file":"header.constants.d.ts","sourceRoot":"","sources":["../../../src/components/header/header.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAM7C,CAAA;AAED,eAAO,MAAM,iBAAiB,UAAqC,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { ReactNode, CSSProperties, ElementType, ComponentPropsWithoutRef } from 'react';
2
2
  import { Button } from '../button';
3
+ import { IconId } from '../icons/DynamicIcon';
3
4
  export type NavigationItem = {
4
5
  label: string;
5
6
  href: string;
@@ -7,7 +8,7 @@ export type NavigationItem = {
7
8
  export type UserMenuItem = {
8
9
  label: string;
9
10
  href?: string;
10
- iconId?: string;
11
+ iconId?: IconId;
11
12
  onSelect?: () => void;
12
13
  };
13
14
  export type HeaderProps = {
@@ -1 +1 @@
1
- {"version":3,"file":"header.types.d.ts","sourceRoot":"","sources":["../../../src/components/header/header.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAC5F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAE5D,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,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,EAAE,wBAAwB,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAA;IACvE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAE7B,kEAAkE;IAClE,WAAW,CAAC,EAAE,SAAS,CAAA;IAEvB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAE9B,YAAY;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA"}
@@ -1,2 +1,7 @@
1
1
  export * from './Header';
2
+ export * from './parts/headerActions';
3
+ export * from './parts/headerProfile';
4
+ export * from './parts/headerLogo';
5
+ export * from './parts/headerLocations';
6
+ export * from './parts/headerNav';
2
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA"}
@@ -1,8 +1,13 @@
1
- type Props = {
2
- withSearchAndMenu?: boolean;
3
- onMenuClick?: () => void;
4
- onSearchClick?: () => void;
1
+ export declare const HeaderActions: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
2
+ type MenuButtonProps = {
3
+ onClick?: () => void;
4
+ className?: string;
5
5
  };
6
- export declare function HeaderActions({ withSearchAndMenu, onMenuClick, onSearchClick }: Props): import("react/jsx-runtime").JSX.Element | null;
6
+ export declare function MenuButton({ onClick, className }: MenuButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ type SearchButtonProps = {
8
+ onClick?: () => void;
9
+ className?: string;
10
+ };
11
+ export declare function SearchButton({ onClick, className }: SearchButtonProps): import("react/jsx-runtime").JSX.Element;
7
12
  export {};
8
13
  //# sourceMappingURL=headerActions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headerActions.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerActions.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B,CAAA;AAED,wBAAgB,aAAa,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,KAAK,kDAarF"}
1
+ {"version":3,"file":"headerActions.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerActions.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,2MAQzB,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,2CAYjE;AAED,KAAK,iBAAiB,GAAG;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CAWrE"}
@@ -1,9 +1,10 @@
1
- type Props = {
1
+ type HeaderLocationsProps = {
2
2
  locations?: string[];
3
3
  defaultLocation?: string;
4
- locationValue?: string;
5
- onLocationChange?: (value: string) => void;
4
+ value?: string;
5
+ onValueChange?: (value: string) => void;
6
+ className?: string;
6
7
  };
7
- export declare function HeaderLocations({ locations, defaultLocation, locationValue, onLocationChange, }: Props): import("react/jsx-runtime").JSX.Element | null;
8
+ export declare function HeaderLocations({ locations, defaultLocation, value, onValueChange, className, }: HeaderLocationsProps): import("react/jsx-runtime").JSX.Element | null;
8
9
  export {};
9
10
  //# sourceMappingURL=headerLocations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headerLocations.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerLocations.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,eAAe,EACf,aAAa,EACb,gBAAgB,GACjB,EAAE,KAAK,kDAqBP"}
1
+ {"version":3,"file":"headerLocations.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerLocations.tsx"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,eAAe,EACf,KAAK,EACL,aAAa,EACb,SAAS,GACV,EAAE,oBAAoB,kDAqBtB"}
@@ -1,10 +1,11 @@
1
1
  import { ElementType, ComponentPropsWithoutRef } from 'react';
2
- type Props = {
3
- logoHref: string;
2
+ type HeaderLogoProps = {
3
+ href?: string;
4
4
  sectionName?: string;
5
- logoIconColor?: string;
6
- LinkEl: ElementType<ComponentPropsWithoutRef<'a'>>;
5
+ iconColor?: string;
6
+ LinkComponent?: ElementType<ComponentPropsWithoutRef<'a'>>;
7
+ className?: string;
7
8
  };
8
- export declare function HeaderLogo({ logoHref, sectionName, logoIconColor, LinkEl }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export declare function HeaderLogo({ href, sectionName, iconColor, LinkComponent, className }: HeaderLogoProps): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
10
11
  //# sourceMappingURL=headerLogo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headerLogo.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerLogo.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAElE,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAA;CACnD,CAAA;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,KAAK,2CAMjF"}
1
+ {"version":3,"file":"headerLogo.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerLogo.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAElE,KAAK,eAAe,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAU,EACV,WAAgB,EAChB,SAAS,EACT,aAAa,EACb,SAAS,EACV,EAAE,eAAe,2CAQjB"}
@@ -1,9 +1,10 @@
1
- import { NavigationItem } from '../header.types.ts';
2
- type Props = {
1
+ import { NavigationItem } from '../header.types';
2
+ type HeaderNavProps = {
3
3
  items?: NavigationItem[];
4
4
  lengthItem?: number;
5
5
  hiddenOnMobile?: boolean;
6
+ className?: string;
6
7
  };
7
- export declare function HeaderNav({ items, lengthItem, hiddenOnMobile }: Props): import("react/jsx-runtime").JSX.Element | null;
8
+ export declare function HeaderNav({ items, lengthItem, hiddenOnMobile, className }: HeaderNavProps): import("react/jsx-runtime").JSX.Element | null;
8
9
  export {};
9
10
  //# sourceMappingURL=headerNav.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headerNav.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerNav.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEnD,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,UAAc,EAAE,cAAc,EAAE,EAAE,KAAK,kDAYzE"}
1
+ {"version":3,"file":"headerNav.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerNav.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,UAAc,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,cAAc,kDAgB7F"}
@@ -1,21 +1,20 @@
1
+ import { ComponentPropsWithoutRef, ElementType } from 'react';
1
2
  import { Button } from '../../button';
2
- import { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
3
- import { UserMenuItem } from '../header.types.ts';
4
- type Props = {
5
- /** 1) Кастомный слот профиля имеет приоритет */
6
- profileSlot?: ReactNode;
7
- /** 2) Дефолтный дропдаун, если profileSlot не задан */
3
+ import { UserMenuItem } from '../header.types';
4
+ export declare const HeaderProfile: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
5
+ type LoginButtonProps = {
6
+ onClick?: () => void;
7
+ label?: string;
8
+ variant?: ComponentPropsWithoutRef<typeof Button>['variant'];
9
+ className?: string;
10
+ };
11
+ export declare function LoginButton({ onClick, label, variant, className, }: LoginButtonProps): import("react/jsx-runtime").JSX.Element;
12
+ type UserDropdownProps = {
8
13
  userName?: string;
9
14
  userAvatarUrl?: string;
10
15
  userMenuItems?: UserMenuItem[];
11
- LinkEl: ElementType<ComponentPropsWithoutRef<'a'>>;
12
- /** 3) Фоллбек — кнопка «Войти» */
13
- showLogin?: boolean;
14
- onLoginClick?: () => void;
15
- loginLabel?: string;
16
- loginButtonVariant?: ComponentPropsWithoutRef<typeof Button>['variant'];
17
- loginButtonClassName?: string;
16
+ LinkComponent?: ElementType<ComponentPropsWithoutRef<'a'>>;
18
17
  };
19
- export declare function HeaderProfile({ profileSlot, userName, userAvatarUrl, userMenuItems, LinkEl, showLogin, onLoginClick, loginLabel, loginButtonVariant, loginButtonClassName, }: Props): import("react/jsx-runtime").JSX.Element | null;
18
+ export declare function UserDropdown({ userName, userAvatarUrl, userMenuItems, LinkComponent, }: UserDropdownProps): import("react/jsx-runtime").JSX.Element;
20
19
  export {};
21
20
  //# sourceMappingURL=headerProfile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headerProfile.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerProfile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,KAAK,EAAE,wBAAwB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,KAAK,KAAK,GAAG;IACX,gDAAgD;IAChD,WAAW,CAAC,EAAE,SAAS,CAAA;IAEvB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,MAAM,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAA;IAElD,kCAAkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAA;IACvE,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AAED,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,QAAQ,EACR,aAAa,EACb,aAAa,EACb,MAAM,EACN,SAAgB,EAChB,YAAY,EACZ,UAAoB,EACpB,kBAAuC,EACvC,oBAAoB,GACrB,EAAE,KAAK,kDA2EP"}
1
+ {"version":3,"file":"headerProfile.d.ts","sourceRoot":"","sources":["../../../../src/components/header/parts/headerProfile.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAI9C,eAAO,MAAM,aAAa,2MASxB,CAAA;AAEF,KAAK,gBAAgB,GAAG;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,wBAAwB,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAA;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAe,EACf,OAA4B,EAC5B,SAAS,GACV,EAAE,gBAAgB,2CAMlB;AAED,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,aAAa,CAAC,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAA;CAC3D,CAAA;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,aAAa,EACb,aAAa,EACb,aAAa,GACd,EAAE,iBAAiB,2CA0DnB"}