acemyjob-ui 0.14.0 → 0.16.0

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.
@@ -1,9 +1,9 @@
1
1
  import * as _ from "react";
2
- import L, { useState as T, useCallback as D, createContext as je, useEffect as J, useContext as we, useRef as ye } from "react";
3
- import { Dialog as Ne, DialogBackdrop as Ce, DialogPanel as ke, TransitionChild as Ve } from "@headlessui/react";
4
- import { XMarkIcon as Te, Bars3Icon as $e, ChevronDownIcon as re, InformationCircleIcon as Ee, ExclamationCircleIcon as Re, XCircleIcon as Ae, CheckCircleIcon as _e } from "@heroicons/react/24/outline";
2
+ import z, { useState as $, useCallback as O, createContext as Ce, useEffect as J, useContext as ke, useRef as Ve } from "react";
3
+ import { Dialog as $e, DialogBackdrop as Te, DialogPanel as Ee, TransitionChild as Re } from "@headlessui/react";
4
+ import { XMarkIcon as Ae, Bars3Icon as _e, ChevronDownIcon as re, InformationCircleIcon as ve, ExclamationCircleIcon as ge, XCircleIcon as be, CheckCircleIcon as pe } from "@heroicons/react/24/outline";
5
5
  import { useSortable as Be } from "@dnd-kit/sortable";
