acemyjob-ui 0.9.2 → 0.11.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,8 +1,203 @@
1
- import * as C from "react";
2
- import I, { useState as N, createContext as xe, useEffect as L, useContext as ve } from "react";
3
- import { Dialog as fe, DialogBackdrop as he, DialogPanel as ge, TransitionChild as be } from "@headlessui/react";
4
- import { XMarkIcon as pe, Bars3Icon as je, ChevronDownIcon as we, InformationCircleIcon as Ve, ExclamationCircleIcon as ye, XCircleIcon as Ne, CheckCircleIcon as Te } from "@heroicons/react/24/outline";
5
- var E = { exports: {} }, T = {};
1
+ import * as P from "react";
2
+ import X, { useState as S, useCallback as O, createContext as ue, useEffect as M, useContext as te, useLayoutEffect as Ze, useMemo as H, useRef as W } from "react";
3
+ import { Dialog as Qe, DialogBackdrop as Ke, DialogPanel as er, TransitionChild as rr } from "@headlessui/react";
4
+ import { XMarkIcon as sr, Bars3Icon as tr, ChevronDownIcon as Ne, InformationCircleIcon as ar, ExclamationCircleIcon as nr, XCircleIcon as or, CheckCircleIcon as lr } from "@heroicons/react/24/outline";
5
+ import "react-dom";
6
+ const hs = {
7
+ required: (e = "This field is required") => ({
8
+ validate: (r) => typeof r == "string" ? r.trim().length > 0 : Array.isArray(r) ? r.length > 0 : r != null,
9
+ message: e
10
+ }),
11
+ email: (e = "Please enter a valid email address") => ({
12
+ validate: (r) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(r)),
13
+ message: e
14
+ }),
15
+ minLength: (e, r) => ({
16
+ validate: (t) => String(t).length >= e,
17
+ message: r || `Must be at least ${e} characters`
18
+ }),
19
+ maxLength: (e, r) => ({
20
+ validate: (t) => String(t).length <= e,
21
+ message: r || `Must be no more than ${e} characters`
22
+ }),
23
+ pattern: (e, r = "Invalid format") => ({
24
+ validate: (t) => e.test(String(t)),
25
+ message: r
26
+ }),
27
+ minValue: (e, r) => ({
28
+ validate: (t) => Number(t) >= e,
29
+ message: r || `Must be at least ${e}`
30
+ }),
31
+ maxValue: (e, r) => ({
32
+ validate: (t) => Number(t) <= e,
33
+ message: r || `Must be no more than ${e}`
34
+ }),
35
+ url: (e = "Please enter a valid URL") => ({
36
+ validate: (r) => {
37
+ try {
38
+ return new URL(String(r)), !0;
39
+ } catch {
40
+ return !1;
41
+ }
42
+ },
43
+ message: e
44
+ }),
45
+ phone: (e = "Please enter a valid phone number") => ({
46
+ validate: (r) => {
47
+ const t = /^[\d\s\-+()]+$/, a = String(r);
48
+ return t.test(a) && a.replace(/\D/g, "").length >= 10;
49
+ },
50
+ message: e
51
+ }),
52
+ match: (e, r = "Fields do not match") => ({
53
+ validate: (t) => t === e,
54
+ message: r
55
+ }),
56
+ custom: (e, r) => ({
57
+ validate: e,
58
+ message: r
59
+ })
60
+ };
61
+ function cr(e, r) {
62
+ for (const t of r)
63
+ if (!t.validate(e))
64
+ return t.message;
65
+ return null;
66
+ }
67
+ function ve(e, r) {
68
+ const t = {};
69
+ for (const [a, n] of Object.entries(r)) {
70
+ const o = e[a], l = cr(o, n);
71
+ t[a] = l;
72
+ }
73
+ return t;
74
+ }
75
+ function ir(e) {
76
+ return Object.values(e).some((r) => r !== null);
77
+ }
78
+ function bs(e) {
79
+ for (const r of Object.values(e))
80
+ if (r !== null)
81
+ return r;
82
+ return null;
83
+ }
84
+ function ps(e, r) {
85
+ return {
86
+ ...e,
87
+ [r]: null
88
+ };
89
+ }
90
+ function ws(e) {
91
+ const r = {};
92
+ for (const t of Object.keys(e))
93
+ r[t] = null;
94
+ return r;
95
+ }
96
+ function ys({
97
+ initialValues: e,
98
+ validationRules: r = {},
99
+ onSubmit: t
100
+ }) {
101
+ const [a, n] = S(e), [o, l] = S({}), [i, u] = S({}), [f, d] = S(!1), m = JSON.stringify(a) !== JSON.stringify(e), x = O(
102
+ (b) => {
103
+ const { name: v, value: w, type: T } = b.target;
104
+ let Y = w;
105
+ if (T === "checkbox" ? Y = b.target.checked : T === "number" && (Y = w ? Number(w) : ""), n((A) => ({
106
+ ...A,
107
+ [v]: Y
108
+ })), r[v]) {
109
+ const A = ve({ [v]: Y }, { [v]: r[v] });
110
+ l((q) => ({
111
+ ...q,
112
+ [v]: A[v]
113
+ }));
114
+ }
115
+ },
116
+ [r]
117
+ ), g = O(
118
+ (b) => {
119
+ const { name: v } = b.target;
120
+ u((w) => ({
121
+ ...w,
122
+ [v]: !0
123
+ }));
124
+ },
125
+ []
126
+ ), j = O((b, v) => {
127
+ if (n((w) => ({
128
+ ...w,
129
+ [b]: v
130
+ })), r[b]) {
131
+ const w = ve({ [b]: v }, { [b]: r[b] });
132
+ l((T) => ({
133
+ ...T,
134
+ [b]: w[b]
135
+ }));
136
+ }
137
+ }, [r]), C = O((b, v) => {
138
+ l((w) => ({
139
+ ...w,
140
+ [b]: v
141
+ }));
142
+ }, []), y = O(
143
+ async (b) => {
144
+ b.preventDefault();
145
+ const v = ve(a, r);
146
+ l(v);
147
+ const w = {};
148
+ for (const T of Object.keys(a))
149
+ w[T] = !0;
150
+ if (u(w), !ir(v) && t) {
151
+ d(!0);
152
+ try {
153
+ await t(a);
154
+ } catch (T) {
155
+ console.error("Form submission error:", T);
156
+ } finally {
157
+ d(!1);
158
+ }
159
+ }
160
+ },
161
+ [a, r, t]
162
+ ), R = O(() => {
163
+ n(e), l({}), u({}), d(!1);
164
+ }, [e]), I = O(
165
+ (b) => ({
166
+ name: b,
167
+ value: a[b] || "",
168
+ onChange: x,
169
+ onBlur: g
170
+ }),
171
+ [a, x, g]
172
+ ), k = O(
173
+ (b) => o[b] || null,
174
+ [o]
175
+ ), E = O(
176
+ (b) => i[b] || !1,
177
+ [i]
178
+ ), D = O(
179
+ (b) => a[b] !== e[b],
180
+ [a, e]
181
+ );
182
+ return {
183
+ values: a,
184
+ errors: o,
185
+ touched: i,
186
+ isSubmitting: f,
187
+ isDirty: m,
188
+ handleChange: x,
189
+ handleBlur: g,
190
+ setFieldValue: j,
191
+ setFieldError: C,
192
+ handleSubmit: y,
193
+ resetForm: R,
194
+ getFieldProps: I,
195
+ getFieldError: k,
196
+ isFieldTouched: E,
197
+ isFieldDirty: D
198
+ };
199
+ }
200
+ var ie = { exports: {} }, ee = {};
6
201
  /**
7
202
  * @license React
8
203
  * react-jsx-runtime.production.js
@@ -12,29 +207,29 @@ var E = { exports: {} }, T = {};
12
207
  * This source code is licensed under the MIT license found in the
13
208
  * LICENSE file in the root directory of this source tree.
14
209
  */
