acemyjob-ui 2.0.6 → 2.0.7
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 +482 -435
- package/dist/acemyjob-ui.umd.js +4 -4
- package/dist/component/index.d.ts +2 -0
- 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 $, useCallback as M, createContext as
|
|
3
|
-
import { ChevronDownIcon as te, InformationCircleIcon as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { useSortable as
|
|
6
|
-
import { CSS as
|
|
7
|
-
import { Dialog as
|
|
8
|
-
const
|
|
2
|
+
import P, { useState as $, useCallback as M, createContext as Se, useEffect as D, useContext as Ae, useRef as W } from "react";
|
|
3
|
+
import { ChevronDownIcon as te, InformationCircleIcon as je, ExclamationCircleIcon as ye, XCircleIcon as we, CheckCircleIcon as Ne, XMarkIcon as Ce, CheckIcon as Be, Bars3Icon as Me } from "@heroicons/react/24/outline";
|
|
4
|
+
import { createPortal as De } from "react-dom";
|
|
5
|
+
import { useSortable as _e } from "@dnd-kit/sortable";
|
|
6
|
+
import { CSS as Oe } from "@dnd-kit/utilities";
|
|
7
|
+
import { Dialog as Ie, DialogBackdrop as Pe, DialogPanel as ze, TransitionChild as Le } from "@headlessui/react";
|
|
8
|
+
const Fr = {
|
|
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
|
|
@@ -60,7 +60,7 @@ const Ir = {
|
|
|
60
60
|
message: s
|
|
61
61
|
})
|
|
62
62
|
};
|
|
63
|
-
function
|
|
63
|
+
function Fe(r, s) {
|
|
64
64
|
for (const t of s)
|
|
65
65
|
if (!t.validate(r))
|
|
66
66
|
return t.message;
|
|
@@ -69,42 +69,42 @@ function Pe(r, s) {
|
|
|
69
69
|
function ee(r, s) {
|
|
70
70
|
const t = {};
|
|
71
71
|
for (const [a, l] of Object.entries(s)) {
|
|
72
|
-
const n = r[a], c =
|
|
72
|
+
const n = r[a], c = Fe(n, l);
|
|
73
73
|
t[a] = c;
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ue(r) {
|
|
78
78
|
return Object.values(r).some((s) => s !== null);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Ur(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 Yr(r, s) {
|
|
87
87
|
return {
|
|
88
88
|
...r,
|
|
89
89
|
[s]: null
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Hr(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 Wr({
|
|
99
99
|
initialValues: r,
|
|
100
100
|
validationRules: s = {},
|
|
101
101
|
onSubmit: t
|
|
102
102
|
}) {
|
|
103
|
-
const [a, l] = $(r), [n, c] = $({}), [o,
|
|
103
|
+
const [a, l] = $(r), [n, c] = $({}), [o, m] = $({}), [u, d] = $(!1), x = JSON.stringify(a) !== JSON.stringify(r), h = M(
|
|
104
104
|
(p) => {
|
|
105
|
-
const { name: v, value: C, type:
|
|
105
|
+
const { name: v, value: C, type: A } = p.target;
|
|
106
106
|
let F = C;
|
|
107
|
-
if (
|
|
107
|
+
if (A === "checkbox" ? F = p.target.checked : A === "number" && (F = C ? Number(C) : ""), l((z) => ({
|
|
108
108
|
...z,
|
|
109
109
|
[v]: F
|
|
110
110
|
})), s[v]) {
|
|
@@ -119,7 +119,7 @@ function Fr({
|
|
|
119
119
|
), f = M(
|
|
120
120
|
(p) => {
|
|
121
121
|
const { name: v } = p.target;
|
|
122
|
-
|
|
122
|
+
m((C) => ({
|
|
123
123
|
...C,
|
|
124
124
|
[v]: !0
|
|
125
125
|
}));
|
|
@@ -131,8 +131,8 @@ function Fr({
|
|
|
131
131
|
[p]: v
|
|
132
132
|
})), s[p]) {
|
|
133
133
|
const C = ee({ [p]: v }, { [p]: s[p] });
|
|
134
|
-
c((
|
|
135
|
-
...
|
|
134
|
+
c((A) => ({
|
|
135
|
+
...A,
|
|
136
136
|
[p]: C[p]
|
|
137
137
|
}));
|
|
138
138
|
}
|
|
@@ -147,30 +147,30 @@ function Fr({
|
|
|
147
147
|
const v = ee(a, s);
|
|
148
148
|
c(v);
|
|
149
149
|
const C = {};
|
|
150
|
-
for (const
|
|
151
|
-
C[
|
|
152
|
-
if (
|
|
153
|
-
|
|
150
|
+
for (const A of Object.keys(a))
|
|
151
|
+
C[A] = !0;
|
|
152
|
+
if (m(C), !Ue(v) && t) {
|
|
153
|
+
d(!0);
|
|
154
154
|
try {
|
|
155
155
|
await t(a);
|
|
156
|
-
} catch (
|
|
157
|
-
console.error("Form submission error:",
|
|
156
|
+
} catch (A) {
|
|
157
|
+
console.error("Form submission error:", A);
|
|
158
158
|
} finally {
|
|
159
|
-
|
|
159
|
+
d(!1);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
[a, s, t]
|
|
164
164
|
), R = M(() => {
|
|
165
|
-
l(r), c({}),
|
|
165
|
+
l(r), c({}), m({}), d(!1);
|
|
166
166
|
}, [r]), k = M(
|
|
167
167
|
(p) => ({
|
|
168
168
|
name: p,
|
|
169
169
|
value: a[p] || "",
|
|
170
|
-
onChange:
|
|
170
|
+
onChange: h,
|
|
171
171
|
onBlur: f
|
|
172
172
|
}),
|
|
173
|
-
[a,
|
|
173
|
+
[a, h, f]
|
|
174
174
|
), N = M(
|
|
175
175
|
(p) => n[p] || null,
|
|
176
176
|
[n]
|
|
@@ -185,9 +185,9 @@ function Fr({
|
|
|
185
185
|
values: a,
|
|
186
186
|
errors: n,
|
|
187
187
|
touched: o,
|
|
188
|
-
isSubmitting:
|
|
189
|
-
isDirty:
|
|
190
|
-
handleChange:
|
|
188
|
+
isSubmitting: u,
|
|
189
|
+
isDirty: x,
|
|
190
|
+
handleChange: h,
|
|
191
191
|
handleBlur: f,
|
|
192
192
|
setFieldValue: g,
|
|
193
193
|
setFieldError: y,
|
|
@@ -210,7 +210,7 @@ var Z = { exports: {} }, Y = {};
|
|
|
210
210
|
* LICENSE file in the root directory of this source tree.
|
|
211
211
|
*/
|
|
212
212
|
var ie;
|
|
213
|
-
function
|
|
213
|
+
function Ye() {
|
|
214
214
|
if (ie) return Y;
|
|
215
215
|
ie = 1;
|
|
216
216
|
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
@@ -242,7 +242,7 @@ var H = {};
|
|
|
242
242
|
* LICENSE file in the root directory of this source tree.
|
|
243
243
|
*/
|
|
244
244
|
var de;
|
|
245
|
-
function
|
|
245
|
+
function He() {
|
|
246
246
|
return de || (de = 1, process.env.NODE_ENV !== "production" && function() {
|
|
247
247
|
function r(i) {
|
|
248
248
|
if (i == null) return null;
|
|
@@ -260,7 +260,7 @@ function Fe() {
|
|
|
260
260
|
return "Suspense";
|
|
261
261
|
case p:
|
|
262
262
|
return "SuspenseList";
|
|
263
|
-
case
|
|
263
|
+
case A:
|
|
264
264
|
return "Activity";
|
|
265
265
|
}
|
|
266
266
|
if (typeof i == "object")
|
|
@@ -344,13 +344,13 @@ function Fe() {
|
|
|
344
344
|
configurable: !0
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function m() {
|
|
348
348
|
var i = r(this.type);
|
|
349
349
|
return ne[i] || (ne[i] = !0, console.error(
|
|
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
|
|
353
|
+
function u(i, b, w, T, I, B, X, K) {
|
|
354
354
|
return w = B.ref, i = {
|
|
355
355
|
$$typeof: f,
|
|
356
356
|
type: i,
|
|
@@ -359,7 +359,7 @@ function Fe() {
|
|
|
359
359
|
_owner: I
|
|
360
360
|
}, (w !== void 0 ? w : null) !== null ? Object.defineProperty(i, "ref", {
|
|
361
361
|
enumerable: !1,
|
|
362
|
-
get:
|
|
362
|
+
get: m
|
|
363
363
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
364
364
|
configurable: !1,
|
|
365
365
|
enumerable: !1,
|
|
@@ -382,23 +382,23 @@ function Fe() {
|
|
|
382
382
|
value: K
|
|
383
383
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function d(i, b, w, T, I, B, X, K) {
|
|
386
386
|
var E = b.children;
|
|
387
387
|
if (E !== void 0)
|
|
388
388
|
if (T)
|
|
389
|
-
if (
|
|
389
|
+
if (Ee(E)) {
|
|
390
390
|
for (T = 0; T < E.length; T++)
|
|
391
|
-
|
|
391
|
+
x(E[T]);
|
|
392
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
|
|
397
|
+
else x(E);
|
|
398
398
|
if (q.call(b, "key")) {
|
|
399
399
|
E = r(i);
|
|
400
|
-
var U = Object.keys(b).filter(function(
|
|
401
|
-
return
|
|
400
|
+
var U = Object.keys(b).filter(function(Re) {
|
|
401
|
+
return Re !== "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:
|
|
@@ -421,7 +421,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
421
421
|
return E && o(
|
|
422
422
|
w,
|
|
423
423
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
424
|
-
),
|
|
424
|
+
), u(
|
|
425
425
|
i,
|
|
426
426
|
E,
|
|
427
427
|
B,
|
|
@@ -432,24 +432,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
432
432
|
K
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function x(i) {
|
|
436
436
|
typeof i == "object" && i !== null && i.$$typeof === f && i._store && (i._store.validated = 1);
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var h = 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"), A = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), z = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, Ee = Array.isArray, J = console.createTask ? console.createTask : function() {
|
|
439
439
|
return null;
|
|
440
440
|
};
|
|
441
|
-
|
|
441
|
+
h = {
|
|
442
442
|
"react-stack-bottom-frame": function(i) {
|
|
443
443
|
return i();
|
|
444
444
|
}
|
|
445
445
|
};
|
|
446
|
-
var ae, ne = {}, le =
|
|
447
|
-
|
|
446
|
+
var ae, ne = {}, le = h["react-stack-bottom-frame"].bind(
|
|
447
|
+
h,
|
|
448
448
|
n
|
|
449
449
|
)(), oe = J(a(n)), ce = {};
|
|
450
450
|
H.Fragment = y, H.jsx = function(i, b, w, T, I) {
|
|
451
451
|
var B = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
452
|
-
return
|
|
452
|
+
return d(
|
|
453
453
|
i,
|
|
454
454
|
b,
|
|
455
455
|
w,
|
|
@@ -461,7 +461,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
461
461
|
);
|
|
462
462
|
}, H.jsxs = function(i, b, w, T, I) {
|
|
463
463
|
var B = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
464
|
-
return
|
|
464
|
+
return d(
|
|
465
465
|
i,
|
|
466
466
|
b,
|
|
467
467
|
w,
|
|
@@ -475,17 +475,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
475
475
|
}()), H;
|
|
476
476
|
}
|
|
477
477
|
var ue;
|
|
478
|
-
function
|
|
479
|
-
return ue || (ue = 1, process.env.NODE_ENV === "production" ? Z.exports =
|
|
478
|
+
function We() {
|
|
479
|
+
return ue || (ue = 1, process.env.NODE_ENV === "production" ? Z.exports = Ye() : Z.exports = He()), Z.exports;
|
|
480
480
|
}
|
|
481
|
-
var e =
|
|
482
|
-
const
|
|
481
|
+
var e = We();
|
|
482
|
+
const ke = (r) => r.replace("--color-", "bg-"), qe = ({ name: r, cssVar: s, value: t }) => {
|
|
483
483
|
const a = `rgb(${t})`;
|
|
484
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: [
|
|
485
485
|
/* @__PURE__ */ e.jsx(
|
|
486
486
|
"div",
|
|
487
487
|
{
|
|
488
|
-
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 ${ke(s)}`
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -496,8 +496,8 @@ const Ne = (r) => r.replace("--color-", "bg-"), Ye = ({ name: r, cssVar: s, valu
|
|
|
496
496
|
] });
|
|
497
497
|
}, me = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
498
498
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: r }),
|
|
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(
|
|
500
|
-
] }),
|
|
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(qe, { ...t }, t.name)) })
|
|
500
|
+
] }), Ze = () => {
|
|
501
501
|
const r = [
|
|
502
502
|
{
|
|
503
503
|
title: "Success Colors (Green)",
|
|
@@ -721,7 +721,7 @@ const Ne = (r) => r.replace("--color-", "bg-"), Ye = ({ name: r, cssVar: s, valu
|
|
|
721
721
|
/* @__PURE__ */ e.jsx(
|
|
722
722
|
"div",
|
|
723
723
|
{
|
|
724
|
-
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 ${ke(a.cssVar)}`
|
|
725
725
|
}
|
|
726
726
|
),
|
|
727
727
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -732,42 +732,42 @@ const Ne = (r) => r.replace("--color-", "bg-"), Ye = ({ name: r, cssVar: s, valu
|
|
|
732
732
|
] }),
|
|
733
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" }) })
|
|
734
734
|
] });
|
|
735
|
-
},
|
|
735
|
+
}, $e = Se(void 0), Ge = ({
|
|
736
736
|
children: r,
|
|
737
737
|
defaultTheme: s = "system",
|
|
738
738
|
storageKey: t = "acemyjob-ui-theme"
|
|
739
739
|
}) => {
|
|
740
|
-
const [a, l] = $(s), [n, c] = $("light"), [o,
|
|
741
|
-
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
}, [t]),
|
|
740
|
+
const [a, l] = $(s), [n, c] = $("light"), [o, m] = $(!1);
|
|
741
|
+
D(() => {
|
|
742
|
+
const d = localStorage.getItem(t);
|
|
743
|
+
d && l(d), m(!0);
|
|
744
|
+
}, [t]), D(() => {
|
|
745
745
|
if (!o) return;
|
|
746
|
-
const
|
|
747
|
-
let
|
|
748
|
-
a === "system" ?
|
|
746
|
+
const d = window.document.documentElement, x = () => {
|
|
747
|
+
let h;
|
|
748
|
+
a === "system" ? h = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : h = a, c(h), d.classList.remove("light", "dark"), d.classList.add(h);
|
|
749
749
|
};
|
|
750
|
-
if (
|
|
751
|
-
const
|
|
752
|
-
return
|
|
750
|
+
if (x(), a === "system") {
|
|
751
|
+
const h = window.matchMedia("(prefers-color-scheme: dark)"), f = () => x();
|
|
752
|
+
return h.addEventListener("change", f), () => h.removeEventListener("change", f);
|
|
753
753
|
}
|
|
754
754
|
}, [a, o]);
|
|
755
|
-
const
|
|
755
|
+
const u = {
|
|
756
756
|
theme: a,
|
|
757
|
-
setTheme: (
|
|
758
|
-
localStorage.setItem(t,
|
|
757
|
+
setTheme: (d) => {
|
|
758
|
+
localStorage.setItem(t, d), l(d);
|
|
759
759
|
},
|
|
760
760
|
resolvedTheme: n
|
|
761
761
|
};
|
|
762
|
-
return /* @__PURE__ */ e.jsx(
|
|
763
|
-
},
|
|
764
|
-
const r =
|
|
762
|
+
return /* @__PURE__ */ e.jsx($e.Provider, { value: u, children: r });
|
|
763
|
+
}, Je = () => {
|
|
764
|
+
const r = Ae($e);
|
|
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
|
+
}, Xe = () => {
|
|
769
|
+
const { theme: r, setTheme: s } = Je(), [t, a] = $(!1);
|
|
770
|
+
if (D(() => {
|
|
771
771
|
a(!0);
|
|
772
772
|
}, []), !t)
|
|
773
773
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -814,11 +814,11 @@ const Ne = (r) => r.replace("--color-", "bg-"), Ye = ({ name: r, cssVar: s, valu
|
|
|
814
814
|
]
|
|
815
815
|
}
|
|
816
816
|
);
|
|
817
|
-
},
|
|
818
|
-
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(
|
|
819
|
-
/* @__PURE__ */ e.jsx(
|
|
820
|
-
] }),
|
|
821
|
-
function
|
|
817
|
+
}, Ke = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
818
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Xe, {}) }),
|
|
819
|
+
/* @__PURE__ */ e.jsx(Ze, {})
|
|
820
|
+
] }), qr = () => /* @__PURE__ */ e.jsx(Ge, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Ke, {}) });
|
|
821
|
+
function Zr({
|
|
822
822
|
label: r,
|
|
823
823
|
children: s,
|
|
824
824
|
helperText: t,
|
|
@@ -836,7 +836,7 @@ function Yr({
|
|
|
836
836
|
t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
|
|
837
837
|
] });
|
|
838
838
|
}
|
|
839
|
-
const
|
|
839
|
+
const Qe = P.forwardRef(
|
|
840
840
|
({
|
|
841
841
|
className: r = "",
|
|
842
842
|
leftIcon: s,
|
|
@@ -846,8 +846,8 @@ const Je = P.forwardRef(
|
|
|
846
846
|
disabled: n,
|
|
847
847
|
...c
|
|
848
848
|
}, o) => {
|
|
849
|
-
const
|
|
850
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
849
|
+
const m = "px-3 py-2 border rounded-lg transition-colors text-sm", u = 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", d = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", x = l ? "w-full" : "", h = s || t ? "relative flex items-center" : "", f = `${m} ${u} ${d} ${x} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
|
|
850
|
+
return /* @__PURE__ */ e.jsxs("div", { className: h, children: [
|
|
851
851
|
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
852
852
|
/* @__PURE__ */ e.jsx(
|
|
853
853
|
"input",
|
|
@@ -862,8 +862,8 @@ const Je = P.forwardRef(
|
|
|
862
862
|
] });
|
|
863
863
|
}
|
|
864
864
|
);
|
|
865
|
-
|
|
866
|
-
const
|
|
865
|
+
Qe.displayName = "Input";
|
|
866
|
+
const er = P.forwardRef(
|
|
867
867
|
({
|
|
868
868
|
options: r,
|
|
869
869
|
placeholder: s,
|
|
@@ -873,13 +873,13 @@ const Xe = P.forwardRef(
|
|
|
873
873
|
disabled: n,
|
|
874
874
|
...c
|
|
875
875
|
}, o) => {
|
|
876
|
-
const
|
|
876
|
+
const h = `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}`;
|
|
877
877
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
|
|
878
878
|
/* @__PURE__ */ e.jsxs(
|
|
879
879
|
"select",
|
|
880
880
|
{
|
|
881
881
|
ref: o,
|
|
882
|
-
className:
|
|
882
|
+
className: h,
|
|
883
883
|
disabled: n,
|
|
884
884
|
...c,
|
|
885
885
|
children: [
|
|
@@ -892,8 +892,8 @@ const Xe = P.forwardRef(
|
|
|
892
892
|
] });
|
|
893
893
|
}
|
|
894
894
|
);
|
|
895
|
-
|
|
896
|
-
function
|
|
895
|
+
er.displayName = "Select";
|
|
896
|
+
function rr({
|
|
897
897
|
title: r,
|
|
898
898
|
titleId: s,
|
|
899
899
|
...t
|
|
@@ -914,8 +914,8 @@ function Ke({
|
|
|
914
914
|
clipRule: "evenodd"
|
|
915
915
|
}));
|
|
916
916
|
}
|
|
917
|
-
const xe = /* @__PURE__ */ j.forwardRef(
|
|
918
|
-
function
|
|
917
|
+
const xe = /* @__PURE__ */ j.forwardRef(rr);
|
|
918
|
+
function sr({
|
|
919
919
|
title: r,
|
|
920
920
|
titleId: s,
|
|
921
921
|
...t
|
|
@@ -936,8 +936,8 @@ function Qe({
|
|
|
936
936
|
clipRule: "evenodd"
|
|
937
937
|
}));
|
|
938
938
|
}
|
|
939
|
-
const he = /* @__PURE__ */ j.forwardRef(
|
|
940
|
-
function
|
|
939
|
+
const he = /* @__PURE__ */ j.forwardRef(sr);
|
|
940
|
+
function tr({
|
|
941
941
|
title: r,
|
|
942
942
|
titleId: s,
|
|
943
943
|
...t
|
|
@@ -956,8 +956,8 @@ function er({
|
|
|
956
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"
|
|
957
957
|
}));
|
|
958
958
|
}
|
|
959
|
-
const se = /* @__PURE__ */ j.forwardRef(
|
|
960
|
-
function
|
|
959
|
+
const se = /* @__PURE__ */ j.forwardRef(tr);
|
|
960
|
+
function ar({
|
|
961
961
|
children: r,
|
|
962
962
|
variant: s = "default",
|
|
963
963
|
size: t = "md",
|
|
@@ -967,21 +967,21 @@ function rr({
|
|
|
967
967
|
style: c,
|
|
968
968
|
colorClass: o
|
|
969
969
|
}) {
|
|
970
|
-
const
|
|
970
|
+
const m = {
|
|
971
971
|
default: "bg-surface-variant text-text-secondary",
|
|
972
972
|
success: "bg-success-50 text-success-700",
|
|
973
973
|
error: "bg-error-50 text-error-700",
|
|
974
974
|
warning: "bg-warning-50 text-warning-700",
|
|
975
975
|
info: "bg-info-50 text-info-700"
|
|
976
|
-
},
|
|
976
|
+
}, u = {
|
|
977
977
|
sm: "px-2 py-0.5 text-xs",
|
|
978
978
|
md: "px-3 py-1 text-sm",
|
|
979
979
|
lg: "px-4 py-1.5 text-base"
|
|
980
|
-
},
|
|
980
|
+
}, d = o || m[s];
|
|
981
981
|
return /* @__PURE__ */ e.jsxs(
|
|
982
982
|
"span",
|
|
983
983
|
{
|
|
984
|
-
className: `inline-flex items-center gap-1 rounded-full ${
|
|
984
|
+
className: `inline-flex items-center gap-1 rounded-full ${d} ${u[t]} ${n}`,
|
|
985
985
|
style: c,
|
|
986
986
|
children: [
|
|
987
987
|
r,
|
|
@@ -998,7 +998,7 @@ function rr({
|
|
|
998
998
|
}
|
|
999
999
|
);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1001
|
+
const nr = P.forwardRef(
|
|
1002
1002
|
({
|
|
1003
1003
|
tags: r,
|
|
1004
1004
|
onTagsChange: s,
|
|
@@ -1008,25 +1008,25 @@ const sr = P.forwardRef(
|
|
|
1008
1008
|
error: n = !1,
|
|
1009
1009
|
fullWidth: c = !0,
|
|
1010
1010
|
maxTags: o,
|
|
1011
|
-
duplicateCheck:
|
|
1012
|
-
disabled:
|
|
1013
|
-
className:
|
|
1014
|
-
...
|
|
1015
|
-
},
|
|
1011
|
+
duplicateCheck: m = !0,
|
|
1012
|
+
disabled: u,
|
|
1013
|
+
className: d = "",
|
|
1014
|
+
...x
|
|
1015
|
+
}, h) => {
|
|
1016
1016
|
const [f, g] = $(""), y = (v) => {
|
|
1017
1017
|
v.key === "Enter" && f.trim() ? (v.preventDefault(), V(f.trim())) : v.key === "Backspace" && !f && r.length > 0 && R(r[r.length - 1]);
|
|
1018
1018
|
}, V = (v) => {
|
|
1019
|
-
if (o && r.length >= o ||
|
|
1019
|
+
if (o && r.length >= o || m && r.includes(v))
|
|
1020
1020
|
return;
|
|
1021
1021
|
const C = [...r, v];
|
|
1022
1022
|
s(C), t?.(v), g("");
|
|
1023
1023
|
}, R = (v) => {
|
|
1024
|
-
const C = r.filter((
|
|
1024
|
+
const C = r.filter((A) => A !== v);
|
|
1025
1025
|
s(C), a?.(v);
|
|
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"} ${
|
|
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"} ${u ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${c ? "w-full" : ""} ${d}`;
|
|
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
|
+
ar,
|
|
1030
1030
|
{
|
|
1031
1031
|
removable: !0,
|
|
1032
1032
|
onRemove: () => R(v),
|
|
@@ -1038,15 +1038,15 @@ const sr = P.forwardRef(
|
|
|
1038
1038
|
/* @__PURE__ */ e.jsx(
|
|
1039
1039
|
"input",
|
|
1040
1040
|
{
|
|
1041
|
-
ref:
|
|
1041
|
+
ref: h,
|
|
1042
1042
|
type: "text",
|
|
1043
1043
|
className: p,
|
|
1044
1044
|
placeholder: l,
|
|
1045
1045
|
value: f,
|
|
1046
1046
|
onChange: (v) => g(v.target.value),
|
|
1047
1047
|
onKeyDown: y,
|
|
1048
|
-
disabled:
|
|
1049
|
-
...
|
|
1048
|
+
disabled: u || (o ? r.length >= o : !1),
|
|
1049
|
+
...x
|
|
1050
1050
|
}
|
|
1051
1051
|
),
|
|
1052
1052
|
o && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
|
|
@@ -1057,7 +1057,7 @@ const sr = P.forwardRef(
|
|
|
1057
1057
|
] });
|
|
1058
1058
|
}
|
|
1059
1059
|
);
|
|
1060
|
-
|
|
1060
|
+
nr.displayName = "TagInput";
|
|
1061
1061
|
const fe = {
|
|
1062
1062
|
variant: {
|
|
1063
1063
|
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
@@ -1076,7 +1076,7 @@ const fe = {
|
|
|
1076
1076
|
xl: "h-12 rounded-md px-10 text-base",
|
|
1077
1077
|
icon: "h-10 w-10"
|
|
1078
1078
|
}
|
|
1079
|
-
},
|
|
1079
|
+
}, lr = "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", or = (...r) => r.filter(Boolean).join(" "), _ = P.forwardRef(
|
|
1080
1080
|
({
|
|
1081
1081
|
className: r,
|
|
1082
1082
|
variant: s = "default",
|
|
@@ -1086,11 +1086,11 @@ const fe = {
|
|
|
1086
1086
|
leftIcon: n,
|
|
1087
1087
|
rightIcon: c,
|
|
1088
1088
|
children: o,
|
|
1089
|
-
disabled:
|
|
1090
|
-
...
|
|
1091
|
-
},
|
|
1092
|
-
const
|
|
1093
|
-
|
|
1089
|
+
disabled: m,
|
|
1090
|
+
...u
|
|
1091
|
+
}, d) => {
|
|
1092
|
+
const x = m || l, h = or(
|
|
1093
|
+
lr,
|
|
1094
1094
|
fe.variant[s],
|
|
1095
1095
|
fe.size[t],
|
|
1096
1096
|
a ? "w-full" : "",
|
|
@@ -1099,10 +1099,10 @@ const fe = {
|
|
|
1099
1099
|
return /* @__PURE__ */ e.jsxs(
|
|
1100
1100
|
"button",
|
|
1101
1101
|
{
|
|
1102
|
-
className:
|
|
1103
|
-
ref:
|
|
1104
|
-
disabled:
|
|
1105
|
-
...
|
|
1102
|
+
className: h,
|
|
1103
|
+
ref: d,
|
|
1104
|
+
disabled: x,
|
|
1105
|
+
...u,
|
|
1106
1106
|
children: [
|
|
1107
1107
|
l && /* @__PURE__ */ e.jsxs(
|
|
1108
1108
|
"svg",
|
|
@@ -1142,7 +1142,7 @@ const fe = {
|
|
|
1142
1142
|
);
|
|
1143
1143
|
}
|
|
1144
1144
|
);
|
|
1145
|
-
|
|
1145
|
+
_.displayName = "Button";
|
|
1146
1146
|
const ge = {
|
|
1147
1147
|
provider: {
|
|
1148
1148
|
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
@@ -1152,7 +1152,7 @@ const ge = {
|
|
|
1152
1152
|
right: "flex-row-reverse",
|
|
1153
1153
|
only: "justify-center"
|
|
1154
1154
|
}
|
|
1155
|
-
},
|
|
1155
|
+
}, cr = (...r) => r.filter(Boolean).join(" "), ir = P.forwardRef(
|
|
1156
1156
|
({
|
|
1157
1157
|
className: r,
|
|
1158
1158
|
provider: s,
|
|
@@ -1162,38 +1162,38 @@ const ge = {
|
|
|
1162
1162
|
children: n,
|
|
1163
1163
|
size: c = "default",
|
|
1164
1164
|
fullWidth: o = !0,
|
|
1165
|
-
...
|
|
1166
|
-
},
|
|
1167
|
-
const
|
|
1165
|
+
...m
|
|
1166
|
+
}, u) => {
|
|
1167
|
+
const x = a || {
|
|
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] : ""), g =
|
|
1171
|
+
}[s] : ""), g = cr(
|
|
1172
1172
|
"relative overflow-hidden transition-all duration-200",
|
|
1173
1173
|
ge.provider[s],
|
|
1174
1174
|
ge.iconPosition[t],
|
|
1175
1175
|
r
|
|
1176
1176
|
);
|
|
1177
1177
|
return /* @__PURE__ */ e.jsxs(
|
|
1178
|
-
|
|
1178
|
+
_,
|
|
1179
1179
|
{
|
|
1180
|
-
ref:
|
|
1180
|
+
ref: u,
|
|
1181
1181
|
variant: "none",
|
|
1182
1182
|
className: g,
|
|
1183
1183
|
size: c,
|
|
1184
1184
|
fullWidth: o,
|
|
1185
|
-
leftIcon: t === "left" ?
|
|
1186
|
-
rightIcon: t === "right" ?
|
|
1187
|
-
...
|
|
1185
|
+
leftIcon: t === "left" ? x : void 0,
|
|
1186
|
+
rightIcon: t === "right" ? x : void 0,
|
|
1187
|
+
...m,
|
|
1188
1188
|
children: [
|
|
1189
|
-
t === "only" &&
|
|
1189
|
+
t === "only" && x,
|
|
1190
1190
|
t !== "only" && f
|
|
1191
1191
|
]
|
|
1192
1192
|
}
|
|
1193
1193
|
);
|
|
1194
1194
|
}
|
|
1195
1195
|
);
|
|
1196
|
-
|
|
1196
|
+
ir.displayName = "SocialButton";
|
|
1197
1197
|
function G({
|
|
1198
1198
|
variant: r,
|
|
1199
1199
|
title: s,
|
|
@@ -1207,25 +1207,25 @@ function G({
|
|
|
1207
1207
|
bg: "bg-success-50",
|
|
1208
1208
|
border: "border-success-200",
|
|
1209
1209
|
text: "text-success-700",
|
|
1210
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1210
|
+
icon: /* @__PURE__ */ e.jsx(Ne, { className: "h-5 w-5" })
|
|
1211
1211
|
},
|
|
1212
1212
|
error: {
|
|
1213
1213
|
bg: "bg-error-50",
|
|
1214
1214
|
border: "border-error-200",
|
|
1215
1215
|
text: "text-error-700",
|
|
1216
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1216
|
+
icon: /* @__PURE__ */ e.jsx(we, { className: "h-5 w-5" })
|
|
1217
1217
|
},
|
|
1218
1218
|
warning: {
|
|
1219
1219
|
bg: "bg-warning-50",
|
|
1220
1220
|
border: "border-warning-200",
|
|
1221
1221
|
text: "text-warning-700",
|
|
1222
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1222
|
+
icon: /* @__PURE__ */ e.jsx(ye, { className: "h-5 w-5" })
|
|
1223
1223
|
},
|
|
1224
1224
|
info: {
|
|
1225
1225
|
bg: "bg-info-50",
|
|
1226
1226
|
border: "border-info-200",
|
|
1227
1227
|
text: "text-info-700",
|
|
1228
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1228
|
+
icon: /* @__PURE__ */ e.jsx(je, { className: "h-5 w-5" })
|
|
1229
1229
|
}
|
|
1230
1230
|
}[r];
|
|
1231
1231
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1252,7 +1252,7 @@ function G({
|
|
|
1252
1252
|
}
|
|
1253
1253
|
);
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function Gr({
|
|
1256
1256
|
onFileChange: r,
|
|
1257
1257
|
onAnalyze: s,
|
|
1258
1258
|
uploadedFile: t,
|
|
@@ -1261,15 +1261,15 @@ function Hr({
|
|
|
1261
1261
|
isAnalyzing: n = !1,
|
|
1262
1262
|
analyzeError: c,
|
|
1263
1263
|
analyzeSuccess: o,
|
|
1264
|
-
accept:
|
|
1265
|
-
label:
|
|
1266
|
-
description:
|
|
1267
|
-
analyzeButtonLabel:
|
|
1268
|
-
disabled:
|
|
1264
|
+
accept: m = ".pdf,.docx",
|
|
1265
|
+
label: u = "Upload File",
|
|
1266
|
+
description: d = "PDF, DOCX up to 5MB",
|
|
1267
|
+
analyzeButtonLabel: x = "Analyze",
|
|
1268
|
+
disabled: h = !1,
|
|
1269
1269
|
showAnalyzeButton: f = !0
|
|
1270
1270
|
}) {
|
|
1271
1271
|
const g = W(null), [y, V] = $(!1);
|
|
1272
|
-
|
|
1272
|
+
D(() => {
|
|
1273
1273
|
!t && g.current && (g.current.value = "");
|
|
1274
1274
|
}, [t]);
|
|
1275
1275
|
const R = (N) => {
|
|
@@ -1285,18 +1285,18 @@ function Hr({
|
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
1287
|
return /* @__PURE__ */ e.jsxs("div", { className: "mt-6 pt-6 border-t border-border", children: [
|
|
1288
|
-
/* @__PURE__ */ e.jsx("h3", { className: "text-sm font-medium text-text-primary mb-3", children:
|
|
1288
|
+
/* @__PURE__ */ e.jsx("h3", { className: "text-sm font-medium text-text-primary mb-3", children: u }),
|
|
1289
1289
|
/* @__PURE__ */ e.jsxs("label", { className: "block", children: [
|
|
1290
1290
|
/* @__PURE__ */ e.jsx(
|
|
1291
1291
|
"input",
|
|
1292
1292
|
{
|
|
1293
1293
|
ref: g,
|
|
1294
1294
|
type: "file",
|
|
1295
|
-
accept:
|
|
1295
|
+
accept: m,
|
|
1296
1296
|
onChange: r,
|
|
1297
1297
|
className: "hidden",
|
|
1298
1298
|
id: "file-upload",
|
|
1299
|
-
disabled:
|
|
1299
|
+
disabled: h
|
|
1300
1300
|
}
|
|
1301
1301
|
),
|
|
1302
1302
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1306,7 +1306,7 @@ function Hr({
|
|
|
1306
1306
|
onDragLeave: R,
|
|
1307
1307
|
onDragOver: R,
|
|
1308
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"} ${
|
|
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"} ${h ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1310
1310
|
children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1311
1311
|
/* @__PURE__ */ e.jsx(
|
|
1312
1312
|
"svg",
|
|
@@ -1331,7 +1331,7 @@ function Hr({
|
|
|
1331
1331
|
"MB"
|
|
1332
1332
|
] }),
|
|
1333
1333
|
/* @__PURE__ */ e.jsx(
|
|
1334
|
-
|
|
1334
|
+
_,
|
|
1335
1335
|
{
|
|
1336
1336
|
variant: "link",
|
|
1337
1337
|
type: "button",
|
|
@@ -1366,7 +1366,7 @@ function Hr({
|
|
|
1366
1366
|
" ",
|
|
1367
1367
|
"or drag and drop"
|
|
1368
1368
|
] }),
|
|
1369
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted mt-1", children:
|
|
1369
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted mt-1", children: d })
|
|
1370
1370
|
] })
|
|
1371
1371
|
}
|
|
1372
1372
|
)
|
|
@@ -1375,20 +1375,20 @@ function Hr({
|
|
|
1375
1375
|
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: c }) }),
|
|
1376
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
|
+
_,
|
|
1379
1379
|
{
|
|
1380
1380
|
variant: "default",
|
|
1381
1381
|
onClick: s,
|
|
1382
|
-
disabled: !t || n ||
|
|
1382
|
+
disabled: !t || n || h,
|
|
1383
1383
|
loading: n,
|
|
1384
1384
|
fullWidth: !0,
|
|
1385
1385
|
className: "mt-3",
|
|
1386
|
-
children:
|
|
1386
|
+
children: x
|
|
1387
1387
|
}
|
|
1388
1388
|
)
|
|
1389
1389
|
] });
|
|
1390
1390
|
}
|
|
1391
|
-
const
|
|
1391
|
+
const dr = P.forwardRef(
|
|
1392
1392
|
({
|
|
1393
1393
|
className: r = "",
|
|
1394
1394
|
error: s = !1,
|
|
@@ -1398,23 +1398,23 @@ const or = P.forwardRef(
|
|
|
1398
1398
|
showCharCount: n = !1,
|
|
1399
1399
|
disabled: c,
|
|
1400
1400
|
value: o,
|
|
1401
|
-
onChange:
|
|
1402
|
-
...
|
|
1403
|
-
},
|
|
1401
|
+
onChange: m,
|
|
1402
|
+
...u
|
|
1403
|
+
}, d) => {
|
|
1404
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`),
|
|
1405
|
+
a && (k.target.style.height = "auto", k.target.style.height = `${k.target.scrollHeight}px`), m?.(k);
|
|
1406
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
|
-
ref:
|
|
1411
|
+
ref: d,
|
|
1412
1412
|
className: y,
|
|
1413
1413
|
disabled: c,
|
|
1414
1414
|
value: o,
|
|
1415
1415
|
onChange: V,
|
|
1416
1416
|
maxLength: l,
|
|
1417
|
-
...
|
|
1417
|
+
...u
|
|
1418
1418
|
}
|
|
1419
1419
|
),
|
|
1420
1420
|
n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
@@ -1425,8 +1425,8 @@ const or = P.forwardRef(
|
|
|
1425
1425
|
] });
|
|
1426
1426
|
}
|
|
1427
1427
|
);
|
|
1428
|
-
|
|
1429
|
-
function
|
|
1428
|
+
dr.displayName = "Textarea";
|
|
1429
|
+
function Jr({
|
|
1430
1430
|
options: r,
|
|
1431
1431
|
selectedValues: s,
|
|
1432
1432
|
onSelectionChange: t,
|
|
@@ -1435,16 +1435,16 @@ function Wr({
|
|
|
1435
1435
|
disabled: n = !1,
|
|
1436
1436
|
error: c = !1
|
|
1437
1437
|
}) {
|
|
1438
|
-
const o = (
|
|
1439
|
-
const
|
|
1440
|
-
t(
|
|
1441
|
-
},
|
|
1438
|
+
const o = (x) => {
|
|
1439
|
+
const h = s.includes(x) ? s.filter((f) => f !== x) : [...s, x];
|
|
1440
|
+
t(h);
|
|
1441
|
+
}, m = {
|
|
1442
1442
|
vertical: "space-y-3",
|
|
1443
1443
|
horizontal: "flex flex-wrap gap-3",
|
|
1444
1444
|
grid: `grid grid-cols-${l} gap-3`
|
|
1445
|
-
},
|
|
1446
|
-
return /* @__PURE__ */ e.jsx("div", { className: `${
|
|
1447
|
-
const
|
|
1445
|
+
}, u = a === "grid" ? "grid gap-3" : m[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
|
|
1446
|
+
return /* @__PURE__ */ e.jsx("div", { className: `${u} ${d}`, children: r.map((x) => {
|
|
1447
|
+
const h = s.includes(x.value), g = 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`;
|
|
1448
1448
|
return /* @__PURE__ */ e.jsxs(
|
|
1449
1449
|
"label",
|
|
1450
1450
|
{
|
|
@@ -1454,25 +1454,25 @@ function Wr({
|
|
|
1454
1454
|
"input",
|
|
1455
1455
|
{
|
|
1456
1456
|
type: "checkbox",
|
|
1457
|
-
checked:
|
|
1458
|
-
onChange: () => o(
|
|
1457
|
+
checked: h,
|
|
1458
|
+
onChange: () => o(x.value),
|
|
1459
1459
|
disabled: n,
|
|
1460
1460
|
className: "sr-only"
|
|
1461
1461
|
}
|
|
1462
1462
|
),
|
|
1463
|
-
|
|
1463
|
+
x.icon && /* @__PURE__ */ e.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: x.icon }),
|
|
1464
1464
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1465
|
-
/* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children:
|
|
1466
|
-
|
|
1465
|
+
/* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: x.label }),
|
|
1466
|
+
x.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: x.description })
|
|
1467
1467
|
] }),
|
|
1468
|
-
|
|
1468
|
+
h && /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", 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" }) }) })
|
|
1469
1469
|
]
|
|
1470
1470
|
},
|
|
1471
|
-
|
|
1471
|
+
x.value
|
|
1472
1472
|
);
|
|
1473
1473
|
}) });
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Xr({
|
|
1476
1476
|
options: r,
|
|
1477
1477
|
selectedValue: s,
|
|
1478
1478
|
onSelectionChange: t,
|
|
@@ -1482,13 +1482,13 @@ function qr({
|
|
|
1482
1482
|
error: c = !1,
|
|
1483
1483
|
name: o = "radio-group"
|
|
1484
1484
|
}) {
|
|
1485
|
-
const
|
|
1485
|
+
const u = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
|
|
1486
1486
|
vertical: "space-y-3",
|
|
1487
1487
|
horizontal: "flex flex-wrap gap-3",
|
|
1488
1488
|
grid: "grid gap-3"
|
|
1489
1489
|
}[a];
|
|
1490
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
1491
|
-
const
|
|
1490
|
+
return /* @__PURE__ */ e.jsx("div", { className: u, children: r.map((d) => {
|
|
1491
|
+
const x = s === d.value, f = 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`;
|
|
1492
1492
|
return /* @__PURE__ */ e.jsxs(
|
|
1493
1493
|
"label",
|
|
1494
1494
|
{
|
|
@@ -1499,26 +1499,26 @@ function qr({
|
|
|
1499
1499
|
{
|
|
1500
1500
|
type: "radio",
|
|
1501
1501
|
name: o,
|
|
1502
|
-
value:
|
|
1503
|
-
checked:
|
|
1504
|
-
onChange: () => t(
|
|
1502
|
+
value: d.value,
|
|
1503
|
+
checked: x,
|
|
1504
|
+
onChange: () => t(d.value),
|
|
1505
1505
|
disabled: n,
|
|
1506
1506
|
className: "sr-only"
|
|
1507
1507
|
}
|
|
1508
1508
|
),
|
|
1509
|
-
|
|
1509
|
+
d.icon && /* @__PURE__ */ e.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: d.icon }),
|
|
1510
1510
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1511
|
-
/* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children:
|
|
1512
|
-
|
|
1511
|
+
/* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: d.label }),
|
|
1512
|
+
d.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: d.description })
|
|
1513
1513
|
] }),
|
|
1514
|
-
|
|
1514
|
+
x && /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", 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: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", clipRule: "evenodd" }) }) })
|
|
1515
1515
|
]
|
|
1516
1516
|
},
|
|
1517
|
-
|
|
1517
|
+
d.value
|
|
1518
1518
|
);
|
|
1519
1519
|
}) });
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function Kr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
1522
1522
|
const a = {
|
|
1523
1523
|
2: "grid-cols-2",
|
|
1524
1524
|
3: "grid-cols-3",
|
|
@@ -1538,19 +1538,19 @@ function Zr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
|
1538
1538
|
] }, c);
|
|
1539
1539
|
}) });
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Qr({
|
|
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] = $(() => t ? Array.isArray(t) ? t : [t] : []), o = (
|
|
1549
|
-
let
|
|
1550
|
-
s ?
|
|
1548
|
+
const [n, c] = $(() => t ? Array.isArray(t) ? t : [t] : []), o = (m) => {
|
|
1549
|
+
let u;
|
|
1550
|
+
s ? u = n.includes(m) ? n.filter((d) => d !== m) : [...n, m] : u = n.includes(m) ? [] : [m], c(u), a?.(u);
|
|
1551
1551
|
};
|
|
1552
|
-
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((
|
|
1553
|
-
const
|
|
1552
|
+
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((m) => {
|
|
1553
|
+
const u = n.includes(m.id);
|
|
1554
1554
|
return /* @__PURE__ */ e.jsxs(
|
|
1555
1555
|
"div",
|
|
1556
1556
|
{
|
|
@@ -1559,30 +1559,30 @@ function Gr({
|
|
|
1559
1559
|
/* @__PURE__ */ e.jsxs(
|
|
1560
1560
|
"button",
|
|
1561
1561
|
{
|
|
1562
|
-
onClick: () => o(
|
|
1562
|
+
onClick: () => o(m.id),
|
|
1563
1563
|
className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
|
|
1564
1564
|
children: [
|
|
1565
1565
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
|
|
1566
|
-
|
|
1567
|
-
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children:
|
|
1566
|
+
m.icon && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0 text-text-secondary", children: m.icon }),
|
|
1567
|
+
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: m.title })
|
|
1568
1568
|
] }),
|
|
1569
1569
|
/* @__PURE__ */ e.jsx(
|
|
1570
1570
|
te,
|
|
1571
1571
|
{
|
|
1572
|
-
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${
|
|
1572
|
+
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${u ? "rotate-180" : ""}`
|
|
1573
1573
|
}
|
|
1574
1574
|
)
|
|
1575
1575
|
]
|
|
1576
1576
|
}
|
|
1577
1577
|
),
|
|
1578
|
-
|
|
1578
|
+
u && /* @__PURE__ */ e.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: m.content })
|
|
1579
1579
|
]
|
|
1580
1580
|
},
|
|
1581
|
-
|
|
1581
|
+
m.id
|
|
1582
1582
|
);
|
|
1583
1583
|
}) });
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function es({
|
|
1586
1586
|
icon: r,
|
|
1587
1587
|
title: s,
|
|
1588
1588
|
subtitle: t,
|
|
@@ -1591,13 +1591,13 @@ function Jr({
|
|
|
1591
1591
|
isActive: n = !1,
|
|
1592
1592
|
variant: c = "default",
|
|
1593
1593
|
actions: o,
|
|
1594
|
-
onClick:
|
|
1595
|
-
className:
|
|
1594
|
+
onClick: m,
|
|
1595
|
+
className: u = ""
|
|
1596
1596
|
}) {
|
|
1597
|
-
const
|
|
1597
|
+
const d = (g) => {
|
|
1598
1598
|
const y = g.target;
|
|
1599
|
-
y.tagName === "BUTTON" || y.closest("button") ||
|
|
1600
|
-
},
|
|
1599
|
+
y.tagName === "BUTTON" || y.closest("button") || m?.(g);
|
|
1600
|
+
}, h = (() => {
|
|
1601
1601
|
if (n)
|
|
1602
1602
|
switch (c) {
|
|
1603
1603
|
case "success":
|
|
@@ -1614,8 +1614,8 @@ function Jr({
|
|
|
1614
1614
|
return /* @__PURE__ */ e.jsx(
|
|
1615
1615
|
"div",
|
|
1616
1616
|
{
|
|
1617
|
-
onClick:
|
|
1618
|
-
className: `rounded-lg p-4 cursor-pointer transition ${
|
|
1617
|
+
onClick: d,
|
|
1618
|
+
className: `rounded-lg p-4 cursor-pointer transition ${h} ${f} ${u}`,
|
|
1619
1619
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between", children: [
|
|
1620
1620
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex items-start gap-3", children: [
|
|
1621
1621
|
r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
|
|
@@ -1626,7 +1626,7 @@ function Jr({
|
|
|
1626
1626
|
] })
|
|
1627
1627
|
] }),
|
|
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
|
-
|
|
1629
|
+
_,
|
|
1630
1630
|
{
|
|
1631
1631
|
variant: g.variant || "ghost",
|
|
1632
1632
|
size: g.size || "sm",
|
|
@@ -1644,7 +1644,7 @@ function Jr({
|
|
|
1644
1644
|
}
|
|
1645
1645
|
);
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function rs({
|
|
1648
1648
|
children: r,
|
|
1649
1649
|
variant: s = "default",
|
|
1650
1650
|
isActive: t = !1,
|
|
@@ -1671,7 +1671,7 @@ function Xr({
|
|
|
1671
1671
|
}
|
|
1672
1672
|
);
|
|
1673
1673
|
}
|
|
1674
|
-
const
|
|
1674
|
+
const ur = 200, mr = {
|
|
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 = 200, ir = {
|
|
|
1690
1690
|
lg: "h-[70vh]",
|
|
1691
1691
|
full: "h-full"
|
|
1692
1692
|
}
|
|
1693
|
-
},
|
|
1693
|
+
}, xr = {
|
|
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 ss({
|
|
1699
1699
|
open: r,
|
|
1700
1700
|
onClose: s,
|
|
1701
1701
|
title: t,
|
|
@@ -1704,30 +1704,30 @@ function Kr({
|
|
|
1704
1704
|
placement: n = "right",
|
|
1705
1705
|
size: c = "md",
|
|
1706
1706
|
closeOnOverlayClick: o = !0,
|
|
1707
|
-
closeOnEsc:
|
|
1708
|
-
showCloseButton:
|
|
1709
|
-
className:
|
|
1707
|
+
closeOnEsc: m = !0,
|
|
1708
|
+
showCloseButton: u = !0,
|
|
1709
|
+
className: d = ""
|
|
1710
1710
|
}) {
|
|
1711
|
-
const [
|
|
1712
|
-
if (
|
|
1711
|
+
const [x, h] = $(r), [f, g] = $(r), y = W(null);
|
|
1712
|
+
if (D(() => {
|
|
1713
1713
|
if (r) {
|
|
1714
|
-
y.current !== null && (window.clearTimeout(y.current), y.current = null),
|
|
1714
|
+
y.current !== null && (window.clearTimeout(y.current), y.current = null), h(!0), typeof window < "u" ? window.requestAnimationFrame(() => g(!0)) : g(!0);
|
|
1715
1715
|
return;
|
|
1716
1716
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
},
|
|
1720
|
-
}, [r,
|
|
1717
|
+
x && (g(!1), typeof window < "u" ? y.current = window.setTimeout(() => {
|
|
1718
|
+
h(!1);
|
|
1719
|
+
}, ur) : h(!1));
|
|
1720
|
+
}, [r, x]), D(() => () => {
|
|
1721
1721
|
y.current !== null && window.clearTimeout(y.current);
|
|
1722
|
-
}, []),
|
|
1722
|
+
}, []), D(() => {
|
|
1723
1723
|
if (!r || typeof document > "u")
|
|
1724
1724
|
return;
|
|
1725
1725
|
const k = document.body.style.overflow;
|
|
1726
1726
|
return document.body.style.overflow = "hidden", () => {
|
|
1727
1727
|
document.body.style.overflow = k;
|
|
1728
1728
|
};
|
|
1729
|
-
}, [r]),
|
|
1730
|
-
if (!r || !
|
|
1729
|
+
}, [r]), D(() => {
|
|
1730
|
+
if (!r || !m || typeof window > "u")
|
|
1731
1731
|
return;
|
|
1732
1732
|
const k = (N) => {
|
|
1733
1733
|
N.key === "Escape" && s();
|
|
@@ -1735,17 +1735,17 @@ function Kr({
|
|
|
1735
1735
|
return window.addEventListener("keydown", k), () => {
|
|
1736
1736
|
window.removeEventListener("keydown", k);
|
|
1737
1737
|
};
|
|
1738
|
-
}, [r,
|
|
1738
|
+
}, [r, m, s]), !x || typeof document > "u")
|
|
1739
1739
|
return null;
|
|
1740
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
1741
|
"fixed z-[60] bg-surface border-border shadow-xl flex flex-col transition-transform transition-opacity duration-200 ease-out",
|
|
1742
|
-
|
|
1743
|
-
|
|
1742
|
+
xr[n],
|
|
1743
|
+
mr[n][c],
|
|
1744
1744
|
n === "bottom" ? "rounded-t-xl border-t" : n === "left" ? "border-r" : "border-l",
|
|
1745
1745
|
V,
|
|
1746
|
-
|
|
1746
|
+
d
|
|
1747
1747
|
].filter(Boolean).join(" ");
|
|
1748
|
-
return
|
|
1748
|
+
return De(
|
|
1749
1749
|
/* @__PURE__ */ e.jsxs("div", { className: "fixed inset-0 z-50", children: [
|
|
1750
1750
|
/* @__PURE__ */ e.jsx(
|
|
1751
1751
|
"button",
|
|
@@ -1759,14 +1759,14 @@ function Kr({
|
|
|
1759
1759
|
/* @__PURE__ */ e.jsxs("section", { role: "dialog", "aria-modal": "true", className: R, children: [
|
|
1760
1760
|
/* @__PURE__ */ e.jsxs("header", { className: "flex items-center justify-between border-b border-border px-4 py-3", children: [
|
|
1761
1761
|
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-semibold text-text-primary", children: t }),
|
|
1762
|
-
|
|
1762
|
+
u ? /* @__PURE__ */ e.jsx(
|
|
1763
1763
|
"button",
|
|
1764
1764
|
{
|
|
1765
1765
|
type: "button",
|
|
1766
1766
|
onClick: s,
|
|
1767
1767
|
className: "rounded-md p-1 text-text-secondary hover:bg-surface-variant hover:text-text-primary",
|
|
1768
1768
|
"aria-label": "Close drawer",
|
|
1769
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1769
|
+
children: /* @__PURE__ */ e.jsx(Ce, { className: "h-5 w-5" })
|
|
1770
1770
|
}
|
|
1771
1771
|
) : null
|
|
1772
1772
|
] }),
|
|
@@ -1777,7 +1777,7 @@ function Kr({
|
|
|
1777
1777
|
document.body
|
|
1778
1778
|
);
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function ts({
|
|
1781
1781
|
title: r,
|
|
1782
1782
|
children: s,
|
|
1783
1783
|
subtitle: t,
|
|
@@ -1797,7 +1797,7 @@ function Qr({
|
|
|
1797
1797
|
s
|
|
1798
1798
|
] });
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function as({
|
|
1801
1801
|
title: r,
|
|
1802
1802
|
subtitle: s,
|
|
1803
1803
|
metadata: t,
|
|
@@ -1818,7 +1818,7 @@ function es({
|
|
|
1818
1818
|
] }, c))
|
|
1819
1819
|
] });
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function ns({
|
|
1822
1822
|
title: r,
|
|
1823
1823
|
description: s,
|
|
1824
1824
|
centered: t = !1,
|
|
@@ -1834,7 +1834,7 @@ function rs({
|
|
|
1834
1834
|
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${c}`, children: s })
|
|
1835
1835
|
] });
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function ls({
|
|
1838
1838
|
icon: r,
|
|
1839
1839
|
title: s,
|
|
1840
1840
|
description: t,
|
|
@@ -1843,16 +1843,16 @@ function ss({
|
|
|
1843
1843
|
disabled: n = !1,
|
|
1844
1844
|
className: c = ""
|
|
1845
1845
|
}) {
|
|
1846
|
-
const o = "p-4 border rounded-lg transition-all text-center cursor-pointer",
|
|
1846
|
+
const o = "p-4 border rounded-lg transition-all text-center cursor-pointer", m = 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", u = n ? "opacity-50 cursor-not-allowed" : "";
|
|
1847
1847
|
return /* @__PURE__ */ e.jsxs(
|
|
1848
1848
|
"div",
|
|
1849
1849
|
{
|
|
1850
|
-
className: `${o} ${
|
|
1850
|
+
className: `${o} ${m} ${u} ${c}`,
|
|
1851
1851
|
onClick: () => !n && l?.(),
|
|
1852
1852
|
role: "button",
|
|
1853
1853
|
tabIndex: n ? -1 : 0,
|
|
1854
|
-
onKeyDown: (
|
|
1855
|
-
!n && (
|
|
1854
|
+
onKeyDown: (d) => {
|
|
1855
|
+
!n && (d.key === "Enter" || d.key === " ") && l?.();
|
|
1856
1856
|
},
|
|
1857
1857
|
children: [
|
|
1858
1858
|
r && /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-text-secondary", children: r }) }),
|
|
@@ -1863,7 +1863,7 @@ function ss({
|
|
|
1863
1863
|
}
|
|
1864
1864
|
);
|
|
1865
1865
|
}
|
|
1866
|
-
const
|
|
1866
|
+
const hr = P.forwardRef(
|
|
1867
1867
|
({
|
|
1868
1868
|
value: r,
|
|
1869
1869
|
onChange: s,
|
|
@@ -1873,18 +1873,18 @@ const ur = P.forwardRef(
|
|
|
1873
1873
|
showValue: n = !0,
|
|
1874
1874
|
showLabels: c = !1,
|
|
1875
1875
|
minLabel: o,
|
|
1876
|
-
maxLabel:
|
|
1877
|
-
error:
|
|
1878
|
-
fullWidth:
|
|
1879
|
-
disabled:
|
|
1880
|
-
className:
|
|
1876
|
+
maxLabel: m,
|
|
1877
|
+
error: u = !1,
|
|
1878
|
+
fullWidth: d = !0,
|
|
1879
|
+
disabled: x,
|
|
1880
|
+
className: h = "",
|
|
1881
1881
|
...f
|
|
1882
1882
|
}, g) => {
|
|
1883
|
-
const N = `w-full h-2 rounded-lg appearance-none cursor-pointer ${
|
|
1883
|
+
const N = `w-full h-2 rounded-lg appearance-none cursor-pointer ${u ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${x ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${h}`, O = (r - t) / (a - t) * 100;
|
|
1884
1884
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1885
|
-
c && (o ||
|
|
1885
|
+
c && (o || m) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1886
1886
|
o && /* @__PURE__ */ e.jsx("span", { children: o }),
|
|
1887
|
-
|
|
1887
|
+
m && /* @__PURE__ */ e.jsx("span", { children: m })
|
|
1888
1888
|
] }),
|
|
1889
1889
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1890
1890
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1897,7 +1897,7 @@ const ur = P.forwardRef(
|
|
|
1897
1897
|
step: l,
|
|
1898
1898
|
value: r,
|
|
1899
1899
|
onChange: (L) => s(Number(L.target.value)),
|
|
1900
|
-
disabled:
|
|
1900
|
+
disabled: x,
|
|
1901
1901
|
className: N,
|
|
1902
1902
|
...f
|
|
1903
1903
|
}
|
|
@@ -1914,8 +1914,8 @@ const ur = P.forwardRef(
|
|
|
1914
1914
|
] });
|
|
1915
1915
|
}
|
|
1916
1916
|
);
|
|
1917
|
-
|
|
1918
|
-
function
|
|
1917
|
+
hr.displayName = "Slider";
|
|
1918
|
+
function fr({
|
|
1919
1919
|
title: r,
|
|
1920
1920
|
titleId: s,
|
|
1921
1921
|
...t
|
|
@@ -1938,8 +1938,8 @@ function mr({
|
|
|
1938
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"
|
|
1939
1939
|
}));
|
|
1940
1940
|
}
|
|
1941
|
-
const
|
|
1942
|
-
function
|
|
1941
|
+
const gr = /* @__PURE__ */ j.forwardRef(fr);
|
|
1942
|
+
function br({
|
|
1943
1943
|
title: r,
|
|
1944
1944
|
titleId: s,
|
|
1945
1945
|
...t
|
|
@@ -1960,8 +1960,8 @@ function hr({
|
|
|
1960
1960
|
clipRule: "evenodd"
|
|
1961
1961
|
}));
|
|
1962
1962
|
}
|
|
1963
|
-
const
|
|
1964
|
-
function
|
|
1963
|
+
const vr = /* @__PURE__ */ j.forwardRef(br);
|
|
1964
|
+
function pr({
|
|
1965
1965
|
title: r,
|
|
1966
1966
|
titleId: s,
|
|
1967
1967
|
...t
|
|
@@ -1982,8 +1982,8 @@ function gr({
|
|
|
1982
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"
|
|
1983
1983
|
}));
|
|
1984
1984
|
}
|
|
1985
|
-
const
|
|
1986
|
-
function
|
|
1985
|
+
const jr = /* @__PURE__ */ j.forwardRef(pr);
|
|
1986
|
+
function yr({
|
|
1987
1987
|
title: r,
|
|
1988
1988
|
titleId: s,
|
|
1989
1989
|
...t
|
|
@@ -2002,7 +2002,7 @@ function vr({
|
|
|
2002
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"
|
|
2003
2003
|
}));
|
|
2004
2004
|
}
|
|
2005
|
-
const
|
|
2005
|
+
const wr = /* @__PURE__ */ j.forwardRef(yr), Nr = {
|
|
2006
2006
|
neutral: {
|
|
2007
2007
|
selectedContainer: "border-gray-300 bg-gray-50",
|
|
2008
2008
|
selectedIndicator: "text-gray-500",
|
|
@@ -2019,7 +2019,7 @@ const pr = /* @__PURE__ */ j.forwardRef(vr), jr = {
|
|
|
2019
2019
|
inputAccent: "accent-blue-600"
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
|
-
function
|
|
2022
|
+
function os({
|
|
2023
2023
|
id: r,
|
|
2024
2024
|
name: s,
|
|
2025
2025
|
checked: t,
|
|
@@ -2028,24 +2028,24 @@ function ts({
|
|
|
2028
2028
|
secondaryText: n,
|
|
2029
2029
|
tertiaryText: c,
|
|
2030
2030
|
tone: o = "neutral",
|
|
2031
|
-
showCheckedIndicator:
|
|
2032
|
-
disabled:
|
|
2033
|
-
className:
|
|
2031
|
+
showCheckedIndicator: m = !1,
|
|
2032
|
+
disabled: u = !1,
|
|
2033
|
+
className: d = ""
|
|
2034
2034
|
}) {
|
|
2035
|
-
const
|
|
2035
|
+
const x = Nr[o], h = t ? x.selectedContainer : "border-gray-200", f = u ? "cursor-not-allowed opacity-60" : "cursor-pointer hover:bg-gray-50";
|
|
2036
2036
|
return /* @__PURE__ */ e.jsxs(
|
|
2037
2037
|
"label",
|
|
2038
2038
|
{
|
|
2039
|
-
className: `flex items-start gap-2 rounded-md border p-2 transition ${
|
|
2039
|
+
className: `flex items-start gap-2 rounded-md border p-2 transition ${h} ${f} ${d}`,
|
|
2040
2040
|
children: [
|
|
2041
2041
|
/* @__PURE__ */ e.jsx(
|
|
2042
2042
|
"input",
|
|
2043
2043
|
{
|
|
2044
2044
|
type: "radio",
|
|
2045
2045
|
name: s,
|
|
2046
|
-
className: `mt-0.5 ${
|
|
2046
|
+
className: `mt-0.5 ${x.inputAccent}`,
|
|
2047
2047
|
checked: t,
|
|
2048
|
-
disabled:
|
|
2048
|
+
disabled: u,
|
|
2049
2049
|
onChange: () => a(r)
|
|
2050
2050
|
}
|
|
2051
2051
|
),
|
|
@@ -2054,12 +2054,58 @@ function ts({
|
|
|
2054
2054
|
n ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-500", children: n }) : null,
|
|
2055
2055
|
c ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-400", children: c }) : null
|
|
2056
2056
|
] }),
|
|
2057
|
-
|
|
2057
|
+
m && t ? /* @__PURE__ */ e.jsx(vr, { className: `h-4 w-4 mt-0.5 shrink-0 ${x.selectedIndicator}` }) : null
|
|
2058
2058
|
]
|
|
2059
2059
|
}
|
|
2060
2060
|
);
|
|
2061
2061
|
}
|
|
2062
|
-
|
|
2062
|
+
const Cr = {
|
|
2063
|
+
sm: "text-xs px-2.5 py-1",
|
|
2064
|
+
md: "text-sm px-3 py-1.5"
|
|
2065
|
+
}, be = {
|
|
2066
|
+
blue: "border-blue-400 bg-blue-100 text-blue-700 font-medium",
|
|
2067
|
+
purple: "border-purple-400 bg-purple-100 text-purple-700 font-medium",
|
|
2068
|
+
gray: "border-gray-400 bg-gray-200 text-gray-700 font-medium"
|
|
2069
|
+
}, ve = "border-gray-300 bg-gray-100 text-gray-400";
|
|
2070
|
+
function cs({
|
|
2071
|
+
items: r,
|
|
2072
|
+
selectedIds: s,
|
|
2073
|
+
onSelectionChange: t,
|
|
2074
|
+
onToggle: a,
|
|
2075
|
+
size: l = "sm",
|
|
2076
|
+
multi: n = !0,
|
|
2077
|
+
showCheckIcon: c = !0,
|
|
2078
|
+
disabled: o = !1,
|
|
2079
|
+
className: m = ""
|
|
2080
|
+
}) {
|
|
2081
|
+
const u = (d, x) => {
|
|
2082
|
+
if (o)
|
|
2083
|
+
return;
|
|
2084
|
+
const h = x ? n ? s.filter((f) => f !== d) : [] : n ? [...s, d] : [d];
|
|
2085
|
+
t(h), a?.(d, !x);
|
|
2086
|
+
};
|
|
2087
|
+
return /* @__PURE__ */ e.jsx("div", { className: `flex flex-wrap gap-2 ${m}`, children: r.map((d) => {
|
|
2088
|
+
const x = s.includes(d.id), h = d.tone ?? "blue", f = h === "custom" ? d.selectedClassName ?? be.blue : be[h], g = d.unselectedClassName ?? ve;
|
|
2089
|
+
return /* @__PURE__ */ e.jsxs(
|
|
2090
|
+
"button",
|
|
2091
|
+
{
|
|
2092
|
+
type: "button",
|
|
2093
|
+
onClick: () => u(d.id, x),
|
|
2094
|
+
disabled: o || d.disabled,
|
|
2095
|
+
className: `inline-flex items-center gap-1 rounded-full border transition ${Cr[l]} ${x ? f : g} ${o || d.disabled ? "cursor-not-allowed opacity-60" : ""}`,
|
|
2096
|
+
"aria-pressed": x,
|
|
2097
|
+
"aria-label": `${x ? "Deselect" : "Select"} ${d.label}`,
|
|
2098
|
+
"data-selected": x,
|
|
2099
|
+
children: [
|
|
2100
|
+
x && c ? /* @__PURE__ */ e.jsx(Be, { className: "h-3.5 w-3.5" }) : null,
|
|
2101
|
+
/* @__PURE__ */ e.jsx("span", { children: d.label })
|
|
2102
|
+
]
|
|
2103
|
+
},
|
|
2104
|
+
d.id
|
|
2105
|
+
);
|
|
2106
|
+
}) });
|
|
2107
|
+
}
|
|
2108
|
+
function kr({
|
|
2063
2109
|
id: r,
|
|
2064
2110
|
index: s,
|
|
2065
2111
|
previewText: t,
|
|
@@ -2069,18 +2115,18 @@ function yr({
|
|
|
2069
2115
|
onRemove: c,
|
|
2070
2116
|
className: o = ""
|
|
2071
2117
|
}) {
|
|
2072
|
-
const [
|
|
2073
|
-
transform:
|
|
2118
|
+
const [m, u] = $(a), { attributes: d, listeners: x, setNodeRef: h, transform: f, transition: g, isDragging: y } = _e({ id: r }), V = {
|
|
2119
|
+
transform: Oe.Transform.toString(f),
|
|
2074
2120
|
transition: g,
|
|
2075
2121
|
opacity: y ? 0.5 : 1
|
|
2076
2122
|
};
|
|
2077
2123
|
return /* @__PURE__ */ e.jsx(
|
|
2078
2124
|
"div",
|
|
2079
2125
|
{
|
|
2080
|
-
ref:
|
|
2126
|
+
ref: h,
|
|
2081
2127
|
style: V,
|
|
2082
2128
|
className: `border border-border rounded-md bg-surface-variant ${o}`,
|
|
2083
|
-
children:
|
|
2129
|
+
children: m ? (
|
|
2084
2130
|
// ── Expanded ──────────────────────────────────────────────────────────
|
|
2085
2131
|
/* @__PURE__ */ e.jsxs("div", { className: "p-3", children: [
|
|
2086
2132
|
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
@@ -2088,8 +2134,8 @@ function yr({
|
|
|
2088
2134
|
"button",
|
|
2089
2135
|
{
|
|
2090
2136
|
type: "button",
|
|
2091
|
-
...
|
|
2092
|
-
...
|
|
2137
|
+
...d,
|
|
2138
|
+
...x,
|
|
2093
2139
|
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing rounded hover:bg-surface-variant inline-flex items-center justify-center",
|
|
2094
2140
|
"aria-label": "Drag to reorder",
|
|
2095
2141
|
children: /* @__PURE__ */ e.jsx(xe, { className: "w-4 h-4" })
|
|
@@ -2099,7 +2145,7 @@ function yr({
|
|
|
2099
2145
|
"span",
|
|
2100
2146
|
{
|
|
2101
2147
|
className: "text-sm font-medium text-text-secondary flex-1 cursor-pointer select-none",
|
|
2102
|
-
onClick: () =>
|
|
2148
|
+
onClick: () => u(!1),
|
|
2103
2149
|
children: [
|
|
2104
2150
|
"Item ",
|
|
2105
2151
|
s + 1
|
|
@@ -2107,19 +2153,19 @@ function yr({
|
|
|
2107
2153
|
}
|
|
2108
2154
|
),
|
|
2109
2155
|
/* @__PURE__ */ e.jsx(
|
|
2110
|
-
|
|
2156
|
+
_,
|
|
2111
2157
|
{
|
|
2112
2158
|
type: "button",
|
|
2113
2159
|
variant: "ghost",
|
|
2114
2160
|
size: "icon",
|
|
2115
|
-
onClick: () =>
|
|
2161
|
+
onClick: () => u(!1),
|
|
2116
2162
|
className: "h-auto w-auto p-1",
|
|
2117
2163
|
"aria-label": "Collapse",
|
|
2118
2164
|
leftIcon: /* @__PURE__ */ e.jsx(he, { className: "w-4 h-4 transition-transform rotate-90" })
|
|
2119
2165
|
}
|
|
2120
2166
|
),
|
|
2121
2167
|
/* @__PURE__ */ e.jsx(
|
|
2122
|
-
|
|
2168
|
+
_,
|
|
2123
2169
|
{
|
|
2124
2170
|
type: "button",
|
|
2125
2171
|
variant: "ghost",
|
|
@@ -2141,8 +2187,8 @@ function yr({
|
|
|
2141
2187
|
"button",
|
|
2142
2188
|
{
|
|
2143
2189
|
type: "button",
|
|
2144
|
-
...
|
|
2145
|
-
...
|
|
2190
|
+
...d,
|
|
2191
|
+
...x,
|
|
2146
2192
|
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing flex-shrink-0 rounded hover:bg-surface-variant inline-flex items-center justify-center",
|
|
2147
2193
|
"aria-label": "Drag to reorder",
|
|
2148
2194
|
children: /* @__PURE__ */ e.jsx(xe, { className: "w-4 h-4" })
|
|
@@ -2152,24 +2198,24 @@ function yr({
|
|
|
2152
2198
|
"span",
|
|
2153
2199
|
{
|
|
2154
2200
|
className: "flex-1 text-sm text-text-secondary truncate cursor-pointer select-none",
|
|
2155
|
-
onClick: () =>
|
|
2201
|
+
onClick: () => u(!0),
|
|
2156
2202
|
children: t
|
|
2157
2203
|
}
|
|
2158
2204
|
),
|
|
2159
2205
|
/* @__PURE__ */ e.jsx(
|
|
2160
|
-
|
|
2206
|
+
_,
|
|
2161
2207
|
{
|
|
2162
2208
|
type: "button",
|
|
2163
2209
|
variant: "ghost",
|
|
2164
2210
|
size: "icon",
|
|
2165
|
-
onClick: () =>
|
|
2211
|
+
onClick: () => u(!0),
|
|
2166
2212
|
className: "h-auto w-auto p-1 flex-shrink-0",
|
|
2167
2213
|
"aria-label": "Expand",
|
|
2168
2214
|
leftIcon: /* @__PURE__ */ e.jsx(he, { className: "w-4 h-4 transition-transform" })
|
|
2169
2215
|
}
|
|
2170
2216
|
),
|
|
2171
2217
|
/* @__PURE__ */ e.jsx(
|
|
2172
|
-
|
|
2218
|
+
_,
|
|
2173
2219
|
{
|
|
2174
2220
|
type: "button",
|
|
2175
2221
|
variant: "ghost",
|
|
@@ -2187,8 +2233,8 @@ function yr({
|
|
|
2187
2233
|
}
|
|
2188
2234
|
);
|
|
2189
2235
|
}
|
|
2190
|
-
|
|
2191
|
-
const
|
|
2236
|
+
kr.displayName = "SortableItem";
|
|
2237
|
+
const $r = {
|
|
2192
2238
|
bg: "bg-indigo-600",
|
|
2193
2239
|
activeBg: "bg-indigo-700",
|
|
2194
2240
|
text: "text-indigo-200",
|
|
@@ -2196,10 +2242,10 @@ const wr = {
|
|
|
2196
2242
|
hoverBg: "hover:bg-indigo-700",
|
|
2197
2243
|
hoverText: "hover:text-white"
|
|
2198
2244
|
};
|
|
2199
|
-
function
|
|
2245
|
+
function S(...r) {
|
|
2200
2246
|
return r.filter(Boolean).join(" ");
|
|
2201
2247
|
}
|
|
2202
|
-
function
|
|
2248
|
+
function pe({ item: r, colorScheme: s }) {
|
|
2203
2249
|
const [t, a] = $(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
|
|
2204
2250
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
2205
2251
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
@@ -2209,7 +2255,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2209
2255
|
onClick: (n) => {
|
|
2210
2256
|
l && (n.preventDefault(), a(!t));
|
|
2211
2257
|
},
|
|
2212
|
-
className:
|
|
2258
|
+
className: S(
|
|
2213
2259
|
r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
2214
2260
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
2215
2261
|
l ? "cursor-pointer" : ""
|
|
@@ -2220,7 +2266,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2220
2266
|
r.icon,
|
|
2221
2267
|
{
|
|
2222
2268
|
"aria-hidden": "true",
|
|
2223
|
-
className:
|
|
2269
|
+
className: S(
|
|
2224
2270
|
r.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
2225
2271
|
"size-6 shrink-0"
|
|
2226
2272
|
)
|
|
@@ -2231,7 +2277,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2231
2277
|
l && /* @__PURE__ */ e.jsx(
|
|
2232
2278
|
te,
|
|
2233
2279
|
{
|
|
2234
|
-
className:
|
|
2280
|
+
className: S(
|
|
2235
2281
|
"size-5 shrink-0 transition-transform",
|
|
2236
2282
|
t ? "rotate-180" : "",
|
|
2237
2283
|
r.current ? s.activeText : s.text
|
|
@@ -2245,7 +2291,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2245
2291
|
"a",
|
|
2246
2292
|
{
|
|
2247
2293
|
href: n.href,
|
|
2248
|
-
className:
|
|
2294
|
+
className: S(
|
|
2249
2295
|
n.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
2250
2296
|
"group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
|
|
2251
2297
|
),
|
|
@@ -2254,7 +2300,7 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2254
2300
|
n.icon,
|
|
2255
2301
|
{
|
|
2256
2302
|
"aria-hidden": "true",
|
|
2257
|
-
className:
|
|
2303
|
+
className: S(
|
|
2258
2304
|
n.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
2259
2305
|
"size-5 shrink-0"
|
|
2260
2306
|
)
|
|
@@ -2266,28 +2312,28 @@ function be({ item: r, colorScheme: s }) {
|
|
|
2266
2312
|
) }, n.name)) })
|
|
2267
2313
|
] });
|
|
2268
2314
|
}
|
|
2269
|
-
function
|
|
2315
|
+
function is({ company: r, profile: s, navigation: t, colorScheme: a = $r }) {
|
|
2270
2316
|
const [l, n] = $(!1);
|
|
2271
2317
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
2272
|
-
/* @__PURE__ */ e.jsxs(
|
|
2318
|
+
/* @__PURE__ */ e.jsxs(Ie, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
2273
2319
|
/* @__PURE__ */ e.jsx(
|
|
2274
|
-
|
|
2320
|
+
Pe,
|
|
2275
2321
|
{
|
|
2276
2322
|
transition: !0,
|
|
2277
2323
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
2278
2324
|
}
|
|
2279
2325
|
),
|
|
2280
2326
|
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
2281
|
-
|
|
2327
|
+
ze,
|
|
2282
2328
|
{
|
|
2283
2329
|
transition: !0,
|
|
2284
2330
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
2285
2331
|
children: [
|
|
2286
|
-
/* @__PURE__ */ e.jsx(
|
|
2332
|
+
/* @__PURE__ */ e.jsx(Le, { 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: [
|
|
2287
2333
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
2288
|
-
/* @__PURE__ */ e.jsx(
|
|
2334
|
+
/* @__PURE__ */ e.jsx(Ce, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
2289
2335
|
] }) }) }),
|
|
2290
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2336
|
+
/* @__PURE__ */ e.jsxs("div", { className: S("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
|
|
2291
2337
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
2292
2338
|
"img",
|
|
2293
2339
|
{
|
|
@@ -2296,13 +2342,13 @@ function as({ company: r, profile: s, navigation: t, colorScheme: a = wr }) {
|
|
|
2296
2342
|
className: "h-8 w-auto"
|
|
2297
2343
|
}
|
|
2298
2344
|
) }),
|
|
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(
|
|
2345
|
+
/* @__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(pe, { item: c, colorScheme: a }, c.name)) }) }) }) })
|
|
2300
2346
|
] })
|
|
2301
2347
|
]
|
|
2302
2348
|
}
|
|
2303
2349
|
) })
|
|
2304
2350
|
] }),
|
|
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:
|
|
2351
|
+
/* @__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: S("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
|
|
2306
2352
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
2307
2353
|
"img",
|
|
2308
2354
|
{
|
|
@@ -2312,12 +2358,12 @@ function as({ company: r, profile: s, navigation: t, colorScheme: a = wr }) {
|
|
|
2312
2358
|
}
|
|
2313
2359
|
) }),
|
|
2314
2360
|
/* @__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: [
|
|
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(
|
|
2361
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(pe, { item: c, colorScheme: a }, c.name)) }) }),
|
|
2316
2362
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
2317
2363
|
"a",
|
|
2318
2364
|
{
|
|
2319
2365
|
href: "#",
|
|
2320
|
-
className:
|
|
2366
|
+
className: S(
|
|
2321
2367
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
2322
2368
|
a.activeText,
|
|
2323
2369
|
a.hoverBg
|
|
@@ -2328,7 +2374,7 @@ function as({ company: r, profile: s, navigation: t, colorScheme: a = wr }) {
|
|
|
2328
2374
|
{
|
|
2329
2375
|
alt: s.name,
|
|
2330
2376
|
src: s.image,
|
|
2331
|
-
className:
|
|
2377
|
+
className: S("size-8 rounded-full", a.activeBg)
|
|
2332
2378
|
}
|
|
2333
2379
|
),
|
|
2334
2380
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
@@ -2338,12 +2384,12 @@ function as({ company: r, profile: s, navigation: t, colorScheme: a = wr }) {
|
|
|
2338
2384
|
) })
|
|
2339
2385
|
] }) })
|
|
2340
2386
|
] }) }),
|
|
2341
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2342
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className:
|
|
2387
|
+
/* @__PURE__ */ e.jsxs("div", { className: S("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: [
|
|
2388
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: S("-m-2.5 p-2.5 lg:hidden", a.text), children: [
|
|
2343
2389
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
2344
|
-
/* @__PURE__ */ e.jsx(
|
|
2390
|
+
/* @__PURE__ */ e.jsx(Me, { "aria-hidden": "true", className: "size-6" })
|
|
2345
2391
|
] }),
|
|
2346
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2392
|
+
/* @__PURE__ */ e.jsx("div", { className: S("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
|
|
2347
2393
|
/* @__PURE__ */ e.jsxs("a", { href: "#", children: [
|
|
2348
2394
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
2349
2395
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2351,14 +2397,14 @@ function as({ company: r, profile: s, navigation: t, colorScheme: a = wr }) {
|
|
|
2351
2397
|
{
|
|
2352
2398
|
alt: s.name,
|
|
2353
2399
|
src: s.image,
|
|
2354
|
-
className:
|
|
2400
|
+
className: S("size-8 rounded-full", a.activeBg)
|
|
2355
2401
|
}
|
|
2356
2402
|
)
|
|
2357
2403
|
] })
|
|
2358
2404
|
] })
|
|
2359
2405
|
] }) });
|
|
2360
2406
|
}
|
|
2361
|
-
const
|
|
2407
|
+
const Vr = {
|
|
2362
2408
|
activeBg: "bg-reseda-green-700",
|
|
2363
2409
|
activeText: "text-white",
|
|
2364
2410
|
completedBg: "bg-success-500",
|
|
@@ -2369,8 +2415,8 @@ const Nr = {
|
|
|
2369
2415
|
labelInactiveText: "text-text-muted",
|
|
2370
2416
|
connectorBg: "bg-border"
|
|
2371
2417
|
};
|
|
2372
|
-
function
|
|
2373
|
-
const a = t ||
|
|
2418
|
+
function ds({ currentStep: r, steps: s, colorConfig: t }) {
|
|
2419
|
+
const a = t || Vr;
|
|
2374
2420
|
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: [
|
|
2375
2421
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
2376
2422
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2391,19 +2437,19 @@ function ns({ currentStep: r, steps: s, colorConfig: t }) {
|
|
|
2391
2437
|
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
|
|
2392
2438
|
] }, l.number)) }) });
|
|
2393
2439
|
}
|
|
2394
|
-
const
|
|
2440
|
+
const Tr = {
|
|
2395
2441
|
activeText: "text-reseda-green-700",
|
|
2396
2442
|
activeBorder: "border-reseda-green-700",
|
|
2397
2443
|
inactiveText: "text-text-secondary",
|
|
2398
2444
|
inactiveHoverText: "hover:text-text-primary",
|
|
2399
2445
|
disabledText: "text-text-disabled"
|
|
2400
2446
|
};
|
|
2401
|
-
function
|
|
2402
|
-
const n = l ||
|
|
2447
|
+
function us({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
|
|
2448
|
+
const n = l || Tr;
|
|
2403
2449
|
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
|
|
2404
2450
|
const o = s === c.id;
|
|
2405
2451
|
return /* @__PURE__ */ e.jsx(
|
|
2406
|
-
|
|
2452
|
+
_,
|
|
2407
2453
|
{
|
|
2408
2454
|
variant: "ghost",
|
|
2409
2455
|
onClick: () => !t && a(c.id),
|
|
@@ -2415,7 +2461,7 @@ function ls({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig:
|
|
|
2415
2461
|
);
|
|
2416
2462
|
}) });
|
|
2417
2463
|
}
|
|
2418
|
-
function
|
|
2464
|
+
function ms({
|
|
2419
2465
|
status: r,
|
|
2420
2466
|
title: s,
|
|
2421
2467
|
message: t,
|
|
@@ -2428,25 +2474,25 @@ function os({
|
|
|
2428
2474
|
bg: "bg-success-50",
|
|
2429
2475
|
border: "border-success-200",
|
|
2430
2476
|
text: "text-success-700",
|
|
2431
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2477
|
+
icon: /* @__PURE__ */ e.jsx(Ne, { className: "h-5 w-5" })
|
|
2432
2478
|
},
|
|
2433
2479
|
error: {
|
|
2434
2480
|
bg: "bg-error-50",
|
|
2435
2481
|
border: "border-error-200",
|
|
2436
2482
|
text: "text-error-700",
|
|
2437
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2483
|
+
icon: /* @__PURE__ */ e.jsx(we, { className: "h-5 w-5" })
|
|
2438
2484
|
},
|
|
2439
2485
|
warning: {
|
|
2440
2486
|
bg: "bg-warning-50",
|
|
2441
2487
|
border: "border-warning-200",
|
|
2442
2488
|
text: "text-warning-700",
|
|
2443
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2489
|
+
icon: /* @__PURE__ */ e.jsx(ye, { className: "h-5 w-5" })
|
|
2444
2490
|
},
|
|
2445
2491
|
info: {
|
|
2446
2492
|
bg: "bg-info-50",
|
|
2447
2493
|
border: "border-info-200",
|
|
2448
2494
|
text: "text-info-700",
|
|
2449
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2495
|
+
icon: /* @__PURE__ */ e.jsx(je, { className: "h-5 w-5" })
|
|
2450
2496
|
},
|
|
2451
2497
|
loading: {
|
|
2452
2498
|
bg: "bg-blue-50",
|
|
@@ -2481,7 +2527,7 @@ function os({
|
|
|
2481
2527
|
)
|
|
2482
2528
|
] }) });
|
|
2483
2529
|
}
|
|
2484
|
-
const
|
|
2530
|
+
const Ve = ({
|
|
2485
2531
|
role: r,
|
|
2486
2532
|
content: s,
|
|
2487
2533
|
timestamp: t,
|
|
@@ -2503,8 +2549,8 @@ const ke = ({
|
|
|
2503
2549
|
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" }) })
|
|
2504
2550
|
] });
|
|
2505
2551
|
};
|
|
2506
|
-
|
|
2507
|
-
const
|
|
2552
|
+
Ve.displayName = "ChatMessage";
|
|
2553
|
+
const Er = ({
|
|
2508
2554
|
onSend: r,
|
|
2509
2555
|
disabled: s = !1,
|
|
2510
2556
|
placeholder: t = "Ask a question about your resume or the job...",
|
|
@@ -2512,14 +2558,14 @@ const kr = ({
|
|
|
2512
2558
|
className: l = ""
|
|
2513
2559
|
}) => {
|
|
2514
2560
|
const [n, c] = $(""), o = W(null);
|
|
2515
|
-
|
|
2561
|
+
D(() => {
|
|
2516
2562
|
o.current && (o.current.style.height = "auto", o.current.style.height = `${o.current.scrollHeight}px`);
|
|
2517
2563
|
}, [n]);
|
|
2518
|
-
const
|
|
2564
|
+
const m = () => {
|
|
2519
2565
|
n.trim() && !s && (r(n.trim()), c(""));
|
|
2520
|
-
},
|
|
2521
|
-
|
|
2522
|
-
},
|
|
2566
|
+
}, u = (h) => {
|
|
2567
|
+
h.key === "Enter" && !h.shiftKey ? (h.preventDefault(), m()) : h.key === "Escape" && c("");
|
|
2568
|
+
}, d = n.length > a, x = n.length > a * 0.9;
|
|
2523
2569
|
return /* @__PURE__ */ e.jsxs("div", { className: `border-t border-gray-200 bg-white p-4 ${l}`, children: [
|
|
2524
2570
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
2525
2571
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2527,8 +2573,8 @@ const kr = ({
|
|
|
2527
2573
|
{
|
|
2528
2574
|
ref: o,
|
|
2529
2575
|
value: n,
|
|
2530
|
-
onChange: (
|
|
2531
|
-
onKeyDown:
|
|
2576
|
+
onChange: (h) => c(h.target.value),
|
|
2577
|
+
onKeyDown: u,
|
|
2532
2578
|
placeholder: t,
|
|
2533
2579
|
disabled: s,
|
|
2534
2580
|
rows: 1,
|
|
@@ -2540,17 +2586,17 @@ const kr = ({
|
|
|
2540
2586
|
/* @__PURE__ */ e.jsx(
|
|
2541
2587
|
"button",
|
|
2542
2588
|
{
|
|
2543
|
-
onClick:
|
|
2544
|
-
disabled: s || !n.trim() ||
|
|
2589
|
+
onClick: m,
|
|
2590
|
+
disabled: s || !n.trim() || d,
|
|
2545
2591
|
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",
|
|
2546
2592
|
"aria-label": "Send message",
|
|
2547
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2593
|
+
children: /* @__PURE__ */ e.jsx(wr, { className: "w-5 h-5" })
|
|
2548
2594
|
}
|
|
2549
2595
|
)
|
|
2550
2596
|
] }),
|
|
2551
2597
|
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mt-2", children: [
|
|
2552
2598
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500", children: "Press Enter to send, Shift+Enter for new line" }),
|
|
2553
|
-
|
|
2599
|
+
x && /* @__PURE__ */ e.jsxs("p", { className: `text-xs ${d ? "text-red-500" : "text-gray-500"}`, children: [
|
|
2554
2600
|
n.length,
|
|
2555
2601
|
"/",
|
|
2556
2602
|
a
|
|
@@ -2558,8 +2604,8 @@ const kr = ({
|
|
|
2558
2604
|
] })
|
|
2559
2605
|
] });
|
|
2560
2606
|
};
|
|
2561
|
-
|
|
2562
|
-
const
|
|
2607
|
+
Er.displayName = "ChatInput";
|
|
2608
|
+
const Te = ({
|
|
2563
2609
|
message: r = "Thinking...",
|
|
2564
2610
|
variant: s = "dots",
|
|
2565
2611
|
className: t = ""
|
|
@@ -2586,8 +2632,8 @@ const $e = ({
|
|
|
2586
2632
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm text-gray-600", children: r })
|
|
2587
2633
|
] }) })
|
|
2588
2634
|
] });
|
|
2589
|
-
|
|
2590
|
-
const
|
|
2635
|
+
Te.displayName = "LoadingIndicator";
|
|
2636
|
+
const Rr = ({
|
|
2591
2637
|
messages: r,
|
|
2592
2638
|
isLoading: s = !1,
|
|
2593
2639
|
loadingMessage: t = "Thinking...",
|
|
@@ -2596,13 +2642,13 @@ const $r = ({
|
|
|
2596
2642
|
className: n = "",
|
|
2597
2643
|
emptyStateMessage: c = "Start a conversation"
|
|
2598
2644
|
}) => {
|
|
2599
|
-
const o = W(null),
|
|
2600
|
-
return
|
|
2645
|
+
const o = W(null), m = W(null);
|
|
2646
|
+
return D(() => {
|
|
2601
2647
|
o.current?.scrollIntoView({ behavior: "smooth" });
|
|
2602
2648
|
}, [r, s]), /* @__PURE__ */ e.jsxs(
|
|
2603
2649
|
"div",
|
|
2604
2650
|
{
|
|
2605
|
-
ref:
|
|
2651
|
+
ref: m,
|
|
2606
2652
|
className: `flex flex-col flex-1 overflow-y-auto bg-white p-4 space-y-4 ${n}`,
|
|
2607
2653
|
children: [
|
|
2608
2654
|
r.length === 0 && !s && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center justify-center h-full text-center", children: [
|
|
@@ -2610,17 +2656,17 @@ const $r = ({
|
|
|
2610
2656
|
/* @__PURE__ */ e.jsx("p", { className: "text-gray-600 font-medium", children: c }),
|
|
2611
2657
|
/* @__PURE__ */ e.jsx("p", { className: "text-gray-400 text-sm mt-2", children: "Ask me anything about your resume or the job requirements!" })
|
|
2612
2658
|
] }),
|
|
2613
|
-
r.map((
|
|
2614
|
-
|
|
2659
|
+
r.map((u, d) => /* @__PURE__ */ e.jsx(
|
|
2660
|
+
Ve,
|
|
2615
2661
|
{
|
|
2616
|
-
role:
|
|
2617
|
-
content:
|
|
2618
|
-
timestamp:
|
|
2662
|
+
role: u.role,
|
|
2663
|
+
content: u.content,
|
|
2664
|
+
timestamp: u.timestamp
|
|
2619
2665
|
},
|
|
2620
|
-
|
|
2666
|
+
d
|
|
2621
2667
|
)),
|
|
2622
2668
|
s && /* @__PURE__ */ e.jsx(
|
|
2623
|
-
|
|
2669
|
+
Te,
|
|
2624
2670
|
{
|
|
2625
2671
|
message: t,
|
|
2626
2672
|
variant: "dots"
|
|
@@ -2645,8 +2691,8 @@ const $r = ({
|
|
|
2645
2691
|
}
|
|
2646
2692
|
);
|
|
2647
2693
|
};
|
|
2648
|
-
|
|
2649
|
-
const
|
|
2694
|
+
Rr.displayName = "ChatContainer";
|
|
2695
|
+
const Sr = ({
|
|
2650
2696
|
resumeName: r,
|
|
2651
2697
|
jobTitle: s,
|
|
2652
2698
|
companyName: t,
|
|
@@ -2657,7 +2703,7 @@ const Vr = ({
|
|
|
2657
2703
|
}) => /* @__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: [
|
|
2658
2704
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2659
2705
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2660
|
-
/* @__PURE__ */ e.jsx(
|
|
2706
|
+
/* @__PURE__ */ e.jsx(jr, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2661
2707
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2662
2708
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Resume" }),
|
|
2663
2709
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm font-medium text-gray-900 truncate", children: r })
|
|
@@ -2675,7 +2721,7 @@ const Vr = ({
|
|
|
2675
2721
|
] }),
|
|
2676
2722
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2677
2723
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2678
|
-
/* @__PURE__ */ e.jsx(
|
|
2724
|
+
/* @__PURE__ */ e.jsx(gr, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2679
2725
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2680
2726
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Job" }),
|
|
2681
2727
|
/* @__PURE__ */ e.jsxs("div", { className: "truncate", children: [
|
|
@@ -2711,7 +2757,7 @@ const Vr = ({
|
|
|
2711
2757
|
) })
|
|
2712
2758
|
] })
|
|
2713
2759
|
] }) });
|
|
2714
|
-
|
|
2760
|
+
Sr.displayName = "AnalysisSummaryBar";
|
|
2715
2761
|
const re = {
|
|
2716
2762
|
semantic: {
|
|
2717
2763
|
none: "bg-error-50 border-error-200 text-error-700",
|
|
@@ -2728,7 +2774,7 @@ const re = {
|
|
|
2728
2774
|
partial: "bg-surface border-warning-300 text-warning-700",
|
|
2729
2775
|
full: "bg-surface border-success-300 text-success-700"
|
|
2730
2776
|
}
|
|
2731
|
-
},
|
|
2777
|
+
}, Ar = {
|
|
2732
2778
|
semantic: {
|
|
2733
2779
|
required: "bg-error-600 text-white",
|
|
2734
2780
|
preferred: "bg-reseda-green-600 text-white",
|
|
@@ -2744,40 +2790,40 @@ const re = {
|
|
|
2744
2790
|
preferred: "bg-reseda-green-700 text-reseda-green-100",
|
|
2745
2791
|
"nice-to-have": "bg-khaki-700 text-khaki-100"
|
|
2746
2792
|
}
|
|
2747
|
-
},
|
|
2793
|
+
}, Br = ({
|
|
2748
2794
|
skills: r,
|
|
2749
2795
|
className: s = "",
|
|
2750
2796
|
colorPreset: t = "semantic"
|
|
2751
2797
|
}) => {
|
|
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) =>
|
|
2798
|
+
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) => Ar[t][o], c = (o, m) => !m || m.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "mb-4", children: [
|
|
2753
2799
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs font-semibold text-text-secondary mb-2", children: [
|
|
2754
2800
|
o,
|
|
2755
2801
|
":"
|
|
2756
2802
|
] }),
|
|
2757
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children:
|
|
2803
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: m.map((u, d) => /* @__PURE__ */ e.jsxs(
|
|
2758
2804
|
"div",
|
|
2759
2805
|
{
|
|
2760
2806
|
className: `inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg border ${l(
|
|
2761
|
-
|
|
2807
|
+
u
|
|
2762
2808
|
)}`,
|
|
2763
2809
|
children: [
|
|
2764
2810
|
/* @__PURE__ */ e.jsxs("span", { className: "text-sm font-medium", children: [
|
|
2765
|
-
a(
|
|
2811
|
+
a(u),
|
|
2766
2812
|
" ",
|
|
2767
|
-
|
|
2813
|
+
u.name
|
|
2768
2814
|
] }),
|
|
2769
2815
|
/* @__PURE__ */ e.jsx(
|
|
2770
2816
|
"span",
|
|
2771
2817
|
{
|
|
2772
2818
|
className: `text-xs px-1.5 py-0.5 rounded ${n(
|
|
2773
|
-
|
|
2819
|
+
u.importance
|
|
2774
2820
|
)}`,
|
|
2775
|
-
children:
|
|
2821
|
+
children: u.importance === "nice-to-have" ? "Nice" : u.importance
|
|
2776
2822
|
}
|
|
2777
2823
|
)
|
|
2778
2824
|
]
|
|
2779
2825
|
},
|
|
2780
|
-
|
|
2826
|
+
d
|
|
2781
2827
|
)) })
|
|
2782
2828
|
] });
|
|
2783
2829
|
return /* @__PURE__ */ e.jsxs("div", { className: s, children: [
|
|
@@ -2785,26 +2831,26 @@ const re = {
|
|
|
2785
2831
|
c("Soft Skills", r.soft || [])
|
|
2786
2832
|
] });
|
|
2787
2833
|
};
|
|
2788
|
-
|
|
2789
|
-
const
|
|
2834
|
+
Br.displayName = "SkillTags";
|
|
2835
|
+
const Mr = ({
|
|
2790
2836
|
score: r,
|
|
2791
2837
|
showLabel: s = !0,
|
|
2792
2838
|
size: t = "md",
|
|
2793
2839
|
className: a = ""
|
|
2794
2840
|
}) => {
|
|
2795
|
-
const l = Math.min(Math.max(r, 0), 100), n = (
|
|
2841
|
+
const l = Math.min(Math.max(r, 0), 100), n = (u) => u >= 90 ? "bg-green-500" : u >= 75 ? "bg-blue-500" : u >= 60 ? "bg-yellow-500" : "bg-red-500", c = (u) => u >= 90 ? "Excellent match!" : u >= 75 ? "Good match" : u >= 60 ? "Fair match" : "Poor match", o = {
|
|
2796
2842
|
sm: "h-2",
|
|
2797
2843
|
md: "h-4",
|
|
2798
2844
|
lg: "h-6"
|
|
2799
|
-
},
|
|
2845
|
+
}, m = {
|
|
2800
2846
|
sm: "text-xs",
|
|
2801
2847
|
md: "text-sm",
|
|
2802
2848
|
lg: "text-base"
|
|
2803
2849
|
};
|
|
2804
2850
|
return /* @__PURE__ */ e.jsxs("div", { className: a, children: [
|
|
2805
2851
|
s && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
2806
|
-
/* @__PURE__ */ e.jsx("p", { className: `font-medium text-gray-700 ${
|
|
2807
|
-
/* @__PURE__ */ e.jsxs("p", { className: `font-semibold ${
|
|
2852
|
+
/* @__PURE__ */ e.jsx("p", { className: `font-medium text-gray-700 ${m[t]}`, children: "Match Score" }),
|
|
2853
|
+
/* @__PURE__ */ e.jsxs("p", { className: `font-semibold ${m[t]} ${n(l).replace("bg-", "text-")}`, children: [
|
|
2808
2854
|
l,
|
|
2809
2855
|
"%"
|
|
2810
2856
|
] })
|
|
@@ -2816,11 +2862,11 @@ const Rr = ({
|
|
|
2816
2862
|
style: { width: `${l}%` }
|
|
2817
2863
|
}
|
|
2818
2864
|
) }),
|
|
2819
|
-
s && /* @__PURE__ */ e.jsx("p", { className: `text-gray-600 mt-1 ${
|
|
2865
|
+
s && /* @__PURE__ */ e.jsx("p", { className: `text-gray-600 mt-1 ${m[t]}`, children: c(l) })
|
|
2820
2866
|
] });
|
|
2821
2867
|
};
|
|
2822
|
-
|
|
2823
|
-
const
|
|
2868
|
+
Mr.displayName = "MatchScoreBar";
|
|
2869
|
+
const Dr = ({
|
|
2824
2870
|
responsibilities: r,
|
|
2825
2871
|
className: s = ""
|
|
2826
2872
|
}) => {
|
|
@@ -2860,55 +2906,56 @@ const Ar = ({
|
|
|
2860
2906
|
] }, o)) })
|
|
2861
2907
|
] }, l)) });
|
|
2862
2908
|
};
|
|
2863
|
-
|
|
2909
|
+
Dr.displayName = "ResponsibilitiesList";
|
|
2864
2910
|
export {
|
|
2865
|
-
|
|
2866
|
-
|
|
2911
|
+
Qr as Accordion,
|
|
2912
|
+
es as ActionCard,
|
|
2867
2913
|
G as Alert,
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2914
|
+
Sr as AnalysisSummaryBar,
|
|
2915
|
+
ar as Badge,
|
|
2916
|
+
_ as Button,
|
|
2917
|
+
rs as Card,
|
|
2918
|
+
Rr as ChatContainer,
|
|
2919
|
+
Er as ChatInput,
|
|
2920
|
+
Ve as ChatMessage,
|
|
2921
|
+
Jr as CheckboxGroup,
|
|
2922
|
+
Ze as ColorPalette,
|
|
2923
|
+
qr as Demo,
|
|
2924
|
+
as as DetailPanel,
|
|
2925
|
+
ss as Drawer,
|
|
2926
|
+
Gr as FileUpload,
|
|
2927
|
+
Zr as FormField,
|
|
2928
|
+
Qe as Input,
|
|
2929
|
+
cs as KeywordChipSelector,
|
|
2930
|
+
Te as LoadingIndicator,
|
|
2931
|
+
Mr as MatchScoreBar,
|
|
2932
|
+
ls as OptionCard,
|
|
2933
|
+
ns as PageHeader,
|
|
2934
|
+
Xr as RadioGroup,
|
|
2935
|
+
Dr as ResponsibilitiesList,
|
|
2936
|
+
ts as Section,
|
|
2937
|
+
er as Select,
|
|
2938
|
+
os as SelectableRadioOption,
|
|
2939
|
+
is as Sidebar,
|
|
2940
|
+
Br as SkillTags,
|
|
2941
|
+
hr as Slider,
|
|
2942
|
+
ir as SocialButton,
|
|
2943
|
+
kr as SortableItem,
|
|
2944
|
+
Kr as StatsGrid,
|
|
2945
|
+
ms as StatusBanner,
|
|
2946
|
+
ds as Stepper,
|
|
2947
|
+
us as TabBar,
|
|
2948
|
+
nr as TagInput,
|
|
2949
|
+
dr as Textarea,
|
|
2950
|
+
Ge as ThemeProvider,
|
|
2951
|
+
Xe as ThemeToggle,
|
|
2952
|
+
Hr as clearAllErrors,
|
|
2953
|
+
Yr as clearFieldError,
|
|
2954
|
+
Ur as getFirstError,
|
|
2955
|
+
Ue as hasErrors,
|
|
2956
|
+
Wr as useForm,
|
|
2957
|
+
Je as useTheme,
|
|
2958
|
+
Fe as validateField,
|
|
2912
2959
|
ee as validateForm,
|
|
2913
|
-
|
|
2960
|
+
Fr as validators
|
|
2914
2961
|
};
|