tguikit 0.5.0 → 0.6.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/README.md +8 -3
- package/dist/index.d.ts +480 -2
- package/dist/index.js +842 -670
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -707,7 +707,7 @@ Fe.displayName = "Tappable";
|
|
|
707
707
|
var Ie = { text: "_text_4vs6y_1" };
|
|
708
708
|
//#endregion
|
|
709
709
|
//#region src/components/Text/Text.tsx
|
|
710
|
-
function
|
|
710
|
+
function Le({ ref: e, className: t, Component: n = "span", ...r }) {
|
|
711
711
|
return /* @__PURE__ */ _(R, {
|
|
712
712
|
ref: e,
|
|
713
713
|
"data-slot": "text",
|
|
@@ -716,8 +716,8 @@ function B({ ref: e, className: t, Component: n = "span", ...r }) {
|
|
|
716
716
|
...r
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
|
|
720
|
-
var
|
|
719
|
+
Le.displayName = "Text";
|
|
720
|
+
var B = {
|
|
721
721
|
button: "_button_hsi61_1",
|
|
722
722
|
stretched: "_stretched_hsi61_14",
|
|
723
723
|
before: "_before_hsi61_40",
|
|
@@ -735,24 +735,24 @@ var V = {
|
|
|
735
735
|
"mode-gray": "_mode-gray_hsi61_127",
|
|
736
736
|
"mode-outline": "_mode-outline_hsi61_134",
|
|
737
737
|
"mode-white": "_mode-white_hsi61_142"
|
|
738
|
-
},
|
|
738
|
+
}, Re = y(B.button, {
|
|
739
739
|
variants: {
|
|
740
740
|
mode: {
|
|
741
|
-
filled:
|
|
742
|
-
bezeled:
|
|
743
|
-
plain:
|
|
744
|
-
gray:
|
|
745
|
-
outline:
|
|
746
|
-
white:
|
|
741
|
+
filled: B["mode-filled"],
|
|
742
|
+
bezeled: B["mode-bezeled"],
|
|
743
|
+
plain: B["mode-plain"],
|
|
744
|
+
gray: B["mode-gray"],
|
|
745
|
+
outline: B["mode-outline"],
|
|
746
|
+
white: B["mode-white"]
|
|
747
747
|
},
|
|
748
748
|
size: {
|
|
749
|
-
s:
|
|
750
|
-
m:
|
|
751
|
-
l:
|
|
749
|
+
s: B["size-s"],
|
|
750
|
+
m: B["size-m"],
|
|
751
|
+
l: B["size-l"]
|
|
752
752
|
},
|
|
753
|
-
stretched: { true:
|
|
753
|
+
stretched: { true: B.stretched },
|
|
754
754
|
platform: {
|
|
755
|
-
ios:
|
|
755
|
+
ios: B.ios,
|
|
756
756
|
base: null
|
|
757
757
|
}
|
|
758
758
|
},
|
|
@@ -763,17 +763,17 @@ var V = {
|
|
|
763
763
|
});
|
|
764
764
|
//#endregion
|
|
765
765
|
//#region src/components/Button/Button.tsx
|
|
766
|
-
function
|
|
766
|
+
function ze({ size: e, children: t }) {
|
|
767
767
|
let n = {
|
|
768
768
|
weight: "2",
|
|
769
769
|
Component: "span",
|
|
770
|
-
className:
|
|
770
|
+
className: B.content
|
|
771
771
|
}, r = /* @__PURE__ */ _("span", {
|
|
772
772
|
"data-slot": "button-label",
|
|
773
|
-
className:
|
|
773
|
+
className: B.label,
|
|
774
774
|
children: t
|
|
775
775
|
});
|
|
776
|
-
return e === "l" ? /* @__PURE__ */ _(
|
|
776
|
+
return e === "l" ? /* @__PURE__ */ _(Le, {
|
|
777
777
|
...n,
|
|
778
778
|
children: r
|
|
779
779
|
}) : /* @__PURE__ */ _(z, {
|
|
@@ -782,7 +782,7 @@ function Re({ size: e, children: t }) {
|
|
|
782
782
|
children: r
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function Be({ ref: e, Component: t = "button", mode: n = "filled", size: r = "m", stretched: i = !1, loading: a = !1, type: o, before: s, after: c, children: l, className: u, ...d }) {
|
|
786
786
|
let { platform: f } = N();
|
|
787
787
|
return /* @__PURE__ */ v(Fe, {
|
|
788
788
|
ref: e,
|
|
@@ -791,7 +791,7 @@ function ze({ ref: e, Component: t = "button", mode: n = "filled", size: r = "m"
|
|
|
791
791
|
"data-slot": "button",
|
|
792
792
|
"data-loading": a || void 0,
|
|
793
793
|
"aria-busy": a || void 0,
|
|
794
|
-
className: S(
|
|
794
|
+
className: S(Re({
|
|
795
795
|
mode: n,
|
|
796
796
|
size: r,
|
|
797
797
|
stretched: i,
|
|
@@ -802,74 +802,74 @@ function ze({ ref: e, Component: t = "button", mode: n = "filled", size: r = "m"
|
|
|
802
802
|
a ? /* @__PURE__ */ _(we, {
|
|
803
803
|
size: "s",
|
|
804
804
|
"data-slot": "button-spinner",
|
|
805
|
-
className:
|
|
805
|
+
className: B.spinner,
|
|
806
806
|
"aria-hidden": !0
|
|
807
807
|
}) : null,
|
|
808
808
|
s ? /* @__PURE__ */ _("span", {
|
|
809
809
|
"data-slot": "button-before",
|
|
810
|
-
className:
|
|
810
|
+
className: B.before,
|
|
811
811
|
children: s
|
|
812
812
|
}) : null,
|
|
813
|
-
/* @__PURE__ */ _(
|
|
813
|
+
/* @__PURE__ */ _(ze, {
|
|
814
814
|
size: r,
|
|
815
815
|
children: l
|
|
816
816
|
}),
|
|
817
817
|
c ? /* @__PURE__ */ _("span", {
|
|
818
818
|
"data-slot": "button-after",
|
|
819
|
-
className:
|
|
819
|
+
className: B.after,
|
|
820
820
|
children: c
|
|
821
821
|
}) : null
|
|
822
822
|
]
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
|
|
826
|
-
var
|
|
825
|
+
Be.displayName = "Button";
|
|
826
|
+
var Ve = { callout: "_callout_innvf_1" };
|
|
827
827
|
//#endregion
|
|
828
828
|
//#region src/components/Callout/Callout.tsx
|
|
829
|
-
function
|
|
829
|
+
function He({ ref: e, className: t, Component: n = "span", ...r }) {
|
|
830
830
|
return /* @__PURE__ */ _(R, {
|
|
831
831
|
"data-slot": "callout",
|
|
832
832
|
ref: e,
|
|
833
833
|
Component: n,
|
|
834
|
-
className: S(
|
|
834
|
+
className: S(Ve.callout, t),
|
|
835
835
|
...r
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
|
-
|
|
838
|
+
He.displayName = "Callout";
|
|
839
839
|
//#endregion
|
|
840
840
|
//#region src/components/Caption/Caption.module.css
|
|
841
|
-
var
|
|
841
|
+
var Ue = {
|
|
842
842
|
"level-1": "_level-1_ww5fh_1",
|
|
843
843
|
"level-2": "_level-2_ww5fh_7"
|
|
844
|
-
},
|
|
844
|
+
}, We = y("", {
|
|
845
845
|
variants: { level: {
|
|
846
|
-
1:
|
|
847
|
-
2:
|
|
846
|
+
1: Ue["level-1"],
|
|
847
|
+
2: Ue["level-2"]
|
|
848
848
|
} },
|
|
849
849
|
defaultVariants: { level: "1" }
|
|
850
850
|
});
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region src/components/Caption/Caption.tsx
|
|
853
|
-
function
|
|
853
|
+
function Ge({ ref: e, level: t, Component: n = "span", className: r, ...i }) {
|
|
854
854
|
return /* @__PURE__ */ _(R, {
|
|
855
855
|
"data-slot": "caption",
|
|
856
856
|
ref: e,
|
|
857
857
|
Component: n,
|
|
858
|
-
className: S(
|
|
858
|
+
className: S(We({ level: t }), r),
|
|
859
859
|
...i
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
|
-
|
|
862
|
+
Ge.displayName = "Caption";
|
|
863
863
|
//#endregion
|
|
864
864
|
//#region src/components/Card/Card.context.ts
|
|
865
|
-
var
|
|
865
|
+
var Ke = i({ type: "plain" }), qe = {
|
|
866
866
|
card: "_card_1hfmz_1",
|
|
867
867
|
cardAmbient: "_cardAmbient_1hfmz_17",
|
|
868
868
|
cell: "_cell_1hfmz_21",
|
|
869
869
|
cellAmbient: "_cellAmbient_1hfmz_26",
|
|
870
870
|
cellHeader: "_cellHeader_1hfmz_43",
|
|
871
871
|
cellSubtitle: "_cellSubtitle_1hfmz_47"
|
|
872
|
-
},
|
|
872
|
+
}, V = {
|
|
873
873
|
cell: "_cell_1f0v1_1",
|
|
874
874
|
before: "_before_1f0v1_10",
|
|
875
875
|
after: "_after_1f0v1_11",
|
|
@@ -884,49 +884,49 @@ var Ge = i({ type: "plain" }), Ke = {
|
|
|
884
884
|
hovered: "_hovered_1f0v1_67",
|
|
885
885
|
interactive: "_interactive_1f0v1_68",
|
|
886
886
|
ios: "_ios_1f0v1_78"
|
|
887
|
-
},
|
|
887
|
+
}, Je = y(V.cell, { variants: {
|
|
888
888
|
platform: {
|
|
889
|
-
ios:
|
|
889
|
+
ios: V.ios,
|
|
890
890
|
base: null
|
|
891
891
|
},
|
|
892
|
-
hovered: { true:
|
|
893
|
-
interactive: { true:
|
|
894
|
-
multiline: { true:
|
|
892
|
+
hovered: { true: V.hovered },
|
|
893
|
+
interactive: { true: V.interactive },
|
|
894
|
+
multiline: { true: V.multiline }
|
|
895
895
|
} });
|
|
896
896
|
//#endregion
|
|
897
897
|
//#region src/components/Cell/Cell.tsx
|
|
898
|
-
function
|
|
899
|
-
return e ? /* @__PURE__ */ _(
|
|
898
|
+
function Ye({ ios: e, children: t }) {
|
|
899
|
+
return e ? /* @__PURE__ */ _(Le, {
|
|
900
900
|
Component: "span",
|
|
901
|
-
className:
|
|
901
|
+
className: V.head,
|
|
902
902
|
children: t
|
|
903
903
|
}) : /* @__PURE__ */ _(z, {
|
|
904
904
|
Component: "span",
|
|
905
905
|
level: "1",
|
|
906
|
-
className:
|
|
906
|
+
className: V.head,
|
|
907
907
|
children: t
|
|
908
908
|
});
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
return e ? /* @__PURE__ */ _(
|
|
910
|
+
function Xe({ ios: e, children: t }) {
|
|
911
|
+
return e ? /* @__PURE__ */ _(Ge, {
|
|
912
912
|
Component: "span",
|
|
913
|
-
className:
|
|
913
|
+
className: V.description,
|
|
914
914
|
children: t
|
|
915
915
|
}) : /* @__PURE__ */ _(z, {
|
|
916
916
|
Component: "span",
|
|
917
917
|
level: "2",
|
|
918
|
-
className:
|
|
918
|
+
className: V.description,
|
|
919
919
|
children: t
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Ze({ ref: e, Component: t = "div", subhead: n, children: r, hint: i, titleBadge: a, subtitle: o, description: s, before: c, after: l, hovered: u, multiline: d, className: f, ...p }) {
|
|
923
923
|
let { platform: m } = N(), h = m === "ios", g = r != null || i != null || a != null, y = p.onClick != null || p.href != null || t === "a" || t === "button" || t === "label";
|
|
924
924
|
return /* @__PURE__ */ v(Fe, {
|
|
925
925
|
ref: e,
|
|
926
926
|
Component: t,
|
|
927
927
|
interactiveAnimation: h ? "none" : "background",
|
|
928
928
|
"data-slot": "cell",
|
|
929
|
-
className: S(
|
|
929
|
+
className: S(Je({
|
|
930
930
|
platform: m,
|
|
931
931
|
hovered: u,
|
|
932
932
|
multiline: d,
|
|
@@ -936,28 +936,28 @@ function Xe({ ref: e, Component: t = "div", subhead: n, children: r, hint: i, ti
|
|
|
936
936
|
children: [
|
|
937
937
|
c == null ? null : /* @__PURE__ */ _("div", {
|
|
938
938
|
"data-slot": "cell-before",
|
|
939
|
-
className:
|
|
939
|
+
className: V.before,
|
|
940
940
|
children: c
|
|
941
941
|
}),
|
|
942
942
|
/* @__PURE__ */ v("div", {
|
|
943
943
|
"data-slot": "cell-content",
|
|
944
|
-
className:
|
|
944
|
+
className: V.middle,
|
|
945
945
|
children: [
|
|
946
946
|
n == null ? null : /* @__PURE__ */ _(z, {
|
|
947
947
|
Component: "span",
|
|
948
948
|
level: "2",
|
|
949
|
-
className:
|
|
949
|
+
className: V.subhead,
|
|
950
950
|
children: n
|
|
951
951
|
}),
|
|
952
|
-
g ? /* @__PURE__ */ v(
|
|
952
|
+
g ? /* @__PURE__ */ v(Ye, {
|
|
953
953
|
ios: h,
|
|
954
954
|
children: [
|
|
955
955
|
r == null ? null : /* @__PURE__ */ _("span", {
|
|
956
|
-
className:
|
|
956
|
+
className: V.title,
|
|
957
957
|
children: r
|
|
958
958
|
}),
|
|
959
959
|
i == null ? null : /* @__PURE__ */ _("span", {
|
|
960
|
-
className:
|
|
960
|
+
className: V.hint,
|
|
961
961
|
children: i
|
|
962
962
|
}),
|
|
963
963
|
a
|
|
@@ -966,10 +966,10 @@ function Xe({ ref: e, Component: t = "div", subhead: n, children: r, hint: i, ti
|
|
|
966
966
|
o == null ? null : /* @__PURE__ */ _(z, {
|
|
967
967
|
Component: "span",
|
|
968
968
|
level: "2",
|
|
969
|
-
className:
|
|
969
|
+
className: V.subtitle,
|
|
970
970
|
children: o
|
|
971
971
|
}),
|
|
972
|
-
s == null ? null : /* @__PURE__ */ _(
|
|
972
|
+
s == null ? null : /* @__PURE__ */ _(Xe, {
|
|
973
973
|
ios: h,
|
|
974
974
|
children: s
|
|
975
975
|
})
|
|
@@ -977,66 +977,66 @@ function Xe({ ref: e, Component: t = "div", subhead: n, children: r, hint: i, ti
|
|
|
977
977
|
}),
|
|
978
978
|
l == null ? null : /* @__PURE__ */ _("div", {
|
|
979
979
|
"data-slot": "cell-after",
|
|
980
|
-
className:
|
|
980
|
+
className: V.after,
|
|
981
981
|
children: l
|
|
982
982
|
})
|
|
983
983
|
]
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
|
-
|
|
986
|
+
Ze.displayName = "Cell";
|
|
987
987
|
//#endregion
|
|
988
988
|
//#region src/components/Card/CardCell.tsx
|
|
989
|
-
function
|
|
990
|
-
let { type: a } = s(
|
|
991
|
-
return /* @__PURE__ */ _(
|
|
989
|
+
function Qe({ ref: e, children: t, subtitle: n, className: r, ...i }) {
|
|
990
|
+
let { type: a } = s(Ke), o = a === "ambient";
|
|
991
|
+
return /* @__PURE__ */ _(Ze, {
|
|
992
992
|
ref: e,
|
|
993
993
|
"data-slot": "card-cell",
|
|
994
|
-
className: S(
|
|
994
|
+
className: S(qe.cell, o && qe.cellAmbient, r),
|
|
995
995
|
subtitle: n == null ? void 0 : /* @__PURE__ */ _("span", {
|
|
996
996
|
"data-slot": "card-cell-subtitle",
|
|
997
|
-
className:
|
|
997
|
+
className: qe.cellSubtitle,
|
|
998
998
|
children: n
|
|
999
999
|
}),
|
|
1000
1000
|
...i,
|
|
1001
1001
|
children: t == null ? null : /* @__PURE__ */ _("span", {
|
|
1002
1002
|
"data-slot": "card-cell-title",
|
|
1003
|
-
className:
|
|
1003
|
+
className: qe.cellHeader,
|
|
1004
1004
|
children: t
|
|
1005
1005
|
})
|
|
1006
1006
|
});
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1008
|
+
Qe.displayName = "CardCell";
|
|
1009
1009
|
//#endregion
|
|
1010
1010
|
//#region src/components/Card/Card.tsx
|
|
1011
|
-
function
|
|
1011
|
+
function $e({ ref: e, type: t = "plain", className: n, children: r, ...i }) {
|
|
1012
1012
|
let a = d(() => ({ type: t }), [t]);
|
|
1013
|
-
return /* @__PURE__ */ _(
|
|
1013
|
+
return /* @__PURE__ */ _(Ke.Provider, {
|
|
1014
1014
|
value: a,
|
|
1015
1015
|
children: /* @__PURE__ */ _("article", {
|
|
1016
1016
|
ref: e,
|
|
1017
1017
|
"data-slot": "card",
|
|
1018
1018
|
"data-type": t,
|
|
1019
|
-
className: S(
|
|
1019
|
+
className: S(qe.card, t === "ambient" && qe.cardAmbient, n),
|
|
1020
1020
|
...i,
|
|
1021
1021
|
children: r
|
|
1022
1022
|
})
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
|
-
|
|
1026
|
-
var
|
|
1025
|
+
$e.displayName = "Card", $e.Cell = Qe;
|
|
1026
|
+
var et = {
|
|
1027
1027
|
checkbox: "_checkbox_13hve_1",
|
|
1028
1028
|
input: "_input_13hve_12",
|
|
1029
1029
|
box: "_box_13hve_22"
|
|
1030
1030
|
};
|
|
1031
1031
|
//#endregion
|
|
1032
1032
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
1033
|
-
function
|
|
1033
|
+
function tt({ ref: e, indeterminate: t = !1, disabled: n, className: r, style: i, onChange: a, ...o }) {
|
|
1034
1034
|
let s = f(null), l = M();
|
|
1035
1035
|
return c(() => {
|
|
1036
1036
|
s.current && (s.current.indeterminate = t);
|
|
1037
1037
|
}, [t]), /* @__PURE__ */ v("span", {
|
|
1038
1038
|
"data-slot": "checkbox",
|
|
1039
|
-
className: S(
|
|
1039
|
+
className: S(et.checkbox, r),
|
|
1040
1040
|
style: i,
|
|
1041
1041
|
"data-disabled": n || void 0,
|
|
1042
1042
|
children: [/* @__PURE__ */ _("input", {
|
|
@@ -1045,21 +1045,21 @@ function et({ ref: e, indeterminate: t = !1, disabled: n, className: r, style: i
|
|
|
1045
1045
|
},
|
|
1046
1046
|
type: "checkbox",
|
|
1047
1047
|
"data-slot": "checkbox-input",
|
|
1048
|
-
className:
|
|
1048
|
+
className: et.input,
|
|
1049
1049
|
disabled: n,
|
|
1050
1050
|
onChange: (e) => {
|
|
1051
1051
|
l("select"), a?.(e);
|
|
1052
1052
|
},
|
|
1053
1053
|
...o
|
|
1054
1054
|
}), /* @__PURE__ */ _("span", {
|
|
1055
|
-
className:
|
|
1055
|
+
className: et.box,
|
|
1056
1056
|
"data-slot": "checkbox-indicator",
|
|
1057
1057
|
"aria-hidden": !0
|
|
1058
1058
|
})]
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
|
-
|
|
1062
|
-
var
|
|
1061
|
+
tt.displayName = "Checkbox";
|
|
1062
|
+
var nt = {
|
|
1063
1063
|
chip: "_chip_bp9zn_1",
|
|
1064
1064
|
"mode-elevated": "_mode-elevated_bp9zn_16",
|
|
1065
1065
|
"mode-outline": "_mode-outline_bp9zn_21",
|
|
@@ -1068,24 +1068,24 @@ var tt = {
|
|
|
1068
1068
|
before: "_before_bp9zn_43",
|
|
1069
1069
|
after: "_after_bp9zn_44",
|
|
1070
1070
|
label: "_label_bp9zn_55"
|
|
1071
|
-
},
|
|
1071
|
+
}, rt = y(nt.chip, {
|
|
1072
1072
|
variants: {
|
|
1073
1073
|
mode: {
|
|
1074
|
-
elevated:
|
|
1075
|
-
outline:
|
|
1074
|
+
elevated: nt["mode-elevated"],
|
|
1075
|
+
outline: nt["mode-outline"]
|
|
1076
1076
|
},
|
|
1077
|
-
clickable: { true:
|
|
1077
|
+
clickable: { true: nt.clickable }
|
|
1078
1078
|
},
|
|
1079
1079
|
defaultVariants: { mode: "elevated" }
|
|
1080
1080
|
});
|
|
1081
1081
|
//#endregion
|
|
1082
1082
|
//#region src/components/Chip/Chip.tsx
|
|
1083
|
-
function
|
|
1083
|
+
function it({ ref: e, Component: t = "div", mode: n = "elevated", before: r, after: i, onClick: a, onRemove: o, removeLabel: s = "Remove", className: c, children: l, ...u }) {
|
|
1084
1084
|
let d = a != null, f = M();
|
|
1085
1085
|
return /* @__PURE__ */ v(t, {
|
|
1086
1086
|
ref: e,
|
|
1087
1087
|
"data-slot": "chip",
|
|
1088
|
-
className: S(
|
|
1088
|
+
className: S(rt({
|
|
1089
1089
|
mode: n,
|
|
1090
1090
|
clickable: d
|
|
1091
1091
|
}), c),
|
|
@@ -1096,22 +1096,22 @@ function rt({ ref: e, Component: t = "div", mode: n = "elevated", before: r, aft
|
|
|
1096
1096
|
children: [
|
|
1097
1097
|
r == null ? null : /* @__PURE__ */ _("span", {
|
|
1098
1098
|
"data-slot": "chip-before",
|
|
1099
|
-
className:
|
|
1099
|
+
className: nt.before,
|
|
1100
1100
|
children: r
|
|
1101
1101
|
}),
|
|
1102
1102
|
/* @__PURE__ */ _("span", {
|
|
1103
1103
|
"data-slot": "chip-label",
|
|
1104
|
-
className:
|
|
1104
|
+
className: nt.label,
|
|
1105
1105
|
children: l
|
|
1106
1106
|
}),
|
|
1107
1107
|
o == null ? i == null ? null : /* @__PURE__ */ _("span", {
|
|
1108
1108
|
"data-slot": "chip-after",
|
|
1109
|
-
className:
|
|
1109
|
+
className: nt.after,
|
|
1110
1110
|
children: i
|
|
1111
1111
|
}) : /* @__PURE__ */ _("button", {
|
|
1112
1112
|
type: "button",
|
|
1113
1113
|
"data-slot": "chip-remove",
|
|
1114
|
-
className:
|
|
1114
|
+
className: nt.remove,
|
|
1115
1115
|
"aria-label": s,
|
|
1116
1116
|
onClick: (e) => {
|
|
1117
1117
|
e.stopPropagation(), f("tap"), o();
|
|
@@ -1132,25 +1132,25 @@ function rt({ ref: e, Component: t = "div", mode: n = "elevated", before: r, aft
|
|
|
1132
1132
|
]
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
|
-
|
|
1136
|
-
var
|
|
1135
|
+
it.displayName = "Chip";
|
|
1136
|
+
var at = {
|
|
1137
1137
|
root: "_root_hclz0_1",
|
|
1138
1138
|
svg: "_svg_hclz0_6",
|
|
1139
1139
|
track: "_track_hclz0_10",
|
|
1140
1140
|
indicator: "_indicator_hclz0_14"
|
|
1141
|
-
},
|
|
1141
|
+
}, ot = {
|
|
1142
1142
|
s: 20,
|
|
1143
1143
|
m: 28,
|
|
1144
1144
|
l: 36
|
|
1145
|
-
},
|
|
1145
|
+
}, st = {
|
|
1146
1146
|
s: 2,
|
|
1147
1147
|
m: 2.5,
|
|
1148
1148
|
l: 3
|
|
1149
1149
|
};
|
|
1150
1150
|
//#endregion
|
|
1151
1151
|
//#region src/components/CircularProgress/CircularProgress.tsx
|
|
1152
|
-
function
|
|
1153
|
-
let o = Math.max(0, Math.min(100, t)), s =
|
|
1152
|
+
function ct({ ref: e, value: t = 0, size: n = "m", className: r, "aria-label": i, ...a }) {
|
|
1153
|
+
let o = Math.max(0, Math.min(100, t)), s = ot[n], c = st[n], l = (s - c) / 2, u = 2 * Math.PI * l, d = s / 2;
|
|
1154
1154
|
return /* @__PURE__ */ _("span", {
|
|
1155
1155
|
ref: e,
|
|
1156
1156
|
role: "progressbar",
|
|
@@ -1159,23 +1159,23 @@ function st({ ref: e, value: t = 0, size: n = "m", className: r, "aria-label": i
|
|
|
1159
1159
|
"aria-valuemax": 100,
|
|
1160
1160
|
"aria-valuenow": Math.round(o),
|
|
1161
1161
|
"data-slot": "circular-progress",
|
|
1162
|
-
className: S(
|
|
1162
|
+
className: S(at.root, r),
|
|
1163
1163
|
...a,
|
|
1164
1164
|
children: /* @__PURE__ */ v("svg", {
|
|
1165
|
-
className:
|
|
1165
|
+
className: at.svg,
|
|
1166
1166
|
width: s,
|
|
1167
1167
|
height: s,
|
|
1168
1168
|
viewBox: `0 0 ${s} ${s}`,
|
|
1169
1169
|
"aria-hidden": !0,
|
|
1170
1170
|
children: [/* @__PURE__ */ _("circle", {
|
|
1171
|
-
className:
|
|
1171
|
+
className: at.track,
|
|
1172
1172
|
cx: d,
|
|
1173
1173
|
cy: d,
|
|
1174
1174
|
r: l,
|
|
1175
1175
|
strokeWidth: c,
|
|
1176
1176
|
fill: "none"
|
|
1177
1177
|
}), /* @__PURE__ */ _("circle", {
|
|
1178
|
-
className:
|
|
1178
|
+
className: at.indicator,
|
|
1179
1179
|
cx: d,
|
|
1180
1180
|
cy: d,
|
|
1181
1181
|
r: l,
|
|
@@ -1188,120 +1188,120 @@ function st({ ref: e, value: t = 0, size: n = "m", className: r, "aria-label": i
|
|
|
1188
1188
|
})
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
1191
|
-
|
|
1191
|
+
ct.displayName = "CircularProgress";
|
|
1192
1192
|
//#endregion
|
|
1193
1193
|
//#region node_modules/@radix-ui/primitive/dist/index.mjs
|
|
1194
|
-
var
|
|
1194
|
+
var lt = Object.defineProperty, ut = (e, t) => lt(e, "name", {
|
|
1195
1195
|
value: t,
|
|
1196
1196
|
configurable: !0
|
|
1197
|
-
}),
|
|
1198
|
-
function
|
|
1199
|
-
return /* @__PURE__ */
|
|
1197
|
+
}), dt = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1198
|
+
function ft(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1199
|
+
return /* @__PURE__ */ ut(function(r) {
|
|
1200
1200
|
if (e?.(r), n === !1 || !r || !r.defaultPrevented) return t?.(r);
|
|
1201
1201
|
}, "handleEvent");
|
|
1202
1202
|
}
|
|
1203
|
-
|
|
1204
|
-
function
|
|
1205
|
-
if (!
|
|
1203
|
+
ut(ft, "composeEventHandlers");
|
|
1204
|
+
function pt(e) {
|
|
1205
|
+
if (!dt) throw Error("Cannot access window outside of the DOM");
|
|
1206
1206
|
return e?.ownerDocument?.defaultView ?? window;
|
|
1207
1207
|
}
|
|
1208
|
-
|
|
1209
|
-
function
|
|
1210
|
-
if (!
|
|
1208
|
+
ut(pt, "getOwnerWindow");
|
|
1209
|
+
function mt(e) {
|
|
1210
|
+
if (!dt) throw Error("Cannot access document outside of the DOM");
|
|
1211
1211
|
return e?.ownerDocument ?? document;
|
|
1212
1212
|
}
|
|
1213
|
-
|
|
1214
|
-
function
|
|
1215
|
-
let { activeElement: n } =
|
|
1213
|
+
ut(mt, "getOwnerDocument");
|
|
1214
|
+
function ht(e, t = !1) {
|
|
1215
|
+
let { activeElement: n } = mt(e);
|
|
1216
1216
|
if (!n?.nodeName) return null;
|
|
1217
|
-
if (
|
|
1217
|
+
if (gt(n) && n.contentDocument) return ht(n.contentDocument.body, t);
|
|
1218
1218
|
if (t) {
|
|
1219
1219
|
let e = n.getAttribute("aria-activedescendant");
|
|
1220
1220
|
if (e) {
|
|
1221
|
-
let t =
|
|
1221
|
+
let t = mt(n).getElementById(e);
|
|
1222
1222
|
if (t) return t;
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
return n;
|
|
1226
1226
|
}
|
|
1227
|
-
|
|
1228
|
-
function
|
|
1227
|
+
ut(ht, "getActiveElement");
|
|
1228
|
+
function gt(e) {
|
|
1229
1229
|
return e.tagName === "IFRAME";
|
|
1230
1230
|
}
|
|
1231
|
-
|
|
1231
|
+
ut(gt, "isFrame");
|
|
1232
1232
|
//#endregion
|
|
1233
1233
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1234
|
-
var
|
|
1234
|
+
var _t = Object.defineProperty, vt = (e, t) => _t(e, "name", {
|
|
1235
1235
|
value: t,
|
|
1236
1236
|
configurable: !0
|
|
1237
1237
|
});
|
|
1238
|
-
function
|
|
1238
|
+
function yt(e, t) {
|
|
1239
1239
|
if (typeof e == "function") return e(t);
|
|
1240
1240
|
e != null && (e.current = t);
|
|
1241
1241
|
}
|
|
1242
|
-
|
|
1243
|
-
function
|
|
1242
|
+
vt(yt, "setRef");
|
|
1243
|
+
function bt(...e) {
|
|
1244
1244
|
return (t) => {
|
|
1245
1245
|
let n = !1, r = e.map((e) => {
|
|
1246
|
-
let r =
|
|
1246
|
+
let r = yt(e, t);
|
|
1247
1247
|
return !n && typeof r == "function" && (n = !0), r;
|
|
1248
1248
|
});
|
|
1249
1249
|
if (n) return () => {
|
|
1250
1250
|
for (let t = 0; t < r.length; t++) {
|
|
1251
1251
|
let n = r[t];
|
|
1252
|
-
typeof n == "function" ? n() :
|
|
1252
|
+
typeof n == "function" ? n() : yt(e[t], null);
|
|
1253
1253
|
}
|
|
1254
1254
|
};
|
|
1255
1255
|
};
|
|
1256
1256
|
}
|
|
1257
|
-
|
|
1258
|
-
function
|
|
1259
|
-
return e.useCallback(
|
|
1257
|
+
vt(bt, "composeRefs");
|
|
1258
|
+
function xt(...t) {
|
|
1259
|
+
return e.useCallback(bt(...t), t);
|
|
1260
1260
|
}
|
|
1261
|
-
|
|
1261
|
+
vt(xt, "useComposedRefs");
|
|
1262
1262
|
//#endregion
|
|
1263
1263
|
//#region node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
1264
|
-
var
|
|
1264
|
+
var St = Object.defineProperty, H = (e, t) => St(e, "name", {
|
|
1265
1265
|
value: t,
|
|
1266
1266
|
configurable: !0
|
|
1267
1267
|
});
|
|
1268
1268
|
// @__NO_SIDE_EFFECTS__
|
|
1269
|
-
function
|
|
1269
|
+
function Ct(t) {
|
|
1270
1270
|
let n = e.forwardRef((n, r) => {
|
|
1271
1271
|
let { children: i, ...a } = n, o = null, s = !1, c = [];
|
|
1272
|
-
|
|
1273
|
-
if (
|
|
1272
|
+
jt(i) && typeof Ft == "function" && (i = Ft(i._payload)), e.Children.forEach(i, (e) => {
|
|
1273
|
+
if (kt(e)) {
|
|
1274
1274
|
s = !0;
|
|
1275
1275
|
let t = e, n = "child" in t.props ? t.props.child : t.props.children;
|
|
1276
|
-
|
|
1276
|
+
jt(n) && typeof Ft == "function" && (n = Ft(n._payload)), o = Et(t, n), c.push(o?.props?.children);
|
|
1277
1277
|
} else c.push(e);
|
|
1278
1278
|
}), o ? o = e.cloneElement(o, void 0, c) : !s && e.Children.count(i) === 1 && e.isValidElement(i) && (o = i);
|
|
1279
|
-
let l = o ?
|
|
1279
|
+
let l = o ? Ot(o) : void 0, u = xt(r, l);
|
|
1280
1280
|
if (!o) {
|
|
1281
|
-
if (i || i === 0) throw Error(s ?
|
|
1281
|
+
if (i || i === 0) throw Error(s ? Pt(t) : Nt(t));
|
|
1282
1282
|
return i;
|
|
1283
1283
|
}
|
|
1284
|
-
let d =
|
|
1284
|
+
let d = Dt(a, o.props ?? {});
|
|
1285
1285
|
return o.type !== e.Fragment && (d.ref = r ? u : l), e.cloneElement(o, d);
|
|
1286
1286
|
});
|
|
1287
1287
|
return n.displayName = `${t}.Slot`, n;
|
|
1288
1288
|
}
|
|
1289
|
-
|
|
1290
|
-
var
|
|
1289
|
+
H(Ct, "createSlot");
|
|
1290
|
+
var wt = Symbol.for("radix.slottable");
|
|
1291
1291
|
// @__NO_SIDE_EFFECTS__
|
|
1292
|
-
function
|
|
1293
|
-
let t = /* @__PURE__ */
|
|
1294
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
1292
|
+
function Tt(e) {
|
|
1293
|
+
let t = /* @__PURE__ */ H((e) => "child" in e ? e.children(e.child) : e.children, "Slottable");
|
|
1294
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = wt, t;
|
|
1295
1295
|
}
|
|
1296
|
-
|
|
1297
|
-
var
|
|
1296
|
+
H(Tt, "createSlottable");
|
|
1297
|
+
var Et = /* @__PURE__ */ H((t, n) => {
|
|
1298
1298
|
if ("child" in t.props) {
|
|
1299
1299
|
let n = t.props.child;
|
|
1300
1300
|
return e.isValidElement(n) ? e.cloneElement(n, void 0, t.props.children(n.props.children)) : null;
|
|
1301
1301
|
}
|
|
1302
1302
|
return e.isValidElement(n) ? n : null;
|
|
1303
1303
|
}, "getSlottableElementFromSlottable");
|
|
1304
|
-
function
|
|
1304
|
+
function Dt(e, t) {
|
|
1305
1305
|
let n = { ...t };
|
|
1306
1306
|
for (let r in t) {
|
|
1307
1307
|
let i = e[r], a = t[r];
|
|
@@ -1318,29 +1318,29 @@ function Et(e, t) {
|
|
|
1318
1318
|
...n
|
|
1319
1319
|
};
|
|
1320
1320
|
}
|
|
1321
|
-
|
|
1322
|
-
function
|
|
1321
|
+
H(Dt, "mergeProps");
|
|
1322
|
+
function Ot(e) {
|
|
1323
1323
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1324
1324
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1325
1325
|
}
|
|
1326
|
-
|
|
1327
|
-
function
|
|
1328
|
-
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
1329
|
-
}
|
|
1330
|
-
U(Ot, "isSlottable");
|
|
1331
|
-
var kt = Symbol.for("react.lazy");
|
|
1332
|
-
function At(e) {
|
|
1333
|
-
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === kt && "_payload" in e && jt(e._payload);
|
|
1326
|
+
H(Ot, "getElementRef");
|
|
1327
|
+
function kt(t) {
|
|
1328
|
+
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === wt;
|
|
1334
1329
|
}
|
|
1335
|
-
|
|
1330
|
+
H(kt, "isSlottable");
|
|
1331
|
+
var At = Symbol.for("react.lazy");
|
|
1336
1332
|
function jt(e) {
|
|
1333
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === At && "_payload" in e && Mt(e._payload);
|
|
1334
|
+
}
|
|
1335
|
+
H(jt, "isLazyComponent");
|
|
1336
|
+
function Mt(e) {
|
|
1337
1337
|
return typeof e == "object" && !!e && "then" in e;
|
|
1338
1338
|
}
|
|
1339
|
-
|
|
1340
|
-
var
|
|
1339
|
+
H(Mt, "isPromiseLike");
|
|
1340
|
+
var Nt = /* @__PURE__ */ H((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), Pt = /* @__PURE__ */ H((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), Ft = e.use, It = Object.defineProperty, Lt = (e, t) => It(e, "name", {
|
|
1341
1341
|
value: t,
|
|
1342
1342
|
configurable: !0
|
|
1343
|
-
}),
|
|
1343
|
+
}), Rt = [
|
|
1344
1344
|
"a",
|
|
1345
1345
|
"button",
|
|
1346
1346
|
"div",
|
|
@@ -1359,7 +1359,7 @@ var Mt = /* @__PURE__ */ U((e) => `${e} failed to slot onto its children. Expect
|
|
|
1359
1359
|
"svg",
|
|
1360
1360
|
"ul"
|
|
1361
1361
|
].reduce((t, n) => {
|
|
1362
|
-
let r = /* @__PURE__ */
|
|
1362
|
+
let r = /* @__PURE__ */ Ct(`Primitive.${n}`), i = e.forwardRef((e, t) => {
|
|
1363
1363
|
let { asChild: i, ...a } = e, o = i ? r : n;
|
|
1364
1364
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ _(o, {
|
|
1365
1365
|
...a,
|
|
@@ -1371,35 +1371,35 @@ var Mt = /* @__PURE__ */ U((e) => `${e} failed to slot onto its children. Expect
|
|
|
1371
1371
|
[n]: i
|
|
1372
1372
|
};
|
|
1373
1373
|
}, {});
|
|
1374
|
-
function
|
|
1374
|
+
function zt(e, t) {
|
|
1375
1375
|
e && b.flushSync(() => e.dispatchEvent(t));
|
|
1376
1376
|
}
|
|
1377
|
-
|
|
1377
|
+
Lt(zt, "dispatchDiscreteCustomEvent");
|
|
1378
1378
|
//#endregion
|
|
1379
1379
|
//#region node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
1380
|
-
var
|
|
1380
|
+
var Bt = Object.defineProperty, Vt = (e, t) => Bt(e, "name", {
|
|
1381
1381
|
value: t,
|
|
1382
1382
|
configurable: !0
|
|
1383
1383
|
});
|
|
1384
|
-
function
|
|
1384
|
+
function Ht(t) {
|
|
1385
1385
|
let n = e.useRef(t);
|
|
1386
1386
|
return e.useEffect(() => {
|
|
1387
1387
|
n.current = t;
|
|
1388
1388
|
}), e.useMemo(() => ((...e) => n.current?.(...e)), []);
|
|
1389
1389
|
}
|
|
1390
|
-
|
|
1390
|
+
Vt(Ht, "useCallbackRef");
|
|
1391
1391
|
//#endregion
|
|
1392
1392
|
//#region node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
1393
|
-
var
|
|
1393
|
+
var Ut = Object.defineProperty, U = (e, t) => Ut(e, "name", {
|
|
1394
1394
|
value: t,
|
|
1395
1395
|
configurable: !0
|
|
1396
|
-
}),
|
|
1396
|
+
}), Wt = "dismissableLayer.update", Gt = "dismissableLayer.pointerDownOutside", Kt = "dismissableLayer.focusOutside", qt, Jt = e.createContext({
|
|
1397
1397
|
layers: /* @__PURE__ */ new Set(),
|
|
1398
1398
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1399
1399
|
branches: /* @__PURE__ */ new Set(),
|
|
1400
1400
|
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
1401
|
-
}),
|
|
1402
|
-
let { disableOutsidePointerEvents: r = !1, deferPointerDownOutside: i = !1, onEscapeKeyDown: a, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = t, d = e.useContext(
|
|
1401
|
+
}), Yt = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ U(function(t, n) {
|
|
1402
|
+
let { disableOutsidePointerEvents: r = !1, deferPointerDownOutside: i = !1, onEscapeKeyDown: a, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = t, d = e.useContext(Jt), [f, p] = e.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = e.useState({}), g = xt(n, p), v = Array.from(d.layers), [y] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), b = y ? v.indexOf(y) : -1, x = f ? v.indexOf(f) : -1, S = d.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= b, w = e.useRef(!1), T = Qt((e) => {
|
|
1403
1403
|
o?.(e), c?.(e), e.defaultPrevented || l?.();
|
|
1404
1404
|
}, {
|
|
1405
1405
|
ownerDocument: m,
|
|
@@ -1411,11 +1411,11 @@ var Ht = Object.defineProperty, W = (e, t) => Ht(e, "name", {
|
|
|
1411
1411
|
let t = [...d.branches].some((t) => t.contains(e));
|
|
1412
1412
|
return C && !t;
|
|
1413
1413
|
}, [d.branches, C])
|
|
1414
|
-
}), E =
|
|
1414
|
+
}), E = $t((e) => {
|
|
1415
1415
|
if (i && w.current) return;
|
|
1416
1416
|
let t = e.target;
|
|
1417
1417
|
[...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
1418
|
-
}, m), D = f ? x === v.length - 1 : !1, O =
|
|
1418
|
+
}, m), D = f ? x === v.length - 1 : !1, O = Ht((e) => {
|
|
1419
1419
|
e.key === "Escape" && (a?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
|
|
1420
1420
|
});
|
|
1421
1421
|
return e.useEffect(() => {
|
|
@@ -1425,8 +1425,8 @@ var Ht = Object.defineProperty, W = (e, t) => Ht(e, "name", {
|
|
|
1425
1425
|
D,
|
|
1426
1426
|
O
|
|
1427
1427
|
]), e.useEffect(() => {
|
|
1428
|
-
if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
1429
|
-
r && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (m.body.style.pointerEvents =
|
|
1428
|
+
if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (qt = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), en(), () => {
|
|
1429
|
+
r && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (m.body.style.pointerEvents = qt));
|
|
1430
1430
|
};
|
|
1431
1431
|
}, [
|
|
1432
1432
|
f,
|
|
@@ -1434,43 +1434,43 @@ var Ht = Object.defineProperty, W = (e, t) => Ht(e, "name", {
|
|
|
1434
1434
|
r,
|
|
1435
1435
|
d
|
|
1436
1436
|
]), e.useEffect(() => () => {
|
|
1437
|
-
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
1437
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), en());
|
|
1438
1438
|
}, [f, d]), e.useEffect(() => {
|
|
1439
|
-
let e = /* @__PURE__ */
|
|
1440
|
-
return document.addEventListener(
|
|
1441
|
-
}, []), /* @__PURE__ */ _(
|
|
1439
|
+
let e = /* @__PURE__ */ U(() => h({}), "handleUpdate");
|
|
1440
|
+
return document.addEventListener(Wt, e), () => document.removeEventListener(Wt, e);
|
|
1441
|
+
}, []), /* @__PURE__ */ _(Rt.div, {
|
|
1442
1442
|
...u,
|
|
1443
1443
|
ref: g,
|
|
1444
1444
|
style: {
|
|
1445
1445
|
pointerEvents: S ? C ? "auto" : "none" : void 0,
|
|
1446
1446
|
...t.style
|
|
1447
1447
|
},
|
|
1448
|
-
onFocusCapture:
|
|
1449
|
-
onBlurCapture:
|
|
1450
|
-
onPointerDownCapture:
|
|
1448
|
+
onFocusCapture: ft(t.onFocusCapture, E.onFocusCapture),
|
|
1449
|
+
onBlurCapture: ft(t.onBlurCapture, E.onBlurCapture),
|
|
1450
|
+
onPointerDownCapture: ft(t.onPointerDownCapture, T.onPointerDownCapture)
|
|
1451
1451
|
});
|
|
1452
1452
|
}, "DismissableLayer"));
|
|
1453
|
-
function
|
|
1454
|
-
let t = e.useContext(
|
|
1453
|
+
function Xt() {
|
|
1454
|
+
let t = e.useContext(Jt), [n, r] = e.useState(null);
|
|
1455
1455
|
return e.useEffect(() => {
|
|
1456
1456
|
if (n) return t.dismissableSurfaces.add(n), () => {
|
|
1457
1457
|
t.dismissableSurfaces.delete(n);
|
|
1458
1458
|
};
|
|
1459
1459
|
}, [n, t.dismissableSurfaces]), r;
|
|
1460
1460
|
}
|
|
1461
|
-
|
|
1462
|
-
var
|
|
1463
|
-
function
|
|
1464
|
-
let { ownerDocument: r = globalThis?.document, deferPointerDownOutside: i = !1, isDeferredPointerDownOutsideRef: a, dismissableSurfaces: o, shouldHandlePointerDownOutside: s =
|
|
1461
|
+
U(Xt, "useDismissableLayerSurface");
|
|
1462
|
+
var Zt = /* @__PURE__ */ U(() => !0, "IS_TRUE");
|
|
1463
|
+
function Qt(t, n) {
|
|
1464
|
+
let { ownerDocument: r = globalThis?.document, deferPointerDownOutside: i = !1, isDeferredPointerDownOutsideRef: a, dismissableSurfaces: o, shouldHandlePointerDownOutside: s = Zt } = n, c = Ht(t), l = e.useRef(!1), u = e.useRef(!1), d = e.useRef(/* @__PURE__ */ new Map()), f = e.useRef(() => {});
|
|
1465
1465
|
return e.useEffect(() => {
|
|
1466
1466
|
function e() {
|
|
1467
1467
|
u.current = !1, a.current = !1, d.current.clear();
|
|
1468
1468
|
}
|
|
1469
|
-
|
|
1469
|
+
U(e, "resetOutsideInteraction");
|
|
1470
1470
|
function t() {
|
|
1471
1471
|
return Array.from(d.current.values()).some(Boolean);
|
|
1472
1472
|
}
|
|
1473
|
-
|
|
1473
|
+
U(t, "isOutsideInteractionIntercepted");
|
|
1474
1474
|
function n(e) {
|
|
1475
1475
|
if (!u.current) return;
|
|
1476
1476
|
let t = e.target;
|
|
@@ -1478,19 +1478,19 @@ function Zt(t, n) {
|
|
|
1478
1478
|
u.current && f.current();
|
|
1479
1479
|
}, 0);
|
|
1480
1480
|
}
|
|
1481
|
-
|
|
1481
|
+
U(n, "handleInteractionCapture");
|
|
1482
1482
|
function p(e) {
|
|
1483
1483
|
u.current && d.current.set(e.type, !1);
|
|
1484
1484
|
}
|
|
1485
|
-
|
|
1486
|
-
let m = /* @__PURE__ */
|
|
1485
|
+
U(p, "handleInteractionBubble");
|
|
1486
|
+
let m = /* @__PURE__ */ U((n) => {
|
|
1487
1487
|
if (n.target && !l.current) {
|
|
1488
1488
|
let o = function() {
|
|
1489
1489
|
r.removeEventListener("click", f.current);
|
|
1490
1490
|
let n = t();
|
|
1491
|
-
e(), n ||
|
|
1491
|
+
e(), n || tn(Gt, c, p, { discrete: !0 });
|
|
1492
1492
|
};
|
|
1493
|
-
if (
|
|
1493
|
+
if (U(o, "handleAndDispatchPointerDownOutsideEvent"), !s(n.target)) {
|
|
1494
1494
|
r.removeEventListener("click", f.current), e(), l.current = !1;
|
|
1495
1495
|
return;
|
|
1496
1496
|
}
|
|
@@ -1521,46 +1521,46 @@ function Zt(t, n) {
|
|
|
1521
1521
|
a,
|
|
1522
1522
|
o,
|
|
1523
1523
|
s
|
|
1524
|
-
]), { onPointerDownCapture: /* @__PURE__ */
|
|
1524
|
+
]), { onPointerDownCapture: /* @__PURE__ */ U(() => l.current = !0, "onPointerDownCapture") };
|
|
1525
1525
|
}
|
|
1526
|
-
|
|
1527
|
-
function
|
|
1528
|
-
let r =
|
|
1526
|
+
U(Qt, "usePointerDownOutside");
|
|
1527
|
+
function $t(t, n = globalThis?.document) {
|
|
1528
|
+
let r = Ht(t), i = e.useRef(!1);
|
|
1529
1529
|
return e.useEffect(() => {
|
|
1530
|
-
let e = /* @__PURE__ */
|
|
1531
|
-
e.target && !i.current &&
|
|
1530
|
+
let e = /* @__PURE__ */ U((e) => {
|
|
1531
|
+
e.target && !i.current && tn(Kt, r, { originalEvent: e }, { discrete: !1 });
|
|
1532
1532
|
}, "handleFocus");
|
|
1533
1533
|
return n.addEventListener("focusin", e), () => n.removeEventListener("focusin", e);
|
|
1534
1534
|
}, [n, r]), {
|
|
1535
|
-
onFocusCapture: /* @__PURE__ */
|
|
1536
|
-
onBlurCapture: /* @__PURE__ */
|
|
1535
|
+
onFocusCapture: /* @__PURE__ */ U(() => i.current = !0, "onFocusCapture"),
|
|
1536
|
+
onBlurCapture: /* @__PURE__ */ U(() => i.current = !1, "onBlurCapture")
|
|
1537
1537
|
};
|
|
1538
1538
|
}
|
|
1539
|
-
|
|
1540
|
-
function
|
|
1541
|
-
let e = new CustomEvent(
|
|
1539
|
+
U($t, "useFocusOutside");
|
|
1540
|
+
function en() {
|
|
1541
|
+
let e = new CustomEvent(Wt);
|
|
1542
1542
|
document.dispatchEvent(e);
|
|
1543
1543
|
}
|
|
1544
|
-
|
|
1545
|
-
function
|
|
1544
|
+
U(en, "dispatchUpdate");
|
|
1545
|
+
function tn(e, t, n, { discrete: r }) {
|
|
1546
1546
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
1547
1547
|
bubbles: !1,
|
|
1548
1548
|
cancelable: !0,
|
|
1549
1549
|
detail: n
|
|
1550
1550
|
});
|
|
1551
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
1551
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? zt(i, a) : i.dispatchEvent(a);
|
|
1552
1552
|
}
|
|
1553
|
-
|
|
1553
|
+
U(tn, "handleAndDispatchCustomEvent");
|
|
1554
1554
|
//#endregion
|
|
1555
1555
|
//#region node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
1556
|
-
var
|
|
1556
|
+
var nn = Object.defineProperty, W = (e, t) => nn(e, "name", {
|
|
1557
1557
|
value: t,
|
|
1558
1558
|
configurable: !0
|
|
1559
|
-
}),
|
|
1559
|
+
}), rn = "focusScope.autoFocusOnMount", an = "focusScope.autoFocusOnUnmount", on = {
|
|
1560
1560
|
bubbles: !1,
|
|
1561
1561
|
cancelable: !0
|
|
1562
|
-
},
|
|
1563
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u =
|
|
1562
|
+
}, sn = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ W(function(t, n) {
|
|
1563
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u = Ht(a), d = Ht(o), f = e.useRef(null), p = xt(n, l), m = e.useRef({
|
|
1564
1564
|
paused: !1,
|
|
1565
1565
|
pause() {
|
|
1566
1566
|
this.paused = !0;
|
|
@@ -1574,15 +1574,15 @@ var tn = Object.defineProperty, G = (e, t) => tn(e, "name", {
|
|
|
1574
1574
|
let e = function(e) {
|
|
1575
1575
|
if (m.paused || !c) return;
|
|
1576
1576
|
let t = e.target;
|
|
1577
|
-
c.contains(t) ? f.current = t :
|
|
1577
|
+
c.contains(t) ? f.current = t : G(f.current, { select: !0 });
|
|
1578
1578
|
}, t = function(e) {
|
|
1579
1579
|
if (m.paused || !c) return;
|
|
1580
1580
|
let t = e.relatedTarget;
|
|
1581
|
-
t !== null && (c.contains(t) ||
|
|
1581
|
+
t !== null && (c.contains(t) || G(f.current, { select: !0 }));
|
|
1582
1582
|
}, n = function(e) {
|
|
1583
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
1583
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && G(c);
|
|
1584
1584
|
};
|
|
1585
|
-
|
|
1585
|
+
W(e, "handleFocusIn"), W(t, "handleFocusOut"), W(n, "handleMutations"), document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
1586
1586
|
let r = new MutationObserver(n);
|
|
1587
1587
|
return c && r.observe(c, {
|
|
1588
1588
|
childList: !0,
|
|
@@ -1597,16 +1597,16 @@ var tn = Object.defineProperty, G = (e, t) => tn(e, "name", {
|
|
|
1597
1597
|
m.paused
|
|
1598
1598
|
]), e.useEffect(() => {
|
|
1599
1599
|
if (c) {
|
|
1600
|
-
|
|
1600
|
+
mn.add(m);
|
|
1601
1601
|
let e = document.activeElement;
|
|
1602
1602
|
if (!c.contains(e)) {
|
|
1603
|
-
let t = new CustomEvent(
|
|
1604
|
-
c.addEventListener(
|
|
1603
|
+
let t = new CustomEvent(rn, on);
|
|
1604
|
+
c.addEventListener(rn, u), c.dispatchEvent(t), t.defaultPrevented || (cn(_n(un(c)), { select: !0 }), document.activeElement === e && G(c));
|
|
1605
1605
|
}
|
|
1606
1606
|
return () => {
|
|
1607
|
-
c.removeEventListener(
|
|
1608
|
-
let t = new CustomEvent(
|
|
1609
|
-
c.addEventListener(
|
|
1607
|
+
c.removeEventListener(rn, u), setTimeout(() => {
|
|
1608
|
+
let t = new CustomEvent(an, on);
|
|
1609
|
+
c.addEventListener(an, d), c.dispatchEvent(t), t.defaultPrevented || G(e ?? document.body, { select: !0 }), c.removeEventListener(an, d), mn.remove(m);
|
|
1610
1610
|
}, 0);
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
@@ -1620,46 +1620,46 @@ var tn = Object.defineProperty, G = (e, t) => tn(e, "name", {
|
|
|
1620
1620
|
if (!r && !i || m.paused) return;
|
|
1621
1621
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
1622
1622
|
if (t && n) {
|
|
1623
|
-
let t = e.currentTarget, [i, a] =
|
|
1624
|
-
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r &&
|
|
1623
|
+
let t = e.currentTarget, [i, a] = ln(t);
|
|
1624
|
+
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r && G(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r && G(a, { select: !0 })) : n === t && e.preventDefault();
|
|
1625
1625
|
}
|
|
1626
1626
|
}, [
|
|
1627
1627
|
r,
|
|
1628
1628
|
i,
|
|
1629
1629
|
m.paused
|
|
1630
1630
|
]);
|
|
1631
|
-
return /* @__PURE__ */ _(
|
|
1631
|
+
return /* @__PURE__ */ _(Rt.div, {
|
|
1632
1632
|
tabIndex: -1,
|
|
1633
1633
|
...s,
|
|
1634
1634
|
ref: p,
|
|
1635
1635
|
onKeyDown: h
|
|
1636
1636
|
});
|
|
1637
1637
|
}, "FocusScope"));
|
|
1638
|
-
function
|
|
1638
|
+
function cn(e, { select: t = !1 } = {}) {
|
|
1639
1639
|
let n = document.activeElement;
|
|
1640
|
-
for (let r of e) if (
|
|
1641
|
-
}
|
|
1642
|
-
G(sn, "focusFirst");
|
|
1643
|
-
function cn(e) {
|
|
1644
|
-
let t = ln(e);
|
|
1645
|
-
return [un(t, e), un(t.reverse(), e)];
|
|
1640
|
+
for (let r of e) if (G(r, { select: t }), document.activeElement !== n) return;
|
|
1646
1641
|
}
|
|
1647
|
-
|
|
1642
|
+
W(cn, "focusFirst");
|
|
1648
1643
|
function ln(e) {
|
|
1649
|
-
let t =
|
|
1644
|
+
let t = un(e);
|
|
1645
|
+
return [dn(t, e), dn(t.reverse(), e)];
|
|
1646
|
+
}
|
|
1647
|
+
W(ln, "getTabbableEdges");
|
|
1648
|
+
function un(e) {
|
|
1649
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ W((e) => {
|
|
1650
1650
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
1651
1651
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1652
1652
|
}, "acceptNode") });
|
|
1653
1653
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
1654
1654
|
return t;
|
|
1655
1655
|
}
|
|
1656
|
-
|
|
1657
|
-
function
|
|
1656
|
+
W(un, "getTabbableCandidates");
|
|
1657
|
+
function dn(e, t) {
|
|
1658
1658
|
let n = typeof t.checkVisibility == "function" && t.checkVisibility({ checkVisibilityCSS: !0 });
|
|
1659
|
-
for (let r of e) if (!(n ? !r.checkVisibility({ checkVisibilityCSS: !0 }) :
|
|
1659
|
+
for (let r of e) if (!(n ? !r.checkVisibility({ checkVisibilityCSS: !0 }) : fn(r, { upTo: t }))) return r;
|
|
1660
1660
|
}
|
|
1661
|
-
|
|
1662
|
-
function
|
|
1661
|
+
W(dn, "findVisible");
|
|
1662
|
+
function fn(e, { upTo: t }) {
|
|
1663
1663
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1664
1664
|
for (; e;) {
|
|
1665
1665
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1668,57 +1668,57 @@ function dn(e, { upTo: t }) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
return !1;
|
|
1670
1670
|
}
|
|
1671
|
-
|
|
1672
|
-
function
|
|
1671
|
+
W(fn, "isHidden");
|
|
1672
|
+
function pn(e) {
|
|
1673
1673
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1674
1674
|
}
|
|
1675
|
-
|
|
1676
|
-
function
|
|
1675
|
+
W(pn, "isSelectableInput");
|
|
1676
|
+
function G(e, { select: t = !1 } = {}) {
|
|
1677
1677
|
if (e && e.focus) {
|
|
1678
1678
|
let n = document.activeElement;
|
|
1679
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1679
|
+
e.focus({ preventScroll: !0 }), e !== n && pn(e) && t && e.select();
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
|
-
G
|
|
1683
|
-
var
|
|
1684
|
-
function
|
|
1682
|
+
W(G, "focus");
|
|
1683
|
+
var mn = hn();
|
|
1684
|
+
function hn() {
|
|
1685
1685
|
let e = [];
|
|
1686
1686
|
return {
|
|
1687
1687
|
add(t) {
|
|
1688
1688
|
let n = e[0];
|
|
1689
|
-
t !== n && n?.pause(), e =
|
|
1689
|
+
t !== n && n?.pause(), e = gn(e, t), e.unshift(t);
|
|
1690
1690
|
},
|
|
1691
1691
|
remove(t) {
|
|
1692
|
-
e =
|
|
1692
|
+
e = gn(e, t), e[0]?.resume();
|
|
1693
1693
|
}
|
|
1694
1694
|
};
|
|
1695
1695
|
}
|
|
1696
|
-
|
|
1697
|
-
function
|
|
1696
|
+
W(hn, "createFocusScopesStack");
|
|
1697
|
+
function gn(e, t) {
|
|
1698
1698
|
let n = [...e], r = n.indexOf(t);
|
|
1699
1699
|
return r !== -1 && n.splice(r, 1), n;
|
|
1700
1700
|
}
|
|
1701
|
-
|
|
1702
|
-
function
|
|
1701
|
+
W(gn, "arrayRemove");
|
|
1702
|
+
function _n(e) {
|
|
1703
1703
|
return e.filter((e) => e.tagName !== "A");
|
|
1704
1704
|
}
|
|
1705
|
-
|
|
1705
|
+
W(_n, "removeLinks");
|
|
1706
1706
|
//#endregion
|
|
1707
1707
|
//#region node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
1708
|
-
var
|
|
1708
|
+
var vn = globalThis?.document ? e.useLayoutEffect : () => {}, yn = Object.defineProperty, K = (e, t) => yn(e, "name", {
|
|
1709
1709
|
value: t,
|
|
1710
1710
|
configurable: !0
|
|
1711
1711
|
});
|
|
1712
|
-
function
|
|
1712
|
+
function bn(t, n) {
|
|
1713
1713
|
return e.useReducer((e, t) => n[e][t] ?? e, t);
|
|
1714
1714
|
}
|
|
1715
|
-
|
|
1716
|
-
var
|
|
1717
|
-
let { present: n, children: r } = t, i =
|
|
1715
|
+
K(bn, "useStateMachine");
|
|
1716
|
+
var xn = /* @__PURE__ */ K((t) => {
|
|
1717
|
+
let { present: n, children: r } = t, i = Sn(n), a = typeof r == "function" ? r({ present: i.isPresent }) : e.Children.only(r), o = wn(i.ref, En(a));
|
|
1718
1718
|
return typeof r == "function" || i.isPresent ? e.cloneElement(a, { ref: o }) : null;
|
|
1719
1719
|
}, "Presence");
|
|
1720
|
-
function
|
|
1721
|
-
let [n, r] = e.useState(), i = e.useRef(null), a = e.useRef(t), o = e.useRef("none"), s = e.useRef(void 0), [c, l] =
|
|
1720
|
+
function Sn(t) {
|
|
1721
|
+
let [n, r] = e.useState(), i = e.useRef(null), a = e.useRef(t), o = e.useRef("none"), s = e.useRef(void 0), [c, l] = bn(t ? "mounted" : "unmounted", {
|
|
1722
1722
|
mounted: {
|
|
1723
1723
|
UNMOUNT: "unmounted",
|
|
1724
1724
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1730,25 +1730,25 @@ function xn(t) {
|
|
|
1730
1730
|
unmounted: { MOUNT: "mounted" }
|
|
1731
1731
|
});
|
|
1732
1732
|
return e.useEffect(() => {
|
|
1733
|
-
c === "mounted" ? (o.current = s.current ??
|
|
1734
|
-
}, [c]),
|
|
1733
|
+
c === "mounted" ? (o.current = s.current ?? Tn(i.current), s.current = void 0) : o.current = "none";
|
|
1734
|
+
}, [c]), vn(() => {
|
|
1735
1735
|
let e = i.current, n = a.current;
|
|
1736
1736
|
if (n !== t) {
|
|
1737
|
-
let r = o.current, i =
|
|
1737
|
+
let r = o.current, i = Tn(e);
|
|
1738
1738
|
t ? (s.current = i, l("MOUNT")) : i === "none" || e?.display === "none" ? l("UNMOUNT") : l(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = t;
|
|
1739
1739
|
}
|
|
1740
|
-
}, [t, l]),
|
|
1740
|
+
}, [t, l]), vn(() => {
|
|
1741
1741
|
if (n) {
|
|
1742
|
-
let e, t = n.ownerDocument.defaultView ?? window, r = /* @__PURE__ */
|
|
1743
|
-
let o =
|
|
1742
|
+
let e, t = n.ownerDocument.defaultView ?? window, r = /* @__PURE__ */ K((r) => {
|
|
1743
|
+
let o = Tn(i.current).includes(CSS.escape(r.animationName));
|
|
1744
1744
|
if (r.target === n && o && (l("ANIMATION_END"), !a.current)) {
|
|
1745
1745
|
let r = n.style.animationFillMode;
|
|
1746
1746
|
n.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
1747
1747
|
n.style.animationFillMode === "forwards" && (n.style.animationFillMode = r);
|
|
1748
1748
|
});
|
|
1749
1749
|
}
|
|
1750
|
-
}, "handleAnimationEnd"), s = /* @__PURE__ */
|
|
1751
|
-
e.target === n && (o.current =
|
|
1750
|
+
}, "handleAnimationEnd"), s = /* @__PURE__ */ K((e) => {
|
|
1751
|
+
e.target === n && (o.current = Tn(i.current));
|
|
1752
1752
|
}, "handleAnimationStart");
|
|
1753
1753
|
return n.addEventListener("animationstart", s), n.addEventListener("animationcancel", r), n.addEventListener("animationend", r), () => {
|
|
1754
1754
|
t.clearTimeout(e), n.removeEventListener("animationstart", s), n.removeEventListener("animationcancel", r), n.removeEventListener("animationend", r);
|
|
@@ -1760,51 +1760,51 @@ function xn(t) {
|
|
|
1760
1760
|
ref: e.useCallback((e) => {
|
|
1761
1761
|
if (e) {
|
|
1762
1762
|
let t = getComputedStyle(e);
|
|
1763
|
-
i.current = t, s.current =
|
|
1763
|
+
i.current = t, s.current = Tn(t);
|
|
1764
1764
|
} else i.current = null;
|
|
1765
1765
|
r(e);
|
|
1766
1766
|
}, [])
|
|
1767
1767
|
};
|
|
1768
1768
|
}
|
|
1769
|
-
|
|
1770
|
-
function
|
|
1769
|
+
K(Sn, "usePresence");
|
|
1770
|
+
function Cn(e, t) {
|
|
1771
1771
|
if (typeof e == "function") return e(t);
|
|
1772
1772
|
e != null && (e.current = t);
|
|
1773
1773
|
}
|
|
1774
|
-
|
|
1775
|
-
function
|
|
1774
|
+
K(Cn, "setRef");
|
|
1775
|
+
function wn(...t) {
|
|
1776
1776
|
let n = e.useRef(t);
|
|
1777
1777
|
return n.current = t, e.useCallback((e) => {
|
|
1778
1778
|
let t = n.current, r = !1, i = t.map((t) => {
|
|
1779
|
-
let n =
|
|
1779
|
+
let n = Cn(t, e);
|
|
1780
1780
|
return !r && typeof n == "function" && (r = !0), n;
|
|
1781
1781
|
});
|
|
1782
1782
|
if (r) return () => {
|
|
1783
1783
|
for (let e = 0; e < i.length; e++) {
|
|
1784
1784
|
let n = i[e];
|
|
1785
|
-
typeof n == "function" ? n() :
|
|
1785
|
+
typeof n == "function" ? n() : Cn(t[e], null);
|
|
1786
1786
|
}
|
|
1787
1787
|
};
|
|
1788
1788
|
}, []);
|
|
1789
1789
|
}
|
|
1790
|
-
|
|
1791
|
-
function
|
|
1790
|
+
K(wn, "useStableComposedRefs");
|
|
1791
|
+
function Tn(e) {
|
|
1792
1792
|
return e?.animationName || "none";
|
|
1793
1793
|
}
|
|
1794
|
-
|
|
1795
|
-
function
|
|
1794
|
+
K(Tn, "getAnimationName");
|
|
1795
|
+
function En(e) {
|
|
1796
1796
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1797
1797
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1798
1798
|
}
|
|
1799
|
-
|
|
1799
|
+
K(En, "getElementRef");
|
|
1800
1800
|
//#endregion
|
|
1801
1801
|
//#region src/components/Portal/Portal.tsx
|
|
1802
|
-
function
|
|
1802
|
+
function Dn({ children: e, container: t }) {
|
|
1803
1803
|
let { portalContainer: n } = N(), r = t ?? n;
|
|
1804
1804
|
return r ? x(e, r) : null;
|
|
1805
1805
|
}
|
|
1806
|
-
|
|
1807
|
-
var
|
|
1806
|
+
Dn.displayName = "Portal";
|
|
1807
|
+
var On = {
|
|
1808
1808
|
overlay: "_overlay_1cf3m_1",
|
|
1809
1809
|
content: "_content_1cf3m_11",
|
|
1810
1810
|
"dialog-overlay-in": "_dialog-overlay-in_1cf3m_1",
|
|
@@ -1819,14 +1819,14 @@ var Dn = {
|
|
|
1819
1819
|
};
|
|
1820
1820
|
//#endregion
|
|
1821
1821
|
//#region src/components/Dialog/Dialog.tsx
|
|
1822
|
-
function
|
|
1822
|
+
function kn(e, t) {
|
|
1823
1823
|
let n = e.some((e) => e.role === "cancel"), r = e.some((e) => e.role === "destructive");
|
|
1824
1824
|
return n || !r ? e.slice(0, 3) : [...e.slice(0, 2), {
|
|
1825
1825
|
label: t,
|
|
1826
1826
|
role: "cancel"
|
|
1827
1827
|
}];
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function An(e, t, n) {
|
|
1830
1830
|
if (!T("6.2")) return null;
|
|
1831
1831
|
let r = typeof e == "string" ? e : null, i = typeof t == "string" ? t : null, a = i ?? r;
|
|
1832
1832
|
if (a == null || a.length < 1 || a.length > 256 || r != null && (i == null || r.length > 64) && !(i == null && r.length <= 256)) return null;
|
|
@@ -1852,8 +1852,8 @@ function kn(e, t, n) {
|
|
|
1852
1852
|
buttons: o.slice(0, 3)
|
|
1853
1853
|
};
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1856
|
-
let s = l(), u = l(), d =
|
|
1855
|
+
function jn({ open: e, onOpenChange: t, title: n, description: r, actions: i, cancelLabel: a = "Cancel", container: o }) {
|
|
1856
|
+
let s = l(), u = l(), d = kn(i, a), f = d.findIndex((e) => e.role === "default" || e.role == null), p = d.findIndex((e) => e.role === "cancel"), m = d.length > 2, h = An(n, r, d), g = (e) => {
|
|
1857
1857
|
e.onClick?.(), t(!1);
|
|
1858
1858
|
};
|
|
1859
1859
|
c(() => {
|
|
@@ -1869,19 +1869,19 @@ function An({ open: e, onOpenChange: t, title: n, description: r, actions: i, ca
|
|
|
1869
1869
|
};
|
|
1870
1870
|
}, [e, h]);
|
|
1871
1871
|
let y = e ? "open" : "closed";
|
|
1872
|
-
return h == null ? /* @__PURE__ */ _(
|
|
1872
|
+
return h == null ? /* @__PURE__ */ _(Dn, {
|
|
1873
1873
|
container: o,
|
|
1874
|
-
children: /* @__PURE__ */ _(
|
|
1874
|
+
children: /* @__PURE__ */ _(xn, {
|
|
1875
1875
|
present: e,
|
|
1876
1876
|
children: /* @__PURE__ */ _("div", {
|
|
1877
1877
|
"data-slot": "dialog-overlay",
|
|
1878
1878
|
"data-state": y,
|
|
1879
|
-
className:
|
|
1880
|
-
children: /* @__PURE__ */ _(
|
|
1879
|
+
className: On.overlay,
|
|
1880
|
+
children: /* @__PURE__ */ _(sn, {
|
|
1881
1881
|
asChild: !0,
|
|
1882
1882
|
trapped: !0,
|
|
1883
1883
|
loop: !0,
|
|
1884
|
-
children: /* @__PURE__ */ _(
|
|
1884
|
+
children: /* @__PURE__ */ _(Yt, {
|
|
1885
1885
|
asChild: !0,
|
|
1886
1886
|
onEscapeKeyDown: () => {
|
|
1887
1887
|
p >= 0 ? g(d[p]) : t(!1);
|
|
@@ -1893,33 +1893,33 @@ function An({ open: e, onOpenChange: t, title: n, description: r, actions: i, ca
|
|
|
1893
1893
|
"aria-describedby": r == null ? void 0 : u,
|
|
1894
1894
|
"data-slot": "dialog-content",
|
|
1895
1895
|
"data-state": y,
|
|
1896
|
-
className:
|
|
1896
|
+
className: On.content,
|
|
1897
1897
|
onKeyDown: (e) => {
|
|
1898
1898
|
e.key === "Enter" && f >= 0 && (e.preventDefault(), g(d[f]));
|
|
1899
1899
|
},
|
|
1900
1900
|
children: [/* @__PURE__ */ v("div", {
|
|
1901
|
-
className:
|
|
1901
|
+
className: On.body,
|
|
1902
1902
|
children: [/* @__PURE__ */ _("h2", {
|
|
1903
1903
|
id: s,
|
|
1904
1904
|
"data-slot": "dialog-title",
|
|
1905
|
-
className:
|
|
1905
|
+
className: On.title,
|
|
1906
1906
|
children: n
|
|
1907
1907
|
}), r == null ? null : /* @__PURE__ */ _("p", {
|
|
1908
1908
|
id: u,
|
|
1909
1909
|
"data-slot": "dialog-description",
|
|
1910
|
-
className:
|
|
1910
|
+
className: On.description,
|
|
1911
1911
|
children: r
|
|
1912
1912
|
})]
|
|
1913
1913
|
}), /* @__PURE__ */ _("div", {
|
|
1914
1914
|
"data-slot": "dialog-actions",
|
|
1915
1915
|
"data-layout": m ? "stacked" : "row",
|
|
1916
|
-
className:
|
|
1916
|
+
className: On.actions,
|
|
1917
1917
|
children: d.map((e, t) => /* @__PURE__ */ _("button", {
|
|
1918
1918
|
type: "button",
|
|
1919
1919
|
"data-slot": "dialog-action",
|
|
1920
1920
|
"data-role": e.role ?? "default",
|
|
1921
1921
|
"data-default": t === f || void 0,
|
|
1922
|
-
className:
|
|
1922
|
+
className: On.action,
|
|
1923
1923
|
onClick: () => g(e),
|
|
1924
1924
|
children: e.label
|
|
1925
1925
|
}, t))
|
|
@@ -1931,28 +1931,28 @@ function An({ open: e, onOpenChange: t, title: n, description: r, actions: i, ca
|
|
|
1931
1931
|
})
|
|
1932
1932
|
}) : null;
|
|
1933
1933
|
}
|
|
1934
|
-
|
|
1935
|
-
var
|
|
1934
|
+
jn.displayName = "Dialog";
|
|
1935
|
+
var Mn = { divider: "_divider_1yu22_1" };
|
|
1936
1936
|
//#endregion
|
|
1937
1937
|
//#region src/components/Divider/Divider.tsx
|
|
1938
|
-
function
|
|
1938
|
+
function Nn({ ref: e, className: t, ...n }) {
|
|
1939
1939
|
return /* @__PURE__ */ _("hr", {
|
|
1940
1940
|
ref: e,
|
|
1941
1941
|
"data-slot": "divider",
|
|
1942
|
-
className: S(
|
|
1942
|
+
className: S(Mn.divider, t),
|
|
1943
1943
|
...n
|
|
1944
1944
|
});
|
|
1945
1945
|
}
|
|
1946
|
-
|
|
1946
|
+
Nn.displayName = "Divider";
|
|
1947
1947
|
//#endregion
|
|
1948
1948
|
//#region src/components/DropdownMenu/context.ts
|
|
1949
|
-
var Nn = i(null);
|
|
1950
|
-
Nn.displayName = "DropdownMenuContext";
|
|
1951
1949
|
var Pn = i(null);
|
|
1952
|
-
Pn.displayName = "
|
|
1950
|
+
Pn.displayName = "DropdownMenuContext";
|
|
1951
|
+
var Fn = i(null);
|
|
1952
|
+
Fn.displayName = "DropdownMenuRadioContext";
|
|
1953
1953
|
//#endregion
|
|
1954
1954
|
//#region src/components/DropdownMenu/CheckIcon.tsx
|
|
1955
|
-
function
|
|
1955
|
+
function In() {
|
|
1956
1956
|
return /* @__PURE__ */ _("svg", {
|
|
1957
1957
|
width: "16",
|
|
1958
1958
|
height: "16",
|
|
@@ -1968,7 +1968,7 @@ function Fn() {
|
|
|
1968
1968
|
})
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
|
-
var
|
|
1971
|
+
var q = {
|
|
1972
1972
|
content: "_content_2fq28_1",
|
|
1973
1973
|
"dropdown-menu-in": "_dropdown-menu-in_2fq28_1",
|
|
1974
1974
|
"dropdown-menu-out": "_dropdown-menu-out_2fq28_1",
|
|
@@ -1982,7 +1982,7 @@ var J = {
|
|
|
1982
1982
|
};
|
|
1983
1983
|
//#endregion
|
|
1984
1984
|
//#region src/components/DropdownMenu/DropdownMenuCheckboxItem.tsx
|
|
1985
|
-
function
|
|
1985
|
+
function Ln({ ref: e, checked: t = !1, onCheckedChange: n, disabled: r, className: i, children: a, onClick: o, ...s }) {
|
|
1986
1986
|
return /* @__PURE__ */ v("button", {
|
|
1987
1987
|
ref: e,
|
|
1988
1988
|
type: "button",
|
|
@@ -1991,34 +1991,34 @@ function In({ ref: e, checked: t = !1, onCheckedChange: n, disabled: r, classNam
|
|
|
1991
1991
|
tabIndex: -1,
|
|
1992
1992
|
disabled: r,
|
|
1993
1993
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1994
|
-
className: S(
|
|
1994
|
+
className: S(q.item, q.itemSelectable, i),
|
|
1995
1995
|
onClick: (e) => {
|
|
1996
1996
|
o?.(e), n?.(!t);
|
|
1997
1997
|
},
|
|
1998
1998
|
...s,
|
|
1999
1999
|
children: [/* @__PURE__ */ _("span", {
|
|
2000
2000
|
"data-slot": "dropdown-menu-item-indicator",
|
|
2001
|
-
className:
|
|
2001
|
+
className: q.itemIndicator,
|
|
2002
2002
|
"aria-hidden": !0,
|
|
2003
|
-
children: t ? /* @__PURE__ */ _(
|
|
2003
|
+
children: t ? /* @__PURE__ */ _(In, {}) : null
|
|
2004
2004
|
}), /* @__PURE__ */ _("span", {
|
|
2005
|
-
className:
|
|
2005
|
+
className: q.itemLabel,
|
|
2006
2006
|
children: a
|
|
2007
2007
|
})]
|
|
2008
2008
|
});
|
|
2009
2009
|
}
|
|
2010
|
-
|
|
2010
|
+
Ln.displayName = "DropdownMenuCheckboxItem";
|
|
2011
2011
|
//#endregion
|
|
2012
2012
|
//#region src/shared/lib/floatingPosition.ts
|
|
2013
|
-
var
|
|
2014
|
-
function
|
|
2013
|
+
var Rn = 8, zn = (e, t, n) => Math.max(t, Math.min(n, e));
|
|
2014
|
+
function Bn(e) {
|
|
2015
2015
|
let [t, n] = e.split("-");
|
|
2016
2016
|
return {
|
|
2017
2017
|
side: t,
|
|
2018
2018
|
align: n ?? "center"
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function Vn(e) {
|
|
2022
2022
|
let t = e?.parentElement ?? null;
|
|
2023
2023
|
for (; t != null && t !== document.documentElement;) {
|
|
2024
2024
|
let e = getComputedStyle(t);
|
|
@@ -2038,12 +2038,12 @@ function Bn(e) {
|
|
|
2038
2038
|
scale: 1
|
|
2039
2039
|
};
|
|
2040
2040
|
}
|
|
2041
|
-
function
|
|
2042
|
-
let a = window.innerWidth, o = window.innerHeight, { side: s, align: c } =
|
|
2043
|
-
l === "top" && e.top - t.height - r <
|
|
2041
|
+
function Hn(e, t, n, r, i) {
|
|
2042
|
+
let a = window.innerWidth, o = window.innerHeight, { side: s, align: c } = Bn(n), l = s;
|
|
2043
|
+
l === "top" && e.top - t.height - r < Rn ? l = "bottom" : l === "bottom" && e.bottom + t.height + r > o - Rn ? l = "top" : l === "left" && e.left - t.width - r < Rn ? l = "right" : l === "right" && e.right + t.width + r > a - Rn && (l = "left");
|
|
2044
2044
|
let u = 0, d = 0;
|
|
2045
|
-
if (l === "top" || l === "bottom" ? (d = c === "start" ? e.left : c === "end" ? e.right - t.width : e.left + e.width / 2 - t.width / 2, u = l === "top" ? e.top - t.height - r : e.bottom + r) : (u = c === "start" ? e.top : c === "end" ? e.bottom - t.height : e.top + e.height / 2 - t.height / 2, d = l === "left" ? e.left - t.width - r : e.right + r), d =
|
|
2046
|
-
let e =
|
|
2045
|
+
if (l === "top" || l === "bottom" ? (d = c === "start" ? e.left : c === "end" ? e.right - t.width : e.left + e.width / 2 - t.width / 2, u = l === "top" ? e.top - t.height - r : e.bottom + r) : (u = c === "start" ? e.top : c === "end" ? e.bottom - t.height : e.top + e.height / 2 - t.height / 2, d = l === "left" ? e.left - t.width - r : e.right + r), d = zn(d, Rn, a - t.width - Rn), u = zn(u, Rn, o - t.height - Rn), i != null) {
|
|
2046
|
+
let e = Vn(i);
|
|
2047
2047
|
d = (d - e.x) / e.scale, u = (u - e.y) / e.scale;
|
|
2048
2048
|
}
|
|
2049
2049
|
return {
|
|
@@ -2054,11 +2054,11 @@ function Vn(e, t, n, r, i) {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
//#endregion
|
|
2056
2056
|
//#region src/components/DropdownMenu/DropdownMenuContent.tsx
|
|
2057
|
-
var
|
|
2058
|
-
function
|
|
2059
|
-
let m = s(
|
|
2057
|
+
var Un = "[role=\"menuitem\"],[role=\"menuitemcheckbox\"],[role=\"menuitemradio\"]";
|
|
2058
|
+
function Wn({ ref: e, placement: t = "bottom-start", gap: n = 6, container: r, className: i, children: a, onKeyDown: l, ...d }) {
|
|
2059
|
+
let m = s(Pn), h = f(null), [g, v] = p(null), [y, b] = p(null), x = m?.open ?? !1, C = m?.setOpen, w = m?.triggerRef, T = o(() => {
|
|
2060
2060
|
let e = w?.current, r = h.current;
|
|
2061
|
-
!e || !r || b(
|
|
2061
|
+
!e || !r || b(Hn(e.getBoundingClientRect(), r.getBoundingClientRect(), t, n, r));
|
|
2062
2062
|
}, [
|
|
2063
2063
|
t,
|
|
2064
2064
|
n,
|
|
@@ -2076,18 +2076,18 @@ function Un({ ref: e, placement: t = "bottom-start", gap: n = 6, container: r, c
|
|
|
2076
2076
|
return window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
|
|
2077
2077
|
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
2078
2078
|
};
|
|
2079
|
-
}, [x, T]), m == null ? null : /* @__PURE__ */ _(
|
|
2079
|
+
}, [x, T]), m == null ? null : /* @__PURE__ */ _(Dn, {
|
|
2080
2080
|
container: r,
|
|
2081
|
-
children: /* @__PURE__ */ _(
|
|
2081
|
+
children: /* @__PURE__ */ _(xn, {
|
|
2082
2082
|
present: x,
|
|
2083
|
-
children: /* @__PURE__ */ _(
|
|
2083
|
+
children: /* @__PURE__ */ _(sn, {
|
|
2084
2084
|
asChild: !0,
|
|
2085
2085
|
trapped: !0,
|
|
2086
2086
|
loop: !0,
|
|
2087
2087
|
onUnmountAutoFocus: (e) => {
|
|
2088
2088
|
e.preventDefault(), w?.current?.focus();
|
|
2089
2089
|
},
|
|
2090
|
-
children: /* @__PURE__ */ _(
|
|
2090
|
+
children: /* @__PURE__ */ _(Yt, {
|
|
2091
2091
|
asChild: !0,
|
|
2092
2092
|
deferPointerDownOutside: !0,
|
|
2093
2093
|
onEscapeKeyDown: () => C?.(!1),
|
|
@@ -2102,7 +2102,7 @@ function Un({ ref: e, placement: t = "bottom-start", gap: n = 6, container: r, c
|
|
|
2102
2102
|
"data-slot": "dropdown-menu-content",
|
|
2103
2103
|
"data-side": y?.side,
|
|
2104
2104
|
"data-state": y ? x ? "open" : "closed" : void 0,
|
|
2105
|
-
className: S(
|
|
2105
|
+
className: S(q.content, i),
|
|
2106
2106
|
style: y ? {
|
|
2107
2107
|
top: y.top,
|
|
2108
2108
|
left: y.left
|
|
@@ -2114,7 +2114,7 @@ function Un({ ref: e, placement: t = "bottom-start", gap: n = 6, container: r, c
|
|
|
2114
2114
|
},
|
|
2115
2115
|
onKeyDown: (e) => {
|
|
2116
2116
|
if (l?.(e), !h.current) return;
|
|
2117
|
-
let t = [...h.current.querySelectorAll(
|
|
2117
|
+
let t = [...h.current.querySelectorAll(Un)].filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true");
|
|
2118
2118
|
if (t.length === 0) return;
|
|
2119
2119
|
let n = t.indexOf(document.activeElement), r = (n) => {
|
|
2120
2120
|
e.preventDefault(), t[(n + t.length) % t.length]?.focus();
|
|
@@ -2129,11 +2129,11 @@ function Un({ ref: e, placement: t = "bottom-start", gap: n = 6, container: r, c
|
|
|
2129
2129
|
})
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
|
-
|
|
2132
|
+
Wn.displayName = "DropdownMenuContent";
|
|
2133
2133
|
//#endregion
|
|
2134
2134
|
//#region src/components/DropdownMenu/DropdownMenuItem.tsx
|
|
2135
|
-
function
|
|
2136
|
-
let u = s(
|
|
2135
|
+
function Gn({ ref: e, icon: t, destructive: n = !1, disabled: r, className: i, children: a, onSelect: o, onClick: c, ...l }) {
|
|
2136
|
+
let u = s(Pn);
|
|
2137
2137
|
return /* @__PURE__ */ v("button", {
|
|
2138
2138
|
ref: e,
|
|
2139
2139
|
type: "button",
|
|
@@ -2142,7 +2142,7 @@ function Wn({ ref: e, icon: t, destructive: n = !1, disabled: r, className: i, c
|
|
|
2142
2142
|
disabled: r,
|
|
2143
2143
|
"data-slot": "dropdown-menu-item",
|
|
2144
2144
|
"data-destructive": n || void 0,
|
|
2145
|
-
className: S(
|
|
2145
|
+
className: S(q.item, i),
|
|
2146
2146
|
onClick: (e) => {
|
|
2147
2147
|
c?.(e);
|
|
2148
2148
|
let t = !1;
|
|
@@ -2151,45 +2151,45 @@ function Wn({ ref: e, icon: t, destructive: n = !1, disabled: r, className: i, c
|
|
|
2151
2151
|
...l,
|
|
2152
2152
|
children: [t == null ? null : /* @__PURE__ */ _("span", {
|
|
2153
2153
|
"data-slot": "dropdown-menu-item-icon",
|
|
2154
|
-
className:
|
|
2154
|
+
className: q.itemIcon,
|
|
2155
2155
|
children: t
|
|
2156
2156
|
}), /* @__PURE__ */ _("span", {
|
|
2157
|
-
className:
|
|
2157
|
+
className: q.itemLabel,
|
|
2158
2158
|
children: a
|
|
2159
2159
|
})]
|
|
2160
2160
|
});
|
|
2161
2161
|
}
|
|
2162
|
-
|
|
2162
|
+
Gn.displayName = "DropdownMenuItem";
|
|
2163
2163
|
//#endregion
|
|
2164
2164
|
//#region src/components/DropdownMenu/DropdownMenuLabel.tsx
|
|
2165
|
-
function
|
|
2165
|
+
function Kn({ ref: e, className: t, ...n }) {
|
|
2166
2166
|
return /* @__PURE__ */ _("div", {
|
|
2167
2167
|
ref: e,
|
|
2168
2168
|
"data-slot": "dropdown-menu-label",
|
|
2169
|
-
className: S(
|
|
2169
|
+
className: S(q.label, t),
|
|
2170
2170
|
...n
|
|
2171
2171
|
});
|
|
2172
2172
|
}
|
|
2173
|
-
|
|
2173
|
+
Kn.displayName = "DropdownMenuLabel";
|
|
2174
2174
|
//#endregion
|
|
2175
2175
|
//#region src/components/DropdownMenu/DropdownMenuRadioGroup.tsx
|
|
2176
|
-
function
|
|
2176
|
+
function qn({ value: e, defaultValue: t, onValueChange: n, children: r }) {
|
|
2177
2177
|
let [i, a] = p(t), s = e ?? i, c = o((t) => {
|
|
2178
2178
|
e ?? a(t), n?.(t);
|
|
2179
2179
|
}, [e, n]), l = d(() => ({
|
|
2180
2180
|
value: s,
|
|
2181
2181
|
select: c
|
|
2182
2182
|
}), [s, c]);
|
|
2183
|
-
return /* @__PURE__ */ _(
|
|
2183
|
+
return /* @__PURE__ */ _(Fn.Provider, {
|
|
2184
2184
|
value: l,
|
|
2185
2185
|
children: r
|
|
2186
2186
|
});
|
|
2187
2187
|
}
|
|
2188
|
-
|
|
2188
|
+
qn.displayName = "DropdownMenuRadioGroup";
|
|
2189
2189
|
//#endregion
|
|
2190
2190
|
//#region src/components/DropdownMenu/DropdownMenuRadioItem.tsx
|
|
2191
|
-
function
|
|
2192
|
-
let c = s(
|
|
2191
|
+
function Jn({ ref: e, value: t, disabled: n, className: r, children: i, onClick: a, ...o }) {
|
|
2192
|
+
let c = s(Pn), l = s(Fn), u = l?.value === t;
|
|
2193
2193
|
return /* @__PURE__ */ v("button", {
|
|
2194
2194
|
ref: e,
|
|
2195
2195
|
type: "button",
|
|
@@ -2198,38 +2198,38 @@ function qn({ ref: e, value: t, disabled: n, className: r, children: i, onClick:
|
|
|
2198
2198
|
tabIndex: -1,
|
|
2199
2199
|
disabled: n,
|
|
2200
2200
|
"data-slot": "dropdown-menu-radio-item",
|
|
2201
|
-
className: S(
|
|
2201
|
+
className: S(q.item, q.itemSelectable, r),
|
|
2202
2202
|
onClick: (e) => {
|
|
2203
2203
|
a?.(e), l?.select(t), c?.setOpen(!1);
|
|
2204
2204
|
},
|
|
2205
2205
|
...o,
|
|
2206
2206
|
children: [/* @__PURE__ */ _("span", {
|
|
2207
2207
|
"data-slot": "dropdown-menu-item-indicator",
|
|
2208
|
-
className:
|
|
2208
|
+
className: q.itemIndicator,
|
|
2209
2209
|
"aria-hidden": !0,
|
|
2210
|
-
children: u ? /* @__PURE__ */ _(
|
|
2210
|
+
children: u ? /* @__PURE__ */ _(In, {}) : null
|
|
2211
2211
|
}), /* @__PURE__ */ _("span", {
|
|
2212
|
-
className:
|
|
2212
|
+
className: q.itemLabel,
|
|
2213
2213
|
children: i
|
|
2214
2214
|
})]
|
|
2215
2215
|
});
|
|
2216
2216
|
}
|
|
2217
|
-
|
|
2217
|
+
Jn.displayName = "DropdownMenuRadioItem";
|
|
2218
2218
|
//#endregion
|
|
2219
2219
|
//#region src/components/DropdownMenu/DropdownMenuSeparator.tsx
|
|
2220
|
-
function
|
|
2220
|
+
function Yn({ ref: e, className: t, ...n }) {
|
|
2221
2221
|
return /* @__PURE__ */ _("hr", {
|
|
2222
2222
|
ref: e,
|
|
2223
2223
|
"data-slot": "dropdown-menu-separator",
|
|
2224
|
-
className: S(
|
|
2224
|
+
className: S(q.separator, t),
|
|
2225
2225
|
...n
|
|
2226
2226
|
});
|
|
2227
2227
|
}
|
|
2228
|
-
|
|
2228
|
+
Yn.displayName = "DropdownMenuSeparator";
|
|
2229
2229
|
//#endregion
|
|
2230
2230
|
//#region src/components/DropdownMenu/DropdownMenuTrigger.tsx
|
|
2231
|
-
function
|
|
2232
|
-
let t = s(
|
|
2231
|
+
function Xn({ children: e }) {
|
|
2232
|
+
let t = s(Pn);
|
|
2233
2233
|
if (t == null || !a(e)) return e;
|
|
2234
2234
|
let { open: n, setOpen: i, triggerRef: o, contentId: c } = t, l = e, u = l.props.ref, d = l.props.onClick;
|
|
2235
2235
|
return r(l, {
|
|
@@ -2246,10 +2246,10 @@ function Yn({ children: e }) {
|
|
|
2246
2246
|
"data-state": n ? "open" : "closed"
|
|
2247
2247
|
});
|
|
2248
2248
|
}
|
|
2249
|
-
|
|
2249
|
+
Xn.displayName = "DropdownMenuTrigger";
|
|
2250
2250
|
//#endregion
|
|
2251
2251
|
//#region src/components/DropdownMenu/DropdownMenu.tsx
|
|
2252
|
-
function
|
|
2252
|
+
function J({ open: e, defaultOpen: t = !1, onOpenChange: n, children: r }) {
|
|
2253
2253
|
let [i, a] = p(t), s = e ?? i, c = f(null), u = l(), m = o((t) => {
|
|
2254
2254
|
e ?? a(t), n?.(t);
|
|
2255
2255
|
}, [e, n]), h = d(() => ({
|
|
@@ -2262,64 +2262,64 @@ function Y({ open: e, defaultOpen: t = !1, onOpenChange: n, children: r }) {
|
|
|
2262
2262
|
m,
|
|
2263
2263
|
u
|
|
2264
2264
|
]);
|
|
2265
|
-
return /* @__PURE__ */ _(
|
|
2265
|
+
return /* @__PURE__ */ _(Pn.Provider, {
|
|
2266
2266
|
value: h,
|
|
2267
2267
|
children: r
|
|
2268
2268
|
});
|
|
2269
2269
|
}
|
|
2270
|
-
|
|
2271
|
-
var
|
|
2270
|
+
J.displayName = "DropdownMenu", J.Trigger = Xn, J.Content = Wn, J.Item = Gn, J.CheckboxItem = Ln, J.RadioGroup = qn, J.RadioItem = Jn, J.Separator = Yn, J.Label = Kn;
|
|
2271
|
+
var Zn = {
|
|
2272
2272
|
fixedLayout: "_fixedLayout_8t9mq_1",
|
|
2273
2273
|
top: "_top_8t9mq_9",
|
|
2274
2274
|
bottom: "_bottom_8t9mq_14"
|
|
2275
2275
|
};
|
|
2276
2276
|
//#endregion
|
|
2277
2277
|
//#region src/components/FixedLayout/FixedLayout.tsx
|
|
2278
|
-
function
|
|
2278
|
+
function Qn({ ref: e, vertical: t = "bottom", className: n, ...r }) {
|
|
2279
2279
|
return /* @__PURE__ */ _("div", {
|
|
2280
2280
|
ref: e,
|
|
2281
2281
|
"data-slot": "fixed-layout",
|
|
2282
|
-
className: S(
|
|
2282
|
+
className: S(Zn.fixedLayout, Zn[t], n),
|
|
2283
2283
|
...r
|
|
2284
2284
|
});
|
|
2285
2285
|
}
|
|
2286
|
-
|
|
2287
|
-
var
|
|
2286
|
+
Qn.displayName = "FixedLayout";
|
|
2287
|
+
var $n = { footnote: "_footnote_qr98i_1" };
|
|
2288
2288
|
//#endregion
|
|
2289
2289
|
//#region src/components/Footnote/Footnote.tsx
|
|
2290
|
-
function
|
|
2290
|
+
function er({ ref: e, className: t, Component: n = "span", ...r }) {
|
|
2291
2291
|
return /* @__PURE__ */ _(R, {
|
|
2292
2292
|
"data-slot": "footnote",
|
|
2293
2293
|
ref: e,
|
|
2294
2294
|
Component: n,
|
|
2295
|
-
className: S(
|
|
2295
|
+
className: S($n.footnote, t),
|
|
2296
2296
|
...r
|
|
2297
2297
|
});
|
|
2298
2298
|
}
|
|
2299
|
-
|
|
2300
|
-
var
|
|
2299
|
+
er.displayName = "Footnote";
|
|
2300
|
+
var tr = { headline: "_headline_np9pa_1" };
|
|
2301
2301
|
//#endregion
|
|
2302
2302
|
//#region src/components/Headline/Headline.tsx
|
|
2303
|
-
function
|
|
2303
|
+
function nr({ ref: e, weight: t = "2", className: n, Component: r = "h5", ...i }) {
|
|
2304
2304
|
return /* @__PURE__ */ _(R, {
|
|
2305
2305
|
"data-slot": "headline",
|
|
2306
2306
|
ref: e,
|
|
2307
2307
|
weight: t,
|
|
2308
2308
|
Component: r,
|
|
2309
|
-
className: S(
|
|
2309
|
+
className: S(tr.headline, n),
|
|
2310
2310
|
...i
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
2313
|
-
|
|
2314
|
-
var
|
|
2313
|
+
nr.displayName = "Headline";
|
|
2314
|
+
var rr = {
|
|
2315
2315
|
root: "_root_jrw4m_1",
|
|
2316
2316
|
edge: "_edge_jrw4m_9",
|
|
2317
2317
|
"edge--start": "_edge--start_jrw4m_25",
|
|
2318
2318
|
"edge--end": "_edge--end_jrw4m_30",
|
|
2319
2319
|
scroller: "_scroller_jrw4m_40",
|
|
2320
2320
|
snap: "_snap_jrw4m_79"
|
|
2321
|
-
},
|
|
2322
|
-
function
|
|
2321
|
+
}, ir = 4;
|
|
2322
|
+
function ar({ ref: e, snap: t = !1, fade: n = !0, scrollLabel: r = "Scrollable content", className: i, children: a, ...s }) {
|
|
2323
2323
|
let l = f(null), [u, d] = p({
|
|
2324
2324
|
start: !1,
|
|
2325
2325
|
end: !1
|
|
@@ -2360,7 +2360,7 @@ function ir({ ref: e, snap: t = !1, fade: n = !0, scrollLabel: r = "Scrollable c
|
|
|
2360
2360
|
if (!t.down || !n) return;
|
|
2361
2361
|
let r = e.clientX - t.startX;
|
|
2362
2362
|
if (!t.moved) {
|
|
2363
|
-
if (Math.abs(r) <
|
|
2363
|
+
if (Math.abs(r) < ir) return;
|
|
2364
2364
|
t.moved = !0, n.setPointerCapture(e.pointerId), n.dataset.grabbing = "true", n.style.scrollBehavior = "auto";
|
|
2365
2365
|
}
|
|
2366
2366
|
e.preventDefault(), n.scrollLeft = t.startScroll - r;
|
|
@@ -2371,22 +2371,22 @@ function ir({ ref: e, snap: t = !1, fade: n = !0, scrollLabel: r = "Scrollable c
|
|
|
2371
2371
|
return /* @__PURE__ */ v("div", {
|
|
2372
2372
|
ref: e,
|
|
2373
2373
|
"data-slot": "horizontal-scroll",
|
|
2374
|
-
className: S(
|
|
2374
|
+
className: S(rr.root, i),
|
|
2375
2375
|
"data-start": n ? String(u.start) : void 0,
|
|
2376
2376
|
"data-end": n ? String(u.end) : void 0,
|
|
2377
2377
|
...s,
|
|
2378
2378
|
children: [n ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
|
|
2379
2379
|
"data-slot": "horizontal-scroll-fade-start",
|
|
2380
|
-
className: S(
|
|
2380
|
+
className: S(rr.edge, rr["edge--start"]),
|
|
2381
2381
|
"aria-hidden": !0
|
|
2382
2382
|
}), /* @__PURE__ */ _("span", {
|
|
2383
2383
|
"data-slot": "horizontal-scroll-fade-end",
|
|
2384
|
-
className: S(
|
|
2384
|
+
className: S(rr.edge, rr["edge--end"]),
|
|
2385
2385
|
"aria-hidden": !0
|
|
2386
2386
|
})] }) : null, /* @__PURE__ */ _("div", {
|
|
2387
2387
|
ref: l,
|
|
2388
2388
|
"data-slot": "horizontal-scroll-viewport",
|
|
2389
|
-
className: S(
|
|
2389
|
+
className: S(rr.scroller, t && rr.snap),
|
|
2390
2390
|
tabIndex: 0,
|
|
2391
2391
|
role: "group",
|
|
2392
2392
|
"aria-label": r,
|
|
@@ -2402,8 +2402,8 @@ function ir({ ref: e, snap: t = !1, fade: n = !0, scrollLabel: r = "Scrollable c
|
|
|
2402
2402
|
})]
|
|
2403
2403
|
});
|
|
2404
2404
|
}
|
|
2405
|
-
|
|
2406
|
-
var
|
|
2405
|
+
ar.displayName = "HorizontalScroll";
|
|
2406
|
+
var Y = {
|
|
2407
2407
|
iconButton: "_iconButton_13vbf_1",
|
|
2408
2408
|
circle: "_circle_13vbf_15",
|
|
2409
2409
|
s: "_s_13vbf_24",
|
|
@@ -2415,22 +2415,22 @@ var X = {
|
|
|
2415
2415
|
"mode-plain": "_mode-plain_13vbf_77",
|
|
2416
2416
|
"mode-gray": "_mode-gray_13vbf_81",
|
|
2417
2417
|
"mode-outline": "_mode-outline_13vbf_86"
|
|
2418
|
-
},
|
|
2418
|
+
}, or = y(Y.iconButton, {
|
|
2419
2419
|
variants: {
|
|
2420
2420
|
mode: {
|
|
2421
|
-
bezeled:
|
|
2422
|
-
plain:
|
|
2423
|
-
gray:
|
|
2424
|
-
outline:
|
|
2421
|
+
bezeled: Y["mode-bezeled"],
|
|
2422
|
+
plain: Y["mode-plain"],
|
|
2423
|
+
gray: Y["mode-gray"],
|
|
2424
|
+
outline: Y["mode-outline"]
|
|
2425
2425
|
},
|
|
2426
2426
|
size: {
|
|
2427
|
-
s:
|
|
2428
|
-
m:
|
|
2429
|
-
l:
|
|
2427
|
+
s: Y.s,
|
|
2428
|
+
m: Y.m,
|
|
2429
|
+
l: Y.l
|
|
2430
2430
|
},
|
|
2431
|
-
circle: { true:
|
|
2431
|
+
circle: { true: Y.circle },
|
|
2432
2432
|
platform: {
|
|
2433
|
-
ios:
|
|
2433
|
+
ios: Y.ios,
|
|
2434
2434
|
base: null
|
|
2435
2435
|
}
|
|
2436
2436
|
},
|
|
@@ -2441,14 +2441,14 @@ var X = {
|
|
|
2441
2441
|
});
|
|
2442
2442
|
//#endregion
|
|
2443
2443
|
//#region src/components/IconButton/IconButton.tsx
|
|
2444
|
-
function
|
|
2444
|
+
function sr({ ref: e, Component: t = "button", mode: n = "plain", size: r = "m", circle: i = !1, type: a, className: o, children: s, ...c }) {
|
|
2445
2445
|
let { platform: l } = N();
|
|
2446
2446
|
return /* @__PURE__ */ _(Fe, {
|
|
2447
2447
|
ref: e,
|
|
2448
2448
|
Component: t,
|
|
2449
2449
|
type: t === "button" ? a ?? "button" : a,
|
|
2450
2450
|
"data-slot": "icon-button",
|
|
2451
|
-
className: S(
|
|
2451
|
+
className: S(or({
|
|
2452
2452
|
mode: n,
|
|
2453
2453
|
size: r,
|
|
2454
2454
|
circle: i,
|
|
@@ -2457,20 +2457,20 @@ function or({ ref: e, Component: t = "button", mode: n = "plain", size: r = "m",
|
|
|
2457
2457
|
...c,
|
|
2458
2458
|
children: /* @__PURE__ */ _("span", {
|
|
2459
2459
|
"data-slot": "icon-button-icon",
|
|
2460
|
-
className:
|
|
2460
|
+
className: Y.icon,
|
|
2461
2461
|
children: s
|
|
2462
2462
|
})
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
|
-
|
|
2466
|
-
var
|
|
2465
|
+
sr.displayName = "IconButton";
|
|
2466
|
+
var cr = {
|
|
2467
2467
|
frame: "_frame_1bmps_1",
|
|
2468
2468
|
bordered: "_bordered_1bmps_10",
|
|
2469
2469
|
img: "_img_1bmps_14",
|
|
2470
2470
|
placeholder: "_placeholder_1bmps_25",
|
|
2471
2471
|
fallback: "_fallback_1bmps_26",
|
|
2472
2472
|
"tgui-image-shimmer": "_tgui-image-shimmer_1bmps_1"
|
|
2473
|
-
},
|
|
2473
|
+
}, lr = /* @__PURE__ */ _("svg", {
|
|
2474
2474
|
viewBox: "0 0 24 24",
|
|
2475
2475
|
fill: "none",
|
|
2476
2476
|
"aria-hidden": !0,
|
|
@@ -2481,7 +2481,7 @@ var sr = {
|
|
|
2481
2481
|
strokeLinejoin: "round"
|
|
2482
2482
|
})
|
|
2483
2483
|
});
|
|
2484
|
-
function
|
|
2484
|
+
function ur({ ref: e, size: t, width: n, height: r, aspectRatio: i, fit: a = "cover", radius: o, bordered: s = !1, fallback: c = lr, src: l, alt: u = "", className: d, style: f, onLoad: m, onError: h, ...g }) {
|
|
2485
2485
|
let [y, b] = p(null), [x, C] = p(!1), w = l != null && l === y, T = {
|
|
2486
2486
|
...f,
|
|
2487
2487
|
width: t ?? n,
|
|
@@ -2494,13 +2494,13 @@ function lr({ ref: e, size: t, width: n, height: r, aspectRatio: i, fit: a = "co
|
|
|
2494
2494
|
"data-slot": "image",
|
|
2495
2495
|
"data-state": w ? "error" : x ? "loaded" : "loading",
|
|
2496
2496
|
"data-bordered": s || void 0,
|
|
2497
|
-
className: S(
|
|
2497
|
+
className: S(cr.frame, s && cr.bordered, d),
|
|
2498
2498
|
style: T,
|
|
2499
2499
|
children: [
|
|
2500
2500
|
l != null && !w ? /* @__PURE__ */ _("img", {
|
|
2501
2501
|
ref: e,
|
|
2502
2502
|
"data-slot": "image-img",
|
|
2503
|
-
className:
|
|
2503
|
+
className: cr.img,
|
|
2504
2504
|
src: l,
|
|
2505
2505
|
alt: u,
|
|
2506
2506
|
draggable: !1,
|
|
@@ -2514,24 +2514,24 @@ function lr({ ref: e, size: t, width: n, height: r, aspectRatio: i, fit: a = "co
|
|
|
2514
2514
|
}) : null,
|
|
2515
2515
|
!x && !w ? /* @__PURE__ */ _("div", {
|
|
2516
2516
|
"data-slot": "image-placeholder",
|
|
2517
|
-
className:
|
|
2517
|
+
className: cr.placeholder,
|
|
2518
2518
|
"aria-hidden": !0
|
|
2519
2519
|
}) : null,
|
|
2520
2520
|
w ? /* @__PURE__ */ _("div", {
|
|
2521
2521
|
"data-slot": "image-fallback",
|
|
2522
|
-
className:
|
|
2522
|
+
className: cr.fallback,
|
|
2523
2523
|
"aria-hidden": !0,
|
|
2524
2524
|
children: c
|
|
2525
2525
|
}) : null
|
|
2526
2526
|
]
|
|
2527
2527
|
});
|
|
2528
2528
|
}
|
|
2529
|
-
|
|
2529
|
+
ur.displayName = "Image";
|
|
2530
2530
|
//#endregion
|
|
2531
2531
|
//#region src/components/InlineButtons/context.ts
|
|
2532
|
-
var
|
|
2533
|
-
|
|
2534
|
-
var
|
|
2532
|
+
var dr = i({ mode: "bezeled" });
|
|
2533
|
+
dr.displayName = "InlineButtonsContext";
|
|
2534
|
+
var fr = {
|
|
2535
2535
|
group: "_group_c7jfu_1",
|
|
2536
2536
|
item: "_item_c7jfu_15",
|
|
2537
2537
|
"mode-bezeled": "_mode-bezeled_c7jfu_36",
|
|
@@ -2539,57 +2539,57 @@ var dr = {
|
|
|
2539
2539
|
"mode-gray": "_mode-gray_c7jfu_44",
|
|
2540
2540
|
icon: "_icon_c7jfu_49",
|
|
2541
2541
|
label: "_label_c7jfu_63"
|
|
2542
|
-
},
|
|
2542
|
+
}, pr = y(fr.item, {
|
|
2543
2543
|
variants: { mode: {
|
|
2544
|
-
bezeled:
|
|
2545
|
-
plain:
|
|
2546
|
-
gray:
|
|
2544
|
+
bezeled: fr["mode-bezeled"],
|
|
2545
|
+
plain: fr["mode-plain"],
|
|
2546
|
+
gray: fr["mode-gray"]
|
|
2547
2547
|
} },
|
|
2548
2548
|
defaultVariants: { mode: "bezeled" }
|
|
2549
2549
|
});
|
|
2550
2550
|
//#endregion
|
|
2551
2551
|
//#region src/components/InlineButtons/InlineButtonsItem.tsx
|
|
2552
|
-
function
|
|
2553
|
-
let { mode: a } = s(
|
|
2552
|
+
function mr({ ref: e, icon: t, children: n, className: r, ...i }) {
|
|
2553
|
+
let { mode: a } = s(dr);
|
|
2554
2554
|
return /* @__PURE__ */ v(Fe, {
|
|
2555
2555
|
ref: e,
|
|
2556
2556
|
Component: "button",
|
|
2557
2557
|
type: "button",
|
|
2558
2558
|
interactiveAnimation: "opacity",
|
|
2559
2559
|
"data-slot": "inline-buttons-item",
|
|
2560
|
-
className: S(
|
|
2560
|
+
className: S(pr({ mode: a }), r),
|
|
2561
2561
|
...i,
|
|
2562
2562
|
children: [/* @__PURE__ */ _("span", {
|
|
2563
2563
|
"data-slot": "inline-buttons-item-icon",
|
|
2564
|
-
className:
|
|
2564
|
+
className: fr.icon,
|
|
2565
2565
|
children: t
|
|
2566
|
-
}), /* @__PURE__ */ _(
|
|
2566
|
+
}), /* @__PURE__ */ _(Ge, {
|
|
2567
2567
|
"data-slot": "inline-buttons-item-label",
|
|
2568
|
-
className:
|
|
2568
|
+
className: fr.label,
|
|
2569
2569
|
level: "2",
|
|
2570
2570
|
weight: "2",
|
|
2571
2571
|
children: n
|
|
2572
2572
|
})]
|
|
2573
2573
|
});
|
|
2574
2574
|
}
|
|
2575
|
-
|
|
2575
|
+
mr.displayName = "InlineButtonsItem";
|
|
2576
2576
|
//#endregion
|
|
2577
2577
|
//#region src/components/InlineButtons/InlineButtons.tsx
|
|
2578
|
-
function
|
|
2579
|
-
return /* @__PURE__ */ _(
|
|
2578
|
+
function hr({ ref: e, mode: t = "bezeled", className: n, children: r, ...i }) {
|
|
2579
|
+
return /* @__PURE__ */ _(dr.Provider, {
|
|
2580
2580
|
value: { mode: t },
|
|
2581
2581
|
children: /* @__PURE__ */ _("div", {
|
|
2582
2582
|
ref: e,
|
|
2583
2583
|
role: "group",
|
|
2584
2584
|
"data-slot": "inline-buttons",
|
|
2585
|
-
className: S(
|
|
2585
|
+
className: S(fr.group, n),
|
|
2586
2586
|
...i,
|
|
2587
2587
|
children: r
|
|
2588
2588
|
})
|
|
2589
2589
|
});
|
|
2590
2590
|
}
|
|
2591
|
-
|
|
2592
|
-
var
|
|
2591
|
+
hr.displayName = "InlineButtons", hr.Item = mr;
|
|
2592
|
+
var gr = {
|
|
2593
2593
|
base: "_base_14stt_1",
|
|
2594
2594
|
body: "_body_14stt_7",
|
|
2595
2595
|
ios: "_ios_14stt_23",
|
|
@@ -2600,31 +2600,31 @@ var hr = {
|
|
|
2600
2600
|
};
|
|
2601
2601
|
//#endregion
|
|
2602
2602
|
//#region src/components/FormField/FormField.tsx
|
|
2603
|
-
function
|
|
2603
|
+
function _r({ ref: e, ios: t = !1, status: n = "default", disabled: r = !1, alignStart: i = !1, header: a, before: o, after: s, className: c, children: l }) {
|
|
2604
2604
|
return /* @__PURE__ */ _("div", {
|
|
2605
2605
|
ref: e,
|
|
2606
2606
|
"data-slot": "form-field",
|
|
2607
2607
|
"data-state": n,
|
|
2608
2608
|
"data-disabled": r || void 0,
|
|
2609
|
-
className: S(t ?
|
|
2609
|
+
className: S(t ? gr.ios : gr.base, i && gr["align-start"], c),
|
|
2610
2610
|
"aria-disabled": r || void 0,
|
|
2611
2611
|
children: /* @__PURE__ */ v("label", {
|
|
2612
|
-
className:
|
|
2612
|
+
className: gr.body,
|
|
2613
2613
|
"data-slot": "form-field-body",
|
|
2614
2614
|
children: [
|
|
2615
2615
|
o == null ? null : /* @__PURE__ */ _("span", {
|
|
2616
|
-
className:
|
|
2616
|
+
className: gr.before,
|
|
2617
2617
|
"data-slot": "form-field-before",
|
|
2618
2618
|
children: o
|
|
2619
2619
|
}),
|
|
2620
2620
|
l,
|
|
2621
2621
|
s == null ? null : /* @__PURE__ */ _("span", {
|
|
2622
|
-
className:
|
|
2622
|
+
className: gr.after,
|
|
2623
2623
|
"data-slot": "form-field-after",
|
|
2624
2624
|
children: s
|
|
2625
2625
|
}),
|
|
2626
2626
|
a == null ? null : /* @__PURE__ */ _("span", {
|
|
2627
|
-
className:
|
|
2627
|
+
className: gr.header,
|
|
2628
2628
|
"data-slot": "form-field-label",
|
|
2629
2629
|
children: a
|
|
2630
2630
|
})
|
|
@@ -2632,13 +2632,13 @@ function gr({ ref: e, ios: t = !1, status: n = "default", disabled: r = !1, alig
|
|
|
2632
2632
|
})
|
|
2633
2633
|
});
|
|
2634
2634
|
}
|
|
2635
|
-
|
|
2636
|
-
var
|
|
2635
|
+
_r.displayName = "FormField";
|
|
2636
|
+
var vr = { field: "_field_1p1s7_1" };
|
|
2637
2637
|
//#endregion
|
|
2638
2638
|
//#region src/components/Input/Input.tsx
|
|
2639
|
-
function
|
|
2639
|
+
function yr({ ref: e, type: t = "text", header: n, before: r, after: i, status: a, disabled: o, className: s, onFocus: c, onBlur: l, ...u }) {
|
|
2640
2640
|
let { platform: d } = N(), f = d === "ios", [m, h] = p(!1), g = a ?? (m ? "focused" : "default");
|
|
2641
|
-
return /* @__PURE__ */ _(
|
|
2641
|
+
return /* @__PURE__ */ _(_r, {
|
|
2642
2642
|
ios: f,
|
|
2643
2643
|
status: g,
|
|
2644
2644
|
disabled: o,
|
|
@@ -2646,11 +2646,11 @@ function vr({ ref: e, type: t = "text", header: n, before: r, after: i, status:
|
|
|
2646
2646
|
before: r,
|
|
2647
2647
|
after: i,
|
|
2648
2648
|
className: s,
|
|
2649
|
-
children: /* @__PURE__ */ _(f ?
|
|
2649
|
+
children: /* @__PURE__ */ _(f ? Le : z, {
|
|
2650
2650
|
ref: e,
|
|
2651
2651
|
Component: "input",
|
|
2652
2652
|
"data-slot": "input",
|
|
2653
|
-
className:
|
|
2653
|
+
className: vr.field,
|
|
2654
2654
|
type: t,
|
|
2655
2655
|
disabled: o,
|
|
2656
2656
|
"aria-invalid": g === "error" || void 0,
|
|
@@ -2664,30 +2664,30 @@ function vr({ ref: e, type: t = "text", header: n, before: r, after: i, status:
|
|
|
2664
2664
|
})
|
|
2665
2665
|
});
|
|
2666
2666
|
}
|
|
2667
|
-
|
|
2667
|
+
yr.displayName = "Input";
|
|
2668
2668
|
//#endregion
|
|
2669
2669
|
//#region src/components/LargeTitle/LargeTitle.module.css
|
|
2670
|
-
var
|
|
2670
|
+
var br = { "large-title": "_large-title_13gsx_1" };
|
|
2671
2671
|
//#endregion
|
|
2672
2672
|
//#region src/components/LargeTitle/LargeTitle.tsx
|
|
2673
|
-
function
|
|
2673
|
+
function xr({ ref: e, weight: t = "1", className: n, Component: r = "h1", ...i }) {
|
|
2674
2674
|
return /* @__PURE__ */ _(R, {
|
|
2675
2675
|
"data-slot": "large-title",
|
|
2676
2676
|
ref: e,
|
|
2677
2677
|
weight: t,
|
|
2678
2678
|
Component: r,
|
|
2679
|
-
className: S(
|
|
2679
|
+
className: S(br["large-title"], n),
|
|
2680
2680
|
...i
|
|
2681
2681
|
});
|
|
2682
2682
|
}
|
|
2683
|
-
|
|
2684
|
-
var
|
|
2683
|
+
xr.displayName = "LargeTitle";
|
|
2684
|
+
var Sr = {
|
|
2685
2685
|
link: "_link_p3m23_1",
|
|
2686
2686
|
icon: "_icon_p3m23_18"
|
|
2687
2687
|
};
|
|
2688
2688
|
//#endregion
|
|
2689
2689
|
//#region src/components/Link/Link.tsx
|
|
2690
|
-
function
|
|
2690
|
+
function Cr({ ref: e, target: t, rel: n, className: r, children: i, ...a }) {
|
|
2691
2691
|
let o = t === "_blank";
|
|
2692
2692
|
return /* @__PURE__ */ v("a", {
|
|
2693
2693
|
ref: e,
|
|
@@ -2695,11 +2695,11 @@ function Sr({ ref: e, target: t, rel: n, className: r, children: i, ...a }) {
|
|
|
2695
2695
|
rel: o ? n ?? "noopener noreferrer" : n,
|
|
2696
2696
|
"data-slot": "link",
|
|
2697
2697
|
"data-external": o || void 0,
|
|
2698
|
-
className: S(
|
|
2698
|
+
className: S(Sr.link, r),
|
|
2699
2699
|
...a,
|
|
2700
2700
|
children: [i, o ? /* @__PURE__ */ _("svg", {
|
|
2701
2701
|
"data-slot": "link-icon",
|
|
2702
|
-
className:
|
|
2702
|
+
className: Sr.icon,
|
|
2703
2703
|
viewBox: "0 0 16 16",
|
|
2704
2704
|
fill: "none",
|
|
2705
2705
|
"aria-hidden": !0,
|
|
@@ -2713,21 +2713,21 @@ function Sr({ ref: e, target: t, rel: n, className: r, children: i, ...a }) {
|
|
|
2713
2713
|
}) : null]
|
|
2714
2714
|
});
|
|
2715
2715
|
}
|
|
2716
|
-
|
|
2717
|
-
var
|
|
2716
|
+
Cr.displayName = "Link";
|
|
2717
|
+
var wr = { list: "_list_xahom_1" };
|
|
2718
2718
|
//#endregion
|
|
2719
2719
|
//#region src/components/List/List.tsx
|
|
2720
|
-
function
|
|
2720
|
+
function Tr({ ref: e, Component: t = "div", className: n, children: r, ...i }) {
|
|
2721
2721
|
return /* @__PURE__ */ _(t, {
|
|
2722
2722
|
ref: e,
|
|
2723
2723
|
"data-slot": "list",
|
|
2724
|
-
className: S(
|
|
2724
|
+
className: S(wr.list, n),
|
|
2725
2725
|
...i,
|
|
2726
2726
|
children: r
|
|
2727
2727
|
});
|
|
2728
2728
|
}
|
|
2729
|
-
|
|
2730
|
-
var
|
|
2729
|
+
Tr.displayName = "List";
|
|
2730
|
+
var Er = {
|
|
2731
2731
|
nav: "_nav_vo134_1",
|
|
2732
2732
|
list: "_list_vo134_5",
|
|
2733
2733
|
page: "_page_vo134_14",
|
|
@@ -2735,46 +2735,46 @@ var Tr = {
|
|
|
2735
2735
|
dotList: "_dotList_vo134_53",
|
|
2736
2736
|
dot: "_dot_vo134_44",
|
|
2737
2737
|
dotGap: "_dotGap_vo134_87"
|
|
2738
|
-
},
|
|
2739
|
-
function
|
|
2738
|
+
}, Dr = "dots";
|
|
2739
|
+
function Or(e, t) {
|
|
2740
2740
|
return Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2743
|
-
if (n * 2 + 5 >= t) return
|
|
2742
|
+
function kr(e, t, n) {
|
|
2743
|
+
if (n * 2 + 5 >= t) return Or(1, t);
|
|
2744
2744
|
let r = Math.max(e - n, 1), i = Math.min(e + n, t), a = r > 2, o = i < t - 1;
|
|
2745
2745
|
return !a && o ? [
|
|
2746
|
-
...
|
|
2747
|
-
|
|
2746
|
+
...Or(1, 3 + n * 2),
|
|
2747
|
+
Dr,
|
|
2748
2748
|
t
|
|
2749
2749
|
] : a && !o ? [
|
|
2750
2750
|
1,
|
|
2751
|
-
|
|
2752
|
-
...
|
|
2751
|
+
Dr,
|
|
2752
|
+
...Or(t - (3 + n * 2) + 1, t)
|
|
2753
2753
|
] : [
|
|
2754
2754
|
1,
|
|
2755
|
-
|
|
2756
|
-
...
|
|
2757
|
-
|
|
2755
|
+
Dr,
|
|
2756
|
+
...Or(r, i),
|
|
2757
|
+
Dr,
|
|
2758
2758
|
t
|
|
2759
2759
|
];
|
|
2760
2760
|
}
|
|
2761
2761
|
//#endregion
|
|
2762
2762
|
//#region src/components/Pagination/CompactPagination.tsx
|
|
2763
|
-
function
|
|
2764
|
-
let s =
|
|
2763
|
+
function Ar({ ref: e, page: t, count: n, onChange: r, siblingCount: i = 1, className: a, ...o }) {
|
|
2764
|
+
let s = kr(t, n, i);
|
|
2765
2765
|
return /* @__PURE__ */ _("nav", {
|
|
2766
2766
|
ref: e,
|
|
2767
2767
|
"aria-label": "Pagination",
|
|
2768
|
-
className: S(
|
|
2768
|
+
className: S(Er.nav, a),
|
|
2769
2769
|
...o,
|
|
2770
2770
|
children: /* @__PURE__ */ _("ul", {
|
|
2771
|
-
className:
|
|
2771
|
+
className: Er.dotList,
|
|
2772
2772
|
children: s.map((e, n) => e === "dots" ? /* @__PURE__ */ _("li", {
|
|
2773
|
-
className:
|
|
2773
|
+
className: Er.dotGap,
|
|
2774
2774
|
"aria-hidden": !0
|
|
2775
2775
|
}, `dots-${n}`) : /* @__PURE__ */ _("li", { children: /* @__PURE__ */ _("button", {
|
|
2776
2776
|
type: "button",
|
|
2777
|
-
className:
|
|
2777
|
+
className: Er.dot,
|
|
2778
2778
|
"data-active": e === t || void 0,
|
|
2779
2779
|
"aria-label": `Page ${e}`,
|
|
2780
2780
|
"aria-current": e === t ? "page" : void 0,
|
|
@@ -2783,10 +2783,10 @@ function kr({ ref: e, page: t, count: n, onChange: r, siblingCount: i = 1, class
|
|
|
2783
2783
|
})
|
|
2784
2784
|
});
|
|
2785
2785
|
}
|
|
2786
|
-
|
|
2786
|
+
Ar.displayName = "CompactPagination";
|
|
2787
2787
|
//#endregion
|
|
2788
2788
|
//#region src/components/Pagination/Pagination.tsx
|
|
2789
|
-
var
|
|
2789
|
+
var jr = ({ direction: e }) => /* @__PURE__ */ _("svg", {
|
|
2790
2790
|
width: "16",
|
|
2791
2791
|
height: "16",
|
|
2792
2792
|
viewBox: "0 0 18 18",
|
|
@@ -2800,65 +2800,65 @@ var Ar = ({ direction: e }) => /* @__PURE__ */ _("svg", {
|
|
|
2800
2800
|
strokeLinejoin: "round"
|
|
2801
2801
|
})
|
|
2802
2802
|
});
|
|
2803
|
-
function
|
|
2804
|
-
let s =
|
|
2803
|
+
function Mr({ ref: e, page: t, count: n, onChange: r, siblingCount: i = 1, className: a, ...o }) {
|
|
2804
|
+
let s = kr(t, n, i);
|
|
2805
2805
|
return /* @__PURE__ */ _("nav", {
|
|
2806
2806
|
ref: e,
|
|
2807
2807
|
"aria-label": "Pagination",
|
|
2808
2808
|
"data-slot": "pagination",
|
|
2809
|
-
className: S(
|
|
2809
|
+
className: S(Er.nav, a),
|
|
2810
2810
|
...o,
|
|
2811
2811
|
children: /* @__PURE__ */ v("ul", {
|
|
2812
|
-
className:
|
|
2812
|
+
className: Er.list,
|
|
2813
2813
|
children: [
|
|
2814
|
-
/* @__PURE__ */ _("li", { children: /* @__PURE__ */ _(
|
|
2814
|
+
/* @__PURE__ */ _("li", { children: /* @__PURE__ */ _(sr, {
|
|
2815
2815
|
mode: "gray",
|
|
2816
2816
|
size: "s",
|
|
2817
2817
|
"data-slot": "pagination-previous",
|
|
2818
2818
|
"aria-label": "Previous page",
|
|
2819
2819
|
disabled: t <= 1,
|
|
2820
2820
|
onClick: () => r(t - 1),
|
|
2821
|
-
children: /* @__PURE__ */ _(
|
|
2821
|
+
children: /* @__PURE__ */ _(jr, { direction: "prev" })
|
|
2822
2822
|
}) }),
|
|
2823
2823
|
s.map((e, n) => e === "dots" ? /* @__PURE__ */ _("li", {
|
|
2824
|
-
className:
|
|
2824
|
+
className: Er.dots,
|
|
2825
2825
|
"aria-hidden": !0,
|
|
2826
2826
|
children: "…"
|
|
2827
2827
|
}, `dots-${n}`) : /* @__PURE__ */ _("li", { children: /* @__PURE__ */ _("button", {
|
|
2828
2828
|
type: "button",
|
|
2829
2829
|
"data-slot": "pagination-item",
|
|
2830
|
-
className:
|
|
2830
|
+
className: Er.page,
|
|
2831
2831
|
"aria-current": e === t ? "page" : void 0,
|
|
2832
2832
|
onClick: () => r(e),
|
|
2833
2833
|
children: e
|
|
2834
2834
|
}) }, e)),
|
|
2835
|
-
/* @__PURE__ */ _("li", { children: /* @__PURE__ */ _(
|
|
2835
|
+
/* @__PURE__ */ _("li", { children: /* @__PURE__ */ _(sr, {
|
|
2836
2836
|
mode: "gray",
|
|
2837
2837
|
size: "s",
|
|
2838
2838
|
"data-slot": "pagination-next",
|
|
2839
2839
|
"aria-label": "Next page",
|
|
2840
2840
|
disabled: t >= n,
|
|
2841
2841
|
onClick: () => r(t + 1),
|
|
2842
|
-
children: /* @__PURE__ */ _(
|
|
2842
|
+
children: /* @__PURE__ */ _(jr, { direction: "next" })
|
|
2843
2843
|
}) })
|
|
2844
2844
|
]
|
|
2845
2845
|
})
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
|
-
|
|
2849
|
-
var
|
|
2848
|
+
Mr.displayName = "Pagination";
|
|
2849
|
+
var Nr = {
|
|
2850
2850
|
pinInput: "_pinInput_1r11c_1",
|
|
2851
2851
|
cell: "_cell_1r11c_6"
|
|
2852
|
-
},
|
|
2852
|
+
}, Pr = {
|
|
2853
2853
|
numeric: /[0-9]/,
|
|
2854
2854
|
alphanumeric: /[a-z0-9]/i
|
|
2855
2855
|
};
|
|
2856
|
-
function
|
|
2856
|
+
function Fr({ ref: e, length: t = 4, value: n, defaultValue: r = "", onValueChange: i, onComplete: a, type: o = "numeric", mask: s = !1, disabled: c = !1, invalid: l = !1, name: u, "aria-label": m = "Verification code", className: h }) {
|
|
2857
2857
|
let [g, v] = p(r.slice(0, t)), y = n ?? g, b = d(() => {
|
|
2858
2858
|
let e = y.split("").slice(0, t);
|
|
2859
2859
|
for (; e.length < t;) e.push("");
|
|
2860
2860
|
return e;
|
|
2861
|
-
}, [y, t]), x = f([]), C =
|
|
2861
|
+
}, [y, t]), x = f([]), C = Pr[o], w = (e) => {
|
|
2862
2862
|
let r = e.join("");
|
|
2863
2863
|
n ?? v(r), i?.(r), r.length === t && e.every(Boolean) && a?.(r);
|
|
2864
2864
|
}, T = (e) => {
|
|
@@ -2886,7 +2886,7 @@ function Pr({ ref: e, length: t = 4, value: n, defaultValue: r = "", onValueChan
|
|
|
2886
2886
|
return /* @__PURE__ */ _("div", {
|
|
2887
2887
|
ref: e,
|
|
2888
2888
|
"data-slot": "pin-input",
|
|
2889
|
-
className: S(
|
|
2889
|
+
className: S(Nr.pinInput, h),
|
|
2890
2890
|
role: "group",
|
|
2891
2891
|
"aria-label": m,
|
|
2892
2892
|
"data-invalid": l || void 0,
|
|
@@ -2895,7 +2895,7 @@ function Pr({ ref: e, length: t = 4, value: n, defaultValue: r = "", onValueChan
|
|
|
2895
2895
|
x.current[t] = e;
|
|
2896
2896
|
},
|
|
2897
2897
|
"data-slot": "pin-input-cell",
|
|
2898
|
-
className:
|
|
2898
|
+
className: Nr.cell,
|
|
2899
2899
|
"aria-invalid": l || void 0,
|
|
2900
2900
|
type: s ? "password" : "text",
|
|
2901
2901
|
inputMode: o === "numeric" ? "numeric" : "text",
|
|
@@ -2912,34 +2912,34 @@ function Pr({ ref: e, length: t = 4, value: n, defaultValue: r = "", onValueChan
|
|
|
2912
2912
|
}, t))
|
|
2913
2913
|
});
|
|
2914
2914
|
}
|
|
2915
|
-
|
|
2915
|
+
Fr.displayName = "PinInput";
|
|
2916
2916
|
//#endregion
|
|
2917
2917
|
//#region src/components/Title/Title.module.css
|
|
2918
|
-
var
|
|
2918
|
+
var Ir = {
|
|
2919
2919
|
"level-1": "_level-1_1ubs4_1",
|
|
2920
2920
|
"level-2": "_level-2_1ubs4_7",
|
|
2921
2921
|
"level-3": "_level-3_1ubs4_13"
|
|
2922
|
-
},
|
|
2922
|
+
}, Lr = {
|
|
2923
2923
|
1: {
|
|
2924
2924
|
tag: "h2",
|
|
2925
|
-
className:
|
|
2925
|
+
className: Ir["level-1"],
|
|
2926
2926
|
weight: "1"
|
|
2927
2927
|
},
|
|
2928
2928
|
2: {
|
|
2929
2929
|
tag: "h3",
|
|
2930
|
-
className:
|
|
2930
|
+
className: Ir["level-2"],
|
|
2931
2931
|
weight: "1"
|
|
2932
2932
|
},
|
|
2933
2933
|
3: {
|
|
2934
2934
|
tag: "h4",
|
|
2935
|
-
className:
|
|
2935
|
+
className: Ir["level-3"],
|
|
2936
2936
|
weight: "2"
|
|
2937
2937
|
}
|
|
2938
2938
|
};
|
|
2939
2939
|
//#endregion
|
|
2940
2940
|
//#region src/components/Title/Title.tsx
|
|
2941
|
-
function
|
|
2942
|
-
let { tag: o, className: s, weight: c } =
|
|
2941
|
+
function Rr({ ref: e, level: t = "2", weight: n, Component: r, className: i, ...a }) {
|
|
2942
|
+
let { tag: o, className: s, weight: c } = Lr[t];
|
|
2943
2943
|
return /* @__PURE__ */ _(R, {
|
|
2944
2944
|
"data-slot": "title",
|
|
2945
2945
|
ref: e,
|
|
@@ -2949,33 +2949,33 @@ function Lr({ ref: e, level: t = "2", weight: n, Component: r, className: i, ...
|
|
|
2949
2949
|
...a
|
|
2950
2950
|
});
|
|
2951
2951
|
}
|
|
2952
|
-
|
|
2953
|
-
var
|
|
2952
|
+
Rr.displayName = "Title";
|
|
2953
|
+
var zr = {
|
|
2954
2954
|
placeholder: "_placeholder_12tdv_1",
|
|
2955
2955
|
fields: "_fields_12tdv_13",
|
|
2956
2956
|
description: "_description_12tdv_19"
|
|
2957
2957
|
};
|
|
2958
2958
|
//#endregion
|
|
2959
2959
|
//#region src/components/Placeholder/Placeholder.tsx
|
|
2960
|
-
function
|
|
2960
|
+
function Br({ ref: e, children: t, header: n, description: r, action: i, className: a, ...o }) {
|
|
2961
2961
|
return /* @__PURE__ */ v("section", {
|
|
2962
2962
|
ref: e,
|
|
2963
2963
|
"data-slot": "placeholder",
|
|
2964
|
-
className: S(
|
|
2964
|
+
className: S(zr.placeholder, a),
|
|
2965
2965
|
...o,
|
|
2966
2966
|
children: [
|
|
2967
2967
|
t,
|
|
2968
2968
|
n != null || r != null ? /* @__PURE__ */ v("dl", {
|
|
2969
2969
|
"data-slot": "placeholder-fields",
|
|
2970
|
-
className:
|
|
2971
|
-
children: [n == null ? null : /* @__PURE__ */ _(
|
|
2970
|
+
className: zr.fields,
|
|
2971
|
+
children: [n == null ? null : /* @__PURE__ */ _(Rr, {
|
|
2972
2972
|
Component: "dt",
|
|
2973
2973
|
level: "3",
|
|
2974
2974
|
weight: "2",
|
|
2975
2975
|
children: n
|
|
2976
|
-
}), r == null ? null : /* @__PURE__ */ _(
|
|
2976
|
+
}), r == null ? null : /* @__PURE__ */ _(Le, {
|
|
2977
2977
|
Component: "dd",
|
|
2978
|
-
className:
|
|
2978
|
+
className: zr.description,
|
|
2979
2979
|
children: r
|
|
2980
2980
|
})]
|
|
2981
2981
|
}) : null,
|
|
@@ -2983,27 +2983,27 @@ function zr({ ref: e, children: t, header: n, description: r, action: i, classNa
|
|
|
2983
2983
|
]
|
|
2984
2984
|
});
|
|
2985
2985
|
}
|
|
2986
|
-
|
|
2986
|
+
Br.displayName = "Placeholder";
|
|
2987
2987
|
//#endregion
|
|
2988
2988
|
//#region src/components/Popover/context.ts
|
|
2989
|
-
var
|
|
2989
|
+
var Vr = i({
|
|
2990
2990
|
open: !1,
|
|
2991
2991
|
setOpen: () => {},
|
|
2992
2992
|
triggerRef: { current: null },
|
|
2993
2993
|
contentId: ""
|
|
2994
2994
|
});
|
|
2995
|
-
|
|
2996
|
-
var
|
|
2995
|
+
Vr.displayName = "PopoverContext";
|
|
2996
|
+
var Hr = {
|
|
2997
2997
|
content: "_content_n8fdo_1",
|
|
2998
2998
|
"popover-in": "_popover-in_n8fdo_1",
|
|
2999
2999
|
"popover-out": "_popover-out_n8fdo_1"
|
|
3000
3000
|
};
|
|
3001
3001
|
//#endregion
|
|
3002
3002
|
//#region src/components/Popover/PopoverContent.tsx
|
|
3003
|
-
function
|
|
3004
|
-
let { open: d, setOpen: m, triggerRef: h, contentId: g } = s(
|
|
3003
|
+
function Ur({ ref: e, placement: t = "bottom-start", gap: n = 8, container: r, className: i, children: a, ...l }) {
|
|
3004
|
+
let { open: d, setOpen: m, triggerRef: h, contentId: g } = s(Vr), v = f(null), [y, b] = p(null), [x, C] = p(null), w = o(() => {
|
|
3005
3005
|
let e = h.current, r = v.current;
|
|
3006
|
-
!e || !r || C(
|
|
3006
|
+
!e || !r || C(Hn(e.getBoundingClientRect(), r.getBoundingClientRect(), t, n, r));
|
|
3007
3007
|
}, [
|
|
3008
3008
|
t,
|
|
3009
3009
|
n,
|
|
@@ -3021,18 +3021,18 @@ function Hr({ ref: e, placement: t = "bottom-start", gap: n = 8, container: r, c
|
|
|
3021
3021
|
return window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
|
|
3022
3022
|
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
3023
3023
|
};
|
|
3024
|
-
}, [d, w]), /* @__PURE__ */ _(
|
|
3024
|
+
}, [d, w]), /* @__PURE__ */ _(Dn, {
|
|
3025
3025
|
container: r,
|
|
3026
|
-
children: /* @__PURE__ */ _(
|
|
3026
|
+
children: /* @__PURE__ */ _(xn, {
|
|
3027
3027
|
present: d,
|
|
3028
|
-
children: /* @__PURE__ */ _(
|
|
3028
|
+
children: /* @__PURE__ */ _(sn, {
|
|
3029
3029
|
asChild: !0,
|
|
3030
3030
|
trapped: !0,
|
|
3031
3031
|
loop: !0,
|
|
3032
3032
|
onUnmountAutoFocus: (e) => {
|
|
3033
3033
|
e.preventDefault(), h.current?.focus();
|
|
3034
3034
|
},
|
|
3035
|
-
children: /* @__PURE__ */ _(
|
|
3035
|
+
children: /* @__PURE__ */ _(Yt, {
|
|
3036
3036
|
asChild: !0,
|
|
3037
3037
|
deferPointerDownOutside: !0,
|
|
3038
3038
|
onEscapeKeyDown: () => m(!1),
|
|
@@ -3047,7 +3047,7 @@ function Hr({ ref: e, placement: t = "bottom-start", gap: n = 8, container: r, c
|
|
|
3047
3047
|
"data-slot": "popover-content",
|
|
3048
3048
|
"data-side": x?.side,
|
|
3049
3049
|
"data-state": x ? d ? "open" : "closed" : void 0,
|
|
3050
|
-
className: S(
|
|
3050
|
+
className: S(Hr.content, i),
|
|
3051
3051
|
style: x ? {
|
|
3052
3052
|
top: x.top,
|
|
3053
3053
|
left: x.left
|
|
@@ -3065,11 +3065,11 @@ function Hr({ ref: e, placement: t = "bottom-start", gap: n = 8, container: r, c
|
|
|
3065
3065
|
})
|
|
3066
3066
|
});
|
|
3067
3067
|
}
|
|
3068
|
-
|
|
3068
|
+
Ur.displayName = "PopoverContent";
|
|
3069
3069
|
//#endregion
|
|
3070
3070
|
//#region src/components/Popover/PopoverTrigger.tsx
|
|
3071
|
-
function
|
|
3072
|
-
let { open: t, setOpen: n, triggerRef: i, contentId: o } = s(
|
|
3071
|
+
function Wr({ children: e }) {
|
|
3072
|
+
let { open: t, setOpen: n, triggerRef: i, contentId: o } = s(Vr);
|
|
3073
3073
|
if (!a(e)) return e;
|
|
3074
3074
|
let c = e, l = c.props.ref, u = c.props.onClick;
|
|
3075
3075
|
return r(c, {
|
|
@@ -3086,14 +3086,14 @@ function Ur({ children: e }) {
|
|
|
3086
3086
|
"data-state": t ? "open" : "closed"
|
|
3087
3087
|
});
|
|
3088
3088
|
}
|
|
3089
|
-
|
|
3089
|
+
Wr.displayName = "PopoverTrigger";
|
|
3090
3090
|
//#endregion
|
|
3091
3091
|
//#region src/components/Popover/Popover.tsx
|
|
3092
|
-
function
|
|
3092
|
+
function Gr({ open: e, defaultOpen: t = !1, onOpenChange: n, children: r }) {
|
|
3093
3093
|
let [i, a] = p(t), s = e ?? i, c = f(null), u = l(), d = o((t) => {
|
|
3094
3094
|
e ?? a(t), n?.(t);
|
|
3095
3095
|
}, [e, n]);
|
|
3096
|
-
return /* @__PURE__ */ _(
|
|
3096
|
+
return /* @__PURE__ */ _(Vr.Provider, {
|
|
3097
3097
|
value: {
|
|
3098
3098
|
open: s,
|
|
3099
3099
|
setOpen: d,
|
|
@@ -3103,14 +3103,14 @@ function Wr({ open: e, defaultOpen: t = !1, onOpenChange: n, children: r }) {
|
|
|
3103
3103
|
children: r
|
|
3104
3104
|
});
|
|
3105
3105
|
}
|
|
3106
|
-
|
|
3107
|
-
var
|
|
3106
|
+
Gr.displayName = "Popover", Gr.Trigger = Wr, Gr.Content = Ur;
|
|
3107
|
+
var Kr = {
|
|
3108
3108
|
track: "_track_1mabn_1",
|
|
3109
3109
|
bar: "_bar_1mabn_9"
|
|
3110
3110
|
};
|
|
3111
3111
|
//#endregion
|
|
3112
3112
|
//#region src/components/Progress/Progress.tsx
|
|
3113
|
-
function
|
|
3113
|
+
function qr({ ref: e, value: t = 0, className: n, "aria-label": r, ...i }) {
|
|
3114
3114
|
let a = Math.max(0, Math.min(100, t));
|
|
3115
3115
|
return /* @__PURE__ */ _("div", {
|
|
3116
3116
|
ref: e,
|
|
@@ -3120,61 +3120,61 @@ function Kr({ ref: e, value: t = 0, className: n, "aria-label": r, ...i }) {
|
|
|
3120
3120
|
"aria-valuemax": 100,
|
|
3121
3121
|
"aria-valuenow": Math.round(a),
|
|
3122
3122
|
"data-slot": "progress",
|
|
3123
|
-
className: S(
|
|
3123
|
+
className: S(Kr.track, n),
|
|
3124
3124
|
...i,
|
|
3125
3125
|
children: /* @__PURE__ */ _("div", {
|
|
3126
3126
|
"data-slot": "progress-indicator",
|
|
3127
|
-
className:
|
|
3127
|
+
className: Kr.bar,
|
|
3128
3128
|
style: { width: `${a}%` }
|
|
3129
3129
|
})
|
|
3130
3130
|
});
|
|
3131
3131
|
}
|
|
3132
|
-
|
|
3133
|
-
var
|
|
3132
|
+
qr.displayName = "Progress";
|
|
3133
|
+
var Jr = {
|
|
3134
3134
|
radio: "_radio_k6nra_1",
|
|
3135
3135
|
input: "_input_k6nra_12",
|
|
3136
3136
|
dot: "_dot_k6nra_22"
|
|
3137
3137
|
};
|
|
3138
3138
|
//#endregion
|
|
3139
3139
|
//#region src/components/Radio/Radio.tsx
|
|
3140
|
-
function
|
|
3140
|
+
function Yr({ ref: e, disabled: t, className: n, style: r, onChange: i, ...a }) {
|
|
3141
3141
|
let o = M();
|
|
3142
3142
|
return /* @__PURE__ */ v("span", {
|
|
3143
3143
|
"data-slot": "radio",
|
|
3144
|
-
className: S(
|
|
3144
|
+
className: S(Jr.radio, n),
|
|
3145
3145
|
style: r,
|
|
3146
3146
|
"data-disabled": t || void 0,
|
|
3147
3147
|
children: [/* @__PURE__ */ _("input", {
|
|
3148
3148
|
ref: e,
|
|
3149
3149
|
type: "radio",
|
|
3150
3150
|
"data-slot": "radio-input",
|
|
3151
|
-
className:
|
|
3151
|
+
className: Jr.input,
|
|
3152
3152
|
disabled: t,
|
|
3153
3153
|
onChange: (e) => {
|
|
3154
3154
|
o("select"), i?.(e);
|
|
3155
3155
|
},
|
|
3156
3156
|
...a
|
|
3157
3157
|
}), /* @__PURE__ */ _("span", {
|
|
3158
|
-
className:
|
|
3158
|
+
className: Jr.dot,
|
|
3159
3159
|
"data-slot": "radio-indicator",
|
|
3160
3160
|
"aria-hidden": !0
|
|
3161
3161
|
})]
|
|
3162
3162
|
});
|
|
3163
3163
|
}
|
|
3164
|
-
|
|
3165
|
-
var
|
|
3164
|
+
Yr.displayName = "Radio";
|
|
3165
|
+
var Xr = {
|
|
3166
3166
|
rating: "_rating_116h6_1",
|
|
3167
3167
|
row: "_row_116h6_7",
|
|
3168
3168
|
empty: "_empty_116h6_12",
|
|
3169
3169
|
fill: "_fill_116h6_16",
|
|
3170
3170
|
star: "_star_116h6_29"
|
|
3171
|
-
},
|
|
3171
|
+
}, Zr = /* @__PURE__ */ _("svg", {
|
|
3172
3172
|
viewBox: "0 0 24 24",
|
|
3173
3173
|
fill: "currentColor",
|
|
3174
3174
|
"aria-hidden": !0,
|
|
3175
3175
|
children: /* @__PURE__ */ _("path", { d: "M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.8 5.9 20.4l1.4-6.8L2.2 9.1l6.9-.8z" })
|
|
3176
3176
|
});
|
|
3177
|
-
function
|
|
3177
|
+
function Qr({ ref: e, value: t, defaultValue: n = 0, onValueChange: r, count: i = 5, readOnly: a = !1, disabled: o = !1, icon: s = Zr, name: c, "aria-label": l = "Rating", className: u }) {
|
|
3178
3178
|
let [d, f] = p(n), m = t ?? d, [h, g] = p(null), y = !a && !o, b = Math.max(0, Math.min(1, (h ?? m) / i)) * 100, x = M(), C = (e) => {
|
|
3179
3179
|
!y || e === m || (x("select"), t ?? f(e), r?.(e));
|
|
3180
3180
|
}, w = (e) => {
|
|
@@ -3187,13 +3187,13 @@ function Zr({ ref: e, value: t, defaultValue: n = 0, onValueChange: r, count: i
|
|
|
3187
3187
|
ref: e,
|
|
3188
3188
|
"data-slot": "rating",
|
|
3189
3189
|
"data-interactive": y || void 0,
|
|
3190
|
-
className: S(
|
|
3190
|
+
className: S(Xr.rating, u),
|
|
3191
3191
|
"data-disabled": o || void 0,
|
|
3192
3192
|
role: D,
|
|
3193
3193
|
"aria-label": O,
|
|
3194
3194
|
...E,
|
|
3195
3195
|
children: [/* @__PURE__ */ _("div", {
|
|
3196
|
-
className: S(
|
|
3196
|
+
className: S(Xr.row, Xr.empty),
|
|
3197
3197
|
"aria-hidden": !y,
|
|
3198
3198
|
children: T.map((e) => y ? /* @__PURE__ */ _("button", {
|
|
3199
3199
|
type: "button",
|
|
@@ -3203,7 +3203,7 @@ function Zr({ ref: e, value: t, defaultValue: n = 0, onValueChange: r, count: i
|
|
|
3203
3203
|
tabIndex: e === (Math.round(m) || 1) ? 0 : -1,
|
|
3204
3204
|
name: c,
|
|
3205
3205
|
"data-slot": "rating-star",
|
|
3206
|
-
className:
|
|
3206
|
+
className: Xr.star,
|
|
3207
3207
|
onClick: () => C(e),
|
|
3208
3208
|
onMouseEnter: () => g(e),
|
|
3209
3209
|
onFocus: () => g(e),
|
|
@@ -3211,34 +3211,34 @@ function Zr({ ref: e, value: t, defaultValue: n = 0, onValueChange: r, count: i
|
|
|
3211
3211
|
children: s
|
|
3212
3212
|
}, e) : /* @__PURE__ */ _("span", {
|
|
3213
3213
|
"data-slot": "rating-star",
|
|
3214
|
-
className:
|
|
3214
|
+
className: Xr.star,
|
|
3215
3215
|
children: s
|
|
3216
3216
|
}, e))
|
|
3217
3217
|
}), /* @__PURE__ */ _("div", {
|
|
3218
|
-
className:
|
|
3218
|
+
className: Xr.fill,
|
|
3219
3219
|
style: { clipPath: `inset(0 ${100 - b}% 0 0)` },
|
|
3220
3220
|
"aria-hidden": !0,
|
|
3221
3221
|
children: /* @__PURE__ */ _("div", {
|
|
3222
|
-
className:
|
|
3222
|
+
className: Xr.row,
|
|
3223
3223
|
children: T.map((e) => /* @__PURE__ */ _("span", {
|
|
3224
3224
|
"data-slot": "rating-star",
|
|
3225
|
-
className:
|
|
3225
|
+
className: Xr.star,
|
|
3226
3226
|
children: s
|
|
3227
3227
|
}, e))
|
|
3228
3228
|
})
|
|
3229
3229
|
})]
|
|
3230
3230
|
});
|
|
3231
3231
|
}
|
|
3232
|
-
|
|
3233
|
-
var
|
|
3232
|
+
Qr.displayName = "Rating";
|
|
3233
|
+
var $r = {
|
|
3234
3234
|
bar: "_bar_oef3w_1",
|
|
3235
3235
|
field: "_field_oef3w_8",
|
|
3236
3236
|
icon: "_icon_oef3w_20",
|
|
3237
3237
|
input: "_input_oef3w_26",
|
|
3238
3238
|
clear: "_clear_oef3w_49",
|
|
3239
3239
|
cancel: "_cancel_oef3w_70"
|
|
3240
|
-
},
|
|
3241
|
-
function
|
|
3240
|
+
}, ei = (e) => e.preventDefault();
|
|
3241
|
+
function ti({ ref: e, value: t, onChange: n, placeholder: r = "Search", onCancel: i, label: a = "Search", className: o, ...s }) {
|
|
3242
3242
|
let c = f(null), [l, u] = p(!1), d = () => {
|
|
3243
3243
|
n(""), c.current?.focus();
|
|
3244
3244
|
}, m = () => {
|
|
@@ -3248,15 +3248,15 @@ function ei({ ref: e, value: t, onChange: n, placeholder: r = "Search", onCancel
|
|
|
3248
3248
|
ref: e,
|
|
3249
3249
|
"data-slot": "search-bar",
|
|
3250
3250
|
"data-focused": l || void 0,
|
|
3251
|
-
className: S(
|
|
3251
|
+
className: S($r.bar, o),
|
|
3252
3252
|
...s,
|
|
3253
3253
|
children: [/* @__PURE__ */ v("div", {
|
|
3254
3254
|
"data-slot": "search-bar-field",
|
|
3255
|
-
className:
|
|
3255
|
+
className: $r.field,
|
|
3256
3256
|
children: [
|
|
3257
3257
|
/* @__PURE__ */ v("svg", {
|
|
3258
3258
|
"data-slot": "search-bar-icon",
|
|
3259
|
-
className:
|
|
3259
|
+
className: $r.icon,
|
|
3260
3260
|
width: "16",
|
|
3261
3261
|
height: "16",
|
|
3262
3262
|
viewBox: "0 0 16 16",
|
|
@@ -3279,7 +3279,7 @@ function ei({ ref: e, value: t, onChange: n, placeholder: r = "Search", onCancel
|
|
|
3279
3279
|
ref: c,
|
|
3280
3280
|
type: "search",
|
|
3281
3281
|
"data-slot": "search-bar-input",
|
|
3282
|
-
className:
|
|
3282
|
+
className: $r.input,
|
|
3283
3283
|
value: t,
|
|
3284
3284
|
placeholder: r,
|
|
3285
3285
|
"aria-label": a,
|
|
@@ -3290,9 +3290,9 @@ function ei({ ref: e, value: t, onChange: n, placeholder: r = "Search", onCancel
|
|
|
3290
3290
|
t.length > 0 ? /* @__PURE__ */ _("button", {
|
|
3291
3291
|
type: "button",
|
|
3292
3292
|
"data-slot": "search-bar-clear",
|
|
3293
|
-
className:
|
|
3293
|
+
className: $r.clear,
|
|
3294
3294
|
"aria-label": "Clear",
|
|
3295
|
-
onMouseDown:
|
|
3295
|
+
onMouseDown: ei,
|
|
3296
3296
|
onClick: d,
|
|
3297
3297
|
children: /* @__PURE__ */ v("svg", {
|
|
3298
3298
|
width: "14",
|
|
@@ -3317,16 +3317,16 @@ function ei({ ref: e, value: t, onChange: n, placeholder: r = "Search", onCancel
|
|
|
3317
3317
|
}), i == null ? null : /* @__PURE__ */ _("button", {
|
|
3318
3318
|
type: "button",
|
|
3319
3319
|
"data-slot": "search-bar-cancel",
|
|
3320
|
-
className:
|
|
3320
|
+
className: $r.cancel,
|
|
3321
3321
|
tabIndex: l ? 0 : -1,
|
|
3322
|
-
onMouseDown:
|
|
3322
|
+
onMouseDown: ei,
|
|
3323
3323
|
onClick: m,
|
|
3324
3324
|
children: "Cancel"
|
|
3325
3325
|
})]
|
|
3326
3326
|
});
|
|
3327
3327
|
}
|
|
3328
|
-
|
|
3329
|
-
var
|
|
3328
|
+
ti.displayName = "SearchBar";
|
|
3329
|
+
var X = {
|
|
3330
3330
|
body: "_body_4ckeh_1",
|
|
3331
3331
|
sectionBase: "_sectionBase_4ckeh_11",
|
|
3332
3332
|
bodyWithHeader: "_bodyWithHeader_4ckeh_11",
|
|
@@ -3341,45 +3341,45 @@ var Z = {
|
|
|
3341
3341
|
};
|
|
3342
3342
|
//#endregion
|
|
3343
3343
|
//#region src/components/Section/SectionFooter.tsx
|
|
3344
|
-
function
|
|
3345
|
-
return e ? /* @__PURE__ */ _(
|
|
3344
|
+
function ni({ ios: e, children: t }) {
|
|
3345
|
+
return e ? /* @__PURE__ */ _(Ge, {
|
|
3346
3346
|
Component: "span",
|
|
3347
|
-
className:
|
|
3347
|
+
className: X.footerText,
|
|
3348
3348
|
children: t
|
|
3349
3349
|
}) : /* @__PURE__ */ _(z, {
|
|
3350
3350
|
Component: "span",
|
|
3351
3351
|
level: "2",
|
|
3352
|
-
className:
|
|
3352
|
+
className: X.footerText,
|
|
3353
3353
|
children: t
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
|
-
function
|
|
3356
|
+
function ri({ ref: e, centered: t = !1, className: n, children: r, ...i }) {
|
|
3357
3357
|
let { platform: a } = N(), o = a === "ios";
|
|
3358
3358
|
return /* @__PURE__ */ _("footer", {
|
|
3359
3359
|
ref: e,
|
|
3360
3360
|
"data-slot": "section-footer",
|
|
3361
|
-
className: S(
|
|
3361
|
+
className: S(X.footer, o && X.footerIos, t && X.footerCentered, n),
|
|
3362
3362
|
...i,
|
|
3363
|
-
children: /* @__PURE__ */ _(
|
|
3363
|
+
children: /* @__PURE__ */ _(ni, {
|
|
3364
3364
|
ios: o,
|
|
3365
3365
|
children: r
|
|
3366
3366
|
})
|
|
3367
3367
|
});
|
|
3368
3368
|
}
|
|
3369
|
-
|
|
3369
|
+
ri.displayName = "SectionFooter";
|
|
3370
3370
|
//#endregion
|
|
3371
3371
|
//#region src/components/Section/SectionHeader.tsx
|
|
3372
|
-
function
|
|
3372
|
+
function ii({ ios: e, large: t, children: n }) {
|
|
3373
3373
|
return t ? e ? /* @__PURE__ */ _(z, {
|
|
3374
3374
|
Component: "h2",
|
|
3375
3375
|
level: "1",
|
|
3376
3376
|
weight: "2",
|
|
3377
3377
|
children: n
|
|
3378
|
-
}) : /* @__PURE__ */ _(
|
|
3378
|
+
}) : /* @__PURE__ */ _(Le, {
|
|
3379
3379
|
Component: "h2",
|
|
3380
3380
|
weight: "2",
|
|
3381
3381
|
children: n
|
|
3382
|
-
}) : e ? /* @__PURE__ */ _(
|
|
3382
|
+
}) : e ? /* @__PURE__ */ _(Ge, {
|
|
3383
3383
|
Component: "h2",
|
|
3384
3384
|
caps: !0,
|
|
3385
3385
|
children: n
|
|
@@ -3390,52 +3390,52 @@ function ri({ ios: e, large: t, children: n }) {
|
|
|
3390
3390
|
children: n
|
|
3391
3391
|
});
|
|
3392
3392
|
}
|
|
3393
|
-
function
|
|
3393
|
+
function ai({ ref: e, large: t = !1, className: n, children: r, ...i }) {
|
|
3394
3394
|
let { platform: a } = N(), o = a === "ios";
|
|
3395
3395
|
return /* @__PURE__ */ _("header", {
|
|
3396
3396
|
ref: e,
|
|
3397
3397
|
"data-slot": "section-header",
|
|
3398
|
-
className: S(
|
|
3398
|
+
className: S(X.header, o && X.headerIos, t && X.headerLarge, n),
|
|
3399
3399
|
...i,
|
|
3400
|
-
children: /* @__PURE__ */ _(
|
|
3400
|
+
children: /* @__PURE__ */ _(ii, {
|
|
3401
3401
|
ios: o,
|
|
3402
3402
|
large: t,
|
|
3403
3403
|
children: r
|
|
3404
3404
|
})
|
|
3405
3405
|
});
|
|
3406
3406
|
}
|
|
3407
|
-
|
|
3407
|
+
ai.displayName = "SectionHeader";
|
|
3408
3408
|
//#endregion
|
|
3409
3409
|
//#region src/components/Section/Section.tsx
|
|
3410
|
-
var
|
|
3411
|
-
function
|
|
3410
|
+
var oi = (e) => typeof e == "string" || typeof e == "number";
|
|
3411
|
+
function si({ ref: e, header: r, footer: i, className: o, children: s, ...c }) {
|
|
3412
3412
|
let { platform: l } = N(), u = t.toArray(s);
|
|
3413
3413
|
return /* @__PURE__ */ v("section", {
|
|
3414
3414
|
ref: e,
|
|
3415
3415
|
"data-slot": "section",
|
|
3416
|
-
className: S(l === "ios" ?
|
|
3416
|
+
className: S(l === "ios" ? X.sectionIos : X.sectionBase, o),
|
|
3417
3417
|
...c,
|
|
3418
3418
|
children: [/* @__PURE__ */ v("div", {
|
|
3419
|
-
className:
|
|
3420
|
-
children: [
|
|
3419
|
+
className: X.bodyWithHeader,
|
|
3420
|
+
children: [oi(r) ? /* @__PURE__ */ _(ai, { children: r }) : r, /* @__PURE__ */ _("div", {
|
|
3421
3421
|
"data-slot": "section-body",
|
|
3422
|
-
className:
|
|
3423
|
-
children: u.map((e, t) => /* @__PURE__ */ v(n, { children: [e, t < u.length - 1 ? /* @__PURE__ */ _(
|
|
3422
|
+
className: X.body,
|
|
3423
|
+
children: u.map((e, t) => /* @__PURE__ */ v(n, { children: [e, t < u.length - 1 ? /* @__PURE__ */ _(Nn, {}) : null] }, a(e) ? e.key : t))
|
|
3424
3424
|
})]
|
|
3425
|
-
}),
|
|
3425
|
+
}), oi(i) ? /* @__PURE__ */ _(ri, { children: i }) : i]
|
|
3426
3426
|
});
|
|
3427
3427
|
}
|
|
3428
|
-
|
|
3428
|
+
si.displayName = "Section", si.Header = ai, si.Footer = ri;
|
|
3429
3429
|
//#endregion
|
|
3430
3430
|
//#region src/components/SegmentedControl/context.ts
|
|
3431
|
-
var
|
|
3431
|
+
var ci = i(null), li = {
|
|
3432
3432
|
control: "_control_p4kcm_1",
|
|
3433
3433
|
pill: "_pill_p4kcm_10",
|
|
3434
3434
|
item: "_item_p4kcm_28"
|
|
3435
3435
|
};
|
|
3436
3436
|
//#endregion
|
|
3437
3437
|
//#region src/components/SegmentedControl/SegmentedControl.tsx
|
|
3438
|
-
function
|
|
3438
|
+
function ui({ ref: e, value: t, defaultValue: n, onValueChange: r, className: i, children: a, onKeyDown: s, ...l }) {
|
|
3439
3439
|
let m = f(null), [h, g] = p(null), [y, b] = p(n), x = t ?? y, C = M(), w = o((e) => {
|
|
3440
3440
|
e !== (t ?? y) && (C("select"), t ?? b(e), r?.(e));
|
|
3441
3441
|
}, [
|
|
@@ -3464,13 +3464,13 @@ function li({ ref: e, value: t, defaultValue: n, onValueChange: r, className: i,
|
|
|
3464
3464
|
let D = o((t) => {
|
|
3465
3465
|
m.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
|
|
3466
3466
|
}, [e]);
|
|
3467
|
-
return /* @__PURE__ */ _(
|
|
3467
|
+
return /* @__PURE__ */ _(ci.Provider, {
|
|
3468
3468
|
value: T,
|
|
3469
3469
|
children: /* @__PURE__ */ v("div", {
|
|
3470
3470
|
ref: D,
|
|
3471
3471
|
role: "radiogroup",
|
|
3472
3472
|
"data-slot": "segmented-control",
|
|
3473
|
-
className: S(
|
|
3473
|
+
className: S(li.control, i),
|
|
3474
3474
|
onKeyDown: (e) => {
|
|
3475
3475
|
if (s?.(e), e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
|
|
3476
3476
|
let t = m.current;
|
|
@@ -3483,7 +3483,7 @@ function li({ ref: e, value: t, defaultValue: n, onValueChange: r, className: i,
|
|
|
3483
3483
|
},
|
|
3484
3484
|
...l,
|
|
3485
3485
|
children: [/* @__PURE__ */ _("div", {
|
|
3486
|
-
className:
|
|
3486
|
+
className: li.pill,
|
|
3487
3487
|
"data-slot": "segmented-control-indicator",
|
|
3488
3488
|
style: h ? {
|
|
3489
3489
|
transform: `translateX(${h.left}px)`,
|
|
@@ -3494,11 +3494,11 @@ function li({ ref: e, value: t, defaultValue: n, onValueChange: r, className: i,
|
|
|
3494
3494
|
})
|
|
3495
3495
|
});
|
|
3496
3496
|
}
|
|
3497
|
-
|
|
3497
|
+
ui.displayName = "SegmentedControl";
|
|
3498
3498
|
//#endregion
|
|
3499
3499
|
//#region src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
3500
|
-
function
|
|
3501
|
-
let o = s(
|
|
3500
|
+
function di({ ref: e, value: t, selected: n, className: r, onClick: i, ...a }) {
|
|
3501
|
+
let o = s(ci), c = n ?? (o != null && t != null && o.value === t);
|
|
3502
3502
|
return /* @__PURE__ */ _("button", {
|
|
3503
3503
|
ref: e,
|
|
3504
3504
|
type: "button",
|
|
@@ -3508,15 +3508,15 @@ function ui({ ref: e, value: t, selected: n, className: r, onClick: i, ...a }) {
|
|
|
3508
3508
|
"data-slot": "segmented-control-item",
|
|
3509
3509
|
"data-selected": c || void 0,
|
|
3510
3510
|
"data-state": c ? "active" : "inactive",
|
|
3511
|
-
className: S(
|
|
3511
|
+
className: S(li.item, r),
|
|
3512
3512
|
onClick: (e) => {
|
|
3513
3513
|
i?.(e), t != null && o?.select(t);
|
|
3514
3514
|
},
|
|
3515
3515
|
...a
|
|
3516
3516
|
});
|
|
3517
3517
|
}
|
|
3518
|
-
|
|
3519
|
-
var
|
|
3518
|
+
di.displayName = "SegmentedControlItem";
|
|
3519
|
+
var fi = {
|
|
3520
3520
|
base: "_base_1vd6e_1",
|
|
3521
3521
|
row: "_row_1vd6e_7",
|
|
3522
3522
|
ios: "_ios_1vd6e_18",
|
|
@@ -3526,23 +3526,23 @@ var di = {
|
|
|
3526
3526
|
};
|
|
3527
3527
|
//#endregion
|
|
3528
3528
|
//#region src/components/Select/Select.tsx
|
|
3529
|
-
function
|
|
3530
|
-
let { platform: l } = N(), u = l === "ios", [d, f] = p(!1), m = n ?? (d ? "focused" : "default"), h = u ?
|
|
3529
|
+
function pi({ ref: e, header: t, status: n, disabled: r, className: i, onFocus: a, onBlur: o, children: s, ...c }) {
|
|
3530
|
+
let { platform: l } = N(), u = l === "ios", [d, f] = p(!1), m = n ?? (d ? "focused" : "default"), h = u ? Le : z;
|
|
3531
3531
|
return /* @__PURE__ */ _("div", {
|
|
3532
3532
|
"data-slot": "select",
|
|
3533
3533
|
"data-state": m,
|
|
3534
3534
|
"data-disabled": r || void 0,
|
|
3535
|
-
className: S(u ?
|
|
3535
|
+
className: S(u ? fi.ios : fi.base, i),
|
|
3536
3536
|
"aria-disabled": r || void 0,
|
|
3537
3537
|
children: /* @__PURE__ */ v("label", {
|
|
3538
|
-
className:
|
|
3538
|
+
className: fi.row,
|
|
3539
3539
|
"data-slot": "select-row",
|
|
3540
3540
|
children: [
|
|
3541
3541
|
/* @__PURE__ */ _(h, {
|
|
3542
3542
|
ref: e,
|
|
3543
3543
|
Component: "select",
|
|
3544
3544
|
"data-slot": "select-control",
|
|
3545
|
-
className:
|
|
3545
|
+
className: fi.select,
|
|
3546
3546
|
disabled: r,
|
|
3547
3547
|
"aria-invalid": m === "error" || void 0,
|
|
3548
3548
|
onFocus: (e) => {
|
|
@@ -3557,10 +3557,10 @@ function fi({ ref: e, header: t, status: n, disabled: r, className: i, onFocus:
|
|
|
3557
3557
|
/* @__PURE__ */ _("span", {
|
|
3558
3558
|
"aria-hidden": !0,
|
|
3559
3559
|
"data-slot": "select-chevron",
|
|
3560
|
-
className:
|
|
3560
|
+
className: fi.chevron
|
|
3561
3561
|
}),
|
|
3562
3562
|
t == null ? null : /* @__PURE__ */ _("span", {
|
|
3563
|
-
className:
|
|
3563
|
+
className: fi.header,
|
|
3564
3564
|
"data-slot": "select-label",
|
|
3565
3565
|
children: t
|
|
3566
3566
|
})
|
|
@@ -3568,22 +3568,22 @@ function fi({ ref: e, header: t, status: n, disabled: r, className: i, onFocus:
|
|
|
3568
3568
|
})
|
|
3569
3569
|
});
|
|
3570
3570
|
}
|
|
3571
|
-
|
|
3571
|
+
pi.displayName = "Select";
|
|
3572
3572
|
//#endregion
|
|
3573
3573
|
//#region src/shared/lib/useReducedMotion.ts
|
|
3574
|
-
var
|
|
3575
|
-
function
|
|
3574
|
+
var mi = "(prefers-reduced-motion: reduce)";
|
|
3575
|
+
function hi(e) {
|
|
3576
3576
|
if (typeof window > "u" || !window.matchMedia) return () => {};
|
|
3577
|
-
let t = window.matchMedia(
|
|
3577
|
+
let t = window.matchMedia(mi);
|
|
3578
3578
|
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
3579
3579
|
}
|
|
3580
|
-
function hi() {
|
|
3581
|
-
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(pi).matches;
|
|
3582
|
-
}
|
|
3583
3580
|
function gi() {
|
|
3584
|
-
return
|
|
3581
|
+
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(mi).matches;
|
|
3585
3582
|
}
|
|
3586
|
-
|
|
3583
|
+
function _i() {
|
|
3584
|
+
return m(hi, gi, () => !1);
|
|
3585
|
+
}
|
|
3586
|
+
var Z = {
|
|
3587
3587
|
backdrop: "_backdrop_8d54w_1",
|
|
3588
3588
|
"backdrop--contained": "_backdrop--contained_8d54w_12",
|
|
3589
3589
|
panel: "_panel_8d54w_20",
|
|
@@ -3593,12 +3593,12 @@ var Q = {
|
|
|
3593
3593
|
title: "_title_8d54w_100",
|
|
3594
3594
|
close: "_close_8d54w_105",
|
|
3595
3595
|
body: "_body_8d54w_110"
|
|
3596
|
-
},
|
|
3597
|
-
function
|
|
3596
|
+
}, vi = 340, yi = 6, bi = 96, xi = .5;
|
|
3597
|
+
function Si(e) {
|
|
3598
3598
|
return Array.from(e.querySelectorAll("a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex=\"-1\"])")).filter((e) => e.offsetParent !== null || e === document.activeElement);
|
|
3599
3599
|
}
|
|
3600
|
-
function
|
|
3601
|
-
let d =
|
|
3600
|
+
function Ci({ ref: e, open: t, onOpenChange: n, header: r, children: i, dismissable: a = !0, closeLabel: s = "Close", className: l, container: u }) {
|
|
3601
|
+
let d = _i(), m = u != null, [h, g] = p(t), [y, b] = p(!1), x = f(null), C = f(null), T = f({
|
|
3602
3602
|
id: -1,
|
|
3603
3603
|
active: !1,
|
|
3604
3604
|
startY: 0,
|
|
@@ -3615,7 +3615,7 @@ function Si({ ref: e, open: t, onOpenChange: n, header: r, children: i, dismissa
|
|
|
3615
3615
|
g(!1);
|
|
3616
3616
|
return;
|
|
3617
3617
|
}
|
|
3618
|
-
let e = setTimeout(() => g(!1),
|
|
3618
|
+
let e = setTimeout(() => g(!1), vi);
|
|
3619
3619
|
return () => clearTimeout(e);
|
|
3620
3620
|
}, [t, d]), c(() => {
|
|
3621
3621
|
if (!h || !t) return;
|
|
@@ -3653,7 +3653,7 @@ function Si({ ref: e, open: t, onOpenChange: n, header: r, children: i, dismissa
|
|
|
3653
3653
|
}, [h]);
|
|
3654
3654
|
let E = o((e) => {
|
|
3655
3655
|
if (e.key !== "Tab" || !x.current) return;
|
|
3656
|
-
let t =
|
|
3656
|
+
let t = Si(x.current);
|
|
3657
3657
|
if (t.length === 0) {
|
|
3658
3658
|
e.preventDefault(), x.current.focus();
|
|
3659
3659
|
return;
|
|
@@ -3674,7 +3674,7 @@ function Si({ ref: e, open: t, onOpenChange: n, header: r, children: i, dismissa
|
|
|
3674
3674
|
if (t.id !== e.pointerId) return;
|
|
3675
3675
|
let n = e.clientY - t.startY;
|
|
3676
3676
|
if (!t.active) {
|
|
3677
|
-
if (n <
|
|
3677
|
+
if (n < yi) return;
|
|
3678
3678
|
t.active = !0, e.currentTarget.setPointerCapture(e.pointerId), x.current && (x.current.style.transition = "none");
|
|
3679
3679
|
}
|
|
3680
3680
|
let r = e.timeStamp - t.lastT;
|
|
@@ -3691,18 +3691,18 @@ function Si({ ref: e, open: t, onOpenChange: n, header: r, children: i, dismissa
|
|
|
3691
3691
|
active: !1
|
|
3692
3692
|
}, !t.active)) return;
|
|
3693
3693
|
e.currentTarget.releasePointerCapture?.(e.pointerId);
|
|
3694
|
-
let r = x.current, i = e.clientY - t.startY >
|
|
3694
|
+
let r = x.current, i = e.clientY - t.startY > bi || t.velocity > xi;
|
|
3695
3695
|
r && (r.style.transition = "", r.getBoundingClientRect(), r.style.transform = ""), i && (b(!1), n(!1));
|
|
3696
3696
|
};
|
|
3697
3697
|
if (!h) return null;
|
|
3698
3698
|
let A = y && t;
|
|
3699
|
-
return /* @__PURE__ */ _(
|
|
3699
|
+
return /* @__PURE__ */ _(Dn, {
|
|
3700
3700
|
container: u,
|
|
3701
3701
|
children: /* @__PURE__ */ _("div", {
|
|
3702
3702
|
ref: e,
|
|
3703
3703
|
"data-slot": "sheet-overlay",
|
|
3704
3704
|
"data-state": A ? "open" : "closed",
|
|
3705
|
-
className: S(
|
|
3705
|
+
className: S(Z.backdrop, m && Z["backdrop--contained"]),
|
|
3706
3706
|
onPointerDown: (e) => {
|
|
3707
3707
|
e.target === e.currentTarget && a && n(!1);
|
|
3708
3708
|
},
|
|
@@ -3713,32 +3713,32 @@ function Si({ ref: e, open: t, onOpenChange: n, header: r, children: i, dismissa
|
|
|
3713
3713
|
tabIndex: -1,
|
|
3714
3714
|
"data-slot": "sheet-content",
|
|
3715
3715
|
"data-state": A ? "open" : "closed",
|
|
3716
|
-
className: S(
|
|
3716
|
+
className: S(Z.panel, l),
|
|
3717
3717
|
onKeyDown: E,
|
|
3718
3718
|
children: [/* @__PURE__ */ v("div", {
|
|
3719
3719
|
"data-slot": "sheet-grip",
|
|
3720
|
-
className:
|
|
3720
|
+
className: Z.grip,
|
|
3721
3721
|
onPointerDown: D,
|
|
3722
3722
|
onPointerMove: O,
|
|
3723
3723
|
onPointerUp: k,
|
|
3724
3724
|
onPointerCancel: k,
|
|
3725
3725
|
children: [a ? /* @__PURE__ */ _("span", {
|
|
3726
3726
|
"data-slot": "sheet-handle",
|
|
3727
|
-
className:
|
|
3727
|
+
className: Z.handle,
|
|
3728
3728
|
"aria-hidden": !0
|
|
3729
3729
|
}) : null, r == null ? null : /* @__PURE__ */ v("div", {
|
|
3730
3730
|
"data-slot": "sheet-header",
|
|
3731
|
-
className:
|
|
3731
|
+
className: Z.header,
|
|
3732
3732
|
children: [/* @__PURE__ */ _("div", {
|
|
3733
3733
|
"data-slot": "sheet-title",
|
|
3734
|
-
className:
|
|
3734
|
+
className: Z.title,
|
|
3735
3735
|
children: r
|
|
3736
|
-
}), a ? /* @__PURE__ */ _(
|
|
3736
|
+
}), a ? /* @__PURE__ */ _(sr, {
|
|
3737
3737
|
mode: "gray",
|
|
3738
3738
|
size: "s",
|
|
3739
3739
|
circle: !0,
|
|
3740
3740
|
"data-slot": "sheet-close",
|
|
3741
|
-
className:
|
|
3741
|
+
className: Z.close,
|
|
3742
3742
|
"aria-label": s,
|
|
3743
3743
|
onClick: () => n(!1),
|
|
3744
3744
|
children: /* @__PURE__ */ _("svg", {
|
|
@@ -3757,33 +3757,33 @@ function Si({ ref: e, open: t, onOpenChange: n, header: r, children: i, dismissa
|
|
|
3757
3757
|
})]
|
|
3758
3758
|
}), /* @__PURE__ */ _("div", {
|
|
3759
3759
|
"data-slot": "sheet-body",
|
|
3760
|
-
className:
|
|
3760
|
+
className: Z.body,
|
|
3761
3761
|
children: i
|
|
3762
3762
|
})]
|
|
3763
3763
|
})
|
|
3764
3764
|
})
|
|
3765
3765
|
});
|
|
3766
3766
|
}
|
|
3767
|
-
|
|
3768
|
-
var
|
|
3767
|
+
Ci.displayName = "Sheet";
|
|
3768
|
+
var wi = {
|
|
3769
3769
|
skeleton: "_skeleton_s4uv6_1",
|
|
3770
3770
|
"tgui-skeleton": "_tgui-skeleton_s4uv6_1"
|
|
3771
3771
|
};
|
|
3772
3772
|
//#endregion
|
|
3773
3773
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
3774
|
-
function
|
|
3774
|
+
function Ti({ ref: e, visible: t = !0, className: n, children: r, ...i }) {
|
|
3775
3775
|
return /* @__PURE__ */ _("div", {
|
|
3776
3776
|
ref: e,
|
|
3777
3777
|
"data-slot": "skeleton",
|
|
3778
3778
|
"data-state": t ? "loading" : "loaded",
|
|
3779
3779
|
"aria-hidden": t || void 0,
|
|
3780
|
-
className: S(
|
|
3780
|
+
className: S(wi.skeleton, n),
|
|
3781
3781
|
...i,
|
|
3782
3782
|
children: r
|
|
3783
3783
|
});
|
|
3784
3784
|
}
|
|
3785
|
-
|
|
3786
|
-
var
|
|
3785
|
+
Ti.displayName = "Skeleton";
|
|
3786
|
+
var Ei = {
|
|
3787
3787
|
slider: "_slider_o0rm3_1",
|
|
3788
3788
|
track: "_track_o0rm3_8",
|
|
3789
3789
|
rail: "_rail_o0rm3_16",
|
|
@@ -3793,36 +3793,36 @@ var Ti = {
|
|
|
3793
3793
|
};
|
|
3794
3794
|
//#endregion
|
|
3795
3795
|
//#region src/components/Slider/Slider.tsx
|
|
3796
|
-
function
|
|
3796
|
+
function Di({ ref: e, value: t, defaultValue: n, onValueChange: r, min: i = 0, max: a = 100, step: o = 1, before: s, after: c, disabled: l, className: u, ...d }) {
|
|
3797
3797
|
let [f, m] = p(n ?? i), h = t ?? f, g = a > i ? (h - i) / (a - i) * 100 : 0, y = M();
|
|
3798
3798
|
return /* @__PURE__ */ v("div", {
|
|
3799
3799
|
"data-slot": "slider",
|
|
3800
|
-
className: S(
|
|
3800
|
+
className: S(Ei.slider, u),
|
|
3801
3801
|
"data-disabled": l || void 0,
|
|
3802
3802
|
children: [
|
|
3803
3803
|
s == null ? null : /* @__PURE__ */ _("span", {
|
|
3804
3804
|
"data-slot": "slider-before",
|
|
3805
|
-
className:
|
|
3805
|
+
className: Ei.side,
|
|
3806
3806
|
children: s
|
|
3807
3807
|
}),
|
|
3808
3808
|
/* @__PURE__ */ v("span", {
|
|
3809
3809
|
"data-slot": "slider-track",
|
|
3810
|
-
className:
|
|
3810
|
+
className: Ei.track,
|
|
3811
3811
|
children: [
|
|
3812
3812
|
/* @__PURE__ */ _("span", {
|
|
3813
3813
|
"data-slot": "slider-rail",
|
|
3814
|
-
className:
|
|
3814
|
+
className: Ei.rail
|
|
3815
3815
|
}),
|
|
3816
3816
|
/* @__PURE__ */ _("span", {
|
|
3817
3817
|
"data-slot": "slider-range",
|
|
3818
|
-
className:
|
|
3818
|
+
className: Ei.fill,
|
|
3819
3819
|
style: { width: `${Math.max(0, Math.min(100, g))}%` }
|
|
3820
3820
|
}),
|
|
3821
3821
|
/* @__PURE__ */ _("input", {
|
|
3822
3822
|
ref: e,
|
|
3823
3823
|
type: "range",
|
|
3824
3824
|
"data-slot": "slider-input",
|
|
3825
|
-
className:
|
|
3825
|
+
className: Ei.input,
|
|
3826
3826
|
min: i,
|
|
3827
3827
|
max: a,
|
|
3828
3828
|
step: o,
|
|
@@ -3838,18 +3838,18 @@ function Ei({ ref: e, value: t, defaultValue: n, onValueChange: r, min: i = 0, m
|
|
|
3838
3838
|
}),
|
|
3839
3839
|
c == null ? null : /* @__PURE__ */ _("span", {
|
|
3840
3840
|
"data-slot": "slider-after",
|
|
3841
|
-
className:
|
|
3841
|
+
className: Ei.side,
|
|
3842
3842
|
children: c
|
|
3843
3843
|
})
|
|
3844
3844
|
]
|
|
3845
3845
|
});
|
|
3846
3846
|
}
|
|
3847
|
-
|
|
3847
|
+
Di.displayName = "Slider";
|
|
3848
3848
|
//#endregion
|
|
3849
3849
|
//#region src/components/Snackbar/context.ts
|
|
3850
|
-
var
|
|
3851
|
-
|
|
3852
|
-
var
|
|
3850
|
+
var Oi = i(null);
|
|
3851
|
+
Oi.displayName = "SnackbarContext";
|
|
3852
|
+
var Q = {
|
|
3853
3853
|
viewport: "_viewport_1sk2o_1",
|
|
3854
3854
|
snackbar: "_snackbar_1sk2o_19",
|
|
3855
3855
|
"snackbar--dragging": "_snackbar--dragging_1sk2o_55",
|
|
@@ -3872,11 +3872,11 @@ function ji({ children: e, duration: t = 4e3, max: n = 3 }) {
|
|
|
3872
3872
|
show: c,
|
|
3873
3873
|
dismiss: s
|
|
3874
3874
|
}), [c, s]);
|
|
3875
|
-
return /* @__PURE__ */ v(
|
|
3875
|
+
return /* @__PURE__ */ v(Oi.Provider, {
|
|
3876
3876
|
value: l,
|
|
3877
|
-
children: [e, r.length > 0 ? /* @__PURE__ */ _(
|
|
3877
|
+
children: [e, r.length > 0 ? /* @__PURE__ */ _(Dn, { children: /* @__PURE__ */ _("div", {
|
|
3878
3878
|
"data-slot": "snackbar-viewport",
|
|
3879
|
-
className:
|
|
3879
|
+
className: Q.viewport,
|
|
3880
3880
|
children: r.map((e) => /* @__PURE__ */ _(Mi, {
|
|
3881
3881
|
item: e,
|
|
3882
3882
|
defaultDuration: t,
|
|
@@ -3887,7 +3887,7 @@ function ji({ children: e, duration: t = 4e3, max: n = 3 }) {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
ji.displayName = "SnackbarProvider";
|
|
3889
3889
|
function Mi({ item: e, defaultDuration: t, onDismiss: n }) {
|
|
3890
|
-
let r =
|
|
3890
|
+
let r = _i(), [i, a] = p(!1), [s, l] = p(!1), d = f(null), m = e.duration ?? t, h = f(m), g = f(0), y = f(null), b = f({
|
|
3891
3891
|
id: -1,
|
|
3892
3892
|
startX: 0,
|
|
3893
3893
|
active: !1
|
|
@@ -3925,7 +3925,7 @@ function Mi({ item: e, defaultDuration: t, onDismiss: n }) {
|
|
|
3925
3925
|
let n = e.clientX - t.startX;
|
|
3926
3926
|
if (!t.active) {
|
|
3927
3927
|
if (Math.abs(n) < 6) return;
|
|
3928
|
-
t.active = !0, e.currentTarget.setPointerCapture(e.pointerId), d.current?.classList.add(
|
|
3928
|
+
t.active = !0, e.currentTarget.setPointerCapture(e.pointerId), d.current?.classList.add(Q["snackbar--dragging"]);
|
|
3929
3929
|
}
|
|
3930
3930
|
d.current && (d.current.style.transform = `translateX(${n}px)`, d.current.style.opacity = `${Math.max(0, 1 - Math.abs(n) / 240)}`);
|
|
3931
3931
|
}, E = (e) => {
|
|
@@ -3938,7 +3938,7 @@ function Mi({ item: e, defaultDuration: t, onDismiss: n }) {
|
|
|
3938
3938
|
};
|
|
3939
3939
|
let i = d.current;
|
|
3940
3940
|
if (!i) return;
|
|
3941
|
-
i.classList.remove(
|
|
3941
|
+
i.classList.remove(Q["snackbar--dragging"]);
|
|
3942
3942
|
let a = e.clientX - t.startX;
|
|
3943
3943
|
if (t.active && Math.abs(a) > Ai) {
|
|
3944
3944
|
if (r) {
|
|
@@ -3954,7 +3954,7 @@ function Mi({ item: e, defaultDuration: t, onDismiss: n }) {
|
|
|
3954
3954
|
ref: d,
|
|
3955
3955
|
"data-slot": "snackbar",
|
|
3956
3956
|
"data-state": i && !s ? "open" : "closed",
|
|
3957
|
-
className:
|
|
3957
|
+
className: Q.snackbar,
|
|
3958
3958
|
role: "status",
|
|
3959
3959
|
onMouseEnter: S,
|
|
3960
3960
|
onMouseLeave: C,
|
|
@@ -3967,26 +3967,26 @@ function Mi({ item: e, defaultDuration: t, onDismiss: n }) {
|
|
|
3967
3967
|
children: [
|
|
3968
3968
|
e.before == null ? null : /* @__PURE__ */ _("span", {
|
|
3969
3969
|
"data-slot": "snackbar-before",
|
|
3970
|
-
className:
|
|
3970
|
+
className: Q.before,
|
|
3971
3971
|
children: e.before
|
|
3972
3972
|
}),
|
|
3973
3973
|
/* @__PURE__ */ v("div", {
|
|
3974
3974
|
"data-slot": "snackbar-body",
|
|
3975
|
-
className:
|
|
3975
|
+
className: Q.body,
|
|
3976
3976
|
children: [/* @__PURE__ */ _("span", {
|
|
3977
3977
|
"data-slot": "snackbar-message",
|
|
3978
|
-
className:
|
|
3978
|
+
className: Q.message,
|
|
3979
3979
|
children: e.message
|
|
3980
3980
|
}), e.description == null ? null : /* @__PURE__ */ _("span", {
|
|
3981
3981
|
"data-slot": "snackbar-description",
|
|
3982
|
-
className:
|
|
3982
|
+
className: Q.description,
|
|
3983
3983
|
children: e.description
|
|
3984
3984
|
})]
|
|
3985
3985
|
}),
|
|
3986
3986
|
e.action == null ? null : /* @__PURE__ */ _("button", {
|
|
3987
3987
|
type: "button",
|
|
3988
3988
|
"data-slot": "snackbar-action",
|
|
3989
|
-
className:
|
|
3989
|
+
className: Q.action,
|
|
3990
3990
|
onClick: () => {
|
|
3991
3991
|
e.action?.onClick(), x();
|
|
3992
3992
|
},
|
|
@@ -3998,7 +3998,7 @@ function Mi({ item: e, defaultDuration: t, onDismiss: n }) {
|
|
|
3998
3998
|
//#endregion
|
|
3999
3999
|
//#region src/components/Snackbar/useSnackbar.ts
|
|
4000
4000
|
function Ni() {
|
|
4001
|
-
let e = s(
|
|
4001
|
+
let e = s(Oi);
|
|
4002
4002
|
if (!e) throw Error("useSnackbar must be used within a <SnackbarProvider>.");
|
|
4003
4003
|
return e;
|
|
4004
4004
|
}
|
|
@@ -4067,7 +4067,7 @@ function Hi(e) {
|
|
|
4067
4067
|
];
|
|
4068
4068
|
}
|
|
4069
4069
|
function Ui({ ref: e, open: t, defaultOpen: n = !1, onOpenChange: r, revealOn: i = "click", accentColor: a, density: o = .1, fps: s = 40, revealLabel: l = "Reveal hidden text", className: u, style: d, children: m, onClick: h, onKeyDown: g, onMouseEnter: y, onMouseLeave: b, ...x }) {
|
|
4070
|
-
let [C, w] = p(n), T = t ?? C, E =
|
|
4070
|
+
let [C, w] = p(n), T = t ?? C, E = _i(), D = i === "click", O = f(null), k = f(null), A = f([]), j = f([
|
|
4071
4071
|
128,
|
|
4072
4072
|
128,
|
|
4073
4073
|
128
|
|
@@ -4185,7 +4185,7 @@ var Wi = {
|
|
|
4185
4185
|
})
|
|
4186
4186
|
});
|
|
4187
4187
|
function Ji({ ref: e, value: t, defaultValue: n, onValueChange: r, min: i = 0, max: a = Infinity, step: o = 1, disabled: s = !1, className: l, ...u }) {
|
|
4188
|
-
let d =
|
|
4188
|
+
let d = _i(), [m, h] = p(n ?? i), g = t ?? m, [y, b] = p(String(g)), [x, C] = p(null), w = f(g), T = (e) => {
|
|
4189
4189
|
t ?? h(e), r?.(e);
|
|
4190
4190
|
};
|
|
4191
4191
|
c(() => {
|
|
@@ -4203,7 +4203,7 @@ function Ji({ ref: e, value: t, defaultValue: n, onValueChange: r, min: i = 0, m
|
|
|
4203
4203
|
className: S(Wi.stepper, l),
|
|
4204
4204
|
...u,
|
|
4205
4205
|
children: [
|
|
4206
|
-
/* @__PURE__ */ _(
|
|
4206
|
+
/* @__PURE__ */ _(sr, {
|
|
4207
4207
|
mode: "gray",
|
|
4208
4208
|
size: "s",
|
|
4209
4209
|
circle: !0,
|
|
@@ -4227,7 +4227,7 @@ function Ji({ ref: e, value: t, defaultValue: n, onValueChange: r, min: i = 0, m
|
|
|
4227
4227
|
onKeyDown: D,
|
|
4228
4228
|
onAnimationEnd: () => C(null)
|
|
4229
4229
|
}),
|
|
4230
|
-
/* @__PURE__ */ _(
|
|
4230
|
+
/* @__PURE__ */ _(sr, {
|
|
4231
4231
|
mode: "gray",
|
|
4232
4232
|
size: "s",
|
|
4233
4233
|
circle: !0,
|
|
@@ -4328,7 +4328,7 @@ function ta({ ref: e, selected: t, text: n, children: r, className: i, ...a }) {
|
|
|
4328
4328
|
"data-slot": "tab-bar-item-icon",
|
|
4329
4329
|
className: ea.icon,
|
|
4330
4330
|
children: r
|
|
4331
|
-
}), n == null ? null : /* @__PURE__ */ _(
|
|
4331
|
+
}), n == null ? null : /* @__PURE__ */ _(Ge, {
|
|
4332
4332
|
"data-slot": "tab-bar-item-label",
|
|
4333
4333
|
className: ea.text,
|
|
4334
4334
|
weight: "2",
|
|
@@ -4355,7 +4355,7 @@ var ra = { field: "_field_6mmqo_1" };
|
|
|
4355
4355
|
//#endregion
|
|
4356
4356
|
//#region src/components/Textarea/Textarea.tsx
|
|
4357
4357
|
function ia({ ref: e, header: t, status: n, autoGrow: r = !1, maxRows: i, rows: a = 3, disabled: s, className: l, value: u, defaultValue: d, onFocus: m, onBlur: h, onChange: g, ...v }) {
|
|
4358
|
-
let { platform: y } = N(), b = y === "ios", [x, S] = p(!1), C = n ?? (x ? "focused" : "default"), w = b ?
|
|
4358
|
+
let { platform: y } = N(), b = y === "ios", [x, S] = p(!1), C = n ?? (x ? "focused" : "default"), w = b ? Le : z, T = f(null), E = o((t) => {
|
|
4359
4359
|
T.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
|
|
4360
4360
|
}, [e]), D = o(() => {
|
|
4361
4361
|
let e = T.current;
|
|
@@ -4368,7 +4368,7 @@ function ia({ ref: e, header: t, status: n, autoGrow: r = !1, maxRows: i, rows:
|
|
|
4368
4368
|
D,
|
|
4369
4369
|
u,
|
|
4370
4370
|
d
|
|
4371
|
-
]), /* @__PURE__ */ _(
|
|
4371
|
+
]), /* @__PURE__ */ _(_r, {
|
|
4372
4372
|
ios: b,
|
|
4373
4373
|
status: C,
|
|
4374
4374
|
disabled: s,
|
|
@@ -4474,7 +4474,7 @@ function da(e, t, n, r) {
|
|
|
4474
4474
|
o === "top" || o === "bottom" ? (c = e.left + e.width / 2 - t.width / 2, s = o === "top" ? e.top - t.height - ca : e.bottom + ca) : (s = e.top + e.height / 2 - t.height / 2, c = o === "left" ? e.left - t.width - ca : e.right + ca), c = ua(c, la, i - t.width - la), s = ua(s, la, a - t.height - la);
|
|
4475
4475
|
let l = e.left + e.width / 2 - c, u = e.top + e.height / 2 - s, d = {};
|
|
4476
4476
|
o === "top" ? (d.left = ua(l, 10, t.width - 10) - 4, d.bottom = -4) : o === "bottom" ? (d.left = ua(l, 10, t.width - 10) - 4, d.top = -4) : o === "left" ? (d.top = ua(u, 10, t.height - 10) - 4, d.right = -4) : (d.top = ua(u, 10, t.height - 10) - 4, d.left = -4);
|
|
4477
|
-
let f =
|
|
4477
|
+
let f = Vn(r);
|
|
4478
4478
|
return {
|
|
4479
4479
|
top: (s - f.y) / f.scale,
|
|
4480
4480
|
left: (c - f.x) / f.scale,
|
|
@@ -4538,7 +4538,7 @@ function fa({ ref: e, children: t, content: n, placement: r = "top", open: i, de
|
|
|
4538
4538
|
onFocus: () => k(!0),
|
|
4539
4539
|
onBlur: () => k(!1),
|
|
4540
4540
|
children: t
|
|
4541
|
-
}), /* @__PURE__ */ _(
|
|
4541
|
+
}), /* @__PURE__ */ _(Dn, { children: /* @__PURE__ */ _(xn, {
|
|
4542
4542
|
present: y,
|
|
4543
4543
|
children: /* @__PURE__ */ v("div", {
|
|
4544
4544
|
ref: (e) => {
|
|
@@ -4572,6 +4572,178 @@ function fa({ ref: e, children: t, content: n, placement: r = "top", open: i, de
|
|
|
4572
4572
|
}
|
|
4573
4573
|
fa.displayName = "Tooltip";
|
|
4574
4574
|
//#endregion
|
|
4575
|
-
|
|
4575
|
+
//#region src/telegram/lib.ts
|
|
4576
|
+
function pa(e, t) {
|
|
4577
|
+
let n = w();
|
|
4578
|
+
return n == null || typeof n.onEvent != "function" ? () => {} : (n.onEvent(e, t), () => n.offEvent?.(e, t));
|
|
4579
|
+
}
|
|
4580
|
+
//#endregion
|
|
4581
|
+
//#region src/telegram/useBackButton.ts
|
|
4582
|
+
function ma(e, t = !0) {
|
|
4583
|
+
let n = f(e);
|
|
4584
|
+
n.current = e, c(() => {
|
|
4585
|
+
let e = w()?.BackButton;
|
|
4586
|
+
if (e == null) return;
|
|
4587
|
+
let r = () => n.current();
|
|
4588
|
+
return e.onClick(r), t ? e.show() : e.hide(), () => {
|
|
4589
|
+
e.offClick(r), e.hide();
|
|
4590
|
+
};
|
|
4591
|
+
}, [t]);
|
|
4592
|
+
}
|
|
4593
|
+
//#endregion
|
|
4594
|
+
//#region src/telegram/useClosingConfirmation.ts
|
|
4595
|
+
function ha(e) {
|
|
4596
|
+
c(() => {
|
|
4597
|
+
let t = w();
|
|
4598
|
+
if (t == null || typeof t.enableClosingConfirmation != "function") return;
|
|
4599
|
+
let n = t.isClosingConfirmationEnabled;
|
|
4600
|
+
return e ? t.enableClosingConfirmation() : t.disableClosingConfirmation(), () => {
|
|
4601
|
+
n ? t.enableClosingConfirmation() : t.disableClosingConfirmation();
|
|
4602
|
+
};
|
|
4603
|
+
}, [e]);
|
|
4604
|
+
}
|
|
4605
|
+
//#endregion
|
|
4606
|
+
//#region src/telegram/useCloudStorage.ts
|
|
4607
|
+
var ga = () => Promise.reject(/* @__PURE__ */ Error("CloudStorage is unavailable (needs Telegram, Bot API 6.9+)"));
|
|
4608
|
+
function _a() {
|
|
4609
|
+
return d(() => {
|
|
4610
|
+
let e = w()?.CloudStorage;
|
|
4611
|
+
return e == null || !T("6.9") ? {
|
|
4612
|
+
isAvailable: !1,
|
|
4613
|
+
getItem: ga,
|
|
4614
|
+
getItems: ga,
|
|
4615
|
+
setItem: ga,
|
|
4616
|
+
removeItem: ga,
|
|
4617
|
+
removeItems: ga,
|
|
4618
|
+
getKeys: ga
|
|
4619
|
+
} : {
|
|
4620
|
+
isAvailable: !0,
|
|
4621
|
+
getItem: (t) => new Promise((n, r) => {
|
|
4622
|
+
e.getItem(t, (e, t) => e ? r(Error(e)) : n(t === "" ? null : t));
|
|
4623
|
+
}),
|
|
4624
|
+
getItems: (t) => new Promise((n, r) => {
|
|
4625
|
+
e.getItems(t, (e, t) => e ? r(Error(e)) : n(t));
|
|
4626
|
+
}),
|
|
4627
|
+
setItem: (t, n) => new Promise((r, i) => {
|
|
4628
|
+
e.setItem(t, n, (e) => e ? i(Error(e)) : r());
|
|
4629
|
+
}),
|
|
4630
|
+
removeItem: (t) => new Promise((n, r) => {
|
|
4631
|
+
e.removeItem(t, (e) => e ? r(Error(e)) : n());
|
|
4632
|
+
}),
|
|
4633
|
+
removeItems: (t) => new Promise((n, r) => {
|
|
4634
|
+
e.removeItems(t, (e) => e ? r(Error(e)) : n());
|
|
4635
|
+
}),
|
|
4636
|
+
getKeys: () => new Promise((t, n) => {
|
|
4637
|
+
e.getKeys((e, r) => e ? n(Error(e)) : t(r));
|
|
4638
|
+
})
|
|
4639
|
+
};
|
|
4640
|
+
}, []);
|
|
4641
|
+
}
|
|
4642
|
+
//#endregion
|
|
4643
|
+
//#region src/telegram/useInitData.ts
|
|
4644
|
+
function va() {
|
|
4645
|
+
return d(() => {
|
|
4646
|
+
let e = w(), t = e?.initDataUnsafe ?? null;
|
|
4647
|
+
return {
|
|
4648
|
+
raw: e?.initData ?? "",
|
|
4649
|
+
unsafe: t,
|
|
4650
|
+
user: t?.user ?? null,
|
|
4651
|
+
startParam: t?.start_param ?? null
|
|
4652
|
+
};
|
|
4653
|
+
}, []);
|
|
4654
|
+
}
|
|
4655
|
+
//#endregion
|
|
4656
|
+
//#region src/telegram/bottomButton.ts
|
|
4657
|
+
function ya(e, t) {
|
|
4658
|
+
let { text: n, onClick: r, visible: i = !0, enabled: a = !0, loading: o = !1, color: s, textColor: l, hasShineEffect: u, position: d } = t, p = f(r);
|
|
4659
|
+
p.current = r, c(() => {
|
|
4660
|
+
let t = w(), r = e === "main" ? t?.MainButton : t?.SecondaryButton;
|
|
4661
|
+
if (r == null || e === "secondary" && !T("7.10")) return;
|
|
4662
|
+
let c = () => p.current?.();
|
|
4663
|
+
if (r.onClick(c), i && (n ?? "").trim().length > 0) {
|
|
4664
|
+
let t = {
|
|
4665
|
+
text: n,
|
|
4666
|
+
is_visible: !0,
|
|
4667
|
+
is_active: a && !o
|
|
4668
|
+
};
|
|
4669
|
+
s !== void 0 && (t.color = s), l !== void 0 && (t.text_color = l), u !== void 0 && (t.has_shine_effect = u), e === "secondary" && d !== void 0 && (t.position = d), r.setParams(t), o ? r.showProgress() : r.hideProgress();
|
|
4670
|
+
} else r.hide();
|
|
4671
|
+
return () => {
|
|
4672
|
+
r.offClick(c), r.hideProgress(), r.hide();
|
|
4673
|
+
};
|
|
4674
|
+
}, [
|
|
4675
|
+
e,
|
|
4676
|
+
n,
|
|
4677
|
+
i,
|
|
4678
|
+
a,
|
|
4679
|
+
o,
|
|
4680
|
+
s,
|
|
4681
|
+
l,
|
|
4682
|
+
u,
|
|
4683
|
+
d
|
|
4684
|
+
]);
|
|
4685
|
+
}
|
|
4686
|
+
//#endregion
|
|
4687
|
+
//#region src/telegram/useMainButton.ts
|
|
4688
|
+
function ba(e) {
|
|
4689
|
+
ya("main", e);
|
|
4690
|
+
}
|
|
4691
|
+
//#endregion
|
|
4692
|
+
//#region src/telegram/useSecondaryButton.ts
|
|
4693
|
+
function xa(e) {
|
|
4694
|
+
ya("secondary", e);
|
|
4695
|
+
}
|
|
4696
|
+
//#endregion
|
|
4697
|
+
//#region src/telegram/useSettingsButton.ts
|
|
4698
|
+
function Sa(e, t = !0) {
|
|
4699
|
+
let n = f(e);
|
|
4700
|
+
n.current = e, c(() => {
|
|
4701
|
+
let e = w()?.SettingsButton;
|
|
4702
|
+
if (e == null) return;
|
|
4703
|
+
let r = () => n.current();
|
|
4704
|
+
return e.onClick(r), t ? e.show() : e.hide(), () => {
|
|
4705
|
+
e.offClick(r), e.hide();
|
|
4706
|
+
};
|
|
4707
|
+
}, [t]);
|
|
4708
|
+
}
|
|
4709
|
+
//#endregion
|
|
4710
|
+
//#region src/telegram/useVerticalSwipes.ts
|
|
4711
|
+
function Ca(e) {
|
|
4712
|
+
c(() => {
|
|
4713
|
+
let t = w();
|
|
4714
|
+
if (t != null && typeof t.disableVerticalSwipes == "function") return e ? t.enableVerticalSwipes() : t.disableVerticalSwipes(), () => t.enableVerticalSwipes?.();
|
|
4715
|
+
}, [e]);
|
|
4716
|
+
}
|
|
4717
|
+
//#endregion
|
|
4718
|
+
//#region src/telegram/useViewport.ts
|
|
4719
|
+
var wa = () => w()?.expand(), Ta = null;
|
|
4720
|
+
function Ea() {
|
|
4721
|
+
let e = w(), t = e?.viewportHeight ?? (typeof window < "u" ? window.innerHeight : 0), n = e?.viewportStableHeight ?? t, r = e?.isExpanded ?? !0;
|
|
4722
|
+
return Ta != null && Ta.height === t && Ta.stableHeight === n && Ta.isExpanded === r || (Ta = {
|
|
4723
|
+
height: t,
|
|
4724
|
+
stableHeight: n,
|
|
4725
|
+
isExpanded: r,
|
|
4726
|
+
isStable: t === n,
|
|
4727
|
+
expand: wa
|
|
4728
|
+
}), Ta;
|
|
4729
|
+
}
|
|
4730
|
+
function Da(e) {
|
|
4731
|
+
let t = pa("viewportChanged", e);
|
|
4732
|
+
return w() == null && typeof window < "u" ? (window.addEventListener("resize", e), () => {
|
|
4733
|
+
t(), window.removeEventListener("resize", e);
|
|
4734
|
+
}) : t;
|
|
4735
|
+
}
|
|
4736
|
+
var Oa = {
|
|
4737
|
+
height: 0,
|
|
4738
|
+
stableHeight: 0,
|
|
4739
|
+
isExpanded: !0,
|
|
4740
|
+
isStable: !0,
|
|
4741
|
+
expand: () => {}
|
|
4742
|
+
};
|
|
4743
|
+
function ka() {
|
|
4744
|
+
return m(Da, Ea, () => Oa);
|
|
4745
|
+
}
|
|
4746
|
+
//#endregion
|
|
4747
|
+
export { oe as Accordion, se as AccordionItem, ue as Avatar, fe as AvatarStack, me as Badge, ge as Banner, ve as Blockquote, xe as Breadcrumbs, Be as Button, He as Callout, Ge as Caption, $e as Card, Qe as CardCell, Ze as Cell, tt as Checkbox, it as Chip, ct as CircularProgress, Ar as CompactPagination, jn as Dialog, Nn as Divider, J as DropdownMenu, Ln as DropdownMenuCheckboxItem, Wn as DropdownMenuContent, Gn as DropdownMenuItem, Kn as DropdownMenuLabel, qn as DropdownMenuRadioGroup, Jn as DropdownMenuRadioItem, Yn as DropdownMenuSeparator, Xn as DropdownMenuTrigger, Qn as FixedLayout, er as Footnote, nr as Headline, ar as HorizontalScroll, sr as IconButton, ur as Image, hr as InlineButtons, mr as InlineButtonsItem, yr as Input, xr as LargeTitle, Cr as Link, Tr as List, Mr as Pagination, Fr as PinInput, Br as Placeholder, Gr as Popover, Ur as PopoverContent, Wr as PopoverTrigger, Dn as Portal, qr as Progress, Yr as Radio, Qr as Rating, ti as SearchBar, si as Section, ri as SectionFooter, ai as SectionHeader, ui as SegmentedControl, di as SegmentedControlItem, pi as Select, Ci as Sheet, Ti as Skeleton, Di as Slider, ji as SnackbarProvider, we as Spinner, Ui as Spoiler, Ji as Stepper, Zi as Steps, z as Subheadline, $i as Switch, na as TabBar, ta as TabBarItem, Fe as Tappable, Le as Text, ia as Textarea, ne as TguiProvider, aa as Timeline, oa as TimelineItem, Rr as Title, fa as Tooltip, R as Typography, w as getTelegramWebApp, T as isTelegramVersionAtLeast, pa as onTelegramEvent, re as triggerHaptic, ma as useBackButton, ha as useClosingConfirmation, _a as useCloudStorage, M as useHaptic, va as useInitData, ba as useMainButton, xa as useSecondaryButton, Sa as useSettingsButton, Ni as useSnackbar, N as useTgui, Ca as useVerticalSwipes, ka as useViewport };
|
|
4576
4748
|
|
|
4577
4749
|
//# sourceMappingURL=index.js.map
|