zabi-components 2.2.4 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,81 @@
1
+ import { l as k, p as n, f as x, a as F, s as y, b as N, t as $, e as O, c as u, h as a, j as i, k as s, m as ea, n as G, o as ta, q as sa, r as ra, u as va, v as A, w as ia, x as P, y as la } from "./props-DyILkQVH.js";
2
+ import { T as E } from "./ThemeToggle-2HEU5v1Q.js";
3
+ var na = x('<div class="mt-2"><!></div>'), da = x('<div class="md:hidden"><div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 border-t border-gray-200"><!> <div class="pt-4"><!> <!></div></div></div>'), oa = x('<nav><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><div class="flex justify-between items-center h-16"><div class="flex-shrink-0"><button type="button" class="text-xl font-bold text-gray-900"> </button></div> <div class="hidden md:block"><div class="ml-10 flex items-baseline space-x-4"><!></div></div> <div class="hidden md:block"><div class="ml-4 flex items-center space-x-4"><!> <!></div></div> <div class="md:hidden"><button type="button" class="text-gray-500 hover:text-gray-600" aria-label="Toggle menu"><span class="text-2xl">☰</span></button></div></div> <!></div></nav>');
4
+ function ga(d, e) {
5
+ const o = k(e, ["children", "$$slots", "$$events", "$$legacy"]), T = k(o, ["brand", "showThemeToggle", "className"]);
6
+ let g = n(e, "brand", 8, ""), m = n(e, "showThemeToggle", 8, !0), h = n(e, "className", 8, ""), c = ea(!1);
7
+ function _() {
8
+ ta(c, !s(c));
9
+ }
10
+ function f() {
11
+ }
12
+ var l = oa();
13
+ F(l, () => ({
14
+ class: `bg-white border-b border-gray-200 sticky top-0 z-50 ${h() ?? ""}`,
15
+ ...T
16
+ }));
17
+ var t = a(l), b = a(t), r = a(b), p = a(r), H = a(p), z = i(r, 2), I = a(z), J = a(I);
18
+ y(J, e, "nav", {});
19
+ var j = i(z, 2), K = a(j), C = a(K);
20
+ y(C, e, "actions", {});
21
+ var L = i(C, 2);
22
+ {
23
+ var Q = (v) => {
24
+ E(v, {});
25
+ };
26
+ N(L, (v) => {
27
+ m() && v(Q);
28
+ });
29
+ }
30
+ var R = i(j, 2), S = a(R), U = i(b, 2);
31
+ {
32
+ var V = (v) => {
33
+ var M = da(), W = a(M), q = a(W);
34
+ y(q, e, "nav", {});
35
+ var X = i(q, 2), B = a(X);
36
+ y(B, e, "actions", {});
37
+ var Y = i(B, 2);
38
+ {
39
+ var Z = (w) => {
40
+ var D = na(), aa = a(D);
41
+ E(aa, {}), u(w, D);
42
+ };
43
+ N(Y, (w) => {
44
+ m() && w(Z);
45
+ });
46
+ }
47
+ u(v, M);
48
+ };
49
+ N(U, (v) => {
50
+ s(c) && v(V);
51
+ });
52
+ }
53
+ $(() => G(H, g())), O("click", p, f), O("click", S, _), u(d, l);
54
+ }
55
+ var ca = (d, e, o) => e(s(o), d), _a = x("<li><a> </a></li>"), ba = x("<nav><ul></ul></nav>");
56
+ function ma(d, e) {
57
+ const o = k(e, ["children", "$$slots", "$$events", "$$legacy"]), T = k(o, ["variant", "items", "currentPath"]);
58
+ let g = n(e, "variant", 8, "header"), m = n(e, "items", 24, () => []), h = n(e, "currentPath", 8, "");
59
+ function c(l, t) {
60
+ t.preventDefault();
61
+ }
62
+ var _ = ba();
63
+ F(_, () => ({
64
+ class: `navigation navigation-${g() ?? ""}`,
65
+ ...T
66
+ }));
67
+ var f = a(_);
68
+ ra(f, 5, m, va, (l, t) => {
69
+ var b = _a(), r = a(b);
70
+ r.__click = [ca, c, t];
71
+ var p = a(r);
72
+ $(() => {
73
+ ia(r, "href", (s(t), P(() => s(t).href))), A(r, 1, `px-3 py-2 text-sm font-medium rounded-md transition-colors ${la(h()), s(t), P(() => h() === s(t).href ? "bg-blue-100 text-blue-700" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100") ?? ""}`), G(p, (s(t), P(() => s(t).label)));
74
+ }), u(l, b);
75
+ }), $(() => A(f, 1, `flex ${g() === "sidebar" ? "flex-col space-y-2" : "space-x-6"}`)), u(d, _);
76
+ }
77
+ sa(["click"]);
78
+ export {
79
+ ga as N,
80
+ ma as a
81
+ };
@@ -1,5 +1,5 @@
1
- import { l as C, p as s, o as k, z as R, A as W, i as O, f, b as T, a as B, q as de, e as ee, c as i, d as V, g as q, m as S, x as N, k as t, j as D, h as v, t as M, v as Z, n as I, w as A, u as ne, B as ve, r as ue, s as G, C as H, D as L, E as me } from "./props-B4BdFk2B.js";
2
- import { a as ge, e as he } from "./Textarea-B9H_FPOO.js";
1
+ import { l as C, p as s, o as k, A as R, B as W, i as O, f, b as T, a as B, r as de, e as ee, c as i, d as V, g as E, m as S, y as N, k as t, j as D, h as v, t as M, w as Z, n as I, x as A, v as ne, C as ve, u as ue, s as G, D as H, E as L, F as me } from "./props-DyILkQVH.js";
2
+ import { a as ge, e as he } from "./Textarea-B0T7x4TT.js";
3
3
  import "svelte";
4
4
  var pe = f('<label class="block text-sm font-medium text-gray-700 mb-1"> </label>'), _e = f("<option disabled> </option>"), xe = f("<option> </option>"), ye = f("<div><!> <select><!><!></select></div>");
5
5
  function Ue(z, e) {
@@ -11,7 +11,7 @@ function Ue(z, e) {
11
11
  "disabled",
12
12
  "size"
13
13
  ]);
14
- q(e, !1);
14
+ E(e, !1);
15
15
  const l = S(), o = S();
16
16
  let a = s(e, "value", 12, void 0), r = s(e, "options", 24, () => []), b = s(e, "placeholder", 8, "Select an option"), p = s(e, "label", 8, ""), _ = s(e, "disabled", 8, !1), y = s(e, "size", 8, "md"), m = S();
17
17
  typeof window < "u" ? k(m, `select-${Math.random().toString(36).substr(2, 9)}`) : k(m, `select-ssr-${Date.now()}`);
@@ -66,16 +66,16 @@ function Ue(z, e) {
66
66
  }
67
67
  var X = D(P);
68
68
  de(X, 1, r, (w) => w.value, (w, c) => {
69
- var Y = xe(), E = v(Y), F = {};
69
+ var Y = xe(), F = v(Y), q = {};
70
70
  M(() => {
71
- Y.disabled = (t(c), A(() => t(c).disabled)), I(E, (t(c), A(() => t(c).label))), F !== (F = (t(c), A(() => t(c).value))) && (Y.value = (Y.__value = (t(c), A(() => t(c).value))) ?? "");
71
+ Y.disabled = (t(c), A(() => t(c).disabled)), I(F, (t(c), A(() => t(c).label))), q !== (q = (t(c), A(() => t(c).value))) && (Y.value = (Y.__value = (t(c), A(() => t(c).value))) ?? "");
72
72
  }), i(w, Y);
73
73
  }), ee("change", x, g), i(z, n), V();
74
74
  }
75
75
  var we = f('<span class="text-sm font-medium text-gray-700"> </span>'), ze = f('<div class="flex items-center gap-3"><button><span></span></button> <!></div>');
76
76
  function We(z, e) {
77
77
  const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["checked", "disabled", "label"]);
78
- q(e, !1);
78
+ E(e, !1);
79
79
  const l = S(), o = S();
80
80
  let a = s(e, "checked", 12, !1), r = s(e, "disabled", 8, !1), b = s(e, "label", 8, "");
