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