acemyjob-ui 2.0.1 → 2.0.3
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/acemyjob-ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as j from "react";
|
|
2
|
-
import
|
|
3
|
-
import { ChevronDownIcon as
|
|
4
|
-
import { useSortable as
|
|
5
|
-
import { CSS as
|
|
6
|
-
import { Dialog as
|
|
7
|
-
const
|
|
2
|
+
import I, { useState as V, useCallback as M, createContext as Te, useEffect as U, useContext as Ee, useRef as G } from "react";
|
|
3
|
+
import { ChevronDownIcon as ae, InformationCircleIcon as ve, ExclamationCircleIcon as pe, XCircleIcon as je, CheckCircleIcon as ye, XMarkIcon as Re, Bars3Icon as Ae } from "@heroicons/react/24/outline";
|
|
4
|
+
import { useSortable as Se } from "@dnd-kit/sortable";
|
|
5
|
+
import { CSS as Be } from "@dnd-kit/utilities";
|
|
6
|
+
import { Dialog as Me, DialogBackdrop as _e, DialogPanel as Oe, TransitionChild as De } from "@headlessui/react";
|
|
7
|
+
const Br = {
|
|
8
8
|
required: (r = "This field is required") => ({
|
|
9
9
|
validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
|
|
10
10
|
message: r
|
|
@@ -14,23 +14,23 @@ const Tr = {
|
|
|
14
14
|
message: r
|
|
15
15
|
}),
|
|
16
16
|
minLength: (r, s) => ({
|
|
17
|
-
validate: (
|
|
17
|
+
validate: (a) => String(a).length >= r,
|
|
18
18
|
message: s || `Must be at least ${r} characters`
|
|
19
19
|
}),
|
|
20
20
|
maxLength: (r, s) => ({
|
|
21
|
-
validate: (
|
|
21
|
+
validate: (a) => String(a).length <= r,
|
|
22
22
|
message: s || `Must be no more than ${r} characters`
|
|
23
23
|
}),
|
|
24
24
|
pattern: (r, s = "Invalid format") => ({
|
|
25
|
-
validate: (
|
|
25
|
+
validate: (a) => r.test(String(a)),
|
|
26
26
|
message: s
|
|
27
27
|
}),
|
|
28
28
|
minValue: (r, s) => ({
|
|
29
|
-
validate: (
|
|
29
|
+
validate: (a) => Number(a) >= r,
|
|
30
30
|
message: s || `Must be at least ${r}`
|
|
31
31
|
}),
|
|
32
32
|
maxValue: (r, s) => ({
|
|
33
|
-
validate: (
|
|
33
|
+
validate: (a) => Number(a) <= r,
|
|
34
34
|
message: s || `Must be no more than ${r}`
|
|
35
35
|
}),
|
|
36
36
|
url: (r = "Please enter a valid URL") => ({
|
|
@@ -45,13 +45,13 @@ const Tr = {
|
|
|
45
45
|
}),
|
|
46
46
|
phone: (r = "Please enter a valid phone number") => ({
|
|
47
47
|
validate: (s) => {
|
|
48
|
-
const
|
|
49
|
-
return
|
|
48
|
+
const a = /^[\d\s\-+()]+$/, t = String(s);
|
|
49
|
+
return a.test(t) && t.replace(/\D/g, "").length >= 10;
|
|
50
50
|
},
|
|
51
51
|
message: r
|
|
52
52
|
}),
|
|
53
53
|
match: (r, s = "Fields do not match") => ({
|
|
54
|
-
validate: (
|
|
54
|
+
validate: (a) => a === r,
|
|
55
55
|
message: s
|
|
56
56
|
}),
|
|
57
57
|
custom: (r, s) => ({
|
|
@@ -59,99 +59,99 @@ const Tr = {
|
|
|
59
59
|
message: s
|
|
60
60
|
})
|
|
61
61
|
};
|
|
62
|
-
function
|
|
63
|
-
for (const
|
|
64
|
-
if (!
|
|
65
|
-
return
|
|
62
|
+
function Ie(r, s) {
|
|
63
|
+
for (const a of s)
|
|
64
|
+
if (!a.validate(r))
|
|
65
|
+
return a.message;
|
|
66
66
|
return null;
|
|
67
67
|
}
|
|
68
68
|
function ee(r, s) {
|
|
69
|
-
const
|
|
70
|
-
for (const [
|
|
71
|
-
const n = r[
|
|
72
|
-
t
|
|
69
|
+
const a = {};
|
|
70
|
+
for (const [t, l] of Object.entries(s)) {
|
|
71
|
+
const n = r[t], c = Ie(n, l);
|
|
72
|
+
a[t] = c;
|
|
73
73
|
}
|
|
74
|
-
return
|
|
74
|
+
return a;
|
|
75
75
|
}
|
|
76
76
|
function Pe(r) {
|
|
77
77
|
return Object.values(r).some((s) => s !== null);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Mr(r) {
|
|
80
80
|
for (const s of Object.values(r))
|
|
81
81
|
if (s !== null)
|
|
82
82
|
return s;
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function _r(r, s) {
|
|
86
86
|
return {
|
|
87
87
|
...r,
|
|
88
88
|
[s]: null
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Or(r) {
|
|
92
92
|
const s = {};
|
|
93
|
-
for (const
|
|
94
|
-
s[
|
|
93
|
+
for (const a of Object.keys(r))
|
|
94
|
+
s[a] = null;
|
|
95
95
|
return s;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Dr({
|
|
98
98
|
initialValues: r,
|
|
99
99
|
validationRules: s = {},
|
|
100
|
-
onSubmit:
|
|
100
|
+
onSubmit: a
|
|
101
101
|
}) {
|
|
102
|
-
const [
|
|
102
|
+
const [t, l] = V(r), [n, c] = V({}), [o, u] = V({}), [d, m] = V(!1), h = JSON.stringify(t) !== JSON.stringify(r), x = M(
|
|
103
103
|
(p) => {
|
|
104
|
-
const { name:
|
|
105
|
-
let L =
|
|
106
|
-
if (S === "checkbox" ? L = p.target.checked : S === "number" && (L =
|
|
107
|
-
...
|
|
108
|
-
[
|
|
109
|
-
})), s[
|
|
110
|
-
const
|
|
111
|
-
|
|
104
|
+
const { name: v, value: w, type: S } = p.target;
|
|
105
|
+
let L = w;
|
|
106
|
+
if (S === "checkbox" ? L = p.target.checked : S === "number" && (L = w ? Number(w) : ""), l((P) => ({
|
|
107
|
+
...P,
|
|
108
|
+
[v]: L
|
|
109
|
+
})), s[v]) {
|
|
110
|
+
const P = ee({ [v]: L }, { [v]: s[v] });
|
|
111
|
+
c((W) => ({
|
|
112
112
|
...W,
|
|
113
|
-
[
|
|
113
|
+
[v]: P[v]
|
|
114
114
|
}));
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
[s]
|
|
118
|
-
),
|
|
118
|
+
), f = M(
|
|
119
119
|
(p) => {
|
|
120
|
-
const { name:
|
|
121
|
-
|
|
122
|
-
...
|
|
123
|
-
[
|
|
120
|
+
const { name: v } = p.target;
|
|
121
|
+
u((w) => ({
|
|
122
|
+
...w,
|
|
123
|
+
[v]: !0
|
|
124
124
|
}));
|
|
125
125
|
},
|
|
126
126
|
[]
|
|
127
|
-
),
|
|
128
|
-
if (l((
|
|
129
|
-
...
|
|
130
|
-
[p]:
|
|
127
|
+
), b = M((p, v) => {
|
|
128
|
+
if (l((w) => ({
|
|
129
|
+
...w,
|
|
130
|
+
[p]: v
|
|
131
131
|
})), s[p]) {
|
|
132
|
-
const
|
|
133
|
-
|
|
132
|
+
const w = ee({ [p]: v }, { [p]: s[p] });
|
|
133
|
+
c((S) => ({
|
|
134
134
|
...S,
|
|
135
|
-
[p]:
|
|
135
|
+
[p]: w[p]
|
|
136
136
|
}));
|
|
137
137
|
}
|
|
138
|
-
}, [s]), C =
|
|
139
|
-
|
|
140
|
-
...
|
|
141
|
-
[p]:
|
|
138
|
+
}, [s]), C = M((p, v) => {
|
|
139
|
+
c((w) => ({
|
|
140
|
+
...w,
|
|
141
|
+
[p]: v
|
|
142
142
|
}));
|
|
143
|
-
}, []), T =
|
|
143
|
+
}, []), T = M(
|
|
144
144
|
async (p) => {
|
|
145
145
|
p.preventDefault();
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
const
|
|
149
|
-
for (const S of Object.keys(
|
|
150
|
-
|
|
151
|
-
if (
|
|
146
|
+
const v = ee(t, s);
|
|
147
|
+
c(v);
|
|
148
|
+
const w = {};
|
|
149
|
+
for (const S of Object.keys(t))
|
|
150
|
+
w[S] = !0;
|
|
151
|
+
if (u(w), !Pe(v) && a) {
|
|
152
152
|
m(!0);
|
|
153
153
|
try {
|
|
154
|
-
await t
|
|
154
|
+
await a(t);
|
|
155
155
|
} catch (S) {
|
|
156
156
|
console.error("Form submission error:", S);
|
|
157
157
|
} finally {
|
|
@@ -159,46 +159,46 @@ function Sr({
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
[
|
|
163
|
-
), E =
|
|
164
|
-
l(r),
|
|
165
|
-
}, [r]), A =
|
|
162
|
+
[t, s, a]
|
|
163
|
+
), E = M(() => {
|
|
164
|
+
l(r), c({}), u({}), m(!1);
|
|
165
|
+
}, [r]), A = M(
|
|
166
166
|
(p) => ({
|
|
167
167
|
name: p,
|
|
168
|
-
value:
|
|
168
|
+
value: t[p] || "",
|
|
169
169
|
onChange: x,
|
|
170
|
-
onBlur:
|
|
170
|
+
onBlur: f
|
|
171
171
|
}),
|
|
172
|
-
[
|
|
173
|
-
),
|
|
172
|
+
[t, x, f]
|
|
173
|
+
), N = M(
|
|
174
174
|
(p) => n[p] || null,
|
|
175
175
|
[n]
|
|
176
|
-
),
|
|
177
|
-
(p) =>
|
|
178
|
-
[
|
|
179
|
-
), z =
|
|
180
|
-
(p) =>
|
|
181
|
-
[
|
|
176
|
+
), O = M(
|
|
177
|
+
(p) => o[p] || !1,
|
|
178
|
+
[o]
|
|
179
|
+
), z = M(
|
|
180
|
+
(p) => t[p] !== r[p],
|
|
181
|
+
[t, r]
|
|
182
182
|
);
|
|
183
183
|
return {
|
|
184
|
-
values:
|
|
184
|
+
values: t,
|
|
185
185
|
errors: n,
|
|
186
|
-
touched:
|
|
187
|
-
isSubmitting:
|
|
186
|
+
touched: o,
|
|
187
|
+
isSubmitting: d,
|
|
188
188
|
isDirty: h,
|
|
189
189
|
handleChange: x,
|
|
190
|
-
handleBlur:
|
|
191
|
-
setFieldValue:
|
|
190
|
+
handleBlur: f,
|
|
191
|
+
setFieldValue: b,
|
|
192
192
|
setFieldError: C,
|
|
193
193
|
handleSubmit: T,
|
|
194
194
|
resetForm: E,
|
|
195
195
|
getFieldProps: A,
|
|
196
|
-
getFieldError:
|
|
197
|
-
isFieldTouched:
|
|
196
|
+
getFieldError: N,
|
|
197
|
+
isFieldTouched: O,
|
|
198
198
|
isFieldDirty: z
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var Z = { exports: {} }, Y = {};
|
|
202
202
|
/**
|
|
203
203
|
* @license React
|
|
204
204
|
* react-jsx-runtime.production.js
|
|
@@ -208,27 +208,27 @@ var G = { exports: {} }, Y = {};
|
|
|
208
208
|
* This source code is licensed under the MIT license found in the
|
|
209
209
|
* LICENSE file in the root directory of this source tree.
|
|
210
210
|
*/
|
|
211
|
-
var
|
|
212
|
-
function
|
|
213
|
-
if (
|
|
214
|
-
|
|
211
|
+
var ie;
|
|
212
|
+
function ze() {
|
|
213
|
+
if (ie) return Y;
|
|
214
|
+
ie = 1;
|
|
215
215
|
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
216
|
-
function t
|
|
217
|
-
var
|
|
218
|
-
if (n !== void 0 && (
|
|
216
|
+
function a(t, l, n) {
|
|
217
|
+
var c = null;
|
|
218
|
+
if (n !== void 0 && (c = "" + n), l.key !== void 0 && (c = "" + l.key), "key" in l) {
|
|
219
219
|
n = {};
|
|
220
|
-
for (var
|
|
221
|
-
|
|
220
|
+
for (var o in l)
|
|
221
|
+
o !== "key" && (n[o] = l[o]);
|
|
222
222
|
} else n = l;
|
|
223
223
|
return l = n.ref, {
|
|
224
224
|
$$typeof: r,
|
|
225
|
-
type:
|
|
226
|
-
key:
|
|
225
|
+
type: t,
|
|
226
|
+
key: c,
|
|
227
227
|
ref: l !== void 0 ? l : null,
|
|
228
228
|
props: n
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
return Y.Fragment = s, Y.jsx =
|
|
231
|
+
return Y.Fragment = s, Y.jsx = a, Y.jsxs = a, Y;
|
|
232
232
|
}
|
|
233
233
|
var H = {};
|
|
234
234
|
/**
|
|
@@ -240,9 +240,9 @@ var H = {};
|
|
|
240
240
|
* This source code is licensed under the MIT license found in the
|
|
241
241
|
* LICENSE file in the root directory of this source tree.
|
|
242
242
|
*/
|
|
243
|
-
var
|
|
244
|
-
function
|
|
245
|
-
return
|
|
243
|
+
var de;
|
|
244
|
+
function Le() {
|
|
245
|
+
return de || (de = 1, process.env.NODE_ENV !== "production" && function() {
|
|
246
246
|
function r(i) {
|
|
247
247
|
if (i == null) return null;
|
|
248
248
|
if (typeof i == "function")
|
|
@@ -266,21 +266,21 @@ function ze() {
|
|
|
266
266
|
switch (typeof i.tag == "number" && console.error(
|
|
267
267
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
268
268
|
), i.$$typeof) {
|
|
269
|
-
case
|
|
269
|
+
case b:
|
|
270
270
|
return "Portal";
|
|
271
|
-
case
|
|
271
|
+
case N:
|
|
272
272
|
return (i.displayName || "Context") + ".Provider";
|
|
273
273
|
case A:
|
|
274
274
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
275
|
-
case
|
|
276
|
-
var
|
|
277
|
-
return i = i.displayName, i || (i =
|
|
278
|
-
case
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
|
|
275
|
+
case O:
|
|
276
|
+
var g = i.render;
|
|
277
|
+
return i = i.displayName, i || (i = g.displayName || g.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
278
|
+
case v:
|
|
279
|
+
return g = i.displayName || null, g !== null ? g : r(i.type) || "Memo";
|
|
280
|
+
case w:
|
|
281
|
+
g = i._payload, i = i._init;
|
|
282
282
|
try {
|
|
283
|
-
return r(i(
|
|
283
|
+
return r(i(g));
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -289,53 +289,53 @@ function ze() {
|
|
|
289
289
|
function s(i) {
|
|
290
290
|
return "" + i;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function a(i) {
|
|
293
293
|
try {
|
|
294
294
|
s(i);
|
|
295
|
-
var
|
|
295
|
+
var g = !1;
|
|
296
296
|
} catch {
|
|
297
|
-
|
|
297
|
+
g = !0;
|
|
298
298
|
}
|
|
299
|
-
if (
|
|
300
|
-
|
|
301
|
-
var y =
|
|
299
|
+
if (g) {
|
|
300
|
+
g = console;
|
|
301
|
+
var y = g.error, k = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
302
302
|
return y.call(
|
|
303
|
-
|
|
303
|
+
g,
|
|
304
304
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
305
305
|
k
|
|
306
306
|
), s(i);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function t(i) {
|
|
310
310
|
if (i === C) return "<>";
|
|
311
|
-
if (typeof i == "object" && i !== null && i.$$typeof ===
|
|
311
|
+
if (typeof i == "object" && i !== null && i.$$typeof === w)
|
|
312
312
|
return "<...>";
|
|
313
313
|
try {
|
|
314
|
-
var
|
|
315
|
-
return
|
|
314
|
+
var g = r(i);
|
|
315
|
+
return g ? "<" + g + ">" : "<...>";
|
|
316
316
|
} catch {
|
|
317
317
|
return "<...>";
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
function l() {
|
|
321
|
-
var i =
|
|
321
|
+
var i = P.A;
|
|
322
322
|
return i === null ? null : i.getOwner();
|
|
323
323
|
}
|
|
324
324
|
function n() {
|
|
325
325
|
return Error("react-stack-top-frame");
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function c(i) {
|
|
328
328
|
if (W.call(i, "key")) {
|
|
329
|
-
var
|
|
330
|
-
if (
|
|
329
|
+
var g = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
330
|
+
if (g && g.isReactWarning) return !1;
|
|
331
331
|
}
|
|
332
332
|
return i.key !== void 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function o(i, g) {
|
|
335
335
|
function y() {
|
|
336
|
-
|
|
336
|
+
te || (te = !0, console.error(
|
|
337
337
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
338
|
-
|
|
338
|
+
g
|
|
339
339
|
));
|
|
340
340
|
}
|
|
341
341
|
y.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
@@ -343,22 +343,22 @@ function ze() {
|
|
|
343
343
|
configurable: !0
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function u() {
|
|
347
347
|
var i = r(this.type);
|
|
348
|
-
return
|
|
348
|
+
return ne[i] || (ne[i] = !0, console.error(
|
|
349
349
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
350
350
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function d(i, g, y, k, D, B, X, K) {
|
|
353
353
|
return y = B.ref, i = {
|
|
354
|
-
$$typeof:
|
|
354
|
+
$$typeof: f,
|
|
355
355
|
type: i,
|
|
356
|
-
key:
|
|
356
|
+
key: g,
|
|
357
357
|
props: B,
|
|
358
|
-
_owner:
|
|
358
|
+
_owner: D
|
|
359
359
|
}, (y !== void 0 ? y : null) !== null ? Object.defineProperty(i, "ref", {
|
|
360
360
|
enumerable: !1,
|
|
361
|
-
get:
|
|
361
|
+
get: u
|
|
362
362
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
363
363
|
configurable: !1,
|
|
364
364
|
enumerable: !1,
|
|
@@ -381,11 +381,11 @@ function ze() {
|
|
|
381
381
|
value: K
|
|
382
382
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
383
383
|
}
|
|
384
|
-
function m(i,
|
|
385
|
-
var $ =
|
|
384
|
+
function m(i, g, y, k, D, B, X, K) {
|
|
385
|
+
var $ = g.children;
|
|
386
386
|
if ($ !== void 0)
|
|
387
387
|
if (k)
|
|
388
|
-
if (
|
|
388
|
+
if ($e($)) {
|
|
389
389
|
for (k = 0; k < $.length; k++)
|
|
390
390
|
h($[k]);
|
|
391
391
|
Object.freeze && Object.freeze($);
|
|
@@ -394,12 +394,12 @@ function ze() {
|
|
|
394
394
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
395
395
|
);
|
|
396
396
|
else h($);
|
|
397
|
-
if (W.call(
|
|
397
|
+
if (W.call(g, "key")) {
|
|
398
398
|
$ = r(i);
|
|
399
|
-
var F = Object.keys(
|
|
400
|
-
return
|
|
399
|
+
var F = Object.keys(g).filter(function(Ve) {
|
|
400
|
+
return Ve !== "key";
|
|
401
401
|
});
|
|
402
|
-
k = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
402
|
+
k = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", ce[$ + k] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
403
403
|
`A props object containing a "key" prop is being spread into JSX:
|
|
404
404
|
let props = %s;
|
|
405
405
|
<%s {...props} />
|
|
@@ -410,21 +410,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
410
410
|
$,
|
|
411
411
|
F,
|
|
412
412
|
$
|
|
413
|
-
),
|
|
413
|
+
), ce[$ + k] = !0);
|
|
414
414
|
}
|
|
415
|
-
if ($ = null, y !== void 0 && (
|
|
415
|
+
if ($ = null, y !== void 0 && (a(y), $ = "" + y), c(g) && (a(g.key), $ = "" + g.key), "key" in g) {
|
|
416
416
|
y = {};
|
|
417
|
-
for (var Q in
|
|
418
|
-
Q !== "key" && (y[Q] =
|
|
419
|
-
} else y =
|
|
420
|
-
return $ &&
|
|
417
|
+
for (var Q in g)
|
|
418
|
+
Q !== "key" && (y[Q] = g[Q]);
|
|
419
|
+
} else y = g;
|
|
420
|
+
return $ && o(
|
|
421
421
|
y,
|
|
422
422
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
423
|
-
),
|
|
423
|
+
), d(
|
|
424
424
|
i,
|
|
425
425
|
$,
|
|
426
426
|
B,
|
|
427
|
-
|
|
427
|
+
D,
|
|
428
428
|
l(),
|
|
429
429
|
y,
|
|
430
430
|
X,
|
|
@@ -432,9 +432,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
432
432
|
);
|
|
433
433
|
}
|
|
434
434
|
function h(i) {
|
|
435
|
-
typeof i == "object" && i !== null && i.$$typeof ===
|
|
435
|
+
typeof i == "object" && i !== null && i.$$typeof === f && i._store && (i._store.validated = 1);
|
|
436
436
|
}
|
|
437
|
-
var x =
|
|
437
|
+
var x = I, f = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), N = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), S = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), P = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, $e = Array.isArray, J = console.createTask ? console.createTask : function() {
|
|
438
438
|
return null;
|
|
439
439
|
};
|
|
440
440
|
x = {
|
|
@@ -442,61 +442,61 @@ React keys must be passed directly to JSX without using spread:
|
|
|
442
442
|
return i();
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
|
-
var
|
|
445
|
+
var te, ne = {}, le = x["react-stack-bottom-frame"].bind(
|
|
446
446
|
x,
|
|
447
447
|
n
|
|
448
|
-
)(),
|
|
449
|
-
H.Fragment = C, H.jsx = function(i,
|
|
450
|
-
var B = 1e4 >
|
|
448
|
+
)(), oe = J(t(n)), ce = {};
|
|
449
|
+
H.Fragment = C, H.jsx = function(i, g, y, k, D) {
|
|
450
|
+
var B = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
451
451
|
return m(
|
|
452
452
|
i,
|
|
453
|
-
|
|
453
|
+
g,
|
|
454
454
|
y,
|
|
455
455
|
!1,
|
|
456
456
|
k,
|
|
457
|
-
|
|
458
|
-
B ? Error("react-stack-top-frame") :
|
|
459
|
-
B ? J(
|
|
457
|
+
D,
|
|
458
|
+
B ? Error("react-stack-top-frame") : le,
|
|
459
|
+
B ? J(t(i)) : oe
|
|
460
460
|
);
|
|
461
|
-
}, H.jsxs = function(i,
|
|
462
|
-
var B = 1e4 >
|
|
461
|
+
}, H.jsxs = function(i, g, y, k, D) {
|
|
462
|
+
var B = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
463
463
|
return m(
|
|
464
464
|
i,
|
|
465
|
-
|
|
465
|
+
g,
|
|
466
466
|
y,
|
|
467
467
|
!0,
|
|
468
468
|
k,
|
|
469
|
-
|
|
470
|
-
B ? Error("react-stack-top-frame") :
|
|
471
|
-
B ? J(
|
|
469
|
+
D,
|
|
470
|
+
B ? Error("react-stack-top-frame") : le,
|
|
471
|
+
B ? J(t(i)) : oe
|
|
472
472
|
);
|
|
473
473
|
};
|
|
474
474
|
}()), H;
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
function
|
|
478
|
-
return
|
|
476
|
+
var ue;
|
|
477
|
+
function Fe() {
|
|
478
|
+
return ue || (ue = 1, process.env.NODE_ENV === "production" ? Z.exports = ze() : Z.exports = Le()), Z.exports;
|
|
479
479
|
}
|
|
480
|
-
var e =
|
|
481
|
-
const
|
|
482
|
-
const
|
|
480
|
+
var e = Fe();
|
|
481
|
+
const we = (r) => r.replace("--color-", "bg-"), Ue = ({ name: r, cssVar: s, value: a }) => {
|
|
482
|
+
const t = `rgb(${a})`;
|
|
483
483
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center space-y-2 p-3 rounded-lg border border-border-subtle bg-surface hover:bg-surface-variant transition-colors", children: [
|
|
484
484
|
/* @__PURE__ */ e.jsx(
|
|
485
485
|
"div",
|
|
486
486
|
{
|
|
487
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
487
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${we(s)}`
|
|
488
488
|
}
|
|
489
489
|
),
|
|
490
490
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
491
491
|
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: r }),
|
|
492
492
|
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: s }),
|
|
493
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children:
|
|
493
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: t })
|
|
494
494
|
] })
|
|
495
495
|
] });
|
|
496
|
-
},
|
|
496
|
+
}, me = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
497
497
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: r }),
|
|
498
|
-
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-11 gap-4", children: s.map((
|
|
499
|
-
] }),
|
|
498
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-11 gap-4", children: s.map((a) => /* @__PURE__ */ e.jsx(Ue, { ...a }, a.name)) })
|
|
499
|
+
] }), Ye = () => {
|
|
500
500
|
const r = [
|
|
501
501
|
{
|
|
502
502
|
title: "Success Colors (Green)",
|
|
@@ -697,7 +697,7 @@ const ye = (r) => r.replace("--color-", "bg-"), Fe = ({ name: r, cssVar: s, valu
|
|
|
697
697
|
{ name: "900", cssVar: "--color-beaver-900", value: "235 229 224" }
|
|
698
698
|
]
|
|
699
699
|
}
|
|
700
|
-
],
|
|
700
|
+
], a = [
|
|
701
701
|
{ name: "Background", cssVar: "--color-background" },
|
|
702
702
|
{ name: "Surface", cssVar: "--color-surface" },
|
|
703
703
|
{ name: "Surface Variant", cssVar: "--color-surface-variant" },
|
|
@@ -712,63 +712,63 @@ const ye = (r) => r.replace("--color-", "bg-"), Fe = ({ name: r, cssVar: s, valu
|
|
|
712
712
|
/* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
|
|
713
713
|
/* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
|
|
714
714
|
] }),
|
|
715
|
-
s.map((
|
|
716
|
-
r.map((
|
|
715
|
+
s.map((t) => /* @__PURE__ */ e.jsx(me, { ...t }, t.title)),
|
|
716
|
+
r.map((t) => /* @__PURE__ */ e.jsx(me, { ...t }, t.title)),
|
|
717
717
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
718
718
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
|
|
719
|
-
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children:
|
|
719
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: a.map((t) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center space-y-2 p-3 rounded-lg border border-border-subtle bg-surface hover:bg-surface-variant transition-colors", children: [
|
|
720
720
|
/* @__PURE__ */ e.jsx(
|
|
721
721
|
"div",
|
|
722
722
|
{
|
|
723
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
723
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${we(t.cssVar)}`
|
|
724
724
|
}
|
|
725
725
|
),
|
|
726
726
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
727
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children:
|
|
728
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children:
|
|
727
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: t.name }),
|
|
728
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: t.cssVar })
|
|
729
729
|
] })
|
|
730
|
-
] },
|
|
730
|
+
] }, t.name)) })
|
|
731
731
|
] }),
|
|
732
732
|
/* @__PURE__ */ e.jsx("div", { className: "text-center pt-8 border-t border-border-subtle", children: /* @__PURE__ */ e.jsx("p", { className: "text-text-muted text-sm", children: "Toggle between light and dark themes to see how semantic colors adapt" }) })
|
|
733
733
|
] });
|
|
734
|
-
}, Ne =
|
|
734
|
+
}, Ne = Te(void 0), He = ({
|
|
735
735
|
children: r,
|
|
736
736
|
defaultTheme: s = "system",
|
|
737
|
-
storageKey:
|
|
737
|
+
storageKey: a = "acemyjob-ui-theme"
|
|
738
738
|
}) => {
|
|
739
|
-
const [
|
|
739
|
+
const [t, l] = V(s), [n, c] = V("light"), [o, u] = V(!1);
|
|
740
740
|
U(() => {
|
|
741
|
-
const m = localStorage.getItem(
|
|
742
|
-
m && l(m),
|
|
743
|
-
}, [
|
|
744
|
-
if (!
|
|
741
|
+
const m = localStorage.getItem(a);
|
|
742
|
+
m && l(m), u(!0);
|
|
743
|
+
}, [a]), U(() => {
|
|
744
|
+
if (!o) return;
|
|
745
745
|
const m = window.document.documentElement, h = () => {
|
|
746
746
|
let x;
|
|
747
|
-
|
|
747
|
+
t === "system" ? x = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : x = t, c(x), m.classList.remove("light", "dark"), m.classList.add(x);
|
|
748
748
|
};
|
|
749
|
-
if (h(),
|
|
750
|
-
const x = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
751
|
-
return x.addEventListener("change",
|
|
749
|
+
if (h(), t === "system") {
|
|
750
|
+
const x = window.matchMedia("(prefers-color-scheme: dark)"), f = () => h();
|
|
751
|
+
return x.addEventListener("change", f), () => x.removeEventListener("change", f);
|
|
752
752
|
}
|
|
753
|
-
}, [
|
|
754
|
-
const
|
|
755
|
-
theme:
|
|
753
|
+
}, [t, o]);
|
|
754
|
+
const d = {
|
|
755
|
+
theme: t,
|
|
756
756
|
setTheme: (m) => {
|
|
757
|
-
localStorage.setItem(
|
|
757
|
+
localStorage.setItem(a, m), l(m);
|
|
758
758
|
},
|
|
759
759
|
resolvedTheme: n
|
|
760
760
|
};
|
|
761
|
-
return /* @__PURE__ */ e.jsx(Ne.Provider, { value:
|
|
762
|
-
},
|
|
763
|
-
const r =
|
|
761
|
+
return /* @__PURE__ */ e.jsx(Ne.Provider, { value: d, children: r });
|
|
762
|
+
}, We = () => {
|
|
763
|
+
const r = Ee(Ne);
|
|
764
764
|
if (r === void 0)
|
|
765
765
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
766
766
|
return r;
|
|
767
|
-
},
|
|
768
|
-
const { theme: r, setTheme: s } =
|
|
767
|
+
}, Ze = () => {
|
|
768
|
+
const { theme: r, setTheme: s } = We(), [a, t] = V(!1);
|
|
769
769
|
if (U(() => {
|
|
770
|
-
|
|
771
|
-
}, []), !
|
|
770
|
+
t(!0);
|
|
771
|
+
}, []), !a)
|
|
772
772
|
return /* @__PURE__ */ e.jsxs(
|
|
773
773
|
"button",
|
|
774
774
|
{
|
|
@@ -791,7 +791,7 @@ const ye = (r) => r.replace("--color-", "bg-"), Fe = ({ name: r, cssVar: s, valu
|
|
|
791
791
|
case "system":
|
|
792
792
|
return /* @__PURE__ */ e.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" }) });
|
|
793
793
|
}
|
|
794
|
-
},
|
|
794
|
+
}, c = () => {
|
|
795
795
|
switch (r) {
|
|
796
796
|
case "light":
|
|
797
797
|
return "Light";
|
|
@@ -806,22 +806,22 @@ const ye = (r) => r.replace("--color-", "bg-"), Fe = ({ name: r, cssVar: s, valu
|
|
|
806
806
|
{
|
|
807
807
|
onClick: l,
|
|
808
808
|
className: "flex items-center gap-2 px-3 py-2 text-sm font-medium text-text-secondary hover:text-text-primary bg-surface hover:bg-surface-variant border border-border-subtle rounded-md transition-colors",
|
|
809
|
-
"aria-label": `Current theme: ${
|
|
809
|
+
"aria-label": `Current theme: ${c()}. Click to cycle themes.`,
|
|
810
810
|
children: [
|
|
811
811
|
n(),
|
|
812
|
-
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children:
|
|
812
|
+
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: c() })
|
|
813
813
|
]
|
|
814
814
|
}
|
|
815
815
|
);
|
|
816
|
-
},
|
|
817
|
-
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(
|
|
818
|
-
/* @__PURE__ */ e.jsx(
|
|
819
|
-
] }),
|
|
820
|
-
function
|
|
816
|
+
}, qe = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
817
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Ze, {}) }),
|
|
818
|
+
/* @__PURE__ */ e.jsx(Ye, {})
|
|
819
|
+
] }), Ir = () => /* @__PURE__ */ e.jsx(He, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(qe, {}) });
|
|
820
|
+
function Pr({
|
|
821
821
|
label: r,
|
|
822
822
|
children: s,
|
|
823
|
-
helperText:
|
|
824
|
-
errorText:
|
|
823
|
+
helperText: a,
|
|
824
|
+
errorText: t,
|
|
825
825
|
required: l = !1,
|
|
826
826
|
className: n = ""
|
|
827
827
|
}) {
|
|
@@ -831,81 +831,81 @@ function _r({
|
|
|
831
831
|
l && /* @__PURE__ */ e.jsx("span", { className: "text-error-500 ml-1", children: "*" })
|
|
832
832
|
] }),
|
|
833
833
|
s,
|
|
834
|
-
|
|
835
|
-
|
|
834
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-error-600", children: t }),
|
|
835
|
+
a && !t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: a })
|
|
836
836
|
] });
|
|
837
837
|
}
|
|
838
|
-
const
|
|
838
|
+
const Ge = I.forwardRef(
|
|
839
839
|
({
|
|
840
840
|
className: r = "",
|
|
841
841
|
leftIcon: s,
|
|
842
|
-
rightIcon:
|
|
843
|
-
error:
|
|
842
|
+
rightIcon: a,
|
|
843
|
+
error: t = !1,
|
|
844
844
|
fullWidth: l = !0,
|
|
845
845
|
disabled: n,
|
|
846
|
-
...
|
|
847
|
-
},
|
|
848
|
-
const
|
|
846
|
+
...c
|
|
847
|
+
}, o) => {
|
|
848
|
+
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", d = t ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", m = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", h = l ? "w-full" : "", x = s || a ? "relative flex items-center" : "", f = `${u} ${d} ${m} ${h} ${s ? "pl-10" : ""} ${a ? "pr-10" : ""} ${r}`;
|
|
849
849
|
return /* @__PURE__ */ e.jsxs("div", { className: x, children: [
|
|
850
850
|
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
851
851
|
/* @__PURE__ */ e.jsx(
|
|
852
852
|
"input",
|
|
853
853
|
{
|
|
854
|
-
ref:
|
|
855
|
-
className:
|
|
854
|
+
ref: o,
|
|
855
|
+
className: f,
|
|
856
856
|
disabled: n,
|
|
857
|
-
...
|
|
857
|
+
...c
|
|
858
858
|
}
|
|
859
859
|
),
|
|
860
|
-
|
|
860
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: a })
|
|
861
861
|
] });
|
|
862
862
|
}
|
|
863
863
|
);
|
|
864
|
-
|
|
865
|
-
const
|
|
864
|
+
Ge.displayName = "Input";
|
|
865
|
+
const Je = I.forwardRef(
|
|
866
866
|
({
|
|
867
867
|
options: r,
|
|
868
868
|
placeholder: s,
|
|
869
|
-
className:
|
|
870
|
-
error:
|
|
869
|
+
className: a = "",
|
|
870
|
+
error: t = !1,
|
|
871
871
|
fullWidth: l = !0,
|
|
872
872
|
disabled: n,
|
|
873
|
-
...
|
|
874
|
-
},
|
|
875
|
-
const x = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${
|
|
873
|
+
...c
|
|
874
|
+
}, o) => {
|
|
875
|
+
const x = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${t ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${l ? "w-full" : ""} pr-10 ${a}`;
|
|
876
876
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
|
|
877
877
|
/* @__PURE__ */ e.jsxs(
|
|
878
878
|
"select",
|
|
879
879
|
{
|
|
880
|
-
ref:
|
|
880
|
+
ref: o,
|
|
881
881
|
className: x,
|
|
882
882
|
disabled: n,
|
|
883
|
-
...
|
|
883
|
+
...c,
|
|
884
884
|
children: [
|
|
885
885
|
s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
|
|
886
|
-
r.map((
|
|
886
|
+
r.map((f) => /* @__PURE__ */ e.jsx("option", { value: f.value, children: f.label }, f.value))
|
|
887
887
|
]
|
|
888
888
|
}
|
|
889
889
|
),
|
|
890
|
-
/* @__PURE__ */ e.jsx(
|
|
890
|
+
/* @__PURE__ */ e.jsx(ae, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
|
|
891
891
|
] });
|
|
892
892
|
}
|
|
893
893
|
);
|
|
894
|
-
|
|
895
|
-
function
|
|
894
|
+
Je.displayName = "Select";
|
|
895
|
+
function Xe({
|
|
896
896
|
title: r,
|
|
897
897
|
titleId: s,
|
|
898
|
-
...
|
|
899
|
-
},
|
|
898
|
+
...a
|
|
899
|
+
}, t) {
|
|
900
900
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
901
901
|
xmlns: "http://www.w3.org/2000/svg",
|
|
902
902
|
viewBox: "0 0 20 20",
|
|
903
903
|
fill: "currentColor",
|
|
904
904
|
"aria-hidden": "true",
|
|
905
905
|
"data-slot": "icon",
|
|
906
|
-
ref:
|
|
906
|
+
ref: t,
|
|
907
907
|
"aria-labelledby": s
|
|
908
|
-
},
|
|
908
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
909
909
|
id: s
|
|
910
910
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
911
911
|
fillRule: "evenodd",
|
|
@@ -913,21 +913,21 @@ function Je({
|
|
|
913
913
|
clipRule: "evenodd"
|
|
914
914
|
}));
|
|
915
915
|
}
|
|
916
|
-
const
|
|
917
|
-
function
|
|
916
|
+
const xe = /* @__PURE__ */ j.forwardRef(Xe);
|
|
917
|
+
function Ke({
|
|
918
918
|
title: r,
|
|
919
919
|
titleId: s,
|
|
920
|
-
...
|
|
921
|
-
},
|
|
920
|
+
...a
|
|
921
|
+
}, t) {
|
|
922
922
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
923
923
|
xmlns: "http://www.w3.org/2000/svg",
|
|
924
924
|
viewBox: "0 0 20 20",
|
|
925
925
|
fill: "currentColor",
|
|
926
926
|
"aria-hidden": "true",
|
|
927
927
|
"data-slot": "icon",
|
|
928
|
-
ref:
|
|
928
|
+
ref: t,
|
|
929
929
|
"aria-labelledby": s
|
|
930
|
-
},
|
|
930
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
931
931
|
id: s
|
|
932
932
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
933
933
|
fillRule: "evenodd",
|
|
@@ -935,104 +935,104 @@ function Xe({
|
|
|
935
935
|
clipRule: "evenodd"
|
|
936
936
|
}));
|
|
937
937
|
}
|
|
938
|
-
const
|
|
939
|
-
function
|
|
938
|
+
const he = /* @__PURE__ */ j.forwardRef(Ke);
|
|
939
|
+
function Qe({
|
|
940
940
|
title: r,
|
|
941
941
|
titleId: s,
|
|
942
|
-
...
|
|
943
|
-
},
|
|
942
|
+
...a
|
|
943
|
+
}, t) {
|
|
944
944
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
945
945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
946
946
|
viewBox: "0 0 20 20",
|
|
947
947
|
fill: "currentColor",
|
|
948
948
|
"aria-hidden": "true",
|
|
949
949
|
"data-slot": "icon",
|
|
950
|
-
ref:
|
|
950
|
+
ref: t,
|
|
951
951
|
"aria-labelledby": s
|
|
952
|
-
},
|
|
952
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
953
953
|
id: s
|
|
954
954
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
955
955
|
d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"
|
|
956
956
|
}));
|
|
957
957
|
}
|
|
958
|
-
const
|
|
959
|
-
function
|
|
958
|
+
const se = /* @__PURE__ */ j.forwardRef(Qe);
|
|
959
|
+
function er({
|
|
960
960
|
children: r,
|
|
961
961
|
variant: s = "default",
|
|
962
|
-
size:
|
|
963
|
-
removable:
|
|
962
|
+
size: a = "md",
|
|
963
|
+
removable: t = !1,
|
|
964
964
|
onRemove: l,
|
|
965
965
|
className: n = "",
|
|
966
|
-
style:
|
|
967
|
-
colorClass:
|
|
966
|
+
style: c,
|
|
967
|
+
colorClass: o
|
|
968
968
|
}) {
|
|
969
|
-
const
|
|
969
|
+
const u = {
|
|
970
970
|
default: "bg-surface-variant text-text-secondary",
|
|
971
971
|
success: "bg-success-50 text-success-700",
|
|
972
972
|
error: "bg-error-50 text-error-700",
|
|
973
973
|
warning: "bg-warning-50 text-warning-700",
|
|
974
974
|
info: "bg-info-50 text-info-700"
|
|
975
|
-
},
|
|
975
|
+
}, d = {
|
|
976
976
|
sm: "px-2 py-0.5 text-xs",
|
|
977
977
|
md: "px-3 py-1 text-sm",
|
|
978
978
|
lg: "px-4 py-1.5 text-base"
|
|
979
|
-
}, m =
|
|
979
|
+
}, m = o || u[s];
|
|
980
980
|
return /* @__PURE__ */ e.jsxs(
|
|
981
981
|
"span",
|
|
982
982
|
{
|
|
983
|
-
className: `inline-flex items-center gap-1 rounded-full ${m} ${
|
|
984
|
-
style:
|
|
983
|
+
className: `inline-flex items-center gap-1 rounded-full ${m} ${d[a]} ${n}`,
|
|
984
|
+
style: c,
|
|
985
985
|
children: [
|
|
986
986
|
r,
|
|
987
|
-
|
|
987
|
+
t && l && /* @__PURE__ */ e.jsx(
|
|
988
988
|
"button",
|
|
989
989
|
{
|
|
990
990
|
onClick: l,
|
|
991
991
|
className: "ml-1 hover:opacity-70",
|
|
992
992
|
"aria-label": "Remove badge",
|
|
993
|
-
children: /* @__PURE__ */ e.jsx(
|
|
993
|
+
children: /* @__PURE__ */ e.jsx(se, { className: "w-3 h-3" })
|
|
994
994
|
}
|
|
995
995
|
)
|
|
996
996
|
]
|
|
997
997
|
}
|
|
998
998
|
);
|
|
999
999
|
}
|
|
1000
|
-
const
|
|
1000
|
+
const rr = I.forwardRef(
|
|
1001
1001
|
({
|
|
1002
1002
|
tags: r,
|
|
1003
1003
|
onTagsChange: s,
|
|
1004
|
-
onAddTag:
|
|
1005
|
-
onRemoveTag:
|
|
1004
|
+
onAddTag: a,
|
|
1005
|
+
onRemoveTag: t,
|
|
1006
1006
|
placeholder: l = "Add a tag and press Enter",
|
|
1007
1007
|
error: n = !1,
|
|
1008
|
-
fullWidth:
|
|
1009
|
-
maxTags:
|
|
1010
|
-
duplicateCheck:
|
|
1011
|
-
disabled:
|
|
1008
|
+
fullWidth: c = !0,
|
|
1009
|
+
maxTags: o,
|
|
1010
|
+
duplicateCheck: u = !0,
|
|
1011
|
+
disabled: d,
|
|
1012
1012
|
className: m = "",
|
|
1013
1013
|
...h
|
|
1014
1014
|
}, x) => {
|
|
1015
|
-
const [
|
|
1016
|
-
|
|
1017
|
-
}, T = (
|
|
1018
|
-
if (
|
|
1015
|
+
const [f, b] = V(""), C = (v) => {
|
|
1016
|
+
v.key === "Enter" && f.trim() ? (v.preventDefault(), T(f.trim())) : v.key === "Backspace" && !f && r.length > 0 && E(r[r.length - 1]);
|
|
1017
|
+
}, T = (v) => {
|
|
1018
|
+
if (o && r.length >= o || u && r.includes(v))
|
|
1019
1019
|
return;
|
|
1020
|
-
const
|
|
1021
|
-
s(
|
|
1022
|
-
}, E = (
|
|
1023
|
-
const
|
|
1024
|
-
s(
|
|
1025
|
-
}, p = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${n ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${
|
|
1020
|
+
const w = [...r, v];
|
|
1021
|
+
s(w), a?.(v), b("");
|
|
1022
|
+
}, E = (v) => {
|
|
1023
|
+
const w = r.filter((S) => S !== v);
|
|
1024
|
+
s(w), t?.(v);
|
|
1025
|
+
}, p = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${n ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${d ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${c ? "w-full" : ""} ${m}`;
|
|
1026
1026
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1027
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((
|
|
1028
|
-
|
|
1027
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((v) => /* @__PURE__ */ e.jsx(
|
|
1028
|
+
er,
|
|
1029
1029
|
{
|
|
1030
1030
|
removable: !0,
|
|
1031
|
-
onRemove: () => E(
|
|
1031
|
+
onRemove: () => E(v),
|
|
1032
1032
|
variant: "default",
|
|
1033
|
-
children:
|
|
1033
|
+
children: v
|
|
1034
1034
|
},
|
|
1035
|
-
|
|
1035
|
+
v
|
|
1036
1036
|
)) }),
|
|
1037
1037
|
/* @__PURE__ */ e.jsx(
|
|
1038
1038
|
"input",
|
|
@@ -1041,23 +1041,23 @@ const er = P.forwardRef(
|
|
|
1041
1041
|
type: "text",
|
|
1042
1042
|
className: p,
|
|
1043
1043
|
placeholder: l,
|
|
1044
|
-
value:
|
|
1045
|
-
onChange: (
|
|
1044
|
+
value: f,
|
|
1045
|
+
onChange: (v) => b(v.target.value),
|
|
1046
1046
|
onKeyDown: C,
|
|
1047
|
-
disabled:
|
|
1047
|
+
disabled: d || (o ? r.length >= o : !1),
|
|
1048
1048
|
...h
|
|
1049
1049
|
}
|
|
1050
1050
|
),
|
|
1051
|
-
|
|
1051
|
+
o && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
|
|
1052
1052
|
r.length,
|
|
1053
1053
|
" / ",
|
|
1054
|
-
|
|
1054
|
+
o
|
|
1055
1055
|
] })
|
|
1056
1056
|
] });
|
|
1057
1057
|
}
|
|
1058
1058
|
);
|
|
1059
|
-
|
|
1060
|
-
const
|
|
1059
|
+
rr.displayName = "TagInput";
|
|
1060
|
+
const fe = {
|
|
1061
1061
|
variant: {
|
|
1062
1062
|
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
1063
1063
|
destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
|
|
@@ -1075,24 +1075,24 @@ const he = {
|
|
|
1075
1075
|
xl: "h-12 rounded-md px-10 text-base",
|
|
1076
1076
|
icon: "h-10 w-10"
|
|
1077
1077
|
}
|
|
1078
|
-
},
|
|
1078
|
+
}, sr = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", ar = (...r) => r.filter(Boolean).join(" "), _ = I.forwardRef(
|
|
1079
1079
|
({
|
|
1080
1080
|
className: r,
|
|
1081
1081
|
variant: s = "default",
|
|
1082
|
-
size:
|
|
1083
|
-
fullWidth:
|
|
1082
|
+
size: a = "default",
|
|
1083
|
+
fullWidth: t = !1,
|
|
1084
1084
|
loading: l = !1,
|
|
1085
1085
|
leftIcon: n,
|
|
1086
|
-
rightIcon:
|
|
1087
|
-
children:
|
|
1088
|
-
disabled:
|
|
1089
|
-
...
|
|
1086
|
+
rightIcon: c,
|
|
1087
|
+
children: o,
|
|
1088
|
+
disabled: u,
|
|
1089
|
+
...d
|
|
1090
1090
|
}, m) => {
|
|
1091
|
-
const h =
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1091
|
+
const h = u || l, x = ar(
|
|
1092
|
+
sr,
|
|
1093
|
+
fe.variant[s],
|
|
1094
|
+
fe.size[a],
|
|
1095
|
+
t ? "w-full" : "",
|
|
1096
1096
|
r
|
|
1097
1097
|
);
|
|
1098
1098
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -1101,7 +1101,7 @@ const he = {
|
|
|
1101
1101
|
className: x,
|
|
1102
1102
|
ref: m,
|
|
1103
1103
|
disabled: h,
|
|
1104
|
-
...
|
|
1104
|
+
...d,
|
|
1105
1105
|
children: [
|
|
1106
1106
|
l && /* @__PURE__ */ e.jsxs(
|
|
1107
1107
|
"svg",
|
|
@@ -1134,15 +1134,15 @@ const he = {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
),
|
|
1136
1136
|
!l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
|
|
1137
|
-
|
|
1138
|
-
!l &&
|
|
1137
|
+
o,
|
|
1138
|
+
!l && c && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: c })
|
|
1139
1139
|
]
|
|
1140
1140
|
}
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
);
|
|
1144
|
-
|
|
1145
|
-
const
|
|
1144
|
+
_.displayName = "Button";
|
|
1145
|
+
const ge = {
|
|
1146
1146
|
provider: {
|
|
1147
1147
|
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
1148
1148
|
},
|
|
@@ -1151,74 +1151,74 @@ const fe = {
|
|
|
1151
1151
|
right: "flex-row-reverse",
|
|
1152
1152
|
only: "justify-center"
|
|
1153
1153
|
}
|
|
1154
|
-
},
|
|
1154
|
+
}, tr = (...r) => r.filter(Boolean).join(" "), nr = I.forwardRef(
|
|
1155
1155
|
({
|
|
1156
1156
|
className: r,
|
|
1157
1157
|
provider: s,
|
|
1158
|
-
iconPosition:
|
|
1159
|
-
icon:
|
|
1158
|
+
iconPosition: a = "left",
|
|
1159
|
+
icon: t,
|
|
1160
1160
|
showText: l = !0,
|
|
1161
1161
|
children: n,
|
|
1162
|
-
size:
|
|
1163
|
-
fullWidth:
|
|
1164
|
-
...
|
|
1165
|
-
},
|
|
1166
|
-
const h =
|
|
1162
|
+
size: c = "default",
|
|
1163
|
+
fullWidth: o = !0,
|
|
1164
|
+
...u
|
|
1165
|
+
}, d) => {
|
|
1166
|
+
const h = t || {
|
|
1167
1167
|
linkedin: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e.jsx("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) })
|
|
1168
|
-
}[s],
|
|
1168
|
+
}[s], f = n || (l ? {
|
|
1169
1169
|
linkedin: "Continue with LinkedIn"
|
|
1170
|
-
}[s] : ""),
|
|
1170
|
+
}[s] : ""), b = tr(
|
|
1171
1171
|
"relative overflow-hidden transition-all duration-200",
|
|
1172
|
-
|
|
1173
|
-
|
|
1172
|
+
ge.provider[s],
|
|
1173
|
+
ge.iconPosition[a],
|
|
1174
1174
|
r
|
|
1175
1175
|
);
|
|
1176
1176
|
return /* @__PURE__ */ e.jsxs(
|
|
1177
|
-
|
|
1177
|
+
_,
|
|
1178
1178
|
{
|
|
1179
|
-
ref:
|
|
1179
|
+
ref: d,
|
|
1180
1180
|
variant: "none",
|
|
1181
|
-
className:
|
|
1182
|
-
size:
|
|
1183
|
-
fullWidth:
|
|
1184
|
-
leftIcon:
|
|
1185
|
-
rightIcon:
|
|
1186
|
-
...
|
|
1181
|
+
className: b,
|
|
1182
|
+
size: c,
|
|
1183
|
+
fullWidth: o,
|
|
1184
|
+
leftIcon: a === "left" ? h : void 0,
|
|
1185
|
+
rightIcon: a === "right" ? h : void 0,
|
|
1186
|
+
...u,
|
|
1187
1187
|
children: [
|
|
1188
|
-
|
|
1189
|
-
|
|
1188
|
+
a === "only" && h,
|
|
1189
|
+
a !== "only" && f
|
|
1190
1190
|
]
|
|
1191
1191
|
}
|
|
1192
1192
|
);
|
|
1193
1193
|
}
|
|
1194
1194
|
);
|
|
1195
|
-
|
|
1196
|
-
function
|
|
1195
|
+
nr.displayName = "SocialButton";
|
|
1196
|
+
function q({
|
|
1197
1197
|
variant: r,
|
|
1198
1198
|
title: s,
|
|
1199
|
-
message:
|
|
1200
|
-
icon:
|
|
1199
|
+
message: a,
|
|
1200
|
+
icon: t,
|
|
1201
1201
|
onClose: l,
|
|
1202
1202
|
className: n = ""
|
|
1203
1203
|
}) {
|
|
1204
|
-
const
|
|
1204
|
+
const o = {
|
|
1205
1205
|
success: {
|
|
1206
1206
|
bg: "bg-success-50",
|
|
1207
1207
|
border: "border-success-200",
|
|
1208
1208
|
text: "text-success-700",
|
|
1209
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1209
|
+
icon: /* @__PURE__ */ e.jsx(ye, { className: "h-5 w-5" })
|
|
1210
1210
|
},
|
|
1211
1211
|
error: {
|
|
1212
1212
|
bg: "bg-error-50",
|
|
1213
1213
|
border: "border-error-200",
|
|
1214
1214
|
text: "text-error-700",
|
|
1215
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1215
|
+
icon: /* @__PURE__ */ e.jsx(je, { className: "h-5 w-5" })
|
|
1216
1216
|
},
|
|
1217
1217
|
warning: {
|
|
1218
1218
|
bg: "bg-warning-50",
|
|
1219
1219
|
border: "border-warning-200",
|
|
1220
1220
|
text: "text-warning-700",
|
|
1221
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1221
|
+
icon: /* @__PURE__ */ e.jsx(pe, { className: "h-5 w-5" })
|
|
1222
1222
|
},
|
|
1223
1223
|
info: {
|
|
1224
1224
|
bg: "bg-info-50",
|
|
@@ -1230,19 +1230,19 @@ function Z({
|
|
|
1230
1230
|
return /* @__PURE__ */ e.jsx(
|
|
1231
1231
|
"div",
|
|
1232
1232
|
{
|
|
1233
|
-
className: `${
|
|
1233
|
+
className: `${o.bg} border ${o.border} rounded-md p-3 ${n}`,
|
|
1234
1234
|
role: "alert",
|
|
1235
1235
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1236
|
-
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${
|
|
1236
|
+
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${o.text}`, children: t || o.icon }),
|
|
1237
1237
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1238
|
-
s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${
|
|
1239
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${
|
|
1238
|
+
s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${o.text}`, children: s }),
|
|
1239
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${o.text}`, children: a })
|
|
1240
1240
|
] }),
|
|
1241
1241
|
l && /* @__PURE__ */ e.jsx(
|
|
1242
1242
|
"button",
|
|
1243
1243
|
{
|
|
1244
1244
|
onClick: l,
|
|
1245
|
-
className: `flex-shrink-0 ${
|
|
1245
|
+
className: `flex-shrink-0 ${o.text} hover:opacity-70`,
|
|
1246
1246
|
"aria-label": "Close alert",
|
|
1247
1247
|
children: "✕"
|
|
1248
1248
|
}
|
|
@@ -1251,47 +1251,47 @@ function Z({
|
|
|
1251
1251
|
}
|
|
1252
1252
|
);
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function zr({
|
|
1255
1255
|
onFileChange: r,
|
|
1256
1256
|
onAnalyze: s,
|
|
1257
|
-
uploadedFile:
|
|
1258
|
-
fileError:
|
|
1257
|
+
uploadedFile: a,
|
|
1258
|
+
fileError: t,
|
|
1259
1259
|
onCancelUpload: l,
|
|
1260
1260
|
isAnalyzing: n = !1,
|
|
1261
|
-
analyzeError:
|
|
1262
|
-
analyzeSuccess:
|
|
1263
|
-
accept:
|
|
1264
|
-
label:
|
|
1261
|
+
analyzeError: c,
|
|
1262
|
+
analyzeSuccess: o,
|
|
1263
|
+
accept: u = ".pdf,.docx",
|
|
1264
|
+
label: d = "Upload File",
|
|
1265
1265
|
description: m = "PDF, DOCX up to 5MB",
|
|
1266
1266
|
analyzeButtonLabel: h = "Analyze",
|
|
1267
1267
|
disabled: x = !1,
|
|
1268
|
-
showAnalyzeButton:
|
|
1268
|
+
showAnalyzeButton: f = !0
|
|
1269
1269
|
}) {
|
|
1270
|
-
const
|
|
1270
|
+
const b = G(null), [C, T] = V(!1);
|
|
1271
1271
|
U(() => {
|
|
1272
|
-
!
|
|
1273
|
-
}, [
|
|
1274
|
-
const E = (
|
|
1275
|
-
|
|
1276
|
-
}, A = (
|
|
1277
|
-
if (
|
|
1278
|
-
const
|
|
1272
|
+
!a && b.current && (b.current.value = "");
|
|
1273
|
+
}, [a]);
|
|
1274
|
+
const E = (N) => {
|
|
1275
|
+
N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ? T(!0) : N.type === "dragleave" && T(!1);
|
|
1276
|
+
}, A = (N) => {
|
|
1277
|
+
if (N.preventDefault(), N.stopPropagation(), T(!1), N.dataTransfer.files && N.dataTransfer.files[0]) {
|
|
1278
|
+
const O = {
|
|
1279
1279
|
target: {
|
|
1280
|
-
files:
|
|
1280
|
+
files: N.dataTransfer.files
|
|
1281
1281
|
}
|
|
1282
1282
|
};
|
|
1283
|
-
r(
|
|
1283
|
+
r(O);
|
|
1284
1284
|
}
|
|
1285
1285
|
};
|
|
1286
1286
|
return /* @__PURE__ */ e.jsxs("div", { className: "mt-6 pt-6 border-t border-border", children: [
|
|
1287
|
-
/* @__PURE__ */ e.jsx("h3", { className: "text-sm font-medium text-text-primary mb-3", children:
|
|
1287
|
+
/* @__PURE__ */ e.jsx("h3", { className: "text-sm font-medium text-text-primary mb-3", children: d }),
|
|
1288
1288
|
/* @__PURE__ */ e.jsxs("label", { className: "block", children: [
|
|
1289
1289
|
/* @__PURE__ */ e.jsx(
|
|
1290
1290
|
"input",
|
|
1291
1291
|
{
|
|
1292
|
-
ref:
|
|
1292
|
+
ref: b,
|
|
1293
1293
|
type: "file",
|
|
1294
|
-
accept:
|
|
1294
|
+
accept: u,
|
|
1295
1295
|
onChange: r,
|
|
1296
1296
|
className: "hidden",
|
|
1297
1297
|
id: "file-upload",
|
|
@@ -1306,7 +1306,7 @@ function Mr({
|
|
|
1306
1306
|
onDragOver: E,
|
|
1307
1307
|
onDrop: A,
|
|
1308
1308
|
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${C ? "border-reseda-green-700 bg-reseda-green-50" : "border-border hover:border-reseda-green-700"} ${x ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1309
|
-
children:
|
|
1309
|
+
children: a && !t ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1310
1310
|
/* @__PURE__ */ e.jsx(
|
|
1311
1311
|
"svg",
|
|
1312
1312
|
{
|
|
@@ -1323,19 +1323,19 @@ function Mr({
|
|
|
1323
1323
|
)
|
|
1324
1324
|
}
|
|
1325
1325
|
),
|
|
1326
|
-
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1327
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-2 break-words", children:
|
|
1326
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(q, { variant: "success", message: "File uploaded successfully" }) }),
|
|
1327
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-2 break-words", children: a.name }),
|
|
1328
1328
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted mt-1", children: [
|
|
1329
|
-
(
|
|
1329
|
+
(a.size / (1024 * 1024)).toFixed(2),
|
|
1330
1330
|
"MB"
|
|
1331
1331
|
] }),
|
|
1332
1332
|
/* @__PURE__ */ e.jsx(
|
|
1333
|
-
|
|
1333
|
+
_,
|
|
1334
1334
|
{
|
|
1335
1335
|
variant: "link",
|
|
1336
1336
|
type: "button",
|
|
1337
|
-
onClick: (
|
|
1338
|
-
|
|
1337
|
+
onClick: (N) => {
|
|
1338
|
+
N.preventDefault(), l?.();
|
|
1339
1339
|
},
|
|
1340
1340
|
className: "mt-3 text-error-600 hover:text-error-700 h-auto p-0",
|
|
1341
1341
|
children: "✕ Cancel"
|
|
@@ -1370,15 +1370,15 @@ function Mr({
|
|
|
1370
1370
|
}
|
|
1371
1371
|
)
|
|
1372
1372
|
] }),
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1373
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(q, { variant: "error", message: t }) }),
|
|
1374
|
+
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(q, { variant: "error", message: c }) }),
|
|
1375
|
+
o && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(q, { variant: "success", message: o }) }),
|
|
1376
|
+
f && /* @__PURE__ */ e.jsx(
|
|
1377
|
+
_,
|
|
1378
1378
|
{
|
|
1379
1379
|
variant: "default",
|
|
1380
1380
|
onClick: s,
|
|
1381
|
-
disabled: !
|
|
1381
|
+
disabled: !a || n || x,
|
|
1382
1382
|
loading: n,
|
|
1383
1383
|
fullWidth: !0,
|
|
1384
1384
|
className: "mt-3",
|
|
@@ -1387,33 +1387,33 @@ function Mr({
|
|
|
1387
1387
|
)
|
|
1388
1388
|
] });
|
|
1389
1389
|
}
|
|
1390
|
-
const
|
|
1390
|
+
const lr = I.forwardRef(
|
|
1391
1391
|
({
|
|
1392
1392
|
className: r = "",
|
|
1393
1393
|
error: s = !1,
|
|
1394
|
-
fullWidth:
|
|
1395
|
-
autoResize:
|
|
1394
|
+
fullWidth: a = !0,
|
|
1395
|
+
autoResize: t = !1,
|
|
1396
1396
|
maxLength: l,
|
|
1397
1397
|
showCharCount: n = !1,
|
|
1398
|
-
disabled:
|
|
1399
|
-
value:
|
|
1400
|
-
onChange:
|
|
1401
|
-
...
|
|
1398
|
+
disabled: c,
|
|
1399
|
+
value: o,
|
|
1400
|
+
onChange: u,
|
|
1401
|
+
...d
|
|
1402
1402
|
}, m) => {
|
|
1403
|
-
const C = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${s ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${
|
|
1404
|
-
|
|
1405
|
-
}, E = typeof
|
|
1403
|
+
const C = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${s ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${c ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${a ? "w-full" : ""} ${r}`, T = (A) => {
|
|
1404
|
+
t && (A.target.style.height = "auto", A.target.style.height = `${A.target.scrollHeight}px`), u?.(A);
|
|
1405
|
+
}, E = typeof o == "string" ? o.length : 0;
|
|
1406
1406
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
1407
1407
|
/* @__PURE__ */ e.jsx(
|
|
1408
1408
|
"textarea",
|
|
1409
1409
|
{
|
|
1410
1410
|
ref: m,
|
|
1411
1411
|
className: C,
|
|
1412
|
-
disabled:
|
|
1413
|
-
value:
|
|
1412
|
+
disabled: c,
|
|
1413
|
+
value: o,
|
|
1414
1414
|
onChange: T,
|
|
1415
1415
|
maxLength: l,
|
|
1416
|
-
...
|
|
1416
|
+
...d
|
|
1417
1417
|
}
|
|
1418
1418
|
),
|
|
1419
1419
|
n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
@@ -1424,37 +1424,37 @@ const nr = P.forwardRef(
|
|
|
1424
1424
|
] });
|
|
1425
1425
|
}
|
|
1426
1426
|
);
|
|
1427
|
-
|
|
1428
|
-
function
|
|
1427
|
+
lr.displayName = "Textarea";
|
|
1428
|
+
function Lr({
|
|
1429
1429
|
options: r,
|
|
1430
1430
|
selectedValues: s,
|
|
1431
|
-
onSelectionChange:
|
|
1432
|
-
layout:
|
|
1431
|
+
onSelectionChange: a,
|
|
1432
|
+
layout: t = "vertical",
|
|
1433
1433
|
columns: l = 2,
|
|
1434
1434
|
disabled: n = !1,
|
|
1435
|
-
error:
|
|
1435
|
+
error: c = !1
|
|
1436
1436
|
}) {
|
|
1437
|
-
const
|
|
1438
|
-
const x = s.includes(h) ? s.filter((
|
|
1439
|
-
|
|
1440
|
-
},
|
|
1437
|
+
const o = (h) => {
|
|
1438
|
+
const x = s.includes(h) ? s.filter((f) => f !== h) : [...s, h];
|
|
1439
|
+
a(x);
|
|
1440
|
+
}, u = {
|
|
1441
1441
|
vertical: "space-y-3",
|
|
1442
1442
|
horizontal: "flex flex-wrap gap-3",
|
|
1443
1443
|
grid: `grid grid-cols-${l} gap-3`
|
|
1444
|
-
},
|
|
1445
|
-
return /* @__PURE__ */ e.jsx("div", { className: `${
|
|
1446
|
-
const x = s.includes(h.value),
|
|
1444
|
+
}, d = t === "grid" ? "grid gap-3" : u[t], m = t === "grid" ? `md:grid-cols-${l}` : "";
|
|
1445
|
+
return /* @__PURE__ */ e.jsx("div", { className: `${d} ${m}`, children: r.map((h) => {
|
|
1446
|
+
const x = s.includes(h.value), b = x ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1447
1447
|
return /* @__PURE__ */ e.jsxs(
|
|
1448
1448
|
"label",
|
|
1449
1449
|
{
|
|
1450
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1450
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${b} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1451
1451
|
children: [
|
|
1452
1452
|
/* @__PURE__ */ e.jsx(
|
|
1453
1453
|
"input",
|
|
1454
1454
|
{
|
|
1455
1455
|
type: "checkbox",
|
|
1456
1456
|
checked: x,
|
|
1457
|
-
onChange: () =>
|
|
1457
|
+
onChange: () => o(h.value),
|
|
1458
1458
|
disabled: n,
|
|
1459
1459
|
className: "sr-only"
|
|
1460
1460
|
}
|
|
@@ -1471,36 +1471,36 @@ function Dr({
|
|
|
1471
1471
|
);
|
|
1472
1472
|
}) });
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Fr({
|
|
1475
1475
|
options: r,
|
|
1476
1476
|
selectedValue: s,
|
|
1477
|
-
onSelectionChange:
|
|
1478
|
-
layout:
|
|
1477
|
+
onSelectionChange: a,
|
|
1478
|
+
layout: t = "vertical",
|
|
1479
1479
|
columns: l = 2,
|
|
1480
1480
|
disabled: n = !1,
|
|
1481
|
-
error:
|
|
1482
|
-
name:
|
|
1481
|
+
error: c = !1,
|
|
1482
|
+
name: o = "radio-group"
|
|
1483
1483
|
}) {
|
|
1484
|
-
const
|
|
1484
|
+
const d = t === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
|
|
1485
1485
|
vertical: "space-y-3",
|
|
1486
1486
|
horizontal: "flex flex-wrap gap-3",
|
|
1487
1487
|
grid: "grid gap-3"
|
|
1488
|
-
}[
|
|
1489
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
1490
|
-
const h = s === m.value,
|
|
1488
|
+
}[t];
|
|
1489
|
+
return /* @__PURE__ */ e.jsx("div", { className: d, children: r.map((m) => {
|
|
1490
|
+
const h = s === m.value, f = h ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1491
1491
|
return /* @__PURE__ */ e.jsxs(
|
|
1492
1492
|
"label",
|
|
1493
1493
|
{
|
|
1494
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1494
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${f} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1495
1495
|
children: [
|
|
1496
1496
|
/* @__PURE__ */ e.jsx(
|
|
1497
1497
|
"input",
|
|
1498
1498
|
{
|
|
1499
1499
|
type: "radio",
|
|
1500
|
-
name:
|
|
1500
|
+
name: o,
|
|
1501
1501
|
value: m.value,
|
|
1502
1502
|
checked: h,
|
|
1503
|
-
onChange: () =>
|
|
1503
|
+
onChange: () => a(m.value),
|
|
1504
1504
|
disabled: n,
|
|
1505
1505
|
className: "sr-only"
|
|
1506
1506
|
}
|
|
@@ -1517,8 +1517,8 @@ function Or({
|
|
|
1517
1517
|
);
|
|
1518
1518
|
}) });
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1521
|
-
const
|
|
1520
|
+
function Ur({ stats: r, columns: s = 4, className: a = "" }) {
|
|
1521
|
+
const t = {
|
|
1522
1522
|
2: "grid-cols-2",
|
|
1523
1523
|
3: "grid-cols-3",
|
|
1524
1524
|
4: "grid-cols-4"
|
|
@@ -1528,28 +1528,28 @@ function Pr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
|
1528
1528
|
warning: { bg: "bg-peach-yellow-50", text: "text-warning-600", value: "text-warning-900" },
|
|
1529
1529
|
"earth-yellow": { bg: "bg-sunglow-50", text: "text-earth-yellow-700", value: "text-earth-yellow-100" }
|
|
1530
1530
|
};
|
|
1531
|
-
return /* @__PURE__ */ e.jsx("div", { className: `grid ${
|
|
1532
|
-
const
|
|
1533
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
1531
|
+
return /* @__PURE__ */ e.jsx("div", { className: `grid ${t} gap-4 mb-6 bg-surface p-6 rounded-lg ${a}`, children: r.map((n, c) => {
|
|
1532
|
+
const o = l[n.color || "moss-green"];
|
|
1533
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${o.bg} rounded-lg p-4`, children: [
|
|
1534
1534
|
n.icon && /* @__PURE__ */ e.jsx("div", { className: "mb-2", children: n.icon }),
|
|
1535
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${
|
|
1536
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${
|
|
1537
|
-
] },
|
|
1535
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${o.text} font-medium`, children: n.label }),
|
|
1536
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${o.value} mt-1`, children: n.value })
|
|
1537
|
+
] }, c);
|
|
1538
1538
|
}) });
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function Yr({
|
|
1541
1541
|
items: r,
|
|
1542
1542
|
allowMultiple: s = !1,
|
|
1543
|
-
defaultOpenId:
|
|
1544
|
-
onOpenChange:
|
|
1543
|
+
defaultOpenId: a,
|
|
1544
|
+
onOpenChange: t,
|
|
1545
1545
|
className: l = ""
|
|
1546
1546
|
}) {
|
|
1547
|
-
const [n,
|
|
1548
|
-
let
|
|
1549
|
-
s ?
|
|
1547
|
+
const [n, c] = V(() => a ? Array.isArray(a) ? a : [a] : []), o = (u) => {
|
|
1548
|
+
let d;
|
|
1549
|
+
s ? d = n.includes(u) ? n.filter((m) => m !== u) : [...n, u] : d = n.includes(u) ? [] : [u], c(d), t?.(d);
|
|
1550
1550
|
};
|
|
1551
|
-
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((
|
|
1552
|
-
const
|
|
1551
|
+
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
|
|
1552
|
+
const d = n.includes(u.id);
|
|
1553
1553
|
return /* @__PURE__ */ e.jsxs(
|
|
1554
1554
|
"div",
|
|
1555
1555
|
{
|
|
@@ -1558,47 +1558,47 @@ function Ir({
|
|
|
1558
1558
|
/* @__PURE__ */ e.jsxs(
|
|
1559
1559
|
"button",
|
|
1560
1560
|
{
|
|
1561
|
-
onClick: () =>
|
|
1561
|
+
onClick: () => o(u.id),
|
|
1562
1562
|
className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
|
|
1563
1563
|
children: [
|
|
1564
1564
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
|
|
1565
|
-
|
|
1566
|
-
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children:
|
|
1565
|
+
u.icon && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0 text-text-secondary", children: u.icon }),
|
|
1566
|
+
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
|
|
1567
1567
|
] }),
|
|
1568
1568
|
/* @__PURE__ */ e.jsx(
|
|
1569
|
-
|
|
1569
|
+
ae,
|
|
1570
1570
|
{
|
|
1571
|
-
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${
|
|
1571
|
+
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${d ? "rotate-180" : ""}`
|
|
1572
1572
|
}
|
|
1573
1573
|
)
|
|
1574
1574
|
]
|
|
1575
1575
|
}
|
|
1576
1576
|
),
|
|
1577
|
-
|
|
1577
|
+
d && /* @__PURE__ */ e.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
|
|
1578
1578
|
]
|
|
1579
1579
|
},
|
|
1580
|
-
|
|
1580
|
+
u.id
|
|
1581
1581
|
);
|
|
1582
1582
|
}) });
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Hr({
|
|
1585
1585
|
icon: r,
|
|
1586
1586
|
title: s,
|
|
1587
|
-
subtitle:
|
|
1588
|
-
metadata:
|
|
1587
|
+
subtitle: a,
|
|
1588
|
+
metadata: t,
|
|
1589
1589
|
isSelected: l = !1,
|
|
1590
1590
|
isActive: n = !1,
|
|
1591
|
-
variant:
|
|
1592
|
-
actions:
|
|
1593
|
-
onClick:
|
|
1594
|
-
className:
|
|
1591
|
+
variant: c = "default",
|
|
1592
|
+
actions: o,
|
|
1593
|
+
onClick: u,
|
|
1594
|
+
className: d = ""
|
|
1595
1595
|
}) {
|
|
1596
|
-
const m = (
|
|
1597
|
-
const C =
|
|
1598
|
-
C.tagName === "BUTTON" || C.closest("button") ||
|
|
1596
|
+
const m = (b) => {
|
|
1597
|
+
const C = b.target;
|
|
1598
|
+
C.tagName === "BUTTON" || C.closest("button") || u?.(b);
|
|
1599
1599
|
}, x = (() => {
|
|
1600
1600
|
if (n)
|
|
1601
|
-
switch (
|
|
1601
|
+
switch (c) {
|
|
1602
1602
|
case "success":
|
|
1603
1603
|
return "border-2 border-reseda-green-700 bg-success-50";
|
|
1604
1604
|
case "warning":
|
|
@@ -1609,33 +1609,33 @@ function zr({
|
|
|
1609
1609
|
return "border-2 border-reseda-green-700 bg-success-50";
|
|
1610
1610
|
}
|
|
1611
1611
|
return "border border-border hover:border-border-subtle hover:bg-surface-variant";
|
|
1612
|
-
})(),
|
|
1612
|
+
})(), f = l ? "ring-2 ring-reseda-green-700" : "";
|
|
1613
1613
|
return /* @__PURE__ */ e.jsx(
|
|
1614
1614
|
"div",
|
|
1615
1615
|
{
|
|
1616
1616
|
onClick: m,
|
|
1617
|
-
className: `rounded-lg p-4 cursor-pointer transition ${x} ${
|
|
1617
|
+
className: `rounded-lg p-4 cursor-pointer transition ${x} ${f} ${d}`,
|
|
1618
1618
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between", children: [
|
|
1619
1619
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex items-start gap-3", children: [
|
|
1620
1620
|
r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
|
|
1621
1621
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1622
1622
|
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: s }),
|
|
1623
|
-
|
|
1624
|
-
|
|
1623
|
+
a && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: a }),
|
|
1624
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: t })
|
|
1625
1625
|
] })
|
|
1626
1626
|
] }),
|
|
1627
|
-
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children:
|
|
1628
|
-
|
|
1627
|
+
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: o.map((b, C) => /* @__PURE__ */ e.jsx(
|
|
1628
|
+
_,
|
|
1629
1629
|
{
|
|
1630
|
-
variant:
|
|
1631
|
-
size:
|
|
1632
|
-
onClick:
|
|
1633
|
-
disabled:
|
|
1634
|
-
loading:
|
|
1635
|
-
title:
|
|
1636
|
-
className:
|
|
1637
|
-
leftIcon:
|
|
1638
|
-
children:
|
|
1630
|
+
variant: b.variant || "ghost",
|
|
1631
|
+
size: b.size || "sm",
|
|
1632
|
+
onClick: b.onClick,
|
|
1633
|
+
disabled: b.disabled,
|
|
1634
|
+
loading: b.loading,
|
|
1635
|
+
title: b.label,
|
|
1636
|
+
className: b.className,
|
|
1637
|
+
leftIcon: b.icon && b.size !== "icon" ? b.icon : void 0,
|
|
1638
|
+
children: b.size === "icon" ? b.icon : b.label
|
|
1639
1639
|
},
|
|
1640
1640
|
C
|
|
1641
1641
|
)) })
|
|
@@ -1643,38 +1643,38 @@ function zr({
|
|
|
1643
1643
|
}
|
|
1644
1644
|
);
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function Wr({
|
|
1647
1647
|
children: r,
|
|
1648
1648
|
variant: s = "default",
|
|
1649
|
-
isActive:
|
|
1650
|
-
onClick:
|
|
1649
|
+
isActive: a = !1,
|
|
1650
|
+
onClick: t,
|
|
1651
1651
|
className: l = ""
|
|
1652
1652
|
}) {
|
|
1653
|
-
const n = "rounded-lg transition-all",
|
|
1653
|
+
const n = "rounded-lg transition-all", c = {
|
|
1654
1654
|
default: "border border-border p-4",
|
|
1655
1655
|
surface: "bg-surface-variant p-4",
|
|
1656
1656
|
elevated: "bg-surface shadow-md p-6",
|
|
1657
|
-
interactive: `border-2 p-4 cursor-pointer ${
|
|
1657
|
+
interactive: `border-2 p-4 cursor-pointer ${a ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
|
|
1658
1658
|
};
|
|
1659
1659
|
return /* @__PURE__ */ e.jsx(
|
|
1660
1660
|
"div",
|
|
1661
1661
|
{
|
|
1662
|
-
className: `${n} ${
|
|
1663
|
-
onClick:
|
|
1664
|
-
role:
|
|
1665
|
-
tabIndex:
|
|
1666
|
-
onKeyDown:
|
|
1667
|
-
(
|
|
1662
|
+
className: `${n} ${c[s]} ${l}`,
|
|
1663
|
+
onClick: t,
|
|
1664
|
+
role: t ? "button" : void 0,
|
|
1665
|
+
tabIndex: t ? 0 : void 0,
|
|
1666
|
+
onKeyDown: t ? (o) => {
|
|
1667
|
+
(o.key === "Enter" || o.key === " ") && t();
|
|
1668
1668
|
} : void 0,
|
|
1669
1669
|
children: r
|
|
1670
1670
|
}
|
|
1671
1671
|
);
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function Zr({
|
|
1674
1674
|
title: r,
|
|
1675
1675
|
children: s,
|
|
1676
|
-
subtitle:
|
|
1677
|
-
spacing:
|
|
1676
|
+
subtitle: a,
|
|
1677
|
+
spacing: t = "normal",
|
|
1678
1678
|
className: l = ""
|
|
1679
1679
|
}) {
|
|
1680
1680
|
const n = {
|
|
@@ -1682,65 +1682,65 @@ function Fr({
|
|
|
1682
1682
|
normal: "space-y-6",
|
|
1683
1683
|
spacious: "space-y-8"
|
|
1684
1684
|
};
|
|
1685
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${n[
|
|
1685
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${n[t]} ${l}`, children: [
|
|
1686
1686
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1687
1687
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: r }),
|
|
1688
|
-
|
|
1688
|
+
a && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: a })
|
|
1689
1689
|
] }),
|
|
1690
1690
|
s
|
|
1691
1691
|
] });
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function qr({
|
|
1694
1694
|
title: r,
|
|
1695
1695
|
subtitle: s,
|
|
1696
|
-
metadata:
|
|
1697
|
-
sections:
|
|
1696
|
+
metadata: a,
|
|
1697
|
+
sections: t,
|
|
1698
1698
|
className: l = ""
|
|
1699
1699
|
}) {
|
|
1700
1700
|
return /* @__PURE__ */ e.jsxs("div", { className: `space-y-6 ${l}`, children: [
|
|
1701
1701
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1702
1702
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between mb-1", children: [
|
|
1703
1703
|
/* @__PURE__ */ e.jsx("h2", { className: "text-xl font-semibold text-text-primary", children: r }),
|
|
1704
|
-
|
|
1704
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: a })
|
|
1705
1705
|
] }),
|
|
1706
1706
|
s && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary", children: s })
|
|
1707
1707
|
] }),
|
|
1708
|
-
|
|
1708
|
+
t.map((n, c) => /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1709
1709
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary mb-3", children: n.heading }),
|
|
1710
1710
|
n.content
|
|
1711
|
-
] },
|
|
1711
|
+
] }, c))
|
|
1712
1712
|
] });
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function Gr({
|
|
1715
1715
|
title: r,
|
|
1716
1716
|
description: s,
|
|
1717
|
-
centered:
|
|
1718
|
-
titleSize:
|
|
1717
|
+
centered: a = !1,
|
|
1718
|
+
titleSize: t = "md"
|
|
1719
1719
|
}) {
|
|
1720
1720
|
const l = {
|
|
1721
1721
|
sm: "text-2xl",
|
|
1722
1722
|
md: "text-3xl",
|
|
1723
1723
|
lg: "text-4xl"
|
|
1724
|
-
}, n =
|
|
1724
|
+
}, n = a ? "text-center" : "", c = a ? "max-w-2xl mx-auto" : "";
|
|
1725
1725
|
return /* @__PURE__ */ e.jsxs("div", { className: `mb-8 ${n}`, children: [
|
|
1726
|
-
/* @__PURE__ */ e.jsx("h1", { className: `${l[
|
|
1727
|
-
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${
|
|
1726
|
+
/* @__PURE__ */ e.jsx("h1", { className: `${l[t]} font-bold text-text-primary`, children: r }),
|
|
1727
|
+
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${c}`, children: s })
|
|
1728
1728
|
] });
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function Jr({
|
|
1731
1731
|
icon: r,
|
|
1732
1732
|
title: s,
|
|
1733
|
-
description:
|
|
1734
|
-
isSelected:
|
|
1733
|
+
description: a,
|
|
1734
|
+
isSelected: t = !1,
|
|
1735
1735
|
onClick: l,
|
|
1736
1736
|
disabled: n = !1,
|
|
1737
|
-
className:
|
|
1737
|
+
className: c = ""
|
|
1738
1738
|
}) {
|
|
1739
|
-
const
|
|
1739
|
+
const o = "p-4 border rounded-lg transition-all text-center cursor-pointer", u = t ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : "border-border hover:border-border-subtle hover:bg-surface-variant", d = n ? "opacity-50 cursor-not-allowed" : "";
|
|
1740
1740
|
return /* @__PURE__ */ e.jsxs(
|
|
1741
1741
|
"div",
|
|
1742
1742
|
{
|
|
1743
|
-
className: `${
|
|
1743
|
+
className: `${o} ${u} ${d} ${c}`,
|
|
1744
1744
|
onClick: () => !n && l?.(),
|
|
1745
1745
|
role: "button",
|
|
1746
1746
|
tabIndex: n ? -1 : 0,
|
|
@@ -1750,49 +1750,49 @@ function Hr({
|
|
|
1750
1750
|
children: [
|
|
1751
1751
|
r && /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-text-secondary", children: r }) }),
|
|
1752
1752
|
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary mb-1", children: s }),
|
|
1753
|
-
|
|
1754
|
-
|
|
1753
|
+
a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-secondary", children: a }),
|
|
1754
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "mt-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500", children: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", clipRule: "evenodd" }) }) }) })
|
|
1755
1755
|
]
|
|
1756
1756
|
}
|
|
1757
1757
|
);
|
|
1758
1758
|
}
|
|
1759
|
-
const
|
|
1759
|
+
const or = I.forwardRef(
|
|
1760
1760
|
({
|
|
1761
1761
|
value: r,
|
|
1762
1762
|
onChange: s,
|
|
1763
|
-
min:
|
|
1764
|
-
max:
|
|
1763
|
+
min: a = 0,
|
|
1764
|
+
max: t = 100,
|
|
1765
1765
|
step: l = 1,
|
|
1766
1766
|
showValue: n = !0,
|
|
1767
|
-
showLabels:
|
|
1768
|
-
minLabel:
|
|
1769
|
-
maxLabel:
|
|
1770
|
-
error:
|
|
1767
|
+
showLabels: c = !1,
|
|
1768
|
+
minLabel: o,
|
|
1769
|
+
maxLabel: u,
|
|
1770
|
+
error: d = !1,
|
|
1771
1771
|
fullWidth: m = !0,
|
|
1772
1772
|
disabled: h,
|
|
1773
1773
|
className: x = "",
|
|
1774
|
-
...
|
|
1775
|
-
},
|
|
1776
|
-
const
|
|
1774
|
+
...f
|
|
1775
|
+
}, b) => {
|
|
1776
|
+
const N = `w-full h-2 rounded-lg appearance-none cursor-pointer ${d ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${h ? "opacity-50 cursor-not-allowed" : ""} ${m ? "w-full" : ""} ${x}`, O = (r - a) / (t - a) * 100;
|
|
1777
1777
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1778
|
+
c && (o || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1779
|
+
o && /* @__PURE__ */ e.jsx("span", { children: o }),
|
|
1780
|
+
u && /* @__PURE__ */ e.jsx("span", { children: u })
|
|
1781
1781
|
] }),
|
|
1782
1782
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1783
1783
|
/* @__PURE__ */ e.jsx(
|
|
1784
1784
|
"input",
|
|
1785
1785
|
{
|
|
1786
|
-
ref:
|
|
1786
|
+
ref: b,
|
|
1787
1787
|
type: "range",
|
|
1788
|
-
min:
|
|
1789
|
-
max:
|
|
1788
|
+
min: a,
|
|
1789
|
+
max: t,
|
|
1790
1790
|
step: l,
|
|
1791
1791
|
value: r,
|
|
1792
1792
|
onChange: (z) => s(Number(z.target.value)),
|
|
1793
1793
|
disabled: h,
|
|
1794
|
-
className:
|
|
1795
|
-
...
|
|
1794
|
+
className: N,
|
|
1795
|
+
...f
|
|
1796
1796
|
}
|
|
1797
1797
|
),
|
|
1798
1798
|
n && /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: r })
|
|
@@ -1801,26 +1801,170 @@ const lr = P.forwardRef(
|
|
|
1801
1801
|
"div",
|
|
1802
1802
|
{
|
|
1803
1803
|
className: "h-full bg-reseda-green-500 transition-all",
|
|
1804
|
-
style: { width: `${
|
|
1804
|
+
style: { width: `${O}%` }
|
|
1805
1805
|
}
|
|
1806
1806
|
) })
|
|
1807
1807
|
] });
|
|
1808
1808
|
}
|
|
1809
1809
|
);
|
|
1810
|
-
|
|
1811
|
-
function
|
|
1810
|
+
or.displayName = "Slider";
|
|
1811
|
+
function cr({
|
|
1812
|
+
title: r,
|
|
1813
|
+
titleId: s,
|
|
1814
|
+
...a
|
|
1815
|
+
}, t) {
|
|
1816
|
+
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1817
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1818
|
+
viewBox: "0 0 24 24",
|
|
1819
|
+
fill: "currentColor",
|
|
1820
|
+
"aria-hidden": "true",
|
|
1821
|
+
"data-slot": "icon",
|
|
1822
|
+
ref: t,
|
|
1823
|
+
"aria-labelledby": s
|
|
1824
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1825
|
+
id: s
|
|
1826
|
+
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1827
|
+
fillRule: "evenodd",
|
|
1828
|
+
d: "M7.5 5.25a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v.205c.933.085 1.857.197 2.774.334 1.454.218 2.476 1.483 2.476 2.917v3.033c0 1.211-.734 2.352-1.936 2.752A24.726 24.726 0 0 1 12 15.75c-2.73 0-5.357-.442-7.814-1.259-1.202-.4-1.936-1.541-1.936-2.752V8.706c0-1.434 1.022-2.7 2.476-2.917A48.814 48.814 0 0 1 7.5 5.455V5.25Zm7.5 0v.09a49.488 49.488 0 0 0-6 0v-.09a1.5 1.5 0 0 1 1.5-1.5h3a1.5 1.5 0 0 1 1.5 1.5Zm-3 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
|
|
1829
|
+
clipRule: "evenodd"
|
|
1830
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
1831
|
+
d: "M3 18.4v-2.796a4.3 4.3 0 0 0 .713.31A26.226 26.226 0 0 0 12 17.25c2.892 0 5.68-.468 8.287-1.335.252-.084.49-.189.713-.311V18.4c0 1.452-1.047 2.728-2.523 2.923-2.12.282-4.282.427-6.477.427a49.19 49.19 0 0 1-6.477-.427C4.047 21.128 3 19.852 3 18.4Z"
|
|
1832
|
+
}));
|
|
1833
|
+
}
|
|
1834
|
+
const ir = /* @__PURE__ */ j.forwardRef(cr);
|
|
1835
|
+
function dr({
|
|
1836
|
+
title: r,
|
|
1837
|
+
titleId: s,
|
|
1838
|
+
...a
|
|
1839
|
+
}, t) {
|
|
1840
|
+
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1841
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1842
|
+
viewBox: "0 0 24 24",
|
|
1843
|
+
fill: "currentColor",
|
|
1844
|
+
"aria-hidden": "true",
|
|
1845
|
+
"data-slot": "icon",
|
|
1846
|
+
ref: t,
|
|
1847
|
+
"aria-labelledby": s
|
|
1848
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1849
|
+
id: s
|
|
1850
|
+
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1851
|
+
fillRule: "evenodd",
|
|
1852
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",
|
|
1853
|
+
clipRule: "evenodd"
|
|
1854
|
+
}));
|
|
1855
|
+
}
|
|
1856
|
+
const ur = /* @__PURE__ */ j.forwardRef(dr);
|
|
1857
|
+
function mr({
|
|
1858
|
+
title: r,
|
|
1859
|
+
titleId: s,
|
|
1860
|
+
...a
|
|
1861
|
+
}, t) {
|
|
1862
|
+
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1863
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1864
|
+
viewBox: "0 0 24 24",
|
|
1865
|
+
fill: "currentColor",
|
|
1866
|
+
"aria-hidden": "true",
|
|
1867
|
+
"data-slot": "icon",
|
|
1868
|
+
ref: t,
|
|
1869
|
+
"aria-labelledby": s
|
|
1870
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1871
|
+
id: s
|
|
1872
|
+
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1873
|
+
d: "M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625Z"
|
|
1874
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
1875
|
+
d: "M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"
|
|
1876
|
+
}));
|
|
1877
|
+
}
|
|
1878
|
+
const xr = /* @__PURE__ */ j.forwardRef(mr);
|
|
1879
|
+
function hr({
|
|
1880
|
+
title: r,
|
|
1881
|
+
titleId: s,
|
|
1882
|
+
...a
|
|
1883
|
+
}, t) {
|
|
1884
|
+
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1885
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1886
|
+
viewBox: "0 0 24 24",
|
|
1887
|
+
fill: "currentColor",
|
|
1888
|
+
"aria-hidden": "true",
|
|
1889
|
+
"data-slot": "icon",
|
|
1890
|
+
ref: t,
|
|
1891
|
+
"aria-labelledby": s
|
|
1892
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1893
|
+
id: s
|
|
1894
|
+
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1895
|
+
d: "M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"
|
|
1896
|
+
}));
|
|
1897
|
+
}
|
|
1898
|
+
const fr = /* @__PURE__ */ j.forwardRef(hr), gr = {
|
|
1899
|
+
neutral: {
|
|
1900
|
+
selectedContainer: "border-gray-300 bg-gray-50",
|
|
1901
|
+
selectedIndicator: "text-gray-500",
|
|
1902
|
+
inputAccent: "accent-gray-600"
|
|
1903
|
+
},
|
|
1904
|
+
purple: {
|
|
1905
|
+
selectedContainer: "border-purple-300 bg-purple-50",
|
|
1906
|
+
selectedIndicator: "text-purple-600",
|
|
1907
|
+
inputAccent: "accent-purple-600"
|
|
1908
|
+
},
|
|
1909
|
+
blue: {
|
|
1910
|
+
selectedContainer: "border-blue-300 bg-blue-50",
|
|
1911
|
+
selectedIndicator: "text-blue-600",
|
|
1912
|
+
inputAccent: "accent-blue-600"
|
|
1913
|
+
}
|
|
1914
|
+
};
|
|
1915
|
+
function Xr({
|
|
1916
|
+
id: r,
|
|
1917
|
+
name: s,
|
|
1918
|
+
checked: a,
|
|
1919
|
+
onChange: t,
|
|
1920
|
+
primaryText: l,
|
|
1921
|
+
secondaryText: n,
|
|
1922
|
+
tertiaryText: c,
|
|
1923
|
+
tone: o = "neutral",
|
|
1924
|
+
showCheckedIndicator: u = !1,
|
|
1925
|
+
disabled: d = !1,
|
|
1926
|
+
className: m = ""
|
|
1927
|
+
}) {
|
|
1928
|
+
const h = gr[o], x = a ? h.selectedContainer : "border-gray-200", f = d ? "cursor-not-allowed opacity-60" : "cursor-pointer hover:bg-gray-50";
|
|
1929
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1930
|
+
"label",
|
|
1931
|
+
{
|
|
1932
|
+
className: `flex items-start gap-2 rounded-md border p-2 transition ${x} ${f} ${m}`,
|
|
1933
|
+
children: [
|
|
1934
|
+
/* @__PURE__ */ e.jsx(
|
|
1935
|
+
"input",
|
|
1936
|
+
{
|
|
1937
|
+
type: "radio",
|
|
1938
|
+
name: s,
|
|
1939
|
+
className: `mt-0.5 ${h.inputAccent}`,
|
|
1940
|
+
checked: a,
|
|
1941
|
+
disabled: d,
|
|
1942
|
+
onChange: () => t(r)
|
|
1943
|
+
}
|
|
1944
|
+
),
|
|
1945
|
+
/* @__PURE__ */ e.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
1946
|
+
/* @__PURE__ */ e.jsx("span", { className: "block text-sm text-gray-800 break-words", children: l }),
|
|
1947
|
+
n ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-500", children: n }) : null,
|
|
1948
|
+
c ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-400", children: c }) : null
|
|
1949
|
+
] }),
|
|
1950
|
+
u && a ? /* @__PURE__ */ e.jsx(ur, { className: `h-4 w-4 mt-0.5 shrink-0 ${h.selectedIndicator}` }) : null
|
|
1951
|
+
]
|
|
1952
|
+
}
|
|
1953
|
+
);
|
|
1954
|
+
}
|
|
1955
|
+
function br({
|
|
1812
1956
|
id: r,
|
|
1813
1957
|
index: s,
|
|
1814
|
-
previewText:
|
|
1815
|
-
defaultExpanded:
|
|
1958
|
+
previewText: a,
|
|
1959
|
+
defaultExpanded: t = !1,
|
|
1816
1960
|
children: l,
|
|
1817
1961
|
tooltipContent: n,
|
|
1818
|
-
onRemove:
|
|
1819
|
-
className:
|
|
1962
|
+
onRemove: c,
|
|
1963
|
+
className: o = ""
|
|
1820
1964
|
}) {
|
|
1821
|
-
const [
|
|
1822
|
-
transform:
|
|
1823
|
-
transition:
|
|
1965
|
+
const [u, d] = V(t), { attributes: m, listeners: h, setNodeRef: x, transform: f, transition: b, isDragging: C } = Se({ id: r }), T = {
|
|
1966
|
+
transform: Be.Transform.toString(f),
|
|
1967
|
+
transition: b,
|
|
1824
1968
|
opacity: C ? 0.5 : 1
|
|
1825
1969
|
};
|
|
1826
1970
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1828,8 +1972,8 @@ function or({
|
|
|
1828
1972
|
{
|
|
1829
1973
|
ref: x,
|
|
1830
1974
|
style: T,
|
|
1831
|
-
className: `border border-border rounded-md bg-surface-variant ${
|
|
1832
|
-
children:
|
|
1975
|
+
className: `border border-border rounded-md bg-surface-variant ${o}`,
|
|
1976
|
+
children: u ? (
|
|
1833
1977
|
// ── Expanded ──────────────────────────────────────────────────────────
|
|
1834
1978
|
/* @__PURE__ */ e.jsxs("div", { className: "p-3", children: [
|
|
1835
1979
|
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
@@ -1841,14 +1985,14 @@ function or({
|
|
|
1841
1985
|
...h,
|
|
1842
1986
|
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing rounded hover:bg-surface-variant inline-flex items-center justify-center",
|
|
1843
1987
|
"aria-label": "Drag to reorder",
|
|
1844
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1988
|
+
children: /* @__PURE__ */ e.jsx(xe, { className: "w-4 h-4" })
|
|
1845
1989
|
}
|
|
1846
1990
|
),
|
|
1847
1991
|
/* @__PURE__ */ e.jsxs(
|
|
1848
1992
|
"span",
|
|
1849
1993
|
{
|
|
1850
1994
|
className: "text-sm font-medium text-text-secondary flex-1 cursor-pointer select-none",
|
|
1851
|
-
onClick: () =>
|
|
1995
|
+
onClick: () => d(!1),
|
|
1852
1996
|
children: [
|
|
1853
1997
|
"Item ",
|
|
1854
1998
|
s + 1
|
|
@@ -1856,27 +2000,27 @@ function or({
|
|
|
1856
2000
|
}
|
|
1857
2001
|
),
|
|
1858
2002
|
/* @__PURE__ */ e.jsx(
|
|
1859
|
-
|
|
2003
|
+
_,
|
|
1860
2004
|
{
|
|
1861
2005
|
type: "button",
|
|
1862
2006
|
variant: "ghost",
|
|
1863
2007
|
size: "icon",
|
|
1864
|
-
onClick: () =>
|
|
2008
|
+
onClick: () => d(!1),
|
|
1865
2009
|
className: "h-auto w-auto p-1",
|
|
1866
2010
|
"aria-label": "Collapse",
|
|
1867
|
-
leftIcon: /* @__PURE__ */ e.jsx(
|
|
2011
|
+
leftIcon: /* @__PURE__ */ e.jsx(he, { className: "w-4 h-4 transition-transform rotate-90" })
|
|
1868
2012
|
}
|
|
1869
2013
|
),
|
|
1870
2014
|
/* @__PURE__ */ e.jsx(
|
|
1871
|
-
|
|
2015
|
+
_,
|
|
1872
2016
|
{
|
|
1873
2017
|
type: "button",
|
|
1874
2018
|
variant: "ghost",
|
|
1875
2019
|
size: "icon",
|
|
1876
|
-
onClick:
|
|
2020
|
+
onClick: c,
|
|
1877
2021
|
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
|
|
1878
2022
|
"aria-label": "Remove",
|
|
1879
|
-
leftIcon: /* @__PURE__ */ e.jsx(
|
|
2023
|
+
leftIcon: /* @__PURE__ */ e.jsx(se, { className: "w-4 h-4" })
|
|
1880
2024
|
}
|
|
1881
2025
|
)
|
|
1882
2026
|
] }),
|
|
@@ -1894,39 +2038,39 @@ function or({
|
|
|
1894
2038
|
...h,
|
|
1895
2039
|
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing flex-shrink-0 rounded hover:bg-surface-variant inline-flex items-center justify-center",
|
|
1896
2040
|
"aria-label": "Drag to reorder",
|
|
1897
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2041
|
+
children: /* @__PURE__ */ e.jsx(xe, { className: "w-4 h-4" })
|
|
1898
2042
|
}
|
|
1899
2043
|
),
|
|
1900
2044
|
/* @__PURE__ */ e.jsx(
|
|
1901
2045
|
"span",
|
|
1902
2046
|
{
|
|
1903
2047
|
className: "flex-1 text-sm text-text-secondary truncate cursor-pointer select-none",
|
|
1904
|
-
onClick: () =>
|
|
1905
|
-
children:
|
|
2048
|
+
onClick: () => d(!0),
|
|
2049
|
+
children: a
|
|
1906
2050
|
}
|
|
1907
2051
|
),
|
|
1908
2052
|
/* @__PURE__ */ e.jsx(
|
|
1909
|
-
|
|
2053
|
+
_,
|
|
1910
2054
|
{
|
|
1911
2055
|
type: "button",
|
|
1912
2056
|
variant: "ghost",
|
|
1913
2057
|
size: "icon",
|
|
1914
|
-
onClick: () =>
|
|
2058
|
+
onClick: () => d(!0),
|
|
1915
2059
|
className: "h-auto w-auto p-1 flex-shrink-0",
|
|
1916
2060
|
"aria-label": "Expand",
|
|
1917
|
-
leftIcon: /* @__PURE__ */ e.jsx(
|
|
2061
|
+
leftIcon: /* @__PURE__ */ e.jsx(he, { className: "w-4 h-4 transition-transform" })
|
|
1918
2062
|
}
|
|
1919
2063
|
),
|
|
1920
2064
|
/* @__PURE__ */ e.jsx(
|
|
1921
|
-
|
|
2065
|
+
_,
|
|
1922
2066
|
{
|
|
1923
2067
|
type: "button",
|
|
1924
2068
|
variant: "ghost",
|
|
1925
2069
|
size: "icon",
|
|
1926
|
-
onClick:
|
|
2070
|
+
onClick: c,
|
|
1927
2071
|
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
|
|
1928
2072
|
"aria-label": "Remove",
|
|
1929
|
-
leftIcon: /* @__PURE__ */ e.jsx(
|
|
2073
|
+
leftIcon: /* @__PURE__ */ e.jsx(se, { className: "w-4 h-4" })
|
|
1930
2074
|
}
|
|
1931
2075
|
)
|
|
1932
2076
|
] }),
|
|
@@ -1936,8 +2080,8 @@ function or({
|
|
|
1936
2080
|
}
|
|
1937
2081
|
);
|
|
1938
2082
|
}
|
|
1939
|
-
|
|
1940
|
-
const
|
|
2083
|
+
br.displayName = "SortableItem";
|
|
2084
|
+
const vr = {
|
|
1941
2085
|
bg: "bg-indigo-600",
|
|
1942
2086
|
activeBg: "bg-indigo-700",
|
|
1943
2087
|
text: "text-indigo-200",
|
|
@@ -1948,15 +2092,15 @@ const cr = {
|
|
|
1948
2092
|
function R(...r) {
|
|
1949
2093
|
return r.filter(Boolean).join(" ");
|
|
1950
2094
|
}
|
|
1951
|
-
function
|
|
1952
|
-
const [
|
|
2095
|
+
function be({ item: r, colorScheme: s }) {
|
|
2096
|
+
const [a, t] = V(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
|
|
1953
2097
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1954
2098
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
1955
2099
|
"a",
|
|
1956
2100
|
{
|
|
1957
2101
|
href: l ? void 0 : r.href,
|
|
1958
2102
|
onClick: (n) => {
|
|
1959
|
-
l && (n.preventDefault(),
|
|
2103
|
+
l && (n.preventDefault(), t(!a));
|
|
1960
2104
|
},
|
|
1961
2105
|
className: R(
|
|
1962
2106
|
r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
@@ -1978,11 +2122,11 @@ function ge({ item: r, colorScheme: s }) {
|
|
|
1978
2122
|
r.name
|
|
1979
2123
|
] }),
|
|
1980
2124
|
l && /* @__PURE__ */ e.jsx(
|
|
1981
|
-
|
|
2125
|
+
ae,
|
|
1982
2126
|
{
|
|
1983
2127
|
className: R(
|
|
1984
2128
|
"size-5 shrink-0 transition-transform",
|
|
1985
|
-
|
|
2129
|
+
a ? "rotate-180" : "",
|
|
1986
2130
|
r.current ? s.activeText : s.text
|
|
1987
2131
|
)
|
|
1988
2132
|
}
|
|
@@ -1990,7 +2134,7 @@ function ge({ item: r, colorScheme: s }) {
|
|
|
1990
2134
|
]
|
|
1991
2135
|
}
|
|
1992
2136
|
) }),
|
|
1993
|
-
l &&
|
|
2137
|
+
l && a && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: r.children.map((n) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
|
|
1994
2138
|
"a",
|
|
1995
2139
|
{
|
|
1996
2140
|
href: n.href,
|
|
@@ -2015,10 +2159,10 @@ function ge({ item: r, colorScheme: s }) {
|
|
|
2015
2159
|
) }, n.name)) })
|
|
2016
2160
|
] });
|
|
2017
2161
|
}
|
|
2018
|
-
function
|
|
2162
|
+
function Kr({ company: r, profile: s, navigation: a, colorScheme: t = vr }) {
|
|
2019
2163
|
const [l, n] = V(!1);
|
|
2020
2164
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
2021
|
-
/* @__PURE__ */ e.jsxs(
|
|
2165
|
+
/* @__PURE__ */ e.jsxs(Me, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
2022
2166
|
/* @__PURE__ */ e.jsx(
|
|
2023
2167
|
_e,
|
|
2024
2168
|
{
|
|
@@ -2027,16 +2171,16 @@ function Wr({ company: r, profile: s, navigation: t, colorScheme: a = cr }) {
|
|
|
2027
2171
|
}
|
|
2028
2172
|
),
|
|
2029
2173
|
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
2030
|
-
|
|
2174
|
+
Oe,
|
|
2031
2175
|
{
|
|
2032
2176
|
transition: !0,
|
|
2033
2177
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
2034
2178
|
children: [
|
|
2035
2179
|
/* @__PURE__ */ e.jsx(De, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute top-0 left-full flex w-16 justify-center pt-5 duration-300 ease-in-out data-closed:opacity-0", children: /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!1), className: "-m-2.5 p-2.5", children: [
|
|
2036
2180
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
2037
|
-
/* @__PURE__ */ e.jsx(
|
|
2181
|
+
/* @__PURE__ */ e.jsx(Re, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
2038
2182
|
] }) }) }),
|
|
2039
|
-
/* @__PURE__ */ e.jsxs("div", { className: R("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2",
|
|
2183
|
+
/* @__PURE__ */ e.jsxs("div", { className: R("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", t.bg), children: [
|
|
2040
2184
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
2041
2185
|
"img",
|
|
2042
2186
|
{
|
|
@@ -2045,13 +2189,13 @@ function Wr({ company: r, profile: s, navigation: t, colorScheme: a = cr }) {
|
|
|
2045
2189
|
className: "h-8 w-auto"
|
|
2046
2190
|
}
|
|
2047
2191
|
) }),
|
|
2048
|
-
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children:
|
|
2192
|
+
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: a.map((c) => /* @__PURE__ */ e.jsx(be, { item: c, colorScheme: t }, c.name)) }) }) }) })
|
|
2049
2193
|
] })
|
|
2050
2194
|
]
|
|
2051
2195
|
}
|
|
2052
2196
|
) })
|
|
2053
2197
|
] }),
|
|
2054
|
-
/* @__PURE__ */ e.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ e.jsxs("div", { className: R("flex grow flex-col gap-y-5 overflow-y-auto px-6",
|
|
2198
|
+
/* @__PURE__ */ e.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ e.jsxs("div", { className: R("flex grow flex-col gap-y-5 overflow-y-auto px-6", t.bg), children: [
|
|
2055
2199
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
2056
2200
|
"img",
|
|
2057
2201
|
{
|
|
@@ -2061,15 +2205,15 @@ function Wr({ company: r, profile: s, navigation: t, colorScheme: a = cr }) {
|
|
|
2061
2205
|
}
|
|
2062
2206
|
) }),
|
|
2063
2207
|
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsxs("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: [
|
|
2064
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children:
|
|
2208
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: a.map((c) => /* @__PURE__ */ e.jsx(be, { item: c, colorScheme: t }, c.name)) }) }),
|
|
2065
2209
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
2066
2210
|
"a",
|
|
2067
2211
|
{
|
|
2068
2212
|
href: "#",
|
|
2069
2213
|
className: R(
|
|
2070
2214
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
2071
|
-
|
|
2072
|
-
|
|
2215
|
+
t.activeText,
|
|
2216
|
+
t.hoverBg
|
|
2073
2217
|
),
|
|
2074
2218
|
children: [
|
|
2075
2219
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2077,7 +2221,7 @@ function Wr({ company: r, profile: s, navigation: t, colorScheme: a = cr }) {
|
|
|
2077
2221
|
{
|
|
2078
2222
|
alt: s.name,
|
|
2079
2223
|
src: s.image,
|
|
2080
|
-
className: R("size-8 rounded-full",
|
|
2224
|
+
className: R("size-8 rounded-full", t.activeBg)
|
|
2081
2225
|
}
|
|
2082
2226
|
),
|
|
2083
2227
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
@@ -2087,12 +2231,12 @@ function Wr({ company: r, profile: s, navigation: t, colorScheme: a = cr }) {
|
|
|
2087
2231
|
) })
|
|
2088
2232
|
] }) })
|
|
2089
2233
|
] }) }),
|
|
2090
|
-
/* @__PURE__ */ e.jsxs("div", { className: R("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden",
|
|
2091
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: R("-m-2.5 p-2.5 lg:hidden",
|
|
2234
|
+
/* @__PURE__ */ e.jsxs("div", { className: R("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden", t.bg), children: [
|
|
2235
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: R("-m-2.5 p-2.5 lg:hidden", t.text), children: [
|
|
2092
2236
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
2093
|
-
/* @__PURE__ */ e.jsx(
|
|
2237
|
+
/* @__PURE__ */ e.jsx(Ae, { "aria-hidden": "true", className: "size-6" })
|
|
2094
2238
|
] }),
|
|
2095
|
-
/* @__PURE__ */ e.jsx("div", { className: R("flex-1 text-sm/6 font-semibold",
|
|
2239
|
+
/* @__PURE__ */ e.jsx("div", { className: R("flex-1 text-sm/6 font-semibold", t.activeText), children: "Dashboard" }),
|
|
2096
2240
|
/* @__PURE__ */ e.jsxs("a", { href: "#", children: [
|
|
2097
2241
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
2098
2242
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2100,14 +2244,14 @@ function Wr({ company: r, profile: s, navigation: t, colorScheme: a = cr }) {
|
|
|
2100
2244
|
{
|
|
2101
2245
|
alt: s.name,
|
|
2102
2246
|
src: s.image,
|
|
2103
|
-
className: R("size-8 rounded-full",
|
|
2247
|
+
className: R("size-8 rounded-full", t.activeBg)
|
|
2104
2248
|
}
|
|
2105
2249
|
)
|
|
2106
2250
|
] })
|
|
2107
2251
|
] })
|
|
2108
2252
|
] }) });
|
|
2109
2253
|
}
|
|
2110
|
-
const
|
|
2254
|
+
const pr = {
|
|
2111
2255
|
activeBg: "bg-reseda-green-700",
|
|
2112
2256
|
activeText: "text-white",
|
|
2113
2257
|
completedBg: "bg-success-500",
|
|
@@ -2118,78 +2262,78 @@ const ir = {
|
|
|
2118
2262
|
labelInactiveText: "text-text-muted",
|
|
2119
2263
|
connectorBg: "bg-border"
|
|
2120
2264
|
};
|
|
2121
|
-
function
|
|
2122
|
-
const
|
|
2265
|
+
function Qr({ currentStep: r, steps: s, colorConfig: a }) {
|
|
2266
|
+
const t = a || pr;
|
|
2123
2267
|
return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: s.map((l, n) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${n < s.length - 1 ? "flex-1" : ""}`, children: [
|
|
2124
2268
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
2125
2269
|
/* @__PURE__ */ e.jsx(
|
|
2126
2270
|
"span",
|
|
2127
2271
|
{
|
|
2128
|
-
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === l.number ? `${
|
|
2272
|
+
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === l.number ? `${t.activeBg} ${t.activeText}` : r > l.number ? `${t.completedBg} ${t.completedText}` : `border-2 ${t.incompleteBorder} ${t.incompleteText}`}`,
|
|
2129
2273
|
children: l.number
|
|
2130
2274
|
}
|
|
2131
2275
|
),
|
|
2132
2276
|
/* @__PURE__ */ e.jsx(
|
|
2133
2277
|
"span",
|
|
2134
2278
|
{
|
|
2135
|
-
className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= l.number ?
|
|
2279
|
+
className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= l.number ? t.labelActiveText : t.labelInactiveText}`,
|
|
2136
2280
|
children: l.label
|
|
2137
2281
|
}
|
|
2138
2282
|
)
|
|
2139
2283
|
] }),
|
|
2140
|
-
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${
|
|
2284
|
+
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${t.connectorBg}` })
|
|
2141
2285
|
] }, l.number)) }) });
|
|
2142
2286
|
}
|
|
2143
|
-
const
|
|
2287
|
+
const jr = {
|
|
2144
2288
|
activeText: "text-reseda-green-700",
|
|
2145
2289
|
activeBorder: "border-reseda-green-700",
|
|
2146
2290
|
inactiveText: "text-text-secondary",
|
|
2147
2291
|
inactiveHoverText: "hover:text-text-primary",
|
|
2148
2292
|
disabledText: "text-text-disabled"
|
|
2149
2293
|
};
|
|
2150
|
-
function
|
|
2151
|
-
const n = l ||
|
|
2152
|
-
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((
|
|
2153
|
-
const
|
|
2294
|
+
function es({ tabs: r, activeTab: s, disabled: a = !1, onChange: t, colorConfig: l }) {
|
|
2295
|
+
const n = l || jr;
|
|
2296
|
+
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
|
|
2297
|
+
const o = s === c.id;
|
|
2154
2298
|
return /* @__PURE__ */ e.jsx(
|
|
2155
|
-
|
|
2299
|
+
_,
|
|
2156
2300
|
{
|
|
2157
2301
|
variant: "ghost",
|
|
2158
|
-
onClick: () => !
|
|
2159
|
-
disabled:
|
|
2160
|
-
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${
|
|
2161
|
-
children:
|
|
2302
|
+
onClick: () => !a && t(c.id),
|
|
2303
|
+
disabled: a && !o,
|
|
2304
|
+
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${o ? `${n.activeBorder} ${n.activeText}` : a ? `border-transparent ${n.disabledText} cursor-not-allowed` : `border-transparent ${n.inactiveText} ${n.inactiveHoverText}`}`,
|
|
2305
|
+
children: c.label
|
|
2162
2306
|
},
|
|
2163
|
-
|
|
2307
|
+
c.id
|
|
2164
2308
|
);
|
|
2165
2309
|
}) });
|
|
2166
2310
|
}
|
|
2167
|
-
function
|
|
2311
|
+
function rs({
|
|
2168
2312
|
status: r,
|
|
2169
2313
|
title: s,
|
|
2170
|
-
message:
|
|
2171
|
-
action:
|
|
2314
|
+
message: a,
|
|
2315
|
+
action: t,
|
|
2172
2316
|
progress: l,
|
|
2173
2317
|
className: n = ""
|
|
2174
2318
|
}) {
|
|
2175
|
-
const
|
|
2319
|
+
const o = {
|
|
2176
2320
|
success: {
|
|
2177
2321
|
bg: "bg-success-50",
|
|
2178
2322
|
border: "border-success-200",
|
|
2179
2323
|
text: "text-success-700",
|
|
2180
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2324
|
+
icon: /* @__PURE__ */ e.jsx(ye, { className: "h-5 w-5" })
|
|
2181
2325
|
},
|
|
2182
2326
|
error: {
|
|
2183
2327
|
bg: "bg-error-50",
|
|
2184
2328
|
border: "border-error-200",
|
|
2185
2329
|
text: "text-error-700",
|
|
2186
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2330
|
+
icon: /* @__PURE__ */ e.jsx(je, { className: "h-5 w-5" })
|
|
2187
2331
|
},
|
|
2188
2332
|
warning: {
|
|
2189
2333
|
bg: "bg-warning-50",
|
|
2190
2334
|
border: "border-warning-200",
|
|
2191
2335
|
text: "text-warning-700",
|
|
2192
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2336
|
+
icon: /* @__PURE__ */ e.jsx(pe, { className: "h-5 w-5" })
|
|
2193
2337
|
},
|
|
2194
2338
|
info: {
|
|
2195
2339
|
bg: "bg-info-50",
|
|
@@ -2204,40 +2348,40 @@ function qr({
|
|
|
2204
2348
|
icon: null
|
|
2205
2349
|
}
|
|
2206
2350
|
}[r];
|
|
2207
|
-
return /* @__PURE__ */ e.jsx("div", { className: `${
|
|
2351
|
+
return /* @__PURE__ */ e.jsx("div", { className: `${o.bg} border ${o.border} rounded-lg p-4 ${n}`, children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
2208
2352
|
r === "loading" ? /* @__PURE__ */ e.jsxs("svg", { className: "animate-spin h-5 w-5 flex-shrink-0", viewBox: "0 0 24 24", children: [
|
|
2209
2353
|
/* @__PURE__ */ e.jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", fill: "none", stroke: "currentColor", strokeWidth: "4" }),
|
|
2210
2354
|
/* @__PURE__ */ e.jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
|
|
2211
|
-
] }) : /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${
|
|
2355
|
+
] }) : /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${o.text}`, children: o.icon }),
|
|
2212
2356
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
2213
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${
|
|
2214
|
-
|
|
2357
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${o.text}`, children: s }),
|
|
2358
|
+
a && /* @__PURE__ */ e.jsx("p", { className: `text-xs ${o.text} mt-1`, children: a }),
|
|
2215
2359
|
l !== void 0 && /* @__PURE__ */ e.jsx("div", { className: "mt-2 w-full bg-gray-200 rounded-full h-2", children: /* @__PURE__ */ e.jsx(
|
|
2216
2360
|
"div",
|
|
2217
2361
|
{
|
|
2218
|
-
className: `h-2 rounded-full transition-all ${
|
|
2362
|
+
className: `h-2 rounded-full transition-all ${o.bg}`,
|
|
2219
2363
|
style: { width: `${l}%` }
|
|
2220
2364
|
}
|
|
2221
2365
|
) })
|
|
2222
2366
|
] }),
|
|
2223
|
-
|
|
2367
|
+
t && /* @__PURE__ */ e.jsx(
|
|
2224
2368
|
"button",
|
|
2225
2369
|
{
|
|
2226
|
-
onClick:
|
|
2227
|
-
className: `text-sm font-medium ${
|
|
2228
|
-
children:
|
|
2370
|
+
onClick: t.onClick,
|
|
2371
|
+
className: `text-sm font-medium ${o.text} hover:opacity-70 flex-shrink-0`,
|
|
2372
|
+
children: t.label
|
|
2229
2373
|
}
|
|
2230
2374
|
)
|
|
2231
2375
|
] }) });
|
|
2232
2376
|
}
|
|
2233
|
-
const
|
|
2377
|
+
const Ce = ({
|
|
2234
2378
|
role: r,
|
|
2235
2379
|
content: s,
|
|
2236
|
-
timestamp:
|
|
2237
|
-
className:
|
|
2380
|
+
timestamp: a,
|
|
2381
|
+
className: t = ""
|
|
2238
2382
|
}) => {
|
|
2239
2383
|
const l = r === "user";
|
|
2240
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `flex gap-3 ${l ? "justify-end" : "justify-start"} ${
|
|
2384
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `flex gap-3 ${l ? "justify-end" : "justify-start"} ${t}`, children: [
|
|
2241
2385
|
!l && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx("div", { className: "w-8 h-8 rounded-full bg-green-700 flex items-center justify-center text-white text-sm font-semibold", children: "AI" }) }),
|
|
2242
2386
|
/* @__PURE__ */ e.jsxs("div", { className: `flex-1 ${l ? "max-w-md" : ""}`, children: [
|
|
2243
2387
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2247,103 +2391,38 @@ const we = ({
|
|
|
2247
2391
|
children: /* @__PURE__ */ e.jsx("p", { className: "text-sm whitespace-pre-wrap", children: s })
|
|
2248
2392
|
}
|
|
2249
2393
|
),
|
|
2250
|
-
|
|
2394
|
+
a && /* @__PURE__ */ e.jsx("p", { className: `text-xs text-gray-400 mt-1 ${l ? "text-right" : ""}`, children: a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) })
|
|
2251
2395
|
] }),
|
|
2252
2396
|
l && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx("div", { className: "w-8 h-8 rounded-full bg-gray-300 flex items-center justify-center text-gray-600 text-sm font-semibold", children: "U" }) })
|
|
2253
2397
|
] });
|
|
2254
2398
|
};
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
title: r,
|
|
2258
|
-
titleId: s,
|
|
2259
|
-
...t
|
|
2260
|
-
}, a) {
|
|
2261
|
-
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
2262
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2263
|
-
viewBox: "0 0 24 24",
|
|
2264
|
-
fill: "currentColor",
|
|
2265
|
-
"aria-hidden": "true",
|
|
2266
|
-
"data-slot": "icon",
|
|
2267
|
-
ref: a,
|
|
2268
|
-
"aria-labelledby": s
|
|
2269
|
-
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
2270
|
-
id: s
|
|
2271
|
-
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
2272
|
-
fillRule: "evenodd",
|
|
2273
|
-
d: "M7.5 5.25a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v.205c.933.085 1.857.197 2.774.334 1.454.218 2.476 1.483 2.476 2.917v3.033c0 1.211-.734 2.352-1.936 2.752A24.726 24.726 0 0 1 12 15.75c-2.73 0-5.357-.442-7.814-1.259-1.202-.4-1.936-1.541-1.936-2.752V8.706c0-1.434 1.022-2.7 2.476-2.917A48.814 48.814 0 0 1 7.5 5.455V5.25Zm7.5 0v.09a49.488 49.488 0 0 0-6 0v-.09a1.5 1.5 0 0 1 1.5-1.5h3a1.5 1.5 0 0 1 1.5 1.5Zm-3 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
|
|
2274
|
-
clipRule: "evenodd"
|
|
2275
|
-
}), /* @__PURE__ */ j.createElement("path", {
|
|
2276
|
-
d: "M3 18.4v-2.796a4.3 4.3 0 0 0 .713.31A26.226 26.226 0 0 0 12 17.25c2.892 0 5.68-.468 8.287-1.335.252-.084.49-.189.713-.311V18.4c0 1.452-1.047 2.728-2.523 2.923-2.12.282-4.282.427-6.477.427a49.19 49.19 0 0 1-6.477-.427C4.047 21.128 3 19.852 3 18.4Z"
|
|
2277
|
-
}));
|
|
2278
|
-
}
|
|
2279
|
-
const mr = /* @__PURE__ */ j.forwardRef(ur);
|
|
2280
|
-
function xr({
|
|
2281
|
-
title: r,
|
|
2282
|
-
titleId: s,
|
|
2283
|
-
...t
|
|
2284
|
-
}, a) {
|
|
2285
|
-
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
2286
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2287
|
-
viewBox: "0 0 24 24",
|
|
2288
|
-
fill: "currentColor",
|
|
2289
|
-
"aria-hidden": "true",
|
|
2290
|
-
"data-slot": "icon",
|
|
2291
|
-
ref: a,
|
|
2292
|
-
"aria-labelledby": s
|
|
2293
|
-
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
2294
|
-
id: s
|
|
2295
|
-
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
2296
|
-
d: "M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625Z"
|
|
2297
|
-
}), /* @__PURE__ */ j.createElement("path", {
|
|
2298
|
-
d: "M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"
|
|
2299
|
-
}));
|
|
2300
|
-
}
|
|
2301
|
-
const hr = /* @__PURE__ */ j.forwardRef(xr);
|
|
2302
|
-
function fr({
|
|
2303
|
-
title: r,
|
|
2304
|
-
titleId: s,
|
|
2305
|
-
...t
|
|
2306
|
-
}, a) {
|
|
2307
|
-
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
2308
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2309
|
-
viewBox: "0 0 24 24",
|
|
2310
|
-
fill: "currentColor",
|
|
2311
|
-
"aria-hidden": "true",
|
|
2312
|
-
"data-slot": "icon",
|
|
2313
|
-
ref: a,
|
|
2314
|
-
"aria-labelledby": s
|
|
2315
|
-
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
2316
|
-
id: s
|
|
2317
|
-
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
2318
|
-
d: "M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"
|
|
2319
|
-
}));
|
|
2320
|
-
}
|
|
2321
|
-
const gr = /* @__PURE__ */ j.forwardRef(fr), vr = ({
|
|
2399
|
+
Ce.displayName = "ChatMessage";
|
|
2400
|
+
const yr = ({
|
|
2322
2401
|
onSend: r,
|
|
2323
2402
|
disabled: s = !1,
|
|
2324
|
-
placeholder:
|
|
2325
|
-
maxLength:
|
|
2403
|
+
placeholder: a = "Ask a question about your resume or the job...",
|
|
2404
|
+
maxLength: t = 2e3,
|
|
2326
2405
|
className: l = ""
|
|
2327
2406
|
}) => {
|
|
2328
|
-
const [n,
|
|
2407
|
+
const [n, c] = V(""), o = G(null);
|
|
2329
2408
|
U(() => {
|
|
2330
|
-
|
|
2409
|
+
o.current && (o.current.style.height = "auto", o.current.style.height = `${o.current.scrollHeight}px`);
|
|
2331
2410
|
}, [n]);
|
|
2332
|
-
const
|
|
2333
|
-
n.trim() && !s && (r(n.trim()),
|
|
2334
|
-
},
|
|
2335
|
-
x.key === "Enter" && !x.shiftKey ? (x.preventDefault(),
|
|
2336
|
-
}, m = n.length >
|
|
2411
|
+
const u = () => {
|
|
2412
|
+
n.trim() && !s && (r(n.trim()), c(""));
|
|
2413
|
+
}, d = (x) => {
|
|
2414
|
+
x.key === "Enter" && !x.shiftKey ? (x.preventDefault(), u()) : x.key === "Escape" && c("");
|
|
2415
|
+
}, m = n.length > t, h = n.length > t * 0.9;
|
|
2337
2416
|
return /* @__PURE__ */ e.jsxs("div", { className: `border-t border-gray-200 bg-white p-4 ${l}`, children: [
|
|
2338
2417
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
2339
2418
|
/* @__PURE__ */ e.jsx(
|
|
2340
2419
|
"textarea",
|
|
2341
2420
|
{
|
|
2342
|
-
ref:
|
|
2421
|
+
ref: o,
|
|
2343
2422
|
value: n,
|
|
2344
|
-
onChange: (x) =>
|
|
2345
|
-
onKeyDown:
|
|
2346
|
-
placeholder:
|
|
2423
|
+
onChange: (x) => c(x.target.value),
|
|
2424
|
+
onKeyDown: d,
|
|
2425
|
+
placeholder: a,
|
|
2347
2426
|
disabled: s,
|
|
2348
2427
|
rows: 1,
|
|
2349
2428
|
className: "flex-1 resize-none border border-gray-300 rounded-lg p-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed",
|
|
@@ -2354,11 +2433,11 @@ const gr = /* @__PURE__ */ j.forwardRef(fr), vr = ({
|
|
|
2354
2433
|
/* @__PURE__ */ e.jsx(
|
|
2355
2434
|
"button",
|
|
2356
2435
|
{
|
|
2357
|
-
onClick:
|
|
2436
|
+
onClick: u,
|
|
2358
2437
|
disabled: s || !n.trim() || m,
|
|
2359
2438
|
className: "px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
2360
2439
|
"aria-label": "Send message",
|
|
2361
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2440
|
+
children: /* @__PURE__ */ e.jsx(fr, { className: "w-5 h-5" })
|
|
2362
2441
|
}
|
|
2363
2442
|
)
|
|
2364
2443
|
] }),
|
|
@@ -2367,17 +2446,17 @@ const gr = /* @__PURE__ */ j.forwardRef(fr), vr = ({
|
|
|
2367
2446
|
h && /* @__PURE__ */ e.jsxs("p", { className: `text-xs ${m ? "text-red-500" : "text-gray-500"}`, children: [
|
|
2368
2447
|
n.length,
|
|
2369
2448
|
"/",
|
|
2370
|
-
|
|
2449
|
+
t
|
|
2371
2450
|
] })
|
|
2372
2451
|
] })
|
|
2373
2452
|
] });
|
|
2374
2453
|
};
|
|
2375
|
-
|
|
2376
|
-
const
|
|
2454
|
+
yr.displayName = "ChatInput";
|
|
2455
|
+
const ke = ({
|
|
2377
2456
|
message: r = "Thinking...",
|
|
2378
2457
|
variant: s = "dots",
|
|
2379
|
-
className:
|
|
2380
|
-
}) => /* @__PURE__ */ e.jsxs("div", { className: `flex gap-3 ${
|
|
2458
|
+
className: a = ""
|
|
2459
|
+
}) => /* @__PURE__ */ e.jsxs("div", { className: `flex gap-3 ${a}`, children: [
|
|
2381
2460
|
/* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx("div", { className: "w-8 h-8 rounded-full bg-green-700 flex items-center justify-center text-white text-sm font-semibold", children: "AI" }) }),
|
|
2382
2461
|
/* @__PURE__ */ e.jsx("div", { className: "flex-1", children: /* @__PURE__ */ e.jsxs("div", { className: "bg-gray-100 rounded-lg rounded-bl-none p-3 inline-flex items-center gap-2", children: [
|
|
2383
2462
|
s === "dots" ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1", children: [
|
|
@@ -2400,50 +2479,50 @@ const Ce = ({
|
|
|
2400
2479
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm text-gray-600", children: r })
|
|
2401
2480
|
] }) })
|
|
2402
2481
|
] });
|
|
2403
|
-
|
|
2404
|
-
const
|
|
2482
|
+
ke.displayName = "LoadingIndicator";
|
|
2483
|
+
const wr = ({
|
|
2405
2484
|
messages: r,
|
|
2406
2485
|
isLoading: s = !1,
|
|
2407
|
-
loadingMessage:
|
|
2408
|
-
error:
|
|
2486
|
+
loadingMessage: a = "Thinking...",
|
|
2487
|
+
error: t = null,
|
|
2409
2488
|
onRetry: l,
|
|
2410
2489
|
className: n = "",
|
|
2411
|
-
emptyStateMessage:
|
|
2490
|
+
emptyStateMessage: c = "Start a conversation"
|
|
2412
2491
|
}) => {
|
|
2413
|
-
const
|
|
2492
|
+
const o = G(null), u = G(null);
|
|
2414
2493
|
return U(() => {
|
|
2415
|
-
|
|
2494
|
+
o.current?.scrollIntoView({ behavior: "smooth" });
|
|
2416
2495
|
}, [r, s]), /* @__PURE__ */ e.jsxs(
|
|
2417
2496
|
"div",
|
|
2418
2497
|
{
|
|
2419
|
-
ref:
|
|
2498
|
+
ref: u,
|
|
2420
2499
|
className: `flex flex-col flex-1 overflow-y-auto bg-white p-4 space-y-4 ${n}`,
|
|
2421
2500
|
children: [
|
|
2422
2501
|
r.length === 0 && !s && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center justify-center h-full text-center", children: [
|
|
2423
2502
|
/* @__PURE__ */ e.jsx("div", { className: "text-4xl mb-4", children: "💬" }),
|
|
2424
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-gray-600 font-medium", children:
|
|
2503
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-gray-600 font-medium", children: c }),
|
|
2425
2504
|
/* @__PURE__ */ e.jsx("p", { className: "text-gray-400 text-sm mt-2", children: "Ask me anything about your resume or the job requirements!" })
|
|
2426
2505
|
] }),
|
|
2427
|
-
r.map((
|
|
2428
|
-
|
|
2506
|
+
r.map((d, m) => /* @__PURE__ */ e.jsx(
|
|
2507
|
+
Ce,
|
|
2429
2508
|
{
|
|
2430
|
-
role:
|
|
2431
|
-
content:
|
|
2432
|
-
timestamp:
|
|
2509
|
+
role: d.role,
|
|
2510
|
+
content: d.content,
|
|
2511
|
+
timestamp: d.timestamp
|
|
2433
2512
|
},
|
|
2434
2513
|
m
|
|
2435
2514
|
)),
|
|
2436
2515
|
s && /* @__PURE__ */ e.jsx(
|
|
2437
|
-
|
|
2516
|
+
ke,
|
|
2438
2517
|
{
|
|
2439
|
-
message:
|
|
2518
|
+
message: a,
|
|
2440
2519
|
variant: "dots"
|
|
2441
2520
|
}
|
|
2442
2521
|
),
|
|
2443
|
-
|
|
2522
|
+
t && /* @__PURE__ */ e.jsxs("div", { className: "flex gap-3", children: [
|
|
2444
2523
|
/* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx("div", { className: "w-8 h-8 rounded-full bg-red-100 flex items-center justify-center", children: /* @__PURE__ */ e.jsx("span", { className: "text-red-600 text-sm font-semibold", children: "!" }) }) }),
|
|
2445
2524
|
/* @__PURE__ */ e.jsx("div", { className: "flex-1", children: /* @__PURE__ */ e.jsxs("div", { className: "bg-red-50 border border-red-200 rounded-lg p-3", children: [
|
|
2446
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-red-800", children:
|
|
2525
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-red-800", children: t }),
|
|
2447
2526
|
l && /* @__PURE__ */ e.jsx(
|
|
2448
2527
|
"button",
|
|
2449
2528
|
{
|
|
@@ -2454,24 +2533,24 @@ const br = ({
|
|
|
2454
2533
|
)
|
|
2455
2534
|
] }) })
|
|
2456
2535
|
] }),
|
|
2457
|
-
/* @__PURE__ */ e.jsx("div", { ref:
|
|
2536
|
+
/* @__PURE__ */ e.jsx("div", { ref: o })
|
|
2458
2537
|
]
|
|
2459
2538
|
}
|
|
2460
2539
|
);
|
|
2461
2540
|
};
|
|
2462
|
-
|
|
2463
|
-
const
|
|
2541
|
+
wr.displayName = "ChatContainer";
|
|
2542
|
+
const Nr = ({
|
|
2464
2543
|
resumeName: r,
|
|
2465
2544
|
jobTitle: s,
|
|
2466
|
-
companyName:
|
|
2467
|
-
matchScore:
|
|
2545
|
+
companyName: a,
|
|
2546
|
+
matchScore: t,
|
|
2468
2547
|
onChangeResume: l,
|
|
2469
2548
|
onChangeJob: n,
|
|
2470
|
-
className:
|
|
2471
|
-
}) => /* @__PURE__ */ e.jsx("div", { className: `border-b border-gray-200 bg-gray-50 p-4 ${
|
|
2549
|
+
className: c = ""
|
|
2550
|
+
}) => /* @__PURE__ */ e.jsx("div", { className: `border-b border-gray-200 bg-gray-50 p-4 ${c}`, children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
|
|
2472
2551
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2473
2552
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2474
|
-
/* @__PURE__ */ e.jsx(
|
|
2553
|
+
/* @__PURE__ */ e.jsx(xr, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2475
2554
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2476
2555
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Resume" }),
|
|
2477
2556
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm font-medium text-gray-900 truncate", children: r })
|
|
@@ -2489,12 +2568,12 @@ const pr = ({
|
|
|
2489
2568
|
] }),
|
|
2490
2569
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2491
2570
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2492
|
-
/* @__PURE__ */ e.jsx(
|
|
2571
|
+
/* @__PURE__ */ e.jsx(ir, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2493
2572
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2494
2573
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Job" }),
|
|
2495
2574
|
/* @__PURE__ */ e.jsxs("div", { className: "truncate", children: [
|
|
2496
2575
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm font-medium text-gray-900 truncate", children: s }),
|
|
2497
|
-
|
|
2576
|
+
a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 truncate", children: a })
|
|
2498
2577
|
] })
|
|
2499
2578
|
] })
|
|
2500
2579
|
] }),
|
|
@@ -2508,43 +2587,70 @@ const pr = ({
|
|
|
2508
2587
|
}
|
|
2509
2588
|
)
|
|
2510
2589
|
] }),
|
|
2511
|
-
|
|
2590
|
+
t !== void 0 && /* @__PURE__ */ e.jsxs("div", { className: "pt-2 border-t border-gray-200", children: [
|
|
2512
2591
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
2513
2592
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs font-medium text-gray-700", children: "Match Score" }),
|
|
2514
2593
|
/* @__PURE__ */ e.jsxs("p", { className: "text-sm font-semibold text-gray-900", children: [
|
|
2515
|
-
|
|
2594
|
+
t,
|
|
2516
2595
|
"%"
|
|
2517
2596
|
] })
|
|
2518
2597
|
] }),
|
|
2519
2598
|
/* @__PURE__ */ e.jsx("div", { className: "w-full bg-gray-200 rounded-full h-2 overflow-hidden", children: /* @__PURE__ */ e.jsx(
|
|
2520
2599
|
"div",
|
|
2521
2600
|
{
|
|
2522
|
-
className: `h-full rounded-full transition-all duration-500 ${
|
|
2523
|
-
style: { width: `${
|
|
2601
|
+
className: `h-full rounded-full transition-all duration-500 ${t >= 90 ? "bg-green-500" : t >= 75 ? "bg-blue-500" : t >= 60 ? "bg-yellow-500" : "bg-red-500"}`,
|
|
2602
|
+
style: { width: `${t}%` }
|
|
2524
2603
|
}
|
|
2525
2604
|
) })
|
|
2526
2605
|
] })
|
|
2527
2606
|
] }) });
|
|
2528
|
-
|
|
2529
|
-
const
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
},
|
|
2540
|
-
|
|
2607
|
+
Nr.displayName = "AnalysisSummaryBar";
|
|
2608
|
+
const re = {
|
|
2609
|
+
semantic: {
|
|
2610
|
+
none: "bg-error-50 border-error-200 text-error-700",
|
|
2611
|
+
partial: "bg-warning-50 border-warning-200 text-warning-700",
|
|
2612
|
+
full: "bg-success-50 border-success-200 text-success-700"
|
|
2613
|
+
},
|
|
2614
|
+
brand: {
|
|
2615
|
+
none: "bg-persian-orange-900 border-persian-orange-700 text-persian-orange-200",
|
|
2616
|
+
partial: "bg-earth-yellow-900 border-earth-yellow-700 text-earth-yellow-200",
|
|
2617
|
+
full: "bg-moss-green-900 border-reseda-green-700 text-reseda-green-200"
|
|
2618
|
+
},
|
|
2619
|
+
subtle: {
|
|
2620
|
+
none: "bg-surface border-error-300 text-error-700",
|
|
2621
|
+
partial: "bg-surface border-warning-300 text-warning-700",
|
|
2622
|
+
full: "bg-surface border-success-300 text-success-700"
|
|
2623
|
+
}
|
|
2624
|
+
}, Cr = {
|
|
2625
|
+
semantic: {
|
|
2626
|
+
required: "bg-error-600 text-white",
|
|
2627
|
+
preferred: "bg-reseda-green-600 text-white",
|
|
2628
|
+
"nice-to-have": "bg-khaki-500 text-white"
|
|
2629
|
+
},
|
|
2630
|
+
brand: {
|
|
2631
|
+
required: "bg-persian-orange-500 text-white",
|
|
2632
|
+
preferred: "bg-reseda-green-500 text-white",
|
|
2633
|
+
"nice-to-have": "bg-beaver-500 text-white"
|
|
2634
|
+
},
|
|
2635
|
+
subtle: {
|
|
2636
|
+
required: "bg-error-100 text-error-800",
|
|
2637
|
+
preferred: "bg-reseda-green-700 text-reseda-green-100",
|
|
2638
|
+
"nice-to-have": "bg-khaki-700 text-khaki-100"
|
|
2639
|
+
}
|
|
2640
|
+
}, kr = ({
|
|
2641
|
+
skills: r,
|
|
2642
|
+
className: s = "",
|
|
2643
|
+
colorPreset: a = "semantic"
|
|
2644
|
+
}) => {
|
|
2645
|
+
const t = (o) => !o.matched || o.match_level === "none" ? "✗" : o.match_level === "partial" ? "~" : "✓", l = (o) => !o.matched || o.match_level === "none" ? re[a].none : o.match_level === "partial" ? re[a].partial : re[a].full, n = (o) => Cr[a][o], c = (o, u) => !u || u.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "mb-4", children: [
|
|
2646
|
+
/* @__PURE__ */ e.jsxs("p", { className: "text-xs font-semibold text-text-secondary mb-2", children: [
|
|
2541
2647
|
o,
|
|
2542
2648
|
":"
|
|
2543
2649
|
] }),
|
|
2544
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children:
|
|
2650
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: u.map((d, m) => /* @__PURE__ */ e.jsxs(
|
|
2545
2651
|
"div",
|
|
2546
2652
|
{
|
|
2547
|
-
className: `inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg border ${
|
|
2653
|
+
className: `inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg border ${l(
|
|
2548
2654
|
d
|
|
2549
2655
|
)}`,
|
|
2550
2656
|
children: [
|
|
@@ -2556,7 +2662,7 @@ const jr = ({ skills: r, className: s = "" }) => {
|
|
|
2556
2662
|
/* @__PURE__ */ e.jsx(
|
|
2557
2663
|
"span",
|
|
2558
2664
|
{
|
|
2559
|
-
className: `text-xs px-1.5 py-0.5 rounded ${
|
|
2665
|
+
className: `text-xs px-1.5 py-0.5 rounded ${n(
|
|
2560
2666
|
d.importance
|
|
2561
2667
|
)}`,
|
|
2562
2668
|
children: d.importance === "nice-to-have" ? "Nice" : d.importance
|
|
@@ -2564,57 +2670,57 @@ const jr = ({ skills: r, className: s = "" }) => {
|
|
|
2564
2670
|
)
|
|
2565
2671
|
]
|
|
2566
2672
|
},
|
|
2567
|
-
|
|
2673
|
+
m
|
|
2568
2674
|
)) })
|
|
2569
2675
|
] });
|
|
2570
2676
|
return /* @__PURE__ */ e.jsxs("div", { className: s, children: [
|
|
2571
|
-
|
|
2572
|
-
|
|
2677
|
+
c("Technical Skills", r.technical || []),
|
|
2678
|
+
c("Soft Skills", r.soft || [])
|
|
2573
2679
|
] });
|
|
2574
2680
|
};
|
|
2575
|
-
|
|
2576
|
-
const
|
|
2681
|
+
kr.displayName = "SkillTags";
|
|
2682
|
+
const $r = ({
|
|
2577
2683
|
score: r,
|
|
2578
2684
|
showLabel: s = !0,
|
|
2579
|
-
size:
|
|
2580
|
-
className:
|
|
2685
|
+
size: a = "md",
|
|
2686
|
+
className: t = ""
|
|
2581
2687
|
}) => {
|
|
2582
|
-
const l = Math.min(Math.max(r, 0), 100), n = (
|
|
2688
|
+
const l = Math.min(Math.max(r, 0), 100), n = (d) => d >= 90 ? "bg-green-500" : d >= 75 ? "bg-blue-500" : d >= 60 ? "bg-yellow-500" : "bg-red-500", c = (d) => d >= 90 ? "Excellent match!" : d >= 75 ? "Good match" : d >= 60 ? "Fair match" : "Poor match", o = {
|
|
2583
2689
|
sm: "h-2",
|
|
2584
2690
|
md: "h-4",
|
|
2585
2691
|
lg: "h-6"
|
|
2586
|
-
},
|
|
2692
|
+
}, u = {
|
|
2587
2693
|
sm: "text-xs",
|
|
2588
2694
|
md: "text-sm",
|
|
2589
2695
|
lg: "text-base"
|
|
2590
2696
|
};
|
|
2591
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
2697
|
+
return /* @__PURE__ */ e.jsxs("div", { className: t, children: [
|
|
2592
2698
|
s && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
2593
|
-
/* @__PURE__ */ e.jsx("p", { className: `font-medium text-gray-700 ${
|
|
2594
|
-
/* @__PURE__ */ e.jsxs("p", { className: `font-semibold ${
|
|
2699
|
+
/* @__PURE__ */ e.jsx("p", { className: `font-medium text-gray-700 ${u[a]}`, children: "Match Score" }),
|
|
2700
|
+
/* @__PURE__ */ e.jsxs("p", { className: `font-semibold ${u[a]} ${n(l).replace("bg-", "text-")}`, children: [
|
|
2595
2701
|
l,
|
|
2596
2702
|
"%"
|
|
2597
2703
|
] })
|
|
2598
2704
|
] }),
|
|
2599
|
-
/* @__PURE__ */ e.jsx("div", { className: `w-full bg-gray-200 rounded-full overflow-hidden ${
|
|
2705
|
+
/* @__PURE__ */ e.jsx("div", { className: `w-full bg-gray-200 rounded-full overflow-hidden ${o[a]}`, children: /* @__PURE__ */ e.jsx(
|
|
2600
2706
|
"div",
|
|
2601
2707
|
{
|
|
2602
|
-
className: `${n(l)} ${
|
|
2708
|
+
className: `${n(l)} ${o[a]} rounded-full transition-all duration-500 ease-out`,
|
|
2603
2709
|
style: { width: `${l}%` }
|
|
2604
2710
|
}
|
|
2605
2711
|
) }),
|
|
2606
|
-
s && /* @__PURE__ */ e.jsx("p", { className: `text-gray-600 mt-1 ${
|
|
2712
|
+
s && /* @__PURE__ */ e.jsx("p", { className: `text-gray-600 mt-1 ${u[a]}`, children: c(l) })
|
|
2607
2713
|
] });
|
|
2608
2714
|
};
|
|
2609
|
-
|
|
2610
|
-
const
|
|
2715
|
+
$r.displayName = "MatchScoreBar";
|
|
2716
|
+
const Vr = ({
|
|
2611
2717
|
responsibilities: r,
|
|
2612
2718
|
className: s = ""
|
|
2613
2719
|
}) => {
|
|
2614
|
-
const
|
|
2720
|
+
const a = r.reduce(
|
|
2615
2721
|
(l, n) => (l[n.category] || (l[n.category] = []), l[n.category].push(n), l),
|
|
2616
2722
|
{}
|
|
2617
|
-
),
|
|
2723
|
+
), t = (l) => {
|
|
2618
2724
|
switch (l) {
|
|
2619
2725
|
case "high":
|
|
2620
2726
|
return "bg-red-100 text-red-800";
|
|
@@ -2624,76 +2730,77 @@ const Nr = ({
|
|
|
2624
2730
|
return "bg-gray-100 text-gray-800";
|
|
2625
2731
|
}
|
|
2626
2732
|
};
|
|
2627
|
-
return /* @__PURE__ */ e.jsx("div", { className: s, children: Object.entries(
|
|
2733
|
+
return /* @__PURE__ */ e.jsx("div", { className: s, children: Object.entries(a).map(([l, n]) => /* @__PURE__ */ e.jsxs("div", { className: "mb-4", children: [
|
|
2628
2734
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
2629
2735
|
/* @__PURE__ */ e.jsx("h3", { className: "text-sm font-semibold text-gray-900", children: l }),
|
|
2630
|
-
n.some((
|
|
2631
|
-
n.some((
|
|
2736
|
+
n.some((c) => c.importance === "high") && /* @__PURE__ */ e.jsx("span", { className: "inline-block w-2 h-2 bg-red-600 rounded-full" }),
|
|
2737
|
+
n.some((c) => c.importance === "medium") && !n.some((c) => c.importance === "high") && /* @__PURE__ */ e.jsx("span", { className: "inline-block w-2 h-2 bg-yellow-600 rounded-full" })
|
|
2632
2738
|
] }),
|
|
2633
|
-
/* @__PURE__ */ e.jsx("ul", { className: "space-y-1.5 ml-2", children: n.map((
|
|
2739
|
+
/* @__PURE__ */ e.jsx("ul", { className: "space-y-1.5 ml-2", children: n.map((c, o) => /* @__PURE__ */ e.jsxs("li", { className: "flex gap-2", children: [
|
|
2634
2740
|
/* @__PURE__ */ e.jsx("span", { className: "text-gray-400 flex-shrink-0", children: "•" }),
|
|
2635
2741
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
2636
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-gray-800", children:
|
|
2637
|
-
|
|
2742
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-gray-800", children: c.description }),
|
|
2743
|
+
c.importance !== "low" && /* @__PURE__ */ e.jsx(
|
|
2638
2744
|
"span",
|
|
2639
2745
|
{
|
|
2640
|
-
className: `inline-block text-xs px-2 py-0.5 rounded mt-1 ${
|
|
2641
|
-
|
|
2746
|
+
className: `inline-block text-xs px-2 py-0.5 rounded mt-1 ${t(
|
|
2747
|
+
c.importance
|
|
2642
2748
|
)}`,
|
|
2643
|
-
children:
|
|
2749
|
+
children: c.importance === "high" ? "High Priority" : "Medium Priority"
|
|
2644
2750
|
}
|
|
2645
2751
|
)
|
|
2646
2752
|
] })
|
|
2647
|
-
] },
|
|
2753
|
+
] }, o)) })
|
|
2648
2754
|
] }, l)) });
|
|
2649
2755
|
};
|
|
2650
|
-
|
|
2756
|
+
Vr.displayName = "ResponsibilitiesList";
|
|
2651
2757
|
export {
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2758
|
+
Yr as Accordion,
|
|
2759
|
+
Hr as ActionCard,
|
|
2760
|
+
q as Alert,
|
|
2761
|
+
Nr as AnalysisSummaryBar,
|
|
2762
|
+
er as Badge,
|
|
2763
|
+
_ as Button,
|
|
2764
|
+
Wr as Card,
|
|
2765
|
+
wr as ChatContainer,
|
|
2766
|
+
yr as ChatInput,
|
|
2767
|
+
Ce as ChatMessage,
|
|
2768
|
+
Lr as CheckboxGroup,
|
|
2769
|
+
Ye as ColorPalette,
|
|
2770
|
+
Ir as Demo,
|
|
2771
|
+
qr as DetailPanel,
|
|
2772
|
+
zr as FileUpload,
|
|
2773
|
+
Pr as FormField,
|
|
2774
|
+
Ge as Input,
|
|
2775
|
+
ke as LoadingIndicator,
|
|
2776
|
+
$r as MatchScoreBar,
|
|
2777
|
+
Jr as OptionCard,
|
|
2778
|
+
Gr as PageHeader,
|
|
2779
|
+
Fr as RadioGroup,
|
|
2780
|
+
Vr as ResponsibilitiesList,
|
|
2781
|
+
Zr as Section,
|
|
2782
|
+
Je as Select,
|
|
2783
|
+
Xr as SelectableRadioOption,
|
|
2784
|
+
Kr as Sidebar,
|
|
2785
|
+
kr as SkillTags,
|
|
2786
|
+
or as Slider,
|
|
2787
|
+
nr as SocialButton,
|
|
2788
|
+
br as SortableItem,
|
|
2789
|
+
Ur as StatsGrid,
|
|
2790
|
+
rs as StatusBanner,
|
|
2791
|
+
Qr as Stepper,
|
|
2792
|
+
es as TabBar,
|
|
2793
|
+
rr as TagInput,
|
|
2794
|
+
lr as Textarea,
|
|
2795
|
+
He as ThemeProvider,
|
|
2796
|
+
Ze as ThemeToggle,
|
|
2797
|
+
Or as clearAllErrors,
|
|
2798
|
+
_r as clearFieldError,
|
|
2799
|
+
Mr as getFirstError,
|
|
2693
2800
|
Pe as hasErrors,
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2801
|
+
Dr as useForm,
|
|
2802
|
+
We as useTheme,
|
|
2803
|
+
Ie as validateField,
|
|
2697
2804
|
ee as validateForm,
|
|
2698
|
-
|
|
2805
|
+
Br as validators
|
|
2699
2806
|
};
|