@green-on-grey/ui-kit 1.11.0 → 1.13.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.
package/dist/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as e, f as t, i as n, l as r, s as i, u as a } from "./ui-sV5t0cp1.js";
1
+ import { c as e, f as t, i as n, l as r, s as i, u as a } from "./ui-BrAaLui6.js";
2
2
  import { n as o, t as s } from "./i18n-BJ8rsBp6.js";
3
3
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
4
4
  import { useCallback as d, useEffect as f, useLayoutEffect as p, useMemo as m, useRef as h, useState as g } from "react";
@@ -0,0 +1,68 @@
1
+ /** A node: `group` picks the colour (g-c1…g-c6), `size` the radius. */
2
+ export type GraphNode = {
3
+ id: string;
4
+ label: string;
5
+ title?: string;
6
+ group?: number;
7
+ size?: number;
8
+ /** Not in the data of the product, only referred to: a dashed outline. */
9
+ dashed?: boolean;
10
+ /** Context around the shown set: drawn faded. */
11
+ muted?: boolean;
12
+ /** The label shows only on hover, focus or highlight. */
13
+ hideLabel?: boolean;
14
+ };
15
+ export type GraphEdge = {
16
+ source: string;
17
+ target: string;
18
+ weight?: number;
19
+ directed?: boolean;
20
+ dashed?: boolean;
21
+ title?: string;
22
+ };
23
+ export type GraphSelection = {
24
+ kind: "node";
25
+ id: string;
26
+ } | {
27
+ kind: "edge";
28
+ source: string;
29
+ target: string;
30
+ } | null;
31
+ /** A node with its place; the fields of d3-force are spelled out, so the types of the kit need no d3 types. */
32
+ type Placed = GraphNode & {
33
+ r: number;
34
+ index?: number;
35
+ x?: number;
36
+ y?: number;
37
+ vx?: number;
38
+ vy?: number;
39
+ fx?: number | null;
40
+ fy?: number | null;
41
+ };
42
+ /** Ids within `depth` steps of `from`, edges taken both ways. */
43
+ export declare function neighbours(edges: GraphEdge[], from: string, depth: number): Set<string>;
44
+ /** Positions of the nodes (exported for the tests): a force layout computed once per data. The start of
45
+ * d3-force is deterministic, so the same data gives the same picture. */
46
+ export declare function layout(nodes: GraphNode[], edges: GraphEdge[]): Placed[];
47
+ /** A graph of nodes and links (FTR.NAB.CMN-0003 R19, FTR.HMR.DEV-0002 R15, R16).
48
+ * Hovering highlights the neighbours, a click pins the selection; the wheel zooms,
49
+ * dragging moves. `focus` highlights a node and its neighbours within `depth`
50
+ * steps; `onOpen` is called on a double click or Enter on a node. The kit knows
51
+ * nothing of what the nodes are: labels and the legend come from the product.
52
+ * The layout runs when `nodes` or `edges` change identity: keep them stable (useMemo). */
53
+ export declare function Graph({ nodes, edges, ariaLabel, selected, onSelect, focus, depth, onOpen, legend, nodeLabel }: {
54
+ nodes: GraphNode[];
55
+ edges: GraphEdge[];
56
+ ariaLabel: string;
57
+ selected: GraphSelection;
58
+ onSelect: (s: GraphSelection) => void;
59
+ focus?: string;
60
+ depth?: 1 | 2;
61
+ onOpen?: (id: string) => void;
62
+ legend?: {
63
+ group: number;
64
+ label: string;
65
+ }[];
66
+ nodeLabel?: (n: GraphNode) => string;
67
+ }): import("react").JSX.Element;
68
+ export {};
package/dist/index.d.ts CHANGED
@@ -4,5 +4,6 @@ export { Button, IconButton } from "./components/Button";
4
4
  export { Tabs } from "./components/Tabs";
5
5
  export { Menu } from "./components/Menu";
6
6
  export { TopBar, type LinkComponent, type TopBarSection } from "./components/TopBar";
7
+ export { Graph, neighbours, type GraphNode, type GraphEdge, type GraphSelection } from "./components/Graph";
7
8
  export { Modal, ToastProvider, useToast, Avatar, Switch, Empty, Loading, useOutside, type ToastSpec } from "./components/ui";
8
9
  export { UIKIT_NS } from "./i18n";
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./ui-sV5t0cp1.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./ui-BrAaLui6.js";
2
2
  import { n as f, t as p } from "./i18n-BJ8rsBp6.js";
3
3
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
4
- import { useCallback as g, useEffect as _, useState as v } from "react";
4
+ import { useCallback as g, useEffect as _, useId as v, useMemo as y, useRef as b, useState as x } from "react";
5
+ import { forceCenter as S, forceCollide as C, forceLink as w, forceManyBody as T, forceSimulation as E } from "d3-force";
5
6
  //#region src/components/Button.tsx
