fiboui 2.8.4 → 2.9.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,99 +1,99 @@
1
- var Ct = Object.defineProperty;
2
- var Et = (e, r, t) => r in e ? Ct(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
- var n = (e, r, t) => Et(e, typeof r != "symbol" ? r + "" : r, t);
4
- import s from "react";
5
- import { aX as A, aY as T, a$ as C, b2 as M, b0 as P, b4 as it, ba as bt, bd as kt, bq as It, ay as B, F as nt, br as lt, bs as Bt, bt as At, a7 as W, ac as x } from "./client-DOrZXJAN.js";
6
- import { S as D, C as F } from "./index-C0qI47Zw.js";
7
- import { B as yt } from "./index-19mPjg_D.js";
8
- import { B as Z, I as ot, a as L, A as Tt } from "./icons-DujcjAOD.js";
9
- function j(e, r) {
1
+ var Bt = Object.defineProperty;
2
+ var Tt = (e, r, t) => r in e ? Bt(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
+ var n = (e, r, t) => Tt(e, typeof r != "symbol" ? r + "" : r, t);
4
+ import s, { useSyncExternalStore as X } from "react";
5
+ import { b2 as L, b3 as P, b6 as C, b9 as M, b7 as R, bq as ot, bc as _t, bg as At, bB as Lt, L as vt, aF as T, F as lt, bC as ut, bD as Pt, bE as Rt, a9 as W, aj as N } from "./client-3NdKI2xE.js";
6
+ import { S as V, C as F } from "./index-BLEG6Nql.js";
7
+ import { B as wt } from "./index-I-MXiId0.js";
8
+ import { B as et, I as at, a as G, A as $t } from "./icons-DS8J4SFk.js";
9
+ function $(e, r) {
10
10
  if (!(typeof r != "string" || !C(r)))
11
11
  for (const t of M(r))
12
12
  e.bindSignal(t);
13
13
  }
14
- function U(e) {
15
- return typeof e != "string" ? e : C(e) ? P(e) : e;
14
+ function J(e) {
15
+ return typeof e != "string" ? e : C(e) ? R(e) : e;
16
16
  }
17
- function z(e, r) {
17
+ function j(e, r) {
18
18
  if (typeof r == "function") {
19
19
  try {
20
- z(e, r());
20
+ j(e, r());
21
21
  } catch {
22
22
  }
23
23
  return;
24
24
  }
25
25
  if (typeof r == "string") {
26
- j(e, r);
26
+ $(e, r);
27
27
  return;
28
28
  }
29
29
  if (Array.isArray(r))
30
- for (const t of r) z(e, t);
30
+ for (const t of r) j(e, t);
31
31
  }
32
- function Pt(e) {
33
- return typeof e == "string" && C(e) ? P(e) : e;
32
+ function jt(e) {
33
+ return typeof e == "string" && C(e) ? R(e) : e;
34
34
  }
35
- function X(e) {
36
- return e == null || e === !1 ? null : typeof e == "string" ? U(e) ?? e : it(e);
35
+ function Q(e) {
36
+ return e == null || e === !1 ? null : typeof e == "string" ? J(e) ?? e : ot(e);
37
37
  }
38
- const $t = {
38
+ const zt = {
39
39
  green: "var(--fibo-success, #22c55e)",
40
40
  orange: "var(--fibo-warning, #f97316)",
41
41
  red: "var(--fibo-error, #ef4444)",
42
42
  blue: "var(--fibo-info, #3b82f6)",
43
43
  purple: "var(--fibo-tertiary, #a855f7)"
44
- }, Rt = /* @__PURE__ */ new Set(["script", "iframe", "object", "embed", "link", "style"]);
45
- function jt(e) {
44
+ }, Ft = /* @__PURE__ */ new Set(["script", "iframe", "object", "embed", "link", "style"]);
45
+ function Gt(e) {
46
46
  if (typeof e != "string") return "article";
47
47
  const r = e.trim().toLowerCase();
48
- return !r || !/^[a-z][a-z0-9]*$/.test(r) || Rt.has(r) ? "article" : r;
48
+ return !r || !/^[a-z][a-z0-9]*$/.test(r) || Ft.has(r) ? "article" : r;
49
49
  }
50
- const zt = s.memo((e) => {
50
+ const Wt = s.memo((e) => {
51
51
  const {
52
52
  text: r,
53
53
  subtitle: t,
54
54
  number: i,
55
55
  accentColor: o,
56
56
  className: l,
57
- style: a,
58
- children: c,
59
- header: f,
60
- footer: g,
61
- as: S,
62
- ...p
57
+ style: c,
58
+ children: a,
59
+ header: u,
60
+ footer: p,
61
+ as: h,
62
+ ...g
63
63
  } = e;
64
- delete p.color;
65
- const h = Array.isArray(c) ? c : c == null ? [] : [c], u = p.onClick, _ = p.onKeyDown, d = typeof u == "function", k = [
64
+ delete g.color;
65
+ const _ = Array.isArray(a) ? a : a == null ? [] : [a], m = g.onClick, b = g.onKeyDown, y = typeof m == "function", I = [
66
66
  "fibo-card",
67
67
  "rounded-[24px]",
68
68
  "transition-shadow",
69
69
  "duration-300",
70
70
  "p-4",
71
- d ? "fibo-clickable" : "",
71
+ y ? "fibo-clickable" : "",
72
72
  l
73
- ].filter(Boolean).join(" "), $ = {
73
+ ].filter(Boolean).join(" "), A = {
74
74
  ...o ? {
75
75
  borderLeftWidth: 4,
76
76
  borderLeftStyle: "solid",
77
77
  borderLeftColor: o
78
78
  } : {},
79
- ...a
80
- }, v = X(f), E = X(g);
79
+ ...c
80
+ }, w = Q(u), E = Q(p);
81
81
  return s.createElement(
82
- jt(S),
82
+ Gt(h),
83
83
  {
84
- ...p,
85
- className: k,
86
- style: $,
87
- onClick: u,
88
- ...d ? {
84
+ ...g,
85
+ className: I,
86
+ style: A,
87
+ onClick: m,
88
+ ...y ? {
89
89
  role: "button",
90
- tabIndex: p.tabIndex ?? 0,
91
- onKeyDown: (b) => {
92
- _ == null || _(b), !b.defaultPrevented && b.target === b.currentTarget && (b.key === "Enter" || b.key === " ") && (b.preventDefault(), b.currentTarget.click());
90
+ tabIndex: g.tabIndex ?? 0,
91
+ onKeyDown: (f) => {
92
+ b == null || b(f), !f.defaultPrevented && f.target === f.currentTarget && (f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.currentTarget.click());
93
93
  }
94
94
  } : null
95
95
  },
96
- v ? s.createElement("header", { className: "fibo-card-header" }, v) : null,
96
+ w ? s.createElement("header", { className: "fibo-card-header" }, w) : null,
97
97
  s.createElement(
98
98
  "div",
99
99
  { className: "flex flex-col gap-2" },
@@ -118,12 +118,12 @@ const zt = s.memo((e) => {
118
118
  },
119
119
  t
120
120
  ),
121
- ...h
121
+ ..._
122
122
  ),
123
123
  E ? s.createElement("footer", { className: "fibo-card-footer" }, E) : null
124
124
  );
125
125
  });
126
- class Gt extends T {
126
+ class Dt extends P {
127
127
  constructor() {
128
128
  super(...arguments);
129
129
  n(this, "_text", "");
@@ -135,84 +135,84 @@ class Gt extends T {
135
135
  n(this, "_as");
136
136
  }
137
137
  text(t) {
138
- return this._text = t, j(this, t), this;
138
+ return this._text = t, $(this, t), this;
139
139
  }
140
140
  /** Alias of `.text()` — same slot as Banner/ListTile/Alert `.title()`. */
141
141
  title(t) {
142
142
  return this.text(t);
143
143
  }
144
144
  subtitle(t) {
145
- return this._subtitle = t, j(this, t), this;
145
+ return this._subtitle = t, $(this, t), this;
146
146
  }
147
147
  number(t) {
148
- return this._number = t, j(this, t), this;
148
+ return this._number = t, $(this, t), this;
149
149
  }
150
150
  children(t) {
151
- return z(this, t), super.children(t);
151
+ return j(this, t), super.children(t);
152
152
  }
153
153
  header(t) {
154
- return this._header = t, z(this, t), this;
154
+ return this._header = t, j(this, t), this;
155
155
  }
156
156
  footer(t) {
157
- return this._footer = t, z(this, t), this;
157
+ return this._footer = t, j(this, t), this;
158
158
  }
159
159
  as(t) {
160
160
  return this._as = String(t), this;
161
161
  }
162
162
  props(t) {
163
- return t && (j(this, t.text), j(this, t.title), j(this, t.subtitle), j(this, t.number), z(this, t.header), z(this, t.footer), "children" in t && z(this, t.children)), super.props(t);
163
+ return t && ($(this, t.text), $(this, t.title), $(this, t.subtitle), $(this, t.number), j(this, t.header), j(this, t.footer), "children" in t && j(this, t.children)), super.props(t);
164
164
  }
165
165
  color(t) {
166
166
  return this._color = t, this;
167
167
  }
168
168
  build() {
169
- const t = this._color ? $t[this._color] : void 0, {
169
+ const t = this._color ? zt[this._color] : void 0, {
170
170
  className: i,
171
171
  text: o,
172
172
  title: l,
173
- subtitle: a,
174
- number: c,
175
- header: f,
176
- footer: g,
177
- as: S,
178
- ...p
179
- } = this._props, h = [...this._classNames, i].filter(Boolean).join(" "), u = {
180
- text: U(o ?? l ?? this._text),
181
- subtitle: U(a ?? this._subtitle),
182
- number: U(c ?? this._number),
183
- header: X(this._header ?? f),
184
- footer: X(this._footer ?? g),
185
- as: this._as ?? S,
173
+ subtitle: c,
174
+ number: a,
175
+ header: u,
176
+ footer: p,
177
+ as: h,
178
+ ...g
179
+ } = this._props, _ = [...this._classNames, i].filter(Boolean).join(" "), m = {
180
+ text: J(o ?? l ?? this._text),
181
+ subtitle: J(c ?? this._subtitle),
182
+ number: J(a ?? this._number),
183
+ header: Q(this._header ?? u),
184
+ footer: Q(this._footer ?? p),
185
+ as: this._as ?? h,
186
186
  accentColor: t,
187
187
  style: this.getStyle(),
188
- children: this.processChildren().map(Pt),
189
- ...p,
190
- className: h
188
+ children: this.processChildren().map(jt),
189
+ ...g,
190
+ className: _
191
191
  };
192
- return s.createElement(zt, u);
192
+ return s.createElement(Wt, m);
193
193
  }
194
194
  }
195
- const J = A(Gt);
195
+ const Z = L(Dt);
196
196
  function H(e, r) {
197
197
  if (!(typeof r != "string" || !C(r)))
198
198
  for (const t of M(r))
199
199
  e.bindSignal(t);
200
200
  }
201
201
  function q(e) {
202
- return typeof e != "string" ? e : C(e) ? P(e) : e;
202
+ return typeof e != "string" ? e : C(e) ? R(e) : e;
203
203
  }
204
- function V(e) {
205
- return typeof e == "string" && C(e) ? P(e) : e;
204
+ function U(e) {
205
+ return typeof e == "string" && C(e) ? R(e) : e;
206
206
  }
207
207
  function Y(e, r) {
208
- return typeof r == "string" ? (H(e, r), r) : it(r);
208
+ return typeof r == "string" ? (H(e, r), r) : ot(r);
209
209
  }
210
- const Ft = 'a, button, input, textarea, select, [role="button"], [role="switch"], [role="checkbox"], [role="menuitem"]';
211
- function ct(e) {
210
+ const Vt = 'a, button, input, textarea, select, [role="button"], [role="switch"], [role="checkbox"], [role="menuitem"]';
211
+ function dt(e) {
212
212
  const r = e.target;
213
- r != null && r.closest(Ft) && e.stopPropagation();
213
+ r != null && r.closest(Vt) && e.stopPropagation();
214
214
  }
215
- const Lt = () => s.createElement(
215
+ const Ht = () => s.createElement(
216
216
  "svg",
217
217
  {
218
218
  width: 12,
@@ -224,31 +224,31 @@ const Lt = () => s.createElement(
224
224
  "aria-hidden": !0
225
225
  },
226
226
  s.createElement("path", { d: "M9 5l7 7-7 7" })
227
- ), Wt = s.memo((e) => {
227
+ ), Kt = s.memo((e) => {
228
228
  const {
229
229
  leading: r,
230
230
  title: t,
231
231
  subtitle: i,
232
232
  trailing: o,
233
233
  chevron: l,
234
- divider: a,
235
- dividerColor: c,
236
- onPress: f,
237
- href: g,
238
- disabled: S,
239
- dense: p,
240
- onTap: h,
241
- className: u,
242
- style: _,
243
- ...d
244
- } = e, k = _ || {}, $ = k.padding ?? (p ? "8px 0" : "14px 0"), v = d.onClick, E = d.onKeyDown, b = typeof f == "function" ? f : typeof h == "function" ? h : void 0, m = !!S, N = typeof g == "string" ? g.trim() : "", y = N && !bt(N) ? N : void 0, w = !!y && !m, R = typeof b == "function" || typeof v == "function" || w, wt = R && !m, vt = typeof t == "string" ? s.createElement(
234
+ divider: c,
235
+ dividerColor: a,
236
+ onPress: u,
237
+ href: p,
238
+ disabled: h,
239
+ dense: g,
240
+ onTap: _,
241
+ className: m,
242
+ style: b,
243
+ ...y
244
+ } = e, I = b || {}, A = I.padding ?? (g ? "8px 0" : "14px 0"), w = y.onClick, E = y.onKeyDown, f = typeof u == "function" ? u : typeof _ == "function" ? _ : void 0, x = !!h, d = typeof p == "string" ? p.trim() : "", S = d && !_t(d) ? d : void 0, v = !!S && !x, k = typeof f == "function" || typeof w == "function" || v, D = k && !x, xt = typeof t == "string" ? s.createElement(
245
245
  "span",
246
246
  {
247
247
  className: "fibo-list-tile-title",
248
248
  style: { fontSize: 11, letterSpacing: "0.06em", lineHeight: 1.3, margin: 0 }
249
249
  },
250
- V(t)
251
- ) : t, St = typeof i == "string" ? s.createElement(
250
+ U(t)
251
+ ) : t, Et = typeof i == "string" ? s.createElement(
252
252
  "span",
253
253
  {
254
254
  className: "fibo-list-tile-subtitle",
@@ -260,41 +260,41 @@ const Lt = () => s.createElement(
260
260
  color: "#9a9a9a"
261
261
  }
262
262
  },
263
- V(i)
264
- ) : i, Q = V(r), O = V(o), at = d.target, Nt = w && at && String(at).toLowerCase() === "_blank" ? kt(d.rel, "noopener noreferrer") : d.rel, xt = (I) => {
265
- if (m) {
266
- I.preventDefault(), I.stopPropagation();
263
+ U(i)
264
+ ) : i, tt = U(r), O = U(o), ct = y.target, kt = v && ct && String(ct).toLowerCase() === "_blank" ? At(y.rel, "noopener noreferrer") : y.rel, It = (B) => {
265
+ if (x) {
266
+ B.preventDefault(), B.stopPropagation();
267
267
  return;
268
268
  }
269
- b == null || b(), v == null || v(I);
270
- }, G = {
271
- className: It("fibo-list-tile flex flex-row items-center w-full", u),
269
+ f == null || f(), w == null || w(B);
270
+ }, z = {
271
+ className: Lt("fibo-list-tile flex flex-row items-center w-full", m),
272
272
  style: {
273
- padding: $,
274
- borderBottom: a ? `1px solid ${c || "#3b3b3b"}` : "none",
275
- cursor: m ? "not-allowed" : wt ? "pointer" : void 0,
276
- opacity: m ? 0.6 : void 0,
277
- pointerEvents: m ? "none" : void 0,
278
- ...k
273
+ padding: A,
274
+ borderBottom: c ? `1px solid ${a || "#3b3b3b"}` : "none",
275
+ cursor: x ? "not-allowed" : D ? "pointer" : void 0,
276
+ opacity: x ? 0.6 : void 0,
277
+ pointerEvents: x ? "none" : void 0,
278
+ ...I
279
279
  },
280
- ...d,
281
- rel: Nt,
282
- onClick: R || m ? xt : v
280
+ ...y,
281
+ rel: kt,
282
+ onClick: k || x ? It : w
283
283
  };
284
- return w && (G.href = y), m && (G["aria-disabled"] = !0, G.tabIndex = d.tabIndex ?? -1), !w && R && (G.role = "button", m || (G.tabIndex = d.tabIndex ?? 0, G.onKeyDown = (I) => {
285
- E == null || E(I), !I.defaultPrevented && I.target === I.currentTarget && (I.key === "Enter" || I.key === " ") && (I.preventDefault(), I.currentTarget.click());
284
+ return v && (z.href = S), x && (z["aria-disabled"] = !0, z.tabIndex = y.tabIndex ?? -1), !v && k && (z.role = "button", x || (z.tabIndex = y.tabIndex ?? 0, z.onKeyDown = (B) => {
285
+ E == null || E(B), !B.defaultPrevented && B.target === B.currentTarget && (B.key === "Enter" || B.key === " ") && (B.preventDefault(), B.currentTarget.click());
286
286
  })), s.createElement(
287
- w ? "a" : "div",
288
- G,
289
- Q != null && Q !== !1 ? s.createElement(
287
+ v ? "a" : "div",
288
+ z,
289
+ tt != null && tt !== !1 ? s.createElement(
290
290
  "div",
291
291
  {
292
292
  key: "leading",
293
293
  className: "fibo-list-tile-leading shrink-0 flex items-center",
294
294
  style: { color: "#9a9a9a", marginRight: 12 },
295
- onClick: ct
295
+ onClick: dt
296
296
  },
297
- Q
297
+ tt
298
298
  ) : null,
299
299
  s.createElement(
300
300
  "div",
@@ -302,8 +302,8 @@ const Lt = () => s.createElement(
302
302
  key: "body",
303
303
  className: "fibo-list-tile-body flex-1 min-w-0 flex flex-col justify-center"
304
304
  },
305
- vt,
306
- St
305
+ xt,
306
+ Et
307
307
  ),
308
308
  O != null && O !== !1 ? s.createElement(
309
309
  "div",
@@ -311,7 +311,7 @@ const Lt = () => s.createElement(
311
311
  key: "trailing",
312
312
  className: "fibo-list-tile-trailing shrink-0 flex items-center",
313
313
  style: { color: "#9a9a9a", marginLeft: 12 },
314
- onClick: ct
314
+ onClick: dt
315
315
  },
316
316
  O
317
317
  ) : null,
@@ -322,11 +322,11 @@ const Lt = () => s.createElement(
322
322
  className: "fibo-list-tile-chevron shrink-0 flex items-center",
323
323
  style: { color: "#9a9a9a", marginLeft: O ? 8 : 0 }
324
324
  },
325
- s.createElement(Lt)
325
+ s.createElement(Ht)
326
326
  ) : null
327
327
  );
328
328
  });
329
- class Dt extends T {
329
+ class Mt extends P {
330
330
  constructor() {
331
331
  super(...arguments);
332
332
  n(this, "_leading");
@@ -384,44 +384,44 @@ class Dt extends T {
384
384
  trailing: i,
385
385
  title: o,
386
386
  subtitle: l,
387
- onPress: a,
388
- onTap: c,
389
- href: f,
390
- disabled: g,
391
- dense: S,
392
- ...p
393
- } = this._props, h = this._title !== void 0 ? this._title : o, u = this._subtitle !== void 0 ? this._subtitle : l, _ = this._leading !== void 0 ? this._leading : t, d = this._trailing !== void 0 ? this._trailing : i;
394
- return typeof h == "string" && H(this, h), typeof u == "string" && H(this, u), typeof _ == "string" && H(this, _), typeof d == "string" && H(this, d), s.createElement(Wt, {
395
- ...p,
396
- leading: typeof _ == "string" ? q(_) : _,
397
- title: typeof h == "string" ? q(h) : h,
398
- subtitle: typeof u == "string" ? q(u) : u,
399
- trailing: typeof d == "string" ? q(d) : d,
387
+ onPress: c,
388
+ onTap: a,
389
+ href: u,
390
+ disabled: p,
391
+ dense: h,
392
+ ...g
393
+ } = this._props, _ = this._title !== void 0 ? this._title : o, m = this._subtitle !== void 0 ? this._subtitle : l, b = this._leading !== void 0 ? this._leading : t, y = this._trailing !== void 0 ? this._trailing : i;
394
+ return typeof _ == "string" && H(this, _), typeof m == "string" && H(this, m), typeof b == "string" && H(this, b), typeof y == "string" && H(this, y), s.createElement(Kt, {
395
+ ...g,
396
+ leading: typeof b == "string" ? q(b) : b,
397
+ title: typeof _ == "string" ? q(_) : _,
398
+ subtitle: typeof m == "string" ? q(m) : m,
399
+ trailing: typeof y == "string" ? q(y) : y,
400
400
  chevron: this._chevron,
401
401
  divider: this._divider,
402
402
  dividerColor: this._dividerColor,
403
- onPress: this._onPress ?? a ?? c,
404
- href: this._href ?? f,
405
- disabled: this._disabled || !!g,
406
- dense: this._dense || !!S,
403
+ onPress: this._onPress ?? c ?? a,
404
+ href: this._href ?? u,
405
+ disabled: this._disabled || !!p,
406
+ dense: this._dense || !!h,
407
407
  className: this.getClassName(),
408
408
  style: this.getStyle()
409
409
  });
410
410
  }
411
411
  }
412
- const je = A(Dt);
413
- function Ht(e, r) {
412
+ const Ve = L(Mt);
413
+ function Ot(e, r) {
414
414
  if (!(typeof r != "string" || !C(r)))
415
415
  for (const t of M(r))
416
416
  e.bindSignal(t);
417
417
  }
418
- function Kt(e) {
419
- return typeof e != "string" ? e : C(e) ? P(e) : e;
418
+ function qt(e) {
419
+ return typeof e != "string" ? e : C(e) ? R(e) : e;
420
420
  }
421
- function Mt(e) {
421
+ function Ut(e) {
422
422
  return e != null && typeof e == "object" && !Array.isArray(e) && typeof e.subscribe == "function" && "value" in e;
423
423
  }
424
- function Ot(e, r) {
424
+ function Yt(e, r) {
425
425
  if (e != null && typeof e == "object") {
426
426
  const t = e;
427
427
  if (t._id != null && t._id !== "") return t._id;
@@ -430,19 +430,19 @@ function Ot(e, r) {
430
430
  }
431
431
  return r;
432
432
  }
433
- function qt(e, r) {
433
+ function Jt(e, r) {
434
434
  return typeof r.render == "function" ? r.render(e) : e == null || typeof e != "object" || r.accessor == null || r.accessor === "" ? null : e[r.accessor];
435
435
  }
436
- function Vt(e) {
437
- return typeof e == "string" && C(e) ? s.createElement(nt, {
436
+ function Qt(e) {
437
+ return typeof e == "string" && C(e) ? s.createElement(lt, {
438
438
  as: "span",
439
- compute: () => P(e)
440
- }) : it(e);
439
+ compute: () => R(e)
440
+ }) : ot(e);
441
441
  }
442
- function ut(e, r) {
442
+ function ht(e, r) {
443
443
  return e.sortable === !1 ? !1 : e.sortable === !0 ? !0 : r;
444
444
  }
445
- function dt(e, r) {
445
+ function ft(e, r) {
446
446
  if (e != null && typeof e == "object" && r.accessor != null && r.accessor !== "") {
447
447
  const i = e[r.accessor];
448
448
  if (i == null || typeof i == "string" || typeof i == "number" || typeof i == "boolean")
@@ -452,50 +452,100 @@ function dt(e, r) {
452
452
  const t = r.render(e);
453
453
  return t == null || typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? t ?? null : null;
454
454
  }
455
- function Yt(e, r) {
455
+ function Xt(e, r) {
456
456
  return e == null && r == null ? 0 : e == null ? 1 : r == null ? -1 : typeof e == "number" && typeof r == "number" ? e - r : typeof e == "boolean" && typeof r == "boolean" ? Number(e) - Number(r) : String(e).localeCompare(String(r), void 0, { numeric: !0, sensitivity: "base" });
457
457
  }
458
- function ht(e, r) {
458
+ function mt(e, r) {
459
459
  return !e || e.index !== r ? { index: r, dir: "ascending" } : { index: r, dir: e.dir === "ascending" ? "descending" : "ascending" };
460
460
  }
461
- const Ut = s.memo((e) => {
461
+ function Zt(e, r, t) {
462
+ return `group transition-all duration-200 border-b border-gray-50 last:border-b-0 ${r && t % 2 !== 0 ? "bg-gray-50/30" : "bg-transparent"} ${e === "clean" ? "hover:bg-white hover:shadow-md hover:scale-[1.002] hover:z-10 relative" : "hover:bg-gray-50/50"}`;
463
+ }
464
+ function St(e, r, t, i, o, l) {
465
+ return s.createElement(
466
+ "tr",
467
+ {
468
+ key: Yt(e, r),
469
+ className: Zt(i, o, r)
470
+ },
471
+ t.map(
472
+ (c, a) => s.createElement(
473
+ "td",
474
+ {
475
+ key: a,
476
+ style: {
477
+ textAlign: c.align || "left",
478
+ padding: l,
479
+ borderTop: i === "default" ? "1px solid #F3F4F6" : "none"
480
+ },
481
+ className: "text-sm text-gray-900 font-medium"
482
+ },
483
+ Qt(Jt(e, c))
484
+ )
485
+ )
486
+ );
487
+ }
488
+ const te = s.memo(function(r) {
489
+ X(
490
+ (i) => r.list.subscribeItem(r.id, i),
491
+ () => r.list.itemVersion(r.id),
492
+ () => r.list.itemVersion(r.id)
493
+ );
494
+ const t = r.list.find(r.id);
495
+ return t == null ? null : St(
496
+ t,
497
+ r.index,
498
+ r.columns,
499
+ r.variant,
500
+ r.striped,
501
+ r.padding
502
+ );
503
+ }, (e, r) => e.list === r.list && e.id === r.id && e.columns === r.columns && e.variant === r.variant && e.striped === r.striped && e.padding === r.padding), ee = s.memo((e) => {
462
504
  const {
463
505
  data: r,
464
- columns: t,
465
- variant: i,
466
- density: o,
467
- striped: l,
506
+ liveList: t,
507
+ columns: i,
508
+ variant: o,
509
+ density: l,
510
+ striped: c,
468
511
  width: a,
469
- sortable: c,
470
- className: f,
471
- style: g,
472
- children: S,
473
- ...p
474
- } = e, h = !!c, [u, _] = s.useState(null), d = {
512
+ sortable: u,
513
+ className: p,
514
+ style: h,
515
+ children: g,
516
+ ..._
517
+ } = e, m = !!u, [b, y] = s.useState(null);
518
+ X(
519
+ (d) => t ? t.subscribeStructure(d) : () => {
520
+ },
521
+ () => t ? t.structureVersion() : 0,
522
+ () => t ? t.structureVersion() : 0
523
+ );
524
+ const I = {
475
525
  width: "100%",
476
526
  borderCollapse: "separate",
477
527
  borderSpacing: "0",
478
- ...g
528
+ ...h
479
529
  };
480
- a && (d.width = typeof a == "number" ? `${a}px` : a);
481
- const k = i === "clean" ? ["bg-white", "rounded-2xl", "border", "border-gray-100", "overflow-hidden", "shadow-sm"] : [], v = {
530
+ a && (I.width = typeof a == "number" ? `${a}px` : a);
531
+ const A = o === "clean" ? ["bg-white", "rounded-2xl", "border", "border-gray-100", "overflow-hidden", "shadow-sm"] : [], E = {
482
532
  compact: "10px 16px",
483
533
  standard: "16px 24px",
484
534
  relaxed: "24px 32px"
485
- }[o], E = Array.isArray(r) ? r : [], b = s.useMemo(() => {
486
- if (!u) return E;
487
- const m = t == null ? void 0 : t[u.index];
488
- if (!m || !ut(m, h)) return E;
489
- const N = u.dir === "ascending" ? 1 : -1;
490
- return E.map((y, w) => ({ row: y, index: w })).sort((y, w) => {
491
- const R = Yt(dt(y.row, m), dt(w.row, m));
492
- return R === 0 ? y.index - w.index : N * R;
493
- }).map((y) => y.row);
494
- }, [E, t, u, h]);
495
- return B().className(f).classNames(k).props(p).children(
535
+ }[l], f = t ? t.value : Array.isArray(r) ? r : [], x = s.useMemo(() => {
536
+ if (!b) return f;
537
+ const d = i == null ? void 0 : i[b.index];
538
+ if (!d || !ht(d, m)) return f;
539
+ const S = b.dir === "ascending" ? 1 : -1;
540
+ return f.map((v, k) => ({ row: v, index: k })).sort((v, k) => {
541
+ const D = Xt(ft(v.row, d), ft(k.row, d));
542
+ return D === 0 ? v.index - k.index : S * D;
543
+ }).map((v) => v.row);
544
+ }, [f, i, b, m]);
545
+ return T().className(p).classNames(A).props(_).children(
496
546
  s.createElement("table", {
497
- style: d,
498
- className: ["fibo-table", f].filter(Boolean).join(" ")
547
+ style: I,
548
+ className: ["fibo-table", p].filter(Boolean).join(" ")
499
549
  }, [
500
550
  s.createElement(
501
551
  "thead",
@@ -503,65 +553,53 @@ const Ut = s.memo((e) => {
503
553
  s.createElement(
504
554
  "tr",
505
555
  {},
506
- t.map((m, N) => {
507
- const y = ut(m, h);
556
+ i.map((d, S) => {
557
+ const v = ht(d, m);
508
558
  return s.createElement("th", {
509
- key: String(m.accessor ?? N),
559
+ key: String(d.accessor ?? S),
510
560
  scope: "col",
511
561
  style: {
512
- textAlign: m.align || "left",
513
- padding: v,
514
- width: m.width,
515
- cursor: y ? "pointer" : void 0
562
+ textAlign: d.align || "left",
563
+ padding: E,
564
+ width: d.width,
565
+ cursor: v ? "pointer" : void 0
516
566
  },
517
567
  className: "text-xs font-bold text-gray-400 uppercase tracking-widest",
518
- "aria-sort": y ? (u == null ? void 0 : u.index) === N ? u.dir : "none" : void 0,
519
- tabIndex: y ? 0 : void 0,
520
- onClick: y ? () => _((w) => ht(w, N)) : void 0,
521
- onKeyDown: y ? (w) => {
522
- w.key !== "Enter" && w.key !== " " || (w.preventDefault(), _((R) => ht(R, N)));
568
+ "aria-sort": v ? (b == null ? void 0 : b.index) === S ? b.dir : "none" : void 0,
569
+ tabIndex: v ? 0 : void 0,
570
+ onClick: v ? () => y((k) => mt(k, S)) : void 0,
571
+ onKeyDown: v ? (k) => {
572
+ k.key !== "Enter" && k.key !== " " || (k.preventDefault(), y((D) => mt(D, S)));
523
573
  } : void 0
524
- }, Kt(m.header) ?? m.header);
574
+ }, qt(d.header) ?? d.header);
525
575
  })
526
576
  )
527
577
  ),
528
578
  s.createElement(
529
579
  "tbody",
530
580
  { key: "tbody" },
531
- b.map(
532
- (m, N) => s.createElement(
533
- "tr",
534
- {
535
- key: Ot(m, N),
536
- className: `group transition-all duration-200 border-b border-gray-50 last:border-b-0 ${l && N % 2 !== 0 ? "bg-gray-50/30" : "bg-transparent"} ${i === "clean" ? "hover:bg-white hover:shadow-md hover:scale-[1.002] hover:z-10 relative" : "hover:bg-gray-50/50"}`
537
- },
538
- t.map(
539
- (y, w) => s.createElement(
540
- "td",
541
- {
542
- key: w,
543
- style: {
544
- textAlign: y.align || "left",
545
- padding: v,
546
- borderTop: i === "default" ? "1px solid #F3F4F6" : "none"
547
- },
548
- className: "text-sm text-gray-900 font-medium"
549
- },
550
- Vt(qt(m, y))
551
- )
552
- )
553
- )
554
- )
581
+ x.map((d, S) => t && d && typeof d._id == "string" && d._id.length > 0 ? s.createElement(te, {
582
+ key: d._id,
583
+ list: t,
584
+ id: d._id,
585
+ index: S,
586
+ columns: i,
587
+ variant: o,
588
+ striped: !!c,
589
+ padding: E
590
+ }) : St(d, S, i, o, !!c, E))
555
591
  )
556
592
  ])
557
593
  ).build();
558
594
  });
559
- class Xt extends T {
595
+ class re extends P {
560
596
  constructor() {
561
597
  super(...arguments);
562
598
  n(this, "_data", []);
563
- /** Live source (`listSignal` / `signal`). Read on each rebuild. */
599
+ /** Plain `signal(array)`. Read on each rebuild. */
564
600
  n(this, "_source");
601
+ /** `listSignal`. Rows subscribe by `_id`. */
602
+ n(this, "_liveList");
565
603
  n(this, "_columns", []);
566
604
  n(this, "_variant", "clean");
567
605
  n(this, "_density", "standard");
@@ -570,11 +608,11 @@ class Xt extends T {
570
608
  n(this, "_sortable", !1);
571
609
  }
572
610
  data(t) {
573
- return Mt(t) ? (this._source = t, this.bindSignal(t), this) : (this._source = void 0, this._data = t, this);
611
+ return t instanceof vt ? (this._liveList = t, this._source = void 0, this) : (this._liveList = void 0, Ut(t) ? (this._source = t, this.bindSignal(t), this) : (this._source = void 0, this._data = t, this));
574
612
  }
575
613
  columns(t) {
576
614
  this._columns = t;
577
- for (const i of t) Ht(this, i.header);
615
+ for (const i of t) Ot(this, i.header);
578
616
  return this;
579
617
  }
580
618
  variant(t) {
@@ -594,8 +632,9 @@ class Xt extends T {
594
632
  return this._sortable = t, this;
595
633
  }
596
634
  build() {
597
- const t = {
598
- data: this._source ? this._source.value : this._data,
635
+ const t = this._liveList, i = {
636
+ data: t ? [] : this._source ? this._source.value : this._data,
637
+ liveList: t,
599
638
  columns: this._columns,
600
639
  variant: this._variant,
601
640
  density: this._density,
@@ -606,22 +645,22 @@ class Xt extends T {
606
645
  style: this.getStyle(),
607
646
  ...this._props
608
647
  };
609
- return s.createElement(Ut, t);
648
+ return s.createElement(ee, i);
610
649
  }
611
650
  }
612
- const ze = A(Xt);
613
- function ft(e, r) {
651
+ const He = L(re);
652
+ function pt(e, r) {
614
653
  if (!(typeof r != "string" || !C(r)))
615
654
  for (const t of M(r))
616
655
  e.bindSignal(t);
617
656
  }
618
- function Jt(e) {
619
- return typeof e != "string" ? e : C(e) ? P(e) : e;
657
+ function ie(e) {
658
+ return typeof e != "string" ? e : C(e) ? R(e) : e;
620
659
  }
621
- function Qt(e) {
660
+ function se(e) {
622
661
  return e != null && typeof e == "object" && !Array.isArray(e) && typeof e.subscribe == "function" && "value" in e;
623
662
  }
624
- function Zt(e, r) {
663
+ function ne(e, r) {
625
664
  if (e != null && typeof e == "object") {
626
665
  const t = e;
627
666
  if (t._id != null && t._id !== "") return t._id;
@@ -630,16 +669,16 @@ function Zt(e, r) {
630
669
  }
631
670
  return r;
632
671
  }
633
- function te(e) {
672
+ function oe(e) {
634
673
  const r = e.title;
635
674
  return typeof r == "string" ? r : "";
636
675
  }
637
- function ee(e, r, t) {
638
- let i = Zt(e, r);
676
+ function le(e, r, t) {
677
+ let i = ne(e, r);
639
678
  const o = String(i);
640
679
  return t.has(o) && (i = `${o}::${r}`), t.add(String(i)), i;
641
680
  }
642
- const re = {
681
+ const ae = {
643
682
  position: "absolute",
644
683
  width: 1,
645
684
  height: 1,
@@ -650,7 +689,7 @@ const re = {
650
689
  whiteSpace: "nowrap",
651
690
  border: 0
652
691
  };
653
- function se(e, r) {
692
+ function ce(e, r) {
654
693
  if (C(e))
655
694
  return s.createElement(
656
695
  "button",
@@ -660,11 +699,11 @@ function se(e, r) {
660
699
  className: "relative shrink-0 opacity-80 text-sm leading-none",
661
700
  onClick: r
662
701
  },
663
- s.createElement(nt, {
702
+ s.createElement(lt, {
664
703
  key: "lbl",
665
704
  as: "span",
666
- style: re,
667
- compute: () => `Remove ${P(e) || "tag"}`
705
+ style: ae,
706
+ compute: () => `Remove ${R(e) || "tag"}`
668
707
  }),
669
708
  s.createElement("span", { key: "x", "aria-hidden": !0 }, "×")
670
709
  );
@@ -681,57 +720,86 @@ function se(e, r) {
681
720
  "×"
682
721
  );
683
722
  }
684
- const ie = s.memo((e) => {
685
- const { items: r, className: t, style: i, onRemove: o, ...l } = e, a = typeof o == "function", c = /* @__PURE__ */ new Set(), f = (Array.isArray(r) ? r : []).flatMap((g, S) => {
686
- if (g == null || typeof g != "object") return [];
687
- const p = te(g), h = ee(g, S, c), u = a ? se(p, (d) => {
688
- d.stopPropagation(), o(g, S);
689
- }) : null;
690
- if (C(p)) {
691
- const d = s.createElement(nt, {
692
- key: a ? "t" : h,
693
- as: "span",
694
- className: a ? void 0 : "fibo-tag",
695
- compute: () => P(p)
696
- });
697
- return a ? [
698
- s.createElement("span", { key: h, className: "fibo-tag" }, d, u)
699
- ] : [d];
723
+ function Nt(e, r, t, i) {
724
+ const o = oe(e), l = typeof i == "function", c = l ? ce(o, (u) => {
725
+ u.stopPropagation(), i(e, r);
726
+ }) : null;
727
+ if (C(o)) {
728
+ const u = s.createElement(lt, {
729
+ key: l ? "t" : t,
730
+ as: "span",
731
+ className: l ? void 0 : "fibo-tag",
732
+ compute: () => R(o)
733
+ });
734
+ return l ? s.createElement("span", { key: t, className: "fibo-tag" }, u, c) : u;
735
+ }
736
+ const a = ie(o) ?? o;
737
+ return l ? s.createElement("span", { key: t, className: "fibo-tag" }, a, c) : s.createElement("span", { key: t, className: "fibo-tag" }, a);
738
+ }
739
+ const ue = s.memo(function(r) {
740
+ X(
741
+ (i) => r.list.subscribeItem(r.id, i),
742
+ () => r.list.itemVersion(r.id),
743
+ () => r.list.itemVersion(r.id)
744
+ );
745
+ const t = r.list.find(r.id);
746
+ return t == null || typeof t != "object" ? null : Nt(t, r.index, r.id, r.onRemove);
747
+ }, (e, r) => e.list === r.list && e.id === r.id && e.onRemove === r.onRemove), de = s.memo((e) => {
748
+ const { items: r, liveList: t, className: i, style: o, onRemove: l, ...c } = e, a = /* @__PURE__ */ new Set();
749
+ X(
750
+ (h) => t ? t.subscribeStructure(h) : () => {
751
+ },
752
+ () => t ? t.structureVersion() : 0,
753
+ () => t ? t.structureVersion() : 0
754
+ );
755
+ const p = (t ? t.value : Array.isArray(r) ? r : []).flatMap((h, g) => {
756
+ if (h == null || typeof h != "object") return [];
757
+ if (t && typeof h._id == "string" && h._id.length > 0) {
758
+ const m = h._id;
759
+ return [
760
+ s.createElement(ue, {
761
+ key: m,
762
+ list: t,
763
+ id: m,
764
+ index: g,
765
+ onRemove: l
766
+ })
767
+ ];
700
768
  }
701
- const _ = Jt(p) ?? p;
702
- return a ? [
703
- s.createElement("span", { key: h, className: "fibo-tag" }, _, u)
704
- ] : [
705
- s.createElement("span", { key: h, className: "fibo-tag" }, _)
706
- ];
769
+ const _ = le(h, g, a);
770
+ return [Nt(h, g, _, l)];
707
771
  });
708
772
  return s.createElement(
709
773
  "div",
710
774
  {
711
- className: t,
712
- style: i,
713
- ...l
775
+ className: i,
776
+ style: o,
777
+ ...c
714
778
  },
715
- ...f
779
+ ...p
716
780
  );
717
781
  });
718
- class ne extends T {
782
+ class he extends P {
719
783
  constructor(t = []) {
720
784
  super();
721
785
  n(this, "_items", []);
722
- /** Live source (`listSignal` / `signal`). Read on each rebuild. */
786
+ /** Plain `signal(array)`. Read on each rebuild. */
723
787
  n(this, "_source");
788
+ /** `listSignal`. Tags subscribe by `_id`. */
789
+ n(this, "_liveList");
724
790
  this.items(t);
725
791
  }
726
792
  items(t) {
727
- if (Qt(t)) {
793
+ if (t instanceof vt)
794
+ return this._liveList = t, this._source = void 0, this;
795
+ if (this._liveList = void 0, se(t)) {
728
796
  this._source = t, this.bindSignal(t);
729
797
  for (const i of Array.isArray(t.value) ? t.value : [])
730
- ft(this, i == null ? void 0 : i.title);
798
+ pt(this, i == null ? void 0 : i.title);
731
799
  return this;
732
800
  }
733
801
  this._source = void 0, this._items = Array.isArray(t) ? t : [];
734
- for (const i of this._items) ft(this, i == null ? void 0 : i.title);
802
+ for (const i of this._items) pt(this, i == null ? void 0 : i.title);
735
803
  return this;
736
804
  }
737
805
  build() {
@@ -739,11 +807,12 @@ class ne extends T {
739
807
  className: i,
740
808
  style: o,
741
809
  items: l,
742
- ...a
743
- } = this._props ?? {}, c = typeof i == "string" ? i : "", f = {
744
- ...a,
745
- items: this._source ? this._source.value : this._items,
746
- className: [t, c].filter(Boolean).join(" "),
810
+ ...c
811
+ } = this._props ?? {}, a = typeof i == "string" ? i : "", u = this._liveList, p = {
812
+ ...c,
813
+ items: u ? [] : this._source ? this._source.value : this._items,
814
+ liveList: u,
815
+ className: [t, a].filter(Boolean).join(" "),
747
816
  style: {
748
817
  display: "flex",
749
818
  flexWrap: "wrap",
@@ -753,58 +822,58 @@ class ne extends T {
753
822
  ...o && typeof o == "object" ? o : null
754
823
  }
755
824
  };
756
- return s.createElement(ie, f);
825
+ return s.createElement(de, p);
757
826
  }
758
827
  }
759
- const Ge = A(ne);
760
- function et(e, r) {
828
+ const Ke = L(he);
829
+ function it(e, r) {
761
830
  if (!(typeof r != "string" || !C(r)))
762
831
  for (const t of M(r))
763
832
  e.bindSignal(t);
764
833
  }
765
- function pt(e) {
766
- return typeof e != "string" ? e : C(e) ? P(e) : e;
834
+ function gt(e) {
835
+ return typeof e != "string" ? e : C(e) ? R(e) : e;
767
836
  }
768
- function rt(e, r) {
837
+ function st(e, r) {
769
838
  if (typeof r == "function") {
770
839
  try {
771
- rt(e, r());
840
+ st(e, r());
772
841
  } catch {
773
842
  }
774
843
  return;
775
844
  }
776
845
  if (typeof r == "string") {
777
- et(e, r);
846
+ it(e, r);
778
847
  return;
779
848
  }
780
849
  if (Array.isArray(r))
781
- for (const t of r) rt(e, t);
850
+ for (const t of r) st(e, t);
782
851
  }
783
- function oe(e) {
784
- return typeof e == "string" && C(e) ? P(e) : e;
852
+ function fe(e) {
853
+ return typeof e == "string" && C(e) ? R(e) : e;
785
854
  }
786
- function mt(e) {
855
+ function bt(e) {
787
856
  return e === "success" || e === "warning" || e === "error" || e === "info";
788
857
  }
789
- function ae(e, r) {
790
- return mt(r) ? r : mt(e) ? e : "info";
858
+ function me(e, r) {
859
+ return bt(r) ? r : bt(e) ? e : "info";
791
860
  }
792
- function gt(e) {
861
+ function yt(e) {
793
862
  return e == null || e === !1 ? [] : Array.isArray(e) ? e : [e];
794
863
  }
795
- const le = s.memo((e) => {
864
+ const pe = s.memo((e) => {
796
865
  const {
797
866
  status: r,
798
867
  intent: t,
799
868
  title: i,
800
869
  subtitle: o,
801
870
  className: l,
802
- style: a,
803
- onClose: c,
804
- action: f,
805
- children: g,
806
- ...S
807
- } = e, p = ae(r, t), h = p === "error" || p === "warning", u = typeof c == "function", _ = [i, o].filter(Boolean).join(". "), d = ["fibo-banner", `fibo-banner-${p}`, l].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), k = s.createElement(
871
+ style: c,
872
+ onClose: a,
873
+ action: u,
874
+ children: p,
875
+ ...h
876
+ } = e, g = me(r, t), _ = g === "error" || g === "warning", m = typeof a == "function", b = [i, o].filter(Boolean).join(". "), y = ["fibo-banner", `fibo-banner-${g}`, l].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), I = s.createElement(
808
877
  "div",
809
878
  { key: "copy", className: "flex flex-col gap-1 min-w-0 flex-1" },
810
879
  i && s.createElement(
@@ -821,16 +890,16 @@ const le = s.memo((e) => {
821
890
  },
822
891
  o
823
892
  )
824
- ), $ = [...gt(f), ...gt(g)].filter(
825
- (b) => b != null && b !== !1
826
- ), v = [];
827
- $.length > 0 && v.push(
893
+ ), A = [...yt(u), ...yt(p)].filter(
894
+ (f) => f != null && f !== !1
895
+ ), w = [];
896
+ A.length > 0 && w.push(
828
897
  s.createElement(
829
898
  "div",
830
899
  { key: "actions", className: "flex items-center gap-2 shrink-0" },
831
- $
900
+ A
832
901
  )
833
- ), u && v.push(
902
+ ), m && w.push(
834
903
  s.createElement(
835
904
  "button",
836
905
  {
@@ -838,29 +907,29 @@ const le = s.memo((e) => {
838
907
  type: "button",
839
908
  className: "shrink-0 opacity-80 text-sm leading-none",
840
909
  "aria-label": "Dismiss",
841
- onClick: (b) => {
842
- b.stopPropagation(), c();
910
+ onClick: (f) => {
911
+ f.stopPropagation(), a();
843
912
  }
844
913
  },
845
914
  "×"
846
915
  )
847
916
  );
848
- const E = v.length > 0 ? s.createElement("div", { className: "flex items-start gap-2" }, [k, ...v]) : k;
917
+ const E = w.length > 0 ? s.createElement("div", { className: "flex items-start gap-2" }, [I, ...w]) : I;
849
918
  return s.createElement(
850
919
  "div",
851
920
  {
852
- ...S,
853
- className: d,
854
- style: a,
855
- role: h ? "alert" : "status",
856
- "aria-live": h ? "assertive" : "polite",
921
+ ...h,
922
+ className: y,
923
+ style: c,
924
+ role: _ ? "alert" : "status",
925
+ "aria-live": _ ? "assertive" : "polite",
857
926
  "aria-atomic": !0,
858
- "aria-label": S["aria-label"] || _ || void 0
927
+ "aria-label": h["aria-label"] || b || void 0
859
928
  },
860
929
  E
861
930
  );
862
931
  });
863
- class ce extends T {
932
+ class ge extends P {
864
933
  constructor(t = "") {
865
934
  super();
866
935
  n(this, "_status", "info");
@@ -876,182 +945,182 @@ class ce extends T {
876
945
  return this.status(t);
877
946
  }
878
947
  title(t) {
879
- return this._title = t, et(this, t), this;
948
+ return this._title = t, it(this, t), this;
880
949
  }
881
950
  subtitle(t) {
882
- return this._subtitle = t, et(this, t), this;
951
+ return this._subtitle = t, it(this, t), this;
883
952
  }
884
953
  children(t) {
885
- return rt(this, t), super.children(t);
954
+ return st(this, t), super.children(t);
886
955
  }
887
956
  build() {
888
957
  const t = {
889
958
  status: this._status,
890
- title: pt(this._title),
891
- subtitle: pt(this._subtitle),
959
+ title: gt(this._title),
960
+ subtitle: gt(this._subtitle),
892
961
  className: this.getClassName(),
893
962
  style: this.getStyle(),
894
- children: this.processChildren().map(oe),
963
+ children: this.processChildren().map(fe),
895
964
  ...this._props
896
965
  };
897
- return s.createElement(le, t);
966
+ return s.createElement(pe, t);
898
967
  }
899
968
  }
900
- const Fe = A(ce), ue = {
969
+ const Me = L(ge), be = {
901
970
  none: "0px",
902
971
  sm: "8px",
903
972
  md: "16px",
904
973
  lg: "24px",
905
974
  xl: "32px"
906
975
  };
907
- function st(e) {
976
+ function nt(e) {
908
977
  return `repeat(${e}, minmax(0, 1fr))`;
909
978
  }
910
- function de(e) {
979
+ function ye(e) {
911
980
  return `repeat(${e}, minmax(0, auto))`;
912
981
  }
913
- function he(e, r) {
914
- return r || st(typeof e == "number" ? e : 1);
982
+ function _e(e, r) {
983
+ return r || nt(typeof e == "number" ? e : 1);
915
984
  }
916
- function fe(e, r) {
985
+ function ve(e, r) {
917
986
  if (r) return r;
918
- if (typeof e == "number") return de(e);
987
+ if (typeof e == "number") return ye(e);
919
988
  }
920
989
  function K(e) {
921
- return typeof e == "number" ? `${e}px` : ue[e] ?? (e || "16px");
990
+ return typeof e == "number" ? `${e}px` : be[e] ?? (e || "16px");
922
991
  }
923
- function pe(e, r, t) {
992
+ function we(e, r, t) {
924
993
  return r == null && t == null ? { gap: e } : {
925
994
  ...r != null ? { rowGap: K(r) } : { rowGap: e },
926
995
  ...t != null ? { columnGap: K(t) } : { columnGap: e }
927
996
  };
928
997
  }
929
- function _t(e) {
998
+ function Ct(e) {
930
999
  return e == null || e === !1 ? [] : Array.isArray(e) ? e : [e];
931
1000
  }
932
- function tt(e, r) {
1001
+ function rt(e, r) {
933
1002
  if (typeof e == "number") return [];
934
- const t = Bt.getInstance(), i = ["sm", "md", "lg", "xl"], o = [];
1003
+ const t = Pt.getInstance(), i = ["sm", "md", "lg", "xl"], o = [];
935
1004
  for (const l of i) {
936
- const a = e[l];
937
- if (!a) continue;
938
- const c = At(l);
939
- r === "masonry" ? o.push(t.registerMedia(c, "column-count", String(a))) : o.push(t.registerMedia(c, "grid-template-columns", st(a)));
1005
+ const c = e[l];
1006
+ if (!c) continue;
1007
+ const a = Rt(l);
1008
+ r === "masonry" ? o.push(t.registerMedia(a, "column-count", String(c))) : o.push(t.registerMedia(a, "grid-template-columns", nt(c)));
940
1009
  }
941
1010
  return o;
942
1011
  }
943
- function me(e) {
1012
+ function Se(e) {
944
1013
  if (!s.isValidElement(e)) return !1;
945
1014
  const r = e.props;
946
1015
  return !!(r && typeof r == "object" && (r.colSpan || r.rowSpan || r.colStart != null || r.colEnd != null || r.rowStart != null || r.rowEnd != null || typeof r.className == "string" && /(col|row)-span/.test(r.className)));
947
1016
  }
948
- const ge = s.memo((e) => {
1017
+ const Ne = s.memo((e) => {
949
1018
  const {
950
1019
  children: r,
951
1020
  variant: t = "standard",
952
1021
  columns: i = 1,
953
1022
  gap: o = "md",
954
1023
  rows: l,
955
- templateColumns: a,
956
- templateRows: c,
957
- autoFlow: f,
958
- rowGap: g,
959
- columnGap: S,
960
- className: p,
961
- style: h,
962
- ...u
963
- } = e, _ = _t(r), d = K(o), k = pe(d, g, S), $ = he(i, a), v = fe(l, c);
1024
+ templateColumns: c,
1025
+ templateRows: a,
1026
+ autoFlow: u,
1027
+ rowGap: p,
1028
+ columnGap: h,
1029
+ className: g,
1030
+ style: _,
1031
+ ...m
1032
+ } = e, b = Ct(r), y = K(o), I = we(y, p, h), A = _e(i, c), w = ve(l, a);
964
1033
  if (t === "bento") {
965
- const b = [
1034
+ const f = [
966
1035
  { col: 2, row: 2 },
967
1036
  { col: 1, row: 1 },
968
1037
  { col: 1, row: 1 },
969
1038
  { col: 1, row: 2 },
970
1039
  { col: 2, row: 1 }
971
- ], m = {
1040
+ ], x = {
972
1041
  display: "grid",
973
- gridTemplateColumns: $,
974
- ...v ? { gridTemplateRows: v } : {},
975
- ...k,
976
- gridAutoFlow: f ?? "dense",
977
- ...h
1042
+ gridTemplateColumns: A,
1043
+ ...w ? { gridTemplateRows: w } : {},
1044
+ ...I,
1045
+ gridAutoFlow: u ?? "dense",
1046
+ ..._
978
1047
  };
979
1048
  return s.createElement("div", {
980
- className: ["fibo-grid", "grid", ...tt(i, "grid"), p].filter(Boolean).join(" "),
981
- style: m,
982
- ...u
983
- }, s.Children.map(_, (N, y) => {
984
- if (me(N))
985
- return N;
986
- const w = b[y % b.length];
1049
+ className: ["fibo-grid", "grid", ...rt(i, "grid"), g].filter(Boolean).join(" "),
1050
+ style: x,
1051
+ ...m
1052
+ }, s.Children.map(b, (d, S) => {
1053
+ if (Se(d))
1054
+ return d;
1055
+ const v = f[S % f.length];
987
1056
  return s.createElement("div", {
988
- key: lt(N, y),
989
- style: { gridColumn: `span ${w.col}`, gridRow: `span ${w.row}` }
990
- }, N);
1057
+ key: ut(d, S),
1058
+ style: { gridColumn: `span ${v.col}`, gridRow: `span ${v.row}` }
1059
+ }, d);
991
1060
  }));
992
1061
  }
993
1062
  if (t === "masonry") {
994
- const b = S != null ? K(S) : d, m = g != null ? K(g) : d, N = {
1063
+ const f = h != null ? K(h) : y, x = p != null ? K(p) : y, d = {
995
1064
  columnCount: typeof i == "number" ? i : 1,
996
- columnGap: b,
997
- ...h
1065
+ columnGap: f,
1066
+ ..._
998
1067
  };
999
1068
  return s.createElement("div", {
1000
- className: ["fibo-grid", ...tt(i, "masonry"), p].filter(Boolean).join(" "),
1001
- style: N,
1002
- ...u
1069
+ className: ["fibo-grid", ...rt(i, "masonry"), g].filter(Boolean).join(" "),
1070
+ style: d,
1071
+ ...m
1003
1072
  }, s.Children.map(
1004
- _,
1005
- (y, w) => s.createElement("div", {
1006
- key: lt(y, w),
1007
- style: { breakInside: "avoid", marginBottom: m }
1008
- }, y)
1073
+ b,
1074
+ (S, v) => s.createElement("div", {
1075
+ key: ut(S, v),
1076
+ style: { breakInside: "avoid", marginBottom: x }
1077
+ }, S)
1009
1078
  ));
1010
1079
  }
1011
1080
  const E = {
1012
1081
  display: "grid",
1013
- gridTemplateColumns: $,
1014
- ...v ? { gridTemplateRows: v } : {},
1015
- ...f ? { gridAutoFlow: f } : {},
1016
- ...k,
1017
- ...h
1082
+ gridTemplateColumns: A,
1083
+ ...w ? { gridTemplateRows: w } : {},
1084
+ ...u ? { gridAutoFlow: u } : {},
1085
+ ...I,
1086
+ ..._
1018
1087
  };
1019
1088
  return s.createElement("div", {
1020
- className: ["fibo-grid", "grid", ...tt(i, "grid"), p].filter(Boolean).join(" "),
1089
+ className: ["fibo-grid", "grid", ...rt(i, "grid"), g].filter(Boolean).join(" "),
1021
1090
  style: E,
1022
- ...u
1023
- }, ..._);
1024
- }), be = s.memo((e) => {
1091
+ ...m
1092
+ }, ...b);
1093
+ }), Ce = s.memo((e) => {
1025
1094
  const {
1026
1095
  children: r,
1027
1096
  colSpan: t,
1028
1097
  rowSpan: i,
1029
1098
  colStart: o,
1030
1099
  colEnd: l,
1031
- rowStart: a,
1032
- rowEnd: c,
1033
- className: f,
1034
- style: g,
1035
- ...S
1036
- } = e, p = _t(r), h = [
1100
+ rowStart: c,
1101
+ rowEnd: a,
1102
+ className: u,
1103
+ style: p,
1104
+ ...h
1105
+ } = e, g = Ct(r), _ = [
1037
1106
  t ? `col-span-${t}` : "",
1038
1107
  i ? `row-span-${i}` : ""
1039
- ].filter(Boolean).join(" "), u = {
1108
+ ].filter(Boolean).join(" "), m = {
1040
1109
  ...t ? { gridColumn: `span ${t}` } : {},
1041
1110
  ...i ? { gridRow: `span ${i}` } : {},
1042
1111
  ...o != null ? { gridColumnStart: o } : {},
1043
1112
  ...l != null ? { gridColumnEnd: l } : {},
1044
- ...a != null ? { gridRowStart: a } : {},
1045
- ...c != null ? { gridRowEnd: c } : {},
1046
- ...g
1113
+ ...c != null ? { gridRowStart: c } : {},
1114
+ ...a != null ? { gridRowEnd: a } : {},
1115
+ ...p
1047
1116
  };
1048
1117
  return s.createElement("div", {
1049
- className: ["fibo-grid-item", h, f].filter(Boolean).join(" "),
1050
- style: u,
1051
- ...S
1052
- }, ...p);
1118
+ className: ["fibo-grid-item", _, u].filter(Boolean).join(" "),
1119
+ style: m,
1120
+ ...h
1121
+ }, ...g);
1053
1122
  });
1054
- class ye extends T {
1123
+ class xe extends P {
1055
1124
  constructor() {
1056
1125
  super(...arguments);
1057
1126
  n(this, "_variant", "standard");
@@ -1111,10 +1180,10 @@ class ye extends T {
1111
1180
  style: this.getStyle(),
1112
1181
  ...this._props
1113
1182
  };
1114
- return s.createElement(ge, t);
1183
+ return s.createElement(Ne, t);
1115
1184
  }
1116
1185
  }
1117
- class _e extends T {
1186
+ class Ee extends P {
1118
1187
  constructor() {
1119
1188
  super(...arguments);
1120
1189
  n(this, "_colSpan");
@@ -1155,44 +1224,44 @@ class _e extends T {
1155
1224
  style: this.getStyle(),
1156
1225
  ...this._props
1157
1226
  };
1158
- return s.createElement(be, t);
1227
+ return s.createElement(Ce, t);
1159
1228
  }
1160
1229
  }
1161
- const Le = A(ye), We = A(_e), we = s.memo((e) => {
1162
- const { image: r, title: t, price: i, likes: o, timeLeft: l, className: a, style: c, ...f } = e;
1163
- return J().classNames(["group", "transition-all", "duration-300", "hover:-translate-y-1"]).style({
1230
+ const Oe = L(xe), qe = L(Ee), ke = s.memo((e) => {
1231
+ const { image: r, title: t, price: i, likes: o, timeLeft: l, className: c, style: a, ...u } = e;
1232
+ return Z().classNames(["group", "transition-all", "duration-300", "hover:-translate-y-1"]).style({
1164
1233
  width: "100%",
1165
1234
  borderRadius: "24px",
1166
1235
  border: "none",
1167
1236
  boxShadow: "0 10px 40px -10px rgba(0,0,0,0.05)",
1168
1237
  padding: "16px",
1169
1238
  background: "#fff",
1170
- ...c
1171
- }).className(a).props(f).children([
1172
- B().classNames(["relative", "aspect-square", "overflow-hidden", "rounded-[20px]"]).children([
1173
- ot().src(r).alt(t || "").classNames(["w-full", "h-full", "object-cover", "bg-gray-200"]).build(),
1174
- B().classNames(["absolute", "top-3", "right-3"]).children(
1175
- Z().variant("glass").shape("pill").icon(B().classNames(["text-gray-400", "hover:text-red-500"]).children(L.Heart).build()).text(`${o}`).build()
1239
+ ...a
1240
+ }).className(c).props(u).children([
1241
+ T().classNames(["relative", "aspect-square", "overflow-hidden", "rounded-[20px]"]).children([
1242
+ at().src(r).alt(t || "").classNames(["w-full", "h-full", "object-cover", "bg-gray-200"]).build(),
1243
+ T().classNames(["absolute", "top-3", "right-3"]).children(
1244
+ et().variant("glass").shape("pill").icon(T().classNames(["text-gray-400", "hover:text-red-500"]).children(G.Heart).build()).text(`${o}`).build()
1176
1245
  ).build()
1177
1246
  ]).build(),
1178
- D().height(16).build(),
1247
+ V().height(16).build(),
1179
1248
  W().justifyContent("between").alignItems("start").children([
1180
1249
  F().gap(4).children([
1181
- x(t).fontWeight(700).fontSize(18).color("#111827").build(),
1182
- Z().variant("neutral").text("Not for sale x1").build()
1250
+ N(t).fontWeight(700).fontSize(18).color("#111827").build(),
1251
+ et().variant("neutral").text("Not for sale x1").build()
1183
1252
  ]).build(),
1184
- B().classNames(["text-gray-300"]).children(L.More).build()
1253
+ T().classNames(["text-gray-300"]).children(G.More).build()
1185
1254
  ]).build(),
1186
- D().height(16).build(),
1255
+ V().height(16).build(),
1187
1256
  W().justifyContent("between").alignItems("center").children([
1188
1257
  F().gap(4).children([
1189
- x("Current Bid").fontSize(11).fontWeight(600).color("#6B7280").build(),
1258
+ N("Current Bid").fontSize(11).fontWeight(600).color("#6B7280").build(),
1190
1259
  W().gap(4).alignItems("center").children([
1191
- B().classNames(["text-blue-500"]).children(L.Eth).build(),
1192
- x(`${i} ETH`).fontSize(15).fontWeight(700).color("#111827").build()
1260
+ T().classNames(["text-blue-500"]).children(G.Eth).build(),
1261
+ N(`${i} ETH`).fontSize(15).fontWeight(700).color("#111827").build()
1193
1262
  ]).build()
1194
1263
  ]).build(),
1195
- yt("Place a bid").variant("filled").shape("pill").shadow("soft").style({
1264
+ wt("Place a bid").variant("filled").shape("pill").shadow("soft").style({
1196
1265
  backgroundColor: "#111827",
1197
1266
  color: "#fff",
1198
1267
  padding: "10px 20px",
@@ -1200,11 +1269,11 @@ const Le = A(ye), We = A(_e), we = s.memo((e) => {
1200
1269
  fontWeight: 600
1201
1270
  }).build()
1202
1271
  ]).build(),
1203
- D().height(12).build(),
1204
- l ? Z().variant("accent").shape("rounded").icon(B().children(L.Clock).build()).text(l).style({ width: "100%" }).build() : null
1272
+ V().height(12).build(),
1273
+ l ? et().variant("accent").shape("rounded").icon(T().children(G.Clock).build()).text(l).style({ width: "100%" }).build() : null
1205
1274
  ]).build();
1206
1275
  });
1207
- class ve extends T {
1276
+ class Ie extends P {
1208
1277
  constructor() {
1209
1278
  super(...arguments);
1210
1279
  n(this, "_image", "");
@@ -1239,18 +1308,18 @@ class ve extends T {
1239
1308
  className: this.getClassName(),
1240
1309
  style: this.getStyle()
1241
1310
  };
1242
- return s.createElement(we, t);
1311
+ return s.createElement(ke, t);
1243
1312
  }
1244
1313
  }
1245
- const De = A(ve);
1246
- function Se(e) {
1314
+ const Ue = L(Ie);
1315
+ function Be(e) {
1247
1316
  if (typeof e != "string") return "";
1248
1317
  const r = e.trim();
1249
- return !r || bt(r) ? "" : r;
1318
+ return !r || _t(r) ? "" : r;
1250
1319
  }
1251
- const Ne = s.memo((e) => {
1252
- const { banner: r, avatar: t, name: i, handle: o, stats: l, className: a, style: c, ...f } = e, g = Se(r);
1253
- return J().style({
1320
+ const Te = s.memo((e) => {
1321
+ const { banner: r, avatar: t, name: i, handle: o, stats: l, className: c, style: a, ...u } = e, p = Be(r);
1322
+ return Z().style({
1254
1323
  width: "100%",
1255
1324
  borderRadius: "24px",
1256
1325
  border: "none",
@@ -1258,52 +1327,52 @@ const Ne = s.memo((e) => {
1258
1327
  padding: "0",
1259
1328
  overflow: "hidden",
1260
1329
  background: "#fff",
1261
- ...c
1262
- }).className(a).props(f).children([
1263
- B().style({
1330
+ ...a
1331
+ }).className(c).props(u).children([
1332
+ T().style({
1264
1333
  height: "100px",
1265
- backgroundImage: g ? `url(${JSON.stringify(g)})` : void 0,
1334
+ backgroundImage: p ? `url(${JSON.stringify(p)})` : void 0,
1266
1335
  backgroundSize: "cover",
1267
1336
  backgroundPosition: "center"
1268
1337
  }).build(),
1269
1338
  F().padding(20).alignItems("center").style({ marginTop: "-50px" }).children([
1270
- Tt().image(t).size(80).border("4px solid #fff").build(),
1271
- D().height(12).build(),
1339
+ $t().image(t).size(80).border("4px solid #fff").build(),
1340
+ V().height(12).build(),
1272
1341
  W().gap(6).alignItems("center").children([
1273
- x(i).fontWeight(700).fontSize(18).color("#111827").build(),
1274
- L.Verify
1342
+ N(i).fontWeight(700).fontSize(18).color("#111827").build(),
1343
+ G.Verify
1275
1344
  ]).build(),
1276
- x(o).fontSize(13).color("#6B7280").style({ marginTop: "4px" }).build(),
1277
- D().height(16).build(),
1278
- yt("+ Follow").variant("filled").shape("pill").shadow("soft").style({
1345
+ N(o).fontSize(13).color("#6B7280").style({ marginTop: "4px" }).build(),
1346
+ V().height(16).build(),
1347
+ wt("+ Follow").variant("filled").shape("pill").shadow("soft").style({
1279
1348
  backgroundColor: "#3B82F6",
1280
1349
  color: "#fff",
1281
1350
  padding: "8px 24px",
1282
1351
  fontSize: "13px",
1283
1352
  fontWeight: 600
1284
1353
  }).build(),
1285
- D().height(24).build(),
1354
+ V().height(24).build(),
1286
1355
  W().classNames(["w-full", "border-t", "border-gray-100", "pt-4"]).justifyContent("between").children([
1287
1356
  F().alignItems("center").gap(4).children([
1288
- x(l.items).fontWeight(700).fontSize(14).build(),
1289
- x("Items").fontSize(11).color("#9CA3AF").build()
1357
+ N(l.items).fontWeight(700).fontSize(14).build(),
1358
+ N("Items").fontSize(11).color("#9CA3AF").build()
1290
1359
  ]).build(),
1291
1360
  F().alignItems("center").gap(4).children([
1292
- x(l.owners).fontWeight(700).fontSize(14).build(),
1293
- x("Owners").fontSize(11).color("#9CA3AF").build()
1361
+ N(l.owners).fontWeight(700).fontSize(14).build(),
1362
+ N("Owners").fontSize(11).color("#9CA3AF").build()
1294
1363
  ]).build(),
1295
1364
  F().alignItems("center").gap(4).children([
1296
1365
  W().alignItems("center").gap(2).children([
1297
- B().width(8).children(L.Eth).build(),
1298
- x(l.floor).fontWeight(700).fontSize(14).build()
1366
+ T().width(8).children(G.Eth).build(),
1367
+ N(l.floor).fontWeight(700).fontSize(14).build()
1299
1368
  ]).build(),
1300
- x("Floor").fontSize(11).color("#9CA3AF").build()
1369
+ N("Floor").fontSize(11).color("#9CA3AF").build()
1301
1370
  ]).build()
1302
1371
  ]).build()
1303
1372
  ]).build()
1304
1373
  ]).build();
1305
1374
  });
1306
- class xe extends T {
1375
+ class Ae extends P {
1307
1376
  constructor() {
1308
1377
  super(...arguments);
1309
1378
  n(this, "_banner", "");
@@ -1338,34 +1407,34 @@ class xe extends T {
1338
1407
  className: this.getClassName(),
1339
1408
  style: this.getStyle()
1340
1409
  };
1341
- return s.createElement(Ne, t);
1410
+ return s.createElement(Te, t);
1342
1411
  }
1343
1412
  }
1344
- const He = A(xe), Ce = s.memo((e) => {
1345
- const { image: r, title: t, author: i, items: o, className: l, style: a, ...c } = e;
1346
- return J().classNames(["group", "cursor-pointer"]).style({
1413
+ const Ye = L(Ae), Le = s.memo((e) => {
1414
+ const { image: r, title: t, author: i, items: o, className: l, style: c, ...a } = e;
1415
+ return Z().classNames(["group", "cursor-pointer"]).style({
1347
1416
  width: "100%",
1348
1417
  borderRadius: "24px",
1349
1418
  height: "320px",
1350
1419
  position: "relative",
1351
1420
  overflow: "hidden",
1352
1421
  border: "none",
1353
- ...a
1354
- }).className(l).props(c).children([
1355
- ot().src(r).alt(t || "").classNames(["absolute", "inset-0", "w-full", "h-full", "object-cover", "transition-transform", "duration-500"]).style({ position: "absolute", inset: 0, width: "100%", height: "100%" }).build(),
1356
- B().classNames(["absolute", "inset-0", "bg-gradient-to-t", "from-black/80", "via-black/20", "to-transparent"]).build(),
1422
+ ...c
1423
+ }).className(l).props(a).children([
1424
+ at().src(r).alt(t || "").classNames(["absolute", "inset-0", "w-full", "h-full", "object-cover", "transition-transform", "duration-500"]).style({ position: "absolute", inset: 0, width: "100%", height: "100%" }).build(),
1425
+ T().classNames(["absolute", "inset-0", "bg-gradient-to-t", "from-black/80", "via-black/20", "to-transparent"]).build(),
1357
1426
  F().classNames(["absolute", "bottom-0", "left-0", "p-6"]).gap(4).children([
1358
- x(o).color("white").fontSize(12).classNames(["opacity-90", "mb-1", "uppercase", "tracking-wider"]).fontWeight(600).build(),
1359
- x(t).color("white").fontSize(22).fontWeight(700).build(),
1427
+ N(o).color("white").fontSize(12).classNames(["opacity-90", "mb-1", "uppercase", "tracking-wider"]).fontWeight(600).build(),
1428
+ N(t).color("white").fontSize(22).fontWeight(700).build(),
1360
1429
  W().gap(6).alignItems("center").children([
1361
- x("Created by").color("white").fontSize(13).classNames(["opacity-80"]).build(),
1362
- x(i).color("white").fontSize(13).fontWeight(600).build(),
1363
- L.Verify
1430
+ N("Created by").color("white").fontSize(13).classNames(["opacity-80"]).build(),
1431
+ N(i).color("white").fontSize(13).fontWeight(600).build(),
1432
+ G.Verify
1364
1433
  ]).build()
1365
1434
  ]).build()
1366
1435
  ]).build();
1367
1436
  });
1368
- class Ee extends T {
1437
+ class Pe extends P {
1369
1438
  constructor() {
1370
1439
  super(...arguments);
1371
1440
  n(this, "_image", "");
@@ -1395,32 +1464,32 @@ class Ee extends T {
1395
1464
  className: this.getClassName(),
1396
1465
  style: this.getStyle()
1397
1466
  };
1398
- return s.createElement(Ce, t);
1467
+ return s.createElement(Le, t);
1399
1468
  }
1400
1469
  }
1401
- const Ke = A(Ee), ke = s.memo((e) => {
1470
+ const Je = L(Pe), Re = s.memo((e) => {
1402
1471
  const {
1403
1472
  image: r,
1404
1473
  title: t,
1405
1474
  description: i,
1406
1475
  date: o,
1407
1476
  source: l,
1408
- className: a,
1409
- style: c,
1410
- ...f
1477
+ className: c,
1478
+ style: a,
1479
+ ...u
1411
1480
  } = e;
1412
- return J().className(`overflow-hidden hover:shadow-lg transition-shadow duration-300 ${a || ""}`).style(c).props(f).children([
1413
- r ? ot().src(r).alt(t || "").className("w-full object-cover rounded-[20px] mb-4").style({ height: "200px" }).build() : null,
1414
- B().className("flex flex-col gap-2").children([
1415
- t ? x(t).fontSize(18).fontWeight(700).color("#111827").lineHeight(1.25).build() : null,
1416
- i ? x(i).fontSize(14).color("#4B5563").lineHeight(1.5).className("line-clamp-2").build() : null,
1417
- l || o ? B().className("flex items-center gap-2 mt-2").children([
1418
- x(`${l || ""}${l && o ? " • " : ""}${o || ""}`).fontSize(11).fontWeight(600).color("#9CA3AF").textTransform("uppercase").letterSpacing("0.05em").build()
1481
+ return Z().className(`overflow-hidden hover:shadow-lg transition-shadow duration-300 ${c || ""}`).style(a).props(u).children([
1482
+ r ? at().src(r).alt(t || "").className("w-full object-cover rounded-[20px] mb-4").style({ height: "200px" }).build() : null,
1483
+ T().className("flex flex-col gap-2").children([
1484
+ t ? N(t).fontSize(18).fontWeight(700).color("#111827").lineHeight(1.25).build() : null,
1485
+ i ? N(i).fontSize(14).color("#4B5563").lineHeight(1.5).className("line-clamp-2").build() : null,
1486
+ l || o ? T().className("flex items-center gap-2 mt-2").children([
1487
+ N(`${l || ""}${l && o ? " • " : ""}${o || ""}`).fontSize(11).fontWeight(600).color("#9CA3AF").textTransform("uppercase").letterSpacing("0.05em").build()
1419
1488
  ]).build() : null
1420
1489
  ]).build()
1421
1490
  ]).build();
1422
1491
  });
1423
- class Ie extends T {
1492
+ class $e extends P {
1424
1493
  constructor() {
1425
1494
  super(...arguments);
1426
1495
  n(this, "_image");
@@ -1455,20 +1524,20 @@ class Ie extends T {
1455
1524
  className: this.getClassName(),
1456
1525
  style: this.getStyle()
1457
1526
  };
1458
- return s.createElement(ke, t);
1527
+ return s.createElement(Re, t);
1459
1528
  }
1460
1529
  }
1461
- const Me = A(Ie);
1530
+ const Qe = L($e);
1462
1531
  export {
1463
- De as A,
1464
- Fe as B,
1465
- J as C,
1466
- Le as G,
1467
- je as L,
1468
- He as P,
1469
- ze as T,
1470
- Ge as a,
1471
- We as b,
1472
- Ke as c,
1473
- Me as d
1532
+ Ue as A,
1533
+ Me as B,
1534
+ Z as C,
1535
+ Oe as G,
1536
+ Ve as L,
1537
+ Ye as P,
1538
+ He as T,
1539
+ Ke as a,
1540
+ qe as b,
1541
+ Je as c,
1542
+ Qe as d
1474
1543
  };