@alquimia-ai/ui 1.9.3 → 2.0.0

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 (78) hide show
  1. package/dist/components/atoms/index.d.mts +1 -1
  2. package/dist/components/atoms/index.d.ts +1 -1
  3. package/dist/components/atoms/index.js +1848 -1428
  4. package/dist/components/atoms/index.js.map +1 -1
  5. package/dist/components/atoms/index.mjs +1453 -1409
  6. package/dist/components/atoms/index.mjs.map +1 -1
  7. package/dist/components/hooks/index.d.mts +1 -0
  8. package/dist/components/hooks/index.d.ts +1 -0
  9. package/dist/components/hooks/index.js +572 -211
  10. package/dist/components/hooks/index.js.map +1 -1
  11. package/dist/components/hooks/index.mjs +505 -193
  12. package/dist/components/hooks/index.mjs.map +1 -1
  13. package/dist/components/molecules/documents/index.d.mts +1 -0
  14. package/dist/components/molecules/documents/index.d.ts +1 -0
  15. package/dist/components/molecules/documents/index.js +2366 -1884
  16. package/dist/components/molecules/documents/index.js.map +1 -1
  17. package/dist/components/molecules/documents/index.mjs +2207 -1764
  18. package/dist/components/molecules/documents/index.mjs.map +1 -1
  19. package/dist/components/molecules/index.js +2261 -2095
  20. package/dist/components/molecules/index.js.map +1 -1
  21. package/dist/components/molecules/index.mjs +2084 -2075
  22. package/dist/components/molecules/index.mjs.map +1 -1
  23. package/dist/components/molecules/viewers/index.js +1303 -1185
  24. package/dist/components/molecules/viewers/index.js.map +1 -1
  25. package/dist/components/molecules/viewers/index.mjs +1254 -1167
  26. package/dist/components/molecules/viewers/index.mjs.map +1 -1
  27. package/dist/components/organisms/index.d.mts +1 -0
  28. package/dist/components/organisms/index.d.ts +1 -0
  29. package/dist/components/organisms/index.js +3074 -2609
  30. package/dist/components/organisms/index.js.map +1 -1
  31. package/dist/components/organisms/index.mjs +2999 -2586
  32. package/dist/components/organisms/index.mjs.map +1 -1
  33. package/dist/components/templates/index.d.mts +25 -3
  34. package/dist/components/templates/index.d.ts +25 -3
  35. package/dist/components/templates/index.js +1490 -1300
  36. package/dist/components/templates/index.js.map +1 -1
  37. package/dist/components/templates/index.mjs +1413 -1281
  38. package/dist/components/templates/index.mjs.map +1 -1
  39. package/dist/index.d.mts +4 -3
  40. package/dist/index.d.ts +4 -3
  41. package/dist/index.js +3951 -2977
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +3368 -2950
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/lib/index.js +106 -54
  46. package/dist/lib/index.js.map +1 -1
  47. package/dist/lib/index.mjs +42 -43
  48. package/dist/lib/index.mjs.map +1 -1
  49. package/dist/providers/index.d.mts +17 -0
  50. package/dist/providers/index.d.ts +17 -0
  51. package/dist/providers/index.js +177 -0
  52. package/dist/providers/index.js.map +1 -0
  53. package/dist/providers/index.mjs +101 -0
  54. package/dist/providers/index.mjs.map +1 -0
  55. package/dist/styles.css +68 -0
  56. package/dist/styles.css.map +1 -0
  57. package/dist/styles.d.mts +2 -0
  58. package/dist/styles.d.ts +2 -0
  59. package/dist/tailwind.config.js +4 -10
  60. package/dist/types/index.d.mts +5 -5
  61. package/dist/types/index.d.ts +5 -5
  62. package/dist/types/index.js +52 -19
  63. package/dist/types/index.js.map +1 -1
  64. package/dist/types/index.mjs +6 -8
  65. package/dist/types/index.mjs.map +1 -1
  66. package/package.json +8 -7
  67. package/dist/components/index.d.mts +0 -23
  68. package/dist/components/index.d.ts +0 -23
  69. package/dist/components/index.js +0 -1734
  70. package/dist/components/index.js.map +0 -1
  71. package/dist/components/index.mjs +0 -1702
  72. package/dist/components/index.mjs.map +0 -1
  73. package/dist/components/templates/cards/index.d.mts +0 -26
  74. package/dist/components/templates/cards/index.d.ts +0 -26
  75. package/dist/components/templates/cards/index.js +0 -1536
  76. package/dist/components/templates/cards/index.js.map +0 -1
  77. package/dist/components/templates/cards/index.mjs +0 -1504
  78. package/dist/components/templates/cards/index.mjs.map +0 -1
@@ -1,26 +1,298 @@
1
1
  "use client";
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_with_holes(arr) {
8
+ if (Array.isArray(arr)) return arr;
9
+ }
10
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
11
+ try {
12
+ var info = gen[key](arg);
13
+ var value = info.value;
14
+ } catch (error) {
15
+ reject(error);
16
+ return;
17
+ }
18
+ if (info.done) {
19
+ resolve(value);
20
+ } else {
21
+ Promise.resolve(value).then(_next, _throw);
22
+ }
23
+ }
24
+ function _async_to_generator(fn) {
25
+ return function() {
26
+ var self = this, args = arguments;
27
+ return new Promise(function(resolve, reject) {
28
+ var gen = fn.apply(self, args);
29
+ function _next(value) {
30
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
31
+ }
32
+ function _throw(err) {
33
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
34
+ }
35
+ _next(undefined);
36
+ });
37
+ };
38
+ }
39
+ function _define_property(obj, key, value) {
40
+ if (key in obj) {
41
+ Object.defineProperty(obj, key, {
42
+ value: value,
43
+ enumerable: true,
44
+ configurable: true,
45
+ writable: true
46
+ });
47
+ } else {
48
+ obj[key] = value;
49
+ }
50
+ return obj;
51
+ }
52
+ function _extends() {
53
+ _extends = Object.assign || function(target) {
54
+ for(var i = 1; i < arguments.length; i++){
55
+ var source = arguments[i];
56
+ for(var key in source){
57
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
58
+ target[key] = source[key];
59
+ }
60
+ }
61
+ }
62
+ return target;
63
+ };
64
+ return _extends.apply(this, arguments);
65
+ }
66
+ function _iterable_to_array_limit(arr, i) {
67
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
68
+ if (_i == null) return;
69
+ var _arr = [];
70
+ var _n = true;
71
+ var _d = false;
72
+ var _s, _e;
73
+ try {
74
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
75
+ _arr.push(_s.value);
76
+ if (i && _arr.length === i) break;
77
+ }
78
+ } catch (err) {
79
+ _d = true;
80
+ _e = err;
81
+ } finally{
82
+ try {
83
+ if (!_n && _i["return"] != null) _i["return"]();
84
+ } finally{
85
+ if (_d) throw _e;
86
+ }
87
+ }
88
+ return _arr;
89
+ }
90
+ function _non_iterable_rest() {
91
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
92
+ }
93
+ function _object_destructuring_empty(o) {
94
+ if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
95
+ return o;
96
+ }
97
+ function _object_spread(target) {
98
+ for(var i = 1; i < arguments.length; i++){
99
+ var source = arguments[i] != null ? arguments[i] : {};
100
+ var ownKeys = Object.keys(source);
101
+ if (typeof Object.getOwnPropertySymbols === "function") {
102
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
103
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
104
+ }));
105
+ }
106
+ ownKeys.forEach(function(key) {
107
+ _define_property(target, key, source[key]);
108
+ });
109
+ }
110
+ return target;
111
+ }
112
+ function ownKeys(object, enumerableOnly) {
113
+ var keys = Object.keys(object);
114
+ if (Object.getOwnPropertySymbols) {
115
+ var symbols = Object.getOwnPropertySymbols(object);
116
+ if (enumerableOnly) {
117
+ symbols = symbols.filter(function(sym) {
118
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
119
+ });
120
+ }
121
+ keys.push.apply(keys, symbols);
122
+ }
123
+ return keys;
124
+ }
125
+ function _object_spread_props(target, source) {
126
+ source = source != null ? source : {};
127
+ if (Object.getOwnPropertyDescriptors) {
128
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
129
+ } else {
130
+ ownKeys(Object(source)).forEach(function(key) {
131
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
132
+ });
133
+ }
134
+ return target;
135
+ }
136
+ function _object_without_properties(source, excluded) {
137
+ if (source == null) return {};
138
+ var target = _object_without_properties_loose(source, excluded);
139
+ var key, i;
140
+ if (Object.getOwnPropertySymbols) {
141
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
142
+ for(i = 0; i < sourceSymbolKeys.length; i++){
143
+ key = sourceSymbolKeys[i];
144
+ if (excluded.indexOf(key) >= 0) continue;
145
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
146
+ target[key] = source[key];
147
+ }
148
+ }
149
+ return target;
150
+ }
151
+ function _object_without_properties_loose(source, excluded) {
152
+ if (source == null) return {};
153
+ var target = {};
154
+ var sourceKeys = Object.keys(source);
155
+ var key, i;
156
+ for(i = 0; i < sourceKeys.length; i++){
157
+ key = sourceKeys[i];
158
+ if (excluded.indexOf(key) >= 0) continue;
159
+ target[key] = source[key];
160
+ }
161
+ return target;
162
+ }
163
+ function _sliced_to_array(arr, i) {
164
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
165
+ }
166
+ function _unsupported_iterable_to_array(o, minLen) {
167
+ if (!o) return;
168
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
169
+ var n = Object.prototype.toString.call(o).slice(8, -1);
170
+ if (n === "Object" && o.constructor) n = o.constructor.name;
171
+ if (n === "Map" || n === "Set") return Array.from(n);
172
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
173
+ }
174
+ function _ts_generator(thisArg, body) {
175
+ var f, y, t, g, _ = {
176
+ label: 0,
177
+ sent: function() {
178
+ if (t[0] & 1) throw t[1];
179
+ return t[1];
180
+ },
181
+ trys: [],
182
+ ops: []
183
+ };
184
+ return g = {
185
+ next: verb(0),
186
+ "throw": verb(1),
187
+ "return": verb(2)
188
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
189
+ return this;
190
+ }), g;
191
+ function verb(n) {
192
+ return function(v) {
193
+ return step([
194
+ n,
195
+ v
196
+ ]);
197
+ };
198
+ }
199
+ function step(op) {
200
+ if (f) throw new TypeError("Generator is already executing.");
201
+ while(_)try {
202
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
203
+ if (y = 0, t) op = [
204
+ op[0] & 2,
205
+ t.value
206
+ ];
207
+ switch(op[0]){
208
+ case 0:
209
+ case 1:
210
+ t = op;
211
+ break;
212
+ case 4:
213
+ _.label++;
214
+ return {
215
+ value: op[1],
216
+ done: false
217
+ };
218
+ case 5:
219
+ _.label++;
220
+ y = op[1];
221
+ op = [
222
+ 0
223
+ ];
224
+ continue;
225
+ case 7:
226
+ op = _.ops.pop();
227
+ _.trys.pop();
228
+ continue;
229
+ default:
230
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
231
+ _ = 0;
232
+ continue;
233
+ }
234
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
235
+ _.label = op[1];
236
+ break;
237
+ }
238
+ if (op[0] === 6 && _.label < t[1]) {
239
+ _.label = t[1];
240
+ t = op;
241
+ break;
242
+ }
243
+ if (t && _.label < t[2]) {
244
+ _.label = t[2];
245
+ _.ops.push(op);
246
+ break;
247
+ }
248
+ if (t[2]) _.ops.pop();
249
+ _.trys.pop();
250
+ continue;
251
+ }
252
+ op = body.call(thisArg, _);
253
+ } catch (e) {
254
+ op = [
255
+ 6,
256
+ e
257
+ ];
258
+ y = 0;
259
+ } finally{
260
+ f = t = 0;
261
+ }
262
+ if (op[0] & 5) throw op[1];
263
+ return {
264
+ value: op[0] ? op[1] : void 0,
265
+ done: true
266
+ };
267
+ }
268
+ }
2
269
  var __defProp = Object.defineProperty;
3
270
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __esm = (fn, res) => function __init() {
5
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
271
+ var __esm = function(fn, res) {
272
+ return function __init() {
273
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
274
+ };
6
275
  };
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
276
+ var __export = function(target, all) {
277
+ for(var name in all)__defProp(target, name, {
278
+ get: all[name],
279
+ enumerable: true
280
+ });
10
281
  };
11
-
12
282
  // src/lib/utils.ts
13
283
  import { clsx } from "clsx";
14
284
  import { twMerge } from "tailwind-merge";
15
- function cn(...inputs) {
16
- return twMerge(clsx(inputs));
285
+ function cn() {
286
+ for(var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++){
287
+ inputs[_key] = arguments[_key];
288
+ }
289
+ return twMerge(clsx(inputs));
17
290
  }
18
291
  var init_utils = __esm({
19
- "src/lib/utils.ts"() {
20
- "use strict";
21
- }
292
+ "src/lib/utils.ts": function() {
293
+ "use strict";
294
+ }
22
295
  });
23
-
24
296
  // src/components/atoms/ui/button.tsx
25
297
  import * as React from "react";
26
298
  import { Slot } from "@radix-ui/react-slot";
@@ -28,108 +300,93 @@ import { cva } from "class-variance-authority";
28
300
  import { jsx } from "react/jsx-runtime";
29
301
  var buttonVariants, Button;
30
302
  var init_button = __esm({
31
- "src/components/atoms/ui/button.tsx"() {
32
- "use strict";
33
- init_utils();
34
- buttonVariants = cva(
35
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
36
- {
37
- variants: {
38
- variant: {
39
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
40
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
41
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
42
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
43
- ghost: "hover:bg-accent hover:text-accent-foreground",
44
- link: "text-primary underline-offset-4 hover:underline"
45
- },
46
- size: {
47
- default: "h-10 px-4 py-2",
48
- sm: "h-9 rounded-md px-3",
49
- lg: "h-11 rounded-md px-8",
50
- icon: "h-10 w-10"
51
- }
52
- },
53
- defaultVariants: {
54
- variant: "default",
55
- size: "default"
56
- }
57
- }
58
- );
59
- Button = React.forwardRef(
60
- ({ className, variant, size, asChild = false, ...props }, ref) => {
61
- const Comp = asChild ? Slot : "button";
62
- return /* @__PURE__ */ jsx(
63
- Comp,
64
- {
65
- className: cn(buttonVariants({ variant, size, className })),
66
- ref,
67
- ...props
68
- }
69
- );
70
- }
71
- );
72
- Button.displayName = "Button";
73
- }
303
+ "src/components/atoms/ui/button.tsx": function() {
304
+ "use strict";
305
+ init_utils();
306
+ buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
307
+ variants: {
308
+ variant: {
309
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
310
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
311
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
312
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
313
+ ghost: "hover:bg-accent hover:text-accent-foreground",
314
+ link: "text-primary underline-offset-4 hover:underline"
315
+ },
316
+ size: {
317
+ default: "h-10 px-4 py-2",
318
+ sm: "h-9 rounded-md px-3",
319
+ lg: "h-11 rounded-md px-8",
320
+ icon: "h-10 w-10"
321
+ }
322
+ },
323
+ defaultVariants: {
324
+ variant: "default",
325
+ size: "default"
326
+ }
327
+ });
328
+ Button = React.forwardRef(function(_param, ref) {
329
+ var className = _param.className, variant = _param.variant, size = _param.size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, props = _object_without_properties(_param, [
330
+ "className",
331
+ "variant",
332
+ "size",
333
+ "asChild"
334
+ ]);
335
+ var Comp = asChild ? Slot : "button";
336
+ return /* @__PURE__ */ jsx(Comp, _object_spread({
337
+ className: cn(buttonVariants({
338
+ variant: variant,
339
+ size: size,
340
+ className: className
341
+ })),
342
+ ref: ref
343
+ }, props));
344
+ });
345
+ Button.displayName = "Button";
346
+ }
74
347
  });
75
-
76
348
  // src/components/atoms/ui/textarea.tsx
77
349
  import * as React2 from "react";
78
350
  import { jsx as jsx2 } from "react/jsx-runtime";
79
351
  var Textarea;
80
352
  var init_textarea = __esm({
81
- "src/components/atoms/ui/textarea.tsx"() {
82
- "use strict";
83
- init_utils();
84
- Textarea = React2.forwardRef(
85
- ({ className, ...props }, ref) => {
86
- return /* @__PURE__ */ jsx2(
87
- "textarea",
88
- {
89
- className: cn(
90
- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
91
- className,
92
- "alq--textarea"
93
- ),
94
- ref,
95
- ...props
96
- }
97
- );
98
- }
99
- );
100
- Textarea.displayName = "Textarea";
101
- }
353
+ "src/components/atoms/ui/textarea.tsx": function() {
354
+ "use strict";
355
+ init_utils();
356
+ Textarea = React2.forwardRef(function(_param, ref) {
357
+ var className = _param.className, props = _object_without_properties(_param, [
358
+ "className"
359
+ ]);
360
+ return /* @__PURE__ */ jsx2("textarea", _object_spread({
361
+ className: cn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className, "alq--textarea"),
362
+ ref: ref
363
+ }, props));
364
+ });
365
+ Textarea.displayName = "Textarea";
366
+ }
102
367
  });
103
-
104
368
  // src/components/atoms/ui/input.tsx
105
369
  import { forwardRef as forwardRef3 } from "react";
106
370
  import { jsx as jsx3 } from "react/jsx-runtime";
107
371
  var Input;
108
372
  var init_input = __esm({
109
- "src/components/atoms/ui/input.tsx"() {
110
- "use strict";
111
- init_utils();
112
- Input = forwardRef3(
113
- ({ className, type, ...props }, ref) => {
114
- return /* @__PURE__ */ jsx3(
115
- "input",
116
- {
117
- type,
118
- className: cn(
119
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
120
- className,
121
- "alq--input"
122
- ),
123
- ref,
124
- ...props
125
- }
126
- );
127
- }
128
- );
129
- Input.displayName = "Input";
130
- }
373
+ "src/components/atoms/ui/input.tsx": function() {
374
+ "use strict";
375
+ init_utils();
376
+ Input = forwardRef3(function(_param, ref) {
377
+ var className = _param.className, type = _param.type, props = _object_without_properties(_param, [
378
+ "className",
379
+ "type"
380
+ ]);
381
+ return /* @__PURE__ */ jsx3("input", _object_spread({
382
+ type: type,
383
+ className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className, "alq--input"),
384
+ ref: ref
385
+ }, props));
386
+ });
387
+ Input.displayName = "Input";
388
+ }
131
389
  });
132
-
133
390
  // src/components/atoms/ui/select.tsx
134
391
  import * as React3 from "react";
135
392
  import * as SelectPrimitive from "@radix-ui/react-select";
@@ -137,502 +394,516 @@ import { Check, ChevronDown, ChevronUp } from "lucide-react";
137
394
  import { jsx as jsx4, jsxs } from "react/jsx-runtime";
138
395
  var Select, SelectGroup, SelectValue, SelectTrigger, SelectScrollUpButton, SelectScrollDownButton, SelectContent, SelectLabel, SelectItem, SelectSeparator;
