@epam/ai-dial-attachment-canvas 1.3.0-dev.311 → 1.3.0-dev.317

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,15 +1,15 @@
1
1
  import { n as e, r as t, t as n } from "./attachment-canvas-BgwyzrRC.js";
2
2
  import { MIMEType as r, ensureDownloadFilename as i, mergeClasses as a, triggerAnchorDownload as o, triggerBlobDownload as s } from "@epam/ai-dial-chat-shared";
3
- import { Button as c, Spinner as l } from "@epam/ai-dial-ui-kit";
4
- import { Component as u, Suspense as d } from "react";
5
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
3
+ import { Button as c, LiveRegion as l, Spinner as u } from "@epam/ai-dial-ui-kit";
4
+ import { Component as d, Suspense as f, useState as p } from "react";
5
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
6
6
  //#region src/utils/download.ts
7
- var m = {
7
+ var _ = {
8
8
  [t.Docx]: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
9
9
  [t.Xlsx]: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
10
10
  [t.Pptx]: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
11
11
  [t.Csv]: r.CSV
12
- }, h = (t) => {
12
+ }, v = (t) => {
13
13
  switch (t.type) {
14
14
  case n.PlainText:
15
15
  case n.Markdown:
@@ -27,11 +27,11 @@ var m = {
27
27
  case n.Unsupported: return t.url != null;
28
28
  case n.Error: return t.errorType !== e.Forbidden && t.url != null;
29
29
  }
30
- }, g = async (e) => {
30
+ }, y = async (e) => {
31
31
  let t = await fetch(e);
32
32
  if (!t.ok) throw Error(`HTTP ${t.status}`);
33
33
  return t.blob();
34
- }, _ = (e) => {
34
+ }, b = (e) => {
35
35
  switch (e.type) {
36
36
  case n.Image: return {
37
37
  url: e.url,
@@ -47,7 +47,7 @@ var m = {
47
47
  };
48
48
  case n.Ooxml: return {
49
49
  url: e.url,
50
- mimeType: m[e.format]
50
+ mimeType: _[e.format]
51
51
  };
52
52
  case n.Html: return {
53
53
  url: e.url,
@@ -77,8 +77,8 @@ var m = {
77
77
  mimeType: void 0
78
78
  };
79
79
  }
80
- }, v = (e, t) => {
81
- let { url: a, mimeType: c } = _(e), l = i(t ?? "attachment", a, c);
80
+ }, x = (e, t) => {
81
+ let { url: a, mimeType: c } = b(e), l = i(t ?? "attachment", a, c);
82
82
  switch (e.type) {
83
83
  case n.PlainText:
84
84
  if (e.text === "") return;
@@ -113,59 +113,72 @@ var m = {
113
113
  o(e.url, l);
114
114
  return;
115
115
  case n.Error:
116
- if (!h(e) || e.url == null) return;
116
+ if (!v(e) || e.url == null) return;
117
117
  o(e.url, l);
118
118
  return;
119
119
  }
120
- }, y = { errorLabel: "_errorLabel_3lihu_2" }, b = ({ loadingLabel: e, pendingContent: t }) => /* @__PURE__ */ p("div", {
120
+ }, S = { errorLabel: "_errorLabel_3lihu_2" }, C = ({ loadingLabel: e, pendingContent: t }) => /* @__PURE__ */ g("div", {
121
121
  role: "status",
122
122
  "aria-live": "polite",
123
123
  className: "flex h-full items-center justify-center",
124
- children: [t ?? /* @__PURE__ */ f("span", {
124
+ children: [t ?? /* @__PURE__ */ h("span", {
125
125
  "aria-hidden": !0,
126
- children: /* @__PURE__ */ f(l, {})
127
- }), /* @__PURE__ */ f("span", {
126
+ children: /* @__PURE__ */ h(u, {})
127
+ }), /* @__PURE__ */ h("span", {
128
128
  className: "sr-only",
129
129
  children: e
130
130
  })]
131
- }), x = ({ errorLabel: e, retryLabel: t, onRetry: n, errorContent: r, errorLabelClassName: i = "dial-body-text" }) => /* @__PURE__ */ p("div", {
131
+ }), w = ({ errorLabel: e, retryLabel: t, onRetry: n, errorContent: r, errorLabelClassName: i = "dial-body-text" }) => /* @__PURE__ */ g("div", {
132
132
  className: "flex h-full flex-col items-center justify-center gap-3 p-4",
133
- children: [r, /* @__PURE__ */ p("div", {
133
+ children: [r, /* @__PURE__ */ g("div", {
134
134
  className: "flex flex-col items-center gap-3 text-center",
135
- children: [/* @__PURE__ */ f("p", {
136
- role: "status",
137
- className: a(i, y.errorLabel),
135
+ children: [/* @__PURE__ */ h("p", {
136
+ "aria-hidden": !0,
137
+ className: a(i, S.errorLabel),
138
138
  children: e
139
- }), /* @__PURE__ */ f(c, {
139
+ }), /* @__PURE__ */ h(c, {
140
140
  label: t,
141
141
  "aria-label": t,
142
142
  onClick: n
143
143
  })]
144
144
  })]
145
- }), S = class extends u {
145
+ }), T = class extends d {
146
146
  state = { hasError: !1 };
147
147
  static getDerivedStateFromError() {
148
148
  return { hasError: !0 };
149
149
  }
150
+ componentDidCatch() {
151
+ this.props.onError();
152
+ }
150
153
  componentDidUpdate(e) {
151
154
  e.retryKey !== this.props.retryKey && this.state.hasError && this.setState({ hasError: !1 });
152
155
  }
153
156
  render() {
154
- let { children: e, onRetry: t, pendingContent: n, errorContent: r, errorLabelClassName: i, labels: { loadingLabel: a = "Loading…", errorLabel: o = "Failed to load content", retryLabel: s = "Retry" } = {} } = this.props;
155
- return this.state.hasError ? /* @__PURE__ */ f(x, {
156
- errorLabel: o,
157
- retryLabel: s,
158
- onRetry: t,
159
- errorContent: r,
160
- errorLabelClassName: i
161
- }) : /* @__PURE__ */ f(d, {
162
- fallback: /* @__PURE__ */ f(b, {
163
- loadingLabel: a,
164
- pendingContent: n
157
+ return this.state.hasError ? this.props.errorFallback : this.props.children;
158
+ }
159
+ }, E = ({ children: e, retryKey: t, onRetry: n, pendingContent: r, errorContent: i, errorLabelClassName: a, labels: { loadingLabel: o = "Loading…", errorLabel: s = "Failed to load content", retryLabel: c = "Retry" } = {} }) => {
160
+ let [u, d] = p(null);
161
+ return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(l, {
162
+ visuallyHidden: !0,
163
+ children: u === t ? s : ""
164
+ }), /* @__PURE__ */ h(T, {
165
+ retryKey: t,
166
+ onError: () => d(t),
167
+ errorFallback: /* @__PURE__ */ h(w, {
168
+ errorLabel: s,
169
+ retryLabel: c,
170
+ onRetry: n,
171
+ errorContent: i,
172
+ errorLabelClassName: a
173
+ }),
174
+ children: /* @__PURE__ */ h(f, {
175
+ fallback: /* @__PURE__ */ h(C, {
176
+ loadingLabel: o,
177
+ pendingContent: r
165
178
  }),
166
179
  children: e
167
- });
168
- }
180
+ })
181
+ })] });
169
182
  };
170
183
  //#endregion
171
- export { g as a, v as i, x as n, h as o, b as r, S as t };
184
+ export { y as a, x as i, w as n, v as o, C as r, E as t };
@@ -0,0 +1,274 @@
1
+ import "./PdfContent.css";
2
+ import { a as e, n as t, r as n } from "./LazyContentBoundary-BJmXYamK.js";
3
+ import { mergeClasses as r } from "@epam/ai-dial-chat-shared";
4
+ import { DIAL_ICON_SIZE as i, DIAL_KIT_ICON_STROKE as a, Dropdown as o, DropdownOverlayRole as s, ElementSize as c, FabButton as ee, Input as te, LiveRegion as ne } from "@epam/ai-dial-ui-kit";
5
+ import { IconMenu2 as re, IconX as ie } from "@tabler/icons-react";
6
+ import { useCallback as l, useEffect as u, useId as ae, useRef as d, useState as f } from "react";
7
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
8
+ import { DocumentPreview as oe, PageThumbnail as se } from "@epam/ai-dial-react-pdf-highlighter";
9
+ var ce = { viewer: "_viewer_1gfxm_1" }, g = null, le = (e) => (g ||= new Promise((t, n) => {
10
+ try {
11
+ t(e());
12
+ } catch (e) {
13
+ n(e);
14
+ }
15
+ }).catch((e) => {
16
+ throw g = null, e;
17
+ }), g), ue = 15, _ = 3, de = 172, fe = 400, v = 150, pe = 60, y = ({ url: g, highlights: y, selectedHighlightId: b, selectedPageNumber: x, loadPdf: S, configurePdfWorker: C, hideHeader: me = !1, onLoadError: w, errorLabelClassName: he, labels: { thumbnailsLabel: T = "Thumbnails", showThumbnailsLabel: ge = "Show thumbnails", hideThumbnailsLabel: _e = "Hide thumbnails", pageNumberLabel: ve = "Page number", loadingLabel: ye = "Loading…", errorLabel: E = "Failed to load content", retryLabel: be = "Retry" } = {} }) => {
18
+ let [D, O] = f(() => C ? "preparing" : "ready"), [xe, Se] = f(0), Ce = l(async (t) => {
19
+ try {
20
+ return await (S ?? e)(t);
21
+ } catch (e) {
22
+ throw w?.(t), e;
23
+ }
24
+ }, [S, w]);
25
+ u(() => {
26
+ if (!C) return;
27
+ O("preparing");
28
+ let e = !1;
29
+ return le(C).then(() => {
30
+ e || O("ready");
31
+ }).catch(() => {
32
+ e || O("error");
33
+ }), () => {
34
+ e = !0;
35
+ };
36
+ }, [C, xe]);
37
+ let we = l(() => {
38
+ Se((e) => e + 1);
39
+ }, []), k = ae(), [A, Te] = f(0), [j, Ee] = f(/* @__PURE__ */ new Map()), [M, De] = f(!1), [N, P] = f(() => x ?? (b ? y.find((e) => e.id === b)?.bboxes[0]?.page ?? 1 : 1)), F = d(null), I = d(null), [Oe, L] = f([]), [R, ke] = f(de), [z, Ae] = f(fe), [je, B] = f(0), V = d(!1), H = d(0), U = d(null);
40
+ u(() => {
41
+ if (x != null) {
42
+ P(x);
43
+ return;
44
+ }
45
+ if (!b) return;
46
+ let e = y.find((e) => e.id === b)?.bboxes[0]?.page;
47
+ e != null && P(e);
48
+ }, [
49
+ x,
50
+ b,
51
+ y
52
+ ]), u(() => {
53
+ let e = I.current;
54
+ if (!M || !e) return;
55
+ let t = new ResizeObserver((e) => {
56
+ let t = e[0]?.contentRect.height;
57
+ t && Ae(t);
58
+ });
59
+ return t.observe(e), () => t.disconnect();
60
+ }, [M]);
61
+ let Me = l((e) => {
62
+ if (!e || V.current) return;
63
+ let t = e.getBoundingClientRect().height;
64
+ t > 0 && (V.current = !0, ke(t));
65
+ }, []), Ne = l((e) => {
66
+ H.current = e.currentTarget.scrollTop, U.current ??= requestAnimationFrame(() => {
67
+ U.current = null, B(H.current);
68
+ });
69
+ }, []);
70
+ u(() => () => {
71
+ U.current != null && cancelAnimationFrame(U.current);
72
+ }, []);
73
+ let W = l((e) => {
74
+ if (A === 0) return;
75
+ let t = Math.max(0, (N - 1) * R - e.clientHeight / 2 + R / 2);
76
+ H.current = t, B(t), e.scrollTop = t;
77
+ }, [
78
+ N,
79
+ A,
80
+ R
81
+ ]), Pe = l((e) => {
82
+ I.current = e, e && W(e);
83
+ }, [W]);
84
+ u(() => {
85
+ let e = I.current;
86
+ e && W(e);
87
+ }, [W]);
88
+ let G = Math.max(0, Math.floor(je / R) - _), Fe = Math.ceil(z / R) + 6, K = Math.min(A - 1, G + Fe);
89
+ u(() => {
90
+ if (A === 0) return;
91
+ let e = Math.min(A, ue);
92
+ L(Array.from({ length: e }, (e, t) => t + 1));
93
+ }, [A]), u(() => {
94
+ if (!M || A === 0) return;
95
+ let e = setTimeout(() => {
96
+ L((e) => {
97
+ let t = new Set(e), n = !1;
98
+ for (let e = G + 1; e <= K + 1; e++) t.has(e) || (t.add(e), n = !0);
99
+ return n ? Array.from(t).sort((e, t) => e - t) : e;
100
+ });
101
+ }, v);
102
+ return () => clearTimeout(e);
103
+ }, [
104
+ M,
105
+ G,
106
+ K,
107
+ A
108
+ ]), u(() => {
109
+ if (A === 0) return;
110
+ let e = setTimeout(() => {
111
+ let e = Math.ceil(z / R / 2) + _, t = Math.max(0, N - 1 - e), n = Math.min(A - 1, N - 1 + e);
112
+ L((e) => {
113
+ let r = new Set(e), i = !1;
114
+ for (let e = t + 1; e <= n + 1; e++) r.has(e) || (r.add(e), i = !0);
115
+ return i ? Array.from(r).sort((e, t) => e - t) : e;
116
+ });
117
+ }, v);
118
+ return () => clearTimeout(e);
119
+ }, [
120
+ N,
121
+ A,
122
+ z,
123
+ R
124
+ ]);
125
+ let Ie = l((e) => {
126
+ Ee((t) => new Map([...t, ...e]));
127
+ }, []), [q, Le] = f(!1), Re = l((e) => {
128
+ F.current = e, Le(!0);
129
+ }, []), J = d(null);
130
+ u(() => {
131
+ if (!q) return;
132
+ let e = J.current, t = e?.querySelector(".pdf-container"), n = e?.querySelector(".pdf-highlight-viewer");
133
+ if (!t || !n) return;
134
+ let r = () => {
135
+ let e = n.scrollWidth - n.clientWidth;
136
+ e > 0 && (n.scrollLeft = e / 2);
137
+ };
138
+ r();
139
+ let i = new ResizeObserver(r);
140
+ i.observe(t), i.observe(n);
141
+ let a = F.current?.getZoom(), o = 0, s, c = () => {
142
+ let e = F.current?.getZoom();
143
+ e !== a && (a = e, o = pe), o > 0 && (r(), --o), s = requestAnimationFrame(c);
144
+ };
145
+ return s = requestAnimationFrame(c), () => {
146
+ cancelAnimationFrame(s), i.disconnect();
147
+ };
148
+ }, [q]), u(() => {
149
+ if (!q || b || x != null) return;
150
+ let e = requestAnimationFrame(() => {
151
+ F.current?.navigateToPage(1);
152
+ });
153
+ return () => cancelAnimationFrame(e);
154
+ }, [
155
+ q,
156
+ b,
157
+ x
158
+ ]);
159
+ let Y = l((e) => {
160
+ P(e), F.current?.navigateToPage(e);
161
+ }, []), ze = l((e) => {
162
+ P(e);
163
+ }, []), [X, Z] = f(() => String(N));
164
+ u(() => {
165
+ Z(String(N));
166
+ }, [N]);
167
+ let Be = l((e) => {
168
+ let t = Number(e);
169
+ Number.isInteger(t) && t >= 1 && t <= A ? Y(t) : Z(String(N));
170
+ }, [
171
+ A,
172
+ N,
173
+ Y
174
+ ]);
175
+ if (!g) return null;
176
+ let Q = /* @__PURE__ */ m(ne, {
177
+ visuallyHidden: !0,
178
+ children: D === "error" ? E : ""
179
+ });
180
+ if (D === "preparing") return /* @__PURE__ */ h(p, { children: [Q, /* @__PURE__ */ m(n, { loadingLabel: ye })] });
181
+ if (D === "error") return /* @__PURE__ */ h(p, { children: [Q, /* @__PURE__ */ m(t, {
182
+ errorLabel: E,
183
+ retryLabel: be,
184
+ onRetry: we,
185
+ errorLabelClassName: he
186
+ })] });
187
+ let $ = [];
188
+ for (let e = G + 1; e <= K + 1 && e <= A; e++) $.push(/* @__PURE__ */ m("div", {
189
+ ref: e === G + 1 ? Me : void 0,
190
+ children: /* @__PURE__ */ m(se, {
191
+ pageNum: e,
192
+ onSelectPage: Y,
193
+ isSelected: N === e,
194
+ isLoading: !j.has(e),
195
+ thumbnailUrl: j.get(e) ?? null
196
+ })
197
+ }, e));
198
+ let Ve = G * R, He = Math.max(0, A - K - 1) * R;
199
+ return /* @__PURE__ */ h(p, { children: [Q, /* @__PURE__ */ h("div", {
200
+ className: "relative flex h-full overflow-hidden",
201
+ children: [A > 0 && /* @__PURE__ */ m("div", {
202
+ className: "absolute inset-s-3 top-3 z-10",
203
+ children: /* @__PURE__ */ m(o, {
204
+ open: M,
205
+ onOpenChange: De,
206
+ allowedPlacements: ["bottom-start"],
207
+ matchReferenceWidth: !1,
208
+ initialFocus: -1,
209
+ overlayRole: s.Dialog,
210
+ overlayAriaLabel: T,
211
+ renderOverlay: () => /* @__PURE__ */ h("div", {
212
+ className: "flex w-36 flex-col",
213
+ children: [/* @__PURE__ */ m("div", {
214
+ className: "w-[88px] shrink-0 p-1",
215
+ children: /* @__PURE__ */ m(te, {
216
+ size: c.Small,
217
+ "aria-label": ve,
218
+ value: X,
219
+ postfix: `/ ${A}`,
220
+ inputMode: "numeric",
221
+ onChange: (e) => Z(e ?? ""),
222
+ onBlur: () => Be(X),
223
+ onKeyDown: (e) => {
224
+ e.key === "Enter" && Be(X);
225
+ }
226
+ })
227
+ }), /* @__PURE__ */ h("div", {
228
+ ref: Pe,
229
+ id: k,
230
+ role: "region",
231
+ "aria-label": T,
232
+ onScroll: Ne,
233
+ className: "max-h-[min(70vh,calc(var(--fui-available-height,70vh)-2.5rem))] min-h-0 scrollbar-gutter-both overflow-x-hidden overflow-y-auto p-1",
234
+ children: [
235
+ /* @__PURE__ */ m("div", { style: { height: Ve } }),
236
+ $,
237
+ /* @__PURE__ */ m("div", { style: { height: He } })
238
+ ]
239
+ })]
240
+ }),
241
+ children: /* @__PURE__ */ m(ee, {
242
+ icon: m(M ? ie : re, {
243
+ size: i.LG,
244
+ stroke: a,
245
+ "aria-hidden": !0
246
+ }),
247
+ "aria-label": M ? _e : ge,
248
+ "aria-expanded": M,
249
+ "aria-controls": M ? k : void 0
250
+ })
251
+ })
252
+ }), /* @__PURE__ */ m("div", {
253
+ ref: J,
254
+ className: r("min-w-0 flex-1 overflow-hidden", ce.viewer),
255
+ children: /* @__PURE__ */ m(oe, {
256
+ fileUrl: g,
257
+ loadFileCb: Ce,
258
+ highlights: y,
259
+ selectedHighlightId: b,
260
+ selectedPageNumber: x,
261
+ showOccurrences: !1,
262
+ onTotalPagesChange: Te,
263
+ thumbnailPageNumbers: Oe,
264
+ onThumbnailsLoaded: Ie,
265
+ onViewerReady: Re,
266
+ onCurrentPageChange: ze,
267
+ viewerOptions: { enableVirtualScrolling: !0 },
268
+ containerClassName: me ? "[&>div:first-child]:hidden" : void 0
269
+ })
270
+ })]
271
+ })] });
272
+ };
273
+ //#endregion
274
+ export { y as PdfContent };
@@ -1,4 +1,4 @@
1
- import { Component, FC, ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  /** User-visible strings for {@link LazyContentBoundary}. All fields have English defaults. */
3
3
  interface LazyContentBoundaryLabels {
4
4
  /** Accessible status text announced while the lazy content loads. Defaults to `'Loading…'`. */
@@ -33,7 +33,7 @@ export interface LazyContentBoundaryProps {
33
33
  */
34
34
  pendingContent?: ReactNode;
35
35
  /**
36
- * Rendered above the `role="status"` retry message when the lazy import
36
+ * Rendered above the retry message when the lazy import
37
37
  * fails — e.g. a plain-text fallback that stays usable while retry is
38
38
  * offered. Omitted by default.
39
39
  */
@@ -56,21 +56,17 @@ interface LazyContentErrorProps {
56
56
  errorContent?: ReactNode;
57
57
  errorLabelClassName?: string;
58
58
  }
59
- /** Accessible retry state shared by lazy imports and asynchronous runtime preparation. */
59
+ /**
60
+ * Retry state shared by lazy imports and asynchronous runtime preparation.
61
+ * The visible message is hidden from assistive tech: the caller announces
62
+ * `errorLabel` through a `LiveRegion` it keeps mounted across states.
63
+ */
60
64
  export declare const LazyContentError: FC<LazyContentErrorProps>;
61
- interface LazyContentBoundaryState {
62
- /** Whether the wrapped lazy import has thrown (a rejected dynamic import). */
63
- hasError: boolean;
64
- }
65
65
  /**
66
66
  * Wraps a `lazy()`-loaded component with an accessible pending state
67
- * (`role="status"`) and a retryable failure state (`role="status"`).
67
+ * (`role="status"`) and a retryable failure state announced through an
68
+ * always-mounted `LiveRegion`.
68
69
  */
69
- export declare class LazyContentBoundary extends Component<LazyContentBoundaryProps, LazyContentBoundaryState> {
70
- state: LazyContentBoundaryState;
71
- static getDerivedStateFromError(): LazyContentBoundaryState;
72
- componentDidUpdate(prevProps: LazyContentBoundaryProps): void;
73
- render(): ReactNode;
74
- }
70
+ export declare const LazyContentBoundary: FC<LazyContentBoundaryProps>;
75
71
  export {};
76
72
  //# sourceMappingURL=LazyContentBoundary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LazyContentBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/LazyContentBoundary/LazyContentBoundary.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrE,8FAA8F;AAC9F,UAAU,yBAAyB;IACjC,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,6CAA6C;AAC7C,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,UAAU,uBAAuB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B;AAED,4FAA4F;AAC5F,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAiB1D,CAAC;AAEF,UAAU,qBAAqB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,0FAA0F;AAC1F,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAmBtD,CAAC;AAEF,UAAU,wBAAwB;IAChC,8EAA8E;IAC9E,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,SAAS,CAChD,wBAAwB,EACxB,wBAAwB,CACzB;IACU,KAAK,EAAE,wBAAwB,CAAuB;IAE/D,MAAM,CAAC,wBAAwB,IAAI,wBAAwB;IAIlD,kBAAkB,CAAC,SAAS,EAAE,wBAAwB,GAAG,IAAI;IAY7D,MAAM,IAAI,SAAS;CAuC7B"}
1
+ {"version":3,"file":"LazyContentBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/LazyContentBoundary/LazyContentBoundary.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiC,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG/E,8FAA8F;AAC9F,UAAU,yBAAyB;IACjC,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,6CAA6C;AAC7C,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;IACpB;;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,CAAC;IAC7B,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6JAA6J;IAC7J,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC/C;AAgBD,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAoI9D,CAAC"}
1
+ {"version":3,"file":"McpAppCanvasRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/McpAppCanvasRenderer/McpAppCanvasRenderer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,KAAK,EAAE,EAAwC,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAG1E,sDAAsD;AACtD,MAAM,WAAW,yBAAyB;IACxC,iCAAiC;IACjC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6JAA6J;IAC7J,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC/C;AAgBD,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAwI9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OoxmlContent.d.ts","sourceRoot":"","sources":["../../../src/components/OoxmlContent/OoxmlContent.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAqQzE,UAAU,iBAAiB;IACzB,gDAAgD;IAChD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,8EAA8E;IAC9E,YAAY,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,6EAA6E;IAC7E,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gGAAgG;IAChG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2HAA2H;IAC3H,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,oHAAoH;AACpH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4V9C,CAAC"}
1
+ {"version":3,"file":"OoxmlContent.d.ts","sourceRoot":"","sources":["../../../src/components/OoxmlContent/OoxmlContent.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAqQzE,UAAU,iBAAiB;IACzB,gDAAgD;IAChD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,8EAA8E;IAC9E,YAAY,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,6EAA6E;IAC7E,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gGAAgG;IAChG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2HAA2H;IAC3H,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,oHAAoH;AACpH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAgW9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PdfContent.d.ts","sourceRoot":"","sources":["../../../src/components/PdfContent/PdfContent.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EACL,KAAK,EAA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H,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yFAAyF;IACzF,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,uEAAuE;IACvE,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,gGAAgG;IAChG,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,8GAA8G;AAC9G,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAojB1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"VisualizerCanvasRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EACV,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,gCAAgC,CAAC;AAKxC,0DAA0D;AAC1D,MAAM,WAAW,6BAA6B;IAC5C,2JAA2J;IAC3J,OAAO,EAAE,uBAAuB,GAAG,8BAA8B,CAAC;IAClE,wHAAwH;IACxH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8GAA8G;IAC9G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mNAAmN;IACnN,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,wLAAwL;IACxL,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,wFAAwF;AACxF,UAAU,8BAA8B;IACtC,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAQD,+FAA+F;AAC/F,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CA+JtE,CAAC"}
1
+ {"version":3,"file":"VisualizerCanvasRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EACV,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,gCAAgC,CAAC;AAKxC,0DAA0D;AAC1D,MAAM,WAAW,6BAA6B;IAC5C,2JAA2J;IAC3J,OAAO,EAAE,uBAAuB,GAAG,8BAA8B,CAAC;IAClE,wHAAwH;IACxH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8GAA8G;IAC9G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mNAAmN;IACnN,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,wLAAwL;IACxL,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,wFAAwF;AACxF,UAAU,8BAA8B;IACtC,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAQD,+FAA+F;AAC/F,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAmKtE,CAAC"}