@pfct/purple 1.16.2 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/Accordion.DYya7dTN.js +1 -0
- package/dist/chunks/Accordion.DgWTtf1u.js +716 -0
- package/dist/chunks/Divider.CptJ_x2Y.js +1 -0
- package/dist/chunks/{Divider.DBtnaPqJ.js → Divider.DR-c4z_i.js} +16 -13
- package/dist/chunks/DotLottie.BQNTv0XO.js +5 -0
- package/dist/chunks/DotLottie.qOfU0HjI.js +1993 -0
- package/dist/chunks/Switch.D7T_jbtK.js +207 -0
- package/dist/chunks/Switch.DUWZASi8.js +1 -0
- package/dist/chunks/Toast.Bnm65xmy.js +1 -0
- package/dist/chunks/Toast.C7OnkFjA.js +698 -0
- package/dist/chunks/{bottomSheet.BGKwHjuP.js → bottomSheet.DCURoJ3z.js} +1 -1
- package/dist/chunks/{bottomSheet.C99fAuQK.js → bottomSheet.DqOEMG09.js} +1 -1
- package/dist/chunks/checkbox.DjQsU_Pk.js +1 -0
- package/dist/chunks/{checkbox.DNdnhspb.js → checkbox.Dl8nNqLc.js} +100 -92
- package/dist/chunks/dist.AclwPuO5.js +1 -0
- package/dist/chunks/{dist.BskID78S.js → dist.B0edyUiC.js} +176 -178
- package/dist/chunks/dist.B4GZ3aX4.js +111 -0
- package/dist/chunks/dist.BE2xxxwt.js +96 -0
- package/dist/chunks/dist.Ba6P-3sU.js +1 -0
- package/dist/chunks/dist.BaV_5zx8.js +186 -0
- package/dist/chunks/{dist.CDZCWPu4.js → dist.BnLwXMBJ.js} +8 -4
- package/dist/chunks/dist.BpQ7SpeW.js +227 -0
- package/dist/chunks/dist.Bui5aGSB.js +197 -0
- package/dist/chunks/dist.CBOTGT1c.js +1 -0
- package/dist/chunks/dist.CIvT5XE_.js +1 -0
- package/dist/chunks/dist.CKG-hzoQ.js +1 -0
- package/dist/chunks/{dist.QtpYoD01.js → dist.CVClT59R.js} +8 -3
- package/dist/chunks/dist.CcSbgqVt.js +1 -0
- package/dist/chunks/dist.Cf8FjzvS.js +1 -0
- package/dist/chunks/{dist.DIjdcvlQ.js → dist.Cx1JFVV3.js} +48 -59
- package/dist/chunks/dist.D7s7BenH.js +1 -0
- package/dist/chunks/dist.DQ5uOc4y.js +1 -0
- package/dist/chunks/dist.DWzqVshx.js +16 -0
- package/dist/chunks/dist.DfLaHIBc.js +1 -0
- package/dist/chunks/dist.DomaJxrX.js +1 -0
- package/dist/chunks/dist.e7n2cf43.js +144 -0
- package/dist/chunks/dist.gUJz6qTg.js +185 -0
- package/dist/chunks/dist.zJ3rbM0i.js +1 -0
- package/dist/chunks/drawer.Cots0_ea.js +7 -0
- package/dist/chunks/drawer.ftfBm36h.js +1836 -0
- package/dist/chunks/es2015.CfvYaoE5.js +41 -0
- package/dist/chunks/{es2015.ByVyszJo.js → es2015.DCKfm2VN.js} +168 -187
- package/dist/chunks/{src.D-VoFbup.js → src.BAhu5d2_.js} +1 -1
- package/dist/chunks/{src.CmgILXZE.js → src.DlM6Ki-I.js} +5 -5
- package/dist/chunks/tooltip.8vKL7w2a.js +1 -0
- package/dist/chunks/tooltip.D9PoXwtV.js +448 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.esm.js +1 -1
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.esm.js +1 -1
- package/dist/components/Control/index.cjs.js +1 -1
- package/dist/components/Control/index.esm.js +2 -2
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.esm.js +1 -1
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.esm.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.esm.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.esm.js +1 -1
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.esm.js +1 -1
- package/dist/components/Pagination/index.cjs.js +1 -1
- package/dist/components/Pagination/index.esm.js +1 -1
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.esm.js +1 -1
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.esm.js +1 -1
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.esm.js +3 -3
- package/dist/components/Toast/index.cjs.js +1 -1
- package/dist/components/Toast/index.esm.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.esm.js +8 -8
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.esm.js +1 -1
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.esm.js +1 -1
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.esm.js +1 -1
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.esm.js +1 -1
- package/dist/components/ui/drawer.cjs.js +1 -1
- package/dist/components/ui/drawer.esm.js +1 -1
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.esm.js +1 -1
- package/dist/components/ui/select.cjs.js +1 -1
- package/dist/components/ui/select.esm.js +3 -3
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.esm.js +1 -1
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.esm.js +1 -1
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +1 -1
- package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
- package/dist/icons/src/aliases/aliases.esm.js +3 -3
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.esm.js +3 -3
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +9 -9
- package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/prefixed.esm.js +3 -3
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +10 -10
- package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/suffixed.esm.js +3 -3
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.esm.js +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +12 -12
- package/dist/library/DotLottie/index.cjs.js +1 -1
- package/dist/library/DotLottie/index.d.ts +13 -0
- package/dist/library/DotLottie/index.d.ts.map +1 -1
- package/dist/library/DotLottie/index.esm.js +1 -1
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.d.ts +13 -0
- package/dist/library/Lottie/index.d.ts.map +1 -1
- package/dist/library/Lottie/index.esm.js +25 -25
- package/dist/library/index.cjs.js +1 -1
- package/dist/library/index.esm.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/Accordion.Cs1f4aQZ.js +0 -373
- package/dist/chunks/Accordion.ZIp0NsA0.js +0 -1
- package/dist/chunks/Divider.BIS4pXEy.js +0 -1
- package/dist/chunks/DotLottie.CaDygpsw.js +0 -73962
- package/dist/chunks/DotLottie.Cf-SL2bJ.js +0 -5
- package/dist/chunks/Switch.C6xwIjJR.js +0 -1
- package/dist/chunks/Switch.D_myxCrS.js +0 -200
- package/dist/chunks/Toast.Cjdk4za6.js +0 -1
- package/dist/chunks/Toast.D1-VfeA2.js +0 -685
- package/dist/chunks/checkbox.CfWB_nqn.js +0 -1
- package/dist/chunks/dist.B2wZmrK1.js +0 -98
- package/dist/chunks/dist.B8tpQk-4.js +0 -1
- package/dist/chunks/dist.BC0-iqKU.js +0 -1
- package/dist/chunks/dist.BGATFz6w.js +0 -1
- package/dist/chunks/dist.BQIeYu70.js +0 -1
- package/dist/chunks/dist.BWsA5f1f.js +0 -1
- package/dist/chunks/dist.BixLWWwb.js +0 -71
- package/dist/chunks/dist.Bxqi8VAi.js +0 -1
- package/dist/chunks/dist.C8FJXTu6.js +0 -10
- package/dist/chunks/dist.C8NniehT.js +0 -1
- package/dist/chunks/dist.C8k7jQIp.js +0 -87
- package/dist/chunks/dist.CEJ-WCY_.js +0 -44
- package/dist/chunks/dist.CIQdvun-.js +0 -1
- package/dist/chunks/dist.Cff8LOoN.js +0 -67
- package/dist/chunks/dist.CmRTDXGG.js +0 -1
- package/dist/chunks/dist.CwMFqhEQ.js +0 -146
- package/dist/chunks/dist.CwWM0zXK.js +0 -25
- package/dist/chunks/dist.CyhalHxz.js +0 -1
- package/dist/chunks/dist.Czpint58.js +0 -1
- package/dist/chunks/dist.D3cPoDZ_.js +0 -194
- package/dist/chunks/dist.D4mQo5QB.js +0 -1
- package/dist/chunks/dist.D5ataprQ.js +0 -1
- package/dist/chunks/dist.D6A3yc_d.js +0 -11
- package/dist/chunks/dist.DKOi9kq6.js +0 -1
- package/dist/chunks/dist.DhCw5vjE.js +0 -1
- package/dist/chunks/dist.DrfVZqiO.js +0 -186
- package/dist/chunks/dist.SHmlpKFY.js +0 -1
- package/dist/chunks/dist.kg7EEYPp.js +0 -12
- package/dist/chunks/drawer.Cji5AtcU.js +0 -1720
- package/dist/chunks/drawer.Gt1AjdVH.js +0 -7
- package/dist/chunks/es2015.D2emqwtq.js +0 -41
- package/dist/chunks/tooltip.DGgNTZ5B.js +0 -444
- package/dist/chunks/tooltip.vEwTtt8v.js +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { t as a } from "./dist.C8FJXTu6.js";
|
|
1
|
+
import { i as e, n as t } from "./dist.BpQ7SpeW.js";
|
|
2
|
+
import { i as n } from "./dist.B4GZ3aX4.js";
|
|
3
|
+
import { t as r } from "./dist.BnLwXMBJ.js";
|
|
4
|
+
import { t as i } from "./dist.CVClT59R.js";
|
|
5
|
+
import { i as a } from "./dist.Bui5aGSB.js";
|
|
7
6
|
import * as o from "react";
|
|
8
7
|
import { useLayoutEffect as s } from "react";
|
|
9
8
|
import { jsx as c } from "react/jsx-runtime";
|
|
@@ -554,20 +553,20 @@ function we(e) {
|
|
|
554
553
|
let t = X(e);
|
|
555
554
|
return J(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && me(t) ? t : we(t);
|
|
556
555
|
}
|
|
557
|
-
function
|
|
556
|
+
function Te(e, t, n) {
|
|
558
557
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
559
558
|
let r = we(e), i = r === e.ownerDocument?.body, a = U(r);
|
|
560
559
|
if (i) {
|
|
561
|
-
let e =
|
|
562
|
-
return t.concat(a, a.visualViewport || [], me(r) ? r : [], e && n ?
|
|
563
|
-
} else return t.concat(r,
|
|
560
|
+
let e = Ee(a);
|
|
561
|
+
return t.concat(a, a.visualViewport || [], me(r) ? r : [], e && n ? Te(e) : []);
|
|
562
|
+
} else return t.concat(r, Te(r, [], n));
|
|
564
563
|
}
|
|
565
|
-
function
|
|
564
|
+
function Ee(e) {
|
|
566
565
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
567
566
|
}
|
|
568
567
|
//#endregion
|
|
569
568
|
//#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
570
|
-
function
|
|
569
|
+
function De(e) {
|
|
571
570
|
let t = Y(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = K(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = p(n) !== a || p(r) !== o;
|
|
572
571
|
return s && (n = a, r = o), {
|
|
573
572
|
width: n,
|
|
@@ -575,39 +574,39 @@ function Ee(e) {
|
|
|
575
574
|
$: s
|
|
576
575
|
};
|
|
577
576
|
}
|
|
578
|
-
function
|
|
577
|
+
function Oe(e) {
|
|
579
578
|
return G(e) ? e : e.contextElement;
|
|
580
579
|
}
|
|
581
|
-
function
|
|
582
|
-
let t =
|
|
580
|
+
function Z(e) {
|
|
581
|
+
let t = Oe(e);
|
|
583
582
|
if (!K(t)) return h(1);
|
|
584
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
583
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = De(t), o = (a ? p(n.width) : n.width) / r, s = (a ? p(n.height) : n.height) / i;
|
|
585
584
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
586
585
|
x: o,
|
|
587
586
|
y: s
|
|
588
587
|
};
|
|
589
588
|
}
|
|
590
|
-
var
|
|
591
|
-
function
|
|
589
|
+
var ke = /*#__PURE__*/ h(0);
|
|
590
|
+
function Ae(e) {
|
|
592
591
|
let t = U(e);
|
|
593
|
-
return !Se() || !t.visualViewport ?
|
|
592
|
+
return !Se() || !t.visualViewport ? ke : {
|
|
594
593
|
x: t.visualViewport.offsetLeft,
|
|
595
594
|
y: t.visualViewport.offsetTop
|
|
596
595
|
};
|
|
597
596
|
}
|
|
598
|
-
function
|
|
597
|
+
function je(e, t, n) {
|
|
599
598
|
return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
|
|
600
599
|
}
|
|
601
|
-
function
|
|
600
|
+
function Q(e, t, n, r) {
|
|
602
601
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
603
|
-
let i = e.getBoundingClientRect(), a =
|
|
604
|
-
t && (r ? G(r) && (o =
|
|
605
|
-
let s =
|
|
602
|
+
let i = e.getBoundingClientRect(), a = Oe(e), o = h(1);
|
|
603
|
+
t && (r ? G(r) && (o = Z(r)) : o = Z(e));
|
|
604
|
+
let s = je(a, n, r) ? Ae(a) : h(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
606
605
|
if (a) {
|
|
607
|
-
let e = U(a), t = r && G(r) ? U(r) : r, n = e, i =
|
|
606
|
+
let e = U(a), t = r && G(r) ? U(r) : r, n = e, i = Ee(n);
|
|
608
607
|
for (; i && r && t !== n;) {
|
|
609
|
-
let e =
|
|
610
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i =
|
|
608
|
+
let e = Z(i), t = i.getBoundingClientRect(), r = Y(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
609
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = Ee(n);
|
|
611
610
|
}
|
|
612
611
|
}
|
|
613
612
|
return L({
|
|
@@ -617,18 +616,18 @@ function $(e, t, n, r) {
|
|
|
617
616
|
y: l
|
|
618
617
|
});
|
|
619
618
|
}
|
|
620
|
-
function
|
|
619
|
+
function Me(e, t) {
|
|
621
620
|
let n = Ce(e).scrollLeft;
|
|
622
|
-
return t ? t.left + n :
|
|
621
|
+
return t ? t.left + n : Q(W(e)).left + n;
|
|
623
622
|
}
|
|
624
|
-
function
|
|
623
|
+
function Ne(e, t) {
|
|
625
624
|
let n = e.getBoundingClientRect();
|
|
626
625
|
return {
|
|
627
|
-
x: n.left + t.scrollLeft -
|
|
626
|
+
x: n.left + t.scrollLeft - Me(e, n),
|
|
628
627
|
y: n.top + t.scrollTop
|
|
629
628
|
};
|
|
630
629
|
}
|
|
631
|
-
function
|
|
630
|
+
function Pe(e) {
|
|
632
631
|
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = W(r), s = t ? ge(t.floating) : !1;
|
|
633
632
|
if (r === o || s && a) return n;
|
|
634
633
|
let c = {
|
|
@@ -636,10 +635,10 @@ function Ne(e) {
|
|
|
636
635
|
scrollTop: 0
|
|
637
636
|
}, l = h(1), u = h(0), d = K(r);
|
|
638
637
|
if ((d || !d && !a) && ((H(r) !== "body" || me(o)) && (c = Ce(r)), d)) {
|
|
639
|
-
let e =
|
|
640
|
-
l =
|
|
638
|
+
let e = Q(r);
|
|
639
|
+
l = Z(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
641
640
|
}
|
|
642
|
-
let f = o && !d && !a ?
|
|
641
|
+
let f = o && !d && !a ? Ne(o, c) : h(0);
|
|
643
642
|
return {
|
|
644
643
|
width: n.width * l.x,
|
|
645
644
|
height: n.height * l.y,
|
|
@@ -647,11 +646,11 @@ function Ne(e) {
|
|
|
647
646
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
648
647
|
};
|
|
649
648
|
}
|
|
650
|
-
function
|
|
649
|
+
function Fe(e) {
|
|
651
650
|
return Array.from(e.getClientRects());
|
|
652
651
|
}
|
|
653
|
-
function
|
|
654
|
-
let t = W(e), n = Ce(e), r = e.ownerDocument.body, i = f(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = f(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft +
|
|
652
|
+
function Ie(e) {
|
|
653
|
+
let t = W(e), n = Ce(e), r = e.ownerDocument.body, i = f(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = f(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Me(e), s = -n.scrollTop;
|
|
655
654
|
return Y(r).direction === "rtl" && (o += f(t.clientWidth, r.clientWidth) - i), {
|
|
656
655
|
width: i,
|
|
657
656
|
height: a,
|
|
@@ -659,19 +658,19 @@ function Fe(e) {
|
|
|
659
658
|
y: s
|
|
660
659
|
};
|
|
661
660
|
}
|
|
662
|
-
var
|
|
663
|
-
function
|
|
661
|
+
var Le = 25;
|
|
662
|
+
function Re(e, t) {
|
|
664
663
|
let n = U(e), r = W(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
665
664
|
if (i) {
|
|
666
665
|
a = i.width, o = i.height;
|
|
667
666
|
let e = Se();
|
|
668
667
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
669
668
|
}
|
|
670
|
-
let l =
|
|
669
|
+
let l = Me(r);
|
|
671
670
|
if (l <= 0) {
|
|
672
671
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
673
|
-
o <=
|
|
674
|
-
} else l <=
|
|
672
|
+
o <= Le && (a -= o);
|
|
673
|
+
} else l <= Le && (a += l);
|
|
675
674
|
return {
|
|
676
675
|
width: a,
|
|
677
676
|
height: o,
|
|
@@ -679,8 +678,8 @@ function Le(e, t) {
|
|
|
679
678
|
y: c
|
|
680
679
|
};
|
|
681
680
|
}
|
|
682
|
-
function
|
|
683
|
-
let n =
|
|
681
|
+
function ze(e, t) {
|
|
682
|
+
let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = K(e) ? Z(e) : h(1);
|
|
684
683
|
return {
|
|
685
684
|
width: e.clientWidth * a.x,
|
|
686
685
|
height: e.clientHeight * a.y,
|
|
@@ -688,13 +687,13 @@ function Re(e, t) {
|
|
|
688
687
|
y: r * a.y
|
|
689
688
|
};
|
|
690
689
|
}
|
|
691
|
-
function
|
|
690
|
+
function Be(e, t, n) {
|
|
692
691
|
let r;
|
|
693
|
-
if (t === "viewport") r =
|
|
694
|
-
else if (t === "document") r =
|
|
695
|
-
else if (G(t)) r =
|
|
692
|
+
if (t === "viewport") r = Re(e, n);
|
|
693
|
+
else if (t === "document") r = Ie(W(e));
|
|
694
|
+
else if (G(t)) r = ze(t, n);
|
|
696
695
|
else {
|
|
697
|
-
let n =
|
|
696
|
+
let n = Ae(e);
|
|
698
697
|
r = {
|
|
699
698
|
x: t.x - n.x,
|
|
700
699
|
y: t.y - n.y,
|
|
@@ -704,24 +703,24 @@ function ze(e, t, n) {
|
|
|
704
703
|
}
|
|
705
704
|
return L(r);
|
|
706
705
|
}
|
|
707
|
-
function
|
|
706
|
+
function Ve(e, t) {
|
|
708
707
|
let n = X(e);
|
|
709
|
-
return n === t || !G(n) || J(n) ? !1 : Y(n).position === "fixed" ||
|
|
708
|
+
return n === t || !G(n) || J(n) ? !1 : Y(n).position === "fixed" || Ve(n, t);
|
|
710
709
|
}
|
|
711
|
-
function
|
|
710
|
+
function He(e, t) {
|
|
712
711
|
let n = t.get(e);
|
|
713
712
|
if (n) return n;
|
|
714
|
-
let r =
|
|
713
|
+
let r = Te(e, [], !1).filter((e) => G(e) && H(e) !== "body"), i = null, a = Y(e).position === "fixed", o = a ? X(e) : e;
|
|
715
714
|
for (; G(o) && !J(o);) {
|
|
716
715
|
let t = Y(o), n = be(o);
|
|
717
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || me(o) && !n &&
|
|
716
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || me(o) && !n && Ve(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = X(o);
|
|
718
717
|
}
|
|
719
718
|
return t.set(e, r), r;
|
|
720
719
|
}
|
|
721
|
-
function
|
|
722
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ge(t) ? [] :
|
|
720
|
+
function Ue(e) {
|
|
721
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ge(t) ? [] : He(t, this._c) : [].concat(n), r], o = Be(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
723
722
|
for (let e = 1; e < a.length; e++) {
|
|
724
|
-
let n =
|
|
723
|
+
let n = Be(t, a[e], i);
|
|
725
724
|
s = f(n.top, s), c = d(n.right, c), l = d(n.bottom, l), u = f(n.left, u);
|
|
726
725
|
}
|
|
727
726
|
return {
|
|
@@ -731,27 +730,27 @@ function He(e) {
|
|
|
731
730
|
y: s
|
|
732
731
|
};
|
|
733
732
|
}
|
|
734
|
-
function
|
|
735
|
-
let { width: t, height: n } =
|
|
733
|
+
function We(e) {
|
|
734
|
+
let { width: t, height: n } = De(e);
|
|
736
735
|
return {
|
|
737
736
|
width: t,
|
|
738
737
|
height: n
|
|
739
738
|
};
|
|
740
739
|
}
|
|
741
|
-
function
|
|
742
|
-
let r = K(t), i = W(t), a = n === "fixed", o =
|
|
740
|
+
function Ge(e, t, n) {
|
|
741
|
+
let r = K(t), i = W(t), a = n === "fixed", o = Q(e, !0, a, t), s = {
|
|
743
742
|
scrollLeft: 0,
|
|
744
743
|
scrollTop: 0
|
|
745
744
|
}, c = h(0);
|
|
746
745
|
function l() {
|
|
747
|
-
c.x =
|
|
746
|
+
c.x = Me(i);
|
|
748
747
|
}
|
|
749
748
|
if (r || !r && !a) if ((H(t) !== "body" || me(i)) && (s = Ce(t)), r) {
|
|
750
|
-
let e =
|
|
749
|
+
let e = Q(t, !0, a, t);
|
|
751
750
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
752
751
|
} else i && l();
|
|
753
752
|
a && !r && i && l();
|
|
754
|
-
let u = i && !r && !a ?
|
|
753
|
+
let u = i && !r && !a ? Ne(i, s) : h(0);
|
|
755
754
|
return {
|
|
756
755
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
757
756
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -759,34 +758,34 @@ function We(e, t, n) {
|
|
|
759
758
|
height: o.height
|
|
760
759
|
};
|
|
761
760
|
}
|
|
762
|
-
function
|
|
761
|
+
function Ke(e) {
|
|
763
762
|
return Y(e).position === "static";
|
|
764
763
|
}
|
|
765
|
-
function
|
|
764
|
+
function qe(e, t) {
|
|
766
765
|
if (!K(e) || Y(e).position === "fixed") return null;
|
|
767
766
|
if (t) return t(e);
|
|
768
767
|
let n = e.offsetParent;
|
|
769
768
|
return W(e) === n && (n = n.ownerDocument.body), n;
|
|
770
769
|
}
|
|
771
|
-
function
|
|
770
|
+
function Je(e, t) {
|
|
772
771
|
let n = U(e);
|
|
773
772
|
if (ge(e)) return n;
|
|
774
773
|
if (!K(e)) {
|
|
775
774
|
let t = X(e);
|
|
776
775
|
for (; t && !J(t);) {
|
|
777
|
-
if (G(t) && !
|
|
776
|
+
if (G(t) && !Ke(t)) return t;
|
|
778
777
|
t = X(t);
|
|
779
778
|
}
|
|
780
779
|
return n;
|
|
781
780
|
}
|
|
782
|
-
let r =
|
|
783
|
-
for (; r && he(r) &&
|
|
784
|
-
return r && J(r) &&
|
|
781
|
+
let r = qe(e, t);
|
|
782
|
+
for (; r && he(r) && Ke(r);) r = qe(r, t);
|
|
783
|
+
return r && J(r) && Ke(r) && !be(r) ? n : r || xe(e) || n;
|
|
785
784
|
}
|
|
786
|
-
var
|
|
787
|
-
let t = this.getOffsetParent ||
|
|
785
|
+
var Ye = async function(e) {
|
|
786
|
+
let t = this.getOffsetParent || Je, n = this.getDimensions, r = await n(e.floating);
|
|
788
787
|
return {
|
|
789
|
-
reference:
|
|
788
|
+
reference: Ge(e.reference, await t(e.floating), e.strategy),
|
|
790
789
|
floating: {
|
|
791
790
|
x: 0,
|
|
792
791
|
y: 0,
|
|
@@ -795,25 +794,25 @@ var Je = async function(e) {
|
|
|
795
794
|
}
|
|
796
795
|
};
|
|
797
796
|
};
|
|
798
|
-
function
|
|
797
|
+
function Xe(e) {
|
|
799
798
|
return Y(e).direction === "rtl";
|
|
800
799
|
}
|
|
801
|
-
var
|
|
802
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
800
|
+
var Ze = {
|
|
801
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Pe,
|
|
803
802
|
getDocumentElement: W,
|
|
804
|
-
getClippingRect:
|
|
805
|
-
getOffsetParent:
|
|
806
|
-
getElementRects:
|
|
807
|
-
getClientRects:
|
|
808
|
-
getDimensions:
|
|
809
|
-
getScale:
|
|
803
|
+
getClippingRect: Ue,
|
|
804
|
+
getOffsetParent: Je,
|
|
805
|
+
getElementRects: Ye,
|
|
806
|
+
getClientRects: Fe,
|
|
807
|
+
getDimensions: We,
|
|
808
|
+
getScale: Z,
|
|
810
809
|
isElement: G,
|
|
811
|
-
isRTL:
|
|
810
|
+
isRTL: Xe
|
|
812
811
|
};
|
|
813
|
-
function
|
|
812
|
+
function Qe(e, t) {
|
|
814
813
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
815
814
|
}
|
|
816
|
-
function
|
|
815
|
+
function $e(e, t) {
|
|
817
816
|
let n = null, r, i = W(e);
|
|
818
817
|
function a() {
|
|
819
818
|
var e;
|
|
@@ -835,7 +834,7 @@ function Qe(e, t) {
|
|
|
835
834
|
o(!1, 1e-7);
|
|
836
835
|
}, 1e3);
|
|
837
836
|
}
|
|
838
|
-
n === 1 && !
|
|
837
|
+
n === 1 && !Qe(l, e.getBoundingClientRect()) && o(), S = !1;
|
|
839
838
|
}
|
|
840
839
|
try {
|
|
841
840
|
n = new IntersectionObserver(C, {
|
|
@@ -849,13 +848,13 @@ function Qe(e, t) {
|
|
|
849
848
|
}
|
|
850
849
|
return o(!0), a;
|
|
851
850
|
}
|
|
852
|
-
function
|
|
851
|
+
function et(e, t, n, r) {
|
|
853
852
|
r === void 0 && (r = {});
|
|
854
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
853
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Oe(e), u = i || a ? [...l ? Te(l) : [], ...t ? Te(t) : []] : [];
|
|
855
854
|
u.forEach((e) => {
|
|
856
855
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
857
856
|
});
|
|
858
|
-
let d = l && s ?
|
|
857
|
+
let d = l && s ? $e(l, n) : null, f = -1, p = null;
|
|
859
858
|
o && (p = new ResizeObserver((e) => {
|
|
860
859
|
let [r] = e;
|
|
861
860
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -863,11 +862,11 @@ function $e(e, t, n, r) {
|
|
|
863
862
|
(e = p) == null || e.observe(t);
|
|
864
863
|
})), n();
|
|
865
864
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
866
|
-
let m, h = c ?
|
|
865
|
+
let m, h = c ? Q(e) : null;
|
|
867
866
|
c && g();
|
|
868
867
|
function g() {
|
|
869
|
-
let t =
|
|
870
|
-
h && !
|
|
868
|
+
let t = Q(e);
|
|
869
|
+
h && !Qe(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
871
870
|
}
|
|
872
871
|
return n(), () => {
|
|
873
872
|
var e;
|
|
@@ -876,9 +875,9 @@ function $e(e, t, n, r) {
|
|
|
876
875
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
877
876
|
};
|
|
878
877
|
}
|
|
879
|
-
var
|
|
878
|
+
var tt = se, nt = ce, rt = te, it = ue, at = ie, ot = ee, st = le, ct = (e, t, n) => {
|
|
880
879
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
881
|
-
platform:
|
|
880
|
+
platform: Ze,
|
|
882
881
|
...n
|
|
883
882
|
}, a = {
|
|
884
883
|
...i.platform,
|
|
@@ -888,8 +887,8 @@ var et = se, tt = ce, nt = te, rt = ue, it = ie, at = ee, ot = le, st = (e, t, n
|
|
|
888
887
|
...i,
|
|
889
888
|
platform: a
|
|
890
889
|
});
|
|
891
|
-
},
|
|
892
|
-
function
|
|
890
|
+
}, lt = typeof document < "u" ? s : function() {};
|
|
891
|
+
function ut(e, t) {
|
|
893
892
|
if (e === t) return !0;
|
|
894
893
|
if (typeof e != typeof t) return !1;
|
|
895
894
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -897,33 +896,33 @@ function lt(e, t) {
|
|
|
897
896
|
if (e && t && typeof e == "object") {
|
|
898
897
|
if (Array.isArray(e)) {
|
|
899
898
|
if (n = e.length, n !== t.length) return !1;
|
|
900
|
-
for (r = n; r-- !== 0;) if (!
|
|
899
|
+
for (r = n; r-- !== 0;) if (!ut(e[r], t[r])) return !1;
|
|
901
900
|
return !0;
|
|
902
901
|
}
|
|
903
902
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
904
903
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
905
904
|
for (r = n; r-- !== 0;) {
|
|
906
905
|
let n = i[r];
|
|
907
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
906
|
+
if (!(n === "_owner" && e.$$typeof) && !ut(e[n], t[n])) return !1;
|
|
908
907
|
}
|
|
909
908
|
return !0;
|
|
910
909
|
}
|
|
911
910
|
return e !== e && t !== t;
|
|
912
911
|
}
|
|
913
|
-
function
|
|
912
|
+
function dt(e) {
|
|
914
913
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
915
914
|
}
|
|
916
|
-
function
|
|
917
|
-
let n =
|
|
915
|
+
function ft(e, t) {
|
|
916
|
+
let n = dt(e);
|
|
918
917
|
return Math.round(t * n) / n;
|
|
919
918
|
}
|
|
920
|
-
function
|
|
919
|
+
function pt(e) {
|
|
921
920
|
let t = o.useRef(e);
|
|
922
|
-
return
|
|
921
|
+
return lt(() => {
|
|
923
922
|
t.current = e;
|
|
924
923
|
}), t;
|
|
925
924
|
}
|
|
926
|
-
function
|
|
925
|
+
function mt(e) {
|
|
927
926
|
e === void 0 && (e = {});
|
|
928
927
|
let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: s } = {}, transform: c = !0, whileElementsMounted: u, open: d } = e, [f, p] = o.useState({
|
|
929
928
|
x: 0,
|
|
@@ -933,24 +932,24 @@ function pt(e) {
|
|
|
933
932
|
middlewareData: {},
|
|
934
933
|
isPositioned: !1
|
|
935
934
|
}), [m, h] = o.useState(r);
|
|
936
|
-
|
|
935
|
+
ut(m, r) || h(r);
|
|
937
936
|
let [g, _] = o.useState(null), [v, y] = o.useState(null), b = o.useCallback((e) => {
|
|
938
937
|
e !== w.current && (w.current = e, _(e));
|
|
939
938
|
}, []), x = o.useCallback((e) => {
|
|
940
939
|
e !== T.current && (T.current = e, y(e));
|
|
941
|
-
}, []), S = a || g, C = s || v, w = o.useRef(null), T = o.useRef(null), E = o.useRef(f), D = u != null, O =
|
|
940
|
+
}, []), S = a || g, C = s || v, w = o.useRef(null), T = o.useRef(null), E = o.useRef(f), D = u != null, O = pt(u), k = pt(i), A = pt(d), j = o.useCallback(() => {
|
|
942
941
|
if (!w.current || !T.current) return;
|
|
943
942
|
let e = {
|
|
944
943
|
placement: t,
|
|
945
944
|
strategy: n,
|
|
946
945
|
middleware: m
|
|
947
946
|
};
|
|
948
|
-
k.current && (e.platform = k.current),
|
|
947
|
+
k.current && (e.platform = k.current), ct(w.current, T.current, e).then((e) => {
|
|
949
948
|
let t = {
|
|
950
949
|
...e,
|
|
951
950
|
isPositioned: A.current !== !1
|
|
952
951
|
};
|
|
953
|
-
M.current && !
|
|
952
|
+
M.current && !ut(E.current, t) && (E.current = t, l.flushSync(() => {
|
|
954
953
|
p(t);
|
|
955
954
|
}));
|
|
956
955
|
});
|
|
@@ -961,16 +960,16 @@ function pt(e) {
|
|
|
961
960
|
k,
|
|
962
961
|
A
|
|
963
962
|
]);
|
|
964
|
-
|
|
963
|
+
lt(() => {
|
|
965
964
|
d === !1 && E.current.isPositioned && (E.current.isPositioned = !1, p((e) => ({
|
|
966
965
|
...e,
|
|
967
966
|
isPositioned: !1
|
|
968
967
|
})));
|
|
969
968
|
}, [d]);
|
|
970
969
|
let M = o.useRef(!1);
|
|
971
|
-
|
|
970
|
+
lt(() => (M.current = !0, () => {
|
|
972
971
|
M.current = !1;
|
|
973
|
-
}), []),
|
|
972
|
+
}), []), lt(() => {
|
|
974
973
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
975
974
|
if (O.current) return O.current(S, C, j);
|
|
976
975
|
j();
|
|
@@ -997,11 +996,11 @@ function pt(e) {
|
|
|
997
996
|
top: 0
|
|
998
997
|
};
|
|
999
998
|
if (!P.floating) return e;
|
|
1000
|
-
let t =
|
|
999
|
+
let t = ft(P.floating, f.x), r = ft(P.floating, f.y);
|
|
1001
1000
|
return c ? {
|
|
1002
1001
|
...e,
|
|
1003
1002
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
1004
|
-
...
|
|
1003
|
+
...dt(P.floating) >= 1.5 && { willChange: "transform" }
|
|
1005
1004
|
} : {
|
|
1006
1005
|
position: n,
|
|
1007
1006
|
left: t,
|
|
@@ -1028,7 +1027,7 @@ function pt(e) {
|
|
|
1028
1027
|
F
|
|
1029
1028
|
]);
|
|
1030
1029
|
}
|
|
1031
|
-
var
|
|
1030
|
+
var ht = (e) => {
|
|
1032
1031
|
function t(e) {
|
|
1033
1032
|
return {}.hasOwnProperty.call(e, "current");
|
|
1034
1033
|
}
|
|
@@ -1037,22 +1036,15 @@ var mt = (e) => {
|
|
|
1037
1036
|
options: e,
|
|
1038
1037
|
fn(n) {
|
|
1039
1038
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
1040
|
-
return r && t(r) ? r.current == null ? {} :
|
|
1039
|
+
return r && t(r) ? r.current == null ? {} : ot({
|
|
1041
1040
|
element: r.current,
|
|
1042
1041
|
padding: i
|
|
1043
|
-
}).fn(n) : r ?
|
|
1042
|
+
}).fn(n) : r ? ot({
|
|
1044
1043
|
element: r,
|
|
1045
1044
|
padding: i
|
|
1046
1045
|
}).fn(n) : {};
|
|
1047
1046
|
}
|
|
1048
1047
|
};
|
|
1049
|
-
}, ht = (e, t) => {
|
|
1050
|
-
let n = et(e);
|
|
1051
|
-
return {
|
|
1052
|
-
name: n.name,
|
|
1053
|
-
fn: n.fn,
|
|
1054
|
-
options: [e, t]
|
|
1055
|
-
};
|
|
1056
1048
|
}, gt = (e, t) => {
|
|
1057
1049
|
let n = tt(e);
|
|
1058
1050
|
return {
|
|
@@ -1060,17 +1052,17 @@ var mt = (e) => {
|
|
|
1060
1052
|
fn: n.fn,
|
|
1061
1053
|
options: [e, t]
|
|
1062
1054
|
};
|
|
1063
|
-
}, _t = (e, t) =>
|
|
1064
|
-
fn: ot(e).fn,
|
|
1065
|
-
options: [e, t]
|
|
1066
|
-
}), vt = (e, t) => {
|
|
1055
|
+
}, _t = (e, t) => {
|
|
1067
1056
|
let n = nt(e);
|
|
1068
1057
|
return {
|
|
1069
1058
|
name: n.name,
|
|
1070
1059
|
fn: n.fn,
|
|
1071
1060
|
options: [e, t]
|
|
1072
1061
|
};
|
|
1073
|
-
},
|
|
1062
|
+
}, vt = (e, t) => ({
|
|
1063
|
+
fn: st(e).fn,
|
|
1064
|
+
options: [e, t]
|
|
1065
|
+
}), yt = (e, t) => {
|
|
1074
1066
|
let n = rt(e);
|
|
1075
1067
|
return {
|
|
1076
1068
|
name: n.name,
|
|
@@ -1085,13 +1077,23 @@ var mt = (e) => {
|
|
|
1085
1077
|
options: [e, t]
|
|
1086
1078
|
};
|
|
1087
1079
|
}, xt = (e, t) => {
|
|
1088
|
-
let n =
|
|
1080
|
+
let n = at(e);
|
|
1089
1081
|
return {
|
|
1090
1082
|
name: n.name,
|
|
1091
1083
|
fn: n.fn,
|
|
1092
1084
|
options: [e, t]
|
|
1093
1085
|
};
|
|
1094
|
-
}, St =
|
|
1086
|
+
}, St = (e, t) => {
|
|
1087
|
+
let n = ht(e);
|
|
1088
|
+
return {
|
|
1089
|
+
name: n.name,
|
|
1090
|
+
fn: n.fn,
|
|
1091
|
+
options: [e, t]
|
|
1092
|
+
};
|
|
1093
|
+
}, Ct = Object.defineProperty, wt = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ ((e, t) => Ct(e, "name", {
|
|
1094
|
+
value: t,
|
|
1095
|
+
configurable: !0
|
|
1096
|
+
}))(function(e, t) {
|
|
1095
1097
|
let { children: n, width: i = 10, height: a = 5, ...o } = e;
|
|
1096
1098
|
return /* @__PURE__ */ c(r.svg, {
|
|
1097
1099
|
...o,
|
|
@@ -1102,11 +1104,12 @@ var mt = (e) => {
|
|
|
1102
1104
|
preserveAspectRatio: "none",
|
|
1103
1105
|
children: e.asChild ? n : /* @__PURE__ */ c("polygon", { points: "0,0 30,0 15,10" })
|
|
1104
1106
|
});
|
|
1105
|
-
})
|
|
1106
|
-
|
|
1107
|
-
|
|
1107
|
+
}, "Arrow")), Tt = Object.defineProperty, $ = (e, t) => Tt(e, "name", {
|
|
1108
|
+
value: t,
|
|
1109
|
+
configurable: !0
|
|
1110
|
+
}), Et = "Popper", [Dt, Ot] = e(Et), [kt, At] = Dt(Et), jt = /* @__PURE__ */ $((e) => {
|
|
1108
1111
|
let { __scopePopper: t, children: n } = e, [r, i] = o.useState(null), [a, s] = o.useState(void 0);
|
|
1109
|
-
return /* @__PURE__ */ c(
|
|
1112
|
+
return /* @__PURE__ */ c(kt, {
|
|
1110
1113
|
scope: t,
|
|
1111
1114
|
anchor: r,
|
|
1112
1115
|
onAnchorChange: i,
|
|
@@ -1114,10 +1117,8 @@ var wt = Ct, Tt = "Popper", [Et, Dt] = e(Tt), [Ot, kt] = Et(Tt), At = (e) => {
|
|
|
1114
1117
|
setPlacementState: s,
|
|
1115
1118
|
children: n
|
|
1116
1119
|
});
|
|
1117
|
-
}
|
|
1118
|
-
At.
|
|
1119
|
-
var jt = "PopperAnchor", Mt = o.forwardRef((e, n) => {
|
|
1120
|
-
let { __scopePopper: i, virtualRef: a, ...s } = e, l = kt(jt, i), u = o.useRef(null), d = l.onAnchorChange, f = t(n, o.useCallback((e) => {
|
|
1120
|
+
}, "Popper"), Mt = "PopperAnchor", Nt = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ $(function(e, t) {
|
|
1121
|
+
let { __scopePopper: i, virtualRef: a, ...s } = e, l = At(Mt, i), u = o.useRef(null), d = l.onAnchorChange, f = n(t, o.useCallback((e) => {
|
|
1121
1122
|
u.current = e, e && d(e);
|
|
1122
1123
|
}, [d])), p = o.useRef(null);
|
|
1123
1124
|
o.useEffect(() => {
|
|
@@ -1125,17 +1126,15 @@ var jt = "PopperAnchor", Mt = o.forwardRef((e, n) => {
|
|
|
1125
1126
|
let e = p.current;
|
|
1126
1127
|
p.current = a.current, e !== p.current && d(p.current);
|
|
1127
1128
|
});
|
|
1128
|
-
let m = l.placementState &&
|
|
1129
|
+
let m = l.placementState && Ut(l.placementState), h = m?.[0], g = m?.[1];
|
|
1129
1130
|
return a ? null : /* @__PURE__ */ c(r.div, {
|
|
1130
1131
|
"data-radix-popper-side": h,
|
|
1131
1132
|
"data-radix-popper-align": g,
|
|
1132
1133
|
...s,
|
|
1133
1134
|
ref: f
|
|
1134
1135
|
});
|
|
1135
|
-
})
|
|
1136
|
-
|
|
1137
|
-
var Nt = "PopperContent", [Pt, Ft] = Et(Nt), It = o.forwardRef((e, s) => {
|
|
1138
|
-
let { __scopePopper: l, side: u = "bottom", sideOffset: d = 0, align: f = "center", alignOffset: p = 0, arrowPadding: m = 0, avoidCollisions: h = !0, collisionBoundary: g = [], collisionPadding: _ = 0, sticky: v = "partial", hideWhenDetached: y = !1, updatePositionStrategy: b = "optimized", onPlaced: x, ...S } = e, C = kt(Nt, l), [w, T] = o.useState(null), E = t(s, T), [D, O] = o.useState(null), k = i(D), A = k?.width ?? 0, j = k?.height ?? 0, M = u + (f === "center" ? "" : "-" + f), N = typeof _ == "number" ? _ : {
|
|
1136
|
+
}, "PopperAnchor")), Pt = "PopperContent", [Ft, It] = Dt(Pt), Lt = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ $(function(e, s) {
|
|
1137
|
+
let { __scopePopper: l, side: u = "bottom", sideOffset: d = 0, align: f = "center", alignOffset: p = 0, arrowPadding: m = 0, avoidCollisions: h = !0, collisionBoundary: g = [], collisionPadding: _ = 0, sticky: v = "partial", hideWhenDetached: y = !1, updatePositionStrategy: b = "optimized", onPlaced: x, ...S } = e, C = At(Pt, l), [w, T] = o.useState(null), E = n(s, T), [D, O] = o.useState(null), k = i(D), A = k?.width ?? 0, j = k?.height ?? 0, M = u + (f === "center" ? "" : "-" + f), N = typeof _ == "number" ? _ : {
|
|
1139
1138
|
top: 0,
|
|
1140
1139
|
right: 0,
|
|
1141
1140
|
bottom: 0,
|
|
@@ -1143,56 +1142,56 @@ var Nt = "PopperContent", [Pt, Ft] = Et(Nt), It = o.forwardRef((e, s) => {
|
|
|
1143
1142
|
..._
|
|
1144
1143
|
}, P = Array.isArray(g) ? g : [g], F = P.length > 0, I = {
|
|
1145
1144
|
padding: N,
|
|
1146
|
-
boundary: P.filter(
|
|
1145
|
+
boundary: P.filter(Vt),
|
|
1147
1146
|
altBoundary: F
|
|
1148
|
-
}, { refs: L, floatingStyles: R, placement: z, isPositioned: B, middlewareData: V } =
|
|
1147
|
+
}, { refs: L, floatingStyles: R, placement: z, isPositioned: B, middlewareData: V } = mt({
|
|
1149
1148
|
strategy: "fixed",
|
|
1150
1149
|
placement: M,
|
|
1151
|
-
whileElementsMounted: (...e) =>
|
|
1150
|
+
whileElementsMounted: /* @__PURE__ */ $((...e) => et(...e, { animationFrame: b === "always" }), "whileElementsMounted"),
|
|
1152
1151
|
elements: { reference: C.anchor },
|
|
1153
1152
|
middleware: [
|
|
1154
|
-
|
|
1153
|
+
gt({
|
|
1155
1154
|
mainAxis: d + j,
|
|
1156
1155
|
alignmentAxis: p
|
|
1157
1156
|
}),
|
|
1158
|
-
h &&
|
|
1157
|
+
h && _t({
|
|
1159
1158
|
mainAxis: !0,
|
|
1160
1159
|
crossAxis: !1,
|
|
1161
|
-
limiter: v === "partial" ?
|
|
1160
|
+
limiter: v === "partial" ? vt() : void 0,
|
|
1162
1161
|
...I
|
|
1163
1162
|
}),
|
|
1164
|
-
h &&
|
|
1165
|
-
|
|
1163
|
+
h && yt({ ...I }),
|
|
1164
|
+
bt({
|
|
1166
1165
|
...I,
|
|
1167
|
-
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
1166
|
+
apply: /* @__PURE__ */ $(({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
1168
1167
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
1169
1168
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
1170
|
-
}
|
|
1169
|
+
}, "apply")
|
|
1171
1170
|
}),
|
|
1172
|
-
D &&
|
|
1171
|
+
D && St({
|
|
1173
1172
|
element: D,
|
|
1174
1173
|
padding: m
|
|
1175
1174
|
}),
|
|
1176
|
-
|
|
1175
|
+
Ht({
|
|
1177
1176
|
arrowWidth: A,
|
|
1178
1177
|
arrowHeight: j
|
|
1179
1178
|
}),
|
|
1180
|
-
y &&
|
|
1179
|
+
y && xt({
|
|
1181
1180
|
strategy: "referenceHidden",
|
|
1182
1181
|
...I,
|
|
1183
1182
|
boundary: F ? I.boundary : void 0
|
|
1184
1183
|
})
|
|
1185
1184
|
]
|
|
1186
1185
|
}), ee = C.setPlacementState;
|
|
1187
|
-
|
|
1186
|
+
t(() => (ee(z), () => {
|
|
1188
1187
|
ee(void 0);
|
|
1189
1188
|
}), [z, ee]);
|
|
1190
|
-
let [te, ne] =
|
|
1191
|
-
|
|
1189
|
+
let [te, ne] = Ut(z), re = a(x);
|
|
1190
|
+
t(() => {
|
|
1192
1191
|
B && re?.();
|
|
1193
1192
|
}, [B, re]);
|
|
1194
1193
|
let ie = V.arrow?.x, ae = V.arrow?.y, oe = V.arrow?.centerOffset !== 0, [se, ce] = o.useState();
|
|
1195
|
-
return
|
|
1194
|
+
return t(() => {
|
|
1196
1195
|
w && ce(window.getComputedStyle(w).zIndex);
|
|
1197
1196
|
}, [w]), /* @__PURE__ */ c("div", {
|
|
1198
1197
|
ref: L.setFloating,
|
|
@@ -1209,7 +1208,7 @@ var Nt = "PopperContent", [Pt, Ft] = Et(Nt), It = o.forwardRef((e, s) => {
|
|
|
1209
1208
|
}
|
|
1210
1209
|
},
|
|
1211
1210
|
dir: e.dir,
|
|
1212
|
-
children: /* @__PURE__ */ c(
|
|
1211
|
+
children: /* @__PURE__ */ c(Ft, {
|
|
1213
1212
|
scope: l,
|
|
1214
1213
|
placedSide: te,
|
|
1215
1214
|
placedAlign: ne,
|
|
@@ -1224,20 +1223,18 @@ var Nt = "PopperContent", [Pt, Ft] = Et(Nt), It = o.forwardRef((e, s) => {
|
|
|
1224
1223
|
ref: E,
|
|
1225
1224
|
style: {
|
|
1226
1225
|
...S.style,
|
|
1227
|
-
animation: B ?
|
|
1226
|
+
animation: B ? S.style?.animation : "none"
|
|
1228
1227
|
}
|
|
1229
1228
|
})
|
|
1230
1229
|
})
|
|
1231
1230
|
});
|
|
1232
|
-
})
|
|
1233
|
-
It.displayName = Nt;
|
|
1234
|
-
var Lt = "PopperArrow", Rt = {
|
|
1231
|
+
}, "PopperContent")), Rt = "PopperArrow", zt = {
|
|
1235
1232
|
top: "bottom",
|
|
1236
1233
|
right: "left",
|
|
1237
1234
|
bottom: "top",
|
|
1238
1235
|
left: "right"
|
|
1239
|
-
},
|
|
1240
|
-
let { __scopePopper: n, ...r } = e, i =
|
|
1236
|
+
}, Bt = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ $(function(e, t) {
|
|
1237
|
+
let { __scopePopper: n, ...r } = e, i = It(Rt, n), a = zt[i.placedSide];
|
|
1241
1238
|
return /* @__PURE__ */ c("span", {
|
|
1242
1239
|
ref: i.onArrowChange,
|
|
1243
1240
|
style: {
|
|
@@ -1268,16 +1265,16 @@ var Lt = "PopperArrow", Rt = {
|
|
|
1268
1265
|
}
|
|
1269
1266
|
})
|
|
1270
1267
|
});
|
|
1271
|
-
});
|
|
1272
|
-
|
|
1273
|
-
function Bt(e) {
|
|
1268
|
+
}, "PopperArrow"));
|
|
1269
|
+
function Vt(e) {
|
|
1274
1270
|
return e !== null;
|
|
1275
1271
|
}
|
|
1276
|
-
|
|
1272
|
+
$(Vt, "isNotNull");
|
|
1273
|
+
var Ht = /* @__PURE__ */ $((e) => ({
|
|
1277
1274
|
name: "transformOrigin",
|
|
1278
1275
|
options: e,
|
|
1279
1276
|
fn(t) {
|
|
1280
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
1277
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Ut(n), u = {
|
|
1281
1278
|
start: "0%",
|
|
1282
1279
|
center: "50%",
|
|
1283
1280
|
end: "100%"
|
|
@@ -1287,11 +1284,12 @@ var Vt = (e) => ({
|
|
|
1287
1284
|
y: m
|
|
1288
1285
|
} };
|
|
1289
1286
|
}
|
|
1290
|
-
});
|
|
1291
|
-
function
|
|
1287
|
+
}), "transformOrigin");
|
|
1288
|
+
function Ut(e) {
|
|
1292
1289
|
let [t, n = "center"] = e.split("-");
|
|
1293
1290
|
return [t, n];
|
|
1294
1291
|
}
|
|
1295
|
-
|
|
1292
|
+
$(Ut, "getSideAndAlignFromPlacement");
|
|
1293
|
+
var Wt = jt, Gt = Nt, Kt = Lt, qt = Bt;
|
|
1296
1294
|
//#endregion
|
|
1297
|
-
export {
|
|
1295
|
+
export { Ot as a, Wt as i, qt as n, Kt as r, Gt as t };
|