139
396
  var init_select = __esm({
140
- "src/components/atoms/ui/select.tsx"() {
141
- "use strict";
142
- "use client";
143
- init_utils();
144
- Select = SelectPrimitive.Root;
145
- SelectGroup = SelectPrimitive.Group;
146
- SelectValue = SelectPrimitive.Value;
147
- SelectTrigger = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
148
- SelectPrimitive.Trigger,
149
- {
150
- ref,
151
- className: cn(
152
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
153
- className,
154
- "alq--select"
155
- ),
156
- ...props,
157
- children: [
158
- children,
159
- /* @__PURE__ */ jsx4(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx4(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
160
- ]
161
- }
162
- ));
163
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
164
- SelectScrollUpButton = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
165
- SelectPrimitive.ScrollUpButton,
166
- {
167
- ref,
168
- className: cn(
169
- "flex cursor-default items-center justify-center py-1",
170
- className
171
- ),
172
- ...props,
173
- children: /* @__PURE__ */ jsx4(ChevronUp, { className: "h-4 w-4" })
174
- }
175
- ));
176
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
177
- SelectScrollDownButton = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
178
- SelectPrimitive.ScrollDownButton,
179
- {
180
- ref,
181
- className: cn(
182
- "flex cursor-default items-center justify-center py-1",
183
- className
184
- ),
185
- ...props,
186
- children: /* @__PURE__ */ jsx4(ChevronDown, { className: "h-4 w-4" })
187
- }
188
- ));
189
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
190
- SelectContent = React3.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx4(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
191
- SelectPrimitive.Content,
192
- {
193
- ref,
194
- className: cn(
195
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
196
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
197
- className
198
- ),
199
- position,
200
- ...props,
201
- children: [
202
- /* @__PURE__ */ jsx4(SelectScrollUpButton, {}),
203
- /* @__PURE__ */ jsx4(
204
- SelectPrimitive.Viewport,
205
- {
206
- className: cn(
207
- "p-1",
208
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
209
- ),
210
- children
211
- }
212
- ),
213
- /* @__PURE__ */ jsx4(SelectScrollDownButton, {})
214
- ]
215
- }
216
- ) }));
217
- SelectContent.displayName = SelectPrimitive.Content.displayName;
218
- SelectLabel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
219
- SelectPrimitive.Label,
220
- {
221
- ref,
222
- className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
223
- ...props
224
- }
225
- ));
226
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
227
- SelectItem = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
228
- SelectPrimitive.Item,
229
- {
230
- ref,
231
- className: cn(
232
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
233
- className
234
- ),
235
- ...props,
236
- children: [
237
- /* @__PURE__ */ jsx4("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx4(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx4(Check, { className: "h-4 w-4" }) }) }),
238
- /* @__PURE__ */ jsx4(SelectPrimitive.ItemText, { children })
239
- ]
240
- }
241
- ));
242
- SelectItem.displayName = SelectPrimitive.Item.displayName;
243
- SelectSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
244
- SelectPrimitive.Separator,
245
- {
246
- ref,
247
- className: cn("-mx-1 my-1 h-px bg-muted", className),
248
- ...props
249
- }
250
- ));
251
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
252
- }
397
+ "src/components/atoms/ui/select.tsx": function() {
398
+ "use strict";
399
+ "use client";
400
+ init_utils();
401
+ Select = SelectPrimitive.Root;
402
+ SelectGroup = SelectPrimitive.Group;
403
+ SelectValue = SelectPrimitive.Value;
404
+ SelectTrigger = React3.forwardRef(function(_param, ref) {
405
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
406
+ "className",
407
+ "children"
408
+ ]);
409
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
410
+ ref: ref,
411
+ className: cn("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", className, "alq--select")
412
+ }, props), {
413
+ children: [
414
+ children,
415
+ /* @__PURE__ */ jsx4(SelectPrimitive.Icon, {
416
+ asChild: true,
417
+ children: /* @__PURE__ */ jsx4(ChevronDown, {
418
+ className: "h-4 w-4 opacity-50"
419
+ })
420
+ })
421
+ ]
422
+ }));
423
+ });
424
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
425
+ SelectScrollUpButton = React3.forwardRef(function(_param, ref) {
426
+ var className = _param.className, props = _object_without_properties(_param, [
427
+ "className"
428
+ ]);
429
+ return /* @__PURE__ */ jsx4(SelectPrimitive.ScrollUpButton, _object_spread_props(_object_spread({
430
+ ref: ref,
431
+ className: cn("flex cursor-default items-center justify-center py-1", className)
432
+ }, props), {
433
+ children: /* @__PURE__ */ jsx4(ChevronUp, {
434
+ className: "h-4 w-4"
435
+ })
436
+ }));
437
+ });
438
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
439
+ SelectScrollDownButton = React3.forwardRef(function(_param, ref) {
440
+ var className = _param.className, props = _object_without_properties(_param, [
441
+ "className"
442
+ ]);
443
+ return /* @__PURE__ */ jsx4(SelectPrimitive.ScrollDownButton, _object_spread_props(_object_spread({
444
+ ref: ref,
445
+ className: cn("flex cursor-default items-center justify-center py-1", className)
446
+ }, props), {
447
+ children: /* @__PURE__ */ jsx4(ChevronDown, {
448
+ className: "h-4 w-4"
449
+ })
450
+ }));
451
+ });
452
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
453
+ SelectContent = React3.forwardRef(function(_param, ref) {
454
+ var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, props = _object_without_properties(_param, [
455
+ "className",
456
+ "children",
457
+ "position"
458
+ ]);
459
+ return /* @__PURE__ */ jsx4(SelectPrimitive.Portal, {
460
+ children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, _object_spread_props(_object_spread({
461
+ ref: ref,
462
+ className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
463
+ position: position
464
+ }, props), {
465
+ children: [
466
+ /* @__PURE__ */ jsx4(SelectScrollUpButton, {}),
467
+ /* @__PURE__ */ jsx4(SelectPrimitive.Viewport, {
468
+ className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
469
+ children: children
470
+ }),
471
+ /* @__PURE__ */ jsx4(SelectScrollDownButton, {})
472
+ ]
473
+ }))
474
+ });
475
+ });
476
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
477
+ SelectLabel = React3.forwardRef(function(_param, ref) {
478
+ var className = _param.className, props = _object_without_properties(_param, [
479
+ "className"
480
+ ]);
481
+ return /* @__PURE__ */ jsx4(SelectPrimitive.Label, _object_spread({
482
+ ref: ref,
483
+ className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)
484
+ }, props));
485
+ });
486
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
487
+ SelectItem = React3.forwardRef(function(_param, ref) {
488
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
489
+ "className",
490
+ "children"
491
+ ]);
492
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Item, _object_spread_props(_object_spread({
493
+ ref: ref,
494
+ className: cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className)
495
+ }, props), {
496
+ children: [
497
+ /* @__PURE__ */ jsx4("span", {
498
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
499
+ children: /* @__PURE__ */ jsx4(SelectPrimitive.ItemIndicator, {
500
+ children: /* @__PURE__ */ jsx4(Check, {
501
+ className: "h-4 w-4"
502
+ })
503
+ })
504
+ }),
505
+ /* @__PURE__ */ jsx4(SelectPrimitive.ItemText, {
506
+ children: children
507
+ })
508
+ ]
509
+ }));
510
+ });
511
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
512
+ SelectSeparator = React3.forwardRef(function(_param, ref) {
513
+ var className = _param.className, props = _object_without_properties(_param, [
514
+ "className"
515
+ ]);
516
+ return /* @__PURE__ */ jsx4(SelectPrimitive.Separator, _object_spread({
517
+ ref: ref,
518
+ className: cn("-mx-1 my-1 h-px bg-muted", className)
519
+ }, props));
520
+ });
521
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
522
+ }
253
523
  });
254
-
255
524
  // src/components/atoms/ui/avatar.tsx
256
525
  import * as React4 from "react";
257
526
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
258
527
  import { jsx as jsx5 } from "react/jsx-runtime";
259
528
  var Avatar, AvatarImage, AvatarFallback;
260
529
  var init_avatar = __esm({
261
- "src/components/atoms/ui/avatar.tsx"() {
262
- "use strict";
263
- "use client";
264
- init_utils();
265
- Avatar = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
266
- AvatarPrimitive.Root,
267
- {
268
- ref,
269
- className: cn(
270
- "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
271
- className
272
- ),
273
- ...props
274
- }
275
- ));
276
- Avatar.displayName = AvatarPrimitive.Root.displayName;
277
- AvatarImage = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
278
- AvatarPrimitive.Image,
279
- {
280
- ref,
281
- className: cn("aspect-square h-full w-full", className),
282
- ...props
283
- }
284
- ));
285
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
286
- AvatarFallback = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
287
- AvatarPrimitive.Fallback,
288
- {
289
- ref,
290
- className: cn(
291
- "flex h-full w-full items-center justify-center rounded-full bg-muted",
292
- className
293
- ),
294
- ...props
295
- }
296
- ));
297
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
298
- }
530
+ "src/components/atoms/ui/avatar.tsx": function() {
531
+ "use strict";
532
+ "use client";
533
+ init_utils();
534
+ Avatar = React4.forwardRef(function(_param, ref) {
535
+ var className = _param.className, props = _object_without_properties(_param, [
536
+ "className"
537
+ ]);
538
+ return /* @__PURE__ */ jsx5(AvatarPrimitive.Root, _object_spread({
539
+ ref: ref,
540
+ className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)
541
+ }, props));
542
+ });
543
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
544
+ AvatarImage = React4.forwardRef(function(_param, ref) {
545
+ var className = _param.className, props = _object_without_properties(_param, [
546
+ "className"
547
+ ]);
548
+ return /* @__PURE__ */ jsx5(AvatarPrimitive.Image, _object_spread({
549
+ ref: ref,
550
+ className: cn("aspect-square h-full w-full", className)
551
+ }, props));
552
+ });
553
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
554
+ AvatarFallback = React4.forwardRef(function(_param, ref) {
555
+ var className = _param.className, props = _object_without_properties(_param, [
556
+ "className"
557
+ ]);
558
+ return /* @__PURE__ */ jsx5(AvatarPrimitive.Fallback, _object_spread({
559
+ ref: ref,
560
+ className: cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)
561
+ }, props));
562
+ });
563
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
564
+ }
299
565
  });
300
-
301
566
  // src/components/atoms/ui/scroll-area.tsx
302
567
  import * as React5 from "react";
303
568
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
304
569
  import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
305
570
  var ScrollArea, ScrollBar;
306
571
  var init_scroll_area = __esm({
307
- "src/components/atoms/ui/scroll-area.tsx"() {
308
- "use strict";
309
- "use client";
310
- init_utils();
311
- ScrollArea = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
312
- ScrollAreaPrimitive.Root,
313
- {
314
- ref,
315
- className: cn("relative overflow-hidden", className),
316
- ...props,
317
- children: [
318
- /* @__PURE__ */ jsx6(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
319
- /* @__PURE__ */ jsx6(ScrollBar, {}),
320
- /* @__PURE__ */ jsx6(ScrollAreaPrimitive.Corner, {})
321
- ]
322
- }
323
- ));
324
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
325
- ScrollBar = React5.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx6(
326
- ScrollAreaPrimitive.ScrollAreaScrollbar,
327
- {
328
- ref,
329
- orientation,
330
- className: cn(
331
- "flex touch-none select-none transition-colors",
332
- orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
333
- orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
334
- className
335
- ),
336
- ...props,
337
- children: /* @__PURE__ */ jsx6(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
338
- }
339
- ));
340
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
341
- }
572
+ "src/components/atoms/ui/scroll-area.tsx": function() {
573
+ "use strict";
574
+ "use client";
575
+ init_utils();
576
+ ScrollArea = React5.forwardRef(function(_param, ref) {
577
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
578
+ "className",
579
+ "children"
580
+ ]);
581
+ return /* @__PURE__ */ jsxs2(ScrollAreaPrimitive.Root, _object_spread_props(_object_spread({
582
+ ref: ref,
583
+ className: cn("relative overflow-hidden", className)
584
+ }, props), {
585
+ children: [
586
+ /* @__PURE__ */ jsx6(ScrollAreaPrimitive.Viewport, {
587
+ className: "h-full w-full rounded-[inherit]",
588
+ children: children
589
+ }),
590
+ /* @__PURE__ */ jsx6(ScrollBar, {}),
591
+ /* @__PURE__ */ jsx6(ScrollAreaPrimitive.Corner, {})
592
+ ]
593
+ }));
594
+ });
595
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
596
+ ScrollBar = React5.forwardRef(function(_param, ref) {
597
+ var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
598
+ "className",
599
+ "orientation"
600
+ ]);
601
+ return /* @__PURE__ */ jsx6(ScrollAreaPrimitive.ScrollAreaScrollbar, _object_spread_props(_object_spread({
602
+ ref: ref,
603
+ orientation: orientation,
604
+ className: cn("flex touch-none select-none transition-colors", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]", className)
605
+ }, props), {
606
+ children: /* @__PURE__ */ jsx6(ScrollAreaPrimitive.ScrollAreaThumb, {
607
+ className: "relative flex-1 rounded-full bg-border"
608
+ })
609
+ }));
610
+ });
611
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
612
+ }
342
613
  });
343
-
344
614
  // src/components/atoms/ui/rich-text.tsx
345
615
  import ReactMarkdown from "react-markdown";
346
616
  import remarkGfm from "remark-gfm";
347
617
  import { jsx as jsx7 } from "react/jsx-runtime";
348
- function RichText({ content, className }) {
349
- return /* @__PURE__ */ jsx7(ReactMarkdown, { className: cn(className), remarkPlugins: [remarkGfm], children: content });
618
+ function RichText(param) {
619
+ var content = param.content, className = param.className;
620
+ return /* @__PURE__ */ jsx7(ReactMarkdown, {
621
+ className: cn(className),
622
+ remarkPlugins: [
623
+ remarkGfm
624
+ ],
625
+ children: content
626
+ });
350
627
  }
351
628
  var init_rich_text = __esm({
352
- "src/components/atoms/ui/rich-text.tsx"() {
353
- "use strict";
354
- init_utils();
355
- }
629
+ "src/components/atoms/ui/rich-text.tsx": function() {
630
+ "use strict";
631
+ init_utils();
632
+ }
356
633
  });
357
-
358
634
  // src/components/atoms/ui/skeleton.tsx
359
635
  import { jsx as jsx8 } from "react/jsx-runtime";
360
636
  var init_skeleton = __esm({
361
- "src/components/atoms/ui/skeleton.tsx"() {
362
- "use strict";
363
- init_utils();
364
- }
637
+ "src/components/atoms/ui/skeleton.tsx": function() {
638
+ "use strict";
639
+ init_utils();
640
+ }
365
641
  });
366
-
367
642
  // src/components/atoms/ui/card.tsx
368
643
  import * as React6 from "react";
369
644
  import { jsx as jsx9 } from "react/jsx-runtime";
370
645
  var Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter;
371
646
  var init_card = __esm({
372
- "src/components/atoms/ui/card.tsx"() {
373
- "use strict";
374
- init_utils();
375
- Card = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
376
- "div",
377
- {
378
- ref,
379
- className: cn(
380
- "rounded-lg",
381
- " border",
382
- "bg-card",
383
- "text-card-foreground",
384
- "shadow-raised",
385
- className
386
- ),
387
- ...props
388
- }
389
- ));
390
- Card.displayName = "Card";
391
- CardHeader = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
392
- "div",
393
- {
394
- ref,
395
- className: cn("flex flex-col space-y-1.5 p-6", className),
396
- ...props
397
- }
398
- ));
399
- CardHeader.displayName = "CardHeader";
400
- CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
401
- "h3",
402
- {
403
- ref,
404
- className: cn("alq--typography-heading4", className),
405
- ...props
406
- }
407
- ));
408
- CardTitle.displayName = "CardTitle";
409
- CardDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
410
- "p",
411
- {
412
- ref,
413
- className: cn("text-sm text-muted-foreground", className),
414
- ...props
415
- }
416
- ));
417
- CardDescription.displayName = "CardDescription";
418
- CardContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("p-6 pt-0", className), ...props }));
419
- CardContent.displayName = "CardContent";
420
- CardFooter = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
421
- "div",
422
- {
423
- ref,
424
- className: cn("flex items-center p-6 pt-0", className),
425
- ...props
426
- }
427
- ));
428
- CardFooter.displayName = "CardFooter";
429
- }
647
+ "src/components/atoms/ui/card.tsx": function() {
648
+ "use strict";
649
+ init_utils();
650
+ Card = React6.forwardRef(function(_param, ref) {
651
+ var className = _param.className, props = _object_without_properties(_param, [
652
+ "className"
653
+ ]);
654
+ return /* @__PURE__ */ jsx9("div", _object_spread({
655
+ ref: ref,
656
+ className: cn("rounded-lg", " border", "bg-card", "text-card-foreground", "shadow-raised", className)
657
+ }, props));
658
+ });
659
+ Card.displayName = "Card";
660
+ CardHeader = React6.forwardRef(function(_param, ref) {
661
+ var className = _param.className, props = _object_without_properties(_param, [
662
+ "className"
663
+ ]);
664
+ return /* @__PURE__ */ jsx9("div", _object_spread({
665
+ ref: ref,
666
+ className: cn("flex flex-col space-y-1.5 p-6", className)
667
+ }, props));
668
+ });
669
+ CardHeader.displayName = "CardHeader";
670
+ CardTitle = React6.forwardRef(function(_param, ref) {
671
+ var className = _param.className, props = _object_without_properties(_param, [
672
+ "className"
673
+ ]);
674
+ return /* @__PURE__ */ jsx9("h3", _object_spread({
675
+ ref: ref,
676
+ className: cn("alq--typography-heading4", className)
677
+ }, props));
678
+ });
679
+ CardTitle.displayName = "CardTitle";
680
+ CardDescription = React6.forwardRef(function(_param, ref) {
681
+ var className = _param.className, props = _object_without_properties(_param, [
682
+ "className"
683
+ ]);
684
+ return /* @__PURE__ */ jsx9("p", _object_spread({
685
+ ref: ref,
686
+ className: cn("text-sm text-muted-foreground", className)
687
+ }, props));
688
+ });
689
+ CardDescription.displayName = "CardDescription";
690
+ CardContent = React6.forwardRef(function(_param, ref) {
691
+ var className = _param.className, props = _object_without_properties(_param, [
692
+ "className"
693
+ ]);
694
+ return /* @__PURE__ */ jsx9("div", _object_spread({
695
+ ref: ref,
696
+ className: cn("p-6 pt-0", className)
697
+ }, props));
698
+ });
699
+ CardContent.displayName = "CardContent";
700
+ CardFooter = React6.forwardRef(function(_param, ref) {
701
+ var className = _param.className, props = _object_without_properties(_param, [
702
+ "className"
703
+ ]);
704
+ return /* @__PURE__ */ jsx9("div", _object_spread({
705
+ ref: ref,
706
+ className: cn("flex items-center p-6 pt-0", className)
707
+ }, props));
708
+ });
709
+ CardFooter.displayName = "CardFooter";
710
+ }
430
711
  });
431
-
432
712
  // src/components/atoms/ui/drawer.tsx
433
713
  import * as React7 from "react";
434
714
  import { Drawer as DrawerPrimitive } from "vaul";
435
715
  import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
436
716
  var Drawer, DrawerTrigger, DrawerPortal, DrawerClose, DrawerOverlay, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription;
