@knymbus/voxel-ui 1.0.9 → 1.0.10

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/index.js CHANGED
@@ -1,1074 +1,8 @@
1
- import { t as e } from "./chunks/jsx-runtime-Boo2vksn.js";
2
- import { t } from "./chunks/resizable-ImB8dfG_.js";
3
- import { i as n, n as r, r as i, t as a } from "./chunks/tabs-MaVN00hJ.js";
4
- import o, { forwardRef as s, useEffect as c, useRef as l, useState as u } from "react";
5
- //#region src/components/button/Button.tsx
6
- var d = e(), f = {
7
- xs: "w-3 h-3",
8
- sm: "w-3.5 h-3.5",
9
- md: "w-4 h-4",
10
- lg: "w-5 h-5"
11
- }, p = ({ icon: e, size: t = "sm", className: n = "", ...r }) => {
12
- let i = f[t];
13
- return /* @__PURE__ */ (0, d.jsx)(e, {
14
- className: `${i} ${n}`.trim(),
15
- ...r
16
- });
17
- }, m = s((e, t) => {
18
- let { size: n = "sm", color: r = "vsc", iconOnly: i = !1, startIcon: a, endIcon: o, className: s = "", disabled: c, ...l } = e, u = {
19
- primary: "bg-vsc-accent text-vsc-button-text hover:bg-vsc-accent-hover border border-transparent focus:border-vsc-accent/50",
20
- secondary: "bg-vsc-bg border border-vsc-border text-vsc-text hover:bg-vsc-hover focus:border-vsc-accent",
21
- ghost: "bg-transparent border border-transparent text-vsc-muted hover:bg-vsc-hover/40 hover:text-vsc-text focus:border-vsc-border",
22
- danger: "bg-rose-500/10 border border-rose-500/20 text-rose-500 hover:bg-rose-500/20 focus:border-rose-500/50",
23
- vsc: "bg-transparent text-vsc-text border border-transparent opacity-55 hover:opacity-100 hover:bg-vsc-hover focus:border-vsc-hover/50"
24
- }, f = {
25
- xs: i ? "p-1 rounded-sm h-5 w-5" : "px-2 py-0.5 text-[10px] rounded-sm gap-1 h-5.5",
26
- sm: i ? "p-1.5 rounded-md h-7 w-7" : "px-3 py-1.5 text-xs rounded-md gap-1.5 h-7.5",
27
- md: i ? "p-2 rounded-md h-9 w-9" : "px-4 py-2 text-sm rounded-md gap-2 h-9",
28
- lg: i ? "p-3 rounded-lg h-11 w-11" : "px-5 py-2.5 text-base rounded-lg gap-2.5 h-11"
29
- }, m = `inline-flex items-center justify-center font-sans font-medium select-none
30
- outline-none focus:ring-0 cursor-pointer
31
- disabled:opacity-40 disabled:cursor-not-allowed disabled:transform-none disabled:active:scale-100 disabled:pointer-events-none
32
- transition-all duration-150 cubic-bezier(0.34, 1.56, 0.64, 1)
33
- active:scale-95 active:duration-75 ${u[r]} ${f[n]} ${s}`;
34
- if (i) {
35
- let r = e.icon;
36
- return /* @__PURE__ */ (0, d.jsx)("button", {
37
- ref: t,
38
- disabled: c,
39
- className: m,
40
- ...l,
41
- children: /* @__PURE__ */ (0, d.jsx)(p, {
42
- icon: r,
43
- size: n
44
- })
45
- });
46
- }
47
- return /* @__PURE__ */ (0, d.jsxs)("button", {
48
- ref: t,
49
- disabled: c,
50
- className: m,
51
- ...l,
52
- children: [
53
- a && /* @__PURE__ */ (0, d.jsx)(p, {
54
- icon: a,
55
- size: n
56
- }),
57
- /* @__PURE__ */ (0, d.jsx)("span", { children: e.children }),
58
- o && /* @__PURE__ */ (0, d.jsx)(p, {
59
- icon: o,
60
- size: n
61
- })
62
- ]
63
- });
64
- });
65
- m.displayName = "Button";
66
- //#endregion
67
- //#region src/components/button/ButtonGroup.tsx
68
- function h({ children: e, orientation: t = "horizontal", variant: n = "default", gap: r = 0, className: i = "" }) {
69
- let a = t === "horizontal", s = r > 0, c = a ? "flex-row" : "flex-col", l = "";
70
- !s && n === "default" ? l = a ? "[&>button:not(:first-child)]:-ml-[1px] [&>button:first-child]:rounded-l-sm [&>button:last-child]:rounded-r-sm [&>button:not(:first-child):not(:last-child)]:rounded-none" : "[&>button:not(:first-child)]:-mt-[1px] [&>button:first-child]:rounded-t-sm [&>button:last-child]:rounded-b-sm [&>button:not(:first-child):not(:last-child)]:rounded-none" : s && (l = "[&>button]:rounded-sm");
71
- let u = o.Children.map(e, (e) => o.isValidElement(e) && n === "ghost" ? o.cloneElement(e, { color: "ghost" }) : e), f = s ? { gap: `${r}px` } : {};
72
- return /* @__PURE__ */ (0, d.jsx)("div", {
73
- className: `inline-flex bg-transparent rounded-sm select-none isolation-auto ${c} ${l} ${i}`.trim(),
74
- style: f,
75
- children: u
76
- });
77
- }
78
- //#endregion
79
- //#region src/components/button/SplitActionButton.tsx
80
- var g = (e) => /* @__PURE__ */ (0, d.jsx)("svg", {
81
- className: e.className,
82
- fill: "none",
83
- stroke: "currentColor",
84
- strokeWidth: "2.5",
85
- viewBox: "0 0 24 24",
86
- children: /* @__PURE__ */ (0, d.jsx)("path", {
87
- strokeLinecap: "round",
88
- strokeLinejoin: "round",
89
- d: "M19 9l-7 7-7-7"
90
- })
91
- });
92
- function _({ children: e, color: t = "primary", size: n = "sm", startIcon: r, onMainActionClick: i, menuItems: a, className: o = "" }) {
93
- let [s, f] = u(!1), h = l(null);
94
- c(() => {
95
- let e = (e) => {
96
- h.current && !h.current.contains(e.target) && f(!1);
97
- };
98
- return s && window.addEventListener("mousedown", e), () => window.removeEventListener("mousedown", e);
99
- }, [s]);
100
- let _ = {
101
- xs: {
102
- height: "22px",
103
- menuTop: "26px"
104
- },
105
- sm: {
106
- height: "30px",
107
- menuTop: "34px"
108
- },
109
- md: {
110
- height: "36px",
111
- menuTop: "40px"
112
- },
113
- lg: {
114
- height: "44px",
115
- menuTop: "48px"
116
- }
117
- }[n], v = t === "primary" ? "bg-vsc-accent-hover/60" : "bg-vsc-border";
118
- return /* @__PURE__ */ (0, d.jsxs)("div", {
119
- ref: h,
120
- className: `relative inline-flex items-center rounded-sm select-none isolation-auto ${o}`.trim(),
121
- style: { height: _.height },
122
- children: [
123
- /* @__PURE__ */ (0, d.jsx)(m, {
124
- color: t,
125
- size: n,
126
- startIcon: r,
127
- onClick: i,
128
- className: "rounded-r-none! h-full border-r-0",
129
- children: e
130
- }),
131
- /* @__PURE__ */ (0, d.jsx)("div", { className: `w-px h-3/5 pointer-events-none z-20 ${v}` }),
132
- /* @__PURE__ */ (0, d.jsx)("button", {
133
- onClick: () => f(!s),
134
- className: `h-full flex items-center justify-center transition-all duration-150 focus:outline-none border-none outline-none rounded-l-none! cursor-pointer ${t === "primary" ? "bg-vsc-accent text-vsc-button-text hover:bg-vsc-accent-hover" : t === "secondary" ? "bg-vsc-bg border border-vsc-sidebar border-l-0 text-vsc-text hover:bg-vsc-hover" : "bg-transparent text-vsc-muted hover:bg-vsc-hover/40 hover:text-vsc-text"} ${n === "xs" ? "w-5 rounded-r-sm" : n === "sm" ? "w-7 rounded-r-md" : n === "md" ? "w-9 rounded-r-md" : "w-11 rounded-r-lg"}`,
135
- children: /* @__PURE__ */ (0, d.jsx)(g, { className: `w-3.5 h-3.5 transition-transform duration-200 ${s ? "rotate-180" : ""}` })
136
- }),
137
- s && /* @__PURE__ */ (0, d.jsx)("div", {
138
- className: "absolute left-0 w-48 bg-vsc-sidebar border border-vsc-border rounded shadow-xl z-50 p-1 flex flex-col font-sans text-xs text-vsc-text animate-in fade-in slide-in-from-top-2 duration-150",
139
- style: { top: _.menuTop },
140
- children: a.map((e) => /* @__PURE__ */ (0, d.jsxs)("button", {
141
- onClick: () => {
142
- e.onClick(), f(!1);
143
- },
144
- className: "w-full flex items-center gap-2 p-2 hover:bg-vsc-hover text-left rounded-sm border-none bg-transparent text-vsc-text hover:text-white cursor-pointer",
145
- children: [e.startIcon && /* @__PURE__ */ (0, d.jsx)(p, {
146
- icon: e.startIcon,
147
- size: "xs",
148
- className: "opacity-70"
149
- }), /* @__PURE__ */ (0, d.jsx)("span", {
150
- className: "truncate",
151
- children: e.label
152
- })]
153
- }, e.id))
154
- })
155
- ]
156
- });
157
- }
158
- //#endregion
159
- //#region src/components/icons/CloseIcon.tsx
160
- function v({ size: e = 16, className: t = "", ...n }) {
161
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
162
- xmlns: "http://w3.org",
163
- width: e,
164
- height: e,
165
- viewBox: "0 0 24 24",
166
- fill: "none",
167
- stroke: "currentColor",
168
- strokeWidth: "2.5",
169
- strokeLinecap: "round",
170
- strokeLinejoin: "round",
171
- className: `shrink-0 select-none ${t}`.trim(),
172
- ...n,
173
- children: [/* @__PURE__ */ (0, d.jsx)("line", {
174
- x1: "18",
175
- y1: "6",
176
- x2: "6",
177
- y2: "18"
178
- }), /* @__PURE__ */ (0, d.jsx)("line", {
179
- x1: "6",
180
- y1: "6",
181
- x2: "18",
182
- y2: "18"
183
- })]
184
- });
185
- }
186
- //#endregion
187
- //#region src/components/icons/TerminalIcon.tsx
188
- function y({ size: e = 16, className: t = "", ...n }) {
189
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
190
- xmlns: "http://w3.org",
191
- width: e,
192
- height: e,
193
- viewBox: "0 0 24 24",
194
- fill: "none",
195
- stroke: "currentColor",
196
- strokeWidth: "2.5",
197
- strokeLinecap: "round",
198
- strokeLinejoin: "round",
199
- className: `shrink-0 select-none ${t}`.trim(),
200
- ...n,
201
- children: [/* @__PURE__ */ (0, d.jsx)("polyline", { points: "4 17 10 11 4 5" }), /* @__PURE__ */ (0, d.jsx)("line", {
202
- x1: "12",
203
- y1: "19",
204
- x2: "20",
205
- y2: "19"
206
- })]
207
- });
208
- }
209
- //#endregion
210
- //#region src/components/icons/DocumentIcon.tsx
211
- function b({ size: e = 16, className: t = "", ...n }) {
212
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
213
- xmlns: "http://w3.org",
214
- width: e,
215
- height: e,
216
- viewBox: "0 0 24 24",
217
- fill: "none",
218
- stroke: "currentColor",
219
- strokeWidth: "2.2",
220
- strokeLinecap: "round",
221
- strokeLinejoin: "round",
222
- className: `shrink-0 select-none ${t}`.trim(),
223
- ...n,
224
- children: [
225
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
226
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "14 2 14 8 20 8" }),
227
- /* @__PURE__ */ (0, d.jsx)("line", {
228
- x1: "16",
229
- y1: "13",
230
- x2: "8",
231
- y2: "13"
232
- }),
233
- /* @__PURE__ */ (0, d.jsx)("line", {
234
- x1: "16",
235
- y1: "17",
236
- x2: "8",
237
- y2: "17"
238
- }),
239
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "10 9 9 9 8 9" })
240
- ]
241
- });
242
- }
243
- //#endregion
244
- //#region src/components/icons/FolderIcon.tsx
245
- function x({ size: e = 16, className: t = "", ...n }) {
246
- return /* @__PURE__ */ (0, d.jsx)("svg", {
247
- xmlns: "http://w3.org",
248
- width: e,
249
- height: e,
250
- viewBox: "0 0 24 24",
251
- fill: "none",
252
- stroke: "currentColor",
253
- strokeWidth: "2.2",
254
- strokeLinecap: "round",
255
- strokeLinejoin: "round",
256
- className: `shrink-0 select-none ${t}`.trim(),
257
- ...n,
258
- children: /* @__PURE__ */ (0, d.jsx)("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" })
259
- });
260
- }
261
- //#endregion
262
- //#region src/components/icons/SearchIcon.tsx
263
- function S({ size: e = 16, className: t = "", ...n }) {
264
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
265
- xmlns: "http://w3.org",
266
- width: e,
267
- height: e,
268
- viewBox: "0 0 24 24",
269
- fill: "none",
270
- stroke: "currentColor",
271
- strokeWidth: "2.5",
272
- strokeLinecap: "round",
273
- strokeLinejoin: "round",
274
- className: `shrink-0 select-none ${t}`.trim(),
275
- ...n,
276
- children: [/* @__PURE__ */ (0, d.jsx)("circle", {
277
- cx: "11",
278
- cy: "11",
279
- r: "8"
280
- }), /* @__PURE__ */ (0, d.jsx)("line", {
281
- x1: "21",
282
- y1: "21",
283
- x2: "16.65",
284
- y2: "16.65"
285
- })]
286
- });
287
- }
288
- //#endregion
289
- //#region src/components/icons/RefreshIcon.tsx
290
- function C({ size: e = 16, className: t = "", ...n }) {
291
- return /* @__PURE__ */ (0, d.jsx)("svg", {
292
- xmlns: "http://w3.org",
293
- width: e,
294
- height: e,
295
- viewBox: "0 0 24 24",
296
- fill: "none",
297
- stroke: "currentColor",
298
- strokeWidth: "2.5",
299
- strokeLinecap: "round",
300
- strokeLinejoin: "round",
301
- className: `shrink-0 select-none ${t}`.trim(),
302
- ...n,
303
- children: /* @__PURE__ */ (0, d.jsx)("path", { d: "M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67" })
304
- });
305
- }
306
- //#endregion
307
- //#region src/components/icons/TrashIcon.tsx
308
- function w({ size: e = 16, className: t = "", ...n }) {
309
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
310
- xmlns: "http://w3.org",
311
- width: e,
312
- height: e,
313
- viewBox: "0 0 24 24",
314
- fill: "none",
315
- stroke: "currentColor",
316
- strokeWidth: "2.2",
317
- strokeLinecap: "round",
318
- strokeLinejoin: "round",
319
- className: `shrink-0 select-none ${t}`.trim(),
320
- ...n,
321
- children: [
322
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "3 6 5 6 21 6" }),
323
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }),
324
- /* @__PURE__ */ (0, d.jsx)("line", {
325
- x1: "10",
326
- y1: "11",
327
- x2: "10",
328
- y2: "17"
329
- }),
330
- /* @__PURE__ */ (0, d.jsx)("line", {
331
- x1: "14",
332
- y1: "11",
333
- x2: "14",
334
- y2: "17"
335
- })
336
- ]
337
- });
338
- }
339
- //#endregion
340
- //#region src/components/icons/ChevronDownIcon.tsx
341
- function T({ size: e = 16, className: t = "", ...n }) {
342
- return /* @__PURE__ */ (0, d.jsx)("svg", {
343
- xmlns: "http://w3.org",
344
- width: e,
345
- height: e,
346
- viewBox: "0 0 24 24",
347
- fill: "none",
348
- stroke: "currentColor",
349
- strokeWidth: "2.5",
350
- strokeLinecap: "round",
351
- strokeLinejoin: "round",
352
- className: `shrink-0 select-none ${t}`.trim(),
353
- ...n,
354
- children: /* @__PURE__ */ (0, d.jsx)("polyline", { points: "6 9 12 15 18 9" })
355
- });
356
- }
357
- //#endregion
358
- //#region src/components/icons/AddIcon.tsx
359
- function E({ size: e = 16, className: t = "", ...n }) {
360
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
361
- xmlns: "http://w3.org",
362
- width: e,
363
- height: e,
364
- viewBox: "0 0 24 24",
365
- fill: "none",
366
- stroke: "currentColor",
367
- strokeWidth: "2.5",
368
- strokeLinecap: "round",
369
- strokeLinejoin: "round",
370
- className: `shrink-0 select-none ${t}`.trim(),
371
- ...n,
372
- children: [/* @__PURE__ */ (0, d.jsx)("line", {
373
- x1: "12",
374
- y1: "5",
375
- x2: "12",
376
- y2: "19"
377
- }), /* @__PURE__ */ (0, d.jsx)("line", {
378
- x1: "5",
379
- y1: "12",
380
- x2: "19",
381
- y2: "12"
382
- })]
383
- });
384
- }
385
- //#endregion
386
- //#region src/components/icons/MinusIcon.tsx
387
- function D({ size: e = 16, className: t = "", ...n }) {
388
- return /* @__PURE__ */ (0, d.jsx)("svg", {
389
- xmlns: "http://w3.org",
390
- width: e,
391
- height: e,
392
- viewBox: "0 0 24 24",
393
- fill: "none",
394
- stroke: "currentColor",
395
- strokeWidth: "2.5",
396
- strokeLinecap: "round",
397
- strokeLinejoin: "round",
398
- className: `shrink-0 select-none ${t}`.trim(),
399
- ...n,
400
- children: /* @__PURE__ */ (0, d.jsx)("line", {
401
- x1: "5",
402
- y1: "12",
403
- x2: "19",
404
- y2: "12"
405
- })
406
- });
407
- }
408
- //#endregion
409
- //#region src/components/icons/ExpandIcon.tsx
410
- function O({ size: e = 16, className: t = "", ...n }) {
411
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
412
- xmlns: "http://w3.org",
413
- width: e,
414
- height: e,
415
- viewBox: "0 0 24 24",
416
- fill: "none",
417
- stroke: "currentColor",
418
- strokeWidth: "2.2",
419
- strokeLinecap: "round",
420
- strokeLinejoin: "round",
421
- className: `shrink-0 select-none ${t}`.trim(),
422
- ...n,
423
- children: [
424
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "15 3 21 3 21 9" }),
425
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "9 21 3 21 3 15" }),
426
- /* @__PURE__ */ (0, d.jsx)("line", {
427
- x1: "21",
428
- y1: "3",
429
- x2: "14",
430
- y2: "10"
431
- }),
432
- /* @__PURE__ */ (0, d.jsx)("line", {
433
- x1: "3",
434
- y1: "21",
435
- x2: "10",
436
- y2: "14"
437
- })
438
- ]
439
- });
440
- }
441
- //#endregion
442
- //#region src/components/icons/MinimizeIcon.tsx
443
- function k({ size: e = 16, className: t = "", ...n }) {
444
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
445
- xmlns: "http://w3.org",
446
- width: e,
447
- height: e,
448
- viewBox: "0 0 24 24",
449
- fill: "none",
450
- stroke: "currentColor",
451
- strokeWidth: "2.2",
452
- strokeLinecap: "round",
453
- strokeLinejoin: "round",
454
- className: `shrink-0 select-none ${t}`.trim(),
455
- ...n,
456
- children: [
457
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "4 14 10 14 10 20" }),
458
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "20 10 14 10 14 4" }),
459
- /* @__PURE__ */ (0, d.jsx)("line", {
460
- x1: "14",
461
- y1: "10",
462
- x2: "21",
463
- y2: "3"
464
- }),
465
- /* @__PURE__ */ (0, d.jsx)("line", {
466
- x1: "10",
467
- y1: "14",
468
- x2: "3",
469
- y2: "21"
470
- })
471
- ]
472
- });
473
- }
474
- //#endregion
475
- //#region src/components/icons/BlankDocIcon.tsx
476
- function A({ size: e = 16, className: t = "", ...n }) {
477
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
478
- xmlns: "http://w3.org",
479
- width: e,
480
- height: e,
481
- viewBox: "0 0 24 24",
482
- fill: "none",
483
- stroke: "currentColor",
484
- strokeWidth: "2.2",
485
- strokeLinecap: "round",
486
- strokeLinejoin: "round",
487
- className: `shrink-0 select-none ${t}`.trim(),
488
- ...n,
489
- children: [/* @__PURE__ */ (0, d.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), /* @__PURE__ */ (0, d.jsx)("polyline", { points: "14 2 14 8 20 8" })]
490
- });
491
- }
492
- //#endregion
493
- //#region src/components/icons/PlusDocIcon.tsx
494
- function j({ size: e = 16, className: t = "", ...n }) {
495
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
496
- xmlns: "http://w3.org",
497
- width: e,
498
- height: e,
499
- viewBox: "0 0 24 24",
500
- fill: "none",
501
- stroke: "currentColor",
502
- strokeWidth: "2.2",
503
- strokeLinecap: "round",
504
- strokeLinejoin: "round",
505
- className: `shrink-0 select-none ${t}`.trim(),
506
- ...n,
507
- children: [
508
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
509
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "14 2 14 8 20 8" }),
510
- /* @__PURE__ */ (0, d.jsx)("line", {
511
- x1: "12",
512
- y1: "11",
513
- x2: "12",
514
- y2: "17"
515
- }),
516
- /* @__PURE__ */ (0, d.jsx)("line", {
517
- x1: "9",
518
- y1: "14",
519
- x2: "15",
520
- y2: "14"
521
- })
522
- ]
523
- });
524
- }
525
- //#endregion
526
- //#region src/components/icons/ChatIcon.tsx
527
- function M({ size: e = 16, className: t = "", ...n }) {
528
- return /* @__PURE__ */ (0, d.jsx)("svg", {
529
- xmlns: "http://w3.org",
530
- width: e,
531
- height: e,
532
- viewBox: "0 0 24 24",
533
- fill: "none",
534
- stroke: "currentColor",
535
- strokeWidth: "2.2",
536
- strokeLinecap: "round",
537
- strokeLinejoin: "round",
538
- className: `shrink-0 select-none ${t}`.trim(),
539
- ...n,
540
- children: /* @__PURE__ */ (0, d.jsx)("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })
541
- });
542
- }
543
- //#endregion
544
- //#region src/components/icons/PlusChatIcon.tsx
545
- function N({ size: e = 16, className: t = "", ...n }) {
546
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
547
- xmlns: "http://w3.org",
548
- width: e,
549
- height: e,
550
- viewBox: "0 0 24 24",
551
- fill: "none",
552
- stroke: "currentColor",
553
- strokeWidth: "2.2",
554
- strokeLinecap: "round",
555
- strokeLinejoin: "round",
556
- className: `shrink-0 select-none ${t}`.trim(),
557
- ...n,
558
- children: [
559
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }),
560
- /* @__PURE__ */ (0, d.jsx)("line", {
561
- x1: "12",
562
- y1: "7",
563
- x2: "12",
564
- y2: "13"
565
- }),
566
- /* @__PURE__ */ (0, d.jsx)("line", {
567
- x1: "9",
568
- y1: "10",
569
- x2: "15",
570
- y2: "10"
571
- })
572
- ]
573
- });
574
- }
575
- //#endregion
576
- //#region src/components/icons/DeleteChatIcon.tsx
577
- function P({ size: e = 16, className: t = "", ...n }) {
578
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
579
- xmlns: "http://w3.org",
580
- width: e,
581
- height: e,
582
- viewBox: "0 0 24 24",
583
- fill: "none",
584
- stroke: "currentColor",
585
- strokeWidth: "2.2",
586
- strokeLinecap: "round",
587
- strokeLinejoin: "round",
588
- className: `shrink-0 select-none ${t}`.trim(),
589
- ...n,
590
- children: [/* @__PURE__ */ (0, d.jsx)("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }), /* @__PURE__ */ (0, d.jsx)("line", {
591
- x1: "9",
592
- y1: "10",
593
- x2: "15",
594
- y2: "10"
595
- })]
596
- });
597
- }
598
- //#endregion
599
- //#region src/components/icons/CommentIcon.tsx
600
- function F({ size: e = 16, className: t = "", ...n }) {
601
- return /* @__PURE__ */ (0, d.jsx)("svg", {
602
- xmlns: "http://w3.org",
603
- width: e,
604
- height: e,
605
- viewBox: "0 0 24 24",
606
- fill: "none",
607
- stroke: "currentColor",
608
- strokeWidth: "2.2",
609
- strokeLinecap: "round",
610
- strokeLinejoin: "round",
611
- className: `shrink-0 select-none ${t}`.trim(),
612
- ...n,
613
- children: /* @__PURE__ */ (0, d.jsx)("path", { d: "M3 21l1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z" })
614
- });
615
- }
616
- //#endregion
617
- //#region src/components/icons/PlusCommentIcon.tsx
618
- function I({ size: e = 16, className: t = "", ...n }) {
619
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
620
- xmlns: "http://w3.org",
621
- width: e,
622
- height: e,
623
- viewBox: "0 0 24 24",
624
- fill: "none",
625
- stroke: "currentColor",
626
- strokeWidth: "2.2",
627
- strokeLinecap: "round",
628
- strokeLinejoin: "round",
629
- className: `shrink-0 select-none ${t}`.trim(),
630
- ...n,
631
- children: [
632
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M3 21l1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z" }),
633
- /* @__PURE__ */ (0, d.jsx)("line", {
634
- x1: "12",
635
- y1: "8",
636
- x2: "12",
637
- y2: "14"
638
- }),
639
- /* @__PURE__ */ (0, d.jsx)("line", {
640
- x1: "9",
641
- y1: "11",
642
- x2: "15",
643
- y2: "11"
644
- })
645
- ]
646
- });
647
- }
648
- //#endregion
649
- //#region src/components/icons/OpenFolderIcon.tsx
650
- function L({ size: e = 16, className: t = "", ...n }) {
651
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
652
- xmlns: "http://w3.org",
653
- width: e,
654
- height: e,
655
- viewBox: "0 0 24 24",
656
- fill: "none",
657
- stroke: "currentColor",
658
- strokeWidth: "2.5",
659
- strokeLinecap: "round",
660
- strokeLinejoin: "round",
661
- className: `shrink-0 select-none ${t}`.trim(),
662
- ...n,
663
- children: [/* @__PURE__ */ (0, d.jsx)("path", { d: "M4 20h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6.17a2 2 0 0 1-1.42-.59l-1.64-1.64A2 2 0 0 0 5.34 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2z" }), /* @__PURE__ */ (0, d.jsx)("path", {
664
- d: "M2 11h15.26a2 2 0 0 1 1.9 1.37l2.48 7.44A1 1 0 0 1 20.7 21H5.34a2 2 0 0 1-1.9-1.37L2 11z",
665
- fill: "currentColor",
666
- fillOpacity: "0.05"
667
- })]
668
- });
669
- }
670
- //#endregion
671
- //#region src/components/icons/MoreIcon.tsx
672
- function R({ size: e = 16, className: t = "", ...n }) {
673
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
674
- xmlns: "http://w3.org",
675
- width: e,
676
- height: e,
677
- viewBox: "0 0 24 24",
678
- fill: "none",
679
- stroke: "currentColor",
680
- strokeWidth: "2.5",
681
- strokeLinecap: "round",
682
- strokeLinejoin: "round",
683
- className: `shrink-0 select-none ${t}`.trim(),
684
- ...n,
685
- children: [
686
- /* @__PURE__ */ (0, d.jsx)("circle", {
687
- cx: "12",
688
- cy: "12",
689
- r: "1"
690
- }),
691
- /* @__PURE__ */ (0, d.jsx)("circle", {
692
- cx: "19",
693
- cy: "12",
694
- r: "1"
695
- }),
696
- /* @__PURE__ */ (0, d.jsx)("circle", {
697
- cx: "5",
698
- cy: "12",
699
- r: "1"
700
- })
701
- ]
702
- });
703
- }
704
- //#endregion
705
- //#region src/components/icons/TruckIcon.tsx
706
- function z({ size: e = 16, className: t = "", ...n }) {
707
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
708
- xmlns: "http://w3.org",
709
- width: e,
710
- height: e,
711
- viewBox: "0 0 24 24",
712
- fill: "none",
713
- stroke: "currentColor",
714
- strokeWidth: "2.2",
715
- strokeLinecap: "round",
716
- strokeLinejoin: "round",
717
- className: `shrink-0 select-none ${t}`.trim(),
718
- ...n,
719
- children: [
720
- /* @__PURE__ */ (0, d.jsx)("rect", {
721
- x: "1",
722
- y: "3",
723
- width: "15",
724
- height: "13"
725
- }),
726
- /* @__PURE__ */ (0, d.jsx)("polygon", { points: "16 8 20 8 23 11 23 16 16 16 16 8" }),
727
- /* @__PURE__ */ (0, d.jsx)("circle", {
728
- cx: "5.5",
729
- cy: "18.5",
730
- r: "2.5"
731
- }),
732
- /* @__PURE__ */ (0, d.jsx)("circle", {
733
- cx: "18.5",
734
- cy: "18.5",
735
- r: "2.5"
736
- })
737
- ]
738
- });
739
- }
740
- //#endregion
741
- //#region src/components/icons/PersonIcon.tsx
742
- function B({ size: e = 16, className: t = "", ...n }) {
743
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
744
- xmlns: "http://w3.org",
745
- width: e,
746
- height: e,
747
- viewBox: "0 0 24 24",
748
- fill: "none",
749
- stroke: "currentColor",
750
- strokeWidth: "2.2",
751
- strokeLinecap: "round",
752
- strokeLinejoin: "round",
753
- className: `shrink-0 select-none ${t}`.trim(),
754
- ...n,
755
- children: [/* @__PURE__ */ (0, d.jsx)("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }), /* @__PURE__ */ (0, d.jsx)("circle", {
756
- cx: "12",
757
- cy: "7",
758
- r: "4"
759
- })]
760
- });
761
- }
762
- //#endregion
763
- //#region src/components/icons/PlusPersonIcon.tsx
764
- function V({ size: e = 16, className: t = "", ...n }) {
765
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
766
- xmlns: "http://w3.org",
767
- width: e,
768
- height: e,
769
- viewBox: "0 0 24 24",
770
- fill: "none",
771
- stroke: "currentColor",
772
- strokeWidth: "2.2",
773
- strokeLinecap: "round",
774
- strokeLinejoin: "round",
775
- className: `shrink-0 select-none ${t}`.trim(),
776
- ...n,
777
- children: [
778
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
779
- /* @__PURE__ */ (0, d.jsx)("circle", {
780
- cx: "8.5",
781
- cy: "7",
782
- r: "4"
783
- }),
784
- /* @__PURE__ */ (0, d.jsx)("line", {
785
- x1: "20",
786
- y1: "8",
787
- x2: "20",
788
- y2: "14"
789
- }),
790
- /* @__PURE__ */ (0, d.jsx)("line", {
791
- x1: "17",
792
- y1: "11",
793
- x2: "23",
794
- y2: "11"
795
- })
796
- ]
797
- });
798
- }
799
- //#endregion
800
- //#region src/components/icons/GroupIcon.tsx
801
- function H({ size: e = 16, className: t = "", ...n }) {
802
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
803
- xmlns: "http://w3.org",
804
- width: e,
805
- height: e,
806
- viewBox: "0 0 24 24",
807
- fill: "none",
808
- stroke: "currentColor",
809
- strokeWidth: "2.2",
810
- strokeLinecap: "round",
811
- strokeLinejoin: "round",
812
- className: `shrink-0 select-none ${t}`.trim(),
813
- ...n,
814
- children: [
815
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
816
- /* @__PURE__ */ (0, d.jsx)("circle", {
817
- cx: "9",
818
- cy: "7",
819
- r: "4"
820
- }),
821
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
822
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
823
- ]
824
- });
825
- }
826
- //#endregion
827
- //#region src/components/icons/PlusDocBadgeIcon.tsx
828
- function U({ size: e = 16, className: t = "", circleBg: n = "var(--color-vsc-hover)", circleStroke: r = "var(--color-vsc-border)", plusStroke: i = "var(--color-vsc-muted)", ...a }) {
829
- return /* @__PURE__ */ (0, d.jsxs)("svg", {
830
- xmlns: "http://w3.org",
831
- width: e,
832
- height: e,
833
- viewBox: "0 0 24 24",
834
- fill: "none",
835
- stroke: "currentColor",
836
- strokeWidth: "2.2",
837
- strokeLinecap: "round",
838
- strokeLinejoin: "round",
839
- className: `shrink-0 select-none group ${t}`.trim(),
840
- ...a,
841
- children: [
842
- /* @__PURE__ */ (0, d.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
843
- /* @__PURE__ */ (0, d.jsx)("polyline", { points: "14 2 14 8 20 8" }),
844
- /* @__PURE__ */ (0, d.jsx)("circle", {
845
- cx: "18",
846
- cy: "18",
847
- r: "6",
848
- fill: n,
849
- stroke: r,
850
- strokeWidth: "1.5",
851
- className: "transition-colors duration-150 group-hover:stroke-vsc-accent/40"
852
- }),
853
- /* @__PURE__ */ (0, d.jsx)("line", {
854
- x1: "18",
855
- y1: "15",
856
- x2: "18",
857
- y2: "21",
858
- stroke: i,
859
- strokeWidth: "1.8",
860
- className: "transition-colors duration-150 group-hover:stroke-vsc-accent"
861
- }),
862
- /* @__PURE__ */ (0, d.jsx)("line", {
863
- x1: "15",
864
- y1: "18",
865
- x2: "21",
866
- y2: "18",
867
- stroke: i,
868
- strokeWidth: "1.8",
869
- className: "transition-colors duration-150 group-hover:stroke-vsc-accent"
870
- })
871
- ]
872
- });
873
- }
874
- //#endregion
875
- //#region src/components/search/SearchInput.tsx
876
- function W({ variant: e = "simple", value: t, onChange: n, onClear: r, placeholder: i = "Search manifests or tracking codes...", resultsCount: a = 0, menuResults: o = [], onResultClick: s, onViewMoreClick: f, className: p = "", showFloatPeek: h = !1, resultIndicatorPanel: g }) {
877
- let [_, y] = u(!1), [b, x] = u(!1), C = l(null), w = l(null);
878
- c(() => {
879
- let n = (n) => {
880
- C.current && !C.current.contains(n.target) && (x(!1), e === "float" && t === "" && y(!1));
881
- };
882
- return window.addEventListener("mousedown", n), () => window.removeEventListener("mousedown", n);
883
- }, [e, t]);
884
- let T = (e) => {
885
- e.stopPropagation(), n(""), r && r(), w.current && w.current.focus();
886
- }, E = () => {
887
- y(!0), setTimeout(() => w.current?.focus(), 50);
888
- }, D = "relative flex flex-col font-sans text-xs select-none";
889
- if (e === "simple") {
890
- let e = t.length > 0;
891
- return /* @__PURE__ */ (0, d.jsxs)("div", {
892
- className: `${D} ${p}`.trim(),
893
- children: [/* @__PURE__ */ (0, d.jsxs)("div", {
894
- className: "relative flex items-center bg-vsc-bg-input border border-vsc-border rounded-sm h-8 group hover:border-vsc-accent transition-colors z-20",
895
- children: [
896
- /* @__PURE__ */ (0, d.jsx)(S, {
897
- size: 14,
898
- className: "absolute left-2.5 text-vsc-muted group-hover:text-vsc-text"
899
- }),
900
- /* @__PURE__ */ (0, d.jsx)("input", {
901
- ref: w,
902
- type: "text",
903
- value: t,
904
- onChange: (e) => n(e.target.value),
905
- placeholder: i,
906
- className: "w-full h-full pl-8 pr-10 bg-transparent text-vsc-text border-none outline-none focus:outline-none placeholder-vsc-muted"
907
- }),
908
- t && /* @__PURE__ */ (0, d.jsx)("div", {
909
- className: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center",
910
- children: /* @__PURE__ */ (0, d.jsx)(m, {
911
- icon: v,
912
- color: "ghost",
913
- iconOnly: !0,
914
- onClick: T,
915
- size: "xs"
916
- })
917
- })
918
- ]
919
- }), /* @__PURE__ */ (0, d.jsx)("div", {
920
- className: `absolute left-0 right-0 top-8 z-50 overflow-hidden transition-all duration-200 cubic-bezier(0.34, 1.56, 0.64, 1) ${e ? "" : "pointer-events-none"}`,
921
- style: {
922
- height: e ? "auto" : "0px",
923
- opacity: +!!e,
924
- transform: e ? "translateY(0px)" : "translateY(-4px)"
925
- },
926
- children: /* @__PURE__ */ (0, d.jsx)("div", {
927
- className: "bg-vsc-sidebar shadow-sm p-1.5 pt-1 ",
928
- children: a === 0 ? /* @__PURE__ */ (0, d.jsx)("div", {
929
- className: "pl-1 text-start text-[11px] text-vsc-muted italic",
930
- children: "No record match your search query constraints."
931
- }) : g || /* @__PURE__ */ (0, d.jsxs)("p", {
932
- className: "text-[10px] font-mono text-vsc-muted pl-1 truncate",
933
- children: [
934
- "Showing ",
935
- /* @__PURE__ */ (0, d.jsx)("span", {
936
- className: "text-vsc-accent font-bold",
937
- children: a
938
- }),
939
- " matching database metrics records"
940
- ]
941
- })
942
- })
943
- })]
944
- });
945
- }
946
- if (e === "float") {
947
- let e = h && a > 0 && t.length > 0;
948
- return /* @__PURE__ */ (0, d.jsxs)("div", {
949
- ref: C,
950
- className: `${D} ${p}`.trim(),
951
- children: [/* @__PURE__ */ (0, d.jsx)("div", {
952
- className: `flex items-center bg-vsc-bg-input border rounded-sm h-8 transition-all duration-300 ease-in-out overflow-hidden ${_ || t ? "w-64 border-vsc-accent px-2" : "w-8 border-transparent bg-transparent justify-center"}`,
953
- children: _ || t ? /* @__PURE__ */ (0, d.jsxs)("div", {
954
- className: "relative flex items-center w-full h-full",
955
- children: [
956
- /* @__PURE__ */ (0, d.jsx)(S, {
957
- size: 14,
958
- className: "text-vsc-text shrink-0"
959
- }),
960
- /* @__PURE__ */ (0, d.jsx)("input", {
961
- ref: w,
962
- type: "text",
963
- value: t,
964
- onChange: (e) => n(e.target.value),
965
- placeholder: i,
966
- className: "w-full h-full pl-2 pr-6 bg-transparent text-vsc-text border-none outline-none focus:outline-none placeholder-vsc-muted"
967
- }),
968
- t && /* @__PURE__ */ (0, d.jsx)("div", {
969
- className: "absolute right-0 top-1/2 -translate-y-1/2 flex items-center",
970
- children: /* @__PURE__ */ (0, d.jsx)(m, {
971
- iconOnly: !0,
972
- color: "ghost",
973
- icon: v,
974
- onClick: T,
975
- size: "xs"
976
- })
977
- })
978
- ]
979
- }) : /* @__PURE__ */ (0, d.jsx)(m, {
980
- iconOnly: !0,
981
- size: "sm",
982
- icon: S,
983
- onClick: E,
984
- color: "ghost",
985
- className: "text-vsc-muted hover:text-vsc-text transition-colors",
986
- title: "Open Expandable Search"
987
- })
988
- }), /* @__PURE__ */ (0, d.jsx)("div", {
989
- className: "overflow-hidden transition-all duration-200 ease-out w-64 absolute top-8",
990
- style: {
991
- height: e ? "20px" : "0px",
992
- opacity: +!!e
993
- },
994
- children: /* @__PURE__ */ (0, d.jsxs)("p", {
995
- className: "text-[9px] font-mono text-vsc-accent pt-1 pl-1 truncate bg-vsc-sidebar border border-t-0 border-vsc-border p-1 rounded-b shadow-sm",
996
- children: [
997
- "Quick Peek: Found ",
998
- a,
999
- " rows"
1000
- ]
1001
- })
1002
- })]
1003
- });
1004
- }
1005
- return /* @__PURE__ */ (0, d.jsxs)("div", {
1006
- ref: C,
1007
- className: `${D} ${p}`.trim(),
1008
- children: [/* @__PURE__ */ (0, d.jsxs)("div", {
1009
- className: "relative flex items-center bg-vsc-bg-input border border-vsc-border rounded-sm h-8 focus-within:border-vsc-accent",
1010
- children: [
1011
- /* @__PURE__ */ (0, d.jsx)(S, {
1012
- size: 14,
1013
- className: "absolute left-2.5 text-vsc-muted"
1014
- }),
1015
- /* @__PURE__ */ (0, d.jsx)("input", {
1016
- ref: w,
1017
- type: "text",
1018
- value: t,
1019
- onChange: (e) => {
1020
- n(e.target.value), x(!0);
1021
- },
1022
- onFocus: () => x(!0),
1023
- placeholder: i,
1024
- className: "w-full h-full pl-8 pr-10 bg-transparent text-vsc-text border-none outline-none focus:outline-none placeholder-vsc-muted"
1025
- }),
1026
- t && /* @__PURE__ */ (0, d.jsx)("div", {
1027
- className: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center",
1028
- children: /* @__PURE__ */ (0, d.jsx)(m, {
1029
- iconOnly: !0,
1030
- icon: v,
1031
- color: "ghost",
1032
- onClick: T,
1033
- size: "xs"
1034
- })
1035
- })
1036
- ]
1037
- }), b && t && /* @__PURE__ */ (0, d.jsxs)("div", {
1038
- className: "absolute top-9 left-0 w-full bg-vsc-sidebar border border-vsc-border rounded shadow-xl z-50 p-1 flex flex-col max-h-64 animate-in fade-in slide-in-from-top-1 duration-150",
1039
- children: [/* @__PURE__ */ (0, d.jsx)("div", {
1040
- className: "overflow-y-auto flex-1",
1041
- children: o.length === 0 ? /* @__PURE__ */ (0, d.jsx)("div", {
1042
- className: "p-4 text-center text-[11px] text-vsc-muted italic",
1043
- children: "No indexed record entities match your text query constraints."
1044
- }) : o.map((e) => /* @__PURE__ */ (0, d.jsxs)("div", {
1045
- onClick: () => {
1046
- s && s(e), x(!1);
1047
- },
1048
- className: "w-full p-2 hover:bg-vsc-hover text-left rounded-sm cursor-pointer flex flex-col space-y-0.5 transition-colors",
1049
- children: [/* @__PURE__ */ (0, d.jsxs)("div", {
1050
- className: "font-semibold text-vsc-text flex justify-between items-center",
1051
- children: [/* @__PURE__ */ (0, d.jsx)("span", {
1052
- className: "truncate",
1053
- children: e.title
1054
- }), e.category && /* @__PURE__ */ (0, d.jsx)("span", {
1055
- className: "text-[9px] font-mono font-bold bg-vsc-accent/10 border border-vsc-accent/20 text-vsc-accent px-1 rounded-sm uppercase tracking-wide",
1056
- children: e.category
1057
- })]
1058
- }), e.subtitle && /* @__PURE__ */ (0, d.jsx)("div", {
1059
- className: "text-[10px] text-vsc-muted truncate",
1060
- children: e.subtitle
1061
- })]
1062
- }, e.id))
1063
- }), o.length > 0 && f && /* @__PURE__ */ (0, d.jsx)("button", {
1064
- onClick: () => {
1065
- f(), x(!1);
1066
- },
1067
- className: "w-full border-t border-vsc-border bg-vsc-bg hover:bg-vsc-hover/60 p-2 text-center text-[10px] font-bold text-vsc-accent tracking-wide uppercase transition-colors rounded-b-sm border-none cursor-pointer",
1068
- children: "View All Matching Search Metrics Records →"
1069
- })]
1070
- })]
1071
- });
1072
- }
1073
- //#endregion
1074
- export { E as Add, A as BlankDoc, m as Button, h as ButtonGroup, M as Chat, T as ChevronDown, v as Close, F as Comment, P as DeleteChat, b as Document, O as Expand, x as Folder, H as Group, k as Minimize, D as Minus, R as More, L as OpenFolder, B as Person, N as PlusChat, I as PlusComment, j as PlusDoc, U as PlusDocBadge, V as PlusPerson, C as Refresh, t as ResizablePanel, S as Search, W as SearchInput, _ as SplitActionButton, a as TabButton, r as TabPanel, i as TabPanelList, y as Terminal, w as Trash, z as Truck, n as useTab };
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--voxel-font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--voxel-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--voxel-default-font-family:var(--voxel-font-sans);--voxel-default-mono-font-family:var(--voxel-font-mono)}}@layer base{@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--voxel-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--voxel-default-font-feature-settings,normal);font-variation-settings:var(--voxel-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--voxel-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--voxel-default-mono-font-feature-settings,normal);font-variation-settings:var(--voxel-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.dark{--color-vsc-bg:#1e1e1e;--color-vsc-sidebar:#252526;--color-vsc-border:#3c3c3c;--color-vsc-accent:#007acc;--color-vsc-accent-hover:#0062a3;--color-vsc-hover:#2a2d2e;--color-vsc-text:#ccc;--color-vsc-muted:#8b949e;--color-vsc-bg-input:#1f1f1f}}@layer components,utilities;/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ import { t as e } from "./chunks/resizable-ImB8dfG_.js";
3
+ import { i as t, n, r, t as i } from "./chunks/tabs-MaVN00hJ.js";
4
+ import { t as a } from "./chunks/Button-BgQwvn3C.js";
5
+ import { n as o, t as s } from "./chunks/button-dHcpTNIG.js";
6
+ import { C as c, E as l, S as u, T as d, _ as f, a as p, b as m, c as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./chunks/icons-BpfDVwCQ.js";
7
+ import { t as P } from "./chunks/search-BnD-97mv.js";
8
+ export { A as Add, S as BlankDoc, a as Button, o as ButtonGroup, _ as Chat, N as ChevronDown, l as Close, x as Comment, k as DeleteChat, j as Document, v as Expand, c as Folder, C as Group, y as Minimize, f as Minus, w as More, D as OpenFolder, b as Person, g as PlusChat, h as PlusComment, T as PlusDoc, O as PlusDocBadge, E as PlusPerson, M as Refresh, e as ResizablePanel, u as Search, P as SearchInput, s as SplitActionButton, i as TabButton, n as TabPanel, r as TabPanelList, d as Terminal, m as Trash, p as Truck, t as useTab };