@epam/ai-dial-chat-shared 1.3.0-dev.246 → 1.3.0-dev.248

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":"ConfirmationFooter.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmationView/ConfirmationFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAOzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,gDAAgD;AAChD,MAAM,WAAW,wBAAwB;IACvC,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,gDAAgD;AAChD,MAAM,WAAW,wBAAwB;IACvC,wDAAwD;IACxD,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC;AAED,sCAAsC;AACtC,MAAM,WAAW,uBAAuB;IACtC,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,4HAA4H;IAC5H,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,qCAAqC;IACrC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,kHAAkH;AAClH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAgE1D,CAAC"}
1
+ {"version":3,"file":"ConfirmationFooter.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmationView/ConfirmationFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EASzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,gDAAgD;AAChD,MAAM,WAAW,wBAAwB;IACvC,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,gDAAgD;AAChD,MAAM,WAAW,wBAAwB;IACvC,wDAAwD;IACxD,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC;AAED,sCAAsC;AACtC,MAAM,WAAW,uBAAuB;IACtC,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,4HAA4H;IAC5H,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,qCAAqC;IACrC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,kHAAkH;AAClH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAiE1D,CAAC"}
@@ -1,44 +1,43 @@
1
1
  import { mergeClasses as e } from "../../utils/merge-class.js";
2
2
  import { buildCssVars as t } from "../../utils/build-css-vars.js";
3
3
  import n from "./ConfirmationView.module.scss.js";
4
- import { ConfirmationPopupVariant as r, DIAL_ICON_SIZE as i, DIAL_KIT_ICON_STROKE as a, DangerButton as o, GhostButton as s, NeutralButton as c, Spinner as l } from "@epam/ai-dial-ui-kit";
5
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
6
- import { IconTrashX as f } from "@tabler/icons-react";
4
+ import { ConfirmationPopupVariant as r, DIAL_ICON_SIZE as i, DIAL_KIT_ICON_STROKE as a, DangerButton as o, GhostButton as s, LiveRegion as c, LiveRegionElement as l, NeutralButton as u, Spinner as d } from "@epam/ai-dial-ui-kit";
5
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
+ import { IconTrashX as m } from "@tabler/icons-react";
7
7
  //#region src/components/ConfirmationView/ConfirmationFooter.tsx