15
- var H;
16
- function ke() {
17
- if (H) return T;
18
- H = 1;
19
- var a = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
20
- function n(s, l, o) {
21
- var i = null;
22
- if (o !== void 0 && (i = "" + o), l.key !== void 0 && (i = "" + l.key), "key" in l) {
210
+ var ke;
211
+ function dr() {
212
+ if (ke) return ee;
213
+ ke = 1;
214
+ var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
215
+ function t(a, n, o) {
216
+ var l = null;
217
+ if (o !== void 0 && (l = "" + o), n.key !== void 0 && (l = "" + n.key), "key" in n) {
23
218
  o = {};
24
- for (var d in l)
25
- d !== "key" && (o[d] = l[d]);
26
- } else o = l;
27
- return l = o.ref, {
28
- $$typeof: a,
29
- type: s,
30
- key: i,
31
- ref: l !== void 0 ? l : null,
219
+ for (var i in n)
220
+ i !== "key" && (o[i] = n[i]);
221
+ } else o = n;
222
+ return n = o.ref, {
223
+ $$typeof: e,
224
+ type: a,
225
+ key: l,
226
+ ref: n !== void 0 ? n : null,
32
227
  props: o
33
228
  };
34
229
  }
35
- return T.Fragment = t, T.jsx = n, T.jsxs = n, T;
230
+ return ee.Fragment = r, ee.jsx = t, ee.jsxs = t, ee;
36
231
  }
37
- var k = {};
232
+ var re = {};
38
233
  /**
39
234
  * @license React
40
235
  * react-jsx-runtime.development.js
@@ -44,245 +239,245 @@ var k = {};
44
239
  * This source code is licensed under the MIT license found in the
45
240
  * LICENSE file in the root directory of this source tree.
46
241
  */
47
- var G;
48
- function Ee() {
49
- return G || (G = 1, process.env.NODE_ENV !== "production" && function() {
50
- function a(r) {
51
- if (r == null) return null;
52
- if (typeof r == "function")
53
- return r.$$typeof === de ? null : r.displayName || r.name || null;
54
- if (typeof r == "string") return r;
55
- switch (r) {
56
- case $:
242
+ var Te;
243
+ function ur() {
244
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
245
+ function e(c) {
246
+ if (c == null) return null;
247
+ if (typeof c == "function")
248
+ return c.$$typeof === Y ? null : c.displayName || c.name || null;
249
+ if (typeof c == "string") return c;
250
+ switch (c) {
251
+ case C:
57
252
  return "Fragment";
58
- case se:
253
+ case R:
59
254
  return "Profiler";
60
- case re:
255
+ case y:
61
256
  return "StrictMode";
62
- case ne:
257
+ case D:
63
258
  return "Suspense";
64
- case le:
259
+ case b:
65
260
  return "SuspenseList";
66
- case ie:
261
+ case T:
67
262
  return "Activity";
68
263
  }
69
- if (typeof r == "object")
70
- switch (typeof r.tag == "number" && console.error(
264
+ if (typeof c == "object")
265
+ switch (typeof c.tag == "number" && console.error(
71
266
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
72
- ), r.$$typeof) {
73
- case R:
267
+ ), c.$$typeof) {
268
+ case j:
74
269
  return "Portal";
75
- case te:
76
- return (r.displayName || "Context") + ".Provider";
77
- case ae:
78
- return (r._context.displayName || "Context") + ".Consumer";
79
- case oe:
80
- var c = r.render;
81
- return r = r.displayName, r || (r = c.displayName || c.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
82
- case ce:
83
- return c = r.displayName || null, c !== null ? c : a(r.type) || "Memo";
84
- case S:
85
- c = r._payload, r = r._init;
270
+ case k:
271
+ return (c.displayName || "Context") + ".Provider";
272
+ case I:
273
+ return (c._context.displayName || "Context") + ".Consumer";
274
+ case E:
275
+ var h = c.render;
276
+ return c = c.displayName, c || (c = h.displayName || h.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
277
+ case v:
278
+ return h = c.displayName || null, h !== null ? h : e(c.type) || "Memo";
279
+ case w:
280
+ h = c._payload, c = c._init;
86
281
  try {
87
- return a(r(c));
282
+ return e(c(h));
88
283
  } catch {
89
284
  }
90
285
  }
91
286
  return null;
92
287
  }
93
- function t(r) {
94
- return "" + r;
288
+ function r(c) {
289
+ return "" + c;
95
290
  }
96
- function n(r) {
291
+ function t(c) {
97
292
  try {
98
- t(r);
99
- var c = !1;
293
+ r(c);
294
+ var h = !1;
100
295
  } catch {
101
- c = !0;
296
+ h = !0;
102
297
  }
103
- if (c) {
104
- c = console;
105
- var u = c.error, x = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
106
- return u.call(
107
- c,
298
+ if (h) {
299
+ h = console;
300
+ var p = h.error, $ = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
301
+ return p.call(
302
+ h,
108
303
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- x
110
- ), t(r);
304
+ $
305
+ ), r(c);
111
306
  }
112
307
  }
113
- function s(r) {
114
- if (r === $) return "<>";
115
- if (typeof r == "object" && r !== null && r.$$typeof === S)
308
+ function a(c) {
309
+ if (c === C) return "<>";
310
+ if (typeof c == "object" && c !== null && c.$$typeof === w)
116
311
  return "<...>";
117
312
  try {
118
- var c = a(r);
119
- return c ? "<" + c + ">" : "<...>";
313
+ var h = e(c);
314
+ return h ? "<" + h + ">" : "<...>";
120
315
  } catch {
121
316
  return "<...>";
122
317
  }
123
318
  }
124
- function l() {
125
- var r = _.A;
126
- return r === null ? null : r.getOwner();
319
+ function n() {
320
+ var c = A.A;
321
+ return c === null ? null : c.getOwner();
127
322
  }
128
323
  function o() {
129
324
  return Error("react-stack-top-frame");
130
325
  }
131
- function i(r) {
132
- if (M.call(r, "key")) {
133
- var c = Object.getOwnPropertyDescriptor(r, "key").get;
134
- if (c && c.isReactWarning) return !1;
326
+ function l(c) {
327
+ if (q.call(c, "key")) {
328
+ var h = Object.getOwnPropertyDescriptor(c, "key").get;
329
+ if (h && h.isReactWarning) return !1;
135
330
  }
136
- return r.key !== void 0;
331
+ return c.key !== void 0;
137
332
  }
138
- function d(r, c) {
139
- function u() {
140
- z || (z = !0, console.error(
333
+ function i(c, h) {
334
+ function p() {
335
+ Q || (Q = !0, console.error(
141
336
  "%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)",
142
- c
337
+ h
143
338
  ));
144
339
  }
145
- u.isReactWarning = !0, Object.defineProperty(r, "key", {
146
- get: u,
340
+ p.isReactWarning = !0, Object.defineProperty(c, "key", {
341
+ get: p,
147
342
  configurable: !0
148
343
  });
149
344
  }
150
- function p() {
151
- var r = a(this.type);
152
- return F[r] || (F[r] = !0, console.error(
345
+ function u() {
346
+ var c = e(this.type);
347
+ return ne[c] || (ne[c] = !0, console.error(
153
348
  "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."
154
- )), r = this.props.ref, r !== void 0 ? r : null;
349
+ )), c = this.props.ref, c !== void 0 ? c : null;
155
350
  }
156
- function j(r, c, u, x, w, b, O, B) {
157
- return u = b.ref, r = {
158
- $$typeof: V,
159
- type: r,
160
- key: c,
161
- props: b,
162
- _owner: w
163
- }, (u !== void 0 ? u : null) !== null ? Object.defineProperty(r, "ref", {
351
+ function f(c, h, p, $, L, z, ce, K) {
352
+ return p = z.ref, c = {
353
+ $$typeof: g,
354
+ type: c,
355
+ key: h,
356
+ props: z,
357
+ _owner: L
358
+ }, (p !== void 0 ? p : null) !== null ? Object.defineProperty(c, "ref", {
164
359
  enumerable: !1,
165
- get: p
166
- }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
360
+ get: u
361
+ }) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
167
362
  configurable: !1,
168
363
  enumerable: !1,
169
364
  writable: !0,
170
365
  value: 0
171
- }), Object.defineProperty(r, "_debugInfo", {
366
+ }), Object.defineProperty(c, "_debugInfo", {
172
367
  configurable: !1,
173
368
  enumerable: !1,
174
369
  writable: !0,
175
370
  value: null
176
- }), Object.defineProperty(r, "_debugStack", {
371
+ }), Object.defineProperty(c, "_debugStack", {
177
372
  configurable: !1,
178
373
  enumerable: !1,
179
374
  writable: !0,
180
- value: O
181
- }), Object.defineProperty(r, "_debugTask", {
375
+ value: ce
376
+ }), Object.defineProperty(c, "_debugTask", {
182
377
  configurable: !1,
183
378
  enumerable: !1,
184
379
  writable: !0,
185
- value: B
186
- }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
380
+ value: K
381
+ }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
187
382
  }
188
- function m(r, c, u, x, w, b, O, B) {
189
- var v = c.children;
190
- if (v !== void 0)
191
- if (x)
192
- if (ue(v)) {
193
- for (x = 0; x < v.length; x++)
194
- g(v[x]);
195
- Object.freeze && Object.freeze(v);
383
+ function d(c, h, p, $, L, z, ce, K) {
384
+ var N = h.children;
385
+ if (N !== void 0)
386
+ if ($)
387
+ if (fe(N)) {
388
+ for ($ = 0; $ < N.length; $++)
389
+ m(N[$]);
390
+ Object.freeze && Object.freeze(N);
196
391
  } else
197
392
  console.error(
198
393
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
199
394
  );
200
- else g(v);
201
- if (M.call(c, "key")) {
202
- v = a(r);
203
- var y = Object.keys(c).filter(function(me) {
204
- return me !== "key";
395
+ else m(N);
396
+ if (q.call(h, "key")) {
397
+ N = e(c);
398
+ var B = Object.keys(h).filter(function(xe) {
399
+ return xe !== "key";
205
400
  });
206
- x = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", W[v + x] || (y = 0 < y.length ? "{" + y.join(": ..., ") + ": ...}" : "{}", console.error(
401
+ $ = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", le[N + $] || (B = 0 < B.length ? "{" + B.join(": ..., ") + ": ...}" : "{}", console.error(
207
402
  `A props object containing a "key" prop is being spread into JSX:
208
403
  let props = %s;
209
404
  <%s {...props} />
210
405
  React keys must be passed directly to JSX without using spread:
211
406
  let props = %s;
212
407
  <%s key={someKey} {...props} />`,
213
- x,
214
- v,
215
- y,
216
- v
217
- ), W[v + x] = !0);
408
+ $,
409
+ N,
410
+ B,
411
+ N
412
+ ), le[N + $] = !0);
218
413
  }
219
- if (v = null, u !== void 0 && (n(u), v = "" + u), i(c) && (n(c.key), v = "" + c.key), "key" in c) {
220
- u = {};
221
- for (var P in c)
222
- P !== "key" && (u[P] = c[P]);
223
- } else u = c;
224
- return v && d(
225
- u,
226
- typeof r == "function" ? r.displayName || r.name || "Unknown" : r
227
- ), j(
228
- r,
229
- v,
230
- b,
231
- w,
232
- l(),
233
- u,
234
- O,
235
- B
414
+ if (N = null, p !== void 0 && (t(p), N = "" + p), l(h) && (t(h.key), N = "" + h.key), "key" in h) {
415
+ p = {};
416
+ for (var V in h)
417
+ V !== "key" && (p[V] = h[V]);
418
+ } else p = h;
419
+ return N && i(
420
+ p,
421
+ typeof c == "function" ? c.displayName || c.name || "Unknown" : c
422
+ ), f(
423
+ c,
424
+ N,
425
+ z,
426
+ L,
427
+ n(),
428
+ p,
429
+ ce,
430
+ K
236
431
  );
237
432
  }
238
- function g(r) {
239
- typeof r == "object" && r !== null && r.$$typeof === V && r._store && (r._store.validated = 1);
433
+ function m(c) {
434
+ typeof c == "object" && c !== null && c.$$typeof === g && c._store && (c._store.validated = 1);
240
435
  }
241
- var f = I, V = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), re = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), ae = Symbol.for("react.consumer"), te = Symbol.for("react.context"), oe = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), le = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), de = Symbol.for("react.client.reference"), _ = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, ue = Array.isArray, A = console.createTask ? console.createTask : function() {
436
+ var x = X, g = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), k = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), A = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, fe = Array.isArray, Z = console.createTask ? console.createTask : function() {
242
437
  return null;
243
438
  };
244
- f = {
245
- "react-stack-bottom-frame": function(r) {
246
- return r();
439
+ x = {
440
+ "react-stack-bottom-frame": function(c) {
441
+ return c();
247
442
  }
248
443
  };
249
- var z, F = {}, Y = f["react-stack-bottom-frame"].bind(
250
- f,
444
+ var Q, ne = {}, G = x["react-stack-bottom-frame"].bind(
445
+ x,
251
446
  o
252
- )(), U = A(s(o)), W = {};
253
- k.Fragment = $, k.jsx = function(r, c, u, x, w) {
254
- var b = 1e4 > _.recentlyCreatedOwnerStacks++;
255
- return m(
256
- r,
447
+ )(), oe = Z(a(o)), le = {};
448
+ re.Fragment = C, re.jsx = function(c, h, p, $, L) {
449
+ var z = 1e4 > A.recentlyCreatedOwnerStacks++;
450
+ return d(
257
451
  c,
258
- u,
452
+ h,
453
+ p,
259
454
  !1,
260
- x,
261
- w,
262
- b ? Error("react-stack-top-frame") : Y,
263
- b ? A(s(r)) : U
455
+ $,
456
+ L,
457
+ z ? Error("react-stack-top-frame") : G,
458
+ z ? Z(a(c)) : oe
264
459
  );
265
- }, k.jsxs = function(r, c, u, x, w) {
266
- var b = 1e4 > _.recentlyCreatedOwnerStacks++;
267
- return m(
268
- r,
460
+ }, re.jsxs = function(c, h, p, $, L) {
461
+ var z = 1e4 > A.recentlyCreatedOwnerStacks++;
462
+ return d(
269
463
  c,
270
- u,
464
+ h,
465
+ p,
271
466
  !0,
272
- x,
273
- w,
274
- b ? Error("react-stack-top-frame") : Y,
275
- b ? A(s(r)) : U
467
+ $,
468
+ L,
469
+ z ? Error("react-stack-top-frame") : G,
470
+ z ? Z(a(c)) : oe
276
471
  );
277
472
  };
278
- }()), k;
473
+ }()), re;
279
474
  }
280
- var J;
281
- function Ce() {
282
- return J || (J = 1, process.env.NODE_ENV === "production" ? E.exports = ke() : E.exports = Ee()), E.exports;
475
+ var Ve;
476
+ function mr() {
477
+ return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? ie.exports = dr() : ie.exports = ur()), ie.exports;
283
478
  }
284
- var e = Ce();
285
- const Re = {
479
+ var s = mr();
480
+ const fr = {
286
481
  bg: "bg-indigo-600",
287
482
  activeBg: "bg-indigo-700",
288
483
  text: "text-indigo-200",
@@ -290,66 +485,66 @@ const Re = {
290
485
  hoverBg: "hover:bg-indigo-700",
291
486
  hoverText: "hover:text-white"
292
487
  };
293
- function h(...a) {
294
- return a.filter(Boolean).join(" ");
488
+ function _(...e) {
489
+ return e.filter(Boolean).join(" ");
295
490
  }
296
- function X({ item: a, colorScheme: t }) {
297
- const [n, s] = N(a.current || a.children?.some((o) => o.current)), l = a.children && a.children.length > 0;
298
- return /* @__PURE__ */ e.jsxs("li", { children: [
299
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
491
+ function Re({ item: e, colorScheme: r }) {
492
+ const [t, a] = S(e.current || e.children?.some((o) => o.current)), n = e.children && e.children.length > 0;
493
+ return /* @__PURE__ */ s.jsxs("li", { children: [
494
+ /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(
300
495
  "a",
301
496
  {
302
- href: l ? void 0 : a.href,
497
+ href: n ? void 0 : e.href,
303
498
  onClick: (o) => {
304
- l && (o.preventDefault(), s(!n));
499
+ n && (o.preventDefault(), a(!t));
305
500
  },
306
- className: h(
307
- a.current ? `${t.activeBg} ${t.activeText}` : `${t.text} ${t.hoverBg} ${t.hoverText}`,
501
+ className: _(
502
+ e.current ? `${r.activeBg} ${r.activeText}` : `${r.text} ${r.hoverBg} ${r.hoverText}`,
308
503
  "group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
309
- l ? "cursor-pointer" : ""
504
+ n ? "cursor-pointer" : ""
310
505
  ),
311
506
  children: [
312
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-3", children: [
313
- /* @__PURE__ */ e.jsx(
314
- a.icon,
507
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-x-3", children: [
508
+ /* @__PURE__ */ s.jsx(
509
+ e.icon,
315
510
  {
316
511
  "aria-hidden": "true",
317
- className: h(
318
- a.current ? t.activeText : `${t.text} group-${t.hoverText}`,
512
+ className: _(
513
+ e.current ? r.activeText : `${r.text} group-${r.hoverText}`,
319
514
  "size-6 shrink-0"
320
515
  )
321
516
  }
322
517
  ),
323
- a.name
518
+ e.name
324
519
  ] }),
325
- l && /* @__PURE__ */ e.jsx(
326
- we,
520
+ n && /* @__PURE__ */ s.jsx(
521
+ Ne,
327
522
  {
328
- className: h(
523
+ className: _(
329
524
  "size-5 shrink-0 transition-transform",
330
- n ? "rotate-180" : "",
331
- a.current ? t.activeText : t.text
525
+ t ? "rotate-180" : "",
526
+ e.current ? r.activeText : r.text
332
527
  )
333
528
  }
334
529
  )
335
530
  ]
336
531
  }
337
532
  ) }),
338
- l && n && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: a.children.map((o) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
533
+ n && t && /* @__PURE__ */ s.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: e.children.map((o) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
339
534
  "a",
340
535
  {
341
536
  href: o.href,
342
- className: h(
343
- o.current ? `${t.activeBg} ${t.activeText}` : `${t.text} ${t.hoverBg} ${t.hoverText}`,
537
+ className: _(
538
+ o.current ? `${r.activeBg} ${r.activeText}` : `${r.text} ${r.hoverBg} ${r.hoverText}`,
344
539
  "group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
345
540
  ),
346
541
  children: [
347
- /* @__PURE__ */ e.jsx(
542
+ /* @__PURE__ */ s.jsx(
348
543
  o.icon,
349
544
  {
350
545
  "aria-hidden": "true",
351
- className: h(
352
- o.current ? t.activeText : `${t.text} group-${t.hoverText}`,
546
+ className: _(
547
+ o.current ? r.activeText : `${r.text} group-${r.hoverText}`,
353
548
  "size-5 shrink-0"
354
549
  )
355
550
  }
@@ -360,118 +555,118 @@ function X({ item: a, colorScheme: t }) {
360
555
  ) }, o.name)) })
361
556
  ] });
362
557
  }
363
- function Ge({ company: a, profile: t, navigation: n, colorScheme: s = Re }) {
364
- const [l, o] = N(!1);
365
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
366
- /* @__PURE__ */ e.jsxs(fe, { open: l, onClose: o, className: "relative z-50 lg:hidden", children: [
367
- /* @__PURE__ */ e.jsx(
368
- he,
558
+ function js({ company: e, profile: r, navigation: t, colorScheme: a = fr }) {
559
+ const [n, o] = S(!1);
560
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { children: [
561
+ /* @__PURE__ */ s.jsxs(Qe, { open: n, onClose: o, className: "relative z-50 lg:hidden", children: [
562
+ /* @__PURE__ */ s.jsx(
563
+ Ke,
369
564
  {
370
565
  transition: !0,
371
566
  className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
372
567
  }
373
568
  ),
374
- /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
375
- ge,
569
+ /* @__PURE__ */ s.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ s.jsxs(
570
+ er,
376
571
  {
377
572
  transition: !0,
378
573
  className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
379
574
  children: [
380
- /* @__PURE__ */ e.jsx(be, { 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: () => o(!1), className: "-m-2.5 p-2.5", children: [
381
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
382
- /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true", className: "size-6 text-white" })
575
+ /* @__PURE__ */ s.jsx(rr, { children: /* @__PURE__ */ s.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__ */ s.jsxs("button", { type: "button", onClick: () => o(!1), className: "-m-2.5 p-2.5", children: [
576
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Close sidebar" }),
577
+ /* @__PURE__ */ s.jsx(sr, { "aria-hidden": "true", className: "size-6 text-white" })
383
578
  ] }) }) }),
384
- /* @__PURE__ */ e.jsxs("div", { className: h("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", s.bg), children: [
385
- /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
579
+ /* @__PURE__ */ s.jsxs("div", { className: _("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
580
+ /* @__PURE__ */ s.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ s.jsx(
386
581
  "img",
387
582
  {
388
- alt: a.name,
389
- src: a.logo,
583
+ alt: e.name,
584
+ src: e.logo,
390
585
  className: "h-8 w-auto"
391
586
  }
392
587
  ) }),
393
- /* @__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: n.map((i) => /* @__PURE__ */ e.jsx(X, { item: i, colorScheme: s }, i.name)) }) }) }) })
588
+ /* @__PURE__ */ s.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ s.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((l) => /* @__PURE__ */ s.jsx(Re, { item: l, colorScheme: a }, l.name)) }) }) }) })
394
589
  ] })
395
590
  ]
396
591
  }
397
592
  ) })
398
593
  ] }),
399
- /* @__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: h("flex grow flex-col gap-y-5 overflow-y-auto px-6", s.bg), children: [
400
- /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
594
+ /* @__PURE__ */ s.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ s.jsxs("div", { className: _("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
595
+ /* @__PURE__ */ s.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ s.jsx(
401
596
  "img",
402
597
  {
403
- alt: a.name,
404
- src: a.logo,
598
+ alt: e.name,
599
+ src: e.logo,
405
600
  className: "h-8 w-auto"
406
601
  }
407
602
  ) }),
408
- /* @__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: [
409
- /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: n.map((i) => /* @__PURE__ */ e.jsx(X, { item: i, colorScheme: s }, i.name)) }) }),
410
- /* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
603
+ /* @__PURE__ */ s.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ s.jsxs("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: [
604
+ /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((l) => /* @__PURE__ */ s.jsx(Re, { item: l, colorScheme: a }, l.name)) }) }),
605
+ /* @__PURE__ */ s.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ s.jsxs(
411
606
  "a",
412
607
  {
413
608
  href: "#",
414
- className: h(
609
+ className: _(
415
610
  "flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
416
- s.activeText,
417
- s.hoverBg
611
+ a.activeText,
612
+ a.hoverBg
418
613
  ),
419
614
  children: [
420
- /* @__PURE__ */ e.jsx(
615
+ /* @__PURE__ */ s.jsx(
421
616
  "img",
422
617
  {
423
- alt: t.name,
424
- src: t.image,
425
- className: h("size-8 rounded-full", s.activeBg)
618
+ alt: r.name,
619
+ src: r.image,
620
+ className: _("size-8 rounded-full", a.activeBg)
426
621
  }
427
622
  ),
428
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
429
- /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: t.name })
623
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Your profile" }),
624
+ /* @__PURE__ */ s.jsx("span", { "aria-hidden": "true", children: r.name })
430
625
  ]
431
626
  }
432
627
  ) })
433
628
  ] }) })
434
629
  ] }) }),
435
- /* @__PURE__ */ e.jsxs("div", { className: h("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden", s.bg), children: [
436
- /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => o(!0), className: h("-m-2.5 p-2.5 lg:hidden", s.text), children: [
437
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
438
- /* @__PURE__ */ e.jsx(je, { "aria-hidden": "true", className: "size-6" })
630
+ /* @__PURE__ */ s.jsxs("div", { className: _("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: [
631
+ /* @__PURE__ */ s.jsxs("button", { type: "button", onClick: () => o(!0), className: _("-m-2.5 p-2.5 lg:hidden", a.text), children: [
632
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Open sidebar" }),
633
+ /* @__PURE__ */ s.jsx(tr, { "aria-hidden": "true", className: "size-6" })
439
634
  ] }),
440
- /* @__PURE__ */ e.jsx("div", { className: h("flex-1 text-sm/6 font-semibold", s.activeText), children: "Dashboard" }),
441
- /* @__PURE__ */ e.jsxs("a", { href: "#", children: [
442
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
443
- /* @__PURE__ */ e.jsx(
635
+ /* @__PURE__ */ s.jsx("div", { className: _("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
636
+ /* @__PURE__ */ s.jsxs("a", { href: "#", children: [
637
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Your profile" }),
638
+ /* @__PURE__ */ s.jsx(
444
639
  "img",
445
640
  {
446
- alt: t.name,
447
- src: t.image,
448
- className: h("size-8 rounded-full", s.activeBg)
641
+ alt: r.name,
642
+ src: r.image,
643
+ className: _("size-8 rounded-full", a.activeBg)
449
644
  }
450
645
  )
451
646
  ] })
452
647
  ] })
453
648
  ] }) });
454
649
  }
455
- const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value: n }) => {
456
- const s = `rgb(${n})`;
457
- 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: [
458
- /* @__PURE__ */ e.jsx(
650
+ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, value: t }) => {
651
+ const a = `rgb(${t})`;
652
+ return /* @__PURE__ */ s.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: [
653
+ /* @__PURE__ */ s.jsx(
459
654
  "div",
460
655
  {
461
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${K(t)}`
656
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Le(r)}`
462
657
  }
463
658
  ),
464
- /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
465
- /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: a }),
466
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: t }),
467
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: s })
659
+ /* @__PURE__ */ s.jsxs("div", { className: "text-center", children: [
660
+ /* @__PURE__ */ s.jsx("div", { className: "text-sm font-medium text-text-primary", children: e }),
661
+ /* @__PURE__ */ s.jsx("div", { className: "text-xs text-text-muted font-mono", children: r }),
662
+ /* @__PURE__ */ s.jsx("div", { className: "text-xs text-text-secondary", children: a })
468
663
  ] })
469
664
  ] });
470
- }, q = ({ title: a, colors: t }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
471
- /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: a }),
472
- /* @__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: t.map((n) => /* @__PURE__ */ e.jsx($e, { ...n }, n.name)) })
473
- ] }), _e = () => {
474
- const a = [
665
+ }, Ee = ({ title: e, colors: r }) => /* @__PURE__ */ s.jsxs("div", { className: "space-y-4", children: [
666
+ /* @__PURE__ */ s.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: e }),
667
+ /* @__PURE__ */ s.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: r.map((t) => /* @__PURE__ */ s.jsx(xr, { ...t }, t.name)) })
668
+ ] }), gr = () => {
669
+ const e = [
475
670
  {
476
671
  title: "Success Colors (Green)",
477
672
  colors: [
@@ -520,7 +715,7 @@ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value
520
715
  { name: "950", cssVar: "--color-error-950", value: "69 10 10" }
521
716
  ]
522
717
  }
523
- ], t = [
718
+ ], r = [
524
719
  {
525
720
  title: "Reseda Green",
526
721
  colors: [
@@ -671,7 +866,7 @@ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value
671
866
  { name: "900", cssVar: "--color-beaver-900", value: "235 229 224" }
672
867
  ]
673
868
  }
674
- ], n = [
869
+ ], t = [
675
870
  { name: "Background", cssVar: "--color-background" },
676
871
  { name: "Surface", cssVar: "--color-surface" },
677
872
  { name: "Surface Variant", cssVar: "--color-surface-variant" },
@@ -681,92 +876,92 @@ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value
681
876
  { name: "Border", cssVar: "--color-border" },
682
877
  { name: "Border Subtle", cssVar: "--color-border-subtle" }
683
878
  ];
684
- return /* @__PURE__ */ e.jsxs("div", { className: "p-8 space-y-8 bg-background min-h-screen", children: [
685
- /* @__PURE__ */ e.jsxs("div", { className: "text-center space-y-2", children: [
686
- /* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
687
- /* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
879
+ return /* @__PURE__ */ s.jsxs("div", { className: "p-8 space-y-8 bg-background min-h-screen", children: [
880
+ /* @__PURE__ */ s.jsxs("div", { className: "text-center space-y-2", children: [
881
+ /* @__PURE__ */ s.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
882
+ /* @__PURE__ */ s.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
688
883
  ] }),
689
- t.map((s) => /* @__PURE__ */ e.jsx(q, { ...s }, s.title)),
690
- a.map((s) => /* @__PURE__ */ e.jsx(q, { ...s }, s.title)),
691
- /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
692
- /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
693
- /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: n.map((s) => /* @__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: [
694
- /* @__PURE__ */ e.jsx(
884
+ r.map((a) => /* @__PURE__ */ s.jsx(Ee, { ...a }, a.title)),
885
+ e.map((a) => /* @__PURE__ */ s.jsx(Ee, { ...a }, a.title)),
886
+ /* @__PURE__ */ s.jsxs("div", { className: "space-y-4", children: [
887
+ /* @__PURE__ */ s.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
888
+ /* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((a) => /* @__PURE__ */ s.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: [
889
+ /* @__PURE__ */ s.jsx(
695
890
  "div",
696
891
  {
697
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${K(s.cssVar)}`
892
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Le(a.cssVar)}`
698
893
  }
699
894
  ),
700
- /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
701
- /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: s.name }),
702
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: s.cssVar })
895
+ /* @__PURE__ */ s.jsxs("div", { className: "text-center", children: [
896
+ /* @__PURE__ */ s.jsx("div", { className: "text-sm font-medium text-text-primary", children: a.name }),
897
+ /* @__PURE__ */ s.jsx("div", { className: "text-xs text-text-muted font-mono", children: a.cssVar })
703
898
  ] })
704
- ] }, s.name)) })
899
+ ] }, a.name)) })
705
900
  ] }),
