acemyjob-ui 2.0.4 → 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 +322 -310
- package/dist/acemyjob-ui.umd.js +4 -4
- package/dist/component/KeywordChipSelector/index.d.ts +22 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/acemyjob-ui.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as j from "react";
|
|
2
|
-
import P, { useState as
|
|
2
|
+
import P, { useState as $, useCallback as M, createContext as Ee, useEffect as _, useContext as Re, useRef as W } from "react";
|
|
3
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
4
|
import { createPortal as Se } from "react-dom";
|
|
5
5
|
import { useSortable as Be } from "@dnd-kit/sortable";
|
|
6
6
|
import { CSS as Me } from "@dnd-kit/utilities";
|
|
7
|
-
import { Dialog as
|
|
8
|
-
const
|
|
7
|
+
import { Dialog as _e, DialogBackdrop as De, DialogPanel as Oe, TransitionChild as Ie } from "@headlessui/react";
|
|
8
|
+
const Ir = {
|
|
9
9
|
required: (r = "This field is required") => ({
|
|
10
10
|
validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
|
|
11
11
|
message: r
|
|
@@ -77,40 +77,40 @@ function ee(r, s) {
|
|
|
77
77
|
function ze(r) {
|
|
78
78
|
return Object.values(r).some((s) => s !== null);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Pr(r) {
|
|
81
81
|
for (const s of Object.values(r))
|
|
82
82
|
if (s !== null)
|
|
83
83
|
return s;
|
|
84
84
|
return null;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function zr(r, s) {
|
|
87
87
|
return {
|
|
88
88
|
...r,
|
|
89
89
|
[s]: null
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Lr(r) {
|
|
93
93
|
const s = {};
|
|
94
94
|
for (const t of Object.keys(r))
|
|
95
95
|
s[t] = null;
|
|
96
96
|
return s;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Fr({
|
|
99
99
|
initialValues: r,
|
|
100
100
|
validationRules: s = {},
|
|
101
101
|
onSubmit: t
|
|
102
102
|
}) {
|
|
103
|
-
const [a, l] =
|
|
103
|
+
const [a, l] = $(r), [n, c] = $({}), [o, u] = $({}), [d, m] = $(!1), h = JSON.stringify(a) !== JSON.stringify(r), x = M(
|
|
104
104
|
(p) => {
|
|
105
|
-
const { name: v, value:
|
|
106
|
-
let F =
|
|
107
|
-
if (S === "checkbox" ? F = p.target.checked : S === "number" && (F =
|
|
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
108
|
...z,
|
|
109
109
|
[v]: F
|
|
110
110
|
})), s[v]) {
|
|
111
111
|
const z = ee({ [v]: F }, { [v]: s[v] });
|
|
112
|
-
c((
|
|
113
|
-
...
|
|
112
|
+
c((q) => ({
|
|
113
|
+
...q,
|
|
114
114
|
[v]: z[v]
|
|
115
115
|
}));
|
|
116
116
|
}
|
|
@@ -119,37 +119,37 @@ function Lr({
|
|
|
119
119
|
), f = M(
|
|
120
120
|
(p) => {
|
|
121
121
|
const { name: v } = p.target;
|
|
122
|
-
u((
|
|
123
|
-
...
|
|
122
|
+
u((C) => ({
|
|
123
|
+
...C,
|
|
124
124
|
[v]: !0
|
|
125
125
|
}));
|
|
126
126
|
},
|
|
127
127
|
[]
|
|
128
|
-
),
|
|
129
|
-
if (l((
|
|
130
|
-
...
|
|
128
|
+
), g = M((p, v) => {
|
|
129
|
+
if (l((C) => ({
|
|
130
|
+
...C,
|
|
131
131
|
[p]: v
|
|
132
132
|
})), s[p]) {
|
|
133
|
-
const
|
|
133
|
+
const C = ee({ [p]: v }, { [p]: s[p] });
|
|
134
134
|
c((S) => ({
|
|
135
135
|
...S,
|
|
136
|
-
[p]:
|
|
136
|
+
[p]: C[p]
|
|
137
137
|
}));
|
|
138
138
|
}
|
|
139
|
-
}, [s]),
|
|
140
|
-
c((
|
|
141
|
-
...
|
|
139
|
+
}, [s]), y = M((p, v) => {
|
|
140
|
+
c((C) => ({
|
|
141
|
+
...C,
|
|
142
142
|
[p]: v
|
|
143
143
|
}));
|
|
144
|
-
}, []),
|
|
144
|
+
}, []), V = M(
|
|
145
145
|
async (p) => {
|
|
146
146
|
p.preventDefault();
|
|
147
147
|
const v = ee(a, s);
|
|
148
148
|
c(v);
|
|
149
|
-
const
|
|
149
|
+
const C = {};
|
|
150
150
|
for (const S of Object.keys(a))
|
|
151
|
-
|
|
152
|
-
if (u(
|
|
151
|
+
C[S] = !0;
|
|
152
|
+
if (u(C), !ze(v) && t) {
|
|
153
153
|
m(!0);
|
|
154
154
|
try {
|
|
155
155
|
await t(a);
|
|
@@ -161,9 +161,9 @@ function Lr({
|
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
[a, s, t]
|
|
164
|
-
),
|
|
164
|
+
), R = M(() => {
|
|
165
165
|
l(r), c({}), u({}), m(!1);
|
|
166
|
-
}, [r]),
|
|
166
|
+
}, [r]), k = M(
|
|
167
167
|
(p) => ({
|
|
168
168
|
name: p,
|
|
169
169
|
value: a[p] || "",
|
|
@@ -174,7 +174,7 @@ function Lr({
|
|
|
174
174
|
), N = M(
|
|
175
175
|
(p) => n[p] || null,
|
|
176
176
|
[n]
|
|
177
|
-
),
|
|
177
|
+
), O = M(
|
|
178
178
|
(p) => o[p] || !1,
|
|
179
179
|
[o]
|
|
180
180
|
), L = M(
|
|
@@ -189,13 +189,13 @@ function Lr({
|
|
|
189
189
|
isDirty: h,
|
|
190
190
|
handleChange: x,
|
|
191
191
|
handleBlur: f,
|
|
192
|
-
setFieldValue:
|
|
193
|
-
setFieldError:
|
|
194
|
-
handleSubmit:
|
|
195
|
-
resetForm:
|
|
196
|
-
getFieldProps:
|
|
192
|
+
setFieldValue: g,
|
|
193
|
+
setFieldError: y,
|
|
194
|
+
handleSubmit: V,
|
|
195
|
+
resetForm: R,
|
|
196
|
+
getFieldProps: k,
|
|
197
197
|
getFieldError: N,
|
|
198
|
-
isFieldTouched:
|
|
198
|
+
isFieldTouched: O,
|
|
199
199
|
isFieldDirty: L
|
|
200
200
|
};
|
|
201
201
|
}
|
|
@@ -250,11 +250,11 @@ function Fe() {
|
|
|
250
250
|
return i.$$typeof === F ? null : i.displayName || i.name || null;
|
|
251
251
|
if (typeof i == "string") return i;
|
|
252
252
|
switch (i) {
|
|
253
|
-
case
|
|
253
|
+
case y:
|
|
254
254
|
return "Fragment";
|
|
255
|
-
case
|
|
255
|
+
case R:
|
|
256
256
|
return "Profiler";
|
|
257
|
-
case
|
|
257
|
+
case V:
|
|
258
258
|
return "StrictMode";
|
|
259
259
|
case L:
|
|
260
260
|
return "Suspense";
|
|
@@ -267,21 +267,21 @@ function Fe() {
|
|
|
267
267
|
switch (typeof i.tag == "number" && console.error(
|
|
268
268
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
269
269
|
), i.$$typeof) {
|
|
270
|
-
case
|
|
270
|
+
case g:
|
|
271
271
|
return "Portal";
|
|
272
272
|
case N:
|
|
273
273
|
return (i.displayName || "Context") + ".Provider";
|
|
274
|
-
case
|
|
274
|
+
case k:
|
|
275
275
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
276
|
-
case
|
|
277
|
-
var
|
|
278
|
-
return i = i.displayName, i || (i =
|
|
276
|
+
case O:
|
|
277
|
+
var b = i.render;
|
|
278
|
+
return i = i.displayName, i || (i = b.displayName || b.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
279
279
|
case v:
|
|
280
|
-
return
|
|
281
|
-
case
|
|
282
|
-
|
|
280
|
+
return b = i.displayName || null, b !== null ? b : r(i.type) || "Memo";
|
|
281
|
+
case C:
|
|
282
|
+
b = i._payload, i = i._init;
|
|
283
283
|
try {
|
|
284
|
-
return r(i(
|
|
284
|
+
return r(i(b));
|
|
285
285
|
} catch {
|
|
286
286
|
}
|
|
287
287
|
}
|
|
@@ -293,27 +293,27 @@ function Fe() {
|
|
|
293
293
|
function t(i) {
|
|
294
294
|
try {
|
|
295
295
|
s(i);
|
|
296
|
-
var
|
|
296
|
+
var b = !1;
|
|
297
297
|
} catch {
|
|
298
|
-
|
|
298
|
+
b = !0;
|
|
299
299
|
}
|
|
300
|
-
if (
|
|
301
|
-
|
|
302
|
-
var
|
|
303
|
-
return
|
|
304
|
-
|
|
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,
|
|
305
305
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
306
|
-
|
|
306
|
+
T
|
|
307
307
|
), s(i);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
function a(i) {
|
|
311
|
-
if (i ===
|
|
312
|
-
if (typeof i == "object" && i !== null && i.$$typeof ===
|
|
311
|
+
if (i === y) return "<>";
|
|
312
|
+
if (typeof i == "object" && i !== null && i.$$typeof === C)
|
|
313
313
|
return "<...>";
|
|
314
314
|
try {
|
|
315
|
-
var
|
|
316
|
-
return
|
|
315
|
+
var b = r(i);
|
|
316
|
+
return b ? "<" + b + ">" : "<...>";
|
|
317
317
|
} catch {
|
|
318
318
|
return "<...>";
|
|
319
319
|
}
|
|
@@ -326,21 +326,21 @@ function Fe() {
|
|
|
326
326
|
return Error("react-stack-top-frame");
|
|
327
327
|
}
|
|
328
328
|
function c(i) {
|
|
329
|
-
if (
|
|
330
|
-
var
|
|
331
|
-
if (
|
|
329
|
+
if (q.call(i, "key")) {
|
|
330
|
+
var b = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
331
|
+
if (b && b.isReactWarning) return !1;
|
|
332
332
|
}
|
|
333
333
|
return i.key !== void 0;
|
|
334
334
|
}
|
|
335
|
-
function o(i,
|
|
336
|
-
function
|
|
335
|
+
function o(i, b) {
|
|
336
|
+
function w() {
|
|
337
337
|
ae || (ae = !0, console.error(
|
|
338
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)",
|
|
339
|
-
|
|
339
|
+
b
|
|
340
340
|
));
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
get:
|
|
342
|
+
w.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
343
|
+
get: w,
|
|
344
344
|
configurable: !0
|
|
345
345
|
});
|
|
346
346
|
}
|
|
@@ -350,14 +350,14 @@ function Fe() {
|
|
|
350
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."
|
|
351
351
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
352
352
|
}
|
|
353
|
-
function d(i,
|
|
354
|
-
return
|
|
353
|
+
function d(i, b, w, T, I, B, X, K) {
|
|
354
|
+
return w = B.ref, i = {
|
|
355
355
|
$$typeof: f,
|
|
356
356
|
type: i,
|
|
357
|
-
key:
|
|
357
|
+
key: b,
|
|
358
358
|
props: B,
|
|
359
|
-
_owner:
|
|
360
|
-
}, (
|
|
359
|
+
_owner: I
|
|
360
|
+
}, (w !== void 0 ? w : null) !== null ? Object.defineProperty(i, "ref", {
|
|
361
361
|
enumerable: !1,
|
|
362
362
|
get: u
|
|
363
363
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
@@ -382,52 +382,52 @@ function Fe() {
|
|
|
382
382
|
value: K
|
|
383
383
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
384
384
|
}
|
|
385
|
-
function m(i,
|
|
386
|
-
var
|
|
387
|
-
if (
|
|
388
|
-
if (
|
|
389
|
-
if (Ve(
|
|
390
|
-
for (
|
|
391
|
-
h(
|
|
392
|
-
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);
|
|
393
393
|
} else
|
|
394
394
|
console.error(
|
|
395
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."
|
|
396
396
|
);
|
|
397
|
-
else h(
|
|
398
|
-
if (
|
|
399
|
-
|
|
400
|
-
var U = Object.keys(
|
|
397
|
+
else h(E);
|
|
398
|
+
if (q.call(b, "key")) {
|
|
399
|
+
E = r(i);
|
|
400
|
+
var U = Object.keys(b).filter(function(Te) {
|
|
401
401
|
return Te !== "key";
|
|
402
402
|
});
|
|
403
|
-
|
|
403
|
+
T = 0 < U.length ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}", ce[E + T] || (U = 0 < U.length ? "{" + U.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
404
404
|
`A props object containing a "key" prop is being spread into JSX:
|
|
405
405
|
let props = %s;
|
|
406
406
|
<%s {...props} />
|
|
407
407
|
React keys must be passed directly to JSX without using spread:
|
|
408
408
|
let props = %s;
|
|
409
409
|
<%s key={someKey} {...props} />`,
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
T,
|
|
411
|
+
E,
|
|
412
412
|
U,
|
|
413
|
-
|
|
414
|
-
), ce[
|
|
413
|
+
E
|
|
414
|
+
), ce[E + T] = !0);
|
|
415
415
|
}
|
|
416
|
-
if (
|
|
417
|
-
|
|
418
|
-
for (var Q in
|
|
419
|
-
Q !== "key" && (
|
|
420
|
-
} else
|
|
421
|
-
return
|
|
422
|
-
|
|
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,
|
|
423
423
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
424
424
|
), d(
|
|
425
425
|
i,
|
|
426
|
-
|
|
426
|
+
E,
|
|
427
427
|
B,
|
|
428
|
-
|
|
428
|
+
I,
|
|
429
429
|
l(),
|
|
430
|
-
|
|
430
|
+
w,
|
|
431
431
|
X,
|
|
432
432
|
K
|
|
433
433
|
);
|
|
@@ -435,7 +435,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
435
435
|
function h(i) {
|
|
436
436
|
typeof i == "object" && i !== null && i.$$typeof === f && i._store && (i._store.validated = 1);
|
|
437
437
|
}
|
|
438
|
-
var x = P, f = Symbol.for("react.transitional.element"),
|
|
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() {
|
|
439
439
|
return null;
|
|
440
440
|
};
|
|
441
441
|
x = {
|
|
@@ -447,27 +447,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
447
447
|
x,
|
|
448
448
|
n
|
|
449
449
|
)(), oe = J(a(n)), ce = {};
|
|
450
|
-
H.Fragment =
|
|
450
|
+
H.Fragment = y, H.jsx = function(i, b, w, T, I) {
|
|
451
451
|
var B = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
452
452
|
return m(
|
|
453
453
|
i,
|
|
454
|
-
|
|
455
|
-
|
|
454
|
+
b,
|
|
455
|
+
w,
|
|
456
456
|
!1,
|
|
457
|
-
|
|
458
|
-
|
|
457
|
+
T,
|
|
458
|
+
I,
|
|
459
459
|
B ? Error("react-stack-top-frame") : le,
|
|
460
460
|
B ? J(a(i)) : oe
|
|
461
461
|
);
|
|
462
|
-
}, H.jsxs = function(i,
|
|
462
|
+
}, H.jsxs = function(i, b, w, T, I) {
|
|
463
463
|
var B = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
464
464
|
return m(
|
|
465
465
|
i,
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
b,
|
|
467
|
+
w,
|
|
468
468
|
!0,
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
T,
|
|
470
|
+
I,
|
|
471
471
|
B ? Error("react-stack-top-frame") : le,
|
|
472
472
|
B ? J(a(i)) : oe
|
|
473
473
|
);
|
|
@@ -737,11 +737,11 @@ const Ne = (r) => r.replace("--color-", "bg-"), Ye = ({ name: r, cssVar: s, valu
|
|
|
737
737
|
defaultTheme: s = "system",
|
|
738
738
|
storageKey: t = "acemyjob-ui-theme"
|
|
739
739
|
}) => {
|
|
740
|
-
const [a, l] =
|
|
741
|
-
|
|
740
|
+
const [a, l] = $(s), [n, c] = $("light"), [o, u] = $(!1);
|
|
741
|
+
_(() => {
|
|
742
742
|
const m = localStorage.getItem(t);
|
|
743
743
|
m && l(m), u(!0);
|
|
744
|
-
}, [t]),
|
|
744
|
+
}, [t]), _(() => {
|
|
745
745
|
if (!o) return;
|
|
746
746
|
const m = window.document.documentElement, h = () => {
|
|
747
747
|
let x;
|
|
@@ -760,14 +760,14 @@ const Ne = (r) => r.replace("--color-", "bg-"), Ye = ({ name: r, cssVar: s, valu
|
|
|
760
760
|
resolvedTheme: n
|
|
761
761
|
};
|
|
762
762
|
return /* @__PURE__ */ e.jsx(Ce.Provider, { value: d, children: r });
|
|
763
|
-
},
|
|
763
|
+
}, qe = () => {
|
|
764
764
|
const r = Re(Ce);
|
|
765
765
|
if (r === void 0)
|
|
766
766
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
767
767
|
return r;
|
|
768
|
-
},
|
|
769
|
-
const { theme: r, setTheme: s } =
|
|
770
|
-
if (
|
|
768
|
+
}, Ze = () => {
|
|
769
|
+
const { theme: r, setTheme: s } = qe(), [t, a] = $(!1);
|
|
770
|
+
if (_(() => {
|
|
771
771
|
a(!0);
|
|
772
772
|
}, []), !t)
|
|
773
773
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -815,10 +815,10 @@ const Ne = (r) => r.replace("--color-", "bg-"), Ye = ({ name: r, cssVar: s, valu
|
|
|
815
815
|
}
|
|
816
816
|
);
|
|
817
817
|
}, Ge = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
818
|
-
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(
|
|
818
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Ze, {}) }),
|
|
819
819
|
/* @__PURE__ */ e.jsx(He, {})
|
|
820
|
-
] }),
|
|
821
|
-
function
|
|
820
|
+
] }), Ur = () => /* @__PURE__ */ e.jsx(We, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Ge, {}) });
|
|
821
|
+
function Yr({
|
|
822
822
|
label: r,
|
|
823
823
|
children: s,
|
|
824
824
|
helperText: t,
|
|
@@ -1013,23 +1013,23 @@ const sr = P.forwardRef(
|
|
|
1013
1013
|
className: m = "",
|
|
1014
1014
|
...h
|
|
1015
1015
|
}, x) => {
|
|
1016
|
-
const [f,
|
|
1017
|
-
v.key === "Enter" && f.trim() ? (v.preventDefault(),
|
|
1018
|
-
},
|
|
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) => {
|
|
1019
1019
|
if (o && r.length >= o || u && r.includes(v))
|
|
1020
1020
|
return;
|
|
1021
|
-
const
|
|
1022
|
-
s(
|
|
1023
|
-
},
|
|
1024
|
-
const
|
|
1025
|
-
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);
|
|
1026
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}`;
|
|
1027
1027
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1028
1028
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((v) => /* @__PURE__ */ e.jsx(
|
|
1029
1029
|
rr,
|
|
1030
1030
|
{
|
|
1031
1031
|
removable: !0,
|
|
1032
|
-
onRemove: () =>
|
|
1032
|
+
onRemove: () => R(v),
|
|
1033
1033
|
variant: "default",
|
|
1034
1034
|
children: v
|
|
1035
1035
|
},
|
|
@@ -1043,8 +1043,8 @@ const sr = P.forwardRef(
|
|
|
1043
1043
|
className: p,
|
|
1044
1044
|
placeholder: l,
|
|
1045
1045
|
value: f,
|
|
1046
|
-
onChange: (v) =>
|
|
1047
|
-
onKeyDown:
|
|
1046
|
+
onChange: (v) => g(v.target.value),
|
|
1047
|
+
onKeyDown: y,
|
|
1048
1048
|
disabled: d || (o ? r.length >= o : !1),
|
|
1049
1049
|
...h
|
|
1050
1050
|
}
|
|
@@ -1168,7 +1168,7 @@ const ge = {
|
|
|
1168
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" }) })
|
|
1169
1169
|
}[s], f = n || (l ? {
|
|
1170
1170
|
linkedin: "Continue with LinkedIn"
|
|
1171
|
-
}[s] : ""),
|
|
1171
|
+
}[s] : ""), g = nr(
|
|
1172
1172
|
"relative overflow-hidden transition-all duration-200",
|
|
1173
1173
|
ge.provider[s],
|
|
1174
1174
|
ge.iconPosition[t],
|
|
@@ -1179,7 +1179,7 @@ const ge = {
|
|
|
1179
1179
|
{
|
|
1180
1180
|
ref: d,
|
|
1181
1181
|
variant: "none",
|
|
1182
|
-
className:
|
|
1182
|
+
className: g,
|
|
1183
1183
|
size: c,
|
|
1184
1184
|
fullWidth: o,
|
|
1185
1185
|
leftIcon: t === "left" ? h : void 0,
|
|
@@ -1194,7 +1194,7 @@ const ge = {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
);
|
|
1196
1196
|
lr.displayName = "SocialButton";
|
|
1197
|
-
function
|
|
1197
|
+
function G({
|
|
1198
1198
|
variant: r,
|
|
1199
1199
|
title: s,
|
|
1200
1200
|
message: t,
|
|
@@ -1252,7 +1252,7 @@ function q({
|
|
|
1252
1252
|
}
|
|
1253
1253
|
);
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function Hr({
|
|
1256
1256
|
onFileChange: r,
|
|
1257
1257
|
onAnalyze: s,
|
|
1258
1258
|
uploadedFile: t,
|
|
@@ -1268,20 +1268,20 @@ function Yr({
|
|
|
1268
1268
|
disabled: x = !1,
|
|
1269
1269
|
showAnalyzeButton: f = !0
|
|
1270
1270
|
}) {
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1273
|
-
!t &&
|
|
1271
|
+
const g = W(null), [y, V] = $(!1);
|
|
1272
|
+
_(() => {
|
|
1273
|
+
!t && g.current && (g.current.value = "");
|
|
1274
1274
|
}, [t]);
|
|
1275
|
-
const
|
|
1276
|
-
N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ?
|
|
1277
|
-
},
|
|
1278
|
-
if (N.preventDefault(), N.stopPropagation(),
|
|
1279
|
-
const
|
|
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]) {
|
|
1279
|
+
const O = {
|
|
1280
1280
|
target: {
|
|
1281
1281
|
files: N.dataTransfer.files
|
|
1282
1282
|
}
|
|
1283
1283
|
};
|
|
1284
|
-
r(
|
|
1284
|
+
r(O);
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
1287
|
return /* @__PURE__ */ e.jsxs("div", { className: "mt-6 pt-6 border-t border-border", children: [
|
|
@@ -1290,7 +1290,7 @@ function Yr({
|
|
|
1290
1290
|
/* @__PURE__ */ e.jsx(
|
|
1291
1291
|
"input",
|
|
1292
1292
|
{
|
|
1293
|
-
ref:
|
|
1293
|
+
ref: g,
|
|
1294
1294
|
type: "file",
|
|
1295
1295
|
accept: u,
|
|
1296
1296
|
onChange: r,
|
|
@@ -1302,11 +1302,11 @@ function Yr({
|
|
|
1302
1302
|
/* @__PURE__ */ e.jsx(
|
|
1303
1303
|
"div",
|
|
1304
1304
|
{
|
|
1305
|
-
onDragEnter:
|
|
1306
|
-
onDragLeave:
|
|
1307
|
-
onDragOver:
|
|
1308
|
-
onDrop:
|
|
1309
|
-
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${
|
|
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
1310
|
children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1311
1311
|
/* @__PURE__ */ e.jsx(
|
|
1312
1312
|
"svg",
|
|
@@ -1324,7 +1324,7 @@ function Yr({
|
|
|
1324
1324
|
)
|
|
1325
1325
|
}
|
|
1326
1326
|
),
|
|
1327
|
-
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1327
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: "File uploaded successfully" }) }),
|
|
1328
1328
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-2 break-words", children: t.name }),
|
|
1329
1329
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted mt-1", children: [
|
|
1330
1330
|
(t.size / (1024 * 1024)).toFixed(2),
|
|
@@ -1371,9 +1371,9 @@ function Yr({
|
|
|
1371
1371
|
}
|
|
1372
1372
|
)
|
|
1373
1373
|
] }),
|
|
1374
|
-
a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1375
|
-
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1376
|
-
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 }) }),
|
|
1377
1377
|
f && /* @__PURE__ */ e.jsx(
|
|
1378
1378
|
D,
|
|
1379
1379
|
{
|
|
@@ -1401,24 +1401,24 @@ const or = P.forwardRef(
|
|
|
1401
1401
|
onChange: u,
|
|
1402
1402
|
...d
|
|
1403
1403
|
}, m) => {
|
|
1404
|
-
const
|
|
1405
|
-
a && (
|
|
1406
|
-
},
|
|
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;
|
|
1407
1407
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
1408
1408
|
/* @__PURE__ */ e.jsx(
|
|
1409
1409
|
"textarea",
|
|
1410
1410
|
{
|
|
1411
1411
|
ref: m,
|
|
1412
|
-
className:
|
|
1412
|
+
className: y,
|
|
1413
1413
|
disabled: c,
|
|
1414
1414
|
value: o,
|
|
1415
|
-
onChange:
|
|
1415
|
+
onChange: V,
|
|
1416
1416
|
maxLength: l,
|
|
1417
1417
|
...d
|
|
1418
1418
|
}
|
|
1419
1419
|
),
|
|
1420
1420
|
n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
1421
|
-
|
|
1421
|
+
R,
|
|
1422
1422
|
" / ",
|
|
1423
1423
|
l
|
|
1424
1424
|
] })
|
|
@@ -1426,7 +1426,7 @@ const or = P.forwardRef(
|
|
|
1426
1426
|
}
|
|
1427
1427
|
);
|
|
1428
1428
|
or.displayName = "Textarea";
|
|
1429
|
-
function
|
|
1429
|
+
function Wr({
|
|
1430
1430
|
options: r,
|
|
1431
1431
|
selectedValues: s,
|
|
1432
1432
|
onSelectionChange: t,
|
|
@@ -1444,11 +1444,11 @@ function Hr({
|
|
|
1444
1444
|
grid: `grid grid-cols-${l} gap-3`
|
|
1445
1445
|
}, d = a === "grid" ? "grid gap-3" : u[a], m = a === "grid" ? `md:grid-cols-${l}` : "";
|
|
1446
1446
|
return /* @__PURE__ */ e.jsx("div", { className: `${d} ${m}`, children: r.map((h) => {
|
|
1447
|
-
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`;
|
|
1448
1448
|
return /* @__PURE__ */ e.jsxs(
|
|
1449
1449
|
"label",
|
|
1450
1450
|
{
|
|
1451
|
-
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" : ""}`,
|
|
1452
1452
|
children: [
|
|
1453
1453
|
/* @__PURE__ */ e.jsx(
|
|
1454
1454
|
"input",
|
|
@@ -1472,7 +1472,7 @@ function Hr({
|
|
|
1472
1472
|
);
|
|
1473
1473
|
}) });
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function qr({
|
|
1476
1476
|
options: r,
|
|
1477
1477
|
selectedValue: s,
|
|
1478
1478
|
onSelectionChange: t,
|
|
@@ -1538,14 +1538,14 @@ function Zr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
|
1538
1538
|
] }, c);
|
|
1539
1539
|
}) });
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Gr({
|
|
1542
1542
|
items: r,
|
|
1543
1543
|
allowMultiple: s = !1,
|
|
1544
1544
|
defaultOpenId: t,
|
|
1545
1545
|
onOpenChange: a,
|
|
1546
1546
|
className: l = ""
|
|
1547
1547
|
}) {
|
|
1548
|
-
const [n, c] =
|
|
1548
|
+
const [n, c] = $(() => t ? Array.isArray(t) ? t : [t] : []), o = (u) => {
|
|
1549
1549
|
let d;
|
|
1550
1550
|
s ? d = n.includes(u) ? n.filter((m) => m !== u) : [...n, u] : d = n.includes(u) ? [] : [u], c(d), a?.(d);
|
|
1551
1551
|
};
|
|
@@ -1582,7 +1582,7 @@ function qr({
|
|
|
1582
1582
|
);
|
|
1583
1583
|
}) });
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function Jr({
|
|
1586
1586
|
icon: r,
|
|
1587
1587
|
title: s,
|
|
1588
1588
|
subtitle: t,
|
|
@@ -1594,9 +1594,9 @@ function Gr({
|
|
|
1594
1594
|
onClick: u,
|
|
1595
1595
|
className: d = ""
|
|
1596
1596
|
}) {
|
|
1597
|
-
const m = (
|
|
1598
|
-
const
|
|
1599
|
-
|
|
1597
|
+
const m = (g) => {
|
|
1598
|
+
const y = g.target;
|
|
1599
|
+
y.tagName === "BUTTON" || y.closest("button") || u?.(g);
|
|
1600
1600
|
}, x = (() => {
|
|
1601
1601
|
if (n)
|
|
1602
1602
|
switch (c) {
|
|
@@ -1625,26 +1625,26 @@ function Gr({
|
|
|
1625
1625
|
a && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: a })
|
|
1626
1626
|
] })
|
|
1627
1627
|
] }),
|
|
1628
|
-
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: o.map((
|
|
1628
|
+
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: o.map((g, y) => /* @__PURE__ */ e.jsx(
|
|
1629
1629
|
D,
|
|
1630
1630
|
{
|
|
1631
|
-
variant:
|
|
1632
|
-
size:
|
|
1633
|
-
onClick:
|
|
1634
|
-
disabled:
|
|
1635
|
-
loading:
|
|
1636
|
-
title:
|
|
1637
|
-
className:
|
|
1638
|
-
leftIcon:
|
|
1639
|
-
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
|
|
1640
1640
|
},
|
|
1641
|
-
|
|
1641
|
+
y
|
|
1642
1642
|
)) })
|
|
1643
1643
|
] })
|
|
1644
1644
|
}
|
|
1645
1645
|
);
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function Xr({
|
|
1648
1648
|
children: r,
|
|
1649
1649
|
variant: s = "default",
|
|
1650
1650
|
isActive: t = !1,
|
|
@@ -1671,7 +1671,7 @@ function Jr({
|
|
|
1671
1671
|
}
|
|
1672
1672
|
);
|
|
1673
1673
|
}
|
|
1674
|
-
const cr = {
|
|
1674
|
+
const cr = 200, ir = {
|
|
1675
1675
|
right: {
|
|
1676
1676
|
sm: "w-full sm:w-[360px]",
|
|
1677
1677
|
md: "w-full sm:w-[480px]",
|
|
@@ -1690,12 +1690,12 @@ const cr = {
|
|
|
1690
1690
|
lg: "h-[70vh]",
|
|
1691
1691
|
full: "h-full"
|
|
1692
1692
|
}
|
|
1693
|
-
},
|
|
1693
|
+
}, dr = {
|
|
1694
1694
|
right: "top-0 right-0 h-full",
|
|
1695
1695
|
left: "top-0 left-0 h-full",
|
|
1696
1696
|
bottom: "left-0 right-0 bottom-0 w-full"
|
|
1697
1697
|
};
|
|
1698
|
-
function
|
|
1698
|
+
function Kr({
|
|
1699
1699
|
open: r,
|
|
1700
1700
|
onClose: s,
|
|
1701
1701
|
title: t,
|
|
@@ -1708,29 +1708,41 @@ function Xr({
|
|
|
1708
1708
|
showCloseButton: d = !0,
|
|
1709
1709
|
className: m = ""
|
|
1710
1710
|
}) {
|
|
1711
|
-
|
|
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
|
+
}, []), _(() => {
|
|
1712
1723
|
if (!r || typeof document > "u")
|
|
1713
1724
|
return;
|
|
1714
|
-
const
|
|
1725
|
+
const k = document.body.style.overflow;
|
|
1715
1726
|
return document.body.style.overflow = "hidden", () => {
|
|
1716
|
-
document.body.style.overflow =
|
|
1727
|
+
document.body.style.overflow = k;
|
|
1717
1728
|
};
|
|
1718
|
-
}, [r]),
|
|
1729
|
+
}, [r]), _(() => {
|
|
1719
1730
|
if (!r || !u || typeof window > "u")
|
|
1720
1731
|
return;
|
|
1721
|
-
const
|
|
1722
|
-
|
|
1732
|
+
const k = (N) => {
|
|
1733
|
+
N.key === "Escape" && s();
|
|
1723
1734
|
};
|
|
1724
|
-
return window.addEventListener("keydown",
|
|
1725
|
-
window.removeEventListener("keydown",
|
|
1735
|
+
return window.addEventListener("keydown", k), () => {
|
|
1736
|
+
window.removeEventListener("keydown", k);
|
|
1726
1737
|
};
|
|
1727
|
-
}, [r, u, s]), !
|
|
1738
|
+
}, [r, u, s]), !h || typeof document > "u")
|
|
1728
1739
|
return null;
|
|
1729
|
-
const
|
|
1730
|
-
"fixed z-[60] bg-surface border-border shadow-xl flex flex-col",
|
|
1731
|
-
|
|
1732
|
-
|
|
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],
|
|
1733
1744
|
n === "bottom" ? "rounded-t-xl border-t" : n === "left" ? "border-r" : "border-l",
|
|
1745
|
+
V,
|
|
1734
1746
|
m
|
|
1735
1747
|
].filter(Boolean).join(" ");
|
|
1736
1748
|
return Se(
|
|
@@ -1740,11 +1752,11 @@ function Xr({
|
|
|
1740
1752
|
{
|
|
1741
1753
|
type: "button",
|
|
1742
1754
|
"aria-label": "Close drawer overlay",
|
|
1743
|
-
className:
|
|
1755
|
+
className: `absolute inset-0 bg-black/40 transition-opacity duration-200 ${f ? "opacity-100" : "opacity-0 pointer-events-none"}`,
|
|
1744
1756
|
onClick: o ? s : void 0
|
|
1745
1757
|
}
|
|
1746
1758
|
),
|
|
1747
|
-
/* @__PURE__ */ e.jsxs("section", { role: "dialog", "aria-modal": "true", className:
|
|
1759
|
+
/* @__PURE__ */ e.jsxs("section", { role: "dialog", "aria-modal": "true", className: R, children: [
|
|
1748
1760
|
/* @__PURE__ */ e.jsxs("header", { className: "flex items-center justify-between border-b border-border px-4 py-3", children: [
|
|
1749
1761
|
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-semibold text-text-primary", children: t }),
|
|
1750
1762
|
d ? /* @__PURE__ */ e.jsx(
|
|
@@ -1765,7 +1777,7 @@ function Xr({
|
|
|
1765
1777
|
document.body
|
|
1766
1778
|
);
|
|
1767
1779
|
}
|
|
1768
|
-
function
|
|
1780
|
+
function Qr({
|
|
1769
1781
|
title: r,
|
|
1770
1782
|
children: s,
|
|
1771
1783
|
subtitle: t,
|
|
@@ -1785,7 +1797,7 @@ function Kr({
|
|
|
1785
1797
|
s
|
|
1786
1798
|
] });
|
|
1787
1799
|
}
|
|
1788
|
-
function
|
|
1800
|
+
function es({
|
|
1789
1801
|
title: r,
|
|
1790
1802
|
subtitle: s,
|
|
1791
1803
|
metadata: t,
|
|
@@ -1806,7 +1818,7 @@ function Qr({
|
|
|
1806
1818
|
] }, c))
|
|
1807
1819
|
] });
|
|
1808
1820
|
}
|
|
1809
|
-
function
|
|
1821
|
+
function rs({
|
|
1810
1822
|
title: r,
|
|
1811
1823
|
description: s,
|
|
1812
1824
|
centered: t = !1,
|
|
@@ -1822,7 +1834,7 @@ function es({
|
|
|
1822
1834
|
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${c}`, children: s })
|
|
1823
1835
|
] });
|
|
1824
1836
|
}
|
|
1825
|
-
function
|
|
1837
|
+
function ss({
|
|
1826
1838
|
icon: r,
|
|
1827
1839
|
title: s,
|
|
1828
1840
|
description: t,
|
|
@@ -1851,7 +1863,7 @@ function rs({
|
|
|
1851
1863
|
}
|
|
1852
1864
|
);
|
|
1853
1865
|
}
|
|
1854
|
-
const
|
|
1866
|
+
const ur = P.forwardRef(
|
|
1855
1867
|
({
|
|
1856
1868
|
value: r,
|
|
1857
1869
|
onChange: s,
|
|
@@ -1867,8 +1879,8 @@ const dr = P.forwardRef(
|
|
|
1867
1879
|
disabled: h,
|
|
1868
1880
|
className: x = "",
|
|
1869
1881
|
...f
|
|
1870
|
-
},
|
|
1871
|
-
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}`,
|
|
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;
|
|
1872
1884
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1873
1885
|
c && (o || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1874
1886
|
o && /* @__PURE__ */ e.jsx("span", { children: o }),
|
|
@@ -1878,7 +1890,7 @@ const dr = P.forwardRef(
|
|
|
1878
1890
|
/* @__PURE__ */ e.jsx(
|
|
1879
1891
|
"input",
|
|
1880
1892
|
{
|
|
1881
|
-
ref:
|
|
1893
|
+
ref: g,
|
|
1882
1894
|
type: "range",
|
|
1883
1895
|
min: t,
|
|
1884
1896
|
max: a,
|
|
@@ -1896,14 +1908,14 @@ const dr = P.forwardRef(
|
|
|
1896
1908
|
"div",
|
|
1897
1909
|
{
|
|
1898
1910
|
className: "h-full bg-reseda-green-500 transition-all",
|
|
1899
|
-
style: { width: `${
|
|
1911
|
+
style: { width: `${O}%` }
|
|
1900
1912
|
}
|
|
1901
1913
|
) })
|
|
1902
1914
|
] });
|
|
1903
1915
|
}
|
|
1904
1916
|
);
|
|
1905
|
-
|
|
1906
|
-
function
|
|
1917
|
+
ur.displayName = "Slider";
|
|
1918
|
+
function mr({
|
|
1907
1919
|
title: r,
|
|
1908
1920
|
titleId: s,
|
|
1909
1921
|
...t
|
|
@@ -1926,8 +1938,8 @@ function ur({
|
|
|
1926
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"
|
|
1927
1939
|
}));
|
|
1928
1940
|
}
|
|
1929
|
-
const
|
|
1930
|
-
function
|
|
1941
|
+
const xr = /* @__PURE__ */ j.forwardRef(mr);
|
|
1942
|
+
function hr({
|
|
1931
1943
|
title: r,
|
|
1932
1944
|
titleId: s,
|
|
1933
1945
|
...t
|
|
@@ -1948,8 +1960,8 @@ function xr({
|
|
|
1948
1960
|
clipRule: "evenodd"
|
|
1949
1961
|
}));
|
|
1950
1962
|
}
|
|
1951
|
-
const
|
|
1952
|
-
function
|
|
1963
|
+
const fr = /* @__PURE__ */ j.forwardRef(hr);
|
|
1964
|
+
function gr({
|
|
1953
1965
|
title: r,
|
|
1954
1966
|
titleId: s,
|
|
1955
1967
|
...t
|
|
@@ -1970,8 +1982,8 @@ function fr({
|
|
|
1970
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"
|
|
1971
1983
|
}));
|
|
1972
1984
|
}
|
|
1973
|
-
const
|
|
1974
|
-
function
|
|
1985
|
+
const br = /* @__PURE__ */ j.forwardRef(gr);
|
|
1986
|
+
function vr({
|
|
1975
1987
|
title: r,
|
|
1976
1988
|
titleId: s,
|
|
1977
1989
|
...t
|
|
@@ -1990,7 +2002,7 @@ function br({
|
|
|
1990
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"
|
|
1991
2003
|
}));
|
|
1992
2004
|
}
|
|
1993
|
-
const
|
|
2005
|
+
const pr = /* @__PURE__ */ j.forwardRef(vr), jr = {
|
|
1994
2006
|
neutral: {
|
|
1995
2007
|
selectedContainer: "border-gray-300 bg-gray-50",
|
|
1996
2008
|
selectedIndicator: "text-gray-500",
|
|
@@ -2007,7 +2019,7 @@ const vr = /* @__PURE__ */ j.forwardRef(br), pr = {
|
|
|
2007
2019
|
inputAccent: "accent-blue-600"
|
|
2008
2020
|
}
|
|
2009
2021
|
};
|
|
2010
|
-
function
|
|
2022
|
+
function ts({
|
|
2011
2023
|
id: r,
|
|
2012
2024
|
name: s,
|
|
2013
2025
|
checked: t,
|
|
@@ -2020,7 +2032,7 @@ function ss({
|
|
|
2020
2032
|
disabled: d = !1,
|
|
2021
2033
|
className: m = ""
|
|
2022
2034
|
}) {
|
|
2023
|
-
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";
|
|
2024
2036
|
return /* @__PURE__ */ e.jsxs(
|
|
2025
2037
|
"label",
|
|
2026
2038
|
{
|
|
@@ -2042,12 +2054,12 @@ function ss({
|
|
|
2042
2054
|
n ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-500", children: n }) : null,
|
|
2043
2055
|
c ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-400", children: c }) : null
|
|
2044
2056
|
] }),
|
|
2045
|
-
u && t ? /* @__PURE__ */ e.jsx(
|
|
2057
|
+
u && t ? /* @__PURE__ */ e.jsx(fr, { className: `h-4 w-4 mt-0.5 shrink-0 ${h.selectedIndicator}` }) : null
|
|
2046
2058
|
]
|
|
2047
2059
|
}
|
|
2048
2060
|
);
|
|
2049
2061
|
}
|
|
2050
|
-
function
|
|
2062
|
+
function yr({
|
|
2051
2063
|
id: r,
|
|
2052
2064
|
index: s,
|
|
2053
2065
|
previewText: t,
|
|
@@ -2057,16 +2069,16 @@ function jr({
|
|
|
2057
2069
|
onRemove: c,
|
|
2058
2070
|
className: o = ""
|
|
2059
2071
|
}) {
|
|
2060
|
-
const [u, d] =
|
|
2072
|
+
const [u, d] = $(a), { attributes: m, listeners: h, setNodeRef: x, transform: f, transition: g, isDragging: y } = Be({ id: r }), V = {
|
|
2061
2073
|
transform: Me.Transform.toString(f),
|
|
2062
|
-
transition:
|
|
2063
|
-
opacity:
|
|
2074
|
+
transition: g,
|
|
2075
|
+
opacity: y ? 0.5 : 1
|
|
2064
2076
|
};
|
|
2065
2077
|
return /* @__PURE__ */ e.jsx(
|
|
2066
2078
|
"div",
|
|
2067
2079
|
{
|
|
2068
2080
|
ref: x,
|
|
2069
|
-
style:
|
|
2081
|
+
style: V,
|
|
2070
2082
|
className: `border border-border rounded-md bg-surface-variant ${o}`,
|
|
2071
2083
|
children: u ? (
|
|
2072
2084
|
// ── Expanded ──────────────────────────────────────────────────────────
|
|
@@ -2175,8 +2187,8 @@ function jr({
|
|
|
2175
2187
|
}
|
|
2176
2188
|
);
|
|
2177
2189
|
}
|
|
2178
|
-
|
|
2179
|
-
const
|
|
2190
|
+
yr.displayName = "SortableItem";
|
|
2191
|
+
const wr = {
|
|
2180
2192
|
bg: "bg-indigo-600",
|
|
2181
2193
|
activeBg: "bg-indigo-700",
|
|
2182
2194
|
text: "text-indigo-200",
|
|
@@ -2184,11 +2196,11 @@ const yr = {
|
|
|
2184
2196
|
hoverBg: "hover:bg-indigo-700",
|
|
2185
2197
|
hoverText: "hover:text-white"
|
|
2186
2198
|
};
|
|
2187
|
-
function
|
|
2199
|
+
function A(...r) {
|
|
2188
2200
|
return r.filter(Boolean).join(" ");
|
|
2189
2201
|
}
|
|
2190
2202
|
function be({ item: r, colorScheme: s }) {
|
|
2191
|
-
const [t, a] =
|
|
2203
|
+
const [t, a] = $(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
|
|
2192
2204
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
2193
2205
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
2194
2206
|
"a",
|
|
@@ -2197,7 +2209,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2197
2209
|
onClick: (n) => {
|
|
2198
2210
|
l && (n.preventDefault(), a(!t));
|
|
2199
2211
|
},
|
|
2200
|
-
className:
|
|
2212
|
+
className: A(
|
|
2201
2213
|
r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
2202
2214
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
2203
2215
|
l ? "cursor-pointer" : ""
|
|
@@ -2208,7 +2220,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2208
2220
|
r.icon,
|
|
2209
2221
|
{
|
|
2210
2222
|
"aria-hidden": "true",
|
|
2211
|
-
className:
|
|
2223
|
+
className: A(
|
|
2212
2224
|
r.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
2213
2225
|
"size-6 shrink-0"
|
|
2214
2226
|
)
|
|
@@ -2219,7 +2231,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2219
2231
|
l && /* @__PURE__ */ e.jsx(
|
|
2220
2232
|
te,
|
|
2221
2233
|
{
|
|
2222
|
-
className:
|
|
2234
|
+
className: A(
|
|
2223
2235
|
"size-5 shrink-0 transition-transform",
|
|
2224
2236
|
t ? "rotate-180" : "",
|
|
2225
2237
|
r.current ? s.activeText : s.text
|
|
@@ -2233,7 +2245,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2233
2245
|
"a",
|
|
2234
2246
|
{
|
|
2235
2247
|
href: n.href,
|
|
2236
|
-
className:
|
|
2248
|
+
className: A(
|
|
2237
2249
|
n.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
2238
2250
|
"group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
|
|
2239
2251
|
),
|
|
@@ -2242,7 +2254,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2242
2254
|
n.icon,
|
|
2243
2255
|
{
|
|
2244
2256
|
"aria-hidden": "true",
|
|
2245
|
-
className:
|
|
2257
|
+
className: A(
|
|
2246
2258
|
n.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
2247
2259
|
"size-5 shrink-0"
|
|
2248
2260
|
)
|
|
@@ -2254,12 +2266,12 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2254
2266
|
) }, n.name)) })
|
|
2255
2267
|
] });
|
|
2256
2268
|
}
|
|
2257
|
-
function
|
|
2258
|
-
const [l, n] =
|
|
2269
|
+
function as({ company: r, profile: s, navigation: t, colorScheme: a = wr }) {
|
|
2270
|
+
const [l, n] = $(!1);
|
|
2259
2271
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
2260
|
-
/* @__PURE__ */ e.jsxs(
|
|
2272
|
+
/* @__PURE__ */ e.jsxs(_e, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
2261
2273
|
/* @__PURE__ */ e.jsx(
|
|
2262
|
-
|
|
2274
|
+
De,
|
|
2263
2275
|
{
|
|
2264
2276
|
transition: !0,
|
|
2265
2277
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
@@ -2275,7 +2287,7 @@ function ts({ company: r, profile: s, navigation: t, colorScheme: a = yr }) {
|
|
|
2275
2287
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
2276
2288
|
/* @__PURE__ */ e.jsx(we, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
2277
2289
|
] }) }) }),
|
|
2278
|
-
/* @__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: [
|
|
2279
2291
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
2280
2292
|
"img",
|
|
2281
2293
|
{
|
|
@@ -2290,7 +2302,7 @@ function ts({ company: r, profile: s, navigation: t, colorScheme: a = yr }) {
|
|
|
2290
2302
|
}
|
|
2291
2303
|
) })
|
|
2292
2304
|
] }),
|
|
2293
|
-
/* @__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: [
|
|
2294
2306
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
2295
2307
|
"img",
|
|
2296
2308
|
{
|
|
@@ -2305,7 +2317,7 @@ function ts({ company: r, profile: s, navigation: t, colorScheme: a = yr }) {
|
|
|
2305
2317
|
"a",
|
|
2306
2318
|
{
|
|
2307
2319
|
href: "#",
|
|
2308
|
-
className:
|
|
2320
|
+
className: A(
|
|
2309
2321
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
2310
2322
|
a.activeText,
|
|
2311
2323
|
a.hoverBg
|
|
@@ -2316,7 +2328,7 @@ function ts({ company: r, profile: s, navigation: t, colorScheme: a = yr }) {
|
|
|
2316
2328
|
{
|
|
2317
2329
|
alt: s.name,
|
|
2318
2330
|
src: s.image,
|
|
2319
|
-
className:
|
|
2331
|
+
className: A("size-8 rounded-full", a.activeBg)
|
|
2320
2332
|
}
|
|
2321
2333
|
),
|
|
2322
2334
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
@@ -2326,12 +2338,12 @@ function ts({ company: r, profile: s, navigation: t, colorScheme: a = yr }) {
|
|
|
2326
2338
|
) })
|
|
2327
2339
|
] }) })
|
|
2328
2340
|
] }) }),
|
|
2329
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2330
|
-
/* @__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: [
|
|
2331
2343
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
2332
2344
|
/* @__PURE__ */ e.jsx(Ae, { "aria-hidden": "true", className: "size-6" })
|
|
2333
2345
|
] }),
|
|
2334
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2346
|
+
/* @__PURE__ */ e.jsx("div", { className: A("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
|
|
2335
2347
|
/* @__PURE__ */ e.jsxs("a", { href: "#", children: [
|
|
2336
2348
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
2337
2349
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2339,14 +2351,14 @@ function ts({ company: r, profile: s, navigation: t, colorScheme: a = yr }) {
|
|
|
2339
2351
|
{
|
|
2340
2352
|
alt: s.name,
|
|
2341
2353
|
src: s.image,
|
|
2342
|
-
className:
|
|
2354
|
+
className: A("size-8 rounded-full", a.activeBg)
|
|
2343
2355
|
}
|
|
2344
2356
|
)
|
|
2345
2357
|
] })
|
|
2346
2358
|
] })
|
|
2347
2359
|
] }) });
|
|
2348
2360
|
}
|
|
2349
|
-
const
|
|
2361
|
+
const Nr = {
|
|
2350
2362
|
activeBg: "bg-reseda-green-700",
|
|
2351
2363
|
activeText: "text-white",
|
|
2352
2364
|
completedBg: "bg-success-500",
|
|
@@ -2357,8 +2369,8 @@ const wr = {
|
|
|
2357
2369
|
labelInactiveText: "text-text-muted",
|
|
2358
2370
|
connectorBg: "bg-border"
|
|
2359
2371
|
};
|
|
2360
|
-
function
|
|
2361
|
-
const a = t ||
|
|
2372
|
+
function ns({ currentStep: r, steps: s, colorConfig: t }) {
|
|
2373
|
+
const a = t || Nr;
|
|
2362
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: [
|
|
2363
2375
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
2364
2376
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2379,15 +2391,15 @@ function as({ currentStep: r, steps: s, colorConfig: t }) {
|
|
|
2379
2391
|
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
|
|
2380
2392
|
] }, l.number)) }) });
|
|
2381
2393
|
}
|
|
2382
|
-
const
|
|
2394
|
+
const Cr = {
|
|
2383
2395
|
activeText: "text-reseda-green-700",
|
|
2384
2396
|
activeBorder: "border-reseda-green-700",
|
|
2385
2397
|
inactiveText: "text-text-secondary",
|
|
2386
2398
|
inactiveHoverText: "hover:text-text-primary",
|
|
2387
2399
|
disabledText: "text-text-disabled"
|
|
2388
2400
|
};
|
|
2389
|
-
function
|
|
2390
|
-
const n = l ||
|
|
2401
|
+
function ls({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
|
|
2402
|
+
const n = l || Cr;
|
|
2391
2403
|
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
|
|
2392
2404
|
const o = s === c.id;
|
|
2393
2405
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -2403,7 +2415,7 @@ function ns({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig:
|
|
|
2403
2415
|
);
|
|
2404
2416
|
}) });
|
|
2405
2417
|
}
|
|
2406
|
-
function
|
|
2418
|
+
function os({
|
|
2407
2419
|
status: r,
|
|
2408
2420
|
title: s,
|
|
2409
2421
|
message: t,
|
|
@@ -2492,15 +2504,15 @@ const ke = ({
|
|
|
2492
2504
|
] });
|
|
2493
2505
|
};
|
|
2494
2506
|
ke.displayName = "ChatMessage";
|
|
2495
|
-
const
|
|
2507
|
+
const kr = ({
|
|
2496
2508
|
onSend: r,
|
|
2497
2509
|
disabled: s = !1,
|
|
2498
2510
|
placeholder: t = "Ask a question about your resume or the job...",
|
|
2499
2511
|
maxLength: a = 2e3,
|
|
2500
2512
|
className: l = ""
|
|
2501
2513
|
}) => {
|
|
2502
|
-
const [n, c] =
|
|
2503
|
-
|
|
2514
|
+
const [n, c] = $(""), o = W(null);
|
|
2515
|
+
_(() => {
|
|
2504
2516
|
o.current && (o.current.style.height = "auto", o.current.style.height = `${o.current.scrollHeight}px`);
|
|
2505
2517
|
}, [n]);
|
|
2506
2518
|
const u = () => {
|
|
@@ -2532,7 +2544,7 @@ const Cr = ({
|
|
|
2532
2544
|
disabled: s || !n.trim() || m,
|
|
2533
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",
|
|
2534
2546
|
"aria-label": "Send message",
|
|
2535
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2547
|
+
children: /* @__PURE__ */ e.jsx(pr, { className: "w-5 h-5" })
|
|
2536
2548
|
}
|
|
2537
2549
|
)
|
|
2538
2550
|
] }),
|
|
@@ -2546,7 +2558,7 @@ const Cr = ({
|
|
|
2546
2558
|
] })
|
|
2547
2559
|
] });
|
|
2548
2560
|
};
|
|
2549
|
-
|
|
2561
|
+
kr.displayName = "ChatInput";
|
|
2550
2562
|
const $e = ({
|
|
2551
2563
|
message: r = "Thinking...",
|
|
2552
2564
|
variant: s = "dots",
|
|
@@ -2575,7 +2587,7 @@ const $e = ({
|
|
|
2575
2587
|
] }) })
|
|
2576
2588
|
] });
|
|
2577
2589
|
$e.displayName = "LoadingIndicator";
|
|
2578
|
-
const
|
|
2590
|
+
const $r = ({
|
|
2579
2591
|
messages: r,
|
|
2580
2592
|
isLoading: s = !1,
|
|
2581
2593
|
loadingMessage: t = "Thinking...",
|
|
@@ -2584,8 +2596,8 @@ const kr = ({
|
|
|
2584
2596
|
className: n = "",
|
|
2585
2597
|
emptyStateMessage: c = "Start a conversation"
|
|
2586
2598
|
}) => {
|
|
2587
|
-
const o =
|
|
2588
|
-
return
|
|
2599
|
+
const o = W(null), u = W(null);
|
|
2600
|
+
return _(() => {
|
|
2589
2601
|
o.current?.scrollIntoView({ behavior: "smooth" });
|
|
2590
2602
|
}, [r, s]), /* @__PURE__ */ e.jsxs(
|
|
2591
2603
|
"div",
|
|
@@ -2633,8 +2645,8 @@ const kr = ({
|
|
|
2633
2645
|
}
|
|
2634
2646
|
);
|
|
2635
2647
|
};
|
|
2636
|
-
|
|
2637
|
-
const
|
|
2648
|
+
$r.displayName = "ChatContainer";
|
|
2649
|
+
const Vr = ({
|
|
2638
2650
|
resumeName: r,
|
|
2639
2651
|
jobTitle: s,
|
|
2640
2652
|
companyName: t,
|
|
@@ -2645,7 +2657,7 @@ const $r = ({
|
|
|
2645
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: [
|
|
2646
2658
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2647
2659
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2648
|
-
/* @__PURE__ */ e.jsx(
|
|
2660
|
+
/* @__PURE__ */ e.jsx(br, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2649
2661
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2650
2662
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Resume" }),
|
|
2651
2663
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm font-medium text-gray-900 truncate", children: r })
|
|
@@ -2663,7 +2675,7 @@ const $r = ({
|
|
|
2663
2675
|
] }),
|
|
2664
2676
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2665
2677
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2666
|
-
/* @__PURE__ */ e.jsx(
|
|
2678
|
+
/* @__PURE__ */ e.jsx(xr, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2667
2679
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2668
2680
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Job" }),
|
|
2669
2681
|
/* @__PURE__ */ e.jsxs("div", { className: "truncate", children: [
|
|
@@ -2699,7 +2711,7 @@ const $r = ({
|
|
|
2699
2711
|
) })
|
|
2700
2712
|
] })
|
|
2701
2713
|
] }) });
|
|
2702
|
-
|
|
2714
|
+
Vr.displayName = "AnalysisSummaryBar";
|
|
2703
2715
|
const re = {
|
|
2704
2716
|
semantic: {
|
|
2705
2717
|
none: "bg-error-50 border-error-200 text-error-700",
|
|
@@ -2716,7 +2728,7 @@ const re = {
|
|
|
2716
2728
|
partial: "bg-surface border-warning-300 text-warning-700",
|
|
2717
2729
|
full: "bg-surface border-success-300 text-success-700"
|
|
2718
2730
|
}
|
|
2719
|
-
},
|
|
2731
|
+
}, Tr = {
|
|
2720
2732
|
semantic: {
|
|
2721
2733
|
required: "bg-error-600 text-white",
|
|
2722
2734
|
preferred: "bg-reseda-green-600 text-white",
|
|
@@ -2732,12 +2744,12 @@ const re = {
|
|
|
2732
2744
|
preferred: "bg-reseda-green-700 text-reseda-green-100",
|
|
2733
2745
|
"nice-to-have": "bg-khaki-700 text-khaki-100"
|
|
2734
2746
|
}
|
|
2735
|
-
},
|
|
2747
|
+
}, Er = ({
|
|
2736
2748
|
skills: r,
|
|
2737
2749
|
className: s = "",
|
|
2738
2750
|
colorPreset: t = "semantic"
|
|
2739
2751
|
}) => {
|
|
2740
|
-
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) =>
|
|
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: [
|
|
2741
2753
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs font-semibold text-text-secondary mb-2", children: [
|
|
2742
2754
|
o,
|
|
2743
2755
|
":"
|
|
@@ -2773,8 +2785,8 @@ const re = {
|
|
|
2773
2785
|
c("Soft Skills", r.soft || [])
|
|
2774
2786
|
] });
|
|
2775
2787
|
};
|
|
2776
|
-
|
|
2777
|
-
const
|
|
2788
|
+
Er.displayName = "SkillTags";
|
|
2789
|
+
const Rr = ({
|
|
2778
2790
|
score: r,
|
|
2779
2791
|
showLabel: s = !0,
|
|
2780
2792
|
size: t = "md",
|
|
@@ -2807,8 +2819,8 @@ const Er = ({
|
|
|
2807
2819
|
s && /* @__PURE__ */ e.jsx("p", { className: `text-gray-600 mt-1 ${u[t]}`, children: c(l) })
|
|
2808
2820
|
] });
|
|
2809
2821
|
};
|
|
2810
|
-
|
|
2811
|
-
const
|
|
2822
|
+
Rr.displayName = "MatchScoreBar";
|
|
2823
|
+
const Ar = ({
|
|
2812
2824
|
responsibilities: r,
|
|
2813
2825
|
className: s = ""
|
|
2814
2826
|
}) => {
|
|
@@ -2848,55 +2860,55 @@ const Rr = ({
|
|
|
2848
2860
|
] }, o)) })
|
|
2849
2861
|
] }, l)) });
|
|
2850
2862
|
};
|
|
2851
|
-
|
|
2863
|
+
Ar.displayName = "ResponsibilitiesList";
|
|
2852
2864
|
export {
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2865
|
+
Gr as Accordion,
|
|
2866
|
+
Jr as ActionCard,
|
|
2867
|
+
G as Alert,
|
|
2868
|
+
Vr as AnalysisSummaryBar,
|
|
2857
2869
|
rr as Badge,
|
|
2858
2870
|
D as Button,
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2871
|
+
Xr as Card,
|
|
2872
|
+
$r as ChatContainer,
|
|
2873
|
+
kr as ChatInput,
|
|
2862
2874
|
ke as ChatMessage,
|
|
2863
|
-
|
|
2875
|
+
Wr as CheckboxGroup,
|
|
2864
2876
|
He as ColorPalette,
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2877
|
+
Ur as Demo,
|
|
2878
|
+
es as DetailPanel,
|
|
2879
|
+
Kr as Drawer,
|
|
2880
|
+
Hr as FileUpload,
|
|
2881
|
+
Yr as FormField,
|
|
2870
2882
|
Je as Input,
|
|
2871
2883
|
$e as LoadingIndicator,
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2884
|
+
Rr as MatchScoreBar,
|
|
2885
|
+
ss as OptionCard,
|
|
2886
|
+
rs as PageHeader,
|
|
2887
|
+
qr as RadioGroup,
|
|
2888
|
+
Ar as ResponsibilitiesList,
|
|
2889
|
+
Qr as Section,
|
|
2878
2890
|
Xe as Select,
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2891
|
+
ts as SelectableRadioOption,
|
|
2892
|
+
as as Sidebar,
|
|
2893
|
+
Er as SkillTags,
|
|
2894
|
+
ur as Slider,
|
|
2883
2895
|
lr as SocialButton,
|
|
2884
|
-
|
|
2896
|
+
yr as SortableItem,
|
|
2885
2897
|
Zr as StatsGrid,
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2898
|
+
os as StatusBanner,
|
|
2899
|
+
ns as Stepper,
|
|
2900
|
+
ls as TabBar,
|
|
2889
2901
|
sr as TagInput,
|
|
2890
2902
|
or as Textarea,
|
|
2891
2903
|
We as ThemeProvider,
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2904
|
+
Ze as ThemeToggle,
|
|
2905
|
+
Lr as clearAllErrors,
|
|
2906
|
+
zr as clearFieldError,
|
|
2907
|
+
Pr as getFirstError,
|
|
2896
2908
|
ze as hasErrors,
|
|
2897
|
-
|
|
2898
|
-
|
|
2909
|
+
Fr as useForm,
|
|
2910
|
+
qe as useTheme,
|
|
2899
2911
|
Pe as validateField,
|
|
2900
2912
|
ee as validateForm,
|
|
2901
|
-
|
|
2913
|
+
Ir as validators
|
|
2902
2914
|
};
|