@homlista-devs/ui 1.6.6 → 1.6.8
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.
- package/dist/design-system.cjs.js +4 -4
- package/dist/design-system.cjs.js.map +1 -1
- package/dist/design-system.es.js +485 -474
- package/dist/design-system.es.js.map +1 -1
- package/dist/index.css +27 -0
- package/dist/precompiled.css +27 -0
- package/dist/types/widgets/header/index.d.ts +1 -1
- package/dist/types/widgets/header/index.d.ts.map +1 -1
- package/dist/types/widgets/header/model/index.d.ts +1 -1
- package/dist/types/widgets/header/model/index.d.ts.map +1 -1
- package/dist/types/widgets/header/model/types.d.ts +22 -0
- package/dist/types/widgets/header/model/types.d.ts.map +1 -1
- package/dist/types/widgets/header/ui/header.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/design-system.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as se } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as w from "react";
|
|
3
3
|
import Ae, { useState as ee, useMemo as Ne, useCallback as He, useEffect as Ce, forwardRef as we, createElement as Pe, useContext as Tt } from "react";
|
|
4
4
|
import { createEvent as Le, createStore as zt } from "effector";
|
|
5
5
|
import { useUnit as Pt } from "effector-react";
|
|
@@ -34,13 +34,13 @@ function jt(e) {
|
|
|
34
34
|
if (c === 0)
|
|
35
35
|
u = l / m;
|
|
36
36
|
else {
|
|
37
|
-
const
|
|
38
|
-
u = l * (c *
|
|
37
|
+
const v = Math.pow(1 + c, m);
|
|
38
|
+
u = l * (c * v) / (v - 1);
|
|
39
39
|
}
|
|
40
|
-
const d = u * m, h = d - l,
|
|
40
|
+
const d = u * m, h = d - l, M = u + s + i;
|
|
41
41
|
return {
|
|
42
42
|
monthlyPayment: Math.round(u * 100) / 100,
|
|
43
|
-
totalMonthlyPayment: Math.round(
|
|
43
|
+
totalMonthlyPayment: Math.round(M * 100) / 100,
|
|
44
44
|
totalAmount: Math.round(d * 100) / 100,
|
|
45
45
|
totalInterest: Math.round(h * 100) / 100,
|
|
46
46
|
loanPrincipal: Math.round(l * 100) / 100,
|
|
@@ -94,16 +94,16 @@ const We = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ue = rt, J
|
|
|
94
94
|
let [d, h] = u;
|
|
95
95
|
return h === void 0 || (m[d] = h), m;
|
|
96
96
|
}, {}), c = t == null || (a = t.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((m, u) => {
|
|
97
|
-
let { class: d, className: h, ...
|
|
98
|
-
return Object.entries(
|
|
99
|
-
let [N,
|
|
100
|
-
return Array.isArray(
|
|
97
|
+
let { class: d, className: h, ...M } = u;
|
|
98
|
+
return Object.entries(M).every((v) => {
|
|
99
|
+
let [N, k] = v;
|
|
100
|
+
return Array.isArray(k) ? k.includes({
|
|
101
101
|
...s,
|
|
102
102
|
...l
|
|
103
103
|
}[N]) : {
|
|
104
104
|
...s,
|
|
105
105
|
...l
|
|
106
|
-
}[N] ===
|
|
106
|
+
}[N] === k;
|
|
107
107
|
}) ? [
|
|
108
108
|
...m,
|
|
109
109
|
d,
|
|
@@ -159,11 +159,11 @@ function Lt(...e) {
|
|
|
159
159
|
}
|
|
160
160
|
// @__NO_SIDE_EFFECTS__
|
|
161
161
|
function $t(e) {
|
|
162
|
-
const t = /* @__PURE__ */
|
|
163
|
-
const { children: s, ...i } = a, l =
|
|
162
|
+
const t = /* @__PURE__ */ _t(e), o = w.forwardRef((a, n) => {
|
|
163
|
+
const { children: s, ...i } = a, l = w.Children.toArray(s), c = l.find(Ft);
|
|
164
164
|
if (c) {
|
|
165
|
-
const m = c.props.children, u = l.map((d) => d === c ?
|
|
166
|
-
return /* @__PURE__ */ r(t, { ...i, ref: n, children:
|
|
165
|
+
const m = c.props.children, u = l.map((d) => d === c ? w.Children.count(m) > 1 ? w.Children.only(null) : w.isValidElement(m) ? m.props.children : null : d);
|
|
166
|
+
return /* @__PURE__ */ r(t, { ...i, ref: n, children: w.isValidElement(m) ? w.cloneElement(m, void 0, u) : null });
|
|
167
167
|
}
|
|
168
168
|
return /* @__PURE__ */ r(t, { ...i, ref: n, children: s });
|
|
169
169
|
});
|
|
@@ -171,20 +171,20 @@ function $t(e) {
|
|
|
171
171
|
}
|
|
172
172
|
var Ot = /* @__PURE__ */ $t("Slot");
|
|
173
173
|
// @__NO_SIDE_EFFECTS__
|
|
174
|
-
function
|
|
175
|
-
const t =
|
|
174
|
+
function _t(e) {
|
|
175
|
+
const t = w.forwardRef((o, a) => {
|
|
176
176
|
const { children: n, ...s } = o;
|
|
177
|
-
if (
|
|
177
|
+
if (w.isValidElement(n)) {
|
|
178
178
|
const i = Bt(n), l = Dt(s, n.props);
|
|
179
|
-
return n.type !==
|
|
179
|
+
return n.type !== w.Fragment && (l.ref = a ? Lt(a, i) : i), w.cloneElement(n, l);
|
|
180
180
|
}
|
|
181
|
-
return
|
|
181
|
+
return w.Children.count(n) > 1 ? w.Children.only(null) : null;
|
|
182
182
|
});
|
|
183
183
|
return t.displayName = `${e}.SlotClone`, t;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
186
|
-
function
|
|
187
|
-
return
|
|
185
|
+
var Vt = Symbol("radix.slottable");
|
|
186
|
+
function Ft(e) {
|
|
187
|
+
return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Vt;
|
|
188
188
|
}
|
|
189
189
|
function Dt(e, t) {
|
|
190
190
|
const o = { ...t };
|
|
@@ -307,26 +307,26 @@ const $e = "-", Ht = (e) => {
|
|
|
307
307
|
let a = (n) => {
|
|
308
308
|
const s = [];
|
|
309
309
|
let i = 0, l = 0, c = 0, m;
|
|
310
|
-
for (let
|
|
311
|
-
let N = n[
|
|
310
|
+
for (let v = 0; v < n.length; v++) {
|
|
311
|
+
let N = n[v];
|
|
312
312
|
if (i === 0 && l === 0) {
|
|
313
313
|
if (N === Re) {
|
|
314
|
-
s.push(n.slice(c,
|
|
314
|
+
s.push(n.slice(c, v)), c = v + Xt;
|
|
315
315
|
continue;
|
|
316
316
|
}
|
|
317
317
|
if (N === "/") {
|
|
318
|
-
m =
|
|
318
|
+
m = v;
|
|
319
319
|
continue;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
N === "[" ? i++ : N === "]" ? i-- : N === "(" ? l++ : N === ")" && l--;
|
|
323
323
|
}
|
|
324
|
-
const u = s.length === 0 ? n : n.substring(c), d = Kt(u), h = d !== u,
|
|
324
|
+
const u = s.length === 0 ? n : n.substring(c), d = Kt(u), h = d !== u, M = m && m > c ? m - c : void 0;
|
|
325
325
|
return {
|
|
326
326
|
modifiers: s,
|
|
327
327
|
hasImportantModifier: h,
|
|
328
328
|
baseClassName: d,
|
|
329
|
-
maybePostfixModifierPosition:
|
|
329
|
+
maybePostfixModifierPosition: M
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
if (t) {
|
|
@@ -375,34 +375,34 @@ const $e = "-", Ht = (e) => {
|
|
|
375
375
|
const u = l[m], {
|
|
376
376
|
isExternal: d,
|
|
377
377
|
modifiers: h,
|
|
378
|
-
hasImportantModifier:
|
|
379
|
-
baseClassName:
|
|
378
|
+
hasImportantModifier: M,
|
|
379
|
+
baseClassName: v,
|
|
380
380
|
maybePostfixModifierPosition: N
|
|
381
381
|
} = o(u);
|
|
382
382
|
if (d) {
|
|
383
383
|
c = u + (c.length > 0 ? " " + c : c);
|
|
384
384
|
continue;
|
|
385
385
|
}
|
|
386
|
-
let
|
|
387
|
-
if (!
|
|
388
|
-
if (!
|
|
386
|
+
let k = !!N, g = a(k ? v.substring(0, N) : v);
|
|
387
|
+
if (!g) {
|
|
388
|
+
if (!k) {
|
|
389
389
|
c = u + (c.length > 0 ? " " + c : c);
|
|
390
390
|
continue;
|
|
391
391
|
}
|
|
392
|
-
if (
|
|
392
|
+
if (g = a(v), !g) {
|
|
393
393
|
c = u + (c.length > 0 ? " " + c : c);
|
|
394
394
|
continue;
|
|
395
395
|
}
|
|
396
|
-
|
|
396
|
+
k = !1;
|
|
397
397
|
}
|
|
398
|
-
const
|
|
399
|
-
if (i.includes(
|
|
398
|
+
const E = s(h).join(":"), P = M ? E + Ee : E, I = P + g;
|
|
399
|
+
if (i.includes(I))
|
|
400
400
|
continue;
|
|
401
|
-
i.push(
|
|
402
|
-
const
|
|
403
|
-
for (let
|
|
404
|
-
const
|
|
405
|
-
i.push(
|
|
401
|
+
i.push(I);
|
|
402
|
+
const T = n(g, k);
|
|
403
|
+
for (let L = 0; L < T.length; ++L) {
|
|
404
|
+
const S = T[L];
|
|
405
|
+
i.push(P + S);
|
|
406
406
|
}
|
|
407
407
|
c = u + (c.length > 0 ? " " + c : c);
|
|
408
408
|
}
|
|
@@ -439,7 +439,7 @@ function rr(e, ...t) {
|
|
|
439
439
|
return s(tr.apply(null, arguments));
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const $ = (e) => {
|
|
443
443
|
const t = (o) => o[e] || [];
|
|
444
444
|
return t.isThemeGetter = !0, t;
|
|
445
445
|
}, nt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, st = /^\((?:(\w[\w-]*):)?(.+)\)$/i, or = /^\d+\/\d+$/, ar = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, nr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, sr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ir = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ae = (e) => or.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), Z = (e) => !!e && Number.isInteger(Number(e)), Me = (e) => e.endsWith("%") && z(e.slice(0, -1)), U = (e) => ar.test(e), cr = () => !0, dr = (e) => (
|
|
@@ -454,7 +454,7 @@ const L = (e) => {
|
|
|
454
454
|
const a = st.exec(e);
|
|
455
455
|
return a ? a[1] ? t(a[1]) : o : !1;
|
|
456
456
|
}, lt = (e) => e === "position" || e === "percentage", ct = (e) => e === "image" || e === "url", dt = (e) => e === "length" || e === "size" || e === "bg-size", mt = (e) => e === "length", yr = (e) => e === "number", vr = (e) => e === "family-name", ut = (e) => e === "shadow", wr = () => {
|
|
457
|
-
const e =
|
|
457
|
+
const e = $("color"), t = $("font"), o = $("text"), a = $("font-weight"), n = $("tracking"), s = $("leading"), i = $("breakpoint"), l = $("container"), c = $("spacing"), m = $("radius"), u = $("shadow"), d = $("inset-shadow"), h = $("text-shadow"), M = $("drop-shadow"), v = $("blur"), N = $("perspective"), k = $("aspect"), g = $("ease"), E = $("animate"), P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
|
|
458
458
|
"center",
|
|
459
459
|
"top",
|
|
460
460
|
"bottom",
|
|
@@ -472,15 +472,15 @@ const L = (e) => {
|
|
|
472
472
|
"bottom-left",
|
|
473
473
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
474
474
|
"left-bottom"
|
|
475
|
-
],
|
|
475
|
+
], T = () => [...I(), x, b], L = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], y = () => [x, b, c], A = () => [ae, "full", "auto", ...y()], q = () => [Z, "none", "subgrid", x, b], re = () => ["auto", {
|
|
476
476
|
span: ["full", Z, x, b]
|
|
477
|
-
}, Z, x, b], X = () => [Z, "auto", x, b], oe = () => ["auto", "min", "max", "fr", x, b], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...
|
|
477
|
+
}, Z, x, b], X = () => [Z, "auto", x, b], oe = () => ["auto", "min", "max", "fr", x, b], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...y()], W = () => [ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...y()], C = () => [e, x, b], pe = () => [...I(), Je, Ke, {
|
|
478
478
|
position: [x, b]
|
|
479
479
|
}], de = () => ["no-repeat", {
|
|
480
480
|
repeat: ["", "x", "y", "space", "round"]
|
|
481
|
-
}],
|
|
481
|
+
}], F = () => ["auto", "cover", "contain", br, fr, {
|
|
482
482
|
size: [x, b]
|
|
483
|
-
}],
|
|
483
|
+
}], V = () => [Me, ue, Y], j = () => [
|
|
484
484
|
// Deprecated since Tailwind CSS v4.0.0
|
|
485
485
|
"",
|
|
486
486
|
"none",
|
|
@@ -492,10 +492,10 @@ const L = (e) => {
|
|
|
492
492
|
// Deprecated since Tailwind CSS v4.0.0
|
|
493
493
|
"",
|
|
494
494
|
"none",
|
|
495
|
-
|
|
495
|
+
v,
|
|
496
496
|
x,
|
|
497
497
|
b
|
|
498
|
-
], he = () => ["none", z, x, b], ge = () => ["none", z, x, b], ke = () => [z, x, b], be = () => [ae, "full", ...
|
|
498
|
+
], he = () => ["none", z, x, b], ge = () => ["none", z, x, b], ke = () => [z, x, b], be = () => [ae, "full", ...y()];
|
|
499
499
|
return {
|
|
500
500
|
cacheSize: 500,
|
|
501
501
|
theme: {
|
|
@@ -528,7 +528,7 @@ const L = (e) => {
|
|
|
528
528
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
529
529
|
*/
|
|
530
530
|
aspect: [{
|
|
531
|
-
aspect: ["auto", "square", ae, b, x,
|
|
531
|
+
aspect: ["auto", "square", ae, b, x, k]
|
|
532
532
|
}],
|
|
533
533
|
/**
|
|
534
534
|
* Container
|
|
@@ -548,14 +548,14 @@ const L = (e) => {
|
|
|
548
548
|
* @see https://tailwindcss.com/docs/break-after
|
|
549
549
|
*/
|
|
550
550
|
"break-after": [{
|
|
551
|
-
"break-after":
|
|
551
|
+
"break-after": P()
|
|
552
552
|
}],
|
|
553
553
|
/**
|
|
554
554
|
* Break Before
|
|
555
555
|
* @see https://tailwindcss.com/docs/break-before
|
|
556
556
|
*/
|
|
557
557
|
"break-before": [{
|
|
558
|
-
"break-before":
|
|
558
|
+
"break-before": P()
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Break Inside
|
|
@@ -619,49 +619,49 @@ const L = (e) => {
|
|
|
619
619
|
* @see https://tailwindcss.com/docs/object-position
|
|
620
620
|
*/
|
|
621
621
|
"object-position": [{
|
|
622
|
-
object:
|
|
622
|
+
object: T()
|
|
623
623
|
}],
|
|
624
624
|
/**
|
|
625
625
|
* Overflow
|
|
626
626
|
* @see https://tailwindcss.com/docs/overflow
|
|
627
627
|
*/
|
|
628
628
|
overflow: [{
|
|
629
|
-
overflow:
|
|
629
|
+
overflow: L()
|
|
630
630
|
}],
|
|
631
631
|
/**
|
|
632
632
|
* Overflow X
|
|
633
633
|
* @see https://tailwindcss.com/docs/overflow
|
|
634
634
|
*/
|
|
635
635
|
"overflow-x": [{
|
|
636
|
-
"overflow-x":
|
|
636
|
+
"overflow-x": L()
|
|
637
637
|
}],
|
|
638
638
|
/**
|
|
639
639
|
* Overflow Y
|
|
640
640
|
* @see https://tailwindcss.com/docs/overflow
|
|
641
641
|
*/
|
|
642
642
|
"overflow-y": [{
|
|
643
|
-
"overflow-y":
|
|
643
|
+
"overflow-y": L()
|
|
644
644
|
}],
|
|
645
645
|
/**
|
|
646
646
|
* Overscroll Behavior
|
|
647
647
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
648
648
|
*/
|
|
649
649
|
overscroll: [{
|
|
650
|
-
overscroll:
|
|
650
|
+
overscroll: S()
|
|
651
651
|
}],
|
|
652
652
|
/**
|
|
653
653
|
* Overscroll Behavior X
|
|
654
654
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
655
655
|
*/
|
|
656
656
|
"overscroll-x": [{
|
|
657
|
-
"overscroll-x":
|
|
657
|
+
"overscroll-x": S()
|
|
658
658
|
}],
|
|
659
659
|
/**
|
|
660
660
|
* Overscroll Behavior Y
|
|
661
661
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
662
662
|
*/
|
|
663
663
|
"overscroll-y": [{
|
|
664
|
-
"overscroll-y":
|
|
664
|
+
"overscroll-y": S()
|
|
665
665
|
}],
|
|
666
666
|
/**
|
|
667
667
|
* Position
|
|
@@ -673,63 +673,63 @@ const L = (e) => {
|
|
|
673
673
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
674
674
|
*/
|
|
675
675
|
inset: [{
|
|
676
|
-
inset:
|
|
676
|
+
inset: A()
|
|
677
677
|
}],
|
|
678
678
|
/**
|
|
679
679
|
* Right / Left
|
|
680
680
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
681
681
|
*/
|
|
682
682
|
"inset-x": [{
|
|
683
|
-
"inset-x":
|
|
683
|
+
"inset-x": A()
|
|
684
684
|
}],
|
|
685
685
|
/**
|
|
686
686
|
* Top / Bottom
|
|
687
687
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
688
688
|
*/
|
|
689
689
|
"inset-y": [{
|
|
690
|
-
"inset-y":
|
|
690
|
+
"inset-y": A()
|
|
691
691
|
}],
|
|
692
692
|
/**
|
|
693
693
|
* Start
|
|
694
694
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
695
695
|
*/
|
|
696
696
|
start: [{
|
|
697
|
-
start:
|
|
697
|
+
start: A()
|
|
698
698
|
}],
|
|
699
699
|
/**
|
|
700
700
|
* End
|
|
701
701
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
702
702
|
*/
|
|
703
703
|
end: [{
|
|
704
|
-
end:
|
|
704
|
+
end: A()
|
|
705
705
|
}],
|
|
706
706
|
/**
|
|
707
707
|
* Top
|
|
708
708
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
709
709
|
*/
|
|
710
710
|
top: [{
|
|
711
|
-
top:
|
|
711
|
+
top: A()
|
|
712
712
|
}],
|
|
713
713
|
/**
|
|
714
714
|
* Right
|
|
715
715
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
716
716
|
*/
|
|
717
717
|
right: [{
|
|
718
|
-
right:
|
|
718
|
+
right: A()
|
|
719
719
|
}],
|
|
720
720
|
/**
|
|
721
721
|
* Bottom
|
|
722
722
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
723
723
|
*/
|
|
724
724
|
bottom: [{
|
|
725
|
-
bottom:
|
|
725
|
+
bottom: A()
|
|
726
726
|
}],
|
|
727
727
|
/**
|
|
728
728
|
* Left
|
|
729
729
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
730
730
|
*/
|
|
731
731
|
left: [{
|
|
732
|
-
left:
|
|
732
|
+
left: A()
|
|
733
733
|
}],
|
|
734
734
|
/**
|
|
735
735
|
* Visibility
|
|
@@ -751,7 +751,7 @@ const L = (e) => {
|
|
|
751
751
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
752
752
|
*/
|
|
753
753
|
basis: [{
|
|
754
|
-
basis: [ae, "full", "auto", l, ...
|
|
754
|
+
basis: [ae, "full", "auto", l, ...y()]
|
|
755
755
|
}],
|
|
756
756
|
/**
|
|
757
757
|
* Flex Direction
|
|
@@ -877,21 +877,21 @@ const L = (e) => {
|
|
|
877
877
|
* @see https://tailwindcss.com/docs/gap
|
|
878
878
|
*/
|
|
879
879
|
gap: [{
|
|
880
|
-
gap:
|
|
880
|
+
gap: y()
|
|
881
881
|
}],
|
|
882
882
|
/**
|
|
883
883
|
* Gap X
|
|
884
884
|
* @see https://tailwindcss.com/docs/gap
|
|
885
885
|
*/
|
|
886
886
|
"gap-x": [{
|
|
887
|
-
"gap-x":
|
|
887
|
+
"gap-x": y()
|
|
888
888
|
}],
|
|
889
889
|
/**
|
|
890
890
|
* Gap Y
|
|
891
891
|
* @see https://tailwindcss.com/docs/gap
|
|
892
892
|
*/
|
|
893
893
|
"gap-y": [{
|
|
894
|
-
"gap-y":
|
|
894
|
+
"gap-y": y()
|
|
895
895
|
}],
|
|
896
896
|
/**
|
|
897
897
|
* Justify Content
|
|
@@ -966,63 +966,63 @@ const L = (e) => {
|
|
|
966
966
|
* @see https://tailwindcss.com/docs/padding
|
|
967
967
|
*/
|
|
968
968
|
p: [{
|
|
969
|
-
p:
|
|
969
|
+
p: y()
|
|
970
970
|
}],
|
|
971
971
|
/**
|
|
972
972
|
* Padding X
|
|
973
973
|
* @see https://tailwindcss.com/docs/padding
|
|
974
974
|
*/
|
|
975
975
|
px: [{
|
|
976
|
-
px:
|
|
976
|
+
px: y()
|
|
977
977
|
}],
|
|
978
978
|
/**
|
|
979
979
|
* Padding Y
|
|
980
980
|
* @see https://tailwindcss.com/docs/padding
|
|
981
981
|
*/
|
|
982
982
|
py: [{
|
|
983
|
-
py:
|
|
983
|
+
py: y()
|
|
984
984
|
}],
|
|
985
985
|
/**
|
|
986
986
|
* Padding Start
|
|
987
987
|
* @see https://tailwindcss.com/docs/padding
|
|
988
988
|
*/
|
|
989
989
|
ps: [{
|
|
990
|
-
ps:
|
|
990
|
+
ps: y()
|
|
991
991
|
}],
|
|
992
992
|
/**
|
|
993
993
|
* Padding End
|
|
994
994
|
* @see https://tailwindcss.com/docs/padding
|
|
995
995
|
*/
|
|
996
996
|
pe: [{
|
|
997
|
-
pe:
|
|
997
|
+
pe: y()
|
|
998
998
|
}],
|
|
999
999
|
/**
|
|
1000
1000
|
* Padding Top
|
|
1001
1001
|
* @see https://tailwindcss.com/docs/padding
|
|
1002
1002
|
*/
|
|
1003
1003
|
pt: [{
|
|
1004
|
-
pt:
|
|
1004
|
+
pt: y()
|
|
1005
1005
|
}],
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Padding Right
|
|
1008
1008
|
* @see https://tailwindcss.com/docs/padding
|
|
1009
1009
|
*/
|
|
1010
1010
|
pr: [{
|
|
1011
|
-
pr:
|
|
1011
|
+
pr: y()
|
|
1012
1012
|
}],
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Padding Bottom
|
|
1015
1015
|
* @see https://tailwindcss.com/docs/padding
|
|
1016
1016
|
*/
|
|
1017
1017
|
pb: [{
|
|
1018
|
-
pb:
|
|
1018
|
+
pb: y()
|
|
1019
1019
|
}],
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Padding Left
|
|
1022
1022
|
* @see https://tailwindcss.com/docs/padding
|
|
1023
1023
|
*/
|
|
1024
1024
|
pl: [{
|
|
1025
|
-
pl:
|
|
1025
|
+
pl: y()
|
|
1026
1026
|
}],
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Margin
|
|
@@ -1092,7 +1092,7 @@ const L = (e) => {
|
|
|
1092
1092
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1093
1093
|
*/
|
|
1094
1094
|
"space-x": [{
|
|
1095
|
-
"space-x":
|
|
1095
|
+
"space-x": y()
|
|
1096
1096
|
}],
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Space Between X Reverse
|
|
@@ -1104,7 +1104,7 @@ const L = (e) => {
|
|
|
1104
1104
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1105
1105
|
*/
|
|
1106
1106
|
"space-y": [{
|
|
1107
|
-
"space-y":
|
|
1107
|
+
"space-y": y()
|
|
1108
1108
|
}],
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Space Between Y Reverse
|
|
@@ -1273,7 +1273,7 @@ const L = (e) => {
|
|
|
1273
1273
|
leading: [
|
|
1274
1274
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1275
1275
|
s,
|
|
1276
|
-
...
|
|
1276
|
+
...y()
|
|
1277
1277
|
]
|
|
1278
1278
|
}],
|
|
1279
1279
|
/**
|
|
@@ -1374,7 +1374,7 @@ const L = (e) => {
|
|
|
1374
1374
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1375
1375
|
*/
|
|
1376
1376
|
indent: [{
|
|
1377
|
-
indent:
|
|
1377
|
+
indent: y()
|
|
1378
1378
|
}],
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Vertical Alignment
|
|
@@ -1461,7 +1461,7 @@ const L = (e) => {
|
|
|
1461
1461
|
* @see https://tailwindcss.com/docs/background-size
|
|
1462
1462
|
*/
|
|
1463
1463
|
"bg-size": [{
|
|
1464
|
-
bg:
|
|
1464
|
+
bg: F()
|
|
1465
1465
|
}],
|
|
1466
1466
|
/**
|
|
1467
1467
|
* Background Image
|
|
@@ -1488,21 +1488,21 @@ const L = (e) => {
|
|
|
1488
1488
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1489
1489
|
*/
|
|
1490
1490
|
"gradient-from-pos": [{
|
|
1491
|
-
from:
|
|
1491
|
+
from: V()
|
|
1492
1492
|
}],
|
|
1493
1493
|
/**
|
|
1494
1494
|
* Gradient Color Stops Via Position
|
|
1495
1495
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1496
1496
|
*/
|
|
1497
1497
|
"gradient-via-pos": [{
|
|
1498
|
-
via:
|
|
1498
|
+
via: V()
|
|
1499
1499
|
}],
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Gradient Color Stops To Position
|
|
1502
1502
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1503
1503
|
*/
|
|
1504
1504
|
"gradient-to-pos": [{
|
|
1505
|
-
to:
|
|
1505
|
+
to: V()
|
|
1506
1506
|
}],
|
|
1507
1507
|
/**
|
|
1508
1508
|
* Gradient Color Stops From
|
|
@@ -2088,7 +2088,7 @@ const L = (e) => {
|
|
|
2088
2088
|
}]
|
|
2089
2089
|
}],
|
|
2090
2090
|
"mask-image-radial-pos": [{
|
|
2091
|
-
"mask-radial-at":
|
|
2091
|
+
"mask-radial-at": I()
|
|
2092
2092
|
}],
|
|
2093
2093
|
"mask-image-conic-pos": [{
|
|
2094
2094
|
"mask-conic": [z]
|
|
@@ -2138,7 +2138,7 @@ const L = (e) => {
|
|
|
2138
2138
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2139
2139
|
*/
|
|
2140
2140
|
"mask-size": [{
|
|
2141
|
-
mask:
|
|
2141
|
+
mask: F()
|
|
2142
2142
|
}],
|
|
2143
2143
|
/**
|
|
2144
2144
|
* Mask Type
|
|
@@ -2200,7 +2200,7 @@ const L = (e) => {
|
|
|
2200
2200
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2201
2201
|
"",
|
|
2202
2202
|
"none",
|
|
2203
|
-
|
|
2203
|
+
M,
|
|
2204
2204
|
ye,
|
|
2205
2205
|
xe
|
|
2206
2206
|
]
|
|
@@ -2338,21 +2338,21 @@ const L = (e) => {
|
|
|
2338
2338
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2339
2339
|
*/
|
|
2340
2340
|
"border-spacing": [{
|
|
2341
|
-
"border-spacing":
|
|
2341
|
+
"border-spacing": y()
|
|
2342
2342
|
}],
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Border Spacing X
|
|
2345
2345
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2346
2346
|
*/
|
|
2347
2347
|
"border-spacing-x": [{
|
|
2348
|
-
"border-spacing-x":
|
|
2348
|
+
"border-spacing-x": y()
|
|
2349
2349
|
}],
|
|
2350
2350
|
/**
|
|
2351
2351
|
* Border Spacing Y
|
|
2352
2352
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2353
2353
|
*/
|
|
2354
2354
|
"border-spacing-y": [{
|
|
2355
|
-
"border-spacing-y":
|
|
2355
|
+
"border-spacing-y": y()
|
|
2356
2356
|
}],
|
|
2357
2357
|
/**
|
|
2358
2358
|
* Table Layout
|
|
@@ -2397,7 +2397,7 @@ const L = (e) => {
|
|
|
2397
2397
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2398
2398
|
*/
|
|
2399
2399
|
ease: [{
|
|
2400
|
-
ease: ["linear", "initial",
|
|
2400
|
+
ease: ["linear", "initial", g, x, b]
|
|
2401
2401
|
}],
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Transition Delay
|
|
@@ -2411,7 +2411,7 @@ const L = (e) => {
|
|
|
2411
2411
|
* @see https://tailwindcss.com/docs/animation
|
|
2412
2412
|
*/
|
|
2413
2413
|
animate: [{
|
|
2414
|
-
animate: ["none",
|
|
2414
|
+
animate: ["none", E, x, b]
|
|
2415
2415
|
}],
|
|
2416
2416
|
// ------------------
|
|
2417
2417
|
// --- Transforms ---
|
|
@@ -2435,7 +2435,7 @@ const L = (e) => {
|
|
|
2435
2435
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2436
2436
|
*/
|
|
2437
2437
|
"perspective-origin": [{
|
|
2438
|
-
"perspective-origin":
|
|
2438
|
+
"perspective-origin": T()
|
|
2439
2439
|
}],
|
|
2440
2440
|
/**
|
|
2441
2441
|
* Rotate
|
|
@@ -2531,7 +2531,7 @@ const L = (e) => {
|
|
|
2531
2531
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2532
2532
|
*/
|
|
2533
2533
|
"transform-origin": [{
|
|
2534
|
-
origin:
|
|
2534
|
+
origin: T()
|
|
2535
2535
|
}],
|
|
2536
2536
|
/**
|
|
2537
2537
|
* Transform Style
|
|
@@ -2644,126 +2644,126 @@ const L = (e) => {
|
|
|
2644
2644
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2645
2645
|
*/
|
|
2646
2646
|
"scroll-m": [{
|
|
2647
|
-
"scroll-m":
|
|
2647
|
+
"scroll-m": y()
|
|
2648
2648
|
}],
|
|
2649
2649
|
/**
|
|
2650
2650
|
* Scroll Margin X
|
|
2651
2651
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2652
2652
|
*/
|
|
2653
2653
|
"scroll-mx": [{
|
|
2654
|
-
"scroll-mx":
|
|
2654
|
+
"scroll-mx": y()
|
|
2655
2655
|
}],
|
|
2656
2656
|
/**
|
|
2657
2657
|
* Scroll Margin Y
|
|
2658
2658
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2659
2659
|
*/
|
|
2660
2660
|
"scroll-my": [{
|
|
2661
|
-
"scroll-my":
|
|
2661
|
+
"scroll-my": y()
|
|
2662
2662
|
}],
|
|
2663
2663
|
/**
|
|
2664
2664
|
* Scroll Margin Start
|
|
2665
2665
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2666
2666
|
*/
|
|
2667
2667
|
"scroll-ms": [{
|
|
2668
|
-
"scroll-ms":
|
|
2668
|
+
"scroll-ms": y()
|
|
2669
2669
|
}],
|
|
2670
2670
|
/**
|
|
2671
2671
|
* Scroll Margin End
|
|
2672
2672
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2673
2673
|
*/
|
|
2674
2674
|
"scroll-me": [{
|
|
2675
|
-
"scroll-me":
|
|
2675
|
+
"scroll-me": y()
|
|
2676
2676
|
}],
|
|
2677
2677
|
/**
|
|
2678
2678
|
* Scroll Margin Top
|
|
2679
2679
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2680
2680
|
*/
|
|
2681
2681
|
"scroll-mt": [{
|
|
2682
|
-
"scroll-mt":
|
|
2682
|
+
"scroll-mt": y()
|
|
2683
2683
|
}],
|
|
2684
2684
|
/**
|
|
2685
2685
|
* Scroll Margin Right
|
|
2686
2686
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2687
2687
|
*/
|
|
2688
2688
|
"scroll-mr": [{
|
|
2689
|
-
"scroll-mr":
|
|
2689
|
+
"scroll-mr": y()
|
|
2690
2690
|
}],
|
|
2691
2691
|
/**
|
|
2692
2692
|
* Scroll Margin Bottom
|
|
2693
2693
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2694
2694
|
*/
|
|
2695
2695
|
"scroll-mb": [{
|
|
2696
|
-
"scroll-mb":
|
|
2696
|
+
"scroll-mb": y()
|
|
2697
2697
|
}],
|
|
2698
2698
|
/**
|
|
2699
2699
|
* Scroll Margin Left
|
|
2700
2700
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2701
2701
|
*/
|
|
2702
2702
|
"scroll-ml": [{
|
|
2703
|
-
"scroll-ml":
|
|
2703
|
+
"scroll-ml": y()
|
|
2704
2704
|
}],
|
|
2705
2705
|
/**
|
|
2706
2706
|
* Scroll Padding
|
|
2707
2707
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2708
2708
|
*/
|
|
2709
2709
|
"scroll-p": [{
|
|
2710
|
-
"scroll-p":
|
|
2710
|
+
"scroll-p": y()
|
|
2711
2711
|
}],
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Scroll Padding X
|
|
2714
2714
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2715
2715
|
*/
|
|
2716
2716
|
"scroll-px": [{
|
|
2717
|
-
"scroll-px":
|
|
2717
|
+
"scroll-px": y()
|
|
2718
2718
|
}],
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Scroll Padding Y
|
|
2721
2721
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2722
2722
|
*/
|
|
2723
2723
|
"scroll-py": [{
|
|
2724
|
-
"scroll-py":
|
|
2724
|
+
"scroll-py": y()
|
|
2725
2725
|
}],
|
|
2726
2726
|
/**
|
|
2727
2727
|
* Scroll Padding Start
|
|
2728
2728
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2729
2729
|
*/
|
|
2730
2730
|
"scroll-ps": [{
|
|
2731
|
-
"scroll-ps":
|
|
2731
|
+
"scroll-ps": y()
|
|
2732
2732
|
}],
|
|
2733
2733
|
/**
|
|
2734
2734
|
* Scroll Padding End
|
|
2735
2735
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2736
2736
|
*/
|
|
2737
2737
|
"scroll-pe": [{
|
|
2738
|
-
"scroll-pe":
|
|
2738
|
+
"scroll-pe": y()
|
|
2739
2739
|
}],
|
|
2740
2740
|
/**
|
|
2741
2741
|
* Scroll Padding Top
|
|
2742
2742
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2743
2743
|
*/
|
|
2744
2744
|
"scroll-pt": [{
|
|
2745
|
-
"scroll-pt":
|
|
2745
|
+
"scroll-pt": y()
|
|
2746
2746
|
}],
|
|
2747
2747
|
/**
|
|
2748
2748
|
* Scroll Padding Right
|
|
2749
2749
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2750
2750
|
*/
|
|
2751
2751
|
"scroll-pr": [{
|
|
2752
|
-
"scroll-pr":
|
|
2752
|
+
"scroll-pr": y()
|
|
2753
2753
|
}],
|
|
2754
2754
|
/**
|
|
2755
2755
|
* Scroll Padding Bottom
|
|
2756
2756
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2757
2757
|
*/
|
|
2758
2758
|
"scroll-pb": [{
|
|
2759
|
-
"scroll-pb":
|
|
2759
|
+
"scroll-pb": y()
|
|
2760
2760
|
}],
|
|
2761
2761
|
/**
|
|
2762
2762
|
* Scroll Padding Left
|
|
2763
2763
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2764
2764
|
*/
|
|
2765
2765
|
"scroll-pl": [{
|
|
2766
|
-
"scroll-pl":
|
|
2766
|
+
"scroll-pl": y()
|
|
2767
2767
|
}],
|
|
2768
2768
|
/**
|
|
2769
2769
|
* Scroll Snap Align
|
|
@@ -2927,7 +2927,7 @@ const L = (e) => {
|
|
|
2927
2927
|
function f(...e) {
|
|
2928
2928
|
return kr(rt(e));
|
|
2929
2929
|
}
|
|
2930
|
-
const K =
|
|
2930
|
+
const K = w.forwardRef(
|
|
2931
2931
|
({ className: e, variant: t, size: o, asChild: a = !1, disabled: n, ...s }, i) => /* @__PURE__ */ r(
|
|
2932
2932
|
a ? Ot : "button",
|
|
2933
2933
|
{
|
|
@@ -3118,15 +3118,15 @@ const zr = (e) => {
|
|
|
3118
3118
|
Footer: Er
|
|
3119
3119
|
});
|
|
3120
3120
|
function Rr(e, t, o, a, n, s) {
|
|
3121
|
-
const i = (e - 90) * Math.PI / 180, l = (t - 90) * Math.PI / 180, c = n + o * Math.cos(i), m = s + o * Math.sin(i), u = n + o * Math.cos(l), d = s + o * Math.sin(l), h = n + a * Math.cos(l),
|
|
3121
|
+
const i = (e - 90) * Math.PI / 180, l = (t - 90) * Math.PI / 180, c = n + o * Math.cos(i), m = s + o * Math.sin(i), u = n + o * Math.cos(l), d = s + o * Math.sin(l), h = n + a * Math.cos(l), M = s + a * Math.sin(l), v = n + a * Math.cos(i), N = s + a * Math.sin(i), k = t - e > 180 ? 1 : 0;
|
|
3122
3122
|
return [
|
|
3123
3123
|
`M ${c} ${m}`,
|
|
3124
3124
|
// Move to start point on outer arc
|
|
3125
|
-
`A ${o} ${o} 0 ${
|
|
3125
|
+
`A ${o} ${o} 0 ${k} 1 ${u} ${d}`,
|
|
3126
3126
|
// Outer arc
|
|
3127
|
-
`L ${h} ${
|
|
3127
|
+
`L ${h} ${M}`,
|
|
3128
3128
|
// Line to inner arc
|
|
3129
|
-
`A ${a} ${a} 0 ${
|
|
3129
|
+
`A ${a} ${a} 0 ${k} 0 ${v} ${N}`,
|
|
3130
3130
|
// Inner arc (reverse)
|
|
3131
3131
|
"Z"
|
|
3132
3132
|
// Close path
|
|
@@ -3153,7 +3153,7 @@ function jr(e, t, o, a, n) {
|
|
|
3153
3153
|
}), i = d;
|
|
3154
3154
|
}), l;
|
|
3155
3155
|
}
|
|
3156
|
-
const ft =
|
|
3156
|
+
const ft = w.forwardRef(
|
|
3157
3157
|
({
|
|
3158
3158
|
segments: e,
|
|
3159
3159
|
size: t = 300,
|
|
@@ -3165,22 +3165,22 @@ const ft = v.forwardRef(
|
|
|
3165
3165
|
onSegmentClick: l,
|
|
3166
3166
|
onSegmentHover: c
|
|
3167
3167
|
}, m) => {
|
|
3168
|
-
const [u, d] =
|
|
3168
|
+
const [u, d] = w.useState(null), h = t / 2, M = t / 2, v = 2, N = t / 2 - v, k = N * o, g = jr(
|
|
3169
3169
|
e,
|
|
3170
3170
|
N,
|
|
3171
|
-
|
|
3171
|
+
k,
|
|
3172
3172
|
h,
|
|
3173
|
-
|
|
3174
|
-
),
|
|
3175
|
-
d(
|
|
3176
|
-
},
|
|
3173
|
+
M
|
|
3174
|
+
), E = (I) => {
|
|
3175
|
+
d(I), c?.(I);
|
|
3176
|
+
}, P = s === "left" || s === "right";
|
|
3177
3177
|
return /* @__PURE__ */ p(
|
|
3178
3178
|
"div",
|
|
3179
3179
|
{
|
|
3180
3180
|
ref: m,
|
|
3181
3181
|
className: f(
|
|
3182
3182
|
"flex gap-4",
|
|
3183
|
-
|
|
3183
|
+
P ? "flex-row items-center" : "flex-col items-center",
|
|
3184
3184
|
s === "right" && "flex-row-reverse",
|
|
3185
3185
|
s === "top" && "flex-col-reverse",
|
|
3186
3186
|
i
|
|
@@ -3192,29 +3192,29 @@ const ft = v.forwardRef(
|
|
|
3192
3192
|
className: "relative inline-block",
|
|
3193
3193
|
style: { width: t, height: t },
|
|
3194
3194
|
children: [
|
|
3195
|
-
/* @__PURE__ */ r("svg", { width: t, height: t, viewBox: `0 0 ${t} ${t}`, children:
|
|
3195
|
+
/* @__PURE__ */ r("svg", { width: t, height: t, viewBox: `0 0 ${t} ${t}`, children: g.map(({ path: I, segment: T }, L) => /* @__PURE__ */ r(
|
|
3196
3196
|
"path",
|
|
3197
3197
|
{
|
|
3198
|
-
d:
|
|
3199
|
-
fill:
|
|
3198
|
+
d: I,
|
|
3199
|
+
fill: T.color,
|
|
3200
3200
|
stroke: "white",
|
|
3201
|
-
strokeWidth:
|
|
3201
|
+
strokeWidth: v,
|
|
3202
3202
|
className: f(
|
|
3203
3203
|
"transition-opacity duration-200",
|
|
3204
|
-
u && u !==
|
|
3204
|
+
u && u !== T && "opacity-50",
|
|
3205
3205
|
l && "cursor-pointer"
|
|
3206
3206
|
),
|
|
3207
|
-
onMouseEnter: () => T
|
|
3208
|
-
onMouseLeave: () =>
|
|
3209
|
-
onClick: () => l?.(
|
|
3207
|
+
onMouseEnter: () => E(T),
|
|
3208
|
+
onMouseLeave: () => E(null),
|
|
3209
|
+
onClick: () => l?.(T)
|
|
3210
3210
|
},
|
|
3211
|
-
`${
|
|
3211
|
+
`${T.label}-${L}`
|
|
3212
3212
|
)) }),
|
|
3213
3213
|
a && /* @__PURE__ */ r(
|
|
3214
3214
|
"div",
|
|
3215
3215
|
{
|
|
3216
3216
|
className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-center",
|
|
3217
|
-
style: { maxWidth:
|
|
3217
|
+
style: { maxWidth: k * 1.8 },
|
|
3218
3218
|
children: a
|
|
3219
3219
|
}
|
|
3220
3220
|
)
|
|
@@ -3226,31 +3226,31 @@ const ft = v.forwardRef(
|
|
|
3226
3226
|
{
|
|
3227
3227
|
className: f(
|
|
3228
3228
|
"flex gap-2",
|
|
3229
|
-
|
|
3229
|
+
P ? "flex-col" : "flex-row flex-wrap justify-center"
|
|
3230
3230
|
),
|
|
3231
|
-
children: e.map((
|
|
3231
|
+
children: e.map((I, T) => /* @__PURE__ */ p(
|
|
3232
3232
|
"div",
|
|
3233
3233
|
{
|
|
3234
3234
|
className: f(
|
|
3235
3235
|
"flex items-center gap-2 text-sm transition-opacity duration-200",
|
|
3236
|
-
u && u !==
|
|
3236
|
+
u && u !== I && "opacity-50",
|
|
3237
3237
|
l && "cursor-pointer"
|
|
3238
3238
|
),
|
|
3239
|
-
onMouseEnter: () =>
|
|
3240
|
-
onMouseLeave: () =>
|
|
3241
|
-
onClick: () => l?.(
|
|
3239
|
+
onMouseEnter: () => E(I),
|
|
3240
|
+
onMouseLeave: () => E(null),
|
|
3241
|
+
onClick: () => l?.(I),
|
|
3242
3242
|
children: [
|
|
3243
3243
|
/* @__PURE__ */ r(
|
|
3244
3244
|
"div",
|
|
3245
3245
|
{
|
|
3246
3246
|
className: "h-3 w-3 rounded-sm flex-shrink-0",
|
|
3247
|
-
style: { backgroundColor:
|
|
3247
|
+
style: { backgroundColor: I.color }
|
|
3248
3248
|
}
|
|
3249
3249
|
),
|
|
3250
|
-
/* @__PURE__ */ r("span", { className: "text-muted-foreground", children:
|
|
3250
|
+
/* @__PURE__ */ r("span", { className: "text-muted-foreground", children: I.label })
|
|
3251
3251
|
]
|
|
3252
3252
|
},
|
|
3253
|
-
`${
|
|
3253
|
+
`${I.label}-${T}`
|
|
3254
3254
|
))
|
|
3255
3255
|
}
|
|
3256
3256
|
)
|
|
@@ -3267,17 +3267,17 @@ function ea(e, t, o = {}) {
|
|
|
3267
3267
|
enableSearch: s = !1
|
|
3268
3268
|
} = o, [i, l] = ee(
|
|
3269
3269
|
a
|
|
3270
|
-
), [c, m] = ee(n), [u, d] = ee(""), h = Ne(() => It(e, i), [e, i]),
|
|
3270
|
+
), [c, m] = ee(n), [u, d] = ee(""), h = Ne(() => It(e, i), [e, i]), M = Ne(() => {
|
|
3271
3271
|
if (!s || !u.trim())
|
|
3272
3272
|
return h;
|
|
3273
|
-
const
|
|
3273
|
+
const g = u.toLowerCase();
|
|
3274
3274
|
return h.filter(
|
|
3275
|
-
(
|
|
3275
|
+
(E) => E.title.toLowerCase().includes(g) || E.subtitle?.toLowerCase().includes(g)
|
|
3276
3276
|
);
|
|
3277
|
-
}, [h, u, s]),
|
|
3278
|
-
(
|
|
3277
|
+
}, [h, u, s]), v = Ne(() => c ? Et(M, c) : M, [M, c]), N = He(
|
|
3278
|
+
(g) => Rt(e, g),
|
|
3279
3279
|
[e]
|
|
3280
|
-
),
|
|
3280
|
+
), k = He(() => {
|
|
3281
3281
|
l(a), m(n), d("");
|
|
3282
3282
|
}, [a, n]);
|
|
3283
3283
|
return {
|
|
@@ -3287,9 +3287,9 @@ function ea(e, t, o = {}) {
|
|
|
3287
3287
|
setSort: m,
|
|
3288
3288
|
searchQuery: u,
|
|
3289
3289
|
setSearchQuery: d,
|
|
3290
|
-
filteredEntities:
|
|
3290
|
+
filteredEntities: v,
|
|
3291
3291
|
getCategoryCount: N,
|
|
3292
|
-
resetFilters:
|
|
3292
|
+
resetFilters: k
|
|
3293
3293
|
};
|
|
3294
3294
|
}
|
|
3295
3295
|
const Ar = J(
|
|
@@ -3314,7 +3314,7 @@ const Ar = J(
|
|
|
3314
3314
|
size: "default"
|
|
3315
3315
|
}
|
|
3316
3316
|
}
|
|
3317
|
-
), Oe =
|
|
3317
|
+
), Oe = w.forwardRef(
|
|
3318
3318
|
({
|
|
3319
3319
|
className: e,
|
|
3320
3320
|
variant: t,
|
|
@@ -3358,7 +3358,7 @@ const Ar = J(
|
|
|
3358
3358
|
)
|
|
3359
3359
|
);
|
|
3360
3360
|
Oe.displayName = "Chip";
|
|
3361
|
-
const ht =
|
|
3361
|
+
const ht = w.forwardRef(
|
|
3362
3362
|
({
|
|
3363
3363
|
categories: e,
|
|
3364
3364
|
activeCategory: t,
|
|
@@ -3383,7 +3383,7 @@ const ht = v.forwardRef(
|
|
|
3383
3383
|
"aria-controls": `entities-panel-${l.id}`,
|
|
3384
3384
|
selected: c,
|
|
3385
3385
|
variant: c ? "selected" : "outline",
|
|
3386
|
-
icon: typeof l.icon == "string" ? l.icon : l.icon ?
|
|
3386
|
+
icon: typeof l.icon == "string" ? l.icon : l.icon ? w.createElement(l.icon) : void 0,
|
|
3387
3387
|
onClick: () => o(c ? null : l.id),
|
|
3388
3388
|
children: [
|
|
3389
3389
|
l.label,
|
|
@@ -3459,7 +3459,7 @@ const Lr = J(
|
|
|
3459
3459
|
defaultVariants: {
|
|
3460
3460
|
variant: "default"
|
|
3461
3461
|
}
|
|
3462
|
-
}), ne =
|
|
3462
|
+
}), ne = w.forwardRef(
|
|
3463
3463
|
({
|
|
3464
3464
|
className: e,
|
|
3465
3465
|
containerClassName: t,
|
|
@@ -3474,15 +3474,15 @@ const Lr = J(
|
|
|
3474
3474
|
suffix: u,
|
|
3475
3475
|
id: d,
|
|
3476
3476
|
...h
|
|
3477
|
-
},
|
|
3478
|
-
const
|
|
3477
|
+
}, M) => {
|
|
3478
|
+
const v = w.useId(), N = d || v, k = `${N}-helper`, g = `${N}-error`, E = l ? "error" : a, P = l || i;
|
|
3479
3479
|
return /* @__PURE__ */ p("div", { className: f("w-full", t), children: [
|
|
3480
3480
|
s && /* @__PURE__ */ r(
|
|
3481
3481
|
"label",
|
|
3482
3482
|
{
|
|
3483
3483
|
htmlFor: N,
|
|
3484
3484
|
className: f(
|
|
3485
|
-
$r({ variant:
|
|
3485
|
+
$r({ variant: E, required: c }),
|
|
3486
3486
|
o
|
|
3487
3487
|
),
|
|
3488
3488
|
children: s
|
|
@@ -3494,34 +3494,34 @@ const Lr = J(
|
|
|
3494
3494
|
"input",
|
|
3495
3495
|
{
|
|
3496
3496
|
id: N,
|
|
3497
|
-
ref:
|
|
3497
|
+
ref: M,
|
|
3498
3498
|
className: f(
|
|
3499
|
-
Lr({ variant:
|
|
3499
|
+
Lr({ variant: E, inputSize: n }),
|
|
3500
3500
|
m && "pl-10",
|
|
3501
3501
|
u && "pr-10",
|
|
3502
3502
|
e
|
|
3503
3503
|
),
|
|
3504
3504
|
"aria-invalid": l ? "true" : "false",
|
|
3505
|
-
"aria-describedby":
|
|
3505
|
+
"aria-describedby": P ? l ? g : k : void 0,
|
|
3506
3506
|
...h
|
|
3507
3507
|
}
|
|
3508
3508
|
),
|
|
3509
3509
|
u && /* @__PURE__ */ r("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: u })
|
|
3510
3510
|
] }),
|
|
3511
|
-
|
|
3511
|
+
P && /* @__PURE__ */ r(
|
|
3512
3512
|
"p",
|
|
3513
3513
|
{
|
|
3514
|
-
id: l ?
|
|
3515
|
-
className: Or({ variant:
|
|
3514
|
+
id: l ? g : k,
|
|
3515
|
+
className: Or({ variant: E }),
|
|
3516
3516
|
role: l ? "alert" : void 0,
|
|
3517
|
-
children:
|
|
3517
|
+
children: P
|
|
3518
3518
|
}
|
|
3519
3519
|
)
|
|
3520
3520
|
] });
|
|
3521
3521
|
}
|
|
3522
3522
|
);
|
|
3523
3523
|
ne.displayName = "Input";
|
|
3524
|
-
const
|
|
3524
|
+
const _r = (e) => {
|
|
3525
3525
|
switch (e) {
|
|
3526
3526
|
case "sm":
|
|
3527
3527
|
return "max-w-md";
|
|
@@ -3534,7 +3534,7 @@ const Vr = (e) => {
|
|
|
3534
3534
|
default:
|
|
3535
3535
|
return "max-w-2xl";
|
|
3536
3536
|
}
|
|
3537
|
-
},
|
|
3537
|
+
}, Vr = ({
|
|
3538
3538
|
isOpen: e,
|
|
3539
3539
|
onClose: t,
|
|
3540
3540
|
title: o,
|
|
@@ -3547,10 +3547,10 @@ const Vr = (e) => {
|
|
|
3547
3547
|
const c = Ae.useRef(null);
|
|
3548
3548
|
if (Ce(() => {
|
|
3549
3549
|
if (!e || !l) return;
|
|
3550
|
-
const
|
|
3550
|
+
const v = (N) => {
|
|
3551
3551
|
N.key === "Escape" && t();
|
|
3552
3552
|
};
|
|
3553
|
-
return document.addEventListener("keydown",
|
|
3553
|
+
return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
|
|
3554
3554
|
}, [e, l, t]), Ce(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
3555
3555
|
document.body.style.overflow = "unset";
|
|
3556
3556
|
}), [e]), Ce(() => {
|
|
@@ -3560,10 +3560,10 @@ const Vr = (e) => {
|
|
|
3560
3560
|
"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"
|
|
3561
3561
|
), u = f(
|
|
3562
3562
|
"bg-card rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden flex flex-col",
|
|
3563
|
-
|
|
3563
|
+
_r(n)
|
|
3564
3564
|
), d = f(
|
|
3565
3565
|
"p-6 border-b border-border flex items-center justify-between"
|
|
3566
|
-
), h = f("p-6 overflow-y-auto flex-1"),
|
|
3566
|
+
), h = f("p-6 overflow-y-auto flex-1"), M = f(
|
|
3567
3567
|
"bg-none border-none text-xl cursor-pointer text-muted-foreground p-1 rounded-sm flex items-center justify-center hover:bg-accent hover:text-accent-foreground focus:outline-2 focus:outline-primary focus:outline-offset-2"
|
|
3568
3568
|
);
|
|
3569
3569
|
return /* @__PURE__ */ r(
|
|
@@ -3576,7 +3576,7 @@ const Vr = (e) => {
|
|
|
3576
3576
|
{
|
|
3577
3577
|
ref: c,
|
|
3578
3578
|
className: u,
|
|
3579
|
-
onClick: (
|
|
3579
|
+
onClick: (v) => v.stopPropagation(),
|
|
3580
3580
|
tabIndex: -1,
|
|
3581
3581
|
role: "dialog",
|
|
3582
3582
|
"aria-modal": "true",
|
|
@@ -3589,7 +3589,7 @@ const Vr = (e) => {
|
|
|
3589
3589
|
{
|
|
3590
3590
|
onClick: t,
|
|
3591
3591
|
"aria-label": "Close modal",
|
|
3592
|
-
className:
|
|
3592
|
+
className: M,
|
|
3593
3593
|
children: "×"
|
|
3594
3594
|
}
|
|
3595
3595
|
)
|
|
@@ -3600,11 +3600,11 @@ const Vr = (e) => {
|
|
|
3600
3600
|
)
|
|
3601
3601
|
}
|
|
3602
3602
|
);
|
|
3603
|
-
},
|
|
3603
|
+
}, Fr = ({
|
|
3604
3604
|
children: e,
|
|
3605
3605
|
actions: t,
|
|
3606
3606
|
...o
|
|
3607
|
-
}) => /* @__PURE__ */ p(
|
|
3607
|
+
}) => /* @__PURE__ */ p(Vr, { ...o, children: [
|
|
3608
3608
|
/* @__PURE__ */ r("div", { className: "p-6 overflow-y-auto flex-1", children: e }),
|
|
3609
3609
|
t && /* @__PURE__ */ r("div", { className: "p-6 border-t border-border flex justify-end gap-3", children: t })
|
|
3610
3610
|
] }), ta = ({
|
|
@@ -3616,7 +3616,7 @@ const Vr = (e) => {
|
|
|
3616
3616
|
confirmText: s = "Confirm",
|
|
3617
3617
|
cancelText: i = "Cancel"
|
|
3618
3618
|
}) => /* @__PURE__ */ r(
|
|
3619
|
-
|
|
3619
|
+
Fr,
|
|
3620
3620
|
{
|
|
3621
3621
|
isOpen: e,
|
|
3622
3622
|
onClose: t,
|
|
@@ -3943,7 +3943,7 @@ const bo = [
|
|
|
3943
3943
|
const yo = [
|
|
3944
3944
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3945
3945
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3946
|
-
], Ye = G("x", yo),
|
|
3946
|
+
], Ye = G("x", yo), _e = w.forwardRef(
|
|
3947
3947
|
({
|
|
3948
3948
|
className: e,
|
|
3949
3949
|
containerClassName: t,
|
|
@@ -3958,15 +3958,15 @@ const yo = [
|
|
|
3958
3958
|
placeholder: u,
|
|
3959
3959
|
id: d,
|
|
3960
3960
|
...h
|
|
3961
|
-
},
|
|
3962
|
-
const
|
|
3961
|
+
}, M) => {
|
|
3962
|
+
const v = w.useId(), N = d || v, k = `${N}-helper`, g = `${N}-error`, E = l ? "error" : a, P = l || i;
|
|
3963
3963
|
return /* @__PURE__ */ p("div", { className: f("w-full", t), children: [
|
|
3964
3964
|
s && /* @__PURE__ */ r(
|
|
3965
3965
|
"label",
|
|
3966
3966
|
{
|
|
3967
3967
|
htmlFor: N,
|
|
3968
3968
|
className: f(
|
|
3969
|
-
Br({ variant:
|
|
3969
|
+
Br({ variant: E, required: c }),
|
|
3970
3970
|
o
|
|
3971
3971
|
),
|
|
3972
3972
|
children: s
|
|
@@ -3977,45 +3977,45 @@ const yo = [
|
|
|
3977
3977
|
"select",
|
|
3978
3978
|
{
|
|
3979
3979
|
id: N,
|
|
3980
|
-
ref:
|
|
3980
|
+
ref: M,
|
|
3981
3981
|
className: f(
|
|
3982
|
-
Dr({ variant:
|
|
3982
|
+
Dr({ variant: E, selectSize: n }),
|
|
3983
3983
|
"pr-10",
|
|
3984
3984
|
// Space for chevron icon
|
|
3985
3985
|
e
|
|
3986
3986
|
),
|
|
3987
3987
|
"aria-invalid": l ? "true" : "false",
|
|
3988
|
-
"aria-describedby":
|
|
3988
|
+
"aria-describedby": P ? l ? g : k : void 0,
|
|
3989
3989
|
...h,
|
|
3990
3990
|
children: [
|
|
3991
3991
|
u && /* @__PURE__ */ r("option", { value: "", disabled: !0, children: u }),
|
|
3992
|
-
m.map((
|
|
3992
|
+
m.map((I) => /* @__PURE__ */ r(
|
|
3993
3993
|
"option",
|
|
3994
3994
|
{
|
|
3995
|
-
value:
|
|
3996
|
-
disabled:
|
|
3997
|
-
children:
|
|
3995
|
+
value: I.value,
|
|
3996
|
+
disabled: I.disabled,
|
|
3997
|
+
children: I.label
|
|
3998
3998
|
},
|
|
3999
|
-
|
|
3999
|
+
I.value
|
|
4000
4000
|
))
|
|
4001
4001
|
]
|
|
4002
4002
|
}
|
|
4003
4003
|
),
|
|
4004
4004
|
/* @__PURE__ */ r("div", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ r(ro, { className: "h-4 w-4" }) })
|
|
4005
4005
|
] }),
|
|
4006
|
-
|
|
4006
|
+
P && /* @__PURE__ */ r(
|
|
4007
4007
|
"p",
|
|
4008
4008
|
{
|
|
4009
|
-
id: l ?
|
|
4010
|
-
className: Hr({ variant:
|
|
4009
|
+
id: l ? g : k,
|
|
4010
|
+
className: Hr({ variant: E }),
|
|
4011
4011
|
role: l ? "alert" : void 0,
|
|
4012
|
-
children:
|
|
4012
|
+
children: P
|
|
4013
4013
|
}
|
|
4014
4014
|
)
|
|
4015
4015
|
] });
|
|
4016
4016
|
}
|
|
4017
4017
|
);
|
|
4018
|
-
|
|
4018
|
+
_e.displayName = "Select";
|
|
4019
4019
|
const vo = (e) => {
|
|
4020
4020
|
switch (e) {
|
|
4021
4021
|
case "sm":
|
|
@@ -4027,7 +4027,7 @@ const vo = (e) => {
|
|
|
4027
4027
|
default:
|
|
4028
4028
|
return "p-0";
|
|
4029
4029
|
}
|
|
4030
|
-
},
|
|
4030
|
+
}, Ve = ({
|
|
4031
4031
|
children: e,
|
|
4032
4032
|
header: t,
|
|
4033
4033
|
sidebar: o,
|
|
@@ -4046,13 +4046,13 @@ const vo = (e) => {
|
|
|
4046
4046
|
] }),
|
|
4047
4047
|
a && /* @__PURE__ */ r("footer", { className: "bg-card border-t border-border mt-auto", children: a })
|
|
4048
4048
|
] });
|
|
4049
|
-
}, ra = ({ children: e, header: t, sidebar: o }) => /* @__PURE__ */ r(
|
|
4049
|
+
}, ra = ({ children: e, header: t, sidebar: o }) => /* @__PURE__ */ r(Ve, { header: t, sidebar: o, padding: "lg", children: /* @__PURE__ */ r("div", { className: "max-w-screen-2xl", children: e }) }), oa = ({ children: e, title: t, subtitle: o }) => /* @__PURE__ */ r(Ve, { padding: "lg", children: /* @__PURE__ */ p("div", { className: "max-w-md mx-auto", children: [
|
|
4050
4050
|
/* @__PURE__ */ p("div", { className: "text-center mb-8", children: [
|
|
4051
4051
|
t && /* @__PURE__ */ r(R, { variant: "h2", className: "mb-2", children: t }),
|
|
4052
4052
|
o && /* @__PURE__ */ r(R, { variant: "body", color: "muted", children: o })
|
|
4053
4053
|
] }),
|
|
4054
4054
|
e
|
|
4055
|
-
] }) }), aa = ({ children: e, header: t, footer: o }) => /* @__PURE__ */ r(
|
|
4055
|
+
] }) }), aa = ({ children: e, header: t, footer: o }) => /* @__PURE__ */ r(Ve, { header: t, footer: o, padding: "none", children: e }), bt = w.forwardRef(({ message: e = "No entities found", icon: t, action: o, className: a }, n) => /* @__PURE__ */ p(
|
|
4056
4056
|
"div",
|
|
4057
4057
|
{
|
|
4058
4058
|
ref: n,
|
|
@@ -4070,7 +4070,7 @@ const vo = (e) => {
|
|
|
4070
4070
|
}
|
|
4071
4071
|
));
|
|
4072
4072
|
bt.displayName = "EntityDirectoryEmptyState";
|
|
4073
|
-
const xt =
|
|
4073
|
+
const xt = w.forwardRef(({ error: e, onRetry: t, className: o }, a) => {
|
|
4074
4074
|
const n = typeof e == "string" ? e : e.message;
|
|
4075
4075
|
return /* @__PURE__ */ p(
|
|
4076
4076
|
"div",
|
|
@@ -4092,12 +4092,12 @@ const xt = v.forwardRef(({ error: e, onRetry: t, className: o }, a) => {
|
|
|
4092
4092
|
);
|
|
4093
4093
|
});
|
|
4094
4094
|
xt.displayName = "EntityDirectoryErrorState";
|
|
4095
|
-
const yt =
|
|
4095
|
+
const yt = w.forwardRef(({ title: e, description: t, className: o }, a) => /* @__PURE__ */ p("div", { ref: a, className: f("space-y-1.5", o), children: [
|
|
4096
4096
|
/* @__PURE__ */ r(R, { variant: "h2", className: "font-bold", children: e }),
|
|
4097
4097
|
t && /* @__PURE__ */ r(R, { variant: "body", className: "text-muted-foreground", children: t })
|
|
4098
4098
|
] }));
|
|
4099
4099
|
yt.displayName = "EntityDirectoryHeader";
|
|
4100
|
-
const vt =
|
|
4100
|
+
const vt = w.forwardRef(
|
|
4101
4101
|
({
|
|
4102
4102
|
entity: e,
|
|
4103
4103
|
categories: t,
|
|
@@ -4137,7 +4137,7 @@ const vt = v.forwardRef(
|
|
|
4137
4137
|
s ? "w-8 h-8 text-lg" : "w-10 h-10 text-xl"
|
|
4138
4138
|
),
|
|
4139
4139
|
"aria-hidden": "true",
|
|
4140
|
-
children: typeof e.icon == "string" ? /* @__PURE__ */ r("span", { children: e.icon }) : e.icon ?
|
|
4140
|
+
children: typeof e.icon == "string" ? /* @__PURE__ */ r("span", { children: e.icon }) : e.icon ? w.createElement(e.icon) : /* @__PURE__ */ r("span", { className: "text-muted-foreground", children: "•" })
|
|
4141
4141
|
}
|
|
4142
4142
|
),
|
|
4143
4143
|
/* @__PURE__ */ p("div", { className: "flex-1 min-w-0", children: [
|
|
@@ -4185,7 +4185,7 @@ const vt = v.forwardRef(
|
|
|
4185
4185
|
}
|
|
4186
4186
|
);
|
|
4187
4187
|
vt.displayName = "EntityDirectoryListItem";
|
|
4188
|
-
const wt =
|
|
4188
|
+
const wt = w.forwardRef(({ columns: e, showIcon: t, sort: o, onSortChange: a, compact: n, className: s }, i) => {
|
|
4189
4189
|
const l = (d) => {
|
|
4190
4190
|
if (!a) return;
|
|
4191
4191
|
const h = o?.column === d && o?.direction === "asc" ? "desc" : "asc";
|
|
@@ -4218,12 +4218,12 @@ const wt = v.forwardRef(({ columns: e, showIcon: t, sort: o, onSortChange: a, co
|
|
|
4218
4218
|
children: [
|
|
4219
4219
|
t && /* @__PURE__ */ r("div", { className: n ? "w-8" : "w-10" }),
|
|
4220
4220
|
e.map((d) => {
|
|
4221
|
-
const h = d.sortable && (d.key === "title" || d.key === "metric"),
|
|
4221
|
+
const h = d.sortable && (d.key === "title" || d.key === "metric"), M = o?.column === d.key;
|
|
4222
4222
|
return /* @__PURE__ */ p(
|
|
4223
4223
|
"div",
|
|
4224
4224
|
{
|
|
4225
4225
|
role: "columnheader",
|
|
4226
|
-
"aria-sort":
|
|
4226
|
+
"aria-sort": M ? o?.direction === "asc" ? "ascending" : "descending" : void 0,
|
|
4227
4227
|
className: f(
|
|
4228
4228
|
d.key === "title" && "flex-1",
|
|
4229
4229
|
d.key === "category" && "w-40",
|
|
@@ -4231,12 +4231,12 @@ const wt = v.forwardRef(({ columns: e, showIcon: t, sort: o, onSortChange: a, co
|
|
|
4231
4231
|
d.align === "center" && "text-center",
|
|
4232
4232
|
d.align === "right" && "text-right",
|
|
4233
4233
|
h && "cursor-pointer hover:text-foreground transition-colors select-none",
|
|
4234
|
-
|
|
4234
|
+
M && "text-foreground"
|
|
4235
4235
|
),
|
|
4236
4236
|
style: d.width ? { width: d.width } : void 0,
|
|
4237
4237
|
onClick: h && (d.key === "title" || d.key === "metric") ? () => c(d.key) : void 0,
|
|
4238
4238
|
tabIndex: h ? 0 : void 0,
|
|
4239
|
-
onKeyDown: h && (d.key === "title" || d.key === "metric") ? (
|
|
4239
|
+
onKeyDown: h && (d.key === "title" || d.key === "metric") ? (v) => m(v, d.key) : void 0,
|
|
4240
4240
|
children: [
|
|
4241
4241
|
d.label,
|
|
4242
4242
|
h && u(d.key)
|
|
@@ -4250,7 +4250,7 @@ const wt = v.forwardRef(({ columns: e, showIcon: t, sort: o, onSortChange: a, co
|
|
|
4250
4250
|
);
|
|
4251
4251
|
});
|
|
4252
4252
|
wt.displayName = "EntityDirectoryTableHeader";
|
|
4253
|
-
const kt =
|
|
4253
|
+
const kt = w.forwardRef(
|
|
4254
4254
|
({
|
|
4255
4255
|
entities: e,
|
|
4256
4256
|
categories: t,
|
|
@@ -4265,7 +4265,7 @@ const kt = v.forwardRef(
|
|
|
4265
4265
|
renderItem: u,
|
|
4266
4266
|
className: d
|
|
4267
4267
|
}, h) => {
|
|
4268
|
-
const
|
|
4268
|
+
const M = [
|
|
4269
4269
|
{
|
|
4270
4270
|
key: "title",
|
|
4271
4271
|
label: s ? "Nombre" : "Name",
|
|
@@ -4295,7 +4295,7 @@ const kt = v.forwardRef(
|
|
|
4295
4295
|
/* @__PURE__ */ r(
|
|
4296
4296
|
wt,
|
|
4297
4297
|
{
|
|
4298
|
-
columns:
|
|
4298
|
+
columns: M,
|
|
4299
4299
|
showIcon: o,
|
|
4300
4300
|
sort: l,
|
|
4301
4301
|
onSortChange: c,
|
|
@@ -4303,17 +4303,17 @@ const kt = v.forwardRef(
|
|
|
4303
4303
|
}
|
|
4304
4304
|
),
|
|
4305
4305
|
/* @__PURE__ */ r("div", { role: "rowgroup", children: e.map(
|
|
4306
|
-
(
|
|
4306
|
+
(v) => u ? /* @__PURE__ */ r(w.Fragment, { children: u(v) }, v.id) : /* @__PURE__ */ r(
|
|
4307
4307
|
vt,
|
|
4308
4308
|
{
|
|
4309
|
-
entity:
|
|
4309
|
+
entity: v,
|
|
4310
4310
|
categories: t,
|
|
4311
4311
|
showIcon: o,
|
|
4312
4312
|
showCategoryBadge: a,
|
|
4313
4313
|
showMetric: n,
|
|
4314
4314
|
compact: m
|
|
4315
4315
|
},
|
|
4316
|
-
|
|
4316
|
+
v.id
|
|
4317
4317
|
)
|
|
4318
4318
|
) })
|
|
4319
4319
|
]
|
|
@@ -4322,7 +4322,7 @@ const kt = v.forwardRef(
|
|
|
4322
4322
|
}
|
|
4323
4323
|
);
|
|
4324
4324
|
kt.displayName = "EntityDirectoryList";
|
|
4325
|
-
const Nt =
|
|
4325
|
+
const Nt = w.forwardRef(({ rows: e = 5, className: t }, o) => /* @__PURE__ */ p(
|
|
4326
4326
|
"div",
|
|
4327
4327
|
{
|
|
4328
4328
|
ref: o,
|
|
@@ -4352,7 +4352,7 @@ const Nt = v.forwardRef(({ rows: e = 5, className: t }, o) => /* @__PURE__ */ p(
|
|
|
4352
4352
|
}
|
|
4353
4353
|
));
|
|
4354
4354
|
Nt.displayName = "EntityDirectoryLoadingState";
|
|
4355
|
-
const Ct =
|
|
4355
|
+
const Ct = w.forwardRef(({ value: e, onChange: t, placeholder: o = "Search entities...", className: a }, n) => /* @__PURE__ */ p("div", { className: f("relative", a), children: [
|
|
4356
4356
|
/* @__PURE__ */ r("div", { className: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none", children: /* @__PURE__ */ r(
|
|
4357
4357
|
"svg",
|
|
4358
4358
|
{
|
|
@@ -4419,7 +4419,7 @@ const Ct = v.forwardRef(({ value: e, onChange: t, placeholder: o = "Search entit
|
|
|
4419
4419
|
)
|
|
4420
4420
|
] }));
|
|
4421
4421
|
Ct.displayName = "EntityDirectorySearchFilter";
|
|
4422
|
-
const wo =
|
|
4422
|
+
const wo = w.forwardRef(
|
|
4423
4423
|
({
|
|
4424
4424
|
entities: e,
|
|
4425
4425
|
categories: t,
|
|
@@ -4434,25 +4434,25 @@ const wo = v.forwardRef(
|
|
|
4434
4434
|
onSearchChange: u,
|
|
4435
4435
|
searchPlaceholder: d,
|
|
4436
4436
|
sortable: h = !1,
|
|
4437
|
-
sort:
|
|
4438
|
-
onSortChange:
|
|
4437
|
+
sort: M,
|
|
4438
|
+
onSortChange: v,
|
|
4439
4439
|
showIcons: N = !0,
|
|
4440
|
-
showCategoryBadges:
|
|
4441
|
-
showMetric:
|
|
4442
|
-
metricLabel:
|
|
4443
|
-
compact:
|
|
4444
|
-
loading:
|
|
4445
|
-
error:
|
|
4446
|
-
emptyMessage:
|
|
4447
|
-
onRetry:
|
|
4448
|
-
emptyState:
|
|
4449
|
-
errorState:
|
|
4440
|
+
showCategoryBadges: k = !0,
|
|
4441
|
+
showMetric: g = !0,
|
|
4442
|
+
metricLabel: E,
|
|
4443
|
+
compact: P = !1,
|
|
4444
|
+
loading: I = !1,
|
|
4445
|
+
error: T,
|
|
4446
|
+
emptyMessage: L,
|
|
4447
|
+
onRetry: S,
|
|
4448
|
+
emptyState: y,
|
|
4449
|
+
errorState: A,
|
|
4450
4450
|
loadingState: q,
|
|
4451
4451
|
renderItem: re,
|
|
4452
4452
|
className: X,
|
|
4453
4453
|
style: oe
|
|
4454
4454
|
}, Q) => {
|
|
4455
|
-
const B = t && t.length > 0, D = !
|
|
4455
|
+
const B = t && t.length > 0, D = !I && !T && e.length === 0, W = !I && !!T;
|
|
4456
4456
|
return /* @__PURE__ */ p("div", { ref: Q, className: f("space-y-6", X), style: oe, children: [
|
|
4457
4457
|
/* @__PURE__ */ r(yt, { title: o, description: a }),
|
|
4458
4458
|
B && s && /* @__PURE__ */ r(
|
|
@@ -4473,22 +4473,22 @@ const wo = v.forwardRef(
|
|
|
4473
4473
|
placeholder: d
|
|
4474
4474
|
}
|
|
4475
4475
|
),
|
|
4476
|
-
|
|
4477
|
-
W && (
|
|
4478
|
-
D && (
|
|
4479
|
-
!
|
|
4476
|
+
I && (q || /* @__PURE__ */ r(Nt, {})),
|
|
4477
|
+
W && (A || /* @__PURE__ */ r(xt, { error: T, onRetry: S })),
|
|
4478
|
+
D && (y || /* @__PURE__ */ r(bt, { message: L })),
|
|
4479
|
+
!I && !W && !D && /* @__PURE__ */ r(
|
|
4480
4480
|
kt,
|
|
4481
4481
|
{
|
|
4482
4482
|
entities: e,
|
|
4483
4483
|
categories: t,
|
|
4484
4484
|
showIcons: N,
|
|
4485
|
-
showCategoryBadges:
|
|
4486
|
-
showMetric:
|
|
4487
|
-
metricLabel:
|
|
4485
|
+
showCategoryBadges: k,
|
|
4486
|
+
showMetric: g,
|
|
4487
|
+
metricLabel: E,
|
|
4488
4488
|
sortable: h,
|
|
4489
|
-
sort:
|
|
4490
|
-
onSortChange:
|
|
4491
|
-
compact:
|
|
4489
|
+
sort: M,
|
|
4490
|
+
onSortChange: v,
|
|
4491
|
+
compact: P,
|
|
4492
4492
|
renderItem: re
|
|
4493
4493
|
}
|
|
4494
4494
|
)
|
|
@@ -4518,57 +4518,77 @@ const No = we(
|
|
|
4518
4518
|
navigationItemClassName: c,
|
|
4519
4519
|
loginButtonClassName: m,
|
|
4520
4520
|
mobileMenuButtonClassName: u,
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4521
|
+
renderNavLink: d,
|
|
4522
|
+
id: h,
|
|
4523
|
+
"aria-label": M
|
|
4524
|
+
}, v) => {
|
|
4525
|
+
const [N, k] = ee(!1), g = ko({
|
|
4525
4526
|
variant: e,
|
|
4526
4527
|
logo: t,
|
|
4527
4528
|
navigationItems: o,
|
|
4528
4529
|
loginButtonText: a,
|
|
4529
4530
|
showMobileMenu: n
|
|
4530
|
-
}),
|
|
4531
|
+
}), E = g.variant === "modern", P = g.variant === "luxury", I = P && g.showMobileMenu, T = N ? I ? "Close navigation panel" : "Close menu" : I ? "Open navigation panel" : "Open menu", L = ({
|
|
4532
|
+
item: S,
|
|
4533
|
+
className: y,
|
|
4534
|
+
onClick: A
|
|
4535
|
+
}) => d ? d({
|
|
4536
|
+
item: S,
|
|
4537
|
+
children: S.label,
|
|
4538
|
+
className: y,
|
|
4539
|
+
onClick: A
|
|
4540
|
+
}) : /* @__PURE__ */ r("a", { href: S.href, className: y, onClick: A, children: S.label });
|
|
4531
4541
|
return /* @__PURE__ */ p(se, { children: [
|
|
4532
4542
|
/* @__PURE__ */ p(
|
|
4533
4543
|
"header",
|
|
4534
4544
|
{
|
|
4535
|
-
ref:
|
|
4536
|
-
id:
|
|
4545
|
+
ref: v,
|
|
4546
|
+
id: h,
|
|
4537
4547
|
role: "banner",
|
|
4538
|
-
"aria-label":
|
|
4548
|
+
"aria-label": M || "Site header",
|
|
4539
4549
|
className: f(
|
|
4540
4550
|
"flex items-center justify-between relative w-full space-x-4",
|
|
4541
4551
|
// Luxury: wide horizontal rhythm from Figma, Modern/Minimal: compact padding
|
|
4542
|
-
|
|
4552
|
+
P ? "px-16 py-2" : "px-6 py-1",
|
|
4543
4553
|
s
|
|
4544
4554
|
),
|
|
4545
4555
|
children: [
|
|
4546
|
-
g.logo && /* @__PURE__ */ r(
|
|
4547
|
-
"
|
|
4556
|
+
g.logo && /* @__PURE__ */ r(
|
|
4557
|
+
"div",
|
|
4548
4558
|
{
|
|
4549
4559
|
className: f(
|
|
4550
|
-
"
|
|
4551
|
-
//
|
|
4552
|
-
|
|
4553
|
-
// Variant-default text color (can be overridden)
|
|
4554
|
-
w ? "text-zinc-900" : "text-white",
|
|
4555
|
-
i
|
|
4560
|
+
"shrink-0 w-2/3 md:w-1/5 text-ellipsis overflow-hidden text-nowrap",
|
|
4561
|
+
// Keep modern logos legible even when clients upload white assets
|
|
4562
|
+
E && "[&_img]:brightness-0 [&_img]:saturate-0 [&_svg]:brightness-0 [&_svg]:saturate-0"
|
|
4556
4563
|
),
|
|
4557
|
-
children: g.logo
|
|
4564
|
+
children: typeof g.logo == "string" ? /* @__PURE__ */ r(
|
|
4565
|
+
"p",
|
|
4566
|
+
{
|
|
4567
|
+
className: f(
|
|
4568
|
+
"leading-normal",
|
|
4569
|
+
// Luxury: Tenor Sans serif mark, Modern/Minimal: bold sans mark
|
|
4570
|
+
P ? "font-heading text-xl font-normal uppercase tracking-[0.04em]" : "font-black tracking-wider text-xl",
|
|
4571
|
+
// Keep modern text logos strictly black for legibility
|
|
4572
|
+
E ? "text-black" : "text-white",
|
|
4573
|
+
i
|
|
4574
|
+
),
|
|
4575
|
+
children: g.logo
|
|
4576
|
+
}
|
|
4577
|
+
) : g.logo
|
|
4558
4578
|
}
|
|
4559
|
-
)
|
|
4579
|
+
),
|
|
4560
4580
|
g.navigationItems.length > 0 && /* @__PURE__ */ r(
|
|
4561
4581
|
"nav",
|
|
4562
4582
|
{
|
|
4563
4583
|
className: f(
|
|
4564
4584
|
"hidden md:flex items-center max-w-fit",
|
|
4565
4585
|
// Luxury: plain links with separators, Modern: transparent row, Minimal: pill navigation
|
|
4566
|
-
|
|
4586
|
+
P ? "ml-auto gap-4" : E ? "gap-4 bg-transparent border-0 shadow-none" : "gap-4 px-6 py-2 bg-white border border-gray-200 rounded-full shadow-sm",
|
|
4567
4587
|
l
|
|
4568
4588
|
),
|
|
4569
4589
|
"aria-label": "Main navigation",
|
|
4570
|
-
children: g.navigationItems.map((
|
|
4571
|
-
|
|
4590
|
+
children: g.navigationItems.map((S, y) => /* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: [
|
|
4591
|
+
y > 0 && /* @__PURE__ */ r(
|
|
4572
4592
|
"div",
|
|
4573
4593
|
{
|
|
4574
4594
|
className: "flex items-center justify-center h-6 w-0",
|
|
@@ -4578,24 +4598,20 @@ const No = we(
|
|
|
4578
4598
|
{
|
|
4579
4599
|
className: f(
|
|
4580
4600
|
"h-px w-full",
|
|
4581
|
-
|
|
4601
|
+
P ? "bg-white" : "bg-gray-200"
|
|
4582
4602
|
)
|
|
4583
4603
|
}
|
|
4584
4604
|
) })
|
|
4585
4605
|
}
|
|
4586
4606
|
),
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
children: M.label
|
|
4596
|
-
}
|
|
4597
|
-
)
|
|
4598
|
-
] }, M.id))
|
|
4607
|
+
L({
|
|
4608
|
+
item: S,
|
|
4609
|
+
className: f(
|
|
4610
|
+
P ? "font-body text-sm font-normal uppercase tracking-[0.05em] leading-5 text-white hover:text-white/80 transition-colors" : "text-gray-900 text-sm font-medium leading-5 hover:text-black transition-colors text-ellipsis overflow-hidden text-nowrap",
|
|
4611
|
+
c
|
|
4612
|
+
)
|
|
4613
|
+
})
|
|
4614
|
+
] }, S.id))
|
|
4599
4615
|
}
|
|
4600
4616
|
),
|
|
4601
4617
|
/* @__PURE__ */ p("div", { className: f("flex items-center shrink-0 w-1/5", "gap-6 p-4"), children: [
|
|
@@ -4606,7 +4622,7 @@ const No = we(
|
|
|
4606
4622
|
className: f(
|
|
4607
4623
|
"hidden md:flex items-center justify-center px-4 py-2 text-sm font-medium leading-5 transition-colors",
|
|
4608
4624
|
// Luxury: white outlined button, Modern: dark rectangular CTA, Minimal: white pill
|
|
4609
|
-
|
|
4625
|
+
P ? "font-body h-9 bg-white text-zinc-900 border border-zinc-200 rounded-none hover:bg-zinc-100" : E ? "h-10 bg-zinc-900 text-white border-0 rounded-md hover:bg-zinc-800" : "h-9 bg-white border border-gray-200 text-zinc-900 rounded-full hover:bg-zinc-200",
|
|
4610
4626
|
m
|
|
4611
4627
|
),
|
|
4612
4628
|
children: g.loginButtonText
|
|
@@ -4616,20 +4632,20 @@ const No = we(
|
|
|
4616
4632
|
"button",
|
|
4617
4633
|
{
|
|
4618
4634
|
type: "button",
|
|
4619
|
-
onClick: () =>
|
|
4620
|
-
"aria-label":
|
|
4621
|
-
"aria-expanded":
|
|
4635
|
+
onClick: () => k(!N),
|
|
4636
|
+
"aria-label": T,
|
|
4637
|
+
"aria-expanded": N,
|
|
4622
4638
|
className: f(
|
|
4623
4639
|
"flex md:hidden items-center justify-center px-3 py-2 bg-white transition-colors",
|
|
4624
|
-
|
|
4640
|
+
P ? "border border-zinc-200 text-zinc-900 hover:bg-zinc-100" : E ? "rounded-xl border border-zinc-200 hover:bg-gray-50" : "rounded-full hover:bg-gray-50",
|
|
4625
4641
|
u
|
|
4626
4642
|
),
|
|
4627
|
-
children:
|
|
4643
|
+
children: N ? /* @__PURE__ */ r(
|
|
4628
4644
|
Ye,
|
|
4629
4645
|
{
|
|
4630
4646
|
className: f(
|
|
4631
4647
|
"text-gray-900",
|
|
4632
|
-
|
|
4648
|
+
P ? "h-[15px] w-[15px]" : "h-4 w-4"
|
|
4633
4649
|
)
|
|
4634
4650
|
}
|
|
4635
4651
|
) : /* @__PURE__ */ r(
|
|
@@ -4637,7 +4653,7 @@ const No = we(
|
|
|
4637
4653
|
{
|
|
4638
4654
|
className: f(
|
|
4639
4655
|
"text-gray-900",
|
|
4640
|
-
|
|
4656
|
+
P ? "h-[15px] w-[15px]" : "h-4 w-4"
|
|
4641
4657
|
)
|
|
4642
4658
|
}
|
|
4643
4659
|
)
|
|
@@ -4647,7 +4663,7 @@ const No = we(
|
|
|
4647
4663
|
]
|
|
4648
4664
|
}
|
|
4649
4665
|
),
|
|
4650
|
-
|
|
4666
|
+
N && g.showMobileMenu && /* @__PURE__ */ p(
|
|
4651
4667
|
"div",
|
|
4652
4668
|
{
|
|
4653
4669
|
className: "fixed inset-0 z-40 md:hidden",
|
|
@@ -4659,7 +4675,7 @@ const No = we(
|
|
|
4659
4675
|
"div",
|
|
4660
4676
|
{
|
|
4661
4677
|
className: "fixed inset-0 bg-black/50",
|
|
4662
|
-
onClick: () =>
|
|
4678
|
+
onClick: () => k(!1),
|
|
4663
4679
|
"aria-hidden": "true"
|
|
4664
4680
|
}
|
|
4665
4681
|
),
|
|
@@ -4668,23 +4684,18 @@ const No = we(
|
|
|
4668
4684
|
"button",
|
|
4669
4685
|
{
|
|
4670
4686
|
type: "button",
|
|
4671
|
-
onClick: () =>
|
|
4687
|
+
onClick: () => k(!1),
|
|
4672
4688
|
"aria-label": "Close menu",
|
|
4673
4689
|
className: "flex h-10 w-10 items-center justify-center rounded-full bg-zinc-100 text-zinc-900 hover:bg-zinc-200",
|
|
4674
4690
|
children: /* @__PURE__ */ r(Ye, { className: "h-5 w-5" })
|
|
4675
4691
|
}
|
|
4676
4692
|
) }),
|
|
4677
4693
|
/* @__PURE__ */ r("nav", { className: "flex-1 overflow-y-auto px-6 py-4", children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-4", children: [
|
|
4678
|
-
g.navigationItems.map((
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
onClick: () => N(!1),
|
|
4684
|
-
children: M.label
|
|
4685
|
-
},
|
|
4686
|
-
M.id
|
|
4687
|
-
)),
|
|
4694
|
+
g.navigationItems.map((S) => /* @__PURE__ */ r("div", { children: L({
|
|
4695
|
+
item: S,
|
|
4696
|
+
className: "block text-base font-medium text-zinc-900 hover:text-zinc-600 transition-colors py-2",
|
|
4697
|
+
onClick: () => k(!1)
|
|
4698
|
+
}) }, S.id)),
|
|
4688
4699
|
/* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-zinc-200", children: /* @__PURE__ */ r(
|
|
4689
4700
|
"button",
|
|
4690
4701
|
{
|
|
@@ -4735,7 +4746,7 @@ const Co = (e) => ({
|
|
|
4735
4746
|
theme: t,
|
|
4736
4747
|
variant: o,
|
|
4737
4748
|
layout: a
|
|
4738
|
-
}), h = d.variant === "modern",
|
|
4749
|
+
}), h = d.variant === "modern", M = d.variant === "modern" || d.variant === "luxury";
|
|
4739
4750
|
return /* @__PURE__ */ r(
|
|
4740
4751
|
"section",
|
|
4741
4752
|
{
|
|
@@ -4782,15 +4793,15 @@ const Co = (e) => ({
|
|
|
4782
4793
|
/* @__PURE__ */ r("h1", { className: "text-4xl font-bold tracking-wide text-white sm:text-5xl lg:text-6xl", children: d.content.title }),
|
|
4783
4794
|
d.content.subtitle && /* @__PURE__ */ r("p", { className: "mt-4 text-xl text-white/90 sm:text-2xl", children: d.content.subtitle })
|
|
4784
4795
|
] }),
|
|
4785
|
-
d.variant === "minimal" && d.content.metrics && d.content.metrics.length > 0 && /* @__PURE__ */ r("div", { className: "mb-16", children: /* @__PURE__ */ r("div", { className: "mx-auto grid max-w-4xl grid-cols-1 gap-8 md:grid-cols-3", children: d.content.metrics.map((
|
|
4786
|
-
/* @__PURE__ */ r("div", { className: "mb-2 text-3xl font-bold text-white md:text-4xl", children:
|
|
4787
|
-
/* @__PURE__ */ r("div", { className: "text-sm text-white/80 md:text-base", children:
|
|
4796
|
+
d.variant === "minimal" && d.content.metrics && d.content.metrics.length > 0 && /* @__PURE__ */ r("div", { className: "mb-16", children: /* @__PURE__ */ r("div", { className: "mx-auto grid max-w-4xl grid-cols-1 gap-8 md:grid-cols-3", children: d.content.metrics.map((v, N) => /* @__PURE__ */ p("div", { className: "text-center", children: [
|
|
4797
|
+
/* @__PURE__ */ r("div", { className: "mb-2 text-3xl font-bold text-white md:text-4xl", children: v.value }),
|
|
4798
|
+
/* @__PURE__ */ r("div", { className: "text-sm text-white/80 md:text-base", children: v.label })
|
|
4788
4799
|
] }, N)) }) }),
|
|
4789
4800
|
n && /* @__PURE__ */ r("div", { className: "relative z-20 mx-auto w-full max-w-4xl", children: n })
|
|
4790
4801
|
] }) }),
|
|
4791
|
-
|
|
4792
|
-
/* @__PURE__ */ r("div", { className: "text-xl font-semibold leading-tight md:text-2xl", children:
|
|
4793
|
-
/* @__PURE__ */ r("div", { className: "text-xs leading-tight text-zinc-600 md:text-sm", children:
|
|
4802
|
+
M && d.content.metrics && d.content.metrics.length > 0 && /* @__PURE__ */ r("div", { className: "absolute bottom-0 right-0 z-10 hidden md:block", children: /* @__PURE__ */ r("div", { className: "flex h-20 w-full max-w-4xl items-center gap-6 rounded-tl-2xl bg-white px-8 py-4 text-zinc-900 md:h-24 md:gap-12 md:px-12 md:py-6", children: d.content.metrics.map((v, N) => /* @__PURE__ */ p("div", { className: "flex flex-col", children: [
|
|
4803
|
+
/* @__PURE__ */ r("div", { className: "text-xl font-semibold leading-tight md:text-2xl", children: v.value }),
|
|
4804
|
+
/* @__PURE__ */ r("div", { className: "text-xs leading-tight text-zinc-600 md:text-sm", children: v.label })
|
|
4794
4805
|
] }, N)) }) }),
|
|
4795
4806
|
d.variant === "minimal" && /* @__PURE__ */ r("div", { className: "relative z-10 pb-8", children: /* @__PURE__ */ r("div", { className: "flex justify-center", children: /* @__PURE__ */ r(
|
|
4796
4807
|
"div",
|
|
@@ -4829,7 +4840,7 @@ const Mt = [
|
|
|
4829
4840
|
// Light blue
|
|
4830
4841
|
hoaFees: "#7fc9e3"
|
|
4831
4842
|
// Very light blue
|
|
4832
|
-
}, zo =
|
|
4843
|
+
}, zo = w.forwardRef(
|
|
4833
4844
|
({
|
|
4834
4845
|
initialPropertyPrice: e = ve.propertyPrice,
|
|
4835
4846
|
initialDownPayment: t = ve.downPayment,
|
|
@@ -4840,49 +4851,49 @@ const Mt = [
|
|
|
4840
4851
|
className: i,
|
|
4841
4852
|
onCalculationChange: l
|
|
4842
4853
|
}, c) => {
|
|
4843
|
-
const [m, u] =
|
|
4844
|
-
const
|
|
4845
|
-
(q) => q.value ===
|
|
4854
|
+
const [m, u] = w.useState(e), [d, h] = w.useState(t), [M, v] = w.useState(o), [N, k] = w.useState(a), [g, E] = w.useState(0), [P, I] = w.useState(0), T = w.useMemo(() => {
|
|
4855
|
+
const y = Mt.find(
|
|
4856
|
+
(q) => q.value === M
|
|
4846
4857
|
)?.years || 30;
|
|
4847
4858
|
return jt({
|
|
4848
4859
|
propertyPrice: m,
|
|
4849
4860
|
downPayment: d,
|
|
4850
|
-
loanTerm:
|
|
4861
|
+
loanTerm: y,
|
|
4851
4862
|
interestRate: N,
|
|
4852
|
-
propertyTax: n ?
|
|
4853
|
-
hoaFees: s ?
|
|
4863
|
+
propertyTax: n ? g : void 0,
|
|
4864
|
+
hoaFees: s ? P : void 0
|
|
4854
4865
|
});
|
|
4855
4866
|
}, [
|
|
4856
4867
|
m,
|
|
4857
4868
|
d,
|
|
4858
|
-
|
|
4869
|
+
M,
|
|
4859
4870
|
N,
|
|
4860
|
-
|
|
4861
|
-
|
|
4871
|
+
g,
|
|
4872
|
+
P,
|
|
4862
4873
|
n,
|
|
4863
4874
|
s
|
|
4864
4875
|
]);
|
|
4865
|
-
|
|
4866
|
-
l?.(
|
|
4867
|
-
}, [
|
|
4868
|
-
const
|
|
4869
|
-
const
|
|
4876
|
+
w.useEffect(() => {
|
|
4877
|
+
l?.(T);
|
|
4878
|
+
}, [T, l]);
|
|
4879
|
+
const L = w.useMemo(() => {
|
|
4880
|
+
const S = [
|
|
4870
4881
|
{
|
|
4871
4882
|
label: "Principal e Intereses",
|
|
4872
|
-
value:
|
|
4883
|
+
value: T.breakdown.principalAndInterest,
|
|
4873
4884
|
color: Te.principalAndInterest
|
|
4874
4885
|
}
|
|
4875
4886
|
];
|
|
4876
|
-
return n &&
|
|
4887
|
+
return n && T.breakdown.propertyTax > 0 && S.push({
|
|
4877
4888
|
label: "Impuesto Predial",
|
|
4878
|
-
value:
|
|
4889
|
+
value: T.breakdown.propertyTax,
|
|
4879
4890
|
color: Te.propertyTax
|
|
4880
|
-
}), s &&
|
|
4891
|
+
}), s && T.breakdown.hoaFees > 0 && S.push({
|
|
4881
4892
|
label: "Cuota HOA",
|
|
4882
|
-
value:
|
|
4893
|
+
value: T.breakdown.hoaFees,
|
|
4883
4894
|
color: Te.hoaFees
|
|
4884
|
-
}),
|
|
4885
|
-
}, [
|
|
4895
|
+
}), S;
|
|
4896
|
+
}, [T, n, s]);
|
|
4886
4897
|
return /* @__PURE__ */ r("div", { ref: c, className: f("w-full", i), children: /* @__PURE__ */ r(pt, { padding: "lg", className: "w-full", children: /* @__PURE__ */ p("div", { className: "space-y-6", children: [
|
|
4887
4898
|
/* @__PURE__ */ p("div", { children: [
|
|
4888
4899
|
/* @__PURE__ */ r(R, { variant: "h2", className: "mb-2", children: "Calculadora de Hipotecas" }),
|
|
@@ -4896,7 +4907,7 @@ const Mt = [
|
|
|
4896
4907
|
label: "Precio de la propiedad",
|
|
4897
4908
|
type: "number",
|
|
4898
4909
|
value: m,
|
|
4899
|
-
onChange: (
|
|
4910
|
+
onChange: (S) => u(Number(S.target.value)),
|
|
4900
4911
|
suffix: "MXN",
|
|
4901
4912
|
min: 0,
|
|
4902
4913
|
step: 1e4
|
|
@@ -4908,7 +4919,7 @@ const Mt = [
|
|
|
4908
4919
|
label: "Enganche",
|
|
4909
4920
|
type: "number",
|
|
4910
4921
|
value: d,
|
|
4911
|
-
onChange: (
|
|
4922
|
+
onChange: (S) => h(Number(S.target.value)),
|
|
4912
4923
|
suffix: "MXN",
|
|
4913
4924
|
min: 0,
|
|
4914
4925
|
step: 1e4
|
|
@@ -4916,11 +4927,11 @@ const Mt = [
|
|
|
4916
4927
|
),
|
|
4917
4928
|
/* @__PURE__ */ p("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
4918
4929
|
/* @__PURE__ */ r(
|
|
4919
|
-
|
|
4930
|
+
_e,
|
|
4920
4931
|
{
|
|
4921
4932
|
label: "Programa de préstamos",
|
|
4922
|
-
value:
|
|
4923
|
-
onChange: (
|
|
4933
|
+
value: M,
|
|
4934
|
+
onChange: (S) => v(S.target.value),
|
|
4924
4935
|
options: To
|
|
4925
4936
|
}
|
|
4926
4937
|
),
|
|
@@ -4930,7 +4941,7 @@ const Mt = [
|
|
|
4930
4941
|
label: "Tasa de interés",
|
|
4931
4942
|
type: "number",
|
|
4932
4943
|
value: N,
|
|
4933
|
-
onChange: (
|
|
4944
|
+
onChange: (S) => k(Number(S.target.value)),
|
|
4934
4945
|
suffix: "%",
|
|
4935
4946
|
min: 0,
|
|
4936
4947
|
max: 100,
|
|
@@ -4943,8 +4954,8 @@ const Mt = [
|
|
|
4943
4954
|
{
|
|
4944
4955
|
label: "Impuesto predial mensual",
|
|
4945
4956
|
type: "number",
|
|
4946
|
-
value:
|
|
4947
|
-
onChange: (
|
|
4957
|
+
value: g,
|
|
4958
|
+
onChange: (S) => E(Number(S.target.value)),
|
|
4948
4959
|
suffix: "MXN",
|
|
4949
4960
|
min: 0,
|
|
4950
4961
|
step: 100
|
|
@@ -4955,8 +4966,8 @@ const Mt = [
|
|
|
4955
4966
|
{
|
|
4956
4967
|
label: "Cuota HOA mensual",
|
|
4957
4968
|
type: "number",
|
|
4958
|
-
value:
|
|
4959
|
-
onChange: (
|
|
4969
|
+
value: P,
|
|
4970
|
+
onChange: (S) => I(Number(S.target.value)),
|
|
4960
4971
|
suffix: "MXN",
|
|
4961
4972
|
min: 0,
|
|
4962
4973
|
step: 100
|
|
@@ -4967,11 +4978,11 @@ const Mt = [
|
|
|
4967
4978
|
/* @__PURE__ */ r(
|
|
4968
4979
|
ft,
|
|
4969
4980
|
{
|
|
4970
|
-
segments:
|
|
4981
|
+
segments: L,
|
|
4971
4982
|
size: 320,
|
|
4972
4983
|
innerRadiusRatio: 0.65,
|
|
4973
4984
|
centerContent: /* @__PURE__ */ p("div", { className: "text-center", children: [
|
|
4974
|
-
/* @__PURE__ */ r(R, { variant: "h1", className: "font-bold mb-1", children: me(
|
|
4985
|
+
/* @__PURE__ */ r(R, { variant: "h1", className: "font-bold mb-1", children: me(T.totalMonthlyPayment) }),
|
|
4975
4986
|
/* @__PURE__ */ r(R, { variant: "body-sm", color: "secondary", children: "Tu Pago" })
|
|
4976
4987
|
] }),
|
|
4977
4988
|
showLegend: !0,
|
|
@@ -4990,19 +5001,19 @@ const Mt = [
|
|
|
4990
5001
|
/* @__PURE__ */ p("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 pt-4 border-t", children: [
|
|
4991
5002
|
/* @__PURE__ */ p("div", { children: [
|
|
4992
5003
|
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Monto del préstamo" }),
|
|
4993
|
-
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(
|
|
5004
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(T.loanPrincipal) })
|
|
4994
5005
|
] }),
|
|
4995
5006
|
/* @__PURE__ */ p("div", { children: [
|
|
4996
5007
|
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Pago mensual" }),
|
|
4997
|
-
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(
|
|
5008
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(T.monthlyPayment) })
|
|
4998
5009
|
] }),
|
|
4999
5010
|
/* @__PURE__ */ p("div", { children: [
|
|
5000
5011
|
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Interés total" }),
|
|
5001
|
-
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(
|
|
5012
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(T.totalInterest) })
|
|
5002
5013
|
] }),
|
|
5003
5014
|
/* @__PURE__ */ p("div", { children: [
|
|
5004
5015
|
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Total a pagar" }),
|
|
5005
|
-
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(
|
|
5016
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(T.totalAmount) })
|
|
5006
5017
|
] })
|
|
5007
5018
|
] })
|
|
5008
5019
|
] }) }) });
|
|
@@ -5063,66 +5074,66 @@ const Po = (e, t, o) => {
|
|
|
5063
5074
|
variant: s = "default",
|
|
5064
5075
|
badgeColors: i
|
|
5065
5076
|
}) => {
|
|
5066
|
-
const [l, c] = ee(0), [m, u] = ee(!1), [d, h] = ee(!1),
|
|
5067
|
-
|
|
5068
|
-
const
|
|
5069
|
-
u(
|
|
5070
|
-
},
|
|
5071
|
-
|
|
5072
|
-
}, N = (
|
|
5077
|
+
const [l, c] = ee(0), [m, u] = ee(!1), [d, h] = ee(!1), M = (F) => {
|
|
5078
|
+
F.preventDefault(), F.stopPropagation();
|
|
5079
|
+
const V = !m;
|
|
5080
|
+
u(V), o?.(e.id, V);
|
|
5081
|
+
}, v = (F) => {
|
|
5082
|
+
F.preventDefault(), F.stopPropagation(), a?.(l, e.id);
|
|
5083
|
+
}, N = (F, V) => !F || !V ? "Price not available" : `$${F.toLocaleString()} ${V}`, k = s === "compact", g = s === "minimal", E = f(
|
|
5073
5084
|
"relative overflow-hidden bg-card transition-all duration-300 ease-out cursor-pointer",
|
|
5074
|
-
|
|
5085
|
+
k ? "rounded-xl hover:shadow-lg border px-4 shadow-md" : g ? "rounded-2xl w-[454px] flex flex-col gap-4" : "rounded-2xl hover:-translate-y-1 hover:shadow-xl shadow-md",
|
|
5075
5086
|
t
|
|
5076
|
-
), E = f(
|
|
5077
|
-
"relative overflow-hidden",
|
|
5078
|
-
g ? "rounded-xl px-4 shadow-md" : w ? "rounded-2xl" : ""
|
|
5079
5087
|
), P = f(
|
|
5088
|
+
"relative overflow-hidden",
|
|
5089
|
+
k ? "rounded-xl px-4 shadow-md" : g ? "rounded-2xl" : ""
|
|
5090
|
+
), I = f(
|
|
5080
5091
|
"w-full h-full object-cover",
|
|
5081
|
-
|
|
5082
|
-
),
|
|
5092
|
+
k ? "" : g ? "rounded-2xl" : "transition-transform duration-300 hover:scale-105"
|
|
5093
|
+
), T = f(
|
|
5083
5094
|
"absolute z-10 flex flex-wrap gap-2",
|
|
5084
|
-
|
|
5085
|
-
),
|
|
5095
|
+
k ? "top-3 left-3" : "top-4 left-4"
|
|
5096
|
+
), L = f(
|
|
5086
5097
|
"font-semibold",
|
|
5087
|
-
|
|
5088
|
-
),
|
|
5098
|
+
k ? "rounded-full px-3 py-1 text-xs" : g ? "rounded-full px-3 h-7 flex items-center justify-center text-base" : "px-2 py-1 rounded-lg font-medium uppercase tracking-wide text-xs"
|
|
5099
|
+
), S = f(
|
|
5089
5100
|
"absolute z-10 cursor-pointer transition-all duration-200",
|
|
5090
|
-
|
|
5091
|
-
),
|
|
5101
|
+
k ? "top-3 right-3 p-1 shadow-md rounded-full" : g ? "top-4 right-4 w-7 h-7 flex items-center justify-center hover:scale-105" : "top-4 right-4 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground w-10 h-10 flex items-center justify-center rounded-full hover:bg-background hover:scale-105"
|
|
5102
|
+
), y = f(
|
|
5092
5103
|
"absolute left-1/2 -translate-x-1/2 flex z-10",
|
|
5093
|
-
|
|
5094
|
-
),
|
|
5104
|
+
g ? "bottom-4 gap-2 p-4" : "bottom-4 gap-1"
|
|
5105
|
+
), A = f(
|
|
5095
5106
|
"w-2 h-2 rounded-full border-none cursor-pointer transition-all duration-200 hover:scale-120"
|
|
5096
5107
|
), q = f(
|
|
5097
|
-
|
|
5108
|
+
k ? "p-2" : g ? "flex flex-col gap-2" : "p-6"
|
|
5098
5109
|
), re = f(
|
|
5099
5110
|
"font-semibold text-foreground line-clamp-2 leading-tight",
|
|
5100
|
-
|
|
5111
|
+
k ? "text-base mb-2" : g ? "text-base" : "text-lg font-bold mb-2"
|
|
5101
5112
|
), X = f(
|
|
5102
5113
|
"font-bold",
|
|
5103
|
-
|
|
5114
|
+
k ? "text-lg text-primary mb-2" : g ? "text-lg text-foreground" : "text-xl text-primary mb-2"
|
|
5104
5115
|
), oe = f(
|
|
5105
5116
|
"text-muted-foreground",
|
|
5106
|
-
|
|
5117
|
+
k ? "text-sm flex items-center gap-1 mb-4" : g ? "text-base" : "text-base mb-4"
|
|
5107
5118
|
), Q = f(
|
|
5108
5119
|
"flex items-center",
|
|
5109
|
-
|
|
5120
|
+
k ? "justify-between mt-3 mb-4" : g ? "gap-3" : "gap-4 mb-4"
|
|
5110
5121
|
), B = f(
|
|
5111
5122
|
"flex items-center gap-1 text-muted-foreground",
|
|
5112
5123
|
"text-sm"
|
|
5113
5124
|
), D = f(
|
|
5114
5125
|
"text-sm text-muted-foreground line-clamp-2",
|
|
5115
|
-
|
|
5126
|
+
k ? "mt-2" : ""
|
|
5116
5127
|
), C = !(e.images && e.images.length > 0) || d, pe = () => /* @__PURE__ */ p("div", { className: "w-full h-full bg-gradient-to-br from-primary/10 via-primary/5 to-secondary/10 flex flex-col items-center justify-center gap-3", children: [
|
|
5117
|
-
/* @__PURE__ */ r("div", { className: "rounded-full bg-primary/10 p-6", children: /* @__PURE__ */ r(lo, { size:
|
|
5128
|
+
/* @__PURE__ */ r("div", { className: "rounded-full bg-primary/10 p-6", children: /* @__PURE__ */ r(lo, { size: k ? 32 : 48, className: "text-primary/40" }) }),
|
|
5118
5129
|
/* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground", children: "No image available" })
|
|
5119
|
-
] }), de = /* @__PURE__ */ p("div", { className:
|
|
5130
|
+
] }), de = /* @__PURE__ */ p("div", { className: E, children: [
|
|
5120
5131
|
/* @__PURE__ */ p(
|
|
5121
5132
|
"div",
|
|
5122
5133
|
{
|
|
5123
5134
|
className: f(
|
|
5124
|
-
|
|
5125
|
-
|
|
5135
|
+
P,
|
|
5136
|
+
k ? "h-52" : g ? "h-[481px]" : "aspect-[4/3]"
|
|
5126
5137
|
),
|
|
5127
5138
|
children: [
|
|
5128
5139
|
C ? /* @__PURE__ */ r(pe, {}) : /* @__PURE__ */ p("div", { className: "relative w-full h-full", "aria-hidden": "true", children: [
|
|
@@ -5131,39 +5142,39 @@ const Po = (e, t, o) => {
|
|
|
5131
5142
|
{
|
|
5132
5143
|
src: e.images[l],
|
|
5133
5144
|
alt: e.title,
|
|
5134
|
-
className:
|
|
5135
|
-
onClick: a ?
|
|
5145
|
+
className: I,
|
|
5146
|
+
onClick: a ? v : void 0,
|
|
5136
5147
|
onError: () => h(!0)
|
|
5137
5148
|
}
|
|
5138
5149
|
),
|
|
5139
5150
|
/* @__PURE__ */ r("div", { className: "absolute inset-0 bg-gradient-to-b from-transparent to-black/40 pointer-events-none rounded-2xl" })
|
|
5140
5151
|
] }),
|
|
5141
|
-
/* @__PURE__ */ r("div", { className:
|
|
5142
|
-
const j = i?.[
|
|
5152
|
+
/* @__PURE__ */ r("div", { className: T, children: e.transactionTypes.map((F, V) => {
|
|
5153
|
+
const j = i?.[F.type];
|
|
5143
5154
|
return /* @__PURE__ */ r(
|
|
5144
5155
|
"span",
|
|
5145
5156
|
{
|
|
5146
5157
|
className: f(
|
|
5147
|
-
|
|
5158
|
+
L,
|
|
5148
5159
|
Po(
|
|
5149
|
-
|
|
5160
|
+
F,
|
|
5150
5161
|
j,
|
|
5151
|
-
|
|
5162
|
+
g
|
|
5152
5163
|
)
|
|
5153
5164
|
),
|
|
5154
5165
|
style: j ? { backgroundColor: j } : void 0,
|
|
5155
|
-
children:
|
|
5166
|
+
children: F.type
|
|
5156
5167
|
},
|
|
5157
|
-
|
|
5168
|
+
V
|
|
5158
5169
|
);
|
|
5159
5170
|
}) }),
|
|
5160
5171
|
n && /* @__PURE__ */ r(
|
|
5161
5172
|
"button",
|
|
5162
5173
|
{
|
|
5163
|
-
onClick:
|
|
5164
|
-
className:
|
|
5174
|
+
onClick: M,
|
|
5175
|
+
className: S,
|
|
5165
5176
|
"aria-label": m ? "Unlike property" : "Like property",
|
|
5166
|
-
children:
|
|
5177
|
+
children: k ? /* @__PURE__ */ r(
|
|
5167
5178
|
"svg",
|
|
5168
5179
|
{
|
|
5169
5180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5186,26 +5197,26 @@ const Po = (e, t, o) => {
|
|
|
5186
5197
|
{
|
|
5187
5198
|
size: 20,
|
|
5188
5199
|
fill: m ? "currentColor" : "none",
|
|
5189
|
-
className:
|
|
5190
|
-
strokeWidth:
|
|
5200
|
+
className: g ? "text-white" : m ? "text-destructive" : "",
|
|
5201
|
+
strokeWidth: g ? 1.5 : 2
|
|
5191
5202
|
}
|
|
5192
5203
|
)
|
|
5193
5204
|
}
|
|
5194
5205
|
),
|
|
5195
|
-
!
|
|
5206
|
+
!k && !C && e.images.length > 1 && /* @__PURE__ */ r("div", { className: y, children: e.images.map((F, V) => /* @__PURE__ */ r(
|
|
5196
5207
|
"button",
|
|
5197
5208
|
{
|
|
5198
5209
|
className: f(
|
|
5199
|
-
|
|
5200
|
-
|
|
5210
|
+
A,
|
|
5211
|
+
V === l ? "bg-white" : "bg-white/50"
|
|
5201
5212
|
),
|
|
5202
5213
|
onClick: (j) => {
|
|
5203
|
-
j.preventDefault(), j.stopPropagation(), c(
|
|
5214
|
+
j.preventDefault(), j.stopPropagation(), c(V);
|
|
5204
5215
|
},
|
|
5205
|
-
"aria-label": `Go to image ${
|
|
5206
|
-
"aria-current":
|
|
5216
|
+
"aria-label": `Go to image ${V + 1}`,
|
|
5217
|
+
"aria-current": V === l
|
|
5207
5218
|
},
|
|
5208
|
-
|
|
5219
|
+
V
|
|
5209
5220
|
)) })
|
|
5210
5221
|
]
|
|
5211
5222
|
}
|
|
@@ -5214,26 +5225,26 @@ const Po = (e, t, o) => {
|
|
|
5214
5225
|
/* @__PURE__ */ r("h3", { className: re, children: e.title }),
|
|
5215
5226
|
/* @__PURE__ */ r("p", { className: X, children: N(e.price?.amount, e.price?.currency) }),
|
|
5216
5227
|
/* @__PURE__ */ p("p", { className: oe, children: [
|
|
5217
|
-
|
|
5228
|
+
k && /* @__PURE__ */ r(mo, { size: 14 }),
|
|
5218
5229
|
e.location.city,
|
|
5219
5230
|
", ",
|
|
5220
5231
|
e.location.state
|
|
5221
5232
|
] }),
|
|
5222
5233
|
/* @__PURE__ */ p("div", { className: Q, children: [
|
|
5223
5234
|
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5224
|
-
/* @__PURE__ */ r(Qr, { size:
|
|
5235
|
+
/* @__PURE__ */ r(Qr, { size: g ? 20 : 16 }),
|
|
5225
5236
|
/* @__PURE__ */ r("span", { children: e.features.bedrooms })
|
|
5226
5237
|
] }),
|
|
5227
5238
|
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5228
|
-
/* @__PURE__ */ r(Kr, { size:
|
|
5239
|
+
/* @__PURE__ */ r(Kr, { size: g ? 20 : 16 }),
|
|
5229
5240
|
/* @__PURE__ */ r("span", { children: e.features.bathrooms })
|
|
5230
5241
|
] }),
|
|
5231
5242
|
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5232
|
-
/* @__PURE__ */ r(eo, { size:
|
|
5243
|
+
/* @__PURE__ */ r(eo, { size: g ? 20 : 16 }),
|
|
5233
5244
|
/* @__PURE__ */ r("span", { children: e.features.parking })
|
|
5234
5245
|
] }),
|
|
5235
5246
|
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5236
|
-
/* @__PURE__ */ r(po, { size:
|
|
5247
|
+
/* @__PURE__ */ r(po, { size: g ? 20 : 16 }),
|
|
5237
5248
|
/* @__PURE__ */ p("span", { children: [
|
|
5238
5249
|
e.features.area,
|
|
5239
5250
|
" m²"
|
|
@@ -5342,7 +5353,7 @@ function Ro({
|
|
|
5342
5353
|
transactionTypeOptions: a,
|
|
5343
5354
|
locationOptions: n
|
|
5344
5355
|
}) {
|
|
5345
|
-
const s =
|
|
5356
|
+
const s = w.useMemo(
|
|
5346
5357
|
() => ({
|
|
5347
5358
|
propertyType: t?.propertyType || o[0]?.value || "",
|
|
5348
5359
|
transactionType: t?.transactionType || a[0]?.value || "",
|
|
@@ -5354,7 +5365,7 @@ function Ro({
|
|
|
5354
5365
|
a,
|
|
5355
5366
|
n
|
|
5356
5367
|
]
|
|
5357
|
-
), [i, l] =
|
|
5368
|
+
), [i, l] = w.useState(s), c = w.useCallback(
|
|
5358
5369
|
(u) => {
|
|
5359
5370
|
l((d) => {
|
|
5360
5371
|
const h = typeof u == "function" ? u(d) : u;
|
|
@@ -5362,7 +5373,7 @@ function Ro({
|
|
|
5362
5373
|
});
|
|
5363
5374
|
},
|
|
5364
5375
|
[]
|
|
5365
|
-
), m =
|
|
5376
|
+
), m = w.useCallback(
|
|
5366
5377
|
(u) => {
|
|
5367
5378
|
u.preventDefault(), e?.({
|
|
5368
5379
|
propertyType: i.propertyType,
|
|
@@ -5381,7 +5392,7 @@ function Ro({
|
|
|
5381
5392
|
locationOptions: n
|
|
5382
5393
|
};
|
|
5383
5394
|
}
|
|
5384
|
-
const
|
|
5395
|
+
const Fe = ({
|
|
5385
5396
|
variant: e = "pill",
|
|
5386
5397
|
isSubmitting: t,
|
|
5387
5398
|
className: o
|
|
@@ -5402,7 +5413,7 @@ const _e = ({
|
|
|
5402
5413
|
children: /* @__PURE__ */ r(je, { className: "h-6 w-6" })
|
|
5403
5414
|
}
|
|
5404
5415
|
);
|
|
5405
|
-
},
|
|
5416
|
+
}, _ = ({
|
|
5406
5417
|
label: e,
|
|
5407
5418
|
options: t,
|
|
5408
5419
|
value: o,
|
|
@@ -5410,20 +5421,20 @@ const _e = ({
|
|
|
5410
5421
|
className: n,
|
|
5411
5422
|
containerClassName: s
|
|
5412
5423
|
}) => {
|
|
5413
|
-
const i =
|
|
5424
|
+
const i = w.useMemo(
|
|
5414
5425
|
() => t.map((c) => ({
|
|
5415
5426
|
value: c.value,
|
|
5416
5427
|
label: c.label
|
|
5417
5428
|
})),
|
|
5418
5429
|
[t]
|
|
5419
|
-
), l =
|
|
5430
|
+
), l = w.useCallback(
|
|
5420
5431
|
(c) => {
|
|
5421
5432
|
a(c.target.value);
|
|
5422
5433
|
},
|
|
5423
5434
|
[a]
|
|
5424
5435
|
);
|
|
5425
5436
|
return /* @__PURE__ */ r("div", { className: f("flex min-w-0 flex-1 items-center", s), children: /* @__PURE__ */ r("div", { className: "flex-1 px-6 py-3.5", children: /* @__PURE__ */ r(
|
|
5426
|
-
|
|
5437
|
+
_e,
|
|
5427
5438
|
{
|
|
5428
5439
|
label: e,
|
|
5429
5440
|
options: i,
|
|
@@ -5447,7 +5458,7 @@ const _e = ({
|
|
|
5447
5458
|
}) => /* @__PURE__ */ r("div", { className: f("rounded-xl bg-white shadow-lg p-6", i), children: /* @__PURE__ */ p("form", { className: "space-y-6", onSubmit: n, children: [
|
|
5448
5459
|
/* @__PURE__ */ p("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: [
|
|
5449
5460
|
/* @__PURE__ */ r(
|
|
5450
|
-
|
|
5461
|
+
_,
|
|
5451
5462
|
{
|
|
5452
5463
|
label: "Property Type",
|
|
5453
5464
|
options: t.propertyTypeOptions,
|
|
@@ -5458,7 +5469,7 @@ const _e = ({
|
|
|
5458
5469
|
}
|
|
5459
5470
|
),
|
|
5460
5471
|
/* @__PURE__ */ r(
|
|
5461
|
-
|
|
5472
|
+
_,
|
|
5462
5473
|
{
|
|
5463
5474
|
label: "Transaction",
|
|
5464
5475
|
options: t.transactionTypeOptions,
|
|
@@ -5469,7 +5480,7 @@ const _e = ({
|
|
|
5469
5480
|
}
|
|
5470
5481
|
),
|
|
5471
5482
|
/* @__PURE__ */ r(
|
|
5472
|
-
|
|
5483
|
+
_,
|
|
5473
5484
|
{
|
|
5474
5485
|
label: "Location",
|
|
5475
5486
|
options: t.locationOptions,
|
|
@@ -5516,7 +5527,7 @@ const _e = ({
|
|
|
5516
5527
|
"aria-label": "Property search form",
|
|
5517
5528
|
children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-3 rounded-2xl bg-white p-4 shadow-lg", children: [
|
|
5518
5529
|
/* @__PURE__ */ r(
|
|
5519
|
-
|
|
5530
|
+
_,
|
|
5520
5531
|
{
|
|
5521
5532
|
label: "Property Type",
|
|
5522
5533
|
options: t.propertyTypeOptions,
|
|
@@ -5526,7 +5537,7 @@ const _e = ({
|
|
|
5526
5537
|
}
|
|
5527
5538
|
),
|
|
5528
5539
|
/* @__PURE__ */ r(
|
|
5529
|
-
|
|
5540
|
+
_,
|
|
5530
5541
|
{
|
|
5531
5542
|
label: "Transaction",
|
|
5532
5543
|
options: t.transactionTypeOptions,
|
|
@@ -5536,7 +5547,7 @@ const _e = ({
|
|
|
5536
5547
|
}
|
|
5537
5548
|
),
|
|
5538
5549
|
/* @__PURE__ */ r(
|
|
5539
|
-
|
|
5550
|
+
_,
|
|
5540
5551
|
{
|
|
5541
5552
|
label: "Location",
|
|
5542
5553
|
options: t.locationOptions,
|
|
@@ -5545,7 +5556,7 @@ const _e = ({
|
|
|
5545
5556
|
onChange: o("location")
|
|
5546
5557
|
}
|
|
5547
5558
|
),
|
|
5548
|
-
/* @__PURE__ */ r(
|
|
5559
|
+
/* @__PURE__ */ r(Fe, { variant: "mobile", isSubmitting: a })
|
|
5549
5560
|
] })
|
|
5550
5561
|
}
|
|
5551
5562
|
), ie = ({ className: e }) => /* @__PURE__ */ r("div", { className: f("w-px self-stretch bg-gray-300 mx-6", e) }), Lo = ({
|
|
@@ -5564,7 +5575,7 @@ const _e = ({
|
|
|
5564
5575
|
"aria-label": "Property search form",
|
|
5565
5576
|
children: /* @__PURE__ */ p("div", { className: "flex items-stretch bg-white border border-gray-300 shadow-xl relative z-10 px-3", children: [
|
|
5566
5577
|
/* @__PURE__ */ r(
|
|
5567
|
-
|
|
5578
|
+
_,
|
|
5568
5579
|
{
|
|
5569
5580
|
label: "Tipo de propiedad",
|
|
5570
5581
|
options: t.propertyTypeOptions,
|
|
@@ -5574,7 +5585,7 @@ const _e = ({
|
|
|
5574
5585
|
),
|
|
5575
5586
|
/* @__PURE__ */ r(ie, {}),
|
|
5576
5587
|
/* @__PURE__ */ r(
|
|
5577
|
-
|
|
5588
|
+
_,
|
|
5578
5589
|
{
|
|
5579
5590
|
label: "Transacción",
|
|
5580
5591
|
options: t.transactionTypeOptions,
|
|
@@ -5584,7 +5595,7 @@ const _e = ({
|
|
|
5584
5595
|
),
|
|
5585
5596
|
/* @__PURE__ */ r(ie, {}),
|
|
5586
5597
|
/* @__PURE__ */ r(
|
|
5587
|
-
|
|
5598
|
+
_,
|
|
5588
5599
|
{
|
|
5589
5600
|
label: "Ciudad",
|
|
5590
5601
|
options: t.locationOptions,
|
|
@@ -5620,7 +5631,7 @@ const _e = ({
|
|
|
5620
5631
|
"aria-label": "Property search form",
|
|
5621
5632
|
children: /* @__PURE__ */ p("div", { className: "flex items-stretch rounded-full bg-white border border-gray-300 shadow-xl relative z-10 p-1.5", children: [
|
|
5622
5633
|
/* @__PURE__ */ r(
|
|
5623
|
-
|
|
5634
|
+
_,
|
|
5624
5635
|
{
|
|
5625
5636
|
label: "Property Type",
|
|
5626
5637
|
options: t.propertyTypeOptions,
|
|
@@ -5630,7 +5641,7 @@ const _e = ({
|
|
|
5630
5641
|
),
|
|
5631
5642
|
/* @__PURE__ */ r(ie, {}),
|
|
5632
5643
|
/* @__PURE__ */ r(
|
|
5633
|
-
|
|
5644
|
+
_,
|
|
5634
5645
|
{
|
|
5635
5646
|
label: "Transaction",
|
|
5636
5647
|
options: t.transactionTypeOptions,
|
|
@@ -5640,7 +5651,7 @@ const _e = ({
|
|
|
5640
5651
|
),
|
|
5641
5652
|
/* @__PURE__ */ r(ie, {}),
|
|
5642
5653
|
/* @__PURE__ */ r(
|
|
5643
|
-
|
|
5654
|
+
_,
|
|
5644
5655
|
{
|
|
5645
5656
|
label: "Location",
|
|
5646
5657
|
options: t.locationOptions,
|
|
@@ -5650,7 +5661,7 @@ const _e = ({
|
|
|
5650
5661
|
}
|
|
5651
5662
|
),
|
|
5652
5663
|
/* @__PURE__ */ r("div", { className: "flex items-center", children: /* @__PURE__ */ r(
|
|
5653
|
-
|
|
5664
|
+
Fe,
|
|
5654
5665
|
{
|
|
5655
5666
|
variant: "pill",
|
|
5656
5667
|
isSubmitting: a,
|
|
@@ -5673,7 +5684,7 @@ const _e = ({
|
|
|
5673
5684
|
"aria-label": "Property search form",
|
|
5674
5685
|
children: /* @__PURE__ */ p("div", { className: "grid grid-cols-1 gap-3 rounded-2xl bg-white p-4 shadow-lg", children: [
|
|
5675
5686
|
/* @__PURE__ */ r(
|
|
5676
|
-
|
|
5687
|
+
_,
|
|
5677
5688
|
{
|
|
5678
5689
|
label: "Property Type",
|
|
5679
5690
|
options: t.propertyTypeOptions,
|
|
@@ -5683,7 +5694,7 @@ const _e = ({
|
|
|
5683
5694
|
}
|
|
5684
5695
|
),
|
|
5685
5696
|
/* @__PURE__ */ r(
|
|
5686
|
-
|
|
5697
|
+
_,
|
|
5687
5698
|
{
|
|
5688
5699
|
label: "Transaction",
|
|
5689
5700
|
options: t.transactionTypeOptions,
|
|
@@ -5693,7 +5704,7 @@ const _e = ({
|
|
|
5693
5704
|
}
|
|
5694
5705
|
),
|
|
5695
5706
|
/* @__PURE__ */ r(
|
|
5696
|
-
|
|
5707
|
+
_,
|
|
5697
5708
|
{
|
|
5698
5709
|
label: "Location",
|
|
5699
5710
|
options: t.locationOptions,
|
|
@@ -5702,10 +5713,10 @@ const _e = ({
|
|
|
5702
5713
|
onChange: o("location")
|
|
5703
5714
|
}
|
|
5704
5715
|
),
|
|
5705
|
-
/* @__PURE__ */ r(
|
|
5716
|
+
/* @__PURE__ */ r(Fe, { variant: "mobile", isSubmitting: a })
|
|
5706
5717
|
] })
|
|
5707
5718
|
}
|
|
5708
|
-
),
|
|
5719
|
+
), _o = ({
|
|
5709
5720
|
formData: e,
|
|
5710
5721
|
options: t,
|
|
5711
5722
|
onFieldChange: o,
|
|
@@ -5721,7 +5732,7 @@ const _e = ({
|
|
|
5721
5732
|
"aria-label": "Property search form",
|
|
5722
5733
|
children: /* @__PURE__ */ p("div", { className: "flex items-stretch rounded-lg bg-white border border-gray-300 shadow-xl relative z-10 px-3", children: [
|
|
5723
5734
|
/* @__PURE__ */ r(
|
|
5724
|
-
|
|
5735
|
+
_,
|
|
5725
5736
|
{
|
|
5726
5737
|
label: "Tipo de propiedad",
|
|
5727
5738
|
options: t.propertyTypeOptions,
|
|
@@ -5732,7 +5743,7 @@ const _e = ({
|
|
|
5732
5743
|
),
|
|
5733
5744
|
/* @__PURE__ */ r(ie, {}),
|
|
5734
5745
|
/* @__PURE__ */ r(
|
|
5735
|
-
|
|
5746
|
+
_,
|
|
5736
5747
|
{
|
|
5737
5748
|
label: "Transacción",
|
|
5738
5749
|
options: t.transactionTypeOptions,
|
|
@@ -5742,7 +5753,7 @@ const _e = ({
|
|
|
5742
5753
|
),
|
|
5743
5754
|
/* @__PURE__ */ r(ie, {}),
|
|
5744
5755
|
/* @__PURE__ */ r(
|
|
5745
|
-
|
|
5756
|
+
_,
|
|
5746
5757
|
{
|
|
5747
5758
|
label: "Ciudad",
|
|
5748
5759
|
options: t.locationOptions,
|
|
@@ -5765,11 +5776,11 @@ const _e = ({
|
|
|
5765
5776
|
}
|
|
5766
5777
|
), et = {
|
|
5767
5778
|
minimal: $o,
|
|
5768
|
-
modern:
|
|
5779
|
+
modern: _o,
|
|
5769
5780
|
luxury: Lo,
|
|
5770
5781
|
compact: Ao,
|
|
5771
5782
|
card: jo
|
|
5772
|
-
},
|
|
5783
|
+
}, Vo = ({
|
|
5773
5784
|
onSubmit: e,
|
|
5774
5785
|
defaultValues: t,
|
|
5775
5786
|
className: o,
|
|
@@ -5779,72 +5790,72 @@ const _e = ({
|
|
|
5779
5790
|
locationOptions: i,
|
|
5780
5791
|
buttonLabel: l
|
|
5781
5792
|
}) => {
|
|
5782
|
-
const [c, m] =
|
|
5793
|
+
const [c, m] = w.useState(!1), [u, d] = w.useState(null), h = Ro({
|
|
5783
5794
|
onSubmit: e,
|
|
5784
5795
|
defaultValues: t,
|
|
5785
5796
|
propertyTypeOptions: n,
|
|
5786
5797
|
transactionTypeOptions: s,
|
|
5787
5798
|
locationOptions: i
|
|
5788
5799
|
}), {
|
|
5789
|
-
formData:
|
|
5790
|
-
setFormData:
|
|
5800
|
+
formData: M,
|
|
5801
|
+
setFormData: v,
|
|
5791
5802
|
handleSubmit: N,
|
|
5792
|
-
propertyTypeOptions:
|
|
5793
|
-
transactionTypeOptions:
|
|
5794
|
-
locationOptions:
|
|
5795
|
-
} = h,
|
|
5796
|
-
async (
|
|
5797
|
-
|
|
5803
|
+
propertyTypeOptions: k,
|
|
5804
|
+
transactionTypeOptions: g,
|
|
5805
|
+
locationOptions: E
|
|
5806
|
+
} = h, P = w.useCallback(
|
|
5807
|
+
async (S) => {
|
|
5808
|
+
S.preventDefault(), d(null), m(!0);
|
|
5798
5809
|
try {
|
|
5799
|
-
await N(
|
|
5800
|
-
} catch (
|
|
5801
|
-
const
|
|
5802
|
-
d(
|
|
5810
|
+
await N(S);
|
|
5811
|
+
} catch (y) {
|
|
5812
|
+
const A = y instanceof Error ? y.message : "Search failed. Please try again.";
|
|
5813
|
+
d(A), console.error("Search error:", y);
|
|
5803
5814
|
} finally {
|
|
5804
5815
|
m(!1);
|
|
5805
5816
|
}
|
|
5806
5817
|
},
|
|
5807
5818
|
[N]
|
|
5808
|
-
),
|
|
5809
|
-
(
|
|
5810
|
-
d(null),
|
|
5819
|
+
), I = w.useCallback(
|
|
5820
|
+
(S) => (y) => {
|
|
5821
|
+
d(null), v((A) => ({ ...A, [S]: y }));
|
|
5811
5822
|
},
|
|
5812
|
-
[
|
|
5813
|
-
),
|
|
5823
|
+
[v]
|
|
5824
|
+
), T = w.useMemo(
|
|
5814
5825
|
() => ({
|
|
5815
|
-
propertyTypeOptions:
|
|
5816
|
-
transactionTypeOptions:
|
|
5817
|
-
locationOptions:
|
|
5826
|
+
propertyTypeOptions: k,
|
|
5827
|
+
transactionTypeOptions: g,
|
|
5828
|
+
locationOptions: E
|
|
5818
5829
|
}),
|
|
5819
|
-
[
|
|
5820
|
-
),
|
|
5830
|
+
[k, g, E]
|
|
5831
|
+
), L = et[a] || et.minimal;
|
|
5821
5832
|
return /* @__PURE__ */ p(se, { children: [
|
|
5822
5833
|
/* @__PURE__ */ r(
|
|
5823
|
-
|
|
5834
|
+
L,
|
|
5824
5835
|
{
|
|
5825
|
-
formData:
|
|
5826
|
-
options:
|
|
5836
|
+
formData: M,
|
|
5837
|
+
options: T,
|
|
5827
5838
|
isSubmitting: c,
|
|
5828
5839
|
error: u,
|
|
5829
5840
|
className: o,
|
|
5830
|
-
onFieldChange:
|
|
5831
|
-
onSubmit:
|
|
5841
|
+
onFieldChange: I,
|
|
5842
|
+
onSubmit: P,
|
|
5832
5843
|
...(a === "modern" || a === "luxury") && { buttonLabel: l }
|
|
5833
5844
|
}
|
|
5834
5845
|
),
|
|
5835
5846
|
a === "minimal" && /* @__PURE__ */ r(
|
|
5836
5847
|
Oo,
|
|
5837
5848
|
{
|
|
5838
|
-
formData:
|
|
5839
|
-
options:
|
|
5849
|
+
formData: M,
|
|
5850
|
+
options: T,
|
|
5840
5851
|
isSubmitting: c,
|
|
5841
|
-
onFieldChange:
|
|
5842
|
-
onSubmit:
|
|
5852
|
+
onFieldChange: I,
|
|
5853
|
+
onSubmit: P
|
|
5843
5854
|
}
|
|
5844
5855
|
)
|
|
5845
5856
|
] });
|
|
5846
5857
|
};
|
|
5847
|
-
|
|
5858
|
+
Vo.displayName = "SearchFeature";
|
|
5848
5859
|
const sa = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
5849
5860
|
"a",
|
|
5850
5861
|
{
|
|
@@ -6126,7 +6137,7 @@ const sa = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6126
6137
|
if (!e)
|
|
6127
6138
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
6128
6139
|
return e;
|
|
6129
|
-
},
|
|
6140
|
+
}, Fo = {
|
|
6130
6141
|
name: "light",
|
|
6131
6142
|
colors: {
|
|
6132
6143
|
primary: "#007bff",
|
|
@@ -6391,7 +6402,7 @@ const sa = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6391
6402
|
xl: "none"
|
|
6392
6403
|
}
|
|
6393
6404
|
}, ze = {
|
|
6394
|
-
light:
|
|
6405
|
+
light: Fo,
|
|
6395
6406
|
dark: Do,
|
|
6396
6407
|
corporate: Bo,
|
|
6397
6408
|
minimal: Ho
|
|
@@ -6424,14 +6435,14 @@ export {
|
|
|
6424
6435
|
So as HeroBanner,
|
|
6425
6436
|
ne as Input,
|
|
6426
6437
|
aa as MarketingLayout,
|
|
6427
|
-
|
|
6428
|
-
|
|
6438
|
+
Vr as Modal,
|
|
6439
|
+
Fr as ModalWithActions,
|
|
6429
6440
|
zo as MortgageCalculator,
|
|
6430
|
-
|
|
6441
|
+
Ve as PageLayout,
|
|
6431
6442
|
na as PropertyCard,
|
|
6432
6443
|
Eo as PropertyGallery,
|
|
6433
|
-
|
|
6434
|
-
|
|
6444
|
+
Vo as SearchFeature,
|
|
6445
|
+
_e as Select,
|
|
6435
6446
|
sa as SkipLink,
|
|
6436
6447
|
R as Text,
|
|
6437
6448
|
va as ThemeProvider,
|