706
- /* @__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" }) })
901
+ /* @__PURE__ */ s.jsx("div", { className: "text-center pt-8 border-t border-border-subtle", children: /* @__PURE__ */ s.jsx("p", { className: "text-text-muted text-sm", children: "Toggle between light and dark themes to see how semantic colors adapt" }) })
707
902
  ] });
708
- }, ee = xe(void 0), Ae = ({
709
- children: a,
710
- defaultTheme: t = "system",
711
- storageKey: n = "acemyjob-ui-theme"
903
+ }, Me = ue(void 0), vr = ({
904
+ children: e,
905
+ defaultTheme: r = "system",
906
+ storageKey: t = "acemyjob-ui-theme"
712
907
  }) => {
713
- const [s, l] = N(t), [o, i] = N("light"), [d, p] = N(!1);
714
- L(() => {
715
- const m = localStorage.getItem(n);
716
- m && l(m), p(!0);
717
- }, [n]), L(() => {
718
- if (!d) return;
719
- const m = window.document.documentElement, g = () => {
720
- let f;
721
- s === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = s, i(f), m.classList.remove("light", "dark"), m.classList.add(f);
908
+ const [a, n] = S(r), [o, l] = S("light"), [i, u] = S(!1);
909
+ M(() => {
910
+ const d = localStorage.getItem(t);
911
+ d && n(d), u(!0);
912
+ }, [t]), M(() => {
913
+ if (!i) return;
914
+ const d = window.document.documentElement, m = () => {
915
+ let x;
916
+ a === "system" ? x = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : x = a, l(x), d.classList.remove("light", "dark"), d.classList.add(x);
722
917
  };
723
- if (g(), s === "system") {
724
- const f = window.matchMedia("(prefers-color-scheme: dark)"), V = () => g();
725
- return f.addEventListener("change", V), () => f.removeEventListener("change", V);
918
+ if (m(), a === "system") {
919
+ const x = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
920
+ return x.addEventListener("change", g), () => x.removeEventListener("change", g);
726
921
  }
727
- }, [s, d]);
728
- const j = {
729
- theme: s,
730
- setTheme: (m) => {
731
- localStorage.setItem(n, m), l(m);
922
+ }, [a, i]);
923
+ const f = {
924
+ theme: a,
925
+ setTheme: (d) => {
926
+ localStorage.setItem(t, d), n(d);
732
927
  },
733
928
  resolvedTheme: o
734
929
  };
735
- return /* @__PURE__ */ e.jsx(ee.Provider, { value: j, children: a });
736
- }, Oe = () => {
737
- const a = ve(ee);
738
- if (a === void 0)
930
+ return /* @__PURE__ */ s.jsx(Me.Provider, { value: f, children: e });
931
+ }, hr = () => {
932
+ const e = te(Me);
933
+ if (e === void 0)
739
934
  throw new Error("useTheme must be used within a ThemeProvider");
740
- return a;
741
- }, Be = () => {
742
- const { theme: a, setTheme: t } = Oe(), [n, s] = N(!1);
743
- if (L(() => {
744
- s(!0);
745
- }, []), !n)
746
- return /* @__PURE__ */ e.jsxs(
935
+ return e;
936
+ }, br = () => {
937
+ const { theme: e, setTheme: r } = hr(), [t, a] = S(!1);
938
+ if (M(() => {
939
+ a(!0);
940
+ }, []), !t)
941
+ return /* @__PURE__ */ s.jsxs(
747
942
  "button",
748
943
  {
749
944
  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",
750
945
  "aria-label": "Loading theme toggle",
751
946
  children: [
752
- /* @__PURE__ */ e.jsx("div", { className: "w-4 h-4 animate-pulse bg-text-muted rounded" }),
753
- /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: "Loading..." })
947
+ /* @__PURE__ */ s.jsx("div", { className: "w-4 h-4 animate-pulse bg-text-muted rounded" }),
948
+ /* @__PURE__ */ s.jsx("span", { className: "hidden sm:inline", children: "Loading..." })
754
949
  ]
755
950
  }
756
951
  );
757
- const l = () => {
758
- t(a === "light" ? "dark" : a === "dark" ? "system" : "light");
952
+ const n = () => {
953
+ r(e === "light" ? "dark" : e === "dark" ? "system" : "light");
759
954
  }, o = () => {
760
- switch (a) {
955
+ switch (e) {
761
956
  case "light":
762
- 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: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" }) });
957
+ return /* @__PURE__ */ s.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ s.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" }) });
763
958
  case "dark":
764
- 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: "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" }) });
959
+ return /* @__PURE__ */ s.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ s.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" }) });
765
960
  case "system":
766
- 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" }) });
961
+ return /* @__PURE__ */ s.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ s.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" }) });
767
962
  }
768
- }, i = () => {
769
- switch (a) {
963
+ }, l = () => {
964
+ switch (e) {
770
965
  case "light":
771
966
  return "Light";
772
967
  case "dark":
@@ -775,22 +970,22 @@ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value
775
970
  return "System";
776
971
  }
777
972
  };
778
- return /* @__PURE__ */ e.jsxs(
973
+ return /* @__PURE__ */ s.jsxs(
779
974
  "button",
780
975
  {
781
- onClick: l,
976
+ onClick: n,
782
977
  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",
783
- "aria-label": `Current theme: ${i()}. Click to cycle themes.`,
978
+ "aria-label": `Current theme: ${l()}. Click to cycle themes.`,
784
979
  children: [
785
980
  o(),
786
- /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: i() })
981
+ /* @__PURE__ */ s.jsx("span", { className: "hidden sm:inline", children: l() })
787
982
  ]
788
983
  }
789
984
  );
790
- }, Pe = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
791
- /* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Be, {}) }),
792
- /* @__PURE__ */ e.jsx(_e, {})
793
- ] }), Je = () => /* @__PURE__ */ e.jsx(Ae, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Pe, {}) }), Z = {
985
+ }, pr = () => /* @__PURE__ */ s.jsxs("div", { className: "relative", children: [
986
+ /* @__PURE__ */ s.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ s.jsx(br, {}) }),
987
+ /* @__PURE__ */ s.jsx(gr, {})
988
+ ] }), Ns = () => /* @__PURE__ */ s.jsx(vr, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ s.jsx(pr, {}) }), $e = {
794
989
  variant: {
795
990
  default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
796
991
  destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
@@ -808,35 +1003,35 @@ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value
808
1003
  xl: "h-12 rounded-md px-10 text-base",
809
1004
  icon: "h-10 w-10"
810
1005
  }
811
- }, Le = "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", Ie = (...a) => a.filter(Boolean).join(" "), D = I.forwardRef(
1006
+ }, wr = "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", yr = (...e) => e.filter(Boolean).join(" "), U = X.forwardRef(
812
1007
  ({
813
- className: a,
814
- variant: t = "default",
815
- size: n = "default",
816
- fullWidth: s = !1,
817
- loading: l = !1,
1008
+ className: e,
1009
+ variant: r = "default",
1010
+ size: t = "default",
1011
+ fullWidth: a = !1,
1012
+ loading: n = !1,
818
1013
  leftIcon: o,
819
- rightIcon: i,
820
- children: d,
821
- disabled: p,
822
- ...j
823
- }, m) => {
824
- const g = p || l, f = Ie(
825
- Le,
826
- Z.variant[t],
827
- Z.size[n],
828
- s ? "w-full" : "",
829
- a
1014
+ rightIcon: l,
1015
+ children: i,
1016
+ disabled: u,
1017
+ ...f
1018
+ }, d) => {
1019
+ const m = u || n, x = yr(
1020
+ wr,
1021
+ $e.variant[r],
1022
+ $e.size[t],
1023
+ a ? "w-full" : "",
1024
+ e
830
1025
  );
831
- return /* @__PURE__ */ e.jsxs(
1026
+ return /* @__PURE__ */ s.jsxs(
832
1027
  "button",
833
1028
  {
834
- className: f,
835
- ref: m,
836
- disabled: g,
837
- ...j,
1029
+ className: x,
1030
+ ref: d,
1031
+ disabled: m,
1032
+ ...f,
838
1033
  children: [
839
- l && /* @__PURE__ */ e.jsxs(
1034
+ n && /* @__PURE__ */ s.jsxs(
840
1035
  "svg",
841
1036
  {
842
1037
  className: "mr-2 h-4 w-4 animate-spin",
@@ -844,7 +1039,7 @@ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value
844
1039
  fill: "none",
845
1040
  viewBox: "0 0 24 24",
846
1041
  children: [
847
- /* @__PURE__ */ e.jsx(
1042
+ /* @__PURE__ */ s.jsx(
848
1043
  "circle",
849
1044
  {
850
1045
  className: "opacity-25",
@@ -855,7 +1050,7 @@ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value
855
1050
  strokeWidth: "4"
856
1051
  }
857
1052
  ),
858
- /* @__PURE__ */ e.jsx(
1053
+ /* @__PURE__ */ s.jsx(
859
1054
  "path",
860
1055
  {
861
1056
  className: "opacity-75",
@@ -866,16 +1061,16 @@ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value
866
1061
  ]
867
1062
  }
868
1063
  ),
869
- !l && o && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: o }),
870
- d,
871
- !l && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
1064
+ !n && o && /* @__PURE__ */ s.jsx("span", { className: "mr-2", children: o }),
1065
+ i,
1066
+ !n && l && /* @__PURE__ */ s.jsx("span", { className: "ml-2", children: l })
872
1067
  ]
873
1068
  }
874
1069
  );
875
1070
  }
876
1071
  );
877
- D.displayName = "Button";
878
- const Q = {
1072
+ U.displayName = "Button";
1073
+ const De = {
879
1074
  provider: {
880
1075
  linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
881
1076
  },
@@ -884,145 +1079,145 @@ const Q = {
884
1079
  right: "flex-row-reverse",
885
1080
  only: "justify-center"
886
1081
  }
887
- }, De = (...a) => a.filter(Boolean).join(" "), Se = I.forwardRef(
1082
+ }, jr = (...e) => e.filter(Boolean).join(" "), Nr = X.forwardRef(
888
1083
  ({
889
- className: a,
890
- provider: t,
891
- iconPosition: n = "left",
892
- icon: s,
893
- showText: l = !0,
1084
+ className: e,
1085
+ provider: r,
1086
+ iconPosition: t = "left",
1087
+ icon: a,
1088
+ showText: n = !0,
894
1089
  children: o,
895
- size: i = "default",
896
- fullWidth: d = !0,
897
- ...p
898
- }, j) => {
899
- const g = s || {
900
- 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" }) })
901
- }[t], V = o || (l ? {
1090
+ size: l = "default",
1091
+ fullWidth: i = !0,
1092
+ ...u
1093
+ }, f) => {
1094
+ const m = a || {
1095
+ linkedin: /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.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" }) })
1096
+ }[r], g = o || (n ? {
902
1097
  linkedin: "Continue with LinkedIn"
903
- }[t] : ""), R = De(
1098
+ }[r] : ""), j = jr(
904
1099
  "relative overflow-hidden transition-all duration-200",
905
- Q.provider[t],
906
- Q.iconPosition[n],
907
- a
1100
+ De.provider[r],
1101
+ De.iconPosition[t],
1102
+ e
908
1103
  );
909
- return /* @__PURE__ */ e.jsxs(
910
- D,
1104
+ return /* @__PURE__ */ s.jsxs(
1105
+ U,
911
1106
  {
912
- ref: j,
1107
+ ref: f,
913
1108
  variant: "none",
914
- className: R,
915
- size: i,
916
- fullWidth: d,
917
- leftIcon: n === "left" ? g : void 0,
918
- rightIcon: n === "right" ? g : void 0,
919
- ...p,
1109
+ className: j,
1110
+ size: l,
1111
+ fullWidth: i,
1112
+ leftIcon: t === "left" ? m : void 0,
1113
+ rightIcon: t === "right" ? m : void 0,
1114
+ ...u,
920
1115
  children: [
921
- n === "only" && g,
922
- n !== "only" && V
1116
+ t === "only" && m,
1117
+ t !== "only" && g
923
1118
  ]
924
1119
  }
925
1120
  );
926
1121
  }
927
1122
  );
928
- Se.displayName = "SocialButton";
929
- function Xe({
930
- children: a,
931
- variant: t = "default",
932
- isActive: n = !1,
933
- onClick: s,
934
- className: l = ""
1123
+ Nr.displayName = "SocialButton";
1124
+ function Cs({
1125
+ children: e,
1126
+ variant: r = "default",
1127
+ isActive: t = !1,
1128
+ onClick: a,
1129
+ className: n = ""
935
1130
  }) {
936
- const o = "rounded-lg transition-all", i = {
1131
+ const o = "rounded-lg transition-all", l = {
937
1132
  default: "border border-border p-4",
938
1133
  surface: "bg-surface-variant p-4",
939
1134
  elevated: "bg-surface shadow-md p-6",
940
- interactive: `border-2 p-4 cursor-pointer ${n ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
1135
+ interactive: `border-2 p-4 cursor-pointer ${t ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
941
1136
  };
942
- return /* @__PURE__ */ e.jsx(
1137
+ return /* @__PURE__ */ s.jsx(
943
1138
  "div",
944
1139
  {
945
- className: `${o} ${i[t]} ${l}`,
946
- onClick: s,
947
- role: s ? "button" : void 0,
948
- tabIndex: s ? 0 : void 0,
949
- onKeyDown: s ? (d) => {
950
- (d.key === "Enter" || d.key === " ") && s();
1140
+ className: `${o} ${l[r]} ${n}`,
1141
+ onClick: a,
1142
+ role: a ? "button" : void 0,
1143
+ tabIndex: a ? 0 : void 0,
1144
+ onKeyDown: a ? (i) => {
1145
+ (i.key === "Enter" || i.key === " ") && a();
951
1146
  } : void 0,
952
- children: a
1147
+ children: e
953
1148
  }
954
1149
  );
955
1150
  }
956
- function qe({
957
- title: a,
958
- children: t,
959
- subtitle: n,
960
- spacing: s = "normal",
961
- className: l = ""
1151
+ function ks({
1152
+ title: e,
1153
+ children: r,
1154
+ subtitle: t,
1155
+ spacing: a = "normal",
1156
+ className: n = ""
962
1157
  }) {
963
1158
  const o = {
964
1159
  compact: "space-y-3",
965
1160
  normal: "space-y-6",
966
1161
  spacious: "space-y-8"
967
1162
  };
968
- return /* @__PURE__ */ e.jsxs("div", { className: `${o[s]} ${l}`, children: [
969
- /* @__PURE__ */ e.jsxs("div", { children: [
970
- /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: a }),
971
- n && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: n })
1163
+ return /* @__PURE__ */ s.jsxs("div", { className: `${o[a]} ${n}`, children: [
1164
+ /* @__PURE__ */ s.jsxs("div", { children: [
1165
+ /* @__PURE__ */ s.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: e }),
1166
+ t && /* @__PURE__ */ s.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
972
1167
  ] }),
973
- t
1168
+ r
974
1169
  ] });
975
1170
  }
976
- function Ze({
977
- variant: a,
978
- title: t,
979
- message: n,
980
- icon: s,
981
- onClose: l,
1171
+ function Ts({
1172
+ variant: e,
1173
+ title: r,
1174
+ message: t,
1175
+ icon: a,
1176
+ onClose: n,
982
1177
  className: o = ""
983
1178
  }) {
984
- const d = {
1179
+ const i = {
985
1180
  success: {
986
1181
  bg: "bg-success-50",
987
1182
  border: "border-success-200",
988
1183
  text: "text-success-700",
989
- icon: /* @__PURE__ */ e.jsx(Te, { className: "h-5 w-5" })
1184
+ icon: /* @__PURE__ */ s.jsx(lr, { className: "h-5 w-5" })
990
1185
  },
991
1186
  error: {
992
1187
  bg: "bg-error-50",
993
1188
  border: "border-error-200",
994
1189
  text: "text-error-700",
995
- icon: /* @__PURE__ */ e.jsx(Ne, { className: "h-5 w-5" })
1190
+ icon: /* @__PURE__ */ s.jsx(or, { className: "h-5 w-5" })
996
1191
  },
997
1192
  warning: {
998
1193
  bg: "bg-warning-50",
999
1194
  border: "border-warning-200",
1000
1195
  text: "text-warning-700",
1001
- icon: /* @__PURE__ */ e.jsx(ye, { className: "h-5 w-5" })
1196
+ icon: /* @__PURE__ */ s.jsx(nr, { className: "h-5 w-5" })
1002
1197
  },
1003
1198
  info: {
1004
1199
  bg: "bg-info-50",
1005
1200
  border: "border-info-200",
1006
1201
  text: "text-info-700",
1007
- icon: /* @__PURE__ */ e.jsx(Ve, { className: "h-5 w-5" })
1202
+ icon: /* @__PURE__ */ s.jsx(ar, { className: "h-5 w-5" })
1008
1203
  }
1009
- }[a];
1010
- return /* @__PURE__ */ e.jsx(
1204
+ }[e];
1205
+ return /* @__PURE__ */ s.jsx(
1011
1206
  "div",
1012
1207
  {
1013
- className: `${d.bg} border ${d.border} rounded-md p-3 ${o}`,
1208
+ className: `${i.bg} border ${i.border} rounded-md p-3 ${o}`,
1014
1209
  role: "alert",
1015
- children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
1016
- /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${d.text}`, children: s || d.icon }),
1017
- /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1018
- t && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${d.text}`, children: t }),
1019
- /* @__PURE__ */ e.jsx("p", { className: `text-sm ${d.text}`, children: n })
1210
+ children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-start gap-3", children: [
1211
+ /* @__PURE__ */ s.jsx("div", { className: `flex-shrink-0 ${i.text}`, children: a || i.icon }),
1212
+ /* @__PURE__ */ s.jsxs("div", { className: "flex-1", children: [
1213
+ r && /* @__PURE__ */ s.jsx("p", { className: `text-sm font-medium ${i.text}`, children: r }),
1214
+ /* @__PURE__ */ s.jsx("p", { className: `text-sm ${i.text}`, children: t })
1020
1215
  ] }),
1021
- l && /* @__PURE__ */ e.jsx(
1216
+ n && /* @__PURE__ */ s.jsx(
1022
1217
  "button",
1023
1218
  {
1024
- onClick: l,
1025
- className: `flex-shrink-0 ${d.text} hover:opacity-70`,
1219
+ onClick: n,
1220
+ className: `flex-shrink-0 ${i.text} hover:opacity-70`,
1026
1221
  "aria-label": "Close alert",
1027
1222
  children: "✕"
1028
1223
  }
@@ -1031,92 +1226,526 @@ function Ze({
1031
1226
  }
1032
1227
  );
1033
1228
  }
1034
- function Me({
1035
- title: a,
1036
- titleId: t,
1037
- ...n
1038
- }, s) {
1039
- return /* @__PURE__ */ C.createElement("svg", Object.assign({
1229
+ function Cr({
1230
+ title: e,
1231
+ titleId: r,
1232
+ ...t
1233
+ }, a) {
1234
+ return /* @__PURE__ */ P.createElement("svg", Object.assign({
1235
+ xmlns: "http://www.w3.org/2000/svg",
1236
+ viewBox: "0 0 20 20",
1237
+ fill: "currentColor",
1238
+ "aria-hidden": "true",
1239
+ "data-slot": "icon",
1240
+ ref: a,
1241
+ "aria-labelledby": r
1242
+ }, t), e ? /* @__PURE__ */ P.createElement("title", {
1243
+ id: r
1244
+ }, e) : null, /* @__PURE__ */ P.createElement("path", {
1245
+ fillRule: "evenodd",
1246
+ 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",
1247
+ clipRule: "evenodd"
1248
+ }));
1249
+ }
1250
+ const Ie = /* @__PURE__ */ P.forwardRef(Cr);
1251
+ function kr({
1252
+ title: e,
1253
+ titleId: r,
1254
+ ...t
1255
+ }, a) {
1256
+ return /* @__PURE__ */ P.createElement("svg", Object.assign({
1257
+ xmlns: "http://www.w3.org/2000/svg",
1258
+ viewBox: "0 0 20 20",
1259
+ fill: "currentColor",
1260
+ "aria-hidden": "true",
1261
+ "data-slot": "icon",
1262
+ ref: a,
1263
+ "aria-labelledby": r
1264
+ }, t), e ? /* @__PURE__ */ P.createElement("title", {
1265
+ id: r
1266
+ }, e) : null, /* @__PURE__ */ P.createElement("path", {
1267
+ fillRule: "evenodd",
1268
+ 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",
1269
+ clipRule: "evenodd"
1270
+ }));
1271
+ }
1272
+ const Oe = /* @__PURE__ */ P.forwardRef(kr);
1273
+ function Tr({
1274
+ title: e,
1275
+ titleId: r,
1276
+ ...t
1277
+ }, a) {
1278
+ return /* @__PURE__ */ P.createElement("svg", Object.assign({
1040
1279
  xmlns: "http://www.w3.org/2000/svg",
1041
1280
  viewBox: "0 0 20 20",
1042
1281
  fill: "currentColor",
1043
1282
  "aria-hidden": "true",
1044
1283
  "data-slot": "icon",
1045
- ref: s,
1046
- "aria-labelledby": t
1047
- }, n), a ? /* @__PURE__ */ C.createElement("title", {
1048
- id: t
1049
- }, a) : null, /* @__PURE__ */ C.createElement("path", {
1284
+ ref: a,
1285
+ "aria-labelledby": r
1286
+ }, t), e ? /* @__PURE__ */ P.createElement("title", {
1287
+ id: r
1288
+ }, e) : null, /* @__PURE__ */ P.createElement("path", {
1050
1289
  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"
1051
1290
  }));
1052
1291
  }
1053
- const ze = /* @__PURE__ */ C.forwardRef(Me);
1054
- function Qe({
1055
- children: a,
1056
- variant: t = "default",
1057
- size: n = "md",
1058
- removable: s = !1,
1059
- onRemove: l,
1292
+ const be = /* @__PURE__ */ P.forwardRef(Tr);
1293
+ function Vr({
1294
+ children: e,
1295
+ variant: r = "default",
1296
+ size: t = "md",
1297
+ removable: a = !1,
1298
+ onRemove: n,
1060
1299
  className: o = "",
1061
- style: i,
1062
- colorClass: d
1300
+ style: l,
1301
+ colorClass: i
1063
1302
  }) {
1064
- const p = {
1303
+ const u = {
1065
1304
  default: "bg-surface-variant text-text-secondary",
1066
1305
  success: "bg-success-50 text-success-700",
1067
1306
  error: "bg-error-50 text-error-700",
1068
1307
  warning: "bg-warning-50 text-warning-700",
1069
1308
  info: "bg-info-50 text-info-700"
1070
- }, j = {
1309
+ }, f = {
1071
1310
  sm: "px-2 py-0.5 text-xs",
1072
1311
  md: "px-3 py-1 text-sm",
1073
1312
  lg: "px-4 py-1.5 text-base"
1074
- }, m = d || p[t];
1075
- return /* @__PURE__ */ e.jsxs(
1313
+ }, d = i || u[r];
1314
+ return /* @__PURE__ */ s.jsxs(
1076
1315
  "span",
1077
1316
  {
1078
- className: `inline-flex items-center gap-1 rounded-full ${m} ${j[n]} ${o}`,
1079
- style: i,
1317
+ className: `inline-flex items-center gap-1 rounded-full ${d} ${f[t]} ${o}`,
1318
+ style: l,
1080
1319
  children: [
1081
- a,
1082
- s && l && /* @__PURE__ */ e.jsx(
1320
+ e,
1321
+ a && n && /* @__PURE__ */ s.jsx(
1083
1322
  "button",
1084
1323
  {
1085
- onClick: l,
1324
+ onClick: n,
1086
1325
  className: "ml-1 hover:opacity-70",
1087
1326
  "aria-label": "Remove badge",
1088
- children: /* @__PURE__ */ e.jsx(ze, { className: "w-3 h-3" })
1327
+ children: /* @__PURE__ */ s.jsx(be, { className: "w-3 h-3" })
1089
1328
  }
1090
1329
  )
1091
1330
  ]
1092
1331
  }
1093
1332
  );
1094
1333
  }
1095
- const Fe = {
1334
+ function Vs({
1335
+ label: e,
1336
+ children: r,
1337
+ helperText: t,
1338
+ errorText: a,
1339
+ required: n = !1,
1340
+ className: o = ""
1341
+ }) {
1342
+ return /* @__PURE__ */ s.jsxs("div", { className: `space-y-2 ${o}`, children: [
1343
+ /* @__PURE__ */ s.jsxs("label", { className: "block text-sm font-medium text-text-primary", children: [
1344
+ e,
1345
+ n && /* @__PURE__ */ s.jsx("span", { className: "text-error-500 ml-1", children: "*" })
1346
+ ] }),
1347
+ r,
1348
+ a && /* @__PURE__ */ s.jsx("p", { className: "text-xs text-error-600", children: a }),
1349
+ t && !a && /* @__PURE__ */ s.jsx("p", { className: "text-xs text-text-muted", children: t })
1350
+ ] });
1351
+ }
1352
+ const Rr = X.forwardRef(
1353
+ ({
1354
+ className: e = "",
1355
+ leftIcon: r,
1356
+ rightIcon: t,
1357
+ error: a = !1,
1358
+ fullWidth: n = !0,
1359
+ disabled: o,
1360
+ ...l
1361
+ }, i) => {
1362
+ const u = "px-3 py-2 border rounded-lg transition-colors text-sm", f = 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 = o ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m = n ? "w-full" : "", x = r || t ? "relative flex items-center" : "", g = `${u} ${f} ${d} ${m} ${r ? "pl-10" : ""} ${t ? "pr-10" : ""} ${e}`;
1363
+ return /* @__PURE__ */ s.jsxs("div", { className: x, children: [
1364
+ r && /* @__PURE__ */ s.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: r }),
1365
+ /* @__PURE__ */ s.jsx(
1366
+ "input",
1367
+ {
1368
+ ref: i,
1369
+ className: g,
1370
+ disabled: o,
1371
+ ...l
1372
+ }
1373
+ ),
1374
+ t && /* @__PURE__ */ s.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
1375
+ ] });
1376
+ }
1377
+ );
1378
+ Rr.displayName = "Input";
1379
+ const Er = X.forwardRef(
1380
+ ({
1381
+ options: e,
1382
+ placeholder: r,
1383
+ className: t = "",
1384
+ error: a = !1,
1385
+ fullWidth: n = !0,
1386
+ disabled: o,
1387
+ ...l
1388
+ }, i) => {
1389
+ 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"} ${o ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${n ? "w-full" : ""} pr-10 ${t}`;
1390
+ return /* @__PURE__ */ s.jsxs("div", { className: "relative flex items-center", children: [
1391
+ /* @__PURE__ */ s.jsxs(
1392
+ "select",
1393
+ {
1394
+ ref: i,
1395
+ className: x,
1396
+ disabled: o,
1397
+ ...l,
1398
+ children: [
1399
+ r && /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, children: r }),
1400
+ e.map((g) => /* @__PURE__ */ s.jsx("option", { value: g.value, children: g.label }, g.value))
1401
+ ]
1402
+ }
1403
+ ),
1404
+ /* @__PURE__ */ s.jsx(Ne, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
1405
+ ] });
1406
+ }
1407
+ );
1408
+ Er.displayName = "Select";
1409
+ const $r = X.forwardRef(
1410
+ ({
1411
+ tags: e,
1412
+ onTagsChange: r,
1413
+ onAddTag: t,
1414
+ onRemoveTag: a,
1415
+ placeholder: n = "Add a tag and press Enter",
1416
+ error: o = !1,
1417
+ fullWidth: l = !0,
1418
+ maxTags: i,
1419
+ duplicateCheck: u = !0,
1420
+ disabled: f,
1421
+ className: d = "",
1422
+ ...m
1423
+ }, x) => {
1424
+ const [g, j] = S(""), C = (v) => {
1425
+ v.key === "Enter" && g.trim() ? (v.preventDefault(), y(g.trim())) : v.key === "Backspace" && !g && e.length > 0 && R(e[e.length - 1]);
1426
+ }, y = (v) => {
1427
+ if (i && e.length >= i || u && e.includes(v))
1428
+ return;
1429
+ const w = [...e, v];
1430
+ r(w), t?.(v), j("");
1431
+ }, R = (v) => {
1432
+ const w = e.filter((T) => T !== v);
1433
+ r(w), a?.(v);
1434
+ }, b = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${o ? "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"} ${f ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${l ? "w-full" : ""} ${d}`;
1435
+ return /* @__PURE__ */ s.jsxs("div", { className: "space-y-2", children: [
1436
+ /* @__PURE__ */ s.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: e.map((v) => /* @__PURE__ */ s.jsx(
1437
+ Vr,
1438
+ {
1439
+ removable: !0,
1440
+ onRemove: () => R(v),
1441
+ variant: "default",
1442
+ children: v
1443
+ },
1444
+ v
1445
+ )) }),
1446
+ /* @__PURE__ */ s.jsx(
1447
+ "input",
1448
+ {
1449
+ ref: x,
1450
+ type: "text",
1451
+ className: b,
1452
+ placeholder: n,
1453
+ value: g,
1454
+ onChange: (v) => j(v.target.value),
1455
+ onKeyDown: C,
1456
+ disabled: f || (i ? e.length >= i : !1),
1457
+ ...m
1458
+ }
1459
+ ),
1460
+ i && /* @__PURE__ */ s.jsxs("p", { className: "text-xs text-text-muted", children: [
1461
+ e.length,
1462
+ " / ",
1463
+ i
1464
+ ] })
1465
+ ] });
1466
+ }
1467
+ );
1468
+ $r.displayName = "TagInput";
1469
+ const Dr = X.forwardRef(
1470
+ ({
1471
+ className: e = "",
1472
+ error: r = !1,
1473
+ fullWidth: t = !0,
1474
+ autoResize: a = !1,
1475
+ maxLength: n,
1476
+ showCharCount: o = !1,
1477
+ disabled: l,
1478
+ value: i,
1479
+ onChange: u,
1480
+ ...f
1481
+ }, d) => {
1482
+ const C = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${r ? "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"} ${l ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${e}`, y = (I) => {
1483
+ a && (I.target.style.height = "auto", I.target.style.height = `${I.target.scrollHeight}px`), u?.(I);
1484
+ }, R = typeof i == "string" ? i.length : 0;
1485
+ return /* @__PURE__ */ s.jsxs("div", { className: "space-y-1", children: [
1486
+ /* @__PURE__ */ s.jsx(
1487
+ "textarea",
1488
+ {
1489
+ ref: d,
1490
+ className: C,
1491
+ disabled: l,
1492
+ value: i,
1493
+ onChange: y,
1494
+ maxLength: n,
1495
+ ...f
1496
+ }
1497
+ ),
1498
+ o && n && /* @__PURE__ */ s.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
1499
+ R,
1500
+ " / ",
1501
+ n
1502
+ ] })
1503
+ ] });
1504
+ }
1505
+ );
1506
+ Dr.displayName = "Textarea";
1507
+ function Rs({
1508
+ options: e,
1509
+ selectedValues: r,
1510
+ onSelectionChange: t,
1511
+ layout: a = "vertical",
1512
+ columns: n = 2,
1513
+ disabled: o = !1,
1514
+ error: l = !1
1515
+ }) {
1516
+ const i = (m) => {
1517
+ const x = r.includes(m) ? r.filter((g) => g !== m) : [...r, m];
1518
+ t(x);
1519
+ }, u = {
1520
+ vertical: "space-y-3",
1521
+ horizontal: "flex flex-wrap gap-3",
1522
+ grid: `grid grid-cols-${n} gap-3`
1523
+ }, f = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${n}` : "";
1524
+ return /* @__PURE__ */ s.jsx("div", { className: `${f} ${d}`, children: e.map((m) => {
1525
+ const x = r.includes(m.value), j = x ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${l ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1526
+ return /* @__PURE__ */ s.jsxs(
1527
+ "label",
1528
+ {
1529
+ className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${j} ${o ? "opacity-50 cursor-not-allowed" : ""}`,
1530
+ children: [
1531
+ /* @__PURE__ */ s.jsx(
1532
+ "input",
1533
+ {
1534
+ type: "checkbox",
1535
+ checked: x,
1536
+ onChange: () => i(m.value),
1537
+ disabled: o,
1538
+ className: "sr-only"
1539
+ }
1540
+ ),
1541
+ m.icon && /* @__PURE__ */ s.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: m.icon }),
1542
+ /* @__PURE__ */ s.jsxs("div", { className: "flex-1", children: [
1543
+ /* @__PURE__ */ s.jsx("div", { className: "font-medium text-text-primary", children: m.label }),
1544
+ m.description && /* @__PURE__ */ s.jsx("div", { className: "text-sm text-text-secondary", children: m.description })
1545
+ ] }),
1546
+ x && /* @__PURE__ */ s.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.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" }) }) })
1547
+ ]
1548
+ },
1549
+ m.value
1550
+ );
1551
+ }) });
1552
+ }
1553
+ function Es({
1554
+ options: e,
1555
+ selectedValue: r,
1556
+ onSelectionChange: t,
1557
+ layout: a = "vertical",
1558
+ columns: n = 2,
1559
+ disabled: o = !1,
1560
+ error: l = !1,
1561
+ name: i = "radio-group"
1562
+ }) {
1563
+ const f = a === "grid" ? `grid gap-3 md:grid-cols-${n}` : {
1564
+ vertical: "space-y-3",
1565
+ horizontal: "flex flex-wrap gap-3",
1566
+ grid: "grid gap-3"
1567
+ }[a];
1568
+ return /* @__PURE__ */ s.jsx("div", { className: f, children: e.map((d) => {
1569
+ const m = r === d.value, g = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${l ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1570
+ return /* @__PURE__ */ s.jsxs(
1571
+ "label",
1572
+ {
1573
+ className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${o ? "opacity-50 cursor-not-allowed" : ""}`,
1574
+ children: [
1575
+ /* @__PURE__ */ s.jsx(
1576
+ "input",
1577
+ {
1578
+ type: "radio",
1579
+ name: i,
1580
+ value: d.value,
1581
+ checked: m,
1582
+ onChange: () => t(d.value),
1583
+ disabled: o,
1584
+ className: "sr-only"
1585
+ }
1586
+ ),
1587
+ d.icon && /* @__PURE__ */ s.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: d.icon }),
1588
+ /* @__PURE__ */ s.jsxs("div", { className: "flex-1", children: [
1589
+ /* @__PURE__ */ s.jsx("div", { className: "font-medium text-text-primary", children: d.label }),
1590
+ d.description && /* @__PURE__ */ s.jsx("div", { className: "text-sm text-text-secondary", children: d.description })
1591
+ ] }),
1592
+ m && /* @__PURE__ */ s.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.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" }) }) })
1593
+ ]
1594
+ },
1595
+ d.value
1596
+ );
1597
+ }) });
1598
+ }
1599
+ function $s({
1600
+ items: e,
1601
+ allowMultiple: r = !1,
1602
+ defaultOpenId: t,
1603
+ onOpenChange: a,
1604
+ className: n = ""
1605
+ }) {
1606
+ const [o, l] = S(() => t ? Array.isArray(t) ? t : [t] : []), i = (u) => {
1607
+ let f;
1608
+ r ? f = o.includes(u) ? o.filter((d) => d !== u) : [...o, u] : f = o.includes(u) ? [] : [u], l(f), a?.(f);
1609
+ };
1610
+ return /* @__PURE__ */ s.jsx("div", { className: `space-y-2 ${n}`, children: e.map((u) => {
1611
+ const f = o.includes(u.id);
1612
+ return /* @__PURE__ */ s.jsxs(
1613
+ "div",
1614
+ {
1615
+ className: "border border-border rounded-lg overflow-hidden",
1616
+ children: [
1617
+ /* @__PURE__ */ s.jsxs(
1618
+ "button",
1619
+ {
1620
+ onClick: () => i(u.id),
1621
+ className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
1622
+ children: [
1623
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
1624
+ u.icon && /* @__PURE__ */ s.jsx("div", { className: "flex-shrink-0 text-text-secondary", children: u.icon }),
1625
+ /* @__PURE__ */ s.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
1626
+ ] }),
1627
+ /* @__PURE__ */ s.jsx(
1628
+ Ne,
1629
+ {
1630
+ className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${f ? "rotate-180" : ""}`
1631
+ }
1632
+ )
1633
+ ]
1634
+ }
1635
+ ),
1636
+ f && /* @__PURE__ */ s.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
1637
+ ]
1638
+ },
1639
+ u.id
1640
+ );
1641
+ }) });
1642
+ }
1643
+ const Ir = X.forwardRef(
1644
+ ({
1645
+ value: e,
1646
+ onChange: r,
1647
+ min: t = 0,
1648
+ max: a = 100,
1649
+ step: n = 1,
1650
+ showValue: o = !0,
1651
+ showLabels: l = !1,
1652
+ minLabel: i,
1653
+ maxLabel: u,
1654
+ error: f = !1,
1655
+ fullWidth: d = !0,
1656
+ disabled: m,
1657
+ className: x = "",
1658
+ ...g
1659
+ }, j) => {
1660
+ const k = `w-full h-2 rounded-lg appearance-none cursor-pointer ${f ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${x}`, E = (e - t) / (a - t) * 100;
1661
+ return /* @__PURE__ */ s.jsxs("div", { className: "space-y-2", children: [
1662
+ l && (i || u) && /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
1663
+ i && /* @__PURE__ */ s.jsx("span", { children: i }),
1664
+ u && /* @__PURE__ */ s.jsx("span", { children: u })
1665
+ ] }),
1666
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3", children: [
1667
+ /* @__PURE__ */ s.jsx(
1668
+ "input",
1669
+ {
1670
+ ref: j,
1671
+ type: "range",
1672
+ min: t,
1673
+ max: a,
1674
+ step: n,
1675
+ value: e,
1676
+ onChange: (D) => r(Number(D.target.value)),
1677
+ disabled: m,
1678
+ className: k,
1679
+ ...g
1680
+ }
1681
+ ),
1682
+ o && /* @__PURE__ */ s.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: e })
1683
+ ] }),
1684
+ /* @__PURE__ */ s.jsx("div", { className: "h-1 bg-border rounded-full overflow-hidden", children: /* @__PURE__ */ s.jsx(
1685
+ "div",
1686
+ {
1687
+ className: "h-full bg-reseda-green-500 transition-all",
1688
+ style: { width: `${E}%` }
1689
+ }
1690
+ ) })
1691
+ ] });
1692
+ }
1693
+ );
1694
+ Ir.displayName = "Slider";
1695
+ function Ds({
1696
+ icon: e,
1697
+ title: r,
1698
+ description: t,
1699
+ isSelected: a = !1,
1700
+ onClick: n,
1701
+ disabled: o = !1,
1702
+ className: l = ""
1703
+ }) {
1704
+ 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", f = o ? "opacity-50 cursor-not-allowed" : "";
1705
+ return /* @__PURE__ */ s.jsxs(
1706
+ "div",
1707
+ {
1708
+ className: `${i} ${u} ${f} ${l}`,
1709
+ onClick: () => !o && n?.(),
1710
+ role: "button",
1711
+ tabIndex: o ? -1 : 0,
1712
+ onKeyDown: (d) => {
1713
+ !o && (d.key === "Enter" || d.key === " ") && n?.();
1714
+ },
1715
+ children: [
1716
+ e && /* @__PURE__ */ s.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ s.jsx("div", { className: "text-text-secondary", children: e }) }),
1717
+ /* @__PURE__ */ s.jsx("h3", { className: "font-medium text-text-primary mb-1", children: r }),
1718
+ t && /* @__PURE__ */ s.jsx("p", { className: "text-xs text-text-secondary", children: t }),
1719
+ a && /* @__PURE__ */ s.jsx("div", { className: "mt-3 flex justify-center", children: /* @__PURE__ */ s.jsx("div", { className: "text-reseda-green-500", children: /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.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" }) }) }) })
1720
+ ]
1721
+ }
1722
+ );
1723
+ }
1724
+ const Or = {
1096
1725
  activeText: "text-reseda-green-700",
1097
1726
  activeBorder: "border-reseda-green-700",
1098
1727
  inactiveText: "text-text-secondary",
1099
1728
  inactiveHoverText: "hover:text-text-primary",
1100
1729
  disabledText: "text-text-disabled"
1101
1730
  };
1102
- function Ke({ tabs: a, activeTab: t, disabled: n = !1, onChange: s, colorConfig: l }) {
1103
- const o = l || Fe;
1104
- return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: a.map((i) => {
1105
- const d = t === i.id;
1106
- return /* @__PURE__ */ e.jsx(
1107
- D,
1731
+ function Is({ tabs: e, activeTab: r, disabled: t = !1, onChange: a, colorConfig: n }) {
1732
+ const o = n || Or;
1733
+ return /* @__PURE__ */ s.jsx("div", { className: "flex border-b border-border mb-6", children: e.map((l) => {
1734
+ const i = r === l.id;
1735
+ return /* @__PURE__ */ s.jsx(
1736
+ U,
1108
1737
  {
1109
1738
  variant: "ghost",
1110
- onClick: () => !n && s(i.id),
1111
- disabled: n && !d,
1112
- className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${d ? `${o.activeBorder} ${o.activeText}` : n ? `border-transparent ${o.disabledText} cursor-not-allowed` : `border-transparent ${o.inactiveText} ${o.inactiveHoverText}`}`,
1113
- children: i.label
1739
+ onClick: () => !t && a(l.id),
1740
+ disabled: t && !i,
1741
+ className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${i ? `${o.activeBorder} ${o.activeText}` : t ? `border-transparent ${o.disabledText} cursor-not-allowed` : `border-transparent ${o.inactiveText} ${o.inactiveHoverText}`}`,
1742
+ children: l.label
1114
1743
  },
1115
- i.id
1744
+ l.id
1116
1745
  );
1117
1746
  }) });
1118
1747
  }
1119
- const Ye = {
1748
+ const Sr = {
1120
1749
  activeBg: "bg-reseda-green-700",
1121
1750
  activeText: "text-white",
1122
1751
  completedBg: "bg-success-500",
@@ -1127,41 +1756,852 @@ const Ye = {
1127
1756
  labelInactiveText: "text-text-muted",
1128
1757
  connectorBg: "bg-border"
1129
1758
  };
1130
- function er({ currentStep: a, steps: t, colorConfig: n }) {
1131
- const s = n || Ye;
1132
- return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: t.map((l, o) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${o < t.length - 1 ? "flex-1" : ""}`, children: [
1133
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1134
- /* @__PURE__ */ e.jsx(
1759
+ function Os({ currentStep: e, steps: r, colorConfig: t }) {
1760
+ const a = t || Sr;
1761
+ return /* @__PURE__ */ s.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ s.jsx("ol", { className: "flex items-center w-full", children: r.map((n, o) => /* @__PURE__ */ s.jsxs("li", { className: `flex items-center ${o < r.length - 1 ? "flex-1" : ""}`, children: [
1762
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center", children: [
1763
+ /* @__PURE__ */ s.jsx(
1135
1764
  "span",
1136
1765
  {
1137
- className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${a === l.number ? `${s.activeBg} ${s.activeText}` : a > l.number ? `${s.completedBg} ${s.completedText}` : `border-2 ${s.incompleteBorder} ${s.incompleteText}`}`,
1138
- children: l.number
1766
+ className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${e === n.number ? `${a.activeBg} ${a.activeText}` : e > n.number ? `${a.completedBg} ${a.completedText}` : `border-2 ${a.incompleteBorder} ${a.incompleteText}`}`,
1767
+ children: n.number
1139
1768
  }
1140
1769
  ),
1141
- /* @__PURE__ */ e.jsx(
1770
+ /* @__PURE__ */ s.jsx(
1142
1771
  "span",
1143
1772
  {
1144
- className: `ml-3 text-sm font-medium whitespace-nowrap ${a >= l.number ? s.labelActiveText : s.labelInactiveText}`,
1145
- children: l.label
1773
+ className: `ml-3 text-sm font-medium whitespace-nowrap ${e >= n.number ? a.labelActiveText : a.labelInactiveText}`,
1774
+ children: n.label
1146
1775
  }
1147
1776
  )
1148
1777
  ] }),
1149
- o < t.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${s.connectorBg}` })
1150
- ] }, l.number)) }) });
1778
+ o < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
1779
+ ] }, n.number)) }) });
1780
+ }
1781
+ function Ar() {
1782
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1783
+ r[t] = arguments[t];
1784
+ return H(
1785
+ () => (a) => {
1786
+ r.forEach((n) => n(a));
1787
+ },
1788
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1789
+ r
1790
+ );
1791
+ }
1792
+ const zr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1793
+ function Br(e) {
1794
+ const r = Object.prototype.toString.call(e);
1795
+ return r === "[object Window]" || // In Electron context the Window object serializes to [object global]
1796
+ r === "[object global]";
1797
+ }
1798
+ function _r(e) {
1799
+ return "nodeType" in e;
1800
+ }
1801
+ function Ye(e) {
1802
+ var r, t;
1803
+ return e ? Br(e) ? e : _r(e) && (r = (t = e.ownerDocument) == null ? void 0 : t.defaultView) != null ? r : window : window;
1804
+ }
1805
+ const me = zr ? Ze : M;
1806
+ function Ue(e) {
1807
+ const r = W(e);
1808
+ return me(() => {
1809
+ r.current = e;
1810
+ }), O(function() {
1811
+ for (var t = arguments.length, a = new Array(t), n = 0; n < t; n++)
1812
+ a[n] = arguments[n];
1813
+ return r.current == null ? void 0 : r.current(...a);
1814
+ }, []);
1815
+ }
1816
+ function pe(e, r) {
1817
+ r === void 0 && (r = [e]);
1818
+ const t = W(e);
1819
+ return me(() => {
1820
+ t.current !== e && (t.current = e);
1821
+ }, r), t;
1822
+ }
1823
+ function we(e) {
1824
+ const r = Ue(e), t = W(null), a = O(
1825
+ (n) => {
1826
+ n !== t.current && r?.(n, t.current), t.current = n;
1827
+ },
1828
+ //eslint-disable-next-line
1829
+ []
1830
+ );
1831
+ return [t, a];
1832
+ }
1833
+ let he = {};
1834
+ function We(e, r) {
1835
+ return H(() => {
1836
+ const t = he[e] == null ? 0 : he[e] + 1;
1837
+ return he[e] = t, e + "-" + t;
1838
+ }, [e, r]);
1839
+ }
1840
+ function Fr(e) {
1841
+ if (!e)
1842
+ return !1;
1843
+ const {
1844
+ KeyboardEvent: r
1845
+ } = Ye(e.target);
1846
+ return r && e instanceof r;
1847
+ }
1848
+ const ae = /* @__PURE__ */ Object.freeze({
1849
+ Translate: {
1850
+ toString(e) {
1851
+ if (!e)
1852
+ return;
1853
+ const {
1854
+ x: r,
1855
+ y: t
1856
+ } = e;
1857
+ return "translate3d(" + (r ? Math.round(r) : 0) + "px, " + (t ? Math.round(t) : 0) + "px, 0)";
1858
+ }
1859
+ },
1860
+ Scale: {
1861
+ toString(e) {
1862
+ if (!e)
1863
+ return;
1864
+ const {
1865
+ scaleX: r,
1866
+ scaleY: t
1867
+ } = e;
1868
+ return "scaleX(" + r + ") scaleY(" + t + ")";
1869
+ }
1870
+ },
1871
+ Transform: {
1872
+ toString(e) {
1873
+ if (e)
1874
+ return [ae.Translate.toString(e), ae.Scale.toString(e)].join(" ");
1875
+ }
1876
+ },
1877
+ Transition: {
1878
+ toString(e) {
1879
+ let {
1880
+ property: r,
1881
+ duration: t,
1882
+ easing: a
1883
+ } = e;
1884
+ return r + " " + t + "ms " + a;
1885
+ }
1886
+ }
1887
+ });
1888
+ var se;
1889
+ (function(e) {
1890
+ e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
1891
+ })(se || (se = {}));
1892
+ function Se() {
1893
+ }
1894
+ const Pr = /* @__PURE__ */ Object.freeze({
1895
+ x: 0,
1896
+ y: 0
1897
+ });
1898
+ function Lr(e) {
1899
+ if (e.startsWith("matrix3d(")) {
1900
+ const r = e.slice(9, -1).split(/, /);
1901
+ return {
1902
+ x: +r[12],
1903
+ y: +r[13],
1904
+ scaleX: +r[0],
1905
+ scaleY: +r[5]
1906
+ };
1907
+ } else if (e.startsWith("matrix(")) {
1908
+ const r = e.slice(7, -1).split(/, /);
1909
+ return {
1910
+ x: +r[4],
1911
+ y: +r[5],
1912
+ scaleX: +r[0],
1913
+ scaleY: +r[3]
1914
+ };
1915
+ }
1916
+ return null;
1917
+ }
1918
+ function Mr(e, r, t) {
1919
+ const a = Lr(r);
1920
+ if (!a)
1921
+ return e;
1922
+ const {
1923
+ scaleX: n,
1924
+ scaleY: o,
1925
+ x: l,
1926
+ y: i
1927
+ } = a, u = e.left - l - (1 - n) * parseFloat(t), f = e.top - i - (1 - o) * parseFloat(t.slice(t.indexOf(" ") + 1)), d = n ? e.width / n : e.width, m = o ? e.height / o : e.height;
1928
+ return {
1929
+ width: d,
1930
+ height: m,
1931
+ top: f,
1932
+ right: u + d,
1933
+ bottom: f + m,
1934
+ left: u
1935
+ };
1936
+ }
1937
+ const Yr = {
1938
+ ignoreTransform: !1
1939
+ };
1940
+ function Ur(e, r) {
1941
+ r === void 0 && (r = Yr);
1942
+ let t = e.getBoundingClientRect();
1943
+ if (r.ignoreTransform) {
1944
+ const {
1945
+ transform: f,
1946
+ transformOrigin: d
1947
+ } = Ye(e).getComputedStyle(e);
1948
+ f && (t = Mr(t, f, d));
1949
+ }
1950
+ const {
1951
+ top: a,
1952
+ left: n,
1953
+ width: o,
1954
+ height: l,
1955
+ bottom: i,
1956
+ right: u
1957
+ } = t;
1958
+ return {
1959
+ top: a,
1960
+ left: n,
1961
+ width: o,
1962
+ height: l,
1963
+ bottom: i,
1964
+ right: u
1965
+ };
1966
+ }
1967
+ var J;
1968
+ (function(e) {
1969
+ e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
1970
+ })(J || (J = {}));
1971
+ var Ae;
1972
+ (function(e) {
1973
+ e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
1974
+ })(Ae || (Ae = {}));
1975
+ var F;
1976
+ (function(e) {
1977
+ e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
1978
+ })(F || (F = {}));
1979
+ F.Space, F.Enter, F.Esc, F.Space, F.Enter, F.Tab;
1980
+ var ze;
1981
+ (function(e) {
1982
+ e[e.RightClick = 2] = "RightClick";
1983
+ })(ze || (ze = {}));
1984
+ var Be;
1985
+ (function(e) {
1986
+ e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
1987
+ })(Be || (Be = {}));
1988
+ var _e;
1989
+ (function(e) {
1990
+ e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1991
+ })(_e || (_e = {}));
1992
+ J.Backward + "", J.Forward + "", J.Backward + "", J.Forward + "";
1993
+ var ye;
1994
+ (function(e) {
1995
+ e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
1996
+ })(ye || (ye = {}));
1997
+ var je;
1998
+ (function(e) {
1999
+ e.Optimized = "optimized";
2000
+ })(je || (je = {}));
2001
+ function Wr(e) {
2002
+ let {
2003
+ callback: r,
2004
+ disabled: t
2005
+ } = e;
2006
+ const a = Ue(r), n = H(
2007
+ () => {
2008
+ if (t || typeof window > "u" || typeof window.ResizeObserver > "u")
2009
+ return;
2010
+ const {
2011
+ ResizeObserver: o
2012
+ } = window;
2013
+ return new o(a);
2014
+ },
2015
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2016
+ [t]
2017
+ );
2018
+ return M(() => () => n?.disconnect(), [n]), n;
2019
+ }
2020
+ function Xr(e, r) {
2021
+ return H(() => e.reduce((t, a) => {
2022
+ let {
2023
+ eventName: n,
2024
+ handler: o
2025
+ } = a;
2026
+ return t[n] = (l) => {
2027
+ o(l, r);
2028
+ }, t;
2029
+ }, {}), [e, r]);
2030
+ }
2031
+ ye.WhileDragging, je.Optimized;
2032
+ const Hr = {
2033
+ activatorEvent: null,
2034
+ activators: [],
2035
+ active: null,
2036
+ activeNodeRect: null,
2037
+ ariaDescribedById: {
2038
+ draggable: ""
2039
+ },
2040
+ dispatch: Se,
2041
+ draggableNodes: /* @__PURE__ */ new Map(),
2042
+ over: null,
2043
+ measureDroppableContainers: Se
2044
+ }, Xe = /* @__PURE__ */ ue(Hr), qr = /* @__PURE__ */ ue({
2045
+ ...Pr,
2046
+ scaleX: 1,
2047
+ scaleY: 1
2048
+ });
2049
+ var Fe;
2050
+ (function(e) {
2051
+ e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
2052
+ })(Fe || (Fe = {}));
2053
+ const Gr = /* @__PURE__ */ ue(null), Pe = "button", Jr = "Draggable";
2054
+ function Zr(e) {
2055
+ let {
2056
+ id: r,
2057
+ data: t,
2058
+ disabled: a = !1,
2059
+ attributes: n
2060
+ } = e;
2061
+ const o = We(Jr), {
2062
+ activators: l,
2063
+ activatorEvent: i,
2064
+ active: u,
2065
+ activeNodeRect: f,
2066
+ ariaDescribedById: d,
2067
+ draggableNodes: m,
2068
+ over: x
2069
+ } = te(Xe), {
2070
+ role: g = Pe,
2071
+ roleDescription: j = "draggable",
2072
+ tabIndex: C = 0
2073
+ } = n ?? {}, y = u?.id === r, R = te(y ? qr : Gr), [I, k] = we(), [E, D] = we(), b = Xr(l, r), v = pe(t);
2074
+ me(
2075
+ () => (m.set(r, {
2076
+ id: r,
2077
+ key: o,
2078
+ node: I,
2079
+ activatorNode: E,
2080
+ data: v
2081
+ }), () => {
2082
+ const T = m.get(r);
2083
+ T && T.key === o && m.delete(r);
2084
+ }),
2085
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2086
+ [m, r]
2087
+ );
2088
+ const w = H(() => ({
2089
+ role: g,
2090
+ tabIndex: C,
2091
+ "aria-disabled": a,
2092
+ "aria-pressed": y && g === Pe ? !0 : void 0,
2093
+ "aria-roledescription": j,
2094
+ "aria-describedby": d.draggable
2095
+ }), [a, g, C, y, j, d.draggable]);
2096
+ return {
2097
+ active: u,
2098
+ activatorEvent: i,
2099
+ activeNodeRect: f,
2100
+ attributes: w,
2101
+ isDragging: y,
2102
+ listeners: a ? void 0 : b,
2103
+ node: I,
2104
+ over: x,
2105
+ setNodeRef: k,
2106
+ setActivatorNodeRef: D,
2107
+ transform: R
2108
+ };
2109
+ }
2110
+ const Qr = "Droppable", Kr = {
2111
+ timeout: 25
2112
+ };
2113
+ function es(e) {
2114
+ let {
2115
+ data: r,
2116
+ disabled: t = !1,
2117
+ id: a,
2118
+ resizeObserverConfig: n
2119
+ } = e;
2120
+ const o = We(Qr), {
2121
+ active: l,
2122
+ dispatch: i,
2123
+ over: u,
2124
+ measureDroppableContainers: f
2125
+ } = te(Xe), d = W({
2126
+ disabled: t
2127
+ }), m = W(!1), x = W(null), g = W(null), {
2128
+ disabled: j,
2129
+ updateMeasurementsFor: C,
2130
+ timeout: y
2131
+ } = {
2132
+ ...Kr,
2133
+ ...n
2134
+ }, R = pe(C ?? a), I = O(
2135
+ () => {
2136
+ if (!m.current) {
2137
+ m.current = !0;
2138
+ return;
2139
+ }
2140
+ g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
2141
+ f(Array.isArray(R.current) ? R.current : [R.current]), g.current = null;
2142
+ }, y);
2143
+ },
2144
+ //eslint-disable-next-line react-hooks/exhaustive-deps
2145
+ [y]
2146
+ ), k = Wr({
2147
+ callback: I,
2148
+ disabled: j || !l
2149
+ }), E = O((w, T) => {
2150
+ k && (T && (k.unobserve(T), m.current = !1), w && k.observe(w));
2151
+ }, [k]), [D, b] = we(E), v = pe(r);
2152
+ return M(() => {
2153
+ !k || !D.current || (k.disconnect(), m.current = !1, k.observe(D.current));
2154
+ }, [D, k]), M(
2155
+ () => (i({
2156
+ type: se.RegisterDroppable,
2157
+ element: {
2158
+ id: a,
2159
+ key: o,
2160
+ disabled: t,
2161
+ node: D,
2162
+ rect: x,
2163
+ data: v
2164
+ }
2165
+ }), () => i({
2166
+ type: se.UnregisterDroppable,
2167
+ key: o,
2168
+ id: a
2169
+ })),
2170
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2171
+ [a]
2172
+ ), M(() => {
2173
+ t !== d.current.disabled && (i({
2174
+ type: se.SetDroppableDisabled,
2175
+ id: a,
2176
+ key: o,
2177
+ disabled: t
2178
+ }), d.current.disabled = t);
2179
+ }, [a, o, t, i]), {
2180
+ active: l,
2181
+ rect: x,
2182
+ isOver: u?.id === a,
2183
+ node: D,
2184
+ over: u,
2185
+ setNodeRef: b
2186
+ };
2187
+ }
2188
+ function He(e, r, t) {
2189
+ const a = e.slice();
2190
+ return a.splice(t < 0 ? a.length + t : t, 0, a.splice(r, 1)[0]), a;
2191
+ }
2192
+ function de(e) {
2193
+ return e !== null && e >= 0;
2194
+ }
2195
+ const rs = (e) => {
2196
+ let {
2197
+ rects: r,
2198
+ activeIndex: t,
2199
+ overIndex: a,
2200
+ index: n
2201
+ } = e;
2202
+ const o = He(r, a, t), l = r[n], i = o[n];
2203
+ return !i || !l ? null : {
2204
+ x: i.left - l.left,
2205
+ y: i.top - l.top,
2206
+ scaleX: i.width / l.width,
2207
+ scaleY: i.height / l.height
2208
+ };
2209
+ }, ss = "Sortable", ts = /* @__PURE__ */ X.createContext({
2210
+ activeIndex: -1,
2211
+ containerId: ss,
2212
+ disableTransforms: !1,
2213
+ items: [],
2214
+ overIndex: -1,
2215
+ useDragOverlay: !1,
2216
+ sortedRects: [],
2217
+ strategy: rs,
2218
+ disabled: {
2219
+ draggable: !1,
2220
+ droppable: !1
2221
+ }
2222
+ }), as = (e) => {
2223
+ let {
2224
+ id: r,
2225
+ items: t,
2226
+ activeIndex: a,
2227
+ overIndex: n
2228
+ } = e;
2229
+ return He(t, a, n).indexOf(r);
2230
+ }, ns = (e) => {
2231
+ let {
2232
+ containerId: r,
2233
+ isSorting: t,
2234
+ wasDragging: a,
2235
+ index: n,
2236
+ items: o,
2237
+ newIndex: l,
2238
+ previousItems: i,
2239
+ previousContainerId: u,
2240
+ transition: f
2241
+ } = e;
2242
+ return !f || !a || i !== o && n === l ? !1 : t ? !0 : l !== n && r === u;
2243
+ }, os = {
2244
+ duration: 200,
2245
+ easing: "ease"
2246
+ }, qe = "transform", ls = /* @__PURE__ */ ae.Transition.toString({
2247
+ property: qe,
2248
+ duration: 0,
2249
+ easing: "linear"
2250
+ }), cs = {
2251
+ roleDescription: "sortable"
2252
+ };
2253
+ function is(e) {
2254
+ let {
2255
+ disabled: r,
2256
+ index: t,
2257
+ node: a,
2258
+ rect: n
2259
+ } = e;
2260
+ const [o, l] = S(null), i = W(t);
2261
+ return me(() => {
2262
+ if (!r && t !== i.current && a.current) {
2263
+ const u = n.current;
2264
+ if (u) {
2265
+ const f = Ur(a.current, {
2266
+ ignoreTransform: !0
2267
+ }), d = {
2268
+ x: u.left - f.left,
2269
+ y: u.top - f.top,
2270
+ scaleX: u.width / f.width,
2271
+ scaleY: u.height / f.height
2272
+ };
2273
+ (d.x || d.y) && l(d);
2274
+ }
2275
+ }
2276
+ t !== i.current && (i.current = t);
2277
+ }, [r, t, a, n]), M(() => {
2278
+ o && l(null);
2279
+ }, [o]), o;
2280
+ }
2281
+ function ds(e) {
2282
+ let {
2283
+ animateLayoutChanges: r = ns,
2284
+ attributes: t,
2285
+ disabled: a,
2286
+ data: n,
2287
+ getNewIndex: o = as,
2288
+ id: l,
2289
+ strategy: i,
2290
+ resizeObserverConfig: u,
2291
+ transition: f = os
2292
+ } = e;
2293
+ const {
2294
+ items: d,
2295
+ containerId: m,
2296
+ activeIndex: x,
2297
+ disabled: g,
2298
+ disableTransforms: j,
2299
+ sortedRects: C,
2300
+ overIndex: y,
2301
+ useDragOverlay: R,
2302
+ strategy: I
2303
+ } = te(ts), k = us(a, g), E = d.indexOf(l), D = H(() => ({
2304
+ sortable: {
2305
+ containerId: m,
2306
+ index: E,
2307
+ items: d
2308
+ },
2309
+ ...n
2310
+ }), [m, n, E, d]), b = H(() => d.slice(d.indexOf(l)), [d, l]), {
2311
+ rect: v,
2312
+ node: w,
2313
+ isOver: T,
2314
+ setNodeRef: Y
2315
+ } = es({
2316
+ id: l,
2317
+ data: D,
2318
+ disabled: k.droppable,
2319
+ resizeObserverConfig: {
2320
+ updateMeasurementsFor: b,
2321
+ ...u
2322
+ }
2323
+ }), {
2324
+ active: A,
2325
+ activatorEvent: q,
2326
+ activeNodeRect: fe,
2327
+ attributes: Z,
2328
+ setNodeRef: Q,
2329
+ listeners: ne,
2330
+ isDragging: G,
2331
+ over: oe,
2332
+ setActivatorNodeRef: le,
2333
+ transform: c
2334
+ } = Zr({
2335
+ id: l,
2336
+ data: D,
2337
+ attributes: {
2338
+ ...cs,
2339
+ ...t
2340
+ },
2341
+ disabled: k.draggable
2342
+ }), h = Ar(Y, Q), p = !!A, $ = p && !j && de(x) && de(y), L = !R && G, z = L && $ ? c : null, K = $ ? z ?? (i ?? I)({
2343
+ rects: C,
2344
+ activeNodeRect: fe,
2345
+ activeIndex: x,
2346
+ overIndex: y,
2347
+ index: E
2348
+ }) : null, N = de(x) && de(y) ? o({
2349
+ id: l,
2350
+ items: d,
2351
+ activeIndex: x,
2352
+ overIndex: y
2353
+ }) : E, B = A?.id, V = W({
2354
+ activeId: B,
2355
+ items: d,
2356
+ newIndex: N,
2357
+ containerId: m
2358
+ }), xe = d !== V.current.items, Ce = r({
2359
+ active: A,
2360
+ containerId: m,
2361
+ isDragging: G,
2362
+ isSorting: p,
2363
+ id: l,
2364
+ index: E,
2365
+ items: d,
2366
+ newIndex: V.current.newIndex,
2367
+ previousItems: V.current.items,
2368
+ previousContainerId: V.current.containerId,
2369
+ transition: f,
2370
+ wasDragging: V.current.activeId != null
2371
+ }), ge = is({
2372
+ disabled: !Ce,
2373
+ index: E,
2374
+ node: w,
2375
+ rect: v
2376
+ });
2377
+ return M(() => {
2378
+ p && V.current.newIndex !== N && (V.current.newIndex = N), m !== V.current.containerId && (V.current.containerId = m), d !== V.current.items && (V.current.items = d);
2379
+ }, [p, N, m, d]), M(() => {
2380
+ if (B === V.current.activeId)
2381
+ return;
2382
+ if (B && !V.current.activeId) {
2383
+ V.current.activeId = B;
2384
+ return;
2385
+ }
2386
+ const Je = setTimeout(() => {
2387
+ V.current.activeId = B;
2388
+ }, 50);
2389
+ return () => clearTimeout(Je);
2390
+ }, [B]), {
2391
+ active: A,
2392
+ activeIndex: x,
2393
+ attributes: Z,
2394
+ data: D,
2395
+ rect: v,
2396
+ index: E,
2397
+ newIndex: N,
2398
+ items: d,
2399
+ isOver: T,
2400
+ isSorting: p,
2401
+ isDragging: G,
2402
+ listeners: ne,
2403
+ node: w,
2404
+ overIndex: y,
2405
+ over: oe,
2406
+ setNodeRef: h,
2407
+ setActivatorNodeRef: le,
2408
+ setDroppableNodeRef: Y,
2409
+ setDraggableNodeRef: Q,
2410
+ transform: ge ?? K,
2411
+ transition: Ge()
2412
+ };
2413
+ function Ge() {
2414
+ if (
2415
+ // Temporarily disable transitions for a single frame to set up derived transforms
2416
+ ge || // Or to prevent items jumping to back to their "new" position when items change
2417
+ xe && V.current.newIndex === E
2418
+ )
2419
+ return ls;
2420
+ if (!(L && !Fr(q) || !f) && (p || Ce))
2421
+ return ae.Transition.toString({
2422
+ ...f,
2423
+ property: qe
2424
+ });
2425
+ }
2426
+ }
2427
+ function us(e, r) {
2428
+ var t, a;
2429
+ return typeof e == "boolean" ? {
2430
+ draggable: e,
2431
+ // Backwards compatibility
2432
+ droppable: !1
2433
+ } : {
2434
+ draggable: (t = e?.draggable) != null ? t : r.draggable,
2435
+ droppable: (a = e?.droppable) != null ? a : r.droppable
2436
+ };
2437
+ }
2438
+ F.Down, F.Right, F.Up, F.Left;
2439
+ function ms({
2440
+ id: e,
2441
+ index: r,
2442
+ previewText: t,
2443
+ defaultExpanded: a = !1,
2444
+ children: n,
2445
+ tooltipContent: o,
2446
+ onRemove: l,
2447
+ className: i = ""
2448
+ }) {
2449
+ const [u, f] = S(a), { attributes: d, listeners: m, setNodeRef: x, transform: g, transition: j, isDragging: C } = ds({ id: e }), y = {
2450
+ transform: ae.Transform.toString(g),
2451
+ transition: j,
2452
+ opacity: C ? 0.5 : 1
2453
+ };
2454
+ return /* @__PURE__ */ s.jsx(
2455
+ "div",
2456
+ {
2457
+ ref: x,
2458
+ style: y,
2459
+ className: `border border-border rounded-md bg-surface-variant ${i}`,
2460
+ children: u ? (
2461
+ // ── Expanded ──────────────────────────────────────────────────────────
2462
+ /* @__PURE__ */ s.jsxs("div", { className: "p-3", children: [
2463
+ /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
2464
+ /* @__PURE__ */ s.jsx(
2465
+ U,
2466
+ {
2467
+ type: "button",
2468
+ variant: "ghost",
2469
+ size: "icon",
2470
+ ...d,
2471
+ ...m,
2472
+ className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing",
2473
+ "aria-label": "Drag to reorder",
2474
+ leftIcon: /* @__PURE__ */ s.jsx(Ie, { className: "w-4 h-4" })
2475
+ }
2476
+ ),
2477
+ /* @__PURE__ */ s.jsxs(
2478
+ "span",
2479
+ {
2480
+ className: "text-sm font-medium text-text-secondary flex-1 cursor-pointer select-none",
2481
+ onClick: () => f(!1),
2482
+ children: [
2483
+ "Item ",
2484
+ r + 1
2485
+ ]
2486
+ }
2487
+ ),
2488
+ /* @__PURE__ */ s.jsx(
2489
+ U,
2490
+ {
2491
+ type: "button",
2492
+ variant: "ghost",
2493
+ size: "icon",
2494
+ onClick: () => f(!1),
2495
+ className: "h-auto w-auto p-1",
2496
+ "aria-label": "Collapse",
2497
+ leftIcon: /* @__PURE__ */ s.jsx(Oe, { className: "w-4 h-4 transition-transform rotate-90" })
2498
+ }
2499
+ ),
2500
+ /* @__PURE__ */ s.jsx(
2501
+ U,
2502
+ {
2503
+ type: "button",
2504
+ variant: "ghost",
2505
+ size: "icon",
2506
+ onClick: l,
2507
+ className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
2508
+ "aria-label": "Remove",
2509
+ leftIcon: /* @__PURE__ */ s.jsx(be, { className: "w-4 h-4" })
2510
+ }
2511
+ )
2512
+ ] }),
2513
+ n
2514
+ ] })
2515
+ ) : (
2516
+ // ── Collapsed ─────────────────────────────────────────────────────────
2517
+ /* @__PURE__ */ s.jsxs("div", { className: "relative group", children: [
2518
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 px-3 py-2", children: [
2519
+ /* @__PURE__ */ s.jsx(
2520
+ U,
2521
+ {
2522
+ type: "button",
2523
+ variant: "ghost",
2524
+ size: "icon",
2525
+ ...d,
2526
+ ...m,
2527
+ className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing flex-shrink-0",
2528
+ "aria-label": "Drag to reorder",
2529
+ onClick: (R) => R.stopPropagation(),
2530
+ leftIcon: /* @__PURE__ */ s.jsx(Ie, { className: "w-4 h-4" })
2531
+ }
2532
+ ),
2533
+ /* @__PURE__ */ s.jsx(
2534
+ "span",
2535
+ {
2536
+ className: "flex-1 text-sm text-text-secondary truncate cursor-pointer select-none",
2537
+ onClick: () => f(!0),
2538
+ children: t
2539
+ }
2540
+ ),
2541
+ /* @__PURE__ */ s.jsx(
2542
+ U,
2543
+ {
2544
+ type: "button",
2545
+ variant: "ghost",
2546
+ size: "icon",
2547
+ onClick: () => f(!0),
2548
+ className: "h-auto w-auto p-1 flex-shrink-0",
2549
+ "aria-label": "Expand",
2550
+ leftIcon: /* @__PURE__ */ s.jsx(Oe, { className: "w-4 h-4 transition-transform" })
2551
+ }
2552
+ ),
2553
+ /* @__PURE__ */ s.jsx(
2554
+ U,
2555
+ {
2556
+ type: "button",
2557
+ variant: "ghost",
2558
+ size: "icon",
2559
+ onClick: l,
2560
+ className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
2561
+ "aria-label": "Remove",
2562
+ leftIcon: /* @__PURE__ */ s.jsx(be, { className: "w-4 h-4" })
2563
+ }
2564
+ )
2565
+ ] }),
2566
+ o && /* @__PURE__ */ s.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: o })
2567
+ ] })
2568
+ )
2569
+ }
2570
+ );
1151
2571
  }