437
717
  var init_drawer = __esm({
438
- "src/components/atoms/ui/drawer.tsx"() {
439
- "use strict";
440
- "use client";
441
- init_utils();
442
- Drawer = ({
443
- shouldScaleBackground = true,
444
- ...props
445
- }) => /* @__PURE__ */ jsx10(
446
- DrawerPrimitive.Root,
447
- {
448
- shouldScaleBackground,
449
- ...props
450
- }
451
- );
452
- Drawer.displayName = "Drawer";
453
- DrawerTrigger = DrawerPrimitive.Trigger;
454
- DrawerPortal = DrawerPrimitive.Portal;
455
- DrawerClose = DrawerPrimitive.Close;
456
- DrawerOverlay = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
457
- DrawerPrimitive.Overlay,
458
- {
459
- ref,
460
- className: cn("fixed inset-0 z-50 bg-black/80", className),
461
- ...props
462
- }
463
- ));
464
- DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
465
- DrawerContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DrawerPortal, { children: [
466
- /* @__PURE__ */ jsx10(DrawerOverlay, {}),
467
- /* @__PURE__ */ jsxs3(
468
- DrawerPrimitive.Content,
469
- {
470
- ref,
471
- className: cn(
472
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border border-border bg-background text-foreground alq--drawer-content",
473
- className
474
- ),
475
- ...props,
476
- children: [
477
- /* @__PURE__ */ jsx10("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
478
- children
479
- ]
480
- }
481
- )
482
- ] }));
483
- DrawerContent.displayName = "DrawerContent";
484
- DrawerHeader = ({
485
- className,
486
- ...props
487
- }) => /* @__PURE__ */ jsx10(
488
- "div",
489
- {
490
- className: cn("grid gap-1.5 p-4 text-center sm:text-left", className, "alq--drawer-header"),
491
- ...props
492
- }
493
- );
494
- DrawerHeader.displayName = "DrawerHeader";
495
- DrawerFooter = ({
496
- className,
497
- ...props
498
- }) => /* @__PURE__ */ jsx10(
499
- "div",
500
- {
501
- className: cn("mt-auto flex flex-col gap-2 p-4", className, "alq--drawer-footer"),
502
- ...props
503
- }
504
- );
505
- DrawerFooter.displayName = "DrawerFooter";
506
- DrawerTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
507
- DrawerPrimitive.Title,
508
- {
509
- ref,
510
- className: cn(
511
- "text-lg font-semibold leading-none tracking-tight",
512
- className,
513
- "alq--drawer-title"
514
- ),
515
- ...props
516
- }
517
- ));
518
- DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
519
- DrawerDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
520
- DrawerPrimitive.Description,
521
- {
522
- ref,
523
- className: cn("text-sm text-muted-foreground", className, "alq--drawer-description"),
524
- ...props
525
- }
526
- ));
527
- DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
528
- }
718
+ "src/components/atoms/ui/drawer.tsx": function() {
719
+ "use strict";
720
+ "use client";
721
+ init_utils();
722
+ Drawer = function(_param) {
723
+ var _param_shouldScaleBackground = _param.shouldScaleBackground, shouldScaleBackground = _param_shouldScaleBackground === void 0 ? true : _param_shouldScaleBackground, props = _object_without_properties(_param, [
724
+ "shouldScaleBackground"
725
+ ]);
726
+ return /* @__PURE__ */ jsx10(DrawerPrimitive.Root, _object_spread({
727
+ shouldScaleBackground: shouldScaleBackground
728
+ }, props));
729
+ };
730
+ Drawer.displayName = "Drawer";
731
+ DrawerTrigger = DrawerPrimitive.Trigger;
732
+ DrawerPortal = DrawerPrimitive.Portal;
733
+ DrawerClose = DrawerPrimitive.Close;
734
+ DrawerOverlay = React7.forwardRef(function(_param, ref) {
735
+ var className = _param.className, props = _object_without_properties(_param, [
736
+ "className"
737
+ ]);
738
+ return /* @__PURE__ */ jsx10(DrawerPrimitive.Overlay, _object_spread({
739
+ ref: ref,
740
+ className: cn("fixed inset-0 z-50 bg-black/80", className)
741
+ }, props));
742
+ });
743
+ DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
744
+ DrawerContent = React7.forwardRef(function(_param, ref) {
745
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
746
+ "className",
747
+ "children"
748
+ ]);
749
+ return /* @__PURE__ */ jsxs3(DrawerPortal, {
750
+ children: [
751
+ /* @__PURE__ */ jsx10(DrawerOverlay, {}),
752
+ /* @__PURE__ */ jsxs3(DrawerPrimitive.Content, _object_spread_props(_object_spread({
753
+ ref: ref,
754
+ className: cn("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border border-border bg-background text-foreground alq--drawer-content", className)
755
+ }, props), {
756
+ children: [
757
+ /* @__PURE__ */ jsx10("div", {
758
+ className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"
759
+ }),
760
+ children
761
+ ]
762
+ }))
763
+ ]
764
+ });
765
+ });
766
+ DrawerContent.displayName = "DrawerContent";
767
+ DrawerHeader = function(_param) {
768
+ var className = _param.className, props = _object_without_properties(_param, [
769
+ "className"
770
+ ]);
771
+ return /* @__PURE__ */ jsx10("div", _object_spread({
772
+ className: cn("grid gap-1.5 p-4 text-center sm:text-left", className, "alq--drawer-header")
773
+ }, props));
774
+ };
775
+ DrawerHeader.displayName = "DrawerHeader";
776
+ DrawerFooter = function(_param) {
777
+ var className = _param.className, props = _object_without_properties(_param, [
778
+ "className"
779
+ ]);
780
+ return /* @__PURE__ */ jsx10("div", _object_spread({
781
+ className: cn("mt-auto flex flex-col gap-2 p-4", className, "alq--drawer-footer")
782
+ }, props));
783
+ };
784
+ DrawerFooter.displayName = "DrawerFooter";
785
+ DrawerTitle = React7.forwardRef(function(_param, ref) {
786
+ var className = _param.className, props = _object_without_properties(_param, [
787
+ "className"
788
+ ]);
789
+ return /* @__PURE__ */ jsx10(DrawerPrimitive.Title, _object_spread({
790
+ ref: ref,
791
+ className: cn("text-lg font-semibold leading-none tracking-tight", className, "alq--drawer-title")
792
+ }, props));
793
+ });
794
+ DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
795
+ DrawerDescription = React7.forwardRef(function(_param, ref) {
796
+ var className = _param.className, props = _object_without_properties(_param, [
797
+ "className"
798
+ ]);
799
+ return /* @__PURE__ */ jsx10(DrawerPrimitive.Description, _object_spread({
800
+ ref: ref,
801
+ className: cn("text-sm text-muted-foreground", className, "alq--drawer-description")
802
+ }, props));
803
+ });
804
+ DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
805
+ }
529
806
  });
530
-
531
807
  // src/components/atoms/ui/typography/index.tsx
532
808
  import { forwardRef as forwardRef9 } from "react";
533
809
  import { jsx as jsx11 } from "react/jsx-runtime";
534
810
  var Typography;
535
811
  var init_typography = __esm({
536
- "src/components/atoms/ui/typography/index.tsx"() {
537
- "use strict";
538
- init_utils();
539
- Typography = forwardRef9(
540
- ({ as: Component = "p", typeStyle, ...props }, ref) => {
541
- return /* @__PURE__ */ jsx11(
542
- Component,
543
- {
544
- ...props,
545
- className: cn(props.className, `alq--typography-${typeStyle}`),
546
- ref
547
- }
548
- );
549
- }
550
- );
551
- Typography.displayName = "Typography";
552
- }
812
+ "src/components/atoms/ui/typography/index.tsx": function() {
813
+ "use strict";
814
+ init_utils();
815
+ Typography = forwardRef9(function(_param, ref) {
816
+ var tmp = _param.as, Component = tmp === void 0 ? "p" : tmp, typeStyle = _param.typeStyle, props = _object_without_properties(_param, [
817
+ "as",
818
+ "typeStyle"
819
+ ]);
820
+ return /* @__PURE__ */ jsx11(Component, _object_spread_props(_object_spread({}, props), {
821
+ className: cn(props.className, "alq--typography-".concat(typeStyle)),
822
+ ref: ref
823
+ }));
824
+ });
825
+ Typography.displayName = "Typography";
826
+ }
553
827
  });
554
-
555
828
  // src/components/atoms/ui/badge.tsx
556
829
  import { cva as cva2 } from "class-variance-authority";
557
830
  import { jsx as jsx12 } from "react/jsx-runtime";
558
831
  var badgeVariants;
559
832
  var init_badge = __esm({
560
- "src/components/atoms/ui/badge.tsx"() {
561
- "use strict";
562
- init_utils();
563
- badgeVariants = cva2(
564
- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
565
- {
566
- variants: {
567
- variant: {
568
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
569
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
570
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
571
- outline: "text-foreground"
572
- }
573
- },
574
- defaultVariants: {
575
- variant: "default"
576
- }
577
- }
578
- );
579
- }
833
+ "src/components/atoms/ui/badge.tsx": function() {
834
+ "use strict";
835
+ init_utils();
836
+ badgeVariants = cva2("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
837
+ variants: {
838
+ variant: {
839
+ default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
840
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
841
+ destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
842
+ outline: "text-foreground"
843
+ }
844
+ },
845
+ defaultVariants: {
846
+ variant: "default"
847
+ }
848
+ });
849
+ }
580
850
  });
581
-
582
851
  // src/components/atoms/ui/alert.tsx
583
852
  import * as React8 from "react";
584
853
  import { cva as cva3 } from "class-variance-authority";
585
854
  import { jsx as jsx13 } from "react/jsx-runtime";
586
855
  var alertVariants, Alert, AlertTitle, AlertDescription;
587
856
  var init_alert = __esm({
588
- "src/components/atoms/ui/alert.tsx"() {
589
- "use strict";
590
- init_utils();
591
- alertVariants = cva3(
592
- "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
593
- {
594
- variants: {
595
- variant: {
596
- default: "bg-background text-foreground",
597
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
598
- }
599
- },
600
- defaultVariants: {
601
- variant: "default"
602
- }
603
- }
604
- );
605
- Alert = React8.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx13(
606
- "div",
607
- {
608
- ref,
609
- role: "alert",
610
- className: cn(alertVariants({ variant }), className),
611
- ...props
612
- }
613
- ));
614
- Alert.displayName = "Alert";
615
- AlertTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
616
- "h5",
617
- {
618
- ref,
619
- className: cn("mb-1 font-medium leading-none tracking-tight", className),
620
- ...props
621
- }
622
- ));
623
- AlertTitle.displayName = "AlertTitle";
624
- AlertDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
625
- "div",
626
- {
627
- ref,
628
- className: cn("text-sm [&_p]:leading-relaxed", className),
629
- ...props
630
- }
631
- ));
632
- AlertDescription.displayName = "AlertDescription";
633
- }
857
+ "src/components/atoms/ui/alert.tsx": function() {
858
+ "use strict";
859
+ init_utils();
860
+ alertVariants = cva3("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
861
+ variants: {
862
+ variant: {
863
+ default: "bg-background text-foreground",
864
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
865
+ }
866
+ },
867
+ defaultVariants: {
868
+ variant: "default"
869
+ }
870
+ });
871
+ Alert = React8.forwardRef(function(_param, ref) {
872
+ var className = _param.className, variant = _param.variant, props = _object_without_properties(_param, [
873
+ "className",
874
+ "variant"
875
+ ]);
876
+ return /* @__PURE__ */ jsx13("div", _object_spread({
877
+ ref: ref,
878
+ role: "alert",
879
+ className: cn(alertVariants({
880
+ variant: variant
881
+ }), className)
882
+ }, props));
883
+ });
884
+ Alert.displayName = "Alert";
885
+ AlertTitle = React8.forwardRef(function(_param, ref) {
886
+ var className = _param.className, props = _object_without_properties(_param, [
887
+ "className"
888
+ ]);
889
+ return /* @__PURE__ */ jsx13("h5", _object_spread({
890
+ ref: ref,
891
+ className: cn("mb-1 font-medium leading-none tracking-tight", className)
892
+ }, props));
893
+ });
894
+ AlertTitle.displayName = "AlertTitle";
895
+ AlertDescription = React8.forwardRef(function(_param, ref) {
896
+ var className = _param.className, props = _object_without_properties(_param, [
897
+ "className"
898
+ ]);
899
+ return /* @__PURE__ */ jsx13("div", _object_spread({
900
+ ref: ref,
901
+ className: cn("text-sm [&_p]:leading-relaxed", className)
902
+ }, props));
903
+ });
904
+ AlertDescription.displayName = "AlertDescription";
905
+ }
634
906
  });
635
-
636
907
  // src/components/atoms/ui/label.tsx
637
908
  import * as React9 from "react";
638
909
  import * as LabelPrimitive from "@radix-ui/react-label";
@@ -640,25 +911,23 @@ import { cva as cva4 } from "class-variance-authority";
640
911
  import { jsx as jsx14 } from "react/jsx-runtime";
641
912
  var labelVariants, Label2;
642
913
  var init_label = __esm({
643
- "src/components/atoms/ui/label.tsx"() {
644
- "use strict";
645
- "use client";
646
- init_utils();
647
- labelVariants = cva4(
648
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
649
- );
650
- Label2 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
651
- LabelPrimitive.Root,
652
- {
653
- ref,
654
- className: cn(labelVariants(), className, "alq--label"),
655
- ...props
656
- }
657
- ));
658
- Label2.displayName = LabelPrimitive.Root.displayName;
659
- }
914
+ "src/components/atoms/ui/label.tsx": function() {
915
+ "use strict";
916
+ "use client";
917
+ init_utils();
918
+ labelVariants = cva4("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
919
+ Label2 = React9.forwardRef(function(_param, ref) {
920
+ var className = _param.className, props = _object_without_properties(_param, [
921
+ "className"
922
+ ]);
923
+ return /* @__PURE__ */ jsx14(LabelPrimitive.Root, _object_spread({
924
+ ref: ref,
925
+ className: cn(labelVariants(), className, "alq--label")
926
+ }, props));
927
+ });
928
+ Label2.displayName = LabelPrimitive.Root.displayName;
929
+ }
660
930
  });
661
-
662
931
  // src/components/atoms/ui/checkbox.tsx
663
932
  import * as React10 from "react";
664
933
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
@@ -666,33 +935,29 @@ import { Check as Check2 } from "lucide-react";
666
935
  import { jsx as jsx15 } from "react/jsx-runtime";
667
936
  var Checkbox;
668
937
  var init_checkbox = __esm({
669
- "src/components/atoms/ui/checkbox.tsx"() {
670
- "use strict";
671
- "use client";
672
- init_utils();
673
- Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
674
- CheckboxPrimitive.Root,
675
- {
676
- ref,
677
- className: cn(
678
- "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
679
- className,
680
- "alq--checkbox"
681
- ),
682
- ...props,
683
- children: /* @__PURE__ */ jsx15(
684
- CheckboxPrimitive.Indicator,
685
- {
686
- className: cn("flex items-center justify-center text-current"),
687
- children: /* @__PURE__ */ jsx15(Check2, { className: "h-4 w-4" })
688
- }
689
- )
690
- }
691
- ));
692
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
693
- }
938
+ "src/components/atoms/ui/checkbox.tsx": function() {
939
+ "use strict";
940
+ "use client";
941
+ init_utils();
942
+ Checkbox = React10.forwardRef(function(_param, ref) {
943
+ var className = _param.className, props = _object_without_properties(_param, [
944
+ "className"
945
+ ]);
946
+ return /* @__PURE__ */ jsx15(CheckboxPrimitive.Root, _object_spread_props(_object_spread({
947
+ ref: ref,
948
+ className: cn("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", className, "alq--checkbox")
949
+ }, props), {
950
+ children: /* @__PURE__ */ jsx15(CheckboxPrimitive.Indicator, {
951
+ className: cn("flex items-center justify-center text-current"),
952
+ children: /* @__PURE__ */ jsx15(Check2, {
953
+ className: "h-4 w-4"
954
+ })
955
+ })
956
+ }));
957
+ });
958
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
959
+ }
694
960
  });
695
-
696
961
  // src/components/atoms/ui/toggle.tsx
697
962
  import * as React11 from "react";
698
963
  import * as TogglePrimitive from "@radix-ui/react-toggle";
@@ -700,251 +965,248 @@ import { cva as cva5 } from "class-variance-authority";
700
965
  import { jsx as jsx16 } from "react/jsx-runtime";
701
966
  var toggleVariants, Toggle;
702
967
  var init_toggle = __esm({
703
- "src/components/atoms/ui/toggle.tsx"() {
704
- "use strict";
705
- "use client";
706
- init_utils();
707
- toggleVariants = cva5(
708
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
709
- {
710
- variants: {
711
- variant: {
712
- default: "bg-transparent",
713
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
714
- },
715
- size: {
716
- default: "h-10 px-3",
717
- sm: "h-9 px-2.5",
718
- lg: "h-11 px-5"
719
- }
720
- },
721
- defaultVariants: {
722
- variant: "default",
723
- size: "default"
724
- }
725
- }
726
- );
727
- Toggle = React11.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx16(
728
- TogglePrimitive.Root,
729
- {
730
- ref,
731
- className: cn(toggleVariants({ variant, size, className }), "alq--toggle"),
732
- ...props
733
- }
734
- ));
735
- Toggle.displayName = TogglePrimitive.Root.displayName;
736
- }
968
+ "src/components/atoms/ui/toggle.tsx": function() {
969
+ "use strict";
970
+ "use client";
971
+ init_utils();
972
+ toggleVariants = cva5("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", {
973
+ variants: {
974
+ variant: {
975
+ default: "bg-transparent",
976
+ outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
977
+ },
978
+ size: {
979
+ default: "h-10 px-3",
980
+ sm: "h-9 px-2.5",
981
+ lg: "h-11 px-5"
982
+ }
983
+ },
984
+ defaultVariants: {
985
+ variant: "default",
986
+ size: "default"
987
+ }
988
+ });
989
+ Toggle = React11.forwardRef(function(_param, ref) {
990
+ var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
991
+ "className",
992
+ "variant",
993
+ "size"
994
+ ]);
995
+ return /* @__PURE__ */ jsx16(TogglePrimitive.Root, _object_spread({
996
+ ref: ref,
997
+ className: cn(toggleVariants({
998
+ variant: variant,
999
+ size: size,
1000
+ className: className
1001
+ }), "alq--toggle")
1002
+ }, props));
1003
+ });
1004
+ Toggle.displayName = TogglePrimitive.Root.displayName;
1005
+ }
737
1006
  });
738
-
739
1007
  // src/components/atoms/ui/slider.tsx
740
1008
  import * as React12 from "react";
741
1009
  import * as SliderPrimitive from "@radix-ui/react-slider";
742
1010
  import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
743
1011
  var Slider;
744
1012
  var init_slider = __esm({
745
- "src/components/atoms/ui/slider.tsx"() {
746
- "use strict";
747
- "use client";
748
- init_utils();
749
- Slider = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(
750
- SliderPrimitive.Root,
751
- {
752
- ref,
753
- className: cn(
754
- "relative flex w-44 touch-none select-none items-center",
755
- className,
756
- "alq--slider"
757
- ),
758
- ...props,
759
- children: [
760
- /* @__PURE__ */ jsx17(SliderPrimitive.Track, { className: "relative h-2 w-44 grow overflow-hidden rounded-full bg-primary", children: /* @__PURE__ */ jsx17(SliderPrimitive.Range, { className: "absolute h-full bg-secondary" }) }),
761
- /* @__PURE__ */ jsx17(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-gray bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
762
- ]
763
- }
764
- ));
765
- Slider.displayName = SliderPrimitive.Root.displayName;
766
- }
1013
+ "src/components/atoms/ui/slider.tsx": function() {
1014
+ "use strict";
1015
+ "use client";
1016
+ init_utils();
1017
+ Slider = React12.forwardRef(function(_param, ref) {
1018
+ var className = _param.className, props = _object_without_properties(_param, [
1019
+ "className"
1020
+ ]);
1021
+ return /* @__PURE__ */ jsxs4(SliderPrimitive.Root, _object_spread_props(_object_spread({
1022
+ ref: ref,
1023
+ className: cn("relative flex w-44 touch-none select-none items-center", className, "alq--slider")
1024
+ }, props), {
1025
+ children: [
1026
+ /* @__PURE__ */ jsx17(SliderPrimitive.Track, {
1027
+ className: "relative h-2 w-44 grow overflow-hidden rounded-full bg-primary",
1028
+ children: /* @__PURE__ */ jsx17(SliderPrimitive.Range, {
1029
+ className: "absolute h-full bg-secondary"
1030
+ })
1031
+ }),
1032
+ /* @__PURE__ */ jsx17(SliderPrimitive.Thumb, {
1033
+ className: "block h-5 w-5 rounded-full border-2 border-gray bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
1034
+ })
1035
+ ]
1036
+ }));
1037
+ });
1038
+ Slider.displayName = SliderPrimitive.Root.displayName;
1039
+ }
767
1040
  });