8
- var p = ({ confirmLabel: p, cancelLabel: m, variant: h = r.Info, isLoading: g = !1, isConfirmDisabled: _ = !1, loadingStatusLabel: v, styles: y, onConfirm: b, onCancel: x }) => {
9
- let S = h === r.Danger, C = t({ "--cfm-footer-border": y?.colors?.border }), w = (() => {
10
- if (g) return /* @__PURE__ */ u(l, { size: i.SM });
11
- if (S) return /* @__PURE__ */ u(f, {
8
+ var h = ({ confirmLabel: h, cancelLabel: g, variant: _ = r.Info, isLoading: v = !1, isConfirmDisabled: y = !1, loadingStatusLabel: b, styles: x, onConfirm: S, onCancel: C }) => {
9
+ let w = _ === r.Danger, T = t({ "--cfm-footer-border": x?.colors?.border }), E = (() => {
10
+ if (v) return /* @__PURE__ */ f(d, { size: i.SM });
11
+ if (w) return /* @__PURE__ */ f(m, {
12
12
  size: i.MD,
13
13
  "aria-hidden": !0,
14
14
  stroke: a
15
15
  });
16
- })(), T = S ? o : c;
17
- return /* @__PURE__ */ d("div", {
18
- style: C,
16
+ })(), D = w ? o : u;
17
+ return /* @__PURE__ */ p("div", {
18
+ style: T,
19
19
  className: e("flex items-center justify-end gap-2 px-4 py-4 rtl:flex-row-reverse rtl:justify-start desktop:px-6", n.footer),
20
20
  children: [
21
- /* @__PURE__ */ u(s, {
22
- label: m,
21
+ /* @__PURE__ */ f(s, {
22
+ label: g,
23
23
  className: "mobile:flex-1",
24
- disabled: g,
25
- onClick: x
24
+ disabled: v,
25
+ onClick: C
26
26
  }),
27
- /* @__PURE__ */ u(T, {
28
- label: p,
27
+ /* @__PURE__ */ f(D, {
28
+ label: h,
29
29
  className: "mobile:flex-1",
30
- disabled: g || _,
31
- iconBefore: w,
32
- onClick: b
30
+ disabled: v || y,
31
+ iconBefore: E,
32
+ onClick: S
33
33
  }),
34
- g && v != null && /* @__PURE__ */ u("span", {
35
- role: "status",
36
- "aria-live": "polite",
37
- className: "sr-only",
38
- children: v
34
+ b != null && /* @__PURE__ */ f(c, {
35
+ visuallyHidden: !0,
36
+ as: l.Span,
37
+ children: v ? b : ""
39
38
  })
40
39
  ]
41
40
  });
42
41
  };
43
42
  //#endregion
44
- export { p as ConfirmationFooter };
43
+ export { h as ConfirmationFooter };
@@ -27,7 +27,7 @@ export interface MarkdownCodeBlockProps {
27
27
  theme?: CodeBlockTheme;
28
28
  /** Accessible label for the copy button. Defaults to `'Copy code'`. */
29
29
  copyLabel?: string;
30
- /** Message announced through the block's `aria-live="polite"` region after a copy completes. The copy button's own accessible name stays `copyLabel`. Defaults to `'Copied!'`. */
30
+ /** Message announced through the block's polite kit `LiveRegion` after a copy completes. The copy button's own accessible name stays `copyLabel`. Defaults to `'Copied!'`. */
31
31
  copiedLabel?: string;
32
32
  /** Accessible label for the download button. Defaults to `'Download code'`. */
33
33
  downloadLabel?: string;
@@ -37,7 +37,7 @@ export interface MarkdownCodeBlockProps {
37
37
  containerClassName?: string;
38
38
  /** Extra classes applied to the sticky header bar. */
39
39
  headerClassName?: string;
40
- /** Typography class for the `<code>` element (used when no language is detected). Defaults to `'dial-code-text'`. */
40
+ /** Typography class for the code text — the `<code>` element, plus the highlighted `<pre>` when a language is detected. Defaults to `'dial-code-text'`. */
41
41
  codeClassName?: string;
42
42
  /** Whether the code keeps its own top padding below the header; `false` starts it right under the header. Defaults to `true`. */
43
43
  hasContentTopPadding?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAQ,KAAK,EAAE,EAAQ,KAAK,SAAS,EAAq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C5B,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2JAA2J;IAC3J,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iIAAiI;IACjI,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qKAAqK;IACrK,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uLAAuL;IACvL,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4IAA4I;IAC5I,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAiBD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAyJxD,CAAC"}
@@ -7,100 +7,97 @@ import { CHAT_SHARED_CLASS as o } from "../../../constants/public-class-names.js
7
7
  import { useCodeCopy as s } from "../../../hooks/useCodeCopy.js";
8
8
  import c from "./CodeBlock.module.scss.js";
9
9
  import { restrainedSyntaxTheme as l } from "./syntax-theme.js";
10
- import { DIAL_ICON_SIZE as u, DIAL_KIT_ICON_STROKE as d, ElementSize as f, GhostIconButton as p } from "@epam/ai-dial-ui-kit";
11
- import { Suspense as m, lazy as h, memo as g, useMemo as _ } from "react";
12
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
13
- import { IconCheck as b, IconCopy as x, IconDownload as S } from "@tabler/icons-react";
10
+ import { DIAL_ICON_SIZE as u, DIAL_KIT_ICON_STROKE as d, ElementSize as f, GhostIconButton as p, LiveRegion as m, LiveRegionElement as h } from "@epam/ai-dial-ui-kit";
11
+ import { Suspense as g, lazy as _, memo as v, useMemo as y } from "react";
12
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
13
+ import { IconCheck as S, IconCopy as C, IconDownload as w } from "@tabler/icons-react";
14
14
  //#region src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx
15
- var C = {
15
+ var T = {
16
16
  dark: l,
17
17
  light: l
18
- }, w = h(async () => {
18
+ }, E = _(async () => {
19
19
  let { Prism: e } = await import("react-syntax-highlighter");
20
20
  return { default: e };
21
- }), T = g(({ language: h, value: g, isStreaming: T, theme: E = e.Dark, copyLabel: D = "Copy code", copiedLabel: O = "Copied!", downloadLabel: k = "Download code", hideDownload: A = !1, hasContentTopPadding: j = !0, containerClassName: M, headerClassName: N, codeClassName: P = "dial-code-text", languageLabelClassName: F = "dial-tiny-lead-semi-text", title: I, titleSlot: L, colors: R }) => {
22
- let { isCopied: z, copy: B } = s(g), V = _(() => a(g), [g]), H = E === e.Light, U = () => {
23
- r(g, `code.${i(h)}`);
24
- }, W = /* @__PURE__ */ v("pre", {
25
- className: j ? "p-4" : "px-4 pt-0 pb-4",
26
- children: /* @__PURE__ */ v("code", {
27
- className: t("whitespace-pre", P),
28
- children: g
21
+ }), D = v(({ language: _, value: v, isStreaming: D, theme: O = e.Dark, copyLabel: k = "Copy code", copiedLabel: A = "Copied!", downloadLabel: j = "Download code", hideDownload: M = !1, hasContentTopPadding: N = !0, containerClassName: P, headerClassName: F, codeClassName: I = "dial-code-text", languageLabelClassName: L = "dial-tiny-lead-semi-text", title: R, titleSlot: z, colors: B }) => {
22
+ let { isCopied: V, copy: H } = s(v), U = y(() => a(v), [v]), W = O === e.Light, G = () => {
23
+ r(v, `code.${i(_)}`);
24
+ }, K = /* @__PURE__ */ b("pre", {
25
+ className: N ? "p-4" : "px-4 pt-0 pb-4",
26
+ children: /* @__PURE__ */ b("code", {
27
+ className: t("whitespace-pre", I),
28
+ children: v
29
29
  })
30
- }), G = n({
31
- "--cm-code-block-bg": R?.background,
32
- "--cm-code-block-border": R?.border,
33
- "--cm-code-block-header-bg": R?.headerBackground,
34
- "--cm-code-block-language": R?.language,
35
- "--cm-code-block-copied": R?.copied,
36
- "--cm-code-block-scrollbar": R?.scrollbar
30
+ }), q = n({
31
+ "--cm-code-block-bg": B?.background,
32
+ "--cm-code-block-border": B?.border,
33
+ "--cm-code-block-header-bg": B?.headerBackground,
34
+ "--cm-code-block-language": B?.language,
35
+ "--cm-code-block-copied": B?.copied,
36
+ "--cm-code-block-scrollbar": B?.scrollbar
37
37
  });
38
- return /* @__PURE__ */ y("div", {
39
- style: G,
40
- className: t("my-4 max-w-full [overflow:clip] rounded-xl border", c.container, H && c.containerLight, M, o.codeBlock),
38
+ return /* @__PURE__ */ x("div", {
39
+ style: q,
40
+ className: t("my-4 max-w-full [overflow:clip] rounded-xl border", c.container, W && c.containerLight, P, o.codeBlock),
41
41
  children: [
42
- /* @__PURE__ */ y("div", {
43
- className: t("sticky top-0 z-10 flex min-h-10 items-center justify-between px-4", L == null ? "py-2" : "py-0", c.header, N, o.codeBlockHeader),
44
- children: [L ?? /* @__PURE__ */ v("span", {
45
- className: t(c.languageLabel, F),
46
- children: I ?? h
47
- }), !T && /* @__PURE__ */ y("div", {
42
+ /* @__PURE__ */ x("div", {
43
+ className: t("sticky top-0 z-10 flex min-h-10 items-center justify-between px-4", z == null ? "py-2" : "py-0", c.header, F, o.codeBlockHeader),
44
+ children: [z ?? /* @__PURE__ */ b("span", {
45
+ className: t(c.languageLabel, L),
46
+ children: R ?? _
47
+ }), !D && /* @__PURE__ */ x("div", {
48
48
  className: "flex items-center gap-1",
49
- children: [!A && /* @__PURE__ */ v(p, {
50
- icon: /* @__PURE__ */ v(S, {
49
+ children: [!M && /* @__PURE__ */ b(p, {
50
+ icon: /* @__PURE__ */ b(w, {
51
51
  size: u.SM,
52
52
  stroke: d
53
53
  }),
54
- "aria-label": k,
54
+ "aria-label": j,
55
55
  size: f.Small,
56
- onClick: U
57
- }), /* @__PURE__ */ v(p, {
58
- icon: z ? /* @__PURE__ */ v(b, {
56
+ onClick: G
57
+ }), /* @__PURE__ */ b(p, {
58
+ icon: V ? /* @__PURE__ */ b(S, {
59
59
  size: u.SM,
60
60
  className: c.copiedIcon,
61
61
  "aria-hidden": !0,
62
62
  stroke: d
63
- }) : /* @__PURE__ */ v(x, {
63
+ }) : /* @__PURE__ */ b(C, {
64
64
  size: u.SM,
65
65
  "aria-hidden": !0,
66
66
  stroke: d
67
67
  }),
68
- "aria-label": D,
68
+ "aria-label": k,
69
69
  size: f.Small,
70
- onClick: B
70
+ onClick: H
71
71
  })]
72
72
  })]
73
73
  }),
74
- /* @__PURE__ */ v("div", {
74
+ /* @__PURE__ */ b("div", {
75
75
  className: t(c.scrollContainer, "max-h-[60vh] overflow-auto"),
76
76
  dir: "ltr",
77
- children: h && V ? /* @__PURE__ */ v(m, {
78
- fallback: W,
79
- children: /* @__PURE__ */ v(w, {
80
- language: h,
81
- style: C[E] ?? l,
77
+ children: _ && U ? /* @__PURE__ */ b(g, {
78
+ fallback: K,
79
+ children: /* @__PURE__ */ b(E, {
80
+ language: _,
81
+ style: T[O] ?? l,
82
82
  customStyle: {
83
83
  margin: 0,
84
84
  borderRadius: 0,
85
85
  background: "transparent",
86
- fontSize: 14,
87
- lineHeight: 1.5,
88
- padding: j ? "14px 16px" : "0 16px 14px",
89
- letterSpacing: 0
86
+ padding: N ? "14px 16px" : "0 16px 14px"
90
87
  },
91
- codeTagProps: { className: P },
92
- children: g
88
+ className: I,
89
+ codeTagProps: { className: I },
90
+ children: v
93
91
  })
94
- }) : W
92
+ }) : K
95
93
  }),
96
- /* @__PURE__ */ v("span", {
97
- role: "status",
98
- "aria-live": "polite",
99
- className: "sr-only",
100
- children: z ? O : ""
94
+ /* @__PURE__ */ b(m, {
95
+ visuallyHidden: !0,
96
+ as: h.Span,
97
+ children: V ? A : ""
101
98
  })
102
99
  ]
103
100
  });
104
101
  });
105
102
  //#endregion
106
- export { T as MarkdownCodeBlock };
103
+ export { D as MarkdownCodeBlock };
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownTable.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/Table/MarkdownTable.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAQf,OAAO,EAKL,KAAK,yBAAyB,EAC/B,MAAM,uBAA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D,CAAC"}
1
+ {"version":3,"file":"MarkdownTable.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/Table/MarkdownTable.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAQf,OAAO,EAKL,KAAK,yBAAyB,EAC/B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,wCAAwC,EACxC,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,EAC1B,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAEnG,iEAAiE;AACjE,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,sHAAsH;IACtH,QAAQ,EAAE,SAAS,CAAC;IACpB,uCAAuC;IACvC,UAAU,EAAE,uBAAuB,CAAC;IACpC,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,iFAAiF;IACjF,YAAY,CAAC,EAAE,yBAAyB,CAAC;IACzC,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2EAA2E;IAC3E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iGAAiG;IACjG,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAID,6FAA6F;AAC7F,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA6JhD,CAAC"}
@@ -7,57 +7,57 @@ import { useHorizontalOverflow as a } from "../../../hooks/useHorizontalOverflow
7
7
  import o from "./MarkdownTable.module.scss.js";
8
8
  import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as s, MARKDOWN_TABLE_CSV_MIME_TYPE as c, MarkdownTableCopyFormat as l, serializeMarkdownTableRows as u } from "./table-serialization.js";
9
9
  import { useMarkdownTableActions as d } from "./useMarkdownTableActions/useMarkdownTableActions.js";
10
- import { ElementSize as f, GhostIconButton as p } from "@epam/ai-dial-ui-kit";
11
- import { memo as m, useCallback as h, useEffect as g, useRef as _, useState as v } from "react";
12
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
10
+ import { ElementSize as f, GhostIconButton as p, LiveRegion as m, LiveRegionElement as h } from "@epam/ai-dial-ui-kit";
11
+ import { memo as g, useCallback as _, useEffect as v, useRef as y, useState as b } from "react";
12
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
13
13
  //#region src/components/MarkdownRenderer/Table/MarkdownTable.tsx
14
- var x = 2e3, S = m(({ children: s, classNames: m, colors: S, actionLabels: C, downloadFilename: w, isStreaming: T, onOpenInCanvas: E, scrollRegionAriaLabel: D = "Scrollable table" }) => {
15
- let [O, k] = v(!1), A = _(null), { scrollContainerRef: j, contentRef: M, hasContentBeyondStart: N, hasContentBeyondEnd: P, handleScroll: F } = a(), I = t({
16
- "--cm-markdown-border": S?.border,
17
- "--cm-table-scrollbar": S?.scrollbar,
18
- "--cm-table-fade": S?.fade,
19
- "--cm-table-row-divider": S?.rowDivider,
20
- "--cm-table-row-hover-bg": S?.rowHoverBackground
21
- }), L = N || P;
22
- g(() => () => {
23
- A.current != null && clearTimeout(A.current);
14
+ var C = 2e3, w = g(({ children: s, classNames: g, colors: w, actionLabels: T, downloadFilename: E, isStreaming: D, onOpenInCanvas: O, scrollRegionAriaLabel: k = "Scrollable table" }) => {
15
+ let [A, j] = b(!1), M = y(null), { scrollContainerRef: N, contentRef: P, hasContentBeyondStart: F, hasContentBeyondEnd: I, handleScroll: L } = a(), R = t({
16
+ "--cm-markdown-border": w?.border,
17
+ "--cm-table-scrollbar": w?.scrollbar,
18
+ "--cm-table-fade": w?.fade,
19
+ "--cm-table-row-divider": w?.rowDivider,
20
+ "--cm-table-row-hover-bg": w?.rowHoverBackground
21
+ }), z = F || I;
22
+ v(() => () => {
23
+ M.current != null && clearTimeout(M.current);
24
24
  }, []);
25
- let R = h(() => {
26
- let e = M.current;
25
+ let B = _(() => {
26
+ let e = P.current;
27
27
  if (e == null) return;
28
28
  let t = u(Array.from(e.rows), l.Markdown);
29
29
  n(t).then((e) => {
30
- e && (A.current != null && clearTimeout(A.current), k(!0), A.current = setTimeout(() => {
31
- k(!1);
32
- }, x));
30
+ e && (M.current != null && clearTimeout(M.current), j(!0), M.current = setTimeout(() => {
31
+ j(!1);
32
+ }, C));
33
33
  });
34
- }, [M]), z = h(() => {
35
- let e = M.current;
34
+ }, [P]), V = _(() => {
35
+ let e = P.current;
36
36
  if (e == null) return;
37
37
  let t = u(Array.from(e.rows), l.Csv);
38
- r(`\uFEFF${t}`, w ?? "table.csv", c);
39
- }, [M, w]), B = h(() => {
40
- let e = M.current;
41
- e != null && E != null && E(u(Array.from(e.rows), l.Markdown));
42
- }, [M, E]), V = d({
43
- actionLabels: C,
44
- isCopied: O,
45
- onCopy: R,
46
- onDownloadCsv: z,
47
- onOpenInCanvas: E == null ? void 0 : B
48
- }), H = V.length > 0 && !T;
49
- return /* @__PURE__ */ b("div", {
50
- style: I,
51
- className: e("group/table relative w-full max-w-full min-w-0 [overflow:clip] rounded-xl border", o.tableContainer, m.tableWrapper, i.table),
38
+ r(`\uFEFF${t}`, E ?? "table.csv", c);
39
+ }, [P, E]), H = _(() => {
40
+ let e = P.current;
41
+ e != null && O != null && O(u(Array.from(e.rows), l.Markdown));
42
+ }, [P, O]), U = d({
43
+ actionLabels: T,
44
+ isCopied: A,
45
+ onCopy: B,
46
+ onDownloadCsv: V,
47
+ onOpenInCanvas: O == null ? void 0 : H
48
+ }), W = U.length > 0 && !D;
49
+ return /* @__PURE__ */ S("div", {
50
+ style: R,
51
+ className: e("group/table relative w-full max-w-full min-w-0 [overflow:clip] rounded-xl border", o.tableContainer, g.tableWrapper, i.table),
52
52
  children: [
53
- H && /* @__PURE__ */ y("div", {
53
+ W && /* @__PURE__ */ x("div", {
54
54
  className: "sticky top-0 z-10 h-0",
55
- children: /* @__PURE__ */ y("div", {
55
+ children: /* @__PURE__ */ x("div", {
56
56
  className: "absolute inset-e-2 top-2 flex items-center gap-1 rounded-lg border border-tertiary bg-layer-raised px-2 py-1 opacity-0 shadow-xs transition-opacity group-hover/table:opacity-100 focus-within:opacity-100",
57
- children: V.map((e) => /* @__PURE__ */ y(p, {
57
+ children: U.map((e) => /* @__PURE__ */ x(p, {
58
58
  tooltipProps: { tooltip: e.label },
59
59
  "aria-label": e.label,
60
- icon: /* @__PURE__ */ y("span", {
60
+ icon: /* @__PURE__ */ x("span", {
61
61
  "aria-hidden": !0,
62
62
  children: e.icon
63
63
  }),
@@ -66,31 +66,30 @@ var x = 2e3, S = m(({ children: s, classNames: m, colors: S, actionLabels: C, do
66
66
  }, e.label))
67
67
  })
68
68
  }),
69
- /* @__PURE__ */ y("div", {
70
- ref: j,
71
- className: e("w-full max-w-full min-w-0 overflow-x-auto", o.scrollContainer, m.tableScrollContainer, {
72
- [o.tableScrollFadeBoth]: N && P,
73
- [o.tableScrollFadeStart]: N && !P,
74
- [o.tableScrollFadeEnd]: !N && P
69
+ /* @__PURE__ */ x("div", {
70
+ ref: N,
71
+ className: e("w-full max-w-full min-w-0 overflow-x-auto", o.scrollContainer, g.tableScrollContainer, {
72
+ [o.tableScrollFadeBoth]: F && I,
73
+ [o.tableScrollFadeStart]: F && !I,
74
+ [o.tableScrollFadeEnd]: !F && I
75
75
  }, i.tableScroll),
76
- onScroll: F,
77
- role: L ? "region" : void 0,
78
- "aria-label": L ? D : void 0,
79
- tabIndex: L ? 0 : void 0,
80
- children: /* @__PURE__ */ y("table", {
81
- ref: M,
82
- className: e("w-max min-w-full border-collapse", m.tableFont ?? "dial-small-text"),
76
+ onScroll: L,
77
+ role: z ? "region" : void 0,
78
+ "aria-label": z ? k : void 0,
79
+ tabIndex: z ? 0 : void 0,
80
+ children: /* @__PURE__ */ x("table", {
81
+ ref: P,
82
+ className: e("w-max min-w-full border-collapse", g.tableFont ?? "dial-small-text"),
83
83
  children: s
84
84
  })
85
85
  }),
86
- C?.copyLabel && /* @__PURE__ */ y("span", {
87
- "aria-live": "polite",
88
- className: "sr-only",
89
- role: "status",
90
- children: O ? C.copiedLabel ?? "" : ""
86
+ T?.copyLabel && /* @__PURE__ */ x(m, {
87
+ visuallyHidden: !0,
88
+ as: h.Span,
89
+ children: A ? T.copiedLabel ?? "" : ""
91
90
  })
92
91
  ]
93
92
  });
94
93
  });
95
94
  //#endregion
96
- export { s as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, c as MARKDOWN_TABLE_CSV_MIME_TYPE, S as MarkdownTable, l as MarkdownTableCopyFormat, u as serializeMarkdownTableRows };
95
+ export { s as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, c as MARKDOWN_TABLE_CSV_MIME_TYPE, w as MarkdownTable, l as MarkdownTableCopyFormat, u as serializeMarkdownTableRows };
@@ -1 +1 @@
1
- {"version":3,"file":"TextRefinementField.d.ts","sourceRoot":"","sources":["../../../src/components/TextRefinementField/TextRefinementField.tsx"],"names":[],"mappings":"AAWA,OAAO,EAA2B,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGzE,uCAAuC;AACvC,MAAM,WAAW,wBAAwB;IACvC,iFAAiF;IACjF,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,8CAA8C;IAC9C,UAAU,EAAE,oBAAoB,CAAC;IACjC,6BAA6B;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sHAAsH;IACtH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6GAA6G;IAC7G,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,mHAAmH;AACnH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAyK5D,CAAC"}
1
+ {"version":3,"file":"TextRefinementField.d.ts","sourceRoot":"","sources":["../../../src/components/TextRefinementField/TextRefinementField.tsx"],"names":[],"mappings":"AAYA,OAAO,EAA2B,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGzE,uCAAuC;AACvC,MAAM,WAAW,wBAAwB;IACvC,iFAAiF;IACjF,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,8CAA8C;IAC9C,UAAU,EAAE,oBAAoB,CAAC;IACjC,6BAA6B;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sHAAsH;IACtH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6GAA6G;IAC7G,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,mHAAmH;AACnH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA2K5D,CAAC"}
@@ -1,84 +1,84 @@
1
1
  import { mergeClasses as e } from "../../utils/merge-class.js";
2
2
  import { TextRefinementState as t } from "../../hooks/useTextRefinement.js";
3
- import { CaptionText as n, DIAL_ICON_SIZE as r, DIAL_KIT_ICON_STROKE as i, ElementSize as a, ErrorText as o, GhostButton as s, Label as c, Spinner as l } from "@epam/ai-dial-ui-kit";
4
- import { useLayoutEffect as u, useRef as d } from "react";
5
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
6
- import { IconRestore as h, IconSparkles as g } from "@tabler/icons-react";
3
+ import { CaptionText as n, DIAL_ICON_SIZE as r, DIAL_KIT_ICON_STROKE as i, ElementSize as a, ErrorText as o, GhostButton as s, Label as c, LiveRegionPoliteness as l, Spinner as u } from "@epam/ai-dial-ui-kit";
4
+ import { useLayoutEffect as d, useRef as f } from "react";
5
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
6
+ import { IconRestore as g, IconSparkles as _ } from "@tabler/icons-react";
7
7
  //#region src/components/TextRefinementField/TextRefinementField.tsx
8
- var _ = ({ isEnabled: _, fieldId: v, label: y, labelClassName: b, required: x, labels: S, refinement: C, disabled: w, feedbackClassName: T, errorClassName: E, caption: D, children: O }) => {
9
- let k = d(null), A = d(null), j = _ && C.isPending;
10
- u(() => {
11
- if (!j) return;
12
- let e = Array.from(A.current?.querySelectorAll("input, textarea") ?? []).find((e) => e.id === v);
8
+ var v = ({ isEnabled: v, fieldId: y, label: b, labelClassName: x, required: S, labels: C, refinement: w, disabled: T, feedbackClassName: E, errorClassName: D, caption: O, children: k }) => {
9
+ let A = f(null), j = f(null), M = v && w.isPending;
10
+ d(() => {
11
+ if (!M) return;
12
+ let e = Array.from(j.current?.querySelectorAll("input, textarea") ?? []).find((e) => e.id === y);
13
13
  if (!e) return;
14
14
  let t = e.readOnly;
15
15
  return e.readOnly = !0, () => {
16
16
  e.readOnly = t;
17
17
  };
18
- }, [j, v]);
19
- let M = D && /* @__PURE__ */ p(n, {
20
- text: D,
18
+ }, [M, y]);
19
+ let N = O && /* @__PURE__ */ m(n, {
20
+ text: O,
21
21
  className: "ms-auto shrink-0 text-end"
22
22
  });
23
- if (!_) return M ? /* @__PURE__ */ m("div", {
23
+ if (!v) return N ? /* @__PURE__ */ h("div", {
24
24
  className: "flex min-w-0 flex-col gap-1",
25
- children: [O, M]
26
- }) : /* @__PURE__ */ p(f, { children: O });
27
- let N = C.state === t.Error, P = C.canUndo, F = S?.refineWithAiLabel ?? "Refine with AI";
28
- j ? F = S?.refineRefiningLabel ?? "Refining" : P && (F = S?.refineRegenerateLabel ?? "Regenerate");
29
- let I = C.state === t.Pending || C.state === t.Success || C.state === t.Restored, L = {
25
+ children: [k, N]
26
+ }) : /* @__PURE__ */ m(p, { children: k });
27
+ let P = w.state === t.Error, F = w.canUndo, I = C?.refineWithAiLabel ?? "Refine with AI";
28
+ M ? I = C?.refineRefiningLabel ?? "Refining" : F && (I = C?.refineRegenerateLabel ?? "Regenerate");
29
+ let L = w.state === t.Pending || w.state === t.Success || w.state === t.Restored, R = {
30
30
  [t.Idle]: "",
31
- [t.Pending]: S?.refinePendingAriaLabel ?? "Refining text",
32
- [t.Success]: S?.refineSuccessAriaLabel ?? "Text refined",
33
- [t.Restored]: S?.refineUndoAriaLabel ?? "Original text restored.",
34
- [t.Unchanged]: S?.refineUnchangedAriaLabel ?? "No changes were needed.",
31
+ [t.Pending]: C?.refinePendingAriaLabel ?? "Refining text",
32
+ [t.Success]: C?.refineSuccessAriaLabel ?? "Text refined",
33
+ [t.Restored]: C?.refineUndoAriaLabel ?? "Original text restored.",
34
+ [t.Unchanged]: C?.refineUnchangedAriaLabel ?? "No changes were needed.",
35
35
  [t.Error]: ""
36
- }[C.state];
37
- return /* @__PURE__ */ m("div", {
36
+ }[w.state];
37
+ return /* @__PURE__ */ h("div", {
38
38
  className: "flex min-w-0 flex-col gap-1",
39
39
  role: "group",
40
- "aria-labelledby": v + "-label",
41
- "aria-describedby": N ? v + "-refinement-error" : void 0,
40
+ "aria-labelledby": y + "-label",
41
+ "aria-describedby": P ? y + "-refinement-error" : void 0,
42
42
  children: [
43
- /* @__PURE__ */ m("div", {
43
+ /* @__PURE__ */ h("div", {
44
44
  className: "flex min-w-0 flex-wrap items-center gap-x-3",
45
- children: [/* @__PURE__ */ p(c, {
46
- id: v + "-label",
47
- htmlFor: v,
48
- className: b,
49
- label: y,
50
- required: x
51
- }), /* @__PURE__ */ m("div", {
52
- ref: k,
45
+ children: [/* @__PURE__ */ m(c, {
46
+ id: y + "-label",
47
+ htmlFor: y,
48
+ className: x,
49
+ label: b,
50
+ required: S
51
+ }), /* @__PURE__ */ h("div", {
52
+ ref: A,
53
53
  className: "ms-auto flex min-w-0 flex-wrap items-center",
54
- children: [P && !j && /* @__PURE__ */ p(s, {
54
+ children: [F && !M && /* @__PURE__ */ m(s, {
55
55
  size: a.Small,
56
- label: S?.refineUndoLabel ?? "Restore original",
57
- disabled: w,
56
+ label: C?.refineUndoLabel ?? "Restore original",
57
+ disabled: T,
58
58
  onClick: () => {
59
- C.undo();
60
- let e = k.current?.querySelectorAll("button");
59
+ w.undo();
60
+ let e = A.current?.querySelectorAll("button");
61
61
  e?.[e.length - 1]?.focus();
62
62
  },
63
- iconBefore: /* @__PURE__ */ p(h, {
63
+ iconBefore: /* @__PURE__ */ m(g, {
64
64
  size: r.SM,
65
65
  stroke: i,
66
66
  "aria-hidden": !0
67
67
  })
68
- }), /* @__PURE__ */ p(s, {
68
+ }), /* @__PURE__ */ m(s, {
69
69
  size: a.Small,
70
- label: F,
71
- disabled: w || !C.canRefine,
70
+ label: I,
71
+ disabled: T || !w.canRefine,
72
72
  onClick: () => {
73
- C.refine();
73
+ w.refine();
74
74
  },
75
- iconBefore: j ? /* @__PURE__ */ p("span", {
75
+ iconBefore: M ? /* @__PURE__ */ m("span", {
76
76
  "aria-hidden": !0,
77
- children: /* @__PURE__ */ p(l, {
77
+ children: /* @__PURE__ */ m(u, {
78
78
  size: r.SM,
79
79
  ariaLabel: ""
80
80
  })
81
- }) : /* @__PURE__ */ p(g, {
81
+ }) : /* @__PURE__ */ m(_, {
82
82
  size: r.SM,
83
83
  stroke: i,
84
84
  "aria-hidden": !0
@@ -86,30 +86,30 @@ var _ = ({ isEnabled: _, fieldId: v, label: y, labelClassName: b, required: x, l
86
86
  })]
87
87
  })]
88
88
  }),
89
- /* @__PURE__ */ p("div", {
90
- ref: A,
91
- "aria-busy": C.isPending,
92
- children: O
93
- }),
94
89
  /* @__PURE__ */ m("div", {
90
+ ref: j,
91
+ "aria-busy": w.isPending,
92
+ children: k
93
+ }),
94
+ /* @__PURE__ */ h("div", {
95
95
  className: "flex min-w-0 items-start gap-3",
96
- children: [/* @__PURE__ */ p("div", {
97
- role: "status",
98
- "aria-live": "polite",
96
+ children: [/* @__PURE__ */ m("div", {
99
97
  className: "min-w-0 flex-1",
100
- children: /* @__PURE__ */ p(n, {
101
- text: L,
102
- className: e(T, I && "sr-only")
98
+ children: /* @__PURE__ */ m(n, {
99
+ text: R,
100
+ announce: l.Polite,
101
+ className: e(E, L && "sr-only")
103
102
  })
104
- }), M]
103
+ }), N]
105
104
  }),
106
- N && /* @__PURE__ */ p(o, {
107
- id: v + "-refinement-error",
108
- className: e(T, E),
109
- text: S?.refineErrorLabel ?? "Could not refine this text. Please try again."
105
+ /* @__PURE__ */ m(o, {
106
+ id: y + "-refinement-error",
107
+ announce: l.Assertive,
108
+ className: e(E, D),
109
+ text: P ? C?.refineErrorLabel ?? "Could not refine this text. Please try again." : ""
110
110
  })
111
111
  ]
112
112
  });
113
113
  };
114
114
  //#endregion
115
- export { _ as TextRefinementField };
115
+ export { v as TextRefinementField };
@@ -1 +1 @@
1
- {"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAW1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAgDlE,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,C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AAoB,EAAE,EAAE,CAAC,yBAAyB,CAumB9D,CAAC;;AAEF,wBAA0C"}
1
+ {"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAa1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAgDlE,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,0CAA0C;IAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,2DAA2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,yCAAyC;IACzC,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,mGAAmG;IACnG,OAAO,EAAE,sBAAsB,CAAC;IAChC,wEAAwE;IACxE,aAAa,EAAE,4BAA4B,CAAC;IAC5C,g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