@bioturing/components 0.40.1 → 0.41.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.
@@ -0,0 +1,61 @@
1
+ import { default as React } from 'react';
2
+ export interface AlertProps {
3
+ /**
4
+ * Type of alert
5
+ * @default "info"
6
+ */
7
+ type?: "success" | "info" | "warning" | "error" | "instruction";
8
+ /**
9
+ * Content of the alert message
10
+ */
11
+ message?: React.ReactNode;
12
+ /**
13
+ * Additional content of the alert
14
+ */
15
+ description?: React.ReactNode;
16
+ /**
17
+ * Whether to show icon
18
+ * @default true
19
+ */
20
+ showIcon?: boolean;
21
+ /**
22
+ * Custom icon, effective when showIcon is true
23
+ */
24
+ icon?: React.ReactNode;
25
+ /**
26
+ * Whether alert can be closed
27
+ * @default false
28
+ */
29
+ closable?: boolean;
30
+ /**
31
+ * Custom close icon
32
+ */
33
+ closeIcon?: React.ReactNode;
34
+ /**
35
+ * Callback when close animation is finished
36
+ */
37
+ afterClose?: () => void;
38
+ /**
39
+ * Callback when close
40
+ */
41
+ onClose?: (e: React.MouseEvent<HTMLButtonElement>) => void;
42
+ /**
43
+ * Custom action
44
+ */
45
+ action?: React.ReactNode;
46
+ /**
47
+ * Whether to show as banner
48
+ * @default false
49
+ */
50
+ banner?: boolean;
51
+ /**
52
+ * Additional class name
53
+ */
54
+ className?: string;
55
+ /**
56
+ * Additional styles
57
+ */
58
+ style?: React.CSSProperties;
59
+ }
60
+ export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
61
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/components/alert/component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAW7D,OAAO,aAAa,CAAC;AAErB,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,CAAC;IAEhE;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE3D;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAwGD,eAAO,MAAM,KAAK,mFAAyB,CAAC"}
@@ -0,0 +1,76 @@
1
+ "use client";
2
+ import { jsx as r, jsxs as d } from "react/jsx-runtime";
3
+ import { forwardRef as M, useState as R, useMemo as f } from "react";
4
+ import { LightbulbIcon as S, InfoIcon as T, WarningIcon as X, XCircleIcon as _, CheckCircleIcon as $, XIcon as z } from "@bioturing/assets";
5
+ import './style.css';/* empty css */
6
+ import { useCls as B } from "../utils/antdUtils.js";
7
+ import { IconButton as D } from "../icon-button/component.js";
8
+ import { cn as E } from "../utils/cn.js";
9
+ const O = {
10
+ success: $,
11
+ error: _,
12
+ warning: X,
13
+ info: T,
14
+ instruction: S
15
+ }, P = ({
16
+ type: n = "info",
17
+ message: i,
18
+ description: t,
19
+ showIcon: h = !0,
20
+ icon: l,
21
+ closable: o = !1,
22
+ closeIcon: a,
23
+ afterClose: N,
24
+ onClose: I,
25
+ action: m,
26
+ banner: C = !1,
27
+ className: p,
28
+ style: v,
29
+ ...w
30
+ }, A) => {
31
+ const e = B(), [g, x] = R(!1), b = (c) => {
32
+ x(!0), I?.(c), setTimeout(() => {
33
+ N?.();
34
+ }, 300);
35
+ }, s = h, j = !!t, u = f(() => {
36
+ if (!s) return null;
37
+ if (l) return l;
38
+ const c = O[n];
39
+ return /* @__PURE__ */ r(c, { weight: "fill", className: e(`alert-icon-${n}`) });
40
+ }, [l, n, s, e]), k = f(() => o ? /* @__PURE__ */ r(
41
+ D,
42
+ {
43
+ size: "small",
44
+ onClick: b,
45
+ className: e("alert-close"),
46
+ children: a ?? /* @__PURE__ */ r(z, {})
47
+ }
48
+ ) : null, [o, a, e]);
49
+ if (g) return null;
50
+ const L = E(
51
+ e("alert"),
52
+ e(`alert-${n}`),
53
+ {
54
+ [e("alert-with-description")]: j,
55
+ [e("alert-no-icon")]: !s,
56
+ [e("alert-banner")]: C,
57
+ [e("alert-closable")]: o,
58
+ [e("alert-instruction")]: n === "instruction"
59
+ },
60
+ p
61
+ );
62
+ return /* @__PURE__ */ d("div", { ref: A, className: L, style: v, role: "alert", ...w, children: [
63
+ u && /* @__PURE__ */ r("div", { className: e("alert-icon"), children: u }),
64
+ /* @__PURE__ */ d("div", { className: e("alert-content"), children: [
65
+ i && /* @__PURE__ */ r("div", { className: e("alert-message"), children: i }),
66
+ t && /* @__PURE__ */ r("div", { className: e("alert-description"), children: t }),
67
+ m && /* @__PURE__ */ r("div", { className: e("alert-action"), children: m })
68
+ ] }),
69
+ k
70
+ ] });
71
+ }, W = M(P);
72
+ W.displayName = "Alert";
73
+ export {
74
+ W as Alert
75
+ };
76
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/alert/component.tsx"],"sourcesContent":["\"use client\";\n\nimport React, { forwardRef, useState, useMemo } from \"react\";\nimport { useCls, cn } from \"../utils\";\nimport {\n CheckCircleIcon,\n XCircleIcon,\n WarningIcon,\n InfoIcon,\n LightbulbIcon,\n XIcon,\n} from \"@bioturing/assets\";\nimport { IconButton } from \"../icon-button\";\nimport \"./style.css\";\n\nexport interface AlertProps {\n /**\n * Type of alert\n * @default \"info\"\n */\n type?: \"success\" | \"info\" | \"warning\" | \"error\" | \"instruction\";\n\n /**\n * Content of the alert message\n */\n message?: React.ReactNode;\n\n /**\n * Additional content of the alert\n */\n description?: React.ReactNode;\n\n /**\n * Whether to show icon\n * @default true\n */\n showIcon?: boolean;\n\n /**\n * Custom icon, effective when showIcon is true\n */\n icon?: React.ReactNode;\n\n /**\n * Whether alert can be closed\n * @default false\n */\n closable?: boolean;\n\n /**\n * Custom close icon\n */\n closeIcon?: React.ReactNode;\n\n /**\n * Callback when close animation is finished\n */\n afterClose?: () => void;\n\n /**\n * Callback when close\n */\n onClose?: (e: React.MouseEvent<HTMLButtonElement>) => void;\n\n /**\n * Custom action\n */\n action?: React.ReactNode;\n\n /**\n * Whether to show as banner\n * @default false\n */\n banner?: boolean;\n\n /**\n * Additional class name\n */\n className?: string;\n\n /**\n * Additional styles\n */\n style?: React.CSSProperties;\n}\n\nconst ALERT_ICON_MAP = {\n success: CheckCircleIcon,\n error: XCircleIcon,\n warning: WarningIcon,\n info: InfoIcon,\n instruction: LightbulbIcon,\n};\n\nconst AlertInner = (\n {\n type = \"info\",\n message,\n description,\n showIcon = true,\n icon,\n closable = false,\n closeIcon,\n afterClose,\n onClose,\n action,\n banner = false,\n className,\n style,\n ...rest\n }: AlertProps,\n ref: React.Ref<HTMLDivElement>\n) => {\n const cls = useCls();\n const [closed, setClosed] = useState(false);\n\n const handleClose = (e: React.MouseEvent<HTMLButtonElement>) => {\n setClosed(true);\n onClose?.(e);\n // Call afterClose after animation\n setTimeout(() => {\n afterClose?.();\n }, 300);\n };\n\n // Determine if icon should be shown\n const isShowIcon = showIcon;\n const withDescription = !!description;\n\n // Render icon\n const iconNode = useMemo(() => {\n if (!isShowIcon) return null;\n\n if (icon) return icon;\n\n const IconComponent = ALERT_ICON_MAP[type];\n return (\n <IconComponent weight=\"fill\" className={cls(`alert-icon-${type}`)} />\n );\n }, [icon, type, isShowIcon, cls]);\n\n // Render close button\n const closeNode = useMemo(() => {\n if (!closable) return null;\n\n return (\n <IconButton\n size=\"small\"\n onClick={handleClose}\n className={cls(\"alert-close\")}\n >\n {closeIcon ?? <XIcon />}\n </IconButton>\n );\n }, [closable, closeIcon, cls]);\n\n if (closed) return null;\n\n const alertCls = cn(\n cls(\"alert\"),\n cls(`alert-${type}`),\n {\n [cls(\"alert-with-description\")]: withDescription,\n [cls(\"alert-no-icon\")]: !isShowIcon,\n [cls(\"alert-banner\")]: banner,\n [cls(\"alert-closable\")]: closable,\n [cls(\"alert-instruction\")]: type === \"instruction\",\n },\n className\n );\n\n return (\n <div ref={ref} className={alertCls} style={style} role=\"alert\" {...rest}>\n {iconNode && <div className={cls(\"alert-icon\")}>{iconNode}</div>}\n\n <div className={cls(\"alert-content\")}>\n {message && <div className={cls(\"alert-message\")}>{message}</div>}\n {description && (\n <div className={cls(\"alert-description\")}>{description}</div>\n )}\n {action && <div className={cls(\"alert-action\")}>{action}</div>}\n </div>\n\n {closeNode}\n </div>\n );\n};\n\nexport const Alert = forwardRef(AlertInner);\n\nAlert.displayName = \"Alert\";\n"],"names":["ALERT_ICON_MAP","CheckCircleIcon","XCircleIcon","WarningIcon","InfoIcon","LightbulbIcon","AlertInner","type","message","description","showIcon","icon","closable","closeIcon","afterClose","onClose","action","banner","className","style","rest","ref","cls","useCls","closed","setClosed","useState","handleClose","e","isShowIcon","withDescription","iconNode","useMemo","IconComponent","jsx","closeNode","IconButton","XIcon","alertCls","cn","jsxs","Alert","forwardRef"],"mappings":";;;;;;;;AAsFA,MAAMA,IAAiB;AAAA,EACrB,SAASC;AAAA,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I,OAAO;AAAA,IACXA,EAAI,SAASf,CAAI,EAAE;AAAA,IACnB;AAAA,MACE,CAACe,EAAI,wBAAwB,CAAC,GAAGQ;AAAA,MACjC,CAACR,EAAI,eAAe,CAAC,GAAG,CAACO;AAAA,MACzB,CAACP,EAAI,cAAc,CAAC,GAAGL;AAAA,MACvB,CAACK,EAAI,gBAAgB,CAAC,GAAGV;AAAA,MACzB,CAACU,EAAI,mBAAmB,CAAC,GAAGf,MAAS;AAAA,IAAA;AAAA,IAEvCW;AAAA,EAAA;AAGF,SACE,gBAAAsB,EAAC,SAAI,KAAAnB,GAAU,WAAWiB,GAAU,OAAAnB,GAAc,MAAK,SAAS,GAAGC,GAChE,UAAA;AAAA,IAAAW,uBAAa,OAAA,EAAI,WAAWT,EAAI,YAAY,GAAI,UAAAS,GAAS;AAAA,IAE1D,gBAAAS,EAAC,OAAA,EAAI,WAAWlB,EAAI,eAAe,GAChC,UAAA;AAAA,MAAAd,uBAAY,OAAA,EAAI,WAAWc,EAAI,eAAe,GAAI,UAAAd,GAAQ;AAAA,MAC1DC,KACC,gBAAAyB,EAAC,OAAA,EAAI,WAAWZ,EAAI,mBAAmB,GAAI,UAAAb,GAAY;AAAA,MAExDO,KAAU,gBAAAkB,EAAC,OAAA,EAAI,WAAWZ,EAAI,cAAc,GAAI,UAAAN,EAAA,CAAO;AAAA,IAAA,GAC1D;AAAA,IAECmB;AAAA,EAAA,GACH;AAEJ,GAEaM,IAAQC,EAAWpC,CAAU;AAE1CmC,EAAM,cAAc;"}
@@ -0,0 +1,2 @@
1
+ export * from './component';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/alert/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ @layer components{.ds-alert{position:relative;display:flex;align-items:flex-start;padding:.5rem .75rem;border-radius:.5rem;border:.0625rem solid transparent;gap:.5rem}.ds-alert-success{background-color:var(--ds-color-success-bg);border-color:var(--ds-color-success-border)}.ds-alert-info{background-color:var(--ds-color-info-bg);border-color:var(--ds-color-info-border)}.ds-alert-warning{background-color:var(--ds-color-warning-bg);border-color:var(--ds-color-warning-border)}.ds-alert-error{background-color:var(--ds-color-error-bg);border-color:var(--ds-color-error-border)}.ds-alert-instruction{background-color:var(--ds-color-fill-tertiary);border-color:var(--ds-color-border)}.ds-alert-banner{border-inline-start:0;border-inline-end:0;border-radius:0;padding-inline:.75rem}.ds-alert-banner.ds-alert-success,.ds-alert-banner.ds-alert-info,.ds-alert-banner.ds-alert-warning,.ds-alert-banner.ds-alert-error{border-color:transparent}.ds-alert-banner.ds-alert-instruction{border:none;background-color:var(--ds-color-fill-secondary)}.ds-alert-icon{display:flex;align-items:center;padding:.125rem 0;flex-shrink:0}.ds-alert-icon-success,.ds-alert-icon-error,.ds-alert-icon-warning,.ds-alert-icon-info,.ds-alert-icon-instruction{font-size:1.25rem;width:1.25rem;height:1.25rem}.ds-alert-icon .ds-alert-icon-success{color:var(--ds-color-success)}.ds-alert-icon .ds-alert-icon-error{color:var(--ds-color-error)}.ds-alert-icon .ds-alert-icon-warning{color:var(--ds-color-warning)}.ds-alert-icon .ds-alert-icon-info{color:var(--ds-color-primary)}.ds-alert-icon .ds-alert-icon-instruction{color:var(--ds-color-icon)}.ds-alert-content{flex:1;min-width:0}.ds-alert-message{color:var(--ds-color-text);font-size:.875rem;line-height:1.25rem;padding-top:.125rem;padding-bottom:.125rem}.ds-alert-with-description .ds-alert-message{font-weight:600;font-size:1rem;line-height:1.5rem;padding-top:0}.ds-alert-description{color:var(--ds-color-text);font-size:.875rem;line-height:1.25rem;margin-top:.125rem}.ds-alert-action{display:flex;align-items:flex-start;padding-top:.5rem;padding-bottom:.125rem;flex-shrink:0}.ds-alert-close{flex-shrink:0;padding-top:.125rem}}
@@ -1 +1 @@
1
- @layer components{span.ds-btn-icon{display:flex;align-items:center}.ds-btn-negative-margin-wrapper{display:inline-flex;flex-shrink:0}.ds-btn-negative-margin-wrapper,.ds-btn-negative-margin-wrapper.ds-btn-wrapper-lg{margin-inline:-1rem}.ds-btn-negative-margin-wrapper.ds-btn-wrapper-sm{margin-inline:-.5rem}.ds-btn-loading-icon svg{animation:spin 1s linear infinite}.ds-btn-loading:not(.ds-btn-with-icon) .ds-btn-loading-icon{position:absolute}.ds-btn-loading:not(.ds-btn-with-icon)>*:not(.ds-btn-loading-icon){opacity:0}}
1
+ @layer components{span.ds-btn-icon{display:flex;align-items:center}.ds-btn-negative-margin-wrapper{display:inline-flex;flex-shrink:0}.ds-btn-negative-margin-wrapper,.ds-btn-negative-margin-wrapper.ds-btn-wrapper-large{margin-inline:-1rem}.ds-btn-negative-margin-wrapper.ds-btn-wrapper-small{margin-inline:-.5rem}.ds-btn-loading-icon svg{animation:spin 1s linear infinite}.ds-btn-loading:not(.ds-btn-with-icon) .ds-btn-loading-icon{position:absolute}.ds-btn-loading:not(.ds-btn-with-icon)>*:not(.ds-btn-loading-icon){opacity:0}}
@@ -1,5 +1,5 @@
1
- export { Affix, Alert, Anchor, App, AutoComplete, Avatar, BackTop, Calendar, Card, Carousel, Cascader, Col, ColorPicker, ConfigProvider, DatePicker, Descriptions, Divider, Drawer, Dropdown, Flex, FloatButton, Grid, InputNumber, Layout, List, Mentions, Menu, message, notification, Pagination, Popconfirm, Progress, QRCode, Rate, Result, Row, Skeleton, Space, Statistic, Steps, Tabs, theme, TimePicker, Timeline, Transfer, TreeSelect, Typography, version, Watermark, unstableSetRender, } from 'antd';
2
- export type { AffixProps, AffixRef, AlertProps, AnchorLinkProps, AnchorProps, AppProps, AutoCompleteProps, AvatarProps, BackTopProps, CalendarMode, CalendarProps, CardProps, CarouselProps, CascaderProps, CascaderAutoProps, CascaderPanelProps, CascaderPanelAutoProps, CheckboxChangeEvent, CheckboxOptionType, CheckboxRef, ColProps, ColorPickerProps, ConfigProviderProps, ThemeConfig, DatePickerProps, DescriptionsProps, DividerProps, DrawerProps, DropDownProps, DropdownProps, FlexProps, FloatButtonGroupProps, FloatButtonProps, FloatButtonRef, FormInstance, FormListFieldData, FormListOperation, FormProps, InputNumberProps, LayoutProps, SiderProps, ListProps, MentionProps, MentionsProps, MenuItemProps, MenuProps, MenuRef, MenuTheme, SubMenuProps, MessageArgsProps, ModalFuncProps, NotificationArgsProps, PaginationProps, PopconfirmProps, ProgressProps, QRCodeProps, QRPropsCanvas, QRPropsSvg, RateProps, ResultProps, RowProps, RefSelectProps, SkeletonProps, SliderSingleProps, SpaceProps, CountdownProps, StatisticProps, StepProps, StepsProps, TableColumnGroupType, TableColumnProps, TableColumnType, TableColumnsType, TablePaginationConfig, TabPaneProps, TabsProps, TagType, GlobalToken, MappingAlgorithm, TimePickerProps, TimeRangePickerProps, TimelineItemProps, TimelineProps, TransferProps, TreeSelectProps, TypographyProps, UploadFile, WatermarkProps, } from 'antd';
1
+ export { Affix, Anchor, App, AutoComplete, Avatar, BackTop, Calendar, Card, Carousel, Cascader, Col, ColorPicker, ConfigProvider, DatePicker, Descriptions, Divider, Drawer, Dropdown, Flex, FloatButton, Grid, InputNumber, Layout, List, Mentions, Menu, message, notification, Pagination, Popconfirm, Progress, QRCode, Rate, Result, Row, Skeleton, Space, Statistic, Steps, Tabs, theme, TimePicker, Timeline, Transfer, TreeSelect, Typography, version, Watermark, unstableSetRender, } from 'antd';
2
+ export type { AffixProps, AffixRef, AnchorLinkProps, AnchorProps, AppProps, AutoCompleteProps, AvatarProps, BackTopProps, CalendarMode, CalendarProps, CardProps, CarouselProps, CascaderProps, CascaderAutoProps, CascaderPanelProps, CascaderPanelAutoProps, CheckboxChangeEvent, CheckboxOptionType, CheckboxRef, ColProps, ColorPickerProps, ConfigProviderProps, ThemeConfig, DatePickerProps, DescriptionsProps, DividerProps, DrawerProps, DropDownProps, DropdownProps, FlexProps, FloatButtonGroupProps, FloatButtonProps, FloatButtonRef, FormInstance, FormListFieldData, FormListOperation, FormProps, InputNumberProps, LayoutProps, SiderProps, ListProps, MentionProps, MentionsProps, MenuItemProps, MenuProps, MenuRef, MenuTheme, SubMenuProps, MessageArgsProps, ModalFuncProps, NotificationArgsProps, PaginationProps, PopconfirmProps, ProgressProps, QRCodeProps, QRPropsCanvas, QRPropsSvg, RateProps, ResultProps, RowProps, RefSelectProps, SkeletonProps, SliderSingleProps, SpaceProps, CountdownProps, StatisticProps, StepProps, StepsProps, TableColumnGroupType, TableColumnProps, TableColumnType, TableColumnsType, TablePaginationConfig, TabPaneProps, TabsProps, TagType, GlobalToken, MappingAlgorithm, TimePickerProps, TimeRangePickerProps, TimelineItemProps, TimelineProps, TransferProps, TreeSelectProps, TypographyProps, UploadFile, WatermarkProps, } from 'antd';
3
3
  export * from './select/index';
4
4
  export * from './modal/index';
5
5
  export * from './icon-button/index';
@@ -51,6 +51,7 @@ export * from './combobox/index';
51
51
  export * from './select-trigger/index';
52
52
  export * from './loader/index';
53
53
  export * from './window-portal/index';
54
+ export * from './alert/index';
54
55
  export * from './utils/index';
55
56
  export * from './hooks/index';
56
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,GAAG,EACH,YAAY,EACZ,MAAM,EACN,OAAO,EAIP,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EAER,GAAG,EAEH,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,QAAQ,EAER,IAAI,EACJ,WAAW,EAEX,IAAI,EAGJ,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,OAAO,EAEP,YAAY,EACZ,UAAU,EACV,UAAU,EAEV,QAAQ,EACR,MAAM,EAEN,IAAI,EACJ,MAAM,EACN,GAAG,EAGH,QAAQ,EAER,KAAK,EAEL,SAAS,EACT,KAAK,EAGL,IA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