768
-
769
1041
  // src/components/atoms/ui/switch.tsx
770
1042
  import * as React13 from "react";
771
1043
  import * as SwitchPrimitives from "@radix-ui/react-switch";
772
1044
  import { jsx as jsx18 } from "react/jsx-runtime";
773
1045
  var Switch;
774
1046
  var init_switch = __esm({
775
- "src/components/atoms/ui/switch.tsx"() {
776
- "use strict";
777
- "use client";
778
- init_utils();
779
- Switch = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
780
- SwitchPrimitives.Root,
781
- {
782
- className: cn(
783
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
784
- className,
785
- "alq--switch"
786
- ),
787
- ...props,
788
- ref,
789
- children: /* @__PURE__ */ jsx18(
790
- SwitchPrimitives.Thumb,
791
- {
792
- className: cn(
793
- "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
794
- )
795
- }
796
- )
797
- }
798
- ));
799
- Switch.displayName = SwitchPrimitives.Root.displayName;
800
- }
1047
+ "src/components/atoms/ui/switch.tsx": function() {
1048
+ "use strict";
1049
+ "use client";
1050
+ init_utils();
1051
+ Switch = React13.forwardRef(function(_param, ref) {
1052
+ var className = _param.className, props = _object_without_properties(_param, [
1053
+ "className"
1054
+ ]);
1055
+ return /* @__PURE__ */ jsx18(SwitchPrimitives.Root, _object_spread_props(_object_spread({
1056
+ className: cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className, "alq--switch")
1057
+ }, props), {
1058
+ ref: ref,
1059
+ children: /* @__PURE__ */ jsx18(SwitchPrimitives.Thumb, {
1060
+ className: cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")
1061
+ })
1062
+ }));
1063
+ });
1064
+ Switch.displayName = SwitchPrimitives.Root.displayName;
1065
+ }
801
1066
  });
802
-
803
1067
  // src/components/atoms/ui/tabs.tsx
804
1068
  import * as React14 from "react";
805
1069
  import * as TabsPrimitive from "@radix-ui/react-tabs";
806
1070
  import { jsx as jsx19 } from "react/jsx-runtime";
807
1071
  var TabsList, TabsTrigger, TabsContent;
808
1072
  var init_tabs = __esm({
809
- "src/components/atoms/ui/tabs.tsx"() {
810
- "use strict";
811
- "use client";
812
- init_utils();
813
- TabsList = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
814
- TabsPrimitive.List,
815
- {
816
- ref,
817
- className: cn(
818
- "inline-flex h-10 items-center justify-center rounded-md p-1 text-muted-foreground",
819
- className,
820
- "alq--tabs"
821
- ),
822
- ...props
823
- }
824
- ));
825
- TabsList.displayName = TabsPrimitive.List.displayName;
826
- TabsTrigger = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
827
- TabsPrimitive.Trigger,
828
- {
829
- ref,
830
- className: cn(
831
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:border-b-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-b-2 data-[state=active]:text-foreground data-[state=active]:shadow-sm",
832
- className
833
- ),
834
- ...props
835
- }
836
- ));
837
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
838
- TabsContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
839
- TabsPrimitive.Content,
840
- {
841
- ref,
842
- className: cn(
843
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
844
- className
845
- ),
846
- ...props
847
- }
848
- ));
849
- TabsContent.displayName = TabsPrimitive.Content.displayName;
850
- }
1073
+ "src/components/atoms/ui/tabs.tsx": function() {
1074
+ "use strict";
1075
+ "use client";
1076
+ init_utils();
1077
+ TabsList = React14.forwardRef(function(_param, ref) {
1078
+ var className = _param.className, props = _object_without_properties(_param, [
1079
+ "className"
1080
+ ]);
1081
+ return /* @__PURE__ */ jsx19(TabsPrimitive.List, _object_spread({
1082
+ ref: ref,
1083
+ className: cn("inline-flex h-10 items-center justify-center rounded-md p-1 text-muted-foreground", className, "alq--tabs")
1084
+ }, props));
1085
+ });
1086
+ TabsList.displayName = TabsPrimitive.List.displayName;
1087
+ TabsTrigger = React14.forwardRef(function(_param, ref) {
1088
+ var className = _param.className, props = _object_without_properties(_param, [
1089
+ "className"
1090
+ ]);
1091
+ return /* @__PURE__ */ jsx19(TabsPrimitive.Trigger, _object_spread({
1092
+ ref: ref,
1093
+ className: cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:border-b-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-b-2 data-[state=active]:text-foreground data-[state=active]:shadow-sm", className)
1094
+ }, props));
1095
+ });
1096
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
1097
+ TabsContent = React14.forwardRef(function(_param, ref) {
1098
+ var className = _param.className, props = _object_without_properties(_param, [
1099
+ "className"
1100
+ ]);
1101
+ return /* @__PURE__ */ jsx19(TabsPrimitive.Content, _object_spread({
1102
+ ref: ref,
1103
+ className: cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className)
1104
+ }, props));
1105
+ });
1106
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
1107
+ }
851
1108
  });
852
-
853
1109
  // src/components/atoms/ui/aspect-ratio.tsx
854
1110
  import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
855
1111
  var init_aspect_ratio = __esm({
856
- "src/components/atoms/ui/aspect-ratio.tsx"() {
857
- "use strict";
858
- "use client";
859
- }
1112
+ "src/components/atoms/ui/aspect-ratio.tsx": function() {
1113
+ "use strict";
1114
+ "use client";
1115
+ }
860
1116
  });
861
-
862
1117
  // src/components/atoms/ui/table.tsx
863
1118
  import * as React15 from "react";
864
1119
  import { jsx as jsx20 } from "react/jsx-runtime";
865
1120
  var Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption;
866
1121
  var init_table = __esm({
867
- "src/components/atoms/ui/table.tsx"() {
868
- "use strict";
869
- init_utils();
870
- Table = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx20(
871
- "table",
872
- {
873
- ref,
874
- className: cn("w-full caption-bottom text-sm text-foreground bg-background", className, "alq--table"),
875
- ...props
876
- }
877
- ) }));
878
- Table.displayName = "Table";
879
- TableHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20("thead", { ref, className: cn("[&_tr]:border-b border-border bg-muted", className, "alq--table-header"), ...props }));
880
- TableHeader.displayName = "TableHeader";
881
- TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
882
- "tbody",
883
- {
884
- ref,
885
- className: cn("[&_tr:last-child]:border-0 [&_tr]:border-b border-border", className, "alq--table-body"),
886
- ...props
887
- }
888
- ));
889
- TableBody.displayName = "TableBody";
890
- TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
891
- "tfoot",
892
- {
893
- ref,
894
- className: cn(
895
- "border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0",
896
- className,
897
- "alq--table-footer"
898
- ),
899
- ...props
900
- }
901
- ));
902
- TableFooter.displayName = "TableFooter";
903
- TableRow = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
904
- "tr",
905
- {
906
- ref,
907
- className: cn(
908
- "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
909
- className
910
- ),
911
- ...props
912
- }
913
- ));
914
- TableRow.displayName = "TableRow";
915
- TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
916
- "th",
917
- {
918
- ref,
919
- className: cn(
920
- "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
921
- className
922
- ),
923
- ...props
924
- }
925
- ));
926
- TableHead.displayName = "TableHead";
927
- TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
928
- "td",
929
- {
930
- ref,
931
- className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
932
- ...props
933
- }
934
- ));
935
- TableCell.displayName = "TableCell";
936
- TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
937
- "caption",
938
- {
939
- ref,
940
- className: cn("mt-4 text-sm text-muted-foreground", className),
941
- ...props
942
- }
943
- ));
944
- TableCaption.displayName = "TableCaption";
945
- }
1122
+ "src/components/atoms/ui/table.tsx": function() {
1123
+ "use strict";
1124
+ init_utils();
1125
+ Table = React15.forwardRef(function(_param, ref) {
1126
+ var className = _param.className, props = _object_without_properties(_param, [
1127
+ "className"
1128
+ ]);
1129
+ return /* @__PURE__ */ jsx20("div", {
1130
+ className: "relative w-full overflow-auto",
1131
+ children: /* @__PURE__ */ jsx20("table", _object_spread({
1132
+ ref: ref,
1133
+ className: cn("w-full caption-bottom text-sm text-foreground bg-background", className, "alq--table")
1134
+ }, props))
1135
+ });
1136
+ });
1137
+ Table.displayName = "Table";
1138
+ TableHeader = React15.forwardRef(function(_param, ref) {
1139
+ var className = _param.className, props = _object_without_properties(_param, [
1140
+ "className"
1141
+ ]);
1142
+ return /* @__PURE__ */ jsx20("thead", _object_spread({
1143
+ ref: ref,
1144
+ className: cn("[&_tr]:border-b border-border bg-muted", className, "alq--table-header")
1145
+ }, props));
1146
+ });
1147
+ TableHeader.displayName = "TableHeader";
1148
+ TableBody = React15.forwardRef(function(_param, ref) {
1149
+ var className = _param.className, props = _object_without_properties(_param, [
1150
+ "className"
1151
+ ]);
1152
+ return /* @__PURE__ */ jsx20("tbody", _object_spread({
1153
+ ref: ref,
1154
+ className: cn("[&_tr:last-child]:border-0 [&_tr]:border-b border-border", className, "alq--table-body")
1155
+ }, props));
1156
+ });
1157
+ TableBody.displayName = "TableBody";
1158
+ TableFooter = React15.forwardRef(function(_param, ref) {
1159
+ var className = _param.className, props = _object_without_properties(_param, [
1160
+ "className"
1161
+ ]);
1162
+ return /* @__PURE__ */ jsx20("tfoot", _object_spread({
1163
+ ref: ref,
1164
+ className: cn("border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0", className, "alq--table-footer")
1165
+ }, props));
1166
+ });
1167
+ TableFooter.displayName = "TableFooter";
1168
+ TableRow = React15.forwardRef(function(_param, ref) {
1169
+ var className = _param.className, props = _object_without_properties(_param, [
1170
+ "className"
1171
+ ]);
1172
+ return /* @__PURE__ */ jsx20("tr", _object_spread({
1173
+ ref: ref,
1174
+ className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className)
1175
+ }, props));
1176
+ });
1177
+ TableRow.displayName = "TableRow";
1178
+ TableHead = React15.forwardRef(function(_param, ref) {
1179
+ var className = _param.className, props = _object_without_properties(_param, [
1180
+ "className"
1181
+ ]);
1182
+ return /* @__PURE__ */ jsx20("th", _object_spread({
1183
+ ref: ref,
1184
+ className: cn("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className)
1185
+ }, props));
1186
+ });
1187
+ TableHead.displayName = "TableHead";
1188
+ TableCell = React15.forwardRef(function(_param, ref) {
1189
+ var className = _param.className, props = _object_without_properties(_param, [
1190
+ "className"
1191
+ ]);
1192
+ return /* @__PURE__ */ jsx20("td", _object_spread({
1193
+ ref: ref,
1194
+ className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)
1195
+ }, props));
1196
+ });
1197
+ TableCell.displayName = "TableCell";
1198
+ TableCaption = React15.forwardRef(function(_param, ref) {
1199
+ var className = _param.className, props = _object_without_properties(_param, [
1200
+ "className"
1201
+ ]);
1202
+ return /* @__PURE__ */ jsx20("caption", _object_spread({
1203
+ ref: ref,
1204
+ className: cn("mt-4 text-sm text-muted-foreground", className)
1205
+ }, props));
1206
+ });
1207
+ TableCaption.displayName = "TableCaption";
1208
+ }
946
1209
  });
947
-
948
1210
  // src/components/atoms/ui/breadcrumb.tsx
949
1211
  import * as React16 from "react";
950
1212
  import { Slot as Slot2 } from "@radix-ui/react-slot";
@@ -952,228 +1214,227 @@ import { ChevronRight, MoreHorizontal } from "lucide-react";
952
1214
  import { jsx as jsx21, jsxs as jsxs5 } from "react/jsx-runtime";
953
1215
  var Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis;
954
1216
  var init_breadcrumb = __esm({
955
- "src/components/atoms/ui/breadcrumb.tsx"() {
956
- "use strict";
957
- init_utils();
958
- Breadcrumb = React16.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx21("nav", { ref, "aria-label": "breadcrumb", ...props }));
959
- Breadcrumb.displayName = "Breadcrumb";
960
- BreadcrumbList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
961
- "ol",
962
- {
963
- ref,
964
- className: cn(
965
- "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
966
- className
967
- ),
968
- ...props
969
- }
970
- ));
971
- BreadcrumbList.displayName = "BreadcrumbList";
972
- BreadcrumbItem = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
973
- "li",
974
- {
975
- ref,
976
- className: cn("inline-flex items-center gap-1.5", className),
977
- ...props
978
- }
979
- ));
980
- BreadcrumbItem.displayName = "BreadcrumbItem";
981
- BreadcrumbLink = React16.forwardRef(({ asChild, className, ...props }, ref) => {
982
- const Comp = asChild ? Slot2 : "a";
983
- return /* @__PURE__ */ jsx21(
984
- Comp,
985
- {
986
- ref,
987
- className: cn("transition-colors hover:text-foreground", className),
988
- ...props
989
- }
990
- );
991
- });
992
- BreadcrumbLink.displayName = "BreadcrumbLink";
993
- BreadcrumbPage = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
994
- "span",
995
- {
996
- ref,
997
- role: "link",
998
- "aria-disabled": "true",
999
- "aria-current": "page",
1000
- className: cn("font-normal text-foreground", className),
1001
- ...props
1002
- }
1003
- ));
1004
- BreadcrumbPage.displayName = "BreadcrumbPage";
1005
- BreadcrumbSeparator = ({
1006
- children,
1007
- className,
1008
- ...props
1009
- }) => /* @__PURE__ */ jsx21(
1010
- "li",
1011
- {
1012
- role: "presentation",
1013
- "aria-hidden": "true",
1014
- className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
1015
- ...props,
1016
- children: children ?? /* @__PURE__ */ jsx21(ChevronRight, {})
1017
- }
1018
- );
1019
- BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
1020
- BreadcrumbEllipsis = ({
1021
- className,
1022
- ...props
1023
- }) => /* @__PURE__ */ jsxs5(
1024
- "span",
1025
- {
1026
- role: "presentation",
1027
- "aria-hidden": "true",
1028
- className: cn("flex h-9 w-9 items-center justify-center", className),
1029
- ...props,
1030
- children: [
1031
- /* @__PURE__ */ jsx21(MoreHorizontal, { className: "h-4 w-4" }),
1032
- /* @__PURE__ */ jsx21("span", { className: "sr-only", children: "More" })
1033
- ]
1034
- }
1035
- );
1036
- BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
1037
- }
1217
+ "src/components/atoms/ui/breadcrumb.tsx": function() {
1218
+ "use strict";
1219
+ init_utils();
1220
+ Breadcrumb = React16.forwardRef(function(_param, ref) {
1221
+ var props = _extends({}, _object_destructuring_empty(_param));
1222
+ return /* @__PURE__ */ jsx21("nav", _object_spread({
1223
+ ref: ref,
1224
+ "aria-label": "breadcrumb"
1225
+ }, props));
1226
+ });
1227
+ Breadcrumb.displayName = "Breadcrumb";
1228
+ BreadcrumbList = React16.forwardRef(function(_param, ref) {
1229
+ var className = _param.className, props = _object_without_properties(_param, [
1230
+ "className"
1231
+ ]);
1232
+ return /* @__PURE__ */ jsx21("ol", _object_spread({
1233
+ ref: ref,
1234
+ className: cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", className)
1235
+ }, props));
1236
+ });
1237
+ BreadcrumbList.displayName = "BreadcrumbList";
1238
+ BreadcrumbItem = React16.forwardRef(function(_param, ref) {
1239
+ var className = _param.className, props = _object_without_properties(_param, [
1240
+ "className"
1241
+ ]);
1242
+ return /* @__PURE__ */ jsx21("li", _object_spread({
1243
+ ref: ref,
1244
+ className: cn("inline-flex items-center gap-1.5", className)
1245
+ }, props));
1246
+ });
1247
+ BreadcrumbItem.displayName = "BreadcrumbItem";
1248
+ BreadcrumbLink = React16.forwardRef(function(_param, ref) {
1249
+ var asChild = _param.asChild, className = _param.className, props = _object_without_properties(_param, [
1250
+ "asChild",
1251
+ "className"
1252
+ ]);
1253
+ var Comp = asChild ? Slot2 : "a";
1254
+ return /* @__PURE__ */ jsx21(Comp, _object_spread({
1255
+ ref: ref,
1256
+ className: cn("transition-colors hover:text-foreground", className)
1257
+ }, props));
1258
+ });
1259
+ BreadcrumbLink.displayName = "BreadcrumbLink";
1260
+ BreadcrumbPage = React16.forwardRef(function(_param, ref) {
1261
+ var className = _param.className, props = _object_without_properties(_param, [
1262
+ "className"
1263
+ ]);
1264
+ return /* @__PURE__ */ jsx21("span", _object_spread({
1265
+ ref: ref,
1266
+ role: "link",
1267
+ "aria-disabled": "true",
1268
+ "aria-current": "page",
1269
+ className: cn("font-normal text-foreground", className)
1270
+ }, props));
1271
+ });
1272
+ BreadcrumbPage.displayName = "BreadcrumbPage";
1273
+ BreadcrumbSeparator = function(_param) {
1274
+ var children = _param.children, className = _param.className, props = _object_without_properties(_param, [
1275
+ "children",
1276
+ "className"
1277
+ ]);
1278
+ return /* @__PURE__ */ jsx21("li", _object_spread_props(_object_spread({
1279
+ role: "presentation",
1280
+ "aria-hidden": "true",
1281
+ className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)
1282
+ }, props), {
1283
+ children: children !== null && children !== void 0 ? children : /* @__PURE__ */ jsx21(ChevronRight, {})
1284
+ }));
1285
+ };
1286
+ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
1287
+ BreadcrumbEllipsis = function(_param) {
1288
+ var className = _param.className, props = _object_without_properties(_param, [
1289
+ "className"
1290
+ ]);
1291
+ return /* @__PURE__ */ jsxs5("span", _object_spread_props(_object_spread({
1292
+ role: "presentation",
1293
+ "aria-hidden": "true",
1294
+ className: cn("flex h-9 w-9 items-center justify-center", className)
1295
+ }, props), {
1296
+ children: [
1297
+ /* @__PURE__ */ jsx21(MoreHorizontal, {
1298
+ className: "h-4 w-4"
1299
+ }),
1300
+ /* @__PURE__ */ jsx21("span", {
1301
+ className: "sr-only",
1302
+ children: "More"
1303
+ })
1304
+ ]
1305
+ }));
1306
+ };
1307
+ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
1308
+ }
1038
1309
  });
1039
-
1040
1310
  // src/components/molecules/alert-dialog.tsx
1041
1311
  import * as React17 from "react";
1042
1312
  import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
1043
1313
  import { jsx as jsx22, jsxs as jsxs6 } from "react/jsx-runtime";
1044
1314
  var AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel;
