acemyjob-ui 0.10.0 → 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,202 +1,203 @@
1
- import * as W from "react";
2
- import B, { useState as k, useCallback as R, createContext as he, useEffect as Z, useContext as ge } from "react";
3
- import { Dialog as be, DialogBackdrop as pe, DialogPanel as je, TransitionChild as we } from "@headlessui/react";
4
- import { XMarkIcon as ye, Bars3Icon as Ne, ChevronDownIcon as K, InformationCircleIcon as Ve, ExclamationCircleIcon as Ce, XCircleIcon as ke, CheckCircleIcon as Te } from "@heroicons/react/24/outline";
5
- const ar = {
6
- required: (r = "This field is required") => ({
7
- validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
8
- message: r
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
9
10
  }),
10
- email: (r = "Please enter a valid email address") => ({
11
- validate: (s) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(s)),
12
- message: r
11
+ email: (e = "Please enter a valid email address") => ({
12
+ validate: (r) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(r)),
13
+ message: e
13
14
  }),
14
- minLength: (r, s) => ({
15
- validate: (t) => String(t).length >= r,
16
- message: s || `Must be at least ${r} characters`
15
+ minLength: (e, r) => ({
16
+ validate: (t) => String(t).length >= e,
17
+ message: r || `Must be at least ${e} characters`
17
18
  }),
18
- maxLength: (r, s) => ({
19
- validate: (t) => String(t).length <= r,
20
- message: s || `Must be no more than ${r} characters`
19
+ maxLength: (e, r) => ({
20
+ validate: (t) => String(t).length <= e,
21
+ message: r || `Must be no more than ${e} characters`
21
22
  }),
22
- pattern: (r, s = "Invalid format") => ({
23
- validate: (t) => r.test(String(t)),
24
- message: s
23
+ pattern: (e, r = "Invalid format") => ({
24
+ validate: (t) => e.test(String(t)),
25
+ message: r
25
26
  }),
26
- minValue: (r, s) => ({
27
- validate: (t) => Number(t) >= r,
28
- message: s || `Must be at least ${r}`
27
+ minValue: (e, r) => ({
28
+ validate: (t) => Number(t) >= e,
29
+ message: r || `Must be at least ${e}`
29
30
  }),
30
- maxValue: (r, s) => ({
31
- validate: (t) => Number(t) <= r,
32
- message: s || `Must be no more than ${r}`
31
+ maxValue: (e, r) => ({
32
+ validate: (t) => Number(t) <= e,
33
+ message: r || `Must be no more than ${e}`
33
34
  }),
34
- url: (r = "Please enter a valid URL") => ({
35
- validate: (s) => {
35
+ url: (e = "Please enter a valid URL") => ({
36
+ validate: (r) => {
36
37
  try {
37
- return new URL(String(s)), !0;
38
+ return new URL(String(r)), !0;
38
39
  } catch {
39
40
  return !1;
40
41
  }
41
42
  },
42
- message: r
43
+ message: e
43
44
  }),
44
- phone: (r = "Please enter a valid phone number") => ({
45
- validate: (s) => {
46
- const t = /^[\d\s\-+()]+$/, a = String(s);
45
+ phone: (e = "Please enter a valid phone number") => ({
46
+ validate: (r) => {
47
+ const t = /^[\d\s\-+()]+$/, a = String(r);
47
48
  return t.test(a) && a.replace(/\D/g, "").length >= 10;
48
49
  },
49
- message: r
50
+ message: e
50
51
  }),
51
- match: (r, s = "Fields do not match") => ({
52
- validate: (t) => t === r,
53
- message: s
52
+ match: (e, r = "Fields do not match") => ({
53
+ validate: (t) => t === e,
54
+ message: r
54
55
  }),
55
- custom: (r, s) => ({
56
- validate: r,
57
- message: s
56
+ custom: (e, r) => ({
57
+ validate: e,
58
+ message: r
58
59
  })
59
60
  };
60
- function $e(r, s) {
61
- for (const t of s)
62
- if (!t.validate(r))
61
+ function cr(e, r) {
62
+ for (const t of r)
63
+ if (!t.validate(e))
63
64
  return t.message;
64
65
  return null;
65
66
  }
66
- function X(r, s) {
67
+ function ve(e, r) {
67
68
  const t = {};
68
- for (const [a, l] of Object.entries(s)) {
69
- const o = r[a], i = $e(o, l);
70
- t[a] = i;
69
+ for (const [a, n] of Object.entries(r)) {
70
+ const o = e[a], l = cr(o, n);
71
+ t[a] = l;
71
72
  }
72
73
  return t;
73
74
  }
74
- function Ee(r) {
75
- return Object.values(r).some((s) => s !== null);
75
+ function ir(e) {
76
+ return Object.values(e).some((r) => r !== null);
76
77
  }
77
- function tr(r) {
78
- for (const s of Object.values(r))
79
- if (s !== null)
80
- return s;
78
+ function bs(e) {
79
+ for (const r of Object.values(e))
80
+ if (r !== null)
81
+ return r;
81
82
  return null;
82
83
  }
83
- function nr(r, s) {
84
+ function ps(e, r) {
84
85
  return {
85
- ...r,
86
- [s]: null
86
+ ...e,
87
+ [r]: null
87
88
  };
88
89
  }
89
- function or(r) {
90
- const s = {};
91
- for (const t of Object.keys(r))
92
- s[t] = null;
93
- return s;
90
+ function ws(e) {
91
+ const r = {};
92
+ for (const t of Object.keys(e))
93
+ r[t] = null;
94
+ return r;
94
95
  }
95
- function lr({
96
- initialValues: r,
97
- validationRules: s = {},
96
+ function ys({
97
+ initialValues: e,
98
+ validationRules: r = {},
98
99
  onSubmit: t
99
100
  }) {
100
- const [a, l] = k(r), [o, i] = k({}), [c, u] = k({}), [v, d] = k(!1), m = JSON.stringify(a) !== JSON.stringify(r), h = R(
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(
101
102
  (b) => {
102
- const { name: f, value: j, type: C } = b.target;
103
- let L = j;
104
- if (C === "checkbox" ? L = b.target.checked : C === "number" && (L = j ? Number(j) : ""), l((P) => ({
105
- ...P,
106
- [f]: L
107
- })), s[f]) {
108
- const P = X({ [f]: L }, { [f]: s[f] });
109
- i((Y) => ({
110
- ...Y,
111
- [f]: P[f]
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]
112
113
  }));
113
114
  }
114
115
  },
115
- [s]
116
- ), g = R(
116
+ [r]
117
+ ), g = O(
117
118
  (b) => {
118
- const { name: f } = b.target;
119
- u((j) => ({
120
- ...j,
121
- [f]: !0
119
+ const { name: v } = b.target;
120
+ u((w) => ({
121
+ ...w,
122
+ [v]: !0
122
123
  }));
123
124
  },
124
125
  []
125
- ), N = R((b, f) => {
126
- if (l((j) => ({
127
- ...j,
128
- [b]: f
129
- })), s[b]) {
130
- const j = X({ [b]: f }, { [b]: s[b] });
131
- i((C) => ({
132
- ...C,
133
- [b]: j[b]
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]
134
135
  }));
135
136
  }
136
- }, [s]), T = R((b, f) => {
137
- i((j) => ({
138
- ...j,
139
- [b]: f
137
+ }, [r]), C = O((b, v) => {
138
+ l((w) => ({
139
+ ...w,
140
+ [b]: v
140
141
  }));
141
- }, []), _ = R(
142
+ }, []), y = O(
142
143
  async (b) => {
143
144
  b.preventDefault();
144
- const f = X(a, s);
145
- i(f);
146
- const j = {};
147
- for (const C of Object.keys(a))
148
- j[C] = !0;
149
- if (u(j), !Ee(f) && t) {
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) {
150
151
  d(!0);
151
152
  try {
152
153
  await t(a);
153
- } catch (C) {
154
- console.error("Form submission error:", C);
154
+ } catch (T) {
155
+ console.error("Form submission error:", T);
155
156
  } finally {
156
157
  d(!1);
157
158
  }
158
159
  }
159
160
  },
160
- [a, s, t]
161
- ), A = R(() => {
162
- l(r), i({}), u({}), d(!1);
163
- }, [r]), $ = R(
161
+ [a, r, t]
162
+ ), R = O(() => {
163
+ n(e), l({}), u({}), d(!1);
164
+ }, [e]), I = O(
164
165
  (b) => ({
165
166
  name: b,
166
167
  value: a[b] || "",
167
- onChange: h,
168
+ onChange: x,
168
169
  onBlur: g
169
170
  }),
170
- [a, h, g]
171
- ), S = R(
171
+ [a, x, g]
172
+ ), k = O(
172
173
  (b) => o[b] || null,
173
174
  [o]
174
- ), D = R(
175
- (b) => c[b] || !1,
176
- [c]
177
- ), F = R(
178
- (b) => a[b] !== r[b],
179
- [a, r]
175
+ ), E = O(
176
+ (b) => i[b] || !1,
177
+ [i]
178
+ ), D = O(
179
+ (b) => a[b] !== e[b],
180
+ [a, e]
180
181
  );
181
182
  return {
182
183
  values: a,
183
184
  errors: o,
184
- touched: c,
185
- isSubmitting: v,
185
+ touched: i,
186
+ isSubmitting: f,
186
187
  isDirty: m,
187
- handleChange: h,
188
+ handleChange: x,
188
189
  handleBlur: g,
189
- setFieldValue: N,
190
- setFieldError: T,
191
- handleSubmit: _,
192
- resetForm: A,
193
- getFieldProps: $,
194
- getFieldError: S,
195
- isFieldTouched: D,
196
- isFieldDirty: F
190
+ setFieldValue: j,
191
+ setFieldError: C,
192
+ handleSubmit: y,
193
+ resetForm: R,
194
+ getFieldProps: I,
195
+ getFieldError: k,
196
+ isFieldTouched: E,
197
+ isFieldDirty: D
197
198
  };
198
199
  }
199
- var U = { exports: {} }, I = {};
200
+ var ie = { exports: {} }, ee = {};
200
201
  /**
201
202
  * @license React
202
203
  * react-jsx-runtime.production.js
@@ -206,29 +207,29 @@ var U = { exports: {} }, I = {};
206
207
  * This source code is licensed under the MIT license found in the
207
208
  * LICENSE file in the root directory of this source tree.
208
209
  */
209
- var ne;
210
- function Re() {
211
- if (ne) return I;
212
- ne = 1;
213
- var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
214
- function t(a, l, o) {
215
- var i = null;
216
- 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) {
217
218
  o = {};
218
- for (var c in l)
219
- c !== "key" && (o[c] = l[c]);
220
- } else o = l;
221
- return l = o.ref, {
222
- $$typeof: r,
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,
223
224
  type: a,
224
- key: i,
225
- ref: l !== void 0 ? l : null,
225
+ key: l,
226
+ ref: n !== void 0 ? n : null,
226
227
  props: o
227
228
  };
228
229
  }
229
- return I.Fragment = s, I.jsx = t, I.jsxs = t, I;
230
+ return ee.Fragment = r, ee.jsx = t, ee.jsxs = t, ee;
230
231
  }
231
- var z = {};
232
+ var re = {};
232
233
  /**
233
234
  * @license React
234
235
  * react-jsx-runtime.development.js
@@ -238,245 +239,245 @@ var z = {};
238
239
  * This source code is licensed under the MIT license found in the
239
240
  * LICENSE file in the root directory of this source tree.
240
241
  */
241
- var oe;
242
- function Ae() {
243
- return oe || (oe = 1, process.env.NODE_ENV !== "production" && function() {
244
- function r(n) {
245
- if (n == null) return null;
246
- if (typeof n == "function")
247
- return n.$$typeof === L ? null : n.displayName || n.name || null;
248
- if (typeof n == "string") return n;
249
- switch (n) {
250
- case T:
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:
251
252
  return "Fragment";
252
- case A:
253
+ case R:
253
254
  return "Profiler";
254
- case _:
255
+ case y:
255
256
  return "StrictMode";
256
- case F:
257
+ case D:
257
258
  return "Suspense";
258
259
  case b:
259
260
  return "SuspenseList";
260
- case C:
261
+ case T:
261
262
  return "Activity";
262
263
  }
263
- if (typeof n == "object")
264
- switch (typeof n.tag == "number" && console.error(
264
+ if (typeof c == "object")
265
+ switch (typeof c.tag == "number" && console.error(
265
266
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
266
- ), n.$$typeof) {
267
- case N:
268
- return "Portal";
269
- case S:
270
- return (n.displayName || "Context") + ".Provider";
271
- case $:
272
- return (n._context.displayName || "Context") + ".Consumer";
273
- case D:
274
- var x = n.render;
275
- return n = n.displayName, n || (n = x.displayName || x.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
276
- case f:
277
- return x = n.displayName || null, x !== null ? x : r(n.type) || "Memo";
267
+ ), c.$$typeof) {
278
268
  case j:
279
- x = n._payload, n = n._init;
269
+ return "Portal";
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;
280
281
  try {
281
- return r(n(x));
282
+ return e(c(h));
282
283
  } catch {
283
284
  }
284
285
  }
285
286
  return null;
286
287
  }
287
- function s(n) {
288
- return "" + n;
288
+ function r(c) {
289
+ return "" + c;
289
290
  }
290
- function t(n) {
291
+ function t(c) {
291
292
  try {
292
- s(n);
293
- var x = !1;
293
+ r(c);
294
+ var h = !1;
294
295
  } catch {
295
- x = !0;
296
+ h = !0;
296
297
  }
297
- if (x) {
298
- x = console;
299
- var p = x.error, w = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
298
+ if (h) {
299
+ h = console;
300
+ var p = h.error, $ = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
300
301
  return p.call(
301
- x,
302
+ h,
302
303
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
303
- w
304
- ), s(n);
304
+ $
305
+ ), r(c);
305
306
  }
306
307
  }
307
- function a(n) {
308
- if (n === T) return "<>";
309
- if (typeof n == "object" && n !== null && n.$$typeof === j)
308
+ function a(c) {
309
+ if (c === C) return "<>";
310
+ if (typeof c == "object" && c !== null && c.$$typeof === w)
310
311
  return "<...>";
311
312
  try {
312
- var x = r(n);
313
- return x ? "<" + x + ">" : "<...>";
313
+ var h = e(c);
314
+ return h ? "<" + h + ">" : "<...>";
314
315
  } catch {
315
316
  return "<...>";
316
317
  }
317
318
  }
318
- function l() {
319
- var n = P.A;
320
- return n === null ? null : n.getOwner();
319
+ function n() {
320
+ var c = A.A;
321
+ return c === null ? null : c.getOwner();
321
322
  }
322
323
  function o() {
323
324
  return Error("react-stack-top-frame");
324
325
  }
325
- function i(n) {
326
- if (Y.call(n, "key")) {
327
- var x = Object.getOwnPropertyDescriptor(n, "key").get;
328
- if (x && x.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;
329
330
  }
330
- return n.key !== void 0;
331
+ return c.key !== void 0;
331
332
  }
332
- function c(n, x) {
333
+ function i(c, h) {
333
334
  function p() {
334
- ee || (ee = !0, console.error(
335
+ Q || (Q = !0, console.error(
335
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)",
336
- x
337
+ h
337
338
  ));
338
339
  }
339
- p.isReactWarning = !0, Object.defineProperty(n, "key", {
340
+ p.isReactWarning = !0, Object.defineProperty(c, "key", {
340
341
  get: p,
341
342
  configurable: !0
342
343
  });
343
344
  }
344
345
  function u() {
345
- var n = r(this.type);
346
- return re[n] || (re[n] = !0, console.error(
346
+ var c = e(this.type);
347
+ return ne[c] || (ne[c] = !0, console.error(
347
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."
348
- )), n = this.props.ref, n !== void 0 ? n : null;
349
+ )), c = this.props.ref, c !== void 0 ? c : null;
349
350
  }
350
- function v(n, x, p, w, O, E, H, J) {
351
- return p = E.ref, n = {
351
+ function f(c, h, p, $, L, z, ce, K) {
352
+ return p = z.ref, c = {
352
353
  $$typeof: g,
353
- type: n,
354
- key: x,
355
- props: E,
356
- _owner: O
357
- }, (p !== void 0 ? p : null) !== null ? Object.defineProperty(n, "ref", {
354
+ type: c,
355
+ key: h,
356
+ props: z,
357
+ _owner: L
358
+ }, (p !== void 0 ? p : null) !== null ? Object.defineProperty(c, "ref", {
358
359
  enumerable: !1,
359
360
  get: u
360
- }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
361
+ }) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
361
362
  configurable: !1,
362
363
  enumerable: !1,
363
364
  writable: !0,
364
365
  value: 0
365
- }), Object.defineProperty(n, "_debugInfo", {
366
+ }), Object.defineProperty(c, "_debugInfo", {
366
367
  configurable: !1,
367
368
  enumerable: !1,
368
369
  writable: !0,
369
370
  value: null
370
- }), Object.defineProperty(n, "_debugStack", {
371
+ }), Object.defineProperty(c, "_debugStack", {
371
372
  configurable: !1,
372
373
  enumerable: !1,
373
374
  writable: !0,
374
- value: H
375
- }), Object.defineProperty(n, "_debugTask", {
375
+ value: ce
376
+ }), Object.defineProperty(c, "_debugTask", {
376
377
  configurable: !1,
377
378
  enumerable: !1,
378
379
  writable: !0,
379
- value: J
380
- }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
380
+ value: K
381
+ }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
381
382
  }
382
- function d(n, x, p, w, O, E, H, J) {
383
- var y = x.children;
384
- if (y !== void 0)
385
- if (w)
386
- if (fe(y)) {
387
- for (w = 0; w < y.length; w++)
388
- m(y[w]);
389
- Object.freeze && Object.freeze(y);
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);
390
391
  } else
391
392
  console.error(
392
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."
393
394
  );
394
- else m(y);
395
- if (Y.call(x, "key")) {
396
- y = r(n);
397
- var M = Object.keys(x).filter(function(ve) {
398
- return ve !== "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";
399
400
  });
400
- w = 0 < M.length ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}", te[y + w] || (M = 0 < M.length ? "{" + M.join(": ..., ") + ": ...}" : "{}", console.error(
401
+ $ = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", le[N + $] || (B = 0 < B.length ? "{" + B.join(": ..., ") + ": ...}" : "{}", console.error(
401
402
  `A props object containing a "key" prop is being spread into JSX:
402
403
  let props = %s;
403
404
  <%s {...props} />
404
405
  React keys must be passed directly to JSX without using spread:
405
406
  let props = %s;
406
407
  <%s key={someKey} {...props} />`,
407
- w,
408
- y,
409
- M,
410
- y
411
- ), te[y + w] = !0);
408
+ $,
409
+ N,
410
+ B,
411
+ N
412
+ ), le[N + $] = !0);
412
413
  }
413
- if (y = null, p !== void 0 && (t(p), y = "" + p), i(x) && (t(x.key), y = "" + x.key), "key" in x) {
414
+ if (N = null, p !== void 0 && (t(p), N = "" + p), l(h) && (t(h.key), N = "" + h.key), "key" in h) {
414
415
  p = {};
415
- for (var q in x)
416
- q !== "key" && (p[q] = x[q]);
417
- } else p = x;
418
- return y && c(
416
+ for (var V in h)
417
+ V !== "key" && (p[V] = h[V]);
418
+ } else p = h;
419
+ return N && i(
419
420
  p,
420
- typeof n == "function" ? n.displayName || n.name || "Unknown" : n
421
- ), v(
422
- n,
423
- y,
424
- E,
425
- O,
426
- l(),
421
+ typeof c == "function" ? c.displayName || c.name || "Unknown" : c
422
+ ), f(
423
+ c,
424
+ N,
425
+ z,
426
+ L,
427
+ n(),
427
428
  p,
428
- H,
429
- J
429
+ ce,
430
+ K
430
431
  );
431
432
  }
432
- function m(n) {
433
- typeof n == "object" && n !== null && n.$$typeof === g && n._store && (n._store.validated = 1);
433
+ function m(c) {
434
+ typeof c == "object" && c !== null && c.$$typeof === g && c._store && (c._store.validated = 1);
434
435
  }
435
- var h = B, g = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), S = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), C = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), P = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, fe = Array.isArray, G = 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() {
436
437
  return null;
437
438
  };
438
- h = {
439
- "react-stack-bottom-frame": function(n) {
440
- return n();
439
+ x = {
440
+ "react-stack-bottom-frame": function(c) {
441
+ return c();
441
442
  }
442
443
  };
443
- var ee, re = {}, se = h["react-stack-bottom-frame"].bind(
444
- h,
444
+ var Q, ne = {}, G = x["react-stack-bottom-frame"].bind(
445
+ x,
445
446
  o
446
- )(), ae = G(a(o)), te = {};
447
- z.Fragment = T, z.jsx = function(n, x, p, w, O) {
448
- var E = 1e4 > P.recentlyCreatedOwnerStacks++;
447
+ )(), oe = Z(a(o)), le = {};
448
+ re.Fragment = C, re.jsx = function(c, h, p, $, L) {
449
+ var z = 1e4 > A.recentlyCreatedOwnerStacks++;
449
450
  return d(
450
- n,
451
- x,
451
+ c,
452
+ h,
452
453
  p,
453
454
  !1,
454
- w,
455
- O,
456
- E ? Error("react-stack-top-frame") : se,
457
- E ? G(a(n)) : ae
455
+ $,
456
+ L,
457
+ z ? Error("react-stack-top-frame") : G,
458
+ z ? Z(a(c)) : oe
458
459
  );
459
- }, z.jsxs = function(n, x, p, w, O) {
460
- var E = 1e4 > P.recentlyCreatedOwnerStacks++;
460
+ }, re.jsxs = function(c, h, p, $, L) {
461
+ var z = 1e4 > A.recentlyCreatedOwnerStacks++;
461
462
  return d(
462
- n,
463
- x,
463
+ c,
464
+ h,
464
465
  p,
465
466
  !0,
466
- w,
467
- O,
468
- E ? Error("react-stack-top-frame") : se,
469
- E ? G(a(n)) : ae
467
+ $,
468
+ L,
469
+ z ? Error("react-stack-top-frame") : G,
470
+ z ? Z(a(c)) : oe
470
471
  );
471
472
  };
472
- }()), z;
473
+ }()), re;
473
474
  }
474
- var le;
475
- function _e() {
476
- return le || (le = 1, process.env.NODE_ENV === "production" ? U.exports = Re() : U.exports = Ae()), U.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;
477
478
  }
478
- var e = _e();
479
- const Oe = {
479
+ var s = mr();
480
+ const fr = {
480
481
  bg: "bg-indigo-600",
481
482
  activeBg: "bg-indigo-700",
482
483
  text: "text-indigo-200",
@@ -484,66 +485,66 @@ const Oe = {
484
485
  hoverBg: "hover:bg-indigo-700",
485
486
  hoverText: "hover:text-white"
486
487
  };
487
- function V(...r) {
488
- return r.filter(Boolean).join(" ");
488
+ function _(...e) {
489
+ return e.filter(Boolean).join(" ");
489
490
  }
490
- function ce({ item: r, colorScheme: s }) {
491
- const [t, a] = k(r.current || r.children?.some((o) => o.current)), l = r.children && r.children.length > 0;
492
- return /* @__PURE__ */ e.jsxs("li", { children: [
493
- /* @__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(
494
495
  "a",
495
496
  {
496
- href: l ? void 0 : r.href,
497
+ href: n ? void 0 : e.href,
497
498
  onClick: (o) => {
498
- l && (o.preventDefault(), a(!t));
499
+ n && (o.preventDefault(), a(!t));
499
500
  },
500
- className: V(
501
- r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
501
+ className: _(
502
+ e.current ? `${r.activeBg} ${r.activeText}` : `${r.text} ${r.hoverBg} ${r.hoverText}`,
502
503
  "group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
503
- l ? "cursor-pointer" : ""
504
+ n ? "cursor-pointer" : ""
504
505
  ),
505
506
  children: [
506
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-3", children: [
507
- /* @__PURE__ */ e.jsx(
508
- r.icon,
507
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-x-3", children: [
508
+ /* @__PURE__ */ s.jsx(
509
+ e.icon,
509
510
  {
510
511
  "aria-hidden": "true",
511
- className: V(
512
- r.current ? s.activeText : `${s.text} group-${s.hoverText}`,
512
+ className: _(
513
+ e.current ? r.activeText : `${r.text} group-${r.hoverText}`,
513
514
  "size-6 shrink-0"
514
515
  )
515
516
  }
516
517
  ),
517
- r.name
518
+ e.name
518
519
  ] }),
519
- l && /* @__PURE__ */ e.jsx(
520
- K,
520
+ n && /* @__PURE__ */ s.jsx(
521
+ Ne,
521
522
  {
522
- className: V(
523
+ className: _(
523
524
  "size-5 shrink-0 transition-transform",
524
525
  t ? "rotate-180" : "",
525
- r.current ? s.activeText : s.text
526
+ e.current ? r.activeText : r.text
526
527
  )
527
528
  }
528
529
  )
529
530
  ]
530
531
  }
531
532
  ) }),
532
- l && t && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: r.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(
533
534
  "a",
534
535
  {
535
536
  href: o.href,
536
- className: V(
537
- o.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
537
+ className: _(
538
+ o.current ? `${r.activeBg} ${r.activeText}` : `${r.text} ${r.hoverBg} ${r.hoverText}`,
538
539
  "group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
539
540
  ),
540
541
  children: [
541
- /* @__PURE__ */ e.jsx(
542
+ /* @__PURE__ */ s.jsx(
542
543
  o.icon,
543
544
  {
544
545
  "aria-hidden": "true",
545
- className: V(
546
- o.current ? s.activeText : `${s.text} group-${s.hoverText}`,
546
+ className: _(
547
+ o.current ? r.activeText : `${r.text} group-${r.hoverText}`,
547
548
  "size-5 shrink-0"
548
549
  )
549
550
  }
@@ -554,118 +555,118 @@ function ce({ item: r, colorScheme: s }) {
554
555
  ) }, o.name)) })
555
556
  ] });
556
557
  }
557
- function cr({ company: r, profile: s, navigation: t, colorScheme: a = Oe }) {
558
- const [l, o] = k(!1);
559
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
560
- /* @__PURE__ */ e.jsxs(be, { open: l, onClose: o, className: "relative z-50 lg:hidden", children: [
561
- /* @__PURE__ */ e.jsx(
562
- pe,
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,
563
564
  {
564
565
  transition: !0,
565
566
  className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
566
567
  }
567
568
  ),
568
- /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
569
- je,
569
+ /* @__PURE__ */ s.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ s.jsxs(
570
+ er,
570
571
  {
571
572
  transition: !0,
572
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",
573
574
  children: [
574
- /* @__PURE__ */ e.jsx(we, { 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: [
575
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
576
- /* @__PURE__ */ e.jsx(ye, { "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" })
577
578
  ] }) }) }),
578
- /* @__PURE__ */ e.jsxs("div", { className: V("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
579
- /* @__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(
580
581
  "img",
581
582
  {
582
- alt: r.name,
583
- src: r.logo,
583
+ alt: e.name,
584
+ src: e.logo,
584
585
  className: "h-8 w-auto"
585
586
  }
586
587
  ) }),
587
- /* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(ce, { item: i, colorScheme: a }, 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)) }) }) }) })
588
589
  ] })
589
590
  ]
590
591
  }
591
592
  ) })
592
593
  ] }),
593
- /* @__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: V("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
594
- /* @__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(
595
596
  "img",
596
597
  {
597
- alt: r.name,
598
- src: r.logo,
598
+ alt: e.name,
599
+ src: e.logo,
599
600
  className: "h-8 w-auto"
600
601
  }
601
602
  ) }),
602
- /* @__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: [
603
- /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(ce, { item: i, colorScheme: a }, i.name)) }) }),
604
- /* @__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(
605
606
  "a",
606
607
  {
607
608
  href: "#",
608
- className: V(
609
+ className: _(
609
610
  "flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
610
611
  a.activeText,
611
612
  a.hoverBg
612
613
  ),
613
614
  children: [
614
- /* @__PURE__ */ e.jsx(
615
+ /* @__PURE__ */ s.jsx(
615
616
  "img",
616
617
  {
617
- alt: s.name,
618
- src: s.image,
619
- className: V("size-8 rounded-full", a.activeBg)
618
+ alt: r.name,
619
+ src: r.image,
620
+ className: _("size-8 rounded-full", a.activeBg)
620
621
  }
621
622
  ),
622
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
623
- /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: s.name })
623
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Your profile" }),
624
+ /* @__PURE__ */ s.jsx("span", { "aria-hidden": "true", children: r.name })
624
625
  ]
625
626
  }
626
627
  ) })
627
628
  ] }) })
628
629
  ] }) }),
629
- /* @__PURE__ */ e.jsxs("div", { className: V("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: [
630
- /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => o(!0), className: V("-m-2.5 p-2.5 lg:hidden", a.text), children: [
631
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
632
- /* @__PURE__ */ e.jsx(Ne, { "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" })
633
634
  ] }),
634
- /* @__PURE__ */ e.jsx("div", { className: V("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
635
- /* @__PURE__ */ e.jsxs("a", { href: "#", children: [
636
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
637
- /* @__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(
638
639
  "img",
639
640
  {
640
- alt: s.name,
641
- src: s.image,
642
- className: V("size-8 rounded-full", a.activeBg)
641
+ alt: r.name,
642
+ src: r.image,
643
+ className: _("size-8 rounded-full", a.activeBg)
643
644
  }
644
645
  )
645
646
  ] })
646
647
  ] })
647
648
  ] }) });
648
649
  }
649
- const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, value: t }) => {
650
+ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, value: t }) => {
650
651
  const a = `rgb(${t})`;
651
- 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: [
652
- /* @__PURE__ */ e.jsx(
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(
653
654
  "div",
654
655
  {
655
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${me(s)}`
656
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Le(r)}`
656
657
  }
657
658
  ),
658
- /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
659
- /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: r }),
660
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: s }),
661
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: a })
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 })
662
663
  ] })
663
664
  ] });
664
- }, ie = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
665
- /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: r }),
666
- /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-11 gap-4", children: s.map((t) => /* @__PURE__ */ e.jsx(Be, { ...t }, t.name)) })
667
- ] }), Pe = () => {
668
- const r = [
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 = [
669
670
  {
670
671
  title: "Success Colors (Green)",
671
672
  colors: [
@@ -714,7 +715,7 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
714
715
  { name: "950", cssVar: "--color-error-950", value: "69 10 10" }
715
716
  ]
716
717
  }
717
- ], s = [
718
+ ], r = [
718
719
  {
719
720
  title: "Reseda Green",
720
721
  colors: [
@@ -875,92 +876,92 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
875
876
  { name: "Border", cssVar: "--color-border" },
876
877
  { name: "Border Subtle", cssVar: "--color-border-subtle" }
877
878
  ];
878
- return /* @__PURE__ */ e.jsxs("div", { className: "p-8 space-y-8 bg-background min-h-screen", children: [
879
- /* @__PURE__ */ e.jsxs("div", { className: "text-center space-y-2", children: [
880
- /* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
881
- /* @__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" })
882
883
  ] }),
883
- s.map((a) => /* @__PURE__ */ e.jsx(ie, { ...a }, a.title)),
884
- r.map((a) => /* @__PURE__ */ e.jsx(ie, { ...a }, a.title)),
885
- /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
886
- /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
887
- /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((a) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center space-y-2 p-3 rounded-lg border border-border-subtle bg-surface hover:bg-surface-variant transition-colors", children: [
888
- /* @__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(
889
890
  "div",
890
891
  {
891
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${me(a.cssVar)}`
892
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Le(a.cssVar)}`
892
893
  }
893
894
  ),
894
- /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
895
- /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: a.name }),
896
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: a.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 })
897
898
  ] })
898
899
  ] }, a.name)) })
899
900
  ] }),
900
- /* @__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" }) })
901
902
  ] });
902
- }, xe = he(void 0), Se = ({
903
- children: r,
904
- defaultTheme: s = "system",
903
+ }, Me = ue(void 0), vr = ({
904
+ children: e,
905
+ defaultTheme: r = "system",
905
906
  storageKey: t = "acemyjob-ui-theme"
906
907
  }) => {
907
- const [a, l] = k(s), [o, i] = k("light"), [c, u] = k(!1);
908
- Z(() => {
908
+ const [a, n] = S(r), [o, l] = S("light"), [i, u] = S(!1);
909
+ M(() => {
909
910
  const d = localStorage.getItem(t);
910
- d && l(d), u(!0);
911
- }, [t]), Z(() => {
912
- if (!c) return;
911
+ d && n(d), u(!0);
912
+ }, [t]), M(() => {
913
+ if (!i) return;
913
914
  const d = window.document.documentElement, m = () => {
914
- let h;
915
- a === "system" ? h = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : h = a, i(h), d.classList.remove("light", "dark"), d.classList.add(h);
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);
916
917
  };
917
918
  if (m(), a === "system") {
918
- const h = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
919
- return h.addEventListener("change", g), () => h.removeEventListener("change", g);
919
+ const x = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
920
+ return x.addEventListener("change", g), () => x.removeEventListener("change", g);
920
921
  }
921
- }, [a, c]);
922
- const v = {
922
+ }, [a, i]);
923
+ const f = {
923
924
  theme: a,
924
925
  setTheme: (d) => {
925
- localStorage.setItem(t, d), l(d);
926
+ localStorage.setItem(t, d), n(d);
926
927
  },
927
928
  resolvedTheme: o
928
929
  };
929
- return /* @__PURE__ */ e.jsx(xe.Provider, { value: v, children: r });
930
- }, De = () => {
931
- const r = ge(xe);
932
- if (r === 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)
933
934
  throw new Error("useTheme must be used within a ThemeProvider");
934
- return r;
935
- }, Fe = () => {
936
- const { theme: r, setTheme: s } = De(), [t, a] = k(!1);
937
- if (Z(() => {
935
+ return e;
936
+ }, br = () => {
937
+ const { theme: e, setTheme: r } = hr(), [t, a] = S(!1);
938
+ if (M(() => {
938
939
  a(!0);
939
940
  }, []), !t)
940
- return /* @__PURE__ */ e.jsxs(
941
+ return /* @__PURE__ */ s.jsxs(
941
942
  "button",
942
943
  {
943
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",
944
945
  "aria-label": "Loading theme toggle",
945
946
  children: [
946
- /* @__PURE__ */ e.jsx("div", { className: "w-4 h-4 animate-pulse bg-text-muted rounded" }),
947
- /* @__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..." })
948
949
  ]
949
950
  }
950
951
  );
951
- const l = () => {
952
- s(r === "light" ? "dark" : r === "dark" ? "system" : "light");
952
+ const n = () => {
953
+ r(e === "light" ? "dark" : e === "dark" ? "system" : "light");
953
954
  }, o = () => {
954
- switch (r) {
955
+ switch (e) {
955
956
  case "light":
956
- 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" }) });
957
958
  case "dark":
958
- 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" }) });
959
960
  case "system":
960
- 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" }) });
961
962
  }
962
- }, i = () => {
963
- switch (r) {
963
+ }, l = () => {
964
+ switch (e) {
964
965
  case "light":
965
966
  return "Light";
966
967
  case "dark":
@@ -969,22 +970,22 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
969
970
  return "System";
970
971
  }
971
972
  };
972
- return /* @__PURE__ */ e.jsxs(
973
+ return /* @__PURE__ */ s.jsxs(
973
974
  "button",
974
975
  {
975
- onClick: l,
976
+ onClick: n,
976
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",
977
- "aria-label": `Current theme: ${i()}. Click to cycle themes.`,
978
+ "aria-label": `Current theme: ${l()}. Click to cycle themes.`,
978
979
  children: [
979
980
  o(),
980
- /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: i() })
981
+ /* @__PURE__ */ s.jsx("span", { className: "hidden sm:inline", children: l() })
981
982
  ]
982
983
  }
983
984
  );
984
- }, Le = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
985
- /* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Fe, {}) }),
986
- /* @__PURE__ */ e.jsx(Pe, {})
987
- ] }), ir = () => /* @__PURE__ */ e.jsx(Se, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Le, {}) }), de = {
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 = {
988
989
  variant: {
989
990
  default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
990
991
  destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
@@ -1002,35 +1003,35 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
1002
1003
  xl: "h-12 rounded-md px-10 text-base",
1003
1004
  icon: "h-10 w-10"
1004
1005
  }
1005
- }, Me = "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 = (...r) => r.filter(Boolean).join(" "), Q = B.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(
1006
1007
  ({
1007
- className: r,
1008
- variant: s = "default",
1008
+ className: e,
1009
+ variant: r = "default",
1009
1010
  size: t = "default",
1010
1011
  fullWidth: a = !1,
1011
- loading: l = !1,
1012
+ loading: n = !1,
1012
1013
  leftIcon: o,
1013
- rightIcon: i,
1014
- children: c,
1014
+ rightIcon: l,
1015
+ children: i,
1015
1016
  disabled: u,
1016
- ...v
1017
+ ...f
1017
1018
  }, d) => {
1018
- const m = u || l, h = Ie(
1019
- Me,
1020
- de.variant[s],
1021
- de.size[t],
1019
+ const m = u || n, x = yr(
1020
+ wr,
1021
+ $e.variant[r],
1022
+ $e.size[t],
1022
1023
  a ? "w-full" : "",
1023
- r
1024
+ e
1024
1025
  );
1025
- return /* @__PURE__ */ e.jsxs(
1026
+ return /* @__PURE__ */ s.jsxs(
1026
1027
  "button",
1027
1028
  {
1028
- className: h,
1029
+ className: x,
1029
1030
  ref: d,
1030
1031
  disabled: m,
1031
- ...v,
1032
+ ...f,
1032
1033
  children: [
1033
- l && /* @__PURE__ */ e.jsxs(
1034
+ n && /* @__PURE__ */ s.jsxs(
1034
1035
  "svg",
1035
1036
  {
1036
1037
  className: "mr-2 h-4 w-4 animate-spin",
@@ -1038,7 +1039,7 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
1038
1039
  fill: "none",
1039
1040
  viewBox: "0 0 24 24",
1040
1041
  children: [
1041
- /* @__PURE__ */ e.jsx(
1042
+ /* @__PURE__ */ s.jsx(
1042
1043
  "circle",
1043
1044
  {
1044
1045
  className: "opacity-25",
@@ -1049,7 +1050,7 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
1049
1050
  strokeWidth: "4"
1050
1051
  }
1051
1052
  ),
1052
- /* @__PURE__ */ e.jsx(
1053
+ /* @__PURE__ */ s.jsx(
1053
1054
  "path",
1054
1055
  {
1055
1056
  className: "opacity-75",
@@ -1060,16 +1061,16 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
1060
1061
  ]
1061
1062
  }
1062
1063
  ),
1063
- !l && o && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: o }),
1064
- c,
1065
- !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 })
1066
1067
  ]
1067
1068
  }
1068
1069
  );
1069
1070
  }
1070
1071
  );
1071
- Q.displayName = "Button";
1072
- const ue = {
1072
+ U.displayName = "Button";
1073
+ const De = {
1073
1074
  provider: {
1074
1075
  linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
1075
1076
  },
@@ -1078,36 +1079,36 @@ const ue = {
1078
1079
  right: "flex-row-reverse",
1079
1080
  only: "justify-center"
1080
1081
  }
1081
- }, ze = (...r) => r.filter(Boolean).join(" "), Ye = B.forwardRef(
1082
+ }, jr = (...e) => e.filter(Boolean).join(" "), Nr = X.forwardRef(
1082
1083
  ({
1083
- className: r,
1084
- provider: s,
1084
+ className: e,
1085
+ provider: r,
1085
1086
  iconPosition: t = "left",
1086
1087
  icon: a,
1087
- showText: l = !0,
1088
+ showText: n = !0,
1088
1089
  children: o,
1089
- size: i = "default",
1090
- fullWidth: c = !0,
1090
+ size: l = "default",
1091
+ fullWidth: i = !0,
1091
1092
  ...u
1092
- }, v) => {
1093
+ }, f) => {
1093
1094
  const m = a || {
1094
- 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" }) })
1095
- }[s], g = o || (l ? {
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 ? {
1096
1097
  linkedin: "Continue with LinkedIn"
1097
- }[s] : ""), N = ze(
1098
+ }[r] : ""), j = jr(
1098
1099
  "relative overflow-hidden transition-all duration-200",
1099
- ue.provider[s],
1100
- ue.iconPosition[t],
1101
- r
1100
+ De.provider[r],
1101
+ De.iconPosition[t],
1102
+ e
1102
1103
  );
1103
- return /* @__PURE__ */ e.jsxs(
1104
- Q,
1104
+ return /* @__PURE__ */ s.jsxs(
1105
+ U,
1105
1106
  {
1106
- ref: v,
1107
+ ref: f,
1107
1108
  variant: "none",
1108
- className: N,
1109
- size: i,
1110
- fullWidth: c,
1109
+ className: j,
1110
+ size: l,
1111
+ fullWidth: i,
1111
1112
  leftIcon: t === "left" ? m : void 0,
1112
1113
  rightIcon: t === "right" ? m : void 0,
1113
1114
  ...u,
@@ -1119,104 +1120,104 @@ const ue = {
1119
1120
  );
1120
1121
  }
1121
1122
  );
1122
- Ye.displayName = "SocialButton";
1123
- function dr({
1124
- children: r,
1125
- variant: s = "default",
1123
+ Nr.displayName = "SocialButton";
1124
+ function Cs({
1125
+ children: e,
1126
+ variant: r = "default",
1126
1127
  isActive: t = !1,
1127
1128
  onClick: a,
1128
- className: l = ""
1129
+ className: n = ""
1129
1130
  }) {
1130
- const o = "rounded-lg transition-all", i = {
1131
+ const o = "rounded-lg transition-all", l = {
1131
1132
  default: "border border-border p-4",
1132
1133
  surface: "bg-surface-variant p-4",
1133
1134
  elevated: "bg-surface shadow-md p-6",
1134
1135
  interactive: `border-2 p-4 cursor-pointer ${t ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
1135
1136
  };
1136
- return /* @__PURE__ */ e.jsx(
1137
+ return /* @__PURE__ */ s.jsx(
1137
1138
  "div",
1138
1139
  {
1139
- className: `${o} ${i[s]} ${l}`,
1140
+ className: `${o} ${l[r]} ${n}`,
1140
1141
  onClick: a,
1141
1142
  role: a ? "button" : void 0,
1142
1143
  tabIndex: a ? 0 : void 0,
1143
- onKeyDown: a ? (c) => {
1144
- (c.key === "Enter" || c.key === " ") && a();
1144
+ onKeyDown: a ? (i) => {
1145
+ (i.key === "Enter" || i.key === " ") && a();
1145
1146
  } : void 0,
1146
- children: r
1147
+ children: e
1147
1148
  }
1148
1149
  );
1149
1150
  }
1150
- function ur({
1151
- title: r,
1152
- children: s,
1151
+ function ks({
1152
+ title: e,
1153
+ children: r,
1153
1154
  subtitle: t,
1154
1155
  spacing: a = "normal",
1155
- className: l = ""
1156
+ className: n = ""
1156
1157
  }) {
1157
1158
  const o = {
1158
1159
  compact: "space-y-3",
1159
1160
  normal: "space-y-6",
1160
1161
  spacious: "space-y-8"
1161
1162
  };
1162
- return /* @__PURE__ */ e.jsxs("div", { className: `${o[a]} ${l}`, children: [
1163
- /* @__PURE__ */ e.jsxs("div", { children: [
1164
- /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: r }),
1165
- t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
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 })
1166
1167
  ] }),
1167
- s
1168
+ r
1168
1169
  ] });
1169
1170
  }
1170
- function mr({
1171
- variant: r,
1172
- title: s,
1171
+ function Ts({
1172
+ variant: e,
1173
+ title: r,
1173
1174
  message: t,
1174
1175
  icon: a,
1175
- onClose: l,
1176
+ onClose: n,
1176
1177
  className: o = ""
1177
1178
  }) {
1178
- const c = {
1179
+ const i = {
1179
1180
  success: {
1180
1181
  bg: "bg-success-50",
1181
1182
  border: "border-success-200",
1182
1183
  text: "text-success-700",
1183
- icon: /* @__PURE__ */ e.jsx(Te, { className: "h-5 w-5" })
1184
+ icon: /* @__PURE__ */ s.jsx(lr, { className: "h-5 w-5" })
1184
1185
  },
1185
1186
  error: {
1186
1187
  bg: "bg-error-50",
1187
1188
  border: "border-error-200",
1188
1189
  text: "text-error-700",
1189
- icon: /* @__PURE__ */ e.jsx(ke, { className: "h-5 w-5" })
1190
+ icon: /* @__PURE__ */ s.jsx(or, { className: "h-5 w-5" })
1190
1191
  },
1191
1192
  warning: {
1192
1193
  bg: "bg-warning-50",
1193
1194
  border: "border-warning-200",
1194
1195
  text: "text-warning-700",
1195
- icon: /* @__PURE__ */ e.jsx(Ce, { className: "h-5 w-5" })
1196
+ icon: /* @__PURE__ */ s.jsx(nr, { className: "h-5 w-5" })
1196
1197
  },
1197
1198
  info: {
1198
1199
  bg: "bg-info-50",
1199
1200
  border: "border-info-200",
1200
1201
  text: "text-info-700",
1201
- icon: /* @__PURE__ */ e.jsx(Ve, { className: "h-5 w-5" })
1202
+ icon: /* @__PURE__ */ s.jsx(ar, { className: "h-5 w-5" })
1202
1203
  }
1203
- }[r];
1204
- return /* @__PURE__ */ e.jsx(
1204
+ }[e];
1205
+ return /* @__PURE__ */ s.jsx(
1205
1206
  "div",
1206
1207
  {
1207
- className: `${c.bg} border ${c.border} rounded-md p-3 ${o}`,
1208
+ className: `${i.bg} border ${i.border} rounded-md p-3 ${o}`,
1208
1209
  role: "alert",
1209
- children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
1210
- /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${c.text}`, children: a || c.icon }),
1211
- /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1212
- s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${c.text}`, children: s }),
1213
- /* @__PURE__ */ e.jsx("p", { className: `text-sm ${c.text}`, children: t })
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 })
1214
1215
  ] }),
1215
- l && /* @__PURE__ */ e.jsx(
1216
+ n && /* @__PURE__ */ s.jsx(
1216
1217
  "button",
1217
1218
  {
1218
- onClick: l,
1219
- className: `flex-shrink-0 ${c.text} hover:opacity-70`,
1219
+ onClick: n,
1220
+ className: `flex-shrink-0 ${i.text} hover:opacity-70`,
1220
1221
  "aria-label": "Close alert",
1221
1222
  children: "✕"
1222
1223
  }
@@ -1225,35 +1226,79 @@ function mr({
1225
1226
  }
1226
1227
  );
1227
1228
  }
1228
- function Ue({
1229
- title: r,
1230
- titleId: s,
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,
1231
1276
  ...t
1232
1277
  }, a) {
1233
- return /* @__PURE__ */ W.createElement("svg", Object.assign({
1278
+ return /* @__PURE__ */ P.createElement("svg", Object.assign({
1234
1279
  xmlns: "http://www.w3.org/2000/svg",
1235
1280
  viewBox: "0 0 20 20",
1236
1281
  fill: "currentColor",
1237
1282
  "aria-hidden": "true",
1238
1283
  "data-slot": "icon",
1239
1284
  ref: a,
1240
- "aria-labelledby": s
1241
- }, t), r ? /* @__PURE__ */ W.createElement("title", {
1242
- id: s
1243
- }, r) : null, /* @__PURE__ */ W.createElement("path", {
1285
+ "aria-labelledby": r
1286
+ }, t), e ? /* @__PURE__ */ P.createElement("title", {
1287
+ id: r
1288
+ }, e) : null, /* @__PURE__ */ P.createElement("path", {
1244
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"
1245
1290
  }));
1246
1291
  }
1247
- const We = /* @__PURE__ */ W.forwardRef(Ue);
1248
- function Ge({
1249
- children: r,
1250
- variant: s = "default",
1292
+ const be = /* @__PURE__ */ P.forwardRef(Tr);
1293
+ function Vr({
1294
+ children: e,
1295
+ variant: r = "default",
1251
1296
  size: t = "md",
1252
1297
  removable: a = !1,
1253
- onRemove: l,
1298
+ onRemove: n,
1254
1299
  className: o = "",
1255
- style: i,
1256
- colorClass: c
1300
+ style: l,
1301
+ colorClass: i
1257
1302
  }) {
1258
1303
  const u = {
1259
1304
  default: "bg-surface-variant text-text-secondary",
@@ -1261,277 +1306,277 @@ function Ge({
1261
1306
  error: "bg-error-50 text-error-700",
1262
1307
  warning: "bg-warning-50 text-warning-700",
1263
1308
  info: "bg-info-50 text-info-700"
1264
- }, v = {
1309
+ }, f = {
1265
1310
  sm: "px-2 py-0.5 text-xs",
1266
1311
  md: "px-3 py-1 text-sm",
1267
1312
  lg: "px-4 py-1.5 text-base"
1268
- }, d = c || u[s];
1269
- return /* @__PURE__ */ e.jsxs(
1313
+ }, d = i || u[r];
1314
+ return /* @__PURE__ */ s.jsxs(
1270
1315
  "span",
1271
1316
  {
1272
- className: `inline-flex items-center gap-1 rounded-full ${d} ${v[t]} ${o}`,
1273
- style: i,
1317
+ className: `inline-flex items-center gap-1 rounded-full ${d} ${f[t]} ${o}`,
1318
+ style: l,
1274
1319
  children: [
1275
- r,
1276
- a && l && /* @__PURE__ */ e.jsx(
1320
+ e,
1321
+ a && n && /* @__PURE__ */ s.jsx(
1277
1322
  "button",
1278
1323
  {
1279
- onClick: l,
1324
+ onClick: n,
1280
1325
  className: "ml-1 hover:opacity-70",
1281
1326
  "aria-label": "Remove badge",
1282
- children: /* @__PURE__ */ e.jsx(We, { className: "w-3 h-3" })
1327
+ children: /* @__PURE__ */ s.jsx(be, { className: "w-3 h-3" })
1283
1328
  }
1284
1329
  )
1285
1330
  ]
1286
1331
  }
1287
1332
  );
1288
1333
  }
1289
- function xr({
1290
- label: r,
1291
- children: s,
1334
+ function Vs({
1335
+ label: e,
1336
+ children: r,
1292
1337
  helperText: t,
1293
1338
  errorText: a,
1294
- required: l = !1,
1339
+ required: n = !1,
1295
1340
  className: o = ""
1296
1341
  }) {
1297
- return /* @__PURE__ */ e.jsxs("div", { className: `space-y-2 ${o}`, children: [
1298
- /* @__PURE__ */ e.jsxs("label", { className: "block text-sm font-medium text-text-primary", children: [
1299
- r,
1300
- l && /* @__PURE__ */ e.jsx("span", { className: "text-error-500 ml-1", children: "*" })
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: "*" })
1301
1346
  ] }),
1302
- s,
1303
- a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-error-600", children: a }),
1304
- t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
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 })
1305
1350
  ] });
1306
1351
  }
1307
- const He = B.forwardRef(
1352
+ const Rr = X.forwardRef(
1308
1353
  ({
1309
- className: r = "",
1310
- leftIcon: s,
1354
+ className: e = "",
1355
+ leftIcon: r,
1311
1356
  rightIcon: t,
1312
1357
  error: a = !1,
1313
- fullWidth: l = !0,
1358
+ fullWidth: n = !0,
1314
1359
  disabled: o,
1315
- ...i
1316
- }, c) => {
1317
- const u = "px-3 py-2 border rounded-lg transition-colors text-sm", v = 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 = l ? "w-full" : "", h = s || t ? "relative flex items-center" : "", g = `${u} ${v} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
1318
- return /* @__PURE__ */ e.jsxs("div", { className: h, children: [
1319
- s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
1320
- /* @__PURE__ */ e.jsx(
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(
1321
1366
  "input",
1322
1367
  {
1323
- ref: c,
1368
+ ref: i,
1324
1369
  className: g,
1325
1370
  disabled: o,
1326
- ...i
1371
+ ...l
1327
1372
  }
1328
1373
  ),
1329
- t && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
1374
+ t && /* @__PURE__ */ s.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
1330
1375
  ] });
1331
1376
  }
1332
1377
  );
1333
- He.displayName = "Input";
1334
- const Je = B.forwardRef(
1378
+ Rr.displayName = "Input";
1379
+ const Er = X.forwardRef(
1335
1380
  ({
1336
- options: r,
1337
- placeholder: s,
1381
+ options: e,
1382
+ placeholder: r,
1338
1383
  className: t = "",
1339
1384
  error: a = !1,
1340
- fullWidth: l = !0,
1385
+ fullWidth: n = !0,
1341
1386
  disabled: o,
1342
- ...i
1343
- }, c) => {
1344
- const h = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${o ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${l ? "w-full" : ""} pr-10 ${t}`;
1345
- return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
1346
- /* @__PURE__ */ e.jsxs(
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(
1347
1392
  "select",
1348
1393
  {
1349
- ref: c,
1350
- className: h,
1394
+ ref: i,
1395
+ className: x,
1351
1396
  disabled: o,
1352
- ...i,
1397
+ ...l,
1353
1398
  children: [
1354
- s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
1355
- r.map((g) => /* @__PURE__ */ e.jsx("option", { value: g.value, children: g.label }, g.value))
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))
1356
1401
  ]
1357
1402
  }
1358
1403
  ),
1359
- /* @__PURE__ */ e.jsx(K, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
1404
+ /* @__PURE__ */ s.jsx(Ne, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
1360
1405
  ] });
1361
1406
  }
1362
1407
  );
1363
- Je.displayName = "Select";
1364
- const qe = B.forwardRef(
1408
+ Er.displayName = "Select";
1409
+ const $r = X.forwardRef(
1365
1410
  ({
1366
- tags: r,
1367
- onTagsChange: s,
1411
+ tags: e,
1412
+ onTagsChange: r,
1368
1413
  onAddTag: t,
1369
1414
  onRemoveTag: a,
1370
- placeholder: l = "Add a tag and press Enter",
1415
+ placeholder: n = "Add a tag and press Enter",
1371
1416
  error: o = !1,
1372
- fullWidth: i = !0,
1373
- maxTags: c,
1417
+ fullWidth: l = !0,
1418
+ maxTags: i,
1374
1419
  duplicateCheck: u = !0,
1375
- disabled: v,
1420
+ disabled: f,
1376
1421
  className: d = "",
1377
1422
  ...m
1378
- }, h) => {
1379
- const [g, N] = k(""), T = (f) => {
1380
- f.key === "Enter" && g.trim() ? (f.preventDefault(), _(g.trim())) : f.key === "Backspace" && !g && r.length > 0 && A(r[r.length - 1]);
1381
- }, _ = (f) => {
1382
- if (c && r.length >= c || u && r.includes(f))
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))
1383
1428
  return;
1384
- const j = [...r, f];
1385
- s(j), t?.(f), N("");
1386
- }, A = (f) => {
1387
- const j = r.filter((C) => C !== f);
1388
- s(j), a?.(f);
1389
- }, 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"} ${v ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${i ? "w-full" : ""} ${d}`;
1390
- return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
1391
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((f) => /* @__PURE__ */ e.jsx(
1392
- Ge,
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,
1393
1438
  {
1394
1439
  removable: !0,
1395
- onRemove: () => A(f),
1440
+ onRemove: () => R(v),
1396
1441
  variant: "default",
1397
- children: f
1442
+ children: v
1398
1443
  },
1399
- f
1444
+ v
1400
1445
  )) }),
1401
- /* @__PURE__ */ e.jsx(
1446
+ /* @__PURE__ */ s.jsx(
1402
1447
  "input",
1403
1448
  {
1404
- ref: h,
1449
+ ref: x,
1405
1450
  type: "text",
1406
1451
  className: b,
1407
- placeholder: l,
1452
+ placeholder: n,
1408
1453
  value: g,
1409
- onChange: (f) => N(f.target.value),
1410
- onKeyDown: T,
1411
- disabled: v || (c ? r.length >= c : !1),
1454
+ onChange: (v) => j(v.target.value),
1455
+ onKeyDown: C,
1456
+ disabled: f || (i ? e.length >= i : !1),
1412
1457
  ...m
1413
1458
  }
1414
1459
  ),
1415
- c && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
1416
- r.length,
1460
+ i && /* @__PURE__ */ s.jsxs("p", { className: "text-xs text-text-muted", children: [
1461
+ e.length,
1417
1462
  " / ",
1418
- c
1463
+ i
1419
1464
  ] })
1420
1465
  ] });
1421
1466
  }
1422
1467
  );
1423
- qe.displayName = "TagInput";
1424
- const Xe = B.forwardRef(
1468
+ $r.displayName = "TagInput";
1469
+ const Dr = X.forwardRef(
1425
1470
  ({
1426
- className: r = "",
1427
- error: s = !1,
1471
+ className: e = "",
1472
+ error: r = !1,
1428
1473
  fullWidth: t = !0,
1429
1474
  autoResize: a = !1,
1430
- maxLength: l,
1475
+ maxLength: n,
1431
1476
  showCharCount: o = !1,
1432
- disabled: i,
1433
- value: c,
1477
+ disabled: l,
1478
+ value: i,
1434
1479
  onChange: u,
1435
- ...v
1480
+ ...f
1436
1481
  }, d) => {
1437
- const T = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${s ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${i ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${r}`, _ = ($) => {
1438
- a && ($.target.style.height = "auto", $.target.style.height = `${$.target.scrollHeight}px`), u?.($);
1439
- }, A = typeof c == "string" ? c.length : 0;
1440
- return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
1441
- /* @__PURE__ */ e.jsx(
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(
1442
1487
  "textarea",
1443
1488
  {
1444
1489
  ref: d,
1445
- className: T,
1446
- disabled: i,
1447
- value: c,
1448
- onChange: _,
1449
- maxLength: l,
1450
- ...v
1490
+ className: C,
1491
+ disabled: l,
1492
+ value: i,
1493
+ onChange: y,
1494
+ maxLength: n,
1495
+ ...f
1451
1496
  }
1452
1497
  ),
1453
- o && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
1454
- A,
1498
+ o && n && /* @__PURE__ */ s.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
1499
+ R,
1455
1500
  " / ",
1456
- l
1501
+ n
1457
1502
  ] })
1458
1503
  ] });
1459
1504
  }
1460
1505
  );
1461
- Xe.displayName = "Textarea";
1462
- function fr({
1463
- options: r,
1464
- selectedValues: s,
1506
+ Dr.displayName = "Textarea";
1507
+ function Rs({
1508
+ options: e,
1509
+ selectedValues: r,
1465
1510
  onSelectionChange: t,
1466
1511
  layout: a = "vertical",
1467
- columns: l = 2,
1512
+ columns: n = 2,
1468
1513
  disabled: o = !1,
1469
- error: i = !1
1514
+ error: l = !1
1470
1515
  }) {
1471
- const c = (m) => {
1472
- const h = s.includes(m) ? s.filter((g) => g !== m) : [...s, m];
1473
- t(h);
1516
+ const i = (m) => {
1517
+ const x = r.includes(m) ? r.filter((g) => g !== m) : [...r, m];
1518
+ t(x);
1474
1519
  }, u = {
1475
1520
  vertical: "space-y-3",
1476
1521
  horizontal: "flex flex-wrap gap-3",
1477
- grid: `grid grid-cols-${l} gap-3`
1478
- }, v = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
1479
- return /* @__PURE__ */ e.jsx("div", { className: `${v} ${d}`, children: r.map((m) => {
1480
- const h = s.includes(m.value), N = h ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${i ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1481
- return /* @__PURE__ */ e.jsxs(
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(
1482
1527
  "label",
1483
1528
  {
1484
- className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${N} ${o ? "opacity-50 cursor-not-allowed" : ""}`,
1529
+ className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${j} ${o ? "opacity-50 cursor-not-allowed" : ""}`,
1485
1530
  children: [
1486
- /* @__PURE__ */ e.jsx(
1531
+ /* @__PURE__ */ s.jsx(
1487
1532
  "input",
1488
1533
  {
1489
1534
  type: "checkbox",
1490
- checked: h,
1491
- onChange: () => c(m.value),
1535
+ checked: x,
1536
+ onChange: () => i(m.value),
1492
1537
  disabled: o,
1493
1538
  className: "sr-only"
1494
1539
  }
1495
1540
  ),
1496
- m.icon && /* @__PURE__ */ e.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: m.icon }),
1497
- /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1498
- /* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: m.label }),
1499
- m.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: m.description })
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 })
1500
1545
  ] }),
1501
- h && /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", clipRule: "evenodd" }) }) })
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" }) }) })
1502
1547
  ]
1503
1548
  },
1504
1549
  m.value
1505
1550
  );
1506
1551
  }) });
1507
1552
  }
1508
- function vr({
1509
- options: r,
1510
- selectedValue: s,
1553
+ function Es({
1554
+ options: e,
1555
+ selectedValue: r,
1511
1556
  onSelectionChange: t,
1512
1557
  layout: a = "vertical",
1513
- columns: l = 2,
1558
+ columns: n = 2,
1514
1559
  disabled: o = !1,
1515
- error: i = !1,
1516
- name: c = "radio-group"
1560
+ error: l = !1,
1561
+ name: i = "radio-group"
1517
1562
  }) {
1518
- const v = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
1563
+ const f = a === "grid" ? `grid gap-3 md:grid-cols-${n}` : {
1519
1564
  vertical: "space-y-3",
1520
1565
  horizontal: "flex flex-wrap gap-3",
1521
1566
  grid: "grid gap-3"
1522
1567
  }[a];
1523
- return /* @__PURE__ */ e.jsx("div", { className: v, children: r.map((d) => {
1524
- const m = s === d.value, g = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${i ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1525
- return /* @__PURE__ */ e.jsxs(
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(
1526
1571
  "label",
1527
1572
  {
1528
1573
  className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${o ? "opacity-50 cursor-not-allowed" : ""}`,
1529
1574
  children: [
1530
- /* @__PURE__ */ e.jsx(
1575
+ /* @__PURE__ */ s.jsx(
1531
1576
  "input",
1532
1577
  {
1533
1578
  type: "radio",
1534
- name: c,
1579
+ name: i,
1535
1580
  value: d.value,
1536
1581
  checked: m,
1537
1582
  onChange: () => t(d.value),
@@ -1539,168 +1584,168 @@ function vr({
1539
1584
  className: "sr-only"
1540
1585
  }
1541
1586
  ),
1542
- d.icon && /* @__PURE__ */ e.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: d.icon }),
1543
- /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1544
- /* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: d.label }),
1545
- d.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: d.description })
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 })
1546
1591
  ] }),
1547
- m && /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", clipRule: "evenodd" }) }) })
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" }) }) })
1548
1593
  ]
1549
1594
  },
1550
1595
  d.value
1551
1596
  );
1552
1597
  }) });
1553
1598
  }
1554
- function hr({
1555
- items: r,
1556
- allowMultiple: s = !1,
1599
+ function $s({
1600
+ items: e,
1601
+ allowMultiple: r = !1,
1557
1602
  defaultOpenId: t,
1558
1603
  onOpenChange: a,
1559
- className: l = ""
1604
+ className: n = ""
1560
1605
  }) {
1561
- const [o, i] = k(() => t ? Array.isArray(t) ? t : [t] : []), c = (u) => {
1562
- let v;
1563
- s ? v = o.includes(u) ? o.filter((d) => d !== u) : [...o, u] : v = o.includes(u) ? [] : [u], i(v), a?.(v);
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);
1564
1609
  };
1565
- return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
1566
- const v = o.includes(u.id);
1567
- return /* @__PURE__ */ e.jsxs(
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(
1568
1613
  "div",
1569
1614
  {
1570
1615
  className: "border border-border rounded-lg overflow-hidden",
1571
1616
  children: [
1572
- /* @__PURE__ */ e.jsxs(
1617
+ /* @__PURE__ */ s.jsxs(
1573
1618
  "button",
1574
1619
  {
1575
- onClick: () => c(u.id),
1620
+ onClick: () => i(u.id),
1576
1621
  className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
1577
1622
  children: [
1578
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
1579
- u.icon && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0 text-text-secondary", children: u.icon }),
1580
- /* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
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 })
1581
1626
  ] }),
1582
- /* @__PURE__ */ e.jsx(
1583
- K,
1627
+ /* @__PURE__ */ s.jsx(
1628
+ Ne,
1584
1629
  {
1585
- className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${v ? "rotate-180" : ""}`
1630
+ className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${f ? "rotate-180" : ""}`
1586
1631
  }
1587
1632
  )
1588
1633
  ]
1589
1634
  }
1590
1635
  ),
1591
- v && /* @__PURE__ */ e.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
1636
+ f && /* @__PURE__ */ s.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
1592
1637
  ]
1593
1638
  },
1594
1639
  u.id
1595
1640
  );
1596
1641
  }) });
1597
1642
  }
1598
- const Ze = B.forwardRef(
1643
+ const Ir = X.forwardRef(
1599
1644
  ({
1600
- value: r,
1601
- onChange: s,
1645
+ value: e,
1646
+ onChange: r,
1602
1647
  min: t = 0,
1603
1648
  max: a = 100,
1604
- step: l = 1,
1649
+ step: n = 1,
1605
1650
  showValue: o = !0,
1606
- showLabels: i = !1,
1607
- minLabel: c,
1651
+ showLabels: l = !1,
1652
+ minLabel: i,
1608
1653
  maxLabel: u,
1609
- error: v = !1,
1654
+ error: f = !1,
1610
1655
  fullWidth: d = !0,
1611
1656
  disabled: m,
1612
- className: h = "",
1657
+ className: x = "",
1613
1658
  ...g
1614
- }, N) => {
1615
- const S = `w-full h-2 rounded-lg appearance-none cursor-pointer ${v ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${h}`, D = (r - t) / (a - t) * 100;
1616
- return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
1617
- i && (c || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
1618
- c && /* @__PURE__ */ e.jsx("span", { children: c }),
1619
- u && /* @__PURE__ */ e.jsx("span", { children: u })
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 })
1620
1665
  ] }),
1621
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
1622
- /* @__PURE__ */ e.jsx(
1666
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3", children: [
1667
+ /* @__PURE__ */ s.jsx(
1623
1668
  "input",
1624
1669
  {
1625
- ref: N,
1670
+ ref: j,
1626
1671
  type: "range",
1627
1672
  min: t,
1628
1673
  max: a,
1629
- step: l,
1630
- value: r,
1631
- onChange: (F) => s(Number(F.target.value)),
1674
+ step: n,
1675
+ value: e,
1676
+ onChange: (D) => r(Number(D.target.value)),
1632
1677
  disabled: m,
1633
- className: S,
1678
+ className: k,
1634
1679
  ...g
1635
1680
  }
1636
1681
  ),
1637
- o && /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: r })
1682
+ o && /* @__PURE__ */ s.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: e })
1638
1683
  ] }),
1639
- /* @__PURE__ */ e.jsx("div", { className: "h-1 bg-border rounded-full overflow-hidden", children: /* @__PURE__ */ e.jsx(
1684
+ /* @__PURE__ */ s.jsx("div", { className: "h-1 bg-border rounded-full overflow-hidden", children: /* @__PURE__ */ s.jsx(
1640
1685
  "div",
1641
1686
  {
1642
1687
  className: "h-full bg-reseda-green-500 transition-all",
1643
- style: { width: `${D}%` }
1688
+ style: { width: `${E}%` }
1644
1689
  }
1645
1690
  ) })
1646
1691
  ] });
1647
1692
  }
1648
1693
  );
1649
- Ze.displayName = "Slider";
1650
- function gr({
1651
- icon: r,
1652
- title: s,
1694
+ Ir.displayName = "Slider";
1695
+ function Ds({
1696
+ icon: e,
1697
+ title: r,
1653
1698
  description: t,
1654
1699
  isSelected: a = !1,
1655
- onClick: l,
1700
+ onClick: n,
1656
1701
  disabled: o = !1,
1657
- className: i = ""
1702
+ className: l = ""
1658
1703
  }) {
1659
- const c = "p-4 border rounded-lg transition-all text-center cursor-pointer", u = a ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : "border-border hover:border-border-subtle hover:bg-surface-variant", v = o ? "opacity-50 cursor-not-allowed" : "";
1660
- return /* @__PURE__ */ e.jsxs(
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(
1661
1706
  "div",
1662
1707
  {
1663
- className: `${c} ${u} ${v} ${i}`,
1664
- onClick: () => !o && l?.(),
1708
+ className: `${i} ${u} ${f} ${l}`,
1709
+ onClick: () => !o && n?.(),
1665
1710
  role: "button",
1666
1711
  tabIndex: o ? -1 : 0,
1667
1712
  onKeyDown: (d) => {
1668
- !o && (d.key === "Enter" || d.key === " ") && l?.();
1713
+ !o && (d.key === "Enter" || d.key === " ") && n?.();
1669
1714
  },
1670
1715
  children: [
1671
- r && /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-text-secondary", children: r }) }),
1672
- /* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary mb-1", children: s }),
1673
- t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-secondary", children: t }),
1674
- a && /* @__PURE__ */ e.jsx("div", { className: "mt-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500", children: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", clipRule: "evenodd" }) }) }) })
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" }) }) }) })
1675
1720
  ]
1676
1721
  }
1677
1722
  );
1678
1723
  }
1679
- const Ke = {
1724
+ const Or = {
1680
1725
  activeText: "text-reseda-green-700",
1681
1726
  activeBorder: "border-reseda-green-700",
1682
1727
  inactiveText: "text-text-secondary",
1683
1728
  inactiveHoverText: "hover:text-text-primary",
1684
1729
  disabledText: "text-text-disabled"
1685
1730
  };
1686
- function br({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
1687
- const o = l || Ke;
1688
- return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((i) => {
1689
- const c = s === i.id;
1690
- return /* @__PURE__ */ e.jsx(
1691
- Q,
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,
1692
1737
  {
1693
1738
  variant: "ghost",
1694
- onClick: () => !t && a(i.id),
1695
- disabled: t && !c,
1696
- className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${c ? `${o.activeBorder} ${o.activeText}` : t ? `border-transparent ${o.disabledText} cursor-not-allowed` : `border-transparent ${o.inactiveText} ${o.inactiveHoverText}`}`,
1697
- 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
1698
1743
  },
1699
- i.id
1744
+ l.id
1700
1745
  );
1701
1746
  }) });
1702
1747
  }
1703
- const Qe = {
1748
+ const Sr = {
1704
1749
  activeBg: "bg-reseda-green-700",
1705
1750
  activeText: "text-white",
1706
1751
  completedBg: "bg-success-500",
@@ -1711,59 +1756,852 @@ const Qe = {
1711
1756
  labelInactiveText: "text-text-muted",
1712
1757
  connectorBg: "bg-border"
1713
1758
  };
1714
- function pr({ currentStep: r, steps: s, colorConfig: t }) {
1715
- const a = t || Qe;
1716
- return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: s.map((l, o) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${o < s.length - 1 ? "flex-1" : ""}`, children: [
1717
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1718
- /* @__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(
1719
1764
  "span",
1720
1765
  {
1721
- className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === l.number ? `${a.activeBg} ${a.activeText}` : r > l.number ? `${a.completedBg} ${a.completedText}` : `border-2 ${a.incompleteBorder} ${a.incompleteText}`}`,
1722
- 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
1723
1768
  }
1724
1769
  ),
1725
- /* @__PURE__ */ e.jsx(
1770
+ /* @__PURE__ */ s.jsx(
1726
1771
  "span",
1727
1772
  {
1728
- className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= l.number ? a.labelActiveText : a.labelInactiveText}`,
1729
- children: l.label
1773
+ className: `ml-3 text-sm font-medium whitespace-nowrap ${e >= n.number ? a.labelActiveText : a.labelInactiveText}`,
1774
+ children: n.label
1730
1775
  }
1731
1776
  )
1732
1777
  ] }),
1733
- o < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
1734
- ] }, 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
+ );
1735
2571
  }
2572
+ ms.displayName = "SortableItem";
1736
2573
  export {
1737
- hr as Accordion,
1738
- mr as Alert,
1739
- Ge as Badge,
1740
- Q as Button,
1741
- dr as Card,
1742
- fr as CheckboxGroup,
1743
- Pe as ColorPalette,
1744
- ir as Demo,
1745
- xr as FormField,
1746
- He as Input,
1747
- gr as OptionCard,
1748
- vr as RadioGroup,
1749
- ur as Section,
1750
- Je as Select,
1751
- cr as Sidebar,
1752
- Ze as Slider,
1753
- Ye as SocialButton,
1754
- pr as Stepper,
1755
- br as TabBar,
1756
- qe as TagInput,
1757
- Xe as Textarea,
1758
- Se as ThemeProvider,
1759
- Fe as ThemeToggle,
1760
- or as clearAllErrors,
1761
- nr as clearFieldError,
1762
- tr as getFirstError,
1763
- Ee as hasErrors,
1764
- lr as useForm,
1765
- De as useTheme,
1766
- $e as validateField,
1767
- X as validateForm,
1768
- ar as validators
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
1769
2607
  };