@scbt-ecom/ui 0.18.0 → 0.19.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.
Files changed (49) hide show
  1. package/dist/{CustomLink-CcSUq55J.js → CustomLink-fkoWqN7e.js} +2181 -2179
  2. package/dist/CustomLink-fkoWqN7e.js.map +1 -0
  3. package/dist/shared/ui/formElements/CheckboxControl.d.ts +3 -0
  4. package/dist/shared/ui/formElements/InputControl.d.ts +3 -0
  5. package/dist/shared/ui/formElements/comboboxControl/ComboboxControl.d.ts +3 -0
  6. package/dist/shared/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +15 -2
  7. package/dist/shared/ui/formElements/controlled/dayPickerControl/dayPickerControl.d.ts +12 -0
  8. package/dist/shared/ui/formElements/controlled/index.d.ts +15 -13
  9. package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +10 -1
  10. package/dist/shared/ui/formElements/controlled/input/MaskInputControl.d.ts +10 -1
  11. package/dist/shared/ui/formElements/controlled/select/SelectControl.d.ts +11 -1
  12. package/dist/shared/ui/formElements/index.d.ts +2 -2
  13. package/dist/shared/ui/formElements/inputControlMask/InputControlMask.d.ts +3 -0
  14. package/dist/shared/ui/formElements/ui/fieldAttachment/FieldAttachment.d.ts +2 -1
  15. package/dist/shared/ui/formElements/ui/fieldAttachment/ui/IconSlot.d.ts +2 -2
  16. package/dist/shared/ui/{checkbox → formElements/uncontrolled/checkbox}/Checkbox.d.ts +2 -2
  17. package/dist/shared/ui/formElements/uncontrolled/checkbox/index.d.ts +1 -0
  18. package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +29 -0
  19. package/dist/shared/ui/formElements/uncontrolled/dayPicker/index.d.ts +1 -0
  20. package/dist/shared/ui/{input → formElements/uncontrolled/input}/Input.d.ts +2 -2
  21. package/dist/shared/ui/formElements/uncontrolled/input/index.d.ts +1 -0
  22. package/dist/shared/ui/{input → formElements/uncontrolled/maskInput}/MaskInput.d.ts +2 -2
  23. package/dist/shared/ui/{input → formElements/uncontrolled/maskInput}/index.d.ts +0 -1
  24. package/dist/shared/ui/{select → formElements/uncontrolled/select}/Select.d.ts +1 -1
  25. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/SelectItem.d.ts +2 -2
  26. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/SelectList.d.ts +1 -1
  27. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/Control.d.ts +1 -1
  28. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/hooks/useSelectController.d.ts +1 -1
  29. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/ui/Chip.d.ts +1 -1
  30. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/ui/ChipList.d.ts +1 -1
  31. package/dist/shared/ui/formElements/uploaderControl/model/hooks/useUploader.d.ts +1 -1
  32. package/dist/shared/ui/index.d.ts +0 -3
  33. package/dist/style.css +1 -1
  34. package/dist/ui.js +18757 -18660
  35. package/dist/ui.js.map +1 -1
  36. package/dist/widget.js +1 -1
  37. package/package.json +18 -8
  38. package/dist/CustomLink-CcSUq55J.js.map +0 -1
  39. package/dist/client.d.ts +0 -12
  40. package/dist/hybrid.d.ts +0 -24
  41. package/dist/shared/ui/checkbox/index.d.ts +0 -1
  42. package/dist/shared/ui/formElements/FormControl.d.ts +0 -3
  43. /package/dist/shared/ui/{input → formElements/uncontrolled/maskInput}/model/mask/index.d.ts +0 -0
  44. /package/dist/shared/ui/{input → formElements/uncontrolled/maskInput}/model/mask/utils.d.ts +0 -0
  45. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/index.d.ts +0 -0
  46. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/hooks/index.d.ts +0 -0
  47. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/index.d.ts +0 -0
  48. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/ui/index.d.ts +0 -0
  49. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/index.d.ts +0 -0
@@ -809,2202 +809,2181 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
809
809
  ),
810
810
  children: e
811
811
  }
812
- ), Zo = ["top", "right", "bottom", "left"], ge = Math.min, ee = Math.max, gt = Math.round, ct = Math.floor, se = (e) => ({
813
- x: e,
814
- y: e
815
- }), Qo = {
816
- left: "right",
817
- right: "left",
818
- bottom: "top",
819
- top: "bottom"
820
- }, ei = {
821
- start: "end",
822
- end: "start"
823
- };
824
- function Xt(e, t, n) {
825
- return ee(e, ge(t, n));
826
- }
827
- function pe(e, t) {
828
- return typeof e == "function" ? e(t) : e;
829
- }
830
- function he(e) {
831
- return e.split("-")[0];
832
- }
833
- function He(e) {
834
- return e.split("-")[1];
835
- }
836
- function tn(e) {
837
- return e === "x" ? "y" : "x";
838
- }
839
- function nn(e) {
840
- return e === "y" ? "height" : "width";
841
- }
842
- function ye(e) {
843
- return ["top", "bottom"].includes(he(e)) ? "y" : "x";
812
+ );
813
+ function Qe(e, t = []) {
814
+ let n = [];
815
+ function r(i, a) {
816
+ const s = d.createContext(a), u = n.length;
817
+ n = [...n, a];
818
+ const l = (p) => {
819
+ var w;
820
+ const { scope: v, children: m, ...x } = p, h = ((w = v == null ? void 0 : v[e]) == null ? void 0 : w[u]) || s, g = d.useMemo(() => x, Object.values(x));
821
+ return /* @__PURE__ */ y.jsx(h.Provider, { value: g, children: m });
822
+ };
823
+ l.displayName = i + "Provider";
824
+ function f(p, v) {
825
+ var h;
826
+ const m = ((h = v == null ? void 0 : v[e]) == null ? void 0 : h[u]) || s, x = d.useContext(m);
827
+ if (x) return x;
828
+ if (a !== void 0) return a;
829
+ throw new Error(`\`${p}\` must be used within \`${i}\``);
830
+ }
831
+ return [l, f];
832
+ }
833
+ const o = () => {
834
+ const i = n.map((a) => d.createContext(a));
835
+ return function(s) {
836
+ const u = (s == null ? void 0 : s[e]) || i;
837
+ return d.useMemo(
838
+ () => ({ [`__scope${e}`]: { ...s, [e]: u } }),
839
+ [s, u]
840
+ );
841
+ };
842
+ };
843
+ return o.scopeName = e, [r, Zo(o, ...t)];
844
844
  }