6
- function y({ variant: e, size: t, className: n, type: r = "button", ...i }) {
7
+ function D({ variant: e, size: t, className: n, type: r = "button", ...i }) {
7
8
  let a = [
8
9
  "btn",
9
10
  e,
@@ -16,7 +17,7 @@ function y({ variant: e, size: t, className: n, type: r = "button", ...i }) {
16
17
  ...i
17
18
  });
18
19
  }
19
- function b({ label: e, fill: t, on: n, className: r, type: i = "button", ...a }) {
20
+ function O({ label: e, fill: t, on: n, className: r, type: i = "button", ...a }) {
20
21
  let o = [
21
22
  "iconbtn",
22
23
  t && "fill",
@@ -32,7 +33,7 @@ function b({ label: e, fill: t, on: n, className: r, type: i = "button", ...a })
32
33
  }
33
34
  //#endregion
34
35
  //#region src/components/Menu.tsx
35
- function x({ onClose: e, label: t, className: n, children: r }) {
36
+ function k({ onClose: e, label: t, className: n, children: r }) {
36
37
  let i = l(!0, e);
37
38
  return _(() => {
38
39
  let e = document.activeElement;
@@ -47,8 +48,8 @@ function x({ onClose: e, label: t, className: n, children: r }) {
47
48
  }
48
49
  //#endregion
49
50
  //#region src/components/TopBar.tsx
50
- function S({ logo: e, name: t, home: n = "/", sections: i, Link: a, center: o, actions: s, avatar: c, profileMenu: u, menu: d }) {
51
- let p = f(), [_, y] = v(!1), [b, x] = v(!1), S = g(() => x(!1), []), C = g(() => y(!1), []), w = l(b, S), T = i.map((e) => /* @__PURE__ */ m(a, {
51
+ function A({ logo: e, name: t, home: n = "/", sections: i, Link: a, center: o, actions: s, avatar: c, profileMenu: u, menu: d }) {
52
+ let p = f(), [_, v] = x(!1), [y, b] = x(!1), S = g(() => b(!1), []), C = g(() => v(!1), []), w = l(y, S), T = i.map((e) => /* @__PURE__ */ m(a, {
52
53
  href: e.href,
53
54
  className: e.active ? "on" : void 0,
54
55
  "aria-current": e.active ? "page" : void 0,
@@ -83,7 +84,7 @@ function S({ logo: e, name: t, home: n = "/", sections: i, Link: a, center: o, a
83
84
  className: "avatar",
84
85
  style: _ ? { boxShadow: "0 0 0 2px var(--violet)" } : void 0,
85
86
  onClick: () => {
86
- x(!1), y((e) => !e);
87
+ b(!1), v((e) => !e);
87
88
  },
88
89
  "aria-label": p("topbar.profile"),
89
90
  "aria-expanded": _,
@@ -93,15 +94,15 @@ function S({ logo: e, name: t, home: n = "/", sections: i, Link: a, center: o, a
93
94
  className: "burger",
94
95
  ref: w,
95
96
  children: [/* @__PURE__ */ m("button", {
96
- className: `iconbtn${b ? " on" : ""}`,
97
+ className: `iconbtn${y ? " on" : ""}`,
97
98
  onClick: () => {
98
- y(!1), x((e) => !e);
99
+ v(!1), b((e) => !e);
99
100
  },
100
101
  "aria-label": d?.label ?? p("topbar.sections"),
101
- "aria-expanded": b,
102
+ "aria-expanded": y,
102
103
  "aria-controls": "nav-sections",
103
- children: /* @__PURE__ */ m(r, { name: b ? "x" : "menu" })
104
- }), b && (d ? /* @__PURE__ */ m("div", {
104
+ children: /* @__PURE__ */ m(r, { name: y ? "x" : "menu" })
105
+ }), y && (d ? /* @__PURE__ */ m("div", {
105
106
  id: "nav-sections",
106
107
  className: "navmenu",
107
108
  children: d.render(S)
@@ -119,6 +120,215 @@ function S({ logo: e, name: t, home: n = "/", sections: i, Link: a, center: o, a
119
120
  });
120
121
  }
121
122
  //#endregion
122
- export { u as Avatar, y as Button, o as Empty, n as GitHubIcon, r as Icon, b as IconButton, c as Loading, d as Markdown, x as Menu, i as Modal, e as Switch, a as Tabs, s as ToastProvider, S as TopBar, p as UIKIT_NS, l as useOutside, t as useToast };
123
+ //#region src/components/Graph.tsx
124
+ var j = 760, M = 500, N = (e = 1) => 7 + Math.sqrt(e) * 3.2, P = (e, t) => {
125
+ let n = Math.max(.5, Math.min(4, e.k * t));
126
+ return {
127
+ k: n,
128
+ x: j / 2 - (j / 2 - e.x) / e.k * n,
129
+ y: M / 2 - (M / 2 - e.y) / e.k * n
130
+ };
131
+ };
132
+ function F(e, t, n) {
133
+ let r = /* @__PURE__ */ new Set([t]), i = [t];
134
+ for (let t = 0; t < n; t++) {
135
+ let t = [];
136
+ for (let n of i) for (let i of e) {
137
+ let e = i.source === n ? i.target : i.target === n ? i.source : null;
138
+ e && !r.has(e) && (r.add(e), t.push(e));
139
+ }
140
+ i = t;
141
+ }
142
+ return r;
143
+ }
144
+ function I(e, t) {
145
+ let n = e.map((e) => ({
146
+ ...e,
147
+ r: N(e.size)
148
+ })), r = new Set(n.map((e) => e.id)), i = t.filter((e) => r.has(e.source) && r.has(e.target)).map((e) => ({
149
+ source: e.source,
150
+ target: e.target,
151
+ weight: e.weight ?? 1
152
+ })), a = E(n).force("link", w(i).id((e) => e.id).distance(90).strength((e) => Math.min(1, .2 + e.weight * .08))).force("charge", T().strength(-260)).force("center", S(j / 2, M / 2)).force("collide", C().radius((e) => e.r + 14)).stop();
153
+ for (let e = 0; e < 260; e++) a.tick();
154
+ for (let e of n) e.x = Math.max(e.r + 30, Math.min(j - e.r - 30, e.x ?? j / 2)), e.y = Math.max(e.r + 10, Math.min(M - e.r - 24, e.y ?? M / 2));
155
+ return n;
156
+ }
157
+ function L({ nodes: e, edges: t, ariaLabel: n, selected: r, onSelect: i, focus: a, depth: o = 1, onOpen: s, legend: c, nodeLabel: l }) {
158
+ let u = f(), d = `g-arrow-${v().replace(/:/g, "")}`, [p, g] = x(null), [S, C] = x({
159
+ k: 1,
160
+ x: 0,
161
+ y: 0
162
+ }), w = b(null), T = b(null), { placed: E, byId: D } = y(() => {
163
+ let n = I(e, t);
164
+ return {
165
+ placed: n,
166
+ byId: new Map(n.map((e) => [e.id, e]))
167
+ };
168
+ }, [e, t]), O = a !== void 0 && D.has(a) ? a : void 0, k = p ?? (r?.kind === "node" ? r.id : null), A = y(() => r?.kind === "edge" && !p ? /* @__PURE__ */ new Set([r.source, r.target]) : k ? F(t, k, 1) : O ? F(t, O, o) : /* @__PURE__ */ new Set(), [
169
+ k,
170
+ r,
171
+ p,
172
+ O,
173
+ o,
174
+ t
175
+ ]), N = A.size > 0, L = (e) => r?.kind === "edge" && !p ? r.source === e.source && r.target === e.target : k ? e.source === k || e.target === k : O !== void 0 && A.has(e.source) && A.has(e.target), R = (e) => C((t) => P(t, e)), z = (e, t) => i(t ? null : {
176
+ kind: "node",
177
+ id: e
178
+ });
179
+ return _(() => {
180
+ let e = T.current;
181
+ if (!e) return;
182
+ let t = (e) => {
183
+ e.preventDefault(), C((t) => P(t, e.deltaY < 0 ? 1.15 : 1 / 1.15));
184
+ };
185
+ return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
186
+ }, []), /* @__PURE__ */ h("div", {
187
+ className: "gwrap",
188
+ children: [
189
+ /* @__PURE__ */ h("svg", {
190
+ ref: T,
191
+ viewBox: `0 0 ${j} ${M}`,
192
+ role: "group",
193
+ "aria-label": n,
194
+ className: N ? "dimmed" : void 0,
195
+ onPointerDown: (e) => {
196
+ e.target === e.currentTarget && (w.current = {
197
+ x: e.clientX,
198
+ y: e.clientY,
199
+ moved: !1
200
+ }, e.currentTarget.setPointerCapture(e.pointerId));
201
+ },
202
+ onPointerMove: (e) => {
203
+ if (!w.current) return;
204
+ let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - w.current.x) / t.width * j, r = (e.clientY - w.current.y) / t.height * M;
205
+ w.current = {
206
+ x: e.clientX,
207
+ y: e.clientY,
208
+ moved: w.current.moved || n !== 0 || r !== 0
209
+ }, C((e) => ({
210
+ ...e,
211
+ x: e.x + n,
212
+ y: e.y + r
213
+ }));
214
+ },
215
+ onPointerUp: () => {
216
+ w.current?.moved || (w.current = null);
217
+ },
218
+ onClick: (e) => {
219
+ let t = w.current?.moved;
220
+ w.current = null, !t && e.target === e.currentTarget && i(null);
221
+ },
222
+ children: [t.some((e) => e.directed) && /* @__PURE__ */ m("defs", { children: /* @__PURE__ */ m("marker", {
223
+ id: d,
224
+ viewBox: "0 0 10 10",
225
+ refX: "10",
226
+ refY: "5",
227
+ markerWidth: "7",
228
+ markerHeight: "7",
229
+ orient: "auto-start-reverse",
230
+ children: /* @__PURE__ */ m("path", { d: "M0,0 L10,5 L0,10 z" })
231
+ }) }), /* @__PURE__ */ h("g", {
232
+ transform: `translate(${S.x} ${S.y}) scale(${S.k})`,
233
+ children: [t.map((e, t) => {
234
+ let n = D.get(e.source), r = D.get(e.target);
235
+ if (!n || !r) return null;
236
+ let a = r.x ?? 0, o = r.y ?? 0;
237
+ if (e.directed) {
238
+ let e = a - (n.x ?? 0), t = o - (n.y ?? 0), i = Math.hypot(e, t) || 1;
239
+ a -= e / i * (r.r + 2), o -= t / i * (r.r + 2);
240
+ }
241
+ return /* @__PURE__ */ h("g", {
242
+ className: `g-e${e.dashed ? " dashed" : ""}${L(e) ? " hl" : ""}`,
243
+ onClick: () => i({
244
+ kind: "edge",
245
+ source: e.source,
246
+ target: e.target
247
+ }),
248
+ children: [
249
+ /* @__PURE__ */ m("line", {
250
+ x1: n.x,
251
+ y1: n.y,
252
+ x2: a,
253
+ y2: o,
254
+ strokeWidth: 1 + (e.weight ?? 1) * .5,
255
+ markerEnd: e.directed ? `url(#${d})` : void 0
256
+ }),
257
+ /* @__PURE__ */ m("line", {
258
+ className: "hit",
259
+ x1: n.x,
260
+ y1: n.y,
261
+ x2: r.x,
262
+ y2: r.y
263
+ }),
264
+ e.title && /* @__PURE__ */ m("title", { children: e.title })
265
+ ]
266
+ }, `${e.source}\u0000${e.target}\u0000${t}`);
267
+ }), E.map((e) => {
268
+ let t = r?.kind === "node" && r.id === e.id, n = [
269
+ "g-n",
270
+ `g-c${e.group ?? 1}`,
271
+ e.hideLabel && "small",
272
+ e.dashed && "dashed",
273
+ e.muted && "muted",
274
+ A.has(e.id) && "hl",
275
+ t && "pin",
276
+ O === e.id && "focus"
277
+ ].filter(Boolean).join(" ");
278
+ return /* @__PURE__ */ h("g", {
279
+ className: n,
280
+ tabIndex: 0,
281
+ role: "button",
282
+ "aria-pressed": t,
283
+ "aria-label": l ? l(e) : e.label,
284
+ onMouseEnter: () => g(e.id),
285
+ onMouseLeave: () => g(null),
286
+ onFocus: () => g(e.id),
287
+ onBlur: () => g(null),
288
+ onClick: () => z(e.id, t),
289
+ onDoubleClick: () => s?.(e.id),
290
+ onKeyDown: (n) => {
291
+ n.key === "Enter" && s ? (n.preventDefault(), s(e.id)) : (n.key === "Enter" || n.key === " ") && (n.preventDefault(), z(e.id, t));
292
+ },
293
+ children: [
294
+ /* @__PURE__ */ m("circle", {
295
+ cx: e.x,
296
+ cy: e.y,
297
+ r: e.r
298
+ }),
299
+ /* @__PURE__ */ m("text", {
300
+ x: e.x,
301
+ y: (e.y ?? 0) + e.r + 14,
302
+ children: e.label
303
+ }),
304
+ e.title && /* @__PURE__ */ m("title", { children: e.title })
305
+ ]
306
+ }, e.id);
307
+ })]
308
+ })]
309
+ }),
310
+ c && c.length > 0 && /* @__PURE__ */ m("div", {
311
+ className: "gleg",
312
+ children: c.map((e) => /* @__PURE__ */ h("span", { children: [/* @__PURE__ */ m("i", { className: `g-c${e.group}` }), e.label] }, e.group))
313
+ }),
314
+ /* @__PURE__ */ h("div", {
315
+ className: "gzoom",
316
+ children: [/* @__PURE__ */ m("button", {
317
+ type: "button",
318
+ onClick: () => R(1.3),
319
+ "aria-label": u("graph.zoomIn"),
320
+ children: "+"
321
+ }), /* @__PURE__ */ m("button", {
322
+ type: "button",
323
+ onClick: () => R(1 / 1.3),
324
+ "aria-label": u("graph.zoomOut"),
325
+ children: "−"
326
+ })]
327
+ })
328
+ ]
329
+ });
330
+ }
331
+ //#endregion
332
+ export { u as Avatar, D as Button, o as Empty, n as GitHubIcon, L as Graph, r as Icon, O as IconButton, c as Loading, d as Markdown, k as Menu, i as Modal, e as Switch, a as Tabs, s as ToastProvider, A as TopBar, p as UIKIT_NS, F as neighbours, l as useOutside, t as useToast };
123
333
 
124
334
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Switch","useToast","GitHubIcon","Icon","Tabs","Empty","ToastProvider","Loading","useOutside","Avatar","Markdown","useKitT","UIKIT_NS","Button","rest","cls","variant","size","className","IconButton","fill","on","label","Menu","ref","onClose","useEffect","opener","TopBar","t","profileOpen","setProfileOpen","useState","sectionsOpen","setSectionsOpen","closeSections","useCallback","closeProfile","links","sections","Link","s","home","logo","name","center","actions","v","avatar","menu","profileMenu","Modal"],"sources":["../src/components/Button.tsx","../src/components/Menu.tsx","../src/components/TopBar.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes } from \"react\";\n\ntype Native = ButtonHTMLAttributes<HTMLButtonElement>;\n\n/** `button.btn` with its variants. The classes stay a legitimate way to use a\n * button (FTR.NAB.CMN-0005 tech, decision 1); the component is for new code. */\nexport function Button({ variant, size, className, type = \"button\", ...rest }: Native & {\n variant?: \"primary\" | \"ghost\" | \"danger\"; size?: \"sm\";\n}) {\n const cls = [\"btn\", variant, size, className].filter(Boolean).join(\" \");\n return <button type={type} className={cls} {...rest} />;\n}\n\n/** `button.iconbtn`: a button with an icon only, so the label is required. */\nexport function IconButton({ label, fill, on, className, type = \"button\", ...rest }: Omit<Native, \"aria-label\"> & {\n label: string; fill?: boolean; on?: boolean;\n}) {\n const cls = [\"iconbtn\", fill && \"fill\", on && \"on\", className].filter(Boolean).join(\" \");\n return <button type={type} className={cls} aria-label={label} {...rest} />;\n}\n","import { useEffect, type ReactNode } from \"react\";\nimport { useOutside } from \"./ui\";\n\n/** `.menu`: a popover closed by Escape and by a click outside; it is mounted while\n * open. `onClose` must keep its identity between renders. What is inside\n * (sections `.sec`, lines `.line`, actions `.action`) belongs to the product. */\nexport function Menu({ onClose, label, className, children }: {\n onClose: () => void; label?: string; className?: string; children: ReactNode;\n}) {\n const ref = useOutside<HTMLDivElement>(true, onClose);\n // the focus returns to what opened the menu (CMP-05)\n useEffect(() => {\n const opener = document.activeElement as HTMLElement | null;\n return () => opener?.focus?.();\n }, []);\n return (\n <div className={`menu${className ? ` ${className}` : \"\"}`} role=\"dialog\" aria-label={label} ref={ref}>\n {children}\n </div>\n );\n}\n","import { useCallback, useState, type ReactNode } from \"react\";\nimport { useKitT } from \"../i18n\";\nimport { Icon } from \"./Icon\";\nimport { useOutside } from \"./ui\";\n\n/** The link of the product: the kit does not depend on a router (arch §4.2). */\nexport type LinkComponent = (props: {\n href: string; className?: string; onClick?: () => void; \"aria-current\"?: \"page\"; children: ReactNode;\n}) => ReactNode;\n\nexport interface TopBarSection { key: string; label: ReactNode; href: string; active: boolean }\n\n/** The top bar (FTR.NAB.CMN-0005 R5, design §4): the logo and the name, the\n * sections in a row and behind the burger on a phone, the actions of the product,\n * the avatar that opens the profile menu. The profile menu and the list of\n * sections are never open together. A part of the product with its own\n * navigation (the administration) puts it behind the burger in place of the\n * sections: `menu`, with the side panel marked `in-burger`, hidden on a phone. */\nexport function TopBar({ logo, name, home = \"/\", sections, Link, center, actions, avatar, profileMenu, menu }: {\n logo: string; name: string; home?: string; sections: TopBarSection[]; Link: LinkComponent;\n /** Between the sections and the actions: the search of Hammurapi. */\n center?: ReactNode;\n /** Before the avatar. */\n actions?: ReactNode;\n avatar: ReactNode;\n profileMenu: (close: () => void) => ReactNode;\n /** The burger of a phone in place of the sections: the navigation of the current part of the product and\n * its name, which the burger is called by. */\n menu?: { label: string; render: (close: () => void) => ReactNode };\n}) {\n const t = useKitT();\n const [profileOpen, setProfileOpen] = useState(false);\n const [sectionsOpen, setSectionsOpen] = useState(false);\n const closeSections = useCallback(() => setSectionsOpen(false), []);\n const closeProfile = useCallback(() => setProfileOpen(false), []);\n const ref = useOutside<HTMLDivElement>(sectionsOpen, closeSections);\n const links = sections.map((s) => (\n <Link key={s.key} href={s.href} className={s.active ? \"on\" : undefined} aria-current={s.active ? \"page\" : undefined} onClick={closeSections}>\n {s.label}\n </Link>\n ));\n return (\n <div className=\"topbar\">\n <Link href={home} className=\"brand\">\n <img src={logo} alt=\"\" />\n <span className=\"hide-m\">{name}</span>\n </Link>\n <nav className=\"nav hide-m\" aria-label={t(\"topbar.sections\")}>{links}</nav>\n {center}\n <div className=\"top-actions\">\n {actions}\n <button className=\"avatar\" style={profileOpen ? { boxShadow: \"0 0 0 2px var(--violet)\" } : undefined}\n onClick={() => { setSectionsOpen(false); setProfileOpen((v) => !v); }} aria-label={t(\"topbar.profile\")} aria-expanded={profileOpen}>\n {avatar}\n </button>\n <div className=\"burger\" ref={ref}>\n <button className={`iconbtn${sectionsOpen ? \" on\" : \"\"}`} onClick={() => { setProfileOpen(false); setSectionsOpen((v) => !v); }}\n aria-label={menu?.label ?? t(\"topbar.sections\")} aria-expanded={sectionsOpen} aria-controls=\"nav-sections\">\n <Icon name={sectionsOpen ? \"x\" : \"menu\"} />\n </button>\n {sectionsOpen && (menu\n ? <div id=\"nav-sections\" className=\"navmenu\">{menu.render(closeSections)}</div>\n : <nav id=\"nav-sections\" className=\"navmenu\" aria-label={t(\"topbar.sections\")}>{links}</nav>)}\n </div>\n </div>\n {profileOpen && profileMenu(closeProfile)}\n </div>\n );\n}\n"],"mappings":";;;;;AAMA,SAAgBa,EAAO,EAAE,YAAS,SAAM,cAAW,UAAO,UAAU,GAAGC,KAEpE;CACD,IAAMC,IAAM;EAAC;EAAOC;EAASC;EAAMC;CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;CACtE,OAAO,kBAAC,UAAD;EAAc;EAAM,WAAWH;EAAK,GAAID;CAAO,CAAA;AACxD;AAGA,SAAgBK,EAAW,EAAE,UAAO,SAAM,OAAI,cAAW,UAAO,UAAU,GAAGL,KAE1E;CACD,IAAMC,IAAM;EAAC;EAAWK,KAAQ;EAAQC,KAAM;EAAMH;CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;CACvF,OAAO,kBA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AAAS;GAAW,CAAA;GACzEO;GACD,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACGC;KACD,kBAAC,UAAD;MAAQ,WAAU;MAAS,OAAOhB,IAAc,EAAE,WAAW,0BAA0B,IAAI,KAAA;MACzF,eAAe;OAA0B,AAAxBI,EAAgB,EAAK,GAAGH,GAAgB,MAAM,CAACgB,CAAC;MAAG;MAAG,cAAYlB,EAAE,gBAAgB;MAAG,iBAAeC;MACtH,UAAAkB;KACK,CAAA;KACR,kBAAC,OAAD;MAAK,WAAU;MAAc;MAA7B,UAAA,CACE,kBAAC,UAAD;OAAQ,WAAW,UAAUf,IAAe,QAAQ;OAAM,eAAe;QAAyB,AAAvBF,EAAe,EAAK,GAAGG,GAAiB,MAAM,CAACa,CAAC;OAAG;OAC5H,cAAYE,GAAM,SAASpB,EAAE,iBAAiB;OAAG,iBAAeI;OAAc,iBAAc;OAC5F,UAAA,kBAAC9B,GAAD,EAAM,MAAM8B,IAAe,MAAM,OAAS,CAAA;MACpC,CAAA,GACPA,MAAiBgB,IACd,kBAAC,OAAD;OAAK,IAAG;OAAe,WAAU;OAAW,UAAAA,EAAK,OAAOd,CAAa;MAAO,CAAA,IAC5E,kBAAC,OAAD;OAAK,IAAG;OAAe,WAAU;OAAU,cAAYN,EAAE,iBAAiB;OAAI,UAAAS;MAAW,CAAA,EAC1F;;IACF;;GACJR,KAAeoB,EAAYb,CAAY;EACrC;;AAET"}
1
+ {"version":3,"file":"index.js","names":["Switch","useToast","GitHubIcon","Icon","Tabs","Empty","ToastProvider","Loading","useOutside","Avatar","Markdown","useKitT","UIKIT_NS","Button","rest","cls","variant","size","className","IconButton","fill","on","label","Menu","ref","onClose","useEffect","opener","TopBar","t","profileOpen","setProfileOpen","useState","sectionsOpen","setSectionsOpen","closeSections","useCallback","closeProfile","links","sections","Link","s","home","logo","name","center","actions","v","avatar","menu","profileMenu","W","H","radius","zoomed","k","factor","neighbours","near","from","frontier","d","depth","next","id","e","edges","other","layout","placed","nodes","n","ids","sim","forceSimulation","forceLink","l","forceManyBody","forceCenter","forceCollide","i","Graph","arrow","useId","hover","setHover","view","setView","drag","useRef","svg","useMemo","p","focused","focus","byId","active","selected","dimmed","edgeOn","zoom","pick","onSelect","pinned","el","wheel","ariaLabel","box","dx","dy","panned","a","b","x2","y2","len","nodeLabel","onOpen","legend","Modal"],"sources":["../src/components/Button.tsx","../src/components/Menu.tsx","../src/components/TopBar.tsx","../src/components/Graph.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes } from \"react\";\n\ntype Native = ButtonHTMLAttributes<HTMLButtonElement>;\n\n/** `button.btn` with its variants. The classes stay a legitimate way to use a\n * button (FTR.NAB.CMN-0005 tech, decision 1); the component is for new code. */\nexport function Button({ variant, size, className, type = \"button\", ...rest }: Native & {\n variant?: \"primary\" | \"ghost\" | \"danger\"; size?: \"sm\";\n}) {\n const cls = [\"btn\", variant, size, className].filter(Boolean).join(\" \");\n return <button type={type} className={cls} {...rest} />;\n}\n\n/** `button.iconbtn`: a button with an icon only, so the label is required. */\nexport function IconButton({ label, fill, on, className, type = \"button\", ...rest }: Omit<Native, \"aria-label\"> & {\n label: string; fill?: boolean; on?: boolean;\n}) {\n const cls = [\"iconbtn\", fill && \"fill\", on && \"on\", className].filter(Boolean).join(\" \");\n return <button type={type} className={cls} aria-label={label} {...rest} />;\n}\n","import { useEffect, type ReactNode } from \"react\";\nimport { useOutside } from \"./ui\";\n\n/** `.menu`: a popover closed by Escape and by a click outside; it is mounted while\n * open. `onClose` must keep its identity between renders. What is inside\n * (sections `.sec`, lines `.line`, actions `.action`) belongs to the product. */\nexport function Menu({ onClose, label, className, children }: {\n onClose: () => void; label?: string; className?: string; children: ReactNode;\n}) {\n const ref = useOutside<HTMLDivElement>(true, onClose);\n // the focus returns to what opened the menu (CMP-05)\n useEffect(() => {\n const opener = document.activeElement as HTMLElement | null;\n return () => opener?.focus?.();\n }, []);\n return (\n <div className={`menu${className ? ` ${className}` : \"\"}`} role=\"dialog\" aria-label={label} ref={ref}>\n {children}\n </div>\n );\n}\n","import { useCallback, useState, type ReactNode } from \"react\";\nimport { useKitT } from \"../i18n\";\nimport { Icon } from \"./Icon\";\nimport { useOutside } from \"./ui\";\n\n/** The link of the product: the kit does not depend on a router (arch §4.2). */\nexport type LinkComponent = (props: {\n href: string; className?: string; onClick?: () => void; \"aria-current\"?: \"page\"; children: ReactNode;\n}) => ReactNode;\n\nexport interface TopBarSection { key: string; label: ReactNode; href: string; active: boolean }\n\n/** The top bar (FTR.NAB.CMN-0005 R5, design §4): the logo and the name, the\n * sections in a row and behind the burger on a phone, the actions of the product,\n * the avatar that opens the profile menu. The profile menu and the list of\n * sections are never open together. A part of the product with its own\n * navigation (the administration) puts it behind the burger in place of the\n * sections: `menu`, with the side panel marked `in-burger`, hidden on a phone. */\nexport function TopBar({ logo, name, home = \"/\", sections, Link, center, actions, avatar, profileMenu, menu }: {\n logo: string; name: string; home?: string; sections: TopBarSection[]; Link: LinkComponent;\n /** Between the sections and the actions: the search of Hammurapi. */\n center?: ReactNode;\n /** Before the avatar. */\n actions?: ReactNode;\n avatar: ReactNode;\n profileMenu: (close: () => void) => ReactNode;\n /** The burger of a phone in place of the sections: the navigation of the current part of the product and\n * its name, which the burger is called by. */\n menu?: { label: string; render: (close: () => void) => ReactNode };\n}) {\n const t = useKitT();\n const [profileOpen, setProfileOpen] = useState(false);\n const [sectionsOpen, setSectionsOpen] = useState(false);\n const closeSections = useCallback(() => setSectionsOpen(false), []);\n const closeProfile = useCallback(() => setProfileOpen(false), []);\n const ref = useOutside<HTMLDivElement>(sectionsOpen, closeSections);\n const links = sections.map((s) => (\n <Link key={s.key} href={s.href} className={s.active ? \"on\" : undefined} aria-current={s.active ? \"page\" : undefined} onClick={closeSections}>\n {s.label}\n </Link>\n ));\n return (\n <div className=\"topbar\">\n <Link href={home} className=\"brand\">\n <img src={logo} alt=\"\" />\n <span className=\"hide-m\">{name}</span>\n </Link>\n <nav className=\"nav hide-m\" aria-label={t(\"topbar.sections\")}>{links}</nav>\n {center}\n <div className=\"top-actions\">\n {actions}\n <button className=\"avatar\" style={profileOpen ? { boxShadow: \"0 0 0 2px var(--violet)\" } : undefined}\n onClick={() => { setSectionsOpen(false); setProfileOpen((v) => !v); }} aria-label={t(\"topbar.profile\")} aria-expanded={profileOpen}>\n {avatar}\n </button>\n <div className=\"burger\" ref={ref}>\n <button className={`iconbtn${sectionsOpen ? \" on\" : \"\"}`} onClick={() => { setProfileOpen(false); setSectionsOpen((v) => !v); }}\n aria-label={menu?.label ?? t(\"topbar.sections\")} aria-expanded={sectionsOpen} aria-controls=\"nav-sections\">\n <Icon name={sectionsOpen ? \"x\" : \"menu\"} />\n </button>\n {sectionsOpen && (menu\n ? <div id=\"nav-sections\" className=\"navmenu\">{menu.render(closeSections)}</div>\n : <nav id=\"nav-sections\" className=\"navmenu\" aria-label={t(\"topbar.sections\")}>{links}</nav>)}\n </div>\n </div>\n {profileOpen && profileMenu(closeProfile)}\n </div>\n );\n}\n","import { useEffect, useId, useMemo, useRef, useState } from \"react\";\nimport { forceCenter, forceCollide, forceLink, forceManyBody, forceSimulation } from \"d3-force\";\nimport { useKitT } from \"../i18n\";\n\nconst W = 760;\nconst H = 500;\n\n/** A node: `group` picks the colour (g-c1…g-c6), `size` the radius. */\nexport type GraphNode = {\n id: string; label: string; title?: string; group?: number; size?: number;\n /** Not in the data of the product, only referred to: a dashed outline. */\n dashed?: boolean;\n /** Context around the shown set: drawn faded. */\n muted?: boolean;\n /** The label shows only on hover, focus or highlight. */\n hideLabel?: boolean;\n};\nexport type GraphEdge = { source: string; target: string; weight?: number; directed?: boolean; dashed?: boolean; title?: string };\nexport type GraphSelection = { kind: \"node\"; id: string } | { kind: \"edge\"; source: string; target: string } | null;\n\n/** A node with its place; the fields of d3-force are spelled out, so the types of the kit need no d3 types. */\ntype Placed = GraphNode & { r: number; index?: number; x?: number; y?: number; vx?: number; vy?: number; fx?: number | null; fy?: number | null };\n\nconst radius = (size = 1) => 7 + Math.sqrt(size) * 3.2;\n\ntype View = { k: number; x: number; y: number };\n/** The view zoomed by `factor`, between 0.5 and 4, keeping the centre of the field in place. */\nconst zoomed = (v: View, factor: number): View => {\n const k = Math.max(0.5, Math.min(4, v.k * factor));\n return { k, x: W / 2 - ((W / 2 - v.x) / v.k) * k, y: H / 2 - ((H / 2 - v.y) / v.k) * k };\n};\n\n/** Ids within `depth` steps of `from`, edges taken both ways. */\nexport function neighbours(edges: GraphEdge[], from: string, depth: number): Set<string> {\n const near = new Set([from]);\n let frontier = [from];\n for (let d = 0; d < depth; d++) {\n const next: string[] = [];\n for (const id of frontier) {\n for (const e of edges) {\n const other = e.source === id ? e.target : e.target === id ? e.source : null;\n if (other && !near.has(other)) { near.add(other); next.push(other); }\n }\n }\n frontier = next;\n }\n return near;\n}\n\n/** Positions of the nodes (exported for the tests): a force layout computed once per data. The start of\n * d3-force is deterministic, so the same data gives the same picture. */\nexport function layout(nodes: GraphNode[], edges: GraphEdge[]): Placed[] {\n const placed: Placed[] = nodes.map((n) => ({ ...n, r: radius(n.size) }));\n const ids = new Set(placed.map((n) => n.id));\n const links = edges.filter((e) => ids.has(e.source) && ids.has(e.target)).map((e) => ({ source: e.source, target: e.target, weight: e.weight ?? 1 }));\n const sim = forceSimulation(placed)\n .force(\"link\", forceLink<Placed, (typeof links)[number]>(links).id((d) => d.id).distance(90).strength((l) => Math.min(1, 0.2 + l.weight * 0.08)))\n .force(\"charge\", forceManyBody().strength(-260))\n .force(\"center\", forceCenter(W / 2, H / 2))\n .force(\"collide\", forceCollide<Placed>().radius((d) => d.r + 14))\n .stop();\n for (let i = 0; i < 260; i++) sim.tick();\n for (const n of placed) { // keep the labels inside the field\n n.x = Math.max(n.r + 30, Math.min(W - n.r - 30, n.x ?? W / 2));\n n.y = Math.max(n.r + 10, Math.min(H - n.r - 24, n.y ?? H / 2));\n }\n return placed;\n}\n\n/** A graph of nodes and links (FTR.NAB.CMN-0003 R19, FTR.HMR.DEV-0002 R15, R16).\n * Hovering highlights the neighbours, a click pins the selection; the wheel zooms,\n * dragging moves. `focus` highlights a node and its neighbours within `depth`\n * steps; `onOpen` is called on a double click or Enter on a node. The kit knows\n * nothing of what the nodes are: labels and the legend come from the product.\n * The layout runs when `nodes` or `edges` change identity: keep them stable (useMemo). */\nexport function Graph({ nodes, edges, ariaLabel, selected, onSelect, focus, depth = 1, onOpen, legend, nodeLabel }: {\n nodes: GraphNode[]; edges: GraphEdge[]; ariaLabel: string;\n selected: GraphSelection; onSelect: (s: GraphSelection) => void;\n focus?: string; depth?: 1 | 2;\n onOpen?: (id: string) => void;\n legend?: { group: number; label: string }[];\n nodeLabel?: (n: GraphNode) => string;\n}) {\n const t = useKitT();\n const arrow = `g-arrow-${useId().replace(/:/g, \"\")}`;\n const [hover, setHover] = useState<string | null>(null);\n const [view, setView] = useState<View>({ k: 1, x: 0, y: 0 });\n const drag = useRef<{ x: number; y: number; moved: boolean } | null>(null);\n const svg = useRef<SVGSVGElement>(null);\n\n const { placed, byId } = useMemo(() => {\n const p = layout(nodes, edges);\n return { placed: p, byId: new Map(p.map((n) => [n.id, n])) };\n }, [nodes, edges]);\n\n const focused = focus !== undefined && byId.has(focus) ? focus : undefined; // a focus outside the data fades nothing\n const active = hover ?? (selected?.kind === \"node\" ? selected.id : null);\n const near = useMemo(() => {\n if (selected?.kind === \"edge\" && !hover) return new Set([selected.source, selected.target]);\n if (active) return neighbours(edges, active, 1);\n if (focused) return neighbours(edges, focused, depth);\n return new Set<string>();\n }, [active, selected, hover, focused, depth, edges]);\n const dimmed = near.size > 0;\n const edgeOn = (e: GraphEdge) => {\n if (selected?.kind === \"edge\" && !hover) return selected.source === e.source && selected.target === e.target;\n if (active) return e.source === active || e.target === active;\n return focused !== undefined && near.has(e.source) && near.has(e.target);\n };\n\n const zoom = (factor: number) => setView((v) => zoomed(v, factor));\n const pick = (id: string, pinned: boolean) => onSelect(pinned ? null : { kind: \"node\", id });\n\n // The wheel zooms and does not scroll the page: React's onWheel is passive.\n useEffect(() => {\n const el = svg.current;\n if (!el) return;\n const wheel = (e: WheelEvent) => { e.preventDefault(); setView((v) => zoomed(v, e.deltaY < 0 ? 1.15 : 1 / 1.15)); };\n el.addEventListener(\"wheel\", wheel, { passive: false });\n return () => el.removeEventListener(\"wheel\", wheel);\n }, []);\n\n return (\n <div className=\"gwrap\">\n <svg ref={svg} viewBox={`0 0 ${W} ${H}`} role=\"group\" aria-label={ariaLabel} className={dimmed ? \"dimmed\" : undefined}\n onPointerDown={(e) => { if (e.target === e.currentTarget) { drag.current = { x: e.clientX, y: e.clientY, moved: false }; e.currentTarget.setPointerCapture(e.pointerId); } }}\n onPointerMove={(e) => {\n if (!drag.current) return;\n const box = e.currentTarget.getBoundingClientRect();\n const dx = ((e.clientX - drag.current.x) / box.width) * W;\n const dy = ((e.clientY - drag.current.y) / box.height) * H;\n drag.current = { x: e.clientX, y: e.clientY, moved: drag.current.moved || dx !== 0 || dy !== 0 };\n setView((v) => ({ ...v, x: v.x + dx, y: v.y + dy }));\n }}\n onPointerUp={() => { if (!drag.current?.moved) drag.current = null; }}\n onClick={(e) => {\n const panned = drag.current?.moved; // a pan ends with a click on the field: it keeps the selection\n drag.current = null;\n if (!panned && e.target === e.currentTarget) onSelect(null);\n }}>\n {edges.some((e) => e.directed) && (\n <defs>\n <marker id={arrow} viewBox=\"0 0 10 10\" refX=\"10\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\">\n <path d=\"M0,0 L10,5 L0,10 z\" />\n </marker>\n </defs>\n )}\n <g transform={`translate(${view.x} ${view.y}) scale(${view.k})`}>\n {edges.map((e, i) => {\n const a = byId.get(e.source), b = byId.get(e.target);\n if (!a || !b) return null;\n let x2 = b.x ?? 0, y2 = b.y ?? 0;\n if (e.directed) { // the arrow ends at the circle of the target\n const dx = x2 - (a.x ?? 0), dy = y2 - (a.y ?? 0), len = Math.hypot(dx, dy) || 1;\n x2 -= (dx / len) * (b.r + 2);\n y2 -= (dy / len) * (b.r + 2);\n }\n return (\n <g key={`${e.source}\\u0000${e.target}\\u0000${i}`} className={`g-e${e.dashed ? \" dashed\" : \"\"}${edgeOn(e) ? \" hl\" : \"\"}`}\n onClick={() => onSelect({ kind: \"edge\", source: e.source, target: e.target })}>\n <line x1={a.x} y1={a.y} x2={x2} y2={y2} strokeWidth={1 + (e.weight ?? 1) * 0.5} markerEnd={e.directed ? `url(#${arrow})` : undefined} />\n <line className=\"hit\" x1={a.x} y1={a.y} x2={b.x} y2={b.y} />\n {e.title && <title>{e.title}</title>}\n </g>\n );\n })}\n {placed.map((n) => {\n const pinned = selected?.kind === \"node\" && selected.id === n.id;\n const cls = [\"g-n\", `g-c${n.group ?? 1}`, n.hideLabel && \"small\", n.dashed && \"dashed\", n.muted && \"muted\",\n near.has(n.id) && \"hl\", pinned && \"pin\", focused === n.id && \"focus\"].filter(Boolean).join(\" \");\n return (\n <g key={n.id} className={cls}\n tabIndex={0} role=\"button\" aria-pressed={pinned} aria-label={nodeLabel ? nodeLabel(n) : n.label}\n onMouseEnter={() => setHover(n.id)} onMouseLeave={() => setHover(null)} onFocus={() => setHover(n.id)} onBlur={() => setHover(null)}\n onClick={() => pick(n.id, pinned)}\n onDoubleClick={() => onOpen?.(n.id)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" && onOpen) { e.preventDefault(); onOpen(n.id); return; }\n if (e.key === \"Enter\" || e.key === \" \") { e.preventDefault(); pick(n.id, pinned); }\n }}>\n <circle cx={n.x} cy={n.y} r={n.r} />\n <text x={n.x} y={(n.y ?? 0) + n.r + 14}>{n.label}</text>\n {n.title && <title>{n.title}</title>}\n </g>\n );\n })}\n </g>\n </svg>\n {legend && legend.length > 0 && (\n <div className=\"gleg\">{legend.map((l) => <span key={l.group}><i className={`g-c${l.group}`} />{l.label}</span>)}</div>\n )}\n <div className=\"gzoom\">\n <button type=\"button\" onClick={() => zoom(1.3)} aria-label={t(\"graph.zoomIn\")}>+</button>\n <button type=\"button\" onClick={() => zoom(1 / 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AGA,EAAE;SAAG,IAAIA,EAAE,KAAK,KAAKA,EAAE,IAAI;SAAK,UAAAA,EAAE;QAAY,CAAA;QACtDA,EAAE,SAAS,kBAAC,SAAD,EAAA,UAAQA,EAAE,MAAa,CAAA;OAClC;MAZK,GAAAA,EAAE,EAYP;KAEP,CAAC,CACA;IACA,CAAA,CAAA;;GACJ+C,KAAUA,EAAO,SAAS,KACzB,kBAAC,OAAD;IAAK,WAAU;IAAQ,UAAAA,EAAO,KAAK,MAAM,kBAAC,QAAD,EAAA,UAAA,CAAoB,kBAAC,KAAD,EAAG,WAAW,MAAM1C,EAAE,QAAU,CAAA,GAAEA,EAAE,KAAY,EAAA,GAAzDA,EAAE,KAAuD,CAAC;GAAO,CAAA;GAEvH,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,UAAD;KAAQ,MAAK;KAAS,eAAewB,EAAK,GAAG;KAAG,cAAYvE,EAAE,cAAc;KAAG,UAAA;IAAS,CAAA,GACxF,kBAAC,UAAD;KAAQ,MAAK;KAAS,eAAeuE,EAAK,IAAI,GAAG;KAAG,cAAYvE,EAAE,eAAe;KAAG,UAAA;IAAS,CAAA,CAC1F;;EACF;;AAET"}
@@ -146,6 +146,10 @@ export declare const resources: {
146
146
  capImage: string;
147
147
  capReasoning: string;
148
148
  };
149
+ graph: {
150
+ zoomIn: string;
151
+ zoomOut: string;
152
+ };
149
153
  };
150
154
  ru: {
151
155
  loading: string;
@@ -292,6 +296,10 @@ export declare const resources: {
292
296
  capImage: string;
293
297
  capReasoning: string;
294
298
  };
299
+ graph: {
300
+ zoomIn: string;
301
+ zoomOut: string;
302
+ };
295
303
  };
296
304
  de: {
297
305
  loading: string;
@@ -438,6 +446,10 @@ export declare const resources: {
438
446
  capImage: string;
439
447
  capReasoning: string;
440
448
  };
449
+ graph: {
450
+ zoomIn: string;
451
+ zoomOut: string;
452
+ };
441
453
  };
442
454
  es: {
443
455
  loading: string;
@@ -584,6 +596,10 @@ export declare const resources: {
584
596
  capImage: string;
585
597
  capReasoning: string;
586
598
  };
599
+ graph: {
600
+ zoomIn: string;
601
+ zoomOut: string;
602
+ };
587
603
  };
588
604
  zh: {
589
605
  loading: string;
@@ -730,6 +746,10 @@ export declare const resources: {
730
746
  capImage: string;
731
747
  capReasoning: string;
732
748
  };
749
+ graph: {
750
+ zoomIn: string;
751
+ zoomOut: string;
752
+ };
733
753
  };
734
754
  };
735
755
  export type KitLanguage = keyof typeof resources;
package/dist/locales.js CHANGED
@@ -144,6 +144,10 @@ var t = {
144
144
  everywhere: "The change applies in every channel and connected service.",
145
145
  capImage: "images",
146
146
  capReasoning: "reasoning"
147
+ },
148
+ graph: {
149
+ zoomIn: "Zoom in",
150
+ zoomOut: "Zoom out"
147
151
  }
148
152
  },
149
153
  ru: {
@@ -288,6 +292,10 @@ var t = {
288
292
  everywhere: "Изменение действует во всех каналах и подключённых сервисах.",
289
293
  capImage: "изображения",
290
294
  capReasoning: "рассуждение"
295
+ },
296
+ graph: {
297
+ zoomIn: "Приблизить",
298
+ zoomOut: "Отдалить"
291
299
  }
292
300
  },
293
301
  de: {
@@ -432,6 +440,10 @@ var t = {
432
440
  everywhere: "Die Änderung gilt in allen Kanälen und verbundenen Diensten.",
433
441
  capImage: "Bilder",
434
442
  capReasoning: "Reasoning"
443
+ },
444
+ graph: {
445
+ zoomIn: "Vergrößern",
446
+ zoomOut: "Verkleinern"
435
447
  }
436
448
  },
437
449
  es: {
@@ -576,6 +588,10 @@ var t = {
576
588
  everywhere: "El cambio se aplica en todos los canales y servicios conectados.",
577
589
  capImage: "imágenes",
578
590
  capReasoning: "razonamiento"
591
+ },
592
+ graph: {
593
+ zoomIn: "Acercar",
594
+ zoomOut: "Alejar"
579
595
  }
580
596
  },
581
597
  zh: {
@@ -720,6 +736,10 @@ var t = {
720
736
  everywhere: "更改在所有渠道和已连接的服务中生效。",
721
737
  capImage: "图片",
722
738
  capReasoning: "推理"
739
+ },
740
+ graph: {
741
+ zoomIn: "放大",
742
+ zoomOut: "缩小"
723
743
  }
724
744
  }
725
745
  };
@@ -1 +1 @@
1
- {"version":3,"file":"locales.js","names":["loading","cancel","create","close","remove","agentName","topbar","chat","agent","loading","cancel","create","close","remove","agentName","topbar","chat","agent","loading","cancel","create","close","remove","agentName","topbar","chat","agent","loading","cancel","create","close","remove","agentName","topbar","chat","agent","UIKIT_NS","resources","\"delete\"","\"sections\"","\"profile\"","\"title\"","\"conversations\"","\"conversation\"","\"topics\"","\"archive\"","\"noTopics\"","\"newTopic\"","\"topicTitle\"","\"topicHint\"","\"loadOlder\"","\"emptyTitle\"","\"placeholder\"","\"send\"","\"attach\"","\"typing\"","\"moreSteps\"","\"hideSteps\"","\"unread\"","\"retry\"","\"tooLarge\"","\"stop\"","\"voice\"","\"hold\"","\"recording\"","\"review\"","\"notRecognized\"","\"micDenied\"","\"unsupported\"","\"start\"","\"done\"","\"recognizing\"","\"recordingNow\"","\"failed\"","\"confirm\"","\"text\"","\"approve\"","\"reject\"","\"wait\"","\"starting\"","\"queued\"","\"palette\"","\"commands\"","\"skills\"","\"noSkills\"","\"empty\"","\"unknownCommand\"","\"sendAsText\"","\"skillPlaceholder\"","\"context\"","\"meter\"","\"full\"","\"compact\"","\"reset\"","\"waitTurn\"","\"waitQueue\"","\"event\"","\"details\"","\"files\"","\"open\"","\"download\"","\"save\"","\"notUtf8\"","\"rows\"","\"source\"","\"page\"","\"converted\"","\"pagesShown\"","\"firstPages\"","\"cols\"","\"preparing\"","\"preparingHint\"","\"unavailable\"","\"formulaHint\"","\"sheets\"","\"reasons\"","\"too_large\"","\"timeout\"","\"broken\"","\"busy\"","\"notice\"","\"more\"","\"less\"","\"queuePlaceholder\"","\"queue\"","\"position\"","\"cancel\"","\"stopAnswer\"","\"stopping\"","\"stopped\"","\"subagents\"","\"tools\"","\"state\"","\"running\"","\"aborted\"","\"turnStopped\"","\"retryQueued\"","\"menu\"","\"options\"","\"model\"","\"modelDefault\"","\"noModels\"","\"modelCompactWarn\"","\"everywhere\"","\"capImage\"","\"capReasoning\""],"sources":["../src/locales/en.json","../src/locales/ru.json","../src/locales/de.json","../src/locales/es.json","../src/locales/zh.json","../src/locales/index.ts"],"sourcesContent":["{\n \"loading\": \"Loading…\",\n \"cancel\": \"Cancel\",\n \"create\": \"Create\",\n \"close\": \"Close\",\n \"delete\": \"Delete\",\n \"remove\": \"Remove\",\n \"agentName\": \"Agent name\",\n \"topbar\": {\n \"sections\": \"Sections\",\n \"profile\": \"Profile\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Conversations\",\n \"conversation\": \"Conversation\",\n \"topics\": \"Topics\",\n \"archive\": \"Archive\",\n \"noTopics\": \"No topics yet\",\n \"newTopic\": \"New topic\",\n \"topicTitle\": \"Topic\",\n \"topicHint\": \"A topic has its own history and the same memory and space.\",\n \"loadOlder\": \"Earlier messages\",\n \"emptyTitle\": \"Hi, I am {name}\",\n \"placeholder\": \"Message {name}…\",\n \"send\": \"Send\",\n \"attach\": \"Attach files\",\n \"typing\": \"The agent is typing\",\n \"moreSteps\": \"{count, plural, one {# more step} other {# more steps}}\",\n \"hideSteps\": \"Hide steps\",\n \"unread\": \"{count, plural, one {# unread answer} other {# unread answers}}\",\n \"retry\": \"Retry\",\n \"tooLarge\": \"The file is too large.\",\n \"stop\": \"Stop\",\n \"voice\": {\n \"hold\": \"Hold to record\",\n \"stop\": \"Stop recording\",\n \"recording\": \"Recording… {seconds} s\",\n \"review\": \"Check the transcript before sending\",\n \"notRecognized\": \"The speech was not recognized\",\n \"micDenied\": \"No access to the microphone\",\n \"unsupported\": \"Voice input is not supported in this browser\",\n \"start\": \"Record a voice message\",\n \"done\": \"Stop\",\n \"recognizing\": \"Recognizing…\",\n \"recordingNow\": \"Recording\",\n \"failed\": \"The voice message could not be recognized\",\n \"retry\": \"Retry\"\n },\n \"confirm\": {\n \"title\": \"Confirm the action\",\n \"text\": \"The agent wants to perform: {action}\",\n \"approve\": \"Execute\",\n \"reject\": \"Reject\"\n },\n \"wait\": {\n \"starting\": \"The agent is starting…\",\n \"queued\": \"{count, plural, =0 {In the queue · you are next} one {In the queue · # ahead of you} other {In the queue · # ahead of you}}\"\n },\n \"palette\": {\n \"title\": \"Commands and skills\",\n \"commands\": \"Commands\",\n \"skills\": \"Skills\",\n \"noSkills\": \"No skills are granted to you\",\n \"empty\": \"Nothing found\"\n },\n \"unknownCommand\": \"Unknown command {name}\",\n \"sendAsText\": \"Send as text\",\n \"skillPlaceholder\": \"What to do with the skill?\",\n \"context\": {\n \"meter\": \"Context: {used} of {total} tokens ({pct}%)\",\n \"full\": \"Answers get more expensive and the agent may get confused.\",\n \"compact\": \"Compact\",\n \"reset\": \"Start over\",\n \"waitTurn\": \"Wait for the answer or stop it\",\n \"waitQueue\": \"Wait for the answers to the queued messages\"\n },\n \"event\": {\n \"details\": \"Summary\"\n },\n \"files\": {\n \"open\": \"Open {name}\",\n \"download\": \"Download\",\n \"failed\": \"Could not open the file\",\n \"tooLarge\": \"The file is too large to preview — download it\",\n \"save\": \"Download {name}\",\n \"notUtf8\": \"The file is not in UTF-8 — download it\",\n \"rows\": \"Showing {shown} of {total, plural, one {# row} other {# rows}}\",\n \"source\": \"Code\",\n \"page\": \"Page\",\n \"converted\": \"Preview · converted from {format}\",\n \"pagesShown\": \"Showing {shown} of {total} pages\",\n \"firstPages\": \"Showing the first {shown} pages\",\n \"cols\": \"and {shown} of {total} columns\",\n \"preparing\": \"Preparing the preview…\",\n \"preparingHint\": \"Usually a few seconds\",\n \"unavailable\": \"Preview unavailable\",\n \"formulaHint\": \"The value is calculated when opened in Excel\",\n \"sheets\": \"Sheets\",\n \"reasons\": {\n \"too_large\": \"The file is over {limit} MB\",\n \"timeout\": \"Took longer than 30 seconds\",\n \"broken\": \"The file is damaged or the format is not supported\",\n \"busy\": \"The service is busy, try again later\"\n }\n },\n \"notice\": {\n \"more\": \"Show in full\",\n \"less\": \"Collapse\"\n },\n \"queuePlaceholder\": \"The message will wait in the queue\",\n \"queue\": {\n \"position\": \"In the queue · {n}\",\n \"cancel\": \"Cancel\"\n },\n \"stopAnswer\": \"Stop the answer\",\n \"stopping\": \"Stopping…\",\n \"stopped\": \"Stopped\",\n \"subagents\": {\n \"title\": \"{count, plural, one {Subagents · #} other {Subagents · #}}\",\n \"done\": \"done\",\n \"failed\": \"{count, plural, one {# not done} other {# not done}}\",\n \"tools\": \"{count, plural, one {# tool} other {# tools}}\",\n \"state\": {\n \"running\": \"running\",\n \"done\": \"done\",\n \"failed\": \"error\",\n \"timeout\": \"stopped · out of time\",\n \"aborted\": \"stopped\",\n \"turnStopped\": \"stopped · the turn was stopped\"\n }\n },\n \"retryQueued\": \"The retry waits in the queue\"\n },\n \"agent\": {\n \"menu\": \"Agent\",\n \"options\": \"Tone\",\n \"model\": \"Model\",\n \"modelDefault\": \"Default\",\n \"noModels\": \"No models granted — ask an administrator\",\n \"modelCompactWarn\": \"The context will be compacted before the next answer\",\n \"everywhere\": \"The change applies in every channel and connected service.\",\n \"capImage\": \"images\",\n \"capReasoning\": \"reasoning\"\n }\n}\n","{\n \"loading\": \"Загрузка…\",\n \"cancel\": \"Отмена\",\n \"create\": \"Создать\",\n \"close\": \"Закрыть\",\n \"delete\": \"Удалить\",\n \"remove\": \"Убрать\",\n \"agentName\": \"Имя агента\",\n \"topbar\": {\n \"sections\": \"Разделы\",\n \"profile\": \"Профиль\"\n },\n \"chat\": {\n \"title\": \"Чат\",\n \"conversations\": \"Разговоры\",\n \"conversation\": \"Разговор\",\n \"topics\": \"Темы\",\n \"archive\": \"Архив\",\n \"noTopics\": \"Тем пока нет\",\n \"newTopic\": \"Новая тема\",\n \"topicTitle\": \"Тема\",\n \"topicHint\": \"У темы своя история, а память и пространство — те же.\",\n \"loadOlder\": \"Более ранние сообщения\",\n \"emptyTitle\": \"Привет, я {name}\",\n \"placeholder\": \"Сообщение для {name}…\",\n \"send\": \"Отправить\",\n \"attach\": \"Прикрепить файлы\",\n \"typing\": \"Агент печатает\",\n \"moreSteps\": \"{count, plural, one {ещё # шаг} few {ещё # шага} many {ещё # шагов} other {ещё # шага}}\",\n \"hideSteps\": \"Скрыть шаги\",\n \"unread\": \"{count, plural, one {# непрочитанный ответ} few {# непрочитанных ответа} many {# непрочитанных ответов} other {# непрочитанных ответа}}\",\n \"retry\": \"Повторить\",\n \"tooLarge\": \"Файл слишком большой.\",\n \"stop\": \"Остановить\",\n \"voice\": {\n \"hold\": \"Удерживайте для записи\",\n \"stop\": \"Остановить запись\",\n \"recording\": \"Запись… {seconds} с\",\n \"review\": \"Проверьте расшифровку перед отправкой\",\n \"notRecognized\": \"Речь не распознана\",\n \"micDenied\": \"Нет доступа к микрофону\",\n \"unsupported\": \"Голосовой ввод не поддерживается этим браузером\",\n \"start\": \"Записать голосом\",\n \"done\": \"Стоп\",\n \"recognizing\": \"Распознаём…\",\n \"recordingNow\": \"Запись\",\n \"failed\": \"Не удалось распознать голосовое сообщение\",\n \"retry\": \"Повторить\"\n },\n \"confirm\": {\n \"title\": \"Подтвердите действие\",\n \"text\": \"Агент хочет выполнить: {action}\",\n \"approve\": \"Выполнить\",\n \"reject\": \"Отклонить\"\n },\n \"wait\": {\n \"starting\": \"Агент запускается…\",\n \"queued\": \"{count, plural, =0 {В очереди · вы следующий} other {В очереди · перед вами #}}\"\n },\n \"palette\": {\n \"title\": \"Команды и скиллы\",\n \"commands\": \"Команды\",\n \"skills\": \"Скиллы\",\n \"noSkills\": \"Вам не выдан ни один скилл\",\n \"empty\": \"Ничего не найдено\"\n },\n \"unknownCommand\": \"Неизвестная команда {name}\",\n \"sendAsText\": \"Отправить как текст\",\n \"skillPlaceholder\": \"Что сделать по скиллу?\",\n \"context\": {\n \"meter\": \"Контекст: {used} из {total} токенов ({pct} %)\",\n \"full\": \"Ответы дорожают, агент может путаться.\",\n \"compact\": \"Сжать\",\n \"reset\": \"Начать заново\",\n \"waitTurn\": \"Дождитесь ответа или остановите его\",\n \"waitQueue\": \"Дождитесь ответов на сообщения в очереди\"\n },\n \"event\": {\n \"details\": \"Изложение\"\n },\n \"files\": {\n \"open\": \"Открыть {name}\",\n \"download\": \"Скачать\",\n \"failed\": \"Не удалось открыть файл\",\n \"tooLarge\": \"Файл слишком большой для просмотра — скачайте его\",\n \"save\": \"Скачать {name}\",\n \"notUtf8\": \"Файл не в кодировке UTF-8 — скачайте его\",\n \"rows\": \"Показаны {shown} из {total, plural, one {# строки} other {# строк}}\",\n \"source\": \"Код\",\n \"page\": \"Страница\",\n \"converted\": \"Предпросмотр · сконвертировано из {format}\",\n \"pagesShown\": \"Показаны {shown} из {total} страниц\",\n \"firstPages\": \"Показаны первые {shown} страниц\",\n \"cols\": \"и {shown} из {total} столбцов\",\n \"preparing\": \"Готовим предпросмотр…\",\n \"preparingHint\": \"Обычно несколько секунд\",\n \"unavailable\": \"Предпросмотр недоступен\",\n \"formulaHint\": \"Значение посчитается при открытии в Excel\",\n \"sheets\": \"Листы\",\n \"reasons\": {\n \"too_large\": \"Файл больше {limit} МБ\",\n \"timeout\": \"Не успели за 30 секунд\",\n \"broken\": \"Файл повреждён или формат не поддерживается\",\n \"busy\": \"Сервис занят, попробуйте позже\"\n }\n },\n \"notice\": {\n \"more\": \"Показать полностью\",\n \"less\": \"Свернуть\"\n },\n \"queuePlaceholder\": \"Сообщение встанет в очередь\",\n \"queue\": {\n \"position\": \"В очереди · {n}\",\n \"cancel\": \"Отменить\"\n },\n \"stopAnswer\": \"Остановить ответ\",\n \"stopping\": \"Останавливаю…\",\n \"stopped\": \"Остановлено\",\n \"subagents\": {\n \"title\": \"Субагенты · {count}\",\n \"done\": \"готово\",\n \"failed\": \"{count, plural, one {# с ошибкой} few {# с ошибкой} other {# с ошибкой}}\",\n \"tools\": \"{count} инстр.\",\n \"state\": {\n \"running\": \"работает\",\n \"done\": \"готово\",\n \"failed\": \"ошибка\",\n \"timeout\": \"прервано · по времени\",\n \"aborted\": \"прервано\",\n \"turnStopped\": \"прервано · ход остановлен\"\n }\n },\n \"retryQueued\": \"Повтор в очереди\"\n },\n \"agent\": {\n \"menu\": \"Агент\",\n \"options\": \"Тон\",\n \"model\": \"Модель\",\n \"modelDefault\": \"По умолчанию\",\n \"noModels\": \"Модели не выданы — обратитесь к администратору\",\n \"modelCompactWarn\": \"Контекст будет сжат перед следующим ответом\",\n \"everywhere\": \"Изменение действует во всех каналах и подключённых сервисах.\",\n \"capImage\": \"изображения\",\n \"capReasoning\": \"рассуждение\"\n }\n}\n","{\n \"loading\": \"Wird geladen…\",\n \"cancel\": \"Abbrechen\",\n \"create\": \"Erstellen\",\n \"close\": \"Schließen\",\n \"delete\": \"Löschen\",\n \"remove\": \"Entfernen\",\n \"agentName\": \"Name des Agenten\",\n \"topbar\": {\n \"sections\": \"Bereiche\",\n \"profile\": \"Profil\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Gespräche\",\n \"conversation\": \"Gespräch\",\n \"topics\": \"Themen\",\n \"archive\": \"Archiv\",\n \"noTopics\": \"Noch keine Themen\",\n \"newTopic\": \"Neues Thema\",\n \"topicTitle\": \"Thema\",\n \"topicHint\": \"Ein Thema hat einen eigenen Verlauf, aber dasselbe Gedächtnis und denselben Arbeitsbereich.\",\n \"loadOlder\": \"Frühere Nachrichten\",\n \"emptyTitle\": \"Hallo, ich bin {name}\",\n \"placeholder\": \"Nachricht an {name}…\",\n \"send\": \"Senden\",\n \"attach\": \"Dateien anhängen\",\n \"typing\": \"Der Agent schreibt\",\n \"moreSteps\": \"{count, plural, one {# weiterer Schritt} other {# weitere Schritte}}\",\n \"hideSteps\": \"Schritte ausblenden\",\n \"unread\": \"{count, plural, one {# ungelesene Antwort} other {# ungelesene Antworten}}\",\n \"retry\": \"Wiederholen\",\n \"tooLarge\": \"Die Datei ist zu groß.\",\n \"stop\": \"Stoppen\",\n \"voice\": {\n \"hold\": \"Zum Aufnehmen gedrückt halten\",\n \"stop\": \"Aufnahme beenden\",\n \"recording\": \"Aufnahme… {seconds} s\",\n \"review\": \"Prüfen Sie die Transkription vor dem Senden\",\n \"notRecognized\": \"Die Sprache wurde nicht erkannt\",\n \"micDenied\": \"Kein Zugriff auf das Mikrofon\",\n \"unsupported\": \"Spracheingabe wird von diesem Browser nicht unterstützt\",\n \"start\": \"Sprachnachricht aufnehmen\",\n \"done\": \"Stopp\",\n \"recognizing\": \"Wird erkannt…\",\n \"recordingNow\": \"Aufnahme\",\n \"failed\": \"Die Sprachnachricht konnte nicht erkannt werden\",\n \"retry\": \"Wiederholen\"\n },\n \"confirm\": {\n \"title\": \"Aktion bestätigen\",\n \"text\": \"Der Agent möchte ausführen: {action}\",\n \"approve\": \"Ausführen\",\n \"reject\": \"Ablehnen\"\n },\n \"wait\": {\n \"starting\": \"Der Agent startet…\",\n \"queued\": \"{count, plural, =0 {In der Warteschlange · Sie sind als Nächstes dran} other {In der Warteschlange · # vor Ihnen}}\"\n },\n \"palette\": {\n \"title\": \"Befehle und Skills\",\n \"commands\": \"Befehle\",\n \"skills\": \"Skills\",\n \"noSkills\": \"Ihnen ist kein Skill freigegeben\",\n \"empty\": \"Nichts gefunden\"\n },\n \"unknownCommand\": \"Unbekannter Befehl {name}\",\n \"sendAsText\": \"Als Text senden\",\n \"skillPlaceholder\": \"Was soll mit dem Skill getan werden?\",\n \"context\": {\n \"meter\": \"Kontext: {used} von {total} Tokens ({pct} %)\",\n \"full\": \"Antworten werden teurer, der Agent kann durcheinanderkommen.\",\n \"compact\": \"Komprimieren\",\n \"reset\": \"Neu beginnen\",\n \"waitTurn\": \"Warten Sie auf die Antwort oder stoppen Sie sie\",\n \"waitQueue\": \"Warten Sie auf die Antworten auf die Nachrichten in der Warteschlange\"\n },\n \"event\": {\n \"details\": \"Zusammenfassung\"\n },\n \"files\": {\n \"open\": \"{name} öffnen\",\n \"download\": \"Herunterladen\",\n \"failed\": \"Die Datei konnte nicht geöffnet werden\",\n \"tooLarge\": \"Die Datei ist zu groß für die Vorschau — bitte herunterladen\",\n \"save\": \"{name} herunterladen\",\n \"notUtf8\": \"Die Datei ist nicht in UTF-8 — bitte herunterladen\",\n \"rows\": \"{shown} von {total, plural, one {# Zeile} other {# Zeilen}} angezeigt\",\n \"source\": \"Code\",\n \"page\": \"Seite\",\n \"converted\": \"Vorschau · konvertiert aus {format}\",\n \"pagesShown\": \"{shown} von {total} Seiten werden angezeigt\",\n \"firstPages\": \"Die ersten {shown} Seiten werden angezeigt\",\n \"cols\": \"und {shown} von {total} Spalten\",\n \"preparing\": \"Vorschau wird vorbereitet…\",\n \"preparingHint\": \"Meist nur wenige Sekunden\",\n \"unavailable\": \"Vorschau nicht verfügbar\",\n \"formulaHint\": \"Der Wert wird beim Öffnen in Excel berechnet\",\n \"sheets\": \"Blätter\",\n \"reasons\": {\n \"too_large\": \"Die Datei ist größer als {limit} MB\",\n \"timeout\": \"Hat länger als 30 Sekunden gedauert\",\n \"broken\": \"Die Datei ist beschädigt oder das Format wird nicht unterstützt\",\n \"busy\": \"Der Dienst ist ausgelastet, versuchen Sie es später erneut\"\n }\n },\n \"notice\": {\n \"more\": \"Vollständig anzeigen\",\n \"less\": \"Einklappen\"\n },\n \"queuePlaceholder\": \"Die Nachricht wartet in der Warteschlange\",\n \"queue\": {\n \"position\": \"In der Warteschlange · {n}\",\n \"cancel\": \"Abbrechen\"\n },\n \"stopAnswer\": \"Antwort stoppen\",\n \"stopping\": \"Wird gestoppt…\",\n \"stopped\": \"Gestoppt\",\n \"subagents\": {\n \"title\": \"Subagenten · {count}\",\n \"done\": \"fertig\",\n \"failed\": \"{count} nicht fertig\",\n \"tools\": \"{count, plural, one {# Werkzeug} other {# Werkzeuge}}\",\n \"state\": {\n \"running\": \"läuft\",\n \"done\": \"fertig\",\n \"failed\": \"Fehler\",\n \"timeout\": \"abgebrochen · Zeit abgelaufen\",\n \"aborted\": \"abgebrochen\",\n \"turnStopped\": \"abgebrochen · Antwort gestoppt\"\n }\n },\n \"retryQueued\": \"Die Wiederholung wartet in der Warteschlange\"\n },\n \"agent\": {\n \"menu\": \"Agent\",\n \"options\": \"Ton\",\n \"model\": \"Modell\",\n \"modelDefault\": \"Standard\",\n \"noModels\": \"Keine Modelle freigegeben — wenden Sie sich an einen Administrator\",\n \"modelCompactWarn\": \"Der Kontext wird vor der nächsten Antwort komprimiert\",\n \"everywhere\": \"Die Änderung gilt in allen Kanälen und verbundenen Diensten.\",\n \"capImage\": \"Bilder\",\n \"capReasoning\": \"Reasoning\"\n }\n}\n","{\n \"loading\": \"Cargando…\",\n \"cancel\": \"Cancelar\",\n \"create\": \"Crear\",\n \"close\": \"Cerrar\",\n \"delete\": \"Eliminar\",\n \"remove\": \"Quitar\",\n \"agentName\": \"Nombre del agente\",\n \"topbar\": {\n \"sections\": \"Secciones\",\n \"profile\": \"Perfil\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Conversaciones\",\n \"conversation\": \"Conversación\",\n \"topics\": \"Temas\",\n \"archive\": \"Archivo\",\n \"noTopics\": \"Aún no hay temas\",\n \"newTopic\": \"Nuevo tema\",\n \"topicTitle\": \"Tema\",\n \"topicHint\": \"Un tema tiene su propio historial y la misma memoria y espacio.\",\n \"loadOlder\": \"Mensajes anteriores\",\n \"emptyTitle\": \"Hola, soy {name}\",\n \"placeholder\": \"Mensaje para {name}…\",\n \"send\": \"Enviar\",\n \"attach\": \"Adjuntar archivos\",\n \"typing\": \"El agente está escribiendo\",\n \"moreSteps\": \"{count, plural, one {# paso más} other {# pasos más}}\",\n \"hideSteps\": \"Ocultar pasos\",\n \"unread\": \"{count, plural, one {# respuesta sin leer} other {# respuestas sin leer}}\",\n \"retry\": \"Reintentar\",\n \"tooLarge\": \"El archivo es demasiado grande.\",\n \"stop\": \"Detener\",\n \"voice\": {\n \"hold\": \"Mantenga pulsado para grabar\",\n \"stop\": \"Detener la grabación\",\n \"recording\": \"Grabando… {seconds} s\",\n \"review\": \"Revise la transcripción antes de enviar\",\n \"notRecognized\": \"No se reconoció la voz\",\n \"micDenied\": \"Sin acceso al micrófono\",\n \"unsupported\": \"Este navegador no admite la entrada de voz\",\n \"start\": \"Grabar un mensaje de voz\",\n \"done\": \"Detener\",\n \"recognizing\": \"Reconociendo…\",\n \"recordingNow\": \"Grabando\",\n \"failed\": \"No se pudo reconocer el mensaje de voz\",\n \"retry\": \"Reintentar\"\n },\n \"confirm\": {\n \"title\": \"Confirme la acción\",\n \"text\": \"El agente quiere ejecutar: {action}\",\n \"approve\": \"Ejecutar\",\n \"reject\": \"Rechazar\"\n },\n \"wait\": {\n \"starting\": \"El agente se está iniciando…\",\n \"queued\": \"{count, plural, =0 {En cola · usted es el siguiente} other {En cola · # por delante}}\"\n },\n \"palette\": {\n \"title\": \"Comandos y skills\",\n \"commands\": \"Comandos\",\n \"skills\": \"Skills\",\n \"noSkills\": \"No tiene skills disponibles\",\n \"empty\": \"No se encontró nada\"\n },\n \"unknownCommand\": \"Comando desconocido {name}\",\n \"sendAsText\": \"Enviar como texto\",\n \"skillPlaceholder\": \"¿Qué hacer con el skill?\",\n \"context\": {\n \"meter\": \"Contexto: {used} de {total} tokens ({pct} %)\",\n \"full\": \"Las respuestas se encarecen y el agente puede confundirse.\",\n \"compact\": \"Compactar\",\n \"reset\": \"Empezar de nuevo\",\n \"waitTurn\": \"Espere la respuesta o deténgala\",\n \"waitQueue\": \"Espere las respuestas a los mensajes en la cola\"\n },\n \"event\": {\n \"details\": \"Resumen\"\n },\n \"files\": {\n \"open\": \"Abrir {name}\",\n \"download\": \"Descargar\",\n \"failed\": \"No se pudo abrir el archivo\",\n \"tooLarge\": \"El archivo es demasiado grande para la vista previa: descárguelo\",\n \"save\": \"Descargar {name}\",\n \"notUtf8\": \"El archivo no está en UTF-8: descárguelo\",\n \"rows\": \"Se muestran {shown} de {total, plural, one {# fila} other {# filas}}\",\n \"source\": \"Código\",\n \"page\": \"Página\",\n \"converted\": \"Vista previa · convertido desde {format}\",\n \"pagesShown\": \"Se muestran {shown} de {total} páginas\",\n \"firstPages\": \"Se muestran las primeras {shown} páginas\",\n \"cols\": \"y {shown} de {total} columnas\",\n \"preparing\": \"Preparando la vista previa…\",\n \"preparingHint\": \"Suele tardar unos segundos\",\n \"unavailable\": \"Vista previa no disponible\",\n \"formulaHint\": \"El valor se calcula al abrir el archivo en Excel\",\n \"sheets\": \"Hojas\",\n \"reasons\": {\n \"too_large\": \"El archivo supera {limit} MB\",\n \"timeout\": \"Tardó más de 30 segundos\",\n \"broken\": \"El archivo está dañado o el formato no es compatible\",\n \"busy\": \"El servicio está ocupado, inténtalo más tarde\"\n }\n },\n \"notice\": {\n \"more\": \"Mostrar completo\",\n \"less\": \"Contraer\"\n },\n \"queuePlaceholder\": \"El mensaje esperará en la cola\",\n \"queue\": {\n \"position\": \"En la cola · {n}\",\n \"cancel\": \"Cancelar\"\n },\n \"stopAnswer\": \"Detener la respuesta\",\n \"stopping\": \"Deteniendo…\",\n \"stopped\": \"Detenida\",\n \"subagents\": {\n \"title\": \"Subagentes · {count}\",\n \"done\": \"listo\",\n \"failed\": \"{count, plural, one {# sin terminar} other {# sin terminar}}\",\n \"tools\": \"{count, plural, one {# herramienta} other {# herramientas}}\",\n \"state\": {\n \"running\": \"en curso\",\n \"done\": \"listo\",\n \"failed\": \"error\",\n \"timeout\": \"interrumpido · sin tiempo\",\n \"aborted\": \"interrumpido\",\n \"turnStopped\": \"interrumpido · respuesta detenida\"\n }\n },\n \"retryQueued\": \"El reintento espera en la cola\"\n },\n \"agent\": {\n \"menu\": \"Agente\",\n \"options\": \"Tono\",\n \"model\": \"Modelo\",\n \"modelDefault\": \"Predeterminado\",\n \"noModels\": \"No hay modelos disponibles: consulte a un administrador\",\n \"modelCompactWarn\": \"El contexto se compactará antes de la próxima respuesta\",\n \"everywhere\": \"El cambio se aplica en todos los canales y servicios conectados.\",\n \"capImage\": \"imágenes\",\n \"capReasoning\": \"razonamiento\"\n }\n}\n","{\n \"loading\": \"加载中…\",\n \"cancel\": \"取消\",\n \"create\": \"创建\",\n \"close\": \"关闭\",\n \"delete\": \"删除\",\n \"remove\": \"移除\",\n \"agentName\": \"智能体名称\",\n \"topbar\": {\n \"sections\": \"栏目\",\n \"profile\": \"个人资料\"\n },\n \"chat\": {\n \"title\": \"聊天\",\n \"conversations\": \"对话\",\n \"conversation\": \"对话\",\n \"topics\": \"话题\",\n \"archive\": \"归档\",\n \"noTopics\": \"暂无话题\",\n \"newTopic\": \"新话题\",\n \"topicTitle\": \"话题\",\n \"topicHint\": \"话题有独立的历史记录,记忆和空间与主对话相同。\",\n \"loadOlder\": \"更早的消息\",\n \"emptyTitle\": \"你好,我是 {name}\",\n \"placeholder\": \"给 {name} 发消息…\",\n \"send\": \"发送\",\n \"attach\": \"附加文件\",\n \"typing\": \"智能体正在输入\",\n \"moreSteps\": \"{count, plural, other {另外 # 个步骤}}\",\n \"hideSteps\": \"隐藏步骤\",\n \"unread\": \"{count} 条未读回复\",\n \"retry\": \"重试\",\n \"tooLarge\": \"文件太大。\",\n \"stop\": \"停止\",\n \"voice\": {\n \"hold\": \"按住录音\",\n \"stop\": \"停止录音\",\n \"recording\": \"录音中… {seconds} 秒\",\n \"review\": \"发送前请检查转写文本\",\n \"notRecognized\": \"未能识别语音\",\n \"micDenied\": \"无法访问麦克风\",\n \"unsupported\": \"此浏览器不支持语音输入\",\n \"start\": \"录制语音\",\n \"done\": \"停止\",\n \"recognizing\": \"正在识别…\",\n \"recordingNow\": \"录音中\",\n \"failed\": \"无法识别语音消息\",\n \"retry\": \"重试\"\n },\n \"confirm\": {\n \"title\": \"确认操作\",\n \"text\": \"代理想要执行:{action}\",\n \"approve\": \"执行\",\n \"reject\": \"拒绝\"\n },\n \"wait\": {\n \"starting\": \"代理正在启动…\",\n \"queued\": \"{count, plural, =0 {排队中 · 您是下一位} other {排队中 · 前面还有 # 位}}\"\n },\n \"palette\": {\n \"title\": \"命令和技能\",\n \"commands\": \"命令\",\n \"skills\": \"技能\",\n \"noSkills\": \"您没有可用的技能\",\n \"empty\": \"未找到\"\n },\n \"unknownCommand\": \"未知命令 {name}\",\n \"sendAsText\": \"作为文本发送\",\n \"skillPlaceholder\": \"用这个技能做什么?\",\n \"context\": {\n \"meter\": \"上下文:{used} / {total} 个令牌({pct}%)\",\n \"full\": \"回答变得更贵,代理可能会混淆。\",\n \"compact\": \"压缩\",\n \"reset\": \"重新开始\",\n \"waitTurn\": \"请等待回答或停止它\",\n \"waitQueue\": \"请等待队列中消息的回答\"\n },\n \"event\": {\n \"details\": \"摘要\"\n },\n \"files\": {\n \"open\": \"打开 {name}\",\n \"download\": \"下载\",\n \"failed\": \"无法打开文件\",\n \"tooLarge\": \"文件太大,无法预览,请下载\",\n \"save\": \"下载 {name}\",\n \"notUtf8\": \"文件不是 UTF-8 编码,请下载\",\n \"rows\": \"显示 {total} 行中的 {shown} 行\",\n \"source\": \"代码\",\n \"page\": \"页面\",\n \"converted\": \"预览 · 由 {format} 转换\",\n \"pagesShown\": \"显示 {shown} / {total} 页\",\n \"firstPages\": \"显示前 {shown} 页\",\n \"cols\": \"以及 {shown} / {total} 列\",\n \"preparing\": \"正在准备预览…\",\n \"preparingHint\": \"通常只需几秒\",\n \"unavailable\": \"无法预览\",\n \"formulaHint\": \"在 Excel 中打开时计算该值\",\n \"sheets\": \"工作表\",\n \"reasons\": {\n \"too_large\": \"文件大于 {limit} MB\",\n \"timeout\": \"超过 30 秒未完成\",\n \"broken\": \"文件已损坏或格式不受支持\",\n \"busy\": \"服务繁忙,请稍后重试\"\n }\n },\n \"notice\": {\n \"more\": \"显示全部\",\n \"less\": \"收起\"\n },\n \"queuePlaceholder\": \"消息将在队列中等待\",\n \"queue\": {\n \"position\": \"排队中 · {n}\",\n \"cancel\": \"取消\"\n },\n \"stopAnswer\": \"停止回答\",\n \"stopping\": \"正在停止…\",\n \"stopped\": \"已停止\",\n \"subagents\": {\n \"title\": \"子代理 · {count}\",\n \"done\": \"完成\",\n \"failed\": \"{count} 个未完成\",\n \"tools\": \"{count} 个工具\",\n \"state\": {\n \"running\": \"运行中\",\n \"done\": \"完成\",\n \"failed\": \"错误\",\n \"timeout\": \"已中断 · 超时\",\n \"aborted\": \"已中断\",\n \"turnStopped\": \"已中断 · 回答已停止\"\n }\n },\n \"retryQueued\": \"重试正在队列中等待\"\n },\n \"agent\": {\n \"menu\": \"智能体\",\n \"options\": \"语气\",\n \"model\": \"模型\",\n \"modelDefault\": \"默认\",\n \"noModels\": \"没有可用的模型——请联系管理员\",\n \"modelCompactWarn\": \"下次回答前将压缩上下文\",\n \"everywhere\": \"更改在所有渠道和已连接的服务中生效。\",\n \"capImage\": \"图片\",\n \"capReasoning\": \"推理\"\n }\n}\n","import en from \"./en.json\";\nimport ru from \"./ru.json\";\nimport de from \"./de.json\";\nimport es from \"./es.json\";\nimport zh from \"./zh.json\";\n\n/** Strings of the components in the five languages of the products. A product adds\n * them to its i18next instance under the namespace `uikit`. */\nexport const resources = { en, ru, de, es, zh };\nexport type KitLanguage = keyof typeof resources;\nexport { UIKIT_NS } from \"../i18n\";\n"],"mappings":";;;AKQA,IAAaqC,IAAY;CAAE,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;AAAG"}
1
+ {"version":3,"file":"locales.js","names":["loading","cancel","create","close","remove","agentName","topbar","chat","agent","graph","loading","cancel","create","close","remove","agentName","topbar","chat","agent","graph","loading","cancel","create","close","remove","agentName","topbar","chat","agent","graph","loading","cancel","create","close","remove","agentName","topbar","chat","agent","graph","UIKIT_NS","resources","\"delete\"","\"sections\"","\"profile\"","\"title\"","\"conversations\"","\"conversation\"","\"topics\"","\"archive\"","\"noTopics\"","\"newTopic\"","\"topicTitle\"","\"topicHint\"","\"loadOlder\"","\"emptyTitle\"","\"placeholder\"","\"send\"","\"attach\"","\"typing\"","\"moreSteps\"","\"hideSteps\"","\"unread\"","\"retry\"","\"tooLarge\"","\"stop\"","\"voice\"","\"hold\"","\"recording\"","\"review\"","\"notRecognized\"","\"micDenied\"","\"unsupported\"","\"start\"","\"done\"","\"recognizing\"","\"recordingNow\"","\"failed\"","\"confirm\"","\"text\"","\"approve\"","\"reject\"","\"wait\"","\"starting\"","\"queued\"","\"palette\"","\"commands\"","\"skills\"","\"noSkills\"","\"empty\"","\"unknownCommand\"","\"sendAsText\"","\"skillPlaceholder\"","\"context\"","\"meter\"","\"full\"","\"compact\"","\"reset\"","\"waitTurn\"","\"waitQueue\"","\"event\"","\"details\"","\"files\"","\"open\"","\"download\"","\"save\"","\"notUtf8\"","\"rows\"","\"source\"","\"page\"","\"converted\"","\"pagesShown\"","\"firstPages\"","\"cols\"","\"preparing\"","\"preparingHint\"","\"unavailable\"","\"formulaHint\"","\"sheets\"","\"reasons\"","\"too_large\"","\"timeout\"","\"broken\"","\"busy\"","\"notice\"","\"more\"","\"less\"","\"queuePlaceholder\"","\"queue\"","\"position\"","\"cancel\"","\"stopAnswer\"","\"stopping\"","\"stopped\"","\"subagents\"","\"tools\"","\"state\"","\"running\"","\"aborted\"","\"turnStopped\"","\"retryQueued\"","\"menu\"","\"options\"","\"model\"","\"modelDefault\"","\"noModels\"","\"modelCompactWarn\"","\"everywhere\"","\"capImage\"","\"capReasoning\"","\"zoomIn\"","\"zoomOut\""],"sources":["../src/locales/en.json","../src/locales/ru.json","../src/locales/de.json","../src/locales/es.json","../src/locales/zh.json","../src/locales/index.ts"],"sourcesContent":["{\n \"loading\": \"Loading…\",\n \"cancel\": \"Cancel\",\n \"create\": \"Create\",\n \"close\": \"Close\",\n \"delete\": \"Delete\",\n \"remove\": \"Remove\",\n \"agentName\": \"Agent name\",\n \"topbar\": {\n \"sections\": \"Sections\",\n \"profile\": \"Profile\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Conversations\",\n \"conversation\": \"Conversation\",\n \"topics\": \"Topics\",\n \"archive\": \"Archive\",\n \"noTopics\": \"No topics yet\",\n \"newTopic\": \"New topic\",\n \"topicTitle\": \"Topic\",\n \"topicHint\": \"A topic has its own history and the same memory and space.\",\n \"loadOlder\": \"Earlier messages\",\n \"emptyTitle\": \"Hi, I am {name}\",\n \"placeholder\": \"Message {name}…\",\n \"send\": \"Send\",\n \"attach\": \"Attach files\",\n \"typing\": \"The agent is typing\",\n \"moreSteps\": \"{count, plural, one {# more step} other {# more steps}}\",\n \"hideSteps\": \"Hide steps\",\n \"unread\": \"{count, plural, one {# unread answer} other {# unread answers}}\",\n \"retry\": \"Retry\",\n \"tooLarge\": \"The file is too large.\",\n \"stop\": \"Stop\",\n \"voice\": {\n \"hold\": \"Hold to record\",\n \"stop\": \"Stop recording\",\n \"recording\": \"Recording… {seconds} s\",\n \"review\": \"Check the transcript before sending\",\n \"notRecognized\": \"The speech was not recognized\",\n \"micDenied\": \"No access to the microphone\",\n \"unsupported\": \"Voice input is not supported in this browser\",\n \"start\": \"Record a voice message\",\n \"done\": \"Stop\",\n \"recognizing\": \"Recognizing…\",\n \"recordingNow\": \"Recording\",\n \"failed\": \"The voice message could not be recognized\",\n \"retry\": \"Retry\"\n },\n \"confirm\": {\n \"title\": \"Confirm the action\",\n \"text\": \"The agent wants to perform: {action}\",\n \"approve\": \"Execute\",\n \"reject\": \"Reject\"\n },\n \"wait\": {\n \"starting\": \"The agent is starting…\",\n \"queued\": \"{count, plural, =0 {In the queue · you are next} one {In the queue · # ahead of you} other {In the queue · # ahead of you}}\"\n },\n \"palette\": {\n \"title\": \"Commands and skills\",\n \"commands\": \"Commands\",\n \"skills\": \"Skills\",\n \"noSkills\": \"No skills are granted to you\",\n \"empty\": \"Nothing found\"\n },\n \"unknownCommand\": \"Unknown command {name}\",\n \"sendAsText\": \"Send as text\",\n \"skillPlaceholder\": \"What to do with the skill?\",\n \"context\": {\n \"meter\": \"Context: {used} of {total} tokens ({pct}%)\",\n \"full\": \"Answers get more expensive and the agent may get confused.\",\n \"compact\": \"Compact\",\n \"reset\": \"Start over\",\n \"waitTurn\": \"Wait for the answer or stop it\",\n \"waitQueue\": \"Wait for the answers to the queued messages\"\n },\n \"event\": {\n \"details\": \"Summary\"\n },\n \"files\": {\n \"open\": \"Open {name}\",\n \"download\": \"Download\",\n \"failed\": \"Could not open the file\",\n \"tooLarge\": \"The file is too large to preview — download it\",\n \"save\": \"Download {name}\",\n \"notUtf8\": \"The file is not in UTF-8 — download it\",\n \"rows\": \"Showing {shown} of {total, plural, one {# row} other {# rows}}\",\n \"source\": \"Code\",\n \"page\": \"Page\",\n \"converted\": \"Preview · converted from {format}\",\n \"pagesShown\": \"Showing {shown} of {total} pages\",\n \"firstPages\": \"Showing the first {shown} pages\",\n \"cols\": \"and {shown} of {total} columns\",\n \"preparing\": \"Preparing the preview…\",\n \"preparingHint\": \"Usually a few seconds\",\n \"unavailable\": \"Preview unavailable\",\n \"formulaHint\": \"The value is calculated when opened in Excel\",\n \"sheets\": \"Sheets\",\n \"reasons\": {\n \"too_large\": \"The file is over {limit} MB\",\n \"timeout\": \"Took longer than 30 seconds\",\n \"broken\": \"The file is damaged or the format is not supported\",\n \"busy\": \"The service is busy, try again later\"\n }\n },\n \"notice\": {\n \"more\": \"Show in full\",\n \"less\": \"Collapse\"\n },\n \"queuePlaceholder\": \"The message will wait in the queue\",\n \"queue\": {\n \"position\": \"In the queue · {n}\",\n \"cancel\": \"Cancel\"\n },\n \"stopAnswer\": \"Stop the answer\",\n \"stopping\": \"Stopping…\",\n \"stopped\": \"Stopped\",\n \"subagents\": {\n \"title\": \"{count, plural, one {Subagents · #} other {Subagents · #}}\",\n \"done\": \"done\",\n \"failed\": \"{count, plural, one {# not done} other {# not done}}\",\n \"tools\": \"{count, plural, one {# tool} other {# tools}}\",\n \"state\": {\n \"running\": \"running\",\n \"done\": \"done\",\n \"failed\": \"error\",\n \"timeout\": \"stopped · out of time\",\n \"aborted\": \"stopped\",\n \"turnStopped\": \"stopped · the turn was stopped\"\n }\n },\n \"retryQueued\": \"The retry waits in the queue\"\n },\n \"agent\": {\n \"menu\": \"Agent\",\n \"options\": \"Tone\",\n \"model\": \"Model\",\n \"modelDefault\": \"Default\",\n \"noModels\": \"No models granted — ask an administrator\",\n \"modelCompactWarn\": \"The context will be compacted before the next answer\",\n \"everywhere\": \"The change applies in every channel and connected service.\",\n \"capImage\": \"images\",\n \"capReasoning\": \"reasoning\"\n },\n \"graph\": {\n \"zoomIn\": \"Zoom in\",\n \"zoomOut\": \"Zoom out\"\n }\n}\n","{\n \"loading\": \"Загрузка…\",\n \"cancel\": \"Отмена\",\n \"create\": \"Создать\",\n \"close\": \"Закрыть\",\n \"delete\": \"Удалить\",\n \"remove\": \"Убрать\",\n \"agentName\": \"Имя агента\",\n \"topbar\": {\n \"sections\": \"Разделы\",\n \"profile\": \"Профиль\"\n },\n \"chat\": {\n \"title\": \"Чат\",\n \"conversations\": \"Разговоры\",\n \"conversation\": \"Разговор\",\n \"topics\": \"Темы\",\n \"archive\": \"Архив\",\n \"noTopics\": \"Тем пока нет\",\n \"newTopic\": \"Новая тема\",\n \"topicTitle\": \"Тема\",\n \"topicHint\": \"У темы своя история, а память и пространство — те же.\",\n \"loadOlder\": \"Более ранние сообщения\",\n \"emptyTitle\": \"Привет, я {name}\",\n \"placeholder\": \"Сообщение для {name}…\",\n \"send\": \"Отправить\",\n \"attach\": \"Прикрепить файлы\",\n \"typing\": \"Агент печатает\",\n \"moreSteps\": \"{count, plural, one {ещё # шаг} few {ещё # шага} many {ещё # шагов} other {ещё # шага}}\",\n \"hideSteps\": \"Скрыть шаги\",\n \"unread\": \"{count, plural, one {# непрочитанный ответ} few {# непрочитанных ответа} many {# непрочитанных ответов} other {# непрочитанных ответа}}\",\n \"retry\": \"Повторить\",\n \"tooLarge\": \"Файл слишком большой.\",\n \"stop\": \"Остановить\",\n \"voice\": {\n \"hold\": \"Удерживайте для записи\",\n \"stop\": \"Остановить запись\",\n \"recording\": \"Запись… {seconds} с\",\n \"review\": \"Проверьте расшифровку перед отправкой\",\n \"notRecognized\": \"Речь не распознана\",\n \"micDenied\": \"Нет доступа к микрофону\",\n \"unsupported\": \"Голосовой ввод не поддерживается этим браузером\",\n \"start\": \"Записать голосом\",\n \"done\": \"Стоп\",\n \"recognizing\": \"Распознаём…\",\n \"recordingNow\": \"Запись\",\n \"failed\": \"Не удалось распознать голосовое сообщение\",\n \"retry\": \"Повторить\"\n },\n \"confirm\": {\n \"title\": \"Подтвердите действие\",\n \"text\": \"Агент хочет выполнить: {action}\",\n \"approve\": \"Выполнить\",\n \"reject\": \"Отклонить\"\n },\n \"wait\": {\n \"starting\": \"Агент запускается…\",\n \"queued\": \"{count, plural, =0 {В очереди · вы следующий} other {В очереди · перед вами #}}\"\n },\n \"palette\": {\n \"title\": \"Команды и скиллы\",\n \"commands\": \"Команды\",\n \"skills\": \"Скиллы\",\n \"noSkills\": \"Вам не выдан ни один скилл\",\n \"empty\": \"Ничего не найдено\"\n },\n \"unknownCommand\": \"Неизвестная команда {name}\",\n \"sendAsText\": \"Отправить как текст\",\n \"skillPlaceholder\": \"Что сделать по скиллу?\",\n \"context\": {\n \"meter\": \"Контекст: {used} из {total} токенов ({pct} %)\",\n \"full\": \"Ответы дорожают, агент может путаться.\",\n \"compact\": \"Сжать\",\n \"reset\": \"Начать заново\",\n \"waitTurn\": \"Дождитесь ответа или остановите его\",\n \"waitQueue\": \"Дождитесь ответов на сообщения в очереди\"\n },\n \"event\": {\n \"details\": \"Изложение\"\n },\n \"files\": {\n \"open\": \"Открыть {name}\",\n \"download\": \"Скачать\",\n \"failed\": \"Не удалось открыть файл\",\n \"tooLarge\": \"Файл слишком большой для просмотра — скачайте его\",\n \"save\": \"Скачать {name}\",\n \"notUtf8\": \"Файл не в кодировке UTF-8 — скачайте его\",\n \"rows\": \"Показаны {shown} из {total, plural, one {# строки} other {# строк}}\",\n \"source\": \"Код\",\n \"page\": \"Страница\",\n \"converted\": \"Предпросмотр · сконвертировано из {format}\",\n \"pagesShown\": \"Показаны {shown} из {total} страниц\",\n \"firstPages\": \"Показаны первые {shown} страниц\",\n \"cols\": \"и {shown} из {total} столбцов\",\n \"preparing\": \"Готовим предпросмотр…\",\n \"preparingHint\": \"Обычно несколько секунд\",\n \"unavailable\": \"Предпросмотр недоступен\",\n \"formulaHint\": \"Значение посчитается при открытии в Excel\",\n \"sheets\": \"Листы\",\n \"reasons\": {\n \"too_large\": \"Файл больше {limit} МБ\",\n \"timeout\": \"Не успели за 30 секунд\",\n \"broken\": \"Файл повреждён или формат не поддерживается\",\n \"busy\": \"Сервис занят, попробуйте позже\"\n }\n },\n \"notice\": {\n \"more\": \"Показать полностью\",\n \"less\": \"Свернуть\"\n },\n \"queuePlaceholder\": \"Сообщение встанет в очередь\",\n \"queue\": {\n \"position\": \"В очереди · {n}\",\n \"cancel\": \"Отменить\"\n },\n \"stopAnswer\": \"Остановить ответ\",\n \"stopping\": \"Останавливаю…\",\n \"stopped\": \"Остановлено\",\n \"subagents\": {\n \"title\": \"Субагенты · {count}\",\n \"done\": \"готово\",\n \"failed\": \"{count, plural, one {# с ошибкой} few {# с ошибкой} other {# с ошибкой}}\",\n \"tools\": \"{count} инстр.\",\n \"state\": {\n \"running\": \"работает\",\n \"done\": \"готово\",\n \"failed\": \"ошибка\",\n \"timeout\": \"прервано · по времени\",\n \"aborted\": \"прервано\",\n \"turnStopped\": \"прервано · ход остановлен\"\n }\n },\n \"retryQueued\": \"Повтор в очереди\"\n },\n \"agent\": {\n \"menu\": \"Агент\",\n \"options\": \"Тон\",\n \"model\": \"Модель\",\n \"modelDefault\": \"По умолчанию\",\n \"noModels\": \"Модели не выданы — обратитесь к администратору\",\n \"modelCompactWarn\": \"Контекст будет сжат перед следующим ответом\",\n \"everywhere\": \"Изменение действует во всех каналах и подключённых сервисах.\",\n \"capImage\": \"изображения\",\n \"capReasoning\": \"рассуждение\"\n },\n \"graph\": {\n \"zoomIn\": \"Приблизить\",\n \"zoomOut\": \"Отдалить\"\n }\n}\n","{\n \"loading\": \"Wird geladen…\",\n \"cancel\": \"Abbrechen\",\n \"create\": \"Erstellen\",\n \"close\": \"Schließen\",\n \"delete\": \"Löschen\",\n \"remove\": \"Entfernen\",\n \"agentName\": \"Name des Agenten\",\n \"topbar\": {\n \"sections\": \"Bereiche\",\n \"profile\": \"Profil\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Gespräche\",\n \"conversation\": \"Gespräch\",\n \"topics\": \"Themen\",\n \"archive\": \"Archiv\",\n \"noTopics\": \"Noch keine Themen\",\n \"newTopic\": \"Neues Thema\",\n \"topicTitle\": \"Thema\",\n \"topicHint\": \"Ein Thema hat einen eigenen Verlauf, aber dasselbe Gedächtnis und denselben Arbeitsbereich.\",\n \"loadOlder\": \"Frühere Nachrichten\",\n \"emptyTitle\": \"Hallo, ich bin {name}\",\n \"placeholder\": \"Nachricht an {name}…\",\n \"send\": \"Senden\",\n \"attach\": \"Dateien anhängen\",\n \"typing\": \"Der Agent schreibt\",\n \"moreSteps\": \"{count, plural, one {# weiterer Schritt} other {# weitere Schritte}}\",\n \"hideSteps\": \"Schritte ausblenden\",\n \"unread\": \"{count, plural, one {# ungelesene Antwort} other {# ungelesene Antworten}}\",\n \"retry\": \"Wiederholen\",\n \"tooLarge\": \"Die Datei ist zu groß.\",\n \"stop\": \"Stoppen\",\n \"voice\": {\n \"hold\": \"Zum Aufnehmen gedrückt halten\",\n \"stop\": \"Aufnahme beenden\",\n \"recording\": \"Aufnahme… {seconds} s\",\n \"review\": \"Prüfen Sie die Transkription vor dem Senden\",\n \"notRecognized\": \"Die Sprache wurde nicht erkannt\",\n \"micDenied\": \"Kein Zugriff auf das Mikrofon\",\n \"unsupported\": \"Spracheingabe wird von diesem Browser nicht unterstützt\",\n \"start\": \"Sprachnachricht aufnehmen\",\n \"done\": \"Stopp\",\n \"recognizing\": \"Wird erkannt…\",\n \"recordingNow\": \"Aufnahme\",\n \"failed\": \"Die Sprachnachricht konnte nicht erkannt werden\",\n \"retry\": \"Wiederholen\"\n },\n \"confirm\": {\n \"title\": \"Aktion bestätigen\",\n \"text\": \"Der Agent möchte ausführen: {action}\",\n \"approve\": \"Ausführen\",\n \"reject\": \"Ablehnen\"\n },\n \"wait\": {\n \"starting\": \"Der Agent startet…\",\n \"queued\": \"{count, plural, =0 {In der Warteschlange · Sie sind als Nächstes dran} other {In der Warteschlange · # vor Ihnen}}\"\n },\n \"palette\": {\n \"title\": \"Befehle und Skills\",\n \"commands\": \"Befehle\",\n \"skills\": \"Skills\",\n \"noSkills\": \"Ihnen ist kein Skill freigegeben\",\n \"empty\": \"Nichts gefunden\"\n },\n \"unknownCommand\": \"Unbekannter Befehl {name}\",\n \"sendAsText\": \"Als Text senden\",\n \"skillPlaceholder\": \"Was soll mit dem Skill getan werden?\",\n \"context\": {\n \"meter\": \"Kontext: {used} von {total} Tokens ({pct} %)\",\n \"full\": \"Antworten werden teurer, der Agent kann durcheinanderkommen.\",\n \"compact\": \"Komprimieren\",\n \"reset\": \"Neu beginnen\",\n \"waitTurn\": \"Warten Sie auf die Antwort oder stoppen Sie sie\",\n \"waitQueue\": \"Warten Sie auf die Antworten auf die Nachrichten in der Warteschlange\"\n },\n \"event\": {\n \"details\": \"Zusammenfassung\"\n },\n \"files\": {\n \"open\": \"{name} öffnen\",\n \"download\": \"Herunterladen\",\n \"failed\": \"Die Datei konnte nicht geöffnet werden\",\n \"tooLarge\": \"Die Datei ist zu groß für die Vorschau — bitte herunterladen\",\n \"save\": \"{name} herunterladen\",\n \"notUtf8\": \"Die Datei ist nicht in UTF-8 — bitte herunterladen\",\n \"rows\": \"{shown} von {total, plural, one {# Zeile} other {# Zeilen}} angezeigt\",\n \"source\": \"Code\",\n \"page\": \"Seite\",\n \"converted\": \"Vorschau · konvertiert aus {format}\",\n \"pagesShown\": \"{shown} von {total} Seiten werden angezeigt\",\n \"firstPages\": \"Die ersten {shown} Seiten werden angezeigt\",\n \"cols\": \"und {shown} von {total} Spalten\",\n \"preparing\": \"Vorschau wird vorbereitet…\",\n \"preparingHint\": \"Meist nur wenige Sekunden\",\n \"unavailable\": \"Vorschau nicht verfügbar\",\n \"formulaHint\": \"Der Wert wird beim Öffnen in Excel berechnet\",\n \"sheets\": \"Blätter\",\n \"reasons\": {\n \"too_large\": \"Die Datei ist größer als {limit} MB\",\n \"timeout\": \"Hat länger als 30 Sekunden gedauert\",\n \"broken\": \"Die Datei ist beschädigt oder das Format wird nicht unterstützt\",\n \"busy\": \"Der Dienst ist ausgelastet, versuchen Sie es später erneut\"\n }\n },\n \"notice\": {\n \"more\": \"Vollständig anzeigen\",\n \"less\": \"Einklappen\"\n },\n \"queuePlaceholder\": \"Die Nachricht wartet in der Warteschlange\",\n \"queue\": {\n \"position\": \"In der Warteschlange · {n}\",\n \"cancel\": \"Abbrechen\"\n },\n \"stopAnswer\": \"Antwort stoppen\",\n \"stopping\": \"Wird gestoppt…\",\n \"stopped\": \"Gestoppt\",\n \"subagents\": {\n \"title\": \"Subagenten · {count}\",\n \"done\": \"fertig\",\n \"failed\": \"{count} nicht fertig\",\n \"tools\": \"{count, plural, one {# Werkzeug} other {# Werkzeuge}}\",\n \"state\": {\n \"running\": \"läuft\",\n \"done\": \"fertig\",\n \"failed\": \"Fehler\",\n \"timeout\": \"abgebrochen · Zeit abgelaufen\",\n \"aborted\": \"abgebrochen\",\n \"turnStopped\": \"abgebrochen · Antwort gestoppt\"\n }\n },\n \"retryQueued\": \"Die Wiederholung wartet in der Warteschlange\"\n },\n \"agent\": {\n \"menu\": \"Agent\",\n \"options\": \"Ton\",\n \"model\": \"Modell\",\n \"modelDefault\": \"Standard\",\n \"noModels\": \"Keine Modelle freigegeben — wenden Sie sich an einen Administrator\",\n \"modelCompactWarn\": \"Der Kontext wird vor der nächsten Antwort komprimiert\",\n \"everywhere\": \"Die Änderung gilt in allen Kanälen und verbundenen Diensten.\",\n \"capImage\": \"Bilder\",\n \"capReasoning\": \"Reasoning\"\n },\n \"graph\": {\n \"zoomIn\": \"Vergrößern\",\n \"zoomOut\": \"Verkleinern\"\n }\n}\n","{\n \"loading\": \"Cargando…\",\n \"cancel\": \"Cancelar\",\n \"create\": \"Crear\",\n \"close\": \"Cerrar\",\n \"delete\": \"Eliminar\",\n \"remove\": \"Quitar\",\n \"agentName\": \"Nombre del agente\",\n \"topbar\": {\n \"sections\": \"Secciones\",\n \"profile\": \"Perfil\"\n },\n \"chat\": {\n \"title\": \"Chat\",\n \"conversations\": \"Conversaciones\",\n \"conversation\": \"Conversación\",\n \"topics\": \"Temas\",\n \"archive\": \"Archivo\",\n \"noTopics\": \"Aún no hay temas\",\n \"newTopic\": \"Nuevo tema\",\n \"topicTitle\": \"Tema\",\n \"topicHint\": \"Un tema tiene su propio historial y la misma memoria y espacio.\",\n \"loadOlder\": \"Mensajes anteriores\",\n \"emptyTitle\": \"Hola, soy {name}\",\n \"placeholder\": \"Mensaje para {name}…\",\n \"send\": \"Enviar\",\n \"attach\": \"Adjuntar archivos\",\n \"typing\": \"El agente está escribiendo\",\n \"moreSteps\": \"{count, plural, one {# paso más} other {# pasos más}}\",\n \"hideSteps\": \"Ocultar pasos\",\n \"unread\": \"{count, plural, one {# respuesta sin leer} other {# respuestas sin leer}}\",\n \"retry\": \"Reintentar\",\n \"tooLarge\": \"El archivo es demasiado grande.\",\n \"stop\": \"Detener\",\n \"voice\": {\n \"hold\": \"Mantenga pulsado para grabar\",\n \"stop\": \"Detener la grabación\",\n \"recording\": \"Grabando… {seconds} s\",\n \"review\": \"Revise la transcripción antes de enviar\",\n \"notRecognized\": \"No se reconoció la voz\",\n \"micDenied\": \"Sin acceso al micrófono\",\n \"unsupported\": \"Este navegador no admite la entrada de voz\",\n \"start\": \"Grabar un mensaje de voz\",\n \"done\": \"Detener\",\n \"recognizing\": \"Reconociendo…\",\n \"recordingNow\": \"Grabando\",\n \"failed\": \"No se pudo reconocer el mensaje de voz\",\n \"retry\": \"Reintentar\"\n },\n \"confirm\": {\n \"title\": \"Confirme la acción\",\n \"text\": \"El agente quiere ejecutar: {action}\",\n \"approve\": \"Ejecutar\",\n \"reject\": \"Rechazar\"\n },\n \"wait\": {\n \"starting\": \"El agente se está iniciando…\",\n \"queued\": \"{count, plural, =0 {En cola · usted es el siguiente} other {En cola · # por delante}}\"\n },\n \"palette\": {\n \"title\": \"Comandos y skills\",\n \"commands\": \"Comandos\",\n \"skills\": \"Skills\",\n \"noSkills\": \"No tiene skills disponibles\",\n \"empty\": \"No se encontró nada\"\n },\n \"unknownCommand\": \"Comando desconocido {name}\",\n \"sendAsText\": \"Enviar como texto\",\n \"skillPlaceholder\": \"¿Qué hacer con el skill?\",\n \"context\": {\n \"meter\": \"Contexto: {used} de {total} tokens ({pct} %)\",\n \"full\": \"Las respuestas se encarecen y el agente puede confundirse.\",\n \"compact\": \"Compactar\",\n \"reset\": \"Empezar de nuevo\",\n \"waitTurn\": \"Espere la respuesta o deténgala\",\n \"waitQueue\": \"Espere las respuestas a los mensajes en la cola\"\n },\n \"event\": {\n \"details\": \"Resumen\"\n },\n \"files\": {\n \"open\": \"Abrir {name}\",\n \"download\": \"Descargar\",\n \"failed\": \"No se pudo abrir el archivo\",\n \"tooLarge\": \"El archivo es demasiado grande para la vista previa: descárguelo\",\n \"save\": \"Descargar {name}\",\n \"notUtf8\": \"El archivo no está en UTF-8: descárguelo\",\n \"rows\": \"Se muestran {shown} de {total, plural, one {# fila} other {# filas}}\",\n \"source\": \"Código\",\n \"page\": \"Página\",\n \"converted\": \"Vista previa · convertido desde {format}\",\n \"pagesShown\": \"Se muestran {shown} de {total} páginas\",\n \"firstPages\": \"Se muestran las primeras {shown} páginas\",\n \"cols\": \"y {shown} de {total} columnas\",\n \"preparing\": \"Preparando la vista previa…\",\n \"preparingHint\": \"Suele tardar unos segundos\",\n \"unavailable\": \"Vista previa no disponible\",\n \"formulaHint\": \"El valor se calcula al abrir el archivo en Excel\",\n \"sheets\": \"Hojas\",\n \"reasons\": {\n \"too_large\": \"El archivo supera {limit} MB\",\n \"timeout\": \"Tardó más de 30 segundos\",\n \"broken\": \"El archivo está dañado o el formato no es compatible\",\n \"busy\": \"El servicio está ocupado, inténtalo más tarde\"\n }\n },\n \"notice\": {\n \"more\": \"Mostrar completo\",\n \"less\": \"Contraer\"\n },\n \"queuePlaceholder\": \"El mensaje esperará en la cola\",\n \"queue\": {\n \"position\": \"En la cola · {n}\",\n \"cancel\": \"Cancelar\"\n },\n \"stopAnswer\": \"Detener la respuesta\",\n \"stopping\": \"Deteniendo…\",\n \"stopped\": \"Detenida\",\n \"subagents\": {\n \"title\": \"Subagentes · {count}\",\n \"done\": \"listo\",\n \"failed\": \"{count, plural, one {# sin terminar} other {# sin terminar}}\",\n \"tools\": \"{count, plural, one {# herramienta} other {# herramientas}}\",\n \"state\": {\n \"running\": \"en curso\",\n \"done\": \"listo\",\n \"failed\": \"error\",\n \"timeout\": \"interrumpido · sin tiempo\",\n \"aborted\": \"interrumpido\",\n \"turnStopped\": \"interrumpido · respuesta detenida\"\n }\n },\n \"retryQueued\": \"El reintento espera en la cola\"\n },\n \"agent\": {\n \"menu\": \"Agente\",\n \"options\": \"Tono\",\n \"model\": \"Modelo\",\n \"modelDefault\": \"Predeterminado\",\n \"noModels\": \"No hay modelos disponibles: consulte a un administrador\",\n \"modelCompactWarn\": \"El contexto se compactará antes de la próxima respuesta\",\n \"everywhere\": \"El cambio se aplica en todos los canales y servicios conectados.\",\n \"capImage\": \"imágenes\",\n \"capReasoning\": \"razonamiento\"\n },\n \"graph\": {\n \"zoomIn\": \"Acercar\",\n \"zoomOut\": \"Alejar\"\n }\n}\n","{\n \"loading\": \"加载中…\",\n \"cancel\": \"取消\",\n \"create\": \"创建\",\n \"close\": \"关闭\",\n \"delete\": \"删除\",\n \"remove\": \"移除\",\n \"agentName\": \"智能体名称\",\n \"topbar\": {\n \"sections\": \"栏目\",\n \"profile\": \"个人资料\"\n },\n \"chat\": {\n \"title\": \"聊天\",\n \"conversations\": \"对话\",\n \"conversation\": \"对话\",\n \"topics\": \"话题\",\n \"archive\": \"归档\",\n \"noTopics\": \"暂无话题\",\n \"newTopic\": \"新话题\",\n \"topicTitle\": \"话题\",\n \"topicHint\": \"话题有独立的历史记录,记忆和空间与主对话相同。\",\n \"loadOlder\": \"更早的消息\",\n \"emptyTitle\": \"你好,我是 {name}\",\n \"placeholder\": \"给 {name} 发消息…\",\n \"send\": \"发送\",\n \"attach\": \"附加文件\",\n \"typing\": \"智能体正在输入\",\n \"moreSteps\": \"{count, plural, other {另外 # 个步骤}}\",\n \"hideSteps\": \"隐藏步骤\",\n \"unread\": \"{count} 条未读回复\",\n \"retry\": \"重试\",\n \"tooLarge\": \"文件太大。\",\n \"stop\": \"停止\",\n \"voice\": {\n \"hold\": \"按住录音\",\n \"stop\": \"停止录音\",\n \"recording\": \"录音中… {seconds} 秒\",\n \"review\": \"发送前请检查转写文本\",\n \"notRecognized\": \"未能识别语音\",\n \"micDenied\": \"无法访问麦克风\",\n \"unsupported\": \"此浏览器不支持语音输入\",\n \"start\": \"录制语音\",\n \"done\": \"停止\",\n \"recognizing\": \"正在识别…\",\n \"recordingNow\": \"录音中\",\n \"failed\": \"无法识别语音消息\",\n \"retry\": \"重试\"\n },\n \"confirm\": {\n \"title\": \"确认操作\",\n \"text\": \"代理想要执行:{action}\",\n \"approve\": \"执行\",\n \"reject\": \"拒绝\"\n },\n \"wait\": {\n \"starting\": \"代理正在启动…\",\n \"queued\": \"{count, plural, =0 {排队中 · 您是下一位} other {排队中 · 前面还有 # 位}}\"\n },\n \"palette\": {\n \"title\": \"命令和技能\",\n \"commands\": \"命令\",\n \"skills\": \"技能\",\n \"noSkills\": \"您没有可用的技能\",\n \"empty\": \"未找到\"\n },\n \"unknownCommand\": \"未知命令 {name}\",\n \"sendAsText\": \"作为文本发送\",\n \"skillPlaceholder\": \"用这个技能做什么?\",\n \"context\": {\n \"meter\": \"上下文:{used} / {total} 个令牌({pct}%)\",\n \"full\": \"回答变得更贵,代理可能会混淆。\",\n \"compact\": \"压缩\",\n \"reset\": \"重新开始\",\n \"waitTurn\": \"请等待回答或停止它\",\n \"waitQueue\": \"请等待队列中消息的回答\"\n },\n \"event\": {\n \"details\": \"摘要\"\n },\n \"files\": {\n \"open\": \"打开 {name}\",\n \"download\": \"下载\",\n \"failed\": \"无法打开文件\",\n \"tooLarge\": \"文件太大,无法预览,请下载\",\n \"save\": \"下载 {name}\",\n \"notUtf8\": \"文件不是 UTF-8 编码,请下载\",\n \"rows\": \"显示 {total} 行中的 {shown} 行\",\n \"source\": \"代码\",\n \"page\": \"页面\",\n \"converted\": \"预览 · 由 {format} 转换\",\n \"pagesShown\": \"显示 {shown} / {total} 页\",\n \"firstPages\": \"显示前 {shown} 页\",\n \"cols\": \"以及 {shown} / {total} 列\",\n \"preparing\": \"正在准备预览…\",\n \"preparingHint\": \"通常只需几秒\",\n \"unavailable\": \"无法预览\",\n \"formulaHint\": \"在 Excel 中打开时计算该值\",\n \"sheets\": \"工作表\",\n \"reasons\": {\n \"too_large\": \"文件大于 {limit} MB\",\n \"timeout\": \"超过 30 秒未完成\",\n \"broken\": \"文件已损坏或格式不受支持\",\n \"busy\": \"服务繁忙,请稍后重试\"\n }\n },\n \"notice\": {\n \"more\": \"显示全部\",\n \"less\": \"收起\"\n },\n \"queuePlaceholder\": \"消息将在队列中等待\",\n \"queue\": {\n \"position\": \"排队中 · {n}\",\n \"cancel\": \"取消\"\n },\n \"stopAnswer\": \"停止回答\",\n \"stopping\": \"正在停止…\",\n \"stopped\": \"已停止\",\n \"subagents\": {\n \"title\": \"子代理 · {count}\",\n \"done\": \"完成\",\n \"failed\": \"{count} 个未完成\",\n \"tools\": \"{count} 个工具\",\n \"state\": {\n \"running\": \"运行中\",\n \"done\": \"完成\",\n \"failed\": \"错误\",\n \"timeout\": \"已中断 · 超时\",\n \"aborted\": \"已中断\",\n \"turnStopped\": \"已中断 · 回答已停止\"\n }\n },\n \"retryQueued\": \"重试正在队列中等待\"\n },\n \"agent\": {\n \"menu\": \"智能体\",\n \"options\": \"语气\",\n \"model\": \"模型\",\n \"modelDefault\": \"默认\",\n \"noModels\": \"没有可用的模型——请联系管理员\",\n \"modelCompactWarn\": \"下次回答前将压缩上下文\",\n \"everywhere\": \"更改在所有渠道和已连接的服务中生效。\",\n \"capImage\": \"图片\",\n \"capReasoning\": \"推理\"\n },\n \"graph\": {\n \"zoomIn\": \"放大\",\n \"zoomOut\": \"缩小\"\n }\n}\n","import en from \"./en.json\";\nimport ru from \"./ru.json\";\nimport de from \"./de.json\";\nimport es from \"./es.json\";\nimport zh from \"./zh.json\";\n\n/** Strings of the components in the five languages of the products. A product adds\n * them to its i18next instance under the namespace `uikit`. */\nexport const resources = { en, ru, de, es, zh };\nexport type KitLanguage = keyof typeof resources;\nexport { UIKIT_NS } from \"../i18n\";\n"],"mappings":";;;AKQA,IAAayC,IAAY;CAAE,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CAAI,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;AAAG"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.0",
2
+ "version": "1.13.0",
3
3
  "classes": [
4
4
  "a",
5
5
  "action",
@@ -70,6 +70,7 @@
70
70
  "danger",
71
71
  "danger-fill",
72
72
  "dashed",
73
+ "dimmed",
73
74
  "dl",
74
75
  "dot",
75
76
  "draft",
@@ -90,18 +91,32 @@
90
91
  "fg",
91
92
  "field",
92
93
  "fill",
94
+ "focus",
93
95
  "folded",
94
96
  "form-grid",
95
97
  "friendly",
96
98
  "full",
99
+ "g-c1",
100
+ "g-c2",
101
+ "g-c3",
102
+ "g-c4",
103
+ "g-c5",
104
+ "g-c6",
105
+ "g-e",
106
+ "g-n",
97
107
  "gap",
98
108
  "ghost",
109
+ "gleg",
99
110
  "grow",
111
+ "gwrap",
112
+ "gzoom",
100
113
  "h",
101
114
  "hd",
102
115
  "hide-m",
103
116
  "hint",
104
117
  "hintbox",
118
+ "hit",
119
+ "hl",
105
120
  "html",
106
121
  "i",
107
122
  "ic",
@@ -162,6 +177,7 @@
162
177
  "panel-h",
163
178
  "pdf",
164
179
  "pending-files",
180
+ "pin",
165
181
  "primary",
166
182
  "prose",
167
183
  "q",
@@ -284,6 +300,7 @@
284
300
  "ctxmeter",
285
301
  "ctxring",
286
302
  "ctxtip",
303
+ "dimmed",
287
304
  "ellipsis",
288
305
  "empty",
289
306
  "err",
@@ -295,7 +312,18 @@
295
312
  "evline",
296
313
  "field",
297
314
  "form-grid",
315
+ "g-c1",
316
+ "g-c2",
317
+ "g-c3",
318
+ "g-c4",
319
+ "g-c5",
320
+ "g-c6",
321
+ "g-e",
322
+ "g-n",
323
+ "gleg",
298
324
  "grow",
325
+ "gwrap",
326
+ "gzoom",
299
327
  "hint",
300
328
  "hintbox",
301
329
  "i",
package/dist/styles.css CHANGED
@@ -489,6 +489,175 @@ h3.sec {
489
489
  margin-top: 12px;
490
490
  }
491
491
 
492
+ /* Graph (FTR.NAB.CMN-0003 R19, FTR.HMR.DEV-0002 R15): moved from Nabu with its look; g-c1 and g-c2 are its people and topics. */
493
+ .gwrap {
494
+ border: 1px solid var(--border);
495
+ border-radius: var(--r-m);
496
+ background: var(--surface-2);
497
+ position: relative;
498
+ overflow: hidden;
499
+ }
500
+ .gwrap.loading {
501
+ min-height: 320px;
502
+ display: grid;
503
+ place-items: center;
504
+ color: var(--muted);
505
+ }
506
+ .gwrap svg {
507
+ display: block;
508
+ width: 100%;
509
+ height: min(64vh,620px);
510
+ touch-action: none;
511
+ cursor: grab;
512
+ }
513
+ .g-e line {
514
+ stroke: var(--border-strong);
515
+ transition: opacity 0.15s;
516
+ }
517
+ .g-e .hit {
518
+ stroke: transparent;
519
+ stroke-width: 12;
520
+ cursor: pointer;
521
+ }
522
+ .g-e.dashed line:first-child {
523
+ stroke: var(--violet);
524
+ stroke-dasharray: 6 4;
525
+ }
526
+ .gwrap marker path {
527
+ fill: var(--border-strong);
528
+ }
529
+ .g-n {
530
+ cursor: pointer;
531
+ transition: opacity 0.15s;
532
+ outline: none;
533
+ }
534
+ .g-n circle {
535
+ stroke: var(--surface);
536
+ stroke-width: 2;
537
+ }
538
+ .g-c1 circle,
539
+ .gleg i.g-c1 {
540
+ fill: var(--green);
541
+ background: var(--green);
542
+ }
543
+ .g-c2 circle,
544
+ .gleg i.g-c2 {
545
+ fill: var(--violet);
546
+ background: var(--violet);
547
+ }
548
+ .g-c3 circle,
549
+ .gleg i.g-c3 {
550
+ fill: var(--amber);
551
+ background: var(--amber);
552
+ }
553
+ .g-c4 circle,
554
+ .gleg i.g-c4 {
555
+ fill: var(--red);
556
+ background: var(--red);
557
+ }
558
+ .g-c5 circle,
559
+ .gleg i.g-c5 {
560
+ fill: var(--text-2);
561
+ background: var(--text-2);
562
+ }
563
+ .g-c6 circle,
564
+ .gleg i.g-c6 {
565
+ fill: var(--muted);
566
+ background: var(--muted);
567
+ }
568
+ .g-n.dashed circle {
569
+ fill: var(--surface);
570
+ stroke: var(--muted);
571
+ stroke-dasharray: 3 3;
572
+ }
573
+ .g-n.muted {
574
+ opacity: 0.45;
575
+ }
576
+ .g-n text {
577
+ font: 500 12px var(--font);
578
+ fill: var(--text);
579
+ text-anchor: middle;
580
+ pointer-events: none;
581
+ }
582
+ .g-n.small text {
583
+ opacity: 0;
584
+ }
585
+ .g-n.small:hover text,
586
+ .g-n.small.hl text,
587
+ .g-n.small:focus-visible text {
588
+ opacity: 1;
589
+ }
590
+ .g-n.pin circle,
591
+ .g-n:focus-visible circle {
592
+ stroke: var(--text);
593
+ stroke-width: 2.5;
594
+ }
595
+ .g-n.focus circle {
596
+ stroke: var(--violet);
597
+ stroke-width: 2.5;
598
+ }
599
+ svg.dimmed .g-n:not(.hl) {
600
+ opacity: 0.22;
601
+ }
602
+ svg.dimmed .g-e:not(.hl) line {
603
+ opacity: 0.12;
604
+ }
605
+ svg.dimmed .g-e.hl line:first-child {
606
+ stroke: var(--text-2);
607
+ }
608
+ svg.dimmed .g-e.dashed.hl line:first-child {
609
+ stroke: var(--violet);
610
+ }
611
+ .gleg {
612
+ position: absolute;
613
+ right: 10px;
614
+ top: 10px;
615
+ display: flex;
616
+ gap: 12px;
617
+ font-size: 12px;
618
+ color: var(--text-2);
619
+ background: var(--surface);
620
+ border: 1px solid var(--border);
621
+ border-radius: var(--r-m);
622
+ padding: 5px 10px;
623
+ }
624
+ .gleg i {
625
+ display: inline-block;
626
+ width: 10px;
627
+ height: 10px;
628
+ border-radius: 50%;
629
+ margin-right: 5px;
630
+ vertical-align: -1px;
631
+ }
632
+ .gzoom {
633
+ position: absolute;
634
+ right: 10px;
635
+ bottom: 10px;
636
+ display: grid;
637
+ gap: 4px;
638
+ }
639
+ .gzoom button {
640
+ width: 30px;
641
+ height: 30px;
642
+ background: var(--surface);
643
+ border: 1px solid var(--border);
644
+ border-radius: var(--r-s);
645
+ font-weight: 600;
646
+ color: var(--text-2);
647
+ cursor: pointer;
648
+ }
649
+ @media (max-width: 860px) {
650
+ .gzoom {
651
+ display: none;
652
+ }
653
+ .gwrap svg {
654
+ height: auto;
655
+ }
656
+ .g-n text {
657
+ font-size: 19px;
658
+ }
659
+ }
660
+
492
661
  /* The modal dialog, fields, inputs, hints, the switch. */
493
662
  .overlay {
494
663
  position: fixed;
@@ -110,7 +110,7 @@ Object.keys(l);
110
110
  //#endregion
111
111
  //#region src/components/Markdown.tsx
112
112
  function f(e, n) {
113
- let r = [], i = /(`[^`]+`|\*\*[^*]+\*\*|\*[^*]+\*|_[^_]+_)/g, a = 0, o, s = 0;
113
+ let r = [], i = /(`[^`]+`|\*\*[^*]+\*\*|\*[^*]+\*|(?<![\p{L}\p{N}_])_[^_]+_(?![\p{L}\p{N}_]))/gu, a = 0, o, s = 0;
114
114
  for (; o = i.exec(e);) {
115
115
  o.index > a && r.push(e.slice(a, o.index));
116
116
  let i = o[0], c = `${n}-${s++}`;
@@ -335,4 +335,4 @@ function T(e, t) {
335
335
  //#endregion
336
336
  export { S as a, y as c, d, u as f, g as i, h as l, C as n, v as o, w as r, T as s, x as t, m as u };
337
337
 
338
- //# sourceMappingURL=ui-sV5t0cp1.js.map
338
+ //# sourceMappingURL=ui-BrAaLui6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-BrAaLui6.js","names":["useKitT","PATHS","Icon","className","size","name","GitHubIcon","inline","out","re","last","m","i","text","tok","k","key","cells","row","c","Markdown","lines","blocks","n","line","body","h","Tag","head","rows","j","r","ri","ordered","items","it","para","Tabs","ref","useRef","label","value","to","e","onChange","Modal","useEffect","onKey","onClose","wide","title","footer","ToastCtx","createContext","ToastProvider","toasts","setToasts","useState","next","dismiss","useCallback","ts","id","push","t","close","children","a","useToast","useContext","initials","parts","Avatar","cls","small","agent","variant","url","icon","Switch","on","Empty","Loading","useOutside","open"],"sources":["../src/components/Icon.tsx","../src/components/Markdown.tsx","../src/components/Tabs.tsx","../src/components/ui.tsx"],"sourcesContent":["// Icon set of the product family, rendered inline: the stroke icons of both products\n// (FTR.NAB.CMN-0005 design §2). Where the drawings differed, the one of Nabu is kept.\n\nconst PATHS = {\n user: '<circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21c0-4 3.6-6 8-6s8 2 8 6\"/>',\n hash: '<path d=\"M5 9h14M5 15h14M10 4 8 20M16 4l-2 16\"/>',\n graph: '<circle cx=\"6\" cy=\"7\" r=\"2.5\"/><circle cx=\"18\" cy=\"6\" r=\"2.5\"/><circle cx=\"12\" cy=\"18\" r=\"2.5\"/><path d=\"M8.3 8l2.5 7.8M16 7.8l-3 8M8.5 6.8l7-.6\"/>',\n table: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 10h18M3 15h18M9 4v16\"/>',\n ext: '<path d=\"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5\"/>',\n pause: '<path d=\"M8 5v14M16 5v14\"/>',\n search: '<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/>',\n mail: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"m4 7 8 6 8-6\"/>',\n archive: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"5\" rx=\"1\"/><path d=\"M5 9v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9M10 13h4\"/>',\n key: '<circle cx=\"8\" cy=\"15\" r=\"4\"/><path d=\"m11 12 9-9M16 7l3 3M14 9l2 2\"/>',\n gear: '<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1\"/>',\n mic: '<rect x=\"9\" y=\"3\" width=\"6\" height=\"11\" rx=\"3\"/><path d=\"M5 11a7 7 0 0 0 14 0M12 18v3\"/>',\n clip: '<path d=\"m21 11-8.5 8.5a5 5 0 0 1-7-7L14 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 7\"/>',\n send: '<path d=\"M5 12h14M13 6l6 6-6 6\"/>',\n x: '<path d=\"M6 6l12 12M18 6 6 18\"/>',\n menu: '<path d=\"M4 7h16M4 12h16M4 17h16\"/>',\n check: '<path d=\"m5 12 5 5 9-10\"/>',\n lock: '<rect x=\"5\" y=\"11\" width=\"14\" height=\"10\" rx=\"2\"/><path d=\"M8 11V8a4 4 0 0 1 8 0v3\"/>',\n branch: '<circle cx=\"6\" cy=\"5\" r=\"2\"/><circle cx=\"6\" cy=\"19\" r=\"2\"/><circle cx=\"18\" cy=\"8\" r=\"2\"/><path d=\"M6 7v10M18 10c0 5-8 4-11 7\"/>',\n plus: '<path d=\"M12 5v14M5 12h14\"/>',\n back: '<path d=\"M19 12H5M11 6l-6 6 6 6\"/>',\n files: '<path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z\"/><path d=\"M14 3v5h5\"/>',\n clock: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M12 8v4l3 2\"/>',\n msg: '<path d=\"M4 5h16v11H9l-5 4z\"/>',\n out: '<path d=\"M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10\"/>',\n users: '<circle cx=\"9\" cy=\"8\" r=\"3\"/><path d=\"M3 20a6 6 0 0 1 12 0M16 5a3 3 0 0 1 0 6M21 20a6 6 0 0 0-4-5.6\"/>',\n grid: '<rect x=\"4\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"13\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"4\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"13\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\"/>',\n book: '<path d=\"M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3z\"/><path d=\"M5 17a3 3 0 0 1 3-3h11\"/>',\n wrench: '<path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.8-3.8a6 6 0 0 1-7.9 7.9l-6.9 6.9a2.1 2.1 0 0 1-3-3l6.9-6.9a6 6 0 0 1 7.9-7.9z\"/>',\n upload: '<path d=\"M12 16V4M7 9l5-5 5 5M5 20h14\"/>',\n dots: '<circle cx=\"5\" cy=\"12\" r=\"1.3\"/><circle cx=\"12\" cy=\"12\" r=\"1.3\"/><circle cx=\"19\" cy=\"12\" r=\"1.3\"/>',\n trash: '<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6\"/>',\n cpu: '<rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"1.5\"/><rect x=\"10\" y=\"10\" width=\"4\" height=\"4\"/><path d=\"M10 3v4M14 3v4M10 17v4M14 17v4M3 10h4M3 14h4M17 10h4M17 14h4\"/>',\n alert: '<path d=\"M12 4 2 20h20z\"/><path d=\"M12 10v4M12 17v.5\"/>',\n sparkle: '<path d=\"M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M6 18l2.5-2.5M15.5 8.5 18 6\"/>',\n stop: '<rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"1.5\"/>',\n bulb: '<path d=\"M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z\"/>',\n bug: '<rect x=\"8\" y=\"7\" width=\"8\" height=\"12\" rx=\"4\"/><path d=\"M12 7V5M9 5l1.5 2M15 5l-1.5 2M4 11h4M16 11h4M4 17l4-2M20 17l-4-2\"/>',\n rocket: '<path d=\"M5 15c-1.5 1.5-2 4-2 6 2 0 4.5-.5 6-2M9 15l-3-3c1.5-5 5.5-8 12-9-1 6.5-4 10.5-9 12z\"/><circle cx=\"14.5\" cy=\"9.5\" r=\"1.5\"/>',\n undo: '<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>',\n reset: '<path d=\"M3 12a9 9 0 1 0 3-6.7L3 8M3 3v5h5\"/>',\n flag: '<path d=\"M5 21V4M5 4h11l-2 4 2 4H5\"/>',\n code: '<path d=\"m8 8-4 4 4 4M16 8l4 4-4 4M13 5l-2 14\"/>',\n flask: '<path d=\"M9 3h6M10 3v6L5 19a1.5 1.5 0 0 0 1.3 2h11.4a1.5 1.5 0 0 0 1.3-2l-5-10V3\"/>',\n target: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><circle cx=\"12\" cy=\"12\" r=\"4\"/><circle cx=\"12\" cy=\"12\" r=\".6\"/>',\n merge: '<circle cx=\"6\" cy=\"5\" r=\"2\"/><circle cx=\"6\" cy=\"19\" r=\"2\"/><circle cx=\"18\" cy=\"19\" r=\"2\"/><path d=\"M6 7v10M6 7c0 6 12 4 12 10\"/>',\n server: '<rect x=\"4\" y=\"4\" width=\"16\" height=\"7\" rx=\"1.5\"/><rect x=\"4\" y=\"13\" width=\"16\" height=\"7\" rx=\"1.5\"/><path d=\"M8 7.5h.01M8 16.5h.01\"/>',\n copy: '<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\"/><path d=\"M5 15V5a2 2 0 0 1 2-2h8\"/>',\n briefcase: '<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 13h18\"/>',\n smile: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M8.5 14a4 4 0 0 0 7 0M9.5 10h.01M14.5 10h.01\"/>',\n bolt: '<path d=\"M13 3 5 14h6l-1 7 8-11h-6z\"/>',\n link: '<path d=\"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1\"/><path d=\"M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1\"/>',\n refresh: '<path d=\"M20 11a8 8 0 0 0-14.5-4.5L4 8M4 4v4h4M4 13a8 8 0 0 0 14.5 4.5L20 16M20 20v-4h-4\"/>',\n // drawings for the avatar of an agent and the icons that came with Nabu\n tBusiness: '<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M9 7V5h6v2M3 12h18\"/>',\n tFriendly: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M8 14c1 1.5 2.4 2.2 4 2.2s3-.7 4-2.2M9 9.5h.01M15 9.5h.01\"/>',\n tBrief: '<path d=\"M13 3L5 13h6l-1 8 8-10h-6z\"/>',\n tMentor: '<path d=\"M3 6c3-1 6-1 9 1 3-2 6-2 9-1v13c-3-1-6-1-9 1-3-2-6-2-9-1zM12 7v13\"/>',\n tg: '<path d=\"M3 11l18-7-3 16-6-5-3 3v-5l9-7-11 6z\"/>',\n msg2: '<path d=\"M4 5h16v11H8l-4 4z\"/>',\n plug: '<path d=\"M9 3v5M15 3v5M6 8h12v3a6 6 0 0 1-12 0zM12 17v4\"/>',\n repeat: '<path d=\"M17 2l3 3-3 3M4 11V9a4 4 0 0 1 4-4h12M7 22l-3-3 3-3M20 13v2a4 4 0 0 1-4 4H4\"/>',\n shield: '<path d=\"M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z\"/>',\n box: '<path d=\"M3 7l9-4 9 4v10l-9 4-9-4zM3 7l9 4 9-4M12 11v10\"/>',\n brain: '<path d=\"M9 4a3 3 0 0 0-3 3 3 3 0 0 0-2 5 3 3 0 0 0 2 5 3 3 0 0 0 6 1V5a3 3 0 0 0-3-1zM15 4a3 3 0 0 1 3 3 3 3 0 0 1 2 5 3 3 0 0 1-2 5 3 3 0 0 1-6 1\"/>',\n chart: '<path d=\"M4 20h16M6 16l4-5 3 3 5-7\"/>',\n play: '<path d=\"M7 5l12 7-12 7z\"/>',\n spark: '<path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z\"/>',\n tag: '<path d=\"M3 12V4h8l9 9-8 8z\"/><circle cx=\"7.5\" cy=\"8.5\" r=\"1.3\"/>',\n globe: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/>',\n download: '<path d=\"M12 4v12M7 11l5 5 5-5M5 20h14\"/>',\n pdf: '<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M15 3v4h4M9 12h6M9 15.5h6M9 19h3\"/>',\n markdown: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"M7 15V9l2.5 3L12 9v6M16 9v6M14 13l2 2 2-2\"/>',\n source: '<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M15 3v4h4M10.5 11l-2 2.5 2 2.5M13.5 11l2 2.5-2 2.5\"/>',\n pin: '<path d=\"M9 4h6l-1 6 4 4H6l4-4zM12 14v6\"/>',\n edit: '<path d=\"M4 20h4L19 9l-4-4L4 16zM14 6l4 4\"/>',\n image: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><circle cx=\"9\" cy=\"10\" r=\"2\"/><path d=\"m21 16-5-5-9 9\"/>',\n compress: '<path d=\"M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7\"/>',\n // a double chevron to the right: a panel folds to the right edge (FTR.HMR.SPEC-0001 R8)\n chevrons: '<path d=\"m6 6 6 6-6 6M13 6l6 6-6 6\"/>',\n} as const;\n\nexport type IconName = keyof typeof PATHS;\n\nexport function Icon({ name, size = 18, className = \"\" }: { name: IconName; size?: number; className?: string }) {\n return (\n <svg\n className={`i ${className}`}\n viewBox=\"0 0 24 24\"\n style={{ width: size, height: size }}\n aria-hidden=\"true\"\n dangerouslySetInnerHTML={{ __html: PATHS[name] }}\n />\n );\n}\n\nexport function GitHubIcon() {\n return (\n <svg className=\"i\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" style={{ fill: \"currentColor\", stroke: \"none\" }}>\n <path d=\"M12 2a10 10 0 0 0-3.2 19.5c.5.1.7-.2.7-.5v-1.7c-2.8.6-3.4-1.3-3.4-1.3-.5-1.2-1.1-1.5-1.1-1.5-.9-.6.1-.6.1-.6 1 .1 1.5 1 1.5 1 .9 1.5 2.4 1.1 2.9.8.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.1-4.6-5a3.9 3.9 0 0 1 1-2.7 3.6 3.6 0 0 1 .1-2.7s.8-.3 2.8 1a9.6 9.6 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .5 1.4.2 2.4.1 2.7a3.9 3.9 0 0 1 1 2.7c0 3.9-2.4 4.7-4.6 5 .4.3.7.9.7 1.9V21c0 .3.2.6.7.5A10 10 0 0 0 12 2z\" />\n </svg>\n );\n}\n\n/** Names of all icons, for the showcase. */\nexport const ICON_NAMES = Object.keys(PATHS) as IconName[];\n","import type { ReactNode } from \"react\";\n\n// A small read-only Markdown renderer for answers of an agent and generated\n// documents: headings, paragraphs, lists, GFM tables, code fences,\n// bold, italic and inline code. It builds React elements (no raw HTML), so\n// content written by the agent cannot inject markup.\n\nfunction inline(text: string, key: string): ReactNode[] {\n const out: ReactNode[] = [];\n // \"_\" inside a word is not emphasis: snake_case names stay as they are.\n const re = /(`[^`]+`|\\*\\*[^*]+\\*\\*|\\*[^*]+\\*|(?<![\\p{L}\\p{N}_])_[^_]+_(?![\\p{L}\\p{N}_]))/gu;\n let last = 0;\n let m: RegExpExecArray | null;\n let i = 0;\n while ((m = re.exec(text))) {\n if (m.index > last) out.push(text.slice(last, m.index));\n const tok = m[0];\n const k = `${key}-${i++}`;\n if (tok.startsWith(\"`\")) out.push(<code key={k}>{tok.slice(1, -1)}</code>);\n else if (tok.startsWith(\"**\")) out.push(<b key={k}>{tok.slice(2, -2)}</b>);\n else out.push(<i key={k}>{tok.slice(1, -1)}</i>);\n last = m.index + tok.length;\n }\n if (last < text.length) out.push(text.slice(last));\n return out;\n}\n\nconst cells = (row: string) => row.trim().replace(/^\\||\\|$/g, \"\").split(\"|\").map((c) => c.trim());\n\nexport function Markdown({ text }: { text: string }) {\n const lines = text.replace(/\\r\\n/g, \"\\n\").split(\"\\n\");\n const blocks: ReactNode[] = [];\n let i = 0;\n let n = 0;\n while (i < lines.length) {\n const line = lines[i];\n const k = `b${n++}`;\n if (/^\\s*(```|~~~)/.test(line)) {\n const body: string[] = [];\n i++;\n while (i < lines.length && !/^\\s*(```|~~~)/.test(lines[i])) body.push(lines[i++]);\n i++;\n blocks.push(<pre key={k}><code>{body.join(\"\\n\")}</code></pre>);\n continue;\n }\n const h = /^(#{1,6})\\s+(.*)$/.exec(line);\n if (h) {\n const level = Math.min(6, h[1].length + 2);\n const Tag = `h${level}` as \"h3\";\n blocks.push(<Tag key={k}>{inline(h[2], k)}</Tag>);\n i++;\n continue;\n }\n if (line.trim().startsWith(\"|\") && i + 1 < lines.length && /^\\s*\\|?\\s*:?-{2,}/.test(lines[i + 1])) {\n const head = cells(line);\n i += 2;\n const rows: string[][] = [];\n while (i < lines.length && lines[i].trim().startsWith(\"|\")) rows.push(cells(lines[i++]));\n blocks.push(\n <table key={k} className=\"cov\">\n <thead><tr>{head.map((c, j) => <th key={j}>{inline(c, `${k}h${j}`)}</th>)}</tr></thead>\n <tbody>{rows.map((r, ri) => <tr key={ri}>{r.map((c, j) => <td key={j}>{inline(c, `${k}r${ri}c${j}`)}</td>)}</tr>)}</tbody>\n </table>,\n );\n continue;\n }\n if (/^\\s*([-*+]|\\d+[.)])\\s+/.test(line)) {\n const ordered = /^\\s*\\d/.test(line);\n const items: string[] = [];\n while (i < lines.length && /^\\s*([-*+]|\\d+[.)])\\s+/.test(lines[i])) items.push(lines[i++].replace(/^\\s*([-*+]|\\d+[.)])\\s+/, \"\"));\n const Tag = ordered ? \"ol\" : \"ul\";\n blocks.push(<Tag key={k}>{items.map((it, j) => <li key={j}>{inline(it, `${k}${j}`)}</li>)}</Tag>);\n continue;\n }\n if (!line.trim()) {\n i++;\n continue;\n }\n const para: string[] = [];\n while (i < lines.length && lines[i].trim() && !/^(#{1,6}\\s|\\s*(```|~~~|\\||[-*+]\\s|\\d+[.)]\\s))/.test(lines[i])) para.push(lines[i++]);\n if (para.length === 0) para.push(lines[i++]);\n blocks.push(<p key={k}>{inline(para.join(\" \"), k)}</p>);\n }\n return <div className=\"prose\">{blocks}</div>;\n}\n","import { useRef, type KeyboardEvent, type ReactNode } from \"react\";\n\n/** `.tabs` with the keyboard of a tab list: arrows, Home and End move the choice. */\nexport function Tabs<K extends string>({ items, value, onChange, label }: {\n items: { key: K; label: ReactNode }[]; value: K; onChange: (key: K) => void; label?: string;\n}) {\n const ref = useRef<HTMLDivElement>(null);\n const onKey = (e: KeyboardEvent) => {\n const i = items.findIndex((it) => it.key === value);\n const to = e.key === \"ArrowRight\" ? (i + 1) % items.length\n : e.key === \"ArrowLeft\" ? (i - 1 + items.length) % items.length\n : e.key === \"Home\" ? 0 : e.key === \"End\" ? items.length - 1 : -1;\n if (to < 0) return;\n e.preventDefault();\n onChange(items[to].key);\n ref.current?.querySelectorAll<HTMLElement>('[role=\"tab\"]')[to]?.focus();\n };\n return (\n <div className=\"tabs\" role=\"tablist\" aria-label={label} ref={ref} onKeyDown={onKey}>\n {items.map((it) => (\n <button key={it.key} type=\"button\" role=\"tab\" aria-selected={it.key === value} tabIndex={it.key === value ? 0 : -1}\n className={it.key === value ? \"on\" : undefined} onClick={() => onChange(it.key)}>\n {it.label}\n </button>\n ))}\n </div>\n );\n}\n","import { createContext, useCallback, useContext, useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { useKitT } from \"../i18n\";\nimport { Icon, type IconName } from \"./Icon\";\n\n// ─── Modal ─────────────────────────────────────────────────────────\n\nexport function Modal({ title, onClose, children, footer, wide = false }: {\n title: ReactNode; onClose: () => void; children: ReactNode; footer?: ReactNode; wide?: boolean;\n}) {\n const ref = useRef<HTMLDivElement>(null);\n useEffect(() => {\n const onKey = (e: KeyboardEvent) => e.key === \"Escape\" && onClose();\n document.addEventListener(\"keydown\", onKey);\n ref.current?.querySelector<HTMLElement>(\"input, textarea, select, button.primary\")?.focus();\n return () => document.removeEventListener(\"keydown\", onKey);\n }, [onClose]);\n return (\n <div className=\"overlay\" onMouseDown={(e) => e.target === e.currentTarget && onClose()}>\n <div className={`modal${wide ? \" wide\" : \"\"}`} role=\"dialog\" aria-modal=\"true\" ref={ref}>\n <header>{title}</header>\n <div className=\"mb\">{children}</div>\n {footer && <footer>{footer}</footer>}\n </div>\n </div>\n );\n}\n\n// ─── Toasts ────────────────────────────────────────────────────────\n\nexport interface ToastSpec {\n kind?: \"error\" | \"ok\" | \"info\";\n title: string;\n text?: ReactNode;\n actions?: { label: string; primary?: boolean; onClick: () => void }[];\n sticky?: boolean;\n}\n\nconst ToastCtx = createContext<(t: ToastSpec) => void>(() => {});\n\nexport function ToastProvider({ children }: { children: ReactNode }) {\n const [toasts, setToasts] = useState<(ToastSpec & { id: number })[]>([]);\n const next = useRef(1);\n const dismiss = useCallback((id: number) => setToasts((ts) => ts.filter((t) => t.id !== id)), []);\n const push = useCallback((t: ToastSpec) => {\n const id = next.current++;\n setToasts((ts) => [...ts.slice(-3), { ...t, id }]);\n if (!t.sticky && !t.actions) setTimeout(() => dismiss(id), 6000);\n }, [dismiss]);\n const close = useKitT()(\"close\");\n return (\n <ToastCtx.Provider value={push}>\n {children}\n <div className=\"toast-wrap\" aria-live=\"polite\">\n {toasts.map((t) => (\n <div key={t.id} className={`toast ${t.kind ?? \"info\"}`} role={t.kind === \"error\" ? \"alert\" : \"status\"}>\n <div className=\"row\" style={{ alignItems: \"flex-start\", flexWrap: \"nowrap\" }}>\n <div className=\"grow\">\n <b>{t.title}</b>\n {t.text && <span className=\"small t2\">{t.text}</span>}\n </div>\n <button className=\"iconbtn\" style={{ width: 24, height: 24 }} onClick={() => dismiss(t.id)} aria-label={close}>\n <Icon name=\"x\" size={14} />\n </button>\n </div>\n {t.actions && (\n <div className=\"acts\">\n {t.actions.map((a) => (\n <button key={a.label} className={`btn sm${a.primary ? \" primary\" : \"\"}`} onClick={() => { dismiss(t.id); a.onClick(); }}>\n {a.label}\n </button>\n ))}\n </div>\n )}\n </div>\n ))}\n </div>\n </ToastCtx.Provider>\n );\n}\n\nexport const useToast = () => useContext(ToastCtx);\n\n// ─── Small pieces ──────────────────────────────────────────────────\n\n/** Two letters of a name for an avatar without a picture. */\nexport function initials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) return \"?\";\n if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();\n return (parts[0][0] + parts[1][0]).toUpperCase();\n}\n\n/** The avatar of a user or of an agent. What an agent looks like is decided by the\n * product (R7): it gives the icon and the colour variant — a class beside `.avatar.agent`. */\nexport function Avatar({ name, url, small, agent, icon, variant }: {\n name: string; url?: string | null; small?: boolean; agent?: boolean; icon?: IconName; variant?: string;\n}) {\n const cls = `avatar${small ? \" s\" : \"\"}${agent ? \" agent\" : \"\"}${agent && variant ? ` ${variant}` : \"\"}`;\n return (\n <span className={cls} aria-hidden=\"true\">\n {url ? <img src={url} alt=\"\" />\n : agent && icon ? <Icon name={icon} size={small ? 14 : 18} />\n : agent ? name.slice(0, 1).toUpperCase() : initials(name)}\n </span>\n );\n}\n\nexport function Switch({ on, onChange, label, disabled }: { on: boolean; onChange: (v: boolean) => void; label?: ReactNode; disabled?: boolean }) {\n return (\n <button type=\"button\" className=\"switch\" role=\"switch\" aria-checked={on} disabled={disabled} onClick={() => onChange(!on)}>\n <span className={`sw${on ? \" on\" : \"\"}`} />\n {label}\n </button>\n );\n}\n\nexport function Empty({ icon, title, children }: { icon: IconName; title: ReactNode; children?: ReactNode }) {\n return (\n <div className=\"empty dashed\">\n <div className=\"ic\"><Icon name={icon} /></div>\n <b>{title}</b>\n {children}\n </div>\n );\n}\n\nexport function Loading() {\n const t = useKitT();\n return <div className=\"loading\">{t(\"loading\")}</div>;\n}\n\n/** Popover menu closed by an outside click. */\nexport function useOutside<T extends HTMLElement>(open: boolean, close: () => void) {\n const ref = useRef<T>(null);\n useEffect(() => {\n if (!open) return;\n const h = (e: MouseEvent) => ref.current && !ref.current.contains(e.target as Node) && close();\n const k = (e: KeyboardEvent) => e.key === \"Escape\" && close();\n document.addEventListener(\"mousedown\", h);\n document.addEventListener(\"keydown\", k);\n return () => {\n document.removeEventListener(\"mousedown\", h);\n document.removeEventListener(\"keydown\", k);\n };\n }, [open, close]);\n return ref;\n}\n"],"mappings":";;;;AAGA,IAAMC,IAAQ;CACZ,MAAM;CACN,MAAM;CACN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CAAC,GACT3B;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@green-on-grey/ui-kit",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "UI kit of the Nabu and Hammurapi products: styles, components, the chat and the sign-in screen",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -55,10 +55,12 @@
55
55
  "react-i18next": "^17.0.0"
56
56
  },
57
57
  "dependencies": {
58
+ "d3-force": "^3.0.1",
58
59
  "postcss": "^8.5.29"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@playwright/test": "^1.64.0",
63
+ "@types/d3-force": "^3.0.10",
62
64
  "@types/node": "^26.6.2",
63
65
  "@types/react": "^19.3.0",
64
66
  "@types/react-dom": "^19.3.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-sV5t0cp1.js","names":["useKitT","PATHS","Icon","className","size","name","GitHubIcon","inline","out","re","last","m","i","text","tok","k","key","cells","row","c","Markdown","lines","blocks","n","line","body","h","Tag","head","rows","j","r","ri","ordered","items","it","para","Tabs","ref","useRef","label","value","to","e","onChange","Modal","useEffect","onKey","onClose","wide","title","footer","ToastCtx","createContext","ToastProvider","toasts","setToasts","useState","next","dismiss","useCallback","ts","id","push","t","close","children","a","useToast","useContext","initials","parts","Avatar","cls","small","agent","variant","url","icon","Switch","on","Empty","Loading","useOutside","open"],"sources":["../src/components/Icon.tsx","../src/components/Markdown.tsx","../src/components/Tabs.tsx","../src/components/ui.tsx"],"sourcesContent":["// Icon set of the product family, rendered inline: the stroke icons of both products\n// (FTR.NAB.CMN-0005 design §2). Where the drawings differed, the one of Nabu is kept.\n\nconst PATHS = {\n user: '<circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21c0-4 3.6-6 8-6s8 2 8 6\"/>',\n hash: '<path d=\"M5 9h14M5 15h14M10 4 8 20M16 4l-2 16\"/>',\n graph: '<circle cx=\"6\" cy=\"7\" r=\"2.5\"/><circle cx=\"18\" cy=\"6\" r=\"2.5\"/><circle cx=\"12\" cy=\"18\" r=\"2.5\"/><path d=\"M8.3 8l2.5 7.8M16 7.8l-3 8M8.5 6.8l7-.6\"/>',\n table: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 10h18M3 15h18M9 4v16\"/>',\n ext: '<path d=\"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5\"/>',\n pause: '<path d=\"M8 5v14M16 5v14\"/>',\n search: '<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/>',\n mail: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"m4 7 8 6 8-6\"/>',\n archive: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"5\" rx=\"1\"/><path d=\"M5 9v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9M10 13h4\"/>',\n key: '<circle cx=\"8\" cy=\"15\" r=\"4\"/><path d=\"m11 12 9-9M16 7l3 3M14 9l2 2\"/>',\n gear: '<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1\"/>',\n mic: '<rect x=\"9\" y=\"3\" width=\"6\" height=\"11\" rx=\"3\"/><path d=\"M5 11a7 7 0 0 0 14 0M12 18v3\"/>',\n clip: '<path d=\"m21 11-8.5 8.5a5 5 0 0 1-7-7L14 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 7\"/>',\n send: '<path d=\"M5 12h14M13 6l6 6-6 6\"/>',\n x: '<path d=\"M6 6l12 12M18 6 6 18\"/>',\n menu: '<path d=\"M4 7h16M4 12h16M4 17h16\"/>',\n check: '<path d=\"m5 12 5 5 9-10\"/>',\n lock: '<rect x=\"5\" y=\"11\" width=\"14\" height=\"10\" rx=\"2\"/><path d=\"M8 11V8a4 4 0 0 1 8 0v3\"/>',\n branch: '<circle cx=\"6\" cy=\"5\" r=\"2\"/><circle cx=\"6\" cy=\"19\" r=\"2\"/><circle cx=\"18\" cy=\"8\" r=\"2\"/><path d=\"M6 7v10M18 10c0 5-8 4-11 7\"/>',\n plus: '<path d=\"M12 5v14M5 12h14\"/>',\n back: '<path d=\"M19 12H5M11 6l-6 6 6 6\"/>',\n files: '<path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z\"/><path d=\"M14 3v5h5\"/>',\n clock: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M12 8v4l3 2\"/>',\n msg: '<path d=\"M4 5h16v11H9l-5 4z\"/>',\n out: '<path d=\"M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10\"/>',\n users: '<circle cx=\"9\" cy=\"8\" r=\"3\"/><path d=\"M3 20a6 6 0 0 1 12 0M16 5a3 3 0 0 1 0 6M21 20a6 6 0 0 0-4-5.6\"/>',\n grid: '<rect x=\"4\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"13\" y=\"4\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"4\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"13\" y=\"13\" width=\"7\" height=\"7\" rx=\"1\"/>',\n book: '<path d=\"M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3z\"/><path d=\"M5 17a3 3 0 0 1 3-3h11\"/>',\n wrench: '<path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.8-3.8a6 6 0 0 1-7.9 7.9l-6.9 6.9a2.1 2.1 0 0 1-3-3l6.9-6.9a6 6 0 0 1 7.9-7.9z\"/>',\n upload: '<path d=\"M12 16V4M7 9l5-5 5 5M5 20h14\"/>',\n dots: '<circle cx=\"5\" cy=\"12\" r=\"1.3\"/><circle cx=\"12\" cy=\"12\" r=\"1.3\"/><circle cx=\"19\" cy=\"12\" r=\"1.3\"/>',\n trash: '<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6\"/>',\n cpu: '<rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"1.5\"/><rect x=\"10\" y=\"10\" width=\"4\" height=\"4\"/><path d=\"M10 3v4M14 3v4M10 17v4M14 17v4M3 10h4M3 14h4M17 10h4M17 14h4\"/>',\n alert: '<path d=\"M12 4 2 20h20z\"/><path d=\"M12 10v4M12 17v.5\"/>',\n sparkle: '<path d=\"M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M6 18l2.5-2.5M15.5 8.5 18 6\"/>',\n stop: '<rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"1.5\"/>',\n bulb: '<path d=\"M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z\"/>',\n bug: '<rect x=\"8\" y=\"7\" width=\"8\" height=\"12\" rx=\"4\"/><path d=\"M12 7V5M9 5l1.5 2M15 5l-1.5 2M4 11h4M16 11h4M4 17l4-2M20 17l-4-2\"/>',\n rocket: '<path d=\"M5 15c-1.5 1.5-2 4-2 6 2 0 4.5-.5 6-2M9 15l-3-3c1.5-5 5.5-8 12-9-1 6.5-4 10.5-9 12z\"/><circle cx=\"14.5\" cy=\"9.5\" r=\"1.5\"/>',\n undo: '<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>',\n reset: '<path d=\"M3 12a9 9 0 1 0 3-6.7L3 8M3 3v5h5\"/>',\n flag: '<path d=\"M5 21V4M5 4h11l-2 4 2 4H5\"/>',\n code: '<path d=\"m8 8-4 4 4 4M16 8l4 4-4 4M13 5l-2 14\"/>',\n flask: '<path d=\"M9 3h6M10 3v6L5 19a1.5 1.5 0 0 0 1.3 2h11.4a1.5 1.5 0 0 0 1.3-2l-5-10V3\"/>',\n target: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><circle cx=\"12\" cy=\"12\" r=\"4\"/><circle cx=\"12\" cy=\"12\" r=\".6\"/>',\n merge: '<circle cx=\"6\" cy=\"5\" r=\"2\"/><circle cx=\"6\" cy=\"19\" r=\"2\"/><circle cx=\"18\" cy=\"19\" r=\"2\"/><path d=\"M6 7v10M6 7c0 6 12 4 12 10\"/>',\n server: '<rect x=\"4\" y=\"4\" width=\"16\" height=\"7\" rx=\"1.5\"/><rect x=\"4\" y=\"13\" width=\"16\" height=\"7\" rx=\"1.5\"/><path d=\"M8 7.5h.01M8 16.5h.01\"/>',\n copy: '<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\"/><path d=\"M5 15V5a2 2 0 0 1 2-2h8\"/>',\n briefcase: '<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 13h18\"/>',\n smile: '<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M8.5 14a4 4 0 0 0 7 0M9.5 10h.01M14.5 10h.01\"/>',\n bolt: '<path d=\"M13 3 5 14h6l-1 7 8-11h-6z\"/>',\n link: '<path d=\"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1\"/><path d=\"M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1\"/>',\n refresh: '<path d=\"M20 11a8 8 0 0 0-14.5-4.5L4 8M4 4v4h4M4 13a8 8 0 0 0 14.5 4.5L20 16M20 20v-4h-4\"/>',\n // drawings for the avatar of an agent and the icons that came with Nabu\n tBusiness: '<rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M9 7V5h6v2M3 12h18\"/>',\n tFriendly: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M8 14c1 1.5 2.4 2.2 4 2.2s3-.7 4-2.2M9 9.5h.01M15 9.5h.01\"/>',\n tBrief: '<path d=\"M13 3L5 13h6l-1 8 8-10h-6z\"/>',\n tMentor: '<path d=\"M3 6c3-1 6-1 9 1 3-2 6-2 9-1v13c-3-1-6-1-9 1-3-2-6-2-9-1zM12 7v13\"/>',\n tg: '<path d=\"M3 11l18-7-3 16-6-5-3 3v-5l9-7-11 6z\"/>',\n msg2: '<path d=\"M4 5h16v11H8l-4 4z\"/>',\n plug: '<path d=\"M9 3v5M15 3v5M6 8h12v3a6 6 0 0 1-12 0zM12 17v4\"/>',\n repeat: '<path d=\"M17 2l3 3-3 3M4 11V9a4 4 0 0 1 4-4h12M7 22l-3-3 3-3M20 13v2a4 4 0 0 1-4 4H4\"/>',\n shield: '<path d=\"M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z\"/>',\n box: '<path d=\"M3 7l9-4 9 4v10l-9 4-9-4zM3 7l9 4 9-4M12 11v10\"/>',\n brain: '<path d=\"M9 4a3 3 0 0 0-3 3 3 3 0 0 0-2 5 3 3 0 0 0 2 5 3 3 0 0 0 6 1V5a3 3 0 0 0-3-1zM15 4a3 3 0 0 1 3 3 3 3 0 0 1 2 5 3 3 0 0 1-2 5 3 3 0 0 1-6 1\"/>',\n chart: '<path d=\"M4 20h16M6 16l4-5 3 3 5-7\"/>',\n play: '<path d=\"M7 5l12 7-12 7z\"/>',\n spark: '<path d=\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z\"/>',\n tag: '<path d=\"M3 12V4h8l9 9-8 8z\"/><circle cx=\"7.5\" cy=\"8.5\" r=\"1.3\"/>',\n globe: '<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/>',\n download: '<path d=\"M12 4v12M7 11l5 5 5-5M5 20h14\"/>',\n pdf: '<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M15 3v4h4M9 12h6M9 15.5h6M9 19h3\"/>',\n markdown: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"M7 15V9l2.5 3L12 9v6M16 9v6M14 13l2 2 2-2\"/>',\n source: '<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M15 3v4h4M10.5 11l-2 2.5 2 2.5M13.5 11l2 2.5-2 2.5\"/>',\n pin: '<path d=\"M9 4h6l-1 6 4 4H6l4-4zM12 14v6\"/>',\n edit: '<path d=\"M4 20h4L19 9l-4-4L4 16zM14 6l4 4\"/>',\n image: '<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><circle cx=\"9\" cy=\"10\" r=\"2\"/><path d=\"m21 16-5-5-9 9\"/>',\n compress: '<path d=\"M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7\"/>',\n // a double chevron to the right: a panel folds to the right edge (FTR.HMR.SPEC-0001 R8)\n chevrons: '<path d=\"m6 6 6 6-6 6M13 6l6 6-6 6\"/>',\n} as const;\n\nexport type IconName = keyof typeof PATHS;\n\nexport function Icon({ name, size = 18, className = \"\" }: { name: IconName; size?: number; className?: string }) {\n return (\n <svg\n className={`i ${className}`}\n viewBox=\"0 0 24 24\"\n style={{ width: size, height: size }}\n aria-hidden=\"true\"\n dangerouslySetInnerHTML={{ __html: PATHS[name] }}\n />\n );\n}\n\nexport function GitHubIcon() {\n return (\n <svg className=\"i\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" style={{ fill: \"currentColor\", stroke: \"none\" }}>\n <path d=\"M12 2a10 10 0 0 0-3.2 19.5c.5.1.7-.2.7-.5v-1.7c-2.8.6-3.4-1.3-3.4-1.3-.5-1.2-1.1-1.5-1.1-1.5-.9-.6.1-.6.1-.6 1 .1 1.5 1 1.5 1 .9 1.5 2.4 1.1 2.9.8.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.1-4.6-5a3.9 3.9 0 0 1 1-2.7 3.6 3.6 0 0 1 .1-2.7s.8-.3 2.8 1a9.6 9.6 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .5 1.4.2 2.4.1 2.7a3.9 3.9 0 0 1 1 2.7c0 3.9-2.4 4.7-4.6 5 .4.3.7.9.7 1.9V21c0 .3.2.6.7.5A10 10 0 0 0 12 2z\" />\n </svg>\n );\n}\n\n/** Names of all icons, for the showcase. */\nexport const ICON_NAMES = Object.keys(PATHS) as IconName[];\n","import type { ReactNode } from \"react\";\n\n// A small read-only Markdown renderer for answers of an agent and generated\n// documents: headings, paragraphs, lists, GFM tables, code fences,\n// bold, italic and inline code. It builds React elements (no raw HTML), so\n// content written by the agent cannot inject markup.\n\nfunction inline(text: string, key: string): ReactNode[] {\n const out: ReactNode[] = [];\n const re = /(`[^`]+`|\\*\\*[^*]+\\*\\*|\\*[^*]+\\*|_[^_]+_)/g;\n let last = 0;\n let m: RegExpExecArray | null;\n let i = 0;\n while ((m = re.exec(text))) {\n if (m.index > last) out.push(text.slice(last, m.index));\n const tok = m[0];\n const k = `${key}-${i++}`;\n if (tok.startsWith(\"`\")) out.push(<code key={k}>{tok.slice(1, -1)}</code>);\n else if (tok.startsWith(\"**\")) out.push(<b key={k}>{tok.slice(2, -2)}</b>);\n else out.push(<i key={k}>{tok.slice(1, -1)}</i>);\n last = m.index + tok.length;\n }\n if (last < text.length) out.push(text.slice(last));\n return out;\n}\n\nconst cells = (row: string) => row.trim().replace(/^\\||\\|$/g, \"\").split(\"|\").map((c) => c.trim());\n\nexport function Markdown({ text }: { text: string }) {\n const lines = text.replace(/\\r\\n/g, \"\\n\").split(\"\\n\");\n const blocks: ReactNode[] = [];\n let i = 0;\n let n = 0;\n while (i < lines.length) {\n const line = lines[i];\n const k = `b${n++}`;\n if (/^\\s*(```|~~~)/.test(line)) {\n const body: string[] = [];\n i++;\n while (i < lines.length && !/^\\s*(```|~~~)/.test(lines[i])) body.push(lines[i++]);\n i++;\n blocks.push(<pre key={k}><code>{body.join(\"\\n\")}</code></pre>);\n continue;\n }\n const h = /^(#{1,6})\\s+(.*)$/.exec(line);\n if (h) {\n const level = Math.min(6, h[1].length + 2);\n const Tag = `h${level}` as \"h3\";\n blocks.push(<Tag key={k}>{inline(h[2], k)}</Tag>);\n i++;\n continue;\n }\n if (line.trim().startsWith(\"|\") && i + 1 < lines.length && /^\\s*\\|?\\s*:?-{2,}/.test(lines[i + 1])) {\n const head = cells(line);\n i += 2;\n const rows: string[][] = [];\n while (i < lines.length && lines[i].trim().startsWith(\"|\")) rows.push(cells(lines[i++]));\n blocks.push(\n <table key={k} className=\"cov\">\n <thead><tr>{head.map((c, j) => <th key={j}>{inline(c, `${k}h${j}`)}</th>)}</tr></thead>\n <tbody>{rows.map((r, ri) => <tr key={ri}>{r.map((c, j) => <td key={j}>{inline(c, `${k}r${ri}c${j}`)}</td>)}</tr>)}</tbody>\n </table>,\n );\n continue;\n }\n if (/^\\s*([-*+]|\\d+[.)])\\s+/.test(line)) {\n const ordered = /^\\s*\\d/.test(line);\n const items: string[] = [];\n while (i < lines.length && /^\\s*([-*+]|\\d+[.)])\\s+/.test(lines[i])) items.push(lines[i++].replace(/^\\s*([-*+]|\\d+[.)])\\s+/, \"\"));\n const Tag = ordered ? \"ol\" : \"ul\";\n blocks.push(<Tag key={k}>{items.map((it, j) => <li key={j}>{inline(it, `${k}${j}`)}</li>)}</Tag>);\n continue;\n }\n if (!line.trim()) {\n i++;\n continue;\n }\n const para: string[] = [];\n while (i < lines.length && lines[i].trim() && !/^(#{1,6}\\s|\\s*(```|~~~|\\||[-*+]\\s|\\d+[.)]\\s))/.test(lines[i])) para.push(lines[i++]);\n if (para.length === 0) para.push(lines[i++]);\n blocks.push(<p key={k}>{inline(para.join(\" \"), k)}</p>);\n }\n return <div className=\"prose\">{blocks}</div>;\n}\n","import { useRef, type KeyboardEvent, type ReactNode } from \"react\";\n\n/** `.tabs` with the keyboard of a tab list: arrows, Home and End move the choice. */\nexport function Tabs<K extends string>({ items, value, onChange, label }: {\n items: { key: K; label: ReactNode }[]; value: K; onChange: (key: K) => void; label?: string;\n}) {\n const ref = useRef<HTMLDivElement>(null);\n const onKey = (e: KeyboardEvent) => {\n const i = items.findIndex((it) => it.key === value);\n const to = e.key === \"ArrowRight\" ? (i + 1) % items.length\n : e.key === \"ArrowLeft\" ? (i - 1 + items.length) % items.length\n : e.key === \"Home\" ? 0 : e.key === \"End\" ? items.length - 1 : -1;\n if (to < 0) return;\n e.preventDefault();\n onChange(items[to].key);\n ref.current?.querySelectorAll<HTMLElement>('[role=\"tab\"]')[to]?.focus();\n };\n return (\n <div className=\"tabs\" role=\"tablist\" aria-label={label} ref={ref} onKeyDown={onKey}>\n {items.map((it) => (\n <button key={it.key} type=\"button\" role=\"tab\" aria-selected={it.key === value} tabIndex={it.key === value ? 0 : -1}\n className={it.key === value ? \"on\" : undefined} onClick={() => onChange(it.key)}>\n {it.label}\n </button>\n ))}\n </div>\n );\n}\n","import { createContext, useCallback, useContext, useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { useKitT } from \"../i18n\";\nimport { Icon, type IconName } from \"./Icon\";\n\n// ─── Modal ─────────────────────────────────────────────────────────\n\nexport function Modal({ title, onClose, children, footer, wide = false }: {\n title: ReactNode; onClose: () => void; children: ReactNode; footer?: ReactNode; wide?: boolean;\n}) {\n const ref = useRef<HTMLDivElement>(null);\n useEffect(() => {\n const onKey = (e: KeyboardEvent) => e.key === \"Escape\" && onClose();\n document.addEventListener(\"keydown\", onKey);\n ref.current?.querySelector<HTMLElement>(\"input, textarea, select, button.primary\")?.focus();\n return () => document.removeEventListener(\"keydown\", onKey);\n }, [onClose]);\n return (\n <div className=\"overlay\" onMouseDown={(e) => e.target === e.currentTarget && onClose()}>\n <div className={`modal${wide ? \" wide\" : \"\"}`} role=\"dialog\" aria-modal=\"true\" ref={ref}>\n <header>{title}</header>\n <div className=\"mb\">{children}</div>\n {footer && <footer>{footer}</footer>}\n </div>\n </div>\n );\n}\n\n// ─── Toasts ────────────────────────────────────────────────────────\n\nexport interface ToastSpec {\n kind?: \"error\" | \"ok\" | \"info\";\n title: string;\n text?: ReactNode;\n actions?: { label: string; primary?: boolean; onClick: () => void }[];\n sticky?: boolean;\n}\n\nconst ToastCtx = createContext<(t: ToastSpec) => void>(() => {});\n\nexport function ToastProvider({ children }: { children: ReactNode }) {\n const [toasts, setToasts] = useState<(ToastSpec & { id: number })[]>([]);\n const next = useRef(1);\n const dismiss = useCallback((id: number) => setToasts((ts) => ts.filter((t) => t.id !== id)), []);\n const push = useCallback((t: ToastSpec) => {\n const id = next.current++;\n setToasts((ts) => [...ts.slice(-3), { ...t, id }]);\n if (!t.sticky && !t.actions) setTimeout(() => dismiss(id), 6000);\n }, [dismiss]);\n const close = useKitT()(\"close\");\n return (\n <ToastCtx.Provider value={push}>\n {children}\n <div className=\"toast-wrap\" aria-live=\"polite\">\n {toasts.map((t) => (\n <div key={t.id} className={`toast ${t.kind ?? \"info\"}`} role={t.kind === \"error\" ? \"alert\" : \"status\"}>\n <div className=\"row\" style={{ alignItems: \"flex-start\", flexWrap: \"nowrap\" }}>\n <div className=\"grow\">\n <b>{t.title}</b>\n {t.text && <span className=\"small t2\">{t.text}</span>}\n </div>\n <button className=\"iconbtn\" style={{ width: 24, height: 24 }} onClick={() => dismiss(t.id)} aria-label={close}>\n <Icon name=\"x\" size={14} />\n </button>\n </div>\n {t.actions && (\n <div className=\"acts\">\n {t.actions.map((a) => (\n <button key={a.label} className={`btn sm${a.primary ? \" primary\" : \"\"}`} onClick={() => { dismiss(t.id); a.onClick(); }}>\n {a.label}\n </button>\n ))}\n </div>\n )}\n </div>\n ))}\n </div>\n </ToastCtx.Provider>\n );\n}\n\nexport const useToast = () => useContext(ToastCtx);\n\n// ─── Small pieces ──────────────────────────────────────────────────\n\n/** Two letters of a name for an avatar without a picture. */\nexport function initials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) return \"?\";\n if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();\n return (parts[0][0] + parts[1][0]).toUpperCase();\n}\n\n/** The avatar of a user or of an agent. What an agent looks like is decided by the\n * product (R7): it gives the icon and the colour variant — a class beside `.avatar.agent`. */\nexport function Avatar({ name, url, small, agent, icon, variant }: {\n name: string; url?: string | null; small?: boolean; agent?: boolean; icon?: IconName; variant?: string;\n}) {\n const cls = `avatar${small ? \" s\" : \"\"}${agent ? \" agent\" : \"\"}${agent && variant ? ` ${variant}` : \"\"}`;\n return (\n <span className={cls} aria-hidden=\"true\">\n {url ? <img src={url} alt=\"\" />\n : agent && icon ? <Icon name={icon} size={small ? 14 : 18} />\n : agent ? name.slice(0, 1).toUpperCase() : initials(name)}\n </span>\n );\n}\n\nexport function Switch({ on, onChange, label, disabled }: { on: boolean; onChange: (v: boolean) => void; label?: ReactNode; disabled?: boolean }) {\n return (\n <button type=\"button\" className=\"switch\" role=\"switch\" aria-checked={on} disabled={disabled} onClick={() => onChange(!on)}>\n <span className={`sw${on ? \" on\" : \"\"}`} />\n {label}\n </button>\n );\n}\n\nexport function Empty({ icon, title, children }: { icon: IconName; title: ReactNode; children?: ReactNode }) {\n return (\n <div className=\"empty dashed\">\n <div className=\"ic\"><Icon name={icon} /></div>\n <b>{title}</b>\n {children}\n </div>\n );\n}\n\nexport function Loading() {\n const t = useKitT();\n return <div className=\"loading\">{t(\"loading\")}</div>;\n}\n\n/** Popover menu closed by an outside click. */\nexport function useOutside<T extends HTMLElement>(open: boolean, close: () => void) {\n const ref = useRef<T>(null);\n useEffect(() => {\n if (!open) return;\n const h = (e: MouseEvent) => ref.current && !ref.current.contains(e.target as Node) && close();\n const k = (e: KeyboardEvent) => e.key === \"Escape\" && close();\n document.addEventListener(\"mousedown\", h);\n document.addEventListener(\"keydown\", k);\n return () => {\n document.removeEventListener(\"mousedown\", h);\n document.removeEventListener(\"keydown\", k);\n };\n }, [open, close]);\n return ref;\n}\n"],"mappings":";;;;AAGA,I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