react-flexi-datatable 1.0.5 → 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,928 +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"
9
- }, p = {
10
- default: {
11
- header: "bg-slate-50 text-slate-600",
12
- footer: "bg-white text-slate-500",
13
- toolbar: "bg-white text-slate-900"
14
- },
15
- dark: {
16
- header: "bg-slate-900 text-slate-100",
17
- footer: "bg-slate-900 text-slate-300",
18
- toolbar: "bg-slate-900 text-slate-100"
19
- },
20
- indigo: {
21
- header: "bg-indigo-900 text-indigo-100",
22
- footer: "bg-indigo-50 text-indigo-800",
23
- toolbar: "bg-indigo-50/50 text-indigo-900"
24
- },
25
- emerald: {
26
- header: "bg-emerald-900 text-emerald-100",
27
- footer: "bg-emerald-50 text-emerald-800",
28
- toolbar: "bg-emerald-50/50 text-emerald-900"
29
- },
30
- slate: {
31
- header: "bg-slate-800 text-slate-100",
32
- footer: "bg-slate-100 text-slate-700",
33
- toolbar: "bg-slate-100 text-slate-800"
34
- },
35
- blue: {
36
- header: "bg-blue-900 text-blue-100",
37
- footer: "bg-blue-50 text-blue-800",
38
- toolbar: "bg-blue-50/50 text-blue-900"
39
- }
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
+ }
40
35
  };