6
- import { CSS as De } from "@dnd-kit/utilities";
6
+ import { CSS as Oe } from "@dnd-kit/utilities";
7
7
  const fr = {
8
8
  required: (r = "This field is required") => ({
9
9
  validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
@@ -59,7 +59,7 @@ const fr = {
59
59
  message: s
60
60
  })
61
61
  };
62
- function Oe(r, s) {
62
+ function Se(r, s) {
63
63
  for (const t of s)
64
64
  if (!t.validate(r))
65
65
  return t.message;
@@ -67,22 +67,22 @@ function Oe(r, s) {
67
67
  }
68
68
  function Q(r, s) {
69
69
  const t = {};
70
- for (const [a, o] of Object.entries(s)) {
71
- const n = r[a], c = Oe(n, o);
72
- t[a] = c;
70
+ for (const [a, l] of Object.entries(s)) {
71
+ const n = r[a], i = Se(n, l);
72
+ t[a] = i;
73
73
  }
74
74
  return t;
75
75
  }
76
- function Se(r) {
76
+ function De(r) {
77
77
  return Object.values(r).some((s) => s !== null);
78
78
  }
79
- function vr(r) {
79
+ function hr(r) {
80
80
  for (const s of Object.values(r))
81
81
  if (s !== null)
82
82
  return s;
83
83
  return null;
84
84
  }
85
- function hr(r, s) {
85
+ function vr(r, s) {
86
86
  return {
87
87
  ...r,
88
88
  [s]: null
@@ -99,56 +99,56 @@ function br({
99
99
  validationRules: s = {},
100
100
  onSubmit: t
101
101
  }) {
102
- const [a, o] = T(r), [n, c] = T({}), [i, u] = T({}), [x, d] = T(!1), m = JSON.stringify(a) !== JSON.stringify(r), f = D(
103
- (b) => {
104
- const { name: h, value: j, type: A } = b.target;
105
- let z = j;
106
- if (A === "checkbox" ? z = b.target.checked : A === "number" && (z = j ? Number(j) : ""), o((M) => ({
102
+ const [a, l] = $(r), [n, i] = $({}), [c, u] = $({}), [x, d] = $(!1), m = JSON.stringify(a) !== JSON.stringify(r), f = O(
103
+ (p) => {
104
+ const { name: b, value: w, type: A } = p.target;
105
+ let L = w;
106
+ if (A === "checkbox" ? L = p.target.checked : A === "number" && (L = w ? Number(w) : ""), l((M) => ({
107
107
  ...M,
108
- [h]: z
109
- })), s[h]) {
110
- const M = Q({ [h]: z }, { [h]: s[h] });
111
- c((W) => ({
108
+ [b]: L
109
+ })), s[b]) {
110
+ const M = Q({ [b]: L }, { [b]: s[b] });
111
+ i((W) => ({
112
112
  ...W,
113
- [h]: M[h]
113
+ [b]: M[b]
114
114
  }));
115
115
  }
116
116
  },
117
117
  [s]
118
- ), g = D(
119
- (b) => {
120
- const { name: h } = b.target;
121
- u((j) => ({
122
- ...j,
123
- [h]: !0
118
+ ), v = O(
119
+ (p) => {
120
+ const { name: b } = p.target;
121
+ u((w) => ({
122
+ ...w,
123
+ [b]: !0
124
124
  }));
125
125
  },
126
126
  []
127
- ), y = D((b, h) => {
128
- if (o((j) => ({
129
- ...j,
130
- [b]: h
131
- })), s[b]) {
132
- const j = Q({ [b]: h }, { [b]: s[b] });
133
- c((A) => ({
127
+ ), g = O((p, b) => {
128
+ if (l((w) => ({
129
+ ...w,
130
+ [p]: b
131
+ })), s[p]) {
132
+ const w = Q({ [p]: b }, { [p]: s[p] });
133
+ i((A) => ({
134
134
  ...A,
135
- [b]: j[b]
135
+ [p]: w[p]
136
136
  }));
137
137
  }
138
- }, [s]), k = D((b, h) => {
139
- c((j) => ({
140
- ...j,
141
- [b]: h
138
+ }, [s]), y = O((p, b) => {
139
+ i((w) => ({
140
+ ...w,
141
+ [p]: b
142
142
  }));
143
- }, []), V = D(
144
- async (b) => {
145
- b.preventDefault();
146
- const h = Q(a, s);
147
- c(h);
148
- const j = {};
143
+ }, []), V = O(
144
+ async (p) => {
145
+ p.preventDefault();
146
+ const b = Q(a, s);
147
+ i(b);
148
+ const w = {};
149
149
  for (const A of Object.keys(a))
150
- j[A] = !0;
151
- if (u(j), !Se(h) && t) {
150
+ w[A] = !0;
151
+ if (u(w), !De(b) && t) {
152
152
  d(!0);
153
153
  try {
154
154
  await t(a);
@@ -160,45 +160,45 @@ function br({
160
160
  }
161
161
  },
162
162
  [a, s, t]
163
- ), $ = D(() => {
164
- o(r), c({}), u({}), d(!1);
165
- }, [r]), R = D(
166
- (b) => ({
167
- name: b,
168
- value: a[b] || "",
163
+ ), T = O(() => {
164
+ l(r), i({}), u({}), d(!1);
165
+ }, [r]), R = O(
166
+ (p) => ({
167
+ name: p,
168
+ value: a[p] || "",
169
169
  onChange: f,
170
- onBlur: g
170
+ onBlur: v
171
171
  }),
172
- [a, f, g]
173
- ), w = D(
174
- (b) => n[b] || null,
172
+ [a, f, v]
173
+ ), N = O(
174
+ (p) => n[p] || null,
175
175
  [n]
176
- ), S = D(
177
- (b) => i[b] || !1,
178
- [i]
179
- ), I = D(
180
- (b) => a[b] !== r[b],
176
+ ), D = O(
177
+ (p) => c[p] || !1,
178
+ [c]
179
+ ), I = O(
180
+ (p) => a[p] !== r[p],
181
181
  [a, r]
182
182
  );
183
183
  return {
184
184
  values: a,
185
185
  errors: n,
186
- touched: i,
186
+ touched: c,
187
187
  isSubmitting: x,
188
188
  isDirty: m,
189
189
  handleChange: f,
190
- handleBlur: g,
191
- setFieldValue: y,
192
- setFieldError: k,
190
+ handleBlur: v,
191
+ setFieldValue: g,
192
+ setFieldError: y,
193
193
  handleSubmit: V,
194
- resetForm: $,
194
+ resetForm: T,
195
195
  getFieldProps: R,
196
- getFieldError: w,
197
- isFieldTouched: S,
196
+ getFieldError: N,
197
+ isFieldTouched: D,
198
198
  isFieldDirty: I
199
199
  };
200
200
  }
201
- var H = { exports: {} }, Y = {};
201
+ var H = { exports: {} }, U = {};
202
202
  /**
203
203
  * @license React
204
204
  * react-jsx-runtime.production.js
@@ -210,27 +210,27 @@ var H = { exports: {} }, Y = {};
210
210
  */
211
211
  var oe;
212
212
  function Pe() {
213
- if (oe) return Y;
213
+ if (oe) return U;
214
214
  oe = 1;
215
215
  var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
216
- function t(a, o, n) {
217
- var c = null;
218
- if (n !== void 0 && (c = "" + n), o.key !== void 0 && (c = "" + o.key), "key" in o) {
216
+ function t(a, l, n) {
217
+ var i = null;
218
+ if (n !== void 0 && (i = "" + n), l.key !== void 0 && (i = "" + l.key), "key" in l) {
219
219
  n = {};
220
- for (var i in o)
221
- i !== "key" && (n[i] = o[i]);
222
- } else n = o;
223
- return o = n.ref, {
220
+ for (var c in l)
221
+ c !== "key" && (n[c] = l[c]);
222
+ } else n = l;
223
+ return l = n.ref, {
224
224
  $$typeof: r,
225
225
  type: a,
226
- key: c,
227
- ref: o !== void 0 ? o : null,
226
+ key: i,
227
+ ref: l !== void 0 ? l : null,
228
228
  props: n
229
229
  };
230
230
  }
231
- return Y.Fragment = s, Y.jsx = t, Y.jsxs = t, Y;
231
+ return U.Fragment = s, U.jsx = t, U.jsxs = t, U;
232
232
  }
233
- var U = {};
233
+ var Y = {};
234
234
  /**
235
235
  * @license React
236
236
  * react-jsx-runtime.development.js
@@ -241,241 +241,241 @@ var U = {};
241
241
  * LICENSE file in the root directory of this source tree.
242
242
  */
243
243
  var ce;
244
- function Le() {
244
+ function ze() {
245
245
  return ce || (ce = 1, process.env.NODE_ENV !== "production" && function() {
246
- function r(l) {
247
- if (l == null) return null;
248
- if (typeof l == "function")
249
- return l.$$typeof === z ? null : l.displayName || l.name || null;
250
- if (typeof l == "string") return l;
251
- switch (l) {
252
- case k:
246
+ function r(o) {
247
+ if (o == null) return null;
248
+ if (typeof o == "function")
249
+ return o.$$typeof === L ? null : o.displayName || o.name || null;
250
+ if (typeof o == "string") return o;
251
+ switch (o) {
252
+ case y:
253
253
  return "Fragment";
254
- case $:
254
+ case T:
255
255
  return "Profiler";
256
256
  case V:
257
257
  return "StrictMode";
258
258
  case I:
259
259
  return "Suspense";
260
- case b:
260
+ case p:
261
261
  return "SuspenseList";
262
262
  case A:
263
263
  return "Activity";
264
264
  }
265
- if (typeof l == "object")
266
- switch (typeof l.tag == "number" && console.error(
265
+ if (typeof o == "object")
266
+ switch (typeof o.tag == "number" && console.error(
267
267
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
268
- ), l.$$typeof) {
269
- case y:
268
+ ), o.$$typeof) {
269
+ case g:
270
270
  return "Portal";
271
- case w:
272
- return (l.displayName || "Context") + ".Provider";
271
+ case N:
272
+ return (o.displayName || "Context") + ".Provider";
273
273
  case R:
274
- return (l._context.displayName || "Context") + ".Consumer";
275
- case S:
276
- var v = l.render;
277
- return l = l.displayName, l || (l = v.displayName || v.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
278
- case h:
279
- return v = l.displayName || null, v !== null ? v : r(l.type) || "Memo";
280
- case j:
281
- v = l._payload, l = l._init;
274
+ return (o._context.displayName || "Context") + ".Consumer";
275
+ case D:
276
+ var h = o.render;
277
+ return o = o.displayName, o || (o = h.displayName || h.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
278
+ case b:
279
+ return h = o.displayName || null, h !== null ? h : r(o.type) || "Memo";
280
+ case w:
281
+ h = o._payload, o = o._init;
282
282
  try {
283
- return r(l(v));
283
+ return r(o(h));
284
284
  } catch {
285
285
  }
286
286
  }
287
287
  return null;
288
288
  }
289
- function s(l) {
290
- return "" + l;
289
+ function s(o) {
290
+ return "" + o;
291
291
  }
292
- function t(l) {
292
+ function t(o) {
293
293
  try {
294
- s(l);
295
- var v = !1;
294
+ s(o);
295
+ var h = !1;
296
296
  } catch {
297
- v = !0;
297
+ h = !0;
298
298
  }
299
- if (v) {
300
- v = console;
301
- var p = v.error, N = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
302
- return p.call(
303
- v,
299
+ if (h) {
300
+ h = console;
301
+ var j = h.error, C = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
302
+ return j.call(
303
+ h,
304
304
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
305
- N
306
- ), s(l);
305
+ C
306
+ ), s(o);
307
307
  }
308
308
  }
309
- function a(l) {
310
- if (l === k) return "<>";
311
- if (typeof l == "object" && l !== null && l.$$typeof === j)
309
+ function a(o) {
310
+ if (o === y) return "<>";
311
+ if (typeof o == "object" && o !== null && o.$$typeof === w)
312
312
  return "<...>";
313
313
  try {
314
- var v = r(l);
315
- return v ? "<" + v + ">" : "<...>";
314
+ var h = r(o);
315
+ return h ? "<" + h + ">" : "<...>";
316
316
  } catch {
317
317
  return "<...>";
318
318
  }
319
319
  }
320
- function o() {
321
- var l = M.A;
322
- return l === null ? null : l.getOwner();
320
+ function l() {
321
+ var o = M.A;
322
+ return o === null ? null : o.getOwner();
323
323
  }
324
324
  function n() {
325
325
  return Error("react-stack-top-frame");
326
326
  }
327
- function c(l) {
328
- if (W.call(l, "key")) {
329
- var v = Object.getOwnPropertyDescriptor(l, "key").get;
330
- if (v && v.isReactWarning) return !1;
327
+ function i(o) {
328
+ if (W.call(o, "key")) {
329
+ var h = Object.getOwnPropertyDescriptor(o, "key").get;
330
+ if (h && h.isReactWarning) return !1;
331
331
  }
332
- return l.key !== void 0;
332
+ return o.key !== void 0;
333
333
  }
334
- function i(l, v) {
335
- function p() {
334
+ function c(o, h) {
335
+ function j() {
336
336
  se || (se = !0, console.error(
337
337
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
338
- v
338
+ h
339
339
  ));
340
340
  }
341
- p.isReactWarning = !0, Object.defineProperty(l, "key", {
342
- get: p,
341
+ j.isReactWarning = !0, Object.defineProperty(o, "key", {
342
+ get: j,
343
343
  configurable: !0
344
344
  });
345
345
  }
346
346
  function u() {
347
- var l = r(this.type);
348
- return ae[l] || (ae[l] = !0, console.error(
347
+ var o = r(this.type);
348
+ return ae[o] || (ae[o] = !0, console.error(
349
349
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
350
- )), l = this.props.ref, l !== void 0 ? l : null;
350
+ )), o = this.props.ref, o !== void 0 ? o : null;
351
351
  }
352
- function x(l, v, p, N, P, B, q, Z) {
353
- return p = B.ref, l = {
354
- $$typeof: g,
355
- type: l,
356
- key: v,
352
+ function x(o, h, j, C, P, B, q, Z) {
353
+ return j = B.ref, o = {
354
+ $$typeof: v,
355
+ type: o,
356
+ key: h,
357
357
  props: B,
358
358
  _owner: P
359
- }, (p !== void 0 ? p : null) !== null ? Object.defineProperty(l, "ref", {
359
+ }, (j !== void 0 ? j : null) !== null ? Object.defineProperty(o, "ref", {
360
360
  enumerable: !1,
361
361
  get: u
362
- }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
362
+ }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
363
363
  configurable: !1,
364
364
  enumerable: !1,
365
365
  writable: !0,
366
366
  value: 0
367
- }), Object.defineProperty(l, "_debugInfo", {
367
+ }), Object.defineProperty(o, "_debugInfo", {
368
368
  configurable: !1,
369
369
  enumerable: !1,
370
370
  writable: !0,
371
371
  value: null
372
- }), Object.defineProperty(l, "_debugStack", {
372
+ }), Object.defineProperty(o, "_debugStack", {
373
373
  configurable: !1,
374
374
  enumerable: !1,
375
375
  writable: !0,
376
376
  value: q
377
- }), Object.defineProperty(l, "_debugTask", {
377
+ }), Object.defineProperty(o, "_debugTask", {
378
378
  configurable: !1,
379
379
  enumerable: !1,
380
380
  writable: !0,
381
381
  value: Z
382
- }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
382
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
383
383
  }
384
- function d(l, v, p, N, P, B, q, Z) {
385
- var C = v.children;
386
- if (C !== void 0)
387
- if (N)
388
- if (be(C)) {
389
- for (N = 0; N < C.length; N++)
390
- m(C[N]);
391
- Object.freeze && Object.freeze(C);
384
+ function d(o, h, j, C, P, B, q, Z) {
385
+ var k = h.children;
386
+ if (k !== void 0)
387
+ if (C)
388
+ if (Ne(k)) {
389
+ for (C = 0; C < k.length; C++)
390
+ m(k[C]);
391
+ Object.freeze && Object.freeze(k);
392
392
  } else
393
393
  console.error(
394
394
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
395
395
  );
396
- else m(C);
397
- if (W.call(v, "key")) {
398
- C = r(l);
399
- var F = Object.keys(v).filter(function(pe) {
400
- return pe !== "key";
396
+ else m(k);
397
+ if (W.call(h, "key")) {
398
+ k = r(o);
399
+ var F = Object.keys(h).filter(function(ye) {
400
+ return ye !== "key";
401
401
  });
402
- N = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", le[C + N] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
402
+ C = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", le[k + C] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
403
403
  `A props object containing a "key" prop is being spread into JSX:
404
404
  let props = %s;
405
405
  <%s {...props} />
406
406
  React keys must be passed directly to JSX without using spread:
407
407
  let props = %s;
408
408
  <%s key={someKey} {...props} />`,
409
- N,
410
409
  C,
410
+ k,
411
411
  F,
412
- C
413
- ), le[C + N] = !0);
412
+ k
413
+ ), le[k + C] = !0);
414
414
  }
415
- if (C = null, p !== void 0 && (t(p), C = "" + p), c(v) && (t(v.key), C = "" + v.key), "key" in v) {
416
- p = {};
417
- for (var K in v)
418
- K !== "key" && (p[K] = v[K]);
419
- } else p = v;
420
- return C && i(
421
- p,
422
- typeof l == "function" ? l.displayName || l.name || "Unknown" : l
415
+ if (k = null, j !== void 0 && (t(j), k = "" + j), i(h) && (t(h.key), k = "" + h.key), "key" in h) {
416
+ j = {};
417
+ for (var K in h)
418
+ K !== "key" && (j[K] = h[K]);
419
+ } else j = h;
420
+ return k && c(
421
+ j,
422
+ typeof o == "function" ? o.displayName || o.name || "Unknown" : o
423
423
  ), x(
424
- l,
425
- C,
424
+ o,
425
+ k,
426
426
  B,
427
427
  P,
428
- o(),
429
- p,
428
+ l(),
429
+ j,
430
430
  q,
431
431
  Z
432
432
  );
433
433
  }
434
- function m(l) {
435
- typeof l == "object" && l !== null && l.$$typeof === g && l._store && (l._store.validated = 1);
434
+ function m(o) {
435
+ typeof o == "object" && o !== null && o.$$typeof === v && o._store && (o._store.validated = 1);
436
436
  }
437
- var f = L, g = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), w = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), M = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, be = Array.isArray, X = console.createTask ? console.createTask : function() {
437
+ var f = z, v = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), N = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), M = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, Ne = Array.isArray, X = console.createTask ? console.createTask : function() {
438
438
  return null;
439
439
  };
440
440
  f = {
441
- "react-stack-bottom-frame": function(l) {
442
- return l();
441
+ "react-stack-bottom-frame": function(o) {
442
+ return o();
443
443
  }
444
444
  };
445
445
  var se, ae = {}, te = f["react-stack-bottom-frame"].bind(
446
446
  f,
447
447
  n
448
448
  )(), ne = X(a(n)), le = {};
449
- U.Fragment = k, U.jsx = function(l, v, p, N, P) {
449
+ Y.Fragment = y, Y.jsx = function(o, h, j, C, P) {
450
450
  var B = 1e4 > M.recentlyCreatedOwnerStacks++;
451
451
  return d(
452
- l,
453
- v,
454
- p,
452
+ o,
453
+ h,
454
+ j,
455
455
  !1,
456
- N,
456
+ C,
457
457
  P,
458
458
  B ? Error("react-stack-top-frame") : te,
459
- B ? X(a(l)) : ne
459
+ B ? X(a(o)) : ne
460
460
  );
461
- }, U.jsxs = function(l, v, p, N, P) {
461
+ }, Y.jsxs = function(o, h, j, C, P) {
462
462
  var B = 1e4 > M.recentlyCreatedOwnerStacks++;
463
463
  return d(
464
- l,
465
- v,
466
- p,
464
+ o,
465
+ h,
466
+ j,
467
467
  !0,
468
- N,
468
+ C,
469
469
  P,
470
470
  B ? Error("react-stack-top-frame") : te,
471
- B ? X(a(l)) : ne
471
+ B ? X(a(o)) : ne
472
472
  );
473
473
  };
474
- }()), U;
474
+ }()), Y;
475
475
  }
476
476
  var ie;
477
477
  function Me() {
478
- return ie || (ie = 1, process.env.NODE_ENV === "production" ? H.exports = Pe() : H.exports = Le()), H.exports;
478
+ return ie || (ie = 1, process.env.NODE_ENV === "production" ? H.exports = Pe() : H.exports = ze()), H.exports;
479
479
  }
480
480
  var e = Me();
481
481
  const Ie = {
@@ -490,19 +490,19 @@ function E(...r) {
490
490
  return r.filter(Boolean).join(" ");
491
491
  }
492
492
  function de({ item: r, colorScheme: s }) {
493
- const [t, a] = T(r.current || r.children?.some((n) => n.current)), o = r.children && r.children.length > 0;
493
+ const [t, a] = $(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
494
494
  return /* @__PURE__ */ e.jsxs("li", { children: [
495
495
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
496
496
  "a",
497
497
  {
498
- href: o ? void 0 : r.href,
498
+ href: l ? void 0 : r.href,
499
499
  onClick: (n) => {
500
- o && (n.preventDefault(), a(!t));
500
+ l && (n.preventDefault(), a(!t));
501
501
  },
502
502
  className: E(
503
503
  r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
504
504
  "group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
505
- o ? "cursor-pointer" : ""
505
+ l ? "cursor-pointer" : ""
506
506
  ),
507
507
  children: [
508
508
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-3", children: [
@@ -518,7 +518,7 @@ function de({ item: r, colorScheme: s }) {
518
518
  ),
519
519
  r.name
520
520
  ] }),
521
- o && /* @__PURE__ */ e.jsx(
521
+ l && /* @__PURE__ */ e.jsx(
522
522
  re,
523
523
  {
524
524
  className: E(
@@ -531,7 +531,7 @@ function de({ item: r, colorScheme: s }) {
531
531
  ]
532
532
  }
533
533
  ) }),
534
- o && t && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: r.children.map((n) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
534
+ l && t && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: r.children.map((n) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
535
535
  "a",
536
536
  {
537
537
  href: n.href,
@@ -557,25 +557,25 @@ function de({ item: r, colorScheme: s }) {
557
557
  ] });
558
558
  }
559
559
  function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
560
- const [o, n] = T(!1);
560
+ const [l, n] = $(!1);
561
561
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
562
- /* @__PURE__ */ e.jsxs(Ne, { open: o, onClose: n, className: "relative z-50 lg:hidden", children: [
562
+ /* @__PURE__ */ e.jsxs($e, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
563
563
  /* @__PURE__ */ e.jsx(
564
- Ce,
564
+ Te,
565
565
  {
566
566
  transition: !0,
567
567
  className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
568
568
  }
569
569
  ),
570
570
  /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
571
- ke,
571
+ Ee,
572
572
  {
573
573
  transition: !0,
574
574
  className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
575
575
  children: [
576
- /* @__PURE__ */ e.jsx(Ve, { 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: [
576
+ /* @__PURE__ */ e.jsx(Re, { 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: [
577
577
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
578
- /* @__PURE__ */ e.jsx(Te, { "aria-hidden": "true", className: "size-6 text-white" })
578
+ /* @__PURE__ */ e.jsx(Ae, { "aria-hidden": "true", className: "size-6 text-white" })
579
579
  ] }) }) }),
580
580
  /* @__PURE__ */ e.jsxs("div", { className: E("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
581
581
  /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
@@ -586,7 +586,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
586
586
  className: "h-8 w-auto"
587
587
  }
588
588
  ) }),
589
- /* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(de, { item: c, colorScheme: a }, c.name)) }) }) }) })
589
+ /* @__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((i) => /* @__PURE__ */ e.jsx(de, { item: i, colorScheme: a }, i.name)) }) }) }) })
590
590
  ] })
591
591
  ]
592
592
  }
@@ -602,7 +602,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
602
602
  }
603
603
  ) }),
604
604
  /* @__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: [
605
- /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(de, { item: c, colorScheme: a }, c.name)) }) }),
605
+ /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(de, { item: i, colorScheme: a }, i.name)) }) }),
606
606
  /* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
607
607
  "a",
608
608
  {
@@ -631,7 +631,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
631
631
  /* @__PURE__ */ e.jsxs("div", { className: E("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: [
632
632
  /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: E("-m-2.5 p-2.5 lg:hidden", a.text), children: [
633
633
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
634
- /* @__PURE__ */ e.jsx($e, { "aria-hidden": "true", className: "size-6" })
634
+ /* @__PURE__ */ e.jsx(_e, { "aria-hidden": "true", className: "size-6" })
635
635
  ] }),
636
636
  /* @__PURE__ */ e.jsx("div", { className: E("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
637
637
  /* @__PURE__ */ e.jsxs("a", { href: "#", children: [
@@ -648,13 +648,13 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
648
648
  ] })
649
649
  ] }) });
650
650
  }
651
- const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, value: t }) => {
651
+ const je = (r) => r.replace("--color-", "bg-"), Le = ({ name: r, cssVar: s, value: t }) => {
652
652
  const a = `rgb(${t})`;
653
653
  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: [
654
654
  /* @__PURE__ */ e.jsx(
655
655
  "div",
656
656
  {
657
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${he(s)}`
657
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${je(s)}`
658
658
  }
659
659
  ),
660
660
  /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
@@ -665,7 +665,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
665
665
  ] });
666
666
  }, ue = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
667
667
  /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: r }),
668
- /* @__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(ze, { ...t }, t.name)) })
668
+ /* @__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(Le, { ...t }, t.name)) })
669
669
  ] }), Fe = () => {
670
670
  const r = [
671
671
  {
@@ -890,7 +890,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
890
890
  /* @__PURE__ */ e.jsx(
891
891
  "div",
892
892
  {
893
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${he(a.cssVar)}`
893
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${je(a.cssVar)}`
894
894
  }
895
895
  ),
896
896
  /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
@@ -901,41 +901,41 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
901
901
  ] }),
902
902
  /* @__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" }) })
903
903
  ] });
904
- }, ge = je(void 0), Ye = ({
904
+ }, we = Ce(void 0), Ue = ({
905
905
  children: r,
906
906
  defaultTheme: s = "system",
907
907
  storageKey: t = "acemyjob-ui-theme"
908
908
  }) => {
909
- const [a, o] = T(s), [n, c] = T("light"), [i, u] = T(!1);
909
+ const [a, l] = $(s), [n, i] = $("light"), [c, u] = $(!1);
910
910
  J(() => {
911
911
  const d = localStorage.getItem(t);
912
- d && o(d), u(!0);
912
+ d && l(d), u(!0);
913
913
  }, [t]), J(() => {
914
- if (!i) return;
914
+ if (!c) return;
915
915
  const d = window.document.documentElement, m = () => {
916
916
  let f;
917
- a === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = a, c(f), d.classList.remove("light", "dark"), d.classList.add(f);
917
+ a === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = a, i(f), d.classList.remove("light", "dark"), d.classList.add(f);
918
918
  };
919
919
  if (m(), a === "system") {
920
- const f = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
921
- return f.addEventListener("change", g), () => f.removeEventListener("change", g);
920
+ const f = window.matchMedia("(prefers-color-scheme: dark)"), v = () => m();
921
+ return f.addEventListener("change", v), () => f.removeEventListener("change", v);
922
922
  }
923
- }, [a, i]);
923
+ }, [a, c]);
924
924
  const x = {
925
925
  theme: a,
926
926
  setTheme: (d) => {
927
- localStorage.setItem(t, d), o(d);
927
+ localStorage.setItem(t, d), l(d);
928
928
  },
929
929
  resolvedTheme: n
930
930
  };
931
- return /* @__PURE__ */ e.jsx(ge.Provider, { value: x, children: r });
932
- }, Ue = () => {
933
- const r = we(ge);
931
+ return /* @__PURE__ */ e.jsx(we.Provider, { value: x, children: r });
932
+ }, Ye = () => {
933
+ const r = ke(we);
934
934
  if (r === void 0)
935
935
  throw new Error("useTheme must be used within a ThemeProvider");
936
936
  return r;
937
937
  }, We = () => {
938
- const { theme: r, setTheme: s } = Ue(), [t, a] = T(!1);
938
+ const { theme: r, setTheme: s } = Ye(), [t, a] = $(!1);
939
939
  if (J(() => {
940
940
  a(!0);
941
941
  }, []), !t)
@@ -950,7 +950,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
950
950
  ]
951
951
  }
952
952
  );
953
- const o = () => {
953
+ const l = () => {
954
954
  s(r === "light" ? "dark" : r === "dark" ? "system" : "light");
955
955
  }, n = () => {
956
956
  switch (r) {
@@ -961,7 +961,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
961
961
  case "system":
962
962
  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" }) });
963
963
  }
964
- }, c = () => {
964
+ }, i = () => {
965
965
  switch (r) {
966
966
  case "light":
967
967
  return "Light";
@@ -974,19 +974,19 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
974
974
  return /* @__PURE__ */ e.jsxs(
975
975
  "button",
976
976
  {
977
- onClick: o,
977
+ onClick: l,
978
978
  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",
979
- "aria-label": `Current theme: ${c()}. Click to cycle themes.`,
979
+ "aria-label": `Current theme: ${i()}. Click to cycle themes.`,
980
980
  children: [
981
981
  n(),
982
- /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: c() })
982
+ /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: i() })
983
983
  ]
984
984
  }
985
985
  );
986
986
  }, He = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
987
987
  /* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(We, {}) }),
988
988
  /* @__PURE__ */ e.jsx(Fe, {})
989
- ] }), jr = () => /* @__PURE__ */ e.jsx(Ye, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(He, {}) }), me = {
989
+ ] }), jr = () => /* @__PURE__ */ e.jsx(Ue, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(He, {}) }), me = {
990
990
  variant: {
991
991
  default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
992
992
  destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
@@ -1004,20 +1004,20 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
1004
1004
  xl: "h-12 rounded-md px-10 text-base",
1005
1005
  icon: "h-10 w-10"
1006
1006
  }
1007
- }, Ge = "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", Je = (...r) => r.filter(Boolean).join(" "), O = L.forwardRef(
1007
+ }, Ge = "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", Je = (...r) => r.filter(Boolean).join(" "), S = z.forwardRef(
1008
1008
  ({
1009
1009
  className: r,
1010
1010
  variant: s = "default",
1011
1011
  size: t = "default",
1012
1012
  fullWidth: a = !1,
1013
- loading: o = !1,
1013
+ loading: l = !1,
1014
1014
  leftIcon: n,
1015
- rightIcon: c,
1016
- children: i,
1015
+ rightIcon: i,
1016
+ children: c,
1017
1017
  disabled: u,
1018
1018
  ...x
1019
1019
  }, d) => {
1020
- const m = u || o, f = Je(
1020
+ const m = u || l, f = Je(
1021
1021
  Ge,
1022
1022
  me.variant[s],
1023
1023
  me.size[t],
@@ -1032,7 +1032,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
1032
1032
  disabled: m,
1033
1033
  ...x,
1034
1034
  children: [
1035
- o && /* @__PURE__ */ e.jsxs(
1035
+ l && /* @__PURE__ */ e.jsxs(
1036
1036
  "svg",
1037
1037
  {
1038
1038
  className: "mr-2 h-4 w-4 animate-spin",
@@ -1062,15 +1062,15 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
1062
1062
  ]
1063
1063
  }
1064
1064
  ),
1065
- !o && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
1066
- i,
1067
- !o && c && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: c })
1065
+ !l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
1066
+ c,
1067
+ !l && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
1068
1068
  ]
1069
1069
  }
1070
1070
  );
1071
1071
  }
1072
1072
  );
1073
- O.displayName = "Button";
1073
+ S.displayName = "Button";
1074
1074
  const xe = {
1075
1075
  provider: {
1076
1076
  linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
@@ -1080,42 +1080,42 @@ const xe = {
1080
1080
  right: "flex-row-reverse",
1081
1081
  only: "justify-center"
1082
1082
  }
1083
- }, Xe = (...r) => r.filter(Boolean).join(" "), qe = L.forwardRef(
1083
+ }, Xe = (...r) => r.filter(Boolean).join(" "), qe = z.forwardRef(
1084
1084
  ({
1085
1085
  className: r,
1086
1086
  provider: s,
1087
1087
  iconPosition: t = "left",
1088
1088
  icon: a,
1089
- showText: o = !0,
1089
+ showText: l = !0,
1090
1090
  children: n,
1091
- size: c = "default",
1092
- fullWidth: i = !0,
1091
+ size: i = "default",
1092
+ fullWidth: c = !0,
1093
1093
  ...u
1094
1094
  }, x) => {
1095
1095
  const m = a || {
1096
1096
  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" }) })
1097
- }[s], g = n || (o ? {
1097
+ }[s], v = n || (l ? {
1098
1098
  linkedin: "Continue with LinkedIn"
1099
- }[s] : ""), y = Xe(
1099
+ }[s] : ""), g = Xe(
1100
1100
  "relative overflow-hidden transition-all duration-200",
1101
1101
  xe.provider[s],
1102
1102
  xe.iconPosition[t],
1103
1103
  r
1104
1104
  );
1105
1105
  return /* @__PURE__ */ e.jsxs(
1106
- O,
1106
+ S,
1107
1107
  {
1108
1108
  ref: x,
1109
1109
  variant: "none",
1110
- className: y,
1111
- size: c,
1112
- fullWidth: i,
1110
+ className: g,
1111
+ size: i,
1112
+ fullWidth: c,
1113
1113
  leftIcon: t === "left" ? m : void 0,
1114
1114
  rightIcon: t === "right" ? m : void 0,
1115
1115
  ...u,
1116
1116
  children: [
1117
1117
  t === "only" && m,
1118
- t !== "only" && g
1118
+ t !== "only" && v
1119
1119
  ]
1120
1120
  }
1121
1121
  );
@@ -1127,9 +1127,9 @@ function wr({
1127
1127
  variant: s = "default",
1128
1128
  isActive: t = !1,
1129
1129
  onClick: a,
1130
- className: o = ""
1130
+ className: l = ""
1131
1131
  }) {
1132
- const n = "rounded-lg transition-all", c = {
1132
+ const n = "rounded-lg transition-all", i = {
1133
1133
  default: "border border-border p-4",
1134
1134
  surface: "bg-surface-variant p-4",
1135
1135
  elevated: "bg-surface shadow-md p-6",
@@ -1138,30 +1138,30 @@ function wr({
1138
1138
  return /* @__PURE__ */ e.jsx(
1139
1139
  "div",
1140
1140
  {
1141
- className: `${n} ${c[s]} ${o}`,
1141
+ className: `${n} ${i[s]} ${l}`,
1142
1142
  onClick: a,
1143
1143
  role: a ? "button" : void 0,
1144
1144
  tabIndex: a ? 0 : void 0,
1145
- onKeyDown: a ? (i) => {
1146
- (i.key === "Enter" || i.key === " ") && a();
1145
+ onKeyDown: a ? (c) => {
1146
+ (c.key === "Enter" || c.key === " ") && a();
1147
1147
  } : void 0,
1148
1148
  children: r
1149
1149
  }
1150
1150
  );
1151
1151
  }
1152
- function yr({
1152
+ function Nr({
1153
1153
  title: r,
1154
1154
  children: s,
1155
1155
  subtitle: t,
1156
1156
  spacing: a = "normal",
1157
- className: o = ""
1157
+ className: l = ""
1158
1158
  }) {
1159
1159
  const n = {
1160
1160
  compact: "space-y-3",
1161
1161
  normal: "space-y-6",
1162
1162
  spacious: "space-y-8"
1163
1163
  };
1164
- return /* @__PURE__ */ e.jsxs("div", { className: `${n[a]} ${o}`, children: [
1164
+ return /* @__PURE__ */ e.jsxs("div", { className: `${n[a]} ${l}`, children: [
1165
1165
  /* @__PURE__ */ e.jsxs("div", { children: [
1166
1166
  /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: r }),
1167
1167
  t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
@@ -1174,51 +1174,51 @@ function G({
1174
1174
  title: s,
1175
1175
  message: t,
1176
1176
  icon: a,
1177
- onClose: o,
1177
+ onClose: l,
1178
1178
  className: n = ""
1179
1179
  }) {
1180
- const i = {
1180
+ const c = {
1181
1181
  success: {
1182
1182
  bg: "bg-success-50",
1183
1183
  border: "border-success-200",
1184
1184
  text: "text-success-700",
1185
- icon: /* @__PURE__ */ e.jsx(_e, { className: "h-5 w-5" })
1185
+ icon: /* @__PURE__ */ e.jsx(pe, { className: "h-5 w-5" })
1186
1186
  },
1187
1187
  error: {
1188
1188
  bg: "bg-error-50",
1189
1189
  border: "border-error-200",
1190
1190
  text: "text-error-700",
1191
- icon: /* @__PURE__ */ e.jsx(Ae, { className: "h-5 w-5" })
1191
+ icon: /* @__PURE__ */ e.jsx(be, { className: "h-5 w-5" })
1192
1192
  },
1193
1193
  warning: {
1194
1194
  bg: "bg-warning-50",
1195
1195
  border: "border-warning-200",
1196
1196
  text: "text-warning-700",
1197
- icon: /* @__PURE__ */ e.jsx(Re, { className: "h-5 w-5" })
1197
+ icon: /* @__PURE__ */ e.jsx(ge, { className: "h-5 w-5" })
1198
1198
  },
1199
1199
  info: {
1200
1200
  bg: "bg-info-50",
1201
1201
  border: "border-info-200",
1202
1202
  text: "text-info-700",
1203
- icon: /* @__PURE__ */ e.jsx(Ee, { className: "h-5 w-5" })
1203
+ icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
1204
1204
  }
1205
1205
  }[r];
1206
1206
  return /* @__PURE__ */ e.jsx(
1207
1207
  "div",
1208
1208
  {
1209
- className: `${i.bg} border ${i.border} rounded-md p-3 ${n}`,
1209
+ className: `${c.bg} border ${c.border} rounded-md p-3 ${n}`,
1210
1210
  role: "alert",
1211
1211
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
1212
- /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${i.text}`, children: a || i.icon }),
1212
+ /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${c.text}`, children: a || c.icon }),
1213
1213
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1214
- s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${i.text}`, children: s }),
1215
- /* @__PURE__ */ e.jsx("p", { className: `text-sm ${i.text}`, children: t })
1214
+ s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${c.text}`, children: s }),
1215
+ /* @__PURE__ */ e.jsx("p", { className: `text-sm ${c.text}`, children: t })
1216
1216
  ] }),
1217
- o && /* @__PURE__ */ e.jsx(
1217
+ l && /* @__PURE__ */ e.jsx(
1218
1218
  "button",
1219
1219
  {
1220
- onClick: o,
1221
- className: `flex-shrink-0 ${i.text} hover:opacity-70`,
1220
+ onClick: l,
1221
+ className: `flex-shrink-0 ${c.text} hover:opacity-70`,
1222
1222
  "aria-label": "Close alert",
1223
1223
  children: "✕"
1224
1224
  }
@@ -1270,7 +1270,7 @@ function Ke({
1270
1270
  clipRule: "evenodd"
1271
1271
  }));
1272
1272
  }
1273
- const ve = /* @__PURE__ */ _.forwardRef(Ke);
1273
+ const he = /* @__PURE__ */ _.forwardRef(Ke);
1274
1274
  function Qe({
1275
1275
  title: r,
1276
1276
  titleId: s,
@@ -1296,10 +1296,10 @@ function er({
1296
1296
  variant: s = "default",
1297
1297
  size: t = "md",
1298
1298
  removable: a = !1,
1299
- onRemove: o,
1299
+ onRemove: l,
1300
1300
  className: n = "",
1301
- style: c,
1302
- colorClass: i
1301
+ style: i,
1302
+ colorClass: c
1303
1303
  }) {
1304
1304
  const u = {
1305
1305
  default: "bg-surface-variant text-text-secondary",
@@ -1311,18 +1311,18 @@ function er({
1311
1311
  sm: "px-2 py-0.5 text-xs",
1312
1312
  md: "px-3 py-1 text-sm",
1313
1313
  lg: "px-4 py-1.5 text-base"
1314
- }, d = i || u[s];
1314
+ }, d = c || u[s];
1315
1315
  return /* @__PURE__ */ e.jsxs(
1316
1316
  "span",
1317
1317
  {
1318
1318
  className: `inline-flex items-center gap-1 rounded-full ${d} ${x[t]} ${n}`,
1319
- style: c,
1319
+ style: i,
1320
1320
  children: [
1321
1321
  r,
1322
- a && o && /* @__PURE__ */ e.jsx(
1322
+ a && l && /* @__PURE__ */ e.jsx(
1323
1323
  "button",
1324
1324
  {
1325
- onClick: o,
1325
+ onClick: l,
1326
1326
  className: "ml-1 hover:opacity-70",
1327
1327
  "aria-label": "Remove badge",
1328
1328
  children: /* @__PURE__ */ e.jsx(ee, { className: "w-3 h-3" })
@@ -1332,44 +1332,110 @@ function er({
1332
1332
  }
1333
1333
  );
1334
1334
  }
1335
- function Nr({
1335
+ function yr({
1336
+ status: r,
1337
+ title: s,
1338
+ message: t,
1339
+ action: a,
1340
+ progress: l,
1341
+ className: n = ""
1342
+ }) {
1343
+ const c = {
1344
+ success: {
1345
+ bg: "bg-success-50",
1346
+ border: "border-success-200",
1347
+ text: "text-success-700",
1348
+ icon: /* @__PURE__ */ e.jsx(pe, { className: "h-5 w-5" })
1349
+ },
1350
+ error: {
1351
+ bg: "bg-error-50",
1352
+ border: "border-error-200",
1353
+ text: "text-error-700",
1354
+ icon: /* @__PURE__ */ e.jsx(be, { className: "h-5 w-5" })
1355
+ },
1356
+ warning: {
1357
+ bg: "bg-warning-50",
1358
+ border: "border-warning-200",
1359
+ text: "text-warning-700",
1360
+ icon: /* @__PURE__ */ e.jsx(ge, { className: "h-5 w-5" })
1361
+ },
1362
+ info: {
1363
+ bg: "bg-info-50",
1364
+ border: "border-info-200",
1365
+ text: "text-info-700",
1366
+ icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
1367
+ },
1368
+ loading: {
1369
+ bg: "bg-blue-50",
1370
+ border: "border-blue-200",
1371
+ text: "text-blue-700",
1372
+ icon: null
1373
+ }
1374
+ }[r];
1375
+ return /* @__PURE__ */ e.jsx("div", { className: `${c.bg} border ${c.border} rounded-lg p-4 ${n}`, children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
1376
+ r === "loading" ? /* @__PURE__ */ e.jsxs("svg", { className: "animate-spin h-5 w-5 flex-shrink-0", viewBox: "0 0 24 24", children: [
1377
+ /* @__PURE__ */ e.jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", fill: "none", stroke: "currentColor", strokeWidth: "4" }),
1378
+ /* @__PURE__ */ e.jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
1379
+ ] }) : /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${c.text}`, children: c.icon }),
1380
+ /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1381
+ /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${c.text}`, children: s }),
1382
+ t && /* @__PURE__ */ e.jsx("p", { className: `text-xs ${c.text} mt-1`, children: t }),
1383
+ l !== void 0 && /* @__PURE__ */ e.jsx("div", { className: "mt-2 w-full bg-gray-200 rounded-full h-2", children: /* @__PURE__ */ e.jsx(
1384
+ "div",
1385
+ {
1386
+ className: `h-2 rounded-full transition-all ${c.bg}`,
1387
+ style: { width: `${l}%` }
1388
+ }
1389
+ ) })
1390
+ ] }),
1391
+ a && /* @__PURE__ */ e.jsx(
1392
+ "button",
1393
+ {
1394
+ onClick: a.onClick,
1395
+ className: `text-sm font-medium ${c.text} hover:opacity-70 flex-shrink-0`,
1396
+ children: a.label
1397
+ }
1398
+ )
1399
+ ] }) });
1400
+ }
1401
+ function Cr({
1336
1402
  label: r,
1337
1403
  children: s,
1338
1404
  helperText: t,
1339
1405
  errorText: a,
1340
- required: o = !1,
1406
+ required: l = !1,
1341
1407
  className: n = ""
1342
1408
  }) {
1343
1409
  return /* @__PURE__ */ e.jsxs("div", { className: `space-y-2 ${n}`, children: [
1344
1410
  /* @__PURE__ */ e.jsxs("label", { className: "block text-sm font-medium text-text-primary", children: [
1345
1411
  r,
1346
- o && /* @__PURE__ */ e.jsx("span", { className: "text-error-500 ml-1", children: "*" })
1412
+ l && /* @__PURE__ */ e.jsx("span", { className: "text-error-500 ml-1", children: "*" })
1347
1413
  ] }),
1348
1414
  s,
1349
1415
  a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-error-600", children: a }),
1350
1416
  t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
1351
1417
  ] });
1352
1418
  }
1353
- const rr = L.forwardRef(
1419
+ const rr = z.forwardRef(
1354
1420
  ({
1355
1421
  className: r = "",
1356
1422
  leftIcon: s,
1357
1423
  rightIcon: t,
1358
1424
  error: a = !1,
1359
- fullWidth: o = !0,
1425
+ fullWidth: l = !0,
1360
1426
  disabled: n,
1361
- ...c
1362
- }, i) => {
1363
- const u = "px-3 py-2 border rounded-lg transition-colors text-sm", x = a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", d = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m = o ? "w-full" : "", f = s || t ? "relative flex items-center" : "", g = `${u} ${x} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
1427
+ ...i
1428
+ }, c) => {
1429
+ const u = "px-3 py-2 border rounded-lg transition-colors text-sm", x = a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", d = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m = l ? "w-full" : "", f = s || t ? "relative flex items-center" : "", v = `${u} ${x} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
1364
1430
  return /* @__PURE__ */ e.jsxs("div", { className: f, children: [
1365
1431
  s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
1366
1432
  /* @__PURE__ */ e.jsx(
1367
1433
  "input",
1368
1434
  {
1369
- ref: i,
1370
- className: g,
1435
+ ref: c,
1436
+ className: v,
1371
1437
  disabled: n,
1372
- ...c
1438
+ ...i
1373
1439
  }
1374
1440
  ),
1375
1441
  t && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
@@ -1377,28 +1443,28 @@ const rr = L.forwardRef(
1377
1443
  }
1378
1444
  );
1379
1445
  rr.displayName = "Input";
1380
- const sr = L.forwardRef(
1446
+ const sr = z.forwardRef(
1381
1447
  ({
1382
1448
  options: r,
1383
1449
  placeholder: s,
1384
1450
  className: t = "",
1385
1451
  error: a = !1,
1386
- fullWidth: o = !0,
1452
+ fullWidth: l = !0,
1387
1453
  disabled: n,
1388
- ...c
1389
- }, i) => {
1390
- const f = `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"} ${o ? "w-full" : ""} pr-10 ${t}`;
1454
+ ...i
1455
+ }, c) => {
1456
+ const f = `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}`;
1391
1457
  return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
1392
1458
  /* @__PURE__ */ e.jsxs(
1393
1459
  "select",
1394
1460
  {
1395
- ref: i,
1461
+ ref: c,
1396
1462
  className: f,
1397
1463
  disabled: n,
1398
- ...c,
1464
+ ...i,
1399
1465
  children: [
1400
1466
  s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
1401
- r.map((g) => /* @__PURE__ */ e.jsx("option", { value: g.value, children: g.label }, g.value))
1467
+ r.map((v) => /* @__PURE__ */ e.jsx("option", { value: v.value, children: v.label }, v.value))
1402
1468
  ]
1403
1469
  }
1404
1470
  ),
@@ -1407,134 +1473,134 @@ const sr = L.forwardRef(
1407
1473
  }
1408
1474
  );
1409
1475
  sr.displayName = "Select";
1410
- const ar = L.forwardRef(
1476
+ const ar = z.forwardRef(
1411
1477
  ({
1412
1478
  tags: r,
1413
1479
  onTagsChange: s,
1414
1480
  onAddTag: t,
1415
1481
  onRemoveTag: a,
1416
- placeholder: o = "Add a tag and press Enter",
1482
+ placeholder: l = "Add a tag and press Enter",
1417
1483
  error: n = !1,
1418
- fullWidth: c = !0,
1419
- maxTags: i,
1484
+ fullWidth: i = !0,
1485
+ maxTags: c,
1420
1486
  duplicateCheck: u = !0,
1421
1487
  disabled: x,
1422
1488
  className: d = "",
1423
1489
  ...m
1424
1490
  }, f) => {
1425
- const [g, y] = T(""), k = (h) => {
1426
- h.key === "Enter" && g.trim() ? (h.preventDefault(), V(g.trim())) : h.key === "Backspace" && !g && r.length > 0 && $(r[r.length - 1]);
1427
- }, V = (h) => {
1428
- if (i && r.length >= i || u && r.includes(h))
1491
+ const [v, g] = $(""), y = (b) => {
1492
+ b.key === "Enter" && v.trim() ? (b.preventDefault(), V(v.trim())) : b.key === "Backspace" && !v && r.length > 0 && T(r[r.length - 1]);
1493
+ }, V = (b) => {
1494
+ if (c && r.length >= c || u && r.includes(b))
1429
1495
  return;
1430
- const j = [...r, h];
1431
- s(j), t?.(h), y("");
1432
- }, $ = (h) => {
1433
- const j = r.filter((A) => A !== h);
1434
- s(j), a?.(h);
1435
- }, b = `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"} ${x ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${c ? "w-full" : ""} ${d}`;
1496
+ const w = [...r, b];
1497
+ s(w), t?.(b), g("");
1498
+ }, T = (b) => {
1499
+ const w = r.filter((A) => A !== b);
1500
+ s(w), a?.(b);
1501
+ }, 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"} ${x ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${i ? "w-full" : ""} ${d}`;
1436
1502
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
1437
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((h) => /* @__PURE__ */ e.jsx(
1503
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((b) => /* @__PURE__ */ e.jsx(
1438
1504
  er,
1439
1505
  {
1440
1506
  removable: !0,
1441
- onRemove: () => $(h),
1507
+ onRemove: () => T(b),
1442
1508
  variant: "default",
1443
- children: h
1509
+ children: b
1444
1510
  },
1445
- h
1511
+ b
1446
1512
  )) }),
1447
1513
  /* @__PURE__ */ e.jsx(
1448
1514
  "input",
1449
1515
  {
1450
1516
  ref: f,
1451
1517
  type: "text",
1452
- className: b,
1453
- placeholder: o,
1454
- value: g,
1455
- onChange: (h) => y(h.target.value),
1456
- onKeyDown: k,
1457
- disabled: x || (i ? r.length >= i : !1),
1518
+ className: p,
1519
+ placeholder: l,
1520
+ value: v,
1521
+ onChange: (b) => g(b.target.value),
1522
+ onKeyDown: y,
1523
+ disabled: x || (c ? r.length >= c : !1),
1458
1524
  ...m
1459
1525
  }
1460
1526
  ),
1461
- i && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
1527
+ c && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
1462
1528
  r.length,
1463
1529
  " / ",
1464
- i
1530
+ c
1465
1531
  ] })
1466
1532
  ] });
1467
1533
  }
1468
1534
  );
1469
1535
  ar.displayName = "TagInput";
1470
- const tr = L.forwardRef(
1536
+ const tr = z.forwardRef(
1471
1537
  ({
1472
1538
  className: r = "",
1473
1539
  error: s = !1,
1474
1540
  fullWidth: t = !0,
1475
1541
  autoResize: a = !1,
1476
- maxLength: o,
1542
+ maxLength: l,
1477
1543
  showCharCount: n = !1,
1478
- disabled: c,
1479
- value: i,
1544
+ disabled: i,
1545
+ value: c,
1480
1546
  onChange: u,
1481
1547
  ...x
1482
1548
  }, d) => {
1483
- const k = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${s ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${c ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${r}`, V = (R) => {
1549
+ const y = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${s ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${i ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${r}`, V = (R) => {
1484
1550
  a && (R.target.style.height = "auto", R.target.style.height = `${R.target.scrollHeight}px`), u?.(R);
1485
- }, $ = typeof i == "string" ? i.length : 0;
1551
+ }, T = typeof c == "string" ? c.length : 0;
1486
1552
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
1487
1553
  /* @__PURE__ */ e.jsx(
1488
1554
  "textarea",
1489
1555
  {
1490
1556
  ref: d,
1491
- className: k,
1492
- disabled: c,
1493
- value: i,
1557
+ className: y,
1558
+ disabled: i,
1559
+ value: c,
1494
1560
  onChange: V,
1495
- maxLength: o,
1561
+ maxLength: l,
1496
1562
  ...x
1497
1563
  }
1498
1564
  ),
1499
- n && o && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
1500
- $,
1565
+ n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
1566
+ T,
1501
1567
  " / ",
1502
- o
1568
+ l
1503
1569
  ] })
1504
1570
  ] });
1505
1571
  }
1506
1572
  );
1507
1573
  tr.displayName = "Textarea";
1508
- function Cr({
1574
+ function kr({
1509
1575
  options: r,
1510
1576
  selectedValues: s,
1511
1577
  onSelectionChange: t,
1512
1578
  layout: a = "vertical",
1513
- columns: o = 2,
1579
+ columns: l = 2,
1514
1580
  disabled: n = !1,
1515
- error: c = !1
1581
+ error: i = !1
1516
1582
  }) {
1517
- const i = (m) => {
1518
- const f = s.includes(m) ? s.filter((g) => g !== m) : [...s, m];
1583
+ const c = (m) => {
1584
+ const f = s.includes(m) ? s.filter((v) => v !== m) : [...s, m];
1519
1585
  t(f);
1520
1586
  }, u = {
1521
1587
  vertical: "space-y-3",
1522
1588
  horizontal: "flex flex-wrap gap-3",
1523
- grid: `grid grid-cols-${o} gap-3`
1524
- }, x = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${o}` : "";
1589
+ grid: `grid grid-cols-${l} gap-3`
1590
+ }, x = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
1525
1591
  return /* @__PURE__ */ e.jsx("div", { className: `${x} ${d}`, children: r.map((m) => {
1526
- const f = s.includes(m.value), y = f ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1592
+ const f = s.includes(m.value), g = f ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${i ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1527
1593
  return /* @__PURE__ */ e.jsxs(
1528
1594
  "label",
1529
1595
  {
1530
- className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${y} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
1596
+ className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
1531
1597
  children: [
1532
1598
  /* @__PURE__ */ e.jsx(
1533
1599
  "input",
1534
1600
  {
1535
1601
  type: "checkbox",
1536
1602
  checked: f,
1537
- onChange: () => i(m.value),
1603
+ onChange: () => c(m.value),
1538
1604
  disabled: n,
1539
1605
  className: "sr-only"
1540
1606
  }
@@ -1551,33 +1617,33 @@ function Cr({
1551
1617
  );
1552
1618
  }) });
1553
1619
  }
1554
- function kr({
1620
+ function Vr({
1555
1621
  options: r,
1556
1622
  selectedValue: s,
1557
1623
  onSelectionChange: t,
1558
1624
  layout: a = "vertical",
1559
- columns: o = 2,
1625
+ columns: l = 2,
1560
1626
  disabled: n = !1,
1561
- error: c = !1,
1562
- name: i = "radio-group"
1627
+ error: i = !1,
1628
+ name: c = "radio-group"
1563
1629
  }) {
1564
- const x = a === "grid" ? `grid gap-3 md:grid-cols-${o}` : {
1630
+ const x = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
1565
1631
  vertical: "space-y-3",
1566
1632
  horizontal: "flex flex-wrap gap-3",
1567
1633
  grid: "grid gap-3"
1568
1634
  }[a];
1569
1635
  return /* @__PURE__ */ e.jsx("div", { className: x, children: r.map((d) => {
1570
- const m = s === d.value, g = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1636
+ const m = s === d.value, v = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${i ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1571
1637
  return /* @__PURE__ */ e.jsxs(
1572
1638
  "label",
1573
1639
  {
1574
- className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
1640
+ className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${v} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
1575
1641
  children: [
1576
1642
  /* @__PURE__ */ e.jsx(
1577
1643
  "input",
1578
1644
  {
1579
1645
  type: "radio",
1580
- name: i,
1646
+ name: c,
1581
1647
  value: d.value,
1582
1648
  checked: m,
1583
1649
  onChange: () => t(d.value),
@@ -1597,18 +1663,18 @@ function kr({
1597
1663
  );
1598
1664
  }) });
1599
1665
  }
1600
- function Vr({
1666
+ function $r({
1601
1667
  items: r,
1602
1668
  allowMultiple: s = !1,
1603
1669
  defaultOpenId: t,
1604
1670
  onOpenChange: a,
1605
- className: o = ""
1671
+ className: l = ""
1606
1672
  }) {
1607
- const [n, c] = T(() => t ? Array.isArray(t) ? t : [t] : []), i = (u) => {
1673
+ const [n, i] = $(() => t ? Array.isArray(t) ? t : [t] : []), c = (u) => {
1608
1674
  let x;
1609
- s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u], c(x), a?.(x);
1675
+ s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u], i(x), a?.(x);
1610
1676
  };
1611
- return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${o}`, children: r.map((u) => {
1677
+ return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
1612
1678
  const x = n.includes(u.id);
1613
1679
  return /* @__PURE__ */ e.jsxs(
1614
1680
  "div",
@@ -1618,7 +1684,7 @@ function Vr({
1618
1684
  /* @__PURE__ */ e.jsxs(
1619
1685
  "button",
1620
1686
  {
1621
- onClick: () => i(u.id),
1687
+ onClick: () => c(u.id),
1622
1688
  className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
1623
1689
  children: [
1624
1690
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
@@ -1641,43 +1707,43 @@ function Vr({
1641
1707
  );
1642
1708
  }) });
1643
1709
  }
1644
- const nr = L.forwardRef(
1710
+ const nr = z.forwardRef(
1645
1711
  ({
1646
1712
  value: r,
1647
1713
  onChange: s,
1648
1714
  min: t = 0,
1649
1715
  max: a = 100,
1650
- step: o = 1,
1716
+ step: l = 1,
1651
1717
  showValue: n = !0,
1652
- showLabels: c = !1,
1653
- minLabel: i,
1718
+ showLabels: i = !1,
1719
+ minLabel: c,
1654
1720
  maxLabel: u,
1655
1721
  error: x = !1,
1656
1722
  fullWidth: d = !0,
1657
1723
  disabled: m,
1658
1724
  className: f = "",
1659
- ...g
1660
- }, y) => {
1661
- const w = `w-full h-2 rounded-lg appearance-none cursor-pointer ${x ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${f}`, S = (r - t) / (a - t) * 100;
1725
+ ...v
1726
+ }, g) => {
1727
+ const N = `w-full h-2 rounded-lg appearance-none cursor-pointer ${x ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${f}`, D = (r - t) / (a - t) * 100;
1662
1728
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
1663
- c && (i || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
1664
- i && /* @__PURE__ */ e.jsx("span", { children: i }),
1729
+ i && (c || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
1730
+ c && /* @__PURE__ */ e.jsx("span", { children: c }),
1665
1731
  u && /* @__PURE__ */ e.jsx("span", { children: u })
1666
1732
  ] }),
1667
1733
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
1668
1734
  /* @__PURE__ */ e.jsx(
1669
1735
  "input",
1670
1736
  {
1671
- ref: y,
1737
+ ref: g,
1672
1738
  type: "range",
1673
1739
  min: t,
1674
1740
  max: a,
1675
- step: o,
1741
+ step: l,
1676
1742
  value: r,
1677
1743
  onChange: (I) => s(Number(I.target.value)),
1678
1744
  disabled: m,
1679
- className: w,
1680
- ...g
1745
+ className: N,
1746
+ ...v
1681
1747
  }
1682
1748
  ),
1683
1749
  n && /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: r })
@@ -1686,7 +1752,7 @@ const nr = L.forwardRef(
1686
1752
  "div",
1687
1753
  {
1688
1754
  className: "h-full bg-reseda-green-500 transition-all",
1689
- style: { width: `${S}%` }
1755
+ style: { width: `${D}%` }
1690
1756
  }
1691
1757
  ) })
1692
1758
  ] });
@@ -1698,20 +1764,20 @@ function Tr({
1698
1764
  title: s,
1699
1765
  description: t,
1700
1766
  isSelected: a = !1,
1701
- onClick: o,
1767
+ onClick: l,
1702
1768
  disabled: n = !1,
1703
- className: c = ""
1769
+ className: i = ""
1704
1770
  }) {
1705
- const i = "p-4 border rounded-lg transition-all text-center cursor-pointer", u = a ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : "border-border hover:border-border-subtle hover:bg-surface-variant", x = n ? "opacity-50 cursor-not-allowed" : "";
1771
+ const c = "p-4 border rounded-lg transition-all text-center cursor-pointer", u = a ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : "border-border hover:border-border-subtle hover:bg-surface-variant", x = n ? "opacity-50 cursor-not-allowed" : "";
1706
1772
  return /* @__PURE__ */ e.jsxs(
1707
1773
  "div",
1708
1774
  {
1709
- className: `${i} ${u} ${x} ${c}`,
1710
- onClick: () => !n && o?.(),
1775
+ className: `${c} ${u} ${x} ${i}`,
1776
+ onClick: () => !n && l?.(),
1711
1777
  role: "button",
1712
1778
  tabIndex: n ? -1 : 0,
1713
1779
  onKeyDown: (d) => {
1714
- !n && (d.key === "Enter" || d.key === " ") && o?.();
1780
+ !n && (d.key === "Enter" || d.key === " ") && l?.();
1715
1781
  },
1716
1782
  children: [
1717
1783
  r && /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-text-secondary", children: r }) }),
@@ -1729,20 +1795,20 @@ const lr = {
1729
1795
  inactiveHoverText: "hover:text-text-primary",
1730
1796
  disabledText: "text-text-disabled"
1731
1797
  };
1732
- function $r({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: o }) {
1733
- const n = o || lr;
1734
- return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
1735
- const i = s === c.id;
1798
+ function Er({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
1799
+ const n = l || lr;
1800
+ return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((i) => {
1801
+ const c = s === i.id;
1736
1802
  return /* @__PURE__ */ e.jsx(
1737
- O,
1803
+ S,
1738
1804
  {
1739
1805
  variant: "ghost",
1740
- onClick: () => !t && a(c.id),
1741
- disabled: t && !i,
1742
- className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${i ? `${n.activeBorder} ${n.activeText}` : t ? `border-transparent ${n.disabledText} cursor-not-allowed` : `border-transparent ${n.inactiveText} ${n.inactiveHoverText}`}`,
1743
- children: c.label
1806
+ onClick: () => !t && a(i.id),
1807
+ disabled: t && !c,
1808
+ 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}`}`,
1809
+ children: i.label
1744
1810
  },
1745
- c.id
1811
+ i.id
1746
1812
  );
1747
1813
  }) });
1748
1814
  }
@@ -1757,49 +1823,49 @@ const or = {
1757
1823
  labelInactiveText: "text-text-muted",
1758
1824
  connectorBg: "bg-border"
1759
1825
  };
1760
- function Er({ currentStep: r, steps: s, colorConfig: t }) {
1826
+ function Rr({ currentStep: r, steps: s, colorConfig: t }) {
1761
1827
  const a = t || or;
1762
- return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: s.map((o, n) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${n < s.length - 1 ? "flex-1" : ""}`, children: [
1828
+ 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: [
1763
1829
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1764
1830
  /* @__PURE__ */ e.jsx(
1765
1831
  "span",
1766
1832
  {
1767
- className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === o.number ? `${a.activeBg} ${a.activeText}` : r > o.number ? `${a.completedBg} ${a.completedText}` : `border-2 ${a.incompleteBorder} ${a.incompleteText}`}`,
1768
- children: o.number
1833
+ className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === l.number ? `${a.activeBg} ${a.activeText}` : r > l.number ? `${a.completedBg} ${a.completedText}` : `border-2 ${a.incompleteBorder} ${a.incompleteText}`}`,
1834
+ children: l.number
1769
1835
  }
1770
1836
  ),
1771
1837
  /* @__PURE__ */ e.jsx(
1772
1838
  "span",
1773
1839
  {
1774
- className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= o.number ? a.labelActiveText : a.labelInactiveText}`,
1775
- children: o.label
1840
+ className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= l.number ? a.labelActiveText : a.labelInactiveText}`,
1841
+ children: l.label
1776
1842
  }
1777
1843
  )
1778
1844
  ] }),
1779
1845
  n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
1780
- ] }, o.number)) }) });
1846
+ ] }, l.number)) }) });
1781
1847
  }
1782
1848
  function cr({
1783
1849
  id: r,
1784
1850
  index: s,
1785
1851
  previewText: t,
1786
1852
  defaultExpanded: a = !1,
1787
- children: o,
1853
+ children: l,
1788
1854
  tooltipContent: n,
1789
- onRemove: c,
1790
- className: i = ""
1855
+ onRemove: i,
1856
+ className: c = ""
1791
1857
  }) {
1792
- const [u, x] = T(a), { attributes: d, listeners: m, setNodeRef: f, transform: g, transition: y, isDragging: k } = Be({ id: r }), V = {
1793
- transform: De.Transform.toString(g),
1794
- transition: y,
1795
- opacity: k ? 0.5 : 1
1858
+ const [u, x] = $(a), { attributes: d, listeners: m, setNodeRef: f, transform: v, transition: g, isDragging: y } = Be({ id: r }), V = {
1859
+ transform: Oe.Transform.toString(v),
1860
+ transition: g,
1861
+ opacity: y ? 0.5 : 1
1796
1862
  };
1797
1863
  return /* @__PURE__ */ e.jsx(
1798
1864
  "div",
1799
1865
  {
1800
1866
  ref: f,
1801
1867
  style: V,
1802
- className: `border border-border rounded-md bg-surface-variant ${i}`,
1868
+ className: `border border-border rounded-md bg-surface-variant ${c}`,
1803
1869
  children: u ? (
1804
1870
  // ── Expanded ──────────────────────────────────────────────────────────
1805
1871
  /* @__PURE__ */ e.jsxs("div", { className: "p-3", children: [
@@ -1827,7 +1893,7 @@ function cr({
1827
1893
  }
1828
1894
  ),
1829
1895
  /* @__PURE__ */ e.jsx(
1830
- O,
1896
+ S,
1831
1897
  {
1832
1898
  type: "button",
1833
1899
  variant: "ghost",
@@ -1835,23 +1901,23 @@ function cr({
1835
1901
  onClick: () => x(!1),
1836
1902
  className: "h-auto w-auto p-1",
1837
1903
  "aria-label": "Collapse",
1838
- leftIcon: /* @__PURE__ */ e.jsx(ve, { className: "w-4 h-4 transition-transform rotate-90" })
1904
+ leftIcon: /* @__PURE__ */ e.jsx(he, { className: "w-4 h-4 transition-transform rotate-90" })
1839
1905
  }
1840
1906
  ),
1841
1907
  /* @__PURE__ */ e.jsx(
1842
- O,
1908
+ S,
1843
1909
  {
1844
1910
  type: "button",
1845
1911
  variant: "ghost",
1846
1912
  size: "icon",
1847
- onClick: c,
1913
+ onClick: i,
1848
1914
  className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
1849
1915
  "aria-label": "Remove",
1850
1916
  leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
1851
1917
  }
1852
1918
  )
1853
1919
  ] }),
1854
- o
1920
+ l
1855
1921
  ] })
1856
1922
  ) : (
1857
1923
  // ── Collapsed ─────────────────────────────────────────────────────────
@@ -1877,7 +1943,7 @@ function cr({
1877
1943
  }
1878
1944
  ),
1879
1945
  /* @__PURE__ */ e.jsx(
1880
- O,
1946
+ S,
1881
1947
  {
1882
1948
  type: "button",
1883
1949
  variant: "ghost",
@@ -1885,16 +1951,16 @@ function cr({
1885
1951
  onClick: () => x(!0),
1886
1952
  className: "h-auto w-auto p-1 flex-shrink-0",
1887
1953
  "aria-label": "Expand",
1888
- leftIcon: /* @__PURE__ */ e.jsx(ve, { className: "w-4 h-4 transition-transform" })
1954
+ leftIcon: /* @__PURE__ */ e.jsx(he, { className: "w-4 h-4 transition-transform" })
1889
1955
  }
1890
1956
  ),
1891
1957
  /* @__PURE__ */ e.jsx(
1892
- O,
1958
+ S,
1893
1959
  {
1894
1960
  type: "button",
1895
1961
  variant: "ghost",
1896
1962
  size: "icon",
1897
- onClick: c,
1963
+ onClick: i,
1898
1964
  className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
1899
1965
  "aria-label": "Remove",
1900
1966
  leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
@@ -1908,36 +1974,36 @@ function cr({
1908
1974
  );
1909
1975
  }
1910
1976
  cr.displayName = "SortableItem";
1911
- function Rr({
1977
+ function Ar({
1912
1978
  onFileChange: r,
1913
1979
  onAnalyze: s,
1914
1980
  uploadedFile: t,
1915
1981
  fileError: a,
1916
- onCancelUpload: o,
1982
+ onCancelUpload: l,
1917
1983
  isAnalyzing: n = !1,
1918
- analyzeError: c,
1919
- analyzeSuccess: i,
1984
+ analyzeError: i,
1985
+ analyzeSuccess: c,
1920
1986
  accept: u = ".pdf,.docx",
1921
1987
  label: x = "Upload File",
1922
1988
  description: d = "PDF, DOCX up to 5MB",
1923
1989
  analyzeButtonLabel: m = "Analyze",
1924
1990
  disabled: f = !1,
1925
- showAnalyzeButton: g = !0
1991
+ showAnalyzeButton: v = !0
1926
1992
  }) {
1927
- const y = ye(null), [k, V] = T(!1);
1993
+ const g = Ve(null), [y, V] = $(!1);
1928
1994
  J(() => {
1929
- !t && y.current && (y.current.value = "");
1995
+ !t && g.current && (g.current.value = "");
1930
1996
  }, [t]);
1931
- const $ = (w) => {
1932
- w.preventDefault(), w.stopPropagation(), w.type === "dragenter" || w.type === "dragover" ? V(!0) : w.type === "dragleave" && V(!1);
1933
- }, R = (w) => {
1934
- if (w.preventDefault(), w.stopPropagation(), V(!1), w.dataTransfer.files && w.dataTransfer.files[0]) {
1935
- const S = {
1997
+ const T = (N) => {
1998
+ N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ? V(!0) : N.type === "dragleave" && V(!1);
1999
+ }, R = (N) => {
2000
+ if (N.preventDefault(), N.stopPropagation(), V(!1), N.dataTransfer.files && N.dataTransfer.files[0]) {
2001
+ const D = {
1936
2002
  target: {
1937
- files: w.dataTransfer.files
2003
+ files: N.dataTransfer.files
1938
2004
  }
1939
2005
  };
1940
- r(S);
2006
+ r(D);
1941
2007
  }
1942
2008
  };
1943
2009
  return /* @__PURE__ */ e.jsxs("div", { className: "mt-6 pt-6 border-t border-border", children: [
@@ -1946,7 +2012,7 @@ function Rr({
1946
2012
  /* @__PURE__ */ e.jsx(
1947
2013
  "input",
1948
2014
  {
1949
- ref: y,
2015
+ ref: g,
1950
2016
  type: "file",
1951
2017
  accept: u,
1952
2018
  onChange: r,
@@ -1958,11 +2024,11 @@ function Rr({
1958
2024
  /* @__PURE__ */ e.jsx(
1959
2025
  "div",
1960
2026
  {
1961
- onDragEnter: $,
1962
- onDragLeave: $,
1963
- onDragOver: $,
2027
+ onDragEnter: T,
2028
+ onDragLeave: T,
2029
+ onDragOver: T,
1964
2030
  onDrop: R,
1965
- className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${k ? "border-reseda-green-700 bg-reseda-green-50" : "border-border hover:border-reseda-green-700"} ${f ? "opacity-50 cursor-not-allowed" : ""}`,
2031
+ className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${y ? "border-reseda-green-700 bg-reseda-green-50" : "border-border hover:border-reseda-green-700"} ${f ? "opacity-50 cursor-not-allowed" : ""}`,
1966
2032
  children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
1967
2033
  /* @__PURE__ */ e.jsx(
1968
2034
  "svg",
@@ -1987,12 +2053,12 @@ function Rr({
1987
2053
  "MB"
1988
2054
  ] }),
1989
2055
  /* @__PURE__ */ e.jsx(
1990
- O,
2056
+ S,
1991
2057
  {
1992
2058
  variant: "link",
1993
2059
  type: "button",
1994
- onClick: (w) => {
1995
- w.preventDefault(), o?.();
2060
+ onClick: (N) => {
2061
+ N.preventDefault(), l?.();
1996
2062
  },
1997
2063
  className: "mt-3 text-error-600 hover:text-error-700 h-auto p-0",
1998
2064
  children: "✕ Cancel"
@@ -2028,10 +2094,10 @@ function Rr({
2028
2094
  )
2029
2095
  ] }),
2030
2096
  a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: a }) }),
2031
- c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: c }) }),
2032
- i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: i }) }),
2033
- g && /* @__PURE__ */ e.jsx(
2034
- O,
2097
+ i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: i }) }),
2098
+ c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: c }) }),
2099
+ v && /* @__PURE__ */ e.jsx(
2100
+ S,
2035
2101
  {
2036
2102
  variant: "default",
2037
2103
  onClick: s,
@@ -2044,77 +2110,141 @@ function Rr({
2044
2110
  )
2045
2111
  ] });
2046
2112
  }
2047
- function Ar({ stats: r, columns: s = 4, className: t = "" }) {
2113
+ function _r({ stats: r, columns: s = 4, className: t = "" }) {
2048
2114
  const a = {
2049
2115
  2: "grid-cols-2",
2050
2116
  3: "grid-cols-3",
2051
2117
  4: "grid-cols-4"
2052
- }[s], o = {
2118
+ }[s], l = {
2053
2119
  "moss-green": { bg: "bg-moss-green-50", text: "text-reseda-green-700", value: "text-reseda-green-100" },
2054
2120
  success: { bg: "bg-khaki-50", text: "text-success-600", value: "text-success-900" },
2055
2121
  warning: { bg: "bg-peach-yellow-50", text: "text-warning-600", value: "text-warning-900" },
2056
2122
  "earth-yellow": { bg: "bg-sunglow-50", text: "text-earth-yellow-700", value: "text-earth-yellow-100" }
2057
2123
  };
2058
- return /* @__PURE__ */ e.jsx("div", { className: `grid ${a} gap-4 mb-6 bg-surface p-6 rounded-lg ${t}`, children: r.map((n, c) => {
2059
- const i = o[n.color || "moss-green"];
2060
- return /* @__PURE__ */ e.jsxs("div", { className: `${i.bg} rounded-lg p-4`, children: [
2124
+ return /* @__PURE__ */ e.jsx("div", { className: `grid ${a} gap-4 mb-6 bg-surface p-6 rounded-lg ${t}`, children: r.map((n, i) => {
2125
+ const c = l[n.color || "moss-green"];
2126
+ return /* @__PURE__ */ e.jsxs("div", { className: `${c.bg} rounded-lg p-4`, children: [
2061
2127
  n.icon && /* @__PURE__ */ e.jsx("div", { className: "mb-2", children: n.icon }),
2062
- /* @__PURE__ */ e.jsx("p", { className: `text-sm ${i.text} font-medium`, children: n.label }),
2063
- /* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${i.value} mt-1`, children: n.value })
2064
- ] }, c);
2128
+ /* @__PURE__ */ e.jsx("p", { className: `text-sm ${c.text} font-medium`, children: n.label }),
2129
+ /* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${c.value} mt-1`, children: n.value })
2130
+ ] }, i);
2065
2131
  }) });
2066
2132
  }
2067
- function _r({
2133
+ function Br({
2068
2134
  title: r,
2069
2135
  description: s,
2070
2136
  centered: t = !1,
2071
2137
  titleSize: a = "md"
2072
2138
  }) {
2073
- const o = {
2139
+ const l = {
2074
2140
  sm: "text-2xl",
2075
2141
  md: "text-3xl",
2076
2142
  lg: "text-4xl"
2077
- }, n = t ? "text-center" : "", c = t ? "max-w-2xl mx-auto" : "";
2143
+ }, n = t ? "text-center" : "", i = t ? "max-w-2xl mx-auto" : "";
2078
2144
  return /* @__PURE__ */ e.jsxs("div", { className: `mb-8 ${n}`, children: [
2079
- /* @__PURE__ */ e.jsx("h1", { className: `${o[a]} font-bold text-text-primary`, children: r }),
2080
- /* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${c}`, children: s })
2145
+ /* @__PURE__ */ e.jsx("h1", { className: `${l[a]} font-bold text-text-primary`, children: r }),
2146
+ /* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${i}`, children: s })
2081
2147
  ] });
2082
2148
  }
2149
+ function Or({
2150
+ icon: r,
2151
+ title: s,
2152
+ subtitle: t,
2153
+ metadata: a,
2154
+ isSelected: l = !1,
2155
+ isActive: n = !1,
2156
+ variant: i = "default",
2157
+ actions: c,
2158
+ onClick: u,
2159
+ className: x = ""
2160
+ }) {
2161
+ const d = (g) => {
2162
+ const y = g.target;
2163
+ y.tagName === "BUTTON" || y.closest("button") || u?.(g);
2164
+ }, f = (() => {
2165
+ if (n)
2166
+ switch (i) {
2167
+ case "success":
2168
+ return "border-2 border-reseda-green-700 bg-success-50";
2169
+ case "warning":
2170
+ return "border-2 border-persian-orange-700 bg-warning-50";
2171
+ case "error":
2172
+ return "border-2 border-error-700 bg-error-50";
2173
+ default:
2174
+ return "border-2 border-reseda-green-700 bg-success-50";
2175
+ }
2176
+ return "border border-border hover:border-border-subtle hover:bg-surface-variant";
2177
+ })(), v = l ? "ring-2 ring-reseda-green-700" : "";
2178
+ return /* @__PURE__ */ e.jsx(
2179
+ "div",
2180
+ {
2181
+ onClick: d,
2182
+ className: `rounded-lg p-4 cursor-pointer transition ${f} ${v} ${x}`,
2183
+ children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between", children: [
2184
+ /* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex items-start gap-3", children: [
2185
+ r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
2186
+ /* @__PURE__ */ e.jsxs("div", { className: "flex-1 min-w-0", children: [
2187
+ /* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: s }),
2188
+ t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t }),
2189
+ a && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: a })
2190
+ ] })
2191
+ ] }),
2192
+ /* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: c.map((g, y) => /* @__PURE__ */ e.jsx(
2193
+ S,
2194
+ {
2195
+ variant: g.variant || "ghost",
2196
+ size: g.size || "sm",
2197
+ onClick: g.onClick,
2198
+ disabled: g.disabled,
2199
+ loading: g.loading,
2200
+ title: g.label,
2201
+ className: g.className,
2202
+ leftIcon: g.icon && g.size !== "icon" ? g.icon : void 0,
2203
+ children: g.size === "icon" ? g.icon : g.label
2204
+ },
2205
+ y
2206
+ )) })
2207
+ ] })
2208
+ }
2209
+ );
2210
+ }
2083
2211
  export {
2084
- Vr as Accordion,
2212
+ $r as Accordion,
2213
+ Or as ActionCard,
2085
2214
  G as Alert,
2086
2215
  er as Badge,
2087
- O as Button,
2216
+ S as Button,
2088
2217
  wr as Card,
2089
- Cr as CheckboxGroup,
2218
+ kr as CheckboxGroup,
2090
2219
  Fe as ColorPalette,
2091
2220
  jr as Demo,
2092
- Rr as FileUpload,
2093
- Nr as FormField,
2221
+ Ar as FileUpload,
2222
+ Cr as FormField,
2094
2223
  rr as Input,
2095
2224
  Tr as OptionCard,
2096
- _r as PageHeader,
2097
- kr as RadioGroup,
2098
- yr as Section,
2225
+ Br as PageHeader,
2226
+ Vr as RadioGroup,
2227
+ Nr as Section,
2099
2228
  sr as Select,
2100
2229
  pr as Sidebar,
2101
2230
  nr as Slider,
2102
2231
  qe as SocialButton,
2103
2232
  cr as SortableItem,
2104
- Ar as StatsGrid,
2105
- Er as Stepper,
2106
- $r as TabBar,
2233
+ _r as StatsGrid,
2234
+ yr as StatusBanner,
2235
+ Rr as Stepper,
2236
+ Er as TabBar,
2107
2237
  ar as TagInput,
2108
2238
  tr as Textarea,
2109
- Ye as ThemeProvider,
2239
+ Ue as ThemeProvider,
2110
2240
  We as ThemeToggle,
2111
2241
  gr as clearAllErrors,
2112
- hr as clearFieldError,
2113
- vr as getFirstError,
2114
- Se as hasErrors,
2242
+ vr as clearFieldError,
2243
+ hr as getFirstError,
2244
+ De as hasErrors,
2115
2245
  br as useForm,
2116
- Ue as useTheme,
2117
- Oe as validateField,
2246
+ Ye as useTheme,
2247
+ Se as validateField,
2118
2248
  Q as validateForm,
2119
2249
  fr as validators
2120
2250
  };