@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b

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.
Files changed (145) hide show
  1. package/dist/components/forms/field-renderer.cjs +120 -69
  2. package/dist/components/forms/field-renderer.js +120 -69
  3. package/dist/components/forms/form-designer.cjs +2352 -1488
  4. package/dist/components/forms/form-designer.js +2353 -1489
  5. package/dist/components/forms/form-examples.cjs +10 -10
  6. package/dist/components/forms/form-examples.js +10 -10
  7. package/dist/components/forms/form-state-viewer.cjs +988 -433
  8. package/dist/components/forms/form-state-viewer.js +988 -433
  9. package/dist/components/forms/metadata-form.cjs +446 -170
  10. package/dist/components/forms/metadata-form.js +446 -170
  11. package/dist/components/forms/schema-viewer.cjs +173 -80
  12. package/dist/components/forms/schema-viewer.js +173 -80
  13. package/dist/components/ui/accordion.cjs +131 -27
  14. package/dist/components/ui/accordion.js +131 -27
  15. package/dist/components/ui/alert-dialog.cjs +273 -45
  16. package/dist/components/ui/alert-dialog.js +273 -45
  17. package/dist/components/ui/alert.cjs +106 -17
  18. package/dist/components/ui/alert.js +106 -17
  19. package/dist/components/ui/avatar.cjs +100 -15
  20. package/dist/components/ui/avatar.js +100 -15
  21. package/dist/components/ui/badge.cjs +36 -6
  22. package/dist/components/ui/badge.js +36 -6
  23. package/dist/components/ui/breadcrumb.cjs +258 -52
  24. package/dist/components/ui/breadcrumb.js +258 -52
  25. package/dist/components/ui/button-group.cjs +119 -19
  26. package/dist/components/ui/button-group.js +119 -19
  27. package/dist/components/ui/button.cjs +48 -8
  28. package/dist/components/ui/button.js +48 -8
  29. package/dist/components/ui/calendar.cjs +88 -30
  30. package/dist/components/ui/calendar.js +88 -30
  31. package/dist/components/ui/card.cjs +199 -30
  32. package/dist/components/ui/card.js +199 -30
  33. package/dist/components/ui/checkbox.cjs +42 -8
  34. package/dist/components/ui/checkbox.js +42 -8
  35. package/dist/components/ui/combobox.cjs +150 -53
  36. package/dist/components/ui/combobox.js +150 -53
  37. package/dist/components/ui/command.cjs +291 -53
  38. package/dist/components/ui/command.js +291 -53
  39. package/dist/components/ui/context-menu.cjs +370 -72
  40. package/dist/components/ui/context-menu.js +370 -72
  41. package/dist/components/ui/data-table.cjs +76 -39
  42. package/dist/components/ui/data-table.js +76 -39
  43. package/dist/components/ui/date-picker.cjs +179 -68
  44. package/dist/components/ui/date-picker.js +179 -68
  45. package/dist/components/ui/datetime-picker.cjs +225 -104
  46. package/dist/components/ui/datetime-picker.js +225 -104
  47. package/dist/components/ui/dialog.cjs +290 -78
  48. package/dist/components/ui/dialog.js +290 -78
  49. package/dist/components/ui/drawer.cjs +220 -39
  50. package/dist/components/ui/drawer.js +220 -39
  51. package/dist/components/ui/dropdown-menu.cjs +376 -73
  52. package/dist/components/ui/dropdown-menu.js +376 -73
  53. package/dist/components/ui/editable-cell.cjs +106 -42
  54. package/dist/components/ui/editable-cell.js +106 -42
  55. package/dist/components/ui/empty-state.cjs +106 -33
  56. package/dist/components/ui/empty-state.js +106 -33
  57. package/dist/components/ui/file-upload.cjs +405 -187
  58. package/dist/components/ui/file-upload.d.ts +3 -1
  59. package/dist/components/ui/file-upload.js +405 -187
  60. package/dist/components/ui/hover-card.cjs +46 -7
  61. package/dist/components/ui/hover-card.js +46 -7
  62. package/dist/components/ui/index.cjs +4 -4
  63. package/dist/components/ui/input.cjs +39 -6
  64. package/dist/components/ui/input.js +39 -6
  65. package/dist/components/ui/label.cjs +34 -5
  66. package/dist/components/ui/label.js +34 -5
  67. package/dist/components/ui/layout/column.cjs +209 -41
  68. package/dist/components/ui/layout/column.js +209 -41
  69. package/dist/components/ui/layout/grid.cjs +275 -60
  70. package/dist/components/ui/layout/grid.js +275 -60
  71. package/dist/components/ui/layout/row.cjs +209 -41
  72. package/dist/components/ui/layout/row.js +209 -41
  73. package/dist/components/ui/menubar.cjs +540 -106
  74. package/dist/components/ui/menubar.js +540 -106
  75. package/dist/components/ui/multi-select.cjs +289 -135
  76. package/dist/components/ui/multi-select.js +289 -135
  77. package/dist/components/ui/navigation-menu.cjs +244 -47
  78. package/dist/components/ui/navigation-menu.js +244 -47
  79. package/dist/components/ui/pagination.cjs +301 -65
  80. package/dist/components/ui/pagination.js +301 -65
  81. package/dist/components/ui/popover.cjs +48 -9
  82. package/dist/components/ui/popover.js +48 -9
  83. package/dist/components/ui/progress.cjs +48 -8
  84. package/dist/components/ui/progress.js +48 -8
  85. package/dist/components/ui/radio-group.cjs +74 -12
  86. package/dist/components/ui/radio-group.js +74 -12
  87. package/dist/components/ui/resizable.cjs +75 -10
  88. package/dist/components/ui/resizable.js +75 -10
  89. package/dist/components/ui/scroll-area.cjs +113 -21
  90. package/dist/components/ui/scroll-area.js +113 -21
  91. package/dist/components/ui/search.cjs +280 -98
  92. package/dist/components/ui/search.js +280 -98
  93. package/dist/components/ui/select.cjs +334 -68
  94. package/dist/components/ui/select.js +334 -68
  95. package/dist/components/ui/separator.cjs +48 -7
  96. package/dist/components/ui/separator.js +48 -7
  97. package/dist/components/ui/sheet.cjs +236 -50
  98. package/dist/components/ui/sheet.js +236 -50
  99. package/dist/components/ui/skeleton.cjs +31 -5
  100. package/dist/components/ui/skeleton.js +31 -5
  101. package/dist/components/ui/slider.cjs +71 -21
  102. package/dist/components/ui/slider.js +71 -21
  103. package/dist/components/ui/sonner.cjs +43 -15
  104. package/dist/components/ui/sonner.js +43 -15
  105. package/dist/components/ui/spinner.cjs +83 -21
  106. package/dist/components/ui/spinner.js +83 -21
  107. package/dist/components/ui/stats-card.cjs +169 -60
  108. package/dist/components/ui/stats-card.js +169 -60
  109. package/dist/components/ui/stepper.cjs +126 -57
  110. package/dist/components/ui/stepper.js +126 -57
  111. package/dist/components/ui/switch.cjs +42 -8
  112. package/dist/components/ui/switch.js +42 -8
  113. package/dist/components/ui/table.cjs +267 -42
  114. package/dist/components/ui/table.js +267 -42
  115. package/dist/components/ui/tabs.cjs +100 -15
  116. package/dist/components/ui/tabs.js +100 -15
  117. package/dist/components/ui/textarea.cjs +34 -5
  118. package/dist/components/ui/textarea.js +34 -5
  119. package/dist/components/ui/toggle-group.cjs +112 -19
  120. package/dist/components/ui/toggle-group.js +112 -19
  121. package/dist/components/ui/toggle.cjs +43 -6
  122. package/dist/components/ui/toggle.js +43 -6
  123. package/dist/components/ui/tooltip.cjs +40 -6
  124. package/dist/components/ui/tooltip.js +40 -6
  125. package/dist/examples/admin-layout-example.cjs +879 -347
  126. package/dist/examples/admin-layout-example.js +879 -347
  127. package/dist/examples/app-shell-example.cjs +14 -14
  128. package/dist/examples/app-shell-example.js +14 -14
  129. package/dist/examples/dashboard-example.cjs +495 -334
  130. package/dist/examples/dashboard-example.js +495 -334
  131. package/dist/examples/data-management-example.cjs +501 -303
  132. package/dist/examples/data-management-example.js +502 -304
  133. package/dist/examples/flow-editor-layout-example.cjs +435 -231
  134. package/dist/examples/flow-editor-layout-example.js +436 -232
  135. package/dist/examples/flow-start-example.cjs +508 -251
  136. package/dist/examples/flow-start-example.js +509 -252
  137. package/dist/examples/form-builder-example.cjs +1006 -602
  138. package/dist/examples/form-builder-example.js +1007 -603
  139. package/dist/examples/new-project-example.cjs +806 -474
  140. package/dist/examples/new-project-example.js +807 -475
  141. package/dist/examples/settings-example.cjs +792 -704
  142. package/dist/examples/settings-example.js +792 -704
  143. package/dist/examples/vscode-example.cjs +731 -236
  144. package/dist/examples/vscode-example.js +731 -236
  145. package/package.json +4 -1