41
- function m({ config: m, data: h = [], onView: g, onEdit: he, onDelete: ge, onBulkEdit: _e }) {
42
- let _ = `table_cols_${m.id || m.title || "default"}`, [ve, ye] = r(h), [v, be] = r(""), [y, xe] = r({}), [b, Se] = r({
43
- key: null,
44
- dir: null
45
- }), [Ce, x] = r(1), [S, we] = r(m.pageSize || 10), [C, Te] = r(() => {
46
- try {
47
- let e = localStorage.getItem(`${_}_visible`);
48
- if (e) return JSON.parse(e);
49
- } catch {}
50
- return Object.fromEntries(m.columns.map((e) => [e.key, e.visible !== !1]));
51
- }), [w, Ee] = r(() => {
52
- try {
53
- let e = localStorage.getItem(`${_}_order`);
54
- if (e) return JSON.parse(e);
55
- } catch {}
56
- return m.columns.map((e) => e.key);
57
- }), [T, De] = r(() => {
58
- try {
59
- let e = localStorage.getItem(`${_}_widths`);
60
- if (e) return JSON.parse(e);
61
- } catch {}
62
- return Object.fromEntries(m.columns.map((e) => [e.key, e.width || 160]));
63
- }), [Oe, ke] = r(null), [E, D] = r(null), [Ae, O] = r(null), [k, A] = r([]), [j, M] = r(null), [je, Me] = r(!1), [Ne, Pe] = r(!1), [N, P] = r({
64
- row: 0,
65
- col: 0
66
- }), [Fe, Ie] = r(null), [F, I] = r({}), [L, Le] = r(!1), [Re, R] = r([]), [z, B] = r({}), [V, H] = r(1), ze = n(null), Be = n(null), Ve = n(null), U = n(null);
67
- e(() => {
68
- m.searchable && U.current && U.current.focus();
69
- }, [m.searchable]), e(() => {
70
- let e = (e) => {
71
- Be.current && !Be.current.contains(e.target) && Pe(!1), Ve.current && !Ve.current.contains(e.target) && Me(!1);
72
- };
73
- return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
74
- }, []), e(() => ye(h), [h]), e(() => x(1), [
75
- v,
76
- y,
77
- S
78
- ]), e(() => {
79
- try {
80
- localStorage.setItem(`${_}_order`, JSON.stringify(w));
81
- } catch {}
82
- }, [w, _]), e(() => {
83
- try {
84
- localStorage.setItem(`${_}_visible`, JSON.stringify(C));
85
- } catch {}
86
- }, [C, _]), e(() => {
87
- try {
88
- localStorage.setItem(`${_}_widths`, JSON.stringify(T));
89
- } catch {}
90
- }, [T, _]);
91
- let He = () => {
92
- let e = m.columns.map((e) => e.key), t = Object.fromEntries(m.columns.map((e) => [e.key, e.visible !== !1])), n = Object.fromEntries(m.columns.map((e) => [e.key, e.width || 160]));
93
- Ee(e), Te(t), De(n);
94
- try {
95
- localStorage.removeItem(`${_}_order`), localStorage.removeItem(`${_}_visible`), localStorage.removeItem(`${_}_widths`);
96
- } catch {}
97
- }, Ue = (e, t) => {
98
- e.preventDefault(), e.stopPropagation();
99
- let n = e.clientX, r = T[t] || 160, i = (e) => {
100
- let i = e.clientX - n, a = Math.max(70, r + i);
101
- De((e) => ({
102
- ...e,
103
- [t]: a
104
- }));
105
- }, a = () => {
106
- document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", a), ke(null);
107
- };
108
- ke(t), document.addEventListener("mousemove", i), document.addEventListener("mouseup", a);
109
- }, W = t(() => {
110
- let e = Object.fromEntries(m.columns.map((e) => [e.key, e]));
111
- return w.map((t) => e[t]).filter((e) => e && C[e.key]);
112
- }, [
113
- m.columns,
114
- w,
115
- C
116
- ]), We = t(() => m.columns.filter((e) => e.editable !== !1), [m.columns]), Ge = (e) => {
117
- if (e.options) return e.options;
118
- let t = m.filters?.find((t) => t.key === e.key);
119
- return t?.options ? t.options.filter((e) => e.value !== "all").map((e) => e.value) : null;
120
- }, G = m.columnordering !== !1 && m.columnOrdering !== !1, Ke = G && m.dropcolumn !== !1 && m.dropColumn !== !1, qe = m.columnwidth !== !1 && m.columnWidth !== !1 && m.resizable !== !1 && m.columnResizing !== !1, K = m.selectable !== !1 && m.checkbox !== !1 && m.checkboxes !== !1 && m.selection !== !1 && (m.selectable || m.checkbox || m.checkboxes || m.selection || !1), Je = m.pagination !== !1, Ye = Je && !!(m.topPagination || m.toppagination || m.paginationTop), Xe = Je && m.bottomPagination !== !1, q = m.theme, Ze = typeof q == "string" && p[q], Qe = m.headerTheme || (typeof q == "object" ? q.header : null) || (Ze ? p[q].header : "bg-slate-50 text-slate-600"), $e = m.footerTheme || (typeof q == "object" ? q.footer : null) || (Ze ? p[q].footer : "bg-white text-slate-500"), et = m.toolbarTheme || (typeof q == "object" ? q.toolbar : null) || (Ze ? p[q].toolbar : "bg-white"), J = m.tableWidth ?? m.tablewidth ?? m.width, Y = m.tableHeight ?? m.tableheight ?? m.height, tt = J && J !== "auto" && J !== !0 ? typeof J == "number" ? `${J}px` : J : "100%", nt = !!(m.tabledatavertivallscroll || m.tableDataVerticalScroll || m.verticalScroll), rt = Y && Y !== "auto" && Y !== !0 ? typeof Y == "number" ? `${Y}px` : Y : nt ? "320px" : null, it = m.tabledatavertivallscroll !== !1 && m.tableDataVerticalScroll !== !1 && m.verticalScroll !== !1 && !!(nt || rt), at = m.tabledatahorizontalscroll !== !1 && m.tableDataHorizontalScroll !== !1 && m.horizontalScroll !== !1, ot = (e, t) => {
121
- G && (D(t), e.dataTransfer.setData("text/plain", t), e.dataTransfer.effectAllowed = "move");
122
- }, st = (e, t) => {
123
- e.preventDefault(), Ke && (e.dataTransfer.dropEffect = "move", Ae !== t && O(t));
124
- }, ct = (e, t) => {
125
- e.preventDefault(), e.stopPropagation();
126
- let n = e.dataTransfer.getData("text/plain") || E;
127
- n && n !== t && Ee((e) => {
128
- let r = [...e], i = r.indexOf(n), a = r.indexOf(t);
129
- return i !== -1 && a !== -1 && (r.splice(i, 1), r.splice(a, 0, n)), r;
130
- }), D(null), O(null);
131
- }, lt = (e) => {
132
- e && (Te((t) => Object.values(t).filter(Boolean).length <= 1 ? t : {
133
- ...t,
134
- [e]: !1
135
- }), D(null), O(null));
136
- }, X = t(() => {
137
- let e = [...ve];
138
- if (v.trim()) {
139
- let t = v.toLowerCase(), n = m.columns.filter((e) => e.searchable !== !1).map((e) => e.key);
140
- e = e.filter((e) => n.some((n) => String(e[n] ?? "").toLowerCase().includes(t)));
141
- }
142
- return Object.entries(y).forEach(([t, n]) => {
143
- n && n !== "all" && (e = e.filter((e) => String(e[t]) === String(n)));
144
- }), b.key && e.sort((e, t) => {
145
- let n = String(e[b.key] ?? "").toLowerCase(), r = String(t[b.key] ?? "").toLowerCase(), i = n.localeCompare(r, void 0, { numeric: !0 });
146
- return b.dir === "asc" ? i : -i;
147
- }), e;
148
- }, [
149
- ve,
150
- v,
151
- y,
152
- b,
153
- m.columns
154
- ]), Z = Math.max(1, Math.ceil(X.length / S)), Q = Math.min(Ce, Z), $ = X.slice((Q - 1) * S, Q * S), ut = t(() => k.length > 0 ? k : $.map((e) => e.id), [k, $]), dt = (e) => {
155
- if (b.key !== e) return Se({
156
- key: e,
157
- dir: "asc"
158
- });
159
- if (b.dir === "asc") return Se({
160
- key: e,
161
- dir: "desc"
162
- });
163
- Se({
164
- key: null,
165
- dir: null
166
- });
167
- }, ft = (e) => A(e ? $.map((e) => e.id) : []), pt = (e) => A((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), mt = (e) => {
168
- Ie(e.id), I({ ...e });
169
- }, ht = () => {
170
- Ie(null), I({});
171
- }, gt = () => {
172
- ye((e) => e.map((e) => e.id === Fe ? F : e)), he?.(F), Ie(null), I({});
173
- }, _t = () => {
174
- let e = {}, t = k.length > 0 ? k : $.map((e) => e.id);
175
- ve.forEach((n) => {
176
- t.includes(n.id) && (e[n.id] = { ...n });
177
- }), B(e), R(We.map((e) => e.key)), Le(!0);
178
- }, vt = () => {
179
- Le(!1), B({}), R([]);
180
- }, yt = () => {
181
- let e = k.length > 0 ? k : $.map((e) => e.id);
182
- ye((t) => t.map((t) => e.includes(t.id) && z[t.id] || t)), _e?.(e, z), Le(!1), B({}), R([]);
183
- }, bt = () => {
184
- ye((e) => e.filter((e) => e.id !== j.id)), A((e) => e.filter((e) => e !== j.id)), M(null), ge?.(j);
185
- }, xt = () => {
186
- let e = W.map((e) => e.label).join(","), t = X.map((e) => W.map((t) => `"${String(e[t.key] ?? "").replaceAll("\"", "\"\"")}"`).join(",")).join("\n"), n = new Blob([e + "\n" + t], { type: "text/csv" }), r = document.createElement("a");
187
- r.href = URL.createObjectURL(n), r.download = "table-export.csv", r.click(), URL.revokeObjectURL(r.href);
188
- };
189
- e(() => {
190
- let e = (e) => {
191
- if (!m.keyboardNavigation || !$.length) return;
192
- let t = document.activeElement;
193
- if (t && (["TEXTAREA"].includes(t.tagName) || t.tagName === "INPUT" && t.type !== "checkbox" || t.tagName === "SELECT")) return;
194
- let n = !!(m.actions?.view || m.actions?.edit || m.actions?.delete), r = W.length + +!!K, i = W.length + +!!K + +!!n, a = t?.closest("[data-cell]"), o = N.row, s = N.col;
195
- if (a) {
196
- let e = a.getAttribute("data-cell");
197
- if (e) {
198
- let t = e.split("-").map(Number);
199
- t.length === 2 && !isNaN(t[0]) && !isNaN(t[1]) && (o = t[0], s = t[1]);
200
- }
201
- }
202
- if (e.key === "ArrowDown") {
203
- e.preventDefault();
204
- let t = Math.min($.length - 1, o + 1);
205
- P({
206
- row: t,
207
- col: s
208
- });
209
- } else if (e.key === "ArrowUp") {
210
- e.preventDefault();
211
- let t = Math.max(-1, o - 1);
212
- P({
213
- row: t,
214
- col: s
215
- });
216
- } else if (e.key === "ArrowRight") {
217
- if (e.preventDefault(), n && s === r) {
218
- let e = ze.current?.querySelector(`[data-cell="${o}-${s}"]`), t = e ? Array.from(e.querySelectorAll("button")) : [];
219
- if (V < t.length - 1) {
220
- H((e) => e + 1);
221
- return;
222
- }
223
- }
224
- let t = Math.min(i - 1, s + 1);
225
- P({
226
- row: o,
227
- col: t
228
- });
229
- } else if (e.key === "ArrowLeft") {
230
- if (e.preventDefault(), n && s === r && V > 0) {
231
- H((e) => e - 1);
232
- return;
233
- }
234
- let t = Math.max(0, s - 1);
235
- P({
236
- row: o,
237
- col: t
238
- });
239
- } else if (e.key === "Enter" || e.key === " ") {
240
- if (o === -1) {
241
- if (K && s === 0) e.preventDefault(), ft($.length > 0 && !$.every((e) => k.includes(e.id)));
242
- else {
243
- let t = K ? s - 1 : s, n = W[t];
244
- n && n.sortable && (e.preventDefault(), dt(n.key));
245
- }
246
- } else {
247
- let i = $[o];
248
- t && (t.type === "checkbox" || t.tagName === "BUTTON") ? (e.key === "Enter" || e.key === " ") && (e.preventDefault(), t.click()) : i && (K && s === 0 ? (e.preventDefault(), pt(i.id)) : n && s === r ? (e.preventDefault(), mt(i)) : e.key === "Enter" && (e.preventDefault(), g?.(i)));
249
- }
250
- }
251
- };
252
- return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
253
- }, [
254
- m.keyboardNavigation,
255
- $,
256
- W,
257
- N,
258
- V,
259
- pt,
260
- ft,
261
- dt,
262
- g,
263
- K,
264
- k
265
- ]), e(() => {
266
- if (!m.keyboardNavigation || !ze.current || document.activeElement === U.current) return;
267
- let e = ze.current.querySelector(`[data-cell="${N.row}-${N.col}"]`);
268
- if (e) {
269
- let t = Array.from(e.querySelectorAll("input, button, select"));
270
- t.length > 0 ? (t[Math.min(V, t.length - 1)] || t[0]).focus() : e.focus();
271
- }
272
- }, [
273
- N,
274
- V,
275
- m.keyboardNavigation,
276
- $
277
- ]);
278
- let St = (e = "bottom") => !Je || e === "top" && !Ye || e === "bottom" && !Xe ? null : /* @__PURE__ */ f("div", {
279
- 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 ${$e}`,
280
- children: [/* @__PURE__ */ f("div", {
281
- className: "text-sm opacity-85",
282
- children: [
283
- "Showing ",
284
- X.length ? (Q - 1) * S + 1 : 0,
285
- "–",
286
- Math.min(Q * S, X.length),
287
- " of ",
288
- X.length
289
- ]
290
- }), /* @__PURE__ */ f("div", {
291
- className: "flex items-center gap-2",
292
- children: [
293
- m.pageSizeOptions && m.pageSizeOptions.length > 0 && /* @__PURE__ */ d("select", {
294
- value: S,
295
- onChange: (e) => we(Number(e.target.value)),
296
- 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",
297
- children: m.pageSizeOptions.map((e) => /* @__PURE__ */ f("option", {
298
- value: e,
299
- children: [e, "/page"]
300
- }, e))
301
- }),
302
- /* @__PURE__ */ d("button", {
303
- disabled: Q === 1,
304
- onClick: () => x(1),
305
- 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",
306
- title: "First page",
307
- children: /* @__PURE__ */ d(ee, { size: 16 })
308
- }),
309
- /* @__PURE__ */ d("button", {
310
- disabled: Q === 1,
311
- onClick: () => x((e) => Math.max(1, e - 1)),
312
- 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",
313
- title: "Previous page",
314
- children: /* @__PURE__ */ d(o, { size: 16 })
315
- }),
316
- /* @__PURE__ */ f("span", {
317
- className: "px-2 text-sm opacity-90",
318
- children: [
319
- "Page ",
320
- Q,
321
- " of ",
322
- Z
323
- ]
324
- }),
325
- /* @__PURE__ */ d("button", {
326
- disabled: Q === Z,
327
- onClick: () => x((e) => Math.min(Z, e + 1)),
328
- 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",
329
- title: "Next page",
330
- children: /* @__PURE__ */ d(s, { size: 16 })
331
- }),
332
- /* @__PURE__ */ d("button", {
333
- disabled: Q === Z,
334
- onClick: () => x(Z),
335
- 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",
336
- title: "Last page",
337
- children: /* @__PURE__ */ d(l, { size: 16 })
338
- })
339
- ]
340
- })]
341
- }, e);
342
- return /* @__PURE__ */ f("div", {
343
- className: "space-y-3",
344
- style: {
345
- width: tt,
346
- maxWidth: "100%"
347
- },
348
- children: [
349
- /* @__PURE__ */ d("div", {
350
- className: `${pe} p-4 ${et}`,
351
- children: /* @__PURE__ */ f("div", {
352
- className: "flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",
353
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
354
- className: "text-lg font-semibold",
355
- children: m.title
356
- }), /* @__PURE__ */ f("p", {
357
- className: "text-sm text-slate-500",
358
- children: [X.length, " records"]
359
- })] }), /* @__PURE__ */ f("div", {
360
- className: "flex flex-wrap gap-2",
361
- children: [
362
- !!m.searchable && /* @__PURE__ */ f("div", {
363
- className: "relative",
364
- children: [
365
- /* @__PURE__ */ d(le, {
366
- size: 16,
367
- className: "absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"
368
- }),
369
- /* @__PURE__ */ d("input", {
370
- ref: U,
371
- autoFocus: !0,
372
- value: v,
373
- onChange: (e) => be(e.target.value),
374
- placeholder: "Search...",
375
- 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"
376
- }),
377
- v && /* @__PURE__ */ d("button", {
378
- onClick: () => {
379
- be(""), U.current?.focus();
380
- },
381
- className: "absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",
382
- children: /* @__PURE__ */ d(fe, { size: 15 })
383
- })
384
- ]
385
- }),
386
- !!(m.filterable !== !1 && m.filters && m.filters.length > 0) && /* @__PURE__ */ f("div", {
387
- ref: Be,
388
- className: "relative",
389
- children: [/* @__PURE__ */ f("button", {
390
- onClick: () => Pe((e) => !e),
391
- className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm",
392
- children: [/* @__PURE__ */ d(ue, { size: 16 }), "Filter"]
393
- }), Ne && /* @__PURE__ */ f("div", {
394
- className: "absolute right-0 z-30 mt-2 w-64 rounded-xl border bg-white p-4 shadow-xl",
395
- children: [m.filters?.map((e) => /* @__PURE__ */ f("label", {
396
- className: "mb-3 block text-sm",
397
- children: [/* @__PURE__ */ d("span", {
398
- className: "mb-1 block font-medium",
399
- children: e.label
400
- }), /* @__PURE__ */ d("select", {
401
- value: y[e.key] || "all",
402
- onChange: (t) => xe((n) => ({
403
- ...n,
404
- [e.key]: t.target.value
405
- })),
406
- className: "w-full rounded-lg border p-2",
407
- children: e.options.map((e) => /* @__PURE__ */ d("option", {
408
- value: e.value,
409
- children: e.label
410
- }, e.value))
411
- })]
412
- }, e.key)), /* @__PURE__ */ d("button", {
413
- onClick: () => xe({}),
414
- className: "text-sm font-medium text-slate-600",
415
- children: "Clear filters"
416
- })]
417
- })]
418
- }),
419
- !!m.columnVisibility && /* @__PURE__ */ f("div", {
420
- ref: Ve,
421
- className: "relative",
422
- children: [/* @__PURE__ */ f("button", {
423
- onClick: () => Me((e) => !e),
424
- className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm",
425
- children: [/* @__PURE__ */ d(te, { size: 16 }), "Columns"]
426
- }), je && /* @__PURE__ */ f("div", {
427
- className: "absolute right-0 z-30 mt-2 w-64 rounded-xl border bg-white p-3.5 shadow-xl",
428
- children: [
429
- /* @__PURE__ */ f("div", {
430
- className: "flex items-center justify-between pb-2 mb-2 border-b",
431
- children: [/* @__PURE__ */ d("span", {
432
- className: "text-xs font-semibold uppercase tracking-wider text-slate-500",
433
- children: "Columns & Layout"
434
- }), /* @__PURE__ */ f("button", {
435
- onClick: He,
436
- className: "flex items-center gap-1 text-xs text-indigo-600 hover:text-indigo-800 font-medium",
437
- title: "Reset default layout",
438
- children: [/* @__PURE__ */ d(ce, { size: 12 }), "Reset"]
439
- })]
440
- }),
441
- /* @__PURE__ */ d("div", {
442
- className: "space-y-1 max-h-64 overflow-y-auto",
443
- children: w.map((e) => {
444
- let t = m.columns.find((t) => t.key === e);
445
- if (!t) return null;
446
- let n = C[e] !== !1;
447
- return /* @__PURE__ */ f("div", {
448
- draggable: !0,
449
- onDragStart: (e) => ot(e, t.key),
450
- onDragOver: (e) => st(e, t.key),
451
- onDrop: (e) => ct(e, t.key),
452
- className: `flex items-center justify-between p-2 text-sm rounded-lg hover:bg-slate-50 cursor-grab active:cursor-grabbing transition-colors ${E === t.key ? "opacity-30 bg-slate-100" : ""} ${Ae === t.key && E !== t.key ? "border-l-4 border-l-indigo-600 bg-indigo-50/60" : ""}`,
453
- children: [/* @__PURE__ */ f("div", {
454
- className: "flex items-center gap-2",
455
- children: [/* @__PURE__ */ d("span", {
456
- title: "Drag to reorder",
457
- className: "text-slate-300 hover:text-slate-500 cursor-grab",
458
- children: /* @__PURE__ */ d(oe, { size: 14 })
459
- }), /* @__PURE__ */ f("label", {
460
- className: "flex items-center gap-2 cursor-pointer select-none",
461
- children: [/* @__PURE__ */ d("input", {
462
- type: "checkbox",
463
- checked: n,
464
- onChange: () => Te((e) => {
465
- let n = Object.values(e).filter(Boolean).length;
466
- return e[t.key] && n === 1 ? e : {
467
- ...e,
468
- [t.key]: !e[t.key]
469
- };
470
- }),
471
- className: "rounded text-indigo-600 focus:ring-indigo-500"
472
- }), /* @__PURE__ */ d("span", {
473
- className: n ? "font-medium text-slate-800" : "text-slate-400 line-through",
474
- children: t.label
475
- })]
476
- })]
477
- }), qe && /* @__PURE__ */ f("span", {
478
- className: "text-xs text-slate-400 font-mono",
479
- children: [T[t.key] || 160, "px"]
480
- })]
481
- }, t.key);
482
- })
483
- }),
484
- /* @__PURE__ */ d("p", {
485
- className: "mt-2.5 pt-2 border-t text-[11px] text-slate-400 text-center",
486
- children: G && qe ? "Drag handles to reorder | Drag column edge to resize" : G ? "Drag handles to reorder" : qe ? "Drag column edge to resize" : "Column layout options"
487
- })
488
- ]
489
- })]
490
- }),
491
- m.bulkEditable !== !1 && We.length > 0 && /* @__PURE__ */ f("button", {
492
- onClick: _t,
493
- className: `flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${L ? "border-indigo-500 bg-indigo-600 text-white" : k.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"}`,
494
- children: [
495
- /* @__PURE__ */ d(re, { size: 16 }),
496
- "Bulk Edit",
497
- k.length > 0 ? ` (${k.length})` : ""
498
- ]
499
- }),
500
- m.exportable && /* @__PURE__ */ f("button", {
501
- onClick: xt,
502
- className: "flex items-center gap-2 rounded-lg border border-slate-200 px-3 py-2 text-sm",
503
- children: [/* @__PURE__ */ d(ne, { size: 16 }), "Export"]
504
- })
505
- ]
506
- })]
507
- })
508
- }),
509
- Ke && /* @__PURE__ */ d("div", {
510
- onDragOver: (e) => {
511
- e.preventDefault(), e.dataTransfer.dropEffect = "move";
512
- },
513
- onDrop: (e) => {
514
- e.preventDefault();
515
- let t = e.dataTransfer.getData("text/plain") || E;
516
- t && lt(t);
517
- },
518
- className: `transition-all duration-200 overflow-hidden ${E ? "max-h-24 opacity-100 my-2" : "max-h-0 opacity-0 my-0 pointer-events-none"}`,
519
- children: /* @__PURE__ */ f("div", {
520
- 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",
521
- children: [/* @__PURE__ */ d(de, {
522
- size: 20,
523
- className: "text-rose-600 animate-bounce"
524
- }), /* @__PURE__ */ f("span", { children: ["Drop column header here to hide column ", /* @__PURE__ */ d("b", { children: m.columns.find((e) => e.key === E)?.label })] })]
525
- })
526
- }),
527
- L && /* @__PURE__ */ f("div", {
528
- 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",
529
- children: [/* @__PURE__ */ f("div", {
530
- className: "flex flex-wrap items-center gap-3",
531
- children: [/* @__PURE__ */ f("div", {
532
- className: "flex items-center gap-2",
533
- children: [/* @__PURE__ */ d(re, {
534
- size: 18,
535
- className: "text-indigo-600"
536
- }), /* @__PURE__ */ f("span", {
537
- className: "font-semibold text-slate-900 text-sm",
538
- children: [
539
- "Bulk Edit Mode (",
540
- ut.length,
541
- " records):"
542
- ]
543
- })]
544
- }), /* @__PURE__ */ f("div", {
545
- className: "flex flex-wrap items-center gap-2",
546
- children: [/* @__PURE__ */ d("span", {
547
- className: "text-xs font-medium text-slate-600",
548
- children: "Select columns to edit:"
549
- }), We.map((e) => {
550
- let t = Re.includes(e.key);
551
- return /* @__PURE__ */ f("button", {
552
- type: "button",
553
- onClick: () => {
554
- R(t ? (t) => t.filter((t) => t !== e.key) : (t) => [...t, e.key]);
555
- },
556
- 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"}`,
557
- children: [/* @__PURE__ */ d("span", {
558
- 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"}`,
559
- children: t && /* @__PURE__ */ d(i, {
560
- size: 10,
561
- strokeWidth: 3
562
- })
563
- }), /* @__PURE__ */ d("span", { children: e.label })]
564
- }, e.key);
565
- })]
566
- })]
567
- }), /* @__PURE__ */ f("div", {
568
- className: "flex items-center gap-2",
569
- children: [/* @__PURE__ */ f("button", {
570
- onClick: vt,
571
- 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",
572
- children: [/* @__PURE__ */ d(fe, {
573
- size: 14,
574
- className: "text-rose-500"
575
- }), "Cancel"]
576
- }), /* @__PURE__ */ f("button", {
577
- onClick: yt,
578
- 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",
579
- children: [/* @__PURE__ */ d(i, { size: 14 }), "Save"]
580
- })]
581
- })]
582
- }),
583
- /* @__PURE__ */ f("div", {
584
- className: `${pe} overflow-hidden`,
585
- children: [
586
- St("top"),
587
- /* @__PURE__ */ d("div", {
588
- style: { maxHeight: rt || void 0 },
589
- className: `${at ? "overflow-x-auto" : ""} ${it ? "overflow-y-auto" : ""}`,
590
- children: /* @__PURE__ */ f("table", {
591
- ref: ze,
592
- className: "min-w-full text-sm table-fixed",
593
- children: [/* @__PURE__ */ d("thead", {
594
- className: `sticky top-0 z-20 border-b border-slate-200 ${Qe}`,
595
- children: /* @__PURE__ */ f("tr", { children: [
596
- K && /* @__PURE__ */ d("th", {
597
- "data-cell": "-1-0",
598
- className: "w-12 px-4 py-3",
599
- children: /* @__PURE__ */ d("input", {
600
- type: "checkbox",
601
- checked: $.length > 0 && $.every((e) => k.includes(e.id)),
602
- onChange: (e) => ft(e.target.checked),
603
- onFocus: () => P({
604
- row: -1,
605
- col: 0
606
- })
607
- })
608
- }),
609
- W.map((e, t) => {
610
- let n = K ? t + 1 : t, r = E === e.key, i = Ae === e.key && E !== e.key, o = T[e.key] || e.width || 160;
611
- return /* @__PURE__ */ f("th", {
612
- "data-cell": `-1-${n}`,
613
- style: {
614
- width: `${o}px`,
615
- minWidth: `${o}px`
616
- },
617
- draggable: G,
618
- onDragStart: (t) => ot(t, e.key),
619
- onDragOver: (t) => st(t, e.key),
620
- onDragLeave: () => O(null),
621
- onDrop: (t) => ct(t, e.key),
622
- onDragEnd: () => {
623
- D(null), O(null);
624
- },
625
- "aria-sort": b.key === e.key ? b.dir : "none",
626
- className: `group relative whitespace-nowrap px-4 py-3 text-left font-semibold ${G ? "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" : ""}`,
627
- children: [/* @__PURE__ */ f("div", {
628
- className: "flex items-center justify-between gap-1.5 pr-2",
629
- children: [/* @__PURE__ */ f("div", {
630
- className: "flex items-center gap-1.5 overflow-hidden",
631
- children: [G && /* @__PURE__ */ d("span", {
632
- title: "Drag header to reorder",
633
- className: "opacity-60 group-hover:opacity-100 cursor-grab shrink-0",
634
- children: /* @__PURE__ */ d(oe, { size: 14 })
635
- }), /* @__PURE__ */ f("button", {
636
- disabled: !e.sortable,
637
- onClick: () => e.sortable && dt(e.key),
638
- className: `flex items-center gap-1 truncate ${e.sortable ? "hover:opacity-80" : ""}`,
639
- children: [/* @__PURE__ */ d("span", {
640
- className: "truncate",
641
- children: e.label
642
- }), e.sortable && (b.key === e.key ? b.dir === "asc" ? /* @__PURE__ */ d(c, {
643
- size: 15,
644
- className: "shrink-0"
645
- }) : /* @__PURE__ */ d(a, {
646
- size: 15,
647
- className: "shrink-0"
648
- }) : /* @__PURE__ */ d(u, {
649
- size: 15,
650
- className: "opacity-50 shrink-0"
651
- }))]
652
- })]
653
- }), /* @__PURE__ */ d("button", {
654
- type: "button",
655
- title: "Hide column",
656
- onClick: (t) => {
657
- t.stopPropagation(), lt(e.key);
658
- },
659
- className: "opacity-0 group-hover:opacity-100 transition-opacity p-0.5 hover:text-rose-400 rounded shrink-0",
660
- children: /* @__PURE__ */ d(ae, { size: 13 })
661
- })]
662
- }), qe && /* @__PURE__ */ d("div", {
663
- draggable: !1,
664
- onMouseDown: (t) => Ue(t, e.key),
665
- onDoubleClick: (t) => {
666
- t.stopPropagation(), De((t) => ({
667
- ...t,
668
- [e.key]: e.width || 160
669
- }));
670
- },
671
- title: "Drag to resize column width",
672
- 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 ${Oe === e.key ? "bg-indigo-600 w-1" : ""}`
673
- })]
674
- }, e.key);
675
- }),
676
- (m.actions?.view || m.actions?.edit || m.actions?.delete) && /* @__PURE__ */ d("th", {
677
- className: `sticky right-0 top-0 z-30 px-4 py-3 text-right font-semibold w-32 ${Qe}`,
678
- children: "Actions"
679
- })
680
- ] })
681
- }), /* @__PURE__ */ f("tbody", { children: [$.map((e, t) => {
682
- let n = Fe === e.id, r = L && ut.includes(e.id);
683
- return /* @__PURE__ */ f("tr", {
684
- className: `border-b last:border-0 ${n || r ? "bg-indigo-50/20" : "hover:bg-slate-50"}`,
685
- children: [
686
- K && /* @__PURE__ */ d("td", {
687
- "data-cell": `${t}-0`,
688
- className: "px-4 py-3",
689
- children: /* @__PURE__ */ d("input", {
690
- type: "checkbox",
691
- checked: k.includes(e.id),
692
- onChange: () => pt(e.id),
693
- onFocus: () => P({
694
- row: t,
695
- col: 0
696
- })
697
- })
698
- }),
699
- W.map((i, a) => {
700
- let o = K ? a + 1 : a, s = r && Re.includes(i.key) && i.editable !== !1, c = Ge(i), ee = T[i.key] || i.width || 160, l = e[i.key], u = l == null ? "" : String(l), te = u.length > 25;
701
- return /* @__PURE__ */ d("td", {
702
- "data-cell": `${t}-${o}`,
703
- style: {
704
- width: `${ee}px`,
705
- minWidth: `${ee}px`
706
- },
707
- className: "px-4 py-3 truncate",
708
- tabIndex: -1,
709
- title: te ? u : void 0,
710
- children: n && i.editable !== !1 ? c ? /* @__PURE__ */ d("select", {
711
- value: F[i.key] ?? "",
712
- onChange: (e) => I({
713
- ...F,
714
- [i.key]: e.target.value
715
- }),
716
- onKeyDown: (e) => {
717
- e.key === "Enter" && gt(), e.key === "Escape" && ht();
718
- },
719
- 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",
720
- children: c.map((e) => {
721
- let t = typeof e == "object" ? e.value : e, n = typeof e == "object" ? e.label : e;
722
- return /* @__PURE__ */ d("option", {
723
- value: t,
724
- children: n
725
- }, t);
726
- })
727
- }) : /* @__PURE__ */ d("input", {
728
- type: "text",
729
- value: F[i.key] ?? "",
730
- onChange: (e) => I({
731
- ...F,
732
- [i.key]: e.target.value
733
- }),
734
- onKeyDown: (e) => {
735
- e.key === "Enter" && gt(), e.key === "Escape" && ht();
736
- },
737
- 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"
738
- }) : s ? c ? /* @__PURE__ */ d("select", {
739
- value: z[e.id]?.[i.key] ?? e[i.key] ?? "",
740
- onChange: (t) => B((n) => ({
741
- ...n,
742
- [e.id]: {
743
- ...n[e.id] || e,
744
- [i.key]: t.target.value
745
- }
746
- })),
747
- onKeyDown: (e) => {
748
- e.key === "Enter" && yt(), e.key === "Escape" && vt();
749
- },
750
- 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",
751
- children: c.map((e) => {
752
- let t = typeof e == "object" ? e.value : e, n = typeof e == "object" ? e.label : e;
753
- return /* @__PURE__ */ d("option", {
754
- value: t,
755
- children: n
756
- }, t);
757
- })
758
- }) : /* @__PURE__ */ d("input", {
759
- type: "text",
760
- value: z[e.id]?.[i.key] ?? e[i.key] ?? "",
761
- onChange: (t) => B((n) => ({
762
- ...n,
763
- [e.id]: {
764
- ...n[e.id] || e,
765
- [i.key]: t.target.value
766
- }
767
- })),
768
- onKeyDown: (e) => {
769
- e.key === "Enter" && yt(), e.key === "Escape" && vt();
770
- },
771
- 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"
772
- }) : i.render ? i.render(l, e, t) : i.key === "status" ? /* @__PURE__ */ d("span", {
773
- className: `rounded-full px-2.5 py-1 text-xs font-medium ${me[l] || "bg-slate-100 text-slate-600"}`,
774
- children: l
775
- }) : te ? /* @__PURE__ */ f("span", {
776
- title: u,
777
- children: [u.slice(0, 25), "..."]
778
- }) : u
779
- }, i.key);
780
- }),
781
- (m.actions?.view || m.actions?.edit || m.actions?.delete) && /* @__PURE__ */ d("td", {
782
- "data-cell": `${t}-${W.length + +!!K}`,
783
- className: "sticky right-0 bg-white px-4 py-3 w-32 z-10",
784
- children: n ? /* @__PURE__ */ f("div", {
785
- className: "flex justify-end gap-1",
786
- children: [/* @__PURE__ */ d("button", {
787
- title: "Save",
788
- onClick: gt,
789
- className: "rounded-md bg-emerald-100 p-2 text-emerald-700 hover:bg-emerald-200",
790
- children: /* @__PURE__ */ d(i, { size: 16 })
791
- }), /* @__PURE__ */ d("button", {
792
- title: "Cancel",
793
- onClick: ht,
794
- className: "rounded-md bg-rose-100 p-2 text-rose-700 hover:bg-rose-200",
795
- children: /* @__PURE__ */ d(fe, { size: 16 })
796
- })]
797
- }) : /* @__PURE__ */ f("div", {
798
- className: "flex justify-end gap-1",
799
- children: [
800
- m.actions.view && /* @__PURE__ */ d("button", {
801
- title: "View",
802
- onClick: () => g?.(e),
803
- onFocus: () => {
804
- P({
805
- row: t,
806
- col: W.length + +!!K
807
- }), H(0);
808
- },
809
- className: "rounded-md p-2 hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400",
810
- children: /* @__PURE__ */ d(ie, { size: 16 })
811
- }),
812
- m.actions.edit && /* @__PURE__ */ d("button", {
813
- title: "Edit",
814
- onClick: () => mt(e),
815
- onFocus: () => {
816
- P({
817
- row: t,
818
- col: W.length + +!!K
819
- }), H(1);
820
- },
821
- className: "rounded-md p-2 hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400",
822
- children: /* @__PURE__ */ d(se, { size: 16 })
823
- }),
824
- m.actions.delete && /* @__PURE__ */ d("button", {
825
- title: "Delete",
826
- onClick: () => M(e),
827
- onFocus: () => {
828
- P({
829
- row: t,
830
- col: W.length + +!!K
831
- }), H(2);
832
- },
833
- className: "rounded-md p-2 text-red-600 hover:bg-red-50 focus:outline-none focus:ring-2 focus:ring-red-400",
834
- children: /* @__PURE__ */ d(de, { size: 16 })
835
- })
836
- ]
837
- })
838
- })
839
- ]
840
- }, e.id);
841
- }), !$.length && /* @__PURE__ */ d("tr", { children: /* @__PURE__ */ f("td", {
842
- colSpan: W.length + +!!K + 1,
843
- className: "px-6 py-16 text-center",
844
- children: [/* @__PURE__ */ d("div", {
845
- className: "font-medium",
846
- children: "No records found"
847
- }), /* @__PURE__ */ d("div", {
848
- className: "mt-1 text-sm text-slate-500",
849
- children: "Try changing your search or filters."
850
- })]
851
- }) })] })]
852
- })
853
- }),
854
- St("bottom")
855
- ]
856
- }),
857
- k.length > 0 && !L && /* @__PURE__ */ f("div", {
858
- 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",
859
- children: [
860
- /* @__PURE__ */ f("span", {
861
- className: "font-medium pl-1",
862
- children: [k.length, " selected"]
863
- }),
864
- m.bulkEditable !== !1 && We.length > 0 && /* @__PURE__ */ f("button", {
865
- onClick: _t,
866
- 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",
867
- children: [/* @__PURE__ */ d(re, { size: 14 }), "Bulk Edit"]
868
- }),
869
- /* @__PURE__ */ d("button", {
870
- onClick: () => A([]),
871
- className: "text-xs text-slate-400 hover:text-white underline pr-1",
872
- children: "Clear"
873
- })
874
- ]
875
- }),
876
- j && /* @__PURE__ */ d("div", {
877
- onClick: (e) => {
878
- e.target === e.currentTarget && M(null);
879
- },
880
- className: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
881
- children: /* @__PURE__ */ f("div", {
882
- className: "w-full max-w-sm rounded-2xl bg-white p-6 shadow-2xl",
883
- children: [
884
- /* @__PURE__ */ d("h3", {
885
- className: "text-lg font-semibold",
886
- children: "Delete record?"
887
- }),
888
- /* @__PURE__ */ f("p", {
889
- className: "mt-2 text-sm text-slate-500",
890
- children: [
891
- "Are you sure you want to delete ",
892
- /* @__PURE__ */ d("b", { children: j.name }),
893
- "? This action cannot be undone."
894
- ]
895
- }),
896
- /* @__PURE__ */ f("div", {
897
- className: "mt-6 flex justify-end gap-2",
898
- children: [/* @__PURE__ */ d("button", {
899
- onClick: () => M(null),
900
- className: "rounded-lg border px-4 py-2 text-sm",
901
- children: "Cancel"
902
- }), /* @__PURE__ */ d("button", {
903
- onClick: bt,
904
- className: "rounded-lg bg-red-600 px-4 py-2 text-sm font-medium text-white",
905
- children: "Delete"
906
- })]
907
- })
908
- ]
909
- })
910
- })
911
- ]
912
- });
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
+ ] });
913
677
  }
914
- //#endregion
915
- //#region src/index.css?inline
916
- var h = "/*! 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-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%;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}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset: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 (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (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:calc(calc(1 / 2 * 100%) * -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-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 (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}}";
917
- //#endregion
918
- //#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}}';
919
679
  if (typeof document < "u") {
920
- let e = "react-flexi-datatable-styles";
921
- if (!document.getElementById(e)) {
922
- let t = document.createElement("style");
923
- t.id = e, t.textContent = h, document.head.appendChild(t);
924
- }
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
+ }
925
685
  }
926
- var g = m;
927
- //#endregion
928
- export { m as DataTable, g as default };
686
+ export {
687
+ Zt as DataTable,
688
+ Zt as default
689
+ };