@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.
- package/dist/components/atoms/index.d.mts +1 -1
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/components/atoms/index.js +1848 -1428
- package/dist/components/atoms/index.js.map +1 -1
- package/dist/components/atoms/index.mjs +1453 -1409
- package/dist/components/atoms/index.mjs.map +1 -1
- package/dist/components/hooks/index.d.mts +1 -0
- package/dist/components/hooks/index.d.ts +1 -0
- package/dist/components/hooks/index.js +572 -211
- package/dist/components/hooks/index.js.map +1 -1
- package/dist/components/hooks/index.mjs +505 -193
- package/dist/components/hooks/index.mjs.map +1 -1
- package/dist/components/molecules/documents/index.d.mts +1 -0
- package/dist/components/molecules/documents/index.d.ts +1 -0
- package/dist/components/molecules/documents/index.js +2366 -1884
- package/dist/components/molecules/documents/index.js.map +1 -1
- package/dist/components/molecules/documents/index.mjs +2207 -1764
- package/dist/components/molecules/documents/index.mjs.map +1 -1
- package/dist/components/molecules/index.js +2261 -2095
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs +2084 -2075
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/molecules/viewers/index.js +1303 -1185
- package/dist/components/molecules/viewers/index.js.map +1 -1
- package/dist/components/molecules/viewers/index.mjs +1254 -1167
- package/dist/components/molecules/viewers/index.mjs.map +1 -1
- package/dist/components/organisms/index.d.mts +1 -0
- package/dist/components/organisms/index.d.ts +1 -0
- package/dist/components/organisms/index.js +3074 -2609
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +2999 -2586
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/components/templates/index.d.mts +25 -3
- package/dist/components/templates/index.d.ts +25 -3
- package/dist/components/templates/index.js +1490 -1300
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/index.mjs +1413 -1281
- package/dist/components/templates/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3951 -2977
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3368 -2950
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.js +106 -54
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +42 -43
- package/dist/lib/index.mjs.map +1 -1
- package/dist/providers/index.d.mts +17 -0
- package/dist/providers/index.d.ts +17 -0
- package/dist/providers/index.js +177 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/index.mjs +101 -0
- package/dist/providers/index.mjs.map +1 -0
- package/dist/styles.css +68 -0
- package/dist/styles.css.map +1 -0
- package/dist/styles.d.mts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/tailwind.config.js +4 -10
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +52 -19
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +6 -8
- package/dist/types/index.mjs.map +1 -1
- package/package.json +8 -7
- package/dist/components/index.d.mts +0 -23
- package/dist/components/index.d.ts +0 -23
- package/dist/components/index.js +0 -1734
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs +0 -1702
- package/dist/components/index.mjs.map +0 -1
- package/dist/components/templates/cards/index.d.mts +0 -26
- package/dist/components/templates/cards/index.d.ts +0 -26
- package/dist/components/templates/cards/index.js +0 -1536
- package/dist/components/templates/cards/index.js.map +0 -1
- package/dist/components/templates/cards/index.mjs +0 -1504
- 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)
|
|
9
|
-
|
|
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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(
|
|
35
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
ref
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
)
|
|
316
|
-
|
|
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
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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(
|
|
368
|
-
|
|
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
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
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
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
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
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
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
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
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
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
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
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
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
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
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
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
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
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
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
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
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
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
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
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
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
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
)
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
)
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
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
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
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
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
ref
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
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
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
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
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
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
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
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
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
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
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
ref
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
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
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
)
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
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
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
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
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
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
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
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
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
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
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
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
|
-
|
|
1688
|
-
"
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
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
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
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
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
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
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
)
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
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
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
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
|
-
|
|
2213
|
+
default: function() {
|
|
2214
|
+
return PlainTextViewer;
|
|
2215
|
+
}
|
|
1902
2216
|
});
|
|
1903
|
-
function PlainTextViewer(
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
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
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
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
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
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
|
-
|
|
1941
|
-
|
|
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
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
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 =
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
})
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
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 = (
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
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 = (
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
event
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
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
|