1045
1315
  var init_alert_dialog = __esm({
1046
- "src/components/molecules/alert-dialog.tsx"() {
1047
- "use strict";
1048
- "use client";
1049
- init_utils();
1050
- init_button();
1051
- AlertDialogPortal = AlertDialogPrimitive.Portal;
1052
- AlertDialogOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
1053
- AlertDialogPrimitive.Overlay,
1054
- {
1055
- className: cn(
1056
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1057
- className
1058
- ),
1059
- ...props,
1060
- ref
1061
- }
1062
- ));
1063
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
1064
- AlertDialogContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs6(AlertDialogPortal, { children: [
1065
- /* @__PURE__ */ jsx22(AlertDialogOverlay, {}),
1066
- /* @__PURE__ */ jsx22(
1067
- AlertDialogPrimitive.Content,
1068
- {
1069
- ref,
1070
- className: cn(
1071
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
1072
- className
1073
- ),
1074
- ...props
1075
- }
1076
- )
1077
- ] }));
1078
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
1079
- AlertDialogHeader = ({
1080
- className,
1081
- ...props
1082
- }) => /* @__PURE__ */ jsx22(
1083
- "div",
1084
- {
1085
- className: cn(
1086
- "flex flex-col space-y-2 text-center sm:text-left",
1087
- className
1088
- ),
1089
- ...props
1090
- }
1091
- );
1092
- AlertDialogHeader.displayName = "AlertDialogHeader";
1093
- AlertDialogFooter = ({
1094
- className,
1095
- ...props
1096
- }) => /* @__PURE__ */ jsx22(
1097
- "div",
1098
- {
1099
- className: cn(
1100
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
1101
- className
1102
- ),
1103
- ...props
1104
- }
1105
- );
1106
- AlertDialogFooter.displayName = "AlertDialogFooter";
1107
- AlertDialogTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
1108
- AlertDialogPrimitive.Title,
1109
- {
1110
- ref,
1111
- className: cn("text-lg font-semibold", className),
1112
- ...props
1113
- }
1114
- ));
1115
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
1116
- AlertDialogDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
1117
- AlertDialogPrimitive.Description,
1118
- {
1119
- ref,
1120
- className: cn("text-sm text-muted-foreground", className),
1121
- ...props
1122
- }
1123
- ));
1124
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
1125
- AlertDialogAction = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
1126
- AlertDialogPrimitive.Action,
1127
- {
1128
- ref,
1129
- className: cn(buttonVariants(), className),
1130
- ...props
1131
- }
1132
- ));
1133
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
1134
- AlertDialogCancel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
1135
- AlertDialogPrimitive.Cancel,
1136
- {
1137
- ref,
1138
- className: cn(
1139
- buttonVariants({ variant: "outline" }),
1140
- "mt-2 sm:mt-0",
1141
- className
1142
- ),
1143
- ...props
1144
- }
1145
- ));
1146
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
1147
- }
1316
+ "src/components/molecules/alert-dialog.tsx": function() {
1317
+ "use strict";
1318
+ "use client";
1319
+ init_utils();
1320
+ init_button();
1321
+ AlertDialogPortal = AlertDialogPrimitive.Portal;
1322
+ AlertDialogOverlay = React17.forwardRef(function(_param, ref) {
1323
+ var className = _param.className, props = _object_without_properties(_param, [
1324
+ "className"
1325
+ ]);
1326
+ return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Overlay, _object_spread_props(_object_spread({
1327
+ className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)
1328
+ }, props), {
1329
+ ref: ref
1330
+ }));
1331
+ });
1332
+ AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
1333
+ AlertDialogContent = React17.forwardRef(function(_param, ref) {
1334
+ var className = _param.className, props = _object_without_properties(_param, [
1335
+ "className"
1336
+ ]);
1337
+ return /* @__PURE__ */ jsxs6(AlertDialogPortal, {
1338
+ children: [
1339
+ /* @__PURE__ */ jsx22(AlertDialogOverlay, {}),
1340
+ /* @__PURE__ */ jsx22(AlertDialogPrimitive.Content, _object_spread({
1341
+ ref: ref,
1342
+ className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className)
1343
+ }, props))
1344
+ ]
1345
+ });
1346
+ });
1347
+ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
1348
+ AlertDialogHeader = function(_param) {
1349
+ var className = _param.className, props = _object_without_properties(_param, [
1350
+ "className"
1351
+ ]);
1352
+ return /* @__PURE__ */ jsx22("div", _object_spread({
1353
+ className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
1354
+ }, props));
1355
+ };
1356
+ AlertDialogHeader.displayName = "AlertDialogHeader";
1357
+ AlertDialogFooter = function(_param) {
1358
+ var className = _param.className, props = _object_without_properties(_param, [
1359
+ "className"
1360
+ ]);
1361
+ return /* @__PURE__ */ jsx22("div", _object_spread({
1362
+ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
1363
+ }, props));
1364
+ };
1365
+ AlertDialogFooter.displayName = "AlertDialogFooter";
1366
+ AlertDialogTitle = React17.forwardRef(function(_param, ref) {
1367
+ var className = _param.className, props = _object_without_properties(_param, [
1368
+ "className"
1369
+ ]);
1370
+ return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Title, _object_spread({
1371
+ ref: ref,
1372
+ className: cn("text-lg font-semibold", className)
1373
+ }, props));
1374
+ });
1375
+ AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
1376
+ AlertDialogDescription = React17.forwardRef(function(_param, ref) {
1377
+ var className = _param.className, props = _object_without_properties(_param, [
1378
+ "className"
1379
+ ]);
1380
+ return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Description, _object_spread({
1381
+ ref: ref,
1382
+ className: cn("text-sm text-muted-foreground", className)
1383
+ }, props));
1384
+ });
1385
+ AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
1386
+ AlertDialogAction = React17.forwardRef(function(_param, ref) {
1387
+ var className = _param.className, props = _object_without_properties(_param, [
1388
+ "className"
1389
+ ]);
1390
+ return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Action, _object_spread({
1391
+ ref: ref,
1392
+ className: cn(buttonVariants(), className)
1393
+ }, props));
1394
+ });
1395
+ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
1396
+ AlertDialogCancel = React17.forwardRef(function(_param, ref) {
1397
+ var className = _param.className, props = _object_without_properties(_param, [
1398
+ "className"
1399
+ ]);
1400
+ return /* @__PURE__ */ jsx22(AlertDialogPrimitive.Cancel, _object_spread({
1401
+ ref: ref,
1402
+ className: cn(buttonVariants({
1403
+ variant: "outline"
1404
+ }), "mt-2 sm:mt-0", className)
1405
+ }, props));
1406
+ });
1407
+ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
1408
+ }
1148
1409
  });
1149
-
1150
1410
  // src/components/atoms/ui/popover.tsx
1151
1411
  import * as React18 from "react";
1152
1412
  import * as PopoverPrimitive from "@radix-ui/react-popover";
1153
1413
  import { jsx as jsx23 } from "react/jsx-runtime";
1154
1414
  var PopoverContent;
1155
1415
  var init_popover = __esm({
1156
- "src/components/atoms/ui/popover.tsx"() {
1157
- "use strict";
1158
- "use client";
1159
- init_utils();
1160
- PopoverContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx23(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
1161
- PopoverPrimitive.Content,
1162
- {
1163
- ref,
1164
- align,
1165
- sideOffset,
1166
- className: cn(
1167
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1168
- className
1169
- ),
1170
- ...props
1171
- }
1172
- ) }));
1173
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1174
- }
1416
+ "src/components/atoms/ui/popover.tsx": function() {
1417
+ "use strict";
1418
+ "use client";
1419
+ init_utils();
1420
+ PopoverContent = React18.forwardRef(function(_param, ref) {
1421
+ var className = _param.className, _param_align = _param.align, align = _param_align === void 0 ? "center" : _param_align, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, props = _object_without_properties(_param, [
1422
+ "className",
1423
+ "align",
1424
+ "sideOffset"
1425
+ ]);
1426
+ return /* @__PURE__ */ jsx23(PopoverPrimitive.Portal, {
1427
+ children: /* @__PURE__ */ jsx23(PopoverPrimitive.Content, _object_spread({
1428
+ ref: ref,
1429
+ align: align,
1430
+ sideOffset: sideOffset,
1431
+ className: cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className)
1432
+ }, props))
1433
+ });
1434
+ });
1435
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1436
+ }
1175
1437
  });
1176
-
1177
1438
  // src/components/atoms/ui/dialog.tsx
1178
1439
  import * as React19 from "react";
1179
1440
  import * as DialogPrimitive from "@radix-ui/react-dialog";
@@ -1181,101 +1442,94 @@ import { X } from "lucide-react";
1181
1442
  import { jsx as jsx24, jsxs as jsxs7 } from "react/jsx-runtime";
1182
1443
  var Dialog, DialogPortal, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription;
1183
1444
  var init_dialog = __esm({
1184
- "src/components/atoms/ui/dialog.tsx"() {
1185
- "use strict";
1186
- "use client";
1187
- init_utils();
1188
- Dialog = DialogPrimitive.Root;
1189
- DialogPortal = DialogPrimitive.Portal;
1190
- DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1191
- DialogPrimitive.Overlay,
1192
- {
1193
- ref,
1194
- className: cn(
1195
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1196
- className
1197
- ),
1198
- ...props
1199
- }
1200
- ));
1201
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1202
- DialogContent = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(DialogPortal, { children: [
1203
- /* @__PURE__ */ jsx24(DialogOverlay, {}),
1204
- /* @__PURE__ */ jsxs7(
1205
- DialogPrimitive.Content,
1206
- {
1207
- ref,
1208
- className: cn(
1209
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
1210
- className,
1211
- "alq--dialog-content"
1212
- ),
1213
- ...props,
1214
- children: [
1215
- children,
1216
- /* @__PURE__ */ jsxs7(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
1217
- /* @__PURE__ */ jsx24(X, { className: "h-4 w-4" }),
1218
- /* @__PURE__ */ jsx24("span", { className: "sr-only", children: "Close" })
1219
- ] })
1220
- ]
1221
- }
1222
- )
1223
- ] }));
1224
- DialogContent.displayName = DialogPrimitive.Content.displayName;
1225
- DialogHeader = ({
1226
- className,
1227
- ...props
1228
- }) => /* @__PURE__ */ jsx24(
1229
- "div",
1230
- {
1231
- className: cn(
1232
- "flex flex-col space-y-1.5 text-center sm:text-left text-foreground",
1233
- className,
1234
- "alq--dialog-header"
1235
- ),
1236
- ...props
1237
- }
1238
- );
1239
- DialogHeader.displayName = "DialogHeader";
1240
- DialogFooter = ({
1241
- className,
1242
- ...props
1243
- }) => /* @__PURE__ */ jsx24(
1244
- "div",
1245
- {
1246
- className: cn(
1247
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
1248
- className
1249
- ),
1250
- ...props
1251
- }
1252
- );
1253
- DialogFooter.displayName = "DialogFooter";
1254
- DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1255
- DialogPrimitive.Title,
1256
- {
1257
- ref,
1258
- className: cn(
1259
- "text-lg font-semibold leading-none tracking-tight text-foreground",
1260
- className,
1261
- "alq--dialog-title"
1262
- ),
1263
- ...props
1264
- }
1265
- ));
1266
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
1267
- DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1268
- DialogPrimitive.Description,
1269
- {
1270
- ref,
1271
- className: cn("text-sm text-muted-foreground", className),
1272
- ...props
1273
- }
1274
- ));
1275
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
1276
- }
1445
+ "src/components/atoms/ui/dialog.tsx": function() {
1446
+ "use strict";
1447
+ "use client";
1448
+ init_utils();
1449
+ Dialog = DialogPrimitive.Root;
1450
+ DialogPortal = DialogPrimitive.Portal;
1451
+ DialogOverlay = React19.forwardRef(function(_param, ref) {
1452
+ var className = _param.className, props = _object_without_properties(_param, [
1453
+ "className"
1454
+ ]);
1455
+ return /* @__PURE__ */ jsx24(DialogPrimitive.Overlay, _object_spread({
1456
+ ref: ref,
1457
+ className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)
1458
+ }, props));
1459
+ });
1460
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1461
+ DialogContent = React19.forwardRef(function(_param, ref) {
1462
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
1463
+ "className",
1464
+ "children"
1465
+ ]);
1466
+ return /* @__PURE__ */ jsxs7(DialogPortal, {
1467
+ children: [
1468
+ /* @__PURE__ */ jsx24(DialogOverlay, {}),
1469
+ /* @__PURE__ */ jsxs7(DialogPrimitive.Content, _object_spread_props(_object_spread({
1470
+ ref: ref,
1471
+ className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className, "alq--dialog-content")
1472
+ }, props), {
1473
+ children: [
1474
+ children,
1475
+ /* @__PURE__ */ jsxs7(DialogPrimitive.Close, {
1476
+ className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
1477
+ children: [
1478
+ /* @__PURE__ */ jsx24(X, {
1479
+ className: "h-4 w-4"
1480
+ }),
1481
+ /* @__PURE__ */ jsx24("span", {
1482
+ className: "sr-only",
1483
+ children: "Close"
1484
+ })
1485
+ ]
1486
+ })
1487
+ ]
1488
+ }))
1489
+ ]
1490
+ });
1491
+ });
1492
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
1493
+ DialogHeader = function(_param) {
1494
+ var className = _param.className, props = _object_without_properties(_param, [
1495
+ "className"
1496
+ ]);
1497
+ return /* @__PURE__ */ jsx24("div", _object_spread({
1498
+ className: cn("flex flex-col space-y-1.5 text-center sm:text-left text-foreground", className, "alq--dialog-header")
1499
+ }, props));
1500
+ };
1501
+ DialogHeader.displayName = "DialogHeader";
1502
+ DialogFooter = function(_param) {
1503
+ var className = _param.className, props = _object_without_properties(_param, [
1504
+ "className"
1505
+ ]);
1506
+ return /* @__PURE__ */ jsx24("div", _object_spread({
1507
+ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
1508
+ }, props));
1509
+ };
1510
+ DialogFooter.displayName = "DialogFooter";
1511
+ DialogTitle = React19.forwardRef(function(_param, ref) {
1512
+ var className = _param.className, props = _object_without_properties(_param, [
1513
+ "className"
1514
+ ]);
1515
+ return /* @__PURE__ */ jsx24(DialogPrimitive.Title, _object_spread({
1516
+ ref: ref,
1517
+ className: cn("text-lg font-semibold leading-none tracking-tight text-foreground", className, "alq--dialog-title")
1518
+ }, props));
1519
+ });
1520
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
1521
+ DialogDescription = React19.forwardRef(function(_param, ref) {
1522
+ var className = _param.className, props = _object_without_properties(_param, [
1523
+ "className"
1524
+ ]);
1525
+ return /* @__PURE__ */ jsx24(DialogPrimitive.Description, _object_spread({
1526
+ ref: ref,
1527
+ className: cn("text-sm text-muted-foreground", className)
1528
+ }, props));
1529
+ });
1530
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
1531
+ }
1277
1532
  });
1278
-
1279
1533
  // src/components/atoms/ui/command.tsx
1280
1534
  import * as React20 from "react";
1281
1535
  import { Command as CommandPrimitive } from "cmdk";
@@ -1283,108 +1537,98 @@ import { Search } from "lucide-react";
1283
1537
  import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
1284
1538
  var Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandSeparator, CommandItem, CommandShortcut;
1285
1539
  var init_command = __esm({
1286
- "src/components/atoms/ui/command.tsx"() {
1287
- "use strict";
1288
- "use client";
1289
- init_utils();
1290
- init_dialog();
1291
- Command = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1292
- CommandPrimitive,
1293
- {
1294
- ref,
1295
- className: cn(
1296
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
1297
- className
1298
- ),
1299
- ...props
1300
- }
1301
- ));
1302
- Command.displayName = CommandPrimitive.displayName;
1303
- CommandInput = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1304
- /* @__PURE__ */ jsx25(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1305
- /* @__PURE__ */ jsx25(
1306
- CommandPrimitive.Input,
1307
- {
1308
- ref,
1309
- className: cn(
1310
- "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
1311
- className
1312
- ),
1313
- ...props
1314
- }
1315
- )
1316
- ] }));
1317
- CommandInput.displayName = CommandPrimitive.Input.displayName;
1318
- CommandList = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1319
- CommandPrimitive.List,
1320
- {
1321
- ref,
1322
- className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
1323
- ...props
1324
- }
1325
- ));
1326
- CommandList.displayName = CommandPrimitive.List.displayName;
1327
- CommandEmpty = React20.forwardRef((props, ref) => /* @__PURE__ */ jsx25(
1328
- CommandPrimitive.Empty,
1329
- {
1330
- ref,
1331
- className: "py-6 text-center text-sm",
1332
- ...props
1333
- }
1334
- ));
1335
- CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
1336
- CommandGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1337
- CommandPrimitive.Group,
1338
- {
1339
- ref,
1340
- className: cn(
1341
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
1342
- className
1343
- ),
1344
- ...props
1345
- }
1346
- ));
1347
- CommandGroup.displayName = CommandPrimitive.Group.displayName;
1348
- CommandSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1349
- CommandPrimitive.Separator,
1350
- {
1351
- ref,
1352
- className: cn("-mx-1 h-px bg-border", className),
1353
- ...props
1354
- }
1355
- ));
1356
- CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
1357
- CommandItem = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1358
- CommandPrimitive.Item,
1359
- {
1360
- ref,
1361
- className: cn(
1362
- "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1363
- className
1364
- ),
1365
- ...props
1366
- }
1367
- ));
1368
- CommandItem.displayName = CommandPrimitive.Item.displayName;
1369
- CommandShortcut = ({
1370
- className,
1371
- ...props
1372
- }) => {
1373
- return /* @__PURE__ */ jsx25(
1374
- "span",
1375
- {
1376
- className: cn(
1377
- "ml-auto text-xs tracking-widest text-muted-foreground",
1378
- className
1379
- ),
1380
- ...props
1381
- }
1382
- );
1383
- };
1384
- CommandShortcut.displayName = "CommandShortcut";
1385
- }
1540
+ "src/components/atoms/ui/command.tsx": function() {
1541
+ "use strict";
1542
+ "use client";
1543
+ init_utils();
1544
+ init_dialog();
1545
+ Command = React20.forwardRef(function(_param, ref) {
1546
+ var className = _param.className, props = _object_without_properties(_param, [
1547
+ "className"
1548
+ ]);
1549
+ return /* @__PURE__ */ jsx25(CommandPrimitive, _object_spread({
1550
+ ref: ref,
1551
+ className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className)
1552
+ }, props));
1553
+ });
1554
+ Command.displayName = CommandPrimitive.displayName;
1555
+ CommandInput = React20.forwardRef(function(_param, ref) {
1556
+ var className = _param.className, props = _object_without_properties(_param, [
1557
+ "className"
1558
+ ]);
1559
+ return /* @__PURE__ */ jsxs8("div", {
1560
+ className: "flex items-center border-b px-3",
1561
+ "cmdk-input-wrapper": "",
1562
+ children: [
1563
+ /* @__PURE__ */ jsx25(Search, {
1564
+ className: "mr-2 h-4 w-4 shrink-0 opacity-50"
1565
+ }),
1566
+ /* @__PURE__ */ jsx25(CommandPrimitive.Input, _object_spread({
1567
+ ref: ref,
1568
+ className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className)
1569
+ }, props))
1570
+ ]
1571
+ });
1572
+ });
1573
+ CommandInput.displayName = CommandPrimitive.Input.displayName;
1574
+ CommandList = React20.forwardRef(function(_param, ref) {
1575
+ var className = _param.className, props = _object_without_properties(_param, [
1576
+ "className"
1577
+ ]);
1578
+ return /* @__PURE__ */ jsx25(CommandPrimitive.List, _object_spread({
1579
+ ref: ref,
1580
+ className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)
1581
+ }, props));
1582
+ });
1583
+ CommandList.displayName = CommandPrimitive.List.displayName;
1584
+ CommandEmpty = React20.forwardRef(function(props, ref) {
1585
+ return /* @__PURE__ */ jsx25(CommandPrimitive.Empty, _object_spread({
1586
+ ref: ref,
1587
+ className: "py-6 text-center text-sm"
1588
+ }, props));
1589
+ });
1590
+ CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
1591
+ CommandGroup = React20.forwardRef(function(_param, ref) {
1592
+ var className = _param.className, props = _object_without_properties(_param, [
1593
+ "className"
1594
+ ]);
1595
+ return /* @__PURE__ */ jsx25(CommandPrimitive.Group, _object_spread({
1596
+ ref: ref,
1597
+ className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className)
1598
+ }, props));
1599
+ });
1600
+ CommandGroup.displayName = CommandPrimitive.Group.displayName;
1601
+ CommandSeparator = React20.forwardRef(function(_param, ref) {
1602
+ var className = _param.className, props = _object_without_properties(_param, [
1603
+ "className"
1604
+ ]);
1605
+ return /* @__PURE__ */ jsx25(CommandPrimitive.Separator, _object_spread({
1606
+ ref: ref,
1607
+ className: cn("-mx-1 h-px bg-border", className)
1608
+ }, props));
1609
+ });
1610
+ CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
1611
+ CommandItem = React20.forwardRef(function(_param, ref) {
1612
+ var className = _param.className, props = _object_without_properties(_param, [
1613
+ "className"
1614
+ ]);
1615
+ return /* @__PURE__ */ jsx25(CommandPrimitive.Item, _object_spread({
1616
+ ref: ref,
1617
+ className: cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className)
1618
+ }, props));
1619
+ });
1620
+ CommandItem.displayName = CommandPrimitive.Item.displayName;
1621
+ CommandShortcut = function(_param) {
1622
+ var className = _param.className, props = _object_without_properties(_param, [
1623
+ "className"
1624
+ ]);
1625
+ return /* @__PURE__ */ jsx25("span", _object_spread({
1626
+ className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className)
1627
+ }, props));
1628
+ };
1629
+ CommandShortcut.displayName = "CommandShortcut";
1630
+ }
1386
1631
  });
