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/dist/index.js CHANGED
@@ -1,882 +1,689 @@
1
- import { useEffect as e, useMemo as t, useRef as n, useState as r } from "react";
2
- import { Check as i, ChevronDown as a, ChevronLeft as o, ChevronRight as s, ChevronUp as c, ChevronsLeft as ee, ChevronsRight as l, ChevronsUpDown as u, Columns3 as te, Download as ne, Edit3 as re, Eye as ie, EyeOff as ae, GripVertical as oe, Pencil as se, RotateCcw as ce, Search as le, SlidersHorizontal as ue, Trash2 as de, X as fe } from "lucide-react";
3
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
4
- //#region src/components/DataTable.jsx
5
- var pe = "border border-slate-200 rounded-lg bg-white", me = {
6
- Active: "bg-emerald-50 text-emerald-700",
7
- Inactive: "bg-slate-100 text-slate-600",
8
- Pending: "bg-amber-50 text-amber-700"
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 p({ config: p, data: m = [], onView: h, onEdit: he, onDelete: ge, onBulkEdit: _e }) {
11
- let g = `table_cols_${p.id || p.title || "default"}`, [ve, _] = r(m), [v, ye] = r(""), [y, be] = r({}), [b, x] = r({
12
- key: null,
13
- dir: null
14
- }), [xe, S] = r(1), [C, Se] = r(p.pageSize || 10), [w, T] = r(() => {
15
- try {
16
- let e = localStorage.getItem(`${g}_visible`);
17
- if (e) return JSON.parse(e);
18
- } catch {}
19
- return Object.fromEntries(p.columns.map((e) => [e.key, e.visible !== !1]));
20
- }), [E, Ce] = r(() => {
21
- try {
22
- let e = localStorage.getItem(`${g}_order`);
23
- if (e) return JSON.parse(e);
24
- } catch {}
25
- return p.columns.map((e) => e.key);
26
- }), [D, we] = r(() => {
27
- try {
28
- let e = localStorage.getItem(`${g}_widths`);
29
- if (e) return JSON.parse(e);
30
- } catch {}
31
- return Object.fromEntries(p.columns.map((e) => [e.key, e.width || 160]));
32
- }), [Te, Ee] = r(null), [O, k] = r(null), [De, A] = r(null), [j, M] = r([]), [N, P] = r(null), [Oe, ke] = r(!1), [Ae, je] = r(!1), [F, I] = r({
33
- row: 0,
34
- col: 0
35
- }), [Me, Ne] = r(null), [L, R] = r({}), [z, Pe] = r(!1), [Fe, B] = r([]), [V, H] = r({}), [U, W] = r(1), G = n(null), Ie = n(null), Le = n(null), K = n(null);
36
- e(() => {
37
- p.searchable && K.current && K.current.focus();
38
- }, [p.searchable]), e(() => {
39
- let e = (e) => {
40
- Ie.current && !Ie.current.contains(e.target) && je(!1), Le.current && !Le.current.contains(e.target) && ke(!1);
41
- };
42
- return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
43
- }, []), e(() => _(m), [m]), e(() => S(1), [
44
- v,
45
- y,
46
- C
47
- ]), e(() => {
48
- try {
49
- localStorage.setItem(`${g}_order`, JSON.stringify(E));
50
- } catch {}
51
- }, [E, g]), e(() => {
52
- try {
53
- localStorage.setItem(`${g}_visible`, JSON.stringify(w));
54
- } catch {}
55
- }, [w, g]), e(() => {
56
- try {
57
- localStorage.setItem(`${g}_widths`, JSON.stringify(D));
58
- } catch {}
59
- }, [D, g]);
60
- let Re = () => {
61
- let e = p.columns.map((e) => e.key), t = Object.fromEntries(p.columns.map((e) => [e.key, e.visible !== !1])), n = Object.fromEntries(p.columns.map((e) => [e.key, e.width || 160]));
62
- Ce(e), T(t), we(n);
63
- try {
64
- localStorage.removeItem(`${g}_order`), localStorage.removeItem(`${g}_visible`), localStorage.removeItem(`${g}_widths`);
65
- } catch {}
66
- }, ze = (e, t) => {
67
- e.preventDefault(), e.stopPropagation();
68
- let n = e.clientX, r = D[t] || 160, i = (e) => {
69
- let i = e.clientX - n, a = Math.max(70, r + i);
70
- we((e) => ({
71
- ...e,
72
- [t]: a
73
- }));
74
- }, a = () => {
75
- document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", a), Ee(null);
76
- };
77
- Ee(t), document.addEventListener("mousemove", i), document.addEventListener("mouseup", a);
78
- }, q = t(() => {
79
- let e = Object.fromEntries(p.columns.map((e) => [e.key, e]));
80
- return E.map((t) => e[t]).filter((e) => e && w[e.key]);
81
- }, [
82
- p.columns,
83
- E,
84
- w
85
- ]), J = t(() => p.columns.filter((e) => e.editable !== !1), [p.columns]), Be = (e) => {
86
- if (e.options) return e.options;
87
- let t = p.filters?.find((t) => t.key === e.key);
88
- return t?.options ? t.options.filter((e) => e.value !== "all").map((e) => e.value) : null;
89
- }, Y = p.columnordering !== !1 && p.columnOrdering !== !1, Ve = Y && p.dropcolumn !== !1 && p.dropColumn !== !1, He = (e, t) => {
90
- Y && (k(t), e.dataTransfer.setData("text/plain", t), e.dataTransfer.effectAllowed = "move");
91
- }, Ue = (e, t) => {
92
- e.preventDefault(), Ve && (e.dataTransfer.dropEffect = "move", De !== t && A(t));
93
- }, We = (e, t) => {
94
- e.preventDefault(), e.stopPropagation();
95
- let n = e.dataTransfer.getData("text/plain") || O;
96
- n && n !== t && Ce((e) => {
97
- let r = [...e], i = r.indexOf(n), a = r.indexOf(t);
98
- return i !== -1 && a !== -1 && (r.splice(i, 1), r.splice(a, 0, n)), r;
99
- }), k(null), A(null);
100
- }, Ge = (e) => {
101
- e && (T((t) => Object.values(t).filter(Boolean).length <= 1 ? t : {
102
- ...t,
103
- [e]: !1
104
- }), k(null), A(null));
105
- }, X = t(() => {
106
- let e = [...ve];
107
- if (v.trim()) {
108
- let t = v.toLowerCase(), n = p.columns.filter((e) => e.searchable !== !1).map((e) => e.key);
109
- e = e.filter((e) => n.some((n) => String(e[n] ?? "").toLowerCase().includes(t)));
110
- }
111
- return Object.entries(y).forEach(([t, n]) => {
112
- n && n !== "all" && (e = e.filter((e) => String(e[t]) === String(n)));
113
- }), b.key && e.sort((e, t) => {
114
- let n = String(e[b.key] ?? "").toLowerCase(), r = String(t[b.key] ?? "").toLowerCase(), i = n.localeCompare(r, void 0, { numeric: !0 });
115
- return b.dir === "asc" ? i : -i;
116
- }), e;
117
- }, [
118
- ve,
119
- v,
120
- y,
121
- b,
122
- p.columns
123
- ]), Z = Math.max(1, Math.ceil(X.length / C)), Q = Math.min(xe, Z), $ = X.slice((Q - 1) * C, Q * C), Ke = t(() => j.length > 0 ? j : $.map((e) => e.id), [j, $]), qe = (e) => {
124
- if (b.key !== e) return x({
125
- key: e,
126
- dir: "asc"
127
- });
128
- if (b.dir === "asc") return x({
129
- key: e,
130
- dir: "desc"
131
- });
132
- x({
133
- key: null,
134
- dir: null
135
- });
136
- }, Je = (e) => M(e ? $.map((e) => e.id) : []), Ye = (e) => M((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), Xe = (e) => {
137
- Ne(e.id), R({ ...e });
138
- }, Ze = () => {
139
- Ne(null), R({});
140
- }, Qe = () => {
141
- _((e) => e.map((e) => e.id === Me ? L : e)), he?.(L), Ne(null), R({});
142
- }, $e = () => {
143
- let e = {}, t = j.length > 0 ? j : $.map((e) => e.id);
144
- ve.forEach((n) => {
145
- t.includes(n.id) && (e[n.id] = { ...n });
146
- }), H(e), B(J.map((e) => e.key)), Pe(!0);
147
- }, et = () => {
148
- Pe(!1), H({}), B([]);
149
- }, tt = () => {
150
- let e = j.length > 0 ? j : $.map((e) => e.id);
151
- _((t) => t.map((t) => e.includes(t.id) && V[t.id] || t)), _e?.(e, V), Pe(!1), H({}), B([]);
152
- };
153
- return e(() => {
154
- let e = (e) => {
155
- if (!p.keyboardNavigation || !$.length) return;
156
- let t = document.activeElement;
157
- if (t && (["TEXTAREA"].includes(t.tagName) || t.tagName === "INPUT" && t.type !== "checkbox" || t.tagName === "SELECT")) return;
158
- let n = !!(p.actions?.view || p.actions?.edit || p.actions?.delete), r = q.length + +!!p.selectable, i = q.length + +!!p.selectable + +!!n, a = t?.closest("[data-cell]"), o = F.row, s = F.col;
159
- if (a) {
160
- let e = a.getAttribute("data-cell");
161
- if (e) {
162
- let t = e.split("-").map(Number);
163
- t.length === 2 && !isNaN(t[0]) && !isNaN(t[1]) && (o = t[0], s = t[1]);
164
- }
165
- }
166
- if (e.key === "ArrowDown") {
167
- e.preventDefault();
168
- let t = Math.min($.length - 1, o + 1);
169
- I({
170
- row: t,
171
- col: s
172
- });
173
- } else if (e.key === "ArrowUp") {
174
- e.preventDefault();
175
- let t = Math.max(-1, o - 1);
176
- I({
177
- row: t,
178
- col: s
179
- });
180
- } else if (e.key === "ArrowRight") {
181
- if (e.preventDefault(), n && s === r) {
182
- let e = G.current?.querySelector(`[data-cell="${o}-${s}"]`), t = e ? Array.from(e.querySelectorAll("button")) : [];
183
- if (U < t.length - 1) {
184
- W((e) => e + 1);
185
- return;
186
- }
187
- }
188
- let t = Math.min(i - 1, s + 1);
189
- I({
190
- row: o,
191
- col: t
192
- });
193
- } else if (e.key === "ArrowLeft") {
194
- if (e.preventDefault(), n && s === r && U > 0) {
195
- W((e) => e - 1);
196
- return;
197
- }
198
- let t = Math.max(0, s - 1);
199
- I({
200
- row: o,
201
- col: t
202
- });
203
- } else if (e.key === "Enter" || e.key === " ") {
204
- if (o === -1) {
205
- if (p.selectable && s === 0) e.preventDefault(), Je($.length > 0 && !$.every((e) => j.includes(e.id)));
206
- else {
207
- let t = p.selectable ? s - 1 : s, n = q[t];
208
- n && n.sortable && (e.preventDefault(), qe(n.key));
209
- }
210
- } else {
211
- let i = $[o];
212
- t && (t.type === "checkbox" || t.tagName === "BUTTON") ? (e.key === "Enter" || e.key === " ") && (e.preventDefault(), t.click()) : i && (p.selectable && s === 0 ? (e.preventDefault(), Ye(i.id)) : n && s === r ? (e.preventDefault(), Xe(i)) : e.key === "Enter" && (e.preventDefault(), h?.(i)));
213
- }
214
- }
215
- };
216
- return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
217
- }, [
218
- p.keyboardNavigation,
219
- $,
220
- q,
221
- F,
222
- U,
223
- Ye,
224
- Je,
225
- qe,
226
- h,
227
- p.selectable,
228
- j
229
- ]), e(() => {
230
- if (!p.keyboardNavigation || !G.current || document.activeElement === K.current) return;
231
- let e = G.current.querySelector(`[data-cell="${F.row}-${F.col}"]`);
232
- if (e) {
233
- let t = Array.from(e.querySelectorAll("input, button, select"));
234
- t.length > 0 ? (t[Math.min(U, t.length - 1)] || t[0]).focus() : e.focus();
235
- }
236
- }, [
237
- F,
238
- U,
239
- p.keyboardNavigation,
240
- $
241
- ]), /* @__PURE__ */ f("div", {
242
- className: "space-y-3",
243
- children: [
244
- /* @__PURE__ */ d("div", {
245
- className: `${pe} p-4`,
246
- children: /* @__PURE__ */ f("div", {
247
- className: "flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",
248
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
249
- className: "text-lg font-semibold",
250
- children: p.title
251
- }), /* @__PURE__ */ f("p", {
252
- className: "text-sm text-slate-500",
253
- children: [X.length, " records"]
254
- })] }), /* @__PURE__ */ f("div", {
255
- className: "flex flex-wrap gap-2",
256
- children: [
257
- p.searchable && /* @__PURE__ */ f("div", {
258
- className: "relative",
259
- children: [
260
- /* @__PURE__ */ d(le, {
261
- size: 16,
262
- className: "absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"
263
- }),
264
- /* @__PURE__ */ d("input", {
265
- ref: K,
266
- autoFocus: !0,
267
- value: v,
268
- onChange: (e) => ye(e.target.value),
269
- placeholder: "Search...",
270
- 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"
271
- }),
272
- v && /* @__PURE__ */ d("button", {
273
- onClick: () => {
274
- ye(""), K.current?.focus();
275
- },
276
- className: "absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",
277
- children: /* @__PURE__ */ d(fe, { size: 15 })
278
- })
279
- ]
280
- }),
281
- p.filterable && /* @__PURE__ */ f("div", {
282
- ref: Ie,
283
- className: "relative",
284
- children: [/* @__PURE__ */ f("button", {
285
- onClick: () => je((e) => !e),
286
- className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm",
287
- children: [/* @__PURE__ */ d(ue, { size: 16 }), "Filter"]
288
- }), Ae && /* @__PURE__ */ f("div", {
289
- className: "absolute right-0 z-30 mt-2 w-64 rounded-xl border bg-white p-4 shadow-xl",
290
- children: [p.filters?.map((e) => /* @__PURE__ */ f("label", {
291
- className: "mb-3 block text-sm",
292
- children: [/* @__PURE__ */ d("span", {
293
- className: "mb-1 block font-medium",
294
- children: e.label
295
- }), /* @__PURE__ */ d("select", {
296
- value: y[e.key] || "all",
297
- onChange: (t) => be((n) => ({
298
- ...n,
299
- [e.key]: t.target.value
300
- })),
301
- className: "w-full rounded-lg border p-2",
302
- children: e.options.map((e) => /* @__PURE__ */ d("option", {
303
- value: e.value,
304
- children: e.label
305
- }, e.value))
306
- })]
307
- }, e.key)), /* @__PURE__ */ d("button", {
308
- onClick: () => be({}),
309
- className: "text-sm font-medium text-slate-600",
310
- children: "Clear filters"
311
- })]
312
- })]
313
- }),
314
- p.columnVisibility && /* @__PURE__ */ f("div", {
315
- ref: Le,
316
- className: "relative",
317
- children: [/* @__PURE__ */ f("button", {
318
- onClick: () => ke((e) => !e),
319
- className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm",
320
- children: [/* @__PURE__ */ d(te, { size: 16 }), "Columns"]
321
- }), Oe && /* @__PURE__ */ f("div", {
322
- className: "absolute right-0 z-30 mt-2 w-64 rounded-xl border bg-white p-3.5 shadow-xl",
323
- children: [
324
- /* @__PURE__ */ f("div", {
325
- className: "flex items-center justify-between pb-2 mb-2 border-b",
326
- children: [/* @__PURE__ */ d("span", {
327
- className: "text-xs font-semibold uppercase tracking-wider text-slate-500",
328
- children: "Columns & Layout"
329
- }), /* @__PURE__ */ f("button", {
330
- onClick: Re,
331
- className: "flex items-center gap-1 text-xs text-indigo-600 hover:text-indigo-800 font-medium",
332
- title: "Reset default layout",
333
- children: [/* @__PURE__ */ d(ce, { size: 12 }), "Reset"]
334
- })]
335
- }),
336
- /* @__PURE__ */ d("div", {
337
- className: "space-y-1 max-h-64 overflow-y-auto",
338
- children: E.map((e) => {
339
- let t = p.columns.find((t) => t.key === e);
340
- if (!t) return null;
341
- let n = w[e] !== !1;
342
- return /* @__PURE__ */ f("div", {
343
- draggable: !0,
344
- onDragStart: (e) => He(e, t.key),
345
- onDragOver: (e) => Ue(e, t.key),
346
- onDrop: (e) => We(e, t.key),
347
- className: `flex items-center justify-between p-2 text-sm rounded-lg hover:bg-slate-50 cursor-grab active:cursor-grabbing transition-colors ${O === t.key ? "opacity-30 bg-slate-100" : ""} ${De === t.key && O !== t.key ? "border-l-4 border-l-indigo-600 bg-indigo-50/60" : ""}`,
348
- children: [/* @__PURE__ */ f("div", {
349
- className: "flex items-center gap-2",
350
- children: [/* @__PURE__ */ d("span", {
351
- title: "Drag to reorder",
352
- className: "text-slate-300 hover:text-slate-500 cursor-grab",
353
- children: /* @__PURE__ */ d(oe, { size: 14 })
354
- }), /* @__PURE__ */ f("label", {
355
- className: "flex items-center gap-2 cursor-pointer select-none",
356
- children: [/* @__PURE__ */ d("input", {
357
- type: "checkbox",
358
- checked: n,
359
- onChange: () => T((e) => {
360
- let n = Object.values(e).filter(Boolean).length;
361
- return e[t.key] && n === 1 ? e : {
362
- ...e,
363
- [t.key]: !e[t.key]
364
- };
365
- }),
366
- className: "rounded text-indigo-600 focus:ring-indigo-500"
367
- }), /* @__PURE__ */ d("span", {
368
- className: n ? "font-medium text-slate-800" : "text-slate-400 line-through",
369
- children: t.label
370
- })]
371
- })]
372
- }), /* @__PURE__ */ f("span", {
373
- className: "text-xs text-slate-400 font-mono",
374
- children: [D[t.key] || 160, "px"]
375
- })]
376
- }, t.key);
377
- })
378
- }),
379
- /* @__PURE__ */ d("p", {
380
- className: "mt-2.5 pt-2 border-t text-[11px] text-slate-400 text-center",
381
- children: "Drag handles to reorder | Drag column edge to resize"
382
- })
383
- ]
384
- })]
385
- }),
386
- p.bulkEditable !== !1 && J.length > 0 && /* @__PURE__ */ f("button", {
387
- onClick: $e,
388
- className: `flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${z ? "border-indigo-500 bg-indigo-600 text-white" : j.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"}`,
389
- children: [
390
- /* @__PURE__ */ d(re, { size: 16 }),
391
- "Bulk Edit",
392
- j.length > 0 ? ` (${j.length})` : ""
393
- ]
394
- }),
395
- p.exportable && /* @__PURE__ */ f("button", {
396
- onClick: () => {
397
- let e = q.map((e) => e.label).join(","), t = X.map((e) => q.map((t) => `"${String(e[t.key] ?? "").replaceAll("\"", "\"\"")}"`).join(",")).join("\n"), n = new Blob([e + "\n" + t], { type: "text/csv" }), r = document.createElement("a");
398
- r.href = URL.createObjectURL(n), r.download = "table-export.csv", r.click(), URL.revokeObjectURL(r.href);
399
- },
400
- className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm",
401
- children: [/* @__PURE__ */ d(ne, { size: 16 }), "Export"]
402
- })
403
- ]
404
- })]
405
- })
406
- }),
407
- Ve && /* @__PURE__ */ d("div", {
408
- onDragOver: (e) => {
409
- e.preventDefault(), e.dataTransfer.dropEffect = "move";
410
- },
411
- onDrop: (e) => {
412
- e.preventDefault();
413
- let t = e.dataTransfer.getData("text/plain") || O;
414
- t && Ge(t);
415
- },
416
- className: `transition-all duration-200 overflow-hidden ${O ? "max-h-24 opacity-100 my-2" : "max-h-0 opacity-0 my-0 pointer-events-none"}`,
417
- children: /* @__PURE__ */ f("div", {
418
- 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",
419
- children: [/* @__PURE__ */ d(de, {
420
- size: 20,
421
- className: "text-rose-600 animate-bounce"
422
- }), /* @__PURE__ */ f("span", { children: ["Drop column header here to hide column ", /* @__PURE__ */ d("b", { children: p.columns.find((e) => e.key === O)?.label })] })]
423
- })
424
- }),
425
- z && /* @__PURE__ */ f("div", {
426
- 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",
427
- children: [/* @__PURE__ */ f("div", {
428
- className: "flex flex-wrap items-center gap-3",
429
- children: [/* @__PURE__ */ f("div", {
430
- className: "flex items-center gap-2",
431
- children: [/* @__PURE__ */ d(re, {
432
- size: 18,
433
- className: "text-indigo-600"
434
- }), /* @__PURE__ */ f("span", {
435
- className: "font-semibold text-slate-900 text-sm",
436
- children: [
437
- "Bulk Edit Mode (",
438
- Ke.length,
439
- " records):"
440
- ]
441
- })]
442
- }), /* @__PURE__ */ f("div", {
443
- className: "flex flex-wrap items-center gap-2",
444
- children: [/* @__PURE__ */ d("span", {
445
- className: "text-xs font-medium text-slate-600",
446
- children: "Select columns to edit:"
447
- }), J.map((e) => {
448
- let t = Fe.includes(e.key);
449
- return /* @__PURE__ */ f("button", {
450
- type: "button",
451
- onClick: () => {
452
- B(t ? (t) => t.filter((t) => t !== e.key) : (t) => [...t, e.key]);
453
- },
454
- 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"}`,
455
- children: [/* @__PURE__ */ d("span", {
456
- 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"}`,
457
- children: t && /* @__PURE__ */ d(i, {
458
- size: 10,
459
- strokeWidth: 3
460
- })
461
- }), /* @__PURE__ */ d("span", { children: e.label })]
462
- }, e.key);
463
- })]
464
- })]
465
- }), /* @__PURE__ */ f("div", {
466
- className: "flex items-center gap-2",
467
- children: [/* @__PURE__ */ f("button", {
468
- onClick: et,
469
- 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",
470
- children: [/* @__PURE__ */ d(fe, {
471
- size: 14,
472
- className: "text-rose-500"
473
- }), "Cancel"]
474
- }), /* @__PURE__ */ f("button", {
475
- onClick: tt,
476
- 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",
477
- children: [/* @__PURE__ */ d(i, { size: 14 }), "Save"]
478
- })]
479
- })]
480
- }),
481
- /* @__PURE__ */ f("div", {
482
- className: `${pe} overflow-hidden`,
483
- children: [/* @__PURE__ */ d("div", {
484
- className: "overflow-x-auto",
485
- children: /* @__PURE__ */ f("table", {
486
- ref: G,
487
- className: "min-w-full text-sm table-fixed",
488
- children: [/* @__PURE__ */ d("thead", {
489
- className: "border-b bg-slate-50",
490
- children: /* @__PURE__ */ f("tr", { children: [
491
- p.selectable && /* @__PURE__ */ d("th", {
492
- "data-cell": "-1-0",
493
- className: "w-12 px-4 py-3",
494
- children: /* @__PURE__ */ d("input", {
495
- type: "checkbox",
496
- checked: $.length > 0 && $.every((e) => j.includes(e.id)),
497
- onChange: (e) => Je(e.target.checked),
498
- onFocus: () => I({
499
- row: -1,
500
- col: 0
501
- })
502
- })
503
- }),
504
- q.map((e, t) => {
505
- let n = p.selectable ? t + 1 : t, r = O === e.key, i = De === e.key && O !== e.key, o = D[e.key] || e.width || 160;
506
- return /* @__PURE__ */ f("th", {
507
- "data-cell": `-1-${n}`,
508
- style: {
509
- width: `${o}px`,
510
- minWidth: `${o}px`
511
- },
512
- draggable: Y,
513
- onDragStart: (t) => He(t, e.key),
514
- onDragOver: (t) => Ue(t, e.key),
515
- onDragLeave: () => A(null),
516
- onDrop: (t) => We(t, e.key),
517
- onDragEnd: () => {
518
- k(null), A(null);
519
- },
520
- "aria-sort": b.key === e.key ? b.dir : "none",
521
- className: `group relative whitespace-nowrap px-4 py-3 text-left font-semibold text-slate-600 ${Y ? "cursor-grab active:cursor-grabbing" : ""} transition-colors select-none ${r ? "opacity-30 bg-slate-100" : ""} ${i ? "border-l-4 border-l-indigo-600 bg-indigo-50/60" : ""}`,
522
- children: [/* @__PURE__ */ f("div", {
523
- className: "flex items-center justify-between gap-1.5 pr-2",
524
- children: [/* @__PURE__ */ f("div", {
525
- className: "flex items-center gap-1.5 overflow-hidden",
526
- children: [Y && /* @__PURE__ */ d("span", {
527
- title: "Drag header to reorder",
528
- className: "text-slate-300 group-hover:text-slate-500 cursor-grab shrink-0",
529
- children: /* @__PURE__ */ d(oe, { size: 14 })
530
- }), /* @__PURE__ */ f("button", {
531
- disabled: !e.sortable,
532
- onClick: () => e.sortable && qe(e.key),
533
- className: `flex items-center gap-1 truncate ${e.sortable ? "hover:text-slate-900" : ""}`,
534
- children: [/* @__PURE__ */ d("span", {
535
- className: "truncate",
536
- children: e.label
537
- }), e.sortable && (b.key === e.key ? b.dir === "asc" ? /* @__PURE__ */ d(c, {
538
- size: 15,
539
- className: "shrink-0"
540
- }) : /* @__PURE__ */ d(a, {
541
- size: 15,
542
- className: "shrink-0"
543
- }) : /* @__PURE__ */ d(u, {
544
- size: 15,
545
- className: "text-slate-400 shrink-0"
546
- }))]
547
- })]
548
- }), /* @__PURE__ */ d("button", {
549
- type: "button",
550
- title: "Hide column",
551
- onClick: (t) => {
552
- t.stopPropagation(), Ge(e.key);
553
- },
554
- className: "opacity-0 group-hover:opacity-100 transition-opacity p-0.5 text-slate-400 hover:text-rose-600 rounded shrink-0",
555
- children: /* @__PURE__ */ d(ae, { size: 13 })
556
- })]
557
- }), /* @__PURE__ */ d("div", {
558
- draggable: !1,
559
- onMouseDown: (t) => ze(t, e.key),
560
- onDoubleClick: (t) => {
561
- t.stopPropagation(), we((t) => ({
562
- ...t,
563
- [e.key]: e.width || 160
564
- }));
565
- },
566
- title: "Drag to resize column width",
567
- 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 ${Te === e.key ? "bg-indigo-600 w-1" : ""}`
568
- })]
569
- }, e.key);
570
- }),
571
- (p.actions?.view || p.actions?.edit || p.actions?.delete) && /* @__PURE__ */ d("th", {
572
- className: "sticky right-0 bg-slate-50 px-4 py-3 text-right font-semibold text-slate-600 w-32",
573
- children: "Actions"
574
- })
575
- ] })
576
- }), /* @__PURE__ */ f("tbody", { children: [$.map((e, t) => {
577
- let n = Me === e.id, r = z && Ke.includes(e.id);
578
- return /* @__PURE__ */ f("tr", {
579
- className: `border-b last:border-0 ${n || r ? "bg-indigo-50/20" : "hover:bg-slate-50"}`,
580
- children: [
581
- p.selectable && /* @__PURE__ */ d("td", {
582
- "data-cell": `${t}-0`,
583
- className: "px-4 py-3",
584
- children: /* @__PURE__ */ d("input", {
585
- type: "checkbox",
586
- checked: j.includes(e.id),
587
- onChange: () => Ye(e.id),
588
- onFocus: () => I({
589
- row: t,
590
- col: 0
591
- })
592
- })
593
- }),
594
- q.map((i, a) => {
595
- let o = p.selectable ? a + 1 : a, s = r && Fe.includes(i.key) && i.editable !== !1, c = Be(i), ee = D[i.key] || i.width || 160, l = e[i.key], u = l == null ? "" : String(l), te = u.length > 25;
596
- return /* @__PURE__ */ d("td", {
597
- "data-cell": `${t}-${o}`,
598
- style: {
599
- width: `${ee}px`,
600
- minWidth: `${ee}px`
601
- },
602
- className: "px-4 py-3 truncate",
603
- tabIndex: -1,
604
- title: te ? u : void 0,
605
- children: n && i.editable !== !1 ? c ? /* @__PURE__ */ d("select", {
606
- value: L[i.key] ?? "",
607
- onChange: (e) => R({
608
- ...L,
609
- [i.key]: e.target.value
610
- }),
611
- onKeyDown: (e) => {
612
- e.key === "Enter" && Qe(), e.key === "Escape" && Ze();
613
- },
614
- 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",
615
- children: c.map((e) => {
616
- let t = typeof e == "object" ? e.value : e, n = typeof e == "object" ? e.label : e;
617
- return /* @__PURE__ */ d("option", {
618
- value: t,
619
- children: n
620
- }, t);
621
- })
622
- }) : /* @__PURE__ */ d("input", {
623
- type: "text",
624
- value: L[i.key] ?? "",
625
- onChange: (e) => R({
626
- ...L,
627
- [i.key]: e.target.value
628
- }),
629
- onKeyDown: (e) => {
630
- e.key === "Enter" && Qe(), e.key === "Escape" && Ze();
631
- },
632
- 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"
633
- }) : s ? c ? /* @__PURE__ */ d("select", {
634
- value: V[e.id]?.[i.key] ?? e[i.key] ?? "",
635
- onChange: (t) => H((n) => ({
636
- ...n,
637
- [e.id]: {
638
- ...n[e.id] || e,
639
- [i.key]: t.target.value
640
- }
641
- })),
642
- onKeyDown: (e) => {
643
- e.key === "Enter" && tt(), e.key === "Escape" && et();
644
- },
645
- 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",
646
- children: c.map((e) => {
647
- let t = typeof e == "object" ? e.value : e, n = typeof e == "object" ? e.label : e;
648
- return /* @__PURE__ */ d("option", {
649
- value: t,
650
- children: n
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
- let e = "react-flexi-datatable-styles";
875
- if (!document.getElementById(e)) {
876
- let t = document.createElement("style");
877
- t.id = e, t.textContent = m, document.head.appendChild(t);
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
- var h = p;
881
- //#endregion
882
- export { p as DataTable, h as default };
686
+ export {
687
+ Zt as DataTable,
688
+ Zt as default
689
+ };