@homlista-devs/ui 1.6.4 → 1.6.6
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/README.md +25 -8
- package/dist/base.css +1373 -0
- package/dist/design-system.cjs.js +16 -16
- package/dist/design-system.cjs.js.map +1 -1
- package/dist/design-system.es.js +472 -484
- package/dist/design-system.es.js.map +1 -1
- package/dist/index.css +43 -30
- package/dist/precompiled.css +3644 -0
- package/dist/styles.css +1373 -0
- package/dist/tokens.css +387 -0
- package/dist/types/widgets/header/ui/header.d.ts.map +1 -1
- package/package.json +15 -5
package/dist/design-system.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as se } from "react/jsx-runtime";
|
|
2
2
|
import * as v from "react";
|
|
3
|
-
import Ae, { useState as ee, useMemo as Ne, useCallback as He, useEffect as Ce, forwardRef as we, createElement as Pe, useContext as
|
|
4
|
-
import { createEvent as Le, createStore as
|
|
5
|
-
import { useUnit as
|
|
6
|
-
function
|
|
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
|
+
import { createEvent as Le, createStore as zt } from "effector";
|
|
5
|
+
import { useUnit as Pt } from "effector-react";
|
|
6
|
+
function It(e, t) {
|
|
7
7
|
return !t || t === "all" ? e : e.filter((o) => o.categoryId === t);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Et(e, t) {
|
|
10
10
|
const o = [...e];
|
|
11
11
|
return o.sort((a, n) => {
|
|
12
12
|
let s = "", i = "";
|
|
@@ -21,7 +21,7 @@ function Ge(e) {
|
|
|
21
21
|
function Rt(e, t) {
|
|
22
22
|
return t === "all" ? e.length : e.filter((o) => o.categoryId === t).length;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function jt(e) {
|
|
25
25
|
const {
|
|
26
26
|
propertyPrice: t,
|
|
27
27
|
downPayment: o,
|
|
@@ -37,10 +37,10 @@ function At(e) {
|
|
|
37
37
|
const y = Math.pow(1 + c, m);
|
|
38
38
|
u = l * (c * y) / (y - 1);
|
|
39
39
|
}
|
|
40
|
-
const d = u * m, h = d - l,
|
|
40
|
+
const d = u * m, h = d - l, S = u + s + i;
|
|
41
41
|
return {
|
|
42
42
|
monthlyPayment: Math.round(u * 100) / 100,
|
|
43
|
-
totalMonthlyPayment: Math.round(
|
|
43
|
+
totalMonthlyPayment: Math.round(S * 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,
|
|
@@ -69,20 +69,20 @@ function Qo(e) {
|
|
|
69
69
|
errors: t
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function tt(e) {
|
|
73
73
|
var t, o, a = "";
|
|
74
74
|
if (typeof e == "string" || typeof e == "number") a += e;
|
|
75
75
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
76
76
|
var n = e.length;
|
|
77
|
-
for (t = 0; t < n; t++) e[t] && (o =
|
|
77
|
+
for (t = 0; t < n; t++) e[t] && (o = tt(e[t])) && (a && (a += " "), a += o);
|
|
78
78
|
} else for (o in e) e[o] && (a && (a += " "), a += o);
|
|
79
79
|
return a;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
for (var e, t, o = 0, a = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t =
|
|
81
|
+
function rt() {
|
|
82
|
+
for (var e, t, o = 0, a = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = tt(e)) && (a && (a += " "), a += t);
|
|
83
83
|
return a;
|
|
84
84
|
}
|
|
85
|
-
const We = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ue =
|
|
85
|
+
const We = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ue = rt, J = (e, t) => (o) => {
|
|
86
86
|
var a;
|
|
87
87
|
if (t?.variants == null) return Ue(e, o?.class, o?.className);
|
|
88
88
|
const { variants: n, defaultVariants: s } = t, i = Object.keys(n).map((m) => {
|
|
@@ -94,8 +94,8 @@ const We = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ue = ot, 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(
|
|
97
|
+
let { class: d, className: h, ...S } = u;
|
|
98
|
+
return Object.entries(S).every((y) => {
|
|
99
99
|
let [N, g] = y;
|
|
100
100
|
return Array.isArray(g) ? g.includes({
|
|
101
101
|
...s,
|
|
@@ -111,7 +111,7 @@ const We = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ue = ot, J
|
|
|
111
111
|
] : m;
|
|
112
112
|
}, []);
|
|
113
113
|
return Ue(e, i, c, o?.class, o?.className);
|
|
114
|
-
},
|
|
114
|
+
}, At = J(
|
|
115
115
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
116
116
|
{
|
|
117
117
|
variants: {
|
|
@@ -141,7 +141,7 @@ function qe(e, t) {
|
|
|
141
141
|
return e(t);
|
|
142
142
|
e != null && (e.current = t);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Lt(...e) {
|
|
145
145
|
return (t) => {
|
|
146
146
|
let o = !1;
|
|
147
147
|
const a = e.map((n) => {
|
|
@@ -158,9 +158,9 @@ function $t(...e) {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
// @__NO_SIDE_EFFECTS__
|
|
161
|
-
function
|
|
162
|
-
const t = /* @__PURE__ */
|
|
163
|
-
const { children: s, ...i } = a, l = v.Children.toArray(s), c = l.find(
|
|
161
|
+
function $t(e) {
|
|
162
|
+
const t = /* @__PURE__ */ Vt(e), o = v.forwardRef((a, n) => {
|
|
163
|
+
const { children: s, ...i } = a, l = v.Children.toArray(s), c = l.find(_t);
|
|
164
164
|
if (c) {
|
|
165
165
|
const m = c.props.children, u = l.map((d) => d === c ? v.Children.count(m) > 1 ? v.Children.only(null) : v.isValidElement(m) ? m.props.children : null : d);
|
|
166
166
|
return /* @__PURE__ */ r(t, { ...i, ref: n, children: v.isValidElement(m) ? v.cloneElement(m, void 0, u) : null });
|
|
@@ -169,24 +169,24 @@ function Ot(e) {
|
|
|
169
169
|
});
|
|
170
170
|
return o.displayName = `${e}.Slot`, o;
|
|
171
171
|
}
|
|
172
|
-
var
|
|
172
|
+
var Ot = /* @__PURE__ */ $t("Slot");
|
|
173
173
|
// @__NO_SIDE_EFFECTS__
|
|
174
|
-
function
|
|
174
|
+
function Vt(e) {
|
|
175
175
|
const t = v.forwardRef((o, a) => {
|
|
176
176
|
const { children: n, ...s } = o;
|
|
177
177
|
if (v.isValidElement(n)) {
|
|
178
|
-
const i =
|
|
179
|
-
return n.type !== v.Fragment && (l.ref = a ?
|
|
178
|
+
const i = Bt(n), l = Dt(s, n.props);
|
|
179
|
+
return n.type !== v.Fragment && (l.ref = a ? Lt(a, i) : i), v.cloneElement(n, l);
|
|
180
180
|
}
|
|
181
181
|
return v.Children.count(n) > 1 ? v.Children.only(null) : null;
|
|
182
182
|
});
|
|
183
183
|
return t.displayName = `${e}.SlotClone`, t;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
186
|
-
function
|
|
187
|
-
return v.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
185
|
+
var Ft = Symbol("radix.slottable");
|
|
186
|
+
function _t(e) {
|
|
187
|
+
return v.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ft;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Dt(e, t) {
|
|
190
190
|
const o = { ...t };
|
|
191
191
|
for (const a in t) {
|
|
192
192
|
const n = e[a], s = t[a];
|
|
@@ -197,29 +197,29 @@ function Bt(e, t) {
|
|
|
197
197
|
}
|
|
198
198
|
return { ...e, ...o };
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Bt(e) {
|
|
201
201
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
202
202
|
return o ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
203
203
|
}
|
|
204
|
-
const $e = "-",
|
|
205
|
-
const t =
|
|
204
|
+
const $e = "-", Ht = (e) => {
|
|
205
|
+
const t = Wt(e), {
|
|
206
206
|
conflictingClassGroups: o,
|
|
207
207
|
conflictingClassGroupModifiers: a
|
|
208
208
|
} = e;
|
|
209
209
|
return {
|
|
210
210
|
getClassGroupId: (i) => {
|
|
211
211
|
const l = i.split($e);
|
|
212
|
-
return l[0] === "" && l.length !== 1 && l.shift(),
|
|
212
|
+
return l[0] === "" && l.length !== 1 && l.shift(), ot(l, t) || Gt(i);
|
|
213
213
|
},
|
|
214
214
|
getConflictingClassGroupIds: (i, l) => {
|
|
215
215
|
const c = o[i] || [];
|
|
216
216
|
return l && a[i] ? [...c, ...a[i]] : c;
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
|
-
},
|
|
219
|
+
}, ot = (e, t) => {
|
|
220
220
|
if (e.length === 0)
|
|
221
221
|
return t.classGroupId;
|
|
222
|
-
const o = e[0], a = t.nextPart.get(o), n = a ?
|
|
222
|
+
const o = e[0], a = t.nextPart.get(o), n = a ? ot(e.slice(1), a) : void 0;
|
|
223
223
|
if (n)
|
|
224
224
|
return n;
|
|
225
225
|
if (t.validators.length === 0)
|
|
@@ -228,13 +228,13 @@ const $e = "-", Gt = (e) => {
|
|
|
228
228
|
return t.validators.find(({
|
|
229
229
|
validator: i
|
|
230
230
|
}) => i(s))?.classGroupId;
|
|
231
|
-
}, Xe = /^\[(.+)\]$/,
|
|
231
|
+
}, Xe = /^\[(.+)\]$/, Gt = (e) => {
|
|
232
232
|
if (Xe.test(e)) {
|
|
233
233
|
const t = Xe.exec(e)[1], o = t?.substring(0, t.indexOf(":"));
|
|
234
234
|
if (o)
|
|
235
235
|
return "arbitrary.." + o;
|
|
236
236
|
}
|
|
237
|
-
},
|
|
237
|
+
}, Wt = (e) => {
|
|
238
238
|
const {
|
|
239
239
|
theme: t,
|
|
240
240
|
classGroups: o
|
|
@@ -253,7 +253,7 @@ const $e = "-", Gt = (e) => {
|
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
255
|
if (typeof n == "function") {
|
|
256
|
-
if (
|
|
256
|
+
if (Ut(n)) {
|
|
257
257
|
Ie(n(a), t, o, a);
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
@@ -275,7 +275,7 @@ const $e = "-", Gt = (e) => {
|
|
|
275
275
|
validators: []
|
|
276
276
|
}), o = o.nextPart.get(a);
|
|
277
277
|
}), o;
|
|
278
|
-
},
|
|
278
|
+
}, Ut = (e) => e.isThemeGetter, qt = (e) => {
|
|
279
279
|
if (e < 1)
|
|
280
280
|
return {
|
|
281
281
|
get: () => {
|
|
@@ -299,7 +299,7 @@ const $e = "-", Gt = (e) => {
|
|
|
299
299
|
o.has(s) ? o.set(s, i) : n(s, i);
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
|
-
}, Ee = "!",
|
|
302
|
+
}, Ee = "!", Re = ":", Xt = Re.length, Zt = (e) => {
|
|
303
303
|
const {
|
|
304
304
|
prefix: t,
|
|
305
305
|
experimentalParseClassName: o
|
|
@@ -310,8 +310,8 @@ const $e = "-", Gt = (e) => {
|
|
|
310
310
|
for (let y = 0; y < n.length; y++) {
|
|
311
311
|
let N = n[y];
|
|
312
312
|
if (i === 0 && l === 0) {
|
|
313
|
-
if (N ===
|
|
314
|
-
s.push(n.slice(c, y)), c = y +
|
|
313
|
+
if (N === Re) {
|
|
314
|
+
s.push(n.slice(c, y)), c = y + Xt;
|
|
315
315
|
continue;
|
|
316
316
|
}
|
|
317
317
|
if (N === "/") {
|
|
@@ -321,16 +321,16 @@ const $e = "-", Gt = (e) => {
|
|
|
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 =
|
|
324
|
+
const u = s.length === 0 ? n : n.substring(c), d = Kt(u), h = d !== u, S = 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: S
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
if (t) {
|
|
333
|
-
const n = t +
|
|
333
|
+
const n = t + Re, s = a;
|
|
334
334
|
a = (i) => i.startsWith(n) ? s(i.substring(n.length)) : {
|
|
335
335
|
isExternal: !0,
|
|
336
336
|
modifiers: [],
|
|
@@ -347,7 +347,7 @@ const $e = "-", Gt = (e) => {
|
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
349
|
return a;
|
|
350
|
-
},
|
|
350
|
+
}, Kt = (e) => e.endsWith(Ee) ? e.substring(0, e.length - 1) : e.startsWith(Ee) ? e.substring(1) : e, Jt = (e) => {
|
|
351
351
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((a) => [a, !0]));
|
|
352
352
|
return (a) => {
|
|
353
353
|
if (a.length <= 1)
|
|
@@ -358,24 +358,24 @@ const $e = "-", Gt = (e) => {
|
|
|
358
358
|
i[0] === "[" || t[i] ? (n.push(...s.sort(), i), s = []) : s.push(i);
|
|
359
359
|
}), n.push(...s.sort()), n;
|
|
360
360
|
};
|
|
361
|
-
},
|
|
362
|
-
cache:
|
|
363
|
-
parseClassName:
|
|
364
|
-
sortModifiers:
|
|
365
|
-
...
|
|
366
|
-
}),
|
|
361
|
+
}, Qt = (e) => ({
|
|
362
|
+
cache: qt(e.cacheSize),
|
|
363
|
+
parseClassName: Zt(e),
|
|
364
|
+
sortModifiers: Jt(e),
|
|
365
|
+
...Ht(e)
|
|
366
|
+
}), Yt = /\s+/, er = (e, t) => {
|
|
367
367
|
const {
|
|
368
368
|
parseClassName: o,
|
|
369
369
|
getClassGroupId: a,
|
|
370
370
|
getConflictingClassGroupIds: n,
|
|
371
371
|
sortModifiers: s
|
|
372
|
-
} = t, i = [], l = e.trim().split(
|
|
372
|
+
} = t, i = [], l = e.trim().split(Yt);
|
|
373
373
|
let c = "";
|
|
374
374
|
for (let m = l.length - 1; m >= 0; m -= 1) {
|
|
375
375
|
const u = l[m], {
|
|
376
376
|
isExternal: d,
|
|
377
377
|
modifiers: h,
|
|
378
|
-
hasImportantModifier:
|
|
378
|
+
hasImportantModifier: S,
|
|
379
379
|
baseClassName: y,
|
|
380
380
|
maybePostfixModifierPosition: N
|
|
381
381
|
} = o(u);
|
|
@@ -395,66 +395,66 @@ const $e = "-", Gt = (e) => {
|
|
|
395
395
|
}
|
|
396
396
|
g = !1;
|
|
397
397
|
}
|
|
398
|
-
const T = s(h).join(":"), E =
|
|
399
|
-
if (i.includes(
|
|
398
|
+
const T = s(h).join(":"), E = S ? T + Ee : T, P = E + w;
|
|
399
|
+
if (i.includes(P))
|
|
400
400
|
continue;
|
|
401
|
-
i.push(
|
|
402
|
-
const
|
|
403
|
-
for (let
|
|
404
|
-
const I =
|
|
401
|
+
i.push(P);
|
|
402
|
+
const M = n(w, g);
|
|
403
|
+
for (let A = 0; A < M.length; ++A) {
|
|
404
|
+
const I = M[A];
|
|
405
405
|
i.push(E + I);
|
|
406
406
|
}
|
|
407
407
|
c = u + (c.length > 0 ? " " + c : c);
|
|
408
408
|
}
|
|
409
409
|
return c;
|
|
410
410
|
};
|
|
411
|
-
function
|
|
411
|
+
function tr() {
|
|
412
412
|
let e = 0, t, o, a = "";
|
|
413
413
|
for (; e < arguments.length; )
|
|
414
|
-
(t = arguments[e++]) && (o =
|
|
414
|
+
(t = arguments[e++]) && (o = at(t)) && (a && (a += " "), a += o);
|
|
415
415
|
return a;
|
|
416
416
|
}
|
|
417
|
-
const
|
|
417
|
+
const at = (e) => {
|
|
418
418
|
if (typeof e == "string")
|
|
419
419
|
return e;
|
|
420
420
|
let t, o = "";
|
|
421
421
|
for (let a = 0; a < e.length; a++)
|
|
422
|
-
e[a] && (t =
|
|
422
|
+
e[a] && (t = at(e[a])) && (o && (o += " "), o += t);
|
|
423
423
|
return o;
|
|
424
424
|
};
|
|
425
|
-
function
|
|
425
|
+
function rr(e, ...t) {
|
|
426
426
|
let o, a, n, s = i;
|
|
427
427
|
function i(c) {
|
|
428
428
|
const m = t.reduce((u, d) => d(u), e());
|
|
429
|
-
return o =
|
|
429
|
+
return o = Qt(m), a = o.cache.get, n = o.cache.set, s = l, l(c);
|
|
430
430
|
}
|
|
431
431
|
function l(c) {
|
|
432
432
|
const m = a(c);
|
|
433
433
|
if (m)
|
|
434
434
|
return m;
|
|
435
|
-
const u =
|
|
435
|
+
const u = er(c, o);
|
|
436
436
|
return n(c, u), u;
|
|
437
437
|
}
|
|
438
438
|
return function() {
|
|
439
|
-
return s(
|
|
439
|
+
return s(tr.apply(null, arguments));
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const L = (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) => (
|
|
446
446
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
447
447
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
448
448
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
449
|
-
|
|
450
|
-
),
|
|
451
|
-
const a =
|
|
449
|
+
nr.test(e) && !sr.test(e)
|
|
450
|
+
), it = () => !1, mr = (e) => ir.test(e), ur = (e) => lr.test(e), pr = (e) => !b(e) && !x(e), fr = (e) => le(e, dt, it), b = (e) => nt.test(e), Y = (e) => le(e, mt, dr), Se = (e) => le(e, yr, z), Ke = (e) => le(e, lt, it), hr = (e) => le(e, ct, ur), xe = (e) => le(e, ut, mr), x = (e) => st.test(e), ue = (e) => ce(e, mt), gr = (e) => ce(e, vr), Je = (e) => ce(e, lt), br = (e) => ce(e, dt), xr = (e) => ce(e, ct), ye = (e) => ce(e, ut, !0), le = (e, t, o) => {
|
|
451
|
+
const a = nt.exec(e);
|
|
452
452
|
return a ? a[1] ? t(a[1]) : o(a[2]) : !1;
|
|
453
453
|
}, ce = (e, t, o = !1) => {
|
|
454
|
-
const a =
|
|
454
|
+
const a = st.exec(e);
|
|
455
455
|
return a ? a[1] ? t(a[1]) : o : !1;
|
|
456
|
-
},
|
|
457
|
-
const e =
|
|
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 = L("color"), t = L("font"), o = L("text"), a = L("font-weight"), n = L("tracking"), s = L("leading"), i = L("breakpoint"), l = L("container"), c = L("spacing"), m = L("radius"), u = L("shadow"), d = L("inset-shadow"), h = L("text-shadow"), S = L("drop-shadow"), y = L("blur"), N = L("perspective"), g = L("aspect"), w = L("ease"), T = L("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
|
|
458
458
|
"center",
|
|
459
459
|
"top",
|
|
460
460
|
"bottom",
|
|
@@ -472,15 +472,15 @@ const A = (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
|
+
], M = () => [...P(), x, b], A = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", "contain", "none"], k = () => [x, b, c], $ = () => [ae, "full", "auto", ...k()], 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", ...k()], W = () => [ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], C = () => [e, x, b], pe = () => [...
|
|
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", ...k()], W = () => [ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], C = () => [e, x, b], pe = () => [...P(), Je, Ke, {
|
|
478
478
|
position: [x, b]
|
|
479
479
|
}], de = () => ["no-repeat", {
|
|
480
480
|
repeat: ["", "x", "y", "space", "round"]
|
|
481
|
-
}], _ = () => ["auto", "cover", "contain",
|
|
481
|
+
}], _ = () => ["auto", "cover", "contain", br, fr, {
|
|
482
482
|
size: [x, b]
|
|
483
|
-
}], F = () => [Me, ue, Y],
|
|
483
|
+
}], F = () => [Me, ue, Y], j = () => [
|
|
484
484
|
// Deprecated since Tailwind CSS v4.0.0
|
|
485
485
|
"",
|
|
486
486
|
"none",
|
|
@@ -488,14 +488,14 @@ const A = (e) => {
|
|
|
488
488
|
m,
|
|
489
489
|
x,
|
|
490
490
|
b
|
|
491
|
-
], H = () => ["",
|
|
491
|
+
], H = () => ["", z, ue, Y], fe = () => ["solid", "dashed", "dotted", "double"], De = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => [z, Me, Je, Ke], Be = () => [
|
|
492
492
|
// Deprecated since Tailwind CSS v4.0.0
|
|
493
493
|
"",
|
|
494
494
|
"none",
|
|
495
495
|
y,
|
|
496
496
|
x,
|
|
497
497
|
b
|
|
498
|
-
], he = () => ["none",
|
|
498
|
+
], he = () => ["none", z, x, b], ge = () => ["none", z, x, b], ke = () => [z, x, b], be = () => [ae, "full", ...k()];
|
|
499
499
|
return {
|
|
500
500
|
cacheSize: 500,
|
|
501
501
|
theme: {
|
|
@@ -503,18 +503,18 @@ const A = (e) => {
|
|
|
503
503
|
aspect: ["video"],
|
|
504
504
|
blur: [U],
|
|
505
505
|
breakpoint: [U],
|
|
506
|
-
color: [
|
|
506
|
+
color: [cr],
|
|
507
507
|
container: [U],
|
|
508
508
|
"drop-shadow": [U],
|
|
509
509
|
ease: ["in", "out", "in-out"],
|
|
510
|
-
font: [
|
|
510
|
+
font: [pr],
|
|
511
511
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
512
512
|
"inset-shadow": [U],
|
|
513
513
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
514
514
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
515
515
|
radius: [U],
|
|
516
516
|
shadow: [U],
|
|
517
|
-
spacing: ["px",
|
|
517
|
+
spacing: ["px", z],
|
|
518
518
|
text: [U],
|
|
519
519
|
"text-shadow": [U],
|
|
520
520
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -541,7 +541,7 @@ const A = (e) => {
|
|
|
541
541
|
* @see https://tailwindcss.com/docs/columns
|
|
542
542
|
*/
|
|
543
543
|
columns: [{
|
|
544
|
-
columns: [
|
|
544
|
+
columns: [z, b, x, l]
|
|
545
545
|
}],
|
|
546
546
|
/**
|
|
547
547
|
* Break After
|
|
@@ -619,28 +619,28 @@ const A = (e) => {
|
|
|
619
619
|
* @see https://tailwindcss.com/docs/object-position
|
|
620
620
|
*/
|
|
621
621
|
"object-position": [{
|
|
622
|
-
object:
|
|
622
|
+
object: M()
|
|
623
623
|
}],
|
|
624
624
|
/**
|
|
625
625
|
* Overflow
|
|
626
626
|
* @see https://tailwindcss.com/docs/overflow
|
|
627
627
|
*/
|
|
628
628
|
overflow: [{
|
|
629
|
-
overflow:
|
|
629
|
+
overflow: A()
|
|
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": A()
|
|
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": A()
|
|
644
644
|
}],
|
|
645
645
|
/**
|
|
646
646
|
* Overscroll Behavior
|
|
@@ -673,63 +673,63 @@ const A = (e) => {
|
|
|
673
673
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
674
674
|
*/
|
|
675
675
|
inset: [{
|
|
676
|
-
inset:
|
|
676
|
+
inset: $()
|
|
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": $()
|
|
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": $()
|
|
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: $()
|
|
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: $()
|
|
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: $()
|
|
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: $()
|
|
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: $()
|
|
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: $()
|
|
733
733
|
}],
|
|
734
734
|
/**
|
|
735
735
|
* Visibility
|
|
@@ -772,21 +772,21 @@ const A = (e) => {
|
|
|
772
772
|
* @see https://tailwindcss.com/docs/flex
|
|
773
773
|
*/
|
|
774
774
|
flex: [{
|
|
775
|
-
flex: [
|
|
775
|
+
flex: [z, ae, "auto", "initial", "none", b]
|
|
776
776
|
}],
|
|
777
777
|
/**
|
|
778
778
|
* Flex Grow
|
|
779
779
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
780
780
|
*/
|
|
781
781
|
grow: [{
|
|
782
|
-
grow: ["",
|
|
782
|
+
grow: ["", z, x, b]
|
|
783
783
|
}],
|
|
784
784
|
/**
|
|
785
785
|
* Flex Shrink
|
|
786
786
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
787
787
|
*/
|
|
788
788
|
shrink: [{
|
|
789
|
-
shrink: ["",
|
|
789
|
+
shrink: ["", z, x, b]
|
|
790
790
|
}],
|
|
791
791
|
/**
|
|
792
792
|
* Order
|
|
@@ -1219,7 +1219,7 @@ const A = (e) => {
|
|
|
1219
1219
|
* @see https://tailwindcss.com/docs/font-family
|
|
1220
1220
|
*/
|
|
1221
1221
|
"font-family": [{
|
|
1222
|
-
font: [
|
|
1222
|
+
font: [gr, b, t]
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Font Variant Numeric
|
|
@@ -1263,7 +1263,7 @@ const A = (e) => {
|
|
|
1263
1263
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1264
1264
|
*/
|
|
1265
1265
|
"line-clamp": [{
|
|
1266
|
-
"line-clamp": [
|
|
1266
|
+
"line-clamp": [z, "none", x, Se]
|
|
1267
1267
|
}],
|
|
1268
1268
|
/**
|
|
1269
1269
|
* Line Height
|
|
@@ -1336,7 +1336,7 @@ const A = (e) => {
|
|
|
1336
1336
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1337
1337
|
*/
|
|
1338
1338
|
"text-decoration-thickness": [{
|
|
1339
|
-
decoration: [
|
|
1339
|
+
decoration: [z, "from-font", "auto", x, Y]
|
|
1340
1340
|
}],
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Text Decoration Color
|
|
@@ -1350,7 +1350,7 @@ const A = (e) => {
|
|
|
1350
1350
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1351
1351
|
*/
|
|
1352
1352
|
"underline-offset": [{
|
|
1353
|
-
"underline-offset": [
|
|
1353
|
+
"underline-offset": [z, "auto", x, b]
|
|
1354
1354
|
}],
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Text Transform
|
|
@@ -1474,7 +1474,7 @@ const A = (e) => {
|
|
|
1474
1474
|
}, Z, x, b],
|
|
1475
1475
|
radial: ["", x, b],
|
|
1476
1476
|
conic: [Z, x, b]
|
|
1477
|
-
},
|
|
1477
|
+
}, xr, hr]
|
|
1478
1478
|
}],
|
|
1479
1479
|
/**
|
|
1480
1480
|
* Background Color
|
|
@@ -1533,105 +1533,105 @@ const A = (e) => {
|
|
|
1533
1533
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1534
1534
|
*/
|
|
1535
1535
|
rounded: [{
|
|
1536
|
-
rounded:
|
|
1536
|
+
rounded: j()
|
|
1537
1537
|
}],
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Border Radius Start
|
|
1540
1540
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1541
1541
|
*/
|
|
1542
1542
|
"rounded-s": [{
|
|
1543
|
-
"rounded-s":
|
|
1543
|
+
"rounded-s": j()
|
|
1544
1544
|
}],
|
|
1545
1545
|
/**
|
|
1546
1546
|
* Border Radius End
|
|
1547
1547
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1548
1548
|
*/
|
|
1549
1549
|
"rounded-e": [{
|
|
1550
|
-
"rounded-e":
|
|
1550
|
+
"rounded-e": j()
|
|
1551
1551
|
}],
|
|
1552
1552
|
/**
|
|
1553
1553
|
* Border Radius Top
|
|
1554
1554
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1555
1555
|
*/
|
|
1556
1556
|
"rounded-t": [{
|
|
1557
|
-
"rounded-t":
|
|
1557
|
+
"rounded-t": j()
|
|
1558
1558
|
}],
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Border Radius Right
|
|
1561
1561
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1562
1562
|
*/
|
|
1563
1563
|
"rounded-r": [{
|
|
1564
|
-
"rounded-r":
|
|
1564
|
+
"rounded-r": j()
|
|
1565
1565
|
}],
|
|
1566
1566
|
/**
|
|
1567
1567
|
* Border Radius Bottom
|
|
1568
1568
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1569
1569
|
*/
|
|
1570
1570
|
"rounded-b": [{
|
|
1571
|
-
"rounded-b":
|
|
1571
|
+
"rounded-b": j()
|
|
1572
1572
|
}],
|
|
1573
1573
|
/**
|
|
1574
1574
|
* Border Radius Left
|
|
1575
1575
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1576
1576
|
*/
|
|
1577
1577
|
"rounded-l": [{
|
|
1578
|
-
"rounded-l":
|
|
1578
|
+
"rounded-l": j()
|
|
1579
1579
|
}],
|
|
1580
1580
|
/**
|
|
1581
1581
|
* Border Radius Start Start
|
|
1582
1582
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1583
1583
|
*/
|
|
1584
1584
|
"rounded-ss": [{
|
|
1585
|
-
"rounded-ss":
|
|
1585
|
+
"rounded-ss": j()
|
|
1586
1586
|
}],
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Border Radius Start End
|
|
1589
1589
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1590
1590
|
*/
|
|
1591
1591
|
"rounded-se": [{
|
|
1592
|
-
"rounded-se":
|
|
1592
|
+
"rounded-se": j()
|
|
1593
1593
|
}],
|
|
1594
1594
|
/**
|
|
1595
1595
|
* Border Radius End End
|
|
1596
1596
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1597
1597
|
*/
|
|
1598
1598
|
"rounded-ee": [{
|
|
1599
|
-
"rounded-ee":
|
|
1599
|
+
"rounded-ee": j()
|
|
1600
1600
|
}],
|
|
1601
1601
|
/**
|
|
1602
1602
|
* Border Radius End Start
|
|
1603
1603
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1604
1604
|
*/
|
|
1605
1605
|
"rounded-es": [{
|
|
1606
|
-
"rounded-es":
|
|
1606
|
+
"rounded-es": j()
|
|
1607
1607
|
}],
|
|
1608
1608
|
/**
|
|
1609
1609
|
* Border Radius Top Left
|
|
1610
1610
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1611
1611
|
*/
|
|
1612
1612
|
"rounded-tl": [{
|
|
1613
|
-
"rounded-tl":
|
|
1613
|
+
"rounded-tl": j()
|
|
1614
1614
|
}],
|
|
1615
1615
|
/**
|
|
1616
1616
|
* Border Radius Top Right
|
|
1617
1617
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1618
1618
|
*/
|
|
1619
1619
|
"rounded-tr": [{
|
|
1620
|
-
"rounded-tr":
|
|
1620
|
+
"rounded-tr": j()
|
|
1621
1621
|
}],
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Border Radius Bottom Right
|
|
1624
1624
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1625
1625
|
*/
|
|
1626
1626
|
"rounded-br": [{
|
|
1627
|
-
"rounded-br":
|
|
1627
|
+
"rounded-br": j()
|
|
1628
1628
|
}],
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Border Radius Bottom Left
|
|
1631
1631
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1632
1632
|
*/
|
|
1633
1633
|
"rounded-bl": [{
|
|
1634
|
-
"rounded-bl":
|
|
1634
|
+
"rounded-bl": j()
|
|
1635
1635
|
}],
|
|
1636
1636
|
/**
|
|
1637
1637
|
* Border Width
|
|
@@ -1816,14 +1816,14 @@ const A = (e) => {
|
|
|
1816
1816
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1817
1817
|
*/
|
|
1818
1818
|
"outline-offset": [{
|
|
1819
|
-
"outline-offset": [
|
|
1819
|
+
"outline-offset": [z, x, b]
|
|
1820
1820
|
}],
|
|
1821
1821
|
/**
|
|
1822
1822
|
* Outline Width
|
|
1823
1823
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1824
1824
|
*/
|
|
1825
1825
|
"outline-w": [{
|
|
1826
|
-
outline: ["",
|
|
1826
|
+
outline: ["", z, ue, Y]
|
|
1827
1827
|
}],
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Outline Color
|
|
@@ -1898,7 +1898,7 @@ const A = (e) => {
|
|
|
1898
1898
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1899
1899
|
*/
|
|
1900
1900
|
"ring-offset-w": [{
|
|
1901
|
-
"ring-offset": [
|
|
1901
|
+
"ring-offset": [z, Y]
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Ring Offset Color
|
|
@@ -1942,7 +1942,7 @@ const A = (e) => {
|
|
|
1942
1942
|
* @see https://tailwindcss.com/docs/opacity
|
|
1943
1943
|
*/
|
|
1944
1944
|
opacity: [{
|
|
1945
|
-
opacity: [
|
|
1945
|
+
opacity: [z, x, b]
|
|
1946
1946
|
}],
|
|
1947
1947
|
/**
|
|
1948
1948
|
* Mix Blend Mode
|
|
@@ -1977,13 +1977,13 @@ const A = (e) => {
|
|
|
1977
1977
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1978
1978
|
*/
|
|
1979
1979
|
"mask-image-linear-pos": [{
|
|
1980
|
-
"mask-linear": [
|
|
1980
|
+
"mask-linear": [z]
|
|
1981
1981
|
}],
|
|
1982
1982
|
"mask-image-linear-from-pos": [{
|
|
1983
|
-
"mask-linear-from":
|
|
1983
|
+
"mask-linear-from": O()
|
|
1984
1984
|
}],
|
|
1985
1985
|
"mask-image-linear-to-pos": [{
|
|
1986
|
-
"mask-linear-to":
|
|
1986
|
+
"mask-linear-to": O()
|
|
1987
1987
|
}],
|
|
1988
1988
|
"mask-image-linear-from-color": [{
|
|
1989
1989
|
"mask-linear-from": C()
|
|
@@ -1992,10 +1992,10 @@ const A = (e) => {
|
|
|
1992
1992
|
"mask-linear-to": C()
|
|
1993
1993
|
}],
|
|
1994
1994
|
"mask-image-t-from-pos": [{
|
|
1995
|
-
"mask-t-from":
|
|
1995
|
+
"mask-t-from": O()
|
|
1996
1996
|
}],
|
|
1997
1997
|
"mask-image-t-to-pos": [{
|
|
1998
|
-
"mask-t-to":
|
|
1998
|
+
"mask-t-to": O()
|
|
1999
1999
|
}],
|
|
2000
2000
|
"mask-image-t-from-color": [{
|
|
2001
2001
|
"mask-t-from": C()
|
|
@@ -2004,10 +2004,10 @@ const A = (e) => {
|
|
|
2004
2004
|
"mask-t-to": C()
|
|
2005
2005
|
}],
|
|
2006
2006
|
"mask-image-r-from-pos": [{
|
|
2007
|
-
"mask-r-from":
|
|
2007
|
+
"mask-r-from": O()
|
|
2008
2008
|
}],
|
|
2009
2009
|
"mask-image-r-to-pos": [{
|
|
2010
|
-
"mask-r-to":
|
|
2010
|
+
"mask-r-to": O()
|
|
2011
2011
|
}],
|
|
2012
2012
|
"mask-image-r-from-color": [{
|
|
2013
2013
|
"mask-r-from": C()
|
|
@@ -2016,10 +2016,10 @@ const A = (e) => {
|
|
|
2016
2016
|
"mask-r-to": C()
|
|
2017
2017
|
}],
|
|
2018
2018
|
"mask-image-b-from-pos": [{
|
|
2019
|
-
"mask-b-from":
|
|
2019
|
+
"mask-b-from": O()
|
|
2020
2020
|
}],
|
|
2021
2021
|
"mask-image-b-to-pos": [{
|
|
2022
|
-
"mask-b-to":
|
|
2022
|
+
"mask-b-to": O()
|
|
2023
2023
|
}],
|
|
2024
2024
|
"mask-image-b-from-color": [{
|
|
2025
2025
|
"mask-b-from": C()
|
|
@@ -2028,10 +2028,10 @@ const A = (e) => {
|
|
|
2028
2028
|
"mask-b-to": C()
|
|
2029
2029
|
}],
|
|
2030
2030
|
"mask-image-l-from-pos": [{
|
|
2031
|
-
"mask-l-from":
|
|
2031
|
+
"mask-l-from": O()
|
|
2032
2032
|
}],
|
|
2033
2033
|
"mask-image-l-to-pos": [{
|
|
2034
|
-
"mask-l-to":
|
|
2034
|
+
"mask-l-to": O()
|
|
2035
2035
|
}],
|
|
2036
2036
|
"mask-image-l-from-color": [{
|
|
2037
2037
|
"mask-l-from": C()
|
|
@@ -2040,10 +2040,10 @@ const A = (e) => {
|
|
|
2040
2040
|
"mask-l-to": C()
|
|
2041
2041
|
}],
|
|
2042
2042
|
"mask-image-x-from-pos": [{
|
|
2043
|
-
"mask-x-from":
|
|
2043
|
+
"mask-x-from": O()
|
|
2044
2044
|
}],
|
|
2045
2045
|
"mask-image-x-to-pos": [{
|
|
2046
|
-
"mask-x-to":
|
|
2046
|
+
"mask-x-to": O()
|
|
2047
2047
|
}],
|
|
2048
2048
|
"mask-image-x-from-color": [{
|
|
2049
2049
|
"mask-x-from": C()
|
|
@@ -2052,10 +2052,10 @@ const A = (e) => {
|
|
|
2052
2052
|
"mask-x-to": C()
|
|
2053
2053
|
}],
|
|
2054
2054
|
"mask-image-y-from-pos": [{
|
|
2055
|
-
"mask-y-from":
|
|
2055
|
+
"mask-y-from": O()
|
|
2056
2056
|
}],
|
|
2057
2057
|
"mask-image-y-to-pos": [{
|
|
2058
|
-
"mask-y-to":
|
|
2058
|
+
"mask-y-to": O()
|
|
2059
2059
|
}],
|
|
2060
2060
|
"mask-image-y-from-color": [{
|
|
2061
2061
|
"mask-y-from": C()
|
|
@@ -2067,10 +2067,10 @@ const A = (e) => {
|
|
|
2067
2067
|
"mask-radial": [x, b]
|
|
2068
2068
|
}],
|
|
2069
2069
|
"mask-image-radial-from-pos": [{
|
|
2070
|
-
"mask-radial-from":
|
|
2070
|
+
"mask-radial-from": O()
|
|
2071
2071
|
}],
|
|
2072
2072
|
"mask-image-radial-to-pos": [{
|
|
2073
|
-
"mask-radial-to":
|
|
2073
|
+
"mask-radial-to": O()
|
|
2074
2074
|
}],
|
|
2075
2075
|
"mask-image-radial-from-color": [{
|
|
2076
2076
|
"mask-radial-from": C()
|
|
@@ -2088,16 +2088,16 @@ const A = (e) => {
|
|
|
2088
2088
|
}]
|
|
2089
2089
|
}],
|
|
2090
2090
|
"mask-image-radial-pos": [{
|
|
2091
|
-
"mask-radial-at":
|
|
2091
|
+
"mask-radial-at": P()
|
|
2092
2092
|
}],
|
|
2093
2093
|
"mask-image-conic-pos": [{
|
|
2094
|
-
"mask-conic": [
|
|
2094
|
+
"mask-conic": [z]
|
|
2095
2095
|
}],
|
|
2096
2096
|
"mask-image-conic-from-pos": [{
|
|
2097
|
-
"mask-conic-from":
|
|
2097
|
+
"mask-conic-from": O()
|
|
2098
2098
|
}],
|
|
2099
2099
|
"mask-image-conic-to-pos": [{
|
|
2100
|
-
"mask-conic-to":
|
|
2100
|
+
"mask-conic-to": O()
|
|
2101
2101
|
}],
|
|
2102
2102
|
"mask-image-conic-from-color": [{
|
|
2103
2103
|
"mask-conic-from": C()
|
|
@@ -2182,14 +2182,14 @@ const A = (e) => {
|
|
|
2182
2182
|
* @see https://tailwindcss.com/docs/brightness
|
|
2183
2183
|
*/
|
|
2184
2184
|
brightness: [{
|
|
2185
|
-
brightness: [
|
|
2185
|
+
brightness: [z, x, b]
|
|
2186
2186
|
}],
|
|
2187
2187
|
/**
|
|
2188
2188
|
* Contrast
|
|
2189
2189
|
* @see https://tailwindcss.com/docs/contrast
|
|
2190
2190
|
*/
|
|
2191
2191
|
contrast: [{
|
|
2192
|
-
contrast: [
|
|
2192
|
+
contrast: [z, x, b]
|
|
2193
2193
|
}],
|
|
2194
2194
|
/**
|
|
2195
2195
|
* Drop Shadow
|
|
@@ -2200,7 +2200,7 @@ const A = (e) => {
|
|
|
2200
2200
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2201
2201
|
"",
|
|
2202
2202
|
"none",
|
|
2203
|
-
|
|
2203
|
+
S,
|
|
2204
2204
|
ye,
|
|
2205
2205
|
xe
|
|
2206
2206
|
]
|
|
@@ -2217,35 +2217,35 @@ const A = (e) => {
|
|
|
2217
2217
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2218
2218
|
*/
|
|
2219
2219
|
grayscale: [{
|
|
2220
|
-
grayscale: ["",
|
|
2220
|
+
grayscale: ["", z, x, b]
|
|
2221
2221
|
}],
|
|
2222
2222
|
/**
|
|
2223
2223
|
* Hue Rotate
|
|
2224
2224
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2225
2225
|
*/
|
|
2226
2226
|
"hue-rotate": [{
|
|
2227
|
-
"hue-rotate": [
|
|
2227
|
+
"hue-rotate": [z, x, b]
|
|
2228
2228
|
}],
|
|
2229
2229
|
/**
|
|
2230
2230
|
* Invert
|
|
2231
2231
|
* @see https://tailwindcss.com/docs/invert
|
|
2232
2232
|
*/
|
|
2233
2233
|
invert: [{
|
|
2234
|
-
invert: ["",
|
|
2234
|
+
invert: ["", z, x, b]
|
|
2235
2235
|
}],
|
|
2236
2236
|
/**
|
|
2237
2237
|
* Saturate
|
|
2238
2238
|
* @see https://tailwindcss.com/docs/saturate
|
|
2239
2239
|
*/
|
|
2240
2240
|
saturate: [{
|
|
2241
|
-
saturate: [
|
|
2241
|
+
saturate: [z, x, b]
|
|
2242
2242
|
}],
|
|
2243
2243
|
/**
|
|
2244
2244
|
* Sepia
|
|
2245
2245
|
* @see https://tailwindcss.com/docs/sepia
|
|
2246
2246
|
*/
|
|
2247
2247
|
sepia: [{
|
|
2248
|
-
sepia: ["",
|
|
2248
|
+
sepia: ["", z, x, b]
|
|
2249
2249
|
}],
|
|
2250
2250
|
/**
|
|
2251
2251
|
* Backdrop Filter
|
|
@@ -2272,56 +2272,56 @@ const A = (e) => {
|
|
|
2272
2272
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2273
2273
|
*/
|
|
2274
2274
|
"backdrop-brightness": [{
|
|
2275
|
-
"backdrop-brightness": [
|
|
2275
|
+
"backdrop-brightness": [z, x, b]
|
|
2276
2276
|
}],
|
|
2277
2277
|
/**
|
|
2278
2278
|
* Backdrop Contrast
|
|
2279
2279
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2280
2280
|
*/
|
|
2281
2281
|
"backdrop-contrast": [{
|
|
2282
|
-
"backdrop-contrast": [
|
|
2282
|
+
"backdrop-contrast": [z, x, b]
|
|
2283
2283
|
}],
|
|
2284
2284
|
/**
|
|
2285
2285
|
* Backdrop Grayscale
|
|
2286
2286
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2287
2287
|
*/
|
|
2288
2288
|
"backdrop-grayscale": [{
|
|
2289
|
-
"backdrop-grayscale": ["",
|
|
2289
|
+
"backdrop-grayscale": ["", z, x, b]
|
|
2290
2290
|
}],
|
|
2291
2291
|
/**
|
|
2292
2292
|
* Backdrop Hue Rotate
|
|
2293
2293
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2294
2294
|
*/
|
|
2295
2295
|
"backdrop-hue-rotate": [{
|
|
2296
|
-
"backdrop-hue-rotate": [
|
|
2296
|
+
"backdrop-hue-rotate": [z, x, b]
|
|
2297
2297
|
}],
|
|
2298
2298
|
/**
|
|
2299
2299
|
* Backdrop Invert
|
|
2300
2300
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2301
2301
|
*/
|
|
2302
2302
|
"backdrop-invert": [{
|
|
2303
|
-
"backdrop-invert": ["",
|
|
2303
|
+
"backdrop-invert": ["", z, x, b]
|
|
2304
2304
|
}],
|
|
2305
2305
|
/**
|
|
2306
2306
|
* Backdrop Opacity
|
|
2307
2307
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2308
2308
|
*/
|
|
2309
2309
|
"backdrop-opacity": [{
|
|
2310
|
-
"backdrop-opacity": [
|
|
2310
|
+
"backdrop-opacity": [z, x, b]
|
|
2311
2311
|
}],
|
|
2312
2312
|
/**
|
|
2313
2313
|
* Backdrop Saturate
|
|
2314
2314
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2315
2315
|
*/
|
|
2316
2316
|
"backdrop-saturate": [{
|
|
2317
|
-
"backdrop-saturate": [
|
|
2317
|
+
"backdrop-saturate": [z, x, b]
|
|
2318
2318
|
}],
|
|
2319
2319
|
/**
|
|
2320
2320
|
* Backdrop Sepia
|
|
2321
2321
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2322
2322
|
*/
|
|
2323
2323
|
"backdrop-sepia": [{
|
|
2324
|
-
"backdrop-sepia": ["",
|
|
2324
|
+
"backdrop-sepia": ["", z, x, b]
|
|
2325
2325
|
}],
|
|
2326
2326
|
// --------------
|
|
2327
2327
|
// --- Tables ---
|
|
@@ -2390,7 +2390,7 @@ const A = (e) => {
|
|
|
2390
2390
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2391
2391
|
*/
|
|
2392
2392
|
duration: [{
|
|
2393
|
-
duration: [
|
|
2393
|
+
duration: [z, "initial", x, b]
|
|
2394
2394
|
}],
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Transition Timing Function
|
|
@@ -2404,7 +2404,7 @@ const A = (e) => {
|
|
|
2404
2404
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2405
2405
|
*/
|
|
2406
2406
|
delay: [{
|
|
2407
|
-
delay: [
|
|
2407
|
+
delay: [z, x, b]
|
|
2408
2408
|
}],
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Animation
|
|
@@ -2435,7 +2435,7 @@ const A = (e) => {
|
|
|
2435
2435
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2436
2436
|
*/
|
|
2437
2437
|
"perspective-origin": [{
|
|
2438
|
-
"perspective-origin":
|
|
2438
|
+
"perspective-origin": M()
|
|
2439
2439
|
}],
|
|
2440
2440
|
/**
|
|
2441
2441
|
* Rotate
|
|
@@ -2531,7 +2531,7 @@ const A = (e) => {
|
|
|
2531
2531
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2532
2532
|
*/
|
|
2533
2533
|
"transform-origin": [{
|
|
2534
|
-
origin:
|
|
2534
|
+
origin: M()
|
|
2535
2535
|
}],
|
|
2536
2536
|
/**
|
|
2537
2537
|
* Transform Style
|
|
@@ -2848,7 +2848,7 @@ const A = (e) => {
|
|
|
2848
2848
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2849
2849
|
*/
|
|
2850
2850
|
"stroke-w": [{
|
|
2851
|
-
stroke: [
|
|
2851
|
+
stroke: [z, ue, Y, Se]
|
|
2852
2852
|
}],
|
|
2853
2853
|
/**
|
|
2854
2854
|
* Stroke
|
|
@@ -2923,15 +2923,15 @@ const A = (e) => {
|
|
|
2923
2923
|
},
|
|
2924
2924
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2925
2925
|
};
|
|
2926
|
-
},
|
|
2926
|
+
}, kr = /* @__PURE__ */ rr(wr);
|
|
2927
2927
|
function f(...e) {
|
|
2928
|
-
return
|
|
2928
|
+
return kr(rt(e));
|
|
2929
2929
|
}
|
|
2930
2930
|
const K = v.forwardRef(
|
|
2931
2931
|
({ className: e, variant: t, size: o, asChild: a = !1, disabled: n, ...s }, i) => /* @__PURE__ */ r(
|
|
2932
|
-
a ?
|
|
2932
|
+
a ? Ot : "button",
|
|
2933
2933
|
{
|
|
2934
|
-
className: f(
|
|
2934
|
+
className: f(At({ variant: t, size: o, className: e })),
|
|
2935
2935
|
ref: i,
|
|
2936
2936
|
type: s.type || "button",
|
|
2937
2937
|
disabled: n,
|
|
@@ -2941,7 +2941,7 @@ const K = v.forwardRef(
|
|
|
2941
2941
|
)
|
|
2942
2942
|
);
|
|
2943
2943
|
K.displayName = "Button";
|
|
2944
|
-
const
|
|
2944
|
+
const Nr = (e) => {
|
|
2945
2945
|
switch (e) {
|
|
2946
2946
|
case "h1":
|
|
2947
2947
|
return "text-4xl font-bold leading-tight tracking-tight";
|
|
@@ -2968,7 +2968,7 @@ const Cr = (e) => {
|
|
|
2968
2968
|
default:
|
|
2969
2969
|
return "text-base font-normal leading-normal";
|
|
2970
2970
|
}
|
|
2971
|
-
},
|
|
2971
|
+
}, Cr = (e) => {
|
|
2972
2972
|
switch (e) {
|
|
2973
2973
|
case "primary":
|
|
2974
2974
|
return "text-foreground";
|
|
@@ -2985,7 +2985,7 @@ const Cr = (e) => {
|
|
|
2985
2985
|
default:
|
|
2986
2986
|
return "text-foreground";
|
|
2987
2987
|
}
|
|
2988
|
-
},
|
|
2988
|
+
}, Mr = (e) => {
|
|
2989
2989
|
switch (e) {
|
|
2990
2990
|
case "light":
|
|
2991
2991
|
return "font-light";
|
|
@@ -3000,7 +3000,7 @@ const Cr = (e) => {
|
|
|
3000
3000
|
default:
|
|
3001
3001
|
return "";
|
|
3002
3002
|
}
|
|
3003
|
-
},
|
|
3003
|
+
}, Sr = (e) => {
|
|
3004
3004
|
switch (e) {
|
|
3005
3005
|
case "left":
|
|
3006
3006
|
return "text-left";
|
|
@@ -3013,7 +3013,7 @@ const Cr = (e) => {
|
|
|
3013
3013
|
default:
|
|
3014
3014
|
return "text-left";
|
|
3015
3015
|
}
|
|
3016
|
-
},
|
|
3016
|
+
}, R = ({
|
|
3017
3017
|
variant: e = "body",
|
|
3018
3018
|
color: t = "primary",
|
|
3019
3019
|
weight: o,
|
|
@@ -3024,18 +3024,18 @@ const Cr = (e) => {
|
|
|
3024
3024
|
as: l,
|
|
3025
3025
|
...c
|
|
3026
3026
|
}) => {
|
|
3027
|
-
const m = l ||
|
|
3027
|
+
const m = l || Tr(e), u = f(
|
|
3028
3028
|
"m-0",
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3029
|
+
Nr(e),
|
|
3030
|
+
Cr(t),
|
|
3031
|
+
Mr(o),
|
|
3032
|
+
Sr(a),
|
|
3033
3033
|
n && "truncate",
|
|
3034
3034
|
i
|
|
3035
3035
|
);
|
|
3036
3036
|
return /* @__PURE__ */ r(m, { className: u, ...c, children: s });
|
|
3037
3037
|
};
|
|
3038
|
-
function
|
|
3038
|
+
function Tr(e) {
|
|
3039
3039
|
switch (e) {
|
|
3040
3040
|
case "h1":
|
|
3041
3041
|
return "h1";
|
|
@@ -3053,7 +3053,7 @@ function zr(e) {
|
|
|
3053
3053
|
return "p";
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
const
|
|
3056
|
+
const zr = (e) => {
|
|
3057
3057
|
switch (e) {
|
|
3058
3058
|
case "sm":
|
|
3059
3059
|
return "p-4";
|
|
@@ -3064,7 +3064,7 @@ const Pr = (e) => {
|
|
|
3064
3064
|
default:
|
|
3065
3065
|
return "p-0";
|
|
3066
3066
|
}
|
|
3067
|
-
},
|
|
3067
|
+
}, Pr = (e) => {
|
|
3068
3068
|
switch (e) {
|
|
3069
3069
|
case "sm":
|
|
3070
3070
|
return "shadow-sm";
|
|
@@ -3075,7 +3075,7 @@ const Pr = (e) => {
|
|
|
3075
3075
|
default:
|
|
3076
3076
|
return "shadow-none";
|
|
3077
3077
|
}
|
|
3078
|
-
},
|
|
3078
|
+
}, Ir = (e) => {
|
|
3079
3079
|
switch (e) {
|
|
3080
3080
|
case "sm":
|
|
3081
3081
|
return "rounded-sm";
|
|
@@ -3086,7 +3086,7 @@ const Pr = (e) => {
|
|
|
3086
3086
|
default:
|
|
3087
3087
|
return "rounded-none";
|
|
3088
3088
|
}
|
|
3089
|
-
},
|
|
3089
|
+
}, pt = ({
|
|
3090
3090
|
children: e,
|
|
3091
3091
|
title: t,
|
|
3092
3092
|
subtitle: o,
|
|
@@ -3098,33 +3098,33 @@ const Pr = (e) => {
|
|
|
3098
3098
|
}) => {
|
|
3099
3099
|
const c = !!l, m = f(
|
|
3100
3100
|
"bg-card",
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3101
|
+
zr(n),
|
|
3102
|
+
Pr(s),
|
|
3103
|
+
Ir(i),
|
|
3104
3104
|
"transition-all duration-200 ease-in-out",
|
|
3105
3105
|
c && "cursor-pointer hover:-translate-y-0.5 hover:shadow-lg active:translate-y-0",
|
|
3106
3106
|
a
|
|
3107
3107
|
);
|
|
3108
3108
|
return /* @__PURE__ */ p("div", { className: m, onClick: l, children: [
|
|
3109
3109
|
(t || o) && /* @__PURE__ */ p("div", { className: "mb-4", children: [
|
|
3110
|
-
t && /* @__PURE__ */ r("div", { className: "mb-2", children: /* @__PURE__ */ r(
|
|
3111
|
-
o && /* @__PURE__ */ r("div", { className: "text-muted-foreground", children: /* @__PURE__ */ r(
|
|
3110
|
+
t && /* @__PURE__ */ r("div", { className: "mb-2", children: /* @__PURE__ */ r(R, { variant: "h3", children: t }) }),
|
|
3111
|
+
o && /* @__PURE__ */ r("div", { className: "text-muted-foreground", children: /* @__PURE__ */ r(R, { variant: "body-sm", color: "muted", children: o }) })
|
|
3112
3112
|
] }),
|
|
3113
3113
|
/* @__PURE__ */ r("div", { className: "flex-1", children: e })
|
|
3114
3114
|
] });
|
|
3115
|
-
},
|
|
3115
|
+
}, Er = ({
|
|
3116
3116
|
children: e
|
|
3117
|
-
}) => /* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-border", children: e }), Yo = Object.assign(
|
|
3118
|
-
Footer:
|
|
3117
|
+
}) => /* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-border", children: e }), Yo = Object.assign(pt, {
|
|
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), S = s + a * Math.sin(l), y = n + a * Math.cos(i), N = s + a * Math.sin(i), g = t - e > 180 ? 1 : 0;
|
|
3122
3122
|
return [
|
|
3123
3123
|
`M ${c} ${m}`,
|
|
3124
3124
|
// Move to start point on outer arc
|
|
3125
3125
|
`A ${o} ${o} 0 ${g} 1 ${u} ${d}`,
|
|
3126
3126
|
// Outer arc
|
|
3127
|
-
`L ${h} ${
|
|
3127
|
+
`L ${h} ${S}`,
|
|
3128
3128
|
// Line to inner arc
|
|
3129
3129
|
`A ${a} ${a} 0 ${g} 0 ${y} ${N}`,
|
|
3130
3130
|
// Inner arc (reverse)
|
|
@@ -3132,7 +3132,7 @@ function Rr(e, t, o, a, n, s) {
|
|
|
3132
3132
|
// Close path
|
|
3133
3133
|
].join(" ");
|
|
3134
3134
|
}
|
|
3135
|
-
function
|
|
3135
|
+
function jr(e, t, o, a, n) {
|
|
3136
3136
|
const s = e.reduce((c, m) => c + m.value, 0);
|
|
3137
3137
|
if (s === 0)
|
|
3138
3138
|
return [];
|
|
@@ -3153,7 +3153,7 @@ function Ar(e, t, o, a, n) {
|
|
|
3153
3153
|
}), i = d;
|
|
3154
3154
|
}), l;
|
|
3155
3155
|
}
|
|
3156
|
-
const
|
|
3156
|
+
const ft = v.forwardRef(
|
|
3157
3157
|
({
|
|
3158
3158
|
segments: e,
|
|
3159
3159
|
size: t = 300,
|
|
@@ -3165,14 +3165,14 @@ const ht = v.forwardRef(
|
|
|
3165
3165
|
onSegmentClick: l,
|
|
3166
3166
|
onSegmentHover: c
|
|
3167
3167
|
}, m) => {
|
|
3168
|
-
const [u, d] = v.useState(null), h = t / 2,
|
|
3168
|
+
const [u, d] = v.useState(null), h = t / 2, S = t / 2, y = 2, N = t / 2 - y, g = N * o, w = jr(
|
|
3169
3169
|
e,
|
|
3170
3170
|
N,
|
|
3171
3171
|
g,
|
|
3172
3172
|
h,
|
|
3173
|
-
|
|
3174
|
-
), T = (
|
|
3175
|
-
d(
|
|
3173
|
+
S
|
|
3174
|
+
), T = (P) => {
|
|
3175
|
+
d(P), c?.(P);
|
|
3176
3176
|
}, E = s === "left" || s === "right";
|
|
3177
3177
|
return /* @__PURE__ */ p(
|
|
3178
3178
|
"div",
|
|
@@ -3192,23 +3192,23 @@ const ht = 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: w.map(({ path:
|
|
3195
|
+
/* @__PURE__ */ r("svg", { width: t, height: t, viewBox: `0 0 ${t} ${t}`, children: w.map(({ path: P, segment: M }, A) => /* @__PURE__ */ r(
|
|
3196
3196
|
"path",
|
|
3197
3197
|
{
|
|
3198
|
-
d:
|
|
3199
|
-
fill:
|
|
3198
|
+
d: P,
|
|
3199
|
+
fill: M.color,
|
|
3200
3200
|
stroke: "white",
|
|
3201
3201
|
strokeWidth: y,
|
|
3202
3202
|
className: f(
|
|
3203
3203
|
"transition-opacity duration-200",
|
|
3204
|
-
u && u !==
|
|
3204
|
+
u && u !== M && "opacity-50",
|
|
3205
3205
|
l && "cursor-pointer"
|
|
3206
3206
|
),
|
|
3207
|
-
onMouseEnter: () => T(
|
|
3207
|
+
onMouseEnter: () => T(M),
|
|
3208
3208
|
onMouseLeave: () => T(null),
|
|
3209
|
-
onClick: () => l?.(
|
|
3209
|
+
onClick: () => l?.(M)
|
|
3210
3210
|
},
|
|
3211
|
-
`${
|
|
3211
|
+
`${M.label}-${A}`
|
|
3212
3212
|
)) }),
|
|
3213
3213
|
a && /* @__PURE__ */ r(
|
|
3214
3214
|
"div",
|
|
@@ -3228,29 +3228,29 @@ const ht = v.forwardRef(
|
|
|
3228
3228
|
"flex gap-2",
|
|
3229
3229
|
E ? "flex-col" : "flex-row flex-wrap justify-center"
|
|
3230
3230
|
),
|
|
3231
|
-
children: e.map((
|
|
3231
|
+
children: e.map((P, M) => /* @__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 !== P && "opacity-50",
|
|
3237
3237
|
l && "cursor-pointer"
|
|
3238
3238
|
),
|
|
3239
|
-
onMouseEnter: () => T(
|
|
3239
|
+
onMouseEnter: () => T(P),
|
|
3240
3240
|
onMouseLeave: () => T(null),
|
|
3241
|
-
onClick: () => l?.(
|
|
3241
|
+
onClick: () => l?.(P),
|
|
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: P.color }
|
|
3248
3248
|
}
|
|
3249
3249
|
),
|
|
3250
|
-
/* @__PURE__ */ r("span", { className: "text-muted-foreground", children:
|
|
3250
|
+
/* @__PURE__ */ r("span", { className: "text-muted-foreground", children: P.label })
|
|
3251
3251
|
]
|
|
3252
3252
|
},
|
|
3253
|
-
`${
|
|
3253
|
+
`${P.label}-${M}`
|
|
3254
3254
|
))
|
|
3255
3255
|
}
|
|
3256
3256
|
)
|
|
@@ -3259,7 +3259,7 @@ const ht = v.forwardRef(
|
|
|
3259
3259
|
);
|
|
3260
3260
|
}
|
|
3261
3261
|
);
|
|
3262
|
-
|
|
3262
|
+
ft.displayName = "DonutChart";
|
|
3263
3263
|
function ea(e, t, o = {}) {
|
|
3264
3264
|
const {
|
|
3265
3265
|
initialCategory: a = null,
|
|
@@ -3267,14 +3267,14 @@ 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(() =>
|
|
3270
|
+
), [c, m] = ee(n), [u, d] = ee(""), h = Ne(() => It(e, i), [e, i]), S = Ne(() => {
|
|
3271
3271
|
if (!s || !u.trim())
|
|
3272
3272
|
return h;
|
|
3273
3273
|
const w = u.toLowerCase();
|
|
3274
3274
|
return h.filter(
|
|
3275
3275
|
(T) => T.title.toLowerCase().includes(w) || T.subtitle?.toLowerCase().includes(w)
|
|
3276
3276
|
);
|
|
3277
|
-
}, [h, u, s]), y = Ne(() => c ?
|
|
3277
|
+
}, [h, u, s]), y = Ne(() => c ? Et(S, c) : S, [S, c]), N = He(
|
|
3278
3278
|
(w) => Rt(e, w),
|
|
3279
3279
|
[e]
|
|
3280
3280
|
), g = He(() => {
|
|
@@ -3292,7 +3292,7 @@ function ea(e, t, o = {}) {
|
|
|
3292
3292
|
resetFilters: g
|
|
3293
3293
|
};
|
|
3294
3294
|
}
|
|
3295
|
-
const
|
|
3295
|
+
const Ar = J(
|
|
3296
3296
|
"inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
3297
3297
|
{
|
|
3298
3298
|
variants: {
|
|
@@ -3331,7 +3331,7 @@ const Lr = J(
|
|
|
3331
3331
|
{
|
|
3332
3332
|
type: "button",
|
|
3333
3333
|
className: f(
|
|
3334
|
-
|
|
3334
|
+
Ar({ variant: n ? "selected" : t, size: o, className: e })
|
|
3335
3335
|
),
|
|
3336
3336
|
ref: u,
|
|
3337
3337
|
disabled: c,
|
|
@@ -3358,7 +3358,7 @@ const Lr = J(
|
|
|
3358
3358
|
)
|
|
3359
3359
|
);
|
|
3360
3360
|
Oe.displayName = "Chip";
|
|
3361
|
-
const
|
|
3361
|
+
const ht = v.forwardRef(
|
|
3362
3362
|
({
|
|
3363
3363
|
categories: e,
|
|
3364
3364
|
activeCategory: t,
|
|
@@ -3400,8 +3400,8 @@ const gt = v.forwardRef(
|
|
|
3400
3400
|
}
|
|
3401
3401
|
)
|
|
3402
3402
|
);
|
|
3403
|
-
|
|
3404
|
-
const
|
|
3403
|
+
ht.displayName = "CategoryChips";
|
|
3404
|
+
const Lr = J(
|
|
3405
3405
|
[
|
|
3406
3406
|
// Base styles
|
|
3407
3407
|
"flex w-full rounded-md border bg-background px-3 py-2",
|
|
@@ -3429,7 +3429,7 @@ const $r = J(
|
|
|
3429
3429
|
inputSize: "default"
|
|
3430
3430
|
}
|
|
3431
3431
|
}
|
|
3432
|
-
),
|
|
3432
|
+
), $r = J(
|
|
3433
3433
|
["block text-sm font-medium mb-1.5", "transition-colors"],
|
|
3434
3434
|
{
|
|
3435
3435
|
variants: {
|
|
@@ -3448,7 +3448,7 @@ const $r = J(
|
|
|
3448
3448
|
required: !1
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
|
-
),
|
|
3451
|
+
), Or = J("mt-1.5 text-sm", {
|
|
3452
3452
|
variants: {
|
|
3453
3453
|
variant: {
|
|
3454
3454
|
default: "text-muted-foreground",
|
|
@@ -3474,7 +3474,7 @@ const $r = J(
|
|
|
3474
3474
|
suffix: u,
|
|
3475
3475
|
id: d,
|
|
3476
3476
|
...h
|
|
3477
|
-
},
|
|
3477
|
+
}, S) => {
|
|
3478
3478
|
const y = v.useId(), N = d || y, g = `${N}-helper`, w = `${N}-error`, T = l ? "error" : a, E = l || i;
|
|
3479
3479
|
return /* @__PURE__ */ p("div", { className: f("w-full", t), children: [
|
|
3480
3480
|
s && /* @__PURE__ */ r(
|
|
@@ -3482,7 +3482,7 @@ const $r = J(
|
|
|
3482
3482
|
{
|
|
3483
3483
|
htmlFor: N,
|
|
3484
3484
|
className: f(
|
|
3485
|
-
|
|
3485
|
+
$r({ variant: T, required: c }),
|
|
3486
3486
|
o
|
|
3487
3487
|
),
|
|
3488
3488
|
children: s
|
|
@@ -3494,9 +3494,9 @@ const $r = J(
|
|
|
3494
3494
|
"input",
|
|
3495
3495
|
{
|
|
3496
3496
|
id: N,
|
|
3497
|
-
ref:
|
|
3497
|
+
ref: S,
|
|
3498
3498
|
className: f(
|
|
3499
|
-
|
|
3499
|
+
Lr({ variant: T, inputSize: n }),
|
|
3500
3500
|
m && "pl-10",
|
|
3501
3501
|
u && "pr-10",
|
|
3502
3502
|
e
|
|
@@ -3512,7 +3512,7 @@ const $r = J(
|
|
|
3512
3512
|
"p",
|
|
3513
3513
|
{
|
|
3514
3514
|
id: l ? w : g,
|
|
3515
|
-
className:
|
|
3515
|
+
className: Or({ variant: T }),
|
|
3516
3516
|
role: l ? "alert" : void 0,
|
|
3517
3517
|
children: E
|
|
3518
3518
|
}
|
|
@@ -3521,7 +3521,7 @@ const $r = J(
|
|
|
3521
3521
|
}
|
|
3522
3522
|
);
|
|
3523
3523
|
ne.displayName = "Input";
|
|
3524
|
-
const
|
|
3524
|
+
const Vr = (e) => {
|
|
3525
3525
|
switch (e) {
|
|
3526
3526
|
case "sm":
|
|
3527
3527
|
return "max-w-md";
|
|
@@ -3534,7 +3534,7 @@ const Fr = (e) => {
|
|
|
3534
3534
|
default:
|
|
3535
3535
|
return "max-w-2xl";
|
|
3536
3536
|
}
|
|
3537
|
-
},
|
|
3537
|
+
}, Fr = ({
|
|
3538
3538
|
isOpen: e,
|
|
3539
3539
|
onClose: t,
|
|
3540
3540
|
title: o,
|
|
@@ -3560,10 +3560,10 @@ const Fr = (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
|
+
Vr(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"), S = 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(
|
|
@@ -3583,13 +3583,13 @@ const Fr = (e) => {
|
|
|
3583
3583
|
"aria-labelledby": o ? "modal-title" : void 0,
|
|
3584
3584
|
children: [
|
|
3585
3585
|
(o || s) && /* @__PURE__ */ p("div", { className: d, children: [
|
|
3586
|
-
o && /* @__PURE__ */ r(
|
|
3586
|
+
o && /* @__PURE__ */ r(R, { variant: "h3", className: "text-foreground", children: o }),
|
|
3587
3587
|
s && /* @__PURE__ */ r(
|
|
3588
3588
|
"button",
|
|
3589
3589
|
{
|
|
3590
3590
|
onClick: t,
|
|
3591
3591
|
"aria-label": "Close modal",
|
|
3592
|
-
className:
|
|
3592
|
+
className: S,
|
|
3593
3593
|
children: "×"
|
|
3594
3594
|
}
|
|
3595
3595
|
)
|
|
@@ -3600,11 +3600,11 @@ const Fr = (e) => {
|
|
|
3600
3600
|
)
|
|
3601
3601
|
}
|
|
3602
3602
|
);
|
|
3603
|
-
},
|
|
3603
|
+
}, _r = ({
|
|
3604
3604
|
children: e,
|
|
3605
3605
|
actions: t,
|
|
3606
3606
|
...o
|
|
3607
|
-
}) => /* @__PURE__ */ p(
|
|
3607
|
+
}) => /* @__PURE__ */ p(Fr, { ...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 Fr = (e) => {
|
|
|
3616
3616
|
confirmText: s = "Confirm",
|
|
3617
3617
|
cancelText: i = "Cancel"
|
|
3618
3618
|
}) => /* @__PURE__ */ r(
|
|
3619
|
-
|
|
3619
|
+
_r,
|
|
3620
3620
|
{
|
|
3621
3621
|
isOpen: e,
|
|
3622
3622
|
onClose: t,
|
|
@@ -3625,9 +3625,9 @@ const Fr = (e) => {
|
|
|
3625
3625
|
/* @__PURE__ */ r(K, { variant: "secondary", onClick: t, children: i }),
|
|
3626
3626
|
/* @__PURE__ */ r(K, { variant: "default", onClick: o, children: s })
|
|
3627
3627
|
] }),
|
|
3628
|
-
children: /* @__PURE__ */ r(
|
|
3628
|
+
children: /* @__PURE__ */ r(R, { children: n })
|
|
3629
3629
|
}
|
|
3630
|
-
),
|
|
3630
|
+
), Dr = J(
|
|
3631
3631
|
[
|
|
3632
3632
|
// Base styles
|
|
3633
3633
|
"flex w-full rounded-md border bg-background px-3 py-2",
|
|
@@ -3654,7 +3654,7 @@ const Fr = (e) => {
|
|
|
3654
3654
|
selectSize: "default"
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
|
-
),
|
|
3657
|
+
), Br = J(
|
|
3658
3658
|
["block text-sm font-medium mb-1.5", "transition-colors"],
|
|
3659
3659
|
{
|
|
3660
3660
|
variants: {
|
|
@@ -3673,7 +3673,7 @@ const Fr = (e) => {
|
|
|
3673
3673
|
required: !1
|
|
3674
3674
|
}
|
|
3675
3675
|
}
|
|
3676
|
-
),
|
|
3676
|
+
), Hr = J("mt-1.5 text-sm", {
|
|
3677
3677
|
variants: {
|
|
3678
3678
|
variant: {
|
|
3679
3679
|
default: "text-muted-foreground",
|
|
@@ -3691,13 +3691,13 @@ const Fr = (e) => {
|
|
|
3691
3691
|
* This source code is licensed under the ISC license.
|
|
3692
3692
|
* See the LICENSE file in the root directory of this source tree.
|
|
3693
3693
|
*/
|
|
3694
|
-
const
|
|
3694
|
+
const Gr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Wr = (e) => e.replace(
|
|
3695
3695
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3696
3696
|
(t, o, a) => a ? a.toUpperCase() : o.toLowerCase()
|
|
3697
3697
|
), Qe = (e) => {
|
|
3698
|
-
const t =
|
|
3698
|
+
const t = Wr(e);
|
|
3699
3699
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3700
|
-
},
|
|
3700
|
+
}, gt = (...e) => e.filter((t, o, a) => !!t && t.trim() !== "" && a.indexOf(t) === o).join(" ").trim(), Ur = (e) => {
|
|
3701
3701
|
for (const t in e)
|
|
3702
3702
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3703
3703
|
return !0;
|
|
@@ -3708,7 +3708,7 @@ const Wr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ur = (
|
|
|
3708
3708
|
* This source code is licensed under the ISC license.
|
|
3709
3709
|
* See the LICENSE file in the root directory of this source tree.
|
|
3710
3710
|
*/
|
|
3711
|
-
var
|
|
3711
|
+
var qr = {
|
|
3712
3712
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3713
3713
|
width: 24,
|
|
3714
3714
|
height: 24,
|
|
@@ -3725,7 +3725,7 @@ var Xr = {
|
|
|
3725
3725
|
* This source code is licensed under the ISC license.
|
|
3726
3726
|
* See the LICENSE file in the root directory of this source tree.
|
|
3727
3727
|
*/
|
|
3728
|
-
const
|
|
3728
|
+
const Xr = we(
|
|
3729
3729
|
({
|
|
3730
3730
|
color: e = "currentColor",
|
|
3731
3731
|
size: t = 24,
|
|
@@ -3739,13 +3739,13 @@ const Zr = we(
|
|
|
3739
3739
|
"svg",
|
|
3740
3740
|
{
|
|
3741
3741
|
ref: c,
|
|
3742
|
-
...
|
|
3742
|
+
...qr,
|
|
3743
3743
|
width: t,
|
|
3744
3744
|
height: t,
|
|
3745
3745
|
stroke: e,
|
|
3746
3746
|
strokeWidth: a ? Number(o) * 24 / Number(t) : o,
|
|
3747
|
-
className:
|
|
3748
|
-
...!s && !
|
|
3747
|
+
className: gt("lucide", n),
|
|
3748
|
+
...!s && !Ur(l) && { "aria-hidden": "true" },
|
|
3749
3749
|
...l
|
|
3750
3750
|
},
|
|
3751
3751
|
[
|
|
@@ -3762,11 +3762,11 @@ const Zr = we(
|
|
|
3762
3762
|
*/
|
|
3763
3763
|
const G = (e, t) => {
|
|
3764
3764
|
const o = we(
|
|
3765
|
-
({ className: a, ...n }, s) => Pe(
|
|
3765
|
+
({ className: a, ...n }, s) => Pe(Xr, {
|
|
3766
3766
|
ref: s,
|
|
3767
3767
|
iconNode: t,
|
|
3768
|
-
className:
|
|
3769
|
-
`lucide-${
|
|
3768
|
+
className: gt(
|
|
3769
|
+
`lucide-${Gr(Qe(e))}`,
|
|
3770
3770
|
`lucide-${e}`,
|
|
3771
3771
|
a
|
|
3772
3772
|
),
|
|
@@ -3781,7 +3781,7 @@ const G = (e, t) => {
|
|
|
3781
3781
|
* This source code is licensed under the ISC license.
|
|
3782
3782
|
* See the LICENSE file in the root directory of this source tree.
|
|
3783
3783
|
*/
|
|
3784
|
-
const
|
|
3784
|
+
const Zr = [
|
|
3785
3785
|
["path", { d: "M10 4 8 6", key: "1rru8s" }],
|
|
3786
3786
|
["path", { d: "M17 19v2", key: "ts1sot" }],
|
|
3787
3787
|
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
@@ -3793,26 +3793,26 @@ const Kr = [
|
|
|
3793
3793
|
key: "14ym8i"
|
|
3794
3794
|
}
|
|
3795
3795
|
]
|
|
3796
|
-
],
|
|
3796
|
+
], Kr = G("bath", Zr);
|
|
3797
3797
|
/**
|
|
3798
3798
|
* @license lucide-react v0.547.0 - ISC
|
|
3799
3799
|
*
|
|
3800
3800
|
* This source code is licensed under the ISC license.
|
|
3801
3801
|
* See the LICENSE file in the root directory of this source tree.
|
|
3802
3802
|
*/
|
|
3803
|
-
const
|
|
3803
|
+
const Jr = [
|
|
3804
3804
|
["path", { d: "M2 4v16", key: "vw9hq8" }],
|
|
3805
3805
|
["path", { d: "M2 8h18a2 2 0 0 1 2 2v10", key: "1dgv2r" }],
|
|
3806
3806
|
["path", { d: "M2 17h20", key: "18nfp3" }],
|
|
3807
3807
|
["path", { d: "M6 8v9", key: "1yriud" }]
|
|
3808
|
-
],
|
|
3808
|
+
], Qr = G("bed", Jr);
|
|
3809
3809
|
/**
|
|
3810
3810
|
* @license lucide-react v0.547.0 - ISC
|
|
3811
3811
|
*
|
|
3812
3812
|
* This source code is licensed under the ISC license.
|
|
3813
3813
|
* See the LICENSE file in the root directory of this source tree.
|
|
3814
3814
|
*/
|
|
3815
|
-
const
|
|
3815
|
+
const Yr = [
|
|
3816
3816
|
[
|
|
3817
3817
|
"path",
|
|
3818
3818
|
{
|
|
@@ -3823,34 +3823,34 @@ const eo = [
|
|
|
3823
3823
|
["circle", { cx: "7", cy: "17", r: "2", key: "u2ysq9" }],
|
|
3824
3824
|
["path", { d: "M9 17h6", key: "r8uit2" }],
|
|
3825
3825
|
["circle", { cx: "17", cy: "17", r: "2", key: "axvx0g" }]
|
|
3826
|
-
],
|
|
3826
|
+
], eo = G("car", Yr);
|
|
3827
3827
|
/**
|
|
3828
3828
|
* @license lucide-react v0.547.0 - ISC
|
|
3829
3829
|
*
|
|
3830
3830
|
* This source code is licensed under the ISC license.
|
|
3831
3831
|
* See the LICENSE file in the root directory of this source tree.
|
|
3832
3832
|
*/
|
|
3833
|
-
const
|
|
3833
|
+
const to = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ro = G("chevron-down", to);
|
|
3834
3834
|
/**
|
|
3835
3835
|
* @license lucide-react v0.547.0 - ISC
|
|
3836
3836
|
*
|
|
3837
3837
|
* This source code is licensed under the ISC license.
|
|
3838
3838
|
* See the LICENSE file in the root directory of this source tree.
|
|
3839
3839
|
*/
|
|
3840
|
-
const
|
|
3840
|
+
const oo = [
|
|
3841
3841
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3842
3842
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
3843
3843
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
3844
3844
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
3845
3845
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
3846
|
-
],
|
|
3846
|
+
], ao = G("grid-3x3", oo);
|
|
3847
3847
|
/**
|
|
3848
3848
|
* @license lucide-react v0.547.0 - ISC
|
|
3849
3849
|
*
|
|
3850
3850
|
* This source code is licensed under the ISC license.
|
|
3851
3851
|
* See the LICENSE file in the root directory of this source tree.
|
|
3852
3852
|
*/
|
|
3853
|
-
const
|
|
3853
|
+
const no = [
|
|
3854
3854
|
[
|
|
3855
3855
|
"path",
|
|
3856
3856
|
{
|
|
@@ -3858,14 +3858,14 @@ const so = [
|
|
|
3858
3858
|
key: "mvr1a0"
|
|
3859
3859
|
}
|
|
3860
3860
|
]
|
|
3861
|
-
],
|
|
3861
|
+
], so = G("heart", no);
|
|
3862
3862
|
/**
|
|
3863
3863
|
* @license lucide-react v0.547.0 - ISC
|
|
3864
3864
|
*
|
|
3865
3865
|
* This source code is licensed under the ISC license.
|
|
3866
3866
|
* See the LICENSE file in the root directory of this source tree.
|
|
3867
3867
|
*/
|
|
3868
|
-
const
|
|
3868
|
+
const io = [
|
|
3869
3869
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
3870
3870
|
[
|
|
3871
3871
|
"path",
|
|
@@ -3874,14 +3874,14 @@ const lo = [
|
|
|
3874
3874
|
key: "r6nss1"
|
|
3875
3875
|
}
|
|
3876
3876
|
]
|
|
3877
|
-
],
|
|
3877
|
+
], lo = G("house", io);
|
|
3878
3878
|
/**
|
|
3879
3879
|
* @license lucide-react v0.547.0 - ISC
|
|
3880
3880
|
*
|
|
3881
3881
|
* This source code is licensed under the ISC license.
|
|
3882
3882
|
* See the LICENSE file in the root directory of this source tree.
|
|
3883
3883
|
*/
|
|
3884
|
-
const
|
|
3884
|
+
const co = [
|
|
3885
3885
|
[
|
|
3886
3886
|
"path",
|
|
3887
3887
|
{
|
|
@@ -3890,30 +3890,30 @@ const mo = [
|
|
|
3890
3890
|
}
|
|
3891
3891
|
],
|
|
3892
3892
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
3893
|
-
],
|
|
3893
|
+
], mo = G("map-pin", co);
|
|
3894
3894
|
/**
|
|
3895
3895
|
* @license lucide-react v0.547.0 - ISC
|
|
3896
3896
|
*
|
|
3897
3897
|
* This source code is licensed under the ISC license.
|
|
3898
3898
|
* See the LICENSE file in the root directory of this source tree.
|
|
3899
3899
|
*/
|
|
3900
|
-
const
|
|
3900
|
+
const uo = [
|
|
3901
3901
|
["path", { d: "M8 3H5a2 2 0 0 0-2 2v3", key: "1dcmit" }],
|
|
3902
3902
|
["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3", key: "1e4gt3" }],
|
|
3903
3903
|
["path", { d: "M3 16v3a2 2 0 0 0 2 2h3", key: "wsl5sc" }],
|
|
3904
3904
|
["path", { d: "M16 21h3a2 2 0 0 0 2-2v-3", key: "18trek" }]
|
|
3905
|
-
],
|
|
3905
|
+
], po = G("maximize", uo);
|
|
3906
3906
|
/**
|
|
3907
3907
|
* @license lucide-react v0.547.0 - ISC
|
|
3908
3908
|
*
|
|
3909
3909
|
* This source code is licensed under the ISC license.
|
|
3910
3910
|
* See the LICENSE file in the root directory of this source tree.
|
|
3911
3911
|
*/
|
|
3912
|
-
const
|
|
3912
|
+
const fo = [
|
|
3913
3913
|
["path", { d: "M4 5h16", key: "1tepv9" }],
|
|
3914
3914
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
3915
3915
|
["path", { d: "M4 19h16", key: "1djgab" }]
|
|
3916
|
-
],
|
|
3916
|
+
], ho = G("menu", fo);
|
|
3917
3917
|
/**
|
|
3918
3918
|
* @license lucide-react v0.547.0 - ISC
|
|
3919
3919
|
*
|
|
@@ -3923,7 +3923,7 @@ const ho = [
|
|
|
3923
3923
|
const go = [
|
|
3924
3924
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
3925
3925
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
3926
|
-
],
|
|
3926
|
+
], je = G("search", go);
|
|
3927
3927
|
/**
|
|
3928
3928
|
* @license lucide-react v0.547.0 - ISC
|
|
3929
3929
|
*
|
|
@@ -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
|
-
],
|
|
3946
|
+
], Ye = G("x", yo), Ve = v.forwardRef(
|
|
3947
3947
|
({
|
|
3948
3948
|
className: e,
|
|
3949
3949
|
containerClassName: t,
|
|
@@ -3958,7 +3958,7 @@ const yo = [
|
|
|
3958
3958
|
placeholder: u,
|
|
3959
3959
|
id: d,
|
|
3960
3960
|
...h
|
|
3961
|
-
},
|
|
3961
|
+
}, S) => {
|
|
3962
3962
|
const y = v.useId(), N = d || y, g = `${N}-helper`, w = `${N}-error`, T = l ? "error" : a, E = l || i;
|
|
3963
3963
|
return /* @__PURE__ */ p("div", { className: f("w-full", t), children: [
|
|
3964
3964
|
s && /* @__PURE__ */ r(
|
|
@@ -3966,7 +3966,7 @@ const yo = [
|
|
|
3966
3966
|
{
|
|
3967
3967
|
htmlFor: N,
|
|
3968
3968
|
className: f(
|
|
3969
|
-
|
|
3969
|
+
Br({ variant: T, required: c }),
|
|
3970
3970
|
o
|
|
3971
3971
|
),
|
|
3972
3972
|
children: s
|
|
@@ -3977,9 +3977,9 @@ const yo = [
|
|
|
3977
3977
|
"select",
|
|
3978
3978
|
{
|
|
3979
3979
|
id: N,
|
|
3980
|
-
ref:
|
|
3980
|
+
ref: S,
|
|
3981
3981
|
className: f(
|
|
3982
|
-
|
|
3982
|
+
Dr({ variant: T, selectSize: n }),
|
|
3983
3983
|
"pr-10",
|
|
3984
3984
|
// Space for chevron icon
|
|
3985
3985
|
e
|
|
@@ -3989,25 +3989,25 @@ const yo = [
|
|
|
3989
3989
|
...h,
|
|
3990
3990
|
children: [
|
|
3991
3991
|
u && /* @__PURE__ */ r("option", { value: "", disabled: !0, children: u }),
|
|
3992
|
-
m.map((
|
|
3992
|
+
m.map((P) => /* @__PURE__ */ r(
|
|
3993
3993
|
"option",
|
|
3994
3994
|
{
|
|
3995
|
-
value:
|
|
3996
|
-
disabled:
|
|
3997
|
-
children:
|
|
3995
|
+
value: P.value,
|
|
3996
|
+
disabled: P.disabled,
|
|
3997
|
+
children: P.label
|
|
3998
3998
|
},
|
|
3999
|
-
|
|
3999
|
+
P.value
|
|
4000
4000
|
))
|
|
4001
4001
|
]
|
|
4002
4002
|
}
|
|
4003
4003
|
),
|
|
4004
|
-
/* @__PURE__ */ r("div", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ r(
|
|
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
|
E && /* @__PURE__ */ r(
|
|
4007
4007
|
"p",
|
|
4008
4008
|
{
|
|
4009
4009
|
id: l ? w : g,
|
|
4010
|
-
className:
|
|
4010
|
+
className: Hr({ variant: T }),
|
|
4011
4011
|
role: l ? "alert" : void 0,
|
|
4012
4012
|
children: E
|
|
4013
4013
|
}
|
|
@@ -4048,11 +4048,11 @@ const vo = (e) => {
|
|
|
4048
4048
|
] });
|
|
4049
4049
|
}, ra = ({ children: e, header: t, sidebar: o }) => /* @__PURE__ */ r(Fe, { 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(Fe, { 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
|
-
t && /* @__PURE__ */ r(
|
|
4052
|
-
o && /* @__PURE__ */ r(
|
|
4051
|
+
t && /* @__PURE__ */ r(R, { variant: "h2", className: "mb-2", children: t }),
|
|
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(Fe, { header: t, footer: o, padding: "none", children: e }),
|
|
4055
|
+
] }) }), aa = ({ children: e, header: t, footer: o }) => /* @__PURE__ */ r(Fe, { header: t, footer: o, padding: "none", children: e }), bt = v.forwardRef(({ message: e = "No entities found", icon: t, action: o, className: a }, n) => /* @__PURE__ */ p(
|
|
4056
4056
|
"div",
|
|
4057
4057
|
{
|
|
4058
4058
|
ref: n,
|
|
@@ -4064,13 +4064,13 @@ const vo = (e) => {
|
|
|
4064
4064
|
),
|
|
4065
4065
|
children: [
|
|
4066
4066
|
t && /* @__PURE__ */ r("div", { className: "mb-4 text-4xl opacity-50", "aria-hidden": "true", children: t }),
|
|
4067
|
-
/* @__PURE__ */ r(
|
|
4067
|
+
/* @__PURE__ */ r(R, { variant: "body-lg", className: "text-muted-foreground mb-4", children: e }),
|
|
4068
4068
|
o && /* @__PURE__ */ r(K, { variant: "outline", onClick: o.onClick, children: o.label })
|
|
4069
4069
|
]
|
|
4070
4070
|
}
|
|
4071
4071
|
));
|
|
4072
|
-
|
|
4073
|
-
const
|
|
4072
|
+
bt.displayName = "EntityDirectoryEmptyState";
|
|
4073
|
+
const xt = v.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",
|
|
@@ -4084,20 +4084,20 @@ const yt = v.forwardRef(({ error: e, onRetry: t, className: o }, a) => {
|
|
|
4084
4084
|
),
|
|
4085
4085
|
children: [
|
|
4086
4086
|
/* @__PURE__ */ r("div", { className: "mb-4 text-4xl", "aria-hidden": "true", children: "⚠️" }),
|
|
4087
|
-
/* @__PURE__ */ r(
|
|
4088
|
-
/* @__PURE__ */ r(
|
|
4087
|
+
/* @__PURE__ */ r(R, { variant: "body-lg", className: "text-destructive mb-2 font-semibold", children: "Error" }),
|
|
4088
|
+
/* @__PURE__ */ r(R, { variant: "body", className: "text-muted-foreground mb-4", children: n }),
|
|
4089
4089
|
t && /* @__PURE__ */ r(K, { variant: "outline", onClick: t, children: "Try Again" })
|
|
4090
4090
|
]
|
|
4091
4091
|
}
|
|
4092
4092
|
);
|
|
4093
4093
|
});
|
|
4094
|
-
|
|
4095
|
-
const
|
|
4096
|
-
/* @__PURE__ */ r(
|
|
4097
|
-
t && /* @__PURE__ */ r(
|
|
4094
|
+
xt.displayName = "EntityDirectoryErrorState";
|
|
4095
|
+
const yt = v.forwardRef(({ title: e, description: t, className: o }, a) => /* @__PURE__ */ p("div", { ref: a, className: f("space-y-1.5", o), children: [
|
|
4096
|
+
/* @__PURE__ */ r(R, { variant: "h2", className: "font-bold", children: e }),
|
|
4097
|
+
t && /* @__PURE__ */ r(R, { variant: "body", className: "text-muted-foreground", children: t })
|
|
4098
4098
|
] }));
|
|
4099
|
-
|
|
4100
|
-
const
|
|
4099
|
+
yt.displayName = "EntityDirectoryHeader";
|
|
4100
|
+
const vt = v.forwardRef(
|
|
4101
4101
|
({
|
|
4102
4102
|
entity: e,
|
|
4103
4103
|
categories: t,
|
|
@@ -4142,7 +4142,7 @@ const wt = v.forwardRef(
|
|
|
4142
4142
|
),
|
|
4143
4143
|
/* @__PURE__ */ p("div", { className: "flex-1 min-w-0", children: [
|
|
4144
4144
|
/* @__PURE__ */ r(
|
|
4145
|
-
|
|
4145
|
+
R,
|
|
4146
4146
|
{
|
|
4147
4147
|
variant: s ? "body-sm" : "body",
|
|
4148
4148
|
className: "font-semibold truncate",
|
|
@@ -4150,7 +4150,7 @@ const wt = v.forwardRef(
|
|
|
4150
4150
|
}
|
|
4151
4151
|
),
|
|
4152
4152
|
e.subtitle && /* @__PURE__ */ r(
|
|
4153
|
-
|
|
4153
|
+
R,
|
|
4154
4154
|
{
|
|
4155
4155
|
variant: s ? "caption" : "body-sm",
|
|
4156
4156
|
className: "text-muted-foreground truncate",
|
|
@@ -4170,22 +4170,22 @@ const wt = v.forwardRef(
|
|
|
4170
4170
|
),
|
|
4171
4171
|
n && e.metricValue && /* @__PURE__ */ p("div", { className: "flex-shrink-0 text-right min-w-[4rem]", children: [
|
|
4172
4172
|
/* @__PURE__ */ r(
|
|
4173
|
-
|
|
4173
|
+
R,
|
|
4174
4174
|
{
|
|
4175
4175
|
variant: s ? "body-sm" : "body",
|
|
4176
4176
|
className: "font-medium",
|
|
4177
4177
|
children: e.metricValue
|
|
4178
4178
|
}
|
|
4179
4179
|
),
|
|
4180
|
-
e.metricLabel && /* @__PURE__ */ r(
|
|
4180
|
+
e.metricLabel && /* @__PURE__ */ r(R, { variant: "caption", className: "text-muted-foreground", children: e.metricLabel })
|
|
4181
4181
|
] })
|
|
4182
4182
|
]
|
|
4183
4183
|
}
|
|
4184
4184
|
);
|
|
4185
4185
|
}
|
|
4186
4186
|
);
|
|
4187
|
-
|
|
4188
|
-
const
|
|
4187
|
+
vt.displayName = "EntityDirectoryListItem";
|
|
4188
|
+
const wt = v.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 kt = 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"), S = o?.column === d.key;
|
|
4222
4222
|
return /* @__PURE__ */ p(
|
|
4223
4223
|
"div",
|
|
4224
4224
|
{
|
|
4225
4225
|
role: "columnheader",
|
|
4226
|
-
"aria-sort":
|
|
4226
|
+
"aria-sort": S ? 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,7 +4231,7 @@ const kt = 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
|
+
S && "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,
|
|
@@ -4249,8 +4249,8 @@ const kt = v.forwardRef(({ columns: e, showIcon: t, sort: o, onSortChange: a, co
|
|
|
4249
4249
|
}
|
|
4250
4250
|
);
|
|
4251
4251
|
});
|
|
4252
|
-
|
|
4253
|
-
const
|
|
4252
|
+
wt.displayName = "EntityDirectoryTableHeader";
|
|
4253
|
+
const kt = v.forwardRef(
|
|
4254
4254
|
({
|
|
4255
4255
|
entities: e,
|
|
4256
4256
|
categories: t,
|
|
@@ -4265,7 +4265,7 @@ const Nt = v.forwardRef(
|
|
|
4265
4265
|
renderItem: u,
|
|
4266
4266
|
className: d
|
|
4267
4267
|
}, h) => {
|
|
4268
|
-
const
|
|
4268
|
+
const S = [
|
|
4269
4269
|
{
|
|
4270
4270
|
key: "title",
|
|
4271
4271
|
label: s ? "Nombre" : "Name",
|
|
@@ -4293,9 +4293,9 @@ const Nt = v.forwardRef(
|
|
|
4293
4293
|
),
|
|
4294
4294
|
children: [
|
|
4295
4295
|
/* @__PURE__ */ r(
|
|
4296
|
-
|
|
4296
|
+
wt,
|
|
4297
4297
|
{
|
|
4298
|
-
columns:
|
|
4298
|
+
columns: S,
|
|
4299
4299
|
showIcon: o,
|
|
4300
4300
|
sort: l,
|
|
4301
4301
|
onSortChange: c,
|
|
@@ -4304,7 +4304,7 @@ const Nt = v.forwardRef(
|
|
|
4304
4304
|
),
|
|
4305
4305
|
/* @__PURE__ */ r("div", { role: "rowgroup", children: e.map(
|
|
4306
4306
|
(y) => u ? /* @__PURE__ */ r(v.Fragment, { children: u(y) }, y.id) : /* @__PURE__ */ r(
|
|
4307
|
-
|
|
4307
|
+
vt,
|
|
4308
4308
|
{
|
|
4309
4309
|
entity: y,
|
|
4310
4310
|
categories: t,
|
|
@@ -4321,8 +4321,8 @@ const Nt = v.forwardRef(
|
|
|
4321
4321
|
);
|
|
4322
4322
|
}
|
|
4323
4323
|
);
|
|
4324
|
-
|
|
4325
|
-
const
|
|
4324
|
+
kt.displayName = "EntityDirectoryList";
|
|
4325
|
+
const Nt = v.forwardRef(({ rows: e = 5, className: t }, o) => /* @__PURE__ */ p(
|
|
4326
4326
|
"div",
|
|
4327
4327
|
{
|
|
4328
4328
|
ref: o,
|
|
@@ -4351,8 +4351,8 @@ const Ct = v.forwardRef(({ rows: e = 5, className: t }, o) => /* @__PURE__ */ p(
|
|
|
4351
4351
|
]
|
|
4352
4352
|
}
|
|
4353
4353
|
));
|
|
4354
|
-
|
|
4355
|
-
const
|
|
4354
|
+
Nt.displayName = "EntityDirectoryLoadingState";
|
|
4355
|
+
const Ct = v.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
|
{
|
|
@@ -4418,7 +4418,7 @@ const Mt = v.forwardRef(({ value: e, onChange: t, placeholder: o = "Search entit
|
|
|
4418
4418
|
}
|
|
4419
4419
|
)
|
|
4420
4420
|
] }));
|
|
4421
|
-
|
|
4421
|
+
Ct.displayName = "EntityDirectorySearchFilter";
|
|
4422
4422
|
const wo = v.forwardRef(
|
|
4423
4423
|
({
|
|
4424
4424
|
entities: e,
|
|
@@ -4434,29 +4434,29 @@ const wo = v.forwardRef(
|
|
|
4434
4434
|
onSearchChange: u,
|
|
4435
4435
|
searchPlaceholder: d,
|
|
4436
4436
|
sortable: h = !1,
|
|
4437
|
-
sort:
|
|
4437
|
+
sort: S,
|
|
4438
4438
|
onSortChange: y,
|
|
4439
4439
|
showIcons: N = !0,
|
|
4440
4440
|
showCategoryBadges: g = !0,
|
|
4441
4441
|
showMetric: w = !0,
|
|
4442
4442
|
metricLabel: T,
|
|
4443
4443
|
compact: E = !1,
|
|
4444
|
-
loading:
|
|
4445
|
-
error:
|
|
4446
|
-
emptyMessage:
|
|
4444
|
+
loading: P = !1,
|
|
4445
|
+
error: M,
|
|
4446
|
+
emptyMessage: A,
|
|
4447
4447
|
onRetry: I,
|
|
4448
4448
|
emptyState: k,
|
|
4449
|
-
errorState:
|
|
4449
|
+
errorState: $,
|
|
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 = !P && !M && e.length === 0, W = !P && !!M;
|
|
4456
4456
|
return /* @__PURE__ */ p("div", { ref: Q, className: f("space-y-6", X), style: oe, children: [
|
|
4457
|
-
/* @__PURE__ */ r(
|
|
4457
|
+
/* @__PURE__ */ r(yt, { title: o, description: a }),
|
|
4458
4458
|
B && s && /* @__PURE__ */ r(
|
|
4459
|
-
|
|
4459
|
+
ht,
|
|
4460
4460
|
{
|
|
4461
4461
|
categories: t,
|
|
4462
4462
|
activeCategory: n,
|
|
@@ -4466,18 +4466,18 @@ const wo = v.forwardRef(
|
|
|
4466
4466
|
}
|
|
4467
4467
|
),
|
|
4468
4468
|
c && u && /* @__PURE__ */ r(
|
|
4469
|
-
|
|
4469
|
+
Ct,
|
|
4470
4470
|
{
|
|
4471
4471
|
value: m,
|
|
4472
4472
|
onChange: u,
|
|
4473
4473
|
placeholder: d
|
|
4474
4474
|
}
|
|
4475
4475
|
),
|
|
4476
|
-
|
|
4477
|
-
W && (
|
|
4478
|
-
D && (k || /* @__PURE__ */ r(
|
|
4479
|
-
!
|
|
4480
|
-
|
|
4476
|
+
P && (q || /* @__PURE__ */ r(Nt, {})),
|
|
4477
|
+
W && ($ || /* @__PURE__ */ r(xt, { error: M, onRetry: I })),
|
|
4478
|
+
D && (k || /* @__PURE__ */ r(bt, { message: A })),
|
|
4479
|
+
!P && !W && !D && /* @__PURE__ */ r(
|
|
4480
|
+
kt,
|
|
4481
4481
|
{
|
|
4482
4482
|
entities: e,
|
|
4483
4483
|
categories: t,
|
|
@@ -4486,7 +4486,7 @@ const wo = v.forwardRef(
|
|
|
4486
4486
|
showMetric: w,
|
|
4487
4487
|
metricLabel: T,
|
|
4488
4488
|
sortable: h,
|
|
4489
|
-
sort:
|
|
4489
|
+
sort: S,
|
|
4490
4490
|
onSortChange: y,
|
|
4491
4491
|
compact: E,
|
|
4492
4492
|
renderItem: re
|
|
@@ -4520,30 +4520,30 @@ const No = we(
|
|
|
4520
4520
|
mobileMenuButtonClassName: u,
|
|
4521
4521
|
id: d,
|
|
4522
4522
|
"aria-label": h
|
|
4523
|
-
},
|
|
4523
|
+
}, S) => {
|
|
4524
4524
|
const [y, N] = ee(!1), g = ko({
|
|
4525
4525
|
variant: e,
|
|
4526
4526
|
logo: t,
|
|
4527
4527
|
navigationItems: o,
|
|
4528
4528
|
loginButtonText: a,
|
|
4529
4529
|
showMobileMenu: n
|
|
4530
|
-
}), w = g.variant === "modern", T = g.variant === "luxury", E = T && g.showMobileMenu;
|
|
4530
|
+
}), w = g.variant === "modern", T = g.variant === "luxury", E = T && g.showMobileMenu, P = y ? E ? "Close navigation panel" : "Close menu" : E ? "Open navigation panel" : "Open menu";
|
|
4531
4531
|
return /* @__PURE__ */ p(se, { children: [
|
|
4532
4532
|
/* @__PURE__ */ p(
|
|
4533
4533
|
"header",
|
|
4534
4534
|
{
|
|
4535
|
-
ref:
|
|
4535
|
+
ref: S,
|
|
4536
4536
|
id: d,
|
|
4537
4537
|
role: "banner",
|
|
4538
4538
|
"aria-label": h || "Site header",
|
|
4539
4539
|
className: f(
|
|
4540
|
-
"flex items-center justify-between relative w-full",
|
|
4540
|
+
"flex items-center justify-between relative w-full space-x-4",
|
|
4541
4541
|
// Luxury: wide horizontal rhythm from Figma, Modern/Minimal: compact padding
|
|
4542
4542
|
T ? "px-16 py-2" : "px-6 py-1",
|
|
4543
4543
|
s
|
|
4544
4544
|
),
|
|
4545
4545
|
children: [
|
|
4546
|
-
g.logo && /* @__PURE__ */ r("div", { className: "shrink-0", children: typeof g.logo == "string" ? /* @__PURE__ */ r(
|
|
4546
|
+
g.logo && /* @__PURE__ */ r("div", { className: "shrink-0 w-2/3 md:w-1/5 text-ellipsis overflow-hidden text-nowrap", children: typeof g.logo == "string" ? /* @__PURE__ */ r(
|
|
4547
4547
|
"p",
|
|
4548
4548
|
{
|
|
4549
4549
|
className: f(
|
|
@@ -4561,14 +4561,14 @@ const No = we(
|
|
|
4561
4561
|
"nav",
|
|
4562
4562
|
{
|
|
4563
4563
|
className: f(
|
|
4564
|
-
"hidden md:flex items-center",
|
|
4564
|
+
"hidden md:flex items-center max-w-fit",
|
|
4565
4565
|
// Luxury: plain links with separators, Modern: transparent row, Minimal: pill navigation
|
|
4566
4566
|
T ? "ml-auto gap-4" : w ? "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
4567
|
l
|
|
4568
4568
|
),
|
|
4569
4569
|
"aria-label": "Main navigation",
|
|
4570
|
-
children: g.navigationItems.map((
|
|
4571
|
-
|
|
4570
|
+
children: g.navigationItems.map((M, A) => /* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: [
|
|
4571
|
+
A > 0 && /* @__PURE__ */ r(
|
|
4572
4572
|
"div",
|
|
4573
4573
|
{
|
|
4574
4574
|
className: "flex items-center justify-center h-6 w-0",
|
|
@@ -4587,18 +4587,18 @@ const No = we(
|
|
|
4587
4587
|
/* @__PURE__ */ r(
|
|
4588
4588
|
"a",
|
|
4589
4589
|
{
|
|
4590
|
-
href:
|
|
4590
|
+
href: M.href,
|
|
4591
4591
|
className: f(
|
|
4592
|
-
T ? "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",
|
|
4592
|
+
T ? "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",
|
|
4593
4593
|
c
|
|
4594
4594
|
),
|
|
4595
|
-
children:
|
|
4595
|
+
children: M.label
|
|
4596
4596
|
}
|
|
4597
4597
|
)
|
|
4598
|
-
] },
|
|
4598
|
+
] }, M.id))
|
|
4599
4599
|
}
|
|
4600
4600
|
),
|
|
4601
|
-
/* @__PURE__ */ p("div", { className: f("flex items-center shrink-0", "gap-6 p-4"), children: [
|
|
4601
|
+
/* @__PURE__ */ p("div", { className: f("flex items-center shrink-0 w-1/5", "gap-6 p-4"), children: [
|
|
4602
4602
|
/* @__PURE__ */ r(
|
|
4603
4603
|
"button",
|
|
4604
4604
|
{
|
|
@@ -4612,32 +4612,20 @@ const No = we(
|
|
|
4612
4612
|
children: g.loginButtonText
|
|
4613
4613
|
}
|
|
4614
4614
|
),
|
|
4615
|
-
E && /* @__PURE__ */ r(
|
|
4616
|
-
"button",
|
|
4617
|
-
{
|
|
4618
|
-
type: "button",
|
|
4619
|
-
"aria-label": "Open navigation panel",
|
|
4620
|
-
className: f(
|
|
4621
|
-
"hidden md:flex items-center justify-center border border-zinc-200 bg-white px-3 py-2 text-zinc-900 transition-colors hover:bg-zinc-100",
|
|
4622
|
-
u
|
|
4623
|
-
),
|
|
4624
|
-
children: /* @__PURE__ */ r(Ye, { className: "h-[15px] w-[15px]" })
|
|
4625
|
-
}
|
|
4626
|
-
),
|
|
4627
4615
|
g.showMobileMenu && /* @__PURE__ */ r(
|
|
4628
4616
|
"button",
|
|
4629
4617
|
{
|
|
4630
4618
|
type: "button",
|
|
4631
4619
|
onClick: () => N(!y),
|
|
4632
|
-
"aria-label":
|
|
4620
|
+
"aria-label": P,
|
|
4633
4621
|
"aria-expanded": y,
|
|
4634
4622
|
className: f(
|
|
4635
4623
|
"flex md:hidden items-center justify-center px-3 py-2 bg-white transition-colors",
|
|
4636
|
-
T ? "
|
|
4624
|
+
T ? "border border-zinc-200 text-zinc-900 hover:bg-zinc-100" : w ? "rounded-xl border border-zinc-200 hover:bg-gray-50" : "rounded-full hover:bg-gray-50",
|
|
4637
4625
|
u
|
|
4638
4626
|
),
|
|
4639
4627
|
children: y ? /* @__PURE__ */ r(
|
|
4640
|
-
|
|
4628
|
+
Ye,
|
|
4641
4629
|
{
|
|
4642
4630
|
className: f(
|
|
4643
4631
|
"text-gray-900",
|
|
@@ -4645,7 +4633,7 @@ const No = we(
|
|
|
4645
4633
|
)
|
|
4646
4634
|
}
|
|
4647
4635
|
) : /* @__PURE__ */ r(
|
|
4648
|
-
|
|
4636
|
+
ho,
|
|
4649
4637
|
{
|
|
4650
4638
|
className: f(
|
|
4651
4639
|
"text-gray-900",
|
|
@@ -4683,19 +4671,19 @@ const No = we(
|
|
|
4683
4671
|
onClick: () => N(!1),
|
|
4684
4672
|
"aria-label": "Close menu",
|
|
4685
4673
|
className: "flex h-10 w-10 items-center justify-center rounded-full bg-zinc-100 text-zinc-900 hover:bg-zinc-200",
|
|
4686
|
-
children: /* @__PURE__ */ r(
|
|
4674
|
+
children: /* @__PURE__ */ r(Ye, { className: "h-5 w-5" })
|
|
4687
4675
|
}
|
|
4688
4676
|
) }),
|
|
4689
4677
|
/* @__PURE__ */ r("nav", { className: "flex-1 overflow-y-auto px-6 py-4", children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-4", children: [
|
|
4690
|
-
g.navigationItems.map((
|
|
4678
|
+
g.navigationItems.map((M) => /* @__PURE__ */ r(
|
|
4691
4679
|
"a",
|
|
4692
4680
|
{
|
|
4693
|
-
href:
|
|
4681
|
+
href: M.href,
|
|
4694
4682
|
className: "block text-base font-medium text-zinc-900 hover:text-zinc-600 transition-colors py-2",
|
|
4695
4683
|
onClick: () => N(!1),
|
|
4696
|
-
children:
|
|
4684
|
+
children: M.label
|
|
4697
4685
|
},
|
|
4698
|
-
|
|
4686
|
+
M.id
|
|
4699
4687
|
)),
|
|
4700
4688
|
/* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-zinc-200", children: /* @__PURE__ */ r(
|
|
4701
4689
|
"button",
|
|
@@ -4747,7 +4735,7 @@ const Co = (e) => ({
|
|
|
4747
4735
|
theme: t,
|
|
4748
4736
|
variant: o,
|
|
4749
4737
|
layout: a
|
|
4750
|
-
}), h = d.variant === "modern",
|
|
4738
|
+
}), h = d.variant === "modern", S = d.variant === "modern" || d.variant === "luxury";
|
|
4751
4739
|
return /* @__PURE__ */ r(
|
|
4752
4740
|
"section",
|
|
4753
4741
|
{
|
|
@@ -4800,7 +4788,7 @@ const Co = (e) => ({
|
|
|
4800
4788
|
] }, N)) }) }),
|
|
4801
4789
|
n && /* @__PURE__ */ r("div", { className: "relative z-20 mx-auto w-full max-w-4xl", children: n })
|
|
4802
4790
|
] }) }),
|
|
4803
|
-
|
|
4791
|
+
S && 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((y, N) => /* @__PURE__ */ p("div", { className: "flex flex-col", children: [
|
|
4804
4792
|
/* @__PURE__ */ r("div", { className: "text-xl font-semibold leading-tight md:text-2xl", children: y.value }),
|
|
4805
4793
|
/* @__PURE__ */ r("div", { className: "text-xs leading-tight text-zinc-600 md:text-sm", children: y.label })
|
|
4806
4794
|
] }, N)) }) }),
|
|
@@ -4819,12 +4807,12 @@ const Co = (e) => ({
|
|
|
4819
4807
|
}
|
|
4820
4808
|
);
|
|
4821
4809
|
So.displayName = "HeroBanner";
|
|
4822
|
-
const
|
|
4810
|
+
const Mt = [
|
|
4823
4811
|
{ value: "15-years", label: "15 años fijos", years: 15 },
|
|
4824
4812
|
{ value: "20-years", label: "20 años fijos", years: 20 },
|
|
4825
4813
|
{ value: "30-years", label: "30 años fijos", years: 30 },
|
|
4826
4814
|
{ value: "40-years", label: "40 años fijos", years: 40 }
|
|
4827
|
-
], To =
|
|
4815
|
+
], To = Mt.map(
|
|
4828
4816
|
(e) => ({
|
|
4829
4817
|
value: e.value,
|
|
4830
4818
|
label: e.label
|
|
@@ -4852,11 +4840,11 @@ const St = [
|
|
|
4852
4840
|
className: i,
|
|
4853
4841
|
onCalculationChange: l
|
|
4854
4842
|
}, c) => {
|
|
4855
|
-
const [m, u] = v.useState(e), [d, h] = v.useState(t), [
|
|
4856
|
-
const k =
|
|
4857
|
-
(q) => q.value ===
|
|
4843
|
+
const [m, u] = v.useState(e), [d, h] = v.useState(t), [S, y] = v.useState(o), [N, g] = v.useState(a), [w, T] = v.useState(0), [E, P] = v.useState(0), M = v.useMemo(() => {
|
|
4844
|
+
const k = Mt.find(
|
|
4845
|
+
(q) => q.value === S
|
|
4858
4846
|
)?.years || 30;
|
|
4859
|
-
return
|
|
4847
|
+
return jt({
|
|
4860
4848
|
propertyPrice: m,
|
|
4861
4849
|
downPayment: d,
|
|
4862
4850
|
loanTerm: k,
|
|
@@ -4867,7 +4855,7 @@ const St = [
|
|
|
4867
4855
|
}, [
|
|
4868
4856
|
m,
|
|
4869
4857
|
d,
|
|
4870
|
-
|
|
4858
|
+
S,
|
|
4871
4859
|
N,
|
|
4872
4860
|
w,
|
|
4873
4861
|
E,
|
|
@@ -4875,30 +4863,30 @@ const St = [
|
|
|
4875
4863
|
s
|
|
4876
4864
|
]);
|
|
4877
4865
|
v.useEffect(() => {
|
|
4878
|
-
l?.(
|
|
4879
|
-
}, [
|
|
4880
|
-
const
|
|
4866
|
+
l?.(M);
|
|
4867
|
+
}, [M, l]);
|
|
4868
|
+
const A = v.useMemo(() => {
|
|
4881
4869
|
const I = [
|
|
4882
4870
|
{
|
|
4883
4871
|
label: "Principal e Intereses",
|
|
4884
|
-
value:
|
|
4872
|
+
value: M.breakdown.principalAndInterest,
|
|
4885
4873
|
color: Te.principalAndInterest
|
|
4886
4874
|
}
|
|
4887
4875
|
];
|
|
4888
|
-
return n &&
|
|
4876
|
+
return n && M.breakdown.propertyTax > 0 && I.push({
|
|
4889
4877
|
label: "Impuesto Predial",
|
|
4890
|
-
value:
|
|
4878
|
+
value: M.breakdown.propertyTax,
|
|
4891
4879
|
color: Te.propertyTax
|
|
4892
|
-
}), s &&
|
|
4880
|
+
}), s && M.breakdown.hoaFees > 0 && I.push({
|
|
4893
4881
|
label: "Cuota HOA",
|
|
4894
|
-
value:
|
|
4882
|
+
value: M.breakdown.hoaFees,
|
|
4895
4883
|
color: Te.hoaFees
|
|
4896
4884
|
}), I;
|
|
4897
|
-
}, [
|
|
4898
|
-
return /* @__PURE__ */ r("div", { ref: c, className: f("w-full", i), children: /* @__PURE__ */ r(
|
|
4885
|
+
}, [M, n, s]);
|
|
4886
|
+
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: [
|
|
4899
4887
|
/* @__PURE__ */ p("div", { children: [
|
|
4900
|
-
/* @__PURE__ */ r(
|
|
4901
|
-
/* @__PURE__ */ r(
|
|
4888
|
+
/* @__PURE__ */ r(R, { variant: "h2", className: "mb-2", children: "Calculadora de Hipotecas" }),
|
|
4889
|
+
/* @__PURE__ */ r(R, { variant: "body", color: "secondary", className: "max-w-2xl", children: "Calcule el pago mensual de su hipoteca, incluyendo capital e intereses, impuestos prediales y cuota de la asociación de propietarios. Ajuste los valores para obtener una tasa más precisa." })
|
|
4902
4890
|
] }),
|
|
4903
4891
|
/* @__PURE__ */ p("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
|
|
4904
4892
|
/* @__PURE__ */ p("div", { className: "space-y-4", children: [
|
|
@@ -4931,7 +4919,7 @@ const St = [
|
|
|
4931
4919
|
Ve,
|
|
4932
4920
|
{
|
|
4933
4921
|
label: "Programa de préstamos",
|
|
4934
|
-
value:
|
|
4922
|
+
value: S,
|
|
4935
4923
|
onChange: (I) => y(I.target.value),
|
|
4936
4924
|
options: To
|
|
4937
4925
|
}
|
|
@@ -4968,7 +4956,7 @@ const St = [
|
|
|
4968
4956
|
label: "Cuota HOA mensual",
|
|
4969
4957
|
type: "number",
|
|
4970
4958
|
value: E,
|
|
4971
|
-
onChange: (I) =>
|
|
4959
|
+
onChange: (I) => P(Number(I.target.value)),
|
|
4972
4960
|
suffix: "MXN",
|
|
4973
4961
|
min: 0,
|
|
4974
4962
|
step: 100
|
|
@@ -4977,14 +4965,14 @@ const St = [
|
|
|
4977
4965
|
] }),
|
|
4978
4966
|
/* @__PURE__ */ p("div", { className: "flex flex-col items-center justify-center", children: [
|
|
4979
4967
|
/* @__PURE__ */ r(
|
|
4980
|
-
|
|
4968
|
+
ft,
|
|
4981
4969
|
{
|
|
4982
|
-
segments:
|
|
4970
|
+
segments: A,
|
|
4983
4971
|
size: 320,
|
|
4984
4972
|
innerRadiusRatio: 0.65,
|
|
4985
4973
|
centerContent: /* @__PURE__ */ p("div", { className: "text-center", children: [
|
|
4986
|
-
/* @__PURE__ */ r(
|
|
4987
|
-
/* @__PURE__ */ r(
|
|
4974
|
+
/* @__PURE__ */ r(R, { variant: "h1", className: "font-bold mb-1", children: me(M.totalMonthlyPayment) }),
|
|
4975
|
+
/* @__PURE__ */ r(R, { variant: "body-sm", color: "secondary", children: "Tu Pago" })
|
|
4988
4976
|
] }),
|
|
4989
4977
|
showLegend: !0,
|
|
4990
4978
|
legendPosition: "bottom"
|
|
@@ -4995,26 +4983,26 @@ const St = [
|
|
|
4995
4983
|
/* @__PURE__ */ r(xo, { className: "h-4 w-4" }),
|
|
4996
4984
|
/* @__PURE__ */ r("span", { className: "font-medium", children: "Trending up by 5.2% this month" })
|
|
4997
4985
|
] }),
|
|
4998
|
-
/* @__PURE__ */ r(
|
|
4986
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", children: "Showing total visitors for the last 6 months" })
|
|
4999
4987
|
] })
|
|
5000
4988
|
] })
|
|
5001
4989
|
] }),
|
|
5002
4990
|
/* @__PURE__ */ p("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 pt-4 border-t", children: [
|
|
5003
4991
|
/* @__PURE__ */ p("div", { children: [
|
|
5004
|
-
/* @__PURE__ */ r(
|
|
5005
|
-
/* @__PURE__ */ r(
|
|
4992
|
+
/* @__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(M.loanPrincipal) })
|
|
5006
4994
|
] }),
|
|
5007
4995
|
/* @__PURE__ */ p("div", { children: [
|
|
5008
|
-
/* @__PURE__ */ r(
|
|
5009
|
-
/* @__PURE__ */ r(
|
|
4996
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Pago mensual" }),
|
|
4997
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(M.monthlyPayment) })
|
|
5010
4998
|
] }),
|
|
5011
4999
|
/* @__PURE__ */ p("div", { children: [
|
|
5012
|
-
/* @__PURE__ */ r(
|
|
5013
|
-
/* @__PURE__ */ r(
|
|
5000
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Interés total" }),
|
|
5001
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(M.totalInterest) })
|
|
5014
5002
|
] }),
|
|
5015
5003
|
/* @__PURE__ */ p("div", { children: [
|
|
5016
|
-
/* @__PURE__ */ r(
|
|
5017
|
-
/* @__PURE__ */ r(
|
|
5004
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Total a pagar" }),
|
|
5005
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(M.totalAmount) })
|
|
5018
5006
|
] })
|
|
5019
5007
|
] })
|
|
5020
5008
|
] }) }) });
|
|
@@ -5075,7 +5063,7 @@ const Po = (e, t, o) => {
|
|
|
5075
5063
|
variant: s = "default",
|
|
5076
5064
|
badgeColors: i
|
|
5077
5065
|
}) => {
|
|
5078
|
-
const [l, c] = ee(0), [m, u] = ee(!1), [d, h] = ee(!1),
|
|
5066
|
+
const [l, c] = ee(0), [m, u] = ee(!1), [d, h] = ee(!1), S = (_) => {
|
|
5079
5067
|
_.preventDefault(), _.stopPropagation();
|
|
5080
5068
|
const F = !m;
|
|
5081
5069
|
u(F), o?.(e.id, F);
|
|
@@ -5088,13 +5076,13 @@ const Po = (e, t, o) => {
|
|
|
5088
5076
|
), E = f(
|
|
5089
5077
|
"relative overflow-hidden",
|
|
5090
5078
|
g ? "rounded-xl px-4 shadow-md" : w ? "rounded-2xl" : ""
|
|
5091
|
-
),
|
|
5079
|
+
), P = f(
|
|
5092
5080
|
"w-full h-full object-cover",
|
|
5093
5081
|
g ? "" : w ? "rounded-2xl" : "transition-transform duration-300 hover:scale-105"
|
|
5094
|
-
),
|
|
5082
|
+
), M = f(
|
|
5095
5083
|
"absolute z-10 flex flex-wrap gap-2",
|
|
5096
5084
|
g ? "top-3 left-3" : "top-4 left-4"
|
|
5097
|
-
),
|
|
5085
|
+
), A = f(
|
|
5098
5086
|
"font-semibold",
|
|
5099
5087
|
g ? "rounded-full px-3 py-1 text-xs" : w ? "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"
|
|
5100
5088
|
), I = f(
|
|
@@ -5103,7 +5091,7 @@ const Po = (e, t, o) => {
|
|
|
5103
5091
|
), k = f(
|
|
5104
5092
|
"absolute left-1/2 -translate-x-1/2 flex z-10",
|
|
5105
5093
|
w ? "bottom-4 gap-2 p-4" : "bottom-4 gap-1"
|
|
5106
|
-
),
|
|
5094
|
+
), $ = f(
|
|
5107
5095
|
"w-2 h-2 rounded-full border-none cursor-pointer transition-all duration-200 hover:scale-120"
|
|
5108
5096
|
), q = f(
|
|
5109
5097
|
g ? "p-2" : w ? "flex flex-col gap-2" : "p-6"
|
|
@@ -5126,7 +5114,7 @@ const Po = (e, t, o) => {
|
|
|
5126
5114
|
"text-sm text-muted-foreground line-clamp-2",
|
|
5127
5115
|
g ? "mt-2" : ""
|
|
5128
5116
|
), 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: [
|
|
5129
|
-
/* @__PURE__ */ r("div", { className: "rounded-full bg-primary/10 p-6", children: /* @__PURE__ */ r(
|
|
5117
|
+
/* @__PURE__ */ r("div", { className: "rounded-full bg-primary/10 p-6", children: /* @__PURE__ */ r(lo, { size: g ? 32 : 48, className: "text-primary/40" }) }),
|
|
5130
5118
|
/* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground", children: "No image available" })
|
|
5131
5119
|
] }), de = /* @__PURE__ */ p("div", { className: T, children: [
|
|
5132
5120
|
/* @__PURE__ */ p(
|
|
@@ -5143,27 +5131,27 @@ const Po = (e, t, o) => {
|
|
|
5143
5131
|
{
|
|
5144
5132
|
src: e.images[l],
|
|
5145
5133
|
alt: e.title,
|
|
5146
|
-
className:
|
|
5134
|
+
className: P,
|
|
5147
5135
|
onClick: a ? y : void 0,
|
|
5148
5136
|
onError: () => h(!0)
|
|
5149
5137
|
}
|
|
5150
5138
|
),
|
|
5151
5139
|
/* @__PURE__ */ r("div", { className: "absolute inset-0 bg-gradient-to-b from-transparent to-black/40 pointer-events-none rounded-2xl" })
|
|
5152
5140
|
] }),
|
|
5153
|
-
/* @__PURE__ */ r("div", { className:
|
|
5154
|
-
const
|
|
5141
|
+
/* @__PURE__ */ r("div", { className: M, children: e.transactionTypes.map((_, F) => {
|
|
5142
|
+
const j = i?.[_.type];
|
|
5155
5143
|
return /* @__PURE__ */ r(
|
|
5156
5144
|
"span",
|
|
5157
5145
|
{
|
|
5158
5146
|
className: f(
|
|
5159
|
-
|
|
5147
|
+
A,
|
|
5160
5148
|
Po(
|
|
5161
5149
|
_,
|
|
5162
|
-
|
|
5150
|
+
j,
|
|
5163
5151
|
w
|
|
5164
5152
|
)
|
|
5165
5153
|
),
|
|
5166
|
-
style:
|
|
5154
|
+
style: j ? { backgroundColor: j } : void 0,
|
|
5167
5155
|
children: _.type
|
|
5168
5156
|
},
|
|
5169
5157
|
F
|
|
@@ -5172,7 +5160,7 @@ const Po = (e, t, o) => {
|
|
|
5172
5160
|
n && /* @__PURE__ */ r(
|
|
5173
5161
|
"button",
|
|
5174
5162
|
{
|
|
5175
|
-
onClick:
|
|
5163
|
+
onClick: S,
|
|
5176
5164
|
className: I,
|
|
5177
5165
|
"aria-label": m ? "Unlike property" : "Like property",
|
|
5178
5166
|
children: g ? /* @__PURE__ */ r(
|
|
@@ -5194,7 +5182,7 @@ const Po = (e, t, o) => {
|
|
|
5194
5182
|
)
|
|
5195
5183
|
}
|
|
5196
5184
|
) : /* @__PURE__ */ r(
|
|
5197
|
-
|
|
5185
|
+
so,
|
|
5198
5186
|
{
|
|
5199
5187
|
size: 20,
|
|
5200
5188
|
fill: m ? "currentColor" : "none",
|
|
@@ -5208,11 +5196,11 @@ const Po = (e, t, o) => {
|
|
|
5208
5196
|
"button",
|
|
5209
5197
|
{
|
|
5210
5198
|
className: f(
|
|
5211
|
-
|
|
5199
|
+
$,
|
|
5212
5200
|
F === l ? "bg-white" : "bg-white/50"
|
|
5213
5201
|
),
|
|
5214
|
-
onClick: (
|
|
5215
|
-
|
|
5202
|
+
onClick: (j) => {
|
|
5203
|
+
j.preventDefault(), j.stopPropagation(), c(F);
|
|
5216
5204
|
},
|
|
5217
5205
|
"aria-label": `Go to image ${F + 1}`,
|
|
5218
5206
|
"aria-current": F === l
|
|
@@ -5226,26 +5214,26 @@ const Po = (e, t, o) => {
|
|
|
5226
5214
|
/* @__PURE__ */ r("h3", { className: re, children: e.title }),
|
|
5227
5215
|
/* @__PURE__ */ r("p", { className: X, children: N(e.price?.amount, e.price?.currency) }),
|
|
5228
5216
|
/* @__PURE__ */ p("p", { className: oe, children: [
|
|
5229
|
-
g && /* @__PURE__ */ r(
|
|
5217
|
+
g && /* @__PURE__ */ r(mo, { size: 14 }),
|
|
5230
5218
|
e.location.city,
|
|
5231
5219
|
", ",
|
|
5232
5220
|
e.location.state
|
|
5233
5221
|
] }),
|
|
5234
5222
|
/* @__PURE__ */ p("div", { className: Q, children: [
|
|
5235
5223
|
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5236
|
-
/* @__PURE__ */ r(
|
|
5224
|
+
/* @__PURE__ */ r(Qr, { size: w ? 20 : 16 }),
|
|
5237
5225
|
/* @__PURE__ */ r("span", { children: e.features.bedrooms })
|
|
5238
5226
|
] }),
|
|
5239
5227
|
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5240
|
-
/* @__PURE__ */ r(
|
|
5228
|
+
/* @__PURE__ */ r(Kr, { size: w ? 20 : 16 }),
|
|
5241
5229
|
/* @__PURE__ */ r("span", { children: e.features.bathrooms })
|
|
5242
5230
|
] }),
|
|
5243
5231
|
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5244
|
-
/* @__PURE__ */ r(
|
|
5232
|
+
/* @__PURE__ */ r(eo, { size: w ? 20 : 16 }),
|
|
5245
5233
|
/* @__PURE__ */ r("span", { children: e.features.parking })
|
|
5246
5234
|
] }),
|
|
5247
5235
|
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5248
|
-
/* @__PURE__ */ r(
|
|
5236
|
+
/* @__PURE__ */ r(po, { size: w ? 20 : 16 }),
|
|
5249
5237
|
/* @__PURE__ */ p("span", { children: [
|
|
5250
5238
|
e.features.area,
|
|
5251
5239
|
" m²"
|
|
@@ -5331,7 +5319,7 @@ const Po = (e, t, o) => {
|
|
|
5331
5319
|
},
|
|
5332
5320
|
className: "flex items-center gap-2 bg-white rounded-full px-4 py-2 shadow-md hover:shadow-lg transition-all duration-200 hover:scale-105",
|
|
5333
5321
|
children: [
|
|
5334
|
-
/* @__PURE__ */ r(
|
|
5322
|
+
/* @__PURE__ */ r(ao, { className: "w-4 h-4 text-foreground" }),
|
|
5335
5323
|
/* @__PURE__ */ p("span", { className: "text-sm font-medium text-foreground", children: [
|
|
5336
5324
|
"Ver las ",
|
|
5337
5325
|
o,
|
|
@@ -5347,7 +5335,7 @@ const Po = (e, t, o) => {
|
|
|
5347
5335
|
}
|
|
5348
5336
|
);
|
|
5349
5337
|
Eo.displayName = "PropertyGallery";
|
|
5350
|
-
function
|
|
5338
|
+
function Ro({
|
|
5351
5339
|
onSubmit: e,
|
|
5352
5340
|
defaultValues: t,
|
|
5353
5341
|
propertyTypeOptions: o,
|
|
@@ -5400,7 +5388,7 @@ const _e = ({
|
|
|
5400
5388
|
}) => {
|
|
5401
5389
|
const a = "relative size-12 rounded-full bg-black text-white transition-all duration-200 hover:bg-black/90 hover:shadow-md flex items-center justify-center", n = "w-full";
|
|
5402
5390
|
return e === "mobile" ? /* @__PURE__ */ p(K, { type: "submit", className: f(n, o), children: [
|
|
5403
|
-
/* @__PURE__ */ r(
|
|
5391
|
+
/* @__PURE__ */ r(je, { className: "h-4 w-4" }),
|
|
5404
5392
|
t ? "Searching..." : "Search"
|
|
5405
5393
|
] }) : /* @__PURE__ */ r(
|
|
5406
5394
|
K,
|
|
@@ -5411,10 +5399,10 @@ const _e = ({
|
|
|
5411
5399
|
"aria-label": t ? "Searching..." : "Search properties",
|
|
5412
5400
|
className: f(a, o),
|
|
5413
5401
|
disabled: t,
|
|
5414
|
-
children: /* @__PURE__ */ r(
|
|
5402
|
+
children: /* @__PURE__ */ r(je, { className: "h-6 w-6" })
|
|
5415
5403
|
}
|
|
5416
5404
|
);
|
|
5417
|
-
},
|
|
5405
|
+
}, V = ({
|
|
5418
5406
|
label: e,
|
|
5419
5407
|
options: t,
|
|
5420
5408
|
value: o,
|
|
@@ -5448,7 +5436,7 @@ const _e = ({
|
|
|
5448
5436
|
onChange: l
|
|
5449
5437
|
}
|
|
5450
5438
|
) }) });
|
|
5451
|
-
},
|
|
5439
|
+
}, jo = ({
|
|
5452
5440
|
formData: e,
|
|
5453
5441
|
options: t,
|
|
5454
5442
|
onFieldChange: o,
|
|
@@ -5459,7 +5447,7 @@ const _e = ({
|
|
|
5459
5447
|
}) => /* @__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: [
|
|
5460
5448
|
/* @__PURE__ */ p("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: [
|
|
5461
5449
|
/* @__PURE__ */ r(
|
|
5462
|
-
|
|
5450
|
+
V,
|
|
5463
5451
|
{
|
|
5464
5452
|
label: "Property Type",
|
|
5465
5453
|
options: t.propertyTypeOptions,
|
|
@@ -5470,7 +5458,7 @@ const _e = ({
|
|
|
5470
5458
|
}
|
|
5471
5459
|
),
|
|
5472
5460
|
/* @__PURE__ */ r(
|
|
5473
|
-
|
|
5461
|
+
V,
|
|
5474
5462
|
{
|
|
5475
5463
|
label: "Transaction",
|
|
5476
5464
|
options: t.transactionTypeOptions,
|
|
@@ -5481,7 +5469,7 @@ const _e = ({
|
|
|
5481
5469
|
}
|
|
5482
5470
|
),
|
|
5483
5471
|
/* @__PURE__ */ r(
|
|
5484
|
-
|
|
5472
|
+
V,
|
|
5485
5473
|
{
|
|
5486
5474
|
label: "Location",
|
|
5487
5475
|
options: t.locationOptions,
|
|
@@ -5500,7 +5488,7 @@ const _e = ({
|
|
|
5500
5488
|
size: "lg",
|
|
5501
5489
|
disabled: a,
|
|
5502
5490
|
children: [
|
|
5503
|
-
/* @__PURE__ */ r(
|
|
5491
|
+
/* @__PURE__ */ r(je, { className: "h-4 w-4 mr-2" }),
|
|
5504
5492
|
a ? "Searching..." : "Search Properties"
|
|
5505
5493
|
]
|
|
5506
5494
|
}
|
|
@@ -5528,7 +5516,7 @@ const _e = ({
|
|
|
5528
5516
|
"aria-label": "Property search form",
|
|
5529
5517
|
children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-3 rounded-2xl bg-white p-4 shadow-lg", children: [
|
|
5530
5518
|
/* @__PURE__ */ r(
|
|
5531
|
-
|
|
5519
|
+
V,
|
|
5532
5520
|
{
|
|
5533
5521
|
label: "Property Type",
|
|
5534
5522
|
options: t.propertyTypeOptions,
|
|
@@ -5538,7 +5526,7 @@ const _e = ({
|
|
|
5538
5526
|
}
|
|
5539
5527
|
),
|
|
5540
5528
|
/* @__PURE__ */ r(
|
|
5541
|
-
|
|
5529
|
+
V,
|
|
5542
5530
|
{
|
|
5543
5531
|
label: "Transaction",
|
|
5544
5532
|
options: t.transactionTypeOptions,
|
|
@@ -5548,7 +5536,7 @@ const _e = ({
|
|
|
5548
5536
|
}
|
|
5549
5537
|
),
|
|
5550
5538
|
/* @__PURE__ */ r(
|
|
5551
|
-
|
|
5539
|
+
V,
|
|
5552
5540
|
{
|
|
5553
5541
|
label: "Location",
|
|
5554
5542
|
options: t.locationOptions,
|
|
@@ -5576,7 +5564,7 @@ const _e = ({
|
|
|
5576
5564
|
"aria-label": "Property search form",
|
|
5577
5565
|
children: /* @__PURE__ */ p("div", { className: "flex items-stretch bg-white border border-gray-300 shadow-xl relative z-10 px-3", children: [
|
|
5578
5566
|
/* @__PURE__ */ r(
|
|
5579
|
-
|
|
5567
|
+
V,
|
|
5580
5568
|
{
|
|
5581
5569
|
label: "Tipo de propiedad",
|
|
5582
5570
|
options: t.propertyTypeOptions,
|
|
@@ -5586,7 +5574,7 @@ const _e = ({
|
|
|
5586
5574
|
),
|
|
5587
5575
|
/* @__PURE__ */ r(ie, {}),
|
|
5588
5576
|
/* @__PURE__ */ r(
|
|
5589
|
-
|
|
5577
|
+
V,
|
|
5590
5578
|
{
|
|
5591
5579
|
label: "Transacción",
|
|
5592
5580
|
options: t.transactionTypeOptions,
|
|
@@ -5596,7 +5584,7 @@ const _e = ({
|
|
|
5596
5584
|
),
|
|
5597
5585
|
/* @__PURE__ */ r(ie, {}),
|
|
5598
5586
|
/* @__PURE__ */ r(
|
|
5599
|
-
|
|
5587
|
+
V,
|
|
5600
5588
|
{
|
|
5601
5589
|
label: "Ciudad",
|
|
5602
5590
|
options: t.locationOptions,
|
|
@@ -5632,7 +5620,7 @@ const _e = ({
|
|
|
5632
5620
|
"aria-label": "Property search form",
|
|
5633
5621
|
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: [
|
|
5634
5622
|
/* @__PURE__ */ r(
|
|
5635
|
-
|
|
5623
|
+
V,
|
|
5636
5624
|
{
|
|
5637
5625
|
label: "Property Type",
|
|
5638
5626
|
options: t.propertyTypeOptions,
|
|
@@ -5642,7 +5630,7 @@ const _e = ({
|
|
|
5642
5630
|
),
|
|
5643
5631
|
/* @__PURE__ */ r(ie, {}),
|
|
5644
5632
|
/* @__PURE__ */ r(
|
|
5645
|
-
|
|
5633
|
+
V,
|
|
5646
5634
|
{
|
|
5647
5635
|
label: "Transaction",
|
|
5648
5636
|
options: t.transactionTypeOptions,
|
|
@@ -5652,7 +5640,7 @@ const _e = ({
|
|
|
5652
5640
|
),
|
|
5653
5641
|
/* @__PURE__ */ r(ie, {}),
|
|
5654
5642
|
/* @__PURE__ */ r(
|
|
5655
|
-
|
|
5643
|
+
V,
|
|
5656
5644
|
{
|
|
5657
5645
|
label: "Location",
|
|
5658
5646
|
options: t.locationOptions,
|
|
@@ -5685,7 +5673,7 @@ const _e = ({
|
|
|
5685
5673
|
"aria-label": "Property search form",
|
|
5686
5674
|
children: /* @__PURE__ */ p("div", { className: "grid grid-cols-1 gap-3 rounded-2xl bg-white p-4 shadow-lg", children: [
|
|
5687
5675
|
/* @__PURE__ */ r(
|
|
5688
|
-
|
|
5676
|
+
V,
|
|
5689
5677
|
{
|
|
5690
5678
|
label: "Property Type",
|
|
5691
5679
|
options: t.propertyTypeOptions,
|
|
@@ -5695,7 +5683,7 @@ const _e = ({
|
|
|
5695
5683
|
}
|
|
5696
5684
|
),
|
|
5697
5685
|
/* @__PURE__ */ r(
|
|
5698
|
-
|
|
5686
|
+
V,
|
|
5699
5687
|
{
|
|
5700
5688
|
label: "Transaction",
|
|
5701
5689
|
options: t.transactionTypeOptions,
|
|
@@ -5705,7 +5693,7 @@ const _e = ({
|
|
|
5705
5693
|
}
|
|
5706
5694
|
),
|
|
5707
5695
|
/* @__PURE__ */ r(
|
|
5708
|
-
|
|
5696
|
+
V,
|
|
5709
5697
|
{
|
|
5710
5698
|
label: "Location",
|
|
5711
5699
|
options: t.locationOptions,
|
|
@@ -5733,7 +5721,7 @@ const _e = ({
|
|
|
5733
5721
|
"aria-label": "Property search form",
|
|
5734
5722
|
children: /* @__PURE__ */ p("div", { className: "flex items-stretch rounded-lg bg-white border border-gray-300 shadow-xl relative z-10 px-3", children: [
|
|
5735
5723
|
/* @__PURE__ */ r(
|
|
5736
|
-
|
|
5724
|
+
V,
|
|
5737
5725
|
{
|
|
5738
5726
|
label: "Tipo de propiedad",
|
|
5739
5727
|
options: t.propertyTypeOptions,
|
|
@@ -5744,7 +5732,7 @@ const _e = ({
|
|
|
5744
5732
|
),
|
|
5745
5733
|
/* @__PURE__ */ r(ie, {}),
|
|
5746
5734
|
/* @__PURE__ */ r(
|
|
5747
|
-
|
|
5735
|
+
V,
|
|
5748
5736
|
{
|
|
5749
5737
|
label: "Transacción",
|
|
5750
5738
|
options: t.transactionTypeOptions,
|
|
@@ -5754,7 +5742,7 @@ const _e = ({
|
|
|
5754
5742
|
),
|
|
5755
5743
|
/* @__PURE__ */ r(ie, {}),
|
|
5756
5744
|
/* @__PURE__ */ r(
|
|
5757
|
-
|
|
5745
|
+
V,
|
|
5758
5746
|
{
|
|
5759
5747
|
label: "Ciudad",
|
|
5760
5748
|
options: t.locationOptions,
|
|
@@ -5775,12 +5763,12 @@ const _e = ({
|
|
|
5775
5763
|
) })
|
|
5776
5764
|
] })
|
|
5777
5765
|
}
|
|
5778
|
-
),
|
|
5766
|
+
), et = {
|
|
5779
5767
|
minimal: $o,
|
|
5780
5768
|
modern: Vo,
|
|
5781
5769
|
luxury: Lo,
|
|
5782
5770
|
compact: Ao,
|
|
5783
|
-
card:
|
|
5771
|
+
card: jo
|
|
5784
5772
|
}, Fo = ({
|
|
5785
5773
|
onSubmit: e,
|
|
5786
5774
|
defaultValues: t,
|
|
@@ -5791,14 +5779,14 @@ const _e = ({
|
|
|
5791
5779
|
locationOptions: i,
|
|
5792
5780
|
buttonLabel: l
|
|
5793
5781
|
}) => {
|
|
5794
|
-
const [c, m] = v.useState(!1), [u, d] = v.useState(null), h =
|
|
5782
|
+
const [c, m] = v.useState(!1), [u, d] = v.useState(null), h = Ro({
|
|
5795
5783
|
onSubmit: e,
|
|
5796
5784
|
defaultValues: t,
|
|
5797
5785
|
propertyTypeOptions: n,
|
|
5798
5786
|
transactionTypeOptions: s,
|
|
5799
5787
|
locationOptions: i
|
|
5800
5788
|
}), {
|
|
5801
|
-
formData:
|
|
5789
|
+
formData: S,
|
|
5802
5790
|
setFormData: y,
|
|
5803
5791
|
handleSubmit: N,
|
|
5804
5792
|
propertyTypeOptions: g,
|
|
@@ -5810,36 +5798,36 @@ const _e = ({
|
|
|
5810
5798
|
try {
|
|
5811
5799
|
await N(I);
|
|
5812
5800
|
} catch (k) {
|
|
5813
|
-
const
|
|
5814
|
-
d(
|
|
5801
|
+
const $ = k instanceof Error ? k.message : "Search failed. Please try again.";
|
|
5802
|
+
d($), console.error("Search error:", k);
|
|
5815
5803
|
} finally {
|
|
5816
5804
|
m(!1);
|
|
5817
5805
|
}
|
|
5818
5806
|
},
|
|
5819
5807
|
[N]
|
|
5820
|
-
),
|
|
5808
|
+
), P = v.useCallback(
|
|
5821
5809
|
(I) => (k) => {
|
|
5822
|
-
d(null), y((
|
|
5810
|
+
d(null), y(($) => ({ ...$, [I]: k }));
|
|
5823
5811
|
},
|
|
5824
5812
|
[y]
|
|
5825
|
-
),
|
|
5813
|
+
), M = v.useMemo(
|
|
5826
5814
|
() => ({
|
|
5827
5815
|
propertyTypeOptions: g,
|
|
5828
5816
|
transactionTypeOptions: w,
|
|
5829
5817
|
locationOptions: T
|
|
5830
5818
|
}),
|
|
5831
5819
|
[g, w, T]
|
|
5832
|
-
),
|
|
5820
|
+
), A = et[a] || et.minimal;
|
|
5833
5821
|
return /* @__PURE__ */ p(se, { children: [
|
|
5834
5822
|
/* @__PURE__ */ r(
|
|
5835
|
-
|
|
5823
|
+
A,
|
|
5836
5824
|
{
|
|
5837
|
-
formData:
|
|
5838
|
-
options:
|
|
5825
|
+
formData: S,
|
|
5826
|
+
options: M,
|
|
5839
5827
|
isSubmitting: c,
|
|
5840
5828
|
error: u,
|
|
5841
5829
|
className: o,
|
|
5842
|
-
onFieldChange:
|
|
5830
|
+
onFieldChange: P,
|
|
5843
5831
|
onSubmit: E,
|
|
5844
5832
|
...(a === "modern" || a === "luxury") && { buttonLabel: l }
|
|
5845
5833
|
}
|
|
@@ -5847,10 +5835,10 @@ const _e = ({
|
|
|
5847
5835
|
a === "minimal" && /* @__PURE__ */ r(
|
|
5848
5836
|
Oo,
|
|
5849
5837
|
{
|
|
5850
|
-
formData:
|
|
5851
|
-
options:
|
|
5838
|
+
formData: S,
|
|
5839
|
+
options: M,
|
|
5852
5840
|
isSubmitting: c,
|
|
5853
|
-
onFieldChange:
|
|
5841
|
+
onFieldChange: P,
|
|
5854
5842
|
onSubmit: E
|
|
5855
5843
|
}
|
|
5856
5844
|
)
|
|
@@ -6133,8 +6121,8 @@ const sa = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6133
6121
|
o || (e(...a), o = !0, setTimeout(() => o = !1, t));
|
|
6134
6122
|
};
|
|
6135
6123
|
}
|
|
6136
|
-
},
|
|
6137
|
-
const e =
|
|
6124
|
+
}, St = Ae.createContext(null), ba = () => {
|
|
6125
|
+
const e = Tt(St);
|
|
6138
6126
|
if (!e)
|
|
6139
6127
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
6140
6128
|
return e;
|
|
@@ -6407,16 +6395,16 @@ const sa = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6407
6395
|
dark: Do,
|
|
6408
6396
|
corporate: Bo,
|
|
6409
6397
|
minimal: Ho
|
|
6410
|
-
}, Go = Le(), Wo = Le(), Uo = Le(), te =
|
|
6398
|
+
}, Go = Le(), Wo = Le(), Uo = Le(), te = zt(ze.light).on(Go, (e, t) => ze[t] || e).on(Wo, (e, t) => t).on(Uo, () => ze.light), xa = te.map((e) => e.name), ya = te.map((e) => e.colors);
|
|
6411
6399
|
te.map((e) => e.shapes);
|
|
6412
6400
|
te.map((e) => e.typography);
|
|
6413
6401
|
te.map((e) => e.spacing);
|
|
6414
6402
|
te.map((e) => e.shadows);
|
|
6415
6403
|
const va = ({ children: e }) => {
|
|
6416
6404
|
const o = {
|
|
6417
|
-
theme:
|
|
6405
|
+
theme: Pt(te)
|
|
6418
6406
|
};
|
|
6419
|
-
return /* @__PURE__ */ r(
|
|
6407
|
+
return /* @__PURE__ */ r(St.Provider, { value: o, children: e });
|
|
6420
6408
|
};
|
|
6421
6409
|
export {
|
|
6422
6410
|
te as $theme,
|
|
@@ -6424,20 +6412,20 @@ export {
|
|
|
6424
6412
|
xa as $themeName,
|
|
6425
6413
|
oa as AuthLayout,
|
|
6426
6414
|
K as Button,
|
|
6427
|
-
|
|
6428
|
-
|
|
6415
|
+
pt as Card,
|
|
6416
|
+
ht as CategoryChips,
|
|
6429
6417
|
Oe as Chip,
|
|
6430
6418
|
Yo as CompoundCard,
|
|
6431
6419
|
ta as ConfirmModal,
|
|
6432
6420
|
ra as DashboardLayout,
|
|
6433
|
-
|
|
6421
|
+
ft as DonutChart,
|
|
6434
6422
|
wo as EntityDirectory,
|
|
6435
6423
|
No as Header,
|
|
6436
6424
|
So as HeroBanner,
|
|
6437
6425
|
ne as Input,
|
|
6438
6426
|
aa as MarketingLayout,
|
|
6439
|
-
|
|
6440
|
-
|
|
6427
|
+
Fr as Modal,
|
|
6428
|
+
_r as ModalWithActions,
|
|
6441
6429
|
zo as MortgageCalculator,
|
|
6442
6430
|
Fe as PageLayout,
|
|
6443
6431
|
na as PropertyCard,
|
|
@@ -6445,14 +6433,14 @@ export {
|
|
|
6445
6433
|
Fo as SearchFeature,
|
|
6446
6434
|
Ve as Select,
|
|
6447
6435
|
sa as SkipLink,
|
|
6448
|
-
|
|
6436
|
+
R as Text,
|
|
6449
6437
|
va as ThemeProvider,
|
|
6450
6438
|
ma as a11y,
|
|
6451
6439
|
ma as accessibilityUtils,
|
|
6452
6440
|
pa as animationUtils,
|
|
6453
6441
|
pa as animations,
|
|
6454
6442
|
ca as breakpoints,
|
|
6455
|
-
|
|
6443
|
+
jt as calculateMortgage,
|
|
6456
6444
|
f as cn,
|
|
6457
6445
|
da as colorUtils,
|
|
6458
6446
|
da as colors,
|
|
@@ -6460,7 +6448,7 @@ export {
|
|
|
6460
6448
|
la as componentVariants,
|
|
6461
6449
|
Rt as countEntitiesByCategory,
|
|
6462
6450
|
ia as designSystem,
|
|
6463
|
-
|
|
6451
|
+
It as filterEntitiesByCategory,
|
|
6464
6452
|
me as formatCurrency,
|
|
6465
6453
|
Jo as formatPercentage,
|
|
6466
6454
|
fa as layout,
|
|
@@ -6472,7 +6460,7 @@ export {
|
|
|
6472
6460
|
Wo as setCustomTheme,
|
|
6473
6461
|
Go as setTheme,
|
|
6474
6462
|
ua as sizes,
|
|
6475
|
-
|
|
6463
|
+
Et as sortEntities,
|
|
6476
6464
|
ha as theme,
|
|
6477
6465
|
ha as themeUtils,
|
|
6478
6466
|
ea as useEntityFilter,
|