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