2572
+ ms.displayName = "SortableItem";
1152
2573
  export {
1153
- Ze as Alert,
1154
- Qe as Badge,
1155
- D as Button,
1156
- Xe as Card,
1157
- _e as ColorPalette,
1158
- Je as Demo,
1159
- qe as Section,
1160
- Ge as Sidebar,
1161
- Se as SocialButton,
1162
- er as Stepper,
1163
- Ke as TabBar,
1164
- Ae as ThemeProvider,
1165
- Be as ThemeToggle,
1166
- Oe as useTheme
2574
+ $s as Accordion,
2575
+ Ts as Alert,
2576
+ Vr as Badge,
2577
+ U as Button,
2578
+ Cs as Card,
2579
+ Rs as CheckboxGroup,
2580
+ gr as ColorPalette,
2581
+ Ns as Demo,
2582
+ Vs as FormField,
2583
+ Rr as Input,
2584
+ Ds as OptionCard,
2585
+ Es as RadioGroup,
2586
+ ks as Section,
2587
+ Er as Select,
2588
+ js as Sidebar,
2589
+ Ir as Slider,
2590
+ Nr as SocialButton,
2591
+ ms as SortableItem,
2592
+ Os as Stepper,
2593
+ Is as TabBar,
2594
+ $r as TagInput,
2595
+ Dr as Textarea,
2596
+ vr as ThemeProvider,
2597
+ br as ThemeToggle,
2598
+ ws as clearAllErrors,
2599
+ ps as clearFieldError,
2600
+ bs as getFirstError,
2601
+ ir as hasErrors,
2602
+ ys as useForm,
2603
+ hr as useTheme,
2604
+ cr as validateField,
2605
+ ve as validateForm,
2606
+ hs as validators
1167
2607
  };