1387
-
1388
1632
  // src/components/atoms/ui/toast.tsx
1389
1633
  import * as React21 from "react";
1390
1634
  import * as ToastPrimitives from "@radix-ui/react-toast";
@@ -1393,94 +1637,91 @@ import { X as X2 } from "lucide-react";
1393
1637
  import { jsx as jsx26 } from "react/jsx-runtime";
1394
1638
  var ToastViewport, toastVariants, Toast, ToastAction, ToastClose, ToastTitle, ToastDescription;
1395
1639
  var init_toast = __esm({
1396
- "src/components/atoms/ui/toast.tsx"() {
1397
- "use strict";
1398
- "use client";
1399
- init_utils();
1400
- ToastViewport = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1401
- ToastPrimitives.Viewport,
1402
- {
1403
- ref,
1404
- className: cn(
1405
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
1406
- className
1407
- ),
1408
- ...props
1409
- }
1410
- ));
1411
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
1412
- toastVariants = cva6(
1413
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
1414
- {
1415
- variants: {
1416
- variant: {
1417
- default: "border bg-background text-foreground",
1418
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
1419
- }
1420
- },
1421
- defaultVariants: {
1422
- variant: "default"
1423
- }
1424
- }
1425
- );
1426
- Toast = React21.forwardRef(({ className, variant, ...props }, ref) => {
1427
- return /* @__PURE__ */ jsx26(
1428
- ToastPrimitives.Root,
1429
- {
1430
- ref,
1431
- className: cn(toastVariants({ variant }), className),
1432
- ...props
1433
- }
1434
- );
1435
- });
1436
- Toast.displayName = ToastPrimitives.Root.displayName;
1437
- ToastAction = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1438
- ToastPrimitives.Action,
1439
- {
1440
- ref,
1441
- className: cn(
1442
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
1443
- className
1444
- ),
1445
- ...props
1446
- }
1447
- ));
1448
- ToastAction.displayName = ToastPrimitives.Action.displayName;
1449
- ToastClose = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1450
- ToastPrimitives.Close,
1451
- {
1452
- ref,
1453
- className: cn(
1454
- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
1455
- className
1456
- ),
1457
- "toast-close": "",
1458
- ...props,
1459
- children: /* @__PURE__ */ jsx26(X2, { className: "h-4 w-4" })
1460
- }
1461
- ));
1462
- ToastClose.displayName = ToastPrimitives.Close.displayName;
1463
- ToastTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1464
- ToastPrimitives.Title,
1465
- {
1466
- ref,
1467
- className: cn("text-sm font-semibold", className),
1468
- ...props
1469
- }
1470
- ));
1471
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
1472
- ToastDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1473
- ToastPrimitives.Description,
1474
- {
1475
- ref,
1476
- className: cn("text-sm opacity-90", className),
1477
- ...props
1478
- }
1479
- ));
1480
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
1481
- }
1640
+ "src/components/atoms/ui/toast.tsx": function() {
1641
+ "use strict";
1642
+ "use client";
1643
+ init_utils();
1644
+ ToastViewport = React21.forwardRef(function(_param, ref) {
1645
+ var className = _param.className, props = _object_without_properties(_param, [
1646
+ "className"
1647
+ ]);
1648
+ return /* @__PURE__ */ jsx26(ToastPrimitives.Viewport, _object_spread({
1649
+ ref: ref,
1650
+ className: cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", className)
1651
+ }, props));
1652
+ });
1653
+ ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
1654
+ toastVariants = cva6("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
1655
+ variants: {
1656
+ variant: {
1657
+ default: "border bg-background text-foreground",
1658
+ destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
1659
+ }
1660
+ },
1661
+ defaultVariants: {
1662
+ variant: "default"
1663
+ }
1664
+ });
1665
+ Toast = React21.forwardRef(function(_param, ref) {
1666
+ var className = _param.className, variant = _param.variant, props = _object_without_properties(_param, [
1667
+ "className",
1668
+ "variant"
1669
+ ]);
1670
+ return /* @__PURE__ */ jsx26(ToastPrimitives.Root, _object_spread({
1671
+ ref: ref,
1672
+ className: cn(toastVariants({
1673
+ variant: variant
1674
+ }), className)
1675
+ }, props));
1676
+ });
1677
+ Toast.displayName = ToastPrimitives.Root.displayName;
1678
+ ToastAction = React21.forwardRef(function(_param, ref) {
1679
+ var className = _param.className, props = _object_without_properties(_param, [
1680
+ "className"
1681
+ ]);
1682
+ return /* @__PURE__ */ jsx26(ToastPrimitives.Action, _object_spread({
1683
+ ref: ref,
1684
+ className: cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive", className)
1685
+ }, props));
1686
+ });
1687
+ ToastAction.displayName = ToastPrimitives.Action.displayName;
1688
+ ToastClose = React21.forwardRef(function(_param, ref) {
1689
+ var className = _param.className, props = _object_without_properties(_param, [
1690
+ "className"
1691
+ ]);
1692
+ return /* @__PURE__ */ jsx26(ToastPrimitives.Close, _object_spread_props(_object_spread({
1693
+ ref: ref,
1694
+ className: cn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
1695
+ "toast-close": ""
1696
+ }, props), {
1697
+ children: /* @__PURE__ */ jsx26(X2, {
1698
+ className: "h-4 w-4"
1699
+ })
1700
+ }));
1701
+ });
1702
+ ToastClose.displayName = ToastPrimitives.Close.displayName;
1703
+ ToastTitle = React21.forwardRef(function(_param, ref) {
1704
+ var className = _param.className, props = _object_without_properties(_param, [
1705
+ "className"
1706
+ ]);
1707
+ return /* @__PURE__ */ jsx26(ToastPrimitives.Title, _object_spread({
1708
+ ref: ref,
1709
+ className: cn("text-sm font-semibold", className)
1710
+ }, props));
1711
+ });
1712
+ ToastTitle.displayName = ToastPrimitives.Title.displayName;
1713
+ ToastDescription = React21.forwardRef(function(_param, ref) {
1714
+ var className = _param.className, props = _object_without_properties(_param, [
1715
+ "className"
1716
+ ]);
1717
+ return /* @__PURE__ */ jsx26(ToastPrimitives.Description, _object_spread({
1718
+ ref: ref,
1719
+ className: cn("text-sm opacity-90", className)
1720
+ }, props));
1721
+ });
1722
+ ToastDescription.displayName = ToastPrimitives.Description.displayName;
1723
+ }
1482
1724
  });
1483
-
1484
1725
  // src/components/atoms/ui/loader.tsx
1485
1726
  import * as React22 from "react";
1486
1727
  import { cva as cva7 } from "class-variance-authority";
@@ -1488,96 +1729,94 @@ import { Loader2 } from "lucide-react";
1488
1729
  import { jsx as jsx27 } from "react/jsx-runtime";
1489
1730
  var loaderVariants, Loader;
1490
1731
  var init_loader = __esm({
1491
- "src/components/atoms/ui/loader.tsx"() {
1492
- "use strict";
1493
- init_utils();
1494
- loaderVariants = cva7(
1495
- "flex justify-center items-center w-full",
1496
- {
1497
- variants: {
1498
- size: {
1499
- small: "h-6 w-6",
1500
- medium: "h-8 w-8",
1501
- large: "h-12 w-12",
1502
- xl: "h-24 w-24"
1503
- },
1504
- colorVariant: {
1505
- default: "text-primary",
1506
- primary: "text-primary",
1507
- secondary: "text-secondary",
1508
- destructive: "text-destructive"
1509
- }
1510
- },
1511
- defaultVariants: {
1512
- size: "medium",
1513
- colorVariant: "default"
1514
- }
1515
- }
1516
- );
1517
- Loader = React22.forwardRef(
1518
- ({ className, size, colorVariant, ...props }, ref) => /* @__PURE__ */ jsx27(
1519
- "div",
1520
- {
1521
- ref,
1522
- className: cn(loaderVariants({ size, colorVariant }), "flex justify-center items-center h-full w-full", className),
1523
- ...props,
1524
- children: /* @__PURE__ */ jsx27(Loader2, { className: "animate-spin" })
1525
- }
1526
- )
1527
- );
1528
- Loader.displayName = "Loader";
1529
- }
1732
+ "src/components/atoms/ui/loader.tsx": function() {
1733
+ "use strict";
1734
+ init_utils();
1735
+ loaderVariants = cva7("flex justify-center items-center w-full", {
1736
+ variants: {
1737
+ size: {
1738
+ small: "h-6 w-6",
1739
+ medium: "h-8 w-8",
1740
+ large: "h-12 w-12",
1741
+ xl: "h-24 w-24"
1742
+ },
1743
+ colorVariant: {
1744
+ default: "text-primary",
1745
+ primary: "text-primary",
1746
+ secondary: "text-secondary",
1747
+ destructive: "text-destructive"
1748
+ }
1749
+ },
1750
+ defaultVariants: {
1751
+ size: "medium",
1752
+ colorVariant: "default"
1753
+ }
1754
+ });
1755
+ Loader = React22.forwardRef(function(_param, ref) {
1756
+ var className = _param.className, size = _param.size, colorVariant = _param.colorVariant, props = _object_without_properties(_param, [
1757
+ "className",
1758
+ "size",
1759
+ "colorVariant"
1760
+ ]);
1761
+ return /* @__PURE__ */ jsx27("div", _object_spread_props(_object_spread({
1762
+ ref: ref,
1763
+ className: cn(loaderVariants({
1764
+ size: size,
1765
+ colorVariant: colorVariant
1766
+ }), "flex justify-center items-center h-full w-full", className)
1767
+ }, props), {
1768
+ children: /* @__PURE__ */ jsx27(Loader2, {
1769
+ className: "animate-spin"
1770
+ })
1771
+ }));
1772
+ });
1773
+ Loader.displayName = "Loader";
1774
+ }
1530
1775
  });
1531
-
1532
1776
  // src/components/atoms/ui/separator.tsx
1533
1777
  import * as React23 from "react";
1534
1778
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
1535
1779
  import { jsx as jsx28 } from "react/jsx-runtime";
1536
1780
  var Separator2;
1537
1781
  var init_separator = __esm({
1538
- "src/components/atoms/ui/separator.tsx"() {
1539
- "use strict";
1540
- "use client";
1541
- init_utils();
1542
- Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx28(
1543
- SeparatorPrimitive.Root,
1544
- {
1545
- ref,
1546
- decorative,
1547
- orientation,
1548
- className: cn(
1549
- "shrink-0 bg-border",
1550
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1551
- className,
1552
- "alq--separator"
1553
- ),
1554
- ...props
1555
- }
1556
- ));
1557
- Separator2.displayName = SeparatorPrimitive.Root.displayName;
1558
- }
1782
+ "src/components/atoms/ui/separator.tsx": function() {
1783
+ "use strict";
1784
+ "use client";
1785
+ init_utils();
1786
+ Separator2 = React23.forwardRef(function(_param, ref) {
1787
+ var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, _param_decorative = _param.decorative, decorative = _param_decorative === void 0 ? true : _param_decorative, props = _object_without_properties(_param, [
1788
+ "className",
1789
+ "orientation",
1790
+ "decorative"
1791
+ ]);
1792
+ return /* @__PURE__ */ jsx28(SeparatorPrimitive.Root, _object_spread({
1793
+ ref: ref,
1794
+ decorative: decorative,
1795
+ orientation: orientation,
1796
+ className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className, "alq--separator")
1797
+ }, props));
1798
+ });
1799
+ Separator2.displayName = SeparatorPrimitive.Root.displayName;
1800
+ }
1559
1801
  });
1560
-
1561
1802
  // src/components/hooks/use-toast.ts
1562
1803
  import * as React24 from "react";
1563
1804
  var init_use_toast = __esm({
1564
- "src/components/hooks/use-toast.ts"() {
1565
- "use strict";
1566
- "use client";
1567
- }
1805
+ "src/components/hooks/use-toast.ts": function() {
1806
+ "use strict";
1807
+ "use client";
1808
+ }
1568
1809
  });
1569
-
1570
1810
  // src/components/atoms/ui/toaster.tsx
1571
1811
  import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
1572
1812
  var init_toaster = __esm({
1573
- "src/components/atoms/ui/toaster.tsx"() {
1574
- "use strict";
1575
- "use client";
1576
- init_use_toast();
1577
- init_toast();
1578
- }
1813
+ "src/components/atoms/ui/toaster.tsx": function() {
1814
+ "use strict";
1815
+ "use client";
1816
+ init_use_toast();
1817
+ init_toast();
1818
+ }
1579
1819
  });
1580
-
1581
1820
  // src/components/atoms/ui/think-indicator.tsx
1582
1821
  import * as React25 from "react";
1583
1822
  import { useState as useState2, useEffect as useEffect2 } from "react";
@@ -1585,163 +1824,155 @@ import { cva as cva8 } from "class-variance-authority";
1585
1824
  import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
1586
1825
  var thinkIndicatorVariants, ThinkIndicator;
