react-flexi-datatable 1.0.3 → 1.0.6
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/LICENSE +21 -0
- package/README.md +373 -143
- package/dist/index.cjs +3 -4
- package/dist/index.js +685 -878
- package/package.json +56 -56
package/dist/index.js
CHANGED
|
@@ -1,882 +1,689 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useRef as ue, useEffect as D, useMemo as be } from "react";
|
|
3
|
+
import { Search as Tt, X as Pe, SlidersHorizontal as Mt, Columns3 as Rt, RotateCcw as Lt, GripVertical as pt, Edit3 as Fe, Download as Bt, Trash2 as ut, Check as Ue, ChevronUp as At, ChevronDown as Pt, ChevronsUpDown as Ft, EyeOff as Ut, Eye as Wt, Pencil as Ht, ChevronsLeft as _t, ChevronLeft as qt, ChevronRight as Jt, ChevronsRight as Xt } from "lucide-react";
|
|
4
|
+
const bt = "border border-slate-200 rounded-lg bg-white", Kt = { Active: "bg-emerald-50 text-emerald-700", Inactive: "bg-slate-100 text-slate-600", Pending: "bg-amber-50 text-amber-700" }, me = {
|
|
5
|
+
default: {
|
|
6
|
+
header: "bg-slate-50 text-slate-600",
|
|
7
|
+
footer: "bg-white text-slate-500",
|
|
8
|
+
toolbar: "bg-white text-slate-900"
|
|
9
|
+
},
|
|
10
|
+
dark: {
|
|
11
|
+
header: "bg-slate-900 text-slate-100",
|
|
12
|
+
footer: "bg-slate-900 text-slate-300",
|
|
13
|
+
toolbar: "bg-slate-900 text-slate-100"
|
|
14
|
+
},
|
|
15
|
+
indigo: {
|
|
16
|
+
header: "bg-indigo-900 text-indigo-100",
|
|
17
|
+
footer: "bg-indigo-50 text-indigo-800",
|
|
18
|
+
toolbar: "bg-indigo-50/50 text-indigo-900"
|
|
19
|
+
},
|
|
20
|
+
emerald: {
|
|
21
|
+
header: "bg-emerald-900 text-emerald-100",
|
|
22
|
+
footer: "bg-emerald-50 text-emerald-800",
|
|
23
|
+
toolbar: "bg-emerald-50/50 text-emerald-900"
|
|
24
|
+
},
|
|
25
|
+
slate: {
|
|
26
|
+
header: "bg-slate-800 text-slate-100",
|
|
27
|
+
footer: "bg-slate-100 text-slate-700",
|
|
28
|
+
toolbar: "bg-slate-100 text-slate-800"
|
|
29
|
+
},
|
|
30
|
+
blue: {
|
|
31
|
+
header: "bg-blue-900 text-blue-100",
|
|
32
|
+
footer: "bg-blue-50 text-blue-800",
|
|
33
|
+
toolbar: "bg-blue-50/50 text-blue-900"
|
|
34
|
+
}
|
|
9
35
|
};
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}, t);
|
|
652
|
-
})
|
|
653
|
-
}) : /* @__PURE__ */ d("input", {
|
|
654
|
-
type: "text",
|
|
655
|
-
value: V[e.id]?.[i.key] ?? e[i.key] ?? "",
|
|
656
|
-
onChange: (t) => H((n) => ({
|
|
657
|
-
...n,
|
|
658
|
-
[e.id]: {
|
|
659
|
-
...n[e.id] || e,
|
|
660
|
-
[i.key]: t.target.value
|
|
661
|
-
}
|
|
662
|
-
})),
|
|
663
|
-
onKeyDown: (e) => {
|
|
664
|
-
e.key === "Enter" && tt(), e.key === "Escape" && et();
|
|
665
|
-
},
|
|
666
|
-
className: "w-full rounded-md border border-indigo-400 bg-white px-2 py-1 text-sm outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
|
|
667
|
-
}) : i.render ? i.render(l, e, t) : i.key === "status" ? /* @__PURE__ */ d("span", {
|
|
668
|
-
className: `rounded-full px-2.5 py-1 text-xs font-medium ${me[l] || "bg-slate-100 text-slate-600"}`,
|
|
669
|
-
children: l
|
|
670
|
-
}) : te ? /* @__PURE__ */ f("span", {
|
|
671
|
-
title: u,
|
|
672
|
-
children: [u.slice(0, 25), "..."]
|
|
673
|
-
}) : u
|
|
674
|
-
}, i.key);
|
|
675
|
-
}),
|
|
676
|
-
(p.actions?.view || p.actions?.edit || p.actions?.delete) && /* @__PURE__ */ d("td", {
|
|
677
|
-
"data-cell": `${t}-${q.length + +!!p.selectable}`,
|
|
678
|
-
className: "sticky right-0 bg-white px-4 py-3 w-32",
|
|
679
|
-
children: n ? /* @__PURE__ */ f("div", {
|
|
680
|
-
className: "flex justify-end gap-1",
|
|
681
|
-
children: [/* @__PURE__ */ d("button", {
|
|
682
|
-
title: "Save",
|
|
683
|
-
onClick: Qe,
|
|
684
|
-
className: "rounded-md bg-emerald-100 p-2 text-emerald-700 hover:bg-emerald-200",
|
|
685
|
-
children: /* @__PURE__ */ d(i, { size: 16 })
|
|
686
|
-
}), /* @__PURE__ */ d("button", {
|
|
687
|
-
title: "Cancel",
|
|
688
|
-
onClick: Ze,
|
|
689
|
-
className: "rounded-md bg-rose-100 p-2 text-rose-700 hover:bg-rose-200",
|
|
690
|
-
children: /* @__PURE__ */ d(fe, { size: 16 })
|
|
691
|
-
})]
|
|
692
|
-
}) : /* @__PURE__ */ f("div", {
|
|
693
|
-
className: "flex justify-end gap-1",
|
|
694
|
-
children: [
|
|
695
|
-
p.actions.view && /* @__PURE__ */ d("button", {
|
|
696
|
-
title: "View",
|
|
697
|
-
onClick: () => h?.(e),
|
|
698
|
-
onFocus: () => {
|
|
699
|
-
I({
|
|
700
|
-
row: t,
|
|
701
|
-
col: q.length + +!!p.selectable
|
|
702
|
-
}), W(0);
|
|
703
|
-
},
|
|
704
|
-
className: "rounded-md p-2 hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400",
|
|
705
|
-
children: /* @__PURE__ */ d(ie, { size: 16 })
|
|
706
|
-
}),
|
|
707
|
-
p.actions.edit && /* @__PURE__ */ d("button", {
|
|
708
|
-
title: "Edit",
|
|
709
|
-
onClick: () => Xe(e),
|
|
710
|
-
onFocus: () => {
|
|
711
|
-
I({
|
|
712
|
-
row: t,
|
|
713
|
-
col: q.length + +!!p.selectable
|
|
714
|
-
}), W(1);
|
|
715
|
-
},
|
|
716
|
-
className: "rounded-md p-2 hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400",
|
|
717
|
-
children: /* @__PURE__ */ d(se, { size: 16 })
|
|
718
|
-
}),
|
|
719
|
-
p.actions.delete && /* @__PURE__ */ d("button", {
|
|
720
|
-
title: "Delete",
|
|
721
|
-
onClick: () => P(e),
|
|
722
|
-
onFocus: () => {
|
|
723
|
-
I({
|
|
724
|
-
row: t,
|
|
725
|
-
col: q.length + +!!p.selectable
|
|
726
|
-
}), W(2);
|
|
727
|
-
},
|
|
728
|
-
className: "rounded-md p-2 text-red-600 hover:bg-red-50 focus:outline-none focus:ring-2 focus:ring-red-400",
|
|
729
|
-
children: /* @__PURE__ */ d(de, { size: 16 })
|
|
730
|
-
})
|
|
731
|
-
]
|
|
732
|
-
})
|
|
733
|
-
})
|
|
734
|
-
]
|
|
735
|
-
}, e.id);
|
|
736
|
-
}), !$.length && /* @__PURE__ */ d("tr", { children: /* @__PURE__ */ f("td", {
|
|
737
|
-
colSpan: q.length + +!!p.selectable + 1,
|
|
738
|
-
className: "px-6 py-16 text-center",
|
|
739
|
-
children: [/* @__PURE__ */ d("div", {
|
|
740
|
-
className: "font-medium",
|
|
741
|
-
children: "No records found"
|
|
742
|
-
}), /* @__PURE__ */ d("div", {
|
|
743
|
-
className: "mt-1 text-sm text-slate-500",
|
|
744
|
-
children: "Try changing your search or filters."
|
|
745
|
-
})]
|
|
746
|
-
}) })] })]
|
|
747
|
-
})
|
|
748
|
-
}), /* @__PURE__ */ f("div", {
|
|
749
|
-
className: "flex flex-col gap-3 border-t bg-white px-4 py-3 sm:flex-row sm:items-center sm:justify-between",
|
|
750
|
-
children: [/* @__PURE__ */ f("div", {
|
|
751
|
-
className: "text-sm text-slate-500",
|
|
752
|
-
children: [
|
|
753
|
-
"Showing ",
|
|
754
|
-
X.length ? (Q - 1) * C + 1 : 0,
|
|
755
|
-
"–",
|
|
756
|
-
Math.min(Q * C, X.length),
|
|
757
|
-
" of ",
|
|
758
|
-
X.length
|
|
759
|
-
]
|
|
760
|
-
}), /* @__PURE__ */ f("div", {
|
|
761
|
-
className: "flex items-center gap-2",
|
|
762
|
-
children: [
|
|
763
|
-
/* @__PURE__ */ d("select", {
|
|
764
|
-
value: C,
|
|
765
|
-
onChange: (e) => Se(Number(e.target.value)),
|
|
766
|
-
className: "rounded-lg border border-slate-200 px-2 py-1.5 text-sm",
|
|
767
|
-
children: p.pageSizeOptions.map((e) => /* @__PURE__ */ f("option", {
|
|
768
|
-
value: e,
|
|
769
|
-
children: [e, "/page"]
|
|
770
|
-
}, e))
|
|
771
|
-
}),
|
|
772
|
-
/* @__PURE__ */ d("button", {
|
|
773
|
-
disabled: Q === 1,
|
|
774
|
-
onClick: () => S(1),
|
|
775
|
-
className: "rounded-md border p-1.5 disabled:opacity-40",
|
|
776
|
-
children: /* @__PURE__ */ d(ee, { size: 16 })
|
|
777
|
-
}),
|
|
778
|
-
/* @__PURE__ */ d("button", {
|
|
779
|
-
disabled: Q === 1,
|
|
780
|
-
onClick: () => S((e) => e - 1),
|
|
781
|
-
className: "rounded-md border p-1.5 disabled:opacity-40",
|
|
782
|
-
children: /* @__PURE__ */ d(o, { size: 16 })
|
|
783
|
-
}),
|
|
784
|
-
/* @__PURE__ */ f("span", {
|
|
785
|
-
className: "px-2 text-sm",
|
|
786
|
-
children: [
|
|
787
|
-
"Page ",
|
|
788
|
-
Q,
|
|
789
|
-
" of ",
|
|
790
|
-
Z
|
|
791
|
-
]
|
|
792
|
-
}),
|
|
793
|
-
/* @__PURE__ */ d("button", {
|
|
794
|
-
disabled: Q === Z,
|
|
795
|
-
onClick: () => S((e) => e + 1),
|
|
796
|
-
className: "rounded-md border p-1.5 disabled:opacity-40",
|
|
797
|
-
children: /* @__PURE__ */ d(s, { size: 16 })
|
|
798
|
-
}),
|
|
799
|
-
/* @__PURE__ */ d("button", {
|
|
800
|
-
disabled: Q === Z,
|
|
801
|
-
onClick: () => S(Z),
|
|
802
|
-
className: "rounded-md border p-1.5 disabled:opacity-40",
|
|
803
|
-
children: /* @__PURE__ */ d(l, { size: 16 })
|
|
804
|
-
})
|
|
805
|
-
]
|
|
806
|
-
})]
|
|
807
|
-
})]
|
|
808
|
-
}),
|
|
809
|
-
j.length > 0 && !z && /* @__PURE__ */ f("div", {
|
|
810
|
-
className: "fixed bottom-5 left-1/2 z-40 flex -translate-x-1/2 items-center gap-3 rounded-xl bg-slate-900 px-4 py-2.5 text-sm text-white shadow-xl",
|
|
811
|
-
children: [
|
|
812
|
-
/* @__PURE__ */ f("span", {
|
|
813
|
-
className: "font-medium pl-1",
|
|
814
|
-
children: [j.length, " selected"]
|
|
815
|
-
}),
|
|
816
|
-
p.bulkEditable !== !1 && J.length > 0 && /* @__PURE__ */ f("button", {
|
|
817
|
-
onClick: $e,
|
|
818
|
-
className: "flex items-center gap-1.5 rounded-lg bg-indigo-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-indigo-500 transition-colors shadow-sm",
|
|
819
|
-
children: [/* @__PURE__ */ d(re, { size: 14 }), "Bulk Edit"]
|
|
820
|
-
}),
|
|
821
|
-
/* @__PURE__ */ d("button", {
|
|
822
|
-
onClick: () => M([]),
|
|
823
|
-
className: "text-xs text-slate-400 hover:text-white underline pr-1",
|
|
824
|
-
children: "Clear"
|
|
825
|
-
})
|
|
826
|
-
]
|
|
827
|
-
}),
|
|
828
|
-
N && /* @__PURE__ */ d("div", {
|
|
829
|
-
onClick: (e) => {
|
|
830
|
-
e.target === e.currentTarget && P(null);
|
|
831
|
-
},
|
|
832
|
-
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
833
|
-
children: /* @__PURE__ */ f("div", {
|
|
834
|
-
className: "w-full max-w-sm rounded-2xl bg-white p-6 shadow-2xl",
|
|
835
|
-
children: [
|
|
836
|
-
/* @__PURE__ */ d("h3", {
|
|
837
|
-
className: "text-lg font-semibold",
|
|
838
|
-
children: "Delete record?"
|
|
839
|
-
}),
|
|
840
|
-
/* @__PURE__ */ f("p", {
|
|
841
|
-
className: "mt-2 text-sm text-slate-500",
|
|
842
|
-
children: [
|
|
843
|
-
"Are you sure you want to delete ",
|
|
844
|
-
/* @__PURE__ */ d("b", { children: N.name }),
|
|
845
|
-
"? This action cannot be undone."
|
|
846
|
-
]
|
|
847
|
-
}),
|
|
848
|
-
/* @__PURE__ */ f("div", {
|
|
849
|
-
className: "mt-6 flex justify-end gap-2",
|
|
850
|
-
children: [/* @__PURE__ */ d("button", {
|
|
851
|
-
onClick: () => P(null),
|
|
852
|
-
className: "rounded-lg border px-4 py-2 text-sm",
|
|
853
|
-
children: "Cancel"
|
|
854
|
-
}), /* @__PURE__ */ d("button", {
|
|
855
|
-
onClick: () => {
|
|
856
|
-
_((e) => e.filter((e) => e.id !== N.id)), M((e) => e.filter((e) => e !== N.id)), P(null), ge?.(N);
|
|
857
|
-
},
|
|
858
|
-
className: "rounded-lg bg-red-600 px-4 py-2 text-sm font-medium text-white",
|
|
859
|
-
children: "Delete"
|
|
860
|
-
})]
|
|
861
|
-
})
|
|
862
|
-
]
|
|
863
|
-
})
|
|
864
|
-
})
|
|
865
|
-
]
|
|
866
|
-
});
|
|
36
|
+
function Zt({ config: o, data: $ = [], onView: O, onEdit: fe, onDelete: ve, onBulkEdit: we }) {
|
|
37
|
+
var st, ct, dt, gt, ht;
|
|
38
|
+
const y = `table_cols_${o.id || o.title || "default"}`, [xe, te] = g($), [L, We] = g(""), [oe, He] = g({}), [k, ye] = g({ key: null, dir: null }), [mt, H] = g(1), [I, ft] = g(o.pageSize || 10), [_, ke] = g(() => {
|
|
39
|
+
try {
|
|
40
|
+
const e = localStorage.getItem(`${y}_visible`);
|
|
41
|
+
if (e) return JSON.parse(e);
|
|
42
|
+
} catch {
|
|
43
|
+
}
|
|
44
|
+
return Object.fromEntries(o.columns.map((e) => [e.key, e.visible !== !1]));
|
|
45
|
+
}), [q, _e] = g(() => {
|
|
46
|
+
try {
|
|
47
|
+
const e = localStorage.getItem(`${y}_order`);
|
|
48
|
+
if (e) return JSON.parse(e);
|
|
49
|
+
} catch {
|
|
50
|
+
}
|
|
51
|
+
return o.columns.map((e) => e.key);
|
|
52
|
+
}), [B, Ne] = g(() => {
|
|
53
|
+
try {
|
|
54
|
+
const e = localStorage.getItem(`${y}_widths`);
|
|
55
|
+
if (e) return JSON.parse(e);
|
|
56
|
+
} catch {
|
|
57
|
+
}
|
|
58
|
+
return Object.fromEntries(o.columns.map((e) => [e.key, e.width || 160]));
|
|
59
|
+
}), [vt, qe] = g(null), [j, re] = g(null), [Ce, J] = g(null), [m, ae] = g([]), [X, ie] = g(null), [wt, Je] = g(!1), [xt, Xe] = g(!1), [A, z] = g({ row: 0, col: 0 }), [Ke, ze] = g(null), [P, K] = g({}), [le, Se] = g(!1), [Ve, V] = g([]), [ne, G] = g({}), [Y, Q] = g(1), se = ue(null), Ee = ue(null), De = ue(null), Z = ue(null);
|
|
60
|
+
D(() => {
|
|
61
|
+
o.searchable && Z.current && Z.current.focus();
|
|
62
|
+
}, [o.searchable]), D(() => {
|
|
63
|
+
const e = (t) => {
|
|
64
|
+
Ee.current && !Ee.current.contains(t.target) && Xe(!1), De.current && !De.current.contains(t.target) && Je(!1);
|
|
65
|
+
};
|
|
66
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
67
|
+
}, []), D(() => te($), [$]), D(() => H(1), [L, oe, I]), D(() => {
|
|
68
|
+
try {
|
|
69
|
+
localStorage.setItem(`${y}_order`, JSON.stringify(q));
|
|
70
|
+
} catch {
|
|
71
|
+
}
|
|
72
|
+
}, [q, y]), D(() => {
|
|
73
|
+
try {
|
|
74
|
+
localStorage.setItem(`${y}_visible`, JSON.stringify(_));
|
|
75
|
+
} catch {
|
|
76
|
+
}
|
|
77
|
+
}, [_, y]), D(() => {
|
|
78
|
+
try {
|
|
79
|
+
localStorage.setItem(`${y}_widths`, JSON.stringify(B));
|
|
80
|
+
} catch {
|
|
81
|
+
}
|
|
82
|
+
}, [B, y]);
|
|
83
|
+
const yt = () => {
|
|
84
|
+
const e = o.columns.map((l) => l.key), t = Object.fromEntries(o.columns.map((l) => [l.key, l.visible !== !1])), a = Object.fromEntries(o.columns.map((l) => [l.key, l.width || 160]));
|
|
85
|
+
_e(e), ke(t), Ne(a);
|
|
86
|
+
try {
|
|
87
|
+
localStorage.removeItem(`${y}_order`), localStorage.removeItem(`${y}_visible`), localStorage.removeItem(`${y}_widths`);
|
|
88
|
+
} catch {
|
|
89
|
+
}
|
|
90
|
+
}, kt = (e, t) => {
|
|
91
|
+
e.preventDefault(), e.stopPropagation();
|
|
92
|
+
const a = e.clientX, l = B[t] || 160, c = (h) => {
|
|
93
|
+
const d = h.clientX - a, x = Math.max(70, l + d);
|
|
94
|
+
Ne((u) => ({ ...u, [t]: x }));
|
|
95
|
+
}, p = () => {
|
|
96
|
+
document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", p), qe(null);
|
|
97
|
+
};
|
|
98
|
+
qe(t), document.addEventListener("mousemove", c), document.addEventListener("mouseup", p);
|
|
99
|
+
}, w = be(() => {
|
|
100
|
+
const e = Object.fromEntries(o.columns.map((t) => [t.key, t]));
|
|
101
|
+
return q.map((t) => e[t]).filter((t) => t && _[t.key]);
|
|
102
|
+
}, [o.columns, q, _]), ce = be(
|
|
103
|
+
() => o.columns.filter((e) => e.editable !== !1),
|
|
104
|
+
[o.columns]
|
|
105
|
+
), Nt = (e) => {
|
|
106
|
+
var a;
|
|
107
|
+
if (e.options) return e.options;
|
|
108
|
+
const t = (a = o.filters) == null ? void 0 : a.find((l) => l.key === e.key);
|
|
109
|
+
return t != null && t.options ? t.options.filter((l) => l.value !== "all").map((l) => l.value) : null;
|
|
110
|
+
}, T = o.columnordering !== !1 && o.columnOrdering !== !1, Ge = T && o.dropcolumn !== !1 && o.dropColumn !== !1, de = o.columnwidth !== !1 && o.columnWidth !== !1 && o.resizable !== !1 && o.columnResizing !== !1, v = o.selectable !== !1 && o.checkbox !== !1 && o.checkboxes !== !1 && o.selection !== !1 && (o.selectable || o.checkbox || o.checkboxes || o.selection || !1), je = o.pagination !== !1, Ct = je && !!(o.topPagination || o.toppagination || o.paginationTop), zt = je && o.bottomPagination !== !1, N = o.theme, $e = typeof N == "string" && me[N], Ye = o.headerTheme || (typeof N == "object" ? N.header : null) || ($e ? me[N].header : "bg-slate-50 text-slate-600"), St = o.footerTheme || (typeof N == "object" ? N.footer : null) || ($e ? me[N].footer : "bg-white text-slate-500"), Et = o.toolbarTheme || (typeof N == "object" ? N.toolbar : null) || ($e ? me[N].toolbar : "bg-white"), F = o.tableWidth ?? o.tablewidth ?? o.width, U = o.tableHeight ?? o.tableheight ?? o.height, Dt = F && F !== "auto" && F !== !0 ? typeof F == "number" ? `${F}px` : F : "100%", Qe = !!(o.tabledatavertivallscroll || o.tableDataVerticalScroll || o.verticalScroll), Ze = U && U !== "auto" && U !== !0 ? typeof U == "number" ? `${U}px` : U : Qe ? "320px" : null, jt = o.tabledatavertivallscroll !== !1 && o.tableDataVerticalScroll !== !1 && o.verticalScroll !== !1 && !!(Qe || Ze), $t = o.tabledatahorizontalscroll !== !1 && o.tableDataHorizontalScroll !== !1 && o.horizontalScroll !== !1, et = (e, t) => {
|
|
111
|
+
T && (re(t), e.dataTransfer.setData("text/plain", t), e.dataTransfer.effectAllowed = "move");
|
|
112
|
+
}, tt = (e, t) => {
|
|
113
|
+
e.preventDefault(), Ge && (e.dataTransfer.dropEffect = "move", Ce !== t && J(t));
|
|
114
|
+
}, ot = (e, t) => {
|
|
115
|
+
e.preventDefault(), e.stopPropagation();
|
|
116
|
+
const a = e.dataTransfer.getData("text/plain") || j;
|
|
117
|
+
a && a !== t && _e((l) => {
|
|
118
|
+
const c = [...l], p = c.indexOf(a), h = c.indexOf(t);
|
|
119
|
+
return p !== -1 && h !== -1 && (c.splice(p, 1), c.splice(h, 0, a)), c;
|
|
120
|
+
}), re(null), J(null);
|
|
121
|
+
}, rt = (e) => {
|
|
122
|
+
e && (ke((t) => Object.values(t).filter(Boolean).length <= 1 ? t : { ...t, [e]: !1 }), re(null), J(null));
|
|
123
|
+
}, M = be(() => {
|
|
124
|
+
let e = [...xe];
|
|
125
|
+
if (L.trim()) {
|
|
126
|
+
const t = L.toLowerCase(), a = o.columns.filter((l) => l.searchable !== !1).map((l) => l.key);
|
|
127
|
+
e = e.filter((l) => a.some((c) => String(l[c] ?? "").toLowerCase().includes(t)));
|
|
128
|
+
}
|
|
129
|
+
return Object.entries(oe).forEach(([t, a]) => {
|
|
130
|
+
a && a !== "all" && (e = e.filter((l) => String(l[t]) === String(a)));
|
|
131
|
+
}), k.key && e.sort((t, a) => {
|
|
132
|
+
const l = String(t[k.key] ?? "").toLowerCase(), c = String(a[k.key] ?? "").toLowerCase(), p = l.localeCompare(c, void 0, { numeric: !0 });
|
|
133
|
+
return k.dir === "asc" ? p : -p;
|
|
134
|
+
}), e;
|
|
135
|
+
}, [xe, L, oe, k, o.columns]), W = Math.max(1, Math.ceil(M.length / I)), S = Math.min(mt, W), f = M.slice((S - 1) * I, S * I), at = be(() => m.length > 0 ? m : f.filter((e) => e && e.id).map((e) => e.id), [m, f]), Oe = (e) => {
|
|
136
|
+
if (k.key !== e) return ye({ key: e, dir: "asc" });
|
|
137
|
+
if (k.dir === "asc") return ye({ key: e, dir: "desc" });
|
|
138
|
+
ye({ key: null, dir: null });
|
|
139
|
+
}, Ie = (e) => ae(e ? f.filter((t) => t && t.id).map((t) => t.id) : []), Te = (e) => ae((t) => t.includes(e) ? t.filter((a) => a !== e) : [...t, e]), it = (e) => {
|
|
140
|
+
ze(e.id), K({ ...e });
|
|
141
|
+
}, Me = () => {
|
|
142
|
+
ze(null), K({});
|
|
143
|
+
}, Re = () => {
|
|
144
|
+
te((e) => e.map((t) => t.id === Ke ? P : t)), fe == null || fe(P), ze(null), K({});
|
|
145
|
+
}, lt = () => {
|
|
146
|
+
const e = {}, t = m.length > 0 ? m : f.map((a) => a.id);
|
|
147
|
+
xe.forEach((a) => {
|
|
148
|
+
t.includes(a.id) && (e[a.id] = { ...a });
|
|
149
|
+
}), G(e), V(ce.map((a) => a.key)), Se(!0);
|
|
150
|
+
}, Le = () => {
|
|
151
|
+
Se(!1), G({}), V([]);
|
|
152
|
+
}, Be = () => {
|
|
153
|
+
const e = m.length > 0 ? m : f.map((t) => t.id);
|
|
154
|
+
te(
|
|
155
|
+
(t) => t.map((a) => e.includes(a.id) && ne[a.id] || a)
|
|
156
|
+
), we == null || we(e, ne), Se(!1), G({}), V([]);
|
|
157
|
+
}, Ot = () => {
|
|
158
|
+
te((e) => e.filter((t) => t.id !== X.id)), ae((e) => e.filter((t) => t !== X.id)), ie(null), ve == null || ve(X);
|
|
159
|
+
}, It = () => {
|
|
160
|
+
const e = w.map((c) => c.label).join(","), t = M.map((c) => w.map((p) => `"${String(c[p.key] ?? "").replaceAll('"', '""')}"`).join(",")).join(`
|
|
161
|
+
`), a = new Blob([e + `
|
|
162
|
+
` + t], { type: "text/csv" }), l = document.createElement("a");
|
|
163
|
+
l.href = URL.createObjectURL(a), l.download = "table-export.csv", l.click(), URL.revokeObjectURL(l.href);
|
|
164
|
+
};
|
|
165
|
+
D(() => {
|
|
166
|
+
const e = (t) => {
|
|
167
|
+
var ge, R, ee, E;
|
|
168
|
+
if (!o.keyboardNavigation || !f.length) return;
|
|
169
|
+
const a = document.activeElement;
|
|
170
|
+
if (a && (["TEXTAREA"].includes(a.tagName) || a.tagName === "INPUT" && a.type !== "checkbox" || a.tagName === "SELECT")) return;
|
|
171
|
+
const c = !!((ge = o.actions) != null && ge.view || (R = o.actions) != null && R.edit || (ee = o.actions) != null && ee.delete), p = w.length + (v ? 1 : 0), h = w.length + (v ? 1 : 0) + (c ? 1 : 0), d = a == null ? void 0 : a.closest("[data-cell]");
|
|
172
|
+
let x = A.row, u = A.col;
|
|
173
|
+
if (d) {
|
|
174
|
+
const s = d.getAttribute("data-cell");
|
|
175
|
+
if (s) {
|
|
176
|
+
const b = s.split("-").map(Number);
|
|
177
|
+
b.length === 2 && !isNaN(b[0]) && !isNaN(b[1]) && (x = b[0], u = b[1]);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (t.key === "ArrowDown") {
|
|
181
|
+
t.preventDefault();
|
|
182
|
+
const s = Math.min(f.length - 1, x + 1);
|
|
183
|
+
z({ row: s, col: u });
|
|
184
|
+
} else if (t.key === "ArrowUp") {
|
|
185
|
+
t.preventDefault();
|
|
186
|
+
const s = Math.max(-1, x - 1);
|
|
187
|
+
z({ row: s, col: u });
|
|
188
|
+
} else if (t.key === "ArrowRight") {
|
|
189
|
+
if (t.preventDefault(), c && u === p) {
|
|
190
|
+
const b = (E = se.current) == null ? void 0 : E.querySelector(`[data-cell="${x}-${u}"]`), he = b ? Array.from(b.querySelectorAll("button")) : [];
|
|
191
|
+
if (Y < he.length - 1) {
|
|
192
|
+
Q((pe) => pe + 1);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const s = Math.min(h - 1, u + 1);
|
|
197
|
+
z({ row: x, col: s });
|
|
198
|
+
} else if (t.key === "ArrowLeft") {
|
|
199
|
+
if (t.preventDefault(), c && u === p && Y > 0) {
|
|
200
|
+
Q((b) => b - 1);
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
const s = Math.max(0, u - 1);
|
|
204
|
+
z({ row: x, col: s });
|
|
205
|
+
} else if (t.key === "Enter" || t.key === " ")
|
|
206
|
+
if (x === -1)
|
|
207
|
+
if (v && u === 0)
|
|
208
|
+
t.preventDefault(), Ie(f.length > 0 && !f.filter((s) => s && s.id).every((s) => m.includes(s.id)));
|
|
209
|
+
else {
|
|
210
|
+
const s = v ? u - 1 : u, b = w[s];
|
|
211
|
+
b && b.sortable && (t.preventDefault(), Oe(b.key));
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
const s = f[x];
|
|
215
|
+
s && s.id && (a && (a.type === "checkbox" || a.tagName === "BUTTON") ? (t.key === "Enter" || t.key === " ") && (t.preventDefault(), a.click()) : v && u === 0 ? (t.preventDefault(), Te(s.id)) : c && u === p ? (t.preventDefault(), it(s)) : t.key === "Enter" && (t.preventDefault(), O == null || O(s)));
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
219
|
+
}, [o.keyboardNavigation, f, w, A, Y, Te, Ie, Oe, O, v, m]), D(() => {
|
|
220
|
+
if (!o.keyboardNavigation || !se.current || document.activeElement === Z.current) return;
|
|
221
|
+
const e = se.current.querySelector(`[data-cell="${A.row}-${A.col}"]`);
|
|
222
|
+
if (e) {
|
|
223
|
+
const t = Array.from(e.querySelectorAll("input, button, select"));
|
|
224
|
+
t.length > 0 ? (t[Math.min(Y, t.length - 1)] || t[0]).focus() : e.focus();
|
|
225
|
+
}
|
|
226
|
+
}, [A, Y, o.keyboardNavigation, f]);
|
|
227
|
+
const nt = (e = "bottom") => !je || e === "top" && !Ct || e === "bottom" && !zt ? null : /* @__PURE__ */ i("div", { className: `flex flex-col gap-3 ${e === "top" ? "border-b" : "border-t"} border-slate-200 px-4 py-3 sm:flex-row sm:items-center sm:justify-between ${St}`, children: [
|
|
228
|
+
/* @__PURE__ */ i("div", { className: "text-sm opacity-85", children: [
|
|
229
|
+
"Showing ",
|
|
230
|
+
M.length ? (S - 1) * I + 1 : 0,
|
|
231
|
+
"–",
|
|
232
|
+
Math.min(S * I, M.length),
|
|
233
|
+
" of ",
|
|
234
|
+
M.length
|
|
235
|
+
] }),
|
|
236
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
237
|
+
o.pageSizeOptions && o.pageSizeOptions.length > 0 && /* @__PURE__ */ r(
|
|
238
|
+
"select",
|
|
239
|
+
{
|
|
240
|
+
value: I,
|
|
241
|
+
onChange: (a) => ft(Number(a.target.value)),
|
|
242
|
+
className: "rounded-lg border border-slate-200/80 bg-white/95 text-slate-800 px-2 py-1.5 text-sm outline-none focus:border-indigo-500",
|
|
243
|
+
children: o.pageSizeOptions.map((a) => /* @__PURE__ */ i("option", { value: a, children: [
|
|
244
|
+
a,
|
|
245
|
+
"/page"
|
|
246
|
+
] }, a))
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
/* @__PURE__ */ r(
|
|
250
|
+
"button",
|
|
251
|
+
{
|
|
252
|
+
disabled: S === 1,
|
|
253
|
+
onClick: () => H(1),
|
|
254
|
+
className: "rounded-md border border-slate-200/80 bg-white/90 p-1.5 text-slate-700 hover:bg-slate-100 disabled:opacity-40 disabled:hover:bg-transparent",
|
|
255
|
+
title: "First page",
|
|
256
|
+
children: /* @__PURE__ */ r(_t, { size: 16 })
|
|
257
|
+
}
|
|
258
|
+
),
|
|
259
|
+
/* @__PURE__ */ r(
|
|
260
|
+
"button",
|
|
261
|
+
{
|
|
262
|
+
disabled: S === 1,
|
|
263
|
+
onClick: () => H((a) => Math.max(1, a - 1)),
|
|
264
|
+
className: "rounded-md border border-slate-200/80 bg-white/90 p-1.5 text-slate-700 hover:bg-slate-100 disabled:opacity-40 disabled:hover:bg-transparent",
|
|
265
|
+
title: "Previous page",
|
|
266
|
+
children: /* @__PURE__ */ r(qt, { size: 16 })
|
|
267
|
+
}
|
|
268
|
+
),
|
|
269
|
+
/* @__PURE__ */ i("span", { className: "px-2 text-sm opacity-90", children: [
|
|
270
|
+
"Page ",
|
|
271
|
+
S,
|
|
272
|
+
" of ",
|
|
273
|
+
W
|
|
274
|
+
] }),
|
|
275
|
+
/* @__PURE__ */ r(
|
|
276
|
+
"button",
|
|
277
|
+
{
|
|
278
|
+
disabled: S === W,
|
|
279
|
+
onClick: () => H((a) => Math.min(W, a + 1)),
|
|
280
|
+
className: "rounded-md border border-slate-200/80 bg-white/90 p-1.5 text-slate-700 hover:bg-slate-100 disabled:opacity-40 disabled:hover:bg-transparent",
|
|
281
|
+
title: "Next page",
|
|
282
|
+
children: /* @__PURE__ */ r(Jt, { size: 16 })
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
/* @__PURE__ */ r(
|
|
286
|
+
"button",
|
|
287
|
+
{
|
|
288
|
+
disabled: S === W,
|
|
289
|
+
onClick: () => H(W),
|
|
290
|
+
className: "rounded-md border border-slate-200/80 bg-white/90 p-1.5 text-slate-700 hover:bg-slate-100 disabled:opacity-40 disabled:hover:bg-transparent",
|
|
291
|
+
title: "Last page",
|
|
292
|
+
children: /* @__PURE__ */ r(Xt, { size: 16 })
|
|
293
|
+
}
|
|
294
|
+
)
|
|
295
|
+
] })
|
|
296
|
+
] }, e);
|
|
297
|
+
return /* @__PURE__ */ i("div", { className: "space-y-3", style: { width: Dt, maxWidth: "100%" }, children: [
|
|
298
|
+
/* @__PURE__ */ r("div", { className: `${bt} p-4 ${Et}`, children: /* @__PURE__ */ i("div", { className: "flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between", children: [
|
|
299
|
+
/* @__PURE__ */ i("div", { children: [
|
|
300
|
+
/* @__PURE__ */ r("h2", { className: "text-lg font-semibold", children: o.title }),
|
|
301
|
+
/* @__PURE__ */ i("p", { className: "text-sm text-slate-500", children: [
|
|
302
|
+
M.length,
|
|
303
|
+
" records"
|
|
304
|
+
] })
|
|
305
|
+
] }),
|
|
306
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap gap-2", children: [
|
|
307
|
+
!!o.searchable && /* @__PURE__ */ i("div", { className: "relative", children: [
|
|
308
|
+
/* @__PURE__ */ r(Tt, { size: 16, className: "absolute left-3 top-1/2 -translate-y-1/2 text-slate-400" }),
|
|
309
|
+
/* @__PURE__ */ r("input", { ref: Z, autoFocus: !0, value: L, onChange: (e) => We(e.target.value), placeholder: "Search...", className: "w-56 rounded-lg border border-slate-200 py-2 pl-9 pr-8 text-sm outline-none focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/20" }),
|
|
310
|
+
L && /* @__PURE__ */ r("button", { onClick: () => {
|
|
311
|
+
var e;
|
|
312
|
+
We(""), (e = Z.current) == null || e.focus();
|
|
313
|
+
}, className: "absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600", children: /* @__PURE__ */ r(Pe, { size: 15 }) })
|
|
314
|
+
] }),
|
|
315
|
+
!!(o.filterable !== !1 && o.filters && o.filters.length > 0) && /* @__PURE__ */ i("div", { ref: Ee, className: "relative", children: [
|
|
316
|
+
/* @__PURE__ */ i("button", { onClick: () => Xe((e) => !e), className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm", children: [
|
|
317
|
+
/* @__PURE__ */ r(Mt, { size: 16 }),
|
|
318
|
+
"Filter"
|
|
319
|
+
] }),
|
|
320
|
+
xt && /* @__PURE__ */ i("div", { className: "absolute right-0 z-30 mt-2 w-64 rounded-xl border bg-white p-4 shadow-xl", children: [
|
|
321
|
+
(st = o.filters) == null ? void 0 : st.map((e) => /* @__PURE__ */ i("label", { className: "mb-3 block text-sm", children: [
|
|
322
|
+
/* @__PURE__ */ r("span", { className: "mb-1 block font-medium", children: e.label }),
|
|
323
|
+
/* @__PURE__ */ r("select", { value: oe[e.key] || "all", onChange: (t) => He((a) => ({ ...a, [e.key]: t.target.value })), className: "w-full rounded-lg border p-2", children: e.options.map((t) => /* @__PURE__ */ r("option", { value: t.value, children: t.label }, t.value)) })
|
|
324
|
+
] }, e.key)),
|
|
325
|
+
/* @__PURE__ */ r("button", { onClick: () => He({}), className: "text-sm font-medium text-slate-600", children: "Clear filters" })
|
|
326
|
+
] })
|
|
327
|
+
] }),
|
|
328
|
+
!!o.columnVisibility && /* @__PURE__ */ i("div", { ref: De, className: "relative", children: [
|
|
329
|
+
/* @__PURE__ */ i("button", { onClick: () => Je((e) => !e), className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm", children: [
|
|
330
|
+
/* @__PURE__ */ r(Rt, { size: 16 }),
|
|
331
|
+
"Columns"
|
|
332
|
+
] }),
|
|
333
|
+
wt && /* @__PURE__ */ i("div", { className: "absolute right-0 z-30 mt-2 w-64 rounded-xl border bg-white p-3.5 shadow-xl", children: [
|
|
334
|
+
/* @__PURE__ */ i("div", { className: "flex items-center justify-between pb-2 mb-2 border-b", children: [
|
|
335
|
+
/* @__PURE__ */ r("span", { className: "text-xs font-semibold uppercase tracking-wider text-slate-500", children: "Columns & Layout" }),
|
|
336
|
+
/* @__PURE__ */ i("button", { onClick: yt, className: "flex items-center gap-1 text-xs text-indigo-600 hover:text-indigo-800 font-medium", title: "Reset default layout", children: [
|
|
337
|
+
/* @__PURE__ */ r(Lt, { size: 12 }),
|
|
338
|
+
"Reset"
|
|
339
|
+
] })
|
|
340
|
+
] }),
|
|
341
|
+
/* @__PURE__ */ r("div", { className: "space-y-1 max-h-64 overflow-y-auto", children: q.map((e) => {
|
|
342
|
+
const t = o.columns.find((l) => l.key === e);
|
|
343
|
+
if (!t) return null;
|
|
344
|
+
const a = _[e] !== !1;
|
|
345
|
+
return /* @__PURE__ */ i(
|
|
346
|
+
"div",
|
|
347
|
+
{
|
|
348
|
+
draggable: !0,
|
|
349
|
+
onDragStart: (l) => et(l, t.key),
|
|
350
|
+
onDragOver: (l) => tt(l, t.key),
|
|
351
|
+
onDrop: (l) => ot(l, t.key),
|
|
352
|
+
className: `flex items-center justify-between p-2 text-sm rounded-lg hover:bg-slate-50 cursor-grab active:cursor-grabbing transition-colors ${j === t.key ? "opacity-30 bg-slate-100" : ""} ${Ce === t.key && j !== t.key ? "border-l-4 border-l-indigo-600 bg-indigo-50/60" : ""}`,
|
|
353
|
+
children: [
|
|
354
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
355
|
+
/* @__PURE__ */ r("span", { title: "Drag to reorder", className: "text-slate-300 hover:text-slate-500 cursor-grab", children: /* @__PURE__ */ r(pt, { size: 14 }) }),
|
|
356
|
+
/* @__PURE__ */ i("label", { className: "flex items-center gap-2 cursor-pointer select-none", children: [
|
|
357
|
+
/* @__PURE__ */ r("input", { type: "checkbox", checked: a, onChange: () => ke((l) => {
|
|
358
|
+
const c = Object.values(l).filter(Boolean).length;
|
|
359
|
+
return l[t.key] && c === 1 ? l : { ...l, [t.key]: !l[t.key] };
|
|
360
|
+
}), className: "rounded text-indigo-600 focus:ring-indigo-500" }),
|
|
361
|
+
/* @__PURE__ */ r("span", { className: a ? "font-medium text-slate-800" : "text-slate-400 line-through", children: t.label })
|
|
362
|
+
] })
|
|
363
|
+
] }),
|
|
364
|
+
de && /* @__PURE__ */ i("span", { className: "text-xs text-slate-400 font-mono", children: [
|
|
365
|
+
B[t.key] || 160,
|
|
366
|
+
"px"
|
|
367
|
+
] })
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
t.key
|
|
371
|
+
);
|
|
372
|
+
}) }),
|
|
373
|
+
/* @__PURE__ */ r("p", { className: "mt-2.5 pt-2 border-t text-[11px] text-slate-400 text-center", children: T && de ? "Drag handles to reorder | Drag column edge to resize" : T ? "Drag handles to reorder" : de ? "Drag column edge to resize" : "Column layout options" })
|
|
374
|
+
] })
|
|
375
|
+
] }),
|
|
376
|
+
o.bulkEditable !== !1 && ce.length > 0 && /* @__PURE__ */ i("button", { onClick: lt, className: `flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${le ? "border-indigo-500 bg-indigo-600 text-white" : m.length > 0 ? "border-indigo-300 bg-indigo-50 text-indigo-700 hover:bg-indigo-100" : "border-slate-200 bg-white text-slate-700 hover:bg-slate-50"}`, children: [
|
|
377
|
+
/* @__PURE__ */ r(Fe, { size: 16 }),
|
|
378
|
+
"Bulk Edit",
|
|
379
|
+
m.length > 0 ? ` (${m.length})` : ""
|
|
380
|
+
] }),
|
|
381
|
+
o.exportable && /* @__PURE__ */ i("button", { onClick: It, className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm", children: [
|
|
382
|
+
/* @__PURE__ */ r(Bt, { size: 16 }),
|
|
383
|
+
"Export"
|
|
384
|
+
] })
|
|
385
|
+
] })
|
|
386
|
+
] }) }),
|
|
387
|
+
Ge && /* @__PURE__ */ r(
|
|
388
|
+
"div",
|
|
389
|
+
{
|
|
390
|
+
onDragOver: (e) => {
|
|
391
|
+
e.preventDefault(), e.dataTransfer.dropEffect = "move";
|
|
392
|
+
},
|
|
393
|
+
onDrop: (e) => {
|
|
394
|
+
e.preventDefault();
|
|
395
|
+
const t = e.dataTransfer.getData("text/plain") || j;
|
|
396
|
+
t && rt(t);
|
|
397
|
+
},
|
|
398
|
+
className: `transition-all duration-200 overflow-hidden ${j ? "max-h-24 opacity-100 my-2" : "max-h-0 opacity-0 my-0 pointer-events-none"}`,
|
|
399
|
+
children: /* @__PURE__ */ i("div", { className: "flex items-center justify-center gap-2 rounded-xl border-2 border-dashed border-rose-400 bg-rose-50 p-3 text-sm font-semibold text-rose-700 shadow-sm", children: [
|
|
400
|
+
/* @__PURE__ */ r(ut, { size: 20, className: "text-rose-600 animate-bounce" }),
|
|
401
|
+
/* @__PURE__ */ i("span", { children: [
|
|
402
|
+
"Drop column header here to hide column ",
|
|
403
|
+
/* @__PURE__ */ r("b", { children: (ct = o.columns.find((e) => e.key === j)) == null ? void 0 : ct.label })
|
|
404
|
+
] })
|
|
405
|
+
] })
|
|
406
|
+
}
|
|
407
|
+
),
|
|
408
|
+
le && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center justify-between gap-3 rounded-xl border border-indigo-200 bg-indigo-50/80 p-3.5 shadow-sm", children: [
|
|
409
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
410
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
411
|
+
/* @__PURE__ */ r(Fe, { size: 18, className: "text-indigo-600" }),
|
|
412
|
+
/* @__PURE__ */ i("span", { className: "font-semibold text-slate-900 text-sm", children: [
|
|
413
|
+
"Bulk Edit Mode (",
|
|
414
|
+
at.length,
|
|
415
|
+
" records):"
|
|
416
|
+
] })
|
|
417
|
+
] }),
|
|
418
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
419
|
+
/* @__PURE__ */ r("span", { className: "text-xs font-medium text-slate-600", children: "Select columns to edit:" }),
|
|
420
|
+
ce.map((e) => {
|
|
421
|
+
const t = Ve.includes(e.key);
|
|
422
|
+
return /* @__PURE__ */ i(
|
|
423
|
+
"button",
|
|
424
|
+
{
|
|
425
|
+
type: "button",
|
|
426
|
+
onClick: () => {
|
|
427
|
+
V(t ? (a) => a.filter((l) => l !== e.key) : (a) => [...a, e.key]);
|
|
428
|
+
},
|
|
429
|
+
className: `flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-medium border transition-all ${t ? "border-indigo-500 bg-indigo-600 text-white shadow-xs" : "border-slate-200 bg-white text-slate-700 hover:border-slate-300 hover:bg-slate-50"}`,
|
|
430
|
+
children: [
|
|
431
|
+
/* @__PURE__ */ r("span", { className: `flex h-3.5 w-3.5 items-center justify-center rounded border ${t ? "border-white bg-white text-indigo-600" : "border-slate-300 bg-white"}`, children: t && /* @__PURE__ */ r(Ue, { size: 10, strokeWidth: 3 }) }),
|
|
432
|
+
/* @__PURE__ */ r("span", { children: e.label })
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
e.key
|
|
436
|
+
);
|
|
437
|
+
})
|
|
438
|
+
] })
|
|
439
|
+
] }),
|
|
440
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
441
|
+
/* @__PURE__ */ i(
|
|
442
|
+
"button",
|
|
443
|
+
{
|
|
444
|
+
onClick: Le,
|
|
445
|
+
className: "flex items-center gap-1.5 rounded-lg border border-slate-200 bg-white px-3 py-1.5 text-xs font-medium text-slate-700 hover:bg-slate-50 transition-colors",
|
|
446
|
+
children: [
|
|
447
|
+
/* @__PURE__ */ r(Pe, { size: 14, className: "text-rose-500" }),
|
|
448
|
+
"Cancel"
|
|
449
|
+
]
|
|
450
|
+
}
|
|
451
|
+
),
|
|
452
|
+
/* @__PURE__ */ i(
|
|
453
|
+
"button",
|
|
454
|
+
{
|
|
455
|
+
onClick: Be,
|
|
456
|
+
className: "flex items-center gap-1.5 rounded-lg bg-emerald-600 px-3.5 py-1.5 text-xs font-medium text-white hover:bg-emerald-700 shadow-sm transition-colors",
|
|
457
|
+
children: [
|
|
458
|
+
/* @__PURE__ */ r(Ue, { size: 14 }),
|
|
459
|
+
"Save"
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
)
|
|
463
|
+
] })
|
|
464
|
+
] }),
|
|
465
|
+
/* @__PURE__ */ i("div", { className: `${bt} overflow-hidden`, children: [
|
|
466
|
+
nt("top"),
|
|
467
|
+
/* @__PURE__ */ r(
|
|
468
|
+
"div",
|
|
469
|
+
{
|
|
470
|
+
style: {
|
|
471
|
+
maxHeight: Ze || void 0
|
|
472
|
+
},
|
|
473
|
+
className: `${$t ? "overflow-x-auto" : ""} ${jt ? "overflow-y-auto" : ""}`,
|
|
474
|
+
children: /* @__PURE__ */ i("table", { ref: se, className: "min-w-full text-sm table-fixed", children: [
|
|
475
|
+
/* @__PURE__ */ r("thead", { className: `sticky top-0 z-20 border-b border-slate-200 ${Ye}`, children: /* @__PURE__ */ i("tr", { children: [
|
|
476
|
+
v && /* @__PURE__ */ r("th", { "data-cell": "-1-0", className: "w-12 px-4 py-3", children: /* @__PURE__ */ r("input", { type: "checkbox", checked: f.length > 0 && f.every((e) => m.includes(e.id)), onChange: (e) => Ie(e.target.checked), onFocus: () => z({ row: -1, col: 0 }) }) }),
|
|
477
|
+
w.map((e, t) => {
|
|
478
|
+
const a = v ? t + 1 : t, l = j === e.key, c = Ce === e.key && j !== e.key, p = B[e.key] || e.width || 160;
|
|
479
|
+
return /* @__PURE__ */ i(
|
|
480
|
+
"th",
|
|
481
|
+
{
|
|
482
|
+
"data-cell": `-1-${a}`,
|
|
483
|
+
style: { width: `${p}px`, minWidth: `${p}px` },
|
|
484
|
+
draggable: T,
|
|
485
|
+
onDragStart: (h) => et(h, e.key),
|
|
486
|
+
onDragOver: (h) => tt(h, e.key),
|
|
487
|
+
onDragLeave: () => J(null),
|
|
488
|
+
onDrop: (h) => ot(h, e.key),
|
|
489
|
+
onDragEnd: () => {
|
|
490
|
+
re(null), J(null);
|
|
491
|
+
},
|
|
492
|
+
"aria-sort": k.key === e.key ? k.dir : "none",
|
|
493
|
+
className: `group relative whitespace-nowrap px-4 py-3 text-left font-semibold ${T ? "cursor-grab active:cursor-grabbing" : ""} transition-colors select-none ${l ? "opacity-30 bg-slate-100" : ""} ${c ? "border-l-4 border-l-indigo-600 bg-indigo-50/60" : ""}`,
|
|
494
|
+
children: [
|
|
495
|
+
/* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-1.5 pr-2", children: [
|
|
496
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-1.5 overflow-hidden", children: [
|
|
497
|
+
T && /* @__PURE__ */ r("span", { title: "Drag header to reorder", className: "opacity-60 group-hover:opacity-100 cursor-grab shrink-0", children: /* @__PURE__ */ r(pt, { size: 14 }) }),
|
|
498
|
+
/* @__PURE__ */ i("button", { disabled: !e.sortable, onClick: () => e.sortable && Oe(e.key), className: `flex items-center gap-1 truncate ${e.sortable ? "hover:opacity-80" : ""}`, children: [
|
|
499
|
+
/* @__PURE__ */ r("span", { className: "truncate", children: e.label }),
|
|
500
|
+
e.sortable && (k.key === e.key ? k.dir === "asc" ? /* @__PURE__ */ r(At, { size: 15, className: "shrink-0" }) : /* @__PURE__ */ r(Pt, { size: 15, className: "shrink-0" }) : /* @__PURE__ */ r(Ft, { size: 15, className: "opacity-50 shrink-0" }))
|
|
501
|
+
] })
|
|
502
|
+
] }),
|
|
503
|
+
/* @__PURE__ */ r(
|
|
504
|
+
"button",
|
|
505
|
+
{
|
|
506
|
+
type: "button",
|
|
507
|
+
title: "Hide column",
|
|
508
|
+
onClick: (h) => {
|
|
509
|
+
h.stopPropagation(), rt(e.key);
|
|
510
|
+
},
|
|
511
|
+
className: "opacity-0 group-hover:opacity-100 transition-opacity p-0.5 hover:text-rose-400 rounded shrink-0",
|
|
512
|
+
children: /* @__PURE__ */ r(Ut, { size: 13 })
|
|
513
|
+
}
|
|
514
|
+
)
|
|
515
|
+
] }),
|
|
516
|
+
de && /* @__PURE__ */ r(
|
|
517
|
+
"div",
|
|
518
|
+
{
|
|
519
|
+
draggable: !1,
|
|
520
|
+
onMouseDown: (h) => kt(h, e.key),
|
|
521
|
+
onDoubleClick: (h) => {
|
|
522
|
+
h.stopPropagation(), Ne((d) => ({ ...d, [e.key]: e.width || 160 }));
|
|
523
|
+
},
|
|
524
|
+
title: "Drag to resize column width",
|
|
525
|
+
className: `absolute right-0 top-0 bottom-0 w-2.5 cursor-col-resize group-hover:bg-indigo-300/50 hover:!bg-indigo-500 transition-colors z-10 ${vt === e.key ? "bg-indigo-600 w-1" : ""}`
|
|
526
|
+
}
|
|
527
|
+
)
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
e.key
|
|
531
|
+
);
|
|
532
|
+
}),
|
|
533
|
+
(((dt = o.actions) == null ? void 0 : dt.view) || ((gt = o.actions) == null ? void 0 : gt.edit) || ((ht = o.actions) == null ? void 0 : ht.delete)) && /* @__PURE__ */ r("th", { className: `sticky right-0 top-0 z-30 px-4 py-3 text-right font-semibold w-32 ${Ye}`, children: "Actions" })
|
|
534
|
+
] }) }),
|
|
535
|
+
/* @__PURE__ */ i("tbody", { children: [
|
|
536
|
+
f.filter((e) => e && e.id).map((e, t) => {
|
|
537
|
+
var c, p, h;
|
|
538
|
+
const a = Ke === e.id, l = le && at.includes(e.id);
|
|
539
|
+
return /* @__PURE__ */ i("tr", { className: `border-b last:border-0 ${a || l ? "bg-indigo-50/20" : "hover:bg-slate-50"}`, children: [
|
|
540
|
+
v && /* @__PURE__ */ r("td", { "data-cell": `${t}-0`, className: "px-4 py-3", children: /* @__PURE__ */ r("input", { type: "checkbox", checked: m.includes(e.id), onChange: () => Te(e.id), onFocus: () => z({ row: t, col: 0 }) }) }),
|
|
541
|
+
w.map((d, x) => {
|
|
542
|
+
var he, pe;
|
|
543
|
+
const u = v ? x + 1 : x, ge = l && Ve.includes(d.key) && d.editable !== !1, R = Nt(d), ee = B[d.key] || d.width || 160, E = e[d.key], s = E != null ? String(E) : "", b = s.length > 25;
|
|
544
|
+
return /* @__PURE__ */ r("td", { "data-cell": `${t}-${u}`, style: { width: `${ee}px`, minWidth: `${ee}px` }, className: "px-4 py-3 truncate", tabIndex: -1, title: b ? s : void 0, children: a && d.editable !== !1 ? R ? /* @__PURE__ */ r(
|
|
545
|
+
"select",
|
|
546
|
+
{
|
|
547
|
+
value: P[d.key] ?? "",
|
|
548
|
+
onChange: (n) => K({ ...P, [d.key]: n.target.value }),
|
|
549
|
+
onKeyDown: (n) => {
|
|
550
|
+
n.key === "Enter" && Re(), n.key === "Escape" && Me();
|
|
551
|
+
},
|
|
552
|
+
className: "w-full rounded-md border border-indigo-300 bg-white px-2 py-1 text-sm outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500",
|
|
553
|
+
children: R.map((n) => {
|
|
554
|
+
const C = typeof n == "object" ? n.value : n, Ae = typeof n == "object" ? n.label : n;
|
|
555
|
+
return /* @__PURE__ */ r("option", { value: C, children: Ae }, C);
|
|
556
|
+
})
|
|
557
|
+
}
|
|
558
|
+
) : /* @__PURE__ */ r(
|
|
559
|
+
"input",
|
|
560
|
+
{
|
|
561
|
+
type: "text",
|
|
562
|
+
value: P[d.key] ?? "",
|
|
563
|
+
onChange: (n) => K({ ...P, [d.key]: n.target.value }),
|
|
564
|
+
onKeyDown: (n) => {
|
|
565
|
+
n.key === "Enter" && Re(), n.key === "Escape" && Me();
|
|
566
|
+
},
|
|
567
|
+
className: "w-full rounded-md border border-indigo-300 bg-white px-2 py-1 text-sm outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
|
|
568
|
+
}
|
|
569
|
+
) : ge ? R ? /* @__PURE__ */ r(
|
|
570
|
+
"select",
|
|
571
|
+
{
|
|
572
|
+
value: ((he = ne[e.id]) == null ? void 0 : he[d.key]) ?? e[d.key] ?? "",
|
|
573
|
+
onChange: (n) => G((C) => ({
|
|
574
|
+
...C,
|
|
575
|
+
[e.id]: {
|
|
576
|
+
...C[e.id] || e,
|
|
577
|
+
[d.key]: n.target.value
|
|
578
|
+
}
|
|
579
|
+
})),
|
|
580
|
+
onKeyDown: (n) => {
|
|
581
|
+
n.key === "Enter" && Be(), n.key === "Escape" && Le();
|
|
582
|
+
},
|
|
583
|
+
className: "w-full rounded-md border border-indigo-400 bg-white px-2 py-1 text-sm outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500",
|
|
584
|
+
children: R.map((n) => {
|
|
585
|
+
const C = typeof n == "object" ? n.value : n, Ae = typeof n == "object" ? n.label : n;
|
|
586
|
+
return /* @__PURE__ */ r("option", { value: C, children: Ae }, C);
|
|
587
|
+
})
|
|
588
|
+
}
|
|
589
|
+
) : /* @__PURE__ */ r(
|
|
590
|
+
"input",
|
|
591
|
+
{
|
|
592
|
+
type: "text",
|
|
593
|
+
value: ((pe = ne[e.id]) == null ? void 0 : pe[d.key]) ?? e[d.key] ?? "",
|
|
594
|
+
onChange: (n) => G((C) => ({
|
|
595
|
+
...C,
|
|
596
|
+
[e.id]: {
|
|
597
|
+
...C[e.id] || e,
|
|
598
|
+
[d.key]: n.target.value
|
|
599
|
+
}
|
|
600
|
+
})),
|
|
601
|
+
onKeyDown: (n) => {
|
|
602
|
+
n.key === "Enter" && Be(), n.key === "Escape" && Le();
|
|
603
|
+
},
|
|
604
|
+
className: "w-full rounded-md border border-indigo-400 bg-white px-2 py-1 text-sm outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
|
|
605
|
+
}
|
|
606
|
+
) : d.render ? d.render(E, e, t) : d.key === "status" ? /* @__PURE__ */ r("span", { className: `rounded-full px-2.5 py-1 text-xs font-medium ${Kt[E] || "bg-slate-100 text-slate-600"}`, children: E }) : b ? /* @__PURE__ */ i("span", { title: s, children: [
|
|
607
|
+
s.slice(0, 25),
|
|
608
|
+
"..."
|
|
609
|
+
] }) : s }, d.key);
|
|
610
|
+
}),
|
|
611
|
+
(((c = o.actions) == null ? void 0 : c.view) || ((p = o.actions) == null ? void 0 : p.edit) || ((h = o.actions) == null ? void 0 : h.delete)) && /* @__PURE__ */ r("td", { "data-cell": `${t}-${w.length + (v ? 1 : 0)}`, className: "sticky right-0 bg-white px-4 py-3 w-32 z-10", children: a ? /* @__PURE__ */ i("div", { className: "flex justify-end gap-1", children: [
|
|
612
|
+
/* @__PURE__ */ r("button", { title: "Save", onClick: Re, className: "rounded-md bg-emerald-100 p-2 text-emerald-700 hover:bg-emerald-200", children: /* @__PURE__ */ r(Ue, { size: 16 }) }),
|
|
613
|
+
/* @__PURE__ */ r("button", { title: "Cancel", onClick: Me, className: "rounded-md bg-rose-100 p-2 text-rose-700 hover:bg-rose-200", children: /* @__PURE__ */ r(Pe, { size: 16 }) })
|
|
614
|
+
] }) : /* @__PURE__ */ i("div", { className: "flex justify-end gap-1", children: [
|
|
615
|
+
o.actions.view && /* @__PURE__ */ r("button", { title: "View", onClick: () => O == null ? void 0 : O(e), onFocus: () => {
|
|
616
|
+
z({ row: t, col: w.length + (v ? 1 : 0) }), Q(0);
|
|
617
|
+
}, className: "rounded-md p-2 hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400", children: /* @__PURE__ */ r(Wt, { size: 16 }) }),
|
|
618
|
+
o.actions.edit && /* @__PURE__ */ r("button", { title: "Edit", onClick: () => it(e), onFocus: () => {
|
|
619
|
+
z({ row: t, col: w.length + (v ? 1 : 0) }), Q(1);
|
|
620
|
+
}, className: "rounded-md p-2 hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400", children: /* @__PURE__ */ r(Ht, { size: 16 }) }),
|
|
621
|
+
o.actions.delete && /* @__PURE__ */ r("button", { title: "Delete", onClick: () => ie(e), onFocus: () => {
|
|
622
|
+
z({ row: t, col: w.length + (v ? 1 : 0) }), Q(2);
|
|
623
|
+
}, className: "rounded-md p-2 text-red-600 hover:bg-red-50 focus:outline-none focus:ring-2 focus:ring-red-400", children: /* @__PURE__ */ r(ut, { size: 16 }) })
|
|
624
|
+
] }) })
|
|
625
|
+
] }, e.id);
|
|
626
|
+
}),
|
|
627
|
+
!f.length && /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ i("td", { colSpan: w.length + (v ? 1 : 0) + 1, className: "px-6 py-16 text-center", children: [
|
|
628
|
+
/* @__PURE__ */ r("div", { className: "font-medium", children: "No records found" }),
|
|
629
|
+
/* @__PURE__ */ r("div", { className: "mt-1 text-sm text-slate-500", children: "Try changing your search or filters." })
|
|
630
|
+
] }) })
|
|
631
|
+
] })
|
|
632
|
+
] })
|
|
633
|
+
}
|
|
634
|
+
),
|
|
635
|
+
nt("bottom")
|
|
636
|
+
] }),
|
|
637
|
+
m.length > 0 && !le && /* @__PURE__ */ i("div", { className: "fixed bottom-5 left-1/2 z-40 flex -translate-x-1/2 items-center gap-3 rounded-xl bg-slate-900 px-4 py-2.5 text-sm text-white shadow-xl", children: [
|
|
638
|
+
/* @__PURE__ */ i("span", { className: "font-medium pl-1", children: [
|
|
639
|
+
m.length,
|
|
640
|
+
" selected"
|
|
641
|
+
] }),
|
|
642
|
+
o.bulkEditable !== !1 && ce.length > 0 && /* @__PURE__ */ i(
|
|
643
|
+
"button",
|
|
644
|
+
{
|
|
645
|
+
onClick: lt,
|
|
646
|
+
className: "flex items-center gap-1.5 rounded-lg bg-indigo-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-indigo-500 transition-colors shadow-sm",
|
|
647
|
+
children: [
|
|
648
|
+
/* @__PURE__ */ r(Fe, { size: 14 }),
|
|
649
|
+
"Bulk Edit"
|
|
650
|
+
]
|
|
651
|
+
}
|
|
652
|
+
),
|
|
653
|
+
/* @__PURE__ */ r(
|
|
654
|
+
"button",
|
|
655
|
+
{
|
|
656
|
+
onClick: () => ae([]),
|
|
657
|
+
className: "text-xs text-slate-400 hover:text-white underline pr-1",
|
|
658
|
+
children: "Clear"
|
|
659
|
+
}
|
|
660
|
+
)
|
|
661
|
+
] }),
|
|
662
|
+
X && /* @__PURE__ */ r("div", { onClick: (e) => {
|
|
663
|
+
e.target === e.currentTarget && ie(null);
|
|
664
|
+
}, className: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4", children: /* @__PURE__ */ i("div", { className: "w-full max-w-sm rounded-2xl bg-white p-6 shadow-2xl", children: [
|
|
665
|
+
/* @__PURE__ */ r("h3", { className: "text-lg font-semibold", children: "Delete record?" }),
|
|
666
|
+
/* @__PURE__ */ i("p", { className: "mt-2 text-sm text-slate-500", children: [
|
|
667
|
+
"Are you sure you want to delete ",
|
|
668
|
+
/* @__PURE__ */ r("b", { children: X.name }),
|
|
669
|
+
"? This action cannot be undone."
|
|
670
|
+
] }),
|
|
671
|
+
/* @__PURE__ */ i("div", { className: "mt-6 flex justify-end gap-2", children: [
|
|
672
|
+
/* @__PURE__ */ r("button", { onClick: () => ie(null), className: "rounded-lg border px-4 py-2 text-sm", children: "Cancel" }),
|
|
673
|
+
/* @__PURE__ */ r("button", { onClick: Ot, className: "rounded-lg bg-red-600 px-4 py-2 text-sm font-medium text-white", children: "Delete" })
|
|
674
|
+
] })
|
|
675
|
+
] }) })
|
|
676
|
+
] });
|
|
867
677
|
}
|
|
868
|
-
//#endregion
|
|
869
|
-
//#region src/index.css?inline
|
|
870
|
-
var m = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-700:oklch(55.5% .163 48.998);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,: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(--default-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--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(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--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:where(:not(iframe)){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}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.visible\\!{visibility:visible!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.bottom-0{bottom:0}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.mx-auto{margin-inline:auto}.my-0{margin-block:0}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.block{display:block}.flex{display:flex}.grid{display:grid}.table{display:table}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.max-h-0{max-height:0}.max-h-24{max-height:calc(var(--spacing) * 24)}.max-h-64{max-height:calc(var(--spacing) * 64)}.min-h-screen{min-height:100vh}.w-1{width:var(--spacing)}.w-2{width:calc(var(--spacing) * 2)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-12{width:calc(var(--spacing) * 12)}.w-32{width:calc(var(--spacing) * 32)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-sm{max-width:var(--container-sm)}.min-w-full{min-width:100%}.shrink-0{flex-shrink:0}.table-fixed{table-layout:fixed}.-translate-x-1{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.animate-bounce{animation:var(--animate-bounce)}.cursor-col-resize{cursor:col-resize}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-emerald-200{border-color:var(--color-emerald-200)}.border-indigo-200{border-color:var(--color-indigo-200)}.border-indigo-300{border-color:var(--color-indigo-300)}.border-indigo-400{border-color:var(--color-indigo-400)}.border-indigo-500{border-color:var(--color-indigo-500)}.border-rose-400{border-color:var(--color-rose-400)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-white{border-color:var(--color-white)}.border-l-indigo-600{border-left-color:var(--color-indigo-600)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-black{background-color:var(--color-black)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-50\\/20{background-color:#eef2ff33}@supports (color:color-mix(in lab, red, red)){.bg-indigo-50\\/20{background-color:color-mix(in oklab, var(--color-indigo-50) 20%, transparent)}}.bg-indigo-50\\/60{background-color:#eef2ff99}@supports (color:color-mix(in lab, red, red)){.bg-indigo-50\\/60{background-color:color-mix(in oklab, var(--color-indigo-50) 60%, transparent)}}.bg-indigo-50\\/80{background-color:#eef2ffcc}@supports (color:color-mix(in lab, red, red)){.bg-indigo-50\\/80{background-color:color-mix(in oklab, var(--color-indigo-50) 80%, transparent)}}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-red-600{background-color:var(--color-red-600)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-100{background-color:var(--color-rose-100)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-white{background-color:var(--color-white)}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-1{padding-right:var(--spacing)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-1{padding-left:var(--spacing)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-amber-700{color:var(--color-amber-700)}.text-emerald-700{color:var(--color-emerald-700)}.text-indigo-600{color:var(--color-indigo-600)}.text-indigo-700{color:var(--color-indigo-700)}.text-red-600{color:var(--color-red-600)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-700{color:var(--color-rose-700)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:bg-indigo-300\\/50:is(:where(.group):hover *){background-color:#a4b3ff80}@supports (color:color-mix(in lab, red, red)){.group-hover\\:bg-indigo-300\\/50:is(:where(.group):hover *){background-color:color-mix(in oklab, var(--color-indigo-300) 50%, transparent)}}.group-hover\\:text-slate-500:is(:where(.group):hover *){color:var(--color-slate-500)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.last\\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}@media (hover:hover){.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:\\!bg-indigo-500:hover{background-color:var(--color-indigo-500)!important}.hover\\:bg-emerald-200:hover{background-color:var(--color-emerald-200)}.hover\\:bg-emerald-700:hover{background-color:var(--color-emerald-700)}.hover\\:bg-indigo-100:hover{background-color:var(--color-indigo-100)}.hover\\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-rose-200:hover{background-color:var(--color-rose-200)}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:text-indigo-800:hover{color:var(--color-indigo-800)}.hover\\:text-rose-600:hover{color:var(--color-rose-600)}.hover\\:text-slate-500:hover{color:var(--color-slate-500)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:border-indigo-500:focus{border-color:var(--color-indigo-500)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-indigo-500:focus{--tw-ring-color:var(--color-indigo-500)}.focus\\:ring-indigo-500\\/20:focus{--tw-ring-color:#625fff33}@supports (color:color-mix(in lab, red, red)){.focus\\:ring-indigo-500\\/20:focus{--tw-ring-color:color-mix(in oklab, var(--color-indigo-500) 20%, transparent)}}.focus\\:ring-red-400:focus{--tw-ring-color:var(--color-red-400)}.focus\\:ring-slate-400:focus{--tw-ring-color:var(--color-slate-400)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:opacity-40:disabled{opacity:.4}@media (width>=40rem){.sm\\:flex-row{flex-direction:row}.sm\\:items-center{align-items:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-6{padding:calc(var(--spacing) * 6)}}@media (width>=64rem){.lg\\:flex-row{flex-direction:row}.lg\\:items-center{align-items:center}.lg\\:justify-between{justify-content:space-between}.lg\\:p-10{padding:calc(var(--spacing) * 10)}}}*{box-sizing:border-box}body{color:#0f172a;background:#f8fafc;margin:0;font-family:Inter,ui-sans-serif,system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}";
|
|
871
|
-
//#endregion
|
|
872
|
-
//#region src/index.js
|
|
678
|
+
const Vt = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-700:oklch(55.5% .163 48.998);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-900:oklch(35.9% .144 278.697);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,: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%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--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:where(:not(iframe)){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]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.top-0{top:0}.top-1\\/2{top:50%}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.bottom-0{bottom:0}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-1\\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-0{margin-block:0}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.max-h-0{max-height:0}.max-h-24{max-height:calc(var(--spacing) * 24)}.max-h-64{max-height:calc(var(--spacing) * 64)}.min-h-screen{min-height:100vh}.w-1{width:var(--spacing)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-12{width:calc(var(--spacing) * 12)}.w-32{width:calc(var(--spacing) * 32)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-sm{max-width:var(--container-sm)}.min-w-full{min-width:100%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.table-fixed{table-layout:fixed}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.animate-bounce{animation:var(--animate-bounce)}.cursor-col-resize{cursor:col-resize}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-emerald-200{border-color:var(--color-emerald-200)}.border-indigo-200{border-color:var(--color-indigo-200)}.border-indigo-300{border-color:var(--color-indigo-300)}.border-indigo-400{border-color:var(--color-indigo-400)}.border-indigo-500{border-color:var(--color-indigo-500)}.border-rose-400{border-color:var(--color-rose-400)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/80{border-color:#e2e8f0cc}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/80{border-color:color-mix(in oklab,var(--color-slate-200) 80%,transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-white{border-color:var(--color-white)}.border-l-indigo-600{border-left-color:var(--color-indigo-600)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/50{background-color:#eff6ff80}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/50{background-color:color-mix(in oklab,var(--color-blue-50) 50%,transparent)}}.bg-blue-900{background-color:var(--color-blue-900)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-50\\/50{background-color:#ecfdf580}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\\/50{background-color:color-mix(in oklab,var(--color-emerald-50) 50%,transparent)}}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-emerald-900{background-color:var(--color-emerald-900)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-50\\/20{background-color:#eef2ff33}@supports (color:color-mix(in lab,red,red)){.bg-indigo-50\\/20{background-color:color-mix(in oklab,var(--color-indigo-50) 20%,transparent)}}.bg-indigo-50\\/50{background-color:#eef2ff80}@supports (color:color-mix(in lab,red,red)){.bg-indigo-50\\/50{background-color:color-mix(in oklab,var(--color-indigo-50) 50%,transparent)}}.bg-indigo-50\\/60{background-color:#eef2ff99}@supports (color:color-mix(in lab,red,red)){.bg-indigo-50\\/60{background-color:color-mix(in oklab,var(--color-indigo-50) 60%,transparent)}}.bg-indigo-50\\/80{background-color:#eef2ffcc}@supports (color:color-mix(in lab,red,red)){.bg-indigo-50\\/80{background-color:color-mix(in oklab,var(--color-indigo-50) 80%,transparent)}}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-indigo-900{background-color:var(--color-indigo-900)}.bg-red-600{background-color:var(--color-red-600)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-100{background-color:var(--color-rose-100)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-white{background-color:var(--color-white)}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\\/90{background-color:color-mix(in oklab,var(--color-white) 90%,transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab,red,red)){.bg-white\\/95{background-color:color-mix(in oklab,var(--color-white) 95%,transparent)}}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-1{padding-right:var(--spacing)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-1{padding-left:var(--spacing)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-amber-700{color:var(--color-amber-700)}.text-blue-100{color:var(--color-blue-100)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-emerald-900{color:var(--color-emerald-900)}.text-indigo-100{color:var(--color-indigo-100)}.text-indigo-600{color:var(--color-indigo-600)}.text-indigo-700{color:var(--color-indigo-700)}.text-indigo-800{color:var(--color-indigo-800)}.text-indigo-900{color:var(--color-indigo-900)}.text-red-600{color:var(--color-red-600)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-700{color:var(--color-rose-700)}.text-slate-100{color:var(--color-slate-100)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-85{opacity:.85}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:bg-indigo-300\\/50:is(:where(.group):hover *){background-color:#a4b3ff80}@supports (color:color-mix(in lab,red,red)){.group-hover\\:bg-indigo-300\\/50:is(:where(.group):hover *){background-color:color-mix(in oklab,var(--color-indigo-300) 50%,transparent)}}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.last\\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}@media(hover:hover){.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:\\!bg-indigo-500:hover{background-color:var(--color-indigo-500)!important}.hover\\:bg-emerald-200:hover{background-color:var(--color-emerald-200)}.hover\\:bg-emerald-700:hover{background-color:var(--color-emerald-700)}.hover\\:bg-indigo-100:hover{background-color:var(--color-indigo-100)}.hover\\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-rose-200:hover{background-color:var(--color-rose-200)}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:text-indigo-800:hover{color:var(--color-indigo-800)}.hover\\:text-rose-400:hover{color:var(--color-rose-400)}.hover\\:text-slate-500:hover{color:var(--color-slate-500)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:opacity-80:hover{opacity:.8}}.focus\\:border-indigo-500:focus{border-color:var(--color-indigo-500)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-indigo-500:focus{--tw-ring-color:var(--color-indigo-500)}.focus\\:ring-indigo-500\\/20:focus{--tw-ring-color:#625fff33}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-indigo-500\\/20:focus{--tw-ring-color:color-mix(in oklab, var(--color-indigo-500) 20%, transparent)}}.focus\\:ring-red-400:focus{--tw-ring-color:var(--color-red-400)}.focus\\:ring-slate-400:focus{--tw-ring-color:var(--color-slate-400)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:opacity-40:disabled{opacity:.4}@media(hover:hover){.disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}@media(min-width:40rem){.sm\\:flex-row{flex-direction:row}.sm\\:items-center{align-items:center}.sm\\:justify-between{justify-content:space-between}.sm\\:p-6{padding:calc(var(--spacing) * 6)}}@media(min-width:64rem){.lg\\:flex-row{flex-direction:row}.lg\\:items-center{align-items:center}.lg\\:justify-between{justify-content:space-between}.lg\\:p-10{padding:calc(var(--spacing) * 10)}}}*{box-sizing:border-box}body{color:#0f172a;background:#f8fafc;margin:0;font-family:Inter,ui-sans-serif,system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}';
|
|
873
679
|
if (typeof document < "u") {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
680
|
+
const o = "react-flexi-datatable-styles";
|
|
681
|
+
if (!document.getElementById(o)) {
|
|
682
|
+
const $ = document.createElement("style");
|
|
683
|
+
$.id = o, $.textContent = Vt, document.head.appendChild($);
|
|
684
|
+
}
|
|
879
685
|
}
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
686
|
+
export {
|
|
687
|
+
Zt as DataTable,
|
|
688
|
+
Zt as default
|
|
689
|
+
};
|