acemyjob-ui 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/acemyjob-ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as j from "react";
|
|
2
|
-
import I, { useState as V, useCallback as M, createContext as Te, useEffect as U, useContext as Ee, useRef as
|
|
3
|
-
import { ChevronDownIcon as ae, InformationCircleIcon as
|
|
2
|
+
import I, { useState as V, useCallback as M, createContext as Te, useEffect as U, useContext as Ee, useRef as G } from "react";
|
|
3
|
+
import { ChevronDownIcon as ae, InformationCircleIcon as ve, ExclamationCircleIcon as pe, XCircleIcon as je, CheckCircleIcon as ye, XMarkIcon as Re, Bars3Icon as Ae } from "@heroicons/react/24/outline";
|
|
4
4
|
import { useSortable as Se } from "@dnd-kit/sortable";
|
|
5
5
|
import { CSS as Be } from "@dnd-kit/utilities";
|
|
6
|
-
import { Dialog as Me, DialogBackdrop as _e, DialogPanel as
|
|
7
|
-
const
|
|
6
|
+
import { Dialog as Me, DialogBackdrop as _e, DialogPanel as Oe, TransitionChild as De } from "@headlessui/react";
|
|
7
|
+
const Br = {
|
|
8
8
|
required: (r = "This field is required") => ({
|
|
9
9
|
validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
|
|
10
10
|
message: r
|
|
@@ -76,79 +76,79 @@ function ee(r, s) {
|
|
|
76
76
|
function Pe(r) {
|
|
77
77
|
return Object.values(r).some((s) => s !== null);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Mr(r) {
|
|
80
80
|
for (const s of Object.values(r))
|
|
81
81
|
if (s !== null)
|
|
82
82
|
return s;
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function _r(r, s) {
|
|
86
86
|
return {
|
|
87
87
|
...r,
|
|
88
88
|
[s]: null
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Or(r) {
|
|
92
92
|
const s = {};
|
|
93
93
|
for (const a of Object.keys(r))
|
|
94
94
|
s[a] = null;
|
|
95
95
|
return s;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Dr({
|
|
98
98
|
initialValues: r,
|
|
99
99
|
validationRules: s = {},
|
|
100
100
|
onSubmit: a
|
|
101
101
|
}) {
|
|
102
102
|
const [t, l] = V(r), [n, c] = V({}), [o, u] = V({}), [d, m] = V(!1), h = JSON.stringify(t) !== JSON.stringify(r), x = M(
|
|
103
103
|
(p) => {
|
|
104
|
-
const { name:
|
|
104
|
+
const { name: v, value: w, type: S } = p.target;
|
|
105
105
|
let L = w;
|
|
106
106
|
if (S === "checkbox" ? L = p.target.checked : S === "number" && (L = w ? Number(w) : ""), l((P) => ({
|
|
107
107
|
...P,
|
|
108
|
-
[
|
|
109
|
-
})), s[
|
|
110
|
-
const P = ee({ [
|
|
108
|
+
[v]: L
|
|
109
|
+
})), s[v]) {
|
|
110
|
+
const P = ee({ [v]: L }, { [v]: s[v] });
|
|
111
111
|
c((W) => ({
|
|
112
112
|
...W,
|
|
113
|
-
[
|
|
113
|
+
[v]: P[v]
|
|
114
114
|
}));
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
[s]
|
|
118
|
-
),
|
|
118
|
+
), f = M(
|
|
119
119
|
(p) => {
|
|
120
|
-
const { name:
|
|
120
|
+
const { name: v } = p.target;
|
|
121
121
|
u((w) => ({
|
|
122
122
|
...w,
|
|
123
|
-
[
|
|
123
|
+
[v]: !0
|
|
124
124
|
}));
|
|
125
125
|
},
|
|
126
126
|
[]
|
|
127
|
-
),
|
|
127
|
+
), b = M((p, v) => {
|
|
128
128
|
if (l((w) => ({
|
|
129
129
|
...w,
|
|
130
|
-
[p]:
|
|
130
|
+
[p]: v
|
|
131
131
|
})), s[p]) {
|
|
132
|
-
const w = ee({ [p]:
|
|
132
|
+
const w = ee({ [p]: v }, { [p]: s[p] });
|
|
133
133
|
c((S) => ({
|
|
134
134
|
...S,
|
|
135
135
|
[p]: w[p]
|
|
136
136
|
}));
|
|
137
137
|
}
|
|
138
|
-
}, [s]), C = M((p,
|
|
138
|
+
}, [s]), C = M((p, v) => {
|
|
139
139
|
c((w) => ({
|
|
140
140
|
...w,
|
|
141
|
-
[p]:
|
|
141
|
+
[p]: v
|
|
142
142
|
}));
|
|
143
143
|
}, []), T = M(
|
|
144
144
|
async (p) => {
|
|
145
145
|
p.preventDefault();
|
|
146
|
-
const
|
|
147
|
-
c(
|
|
146
|
+
const v = ee(t, s);
|
|
147
|
+
c(v);
|
|
148
148
|
const w = {};
|
|
149
149
|
for (const S of Object.keys(t))
|
|
150
150
|
w[S] = !0;
|
|
151
|
-
if (u(w), !Pe(
|
|
151
|
+
if (u(w), !Pe(v) && a) {
|
|
152
152
|
m(!0);
|
|
153
153
|
try {
|
|
154
154
|
await a(t);
|
|
@@ -167,13 +167,13 @@ function Mr({
|
|
|
167
167
|
name: p,
|
|
168
168
|
value: t[p] || "",
|
|
169
169
|
onChange: x,
|
|
170
|
-
onBlur:
|
|
170
|
+
onBlur: f
|
|
171
171
|
}),
|
|
172
|
-
[t, x,
|
|
172
|
+
[t, x, f]
|
|
173
173
|
), N = M(
|
|
174
174
|
(p) => n[p] || null,
|
|
175
175
|
[n]
|
|
176
|
-
),
|
|
176
|
+
), O = M(
|
|
177
177
|
(p) => o[p] || !1,
|
|
178
178
|
[o]
|
|
179
179
|
), z = M(
|
|
@@ -187,18 +187,18 @@ function Mr({
|
|
|
187
187
|
isSubmitting: d,
|
|
188
188
|
isDirty: h,
|
|
189
189
|
handleChange: x,
|
|
190
|
-
handleBlur:
|
|
191
|
-
setFieldValue:
|
|
190
|
+
handleBlur: f,
|
|
191
|
+
setFieldValue: b,
|
|
192
192
|
setFieldError: C,
|
|
193
193
|
handleSubmit: T,
|
|
194
194
|
resetForm: E,
|
|
195
195
|
getFieldProps: A,
|
|
196
196
|
getFieldError: N,
|
|
197
|
-
isFieldTouched:
|
|
197
|
+
isFieldTouched: O,
|
|
198
198
|
isFieldDirty: z
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var Z = { exports: {} }, Y = {};
|
|
202
202
|
/**
|
|
203
203
|
* @license React
|
|
204
204
|
* react-jsx-runtime.production.js
|
|
@@ -266,21 +266,21 @@ function Le() {
|
|
|
266
266
|
switch (typeof i.tag == "number" && console.error(
|
|
267
267
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
268
268
|
), i.$$typeof) {
|
|
269
|
-
case
|
|
269
|
+
case b:
|
|
270
270
|
return "Portal";
|
|
271
271
|
case N:
|
|
272
272
|
return (i.displayName || "Context") + ".Provider";
|
|
273
273
|
case A:
|
|
274
274
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
275
|
-
case
|
|
276
|
-
var
|
|
277
|
-
return i = i.displayName, i || (i =
|
|
278
|
-
case
|
|
279
|
-
return
|
|
275
|
+
case O:
|
|
276
|
+
var g = i.render;
|
|
277
|
+
return i = i.displayName, i || (i = g.displayName || g.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
278
|
+
case v:
|
|
279
|
+
return g = i.displayName || null, g !== null ? g : r(i.type) || "Memo";
|
|
280
280
|
case w:
|
|
281
|
-
|
|
281
|
+
g = i._payload, i = i._init;
|
|
282
282
|
try {
|
|
283
|
-
return r(i(
|
|
283
|
+
return r(i(g));
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -292,15 +292,15 @@ function Le() {
|
|
|
292
292
|
function a(i) {
|
|
293
293
|
try {
|
|
294
294
|
s(i);
|
|
295
|
-
var
|
|
295
|
+
var g = !1;
|
|
296
296
|
} catch {
|
|
297
|
-
|
|
297
|
+
g = !0;
|
|
298
298
|
}
|
|
299
|
-
if (
|
|
300
|
-
|
|
301
|
-
var y =
|
|
299
|
+
if (g) {
|
|
300
|
+
g = console;
|
|
301
|
+
var y = g.error, k = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
302
302
|
return y.call(
|
|
303
|
-
|
|
303
|
+
g,
|
|
304
304
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
305
305
|
k
|
|
306
306
|
), s(i);
|
|
@@ -311,8 +311,8 @@ function Le() {
|
|
|
311
311
|
if (typeof i == "object" && i !== null && i.$$typeof === w)
|
|
312
312
|
return "<...>";
|
|
313
313
|
try {
|
|
314
|
-
var
|
|
315
|
-
return
|
|
314
|
+
var g = r(i);
|
|
315
|
+
return g ? "<" + g + ">" : "<...>";
|
|
316
316
|
} catch {
|
|
317
317
|
return "<...>";
|
|
318
318
|
}
|
|
@@ -326,16 +326,16 @@ function Le() {
|
|
|
326
326
|
}
|
|
327
327
|
function c(i) {
|
|
328
328
|
if (W.call(i, "key")) {
|
|
329
|
-
var
|
|
330
|
-
if (
|
|
329
|
+
var g = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
330
|
+
if (g && g.isReactWarning) return !1;
|
|
331
331
|
}
|
|
332
332
|
return i.key !== void 0;
|
|
333
333
|
}
|
|
334
|
-
function o(i,
|
|
334
|
+
function o(i, g) {
|
|
335
335
|
function y() {
|
|
336
336
|
te || (te = !0, console.error(
|
|
337
337
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
338
|
-
|
|
338
|
+
g
|
|
339
339
|
));
|
|
340
340
|
}
|
|
341
341
|
y.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
@@ -349,13 +349,13 @@ function Le() {
|
|
|
349
349
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
350
350
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
351
351
|
}
|
|
352
|
-
function d(i,
|
|
352
|
+
function d(i, g, y, k, D, B, X, K) {
|
|
353
353
|
return y = B.ref, i = {
|
|
354
|
-
$$typeof:
|
|
354
|
+
$$typeof: f,
|
|
355
355
|
type: i,
|
|
356
|
-
key:
|
|
356
|
+
key: g,
|
|
357
357
|
props: B,
|
|
358
|
-
_owner:
|
|
358
|
+
_owner: D
|
|
359
359
|
}, (y !== void 0 ? y : null) !== null ? Object.defineProperty(i, "ref", {
|
|
360
360
|
enumerable: !1,
|
|
361
361
|
get: u
|
|
@@ -381,8 +381,8 @@ function Le() {
|
|
|
381
381
|
value: K
|
|
382
382
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
383
383
|
}
|
|
384
|
-
function m(i,
|
|
385
|
-
var $ =
|
|
384
|
+
function m(i, g, y, k, D, B, X, K) {
|
|
385
|
+
var $ = g.children;
|
|
386
386
|
if ($ !== void 0)
|
|
387
387
|
if (k)
|
|
388
388
|
if ($e($)) {
|
|
@@ -394,9 +394,9 @@ function Le() {
|
|
|
394
394
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
395
395
|
);
|
|
396
396
|
else h($);
|
|
397
|
-
if (W.call(
|
|
397
|
+
if (W.call(g, "key")) {
|
|
398
398
|
$ = r(i);
|
|
399
|
-
var F = Object.keys(
|
|
399
|
+
var F = Object.keys(g).filter(function(Ve) {
|
|
400
400
|
return Ve !== "key";
|
|
401
401
|
});
|
|
402
402
|
k = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", ce[$ + k] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -412,11 +412,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
412
412
|
$
|
|
413
413
|
), ce[$ + k] = !0);
|
|
414
414
|
}
|
|
415
|
-
if ($ = null, y !== void 0 && (a(y), $ = "" + y), c(
|
|
415
|
+
if ($ = null, y !== void 0 && (a(y), $ = "" + y), c(g) && (a(g.key), $ = "" + g.key), "key" in g) {
|
|
416
416
|
y = {};
|
|
417
|
-
for (var Q in
|
|
418
|
-
Q !== "key" && (y[Q] =
|
|
419
|
-
} else y =
|
|
417
|
+
for (var Q in g)
|
|
418
|
+
Q !== "key" && (y[Q] = g[Q]);
|
|
419
|
+
} else y = g;
|
|
420
420
|
return $ && o(
|
|
421
421
|
y,
|
|
422
422
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
@@ -424,7 +424,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
424
424
|
i,
|
|
425
425
|
$,
|
|
426
426
|
B,
|
|
427
|
-
|
|
427
|
+
D,
|
|
428
428
|
l(),
|
|
429
429
|
y,
|
|
430
430
|
X,
|
|
@@ -432,9 +432,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
432
432
|
);
|
|
433
433
|
}
|
|
434
434
|
function h(i) {
|
|
435
|
-
typeof i == "object" && i !== null && i.$$typeof ===
|
|
435
|
+
typeof i == "object" && i !== null && i.$$typeof === f && i._store && (i._store.validated = 1);
|
|
436
436
|
}
|
|
437
|
-
var x = I,
|
|
437
|
+
var x = I, f = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), N = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), S = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), P = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, $e = Array.isArray, J = console.createTask ? console.createTask : function() {
|
|
438
438
|
return null;
|
|
439
439
|
};
|
|
440
440
|
x = {
|
|
@@ -446,27 +446,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
446
446
|
x,
|
|
447
447
|
n
|
|
448
448
|
)(), oe = J(t(n)), ce = {};
|
|
449
|
-
H.Fragment = C, H.jsx = function(i,
|
|
449
|
+
H.Fragment = C, H.jsx = function(i, g, y, k, D) {
|
|
450
450
|
var B = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
451
451
|
return m(
|
|
452
452
|
i,
|
|
453
|
-
|
|
453
|
+
g,
|
|
454
454
|
y,
|
|
455
455
|
!1,
|
|
456
456
|
k,
|
|
457
|
-
|
|
457
|
+
D,
|
|
458
458
|
B ? Error("react-stack-top-frame") : le,
|
|
459
459
|
B ? J(t(i)) : oe
|
|
460
460
|
);
|
|
461
|
-
}, H.jsxs = function(i,
|
|
461
|
+
}, H.jsxs = function(i, g, y, k, D) {
|
|
462
462
|
var B = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
463
463
|
return m(
|
|
464
464
|
i,
|
|
465
|
-
|
|
465
|
+
g,
|
|
466
466
|
y,
|
|
467
467
|
!0,
|
|
468
468
|
k,
|
|
469
|
-
|
|
469
|
+
D,
|
|
470
470
|
B ? Error("react-stack-top-frame") : le,
|
|
471
471
|
B ? J(t(i)) : oe
|
|
472
472
|
);
|
|
@@ -475,7 +475,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
475
475
|
}
|
|
476
476
|
var ue;
|
|
477
477
|
function Fe() {
|
|
478
|
-
return ue || (ue = 1, process.env.NODE_ENV === "production" ?
|
|
478
|
+
return ue || (ue = 1, process.env.NODE_ENV === "production" ? Z.exports = ze() : Z.exports = Le()), Z.exports;
|
|
479
479
|
}
|
|
480
480
|
var e = Fe();
|
|
481
481
|
const we = (r) => r.replace("--color-", "bg-"), Ue = ({ name: r, cssVar: s, value: a }) => {
|
|
@@ -747,8 +747,8 @@ const we = (r) => r.replace("--color-", "bg-"), Ue = ({ name: r, cssVar: s, valu
|
|
|
747
747
|
t === "system" ? x = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : x = t, c(x), m.classList.remove("light", "dark"), m.classList.add(x);
|
|
748
748
|
};
|
|
749
749
|
if (h(), t === "system") {
|
|
750
|
-
const x = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
751
|
-
return x.addEventListener("change",
|
|
750
|
+
const x = window.matchMedia("(prefers-color-scheme: dark)"), f = () => h();
|
|
751
|
+
return x.addEventListener("change", f), () => x.removeEventListener("change", f);
|
|
752
752
|
}
|
|
753
753
|
}, [t, o]);
|
|
754
754
|
const d = {
|
|
@@ -764,7 +764,7 @@ const we = (r) => r.replace("--color-", "bg-"), Ue = ({ name: r, cssVar: s, valu
|
|
|
764
764
|
if (r === void 0)
|
|
765
765
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
766
766
|
return r;
|
|
767
|
-
},
|
|
767
|
+
}, Ze = () => {
|
|
768
768
|
const { theme: r, setTheme: s } = We(), [a, t] = V(!1);
|
|
769
769
|
if (U(() => {
|
|
770
770
|
t(!0);
|
|
@@ -813,11 +813,11 @@ const we = (r) => r.replace("--color-", "bg-"), Ue = ({ name: r, cssVar: s, valu
|
|
|
813
813
|
]
|
|
814
814
|
}
|
|
815
815
|
);
|
|
816
|
-
},
|
|
817
|
-
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(
|
|
816
|
+
}, qe = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
817
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Ze, {}) }),
|
|
818
818
|
/* @__PURE__ */ e.jsx(Ye, {})
|
|
819
|
-
] }),
|
|
820
|
-
function
|
|
819
|
+
] }), Ir = () => /* @__PURE__ */ e.jsx(He, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(qe, {}) });
|
|
820
|
+
function Pr({
|
|
821
821
|
label: r,
|
|
822
822
|
children: s,
|
|
823
823
|
helperText: a,
|
|
@@ -835,7 +835,7 @@ function Dr({
|
|
|
835
835
|
a && !t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: a })
|
|
836
836
|
] });
|
|
837
837
|
}
|
|
838
|
-
const
|
|
838
|
+
const Ge = I.forwardRef(
|
|
839
839
|
({
|
|
840
840
|
className: r = "",
|
|
841
841
|
leftIcon: s,
|
|
@@ -845,14 +845,14 @@ const Ze = I.forwardRef(
|
|
|
845
845
|
disabled: n,
|
|
846
846
|
...c
|
|
847
847
|
}, o) => {
|
|
848
|
-
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", d = t ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", m = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", h = l ? "w-full" : "", x = s || a ? "relative flex items-center" : "",
|
|
848
|
+
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", d = t ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", m = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", h = l ? "w-full" : "", x = s || a ? "relative flex items-center" : "", f = `${u} ${d} ${m} ${h} ${s ? "pl-10" : ""} ${a ? "pr-10" : ""} ${r}`;
|
|
849
849
|
return /* @__PURE__ */ e.jsxs("div", { className: x, children: [
|
|
850
850
|
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
851
851
|
/* @__PURE__ */ e.jsx(
|
|
852
852
|
"input",
|
|
853
853
|
{
|
|
854
854
|
ref: o,
|
|
855
|
-
className:
|
|
855
|
+
className: f,
|
|
856
856
|
disabled: n,
|
|
857
857
|
...c
|
|
858
858
|
}
|
|
@@ -861,7 +861,7 @@ const Ze = I.forwardRef(
|
|
|
861
861
|
] });
|
|
862
862
|
}
|
|
863
863
|
);
|
|
864
|
-
|
|
864
|
+
Ge.displayName = "Input";
|
|
865
865
|
const Je = I.forwardRef(
|
|
866
866
|
({
|
|
867
867
|
options: r,
|
|
@@ -883,7 +883,7 @@ const Je = I.forwardRef(
|
|
|
883
883
|
...c,
|
|
884
884
|
children: [
|
|
885
885
|
s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
|
|
886
|
-
r.map((
|
|
886
|
+
r.map((f) => /* @__PURE__ */ e.jsx("option", { value: f.value, children: f.label }, f.value))
|
|
887
887
|
]
|
|
888
888
|
}
|
|
889
889
|
),
|
|
@@ -1012,27 +1012,27 @@ const rr = I.forwardRef(
|
|
|
1012
1012
|
className: m = "",
|
|
1013
1013
|
...h
|
|
1014
1014
|
}, x) => {
|
|
1015
|
-
const [
|
|
1016
|
-
|
|
1017
|
-
}, T = (
|
|
1018
|
-
if (o && r.length >= o || u && r.includes(
|
|
1015
|
+
const [f, b] = V(""), C = (v) => {
|
|
1016
|
+
v.key === "Enter" && f.trim() ? (v.preventDefault(), T(f.trim())) : v.key === "Backspace" && !f && r.length > 0 && E(r[r.length - 1]);
|
|
1017
|
+
}, T = (v) => {
|
|
1018
|
+
if (o && r.length >= o || u && r.includes(v))
|
|
1019
1019
|
return;
|
|
1020
|
-
const w = [...r,
|
|
1021
|
-
s(w), a?.(
|
|
1022
|
-
}, E = (
|
|
1023
|
-
const w = r.filter((S) => S !==
|
|
1024
|
-
s(w), t?.(
|
|
1020
|
+
const w = [...r, v];
|
|
1021
|
+
s(w), a?.(v), b("");
|
|
1022
|
+
}, E = (v) => {
|
|
1023
|
+
const w = r.filter((S) => S !== v);
|
|
1024
|
+
s(w), t?.(v);
|
|
1025
1025
|
}, p = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${n ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${d ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${c ? "w-full" : ""} ${m}`;
|
|
1026
1026
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1027
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((
|
|
1027
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((v) => /* @__PURE__ */ e.jsx(
|
|
1028
1028
|
er,
|
|
1029
1029
|
{
|
|
1030
1030
|
removable: !0,
|
|
1031
|
-
onRemove: () => E(
|
|
1031
|
+
onRemove: () => E(v),
|
|
1032
1032
|
variant: "default",
|
|
1033
|
-
children:
|
|
1033
|
+
children: v
|
|
1034
1034
|
},
|
|
1035
|
-
|
|
1035
|
+
v
|
|
1036
1036
|
)) }),
|
|
1037
1037
|
/* @__PURE__ */ e.jsx(
|
|
1038
1038
|
"input",
|
|
@@ -1041,8 +1041,8 @@ const rr = I.forwardRef(
|
|
|
1041
1041
|
type: "text",
|
|
1042
1042
|
className: p,
|
|
1043
1043
|
placeholder: l,
|
|
1044
|
-
value:
|
|
1045
|
-
onChange: (
|
|
1044
|
+
value: f,
|
|
1045
|
+
onChange: (v) => b(v.target.value),
|
|
1046
1046
|
onKeyDown: C,
|
|
1047
1047
|
disabled: d || (o ? r.length >= o : !1),
|
|
1048
1048
|
...h
|
|
@@ -1165,9 +1165,9 @@ const ge = {
|
|
|
1165
1165
|
}, d) => {
|
|
1166
1166
|
const h = t || {
|
|
1167
1167
|
linkedin: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e.jsx("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) })
|
|
1168
|
-
}[s],
|
|
1168
|
+
}[s], f = n || (l ? {
|
|
1169
1169
|
linkedin: "Continue with LinkedIn"
|
|
1170
|
-
}[s] : ""),
|
|
1170
|
+
}[s] : ""), b = tr(
|
|
1171
1171
|
"relative overflow-hidden transition-all duration-200",
|
|
1172
1172
|
ge.provider[s],
|
|
1173
1173
|
ge.iconPosition[a],
|
|
@@ -1178,7 +1178,7 @@ const ge = {
|
|
|
1178
1178
|
{
|
|
1179
1179
|
ref: d,
|
|
1180
1180
|
variant: "none",
|
|
1181
|
-
className:
|
|
1181
|
+
className: b,
|
|
1182
1182
|
size: c,
|
|
1183
1183
|
fullWidth: o,
|
|
1184
1184
|
leftIcon: a === "left" ? h : void 0,
|
|
@@ -1186,14 +1186,14 @@ const ge = {
|
|
|
1186
1186
|
...u,
|
|
1187
1187
|
children: [
|
|
1188
1188
|
a === "only" && h,
|
|
1189
|
-
a !== "only" &&
|
|
1189
|
+
a !== "only" && f
|
|
1190
1190
|
]
|
|
1191
1191
|
}
|
|
1192
1192
|
);
|
|
1193
1193
|
}
|
|
1194
1194
|
);
|
|
1195
1195
|
nr.displayName = "SocialButton";
|
|
1196
|
-
function
|
|
1196
|
+
function q({
|
|
1197
1197
|
variant: r,
|
|
1198
1198
|
title: s,
|
|
1199
1199
|
message: a,
|
|
@@ -1224,7 +1224,7 @@ function G({
|
|
|
1224
1224
|
bg: "bg-info-50",
|
|
1225
1225
|
border: "border-info-200",
|
|
1226
1226
|
text: "text-info-700",
|
|
1227
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1227
|
+
icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
|
|
1228
1228
|
}
|
|
1229
1229
|
}[r];
|
|
1230
1230
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1251,7 +1251,7 @@ function G({
|
|
|
1251
1251
|
}
|
|
1252
1252
|
);
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function zr({
|
|
1255
1255
|
onFileChange: r,
|
|
1256
1256
|
onAnalyze: s,
|
|
1257
1257
|
uploadedFile: a,
|
|
@@ -1265,22 +1265,22 @@ function Or({
|
|
|
1265
1265
|
description: m = "PDF, DOCX up to 5MB",
|
|
1266
1266
|
analyzeButtonLabel: h = "Analyze",
|
|
1267
1267
|
disabled: x = !1,
|
|
1268
|
-
showAnalyzeButton:
|
|
1268
|
+
showAnalyzeButton: f = !0
|
|
1269
1269
|
}) {
|
|
1270
|
-
const
|
|
1270
|
+
const b = G(null), [C, T] = V(!1);
|
|
1271
1271
|
U(() => {
|
|
1272
|
-
!a &&
|
|
1272
|
+
!a && b.current && (b.current.value = "");
|
|
1273
1273
|
}, [a]);
|
|
1274
1274
|
const E = (N) => {
|
|
1275
1275
|
N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ? T(!0) : N.type === "dragleave" && T(!1);
|
|
1276
1276
|
}, A = (N) => {
|
|
1277
1277
|
if (N.preventDefault(), N.stopPropagation(), T(!1), N.dataTransfer.files && N.dataTransfer.files[0]) {
|
|
1278
|
-
const
|
|
1278
|
+
const O = {
|
|
1279
1279
|
target: {
|
|
1280
1280
|
files: N.dataTransfer.files
|
|
1281
1281
|
}
|
|
1282
1282
|
};
|
|
1283
|
-
r(
|
|
1283
|
+
r(O);
|
|
1284
1284
|
}
|
|
1285
1285
|
};
|
|
1286
1286
|
return /* @__PURE__ */ e.jsxs("div", { className: "mt-6 pt-6 border-t border-border", children: [
|
|
@@ -1289,7 +1289,7 @@ function Or({
|
|
|
1289
1289
|
/* @__PURE__ */ e.jsx(
|
|
1290
1290
|
"input",
|
|
1291
1291
|
{
|
|
1292
|
-
ref:
|
|
1292
|
+
ref: b,
|
|
1293
1293
|
type: "file",
|
|
1294
1294
|
accept: u,
|
|
1295
1295
|
onChange: r,
|
|
@@ -1323,7 +1323,7 @@ function Or({
|
|
|
1323
1323
|
)
|
|
1324
1324
|
}
|
|
1325
1325
|
),
|
|
1326
|
-
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1326
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(q, { variant: "success", message: "File uploaded successfully" }) }),
|
|
1327
1327
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-2 break-words", children: a.name }),
|
|
1328
1328
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted mt-1", children: [
|
|
1329
1329
|
(a.size / (1024 * 1024)).toFixed(2),
|
|
@@ -1370,10 +1370,10 @@ function Or({
|
|
|
1370
1370
|
}
|
|
1371
1371
|
)
|
|
1372
1372
|
] }),
|
|
1373
|
-
t && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1374
|
-
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1375
|
-
o && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1376
|
-
|
|
1373
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(q, { variant: "error", message: t }) }),
|
|
1374
|
+
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(q, { variant: "error", message: c }) }),
|
|
1375
|
+
o && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(q, { variant: "success", message: o }) }),
|
|
1376
|
+
f && /* @__PURE__ */ e.jsx(
|
|
1377
1377
|
_,
|
|
1378
1378
|
{
|
|
1379
1379
|
variant: "default",
|
|
@@ -1425,7 +1425,7 @@ const lr = I.forwardRef(
|
|
|
1425
1425
|
}
|
|
1426
1426
|
);
|
|
1427
1427
|
lr.displayName = "Textarea";
|
|
1428
|
-
function
|
|
1428
|
+
function Lr({
|
|
1429
1429
|
options: r,
|
|
1430
1430
|
selectedValues: s,
|
|
1431
1431
|
onSelectionChange: a,
|
|
@@ -1435,7 +1435,7 @@ function Ir({
|
|
|
1435
1435
|
error: c = !1
|
|
1436
1436
|
}) {
|
|
1437
1437
|
const o = (h) => {
|
|
1438
|
-
const x = s.includes(h) ? s.filter((
|
|
1438
|
+
const x = s.includes(h) ? s.filter((f) => f !== h) : [...s, h];
|
|
1439
1439
|
a(x);
|
|
1440
1440
|
}, u = {
|
|
1441
1441
|
vertical: "space-y-3",
|
|
@@ -1443,11 +1443,11 @@ function Ir({
|
|
|
1443
1443
|
grid: `grid grid-cols-${l} gap-3`
|
|
1444
1444
|
}, d = t === "grid" ? "grid gap-3" : u[t], m = t === "grid" ? `md:grid-cols-${l}` : "";
|
|
1445
1445
|
return /* @__PURE__ */ e.jsx("div", { className: `${d} ${m}`, children: r.map((h) => {
|
|
1446
|
-
const x = s.includes(h.value),
|
|
1446
|
+
const x = s.includes(h.value), b = x ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1447
1447
|
return /* @__PURE__ */ e.jsxs(
|
|
1448
1448
|
"label",
|
|
1449
1449
|
{
|
|
1450
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1450
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${b} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1451
1451
|
children: [
|
|
1452
1452
|
/* @__PURE__ */ e.jsx(
|
|
1453
1453
|
"input",
|
|
@@ -1471,7 +1471,7 @@ function Ir({
|
|
|
1471
1471
|
);
|
|
1472
1472
|
}) });
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Fr({
|
|
1475
1475
|
options: r,
|
|
1476
1476
|
selectedValue: s,
|
|
1477
1477
|
onSelectionChange: a,
|
|
@@ -1487,11 +1487,11 @@ function Pr({
|
|
|
1487
1487
|
grid: "grid gap-3"
|
|
1488
1488
|
}[t];
|
|
1489
1489
|
return /* @__PURE__ */ e.jsx("div", { className: d, children: r.map((m) => {
|
|
1490
|
-
const h = s === m.value,
|
|
1490
|
+
const h = s === m.value, f = h ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1491
1491
|
return /* @__PURE__ */ e.jsxs(
|
|
1492
1492
|
"label",
|
|
1493
1493
|
{
|
|
1494
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1494
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${f} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1495
1495
|
children: [
|
|
1496
1496
|
/* @__PURE__ */ e.jsx(
|
|
1497
1497
|
"input",
|
|
@@ -1517,7 +1517,7 @@ function Pr({
|
|
|
1517
1517
|
);
|
|
1518
1518
|
}) });
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Ur({ stats: r, columns: s = 4, className: a = "" }) {
|
|
1521
1521
|
const t = {
|
|
1522
1522
|
2: "grid-cols-2",
|
|
1523
1523
|
3: "grid-cols-3",
|
|
@@ -1537,7 +1537,7 @@ function zr({ stats: r, columns: s = 4, className: a = "" }) {
|
|
|
1537
1537
|
] }, c);
|
|
1538
1538
|
}) });
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function Yr({
|
|
1541
1541
|
items: r,
|
|
1542
1542
|
allowMultiple: s = !1,
|
|
1543
1543
|
defaultOpenId: a,
|
|
@@ -1581,7 +1581,7 @@ function Lr({
|
|
|
1581
1581
|
);
|
|
1582
1582
|
}) });
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Hr({
|
|
1585
1585
|
icon: r,
|
|
1586
1586
|
title: s,
|
|
1587
1587
|
subtitle: a,
|
|
@@ -1593,9 +1593,9 @@ function Fr({
|
|
|
1593
1593
|
onClick: u,
|
|
1594
1594
|
className: d = ""
|
|
1595
1595
|
}) {
|
|
1596
|
-
const m = (
|
|
1597
|
-
const C =
|
|
1598
|
-
C.tagName === "BUTTON" || C.closest("button") || u?.(
|
|
1596
|
+
const m = (b) => {
|
|
1597
|
+
const C = b.target;
|
|
1598
|
+
C.tagName === "BUTTON" || C.closest("button") || u?.(b);
|
|
1599
1599
|
}, x = (() => {
|
|
1600
1600
|
if (n)
|
|
1601
1601
|
switch (c) {
|
|
@@ -1609,12 +1609,12 @@ function Fr({
|
|
|
1609
1609
|
return "border-2 border-reseda-green-700 bg-success-50";
|
|
1610
1610
|
}
|
|
1611
1611
|
return "border border-border hover:border-border-subtle hover:bg-surface-variant";
|
|
1612
|
-
})(),
|
|
1612
|
+
})(), f = l ? "ring-2 ring-reseda-green-700" : "";
|
|
1613
1613
|
return /* @__PURE__ */ e.jsx(
|
|
1614
1614
|
"div",
|
|
1615
1615
|
{
|
|
1616
1616
|
onClick: m,
|
|
1617
|
-
className: `rounded-lg p-4 cursor-pointer transition ${x} ${
|
|
1617
|
+
className: `rounded-lg p-4 cursor-pointer transition ${x} ${f} ${d}`,
|
|
1618
1618
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between", children: [
|
|
1619
1619
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex items-start gap-3", children: [
|
|
1620
1620
|
r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
|
|
@@ -1624,18 +1624,18 @@ function Fr({
|
|
|
1624
1624
|
t && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: t })
|
|
1625
1625
|
] })
|
|
1626
1626
|
] }),
|
|
1627
|
-
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: o.map((
|
|
1627
|
+
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: o.map((b, C) => /* @__PURE__ */ e.jsx(
|
|
1628
1628
|
_,
|
|
1629
1629
|
{
|
|
1630
|
-
variant:
|
|
1631
|
-
size:
|
|
1632
|
-
onClick:
|
|
1633
|
-
disabled:
|
|
1634
|
-
loading:
|
|
1635
|
-
title:
|
|
1636
|
-
className:
|
|
1637
|
-
leftIcon:
|
|
1638
|
-
children:
|
|
1630
|
+
variant: b.variant || "ghost",
|
|
1631
|
+
size: b.size || "sm",
|
|
1632
|
+
onClick: b.onClick,
|
|
1633
|
+
disabled: b.disabled,
|
|
1634
|
+
loading: b.loading,
|
|
1635
|
+
title: b.label,
|
|
1636
|
+
className: b.className,
|
|
1637
|
+
leftIcon: b.icon && b.size !== "icon" ? b.icon : void 0,
|
|
1638
|
+
children: b.size === "icon" ? b.icon : b.label
|
|
1639
1639
|
},
|
|
1640
1640
|
C
|
|
1641
1641
|
)) })
|
|
@@ -1643,7 +1643,7 @@ function Fr({
|
|
|
1643
1643
|
}
|
|
1644
1644
|
);
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function Wr({
|
|
1647
1647
|
children: r,
|
|
1648
1648
|
variant: s = "default",
|
|
1649
1649
|
isActive: a = !1,
|
|
@@ -1670,7 +1670,7 @@ function Ur({
|
|
|
1670
1670
|
}
|
|
1671
1671
|
);
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function Zr({
|
|
1674
1674
|
title: r,
|
|
1675
1675
|
children: s,
|
|
1676
1676
|
subtitle: a,
|
|
@@ -1690,7 +1690,7 @@ function Yr({
|
|
|
1690
1690
|
s
|
|
1691
1691
|
] });
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function qr({
|
|
1694
1694
|
title: r,
|
|
1695
1695
|
subtitle: s,
|
|
1696
1696
|
metadata: a,
|
|
@@ -1711,7 +1711,7 @@ function Hr({
|
|
|
1711
1711
|
] }, c))
|
|
1712
1712
|
] });
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function Gr({
|
|
1715
1715
|
title: r,
|
|
1716
1716
|
description: s,
|
|
1717
1717
|
centered: a = !1,
|
|
@@ -1727,7 +1727,7 @@ function Wr({
|
|
|
1727
1727
|
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${c}`, children: s })
|
|
1728
1728
|
] });
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function Jr({
|
|
1731
1731
|
icon: r,
|
|
1732
1732
|
title: s,
|
|
1733
1733
|
description: a,
|
|
@@ -1771,9 +1771,9 @@ const or = I.forwardRef(
|
|
|
1771
1771
|
fullWidth: m = !0,
|
|
1772
1772
|
disabled: h,
|
|
1773
1773
|
className: x = "",
|
|
1774
|
-
...
|
|
1775
|
-
},
|
|
1776
|
-
const N = `w-full h-2 rounded-lg appearance-none cursor-pointer ${d ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${h ? "opacity-50 cursor-not-allowed" : ""} ${m ? "w-full" : ""} ${x}`,
|
|
1774
|
+
...f
|
|
1775
|
+
}, b) => {
|
|
1776
|
+
const N = `w-full h-2 rounded-lg appearance-none cursor-pointer ${d ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${h ? "opacity-50 cursor-not-allowed" : ""} ${m ? "w-full" : ""} ${x}`, O = (r - a) / (t - a) * 100;
|
|
1777
1777
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1778
1778
|
c && (o || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1779
1779
|
o && /* @__PURE__ */ e.jsx("span", { children: o }),
|
|
@@ -1783,7 +1783,7 @@ const or = I.forwardRef(
|
|
|
1783
1783
|
/* @__PURE__ */ e.jsx(
|
|
1784
1784
|
"input",
|
|
1785
1785
|
{
|
|
1786
|
-
ref:
|
|
1786
|
+
ref: b,
|
|
1787
1787
|
type: "range",
|
|
1788
1788
|
min: a,
|
|
1789
1789
|
max: t,
|
|
@@ -1792,7 +1792,7 @@ const or = I.forwardRef(
|
|
|
1792
1792
|
onChange: (z) => s(Number(z.target.value)),
|
|
1793
1793
|
disabled: h,
|
|
1794
1794
|
className: N,
|
|
1795
|
-
...
|
|
1795
|
+
...f
|
|
1796
1796
|
}
|
|
1797
1797
|
),
|
|
1798
1798
|
n && /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: r })
|
|
@@ -1801,7 +1801,7 @@ const or = I.forwardRef(
|
|
|
1801
1801
|
"div",
|
|
1802
1802
|
{
|
|
1803
1803
|
className: "h-full bg-reseda-green-500 transition-all",
|
|
1804
|
-
style: { width: `${
|
|
1804
|
+
style: { width: `${O}%` }
|
|
1805
1805
|
}
|
|
1806
1806
|
) })
|
|
1807
1807
|
] });
|
|
@@ -1809,6 +1809,150 @@ const or = I.forwardRef(
|
|
|
1809
1809
|
);
|
|
1810
1810
|
or.displayName = "Slider";
|
|
1811
1811
|
function cr({
|
|
1812
|
+
title: r,
|
|
1813
|
+
titleId: s,
|
|
1814
|
+
...a
|
|
1815
|
+
}, t) {
|
|
1816
|
+
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1817
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1818
|
+
viewBox: "0 0 24 24",
|
|
1819
|
+
fill: "currentColor",
|
|
1820
|
+
"aria-hidden": "true",
|
|
1821
|
+
"data-slot": "icon",
|
|
1822
|
+
ref: t,
|
|
1823
|
+
"aria-labelledby": s
|
|
1824
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1825
|
+
id: s
|
|
1826
|
+
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1827
|
+
fillRule: "evenodd",
|
|
1828
|
+
d: "M7.5 5.25a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v.205c.933.085 1.857.197 2.774.334 1.454.218 2.476 1.483 2.476 2.917v3.033c0 1.211-.734 2.352-1.936 2.752A24.726 24.726 0 0 1 12 15.75c-2.73 0-5.357-.442-7.814-1.259-1.202-.4-1.936-1.541-1.936-2.752V8.706c0-1.434 1.022-2.7 2.476-2.917A48.814 48.814 0 0 1 7.5 5.455V5.25Zm7.5 0v.09a49.488 49.488 0 0 0-6 0v-.09a1.5 1.5 0 0 1 1.5-1.5h3a1.5 1.5 0 0 1 1.5 1.5Zm-3 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
|
|
1829
|
+
clipRule: "evenodd"
|
|
1830
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
1831
|
+
d: "M3 18.4v-2.796a4.3 4.3 0 0 0 .713.31A26.226 26.226 0 0 0 12 17.25c2.892 0 5.68-.468 8.287-1.335.252-.084.49-.189.713-.311V18.4c0 1.452-1.047 2.728-2.523 2.923-2.12.282-4.282.427-6.477.427a49.19 49.19 0 0 1-6.477-.427C4.047 21.128 3 19.852 3 18.4Z"
|
|
1832
|
+
}));
|
|
1833
|
+
}
|
|
1834
|
+
const ir = /* @__PURE__ */ j.forwardRef(cr);
|
|
1835
|
+
function dr({
|
|
1836
|
+
title: r,
|
|
1837
|
+
titleId: s,
|
|
1838
|
+
...a
|
|
1839
|
+
}, t) {
|
|
1840
|
+
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1841
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1842
|
+
viewBox: "0 0 24 24",
|
|
1843
|
+
fill: "currentColor",
|
|
1844
|
+
"aria-hidden": "true",
|
|
1845
|
+
"data-slot": "icon",
|
|
1846
|
+
ref: t,
|
|
1847
|
+
"aria-labelledby": s
|
|
1848
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1849
|
+
id: s
|
|
1850
|
+
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1851
|
+
fillRule: "evenodd",
|
|
1852
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",
|
|
1853
|
+
clipRule: "evenodd"
|
|
1854
|
+
}));
|
|
1855
|
+
}
|
|
1856
|
+
const ur = /* @__PURE__ */ j.forwardRef(dr);
|
|
1857
|
+
function mr({
|
|
1858
|
+
title: r,
|
|
1859
|
+
titleId: s,
|
|
1860
|
+
...a
|
|
1861
|
+
}, t) {
|
|
1862
|
+
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1863
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1864
|
+
viewBox: "0 0 24 24",
|
|
1865
|
+
fill: "currentColor",
|
|
1866
|
+
"aria-hidden": "true",
|
|
1867
|
+
"data-slot": "icon",
|
|
1868
|
+
ref: t,
|
|
1869
|
+
"aria-labelledby": s
|
|
1870
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1871
|
+
id: s
|
|
1872
|
+
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1873
|
+
d: "M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625Z"
|
|
1874
|
+
}), /* @__PURE__ */ j.createElement("path", {
|
|
1875
|
+
d: "M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"
|
|
1876
|
+
}));
|
|
1877
|
+
}
|
|
1878
|
+
const xr = /* @__PURE__ */ j.forwardRef(mr);
|
|
1879
|
+
function hr({
|
|
1880
|
+
title: r,
|
|
1881
|
+
titleId: s,
|
|
1882
|
+
...a
|
|
1883
|
+
}, t) {
|
|
1884
|
+
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
1885
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1886
|
+
viewBox: "0 0 24 24",
|
|
1887
|
+
fill: "currentColor",
|
|
1888
|
+
"aria-hidden": "true",
|
|
1889
|
+
"data-slot": "icon",
|
|
1890
|
+
ref: t,
|
|
1891
|
+
"aria-labelledby": s
|
|
1892
|
+
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
1893
|
+
id: s
|
|
1894
|
+
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
1895
|
+
d: "M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"
|
|
1896
|
+
}));
|
|
1897
|
+
}
|
|
1898
|
+
const fr = /* @__PURE__ */ j.forwardRef(hr), gr = {
|
|
1899
|
+
neutral: {
|
|
1900
|
+
selectedContainer: "border-gray-300 bg-gray-50",
|
|
1901
|
+
selectedIndicator: "text-gray-500",
|
|
1902
|
+
inputAccent: "accent-gray-600"
|
|
1903
|
+
},
|
|
1904
|
+
purple: {
|
|
1905
|
+
selectedContainer: "border-purple-300 bg-purple-50",
|
|
1906
|
+
selectedIndicator: "text-purple-600",
|
|
1907
|
+
inputAccent: "accent-purple-600"
|
|
1908
|
+
},
|
|
1909
|
+
blue: {
|
|
1910
|
+
selectedContainer: "border-blue-300 bg-blue-50",
|
|
1911
|
+
selectedIndicator: "text-blue-600",
|
|
1912
|
+
inputAccent: "accent-blue-600"
|
|
1913
|
+
}
|
|
1914
|
+
};
|
|
1915
|
+
function Xr({
|
|
1916
|
+
id: r,
|
|
1917
|
+
name: s,
|
|
1918
|
+
checked: a,
|
|
1919
|
+
onChange: t,
|
|
1920
|
+
primaryText: l,
|
|
1921
|
+
secondaryText: n,
|
|
1922
|
+
tertiaryText: c,
|
|
1923
|
+
tone: o = "neutral",
|
|
1924
|
+
showCheckedIndicator: u = !1,
|
|
1925
|
+
disabled: d = !1,
|
|
1926
|
+
className: m = ""
|
|
1927
|
+
}) {
|
|
1928
|
+
const h = gr[o], x = a ? h.selectedContainer : "border-gray-200", f = d ? "cursor-not-allowed opacity-60" : "cursor-pointer hover:bg-gray-50";
|
|
1929
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1930
|
+
"label",
|
|
1931
|
+
{
|
|
1932
|
+
className: `flex items-start gap-2 rounded-md border p-2 transition ${x} ${f} ${m}`,
|
|
1933
|
+
children: [
|
|
1934
|
+
/* @__PURE__ */ e.jsx(
|
|
1935
|
+
"input",
|
|
1936
|
+
{
|
|
1937
|
+
type: "radio",
|
|
1938
|
+
name: s,
|
|
1939
|
+
className: `mt-0.5 ${h.inputAccent}`,
|
|
1940
|
+
checked: a,
|
|
1941
|
+
disabled: d,
|
|
1942
|
+
onChange: () => t(r)
|
|
1943
|
+
}
|
|
1944
|
+
),
|
|
1945
|
+
/* @__PURE__ */ e.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
1946
|
+
/* @__PURE__ */ e.jsx("span", { className: "block text-sm text-gray-800 break-words", children: l }),
|
|
1947
|
+
n ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-500", children: n }) : null,
|
|
1948
|
+
c ? /* @__PURE__ */ e.jsx("span", { className: "block text-xs text-gray-400", children: c }) : null
|
|
1949
|
+
] }),
|
|
1950
|
+
u && a ? /* @__PURE__ */ e.jsx(ur, { className: `h-4 w-4 mt-0.5 shrink-0 ${h.selectedIndicator}` }) : null
|
|
1951
|
+
]
|
|
1952
|
+
}
|
|
1953
|
+
);
|
|
1954
|
+
}
|
|
1955
|
+
function br({
|
|
1812
1956
|
id: r,
|
|
1813
1957
|
index: s,
|
|
1814
1958
|
previewText: a,
|
|
@@ -1818,9 +1962,9 @@ function cr({
|
|
|
1818
1962
|
onRemove: c,
|
|
1819
1963
|
className: o = ""
|
|
1820
1964
|
}) {
|
|
1821
|
-
const [u, d] = V(t), { attributes: m, listeners: h, setNodeRef: x, transform:
|
|
1822
|
-
transform: Be.Transform.toString(
|
|
1823
|
-
transition:
|
|
1965
|
+
const [u, d] = V(t), { attributes: m, listeners: h, setNodeRef: x, transform: f, transition: b, isDragging: C } = Se({ id: r }), T = {
|
|
1966
|
+
transform: Be.Transform.toString(f),
|
|
1967
|
+
transition: b,
|
|
1824
1968
|
opacity: C ? 0.5 : 1
|
|
1825
1969
|
};
|
|
1826
1970
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1936,8 +2080,8 @@ function cr({
|
|
|
1936
2080
|
}
|
|
1937
2081
|
);
|
|
1938
2082
|
}
|
|
1939
|
-
|
|
1940
|
-
const
|
|
2083
|
+
br.displayName = "SortableItem";
|
|
2084
|
+
const vr = {
|
|
1941
2085
|
bg: "bg-indigo-600",
|
|
1942
2086
|
activeBg: "bg-indigo-700",
|
|
1943
2087
|
text: "text-indigo-200",
|
|
@@ -1948,7 +2092,7 @@ const ir = {
|
|
|
1948
2092
|
function R(...r) {
|
|
1949
2093
|
return r.filter(Boolean).join(" ");
|
|
1950
2094
|
}
|
|
1951
|
-
function
|
|
2095
|
+
function be({ item: r, colorScheme: s }) {
|
|
1952
2096
|
const [a, t] = V(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
|
|
1953
2097
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1954
2098
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
@@ -2015,7 +2159,7 @@ function ve({ item: r, colorScheme: s }) {
|
|
|
2015
2159
|
) }, n.name)) })
|
|
2016
2160
|
] });
|
|
2017
2161
|
}
|
|
2018
|
-
function
|
|
2162
|
+
function Kr({ company: r, profile: s, navigation: a, colorScheme: t = vr }) {
|
|
2019
2163
|
const [l, n] = V(!1);
|
|
2020
2164
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
2021
2165
|
/* @__PURE__ */ e.jsxs(Me, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
@@ -2027,12 +2171,12 @@ function Gr({ company: r, profile: s, navigation: a, colorScheme: t = ir }) {
|
|
|
2027
2171
|
}
|
|
2028
2172
|
),
|
|
2029
2173
|
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
2030
|
-
|
|
2174
|
+
Oe,
|
|
2031
2175
|
{
|
|
2032
2176
|
transition: !0,
|
|
2033
2177
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
2034
2178
|
children: [
|
|
2035
|
-
/* @__PURE__ */ e.jsx(
|
|
2179
|
+
/* @__PURE__ */ e.jsx(De, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute top-0 left-full flex w-16 justify-center pt-5 duration-300 ease-in-out data-closed:opacity-0", children: /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!1), className: "-m-2.5 p-2.5", children: [
|
|
2036
2180
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
2037
2181
|
/* @__PURE__ */ e.jsx(Re, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
2038
2182
|
] }) }) }),
|
|
@@ -2045,7 +2189,7 @@ function Gr({ company: r, profile: s, navigation: a, colorScheme: t = ir }) {
|
|
|
2045
2189
|
className: "h-8 w-auto"
|
|
2046
2190
|
}
|
|
2047
2191
|
) }),
|
|
2048
|
-
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: a.map((c) => /* @__PURE__ */ e.jsx(
|
|
2192
|
+
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: a.map((c) => /* @__PURE__ */ e.jsx(be, { item: c, colorScheme: t }, c.name)) }) }) }) })
|
|
2049
2193
|
] })
|
|
2050
2194
|
]
|
|
2051
2195
|
}
|
|
@@ -2061,7 +2205,7 @@ function Gr({ company: r, profile: s, navigation: a, colorScheme: t = ir }) {
|
|
|
2061
2205
|
}
|
|
2062
2206
|
) }),
|
|
2063
2207
|
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsxs("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: [
|
|
2064
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: a.map((c) => /* @__PURE__ */ e.jsx(
|
|
2208
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: a.map((c) => /* @__PURE__ */ e.jsx(be, { item: c, colorScheme: t }, c.name)) }) }),
|
|
2065
2209
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
2066
2210
|
"a",
|
|
2067
2211
|
{
|
|
@@ -2107,7 +2251,7 @@ function Gr({ company: r, profile: s, navigation: a, colorScheme: t = ir }) {
|
|
|
2107
2251
|
] })
|
|
2108
2252
|
] }) });
|
|
2109
2253
|
}
|
|
2110
|
-
const
|
|
2254
|
+
const pr = {
|
|
2111
2255
|
activeBg: "bg-reseda-green-700",
|
|
2112
2256
|
activeText: "text-white",
|
|
2113
2257
|
completedBg: "bg-success-500",
|
|
@@ -2118,8 +2262,8 @@ const dr = {
|
|
|
2118
2262
|
labelInactiveText: "text-text-muted",
|
|
2119
2263
|
connectorBg: "bg-border"
|
|
2120
2264
|
};
|
|
2121
|
-
function
|
|
2122
|
-
const t = a ||
|
|
2265
|
+
function Qr({ currentStep: r, steps: s, colorConfig: a }) {
|
|
2266
|
+
const t = a || pr;
|
|
2123
2267
|
return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: s.map((l, n) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${n < s.length - 1 ? "flex-1" : ""}`, children: [
|
|
2124
2268
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
2125
2269
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2140,15 +2284,15 @@ function Zr({ currentStep: r, steps: s, colorConfig: a }) {
|
|
|
2140
2284
|
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${t.connectorBg}` })
|
|
2141
2285
|
] }, l.number)) }) });
|
|
2142
2286
|
}
|
|
2143
|
-
const
|
|
2287
|
+
const jr = {
|
|
2144
2288
|
activeText: "text-reseda-green-700",
|
|
2145
2289
|
activeBorder: "border-reseda-green-700",
|
|
2146
2290
|
inactiveText: "text-text-secondary",
|
|
2147
2291
|
inactiveHoverText: "hover:text-text-primary",
|
|
2148
2292
|
disabledText: "text-text-disabled"
|
|
2149
2293
|
};
|
|
2150
|
-
function
|
|
2151
|
-
const n = l ||
|
|
2294
|
+
function es({ tabs: r, activeTab: s, disabled: a = !1, onChange: t, colorConfig: l }) {
|
|
2295
|
+
const n = l || jr;
|
|
2152
2296
|
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
|
|
2153
2297
|
const o = s === c.id;
|
|
2154
2298
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -2164,7 +2308,7 @@ function Jr({ tabs: r, activeTab: s, disabled: a = !1, onChange: t, colorConfig:
|
|
|
2164
2308
|
);
|
|
2165
2309
|
}) });
|
|
2166
2310
|
}
|
|
2167
|
-
function
|
|
2311
|
+
function rs({
|
|
2168
2312
|
status: r,
|
|
2169
2313
|
title: s,
|
|
2170
2314
|
message: a,
|
|
@@ -2195,7 +2339,7 @@ function Xr({
|
|
|
2195
2339
|
bg: "bg-info-50",
|
|
2196
2340
|
border: "border-info-200",
|
|
2197
2341
|
text: "text-info-700",
|
|
2198
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2342
|
+
icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
|
|
2199
2343
|
},
|
|
2200
2344
|
loading: {
|
|
2201
2345
|
bg: "bg-blue-50",
|
|
@@ -2253,79 +2397,14 @@ const Ce = ({
|
|
|
2253
2397
|
] });
|
|
2254
2398
|
};
|
|
2255
2399
|
Ce.displayName = "ChatMessage";
|
|
2256
|
-
|
|
2257
|
-
title: r,
|
|
2258
|
-
titleId: s,
|
|
2259
|
-
...a
|
|
2260
|
-
}, t) {
|
|
2261
|
-
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
2262
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2263
|
-
viewBox: "0 0 24 24",
|
|
2264
|
-
fill: "currentColor",
|
|
2265
|
-
"aria-hidden": "true",
|
|
2266
|
-
"data-slot": "icon",
|
|
2267
|
-
ref: t,
|
|
2268
|
-
"aria-labelledby": s
|
|
2269
|
-
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
2270
|
-
id: s
|
|
2271
|
-
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
2272
|
-
fillRule: "evenodd",
|
|
2273
|
-
d: "M7.5 5.25a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v.205c.933.085 1.857.197 2.774.334 1.454.218 2.476 1.483 2.476 2.917v3.033c0 1.211-.734 2.352-1.936 2.752A24.726 24.726 0 0 1 12 15.75c-2.73 0-5.357-.442-7.814-1.259-1.202-.4-1.936-1.541-1.936-2.752V8.706c0-1.434 1.022-2.7 2.476-2.917A48.814 48.814 0 0 1 7.5 5.455V5.25Zm7.5 0v.09a49.488 49.488 0 0 0-6 0v-.09a1.5 1.5 0 0 1 1.5-1.5h3a1.5 1.5 0 0 1 1.5 1.5Zm-3 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
|
|
2274
|
-
clipRule: "evenodd"
|
|
2275
|
-
}), /* @__PURE__ */ j.createElement("path", {
|
|
2276
|
-
d: "M3 18.4v-2.796a4.3 4.3 0 0 0 .713.31A26.226 26.226 0 0 0 12 17.25c2.892 0 5.68-.468 8.287-1.335.252-.084.49-.189.713-.311V18.4c0 1.452-1.047 2.728-2.523 2.923-2.12.282-4.282.427-6.477.427a49.19 49.19 0 0 1-6.477-.427C4.047 21.128 3 19.852 3 18.4Z"
|
|
2277
|
-
}));
|
|
2278
|
-
}
|
|
2279
|
-
const xr = /* @__PURE__ */ j.forwardRef(mr);
|
|
2280
|
-
function hr({
|
|
2281
|
-
title: r,
|
|
2282
|
-
titleId: s,
|
|
2283
|
-
...a
|
|
2284
|
-
}, t) {
|
|
2285
|
-
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
2286
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2287
|
-
viewBox: "0 0 24 24",
|
|
2288
|
-
fill: "currentColor",
|
|
2289
|
-
"aria-hidden": "true",
|
|
2290
|
-
"data-slot": "icon",
|
|
2291
|
-
ref: t,
|
|
2292
|
-
"aria-labelledby": s
|
|
2293
|
-
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
2294
|
-
id: s
|
|
2295
|
-
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
2296
|
-
d: "M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625Z"
|
|
2297
|
-
}), /* @__PURE__ */ j.createElement("path", {
|
|
2298
|
-
d: "M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"
|
|
2299
|
-
}));
|
|
2300
|
-
}
|
|
2301
|
-
const fr = /* @__PURE__ */ j.forwardRef(hr);
|
|
2302
|
-
function gr({
|
|
2303
|
-
title: r,
|
|
2304
|
-
titleId: s,
|
|
2305
|
-
...a
|
|
2306
|
-
}, t) {
|
|
2307
|
-
return /* @__PURE__ */ j.createElement("svg", Object.assign({
|
|
2308
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2309
|
-
viewBox: "0 0 24 24",
|
|
2310
|
-
fill: "currentColor",
|
|
2311
|
-
"aria-hidden": "true",
|
|
2312
|
-
"data-slot": "icon",
|
|
2313
|
-
ref: t,
|
|
2314
|
-
"aria-labelledby": s
|
|
2315
|
-
}, a), r ? /* @__PURE__ */ j.createElement("title", {
|
|
2316
|
-
id: s
|
|
2317
|
-
}, r) : null, /* @__PURE__ */ j.createElement("path", {
|
|
2318
|
-
d: "M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"
|
|
2319
|
-
}));
|
|
2320
|
-
}
|
|
2321
|
-
const vr = /* @__PURE__ */ j.forwardRef(gr), br = ({
|
|
2400
|
+
const yr = ({
|
|
2322
2401
|
onSend: r,
|
|
2323
2402
|
disabled: s = !1,
|
|
2324
2403
|
placeholder: a = "Ask a question about your resume or the job...",
|
|
2325
2404
|
maxLength: t = 2e3,
|
|
2326
2405
|
className: l = ""
|
|
2327
2406
|
}) => {
|
|
2328
|
-
const [n, c] = V(""), o =
|
|
2407
|
+
const [n, c] = V(""), o = G(null);
|
|
2329
2408
|
U(() => {
|
|
2330
2409
|
o.current && (o.current.style.height = "auto", o.current.style.height = `${o.current.scrollHeight}px`);
|
|
2331
2410
|
}, [n]);
|
|
@@ -2358,7 +2437,7 @@ const vr = /* @__PURE__ */ j.forwardRef(gr), br = ({
|
|
|
2358
2437
|
disabled: s || !n.trim() || m,
|
|
2359
2438
|
className: "px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
2360
2439
|
"aria-label": "Send message",
|
|
2361
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2440
|
+
children: /* @__PURE__ */ e.jsx(fr, { className: "w-5 h-5" })
|
|
2362
2441
|
}
|
|
2363
2442
|
)
|
|
2364
2443
|
] }),
|
|
@@ -2372,7 +2451,7 @@ const vr = /* @__PURE__ */ j.forwardRef(gr), br = ({
|
|
|
2372
2451
|
] })
|
|
2373
2452
|
] });
|
|
2374
2453
|
};
|
|
2375
|
-
|
|
2454
|
+
yr.displayName = "ChatInput";
|
|
2376
2455
|
const ke = ({
|
|
2377
2456
|
message: r = "Thinking...",
|
|
2378
2457
|
variant: s = "dots",
|
|
@@ -2401,7 +2480,7 @@ const ke = ({
|
|
|
2401
2480
|
] }) })
|
|
2402
2481
|
] });
|
|
2403
2482
|
ke.displayName = "LoadingIndicator";
|
|
2404
|
-
const
|
|
2483
|
+
const wr = ({
|
|
2405
2484
|
messages: r,
|
|
2406
2485
|
isLoading: s = !1,
|
|
2407
2486
|
loadingMessage: a = "Thinking...",
|
|
@@ -2410,7 +2489,7 @@ const pr = ({
|
|
|
2410
2489
|
className: n = "",
|
|
2411
2490
|
emptyStateMessage: c = "Start a conversation"
|
|
2412
2491
|
}) => {
|
|
2413
|
-
const o =
|
|
2492
|
+
const o = G(null), u = G(null);
|
|
2414
2493
|
return U(() => {
|
|
2415
2494
|
o.current?.scrollIntoView({ behavior: "smooth" });
|
|
2416
2495
|
}, [r, s]), /* @__PURE__ */ e.jsxs(
|
|
@@ -2459,8 +2538,8 @@ const pr = ({
|
|
|
2459
2538
|
}
|
|
2460
2539
|
);
|
|
2461
2540
|
};
|
|
2462
|
-
|
|
2463
|
-
const
|
|
2541
|
+
wr.displayName = "ChatContainer";
|
|
2542
|
+
const Nr = ({
|
|
2464
2543
|
resumeName: r,
|
|
2465
2544
|
jobTitle: s,
|
|
2466
2545
|
companyName: a,
|
|
@@ -2471,7 +2550,7 @@ const jr = ({
|
|
|
2471
2550
|
}) => /* @__PURE__ */ e.jsx("div", { className: `border-b border-gray-200 bg-gray-50 p-4 ${c}`, children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
|
|
2472
2551
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2473
2552
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2474
|
-
/* @__PURE__ */ e.jsx(
|
|
2553
|
+
/* @__PURE__ */ e.jsx(xr, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2475
2554
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2476
2555
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Resume" }),
|
|
2477
2556
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm font-medium text-gray-900 truncate", children: r })
|
|
@@ -2489,7 +2568,7 @@ const jr = ({
|
|
|
2489
2568
|
] }),
|
|
2490
2569
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2491
2570
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
2492
|
-
/* @__PURE__ */ e.jsx(
|
|
2571
|
+
/* @__PURE__ */ e.jsx(ir, { className: "w-5 h-5 text-gray-600 flex-shrink-0" }),
|
|
2493
2572
|
/* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
|
|
2494
2573
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-gray-500 font-medium", children: "Job" }),
|
|
2495
2574
|
/* @__PURE__ */ e.jsxs("div", { className: "truncate", children: [
|
|
@@ -2525,7 +2604,7 @@ const jr = ({
|
|
|
2525
2604
|
) })
|
|
2526
2605
|
] })
|
|
2527
2606
|
] }) });
|
|
2528
|
-
|
|
2607
|
+
Nr.displayName = "AnalysisSummaryBar";
|
|
2529
2608
|
const re = {
|
|
2530
2609
|
semantic: {
|
|
2531
2610
|
none: "bg-error-50 border-error-200 text-error-700",
|
|
@@ -2542,7 +2621,7 @@ const re = {
|
|
|
2542
2621
|
partial: "bg-surface border-warning-300 text-warning-700",
|
|
2543
2622
|
full: "bg-surface border-success-300 text-success-700"
|
|
2544
2623
|
}
|
|
2545
|
-
},
|
|
2624
|
+
}, Cr = {
|
|
2546
2625
|
semantic: {
|
|
2547
2626
|
required: "bg-error-600 text-white",
|
|
2548
2627
|
preferred: "bg-reseda-green-600 text-white",
|
|
@@ -2558,12 +2637,12 @@ const re = {
|
|
|
2558
2637
|
preferred: "bg-reseda-green-700 text-reseda-green-100",
|
|
2559
2638
|
"nice-to-have": "bg-khaki-700 text-khaki-100"
|
|
2560
2639
|
}
|
|
2561
|
-
},
|
|
2640
|
+
}, kr = ({
|
|
2562
2641
|
skills: r,
|
|
2563
2642
|
className: s = "",
|
|
2564
2643
|
colorPreset: a = "semantic"
|
|
2565
2644
|
}) => {
|
|
2566
|
-
const t = (o) => !o.matched || o.match_level === "none" ? "✗" : o.match_level === "partial" ? "~" : "✓", l = (o) => !o.matched || o.match_level === "none" ? re[a].none : o.match_level === "partial" ? re[a].partial : re[a].full, n = (o) =>
|
|
2645
|
+
const t = (o) => !o.matched || o.match_level === "none" ? "✗" : o.match_level === "partial" ? "~" : "✓", l = (o) => !o.matched || o.match_level === "none" ? re[a].none : o.match_level === "partial" ? re[a].partial : re[a].full, n = (o) => Cr[a][o], c = (o, u) => !u || u.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "mb-4", children: [
|
|
2567
2646
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs font-semibold text-text-secondary mb-2", children: [
|
|
2568
2647
|
o,
|
|
2569
2648
|
":"
|
|
@@ -2599,8 +2678,8 @@ const re = {
|
|
|
2599
2678
|
c("Soft Skills", r.soft || [])
|
|
2600
2679
|
] });
|
|
2601
2680
|
};
|
|
2602
|
-
|
|
2603
|
-
const
|
|
2681
|
+
kr.displayName = "SkillTags";
|
|
2682
|
+
const $r = ({
|
|
2604
2683
|
score: r,
|
|
2605
2684
|
showLabel: s = !0,
|
|
2606
2685
|
size: a = "md",
|
|
@@ -2633,8 +2712,8 @@ const Nr = ({
|
|
|
2633
2712
|
s && /* @__PURE__ */ e.jsx("p", { className: `text-gray-600 mt-1 ${u[a]}`, children: c(l) })
|
|
2634
2713
|
] });
|
|
2635
2714
|
};
|
|
2636
|
-
|
|
2637
|
-
const
|
|
2715
|
+
$r.displayName = "MatchScoreBar";
|
|
2716
|
+
const Vr = ({
|
|
2638
2717
|
responsibilities: r,
|
|
2639
2718
|
className: s = ""
|
|
2640
2719
|
}) => {
|
|
@@ -2674,53 +2753,54 @@ const Cr = ({
|
|
|
2674
2753
|
] }, o)) })
|
|
2675
2754
|
] }, l)) });
|
|
2676
2755
|
};
|
|
2677
|
-
|
|
2756
|
+
Vr.displayName = "ResponsibilitiesList";
|
|
2678
2757
|
export {
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2758
|
+
Yr as Accordion,
|
|
2759
|
+
Hr as ActionCard,
|
|
2760
|
+
q as Alert,
|
|
2761
|
+
Nr as AnalysisSummaryBar,
|
|
2683
2762
|
er as Badge,
|
|
2684
2763
|
_ as Button,
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2764
|
+
Wr as Card,
|
|
2765
|
+
wr as ChatContainer,
|
|
2766
|
+
yr as ChatInput,
|
|
2688
2767
|
Ce as ChatMessage,
|
|
2689
|
-
|
|
2768
|
+
Lr as CheckboxGroup,
|
|
2690
2769
|
Ye as ColorPalette,
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2770
|
+
Ir as Demo,
|
|
2771
|
+
qr as DetailPanel,
|
|
2772
|
+
zr as FileUpload,
|
|
2773
|
+
Pr as FormField,
|
|
2774
|
+
Ge as Input,
|
|
2696
2775
|
ke as LoadingIndicator,
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2776
|
+
$r as MatchScoreBar,
|
|
2777
|
+
Jr as OptionCard,
|
|
2778
|
+
Gr as PageHeader,
|
|
2779
|
+
Fr as RadioGroup,
|
|
2780
|
+
Vr as ResponsibilitiesList,
|
|
2781
|
+
Zr as Section,
|
|
2703
2782
|
Je as Select,
|
|
2704
|
-
|
|
2705
|
-
|
|
2783
|
+
Xr as SelectableRadioOption,
|
|
2784
|
+
Kr as Sidebar,
|
|
2785
|
+
kr as SkillTags,
|
|
2706
2786
|
or as Slider,
|
|
2707
2787
|
nr as SocialButton,
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2788
|
+
br as SortableItem,
|
|
2789
|
+
Ur as StatsGrid,
|
|
2790
|
+
rs as StatusBanner,
|
|
2791
|
+
Qr as Stepper,
|
|
2792
|
+
es as TabBar,
|
|
2713
2793
|
rr as TagInput,
|
|
2714
2794
|
lr as Textarea,
|
|
2715
2795
|
He as ThemeProvider,
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2796
|
+
Ze as ThemeToggle,
|
|
2797
|
+
Or as clearAllErrors,
|
|
2798
|
+
_r as clearFieldError,
|
|
2799
|
+
Mr as getFirstError,
|
|
2720
2800
|
Pe as hasErrors,
|
|
2721
|
-
|
|
2801
|
+
Dr as useForm,
|
|
2722
2802
|
We as useTheme,
|
|
2723
2803
|
Ie as validateField,
|
|
2724
2804
|
ee as validateForm,
|
|
2725
|
-
|
|
2805
|
+
Br as validators
|
|
2726
2806
|
};
|