acemyjob-ui 2.0.3 → 2.0.6
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,11 @@
|
|
|
1
1
|
import * as j from "react";
|
|
2
|
-
import
|
|
3
|
-
import { ChevronDownIcon as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
2
|
+
import P, { useState as $, useCallback as M, createContext as Ee, useEffect as _, useContext as Re, useRef as W } from "react";
|
|
3
|
+
import { ChevronDownIcon as te, InformationCircleIcon as ve, ExclamationCircleIcon as pe, XCircleIcon as je, CheckCircleIcon as ye, XMarkIcon as we, Bars3Icon as Ae } from "@heroicons/react/24/outline";
|
|
4
|
+
import { createPortal as Se } from "react-dom";
|
|
5
|
+
import { useSortable as Be } from "@dnd-kit/sortable";
|
|
6
|
+
import { CSS as Me } from "@dnd-kit/utilities";
|
|
7
|
+
import { Dialog as _e, DialogBackdrop as De, DialogPanel as Oe, TransitionChild as Ie } from "@headlessui/react";
|
|
8
|
+
const Ir = {
|
|
8
9
|
required: (r = "This field is required") => ({
|
|
9
10
|
validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
|
|
10
11
|
message: r
|
|
@@ -14,23 +15,23 @@ const Br = {
|
|
|
14
15
|
message: r
|
|
15
16
|
}),
|
|
16
17
|
minLength: (r, s) => ({
|
|
17
|
-
validate: (
|
|
18
|
+
validate: (t) => String(t).length >= r,
|
|
18
19
|
message: s || `Must be at least ${r} characters`
|
|
19
20
|
}),
|
|
20
21
|
maxLength: (r, s) => ({
|
|
21
|
-
validate: (
|
|
22
|
+
validate: (t) => String(t).length <= r,
|
|
22
23
|
message: s || `Must be no more than ${r} characters`
|
|
23
24
|
}),
|
|
24
25
|
pattern: (r, s = "Invalid format") => ({
|
|
25
|
-
validate: (
|
|
26
|
+
validate: (t) => r.test(String(t)),
|
|
26
27
|
message: s
|
|
27
28
|
}),
|
|
28
29
|
minValue: (r, s) => ({
|
|
29
|
-
validate: (
|
|
30
|
+
validate: (t) => Number(t) >= r,
|
|
30
31
|
message: s || `Must be at least ${r}`
|
|
31
32
|
}),
|
|
32
33
|
maxValue: (r, s) => ({
|
|
33
|
-
validate: (
|
|
34
|
+
validate: (t) => Number(t) <= r,
|
|
34
35
|
message: s || `Must be no more than ${r}`
|
|
35
36
|
}),
|
|
36
37
|
url: (r = "Please enter a valid URL") => ({
|
|
@@ -45,13 +46,13 @@ const Br = {
|
|
|
45
46
|
}),
|
|
46
47
|
phone: (r = "Please enter a valid phone number") => ({
|
|
47
48
|
validate: (s) => {
|
|
48
|
-
const
|
|
49
|
-
return
|
|
49
|
+
const t = /^[\d\s\-+()]+$/, a = String(s);
|
|
50
|
+
return t.test(a) && a.replace(/\D/g, "").length >= 10;
|
|
50
51
|
},
|
|
51
52
|
message: r
|
|
52
53
|
}),
|
|
53
54
|
match: (r, s = "Fields do not match") => ({
|
|
54
|
-
validate: (
|
|
55
|
+
validate: (t) => t === r,
|
|
55
56
|
message: s
|
|
56
57
|
}),
|
|
57
58
|
custom: (r, s) => ({
|
|
@@ -59,58 +60,58 @@ const Br = {
|
|
|
59
60
|
message: s
|
|
60
61
|
})
|
|
61
62
|
};
|
|
62
|
-
function
|
|
63
|
-
for (const
|
|
64
|
-
if (!
|
|
65
|
-
return
|
|
63
|
+
function Pe(r, s) {
|
|
64
|
+
for (const t of s)
|
|
65
|
+
if (!t.validate(r))
|
|
66
|
+
return t.message;
|
|
66
67
|
return null;
|
|
67
68
|
}
|
|
68
69
|
function ee(r, s) {
|
|
69
|
-
const
|
|
70
|
-
for (const [
|
|
71
|
-
const n = r[
|
|
72
|
-
a
|
|
70
|
+
const t = {};
|
|
71
|
+
for (const [a, l] of Object.entries(s)) {
|
|
72
|
+
const n = r[a], c = Pe(n, l);
|
|
73
|
+
t[a] = c;
|
|
73
74
|
}
|
|
74
|
-
return
|
|
75
|
+
return t;
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function ze(r) {
|
|
77
78
|
return Object.values(r).some((s) => s !== null);
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function Pr(r) {
|
|
80
81
|
for (const s of Object.values(r))
|
|
81
82
|
if (s !== null)
|
|
82
83
|
return s;
|
|
83
84
|
return null;
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function zr(r, s) {
|
|
86
87
|
return {
|
|
87
88
|
...r,
|
|
88
89
|
[s]: null
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function Lr(r) {
|
|
92
93
|
const s = {};
|
|
93
|
-
for (const
|
|
94
|
-
s[
|
|
94
|
+
for (const t of Object.keys(r))
|
|
95
|
+
s[t] = null;
|
|
95
96
|
return s;
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
+
function Fr({
|
|
98
99
|
initialValues: r,
|
|
99
100
|
validationRules: s = {},
|
|
100
|
-
onSubmit:
|
|
101
|
+
onSubmit: t
|
|
101
102
|
}) {
|
|
102
|
-
const [
|
|
103
|
+
const [a, l] = $(r), [n, c] = $({}), [o, u] = $({}), [d, m] = $(!1), h = JSON.stringify(a) !== JSON.stringify(r), x = M(
|
|
103
104
|
(p) => {
|
|
104
|
-
const { name: v, value:
|
|
105
|
-
let
|
|
106
|
-
if (S === "checkbox" ?
|
|
107
|
-
...
|
|
108
|
-
[v]:
|
|
105
|
+
const { name: v, value: C, type: S } = p.target;
|
|
106
|
+
let F = C;
|
|
107
|
+
if (S === "checkbox" ? F = p.target.checked : S === "number" && (F = C ? Number(C) : ""), l((z) => ({
|
|
108
|
+
...z,
|
|
109
|
+
[v]: F
|
|
109
110
|
})), s[v]) {
|
|
110
|
-
const
|
|
111
|
-
c((
|
|
112
|
-
...
|
|
113
|
-
[v]:
|
|
111
|
+
const z = ee({ [v]: F }, { [v]: s[v] });
|
|
112
|
+
c((q) => ({
|
|
113
|
+
...q,
|
|
114
|
+
[v]: z[v]
|
|
114
115
|
}));
|
|
115
116
|
}
|
|
116
117
|
},
|
|
@@ -118,40 +119,40 @@ function Dr({
|
|
|
118
119
|
), f = M(
|
|
119
120
|
(p) => {
|
|
120
121
|
const { name: v } = p.target;
|
|
121
|
-
u((
|
|
122
|
-
...
|
|
122
|
+
u((C) => ({
|
|
123
|
+
...C,
|
|
123
124
|
[v]: !0
|
|
124
125
|
}));
|
|
125
126
|
},
|
|
126
127
|
[]
|
|
127
|
-
),
|
|
128
|
-
if (l((
|
|
129
|
-
...
|
|
128
|
+
), g = M((p, v) => {
|
|
129
|
+
if (l((C) => ({
|
|
130
|
+
...C,
|
|
130
131
|
[p]: v
|
|
131
132
|
})), s[p]) {
|
|
132
|
-
const
|
|
133
|
+
const C = ee({ [p]: v }, { [p]: s[p] });
|
|
133
134
|
c((S) => ({
|
|
134
135
|
...S,
|
|
135
|
-
[p]:
|
|
136
|
+
[p]: C[p]
|
|
136
137
|
}));
|
|
137
138
|
}
|
|
138
|
-
}, [s]),
|
|
139
|
-
c((
|
|
140
|
-
...
|
|
139
|
+
}, [s]), y = M((p, v) => {
|
|
140
|
+
c((C) => ({
|
|
141
|
+
...C,
|
|
141
142
|
[p]: v
|
|
142
143
|
}));
|
|
143
|
-
}, []),
|
|
144
|
+
}, []), V = M(
|
|
144
145
|
async (p) => {
|
|
145
146
|
p.preventDefault();
|
|
146
|
-
const v = ee(
|
|
147
|
+
const v = ee(a, s);
|
|
147
148
|
c(v);
|
|
148
|
-
const
|
|
149
|
-
for (const S of Object.keys(
|
|
150
|
-
|
|
151
|
-
if (u(
|
|
149
|
+
const C = {};
|
|
150
|
+
for (const S of Object.keys(a))
|
|
151
|
+
C[S] = !0;
|
|
152
|
+
if (u(C), !ze(v) && t) {
|
|
152
153
|
m(!0);
|
|
153
154
|
try {
|
|
154
|
-
await a
|
|
155
|
+
await t(a);
|
|
155
156
|
} catch (S) {
|
|
156
157
|
console.error("Form submission error:", S);
|
|
157
158
|
} finally {
|
|
@@ -159,43 +160,43 @@ function Dr({
|
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
},
|
|
162
|
-
[
|
|
163
|
-
),
|
|
163
|
+
[a, s, t]
|
|
164
|
+
), R = M(() => {
|
|
164
165
|
l(r), c({}), u({}), m(!1);
|
|
165
|
-
}, [r]),
|
|
166
|
+
}, [r]), k = M(
|
|
166
167
|
(p) => ({
|
|
167
168
|
name: p,
|
|
168
|
-
value:
|
|
169
|
+
value: a[p] || "",
|
|
169
170
|
onChange: x,
|
|
170
171
|
onBlur: f
|
|
171
172
|
}),
|
|
172
|
-
[
|
|
173
|
+
[a, x, f]
|
|
173
174
|
), N = M(
|
|
174
175
|
(p) => n[p] || null,
|
|
175
176
|
[n]
|
|
176
177
|
), O = M(
|
|
177
178
|
(p) => o[p] || !1,
|
|
178
179
|
[o]
|
|
179
|
-
),
|
|
180
|
-
(p) =>
|
|
181
|
-
[
|
|
180
|
+
), L = M(
|
|
181
|
+
(p) => a[p] !== r[p],
|
|
182
|
+
[a, r]
|
|
182
183
|
);
|
|
183
184
|
return {
|
|
184
|
-
values:
|
|
185
|
+
values: a,
|
|
185
186
|
errors: n,
|
|
186
187
|
touched: o,
|
|
187
188
|
isSubmitting: d,
|
|
188
189
|
isDirty: h,
|
|
189
190
|
handleChange: x,
|
|
190
191
|
handleBlur: f,
|
|
191
|
-
setFieldValue:
|
|
192
|
-
setFieldError:
|
|
193
|
-
handleSubmit:
|
|
194
|
-
resetForm:
|
|
195
|
-
getFieldProps:
|
|
192
|
+
setFieldValue: g,
|
|
193
|
+
setFieldError: y,
|
|
194
|
+
handleSubmit: V,
|
|
195
|
+
resetForm: R,
|
|
196
|
+
getFieldProps: k,
|
|
196
197
|
getFieldError: N,
|
|
197
198
|
isFieldTouched: O,
|
|
198
|
-
isFieldDirty:
|
|
199
|
+
isFieldDirty: L
|
|
199
200
|
};
|
|
200
201
|
}
|
|
201
202
|
var Z = { exports: {} }, Y = {};
|
|
@@ -209,11 +210,11 @@ var Z = { exports: {} }, Y = {};
|
|
|
209
210
|
* LICENSE file in the root directory of this source tree.
|
|
210
211
|
*/
|
|
211
212
|
var ie;
|
|
212
|
-
function
|
|
213
|
+
function Le() {
|
|
213
214
|
if (ie) return Y;
|
|
214
215
|
ie = 1;
|
|
215
216
|
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
216
|
-
function a
|
|
217
|
+
function t(a, l, n) {
|
|
217
218
|
var c = null;
|
|
218
219
|
if (n !== void 0 && (c = "" + n), l.key !== void 0 && (c = "" + l.key), "key" in l) {
|
|
219
220
|
n = {};
|
|
@@ -222,13 +223,13 @@ function ze() {
|
|
|
222
223
|
} else n = l;
|
|
223
224
|
return l = n.ref, {
|
|
224
225
|
$$typeof: r,
|
|
225
|
-
type:
|
|
226
|
+
type: a,
|
|
226
227
|
key: c,
|
|
227
228
|
ref: l !== void 0 ? l : null,
|
|
228
229
|
props: n
|
|
229
230
|
};
|
|
230
231
|
}
|
|
231
|
-
return Y.Fragment = s, Y.jsx =
|
|
232
|
+
return Y.Fragment = s, Y.jsx = t, Y.jsxs = t, Y;
|
|
232
233
|
}
|
|
233
234
|
var H = {};
|
|
234
235
|
/**
|
|
@@ -241,21 +242,21 @@ var H = {};
|
|
|
241
242
|
* LICENSE file in the root directory of this source tree.
|
|
242
243
|
*/
|
|
243
244
|
var de;
|
|
244
|
-
function
|
|
245
|
+
function Fe() {
|
|
245
246
|
return de || (de = 1, process.env.NODE_ENV !== "production" && function() {
|
|
246
247
|
function r(i) {
|
|
247
248
|
if (i == null) return null;
|
|
248
249
|
if (typeof i == "function")
|
|
249
|
-
return i.$$typeof ===
|
|
250
|
+
return i.$$typeof === F ? null : i.displayName || i.name || null;
|
|
250
251
|
if (typeof i == "string") return i;
|
|
251
252
|
switch (i) {
|
|
252
|
-
case
|
|
253
|
+
case y:
|
|
253
254
|
return "Fragment";
|
|
254
|
-
case
|
|
255
|
+
case R:
|
|
255
256
|
return "Profiler";
|
|
256
|
-
case
|
|
257
|
+
case V:
|
|
257
258
|
return "StrictMode";
|
|
258
|
-
case
|
|
259
|
+
case L:
|
|
259
260
|
return "Suspense";
|
|
260
261
|
case p:
|
|
261
262
|
return "SuspenseList";
|
|
@@ -266,21 +267,21 @@ function Le() {
|
|
|
266
267
|
switch (typeof i.tag == "number" && console.error(
|
|
267
268
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
268
269
|
), i.$$typeof) {
|
|
269
|
-
case
|
|
270
|
+
case g:
|
|
270
271
|
return "Portal";
|
|
271
272
|
case N:
|
|
272
273
|
return (i.displayName || "Context") + ".Provider";
|
|
273
|
-
case
|
|
274
|
+
case k:
|
|
274
275
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
275
276
|
case O:
|
|
276
|
-
var
|
|
277
|
-
return i = i.displayName, i || (i =
|
|
277
|
+
var b = i.render;
|
|
278
|
+
return i = i.displayName, i || (i = b.displayName || b.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
278
279
|
case v:
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
|
|
280
|
+
return b = i.displayName || null, b !== null ? b : r(i.type) || "Memo";
|
|
281
|
+
case C:
|
|
282
|
+
b = i._payload, i = i._init;
|
|
282
283
|
try {
|
|
283
|
-
return r(i(
|
|
284
|
+
return r(i(b));
|
|
284
285
|
} catch {
|
|
285
286
|
}
|
|
286
287
|
}
|
|
@@ -289,57 +290,57 @@ function Le() {
|
|
|
289
290
|
function s(i) {
|
|
290
291
|
return "" + i;
|
|
291
292
|
}
|
|
292
|
-
function
|
|
293
|
+
function t(i) {
|
|
293
294
|
try {
|
|
294
295
|
s(i);
|
|
295
|
-
var
|
|
296
|
+
var b = !1;
|
|
296
297
|
} catch {
|
|
297
|
-
|
|
298
|
+
b = !0;
|
|
298
299
|
}
|
|
299
|
-
if (
|
|
300
|
-
|
|
301
|
-
var
|
|
302
|
-
return
|
|
303
|
-
|
|
300
|
+
if (b) {
|
|
301
|
+
b = console;
|
|
302
|
+
var w = b.error, T = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
303
|
+
return w.call(
|
|
304
|
+
b,
|
|
304
305
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
305
|
-
|
|
306
|
+
T
|
|
306
307
|
), s(i);
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
-
if (i ===
|
|
311
|
-
if (typeof i == "object" && i !== null && i.$$typeof ===
|
|
310
|
+
function a(i) {
|
|
311
|
+
if (i === y) return "<>";
|
|
312
|
+
if (typeof i == "object" && i !== null && i.$$typeof === C)
|
|
312
313
|
return "<...>";
|
|
313
314
|
try {
|
|
314
|
-
var
|
|
315
|
-
return
|
|
315
|
+
var b = r(i);
|
|
316
|
+
return b ? "<" + b + ">" : "<...>";
|
|
316
317
|
} catch {
|
|
317
318
|
return "<...>";
|
|
318
319
|
}
|
|
319
320
|
}
|
|
320
321
|
function l() {
|
|
321
|
-
var i =
|
|
322
|
+
var i = z.A;
|
|
322
323
|
return i === null ? null : i.getOwner();
|
|
323
324
|
}
|
|
324
325
|
function n() {
|
|
325
326
|
return Error("react-stack-top-frame");
|
|
326
327
|
}
|
|
327
328
|
function c(i) {
|
|
328
|
-
if (
|
|
329
|
-
var
|
|
330
|
-
if (
|
|
329
|
+
if (q.call(i, "key")) {
|
|
330
|
+
var b = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
331
|
+
if (b && b.isReactWarning) return !1;
|
|
331
332
|
}
|
|
332
333
|
return i.key !== void 0;
|
|
333
334
|
}
|
|
334
|
-
function o(i,
|
|
335
|
-
function
|
|
336
|
-
|
|
335
|
+
function o(i, b) {
|
|
336
|
+
function w() {
|
|
337
|
+
ae || (ae = !0, console.error(
|
|
337
338
|
"%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
|
-
|
|
339
|
+
b
|
|
339
340
|
));
|
|
340
341
|
}
|
|
341
|
-
|
|
342
|
-
get:
|
|
342
|
+
w.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
343
|
+
get: w,
|
|
343
344
|
configurable: !0
|
|
344
345
|
});
|
|
345
346
|
}
|
|
@@ -349,14 +350,14 @@ function Le() {
|
|
|
349
350
|
"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
351
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
351
352
|
}
|
|
352
|
-
function d(i,
|
|
353
|
-
return
|
|
353
|
+
function d(i, b, w, T, I, B, X, K) {
|
|
354
|
+
return w = B.ref, i = {
|
|
354
355
|
$$typeof: f,
|
|
355
356
|
type: i,
|
|
356
|
-
key:
|
|
357
|
+
key: b,
|
|
357
358
|
props: B,
|
|
358
|
-
_owner:
|
|
359
|
-
}, (
|
|
359
|
+
_owner: I
|
|
360
|
+
}, (w !== void 0 ? w : null) !== null ? Object.defineProperty(i, "ref", {
|
|
360
361
|
enumerable: !1,
|
|
361
362
|
get: u
|
|
362
363
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
@@ -381,52 +382,52 @@ function Le() {
|
|
|
381
382
|
value: K
|
|
382
383
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
383
384
|
}
|
|
384
|
-
function m(i,
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
387
|
-
if (
|
|
388
|
-
if (
|
|
389
|
-
for (
|
|
390
|
-
h(
|
|
391
|
-
Object.freeze && Object.freeze(
|
|
385
|
+
function m(i, b, w, T, I, B, X, K) {
|
|
386
|
+
var E = b.children;
|
|
387
|
+
if (E !== void 0)
|
|
388
|
+
if (T)
|
|
389
|
+
if (Ve(E)) {
|
|
390
|
+
for (T = 0; T < E.length; T++)
|
|
391
|
+
h(E[T]);
|
|
392
|
+
Object.freeze && Object.freeze(E);
|
|
392
393
|
} else
|
|
393
394
|
console.error(
|
|
394
395
|
"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
396
|
);
|
|
396
|
-
else h(
|
|
397
|
-
if (
|
|
398
|
-
|
|
399
|
-
var
|
|
400
|
-
return
|
|
397
|
+
else h(E);
|
|
398
|
+
if (q.call(b, "key")) {
|
|
399
|
+
E = r(i);
|
|
400
|
+
var U = Object.keys(b).filter(function(Te) {
|
|
401
|
+
return Te !== "key";
|
|
401
402
|
});
|
|
402
|
-
|
|
403
|
+
T = 0 < U.length ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}", ce[E + T] || (U = 0 < U.length ? "{" + U.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
403
404
|
`A props object containing a "key" prop is being spread into JSX:
|
|
404
405
|
let props = %s;
|
|
405
406
|
<%s {...props} />
|
|
406
407
|
React keys must be passed directly to JSX without using spread:
|
|
407
408
|
let props = %s;
|
|
408
409
|
<%s key={someKey} {...props} />`,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
), ce[
|
|
410
|
+
T,
|
|
411
|
+
E,
|
|
412
|
+
U,
|
|
413
|
+
E
|
|
414
|
+
), ce[E + T] = !0);
|
|
414
415
|
}
|
|
415
|
-
if (
|
|
416
|
-
|
|
417
|
-
for (var Q in
|
|
418
|
-
Q !== "key" && (
|
|
419
|
-
} else
|
|
420
|
-
return
|
|
421
|
-
|
|
416
|
+
if (E = null, w !== void 0 && (t(w), E = "" + w), c(b) && (t(b.key), E = "" + b.key), "key" in b) {
|
|
417
|
+
w = {};
|
|
418
|
+
for (var Q in b)
|
|
419
|
+
Q !== "key" && (w[Q] = b[Q]);
|
|
420
|
+
} else w = b;
|
|
421
|
+
return E && o(
|
|
422
|
+
w,
|
|
422
423
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
423
424
|
), d(
|
|
424
425
|
i,
|
|
425
|
-
|
|
426
|
+
E,
|
|
426
427
|
B,
|
|
427
|
-
|
|
428
|
+
I,
|
|
428
429
|
l(),
|
|
429
|
-
|
|
430
|
+
w,
|
|
430
431
|
X,
|
|
431
432
|
K
|
|
432
433
|
);
|
|
@@ -434,7 +435,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
434
435
|
function h(i) {
|
|
435
436
|
typeof i == "object" && i !== null && i.$$typeof === f && i._store && (i._store.validated = 1);
|
|
436
437
|
}
|
|
437
|
-
var x =
|
|
438
|
+
var x = P, f = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), N = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), S = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), z = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, Ve = Array.isArray, J = console.createTask ? console.createTask : function() {
|
|
438
439
|
return null;
|
|
439
440
|
};
|
|
440
441
|
x = {
|
|
@@ -442,61 +443,61 @@ React keys must be passed directly to JSX without using spread:
|
|
|
442
443
|
return i();
|
|
443
444
|
}
|
|
444
445
|
};
|
|
445
|
-
var
|
|
446
|
+
var ae, ne = {}, le = x["react-stack-bottom-frame"].bind(
|
|
446
447
|
x,
|
|
447
448
|
n
|
|
448
|
-
)(), oe = J(
|
|
449
|
-
H.Fragment =
|
|
450
|
-
var B = 1e4 >
|
|
449
|
+
)(), oe = J(a(n)), ce = {};
|
|
450
|
+
H.Fragment = y, H.jsx = function(i, b, w, T, I) {
|
|
451
|
+
var B = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
451
452
|
return m(
|
|
452
453
|
i,
|
|
453
|
-
|
|
454
|
-
|
|
454
|
+
b,
|
|
455
|
+
w,
|
|
455
456
|
!1,
|
|
456
|
-
|
|
457
|
-
|
|
457
|
+
T,
|
|
458
|
+
I,
|
|
458
459
|
B ? Error("react-stack-top-frame") : le,
|
|
459
|
-
B ? J(
|
|
460
|
+
B ? J(a(i)) : oe
|
|
460
461
|
);
|
|
461
|
-
}, H.jsxs = function(i,
|
|
462
|
-
var B = 1e4 >
|
|
462
|
+
}, H.jsxs = function(i, b, w, T, I) {
|
|
463
|
+
var B = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
463
464
|
return m(
|
|
464
465
|
i,
|
|
465
|
-
|
|
466
|
-
|
|
466
|
+
b,
|
|
467
|
+
w,
|
|
467
468
|
!0,
|
|
468
|
-
|
|
469
|
-
|
|
469
|
+
T,
|
|
470
|
+
I,
|
|
470
471
|
B ? Error("react-stack-top-frame") : le,
|
|
471
|
-
B ? J(
|
|
472
|
+
B ? J(a(i)) : oe
|
|
472
473
|
);
|
|
473
474
|
};
|
|
474
475
|
}()), H;
|
|
475
476
|
}
|
|
476
477
|
var ue;
|
|
477
|
-
function
|
|
478
|
-
return ue || (ue = 1, process.env.NODE_ENV === "production" ? Z.exports =
|
|
478
|
+
function Ue() {
|
|
479
|
+
return ue || (ue = 1, process.env.NODE_ENV === "production" ? Z.exports = Le() : Z.exports = Fe()), Z.exports;
|
|
479
480
|
}
|
|
480
|
-
var e =
|
|
481
|
-
const
|
|
482
|
-
const
|
|
481
|
+
var e = Ue();
|
|
482
|
+
const Ne = (r) => r.replace("--color-", "bg-"), Ye = ({ name: r, cssVar: s, value: t }) => {
|
|
483
|
+
const a = `rgb(${t})`;
|
|
483
484
|
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
485
|
/* @__PURE__ */ e.jsx(
|
|
485
486
|
"div",
|
|
486
487
|
{
|
|
487
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
488
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Ne(s)}`
|
|
488
489
|
}
|
|
489
490
|
),
|
|
490
491
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
491
492
|
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: r }),
|
|
492
493
|
/* @__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:
|
|
494
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: a })
|
|
494
495
|
] })
|
|
495
496
|
] });
|
|
496
497
|
}, me = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
497
498
|
/* @__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
|
-
] }),
|
|
499
|
+
/* @__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((t) => /* @__PURE__ */ e.jsx(Ye, { ...t }, t.name)) })
|
|
500
|
+
] }), He = () => {
|
|
500
501
|
const r = [
|
|
501
502
|
{
|
|
502
503
|
title: "Success Colors (Green)",
|
|
@@ -697,7 +698,7 @@ const we = (r) => r.replace("--color-", "bg-"), Ue = ({ name: r, cssVar: s, valu
|
|
|
697
698
|
{ name: "900", cssVar: "--color-beaver-900", value: "235 229 224" }
|
|
698
699
|
]
|
|
699
700
|
}
|
|
700
|
-
],
|
|
701
|
+
], t = [
|
|
701
702
|
{ name: "Background", cssVar: "--color-background" },
|
|
702
703
|
{ name: "Surface", cssVar: "--color-surface" },
|
|
703
704
|
{ name: "Surface Variant", cssVar: "--color-surface-variant" },
|
|
@@ -712,63 +713,63 @@ const we = (r) => r.replace("--color-", "bg-"), Ue = ({ name: r, cssVar: s, valu
|
|
|
712
713
|
/* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
|
|
713
714
|
/* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
|
|
714
715
|
] }),
|
|
715
|
-
s.map((
|
|
716
|
-
r.map((
|
|
716
|
+
s.map((a) => /* @__PURE__ */ e.jsx(me, { ...a }, a.title)),
|
|
717
|
+
r.map((a) => /* @__PURE__ */ e.jsx(me, { ...a }, a.title)),
|
|
717
718
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
718
719
|
/* @__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:
|
|
720
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((a) => /* @__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
721
|
/* @__PURE__ */ e.jsx(
|
|
721
722
|
"div",
|
|
722
723
|
{
|
|
723
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
724
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Ne(a.cssVar)}`
|
|
724
725
|
}
|
|
725
726
|
),
|
|
726
727
|
/* @__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:
|
|
728
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: a.name }),
|
|
729
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: a.cssVar })
|
|
729
730
|
] })
|
|
730
|
-
] },
|
|
731
|
+
] }, a.name)) })
|
|
731
732
|
] }),
|
|
732
733
|
/* @__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
734
|
] });
|
|
734
|
-
},
|
|
735
|
+
}, Ce = Ee(void 0), We = ({
|
|
735
736
|
children: r,
|
|
736
737
|
defaultTheme: s = "system",
|
|
737
|
-
storageKey:
|
|
738
|
+
storageKey: t = "acemyjob-ui-theme"
|
|
738
739
|
}) => {
|
|
739
|
-
const [
|
|
740
|
-
|
|
741
|
-
const m = localStorage.getItem(
|
|
740
|
+
const [a, l] = $(s), [n, c] = $("light"), [o, u] = $(!1);
|
|
741
|
+
_(() => {
|
|
742
|
+
const m = localStorage.getItem(t);
|
|
742
743
|
m && l(m), u(!0);
|
|
743
|
-
}, [
|
|
744
|
+
}, [t]), _(() => {
|
|
744
745
|
if (!o) return;
|
|
745
746
|
const m = window.document.documentElement, h = () => {
|
|
746
747
|
let x;
|
|
747
|
-
|
|
748
|
+
a === "system" ? x = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : x = a, c(x), m.classList.remove("light", "dark"), m.classList.add(x);
|
|
748
749
|
};
|
|
749
|
-
if (h(),
|
|
750
|
+
if (h(), a === "system") {
|
|
750
751
|
const x = window.matchMedia("(prefers-color-scheme: dark)"), f = () => h();
|
|
751
752
|
return x.addEventListener("change", f), () => x.removeEventListener("change", f);
|
|
752
753
|
}
|
|
753
|
-
}, [
|
|
754
|
+
}, [a, o]);
|
|
754
755
|
const d = {
|
|
755
|
-
theme:
|
|
756
|
+
theme: a,
|
|
756
757
|
setTheme: (m) => {
|
|
757
|
-
localStorage.setItem(
|
|
758
|
+
localStorage.setItem(t, m), l(m);
|
|
758
759
|
},
|
|
759
760
|
resolvedTheme: n
|
|
760
761
|
};
|
|
761
|
-
return /* @__PURE__ */ e.jsx(
|
|
762
|
-
},
|
|
763
|
-
const r =
|
|
762
|
+
return /* @__PURE__ */ e.jsx(Ce.Provider, { value: d, children: r });
|
|
763
|
+
}, qe = () => {
|
|
764
|
+
const r = Re(Ce);
|
|
764
765
|
if (r === void 0)
|
|
765
766
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
766
767
|
return r;
|
|
767
768
|
}, Ze = () => {
|
|
768
|
-
const { theme: r, setTheme: s } =
|
|
769
|
-
if (
|
|
770
|
-
|
|
771
|
-
}, []), !
|
|
769
|
+
const { theme: r, setTheme: s } = qe(), [t, a] = $(!1);
|
|
770
|
+
if (_(() => {
|
|
771
|
+
a(!0);
|
|
772
|
+
}, []), !t)
|
|
772
773
|
return /* @__PURE__ */ e.jsxs(
|
|
773
774
|
"button",
|
|
774
775
|
{
|
|
@@ -813,15 +814,15 @@ const we = (r) => r.replace("--color-", "bg-"), Ue = ({ name: r, cssVar: s, valu
|
|
|
813
814
|
]
|
|
814
815
|
}
|
|
815
816
|
);
|
|
816
|
-
},
|
|
817
|
+
}, Ge = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
817
818
|
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Ze, {}) }),
|
|
818
|
-
/* @__PURE__ */ e.jsx(
|
|
819
|
-
] }),
|
|
820
|
-
function
|
|
819
|
+
/* @__PURE__ */ e.jsx(He, {})
|
|
820
|
+
] }), Ur = () => /* @__PURE__ */ e.jsx(We, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Ge, {}) });
|
|
821
|
+
function Yr({
|
|
821
822
|
label: r,
|
|
822
823
|
children: s,
|
|
823
|
-
helperText:
|
|
824
|
-
errorText:
|
|
824
|
+
helperText: t,
|
|
825
|
+
errorText: a,
|
|
825
826
|
required: l = !1,
|
|
826
827
|
className: n = ""
|
|
827
828
|
}) {
|
|
@@ -831,21 +832,21 @@ function Pr({
|
|
|
831
832
|
l && /* @__PURE__ */ e.jsx("span", { className: "text-error-500 ml-1", children: "*" })
|
|
832
833
|
] }),
|
|
833
834
|
s,
|
|
834
|
-
|
|
835
|
-
|
|
835
|
+
a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-error-600", children: a }),
|
|
836
|
+
t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
|
|
836
837
|
] });
|
|
837
838
|
}
|
|
838
|
-
const
|
|
839
|
+
const Je = P.forwardRef(
|
|
839
840
|
({
|
|
840
841
|
className: r = "",
|
|
841
842
|
leftIcon: s,
|
|
842
|
-
rightIcon:
|
|
843
|
-
error:
|
|
843
|
+
rightIcon: t,
|
|
844
|
+
error: a = !1,
|
|
844
845
|
fullWidth: l = !0,
|
|
845
846
|
disabled: n,
|
|
846
847
|
...c
|
|
847
848
|
}, o) => {
|
|
848
|
-
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", d =
|
|
849
|
+
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", d = a ? "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 || t ? "relative flex items-center" : "", f = `${u} ${d} ${m} ${h} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
|
|
849
850
|
return /* @__PURE__ */ e.jsxs("div", { className: x, children: [
|
|
850
851
|
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
851
852
|
/* @__PURE__ */ e.jsx(
|
|
@@ -857,22 +858,22 @@ const Ge = I.forwardRef(
|
|
|
857
858
|
...c
|
|
858
859
|
}
|
|
859
860
|
),
|
|
860
|
-
|
|
861
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
|
|
861
862
|
] });
|
|
862
863
|
}
|
|
863
864
|
);
|
|
864
|
-
|
|
865
|
-
const
|
|
865
|
+
Je.displayName = "Input";
|
|
866
|
+
const Xe = P.forwardRef(
|
|
866
867
|
({
|
|
867
868
|
options: r,
|
|
868
869
|
placeholder: s,
|
|
869
|
-
className:
|
|
870
|
-
error:
|
|
870
|
+
className: t = "",
|
|
871
|
+
error: a = !1,
|
|
871
872
|
fullWidth: l = !0,
|
|
872
873
|
disabled: n,
|
|
873
874
|
...c
|
|
874
875
|
}, o) => {
|
|
875
|
-
const x = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${
|
|
876
|
+
const x = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${a ? "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 ${t}`;
|
|
876
877
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
|
|
877
878
|
/* @__PURE__ */ e.jsxs(
|
|
878
879
|
"select",
|
|
@@ -887,25 +888,25 @@ const Je = I.forwardRef(
|
|
|
887
888
|
]
|
|
888
889
|
}
|
|
889
890
|
),
|
|
890
|
-
/* @__PURE__ */ e.jsx(
|
|
891
|
+
/* @__PURE__ */ e.jsx(te, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
|
|
891
892
|
] });
|
|
892
893
|
}
|
|
893
894
|
);
|
|
894
|
-
|
|
895
|
-
function
|
|
895
|
+
Xe.displayName = "Select";
|
|
896
|
+
function Ke({
|
|
896
897
|
title: r,
|
|
897
898
|
titleId: s,
|
|
898
|
-
...
|
|
899
|
-
},
|
|
899
|
+
...t
|
|
900
|
+
}, a) {
|
|
900
901
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
901
902
|
xmlns: "http://www.w3.org/2000/svg",
|
|
902
903
|
viewBox: "0 0 20 20",
|
|
903
904
|
fill: "currentColor",
|
|
904
905
|
"aria-hidden": "true",
|
|
905
906
|
"data-slot": "icon",
|
|
906
|
-
ref:
|
|
907
|
+
ref: a,
|
|
907
908
|
"aria-labelledby": s
|
|
908
|
-
},
|
|
909
|
+
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
909
910
|
id: s
|
|
910
911
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
911
912
|
fillRule: "evenodd",
|
|
@@ -913,21 +914,21 @@ function Xe({
|
|
|
913
914
|
clipRule: "evenodd"
|
|
914
915
|
}));
|
|
915
916
|
}
|
|
916
|
-
const xe = /* @__PURE__ */ j.forwardRef(
|
|
917
|
-
function
|
|
917
|
+
const xe = /* @__PURE__ */ j.forwardRef(Ke);
|
|
918
|
+
function Qe({
|
|
918
919
|
title: r,
|
|
919
920
|
titleId: s,
|
|
920
|
-
...
|
|
921
|
-
},
|
|
921
|
+
...t
|
|
922
|
+
}, a) {
|
|
922
923
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
923
924
|
xmlns: "http://www.w3.org/2000/svg",
|
|
924
925
|
viewBox: "0 0 20 20",
|
|
925
926
|
fill: "currentColor",
|
|
926
927
|
"aria-hidden": "true",
|
|
927
928
|
"data-slot": "icon",
|
|
928
|
-
ref:
|
|
929
|
+
ref: a,
|
|
929
930
|
"aria-labelledby": s
|
|
930
|
-
},
|
|
931
|
+
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
931
932
|
id: s
|
|
932
933
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
933
934
|
fillRule: "evenodd",
|
|
@@ -935,32 +936,32 @@ function Ke({
|
|
|
935
936
|
clipRule: "evenodd"
|
|
936
937
|
}));
|
|
937
938
|
}
|
|
938
|
-
const he = /* @__PURE__ */ j.forwardRef(
|
|
939
|
-
function
|
|
939
|
+
const he = /* @__PURE__ */ j.forwardRef(Qe);
|
|
940
|
+
function er({
|
|
940
941
|
title: r,
|
|
941
942
|
titleId: s,
|
|
942
|
-
...
|
|
943
|
-
},
|
|
943
|
+
...t
|
|
944
|
+
}, a) {
|
|
944
945
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
945
946
|
xmlns: "http://www.w3.org/2000/svg",
|
|
946
947
|
viewBox: "0 0 20 20",
|
|
947
948
|
fill: "currentColor",
|
|
948
949
|
"aria-hidden": "true",
|
|
949
950
|
"data-slot": "icon",
|
|
950
|
-
ref:
|
|
951
|
+
ref: a,
|
|
951
952
|
"aria-labelledby": s
|
|
952
|
-
},
|
|
953
|
+
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
953
954
|
id: s
|
|
954
955
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
955
956
|
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
957
|
}));
|
|
957
958
|
}
|
|
958
|
-
const se = /* @__PURE__ */ j.forwardRef(
|
|
959
|
-
function
|
|
959
|
+
const se = /* @__PURE__ */ j.forwardRef(er);
|
|
960
|
+
function rr({
|
|
960
961
|
children: r,
|
|
961
962
|
variant: s = "default",
|
|
962
|
-
size:
|
|
963
|
-
removable:
|
|
963
|
+
size: t = "md",
|
|
964
|
+
removable: a = !1,
|
|
964
965
|
onRemove: l,
|
|
965
966
|
className: n = "",
|
|
966
967
|
style: c,
|
|
@@ -980,11 +981,11 @@ function er({
|
|
|
980
981
|
return /* @__PURE__ */ e.jsxs(
|
|
981
982
|
"span",
|
|
982
983
|
{
|
|
983
|
-
className: `inline-flex items-center gap-1 rounded-full ${m} ${d[
|
|
984
|
+
className: `inline-flex items-center gap-1 rounded-full ${m} ${d[t]} ${n}`,
|
|
984
985
|
style: c,
|
|
985
986
|
children: [
|
|
986
987
|
r,
|
|
987
|
-
|
|
988
|
+
a && l && /* @__PURE__ */ e.jsx(
|
|
988
989
|
"button",
|
|
989
990
|
{
|
|
990
991
|
onClick: l,
|
|
@@ -997,12 +998,12 @@ function er({
|
|
|
997
998
|
}
|
|
998
999
|
);
|
|
999
1000
|
}
|
|
1000
|
-
const
|
|
1001
|
+
const sr = P.forwardRef(
|
|
1001
1002
|
({
|
|
1002
1003
|
tags: r,
|
|
1003
1004
|
onTagsChange: s,
|
|
1004
|
-
onAddTag:
|
|
1005
|
-
onRemoveTag:
|
|
1005
|
+
onAddTag: t,
|
|
1006
|
+
onRemoveTag: a,
|
|
1006
1007
|
placeholder: l = "Add a tag and press Enter",
|
|
1007
1008
|
error: n = !1,
|
|
1008
1009
|
fullWidth: c = !0,
|
|
@@ -1012,23 +1013,23 @@ const rr = I.forwardRef(
|
|
|
1012
1013
|
className: m = "",
|
|
1013
1014
|
...h
|
|
1014
1015
|
}, x) => {
|
|
1015
|
-
const [f,
|
|
1016
|
-
v.key === "Enter" && f.trim() ? (v.preventDefault(),
|
|
1017
|
-
},
|
|
1016
|
+
const [f, g] = $(""), y = (v) => {
|
|
1017
|
+
v.key === "Enter" && f.trim() ? (v.preventDefault(), V(f.trim())) : v.key === "Backspace" && !f && r.length > 0 && R(r[r.length - 1]);
|
|
1018
|
+
}, V = (v) => {
|
|
1018
1019
|
if (o && r.length >= o || u && r.includes(v))
|
|
1019
1020
|
return;
|
|
1020
|
-
const
|
|
1021
|
-
s(
|
|
1022
|
-
},
|
|
1023
|
-
const
|
|
1024
|
-
s(
|
|
1021
|
+
const C = [...r, v];
|
|
1022
|
+
s(C), t?.(v), g("");
|
|
1023
|
+
}, R = (v) => {
|
|
1024
|
+
const C = r.filter((S) => S !== v);
|
|
1025
|
+
s(C), a?.(v);
|
|
1025
1026
|
}, 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
1027
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1027
1028
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((v) => /* @__PURE__ */ e.jsx(
|
|
1028
|
-
|
|
1029
|
+
rr,
|
|
1029
1030
|
{
|
|
1030
1031
|
removable: !0,
|
|
1031
|
-
onRemove: () =>
|
|
1032
|
+
onRemove: () => R(v),
|
|
1032
1033
|
variant: "default",
|
|
1033
1034
|
children: v
|
|
1034
1035
|
},
|
|
@@ -1042,8 +1043,8 @@ const rr = I.forwardRef(
|
|
|
1042
1043
|
className: p,
|
|
1043
1044
|
placeholder: l,
|
|
1044
1045
|
value: f,
|
|
1045
|
-
onChange: (v) =>
|
|
1046
|
-
onKeyDown:
|
|
1046
|
+
onChange: (v) => g(v.target.value),
|
|
1047
|
+
onKeyDown: y,
|
|
1047
1048
|
disabled: d || (o ? r.length >= o : !1),
|
|
1048
1049
|
...h
|
|
1049
1050
|
}
|
|
@@ -1056,7 +1057,7 @@ const rr = I.forwardRef(
|
|
|
1056
1057
|
] });
|
|
1057
1058
|
}
|
|
1058
1059
|
);
|
|
1059
|
-
|
|
1060
|
+
sr.displayName = "TagInput";
|
|
1060
1061
|
const fe = {
|
|
1061
1062
|
variant: {
|
|
1062
1063
|
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
@@ -1075,12 +1076,12 @@ const fe = {
|
|
|
1075
1076
|
xl: "h-12 rounded-md px-10 text-base",
|
|
1076
1077
|
icon: "h-10 w-10"
|
|
1077
1078
|
}
|
|
1078
|
-
},
|
|
1079
|
+
}, tr = "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(" "), D = P.forwardRef(
|
|
1079
1080
|
({
|
|
1080
1081
|
className: r,
|
|
1081
1082
|
variant: s = "default",
|
|
1082
|
-
size:
|
|
1083
|
-
fullWidth:
|
|
1083
|
+
size: t = "default",
|
|
1084
|
+
fullWidth: a = !1,
|
|
1084
1085
|
loading: l = !1,
|
|
1085
1086
|
leftIcon: n,
|
|
1086
1087
|
rightIcon: c,
|
|
@@ -1089,10 +1090,10 @@ const fe = {
|
|
|
1089
1090
|
...d
|
|
1090
1091
|
}, m) => {
|
|
1091
1092
|
const h = u || l, x = ar(
|
|
1092
|
-
|
|
1093
|
+
tr,
|
|
1093
1094
|
fe.variant[s],
|
|
1094
|
-
fe.size[
|
|
1095
|
-
|
|
1095
|
+
fe.size[t],
|
|
1096
|
+
a ? "w-full" : "",
|
|
1096
1097
|
r
|
|
1097
1098
|
);
|
|
1098
1099
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -1141,7 +1142,7 @@ const fe = {
|
|
|
1141
1142
|
);
|
|
1142
1143
|
}
|
|
1143
1144
|
);
|
|
1144
|
-
|
|
1145
|
+
D.displayName = "Button";
|
|
1145
1146
|
const ge = {
|
|
1146
1147
|
provider: {
|
|
1147
1148
|
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
@@ -1151,53 +1152,53 @@ const ge = {
|
|
|
1151
1152
|
right: "flex-row-reverse",
|
|
1152
1153
|
only: "justify-center"
|
|
1153
1154
|
}
|
|
1154
|
-
},
|
|
1155
|
+
}, nr = (...r) => r.filter(Boolean).join(" "), lr = P.forwardRef(
|
|
1155
1156
|
({
|
|
1156
1157
|
className: r,
|
|
1157
1158
|
provider: s,
|
|
1158
|
-
iconPosition:
|
|
1159
|
-
icon:
|
|
1159
|
+
iconPosition: t = "left",
|
|
1160
|
+
icon: a,
|
|
1160
1161
|
showText: l = !0,
|
|
1161
1162
|
children: n,
|
|
1162
1163
|
size: c = "default",
|
|
1163
1164
|
fullWidth: o = !0,
|
|
1164
1165
|
...u
|
|
1165
1166
|
}, d) => {
|
|
1166
|
-
const h =
|
|
1167
|
+
const h = a || {
|
|
1167
1168
|
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
1169
|
}[s], f = n || (l ? {
|
|
1169
1170
|
linkedin: "Continue with LinkedIn"
|
|
1170
|
-
}[s] : ""),
|
|
1171
|
+
}[s] : ""), g = nr(
|
|
1171
1172
|
"relative overflow-hidden transition-all duration-200",
|
|
1172
1173
|
ge.provider[s],
|
|
1173
|
-
ge.iconPosition[
|
|
1174
|
+
ge.iconPosition[t],
|
|
1174
1175
|
r
|
|
1175
1176
|
);
|
|
1176
1177
|
return /* @__PURE__ */ e.jsxs(
|
|
1177
|
-
|
|
1178
|
+
D,
|
|
1178
1179
|
{
|
|
1179
1180
|
ref: d,
|
|
1180
1181
|
variant: "none",
|
|
1181
|
-
className:
|
|
1182
|
+
className: g,
|
|
1182
1183
|
size: c,
|
|
1183
1184
|
fullWidth: o,
|
|
1184
|
-
leftIcon:
|
|
1185
|
-
rightIcon:
|
|
1185
|
+
leftIcon: t === "left" ? h : void 0,
|
|
1186
|
+
rightIcon: t === "right" ? h : void 0,
|
|
1186
1187
|
...u,
|
|
1187
1188
|
children: [
|
|
1188
|
-
|
|
1189
|
-
|
|
1189
|
+
t === "only" && h,
|
|
1190
|
+
t !== "only" && f
|
|
1190
1191
|
]
|
|
1191
1192
|
}
|
|
1192
1193
|
);
|
|
1193
1194
|
}
|
|
1194
1195
|
);
|
|
1195
|
-
|
|
1196
|
-
function
|
|
1196
|
+
lr.displayName = "SocialButton";
|
|
1197
|
+
function G({
|
|
1197
1198
|
variant: r,
|
|
1198
1199
|
title: s,
|
|
1199
|
-
message:
|
|
1200
|
-
icon:
|
|
1200
|
+
message: t,
|
|
1201
|
+
icon: a,
|
|
1201
1202
|
onClose: l,
|
|
1202
1203
|
className: n = ""
|
|
1203
1204
|
}) {
|
|
@@ -1233,10 +1234,10 @@ function q({
|
|
|
1233
1234
|
className: `${o.bg} border ${o.border} rounded-md p-3 ${n}`,
|
|
1234
1235
|
role: "alert",
|
|
1235
1236
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1236
|
-
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${o.text}`, children:
|
|
1237
|
+
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${o.text}`, children: a || o.icon }),
|
|
1237
1238
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1238
1239
|
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:
|
|
1240
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${o.text}`, children: t })
|
|
1240
1241
|
] }),
|
|
1241
1242
|
l && /* @__PURE__ */ e.jsx(
|
|
1242
1243
|
"button",
|
|
@@ -1251,11 +1252,11 @@ function q({
|
|
|
1251
1252
|
}
|
|
1252
1253
|
);
|
|
1253
1254
|
}
|
|
1254
|
-
function
|
|
1255
|
+
function Hr({
|
|
1255
1256
|
onFileChange: r,
|
|
1256
1257
|
onAnalyze: s,
|
|
1257
|
-
uploadedFile:
|
|
1258
|
-
fileError:
|
|
1258
|
+
uploadedFile: t,
|
|
1259
|
+
fileError: a,
|
|
1259
1260
|
onCancelUpload: l,
|
|
1260
1261
|
isAnalyzing: n = !1,
|
|
1261
1262
|
analyzeError: c,
|
|
@@ -1267,14 +1268,14 @@ function zr({
|
|
|
1267
1268
|
disabled: x = !1,
|
|
1268
1269
|
showAnalyzeButton: f = !0
|
|
1269
1270
|
}) {
|
|
1270
|
-
const
|
|
1271
|
-
|
|
1272
|
-
!
|
|
1273
|
-
}, [
|
|
1274
|
-
const
|
|
1275
|
-
N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ?
|
|
1276
|
-
},
|
|
1277
|
-
if (N.preventDefault(), N.stopPropagation(),
|
|
1271
|
+
const g = W(null), [y, V] = $(!1);
|
|
1272
|
+
_(() => {
|
|
1273
|
+
!t && g.current && (g.current.value = "");
|
|
1274
|
+
}, [t]);
|
|
1275
|
+
const R = (N) => {
|
|
1276
|
+
N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ? V(!0) : N.type === "dragleave" && V(!1);
|
|
1277
|
+
}, k = (N) => {
|
|
1278
|
+
if (N.preventDefault(), N.stopPropagation(), V(!1), N.dataTransfer.files && N.dataTransfer.files[0]) {
|
|
1278
1279
|
const O = {
|
|
1279
1280
|
target: {
|
|
1280
1281
|
files: N.dataTransfer.files
|
|
@@ -1289,7 +1290,7 @@ function zr({
|
|
|
1289
1290
|
/* @__PURE__ */ e.jsx(
|
|
1290
1291
|
"input",
|
|
1291
1292
|
{
|
|
1292
|
-
ref:
|
|
1293
|
+
ref: g,
|
|
1293
1294
|
type: "file",
|
|
1294
1295
|
accept: u,
|
|
1295
1296
|
onChange: r,
|
|
@@ -1301,12 +1302,12 @@ function zr({
|
|
|
1301
1302
|
/* @__PURE__ */ e.jsx(
|
|
1302
1303
|
"div",
|
|
1303
1304
|
{
|
|
1304
|
-
onDragEnter:
|
|
1305
|
-
onDragLeave:
|
|
1306
|
-
onDragOver:
|
|
1307
|
-
onDrop:
|
|
1308
|
-
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${
|
|
1309
|
-
children:
|
|
1305
|
+
onDragEnter: R,
|
|
1306
|
+
onDragLeave: R,
|
|
1307
|
+
onDragOver: R,
|
|
1308
|
+
onDrop: k,
|
|
1309
|
+
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${y ? "border-reseda-green-700 bg-reseda-green-50" : "border-border hover:border-reseda-green-700"} ${x ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1310
|
+
children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1310
1311
|
/* @__PURE__ */ e.jsx(
|
|
1311
1312
|
"svg",
|
|
1312
1313
|
{
|
|
@@ -1323,14 +1324,14 @@ function zr({
|
|
|
1323
1324
|
)
|
|
1324
1325
|
}
|
|
1325
1326
|
),
|
|
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:
|
|
1327
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: "File uploaded successfully" }) }),
|
|
1328
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-2 break-words", children: t.name }),
|
|
1328
1329
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted mt-1", children: [
|
|
1329
|
-
(
|
|
1330
|
+
(t.size / (1024 * 1024)).toFixed(2),
|
|
1330
1331
|
"MB"
|
|
1331
1332
|
] }),
|
|
1332
1333
|
/* @__PURE__ */ e.jsx(
|
|
1333
|
-
|
|
1334
|
+
D,
|
|
1334
1335
|
{
|
|
1335
1336
|
variant: "link",
|
|
1336
1337
|
type: "button",
|
|
@@ -1370,15 +1371,15 @@ function zr({
|
|
|
1370
1371
|
}
|
|
1371
1372
|
)
|
|
1372
1373
|
] }),
|
|
1373
|
-
|
|
1374
|
-
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1375
|
-
o && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1374
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: a }) }),
|
|
1375
|
+
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: c }) }),
|
|
1376
|
+
o && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: o }) }),
|
|
1376
1377
|
f && /* @__PURE__ */ e.jsx(
|
|
1377
|
-
|
|
1378
|
+
D,
|
|
1378
1379
|
{
|
|
1379
1380
|
variant: "default",
|
|
1380
1381
|
onClick: s,
|
|
1381
|
-
disabled: !
|
|
1382
|
+
disabled: !t || n || x,
|
|
1382
1383
|
loading: n,
|
|
1383
1384
|
fullWidth: !0,
|
|
1384
1385
|
className: "mt-3",
|
|
@@ -1387,12 +1388,12 @@ function zr({
|
|
|
1387
1388
|
)
|
|
1388
1389
|
] });
|
|
1389
1390
|
}
|
|
1390
|
-
const
|
|
1391
|
+
const or = P.forwardRef(
|
|
1391
1392
|
({
|
|
1392
1393
|
className: r = "",
|
|
1393
1394
|
error: s = !1,
|
|
1394
|
-
fullWidth:
|
|
1395
|
-
autoResize:
|
|
1395
|
+
fullWidth: t = !0,
|
|
1396
|
+
autoResize: a = !1,
|
|
1396
1397
|
maxLength: l,
|
|
1397
1398
|
showCharCount: n = !1,
|
|
1398
1399
|
disabled: c,
|
|
@@ -1400,54 +1401,54 @@ const lr = I.forwardRef(
|
|
|
1400
1401
|
onChange: u,
|
|
1401
1402
|
...d
|
|
1402
1403
|
}, m) => {
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1405
|
-
},
|
|
1404
|
+
const y = `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"} ${t ? "w-full" : ""} ${r}`, V = (k) => {
|
|
1405
|
+
a && (k.target.style.height = "auto", k.target.style.height = `${k.target.scrollHeight}px`), u?.(k);
|
|
1406
|
+
}, R = typeof o == "string" ? o.length : 0;
|
|
1406
1407
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
1407
1408
|
/* @__PURE__ */ e.jsx(
|
|
1408
1409
|
"textarea",
|
|
1409
1410
|
{
|
|
1410
1411
|
ref: m,
|
|
1411
|
-
className:
|
|
1412
|
+
className: y,
|
|
1412
1413
|
disabled: c,
|
|
1413
1414
|
value: o,
|
|
1414
|
-
onChange:
|
|
1415
|
+
onChange: V,
|
|
1415
1416
|
maxLength: l,
|
|
1416
1417
|
...d
|
|
1417
1418
|
}
|
|
1418
1419
|
),
|
|
1419
1420
|
n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
1420
|
-
|
|
1421
|
+
R,
|
|
1421
1422
|
" / ",
|
|
1422
1423
|
l
|
|
1423
1424
|
] })
|
|
1424
1425
|
] });
|
|
1425
1426
|
}
|
|
1426
1427
|
);
|
|
1427
|
-
|
|
1428
|
-
function
|
|
1428
|
+
or.displayName = "Textarea";
|
|
1429
|
+
function Wr({
|
|
1429
1430
|
options: r,
|
|
1430
1431
|
selectedValues: s,
|
|
1431
|
-
onSelectionChange:
|
|
1432
|
-
layout:
|
|
1432
|
+
onSelectionChange: t,
|
|
1433
|
+
layout: a = "vertical",
|
|
1433
1434
|
columns: l = 2,
|
|
1434
1435
|
disabled: n = !1,
|
|
1435
1436
|
error: c = !1
|
|
1436
1437
|
}) {
|
|
1437
1438
|
const o = (h) => {
|
|
1438
1439
|
const x = s.includes(h) ? s.filter((f) => f !== h) : [...s, h];
|
|
1439
|
-
|
|
1440
|
+
t(x);
|
|
1440
1441
|
}, u = {
|
|
1441
1442
|
vertical: "space-y-3",
|
|
1442
1443
|
horizontal: "flex flex-wrap gap-3",
|
|
1443
1444
|
grid: `grid grid-cols-${l} gap-3`
|
|
1444
|
-
}, d =
|
|
1445
|
+
}, d = a === "grid" ? "grid gap-3" : u[a], m = a === "grid" ? `md:grid-cols-${l}` : "";
|
|
1445
1446
|
return /* @__PURE__ */ e.jsx("div", { className: `${d} ${m}`, children: r.map((h) => {
|
|
1446
|
-
const x = s.includes(h.value),
|
|
1447
|
+
const x = s.includes(h.value), g = 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
1448
|
return /* @__PURE__ */ e.jsxs(
|
|
1448
1449
|
"label",
|
|
1449
1450
|
{
|
|
1450
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1451
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1451
1452
|
children: [
|
|
1452
1453
|
/* @__PURE__ */ e.jsx(
|
|
1453
1454
|
"input",
|
|
@@ -1471,21 +1472,21 @@ function Lr({
|
|
|
1471
1472
|
);
|
|
1472
1473
|
}) });
|
|
1473
1474
|
}
|
|
1474
|
-
function
|
|
1475
|
+
function qr({
|
|
1475
1476
|
options: r,
|
|
1476
1477
|
selectedValue: s,
|
|
1477
|
-
onSelectionChange:
|
|
1478
|
-
layout:
|
|
1478
|
+
onSelectionChange: t,
|
|
1479
|
+
layout: a = "vertical",
|
|
1479
1480
|
columns: l = 2,
|
|
1480
1481
|
disabled: n = !1,
|
|
1481
1482
|
error: c = !1,
|
|
1482
1483
|
name: o = "radio-group"
|
|
1483
1484
|
}) {
|
|
1484
|
-
const d =
|
|
1485
|
+
const d = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
|
|
1485
1486
|
vertical: "space-y-3",
|
|
1486
1487
|
horizontal: "flex flex-wrap gap-3",
|
|
1487
1488
|
grid: "grid gap-3"
|
|
1488
|
-
}[
|
|
1489
|
+
}[a];
|
|
1489
1490
|
return /* @__PURE__ */ e.jsx("div", { className: d, children: r.map((m) => {
|
|
1490
1491
|
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
1492
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -1500,7 +1501,7 @@ function Fr({
|
|
|
1500
1501
|
name: o,
|
|
1501
1502
|
value: m.value,
|
|
1502
1503
|
checked: h,
|
|
1503
|
-
onChange: () =>
|
|
1504
|
+
onChange: () => t(m.value),
|
|
1504
1505
|
disabled: n,
|
|
1505
1506
|
className: "sr-only"
|
|
1506
1507
|
}
|
|
@@ -1517,8 +1518,8 @@ function Fr({
|
|
|
1517
1518
|
);
|
|
1518
1519
|
}) });
|
|
1519
1520
|
}
|
|
1520
|
-
function
|
|
1521
|
-
const
|
|
1521
|
+
function Zr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
1522
|
+
const a = {
|
|
1522
1523
|
2: "grid-cols-2",
|
|
1523
1524
|
3: "grid-cols-3",
|
|
1524
1525
|
4: "grid-cols-4"
|
|
@@ -1528,7 +1529,7 @@ function Ur({ stats: r, columns: s = 4, className: a = "" }) {
|
|
|
1528
1529
|
warning: { bg: "bg-peach-yellow-50", text: "text-warning-600", value: "text-warning-900" },
|
|
1529
1530
|
"earth-yellow": { bg: "bg-sunglow-50", text: "text-earth-yellow-700", value: "text-earth-yellow-100" }
|
|
1530
1531
|
};
|
|
1531
|
-
return /* @__PURE__ */ e.jsx("div", { className: `grid ${
|
|
1532
|
+
return /* @__PURE__ */ e.jsx("div", { className: `grid ${a} gap-4 mb-6 bg-surface p-6 rounded-lg ${t}`, children: r.map((n, c) => {
|
|
1532
1533
|
const o = l[n.color || "moss-green"];
|
|
1533
1534
|
return /* @__PURE__ */ e.jsxs("div", { className: `${o.bg} rounded-lg p-4`, children: [
|
|
1534
1535
|
n.icon && /* @__PURE__ */ e.jsx("div", { className: "mb-2", children: n.icon }),
|
|
@@ -1537,16 +1538,16 @@ function Ur({ stats: r, columns: s = 4, className: a = "" }) {
|
|
|
1537
1538
|
] }, c);
|
|
1538
1539
|
}) });
|
|
1539
1540
|
}
|
|
1540
|
-
function
|
|
1541
|
+
function Gr({
|
|
1541
1542
|
items: r,
|
|
1542
1543
|
allowMultiple: s = !1,
|
|
1543
|
-
defaultOpenId:
|
|
1544
|
-
onOpenChange:
|
|
1544
|
+
defaultOpenId: t,
|
|
1545
|
+
onOpenChange: a,
|
|
1545
1546
|
className: l = ""
|
|
1546
1547
|
}) {
|
|
1547
|
-
const [n, c] =
|
|
1548
|
+
const [n, c] = $(() => t ? Array.isArray(t) ? t : [t] : []), o = (u) => {
|
|
1548
1549
|
let d;
|
|
1549
|
-
s ? d = n.includes(u) ? n.filter((m) => m !== u) : [...n, u] : d = n.includes(u) ? [] : [u], c(d),
|
|
1550
|
+
s ? d = n.includes(u) ? n.filter((m) => m !== u) : [...n, u] : d = n.includes(u) ? [] : [u], c(d), a?.(d);
|
|
1550
1551
|
};
|
|
1551
1552
|
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
|
|
1552
1553
|
const d = n.includes(u.id);
|
|
@@ -1566,7 +1567,7 @@ function Yr({
|
|
|
1566
1567
|
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
|
|
1567
1568
|
] }),
|
|
1568
1569
|
/* @__PURE__ */ e.jsx(
|
|
1569
|
-
|
|
1570
|
+
te,
|
|
1570
1571
|
{
|
|
1571
1572
|
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${d ? "rotate-180" : ""}`
|
|
1572
1573
|
}
|
|
@@ -1581,11 +1582,11 @@ function Yr({
|
|
|
1581
1582
|
);
|
|
1582
1583
|
}) });
|
|
1583
1584
|
}
|
|
1584
|
-
function
|
|
1585
|
+
function Jr({
|
|
1585
1586
|
icon: r,
|
|
1586
1587
|
title: s,
|
|
1587
|
-
subtitle:
|
|
1588
|
-
metadata:
|
|
1588
|
+
subtitle: t,
|
|
1589
|
+
metadata: a,
|
|
1589
1590
|
isSelected: l = !1,
|
|
1590
1591
|
isActive: n = !1,
|
|
1591
1592
|
variant: c = "default",
|
|
@@ -1593,9 +1594,9 @@ function Hr({
|
|
|
1593
1594
|
onClick: u,
|
|
1594
1595
|
className: d = ""
|
|
1595
1596
|
}) {
|
|
1596
|
-
const m = (
|
|
1597
|
-
const
|
|
1598
|
-
|
|
1597
|
+
const m = (g) => {
|
|
1598
|
+
const y = g.target;
|
|
1599
|
+
y.tagName === "BUTTON" || y.closest("button") || u?.(g);
|
|
1599
1600
|
}, x = (() => {
|
|
1600
1601
|
if (n)
|
|
1601
1602
|
switch (c) {
|
|
@@ -1620,61 +1621,167 @@ function Hr({
|
|
|
1620
1621
|
r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
|
|
1621
1622
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1622
1623
|
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: s }),
|
|
1623
|
-
|
|
1624
|
-
|
|
1624
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t }),
|
|
1625
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: a })
|
|
1625
1626
|
] })
|
|
1626
1627
|
] }),
|
|
1627
|
-
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: o.map((
|
|
1628
|
-
|
|
1628
|
+
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: o.map((g, y) => /* @__PURE__ */ e.jsx(
|
|
1629
|
+
D,
|
|
1629
1630
|
{
|
|
1630
|
-
variant:
|
|
1631
|
-
size:
|
|
1632
|
-
onClick:
|
|
1633
|
-
disabled:
|
|
1634
|
-
loading:
|
|
1635
|
-
title:
|
|
1636
|
-
className:
|
|
1637
|
-
leftIcon:
|
|
1638
|
-
children:
|
|
1631
|
+
variant: g.variant || "ghost",
|
|
1632
|
+
size: g.size || "sm",
|
|
1633
|
+
onClick: g.onClick,
|
|
1634
|
+
disabled: g.disabled,
|
|
1635
|
+
loading: g.loading,
|
|
1636
|
+
title: g.label,
|
|
1637
|
+
className: g.className,
|
|
1638
|
+
leftIcon: g.icon && g.size !== "icon" ? g.icon : void 0,
|
|
1639
|
+
children: g.size === "icon" ? g.icon : g.label
|
|
1639
1640
|
},
|
|
1640
|
-
|
|
1641
|
+
y
|
|
1641
1642
|
)) })
|
|
1642
1643
|
] })
|
|
1643
1644
|
}
|
|
1644
1645
|
);
|
|
1645
1646
|
}
|
|
1646
|
-
function
|
|
1647
|
+
function Xr({
|
|
1647
1648
|
children: r,
|
|
1648
1649
|
variant: s = "default",
|
|
1649
|
-
isActive:
|
|
1650
|
-
onClick:
|
|
1650
|
+
isActive: t = !1,
|
|
1651
|
+
onClick: a,
|
|
1651
1652
|
className: l = ""
|
|
1652
1653
|
}) {
|
|
1653
1654
|
const n = "rounded-lg transition-all", c = {
|
|
1654
1655
|
default: "border border-border p-4",
|
|
1655
1656
|
surface: "bg-surface-variant p-4",
|
|
1656
1657
|
elevated: "bg-surface shadow-md p-6",
|
|
1657
|
-
interactive: `border-2 p-4 cursor-pointer ${
|
|
1658
|
+
interactive: `border-2 p-4 cursor-pointer ${t ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
|
|
1658
1659
|
};
|
|
1659
1660
|
return /* @__PURE__ */ e.jsx(
|
|
1660
1661
|
"div",
|
|
1661
1662
|
{
|
|
1662
1663
|
className: `${n} ${c[s]} ${l}`,
|
|
1663
|
-
onClick:
|
|
1664
|
-
role:
|
|
1665
|
-
tabIndex:
|
|
1666
|
-
onKeyDown:
|
|
1667
|
-
(o.key === "Enter" || o.key === " ") &&
|
|
1664
|
+
onClick: a,
|
|
1665
|
+
role: a ? "button" : void 0,
|
|
1666
|
+
tabIndex: a ? 0 : void 0,
|
|
1667
|
+
onKeyDown: a ? (o) => {
|
|
1668
|
+
(o.key === "Enter" || o.key === " ") && a();
|
|
1668
1669
|
} : void 0,
|
|
1669
1670
|
children: r
|
|
1670
1671
|
}
|
|
1671
1672
|
);
|
|
1672
1673
|
}
|
|
1673
|
-
|
|
1674
|
+
const cr = 200, ir = {
|
|
1675
|
+
right: {
|
|
1676
|
+
sm: "w-full sm:w-[360px]",
|
|
1677
|
+
md: "w-full sm:w-[480px]",
|
|
1678
|
+
lg: "w-full sm:w-[640px]",
|
|
1679
|
+
full: "w-full"
|
|
1680
|
+
},
|
|
1681
|
+
left: {
|
|
1682
|
+
sm: "w-full sm:w-[360px]",
|
|
1683
|
+
md: "w-full sm:w-[480px]",
|
|
1684
|
+
lg: "w-full sm:w-[640px]",
|
|
1685
|
+
full: "w-full"
|
|
1686
|
+
},
|
|
1687
|
+
bottom: {
|
|
1688
|
+
sm: "h-[30vh]",
|
|
1689
|
+
md: "h-[50vh]",
|
|
1690
|
+
lg: "h-[70vh]",
|
|
1691
|
+
full: "h-full"
|
|
1692
|
+
}
|
|
1693
|
+
}, dr = {
|
|
1694
|
+
right: "top-0 right-0 h-full",
|
|
1695
|
+
left: "top-0 left-0 h-full",
|
|
1696
|
+
bottom: "left-0 right-0 bottom-0 w-full"
|
|
1697
|
+
};
|
|
1698
|
+
function Kr({
|
|
1699
|
+
open: r,
|
|
1700
|
+
onClose: s,
|
|
1701
|
+
title: t,
|
|
1702
|
+
children: a,
|
|
1703
|
+
footer: l,
|
|
1704
|
+
placement: n = "right",
|
|
1705
|
+
size: c = "md",
|
|
1706
|
+
closeOnOverlayClick: o = !0,
|
|
1707
|
+
closeOnEsc: u = !0,
|
|
1708
|
+
showCloseButton: d = !0,
|
|
1709
|
+
className: m = ""
|
|
1710
|
+
}) {
|
|
1711
|
+
const [h, x] = $(r), [f, g] = $(r), y = W(null);
|
|
1712
|
+
if (_(() => {
|
|
1713
|
+
if (r) {
|
|
1714
|
+
y.current !== null && (window.clearTimeout(y.current), y.current = null), x(!0), typeof window < "u" ? window.requestAnimationFrame(() => g(!0)) : g(!0);
|
|
1715
|
+
return;
|
|
1716
|
+
}
|
|
1717
|
+
h && (g(!1), typeof window < "u" ? y.current = window.setTimeout(() => {
|
|
1718
|
+
x(!1);
|
|
1719
|
+
}, cr) : x(!1));
|
|
1720
|
+
}, [r, h]), _(() => () => {
|
|
1721
|
+
y.current !== null && window.clearTimeout(y.current);
|
|
1722
|
+
}, []), _(() => {
|
|
1723
|
+
if (!r || typeof document > "u")
|
|
1724
|
+
return;
|
|
1725
|
+
const k = document.body.style.overflow;
|
|
1726
|
+
return document.body.style.overflow = "hidden", () => {
|
|
1727
|
+
document.body.style.overflow = k;
|
|
1728
|
+
};
|
|
1729
|
+
}, [r]), _(() => {
|
|
1730
|
+
if (!r || !u || typeof window > "u")
|
|
1731
|
+
return;
|
|
1732
|
+
const k = (N) => {
|
|
1733
|
+
N.key === "Escape" && s();
|
|
1734
|
+
};
|
|
1735
|
+
return window.addEventListener("keydown", k), () => {
|
|
1736
|
+
window.removeEventListener("keydown", k);
|
|
1737
|
+
};
|
|
1738
|
+
}, [r, u, s]), !h || typeof document > "u")
|
|
1739
|
+
return null;
|
|
1740
|
+
const V = f ? "translate-x-0 translate-y-0 opacity-100" : n === "right" ? "translate-x-full opacity-0" : n === "left" ? "-translate-x-full opacity-0" : "translate-y-full opacity-0", R = [
|
|
1741
|
+
"fixed z-[60] bg-surface border-border shadow-xl flex flex-col transition-transform transition-opacity duration-200 ease-out",
|
|
1742
|
+
dr[n],
|
|
1743
|
+
ir[n][c],
|
|
1744
|
+
n === "bottom" ? "rounded-t-xl border-t" : n === "left" ? "border-r" : "border-l",
|
|
1745
|
+
V,
|
|
1746
|
+
m
|
|
1747
|
+
].filter(Boolean).join(" ");
|
|
1748
|
+
return Se(
|
|
1749
|
+
/* @__PURE__ */ e.jsxs("div", { className: "fixed inset-0 z-50", children: [
|
|
1750
|
+
/* @__PURE__ */ e.jsx(
|
|
1751
|
+
"button",
|
|
1752
|
+
{
|
|
1753
|
+
type: "button",
|
|
1754
|
+
"aria-label": "Close drawer overlay",
|
|
1755
|
+
className: `absolute inset-0 bg-black/40 transition-opacity duration-200 ${f ? "opacity-100" : "opacity-0 pointer-events-none"}`,
|
|
1756
|
+
onClick: o ? s : void 0
|
|
1757
|
+
}
|
|
1758
|
+
),
|
|
1759
|
+
/* @__PURE__ */ e.jsxs("section", { role: "dialog", "aria-modal": "true", className: R, children: [
|
|
1760
|
+
/* @__PURE__ */ e.jsxs("header", { className: "flex items-center justify-between border-b border-border px-4 py-3", children: [
|
|
1761
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-semibold text-text-primary", children: t }),
|
|
1762
|
+
d ? /* @__PURE__ */ e.jsx(
|
|
1763
|
+
"button",
|
|
1764
|
+
{
|
|
1765
|
+
type: "button",
|
|
1766
|
+
onClick: s,
|
|
1767
|
+
className: "rounded-md p-1 text-text-secondary hover:bg-surface-variant hover:text-text-primary",
|
|
1768
|
+
"aria-label": "Close drawer",
|
|
1769
|
+
children: /* @__PURE__ */ e.jsx(we, { className: "h-5 w-5" })
|
|
1770
|
+
}
|
|
1771
|
+
) : null
|
|
1772
|
+
] }),
|
|
1773
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex-1 overflow-auto px-4 py-3 text-text-primary", children: a }),
|
|
1774
|
+
l ? /* @__PURE__ */ e.jsx("footer", { className: "border-t border-border px-4 py-3", children: l }) : null
|
|
1775
|
+
] })
|
|
1776
|
+
] }),
|
|
1777
|
+
document.body
|
|
1778
|
+
);
|
|
1779
|
+
}
|
|
1780
|
+
function Qr({
|
|
1674
1781
|
title: r,
|
|
1675
1782
|
children: s,
|
|
1676
|
-
subtitle:
|
|
1677
|
-
spacing:
|
|
1783
|
+
subtitle: t,
|
|
1784
|
+
spacing: a = "normal",
|
|
1678
1785
|
className: l = ""
|
|
1679
1786
|
}) {
|
|
1680
1787
|
const n = {
|
|
@@ -1682,61 +1789,61 @@ function Zr({
|
|
|
1682
1789
|
normal: "space-y-6",
|
|
1683
1790
|
spacious: "space-y-8"
|
|
1684
1791
|
};
|
|
1685
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${n[
|
|
1792
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${n[a]} ${l}`, children: [
|
|
1686
1793
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1687
1794
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: r }),
|
|
1688
|
-
|
|
1795
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
|
|
1689
1796
|
] }),
|
|
1690
1797
|
s
|
|
1691
1798
|
] });
|
|
1692
1799
|
}
|
|
1693
|
-
function
|
|
1800
|
+
function es({
|
|
1694
1801
|
title: r,
|
|
1695
1802
|
subtitle: s,
|
|
1696
|
-
metadata:
|
|
1697
|
-
sections:
|
|
1803
|
+
metadata: t,
|
|
1804
|
+
sections: a,
|
|
1698
1805
|
className: l = ""
|
|
1699
1806
|
}) {
|
|
1700
1807
|
return /* @__PURE__ */ e.jsxs("div", { className: `space-y-6 ${l}`, children: [
|
|
1701
1808
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1702
1809
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between mb-1", children: [
|
|
1703
1810
|
/* @__PURE__ */ e.jsx("h2", { className: "text-xl font-semibold text-text-primary", children: r }),
|
|
1704
|
-
|
|
1811
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: t })
|
|
1705
1812
|
] }),
|
|
1706
1813
|
s && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary", children: s })
|
|
1707
1814
|
] }),
|
|
1708
|
-
|
|
1815
|
+
a.map((n, c) => /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1709
1816
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary mb-3", children: n.heading }),
|
|
1710
1817
|
n.content
|
|
1711
1818
|
] }, c))
|
|
1712
1819
|
] });
|
|
1713
1820
|
}
|
|
1714
|
-
function
|
|
1821
|
+
function rs({
|
|
1715
1822
|
title: r,
|
|
1716
1823
|
description: s,
|
|
1717
|
-
centered:
|
|
1718
|
-
titleSize:
|
|
1824
|
+
centered: t = !1,
|
|
1825
|
+
titleSize: a = "md"
|
|
1719
1826
|
}) {
|
|
1720
1827
|
const l = {
|
|
1721
1828
|
sm: "text-2xl",
|
|
1722
1829
|
md: "text-3xl",
|
|
1723
1830
|
lg: "text-4xl"
|
|
1724
|
-
}, n =
|
|
1831
|
+
}, n = t ? "text-center" : "", c = t ? "max-w-2xl mx-auto" : "";
|
|
1725
1832
|
return /* @__PURE__ */ e.jsxs("div", { className: `mb-8 ${n}`, children: [
|
|
1726
|
-
/* @__PURE__ */ e.jsx("h1", { className: `${l[
|
|
1833
|
+
/* @__PURE__ */ e.jsx("h1", { className: `${l[a]} font-bold text-text-primary`, children: r }),
|
|
1727
1834
|
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${c}`, children: s })
|
|
1728
1835
|
] });
|
|
1729
1836
|
}
|
|
1730
|
-
function
|
|
1837
|
+
function ss({
|
|
1731
1838
|
icon: r,
|
|
1732
1839
|
title: s,
|
|
1733
|
-
description:
|
|
1734
|
-
isSelected:
|
|
1840
|
+
description: t,
|
|
1841
|
+
isSelected: a = !1,
|
|
1735
1842
|
onClick: l,
|
|
1736
1843
|
disabled: n = !1,
|
|
1737
1844
|
className: c = ""
|
|
1738
1845
|
}) {
|
|
1739
|
-
const o = "p-4 border rounded-lg transition-all text-center cursor-pointer", u =
|
|
1846
|
+
const o = "p-4 border rounded-lg transition-all text-center cursor-pointer", u = a ? "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
1847
|
return /* @__PURE__ */ e.jsxs(
|
|
1741
1848
|
"div",
|
|
1742
1849
|
{
|
|
@@ -1750,18 +1857,18 @@ function Jr({
|
|
|
1750
1857
|
children: [
|
|
1751
1858
|
r && /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-text-secondary", children: r }) }),
|
|
1752
1859
|
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary mb-1", children: s }),
|
|
1753
|
-
|
|
1754
|
-
|
|
1860
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-secondary", children: t }),
|
|
1861
|
+
a && /* @__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
1862
|
]
|
|
1756
1863
|
}
|
|
1757
1864
|
);
|
|
1758
1865
|
}
|
|
1759
|
-
const
|
|
1866
|
+
const ur = P.forwardRef(
|
|
1760
1867
|
({
|
|
1761
1868
|
value: r,
|
|
1762
1869
|
onChange: s,
|
|
1763
|
-
min:
|
|
1764
|
-
max:
|
|
1870
|
+
min: t = 0,
|
|
1871
|
+
max: a = 100,
|
|
1765
1872
|
step: l = 1,
|
|
1766
1873
|
showValue: n = !0,
|
|
1767
1874
|
showLabels: c = !1,
|
|
@@ -1772,8 +1879,8 @@ const or = I.forwardRef(
|
|
|
1772
1879
|
disabled: h,
|
|
1773
1880
|
className: x = "",
|
|
1774
1881
|
...f
|
|
1775
|
-
},
|
|
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 -
|
|
1882
|
+
}, g) => {
|
|
1883
|
+
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 - t) / (a - t) * 100;
|
|
1777
1884
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1778
1885
|
c && (o || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1779
1886
|
o && /* @__PURE__ */ e.jsx("span", { children: o }),
|
|
@@ -1783,13 +1890,13 @@ const or = I.forwardRef(
|
|
|
1783
1890
|
/* @__PURE__ */ e.jsx(
|
|
1784
1891
|
"input",
|
|
1785
1892
|
{
|
|
1786
|
-
ref:
|
|
1893
|
+
ref: g,
|
|
1787
1894
|
type: "range",
|
|
1788
|
-
min:
|
|
1789
|
-
max:
|
|
1895
|
+
min: t,
|
|
1896
|
+
max: a,
|
|
1790
1897
|
step: l,
|
|
1791
1898
|
value: r,
|
|
1792
|
-
onChange: (
|
|
1899
|
+
onChange: (L) => s(Number(L.target.value)),
|
|
1793
1900
|
disabled: h,
|
|
1794
1901
|
className: N,
|
|
1795
1902
|
...f
|
|
@@ -1807,21 +1914,21 @@ const or = I.forwardRef(
|
|
|
1807
1914
|
] });
|
|
1808
1915
|
}
|
|
1809
1916
|
);
|
|
1810
|
-
|
|
1811
|
-
function
|
|
1917
|
+
ur.displayName = "Slider";
|
|
1918
|
+
function mr({
|
|
1812
1919
|
title: r,
|
|
1813
1920
|
titleId: s,
|
|
1814
|
-
...
|
|
1815
|
-
},
|
|
1921
|
+
...t
|
|
1922
|
+
}, a) {
|
|
1816
1923
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1817
1924
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1818
1925
|
viewBox: "0 0 24 24",
|
|
1819
1926
|
fill: "currentColor",
|
|
1820
1927
|
"aria-hidden": "true",
|
|
1821
1928
|
"data-slot": "icon",
|
|
1822
|
-
ref:
|
|
1929
|
+
ref: a,
|
|
1823
1930
|
"aria-labelledby": s
|
|
1824
|
-
},
|
|
1931
|
+
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1825
1932
|
id: s
|
|
1826
1933
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1827
1934
|
fillRule: "evenodd",
|
|
@@ -1831,21 +1938,21 @@ function cr({
|
|
|
1831
1938
|
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
1939
|
}));
|
|
1833
1940
|
}
|
|
1834
|
-
const
|
|
1835
|
-
function
|
|
1941
|
+
const xr = /* @__PURE__ */ j.forwardRef(mr);
|
|
1942
|
+
function hr({
|
|
1836
1943
|
title: r,
|
|
1837
1944
|
titleId: s,
|
|
1838
|
-
...
|
|
1839
|
-
},
|
|
1945
|
+
...t
|
|
1946
|
+
}, a) {
|
|
1840
1947
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1841
1948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1842
1949
|
viewBox: "0 0 24 24",
|
|
1843
1950
|
fill: "currentColor",
|
|
1844
1951
|
"aria-hidden": "true",
|
|
1845
1952
|
"data-slot": "icon",
|
|
1846
|
-
ref:
|
|
1953
|
+
ref: a,
|
|
1847
1954
|
"aria-labelledby": s
|
|
1848
|
-
},
|
|
1955
|
+
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1849
1956
|
id: s
|
|
1850
1957
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1851
1958
|
fillRule: "evenodd",
|
|
@@ -1853,21 +1960,21 @@ function dr({
|
|
|
1853
1960
|
clipRule: "evenodd"
|
|
1854
1961
|
}));
|
|
1855
1962
|
}
|
|
1856
|
-
const
|
|
1857
|
-
function
|
|
1963
|
+
const fr = /* @__PURE__ */ j.forwardRef(hr);
|
|
1964
|
+
function gr({
|
|
1858
1965
|
title: r,
|
|
1859
1966
|
titleId: s,
|
|
1860
|
-
...
|
|
1861
|
-
},
|
|
1967
|
+
...t
|
|
1968
|
+
}, a) {
|
|
1862
1969
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1863
1970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1864
1971
|
viewBox: "0 0 24 24",
|
|
1865
1972
|
fill: "currentColor",
|
|
1866
1973
|
"aria-hidden": "true",
|
|
1867
1974
|
"data-slot": "icon",
|
|
1868
|
-
ref:
|
|
1975
|
+
ref: a,
|
|
1869
1976
|
"aria-labelledby": s
|
|
1870
|
-
},
|
|
1977
|
+
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1871
1978
|
id: s
|
|
1872
1979
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1873
1980
|
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"
|
|
@@ -1875,27 +1982,27 @@ function mr({
|
|
|
1875
1982
|
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
1983
|
}));
|
|
1877
1984
|
}
|
|
1878
|
-
const
|
|
1879
|
-
function
|
|
1985
|
+
const br = /* @__PURE__ */ j.forwardRef(gr);
|
|
1986
|
+
function vr({
|
|
1880
1987
|
title: r,
|
|
1881
1988
|
titleId: s,
|
|
1882
|
-
...
|
|
1883
|
-
},
|
|
1989
|
+
...t
|
|
1990
|
+
}, a) {
|
|
1884
1991
|
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1885
1992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1886
1993
|
viewBox: "0 0 24 24",
|
|
1887
1994
|
fill: "currentColor",
|
|
1888
1995
|
"aria-hidden": "true",
|
|
1889
1996
|
"data-slot": "icon",
|
|
1890
|
-
ref:
|
|
1997
|
+
ref: a,
|
|
1891
1998
|
"aria-labelledby": s
|
|
1892
|
-
},
|
|
1999
|
+
}, t), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1893
2000
|
id: s
|
|
1894
2001
|
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1895
2002
|
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
2003
|
}));
|
|
1897
2004
|
}
|
|
1898
|
-
const
|
|
2005
|
+
const pr = /* @__PURE__ */ j.forwardRef(vr), jr = {
|
|
1899
2006
|
neutral: {
|
|
1900
2007
|
selectedContainer: "border-gray-300 bg-gray-50",
|
|
1901
2008
|
selectedIndicator: "text-gray-500",
|
|
@@ -1912,11 +2019,11 @@ const fr = /* @__PURE__ */ j.forwardRef(hr), gr = {
|
|
|
1912
2019
|
inputAccent: "accent-blue-600"
|
|
1913
2020
|
}
|
|
1914
2021
|
};
|
|
1915
|
-
function
|
|
2022
|
+
function ts({
|
|
1916
2023
|
id: r,
|
|
1917
2024
|
name: s,
|
|
1918
|
-
checked:
|
|
1919
|
-
onChange:
|
|
2025
|
+
checked: t,
|
|
2026
|
+
onChange: a,
|
|
1920
2027
|
primaryText: l,
|
|
1921
2028
|
secondaryText: n,
|
|
1922
2029
|
tertiaryText: c,
|
|
@@ -1925,7 +2032,7 @@ function Xr({
|
|
|
1925
2032
|
disabled: d = !1,
|
|
1926
2033
|
className: m = ""
|
|
1927
2034
|
}) {
|
|
1928
|
-
const h =
|
|
2035
|
+
const h = jr[o], x = t ? h.selectedContainer : "border-gray-200", f = d ? "cursor-not-allowed opacity-60" : "cursor-pointer hover:bg-gray-50";
|
|
1929
2036
|
return /* @__PURE__ */ e.jsxs(
|
|
1930
2037
|
"label",
|
|
1931
2038
|
{
|
|
@@ -1937,9 +2044,9 @@ function Xr({
|
|
|
1937
2044
|
type: "radio",
|
|
1938
2045
|
name: s,
|
|
1939
2046
|
className: `mt-0.5 ${h.inputAccent}`,
|
|
1940
|
-
checked:
|
|
2047
|
+
checked: t,
|
|
1941
2048
|
disabled: d,
|
|
1942
|
-
onChange: () =>
|
|
2049
|
+
onChange: () => a(r)
|
|
1943
2050
|
}
|
|
1944
2051
|
),
|
|
1945
2052
|
/* @__PURE__ */ e.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
@@ -1947,31 +2054,31 @@ function Xr({
|
|
|
1947
2054
|
n ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-500", children: n }) : null,
|
|
1948
2055
|
c ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-400", children: c }) : null
|
|
1949
2056
|
] }),
|
|
1950
|
-
u &&
|
|
2057
|
+
u && t ? /* @__PURE__ */ e.jsx(fr, { className: `h-4 w-4 mt-0.5 shrink-0 ${h.selectedIndicator}` }) : null
|
|
1951
2058
|
]
|
|
1952
2059
|
}
|
|
1953
2060
|
);
|
|
1954
2061
|
}
|
|
1955
|
-
function
|
|
2062
|
+
function yr({
|
|
1956
2063
|
id: r,
|
|
1957
2064
|
index: s,
|
|
1958
|
-
previewText:
|
|
1959
|
-
defaultExpanded:
|
|
2065
|
+
previewText: t,
|
|
2066
|
+
defaultExpanded: a = !1,
|
|
1960
2067
|
children: l,
|
|
1961
2068
|
tooltipContent: n,
|
|
1962
2069
|
onRemove: c,
|
|
1963
2070
|
className: o = ""
|
|
1964
2071
|
}) {
|
|
1965
|
-
const [u, d] =
|
|
1966
|
-
transform:
|
|
1967
|
-
transition:
|
|
1968
|
-
opacity:
|
|
2072
|
+
const [u, d] = $(a), { attributes: m, listeners: h, setNodeRef: x, transform: f, transition: g, isDragging: y } = Be({ id: r }), V = {
|
|
2073
|
+
transform: Me.Transform.toString(f),
|
|
2074
|
+
transition: g,
|
|
2075
|
+
opacity: y ? 0.5 : 1
|
|
1969
2076
|
};
|
|
1970
2077
|
return /* @__PURE__ */ e.jsx(
|
|
1971
2078
|
"div",
|
|
1972
2079
|
{
|
|
1973
2080
|
ref: x,
|
|
1974
|
-
style:
|
|
2081
|
+
style: V,
|
|
1975
2082
|
className: `border border-border rounded-md bg-surface-variant ${o}`,
|
|
1976
2083
|
children: u ? (
|
|
1977
2084
|
// ── Expanded ──────────────────────────────────────────────────────────
|
|
@@ -2000,7 +2107,7 @@ function br({
|
|
|
2000
2107
|
}
|
|
2001
2108
|
),
|
|
2002
2109
|
/* @__PURE__ */ e.jsx(
|
|
2003
|
-
|
|
2110
|
+
D,
|
|
2004
2111
|
{
|
|
2005
2112
|
type: "button",
|
|
2006
2113
|
variant: "ghost",
|
|
@@ -2012,7 +2119,7 @@ function br({
|
|
|
2012
2119
|
}
|
|
2013
2120
|
),
|
|
2014
2121
|
/* @__PURE__ */ e.jsx(
|
|
2015
|
-
|
|
2122
|
+
D,
|
|
2016
2123
|
{
|
|
2017
2124
|
type: "button",
|
|
2018
2125
|
variant: "ghost",
|
|
@@ -2046,11 +2153,11 @@ function br({
|
|
|
2046
2153
|
{
|
|
2047
2154
|
className: "flex-1 text-sm text-text-secondary truncate cursor-pointer select-none",
|
|
2048
2155
|
onClick: () => d(!0),
|
|
2049
|
-
children:
|
|
2156
|
+
children: t
|
|
2050
2157
|
}
|
|
2051
2158
|
),
|
|
2052
2159
|
/* @__PURE__ */ e.jsx(
|
|
2053
|
-
|
|
2160
|
+
D,
|
|
2054
2161
|
{
|
|
2055
2162
|
type: "button",
|
|
2056
2163
|
variant: "ghost",
|
|
@@ -2062,7 +2169,7 @@ function br({
|
|
|
2062
2169
|
}
|
|
2063
2170
|
),
|
|
2064
2171
|
/* @__PURE__ */ e.jsx(
|
|
2065
|
-
|
|
2172
|
+
D,
|
|
2066
2173
|
{
|
|
2067
2174
|
type: "button",
|
|
2068
2175
|
variant: "ghost",
|
|
@@ -2080,8 +2187,8 @@ function br({
|
|
|
2080
2187
|
}
|
|
2081
2188
|
);
|
|
2082
2189
|
}
|
|
2083
|
-
|
|
2084
|
-
const
|
|
2190
|
+
yr.displayName = "SortableItem";
|
|
2191
|
+
const wr = {
|
|
2085
2192
|
bg: "bg-indigo-600",
|
|
2086
2193
|
activeBg: "bg-indigo-700",
|
|
2087
2194
|
text: "text-indigo-200",
|
|
@@ -2089,20 +2196,20 @@ const vr = {
|
|
|
2089
2196
|
hoverBg: "hover:bg-indigo-700",
|
|
2090
2197
|
hoverText: "hover:text-white"
|
|
2091
2198
|
};
|
|
2092
|
-
function
|
|
2199
|
+
function A(...r) {
|
|
2093
2200
|
return r.filter(Boolean).join(" ");
|
|
2094
2201
|
}
|
|
2095
2202
|
function be({ item: r, colorScheme: s }) {
|
|
2096
|
-
const [
|
|
2203
|
+
const [t, a] = $(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
|
|
2097
2204
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
2098
2205
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
2099
2206
|
"a",
|
|
2100
2207
|
{
|
|
2101
2208
|
href: l ? void 0 : r.href,
|
|
2102
2209
|
onClick: (n) => {
|
|
2103
|
-
l && (n.preventDefault(),
|
|
2210
|
+
l && (n.preventDefault(), a(!t));
|
|
2104
2211
|
},
|
|
2105
|
-
className:
|
|
2212
|
+
className: A(
|
|
2106
2213
|
r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
2107
2214
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
2108
2215
|
l ? "cursor-pointer" : ""
|
|
@@ -2113,7 +2220,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2113
2220
|
r.icon,
|
|
2114
2221
|
{
|
|
2115
2222
|
"aria-hidden": "true",
|
|
2116
|
-
className:
|
|
2223
|
+
className: A(
|
|
2117
2224
|
r.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
2118
2225
|
"size-6 shrink-0"
|
|
2119
2226
|
)
|
|
@@ -2122,11 +2229,11 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2122
2229
|
r.name
|
|
2123
2230
|
] }),
|
|
2124
2231
|
l && /* @__PURE__ */ e.jsx(
|
|
2125
|
-
|
|
2232
|
+
te,
|
|
2126
2233
|
{
|
|
2127
|
-
className:
|
|
2234
|
+
className: A(
|
|
2128
2235
|
"size-5 shrink-0 transition-transform",
|
|
2129
|
-
|
|
2236
|
+
t ? "rotate-180" : "",
|
|
2130
2237
|
r.current ? s.activeText : s.text
|
|
2131
2238
|
)
|
|
2132
2239
|
}
|
|
@@ -2134,11 +2241,11 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2134
2241
|
]
|
|
2135
2242
|
}
|
|
2136
2243
|
) }),
|
|
2137
|
-
l &&
|
|
2244
|
+
l && t && /* @__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(
|
|
2138
2245
|
"a",
|
|
2139
2246
|
{
|
|
2140
2247
|
href: n.href,
|
|
2141
|
-
className:
|
|
2248
|
+
className: A(
|
|
2142
2249
|
n.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
2143
2250
|
"group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
|
|
2144
2251
|
),
|
|
@@ -2147,7 +2254,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2147
2254
|
n.icon,
|
|
2148
2255
|
{
|
|
2149
2256
|
"aria-hidden": "true",
|
|
2150
|
-
className:
|
|
2257
|
+
className: A(
|
|
2151
2258
|
n.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
2152
2259
|
"size-5 shrink-0"
|
|
2153
2260
|
)
|
|
@@ -2159,12 +2266,12 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2159
2266
|
) }, n.name)) })
|
|
2160
2267
|
] });
|
|
2161
2268
|
}
|
|
2162
|
-
function
|
|
2163
|
-
const [l, n] =
|
|
2269
|
+
function as({ company: r, profile: s, navigation: t, colorScheme: a = wr }) {
|
|
2270
|
+
const [l, n] = $(!1);
|
|
2164
2271
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
2165
|
-
/* @__PURE__ */ e.jsxs(
|
|
2272
|
+
/* @__PURE__ */ e.jsxs(_e, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
2166
2273
|
/* @__PURE__ */ e.jsx(
|
|
2167
|
-
|
|
2274
|
+
De,
|
|
2168
2275
|
{
|
|
2169
2276
|
transition: !0,
|
|
2170
2277
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
@@ -2176,11 +2283,11 @@ function Kr({ company: r, profile: s, navigation: a, colorScheme: t = vr }) {
|
|
|
2176
2283
|
transition: !0,
|
|
2177
2284
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
2178
2285
|
children: [
|
|
2179
|
-
/* @__PURE__ */ e.jsx(
|
|
2286
|
+
/* @__PURE__ */ e.jsx(Ie, { 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: [
|
|
2180
2287
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
2181
|
-
/* @__PURE__ */ e.jsx(
|
|
2288
|
+
/* @__PURE__ */ e.jsx(we, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
2182
2289
|
] }) }) }),
|
|
2183
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2290
|
+
/* @__PURE__ */ e.jsxs("div", { className: A("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
|
|
2184
2291
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
2185
2292
|
"img",
|
|
2186
2293
|
{
|
|
@@ -2189,13 +2296,13 @@ function Kr({ company: r, profile: s, navigation: a, colorScheme: t = vr }) {
|
|
|
2189
2296
|
className: "h-8 w-auto"
|
|
2190
2297
|
}
|
|
2191
2298
|
) }),
|
|
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:
|
|
2299
|
+
/* @__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: t.map((c) => /* @__PURE__ */ e.jsx(be, { item: c, colorScheme: a }, c.name)) }) }) }) })
|
|
2193
2300
|
] })
|
|
2194
2301
|
]
|
|
2195
2302
|
}
|
|
2196
2303
|
) })
|
|
2197
2304
|
] }),
|
|
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:
|
|
2305
|
+
/* @__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: A("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
|
|
2199
2306
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
2200
2307
|
"img",
|
|
2201
2308
|
{
|
|
@@ -2205,15 +2312,15 @@ function Kr({ company: r, profile: s, navigation: a, colorScheme: t = vr }) {
|
|
|
2205
2312
|
}
|
|
2206
2313
|
) }),
|
|
2207
2314
|
/* @__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: [
|
|
2208
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children:
|
|
2315
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(be, { item: c, colorScheme: a }, c.name)) }) }),
|
|
2209
2316
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
2210
2317
|
"a",
|
|
2211
2318
|
{
|
|
2212
2319
|
href: "#",
|
|
2213
|
-
className:
|
|
2320
|
+
className: A(
|
|
2214
2321
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
2215
|
-
|
|
2216
|
-
|
|
2322
|
+
a.activeText,
|
|
2323
|
+
a.hoverBg
|
|
2217
2324
|
),
|
|
2218
2325
|
children: [
|
|
2219
2326
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2221,7 +2328,7 @@ function Kr({ company: r, profile: s, navigation: a, colorScheme: t = vr }) {
|
|
|
2221
2328
|
{
|
|
2222
2329
|
alt: s.name,
|
|
2223
2330
|
src: s.image,
|
|
2224
|
-
className:
|
|
2331
|
+
className: A("size-8 rounded-full", a.activeBg)
|
|
2225
2332
|
}
|
|
2226
2333
|
),
|
|
2227
2334
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
@@ -2231,12 +2338,12 @@ function Kr({ company: r, profile: s, navigation: a, colorScheme: t = vr }) {
|
|
|
2231
2338
|
) })
|
|
2232
2339
|
] }) })
|
|
2233
2340
|
] }) }),
|
|
2234
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2235
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className:
|
|
2341
|
+
/* @__PURE__ */ e.jsxs("div", { className: A("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden", a.bg), children: [
|
|
2342
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: A("-m-2.5 p-2.5 lg:hidden", a.text), children: [
|
|
2236
2343
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
2237
2344
|
/* @__PURE__ */ e.jsx(Ae, { "aria-hidden": "true", className: "size-6" })
|
|
2238
2345
|
] }),
|
|
2239
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2346
|
+
/* @__PURE__ */ e.jsx("div", { className: A("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
|
|
2240
2347
|
/* @__PURE__ */ e.jsxs("a", { href: "#", children: [
|
|
2241
2348
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
2242
2349
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2244,14 +2351,14 @@ function Kr({ company: r, profile: s, navigation: a, colorScheme: t = vr }) {
|
|
|
2244
2351
|
{
|
|
2245
2352
|
alt: s.name,
|
|
2246
2353
|
src: s.image,
|
|
2247
|
-
className:
|
|
2354
|
+
className: A("size-8 rounded-full", a.activeBg)
|
|
2248
2355
|
}
|
|
2249
2356
|
)
|
|
2250
2357
|
] })
|
|
2251
2358
|
] })
|
|
2252
2359
|
] }) });
|
|
2253
2360
|
}
|
|
2254
|
-
const
|
|
2361
|
+
const Nr = {
|
|
2255
2362
|
activeBg: "bg-reseda-green-700",
|
|
2256
2363
|
activeText: "text-white",
|
|
2257
2364
|
completedBg: "bg-success-500",
|
|
@@ -2262,57 +2369,57 @@ const pr = {
|
|
|
2262
2369
|
labelInactiveText: "text-text-muted",
|
|
2263
2370
|
connectorBg: "bg-border"
|
|
2264
2371
|
};
|
|
2265
|
-
function
|
|
2266
|
-
const
|
|
2372
|
+
function ns({ currentStep: r, steps: s, colorConfig: t }) {
|
|
2373
|
+
const a = t || Nr;
|
|
2267
2374
|
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: [
|
|
2268
2375
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
2269
2376
|
/* @__PURE__ */ e.jsx(
|
|
2270
2377
|
"span",
|
|
2271
2378
|
{
|
|
2272
|
-
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === l.number ? `${
|
|
2379
|
+
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === l.number ? `${a.activeBg} ${a.activeText}` : r > l.number ? `${a.completedBg} ${a.completedText}` : `border-2 ${a.incompleteBorder} ${a.incompleteText}`}`,
|
|
2273
2380
|
children: l.number
|
|
2274
2381
|
}
|
|
2275
2382
|
),
|
|
2276
2383
|
/* @__PURE__ */ e.jsx(
|
|
2277
2384
|
"span",
|
|
2278
2385
|
{
|
|
2279
|
-
className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= l.number ?
|
|
2386
|
+
className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= l.number ? a.labelActiveText : a.labelInactiveText}`,
|
|
2280
2387
|
children: l.label
|
|
2281
2388
|
}
|
|
2282
2389
|
)
|
|
2283
2390
|
] }),
|
|
2284
|
-
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${
|
|
2391
|
+
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
|
|
2285
2392
|
] }, l.number)) }) });
|
|
2286
2393
|
}
|
|
2287
|
-
const
|
|
2394
|
+
const Cr = {
|
|
2288
2395
|
activeText: "text-reseda-green-700",
|
|
2289
2396
|
activeBorder: "border-reseda-green-700",
|
|
2290
2397
|
inactiveText: "text-text-secondary",
|
|
2291
2398
|
inactiveHoverText: "hover:text-text-primary",
|
|
2292
2399
|
disabledText: "text-text-disabled"
|
|
2293
2400
|
};
|
|
2294
|
-
function
|
|
2295
|
-
const n = l ||
|
|
2401
|
+
function ls({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
|
|
2402
|
+
const n = l || Cr;
|
|
2296
2403
|
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
|
|
2297
2404
|
const o = s === c.id;
|
|
2298
2405
|
return /* @__PURE__ */ e.jsx(
|
|
2299
|
-
|
|
2406
|
+
D,
|
|
2300
2407
|
{
|
|
2301
2408
|
variant: "ghost",
|
|
2302
|
-
onClick: () => !
|
|
2303
|
-
disabled:
|
|
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}` :
|
|
2409
|
+
onClick: () => !t && a(c.id),
|
|
2410
|
+
disabled: t && !o,
|
|
2411
|
+
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${o ? `${n.activeBorder} ${n.activeText}` : t ? `border-transparent ${n.disabledText} cursor-not-allowed` : `border-transparent ${n.inactiveText} ${n.inactiveHoverText}`}`,
|
|
2305
2412
|
children: c.label
|
|
2306
2413
|
},
|
|
2307
2414
|
c.id
|
|
2308
2415
|
);
|
|
2309
2416
|
}) });
|
|
2310
2417
|
}
|
|
2311
|
-
function
|
|
2418
|
+
function os({
|
|
2312
2419
|
status: r,
|
|
2313
2420
|
title: s,
|
|
2314
|
-
message:
|
|
2315
|
-
action:
|
|
2421
|
+
message: t,
|
|
2422
|
+
action: a,
|
|
2316
2423
|
progress: l,
|
|
2317
2424
|
className: n = ""
|
|
2318
2425
|
}) {
|
|
@@ -2355,7 +2462,7 @@ function rs({
|
|
|
2355
2462
|
] }) : /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${o.text}`, children: o.icon }),
|
|
2356
2463
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
2357
2464
|
/* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${o.text}`, children: s }),
|
|
2358
|
-
|
|
2465
|
+
t && /* @__PURE__ */ e.jsx("p", { className: `text-xs ${o.text} mt-1`, children: t }),
|
|
2359
2466
|
l !== void 0 && /* @__PURE__ */ e.jsx("div", { className: "mt-2 w-full bg-gray-200 rounded-full h-2", children: /* @__PURE__ */ e.jsx(
|
|
2360
2467
|
"div",
|
|
2361
2468
|
{
|
|
@@ -2364,24 +2471,24 @@ function rs({
|
|
|
2364
2471
|
}
|
|
2365
2472
|
) })
|
|
2366
2473
|
] }),
|
|
2367
|
-
|
|
2474
|
+
a && /* @__PURE__ */ e.jsx(
|
|
2368
2475
|
"button",
|
|
2369
2476
|
{
|
|
2370
|
-
onClick:
|
|
2477
|
+
onClick: a.onClick,
|
|
2371
2478
|
className: `text-sm font-medium ${o.text} hover:opacity-70 flex-shrink-0`,
|
|
2372
|
-
children:
|
|
2479
|
+
children: a.label
|
|
2373
2480
|
}
|
|
2374
2481
|
)
|
|
2375
2482
|
] }) });
|
|
2376
2483
|
}
|
|
2377
|
-
const
|
|
2484
|
+
const ke = ({
|
|
2378
2485
|
role: r,
|
|
2379
2486
|
content: s,
|
|
2380
|
-
timestamp:
|
|
2381
|
-
className:
|
|
2487
|
+
timestamp: t,
|
|
2488
|
+
className: a = ""
|
|
2382
2489
|
}) => {
|
|
2383
2490
|
const l = r === "user";
|
|
2384
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `flex gap-3 ${l ? "justify-end" : "justify-start"} ${
|
|
2491
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `flex gap-3 ${l ? "justify-end" : "justify-start"} ${a}`, children: [
|
|
2385
2492
|
!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" }) }),
|
|
2386
2493
|
/* @__PURE__ */ e.jsxs("div", { className: `flex-1 ${l ? "max-w-md" : ""}`, children: [
|
|
2387
2494
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2391,28 +2498,28 @@ const Ce = ({
|
|
|
2391
2498
|
children: /* @__PURE__ */ e.jsx("p", { className: "text-sm whitespace-pre-wrap", children: s })
|
|
2392
2499
|
}
|
|
2393
2500
|
),
|
|
2394
|
-
|
|
2501
|
+
t && /* @__PURE__ */ e.jsx("p", { className: `text-xs text-gray-400 mt-1 ${l ? "text-right" : ""}`, children: t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) })
|
|
2395
2502
|
] }),
|
|
2396
2503
|
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" }) })
|
|
2397
2504
|
] });
|
|
2398
2505
|
};
|
|
2399
|
-
|
|
2400
|
-
const
|
|
2506
|
+
ke.displayName = "ChatMessage";
|
|
2507
|
+
const kr = ({
|
|
2401
2508
|
onSend: r,
|
|
2402
2509
|
disabled: s = !1,
|
|
2403
|
-
placeholder:
|
|
2404
|
-
maxLength:
|
|
2510
|
+
placeholder: t = "Ask a question about your resume or the job...",
|
|
2511
|
+
maxLength: a = 2e3,
|
|
2405
2512
|
className: l = ""
|
|
2406
2513
|
}) => {
|
|
2407
|
-
const [n, c] =
|
|
2408
|
-
|
|
2514
|
+
const [n, c] = $(""), o = W(null);
|
|
2515
|
+
_(() => {
|
|
2409
2516
|
o.current && (o.current.style.height = "auto", o.current.style.height = `${o.current.scrollHeight}px`);
|
|
2410
2517
|
}, [n]);
|
|
2411
2518
|
const u = () => {
|
|
2412
2519
|
n.trim() && !s && (r(n.trim()), c(""));
|
|
2413
2520
|
}, d = (x) => {
|
|
2414
2521
|
x.key === "Enter" && !x.shiftKey ? (x.preventDefault(), u()) : x.key === "Escape" && c("");
|
|
2415
|
-
}, m = n.length >
|
|
2522
|
+
}, m = n.length > a, h = n.length > a * 0.9;
|
|
2416
2523
|
return /* @__PURE__ */ e.jsxs("div", { className: `border-t border-gray-200 bg-white p-4 ${l}`, children: [
|
|
2417
2524
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
2418
2525
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2422,7 +2529,7 @@ const yr = ({
|
|
|
2422
2529
|
value: n,
|
|
2423
2530
|
onChange: (x) => c(x.target.value),
|
|
2424
2531
|
onKeyDown: d,
|
|
2425
|
-
placeholder:
|
|
2532
|
+
placeholder: t,
|
|
2426
2533
|
disabled: s,
|
|
2427
2534
|
rows: 1,
|
|
2428
2535
|
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",
|
|
@@ -2437,7 +2544,7 @@ const yr = ({
|
|
|
2437
2544
|
disabled: s || !n.trim() || m,
|
|
2438
2545
|
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",
|
|
2439
2546
|
"aria-label": "Send message",
|
|
2440
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2547
|
+
children: /* @__PURE__ */ e.jsx(pr, { className: "w-5 h-5" })
|
|
2441
2548
|
}
|
|
2442
2549
|
)
|
|
2443
2550
|
] }),
|
|
@@ -2446,17 +2553,17 @@ const yr = ({
|
|
|
2446
2553
|
h && /* @__PURE__ */ e.jsxs("p", { className: `text-xs ${m ? "text-red-500" : "text-gray-500"}`, children: [
|
|
2447
2554
|
n.length,
|
|
2448
2555
|
"/",
|
|
2449
|
-
|
|
2556
|
+
a
|
|
2450
2557
|
] })
|
|
2451
2558
|
] })
|
|
2452
2559
|
] });
|
|
2453
2560
|
};
|
|
2454
|
-
|
|
2455
|
-
const
|
|
2561
|
+
kr.displayName = "ChatInput";
|
|
2562
|
+
const $e = ({
|
|
2456
2563
|
message: r = "Thinking...",
|
|
2457
2564
|
variant: s = "dots",
|
|
2458
|
-
className:
|
|
2459
|
-
}) => /* @__PURE__ */ e.jsxs("div", { className: `flex gap-3 ${
|
|
2565
|
+
className: t = ""
|
|
2566
|
+
}) => /* @__PURE__ */ e.jsxs("div", { className: `flex gap-3 ${t}`, children: [
|
|
2460
2567
|
/* @__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" }) }),
|
|
2461
2568
|
/* @__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: [
|
|
2462
2569
|
s === "dots" ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1", children: [
|
|
@@ -2479,18 +2586,18 @@ const ke = ({
|
|
|
2479
2586
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm text-gray-600", children: r })
|
|
2480
2587
|
] }) })
|
|
2481
2588
|
] });
|
|
2482
|
-
|
|
2483
|
-
const
|
|
2589
|
+
$e.displayName = "LoadingIndicator";
|
|
2590
|
+
const $r = ({
|
|
2484
2591
|
messages: r,
|
|
2485
2592
|
isLoading: s = !1,
|
|
2486
|
-
loadingMessage:
|
|
2487
|
-
error:
|
|
2593
|
+
loadingMessage: t = "Thinking...",
|
|
2594
|
+
error: a = null,
|
|
2488
2595
|
onRetry: l,
|
|
2489
2596
|
className: n = "",
|
|
2490
2597
|
emptyStateMessage: c = "Start a conversation"
|
|
2491
2598
|
}) => {
|
|
2492
|
-
const o =
|
|
2493
|
-
return
|
|
2599
|
+
const o = W(null), u = W(null);
|
|
2600
|
+
return _(() => {
|
|
2494
2601
|
o.current?.scrollIntoView({ behavior: "smooth" });
|
|
2495
2602
|
}, [r, s]), /* @__PURE__ */ e.jsxs(
|
|
2496
2603
|
"div",
|
|
@@ -2504,7 +2611,7 @@ const wr = ({
|
|
|
2504
2611
|
/* @__PURE__ */ e.jsx("p", { className: "text-gray-400 text-sm mt-2", children: "Ask me anything about your resume or the job requirements!" })
|
|
2505
2612
|
] }),
|
|
2506
2613
|
r.map((d, m) => /* @__PURE__ */ e.jsx(
|
|
2507
|
-
|
|
2614
|
+
ke,
|
|
2508
2615
|
{
|
|
2509
2616
|
role: d.role,
|
|
2510
2617
|
content: d.content,
|
|
@@ -2513,16 +2620,16 @@ const wr = ({
|
|
|
2513
2620
|
m
|
|
2514
2621
|
)),
|
|
2515
2622
|
s && /* @__PURE__ */ e.jsx(
|
|
2516
|
-
|
|
2623
|
+
$e,
|
|
2517
2624
|
{
|
|
2518
|
-
message:
|
|
2625
|
+
message: t,
|
|
2519
2626
|
variant: "dots"
|
|
2520
2627
|
}
|
|
2521
2628
|
),
|
|
2522
|
-
|
|
2629
|
+
a && /* @__PURE__ */ e.jsxs("div", { className: "flex gap-3", children: [
|
|
2523
2630
|
/* @__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: "!" }) }) }),
|
|
2524
2631
|
/* @__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: [
|
|
2525
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-red-800", children:
|
|
2632
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-red-800", children: a }),
|
|
2526
2633
|
l && /* @__PURE__ */ e.jsx(
|
|
2527
2634
|
"button",
|
|
2528
2635
|
{
|
|
@@ -2538,19 +2645,19 @@ const wr = ({
|
|
|
2538
2645
|
}
|
|
2539
2646
|
);
|
|
2540
2647
|
};
|
|
2541
|
-
|
|
2542
|
-
const
|
|
2648
|
+
$r.displayName = "ChatContainer";
|
|
2649
|
+
const Vr = ({
|
|
2543
2650
|
resumeName: r,
|
|
2544
2651
|
jobTitle: s,
|
|
2545
|
-
companyName:
|
|
2546
|
-
matchScore:
|
|
2652
|
+
companyName: t,
|
|
2653
|
+
matchScore: a,
|
|
2547
2654
|
onChangeResume: l,
|
|
2548
2655
|
onChangeJob: n,
|
|
2549
2656
|
className: c = ""
|
|
2550
2657
|
}) => /* @__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: [
|
|
2551
2658
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2552
2659
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2553
|
-
/* @__PURE__ */ e.jsx(
|
|
2660
|
+
/* @__PURE__ */ e.jsx(br, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2554
2661
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2555
2662
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Resume" }),
|
|
2556
2663
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm font-medium text-gray-900 truncate", children: r })
|
|
@@ -2568,12 +2675,12 @@ const Nr = ({
|
|
|
2568
2675
|
] }),
|
|
2569
2676
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2570
2677
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2571
|
-
/* @__PURE__ */ e.jsx(
|
|
2678
|
+
/* @__PURE__ */ e.jsx(xr, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2572
2679
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2573
2680
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Job" }),
|
|
2574
2681
|
/* @__PURE__ */ e.jsxs("div", { className: "truncate", children: [
|
|
2575
2682
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm font-medium text-gray-900 truncate", children: s }),
|
|
2576
|
-
|
|
2683
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 truncate", children: t })
|
|
2577
2684
|
] })
|
|
2578
2685
|
] })
|
|
2579
2686
|
] }),
|
|
@@ -2587,24 +2694,24 @@ const Nr = ({
|
|
|
2587
2694
|
}
|
|
2588
2695
|
)
|
|
2589
2696
|
] }),
|
|
2590
|
-
|
|
2697
|
+
a !== void 0 && /* @__PURE__ */ e.jsxs("div", { className: "pt-2 border-t border-gray-200", children: [
|
|
2591
2698
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
2592
2699
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs font-medium text-gray-700", children: "Match Score" }),
|
|
2593
2700
|
/* @__PURE__ */ e.jsxs("p", { className: "text-sm font-semibold text-gray-900", children: [
|
|
2594
|
-
|
|
2701
|
+
a,
|
|
2595
2702
|
"%"
|
|
2596
2703
|
] })
|
|
2597
2704
|
] }),
|
|
2598
2705
|
/* @__PURE__ */ e.jsx("div", { className: "w-full bg-gray-200 rounded-full h-2 overflow-hidden", children: /* @__PURE__ */ e.jsx(
|
|
2599
2706
|
"div",
|
|
2600
2707
|
{
|
|
2601
|
-
className: `h-full rounded-full transition-all duration-500 ${
|
|
2602
|
-
style: { width: `${
|
|
2708
|
+
className: `h-full rounded-full transition-all duration-500 ${a >= 90 ? "bg-green-500" : a >= 75 ? "bg-blue-500" : a >= 60 ? "bg-yellow-500" : "bg-red-500"}`,
|
|
2709
|
+
style: { width: `${a}%` }
|
|
2603
2710
|
}
|
|
2604
2711
|
) })
|
|
2605
2712
|
] })
|
|
2606
2713
|
] }) });
|
|
2607
|
-
|
|
2714
|
+
Vr.displayName = "AnalysisSummaryBar";
|
|
2608
2715
|
const re = {
|
|
2609
2716
|
semantic: {
|
|
2610
2717
|
none: "bg-error-50 border-error-200 text-error-700",
|
|
@@ -2621,7 +2728,7 @@ const re = {
|
|
|
2621
2728
|
partial: "bg-surface border-warning-300 text-warning-700",
|
|
2622
2729
|
full: "bg-surface border-success-300 text-success-700"
|
|
2623
2730
|
}
|
|
2624
|
-
},
|
|
2731
|
+
}, Tr = {
|
|
2625
2732
|
semantic: {
|
|
2626
2733
|
required: "bg-error-600 text-white",
|
|
2627
2734
|
preferred: "bg-reseda-green-600 text-white",
|
|
@@ -2637,12 +2744,12 @@ const re = {
|
|
|
2637
2744
|
preferred: "bg-reseda-green-700 text-reseda-green-100",
|
|
2638
2745
|
"nice-to-have": "bg-khaki-700 text-khaki-100"
|
|
2639
2746
|
}
|
|
2640
|
-
},
|
|
2747
|
+
}, Er = ({
|
|
2641
2748
|
skills: r,
|
|
2642
2749
|
className: s = "",
|
|
2643
|
-
colorPreset:
|
|
2750
|
+
colorPreset: t = "semantic"
|
|
2644
2751
|
}) => {
|
|
2645
|
-
const
|
|
2752
|
+
const a = (o) => !o.matched || o.match_level === "none" ? "✗" : o.match_level === "partial" ? "~" : "✓", l = (o) => !o.matched || o.match_level === "none" ? re[t].none : o.match_level === "partial" ? re[t].partial : re[t].full, n = (o) => Tr[t][o], c = (o, u) => !u || u.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "mb-4", children: [
|
|
2646
2753
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs font-semibold text-text-secondary mb-2", children: [
|
|
2647
2754
|
o,
|
|
2648
2755
|
":"
|
|
@@ -2655,7 +2762,7 @@ const re = {
|
|
|
2655
2762
|
)}`,
|
|
2656
2763
|
children: [
|
|
2657
2764
|
/* @__PURE__ */ e.jsxs("span", { className: "text-sm font-medium", children: [
|
|
2658
|
-
|
|
2765
|
+
a(d),
|
|
2659
2766
|
" ",
|
|
2660
2767
|
d.name
|
|
2661
2768
|
] }),
|
|
@@ -2678,12 +2785,12 @@ const re = {
|
|
|
2678
2785
|
c("Soft Skills", r.soft || [])
|
|
2679
2786
|
] });
|
|
2680
2787
|
};
|
|
2681
|
-
|
|
2682
|
-
const
|
|
2788
|
+
Er.displayName = "SkillTags";
|
|
2789
|
+
const Rr = ({
|
|
2683
2790
|
score: r,
|
|
2684
2791
|
showLabel: s = !0,
|
|
2685
|
-
size:
|
|
2686
|
-
className:
|
|
2792
|
+
size: t = "md",
|
|
2793
|
+
className: a = ""
|
|
2687
2794
|
}) => {
|
|
2688
2795
|
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 = {
|
|
2689
2796
|
sm: "h-2",
|
|
@@ -2694,33 +2801,33 @@ const $r = ({
|
|
|
2694
2801
|
md: "text-sm",
|
|
2695
2802
|
lg: "text-base"
|
|
2696
2803
|
};
|
|
2697
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
2804
|
+
return /* @__PURE__ */ e.jsxs("div", { className: a, children: [
|
|
2698
2805
|
s && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
2699
|
-
/* @__PURE__ */ e.jsx("p", { className: `font-medium text-gray-700 ${u[
|
|
2700
|
-
/* @__PURE__ */ e.jsxs("p", { className: `font-semibold ${u[
|
|
2806
|
+
/* @__PURE__ */ e.jsx("p", { className: `font-medium text-gray-700 ${u[t]}`, children: "Match Score" }),
|
|
2807
|
+
/* @__PURE__ */ e.jsxs("p", { className: `font-semibold ${u[t]} ${n(l).replace("bg-", "text-")}`, children: [
|
|
2701
2808
|
l,
|
|
2702
2809
|
"%"
|
|
2703
2810
|
] })
|
|
2704
2811
|
] }),
|
|
2705
|
-
/* @__PURE__ */ e.jsx("div", { className: `w-full bg-gray-200 rounded-full overflow-hidden ${o[
|
|
2812
|
+
/* @__PURE__ */ e.jsx("div", { className: `w-full bg-gray-200 rounded-full overflow-hidden ${o[t]}`, children: /* @__PURE__ */ e.jsx(
|
|
2706
2813
|
"div",
|
|
2707
2814
|
{
|
|
2708
|
-
className: `${n(l)} ${o[
|
|
2815
|
+
className: `${n(l)} ${o[t]} rounded-full transition-all duration-500 ease-out`,
|
|
2709
2816
|
style: { width: `${l}%` }
|
|
2710
2817
|
}
|
|
2711
2818
|
) }),
|
|
2712
|
-
s && /* @__PURE__ */ e.jsx("p", { className: `text-gray-600 mt-1 ${u[
|
|
2819
|
+
s && /* @__PURE__ */ e.jsx("p", { className: `text-gray-600 mt-1 ${u[t]}`, children: c(l) })
|
|
2713
2820
|
] });
|
|
2714
2821
|
};
|
|
2715
|
-
|
|
2716
|
-
const
|
|
2822
|
+
Rr.displayName = "MatchScoreBar";
|
|
2823
|
+
const Ar = ({
|
|
2717
2824
|
responsibilities: r,
|
|
2718
2825
|
className: s = ""
|
|
2719
2826
|
}) => {
|
|
2720
|
-
const
|
|
2827
|
+
const t = r.reduce(
|
|
2721
2828
|
(l, n) => (l[n.category] || (l[n.category] = []), l[n.category].push(n), l),
|
|
2722
2829
|
{}
|
|
2723
|
-
),
|
|
2830
|
+
), a = (l) => {
|
|
2724
2831
|
switch (l) {
|
|
2725
2832
|
case "high":
|
|
2726
2833
|
return "bg-red-100 text-red-800";
|
|
@@ -2730,7 +2837,7 @@ const Vr = ({
|
|
|
2730
2837
|
return "bg-gray-100 text-gray-800";
|
|
2731
2838
|
}
|
|
2732
2839
|
};
|
|
2733
|
-
return /* @__PURE__ */ e.jsx("div", { className: s, children: Object.entries(
|
|
2840
|
+
return /* @__PURE__ */ e.jsx("div", { className: s, children: Object.entries(t).map(([l, n]) => /* @__PURE__ */ e.jsxs("div", { className: "mb-4", children: [
|
|
2734
2841
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
2735
2842
|
/* @__PURE__ */ e.jsx("h3", { className: "text-sm font-semibold text-gray-900", children: l }),
|
|
2736
2843
|
n.some((c) => c.importance === "high") && /* @__PURE__ */ e.jsx("span", { className: "inline-block w-2 h-2 bg-red-600 rounded-full" }),
|
|
@@ -2743,7 +2850,7 @@ const Vr = ({
|
|
|
2743
2850
|
c.importance !== "low" && /* @__PURE__ */ e.jsx(
|
|
2744
2851
|
"span",
|
|
2745
2852
|
{
|
|
2746
|
-
className: `inline-block text-xs px-2 py-0.5 rounded mt-1 ${
|
|
2853
|
+
className: `inline-block text-xs px-2 py-0.5 rounded mt-1 ${a(
|
|
2747
2854
|
c.importance
|
|
2748
2855
|
)}`,
|
|
2749
2856
|
children: c.importance === "high" ? "High Priority" : "Medium Priority"
|
|
@@ -2753,54 +2860,55 @@ const Vr = ({
|
|
|
2753
2860
|
] }, o)) })
|
|
2754
2861
|
] }, l)) });
|
|
2755
2862
|
};
|
|
2756
|
-
|
|
2863
|
+
Ar.displayName = "ResponsibilitiesList";
|
|
2757
2864
|
export {
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
$
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2865
|
+
Gr as Accordion,
|
|
2866
|
+
Jr as ActionCard,
|
|
2867
|
+
G as Alert,
|
|
2868
|
+
Vr as AnalysisSummaryBar,
|
|
2869
|
+
rr as Badge,
|
|
2870
|
+
D as Button,
|
|
2871
|
+
Xr as Card,
|
|
2872
|
+
$r as ChatContainer,
|
|
2873
|
+
kr as ChatInput,
|
|
2874
|
+
ke as ChatMessage,
|
|
2875
|
+
Wr as CheckboxGroup,
|
|
2876
|
+
He as ColorPalette,
|
|
2877
|
+
Ur as Demo,
|
|
2878
|
+
es as DetailPanel,
|
|
2879
|
+
Kr as Drawer,
|
|
2880
|
+
Hr as FileUpload,
|
|
2881
|
+
Yr as FormField,
|
|
2882
|
+
Je as Input,
|
|
2883
|
+
$e as LoadingIndicator,
|
|
2884
|
+
Rr as MatchScoreBar,
|
|
2885
|
+
ss as OptionCard,
|
|
2886
|
+
rs as PageHeader,
|
|
2887
|
+
qr as RadioGroup,
|
|
2888
|
+
Ar as ResponsibilitiesList,
|
|
2889
|
+
Qr as Section,
|
|
2890
|
+
Xe as Select,
|
|
2891
|
+
ts as SelectableRadioOption,
|
|
2892
|
+
as as Sidebar,
|
|
2893
|
+
Er as SkillTags,
|
|
2894
|
+
ur as Slider,
|
|
2895
|
+
lr as SocialButton,
|
|
2896
|
+
yr as SortableItem,
|
|
2897
|
+
Zr as StatsGrid,
|
|
2898
|
+
os as StatusBanner,
|
|
2899
|
+
ns as Stepper,
|
|
2900
|
+
ls as TabBar,
|
|
2901
|
+
sr as TagInput,
|
|
2902
|
+
or as Textarea,
|
|
2903
|
+
We as ThemeProvider,
|
|
2796
2904
|
Ze as ThemeToggle,
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2905
|
+
Lr as clearAllErrors,
|
|
2906
|
+
zr as clearFieldError,
|
|
2907
|
+
Pr as getFirstError,
|
|
2908
|
+
ze as hasErrors,
|
|
2909
|
+
Fr as useForm,
|
|
2910
|
+
qe as useTheme,
|
|
2911
|
+
Pe as validateField,
|
|
2804
2912
|
ee as validateForm,
|
|
2805
|
-
|
|
2913
|
+
Ir as validators
|
|
2806
2914
|
};
|