1587
1826
  var init_think_indicator = __esm({
1588
- "src/components/atoms/ui/think-indicator.tsx"() {
1589
- "use strict";
1590
- "use client";
1591
- init_atoms();
1592
- init_utils();
1593
- thinkIndicatorVariants = cva8(
1594
- "flex items-center gap-3",
1595
- {
1596
- variants: {
1597
- variant: {
1598
- default: "text-muted-foreground",
1599
- primary: "text-primary",
1600
- secondary: "text-secondary"
1601
- },
1602
- size: {
1603
- default: "gap-3",
1604
- sm: "gap-2",
1605
- lg: "gap-4"
1606
- }
1607
- },
1608
- defaultVariants: {
1609
- variant: "default",
1610
- size: "default"
1611
- }
1612
- }
1613
- );
1614
- ThinkIndicator = React25.forwardRef(
1615
- ({
1616
- className,
1617
- variant,
1618
- size,
1619
- thoughts = [
1620
- "Analyzing your request...",
1621
- "Processing information...",
1622
- "Formulating response..."
1623
- ],
1624
- interval = 5e3,
1625
- loader,
1626
- ...props
1627
- }, ref) => {
1628
- const [currentThoughtIndex, setCurrentThoughtIndex] = useState2(0);
1629
- const [isAnimating, setIsAnimating] = useState2(false);
1630
- useEffect2(() => {
1631
- const timer = setInterval(() => {
1632
- setIsAnimating(true);
1633
- setTimeout(() => {
1634
- setCurrentThoughtIndex((prev) => {
1635
- return prev < thoughts.length - 1 ? prev + 1 : prev;
1636
- });
1637
- setIsAnimating(false);
1638
- }, 300);
1639
- }, interval);
1640
- if (currentThoughtIndex === thoughts.length - 1) {
1641
- clearInterval(timer);
1642
- }
1643
- return () => clearInterval(timer);
1644
- }, [thoughts, interval, currentThoughtIndex]);
1645
- return /* @__PURE__ */ jsxs10(
1646
- "div",
1647
- {
1648
- ref,
1649
- className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
1650
- ...props,
1651
- children: [
1652
- loader || /* @__PURE__ */ jsx30(
1653
- Loader,
1654
- {
1655
- className: cn(
1656
- size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4"
1657
- )
1827
+ "src/components/atoms/ui/think-indicator.tsx": function() {
1828
+ "use strict";
1829
+ "use client";
1830
+ init_atoms();
1831
+ init_utils();
1832
+ thinkIndicatorVariants = cva8("flex items-center gap-3", {
1833
+ variants: {
1834
+ variant: {
1835
+ default: "text-muted-foreground",
1836
+ primary: "text-primary",
1837
+ secondary: "text-secondary"
1838
+ },
1839
+ size: {
1840
+ default: "gap-3",
1841
+ sm: "gap-2",
1842
+ lg: "gap-4"
1658
1843
  }
1659
- ),
1660
- /* @__PURE__ */ jsx30(
1661
- "div",
1662
- {
1663
- className: cn(
1664
- "alq--think-indicator-text",
1665
- "transition-all duration-300",
1666
- isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"
1667
- ),
1668
- children: thoughts[currentThoughtIndex]
1844
+ },
1845
+ defaultVariants: {
1846
+ variant: "default",
1847
+ size: "default"
1848
+ }
1849
+ });
1850
+ ThinkIndicator = React25.forwardRef(function(_param, ref) {
1851
+ var className = _param.className, variant = _param.variant, size = _param.size, _param_thoughts = _param.thoughts, thoughts = _param_thoughts === void 0 ? [
1852
+ "Analyzing your request...",
1853
+ "Processing information...",
1854
+ "Formulating response..."
1855
+ ] : _param_thoughts, _param_interval = _param.interval, interval = _param_interval === void 0 ? 5e3 : _param_interval, loader = _param.loader, props = _object_without_properties(_param, [
1856
+ "className",
1857
+ "variant",
1858
+ "size",
1859
+ "thoughts",
1860
+ "interval",
1861
+ "loader"
1862
+ ]);
1863
+ var _useState2 = _sliced_to_array(useState2(0), 2), currentThoughtIndex = _useState2[0], setCurrentThoughtIndex = _useState2[1];
1864
+ var _useState21 = _sliced_to_array(useState2(false), 2), isAnimating = _useState21[0], setIsAnimating = _useState21[1];
1865
+ useEffect2(function() {
1866
+ var timer = setInterval(function() {
1867
+ setIsAnimating(true);
1868
+ setTimeout(function() {
1869
+ setCurrentThoughtIndex(function(prev) {
1870
+ return prev < thoughts.length - 1 ? prev + 1 : prev;
1871
+ });
1872
+ setIsAnimating(false);
1873
+ }, 300);
1874
+ }, interval);
1875
+ if (currentThoughtIndex === thoughts.length - 1) {
1876
+ clearInterval(timer);
1669
1877
  }
1670
- )
1671
- ]
1672
- }
1673
- );
1674
- }
1675
- );
1676
- ThinkIndicator.displayName = "ThinkIndicator";
1677
- }
1878
+ return function() {
1879
+ return clearInterval(timer);
1880
+ };
1881
+ }, [
1882
+ thoughts,
1883
+ interval,
1884
+ currentThoughtIndex
1885
+ ]);
1886
+ return /* @__PURE__ */ jsxs10("div", _object_spread_props(_object_spread({
1887
+ ref: ref,
1888
+ className: cn(thinkIndicatorVariants({
1889
+ variant: variant,
1890
+ size: size
1891
+ }), className, "alq--think-indicator")
1892
+ }, props), {
1893
+ children: [
1894
+ loader || /* @__PURE__ */ jsx30(Loader, {
1895
+ className: cn(size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4")
1896
+ }),
1897
+ /* @__PURE__ */ jsx30("div", {
1898
+ className: cn("alq--think-indicator-text", "transition-all duration-300", isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"),
1899
+ children: thoughts[currentThoughtIndex]
1900
+ })
1901
+ ]
1902
+ }));
1903
+ });
1904
+ ThinkIndicator.displayName = "ThinkIndicator";
1905
+ }
1678
1906
  });
1679
-
1680
1907
  // src/components/atoms/index.ts
1681
1908
  var init_atoms = __esm({
1682
- "src/components/atoms/index.ts"() {
1683
- "use strict";
1684
- init_button();
1685
- init_textarea();
1686
- init_input();
1687
- init_select();
1688
- init_avatar();
1689
- init_scroll_area();
1690
- init_rich_text();
1691
- init_skeleton();
1692
- init_card();
1693
- init_drawer();
1694
- init_typography();
1695
- init_badge();
1696
- init_alert();
1697
- init_input();
1698
- init_label();
1699
- init_checkbox();
1700
- init_toggle();
1701
- init_select();
1702
- init_slider();
1703
- init_switch();
1704
- init_tabs();
1705
- init_aspect_ratio();
1706
- init_table();
1707
- init_breadcrumb();
1708
- init_alert_dialog();
1709
- init_popover();
1710
- init_command();
1711
- init_dialog();
1712
- init_toast();
1713
- init_loader();
1714
- init_separator();
1715
- init_toaster();
1716
- init_think_indicator();
1717
- }
1909
+ "src/components/atoms/index.ts": function() {
1910
+ "use strict";
1911
+ init_button();
1912
+ init_textarea();
1913
+ init_input();
1914
+ init_select();
1915
+ init_avatar();
1916
+ init_scroll_area();
1917
+ init_rich_text();
1918
+ init_skeleton();
1919
+ init_card();
1920
+ init_drawer();
1921
+ init_typography();
1922
+ init_badge();
1923
+ init_alert();
1924
+ init_input();
1925
+ init_label();
1926
+ init_checkbox();
1927
+ init_toggle();
1928
+ init_select();
1929
+ init_slider();
1930
+ init_switch();
1931
+ init_tabs();
1932
+ init_aspect_ratio();
1933
+ init_table();
1934
+ init_breadcrumb();
1935
+ init_alert_dialog();
1936
+ init_popover();
1937
+ init_command();
1938
+ init_dialog();
1939
+ init_toast();
1940
+ init_loader();
1941
+ init_separator();
1942
+ init_toaster();
1943
+ init_think_indicator();
1944
+ }
1718
1945
  });
1719
-
1720
1946
  // src/components/hooks/use-resize-observer.ts
1721
1947
  import { useEffect as useEffect3, useRef } from "react";
1722
1948
  function useResizeObserver(element, options2, observerCallback) {
1723
- const observerRef = useRef(null);
1724
- useEffect3(() => {
1725
- if (!element) return;
1726
- observerRef.current = new ResizeObserver(observerCallback);
1727
- observerRef.current.observe(element, options2);
1728
- return () => {
1729
- if (observerRef.current) {
1730
- observerRef.current.disconnect();
1731
- }
1732
- };
1733
- }, [element, options2, observerCallback]);
1949
+ var observerRef = useRef(null);
1950
+ useEffect3(function() {
1951
+ if (!element) return;
1952
+ observerRef.current = new ResizeObserver(observerCallback);
1953
+ observerRef.current.observe(element, options2);
1954
+ return function() {
1955
+ if (observerRef.current) {
1956
+ observerRef.current.disconnect();
1957
+ }
1958
+ };
1959
+ }, [
1960
+ element,
1961
+ options2,
1962
+ observerCallback
1963
+ ]);
1734
1964
  }
1735
1965
  var init_use_resize_observer = __esm({
1736
- "src/components/hooks/use-resize-observer.ts"() {
1737
- "use strict";
1738
- }
1966
+ "src/components/hooks/use-resize-observer.ts": function() {
1967
+ "use strict";
1968
+ }
1739
1969
  });
1740
-
1741
1970
  // src/components/molecules/viewers/pdf-viewer.tsx
1742
1971
  var pdf_viewer_exports = {};
1743
1972
  __export(pdf_viewer_exports, {
1744
- default: () => PdfViewer
1973
+ default: function() {
1974
+ return PdfViewer;
1975
+ }
1745
1976
  });
1746
1977
  import { useState as useState4, useCallback, useEffect as useEffect4 } from "react";
1747
1978
  import { ChevronLeft, ChevronRight as ChevronRight2, ZoomIn, ZoomOut } from "lucide-react";
@@ -1749,299 +1980,511 @@ import { pdfjs, Document, Page } from "react-pdf";
1749
1980
  import "react-pdf/dist/esm/Page/AnnotationLayer.css";
1750
1981
  import "react-pdf/dist/esm/Page/TextLayer.css";
1751
1982
  import { Fragment, jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
1752
- function PdfViewer({ doc, docId }) {
1753
- const [numPages, setNumPages] = useState4(0);
1754
- const [pageNumber, setPageNumber] = useState4(1);
1755
- const [scale, setScale] = useState4(1);
1756
- const [containerRef, setContainerRef] = useState4(null);
1757
- const [containerWidth, setContainerWidth] = useState4();
1758
- const onResize = useCallback((entries) => {
1759
- const [entry] = entries;
1760
- if (entry) {
1761
- setContainerWidth(entry.contentRect.width);
1762
- }
1763
- }, []);
1764
- useResizeObserver(containerRef, resizeObserverOptions, onResize);
1765
- function onDocumentLoadSuccess({ numPages: nextNumPages }) {
1766
- setNumPages(nextNumPages);
1767
- }
1768
- const resetDocument = () => {
1769
- setPageNumber(1);
1770
- setScale(1);
1771
- };
1772
- useEffect4(() => {
1773
- resetDocument();
1774
- }, []);
1775
- const handlePrevPage = () => setPageNumber((prev) => Math.max(prev - 1, 1));
1776
- const handleNextPage = () => setPageNumber((prev) => Math.min(prev + 1, numPages));
1777
- const handleZoomIn = () => setScale((prev) => Math.min(prev + 0.1, 2));
1778
- const handleZoomOut = () => setScale((prev) => Math.max(prev - 0.1, 0.5));
1779
- const handleKeyDown = useCallback((e) => {
1780
- if (e.key === "ArrowLeft") {
1781
- handlePrevPage();
1782
- } else if (e.key === "ArrowRight") {
1783
- handleNextPage();
1983
+ function PdfViewer(param) {
1984
+ var doc = param.doc, docId = param.docId;
1985
+ var _useState4 = _sliced_to_array(useState4(0), 2), numPages = _useState4[0], setNumPages = _useState4[1];
1986
+ var _useState41 = _sliced_to_array(useState4(1), 2), pageNumber = _useState41[0], setPageNumber = _useState41[1];
1987
+ var _useState42 = _sliced_to_array(useState4(1), 2), scale = _useState42[0], setScale = _useState42[1];
1988
+ var _useState43 = _sliced_to_array(useState4(null), 2), containerRef = _useState43[0], setContainerRef = _useState43[1];
1989
+ var _useState44 = _sliced_to_array(useState4(), 2), containerWidth = _useState44[0], setContainerWidth = _useState44[1];
1990
+ var onResize = useCallback(function(entries) {
1991
+ var _entries = _sliced_to_array(entries, 1), entry = _entries[0];
1992
+ if (entry) {
1993
+ setContainerWidth(entry.contentRect.width);
1994
+ }
1995
+ }, []);
1996
+ useResizeObserver(containerRef, resizeObserverOptions, onResize);
1997
+ function onDocumentLoadSuccess(param) {
1998
+ var nextNumPages = param.numPages;
1999
+ setNumPages(nextNumPages);
1784
2000
  }
1785
- }, [handlePrevPage, handleNextPage]);
1786
- useEffect4(() => {
1787
- window.addEventListener("keydown", handleKeyDown);
1788
- return () => window.removeEventListener("keydown", handleKeyDown);
1789
- }, [handleKeyDown]);
1790
- const handleDownloadFile = () => {
1791
- const docUrl = doc && URL.createObjectURL(doc);
1792
- const a = document.createElement("a");
1793
- a.href = docUrl || "";
1794
- a.download = docId;
1795
- a.click();
1796
- URL.revokeObjectURL(docUrl || "");
1797
- };
1798
- return /* @__PURE__ */ jsxs11(Fragment, { children: [
1799
- /* @__PURE__ */ jsxs11("div", { className: "flex justify-between items-center p-4 border-b border-border", children: [
1800
- /* @__PURE__ */ jsxs11("div", { children: [
1801
- /* @__PURE__ */ jsx31(
1802
- Button,
1803
- {
1804
- onClick: handlePrevPage,
1805
- disabled: pageNumber <= 1,
1806
- children: /* @__PURE__ */ jsx31(ChevronLeft, { className: "h-4 w-4" })
1807
- }
1808
- ),
1809
- /* @__PURE__ */ jsxs11("span", { className: "mx-2", children: [
1810
- "Page ",
1811
- pageNumber,
1812
- " of ",
1813
- numPages
1814
- ] }),
1815
- /* @__PURE__ */ jsx31(
1816
- Button,
1817
- {
1818
- onClick: handleNextPage,
1819
- disabled: pageNumber >= numPages,
1820
- children: /* @__PURE__ */ jsx31(ChevronRight2, { className: "h-4 w-4" })
1821
- }
1822
- )
1823
- ] }),
1824
- /* @__PURE__ */ jsxs11("div", { children: [
1825
- /* @__PURE__ */ jsx31(Button, { onClick: handleZoomOut, children: /* @__PURE__ */ jsx31(ZoomOut, { className: "h-4 w-4" }) }),
1826
- /* @__PURE__ */ jsxs11("span", { className: "mx-2", children: [
1827
- (scale * 100).toFixed(0),
1828
- "%"
1829
- ] }),
1830
- /* @__PURE__ */ jsx31(Button, { onClick: handleZoomIn, children: /* @__PURE__ */ jsx31(ZoomIn, { className: "h-4 w-4" }) })
1831
- ] })
1832
- ] }),
1833
- /* @__PURE__ */ jsx31("div", { ref: setContainerRef, className: "overflow-auto", children: /* @__PURE__ */ jsx31(
1834
- Document,
1835
- {
1836
- file: doc,
1837
- onLoadSuccess: onDocumentLoadSuccess,
1838
- options,
1839
- loading: /* @__PURE__ */ jsx31(Loader, { size: "xl", colorVariant: "destructive" }),
1840
- children: /* @__PURE__ */ jsx31(
1841
- Page,
1842
- {
1843
- pageNumber,
1844
- scale,
1845
- width: containerWidth,
1846
- className: "w-full"
1847
- }
1848
- )
1849
- }
1850
- ) })
1851
- ] });
2001
+ var resetDocument = function() {
2002
+ setPageNumber(1);
2003
+ setScale(1);
2004
+ };
2005
+ useEffect4(function() {
2006
+ resetDocument();
2007
+ }, []);
2008
+ var handlePrevPage = function() {
2009
+ return setPageNumber(function(prev) {
2010
+ return Math.max(prev - 1, 1);
2011
+ });
2012
+ };
2013
+ var handleNextPage = function() {
2014
+ return setPageNumber(function(prev) {
2015
+ return Math.min(prev + 1, numPages);
2016
+ });
2017
+ };
2018
+ var handleZoomIn = function() {
2019
+ return setScale(function(prev) {
2020
+ return Math.min(prev + 0.1, 2);
2021
+ });
2022
+ };
2023
+ var handleZoomOut = function() {
2024
+ return setScale(function(prev) {
2025
+ return Math.max(prev - 0.1, 0.5);
2026
+ });
2027
+ };
2028
+ var handleKeyDown = useCallback(function(e) {
2029
+ if (e.key === "ArrowLeft") {
2030
+ handlePrevPage();
2031
+ } else if (e.key === "ArrowRight") {
2032
+ handleNextPage();
2033
+ }
2034
+ }, [
2035
+ handlePrevPage,
2036
+ handleNextPage
2037
+ ]);
2038
+ useEffect4(function() {
2039
+ window.addEventListener("keydown", handleKeyDown);
2040
+ return function() {
2041
+ return window.removeEventListener("keydown", handleKeyDown);
2042
+ };
2043
+ }, [
2044
+ handleKeyDown
2045
+ ]);
2046
+ var handleDownloadFile = function() {
2047
+ var docUrl = doc && URL.createObjectURL(doc);
2048
+ var a = document.createElement("a");
2049
+ a.href = docUrl || "";
2050
+ a.download = docId;
2051
+ a.click();
2052
+ URL.revokeObjectURL(docUrl || "");
2053
+ };
2054
+ return /* @__PURE__ */ jsxs11(Fragment, {
2055
+ children: [
2056
+ /* @__PURE__ */ jsxs11("div", {
2057
+ className: "flex justify-between items-center p-4 border-b border-border",
2058
+ children: [
2059
+ /* @__PURE__ */ jsxs11("div", {
2060
+ children: [
2061
+ /* @__PURE__ */ jsx31(Button, {
2062
+ onClick: handlePrevPage,
2063
+ disabled: pageNumber <= 1,
2064
+ children: /* @__PURE__ */ jsx31(ChevronLeft, {
2065
+ className: "h-4 w-4"
2066
+ })
2067
+ }),
2068
+ /* @__PURE__ */ jsxs11("span", {
2069
+ className: "mx-2",
2070
+ children: [
2071
+ "Page ",
2072
+ pageNumber,
2073
+ " of ",
2074
+ numPages
2075
+ ]
2076
+ }),
2077
+ /* @__PURE__ */ jsx31(Button, {
2078
+ onClick: handleNextPage,
2079
+ disabled: pageNumber >= numPages,
2080
+ children: /* @__PURE__ */ jsx31(ChevronRight2, {
2081
+ className: "h-4 w-4"
2082
+ })
2083
+ })
2084
+ ]
2085
+ }),
2086
+ /* @__PURE__ */ jsxs11("div", {
2087
+ children: [
2088
+ /* @__PURE__ */ jsx31(Button, {
2089
+ onClick: handleZoomOut,
2090
+ children: /* @__PURE__ */ jsx31(ZoomOut, {
2091
+ className: "h-4 w-4"
2092
+ })
2093
+ }),
2094
+ /* @__PURE__ */ jsxs11("span", {
2095
+ className: "mx-2",
2096
+ children: [
2097
+ (scale * 100).toFixed(0),
2098
+ "%"
2099
+ ]
2100
+ }),
2101
+ /* @__PURE__ */ jsx31(Button, {
2102
+ onClick: handleZoomIn,
2103
+ children: /* @__PURE__ */ jsx31(ZoomIn, {
2104
+ className: "h-4 w-4"
2105
+ })
2106
+ })
2107
+ ]
2108
+ })
2109
+ ]
2110
+ }),
2111
+ /* @__PURE__ */ jsx31("div", {
2112
+ ref: setContainerRef,
2113
+ className: "overflow-auto",
2114
+ children: /* @__PURE__ */ jsx31(Document, {
2115
+ file: doc,
2116
+ onLoadSuccess: onDocumentLoadSuccess,
2117
+ options: options,
2118
+ loading: /* @__PURE__ */ jsx31(Loader, {
2119
+ size: "xl",
2120
+ colorVariant: "destructive"
2121
+ }),
2122
+ children: /* @__PURE__ */ jsx31(Page, {
2123
+ pageNumber: pageNumber,
2124
+ scale: scale,
2125
+ width: containerWidth,
2126
+ className: "w-full"
2127
+ })
2128
+ })
2129
+ })
2130
+ ]
2131
+ });
1852
2132
  }
1853
2133
  var options, resizeObserverOptions;
1854
2134
  var init_pdf_viewer = __esm({
1855
- "src/components/molecules/viewers/pdf-viewer.tsx"() {
1856
- "use strict";
1857
- "use client";
1858
- init_atoms();
1859
- init_use_resize_observer();
1860
- pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.mjs`;
1861
- options = {
1862
- cMapUrl: "/cmaps/",
1863
- standardFontDataUrl: "/standard_fonts/",
1864
- cMapPacked: true
1865
- };
1866
- resizeObserverOptions = {};
1867
- }
2135
+ "src/components/molecules/viewers/pdf-viewer.tsx": function() {
2136
+ "use strict";
2137
+ "use client";
2138
+ init_atoms();
2139
+ init_use_resize_observer();
2140
+ pdfjs.GlobalWorkerOptions.workerSrc = "//unpkg.com/pdfjs-dist@".concat(pdfjs.version, "/build/pdf.worker.min.mjs");
2141
+ options = {
2142
+ cMapUrl: "/cmaps/",
2143
+ standardFontDataUrl: "/standard_fonts/",
2144
+ cMapPacked: true
2145
+ };
2146
+ resizeObserverOptions = {};
2147
+ }
1868
2148
  });
1869
-
1870
2149
  // src/components/molecules/viewers/plain-text-viewer.tsx
1871
2150
  var plain_text_viewer_exports = {};
1872
2151
  __export(plain_text_viewer_exports, {
1873
- default: () => PlainTextViewer
2152
+ default: function() {
2153
+ return PlainTextViewer;
2154
+ }
1874
2155
  });
1875
2156
  import { useState as useState5, useEffect as useEffect5 } from "react";
1876
2157
  import { Fragment as Fragment2, jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
1877
- function PlainTextViewer({ doc }) {
1878
- const [content, setContent] = useState5(null);
1879
- const [loading, setLoading] = useState5(true);
1880
- useEffect5(() => {
1881
- async function parseDocument() {
1882
- try {
1883
- if (doc && doc.type === "text/plain") {
1884
- const text = await doc.text();
1885
- setContent(text);
2158
+ function PlainTextViewer(param) {
2159
+ var doc = param.doc;
2160
+ var _useState5 = _sliced_to_array(useState5(null), 2), content = _useState5[0], setContent = _useState5[1];
2161
+ var _useState51 = _sliced_to_array(useState5(true), 2), loading = _useState51[0], setLoading = _useState51[1];
2162
+ useEffect5(function() {
2163
+ var parseDocument = function parseDocument() {
2164
+ return _parseDocument.apply(this, arguments);
2165
+ };
2166
+ function _parseDocument() {
2167
+ _parseDocument = _async_to_generator(function() {
2168
+ var text, err;
2169
+ return _ts_generator(this, function(_state) {
2170
+ switch(_state.label){
2171
+ case 0:
2172
+ _state.trys.push([
2173
+ 0,
2174
+ 3,
2175
+ 4,
2176
+ 5
2177
+ ]);
2178
+ if (!(doc && doc.type === "text/plain")) return [
2179
+ 3,
2180
+ 2
2181
+ ];
2182
+ return [
2183
+ 4,
2184
+ doc.text()
2185
+ ];
2186
+ case 1:
2187
+ text = _state.sent();
2188
+ setContent(text);
2189
+ _state.label = 2;
2190
+ case 2:
2191
+ return [
2192
+ 3,
2193
+ 5
2194
+ ];
2195
+ case 3:
2196
+ err = _state.sent();
2197
+ console.error("Error parsing Document:", err);
2198
+ return [
2199
+ 3,
2200
+ 5
2201
+ ];
2202
+ case 4:
2203
+ setLoading(false);
2204
+ return [
2205
+ 7
2206
+ ];
2207
+ case 5:
2208
+ return [
2209
+ 2
2210
+ ];
2211
+ }
2212
+ });
2213
+ });
2214
+ return _parseDocument.apply(this, arguments);
1886
2215
  }
1887
- } catch (err) {
1888
- console.error("Error parsing Document:", err);
1889
- } finally {
1890
- setLoading(false);
1891
- }
1892
- }
1893
- parseDocument();
1894
- }, [doc]);
1895
- return /* @__PURE__ */ jsx32(Fragment2, { children: /* @__PURE__ */ jsxs12("div", { className: "relative w-full h-full max-h-[80vh] overflow-y-auto p-8 alq--prose", children: [
1896
- loading && /* @__PURE__ */ jsx32(Loader, {}),
1897
- !loading && /* @__PURE__ */ jsx32(RichText, { content: content || "" })
1898
- ] }) });
2216
+ parseDocument();
2217
+ }, [
2218
+ doc
2219
+ ]);
2220
+ return /* @__PURE__ */ jsx32(Fragment2, {
2221
+ children: /* @__PURE__ */ jsxs12("div", {
2222
+ className: "relative w-full h-full max-h-[80vh] overflow-y-auto p-8 alq--prose",
2223
+ children: [
2224
+ loading && /* @__PURE__ */ jsx32(Loader, {}),
2225
+ !loading && /* @__PURE__ */ jsx32(RichText, {
2226
+ content: content || ""
2227
+ })
2228
+ ]
2229
+ })
2230
+ });
1899
2231
  }
1900
2232
  var init_plain_text_viewer = __esm({
1901
- "src/components/molecules/viewers/plain-text-viewer.tsx"() {
1902
- "use strict";
1903
- "use client";
1904
- init_atoms();
1905
- }
2233
+ "src/components/molecules/viewers/plain-text-viewer.tsx": function() {
2234
+ "use strict";
2235
+ "use client";
2236
+ init_atoms();
2237
+ }
1906
2238
  });
1907
-
1908
2239
  // src/components/molecules/documents/document-selector.tsx
1909
2240
  init_atoms();
1910
2241
  import { useState as useState6 } from "react";
1911
2242
  import { ExternalLink } from "lucide-react";
1912
-
1913
2243
  // src/components/molecules/documents/document-viewer.tsx
1914
2244
  init_atoms();
1915
- import { useEffect as useEffect6 } from "react";
1916
-
2245
+ import React28, { useEffect as useEffect6, Suspense } from "react";
1917
2246
  // src/components/hooks/use-document.tsx
1918
2247
  import { useState as useState3 } from "react";
1919
- var useDocumentReader = (url, getDocument) => {
1920
- const [loading, setLoading] = useState3(true);
1921
- const [error, setError] = useState3(null);
1922
- const [document2, setDocument] = useState3(null);
1923
- const handleDocumentError = (error2) => {
1924
- const errorMessage = "Hubo un error al obtener el documento. Por favor ponganse en contacto con el administrador.";
1925
- setError(errorMessage);
1926
- throw new Error(error2?.message || "Unknown error");
1927
- };
1928
- const resetDocument = () => {
1929
- setDocument(null);
1930
- };
1931
- const fetchDocument = async () => {
1932
- setLoading(true);
1933
- setError(null);
1934
- try {
1935
- const res = await getDocument(url);
1936
- if (!res.success) {
1937
- handleDocumentError(res.error || new Error("Unknown error"));
1938
- setLoading(false);
1939
- return;
1940
- }
1941
- res.data && setDocument(res.data);
1942
- } catch (error2) {
1943
- handleDocumentError(error2);
1944
- } finally {
1945
- setLoading(false);
1946
- }
1947
- };
1948
- return { document: document2, loading, fetchDocument, resetDocument, error };
2248
+ var useDocumentReader = function(url, getDocument) {
2249
+ var _useState3 = _sliced_to_array(useState3(true), 2), loading = _useState3[0], setLoading = _useState3[1];
2250
+ var _useState31 = _sliced_to_array(useState3(null), 2), error = _useState31[0], setError = _useState31[1];
2251
+ var _useState32 = _sliced_to_array(useState3(null), 2), document2 = _useState32[0], setDocument = _useState32[1];
2252
+ var handleDocumentError = function(error2) {
2253
+ var errorMessage = "Hubo un error al obtener el documento. Por favor ponganse en contacto con el administrador.";
2254
+ setError(errorMessage);
2255
+ throw new Error((error2 === null || error2 === void 0 ? void 0 : error2.message) || "Unknown error");
2256
+ };
2257
+ var resetDocument = function() {
2258
+ setDocument(null);
2259
+ };
2260
+ var fetchDocument = /*#__PURE__*/ function() {
2261
+ var _ref = _async_to_generator(function() {
2262
+ var res, error2;
2263
+ return _ts_generator(this, function(_state) {
2264
+ switch(_state.label){
2265
+ case 0:
2266
+ setLoading(true);
2267
+ setError(null);
2268
+ _state.label = 1;
2269
+ case 1:
2270
+ _state.trys.push([
2271
+ 1,
2272
+ 3,
2273
+ 4,
2274
+ 5
2275
+ ]);
2276
+ return [
2277
+ 4,
2278
+ getDocument(url)
2279
+ ];
2280
+ case 2:
2281
+ res = _state.sent();
2282
+ if (!res.success) {
2283
+ handleDocumentError(res.error || new Error("Unknown error"));
2284
+ setLoading(false);
2285
+ return [
2286
+ 2
2287
+ ];
2288
+ }
2289
+ res.data && setDocument(res.data);
2290
+ return [
2291
+ 3,
2292
+ 5
2293
+ ];
2294
+ case 3:
2295
+ error2 = _state.sent();
2296
+ handleDocumentError(error2);
2297
+ return [
2298
+ 3,
2299
+ 5
2300
+ ];
2301
+ case 4:
2302
+ setLoading(false);
2303
+ return [
2304
+ 7
2305
+ ];
2306
+ case 5:
2307
+ return [
2308
+ 2
2309
+ ];
2310
+ }
2311
+ });
2312
+ });
2313
+ return function fetchDocument() {
2314
+ return _ref.apply(this, arguments);
2315
+ };
2316
+ }();
2317
+ return {
2318
+ document: document2,
2319
+ loading: loading,
2320
+ fetchDocument: fetchDocument,
2321
+ resetDocument: resetDocument,
2322
+ error: error
2323
+ };
1949
2324
  };
1950
-
1951
2325
  // src/components/molecules/documents/document-viewer.tsx
1952
- import dynamic from "next/dynamic";
1953
2326
  import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
1954
- var PdfViewer2 = dynamic(() => Promise.resolve().then(() => (init_pdf_viewer(), pdf_viewer_exports)), { ssr: false });
1955
- var PlainTextViewer2 = dynamic(() => Promise.resolve().then(() => (init_plain_text_viewer(), plain_text_viewer_exports)), { ssr: false });
1956
- var DocumentViewer = ({
1957
- docId,
1958
- doc,
1959
- isOpen,
1960
- onClose,
1961
- getDocument
1962
- }) => {
1963
- const { document: document2, loading, fetchDocument, resetDocument, error } = useDocumentReader(doc.id, getDocument);
1964
- useEffect6(() => {
1965
- resetDocument();
1966
- if (isOpen) {
1967
- fetchDocument();
1968
- }
1969
- }, [isOpen]);
1970
- const documentRender = document2 && !error ? /* @__PURE__ */ jsx33(DocumentFactory, { document: document2, docId: doc.id }) : /* @__PURE__ */ jsx33("div", { className: "flex flex-col items-center justify-center h-full w-full text-center p-4", children: /* @__PURE__ */ jsx33("div", { className: "text-primary font-medium", children: error }) });
1971
- return /* @__PURE__ */ jsx33(Dialog, { open: isOpen, onOpenChange: onClose, children: /* @__PURE__ */ jsxs13(
1972
- DialogContent,
1973
- {
1974
- "aria-describedby": document2 ? "document-description" : void 0,
1975
- className: "h-[90%] max-w-[90%] gap-0 flex flex-col focus:outline-none alq--document-viewer-container",
1976
- children: [
1977
- /* @__PURE__ */ jsx33(DialogHeader, { className: "border-b border-border pb-2", children: /* @__PURE__ */ jsx33(DialogTitle, { children: doc.name }) }),
1978
- !document2 && loading ? /* @__PURE__ */ jsx33(Loader, { size: "xl", colorVariant: "destructive" }) : documentRender
1979
- ]
1980
- }
1981
- ) });
2327
+ var PdfViewer2 = React28.lazy(function() {
2328
+ return Promise.resolve().then(function() {
2329
+ return init_pdf_viewer(), pdf_viewer_exports;
2330
+ });
2331
+ });
2332
+ var PlainTextViewer2 = React28.lazy(function() {
2333
+ return Promise.resolve().then(function() {
2334
+ return init_plain_text_viewer(), plain_text_viewer_exports;
2335
+ });
2336
+ });
2337
+ var DocumentViewer = function(param) {
2338
+ var docId = param.docId, doc = param.doc, isOpen = param.isOpen, onClose = param.onClose, getDocument = param.getDocument;
2339
+ var _useDocumentReader = useDocumentReader(doc.id, getDocument), document2 = _useDocumentReader.document, loading = _useDocumentReader.loading, fetchDocument = _useDocumentReader.fetchDocument, resetDocument = _useDocumentReader.resetDocument, error = _useDocumentReader.error;
2340
+ useEffect6(function() {
2341
+ resetDocument();
2342
+ if (isOpen) {
2343
+ fetchDocument();
2344
+ }
2345
+ }, [
2346
+ isOpen
2347
+ ]);
2348
+ var documentRender = document2 && !error ? /* @__PURE__ */ jsx33(DocumentFactory, {
2349
+ document: document2,
2350
+ docId: doc.id
2351
+ }) : /* @__PURE__ */ jsx33("div", {
2352
+ className: "flex flex-col items-center justify-center h-full w-full text-center p-4",
2353
+ children: /* @__PURE__ */ jsx33("div", {
2354
+ className: "text-primary font-medium",
2355
+ children: error
2356
+ })
2357
+ });
2358
+ return /* @__PURE__ */ jsx33(Dialog, {
2359
+ open: isOpen,
2360
+ onOpenChange: onClose,
2361
+ children: /* @__PURE__ */ jsxs13(DialogContent, {
2362
+ "aria-describedby": document2 ? "document-description" : void 0,
2363
+ className: "h-[90%] max-w-[90%] gap-0 flex flex-col focus:outline-none alq--document-viewer-container",
2364
+ children: [
2365
+ /* @__PURE__ */ jsx33(DialogHeader, {
2366
+ className: "border-b border-border pb-2",
2367
+ children: /* @__PURE__ */ jsx33(DialogTitle, {
2368
+ children: doc.name
2369
+ })
2370
+ }),
2371
+ !document2 && loading ? /* @__PURE__ */ jsx33(Loader, {
2372
+ size: "xl",
2373
+ colorVariant: "destructive"
2374
+ }) : documentRender
2375
+ ]
2376
+ })
2377
+ });
1982
2378
  };
1983
- var DocumentFactory = ({ document: document2, docId }) => {
1984
- switch (document2 && document2.type) {
1985
- case "application/pdf":
1986
- return /* @__PURE__ */ jsx33(PdfViewer2, { doc: document2, docId });
1987
- case "text/plain":
1988
- return /* @__PURE__ */ jsx33(PlainTextViewer2, { doc: document2, docId });
1989
- default:
1990
- return /* @__PURE__ */ jsx33("div", { children: "Unsupported file type" });
1991
- }
2379
+ var DocumentFactory = function(param) {
2380
+ var document2 = param.document, docId = param.docId;
2381
+ var fallback = /* @__PURE__ */ jsx33(Loader, {
2382
+ size: "xl",
2383
+ colorVariant: "destructive"
2384
+ });
2385
+ switch(document2 && document2.type){
2386
+ case "application/pdf":
2387
+ return /* @__PURE__ */ jsx33(Suspense, {
2388
+ fallback: fallback,
2389
+ children: /* @__PURE__ */ jsx33(PdfViewer2, {
2390
+ doc: document2,
2391
+ docId: docId
2392
+ })
2393
+ });
2394
+ case "text/plain":
2395
+ return /* @__PURE__ */ jsx33(Suspense, {
2396
+ fallback: fallback,
2397
+ children: /* @__PURE__ */ jsx33(PlainTextViewer2, {
2398
+ doc: document2,
2399
+ docId: docId
2400
+ })
2401
+ });
2402
+ default:
2403
+ return /* @__PURE__ */ jsx33("div", {
2404
+ children: "Unsupported file type"
2405
+ });
2406
+ }
1992
2407
  };
1993
-
1994
2408
  // src/components/molecules/documents/document-selector.tsx
1995
2409
  import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
1996
- var DocumentSelector = ({ documents, getDocument, logInfoMessage }) => {
1997
- const [selectedDocName, setSelectedDocName] = useState6(void 0);
1998
- const [selectedDoc, setSelectedDoc] = useState6(null);
1999
- const [isModalOpen, setIsModalOpen] = useState6(false);
2000
- const handleDocumentClick = (doc, event) => {
2001
- event.stopPropagation();
2002
- setSelectedDoc(doc);
2003
- logInfoMessage("Selected document", {
2004
- documentId: doc.id,
2005
- documentName: doc.name
2410
+ var DocumentSelector = function(param) {
2411
+ var documents = param.documents, getDocument = param.getDocument, logInfoMessage = param.logInfoMessage;
2412
+ var _useState6 = _sliced_to_array(useState6(void 0), 2), selectedDocName = _useState6[0], setSelectedDocName = _useState6[1];
2413
+ var _useState61 = _sliced_to_array(useState6(null), 2), selectedDoc = _useState61[0], setSelectedDoc = _useState61[1];
2414
+ var _useState62 = _sliced_to_array(useState6(false), 2), isModalOpen = _useState62[0], setIsModalOpen = _useState62[1];
2415
+ var handleDocumentClick = function(doc, event) {
2416
+ event.stopPropagation();
2417
+ setSelectedDoc(doc);
2418
+ logInfoMessage("Selected document", {
2419
+ documentId: doc.id,
2420
+ documentName: doc.name
2421
+ });
2422
+ setIsModalOpen(true);
2423
+ };
2424
+ var handleDrawerClose = function() {
2425
+ setIsModalOpen(false);
2426
+ };
2427
+ return /* @__PURE__ */ jsxs14("div", {
2428
+ className: "w-full md:w-4/6 alq--document-selector",
2429
+ children: [
2430
+ /* @__PURE__ */ jsxs14(Select, {
2431
+ value: selectedDocName,
2432
+ onValueChange: setSelectedDocName,
2433
+ children: [
2434
+ /* @__PURE__ */ jsx34(SelectTrigger, {
2435
+ "aria-label": "Documentos",
2436
+ children: /* @__PURE__ */ jsx34(SelectValue, {
2437
+ placeholder: "Documentos"
2438
+ })
2439
+ }),
2440
+ /* @__PURE__ */ jsx34(SelectContent, {
2441
+ children: /* @__PURE__ */ jsxs14(SelectGroup, {
2442
+ children: [
2443
+ /* @__PURE__ */ jsx34(SelectLabel, {
2444
+ children: "Documents"
2445
+ }),
2446
+ documents.map(function(doc) {
2447
+ return /* @__PURE__ */ jsxs14("div", {
2448
+ className: "w-full flex relative",
2449
+ children: [
2450
+ /* @__PURE__ */ jsx34(SelectItem, {
2451
+ className: "w-full",
2452
+ value: doc.id,
2453
+ children: /* @__PURE__ */ jsx34("div", {
2454
+ className: "flex justify-between w-full",
2455
+ children: /* @__PURE__ */ jsx34("p", {
2456
+ className: "h-4 truncate mr-5",
2457
+ children: doc.name
2458
+ })
2459
+ })
2460
+ }, doc.id),
2461
+ /* @__PURE__ */ jsx34("div", {
2462
+ onClick: function(event) {
2463
+ return handleDocumentClick(doc, event);
2464
+ },
2465
+ className: "bflex items-center text-gray-400 hover:text-gray-500 absolute right-0 mt-2",
2466
+ "aria-label": "Open ".concat(doc.name),
2467
+ children: /* @__PURE__ */ jsx34(ExternalLink, {
2468
+ className: "h-4 w-4 mx-2"
2469
+ })
2470
+ })
2471
+ ]
2472
+ }, doc.id);
2473
+ })
2474
+ ]
2475
+ })
2476
+ })
2477
+ ]
2478
+ }),
2479
+ selectedDoc && /* @__PURE__ */ jsx34(DocumentViewer, {
2480
+ doc: selectedDoc,
2481
+ docName: selectedDocName || "",
2482
+ isOpen: isModalOpen,
2483
+ onClose: handleDrawerClose,
2484
+ getDocument: getDocument
2485
+ })
2486
+ ]
2006
2487
  });
2007
- setIsModalOpen(true);
2008
- };
2009
- const handleDrawerClose = () => {
2010
- setIsModalOpen(false);
2011
- };
2012
- return /* @__PURE__ */ jsxs14("div", { className: "w-full md:w-4/6 alq--document-selector", children: [
2013
- /* @__PURE__ */ jsxs14(Select, { value: selectedDocName, onValueChange: setSelectedDocName, children: [
2014
- /* @__PURE__ */ jsx34(SelectTrigger, { "aria-label": "Documentos", children: /* @__PURE__ */ jsx34(SelectValue, { placeholder: "Documentos" }) }),
2015
- /* @__PURE__ */ jsx34(SelectContent, { children: /* @__PURE__ */ jsxs14(SelectGroup, { children: [
2016
- /* @__PURE__ */ jsx34(SelectLabel, { children: "Documents" }),
2017
- documents.map((doc) => /* @__PURE__ */ jsxs14("div", { className: "w-full flex relative", children: [
2018
- /* @__PURE__ */ jsx34(SelectItem, { className: "w-full", value: doc.id, children: /* @__PURE__ */ jsx34("div", { className: "flex justify-between w-full", children: /* @__PURE__ */ jsx34("p", { className: "h-4 truncate mr-5", children: doc.name }) }) }, doc.id),
2019
- /* @__PURE__ */ jsx34(
2020
- "div",
2021
- {
2022
- onClick: (event) => handleDocumentClick(doc, event),
2023
- className: "bflex items-center text-gray-400 hover:text-gray-500 absolute right-0 mt-2",
2024
- "aria-label": `Open ${doc.name}`,
2025
- children: /* @__PURE__ */ jsx34(ExternalLink, { className: "h-4 w-4 mx-2" })
2026
- }
2027
- )
2028
- ] }, doc.id))
2029
- ] }) })
2030
- ] }),
2031
- selectedDoc && /* @__PURE__ */ jsx34(
2032
- DocumentViewer,
2033
- {
2034
- doc: selectedDoc,
2035
- docName: selectedDocName || "",
2036
- isOpen: isModalOpen,
2037
- onClose: handleDrawerClose,
2038
- getDocument
2039
- }
2040
- )
2041
- ] });
2042
- };
2043
- export {
2044
- DocumentSelector,
2045
- DocumentViewer
2046
2488
  };
2489
+ export { DocumentSelector, DocumentViewer };
2047
2490
  //# sourceMappingURL=index.mjs.map