@@ -1,4 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Fragment } from "react";
3
4
  import { cn } from "../lib/index.js";
4
5
  import { Bell, ChevronsLeft, ChevronsRight, HelpCircle, Plus, Search } from "lucide-react";
@@ -10,135 +11,355 @@ import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbP
10
11
  import { DataTable, DataTableColumnHeader, DataTableSelectColumn } from "../components/ui/data-table.js";
11
12
  import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "../components/ui/pagination.js";
12
13
  import { Column, Row } from "../components/ui/layout/index.js";
13
- function AdminLayout({ className, children, ...props }) {
14
- return /*#__PURE__*/ jsx("div", {
15
- className: cn('flex h-[700px] w-full flex-col overflow-hidden rounded-lg border bg-background', className),
16
- ...props,
17
- children: children
18
- });
14
+ function AdminLayout(t0) {
15
+ const $ = c(10);
16
+ let children;
17
+ let className;
18
+ let props;
19
+ if ($[0] !== t0) {
20
+ ({ className, children, ...props } = t0);
21
+ $[0] = t0;
22
+ $[1] = children;
23
+ $[2] = className;
24
+ $[3] = props;
25
+ } else {
26
+ children = $[1];
27
+ className = $[2];
28
+ props = $[3];
29
+ }
30
+ let t1;
31
+ if ($[4] !== className) {
32
+ t1 = cn("flex h-[700px] w-full flex-col overflow-hidden rounded-lg border bg-background", className);
33
+ $[4] = className;
34
+ $[5] = t1;
35
+ } else t1 = $[5];
36
+ let t2;
37
+ if ($[6] !== children || $[7] !== props || $[8] !== t1) {
38
+ t2 = /*#__PURE__*/ jsx("div", {
39
+ className: t1,
40
+ ...props,
41
+ children: children
42
+ });
43
+ $[6] = children;
44
+ $[7] = props;
45
+ $[8] = t1;
46
+ $[9] = t2;
47
+ } else t2 = $[9];
48
+ return t2;
19
49
  }
20
- function AdminHeader({ className, logo, title, children, ...props }) {
21
- return /*#__PURE__*/ jsxs("header", {
22
- className: cn('flex h-14 items-center justify-between border-b bg-background px-4', className),
23
- ...props,
24
- children: [
25
- /*#__PURE__*/ jsxs(Row, {
26
- gap: 3,
27
- align: "center",
28
- children: [
29
- logo,
30
- title && /*#__PURE__*/ jsx("span", {
31
- className: "text-lg font-semibold",
32
- children: title
33
- })
34
- ]
35
- }),
36
- /*#__PURE__*/ jsx(Row, {
37
- gap: 2,
38
- align: "center",
39
- children: children
40
- })
41
- ]
42
- });
50
+ function AdminHeader(t0) {
51
+ const $ = c(20);
52
+ let children;
53
+ let className;
54
+ let logo;
55
+ let props;
56
+ let title;
57
+ if ($[0] !== t0) {
58
+ ({ className, logo, title, children, ...props } = t0);
59
+ $[0] = t0;
60
+ $[1] = children;
61
+ $[2] = className;
62
+ $[3] = logo;
63
+ $[4] = props;
64
+ $[5] = title;
65
+ } else {
66
+ children = $[1];
67
+ className = $[2];
68
+ logo = $[3];
69
+ props = $[4];
70
+ title = $[5];
71
+ }
72
+ let t1;
73
+ if ($[6] !== className) {
74
+ t1 = cn("flex h-14 items-center justify-between border-b bg-background px-4", className);
75
+ $[6] = className;
76
+ $[7] = t1;
77
+ } else t1 = $[7];
78
+ let t2;
79
+ if ($[8] !== title) {
80
+ t2 = title && /*#__PURE__*/ jsx("span", {
81
+ className: "text-lg font-semibold",
82
+ children: title
83
+ });
84
+ $[8] = title;
85
+ $[9] = t2;
86
+ } else t2 = $[9];
87
+ let t3;
88
+ if ($[10] !== logo || $[11] !== t2) {
89
+ t3 = /*#__PURE__*/ jsxs(Row, {
90
+ gap: 3,
91
+ align: "center",
92
+ children: [
93
+ logo,
94
+ t2
95
+ ]
96
+ });
97
+ $[10] = logo;
98
+ $[11] = t2;
99
+ $[12] = t3;
100
+ } else t3 = $[12];
101
+ let t4;
102
+ if ($[13] !== children) {
103
+ t4 = /*#__PURE__*/ jsx(Row, {
104
+ gap: 2,
105
+ align: "center",
106
+ children: children
107
+ });
108
+ $[13] = children;
109
+ $[14] = t4;
110
+ } else t4 = $[14];
111
+ let t5;
112
+ if ($[15] !== props || $[16] !== t1 || $[17] !== t3 || $[18] !== t4) {
113
+ t5 = /*#__PURE__*/ jsxs("header", {
114
+ className: t1,
115
+ ...props,
116
+ children: [
117
+ t3,
118
+ t4
119
+ ]
120
+ });
121
+ $[15] = props;
122
+ $[16] = t1;
123
+ $[17] = t3;
124
+ $[18] = t4;
125
+ $[19] = t5;
126
+ } else t5 = $[19];
127
+ return t5;
43
128
  }
44
- function AdminHeaderActions({ notifications, avatar }) {
45
- return /*#__PURE__*/ jsxs(Row, {
46
- gap: 1,
47
- align: "center",
48
- children: [
49
- /*#__PURE__*/ jsxs(Button, {
50
- variant: "ghost",
51
- size: "icon",
52
- className: "relative",
53
- children: [
54
- /*#__PURE__*/ jsx(Bell, {
55
- className: "h-5 w-5"
56
- }),
57
- notifications && notifications > 0 && /*#__PURE__*/ jsx("span", {
58
- className: "absolute -right-0.5 -top-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-destructive text-[10px] text-destructive-foreground",
59
- children: notifications
60
- })
61
- ]
62
- }),
63
- /*#__PURE__*/ jsx(Button, {
64
- variant: "ghost",
65
- size: "icon",
66
- children: /*#__PURE__*/ jsx(HelpCircle, {
67
- className: "h-5 w-5"
68
- })
69
- }),
70
- avatar || /*#__PURE__*/ jsx("div", {
71
- className: "ml-2 flex h-8 w-8 items-center justify-center rounded-full bg-primary text-xs font-medium text-primary-foreground",
72
- children: "SN"
129
+ function AdminHeaderActions(t0) {
130
+ const $ = c(11);
131
+ const { notifications, avatar } = t0;
132
+ let t1;
133
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
134
+ t1 = /*#__PURE__*/ jsx(Bell, {
135
+ className: "h-5 w-5"
136
+ });
137
+ $[0] = t1;
138
+ } else t1 = $[0];
139
+ let t2;
140
+ if ($[1] !== notifications) {
141
+ t2 = notifications && notifications > 0 && /*#__PURE__*/ jsx("span", {
142
+ className: "absolute -right-0.5 -top-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-destructive text-[10px] text-destructive-foreground",
143
+ children: notifications
144
+ });
145
+ $[1] = notifications;
146
+ $[2] = t2;
147
+ } else t2 = $[2];
148
+ let t3;
149
+ if ($[3] !== t2) {
150
+ t3 = /*#__PURE__*/ jsxs(Button, {
151
+ variant: "ghost",
152
+ size: "icon",
153
+ className: "relative",
154
+ children: [
155
+ t1,
156
+ t2
157
+ ]
158
+ });
159
+ $[3] = t2;
160
+ $[4] = t3;
161
+ } else t3 = $[4];
162
+ let t4;
163
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
164
+ t4 = /*#__PURE__*/ jsx(Button, {
165
+ variant: "ghost",
166
+ size: "icon",
167
+ children: /*#__PURE__*/ jsx(HelpCircle, {
168
+ className: "h-5 w-5"
73
169
  })
74
- ]
75
- });
170
+ });
171
+ $[5] = t4;
172
+ } else t4 = $[5];
173
+ let t5;
174
+ if ($[6] !== avatar) {
175
+ t5 = avatar || /*#__PURE__*/ jsx("div", {
176
+ className: "ml-2 flex h-8 w-8 items-center justify-center rounded-full bg-primary text-xs font-medium text-primary-foreground",
177
+ children: "SN"
178
+ });
179
+ $[6] = avatar;
180
+ $[7] = t5;
181
+ } else t5 = $[7];
182
+ let t6;
183
+ if ($[8] !== t3 || $[9] !== t5) {
184
+ t6 = /*#__PURE__*/ jsxs(Row, {
185
+ gap: 1,
186
+ align: "center",
187
+ children: [
188
+ t3,
189
+ t4,
190
+ t5
191
+ ]
192
+ });
193
+ $[8] = t3;
194
+ $[9] = t5;
195
+ $[10] = t6;
196
+ } else t6 = $[10];
197
+ return t6;
76
198
  }
77
- function AdminContent({ className, children, ...props }) {
78
- return /*#__PURE__*/ jsx(Row, {
79
- flex: 1,
80
- overflow: "hidden",
81
- className: className,
82
- ...props,
83
- children: children
84
- });
199
+ function AdminContent(t0) {
200
+ const $ = c(8);
201
+ let children;
202
+ let className;
203
+ let props;
204
+ if ($[0] !== t0) {
205
+ ({ className, children, ...props } = t0);
206
+ $[0] = t0;
207
+ $[1] = children;
208
+ $[2] = className;
209
+ $[3] = props;
210
+ } else {
211
+ children = $[1];
212
+ className = $[2];
213
+ props = $[3];
214
+ }
215
+ let t1;
216
+ if ($[4] !== children || $[5] !== className || $[6] !== props) {
217
+ t1 = /*#__PURE__*/ jsx(Row, {
218
+ flex: 1,
219
+ overflow: "hidden",
220
+ className: className,
221
+ ...props,
222
+ children: children
223
+ });
224
+ $[4] = children;
225
+ $[5] = className;
226
+ $[6] = props;
227
+ $[7] = t1;
228
+ } else t1 = $[7];
229
+ return t1;
85
230
  }
86
- function AdminSidebar({ className, children, width = 280, ...props }) {
87
- return /*#__PURE__*/ jsx(Column, {
88
- className: cn('border-r bg-muted/30', className),
89
- style: {
231
+ function AdminSidebar(t0) {
232
+ const $ = c(14);
233
+ let children;
234
+ let className;
235
+ let props;
236
+ let t1;
237
+ if ($[0] !== t0) {
238
+ ({ className, children, width: t1, ...props } = t0);
239
+ $[0] = t0;
240
+ $[1] = children;
241
+ $[2] = className;
242
+ $[3] = props;
243
+ $[4] = t1;
244
+ } else {
245
+ children = $[1];
246
+ className = $[2];
247
+ props = $[3];
248
+ t1 = $[4];
249
+ }
250
+ const width = void 0 === t1 ? 280 : t1;
251
+ let t2;
252
+ if ($[5] !== className) {
253
+ t2 = cn("border-r bg-muted/30", className);
254
+ $[5] = className;
255
+ $[6] = t2;
256
+ } else t2 = $[6];
257
+ let t3;
258
+ if ($[7] !== width) {
259
+ t3 = {
90
260
  width
91
- },
92
- ...props,
93
- children: children
94
- });
261
+ };
262
+ $[7] = width;
263
+ $[8] = t3;
264
+ } else t3 = $[8];
265
+ let t4;
266
+ if ($[9] !== children || $[10] !== props || $[11] !== t2 || $[12] !== t3) {
267
+ t4 = /*#__PURE__*/ jsx(Column, {
268
+ className: t2,
269
+ style: t3,
270
+ ...props,
271
+ children: children
272
+ });
273
+ $[9] = children;
274
+ $[10] = props;
275
+ $[11] = t2;
276
+ $[12] = t3;
277
+ $[13] = t4;
278
+ } else t4 = $[13];
279
+ return t4;
95
280
  }
96
- function AdminSidebarHeader({ title, onSearch, onAdd }) {
97
- return /*#__PURE__*/ jsxs(Row, {
98
- justify: "between",
99
- align: "center",
100
- className: "border-b px-4 py-3",
101
- children: [
102
- /*#__PURE__*/ jsx("span", {
103
- className: "text-sm font-medium",
104
- children: title
105
- }),
106
- /*#__PURE__*/ jsxs(Row, {
107
- gap: 1,
108
- align: "center",
109
- children: [
110
- onSearch && /*#__PURE__*/ jsx(Button, {
111
- variant: "ghost",
112
- size: "icon",
113
- className: "h-7 w-7",
114
- onClick: onSearch,
115
- children: /*#__PURE__*/ jsx(Search, {
116
- className: "h-4 w-4"
117
- })
118
- }),
119
- onAdd && /*#__PURE__*/ jsx(Button, {
120
- variant: "ghost",
121
- size: "icon",
122
- className: "h-7 w-7",
123
- onClick: onAdd,
124
- children: /*#__PURE__*/ jsx(Plus, {
125
- className: "h-4 w-4"
126
- })
127
- })
128
- ]
281
+ function AdminSidebarHeader(t0) {
282
+ const $ = c(12);
283
+ const { title, onSearch, onAdd } = t0;
284
+ let t1;
285
+ if ($[0] !== title) {
286
+ t1 = /*#__PURE__*/ jsx("span", {
287
+ className: "text-sm font-medium",
288
+ children: title
289
+ });
290
+ $[0] = title;
291
+ $[1] = t1;
292
+ } else t1 = $[1];
293
+ let t2;
294
+ if ($[2] !== onSearch) {
295
+ t2 = onSearch && /*#__PURE__*/ jsx(Button, {
296
+ variant: "ghost",
297
+ size: "icon",
298
+ className: "h-7 w-7",
299
+ onClick: onSearch,
300
+ children: /*#__PURE__*/ jsx(Search, {
301
+ className: "h-4 w-4"
302
+ })
303
+ });
304
+ $[2] = onSearch;
305
+ $[3] = t2;
306
+ } else t2 = $[3];
307
+ let t3;
308
+ if ($[4] !== onAdd) {
309
+ t3 = onAdd && /*#__PURE__*/ jsx(Button, {
310
+ variant: "ghost",
311
+ size: "icon",
312
+ className: "h-7 w-7",
313
+ onClick: onAdd,
314
+ children: /*#__PURE__*/ jsx(Plus, {
315
+ className: "h-4 w-4"
129
316
  })
130
- ]
131
- });
317
+ });
318
+ $[4] = onAdd;
319
+ $[5] = t3;
320
+ } else t3 = $[5];
321
+ let t4;
322
+ if ($[6] !== t2 || $[7] !== t3) {
323
+ t4 = /*#__PURE__*/ jsxs(Row, {
324
+ gap: 1,
325
+ align: "center",
326
+ children: [
327
+ t2,
328
+ t3
329
+ ]
330
+ });
331
+ $[6] = t2;
332
+ $[7] = t3;
333
+ $[8] = t4;
334
+ } else t4 = $[8];
335
+ let t5;
336
+ if ($[9] !== t1 || $[10] !== t4) {
337
+ t5 = /*#__PURE__*/ jsxs(Row, {
338
+ justify: "between",
339
+ align: "center",
340
+ className: "border-b px-4 py-3",
341
+ children: [
342
+ t1,
343
+ t4
344
+ ]
345
+ });
346
+ $[9] = t1;
347
+ $[10] = t4;
348
+ $[11] = t5;
349
+ } else t5 = $[11];
350
+ return t5;
132
351
  }
133
- function AdminSidebarNav({ items, selectedId, onSelect }) {
134
- return /*#__PURE__*/ jsx(ScrollArea, {
135
- className: "flex-1",
136
- children: /*#__PURE__*/ jsx("nav", {
137
- className: "p-2",
138
- children: items.map((item)=>/*#__PURE__*/ jsxs(Row, {
352
+ function AdminSidebarNav(t0) {
353
+ const $ = c(9);
354
+ const { items, selectedId, onSelect } = t0;
355
+ let t1;
356
+ if ($[0] !== items || $[1] !== onSelect || $[2] !== selectedId) {
357
+ let t2;
358
+ if ($[4] !== onSelect || $[5] !== selectedId) {
359
+ t2 = (item)=>/*#__PURE__*/ jsxs(Row, {
139
360
  gap: 2,
140
361
  align: "center",
141
- className: cn('cursor-pointer rounded-md px-3 py-2 text-sm transition-colors', selectedId === item.id ? 'bg-primary/10 text-primary' : 'text-muted-foreground hover:bg-muted hover:text-foreground'),
362
+ className: cn("cursor-pointer rounded-md px-3 py-2 text-sm transition-colors", selectedId === item.id ? "bg-primary/10 text-primary" : "text-muted-foreground hover:bg-muted hover:text-foreground"),
142
363
  onClick: ()=>onSelect?.(item.id),
143
364
  children: [
144
365
  item.icon,
@@ -148,264 +369,575 @@ function AdminSidebarNav({ items, selectedId, onSelect }) {
148
369
  }),
149
370
  item.badge
150
371
  ]
151
- }, item.id))
152
- })
153
- });
372
+ }, item.id);
373
+ $[4] = onSelect;
374
+ $[5] = selectedId;
375
+ $[6] = t2;
376
+ } else t2 = $[6];
377
+ t1 = items.map(t2);
378
+ $[0] = items;
379
+ $[1] = onSelect;
380
+ $[2] = selectedId;
381
+ $[3] = t1;
382
+ } else t1 = $[3];
383
+ let t2;
384
+ if ($[7] !== t1) {
385
+ t2 = /*#__PURE__*/ jsx(ScrollArea, {
386
+ className: "flex-1",
387
+ children: /*#__PURE__*/ jsx("nav", {
388
+ className: "p-2",
389
+ children: t1
390
+ })
391
+ });
392
+ $[7] = t1;
393
+ $[8] = t2;
394
+ } else t2 = $[8];
395
+ return t2;
154
396
  }
155
- function AdminMain({ className, children, ...props }) {
156
- return /*#__PURE__*/ jsx(Column, {
157
- flex: 1,
158
- overflow: "hidden",
159
- className: className,
160
- ...props,
161
- children: children
162
- });
397
+ function AdminMain(t0) {
398
+ const $ = c(8);
399
+ let children;
400
+ let className;
401
+ let props;
402
+ if ($[0] !== t0) {
403
+ ({ className, children, ...props } = t0);
404
+ $[0] = t0;
405
+ $[1] = children;
406
+ $[2] = className;
407
+ $[3] = props;
408
+ } else {
409
+ children = $[1];
410
+ className = $[2];
411
+ props = $[3];
412
+ }
413
+ let t1;
414
+ if ($[4] !== children || $[5] !== className || $[6] !== props) {
415
+ t1 = /*#__PURE__*/ jsx(Column, {
416
+ flex: 1,
417
+ overflow: "hidden",
418
+ className: className,
419
+ ...props,
420
+ children: children
421
+ });
422
+ $[4] = children;
423
+ $[5] = className;
424
+ $[6] = props;
425
+ $[7] = t1;
426
+ } else t1 = $[7];
427
+ return t1;
163
428
  }
164
- function AdminBreadcrumb({ items }) {
165
- return /*#__PURE__*/ jsx(Breadcrumb, {
166
- children: /*#__PURE__*/ jsx(BreadcrumbList, {
167
- children: items.map((item, index)=>/*#__PURE__*/ jsxs(Fragment, {
429
+ function AdminBreadcrumb(t0) {
430
+ const $ = c(6);
431
+ const { items } = t0;
432
+ let t1;
433
+ if ($[0] !== items) {
434
+ let t2;
435
+ if ($[2] !== items.length) {
436
+ t2 = (item, index)=>/*#__PURE__*/ jsxs(Fragment, {
168
437
  children: [
169
438
  index > 0 && /*#__PURE__*/ jsx(BreadcrumbSeparator, {}),
170
439
  /*#__PURE__*/ jsx(BreadcrumbItem, {
171
440
  children: index === items.length - 1 ? /*#__PURE__*/ jsx(BreadcrumbPage, {
172
441
  children: item.label
173
442
  }) : /*#__PURE__*/ jsx(BreadcrumbLink, {
174
- href: item.href || '#',
443
+ href: item.href || "#",
175
444
  children: item.label
176
445
  })
177
446
  })
178
447
  ]
179
- }, item.label))
180
- })
181
- });
182
- }
183
- function AdminPageHeader({ title, breadcrumb, actions, tabs, activeTab, onTabChange }) {
184
- return /*#__PURE__*/ jsxs("div", {
185
- className: "border-b px-6 py-4",
186
- children: [
187
- breadcrumb && /*#__PURE__*/ jsx("div", {
188
- className: "mb-2",
189
- children: /*#__PURE__*/ jsx(AdminBreadcrumb, {
190
- items: breadcrumb
191
- })
192
- }),
193
- /*#__PURE__*/ jsxs(Row, {
194
- justify: "between",
195
- align: "center",
196
- children: [
197
- /*#__PURE__*/ jsx("h1", {
198
- className: "text-xl font-semibold",
199
- children: title
200
- }),
201
- actions && /*#__PURE__*/ jsx(Row, {
202
- gap: 2,
203
- align: "center",
204
- children: actions
205
- })
206
- ]
207
- }),
208
- tabs && /*#__PURE__*/ jsx(Tabs, {
209
- value: activeTab,
210
- onValueChange: onTabChange,
211
- className: "mt-4",
212
- children: /*#__PURE__*/ jsx(TabsList, {
213
- className: "h-auto bg-transparent p-0",
214
- children: tabs.map((tab)=>/*#__PURE__*/ jsx(TabsTrigger, {
215
- value: tab.value,
216
- className: "rounded-none border-b-2 border-transparent px-4 pb-2 pt-1 data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none",
217
- children: tab.label
218
- }, tab.value))
219
- })
448
+ }, item.label);
449
+ $[2] = items.length;
450
+ $[3] = t2;
451
+ } else t2 = $[3];
452
+ t1 = items.map(t2);
453
+ $[0] = items;
454
+ $[1] = t1;
455
+ } else t1 = $[1];
456
+ let t2;
457
+ if ($[4] !== t1) {
458
+ t2 = /*#__PURE__*/ jsx(Breadcrumb, {
459
+ children: /*#__PURE__*/ jsx(BreadcrumbList, {
460
+ children: t1
220
461
  })
221
- ]
222
- });
462
+ });
463
+ $[4] = t1;
464
+ $[5] = t2;
465
+ } else t2 = $[5];
466
+ return t2;
223
467
  }
224
- function AdminToolbar({ children, actions }) {
225
- return /*#__PURE__*/ jsxs(Row, {
226
- justify: "between",
227
- align: "center",
228
- className: "border-b px-6 py-3",
229
- children: [
230
- /*#__PURE__*/ jsx(Row, {
231
- gap: 3,
232
- align: "center",
233
- children: children
234
- }),
235
- /*#__PURE__*/ jsx(Row, {
236
- gap: 2,
237
- align: "center",
238
- children: actions
468
+ function AdminPageHeader(t0) {
469
+ const $ = c(17);
470
+ const { title, breadcrumb, actions, tabs, activeTab, onTabChange } = t0;
471
+ let t1;
472
+ if ($[0] !== breadcrumb) {
473
+ t1 = breadcrumb && /*#__PURE__*/ jsx("div", {
474
+ className: "mb-2",
475
+ children: /*#__PURE__*/ jsx(AdminBreadcrumb, {
476
+ items: breadcrumb
239
477
  })
240
- ]
241
- });
242
- }
243
- function AdminFilter({ label, value, options, onValueChange }) {
244
- return /*#__PURE__*/ jsxs(Row, {
245
- gap: 1.5,
246
- align: "center",
247
- className: "text-sm",
248
- children: [
249
- /*#__PURE__*/ jsxs("span", {
250
- className: "text-muted-foreground",
251
- children: [
252
- label,
253
- ":"
254
- ]
255
- }),
256
- /*#__PURE__*/ jsxs(Select, {
257
- value: value,
258
- onValueChange: onValueChange,
259
- children: [
260
- /*#__PURE__*/ jsx(SelectTrigger, {
261
- className: "h-7 w-auto gap-1 border-0 bg-transparent px-1 font-medium shadow-none",
262
- children: /*#__PURE__*/ jsx(SelectValue, {})
263
- }),
264
- /*#__PURE__*/ jsx(SelectContent, {
265
- children: options.map((option)=>/*#__PURE__*/ jsx(SelectItem, {
266
- value: option.value,
267
- children: option.label
268
- }, option.value))
269
- })
270
- ]
478
+ });
479
+ $[0] = breadcrumb;
480
+ $[1] = t1;
481
+ } else t1 = $[1];
482
+ let t2;
483
+ if ($[2] !== title) {
484
+ t2 = /*#__PURE__*/ jsx("h1", {
485
+ className: "text-xl font-semibold",
486
+ children: title
487
+ });
488
+ $[2] = title;
489
+ $[3] = t2;
490
+ } else t2 = $[3];
491
+ let t3;
492
+ if ($[4] !== actions) {
493
+ t3 = actions && /*#__PURE__*/ jsx(Row, {
494
+ gap: 2,
495
+ align: "center",
496
+ children: actions
497
+ });
498
+ $[4] = actions;
499
+ $[5] = t3;
500
+ } else t3 = $[5];
501
+ let t4;
502
+ if ($[6] !== t2 || $[7] !== t3) {
503
+ t4 = /*#__PURE__*/ jsxs(Row, {
504
+ justify: "between",
505
+ align: "center",
506
+ children: [
507
+ t2,
508
+ t3
509
+ ]
510
+ });
511
+ $[6] = t2;
512
+ $[7] = t3;
513
+ $[8] = t4;
514
+ } else t4 = $[8];
515
+ let t5;
516
+ if ($[9] !== activeTab || $[10] !== onTabChange || $[11] !== tabs) {
517
+ t5 = tabs && /*#__PURE__*/ jsx(Tabs, {
518
+ value: activeTab,
519
+ onValueChange: onTabChange,
520
+ className: "mt-4",
521
+ children: /*#__PURE__*/ jsx(TabsList, {
522
+ className: "h-auto bg-transparent p-0",
523
+ children: tabs.map(_temp)
271
524
  })
272
- ]
273
- });
525
+ });
526
+ $[9] = activeTab;
527
+ $[10] = onTabChange;
528
+ $[11] = tabs;
529
+ $[12] = t5;
530
+ } else t5 = $[12];
531
+ let t6;
532
+ if ($[13] !== t1 || $[14] !== t4 || $[15] !== t5) {
533
+ t6 = /*#__PURE__*/ jsxs("div", {
534
+ className: "border-b px-6 py-4",
535
+ children: [
536
+ t1,
537
+ t4,
538
+ t5
539
+ ]
540
+ });
541
+ $[13] = t1;
542
+ $[14] = t4;
543
+ $[15] = t5;
544
+ $[16] = t6;
545
+ } else t6 = $[16];
546
+ return t6;
547
+ }
548
+ function _temp(tab) {
549
+ return /*#__PURE__*/ jsx(TabsTrigger, {
550
+ value: tab.value,
551
+ className: "rounded-none border-b-2 border-transparent px-4 pb-2 pt-1 data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none",
552
+ children: tab.label
553
+ }, tab.value);
554
+ }
555
+ function AdminToolbar(t0) {
556
+ const $ = c(7);
557
+ const { children, actions } = t0;
558
+ let t1;
559
+ if ($[0] !== children) {
560
+ t1 = /*#__PURE__*/ jsx(Row, {
561
+ gap: 3,
562
+ align: "center",
563
+ children: children
564
+ });
565
+ $[0] = children;
566
+ $[1] = t1;
567
+ } else t1 = $[1];
568
+ let t2;
569
+ if ($[2] !== actions) {
570
+ t2 = /*#__PURE__*/ jsx(Row, {
571
+ gap: 2,
572
+ align: "center",
573
+ children: actions
574
+ });
575
+ $[2] = actions;
576
+ $[3] = t2;
577
+ } else t2 = $[3];
578
+ let t3;
579
+ if ($[4] !== t1 || $[5] !== t2) {
580
+ t3 = /*#__PURE__*/ jsxs(Row, {
581
+ justify: "between",
582
+ align: "center",
583
+ className: "border-b px-6 py-3",
584
+ children: [
585
+ t1,
586
+ t2
587
+ ]
588
+ });
589
+ $[4] = t1;
590
+ $[5] = t2;
591
+ $[6] = t3;
592
+ } else t3 = $[6];
593
+ return t3;
594
+ }
595
+ function AdminFilter(t0) {
596
+ const $ = c(14);
597
+ const { label, value, options, onValueChange } = t0;
598
+ let t1;
599
+ if ($[0] !== label) {
600
+ t1 = /*#__PURE__*/ jsxs("span", {
601
+ className: "text-muted-foreground",
602
+ children: [
603
+ label,
604
+ ":"
605
+ ]
606
+ });
607
+ $[0] = label;
608
+ $[1] = t1;
609
+ } else t1 = $[1];
610
+ let t2;
611
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
612
+ t2 = /*#__PURE__*/ jsx(SelectTrigger, {
613
+ className: "h-7 w-auto gap-1 border-0 bg-transparent px-1 font-medium shadow-none",
614
+ children: /*#__PURE__*/ jsx(SelectValue, {})
615
+ });
616
+ $[2] = t2;
617
+ } else t2 = $[2];
618
+ let t3;
619
+ if ($[3] !== options) {
620
+ t3 = options.map(_temp2);
621
+ $[3] = options;
622
+ $[4] = t3;
623
+ } else t3 = $[4];
624
+ let t4;
625
+ if ($[5] !== t3) {
626
+ t4 = /*#__PURE__*/ jsx(SelectContent, {
627
+ children: t3
628
+ });
629
+ $[5] = t3;
630
+ $[6] = t4;
631
+ } else t4 = $[6];
632
+ let t5;
633
+ if ($[7] !== onValueChange || $[8] !== t4 || $[9] !== value) {
634
+ t5 = /*#__PURE__*/ jsxs(Select, {
635
+ value: value,
636
+ onValueChange: onValueChange,
637
+ children: [
638
+ t2,
639
+ t4
640
+ ]
641
+ });
642
+ $[7] = onValueChange;
643
+ $[8] = t4;
644
+ $[9] = value;
645
+ $[10] = t5;
646
+ } else t5 = $[10];
647
+ let t6;
648
+ if ($[11] !== t1 || $[12] !== t5) {
649
+ t6 = /*#__PURE__*/ jsxs(Row, {
650
+ gap: 1.5,
651
+ align: "center",
652
+ className: "text-sm",
653
+ children: [
654
+ t1,
655
+ t5
656
+ ]
657
+ });
658
+ $[11] = t1;
659
+ $[12] = t5;
660
+ $[13] = t6;
661
+ } else t6 = $[13];
662
+ return t6;
663
+ }
664
+ function _temp2(option) {
665
+ return /*#__PURE__*/ jsx(SelectItem, {
666
+ value: option.value,
667
+ children: option.label
668
+ }, option.value);
274
669
  }
275
- function AdminPagination({ total, page, pageSize, onPageChange, onPageSizeChange }) {
670
+ function AdminPagination(t0) {
671
+ const $ = c(56);
672
+ const { total, page, pageSize, onPageChange, onPageSizeChange } = t0;
276
673
  const totalPages = Math.ceil(total / pageSize);
277
674
  const start = (page - 1) * pageSize + 1;
278
675
  const end = Math.min(page * pageSize, total);
279
- const getPageNumbers = ()=>{
280
- const pages = [];
281
- const delta = 1;
282
- for(let i = 1; i <= totalPages; i++)if (1 === i || i === totalPages || i >= page - delta && i <= page + delta) pages.push(i);
283
- return pages;
284
- };
285
- const pageNumbers = getPageNumbers();
286
- return /*#__PURE__*/ jsxs(Row, {
287
- justify: "between",
288
- align: "center",
289
- className: "border-t px-6 py-3",
290
- children: [
291
- /*#__PURE__*/ jsxs("span", {
292
- className: "text-sm text-muted-foreground",
676
+ let t1;
677
+ if ($[0] !== page || $[1] !== totalPages) {
678
+ const getPageNumbers = ()=>{
679
+ const pages = [];
680
+ for(let i = 1; i <= totalPages; i++)if (1 === i || i === totalPages || i >= page - 1 && i <= page + 1) pages.push(i);
681
+ return pages;
682
+ };
683
+ t1 = getPageNumbers();
684
+ $[0] = page;
685
+ $[1] = totalPages;
686
+ $[2] = t1;
687
+ } else t1 = $[2];
688
+ const pageNumbers = t1;
689
+ let t2;
690
+ if ($[3] !== end || $[4] !== start || $[5] !== total) {
691
+ t2 = /*#__PURE__*/ jsxs("span", {
692
+ className: "text-sm text-muted-foreground",
693
+ children: [
694
+ start,
695
+ " - ",
696
+ end,
697
+ " / ",
698
+ total
699
+ ]
700
+ });
701
+ $[3] = end;
702
+ $[4] = start;
703
+ $[5] = total;
704
+ $[6] = t2;
705
+ } else t2 = $[6];
706
+ const t3 = 1 === page;
707
+ let t4;
708
+ if ($[7] !== onPageChange) {
709
+ t4 = ()=>onPageChange?.(1);
710
+ $[7] = onPageChange;
711
+ $[8] = t4;
712
+ } else t4 = $[8];
713
+ let t5;
714
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
715
+ t5 = /*#__PURE__*/ jsx(ChevronsLeft, {
716
+ className: "h-4 w-4"
717
+ });
718
+ $[9] = t5;
719
+ } else t5 = $[9];
720
+ let t6;
721
+ if ($[10] !== t3 || $[11] !== t4) {
722
+ t6 = /*#__PURE__*/ jsx(PaginationItem, {
723
+ children: /*#__PURE__*/ jsx(Button, {
724
+ variant: "ghost",
725
+ size: "icon",
726
+ className: "h-8 w-8",
727
+ disabled: t3,
728
+ onClick: t4,
729
+ children: t5
730
+ })
731
+ });
732
+ $[10] = t3;
733
+ $[11] = t4;
734
+ $[12] = t6;
735
+ } else t6 = $[12];
736
+ let t7;
737
+ if ($[13] !== onPageChange || $[14] !== page) {
738
+ t7 = ()=>page > 1 && onPageChange?.(page - 1);
739
+ $[13] = onPageChange;
740
+ $[14] = page;
741
+ $[15] = t7;
742
+ } else t7 = $[15];
743
+ const t8 = 1 === page && "pointer-events-none opacity-50";
744
+ let t9;
745
+ if ($[16] !== t8) {
746
+ t9 = cn(t8);
747
+ $[16] = t8;
748
+ $[17] = t9;
749
+ } else t9 = $[17];
750
+ let t10;
751
+ if ($[18] !== t7 || $[19] !== t9) {
752
+ t10 = /*#__PURE__*/ jsx(PaginationItem, {
753
+ children: /*#__PURE__*/ jsx(PaginationPrevious, {
754
+ onClick: t7,
755
+ className: t9
756
+ })
757
+ });
758
+ $[18] = t7;
759
+ $[19] = t9;
760
+ $[20] = t10;
761
+ } else t10 = $[20];
762
+ let t11;
763
+ if ($[21] !== onPageChange || $[22] !== page || $[23] !== pageNumbers) {
764
+ t11 = pageNumbers.map((pageNum, index)=>{
765
+ const prevPage = pageNumbers[index - 1];
766
+ const showEllipsis = prevPage && pageNum - prevPage > 1;
767
+ return /*#__PURE__*/ jsxs(Fragment, {
293
768
  children: [
294
- start,
295
- " - ",
296
- end,
297
- " / ",
298
- total
769
+ showEllipsis && /*#__PURE__*/ jsx(PaginationItem, {
770
+ children: /*#__PURE__*/ jsx(PaginationEllipsis, {})
771
+ }),
772
+ /*#__PURE__*/ jsx(PaginationItem, {
773
+ children: /*#__PURE__*/ jsx(PaginationLink, {
774
+ onClick: ()=>onPageChange?.(pageNum),
775
+ isActive: page === pageNum,
776
+ children: pageNum
777
+ })
778
+ })
299
779
  ]
300
- }),
301
- /*#__PURE__*/ jsxs(Row, {
302
- gap: 4,
303
- align: "center",
780
+ }, pageNum);
781
+ });
782
+ $[21] = onPageChange;
783
+ $[22] = page;
784
+ $[23] = pageNumbers;
785
+ $[24] = t11;
786
+ } else t11 = $[24];
787
+ let t12;
788
+ if ($[25] !== onPageChange || $[26] !== page || $[27] !== totalPages) {
789
+ t12 = ()=>page < totalPages && onPageChange?.(page + 1);
790
+ $[25] = onPageChange;
791
+ $[26] = page;
792
+ $[27] = totalPages;
793
+ $[28] = t12;
794
+ } else t12 = $[28];
795
+ const t13 = page === totalPages && "pointer-events-none opacity-50";
796
+ let t14;
797
+ if ($[29] !== t13) {
798
+ t14 = cn(t13);
799
+ $[29] = t13;
800
+ $[30] = t14;
801
+ } else t14 = $[30];
802
+ let t15;
803
+ if ($[31] !== t12 || $[32] !== t14) {
804
+ t15 = /*#__PURE__*/ jsx(PaginationItem, {
805
+ children: /*#__PURE__*/ jsx(PaginationNext, {
806
+ onClick: t12,
807
+ className: t14
808
+ })
809
+ });
810
+ $[31] = t12;
811
+ $[32] = t14;
812
+ $[33] = t15;
813
+ } else t15 = $[33];
814
+ const t16 = page === totalPages;
815
+ let t17;
816
+ if ($[34] !== onPageChange || $[35] !== totalPages) {
817
+ t17 = ()=>onPageChange?.(totalPages);
818
+ $[34] = onPageChange;
819
+ $[35] = totalPages;
820
+ $[36] = t17;
821
+ } else t17 = $[36];
822
+ let t18;
823
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
824
+ t18 = /*#__PURE__*/ jsx(ChevronsRight, {
825
+ className: "h-4 w-4"
826
+ });
827
+ $[37] = t18;
828
+ } else t18 = $[37];
829
+ let t19;
830
+ if ($[38] !== t16 || $[39] !== t17) {
831
+ t19 = /*#__PURE__*/ jsx(PaginationItem, {
832
+ children: /*#__PURE__*/ jsx(Button, {
833
+ variant: "ghost",
834
+ size: "icon",
835
+ className: "h-8 w-8",
836
+ disabled: t16,
837
+ onClick: t17,
838
+ children: t18
839
+ })
840
+ });
841
+ $[38] = t16;
842
+ $[39] = t17;
843
+ $[40] = t19;
844
+ } else t19 = $[40];
845
+ let t20;
846
+ if ($[41] !== t10 || $[42] !== t11 || $[43] !== t15 || $[44] !== t19 || $[45] !== t6) {
847
+ t20 = /*#__PURE__*/ jsx(Pagination, {
848
+ children: /*#__PURE__*/ jsxs(PaginationContent, {
304
849
  children: [
305
- /*#__PURE__*/ jsx(Pagination, {
306
- children: /*#__PURE__*/ jsxs(PaginationContent, {
850
+ t6,
851
+ t10,
852
+ t11,
853
+ t15,
854
+ t19
855
+ ]
856
+ })
857
+ });
858
+ $[41] = t10;
859
+ $[42] = t11;
860
+ $[43] = t15;
861
+ $[44] = t19;
862
+ $[45] = t6;
863
+ $[46] = t20;
864
+ } else t20 = $[46];
865
+ let t21;
866
+ if ($[47] !== onPageSizeChange || $[48] !== pageSize) {
867
+ t21 = onPageSizeChange && /*#__PURE__*/ jsxs(Row, {
868
+ gap: 2,
869
+ align: "center",
870
+ className: "text-sm",
871
+ children: [
872
+ /*#__PURE__*/ jsx("span", {
873
+ className: "text-muted-foreground",
874
+ children: "Items"
875
+ }),
876
+ /*#__PURE__*/ jsxs(Select, {
877
+ value: String(pageSize),
878
+ onValueChange: (v)=>onPageSizeChange(Number(v)),
879
+ children: [
880
+ /*#__PURE__*/ jsx(SelectTrigger, {
881
+ className: "h-8 w-16",
882
+ children: /*#__PURE__*/ jsx(SelectValue, {})
883
+ }),
884
+ /*#__PURE__*/ jsxs(SelectContent, {
307
885
  children: [
308
- /*#__PURE__*/ jsx(PaginationItem, {
309
- children: /*#__PURE__*/ jsx(Button, {
310
- variant: "ghost",
311
- size: "icon",
312
- className: "h-8 w-8",
313
- disabled: 1 === page,
314
- onClick: ()=>onPageChange?.(1),
315
- children: /*#__PURE__*/ jsx(ChevronsLeft, {
316
- className: "h-4 w-4"
317
- })
318
- })
319
- }),
320
- /*#__PURE__*/ jsx(PaginationItem, {
321
- children: /*#__PURE__*/ jsx(PaginationPrevious, {
322
- onClick: ()=>page > 1 && onPageChange?.(page - 1),
323
- className: cn(1 === page && 'pointer-events-none opacity-50')
324
- })
886
+ /*#__PURE__*/ jsx(SelectItem, {
887
+ value: "10",
888
+ children: "10"
325
889
  }),
326
- pageNumbers.map((pageNum, index)=>{
327
- const prevPage = pageNumbers[index - 1];
328
- const showEllipsis = prevPage && pageNum - prevPage > 1;
329
- return /*#__PURE__*/ jsxs(Fragment, {
330
- children: [
331
- showEllipsis && /*#__PURE__*/ jsx(PaginationItem, {
332
- children: /*#__PURE__*/ jsx(PaginationEllipsis, {})
333
- }),
334
- /*#__PURE__*/ jsx(PaginationItem, {
335
- children: /*#__PURE__*/ jsx(PaginationLink, {
336
- onClick: ()=>onPageChange?.(pageNum),
337
- isActive: page === pageNum,
338
- children: pageNum
339
- })
340
- })
341
- ]
342
- }, pageNum);
890
+ /*#__PURE__*/ jsx(SelectItem, {
891
+ value: "25",
892
+ children: "25"
343
893
  }),
344
- /*#__PURE__*/ jsx(PaginationItem, {
345
- children: /*#__PURE__*/ jsx(PaginationNext, {
346
- onClick: ()=>page < totalPages && onPageChange?.(page + 1),
347
- className: cn(page === totalPages && 'pointer-events-none opacity-50')
348
- })
894
+ /*#__PURE__*/ jsx(SelectItem, {
895
+ value: "50",
896
+ children: "50"
349
897
  }),
350
- /*#__PURE__*/ jsx(PaginationItem, {
351
- children: /*#__PURE__*/ jsx(Button, {
352
- variant: "ghost",
353
- size: "icon",
354
- className: "h-8 w-8",
355
- disabled: page === totalPages,
356
- onClick: ()=>onPageChange?.(totalPages),
357
- children: /*#__PURE__*/ jsx(ChevronsRight, {
358
- className: "h-4 w-4"
359
- })
360
- })
898
+ /*#__PURE__*/ jsx(SelectItem, {
899
+ value: "100",
900
+ children: "100"
361
901
  })
362
902
  ]
363
903
  })
364
- }),
365
- onPageSizeChange && /*#__PURE__*/ jsxs(Row, {
366
- gap: 2,
367
- align: "center",
368
- className: "text-sm",
369
- children: [
370
- /*#__PURE__*/ jsx("span", {
371
- className: "text-muted-foreground",
372
- children: "Items"
373
- }),
374
- /*#__PURE__*/ jsxs(Select, {
375
- value: String(pageSize),
376
- onValueChange: (v)=>onPageSizeChange(Number(v)),
377
- children: [
378
- /*#__PURE__*/ jsx(SelectTrigger, {
379
- className: "h-8 w-16",
380
- children: /*#__PURE__*/ jsx(SelectValue, {})
381
- }),
382
- /*#__PURE__*/ jsxs(SelectContent, {
383
- children: [
384
- /*#__PURE__*/ jsx(SelectItem, {
385
- value: "10",
386
- children: "10"
387
- }),
388
- /*#__PURE__*/ jsx(SelectItem, {
389
- value: "25",
390
- children: "25"
391
- }),
392
- /*#__PURE__*/ jsx(SelectItem, {
393
- value: "50",
394
- children: "50"
395
- }),
396
- /*#__PURE__*/ jsx(SelectItem, {
397
- value: "100",
398
- children: "100"
399
- })
400
- ]
401
- })
402
- ]
403
- })
404
- ]
405
- })
406
- ]
407
- })
408
- ]
409
- });
904
+ ]
905
+ })
906
+ ]
907
+ });
908
+ $[47] = onPageSizeChange;
909
+ $[48] = pageSize;
910
+ $[49] = t21;
911
+ } else t21 = $[49];
912
+ let t22;
913
+ if ($[50] !== t20 || $[51] !== t21) {
914
+ t22 = /*#__PURE__*/ jsxs(Row, {
915
+ gap: 4,
916
+ align: "center",
917
+ children: [
918
+ t20,
919
+ t21
920
+ ]
921
+ });
922
+ $[50] = t20;
923
+ $[51] = t21;
924
+ $[52] = t22;
925
+ } else t22 = $[52];
926
+ let t23;
927
+ if ($[53] !== t2 || $[54] !== t22) {
928
+ t23 = /*#__PURE__*/ jsxs(Row, {
929
+ justify: "between",
930
+ align: "center",
931
+ className: "border-t px-6 py-3",
932
+ children: [
933
+ t2,
934
+ t22
935
+ ]
936
+ });
937
+ $[53] = t2;
938
+ $[54] = t22;
939
+ $[55] = t23;
940
+ } else t23 = $[55];
941
+ return t23;
410
942
  }
411
943
  export { AdminBreadcrumb, AdminContent, AdminFilter, AdminHeader, AdminHeaderActions, AdminLayout, AdminMain, AdminPageHeader, AdminPagination, AdminSidebar, AdminSidebarHeader, AdminSidebarNav, DataTable as AdminTable, AdminToolbar, DataTableColumnHeader, DataTableSelectColumn };