fiboui 2.9.5 → 2.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-Cc87LXic.js → client-CNrWulRU.js} +1742 -1638
- package/dist/content.d.ts +23 -1
- package/dist/content.js +10 -10
- package/dist/core.d.ts +41 -1
- package/dist/core.js +56 -54
- package/dist/{icons-By9BFp7V.js → icons-CUjbVN8n.js} +126 -112
- package/dist/{index-BJnYb_kw.js → index-BBa7p7cv.js} +6 -6
- package/dist/{index-T8F37_p4.js → index-Bcf-s8v0.js} +145 -138
- package/dist/{index-C-hvMzQd.js → index-COE2gXjP.js} +1 -1
- package/dist/{index-D5c1VXlN.js → index-CpUz5DNt.js} +39 -39
- package/dist/{index-BxYsYMal.js → index-Dm9qGQyL.js} +2 -2
- package/dist/index.d.ts +61 -2
- package/dist/index.js +1303 -1170
- package/dist/interactive.d.ts +11 -0
- package/dist/interactive.js +6 -6
- package/dist/layout.d.ts +11 -0
- package/dist/layout.js +3 -3
- package/dist/{metadata-BffL-8b9.js → metadata-CElV09j3.js} +20 -20
- package/dist/navigation.js +2 -2
- package/dist/{page-DbndR-7r.js → page-LLSMLaL2.js} +81 -82
- package/dist/server.d.ts +11 -0
- package/dist/server.js +840 -802
- package/dist/structure.d.ts +11 -0
- package/dist/structure.js +8 -8
- package/dist/style.css +1 -1
- package/dist/theme.js +3 -3
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var mr = Object.defineProperty;
|
|
2
2
|
var vr = (e, o, t) => o in e ? mr(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
3
3
|
var c = (e, o, t) => vr(e, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
-
import
|
|
4
|
+
import l, { cloneElement as wr, isValidElement as yr, createElement as kr, useRef as Bt, useState as me, useLayoutEffect as It, useContext as hi, createContext as _r, useMemo as Sr, useCallback as Cr } from "react";
|
|
5
5
|
import { jsx as Kt } from "react/jsx-runtime";
|
|
6
6
|
function Wt(e) {
|
|
7
7
|
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
|
|
@@ -19,8 +19,8 @@ function Tr({
|
|
|
19
19
|
}) {
|
|
20
20
|
if (!e || e.size === 0) return o;
|
|
21
21
|
const t = {};
|
|
22
|
-
e.forEach((
|
|
23
|
-
t[d] =
|
|
22
|
+
e.forEach((u, d) => {
|
|
23
|
+
t[d] = u.value;
|
|
24
24
|
});
|
|
25
25
|
const i = [], r = Wt(t.translateX), n = Wt(t.translateY), s = Wt(t.scale), f = Wt(t.rotate);
|
|
26
26
|
if (r !== void 0 && i.push(`translateX(${r}px)`), n !== void 0 && i.push(`translateY(${n}px)`), s !== void 0 && i.push(`scale(${s})`), f !== void 0 && i.push(`rotate(${f}deg)`), i.length === 0) return o;
|
|
@@ -41,10 +41,10 @@ function Er({
|
|
|
41
41
|
"min-w-0",
|
|
42
42
|
o ? "fibo-motion-force" : ""
|
|
43
43
|
].filter(Boolean).join(" ");
|
|
44
|
-
return
|
|
44
|
+
return l.createElement("div", { className: r, style: t, "data-fibo-reveal": e }, i);
|
|
45
45
|
}
|
|
46
46
|
function Ar({ children: e }) {
|
|
47
|
-
return
|
|
47
|
+
return l.createElement(
|
|
48
48
|
"div",
|
|
49
49
|
{ "data-fibo-scroll-progress": "1", style: { display: "contents" } },
|
|
50
50
|
e
|
|
@@ -57,9 +57,9 @@ function Br(e) {
|
|
|
57
57
|
return !e || typeof e != "object" || Array.isArray(e) || "value" in e && typeof e.subscribe == "function" ? !1 : Object.prototype.hasOwnProperty.call(e, "show");
|
|
58
58
|
}
|
|
59
59
|
function se(e, o) {
|
|
60
|
-
return Rr(e) ?
|
|
60
|
+
return Rr(e) ? l.createElement(l.Fragment, null, o) : null;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function _c(e) {
|
|
63
63
|
if (Br(e))
|
|
64
64
|
return se(e.show, e.children);
|
|
65
65
|
let o = e;
|
|
@@ -85,19 +85,19 @@ function Nr(e) {
|
|
|
85
85
|
return vo(e);
|
|
86
86
|
}
|
|
87
87
|
function vo(e) {
|
|
88
|
-
return e == null || typeof e == "boolean" ? null : di(e) ? e.build() : Fr(e) ?
|
|
88
|
+
return e == null || typeof e == "boolean" ? null : di(e) ? e.build() : Fr(e) ? l.createElement(Ir, {
|
|
89
89
|
signal: e,
|
|
90
90
|
builder: Nr
|
|
91
|
-
}) : (
|
|
91
|
+
}) : (l.isValidElement(e), e);
|
|
92
92
|
}
|
|
93
93
|
function Ie(e) {
|
|
94
94
|
return typeof e == "string" || typeof e == "number";
|
|
95
95
|
}
|
|
96
96
|
function ve(e, o) {
|
|
97
|
-
return
|
|
97
|
+
return l.isValidElement(e) && Ie(e.key) && e.key !== "" ? e.key : `.$fibo-${o}`;
|
|
98
98
|
}
|
|
99
99
|
function pi(e, o) {
|
|
100
|
-
return !
|
|
100
|
+
return !l.isValidElement(e) || Ie(e.key) && e.key !== "" ? e : l.cloneElement(e, { key: ve(e, o) });
|
|
101
101
|
}
|
|
102
102
|
const $r = 32;
|
|
103
103
|
function we(e, o, t = 0) {
|
|
@@ -114,7 +114,7 @@ function we(e, o, t = 0) {
|
|
|
114
114
|
o.push(vo(e));
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function zt(e) {
|
|
118
118
|
if (e == null)
|
|
119
119
|
return [];
|
|
120
120
|
const o = typeof e == "function" ? e() : e, t = [];
|
|
@@ -359,9 +359,9 @@ var Xe;
|
|
|
359
359
|
(function(o) {
|
|
360
360
|
var t = typeof globalThis == "object" ? globalThis : typeof He == "object" ? He : typeof self == "object" ? self : typeof this == "object" ? this : f(), i = r(e);
|
|
361
361
|
typeof t.Reflect < "u" && (i = r(t.Reflect, i)), o(i, t), typeof t.Reflect > "u" && (t.Reflect = e);
|
|
362
|
-
function r(a,
|
|
362
|
+
function r(a, u) {
|
|
363
363
|
return function(d, g) {
|
|
364
|
-
Object.defineProperty(a, d, { configurable: !0, writable: !0, value: g }),
|
|
364
|
+
Object.defineProperty(a, d, { configurable: !0, writable: !0, value: g }), u && u(d, g);
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
function n() {
|
|
@@ -380,7 +380,7 @@ var Xe;
|
|
|
380
380
|
return n() || s();
|
|
381
381
|
}
|
|
382
382
|
})(function(o, t) {
|
|
383
|
-
var i = Object.prototype.hasOwnProperty, r = typeof Symbol == "function", n = r && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", s = r && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", f = typeof Object.create == "function", a = { __proto__: [] } instanceof Array,
|
|
383
|
+
var i = Object.prototype.hasOwnProperty, r = typeof Symbol == "function", n = r && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", s = r && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", f = typeof Object.create == "function", a = { __proto__: [] } instanceof Array, u = !f && !a, d = {
|
|
384
384
|
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
385
385
|
create: f ? function() {
|
|
386
386
|
return $o(/* @__PURE__ */ Object.create(null));
|
|
@@ -389,24 +389,24 @@ var Xe;
|
|
|
389
389
|
} : function() {
|
|
390
390
|
return $o({});
|
|
391
391
|
},
|
|
392
|
-
has:
|
|
392
|
+
has: u ? function(b, p) {
|
|
393
393
|
return i.call(b, p);
|
|
394
394
|
} : function(b, p) {
|
|
395
395
|
return p in b;
|
|
396
396
|
},
|
|
397
|
-
get:
|
|
397
|
+
get: u ? function(b, p) {
|
|
398
398
|
return i.call(b, p) ? b[p] : void 0;
|
|
399
399
|
} : function(b, p) {
|
|
400
400
|
return b[p];
|
|
401
401
|
}
|
|
402
|
-
}, g = Object.getPrototypeOf(Function), h = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Pt(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Ot(), S = typeof WeakMap == "function" ? WeakMap :
|
|
402
|
+
}, g = Object.getPrototypeOf(Function), h = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Pt(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Ot(), S = typeof WeakMap == "function" ? WeakMap : Zo(), y = r ? Symbol.for("@reflect-metadata:registry") : void 0, x = $t(), v = Mt(x);
|
|
403
403
|
function T(b, p, m, _) {
|
|
404
404
|
if (N(m)) {
|
|
405
405
|
if (!Eo(b))
|
|
406
406
|
throw new TypeError();
|
|
407
|
-
if (!
|
|
407
|
+
if (!ht(p))
|
|
408
408
|
throw new TypeError();
|
|
409
|
-
return
|
|
409
|
+
return eo(b, p);
|
|
410
410
|
} else {
|
|
411
411
|
if (!Eo(b))
|
|
412
412
|
throw new TypeError();
|
|
@@ -486,11 +486,11 @@ var Xe;
|
|
|
486
486
|
return N(_) ? !1 : _.OrdinaryDeleteMetadata(b, p, m);
|
|
487
487
|
}
|
|
488
488
|
o("deleteMetadata", K);
|
|
489
|
-
function
|
|
489
|
+
function eo(b, p) {
|
|
490
490
|
for (var m = b.length - 1; m >= 0; --m) {
|
|
491
491
|
var _ = b[m], L = _(p);
|
|
492
492
|
if (!N(L) && !q(L)) {
|
|
493
|
-
if (!
|
|
493
|
+
if (!ht(L))
|
|
494
494
|
throw new TypeError();
|
|
495
495
|
p = L;
|
|
496
496
|
}
|
|
@@ -499,7 +499,7 @@ var Xe;
|
|
|
499
499
|
}
|
|
500
500
|
function po(b, p, m, _) {
|
|
501
501
|
for (var L = b.length - 1; L >= 0; --L) {
|
|
502
|
-
var
|
|
502
|
+
var io = b[L], ao = io(p, m, _);
|
|
503
503
|
if (!N(ao) && !q(ao)) {
|
|
504
504
|
if (!Y(ao))
|
|
505
505
|
throw new TypeError();
|
|
@@ -512,7 +512,7 @@ var Xe;
|
|
|
512
512
|
var _ = fo(b, p, m);
|
|
513
513
|
if (_)
|
|
514
514
|
return !0;
|
|
515
|
-
var L =
|
|
515
|
+
var L = qo(p);
|
|
516
516
|
return q(L) ? !1 : no(b, L, m);
|
|
517
517
|
}
|
|
518
518
|
function fo(b, p, m) {
|
|
@@ -528,7 +528,7 @@ var Xe;
|
|
|
528
528
|
var _ = fo(b, p, m);
|
|
529
529
|
if (_)
|
|
530
530
|
return oo(b, p, m);
|
|
531
|
-
var L =
|
|
531
|
+
var L = qo(p);
|
|
532
532
|
if (!q(L))
|
|
533
533
|
return so(b, L, m);
|
|
534
534
|
}
|
|
@@ -552,7 +552,7 @@ var Xe;
|
|
|
552
552
|
L.OrdinaryDefineOwnMetadata(b, p, m, _);
|
|
553
553
|
}
|
|
554
554
|
function So(b, p) {
|
|
555
|
-
var m = yo(b, p), _ =
|
|
555
|
+
var m = yo(b, p), _ = qo(b);
|
|
556
556
|
if (_ === null)
|
|
557
557
|
return m;
|
|
558
558
|
var L = So(_, p);
|
|
@@ -560,13 +560,13 @@ var Xe;
|
|
|
560
560
|
return m;
|
|
561
561
|
if (m.length <= 0)
|
|
562
562
|
return L;
|
|
563
|
-
for (var
|
|
564
|
-
var E = z[D], B =
|
|
565
|
-
B || (
|
|
563
|
+
for (var io = new w(), ao = [], D = 0, z = m; D < z.length; D++) {
|
|
564
|
+
var E = z[D], B = io.has(E);
|
|
565
|
+
B || (io.add(E), ao.push(E));
|
|
566
566
|
}
|
|
567
567
|
for (var F = 0, G = L; F < G.length; F++) {
|
|
568
|
-
var E = G[F], B =
|
|
569
|
-
B || (
|
|
568
|
+
var E = G[F], B = io.has(E);
|
|
569
|
+
B || (io.add(E), ao.push(E));
|
|
570
570
|
}
|
|
571
571
|
return ao;
|
|
572
572
|
}
|
|
@@ -626,7 +626,7 @@ var Xe;
|
|
|
626
626
|
case 5:
|
|
627
627
|
return b;
|
|
628
628
|
}
|
|
629
|
-
var m = "string", _ =
|
|
629
|
+
var m = "string", _ = dt(b, n);
|
|
630
630
|
if (_ !== void 0) {
|
|
631
631
|
var L = _.call(b, m);
|
|
632
632
|
if (Y(L))
|
|
@@ -638,9 +638,9 @@ var Xe;
|
|
|
638
638
|
function Q(b, p) {
|
|
639
639
|
var m, _, L;
|
|
640
640
|
{
|
|
641
|
-
var
|
|
642
|
-
if (wo(
|
|
643
|
-
var _ =
|
|
641
|
+
var io = b.toString;
|
|
642
|
+
if (wo(io)) {
|
|
643
|
+
var _ = io.call(b);
|
|
644
644
|
if (!Y(_))
|
|
645
645
|
return _;
|
|
646
646
|
}
|
|
@@ -669,7 +669,7 @@ var Xe;
|
|
|
669
669
|
function wo(b) {
|
|
670
670
|
return typeof b == "function";
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function ht(b) {
|
|
673
673
|
return typeof b == "function";
|
|
674
674
|
}
|
|
675
675
|
function Ft(b) {
|
|
@@ -682,10 +682,10 @@ var Xe;
|
|
|
682
682
|
return !1;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function Ko(b, p) {
|
|
686
686
|
return b === p || b !== b && p !== p;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function dt(b, p) {
|
|
689
689
|
var m = b[p];
|
|
690
690
|
if (m != null) {
|
|
691
691
|
if (!wo(m))
|
|
@@ -693,8 +693,8 @@ var Xe;
|
|
|
693
693
|
return m;
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
var p =
|
|
696
|
+
function pt(b) {
|
|
697
|
+
var p = dt(b, s);
|
|
698
698
|
if (!wo(p))
|
|
699
699
|
throw new TypeError();
|
|
700
700
|
var m = p.call(b);
|
|
@@ -702,18 +702,18 @@ var Xe;
|
|
|
702
702
|
throw new TypeError();
|
|
703
703
|
return m;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function xt(b) {
|
|
706
706
|
return b.value;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function gt(b) {
|
|
709
709
|
var p = b.next();
|
|
710
710
|
return p.done ? !1 : p;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function mt(b) {
|
|
713
713
|
var p = b.return;
|
|
714
714
|
p && p.call(b);
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function qo(b) {
|
|
717
717
|
var p = Object.getPrototypeOf(b);
|
|
718
718
|
if (typeof b != "function" || b === g || p !== g)
|
|
719
719
|
return p;
|
|
@@ -726,14 +726,14 @@ var Xe;
|
|
|
726
726
|
function Nt() {
|
|
727
727
|
var b;
|
|
728
728
|
!N(y) && typeof t.Reflect < "u" && !(y in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (b = Lt(t.Reflect));
|
|
729
|
-
var p, m, _, L = new S(),
|
|
729
|
+
var p, m, _, L = new S(), io = {
|
|
730
730
|
registerProvider: ao,
|
|
731
731
|
getProvider: z,
|
|
732
732
|
setProvider: B
|
|
733
733
|
};
|
|
734
|
-
return
|
|
734
|
+
return io;
|
|
735
735
|
function ao(F) {
|
|
736
|
-
if (!Object.isExtensible(
|
|
736
|
+
if (!Object.isExtensible(io))
|
|
737
737
|
throw new Error("Cannot add provider to a frozen registry.");
|
|
738
738
|
switch (!0) {
|
|
739
739
|
case b === F:
|
|
@@ -761,13 +761,13 @@ var Xe;
|
|
|
761
761
|
if (m.isProviderFor(F, G))
|
|
762
762
|
return p;
|
|
763
763
|
if (!N(_))
|
|
764
|
-
for (var Z =
|
|
765
|
-
var
|
|
766
|
-
if (!
|
|
764
|
+
for (var Z = pt(_); ; ) {
|
|
765
|
+
var ro = gt(Z);
|
|
766
|
+
if (!ro)
|
|
767
767
|
return;
|
|
768
|
-
var ko =
|
|
768
|
+
var ko = xt(ro);
|
|
769
769
|
if (ko.isProviderFor(F, G))
|
|
770
|
-
return
|
|
770
|
+
return mt(Z), ko;
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
}
|
|
@@ -775,8 +775,8 @@ var Xe;
|
|
|
775
775
|
return b;
|
|
776
776
|
}
|
|
777
777
|
function z(F, G) {
|
|
778
|
-
var Z = L.get(F),
|
|
779
|
-
return N(Z) || (
|
|
778
|
+
var Z = L.get(F), ro;
|
|
779
|
+
return N(Z) || (ro = Z.get(G)), N(ro) && (ro = D(F, G), N(ro) || (N(Z) && (Z = new h(), L.set(F, Z)), Z.set(G, ro))), ro;
|
|
780
780
|
}
|
|
781
781
|
function E(F) {
|
|
782
782
|
if (N(F))
|
|
@@ -786,9 +786,9 @@ var Xe;
|
|
|
786
786
|
function B(F, G, Z) {
|
|
787
787
|
if (!E(Z))
|
|
788
788
|
throw new Error("Metadata provider not registered.");
|
|
789
|
-
var
|
|
790
|
-
if (
|
|
791
|
-
if (!N(
|
|
789
|
+
var ro = z(F, G);
|
|
790
|
+
if (ro !== Z) {
|
|
791
|
+
if (!N(ro))
|
|
792
792
|
return !1;
|
|
793
793
|
var ko = L.get(F);
|
|
794
794
|
N(ko) && (ko = new h(), L.set(F, ko)), ko.set(G, Z);
|
|
@@ -813,7 +813,7 @@ var Xe;
|
|
|
813
813
|
},
|
|
814
814
|
OrdinaryDefineOwnMetadata: ao,
|
|
815
815
|
OrdinaryHasOwnMetadata: L,
|
|
816
|
-
OrdinaryGetOwnMetadata:
|
|
816
|
+
OrdinaryGetOwnMetadata: io,
|
|
817
817
|
OrdinaryOwnMetadataKeys: D,
|
|
818
818
|
OrdinaryDeleteMetadata: z
|
|
819
819
|
};
|
|
@@ -825,14 +825,14 @@ var Xe;
|
|
|
825
825
|
return;
|
|
826
826
|
G = new h(), p.set(E, G), Z = !0;
|
|
827
827
|
}
|
|
828
|
-
var
|
|
829
|
-
if (N(
|
|
828
|
+
var ro = G.get(B);
|
|
829
|
+
if (N(ro)) {
|
|
830
830
|
if (!F)
|
|
831
831
|
return;
|
|
832
|
-
if (
|
|
832
|
+
if (ro = new h(), G.set(B, ro), !b.setProvider(E, B, m))
|
|
833
833
|
throw G.delete(B), Z && p.delete(E), new Error("Wrong provider for target.");
|
|
834
834
|
}
|
|
835
|
-
return
|
|
835
|
+
return ro;
|
|
836
836
|
}
|
|
837
837
|
function L(E, B, F) {
|
|
838
838
|
var G = _(
|
|
@@ -843,7 +843,7 @@ var Xe;
|
|
|
843
843
|
);
|
|
844
844
|
return N(G) ? !1 : Fo(G.has(E));
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function io(E, B, F) {
|
|
847
847
|
var G = _(
|
|
848
848
|
B,
|
|
849
849
|
F,
|
|
@@ -871,16 +871,16 @@ var Xe;
|
|
|
871
871
|
);
|
|
872
872
|
if (N(G))
|
|
873
873
|
return F;
|
|
874
|
-
for (var Z = G.keys(),
|
|
875
|
-
var We =
|
|
874
|
+
for (var Z = G.keys(), ro = pt(Z), ko = 0; ; ) {
|
|
875
|
+
var We = gt(ro);
|
|
876
876
|
if (!We)
|
|
877
877
|
return F.length = ko, F;
|
|
878
|
-
var xr =
|
|
878
|
+
var xr = xt(We);
|
|
879
879
|
try {
|
|
880
880
|
F[ko] = xr;
|
|
881
881
|
} catch (gr) {
|
|
882
882
|
try {
|
|
883
|
-
|
|
883
|
+
mt(ro);
|
|
884
884
|
} finally {
|
|
885
885
|
throw gr;
|
|
886
886
|
}
|
|
@@ -905,7 +905,7 @@ var Xe;
|
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
function Lt(b) {
|
|
908
|
-
var p = b.defineMetadata, m = b.hasOwnMetadata, _ = b.getOwnMetadata, L = b.getOwnMetadataKeys,
|
|
908
|
+
var p = b.defineMetadata, m = b.hasOwnMetadata, _ = b.getOwnMetadata, L = b.getOwnMetadataKeys, io = b.deleteMetadata, ao = new S(), D = {
|
|
909
909
|
isProviderFor: function(z, E) {
|
|
910
910
|
var B = ao.get(z);
|
|
911
911
|
return !N(B) && B.has(E) ? !0 : L(z, E).length ? (N(B) && (B = new w(), ao.set(z, B)), B.add(E), !0) : !1;
|
|
@@ -914,7 +914,7 @@ var Xe;
|
|
|
914
914
|
OrdinaryHasOwnMetadata: m,
|
|
915
915
|
OrdinaryGetOwnMetadata: _,
|
|
916
916
|
OrdinaryOwnMetadataKeys: L,
|
|
917
|
-
OrdinaryDeleteMetadata:
|
|
917
|
+
OrdinaryDeleteMetadata: io
|
|
918
918
|
};
|
|
919
919
|
return D;
|
|
920
920
|
}
|
|
@@ -993,7 +993,7 @@ var Xe;
|
|
|
993
993
|
if (E >= 0) {
|
|
994
994
|
for (var B = this._keys.length, F = E + 1; F < B; F++)
|
|
995
995
|
this._keys[F - 1] = this._keys[F], this._values[F - 1] = this._values[F];
|
|
996
|
-
return this._keys.length--, this._values.length--,
|
|
996
|
+
return this._keys.length--, this._values.length--, Ko(z, this._cacheKey) && (this._cacheKey = b, this._cacheIndex = -2), !0;
|
|
997
997
|
}
|
|
998
998
|
return !1;
|
|
999
999
|
}, D.prototype.clear = function() {
|
|
@@ -1001,7 +1001,7 @@ var Xe;
|
|
|
1001
1001
|
}, D.prototype.keys = function() {
|
|
1002
1002
|
return new m(this._keys, this._values, L);
|
|
1003
1003
|
}, D.prototype.values = function() {
|
|
1004
|
-
return new m(this._keys, this._values,
|
|
1004
|
+
return new m(this._keys, this._values, io);
|
|
1005
1005
|
}, D.prototype.entries = function() {
|
|
1006
1006
|
return new m(this._keys, this._values, ao);
|
|
1007
1007
|
}, D.prototype["@@iterator"] = function() {
|
|
@@ -1009,10 +1009,10 @@ var Xe;
|
|
|
1009
1009
|
}, D.prototype[s] = function() {
|
|
1010
1010
|
return this.entries();
|
|
1011
1011
|
}, D.prototype._find = function(z, E) {
|
|
1012
|
-
if (!
|
|
1012
|
+
if (!Ko(this._cacheKey, z)) {
|
|
1013
1013
|
this._cacheIndex = -1;
|
|
1014
1014
|
for (var B = 0; B < this._keys.length; B++)
|
|
1015
|
-
if (
|
|
1015
|
+
if (Ko(this._keys[B], z)) {
|
|
1016
1016
|
this._cacheIndex = B;
|
|
1017
1017
|
break;
|
|
1018
1018
|
}
|
|
@@ -1025,7 +1025,7 @@ var Xe;
|
|
|
1025
1025
|
function L(D, z) {
|
|
1026
1026
|
return D;
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function io(D, z) {
|
|
1029
1029
|
return z;
|
|
1030
1030
|
}
|
|
1031
1031
|
function ao(D, z) {
|
|
@@ -1068,7 +1068,7 @@ var Xe;
|
|
|
1068
1068
|
);
|
|
1069
1069
|
return b;
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Zo() {
|
|
1072
1072
|
var b = 16, p = d.create(), m = _();
|
|
1073
1073
|
return (
|
|
1074
1074
|
/** @class */
|
|
@@ -1124,7 +1124,7 @@ var Xe;
|
|
|
1124
1124
|
}
|
|
1125
1125
|
return z[m];
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function io(z, E) {
|
|
1128
1128
|
for (var B = 0; B < E; ++B)
|
|
1129
1129
|
z[B] = Math.random() * 255 | 0;
|
|
1130
1130
|
return z;
|
|
@@ -1132,9 +1132,9 @@ var Xe;
|
|
|
1132
1132
|
function ao(z) {
|
|
1133
1133
|
if (typeof Uint8Array == "function") {
|
|
1134
1134
|
var E = new Uint8Array(z);
|
|
1135
|
-
return typeof crypto < "u" ? crypto.getRandomValues(E) : typeof msCrypto < "u" ? msCrypto.getRandomValues(E) :
|
|
1135
|
+
return typeof crypto < "u" ? crypto.getRandomValues(E) : typeof msCrypto < "u" ? msCrypto.getRandomValues(E) : io(E, z), E;
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1137
|
+
return io(new Array(z), z);
|
|
1138
1138
|
}
|
|
1139
1139
|
function D() {
|
|
1140
1140
|
var z = ao(b);
|
|
@@ -1208,15 +1208,15 @@ function Kr() {
|
|
|
1208
1208
|
return null;
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
|
-
const
|
|
1211
|
+
const vt = Kr(), wt = [], Bo = class Bo {
|
|
1212
1212
|
constructor() {
|
|
1213
1213
|
c(this, "services", /* @__PURE__ */ new Map());
|
|
1214
1214
|
c(this, "resolving", /* @__PURE__ */ new Set());
|
|
1215
1215
|
}
|
|
1216
1216
|
static getInstance() {
|
|
1217
|
-
const o =
|
|
1217
|
+
const o = vt == null ? void 0 : vt.getStore();
|
|
1218
1218
|
if (o) return o;
|
|
1219
|
-
const t =
|
|
1219
|
+
const t = wt[wt.length - 1];
|
|
1220
1220
|
return t || (Bo.instance || (Bo.instance = new Bo()), Bo.instance);
|
|
1221
1221
|
}
|
|
1222
1222
|
/**
|
|
@@ -1226,11 +1226,11 @@ const mt = Kr(), vt = [], Bo = class Bo {
|
|
|
1226
1226
|
*/
|
|
1227
1227
|
static run(o) {
|
|
1228
1228
|
const t = Bo.getInstance().fork(), i = () => {
|
|
1229
|
-
|
|
1229
|
+
wt.push(t);
|
|
1230
1230
|
let r = !0;
|
|
1231
1231
|
const n = () => {
|
|
1232
|
-
const s =
|
|
1233
|
-
s >= 0 &&
|
|
1232
|
+
const s = wt.lastIndexOf(t);
|
|
1233
|
+
s >= 0 && wt.splice(s, 1);
|
|
1234
1234
|
try {
|
|
1235
1235
|
t.clear();
|
|
1236
1236
|
} catch {
|
|
@@ -1248,7 +1248,7 @@ const mt = Kr(), vt = [], Bo = class Bo {
|
|
|
1248
1248
|
r && n();
|
|
1249
1249
|
}
|
|
1250
1250
|
};
|
|
1251
|
-
return
|
|
1251
|
+
return vt ? vt.run(t, i) : i();
|
|
1252
1252
|
}
|
|
1253
1253
|
fork() {
|
|
1254
1254
|
const o = new Bo();
|
|
@@ -1323,15 +1323,15 @@ const mt = Kr(), vt = [], Bo = class Bo {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
const r = Math.max(o.length, t.length, i.length), n = [];
|
|
1325
1325
|
for (let s = 0; s < r; s++) {
|
|
1326
|
-
const f = i[s], a = f !== void 0 && !Yr(f) ? f : void 0,
|
|
1327
|
-
if (
|
|
1326
|
+
const f = i[s], a = f !== void 0 && !Yr(f) ? f : void 0, u = t[s] ?? a;
|
|
1327
|
+
if (u === void 0) {
|
|
1328
1328
|
if (s >= o.length) {
|
|
1329
1329
|
n.push(void 0);
|
|
1330
1330
|
continue;
|
|
1331
1331
|
}
|
|
1332
1332
|
throw new Error(`Cannot resolve parameter ${s} of ${o.name || "anonymous"}`);
|
|
1333
1333
|
}
|
|
1334
|
-
n.push(this.resolve(
|
|
1334
|
+
n.push(this.resolve(u));
|
|
1335
1335
|
}
|
|
1336
1336
|
return new o(...n);
|
|
1337
1337
|
}
|
|
@@ -1578,7 +1578,7 @@ function Qr() {
|
|
|
1578
1578
|
return null;
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
const
|
|
1581
|
+
const yt = Qr(), bo = class bo {
|
|
1582
1582
|
constructor() {
|
|
1583
1583
|
c(this, "sheet", null);
|
|
1584
1584
|
c(this, "cache", /* @__PURE__ */ new Map());
|
|
@@ -1588,7 +1588,7 @@ const wt = Qr(), bo = class bo {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
static getInstance() {
|
|
1590
1590
|
if (typeof document > "u") {
|
|
1591
|
-
const o =
|
|
1591
|
+
const o = yt == null ? void 0 : yt.getStore();
|
|
1592
1592
|
if (o) return o;
|
|
1593
1593
|
const t = bo.scopeStack[bo.scopeStack.length - 1];
|
|
1594
1594
|
if (t) return t;
|
|
@@ -1604,8 +1604,8 @@ const wt = Qr(), bo = class bo {
|
|
|
1604
1604
|
if (typeof document < "u")
|
|
1605
1605
|
return o();
|
|
1606
1606
|
const t = new bo();
|
|
1607
|
-
if (
|
|
1608
|
-
return
|
|
1607
|
+
if (yt)
|
|
1608
|
+
return yt.run(t, o);
|
|
1609
1609
|
bo.scopeStack.push(t);
|
|
1610
1610
|
let i = !0;
|
|
1611
1611
|
const r = () => {
|
|
@@ -1713,8 +1713,8 @@ const wt = Qr(), bo = class bo {
|
|
|
1713
1713
|
const n = `${r ? "group:" : ""}${o}:${t}:${i}`;
|
|
1714
1714
|
if (this.cache.has(n))
|
|
1715
1715
|
return this.cache.get(n);
|
|
1716
|
-
const s = `fibo-ps-${ce(n)}`, f = t === "color" || t === "font-size" || t === "font-weight" || t === "font-family" || t === "font-style" || t === "line-height" || t === "letter-spacing" || t === "text-align" || t === "text-decoration" || t === "text-transform", a = `.${s}:${o}`,
|
|
1717
|
-
return this.insert(
|
|
1716
|
+
const s = `fibo-ps-${ce(n)}`, f = t === "color" || t === "font-size" || t === "font-weight" || t === "font-family" || t === "font-style" || t === "line-height" || t === "letter-spacing" || t === "text-align" || t === "text-decoration" || t === "text-transform", a = `.${s}:${o}`, u = r ? `.group:${o} .${s} { ${t}: ${i} !important; }` : f ? `${a}, ${a} * { ${t}: ${i} !important; }` : `${a} { ${t}: ${i} !important; }`;
|
|
1717
|
+
return this.insert(u), this.cache.set(n, s), s;
|
|
1718
1718
|
}
|
|
1719
1719
|
registerGroupPseudo(o, t, i, r) {
|
|
1720
1720
|
return this.registerPseudo(t, i, r, !0);
|
|
@@ -1740,7 +1740,7 @@ function mi() {
|
|
|
1740
1740
|
function Fe(e) {
|
|
1741
1741
|
return e.replace(/<\/style/gi, "<\\/style");
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function Sc() {
|
|
1744
1744
|
const o = `<style id="fibo-dynamic-styles" data-fibo="1">${Fe(mi())}</style>`;
|
|
1745
1745
|
return typeof document > "u" && vi(), o;
|
|
1746
1746
|
}
|
|
@@ -1750,7 +1750,7 @@ function vi() {
|
|
|
1750
1750
|
function wi() {
|
|
1751
1751
|
Ro();
|
|
1752
1752
|
const e = Fe(mi());
|
|
1753
|
-
return typeof document > "u" && vi(),
|
|
1753
|
+
return typeof document > "u" && vi(), l.createElement("style", {
|
|
1754
1754
|
id: "fibo-dynamic-styles",
|
|
1755
1755
|
"data-fibo": "1",
|
|
1756
1756
|
suppressHydrationWarning: !0,
|
|
@@ -1758,7 +1758,7 @@ function wi() {
|
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
1760
|
function tn() {
|
|
1761
|
-
return Ro(),
|
|
1761
|
+
return Ro(), l.createElement("style", {
|
|
1762
1762
|
id: "fibo-motion-presets",
|
|
1763
1763
|
"data-fibo-motion": "1",
|
|
1764
1764
|
dangerouslySetInnerHTML: { __html: Fe(ke) }
|
|
@@ -1768,23 +1768,23 @@ function en(e, o = {}) {
|
|
|
1768
1768
|
const { styles: t = !0, meta: i } = o;
|
|
1769
1769
|
function r() {
|
|
1770
1770
|
const n = vo(e()), s = [];
|
|
1771
|
-
return typeof (i == null ? void 0 : i.title) == "string" && i.title.length > 0 && s.push(
|
|
1772
|
-
|
|
1771
|
+
return typeof (i == null ? void 0 : i.title) == "string" && i.title.length > 0 && s.push(l.createElement("title", { key: "fibo-title" }, i.title)), typeof (i == null ? void 0 : i.description) == "string" && i.description.length > 0 && s.push(
|
|
1772
|
+
l.createElement("meta", {
|
|
1773
1773
|
key: "fibo-description",
|
|
1774
1774
|
name: "description",
|
|
1775
1775
|
content: i.description
|
|
1776
1776
|
})
|
|
1777
|
-
), s.push(n), t && s.push(
|
|
1777
|
+
), s.push(n), t && s.push(l.createElement(wi)), l.createElement(l.Fragment, null, ...s);
|
|
1778
1778
|
}
|
|
1779
1779
|
return r.displayName = "FiboPage", i && (r.meta = i), r;
|
|
1780
1780
|
}
|
|
1781
|
-
const
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1784
|
-
|
|
1781
|
+
const Cc = en;
|
|
1782
|
+
function zc(e) {
|
|
1783
|
+
return l.createElement(
|
|
1784
|
+
l.Fragment,
|
|
1785
1785
|
null,
|
|
1786
1786
|
vo(e),
|
|
1787
|
-
|
|
1787
|
+
l.createElement(wi)
|
|
1788
1788
|
);
|
|
1789
1789
|
}
|
|
1790
1790
|
const yi = {
|
|
@@ -1929,7 +1929,7 @@ function gn(e) {
|
|
|
1929
1929
|
const o = e.match(/oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)/);
|
|
1930
1930
|
if (!o)
|
|
1931
1931
|
return e;
|
|
1932
|
-
const [, t, i, r] = o, n = parseFloat(t), s = parseFloat(i), f = parseFloat(r), a = s * Math.cos(f * Math.PI / 180),
|
|
1932
|
+
const [, t, i, r] = o, n = parseFloat(t), s = parseFloat(i), f = parseFloat(r), a = s * Math.cos(f * Math.PI / 180), u = s * Math.sin(f * Math.PI / 180), d = n + 0.3963377774 * a + 0.2158037573 * u, g = n - 0.1055613458 * a - 0.0638541728 * u, h = n - 0.0894841775 * a - 1.291485548 * u, w = d * d * d, S = g * g * g, y = h * h * h, x = 4.0767416621 * w - 3.3077115913 * S + 0.2309699292 * y, v = -1.2684380046 * w + 2.6097574011 * S - 0.3413193965 * y, T = -0.0041960863 * w - 0.7034186147 * S + 1.707614701 * y, O = (k) => k >= 31308e-7 ? 1.055 * k ** (1 / 2.4) - 0.055 : 12.92 * k, I = Math.max(0, Math.min(1, O(x))), $ = Math.max(0, Math.min(1, O(v))), M = Math.max(0, Math.min(1, O(T))), W = (k) => {
|
|
1933
1933
|
var V;
|
|
1934
1934
|
const H = (V = Math.round(k * 255).toString(16)) == null ? void 0 : V.toUpperCase();
|
|
1935
1935
|
return H.length === 1 ? `0${H}` : H;
|
|
@@ -1945,11 +1945,11 @@ function mn(e) {
|
|
|
1945
1945
|
continue;
|
|
1946
1946
|
const s = n.match(/^--color-([a-z0-9\-]+): (oklch\([^)]+\));?$/), f = n.match(/^--color-([a-z0-9\-]+): (#[a-fA-F0-9]{3,6});?$/);
|
|
1947
1947
|
if (s) {
|
|
1948
|
-
const [, a,
|
|
1948
|
+
const [, a, u] = s, d = gn(u);
|
|
1949
1949
|
o[d.toLowerCase()] = `bg-${a}`, t[d.toLowerCase()] = `text-${a}`;
|
|
1950
1950
|
} else if (f) {
|
|
1951
|
-
const [, a,
|
|
1952
|
-
o[
|
|
1951
|
+
const [, a, u] = f;
|
|
1952
|
+
o[u.toLowerCase()] = `bg-${a}`, t[u.toLowerCase()] = `text-${a}`;
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
return { background: o, text: t };
|
|
@@ -1957,7 +1957,7 @@ function mn(e) {
|
|
|
1957
1957
|
const vn = (e) => {
|
|
1958
1958
|
if (e !== void 0)
|
|
1959
1959
|
return typeof e == "number" ? `${e}px` : e.toString();
|
|
1960
|
-
},
|
|
1960
|
+
}, Jo = (e, o) => {
|
|
1961
1961
|
const t = vn(o);
|
|
1962
1962
|
return t === void 0 ? "" : `${e}-[${t}]`;
|
|
1963
1963
|
}, wn = `
|
|
@@ -2311,14 +2311,14 @@ const vn = (e) => {
|
|
|
2311
2311
|
borderRadius: (t) => {
|
|
2312
2312
|
if (!t.borderRadius)
|
|
2313
2313
|
return [];
|
|
2314
|
-
const i = Ei.borderRadius[t.borderRadius] ||
|
|
2314
|
+
const i = Ei.borderRadius[t.borderRadius] || Jo("rounded", t.borderRadius);
|
|
2315
2315
|
return i ? [i] : [];
|
|
2316
2316
|
},
|
|
2317
2317
|
// 外边距
|
|
2318
2318
|
margin: (t) => {
|
|
2319
2319
|
const i = [];
|
|
2320
2320
|
if (t.margin !== void 0) {
|
|
2321
|
-
const n =
|
|
2321
|
+
const n = Jo("m", t.margin);
|
|
2322
2322
|
return n ? [n] : [];
|
|
2323
2323
|
}
|
|
2324
2324
|
return [
|
|
@@ -2330,7 +2330,7 @@ const vn = (e) => {
|
|
|
2330
2330
|
{ prop: t.marginY, dir: "my" }
|
|
2331
2331
|
].forEach(({ prop: n, dir: s }) => {
|
|
2332
2332
|
if (n !== void 0) {
|
|
2333
|
-
const f =
|
|
2333
|
+
const f = Jo(s, n);
|
|
2334
2334
|
f && i.push(f);
|
|
2335
2335
|
}
|
|
2336
2336
|
}), i;
|
|
@@ -2339,7 +2339,7 @@ const vn = (e) => {
|
|
|
2339
2339
|
padding: (t) => {
|
|
2340
2340
|
const i = [];
|
|
2341
2341
|
if (t.padding !== void 0) {
|
|
2342
|
-
const n =
|
|
2342
|
+
const n = Jo("p", t.padding);
|
|
2343
2343
|
return n ? [n] : [];
|
|
2344
2344
|
}
|
|
2345
2345
|
return [
|
|
@@ -2351,7 +2351,7 @@ const vn = (e) => {
|
|
|
2351
2351
|
{ prop: t.paddingY, dir: "py" }
|
|
2352
2352
|
].forEach(({ prop: n, dir: s }) => {
|
|
2353
2353
|
if (n !== void 0) {
|
|
2354
|
-
const f =
|
|
2354
|
+
const f = Jo(s, n);
|
|
2355
2355
|
f && i.push(f);
|
|
2356
2356
|
}
|
|
2357
2357
|
}), i;
|
|
@@ -2436,7 +2436,7 @@ const vn = (e) => {
|
|
|
2436
2436
|
n && i.push(n);
|
|
2437
2437
|
}
|
|
2438
2438
|
if (t.gap) {
|
|
2439
|
-
const r =
|
|
2439
|
+
const r = Jo("gap", t.gap);
|
|
2440
2440
|
r && i.push(r);
|
|
2441
2441
|
}
|
|
2442
2442
|
return i;
|
|
@@ -2497,14 +2497,14 @@ const vn = (e) => {
|
|
|
2497
2497
|
return Object.keys(e).forEach((f) => {
|
|
2498
2498
|
const a = _n[f];
|
|
2499
2499
|
if (a && !s.has(a)) {
|
|
2500
|
-
const
|
|
2501
|
-
if (
|
|
2502
|
-
const d =
|
|
2500
|
+
const u = r[a];
|
|
2501
|
+
if (u) {
|
|
2502
|
+
const d = u(e);
|
|
2503
2503
|
n.push(...d), s.add(a);
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
2506
|
}), n.filter(Boolean).join(" ");
|
|
2507
|
-
}, Ai =
|
|
2507
|
+
}, Ai = l.createContext(null);
|
|
2508
2508
|
function Ri(e, o) {
|
|
2509
2509
|
return e ? o === "all" || o === "gesture" : !1;
|
|
2510
2510
|
}
|
|
@@ -2541,7 +2541,7 @@ class Ii {
|
|
|
2541
2541
|
(o = this._onRecognized) == null || o.call(this);
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2544
|
+
function st(e, o, t) {
|
|
2545
2545
|
return e ? o === void 0 || t === void 0 ? !0 : t === o : !1;
|
|
2546
2546
|
}
|
|
2547
2547
|
function Cn(e, o) {
|
|
@@ -2552,7 +2552,7 @@ function Cn(e, o) {
|
|
|
2552
2552
|
} catch {
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
|
-
const
|
|
2555
|
+
const _t = 10, zn = 500, Ye = {
|
|
2556
2556
|
display: "flex",
|
|
2557
2557
|
flexDirection: "column",
|
|
2558
2558
|
minWidth: 0,
|
|
@@ -2587,14 +2587,14 @@ const Zt = /* @__PURE__ */ new Set(), Tn = {
|
|
|
2587
2587
|
WebkitUserSelect: "none",
|
|
2588
2588
|
position: "relative"
|
|
2589
2589
|
};
|
|
2590
|
-
function
|
|
2590
|
+
function ft(e) {
|
|
2591
2591
|
return {
|
|
2592
2592
|
x: typeof e.clientX == "number" && Number.isFinite(e.clientX) ? e.clientX : 0,
|
|
2593
2593
|
y: typeof e.clientY == "number" && Number.isFinite(e.clientY) ? e.clientY : 0
|
|
2594
2594
|
};
|
|
2595
2595
|
}
|
|
2596
2596
|
function Dt(e, o) {
|
|
2597
|
-
const t =
|
|
2597
|
+
const t = ft(e);
|
|
2598
2598
|
if (!o) return t;
|
|
2599
2599
|
const i = o.getBoundingClientRect();
|
|
2600
2600
|
return { x: t.x - i.left, y: t.y - i.top };
|
|
@@ -2624,7 +2624,7 @@ class An extends Ii {
|
|
|
2624
2624
|
wrap(t) {
|
|
2625
2625
|
if (!Ri(this._enabled, this._including)) return t;
|
|
2626
2626
|
const i = this;
|
|
2627
|
-
return
|
|
2627
|
+
return l.createElement(Rn, {
|
|
2628
2628
|
onStart: this._onStart,
|
|
2629
2629
|
onEnd: (r) => {
|
|
2630
2630
|
var n, s;
|
|
@@ -2638,7 +2638,7 @@ class An extends Ii {
|
|
|
2638
2638
|
});
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
|
-
const Rn =
|
|
2641
|
+
const Rn = l.memo(
|
|
2642
2642
|
function({
|
|
2643
2643
|
onStart: o,
|
|
2644
2644
|
onEnd: t,
|
|
@@ -2648,11 +2648,11 @@ const Rn = u.memo(
|
|
|
2648
2648
|
blockSubviewHits: s,
|
|
2649
2649
|
children: f
|
|
2650
2650
|
}) {
|
|
2651
|
-
const a =
|
|
2651
|
+
const a = l.useRef({ onStart: o, onEnd: t, count: i, reportLocation: r, bubble: n });
|
|
2652
2652
|
a.current = { onStart: o, onEnd: t, count: i, reportLocation: r, bubble: n };
|
|
2653
|
-
const
|
|
2653
|
+
const u = l.useRef(null), d = l.useContext(Ai), g = l.useRef(d);
|
|
2654
2654
|
g.current = d;
|
|
2655
|
-
const h =
|
|
2655
|
+
const h = l.useRef({
|
|
2656
2656
|
pressed: !1,
|
|
2657
2657
|
pointerId: void 0,
|
|
2658
2658
|
x: 0,
|
|
@@ -2664,7 +2664,7 @@ const Rn = u.memo(
|
|
|
2664
2664
|
taps: 0,
|
|
2665
2665
|
tapTimer: void 0,
|
|
2666
2666
|
lastLoc: void 0
|
|
2667
|
-
}), w =
|
|
2667
|
+
}), w = l.useMemo(() => {
|
|
2668
2668
|
const S = (x) => {
|
|
2669
2669
|
const { onEnd: v, reportLocation: T } = a.current;
|
|
2670
2670
|
T ? v == null || v(x) : v == null || v();
|
|
@@ -2684,19 +2684,19 @@ const Rn = u.memo(
|
|
|
2684
2684
|
if (x.button != null && x.button !== 0) return;
|
|
2685
2685
|
const v = g.current;
|
|
2686
2686
|
if (v && v.arena.isBlocked(x.pointerId, v.slot)) return;
|
|
2687
|
-
const T = h.current, O =
|
|
2687
|
+
const T = h.current, O = ft(x);
|
|
2688
2688
|
T.pressed = !0, T.pointerId = x.pointerId, T.x = O.x, T.y = O.y, T.moved = !1, T.consumed = !1, ($ = (I = a.current).onStart) == null || $.call(I);
|
|
2689
2689
|
},
|
|
2690
2690
|
onPointerMoveCapture(x) {
|
|
2691
2691
|
const v = h.current;
|
|
2692
|
-
if (!
|
|
2693
|
-
const T =
|
|
2694
|
-
O * O + I * I >
|
|
2692
|
+
if (!st(v.pressed, v.pointerId, x.pointerId)) return;
|
|
2693
|
+
const T = ft(x), O = T.x - v.x, I = T.y - v.y;
|
|
2694
|
+
O * O + I * I > _t * _t * 4 && (v.moved = !0);
|
|
2695
2695
|
},
|
|
2696
2696
|
onPointerUpCapture(x) {
|
|
2697
2697
|
const v = h.current;
|
|
2698
|
-
if (!
|
|
2699
|
-
const T =
|
|
2698
|
+
if (!st(v.pressed, v.pointerId, x.pointerId)) return;
|
|
2699
|
+
const T = ft(x), O = T.x - v.x, I = T.y - v.y, $ = !v.moved && O * O + I * I <= _t * _t * 4, M = v.pointerId;
|
|
2700
2700
|
if (v.pressed = !1, v.pointerId = void 0, M != null && Zt.has(M)) {
|
|
2701
2701
|
Zt.delete(M), v.consumed = !0;
|
|
2702
2702
|
return;
|
|
@@ -2708,12 +2708,12 @@ const Rn = u.memo(
|
|
|
2708
2708
|
}
|
|
2709
2709
|
if (!$) return;
|
|
2710
2710
|
W && M != null && W.arena.tryClaim(M, W.slot), v.consumed = !0;
|
|
2711
|
-
const k = Dt(x,
|
|
2711
|
+
const k = Dt(x, u.current);
|
|
2712
2712
|
y(k);
|
|
2713
2713
|
},
|
|
2714
2714
|
onPointerCancelCapture(x) {
|
|
2715
2715
|
const v = h.current;
|
|
2716
|
-
|
|
2716
|
+
st(v.pressed, v.pointerId, x.pointerId) && (v.pressed = !1, v.pointerId = void 0, v.moved = !0);
|
|
2717
2717
|
},
|
|
2718
2718
|
onClick(x) {
|
|
2719
2719
|
const v = h.current;
|
|
@@ -2725,11 +2725,11 @@ const Rn = u.memo(
|
|
|
2725
2725
|
if (T > 1 && a.current.count > 1) {
|
|
2726
2726
|
const O = a.current.count;
|
|
2727
2727
|
if (T >= O) {
|
|
2728
|
-
v.tapTimer !== void 0 && clearTimeout(v.tapTimer), v.taps = 0, v.dblHandled = !0, S(Dt(x,
|
|
2728
|
+
v.tapTimer !== void 0 && clearTimeout(v.tapTimer), v.taps = 0, v.dblHandled = !0, S(Dt(x, u.current));
|
|
2729
2729
|
return;
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
|
-
y(Dt(x,
|
|
2732
|
+
y(Dt(x, u.current));
|
|
2733
2733
|
},
|
|
2734
2734
|
onDoubleClick(x) {
|
|
2735
2735
|
if (a.current.count < 2) return;
|
|
@@ -2739,7 +2739,7 @@ const Rn = u.memo(
|
|
|
2739
2739
|
T.dblHandled = !1;
|
|
2740
2740
|
return;
|
|
2741
2741
|
}
|
|
2742
|
-
T.tapTimer !== void 0 && clearTimeout(T.tapTimer), T.taps = 0, S(Dt(x,
|
|
2742
|
+
T.tapTimer !== void 0 && clearTimeout(T.tapTimer), T.taps = 0, S(Dt(x, u.current));
|
|
2743
2743
|
},
|
|
2744
2744
|
onKeyDown(x) {
|
|
2745
2745
|
x.key !== "Enter" && x.key !== " " || (x.preventDefault(), a.current.bubble || x.stopPropagation(), y({ x: 0, y: 0 }));
|
|
@@ -2749,7 +2749,7 @@ const Rn = u.memo(
|
|
|
2749
2749
|
return /* @__PURE__ */ Kt(
|
|
2750
2750
|
"div",
|
|
2751
2751
|
{
|
|
2752
|
-
ref:
|
|
2752
|
+
ref: u,
|
|
2753
2753
|
role: "button",
|
|
2754
2754
|
tabIndex: 0,
|
|
2755
2755
|
className: "fibo-gesture fibo-gesture-tap",
|
|
@@ -2765,7 +2765,7 @@ class Bn extends Ii {
|
|
|
2765
2765
|
constructor() {
|
|
2766
2766
|
super(...arguments);
|
|
2767
2767
|
c(this, "_duration", 500);
|
|
2768
|
-
c(this, "_maximumDistance",
|
|
2768
|
+
c(this, "_maximumDistance", _t * 2);
|
|
2769
2769
|
c(this, "_onStart");
|
|
2770
2770
|
c(this, "_onEnd");
|
|
2771
2771
|
c(this, "_onPressingChanged");
|
|
@@ -2790,7 +2790,7 @@ class Bn extends Ii {
|
|
|
2790
2790
|
wrap(t) {
|
|
2791
2791
|
if (!Ri(this._enabled, this._including)) return t;
|
|
2792
2792
|
const i = this;
|
|
2793
|
-
return
|
|
2793
|
+
return l.createElement(In, {
|
|
2794
2794
|
duration: this._duration,
|
|
2795
2795
|
maximumDistance: this._maximumDistance,
|
|
2796
2796
|
onStart: this._onStart,
|
|
@@ -2805,7 +2805,7 @@ class Bn extends Ii {
|
|
|
2805
2805
|
});
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
|
-
const In =
|
|
2808
|
+
const In = l.memo(
|
|
2809
2809
|
function({
|
|
2810
2810
|
duration: o,
|
|
2811
2811
|
maximumDistance: t,
|
|
@@ -2816,7 +2816,7 @@ const In = u.memo(
|
|
|
2816
2816
|
blockSubviewHits: f,
|
|
2817
2817
|
children: a
|
|
2818
2818
|
}) {
|
|
2819
|
-
const
|
|
2819
|
+
const u = l.useRef(void 0), d = l.useRef(void 0), g = l.useRef(null), h = l.useRef(!1), w = l.useRef({ x: 0, y: 0 }), S = l.useRef(!1), y = l.useRef({
|
|
2820
2820
|
onStart: i,
|
|
2821
2821
|
onEnd: r,
|
|
2822
2822
|
onPressingChanged: n,
|
|
@@ -2832,27 +2832,27 @@ const In = u.memo(
|
|
|
2832
2832
|
maximumDistance: t,
|
|
2833
2833
|
bubble: s
|
|
2834
2834
|
};
|
|
2835
|
-
const x =
|
|
2835
|
+
const x = l.useContext(Ai), v = l.useCallback(($ = !0) => {
|
|
2836
2836
|
var M, W;
|
|
2837
|
-
|
|
2837
|
+
u.current !== void 0 && (clearTimeout(u.current), u.current = void 0), Cn(g.current, d.current), h.current && $ && ((W = (M = y.current).onPressingChanged) == null || W.call(M, !1)), h.current = !1, d.current = void 0, g.current = null, S.current = !1;
|
|
2838
2838
|
}, []);
|
|
2839
|
-
|
|
2839
|
+
l.useEffect(() => () => v(!1), [v]);
|
|
2840
2840
|
const T = ($) => {
|
|
2841
2841
|
var k, H, V, K;
|
|
2842
|
-
if (h.current && !
|
|
2843
|
-
const M = $.currentTarget, W =
|
|
2844
|
-
g.current = M, h.current = !0, S.current = !1, w.current = W, $.pointerId !== void 0 && (d.current = $.pointerId, Zt.delete($.pointerId)),
|
|
2842
|
+
if (h.current && !st(h.current, d.current, $.pointerId) || x && x.arena.isBlocked($.pointerId, x.slot)) return;
|
|
2843
|
+
const M = $.currentTarget, W = ft($);
|
|
2844
|
+
g.current = M, h.current = !0, S.current = !1, w.current = W, $.pointerId !== void 0 && (d.current = $.pointerId, Zt.delete($.pointerId)), u.current !== void 0 && clearTimeout(u.current), (H = (k = y.current).onStart) == null || H.call(k), (K = (V = y.current).onPressingChanged) == null || K.call(V, !0), u.current = setTimeout(() => {
|
|
2845
2845
|
var po, no;
|
|
2846
|
-
|
|
2847
|
-
const
|
|
2848
|
-
|
|
2846
|
+
u.current = void 0, S.current = !0;
|
|
2847
|
+
const eo = d.current;
|
|
2848
|
+
eo != null && Zt.add(eo), x && eo != null && x.arena.tryClaim(eo, x.slot), (no = (po = y.current).onEnd) == null || no.call(po);
|
|
2849
2849
|
}, y.current.duration);
|
|
2850
2850
|
}, O = ($) => {
|
|
2851
|
-
if (!
|
|
2852
|
-
const M =
|
|
2851
|
+
if (!st(h.current, d.current, $.pointerId)) return;
|
|
2852
|
+
const M = ft($), W = M.x - w.current.x, k = M.y - w.current.y, H = y.current.maximumDistance;
|
|
2853
2853
|
W * W + k * k > H * H && v(!0);
|
|
2854
2854
|
}, I = ($) => {
|
|
2855
|
-
if (!
|
|
2855
|
+
if (!st(h.current, d.current, $.pointerId)) return;
|
|
2856
2856
|
const M = S.current;
|
|
2857
2857
|
v(!0), M && !y.current.bubble && $.stopPropagation();
|
|
2858
2858
|
};
|
|
@@ -2896,11 +2896,11 @@ function Ni(e = {}) {
|
|
|
2896
2896
|
const o = qe(e.stiffness, 170), t = Nn(e.damping, 26), i = qe(e.mass, 1), r = `${o}:${t}:${i}`, n = Ke.get(r);
|
|
2897
2897
|
if (n) return n;
|
|
2898
2898
|
const s = 1 / 60, f = 1;
|
|
2899
|
-
let a = 0,
|
|
2899
|
+
let a = 0, u = 0;
|
|
2900
2900
|
const d = [0];
|
|
2901
2901
|
for (let y = 0; y < 180; y += 1) {
|
|
2902
|
-
const x = -o * (a - f) - t *
|
|
2903
|
-
if (
|
|
2902
|
+
const x = -o * (a - f) - t * u;
|
|
2903
|
+
if (u += x / i * s, a += u * s, d.push(a), y > 8 && Math.abs(a - f) < 2e-3 && Math.abs(u) < 2e-3) break;
|
|
2904
2904
|
}
|
|
2905
2905
|
d[d.length - 1] !== 1 && d.push(1);
|
|
2906
2906
|
const h = Math.max(1, Math.floor((d.length - 1) / 24)), w = [];
|
|
@@ -2911,7 +2911,7 @@ function Ni(e = {}) {
|
|
|
2911
2911
|
const S = `linear(${w.join(", ")})`;
|
|
2912
2912
|
return Ke.set(r, S), S;
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function it(e, o) {
|
|
2915
2915
|
return e === "spring" ? Ni(o) : Fn[e] ?? e;
|
|
2916
2916
|
}
|
|
2917
2917
|
const $e = [
|
|
@@ -4448,7 +4448,7 @@ function Wn() {
|
|
|
4448
4448
|
const e = Io.getInstance();
|
|
4449
4449
|
e.ensureDefaults(), e.injectExtra(On, "fibo-interaction-fx");
|
|
4450
4450
|
}
|
|
4451
|
-
function
|
|
4451
|
+
function Tt(e, o, t, i = 0) {
|
|
4452
4452
|
const r = (Array.isArray(e) ? e : [e]).flatMap((f) => String(f).split(",")).map((f) => f.trim()).filter(Boolean);
|
|
4453
4453
|
r.length === 0 && r.push("all");
|
|
4454
4454
|
const n = `${o}ms`, s = i > 0 ? ` ${i}ms` : "";
|
|
@@ -4542,10 +4542,10 @@ const ti = /* @__PURE__ */ new Set([
|
|
|
4542
4542
|
"backdrop-filter",
|
|
4543
4543
|
"outline"
|
|
4544
4544
|
]);
|
|
4545
|
-
function
|
|
4545
|
+
function at(e) {
|
|
4546
4546
|
return e.startsWith("--") ? e : e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
|
|
4547
4547
|
}
|
|
4548
|
-
function
|
|
4548
|
+
function Uo(e) {
|
|
4549
4549
|
return e.startsWith("--") ? e : e.replace(/-([a-z])/g, (o, t) => t.toUpperCase());
|
|
4550
4550
|
}
|
|
4551
4551
|
const Xn = {
|
|
@@ -4617,15 +4617,15 @@ function Yn(e) {
|
|
|
4617
4617
|
}
|
|
4618
4618
|
return t && o.push(t), o;
|
|
4619
4619
|
}
|
|
4620
|
-
function
|
|
4620
|
+
function lt(e) {
|
|
4621
4621
|
const o = Yn(String(e).trim()), t = o[0] ?? "", i = o[1] ?? t, r = o[2] ?? t, n = o[3] ?? i;
|
|
4622
4622
|
return [t, i, r, n];
|
|
4623
4623
|
}
|
|
4624
4624
|
function Le(e, o, t) {
|
|
4625
|
-
const i =
|
|
4625
|
+
const i = to(e, o), r = $i[e];
|
|
4626
4626
|
if (!r.some((f) => t.has(f)))
|
|
4627
4627
|
return { shorthand: i, longhands: [] };
|
|
4628
|
-
const n =
|
|
4628
|
+
const n = lt(i), s = [];
|
|
4629
4629
|
return r.forEach((f, a) => {
|
|
4630
4630
|
t.has(f) || s.push([f, n[a]]);
|
|
4631
4631
|
}), { shorthand: null, longhands: s };
|
|
@@ -4633,38 +4633,38 @@ function Le(e, o, t) {
|
|
|
4633
4633
|
function Un(e, o, t) {
|
|
4634
4634
|
const i = e, r = /* @__PURE__ */ new Set();
|
|
4635
4635
|
for (const s of $i[o])
|
|
4636
|
-
i[
|
|
4636
|
+
i[Uo(s)] != null && r.add(s);
|
|
4637
4637
|
const n = Le(o, t, r);
|
|
4638
4638
|
if (n.shorthand != null) {
|
|
4639
4639
|
i[o] = n.shorthand;
|
|
4640
4640
|
return;
|
|
4641
4641
|
}
|
|
4642
4642
|
for (const [s, f] of n.longhands)
|
|
4643
|
-
i[
|
|
4643
|
+
i[Uo(s)] = f;
|
|
4644
4644
|
delete i[o];
|
|
4645
4645
|
}
|
|
4646
4646
|
function Kn(e, o) {
|
|
4647
4647
|
const t = e[o];
|
|
4648
4648
|
if (t == null || t === "") return;
|
|
4649
|
-
const [i, r, n, s] =
|
|
4649
|
+
const [i, r, n, s] = lt(String(t)), f = [
|
|
4650
4650
|
[`${o}Top`, i],
|
|
4651
4651
|
[`${o}Right`, r],
|
|
4652
4652
|
[`${o}Bottom`, n],
|
|
4653
4653
|
[`${o}Left`, s]
|
|
4654
4654
|
], a = e;
|
|
4655
|
-
for (const [
|
|
4656
|
-
a[
|
|
4655
|
+
for (const [u, d] of f)
|
|
4656
|
+
a[u] == null && (a[u] = d);
|
|
4657
4657
|
delete a[o];
|
|
4658
4658
|
}
|
|
4659
4659
|
function ii(e, o, t) {
|
|
4660
4660
|
const i = Vn[o];
|
|
4661
|
-
i && Kn(e, i), e[o] =
|
|
4661
|
+
i && Kn(e, i), e[o] = to(o, t);
|
|
4662
4662
|
}
|
|
4663
4663
|
function Po(e) {
|
|
4664
4664
|
const o = {};
|
|
4665
4665
|
for (const [t, i] of Object.entries(e)) {
|
|
4666
4666
|
if (i == null) continue;
|
|
4667
|
-
const r = t.startsWith("--") ? t : t.includes("-") ?
|
|
4667
|
+
const r = t.startsWith("--") ? t : t.includes("-") ? Uo(t) : t, n = Me(r);
|
|
4668
4668
|
if (n) {
|
|
4669
4669
|
for (const s of n)
|
|
4670
4670
|
ii(o, s, i);
|
|
@@ -4678,11 +4678,11 @@ function Po(e) {
|
|
|
4678
4678
|
}
|
|
4679
4679
|
return o;
|
|
4680
4680
|
}
|
|
4681
|
-
function
|
|
4681
|
+
function to(e, o) {
|
|
4682
4682
|
if (o == null) return "";
|
|
4683
4683
|
if (typeof o == "boolean") return o ? "true" : "false";
|
|
4684
4684
|
if (typeof o == "number")
|
|
4685
|
-
return e.startsWith("--") ? String(o) : o === 0 && ei.has(e) ? "none" : ti.has(e) || ti.has(
|
|
4685
|
+
return e.startsWith("--") ? String(o) : o === 0 && ei.has(e) ? "none" : ti.has(e) || ti.has(at(e)) ? String(o) : `${o}px`;
|
|
4686
4686
|
const t = String(o);
|
|
4687
4687
|
return (t === "0" || t === "0px") && ei.has(e) ? "none" : t;
|
|
4688
4688
|
}
|
|
@@ -4712,16 +4712,16 @@ class xo {
|
|
|
4712
4712
|
if (typeof f != "string" || f === "constructor")
|
|
4713
4713
|
return Reflect.get(s, f, a);
|
|
4714
4714
|
if (f in s) {
|
|
4715
|
-
const
|
|
4716
|
-
return typeof
|
|
4717
|
-
const g =
|
|
4715
|
+
const u = Reflect.get(s, f, a);
|
|
4716
|
+
return typeof u != "function" ? u : (...d) => {
|
|
4717
|
+
const g = u.apply(s, d);
|
|
4718
4718
|
return g === r ? n : g;
|
|
4719
4719
|
};
|
|
4720
4720
|
}
|
|
4721
|
-
return (
|
|
4721
|
+
return (u) => {
|
|
4722
4722
|
const g = Me(f) ?? [f];
|
|
4723
4723
|
for (const h of g)
|
|
4724
|
-
r.set(
|
|
4724
|
+
r.set(at(h), to(h, u));
|
|
4725
4725
|
return n;
|
|
4726
4726
|
};
|
|
4727
4727
|
}
|
|
@@ -4781,35 +4781,43 @@ class xo {
|
|
|
4781
4781
|
return this.transforms.set("rotate", `rotate(${o}deg)`), this.flushTransform();
|
|
4782
4782
|
}
|
|
4783
4783
|
shadow(o) {
|
|
4784
|
-
return this.set("box-shadow",
|
|
4784
|
+
return this.set("box-shadow", to("boxShadow", o));
|
|
4785
4785
|
}
|
|
4786
4786
|
css(o, t) {
|
|
4787
|
-
|
|
4788
|
-
|
|
4787
|
+
if (typeof o == "object" && o !== null) {
|
|
4788
|
+
for (const [n, s] of Object.entries(o)) {
|
|
4789
|
+
if (s == null) continue;
|
|
4790
|
+
const f = n.startsWith("--") ? n : n.includes("-") ? Uo(n) : n;
|
|
4791
|
+
this.set(at(f), to(f, s));
|
|
4792
|
+
}
|
|
4793
|
+
return this;
|
|
4794
|
+
}
|
|
4795
|
+
const i = o, r = i.includes("-") ? Uo(i) : i;
|
|
4796
|
+
return this.set(at(r), to(r, t));
|
|
4789
4797
|
}
|
|
4790
4798
|
padding(o) {
|
|
4791
|
-
return this.set("padding",
|
|
4799
|
+
return this.set("padding", to("padding", o));
|
|
4792
4800
|
}
|
|
4793
4801
|
p(o) {
|
|
4794
4802
|
return this.padding(o);
|
|
4795
4803
|
}
|
|
4796
4804
|
margin(o) {
|
|
4797
|
-
return this.set("margin",
|
|
4805
|
+
return this.set("margin", to("margin", o));
|
|
4798
4806
|
}
|
|
4799
4807
|
transition(o, t, i, r) {
|
|
4800
4808
|
if (typeof o == "string" && t === void 0)
|
|
4801
4809
|
return this.set("transition", o);
|
|
4802
|
-
const n = Array.isArray(o) ? o : [o], s =
|
|
4810
|
+
const n = Array.isArray(o) ? o : [o], s = it(i || this.transitionEasing);
|
|
4803
4811
|
return this.set(
|
|
4804
4812
|
"transition",
|
|
4805
|
-
|
|
4813
|
+
Tt(n, t || this.transitionDuration, s, r || 0)
|
|
4806
4814
|
);
|
|
4807
4815
|
}
|
|
4808
4816
|
duration(o) {
|
|
4809
4817
|
return this.transitionDuration = o, this.applyTransition(), this;
|
|
4810
4818
|
}
|
|
4811
4819
|
easing(o) {
|
|
4812
|
-
return this.transitionEasing =
|
|
4820
|
+
return this.transitionEasing = it(o), this.applyTransition(), this;
|
|
4813
4821
|
}
|
|
4814
4822
|
ease(o) {
|
|
4815
4823
|
return this.easing(o);
|
|
@@ -4823,7 +4831,7 @@ class xo {
|
|
|
4823
4831
|
applyTransition() {
|
|
4824
4832
|
this.set(
|
|
4825
4833
|
"transition",
|
|
4826
|
-
|
|
4834
|
+
Tt(
|
|
4827
4835
|
this.transitionProperties,
|
|
4828
4836
|
this.transitionDuration,
|
|
4829
4837
|
this.transitionEasing,
|
|
@@ -4939,7 +4947,7 @@ function Ce(e, o) {
|
|
|
4939
4947
|
function Yo(e) {
|
|
4940
4948
|
return e === Oo.infinity || e === "infinity";
|
|
4941
4949
|
}
|
|
4942
|
-
function
|
|
4950
|
+
function Qo(e, o, t = "width") {
|
|
4943
4951
|
if (e == null) return;
|
|
4944
4952
|
if (Yo(e))
|
|
4945
4953
|
return o === "min" ? "0px" : "100%";
|
|
@@ -4957,20 +4965,42 @@ function os(e) {
|
|
|
4957
4965
|
display: "flex",
|
|
4958
4966
|
minWidth: 0,
|
|
4959
4967
|
minHeight: 0,
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4968
|
+
// `fill` stretches the child — host uses stretch instead of corner align.
|
|
4969
|
+
alignItems: e.fill ? "stretch" : o.alignItems,
|
|
4970
|
+
justifyContent: e.fill ? "flex-start" : o.justifyContent
|
|
4971
|
+
}, i = Qo(e.maxWidth, "max", "width"), r = Qo(e.maxHeight, "max", "height"), n = Qo(e.minWidth, "min", "width"), s = Qo(e.minHeight, "min", "height"), f = Qo(e.idealWidth ?? e.width, "ideal", "width"), a = Qo(e.idealHeight ?? e.height, "ideal", "height");
|
|
4963
4972
|
return n != null && (t.minWidth = n), s != null && (t.minHeight = s), i != null && (t.maxWidth = i), r != null && (t.maxHeight = r), f != null ? t.width = f : Yo(e.maxWidth) && (t.width = "100%"), a != null ? t.height = a : Yo(e.maxHeight) && (t.height = "100%"), Yo(e.maxWidth) && (e.minWidth == null || Yo(e.minWidth) || e.minWidth === 0) && (t.minWidth = "0px", t.width = "100%"), Yo(e.maxHeight) && (e.minHeight == null || Yo(e.minHeight) || e.minHeight === 0) && (t.minHeight = "0px", t.height = "100%"), t;
|
|
4964
4973
|
}
|
|
4965
|
-
|
|
4966
|
-
|
|
4974
|
+
const ts = {
|
|
4975
|
+
width: "100%",
|
|
4976
|
+
height: "100%",
|
|
4977
|
+
minWidth: 0,
|
|
4978
|
+
minHeight: 0,
|
|
4979
|
+
boxSizing: "border-box",
|
|
4980
|
+
flex: "1 1 auto",
|
|
4981
|
+
alignSelf: "stretch"
|
|
4982
|
+
};
|
|
4983
|
+
function es(e) {
|
|
4984
|
+
if (!l.isValidElement(e)) return e;
|
|
4985
|
+
const o = e.props;
|
|
4986
|
+
return l.cloneElement(e, {
|
|
4987
|
+
style: {
|
|
4988
|
+
...o.style,
|
|
4989
|
+
...ts
|
|
4990
|
+
}
|
|
4991
|
+
});
|
|
4992
|
+
}
|
|
4993
|
+
function is(e, o) {
|
|
4994
|
+
const t = o.fill ? es(e) : e;
|
|
4995
|
+
return l.createElement(
|
|
4967
4996
|
"div",
|
|
4968
4997
|
{
|
|
4969
4998
|
className: "fibo-frame",
|
|
4970
4999
|
"data-fibo-frame": Pi(o.alignment),
|
|
5000
|
+
"data-fibo-fill": o.fill ? "true" : void 0,
|
|
4971
5001
|
style: os(o)
|
|
4972
5002
|
},
|
|
4973
|
-
|
|
5003
|
+
t
|
|
4974
5004
|
);
|
|
4975
5005
|
}
|
|
4976
5006
|
function Oi(e) {
|
|
@@ -4980,18 +5010,18 @@ function Oi(e) {
|
|
|
4980
5010
|
function ri(e) {
|
|
4981
5011
|
return e == null ? zo.center : typeof e == "string" && e in zo ? zo[e] : e;
|
|
4982
5012
|
}
|
|
4983
|
-
function
|
|
5013
|
+
function rs(e) {
|
|
4984
5014
|
const o = typeof e == "function" ? e() : e;
|
|
4985
5015
|
return vo(o);
|
|
4986
5016
|
}
|
|
4987
|
-
const
|
|
5017
|
+
const ct = {
|
|
4988
5018
|
circle: "50%",
|
|
4989
5019
|
rounded: "8px",
|
|
4990
5020
|
square: "0px"
|
|
4991
5021
|
};
|
|
4992
|
-
function
|
|
5022
|
+
function ns(e, o) {
|
|
4993
5023
|
const t = o.x ?? 0, i = o.y ?? 0;
|
|
4994
|
-
return t === 0 && i === 0 ? e :
|
|
5024
|
+
return t === 0 && i === 0 ? e : l.createElement(
|
|
4995
5025
|
"div",
|
|
4996
5026
|
{
|
|
4997
5027
|
className: "fibo-offset",
|
|
@@ -5006,8 +5036,8 @@ function is(e, o) {
|
|
|
5006
5036
|
e
|
|
5007
5037
|
);
|
|
5008
5038
|
}
|
|
5009
|
-
function
|
|
5010
|
-
return
|
|
5039
|
+
function ss(e) {
|
|
5040
|
+
return l.createElement(
|
|
5011
5041
|
"div",
|
|
5012
5042
|
{
|
|
5013
5043
|
className: "fibo-clipped",
|
|
@@ -5023,9 +5053,9 @@ function rs(e) {
|
|
|
5023
5053
|
e
|
|
5024
5054
|
);
|
|
5025
5055
|
}
|
|
5026
|
-
function
|
|
5027
|
-
const t = o in
|
|
5028
|
-
return
|
|
5056
|
+
function fs(e, o) {
|
|
5057
|
+
const t = o in ct ? ct[o] : o === "rectangle" ? void 0 : String(o);
|
|
5058
|
+
return l.createElement(
|
|
5029
5059
|
"div",
|
|
5030
5060
|
{
|
|
5031
5061
|
className: "fibo-clip-shape",
|
|
@@ -5042,7 +5072,7 @@ function ns(e, o) {
|
|
|
5042
5072
|
e
|
|
5043
5073
|
);
|
|
5044
5074
|
}
|
|
5045
|
-
const
|
|
5075
|
+
const as = {
|
|
5046
5076
|
position: "absolute",
|
|
5047
5077
|
inset: 0,
|
|
5048
5078
|
zIndex: 10,
|
|
@@ -5055,13 +5085,13 @@ const ss = {
|
|
|
5055
5085
|
userSelect: "none",
|
|
5056
5086
|
WebkitUserSelect: "none"
|
|
5057
5087
|
};
|
|
5058
|
-
function
|
|
5059
|
-
const t = o === "rectangle" ? void 0 : o in
|
|
5060
|
-
...
|
|
5088
|
+
function cs(e, o = "rectangle") {
|
|
5089
|
+
const t = o === "rectangle" ? void 0 : o in ct ? ct[o] : o === "circle" ? "50%" : String(o), i = Oi(o), r = {
|
|
5090
|
+
...as,
|
|
5061
5091
|
...t != null ? { borderRadius: t } : null,
|
|
5062
5092
|
...i != null ? { clipPath: i, WebkitClipPath: i } : null
|
|
5063
5093
|
};
|
|
5064
|
-
return
|
|
5094
|
+
return l.createElement(
|
|
5065
5095
|
"div",
|
|
5066
5096
|
{
|
|
5067
5097
|
className: "fibo-content-shape",
|
|
@@ -5078,7 +5108,7 @@ function fs(e, o = "rectangle") {
|
|
|
5078
5108
|
...i != null ? { clipPath: i, WebkitClipPath: i } : null
|
|
5079
5109
|
}
|
|
5080
5110
|
},
|
|
5081
|
-
|
|
5111
|
+
l.createElement(
|
|
5082
5112
|
"div",
|
|
5083
5113
|
{
|
|
5084
5114
|
className: "fibo-content-shape-body",
|
|
@@ -5093,7 +5123,7 @@ function fs(e, o = "rectangle") {
|
|
|
5093
5123
|
},
|
|
5094
5124
|
e
|
|
5095
5125
|
),
|
|
5096
|
-
|
|
5126
|
+
l.createElement("div", {
|
|
5097
5127
|
className: "fibo-hit-film",
|
|
5098
5128
|
"data-fibo-hit-film": "1",
|
|
5099
5129
|
"data-fibo-hit-shape": o,
|
|
@@ -5102,9 +5132,9 @@ function fs(e, o = "rectangle") {
|
|
|
5102
5132
|
})
|
|
5103
5133
|
);
|
|
5104
5134
|
}
|
|
5105
|
-
function
|
|
5135
|
+
function ls(e, o) {
|
|
5106
5136
|
const t = o > 0 ? o : 0, i = o < 0 ? 1 + Math.abs(o) : o > 0 ? 0 : 1;
|
|
5107
|
-
return
|
|
5137
|
+
return l.createElement(
|
|
5108
5138
|
"div",
|
|
5109
5139
|
{
|
|
5110
5140
|
className: "fibo-layout-priority",
|
|
@@ -5124,19 +5154,19 @@ function as(e, o) {
|
|
|
5124
5154
|
e
|
|
5125
5155
|
);
|
|
5126
5156
|
}
|
|
5127
|
-
function
|
|
5157
|
+
function us(e, o) {
|
|
5128
5158
|
const t = {
|
|
5129
5159
|
display: "inline-flex",
|
|
5130
5160
|
flexDirection: "column"
|
|
5131
5161
|
};
|
|
5132
|
-
return o.horizontal !== !1 && (t.width = "fit-content", t.maxWidth = "100%"), o.vertical !== !1 && (t.height = "fit-content"),
|
|
5162
|
+
return o.horizontal !== !1 && (t.width = "fit-content", t.maxWidth = "100%"), o.vertical !== !1 && (t.height = "fit-content"), l.createElement(
|
|
5133
5163
|
"div",
|
|
5134
5164
|
{ className: "fibo-fixed-size", style: t },
|
|
5135
5165
|
e
|
|
5136
5166
|
);
|
|
5137
5167
|
}
|
|
5138
|
-
function
|
|
5139
|
-
const t = Li(ri(o.alignment)), i =
|
|
5168
|
+
function bs(e, o) {
|
|
5169
|
+
const t = Li(ri(o.alignment)), i = rs(o.child), r = {
|
|
5140
5170
|
position: "absolute",
|
|
5141
5171
|
inset: 0,
|
|
5142
5172
|
display: "flex",
|
|
@@ -5147,7 +5177,7 @@ function ls(e, o) {
|
|
|
5147
5177
|
minWidth: 0,
|
|
5148
5178
|
minHeight: 0,
|
|
5149
5179
|
overflow: "hidden"
|
|
5150
|
-
}, n =
|
|
5180
|
+
}, n = l.createElement(
|
|
5151
5181
|
"div",
|
|
5152
5182
|
{
|
|
5153
5183
|
className: `fibo-view-${o.kind}`,
|
|
@@ -5157,12 +5187,12 @@ function ls(e, o) {
|
|
|
5157
5187
|
pointerEvents: "none"
|
|
5158
5188
|
}
|
|
5159
5189
|
},
|
|
5160
|
-
|
|
5190
|
+
l.createElement(
|
|
5161
5191
|
"div",
|
|
5162
5192
|
{ style: { pointerEvents: "auto", maxWidth: "100%", maxHeight: "100%" } },
|
|
5163
5193
|
i
|
|
5164
5194
|
)
|
|
5165
|
-
), s =
|
|
5195
|
+
), s = l.createElement(
|
|
5166
5196
|
"div",
|
|
5167
5197
|
{
|
|
5168
5198
|
className: "fibo-view-layer-base",
|
|
@@ -5177,7 +5207,7 @@ function ls(e, o) {
|
|
|
5177
5207
|
},
|
|
5178
5208
|
e
|
|
5179
5209
|
);
|
|
5180
|
-
return
|
|
5210
|
+
return l.createElement(
|
|
5181
5211
|
"div",
|
|
5182
5212
|
{
|
|
5183
5213
|
className: "fibo-view-layer-host",
|
|
@@ -5195,15 +5225,15 @@ function ls(e, o) {
|
|
|
5195
5225
|
o.kind === "overlay" ? n : null
|
|
5196
5226
|
);
|
|
5197
5227
|
}
|
|
5198
|
-
function
|
|
5199
|
-
return
|
|
5228
|
+
function hs(e, o) {
|
|
5229
|
+
return l.createElement(ds, { onChange: o, children: e });
|
|
5200
5230
|
}
|
|
5201
|
-
function
|
|
5231
|
+
function ds({
|
|
5202
5232
|
onChange: e,
|
|
5203
5233
|
children: o
|
|
5204
5234
|
}) {
|
|
5205
|
-
const t =
|
|
5206
|
-
return i.current = e,
|
|
5235
|
+
const t = l.useRef(null), i = l.useRef(e);
|
|
5236
|
+
return i.current = e, l.useEffect(() => {
|
|
5207
5237
|
const r = t.current;
|
|
5208
5238
|
if (!r) return;
|
|
5209
5239
|
const n = () => {
|
|
@@ -5213,7 +5243,7 @@ function bs({
|
|
|
5213
5243
|
if (n(), typeof ResizeObserver != "function") return;
|
|
5214
5244
|
const s = new ResizeObserver(() => n());
|
|
5215
5245
|
return s.observe(r), () => s.disconnect();
|
|
5216
|
-
}, []),
|
|
5246
|
+
}, []), l.createElement(
|
|
5217
5247
|
"div",
|
|
5218
5248
|
{
|
|
5219
5249
|
ref: t,
|
|
@@ -5228,8 +5258,8 @@ function bs({
|
|
|
5228
5258
|
o
|
|
5229
5259
|
);
|
|
5230
5260
|
}
|
|
5231
|
-
function
|
|
5232
|
-
return
|
|
5261
|
+
function ps(e) {
|
|
5262
|
+
return l.createElement(
|
|
5233
5263
|
"div",
|
|
5234
5264
|
{
|
|
5235
5265
|
className: "fibo-compositing-group",
|
|
@@ -5243,19 +5273,19 @@ function hs(e) {
|
|
|
5243
5273
|
e
|
|
5244
5274
|
);
|
|
5245
5275
|
}
|
|
5246
|
-
function
|
|
5247
|
-
const t = Oi(o) ?? void 0, i = o in
|
|
5276
|
+
function xs(e, o) {
|
|
5277
|
+
const t = Oi(o) ?? void 0, i = o in ct ? ct[o] : o === "circle" ? "50%" : void 0, r = {
|
|
5248
5278
|
display: "inline-flex",
|
|
5249
5279
|
flexDirection: "column",
|
|
5250
5280
|
maxWidth: "100%"
|
|
5251
5281
|
};
|
|
5252
|
-
return t ? (r.WebkitMaskImage = "linear-gradient(#000 0 0)", r.maskImage = "linear-gradient(#000 0 0)", r.clipPath = t, r.WebkitClipPath = t) : i != null ? (r.WebkitMaskImage = "linear-gradient(#000 0 0)", r.maskImage = "linear-gradient(#000 0 0)", r.borderRadius = i, r.overflow = "hidden") : (o.includes("(") || o.startsWith("url") || o.includes("gradient")) && (r.WebkitMaskImage = o, r.maskImage = o, r.WebkitMaskSize = "100% 100%", r.maskSize = "100% 100%"),
|
|
5282
|
+
return t ? (r.WebkitMaskImage = "linear-gradient(#000 0 0)", r.maskImage = "linear-gradient(#000 0 0)", r.clipPath = t, r.WebkitClipPath = t) : i != null ? (r.WebkitMaskImage = "linear-gradient(#000 0 0)", r.maskImage = "linear-gradient(#000 0 0)", r.borderRadius = i, r.overflow = "hidden") : (o.includes("(") || o.startsWith("url") || o.includes("gradient")) && (r.WebkitMaskImage = o, r.maskImage = o, r.WebkitMaskSize = "100% 100%", r.maskSize = "100% 100%"), l.createElement(
|
|
5253
5283
|
"div",
|
|
5254
5284
|
{ className: "fibo-mask", "data-fibo-mask": o, style: r },
|
|
5255
5285
|
e
|
|
5256
5286
|
);
|
|
5257
5287
|
}
|
|
5258
|
-
function
|
|
5288
|
+
function gs(e) {
|
|
5259
5289
|
let o = (e == null ? void 0 : e.parentElement) ?? null;
|
|
5260
5290
|
for (; o; ) {
|
|
5261
5291
|
const { width: t, height: i } = o.getBoundingClientRect();
|
|
@@ -5264,7 +5294,7 @@ function ps(e) {
|
|
|
5264
5294
|
}
|
|
5265
5295
|
return null;
|
|
5266
5296
|
}
|
|
5267
|
-
function
|
|
5297
|
+
function ms({
|
|
5268
5298
|
child: e,
|
|
5269
5299
|
spec: o
|
|
5270
5300
|
}) {
|
|
@@ -5272,7 +5302,7 @@ function xs({
|
|
|
5272
5302
|
It(() => {
|
|
5273
5303
|
const d = t.current;
|
|
5274
5304
|
if (!d) return;
|
|
5275
|
-
const g =
|
|
5305
|
+
const g = gs(d);
|
|
5276
5306
|
if (!g) return;
|
|
5277
5307
|
const h = () => {
|
|
5278
5308
|
const S = g.getBoundingClientRect();
|
|
@@ -5282,18 +5312,18 @@ function xs({
|
|
|
5282
5312
|
const w = new ResizeObserver(h);
|
|
5283
5313
|
return w.observe(g), () => w.disconnect();
|
|
5284
5314
|
}, []);
|
|
5285
|
-
const
|
|
5315
|
+
const u = {
|
|
5286
5316
|
display: "inline-flex",
|
|
5287
5317
|
flexDirection: "column",
|
|
5288
5318
|
boxSizing: "border-box"
|
|
5289
5319
|
};
|
|
5290
5320
|
if (i)
|
|
5291
|
-
(n === "horizontal" || n === "both") && (
|
|
5321
|
+
(n === "horizontal" || n === "both") && (u.width = i.w * a, u.maxWidth = i.w * a), (n === "vertical" || n === "both") && (u.height = i.h * a, u.maxHeight = i.h * a);
|
|
5292
5322
|
else {
|
|
5293
5323
|
const d = `${a * 100}%`;
|
|
5294
|
-
(n === "horizontal" || n === "both") && (
|
|
5324
|
+
(n === "horizontal" || n === "both") && (u.width = d, u.maxWidth = d), (n === "vertical" || n === "both") && (u.height = d, u.maxHeight = d);
|
|
5295
5325
|
}
|
|
5296
|
-
return
|
|
5326
|
+
return l.createElement(
|
|
5297
5327
|
"div",
|
|
5298
5328
|
{
|
|
5299
5329
|
ref: t,
|
|
@@ -5301,15 +5331,15 @@ function xs({
|
|
|
5301
5331
|
"data-fibo-crf-axis": n,
|
|
5302
5332
|
"data-fibo-crf-count": String(s),
|
|
5303
5333
|
"data-fibo-crf-span": String(f),
|
|
5304
|
-
style:
|
|
5334
|
+
style: u
|
|
5305
5335
|
},
|
|
5306
5336
|
e
|
|
5307
5337
|
);
|
|
5308
5338
|
}
|
|
5309
|
-
function
|
|
5310
|
-
return
|
|
5339
|
+
function vs(e, o = {}) {
|
|
5340
|
+
return l.createElement(ms, { child: e, spec: o });
|
|
5311
5341
|
}
|
|
5312
|
-
function
|
|
5342
|
+
function ws(e, o) {
|
|
5313
5343
|
switch (e) {
|
|
5314
5344
|
case "leading":
|
|
5315
5345
|
case "top":
|
|
@@ -5326,26 +5356,26 @@ function ms(e, o) {
|
|
|
5326
5356
|
return 0;
|
|
5327
5357
|
}
|
|
5328
5358
|
}
|
|
5329
|
-
function
|
|
5359
|
+
function ys({
|
|
5330
5360
|
child: e,
|
|
5331
5361
|
spec: o
|
|
5332
5362
|
}) {
|
|
5333
5363
|
const t = Bt(null), [i, r] = me({ x: 0, y: 0 }), [n, s] = me({ width: 0, height: 0 });
|
|
5334
5364
|
It(() => {
|
|
5335
|
-
const
|
|
5336
|
-
if (!
|
|
5365
|
+
const u = t.current;
|
|
5366
|
+
if (!u) return;
|
|
5337
5367
|
const d = () => {
|
|
5338
|
-
const h =
|
|
5368
|
+
const h = u.getBoundingClientRect(), w = { width: h.width, height: h.height };
|
|
5339
5369
|
s(w);
|
|
5340
|
-
const S = typeof o.compute == "function" ? o.compute(w) : Number(o.compute), y = Number.isFinite(S) ? S : 0, x =
|
|
5370
|
+
const S = typeof o.compute == "function" ? o.compute(w) : Number(o.compute), y = Number.isFinite(S) ? S : 0, x = ws(o.guide, w), v = y - x, T = o.guide === "leading" || o.guide === "trailing" || o.guide === "centerX" || String(o.guide).includes("x") || String(o.guide).includes("leading") || String(o.guide).includes("trailing");
|
|
5341
5371
|
r(T ? { x: v, y: 0 } : { x: 0, y: v });
|
|
5342
5372
|
};
|
|
5343
5373
|
if (d(), typeof ResizeObserver != "function") return;
|
|
5344
5374
|
const g = new ResizeObserver(d);
|
|
5345
|
-
return g.observe(
|
|
5375
|
+
return g.observe(u), () => g.disconnect();
|
|
5346
5376
|
}, [o.guide, o.compute]);
|
|
5347
5377
|
const f = `--fibo-align-${o.guide}`, a = typeof o.compute == "function" ? o.compute(n) : Number(o.compute);
|
|
5348
|
-
return
|
|
5378
|
+
return l.createElement(
|
|
5349
5379
|
"div",
|
|
5350
5380
|
{
|
|
5351
5381
|
ref: t,
|
|
@@ -5361,11 +5391,11 @@ function vs({
|
|
|
5361
5391
|
e
|
|
5362
5392
|
);
|
|
5363
5393
|
}
|
|
5364
|
-
function
|
|
5365
|
-
return
|
|
5394
|
+
function ks(e, o) {
|
|
5395
|
+
return l.createElement(ys, { child: e, spec: o });
|
|
5366
5396
|
}
|
|
5367
|
-
const
|
|
5368
|
-
function
|
|
5397
|
+
const ot = /* @__PURE__ */ new Map();
|
|
5398
|
+
function _s({
|
|
5369
5399
|
child: e,
|
|
5370
5400
|
spec: o
|
|
5371
5401
|
}) {
|
|
@@ -5374,8 +5404,8 @@ function ys({
|
|
|
5374
5404
|
const f = t.current;
|
|
5375
5405
|
if (!f) return;
|
|
5376
5406
|
const a = () => {
|
|
5377
|
-
const d = f.getBoundingClientRect(), g =
|
|
5378
|
-
|
|
5407
|
+
const d = f.getBoundingClientRect(), g = ot.get(n);
|
|
5408
|
+
ot.set(n, {
|
|
5379
5409
|
id: o.id,
|
|
5380
5410
|
namespace: i,
|
|
5381
5411
|
isSource: r,
|
|
@@ -5384,16 +5414,16 @@ function ys({
|
|
|
5384
5414
|
};
|
|
5385
5415
|
if (a(), typeof ResizeObserver != "function")
|
|
5386
5416
|
return () => {
|
|
5387
|
-
const d =
|
|
5388
|
-
(d == null ? void 0 : d.isSource) === r &&
|
|
5417
|
+
const d = ot.get(n);
|
|
5418
|
+
(d == null ? void 0 : d.isSource) === r && ot.delete(n);
|
|
5389
5419
|
};
|
|
5390
|
-
const
|
|
5391
|
-
return
|
|
5392
|
-
|
|
5393
|
-
const d =
|
|
5394
|
-
d && d.isSource === r &&
|
|
5420
|
+
const u = new ResizeObserver(a);
|
|
5421
|
+
return u.observe(f), () => {
|
|
5422
|
+
u.disconnect();
|
|
5423
|
+
const d = ot.get(n);
|
|
5424
|
+
d && d.isSource === r && ot.delete(n);
|
|
5395
5425
|
};
|
|
5396
|
-
}, [n, i, o.id, r]),
|
|
5426
|
+
}, [n, i, o.id, r]), l.createElement(
|
|
5397
5427
|
"div",
|
|
5398
5428
|
{
|
|
5399
5429
|
ref: t,
|
|
@@ -5410,11 +5440,11 @@ function ys({
|
|
|
5410
5440
|
e
|
|
5411
5441
|
);
|
|
5412
5442
|
}
|
|
5413
|
-
function
|
|
5414
|
-
return
|
|
5443
|
+
function Ss(e, o) {
|
|
5444
|
+
return l.createElement(_s, { child: e, spec: o });
|
|
5415
5445
|
}
|
|
5416
5446
|
const ze = _r(null);
|
|
5417
|
-
function
|
|
5447
|
+
function Cs() {
|
|
5418
5448
|
const e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), t = (i) => {
|
|
5419
5449
|
var r;
|
|
5420
5450
|
(r = o.get(i)) == null || r.forEach((n) => n());
|
|
@@ -5439,7 +5469,7 @@ function _s() {
|
|
|
5439
5469
|
}
|
|
5440
5470
|
};
|
|
5441
5471
|
}
|
|
5442
|
-
function
|
|
5472
|
+
function zs({
|
|
5443
5473
|
prefKey: e,
|
|
5444
5474
|
value: o,
|
|
5445
5475
|
children: t
|
|
@@ -5450,27 +5480,27 @@ function Ss({
|
|
|
5450
5480
|
return i.contribute(r.current, { keyId: e.id, value: o });
|
|
5451
5481
|
}, [i, e, o]), t;
|
|
5452
5482
|
}
|
|
5453
|
-
function
|
|
5483
|
+
function Ts({
|
|
5454
5484
|
prefKey: e,
|
|
5455
5485
|
onChange: o,
|
|
5456
5486
|
children: t
|
|
5457
5487
|
}) {
|
|
5458
|
-
const i = hi(ze), r = Sr(() =>
|
|
5488
|
+
const i = hi(ze), r = Sr(() => Cs(), []), n = i ?? r, s = Bt(o);
|
|
5459
5489
|
s.current = o;
|
|
5460
5490
|
const f = Cr(() => {
|
|
5461
5491
|
s.current(n.read(e));
|
|
5462
5492
|
}, [n, e]);
|
|
5463
|
-
return It(() => (f(), n.subscribe(e.id, f)), [n, e, f]),
|
|
5493
|
+
return It(() => (f(), n.subscribe(e.id, f)), [n, e, f]), l.createElement(ze.Provider, { value: n }, t);
|
|
5464
5494
|
}
|
|
5465
|
-
function
|
|
5466
|
-
return
|
|
5495
|
+
function Es(e, o) {
|
|
5496
|
+
return l.createElement(zs, {
|
|
5467
5497
|
prefKey: o.key,
|
|
5468
5498
|
value: o.value,
|
|
5469
5499
|
children: e
|
|
5470
5500
|
});
|
|
5471
5501
|
}
|
|
5472
|
-
function
|
|
5473
|
-
return
|
|
5502
|
+
function As(e, o) {
|
|
5503
|
+
return l.createElement(Ts, {
|
|
5474
5504
|
prefKey: o.key,
|
|
5475
5505
|
onChange: o.onChange,
|
|
5476
5506
|
children: e
|
|
@@ -5489,7 +5519,7 @@ const be = {
|
|
|
5489
5519
|
vertical: "vertical",
|
|
5490
5520
|
all: "all"
|
|
5491
5521
|
};
|
|
5492
|
-
function
|
|
5522
|
+
function Rs(e) {
|
|
5493
5523
|
return {
|
|
5494
5524
|
top: e.top,
|
|
5495
5525
|
bottom: e.bottom,
|
|
@@ -5497,7 +5527,7 @@ function Es(e) {
|
|
|
5497
5527
|
right: e.trailing ?? e.right
|
|
5498
5528
|
};
|
|
5499
5529
|
}
|
|
5500
|
-
function
|
|
5530
|
+
function Bs(e, o) {
|
|
5501
5531
|
switch (e) {
|
|
5502
5532
|
case Ho.top:
|
|
5503
5533
|
return { top: o };
|
|
@@ -5516,7 +5546,7 @@ function As(e, o) {
|
|
|
5516
5546
|
return { top: o, right: o, bottom: o, left: o };
|
|
5517
5547
|
}
|
|
5518
5548
|
}
|
|
5519
|
-
const
|
|
5549
|
+
const Is = {
|
|
5520
5550
|
ultraThin: {
|
|
5521
5551
|
blur: 20,
|
|
5522
5552
|
background: "rgba(255, 255, 255, 0.35)"
|
|
@@ -5538,7 +5568,7 @@ const Rs = {
|
|
|
5538
5568
|
background: "rgba(255, 255, 255, 0.88)"
|
|
5539
5569
|
}
|
|
5540
5570
|
};
|
|
5541
|
-
function
|
|
5571
|
+
function Fs(e) {
|
|
5542
5572
|
switch (e) {
|
|
5543
5573
|
case be.leading:
|
|
5544
5574
|
case "leading":
|
|
@@ -5555,12 +5585,12 @@ function Bs(e) {
|
|
|
5555
5585
|
return "bottom";
|
|
5556
5586
|
}
|
|
5557
5587
|
}
|
|
5558
|
-
function
|
|
5588
|
+
function Ns(e) {
|
|
5559
5589
|
const o = typeof e == "function" ? e() : e;
|
|
5560
5590
|
return vo(o);
|
|
5561
5591
|
}
|
|
5562
|
-
function
|
|
5563
|
-
const t =
|
|
5592
|
+
function $s(e, o) {
|
|
5593
|
+
const t = Fs(o.edge), i = t === "top" || t === "bottom", r = Ns(o.content), n = o.spacing ?? 0, s = {
|
|
5564
5594
|
display: "flex",
|
|
5565
5595
|
flexDirection: i ? "column" : "row",
|
|
5566
5596
|
minWidth: 0,
|
|
@@ -5581,11 +5611,11 @@ function Fs(e, o) {
|
|
|
5581
5611
|
flexDirection: "column",
|
|
5582
5612
|
// Sit inside the physical safe area when on top/bottom.
|
|
5583
5613
|
...t === "top" ? { paddingTop: "env(safe-area-inset-top, 0px)" } : t === "bottom" ? { paddingBottom: "env(safe-area-inset-bottom, 0px)" } : t === "left" ? { paddingLeft: "env(safe-area-inset-left, 0px)" } : { paddingRight: "env(safe-area-inset-right, 0px)" }
|
|
5584
|
-
},
|
|
5614
|
+
}, u = l.createElement(
|
|
5585
5615
|
"div",
|
|
5586
5616
|
{ className: "fibo-safe-area-inset-body", style: f },
|
|
5587
5617
|
e
|
|
5588
|
-
), d =
|
|
5618
|
+
), d = l.createElement(
|
|
5589
5619
|
"div",
|
|
5590
5620
|
{
|
|
5591
5621
|
className: "fibo-safe-area-inset-bar",
|
|
@@ -5593,8 +5623,8 @@ function Fs(e, o) {
|
|
|
5593
5623
|
style: a
|
|
5594
5624
|
},
|
|
5595
5625
|
r
|
|
5596
|
-
), g = t === "top" || t === "left" ? [d,
|
|
5597
|
-
return
|
|
5626
|
+
), g = t === "top" || t === "left" ? [d, u] : [u, d];
|
|
5627
|
+
return l.createElement(
|
|
5598
5628
|
"div",
|
|
5599
5629
|
{
|
|
5600
5630
|
className: "fibo-safe-area-inset",
|
|
@@ -5604,7 +5634,7 @@ function Fs(e, o) {
|
|
|
5604
5634
|
...g
|
|
5605
5635
|
);
|
|
5606
5636
|
}
|
|
5607
|
-
const
|
|
5637
|
+
const Ms = {
|
|
5608
5638
|
name: "material",
|
|
5609
5639
|
colors: {
|
|
5610
5640
|
primary: "#6750A4",
|
|
@@ -5698,7 +5728,7 @@ const Ns = {
|
|
|
5698
5728
|
lg: "0px 4px 8px 3px rgba(0,0,0,0.15), 0px 1px 3px rgba(0,0,0,0.3)"
|
|
5699
5729
|
},
|
|
5700
5730
|
fontFamily: "'Roboto', sans-serif"
|
|
5701
|
-
},
|
|
5731
|
+
}, Ls = {
|
|
5702
5732
|
name: "cupertino",
|
|
5703
5733
|
colors: {
|
|
5704
5734
|
primary: "#007AFF",
|
|
@@ -5793,7 +5823,7 @@ const Ns = {
|
|
|
5793
5823
|
lg: "0 12px 32px rgba(0,0,0,0.15)"
|
|
5794
5824
|
},
|
|
5795
5825
|
fontFamily: '-apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif'
|
|
5796
|
-
},
|
|
5826
|
+
}, Ps = {
|
|
5797
5827
|
name: "web",
|
|
5798
5828
|
colors: {
|
|
5799
5829
|
primary: "#3B82F6",
|
|
@@ -5885,7 +5915,7 @@ const Ns = {
|
|
|
5885
5915
|
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1)"
|
|
5886
5916
|
},
|
|
5887
5917
|
fontFamily: "'Inter', system-ui, sans-serif"
|
|
5888
|
-
},
|
|
5918
|
+
}, Os = {
|
|
5889
5919
|
name: "noir",
|
|
5890
5920
|
colors: {
|
|
5891
5921
|
primary: "#F4F4F6",
|
|
@@ -5989,24 +6019,24 @@ const Ns = {
|
|
|
5989
6019
|
lg: "0 30px 80px rgba(0, 0, 0, 0.75)"
|
|
5990
6020
|
},
|
|
5991
6021
|
fontFamily: 'var(--font-sans-loaded, "Plus Jakarta Sans"), system-ui, -apple-system, sans-serif'
|
|
5992
|
-
},
|
|
5993
|
-
material:
|
|
5994
|
-
cupertino:
|
|
5995
|
-
web:
|
|
5996
|
-
noir:
|
|
6022
|
+
}, Ws = {
|
|
6023
|
+
material: Ms,
|
|
6024
|
+
cupertino: Ls,
|
|
6025
|
+
web: Ps,
|
|
6026
|
+
noir: Os
|
|
5997
6027
|
};
|
|
5998
|
-
function
|
|
6028
|
+
function js(e) {
|
|
5999
6029
|
if (typeof e == "string") {
|
|
6000
|
-
const o =
|
|
6030
|
+
const o = Ws[e];
|
|
6001
6031
|
if (!o) throw new Error(`Unknown fiboui theme preset: ${e}`);
|
|
6002
6032
|
return o;
|
|
6003
6033
|
}
|
|
6004
6034
|
return e;
|
|
6005
6035
|
}
|
|
6006
|
-
function
|
|
6036
|
+
function Ds(e) {
|
|
6007
6037
|
return `--fibo-text-${e}`;
|
|
6008
6038
|
}
|
|
6009
|
-
function
|
|
6039
|
+
function Gs(e) {
|
|
6010
6040
|
var r, n;
|
|
6011
6041
|
const o = e.colors, t = {
|
|
6012
6042
|
"--fibo-primary": o.primary,
|
|
@@ -6041,23 +6071,23 @@ function js(e) {
|
|
|
6041
6071
|
return i && Object.keys(i).forEach((s) => {
|
|
6042
6072
|
const f = i[s];
|
|
6043
6073
|
if (!f) return;
|
|
6044
|
-
const a =
|
|
6045
|
-
f.fontSize != null && (t[`${a}-size`] =
|
|
6074
|
+
const a = Ds(s);
|
|
6075
|
+
f.fontSize != null && (t[`${a}-size`] = to("fontSize", f.fontSize)), f.fontWeight != null && (t[`${a}-weight`] = to("fontWeight", f.fontWeight)), f.letterSpacing != null && (t[`${a}-tracking`] = to("letterSpacing", f.letterSpacing)), f.lineHeight != null && (t[`${a}-height`] = to("lineHeight", f.lineHeight)), f.color != null && (t[`${a}-color`] = String(f.color));
|
|
6046
6076
|
}), t;
|
|
6047
6077
|
}
|
|
6048
|
-
function
|
|
6078
|
+
function Hs(e) {
|
|
6049
6079
|
return {
|
|
6050
|
-
...
|
|
6080
|
+
...Gs(e),
|
|
6051
6081
|
"--fibo-theme": e.name || "custom"
|
|
6052
6082
|
};
|
|
6053
6083
|
}
|
|
6054
|
-
function
|
|
6084
|
+
function Xs(e) {
|
|
6055
6085
|
return String(e ?? "").trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "") || "custom";
|
|
6056
6086
|
}
|
|
6057
|
-
function
|
|
6058
|
-
return `fibo-theme-${
|
|
6087
|
+
function Vs(e) {
|
|
6088
|
+
return `fibo-theme-${Xs(e.name)}`;
|
|
6059
6089
|
}
|
|
6060
|
-
const Wi = 64,
|
|
6090
|
+
const Wi = 64, Ys = [
|
|
6061
6091
|
"paddingTop",
|
|
6062
6092
|
"paddingRight",
|
|
6063
6093
|
"paddingBottom",
|
|
@@ -6066,7 +6096,7 @@ const Wi = 64, Xs = [
|
|
|
6066
6096
|
"marginRight",
|
|
6067
6097
|
"marginBottom",
|
|
6068
6098
|
"marginLeft"
|
|
6069
|
-
],
|
|
6099
|
+
], Us = /* @__PURE__ */ new Set([
|
|
6070
6100
|
"padding-top",
|
|
6071
6101
|
"padding-right",
|
|
6072
6102
|
"padding-bottom",
|
|
@@ -6075,7 +6105,7 @@ const Wi = 64, Xs = [
|
|
|
6075
6105
|
"margin-right",
|
|
6076
6106
|
"margin-bottom",
|
|
6077
6107
|
"margin-left"
|
|
6078
|
-
]),
|
|
6108
|
+
]), Ks = {
|
|
6079
6109
|
templateColumns: "gridTemplateColumns",
|
|
6080
6110
|
templateRows: "gridTemplateRows",
|
|
6081
6111
|
templateAreas: "gridTemplateAreas",
|
|
@@ -6086,10 +6116,10 @@ const Wi = 64, Xs = [
|
|
|
6086
6116
|
};
|
|
6087
6117
|
function ji(e) {
|
|
6088
6118
|
if (e.startsWith("--")) return e;
|
|
6089
|
-
const o =
|
|
6119
|
+
const o = Ks[e] ?? e, t = at(o);
|
|
6090
6120
|
return t.startsWith("ms-") ? `-${t}` : t;
|
|
6091
6121
|
}
|
|
6092
|
-
const
|
|
6122
|
+
const qs = `${Wi}px`;
|
|
6093
6123
|
class go {
|
|
6094
6124
|
constructor() {
|
|
6095
6125
|
/** @internal Extra DOM props forwarded to the host element. */
|
|
@@ -6198,9 +6228,12 @@ class go {
|
|
|
6198
6228
|
* maxHeight: Size.infinity,
|
|
6199
6229
|
* alignment: StackAlign.topTrailing,
|
|
6200
6230
|
* })
|
|
6231
|
+
* // Child fills the slot (bg/border on the child cover the frame):
|
|
6232
|
+
* Box().bg('red').frame({ maxWidth: Size.infinity, fill: true })
|
|
6201
6233
|
* ```
|
|
6202
6234
|
*
|
|
6203
6235
|
* Chainable: each `.frame()` wraps the previous (same as SwiftUI).
|
|
6236
|
+
* Default: child hugs + `alignment`. Pass `fill: true` to stretch the child.
|
|
6204
6237
|
*/
|
|
6205
6238
|
frame(o) {
|
|
6206
6239
|
return this._frames.push({ ...o }), this;
|
|
@@ -6359,7 +6392,7 @@ class go {
|
|
|
6359
6392
|
return t && typeof t == "object" && (this.__fiboElementProps = { ...t, key: String(o) }), this;
|
|
6360
6393
|
}
|
|
6361
6394
|
setBoxLonghand(o, t) {
|
|
6362
|
-
const i =
|
|
6395
|
+
const i = to(Uo(o), t);
|
|
6363
6396
|
return this._boxLonghands.add(o), this.addClassName(P.register(o, i)), this;
|
|
6364
6397
|
}
|
|
6365
6398
|
setBoxShorthand(o, t) {
|
|
@@ -6378,11 +6411,11 @@ class go {
|
|
|
6378
6411
|
}
|
|
6379
6412
|
padding(o, t) {
|
|
6380
6413
|
if (t !== void 0 && typeof o == "string") {
|
|
6381
|
-
const i =
|
|
6414
|
+
const i = Bs(o, t);
|
|
6382
6415
|
return i.top != null && this.setBoxLonghand("padding-top", i.top), i.right != null && this.setBoxLonghand("padding-right", i.right), i.bottom != null && this.setBoxLonghand("padding-bottom", i.bottom), i.left != null && this.setBoxLonghand("padding-left", i.left), this;
|
|
6383
6416
|
}
|
|
6384
6417
|
if (o != null && typeof o == "object") {
|
|
6385
|
-
const i =
|
|
6418
|
+
const i = Rs(o);
|
|
6386
6419
|
return i.top != null && this.setBoxLonghand("padding-top", i.top), i.right != null && this.setBoxLonghand("padding-right", i.right), i.bottom != null && this.setBoxLonghand("padding-bottom", i.bottom), i.left != null && this.setBoxLonghand("padding-left", i.left), this;
|
|
6387
6420
|
}
|
|
6388
6421
|
return this.setBoxShorthand("padding", o);
|
|
@@ -6413,8 +6446,8 @@ class go {
|
|
|
6413
6446
|
}
|
|
6414
6447
|
trackBoxLonghandsFrom(o) {
|
|
6415
6448
|
const t = o;
|
|
6416
|
-
for (const i of
|
|
6417
|
-
t[i] != null && this._boxLonghands.add(
|
|
6449
|
+
for (const i of Ys)
|
|
6450
|
+
t[i] != null && this._boxLonghands.add(at(i));
|
|
6418
6451
|
}
|
|
6419
6452
|
flexDirection(o) {
|
|
6420
6453
|
return this.layoutStyle({ flexDirection: o });
|
|
@@ -6633,8 +6666,13 @@ class go {
|
|
|
6633
6666
|
return this.marginVertical(o);
|
|
6634
6667
|
}
|
|
6635
6668
|
bg(o) {
|
|
6636
|
-
const t = typeof o == "string" && !o.startsWith("#") && !o.startsWith("rgb") ? this.resolveSemanticColor(o) : o, i =
|
|
6637
|
-
|
|
6669
|
+
const t = typeof o == "string" && !o.startsWith("#") && !o.startsWith("rgb") ? this.resolveSemanticColor(o) : o, i = String(t);
|
|
6670
|
+
if (/gradient\(|url\(/i.test(i)) {
|
|
6671
|
+
const n = P.register("background", i);
|
|
6672
|
+
return this._classNames.push(n), this.layoutStyle({ background: i, backgroundColor: "transparent" }), this;
|
|
6673
|
+
}
|
|
6674
|
+
const r = P.register("background-color", i);
|
|
6675
|
+
return this._classNames.push(r), this.layoutStyle({ backgroundColor: i }), this;
|
|
6638
6676
|
}
|
|
6639
6677
|
text(o) {
|
|
6640
6678
|
const t = typeof o == "string" && !o.startsWith("#") && !o.startsWith("rgb") ? this.resolveSemanticColor(o) : o, i = P.register("color", t);
|
|
@@ -6685,7 +6723,7 @@ class go {
|
|
|
6685
6723
|
* `Box().material(Material.ultraThin)` or `.material('regular')`.
|
|
6686
6724
|
*/
|
|
6687
6725
|
material(o) {
|
|
6688
|
-
const t = typeof o == "string" ?
|
|
6726
|
+
const t = typeof o == "string" ? Is[o] : o;
|
|
6689
6727
|
return t ? (this.backdropBlur(t.blur), this.bg(t.background), this) : this;
|
|
6690
6728
|
}
|
|
6691
6729
|
shadow(o) {
|
|
@@ -6755,12 +6793,12 @@ class go {
|
|
|
6755
6793
|
const g = r("all", "md", n, s), h = P.register("box-shadow", g);
|
|
6756
6794
|
return this._classNames.push(h), this;
|
|
6757
6795
|
}
|
|
6758
|
-
const
|
|
6796
|
+
const u = n;
|
|
6759
6797
|
if (typeof s == "string" && i(s)) {
|
|
6760
|
-
const g = r(
|
|
6798
|
+
const g = r(u, "md", s, f), h = P.register("box-shadow", g);
|
|
6761
6799
|
return this._classNames.push(h), this;
|
|
6762
6800
|
} else {
|
|
6763
|
-
const h = r(
|
|
6801
|
+
const h = r(u, s, f, a), w = P.register("box-shadow", h);
|
|
6764
6802
|
return this._classNames.push(w), this;
|
|
6765
6803
|
}
|
|
6766
6804
|
}
|
|
@@ -6859,7 +6897,7 @@ class go {
|
|
|
6859
6897
|
return this.paint("width", o), this.lockAxis("width", o);
|
|
6860
6898
|
}
|
|
6861
6899
|
paint(o, t) {
|
|
6862
|
-
return this.addClassName(P.register(o, t)), this.layoutStyle({ [
|
|
6900
|
+
return this.addClassName(P.register(o, t)), this.layoutStyle({ [Uo(o)]: t }), this;
|
|
6863
6901
|
}
|
|
6864
6902
|
height(o) {
|
|
6865
6903
|
if (typeof o == "number")
|
|
@@ -7120,11 +7158,11 @@ class go {
|
|
|
7120
7158
|
transition(o, t, i, r) {
|
|
7121
7159
|
if (this._autoEffectTransition = !1, this._effectTransitionProps = [], typeof o == "string" && t === void 0)
|
|
7122
7160
|
return this.replaceTransitionClass(P.register("transition", o)), this;
|
|
7123
|
-
const n = Array.isArray(o) ? o : [o], s =
|
|
7161
|
+
const n = Array.isArray(o) ? o : [o], s = it(i || this._transitionEasing);
|
|
7124
7162
|
return this.replaceTransitionClass(
|
|
7125
7163
|
P.register(
|
|
7126
7164
|
"transition",
|
|
7127
|
-
|
|
7165
|
+
Tt(n, t || this._transitionDuration, s, r || 0)
|
|
7128
7166
|
)
|
|
7129
7167
|
), this;
|
|
7130
7168
|
}
|
|
@@ -7140,7 +7178,7 @@ class go {
|
|
|
7140
7178
|
* Example: .easing('ease-in-out')
|
|
7141
7179
|
*/
|
|
7142
7180
|
easing(o) {
|
|
7143
|
-
return this._transitionEasing =
|
|
7181
|
+
return this._transitionEasing = it(o), (this._motionClass || this._reveal || this._usesCssMotion) && (this._style["--fibo-ease"] = this._transitionEasing, this._motionClass) ? this : (this._applyTransition(), this);
|
|
7144
7182
|
}
|
|
7145
7183
|
/** Alias of `.easing()`. `'spring'` becomes CSS `linear()`. */
|
|
7146
7184
|
ease(o) {
|
|
@@ -7167,7 +7205,7 @@ class go {
|
|
|
7167
7205
|
this._autoEffectTransition = !1, this._effectTransitionProps = [], this.replaceTransitionClass(
|
|
7168
7206
|
P.register(
|
|
7169
7207
|
"transition",
|
|
7170
|
-
|
|
7208
|
+
Tt(
|
|
7171
7209
|
this._transitionProperties,
|
|
7172
7210
|
this._transitionDuration,
|
|
7173
7211
|
this._transitionEasing,
|
|
@@ -7195,10 +7233,10 @@ class go {
|
|
|
7195
7233
|
const d = Wr(o);
|
|
7196
7234
|
this._motionClass = `fibo-anim fibo-anim-${d}`, this._props["data-fibo-anim"] = d, (t == null ? void 0 : t.from) !== void 0 && (this._style["--fibo-from"] = typeof t.from == "number" ? `${t.from}px` : t.from), !s && d === "pop" && (s = "spring");
|
|
7197
7235
|
}
|
|
7198
|
-
const a =
|
|
7236
|
+
const a = it(s ?? "ease", f);
|
|
7199
7237
|
this._classNames.push(this._motionClass);
|
|
7200
|
-
const
|
|
7201
|
-
return
|
|
7238
|
+
const u = this._style;
|
|
7239
|
+
return u["--fibo-dur"] = `${r}ms`, u["--fibo-ease"] = a, u["--fibo-delay"] = `${n}ms`, this._reducedMotion === "never" && !this._classNames.includes("fibo-motion-force") && this._classNames.push("fibo-motion-force"), this;
|
|
7202
7240
|
}
|
|
7203
7241
|
/** CSS `linear()` spring. Works on `.animate()` and `.transition()` / `.hover()`. */
|
|
7204
7242
|
spring(o) {
|
|
@@ -7290,7 +7328,7 @@ class go {
|
|
|
7290
7328
|
this._classNames.push(P.register("position", "sticky"));
|
|
7291
7329
|
const t = o === !0 ? "0px" : typeof o == "number" ? `${o}px` : o;
|
|
7292
7330
|
this._classNames.push(P.register("top", t));
|
|
7293
|
-
const i = o === !0 || o === 0 ?
|
|
7331
|
+
const i = o === !0 || o === 0 ? qs : typeof o == "number" ? `${Math.max(o, Wi)}px` : o;
|
|
7294
7332
|
return this.publishStickyOffset(i), this;
|
|
7295
7333
|
}
|
|
7296
7334
|
/**
|
|
@@ -7351,7 +7389,7 @@ class go {
|
|
|
7351
7389
|
this.replaceTransitionClass(
|
|
7352
7390
|
P.register(
|
|
7353
7391
|
"transition",
|
|
7354
|
-
|
|
7392
|
+
Tt(this._effectTransitionProps, r, i)
|
|
7355
7393
|
)
|
|
7356
7394
|
);
|
|
7357
7395
|
}
|
|
@@ -7361,8 +7399,8 @@ class go {
|
|
|
7361
7399
|
* SSR-safe: class + inline vars on first paint (no useEffect).
|
|
7362
7400
|
*/
|
|
7363
7401
|
theme(o) {
|
|
7364
|
-
const t =
|
|
7365
|
-
return this._theme = t, this.addClassName(
|
|
7402
|
+
const t = js(o);
|
|
7403
|
+
return this._theme = t, this.addClassName(Vs(t)), this;
|
|
7366
7404
|
}
|
|
7367
7405
|
/** Prefer dark/light system chrome for native controls under this subtree. */
|
|
7368
7406
|
colorScheme(o) {
|
|
@@ -7443,7 +7481,7 @@ class go {
|
|
|
7443
7481
|
return this._classNames.push("group"), this;
|
|
7444
7482
|
}
|
|
7445
7483
|
children(o) {
|
|
7446
|
-
return typeof o == "function" ? (this._childFunction = o, this._children = []) : (this._children =
|
|
7484
|
+
return typeof o == "function" ? (this._childFunction = o, this._children = []) : (this._children = zt(o), this._childFunction = void 0), this;
|
|
7447
7485
|
}
|
|
7448
7486
|
getClassName() {
|
|
7449
7487
|
let o;
|
|
@@ -7452,7 +7490,7 @@ class go {
|
|
|
7452
7490
|
getStyle() {
|
|
7453
7491
|
let o = Po({ ...this._style, ...this._cssStyles });
|
|
7454
7492
|
if (this._smoothSurface && (o = ue(o), this._smoothNeedsRestTransform && (o = Qe(o))), this._theme && (o = {
|
|
7455
|
-
...
|
|
7493
|
+
...Hs(this._theme),
|
|
7456
7494
|
...o,
|
|
7457
7495
|
backgroundColor: o.backgroundColor ?? this._theme.colors.background,
|
|
7458
7496
|
color: o.color ?? this._theme.colors.onBackground,
|
|
@@ -7462,18 +7500,18 @@ class go {
|
|
|
7462
7500
|
o.transform = t ? `${t} ${this._transforms.join(" ")}` : this._transforms.join(" ");
|
|
7463
7501
|
}
|
|
7464
7502
|
if (this._animationConfig && this._animatedProps.size === 0) {
|
|
7465
|
-
const { duration: t = 300, curve: i = "easeOut", stiffness: r, damping: n } = this._animationConfig, s =
|
|
7503
|
+
const { duration: t = 300, curve: i = "easeOut", stiffness: r, damping: n } = this._animationConfig, s = it(i, { stiffness: r, damping: n });
|
|
7466
7504
|
o.transition = `all ${t}ms ${s}`;
|
|
7467
7505
|
}
|
|
7468
7506
|
return o;
|
|
7469
7507
|
}
|
|
7470
7508
|
processChildren() {
|
|
7471
|
-
const o = this._childFunction ?
|
|
7509
|
+
const o = this._childFunction ? zt(this._childFunction) : this._children;
|
|
7472
7510
|
return this._staggerMs == null ? o : o.map(
|
|
7473
|
-
(t, i) =>
|
|
7511
|
+
(t, i) => l.createElement(
|
|
7474
7512
|
"span",
|
|
7475
7513
|
{
|
|
7476
|
-
key:
|
|
7514
|
+
key: l.isValidElement(t) && Ie(t.key) ? t.key : `fibo-stagger-${i}`,
|
|
7477
7515
|
className: "fibo-stagger-item",
|
|
7478
7516
|
style: { "--fibo-i": String(i) }
|
|
7479
7517
|
},
|
|
@@ -7485,7 +7523,7 @@ class go {
|
|
|
7485
7523
|
return this._childFunction;
|
|
7486
7524
|
}
|
|
7487
7525
|
}
|
|
7488
|
-
const
|
|
7526
|
+
const Zs = /* @__PURE__ */ new Set([
|
|
7489
7527
|
"$$typeof",
|
|
7490
7528
|
"type",
|
|
7491
7529
|
"props",
|
|
@@ -7498,61 +7536,61 @@ const Ks = /* @__PURE__ */ new Set([
|
|
|
7498
7536
|
"_debugTask",
|
|
7499
7537
|
"_debugInfo"
|
|
7500
7538
|
]);
|
|
7501
|
-
function
|
|
7539
|
+
function Js(e) {
|
|
7502
7540
|
var t;
|
|
7503
7541
|
const o = (t = e._props) == null ? void 0 : t.key;
|
|
7504
7542
|
if (!(o == null || o === ""))
|
|
7505
7543
|
return o;
|
|
7506
7544
|
}
|
|
7507
|
-
function
|
|
7508
|
-
const o = e._isObserver, t = e._signals, i = e._observers, r = e._state, n = e._providers, s =
|
|
7545
|
+
function Qs(e) {
|
|
7546
|
+
const o = e._isObserver, t = e._signals, i = e._observers, r = e._state, n = e._providers, s = Js(e), f = () => {
|
|
7509
7547
|
e.runReplays();
|
|
7510
7548
|
let h = cn(e, () => e.build());
|
|
7511
7549
|
const w = e._frames;
|
|
7512
7550
|
if (w && w.length > 0)
|
|
7513
7551
|
for (const C of w)
|
|
7514
|
-
h =
|
|
7515
|
-
e._clipped && (h =
|
|
7552
|
+
h = is(h, C);
|
|
7553
|
+
e._clipped && (h = ss(h));
|
|
7516
7554
|
const S = e._clipShape;
|
|
7517
|
-
S && (h =
|
|
7555
|
+
S && (h = fs(h, S));
|
|
7518
7556
|
const y = e._viewMask;
|
|
7519
|
-
y && (h =
|
|
7557
|
+
y && (h = xs(h, y)), e._compositingGroup && (h = ps(h));
|
|
7520
7558
|
const x = e._layers;
|
|
7521
7559
|
if (x && x.length > 0)
|
|
7522
7560
|
for (const C of x)
|
|
7523
|
-
h =
|
|
7561
|
+
h = bs(h, C);
|
|
7524
7562
|
const v = e._offset;
|
|
7525
|
-
v && (h =
|
|
7563
|
+
v && (h = ns(h, v));
|
|
7526
7564
|
const T = e._fixedSize;
|
|
7527
|
-
T && (h =
|
|
7565
|
+
T && (h = us(h, T));
|
|
7528
7566
|
const O = e._layoutPriority;
|
|
7529
|
-
O != null && O !== 0 && (h =
|
|
7567
|
+
O != null && O !== 0 && (h = ls(h, O));
|
|
7530
7568
|
const I = e._containerRelativeFrame;
|
|
7531
|
-
I && (h =
|
|
7569
|
+
I && (h = vs(h, I));
|
|
7532
7570
|
const $ = e._alignmentGuide;
|
|
7533
|
-
$ && (h =
|
|
7571
|
+
$ && (h = ks(h, $));
|
|
7534
7572
|
const M = e._matchedGeometry;
|
|
7535
|
-
M && (h =
|
|
7573
|
+
M && (h = Ss(h, M));
|
|
7536
7574
|
const W = e._preferences;
|
|
7537
7575
|
if (W && W.length > 0)
|
|
7538
7576
|
for (const C of W)
|
|
7539
|
-
h =
|
|
7577
|
+
h = Es(h, C);
|
|
7540
7578
|
const k = e._preferenceReaders;
|
|
7541
7579
|
if (k && k.length > 0)
|
|
7542
7580
|
for (const C of k)
|
|
7543
|
-
h =
|
|
7581
|
+
h = As(h, C);
|
|
7544
7582
|
const H = e._safeAreaInsets;
|
|
7545
7583
|
if (H && H.length > 0)
|
|
7546
7584
|
for (const C of H)
|
|
7547
|
-
h =
|
|
7585
|
+
h = $s(h, C);
|
|
7548
7586
|
const V = e._contentShape;
|
|
7549
|
-
V && (h =
|
|
7587
|
+
V && (h = cs(h, V));
|
|
7550
7588
|
const K = e._onGeometryChange;
|
|
7551
|
-
K && (h =
|
|
7552
|
-
const
|
|
7553
|
-
|
|
7589
|
+
K && (h = hs(h, K));
|
|
7590
|
+
const eo = e._animatedProps, po = e._animationConfig;
|
|
7591
|
+
eo && eo.size > 0 && (h = l.createElement(Tr, {
|
|
7554
7592
|
key: s,
|
|
7555
|
-
animatedProps:
|
|
7593
|
+
animatedProps: eo,
|
|
7556
7594
|
animationConfig: po,
|
|
7557
7595
|
children: h
|
|
7558
7596
|
}));
|
|
@@ -7561,7 +7599,7 @@ function Zs(e) {
|
|
|
7561
7599
|
const C = e._style || {}, So = {};
|
|
7562
7600
|
for (const yo of ["--fibo-dur", "--fibo-ease", "--fibo-delay", "--fibo-stagger", "--fibo-from"])
|
|
7563
7601
|
C[yo] != null && (So[yo] = C[yo]);
|
|
7564
|
-
h =
|
|
7602
|
+
h = l.createElement(Er, {
|
|
7565
7603
|
key: s,
|
|
7566
7604
|
preset: no.preset,
|
|
7567
7605
|
once: no.once,
|
|
@@ -7572,10 +7610,10 @@ function Zs(e) {
|
|
|
7572
7610
|
children: h
|
|
7573
7611
|
});
|
|
7574
7612
|
}
|
|
7575
|
-
e._scrollProgress && (h =
|
|
7576
|
-
|
|
7613
|
+
e._scrollProgress && (h = l.createElement(Ar, { key: s, children: h })), e._usesCssMotion && (h = l.createElement(
|
|
7614
|
+
l.Fragment,
|
|
7577
7615
|
{ key: s },
|
|
7578
|
-
|
|
7616
|
+
l.createElement(tn),
|
|
7579
7617
|
h
|
|
7580
7618
|
));
|
|
7581
7619
|
const fo = e._simultaneousGestures;
|
|
@@ -7591,35 +7629,35 @@ function Zs(e) {
|
|
|
7591
7629
|
for (const C of oo)
|
|
7592
7630
|
h = C.wrap(h);
|
|
7593
7631
|
return h;
|
|
7594
|
-
}, a = typeof e.hasStateManagement == "function" ? e.hasStateManagement() : !!(o || t && t.size || i && i.size || r && r.size || n && n.size),
|
|
7632
|
+
}, a = typeof e.hasStateManagement == "function" ? e.hasStateManagement() : !!(o || t && t.size || i && i.size || r && r.size || n && n.size), u = o ? l.createElement(un, {
|
|
7595
7633
|
key: s,
|
|
7596
7634
|
children: f
|
|
7597
|
-
}) : null, d = () =>
|
|
7635
|
+
}) : null, d = () => u ?? f();
|
|
7598
7636
|
let g = d();
|
|
7599
|
-
return a && t && t.size > 0 ? g =
|
|
7637
|
+
return a && t && t.size > 0 ? g = l.createElement(bn, {
|
|
7600
7638
|
key: s,
|
|
7601
7639
|
signals: t,
|
|
7602
7640
|
children: d
|
|
7603
|
-
}) : a && i && i.size > 0 && (g =
|
|
7641
|
+
}) : a && i && i.size > 0 && (g = l.createElement(hn, {
|
|
7604
7642
|
key: s,
|
|
7605
7643
|
observables: i,
|
|
7606
7644
|
children: d
|
|
7607
|
-
})), a && r && r.size > 0 && (g =
|
|
7645
|
+
})), a && r && r.size > 0 && (g = l.createElement(dn, {
|
|
7608
7646
|
key: s,
|
|
7609
7647
|
stateMap: r,
|
|
7610
7648
|
children: g
|
|
7611
|
-
})), a && n && n.size > 0 && (g =
|
|
7649
|
+
})), a && n && n.size > 0 && (g = l.createElement(zi, {
|
|
7612
7650
|
key: s,
|
|
7613
7651
|
providers: n,
|
|
7614
7652
|
children: g
|
|
7615
7653
|
})), g;
|
|
7616
7654
|
}
|
|
7617
|
-
function
|
|
7655
|
+
function of(e, o, t) {
|
|
7618
7656
|
const i = function() {
|
|
7619
7657
|
return o();
|
|
7620
7658
|
};
|
|
7621
7659
|
i.displayName = t;
|
|
7622
|
-
const r =
|
|
7660
|
+
const r = l.createElement(i);
|
|
7623
7661
|
Object.defineProperty(e, "$$typeof", {
|
|
7624
7662
|
value: r.$$typeof,
|
|
7625
7663
|
enumerable: !0,
|
|
@@ -7633,10 +7671,10 @@ function Js(e, o, t) {
|
|
|
7633
7671
|
}
|
|
7634
7672
|
function mo(e) {
|
|
7635
7673
|
return (...o) => {
|
|
7636
|
-
const t = new e(...o), i = e.name.replace(/Builder$/, "") || "Fibo", r = () =>
|
|
7637
|
-
return
|
|
7674
|
+
const t = new e(...o), i = e.name.replace(/Builder$/, "") || "Fibo", r = () => Qs(t);
|
|
7675
|
+
return of(t, r, i), new Proxy(t, {
|
|
7638
7676
|
get(n, s, f) {
|
|
7639
|
-
var a,
|
|
7677
|
+
var a, u;
|
|
7640
7678
|
if (s === "build")
|
|
7641
7679
|
return r;
|
|
7642
7680
|
if (s === "key") {
|
|
@@ -7650,7 +7688,7 @@ function mo(e) {
|
|
|
7650
7688
|
return n.__fiboKeyFn;
|
|
7651
7689
|
}
|
|
7652
7690
|
if (s === "props") {
|
|
7653
|
-
const d = (
|
|
7691
|
+
const d = (u = n._props) == null ? void 0 : u.key, g = {
|
|
7654
7692
|
...n.__fiboElementProps ?? {},
|
|
7655
7693
|
...d != null && d !== "" ? { key: String(d) } : {}
|
|
7656
7694
|
}, h = Object.getPrototypeOf(n).props;
|
|
@@ -7660,15 +7698,15 @@ function mo(e) {
|
|
|
7660
7698
|
const d = Reflect.get(n, s), g = Object.getPrototypeOf(n), h = g != null ? g.type : void 0;
|
|
7661
7699
|
return typeof h != "function" || typeof d != "function" ? d : (n.__fiboType || (n.__fiboType = (w, S) => typeof w == "string" || typeof w == "number" ? (h.call(n, w), f) : d(w, S)), n.__fiboType);
|
|
7662
7700
|
}
|
|
7663
|
-
return
|
|
7701
|
+
return Zs.has(s) || Reflect.has(n, s) ? Reflect.get(n, s, f) : (d) => (((h) => {
|
|
7664
7702
|
const S = Me(s) ?? [s];
|
|
7665
7703
|
for (const y of S) {
|
|
7666
7704
|
const x = ji(y);
|
|
7667
|
-
if (
|
|
7705
|
+
if (Us.has(x)) {
|
|
7668
7706
|
n.setBoxLonghand(x, h);
|
|
7669
7707
|
continue;
|
|
7670
7708
|
}
|
|
7671
|
-
const v =
|
|
7709
|
+
const v = to(y, h);
|
|
7672
7710
|
n.paint(x, v);
|
|
7673
7711
|
}
|
|
7674
7712
|
})(d), f);
|
|
@@ -7676,11 +7714,11 @@ function mo(e) {
|
|
|
7676
7714
|
});
|
|
7677
7715
|
};
|
|
7678
7716
|
}
|
|
7679
|
-
const Di = "FIBO:",
|
|
7717
|
+
const Di = "FIBO:", tf = /\uE000FIBO:(\d+)\uE001/g, Gi = [];
|
|
7680
7718
|
function Pe(e) {
|
|
7681
7719
|
return typeof e == "string" ? e : e == null ? "" : String(e);
|
|
7682
7720
|
}
|
|
7683
|
-
function
|
|
7721
|
+
function ef(e) {
|
|
7684
7722
|
return e.replace(/\uE000FIBO:(\d+)\uE001/g, (o, t) => {
|
|
7685
7723
|
const i = Gi[Number(t)];
|
|
7686
7724
|
return i == null ? "" : String(i.value);
|
|
@@ -7691,24 +7729,24 @@ function J(e) {
|
|
|
7691
7729
|
}
|
|
7692
7730
|
function _o(e) {
|
|
7693
7731
|
const o = [];
|
|
7694
|
-
for (const t of Pe(e).matchAll(
|
|
7732
|
+
for (const t of Pe(e).matchAll(tf)) {
|
|
7695
7733
|
const i = Gi[Number(t[1])];
|
|
7696
7734
|
i && o.push(i);
|
|
7697
7735
|
}
|
|
7698
7736
|
return o;
|
|
7699
7737
|
}
|
|
7700
|
-
const
|
|
7738
|
+
const rf = 16;
|
|
7701
7739
|
function ho(e) {
|
|
7702
7740
|
let o = Pe(e);
|
|
7703
|
-
for (let t = 0; t <
|
|
7741
|
+
for (let t = 0; t < rf; t++) {
|
|
7704
7742
|
if (!o.includes(Di)) return o;
|
|
7705
|
-
const i =
|
|
7743
|
+
const i = ef(o);
|
|
7706
7744
|
if (i === o) return o;
|
|
7707
7745
|
o = i;
|
|
7708
7746
|
}
|
|
7709
7747
|
return o;
|
|
7710
7748
|
}
|
|
7711
|
-
function
|
|
7749
|
+
function nf(e, o) {
|
|
7712
7750
|
if (!(typeof o != "string" || !J(o)))
|
|
7713
7751
|
for (const t of _o(o))
|
|
7714
7752
|
e.bindSignal(t);
|
|
@@ -7722,26 +7760,26 @@ function Jt(e, o) {
|
|
|
7722
7760
|
return;
|
|
7723
7761
|
}
|
|
7724
7762
|
if (typeof o == "string") {
|
|
7725
|
-
|
|
7763
|
+
nf(e, o);
|
|
7726
7764
|
return;
|
|
7727
7765
|
}
|
|
7728
7766
|
if (Array.isArray(o))
|
|
7729
7767
|
for (const t of o) Jt(e, t);
|
|
7730
7768
|
}
|
|
7731
|
-
function
|
|
7769
|
+
function sf(e) {
|
|
7732
7770
|
return typeof e == "string" && J(e) ? ho(e) : e;
|
|
7733
7771
|
}
|
|
7734
|
-
function
|
|
7772
|
+
function ff(e) {
|
|
7735
7773
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
7736
7774
|
}
|
|
7737
|
-
function
|
|
7775
|
+
function af(e) {
|
|
7738
7776
|
e.display !== "none" && (e.display = "flex", (e.alignItems == null || e.alignItems === "") && (e.alignItems = "center"), (e.justifyContent == null || e.justifyContent === "") && (e.justifyContent = "center")), e.margin == null && (e.marginLeft == null && (e.marginLeft = "auto"), e.marginRight == null && (e.marginRight = "auto"));
|
|
7739
7777
|
}
|
|
7740
|
-
function
|
|
7778
|
+
function cf(e, o) {
|
|
7741
7779
|
const { children: t, ...i } = o, r = t !== void 0 ? t : e;
|
|
7742
7780
|
return { nodes: r == null ? [] : Array.isArray(r) ? r : [r], rest: i };
|
|
7743
7781
|
}
|
|
7744
|
-
class
|
|
7782
|
+
class lf extends go {
|
|
7745
7783
|
children(o) {
|
|
7746
7784
|
return Jt(this, o), super.children(o);
|
|
7747
7785
|
}
|
|
@@ -7758,11 +7796,11 @@ class af extends go {
|
|
|
7758
7796
|
// instead of clipping overflowing children.
|
|
7759
7797
|
this.isHug() ? "w-auto self-auto" : "w-full min-w-0 min-h-0 self-stretch",
|
|
7760
7798
|
...this._classNames
|
|
7761
|
-
], { nodes: t, rest: i } =
|
|
7762
|
-
return
|
|
7799
|
+
], { nodes: t, rest: i } = cf(this.processChildren(), this._props), { className: r, style: n, ...s } = i, f = [...o, r].filter(Boolean).join(" "), a = t.map(sf), u = { ...this.getStyle(), ...ff(n) };
|
|
7800
|
+
return af(u), l.createElement(
|
|
7763
7801
|
"div",
|
|
7764
7802
|
{
|
|
7765
|
-
style:
|
|
7803
|
+
style: u,
|
|
7766
7804
|
...s,
|
|
7767
7805
|
className: f
|
|
7768
7806
|
},
|
|
@@ -7770,27 +7808,27 @@ class af extends go {
|
|
|
7770
7808
|
);
|
|
7771
7809
|
}
|
|
7772
7810
|
}
|
|
7773
|
-
const
|
|
7811
|
+
const Tc = mo(lf);
|
|
7774
7812
|
function Hi(e) {
|
|
7775
7813
|
return e === "start" || e === "center" || e === "end" ? e : e === "between" || e === "space-between" || e === "spaceBetween" ? "spaceBetween" : e === "around" || e === "space-around" || e === "spaceAround" ? "spaceAround" : e === "evenly" || e === "space-evenly" || e === "spaceEvenly" ? "spaceEvenly" : "start";
|
|
7776
7814
|
}
|
|
7777
7815
|
function Xi(e) {
|
|
7778
7816
|
return e === "start" || e === "center" || e === "end" || e === "stretch" ? e : "start";
|
|
7779
7817
|
}
|
|
7780
|
-
function
|
|
7818
|
+
function uf(e) {
|
|
7781
7819
|
return e != null && typeof e == "object" && !Array.isArray(e) && typeof e.subscribe == "function" && "value" in e;
|
|
7782
7820
|
}
|
|
7783
|
-
function
|
|
7784
|
-
return e == null ? [] : typeof e == "function" ? [...e() ?? []] :
|
|
7821
|
+
function bf(e) {
|
|
7822
|
+
return e == null ? [] : typeof e == "function" ? [...e() ?? []] : uf(e) ? [...e.value ?? []] : [...e];
|
|
7785
7823
|
}
|
|
7786
|
-
function
|
|
7824
|
+
function hf(e, o) {
|
|
7787
7825
|
if (e != null && typeof e == "object") {
|
|
7788
7826
|
const t = e, i = t.id ?? t._id ?? t.key;
|
|
7789
7827
|
if (typeof i == "string" || typeof i == "number") return i;
|
|
7790
7828
|
}
|
|
7791
7829
|
return typeof e == "string" || typeof e == "number" ? e : o;
|
|
7792
7830
|
}
|
|
7793
|
-
class
|
|
7831
|
+
class df extends go {
|
|
7794
7832
|
constructor(t, i) {
|
|
7795
7833
|
super();
|
|
7796
7834
|
c(this, "_source");
|
|
@@ -7815,15 +7853,15 @@ class bf extends go {
|
|
|
7815
7853
|
return this._keyBy = t, this;
|
|
7816
7854
|
}
|
|
7817
7855
|
build() {
|
|
7818
|
-
const t =
|
|
7819
|
-
const a = i ? i(s, f) : s,
|
|
7820
|
-
return
|
|
7856
|
+
const t = bf(this._source), i = this._renderItem, r = this._keyBy, n = t.map((s, f) => {
|
|
7857
|
+
const a = i ? i(s, f) : s, u = vo(a), d = r ? r(s, f) : hf(s, f);
|
|
7858
|
+
return l.isValidElement(u) ? l.cloneElement(u, { key: d }) : pi(u, f);
|
|
7821
7859
|
});
|
|
7822
|
-
return
|
|
7860
|
+
return l.createElement(l.Fragment, null, ...n);
|
|
7823
7861
|
}
|
|
7824
7862
|
}
|
|
7825
|
-
const Vi = mo(
|
|
7826
|
-
function
|
|
7863
|
+
const Vi = mo(df);
|
|
7864
|
+
function pf(e, o) {
|
|
7827
7865
|
if (!(typeof o != "string" || !J(o)))
|
|
7828
7866
|
for (const t of _o(o))
|
|
7829
7867
|
e.bindSignal(t);
|
|
@@ -7837,20 +7875,20 @@ function Qt(e, o) {
|
|
|
7837
7875
|
return;
|
|
7838
7876
|
}
|
|
7839
7877
|
if (typeof o == "string") {
|
|
7840
|
-
|
|
7878
|
+
pf(e, o);
|
|
7841
7879
|
return;
|
|
7842
7880
|
}
|
|
7843
7881
|
if (Array.isArray(o))
|
|
7844
7882
|
for (const t of o) Qt(e, t);
|
|
7845
7883
|
}
|
|
7846
|
-
function
|
|
7884
|
+
function xf(e) {
|
|
7847
7885
|
return typeof e == "string" && J(e) ? ho(e) : e;
|
|
7848
7886
|
}
|
|
7849
|
-
function
|
|
7887
|
+
function gf(e, o) {
|
|
7850
7888
|
const { children: t, ...i } = o, r = t !== void 0 ? t : e;
|
|
7851
7889
|
return { nodes: r == null ? [] : Array.isArray(r) ? r : [r], rest: i };
|
|
7852
7890
|
}
|
|
7853
|
-
class
|
|
7891
|
+
class mf extends go {
|
|
7854
7892
|
constructor() {
|
|
7855
7893
|
super(...arguments);
|
|
7856
7894
|
c(this, "_mainAxisAlignment", "start");
|
|
@@ -7919,11 +7957,11 @@ class xf extends go {
|
|
|
7919
7957
|
i[this._crossAxisAlignment],
|
|
7920
7958
|
this._size ? r[this._size] : "",
|
|
7921
7959
|
...this._classNames
|
|
7922
|
-
], s = this.getStyle(), { nodes: f, rest: a } =
|
|
7960
|
+
], s = this.getStyle(), { nodes: f, rest: a } = gf(this.processChildren(), this._props), { className: u, style: d, ...g } = a, h = [...n, u].filter(Boolean).join(" "), w = f.map(xf), S = {
|
|
7923
7961
|
...s,
|
|
7924
7962
|
...d && typeof d == "object" ? d : {}
|
|
7925
7963
|
};
|
|
7926
|
-
return this._spacing != null && this._spacing !== "" && (typeof this._spacing == "number" ? S.gap = `${this._spacing}px` : isNaN(Number(this._spacing)) ? S.gap = this._spacing : S.gap = `${Number(this._spacing) * 4}px`),
|
|
7964
|
+
return this._spacing != null && this._spacing !== "" && (typeof this._spacing == "number" ? S.gap = `${this._spacing}px` : isNaN(Number(this._spacing)) ? S.gap = this._spacing : S.gap = `${Number(this._spacing) * 4}px`), l.createElement(
|
|
7927
7965
|
"div",
|
|
7928
7966
|
{
|
|
7929
7967
|
style: S,
|
|
@@ -7934,8 +7972,8 @@ class xf extends go {
|
|
|
7934
7972
|
);
|
|
7935
7973
|
}
|
|
7936
7974
|
}
|
|
7937
|
-
const
|
|
7938
|
-
function
|
|
7975
|
+
const Ec = mo(mf);
|
|
7976
|
+
function vf(e, o) {
|
|
7939
7977
|
if (!(typeof o != "string" || !J(o)))
|
|
7940
7978
|
for (const t of _o(o))
|
|
7941
7979
|
e.bindSignal(t);
|
|
@@ -7949,20 +7987,20 @@ function oe(e, o) {
|
|
|
7949
7987
|
return;
|
|
7950
7988
|
}
|
|
7951
7989
|
if (typeof o == "string") {
|
|
7952
|
-
|
|
7990
|
+
vf(e, o);
|
|
7953
7991
|
return;
|
|
7954
7992
|
}
|
|
7955
7993
|
if (Array.isArray(o))
|
|
7956
7994
|
for (const t of o) oe(e, t);
|
|
7957
7995
|
}
|
|
7958
|
-
function
|
|
7996
|
+
function wf(e) {
|
|
7959
7997
|
return typeof e == "string" && J(e) ? ho(e) : e;
|
|
7960
7998
|
}
|
|
7961
|
-
function
|
|
7999
|
+
function yf(e, o) {
|
|
7962
8000
|
const t = o !== void 0 ? o : e;
|
|
7963
8001
|
return t == null ? [] : Array.isArray(t) ? t : [t];
|
|
7964
8002
|
}
|
|
7965
|
-
const
|
|
8003
|
+
const kf = /* @__PURE__ */ new Set([
|
|
7966
8004
|
"script",
|
|
7967
8005
|
"iframe",
|
|
7968
8006
|
"object",
|
|
@@ -7990,48 +8028,48 @@ const wf = /* @__PURE__ */ new Set([
|
|
|
7990
8028
|
"source",
|
|
7991
8029
|
"track",
|
|
7992
8030
|
"wbr"
|
|
7993
|
-
]),
|
|
7994
|
-
function
|
|
8031
|
+
]), _f = /^[a-z][a-z0-9]*$/;
|
|
8032
|
+
function Sf(e) {
|
|
7995
8033
|
if (typeof e != "string") return "div";
|
|
7996
8034
|
const o = e.trim().toLowerCase();
|
|
7997
|
-
return !
|
|
8035
|
+
return !_f.test(o) || kf.has(o) ? "div" : o;
|
|
7998
8036
|
}
|
|
7999
8037
|
function Yt(e, o) {
|
|
8000
8038
|
const t = `fibo-${o}-`;
|
|
8001
8039
|
return e.some((i) => i.startsWith(t));
|
|
8002
8040
|
}
|
|
8003
|
-
function
|
|
8041
|
+
function Cf(e) {
|
|
8004
8042
|
return typeof e == "number" ? `${e}px` : String(e);
|
|
8005
8043
|
}
|
|
8006
|
-
function
|
|
8044
|
+
function rt(e, o) {
|
|
8007
8045
|
const t = `env(safe-area-inset-${o}, 0px)`;
|
|
8008
8046
|
if (e == null || e === "") return t;
|
|
8009
|
-
const i =
|
|
8047
|
+
const i = Cf(e);
|
|
8010
8048
|
return i.includes("safe-area-inset") ? i : `max(${i}, ${t})`;
|
|
8011
8049
|
}
|
|
8012
|
-
function
|
|
8050
|
+
function zf(e, o) {
|
|
8013
8051
|
const t = { ...e }, i = t;
|
|
8014
8052
|
for (const r of ["padding", "margin"]) {
|
|
8015
8053
|
const n = i[r];
|
|
8016
8054
|
if (n == null || n === "") continue;
|
|
8017
|
-
const s = `${r}Top`, f = `${r}Right`, a = `${r}Bottom`,
|
|
8018
|
-
if (!(i[s] != null || i[f] != null || i[a] != null || i[
|
|
8019
|
-
const [g, h, w, S] =
|
|
8020
|
-
i[s] == null && !o.has(`${r}-top`) && (i[s] = g), i[f] == null && !o.has(`${r}-right`) && (i[f] = h), i[a] == null && !o.has(`${r}-bottom`) && (i[a] = w), i[
|
|
8055
|
+
const s = `${r}Top`, f = `${r}Right`, a = `${r}Bottom`, u = `${r}Left`;
|
|
8056
|
+
if (!(i[s] != null || i[f] != null || i[a] != null || i[u] != null || o.has(`${r}-top`) || o.has(`${r}-right`) || o.has(`${r}-bottom`) || o.has(`${r}-left`))) continue;
|
|
8057
|
+
const [g, h, w, S] = lt(String(n));
|
|
8058
|
+
i[s] == null && !o.has(`${r}-top`) && (i[s] = g), i[f] == null && !o.has(`${r}-right`) && (i[f] = h), i[a] == null && !o.has(`${r}-bottom`) && (i[a] = w), i[u] == null && !o.has(`${r}-left`) && (i[u] = S), delete i[r];
|
|
8021
8059
|
}
|
|
8022
8060
|
return t;
|
|
8023
8061
|
}
|
|
8024
|
-
function
|
|
8062
|
+
function Tf(e, o) {
|
|
8025
8063
|
const t = e;
|
|
8026
8064
|
if (t.padding != null && t.padding !== "") {
|
|
8027
|
-
const [n, s, f, a] =
|
|
8065
|
+
const [n, s, f, a] = lt(String(t.padding));
|
|
8028
8066
|
t.paddingTop == null && (t.paddingTop = n), t.paddingRight == null && (t.paddingRight = s), t.paddingBottom == null && (t.paddingBottom = f), t.paddingLeft == null && (t.paddingLeft = a), delete t.padding;
|
|
8029
8067
|
}
|
|
8030
8068
|
t.paddingLeft == null && o.left != null && (t.paddingLeft = o.left), t.paddingRight == null && o.right != null && (t.paddingRight = o.right), t.paddingTop == null && o.top != null && (t.paddingTop = o.top), t.paddingBottom == null && o.bottom != null && (t.paddingBottom = o.bottom);
|
|
8031
8069
|
const i = t.paddingTop != null && t.paddingTop !== "", r = t.paddingBottom != null && t.paddingBottom !== "";
|
|
8032
|
-
t.paddingLeft =
|
|
8070
|
+
t.paddingLeft = rt(t.paddingLeft, "left"), t.paddingRight = rt(t.paddingRight, "right"), i && (t.paddingTop = rt(t.paddingTop, "top")), r && (t.paddingBottom = rt(t.paddingBottom, "bottom"));
|
|
8033
8071
|
}
|
|
8034
|
-
function
|
|
8072
|
+
function Ef(e, o, t, i) {
|
|
8035
8073
|
const r = e, n = r.width != null || i.has("width") || Yt(t, "width");
|
|
8036
8074
|
if (o) {
|
|
8037
8075
|
n || (r.width = "auto");
|
|
@@ -8041,11 +8079,11 @@ function zf(e, o, t, i) {
|
|
|
8041
8079
|
const s = r.margin != null && r.margin !== "", f = s || r.marginLeft != null || r.marginInlineStart != null || i.has("margin-left") || Yt(t, "margin-left"), a = s || r.marginRight != null || r.marginInlineEnd != null || i.has("margin-right") || Yt(t, "margin-right");
|
|
8042
8080
|
f || (r.marginLeft = "auto"), a || (r.marginRight = "auto");
|
|
8043
8081
|
}
|
|
8044
|
-
function
|
|
8045
|
-
const f = o ? Po({ ...e, ...o }) : { ...e }, a =
|
|
8046
|
-
return !(a.maxWidth != null || Yt(r, "max-width") || n.has("max-width")) && t != null && t !== "" && (a.maxWidth =
|
|
8082
|
+
function Af(e, o, t, i, r, n, s) {
|
|
8083
|
+
const f = o ? Po({ ...e, ...o }) : { ...e }, a = zf(f, n);
|
|
8084
|
+
return !(a.maxWidth != null || Yt(r, "max-width") || n.has("max-width")) && t != null && t !== "" && (a.maxWidth = to("maxWidth", t)), Ef(a, i, r, n), Tf(a, s), a;
|
|
8047
8085
|
}
|
|
8048
|
-
class
|
|
8086
|
+
class Rf extends go {
|
|
8049
8087
|
constructor() {
|
|
8050
8088
|
super(...arguments);
|
|
8051
8089
|
c(this, "_userPad", {});
|
|
@@ -8059,31 +8097,31 @@ class Ef extends go {
|
|
|
8059
8097
|
padding(t, i) {
|
|
8060
8098
|
if (i !== void 0 || t != null && typeof t == "object")
|
|
8061
8099
|
return super.padding(t, i);
|
|
8062
|
-
const r = t, n =
|
|
8063
|
-
return this._boxLonghands.has("padding-top") || (this._userPad.top = s), this._boxLonghands.has("padding-right") || (this._userPad.right = f), this._boxLonghands.has("padding-bottom") || (this._userPad.bottom = a), this._boxLonghands.has("padding-left") || (this._userPad.left =
|
|
8100
|
+
const r = t, n = to("padding", r), [s, f, a, u] = lt(n);
|
|
8101
|
+
return this._boxLonghands.has("padding-top") || (this._userPad.top = s), this._boxLonghands.has("padding-right") || (this._userPad.right = f), this._boxLonghands.has("padding-bottom") || (this._userPad.bottom = a), this._boxLonghands.has("padding-left") || (this._userPad.left = u), super.padding(r);
|
|
8064
8102
|
}
|
|
8065
8103
|
paddingHorizontal(t) {
|
|
8066
|
-
const i =
|
|
8104
|
+
const i = to("paddingLeft", t);
|
|
8067
8105
|
return this._userPad.left = i, this._userPad.right = i, super.paddingHorizontal(t);
|
|
8068
8106
|
}
|
|
8069
8107
|
paddingVertical(t) {
|
|
8070
|
-
const i =
|
|
8108
|
+
const i = to("paddingTop", t);
|
|
8071
8109
|
return this._userPad.top = i, this._userPad.bottom = i, super.paddingVertical(t);
|
|
8072
8110
|
}
|
|
8073
8111
|
paddingLeft(t) {
|
|
8074
|
-
const i =
|
|
8112
|
+
const i = to("paddingLeft", t);
|
|
8075
8113
|
return this._userPad.left = i, this._boxLonghands.add("padding-left"), this.addClassName(P.register("padding-left", i)), this;
|
|
8076
8114
|
}
|
|
8077
8115
|
paddingRight(t) {
|
|
8078
|
-
const i =
|
|
8116
|
+
const i = to("paddingRight", t);
|
|
8079
8117
|
return this._userPad.right = i, this._boxLonghands.add("padding-right"), this.addClassName(P.register("padding-right", i)), this;
|
|
8080
8118
|
}
|
|
8081
8119
|
paddingTop(t) {
|
|
8082
|
-
const i =
|
|
8120
|
+
const i = to("paddingTop", t);
|
|
8083
8121
|
return this._userPad.top = i, this._boxLonghands.add("padding-top"), this.addClassName(P.register("padding-top", i)), this;
|
|
8084
8122
|
}
|
|
8085
8123
|
paddingBottom(t) {
|
|
8086
|
-
const i =
|
|
8124
|
+
const i = to("paddingBottom", t);
|
|
8087
8125
|
return this._userPad.bottom = i, this._boxLonghands.add("padding-bottom"), this.addClassName(P.register("padding-bottom", i)), this;
|
|
8088
8126
|
}
|
|
8089
8127
|
build() {
|
|
@@ -8095,8 +8133,8 @@ class Ef extends go {
|
|
|
8095
8133
|
tag: s,
|
|
8096
8134
|
dangerouslySetInnerHTML: f,
|
|
8097
8135
|
maxWidth: a,
|
|
8098
|
-
...
|
|
8099
|
-
} = this._props, d = this.isHug(), g =
|
|
8136
|
+
...u
|
|
8137
|
+
} = this._props, d = this.isHug(), g = yf(this.processChildren(), t).map(wf), h = Af(
|
|
8100
8138
|
this.getStyle(),
|
|
8101
8139
|
r,
|
|
8102
8140
|
a,
|
|
@@ -8105,8 +8143,8 @@ class Ef extends go {
|
|
|
8105
8143
|
this._boxLonghands,
|
|
8106
8144
|
this._userPad
|
|
8107
8145
|
), w = [
|
|
8108
|
-
P.register("padding-left", String(h.paddingLeft ??
|
|
8109
|
-
P.register("padding-right", String(h.paddingRight ??
|
|
8146
|
+
P.register("padding-left", String(h.paddingLeft ?? rt(void 0, "left"))),
|
|
8147
|
+
P.register("padding-right", String(h.paddingRight ?? rt(void 0, "right")))
|
|
8110
8148
|
];
|
|
8111
8149
|
h.paddingTop != null && String(h.paddingTop).includes("safe-area-inset") && w.push(P.register("padding-top", String(h.paddingTop))), h.paddingBottom != null && String(h.paddingBottom).includes("safe-area-inset") && w.push(P.register("padding-bottom", String(h.paddingBottom)));
|
|
8112
8150
|
const S = [
|
|
@@ -8115,11 +8153,11 @@ class Ef extends go {
|
|
|
8115
8153
|
this.getClassName(),
|
|
8116
8154
|
i,
|
|
8117
8155
|
...w
|
|
8118
|
-
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), y =
|
|
8119
|
-
return
|
|
8156
|
+
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), y = Sf(n ?? s);
|
|
8157
|
+
return l.createElement(
|
|
8120
8158
|
y,
|
|
8121
8159
|
{
|
|
8122
|
-
...
|
|
8160
|
+
...u,
|
|
8123
8161
|
className: S,
|
|
8124
8162
|
style: h
|
|
8125
8163
|
},
|
|
@@ -8127,8 +8165,8 @@ class Ef extends go {
|
|
|
8127
8165
|
);
|
|
8128
8166
|
}
|
|
8129
8167
|
}
|
|
8130
|
-
const
|
|
8131
|
-
function
|
|
8168
|
+
const Ac = mo(Rf);
|
|
8169
|
+
function Bf(e, o) {
|
|
8132
8170
|
if (!(typeof o != "string" || !J(o)))
|
|
8133
8171
|
for (const t of _o(o))
|
|
8134
8172
|
e.bindSignal(t);
|
|
@@ -8142,29 +8180,29 @@ function te(e, o) {
|
|
|
8142
8180
|
return;
|
|
8143
8181
|
}
|
|
8144
8182
|
if (typeof o == "string") {
|
|
8145
|
-
|
|
8183
|
+
Bf(e, o);
|
|
8146
8184
|
return;
|
|
8147
8185
|
}
|
|
8148
8186
|
if (Array.isArray(o))
|
|
8149
8187
|
for (const t of o) te(e, t);
|
|
8150
8188
|
}
|
|
8151
|
-
function
|
|
8189
|
+
function If(e) {
|
|
8152
8190
|
return typeof e == "string" && J(e) ? ho(e) : e;
|
|
8153
8191
|
}
|
|
8154
|
-
function
|
|
8192
|
+
function Ff(e, o) {
|
|
8155
8193
|
const { children: t, ...i } = o, r = t !== void 0 ? t : e;
|
|
8156
|
-
return { nodes: (r == null ? [] : Array.isArray(r) ? r : [r]).map(
|
|
8194
|
+
return { nodes: (r == null ? [] : Array.isArray(r) ? r : [r]).map(If), rest: i };
|
|
8157
8195
|
}
|
|
8158
|
-
function
|
|
8196
|
+
function Nf(e, o) {
|
|
8159
8197
|
return !o || typeof o != "object" || Array.isArray(o) ? { ...e } : { ...e, ...o };
|
|
8160
8198
|
}
|
|
8161
|
-
function
|
|
8199
|
+
function $f(e) {
|
|
8162
8200
|
return e === "row-reverse" ? "flex-row-reverse" : e === "column" ? "flex-col" : e === "column-reverse" ? "flex-col-reverse" : "flex-row";
|
|
8163
8201
|
}
|
|
8164
|
-
function
|
|
8202
|
+
function Mf(e) {
|
|
8165
8203
|
return e === "wrap" ? "flex-wrap" : e === "wrap-reverse" ? "flex-wrap-reverse" : "";
|
|
8166
8204
|
}
|
|
8167
|
-
class
|
|
8205
|
+
class Lf extends go {
|
|
8168
8206
|
constructor() {
|
|
8169
8207
|
super(...arguments);
|
|
8170
8208
|
c(this, "_mainAxisAlignment", "start");
|
|
@@ -8216,41 +8254,41 @@ class $f extends go {
|
|
|
8216
8254
|
center: "items-center",
|
|
8217
8255
|
end: "items-end",
|
|
8218
8256
|
stretch: "items-stretch"
|
|
8219
|
-
}, { nodes: r, rest: n } =
|
|
8257
|
+
}, { nodes: r, rest: n } = Ff(this.processChildren(), this._props), {
|
|
8220
8258
|
className: s,
|
|
8221
8259
|
style: f,
|
|
8222
8260
|
dangerouslySetInnerHTML: a,
|
|
8223
|
-
...
|
|
8224
|
-
} = n, d =
|
|
8261
|
+
...u
|
|
8262
|
+
} = n, d = Nf(this.getStyle(), f), h = [...[
|
|
8225
8263
|
"fibo-row",
|
|
8226
8264
|
"flex",
|
|
8227
|
-
|
|
8228
|
-
|
|
8265
|
+
$f(d.flexDirection),
|
|
8266
|
+
Mf(d.flexWrap),
|
|
8229
8267
|
// min-w-0: flex item can shrink below content intrinsic width (grid/flex overflow)
|
|
8230
8268
|
this.isHug() ? "w-auto self-auto shrink-0" : "w-full min-w-0 self-stretch",
|
|
8231
8269
|
t[this._mainAxisAlignment],
|
|
8232
8270
|
i[this._crossAxisAlignment],
|
|
8233
8271
|
...this._classNames
|
|
8234
8272
|
], s].filter(Boolean).join(" ");
|
|
8235
|
-
return
|
|
8273
|
+
return l.createElement(
|
|
8236
8274
|
"div",
|
|
8237
8275
|
{
|
|
8238
8276
|
style: d,
|
|
8239
|
-
...
|
|
8277
|
+
...u,
|
|
8240
8278
|
className: h
|
|
8241
8279
|
},
|
|
8242
8280
|
...r
|
|
8243
8281
|
);
|
|
8244
8282
|
}
|
|
8245
8283
|
}
|
|
8246
|
-
const
|
|
8284
|
+
const Rc = mo(Lf);
|
|
8247
8285
|
function ni(e) {
|
|
8248
8286
|
return typeof e == "number" ? `${e}px` : e;
|
|
8249
8287
|
}
|
|
8250
|
-
function
|
|
8288
|
+
function Pf(e) {
|
|
8251
8289
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
8252
8290
|
}
|
|
8253
|
-
class
|
|
8291
|
+
class Of extends go {
|
|
8254
8292
|
constructor() {
|
|
8255
8293
|
super(...arguments);
|
|
8256
8294
|
c(this, "_height");
|
|
@@ -8276,10 +8314,10 @@ class Lf extends go {
|
|
|
8276
8314
|
return this._grow = Number.isFinite(i) ? i : 1, this._expand = !0, this;
|
|
8277
8315
|
}
|
|
8278
8316
|
build() {
|
|
8279
|
-
const { className: t, style: i, ...r } = this._props, n = { ...this.getStyle(), ...
|
|
8317
|
+
const { className: t, style: i, ...r } = this._props, n = { ...this.getStyle(), ...Pf(i) }, s = this._height != null || this._width != null, f = this._expand ?? !s;
|
|
8280
8318
|
this._height != null && (n.height = ni(this._height)), this._width != null && (n.width = ni(this._width)), f ? (n.flex = `${this._grow ?? 1} 1 0%`, n.alignSelf = n.alignSelf ?? "stretch", n.minWidth = n.minWidth ?? 0, n.minHeight = n.minHeight ?? 0) : n.flex = "0 0 auto";
|
|
8281
8319
|
const a = ["fibo-spacer", this.getClassName(), t].filter(Boolean).join(" ");
|
|
8282
|
-
return
|
|
8320
|
+
return l.createElement("div", {
|
|
8283
8321
|
...r,
|
|
8284
8322
|
style: n,
|
|
8285
8323
|
className: a,
|
|
@@ -8287,8 +8325,8 @@ class Lf extends go {
|
|
|
8287
8325
|
});
|
|
8288
8326
|
}
|
|
8289
8327
|
}
|
|
8290
|
-
const
|
|
8291
|
-
function
|
|
8328
|
+
const Bc = mo(Of);
|
|
8329
|
+
function Wf(e, o) {
|
|
8292
8330
|
if (!(typeof o != "string" || !J(o)))
|
|
8293
8331
|
for (const t of _o(o))
|
|
8294
8332
|
e.bindSignal(t);
|
|
@@ -8302,23 +8340,23 @@ function Co(e, o) {
|
|
|
8302
8340
|
return;
|
|
8303
8341
|
}
|
|
8304
8342
|
if (typeof o == "string") {
|
|
8305
|
-
|
|
8343
|
+
Wf(e, o);
|
|
8306
8344
|
return;
|
|
8307
8345
|
}
|
|
8308
8346
|
if (Array.isArray(o))
|
|
8309
8347
|
for (const t of o) Co(e, t);
|
|
8310
8348
|
}
|
|
8311
|
-
function
|
|
8349
|
+
function jf(e) {
|
|
8312
8350
|
return typeof e == "string" && J(e) ? ho(e) : e;
|
|
8313
8351
|
}
|
|
8314
8352
|
function he(e) {
|
|
8315
8353
|
return e == null || e === !1 ? null : typeof e == "string" ? J(e) ? ho(e) : e : vo(e);
|
|
8316
8354
|
}
|
|
8317
|
-
function
|
|
8355
|
+
function Df(e, o) {
|
|
8318
8356
|
const t = o !== void 0 ? o : e;
|
|
8319
|
-
return (t == null ? [] : Array.isArray(t) ? t : [t]).map(
|
|
8357
|
+
return (t == null ? [] : Array.isArray(t) ? t : [t]).map(jf);
|
|
8320
8358
|
}
|
|
8321
|
-
const
|
|
8359
|
+
const Gf = l.memo((e) => {
|
|
8322
8360
|
const {
|
|
8323
8361
|
height: o = 64,
|
|
8324
8362
|
sticky: t,
|
|
@@ -8328,10 +8366,10 @@ const jf = u.memo((e) => {
|
|
|
8328
8366
|
leading: s,
|
|
8329
8367
|
trailing: f,
|
|
8330
8368
|
title: a,
|
|
8331
|
-
role:
|
|
8369
|
+
role: u,
|
|
8332
8370
|
...d
|
|
8333
8371
|
} = e, g = Array.isArray(n) ? n : n == null ? [] : [n], h = s == null || s === !1 ? null : s, w = f == null || f === !1 ? null : f, S = a == null || a === !1 ? null : a;
|
|
8334
|
-
return
|
|
8372
|
+
return l.createElement(
|
|
8335
8373
|
"header",
|
|
8336
8374
|
{
|
|
8337
8375
|
...d,
|
|
@@ -8341,26 +8379,26 @@ const jf = u.memo((e) => {
|
|
|
8341
8379
|
i || ""
|
|
8342
8380
|
].filter(Boolean).join(" "),
|
|
8343
8381
|
style: { height: o, minHeight: o, ...r },
|
|
8344
|
-
role:
|
|
8382
|
+
role: u ?? "banner"
|
|
8345
8383
|
},
|
|
8346
|
-
h != null ?
|
|
8384
|
+
h != null ? l.createElement(
|
|
8347
8385
|
"div",
|
|
8348
8386
|
{ key: "leading", className: "fibo-header-leading shrink-0 flex items-center" },
|
|
8349
8387
|
h
|
|
8350
8388
|
) : null,
|
|
8351
|
-
S != null ?
|
|
8389
|
+
S != null ? l.createElement(
|
|
8352
8390
|
"span",
|
|
8353
8391
|
{ key: "title", className: "fibo-header-title flex-1 min-w-0" },
|
|
8354
8392
|
S
|
|
8355
8393
|
) : null,
|
|
8356
8394
|
...g,
|
|
8357
|
-
w != null ?
|
|
8395
|
+
w != null ? l.createElement(
|
|
8358
8396
|
"div",
|
|
8359
8397
|
{ key: "trailing", className: "fibo-header-trailing shrink-0 flex items-center" },
|
|
8360
8398
|
w
|
|
8361
8399
|
) : null
|
|
8362
8400
|
);
|
|
8363
|
-
}),
|
|
8401
|
+
}), Rt = class Rt extends go {
|
|
8364
8402
|
constructor() {
|
|
8365
8403
|
super(...arguments);
|
|
8366
8404
|
c(this, "_height", 64);
|
|
@@ -8391,7 +8429,7 @@ const jf = u.memo((e) => {
|
|
|
8391
8429
|
}
|
|
8392
8430
|
sticky(t = !0) {
|
|
8393
8431
|
if (t === !1)
|
|
8394
|
-
return this._sticky && (this.dropStickyStamp(),
|
|
8432
|
+
return this._sticky && (this.dropStickyStamp(), Rt.unstickSeq += 1, this.publishStickyOffset(`0px${" ".repeat(Rt.unstickSeq)}`)), this._sticky = !1, this;
|
|
8395
8433
|
this._sticky = !0, this._stickyTop = t === !0 ? 0 : t, this.dropStickyStamp();
|
|
8396
8434
|
const i = new Set(this._classNames);
|
|
8397
8435
|
return super.sticky(this._stickyTop), this._stickyStamp = this._classNames.filter((r) => !i.has(r)), this.syncStickyOffset(), this;
|
|
@@ -8423,24 +8461,24 @@ const jf = u.memo((e) => {
|
|
|
8423
8461
|
trailing: s,
|
|
8424
8462
|
title: f,
|
|
8425
8463
|
...a
|
|
8426
|
-
} = this._props,
|
|
8427
|
-
return
|
|
8464
|
+
} = this._props, u = [this.getClassName(), t].filter(Boolean).join(" "), d = r ? { ...this.getStyle(), ...r } : this.getStyle();
|
|
8465
|
+
return l.createElement(Gf, {
|
|
8428
8466
|
...a,
|
|
8429
8467
|
height: this._height,
|
|
8430
8468
|
sticky: this._sticky,
|
|
8431
|
-
className:
|
|
8469
|
+
className: u,
|
|
8432
8470
|
style: d,
|
|
8433
8471
|
leading: he(this._leading ?? n),
|
|
8434
8472
|
trailing: he(this._trailing ?? s),
|
|
8435
8473
|
title: he(this._title ?? f),
|
|
8436
|
-
children:
|
|
8474
|
+
children: Df(this.processChildren(), i)
|
|
8437
8475
|
});
|
|
8438
8476
|
}
|
|
8439
8477
|
};
|
|
8440
|
-
c(
|
|
8441
|
-
let Te =
|
|
8442
|
-
const
|
|
8443
|
-
function
|
|
8478
|
+
c(Rt, "unstickSeq", 0);
|
|
8479
|
+
let Te = Rt;
|
|
8480
|
+
const Hf = mo(Te);
|
|
8481
|
+
function Xf(e, o) {
|
|
8444
8482
|
const {
|
|
8445
8483
|
theme: t,
|
|
8446
8484
|
locale: i,
|
|
@@ -8449,7 +8487,7 @@ function Gf(e, o) {
|
|
|
8449
8487
|
style: s,
|
|
8450
8488
|
children: f,
|
|
8451
8489
|
overlays: a = [],
|
|
8452
|
-
rootRef:
|
|
8490
|
+
rootRef: u,
|
|
8453
8491
|
extendBody: d,
|
|
8454
8492
|
extendBehindHeader: g,
|
|
8455
8493
|
avoidKeyboard: h,
|
|
@@ -8459,7 +8497,7 @@ function Gf(e, o) {
|
|
|
8459
8497
|
t && y.set("theme", t), i && y.set("locale", i), Object.entries(r).forEach(([I, $]) => {
|
|
8460
8498
|
y.set(I, $);
|
|
8461
8499
|
});
|
|
8462
|
-
const x = a.length > 0 ?
|
|
8500
|
+
const x = a.length > 0 ? l.createElement(
|
|
8463
8501
|
"div",
|
|
8464
8502
|
{
|
|
8465
8503
|
key: "fibo-overlays",
|
|
@@ -8472,10 +8510,10 @@ function Gf(e, o) {
|
|
|
8472
8510
|
}
|
|
8473
8511
|
},
|
|
8474
8512
|
a.map(
|
|
8475
|
-
(I, $) =>
|
|
8513
|
+
(I, $) => l.createElement(
|
|
8476
8514
|
"div",
|
|
8477
8515
|
{
|
|
8478
|
-
key:
|
|
8516
|
+
key: l.isValidElement(I) && I.key != null && I.key !== "" ? String(I.key) : `fibo-overlay-slot-${$}`,
|
|
8479
8517
|
style: { pointerEvents: "auto" }
|
|
8480
8518
|
},
|
|
8481
8519
|
I
|
|
@@ -8508,12 +8546,12 @@ function Gf(e, o) {
|
|
|
8508
8546
|
paddingBottom: "var(--fibo-safe-bottom)",
|
|
8509
8547
|
paddingLeft: "var(--fibo-safe-left)"
|
|
8510
8548
|
});
|
|
8511
|
-
const O =
|
|
8549
|
+
const O = l.createElement(
|
|
8512
8550
|
"div",
|
|
8513
8551
|
{
|
|
8514
8552
|
className: ["fibo-scaffold", n].filter(Boolean).join(" "),
|
|
8515
8553
|
style: v,
|
|
8516
|
-
ref:
|
|
8554
|
+
ref: u,
|
|
8517
8555
|
"data-extend-body": d ? "true" : void 0,
|
|
8518
8556
|
"data-extend-header": g ? "true" : void 0,
|
|
8519
8557
|
"data-keyboard": h === !1 ? void 0 : "on",
|
|
@@ -8522,39 +8560,39 @@ function Gf(e, o) {
|
|
|
8522
8560
|
},
|
|
8523
8561
|
x ? [f, x] : f
|
|
8524
8562
|
);
|
|
8525
|
-
return y.size > 0 ?
|
|
8563
|
+
return y.size > 0 ? l.createElement(zi, {
|
|
8526
8564
|
providers: y,
|
|
8527
8565
|
children: O
|
|
8528
8566
|
}) : O;
|
|
8529
8567
|
}
|
|
8530
|
-
function
|
|
8531
|
-
return
|
|
8568
|
+
function Vf(e) {
|
|
8569
|
+
return Xf(e, pn());
|
|
8532
8570
|
}
|
|
8533
|
-
function
|
|
8571
|
+
function Yf(e, o) {
|
|
8534
8572
|
if (!(typeof o != "string" || !J(o)))
|
|
8535
8573
|
for (const t of _o(o))
|
|
8536
8574
|
e.bindSignal(t);
|
|
8537
8575
|
}
|
|
8538
|
-
function
|
|
8576
|
+
function nt(e, o) {
|
|
8539
8577
|
if (typeof o == "function") {
|
|
8540
8578
|
try {
|
|
8541
|
-
|
|
8579
|
+
nt(e, o());
|
|
8542
8580
|
} catch {
|
|
8543
8581
|
}
|
|
8544
8582
|
return;
|
|
8545
8583
|
}
|
|
8546
8584
|
if (typeof o == "string") {
|
|
8547
|
-
|
|
8585
|
+
Yf(e, o);
|
|
8548
8586
|
return;
|
|
8549
8587
|
}
|
|
8550
8588
|
if (Array.isArray(o))
|
|
8551
|
-
for (const t of o)
|
|
8589
|
+
for (const t of o) nt(e, t);
|
|
8552
8590
|
}
|
|
8553
8591
|
function Xo(e) {
|
|
8554
8592
|
return typeof e == "string" && J(e) ? ho(e) : e;
|
|
8555
8593
|
}
|
|
8556
|
-
const
|
|
8557
|
-
class
|
|
8594
|
+
const tt = { flexShrink: 0 };
|
|
8595
|
+
class Uf extends go {
|
|
8558
8596
|
constructor() {
|
|
8559
8597
|
super(...arguments);
|
|
8560
8598
|
c(this, "_locale");
|
|
@@ -8577,10 +8615,10 @@ class Vf extends go {
|
|
|
8577
8615
|
c(this, "_onDrawer");
|
|
8578
8616
|
}
|
|
8579
8617
|
children(t) {
|
|
8580
|
-
return
|
|
8618
|
+
return nt(this, t), super.children(t);
|
|
8581
8619
|
}
|
|
8582
8620
|
props(t) {
|
|
8583
|
-
return t && "children" in t &&
|
|
8621
|
+
return t && "children" in t && nt(this, t.children), super.props(t);
|
|
8584
8622
|
}
|
|
8585
8623
|
locale(t) {
|
|
8586
8624
|
return this._locale = t, this;
|
|
@@ -8607,7 +8645,7 @@ class Vf extends go {
|
|
|
8607
8645
|
* set, this is a no-op (explicit chrome wins).
|
|
8608
8646
|
*/
|
|
8609
8647
|
navigationTitle(t) {
|
|
8610
|
-
return this._headerBar ? this : this.headerBar(
|
|
8648
|
+
return this._headerBar ? this : this.headerBar(Hf().title(t).sticky());
|
|
8611
8649
|
}
|
|
8612
8650
|
/**
|
|
8613
8651
|
* Flutter `Scaffold.bottomNavigationBar` — typically a {@link BottomAppBar}
|
|
@@ -8670,17 +8708,17 @@ class Vf extends go {
|
|
|
8670
8708
|
}
|
|
8671
8709
|
_bindBar(t) {
|
|
8672
8710
|
if (this._isLayoutBarConfig(t)) {
|
|
8673
|
-
|
|
8711
|
+
nt(this, t.children);
|
|
8674
8712
|
return;
|
|
8675
8713
|
}
|
|
8676
|
-
|
|
8714
|
+
nt(this, t);
|
|
8677
8715
|
}
|
|
8678
8716
|
_normalizeBar(t) {
|
|
8679
8717
|
return this._isLayoutBarConfig(t) ? {
|
|
8680
|
-
content:
|
|
8681
|
-
|
|
8718
|
+
content: l.createElement(
|
|
8719
|
+
l.Fragment,
|
|
8682
8720
|
null,
|
|
8683
|
-
...
|
|
8721
|
+
...zt(t.children).map(Xo)
|
|
8684
8722
|
),
|
|
8685
8723
|
fixed: t.fixed ?? !1
|
|
8686
8724
|
} : {
|
|
@@ -8689,10 +8727,10 @@ class Vf extends go {
|
|
|
8689
8727
|
};
|
|
8690
8728
|
}
|
|
8691
8729
|
_isLayoutBarConfig(t) {
|
|
8692
|
-
return !t || typeof t != "object" ||
|
|
8730
|
+
return !t || typeof t != "object" || l.isValidElement(t) || "build" in t && typeof t.build == "function" ? !1 : "children" in t && !("type" in t);
|
|
8693
8731
|
}
|
|
8694
8732
|
build() {
|
|
8695
|
-
var N, q, lo, Y, Go, Q, Fo, To, uo, Eo, wo,
|
|
8733
|
+
var N, q, lo, Y, Go, Q, Fo, To, uo, Eo, wo, ht, Ft, Ko, dt, pt, xt, gt, mt, qo, Nt, $t, Mt, Lt, No, Pt, Ot;
|
|
8696
8734
|
const {
|
|
8697
8735
|
children: t,
|
|
8698
8736
|
className: i,
|
|
@@ -8701,8 +8739,8 @@ class Vf extends go {
|
|
|
8701
8739
|
theme: s,
|
|
8702
8740
|
locale: f,
|
|
8703
8741
|
providers: a,
|
|
8704
|
-
...
|
|
8705
|
-
} = this._props, g = (t !== void 0 ?
|
|
8742
|
+
...u
|
|
8743
|
+
} = this._props, g = (t !== void 0 ? zt(t) : this.processChildren()).map(Xo), h = this._headerBar ? this._normalizeBar(this._headerBar) : void 0, w = this._bottomAppBar ? this._normalizeBar(this._bottomAppBar) : void 0, S = this._sideBarLeft ? this._normalizeBar(this._sideBarLeft) : void 0, y = this._sideBarRight ? this._normalizeBar(this._sideBarRight) : void 0, x = this._structure, v = x.bottomAppBar ?? x.footer, T = h && ((N = x.header) == null ? void 0 : N.visible) !== !1, O = w && (v == null ? void 0 : v.visible) !== !1, I = S && ((q = x.sidebarLeft) == null ? void 0 : q.visible) !== !1, $ = y && ((lo = x.sidebarRight) == null ? void 0 : lo.visible) !== !1, M = I && ((Y = x.sidebarLeft) == null ? void 0 : Y.fullHeight), W = $ && ((Go = x.sidebarRight) == null ? void 0 : Go.fullHeight), k = l.createElement(
|
|
8706
8744
|
"div",
|
|
8707
8745
|
{
|
|
8708
8746
|
key: "scaffold-middle",
|
|
@@ -8717,7 +8755,7 @@ class Vf extends go {
|
|
|
8717
8755
|
}
|
|
8718
8756
|
},
|
|
8719
8757
|
[
|
|
8720
|
-
I && !M &&
|
|
8758
|
+
I && !M && l.createElement("div", {
|
|
8721
8759
|
key: "sidebar-left",
|
|
8722
8760
|
className: "z-20",
|
|
8723
8761
|
style: {
|
|
@@ -8725,15 +8763,15 @@ class Vf extends go {
|
|
|
8725
8763
|
position: ((Fo = x.sidebarLeft) == null ? void 0 : Fo.mode) === "over" ? "absolute" : ((To = x.sidebarLeft) == null ? void 0 : To.behavior) === "fixed" || S.fixed ? "sticky" : void 0,
|
|
8726
8764
|
top: ((uo = x.sidebarLeft) == null ? void 0 : uo.mode) === "over" || ((Eo = x.sidebarLeft) == null ? void 0 : Eo.behavior) === "fixed" || S.fixed ? 0 : void 0,
|
|
8727
8765
|
left: ((wo = x.sidebarLeft) == null ? void 0 : wo.mode) === "over" ? "0px" : void 0,
|
|
8728
|
-
height: ((
|
|
8729
|
-
zIndex: ((
|
|
8766
|
+
height: ((ht = x.sidebarLeft) == null ? void 0 : ht.mode) === "over" || ((Ft = x.sidebarLeft) == null ? void 0 : Ft.behavior) === "fixed" || S.fixed ? "100%" : void 0,
|
|
8767
|
+
zIndex: ((Ko = x.sidebarLeft) == null ? void 0 : Ko.mode) === "over" ? 20 : void 0,
|
|
8730
8768
|
overflowY: "auto",
|
|
8731
8769
|
borderRight: "1px solid var(--fibo-outline, #e0e0e0)",
|
|
8732
8770
|
backgroundColor: "var(--fibo-surface, #ffffff)",
|
|
8733
|
-
...
|
|
8771
|
+
...tt
|
|
8734
8772
|
}
|
|
8735
8773
|
}, S.content),
|
|
8736
|
-
|
|
8774
|
+
l.createElement("main", {
|
|
8737
8775
|
key: "scaffold-body",
|
|
8738
8776
|
className: "fibo-scaffold-body",
|
|
8739
8777
|
style: {
|
|
@@ -8747,24 +8785,24 @@ class Vf extends go {
|
|
|
8747
8785
|
minHeight: "0px"
|
|
8748
8786
|
}
|
|
8749
8787
|
}, g),
|
|
8750
|
-
$ && !W &&
|
|
8788
|
+
$ && !W && l.createElement("div", {
|
|
8751
8789
|
key: "sidebar-right",
|
|
8752
8790
|
className: "z-20",
|
|
8753
8791
|
style: {
|
|
8754
|
-
width: (
|
|
8755
|
-
position: ((
|
|
8756
|
-
top: ((
|
|
8757
|
-
right: ((
|
|
8792
|
+
width: (dt = x.sidebarRight) == null ? void 0 : dt.width,
|
|
8793
|
+
position: ((pt = x.sidebarRight) == null ? void 0 : pt.mode) === "over" ? "absolute" : ((xt = x.sidebarRight) == null ? void 0 : xt.behavior) === "fixed" || y.fixed ? "sticky" : void 0,
|
|
8794
|
+
top: ((gt = x.sidebarRight) == null ? void 0 : gt.mode) === "over" || ((mt = x.sidebarRight) == null ? void 0 : mt.behavior) === "fixed" || y.fixed ? 0 : void 0,
|
|
8795
|
+
right: ((qo = x.sidebarRight) == null ? void 0 : qo.mode) === "over" ? "0px" : void 0,
|
|
8758
8796
|
height: ((Nt = x.sidebarRight) == null ? void 0 : Nt.mode) === "over" || (($t = x.sidebarRight) == null ? void 0 : $t.behavior) === "fixed" || y.fixed ? "100%" : void 0,
|
|
8759
8797
|
zIndex: ((Mt = x.sidebarRight) == null ? void 0 : Mt.mode) === "over" ? 20 : void 0,
|
|
8760
8798
|
overflowY: "auto",
|
|
8761
8799
|
borderLeft: "1px solid var(--fibo-outline, #e0e0e0)",
|
|
8762
8800
|
backgroundColor: "var(--fibo-surface, #ffffff)",
|
|
8763
|
-
...
|
|
8801
|
+
...tt
|
|
8764
8802
|
}
|
|
8765
8803
|
}, y.content)
|
|
8766
8804
|
].filter(Boolean)
|
|
8767
|
-
), H = T &&
|
|
8805
|
+
), H = T && l.createElement("div", {
|
|
8768
8806
|
key: "header-bar",
|
|
8769
8807
|
className: "z-30 fibo-scaffold-header",
|
|
8770
8808
|
style: {
|
|
@@ -8774,18 +8812,18 @@ class Vf extends go {
|
|
|
8774
8812
|
left: this._extendBehindHeader ? 0 : void 0,
|
|
8775
8813
|
right: this._extendBehindHeader ? 0 : void 0,
|
|
8776
8814
|
zIndex: 30,
|
|
8777
|
-
...
|
|
8815
|
+
...tt
|
|
8778
8816
|
}
|
|
8779
|
-
}, h.content), V = O &&
|
|
8817
|
+
}, h.content), V = O && l.createElement("div", {
|
|
8780
8818
|
key: "bottom-app-bar",
|
|
8781
8819
|
className: "z-30 fibo-scaffold-bottom-app-bar",
|
|
8782
8820
|
style: {
|
|
8783
8821
|
height: v == null ? void 0 : v.height,
|
|
8784
8822
|
position: (v == null ? void 0 : v.position) || (w.fixed ? "sticky" : "static"),
|
|
8785
8823
|
zIndex: 30,
|
|
8786
|
-
...
|
|
8824
|
+
...tt
|
|
8787
8825
|
}
|
|
8788
|
-
}, w.content), K = this._fabAt === "startDock" || this._fabAt === "centerDock" || this._fabAt === "endDock",
|
|
8826
|
+
}, w.content), K = this._fabAt === "startDock" || this._fabAt === "centerDock" || this._fabAt === "endDock", eo = this._fab ? l.createElement(
|
|
8789
8827
|
"div",
|
|
8790
8828
|
{
|
|
8791
8829
|
key: "scaffold-fab",
|
|
@@ -8793,7 +8831,7 @@ class Vf extends go {
|
|
|
8793
8831
|
"data-scaffold-fab": this._fabAt
|
|
8794
8832
|
},
|
|
8795
8833
|
Xo(vo(this._fab))
|
|
8796
|
-
) : null, po = this._bottomSheet ?
|
|
8834
|
+
) : null, po = this._bottomSheet ? l.createElement(
|
|
8797
8835
|
"div",
|
|
8798
8836
|
{
|
|
8799
8837
|
key: "scaffold-sheet",
|
|
@@ -8802,16 +8840,16 @@ class Vf extends go {
|
|
|
8802
8840
|
hidden: !0
|
|
8803
8841
|
},
|
|
8804
8842
|
Xo(vo(this._bottomSheet))
|
|
8805
|
-
) : null, no = this._footerButtons ?
|
|
8843
|
+
) : null, no = this._footerButtons ? l.createElement(
|
|
8806
8844
|
"div",
|
|
8807
8845
|
{ key: "footer-buttons", className: "fibo-scaffold-footer-buttons" },
|
|
8808
|
-
...
|
|
8809
|
-
) : null, fo = (
|
|
8846
|
+
...zt(this._footerButtons).map(Xo)
|
|
8847
|
+
) : null, fo = (Zo, $o) => $o ? l.createElement(
|
|
8810
8848
|
"div",
|
|
8811
8849
|
{
|
|
8812
|
-
key: `drawer-${
|
|
8850
|
+
key: `drawer-${Zo}`,
|
|
8813
8851
|
className: "fibo-scaffold-drawer",
|
|
8814
|
-
"data-scaffold-drawer":
|
|
8852
|
+
"data-scaffold-drawer": Zo,
|
|
8815
8853
|
"data-open": "false",
|
|
8816
8854
|
role: "dialog",
|
|
8817
8855
|
"aria-hidden": !0,
|
|
@@ -8819,15 +8857,15 @@ class Vf extends go {
|
|
|
8819
8857
|
style: { width: this._drawerWidth }
|
|
8820
8858
|
},
|
|
8821
8859
|
Xo(vo($o))
|
|
8822
|
-
) : null, so = po || no || V || K &&
|
|
8860
|
+
) : null, so = po || no || V || K && eo ? l.createElement(
|
|
8823
8861
|
"div",
|
|
8824
8862
|
{ key: "scaffold-bottom", className: "fibo-scaffold-bottom" },
|
|
8825
|
-
[po, no, V, K ?
|
|
8826
|
-
) : null, oo =
|
|
8863
|
+
[po, no, V, K ? eo : null].filter(Boolean)
|
|
8864
|
+
) : null, oo = l.createElement(l.Fragment, null, [
|
|
8827
8865
|
H,
|
|
8828
8866
|
k,
|
|
8829
8867
|
so,
|
|
8830
|
-
(this._drawer || this._endDrawer) &&
|
|
8868
|
+
(this._drawer || this._endDrawer) && l.createElement("div", {
|
|
8831
8869
|
key: "scaffold-scrim",
|
|
8832
8870
|
className: "fibo-scaffold-scrim",
|
|
8833
8871
|
"data-scaffold-scrim": "true",
|
|
@@ -8835,18 +8873,18 @@ class Vf extends go {
|
|
|
8835
8873
|
}),
|
|
8836
8874
|
fo("start", this._drawer),
|
|
8837
8875
|
fo("end", this._endDrawer),
|
|
8838
|
-
this._drawer &&
|
|
8876
|
+
this._drawer && l.createElement("div", {
|
|
8839
8877
|
key: "edge-start",
|
|
8840
8878
|
className: "fibo-scaffold-edge fibo-scaffold-edge-start",
|
|
8841
8879
|
"data-scaffold-edge": "start"
|
|
8842
8880
|
}),
|
|
8843
|
-
this._endDrawer &&
|
|
8881
|
+
this._endDrawer && l.createElement("div", {
|
|
8844
8882
|
key: "edge-end",
|
|
8845
8883
|
className: "fibo-scaffold-edge fibo-scaffold-edge-end",
|
|
8846
8884
|
"data-scaffold-edge": "end"
|
|
8847
8885
|
}),
|
|
8848
|
-
K ? null :
|
|
8849
|
-
|
|
8886
|
+
K ? null : eo,
|
|
8887
|
+
l.createElement("div", {
|
|
8850
8888
|
key: "scaffold-snack",
|
|
8851
8889
|
className: "fibo-scaffold-snack",
|
|
8852
8890
|
"data-scaffold-snack": "true",
|
|
@@ -8854,7 +8892,7 @@ class Vf extends go {
|
|
|
8854
8892
|
"aria-live": "polite"
|
|
8855
8893
|
})
|
|
8856
8894
|
].filter(Boolean));
|
|
8857
|
-
let C =
|
|
8895
|
+
let C = l.createElement("div", {
|
|
8858
8896
|
key: "vertical-stack",
|
|
8859
8897
|
className: "fibo-scaffold-stack",
|
|
8860
8898
|
style: {
|
|
@@ -8867,11 +8905,11 @@ class Vf extends go {
|
|
|
8867
8905
|
position: "relative"
|
|
8868
8906
|
}
|
|
8869
8907
|
}, oo);
|
|
8870
|
-
M && (C =
|
|
8908
|
+
M && (C = l.createElement("div", {
|
|
8871
8909
|
key: "full-height-left-wrapper",
|
|
8872
8910
|
style: { display: "flex", flexDirection: "row", flex: 1, height: "100%", overflow: "hidden" }
|
|
8873
8911
|
}, [
|
|
8874
|
-
|
|
8912
|
+
l.createElement("div", {
|
|
8875
8913
|
key: "sidebar-left-full",
|
|
8876
8914
|
style: {
|
|
8877
8915
|
width: (Pt = x.sidebarLeft) == null ? void 0 : Pt.width,
|
|
@@ -8879,16 +8917,16 @@ class Vf extends go {
|
|
|
8879
8917
|
borderRight: "1px solid var(--fibo-outline, #e0e0e0)",
|
|
8880
8918
|
backgroundColor: "var(--fibo-surface, #ffffff)",
|
|
8881
8919
|
zIndex: 40,
|
|
8882
|
-
...
|
|
8920
|
+
...tt
|
|
8883
8921
|
}
|
|
8884
8922
|
}, S.content),
|
|
8885
8923
|
C
|
|
8886
|
-
])), W && (C =
|
|
8924
|
+
])), W && (C = l.createElement("div", {
|
|
8887
8925
|
key: "full-height-right-wrapper",
|
|
8888
8926
|
style: { display: "flex", flexDirection: "row", flex: 1, height: "100%", overflow: "hidden" }
|
|
8889
8927
|
}, [
|
|
8890
8928
|
C,
|
|
8891
|
-
|
|
8929
|
+
l.createElement("div", {
|
|
8892
8930
|
key: "sidebar-right-full",
|
|
8893
8931
|
style: {
|
|
8894
8932
|
width: (Ot = x.sidebarRight) == null ? void 0 : Ot.width,
|
|
@@ -8896,13 +8934,13 @@ class Vf extends go {
|
|
|
8896
8934
|
borderLeft: "1px solid var(--fibo-outline, #e0e0e0)",
|
|
8897
8935
|
backgroundColor: "var(--fibo-surface, #ffffff)",
|
|
8898
8936
|
zIndex: 40,
|
|
8899
|
-
...
|
|
8937
|
+
...tt
|
|
8900
8938
|
}
|
|
8901
8939
|
}, y.content)
|
|
8902
8940
|
]));
|
|
8903
|
-
const yo = jo.getInstance().getOverlays().map((
|
|
8904
|
-
const b =
|
|
8905
|
-
return
|
|
8941
|
+
const yo = jo.getInstance().getOverlays().map((Zo, $o) => {
|
|
8942
|
+
const b = Zo().build();
|
|
8943
|
+
return l.isValidElement(b) && b.key != null && b.key !== "" ? b : l.createElement(l.Fragment, { key: `fibo-overlay-${$o}` }, b);
|
|
8906
8944
|
}), Do = {
|
|
8907
8945
|
theme: this._theme,
|
|
8908
8946
|
locale: this._locale,
|
|
@@ -8915,13 +8953,13 @@ class Vf extends go {
|
|
|
8915
8953
|
extendBehindHeader: this._extendBehindHeader,
|
|
8916
8954
|
avoidKeyboard: this._avoidKeyboard,
|
|
8917
8955
|
onDrawerChanged: this._onDrawer,
|
|
8918
|
-
...
|
|
8956
|
+
...u
|
|
8919
8957
|
};
|
|
8920
|
-
return
|
|
8958
|
+
return l.createElement(Vf, Do);
|
|
8921
8959
|
}
|
|
8922
8960
|
}
|
|
8923
|
-
const
|
|
8924
|
-
function
|
|
8961
|
+
const Ic = mo(Uf);
|
|
8962
|
+
function Kf(e, o) {
|
|
8925
8963
|
if (!(typeof o != "string" || !J(o)))
|
|
8926
8964
|
for (const t of _o(o))
|
|
8927
8965
|
e.bindSignal(t);
|
|
@@ -8935,7 +8973,7 @@ function ee(e, o) {
|
|
|
8935
8973
|
return;
|
|
8936
8974
|
}
|
|
8937
8975
|
if (typeof o == "string") {
|
|
8938
|
-
|
|
8976
|
+
Kf(e, o);
|
|
8939
8977
|
return;
|
|
8940
8978
|
}
|
|
8941
8979
|
if (Array.isArray(o))
|
|
@@ -8947,7 +8985,7 @@ function Yi(e) {
|
|
|
8947
8985
|
function Ui(e) {
|
|
8948
8986
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
8949
8987
|
}
|
|
8950
|
-
const
|
|
8988
|
+
const qf = /* @__PURE__ */ new Set([
|
|
8951
8989
|
"script",
|
|
8952
8990
|
"iframe",
|
|
8953
8991
|
"object",
|
|
@@ -8975,13 +9013,13 @@ const Uf = /* @__PURE__ */ new Set([
|
|
|
8975
9013
|
"source",
|
|
8976
9014
|
"track",
|
|
8977
9015
|
"wbr"
|
|
8978
|
-
]),
|
|
8979
|
-
function
|
|
9016
|
+
]), Zf = /^[a-z][a-z0-9]*$/;
|
|
9017
|
+
function Jf(e) {
|
|
8980
9018
|
if (typeof e != "string") return "div";
|
|
8981
9019
|
const o = e.trim().toLowerCase();
|
|
8982
|
-
return !
|
|
9020
|
+
return !Zf.test(o) || qf.has(o) ? "div" : o;
|
|
8983
9021
|
}
|
|
8984
|
-
function
|
|
9022
|
+
function Qf(e) {
|
|
8985
9023
|
const o = e, t = o.overflow;
|
|
8986
9024
|
if (t == null || t === "") return;
|
|
8987
9025
|
const i = String(t).trim().split(/\s+/).filter(Boolean);
|
|
@@ -8999,16 +9037,16 @@ function Ki(e) {
|
|
|
8999
9037
|
if (r == null || r === "") continue;
|
|
9000
9038
|
const n = `${i}Top`, s = `${i}Right`, f = `${i}Bottom`, a = `${i}Left`;
|
|
9001
9039
|
if (!(t[n] != null || t[s] != null || t[f] != null || t[a] != null)) continue;
|
|
9002
|
-
const [d, g, h, w] =
|
|
9040
|
+
const [d, g, h, w] = lt(String(r));
|
|
9003
9041
|
t[n] == null && (t[n] = d), t[s] == null && (t[s] = g), t[f] == null && (t[f] = h), t[a] == null && (t[a] = w), delete t[i];
|
|
9004
9042
|
}
|
|
9005
|
-
return
|
|
9043
|
+
return Qf(o), o;
|
|
9006
9044
|
}
|
|
9007
|
-
function
|
|
9045
|
+
function oa(e, o) {
|
|
9008
9046
|
const t = o ? Po({ ...e, ...o }) : { ...e };
|
|
9009
9047
|
return Ki(t);
|
|
9010
9048
|
}
|
|
9011
|
-
const
|
|
9049
|
+
const ta = l.memo((e) => {
|
|
9012
9050
|
const {
|
|
9013
9051
|
className: o,
|
|
9014
9052
|
style: t,
|
|
@@ -9018,10 +9056,10 @@ const Qf = u.memo((e) => {
|
|
|
9018
9056
|
dangerouslySetInnerHTML: s,
|
|
9019
9057
|
onClick: f,
|
|
9020
9058
|
role: a,
|
|
9021
|
-
tabIndex:
|
|
9059
|
+
tabIndex: u,
|
|
9022
9060
|
...d
|
|
9023
|
-
} = e, g = Ui(i).map(Yi), h =
|
|
9024
|
-
return
|
|
9061
|
+
} = e, g = Ui(i).map(Yi), h = Jf(r ?? n), w = typeof f == "function";
|
|
9062
|
+
return l.createElement(
|
|
9025
9063
|
h,
|
|
9026
9064
|
{
|
|
9027
9065
|
style: Ki(t || {}),
|
|
@@ -9029,12 +9067,12 @@ const Qf = u.memo((e) => {
|
|
|
9029
9067
|
className: o,
|
|
9030
9068
|
onClick: f,
|
|
9031
9069
|
role: a ?? (w ? "button" : void 0),
|
|
9032
|
-
tabIndex:
|
|
9070
|
+
tabIndex: u ?? (w ? 0 : void 0)
|
|
9033
9071
|
},
|
|
9034
9072
|
...g
|
|
9035
9073
|
);
|
|
9036
9074
|
});
|
|
9037
|
-
class
|
|
9075
|
+
class ea extends go {
|
|
9038
9076
|
children(o) {
|
|
9039
9077
|
return ee(this, o), super.children(o);
|
|
9040
9078
|
}
|
|
@@ -9050,8 +9088,8 @@ class oa extends go {
|
|
|
9050
9088
|
tag: s,
|
|
9051
9089
|
dangerouslySetInnerHTML: f,
|
|
9052
9090
|
...a
|
|
9053
|
-
} = this._props,
|
|
9054
|
-
return
|
|
9091
|
+
} = this._props, u = this.processChildren(), g = Ui(r !== void 0 ? r : u).map(Yi), h = [...o, t].filter(Boolean).join(" "), w = oa(this.getStyle(), i);
|
|
9092
|
+
return l.createElement(ta, {
|
|
9055
9093
|
style: w,
|
|
9056
9094
|
children: g,
|
|
9057
9095
|
as: n,
|
|
@@ -9061,7 +9099,7 @@ class oa extends go {
|
|
|
9061
9099
|
});
|
|
9062
9100
|
}
|
|
9063
9101
|
}
|
|
9064
|
-
const
|
|
9102
|
+
const Fc = mo(ea);
|
|
9065
9103
|
function Lo(e, o) {
|
|
9066
9104
|
if (!(typeof o != "string" || !J(o)))
|
|
9067
9105
|
for (const t of _o(o))
|
|
@@ -9085,25 +9123,25 @@ function Wo(e, o) {
|
|
|
9085
9123
|
if (Array.isArray(o))
|
|
9086
9124
|
for (const t of o) Wo(e, t);
|
|
9087
9125
|
}
|
|
9088
|
-
function
|
|
9126
|
+
function ia(e) {
|
|
9089
9127
|
return typeof e == "string" && J(e) ? ho(e) : e;
|
|
9090
9128
|
}
|
|
9091
9129
|
function ie(e) {
|
|
9092
9130
|
return e == null || e === !1 ? null : typeof e == "string" ? Ut(e) ?? e : vo(e);
|
|
9093
9131
|
}
|
|
9094
|
-
const
|
|
9132
|
+
const ra = {
|
|
9095
9133
|
green: "var(--fibo-success, #22c55e)",
|
|
9096
9134
|
orange: "var(--fibo-warning, #f97316)",
|
|
9097
9135
|
red: "var(--fibo-error, #ef4444)",
|
|
9098
9136
|
blue: "var(--fibo-info, #3b82f6)",
|
|
9099
9137
|
purple: "var(--fibo-tertiary, #a855f7)"
|
|
9100
|
-
},
|
|
9101
|
-
function
|
|
9138
|
+
}, na = /* @__PURE__ */ new Set(["script", "iframe", "object", "embed", "link", "style"]);
|
|
9139
|
+
function sa(e) {
|
|
9102
9140
|
if (typeof e != "string") return "article";
|
|
9103
9141
|
const o = e.trim().toLowerCase();
|
|
9104
|
-
return !o || !/^[a-z][a-z0-9]*$/.test(o) ||
|
|
9142
|
+
return !o || !/^[a-z][a-z0-9]*$/.test(o) || na.has(o) ? "article" : o;
|
|
9105
9143
|
}
|
|
9106
|
-
const
|
|
9144
|
+
const fa = l.memo((e) => {
|
|
9107
9145
|
const {
|
|
9108
9146
|
text: o,
|
|
9109
9147
|
subtitle: t,
|
|
@@ -9113,7 +9151,7 @@ const na = u.memo((e) => {
|
|
|
9113
9151
|
style: s,
|
|
9114
9152
|
children: f,
|
|
9115
9153
|
header: a,
|
|
9116
|
-
footer:
|
|
9154
|
+
footer: u,
|
|
9117
9155
|
as: d,
|
|
9118
9156
|
...g
|
|
9119
9157
|
} = e;
|
|
@@ -9133,9 +9171,9 @@ const na = u.memo((e) => {
|
|
|
9133
9171
|
borderLeftColor: r
|
|
9134
9172
|
} : {},
|
|
9135
9173
|
...s
|
|
9136
|
-
}, T = ie(a), O = ie(
|
|
9137
|
-
return
|
|
9138
|
-
|
|
9174
|
+
}, T = ie(a), O = ie(u);
|
|
9175
|
+
return l.createElement(
|
|
9176
|
+
sa(d),
|
|
9139
9177
|
{
|
|
9140
9178
|
...g,
|
|
9141
9179
|
className: x,
|
|
@@ -9149,25 +9187,25 @@ const na = u.memo((e) => {
|
|
|
9149
9187
|
}
|
|
9150
9188
|
} : null
|
|
9151
9189
|
},
|
|
9152
|
-
T ?
|
|
9153
|
-
|
|
9190
|
+
T ? l.createElement("header", { className: "fibo-card-header" }, T) : null,
|
|
9191
|
+
l.createElement(
|
|
9154
9192
|
"div",
|
|
9155
9193
|
{ className: "flex flex-col gap-2" },
|
|
9156
|
-
o &&
|
|
9194
|
+
o && l.createElement(
|
|
9157
9195
|
"h3",
|
|
9158
9196
|
{
|
|
9159
9197
|
className: "font-semibold text-[var(--fibo-on-surface-variant)] text-sm uppercase tracking-wide"
|
|
9160
9198
|
},
|
|
9161
9199
|
o
|
|
9162
9200
|
),
|
|
9163
|
-
i &&
|
|
9201
|
+
i && l.createElement(
|
|
9164
9202
|
"p",
|
|
9165
9203
|
{
|
|
9166
9204
|
className: "font-bold text-[var(--fibo-on-surface)] text-3xl"
|
|
9167
9205
|
},
|
|
9168
9206
|
i
|
|
9169
9207
|
),
|
|
9170
|
-
t &&
|
|
9208
|
+
t && l.createElement(
|
|
9171
9209
|
"p",
|
|
9172
9210
|
{
|
|
9173
9211
|
className: "text-[var(--fibo-on-surface-variant)] text-xs"
|
|
@@ -9176,10 +9214,10 @@ const na = u.memo((e) => {
|
|
|
9176
9214
|
),
|
|
9177
9215
|
...h
|
|
9178
9216
|
),
|
|
9179
|
-
O ?
|
|
9217
|
+
O ? l.createElement("footer", { className: "fibo-card-footer" }, O) : null
|
|
9180
9218
|
);
|
|
9181
9219
|
});
|
|
9182
|
-
class
|
|
9220
|
+
class aa extends go {
|
|
9183
9221
|
constructor() {
|
|
9184
9222
|
super(...arguments);
|
|
9185
9223
|
c(this, "_text", "");
|
|
@@ -9222,14 +9260,14 @@ class sa extends go {
|
|
|
9222
9260
|
return this._color = t, this;
|
|
9223
9261
|
}
|
|
9224
9262
|
build() {
|
|
9225
|
-
const t = this._color ?
|
|
9263
|
+
const t = this._color ? ra[this._color] : void 0, {
|
|
9226
9264
|
className: i,
|
|
9227
9265
|
text: r,
|
|
9228
9266
|
title: n,
|
|
9229
9267
|
subtitle: s,
|
|
9230
9268
|
number: f,
|
|
9231
9269
|
header: a,
|
|
9232
|
-
footer:
|
|
9270
|
+
footer: u,
|
|
9233
9271
|
as: d,
|
|
9234
9272
|
...g
|
|
9235
9273
|
} = this._props, h = [...this._classNames, i].filter(Boolean).join(" "), w = {
|
|
@@ -9237,18 +9275,18 @@ class sa extends go {
|
|
|
9237
9275
|
subtitle: Ut(s ?? this._subtitle),
|
|
9238
9276
|
number: Ut(f ?? this._number),
|
|
9239
9277
|
header: ie(this._header ?? a),
|
|
9240
|
-
footer: ie(this._footer ??
|
|
9278
|
+
footer: ie(this._footer ?? u),
|
|
9241
9279
|
as: this._as ?? d,
|
|
9242
9280
|
accentColor: t,
|
|
9243
9281
|
style: this.getStyle(),
|
|
9244
|
-
children: this.processChildren().map(
|
|
9282
|
+
children: this.processChildren().map(ia),
|
|
9245
9283
|
...g,
|
|
9246
9284
|
className: h
|
|
9247
9285
|
};
|
|
9248
|
-
return
|
|
9286
|
+
return l.createElement(fa, w);
|
|
9249
9287
|
}
|
|
9250
9288
|
}
|
|
9251
|
-
const
|
|
9289
|
+
const Nc = mo(aa), ca = {
|
|
9252
9290
|
none: "0px",
|
|
9253
9291
|
sm: "8px",
|
|
9254
9292
|
md: "16px",
|
|
@@ -9258,23 +9296,23 @@ const Ic = mo(sa), fa = {
|
|
|
9258
9296
|
function Ee(e) {
|
|
9259
9297
|
return `repeat(${e}, minmax(0, 1fr))`;
|
|
9260
9298
|
}
|
|
9261
|
-
function
|
|
9299
|
+
function la(e) {
|
|
9262
9300
|
return `repeat(${e}, minmax(0, auto))`;
|
|
9263
9301
|
}
|
|
9264
|
-
function
|
|
9302
|
+
function ua(e, o) {
|
|
9265
9303
|
return o || Ee(typeof e == "number" ? e : 1);
|
|
9266
9304
|
}
|
|
9267
|
-
function
|
|
9305
|
+
function ba(e, o) {
|
|
9268
9306
|
if (o) return o;
|
|
9269
|
-
if (typeof e == "number") return
|
|
9307
|
+
if (typeof e == "number") return la(e);
|
|
9270
9308
|
}
|
|
9271
|
-
function
|
|
9272
|
-
return typeof e == "number" ? `${e}px` :
|
|
9309
|
+
function Et(e) {
|
|
9310
|
+
return typeof e == "number" ? `${e}px` : ca[e] ?? (e || "16px");
|
|
9273
9311
|
}
|
|
9274
|
-
function
|
|
9312
|
+
function ha(e, o, t) {
|
|
9275
9313
|
return o == null && t == null ? { gap: e } : {
|
|
9276
|
-
...o != null ? { rowGap:
|
|
9277
|
-
...t != null ? { columnGap:
|
|
9314
|
+
...o != null ? { rowGap: Et(o) } : { rowGap: e },
|
|
9315
|
+
...t != null ? { columnGap: Et(t) } : { columnGap: e }
|
|
9278
9316
|
};
|
|
9279
9317
|
}
|
|
9280
9318
|
function qi(e) {
|
|
@@ -9291,12 +9329,12 @@ function de(e, o) {
|
|
|
9291
9329
|
}
|
|
9292
9330
|
return r;
|
|
9293
9331
|
}
|
|
9294
|
-
function
|
|
9295
|
-
if (!
|
|
9332
|
+
function da(e) {
|
|
9333
|
+
if (!l.isValidElement(e)) return !1;
|
|
9296
9334
|
const o = e.props;
|
|
9297
9335
|
return !!(o && typeof o == "object" && (o.colSpan || o.rowSpan || o.colStart != null || o.colEnd != null || o.rowStart != null || o.rowEnd != null || typeof o.className == "string" && /(col|row)-span/.test(o.className)));
|
|
9298
9336
|
}
|
|
9299
|
-
const
|
|
9337
|
+
const pa = l.memo((e) => {
|
|
9300
9338
|
const {
|
|
9301
9339
|
children: o,
|
|
9302
9340
|
variant: t = "standard",
|
|
@@ -9306,12 +9344,12 @@ const ha = u.memo((e) => {
|
|
|
9306
9344
|
templateColumns: s,
|
|
9307
9345
|
templateRows: f,
|
|
9308
9346
|
autoFlow: a,
|
|
9309
|
-
rowGap:
|
|
9347
|
+
rowGap: u,
|
|
9310
9348
|
columnGap: d,
|
|
9311
9349
|
className: g,
|
|
9312
9350
|
style: h,
|
|
9313
9351
|
...w
|
|
9314
|
-
} = e, S = qi(o), y =
|
|
9352
|
+
} = e, S = qi(o), y = Et(r), x = ha(y, u, d), v = ua(i, s), T = ba(n, f);
|
|
9315
9353
|
if (t === "bento") {
|
|
9316
9354
|
const I = [
|
|
9317
9355
|
{ col: 2, row: 2 },
|
|
@@ -9327,33 +9365,33 @@ const ha = u.memo((e) => {
|
|
|
9327
9365
|
gridAutoFlow: a ?? "dense",
|
|
9328
9366
|
...h
|
|
9329
9367
|
};
|
|
9330
|
-
return
|
|
9368
|
+
return l.createElement("div", {
|
|
9331
9369
|
className: ["fibo-grid", "grid", ...de(i, "grid"), g].filter(Boolean).join(" "),
|
|
9332
9370
|
style: $,
|
|
9333
9371
|
...w
|
|
9334
|
-
},
|
|
9335
|
-
if (
|
|
9372
|
+
}, l.Children.map(S, (M, W) => {
|
|
9373
|
+
if (da(M))
|
|
9336
9374
|
return M;
|
|
9337
9375
|
const k = I[W % I.length];
|
|
9338
|
-
return
|
|
9376
|
+
return l.createElement("div", {
|
|
9339
9377
|
key: ve(M, W),
|
|
9340
9378
|
style: { gridColumn: `span ${k.col}`, gridRow: `span ${k.row}` }
|
|
9341
9379
|
}, M);
|
|
9342
9380
|
}));
|
|
9343
9381
|
}
|
|
9344
9382
|
if (t === "masonry") {
|
|
9345
|
-
const I = d != null ?
|
|
9383
|
+
const I = d != null ? Et(d) : y, $ = u != null ? Et(u) : y, M = {
|
|
9346
9384
|
columnCount: typeof i == "number" ? i : 1,
|
|
9347
9385
|
columnGap: I,
|
|
9348
9386
|
...h
|
|
9349
9387
|
};
|
|
9350
|
-
return
|
|
9388
|
+
return l.createElement("div", {
|
|
9351
9389
|
className: ["fibo-grid", ...de(i, "masonry"), g].filter(Boolean).join(" "),
|
|
9352
9390
|
style: M,
|
|
9353
9391
|
...w
|
|
9354
|
-
},
|
|
9392
|
+
}, l.Children.map(
|
|
9355
9393
|
S,
|
|
9356
|
-
(W, k) =>
|
|
9394
|
+
(W, k) => l.createElement("div", {
|
|
9357
9395
|
key: ve(W, k),
|
|
9358
9396
|
style: { breakInside: "avoid", marginBottom: $ }
|
|
9359
9397
|
}, W)
|
|
@@ -9367,12 +9405,12 @@ const ha = u.memo((e) => {
|
|
|
9367
9405
|
...x,
|
|
9368
9406
|
...h
|
|
9369
9407
|
};
|
|
9370
|
-
return
|
|
9408
|
+
return l.createElement("div", {
|
|
9371
9409
|
className: ["fibo-grid", "grid", ...de(i, "grid"), g].filter(Boolean).join(" "),
|
|
9372
9410
|
style: O,
|
|
9373
9411
|
...w
|
|
9374
9412
|
}, ...S);
|
|
9375
|
-
}),
|
|
9413
|
+
}), xa = l.memo((e) => {
|
|
9376
9414
|
const {
|
|
9377
9415
|
children: o,
|
|
9378
9416
|
colSpan: t,
|
|
@@ -9382,7 +9420,7 @@ const ha = u.memo((e) => {
|
|
|
9382
9420
|
rowStart: s,
|
|
9383
9421
|
rowEnd: f,
|
|
9384
9422
|
className: a,
|
|
9385
|
-
style:
|
|
9423
|
+
style: u,
|
|
9386
9424
|
...d
|
|
9387
9425
|
} = e, g = qi(o), h = [
|
|
9388
9426
|
t ? `col-span-${t}` : "",
|
|
@@ -9394,15 +9432,15 @@ const ha = u.memo((e) => {
|
|
|
9394
9432
|
...n != null ? { gridColumnEnd: n } : {},
|
|
9395
9433
|
...s != null ? { gridRowStart: s } : {},
|
|
9396
9434
|
...f != null ? { gridRowEnd: f } : {},
|
|
9397
|
-
...
|
|
9435
|
+
...u
|
|
9398
9436
|
};
|
|
9399
|
-
return
|
|
9437
|
+
return l.createElement("div", {
|
|
9400
9438
|
className: ["fibo-grid-item", h, a].filter(Boolean).join(" "),
|
|
9401
9439
|
style: w,
|
|
9402
9440
|
...d
|
|
9403
9441
|
}, ...g);
|
|
9404
9442
|
});
|
|
9405
|
-
class
|
|
9443
|
+
class ga extends go {
|
|
9406
9444
|
constructor() {
|
|
9407
9445
|
super(...arguments);
|
|
9408
9446
|
c(this, "_variant", "standard");
|
|
@@ -9462,10 +9500,10 @@ class pa extends go {
|
|
|
9462
9500
|
style: this.getStyle(),
|
|
9463
9501
|
...this._props
|
|
9464
9502
|
};
|
|
9465
|
-
return
|
|
9503
|
+
return l.createElement(pa, t);
|
|
9466
9504
|
}
|
|
9467
9505
|
}
|
|
9468
|
-
class
|
|
9506
|
+
class ma extends go {
|
|
9469
9507
|
constructor() {
|
|
9470
9508
|
super(...arguments);
|
|
9471
9509
|
c(this, "_colSpan");
|
|
@@ -9506,14 +9544,14 @@ class xa extends go {
|
|
|
9506
9544
|
style: this.getStyle(),
|
|
9507
9545
|
...this._props
|
|
9508
9546
|
};
|
|
9509
|
-
return
|
|
9547
|
+
return l.createElement(xa, t);
|
|
9510
9548
|
}
|
|
9511
9549
|
}
|
|
9512
|
-
const
|
|
9513
|
-
function
|
|
9550
|
+
const $c = mo(ga), Mc = mo(ma);
|
|
9551
|
+
function va(e) {
|
|
9514
9552
|
return e == null ? "" : String(e);
|
|
9515
9553
|
}
|
|
9516
|
-
function
|
|
9554
|
+
function wa({
|
|
9517
9555
|
compute: e,
|
|
9518
9556
|
as: o = "span",
|
|
9519
9557
|
className: t,
|
|
@@ -9521,10 +9559,10 @@ function ma({
|
|
|
9521
9559
|
children: r,
|
|
9522
9560
|
...n
|
|
9523
9561
|
}) {
|
|
9524
|
-
const { dangerouslySetInnerHTML: s, ref: f, ...a } = n,
|
|
9525
|
-
return
|
|
9562
|
+
const { dangerouslySetInnerHTML: s, ref: f, ...a } = n, u = typeof e == "function" ? va(e()) : r;
|
|
9563
|
+
return l.createElement(o, { className: t, style: i, ...a }, u);
|
|
9526
9564
|
}
|
|
9527
|
-
const
|
|
9565
|
+
const ya = /* @__PURE__ */ new Set([
|
|
9528
9566
|
"block",
|
|
9529
9567
|
"inline",
|
|
9530
9568
|
"inline-block",
|
|
@@ -9628,7 +9666,7 @@ function or(e, o) {
|
|
|
9628
9666
|
...o
|
|
9629
9667
|
};
|
|
9630
9668
|
}
|
|
9631
|
-
function
|
|
9669
|
+
function ka(e, o) {
|
|
9632
9670
|
if (!(typeof o != "string" || !J(o)))
|
|
9633
9671
|
for (const t of _o(o))
|
|
9634
9672
|
e.bindSignal(t);
|
|
@@ -9642,7 +9680,7 @@ function re(e, o) {
|
|
|
9642
9680
|
return;
|
|
9643
9681
|
}
|
|
9644
9682
|
if (typeof o == "string") {
|
|
9645
|
-
|
|
9683
|
+
ka(e, o);
|
|
9646
9684
|
return;
|
|
9647
9685
|
}
|
|
9648
9686
|
if (Array.isArray(o))
|
|
@@ -9657,50 +9695,50 @@ function tr(e) {
|
|
|
9657
9695
|
const { dangerouslySetInnerHTML: o, ...t } = e;
|
|
9658
9696
|
return t;
|
|
9659
9697
|
}
|
|
9660
|
-
function
|
|
9661
|
-
if (e == null || typeof e != "object" || Array.isArray(e) ||
|
|
9698
|
+
function _a(e) {
|
|
9699
|
+
if (e == null || typeof e != "object" || Array.isArray(e) || l.isValidElement(e)) return !1;
|
|
9662
9700
|
const o = e;
|
|
9663
9701
|
return "children" in o || "text" in o || "className" in o || "variant" in o || "type" in o;
|
|
9664
9702
|
}
|
|
9665
|
-
function
|
|
9703
|
+
function At(e) {
|
|
9666
9704
|
if (e == null || typeof e == "boolean") return null;
|
|
9667
9705
|
if (typeof e == "string")
|
|
9668
9706
|
return J(e) ? ho(e) : e;
|
|
9669
9707
|
if (typeof e == "number") return e;
|
|
9670
9708
|
if (typeof e == "function")
|
|
9671
9709
|
try {
|
|
9672
|
-
return
|
|
9710
|
+
return At(e());
|
|
9673
9711
|
} catch {
|
|
9674
9712
|
return null;
|
|
9675
9713
|
}
|
|
9676
|
-
if (
|
|
9677
|
-
if (Array.isArray(e)) return e.map((o) =>
|
|
9714
|
+
if (l.isValidElement(e)) return e;
|
|
9715
|
+
if (Array.isArray(e)) return e.map((o) => At(o));
|
|
9678
9716
|
if (typeof e == "object" && e && "children" in e && !("$$typeof" in e))
|
|
9679
|
-
return
|
|
9717
|
+
return At(e.children);
|
|
9680
9718
|
if (typeof e.toString == "function") {
|
|
9681
9719
|
const o = String(e);
|
|
9682
9720
|
if (o && o !== "[object Object]") return o;
|
|
9683
9721
|
}
|
|
9684
9722
|
return null;
|
|
9685
9723
|
}
|
|
9686
|
-
function
|
|
9687
|
-
const t =
|
|
9688
|
-
return t != null && t !== "" ? t :
|
|
9724
|
+
function Sa(e, o) {
|
|
9725
|
+
const t = At(e);
|
|
9726
|
+
return t != null && t !== "" ? t : At(o);
|
|
9689
9727
|
}
|
|
9690
|
-
const
|
|
9691
|
-
const { text: o, type: t, className: i, style: r, children: n, liveRef: s, ...f } = e, a = Qi(t),
|
|
9692
|
-
return
|
|
9693
|
-
|
|
9728
|
+
const Ca = l.memo((e) => {
|
|
9729
|
+
const { text: o, type: t, className: i, style: r, children: n, liveRef: s, ...f } = e, a = Qi(t), u = Ji[a] || "p";
|
|
9730
|
+
return l.createElement(
|
|
9731
|
+
u,
|
|
9694
9732
|
{
|
|
9695
9733
|
className: `fibo-text fibo-text-${a} min-w-0 ${i || ""}`,
|
|
9696
9734
|
style: or(a, r),
|
|
9697
9735
|
...tr(f),
|
|
9698
9736
|
...s ? { ref: s } : null
|
|
9699
9737
|
},
|
|
9700
|
-
|
|
9738
|
+
Sa(o, n)
|
|
9701
9739
|
);
|
|
9702
9740
|
});
|
|
9703
|
-
class
|
|
9741
|
+
class za extends go {
|
|
9704
9742
|
constructor(t = "") {
|
|
9705
9743
|
super();
|
|
9706
9744
|
c(this, "_text", "");
|
|
@@ -9735,19 +9773,19 @@ class Sa extends go {
|
|
|
9735
9773
|
return this._text = "", this._nodes = void 0, this;
|
|
9736
9774
|
if (typeof t == "number" || typeof t == "bigint")
|
|
9737
9775
|
return this._text = String(t), this._nodes = void 0, this;
|
|
9738
|
-
if (
|
|
9776
|
+
if (l.isValidElement(t) || Array.isArray(t))
|
|
9739
9777
|
return this._nodes = t, this._text = "", this;
|
|
9740
|
-
if (
|
|
9778
|
+
if (_a(t)) {
|
|
9741
9779
|
const i = t, {
|
|
9742
9780
|
children: r,
|
|
9743
9781
|
text: n,
|
|
9744
9782
|
variant: s,
|
|
9745
9783
|
type: f,
|
|
9746
9784
|
className: a,
|
|
9747
|
-
style:
|
|
9785
|
+
style: u,
|
|
9748
9786
|
...d
|
|
9749
9787
|
} = i;
|
|
9750
|
-
return Object.keys(d).length > 0 && this.props(d), typeof a == "string" && this.className(a),
|
|
9788
|
+
return Object.keys(d).length > 0 && this.props(d), typeof a == "string" && this.className(a), u && typeof u == "object" && this.style(u), typeof s == "string" && this.variant(s), typeof f == "string" && this.type(f), n != null ? this.text(n) : r != null ? this.text(r) : (this._text = "", this._nodes = void 0, this);
|
|
9751
9789
|
}
|
|
9752
9790
|
if (typeof t.toString == "function") {
|
|
9753
9791
|
const i = String(t);
|
|
@@ -9760,7 +9798,7 @@ class Sa extends go {
|
|
|
9760
9798
|
* CSS display (`block` / `flex` / …) sets `display` and leaves the tag alone.
|
|
9761
9799
|
*/
|
|
9762
9800
|
type(t) {
|
|
9763
|
-
return Ae(t) ? (this._type = t, this) : typeof t == "string" &&
|
|
9801
|
+
return Ae(t) ? (this._type = t, this) : typeof t == "string" && ya.has(t) ? (this.layoutStyle({ display: t }), this) : this;
|
|
9764
9802
|
}
|
|
9765
9803
|
variant(t) {
|
|
9766
9804
|
return Ae(t) && (this._type = t), this;
|
|
@@ -9828,7 +9866,7 @@ class Sa extends go {
|
|
|
9828
9866
|
className: s,
|
|
9829
9867
|
style: f,
|
|
9830
9868
|
as: a,
|
|
9831
|
-
compute:
|
|
9869
|
+
compute: u,
|
|
9832
9870
|
type: d,
|
|
9833
9871
|
text: g,
|
|
9834
9872
|
children: h,
|
|
@@ -9841,7 +9879,7 @@ class Sa extends go {
|
|
|
9841
9879
|
}, T = or(t, v), O = tr(S);
|
|
9842
9880
|
if (typeof this._text == "function") {
|
|
9843
9881
|
const $ = this._text;
|
|
9844
|
-
return
|
|
9882
|
+
return l.createElement(wa, {
|
|
9845
9883
|
...O,
|
|
9846
9884
|
...x.attrs,
|
|
9847
9885
|
compute: () => {
|
|
@@ -9872,39 +9910,39 @@ class Sa extends go {
|
|
|
9872
9910
|
$.node = M;
|
|
9873
9911
|
};
|
|
9874
9912
|
}
|
|
9875
|
-
return
|
|
9913
|
+
return l.createElement(Ca, I);
|
|
9876
9914
|
}
|
|
9877
9915
|
}
|
|
9878
|
-
const
|
|
9916
|
+
const Lc = mo(za), Ta = (e, o) => {
|
|
9879
9917
|
const t = new Array(e.length + o.length);
|
|
9880
9918
|
for (let i = 0; i < e.length; i++)
|
|
9881
9919
|
t[i] = e[i];
|
|
9882
9920
|
for (let i = 0; i < o.length; i++)
|
|
9883
9921
|
t[e.length + i] = o[i];
|
|
9884
9922
|
return t;
|
|
9885
|
-
},
|
|
9923
|
+
}, Ea = (e, o) => ({
|
|
9886
9924
|
classGroupId: e,
|
|
9887
9925
|
validator: o
|
|
9888
9926
|
}), er = (e = /* @__PURE__ */ new Map(), o = null, t) => ({
|
|
9889
9927
|
nextPart: e,
|
|
9890
9928
|
validators: o,
|
|
9891
9929
|
classGroupId: t
|
|
9892
|
-
}), ne = "-", si = [],
|
|
9893
|
-
const o =
|
|
9930
|
+
}), ne = "-", si = [], Aa = "arbitrary..", Ra = (e) => {
|
|
9931
|
+
const o = Ia(e), {
|
|
9894
9932
|
conflictingClassGroups: t,
|
|
9895
9933
|
conflictingClassGroupModifiers: i
|
|
9896
9934
|
} = e;
|
|
9897
9935
|
return {
|
|
9898
9936
|
getClassGroupId: (s) => {
|
|
9899
9937
|
if (s.startsWith("[") && s.endsWith("]"))
|
|
9900
|
-
return
|
|
9938
|
+
return Ba(s);
|
|
9901
9939
|
const f = s.split(ne), a = f[0] === "" && f.length > 1 ? 1 : 0;
|
|
9902
9940
|
return ir(f, a, o);
|
|
9903
9941
|
},
|
|
9904
9942
|
getConflictingClassGroupIds: (s, f) => {
|
|
9905
9943
|
if (f) {
|
|
9906
|
-
const a = i[s],
|
|
9907
|
-
return a ?
|
|
9944
|
+
const a = i[s], u = t[s];
|
|
9945
|
+
return a ? u ? Ta(u, a) : a : u || si;
|
|
9908
9946
|
}
|
|
9909
9947
|
return t[s] || si;
|
|
9910
9948
|
}
|
|
@@ -9914,28 +9952,28 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
9914
9952
|
return t.classGroupId;
|
|
9915
9953
|
const r = e[o], n = t.nextPart.get(r);
|
|
9916
9954
|
if (n) {
|
|
9917
|
-
const
|
|
9918
|
-
if (
|
|
9955
|
+
const u = ir(e, o + 1, n);
|
|
9956
|
+
if (u) return u;
|
|
9919
9957
|
}
|
|
9920
9958
|
const s = t.validators;
|
|
9921
9959
|
if (s === null)
|
|
9922
9960
|
return;
|
|
9923
9961
|
const f = o === 0 ? e.join(ne) : e.slice(o).join(ne), a = s.length;
|
|
9924
|
-
for (let
|
|
9925
|
-
const d = s[
|
|
9962
|
+
for (let u = 0; u < a; u++) {
|
|
9963
|
+
const d = s[u];
|
|
9926
9964
|
if (d.validator(f))
|
|
9927
9965
|
return d.classGroupId;
|
|
9928
9966
|
}
|
|
9929
|
-
},
|
|
9967
|
+
}, Ba = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
9930
9968
|
const o = e.slice(1, -1), t = o.indexOf(":"), i = o.slice(0, t);
|
|
9931
|
-
return i ?
|
|
9932
|
-
})(),
|
|
9969
|
+
return i ? Aa + i : void 0;
|
|
9970
|
+
})(), Ia = (e) => {
|
|
9933
9971
|
const {
|
|
9934
9972
|
theme: o,
|
|
9935
9973
|
classGroups: t
|
|
9936
9974
|
} = e;
|
|
9937
|
-
return
|
|
9938
|
-
},
|
|
9975
|
+
return Fa(t, o);
|
|
9976
|
+
}, Fa = (e, o) => {
|
|
9939
9977
|
const t = er();
|
|
9940
9978
|
for (const i in e) {
|
|
9941
9979
|
const r = e[i];
|
|
@@ -9946,28 +9984,28 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
9946
9984
|
const r = e.length;
|
|
9947
9985
|
for (let n = 0; n < r; n++) {
|
|
9948
9986
|
const s = e[n];
|
|
9949
|
-
|
|
9987
|
+
Na(s, o, t, i);
|
|
9950
9988
|
}
|
|
9951
|
-
},
|
|
9989
|
+
}, Na = (e, o, t, i) => {
|
|
9952
9990
|
if (typeof e == "string") {
|
|
9953
|
-
|
|
9991
|
+
$a(e, o, t);
|
|
9954
9992
|
return;
|
|
9955
9993
|
}
|
|
9956
9994
|
if (typeof e == "function") {
|
|
9957
|
-
|
|
9995
|
+
Ma(e, o, t, i);
|
|
9958
9996
|
return;
|
|
9959
9997
|
}
|
|
9960
|
-
|
|
9961
|
-
},
|
|
9998
|
+
La(e, o, t, i);
|
|
9999
|
+
}, $a = (e, o, t) => {
|
|
9962
10000
|
const i = e === "" ? o : rr(o, e);
|
|
9963
10001
|
i.classGroupId = t;
|
|
9964
|
-
},
|
|
9965
|
-
if (
|
|
10002
|
+
}, Ma = (e, o, t, i) => {
|
|
10003
|
+
if (Pa(e)) {
|
|
9966
10004
|
Oe(e(i), o, t, i);
|
|
9967
10005
|
return;
|
|
9968
10006
|
}
|
|
9969
|
-
o.validators === null && (o.validators = []), o.validators.push(
|
|
9970
|
-
},
|
|
10007
|
+
o.validators === null && (o.validators = []), o.validators.push(Ea(t, e));
|
|
10008
|
+
}, La = (e, o, t, i) => {
|
|
9971
10009
|
const r = Object.entries(e), n = r.length;
|
|
9972
10010
|
for (let s = 0; s < n; s++) {
|
|
9973
10011
|
const [f, a] = r[s];
|
|
@@ -9982,7 +10020,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
9982
10020
|
f || (f = er(), t.nextPart.set(s, f)), t = f;
|
|
9983
10021
|
}
|
|
9984
10022
|
return t;
|
|
9985
|
-
},
|
|
10023
|
+
}, Pa = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Oa = (e) => {
|
|
9986
10024
|
if (e < 1)
|
|
9987
10025
|
return {
|
|
9988
10026
|
get: () => {
|
|
@@ -10006,20 +10044,20 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10006
10044
|
n in t ? t[n] = s : r(n, s);
|
|
10007
10045
|
}
|
|
10008
10046
|
};
|
|
10009
|
-
}, Re = "!", fi = ":",
|
|
10047
|
+
}, Re = "!", fi = ":", Wa = [], ai = (e, o, t, i, r) => ({
|
|
10010
10048
|
modifiers: e,
|
|
10011
10049
|
hasImportantModifier: o,
|
|
10012
10050
|
baseClassName: t,
|
|
10013
10051
|
maybePostfixModifierPosition: i,
|
|
10014
10052
|
isExternal: r
|
|
10015
|
-
}),
|
|
10053
|
+
}), ja = (e) => {
|
|
10016
10054
|
const {
|
|
10017
10055
|
prefix: o,
|
|
10018
10056
|
experimentalParseClassName: t
|
|
10019
10057
|
} = e;
|
|
10020
10058
|
let i = (r) => {
|
|
10021
10059
|
const n = [];
|
|
10022
|
-
let s = 0, f = 0, a = 0,
|
|
10060
|
+
let s = 0, f = 0, a = 0, u;
|
|
10023
10061
|
const d = r.length;
|
|
10024
10062
|
for (let y = 0; y < d; y++) {
|
|
10025
10063
|
const x = r[y];
|
|
@@ -10029,7 +10067,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10029
10067
|
continue;
|
|
10030
10068
|
}
|
|
10031
10069
|
if (x === "/") {
|
|
10032
|
-
|
|
10070
|
+
u = y;
|
|
10033
10071
|
continue;
|
|
10034
10072
|
}
|
|
10035
10073
|
}
|
|
@@ -10044,12 +10082,12 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10044
10082
|
*/
|
|
10045
10083
|
g.startsWith(Re) && (h = g.slice(1), w = !0)
|
|
10046
10084
|
);
|
|
10047
|
-
const S =
|
|
10085
|
+
const S = u && u > a ? u - a : void 0;
|
|
10048
10086
|
return ai(n, w, h, S);
|
|
10049
10087
|
};
|
|
10050
10088
|
if (o) {
|
|
10051
10089
|
const r = o + fi, n = i;
|
|
10052
|
-
i = (s) => s.startsWith(r) ? n(s.slice(r.length)) : ai(
|
|
10090
|
+
i = (s) => s.startsWith(r) ? n(s.slice(r.length)) : ai(Wa, !1, s, void 0, !0);
|
|
10053
10091
|
}
|
|
10054
10092
|
if (t) {
|
|
10055
10093
|
const r = i;
|
|
@@ -10059,7 +10097,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10059
10097
|
});
|
|
10060
10098
|
}
|
|
10061
10099
|
return i;
|
|
10062
|
-
},
|
|
10100
|
+
}, Da = (e) => {
|
|
10063
10101
|
const o = /* @__PURE__ */ new Map();
|
|
10064
10102
|
return e.orderSensitiveModifiers.forEach((t, i) => {
|
|
10065
10103
|
o.set(t, 1e6 + i);
|
|
@@ -10072,21 +10110,21 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10072
10110
|
}
|
|
10073
10111
|
return r.length > 0 && (r.sort(), i.push(...r)), i;
|
|
10074
10112
|
};
|
|
10075
|
-
},
|
|
10076
|
-
cache:
|
|
10077
|
-
parseClassName:
|
|
10078
|
-
sortModifiers:
|
|
10079
|
-
...
|
|
10080
|
-
}),
|
|
10113
|
+
}, Ga = (e) => ({
|
|
10114
|
+
cache: Oa(e.cacheSize),
|
|
10115
|
+
parseClassName: ja(e),
|
|
10116
|
+
sortModifiers: Da(e),
|
|
10117
|
+
...Ra(e)
|
|
10118
|
+
}), Ha = /\s+/, Xa = (e, o) => {
|
|
10081
10119
|
const {
|
|
10082
10120
|
parseClassName: t,
|
|
10083
10121
|
getClassGroupId: i,
|
|
10084
10122
|
getConflictingClassGroupIds: r,
|
|
10085
10123
|
sortModifiers: n
|
|
10086
|
-
} = o, s = [], f = e.trim().split(
|
|
10124
|
+
} = o, s = [], f = e.trim().split(Ha);
|
|
10087
10125
|
let a = "";
|
|
10088
|
-
for (let
|
|
10089
|
-
const d = f[
|
|
10126
|
+
for (let u = f.length - 1; u >= 0; u -= 1) {
|
|
10127
|
+
const d = f[u], {
|
|
10090
10128
|
isExternal: g,
|
|
10091
10129
|
modifiers: h,
|
|
10092
10130
|
hasImportantModifier: w,
|
|
@@ -10121,7 +10159,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10121
10159
|
a = d + (a.length > 0 ? " " + a : a);
|
|
10122
10160
|
}
|
|
10123
10161
|
return a;
|
|
10124
|
-
},
|
|
10162
|
+
}, Va = (...e) => {
|
|
10125
10163
|
let o = 0, t, i, r = "";
|
|
10126
10164
|
for (; o < e.length; )
|
|
10127
10165
|
(t = e[o++]) && (i = nr(t)) && (r && (r += " "), r += i);
|
|
@@ -10136,32 +10174,32 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10136
10174
|
}, ci = (e, ...o) => {
|
|
10137
10175
|
let t, i, r, n;
|
|
10138
10176
|
const s = (a) => {
|
|
10139
|
-
const
|
|
10140
|
-
return t =
|
|
10177
|
+
const u = o.reduce((d, g) => g(d), e());
|
|
10178
|
+
return t = Ga(u), i = t.cache.get, r = t.cache.set, n = f, f(a);
|
|
10141
10179
|
}, f = (a) => {
|
|
10142
|
-
const
|
|
10143
|
-
if (
|
|
10144
|
-
return
|
|
10145
|
-
const d =
|
|
10180
|
+
const u = i(a);
|
|
10181
|
+
if (u)
|
|
10182
|
+
return u;
|
|
10183
|
+
const d = Xa(a, t);
|
|
10146
10184
|
return r(a, d), d;
|
|
10147
10185
|
};
|
|
10148
|
-
return n = s, (...a) => n(
|
|
10149
|
-
},
|
|
10150
|
-
const o = (t) => t[e] ||
|
|
10186
|
+
return n = s, (...a) => n(Va(...a));
|
|
10187
|
+
}, Ya = [], co = (e) => {
|
|
10188
|
+
const o = (t) => t[e] || Ya;
|
|
10151
10189
|
return o.isThemeGetter = !0, o;
|
|
10152
|
-
}, sr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, fr = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
10190
|
+
}, sr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, fr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ua = /^\d+\/\d+$/, Ka = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qa = /\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$/, Za = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ja = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, et = (e) => Ua.test(e), j = (e) => !!e && !Number.isNaN(Number(e)), Mo = (e) => !!e && Number.isInteger(Number(e)), xe = (e) => e.endsWith("%") && j(e.slice(0, -1)), Ao = (e) => Ka.test(e), oc = () => !0, tc = (e) => (
|
|
10153
10191
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
10154
10192
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
10155
10193
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
10156
|
-
|
|
10157
|
-
), ar = () => !1,
|
|
10194
|
+
qa.test(e) && !Za.test(e)
|
|
10195
|
+
), ar = () => !1, ec = (e) => Ja.test(e), ic = (e) => Qa.test(e), rc = (e) => !A(e) && !R(e), nc = (e) => ut(e, ur, ar), A = (e) => sr.test(e), Vo = (e) => ut(e, br, tc), ge = (e) => ut(e, lc, j), li = (e) => ut(e, cr, ar), sc = (e) => ut(e, lr, ic), Gt = (e) => ut(e, hr, ec), R = (e) => fr.test(e), kt = (e) => bt(e, br), fc = (e) => bt(e, uc), ui = (e) => bt(e, cr), ac = (e) => bt(e, ur), cc = (e) => bt(e, lr), Ht = (e) => bt(e, hr, !0), ut = (e, o, t) => {
|
|
10158
10196
|
const i = sr.exec(e);
|
|
10159
10197
|
return i ? i[1] ? o(i[1]) : t(i[2]) : !1;
|
|
10160
|
-
},
|
|
10198
|
+
}, bt = (e, o, t = !1) => {
|
|
10161
10199
|
const i = fr.exec(e);
|
|
10162
10200
|
return i ? i[1] ? o(i[1]) : t : !1;
|
|
10163
|
-
}, cr = (e) => e === "position" || e === "percentage", lr = (e) => e === "image" || e === "url", ur = (e) => e === "length" || e === "size" || e === "bg-size", br = (e) => e === "length",
|
|
10164
|
-
const e = co("color"), o = co("font"), t = co("text"), i = co("font-weight"), r = co("tracking"), n = co("leading"), s = co("breakpoint"), f = co("container"), a = co("spacing"),
|
|
10201
|
+
}, cr = (e) => e === "position" || e === "percentage", lr = (e) => e === "image" || e === "url", ur = (e) => e === "length" || e === "size" || e === "bg-size", br = (e) => e === "length", lc = (e) => e === "number", uc = (e) => e === "family-name", hr = (e) => e === "shadow", bi = () => {
|
|
10202
|
+
const e = co("color"), o = co("font"), t = co("text"), i = co("font-weight"), r = co("tracking"), n = co("leading"), s = co("breakpoint"), f = co("container"), a = co("spacing"), u = co("radius"), d = co("shadow"), g = co("inset-shadow"), h = co("text-shadow"), w = co("drop-shadow"), S = co("blur"), y = co("perspective"), x = co("aspect"), v = co("ease"), T = co("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
|
|
10165
10203
|
"center",
|
|
10166
10204
|
"top",
|
|
10167
10205
|
"bottom",
|
|
@@ -10179,30 +10217,30 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10179
10217
|
"bottom-left",
|
|
10180
10218
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
10181
10219
|
"left-bottom"
|
|
10182
|
-
], $ = () => [...I(), R, A], M = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], k = () => [R, A, a], H = () => [
|
|
10220
|
+
], $ = () => [...I(), R, A], M = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], k = () => [R, A, a], H = () => [et, "full", "auto", ...k()], V = () => [Mo, "none", "subgrid", R, A], K = () => ["auto", {
|
|
10183
10221
|
span: ["full", Mo, R, A]
|
|
10184
|
-
}, Mo, R, A],
|
|
10222
|
+
}, Mo, R, A], eo = () => [Mo, "auto", R, A], po = () => ["auto", "min", "max", "fr", R, A], no = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], fo = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], so = () => ["auto", ...k()], oo = () => [et, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], C = () => [e, R, A], So = () => [...I(), ui, li, {
|
|
10185
10223
|
position: [R, A]
|
|
10186
10224
|
}], yo = () => ["no-repeat", {
|
|
10187
10225
|
repeat: ["", "x", "y", "space", "round"]
|
|
10188
|
-
}], Do = () => ["auto", "cover", "contain",
|
|
10226
|
+
}], Do = () => ["auto", "cover", "contain", ac, nc, {
|
|
10189
10227
|
size: [R, A]
|
|
10190
|
-
}], N = () => [xe,
|
|
10228
|
+
}], N = () => [xe, kt, Vo], q = () => [
|
|
10191
10229
|
// Deprecated since Tailwind CSS v4.0.0
|
|
10192
10230
|
"",
|
|
10193
10231
|
"none",
|
|
10194
10232
|
"full",
|
|
10195
|
-
|
|
10233
|
+
u,
|
|
10196
10234
|
R,
|
|
10197
10235
|
A
|
|
10198
|
-
], lo = () => ["", j,
|
|
10236
|
+
], lo = () => ["", j, kt, Vo], Y = () => ["solid", "dashed", "dotted", "double"], Go = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => [j, xe, ui, li], Fo = () => [
|
|
10199
10237
|
// Deprecated since Tailwind CSS v4.0.0
|
|
10200
10238
|
"",
|
|
10201
10239
|
"none",
|
|
10202
10240
|
S,
|
|
10203
10241
|
R,
|
|
10204
10242
|
A
|
|
10205
|
-
], To = () => ["none", j, R, A], uo = () => ["none", j, R, A], Eo = () => [j, R, A], wo = () => [
|
|
10243
|
+
], To = () => ["none", j, R, A], uo = () => ["none", j, R, A], Eo = () => [j, R, A], wo = () => [et, "full", ...k()];
|
|
10206
10244
|
return {
|
|
10207
10245
|
cacheSize: 500,
|
|
10208
10246
|
theme: {
|
|
@@ -10210,11 +10248,11 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10210
10248
|
aspect: ["video"],
|
|
10211
10249
|
blur: [Ao],
|
|
10212
10250
|
breakpoint: [Ao],
|
|
10213
|
-
color: [
|
|
10251
|
+
color: [oc],
|
|
10214
10252
|
container: [Ao],
|
|
10215
10253
|
"drop-shadow": [Ao],
|
|
10216
10254
|
ease: ["in", "out", "in-out"],
|
|
10217
|
-
font: [
|
|
10255
|
+
font: [rc],
|
|
10218
10256
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
10219
10257
|
"inset-shadow": [Ao],
|
|
10220
10258
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -10235,7 +10273,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10235
10273
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
10236
10274
|
*/
|
|
10237
10275
|
aspect: [{
|
|
10238
|
-
aspect: ["auto", "square",
|
|
10276
|
+
aspect: ["auto", "square", et, A, R, x]
|
|
10239
10277
|
}],
|
|
10240
10278
|
/**
|
|
10241
10279
|
* Container
|
|
@@ -10458,7 +10496,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10458
10496
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
10459
10497
|
*/
|
|
10460
10498
|
basis: [{
|
|
10461
|
-
basis: [
|
|
10499
|
+
basis: [et, "full", "auto", f, ...k()]
|
|
10462
10500
|
}],
|
|
10463
10501
|
/**
|
|
10464
10502
|
* Flex Direction
|
|
@@ -10479,7 +10517,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10479
10517
|
* @see https://tailwindcss.com/docs/flex
|
|
10480
10518
|
*/
|
|
10481
10519
|
flex: [{
|
|
10482
|
-
flex: [j,
|
|
10520
|
+
flex: [j, et, "auto", "initial", "none", A]
|
|
10483
10521
|
}],
|
|
10484
10522
|
/**
|
|
10485
10523
|
* Flex Grow
|
|
@@ -10521,14 +10559,14 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10521
10559
|
* @see https://tailwindcss.com/docs/grid-column
|
|
10522
10560
|
*/
|
|
10523
10561
|
"col-start": [{
|
|
10524
|
-
"col-start":
|
|
10562
|
+
"col-start": eo()
|
|
10525
10563
|
}],
|
|
10526
10564
|
/**
|
|
10527
10565
|
* Grid Column End
|
|
10528
10566
|
* @see https://tailwindcss.com/docs/grid-column
|
|
10529
10567
|
*/
|
|
10530
10568
|
"col-end": [{
|
|
10531
|
-
"col-end":
|
|
10569
|
+
"col-end": eo()
|
|
10532
10570
|
}],
|
|
10533
10571
|
/**
|
|
10534
10572
|
* Grid Template Rows
|
|
@@ -10549,14 +10587,14 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10549
10587
|
* @see https://tailwindcss.com/docs/grid-row
|
|
10550
10588
|
*/
|
|
10551
10589
|
"row-start": [{
|
|
10552
|
-
"row-start":
|
|
10590
|
+
"row-start": eo()
|
|
10553
10591
|
}],
|
|
10554
10592
|
/**
|
|
10555
10593
|
* Grid Row End
|
|
10556
10594
|
* @see https://tailwindcss.com/docs/grid-row
|
|
10557
10595
|
*/
|
|
10558
10596
|
"row-end": [{
|
|
10559
|
-
"row-end":
|
|
10597
|
+
"row-end": eo()
|
|
10560
10598
|
}],
|
|
10561
10599
|
/**
|
|
10562
10600
|
* Grid Auto Flow
|
|
@@ -10895,7 +10933,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10895
10933
|
* @see https://tailwindcss.com/docs/font-size
|
|
10896
10934
|
*/
|
|
10897
10935
|
"font-size": [{
|
|
10898
|
-
text: ["base", t,
|
|
10936
|
+
text: ["base", t, kt, Vo]
|
|
10899
10937
|
}],
|
|
10900
10938
|
/**
|
|
10901
10939
|
* Font Smoothing
|
|
@@ -10926,7 +10964,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
10926
10964
|
* @see https://tailwindcss.com/docs/font-family
|
|
10927
10965
|
*/
|
|
10928
10966
|
"font-family": [{
|
|
10929
|
-
font: [
|
|
10967
|
+
font: [fc, A, o]
|
|
10930
10968
|
}],
|
|
10931
10969
|
/**
|
|
10932
10970
|
* Font Variant Numeric
|
|
@@ -11181,7 +11219,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
11181
11219
|
}, Mo, R, A],
|
|
11182
11220
|
radial: ["", R, A],
|
|
11183
11221
|
conic: [Mo, R, A]
|
|
11184
|
-
},
|
|
11222
|
+
}, cc, sc]
|
|
11185
11223
|
}],
|
|
11186
11224
|
/**
|
|
11187
11225
|
* Background Color
|
|
@@ -11530,7 +11568,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
11530
11568
|
* @see https://tailwindcss.com/docs/outline-width
|
|
11531
11569
|
*/
|
|
11532
11570
|
"outline-w": [{
|
|
11533
|
-
outline: ["", j,
|
|
11571
|
+
outline: ["", j, kt, Vo]
|
|
11534
11572
|
}],
|
|
11535
11573
|
/**
|
|
11536
11574
|
* Outline Color
|
|
@@ -12555,7 +12593,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
12555
12593
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
12556
12594
|
*/
|
|
12557
12595
|
"stroke-w": [{
|
|
12558
|
-
stroke: [j,
|
|
12596
|
+
stroke: [j, kt, Vo, ge]
|
|
12559
12597
|
}],
|
|
12560
12598
|
/**
|
|
12561
12599
|
* Stroke
|
|
@@ -12630,18 +12668,18 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
12630
12668
|
},
|
|
12631
12669
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
12632
12670
|
};
|
|
12633
|
-
},
|
|
12671
|
+
}, bc = (e, {
|
|
12634
12672
|
cacheSize: o,
|
|
12635
12673
|
prefix: t,
|
|
12636
12674
|
experimentalParseClassName: i,
|
|
12637
12675
|
extend: r = {},
|
|
12638
12676
|
override: n = {}
|
|
12639
|
-
}) => (
|
|
12677
|
+
}) => (St(e, "cacheSize", o), St(e, "prefix", t), St(e, "experimentalParseClassName", i), Xt(e.theme, n.theme), Xt(e.classGroups, n.classGroups), Xt(e.conflictingClassGroups, n.conflictingClassGroups), Xt(e.conflictingClassGroupModifiers, n.conflictingClassGroupModifiers), St(e, "orderSensitiveModifiers", n.orderSensitiveModifiers), Vt(e.theme, r.theme), Vt(e.classGroups, r.classGroups), Vt(e.conflictingClassGroups, r.conflictingClassGroups), Vt(e.conflictingClassGroupModifiers, r.conflictingClassGroupModifiers), dr(e, r, "orderSensitiveModifiers"), e), St = (e, o, t) => {
|
|
12640
12678
|
t !== void 0 && (e[o] = t);
|
|
12641
12679
|
}, Xt = (e, o) => {
|
|
12642
12680
|
if (o)
|
|
12643
12681
|
for (const t in o)
|
|
12644
|
-
|
|
12682
|
+
St(e, t, o[t]);
|
|
12645
12683
|
}, Vt = (e, o) => {
|
|
12646
12684
|
if (o)
|
|
12647
12685
|
for (const t in o)
|
|
@@ -12649,7 +12687,7 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
12649
12687
|
}, dr = (e, o, t) => {
|
|
12650
12688
|
const i = o[t];
|
|
12651
12689
|
i !== void 0 && (e[t] = e[t] ? e[t].concat(i) : i);
|
|
12652
|
-
},
|
|
12690
|
+
}, hc = (e, ...o) => typeof e == "function" ? ci(bi, e, ...o) : ci(() => bc(bi(), e), ...o), X = [() => !0], dc = hc({
|
|
12653
12691
|
extend: {
|
|
12654
12692
|
classGroups: {
|
|
12655
12693
|
h: [{ "fibo-height": X }],
|
|
@@ -12685,16 +12723,16 @@ const $c = mo(Sa), Ca = (e, o) => {
|
|
|
12685
12723
|
}
|
|
12686
12724
|
}
|
|
12687
12725
|
});
|
|
12688
|
-
function
|
|
12726
|
+
function Ct(e) {
|
|
12689
12727
|
return e === "submit" || e === "reset" || e === "button" ? e : "button";
|
|
12690
12728
|
}
|
|
12691
|
-
function
|
|
12729
|
+
function pc(e) {
|
|
12692
12730
|
const o = { ...e };
|
|
12693
12731
|
for (const t of Object.keys(o))
|
|
12694
12732
|
t.startsWith("on") && typeof o[t] == "function" && delete o[t];
|
|
12695
12733
|
return o;
|
|
12696
12734
|
}
|
|
12697
|
-
function
|
|
12735
|
+
function xc(e, o) {
|
|
12698
12736
|
const {
|
|
12699
12737
|
text: t,
|
|
12700
12738
|
variant: i,
|
|
@@ -12703,7 +12741,7 @@ function dc(e, o) {
|
|
|
12703
12741
|
onHover: s,
|
|
12704
12742
|
disabled: f,
|
|
12705
12743
|
icon: a,
|
|
12706
|
-
shape:
|
|
12744
|
+
shape: u,
|
|
12707
12745
|
shadow: d,
|
|
12708
12746
|
tone: g,
|
|
12709
12747
|
motion: h,
|
|
@@ -12716,27 +12754,27 @@ function dc(e, o) {
|
|
|
12716
12754
|
onClick: O,
|
|
12717
12755
|
children: I,
|
|
12718
12756
|
...$
|
|
12719
|
-
} = e, M =
|
|
12757
|
+
} = e, M = Ct(x), W = {
|
|
12720
12758
|
xs: "px-[21px] py-[8px] text-[10px] gap-[6px] h-auto tracking-[0.12em] font-normal",
|
|
12721
12759
|
sm: "px-[14px] py-[6px] text-[13px] gap-[6px] h-[32px]",
|
|
12722
12760
|
md: "px-[22px] py-[10px] text-[15px] gap-[8px] h-[44px]",
|
|
12723
12761
|
lg: "px-[32px] py-[16px] text-[17px] gap-[10px] h-[56px]"
|
|
12724
12762
|
};
|
|
12725
12763
|
let k = "rounded-[14px]";
|
|
12726
|
-
|
|
12764
|
+
u === "pill" ? k = "rounded-full" : u === "square" ? k = "rounded-[12px]" : u === "rect" ? k = "rounded-[2px]" : u === "rounded" ? k = "rounded-[8px]" : u === "sharp" && (k = "rounded-none");
|
|
12727
12765
|
const H = g === "inverse";
|
|
12728
12766
|
let V = "";
|
|
12729
12767
|
i === "ghost" ? V = H ? "bg-transparent text-white shadow-none border border-transparent" : "bg-transparent text-[var(--fibo-on-surface)] shadow-none border border-transparent hover:bg-[color-mix(in_srgb,var(--fibo-on-surface)_8%,transparent)]" : i === "text" ? V = H ? "bg-transparent text-white shadow-none border-none px-2" : "bg-transparent text-[var(--fibo-on-surface)] shadow-none border-none px-2 hover:bg-[color-mix(in_srgb,var(--fibo-on-surface)_8%,transparent)]" : i === "soft" ? V = "bg-[color-mix(in_srgb,var(--fibo-primary)_12%,transparent)] text-[var(--fibo-primary)] shadow-none border-none hover:bg-[color-mix(in_srgb,var(--fibo-primary)_18%,transparent)]" : i === "outline" || i === "outlined" ? V = H ? "bg-black text-white shadow-none border border-[#3b3b3b]" : "bg-transparent border-[1.5px] border-[var(--fibo-outline,rgba(0,0,0,0.12))] text-[var(--fibo-on-surface)] shadow-none hover:bg-[color-mix(in_srgb,var(--fibo-on-surface)_6%,transparent)]" : i === "solid" ? V = H ? "bg-[#f2f2f2] text-black shadow-none border border-[#f2f2f2]" : "bg-[var(--fibo-primary)] text-[var(--fibo-on-primary)] shadow-none border-none hover:opacity-90" : i === "filled" || i === "primary" ? V = "bg-[var(--fibo-primary)] text-[var(--fibo-on-primary)] shadow-sm border-none hover:opacity-90 active:opacity-100" : i === "elevated" ? V = "bg-[var(--fibo-surface)] text-[var(--fibo-primary)] shadow-md border-none hover:shadow-lg" : i === "tonal" ? V = "bg-[var(--fibo-secondary-container)] text-[var(--fibo-on-secondary-container)] shadow-sm border-none" : i === "raw" && (V = "bg-transparent border-none shadow-none p-0 h-auto gap-0 text-inherit font-inherit hover:bg-transparent items-stretch [&>*]:h-full [&>*]:self-stretch", k = ""), d === "soft" && i !== "raw" && (V += " shadow-[0_8px_20px_-6px_rgba(59,130,246,0.4)]");
|
|
12730
|
-
const K = y || {},
|
|
12768
|
+
const K = y || {}, eo = K.padding !== void 0 || K.paddingTop !== void 0 || K.paddingBottom !== void 0 || K.paddingLeft !== void 0 || K.paddingRight !== void 0 || K.fontSize !== void 0 || K.height !== void 0, po = K.borderRadius !== void 0, no = K.fontWeight !== void 0 || r === "xs" || H, fo = i === "raw" || h === "none" || H || r === "xs" || v;
|
|
12731
12769
|
v ? (V = "", k = "") : f && (V = V.replace(/\s*(hover|active):\S+/g, "").trim());
|
|
12732
|
-
const so =
|
|
12770
|
+
const so = dc(
|
|
12733
12771
|
"fibo-button",
|
|
12734
12772
|
v ? "" : "relative overflow-hidden",
|
|
12735
12773
|
"inline-flex items-center justify-center whitespace-nowrap",
|
|
12736
12774
|
no || v ? "" : "font-semibold",
|
|
12737
12775
|
fo || f ? "" : "scale-100 active:scale-[0.96] transform transition-transform duration-200 ease-out",
|
|
12738
12776
|
f ? "cursor-not-allowed opacity-60 pointer-events-none" : "cursor-pointer",
|
|
12739
|
-
i === "raw" || v ||
|
|
12777
|
+
i === "raw" || v || eo ? "" : W[r],
|
|
12740
12778
|
i === "raw" || v || po ? "" : k,
|
|
12741
12779
|
w ? "flex-1 w-full" : "",
|
|
12742
12780
|
`fibo-button-${i}`,
|
|
@@ -12748,14 +12786,14 @@ function dc(e, o) {
|
|
|
12748
12786
|
className: so,
|
|
12749
12787
|
ref: T,
|
|
12750
12788
|
disabled: f,
|
|
12751
|
-
...
|
|
12789
|
+
...pc($),
|
|
12752
12790
|
type: M,
|
|
12753
12791
|
style: K
|
|
12754
12792
|
};
|
|
12755
|
-
return
|
|
12793
|
+
return l.createElement("button", C, ...oo);
|
|
12756
12794
|
}
|
|
12757
|
-
function
|
|
12758
|
-
return
|
|
12795
|
+
function gc(e) {
|
|
12796
|
+
return xc(e);
|
|
12759
12797
|
}
|
|
12760
12798
|
function pr(e, o) {
|
|
12761
12799
|
if (!(typeof o != "string" || !J(o)))
|
|
@@ -12777,10 +12815,10 @@ function Be(e, o) {
|
|
|
12777
12815
|
if (Array.isArray(o))
|
|
12778
12816
|
for (const t of o) Be(e, t);
|
|
12779
12817
|
}
|
|
12780
|
-
function
|
|
12818
|
+
function mc(e) {
|
|
12781
12819
|
return typeof e == "string" && J(e) ? ho(e) : e;
|
|
12782
12820
|
}
|
|
12783
|
-
class
|
|
12821
|
+
class vc extends go {
|
|
12784
12822
|
constructor(t = "") {
|
|
12785
12823
|
super();
|
|
12786
12824
|
c(this, "_text", "");
|
|
@@ -12848,10 +12886,10 @@ class gc extends go {
|
|
|
12848
12886
|
* a props object renders the button.
|
|
12849
12887
|
*/
|
|
12850
12888
|
type(t) {
|
|
12851
|
-
return this._htmlType =
|
|
12889
|
+
return this._htmlType = Ct(t), this._htmlTypeExplicit = !0, this;
|
|
12852
12890
|
}
|
|
12853
12891
|
htmlType(t) {
|
|
12854
|
-
return this._htmlType =
|
|
12892
|
+
return this._htmlType = Ct(t), this._htmlTypeExplicit = !0, this;
|
|
12855
12893
|
}
|
|
12856
12894
|
/** Shortcut for `.htmlType('submit')` inside a `Form`. */
|
|
12857
12895
|
submit() {
|
|
@@ -12863,7 +12901,7 @@ class gc extends go {
|
|
|
12863
12901
|
}
|
|
12864
12902
|
resolvedHtmlType() {
|
|
12865
12903
|
var t;
|
|
12866
|
-
return this._htmlTypeExplicit ?
|
|
12904
|
+
return this._htmlTypeExplicit ? Ct(this._htmlType) : Ct(((t = this._props) == null ? void 0 : t.type) ?? this._htmlType);
|
|
12867
12905
|
}
|
|
12868
12906
|
build() {
|
|
12869
12907
|
const t = this.getClassName(), i = typeof this._text == "function" ? this._text() : this._text, n = {
|
|
@@ -12881,7 +12919,7 @@ class gc extends go {
|
|
|
12881
12919
|
expand: this._expand,
|
|
12882
12920
|
className: t,
|
|
12883
12921
|
style: this.getStyle(),
|
|
12884
|
-
children: this.processChildren().map(
|
|
12922
|
+
children: this.processChildren().map(mc),
|
|
12885
12923
|
...this._props,
|
|
12886
12924
|
type: this.resolvedHtmlType(),
|
|
12887
12925
|
bare: this.isReset()
|
|
@@ -12892,31 +12930,31 @@ class gc extends go {
|
|
|
12892
12930
|
s.node = f;
|
|
12893
12931
|
};
|
|
12894
12932
|
}
|
|
12895
|
-
return
|
|
12933
|
+
return l.createElement(gc, n);
|
|
12896
12934
|
}
|
|
12897
12935
|
}
|
|
12898
|
-
const
|
|
12936
|
+
const Pc = mo(vc);
|
|
12899
12937
|
export {
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12938
|
+
Fc as Box,
|
|
12939
|
+
Pc as Button,
|
|
12940
|
+
Nc as Card,
|
|
12941
|
+
Tc as Center,
|
|
12942
|
+
Ec as Column,
|
|
12943
|
+
Ac as Container,
|
|
12906
12944
|
wi as FiboStyles,
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12945
|
+
$c as Grid,
|
|
12946
|
+
Mc as GridItem,
|
|
12947
|
+
Hf as Header,
|
|
12910
12948
|
tn as MotionStyles,
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12949
|
+
_c as Presence,
|
|
12950
|
+
Rc as Row,
|
|
12951
|
+
Ic as Scaffold,
|
|
12952
|
+
Bc as Spacer,
|
|
12953
|
+
Lc as Text,
|
|
12954
|
+
Cc as createPage,
|
|
12917
12955
|
vi as endSsrRequest,
|
|
12918
12956
|
mi as getCss,
|
|
12919
|
-
|
|
12957
|
+
Sc as getStyleTag,
|
|
12920
12958
|
en as page,
|
|
12921
|
-
|
|
12959
|
+
zc as withFiboStyles
|
|
12922
12960
|
};
|