81
81
  function p(d) {
@@ -121,7 +121,7 @@ function We(z, e) {
121
121
  var ke = f('<label class="block text-sm font-medium text-gray-700"> </label>'), Ce = f('<span class="text-white text-lg">✓</span>'), $e = f("<button><!></button>"), Pe = f('<div class="space-y-2"><!> <div></div></div>');
122
122
  function Ze(z, e) {
123
123
  const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["value", "label", "disabled"]);
124
- q(e, !1);
124
+ E(e, !1);
125
125
  let l = s(e, "value", 12, ""), o = s(e, "label", 8, ""), a = s(e, "disabled", 8, !1);
126
126
  const r = [
127
127
  { label: "Red", value: "#ef4444" },
@@ -181,7 +181,7 @@ function Ze(z, e) {
181
181
  var je = f('<img class="w-full h-48 object-cover rounded-md mb-4"/>'), Se = f("<h3> </h3>"), Te = f("<div><!> <!> <!></div>");
182
182
  function et(z, e) {
183
183
  const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["title", "image", "interactive", "variant", "size"]);
184
- q(e, !1);
184
+ E(e, !1);
185
185
  const l = S(), o = S(), a = S(), r = S();
186
186
  let b = s(e, "title", 8, ""), p = s(e, "image", 8, ""), _ = s(e, "interactive", 8, !1), y = s(e, "variant", 8, "default"), m = s(e, "size", 8, "md");
187
187
  R(() => {
@@ -236,7 +236,7 @@ function et(z, e) {
236
236
  var Be = f('<button><!> <span class="ml-1 text-xs">×</span></button>'), Me = f("<span><!></span>");
237
237
  function tt(z, e) {
238
238
  const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["variant", "size", "closable"]);
239
- q(e, !1);
239
+ E(e, !1);
240
240
  const l = S(), o = S(), a = S();
241
241
  let r = s(e, "variant", 8, "default"), b = s(e, "size", 8, "md"), p = s(e, "closable", 8, !1);
242
242
  function _(d) {
@@ -291,7 +291,7 @@ function tt(z, e) {
291
291
  var Ne = f("<h1> <!></h1>"), Xe = f("<h2> <!></h2>"), Ye = f("<h3> <!></h3>"), De = f("<h4> <!></h4>"), Ie = f("<h5> <!></h5>"), Re = f("<h6> <!></h6>");
292
292
  function at(z, e) {
293
293
  const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["level", "text"]);
294
- q(e, !1);
294
+ E(e, !1);
295
295
  const l = S(), o = S();
296
296
  let a = s(e, "level", 8, 1), r = s(e, "text", 8, "");
297
297
  R(() => {
@@ -328,12 +328,12 @@ function at(z, e) {
328
328
  var X = (c) => {
329
329
  var Y = Ye();
330
330
  B(Y, () => ({ class: t(o), ...u }));
331
- var E = v(Y), F = D(E);
332
- G(F, e, "default", {}), M(() => I(E, r())), i(c, Y);
331
+ var F = v(Y), q = D(F);
332
+ G(q, e, "default", {}), M(() => I(F, r())), i(c, Y);
333
333
  }, w = (c) => {
334
- var Y = H(), E = L(Y);
334
+ var Y = H(), F = L(Y);
335
335
  {
336
- var F = (J) => {
336
+ var q = (J) => {
337
337
  var K = De();
338
338
  B(K, () => ({ class: t(o), ...u }));
339
339
  var te = v(K), le = D(te);
@@ -376,9 +376,9 @@ function at(z, e) {
376
376
  i(J, K);
377
377
  };
378
378
  T(
379
- E,
379
+ F,
380
380
  (J) => {
381
- a() === 4 ? J(F) : J(ce, !1);
381
+ a() === 4 ? J(q) : J(ce, !1);
382
382
  },
383
383
  !0
384
384
  );
@@ -414,7 +414,7 @@ function at(z, e) {
414
414
  var Ae = f('<div class="flex justify-between items-center mb-2"><label class="text-sm font-medium text-gray-700"> </label> <span class="text-sm text-gray-500"> </span></div>'), Ge = f('<div><!> <div><div class="h-full bg-blue-600 rounded-full"></div></div></div>');
415
415
  function lt(z, e) {
416
416
  const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["value", "max", "size", "label"]);
417
- q(e, !1);
417
+ E(e, !1);
418
418
  const l = S(), o = S();
419
419
  let a = s(e, "value", 8, 0), r = s(e, "max", 8, 100), b = s(e, "size", 8, "md"), p = s(e, "label", 8, ""), _ = S();
420
420
  typeof window < "u" ? k(_, `progress-${Math.random().toString(36).substr(2, 9)}`) : k(_, `progress-ssr-${Date.now()}`), R(() => (N(a()), N(r())), () => {
@@ -506,8 +506,8 @@ function rt(z, e) {
506
506
  }
507
507
  i(z, _);
508
508
  }
509
- var Ve = f('<div class="tooltip group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-13nzt82"> </div>'), qe = f("<div><!> <!></div>");
510
- const Ee = {
509
+ var Ve = f('<div class="tooltip group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-13nzt82"> </div>'), Ee = f("<div><!> <!></div>");
510
+ const Fe = {
511
511
  hash: "svelte-13nzt82",
512
512
  code: `.tooltip-container.svelte-13nzt82 {position:relative;display:inline-block;}.tooltip.svelte-13nzt82 {position:absolute;z-index:50;padding:0.5rem 0.75rem;background-color:#1f2937;color:white;border-radius:0.375rem;font-size:0.875rem;line-height:1.25rem;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out,
513
513
  visibility 0.2s ease-in-out;pointer-events:none;max-width:200px;word-wrap:break-word;white-space:normal;}
@@ -536,9 +536,9 @@ const Ee = {
536
536
  };
537
537
  function ot(z, e) {
538
538
  const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["content", "placement"]);
539
- he(z, Ee);
539
+ he(z, Fe);
540
540
  let l = s(e, "content", 8, ""), o = s(e, "placement", 8, "top");
541
- var a = qe();
541
+ var a = Ee();
542
542
  B(
543
543
  a,
544
544
  () => ({
@@ -564,11 +564,11 @@ function ot(z, e) {
564
564
  }
565
565
  i(z, a);
566
566
  }
567
- var Fe = f("<img/>");
567
+ var qe = f("<img/>");
568
568
  function nt(z, e) {
569
569
  const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["src", "alt", "width", "height", "className"]);
570
570
  let l = s(e, "src", 8), o = s(e, "alt", 8, ""), a = s(e, "width", 8, "100%"), r = s(e, "height", 8, "auto"), b = s(e, "className", 8, "");
571
- var p = Fe();
571
+ var p = qe();
572
572
  B(p, () => ({
573
573
  src: l(),
574
574
  alt: o(),
@@ -1,4 +1,4 @@
1
- import { y as W, l as C, p as s, z as f, A, i as T, f as B, a as q, s as X, c as V, d as E, g as R, x as y, k as t, m as o, h as k, o as i, b as F, e as G, j as H, t as J, v as K, u as L, B as O, n as Q } from "./props-B4BdFk2B.js";
1
+ import { z as W, l as C, p as s, A as f, B as A, i as T, f as B, a as q, s as X, c as V, d as E, g as R, y, k as t, m as o, h as k, o as i, b as F, e as G, j as H, t as J, w as K, v as L, C as O, n as Q } from "./props-DyILkQVH.js";
2
2
  function se(a, e) {
3
3
  W(() => {
4
4
  var r = a.getRootNode(), d = (
@@ -27,27 +27,29 @@ function re(a, e) {
27
27
  f(() => {
28
28
  }, () => {
29
29
  i(n, {
30
- sm: "px-3 py-1.5 text-sm",
31
- md: "px-4 py-2 text-sm",
32
- lg: "px-5 py-3 text-base"
30
+ sm: "px-3 py-1.5 text-sm font-medium",
31
+ md: "px-4 py-2 text-sm font-medium",
32
+ lg: "px-6 py-3 text-base font-semibold"
33
33
  });
34
34
  }), f(() => {
35
35
  }, () => {
36
36
  i(u, {
37
- primary: "bg-blue-600 text-white hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
38
- secondary: "bg-gray-600 text-white hover:bg-gray-700 focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",
39
- danger: "bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-red-500 focus:ring-offset-2",
40
- success: "bg-green-600 text-white hover:bg-green-700 focus:ring-2 focus:ring-green-500 focus:ring-offset-2",
41
- ghost: "bg-transparent text-gray-700 hover:bg-gray-100 focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",
42
- brand: "bg-purple-600 text-white hover:bg-purple-700 focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
37
+ primary: "bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:bg-blue-400",
38
+ secondary: "bg-gray-600 text-white hover:bg-gray-700 active:bg-gray-800 focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 disabled:bg-gray-400",
39
+ danger: "bg-red-600 text-white hover:bg-red-700 active:bg-red-800 focus:ring-2 focus:ring-red-500 focus:ring-offset-2 disabled:bg-red-400",
40
+ success: "bg-green-600 text-white hover:bg-green-700 active:bg-green-800 focus:ring-2 focus:ring-green-500 focus:ring-offset-2 disabled:bg-green-400",
41
+ ghost: "bg-transparent text-gray-700 hover:bg-gray-100 active:bg-gray-200 focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 disabled:text-gray-400",
42
+ brand: "bg-purple-600 text-white hover:bg-purple-700 active:bg-purple-800 focus:ring-2 focus:ring-purple-500 focus:ring-offset-2 disabled:bg-purple-400"
43
43
  });
44
44
  }), f(
45
45
  () => (t(n), y(p()), t(u), y(v()), y(_())),
46
46
  () => {
47
47
  i(b, [
48
- "inline-flex items-center justify-center font-medium rounded-md transition-colors duration-200",
49
- "disabled:opacity-50 disabled:cursor-not-allowed",
50
- "focus:outline-none",
48
+ "inline-flex items-center justify-center rounded-md transition-all duration-200",
49
+ "disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none",
50
+ "focus:outline-none focus:ring-2 focus:ring-offset-2",
51
+ "active:scale-95 transform-gpu",
52
+ "shadow-sm hover:shadow-md",
51
53
  t(n)[p()],
52
54
  t(u)[v()],
53
55
  _()
@@ -1,4 +1,4 @@
1
- import { l as c, p as h, i as v, f as n, a as b, b as k, e as _, c as r, d as y, g as T, h as w } from "./props-B4BdFk2B.js";
1
+ import { l as c, p as h, i as v, f as n, a as b, b as k, e as _, c as r, d as y, g as T, h as w } from "./props-DyILkQVH.js";
2
2
  import { onMount as x } from "svelte";
3
3
  var D = n('<span class="text-lg">☀️</span>'), S = n('<span class="text-lg">🌙</span>'), $ = n("<button><!></button>");
4
4
  function L(i, o) {
@@ -1,6 +1,6 @@
1
- import { B as s, C as o, a as r, H as t, O as T, P as g, S as l, b as m, T as p, c as d, d as i } from "../OptimizedImage-D-WN8yZ_.js";
2
- import { B as x, I as B, T as c } from "../Textarea-B9H_FPOO.js";
3
- import { T as C } from "../ThemeToggle-Cm25ThjX.js";
1
+ import { B as s, C as o, a as r, H as t, O as T, P as g, S as l, b as m, T as p, c as d, d as i } from "../OptimizedImage-CWv4Xphx.js";
2
+ import { B as x, I as B, T as c } from "../Textarea-B0T7x4TT.js";
3
+ import { T as C } from "../ThemeToggle-2HEU5v1Q.js";
4
4
  export {
5
5
  s as Badge,
6
6
  x as Button,
@@ -1,8 +1,8 @@
1
- import { B as d, I as g, T as m, d as c, c as p, a as u, g as f, b as C } from "../Textarea-B9H_FPOO.js";
2
- import { B as x, C as b, a as I, H as w, O as B, P as D, S, b as V, T as $, c as F, d as v } from "../OptimizedImage-D-WN8yZ_.js";
3
- import { T as N } from "../ThemeToggle-Cm25ThjX.js";
1
+ import { B as d, I as g, T as m, d as c, c as p, a as u, g as f, b as C } from "../Textarea-B0T7x4TT.js";
2
+ import { B as x, C as b, a as I, H as w, O as B, P as D, S, b as V, T as $, c as F, d as v } from "../OptimizedImage-CWv4Xphx.js";
3
+ import { T as N } from "../ThemeToggle-2HEU5v1Q.js";
4
4
  import { Alert as P, ContactForm as R, Dropdown as h, Form as j, ImageUpload as k, Layout as y, Modal as A, SlideUp as E, Tabs as H } from "../molecules/index.js";
5
- import { N as q, a as z } from "../Navigation-BxP-osMQ.js";
5
+ import { N as q, a as z } from "../Navigation-A1Skrbs5.js";
6
6
  const t = (a = "id") => typeof window < "u" ? `${a}-${Math.random().toString(36).substr(2, 9)}` : `${a}-ssr-${Date.now()}`, s = (...a) => a.filter(Boolean).join(" "), r = (a) => {
7
7
  const e = new FormData(a);
8
8
  return Object.fromEntries(e.entries());
@@ -1,5 +1,5 @@
1
- import { t as S, F as ie, G as le, H as de, I as ce, J, y as ve, K as ue, w as T, L as fe, S as me, l as A, p as w, i as te, f as k, a as Q, s as L, e as N, c as b, d as H, g as G, h as a, z as Y, A as ae, b as j, x as R, k as m, m as I, o as P, D, j as _, C as W, M as be, n as U, v as K, q as ge, r as he, u as re, N as Z, O as V } from "../props-B4BdFk2B.js";
2
- import { e as ne, B as ee, I as oe, T as xe } from "../Textarea-B9H_FPOO.js";
1
+ import { t as S, G as ie, H as le, I as de, J as ce, K as J, z as ve, L as ue, x as T, M as fe, S as me, l as A, p as w, i as te, f as k, a as Q, s as L, e as N, c as b, d as H, g as G, h as a, A as Y, B as ae, b as j, y as U, k as m, m as I, o as P, E as D, j as _, D as W, N as be, n as F, w as K, r as ge, u as he, v as re, O as Z, P as V } from "../props-DyILkQVH.js";
2
+ import { e as ne, B as ee, I as oe, T as xe } from "../Textarea-B0T7x4TT.js";
3
3
  function pe(n, e, s = !1, t = !1, c = !1) {
4
4
  var r = n, h = "";
5
5
  S(() => {
@@ -94,7 +94,7 @@ function Xe(n, e) {
94
94
  G(e, !1), ne(n, Me);
95
95
  const c = I();
96
96
  let r = w(e, "variant", 8, "main"), h = w(e, "gap", 8, "md"), o = w(e, "className", 8, "");
97
- Y(() => R(h()), () => {
97
+ Y(() => U(h()), () => {
98
98
  P(c, `gap-${h()}`);
99
99
  }), ae();
100
100
  var i = $e();
@@ -129,8 +129,8 @@ function Xe(n, e) {
129
129
  var z = W(), q = D(z);
130
130
  {
131
131
  var $ = (M) => {
132
- var C = Ce(), O = a(C);
133
- L(O, e, "default", {}), b(M, C);
132
+ var C = Ce(), B = a(C);
133
+ L(B, e, "default", {}), b(M, C);
134
134
  };
135
135
  j(
136
136
  q,
@@ -179,14 +179,14 @@ function Ze(n, e) {
179
179
  var $ = _(z, 2);
180
180
  {
181
181
  var M = (C) => {
182
- var O = Le(), F = a(O);
183
- L(F, e, "footer", {}), b(C, O);
182
+ var B = Le(), R = a(B);
183
+ L(R, e, "footer", {}), b(C, B);
184
184
  };
185
185
  j($, (C) => {
186
186
  T(() => s.footer) && C(M);
187
187
  });
188
188
  }
189
- S(() => U(y, c())), N("click", f, r), N("click", l, h), N("keydown", l, o), b(d, l);
189
+ S(() => F(y, c())), N("click", f, r), N("click", l, h), N("keydown", l, o), b(d, l);
190
190
  };
191
191
  j(u, (d) => {
192
192
  t() && d(g);
@@ -213,7 +213,7 @@ function et(n, e) {
213
213
  {
214
214
  var v = (z) => {
215
215
  var q = Se(), $ = a(q), M = a($), C = _($, 2);
216
- S(() => U(M, t())), N("click", C, c), b(z, q);
216
+ S(() => F(M, t())), N("click", C, c), b(z, q);
217
217
  };
218
218
  j(p, (z) => {
219
219
  t() && z(v);
@@ -229,7 +229,7 @@ function et(n, e) {
229
229
  b(n, o);
230
230
  }
231
231
  var Ee = k('<div class="dropdown-content group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-1o1q13x"><!></div>'), Te = k('<div class="dropdown-container group relative inline-block svelte-1o1q13x"><!> <!></div>');
232
- const Oe = {
232
+ const Be = {
233
233
  hash: "svelte-1o1q13x",
234
234
  code: `.dropdown-container.svelte-1o1q13x {position:relative;display:inline-block;}.dropdown-content.svelte-1o1q13x {position:absolute;z-index:50;background-color:white;border:1px solid #e5e7eb;border-radius:0.5rem;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1),
235
235
  0 4px 6px -2px rgba(0, 0, 0, 0.05);min-width:12rem;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out,
@@ -248,7 +248,7 @@ const Oe = {
248
248
  .dropdown-content:where(.svelte-1o1q13x)::before {left:1rem;}.dropdown-container[data-placement="bottom-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {right:1rem;}.dropdown-container[data-placement="top-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {left:1rem;}.dropdown-container[data-placement="top-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {right:1rem;}`
249
249
  };
250
250
  function tt(n, e) {
251
- ne(n, Oe);
251
+ ne(n, Be);
252
252
  let s = w(e, "isOpen", 8, !1), t = w(e, "placement", 8, "bottom-start");
253
253
  var c = Te(), r = a(c);
254
254
  L(r, e, "trigger", {});
@@ -264,7 +264,7 @@ function tt(n, e) {
264
264
  }
265
265
  S(() => K(c, "data-placement", t())), b(n, c);
266
266
  }
267
- var Be = k('<button type="button" role="tab"> </button>'), De = k('<div class="tabs-container"><div class="flex border-b border-gray-200" role="tablist" tabindex="0"></div> <div class="mt-4"><!></div></div>');
267
+ var Oe = k('<button type="button" role="tab"> </button>'), De = k('<div class="tabs-container"><div class="flex border-b border-gray-200" role="tablist" tabindex="0"></div> <div class="mt-4"><!></div></div>');
268
268
  function at(n, e) {
269
269
  G(e, !1);
270
270
  let s = w(e, "tabs", 24, () => []), t = w(e, "activeTab", 12, ""), c = w(e, "variant", 8, "default");
@@ -280,9 +280,9 @@ function at(n, e) {
280
280
  te();
281
281
  var o = De(), i = a(o);
282
282
  ge(i, 5, s, he, (d, l) => {
283
- var x = Be(), p = a(x);
283
+ var x = Oe(), p = a(x);
284
284
  S(() => {
285
- re(x, 1, `px-4 py-2 text-sm font-medium border-b-2 transition-colors ${R(t()), m(l), R(c()), T(() => t() === m(l).id ? c() === "pills" ? "bg-blue-100 text-blue-700 border-blue-500" : "border-blue-500 text-blue-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300") ?? ""}`), x.disabled = (m(l), T(() => m(l).disabled)), K(x, "aria-selected", (R(t()), m(l), T(() => t() === m(l).id))), U(p, (m(l), T(() => m(l).label)));
285
+ re(x, 1, `px-4 py-2 text-sm font-medium border-b-2 transition-colors ${U(t()), m(l), U(c()), T(() => t() === m(l).id ? c() === "pills" ? "bg-blue-100 text-blue-700 border-blue-500" : "border-blue-500 text-blue-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300") ?? ""}`), x.disabled = (m(l), T(() => m(l).disabled)), K(x, "aria-selected", (U(t()), m(l), T(() => t() === m(l).id))), F(p, (m(l), T(() => m(l).label)));
286
286
  }), N("click", x, () => r(m(l).id)), b(d, x);
287
287
  });
288
288
  var u = _(i, 2), g = a(u);
@@ -297,7 +297,7 @@ function at(n, e) {
297
297
  }
298
298
  ), N("keydown", i, h), b(n, o), H();
299
299
  }
300
- var Ie = k('<button class="absolute top-2 right-2 z-10 w-6 h-6 flex items-center justify-center rounded-full text-text-secondary hover:text-primary transition-colors duration-200 motion-reduce:transition-none group focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2" aria-label="Dismiss alert" type="button"><svg class="w-4 h-4 text-current group-hover:scale-110 transition-transform duration-200 motion-reduce:transition-none" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>'), Pe = k('<h4 class="font-semibold text-sm mb-1" style="color: inherit;"> </h4>'), Ae = k('<p class="text-sm leading-relaxed" style="color: inherit;"> </p>'), Fe = k('<div><!> <div><div class="flex-shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><!> <!> <!></div></div></div>');
300
+ var Ie = k('<button class="absolute top-2 right-2 z-10 w-6 h-6 flex items-center justify-center rounded-full text-text-secondary hover:text-primary transition-colors duration-200 motion-reduce:transition-none group focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2" aria-label="Dismiss alert" type="button"><svg class="w-4 h-4 text-current group-hover:scale-110 transition-transform duration-200 motion-reduce:transition-none" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>'), Pe = k('<h4 class="font-semibold text-sm mb-1" style="color: inherit;"> </h4>'), Ae = k('<p class="text-sm leading-relaxed" style="color: inherit;"> </p>'), Re = k('<div><!> <div><div class="flex-shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><!> <!> <!></div></div></div>');
301
301
  function rt(n, e) {
302
302
  const s = A(e, ["children", "$$slots", "$$events", "$$legacy"]), t = A(s, ["variant", "title", "message", "closable", "className"]);
303
303
  G(e, !1);
@@ -313,7 +313,7 @@ function rt(n, e) {
313
313
  warning: "bg-warning-surface text-warning-text border border-warning",
314
314
  error: "bg-error-surface text-error-text border border-error"
315
315
  });
316
- }), Y(() => R(o()), () => {
316
+ }), Y(() => U(o()), () => {
317
317
  P(r, o() === "success" || o() === "info" ? "status" : "alert");
318
318
  }), Y(() => {
319
319
  }, () => {
@@ -332,9 +332,9 @@ function rt(n, e) {
332
332
  </svg>`
333
333
  });
334
334
  }), ae();
335
- var x = Fe();
335
+ var x = Re();
336
336
  Q(x, () => ({
337
- class: `relative rounded-md p-4 border ${m(c), R(o()), T(() => m(c)[o()]) ?? ""} transition-all duration-200 motion-reduce:transition-none ${d() ?? ""}`,
337
+ class: `relative rounded-md p-4 border ${m(c), U(o()), T(() => m(c)[o()]) ?? ""} transition-all duration-200 motion-reduce:transition-none ${d() ?? ""}`,
338
338
  role: m(r),
339
339
  "aria-live": o() === "success" || o() === "info" ? "polite" : "assertive",
340
340
  "aria-atomic": "true",
@@ -343,20 +343,20 @@ function rt(n, e) {
343
343
  var p = a(x);
344
344
  {
345
345
  var v = (E) => {
346
- var B = Ie();
347
- N("click", B, l), b(E, B);
346
+ var O = Ie();
347
+ N("click", O, l), b(E, O);
348
348
  };
349
349
  j(p, (E) => {
350
350
  g() && E(v);
351
351
  });
352
352
  }
353
353
  var y = _(p, 2), f = a(y), z = a(f);
354
- pe(z, () => (m(h), R(o()), T(() => m(h)[o()])));
354
+ pe(z, () => (m(h), U(o()), T(() => m(h)[o()])));
355
355
  var q = _(f, 2), $ = a(q);
356
356
  {
357
357
  var M = (E) => {
358
- var B = Pe(), X = a(B);
359
- S(() => U(X, i())), b(E, B);
358
+ var O = Pe(), X = a(O);
359
+ S(() => F(X, i())), b(E, O);
360
360
  };
361
361
  j($, (E) => {
362
362
  i() && E(M);
@@ -364,18 +364,18 @@ function rt(n, e) {
364
364
  }
365
365
  var C = _($, 2);
366
366
  {
367
- var O = (E) => {
368
- var B = Ae(), X = a(B);
369
- S(() => U(X, u())), b(E, B);
367
+ var B = (E) => {
368
+ var O = Ae(), X = a(O);
369
+ S(() => F(X, u())), b(E, O);
370
370
  };
371
371
  j(C, (E) => {
372
- u() && E(O);
372
+ u() && E(B);
373
373
  });
374
374
  }
375
- var F = _(C, 2);
376
- L(F, e, "default", {}), S(() => re(y, 1, `flex items-start gap-3 ${g() ? "pr-8" : ""}`)), b(n, x), H();
375
+ var R = _(C, 2);
376
+ L(R, e, "default", {}), S(() => re(y, 1, `flex items-start gap-3 ${g() ? "pr-8" : ""}`)), b(n, x), H();
377
377
  }
378
- var Re = k('<div class="relative group"><img alt="" class="w-full h-32 object-cover rounded-lg border border-gray-300"/> <div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity rounded-lg flex items-center justify-center"><div class="flex gap-2"><!> <!></div></div></div>'), Ue = k('<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-gray-400 transition-colors cursor-pointer" role="button" tabindex="0"><div class="space-y-3"><div class="w-12 h-12 mx-auto bg-gray-100 rounded-lg flex items-center justify-center"><span class="text-2xl">📷</span></div> <div><p class="font-medium text-gray-900"> </p> <p class="text-sm text-gray-500">Click to choose a file</p></div></div></div>'), Ye = k('<div class="space-y-3"><!> <input type="file" class="hidden"/></div>');
378
+ var Ue = k('<div class="relative group"><img alt="" class="w-full h-32 object-cover rounded-lg border border-gray-300"/> <div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity rounded-lg flex items-center justify-center"><div class="flex gap-2"><!> <!></div></div></div>'), Fe = k('<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-gray-400 transition-colors cursor-pointer" role="button" tabindex="0"><div class="space-y-3"><div class="w-12 h-12 mx-auto bg-gray-100 rounded-lg flex items-center justify-center"><span class="text-2xl">📷</span></div> <div><p class="font-medium text-gray-900"> </p> <p class="text-sm text-gray-500">Click to choose a file</p></div></div></div>'), Ye = k('<div class="space-y-3"><!> <input type="file" class="hidden"/></div>');
379
379
  function ot(n, e) {
380
380
  let s = w(e, "value", 12, null), t = w(e, "disabled", 8, !1), c = w(e, "accept", 8, "image/*"), r = w(e, "placeholder", 8, "No image selected"), h = I();
381
381
  function o(v) {
@@ -394,7 +394,7 @@ function ot(n, e) {
394
394
  var g = Ye(), d = a(g);
395
395
  {
396
396
  var l = (v) => {
397
- var y = Re(), f = a(y), z = _(f, 2), q = a(z), $ = a(q);
397
+ var y = Ue(), f = a(y), z = _(f, 2), q = a(z), $ = a(q);
398
398
  ee($, {
399
399
  variant: "secondary",
400
400
  size: "sm",
@@ -402,9 +402,9 @@ function ot(n, e) {
402
402
  return t();
403
403
  },
404
404
  $$events: { click: u },
405
- children: (C, O) => {
406
- var F = Z("Change");
407
- b(C, F);
405
+ children: (C, B) => {
406
+ var R = Z("Change");
407
+ b(C, R);
408
408
  },
409
409
  $$slots: { default: !0 }
410
410
  });
@@ -416,15 +416,15 @@ function ot(n, e) {
416
416
  return t();
417
417
  },
418
418
  $$events: { click: i },
419
- children: (C, O) => {
420
- var F = Z("Remove");
421
- b(C, F);
419
+ children: (C, B) => {
420
+ var R = Z("Remove");
421
+ b(C, R);
422
422
  },
423
423
  $$slots: { default: !0 }
424
424
  }), S(() => K(f, "src", s())), b(v, y);
425
425
  }, x = (v) => {
426
- var y = Ue(), f = a(y), z = _(a(f), 2), q = a(z), $ = a(q);
427
- S(() => U($, r())), N("click", y, u), N("keydown", y, (M) => M.key === "Enter" && u()), b(v, y);
426
+ var y = Fe(), f = a(y), z = _(a(f), 2), q = a(z), $ = a(q);
427
+ S(() => F($, r())), N("click", y, u), N("keydown", y, (M) => M.key === "Enter" && u()), b(v, y);
428
428
  };
429
429
  j(d, (v) => {
430
430
  s() ? v(l) : v(x, !1);
@@ -473,7 +473,7 @@ function Ge(n, e) {
473
473
  var x = (p) => {
474
474
  var v = Ke(), y = a(v);
475
475
  S(() => {
476
- K(v, "for", m(i)), U(y, o());
476
+ K(v, "for", m(i)), F(y, o());
477
477
  }), b(p, v);
478
478
  };
479
479
  j(l, (p) => {
@@ -1,4 +1,4 @@
1
- import { N as r, a as N } from "../Navigation-BxP-osMQ.js";
1
+ import { N as r, a as N } from "../Navigation-A1Skrbs5.js";
2
2
  export {
3
3
  r as Navbar,
4
4
  N as Navigation
@@ -13,7 +13,7 @@ function rn() {
13
13
  }
14
14
  rn();
15
15
  const rt = 1, nt = 2, or = 4, nn = 8, fn = 16, ln = 1, un = 2, cr = 4, an = 8, sn = 16, on = 1, cn = 2, I = Symbol(), vn = "http://www.w3.org/1999/xhtml", _n = "@attach", vr = !1;
16
- var it = Array.isArray, dn = Array.prototype.indexOf, _r = Array.from, yt = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, dr = Object.getOwnPropertyDescriptors, pn = Object.prototype, hn = Array.prototype, Ct = Object.getPrototypeOf;
16
+ var it = Array.isArray, dn = Array.prototype.indexOf, _r = Array.from, yt = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, dr = Object.getOwnPropertyDescriptors, pn = Object.prototype, hn = Array.prototype, Pt = Object.getPrototypeOf;
17
17
  const wn = () => {
18
18
  };
19
19
  function bn(e) {
@@ -29,7 +29,7 @@ function pr() {
29
29
  });
30
30
  return { promise: r, resolve: e, reject: t };
31
31
  }
32
- const L = 2, Pt = 4, ft = 8, _e = 16, J = 32, Ce = 64, hr = 128, q = 256, We = 512, P = 1024, x = 2048, X = 4096, $ = 8192, de = 16384, Rt = 32768, kt = 65536, zt = 1 << 17, gn = 1 << 18, lt = 1 << 19, wr = 1 << 20, At = 1 << 21, ut = 1 << 22, oe = 1 << 23, ue = Symbol("$state"), En = Symbol("legacy props"), yn = Symbol(""), De = new class extends Error {
32
+ const L = 2, Ct = 4, ft = 8, _e = 16, J = 32, Pe = 64, hr = 128, q = 256, We = 512, C = 1024, x = 2048, X = 4096, $ = 8192, de = 16384, Rt = 32768, kt = 65536, zt = 1 << 17, gn = 1 << 18, lt = 1 << 19, wr = 1 << 20, At = 1 << 21, ut = 1 << 22, oe = 1 << 23, ue = Symbol("$state"), En = Symbol("legacy props"), yn = Symbol(""), De = new class extends Error {
33
33
  constructor() {
34
34
  super(...arguments);
35
35
  Re(this, "name", "StaleReactionError");
@@ -57,10 +57,10 @@ function In(e) {
57
57
  function Nn() {
58
58
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
59
59
  }
60
- function Cn() {
60
+ function Pn() {
61
61
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
62
62
  }
63
- function Pn() {
63
+ function Cn() {
64
64
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
65
65
  }
66
66
  function Rn() {
@@ -76,13 +76,13 @@ function Mn(e, t) {
76
76
  function gr(e) {
77
77
  return !Mn(e, this.v);
78
78
  }
79
- let C = null;
79
+ let P = null;
80
80
  function Ze(e) {
81
- C = e;
81
+ P = e;
82
82
  }
83
83
  function ki(e, t = !1, r) {
84
- C = {
85
- p: C,
84
+ P = {
85
+ p: P,
86
86
  c: null,
87
87
  e: null,
88
88
  s: e,
@@ -93,18 +93,18 @@ function ki(e, t = !1, r) {
93
93
  function Mi(e) {
94
94
  var t = (
95
95
  /** @type {ComponentContext} */
96
- C
96
+ P
97
97
  ), r = t.e;
98
98
  if (r !== null) {
99
99
  t.e = null;
100
100
  for (var n of r)
101
- Cr(n);
101
+ Pr(n);
102
102
  }
103
- return C = t.p, /** @type {T} */
103
+ return P = t.p, /** @type {T} */
104
104
  {};
105
105
  }
106
106
  function Ve() {
107
- return !qe || C !== null && C.l === null;
107
+ return !qe || P !== null && P.l === null;
108
108
  }
109
109
  let we = [];
110
110
  function Dn() {
@@ -320,11 +320,11 @@ ye = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), xe = new WeakMap(),
320
320
  */
321
321
  Tt = function(t) {
322
322
  var s;
323
- t.f ^= P;
323
+ t.f ^= C;
324
324
  for (var r = t.first; r !== null; ) {
325
- var n = r.f, i = (n & (J | Ce)) !== 0, f = i && (n & P) !== 0, l = f || (n & $) !== 0 || this.skipped_effects.has(r);
325
+ var n = r.f, i = (n & (J | Pe)) !== 0, f = i && (n & C) !== 0, l = f || (n & $) !== 0 || this.skipped_effects.has(r);
326
326
  if (!l && r.fn !== null) {
327
- i ? r.f ^= P : (n & Pt) !== 0 ? O(this, se).push(r) : (n & P) === 0 && ((n & ut) !== 0 && ((s = r.b) != null && s.is_pending()) ? O(this, Ae).push(r) : $e(r) && ((r.f & _e) !== 0 && O(this, Te).push(r), Ne(r)));
327
+ i ? r.f ^= C : (n & Ct) !== 0 ? O(this, se).push(r) : (n & C) === 0 && ((n & ut) !== 0 && ((s = r.b) != null && s.is_pending()) ? O(this, Ae).push(r) : $e(r) && ((r.f & _e) !== 0 && O(this, Te).push(r), Ne(r)));
328
328
  var a = r.first;
329
329
  if (a !== null) {
330
330
  r = a;
@@ -340,7 +340,7 @@ Tt = function(t) {
340
340
  */
341
341
  Ge = function(t) {
342
342
  for (const r of t)
343
- ((r.f & x) !== 0 ? O(this, je) : O(this, Ue)).push(r), k(r, P);
343
+ ((r.f & x) !== 0 ? O(this, je) : O(this, Ue)).push(r), k(r, C);
344
344
  t.length = 0;
345
345
  }, /**
346
346
  * Append and remove branches to/from the DOM
@@ -437,9 +437,9 @@ function ve(e) {
437
437
  var r = t.f;
438
438
  if (St && t === S && (r & _e) !== 0)
439
439
  return;
440
- if ((r & (Ce | J)) !== 0) {
441
- if ((r & P) === 0) return;
442
- t.f ^= P;
440
+ if ((r & (Pe | J)) !== 0) {
441
+ if ((r & C) === 0) return;
442
+ t.f ^= C;
443
443
  }
444
444
  }
445
445
  ie.push(t);
@@ -467,7 +467,7 @@ function mr(e, t, r) {
467
467
  });
468
468
  }
469
469
  function Un() {
470
- var e = S, t = A, r = C, n = N;
470
+ var e = S, t = A, r = P, n = N;
471
471
  return function() {
472
472
  W(e), G(t), Ze(r), n == null || n.activate();
473
473
  };
@@ -482,7 +482,7 @@ function st(e) {
482
482
  A
483
483
  ) : null;
484
484
  return S === null || r !== null && (r.f & q) !== 0 ? t |= q : S.f |= lt, {
485
- ctx: C,
485
+ ctx: P,
486
486
  deps: null,
487
487
  effects: null,
488
488
  equals: br,
@@ -588,7 +588,7 @@ function Lt(e) {
588
588
  function Tr(e) {
589
589
  var t = Lt(e);
590
590
  if (e.equals(t) || (e.v = t, e.wv = Ur()), !pe) {
591
- var r = (le || (e.f & q) !== 0) && e.deps !== null ? X : P;
591
+ var r = (le || (e.f & q) !== 0) && e.deps !== null ? X : C;
592
592
  k(e, r);
593
593
  }
594
594
  }
@@ -614,7 +614,7 @@ function ne(e, t) {
614
614
  function Bn(e, t = !1, r = !0) {
615
615
  var i;
616
616
  const n = Oe(e);
617
- return t || (n.equals = gr), qe && r && C !== null && C.l !== null && ((i = C.l).s ?? (i.s = [])).push(n), n;
617
+ return t || (n.equals = gr), qe && r && P !== null && P.l !== null && ((i = P.l).s ?? (i.s = [])).push(n), n;
618
618
  }
619
619
  function Di(e, t) {
620
620
  return Y(
@@ -625,7 +625,7 @@ function Di(e, t) {
625
625
  function Y(e, t, r = !1) {
626
626
  A !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
627
627
  // to ensure we error if state is set inside an inspect effect
628
- (!K || (A.f & zt) !== 0) && Ve() && (A.f & (L | _e | ut | zt)) !== 0 && !(D != null && D.includes(e)) && Pn();
628
+ (!K || (A.f & zt) !== 0) && Ve() && (A.f & (L | _e | ut | zt)) !== 0 && !(D != null && D.includes(e)) && Cn();
629
629
  let n = r ? be(t) : t;
630
630
  return Le(e, n);
631
631
  }
@@ -637,7 +637,7 @@ function Le(e, t) {
637
637
  n.capture(e, r), (e.f & L) !== 0 && ((e.f & x) !== 0 && Lt(
638
638
  /** @type {Derived} */
639
639
  e
640
- ), k(e, (e.f & q) === 0 ? P : X)), e.wv = Ur(), Or(e, x), Ve() && S !== null && (S.f & P) !== 0 && (S.f & (J | Ce)) === 0 && (U === null ? ti([e]) : U.push(e));
640
+ ), k(e, (e.f & q) === 0 ? C : X)), e.wv = Ur(), Or(e, x), Ve() && S !== null && (S.f & C) !== 0 && (S.f & (J | Pe)) === 0 && (U === null ? ti([e]) : U.push(e));
641
641
  }
642
642
  return t;
643
643
  }
@@ -672,7 +672,7 @@ function Or(e, t) {
672
672
  function be(e) {
673
673
  if (typeof e != "object" || e === null || ue in e)
674
674
  return e;
675
- const t = Ct(e);
675
+ const t = Pt(e);
676
676
  if (t !== pn && t !== hn)
677
677
  return e;
678
678
  var r = /* @__PURE__ */ new Map(), n = it(e), i = /* @__PURE__ */ ne(0), f = ce, l = (a) => {
@@ -796,7 +796,7 @@ function be(e) {
796
796
  return u;
797
797
  },
798
798
  setPrototypeOf() {
799
- Cn();
799
+ Pn();
800
800
  }
801
801
  }
802
802
  );
@@ -880,7 +880,7 @@ function Q(e, t, r, n = !0) {
880
880
  var i = S;
881
881
  i !== null && (i.f & $) !== 0 && (e |= $);
882
882
  var f = {
883
- ctx: C,
883
+ ctx: P,
884
884
  deps: null,
885
885
  nodes_start: null,
886
886
  nodes_end: null,
@@ -907,7 +907,7 @@ function Q(e, t, r, n = !0) {
907
907
  if (n) {
908
908
  var l = f;
909
909
  if (r && l.deps === null && l.teardown === null && l.nodes_start === null && l.first === l.last && // either `null`, or a singular child
910
- (l.f & lt) === 0 && (l = l.first), l !== null && (l.parent = i, i !== null && Wn(l, i), A !== null && (A.f & L) !== 0 && (e & Ce) === 0)) {
910
+ (l.f & lt) === 0 && (l = l.first), l !== null && (l.parent = i, i !== null && Wn(l, i), A !== null && (A.f & L) !== 0 && (e & Pe) === 0)) {
911
911
  var a = (
912
912
  /** @type {Derived} */
913
913
  A
@@ -919,7 +919,7 @@ function Q(e, t, r, n = !0) {
919
919
  }
920
920
  function xt(e) {
921
921
  const t = Q(ft, null, !1);
922
- return k(t, P), t.teardown = e, t;
922
+ return k(t, C), t.teardown = e, t;
923
923
  }
924
924
  function Xt(e) {
925
925
  Nr();
@@ -930,25 +930,25 @@ function Xt(e) {
930
930
  if (r) {
931
931
  var n = (
932
932
  /** @type {ComponentContext} */
933
- C
933
+ P
934
934
  );
935
935
  (n.e ?? (n.e = [])).push(e);
936
936
  } else
937
- return Cr(e);
937
+ return Pr(e);
938
938
  }
939
- function Cr(e) {
940
- return Q(Pt | wr, e, !1);
939
+ function Pr(e) {
940
+ return Q(Ct | wr, e, !1);
941
941
  }
942
942
  function Zn(e) {
943
943
  return Nr(), Q(ft | wr, e, !0);
944
944
  }
945
- function Pr(e) {
946
- return Q(Pt, e, !1);
945
+ function Cr(e) {
946
+ return Q(Ct, e, !1);
947
947
  }
948
948
  function ji(e, t) {
949
949
  var r = (
950
950
  /** @type {ComponentContextLegacy} */
951
- C
951
+ P
952
952
  ), n = { effect: null, ran: !1, deps: e };
953
953
  r.l.$.push(n), n.effect = Rr(() => {
954
954
  e(), !n.ran && (n.ran = !0, vt(t));
@@ -957,13 +957,13 @@ function ji(e, t) {
957
957
  function Ui() {
958
958
  var e = (
959
959
  /** @type {ComponentContextLegacy} */
960
- C
960
+ P
961
961
  );
962
962
  Rr(() => {
963
963
  for (var t of e.l.$) {
964
964
  t.deps();
965
965
  var r = t.effect;
966
- (r.f & P) !== 0 && k(r, X), $e(r) && Ne(r), t.ran = !1;
966
+ (r.f & C) !== 0 && k(r, X), $e(r) && Ne(r), t.ran = !1;
967
967
  }
968
968
  });
969
969
  }
@@ -1005,7 +1005,7 @@ function Mr(e, t = !1) {
1005
1005
  i.abort(De);
1006
1006
  });
1007
1007
  var n = r.next;
1008
- (r.f & Ce) !== 0 ? r.parent = null : z(r, t), r = n;
1008
+ (r.f & Pe) !== 0 ? r.parent = null : z(r, t), r = n;
1009
1009
  }
1010
1010
  }
1011
1011
  function Xn(e) {
@@ -1073,7 +1073,7 @@ function Ut(e) {
1073
1073
  }
1074
1074
  function xr(e, t) {
1075
1075
  if ((e.f & $) !== 0) {
1076
- e.f ^= $, (e.f & P) === 0 && (k(e, x), ve(e));
1076
+ e.f ^= $, (e.f & C) === 0 && (k(e, x), ve(e));
1077
1077
  for (var r = e.first; r !== null; ) {
1078
1078
  var n = r.next, i = (r.f & kt) !== 0 || (r.f & J) !== 0;
1079
1079
  xr(r, i ? t : !1), r = n;
@@ -1143,7 +1143,7 @@ function $e(e) {
1143
1143
  ), f.wv > e.wv)
1144
1144
  return !0;
1145
1145
  }
1146
- (!n || S !== null && !le) && k(e, P);
1146
+ (!n || S !== null && !le) && k(e, C);
1147
1147
  }
1148
1148
  return !1;
1149
1149
  }
@@ -1157,7 +1157,7 @@ function qr(e, t, r = !0) {
1157
1157
  f,
1158
1158
  t,
1159
1159
  !1
1160
- ) : t === f && (r ? k(f, x) : (f.f & P) !== 0 && k(f, X), ve(
1160
+ ) : t === f && (r ? k(f, x) : (f.f & C) !== 0 && k(f, X), ve(
1161
1161
  /** @type {Effect} */
1162
1162
  f
1163
1163
  ));
@@ -1165,9 +1165,9 @@ function qr(e, t, r = !0) {
1165
1165
  }
1166
1166
  function Vr(e) {
1167
1167
  var b;
1168
- var t = M, r = F, n = U, i = A, f = le, l = D, a = C, u = K, s = ce, c = e.f;
1168
+ var t = M, r = F, n = U, i = A, f = le, l = D, a = P, u = K, s = ce, c = e.f;
1169
1169
  M = /** @type {null | Value[]} */
1170
- null, F = 0, U = null, le = (c & q) !== 0 && (K || !Ee || A === null), A = (c & (J | Ce)) === 0 ? e : null, D = null, Ze(e.ctx), K = !1, ce = ++Fe, e.ac !== null && (Ft(() => {
1170
+ null, F = 0, U = null, le = (c & q) !== 0 && (K || !Ee || A === null), A = (c & (J | Pe)) === 0 ? e : null, D = null, Ze(e.ctx), K = !1, ce = ++Fe, e.ac !== null && (Ft(() => {
1171
1171
  e.ac.abort(De);
1172
1172
  }), e.ac = null);
1173
1173
  try {
@@ -1235,7 +1235,7 @@ function et(e, t) {
1235
1235
  function Ne(e) {
1236
1236
  var t = e.f;
1237
1237
  if ((t & de) === 0) {
1238
- k(e, P);
1238
+ k(e, C);
1239
1239
  var r = S, n = Ee;
1240
1240
  S = e, Ee = !0;
1241
1241
  try {
@@ -1279,7 +1279,7 @@ function R(e) {
1279
1279
  l = /** @type {Derived} */
1280
1280
  e;
1281
1281
  var u = l.v;
1282
- return ((l.f & P) === 0 && l.reactions !== null || Br(l)) && (u = Lt(l)), ae.set(l, u), u;
1282
+ return ((l.f & C) === 0 && l.reactions !== null || Br(l)) && (u = Lt(l)), ae.set(l, u), u;
1283
1283
  }
1284
1284
  } else r && (l = /** @type {Derived} */
1285
1285
  e, $e(l) && Tr(l));
@@ -1330,7 +1330,7 @@ function It(e, t = /* @__PURE__ */ new Set()) {
1330
1330
  It(e[n], t);
1331
1331
  } catch {
1332
1332
  }
1333
- const r = Ct(e);
1333
+ const r = Pt(e);
1334
1334
  if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) {
1335
1335
  const n = dr(r);
1336
1336
  for (let i in n) {
@@ -1721,18 +1721,18 @@ function hi(e, t, r, n, i, f, l, a, u) {
1721
1721
  T.push(y), p = y, o = y.next;
1722
1722
  }
1723
1723
  if (o !== null || b !== void 0) {
1724
- for (var Pe = b === void 0 ? [] : _r(b); o !== null; )
1725
- (o.e.f & $) === 0 && Pe.push(o), o = o.next;
1726
- var pt = Pe.length;
1724
+ for (var Ce = b === void 0 ? [] : _r(b); o !== null; )
1725
+ (o.e.f & $) === 0 && Ce.push(o), o = o.next;
1726
+ var pt = Ce.length;
1727
1727
  if (pt > 0) {
1728
1728
  var Jr = (l & or) !== 0 && v === 0 ? i : null;
1729
1729
  if (s) {
1730
1730
  for (E = 0; E < pt; E += 1)
1731
- ($t = Pe[E].a) == null || $t.measure();
1731
+ ($t = Ce[E].a) == null || $t.measure();
1732
1732
  for (E = 0; E < pt; E += 1)
1733
- (Ht = Pe[E].a) == null || Ht.fix();
1733
+ (Ht = Ce[E].a) == null || Ht.fix();
1734
1734
  }
1735
- pi(r, Pe, Jr);
1735
+ pi(r, Ce, Jr);
1736
1736
  }
1737
1737
  }
1738
1738
  s && at(() => {
@@ -1815,7 +1815,7 @@ function wi(e, t) {
1815
1815
  var r = void 0, n;
1816
1816
  ct(() => {
1817
1817
  r !== (r = t()) && (n && (z(n), n = null), r && (n = Ie(() => {
1818
- Pr(() => (
1818
+ Cr(() => (
1819
1819
  /** @type {(node: Element) => void} */
1820
1820
  r(e)
1821
1821
  ));
@@ -2086,7 +2086,7 @@ function Xi(e, t, r = [], n = [], i, f = !1, l = !1) {
2086
2086
  /** @type {HTMLSelectElement} */
2087
2087
  e
2088
2088
  );
2089
- Pr(() => {
2089
+ Cr(() => {
2090
2090
  Nt(
2091
2091
  _,
2092
2092
  /** @type {Record<string | symbol, any>} */
@@ -2117,14 +2117,14 @@ function Zr(e) {
2117
2117
  n = dr(i);
2118
2118
  for (var l in n)
2119
2119
  n[l].set && r.push(l);
2120
- i = Ct(i);
2120
+ i = Pt(i);
2121
2121
  }
2122
2122
  return r;
2123
2123
  }
2124
2124
  function Qi(e = !1) {
2125
2125
  const t = (
2126
2126
  /** @type {ComponentContextLegacy} */
2127
- C
2127
+ P
2128
2128
  ), r = t.l.u;
2129
2129
  if (!r) return;
2130
2130
  let n = () => ii(t.s);
@@ -2177,7 +2177,7 @@ const Ni = {
2177
2177
  if (!(t in e.special)) {
2178
2178
  var n = S;
2179
2179
  try {
2180
- W(e.parent_effect), e.special[t] = Ci(
2180
+ W(e.parent_effect), e.special[t] = Pi(
2181
2181
  {
2182
2182
  get [t]() {
2183
2183
  return e.props[t];
@@ -2229,7 +2229,7 @@ function ef(e, t) {
2229
2229
  Ni
2230
2230
  );
2231
2231
  }
2232
- function Ci(e, t, r, n) {
2232
+ function Pi(e, t, r, n) {
2233
2233
  var h;
2234
2234
  var i = !qe || (r & un) !== 0, f = (r & an) !== 0, l = (r & sn) !== 0, a = (
2235
2235
  /** @type {V} */
@@ -2294,21 +2294,22 @@ function Ci(e, t, r, n) {
2294
2294
  );
2295
2295
  }
2296
2296
  export {
2297
- Ui as A,
2298
- gi as B,
2299
- Hi as C,
2300
- Fi as D,
2301
- Ai as E,
2302
- S as F,
2303
- Qn as G,
2304
- si as H,
2305
- tt as I,
2306
- Qe as J,
2307
- Rr as K,
2308
- at as L,
2309
- Ji as M,
2310
- $i as N,
2311
- Di as O,
2297
+ ji as A,
2298
+ Ui as B,
2299
+ gi as C,
2300
+ Hi as D,
2301
+ Fi as E,
2302
+ Ai as F,
2303
+ S as G,
2304
+ Qn as H,
2305
+ si as I,
2306
+ tt as J,
2307
+ Qe as K,
2308
+ Rr as L,
2309
+ at as M,
2310
+ Ji as N,
2311
+ $i as O,
2312
+ Di as P,
2312
2313
  ue as S,
2313
2314
  Xi as a,
2314
2315
  zi as b,
@@ -2325,15 +2326,15 @@ export {
2325
2326
  Bn as m,
2326
2327
  Ki as n,
2327
2328
  Y as o,
2328
- Ci as p,
2329
- Wi as q,
2330
- Gi as r,
2329
+ Pi as p,
2330
+ ui as q,
2331
+ Wi as r,
2331
2332
  Zi as s,
2332
2333
  qi as t,
2333
- mi as u,
2334
- lr as v,
2335
- vt as w,
2336
- ii as x,
2337
- Pr as y,
2338
- ji as z
2334
+ Gi as u,
2335
+ mi as v,
2336
+ lr as w,
2337
+ vt as x,
2338
+ ii as y,
2339
+ Cr as z
2339
2340
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zabi-components",
3
- "version": "2.2.4",
4
- "description": "A modern SvelteKit component library with TypeScript and Tailwind CSS",
3
+ "version": "3.0.1",
4
+ "description": "A modern Svelte 5 component library with TypeScript, Tailwind CSS, and SSR support",
5
5
  "type": "module",
6
6
  "main": "dist/index/index.js",
7
7
  "module": "dist/index/index.js",
@@ -40,11 +40,14 @@
40
40
  ],
41
41
  "keywords": [
42
42
  "svelte",
43
+ "svelte5",
43
44
  "sveltekit",
44
45
  "components",
45
46
  "ui",
46
47
  "typescript",
47
- "tailwind"
48
+ "tailwind",
49
+ "runes",
50
+ "ssr"
48
51
  ],
49
52
  "author": "Zabi Components Team",
50
53
  "license": "MIT",
@@ -81,7 +84,8 @@
81
84
  "vite": "^6.0.0"
82
85
  },
83
86
  "dependencies": {
84
- "@lucide/svelte": "^0.544.0"
87
+ "@lucide/svelte": "^0.544.0",
88
+ "zabi-components": "^3.0.0"
85
89
  },
86
90
  "peerDependencies": {
87
91
  "@sveltejs/kit": "^2.0.0",
@@ -97,4 +101,4 @@
97
101
  },
98
102
  "svelte": "./dist/index/index.js",
99
103
  "ssr": true
100
- }
104
+ }
@@ -1,78 +0,0 @@
1
- import { l as p, p as l, f as u, a as G, s as f, b as P, t as z, e as j, c as b, h as a, j as i, k as s, m as ea, n as H, o as ta, q as sa, r as ra, u as E, v as va, w as $, x as ia } from "./props-B4BdFk2B.js";
2
- import { T as F } from "./ThemeToggle-Cm25ThjX.js";
3
- var na = u('<div class="mt-2"><!></div>'), la = u('<div class="md:hidden"><div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 border-t border-gray-200"><!> <div class="pt-4"><!> <!></div></div></div>'), da = u('<nav><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><div class="flex justify-between items-center h-16"><div class="flex-shrink-0"><button type="button" class="text-xl font-bold text-gray-900"> </button></div> <div class="hidden md:block"><div class="ml-10 flex items-baseline space-x-4"><!></div></div> <div class="hidden md:block"><div class="ml-4 flex items-center space-x-4"><!> <!></div></div> <div class="md:hidden"><button type="button" class="text-gray-500 hover:text-gray-600" aria-label="Toggle menu"><span class="text-2xl">☰</span></button></div></div> <!></div></nav>');
4
- function _a(y, e) {
5
- const k = p(e, ["children", "$$slots", "$$events", "$$legacy"]), T = p(k, ["brand", "showThemeToggle", "className"]);
6
- let _ = l(e, "brand", 8, ""), x = l(e, "showThemeToggle", 8, !0), m = l(e, "className", 8, ""), d = ea(!1);
7
- function o() {
8
- ta(d, !s(d));
9
- }
10
- function g() {
11
- }
12
- var n = da();
13
- G(n, () => ({
14
- class: `bg-white border-b border-gray-200 sticky top-0 z-50 ${m() ?? ""}`,
15
- ...T
16
- }));
17
- var t = a(n), c = a(t), r = a(c), h = a(r), w = a(h), C = i(r, 2), I = a(C), J = a(I);
18
- f(J, e, "nav", {});
19
- var M = i(C, 2), K = a(M), q = a(K);
20
- f(q, e, "actions", {});
21
- var L = i(q, 2);
22
- {
23
- var Q = (v) => {
24
- F(v, {});
25
- };
26
- P(L, (v) => {
27
- x() && v(Q);
28
- });
29
- }
30
- var R = i(M, 2), S = a(R), U = i(c, 2);
31
- {
32
- var V = (v) => {
33
- var B = la(), W = a(B), D = a(W);
34
- f(D, e, "nav", {});
35
- var X = i(D, 2), O = a(X);
36
- f(O, e, "actions", {});
37
- var Y = i(O, 2);
38
- {
39
- var Z = (N) => {
40
- var A = na(), aa = a(A);
41
- F(aa, {}), b(N, A);
42
- };
43
- P(Y, (N) => {
44
- x() && N(Z);
45
- });
46
- }
47
- b(v, B);
48
- };
49
- P(U, (v) => {
50
- s(d) && v(V);
51
- });
52
- }
53
- z(() => H(w, _())), j("click", h, g), j("click", S, o), b(y, n);
54
- }
55
- var oa = u("<li><a> </a></li>"), ca = u("<nav><ul></ul></nav>");
56
- function xa(y, e) {
57
- const k = p(e, ["children", "$$slots", "$$events", "$$legacy"]), T = p(k, ["variant", "items", "currentPath"]);
58
- let _ = l(e, "variant", 8, "header"), x = l(e, "items", 24, () => []), m = l(e, "currentPath", 8, "");
59
- function d(n, t) {
60
- t.preventDefault();
61
- }
62
- var o = ca();
63
- G(o, () => ({
64
- class: `navigation navigation-${_() ?? ""}`,
65
- ...T
66
- }));
67
- var g = a(o);
68
- sa(g, 5, x, ra, (n, t) => {
69
- var c = oa(), r = a(c), h = a(r);
70
- z(() => {
71
- va(r, "href", (s(t), $(() => s(t).href))), E(r, 1, `px-3 py-2 text-sm font-medium rounded-md transition-colors ${ia(m()), s(t), $(() => m() === s(t).href ? "bg-blue-100 text-blue-700" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100") ?? ""}`), H(h, (s(t), $(() => s(t).label)));
72
- }), j("click", r, (w) => d(s(t), w)), b(n, c);
73
- }), z(() => E(g, 1, `flex ${_() === "sidebar" ? "flex-col space-y-2" : "space-x-6"}`)), b(y, o);
74
- }
75
- export {
76
- _a as N,
77
- xa as a
78
- };