845
- function rn(e) {
846
- return tn(ye(e));
845
+ function Zo(...e) {
846
+ const t = e[0];
847
+ if (e.length === 1) return t;
848
+ const n = () => {
849
+ const r = e.map((o) => ({
850
+ useScope: o(),
851
+ scopeName: o.scopeName
852
+ }));
853
+ return function(i) {
854
+ const a = r.reduce((s, { useScope: u, scopeName: l }) => {
855
+ const p = u(i)[`__scope${l}`];
856
+ return { ...s, ...p };
857
+ }, {});
858
+ return d.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
859
+ };
860
+ };
861
+ return n.scopeName = t.scopeName, n;
847
862
  }
848
- function ti(e, t, n) {
849
- n === void 0 && (n = !1);
850
- const r = He(e), o = rn(e), i = nn(o);
851
- let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
852
- return t.reference[i] > t.floating[i] && (a = yt(a)), [a, yt(a)];
863
+ function In(e, t) {
864
+ if (typeof e == "function")
865
+ return e(t);
866
+ e != null && (e.current = t);
853
867
  }
854
- function ni(e) {
855
- const t = yt(e);
856
- return [Gt(e), t, Gt(t)];
868
+ function ir(...e) {
869
+ return (t) => {
870
+ let n = !1;
871
+ const r = e.map((o) => {
872
+ const i = In(o, t);
873
+ return !n && typeof i == "function" && (n = !0), i;
874
+ });
875
+ if (n)
876
+ return () => {
877
+ for (let o = 0; o < r.length; o++) {
878
+ const i = r[o];
879
+ typeof i == "function" ? i() : In(e[o], null);
880
+ }
881
+ };
882
+ };
857
883
  }
858
- function Gt(e) {
859
- return e.replace(/start|end/g, (t) => ei[t]);
884
+ function re(...e) {
885
+ return d.useCallback(ir(...e), e);
860
886
  }
861
- function ri(e, t, n) {
862
- const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], a = ["bottom", "top"];
863
- switch (e) {
864
- case "top":
865
- case "bottom":
866
- return n ? t ? o : r : t ? r : o;
867
- case "left":
868
- case "right":
869
- return t ? i : a;
870
- default:
871
- return [];
887
+ var Je = d.forwardRef((e, t) => {
888
+ const { children: n, ...r } = e, o = d.Children.toArray(n), i = o.find(ei);
889
+ if (i) {
890
+ const a = i.props.children, s = o.map((u) => u === i ? d.Children.count(a) > 1 ? d.Children.only(null) : d.isValidElement(a) ? a.props.children : null : u);
891
+ return /* @__PURE__ */ y.jsx(Xt, { ...r, ref: t, children: d.isValidElement(a) ? d.cloneElement(a, void 0, s) : null });
892
+ }
893
+ return /* @__PURE__ */ y.jsx(Xt, { ...r, ref: t, children: n });
894
+ });
895
+ Je.displayName = "Slot";
896
+ var Xt = d.forwardRef((e, t) => {
897
+ const { children: n, ...r } = e;
898
+ if (d.isValidElement(n)) {
899
+ const o = ni(n);
900
+ return d.cloneElement(n, {
901
+ ...ti(r, n.props),
902
+ // @ts-ignore
903
+ ref: t ? ir(t, o) : o
904
+ });
872
905
  }
906
+ return d.Children.count(n) > 1 ? d.Children.only(null) : null;
907
+ });
908
+ Xt.displayName = "SlotClone";
909
+ var Qo = ({ children: e }) => /* @__PURE__ */ y.jsx(y.Fragment, { children: e });
910
+ function ei(e) {
911
+ return d.isValidElement(e) && e.type === Qo;
873
912
  }
874
- function oi(e, t, n, r) {
875
- const o = He(e);
876
- let i = ri(he(e), n === "start", r);
877
- return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(Gt)))), i;
913
+ function ti(e, t) {
914
+ const n = { ...t };
915
+ for (const r in t) {
916
+ const o = e[r], i = t[r];
917
+ /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
918
+ i(...s), o(...s);
919
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
920
+ }
921
+ return { ...e, ...n };
878
922
  }
879
- function yt(e) {
880
- return e.replace(/left|right|bottom|top/g, (t) => Qo[t]);
923
+ function ni(e) {
924
+ var r, o;
925
+ let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
926
+ return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
881
927
  }
882
- function ii(e) {
883
- return {
884
- top: 0,
885
- right: 0,
886
- bottom: 0,
887
- left: 0,
888
- ...e
928
+ function ri(e) {
929
+ const t = e + "CollectionProvider", [n, r] = Qe(t), [o, i] = n(
930
+ t,
931
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
932
+ ), a = (m) => {
933
+ const { scope: x, children: h } = m, g = H.useRef(null), w = H.useRef(/* @__PURE__ */ new Map()).current;
934
+ return /* @__PURE__ */ y.jsx(o, { scope: x, itemMap: w, collectionRef: g, children: h });
889
935
  };
936
+ a.displayName = t;
937
+ const s = e + "CollectionSlot", u = H.forwardRef(
938
+ (m, x) => {
939
+ const { scope: h, children: g } = m, w = i(s, h), b = re(x, w.collectionRef);
940
+ return /* @__PURE__ */ y.jsx(Je, { ref: b, children: g });
941
+ }
942
+ );
943
+ u.displayName = s;
944
+ const l = e + "CollectionItemSlot", f = "data-radix-collection-item", p = H.forwardRef(
945
+ (m, x) => {
946
+ const { scope: h, children: g, ...w } = m, b = H.useRef(null), E = re(x, b), R = i(l, h);
947
+ return H.useEffect(() => (R.itemMap.set(b, { ref: b, ...w }), () => void R.itemMap.delete(b))), /* @__PURE__ */ y.jsx(Je, { [f]: "", ref: E, children: g });
948
+ }
949
+ );
950
+ p.displayName = l;
951
+ function v(m) {
952
+ const x = i(e + "CollectionConsumer", m);
953
+ return H.useCallback(() => {
954
+ const g = x.collectionRef.current;
955
+ if (!g) return [];
956
+ const w = Array.from(g.querySelectorAll(`[${f}]`));
957
+ return Array.from(x.itemMap.values()).sort(
958
+ (R, A) => w.indexOf(R.ref.current) - w.indexOf(A.ref.current)
959
+ );
960
+ }, [x.collectionRef, x.itemMap]);
961
+ }
962
+ return [
963
+ { Provider: a, Slot: u, ItemSlot: p },
964
+ v,
965
+ r
966
+ ];
890
967
  }
891
- function ir(e) {
892
- return typeof e != "number" ? ii(e) : {
893
- top: e,
894
- right: e,
895
- bottom: e,
896
- left: e
968
+ function se(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
969
+ return function(o) {
970
+ if (e == null || e(o), n === !1 || !o.defaultPrevented)
971
+ return t == null ? void 0 : t(o);
897
972
  };
898
973
  }
899
- function wt(e) {
900
- const {
901
- x: t,
902
- y: n,
903
- width: r,
904
- height: o
905
- } = e;
906
- return {
907
- width: r,
908
- height: o,
909
- top: n,
910
- left: t,
911
- right: t + r,
912
- bottom: n + o,
913
- x: t,
914
- y: n
915
- };
974
+ function ge(e) {
975
+ const t = d.useRef(e);
976
+ return d.useEffect(() => {
977
+ t.current = e;
978
+ }), d.useMemo(() => (...n) => {
979
+ var r;
980
+ return (r = t.current) == null ? void 0 : r.call(t, ...n);
981
+ }, []);
916
982
  }
917
- function In(e, t, n) {
918
- let {
919
- reference: r,
920
- floating: o
921
- } = e;
922
- const i = ye(t), a = rn(t), s = nn(a), u = he(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, v = r[s] / 2 - o[s] / 2;
923
- let m;
924
- switch (u) {
925
- case "top":
926
- m = {
927
- x: f,
928
- y: r.y - o.height
929
- };
930
- break;
931
- case "bottom":
932
- m = {
933
- x: f,
934
- y: r.y + r.height
935
- };
936
- break;
937
- case "right":
938
- m = {
939
- x: r.x + r.width,
940
- y: p
941
- };
942
- break;
943
- case "left":
944
- m = {
945
- x: r.x - o.width,
946
- y: p
947
- };
948
- break;
949
- default:
950
- m = {
951
- x: r.x,
952
- y: r.y
953
- };
954
- }
955
- switch (He(t)) {
956
- case "start":
957
- m[a] -= v * (n && l ? -1 : 1);
958
- break;
959
- case "end":
960
- m[a] += v * (n && l ? -1 : 1);
961
- break;
983
+ function Ct({
984
+ prop: e,
985
+ defaultProp: t,
986
+ onChange: n = () => {
962
987
  }
963
- return m;
988
+ }) {
989
+ const [r, o] = oi({ defaultProp: t, onChange: n }), i = e !== void 0, a = i ? e : r, s = ge(n), u = d.useCallback(
990
+ (l) => {
991
+ if (i) {
992
+ const p = typeof l == "function" ? l(e) : l;
993
+ p !== e && s(p);
994
+ } else
995
+ o(l);
996
+ },
997
+ [i, e, o, s]
998
+ );
999
+ return [a, u];
964
1000
  }
965
- const ai = async (e, t, n) => {
966
- const {
967
- placement: r = "bottom",
968
- strategy: o = "absolute",
969
- middleware: i = [],
970
- platform: a
971
- } = n, s = i.filter(Boolean), u = await (a.isRTL == null ? void 0 : a.isRTL(t));
972
- let l = await a.getElementRects({
973
- reference: e,
974
- floating: t,
975
- strategy: o
976
- }), {
977
- x: f,
978
- y: p
979
- } = In(l, r, u), v = r, m = {}, x = 0;
980
- for (let h = 0; h < s.length; h++) {
1001
+ function oi({
1002
+ defaultProp: e,
1003
+ onChange: t
1004
+ }) {
1005
+ const n = d.useState(e), [r] = n, o = d.useRef(r), i = ge(t);
1006
+ return d.useEffect(() => {
1007
+ o.current !== r && (i(r), o.current = r);
1008
+ }, [r, o, i]), n;
1009
+ }
1010
+ var ii = [
1011
+ "a",
1012
+ "button",
1013
+ "div",
1014
+ "form",
1015
+ "h2",
1016
+ "h3",
1017
+ "img",
1018
+ "input",
1019
+ "label",
1020
+ "li",
1021
+ "nav",
1022
+ "ol",
1023
+ "p",
1024
+ "span",
1025
+ "svg",
1026
+ "ul"
1027
+ ], Z = ii.reduce((e, t) => {
1028
+ const n = d.forwardRef((r, o) => {
1029
+ const { asChild: i, ...a } = r, s = i ? Je : t;
1030
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y.jsx(s, { ...a, ref: o });
1031
+ });
1032
+ return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
1033
+ }, {});
1034
+ function ai(e, t) {
1035
+ e && or.flushSync(() => e.dispatchEvent(t));
1036
+ }
1037
+ var ye = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
1038
+ };
1039
+ function si(e, t) {
1040
+ return d.useReducer((n, r) => t[n][r] ?? n, e);
1041
+ }
1042
+ var Et = (e) => {
1043
+ const { present: t, children: n } = e, r = ci(t), o = typeof n == "function" ? n({ present: r.isPresent }) : d.Children.only(n), i = re(r.ref, li(o));
1044
+ return typeof n == "function" || r.isPresent ? d.cloneElement(o, { ref: i }) : null;
1045
+ };
1046
+ Et.displayName = "Presence";
1047
+ function ci(e) {
1048
+ const [t, n] = d.useState(), r = d.useRef({}), o = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, u] = si(a, {
1049
+ mounted: {
1050
+ UNMOUNT: "unmounted",
1051
+ ANIMATION_OUT: "unmountSuspended"
1052
+ },
1053
+ unmountSuspended: {
1054
+ MOUNT: "mounted",
1055
+ ANIMATION_END: "unmounted"
1056
+ },
1057
+ unmounted: {
1058
+ MOUNT: "mounted"
1059
+ }
1060
+ });
1061
+ return d.useEffect(() => {
1062
+ const l = ct(r.current);
1063
+ i.current = s === "mounted" ? l : "none";
1064
+ }, [s]), ye(() => {
1065
+ const l = r.current, f = o.current;
1066
+ if (f !== e) {
1067
+ const v = i.current, m = ct(l);
1068
+ e ? u("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(f && v !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1069
+ }
1070
+ }, [e, u]), ye(() => {
1071
+ if (t) {
1072
+ let l;
1073
+ const f = t.ownerDocument.defaultView ?? window, p = (m) => {
1074
+ const h = ct(r.current).includes(m.animationName);
1075
+ if (m.target === t && h && (u("ANIMATION_END"), !o.current)) {
1076
+ const g = t.style.animationFillMode;
1077
+ t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
1078
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
1079
+ });
1080
+ }
1081
+ }, v = (m) => {
1082
+ m.target === t && (i.current = ct(r.current));
1083
+ };
1084
+ return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
1085
+ f.clearTimeout(l), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
1086
+ };
1087
+ } else
1088
+ u("ANIMATION_END");
1089
+ }, [t, u]), {
1090
+ isPresent: ["mounted", "unmountSuspended"].includes(s),
1091
+ ref: d.useCallback((l) => {
1092
+ l && (r.current = getComputedStyle(l)), n(l);
1093
+ }, [])
1094
+ };
1095
+ }
1096
+ function ct(e) {
1097
+ return (e == null ? void 0 : e.animationName) || "none";
1098
+ }
1099
+ function li(e) {
1100
+ var r, o;
1101
+ let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
1102
+ return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1103
+ }
1104
+ var ui = d.useId || (() => {
1105
+ }), fi = 0;
1106
+ function tn(e) {
1107
+ const [t, n] = d.useState(ui());
1108
+ return ye(() => {
1109
+ n((r) => r ?? String(fi++));
1110
+ }, [e]), t ? `radix-${t}` : "";
1111
+ }
1112
+ var nn = "Collapsible", [di, ar] = Qe(nn), [pi, rn] = di(nn), sr = d.forwardRef(
1113
+ (e, t) => {
981
1114
  const {
982
- name: g,
983
- fn: w
984
- } = s[h], {
985
- x: b,
986
- y: E,
987
- data: R,
988
- reset: A
989
- } = await w({
990
- x: f,
991
- y: p,
992
- initialPlacement: r,
993
- placement: v,
994
- strategy: o,
995
- middlewareData: m,
996
- rects: l,
997
- platform: a,
998
- elements: {
999
- reference: e,
1000
- floating: t
1115
+ __scopeCollapsible: n,
1116
+ open: r,
1117
+ defaultOpen: o,
1118
+ disabled: i,
1119
+ onOpenChange: a,
1120
+ ...s
1121
+ } = e, [u = !1, l] = Ct({
1122
+ prop: r,
1123
+ defaultProp: o,
1124
+ onChange: a
1125
+ });
1126
+ return /* @__PURE__ */ y.jsx(
1127
+ pi,
1128
+ {
1129
+ scope: n,
1130
+ disabled: i,
1131
+ contentId: tn(),
1132
+ open: u,
1133
+ onOpenToggle: d.useCallback(() => l((f) => !f), [l]),
1134
+ children: /* @__PURE__ */ y.jsx(
1135
+ Z.div,
1136
+ {
1137
+ "data-state": an(u),
1138
+ "data-disabled": i ? "" : void 0,
1139
+ ...s,
1140
+ ref: t
1141
+ }
1142
+ )
1143
+ }
1144
+ );
1145
+ }
1146
+ );
1147
+ sr.displayName = nn;
1148
+ var cr = "CollapsibleTrigger", lr = d.forwardRef(
1149
+ (e, t) => {
1150
+ const { __scopeCollapsible: n, ...r } = e, o = rn(cr, n);
1151
+ return /* @__PURE__ */ y.jsx(
1152
+ Z.button,
1153
+ {
1154
+ type: "button",
1155
+ "aria-controls": o.contentId,
1156
+ "aria-expanded": o.open || !1,
1157
+ "data-state": an(o.open),
1158
+ "data-disabled": o.disabled ? "" : void 0,
1159
+ disabled: o.disabled,
1160
+ ...r,
1161
+ ref: t,
1162
+ onClick: se(e.onClick, o.onOpenToggle)
1001
1163
  }
1164
+ );
1165
+ }
1166
+ );
1167
+ lr.displayName = cr;
1168
+ var on = "CollapsibleContent", ur = d.forwardRef(
1169
+ (e, t) => {
1170
+ const { forceMount: n, ...r } = e, o = rn(on, e.__scopeCollapsible);
1171
+ return /* @__PURE__ */ y.jsx(Et, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ y.jsx(hi, { ...r, ref: t, present: i }) });
1172
+ }
1173
+ );
1174
+ ur.displayName = on;
1175
+ var hi = d.forwardRef((e, t) => {
1176
+ const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = rn(on, n), [s, u] = d.useState(r), l = d.useRef(null), f = re(t, l), p = d.useRef(0), v = p.current, m = d.useRef(0), x = m.current, h = a.open || s, g = d.useRef(h), w = d.useRef(void 0);
1177
+ return d.useEffect(() => {
1178
+ const b = requestAnimationFrame(() => g.current = !1);
1179
+ return () => cancelAnimationFrame(b);
1180
+ }, []), ye(() => {
1181
+ const b = l.current;
1182
+ if (b) {
1183
+ w.current = w.current || {
1184
+ transitionDuration: b.style.transitionDuration,
1185
+ animationName: b.style.animationName
1186
+ }, b.style.transitionDuration = "0s", b.style.animationName = "none";
1187
+ const E = b.getBoundingClientRect();
1188
+ p.current = E.height, m.current = E.width, g.current || (b.style.transitionDuration = w.current.transitionDuration, b.style.animationName = w.current.animationName), u(r);
1189
+ }
1190
+ }, [a.open, r]), /* @__PURE__ */ y.jsx(
1191
+ Z.div,
1192
+ {
1193
+ "data-state": an(a.open),
1194
+ "data-disabled": a.disabled ? "" : void 0,
1195
+ id: a.contentId,
1196
+ hidden: !h,
1197
+ ...i,
1198
+ ref: f,
1199
+ style: {
1200
+ "--radix-collapsible-content-height": v ? `${v}px` : void 0,
1201
+ "--radix-collapsible-content-width": x ? `${x}px` : void 0,
1202
+ ...e.style
1203
+ },
1204
+ children: h && o
1205
+ }
1206
+ );
1207
+ });
1208
+ function an(e) {
1209
+ return e ? "open" : "closed";
1210
+ }
1211
+ var vi = sr, mi = lr, gi = ur, yi = d.createContext(void 0);
1212
+ function wi(e) {
1213
+ const t = d.useContext(yi);
1214
+ return e || t || "ltr";
1215
+ }
1216
+ var ve = "Accordion", bi = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [sn, xi, Ci] = ri(ve), [Rt, yc] = Qe(ve, [
1217
+ Ci,
1218
+ ar
1219
+ ]), cn = ar(), fr = H.forwardRef(
1220
+ (e, t) => {
1221
+ const { type: n, ...r } = e, o = r, i = r;
1222
+ return /* @__PURE__ */ y.jsx(sn.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ y.jsx(Ai, { ...i, ref: t }) : /* @__PURE__ */ y.jsx(Pi, { ...o, ref: t }) });
1223
+ }
1224
+ );
1225
+ fr.displayName = ve;
1226
+ var [dr, Ei] = Rt(ve), [pr, Ri] = Rt(
1227
+ ve,
1228
+ { collapsible: !1 }
1229
+ ), Pi = H.forwardRef(
1230
+ (e, t) => {
1231
+ const {
1232
+ value: n,
1233
+ defaultValue: r,
1234
+ onValueChange: o = () => {
1235
+ },
1236
+ collapsible: i = !1,
1237
+ ...a
1238
+ } = e, [s, u] = Ct({
1239
+ prop: n,
1240
+ defaultProp: r,
1241
+ onChange: o
1002
1242
  });
1003
- f = b ?? f, p = E ?? p, m = {
1004
- ...m,
1005
- [g]: {
1006
- ...m[g],
1007
- ...R
1243
+ return /* @__PURE__ */ y.jsx(
1244
+ dr,
1245
+ {
1246
+ scope: e.__scopeAccordion,
1247
+ value: s ? [s] : [],
1248
+ onItemOpen: u,
1249
+ onItemClose: H.useCallback(() => i && u(""), [i, u]),
1250
+ children: /* @__PURE__ */ y.jsx(pr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ y.jsx(hr, { ...a, ref: t }) })
1008
1251
  }
1009
- }, A && x <= 50 && (x++, typeof A == "object" && (A.placement && (v = A.placement), A.rects && (l = A.rects === !0 ? await a.getElementRects({
1010
- reference: e,
1011
- floating: t,
1012
- strategy: o
1013
- }) : A.rects), {
1014
- x: f,
1015
- y: p
1016
- } = In(l, v, u)), h = -1);
1252
+ );
1017
1253
  }
1018
- return {
1019
- x: f,
1020
- y: p,
1021
- placement: v,
1022
- strategy: o,
1023
- middlewareData: m
1024
- };
1025
- };
1026
- async function We(e, t) {
1027
- var n;
1028
- t === void 0 && (t = {});
1254
+ ), Ai = H.forwardRef((e, t) => {
1029
1255
  const {
1030
- x: r,
1031
- y: o,
1032
- platform: i,
1033
- rects: a,
1034
- elements: s,
1035
- strategy: u
1036
- } = e, {
1037
- boundary: l = "clippingAncestors",
1038
- rootBoundary: f = "viewport",
1039
- elementContext: p = "floating",
1040
- altBoundary: v = !1,
1041
- padding: m = 0
1042
- } = pe(t, e), x = ir(m), g = s[v ? p === "floating" ? "reference" : "floating" : p], w = wt(await i.getClippingRect({
1043
- element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1044
- boundary: l,
1045
- rootBoundary: f,
1046
- strategy: u
1047
- })), b = p === "floating" ? {
1048
- x: r,
1049
- y: o,
1050
- width: a.floating.width,
1051
- height: a.floating.height
1052
- } : a.reference, E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), R = await (i.isElement == null ? void 0 : i.isElement(E)) ? await (i.getScale == null ? void 0 : i.getScale(E)) || {
1053
- x: 1,
1054
- y: 1
1055
- } : {
1056
- x: 1,
1057
- y: 1
1058
- }, A = wt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1059
- elements: s,
1060
- rect: b,
1061
- offsetParent: E,
1062
- strategy: u
1063
- }) : b);
1064
- return {
1065
- top: (w.top - A.top + x.top) / R.y,
1066
- bottom: (A.bottom - w.bottom + x.bottom) / R.y,
1067
- left: (w.left - A.left + x.left) / R.x,
1068
- right: (A.right - w.right + x.right) / R.x
1069
- };
1070
- }
1071
- const si = (e) => ({
1072
- name: "arrow",
1073
- options: e,
1074
- async fn(t) {
1075
- const {
1076
- x: n,
1077
- y: r,
1078
- placement: o,
1079
- rects: i,
1080
- platform: a,
1081
- elements: s,
1082
- middlewareData: u
1083
- } = t, {
1084
- element: l,
1085
- padding: f = 0
1086
- } = pe(e, t) || {};
1087
- if (l == null)
1088
- return {};
1089
- const p = ir(f), v = {
1090
- x: n,
1091
- y: r
1092
- }, m = rn(o), x = nn(m), h = await a.getDimensions(l), g = m === "y", w = g ? "top" : "left", b = g ? "bottom" : "right", E = g ? "clientHeight" : "clientWidth", R = i.reference[x] + i.reference[m] - v[m] - i.floating[x], A = v[m] - i.reference[m], _ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1093
- let S = _ ? _[E] : 0;
1094
- (!S || !await (a.isElement == null ? void 0 : a.isElement(_))) && (S = s.floating[E] || i.floating[x]);
1095
- const j = R / 2 - A / 2, F = S / 2 - h[x] / 2 - 1, W = ge(p[w], F), G = ge(p[b], F), K = W, D = S - h[x] - G, I = S / 2 - h[x] / 2 + j, X = Xt(K, I, D), $ = !u.arrow && He(o) != null && I !== X && i.reference[x] / 2 - (I < K ? W : G) - h[x] / 2 < 0, V = $ ? I < K ? I - K : I - D : 0;
1096
- return {
1097
- [m]: v[m] + V,
1098
- data: {
1099
- [m]: X,
1100
- centerOffset: I - X - V,
1101
- ...$ && {
1102
- alignmentOffset: V
1103
- }
1104
- },
1105
- reset: $
1106
- };
1107
- }
1108
- }), ci = function(e) {
1109
- return e === void 0 && (e = {}), {
1110
- name: "flip",
1111
- options: e,
1112
- async fn(t) {
1113
- var n, r;
1114
- const {
1115
- placement: o,
1116
- middlewareData: i,
1117
- rects: a,
1118
- initialPlacement: s,
1119
- platform: u,
1120
- elements: l
1121
- } = t, {
1122
- mainAxis: f = !0,
1123
- crossAxis: p = !0,
1124
- fallbackPlacements: v,
1125
- fallbackStrategy: m = "bestFit",
1126
- fallbackAxisSideDirection: x = "none",
1127
- flipAlignment: h = !0,
1128
- ...g
1129
- } = pe(e, t);
1130
- if ((n = i.arrow) != null && n.alignmentOffset)
1131
- return {};
1132
- const w = he(o), b = ye(s), E = he(s) === s, R = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), A = v || (E || !h ? [yt(s)] : ni(s)), _ = x !== "none";
1133
- !v && _ && A.push(...oi(s, h, x, R));
1134
- const S = [s, ...A], j = await We(t, g), F = [];
1135
- let W = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1136
- if (f && F.push(j[w]), p) {
1137
- const I = ti(o, a, R);
1138
- F.push(j[I[0]], j[I[1]]);
1256
+ value: n,
1257
+ defaultValue: r,
1258
+ onValueChange: o = () => {
1259
+ },
1260
+ ...i
1261
+ } = e, [a = [], s] = Ct({
1262
+ prop: n,
1263
+ defaultProp: r,
1264
+ onChange: o
1265
+ }), u = H.useCallback(
1266
+ (f) => s((p = []) => [...p, f]),
1267
+ [s]
1268
+ ), l = H.useCallback(
1269
+ (f) => s((p = []) => p.filter((v) => v !== f)),
1270
+ [s]
1271
+ );
1272
+ return /* @__PURE__ */ y.jsx(
1273
+ dr,
1274
+ {
1275
+ scope: e.__scopeAccordion,
1276
+ value: a,
1277
+ onItemOpen: u,
1278
+ onItemClose: l,
1279
+ children: /* @__PURE__ */ y.jsx(pr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ y.jsx(hr, { ...i, ref: t }) })
1280
+ }
1281
+ );
1282
+ }), [Si, Pt] = Rt(ve), hr = H.forwardRef(
1283
+ (e, t) => {
1284
+ const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = H.useRef(null), u = re(s, t), l = xi(n), p = wi(o) === "ltr", v = se(e.onKeyDown, (m) => {
1285
+ var j;
1286
+ if (!bi.includes(m.key)) return;
1287
+ const x = m.target, h = l().filter((F) => {
1288
+ var W;
1289
+ return !((W = F.ref.current) != null && W.disabled);
1290
+ }), g = h.findIndex((F) => F.ref.current === x), w = h.length;
1291
+ if (g === -1) return;
1292
+ m.preventDefault();
1293
+ let b = g;
1294
+ const E = 0, R = w - 1, A = () => {
1295
+ b = g + 1, b > R && (b = E);
1296
+ }, _ = () => {
1297
+ b = g - 1, b < E && (b = R);
1298
+ };
1299
+ switch (m.key) {
1300
+ case "Home":
1301
+ b = E;
1302
+ break;
1303
+ case "End":
1304
+ b = R;
1305
+ break;
1306
+ case "ArrowRight":
1307
+ i === "horizontal" && (p ? A() : _());
1308
+ break;
1309
+ case "ArrowDown":
1310
+ i === "vertical" && A();
1311
+ break;
1312
+ case "ArrowLeft":
1313
+ i === "horizontal" && (p ? _() : A());
1314
+ break;
1315
+ case "ArrowUp":
1316
+ i === "vertical" && _();
1317
+ break;
1139
1318
  }
1140
- if (W = [...W, {
1141
- placement: o,
1142
- overflows: F
1143
- }], !F.every((I) => I <= 0)) {
1144
- var G, K;
1145
- const I = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, X = S[I];
1146
- if (X)
1147
- return {
1148
- data: {
1149
- index: I,
1150
- overflows: W
1151
- },
1152
- reset: {
1153
- placement: X
1154
- }
1155
- };
1156
- let $ = (K = W.filter((V) => V.overflows[0] <= 0).sort((V, N) => V.overflows[1] - N.overflows[1])[0]) == null ? void 0 : K.placement;
1157
- if (!$)
1158
- switch (m) {
1159
- case "bestFit": {
1160
- var D;
1161
- const V = (D = W.filter((N) => {
1162
- if (_) {
1163
- const Y = ye(N.placement);
1164
- return Y === b || // Create a bias to the `y` side axis due to horizontal
1165
- // reading directions favoring greater width.
1166
- Y === "y";
1167
- }
1168
- return !0;
1169
- }).map((N) => [N.placement, N.overflows.filter((Y) => Y > 0).reduce((Y, Q) => Y + Q, 0)]).sort((N, Y) => N[1] - Y[1])[0]) == null ? void 0 : D[0];
1170
- V && ($ = V);
1171
- break;
1172
- }
1173
- case "initialPlacement":
1174
- $ = s;
1175
- break;
1319
+ const S = b % w;
1320
+ (j = h[S].ref.current) == null || j.focus();
1321
+ });
1322
+ return /* @__PURE__ */ y.jsx(
1323
+ Si,
1324
+ {
1325
+ scope: n,
1326
+ disabled: r,
1327
+ direction: o,
1328
+ orientation: i,
1329
+ children: /* @__PURE__ */ y.jsx(sn.Slot, { scope: n, children: /* @__PURE__ */ y.jsx(
1330
+ Z.div,
1331
+ {
1332
+ ...a,
1333
+ "data-orientation": i,
1334
+ ref: u,
1335
+ onKeyDown: r ? void 0 : v
1176
1336
  }
1177
- if (o !== $)
1178
- return {
1179
- reset: {
1180
- placement: $
1181
- }
1182
- };
1337
+ ) })
1183
1338
  }
1184
- return {};
1185
- }
1186
- };
1187
- };
1188
- function Ln(e, t) {
1189
- return {
1190
- top: e.top - t.height,
1191
- right: e.right - t.width,
1192
- bottom: e.bottom - t.height,
1193
- left: e.left - t.width
1194
- };
1195
- }
1196
- function Fn(e) {
1197
- return Zo.some((t) => e[t] >= 0);
1198
- }
1199
- const li = function(e) {
1200
- return e === void 0 && (e = {}), {
1201
- name: "hide",
1202
- options: e,
1203
- async fn(t) {
1204
- const {
1205
- rects: n
1206
- } = t, {
1207
- strategy: r = "referenceHidden",
1208
- ...o
1209
- } = pe(e, t);
1210
- switch (r) {
1211
- case "referenceHidden": {
1212
- const i = await We(t, {
1213
- ...o,
1214
- elementContext: "reference"
1215
- }), a = Ln(i, n.reference);
1216
- return {
1217
- data: {
1218
- referenceHiddenOffsets: a,
1219
- referenceHidden: Fn(a)
1220
- }
1221
- };
1222
- }
1223
- case "escaped": {
1224
- const i = await We(t, {
1339
+ );
1340
+ }
1341
+ ), gt = "AccordionItem", [Oi, ln] = Rt(gt), vr = H.forwardRef(
1342
+ (e, t) => {
1343
+ const { __scopeAccordion: n, value: r, ...o } = e, i = Pt(gt, n), a = Ei(gt, n), s = cn(n), u = tn(), l = r && a.value.includes(r) || !1, f = i.disabled || e.disabled;
1344
+ return /* @__PURE__ */ y.jsx(
1345
+ Oi,
1346
+ {
1347
+ scope: n,
1348
+ open: l,
1349
+ disabled: f,
1350
+ triggerId: u,
1351
+ children: /* @__PURE__ */ y.jsx(
1352
+ vi,
1353
+ {
1354
+ "data-orientation": i.orientation,
1355
+ "data-state": xr(l),
1356
+ ...s,
1225
1357
  ...o,
1226
- altBoundary: !0
1227
- }), a = Ln(i, n.floating);
1228
- return {
1229
- data: {
1230
- escapedOffsets: a,
1231
- escaped: Fn(a)
1358
+ ref: t,
1359
+ disabled: f,
1360
+ open: l,
1361
+ onOpenChange: (p) => {
1362
+ p ? a.onItemOpen(r) : a.onItemClose(r);
1232
1363
  }
1233
- };
1234
- }
1235
- default:
1236
- return {};
1237
- }
1238
- }
1239
- };
1240
- };
1241
- async function ui(e, t) {
1242
- const {
1243
- placement: n,
1244
- platform: r,
1245
- elements: o
1246
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = he(n), s = He(n), u = ye(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = i && u ? -1 : 1, p = pe(t, e);
1247
- let {
1248
- mainAxis: v,
1249
- crossAxis: m,
1250
- alignmentAxis: x
1251
- } = typeof p == "number" ? {
1252
- mainAxis: p,
1253
- crossAxis: 0,
1254
- alignmentAxis: null
1255
- } : {
1256
- mainAxis: p.mainAxis || 0,
1257
- crossAxis: p.crossAxis || 0,
1258
- alignmentAxis: p.alignmentAxis
1259
- };
1260
- return s && typeof x == "number" && (m = s === "end" ? x * -1 : x), u ? {
1261
- x: m * f,
1262
- y: v * l
1263
- } : {
1264
- x: v * l,
1265
- y: m * f
1266
- };
1267
- }
1268
- const fi = function(e) {
1269
- return e === void 0 && (e = 0), {
1270
- name: "offset",
1271
- options: e,
1272
- async fn(t) {
1273
- var n, r;
1274
- const {
1275
- x: o,
1276
- y: i,
1277
- placement: a,
1278
- middlewareData: s
1279
- } = t, u = await ui(t, e);
1280
- return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
1281
- x: o + u.x,
1282
- y: i + u.y,
1283
- data: {
1284
- ...u,
1285
- placement: a
1286
- }
1287
- };
1288
- }
1289
- };
1290
- }, di = function(e) {
1291
- return e === void 0 && (e = {}), {
1292
- name: "shift",
1293
- options: e,
1294
- async fn(t) {
1295
- const {
1296
- x: n,
1297
- y: r,
1298
- placement: o
1299
- } = t, {
1300
- mainAxis: i = !0,
1301
- crossAxis: a = !1,
1302
- limiter: s = {
1303
- fn: (g) => {
1304
- let {
1305
- x: w,
1306
- y: b
1307
- } = g;
1308
- return {
1309
- x: w,
1310
- y: b
1311
- };
1312
1364
  }
1313
- },
1314
- ...u
1315
- } = pe(e, t), l = {
1316
- x: n,
1317
- y: r
1318
- }, f = await We(t, u), p = ye(he(o)), v = tn(p);
1319
- let m = l[v], x = l[p];
1320
- if (i) {
1321
- const g = v === "y" ? "top" : "left", w = v === "y" ? "bottom" : "right", b = m + f[g], E = m - f[w];
1322
- m = Xt(b, m, E);
1365
+ )
1323
1366
  }
1324
- if (a) {
1325
- const g = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", b = x + f[g], E = x - f[w];
1326
- x = Xt(b, x, E);
1367
+ );
1368
+ }
1369
+ );
1370
+ vr.displayName = gt;
1371
+ var mr = "AccordionHeader", gr = H.forwardRef(
1372
+ (e, t) => {
1373
+ const { __scopeAccordion: n, ...r } = e, o = Pt(ve, n), i = ln(mr, n);
1374
+ return /* @__PURE__ */ y.jsx(
1375
+ Z.h3,
1376
+ {
1377
+ "data-orientation": o.orientation,
1378
+ "data-state": xr(i.open),
1379
+ "data-disabled": i.disabled ? "" : void 0,
1380
+ ...r,
1381
+ ref: t
1327
1382
  }
1328
- const h = s.fn({
1329
- ...t,
1330
- [v]: m,
1331
- [p]: x
1332
- });
1333
- return {
1334
- ...h,
1335
- data: {
1336
- x: h.x - n,
1337
- y: h.y - r,
1338
- enabled: {
1339
- [v]: i,
1340
- [p]: a
1341
- }
1342
- }
1343
- };
1344
- }
1345
- };
1346
- }, pi = function(e) {
1347
- return e === void 0 && (e = {}), {
1348
- options: e,
1349
- fn(t) {
1350
- const {
1351
- x: n,
1352
- y: r,
1353
- placement: o,
1354
- rects: i,
1355
- middlewareData: a
1356
- } = t, {
1357
- offset: s = 0,
1358
- mainAxis: u = !0,
1359
- crossAxis: l = !0
1360
- } = pe(e, t), f = {
1361
- x: n,
1362
- y: r
1363
- }, p = ye(o), v = tn(p);
1364
- let m = f[v], x = f[p];
1365
- const h = pe(s, t), g = typeof h == "number" ? {
1366
- mainAxis: h,
1367
- crossAxis: 0
1368
- } : {
1369
- mainAxis: 0,
1370
- crossAxis: 0,
1371
- ...h
1372
- };
1373
- if (u) {
1374
- const E = v === "y" ? "height" : "width", R = i.reference[v] - i.floating[E] + g.mainAxis, A = i.reference[v] + i.reference[E] - g.mainAxis;
1375
- m < R ? m = R : m > A && (m = A);
1383
+ );
1384
+ }
1385
+ );
1386
+ gr.displayName = mr;
1387
+ var Gt = "AccordionTrigger", yr = H.forwardRef(
1388
+ (e, t) => {
1389
+ const { __scopeAccordion: n, ...r } = e, o = Pt(ve, n), i = ln(Gt, n), a = Ri(Gt, n), s = cn(n);
1390
+ return /* @__PURE__ */ y.jsx(sn.ItemSlot, { scope: n, children: /* @__PURE__ */ y.jsx(
1391
+ mi,
1392
+ {
1393
+ "aria-disabled": i.open && !a.collapsible || void 0,
1394
+ "data-orientation": o.orientation,
1395
+ id: i.triggerId,
1396
+ ...s,
1397
+ ...r,
1398
+ ref: t
1376
1399
  }
1377
- if (l) {
1378
- var w, b;
1379
- const E = v === "y" ? "width" : "height", R = ["top", "left"].includes(he(o)), A = i.reference[p] - i.floating[E] + (R && ((w = a.offset) == null ? void 0 : w[p]) || 0) + (R ? 0 : g.crossAxis), _ = i.reference[p] + i.reference[E] + (R ? 0 : ((b = a.offset) == null ? void 0 : b[p]) || 0) - (R ? g.crossAxis : 0);
1380
- x < A ? x = A : x > _ && (x = _);
1400
+ ) });
1401
+ }
1402
+ );
1403
+ yr.displayName = Gt;
1404
+ var wr = "AccordionContent", br = H.forwardRef(
1405
+ (e, t) => {
1406
+ const { __scopeAccordion: n, ...r } = e, o = Pt(ve, n), i = ln(wr, n), a = cn(n);
1407
+ return /* @__PURE__ */ y.jsx(
1408
+ gi,
1409
+ {
1410
+ role: "region",
1411
+ "aria-labelledby": i.triggerId,
1412
+ "data-orientation": o.orientation,
1413
+ ...a,
1414
+ ...r,
1415
+ ref: t,
1416
+ style: {
1417
+ "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
1418
+ "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
1419
+ ...e.style
1420
+ }
1381
1421
  }
1382
- return {
1383
- [v]: m,
1384
- [p]: x
1385
- };
1386
- }
1387
- };
1388
- }, hi = function(e) {
1389
- return e === void 0 && (e = {}), {
1390
- name: "size",
1391
- options: e,
1392
- async fn(t) {
1393
- var n, r;
1394
- const {
1395
- placement: o,
1396
- rects: i,
1397
- platform: a,
1398
- elements: s
1399
- } = t, {
1400
- apply: u = () => {
1401
- },
1402
- ...l
1403
- } = pe(e, t), f = await We(t, l), p = he(o), v = He(o), m = ye(o) === "y", {
1404
- width: x,
1405
- height: h
1406
- } = i.floating;
1407
- let g, w;
1408
- p === "top" || p === "bottom" ? (g = p, w = v === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = p, g = v === "end" ? "top" : "bottom");
1409
- const b = h - f.top - f.bottom, E = x - f.left - f.right, R = ge(h - f[g], b), A = ge(x - f[w], E), _ = !t.middlewareData.shift;
1410
- let S = R, j = A;
1411
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = b), _ && !v) {
1412
- const W = ee(f.left, 0), G = ee(f.right, 0), K = ee(f.top, 0), D = ee(f.bottom, 0);
1413
- m ? j = x - 2 * (W !== 0 || G !== 0 ? W + G : ee(f.left, f.right)) : S = h - 2 * (K !== 0 || D !== 0 ? K + D : ee(f.top, f.bottom));
1422
+ );
1423
+ }
1424
+ );
1425
+ br.displayName = wr;
1426
+ function xr(e) {
1427
+ return e ? "open" : "closed";
1428
+ }
1429
+ var _i = fr, Ti = vr, Ni = gr, ki = yr, ji = br;
1430
+ const Di = {
1431
+ arrows: {
1432
+ filePath: "arrows.svg",
1433
+ items: {
1434
+ arrowCircle: {
1435
+ viewBox: "0 0 32 32",
1436
+ width: 32,
1437
+ height: 32
1438
+ },
1439
+ arrowLink: {
1440
+ viewBox: "0 0 24 24",
1441
+ width: 24,
1442
+ height: 24
1443
+ },
1444
+ arrowRight: {
1445
+ viewBox: "0 0 16 17",
1446
+ width: 16,
1447
+ height: 17
1448
+ },
1449
+ arrowScroll: {
1450
+ viewBox: "0 0 14 16",
1451
+ width: 14,
1452
+ height: 16
1414
1453
  }
1415
- await u({
1416
- ...t,
1417
- availableWidth: j,
1418
- availableHeight: S
1419
- });
1420
- const F = await a.getDimensions(s.floating);
1421
- return x !== F.width || h !== F.height ? {
1422
- reset: {
1423
- rects: !0
1424
- }
1425
- } : {};
1426
1454
  }
1427
- };
1428
- };
1429
- function Ct() {
1430
- return typeof window < "u";
1431
- }
1432
- function Ue(e) {
1433
- return ar(e) ? (e.nodeName || "").toLowerCase() : "#document";
1434
- }
1435
- function te(e) {
1436
- var t;
1437
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1438
- }
1439
- function ue(e) {
1440
- var t;
1441
- return (t = (ar(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1442
- }
1443
- function ar(e) {
1444
- return Ct() ? e instanceof Node || e instanceof te(e).Node : !1;
1445
- }
1446
- function oe(e) {
1447
- return Ct() ? e instanceof Element || e instanceof te(e).Element : !1;
1448
- }
1449
- function le(e) {
1450
- return Ct() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
1451
- }
1452
- function Bn(e) {
1453
- return !Ct() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
1454
- }
1455
- function Qe(e) {
1456
- const {
1457
- overflow: t,
1458
- overflowX: n,
1459
- overflowY: r,
1460
- display: o
1461
- } = ie(e);
1462
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1463
- }
1464
- function vi(e) {
1465
- return ["table", "td", "th"].includes(Ue(e));
1466
- }
1467
- function Et(e) {
1468
- return [":popover-open", ":modal"].some((t) => {
1469
- try {
1470
- return e.matches(t);
1471
- } catch {
1472
- return !1;
1473
- }
1474
- });
1475
- }
1476
- function on(e) {
1477
- const t = an(), n = oe(e) ? ie(e) : e;
1478
- return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1479
- }
1480
- function mi(e) {
1481
- let t = we(e);
1482
- for (; le(t) && !$e(t); ) {
1483
- if (on(t))
1484
- return t;
1485
- if (Et(t))
1486
- return null;
1487
- t = we(t);
1488
- }
1489
- return null;
1490
- }
1491
- function an() {
1492
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1493
- }
1494
- function $e(e) {
1495
- return ["html", "body", "#document"].includes(Ue(e));
1496
- }
1497
- function ie(e) {
1498
- return te(e).getComputedStyle(e);
1499
- }
1500
- function Rt(e) {
1501
- return oe(e) ? {
1502
- scrollLeft: e.scrollLeft,
1503
- scrollTop: e.scrollTop
1504
- } : {
1505
- scrollLeft: e.scrollX,
1506
- scrollTop: e.scrollY
1507
- };
1508
- }
1509
- function we(e) {
1510
- if (Ue(e) === "html")
1511
- return e;
1512
- const t = (
1513
- // Step into the shadow DOM of the parent of a slotted node.
1514
- e.assignedSlot || // DOM Element detected.
1515
- e.parentNode || // ShadowRoot detected.
1516
- Bn(e) && e.host || // Fallback.
1517
- ue(e)
1518
- );
1519
- return Bn(t) ? t.host : t;
1520
- }
1521
- function sr(e) {
1522
- const t = we(e);
1523
- return $e(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && Qe(t) ? t : sr(t);
1524
- }
1525
- function Je(e, t, n) {
1526
- var r;
1527
- t === void 0 && (t = []), n === void 0 && (n = !0);
1528
- const o = sr(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = te(o);
1529
- if (i) {
1530
- const s = qt(a);
1531
- return t.concat(a, a.visualViewport || [], Qe(o) ? o : [], s && n ? Je(s) : []);
1532
- }
1533
- return t.concat(o, Je(o, [], n));
1534
- }
1535
- function qt(e) {
1536
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1537
- }
1538
- function cr(e) {
1539
- const t = ie(e);
1540
- let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1541
- const o = le(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = gt(n) !== i || gt(r) !== a;
1542
- return s && (n = i, r = a), {
1543
- width: n,
1544
- height: r,
1545
- $: s
1546
- };
1547
- }
1548
- function sn(e) {
1549
- return oe(e) ? e : e.contextElement;
1550
- }
1551
- function Fe(e) {
1552
- const t = sn(e);
1553
- if (!le(t))
1554
- return se(1);
1555
- const n = t.getBoundingClientRect(), {
1556
- width: r,
1557
- height: o,
1558
- $: i
1559
- } = cr(t);
1560
- let a = (i ? gt(n.width) : n.width) / r, s = (i ? gt(n.height) : n.height) / o;
1561
- return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1562
- x: a,
1563
- y: s
1564
- };
1565
- }
1566
- const gi = /* @__PURE__ */ se(0);
1567
- function lr(e) {
1568
- const t = te(e);
1569
- return !an() || !t.visualViewport ? gi : {
1570
- x: t.visualViewport.offsetLeft,
1571
- y: t.visualViewport.offsetTop
1572
- };
1573
- }
1574
- function yi(e, t, n) {
1575
- return t === void 0 && (t = !1), !n || t && n !== te(e) ? !1 : t;
1576
- }
1577
- function _e(e, t, n, r) {
1578
- t === void 0 && (t = !1), n === void 0 && (n = !1);
1579
- const o = e.getBoundingClientRect(), i = sn(e);
1580
- let a = se(1);
1581
- t && (r ? oe(r) && (a = Fe(r)) : a = Fe(e));
1582
- const s = yi(i, n, r) ? lr(i) : se(0);
1583
- let u = (o.left + s.x) / a.x, l = (o.top + s.y) / a.y, f = o.width / a.x, p = o.height / a.y;
1584
- if (i) {
1585
- const v = te(i), m = r && oe(r) ? te(r) : r;
1586
- let x = v, h = qt(x);
1587
- for (; h && r && m !== x; ) {
1588
- const g = Fe(h), w = h.getBoundingClientRect(), b = ie(h), E = w.left + (h.clientLeft + parseFloat(b.paddingLeft)) * g.x, R = w.top + (h.clientTop + parseFloat(b.paddingTop)) * g.y;
1589
- u *= g.x, l *= g.y, f *= g.x, p *= g.y, u += E, l += R, x = te(h), h = qt(x);
1455
+ },
1456
+ brandLogos: {
1457
+ filePath: "brandLogos.svg",
1458
+ items: {
1459
+ logoBlack: {
1460
+ viewBox: "0 0 194 32",
1461
+ width: 194,
1462
+ height: 32
1463
+ },
1464
+ logoBusiness: {
1465
+ viewBox: "0 0 192 32",
1466
+ width: 192,
1467
+ height: 32
1468
+ },
1469
+ logoGray: {
1470
+ viewBox: "0 0 194 32",
1471
+ width: 194,
1472
+ height: 32
1473
+ },
1474
+ logoInsurance: {
1475
+ viewBox: "0 0 193 32",
1476
+ width: 193,
1477
+ height: 32
1478
+ },
1479
+ logoMain: {
1480
+ viewBox: "0 0 192 32",
1481
+ width: 192,
1482
+ height: 32
1483
+ },
1484
+ logoWhite: {
1485
+ viewBox: "0 0 194 32",
1486
+ width: 194,
1487
+ height: 32
1488
+ }
1590
1489
  }
1591
- }
1592
- return wt({
1593
- width: f,
1594
- height: p,
1595
- x: u,
1596
- y: l
1597
- });
1598
- }
1599
- function cn(e, t) {
1600
- const n = Rt(e).scrollLeft;
1601
- return t ? t.left + n : _e(ue(e)).left + n;
1602
- }
1603
- function ur(e, t, n) {
1604
- n === void 0 && (n = !1);
1605
- const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
1606
- // RTL <body> scrollbar.
1607
- cn(e, r)
1608
- )), i = r.top + t.scrollTop;
1609
- return {
1610
- x: o,
1611
- y: i
1612
- };
1613
- }
1614
- function wi(e) {
1615
- let {
1616
- elements: t,
1617
- rect: n,
1618
- offsetParent: r,
1619
- strategy: o
1620
- } = e;
1621
- const i = o === "fixed", a = ue(r), s = t ? Et(t.floating) : !1;
1622
- if (r === a || s && i)
1623
- return n;
1624
- let u = {
1625
- scrollLeft: 0,
1626
- scrollTop: 0
1627
- }, l = se(1);
1628
- const f = se(0), p = le(r);
1629
- if ((p || !p && !i) && ((Ue(r) !== "body" || Qe(a)) && (u = Rt(r)), le(r))) {
1630
- const m = _e(r);
1631
- l = Fe(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
1632
- }
1633
- const v = a && !p && !i ? ur(a, u, !0) : se(0);
1634
- return {
1635
- width: n.width * l.x,
1636
- height: n.height * l.y,
1637
- x: n.x * l.x - u.scrollLeft * l.x + f.x + v.x,
1638
- y: n.y * l.y - u.scrollTop * l.y + f.y + v.y
1639
- };
1640
- }
1641
- function bi(e) {
1642
- return Array.from(e.getClientRects());
1643
- }
1644
- function xi(e) {
1645
- const t = ue(e), n = Rt(e), r = e.ownerDocument.body, o = ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1646
- let a = -n.scrollLeft + cn(e);
1647
- const s = -n.scrollTop;
1648
- return ie(r).direction === "rtl" && (a += ee(t.clientWidth, r.clientWidth) - o), {
1649
- width: o,
1650
- height: i,
1651
- x: a,
1652
- y: s
1653
- };
1654
- }
1655
- function Ci(e, t) {
1656
- const n = te(e), r = ue(e), o = n.visualViewport;
1657
- let i = r.clientWidth, a = r.clientHeight, s = 0, u = 0;
1658
- if (o) {
1659
- i = o.width, a = o.height;
1660
- const l = an();
1661
- (!l || l && t === "fixed") && (s = o.offsetLeft, u = o.offsetTop);
1662
- }
1663
- return {
1664
- width: i,
1665
- height: a,
1666
- x: s,
1667
- y: u
1668
- };
1669
- }
1670
- function Ei(e, t) {
1671
- const n = _e(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = le(e) ? Fe(e) : se(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
1672
- return {
1673
- width: a,
1674
- height: s,
1675
- x: u,
1676
- y: l
1677
- };
1678
- }
1679
- function Wn(e, t, n) {
1680
- let r;
1681
- if (t === "viewport")
1682
- r = Ci(e, n);
1683
- else if (t === "document")
1684
- r = xi(ue(e));
1685
- else if (oe(t))
1686
- r = Ei(t, n);
1687
- else {
1688
- const o = lr(e);
1689
- r = {
1690
- x: t.x - o.x,
1691
- y: t.y - o.y,
1692
- width: t.width,
1693
- height: t.height
1694
- };
1695
- }
1696
- return wt(r);
1697
- }
1698
- function fr(e, t) {
1699
- const n = we(e);
1700
- return n === t || !oe(n) || $e(n) ? !1 : ie(n).position === "fixed" || fr(n, t);
1701
- }
1702
- function Ri(e, t) {
1703
- const n = t.get(e);
1704
- if (n)
1705
- return n;
1706
- let r = Je(e, [], !1).filter((s) => oe(s) && Ue(s) !== "body"), o = null;
1707
- const i = ie(e).position === "fixed";
1708
- let a = i ? we(e) : e;
1709
- for (; oe(a) && !$e(a); ) {
1710
- const s = ie(a), u = on(a);
1711
- !u && s.position === "fixed" && (o = null), (i ? !u && !o : !u && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Qe(a) && !u && fr(e, a)) ? r = r.filter((f) => f !== a) : o = s, a = we(a);
1712
- }
1713
- return t.set(e, r), r;
1714
- }
1715
- function Pi(e) {
1716
- let {
1717
- element: t,
1718
- boundary: n,
1719
- rootBoundary: r,
1720
- strategy: o
1721
- } = e;
1722
- const a = [...n === "clippingAncestors" ? Et(t) ? [] : Ri(t, this._c) : [].concat(n), r], s = a[0], u = a.reduce((l, f) => {
1723
- const p = Wn(t, f, o);
1724
- return l.top = ee(p.top, l.top), l.right = ge(p.right, l.right), l.bottom = ge(p.bottom, l.bottom), l.left = ee(p.left, l.left), l;
1725
- }, Wn(t, s, o));
1726
- return {
1727
- width: u.right - u.left,
1728
- height: u.bottom - u.top,
1729
- x: u.left,
1730
- y: u.top
1731
- };
1732
- }
1733
- function Ai(e) {
1734
- const {
1735
- width: t,
1736
- height: n
1737
- } = cr(e);
1738
- return {
1739
- width: t,
1740
- height: n
1741
- };
1742
- }
1743
- function Si(e, t, n) {
1744
- const r = le(t), o = ue(t), i = n === "fixed", a = _e(e, !0, i, t);
1745
- let s = {
1746
- scrollLeft: 0,
1747
- scrollTop: 0
1748
- };
1749
- const u = se(0);
1750
- if (r || !r && !i)
1751
- if ((Ue(t) !== "body" || Qe(o)) && (s = Rt(t)), r) {
1752
- const v = _e(t, !0, i, t);
1753
- u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
1754
- } else o && (u.x = cn(o));
1755
- const l = o && !r && !i ? ur(o, s) : se(0), f = a.left + s.scrollLeft - u.x - l.x, p = a.top + s.scrollTop - u.y - l.y;
1756
- return {
1757
- x: f,
1758
- y: p,
1759
- width: a.width,
1760
- height: a.height
1761
- };
1762
- }
1763
- function Ft(e) {
1764
- return ie(e).position === "static";
1765
- }
1766
- function $n(e, t) {
1767
- if (!le(e) || ie(e).position === "fixed")
1768
- return null;
1769
- if (t)
1770
- return t(e);
1771
- let n = e.offsetParent;
1772
- return ue(e) === n && (n = n.ownerDocument.body), n;
1773
- }
1774
- function dr(e, t) {
1775
- const n = te(e);
1776
- if (Et(e))
1777
- return n;
1778
- if (!le(e)) {
1779
- let o = we(e);
1780
- for (; o && !$e(o); ) {
1781
- if (oe(o) && !Ft(o))
1782
- return o;
1783
- o = we(o);
1490
+ },
1491
+ editor: {
1492
+ filePath: "editor.svg",
1493
+ items: {
1494
+ bold: {
1495
+ viewBox: "0 0 24 24",
1496
+ width: 24,
1497
+ height: 24
1498
+ },
1499
+ heading: {
1500
+ viewBox: "0 0 24 24",
1501
+ width: 24,
1502
+ height: 24
1503
+ },
1504
+ italic: {
1505
+ viewBox: "0 0 24 24",
1506
+ width: 24,
1507
+ height: 24
1508
+ },
1509
+ link: {
1510
+ viewBox: "0 0 24 24",
1511
+ width: 24,
1512
+ height: 24
1513
+ },
1514
+ list: {
1515
+ viewBox: "0 0 24 24",
1516
+ width: 24,
1517
+ height: 24
1518
+ },
1519
+ palette: {
1520
+ viewBox: "0 0 24 24",
1521
+ width: 24,
1522
+ height: 24
1523
+ },
1524
+ redo: {
1525
+ viewBox: "0 0 24 24",
1526
+ width: 24,
1527
+ height: 24
1528
+ },
1529
+ removeFormatting: {
1530
+ viewBox: "0 0 24 24",
1531
+ width: 24,
1532
+ height: 24
1533
+ },
1534
+ space: {
1535
+ viewBox: "0 0 24 24",
1536
+ width: 24,
1537
+ height: 24
1538
+ },
1539
+ strikethrough: {
1540
+ viewBox: "0 0 24 24",
1541
+ width: 24,
1542
+ height: 24
1543
+ },
1544
+ typography: {
1545
+ viewBox: "0 0 24 24",
1546
+ width: 24,
1547
+ height: 24
1548
+ },
1549
+ underline: {
1550
+ viewBox: "0 0 24 24",
1551
+ width: 24,
1552
+ height: 24
1553
+ },
1554
+ undo: {
1555
+ viewBox: "0 0 24 24",
1556
+ width: 24,
1557
+ height: 24
1558
+ }
1784
1559
  }
1785
- return n;
1786
- }
1787
- let r = $n(e, t);
1788
- for (; r && vi(r) && Ft(r); )
1789
- r = $n(r, t);
1790
- return r && $e(r) && Ft(r) && !on(r) ? n : r || mi(e) || n;
1791
- }
1792
- const Oi = async function(e) {
1793
- const t = this.getOffsetParent || dr, n = this.getDimensions, r = await n(e.floating);
1794
- return {
1795
- reference: Si(e.reference, await t(e.floating), e.strategy),
1796
- floating: {
1797
- x: 0,
1798
- y: 0,
1799
- width: r.width,
1800
- height: r.height
1560
+ },
1561
+ files: {
1562
+ filePath: "files.svg",
1563
+ items: {
1564
+ border: {
1565
+ viewBox: "0 0 476 64",
1566
+ width: 476,
1567
+ height: 64
1568
+ },
1569
+ borderError: {
1570
+ viewBox: "0 0 476 64",
1571
+ width: 476,
1572
+ height: 64
1573
+ },
1574
+ documentFilled: {
1575
+ viewBox: "0 0 22 28",
1576
+ width: 22,
1577
+ height: 28
1578
+ },
1579
+ documentOutline: {
1580
+ viewBox: "0 0 22 28",
1581
+ width: 22,
1582
+ height: 28
1583
+ },
1584
+ upload: {
1585
+ viewBox: "0 0 23 20",
1586
+ width: 23,
1587
+ height: 20
1588
+ }
1801
1589
  }
1802
- };
1803
- };
1804
- function _i(e) {
1805
- return ie(e).direction === "rtl";
1806
- }
1807
- const Ti = {
1808
- convertOffsetParentRelativeRectToViewportRelativeRect: wi,
1809
- getDocumentElement: ue,
1810
- getClippingRect: Pi,
1811
- getOffsetParent: dr,
1812
- getElementRects: Oi,
1813
- getClientRects: bi,
1814
- getDimensions: Ai,
1815
- getScale: Fe,
1816
- isElement: oe,
1817
- isRTL: _i
1818
- };
1819
- function Ni(e, t) {
1820
- let n = null, r;
1821
- const o = ue(e);
1822
- function i() {
1823
- var s;
1824
- clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
1825
- }
1826
- function a(s, u) {
1827
- s === void 0 && (s = !1), u === void 0 && (u = 1), i();
1828
- const {
1829
- left: l,
1830
- top: f,
1831
- width: p,
1832
- height: v
1833
- } = e.getBoundingClientRect();
1834
- if (s || t(), !p || !v)
1835
- return;
1836
- const m = ct(f), x = ct(o.clientWidth - (l + p)), h = ct(o.clientHeight - (f + v)), g = ct(l), b = {
1837
- rootMargin: -m + "px " + -x + "px " + -h + "px " + -g + "px",
1838
- threshold: ee(0, ge(1, u)) || 1
1839
- };
1840
- let E = !0;
1841
- function R(A) {
1842
- const _ = A[0].intersectionRatio;
1843
- if (_ !== u) {
1844
- if (!E)
1845
- return a();
1846
- _ ? a(!1, _) : r = setTimeout(() => {
1847
- a(!1, 1e-7);
1848
- }, 1e3);
1590
+ },
1591
+ general: {
1592
+ filePath: "general.svg",
1593
+ items: {
1594
+ calendar: {
1595
+ viewBox: "0 0 19 20",
1596
+ width: 19,
1597
+ height: 20
1598
+ },
1599
+ check: {
1600
+ viewBox: "0 0 24 24",
1601
+ width: 800,
1602
+ height: 800
1603
+ },
1604
+ close: {
1605
+ viewBox: "0 0 24 24",
1606
+ width: 24,
1607
+ height: 24
1608
+ },
1609
+ edit: {
1610
+ viewBox: "0 0 19 19",
1611
+ width: 19,
1612
+ height: 19
1613
+ },
1614
+ hiddenEye: {
1615
+ viewBox: "0 0 20 18",
1616
+ width: 20,
1617
+ height: 18
1618
+ },
1619
+ plus: {
1620
+ viewBox: "0 0 16 16",
1621
+ width: 16,
1622
+ height: 16
1623
+ },
1624
+ showEye: {
1625
+ viewBox: "0 0 20 14",
1626
+ width: 20,
1627
+ height: 14
1849
1628
  }
1850
- E = !1;
1851
- }
1852
- try {
1853
- n = new IntersectionObserver(R, {
1854
- ...b,
1855
- // Handle <iframe>s
1856
- root: o.ownerDocument
1857
- });
1858
- } catch {
1859
- n = new IntersectionObserver(R, b);
1860
1629
  }
1861
- n.observe(e);
1862
- }
1863
- return a(!0), i;
1864
- }
1865
- function ki(e, t, n, r) {
1866
- r === void 0 && (r = {});
1867
- const {
1868
- ancestorScroll: o = !0,
1869
- ancestorResize: i = !0,
1870
- elementResize: a = typeof ResizeObserver == "function",
1871
- layoutShift: s = typeof IntersectionObserver == "function",
1872
- animationFrame: u = !1
1873
- } = r, l = sn(e), f = o || i ? [...l ? Je(l) : [], ...Je(t)] : [];
1874
- f.forEach((w) => {
1875
- o && w.addEventListener("scroll", n, {
1876
- passive: !0
1877
- }), i && w.addEventListener("resize", n);
1878
- });
1879
- const p = l && s ? Ni(l, n) : null;
1880
- let v = -1, m = null;
1881
- a && (m = new ResizeObserver((w) => {
1882
- let [b] = w;
1883
- b && b.target === l && m && (m.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1884
- var E;
1885
- (E = m) == null || E.observe(t);
1886
- })), n();
1887
- }), l && !u && m.observe(l), m.observe(t));
1888
- let x, h = u ? _e(e) : null;
1889
- u && g();
1890
- function g() {
1891
- const w = _e(e);
1892
- h && (w.x !== h.x || w.y !== h.y || w.width !== h.width || w.height !== h.height) && n(), h = w, x = requestAnimationFrame(g);
1893
- }
1894
- return n(), () => {
1895
- var w;
1896
- f.forEach((b) => {
1897
- o && b.removeEventListener("scroll", n), i && b.removeEventListener("resize", n);
1898
- }), p == null || p(), (w = m) == null || w.disconnect(), m = null, u && cancelAnimationFrame(x);
1899
- };
1900
- }
1901
- const yc = We, ji = fi, Di = di, Mi = ci, Ii = hi, Li = li, Vn = si, Fi = pi, Bi = (e, t, n) => {
1902
- const r = /* @__PURE__ */ new Map(), o = {
1903
- platform: Ti,
1904
- ...n
1905
- }, i = {
1906
- ...o.platform,
1907
- _c: r
1908
- };
1909
- return ai(e, t, {
1910
- ...o,
1911
- platform: i
1912
- });
1913
- };
1914
- function zn(e, t) {
1915
- if (typeof e == "function")
1916
- return e(t);
1917
- e != null && (e.current = t);
1918
- }
1919
- function pr(...e) {
1920
- return (t) => {
1921
- let n = !1;
1922
- const r = e.map((o) => {
1923
- const i = zn(o, t);
1924
- return !n && typeof i == "function" && (n = !0), i;
1925
- });
1926
- if (n)
1927
- return () => {
1928
- for (let o = 0; o < r.length; o++) {
1929
- const i = r[o];
1930
- typeof i == "function" ? i() : zn(e[o], null);
1931
- }
1932
- };
1933
- };
1934
- }
1935
- function re(...e) {
1936
- return d.useCallback(pr(...e), e);
1937
- }
1938
- function et(e, t = []) {
1939
- let n = [];
1940
- function r(i, a) {
1941
- const s = d.createContext(a), u = n.length;
1942
- n = [...n, a];
1943
- const l = (p) => {
1944
- var w;
1945
- const { scope: v, children: m, ...x } = p, h = ((w = v == null ? void 0 : v[e]) == null ? void 0 : w[u]) || s, g = d.useMemo(() => x, Object.values(x));
1946
- return /* @__PURE__ */ y.jsx(h.Provider, { value: g, children: m });
1947
- };
1948
- l.displayName = i + "Provider";
1949
- function f(p, v) {
1950
- var h;
1951
- const m = ((h = v == null ? void 0 : v[e]) == null ? void 0 : h[u]) || s, x = d.useContext(m);
1952
- if (x) return x;
1953
- if (a !== void 0) return a;
1954
- throw new Error(`\`${p}\` must be used within \`${i}\``);
1630
+ },
1631
+ info: {
1632
+ filePath: "info.svg",
1633
+ items: {
1634
+ helpCircle: {
1635
+ viewBox: "0 0 12 12",
1636
+ width: 12,
1637
+ height: 12
1638
+ },
1639
+ warningCircle: {
1640
+ viewBox: "0 0 20 20",
1641
+ width: 20,
1642
+ height: 20
1643
+ }
1955
1644
  }
1956
- return [l, f];
1957
- }
1958
- const o = () => {
1959
- const i = n.map((a) => d.createContext(a));
1960
- return function(s) {
1961
- const u = (s == null ? void 0 : s[e]) || i;
1962
- return d.useMemo(
1963
- () => ({ [`__scope${e}`]: { ...s, [e]: u } }),
1964
- [s, u]
1965
- );
1966
- };
1967
- };
1968
- return o.scopeName = e, [r, Wi(o, ...t)];
1969
- }
1970
- function Wi(...e) {
1971
- const t = e[0];
1972
- if (e.length === 1) return t;
1973
- const n = () => {
1974
- const r = e.map((o) => ({
1975
- useScope: o(),
1976
- scopeName: o.scopeName
1977
- }));
1978
- return function(i) {
1979
- const a = r.reduce((s, { useScope: u, scopeName: l }) => {
1980
- const p = u(i)[`__scope${l}`];
1981
- return { ...s, ...p };
1982
- }, {});
1983
- return d.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
1984
- };
1985
- };
1986
- return n.scopeName = t.scopeName, n;
1987
- }
1988
- function ce(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1989
- return function(o) {
1990
- if (e == null || e(o), n === !1 || !o.defaultPrevented)
1991
- return t == null ? void 0 : t(o);
1992
- };
1993
- }
1994
- function be(e) {
1995
- const t = d.useRef(e);
1996
- return d.useEffect(() => {
1997
- t.current = e;
1998
- }), d.useMemo(() => (...n) => {
1999
- var r;
2000
- return (r = t.current) == null ? void 0 : r.call(t, ...n);
2001
- }, []);
2002
- }
2003
- function Pt({
2004
- prop: e,
2005
- defaultProp: t,
2006
- onChange: n = () => {
2007
- }
2008
- }) {
2009
- const [r, o] = $i({ defaultProp: t, onChange: n }), i = e !== void 0, a = i ? e : r, s = be(n), u = d.useCallback(
2010
- (l) => {
2011
- if (i) {
2012
- const p = typeof l == "function" ? l(e) : l;
2013
- p !== e && s(p);
2014
- } else
2015
- o(l);
2016
- },
2017
- [i, e, o, s]
2018
- );
2019
- return [a, u];
2020
- }
2021
- function $i({
2022
- defaultProp: e,
2023
- onChange: t
2024
- }) {
2025
- const n = d.useState(e), [r] = n, o = d.useRef(r), i = be(t);
2026
- return d.useEffect(() => {
2027
- o.current !== r && (i(r), o.current = r);
2028
- }, [r, o, i]), n;
2029
- }
2030
- var xe = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
2031
- };
2032
- function Vi(e) {
2033
- const [t, n] = d.useState(void 0);
2034
- return xe(() => {
2035
- if (e) {
2036
- n({ width: e.offsetWidth, height: e.offsetHeight });
2037
- const r = new ResizeObserver((o) => {
2038
- if (!Array.isArray(o) || !o.length)
2039
- return;
2040
- const i = o[0];
2041
- let a, s;
2042
- if ("borderBoxSize" in i) {
2043
- const u = i.borderBoxSize, l = Array.isArray(u) ? u[0] : u;
2044
- a = l.inlineSize, s = l.blockSize;
2045
- } else
2046
- a = e.offsetWidth, s = e.offsetHeight;
2047
- n({ width: a, height: s });
2048
- });
2049
- return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
2050
- } else
2051
- n(void 0);
2052
- }, [e]), t;
2053
- }
2054
- function zi(e, t) {
2055
- return d.useReducer((n, r) => t[n][r] ?? n, e);
2056
- }
2057
- var At = (e) => {
2058
- const { present: t, children: n } = e, r = Hi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : d.Children.only(n), i = re(r.ref, Ui(o));
2059
- return typeof n == "function" || r.isPresent ? d.cloneElement(o, { ref: i }) : null;
2060
- };
2061
- At.displayName = "Presence";
2062
- function Hi(e) {
2063
- const [t, n] = d.useState(), r = d.useRef({}), o = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, u] = zi(a, {
2064
- mounted: {
2065
- UNMOUNT: "unmounted",
2066
- ANIMATION_OUT: "unmountSuspended"
2067
- },
2068
- unmountSuspended: {
2069
- MOUNT: "mounted",
2070
- ANIMATION_END: "unmounted"
2071
- },
2072
- unmounted: {
2073
- MOUNT: "mounted"
1645
+ },
1646
+ logos: {
1647
+ filePath: "logos.svg",
1648
+ items: {
1649
+ beeline: {
1650
+ viewBox: "0 0 32 32",
1651
+ width: 32,
1652
+ height: 32
1653
+ },
1654
+ megafon: {
1655
+ viewBox: "0 0 32 32",
1656
+ width: 32,
1657
+ height: 32
1658
+ },
1659
+ mts: {
1660
+ viewBox: "0 0 32 32",
1661
+ width: 32,
1662
+ height: 32
1663
+ }
2074
1664
  }
2075
- });
2076
- return d.useEffect(() => {
2077
- const l = lt(r.current);
2078
- i.current = s === "mounted" ? l : "none";
2079
- }, [s]), xe(() => {
2080
- const l = r.current, f = o.current;
2081
- if (f !== e) {
2082
- const v = i.current, m = lt(l);
2083
- e ? u("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(f && v !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1665
+ },
1666
+ social: {
1667
+ filePath: "social.svg",
1668
+ items: {
1669
+ classmates: {
1670
+ viewBox: "0 0 9 15",
1671
+ width: 9,
1672
+ height: 15
1673
+ },
1674
+ telegram: {
1675
+ viewBox: "0 0 15 13",
1676
+ width: 15,
1677
+ height: 13
1678
+ },
1679
+ vk: {
1680
+ viewBox: "0 0 16 9",
1681
+ width: 16,
1682
+ height: 9
1683
+ }
2084
1684
  }
2085
- }, [e, u]), xe(() => {
2086
- if (t) {
2087
- let l;
2088
- const f = t.ownerDocument.defaultView ?? window, p = (m) => {
2089
- const h = lt(r.current).includes(m.animationName);
2090
- if (m.target === t && h && (u("ANIMATION_END"), !o.current)) {
2091
- const g = t.style.animationFillMode;
2092
- t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
2093
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
2094
- });
2095
- }
2096
- }, v = (m) => {
2097
- m.target === t && (i.current = lt(r.current));
2098
- };
2099
- return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
2100
- f.clearTimeout(l), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
2101
- };
2102
- } else
2103
- u("ANIMATION_END");
2104
- }, [t, u]), {
2105
- isPresent: ["mounted", "unmountSuspended"].includes(s),
2106
- ref: d.useCallback((l) => {
2107
- l && (r.current = getComputedStyle(l)), n(l);
2108
- }, [])
2109
- };
2110
- }
2111
- function lt(e) {
2112
- return (e == null ? void 0 : e.animationName) || "none";
2113
- }
2114
- function Ui(e) {
2115
- var r, o;
2116
- let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
2117
- return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2118
- }
2119
- var Ze = d.forwardRef((e, t) => {
2120
- const { children: n, ...r } = e, o = d.Children.toArray(n), i = o.find(Ki);
2121
- if (i) {
2122
- const a = i.props.children, s = o.map((u) => u === i ? d.Children.count(a) > 1 ? d.Children.only(null) : d.isValidElement(a) ? a.props.children : null : u);
2123
- return /* @__PURE__ */ y.jsx(Jt, { ...r, ref: t, children: d.isValidElement(a) ? d.cloneElement(a, void 0, s) : null });
2124
- }
2125
- return /* @__PURE__ */ y.jsx(Jt, { ...r, ref: t, children: n });
2126
- });
2127
- Ze.displayName = "Slot";
2128
- var Jt = d.forwardRef((e, t) => {
2129
- const { children: n, ...r } = e;
2130
- if (d.isValidElement(n)) {
2131
- const o = Gi(n);
2132
- return d.cloneElement(n, {
2133
- ...Xi(r, n.props),
2134
- // @ts-ignore
2135
- ref: t ? pr(t, o) : o
2136
- });
2137
- }
2138
- return d.Children.count(n) > 1 ? d.Children.only(null) : null;
2139
- });
2140
- Jt.displayName = "SlotClone";
2141
- var Yi = ({ children: e }) => /* @__PURE__ */ y.jsx(y.Fragment, { children: e });
2142
- function Ki(e) {
2143
- return d.isValidElement(e) && e.type === Yi;
2144
- }
2145
- function Xi(e, t) {
2146
- const n = { ...t };
2147
- for (const r in t) {
2148
- const o = e[r], i = t[r];
2149
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
2150
- i(...s), o(...s);
2151
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
2152
1685
  }
2153
- return { ...e, ...n };
2154
- }
2155
- function Gi(e) {
2156
- var r, o;
2157
- let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
2158
- return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2159
- }
2160
- var qi = [
2161
- "a",
2162
- "button",
2163
- "div",
2164
- "form",
2165
- "h2",
2166
- "h3",
2167
- "img",
2168
- "input",
2169
- "label",
2170
- "li",
2171
- "nav",
2172
- "ol",
2173
- "p",
2174
- "span",
2175
- "svg",
2176
- "ul"
2177
- ], Z = qi.reduce((e, t) => {
2178
- const n = d.forwardRef((r, o) => {
2179
- const { asChild: i, ...a } = r, s = i ? Ze : t;
2180
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y.jsx(s, { ...a, ref: o });
2181
- });
2182
- return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
2183
- }, {});
2184
- function Ji(e, t) {
2185
- e && or.flushSync(() => e.dispatchEvent(t));
2186
- }
2187
- function Zi(e) {
2188
- const t = e + "CollectionProvider", [n, r] = et(t), [o, i] = n(
2189
- t,
2190
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
2191
- ), a = (m) => {
2192
- const { scope: x, children: h } = m, g = H.useRef(null), w = H.useRef(/* @__PURE__ */ new Map()).current;
2193
- return /* @__PURE__ */ y.jsx(o, { scope: x, itemMap: w, collectionRef: g, children: h });
2194
- };
2195
- a.displayName = t;
2196
- const s = e + "CollectionSlot", u = H.forwardRef(
2197
- (m, x) => {
2198
- const { scope: h, children: g } = m, w = i(s, h), b = re(x, w.collectionRef);
2199
- return /* @__PURE__ */ y.jsx(Ze, { ref: b, children: g });
1686
+ }, Mi = (e) => {
1687
+ const [t, n] = e.split("/"), {
1688
+ filePath: r,
1689
+ items: {
1690
+ [n]: { viewBox: o, width: i, height: a }
2200
1691
  }
2201
- );
2202
- u.displayName = s;
2203
- const l = e + "CollectionItemSlot", f = "data-radix-collection-item", p = H.forwardRef(
2204
- (m, x) => {
2205
- const { scope: h, children: g, ...w } = m, b = H.useRef(null), E = re(x, b), R = i(l, h);
2206
- return H.useEffect(() => (R.itemMap.set(b, { ref: b, ...w }), () => void R.itemMap.delete(b))), /* @__PURE__ */ y.jsx(Ze, { [f]: "", ref: E, children: g });
1692
+ } = Di[t], s = i === a ? "xy" : i > a ? "x" : "y";
1693
+ return { filePath: r, iconName: n, viewBox: o, axis: s };
1694
+ }, de = ({ name: e, className: t, ...n }) => {
1695
+ const { viewBox: r, filePath: o, iconName: i, axis: a } = Mi(e);
1696
+ return /* @__PURE__ */ y.jsx(
1697
+ "svg",
1698
+ {
1699
+ className: L("text-inherit inline-block size-6 select-none fill-current", t),
1700
+ focusable: "false",
1701
+ viewBox: r,
1702
+ "aria-hidden": !0,
1703
+ "data-axis": a,
1704
+ ...n,
1705
+ children: /* @__PURE__ */ y.jsx("use", { href: `/sprites/${o}#${i}` })
2207
1706
  }
2208
1707
  );
2209
- p.displayName = l;
2210
- function v(m) {
2211
- const x = i(e + "CollectionConsumer", m);
2212
- return H.useCallback(() => {
2213
- const g = x.collectionRef.current;
2214
- if (!g) return [];
2215
- const w = Array.from(g.querySelectorAll(`[${f}]`));
2216
- return Array.from(x.itemMap.values()).sort(
2217
- (R, A) => w.indexOf(R.ref.current) - w.indexOf(A.ref.current)
2218
- );
2219
- }, [x.collectionRef, x.itemMap]);
2220
- }
2221
- return [
2222
- { Provider: a, Slot: u, ItemSlot: p },
2223
- v,
2224
- r
2225
- ];
2226
- }
2227
- var Qi = d.useId || (() => {
2228
- }), ea = 0;
2229
- function ln(e) {
2230
- const [t, n] = d.useState(Qi());
2231
- return xe(() => {
2232
- n((r) => r ?? String(ea++));
2233
- }, [e]), t ? `radix-${t}` : "";
2234
- }
2235
- var un = "Collapsible", [ta, hr] = et(un), [na, fn] = ta(un), vr = d.forwardRef(
2236
- (e, t) => {
2237
- const {
2238
- __scopeCollapsible: n,
2239
- open: r,
2240
- defaultOpen: o,
2241
- disabled: i,
2242
- onOpenChange: a,
2243
- ...s
2244
- } = e, [u = !1, l] = Pt({
2245
- prop: r,
2246
- defaultProp: o,
2247
- onChange: a
2248
- });
2249
- return /* @__PURE__ */ y.jsx(
2250
- na,
2251
- {
2252
- scope: n,
2253
- disabled: i,
2254
- contentId: ln(),
2255
- open: u,
2256
- onOpenToggle: d.useCallback(() => l((f) => !f), [l]),
2257
- children: /* @__PURE__ */ y.jsx(
2258
- Z.div,
1708
+ }, Cr = d.forwardRef(
1709
+ ({ children: e, classes: t, icon: n, ...r }, o) => /* @__PURE__ */ y.jsx(Ni, { className: L("rounded-sm bg-color-primary-light-default", t == null ? void 0 : t.header), children: /* @__PURE__ */ y.jsxs(
1710
+ ki,
1711
+ {
1712
+ ref: o,
1713
+ className: L(
1714
+ "group flex w-full cursor-pointer items-center justify-between gap-5 rounded-sm border border-solid border-transparent bg-color-transparent px-4 py-3 outline-0 focus-visible:border-primary-default desktop:px-6 desktop:py-4",
1715
+ t == null ? void 0 : t.trigger
1716
+ ),
1717
+ ...r,
1718
+ children: [
1719
+ /* @__PURE__ */ y.jsx("div", { className: L("desk-body-medium-l flex-1 text-left text-color-dark", t == null ? void 0 : t.label), children: e }),
1720
+ n || /* @__PURE__ */ y.jsx(
1721
+ de,
2259
1722
  {
2260
- "data-state": pn(u),
2261
- "data-disabled": i ? "" : void 0,
2262
- ...s,
2263
- ref: t
1723
+ name: "arrows/arrowCircle",
1724
+ className: L(
1725
+ "size-8 rotate-180 text-icon-blue-grey-800 transition-all group-data-[state=open]:rotate-0",
1726
+ t == null ? void 0 : t.icon
1727
+ )
2264
1728
  }
2265
1729
  )
2266
- }
2267
- );
2268
- }
1730
+ ]
1731
+ }
1732
+ ) })
1733
+ );
1734
+ Cr.displayName = "AccordionHeader";
1735
+ const wc = rr(
1736
+ ({ children: e, label: t, classes: n, defaultOpen: r = !1, icon: o }, i) => /* @__PURE__ */ y.jsx(
1737
+ _i,
1738
+ {
1739
+ className: L("flex flex-col gap-5", n == null ? void 0 : n.root),
1740
+ type: "multiple",
1741
+ defaultValue: r ? [t.toString()] : void 0,
1742
+ children: /* @__PURE__ */ y.jsxs(Ti, { className: L("w-full disabled:text-color-dark", n == null ? void 0 : n.wrapper), value: t.toString(), children: [
1743
+ /* @__PURE__ */ y.jsx(Cr, { icon: o, classes: n, children: t }),
1744
+ /* @__PURE__ */ y.jsx(
1745
+ ji,
1746
+ {
1747
+ id: "text",
1748
+ ref: i,
1749
+ className: L(
1750
+ "desk-body-regular-l max-w-[680px] overflow-hidden bg-color-transparent text-color-dark transition-all data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown",
1751
+ n == null ? void 0 : n.content
1752
+ ),
1753
+ children: /* @__PURE__ */ y.jsx("div", { className: L("p-4 desktop:p-6", n == null ? void 0 : n.contentInner), children: e })
1754
+ }
1755
+ )
1756
+ ] })
1757
+ }
1758
+ )
2269
1759
  );
2270
- vr.displayName = un;
2271
- var mr = "CollapsibleTrigger", gr = d.forwardRef(
1760
+ function Ii(e, t = globalThis == null ? void 0 : globalThis.document) {
1761
+ const n = ge(e);
1762
+ d.useEffect(() => {
1763
+ const r = (o) => {
1764
+ o.key === "Escape" && n(o);
1765
+ };
1766
+ return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
1767
+ }, [n, t]);
1768
+ }
1769
+ var Li = "DismissableLayer", qt = "dismissableLayer.update", Fi = "dismissableLayer.pointerDownOutside", Bi = "dismissableLayer.focusOutside", Ln, Er = d.createContext({
1770
+ layers: /* @__PURE__ */ new Set(),
1771
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1772
+ branches: /* @__PURE__ */ new Set()
1773
+ }), Rr = d.forwardRef(
2272
1774
  (e, t) => {
2273
- const { __scopeCollapsible: n, ...r } = e, o = fn(mr, n);
2274
- return /* @__PURE__ */ y.jsx(
2275
- Z.button,
1775
+ const {
1776
+ disableOutsidePointerEvents: n = !1,
1777
+ onEscapeKeyDown: r,
1778
+ onPointerDownOutside: o,
1779
+ onFocusOutside: i,
1780
+ onInteractOutside: a,
1781
+ onDismiss: s,
1782
+ ...u
1783
+ } = e, l = d.useContext(Er), [f, p] = d.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = d.useState({}), x = re(t, (S) => p(S)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(g), b = f ? h.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, R = b >= w, A = Vi((S) => {
1784
+ const j = S.target, F = [...l.branches].some((W) => W.contains(j));
1785
+ !R || F || (o == null || o(S), a == null || a(S), S.defaultPrevented || s == null || s());
1786
+ }, v), _ = zi((S) => {
1787
+ const j = S.target;
1788
+ [...l.branches].some((W) => W.contains(j)) || (i == null || i(S), a == null || a(S), S.defaultPrevented || s == null || s());
1789
+ }, v);
1790
+ return Ii((S) => {
1791
+ b === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
1792
+ }, v), d.useEffect(() => {
1793
+ if (f)
1794
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Ln = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Fn(), () => {
1795
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = Ln);
1796
+ };
1797
+ }, [f, v, n, l]), d.useEffect(() => () => {
1798
+ f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Fn());
1799
+ }, [f, l]), d.useEffect(() => {
1800
+ const S = () => m({});
1801
+ return document.addEventListener(qt, S), () => document.removeEventListener(qt, S);
1802
+ }, []), /* @__PURE__ */ y.jsx(
1803
+ Z.div,
2276
1804
  {
2277
- type: "button",
2278
- "aria-controls": o.contentId,
2279
- "aria-expanded": o.open || !1,
2280
- "data-state": pn(o.open),
2281
- "data-disabled": o.disabled ? "" : void 0,
2282
- disabled: o.disabled,
2283
- ...r,
2284
- ref: t,
2285
- onClick: ce(e.onClick, o.onOpenToggle)
1805
+ ...u,
1806
+ ref: x,
1807
+ style: {
1808
+ pointerEvents: E ? R ? "auto" : "none" : void 0,
1809
+ ...e.style
1810
+ },
1811
+ onFocusCapture: se(e.onFocusCapture, _.onFocusCapture),
1812
+ onBlurCapture: se(e.onBlurCapture, _.onBlurCapture),
1813
+ onPointerDownCapture: se(
1814
+ e.onPointerDownCapture,
1815
+ A.onPointerDownCapture
1816
+ )
2286
1817
  }
2287
- );
2288
- }
2289
- );
2290
- gr.displayName = mr;
2291
- var dn = "CollapsibleContent", yr = d.forwardRef(
2292
- (e, t) => {
2293
- const { forceMount: n, ...r } = e, o = fn(dn, e.__scopeCollapsible);
2294
- return /* @__PURE__ */ y.jsx(At, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ y.jsx(ra, { ...r, ref: t, present: i }) });
1818
+ );
2295
1819
  }
2296
1820
  );
2297
- yr.displayName = dn;
2298
- var ra = d.forwardRef((e, t) => {
2299
- const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = fn(dn, n), [s, u] = d.useState(r), l = d.useRef(null), f = re(t, l), p = d.useRef(0), v = p.current, m = d.useRef(0), x = m.current, h = a.open || s, g = d.useRef(h), w = d.useRef(void 0);
1821
+ Rr.displayName = Li;
1822
+ var Wi = "DismissableLayerBranch", $i = d.forwardRef((e, t) => {
1823
+ const n = d.useContext(Er), r = d.useRef(null), o = re(t, r);
2300
1824
  return d.useEffect(() => {
2301
- const b = requestAnimationFrame(() => g.current = !1);
2302
- return () => cancelAnimationFrame(b);
2303
- }, []), xe(() => {
2304
- const b = l.current;
2305
- if (b) {
2306
- w.current = w.current || {
2307
- transitionDuration: b.style.transitionDuration,
2308
- animationName: b.style.animationName
2309
- }, b.style.transitionDuration = "0s", b.style.animationName = "none";
2310
- const E = b.getBoundingClientRect();
2311
- p.current = E.height, m.current = E.width, g.current || (b.style.transitionDuration = w.current.transitionDuration, b.style.animationName = w.current.animationName), u(r);
2312
- }
2313
- }, [a.open, r]), /* @__PURE__ */ y.jsx(
2314
- Z.div,
2315
- {
2316
- "data-state": pn(a.open),
2317
- "data-disabled": a.disabled ? "" : void 0,
2318
- id: a.contentId,
2319
- hidden: !h,
2320
- ...i,
2321
- ref: f,
2322
- style: {
2323
- "--radix-collapsible-content-height": v ? `${v}px` : void 0,
2324
- "--radix-collapsible-content-width": x ? `${x}px` : void 0,
2325
- ...e.style
2326
- },
2327
- children: h && o
2328
- }
2329
- );
1825
+ const i = r.current;
1826
+ if (i)
1827
+ return n.branches.add(i), () => {
1828
+ n.branches.delete(i);
1829
+ };
1830
+ }, [n.branches]), /* @__PURE__ */ y.jsx(Z.div, { ...e, ref: o });
2330
1831
  });
2331
- function pn(e) {
2332
- return e ? "open" : "closed";
1832
+ $i.displayName = Wi;
1833
+ function Vi(e, t = globalThis == null ? void 0 : globalThis.document) {
1834
+ const n = ge(e), r = d.useRef(!1), o = d.useRef(() => {
1835
+ });
1836
+ return d.useEffect(() => {
1837
+ const i = (s) => {
1838
+ if (s.target && !r.current) {
1839
+ let u = function() {
1840
+ Pr(
1841
+ Fi,
1842
+ n,
1843
+ l,
1844
+ { discrete: !0 }
1845
+ );
1846
+ };
1847
+ const l = { originalEvent: s };
1848
+ s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
1849
+ } else
1850
+ t.removeEventListener("click", o.current);
1851
+ r.current = !1;
1852
+ }, a = window.setTimeout(() => {
1853
+ t.addEventListener("pointerdown", i);
1854
+ }, 0);
1855
+ return () => {
1856
+ window.clearTimeout(a), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
1857
+ };
1858
+ }, [t, n]), {
1859
+ // ensures we check React component tree (not just DOM tree)
1860
+ onPointerDownCapture: () => r.current = !0
1861
+ };
2333
1862
  }
2334
- var oa = vr, ia = gr, aa = yr, sa = d.createContext(void 0);
2335
- function ca(e) {
2336
- const t = d.useContext(sa);
2337
- return e || t || "ltr";
1863
+ function zi(e, t = globalThis == null ? void 0 : globalThis.document) {
1864
+ const n = ge(e), r = d.useRef(!1);
1865
+ return d.useEffect(() => {
1866
+ const o = (i) => {
1867
+ i.target && !r.current && Pr(Bi, n, { originalEvent: i }, {
1868
+ discrete: !1
1869
+ });
1870
+ };
1871
+ return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
1872
+ }, [t, n]), {
1873
+ onFocusCapture: () => r.current = !0,
1874
+ onBlurCapture: () => r.current = !1
1875
+ };
2338
1876
  }
2339
- var ve = "Accordion", la = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [hn, ua, fa] = Zi(ve), [St, wc] = et(ve, [
2340
- fa,
2341
- hr
2342
- ]), vn = hr(), wr = H.forwardRef(
2343
- (e, t) => {
2344
- const { type: n, ...r } = e, o = r, i = r;
2345
- return /* @__PURE__ */ y.jsx(hn.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ y.jsx(va, { ...i, ref: t }) : /* @__PURE__ */ y.jsx(ha, { ...o, ref: t }) });
2346
- }
2347
- );
2348
- wr.displayName = ve;
2349
- var [br, da] = St(ve), [xr, pa] = St(
2350
- ve,
2351
- { collapsible: !1 }
2352
- ), ha = H.forwardRef(
2353
- (e, t) => {
2354
- const {
2355
- value: n,
2356
- defaultValue: r,
2357
- onValueChange: o = () => {
2358
- },
2359
- collapsible: i = !1,
2360
- ...a
2361
- } = e, [s, u] = Pt({
2362
- prop: n,
2363
- defaultProp: r,
2364
- onChange: o
2365
- });
2366
- return /* @__PURE__ */ y.jsx(
2367
- br,
2368
- {
2369
- scope: e.__scopeAccordion,
2370
- value: s ? [s] : [],
2371
- onItemOpen: u,
2372
- onItemClose: H.useCallback(() => i && u(""), [i, u]),
2373
- children: /* @__PURE__ */ y.jsx(xr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ y.jsx(Cr, { ...a, ref: t }) })
2374
- }
2375
- );
1877
+ function Fn() {
1878
+ const e = new CustomEvent(qt);
1879
+ document.dispatchEvent(e);
1880
+ }
1881
+ function Pr(e, t, n, { discrete: r }) {
1882
+ const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1883
+ t && o.addEventListener(e, t, { once: !0 }), r ? ai(o, i) : o.dispatchEvent(i);
1884
+ }
1885
+ const Hi = ["top", "right", "bottom", "left"], we = Math.min, ee = Math.max, yt = Math.round, lt = Math.floor, ce = (e) => ({
1886
+ x: e,
1887
+ y: e
1888
+ }), Ui = {
1889
+ left: "right",
1890
+ right: "left",
1891
+ bottom: "top",
1892
+ top: "bottom"
1893
+ }, Yi = {
1894
+ start: "end",
1895
+ end: "start"
1896
+ };
1897
+ function Jt(e, t, n) {
1898
+ return ee(e, we(t, n));
1899
+ }
1900
+ function pe(e, t) {
1901
+ return typeof e == "function" ? e(t) : e;
1902
+ }
1903
+ function he(e) {
1904
+ return e.split("-")[0];
1905
+ }
1906
+ function He(e) {
1907
+ return e.split("-")[1];
1908
+ }
1909
+ function un(e) {
1910
+ return e === "x" ? "y" : "x";
1911
+ }
1912
+ function fn(e) {
1913
+ return e === "y" ? "height" : "width";
1914
+ }
1915
+ function be(e) {
1916
+ return ["top", "bottom"].includes(he(e)) ? "y" : "x";
1917
+ }
1918
+ function dn(e) {
1919
+ return un(be(e));
1920
+ }
1921
+ function Ki(e, t, n) {
1922
+ n === void 0 && (n = !1);
1923
+ const r = He(e), o = dn(e), i = fn(o);
1924
+ let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1925
+ return t.reference[i] > t.floating[i] && (a = wt(a)), [a, wt(a)];
1926
+ }
1927
+ function Xi(e) {
1928
+ const t = wt(e);
1929
+ return [Zt(e), t, Zt(t)];
1930
+ }
1931
+ function Zt(e) {
1932
+ return e.replace(/start|end/g, (t) => Yi[t]);
1933
+ }
1934
+ function Gi(e, t, n) {
1935
+ const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], a = ["bottom", "top"];
1936
+ switch (e) {
1937
+ case "top":
1938
+ case "bottom":
1939
+ return n ? t ? o : r : t ? r : o;
1940
+ case "left":
1941
+ case "right":
1942
+ return t ? i : a;
1943
+ default:
1944
+ return [];
2376
1945
  }
2377
- ), va = H.forwardRef((e, t) => {
1946
+ }
1947
+ function qi(e, t, n, r) {
1948
+ const o = He(e);
1949
+ let i = Gi(he(e), n === "start", r);
1950
+ return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(Zt)))), i;
1951
+ }
1952
+ function wt(e) {
1953
+ return e.replace(/left|right|bottom|top/g, (t) => Ui[t]);
1954
+ }
1955
+ function Ji(e) {
1956
+ return {
1957
+ top: 0,
1958
+ right: 0,
1959
+ bottom: 0,
1960
+ left: 0,
1961
+ ...e
1962
+ };
1963
+ }
1964
+ function Ar(e) {
1965
+ return typeof e != "number" ? Ji(e) : {
1966
+ top: e,
1967
+ right: e,
1968
+ bottom: e,
1969
+ left: e
1970
+ };
1971
+ }
1972
+ function bt(e) {
2378
1973
  const {
2379
- value: n,
2380
- defaultValue: r,
2381
- onValueChange: o = () => {
2382
- },
2383
- ...i
2384
- } = e, [a = [], s] = Pt({
2385
- prop: n,
2386
- defaultProp: r,
2387
- onChange: o
2388
- }), u = H.useCallback(
2389
- (f) => s((p = []) => [...p, f]),
2390
- [s]
2391
- ), l = H.useCallback(
2392
- (f) => s((p = []) => p.filter((v) => v !== f)),
2393
- [s]
2394
- );
2395
- return /* @__PURE__ */ y.jsx(
2396
- br,
2397
- {
2398
- scope: e.__scopeAccordion,
2399
- value: a,
2400
- onItemOpen: u,
2401
- onItemClose: l,
2402
- children: /* @__PURE__ */ y.jsx(xr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ y.jsx(Cr, { ...i, ref: t }) })
2403
- }
2404
- );
2405
- }), [ma, Ot] = St(ve), Cr = H.forwardRef(
2406
- (e, t) => {
2407
- const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = H.useRef(null), u = re(s, t), l = ua(n), p = ca(o) === "ltr", v = ce(e.onKeyDown, (m) => {
2408
- var j;
2409
- if (!la.includes(m.key)) return;
2410
- const x = m.target, h = l().filter((F) => {
2411
- var W;
2412
- return !((W = F.ref.current) != null && W.disabled);
2413
- }), g = h.findIndex((F) => F.ref.current === x), w = h.length;
2414
- if (g === -1) return;
2415
- m.preventDefault();
2416
- let b = g;
2417
- const E = 0, R = w - 1, A = () => {
2418
- b = g + 1, b > R && (b = E);
2419
- }, _ = () => {
2420
- b = g - 1, b < E && (b = R);
2421
- };
2422
- switch (m.key) {
2423
- case "Home":
2424
- b = E;
2425
- break;
2426
- case "End":
2427
- b = R;
2428
- break;
2429
- case "ArrowRight":
2430
- i === "horizontal" && (p ? A() : _());
2431
- break;
2432
- case "ArrowDown":
2433
- i === "vertical" && A();
2434
- break;
2435
- case "ArrowLeft":
2436
- i === "horizontal" && (p ? _() : A());
2437
- break;
2438
- case "ArrowUp":
2439
- i === "vertical" && _();
2440
- break;
2441
- }
2442
- const S = b % w;
2443
- (j = h[S].ref.current) == null || j.focus();
2444
- });
2445
- return /* @__PURE__ */ y.jsx(
2446
- ma,
2447
- {
2448
- scope: n,
2449
- disabled: r,
2450
- direction: o,
2451
- orientation: i,
2452
- children: /* @__PURE__ */ y.jsx(hn.Slot, { scope: n, children: /* @__PURE__ */ y.jsx(
2453
- Z.div,
2454
- {
2455
- ...a,
2456
- "data-orientation": i,
2457
- ref: u,
2458
- onKeyDown: r ? void 0 : v
2459
- }
2460
- ) })
2461
- }
2462
- );
1974
+ x: t,
1975
+ y: n,
1976
+ width: r,
1977
+ height: o
1978
+ } = e;
1979
+ return {
1980
+ width: r,
1981
+ height: o,
1982
+ top: n,
1983
+ left: t,
1984
+ right: t + r,
1985
+ bottom: n + o,
1986
+ x: t,
1987
+ y: n
1988
+ };
1989
+ }
1990
+ function Bn(e, t, n) {
1991
+ let {
1992
+ reference: r,
1993
+ floating: o
1994
+ } = e;
1995
+ const i = be(t), a = dn(t), s = fn(a), u = he(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, v = r[s] / 2 - o[s] / 2;
1996
+ let m;
1997
+ switch (u) {
1998
+ case "top":
1999
+ m = {
2000
+ x: f,
2001
+ y: r.y - o.height
2002
+ };
2003
+ break;
2004
+ case "bottom":
2005
+ m = {
2006
+ x: f,
2007
+ y: r.y + r.height
2008
+ };
2009
+ break;
2010
+ case "right":
2011
+ m = {
2012
+ x: r.x + r.width,
2013
+ y: p
2014
+ };
2015
+ break;
2016
+ case "left":
2017
+ m = {
2018
+ x: r.x - o.width,
2019
+ y: p
2020
+ };
2021
+ break;
2022
+ default:
2023
+ m = {
2024
+ x: r.x,
2025
+ y: r.y
2026
+ };
2463
2027
  }
2464
- ), bt = "AccordionItem", [ga, mn] = St(bt), Er = H.forwardRef(
2465
- (e, t) => {
2466
- const { __scopeAccordion: n, value: r, ...o } = e, i = Ot(bt, n), a = da(bt, n), s = vn(n), u = ln(), l = r && a.value.includes(r) || !1, f = i.disabled || e.disabled;
2467
- return /* @__PURE__ */ y.jsx(
2468
- ga,
2469
- {
2470
- scope: n,
2471
- open: l,
2472
- disabled: f,
2473
- triggerId: u,
2474
- children: /* @__PURE__ */ y.jsx(
2475
- oa,
2476
- {
2477
- "data-orientation": i.orientation,
2478
- "data-state": _r(l),
2479
- ...s,
2480
- ...o,
2481
- ref: t,
2482
- disabled: f,
2483
- open: l,
2484
- onOpenChange: (p) => {
2485
- p ? a.onItemOpen(r) : a.onItemClose(r);
2486
- }
2487
- }
2488
- )
2489
- }
2490
- );
2028
+ switch (He(t)) {
2029
+ case "start":
2030
+ m[a] -= v * (n && l ? -1 : 1);
2031
+ break;
2032
+ case "end":
2033
+ m[a] += v * (n && l ? -1 : 1);
2034
+ break;
2491
2035
  }
2492
- );
2493
- Er.displayName = bt;
2494
- var Rr = "AccordionHeader", Pr = H.forwardRef(
2495
- (e, t) => {
2496
- const { __scopeAccordion: n, ...r } = e, o = Ot(ve, n), i = mn(Rr, n);
2497
- return /* @__PURE__ */ y.jsx(
2498
- Z.h3,
2499
- {
2500
- "data-orientation": o.orientation,
2501
- "data-state": _r(i.open),
2502
- "data-disabled": i.disabled ? "" : void 0,
2503
- ...r,
2504
- ref: t
2036
+ return m;
2037
+ }
2038
+ const Zi = async (e, t, n) => {
2039
+ const {
2040
+ placement: r = "bottom",
2041
+ strategy: o = "absolute",
2042
+ middleware: i = [],
2043
+ platform: a
2044
+ } = n, s = i.filter(Boolean), u = await (a.isRTL == null ? void 0 : a.isRTL(t));
2045
+ let l = await a.getElementRects({
2046
+ reference: e,
2047
+ floating: t,
2048
+ strategy: o
2049
+ }), {
2050
+ x: f,
2051
+ y: p
2052
+ } = Bn(l, r, u), v = r, m = {}, x = 0;
2053
+ for (let h = 0; h < s.length; h++) {
2054
+ const {
2055
+ name: g,
2056
+ fn: w
2057
+ } = s[h], {
2058
+ x: b,
2059
+ y: E,
2060
+ data: R,
2061
+ reset: A
2062
+ } = await w({
2063
+ x: f,
2064
+ y: p,
2065
+ initialPlacement: r,
2066
+ placement: v,
2067
+ strategy: o,
2068
+ middlewareData: m,
2069
+ rects: l,
2070
+ platform: a,
2071
+ elements: {
2072
+ reference: e,
2073
+ floating: t
2505
2074
  }
2506
- );
2507
- }
2508
- );
2509
- Pr.displayName = Rr;
2510
- var Zt = "AccordionTrigger", Ar = H.forwardRef(
2511
- (e, t) => {
2512
- const { __scopeAccordion: n, ...r } = e, o = Ot(ve, n), i = mn(Zt, n), a = pa(Zt, n), s = vn(n);
2513
- return /* @__PURE__ */ y.jsx(hn.ItemSlot, { scope: n, children: /* @__PURE__ */ y.jsx(
2514
- ia,
2515
- {
2516
- "aria-disabled": i.open && !a.collapsible || void 0,
2517
- "data-orientation": o.orientation,
2518
- id: i.triggerId,
2519
- ...s,
2520
- ...r,
2521
- ref: t
2075
+ });
2076
+ f = b ?? f, p = E ?? p, m = {
2077
+ ...m,
2078
+ [g]: {
2079
+ ...m[g],
2080
+ ...R
2522
2081
  }
2523
- ) });
2082
+ }, A && x <= 50 && (x++, typeof A == "object" && (A.placement && (v = A.placement), A.rects && (l = A.rects === !0 ? await a.getElementRects({
2083
+ reference: e,
2084
+ floating: t,
2085
+ strategy: o
2086
+ }) : A.rects), {
2087
+ x: f,
2088
+ y: p
2089
+ } = Bn(l, v, u)), h = -1);
2524
2090
  }
2525
- );
2526
- Ar.displayName = Zt;
2527
- var Sr = "AccordionContent", Or = H.forwardRef(
2528
- (e, t) => {
2529
- const { __scopeAccordion: n, ...r } = e, o = Ot(ve, n), i = mn(Sr, n), a = vn(n);
2530
- return /* @__PURE__ */ y.jsx(
2531
- aa,
2532
- {
2533
- role: "region",
2534
- "aria-labelledby": i.triggerId,
2535
- "data-orientation": o.orientation,
2536
- ...a,
2537
- ...r,
2538
- ref: t,
2539
- style: {
2540
- "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
2541
- "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
2542
- ...e.style
2091
+ return {
2092
+ x: f,
2093
+ y: p,
2094
+ placement: v,
2095
+ strategy: o,
2096
+ middlewareData: m
2097
+ };
2098
+ };
2099
+ async function We(e, t) {
2100
+ var n;
2101
+ t === void 0 && (t = {});
2102
+ const {
2103
+ x: r,
2104
+ y: o,
2105
+ platform: i,
2106
+ rects: a,
2107
+ elements: s,
2108
+ strategy: u
2109
+ } = e, {
2110
+ boundary: l = "clippingAncestors",
2111
+ rootBoundary: f = "viewport",
2112
+ elementContext: p = "floating",
2113
+ altBoundary: v = !1,
2114
+ padding: m = 0
2115
+ } = pe(t, e), x = Ar(m), g = s[v ? p === "floating" ? "reference" : "floating" : p], w = bt(await i.getClippingRect({
2116
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
2117
+ boundary: l,
2118
+ rootBoundary: f,
2119
+ strategy: u
2120
+ })), b = p === "floating" ? {
2121
+ x: r,
2122
+ y: o,
2123
+ width: a.floating.width,
2124
+ height: a.floating.height
2125
+ } : a.reference, E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), R = await (i.isElement == null ? void 0 : i.isElement(E)) ? await (i.getScale == null ? void 0 : i.getScale(E)) || {
2126
+ x: 1,
2127
+ y: 1
2128
+ } : {
2129
+ x: 1,
2130
+ y: 1
2131
+ }, A = bt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
2132
+ elements: s,
2133
+ rect: b,
2134
+ offsetParent: E,
2135
+ strategy: u
2136
+ }) : b);
2137
+ return {
2138
+ top: (w.top - A.top + x.top) / R.y,
2139
+ bottom: (A.bottom - w.bottom + x.bottom) / R.y,
2140
+ left: (w.left - A.left + x.left) / R.x,
2141
+ right: (A.right - w.right + x.right) / R.x
2142
+ };
2143
+ }
2144
+ const Qi = (e) => ({
2145
+ name: "arrow",
2146
+ options: e,
2147
+ async fn(t) {
2148
+ const {
2149
+ x: n,
2150
+ y: r,
2151
+ placement: o,
2152
+ rects: i,
2153
+ platform: a,
2154
+ elements: s,
2155
+ middlewareData: u
2156
+ } = t, {
2157
+ element: l,
2158
+ padding: f = 0
2159
+ } = pe(e, t) || {};
2160
+ if (l == null)
2161
+ return {};
2162
+ const p = Ar(f), v = {
2163
+ x: n,
2164
+ y: r
2165
+ }, m = dn(o), x = fn(m), h = await a.getDimensions(l), g = m === "y", w = g ? "top" : "left", b = g ? "bottom" : "right", E = g ? "clientHeight" : "clientWidth", R = i.reference[x] + i.reference[m] - v[m] - i.floating[x], A = v[m] - i.reference[m], _ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
2166
+ let S = _ ? _[E] : 0;
2167
+ (!S || !await (a.isElement == null ? void 0 : a.isElement(_))) && (S = s.floating[E] || i.floating[x]);
2168
+ const j = R / 2 - A / 2, F = S / 2 - h[x] / 2 - 1, W = we(p[w], F), G = we(p[b], F), K = W, D = S - h[x] - G, I = S / 2 - h[x] / 2 + j, X = Jt(K, I, D), $ = !u.arrow && He(o) != null && I !== X && i.reference[x] / 2 - (I < K ? W : G) - h[x] / 2 < 0, V = $ ? I < K ? I - K : I - D : 0;
2169
+ return {
2170
+ [m]: v[m] + V,
2171
+ data: {
2172
+ [m]: X,
2173
+ centerOffset: I - X - V,
2174
+ ...$ && {
2175
+ alignmentOffset: V
2543
2176
  }
2177
+ },
2178
+ reset: $
2179
+ };
2180
+ }
2181
+ }), ea = function(e) {
2182
+ return e === void 0 && (e = {}), {
2183
+ name: "flip",
2184
+ options: e,
2185
+ async fn(t) {
2186
+ var n, r;
2187
+ const {
2188
+ placement: o,
2189
+ middlewareData: i,
2190
+ rects: a,
2191
+ initialPlacement: s,
2192
+ platform: u,
2193
+ elements: l
2194
+ } = t, {
2195
+ mainAxis: f = !0,
2196
+ crossAxis: p = !0,
2197
+ fallbackPlacements: v,
2198
+ fallbackStrategy: m = "bestFit",
2199
+ fallbackAxisSideDirection: x = "none",
2200
+ flipAlignment: h = !0,
2201
+ ...g
2202
+ } = pe(e, t);
2203
+ if ((n = i.arrow) != null && n.alignmentOffset)
2204
+ return {};
2205
+ const w = he(o), b = be(s), E = he(s) === s, R = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), A = v || (E || !h ? [wt(s)] : Xi(s)), _ = x !== "none";
2206
+ !v && _ && A.push(...qi(s, h, x, R));
2207
+ const S = [s, ...A], j = await We(t, g), F = [];
2208
+ let W = ((r = i.flip) == null ? void 0 : r.overflows) || [];
2209
+ if (f && F.push(j[w]), p) {
2210
+ const I = Ki(o, a, R);
2211
+ F.push(j[I[0]], j[I[1]]);
2544
2212
  }
2545
- );
2546
- }
2547
- );
2548
- Or.displayName = Sr;
2549
- function _r(e) {
2550
- return e ? "open" : "closed";
2551
- }
2552
- var ya = wr, wa = Er, ba = Pr, xa = Ar, Ca = Or;
2553
- const Ea = {
2554
- arrows: {
2555
- filePath: "arrows.svg",
2556
- items: {
2557
- arrowCircle: {
2558
- viewBox: "0 0 32 32",
2559
- width: 32,
2560
- height: 32
2561
- },
2562
- arrowLink: {
2563
- viewBox: "0 0 24 24",
2564
- width: 24,
2565
- height: 24
2566
- },
2567
- arrowRight: {
2568
- viewBox: "0 0 16 17",
2569
- width: 16,
2570
- height: 17
2571
- },
2572
- arrowScroll: {
2573
- viewBox: "0 0 14 16",
2574
- width: 14,
2575
- height: 16
2213
+ if (W = [...W, {
2214
+ placement: o,
2215
+ overflows: F
2216
+ }], !F.every((I) => I <= 0)) {
2217
+ var G, K;
2218
+ const I = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, X = S[I];
2219
+ if (X)
2220
+ return {
2221
+ data: {
2222
+ index: I,
2223
+ overflows: W
2224
+ },
2225
+ reset: {
2226
+ placement: X
2227
+ }
2228
+ };
2229
+ let $ = (K = W.filter((V) => V.overflows[0] <= 0).sort((V, N) => V.overflows[1] - N.overflows[1])[0]) == null ? void 0 : K.placement;
2230
+ if (!$)
2231
+ switch (m) {
2232
+ case "bestFit": {
2233
+ var D;
2234
+ const V = (D = W.filter((N) => {
2235
+ if (_) {
2236
+ const Y = be(N.placement);
2237
+ return Y === b || // Create a bias to the `y` side axis due to horizontal
2238
+ // reading directions favoring greater width.
2239
+ Y === "y";
2240
+ }
2241
+ return !0;
2242
+ }).map((N) => [N.placement, N.overflows.filter((Y) => Y > 0).reduce((Y, Q) => Y + Q, 0)]).sort((N, Y) => N[1] - Y[1])[0]) == null ? void 0 : D[0];
2243
+ V && ($ = V);
2244
+ break;
2245
+ }
2246
+ case "initialPlacement":
2247
+ $ = s;
2248
+ break;
2249
+ }
2250
+ if (o !== $)
2251
+ return {
2252
+ reset: {
2253
+ placement: $
2254
+ }
2255
+ };
2576
2256
  }
2257
+ return {};
2577
2258
  }
2578
- },
2579
- brandLogos: {
2580
- filePath: "brandLogos.svg",
2581
- items: {
2582
- logoBlack: {
2583
- viewBox: "0 0 194 32",
2584
- width: 194,
2585
- height: 32
2586
- },
2587
- logoBusiness: {
2588
- viewBox: "0 0 192 32",
2589
- width: 192,
2590
- height: 32
2591
- },
2592
- logoGray: {
2593
- viewBox: "0 0 194 32",
2594
- width: 194,
2595
- height: 32
2596
- },
2597
- logoInsurance: {
2598
- viewBox: "0 0 193 32",
2599
- width: 193,
2600
- height: 32
2601
- },
2602
- logoMain: {
2603
- viewBox: "0 0 192 32",
2604
- width: 192,
2605
- height: 32
2606
- },
2607
- logoWhite: {
2608
- viewBox: "0 0 194 32",
2609
- width: 194,
2610
- height: 32
2259
+ };
2260
+ };
2261
+ function Wn(e, t) {
2262
+ return {
2263
+ top: e.top - t.height,
2264
+ right: e.right - t.width,
2265
+ bottom: e.bottom - t.height,
2266
+ left: e.left - t.width
2267
+ };
2268
+ }
2269
+ function $n(e) {
2270
+ return Hi.some((t) => e[t] >= 0);
2271
+ }
2272
+ const ta = function(e) {
2273
+ return e === void 0 && (e = {}), {
2274
+ name: "hide",
2275
+ options: e,
2276
+ async fn(t) {
2277
+ const {
2278
+ rects: n
2279
+ } = t, {
2280
+ strategy: r = "referenceHidden",
2281
+ ...o
2282
+ } = pe(e, t);
2283
+ switch (r) {
2284
+ case "referenceHidden": {
2285
+ const i = await We(t, {
2286
+ ...o,
2287
+ elementContext: "reference"
2288
+ }), a = Wn(i, n.reference);
2289
+ return {
2290
+ data: {
2291
+ referenceHiddenOffsets: a,
2292
+ referenceHidden: $n(a)
2293
+ }
2294
+ };
2295
+ }
2296
+ case "escaped": {
2297
+ const i = await We(t, {
2298
+ ...o,
2299
+ altBoundary: !0
2300
+ }), a = Wn(i, n.floating);
2301
+ return {
2302
+ data: {
2303
+ escapedOffsets: a,
2304
+ escaped: $n(a)
2305
+ }
2306
+ };
2307
+ }
2308
+ default:
2309
+ return {};
2611
2310
  }
2612
2311
  }
2613
- },
2614
- editor: {
2615
- filePath: "editor.svg",
2616
- items: {
2617
- bold: {
2618
- viewBox: "0 0 24 24",
2619
- width: 24,
2620
- height: 24
2621
- },
2622
- heading: {
2623
- viewBox: "0 0 24 24",
2624
- width: 24,
2625
- height: 24
2626
- },
2627
- italic: {
2628
- viewBox: "0 0 24 24",
2629
- width: 24,
2630
- height: 24
2631
- },
2632
- link: {
2633
- viewBox: "0 0 24 24",
2634
- width: 24,
2635
- height: 24
2636
- },
2637
- list: {
2638
- viewBox: "0 0 24 24",
2639
- width: 24,
2640
- height: 24
2641
- },
2642
- palette: {
2643
- viewBox: "0 0 24 24",
2644
- width: 24,
2645
- height: 24
2646
- },
2647
- redo: {
2648
- viewBox: "0 0 24 24",
2649
- width: 24,
2650
- height: 24
2651
- },
2652
- removeFormatting: {
2653
- viewBox: "0 0 24 24",
2654
- width: 24,
2655
- height: 24
2656
- },
2657
- space: {
2658
- viewBox: "0 0 24 24",
2659
- width: 24,
2660
- height: 24
2661
- },
2662
- strikethrough: {
2663
- viewBox: "0 0 24 24",
2664
- width: 24,
2665
- height: 24
2666
- },
2667
- typography: {
2668
- viewBox: "0 0 24 24",
2669
- width: 24,
2670
- height: 24
2671
- },
2672
- underline: {
2673
- viewBox: "0 0 24 24",
2674
- width: 24,
2675
- height: 24
2676
- },
2677
- undo: {
2678
- viewBox: "0 0 24 24",
2679
- width: 24,
2680
- height: 24
2681
- }
2312
+ };
2313
+ };
2314
+ async function na(e, t) {
2315
+ const {
2316
+ placement: n,
2317
+ platform: r,
2318
+ elements: o
2319
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = he(n), s = He(n), u = be(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = i && u ? -1 : 1, p = pe(t, e);
2320
+ let {
2321
+ mainAxis: v,
2322
+ crossAxis: m,
2323
+ alignmentAxis: x
2324
+ } = typeof p == "number" ? {
2325
+ mainAxis: p,
2326
+ crossAxis: 0,
2327
+ alignmentAxis: null
2328
+ } : {
2329
+ mainAxis: p.mainAxis || 0,
2330
+ crossAxis: p.crossAxis || 0,
2331
+ alignmentAxis: p.alignmentAxis
2332
+ };
2333
+ return s && typeof x == "number" && (m = s === "end" ? x * -1 : x), u ? {
2334
+ x: m * f,
2335
+ y: v * l
2336
+ } : {
2337
+ x: v * l,
2338
+ y: m * f
2339
+ };
2340
+ }
2341
+ const ra = function(e) {
2342
+ return e === void 0 && (e = 0), {
2343
+ name: "offset",
2344
+ options: e,
2345
+ async fn(t) {
2346
+ var n, r;
2347
+ const {
2348
+ x: o,
2349
+ y: i,
2350
+ placement: a,
2351
+ middlewareData: s
2352
+ } = t, u = await na(t, e);
2353
+ return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
2354
+ x: o + u.x,
2355
+ y: i + u.y,
2356
+ data: {
2357
+ ...u,
2358
+ placement: a
2359
+ }
2360
+ };
2682
2361
  }
2683
- },
2684
- files: {
2685
- filePath: "files.svg",
2686
- items: {
2687
- border: {
2688
- viewBox: "0 0 476 64",
2689
- width: 476,
2690
- height: 64
2691
- },
2692
- borderError: {
2693
- viewBox: "0 0 476 64",
2694
- width: 476,
2695
- height: 64
2696
- },
2697
- documentFilled: {
2698
- viewBox: "0 0 22 28",
2699
- width: 22,
2700
- height: 28
2701
- },
2702
- documentOutline: {
2703
- viewBox: "0 0 22 28",
2704
- width: 22,
2705
- height: 28
2706
- },
2707
- upload: {
2708
- viewBox: "0 0 23 20",
2709
- width: 23,
2710
- height: 20
2362
+ };
2363
+ }, oa = function(e) {
2364
+ return e === void 0 && (e = {}), {
2365
+ name: "shift",
2366
+ options: e,
2367
+ async fn(t) {
2368
+ const {
2369
+ x: n,
2370
+ y: r,
2371
+ placement: o
2372
+ } = t, {
2373
+ mainAxis: i = !0,
2374
+ crossAxis: a = !1,
2375
+ limiter: s = {
2376
+ fn: (g) => {
2377
+ let {
2378
+ x: w,
2379
+ y: b
2380
+ } = g;
2381
+ return {
2382
+ x: w,
2383
+ y: b
2384
+ };
2385
+ }
2386
+ },
2387
+ ...u
2388
+ } = pe(e, t), l = {
2389
+ x: n,
2390
+ y: r
2391
+ }, f = await We(t, u), p = be(he(o)), v = un(p);
2392
+ let m = l[v], x = l[p];
2393
+ if (i) {
2394
+ const g = v === "y" ? "top" : "left", w = v === "y" ? "bottom" : "right", b = m + f[g], E = m - f[w];
2395
+ m = Jt(b, m, E);
2711
2396
  }
2712
- }
2713
- },
2714
- general: {
2715
- filePath: "general.svg",
2716
- items: {
2717
- calendar: {
2718
- viewBox: "0 0 19 20",
2719
- width: 19,
2720
- height: 20
2721
- },
2722
- check: {
2723
- viewBox: "0 0 24 24",
2724
- width: 800,
2725
- height: 800
2726
- },
2727
- close: {
2728
- viewBox: "0 0 24 24",
2729
- width: 24,
2730
- height: 24
2731
- },
2732
- edit: {
2733
- viewBox: "0 0 19 19",
2734
- width: 19,
2735
- height: 19
2736
- },
2737
- hiddenEye: {
2738
- viewBox: "0 0 20 18",
2739
- width: 20,
2740
- height: 18
2741
- },
2742
- plus: {
2743
- viewBox: "0 0 16 16",
2744
- width: 16,
2745
- height: 16
2746
- },
2747
- showEye: {
2748
- viewBox: "0 0 20 14",
2749
- width: 20,
2750
- height: 14
2397
+ if (a) {
2398
+ const g = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", b = x + f[g], E = x - f[w];
2399
+ x = Jt(b, x, E);
2751
2400
  }
2401
+ const h = s.fn({
2402
+ ...t,
2403
+ [v]: m,
2404
+ [p]: x
2405
+ });
2406
+ return {
2407
+ ...h,
2408
+ data: {
2409
+ x: h.x - n,
2410
+ y: h.y - r,
2411
+ enabled: {
2412
+ [v]: i,
2413
+ [p]: a
2414
+ }
2415
+ }
2416
+ };
2752
2417
  }
2753
- },
2754
- info: {
2755
- filePath: "info.svg",
2756
- items: {
2757
- helpCircle: {
2758
- viewBox: "0 0 12 12",
2759
- width: 12,
2760
- height: 12
2761
- },
2762
- warningCircle: {
2763
- viewBox: "0 0 20 20",
2764
- width: 20,
2765
- height: 20
2418
+ };
2419
+ }, ia = function(e) {
2420
+ return e === void 0 && (e = {}), {
2421
+ options: e,
2422
+ fn(t) {
2423
+ const {
2424
+ x: n,
2425
+ y: r,
2426
+ placement: o,
2427
+ rects: i,
2428
+ middlewareData: a
2429
+ } = t, {
2430
+ offset: s = 0,
2431
+ mainAxis: u = !0,
2432
+ crossAxis: l = !0
2433
+ } = pe(e, t), f = {
2434
+ x: n,
2435
+ y: r
2436
+ }, p = be(o), v = un(p);
2437
+ let m = f[v], x = f[p];
2438
+ const h = pe(s, t), g = typeof h == "number" ? {
2439
+ mainAxis: h,
2440
+ crossAxis: 0
2441
+ } : {
2442
+ mainAxis: 0,
2443
+ crossAxis: 0,
2444
+ ...h
2445
+ };
2446
+ if (u) {
2447
+ const E = v === "y" ? "height" : "width", R = i.reference[v] - i.floating[E] + g.mainAxis, A = i.reference[v] + i.reference[E] - g.mainAxis;
2448
+ m < R ? m = R : m > A && (m = A);
2766
2449
  }
2767
- }
2768
- },
2769
- logos: {
2770
- filePath: "logos.svg",
2771
- items: {
2772
- beeline: {
2773
- viewBox: "0 0 32 32",
2774
- width: 32,
2775
- height: 32
2776
- },
2777
- megafon: {
2778
- viewBox: "0 0 32 32",
2779
- width: 32,
2780
- height: 32
2781
- },
2782
- mts: {
2783
- viewBox: "0 0 32 32",
2784
- width: 32,
2785
- height: 32
2450
+ if (l) {
2451
+ var w, b;
2452
+ const E = v === "y" ? "width" : "height", R = ["top", "left"].includes(he(o)), A = i.reference[p] - i.floating[E] + (R && ((w = a.offset) == null ? void 0 : w[p]) || 0) + (R ? 0 : g.crossAxis), _ = i.reference[p] + i.reference[E] + (R ? 0 : ((b = a.offset) == null ? void 0 : b[p]) || 0) - (R ? g.crossAxis : 0);
2453
+ x < A ? x = A : x > _ && (x = _);
2786
2454
  }
2455
+ return {
2456
+ [v]: m,
2457
+ [p]: x
2458
+ };
2787
2459
  }
2788
- },
2789
- social: {
2790
- filePath: "social.svg",
2791
- items: {
2792
- classmates: {
2793
- viewBox: "0 0 9 15",
2794
- width: 9,
2795
- height: 15
2796
- },
2797
- telegram: {
2798
- viewBox: "0 0 15 13",
2799
- width: 15,
2800
- height: 13
2801
- },
2802
- vk: {
2803
- viewBox: "0 0 16 9",
2804
- width: 16,
2805
- height: 9
2460
+ };
2461
+ }, aa = function(e) {
2462
+ return e === void 0 && (e = {}), {
2463
+ name: "size",
2464
+ options: e,
2465
+ async fn(t) {
2466
+ var n, r;
2467
+ const {
2468
+ placement: o,
2469
+ rects: i,
2470
+ platform: a,
2471
+ elements: s
2472
+ } = t, {
2473
+ apply: u = () => {
2474
+ },
2475
+ ...l
2476
+ } = pe(e, t), f = await We(t, l), p = he(o), v = He(o), m = be(o) === "y", {
2477
+ width: x,
2478
+ height: h
2479
+ } = i.floating;
2480
+ let g, w;
2481
+ p === "top" || p === "bottom" ? (g = p, w = v === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = p, g = v === "end" ? "top" : "bottom");
2482
+ const b = h - f.top - f.bottom, E = x - f.left - f.right, R = we(h - f[g], b), A = we(x - f[w], E), _ = !t.middlewareData.shift;
2483
+ let S = R, j = A;
2484
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = b), _ && !v) {
2485
+ const W = ee(f.left, 0), G = ee(f.right, 0), K = ee(f.top, 0), D = ee(f.bottom, 0);
2486
+ m ? j = x - 2 * (W !== 0 || G !== 0 ? W + G : ee(f.left, f.right)) : S = h - 2 * (K !== 0 || D !== 0 ? K + D : ee(f.top, f.bottom));
2806
2487
  }
2488
+ await u({
2489
+ ...t,
2490
+ availableWidth: j,
2491
+ availableHeight: S
2492
+ });
2493
+ const F = await a.getDimensions(s.floating);
2494
+ return x !== F.width || h !== F.height ? {
2495
+ reset: {
2496
+ rects: !0
2497
+ }
2498
+ } : {};
2499
+ }
2500
+ };
2501
+ };
2502
+ function At() {
2503
+ return typeof window < "u";
2504
+ }
2505
+ function Ue(e) {
2506
+ return Sr(e) ? (e.nodeName || "").toLowerCase() : "#document";
2507
+ }
2508
+ function te(e) {
2509
+ var t;
2510
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2511
+ }
2512
+ function ue(e) {
2513
+ var t;
2514
+ return (t = (Sr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2515
+ }
2516
+ function Sr(e) {
2517
+ return At() ? e instanceof Node || e instanceof te(e).Node : !1;
2518
+ }
2519
+ function oe(e) {
2520
+ return At() ? e instanceof Element || e instanceof te(e).Element : !1;
2521
+ }
2522
+ function le(e) {
2523
+ return At() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
2524
+ }
2525
+ function Vn(e) {
2526
+ return !At() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
2527
+ }
2528
+ function et(e) {
2529
+ const {
2530
+ overflow: t,
2531
+ overflowX: n,
2532
+ overflowY: r,
2533
+ display: o
2534
+ } = ie(e);
2535
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
2536
+ }
2537
+ function sa(e) {
2538
+ return ["table", "td", "th"].includes(Ue(e));
2539
+ }
2540
+ function St(e) {
2541
+ return [":popover-open", ":modal"].some((t) => {
2542
+ try {
2543
+ return e.matches(t);
2544
+ } catch {
2545
+ return !1;
2807
2546
  }
2547
+ });
2548
+ }
2549
+ function pn(e) {
2550
+ const t = hn(), n = oe(e) ? ie(e) : e;
2551
+ return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
2552
+ }
2553
+ function ca(e) {
2554
+ let t = xe(e);
2555
+ for (; le(t) && !$e(t); ) {
2556
+ if (pn(t))
2557
+ return t;
2558
+ if (St(t))
2559
+ return null;
2560
+ t = xe(t);
2808
2561
  }
2809
- }, Ra = (e) => {
2810
- const [t, n] = e.split("/"), {
2811
- filePath: r,
2812
- items: {
2813
- [n]: { viewBox: o, width: i, height: a }
2814
- }
2815
- } = Ea[t], s = i === a ? "xy" : i > a ? "x" : "y";
2816
- return { filePath: r, iconName: n, viewBox: o, axis: s };
2817
- }, de = ({ name: e, className: t, ...n }) => {
2818
- const { viewBox: r, filePath: o, iconName: i, axis: a } = Ra(e);
2819
- return /* @__PURE__ */ y.jsx(
2820
- "svg",
2821
- {
2822
- className: L("text-inherit inline-block size-6 select-none fill-current", t),
2823
- focusable: "false",
2824
- viewBox: r,
2825
- "aria-hidden": !0,
2826
- "data-axis": a,
2827
- ...n,
2828
- children: /* @__PURE__ */ y.jsx("use", { href: `/sprites/${o}#${i}` })
2829
- }
2562
+ return null;
2563
+ }
2564
+ function hn() {
2565
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2566
+ }
2567
+ function $e(e) {
2568
+ return ["html", "body", "#document"].includes(Ue(e));
2569
+ }
2570
+ function ie(e) {
2571
+ return te(e).getComputedStyle(e);
2572
+ }
2573
+ function Ot(e) {
2574
+ return oe(e) ? {
2575
+ scrollLeft: e.scrollLeft,
2576
+ scrollTop: e.scrollTop
2577
+ } : {
2578
+ scrollLeft: e.scrollX,
2579
+ scrollTop: e.scrollY
2580
+ };
2581
+ }
2582
+ function xe(e) {
2583
+ if (Ue(e) === "html")
2584
+ return e;
2585
+ const t = (
2586
+ // Step into the shadow DOM of the parent of a slotted node.
2587
+ e.assignedSlot || // DOM Element detected.
2588
+ e.parentNode || // ShadowRoot detected.
2589
+ Vn(e) && e.host || // Fallback.
2590
+ ue(e)
2830
2591
  );
2831
- }, Tr = d.forwardRef(
2832
- ({ children: e, classes: t, icon: n, ...r }, o) => /* @__PURE__ */ y.jsx(ba, { className: L("rounded-sm bg-color-primary-light-default", t == null ? void 0 : t.header), children: /* @__PURE__ */ y.jsxs(
2833
- xa,
2834
- {
2835
- ref: o,
2836
- className: L(
2837
- "group flex w-full cursor-pointer items-center justify-between gap-5 rounded-sm border border-solid border-transparent bg-color-transparent px-4 py-3 outline-0 focus-visible:border-primary-default desktop:px-6 desktop:py-4",
2838
- t == null ? void 0 : t.trigger
2839
- ),
2840
- ...r,
2841
- children: [
2842
- /* @__PURE__ */ y.jsx("div", { className: L("desk-body-medium-l flex-1 text-left text-color-dark", t == null ? void 0 : t.label), children: e }),
2843
- n || /* @__PURE__ */ y.jsx(
2844
- de,
2845
- {
2846
- name: "arrows/arrowCircle",
2847
- className: L(
2848
- "size-8 rotate-180 text-icon-blue-grey-800 transition-all group-data-[state=open]:rotate-0",
2849
- t == null ? void 0 : t.icon
2850
- )
2851
- }
2852
- )
2853
- ]
2592
+ return Vn(t) ? t.host : t;
2593
+ }
2594
+ function Or(e) {
2595
+ const t = xe(e);
2596
+ return $e(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && et(t) ? t : Or(t);
2597
+ }
2598
+ function Ze(e, t, n) {
2599
+ var r;
2600
+ t === void 0 && (t = []), n === void 0 && (n = !0);
2601
+ const o = Or(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = te(o);
2602
+ if (i) {
2603
+ const s = Qt(a);
2604
+ return t.concat(a, a.visualViewport || [], et(o) ? o : [], s && n ? Ze(s) : []);
2605
+ }
2606
+ return t.concat(o, Ze(o, [], n));
2607
+ }
2608
+ function Qt(e) {
2609
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2610
+ }
2611
+ function _r(e) {
2612
+ const t = ie(e);
2613
+ let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
2614
+ const o = le(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = yt(n) !== i || yt(r) !== a;
2615
+ return s && (n = i, r = a), {
2616
+ width: n,
2617
+ height: r,
2618
+ $: s
2619
+ };
2620
+ }
2621
+ function vn(e) {
2622
+ return oe(e) ? e : e.contextElement;
2623
+ }
2624
+ function Fe(e) {
2625
+ const t = vn(e);
2626
+ if (!le(t))
2627
+ return ce(1);
2628
+ const n = t.getBoundingClientRect(), {
2629
+ width: r,
2630
+ height: o,
2631
+ $: i
2632
+ } = _r(t);
2633
+ let a = (i ? yt(n.width) : n.width) / r, s = (i ? yt(n.height) : n.height) / o;
2634
+ return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2635
+ x: a,
2636
+ y: s
2637
+ };
2638
+ }
2639
+ const la = /* @__PURE__ */ ce(0);
2640
+ function Tr(e) {
2641
+ const t = te(e);
2642
+ return !hn() || !t.visualViewport ? la : {
2643
+ x: t.visualViewport.offsetLeft,
2644
+ y: t.visualViewport.offsetTop
2645
+ };
2646
+ }
2647
+ function ua(e, t, n) {
2648
+ return t === void 0 && (t = !1), !n || t && n !== te(e) ? !1 : t;
2649
+ }
2650
+ function _e(e, t, n, r) {
2651
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
2652
+ const o = e.getBoundingClientRect(), i = vn(e);
2653
+ let a = ce(1);
2654
+ t && (r ? oe(r) && (a = Fe(r)) : a = Fe(e));
2655
+ const s = ua(i, n, r) ? Tr(i) : ce(0);
2656
+ let u = (o.left + s.x) / a.x, l = (o.top + s.y) / a.y, f = o.width / a.x, p = o.height / a.y;
2657
+ if (i) {
2658
+ const v = te(i), m = r && oe(r) ? te(r) : r;
2659
+ let x = v, h = Qt(x);
2660
+ for (; h && r && m !== x; ) {
2661
+ const g = Fe(h), w = h.getBoundingClientRect(), b = ie(h), E = w.left + (h.clientLeft + parseFloat(b.paddingLeft)) * g.x, R = w.top + (h.clientTop + parseFloat(b.paddingTop)) * g.y;
2662
+ u *= g.x, l *= g.y, f *= g.x, p *= g.y, u += E, l += R, x = te(h), h = Qt(x);
2663
+ }
2664
+ }
2665
+ return bt({
2666
+ width: f,
2667
+ height: p,
2668
+ x: u,
2669
+ y: l
2670
+ });
2671
+ }
2672
+ function mn(e, t) {
2673
+ const n = Ot(e).scrollLeft;
2674
+ return t ? t.left + n : _e(ue(e)).left + n;
2675
+ }
2676
+ function Nr(e, t, n) {
2677
+ n === void 0 && (n = !1);
2678
+ const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
2679
+ // RTL <body> scrollbar.
2680
+ mn(e, r)
2681
+ )), i = r.top + t.scrollTop;
2682
+ return {
2683
+ x: o,
2684
+ y: i
2685
+ };
2686
+ }
2687
+ function fa(e) {
2688
+ let {
2689
+ elements: t,
2690
+ rect: n,
2691
+ offsetParent: r,
2692
+ strategy: o
2693
+ } = e;
2694
+ const i = o === "fixed", a = ue(r), s = t ? St(t.floating) : !1;
2695
+ if (r === a || s && i)
2696
+ return n;
2697
+ let u = {
2698
+ scrollLeft: 0,
2699
+ scrollTop: 0
2700
+ }, l = ce(1);
2701
+ const f = ce(0), p = le(r);
2702
+ if ((p || !p && !i) && ((Ue(r) !== "body" || et(a)) && (u = Ot(r)), le(r))) {
2703
+ const m = _e(r);
2704
+ l = Fe(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
2705
+ }
2706
+ const v = a && !p && !i ? Nr(a, u, !0) : ce(0);
2707
+ return {
2708
+ width: n.width * l.x,
2709
+ height: n.height * l.y,
2710
+ x: n.x * l.x - u.scrollLeft * l.x + f.x + v.x,
2711
+ y: n.y * l.y - u.scrollTop * l.y + f.y + v.y
2712
+ };
2713
+ }
2714
+ function da(e) {
2715
+ return Array.from(e.getClientRects());
2716
+ }
2717
+ function pa(e) {
2718
+ const t = ue(e), n = Ot(e), r = e.ownerDocument.body, o = ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2719
+ let a = -n.scrollLeft + mn(e);
2720
+ const s = -n.scrollTop;
2721
+ return ie(r).direction === "rtl" && (a += ee(t.clientWidth, r.clientWidth) - o), {
2722
+ width: o,
2723
+ height: i,
2724
+ x: a,
2725
+ y: s
2726
+ };
2727
+ }
2728
+ function ha(e, t) {
2729
+ const n = te(e), r = ue(e), o = n.visualViewport;
2730
+ let i = r.clientWidth, a = r.clientHeight, s = 0, u = 0;
2731
+ if (o) {
2732
+ i = o.width, a = o.height;
2733
+ const l = hn();
2734
+ (!l || l && t === "fixed") && (s = o.offsetLeft, u = o.offsetTop);
2735
+ }
2736
+ return {
2737
+ width: i,
2738
+ height: a,
2739
+ x: s,
2740
+ y: u
2741
+ };
2742
+ }
2743
+ function va(e, t) {
2744
+ const n = _e(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = le(e) ? Fe(e) : ce(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
2745
+ return {
2746
+ width: a,
2747
+ height: s,
2748
+ x: u,
2749
+ y: l
2750
+ };
2751
+ }
2752
+ function zn(e, t, n) {
2753
+ let r;
2754
+ if (t === "viewport")
2755
+ r = ha(e, n);
2756
+ else if (t === "document")
2757
+ r = pa(ue(e));
2758
+ else if (oe(t))
2759
+ r = va(t, n);
2760
+ else {
2761
+ const o = Tr(e);
2762
+ r = {
2763
+ x: t.x - o.x,
2764
+ y: t.y - o.y,
2765
+ width: t.width,
2766
+ height: t.height
2767
+ };
2768
+ }
2769
+ return bt(r);
2770
+ }
2771
+ function kr(e, t) {
2772
+ const n = xe(e);
2773
+ return n === t || !oe(n) || $e(n) ? !1 : ie(n).position === "fixed" || kr(n, t);
2774
+ }
2775
+ function ma(e, t) {
2776
+ const n = t.get(e);
2777
+ if (n)
2778
+ return n;
2779
+ let r = Ze(e, [], !1).filter((s) => oe(s) && Ue(s) !== "body"), o = null;
2780
+ const i = ie(e).position === "fixed";
2781
+ let a = i ? xe(e) : e;
2782
+ for (; oe(a) && !$e(a); ) {
2783
+ const s = ie(a), u = pn(a);
2784
+ !u && s.position === "fixed" && (o = null), (i ? !u && !o : !u && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || et(a) && !u && kr(e, a)) ? r = r.filter((f) => f !== a) : o = s, a = xe(a);
2785
+ }
2786
+ return t.set(e, r), r;
2787
+ }
2788
+ function ga(e) {
2789
+ let {
2790
+ element: t,
2791
+ boundary: n,
2792
+ rootBoundary: r,
2793
+ strategy: o
2794
+ } = e;
2795
+ const a = [...n === "clippingAncestors" ? St(t) ? [] : ma(t, this._c) : [].concat(n), r], s = a[0], u = a.reduce((l, f) => {
2796
+ const p = zn(t, f, o);
2797
+ return l.top = ee(p.top, l.top), l.right = we(p.right, l.right), l.bottom = we(p.bottom, l.bottom), l.left = ee(p.left, l.left), l;
2798
+ }, zn(t, s, o));
2799
+ return {
2800
+ width: u.right - u.left,
2801
+ height: u.bottom - u.top,
2802
+ x: u.left,
2803
+ y: u.top
2804
+ };
2805
+ }
2806
+ function ya(e) {
2807
+ const {
2808
+ width: t,
2809
+ height: n
2810
+ } = _r(e);
2811
+ return {
2812
+ width: t,
2813
+ height: n
2814
+ };
2815
+ }
2816
+ function wa(e, t, n) {
2817
+ const r = le(t), o = ue(t), i = n === "fixed", a = _e(e, !0, i, t);
2818
+ let s = {
2819
+ scrollLeft: 0,
2820
+ scrollTop: 0
2821
+ };
2822
+ const u = ce(0);
2823
+ if (r || !r && !i)
2824
+ if ((Ue(t) !== "body" || et(o)) && (s = Ot(t)), r) {
2825
+ const v = _e(t, !0, i, t);
2826
+ u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
2827
+ } else o && (u.x = mn(o));
2828
+ const l = o && !r && !i ? Nr(o, s) : ce(0), f = a.left + s.scrollLeft - u.x - l.x, p = a.top + s.scrollTop - u.y - l.y;
2829
+ return {
2830
+ x: f,
2831
+ y: p,
2832
+ width: a.width,
2833
+ height: a.height
2834
+ };
2835
+ }
2836
+ function Ft(e) {
2837
+ return ie(e).position === "static";
2838
+ }
2839
+ function Hn(e, t) {
2840
+ if (!le(e) || ie(e).position === "fixed")
2841
+ return null;
2842
+ if (t)
2843
+ return t(e);
2844
+ let n = e.offsetParent;
2845
+ return ue(e) === n && (n = n.ownerDocument.body), n;
2846
+ }
2847
+ function jr(e, t) {
2848
+ const n = te(e);
2849
+ if (St(e))
2850
+ return n;
2851
+ if (!le(e)) {
2852
+ let o = xe(e);
2853
+ for (; o && !$e(o); ) {
2854
+ if (oe(o) && !Ft(o))
2855
+ return o;
2856
+ o = xe(o);
2854
2857
  }
2855
- ) })
2856
- );
2857
- Tr.displayName = "AccordionHeader";
2858
- const bc = rr(
2859
- ({ children: e, label: t, classes: n, defaultOpen: r = !1, icon: o }, i) => /* @__PURE__ */ y.jsx(
2860
- ya,
2861
- {
2862
- className: L("flex flex-col gap-5", n == null ? void 0 : n.root),
2863
- type: "multiple",
2864
- defaultValue: r ? [t.toString()] : void 0,
2865
- children: /* @__PURE__ */ y.jsxs(wa, { className: L("w-full disabled:text-color-dark", n == null ? void 0 : n.wrapper), value: t.toString(), children: [
2866
- /* @__PURE__ */ y.jsx(Tr, { icon: o, classes: n, children: t }),
2867
- /* @__PURE__ */ y.jsx(
2868
- Ca,
2869
- {
2870
- id: "text",
2871
- ref: i,
2872
- className: L(
2873
- "desk-body-regular-l max-w-[680px] overflow-hidden bg-color-transparent text-color-dark transition-all data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown",
2874
- n == null ? void 0 : n.content
2875
- ),
2876
- children: /* @__PURE__ */ y.jsx("div", { className: L("p-4 desktop:p-6", n == null ? void 0 : n.contentInner), children: e })
2877
- }
2878
- )
2879
- ] })
2858
+ return n;
2859
+ }
2860
+ let r = Hn(e, t);
2861
+ for (; r && sa(r) && Ft(r); )
2862
+ r = Hn(r, t);
2863
+ return r && $e(r) && Ft(r) && !pn(r) ? n : r || ca(e) || n;
2864
+ }
2865
+ const ba = async function(e) {
2866
+ const t = this.getOffsetParent || jr, n = this.getDimensions, r = await n(e.floating);
2867
+ return {
2868
+ reference: wa(e.reference, await t(e.floating), e.strategy),
2869
+ floating: {
2870
+ x: 0,
2871
+ y: 0,
2872
+ width: r.width,
2873
+ height: r.height
2880
2874
  }
2881
- )
2882
- );
2883
- function Pa(e, t = globalThis == null ? void 0 : globalThis.document) {
2884
- const n = be(e);
2885
- d.useEffect(() => {
2886
- const r = (o) => {
2887
- o.key === "Escape" && n(o);
2888
- };
2889
- return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
2890
- }, [n, t]);
2875
+ };
2876
+ };
2877
+ function xa(e) {
2878
+ return ie(e).direction === "rtl";
2891
2879
  }
2892
- var Aa = "DismissableLayer", Qt = "dismissableLayer.update", Sa = "dismissableLayer.pointerDownOutside", Oa = "dismissableLayer.focusOutside", Hn, Nr = d.createContext({
2893
- layers: /* @__PURE__ */ new Set(),
2894
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2895
- branches: /* @__PURE__ */ new Set()
2896
- }), kr = d.forwardRef(
2897
- (e, t) => {
2880
+ const Ca = {
2881
+ convertOffsetParentRelativeRectToViewportRelativeRect: fa,
2882
+ getDocumentElement: ue,
2883
+ getClippingRect: ga,
2884
+ getOffsetParent: jr,
2885
+ getElementRects: ba,
2886
+ getClientRects: da,
2887
+ getDimensions: ya,
2888
+ getScale: Fe,
2889
+ isElement: oe,
2890
+ isRTL: xa
2891
+ };
2892
+ function Ea(e, t) {
2893
+ let n = null, r;
2894
+ const o = ue(e);
2895
+ function i() {
2896
+ var s;
2897
+ clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
2898
+ }
2899
+ function a(s, u) {
2900
+ s === void 0 && (s = !1), u === void 0 && (u = 1), i();
2898
2901
  const {
2899
- disableOutsidePointerEvents: n = !1,
2900
- onEscapeKeyDown: r,
2901
- onPointerDownOutside: o,
2902
- onFocusOutside: i,
2903
- onInteractOutside: a,
2904
- onDismiss: s,
2905
- ...u
2906
- } = e, l = d.useContext(Nr), [f, p] = d.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = d.useState({}), x = re(t, (S) => p(S)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(g), b = f ? h.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, R = b >= w, A = Na((S) => {
2907
- const j = S.target, F = [...l.branches].some((W) => W.contains(j));
2908
- !R || F || (o == null || o(S), a == null || a(S), S.defaultPrevented || s == null || s());
2909
- }, v), _ = ka((S) => {
2910
- const j = S.target;
2911
- [...l.branches].some((W) => W.contains(j)) || (i == null || i(S), a == null || a(S), S.defaultPrevented || s == null || s());
2912
- }, v);
2913
- return Pa((S) => {
2914
- b === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
2915
- }, v), d.useEffect(() => {
2916
- if (f)
2917
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Hn = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Un(), () => {
2918
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = Hn);
2919
- };
2920
- }, [f, v, n, l]), d.useEffect(() => () => {
2921
- f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Un());
2922
- }, [f, l]), d.useEffect(() => {
2923
- const S = () => m({});
2924
- return document.addEventListener(Qt, S), () => document.removeEventListener(Qt, S);
2925
- }, []), /* @__PURE__ */ y.jsx(
2926
- Z.div,
2927
- {
2928
- ...u,
2929
- ref: x,
2930
- style: {
2931
- pointerEvents: E ? R ? "auto" : "none" : void 0,
2932
- ...e.style
2933
- },
2934
- onFocusCapture: ce(e.onFocusCapture, _.onFocusCapture),
2935
- onBlurCapture: ce(e.onBlurCapture, _.onBlurCapture),
2936
- onPointerDownCapture: ce(
2937
- e.onPointerDownCapture,
2938
- A.onPointerDownCapture
2939
- )
2902
+ left: l,
2903
+ top: f,
2904
+ width: p,
2905
+ height: v
2906
+ } = e.getBoundingClientRect();
2907
+ if (s || t(), !p || !v)
2908
+ return;
2909
+ const m = lt(f), x = lt(o.clientWidth - (l + p)), h = lt(o.clientHeight - (f + v)), g = lt(l), b = {
2910
+ rootMargin: -m + "px " + -x + "px " + -h + "px " + -g + "px",
2911
+ threshold: ee(0, we(1, u)) || 1
2912
+ };
2913
+ let E = !0;
2914
+ function R(A) {
2915
+ const _ = A[0].intersectionRatio;
2916
+ if (_ !== u) {
2917
+ if (!E)
2918
+ return a();
2919
+ _ ? a(!1, _) : r = setTimeout(() => {
2920
+ a(!1, 1e-7);
2921
+ }, 1e3);
2940
2922
  }
2941
- );
2923
+ E = !1;
2924
+ }
2925
+ try {
2926
+ n = new IntersectionObserver(R, {
2927
+ ...b,
2928
+ // Handle <iframe>s
2929
+ root: o.ownerDocument
2930
+ });
2931
+ } catch {
2932
+ n = new IntersectionObserver(R, b);
2933
+ }
2934
+ n.observe(e);
2942
2935
  }
2943
- );
2944
- kr.displayName = Aa;
2945
- var _a = "DismissableLayerBranch", Ta = d.forwardRef((e, t) => {
2946
- const n = d.useContext(Nr), r = d.useRef(null), o = re(t, r);
2947
- return d.useEffect(() => {
2948
- const i = r.current;
2949
- if (i)
2950
- return n.branches.add(i), () => {
2951
- n.branches.delete(i);
2952
- };
2953
- }, [n.branches]), /* @__PURE__ */ y.jsx(Z.div, { ...e, ref: o });
2954
- });
2955
- Ta.displayName = _a;
2956
- function Na(e, t = globalThis == null ? void 0 : globalThis.document) {
2957
- const n = be(e), r = d.useRef(!1), o = d.useRef(() => {
2936
+ return a(!0), i;
2937
+ }
2938
+ function Ra(e, t, n, r) {
2939
+ r === void 0 && (r = {});
2940
+ const {
2941
+ ancestorScroll: o = !0,
2942
+ ancestorResize: i = !0,
2943
+ elementResize: a = typeof ResizeObserver == "function",
2944
+ layoutShift: s = typeof IntersectionObserver == "function",
2945
+ animationFrame: u = !1
2946
+ } = r, l = vn(e), f = o || i ? [...l ? Ze(l) : [], ...Ze(t)] : [];
2947
+ f.forEach((w) => {
2948
+ o && w.addEventListener("scroll", n, {
2949
+ passive: !0
2950
+ }), i && w.addEventListener("resize", n);
2958
2951
  });
2959
- return d.useEffect(() => {
2960
- const i = (s) => {
2961
- if (s.target && !r.current) {
2962
- let u = function() {
2963
- jr(
2964
- Sa,
2965
- n,
2966
- l,
2967
- { discrete: !0 }
2968
- );
2969
- };
2970
- const l = { originalEvent: s };
2971
- s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
2972
- } else
2973
- t.removeEventListener("click", o.current);
2974
- r.current = !1;
2975
- }, a = window.setTimeout(() => {
2976
- t.addEventListener("pointerdown", i);
2977
- }, 0);
2978
- return () => {
2979
- window.clearTimeout(a), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
2980
- };
2981
- }, [t, n]), {
2982
- // ensures we check React component tree (not just DOM tree)
2983
- onPointerDownCapture: () => r.current = !0
2952
+ const p = l && s ? Ea(l, n) : null;
2953
+ let v = -1, m = null;
2954
+ a && (m = new ResizeObserver((w) => {
2955
+ let [b] = w;
2956
+ b && b.target === l && m && (m.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
2957
+ var E;
2958
+ (E = m) == null || E.observe(t);
2959
+ })), n();
2960
+ }), l && !u && m.observe(l), m.observe(t));
2961
+ let x, h = u ? _e(e) : null;
2962
+ u && g();
2963
+ function g() {
2964
+ const w = _e(e);
2965
+ h && (w.x !== h.x || w.y !== h.y || w.width !== h.width || w.height !== h.height) && n(), h = w, x = requestAnimationFrame(g);
2966
+ }
2967
+ return n(), () => {
2968
+ var w;
2969
+ f.forEach((b) => {
2970
+ o && b.removeEventListener("scroll", n), i && b.removeEventListener("resize", n);
2971
+ }), p == null || p(), (w = m) == null || w.disconnect(), m = null, u && cancelAnimationFrame(x);
2984
2972
  };
2985
2973
  }
2986
- function ka(e, t = globalThis == null ? void 0 : globalThis.document) {
2987
- const n = be(e), r = d.useRef(!1);
2988
- return d.useEffect(() => {
2989
- const o = (i) => {
2990
- i.target && !r.current && jr(Oa, n, { originalEvent: i }, {
2991
- discrete: !1
2992
- });
2993
- };
2994
- return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
2995
- }, [t, n]), {
2996
- onFocusCapture: () => r.current = !0,
2997
- onBlurCapture: () => r.current = !1
2974
+ const bc = We, Pa = ra, Aa = oa, Sa = ea, Oa = aa, _a = ta, Un = Qi, Ta = ia, Na = (e, t, n) => {
2975
+ const r = /* @__PURE__ */ new Map(), o = {
2976
+ platform: Ca,
2977
+ ...n
2978
+ }, i = {
2979
+ ...o.platform,
2980
+ _c: r
2998
2981
  };
2999
- }
3000
- function Un() {
3001
- const e = new CustomEvent(Qt);
3002
- document.dispatchEvent(e);
3003
- }
3004
- function jr(e, t, n, { discrete: r }) {
3005
- const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
3006
- t && o.addEventListener(e, t, { once: !0 }), r ? Ji(o, i) : o.dispatchEvent(i);
3007
- }
2982
+ return Zi(e, t, {
2983
+ ...o,
2984
+ platform: i
2985
+ });
2986
+ };
3008
2987
  var ht = typeof document < "u" ? $o : Vo;
3009
2988
  function xt(e, t) {
3010
2989
  if (e === t)
@@ -3049,7 +3028,7 @@ function Bt(e) {
3049
3028
  t.current = e;
3050
3029
  }), t;
3051
3030
  }
3052
- function ja(e) {
3031
+ function ka(e) {
3053
3032
  e === void 0 && (e = {});
3054
3033
  const {
3055
3034
  placement: t = "bottom",
@@ -3084,7 +3063,7 @@ function ja(e) {
3084
3063
  strategy: n,
3085
3064
  middleware: v
3086
3065
  };
3087
- G.current && (N.platform = G.current), Bi(_.current, S.current, N).then((Y) => {
3066
+ G.current && (N.platform = G.current), Na(_.current, S.current, N).then((Y) => {
3088
3067
  const Q = {
3089
3068
  ...Y,
3090
3069
  // The floating element's position may be recomputed while it's closed
@@ -3151,7 +3130,7 @@ function ja(e) {
3151
3130
  floatingStyles: V
3152
3131
  }), [f, D, X, $, V]);
3153
3132
  }
3154
- const Da = (e) => {
3133
+ const ja = (e) => {
3155
3134
  function t(n) {
3156
3135
  return {}.hasOwnProperty.call(n, "current");
3157
3136
  }
@@ -3163,38 +3142,38 @@ const Da = (e) => {
3163
3142
  element: r,
3164
3143
  padding: o
3165
3144
  } = typeof e == "function" ? e(n) : e;
3166
- return r && t(r) ? r.current != null ? Vn({
3145
+ return r && t(r) ? r.current != null ? Un({
3167
3146
  element: r.current,
3168
3147
  padding: o
3169
- }).fn(n) : {} : r ? Vn({
3148
+ }).fn(n) : {} : r ? Un({
3170
3149
  element: r,
3171
3150
  padding: o
3172
3151
  }).fn(n) : {};
3173
3152
  }
3174
3153
  };
3175
- }, Ma = (e, t) => ({
3176
- ...ji(e),
3154
+ }, Da = (e, t) => ({
3155
+ ...Pa(e),
3156
+ options: [e, t]
3157
+ }), Ma = (e, t) => ({
3158
+ ...Aa(e),
3177
3159
  options: [e, t]
3178
3160
  }), Ia = (e, t) => ({
3179
- ...Di(e),
3161
+ ...Ta(e),
3180
3162
  options: [e, t]
3181
3163
  }), La = (e, t) => ({
3182
- ...Fi(e),
3164
+ ...Sa(e),
3183
3165
  options: [e, t]
3184
3166
  }), Fa = (e, t) => ({
3185
- ...Mi(e),
3167
+ ...Oa(e),
3186
3168
  options: [e, t]
3187
3169
  }), Ba = (e, t) => ({
3188
- ...Ii(e),
3170
+ ..._a(e),
3189
3171
  options: [e, t]
3190
3172
  }), Wa = (e, t) => ({
3191
- ...Li(e),
3192
- options: [e, t]
3193
- }), $a = (e, t) => ({
3194
- ...Da(e),
3173
+ ...ja(e),
3195
3174
  options: [e, t]
3196
3175
  });
3197
- var Va = "Arrow", Mr = d.forwardRef((e, t) => {
3176
+ var $a = "Arrow", Mr = d.forwardRef((e, t) => {
3198
3177
  const { children: n, width: r = 10, height: o = 5, ...i } = e;
3199
3178
  return /* @__PURE__ */ y.jsx(
3200
3179
  Z.svg,
@@ -3209,8 +3188,31 @@ var Va = "Arrow", Mr = d.forwardRef((e, t) => {
3209
3188
  }
3210
3189
  );
3211
3190
  });
3212
- Mr.displayName = Va;
3213
- var za = Mr, gn = "Popper", [Ir, Lr] = et(gn), [Ha, Fr] = Ir(gn), Br = (e) => {
3191
+ Mr.displayName = $a;
3192
+ var Va = Mr;
3193
+ function za(e) {
3194
+ const [t, n] = d.useState(void 0);
3195
+ return ye(() => {
3196
+ if (e) {
3197
+ n({ width: e.offsetWidth, height: e.offsetHeight });
3198
+ const r = new ResizeObserver((o) => {
3199
+ if (!Array.isArray(o) || !o.length)
3200
+ return;
3201
+ const i = o[0];
3202
+ let a, s;
3203
+ if ("borderBoxSize" in i) {
3204
+ const u = i.borderBoxSize, l = Array.isArray(u) ? u[0] : u;
3205
+ a = l.inlineSize, s = l.blockSize;
3206
+ } else
3207
+ a = e.offsetWidth, s = e.offsetHeight;
3208
+ n({ width: a, height: s });
3209
+ });
3210
+ return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
3211
+ } else
3212
+ n(void 0);
3213
+ }, [e]), t;
3214
+ }
3215
+ var gn = "Popper", [Ir, Lr] = Qe(gn), [Ha, Fr] = Ir(gn), Br = (e) => {
3214
3216
  const { __scopePopper: t, children: n } = e, [r, o] = d.useState(null);
3215
3217
  return /* @__PURE__ */ y.jsx(Ha, { scope: t, anchor: r, onAnchorChange: o, children: n });
3216
3218
  };
@@ -3242,47 +3244,47 @@ var yn = "PopperContent", [Ua, Ya] = Ir(yn), Vr = d.forwardRef(
3242
3244
  updatePositionStrategy: m = "optimized",
3243
3245
  onPlaced: x,
3244
3246
  ...h
3245
- } = e, g = Fr(yn, n), [w, b] = d.useState(null), E = re(t, (Ae) => b(Ae)), [R, A] = d.useState(null), _ = Vi(R), S = (_ == null ? void 0 : _.width) ?? 0, j = (_ == null ? void 0 : _.height) ?? 0, F = r + (i !== "center" ? "-" + i : ""), W = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, G = Array.isArray(l) ? l : [l], K = G.length > 0, D = {
3247
+ } = e, g = Fr(yn, n), [w, b] = d.useState(null), E = re(t, (Ae) => b(Ae)), [R, A] = d.useState(null), _ = za(R), S = (_ == null ? void 0 : _.width) ?? 0, j = (_ == null ? void 0 : _.height) ?? 0, F = r + (i !== "center" ? "-" + i : ""), W = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, G = Array.isArray(l) ? l : [l], K = G.length > 0, D = {
3246
3248
  padding: W,
3247
3249
  boundary: G.filter(Xa),
3248
3250
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3249
3251
  altBoundary: K
3250
- }, { refs: I, floatingStyles: X, placement: $, isPositioned: V, middlewareData: N } = ja({
3252
+ }, { refs: I, floatingStyles: X, placement: $, isPositioned: V, middlewareData: N } = ka({
3251
3253
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3252
3254
  strategy: "fixed",
3253
3255
  placement: F,
3254
- whileElementsMounted: (...Ae) => ki(...Ae, {
3256
+ whileElementsMounted: (...Ae) => Ra(...Ae, {
3255
3257
  animationFrame: m === "always"
3256
3258
  }),
3257
3259
  elements: {
3258
3260
  reference: g.anchor
3259
3261
  },
3260
3262
  middleware: [
3261
- Ma({ mainAxis: o + j, alignmentAxis: a }),
3262
- u && Ia({
3263
+ Da({ mainAxis: o + j, alignmentAxis: a }),
3264
+ u && Ma({
3263
3265
  mainAxis: !0,
3264
3266
  crossAxis: !1,
3265
- limiter: p === "partial" ? La() : void 0,
3267
+ limiter: p === "partial" ? Ia() : void 0,
3266
3268
  ...D
3267
3269
  }),
3268
- u && Fa({ ...D }),
3269
- Ba({
3270
+ u && La({ ...D }),
3271
+ Fa({
3270
3272
  ...D,
3271
3273
  apply: ({ elements: Ae, rects: it, availableWidth: ke, availableHeight: Se }) => {
3272
3274
  const { width: at, height: st } = it.reference, fe = Ae.floating.style;
3273
3275
  fe.setProperty("--radix-popper-available-width", `${ke}px`), fe.setProperty("--radix-popper-available-height", `${Se}px`), fe.setProperty("--radix-popper-anchor-width", `${at}px`), fe.setProperty("--radix-popper-anchor-height", `${st}px`);
3274
3276
  }
3275
3277
  }),
3276
- R && $a({ element: R, padding: s }),
3278
+ R && Wa({ element: R, padding: s }),
3277
3279
  Ga({ arrowWidth: S, arrowHeight: j }),
3278
- v && Wa({ strategy: "referenceHidden", ...D })
3280
+ v && Ba({ strategy: "referenceHidden", ...D })
3279
3281
  ]
3280
- }), [Y, Q] = Ur($), Ee = be(x);
3281
- xe(() => {
3282
+ }), [Y, Q] = Ur($), Ee = ge(x);
3283
+ ye(() => {
3282
3284
  V && (Ee == null || Ee());
3283
3285
  }, [V, Ee]);
3284
3286
  const nt = (Te = N.arrow) == null ? void 0 : Te.x, rt = (Re = N.arrow) == null ? void 0 : Re.y, Tt = ((Ne = N.arrow) == null ? void 0 : Ne.centerOffset) !== 0, [Nt, Ye] = d.useState();
3285
- return xe(() => {
3287
+ return ye(() => {
3286
3288
  w && Ye(window.getComputedStyle(w).zIndex);
3287
3289
  }, [w]), /* @__PURE__ */ y.jsx(
3288
3290
  "div",
@@ -3374,7 +3376,7 @@ var zr = "PopperArrow", Ka = {
3374
3376
  visibility: i.shouldHideArrow ? "hidden" : void 0
3375
3377
  },
3376
3378
  children: /* @__PURE__ */ y.jsx(
3377
- za,
3379
+ Va,
3378
3380
  {
3379
3381
  ...o,
3380
3382
  ref: n,
@@ -3410,7 +3412,7 @@ function Ur(e) {
3410
3412
  var qa = Br, Yr = $r, Ja = Vr, Za = Hr, Qa = "Portal", Kr = d.forwardRef((e, t) => {
3411
3413
  var s;
3412
3414
  const { container: n, ...r } = e, [o, i] = d.useState(!1);
3413
- xe(() => i(!0), []);
3415
+ ye(() => i(!0), []);
3414
3416
  const a = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
3415
3417
  return a ? Ho.createPortal(/* @__PURE__ */ y.jsx(Z.div, { ...r, ref: t }), a) : null;
3416
3418
  });
@@ -3435,7 +3437,7 @@ var $t = "focusScope.autoFocusOnMount", Vt = "focusScope.autoFocusOnUnmount", Xn
3435
3437
  onMountAutoFocus: o,
3436
3438
  onUnmountAutoFocus: i,
3437
3439
  ...a
3438
- } = e, [s, u] = d.useState(null), l = be(o), f = be(i), p = d.useRef(null), v = re(t, (h) => u(h)), m = d.useRef({
3440
+ } = e, [s, u] = d.useState(null), l = ge(o), f = ge(i), p = d.useRef(null), v = re(t, (h) => u(h)), m = d.useRef({
3439
3441
  paused: !1,
3440
3442
  pause() {
3441
3443
  this.paused = !0;
@@ -4100,7 +4102,7 @@ var oo = d.forwardRef(function(e, t) {
4100
4102
  return d.createElement(_t, ae({}, e, { ref: t, sideCar: Ks }));
4101
4103
  });
4102
4104
  oo.classNames = _t.classNames;
4103
- var wn = "Popover", [io, Cc] = et(wn, [
4105
+ var wn = "Popover", [io, Cc] = Qe(wn, [
4104
4106
  Lr
4105
4107
  ]), tt = Lr(), [Xs, Ce] = io(wn), ao = (e) => {
4106
4108
  const {
@@ -4110,7 +4112,7 @@ var wn = "Popover", [io, Cc] = et(wn, [
4110
4112
  defaultOpen: o,
4111
4113
  onOpenChange: i,
4112
4114
  modal: a = !1
4113
- } = e, s = tt(t), u = d.useRef(null), [l, f] = d.useState(!1), [p = !1, v] = Pt({
4115
+ } = e, s = tt(t), u = d.useRef(null), [l, f] = d.useState(!1), [p = !1, v] = Ct({
4114
4116
  prop: r,
4115
4117
  defaultProp: o,
4116
4118
  onChange: i
@@ -4119,7 +4121,7 @@ var wn = "Popover", [io, Cc] = et(wn, [
4119
4121
  Xs,
4120
4122
  {
4121
4123
  scope: t,
4122
- contentId: ln(),
4124
+ contentId: tn(),
4123
4125
  triggerRef: u,
4124
4126
  open: p,
4125
4127
  onOpenChange: v,
@@ -4152,7 +4154,7 @@ var co = "PopoverTrigger", lo = d.forwardRef(
4152
4154
  "data-state": go(o.open),
4153
4155
  ...r,
4154
4156
  ref: a,
4155
- onClick: ce(e.onClick, o.onOpenToggle)
4157
+ onClick: se(e.onClick, o.onOpenToggle)
4156
4158
  }
4157
4159
  );
4158
4160
  return o.hasCustomAnchor ? s : /* @__PURE__ */ y.jsx(Yr, { asChild: !0, ...i, children: s });
@@ -4163,13 +4165,13 @@ var bn = "PopoverPortal", [qs, Js] = io(bn, {
4163
4165
  forceMount: void 0
4164
4166
  }), uo = (e) => {
4165
4167
  const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = Ce(bn, t);
4166
- return /* @__PURE__ */ y.jsx(qs, { scope: t, forceMount: n, children: /* @__PURE__ */ y.jsx(At, { present: n || i.open, children: /* @__PURE__ */ y.jsx(Kr, { asChild: !0, container: o, children: r }) }) });
4168
+ return /* @__PURE__ */ y.jsx(qs, { scope: t, forceMount: n, children: /* @__PURE__ */ y.jsx(Et, { present: n || i.open, children: /* @__PURE__ */ y.jsx(Kr, { asChild: !0, container: o, children: r }) }) });
4167
4169
  };
4168
4170
  uo.displayName = bn;
4169
4171
  var Ve = "PopoverContent", fo = d.forwardRef(
4170
4172
  (e, t) => {
4171
4173
  const n = Js(Ve, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = Ce(Ve, e.__scopePopover);
4172
- return /* @__PURE__ */ y.jsx(At, { present: r || i.open, children: i.modal ? /* @__PURE__ */ y.jsx(Zs, { ...o, ref: t }) : /* @__PURE__ */ y.jsx(Qs, { ...o, ref: t }) });
4174
+ return /* @__PURE__ */ y.jsx(Et, { present: r || i.open, children: i.modal ? /* @__PURE__ */ y.jsx(Zs, { ...o, ref: t }) : /* @__PURE__ */ y.jsx(Qs, { ...o, ref: t }) });
4173
4175
  }
4174
4176
  );
4175
4177
  fo.displayName = Ve;
@@ -4179,18 +4181,18 @@ var Zs = d.forwardRef(
4179
4181
  return d.useEffect(() => {
4180
4182
  const a = r.current;
4181
4183
  if (a) return fs(a);
4182
- }, []), /* @__PURE__ */ y.jsx(oo, { as: Ze, allowPinchZoom: !0, children: /* @__PURE__ */ y.jsx(
4184
+ }, []), /* @__PURE__ */ y.jsx(oo, { as: Je, allowPinchZoom: !0, children: /* @__PURE__ */ y.jsx(
4183
4185
  po,
4184
4186
  {
4185
4187
  ...e,
4186
4188
  ref: o,
4187
4189
  trapFocus: n.open,
4188
4190
  disableOutsidePointerEvents: !0,
4189
- onCloseAutoFocus: ce(e.onCloseAutoFocus, (a) => {
4191
+ onCloseAutoFocus: se(e.onCloseAutoFocus, (a) => {
4190
4192
  var s;
4191
4193
  a.preventDefault(), i.current || (s = n.triggerRef.current) == null || s.focus();
4192
4194
  }),
4193
- onPointerDownOutside: ce(
4195
+ onPointerDownOutside: se(
4194
4196
  e.onPointerDownOutside,
4195
4197
  (a) => {
4196
4198
  const s = a.detail.originalEvent, u = s.button === 0 && s.ctrlKey === !0, l = s.button === 2 || u;
@@ -4198,7 +4200,7 @@ var Zs = d.forwardRef(
4198
4200
  },
4199
4201
  { checkForDefaultPrevented: !1 }
4200
4202
  ),
4201
- onFocusOutside: ce(
4203
+ onFocusOutside: se(
4202
4204
  e.onFocusOutside,
4203
4205
  (a) => a.preventDefault(),
4204
4206
  { checkForDefaultPrevented: !1 }
@@ -4252,7 +4254,7 @@ var Zs = d.forwardRef(
4252
4254
  onMountAutoFocus: o,
4253
4255
  onUnmountAutoFocus: i,
4254
4256
  children: /* @__PURE__ */ y.jsx(
4255
- kr,
4257
+ Rr,
4256
4258
  {
4257
4259
  asChild: !0,
4258
4260
  disableOutsidePointerEvents: a,
@@ -4294,7 +4296,7 @@ var Zs = d.forwardRef(
4294
4296
  type: "button",
4295
4297
  ...r,
4296
4298
  ref: t,
4297
- onClick: ce(e.onClick, () => o.onOpenChange(!1))
4299
+ onClick: se(e.onClick, () => o.onOpenChange(!1))
4298
4300
  }
4299
4301
  );
4300
4302
  }
@@ -4456,21 +4458,21 @@ const Ec = ({
4456
4458
  n && /* @__PURE__ */ y.jsx(de, { name: i, className: L(lc({ intent: e, disabled: r }), a == null ? void 0 : a.icon) })
4457
4459
  ] });
4458
4460
  export {
4459
- bc as A,
4461
+ wc as A,
4460
4462
  vc as B,
4461
4463
  Ac as C,
4462
- kr as D,
4463
- Ma as E,
4464
- yc as F,
4465
- ee as G,
4464
+ Rr as D,
4465
+ bc as E,
4466
+ ee as F,
4467
+ we as G,
4466
4468
  Rc as H,
4467
4469
  de as I,
4468
- ge as J,
4469
- gt as K,
4470
+ yt as J,
4471
+ Ma as K,
4470
4472
  Go as L,
4471
- Ia as M,
4473
+ La as M,
4472
4474
  Fa as N,
4473
- Ba as O,
4475
+ Ra as O,
4474
4476
  mc as P,
4475
4477
  hc as R,
4476
4478
  pc as S,
@@ -4479,27 +4481,27 @@ export {
4479
4481
  Pc as b,
4480
4482
  ze as c,
4481
4483
  gc as d,
4482
- ki as e,
4483
- et as f,
4484
- Pt as g,
4485
- Z as h,
4486
- ce as i,
4484
+ Z as e,
4485
+ Qe as f,
4486
+ Lr as g,
4487
+ Yr as h,
4488
+ se as i,
4487
4489
  y as j,
4488
- At as k,
4489
- Vi as l,
4490
- Lr as m,
4491
- Yr as n,
4492
- Ja as o,
4493
- Yi as p,
4494
- Za as q,
4495
- ln as r,
4496
- qa as s,
4497
- Zi as t,
4490
+ Et as k,
4491
+ Ja as l,
4492
+ Qo as m,
4493
+ Za as n,
4494
+ tn as o,
4495
+ Ct as p,
4496
+ qa as q,
4497
+ ri as r,
4498
+ wi as s,
4499
+ ge as t,
4498
4500
  re as u,
4499
- ca as v,
4500
- be as w,
4501
- ja as x,
4502
- oe as y,
4503
- pe as z
4501
+ za as v,
4502
+ ka as w,
4503
+ oe as x,
4504
+ pe as y,
4505
+ Da as z
4504
4506
  };
4505
- //# sourceMappingURL=CustomLink-CcSUq55J.js.map
4507
+ //# sourceMappingURL=CustomLink-fkoWqN7e.js.map