likec4 1.16.0 → 1.17.1

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React__default, { useState, Fragment, createContext, useContext, useRef, useEffect, useMemo, useCallback, useLayoutEffect, useId as useId$2, forwardRef, cloneElement, Children, createElement } from "react";
2
+ import React__default, { useState, Fragment, createContext, useContext, useRef, useEffect, useMemo, useCallback, useLayoutEffect, useId as useId$2, forwardRef, cloneElement, Children, createElement, useSyncExternalStore } from "react";
3
3
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
4
4
  import * as ReactDOM from "react-dom";
5
5
  import ReactDOM__default, { createPortal } from "react-dom";
@@ -399,7 +399,7 @@ function RemoveScrollSideCar(props) {
399
399
  }
400
400
  }, [props.inert, props.lockRef.current, props.shards]);
401
401
  var shouldCancelEvent = React.useCallback(function(event, parent) {
402
- if ("touches" in event && event.touches.length === 2)
402
+ if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey)
403
403
  return !lastProps.current.allowPinchZoom;
404
404
  var touch = getTouchXY(event), touchStart = touchStartRef.current, deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0], deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1], currentAxis, target = event.target, moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
405
405
  if ("touches" in event && moveDirection === "h" && target.type === "range")
@@ -812,24 +812,6 @@ function useFocusReturn({ opened, shouldReturnFocus = !0 }) {
812
812
  };
813
813
  }, [opened, shouldReturnFocus]), returnFocus;
814
814
  }
815
- function createAriaHider(containerNode, selector = "body > :not(script)") {
816
- const id = randomId(), rootNodes = Array.from(
817
- document.querySelectorAll(selector)
818
- ).map((node) => {
819
- if (node?.shadowRoot?.contains(containerNode) || node.contains(containerNode))
820
- return;
821
- const ariaHidden = node.getAttribute("aria-hidden"), prevAriaHidden = node.getAttribute("data-hidden"), prevFocusId = node.getAttribute("data-focus-id");
822
- return node.setAttribute("data-focus-id", id), ariaHidden === null || ariaHidden === "false" ? node.setAttribute("aria-hidden", "true") : !prevAriaHidden && !prevFocusId && node.setAttribute("data-hidden", ariaHidden), {
823
- node,
824
- ariaHidden: prevAriaHidden || null
825
- };
826
- });
827
- return () => {
828
- rootNodes.forEach((item) => {
829
- !item || id !== item.node.getAttribute("data-focus-id") || (item.ariaHidden === null ? item.node.removeAttribute("aria-hidden") : item.node.setAttribute("aria-hidden", item.ariaHidden), item.node.removeAttribute("data-focus-id"), item.node.removeAttribute("data-hidden"));
830
- });
831
- };
832
- }
833
815
  const TABBABLE_NODES = /input|select|textarea|button|object/, FOCUS_SELECTOR = "a, input, select, textarea, button, object, [tabindex]";
834
816
  function hidden(element) {
835
817
  return element.style.display === "none";
@@ -878,7 +860,7 @@ function scopeTab(node, event) {
878
860
  target && target.focus();
879
861
  }
880
862
  function useFocusTrap(active = !0) {
881
- const ref = useRef(), restoreAria = useRef(null), focusNode = (node) => {
863
+ const ref = useRef(), focusNode = (node) => {
882
864
  let focusElement = node.querySelector("[data-autofocus]");
883
865
  if (!focusElement) {
884
866
  const children = Array.from(node.querySelectorAll(FOCUS_SELECTOR));
@@ -887,15 +869,9 @@ function useFocusTrap(active = !0) {
887
869
  focusElement && focusElement.focus({ preventScroll: !0 });
888
870
  }, setRef = useCallback(
889
871
  (node) => {
890
- if (active) {
891
- if (node === null) {
892
- restoreAria.current && (restoreAria.current(), restoreAria.current = null);
893
- return;
894
- }
895
- restoreAria.current = createAriaHider(node), ref.current !== node && (node ? (setTimeout(() => {
896
- node.getRootNode() && focusNode(node);
897
- }), ref.current = node) : ref.current = null);
898
- }
872
+ active && node !== null && ref.current !== node && (node ? (setTimeout(() => {
873
+ node.getRootNode() && focusNode(node);
874
+ }), ref.current = node) : ref.current = null);
899
875
  },
900
876
  [active]
901
877
  );
@@ -906,9 +882,7 @@ function useFocusTrap(active = !0) {
906
882
  const handleKeyDown = (event) => {
907
883
  event.key === "Tab" && ref.current && scopeTab(ref.current, event);
908
884
  };
909
- return document.addEventListener("keydown", handleKeyDown), () => {
910
- document.removeEventListener("keydown", handleKeyDown), restoreAria.current && restoreAria.current();
911
- };
885
+ return document.addEventListener("keydown", handleKeyDown), () => document.removeEventListener("keydown", handleKeyDown);
912
886
  }, [active]), setRef;
913
887
  }
914
888
  const __useId = React__default.useId || (() => {
@@ -1117,17 +1091,30 @@ function useElementSize(options) {
1117
1091
  const [ref, { width, height }] = useResizeObserver$1(options);
1118
1092
  return { ref, width, height };
1119
1093
  }
1094
+ const eventListerOptions = {
1095
+ passive: !0
1096
+ };
1097
+ function useViewportSize() {
1098
+ const [windowSize, setWindowSize] = useState({
1099
+ width: 0,
1100
+ height: 0
1101
+ }), setSize = useCallback(() => {
1102
+ setWindowSize({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
1103
+ }, []);
1104
+ return useWindowEvent("resize", setSize, eventListerOptions), useWindowEvent("orientationchange", setSize, eventListerOptions), useEffect(setSize, []), windowSize;
1105
+ }
1120
1106
  function parseHotkey(hotkey) {
1121
1107
  const keys2 = hotkey.toLowerCase().split("+").map((part) => part.trim()), modifiers = {
1122
1108
  alt: keys2.includes("alt"),
1123
1109
  ctrl: keys2.includes("ctrl"),
1124
1110
  meta: keys2.includes("meta"),
1125
1111
  mod: keys2.includes("mod"),
1126
- shift: keys2.includes("shift")
1112
+ shift: keys2.includes("shift"),
1113
+ plus: keys2.includes("[plus]")
1127
1114
  }, reservedKeys = ["alt", "ctrl", "meta", "shift", "mod"], freeKey = keys2.find((key) => !reservedKeys.includes(key));
1128
1115
  return {
1129
1116
  ...modifiers,
1130
- key: freeKey
1117
+ key: freeKey === "[plus]" ? "+" : freeKey
1131
1118
  };
1132
1119
  }
1133
1120
  function isExactHotkey(hotkey, event) {
@@ -1259,6 +1246,15 @@ function memoize(func) {
1259
1246
  return cache.set(key, result), result;
1260
1247
  };
1261
1248
  }
1249
+ function findClosestNumber(value, numbers) {
1250
+ return numbers.length === 0 ? value : numbers.reduce(
1251
+ (prev, curr) => Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev
1252
+ );
1253
+ }
1254
+ function getRefProp(element) {
1255
+ const version = React__default.version;
1256
+ return typeof React__default.version != "string" || version.startsWith("18.") ? element?.ref : element?.props?.ref;
1257
+ }
1262
1258
  function r(e) {
1263
1259
  var t, f, n = "";
1264
1260
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -2814,7 +2810,7 @@ const STYlE_PROPS_DATA = {
2814
2810
  bgr: { type: "identity", property: "backgroundRepeat" },
2815
2811
  bga: { type: "identity", property: "backgroundAttachment" },
2816
2812
  pos: { type: "identity", property: "position" },
2817
- top: { type: "identity", property: "top" },
2813
+ top: { type: "size", property: "top" },
2818
2814
  left: { type: "size", property: "left" },
2819
2815
  bottom: { type: "size", property: "bottom" },
2820
2816
  right: { type: "size", property: "right" },
@@ -3103,11 +3099,11 @@ const Corner = forwardRef((props, ref) => {
3103
3099
  }), ScrollAreaCorner = forwardRef((props, ref) => {
3104
3100
  const ctx = useScrollAreaContext(), hasBothScrollbarsVisible = !!(ctx.scrollbarX && ctx.scrollbarY);
3105
3101
  return ctx.type !== "scroll" && hasBothScrollbarsVisible ? /* @__PURE__ */ jsx(Corner, { ...props, ref }) : null;
3106
- }), defaultProps$1s = {
3102
+ }), defaultProps$1I = {
3107
3103
  scrollHideDelay: 1e3,
3108
3104
  type: "hover"
3109
3105
  }, ScrollAreaRoot = forwardRef((_props, ref) => {
3110
- const props = useProps("ScrollAreaRoot", defaultProps$1s, _props), { type, scrollHideDelay, scrollbars, ...others } = props, [scrollArea, setScrollArea] = useState(null), [viewport, setViewport] = useState(null), [content, setContent] = useState(null), [scrollbarX, setScrollbarX] = useState(null), [scrollbarY, setScrollbarY] = useState(null), [cornerWidth, setCornerWidth] = useState(0), [cornerHeight, setCornerHeight] = useState(0), [scrollbarXEnabled, setScrollbarXEnabled] = useState(!1), [scrollbarYEnabled, setScrollbarYEnabled] = useState(!1), rootRef = useMergedRef(ref, (node) => setScrollArea(node));
3106
+ const props = useProps("ScrollAreaRoot", defaultProps$1I, _props), { type, scrollHideDelay, scrollbars, ...others } = props, [scrollArea, setScrollArea] = useState(null), [viewport, setViewport] = useState(null), [content, setContent] = useState(null), [scrollbarX, setScrollbarX] = useState(null), [scrollbarY, setScrollbarY] = useState(null), [cornerWidth, setCornerWidth] = useState(0), [cornerHeight, setCornerHeight] = useState(0), [scrollbarXEnabled, setScrollbarXEnabled] = useState(!1), [scrollbarYEnabled, setScrollbarYEnabled] = useState(!1), rootRef = useMergedRef(ref, (node) => setScrollArea(node));
3111
3107
  return /* @__PURE__ */ jsx(
3112
3108
  ScrollAreaProvider,
3113
3109
  {
@@ -3532,17 +3528,17 @@ const ScrollAreaViewport = forwardRef(
3532
3528
  }
3533
3529
  );
3534
3530
  ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
3535
- var __default__$G = { root: "m_d57069b5", viewport: "m_c0783ff9", viewportInner: "m_f8f631dd", scrollbar: "m_c44ba933", thumb: "m_d8b5e363", corner: "m_21657268" };
3536
- const classes$G = __default__$G, defaultProps$1r = {
3531
+ var __default__$J = { root: "m_d57069b5", viewport: "m_c0783ff9", viewportInner: "m_f8f631dd", scrollbar: "m_c44ba933", thumb: "m_d8b5e363", corner: "m_21657268" };
3532
+ const classes$J = __default__$J, defaultProps$1H = {
3537
3533
  scrollHideDelay: 1e3,
3538
3534
  type: "hover",
3539
3535
  scrollbars: "xy"
3540
- }, varsResolver$G = (_, { scrollbarSize }) => ({
3536
+ }, varsResolver$J = (_, { scrollbarSize }) => ({
3541
3537
  root: {
3542
3538
  "--scrollarea-scrollbar-size": rem(scrollbarSize)
3543
3539
  }
3544
3540
  }), ScrollArea = factory((_props, ref) => {
3545
- const props = useProps("ScrollArea", defaultProps$1r, _props), {
3541
+ const props = useProps("ScrollArea", defaultProps$1H, _props), {
3546
3542
  classNames,
3547
3543
  className,
3548
3544
  style,
@@ -3564,14 +3560,14 @@ const classes$G = __default__$G, defaultProps$1r = {
3564
3560
  } = props, [scrollbarHovered, setScrollbarHovered] = useState(!1), getStyles2 = useStyles({
3565
3561
  name: "ScrollArea",
3566
3562
  props,
3567
- classes: classes$G,
3563
+ classes: classes$J,
3568
3564
  className,
3569
3565
  style,
3570
3566
  classNames,
3571
3567
  styles,
3572
3568
  unstyled,
3573
3569
  vars,
3574
- varsResolver: varsResolver$G
3570
+ varsResolver: varsResolver$J
3575
3571
  });
3576
3572
  return /* @__PURE__ */ jsxs(
3577
3573
  ScrollAreaRoot,
@@ -3657,7 +3653,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
3657
3653
  onBottomReached,
3658
3654
  onTopReached,
3659
3655
  ...others
3660
- } = useProps("ScrollAreaAutosize", defaultProps$1r, props);
3656
+ } = useProps("ScrollAreaAutosize", defaultProps$1H, props);
3661
3657
  return /* @__PURE__ */ jsx(Box, { ...others, ref, style: [{ display: "flex", overflow: "auto" }, style], children: /* @__PURE__ */ jsx(Box, { style: { display: "flex", flexDirection: "column", flex: 1 }, children: /* @__PURE__ */ jsx(
3662
3658
  ScrollArea,
3663
3659
  {
@@ -3681,16 +3677,16 @@ const ScrollAreaAutosize = factory((props, ref) => {
3681
3677
  }
3682
3678
  ) }) });
3683
3679
  });
3684
- ScrollArea.classes = classes$G;
3680
+ ScrollArea.classes = classes$J;
3685
3681
  ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize";
3686
- ScrollAreaAutosize.classes = classes$G;
3682
+ ScrollAreaAutosize.classes = classes$J;
3687
3683
  ScrollArea.Autosize = ScrollAreaAutosize;
3688
- var __default__$F = { root: "m_87cf2631" };
3689
- const classes$F = __default__$F, defaultProps$1q = {
3684
+ var __default__$I = { root: "m_87cf2631" };
3685
+ const classes$I = __default__$I, defaultProps$1G = {
3690
3686
  __staticSelector: "UnstyledButton"
3691
3687
  }, UnstyledButton = polymorphicFactory(
3692
3688
  (_props, ref) => {
3693
- const props = useProps("UnstyledButton", defaultProps$1q, _props), {
3689
+ const props = useProps("UnstyledButton", defaultProps$1G, _props), {
3694
3690
  className,
3695
3691
  component = "button",
3696
3692
  __staticSelector,
@@ -3702,7 +3698,7 @@ const classes$F = __default__$F, defaultProps$1q = {
3702
3698
  } = props, getStyles2 = useStyles({
3703
3699
  name: __staticSelector,
3704
3700
  props,
3705
- classes: classes$F,
3701
+ classes: classes$I,
3706
3702
  className,
3707
3703
  style,
3708
3704
  classNames,
@@ -3721,13 +3717,13 @@ const classes$F = __default__$F, defaultProps$1q = {
3721
3717
  );
3722
3718
  }
3723
3719
  );
3724
- UnstyledButton.classes = classes$F;
3720
+ UnstyledButton.classes = classes$I;
3725
3721
  UnstyledButton.displayName = "@mantine/core/UnstyledButton";
3726
- var __default__$E = { root: "m_515a97f8" };
3727
- const classes$E = __default__$E, defaultProps$1p = {}, VisuallyHidden = factory((_props, ref) => {
3728
- const props = useProps("VisuallyHidden", defaultProps$1p, _props), { classNames, className, style, styles, unstyled, vars, ...others } = props, getStyles2 = useStyles({
3722
+ var __default__$H = { root: "m_515a97f8" };
3723
+ const classes$H = __default__$H, defaultProps$1F = {}, VisuallyHidden = factory((_props, ref) => {
3724
+ const props = useProps("VisuallyHidden", defaultProps$1F, _props), { classNames, className, style, styles, unstyled, vars, ...others } = props, getStyles2 = useStyles({
3729
3725
  name: "VisuallyHidden",
3730
- classes: classes$E,
3726
+ classes: classes$H,
3731
3727
  props,
3732
3728
  className,
3733
3729
  style,
@@ -3737,16 +3733,16 @@ const classes$E = __default__$E, defaultProps$1p = {}, VisuallyHidden = factory(
3737
3733
  });
3738
3734
  return /* @__PURE__ */ jsx(Box, { component: "span", ref, ...getStyles2("root"), ...others });
3739
3735
  });
3740
- VisuallyHidden.classes = classes$E;
3736
+ VisuallyHidden.classes = classes$H;
3741
3737
  VisuallyHidden.displayName = "@mantine/core/VisuallyHidden";
3742
- var __default__$D = { root: "m_1b7284a3" };
3743
- const classes$D = __default__$D, defaultProps$1o = {}, varsResolver$F = (_, { radius, shadow }) => ({
3738
+ var __default__$G = { root: "m_1b7284a3" };
3739
+ const classes$G = __default__$G, defaultProps$1E = {}, varsResolver$I = (_, { radius, shadow }) => ({
3744
3740
  root: {
3745
3741
  "--paper-radius": radius === void 0 ? void 0 : getRadius(radius),
3746
3742
  "--paper-shadow": getShadow(shadow)
3747
3743
  }
3748
3744
  }), Paper = polymorphicFactory((_props, ref) => {
3749
- const props = useProps("Paper", defaultProps$1o, _props), {
3745
+ const props = useProps("Paper", defaultProps$1E, _props), {
3750
3746
  classNames,
3751
3747
  className,
3752
3748
  style,
@@ -3762,14 +3758,14 @@ const classes$D = __default__$D, defaultProps$1o = {}, varsResolver$F = (_, { ra
3762
3758
  } = props, getStyles2 = useStyles({
3763
3759
  name: "Paper",
3764
3760
  props,
3765
- classes: classes$D,
3761
+ classes: classes$G,
3766
3762
  className,
3767
3763
  style,
3768
3764
  classNames,
3769
3765
  styles,
3770
3766
  unstyled,
3771
3767
  vars,
3772
- varsResolver: varsResolver$F
3768
+ varsResolver: varsResolver$I
3773
3769
  });
3774
3770
  return /* @__PURE__ */ jsx(
3775
3771
  Box,
@@ -3782,8 +3778,11 @@ const classes$D = __default__$D, defaultProps$1o = {}, varsResolver$F = (_, { ra
3782
3778
  }
3783
3779
  );
3784
3780
  });
3785
- Paper.classes = classes$D;
3781
+ Paper.classes = classes$G;
3786
3782
  Paper.displayName = "@mantine/core/Paper";
3783
+ function hasWindow() {
3784
+ return typeof window < "u";
3785
+ }
3787
3786
  function getNodeName(node) {
3788
3787
  return isNode(node) ? (node.nodeName || "").toLowerCase() : "#document";
3789
3788
  }
@@ -3796,16 +3795,16 @@ function getDocumentElement(node) {
3796
3795
  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
3797
3796
  }
3798
3797
  function isNode(value) {
3799
- return value instanceof Node || value instanceof getWindow(value).Node;
3798
+ return hasWindow() ? value instanceof Node || value instanceof getWindow(value).Node : !1;
3800
3799
  }
3801
3800
  function isElement(value) {
3802
- return value instanceof Element || value instanceof getWindow(value).Element;
3801
+ return hasWindow() ? value instanceof Element || value instanceof getWindow(value).Element : !1;
3803
3802
  }
3804
3803
  function isHTMLElement(value) {
3805
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
3804
+ return hasWindow() ? value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement : !1;
3806
3805
  }
3807
3806
  function isShadowRoot(value) {
3808
- return typeof ShadowRoot > "u" ? !1 : value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
3807
+ return !hasWindow() || typeof ShadowRoot > "u" ? !1 : value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
3809
3808
  }
3810
3809
  function isOverflowElement(element) {
3811
3810
  const {
@@ -3828,17 +3827,17 @@ function isTopLayer(element) {
3828
3827
  }
3829
3828
  });
3830
3829
  }
3831
- function isContainingBlock(element) {
3832
- const webkit = isWebKit(), css = getComputedStyle$1(element);
3830
+ function isContainingBlock(elementOrCss) {
3831
+ const webkit = isWebKit(), css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
3833
3832
  return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : !1) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : !1) || !webkit && (css.filter ? css.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
3834
3833
  }
3835
3834
  function getContainingBlock(element) {
3836
3835
  let currentNode = getParentNode(element);
3837
3836
  for (; isHTMLElement(currentNode) && !isLastTraversableNode(currentNode); ) {
3838
- if (isTopLayer(currentNode))
3839
- return null;
3840
3837
  if (isContainingBlock(currentNode))
3841
3838
  return currentNode;
3839
+ if (isTopLayer(currentNode))
3840
+ return null;
3842
3841
  currentNode = getParentNode(currentNode);
3843
3842
  }
3844
3843
  return null;
@@ -3881,7 +3880,14 @@ function getOverflowAncestors(node, list, traverseIframes) {
3881
3880
  var _node$ownerDocument2;
3882
3881
  list === void 0 && (list = []), traverseIframes === void 0 && (traverseIframes = !0);
3883
3882
  const scrollableAncestor = getNearestOverflowAncestor(node), isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body), win = getWindow(scrollableAncestor);
3884
- return isBody ? list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []) : list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
3883
+ if (isBody) {
3884
+ const frameElement = getFrameElement(win);
3885
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
3886
+ }
3887
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
3888
+ }
3889
+ function getFrameElement(win) {
3890
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
3885
3891
  }
3886
3892
  function activeElement(doc) {
3887
3893
  let activeElement2 = doc.activeElement;
@@ -5034,7 +5040,7 @@ function useFloating$1(options) {
5034
5040
  node !== referenceRef.current && (referenceRef.current = node, _setReference(node));
5035
5041
  }, []), setFloating = React.useCallback((node) => {
5036
5042
  node !== floatingRef.current && (floatingRef.current = node, _setFloating(node));
5037
- }, []), referenceEl = externalReference || _reference, floatingEl = externalFloating || _floating, referenceRef = React.useRef(null), floatingRef = React.useRef(null), dataRef = React.useRef(data), hasWhileElementsMounted = whileElementsMounted != null, whileElementsMountedRef = useLatestRef$1(whileElementsMounted), platformRef = useLatestRef$1(platform2), update = React.useCallback(() => {
5043
+ }, []), referenceEl = externalReference || _reference, floatingEl = externalFloating || _floating, referenceRef = React.useRef(null), floatingRef = React.useRef(null), dataRef = React.useRef(data), hasWhileElementsMounted = whileElementsMounted != null, whileElementsMountedRef = useLatestRef$1(whileElementsMounted), platformRef = useLatestRef$1(platform2), openRef = useLatestRef$1(open), update = React.useCallback(() => {
5038
5044
  if (!referenceRef.current || !floatingRef.current)
5039
5045
  return;
5040
5046
  const config = {
@@ -5045,13 +5051,17 @@ function useFloating$1(options) {
5045
5051
  platformRef.current && (config.platform = platformRef.current), computePosition(referenceRef.current, floatingRef.current, config).then((data2) => {
5046
5052
  const fullData = {
5047
5053
  ...data2,
5048
- isPositioned: !0
5054
+ // The floating element's position may be recomputed while it's closed
5055
+ // but still mounted (such as when transitioning out). To ensure
5056
+ // `isPositioned` will be `false` initially on the next open, avoid
5057
+ // setting it to `true` when `open === false` (must be specified).
5058
+ isPositioned: openRef.current !== !1
5049
5059
  };
5050
5060
  isMountedRef.current && !deepEqual(dataRef.current, fullData) && (dataRef.current = fullData, ReactDOM.flushSync(() => {
5051
5061
  setData(fullData);
5052
5062
  }));
5053
5063
  });
5054
- }, [latestMiddleware, placement, strategy, platformRef]);
5064
+ }, [latestMiddleware, placement, strategy, platformRef, openRef]);
5055
5065
  index$1(() => {
5056
5066
  open === !1 && dataRef.current.isPositioned && (dataRef.current.isPositioned = !1, setData((data2) => ({
5057
5067
  ...data2,
@@ -5226,7 +5236,7 @@ function useHover(context, props) {
5226
5236
  restMs = 0,
5227
5237
  move = !0
5228
5238
  } = props, tree = useFloatingTree(), parentId = useFloatingParentNodeId(), handleCloseRef = useLatestRef(handleClose), delayRef = useLatestRef(delay), openRef = useLatestRef(open), pointerTypeRef = React.useRef(), timeoutRef = React.useRef(-1), handlerRef = React.useRef(), restTimeoutRef = React.useRef(-1), blockMouseMoveRef = React.useRef(!0), performedPointerEventsMutationRef = React.useRef(!1), unbindMouseMoveRef = React.useRef(() => {
5229
- }), isHoverOpen = React.useCallback(() => {
5239
+ }), restTimeoutPendingRef = React.useRef(!1), isHoverOpen = React.useCallback(() => {
5230
5240
  var _dataRef$current$open;
5231
5241
  const type = (_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type;
5232
5242
  return type?.includes("mouse") && type !== "mousedown";
@@ -5237,7 +5247,7 @@ function useHover(context, props) {
5237
5247
  let {
5238
5248
  open: open2
5239
5249
  } = _ref;
5240
- open2 || (clearTimeout(timeoutRef.current), clearTimeout(restTimeoutRef.current), blockMouseMoveRef.current = !0);
5250
+ open2 || (clearTimeout(timeoutRef.current), clearTimeout(restTimeoutRef.current), blockMouseMoveRef.current = !0, restTimeoutPendingRef.current = !1);
5241
5251
  }
5242
5252
  return events.on("openchange", onOpenChange2), () => {
5243
5253
  events.off("openchange", onOpenChange2);
@@ -5263,32 +5273,29 @@ function useHover(context, props) {
5263
5273
  const body = getDocument(elements.floating).body;
5264
5274
  body.style.pointerEvents = "", body.removeAttribute(safePolygonIdentifier), performedPointerEventsMutationRef.current = !1;
5265
5275
  }
5266
- });
5276
+ }), isClickLikeOpenEvent = useEffectEvent(() => dataRef.current.openEvent ? ["click", "mousedown"].includes(dataRef.current.openEvent.type) : !1);
5267
5277
  React.useEffect(() => {
5268
5278
  if (!enabled) return;
5269
- function isClickLikeOpenEvent() {
5270
- return dataRef.current.openEvent ? ["click", "mousedown"].includes(dataRef.current.openEvent.type) : !1;
5271
- }
5272
5279
  function onMouseEnter(event) {
5273
5280
  if (clearTimeout(timeoutRef.current), blockMouseMoveRef.current = !1, mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || restMs > 0 && !getDelay(delayRef.current, "open"))
5274
5281
  return;
5275
5282
  const openDelay = getDelay(delayRef.current, "open", pointerTypeRef.current);
5276
5283
  openDelay ? timeoutRef.current = window.setTimeout(() => {
5277
5284
  openRef.current || onOpenChange(!0, event, "hover");
5278
- }, openDelay) : onOpenChange(!0, event, "hover");
5285
+ }, openDelay) : open || onOpenChange(!0, event, "hover");
5279
5286
  }
5280
5287
  function onMouseLeave(event) {
5281
5288
  if (isClickLikeOpenEvent()) return;
5282
5289
  unbindMouseMoveRef.current();
5283
5290
  const doc = getDocument(elements.floating);
5284
- if (clearTimeout(restTimeoutRef.current), handleCloseRef.current && dataRef.current.floatingContext) {
5291
+ if (clearTimeout(restTimeoutRef.current), restTimeoutPendingRef.current = !1, handleCloseRef.current && dataRef.current.floatingContext) {
5285
5292
  open || clearTimeout(timeoutRef.current), handlerRef.current = handleCloseRef.current({
5286
5293
  ...dataRef.current.floatingContext,
5287
5294
  tree,
5288
5295
  x: event.clientX,
5289
5296
  y: event.clientY,
5290
5297
  onClose() {
5291
- clearPointerEvents(), cleanupMouseMoveHandler(), closeWithDelay(event, !0, "safe-polygon");
5298
+ clearPointerEvents(), cleanupMouseMoveHandler(), isClickLikeOpenEvent() || closeWithDelay(event, !0, "safe-polygon");
5292
5299
  }
5293
5300
  });
5294
5301
  const handler = handlerRef.current;
@@ -5306,7 +5313,7 @@ function useHover(context, props) {
5306
5313
  x: event.clientX,
5307
5314
  y: event.clientY,
5308
5315
  onClose() {
5309
- clearPointerEvents(), cleanupMouseMoveHandler(), closeWithDelay(event);
5316
+ clearPointerEvents(), cleanupMouseMoveHandler(), isClickLikeOpenEvent() || closeWithDelay(event);
5310
5317
  }
5311
5318
  })(event));
5312
5319
  }
@@ -5320,22 +5327,23 @@ function useHover(context, props) {
5320
5327
  open && ref.removeEventListener("mouseleave", onScrollMouseLeave), (_elements$floating2 = elements.floating) == null || _elements$floating2.removeEventListener("mouseleave", onScrollMouseLeave), move && ref.removeEventListener("mousemove", onMouseEnter), ref.removeEventListener("mouseenter", onMouseEnter), ref.removeEventListener("mouseleave", onMouseLeave);
5321
5328
  };
5322
5329
  }
5323
- }, [elements, enabled, context, mouseOnly, restMs, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, openRef, tree, delayRef, handleCloseRef, dataRef]), index(() => {
5330
+ }, [elements, enabled, context, mouseOnly, restMs, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, openRef, tree, delayRef, handleCloseRef, dataRef, isClickLikeOpenEvent]), index(() => {
5324
5331
  var _handleCloseRef$curre;
5325
5332
  if (enabled && open && (_handleCloseRef$curre = handleCloseRef.current) != null && _handleCloseRef$curre.__options.blockPointerEvents && isHoverOpen()) {
5326
- const body = getDocument(elements.floating).body;
5327
- body.setAttribute(safePolygonIdentifier, ""), body.style.pointerEvents = "none", performedPointerEventsMutationRef.current = !0;
5333
+ performedPointerEventsMutationRef.current = !0;
5328
5334
  const floatingEl = elements.floating;
5329
5335
  if (isElement(elements.domReference) && floatingEl) {
5330
5336
  var _tree$nodesRef$curren;
5337
+ const body = getDocument(elements.floating).body;
5338
+ body.setAttribute(safePolygonIdentifier, "");
5331
5339
  const ref = elements.domReference, parentFloating = tree == null || (_tree$nodesRef$curren = tree.nodesRef.current.find((node) => node.id === parentId)) == null || (_tree$nodesRef$curren = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren.elements.floating;
5332
- return parentFloating && (parentFloating.style.pointerEvents = ""), ref.style.pointerEvents = "auto", floatingEl.style.pointerEvents = "auto", () => {
5333
- ref.style.pointerEvents = "", floatingEl.style.pointerEvents = "";
5340
+ return parentFloating && (parentFloating.style.pointerEvents = ""), body.style.pointerEvents = "none", ref.style.pointerEvents = "auto", floatingEl.style.pointerEvents = "auto", () => {
5341
+ body.style.pointerEvents = "", ref.style.pointerEvents = "", floatingEl.style.pointerEvents = "";
5334
5342
  };
5335
5343
  }
5336
5344
  }
5337
5345
  }, [enabled, open, parentId, elements, tree, handleCloseRef, isHoverOpen]), index(() => {
5338
- open || (pointerTypeRef.current = void 0, cleanupMouseMoveHandler(), clearPointerEvents());
5346
+ open || (pointerTypeRef.current = void 0, restTimeoutPendingRef.current = !1, cleanupMouseMoveHandler(), clearPointerEvents());
5339
5347
  }, [open, cleanupMouseMoveHandler, clearPointerEvents]), React.useEffect(() => () => {
5340
5348
  cleanupMouseMoveHandler(), clearTimeout(timeoutRef.current), clearTimeout(restTimeoutRef.current), clearPointerEvents();
5341
5349
  }, [enabled, elements.domReference, cleanupMouseMoveHandler, clearPointerEvents]);
@@ -5353,7 +5361,7 @@ function useHover(context, props) {
5353
5361
  function handleMouseMove() {
5354
5362
  !blockMouseMoveRef.current && !openRef.current && onOpenChange(!0, nativeEvent, "hover");
5355
5363
  }
5356
- mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || open || restMs === 0 || (clearTimeout(restTimeoutRef.current), pointerTypeRef.current === "touch" ? handleMouseMove() : restTimeoutRef.current = window.setTimeout(handleMouseMove, restMs));
5364
+ mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || open || restMs === 0 || restTimeoutPendingRef.current && event.movementX ** 2 + event.movementY ** 2 < 2 || (clearTimeout(restTimeoutRef.current), pointerTypeRef.current === "touch" ? handleMouseMove() : (restTimeoutPendingRef.current = !0, restTimeoutRef.current = window.setTimeout(handleMouseMove, restMs)));
5357
5365
  }
5358
5366
  };
5359
5367
  }, [mouseOnly, onOpenChange, open, openRef, restMs]), floating = React.useMemo(() => ({
@@ -5361,9 +5369,9 @@ function useHover(context, props) {
5361
5369
  clearTimeout(timeoutRef.current);
5362
5370
  },
5363
5371
  onMouseLeave(event) {
5364
- closeWithDelay(event.nativeEvent, !1);
5372
+ isClickLikeOpenEvent() || closeWithDelay(event.nativeEvent, !1);
5365
5373
  }
5366
- }), [closeWithDelay]);
5374
+ }), [closeWithDelay, isClickLikeOpenEvent]);
5367
5375
  return React.useMemo(() => enabled ? {
5368
5376
  reference,
5369
5377
  floating
@@ -5419,7 +5427,8 @@ function useDelayGroup(context, options) {
5419
5427
  onOpenChange,
5420
5428
  floatingId
5421
5429
  } = context, {
5422
- id: optionId
5430
+ id: optionId,
5431
+ enabled = !0
5423
5432
  } = options, id = optionId ?? floatingId, groupContext = useDelayGroupContext(), {
5424
5433
  currentId,
5425
5434
  setCurrentId,
@@ -5428,20 +5437,20 @@ function useDelayGroup(context, options) {
5428
5437
  timeoutMs
5429
5438
  } = groupContext;
5430
5439
  return index(() => {
5431
- currentId && (setState({
5440
+ enabled && currentId && (setState({
5432
5441
  delay: {
5433
5442
  open: 1,
5434
5443
  close: getDelay(initialDelay, "close")
5435
5444
  }
5436
5445
  }), currentId !== id && onOpenChange(!1));
5437
- }, [id, onOpenChange, setState, currentId, initialDelay]), index(() => {
5446
+ }, [enabled, id, onOpenChange, setState, currentId, initialDelay]), index(() => {
5438
5447
  function unset() {
5439
5448
  onOpenChange(!1), setState({
5440
5449
  delay: initialDelay,
5441
5450
  currentId: null
5442
5451
  });
5443
5452
  }
5444
- if (currentId && !open && currentId === id) {
5453
+ if (enabled && currentId && !open && currentId === id) {
5445
5454
  if (timeoutMs) {
5446
5455
  const timeout = window.setTimeout(unset, timeoutMs);
5447
5456
  return () => {
@@ -5450,9 +5459,9 @@ function useDelayGroup(context, options) {
5450
5459
  }
5451
5460
  unset();
5452
5461
  }
5453
- }, [open, setState, currentId, id, onOpenChange, initialDelay, timeoutMs]), index(() => {
5454
- setCurrentId === NOOP || !open || setCurrentId(id);
5455
- }, [open, setCurrentId, id]), groupContext;
5462
+ }, [enabled, open, setState, currentId, id, onOpenChange, initialDelay, timeoutMs]), index(() => {
5463
+ enabled && (setCurrentId === NOOP || !open || setCurrentId(id));
5464
+ }, [enabled, open, setCurrentId, id]), groupContext;
5456
5465
  }
5457
5466
  function getChildren(nodes, id) {
5458
5467
  let allChildren = nodes.filter((node) => {
@@ -5469,7 +5478,7 @@ function getChildren(nodes, id) {
5469
5478
  }), allChildren = allChildren.concat(currentChildren);
5470
5479
  return allChildren;
5471
5480
  }
5472
- const bubbleHandlerKeys = {
5481
+ const FOCUSABLE_ATTRIBUTE = "data-floating-ui-focusable", bubbleHandlerKeys = {
5473
5482
  pointerdown: "onPointerDown",
5474
5483
  mousedown: "onMouseDown",
5475
5484
  click: "onClick"
@@ -5507,9 +5516,9 @@ function useDismiss(context, props) {
5507
5516
  } = normalizeProp(bubbles), {
5508
5517
  escapeKey: escapeKeyCapture,
5509
5518
  outsidePress: outsidePressCapture
5510
- } = normalizeProp(capture), closeOnEscapeKeyDown = useEffectEvent((event) => {
5519
+ } = normalizeProp(capture), isComposingRef = React.useRef(!1), closeOnEscapeKeyDown = useEffectEvent((event) => {
5511
5520
  var _dataRef$current$floa;
5512
- if (!open || !enabled || !escapeKey || event.key !== "Escape")
5521
+ if (!open || !enabled || !escapeKey || event.key !== "Escape" || isComposingRef.current)
5513
5522
  return;
5514
5523
  const nodeId = (_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.nodeId, children = tree ? getChildren(tree.nodesRef.current, nodeId) : [];
5515
5524
  if (!escapeKeyBubbles && (event.stopPropagation(), children.length > 0)) {
@@ -5588,11 +5597,25 @@ function useDismiss(context, props) {
5588
5597
  if (!open || !enabled)
5589
5598
  return;
5590
5599
  dataRef.current.__escapeKeyBubbles = escapeKeyBubbles, dataRef.current.__outsidePressBubbles = outsidePressBubbles;
5600
+ let compositionTimeout = -1;
5591
5601
  function onScroll(event) {
5592
5602
  onOpenChange(!1, event, "ancestor-scroll");
5593
5603
  }
5604
+ function handleCompositionStart() {
5605
+ window.clearTimeout(compositionTimeout), isComposingRef.current = !0;
5606
+ }
5607
+ function handleCompositionEnd() {
5608
+ compositionTimeout = window.setTimeout(
5609
+ () => {
5610
+ isComposingRef.current = !1;
5611
+ },
5612
+ // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
5613
+ // Only apply to WebKit for the test to remain 0ms.
5614
+ isWebKit() ? 5 : 0
5615
+ );
5616
+ }
5594
5617
  const doc = getDocument(elements.floating);
5595
- escapeKey && doc.addEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture), outsidePress && doc.addEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);
5618
+ escapeKey && (doc.addEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture), doc.addEventListener("compositionstart", handleCompositionStart), doc.addEventListener("compositionend", handleCompositionEnd)), outsidePress && doc.addEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);
5596
5619
  let ancestors = [];
5597
5620
  return ancestorScroll && (isElement(elements.domReference) && (ancestors = getOverflowAncestors(elements.domReference)), isElement(elements.floating) && (ancestors = ancestors.concat(getOverflowAncestors(elements.floating))), !isElement(elements.reference) && elements.reference && elements.reference.contextElement && (ancestors = ancestors.concat(getOverflowAncestors(elements.reference.contextElement)))), ancestors = ancestors.filter((ancestor) => {
5598
5621
  var _doc$defaultView;
@@ -5602,9 +5625,9 @@ function useDismiss(context, props) {
5602
5625
  passive: !0
5603
5626
  });
5604
5627
  }), () => {
5605
- escapeKey && doc.removeEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture), outsidePress && doc.removeEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture), ancestors.forEach((ancestor) => {
5628
+ escapeKey && (doc.removeEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture), doc.removeEventListener("compositionstart", handleCompositionStart), doc.removeEventListener("compositionend", handleCompositionEnd)), outsidePress && doc.removeEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture), ancestors.forEach((ancestor) => {
5606
5629
  ancestor.removeEventListener("scroll", onScroll);
5607
- });
5630
+ }), window.clearTimeout(compositionTimeout);
5608
5631
  };
5609
5632
  }, [dataRef, elements, escapeKey, outsidePress, outsidePressEvent, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles, closeOnEscapeKeyDown, escapeKeyCapture, closeOnEscapeKeyDownCapture, closeOnPressOutside, outsidePressCapture, closeOnPressOutsideCapture]), React.useEffect(() => {
5610
5633
  insideReactTreeRef.current = !1;
@@ -5671,7 +5694,7 @@ function useFloating(options) {
5671
5694
  floating: null,
5672
5695
  ...options.elements
5673
5696
  }
5674
- }), rootContext = options.rootContext || internalRootContext, computedElements = rootContext.elements, [_domReference, setDomReference] = React.useState(null), [positionReference, _setPositionReference] = React.useState(null), domReference = computedElements?.reference || _domReference, domReferenceRef = React.useRef(null), tree = useFloatingTree();
5697
+ }), rootContext = options.rootContext || internalRootContext, computedElements = rootContext.elements, [_domReference, setDomReference] = React.useState(null), [positionReference, _setPositionReference] = React.useState(null), domReference = computedElements?.domReference || _domReference, domReferenceRef = React.useRef(null), tree = useFloatingTree();
5675
5698
  index(() => {
5676
5699
  domReference && (domReferenceRef.current = domReference);
5677
5700
  }, [domReference]);
@@ -5806,7 +5829,8 @@ function mergeProps(userProps, propsList, elementKey) {
5806
5829
  }
5807
5830
  return {
5808
5831
  ...elementKey === "floating" && {
5809
- tabIndex: -1
5832
+ tabIndex: -1,
5833
+ [FOCUSABLE_ATTRIBUTE]: ""
5810
5834
  },
5811
5835
  ...domUserProps,
5812
5836
  ...propsList.map((value) => {
@@ -6048,8 +6072,8 @@ function createPortalNode(props) {
6048
6072
  const node = document.createElement("div");
6049
6073
  return node.setAttribute("data-portal", "true"), typeof props.className == "string" && node.classList.add(...props.className.split(" ").filter(Boolean)), typeof props.style == "object" && Object.assign(node.style, props.style), typeof props.id == "string" && node.setAttribute("id", props.id), node;
6050
6074
  }
6051
- const defaultProps$1n = {}, Portal = forwardRef((props, ref) => {
6052
- const { children, target, ...others } = useProps("Portal", defaultProps$1n, props), [mounted, setMounted] = useState(!1), nodeRef = useRef(null);
6075
+ const defaultProps$1D = {}, Portal = forwardRef((props, ref) => {
6076
+ const { children, target, ...others } = useProps("Portal", defaultProps$1D, props), [mounted, setMounted] = useState(!1), nodeRef = useRef(null);
6053
6077
  return useIsomorphicEffect(() => (setMounted(!0), nodeRef.current = target ? typeof target == "string" ? document.querySelector(target) : target : createPortalNode(others), assignRef(ref, nodeRef.current), !target && nodeRef.current && document.body.appendChild(nodeRef.current), () => {
6054
6078
  !target && nodeRef.current && document.body.removeChild(nodeRef.current);
6055
6079
  }), [target]), !mounted || !nodeRef.current ? null : createPortal(/* @__PURE__ */ jsx(Fragment$1, { children }), nodeRef.current);
@@ -6292,9 +6316,9 @@ function Transition({
6292
6316
  ) });
6293
6317
  }
6294
6318
  Transition.displayName = "@mantine/core/Transition";
6295
- var __default__$C = { dropdown: "m_38a85659", arrow: "m_a31dc6c1" };
6296
- const classes$C = __default__$C, defaultProps$1m = {}, PopoverDropdown = factory((_props, ref) => {
6297
- const props = useProps("PopoverDropdown", defaultProps$1m, _props), {
6319
+ var __default__$F = { dropdown: "m_38a85659", arrow: "m_a31dc6c1" };
6320
+ const classes$F = __default__$F, defaultProps$1C = {}, PopoverDropdown = factory((_props, ref) => {
6321
+ const props = useProps("PopoverDropdown", defaultProps$1C, _props), {
6298
6322
  className,
6299
6323
  style,
6300
6324
  vars,
@@ -6348,6 +6372,8 @@ const classes$C = __default__$C, defaultProps$1m = {}, PopoverDropdown = factory
6348
6372
  left: ctx.x ?? 0,
6349
6373
  width: ctx.width === "target" ? void 0 : rem(ctx.width)
6350
6374
  },
6375
+ ctx.resolvedStyles.dropdown,
6376
+ styles?.dropdown,
6351
6377
  style
6352
6378
  ]
6353
6379
  }),
@@ -6378,22 +6404,22 @@ const classes$C = __default__$C, defaultProps$1m = {}, PopoverDropdown = factory
6378
6404
  }
6379
6405
  ) });
6380
6406
  });
6381
- PopoverDropdown.classes = classes$C;
6407
+ PopoverDropdown.classes = classes$F;
6382
6408
  PopoverDropdown.displayName = "@mantine/core/PopoverDropdown";
6383
- const defaultProps$1l = {
6409
+ const defaultProps$1B = {
6384
6410
  refProp: "ref",
6385
6411
  popupType: "dialog"
6386
6412
  }, PopoverTarget = factory((props, ref) => {
6387
6413
  const { children, refProp, popupType, ...others } = useProps(
6388
6414
  "PopoverTarget",
6389
- defaultProps$1l,
6415
+ defaultProps$1B,
6390
6416
  props
6391
6417
  );
6392
6418
  if (!isElement$1(children))
6393
6419
  throw new Error(
6394
6420
  "Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
6395
6421
  );
6396
- const forwardedProps = others, ctx = usePopoverContext(), targetRef = useMergedRef(ctx.reference, children.ref, ref), accessibleProps = ctx.withRoles ? {
6422
+ const forwardedProps = others, ctx = usePopoverContext(), targetRef = useMergedRef(ctx.reference, getRefProp(children), ref), accessibleProps = ctx.withRoles ? {
6397
6423
  "aria-haspopup": popupType,
6398
6424
  "aria-expanded": ctx.opened,
6399
6425
  "aria-controls": ctx.getDropdownId(),
@@ -6472,7 +6498,7 @@ function usePopover(options) {
6472
6498
  defaultValue: options.defaultOpened,
6473
6499
  finalValue: !1,
6474
6500
  onChange: options.onChange
6475
- }), onClose = () => {
6501
+ }), previouslyOpened = useRef(_opened), onClose = () => {
6476
6502
  _opened && setOpened(!1);
6477
6503
  }, onToggle = () => setOpened(!_opened), floating = useFloating({
6478
6504
  strategy: options.strategy,
@@ -6487,7 +6513,7 @@ function usePopover(options) {
6487
6513
  }), useDidUpdate(() => {
6488
6514
  options.onPositionChange?.(floating.placement);
6489
6515
  }, [floating.placement]), useDidUpdate(() => {
6490
- _opened ? options.onOpen?.() : options.onClose?.();
6516
+ _opened !== previouslyOpened.current && (_opened ? options.onOpen?.() : options.onClose?.()), previouslyOpened.current = _opened;
6491
6517
  }, [_opened, options.onClose, options.onOpen]), {
6492
6518
  floating,
6493
6519
  controlled: typeof options.opened == "boolean",
@@ -6496,7 +6522,7 @@ function usePopover(options) {
6496
6522
  onToggle
6497
6523
  };
6498
6524
  }
6499
- const defaultProps$1k = {
6525
+ const defaultProps$1A = {
6500
6526
  position: "bottom",
6501
6527
  offset: 8,
6502
6528
  positionDependencies: [],
@@ -6516,14 +6542,14 @@ const defaultProps$1k = {
6516
6542
  zIndex: getDefaultZIndex("popover"),
6517
6543
  __staticSelector: "Popover",
6518
6544
  width: "max-content"
6519
- }, varsResolver$E = (_, { radius, shadow }) => ({
6545
+ }, varsResolver$H = (_, { radius, shadow }) => ({
6520
6546
  dropdown: {
6521
6547
  "--popover-radius": radius === void 0 ? void 0 : getRadius(radius),
6522
6548
  "--popover-shadow": getShadow(shadow)
6523
6549
  }
6524
6550
  });
6525
6551
  function Popover(_props) {
6526
- const props = useProps("Popover", defaultProps$1k, _props), {
6552
+ const props = useProps("Popover", defaultProps$1A, _props), {
6527
6553
  children,
6528
6554
  position,
6529
6555
  offset: offset2,
@@ -6567,14 +6593,14 @@ function Popover(_props) {
6567
6593
  } = props, getStyles2 = useStyles({
6568
6594
  name: __staticSelector,
6569
6595
  props,
6570
- classes: classes$C,
6596
+ classes: classes$F,
6571
6597
  classNames,
6572
6598
  styles,
6573
6599
  unstyled,
6574
6600
  rootSelector: "dropdown",
6575
6601
  vars,
6576
- varsResolver: varsResolver$E
6577
- }), arrowRef = useRef(null), [targetNode, setTargetNode] = useState(null), [dropdownNode, setDropdownNode] = useState(null), { dir } = useDirection(), uid = useId$1(id), popover = usePopover({
6602
+ varsResolver: varsResolver$H
6603
+ }), { resolvedStyles } = useResolvedStylesApi({ classNames, styles, props }), arrowRef = useRef(null), [targetNode, setTargetNode] = useState(null), [dropdownNode, setDropdownNode] = useState(null), { dir } = useDirection(), uid = useId$1(id), popover = usePopover({
6578
6604
  middlewares,
6579
6605
  width,
6580
6606
  position: getFloatingPosition(dir, position),
@@ -6648,6 +6674,7 @@ function Popover(_props) {
6648
6674
  variant,
6649
6675
  keepMounted,
6650
6676
  getStyles: getStyles2,
6677
+ resolvedStyles,
6651
6678
  floatingStrategy
6652
6679
  },
6653
6680
  children
@@ -6658,35 +6685,35 @@ Popover.Target = PopoverTarget;
6658
6685
  Popover.Dropdown = PopoverDropdown;
6659
6686
  Popover.displayName = "@mantine/core/Popover";
6660
6687
  Popover.extend = (input) => input;
6661
- var __default__$B = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
6662
- const classes$B = __default__$B, Bars = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(classes$B.barsLoader, className), ...others, ref, children: [
6663
- /* @__PURE__ */ jsx("span", { className: classes$B.bar }),
6664
- /* @__PURE__ */ jsx("span", { className: classes$B.bar }),
6665
- /* @__PURE__ */ jsx("span", { className: classes$B.bar })
6688
+ var __default__$E = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
6689
+ const classes$E = __default__$E, Bars = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(classes$E.barsLoader, className), ...others, ref, children: [
6690
+ /* @__PURE__ */ jsx("span", { className: classes$E.bar }),
6691
+ /* @__PURE__ */ jsx("span", { className: classes$E.bar }),
6692
+ /* @__PURE__ */ jsx("span", { className: classes$E.bar })
6666
6693
  ] }));
6667
6694
  Bars.displayName = "@mantine/core/Bars";
6668
- const Dots = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(classes$B.dotsLoader, className), ...others, ref, children: [
6669
- /* @__PURE__ */ jsx("span", { className: classes$B.dot }),
6670
- /* @__PURE__ */ jsx("span", { className: classes$B.dot }),
6671
- /* @__PURE__ */ jsx("span", { className: classes$B.dot })
6695
+ const Dots = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(classes$E.dotsLoader, className), ...others, ref, children: [
6696
+ /* @__PURE__ */ jsx("span", { className: classes$E.dot }),
6697
+ /* @__PURE__ */ jsx("span", { className: classes$E.dot }),
6698
+ /* @__PURE__ */ jsx("span", { className: classes$E.dot })
6672
6699
  ] }));
6673
6700
  Dots.displayName = "@mantine/core/Dots";
6674
- const Oval = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsx(Box, { component: "span", className: clsx(classes$B.ovalLoader, className), ...others, ref }));
6701
+ const Oval = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsx(Box, { component: "span", className: clsx(classes$E.ovalLoader, className), ...others, ref }));
6675
6702
  Oval.displayName = "@mantine/core/Oval";
6676
6703
  const defaultLoaders = {
6677
6704
  bars: Bars,
6678
6705
  oval: Oval,
6679
6706
  dots: Dots
6680
- }, defaultProps$1j = {
6707
+ }, defaultProps$1z = {
6681
6708
  loaders: defaultLoaders,
6682
6709
  type: "oval"
6683
- }, varsResolver$D = (theme, { size: size2, color }) => ({
6710
+ }, varsResolver$G = (theme, { size: size2, color }) => ({
6684
6711
  root: {
6685
6712
  "--loader-size": getSize(size2, "loader-size"),
6686
6713
  "--loader-color": color ? getThemeColor(color, theme) : void 0
6687
6714
  }
6688
6715
  }), Loader = factory((_props, ref) => {
6689
- const props = useProps("Loader", defaultProps$1j, _props), {
6716
+ const props = useProps("Loader", defaultProps$1z, _props), {
6690
6717
  size: size2,
6691
6718
  color,
6692
6719
  type,
@@ -6703,14 +6730,14 @@ const defaultLoaders = {
6703
6730
  } = props, getStyles2 = useStyles({
6704
6731
  name: "Loader",
6705
6732
  props,
6706
- classes: classes$B,
6733
+ classes: classes$E,
6707
6734
  className,
6708
6735
  style,
6709
6736
  classNames,
6710
6737
  styles,
6711
6738
  unstyled,
6712
6739
  vars,
6713
- varsResolver: varsResolver$D
6740
+ varsResolver: varsResolver$G
6714
6741
  });
6715
6742
  return children ? /* @__PURE__ */ jsx(Box, { ...getStyles2("root"), ref, ...others, children }) : /* @__PURE__ */ jsx(
6716
6743
  Box,
@@ -6725,15 +6752,15 @@ const defaultLoaders = {
6725
6752
  );
6726
6753
  });
6727
6754
  Loader.defaultLoaders = defaultLoaders;
6728
- Loader.classes = classes$B;
6755
+ Loader.classes = classes$E;
6729
6756
  Loader.displayName = "@mantine/core/Loader";
6730
- var __default__$A = { root: "m_8d3f4000", icon: "m_8d3afb97", loader: "m_302b9fb1", group: "m_1a0f1b21" };
6731
- const classes$A = __default__$A, defaultProps$1i = {
6757
+ var __default__$D = { root: "m_8d3f4000", icon: "m_8d3afb97", loader: "m_302b9fb1", group: "m_1a0f1b21" };
6758
+ const classes$D = __default__$D, defaultProps$1y = {
6732
6759
  orientation: "horizontal"
6733
- }, varsResolver$C = (_, { borderWidth }) => ({
6760
+ }, varsResolver$F = (_, { borderWidth }) => ({
6734
6761
  group: { "--ai-border-width": rem(borderWidth) }
6735
6762
  }), ActionIconGroup = factory((_props, ref) => {
6736
- const props = useProps("ActionIconGroup", defaultProps$1i, _props), {
6763
+ const props = useProps("ActionIconGroup", defaultProps$1y, _props), {
6737
6764
  className,
6738
6765
  style,
6739
6766
  classNames,
@@ -6745,17 +6772,17 @@ const classes$A = __default__$A, defaultProps$1i = {
6745
6772
  variant,
6746
6773
  mod,
6747
6774
  ...others
6748
- } = useProps("ActionIconGroup", defaultProps$1i, _props), getStyles2 = useStyles({
6775
+ } = useProps("ActionIconGroup", defaultProps$1y, _props), getStyles2 = useStyles({
6749
6776
  name: "ActionIconGroup",
6750
6777
  props,
6751
- classes: classes$A,
6778
+ classes: classes$D,
6752
6779
  className,
6753
6780
  style,
6754
6781
  classNames,
6755
6782
  styles,
6756
6783
  unstyled,
6757
6784
  vars,
6758
- varsResolver: varsResolver$C,
6785
+ varsResolver: varsResolver$F,
6759
6786
  rootSelector: "group"
6760
6787
  });
6761
6788
  return /* @__PURE__ */ jsx(
@@ -6770,9 +6797,9 @@ const classes$A = __default__$A, defaultProps$1i = {
6770
6797
  }
6771
6798
  );
6772
6799
  });
6773
- ActionIconGroup.classes = classes$A;
6800
+ ActionIconGroup.classes = classes$D;
6774
6801
  ActionIconGroup.displayName = "@mantine/core/ActionIconGroup";
6775
- const defaultProps$1h = {}, varsResolver$B = (theme, { size: size2, radius, variant, gradient, color, autoContrast }) => {
6802
+ const defaultProps$1x = {}, varsResolver$E = (theme, { size: size2, radius, variant, gradient, color, autoContrast }) => {
6776
6803
  const colors = theme.variantColorResolver({
6777
6804
  color: color || theme.primaryColor,
6778
6805
  theme,
@@ -6792,7 +6819,7 @@ const defaultProps$1h = {}, varsResolver$B = (theme, { size: size2, radius, vari
6792
6819
  }
6793
6820
  };
6794
6821
  }, ActionIcon = polymorphicFactory((_props, ref) => {
6795
- const props = useProps("ActionIcon", defaultProps$1h, _props), {
6822
+ const props = useProps("ActionIcon", defaultProps$1x, _props), {
6796
6823
  className,
6797
6824
  unstyled,
6798
6825
  variant,
@@ -6818,12 +6845,12 @@ const defaultProps$1h = {}, varsResolver$B = (theme, { size: size2, radius, vari
6818
6845
  props,
6819
6846
  className,
6820
6847
  style,
6821
- classes: classes$A,
6848
+ classes: classes$D,
6822
6849
  classNames,
6823
6850
  styles,
6824
6851
  unstyled,
6825
6852
  vars,
6826
- varsResolver: varsResolver$B
6853
+ varsResolver: varsResolver$E
6827
6854
  });
6828
6855
  return /* @__PURE__ */ jsxs(
6829
6856
  UnstyledButton,
@@ -6843,7 +6870,7 @@ const defaultProps$1h = {}, varsResolver$B = (theme, { size: size2, radius, vari
6843
6870
  }
6844
6871
  );
6845
6872
  });
6846
- ActionIcon.classes = classes$A;
6873
+ ActionIcon.classes = classes$D;
6847
6874
  ActionIcon.displayName = "@mantine/core/ActionIcon";
6848
6875
  ActionIcon.Group = ActionIconGroup;
6849
6876
  const CloseIcon = forwardRef(
@@ -6869,17 +6896,17 @@ const CloseIcon = forwardRef(
6869
6896
  )
6870
6897
  );
6871
6898
  CloseIcon.displayName = "@mantine/core/CloseIcon";
6872
- var __default__$z = { root: "m_86a44da5", "root--subtle": "m_220c80f2" };
6873
- const classes$z = __default__$z, defaultProps$1g = {
6899
+ var __default__$C = { root: "m_86a44da5", "root--subtle": "m_220c80f2" };
6900
+ const classes$C = __default__$C, defaultProps$1w = {
6874
6901
  variant: "subtle"
6875
- }, varsResolver$A = (_, { size: size2, radius, iconSize }) => ({
6902
+ }, varsResolver$D = (_, { size: size2, radius, iconSize }) => ({
6876
6903
  root: {
6877
6904
  "--cb-size": getSize(size2, "cb-size"),
6878
6905
  "--cb-radius": radius === void 0 ? void 0 : getRadius(radius),
6879
6906
  "--cb-icon-size": rem(iconSize)
6880
6907
  }
6881
6908
  }), CloseButton = polymorphicFactory((_props, ref) => {
6882
- const props = useProps("CloseButton", defaultProps$1g, _props), {
6909
+ const props = useProps("CloseButton", defaultProps$1w, _props), {
6883
6910
  iconSize,
6884
6911
  children,
6885
6912
  vars,
@@ -6900,12 +6927,12 @@ const classes$z = __default__$z, defaultProps$1g = {
6900
6927
  props,
6901
6928
  className,
6902
6929
  style,
6903
- classes: classes$z,
6930
+ classes: classes$C,
6904
6931
  classNames,
6905
6932
  styles,
6906
6933
  unstyled,
6907
6934
  vars,
6908
- varsResolver: varsResolver$A
6935
+ varsResolver: varsResolver$D
6909
6936
  });
6910
6937
  return /* @__PURE__ */ jsxs(
6911
6938
  UnstyledButton,
@@ -6924,19 +6951,19 @@ const classes$z = __default__$z, defaultProps$1g = {
6924
6951
  }
6925
6952
  );
6926
6953
  });
6927
- CloseButton.classes = classes$z;
6954
+ CloseButton.classes = classes$C;
6928
6955
  CloseButton.displayName = "@mantine/core/CloseButton";
6929
6956
  function filterFalsyChildren(children) {
6930
6957
  return Children.toArray(children).filter(Boolean);
6931
6958
  }
6932
- var __default__$y = { root: "m_4081bf90" };
6933
- const classes$y = __default__$y, defaultProps$1f = {
6959
+ var __default__$B = { root: "m_4081bf90" };
6960
+ const classes$B = __default__$B, defaultProps$1v = {
6934
6961
  preventGrowOverflow: !0,
6935
6962
  gap: "md",
6936
6963
  align: "center",
6937
6964
  justify: "flex-start",
6938
6965
  wrap: "wrap"
6939
- }, varsResolver$z = (_, { grow, preventGrowOverflow, gap, align, justify, wrap }, { childWidth }) => ({
6966
+ }, varsResolver$C = (_, { grow, preventGrowOverflow, gap, align, justify, wrap }, { childWidth }) => ({
6940
6967
  root: {
6941
6968
  "--group-child-width": grow && preventGrowOverflow ? childWidth : void 0,
6942
6969
  "--group-gap": getSpacing(gap),
@@ -6945,7 +6972,7 @@ const classes$y = __default__$y, defaultProps$1f = {
6945
6972
  "--group-wrap": wrap
6946
6973
  }
6947
6974
  }), Group = factory((_props, ref) => {
6948
- const props = useProps("Group", defaultProps$1f, _props), {
6975
+ const props = useProps("Group", defaultProps$1v, _props), {
6949
6976
  classNames,
6950
6977
  className,
6951
6978
  style,
@@ -6969,12 +6996,12 @@ const classes$y = __default__$y, defaultProps$1f = {
6969
6996
  stylesCtx,
6970
6997
  className,
6971
6998
  style,
6972
- classes: classes$y,
6999
+ classes: classes$B,
6973
7000
  classNames,
6974
7001
  styles,
6975
7002
  unstyled,
6976
7003
  vars,
6977
- varsResolver: varsResolver$z
7004
+ varsResolver: varsResolver$C
6978
7005
  });
6979
7006
  return /* @__PURE__ */ jsx(
6980
7007
  Box,
@@ -6989,12 +7016,12 @@ const classes$y = __default__$y, defaultProps$1f = {
6989
7016
  }
6990
7017
  );
6991
7018
  });
6992
- Group.classes = classes$y;
7019
+ Group.classes = classes$B;
6993
7020
  Group.displayName = "@mantine/core/Group";
6994
- var __default__$x = { root: "m_9814e45f" };
6995
- const classes$x = __default__$x, defaultProps$1e = {
7021
+ var __default__$A = { root: "m_9814e45f" };
7022
+ const classes$A = __default__$A, defaultProps$1u = {
6996
7023
  zIndex: getDefaultZIndex("modal")
6997
- }, varsResolver$y = (_, { gradient, color, backgroundOpacity, blur, radius, zIndex }) => ({
7024
+ }, varsResolver$B = (_, { gradient, color, backgroundOpacity, blur, radius, zIndex }) => ({
6998
7025
  root: {
6999
7026
  "--overlay-bg": gradient || (color !== void 0 || backgroundOpacity !== void 0) && rgba(color || "#000", backgroundOpacity ?? 0.6) || void 0,
7000
7027
  "--overlay-filter": blur ? `blur(${rem(blur)})` : void 0,
@@ -7002,7 +7029,7 @@ const classes$x = __default__$x, defaultProps$1e = {
7002
7029
  "--overlay-z-index": zIndex?.toString()
7003
7030
  }
7004
7031
  }), Overlay = polymorphicFactory((_props, ref) => {
7005
- const props = useProps("Overlay", defaultProps$1e, _props), {
7032
+ const props = useProps("Overlay", defaultProps$1u, _props), {
7006
7033
  classNames,
7007
7034
  className,
7008
7035
  style,
@@ -7023,18 +7050,18 @@ const classes$x = __default__$x, defaultProps$1e = {
7023
7050
  } = props, getStyles2 = useStyles({
7024
7051
  name: "Overlay",
7025
7052
  props,
7026
- classes: classes$x,
7053
+ classes: classes$A,
7027
7054
  className,
7028
7055
  style,
7029
7056
  classNames,
7030
7057
  styles,
7031
7058
  unstyled,
7032
7059
  vars,
7033
- varsResolver: varsResolver$y
7060
+ varsResolver: varsResolver$B
7034
7061
  });
7035
7062
  return /* @__PURE__ */ jsx(Box, { ref, ...getStyles2("root"), mod: [{ center, fixed }, mod], ...others, children });
7036
7063
  });
7037
- Overlay.classes = classes$x;
7064
+ Overlay.classes = classes$A;
7038
7065
  Overlay.displayName = "@mantine/core/Overlay";
7039
7066
  const [ModalBaseProvider, useModalBaseContext] = createSafeContext(
7040
7067
  "ModalBase component was not found in tree"
@@ -7142,8 +7169,8 @@ function useModalBodyId() {
7142
7169
  const ctx = useModalBaseContext();
7143
7170
  return useEffect(() => (ctx.setBodyMounted(!0), () => ctx.setBodyMounted(!1)), []), ctx.getBodyId();
7144
7171
  }
7145
- var __default__$w = { title: "m_615af6c9", header: "m_b5489c3c", inner: "m_60c222c7", content: "m_fd1ab0aa", close: "m_606cb269", body: "m_5df29311" };
7146
- const classes$w = __default__$w, ModalBaseBody = forwardRef(
7172
+ var __default__$z = { title: "m_615af6c9", header: "m_b5489c3c", inner: "m_60c222c7", content: "m_fd1ab0aa", close: "m_606cb269", body: "m_5df29311" };
7173
+ const classes$z = __default__$z, ModalBaseBody = forwardRef(
7147
7174
  ({ className, ...others }, ref) => {
7148
7175
  const bodyId = useModalBodyId(), ctx = useModalBaseContext();
7149
7176
  return /* @__PURE__ */ jsx(
@@ -7152,7 +7179,7 @@ const classes$w = __default__$w, ModalBaseBody = forwardRef(
7152
7179
  ref,
7153
7180
  ...others,
7154
7181
  id: bodyId,
7155
- className: clsx({ [classes$w.body]: !ctx.unstyled }, className)
7182
+ className: clsx({ [classes$z.body]: !ctx.unstyled }, className)
7156
7183
  }
7157
7184
  );
7158
7185
  }
@@ -7169,7 +7196,7 @@ const ModalBaseCloseButton = forwardRef(
7169
7196
  onClick: (event) => {
7170
7197
  ctx.onClose(), onClick?.(event);
7171
7198
  },
7172
- className: clsx({ [classes$w.close]: !ctx.unstyled }, className),
7199
+ className: clsx({ [classes$z.close]: !ctx.unstyled }, className),
7173
7200
  unstyled: ctx.unstyled
7174
7201
  }
7175
7202
  );
@@ -7190,7 +7217,7 @@ const ModalBaseContent = forwardRef(
7190
7217
  "div",
7191
7218
  {
7192
7219
  ...innerProps,
7193
- className: clsx({ [classes$w.inner]: !ctx.unstyled }, innerProps.className),
7220
+ className: clsx({ [classes$z.inner]: !ctx.unstyled }, innerProps.className),
7194
7221
  children: /* @__PURE__ */ jsx(FocusTrap, { active: ctx.opened && ctx.trapFocus, innerRef: ref, children: /* @__PURE__ */ jsx(
7195
7222
  Paper,
7196
7223
  {
@@ -7202,7 +7229,7 @@ const ModalBaseContent = forwardRef(
7202
7229
  "aria-describedby": ctx.bodyMounted ? ctx.getBodyId() : void 0,
7203
7230
  "aria-labelledby": ctx.titleMounted ? ctx.getTitleId() : void 0,
7204
7231
  style: [style, transitionStyles],
7205
- className: clsx({ [classes$w.content]: !ctx.unstyled }, className),
7232
+ className: clsx({ [classes$z.content]: !ctx.unstyled }, className),
7206
7233
  unstyled: ctx.unstyled,
7207
7234
  children: others.children
7208
7235
  }
@@ -7222,7 +7249,7 @@ const ModalBaseHeader = forwardRef(
7222
7249
  {
7223
7250
  component: "header",
7224
7251
  ref,
7225
- className: clsx({ [classes$w.header]: !ctx.unstyled }, className),
7252
+ className: clsx({ [classes$z.header]: !ctx.unstyled }, className),
7226
7253
  ...others
7227
7254
  }
7228
7255
  );
@@ -7239,22 +7266,30 @@ function useModalTransition(transitionOverride) {
7239
7266
  return { ...DEFAULT_TRANSITION, ...ctx.transitionProps, ...transitionOverride };
7240
7267
  }
7241
7268
  const ModalBaseOverlay = forwardRef(
7242
- ({ onClick, transitionProps, style, ...others }, ref) => {
7269
+ ({ onClick, transitionProps, style, visible: visible2, ...others }, ref) => {
7243
7270
  const ctx = useModalBaseContext(), transition = useModalTransition(transitionProps);
7244
- return /* @__PURE__ */ jsx(Transition, { mounted: ctx.opened, ...transition, transition: "fade", children: (transitionStyles) => /* @__PURE__ */ jsx(
7245
- Overlay,
7271
+ return /* @__PURE__ */ jsx(
7272
+ Transition,
7246
7273
  {
7247
- ref,
7248
- fixed: !0,
7249
- style: [style, transitionStyles],
7250
- zIndex: ctx.zIndex,
7251
- unstyled: ctx.unstyled,
7252
- onClick: (event) => {
7253
- onClick?.(event), ctx.closeOnClickOutside && ctx.onClose();
7254
- },
7255
- ...others
7274
+ mounted: visible2 !== void 0 ? visible2 : ctx.opened,
7275
+ ...transition,
7276
+ transition: "fade",
7277
+ children: (transitionStyles) => /* @__PURE__ */ jsx(
7278
+ Overlay,
7279
+ {
7280
+ ref,
7281
+ fixed: !0,
7282
+ style: [style, transitionStyles],
7283
+ zIndex: ctx.zIndex,
7284
+ unstyled: ctx.unstyled,
7285
+ onClick: (event) => {
7286
+ onClick?.(event), ctx.closeOnClickOutside && ctx.onClose();
7287
+ },
7288
+ ...others
7289
+ }
7290
+ )
7256
7291
  }
7257
- ) });
7292
+ );
7258
7293
  }
7259
7294
  );
7260
7295
  ModalBaseOverlay.displayName = "@mantine/core/ModalBaseOverlay";
@@ -7270,7 +7305,7 @@ const ModalBaseTitle = forwardRef(
7270
7305
  {
7271
7306
  component: "h2",
7272
7307
  ref,
7273
- className: clsx({ [classes$w.title]: !ctx.unstyled }, className),
7308
+ className: clsx({ [classes$z.title]: !ctx.unstyled }, className),
7274
7309
  ...others,
7275
7310
  id
7276
7311
  }
@@ -7289,13 +7324,13 @@ const [InputWrapperProvider, useInputWrapperContext] = createOptionalContext({
7289
7324
  inputId: void 0,
7290
7325
  labelId: void 0
7291
7326
  });
7292
- var __default__$v = { wrapper: "m_6c018570", input: "m_8fb7ebe7", section: "m_82577fc2", placeholder: "m_88bacfd0", root: "m_46b77525", label: "m_8fdc1311", required: "m_78a94662", error: "m_8f816625", description: "m_fe47ce59" };
7293
- const classes$v = __default__$v, defaultProps$1d = {}, varsResolver$x = (_, { size: size2 }) => ({
7327
+ var __default__$y = { wrapper: "m_6c018570", input: "m_8fb7ebe7", section: "m_82577fc2", placeholder: "m_88bacfd0", root: "m_46b77525", label: "m_8fdc1311", required: "m_78a94662", error: "m_8f816625", description: "m_fe47ce59" };
7328
+ const classes$y = __default__$y, defaultProps$1t = {}, varsResolver$A = (_, { size: size2 }) => ({
7294
7329
  description: {
7295
7330
  "--input-description-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
7296
7331
  }
7297
7332
  }), InputDescription = factory((_props, ref) => {
7298
- const props = useProps("InputDescription", defaultProps$1d, _props), {
7333
+ const props = useProps("InputDescription", defaultProps$1t, _props), {
7299
7334
  classNames,
7300
7335
  className,
7301
7336
  style,
@@ -7307,10 +7342,10 @@ const classes$v = __default__$v, defaultProps$1d = {}, varsResolver$x = (_, { si
7307
7342
  __inheritStyles = !0,
7308
7343
  variant,
7309
7344
  ...others
7310
- } = useProps("InputDescription", defaultProps$1d, props), ctx = useInputWrapperContext(), _getStyles = useStyles({
7345
+ } = useProps("InputDescription", defaultProps$1t, props), ctx = useInputWrapperContext(), _getStyles = useStyles({
7311
7346
  name: ["InputWrapper", __staticSelector],
7312
7347
  props,
7313
- classes: classes$v,
7348
+ classes: classes$y,
7314
7349
  className,
7315
7350
  style,
7316
7351
  classNames,
@@ -7318,7 +7353,7 @@ const classes$v = __default__$v, defaultProps$1d = {}, varsResolver$x = (_, { si
7318
7353
  unstyled,
7319
7354
  rootSelector: "description",
7320
7355
  vars,
7321
- varsResolver: varsResolver$x
7356
+ varsResolver: varsResolver$A
7322
7357
  }), getStyles2 = __inheritStyles && ctx?.getStyles || _getStyles;
7323
7358
  return /* @__PURE__ */ jsx(
7324
7359
  Box,
@@ -7332,14 +7367,14 @@ const classes$v = __default__$v, defaultProps$1d = {}, varsResolver$x = (_, { si
7332
7367
  }
7333
7368
  );
7334
7369
  });
7335
- InputDescription.classes = classes$v;
7370
+ InputDescription.classes = classes$y;
7336
7371
  InputDescription.displayName = "@mantine/core/InputDescription";
7337
- const defaultProps$1c = {}, varsResolver$w = (_, { size: size2 }) => ({
7372
+ const defaultProps$1s = {}, varsResolver$z = (_, { size: size2 }) => ({
7338
7373
  error: {
7339
7374
  "--input-error-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
7340
7375
  }
7341
7376
  }), InputError = factory((_props, ref) => {
7342
- const props = useProps("InputError", defaultProps$1c, _props), {
7377
+ const props = useProps("InputError", defaultProps$1s, _props), {
7343
7378
  classNames,
7344
7379
  className,
7345
7380
  style,
@@ -7354,7 +7389,7 @@ const defaultProps$1c = {}, varsResolver$w = (_, { size: size2 }) => ({
7354
7389
  } = props, _getStyles = useStyles({
7355
7390
  name: ["InputWrapper", __staticSelector],
7356
7391
  props,
7357
- classes: classes$v,
7392
+ classes: classes$y,
7358
7393
  className,
7359
7394
  style,
7360
7395
  classNames,
@@ -7362,7 +7397,7 @@ const defaultProps$1c = {}, varsResolver$w = (_, { size: size2 }) => ({
7362
7397
  unstyled,
7363
7398
  rootSelector: "error",
7364
7399
  vars,
7365
- varsResolver: varsResolver$w
7400
+ varsResolver: varsResolver$z
7366
7401
  }), ctx = useInputWrapperContext(), getStyles2 = __inheritStyles && ctx?.getStyles || _getStyles;
7367
7402
  return /* @__PURE__ */ jsx(
7368
7403
  Box,
@@ -7376,17 +7411,17 @@ const defaultProps$1c = {}, varsResolver$w = (_, { size: size2 }) => ({
7376
7411
  }
7377
7412
  );
7378
7413
  });
7379
- InputError.classes = classes$v;
7414
+ InputError.classes = classes$y;
7380
7415
  InputError.displayName = "@mantine/core/InputError";
7381
- const defaultProps$1b = {
7416
+ const defaultProps$1r = {
7382
7417
  labelElement: "label"
7383
- }, varsResolver$v = (_, { size: size2 }) => ({
7418
+ }, varsResolver$y = (_, { size: size2 }) => ({
7384
7419
  label: {
7385
7420
  "--input-label-size": getFontSize(size2),
7386
7421
  "--input-asterisk-color": void 0
7387
7422
  }
7388
7423
  }), InputLabel = factory((_props, ref) => {
7389
- const props = useProps("InputLabel", defaultProps$1b, _props), {
7424
+ const props = useProps("InputLabel", defaultProps$1r, _props), {
7390
7425
  classNames,
7391
7426
  className,
7392
7427
  style,
@@ -7403,10 +7438,10 @@ const defaultProps$1b = {
7403
7438
  variant,
7404
7439
  mod,
7405
7440
  ...others
7406
- } = useProps("InputLabel", defaultProps$1b, props), _getStyles = useStyles({
7441
+ } = useProps("InputLabel", defaultProps$1r, props), _getStyles = useStyles({
7407
7442
  name: ["InputWrapper", __staticSelector],
7408
7443
  props,
7409
- classes: classes$v,
7444
+ classes: classes$y,
7410
7445
  className,
7411
7446
  style,
7412
7447
  classNames,
@@ -7414,7 +7449,7 @@ const defaultProps$1b = {
7414
7449
  unstyled,
7415
7450
  rootSelector: "label",
7416
7451
  vars,
7417
- varsResolver: varsResolver$v
7452
+ varsResolver: varsResolver$y
7418
7453
  }), ctx = useInputWrapperContext(), getStyles2 = ctx?.getStyles || _getStyles;
7419
7454
  return /* @__PURE__ */ jsxs(
7420
7455
  Box,
@@ -7437,10 +7472,10 @@ const defaultProps$1b = {
7437
7472
  }
7438
7473
  );
7439
7474
  });
7440
- InputLabel.classes = classes$v;
7475
+ InputLabel.classes = classes$y;
7441
7476
  InputLabel.displayName = "@mantine/core/InputLabel";
7442
- const defaultProps$1a = {}, InputPlaceholder = factory((_props, ref) => {
7443
- const props = useProps("InputPlaceholder", defaultProps$1a, _props), {
7477
+ const defaultProps$1q = {}, InputPlaceholder = factory((_props, ref) => {
7478
+ const props = useProps("InputPlaceholder", defaultProps$1q, _props), {
7444
7479
  classNames,
7445
7480
  className,
7446
7481
  style,
@@ -7452,10 +7487,10 @@ const defaultProps$1a = {}, InputPlaceholder = factory((_props, ref) => {
7452
7487
  error,
7453
7488
  mod,
7454
7489
  ...others
7455
- } = useProps("InputPlaceholder", defaultProps$1a, props), getStyles2 = useStyles({
7490
+ } = useProps("InputPlaceholder", defaultProps$1q, props), getStyles2 = useStyles({
7456
7491
  name: ["InputPlaceholder", __staticSelector],
7457
7492
  props,
7458
- classes: classes$v,
7493
+ classes: classes$y,
7459
7494
  className,
7460
7495
  style,
7461
7496
  classNames,
@@ -7475,17 +7510,17 @@ const defaultProps$1a = {}, InputPlaceholder = factory((_props, ref) => {
7475
7510
  }
7476
7511
  );
7477
7512
  });
7478
- InputPlaceholder.classes = classes$v;
7513
+ InputPlaceholder.classes = classes$y;
7479
7514
  InputPlaceholder.displayName = "@mantine/core/InputPlaceholder";
7480
7515
  function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
7481
7516
  const inputIndex = inputWrapperOrder.findIndex((part) => part === "input"), aboveInput = inputWrapperOrder.slice(0, inputIndex), belowInput = inputWrapperOrder.slice(inputIndex + 1), offsetTop = hasDescription && aboveInput.includes("description") || hasError && aboveInput.includes("error");
7482
7517
  return { offsetBottom: hasDescription && belowInput.includes("description") || hasError && belowInput.includes("error"), offsetTop };
7483
7518
  }
7484
- const defaultProps$19 = {
7519
+ const defaultProps$1p = {
7485
7520
  labelElement: "label",
7486
7521
  inputContainer: (children) => children,
7487
7522
  inputWrapperOrder: ["label", "description", "input", "error"]
7488
- }, varsResolver$u = (_, { size: size2 }) => ({
7523
+ }, varsResolver$x = (_, { size: size2 }) => ({
7489
7524
  label: {
7490
7525
  "--input-label-size": getFontSize(size2),
7491
7526
  "--input-asterisk-color": void 0
@@ -7497,7 +7532,7 @@ const defaultProps$19 = {
7497
7532
  "--input-description-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
7498
7533
  }
7499
7534
  }), InputWrapper = factory((_props, ref) => {
7500
- const props = useProps("InputWrapper", defaultProps$19, _props), {
7535
+ const props = useProps("InputWrapper", defaultProps$1p, _props), {
7501
7536
  classNames,
7502
7537
  className,
7503
7538
  style,
@@ -7526,14 +7561,14 @@ const defaultProps$19 = {
7526
7561
  } = props, getStyles2 = useStyles({
7527
7562
  name: ["InputWrapper", __staticSelector],
7528
7563
  props: __stylesApiProps || props,
7529
- classes: classes$v,
7564
+ classes: classes$y,
7530
7565
  className,
7531
7566
  style,
7532
7567
  classNames,
7533
7568
  styles,
7534
7569
  unstyled,
7535
7570
  vars,
7536
- varsResolver: varsResolver$u
7571
+ varsResolver: varsResolver$x
7537
7572
  }), sharedProps = {
7538
7573
  size: size2,
7539
7574
  variant,
@@ -7609,15 +7644,15 @@ const defaultProps$19 = {
7609
7644
  }
7610
7645
  );
7611
7646
  });
7612
- InputWrapper.classes = classes$v;
7647
+ InputWrapper.classes = classes$y;
7613
7648
  InputWrapper.displayName = "@mantine/core/InputWrapper";
7614
- const defaultProps$18 = {
7649
+ const defaultProps$1o = {
7615
7650
  variant: "default",
7616
7651
  leftSectionPointerEvents: "none",
7617
7652
  rightSectionPointerEvents: "none",
7618
7653
  withAria: !0,
7619
7654
  withErrorStyles: !0
7620
- }, varsResolver$t = (_, props, ctx) => ({
7655
+ }, varsResolver$w = (_, props, ctx) => ({
7621
7656
  wrapper: {
7622
7657
  "--input-margin-top": ctx.offsetTop ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
7623
7658
  "--input-margin-bottom": ctx.offsetBottom ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
@@ -7631,7 +7666,7 @@ const defaultProps$18 = {
7631
7666
  "--input-right-section-pointer-events": props.rightSectionPointerEvents
7632
7667
  }
7633
7668
  }), Input = polymorphicFactory((_props, ref) => {
7634
- const props = useProps("Input", defaultProps$18, _props), {
7669
+ const props = useProps("Input", defaultProps$1o, _props), {
7635
7670
  classNames,
7636
7671
  className,
7637
7672
  style,
@@ -7666,7 +7701,7 @@ const defaultProps$18 = {
7666
7701
  } = props, { styleProps, rest } = extractStyleProps(others), ctx = useInputWrapperContext(), stylesCtx = { offsetBottom: ctx?.offsetBottom, offsetTop: ctx?.offsetTop }, getStyles2 = useStyles({
7667
7702
  name: ["Input", __staticSelector],
7668
7703
  props: __stylesApiProps || props,
7669
- classes: classes$v,
7704
+ classes: classes$y,
7670
7705
  className,
7671
7706
  style,
7672
7707
  classNames,
@@ -7675,7 +7710,7 @@ const defaultProps$18 = {
7675
7710
  stylesCtx,
7676
7711
  rootSelector: "wrapper",
7677
7712
  vars,
7678
- varsResolver: varsResolver$t
7713
+ varsResolver: varsResolver$w
7679
7714
  }), ariaAttributes = withAria ? {
7680
7715
  required,
7681
7716
  disabled,
@@ -7745,7 +7780,7 @@ const defaultProps$18 = {
7745
7780
  }
7746
7781
  );
7747
7782
  });
7748
- Input.classes = classes$v;
7783
+ Input.classes = classes$y;
7749
7784
  Input.Wrapper = InputWrapper;
7750
7785
  Input.Label = InputLabel;
7751
7786
  Input.Error = InputError;
@@ -7822,11 +7857,11 @@ function useInputProps(component, defaultProps2, _props) {
7822
7857
  }
7823
7858
  };
7824
7859
  }
7825
- const defaultProps$17 = {
7860
+ const defaultProps$1n = {
7826
7861
  __staticSelector: "InputBase",
7827
7862
  withAria: !0
7828
7863
  }, InputBase = polymorphicFactory((props, ref) => {
7829
- const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$17, props);
7864
+ const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$1n, props);
7830
7865
  return /* @__PURE__ */ jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsx(Input, { ...inputProps, ...others, ref }) });
7831
7866
  });
7832
7867
  InputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };
@@ -7840,9 +7875,9 @@ const FLEX_STYLE_PROPS_DATA = {
7840
7875
  wrap: { type: "identity", property: "flexWrap" },
7841
7876
  direction: { type: "identity", property: "flexDirection" }
7842
7877
  };
7843
- var __default__$u = { root: "m_8bffd616" };
7844
- const classes$u = __default__$u, defaultProps$16 = {}, Flex = polymorphicFactory((_props, ref) => {
7845
- const props = useProps("Flex", defaultProps$16, _props), {
7878
+ var __default__$x = { root: "m_8bffd616" };
7879
+ const classes$x = __default__$x, defaultProps$1m = {}, Flex = polymorphicFactory((_props, ref) => {
7880
+ const props = useProps("Flex", defaultProps$1m, _props), {
7846
7881
  classNames,
7847
7882
  className,
7848
7883
  style,
@@ -7859,7 +7894,7 @@ const classes$u = __default__$u, defaultProps$16 = {}, Flex = polymorphicFactory
7859
7894
  ...others
7860
7895
  } = props, getStyles2 = useStyles({
7861
7896
  name: "Flex",
7862
- classes: classes$u,
7897
+ classes: classes$x,
7863
7898
  props,
7864
7899
  className,
7865
7900
  style,
@@ -7894,7 +7929,7 @@ const classes$u = __default__$u, defaultProps$16 = {}, Flex = polymorphicFactory
7894
7929
  )
7895
7930
  ] });
7896
7931
  });
7897
- Flex.classes = classes$u;
7932
+ Flex.classes = classes$x;
7898
7933
  Flex.displayName = "@mantine/core/Flex";
7899
7934
  function isParent(parentElement, childElement) {
7900
7935
  if (!childElement || !parentElement)
@@ -7960,13 +7995,13 @@ function useFloatingIndicator({
7960
7995
  () => document.documentElement
7961
7996
  ), { initialized, hidden: hidden2 };
7962
7997
  }
7963
- var __default__$t = { root: "m_96b553a6" };
7964
- const classes$t = __default__$t, defaultProps$15 = {}, varsResolver$s = (_theme, { transitionDuration }) => ({
7998
+ var __default__$w = { root: "m_96b553a6" };
7999
+ const classes$w = __default__$w, defaultProps$1l = {}, varsResolver$v = (_theme, { transitionDuration }) => ({
7965
8000
  root: {
7966
8001
  "--transition-duration": typeof transitionDuration == "number" ? `${transitionDuration}ms` : transitionDuration
7967
8002
  }
7968
8003
  }), FloatingIndicator = factory((_props, ref) => {
7969
- const props = useProps("FloatingIndicator", defaultProps$15, _props), {
8004
+ const props = useProps("FloatingIndicator", defaultProps$1l, _props), {
7970
8005
  classNames,
7971
8006
  className,
7972
8007
  style,
@@ -7981,7 +8016,7 @@ const classes$t = __default__$t, defaultProps$15 = {}, varsResolver$s = (_theme,
7981
8016
  ...others
7982
8017
  } = props, getStyles2 = useStyles({
7983
8018
  name: "FloatingIndicator",
7984
- classes: classes$t,
8019
+ classes: classes$w,
7985
8020
  props,
7986
8021
  className,
7987
8022
  style,
@@ -7989,7 +8024,7 @@ const classes$t = __default__$t, defaultProps$15 = {}, varsResolver$s = (_theme,
7989
8024
  styles,
7990
8025
  unstyled,
7991
8026
  vars,
7992
- varsResolver: varsResolver$s
8027
+ varsResolver: varsResolver$v
7993
8028
  }), innerRef = useRef(null), { initialized, hidden: hidden2 } = useFloatingIndicator({
7994
8029
  target,
7995
8030
  parent,
@@ -7999,9 +8034,9 @@ const classes$t = __default__$t, defaultProps$15 = {}, varsResolver$s = (_theme,
7999
8034
  return !target || !parent ? null : /* @__PURE__ */ jsx(Box, { ref: mergedRef, mod: [{ initialized, hidden: hidden2 }, mod], ...getStyles2("root"), ...others });
8000
8035
  });
8001
8036
  FloatingIndicator.displayName = "@mantine/core/FloatingIndicator";
8002
- FloatingIndicator.classes = classes$t;
8003
- var __default__$s = { root: "m_66836ed3", wrapper: "m_a5d60502", body: "m_667c2793", title: "m_6a03f287", label: "m_698f4f23", icon: "m_667f2a6a", message: "m_7fa78076", closeButton: "m_87f54839" };
8004
- const classes$s = __default__$s, defaultProps$14 = {}, varsResolver$r = (theme, { radius, color, variant, autoContrast }) => {
8037
+ FloatingIndicator.classes = classes$w;
8038
+ var __default__$v = { root: "m_66836ed3", wrapper: "m_a5d60502", body: "m_667c2793", title: "m_6a03f287", label: "m_698f4f23", icon: "m_667f2a6a", message: "m_7fa78076", closeButton: "m_87f54839" };
8039
+ const classes$v = __default__$v, defaultProps$1k = {}, varsResolver$u = (theme, { radius, color, variant, autoContrast }) => {
8005
8040
  const colors = theme.variantColorResolver({
8006
8041
  color: color || theme.primaryColor,
8007
8042
  theme,
@@ -8017,7 +8052,7 @@ const classes$s = __default__$s, defaultProps$14 = {}, varsResolver$r = (theme,
8017
8052
  }
8018
8053
  };
8019
8054
  }, Alert = factory((_props, ref) => {
8020
- const props = useProps("Alert", defaultProps$14, _props), {
8055
+ const props = useProps("Alert", defaultProps$1k, _props), {
8021
8056
  classNames,
8022
8057
  className,
8023
8058
  style,
@@ -8038,7 +8073,7 @@ const classes$s = __default__$s, defaultProps$14 = {}, varsResolver$r = (theme,
8038
8073
  ...others
8039
8074
  } = props, getStyles2 = useStyles({
8040
8075
  name: "Alert",
8041
- classes: classes$s,
8076
+ classes: classes$v,
8042
8077
  props,
8043
8078
  className,
8044
8079
  style,
@@ -8046,7 +8081,7 @@ const classes$s = __default__$s, defaultProps$14 = {}, varsResolver$r = (theme,
8046
8081
  styles,
8047
8082
  unstyled,
8048
8083
  vars,
8049
- varsResolver: varsResolver$r
8084
+ varsResolver: varsResolver$u
8050
8085
  }), rootId = useId$1(id), titleId = title && `${rootId}-title` || void 0, bodyId = `${rootId}-body`;
8051
8086
  return /* @__PURE__ */ jsx(
8052
8087
  Box,
@@ -8081,19 +8116,19 @@ const classes$s = __default__$s, defaultProps$14 = {}, varsResolver$r = (theme,
8081
8116
  }
8082
8117
  );
8083
8118
  });
8084
- Alert.classes = classes$s;
8119
+ Alert.classes = classes$v;
8085
8120
  Alert.displayName = "@mantine/core/Alert";
8086
- var __default__$r = { root: "m_b6d8b162" };
8087
- const classes$r = __default__$r;
8121
+ var __default__$u = { root: "m_b6d8b162" };
8122
+ const classes$u = __default__$u;
8088
8123
  function getTextTruncate(truncate) {
8089
8124
  if (truncate === "start")
8090
8125
  return "start";
8091
8126
  if (truncate === "end" || truncate)
8092
8127
  return "end";
8093
8128
  }
8094
- const defaultProps$13 = {
8129
+ const defaultProps$1j = {
8095
8130
  inherit: !1
8096
- }, varsResolver$q = (theme, { variant, lineClamp, gradient, size: size2, color }) => ({
8131
+ }, varsResolver$t = (theme, { variant, lineClamp, gradient, size: size2, color }) => ({
8097
8132
  root: {
8098
8133
  "--text-fz": getFontSize(size2),
8099
8134
  "--text-lh": getLineHeight(size2),
@@ -8102,7 +8137,7 @@ const defaultProps$13 = {
8102
8137
  "--text-color": color ? getThemeColor(color, theme) : void 0
8103
8138
  }
8104
8139
  }), Text = polymorphicFactory((_props, ref) => {
8105
- const props = useProps("Text", defaultProps$13, _props), {
8140
+ const props = useProps("Text", defaultProps$1j, _props), {
8106
8141
  lineClamp,
8107
8142
  truncate,
8108
8143
  inline: inline2,
@@ -8123,14 +8158,14 @@ const defaultProps$13 = {
8123
8158
  } = props, getStyles2 = useStyles({
8124
8159
  name: ["Text", __staticSelector],
8125
8160
  props,
8126
- classes: classes$r,
8161
+ classes: classes$u,
8127
8162
  className,
8128
8163
  style,
8129
8164
  classNames,
8130
8165
  styles,
8131
8166
  unstyled,
8132
8167
  vars,
8133
- varsResolver: varsResolver$q
8168
+ varsResolver: varsResolver$t
8134
8169
  });
8135
8170
  return /* @__PURE__ */ jsx(
8136
8171
  Box,
@@ -8153,15 +8188,15 @@ const defaultProps$13 = {
8153
8188
  }
8154
8189
  );
8155
8190
  });
8156
- Text.classes = classes$r;
8191
+ Text.classes = classes$u;
8157
8192
  Text.displayName = "@mantine/core/Text";
8158
- var __default__$q = { root: "m_849cf0da" };
8159
- const classes$q = __default__$q, defaultProps$12 = {
8193
+ var __default__$t = { root: "m_849cf0da" };
8194
+ const classes$t = __default__$t, defaultProps$1i = {
8160
8195
  underline: "hover"
8161
8196
  }, Anchor = polymorphicFactory((props, ref) => {
8162
8197
  const { underline, className, unstyled, mod, ...others } = useProps(
8163
8198
  "Anchor",
8164
- defaultProps$12,
8199
+ defaultProps$1i,
8165
8200
  props
8166
8201
  );
8167
8202
  return /* @__PURE__ */ jsx(
@@ -8169,7 +8204,7 @@ const classes$q = __default__$q, defaultProps$12 = {
8169
8204
  {
8170
8205
  component: "a",
8171
8206
  ref,
8172
- className: clsx({ [classes$q.root]: !unstyled }, className),
8207
+ className: clsx({ [classes$t.root]: !unstyled }, className),
8173
8208
  ...others,
8174
8209
  mod: [{ underline }, mod],
8175
8210
  __staticSelector: "Anchor",
@@ -8177,7 +8212,7 @@ const classes$q = __default__$q, defaultProps$12 = {
8177
8212
  }
8178
8213
  );
8179
8214
  });
8180
- Anchor.classes = classes$q;
8215
+ Anchor.classes = classes$t;
8181
8216
  Anchor.displayName = "@mantine/core/Anchor";
8182
8217
  function parseItem(item) {
8183
8218
  return typeof item == "string" ? { value: item, label: item } : "value" in item && !("label" in item) ? { value: item.value, label: item.value, disabled: item.disabled } : typeof item == "number" ? { value: item.toString(), label: item.toString() } : "group" in item ? {
@@ -8191,17 +8226,17 @@ function getParsedComboboxData(data) {
8191
8226
  function getOptionsLockup(options) {
8192
8227
  return options.reduce((acc, item) => "group" in item ? { ...acc, ...getOptionsLockup(item.items) } : (acc[item.value] = item, acc), {});
8193
8228
  }
8194
- var __default__$p = { dropdown: "m_88b62a41", search: "m_985517d8", options: "m_b2821a6e", option: "m_92253aa5", empty: "m_2530cd1d", header: "m_858f94bd", footer: "m_82b967cb", group: "m_254f3e4f", groupLabel: "m_2bb2e9e5", chevron: "m_2943220b", optionsDropdownOption: "m_390b5f4", optionsDropdownCheckIcon: "m_8ee53fc2" };
8195
- const classes$p = __default__$p, defaultProps$11 = {
8229
+ var __default__$s = { dropdown: "m_88b62a41", search: "m_985517d8", options: "m_b2821a6e", option: "m_92253aa5", empty: "m_2530cd1d", header: "m_858f94bd", footer: "m_82b967cb", group: "m_254f3e4f", groupLabel: "m_2bb2e9e5", chevron: "m_2943220b", optionsDropdownOption: "m_390b5f4", optionsDropdownCheckIcon: "m_8ee53fc2" };
8230
+ const classes$s = __default__$s, defaultProps$1h = {
8196
8231
  error: null
8197
- }, varsResolver$p = (_, { size: size2 }) => ({
8232
+ }, varsResolver$s = (_, { size: size2 }) => ({
8198
8233
  chevron: {
8199
8234
  "--combobox-chevron-size": getSize(size2, "combobox-chevron-size")
8200
8235
  }
8201
8236
  }), ComboboxChevron = factory((_props, ref) => {
8202
- const props = useProps("ComboboxChevron", defaultProps$11, _props), { size: size2, error, style, className, classNames, styles, unstyled, vars, mod, ...others } = props, getStyles2 = useStyles({
8237
+ const props = useProps("ComboboxChevron", defaultProps$1h, _props), { size: size2, error, style, className, classNames, styles, unstyled, vars, mod, ...others } = props, getStyles2 = useStyles({
8203
8238
  name: "ComboboxChevron",
8204
- classes: classes$p,
8239
+ classes: classes$s,
8205
8240
  props,
8206
8241
  style,
8207
8242
  className,
@@ -8209,7 +8244,7 @@ const classes$p = __default__$p, defaultProps$11 = {
8209
8244
  styles,
8210
8245
  unstyled,
8211
8246
  vars,
8212
- varsResolver: varsResolver$p,
8247
+ varsResolver: varsResolver$s,
8213
8248
  rootSelector: "chevron"
8214
8249
  });
8215
8250
  return /* @__PURE__ */ jsx(
@@ -8236,7 +8271,7 @@ const classes$p = __default__$p, defaultProps$11 = {
8236
8271
  }
8237
8272
  );
8238
8273
  });
8239
- ComboboxChevron.classes = classes$p;
8274
+ ComboboxChevron.classes = classes$s;
8240
8275
  ComboboxChevron.displayName = "@mantine/core/ComboboxChevron";
8241
8276
  const [ComboboxProvider, useComboboxContext] = createSafeContext(
8242
8277
  "Combobox component was not found in tree"
@@ -8260,10 +8295,10 @@ const [ComboboxProvider, useComboboxContext] = createSafeContext(
8260
8295
  )
8261
8296
  );
8262
8297
  ComboboxClearButton.displayName = "@mantine/core/ComboboxClearButton";
8263
- const defaultProps$10 = {}, ComboboxDropdown = factory((props, ref) => {
8298
+ const defaultProps$1g = {}, ComboboxDropdown = factory((props, ref) => {
8264
8299
  const { classNames, styles, className, style, hidden: hidden2, ...others } = useProps(
8265
8300
  "ComboboxDropdown",
8266
- defaultProps$10,
8301
+ defaultProps$1g,
8267
8302
  props
8268
8303
  ), ctx = useComboboxContext();
8269
8304
  return /* @__PURE__ */ jsx(
@@ -8277,12 +8312,12 @@ const defaultProps$10 = {}, ComboboxDropdown = factory((props, ref) => {
8277
8312
  }
8278
8313
  );
8279
8314
  });
8280
- ComboboxDropdown.classes = classes$p;
8315
+ ComboboxDropdown.classes = classes$s;
8281
8316
  ComboboxDropdown.displayName = "@mantine/core/ComboboxDropdown";
8282
- const defaultProps$$ = {
8317
+ const defaultProps$1f = {
8283
8318
  refProp: "ref"
8284
8319
  }, ComboboxDropdownTarget = factory((props, ref) => {
8285
- const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$$, props);
8320
+ const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$1f, props);
8286
8321
  if (useComboboxContext(), !isElement$1(children))
8287
8322
  throw new Error(
8288
8323
  "Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
@@ -8290,10 +8325,10 @@ const defaultProps$$ = {
8290
8325
  return /* @__PURE__ */ jsx(Popover.Target, { ref, refProp, children });
8291
8326
  });
8292
8327
  ComboboxDropdownTarget.displayName = "@mantine/core/ComboboxDropdownTarget";
8293
- const defaultProps$_ = {}, ComboboxEmpty = factory((props, ref) => {
8328
+ const defaultProps$1e = {}, ComboboxEmpty = factory((props, ref) => {
8294
8329
  const { classNames, className, style, styles, vars, ...others } = useProps(
8295
8330
  "ComboboxEmpty",
8296
- defaultProps$_,
8331
+ defaultProps$1e,
8297
8332
  props
8298
8333
  ), ctx = useComboboxContext();
8299
8334
  return /* @__PURE__ */ jsx(
@@ -8305,7 +8340,7 @@ const defaultProps$_ = {}, ComboboxEmpty = factory((props, ref) => {
8305
8340
  }
8306
8341
  );
8307
8342
  });
8308
- ComboboxEmpty.classes = classes$p;
8343
+ ComboboxEmpty.classes = classes$s;
8309
8344
  ComboboxEmpty.displayName = "@mantine/core/ComboboxEmpty";
8310
8345
  function useComboboxTargetProps({
8311
8346
  onKeyDown,
@@ -8319,7 +8354,7 @@ function useComboboxTargetProps({
8319
8354
  if (onKeyDown?.(event), !ctx.readOnly && withKeyboardNavigation) {
8320
8355
  if (event.nativeEvent.isComposing)
8321
8356
  return;
8322
- if (event.nativeEvent.code === "ArrowDown" && (event.preventDefault(), ctx.store.dropdownOpened ? setSelectedOptionId(ctx.store.selectNextOption()) : (ctx.store.openDropdown("keyboard"), setSelectedOptionId(ctx.store.selectActiveOption()))), event.nativeEvent.code === "ArrowUp" && (event.preventDefault(), ctx.store.dropdownOpened ? setSelectedOptionId(ctx.store.selectPreviousOption()) : (ctx.store.openDropdown("keyboard"), setSelectedOptionId(ctx.store.selectActiveOption()))), event.nativeEvent.code === "Enter" || event.nativeEvent.code === "NumpadEnter") {
8357
+ if (event.nativeEvent.code === "ArrowDown" && (event.preventDefault(), ctx.store.dropdownOpened ? setSelectedOptionId(ctx.store.selectNextOption()) : (ctx.store.openDropdown("keyboard"), setSelectedOptionId(ctx.store.selectActiveOption()), ctx.store.updateSelectedOptionIndex("selected", { scrollIntoView: !0 }))), event.nativeEvent.code === "ArrowUp" && (event.preventDefault(), ctx.store.dropdownOpened ? setSelectedOptionId(ctx.store.selectPreviousOption()) : (ctx.store.openDropdown("keyboard"), setSelectedOptionId(ctx.store.selectActiveOption()), ctx.store.updateSelectedOptionIndex("selected", { scrollIntoView: !0 }))), event.nativeEvent.code === "Enter" || event.nativeEvent.code === "NumpadEnter") {
8323
8358
  if (event.nativeEvent.keyCode === 229)
8324
8359
  return;
8325
8360
  const selectedOptionIndex = ctx.store.getSelectedOptionIndex();
@@ -8332,7 +8367,7 @@ function useComboboxTargetProps({
8332
8367
  ...withAriaAttributes ? {
8333
8368
  "aria-haspopup": "listbox",
8334
8369
  "aria-expanded": withExpandedAttribute && !!(ctx.store.listId && ctx.store.dropdownOpened) || void 0,
8335
- "aria-controls": ctx.store.listId,
8370
+ "aria-controls": ctx.store.dropdownOpened ? ctx.store.listId : void 0,
8336
8371
  "aria-activedescendant": ctx.store.dropdownOpened && selectedOptionId || void 0,
8337
8372
  autoComplete,
8338
8373
  "data-expanded": ctx.store.dropdownOpened || void 0,
@@ -8341,7 +8376,7 @@ function useComboboxTargetProps({
8341
8376
  onKeyDown: handleKeyDown
8342
8377
  };
8343
8378
  }
8344
- const defaultProps$Z = {
8379
+ const defaultProps$1d = {
8345
8380
  refProp: "ref",
8346
8381
  targetType: "input",
8347
8382
  withKeyboardNavigation: !0,
@@ -8358,7 +8393,7 @@ const defaultProps$Z = {
8358
8393
  targetType,
8359
8394
  autoComplete,
8360
8395
  ...others
8361
- } = useProps("ComboboxEventsTarget", defaultProps$Z, props);
8396
+ } = useProps("ComboboxEventsTarget", defaultProps$1d, props);
8362
8397
  if (!isElement$1(children))
8363
8398
  throw new Error(
8364
8399
  "Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
@@ -8374,14 +8409,14 @@ const defaultProps$Z = {
8374
8409
  return cloneElement(children, {
8375
8410
  ...targetProps,
8376
8411
  ...others,
8377
- [refProp]: useMergedRef(ref, ctx.store.targetRef, children?.ref)
8412
+ [refProp]: useMergedRef(ref, ctx.store.targetRef, getRefProp(children))
8378
8413
  });
8379
8414
  });
8380
8415
  ComboboxEventsTarget.displayName = "@mantine/core/ComboboxEventsTarget";
8381
- const defaultProps$Y = {}, ComboboxFooter = factory((props, ref) => {
8416
+ const defaultProps$1c = {}, ComboboxFooter = factory((props, ref) => {
8382
8417
  const { classNames, className, style, styles, vars, ...others } = useProps(
8383
8418
  "ComboboxFooter",
8384
- defaultProps$Y,
8419
+ defaultProps$1c,
8385
8420
  props
8386
8421
  ), ctx = useComboboxContext();
8387
8422
  return /* @__PURE__ */ jsx(
@@ -8396,12 +8431,12 @@ const defaultProps$Y = {}, ComboboxFooter = factory((props, ref) => {
8396
8431
  }
8397
8432
  );
8398
8433
  });
8399
- ComboboxFooter.classes = classes$p;
8434
+ ComboboxFooter.classes = classes$s;
8400
8435
  ComboboxFooter.displayName = "@mantine/core/ComboboxFooter";
8401
- const defaultProps$X = {}, ComboboxGroup = factory((props, ref) => {
8436
+ const defaultProps$1b = {}, ComboboxGroup = factory((props, ref) => {
8402
8437
  const { classNames, className, style, styles, vars, children, label, ...others } = useProps(
8403
8438
  "ComboboxGroup",
8404
- defaultProps$X,
8439
+ defaultProps$1b,
8405
8440
  props
8406
8441
  ), ctx = useComboboxContext();
8407
8442
  return /* @__PURE__ */ jsxs(
@@ -8417,12 +8452,12 @@ const defaultProps$X = {}, ComboboxGroup = factory((props, ref) => {
8417
8452
  }
8418
8453
  );
8419
8454
  });
8420
- ComboboxGroup.classes = classes$p;
8455
+ ComboboxGroup.classes = classes$s;
8421
8456
  ComboboxGroup.displayName = "@mantine/core/ComboboxGroup";
8422
- const defaultProps$W = {}, ComboboxHeader = factory((props, ref) => {
8457
+ const defaultProps$1a = {}, ComboboxHeader = factory((props, ref) => {
8423
8458
  const { classNames, className, style, styles, vars, ...others } = useProps(
8424
8459
  "ComboboxHeader",
8425
- defaultProps$W,
8460
+ defaultProps$1a,
8426
8461
  props
8427
8462
  ), ctx = useComboboxContext();
8428
8463
  return /* @__PURE__ */ jsx(
@@ -8437,7 +8472,7 @@ const defaultProps$W = {}, ComboboxHeader = factory((props, ref) => {
8437
8472
  }
8438
8473
  );
8439
8474
  });
8440
- ComboboxHeader.classes = classes$p;
8475
+ ComboboxHeader.classes = classes$s;
8441
8476
  ComboboxHeader.displayName = "@mantine/core/ComboboxHeader";
8442
8477
  function ComboboxHiddenInput({
8443
8478
  value,
@@ -8454,8 +8489,8 @@ function ComboboxHiddenInput({
8454
8489
  );
8455
8490
  }
8456
8491
  ComboboxHiddenInput.displayName = "@mantine/core/ComboboxHiddenInput";
8457
- const defaultProps$V = {}, ComboboxOption = factory((_props, ref) => {
8458
- const props = useProps("ComboboxOption", defaultProps$V, _props), {
8492
+ const defaultProps$19 = {}, ComboboxOption = factory((_props, ref) => {
8493
+ const props = useProps("ComboboxOption", defaultProps$19, _props), {
8459
8494
  classNames,
8460
8495
  className,
8461
8496
  style,
@@ -8496,10 +8531,10 @@ const defaultProps$V = {}, ComboboxOption = factory((_props, ref) => {
8496
8531
  }
8497
8532
  );
8498
8533
  });
8499
- ComboboxOption.classes = classes$p;
8534
+ ComboboxOption.classes = classes$s;
8500
8535
  ComboboxOption.displayName = "@mantine/core/ComboboxOption";
8501
- const defaultProps$U = {}, ComboboxOptions = factory((_props, ref) => {
8502
- const props = useProps("ComboboxOptions", defaultProps$U, _props), { classNames, className, style, styles, id, onMouseDown, labelledBy, ...others } = props, ctx = useComboboxContext(), _id = useId$1(id);
8536
+ const defaultProps$18 = {}, ComboboxOptions = factory((_props, ref) => {
8537
+ const props = useProps("ComboboxOptions", defaultProps$18, _props), { classNames, className, style, styles, id, onMouseDown, labelledBy, ...others } = props, ctx = useComboboxContext(), _id = useId$1(id);
8503
8538
  return useEffect(() => {
8504
8539
  ctx.store.setListId(_id);
8505
8540
  }, [_id]), /* @__PURE__ */ jsx(
@@ -8517,13 +8552,13 @@ const defaultProps$U = {}, ComboboxOptions = factory((_props, ref) => {
8517
8552
  }
8518
8553
  );
8519
8554
  });
8520
- ComboboxOptions.classes = classes$p;
8555
+ ComboboxOptions.classes = classes$s;
8521
8556
  ComboboxOptions.displayName = "@mantine/core/ComboboxOptions";
8522
- const defaultProps$T = {
8557
+ const defaultProps$17 = {
8523
8558
  withAriaAttributes: !0,
8524
8559
  withKeyboardNavigation: !0
8525
8560
  }, ComboboxSearch = factory((_props, ref) => {
8526
- const props = useProps("ComboboxSearch", defaultProps$T, _props), {
8561
+ const props = useProps("ComboboxSearch", defaultProps$17, _props), {
8527
8562
  classNames,
8528
8563
  styles,
8529
8564
  unstyled,
@@ -8554,9 +8589,9 @@ const defaultProps$T = {
8554
8589
  }
8555
8590
  );
8556
8591
  });
8557
- ComboboxSearch.classes = classes$p;
8592
+ ComboboxSearch.classes = classes$s;
8558
8593
  ComboboxSearch.displayName = "@mantine/core/ComboboxSearch";
8559
- const defaultProps$S = {
8594
+ const defaultProps$16 = {
8560
8595
  refProp: "ref",
8561
8596
  targetType: "input",
8562
8597
  withKeyboardNavigation: !0,
@@ -8573,7 +8608,7 @@ const defaultProps$S = {
8573
8608
  targetType,
8574
8609
  autoComplete,
8575
8610
  ...others
8576
- } = useProps("ComboboxTarget", defaultProps$S, props);
8611
+ } = useProps("ComboboxTarget", defaultProps$16, props);
8577
8612
  if (!isElement$1(children))
8578
8613
  throw new Error(
8579
8614
  "Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
@@ -8715,7 +8750,7 @@ function useCombobox({
8715
8750
  document.querySelectorAll(
8716
8751
  `#${listId.current} [data-combobox-option]`
8717
8752
  )?.[selectedOptionIndex.current]?.click();
8718
- }, []), setListId = useCallback((id) => {
8753
+ }, []), setListId2 = useCallback((id) => {
8719
8754
  listId.current = id;
8720
8755
  }, []), focusSearchInput = useCallback(() => {
8721
8756
  focusSearchTimeout.current = window.setTimeout(() => searchRef.current.focus(), 0);
@@ -8742,7 +8777,7 @@ function useCombobox({
8742
8777
  resetSelectedOption,
8743
8778
  updateSelectedOptionIndex,
8744
8779
  listId: listId.current,
8745
- setListId,
8780
+ setListId: setListId2,
8746
8781
  clickSelectedOption,
8747
8782
  searchRef,
8748
8783
  focusSearchInput,
@@ -8750,13 +8785,13 @@ function useCombobox({
8750
8785
  focusTarget
8751
8786
  };
8752
8787
  }
8753
- const defaultProps$R = {
8788
+ const defaultProps$15 = {
8754
8789
  keepMounted: !0,
8755
8790
  withinPortal: !0,
8756
8791
  resetSelectionOnOptionHover: !1,
8757
8792
  width: "target",
8758
8793
  transitionProps: { transition: "fade", duration: 0 }
8759
- }, varsResolver$o = (_, { size: size2, dropdownPadding }) => ({
8794
+ }, varsResolver$r = (_, { size: size2, dropdownPadding }) => ({
8760
8795
  options: {
8761
8796
  "--combobox-option-fz": getFontSize(size2),
8762
8797
  "--combobox-option-padding": getSize(size2, "combobox-option-padding")
@@ -8768,7 +8803,7 @@ const defaultProps$R = {
8768
8803
  }
8769
8804
  });
8770
8805
  function Combobox(_props) {
8771
- const props = useProps("Combobox", defaultProps$R, _props), {
8806
+ const props = useProps("Combobox", defaultProps$15, _props), {
8772
8807
  classNames,
8773
8808
  styles,
8774
8809
  unstyled,
@@ -8785,13 +8820,13 @@ function Combobox(_props) {
8785
8820
  ...others
8786
8821
  } = props, uncontrolledStore = useCombobox(), store = controlledStore || uncontrolledStore, getStyles2 = useStyles({
8787
8822
  name: __staticSelector || "Combobox",
8788
- classes: classes$p,
8823
+ classes: classes$s,
8789
8824
  props,
8790
8825
  classNames,
8791
8826
  styles,
8792
8827
  unstyled,
8793
8828
  vars,
8794
- varsResolver: varsResolver$o
8829
+ varsResolver: varsResolver$r
8795
8830
  }), onDropdownClose = () => {
8796
8831
  onClose?.(), store.closeDropdown();
8797
8832
  };
@@ -8822,7 +8857,7 @@ function Combobox(_props) {
8822
8857
  }
8823
8858
  const extendCombobox = (c) => c;
8824
8859
  Combobox.extend = extendCombobox;
8825
- Combobox.classes = classes$p;
8860
+ Combobox.classes = classes$s;
8826
8861
  Combobox.displayName = "@mantine/core/Combobox";
8827
8862
  Combobox.Target = ComboboxTarget;
8828
8863
  Combobox.Dropdown = ComboboxDropdown;
@@ -8924,7 +8959,7 @@ function Option({
8924
8959
  renderOption
8925
8960
  }) {
8926
8961
  if (!isOptionsGroup(data)) {
8927
- const checked = isValueChecked(value, data.value), check = withCheckIcon && checked && /* @__PURE__ */ jsx(CheckIcon, { className: classes$p.optionsDropdownCheckIcon }), defaultContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [
8962
+ const checked = isValueChecked(value, data.value), check = withCheckIcon && checked && /* @__PURE__ */ jsx(CheckIcon, { className: classes$s.optionsDropdownCheckIcon }), defaultContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [
8928
8963
  checkIconPosition === "left" && check,
8929
8964
  /* @__PURE__ */ jsx("span", { children: data.label }),
8930
8965
  checkIconPosition === "right" && check
@@ -8934,7 +8969,7 @@ function Option({
8934
8969
  {
8935
8970
  value: data.value,
8936
8971
  disabled: data.disabled,
8937
- className: clsx({ [classes$p.optionsDropdownOption]: !unstyled }),
8972
+ className: clsx({ [classes$s.optionsDropdownOption]: !unstyled }),
8938
8973
  "data-reverse": checkIconPosition === "right" || void 0,
8939
8974
  "data-checked": checked || void 0,
8940
8975
  "aria-selected": checked,
@@ -9009,8 +9044,8 @@ function OptionsDropdown({
9009
9044
  isEmpty && nothingFoundMessage && /* @__PURE__ */ jsx(Combobox.Empty, { children: nothingFoundMessage })
9010
9045
  ] }) });
9011
9046
  }
9012
- var __default__$o = { root: "m_347db0ec", "root--dot": "m_fbd81e3d", label: "m_5add502a", section: "m_91fdda9b" };
9013
- const classes$o = __default__$o, defaultProps$Q = {}, varsResolver$n = (theme, { radius, color, gradient, variant, size: size2, autoContrast }) => {
9047
+ var __default__$r = { root: "m_347db0ec", "root--dot": "m_fbd81e3d", label: "m_5add502a", section: "m_91fdda9b" };
9048
+ const classes$r = __default__$r, defaultProps$14 = {}, varsResolver$q = (theme, { radius, color, gradient, variant, size: size2, autoContrast }) => {
9014
9049
  const colors = theme.variantColorResolver({
9015
9050
  color: color || theme.primaryColor,
9016
9051
  theme,
@@ -9031,7 +9066,7 @@ const classes$o = __default__$o, defaultProps$Q = {}, varsResolver$n = (theme, {
9031
9066
  }
9032
9067
  };
9033
9068
  }, Badge = polymorphicFactory((_props, ref) => {
9034
- const props = useProps("Badge", defaultProps$Q, _props), {
9069
+ const props = useProps("Badge", defaultProps$14, _props), {
9035
9070
  classNames,
9036
9071
  className,
9037
9072
  style,
@@ -9053,14 +9088,14 @@ const classes$o = __default__$o, defaultProps$Q = {}, varsResolver$n = (theme, {
9053
9088
  } = props, getStyles2 = useStyles({
9054
9089
  name: "Badge",
9055
9090
  props,
9056
- classes: classes$o,
9091
+ classes: classes$r,
9057
9092
  className,
9058
9093
  style,
9059
9094
  classNames,
9060
9095
  styles,
9061
9096
  unstyled,
9062
9097
  vars,
9063
- varsResolver: varsResolver$n
9098
+ varsResolver: varsResolver$q
9064
9099
  });
9065
9100
  return /* @__PURE__ */ jsxs(
9066
9101
  Box,
@@ -9086,10 +9121,10 @@ const classes$o = __default__$o, defaultProps$Q = {}, varsResolver$n = (theme, {
9086
9121
  }
9087
9122
  );
9088
9123
  });
9089
- Badge.classes = classes$o;
9124
+ Badge.classes = classes$r;
9090
9125
  Badge.displayName = "@mantine/core/Badge";
9091
- var __default__$n = { root: "m_fea6bf1a", burger: "m_d4fb9cad" };
9092
- const classes$n = __default__$n, defaultProps$P = {}, varsResolver$m = (theme, { color, size: size2, lineSize, transitionDuration, transitionTimingFunction }) => ({
9126
+ var __default__$q = { root: "m_fea6bf1a", burger: "m_d4fb9cad" };
9127
+ const classes$q = __default__$q, defaultProps$13 = {}, varsResolver$p = (theme, { color, size: size2, lineSize, transitionDuration, transitionTimingFunction }) => ({
9093
9128
  root: {
9094
9129
  "--burger-color": color ? getThemeColor(color, theme) : void 0,
9095
9130
  "--burger-size": getSize(size2, "burger-size"),
@@ -9098,7 +9133,7 @@ const classes$n = __default__$n, defaultProps$P = {}, varsResolver$m = (theme, {
9098
9133
  "--burger-transition-timing-function": transitionTimingFunction
9099
9134
  }
9100
9135
  }), Burger = factory((_props, ref) => {
9101
- const props = useProps("Burger", defaultProps$P, _props), {
9136
+ const props = useProps("Burger", defaultProps$13, _props), {
9102
9137
  classNames,
9103
9138
  className,
9104
9139
  style,
@@ -9113,7 +9148,7 @@ const classes$n = __default__$n, defaultProps$P = {}, varsResolver$m = (theme, {
9113
9148
  ...others
9114
9149
  } = props, getStyles2 = useStyles({
9115
9150
  name: "Burger",
9116
- classes: classes$n,
9151
+ classes: classes$q,
9117
9152
  props,
9118
9153
  className,
9119
9154
  style,
@@ -9121,22 +9156,22 @@ const classes$n = __default__$n, defaultProps$P = {}, varsResolver$m = (theme, {
9121
9156
  styles,
9122
9157
  unstyled,
9123
9158
  vars,
9124
- varsResolver: varsResolver$m
9159
+ varsResolver: varsResolver$p
9125
9160
  });
9126
9161
  return /* @__PURE__ */ jsxs(UnstyledButton, { ...getStyles2("root"), ref, ...others, children: [
9127
9162
  /* @__PURE__ */ jsx(Box, { mod: ["reduce-motion", { opened }], ...getStyles2("burger") }),
9128
9163
  children
9129
9164
  ] });
9130
9165
  });
9131
- Burger.classes = classes$n;
9166
+ Burger.classes = classes$q;
9132
9167
  Burger.displayName = "@mantine/core/Burger";
9133
- var __default__$m = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844" };
9134
- const classes$m = __default__$m, defaultProps$O = {
9168
+ var __default__$p = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844" };
9169
+ const classes$p = __default__$p, defaultProps$12 = {
9135
9170
  orientation: "horizontal"
9136
- }, varsResolver$l = (_, { borderWidth }) => ({
9171
+ }, varsResolver$o = (_, { borderWidth }) => ({
9137
9172
  group: { "--button-border-width": rem(borderWidth) }
9138
9173
  }), ButtonGroup = factory((_props, ref) => {
9139
- const props = useProps("ButtonGroup", defaultProps$O, _props), {
9174
+ const props = useProps("ButtonGroup", defaultProps$12, _props), {
9140
9175
  className,
9141
9176
  style,
9142
9177
  classNames,
@@ -9148,17 +9183,17 @@ const classes$m = __default__$m, defaultProps$O = {
9148
9183
  variant,
9149
9184
  mod,
9150
9185
  ...others
9151
- } = useProps("ButtonGroup", defaultProps$O, _props), getStyles2 = useStyles({
9186
+ } = useProps("ButtonGroup", defaultProps$12, _props), getStyles2 = useStyles({
9152
9187
  name: "ButtonGroup",
9153
9188
  props,
9154
- classes: classes$m,
9189
+ classes: classes$p,
9155
9190
  className,
9156
9191
  style,
9157
9192
  classNames,
9158
9193
  styles,
9159
9194
  unstyled,
9160
9195
  vars,
9161
- varsResolver: varsResolver$l,
9196
+ varsResolver: varsResolver$o,
9162
9197
  rootSelector: "group"
9163
9198
  });
9164
9199
  return /* @__PURE__ */ jsx(
@@ -9173,14 +9208,14 @@ const classes$m = __default__$m, defaultProps$O = {
9173
9208
  }
9174
9209
  );
9175
9210
  });
9176
- ButtonGroup.classes = classes$m;
9211
+ ButtonGroup.classes = classes$p;
9177
9212
  ButtonGroup.displayName = "@mantine/core/ButtonGroup";
9178
9213
  const loaderTransition = {
9179
9214
  in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${rem(1)}))` },
9180
9215
  out: { opacity: 0, transform: "translate(-50%, -200%)" },
9181
9216
  common: { transformOrigin: "center" },
9182
9217
  transitionProperty: "transform, opacity"
9183
- }, defaultProps$N = {}, varsResolver$k = (theme, { radius, color, gradient, variant, size: size2, justify, autoContrast }) => {
9218
+ }, defaultProps$11 = {}, varsResolver$n = (theme, { radius, color, gradient, variant, size: size2, justify, autoContrast }) => {
9184
9219
  const colors = theme.variantColorResolver({
9185
9220
  color: color || theme.primaryColor,
9186
9221
  theme,
@@ -9203,7 +9238,7 @@ const loaderTransition = {
9203
9238
  }
9204
9239
  };
9205
9240
  }, Button = polymorphicFactory((_props, ref) => {
9206
- const props = useProps("Button", defaultProps$N, _props), {
9241
+ const props = useProps("Button", defaultProps$11, _props), {
9207
9242
  style,
9208
9243
  vars,
9209
9244
  className,
@@ -9228,14 +9263,14 @@ const loaderTransition = {
9228
9263
  } = props, getStyles2 = useStyles({
9229
9264
  name: "Button",
9230
9265
  props,
9231
- classes: classes$m,
9266
+ classes: classes$p,
9232
9267
  className,
9233
9268
  style,
9234
9269
  classNames,
9235
9270
  styles,
9236
9271
  unstyled,
9237
9272
  vars,
9238
- varsResolver: varsResolver$k
9273
+ varsResolver: varsResolver$n
9239
9274
  }), hasLeftSection = !!leftSection, hasRightSection = !!rightSection;
9240
9275
  return /* @__PURE__ */ jsxs(
9241
9276
  UnstyledButton,
@@ -9274,15 +9309,15 @@ const loaderTransition = {
9274
9309
  }
9275
9310
  );
9276
9311
  });
9277
- Button.classes = classes$m;
9312
+ Button.classes = classes$p;
9278
9313
  Button.displayName = "@mantine/core/Button";
9279
9314
  Button.Group = ButtonGroup;
9280
9315
  const [CardProvider, useCardContext] = createSafeContext(
9281
9316
  "Card component was not found in tree"
9282
9317
  );
9283
- var __default__$l = { root: "m_e615b15f", section: "m_599a2148" };
9284
- const classes$l = __default__$l, defaultProps$M = {}, CardSection = polymorphicFactory((_props, ref) => {
9285
- const props = useProps("CardSection", defaultProps$M, _props), { classNames, className, style, styles, vars, withBorder, inheritPadding, mod, ...others } = props, ctx = useCardContext();
9318
+ var __default__$o = { root: "m_e615b15f", section: "m_599a2148" };
9319
+ const classes$o = __default__$o, defaultProps$10 = {}, CardSection = polymorphicFactory((_props, ref) => {
9320
+ const props = useProps("CardSection", defaultProps$10, _props), { classNames, className, style, styles, vars, withBorder, inheritPadding, mod, ...others } = props, ctx = useCardContext();
9286
9321
  return /* @__PURE__ */ jsx(
9287
9322
  Box,
9288
9323
  {
@@ -9293,39 +9328,39 @@ const classes$l = __default__$l, defaultProps$M = {}, CardSection = polymorphicF
9293
9328
  }
9294
9329
  );
9295
9330
  });
9296
- CardSection.classes = classes$l;
9331
+ CardSection.classes = classes$o;
9297
9332
  CardSection.displayName = "@mantine/core/CardSection";
9298
- const defaultProps$L = {}, varsResolver$j = (_, { padding }) => ({
9333
+ const defaultProps$$ = {}, varsResolver$m = (_, { padding }) => ({
9299
9334
  root: {
9300
9335
  "--card-padding": getSpacing(padding)
9301
9336
  }
9302
9337
  }), Card = polymorphicFactory((_props, ref) => {
9303
- const props = useProps("Card", defaultProps$L, _props), { classNames, className, style, styles, unstyled, vars, children, padding, ...others } = props, getStyles2 = useStyles({
9338
+ const props = useProps("Card", defaultProps$$, _props), { classNames, className, style, styles, unstyled, vars, children, padding, ...others } = props, getStyles2 = useStyles({
9304
9339
  name: "Card",
9305
9340
  props,
9306
- classes: classes$l,
9341
+ classes: classes$o,
9307
9342
  className,
9308
9343
  style,
9309
9344
  classNames,
9310
9345
  styles,
9311
9346
  unstyled,
9312
9347
  vars,
9313
- varsResolver: varsResolver$j
9348
+ varsResolver: varsResolver$m
9314
9349
  }), _children = Children.toArray(children), content = _children.map((child, index2) => typeof child == "object" && child && "type" in child && child.type === CardSection ? cloneElement(child, {
9315
9350
  "data-first-section": index2 === 0 || void 0,
9316
9351
  "data-last-section": index2 === _children.length - 1 || void 0
9317
9352
  }) : child);
9318
9353
  return /* @__PURE__ */ jsx(CardProvider, { value: { getStyles: getStyles2 }, children: /* @__PURE__ */ jsx(Paper, { ref, unstyled, ...getStyles2("root"), ...others, children: content }) });
9319
9354
  });
9320
- Card.classes = classes$l;
9355
+ Card.classes = classes$o;
9321
9356
  Card.displayName = "@mantine/core/Card";
9322
9357
  Card.Section = CardSection;
9323
- var __default__$k = { root: "m_4451eb3a" };
9324
- const classes$k = __default__$k, defaultProps$K = {}, Center = polymorphicFactory((_props, ref) => {
9325
- const props = useProps("Center", defaultProps$K, _props), { classNames, className, style, styles, unstyled, vars, inline: inline2, mod, ...others } = props, getStyles2 = useStyles({
9358
+ var __default__$n = { root: "m_4451eb3a" };
9359
+ const classes$n = __default__$n, defaultProps$_ = {}, Center = polymorphicFactory((_props, ref) => {
9360
+ const props = useProps("Center", defaultProps$_, _props), { classNames, className, style, styles, unstyled, vars, inline: inline2, mod, ...others } = props, getStyles2 = useStyles({
9326
9361
  name: "Center",
9327
9362
  props,
9328
- classes: classes$k,
9363
+ classes: classes$n,
9329
9364
  className,
9330
9365
  style,
9331
9366
  classNames,
@@ -9335,15 +9370,15 @@ const classes$k = __default__$k, defaultProps$K = {}, Center = polymorphicFactor
9335
9370
  });
9336
9371
  return /* @__PURE__ */ jsx(Box, { ref, mod: [{ inline: inline2 }, mod], ...getStyles2("root"), ...others });
9337
9372
  });
9338
- Center.classes = classes$k;
9373
+ Center.classes = classes$n;
9339
9374
  Center.displayName = "@mantine/core/Center";
9340
- var __default__$j = { root: "m_b183c0a2" };
9341
- const classes$j = __default__$j, defaultProps$J = {}, varsResolver$i = (theme, { color }) => ({
9375
+ var __default__$m = { root: "m_b183c0a2" };
9376
+ const classes$m = __default__$m, defaultProps$Z = {}, varsResolver$l = (theme, { color }) => ({
9342
9377
  root: {
9343
9378
  "--code-bg": color ? getThemeColor(color, theme) : void 0
9344
9379
  }
9345
9380
  }), Code = factory((_props, ref) => {
9346
- const props = useProps("Code", defaultProps$J, _props), {
9381
+ const props = useProps("Code", defaultProps$Z, _props), {
9347
9382
  classNames,
9348
9383
  className,
9349
9384
  style,
@@ -9358,14 +9393,14 @@ const classes$j = __default__$j, defaultProps$J = {}, varsResolver$i = (theme, {
9358
9393
  } = props, getStyles2 = useStyles({
9359
9394
  name: "Code",
9360
9395
  props,
9361
- classes: classes$j,
9396
+ classes: classes$m,
9362
9397
  className,
9363
9398
  style,
9364
9399
  classNames,
9365
9400
  styles,
9366
9401
  unstyled,
9367
9402
  vars,
9368
- varsResolver: varsResolver$i
9403
+ varsResolver: varsResolver$l
9369
9404
  });
9370
9405
  return /* @__PURE__ */ jsx(
9371
9406
  Box,
@@ -9380,18 +9415,18 @@ const classes$j = __default__$j, defaultProps$J = {}, varsResolver$i = (theme, {
9380
9415
  }
9381
9416
  );
9382
9417
  });
9383
- Code.classes = classes$j;
9418
+ Code.classes = classes$m;
9384
9419
  Code.displayName = "@mantine/core/Code";
9385
- var __default__$i = { root: "m_de3d2490", colorOverlay: "m_862f3d1b", shadowOverlay: "m_98ae7f22", alphaOverlay: "m_95709ac0", childrenOverlay: "m_93e74e3" };
9386
- const classes$i = __default__$i, defaultProps$I = {
9420
+ var __default__$l = { root: "m_de3d2490", colorOverlay: "m_862f3d1b", shadowOverlay: "m_98ae7f22", alphaOverlay: "m_95709ac0", childrenOverlay: "m_93e74e3" };
9421
+ const classes$l = __default__$l, defaultProps$Y = {
9387
9422
  withShadow: !0
9388
- }, varsResolver$h = (_, { radius, size: size2 }) => ({
9423
+ }, varsResolver$k = (_, { radius, size: size2 }) => ({
9389
9424
  root: {
9390
9425
  "--cs-radius": radius === void 0 ? void 0 : getRadius(radius),
9391
9426
  "--cs-size": rem(size2)
9392
9427
  }
9393
9428
  }), ColorSwatch = polymorphicFactory((_props, ref) => {
9394
- const props = useProps("ColorSwatch", defaultProps$I, _props), {
9429
+ const props = useProps("ColorSwatch", defaultProps$Y, _props), {
9395
9430
  classNames,
9396
9431
  className,
9397
9432
  style,
@@ -9405,17 +9440,17 @@ const classes$i = __default__$i, defaultProps$I = {
9405
9440
  children,
9406
9441
  variant,
9407
9442
  ...others
9408
- } = useProps("ColorSwatch", defaultProps$I, props), getStyles2 = useStyles({
9443
+ } = useProps("ColorSwatch", defaultProps$Y, props), getStyles2 = useStyles({
9409
9444
  name: "ColorSwatch",
9410
9445
  props,
9411
- classes: classes$i,
9446
+ classes: classes$l,
9412
9447
  className,
9413
9448
  style,
9414
9449
  classNames,
9415
9450
  styles,
9416
9451
  unstyled,
9417
9452
  vars,
9418
- varsResolver: varsResolver$h
9453
+ varsResolver: varsResolver$k
9419
9454
  });
9420
9455
  return /* @__PURE__ */ jsxs(
9421
9456
  Box,
@@ -9434,17 +9469,17 @@ const classes$i = __default__$i, defaultProps$I = {
9434
9469
  }
9435
9470
  );
9436
9471
  });
9437
- ColorSwatch.classes = classes$i;
9472
+ ColorSwatch.classes = classes$l;
9438
9473
  ColorSwatch.displayName = "@mantine/core/ColorSwatch";
9439
- var __default__$h = { root: "m_7485cace" };
9440
- const classes$h = __default__$h, defaultProps$H = {}, varsResolver$g = (_, { size: size2, fluid }) => ({
9474
+ var __default__$k = { root: "m_7485cace" };
9475
+ const classes$k = __default__$k, defaultProps$X = {}, varsResolver$j = (_, { size: size2, fluid }) => ({
9441
9476
  root: {
9442
9477
  "--container-size": fluid ? void 0 : getSize(size2, "container-size")
9443
9478
  }
9444
9479
  }), Container = factory((_props, ref) => {
9445
- const props = useProps("Container", defaultProps$H, _props), { classNames, className, style, styles, unstyled, vars, fluid, mod, ...others } = props, getStyles2 = useStyles({
9480
+ const props = useProps("Container", defaultProps$X, _props), { classNames, className, style, styles, unstyled, vars, fluid, mod, ...others } = props, getStyles2 = useStyles({
9446
9481
  name: "Container",
9447
- classes: classes$h,
9482
+ classes: classes$k,
9448
9483
  props,
9449
9484
  className,
9450
9485
  style,
@@ -9452,31 +9487,31 @@ const classes$h = __default__$h, defaultProps$H = {}, varsResolver$g = (_, { siz
9452
9487
  styles,
9453
9488
  unstyled,
9454
9489
  vars,
9455
- varsResolver: varsResolver$g
9490
+ varsResolver: varsResolver$j
9456
9491
  });
9457
9492
  return /* @__PURE__ */ jsx(Box, { ref, mod: [{ fluid }, mod], ...getStyles2("root"), ...others });
9458
9493
  });
9459
- Container.classes = classes$h;
9494
+ Container.classes = classes$k;
9460
9495
  Container.displayName = "@mantine/core/Container";
9461
- const defaultProps$G = {
9496
+ const defaultProps$W = {
9462
9497
  timeout: 1e3
9463
9498
  };
9464
9499
  function CopyButton(props) {
9465
- const { children, timeout, value, ...others } = useProps("CopyButton", defaultProps$G, props), clipboard = useClipboard({ timeout });
9500
+ const { children, timeout, value, ...others } = useProps("CopyButton", defaultProps$W, props), clipboard = useClipboard({ timeout });
9466
9501
  return /* @__PURE__ */ jsx(Fragment$1, { children: children({ copy: () => clipboard.copy(value), copied: clipboard.copied, ...others }) });
9467
9502
  }
9468
9503
  CopyButton.displayName = "@mantine/core/CopyButton";
9469
- var __default__$g = { root: "m_3eebeb36", label: "m_9e365f20" };
9470
- const classes$g = __default__$g, defaultProps$F = {
9504
+ var __default__$j = { root: "m_3eebeb36", label: "m_9e365f20" };
9505
+ const classes$j = __default__$j, defaultProps$V = {
9471
9506
  orientation: "horizontal"
9472
- }, varsResolver$f = (theme, { color, variant, size: size2 }) => ({
9507
+ }, varsResolver$i = (theme, { color, variant, size: size2 }) => ({
9473
9508
  root: {
9474
9509
  "--divider-color": color ? getThemeColor(color, theme) : void 0,
9475
9510
  "--divider-border-style": variant,
9476
9511
  "--divider-size": getSize(size2, "divider-size")
9477
9512
  }
9478
9513
  }), Divider = factory((_props, ref) => {
9479
- const props = useProps("Divider", defaultProps$F, _props), {
9514
+ const props = useProps("Divider", defaultProps$V, _props), {
9480
9515
  classNames,
9481
9516
  className,
9482
9517
  style,
@@ -9491,7 +9526,7 @@ const classes$g = __default__$g, defaultProps$F = {
9491
9526
  ...others
9492
9527
  } = props, getStyles2 = useStyles({
9493
9528
  name: "Divider",
9494
- classes: classes$g,
9529
+ classes: classes$j,
9495
9530
  props,
9496
9531
  className,
9497
9532
  style,
@@ -9499,7 +9534,7 @@ const classes$g = __default__$g, defaultProps$F = {
9499
9534
  styles,
9500
9535
  unstyled,
9501
9536
  vars,
9502
- varsResolver: varsResolver$f
9537
+ varsResolver: varsResolver$i
9503
9538
  });
9504
9539
  return /* @__PURE__ */ jsx(
9505
9540
  Box,
@@ -9513,14 +9548,14 @@ const classes$g = __default__$g, defaultProps$F = {
9513
9548
  }
9514
9549
  );
9515
9550
  });
9516
- Divider.classes = classes$g;
9551
+ Divider.classes = classes$j;
9517
9552
  Divider.displayName = "@mantine/core/Divider";
9518
9553
  const [DrawerProvider, useDrawerContext] = createSafeContext(
9519
9554
  "Drawer component was not found in tree"
9520
9555
  );
9521
- var __default__$f = { root: "m_f11b401e", header: "m_5a7c2c9", content: "m_b8a05bbd", inner: "m_31cd769a" };
9522
- const classes$f = __default__$f, defaultProps$E = {}, DrawerBody = factory((_props, ref) => {
9523
- const props = useProps("DrawerBody", defaultProps$E, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9556
+ var __default__$i = { root: "m_f11b401e", header: "m_5a7c2c9", content: "m_b8a05bbd", inner: "m_31cd769a" };
9557
+ const classes$i = __default__$i, defaultProps$U = {}, DrawerBody = factory((_props, ref) => {
9558
+ const props = useProps("DrawerBody", defaultProps$U, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9524
9559
  return /* @__PURE__ */ jsx(
9525
9560
  ModalBaseBody,
9526
9561
  {
@@ -9530,10 +9565,10 @@ const classes$f = __default__$f, defaultProps$E = {}, DrawerBody = factory((_pro
9530
9565
  }
9531
9566
  );
9532
9567
  });
9533
- DrawerBody.classes = classes$f;
9568
+ DrawerBody.classes = classes$i;
9534
9569
  DrawerBody.displayName = "@mantine/core/DrawerBody";
9535
- const defaultProps$D = {}, DrawerCloseButton = factory((_props, ref) => {
9536
- const props = useProps("DrawerCloseButton", defaultProps$D, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9570
+ const defaultProps$T = {}, DrawerCloseButton = factory((_props, ref) => {
9571
+ const props = useProps("DrawerCloseButton", defaultProps$T, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9537
9572
  return /* @__PURE__ */ jsx(
9538
9573
  ModalBaseCloseButton,
9539
9574
  {
@@ -9543,10 +9578,10 @@ const defaultProps$D = {}, DrawerCloseButton = factory((_props, ref) => {
9543
9578
  }
9544
9579
  );
9545
9580
  });
9546
- DrawerCloseButton.classes = classes$f;
9581
+ DrawerCloseButton.classes = classes$i;
9547
9582
  DrawerCloseButton.displayName = "@mantine/core/DrawerCloseButton";
9548
- const defaultProps$C = {}, DrawerContent = factory((_props, ref) => {
9549
- const props = useProps("DrawerContent", defaultProps$C, _props), { classNames, className, style, styles, vars, children, radius, ...others } = props, ctx = useDrawerContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
9583
+ const defaultProps$S = {}, DrawerContent = factory((_props, ref) => {
9584
+ const props = useProps("DrawerContent", defaultProps$S, _props), { classNames, className, style, styles, vars, children, radius, __hidden, ...others } = props, ctx = useDrawerContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
9550
9585
  return /* @__PURE__ */ jsx(
9551
9586
  ModalBaseContent,
9552
9587
  {
@@ -9555,14 +9590,15 @@ const defaultProps$C = {}, DrawerContent = factory((_props, ref) => {
9555
9590
  ref,
9556
9591
  ...others,
9557
9592
  radius: radius || ctx.radius || 0,
9593
+ "data-hidden": __hidden || void 0,
9558
9594
  children: /* @__PURE__ */ jsx(Scroll, { style: { height: "calc(100vh - var(--drawer-offset) * 2)" }, children })
9559
9595
  }
9560
9596
  );
9561
9597
  });
9562
- DrawerContent.classes = classes$f;
9598
+ DrawerContent.classes = classes$i;
9563
9599
  DrawerContent.displayName = "@mantine/core/DrawerContent";
9564
- const defaultProps$B = {}, DrawerHeader = factory((_props, ref) => {
9565
- const props = useProps("DrawerHeader", defaultProps$B, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9600
+ const defaultProps$R = {}, DrawerHeader = factory((_props, ref) => {
9601
+ const props = useProps("DrawerHeader", defaultProps$R, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9566
9602
  return /* @__PURE__ */ jsx(
9567
9603
  ModalBaseHeader,
9568
9604
  {
@@ -9572,10 +9608,10 @@ const defaultProps$B = {}, DrawerHeader = factory((_props, ref) => {
9572
9608
  }
9573
9609
  );
9574
9610
  });
9575
- DrawerHeader.classes = classes$f;
9611
+ DrawerHeader.classes = classes$i;
9576
9612
  DrawerHeader.displayName = "@mantine/core/DrawerHeader";
9577
- const defaultProps$A = {}, DrawerOverlay = factory((_props, ref) => {
9578
- const props = useProps("DrawerOverlay", defaultProps$A, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9613
+ const defaultProps$Q = {}, DrawerOverlay = factory((_props, ref) => {
9614
+ const props = useProps("DrawerOverlay", defaultProps$Q, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9579
9615
  return /* @__PURE__ */ jsx(
9580
9616
  ModalBaseOverlay,
9581
9617
  {
@@ -9585,7 +9621,7 @@ const defaultProps$A = {}, DrawerOverlay = factory((_props, ref) => {
9585
9621
  }
9586
9622
  );
9587
9623
  });
9588
- DrawerOverlay.classes = classes$f;
9624
+ DrawerOverlay.classes = classes$i;
9589
9625
  DrawerOverlay.displayName = "@mantine/core/DrawerOverlay";
9590
9626
  function getDrawerAlign(position) {
9591
9627
  switch (position) {
@@ -9611,7 +9647,7 @@ const transitions = {
9611
9647
  bottom: "slide-up",
9612
9648
  right: "slide-right",
9613
9649
  left: "slide-left"
9614
- }, defaultProps$z = {
9650
+ }, defaultProps$P = {
9615
9651
  closeOnClickOutside: !0,
9616
9652
  withinPortal: !0,
9617
9653
  lockScroll: !0,
@@ -9621,7 +9657,7 @@ const transitions = {
9621
9657
  keepMounted: !1,
9622
9658
  zIndex: getDefaultZIndex("modal"),
9623
9659
  position: "left"
9624
- }, varsResolver$e = (_, { position, size: size2, offset: offset2 }) => ({
9660
+ }, varsResolver$h = (_, { position, size: size2, offset: offset2 }) => ({
9625
9661
  root: {
9626
9662
  "--drawer-size": getSize(size2, "drawer-size"),
9627
9663
  "--drawer-flex": getDrawerFlex(position),
@@ -9631,7 +9667,7 @@ const transitions = {
9631
9667
  "--drawer-offset": rem(offset2)
9632
9668
  }
9633
9669
  }), DrawerRoot = factory((_props, ref) => {
9634
- const props = useProps("DrawerRoot", defaultProps$z, _props), {
9670
+ const props = useProps("DrawerRoot", defaultProps$P, _props), {
9635
9671
  classNames,
9636
9672
  className,
9637
9673
  style,
@@ -9645,7 +9681,7 @@ const transitions = {
9645
9681
  ...others
9646
9682
  } = props, { dir } = useDirection(), getStyles2 = useStyles({
9647
9683
  name: "Drawer",
9648
- classes: classes$f,
9684
+ classes: classes$i,
9649
9685
  props,
9650
9686
  className,
9651
9687
  style,
@@ -9653,7 +9689,7 @@ const transitions = {
9653
9689
  styles,
9654
9690
  unstyled,
9655
9691
  vars,
9656
- varsResolver: varsResolver$e
9692
+ varsResolver: varsResolver$h
9657
9693
  }), drawerTransition = (dir === "rtl" ? rtlTransitions : transitions)[position];
9658
9694
  return /* @__PURE__ */ jsx(DrawerProvider, { value: { scrollAreaComponent, getStyles: getStyles2, radius }, children: /* @__PURE__ */ jsx(
9659
9695
  ModalBase,
@@ -9666,10 +9702,33 @@ const transitions = {
9666
9702
  }
9667
9703
  ) });
9668
9704
  });
9669
- DrawerRoot.classes = classes$f;
9705
+ DrawerRoot.classes = classes$i;
9670
9706
  DrawerRoot.displayName = "@mantine/core/DrawerRoot";
9671
- const defaultProps$y = {}, DrawerTitle = factory((_props, ref) => {
9672
- const props = useProps("DrawerTitle", defaultProps$y, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9707
+ const [DrawerStackProvider, useDrawerStackContext] = createOptionalContext();
9708
+ function DrawerStack({ children }) {
9709
+ const [stack, setStack] = useState([]), [maxZIndex, setMaxZIndex] = useState(getDefaultZIndex("modal"));
9710
+ return /* @__PURE__ */ jsx(
9711
+ DrawerStackProvider,
9712
+ {
9713
+ value: {
9714
+ stack,
9715
+ addModal: (id, zIndex) => {
9716
+ setStack((current) => [.../* @__PURE__ */ new Set([...current, id])]), setMaxZIndex(
9717
+ (current) => typeof zIndex == "number" && typeof current == "number" ? Math.max(current, zIndex) : current
9718
+ );
9719
+ },
9720
+ removeModal: (id) => setStack((current) => current.filter((currentId) => currentId !== id)),
9721
+ getZIndex: (id) => `calc(${maxZIndex} + ${stack.indexOf(id)} + 1)`,
9722
+ currentId: stack[stack.length - 1],
9723
+ maxZIndex
9724
+ },
9725
+ children
9726
+ }
9727
+ );
9728
+ }
9729
+ DrawerStack.displayName = "@mantine/core/DrawerStack";
9730
+ const defaultProps$O = {}, DrawerTitle = factory((_props, ref) => {
9731
+ const props = useProps("DrawerTitle", defaultProps$O, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useDrawerContext();
9673
9732
  return /* @__PURE__ */ jsx(
9674
9733
  ModalBaseTitle,
9675
9734
  {
@@ -9679,9 +9738,9 @@ const defaultProps$y = {}, DrawerTitle = factory((_props, ref) => {
9679
9738
  }
9680
9739
  );
9681
9740
  });
9682
- DrawerTitle.classes = classes$f;
9741
+ DrawerTitle.classes = classes$i;
9683
9742
  DrawerTitle.displayName = "@mantine/core/DrawerTitle";
9684
- const defaultProps$x = {
9743
+ const defaultProps$N = {
9685
9744
  closeOnClickOutside: !0,
9686
9745
  withinPortal: !0,
9687
9746
  lockScroll: !0,
@@ -9700,20 +9759,46 @@ const defaultProps$x = {
9700
9759
  withCloseButton,
9701
9760
  closeButtonProps,
9702
9761
  children,
9762
+ opened,
9763
+ stackId,
9764
+ zIndex,
9703
9765
  ...others
9704
- } = useProps("Drawer", defaultProps$x, _props), hasHeader = !!title || withCloseButton;
9705
- return /* @__PURE__ */ jsxs(DrawerRoot, { ref, ...others, children: [
9706
- withOverlay && /* @__PURE__ */ jsx(DrawerOverlay, { ...overlayProps }),
9707
- /* @__PURE__ */ jsxs(DrawerContent, { children: [
9708
- hasHeader && /* @__PURE__ */ jsxs(DrawerHeader, { children: [
9709
- title && /* @__PURE__ */ jsx(DrawerTitle, { children: title }),
9710
- withCloseButton && /* @__PURE__ */ jsx(DrawerCloseButton, { ...closeButtonProps })
9711
- ] }),
9712
- /* @__PURE__ */ jsx(DrawerBody, { children })
9713
- ] })
9714
- ] });
9766
+ } = useProps("Drawer", defaultProps$N, _props), ctx = useDrawerStackContext(), hasHeader = !!title || withCloseButton, stackProps = ctx && stackId ? {
9767
+ closeOnEscape: ctx.currentId === stackId,
9768
+ trapFocus: ctx.currentId === stackId,
9769
+ zIndex: ctx.getZIndex(stackId)
9770
+ } : {}, overlayVisible = withOverlay === !1 ? !1 : stackId && ctx ? ctx.currentId === stackId : opened;
9771
+ return useEffect(() => {
9772
+ ctx && stackId && (opened ? ctx.addModal(stackId, zIndex || getDefaultZIndex("modal")) : ctx.removeModal(stackId));
9773
+ }, [opened, stackId, zIndex]), /* @__PURE__ */ jsxs(
9774
+ DrawerRoot,
9775
+ {
9776
+ ref,
9777
+ opened,
9778
+ zIndex: ctx && stackId ? ctx.getZIndex(stackId) : zIndex,
9779
+ ...others,
9780
+ ...stackProps,
9781
+ children: [
9782
+ withOverlay && /* @__PURE__ */ jsx(
9783
+ DrawerOverlay,
9784
+ {
9785
+ visible: overlayVisible,
9786
+ transitionProps: ctx && stackId ? { duration: 0 } : void 0,
9787
+ ...overlayProps
9788
+ }
9789
+ ),
9790
+ /* @__PURE__ */ jsxs(DrawerContent, { __hidden: ctx && stackId && opened ? stackId !== ctx.currentId : !1, children: [
9791
+ hasHeader && /* @__PURE__ */ jsxs(DrawerHeader, { children: [
9792
+ title && /* @__PURE__ */ jsx(DrawerTitle, { children: title }),
9793
+ withCloseButton && /* @__PURE__ */ jsx(DrawerCloseButton, { ...closeButtonProps })
9794
+ ] }),
9795
+ /* @__PURE__ */ jsx(DrawerBody, { children })
9796
+ ] })
9797
+ ]
9798
+ }
9799
+ );
9715
9800
  });
9716
- Drawer.classes = classes$f;
9801
+ Drawer.classes = classes$i;
9717
9802
  Drawer.displayName = "@mantine/core/Drawer";
9718
9803
  Drawer.Root = DrawerRoot;
9719
9804
  Drawer.Overlay = DrawerOverlay;
@@ -9722,6 +9807,7 @@ Drawer.Body = DrawerBody;
9722
9807
  Drawer.Header = DrawerHeader;
9723
9808
  Drawer.Title = DrawerTitle;
9724
9809
  Drawer.CloseButton = DrawerCloseButton;
9810
+ Drawer.Stack = DrawerStack;
9725
9811
  function useDelayedHover({ open, close, openDelay, closeDelay }) {
9726
9812
  const openTimeout = useRef(-1), closeTimeout = useRef(-1), clearTimeouts = () => {
9727
9813
  window.clearTimeout(openTimeout.current), window.clearTimeout(closeTimeout.current);
@@ -9732,24 +9818,87 @@ function useDelayedHover({ open, close, openDelay, closeDelay }) {
9732
9818
  };
9733
9819
  return useEffect(() => clearTimeouts, []), { openDropdown, closeDropdown };
9734
9820
  }
9821
+ function getMarkColor({ color, theme, defaultShade }) {
9822
+ const parsed = parseThemeColor({ color, theme });
9823
+ return parsed.isThemeColor ? parsed.shade === void 0 ? `var(--mantine-color-${parsed.color}-${defaultShade})` : `var(${parsed.variable})` : color;
9824
+ }
9825
+ var __default__$h = { root: "m_bcb3f3c2" };
9826
+ const classes$h = __default__$h, defaultProps$M = {
9827
+ color: "yellow"
9828
+ }, varsResolver$g = (theme, { color }) => ({
9829
+ root: {
9830
+ "--mark-bg-dark": getMarkColor({ color, theme, defaultShade: 5 }),
9831
+ "--mark-bg-light": getMarkColor({ color, theme, defaultShade: 2 })
9832
+ }
9833
+ }), Mark = factory((_props, ref) => {
9834
+ const props = useProps("Mark", defaultProps$M, _props), { classNames, className, style, styles, unstyled, vars, color, variant, ...others } = props, getStyles2 = useStyles({
9835
+ name: "Mark",
9836
+ props,
9837
+ className,
9838
+ style,
9839
+ classes: classes$h,
9840
+ classNames,
9841
+ styles,
9842
+ unstyled,
9843
+ vars,
9844
+ varsResolver: varsResolver$g
9845
+ });
9846
+ return /* @__PURE__ */ jsx(Box, { component: "mark", ref, variant, ...getStyles2("root"), ...others });
9847
+ });
9848
+ Mark.classes = classes$h;
9849
+ Mark.displayName = "@mantine/core/Mark";
9850
+ function escapeRegex(value) {
9851
+ return value.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&");
9852
+ }
9853
+ function highlighter(value, _highlight) {
9854
+ if (_highlight == null)
9855
+ return [{ chunk: value, highlighted: !1 }];
9856
+ const highlight = Array.isArray(_highlight) ? _highlight.map(escapeRegex) : escapeRegex(_highlight);
9857
+ if (!(Array.isArray(highlight) ? highlight.filter((part) => part.trim().length > 0).length > 0 : highlight.trim() !== ""))
9858
+ return [{ chunk: value, highlighted: !1 }];
9859
+ const matcher = typeof highlight == "string" ? highlight.trim() : highlight.filter((part) => part.trim().length !== 0).map((part) => part.trim()).sort((a, b) => b.length - a.length).join("|"), re = new RegExp(`(${matcher})`, "gi");
9860
+ return value.split(re).map((part) => ({ chunk: part, highlighted: re.test(part) })).filter(({ chunk }) => chunk);
9861
+ }
9862
+ const defaultProps$L = {}, Highlight = polymorphicFactory((props, ref) => {
9863
+ const { unstyled, children, highlight, highlightStyles, color, ...others } = useProps(
9864
+ "Highlight",
9865
+ defaultProps$L,
9866
+ props
9867
+ ), highlightChunks = highlighter(children, highlight);
9868
+ return /* @__PURE__ */ jsx(Text, { unstyled, ref, ...others, __staticSelector: "Highlight", children: highlightChunks.map(
9869
+ ({ chunk, highlighted }, i) => highlighted ? /* @__PURE__ */ jsx(
9870
+ Mark,
9871
+ {
9872
+ unstyled,
9873
+ color,
9874
+ style: highlightStyles,
9875
+ "data-highlight": chunk,
9876
+ children: chunk
9877
+ },
9878
+ i
9879
+ ) : /* @__PURE__ */ jsx("span", { children: chunk }, i)
9880
+ ) });
9881
+ });
9882
+ Highlight.classes = Text.classes;
9883
+ Highlight.displayName = "@mantine/core/Highlight";
9735
9884
  const [HoverCardContextProvider, useHoverCardContext] = createSafeContext(
9736
9885
  "HoverCard component was not found in the tree"
9737
- ), defaultProps$w = {};
9886
+ ), defaultProps$K = {};
9738
9887
  function HoverCardDropdown(props) {
9739
9888
  const { children, onMouseEnter, onMouseLeave, ...others } = useProps(
9740
9889
  "HoverCardDropdown",
9741
- defaultProps$w,
9890
+ defaultProps$K,
9742
9891
  props
9743
9892
  ), ctx = useHoverCardContext(), handleMouseEnter = createEventHandler(onMouseEnter, ctx.openDropdown), handleMouseLeave = createEventHandler(onMouseLeave, ctx.closeDropdown);
9744
9893
  return /* @__PURE__ */ jsx(Popover.Dropdown, { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ...others, children });
9745
9894
  }
9746
9895
  HoverCardDropdown.displayName = "@mantine/core/HoverCardDropdown";
9747
- const defaultProps$v = {
9896
+ const defaultProps$J = {
9748
9897
  refProp: "ref"
9749
9898
  }, HoverCardTarget = forwardRef((props, ref) => {
9750
9899
  const { children, refProp, eventPropsWrapperName, ...others } = useProps(
9751
9900
  "HoverCardTarget",
9752
- defaultProps$v,
9901
+ defaultProps$J,
9753
9902
  props
9754
9903
  );
9755
9904
  if (!isElement$1(children))
@@ -9763,7 +9912,7 @@ const defaultProps$v = {
9763
9912
  ) });
9764
9913
  });
9765
9914
  HoverCardTarget.displayName = "@mantine/core/HoverCardTarget";
9766
- const defaultProps$u = {
9915
+ const defaultProps$I = {
9767
9916
  openDelay: 0,
9768
9917
  closeDelay: 150,
9769
9918
  initiallyOpened: !1
@@ -9771,7 +9920,7 @@ const defaultProps$u = {
9771
9920
  function HoverCard(props) {
9772
9921
  const { children, onOpen, onClose, openDelay, closeDelay, initiallyOpened, ...others } = useProps(
9773
9922
  "HoverCard",
9774
- defaultProps$u,
9923
+ defaultProps$I,
9775
9924
  props
9776
9925
  ), [opened, { open, close }] = useDisclosure(initiallyOpened, { onClose, onOpen }), { openDropdown, closeDropdown } = useDelayedHover({ open, close, openDelay, closeDelay });
9777
9926
  return /* @__PURE__ */ jsx(HoverCardContextProvider, { value: { openDropdown, closeDropdown }, children: /* @__PURE__ */ jsx(Popover, { ...others, opened, __staticSelector: "HoverCard", children }) });
@@ -9780,14 +9929,14 @@ HoverCard.displayName = "@mantine/core/HoverCard";
9780
9929
  HoverCard.Target = HoverCardTarget;
9781
9930
  HoverCard.Dropdown = HoverCardDropdown;
9782
9931
  HoverCard.extend = (input) => input;
9783
- var __default__$e = { root: "m_9e117634" };
9784
- const classes$e = __default__$e, defaultProps$t = {}, varsResolver$d = (_, { radius, fit }) => ({
9932
+ var __default__$g = { root: "m_9e117634" };
9933
+ const classes$g = __default__$g, defaultProps$H = {}, varsResolver$f = (_, { radius, fit }) => ({
9785
9934
  root: {
9786
9935
  "--image-radius": radius === void 0 ? void 0 : getRadius(radius),
9787
9936
  "--image-object-fit": fit
9788
9937
  }
9789
9938
  }), Image = polymorphicFactory((_props, ref) => {
9790
- const props = useProps("Image", defaultProps$t, _props), {
9939
+ const props = useProps("Image", defaultProps$H, _props), {
9791
9940
  classNames,
9792
9941
  className,
9793
9942
  style,
@@ -9805,7 +9954,7 @@ const classes$e = __default__$e, defaultProps$t = {}, varsResolver$d = (_, { rad
9805
9954
  useEffect(() => setError(!src), [src]);
9806
9955
  const getStyles2 = useStyles({
9807
9956
  name: "Image",
9808
- classes: classes$e,
9957
+ classes: classes$g,
9809
9958
  props,
9810
9959
  className,
9811
9960
  style,
@@ -9813,7 +9962,7 @@ const classes$e = __default__$e, defaultProps$t = {}, varsResolver$d = (_, { rad
9813
9962
  styles,
9814
9963
  unstyled,
9815
9964
  vars,
9816
- varsResolver: varsResolver$d
9965
+ varsResolver: varsResolver$f
9817
9966
  });
9818
9967
  return error && fallbackSrc ? /* @__PURE__ */ jsx(
9819
9968
  Box,
@@ -9841,19 +9990,19 @@ const classes$e = __default__$e, defaultProps$t = {}, varsResolver$d = (_, { rad
9841
9990
  }
9842
9991
  );
9843
9992
  });
9844
- Image.classes = classes$e;
9993
+ Image.classes = classes$g;
9845
9994
  Image.displayName = "@mantine/core/Image";
9846
- var __default__$d = { root: "m_6e45937b", loader: "m_e8eb006c", overlay: "m_df587f17" };
9847
- const classes$d = __default__$d, defaultProps$s = {
9995
+ var __default__$f = { root: "m_6e45937b", loader: "m_e8eb006c", overlay: "m_df587f17" };
9996
+ const classes$f = __default__$f, defaultProps$G = {
9848
9997
  transitionProps: { transition: "fade", duration: 0 },
9849
9998
  overlayProps: { backgroundOpacity: 0.75 },
9850
9999
  zIndex: getDefaultZIndex("overlay")
9851
- }, varsResolver$c = (_, { zIndex }) => ({
10000
+ }, varsResolver$e = (_, { zIndex }) => ({
9852
10001
  root: {
9853
10002
  "--lo-z-index": zIndex?.toString()
9854
10003
  }
9855
10004
  }), LoadingOverlay = factory((_props, ref) => {
9856
- const props = useProps("LoadingOverlay", defaultProps$s, _props), {
10005
+ const props = useProps("LoadingOverlay", defaultProps$G, _props), {
9857
10006
  classNames,
9858
10007
  className,
9859
10008
  style,
@@ -9868,7 +10017,7 @@ const classes$d = __default__$d, defaultProps$s = {
9868
10017
  ...others
9869
10018
  } = props, theme = useMantineTheme(), getStyles2 = useStyles({
9870
10019
  name: "LoadingOverlay",
9871
- classes: classes$d,
10020
+ classes: classes$f,
9872
10021
  props,
9873
10022
  className,
9874
10023
  style,
@@ -9876,8 +10025,8 @@ const classes$d = __default__$d, defaultProps$s = {
9876
10025
  styles,
9877
10026
  unstyled,
9878
10027
  vars,
9879
- varsResolver: varsResolver$c
9880
- }), _overlayProps = { ...defaultProps$s.overlayProps, ...overlayProps };
10028
+ varsResolver: varsResolver$e
10029
+ }), _overlayProps = { ...defaultProps$G.overlayProps, ...overlayProps };
9881
10030
  return /* @__PURE__ */ jsx(Transition, { transition: "fade", ...transitionProps, mounted: !!visible2, children: (transitionStyles) => /* @__PURE__ */ jsxs(Box, { ...getStyles2("root", { style: transitionStyles }), ref, ...others, children: [
9882
10031
  /* @__PURE__ */ jsx(Loader, { ...getStyles2("loader"), unstyled, ...loaderProps }),
9883
10032
  /* @__PURE__ */ jsx(
@@ -9902,16 +10051,16 @@ const classes$d = __default__$d, defaultProps$s = {
9902
10051
  )
9903
10052
  ] }) });
9904
10053
  });
9905
- LoadingOverlay.classes = classes$d;
10054
+ LoadingOverlay.classes = classes$f;
9906
10055
  LoadingOverlay.displayName = "@mantine/core/LoadingOverlay";
9907
10056
  const [MenuContextProvider, useMenuContext] = createSafeContext(
9908
10057
  "Menu component was not found in the tree"
9909
10058
  );
9910
- var __default__$c = { dropdown: "m_dc9b7c9f", label: "m_9bfac126", divider: "m_efdf90cb", item: "m_99ac2aa1", itemLabel: "m_5476e0d3", itemSection: "m_8b75e504" };
9911
- const classes$c = __default__$c, defaultProps$r = {}, MenuDivider = factory((props, ref) => {
10059
+ var __default__$e = { dropdown: "m_dc9b7c9f", label: "m_9bfac126", divider: "m_efdf90cb", item: "m_99ac2aa1", itemLabel: "m_5476e0d3", itemSection: "m_8b75e504" };
10060
+ const classes$e = __default__$e, defaultProps$F = {}, MenuDivider = factory((props, ref) => {
9912
10061
  const { classNames, className, style, styles, vars, ...others } = useProps(
9913
10062
  "MenuDivider",
9914
- defaultProps$r,
10063
+ defaultProps$F,
9915
10064
  props
9916
10065
  ), ctx = useMenuContext();
9917
10066
  return /* @__PURE__ */ jsx(
@@ -9923,9 +10072,9 @@ const classes$c = __default__$c, defaultProps$r = {}, MenuDivider = factory((pro
9923
10072
  }
9924
10073
  );
9925
10074
  });
9926
- MenuDivider.classes = classes$c;
10075
+ MenuDivider.classes = classes$e;
9927
10076
  MenuDivider.displayName = "@mantine/core/MenuDivider";
9928
- const defaultProps$q = {}, MenuDropdown = factory((props, ref) => {
10077
+ const defaultProps$E = {}, MenuDropdown = factory((props, ref) => {
9929
10078
  const {
9930
10079
  classNames,
9931
10080
  className,
@@ -9937,7 +10086,7 @@ const defaultProps$q = {}, MenuDropdown = factory((props, ref) => {
9937
10086
  onKeyDown,
9938
10087
  children,
9939
10088
  ...others
9940
- } = useProps("MenuDropdown", defaultProps$q, props), wrapperRef = useRef(null), ctx = useMenuContext(), handleKeyDown = createEventHandler(onKeyDown, (event) => {
10089
+ } = useProps("MenuDropdown", defaultProps$E, props), wrapperRef = useRef(null), ctx = useMenuContext(), handleKeyDown = createEventHandler(onKeyDown, (event) => {
9941
10090
  (event.key === "ArrowUp" || event.key === "ArrowDown") && (event.preventDefault(), wrapperRef.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus());
9942
10091
  }), handleMouseEnter = createEventHandler(
9943
10092
  onMouseEnter,
@@ -9972,9 +10121,9 @@ const defaultProps$q = {}, MenuDropdown = factory((props, ref) => {
9972
10121
  }
9973
10122
  );
9974
10123
  });
9975
- MenuDropdown.classes = classes$c;
10124
+ MenuDropdown.classes = classes$e;
9976
10125
  MenuDropdown.displayName = "@mantine/core/MenuDropdown";
9977
- const defaultProps$p = {}, MenuItem = polymorphicFactory((props, ref) => {
10126
+ const defaultProps$D = {}, MenuItem = polymorphicFactory((props, ref) => {
9978
10127
  const {
9979
10128
  classNames,
9980
10129
  className,
@@ -9988,7 +10137,7 @@ const defaultProps$p = {}, MenuItem = polymorphicFactory((props, ref) => {
9988
10137
  children,
9989
10138
  disabled,
9990
10139
  ...others
9991
- } = useProps("MenuItem", defaultProps$p, props), ctx = useMenuContext(), theme = useMantineTheme(), { dir } = useDirection(), itemRef = useRef(), itemIndex = ctx.getItemIndex(itemRef.current), _others = others, handleMouseLeave = createEventHandler(_others.onMouseLeave, () => ctx.setHovered(-1)), handleMouseEnter = createEventHandler(
10140
+ } = useProps("MenuItem", defaultProps$D, props), ctx = useMenuContext(), theme = useMantineTheme(), { dir } = useDirection(), itemRef = useRef(), itemIndex = ctx.getItemIndex(itemRef.current), _others = others, handleMouseLeave = createEventHandler(_others.onMouseLeave, () => ctx.setHovered(-1)), handleMouseEnter = createEventHandler(
9992
10141
  _others.onMouseEnter,
9993
10142
  () => ctx.setHovered(ctx.getItemIndex(itemRef.current))
9994
10143
  ), handleClick = createEventHandler(_others.onClick, () => {
@@ -10036,12 +10185,12 @@ const defaultProps$p = {}, MenuItem = polymorphicFactory((props, ref) => {
10036
10185
  }
10037
10186
  );
10038
10187
  });
10039
- MenuItem.classes = classes$c;
10188
+ MenuItem.classes = classes$e;
10040
10189
  MenuItem.displayName = "@mantine/core/MenuItem";
10041
- const defaultProps$o = {}, MenuLabel = factory((props, ref) => {
10190
+ const defaultProps$C = {}, MenuLabel = factory((props, ref) => {
10042
10191
  const { classNames, className, style, styles, vars, ...others } = useProps(
10043
10192
  "MenuLabel",
10044
- defaultProps$o,
10193
+ defaultProps$C,
10045
10194
  props
10046
10195
  ), ctx = useMenuContext();
10047
10196
  return /* @__PURE__ */ jsx(
@@ -10053,12 +10202,12 @@ const defaultProps$o = {}, MenuLabel = factory((props, ref) => {
10053
10202
  }
10054
10203
  );
10055
10204
  });
10056
- MenuLabel.classes = classes$c;
10205
+ MenuLabel.classes = classes$e;
10057
10206
  MenuLabel.displayName = "@mantine/core/MenuLabel";
10058
- const defaultProps$n = {
10207
+ const defaultProps$B = {
10059
10208
  refProp: "ref"
10060
10209
  }, MenuTarget = forwardRef((props, ref) => {
10061
- const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$n, props);
10210
+ const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$B, props);
10062
10211
  if (!isElement$1(children))
10063
10212
  throw new Error(
10064
10213
  "Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
@@ -10079,7 +10228,7 @@ const defaultProps$n = {
10079
10228
  }) });
10080
10229
  });
10081
10230
  MenuTarget.displayName = "@mantine/core/MenuTarget";
10082
- const defaultProps$m = {
10231
+ const defaultProps$A = {
10083
10232
  trapFocus: !0,
10084
10233
  closeOnItemClick: !0,
10085
10234
  clickOutsideEvents: ["mousedown", "touchstart", "keydown"],
@@ -10090,7 +10239,7 @@ const defaultProps$m = {
10090
10239
  menuItemTabIndex: -1
10091
10240
  };
10092
10241
  function Menu(_props) {
10093
- const props = useProps("Menu", defaultProps$m, _props), {
10242
+ const props = useProps("Menu", defaultProps$A, _props), {
10094
10243
  children,
10095
10244
  onOpen,
10096
10245
  onClose,
@@ -10114,7 +10263,7 @@ function Menu(_props) {
10114
10263
  ...others
10115
10264
  } = props, getStyles2 = useStyles({
10116
10265
  name: "Menu",
10117
- classes: classes$c,
10266
+ classes: classes$e,
10118
10267
  props,
10119
10268
  classNames,
10120
10269
  styles,
@@ -10180,7 +10329,7 @@ function Menu(_props) {
10180
10329
  );
10181
10330
  }
10182
10331
  Menu.extend = (input) => input;
10183
- Menu.classes = classes$c;
10332
+ Menu.classes = classes$e;
10184
10333
  Menu.displayName = "@mantine/core/Menu";
10185
10334
  Menu.Item = MenuItem;
10186
10335
  Menu.Label = MenuLabel;
@@ -10190,9 +10339,9 @@ Menu.Divider = MenuDivider;
10190
10339
  const [ModalProvider, useModalContext] = createSafeContext(
10191
10340
  "Modal component was not found in tree"
10192
10341
  );
10193
- var __default__$b = { root: "m_9df02822", content: "m_54c44539", inner: "m_1f958f16", header: "m_d0e2b9cd" };
10194
- const classes$b = __default__$b, defaultProps$l = {}, ModalBody = factory((_props, ref) => {
10195
- const props = useProps("ModalBody", defaultProps$l, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useModalContext();
10342
+ var __default__$d = { root: "m_9df02822", content: "m_54c44539", inner: "m_1f958f16", header: "m_d0e2b9cd" };
10343
+ const classes$d = __default__$d, defaultProps$z = {}, ModalBody = factory((_props, ref) => {
10344
+ const props = useProps("ModalBody", defaultProps$z, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useModalContext();
10196
10345
  return /* @__PURE__ */ jsx(
10197
10346
  ModalBaseBody,
10198
10347
  {
@@ -10202,10 +10351,23 @@ const classes$b = __default__$b, defaultProps$l = {}, ModalBody = factory((_prop
10202
10351
  }
10203
10352
  );
10204
10353
  });
10205
- ModalBody.classes = classes$b;
10354
+ ModalBody.classes = classes$d;
10206
10355
  ModalBody.displayName = "@mantine/core/ModalBody";
10207
- const defaultProps$k = {}, ModalContent = factory((_props, ref) => {
10208
- const props = useProps("ModalContent", defaultProps$k, _props), { classNames, className, style, styles, vars, children, ...others } = props, ctx = useModalContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
10356
+ const defaultProps$y = {}, ModalCloseButton = factory((_props, ref) => {
10357
+ const props = useProps("ModalCloseButton", defaultProps$y, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useModalContext();
10358
+ return /* @__PURE__ */ jsx(
10359
+ ModalBaseCloseButton,
10360
+ {
10361
+ ref,
10362
+ ...ctx.getStyles("close", { classNames, style, styles, className }),
10363
+ ...others
10364
+ }
10365
+ );
10366
+ });
10367
+ ModalCloseButton.classes = classes$d;
10368
+ ModalCloseButton.displayName = "@mantine/core/ModalCloseButton";
10369
+ const defaultProps$x = {}, ModalContent = factory((_props, ref) => {
10370
+ const props = useProps("ModalContent", defaultProps$x, _props), { classNames, className, style, styles, vars, children, __hidden, ...others } = props, ctx = useModalContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
10209
10371
  return /* @__PURE__ */ jsx(
10210
10372
  ModalBaseContent,
10211
10373
  {
@@ -10213,6 +10375,7 @@ const defaultProps$k = {}, ModalContent = factory((_props, ref) => {
10213
10375
  innerProps: ctx.getStyles("inner", { className, style, styles, classNames }),
10214
10376
  "data-full-screen": ctx.fullScreen || void 0,
10215
10377
  "data-modal-content": !0,
10378
+ "data-hidden": __hidden || void 0,
10216
10379
  ref,
10217
10380
  ...others,
10218
10381
  children: /* @__PURE__ */ jsx(
@@ -10227,10 +10390,23 @@ const defaultProps$k = {}, ModalContent = factory((_props, ref) => {
10227
10390
  }
10228
10391
  );
10229
10392
  });
10230
- ModalContent.classes = classes$b;
10393
+ ModalContent.classes = classes$d;
10231
10394
  ModalContent.displayName = "@mantine/core/ModalContent";
10232
- const defaultProps$j = {}, ModalOverlay = factory((_props, ref) => {
10233
- const props = useProps("ModalOverlay", defaultProps$j, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useModalContext();
10395
+ const defaultProps$w = {}, ModalHeader = factory((_props, ref) => {
10396
+ const props = useProps("ModalHeader", defaultProps$w, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useModalContext();
10397
+ return /* @__PURE__ */ jsx(
10398
+ ModalBaseHeader,
10399
+ {
10400
+ ref,
10401
+ ...ctx.getStyles("header", { classNames, style, styles, className }),
10402
+ ...others
10403
+ }
10404
+ );
10405
+ });
10406
+ ModalHeader.classes = classes$d;
10407
+ ModalHeader.displayName = "@mantine/core/ModalHeader";
10408
+ const defaultProps$v = {}, ModalOverlay = factory((_props, ref) => {
10409
+ const props = useProps("ModalOverlay", defaultProps$v, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useModalContext();
10234
10410
  return /* @__PURE__ */ jsx(
10235
10411
  ModalBaseOverlay,
10236
10412
  {
@@ -10240,9 +10416,9 @@ const defaultProps$j = {}, ModalOverlay = factory((_props, ref) => {
10240
10416
  }
10241
10417
  );
10242
10418
  });
10243
- ModalOverlay.classes = classes$b;
10419
+ ModalOverlay.classes = classes$d;
10244
10420
  ModalOverlay.displayName = "@mantine/core/ModalOverlay";
10245
- const defaultProps$i = {
10421
+ const defaultProps$u = {
10246
10422
  __staticSelector: "Modal",
10247
10423
  closeOnClickOutside: !0,
10248
10424
  withinPortal: !0,
@@ -10254,7 +10430,7 @@ const defaultProps$i = {
10254
10430
  zIndex: getDefaultZIndex("modal"),
10255
10431
  transitionProps: { duration: 200, transition: "fade-down" },
10256
10432
  yOffset: "5dvh"
10257
- }, varsResolver$b = (_, { radius, size: size2, yOffset, xOffset }) => ({
10433
+ }, varsResolver$d = (_, { radius, size: size2, yOffset, xOffset }) => ({
10258
10434
  root: {
10259
10435
  "--modal-radius": radius === void 0 ? void 0 : getRadius(radius),
10260
10436
  "--modal-size": getSize(size2, "modal-size"),
@@ -10262,7 +10438,7 @@ const defaultProps$i = {
10262
10438
  "--modal-x-offset": rem(xOffset)
10263
10439
  }
10264
10440
  }), ModalRoot = factory((_props, ref) => {
10265
- const props = useProps("ModalRoot", defaultProps$i, _props), {
10441
+ const props = useProps("ModalRoot", defaultProps$u, _props), {
10266
10442
  classNames,
10267
10443
  className,
10268
10444
  style,
@@ -10279,7 +10455,7 @@ const defaultProps$i = {
10279
10455
  ...others
10280
10456
  } = props, getStyles2 = useStyles({
10281
10457
  name: __staticSelector,
10282
- classes: classes$b,
10458
+ classes: classes$d,
10283
10459
  props,
10284
10460
  className,
10285
10461
  style,
@@ -10287,7 +10463,7 @@ const defaultProps$i = {
10287
10463
  styles,
10288
10464
  unstyled,
10289
10465
  vars,
10290
- varsResolver: varsResolver$b
10466
+ varsResolver: varsResolver$d
10291
10467
  });
10292
10468
  return /* @__PURE__ */ jsx(ModalProvider, { value: { yOffset, scrollAreaComponent, getStyles: getStyles2, fullScreen }, children: /* @__PURE__ */ jsx(
10293
10469
  ModalBase,
@@ -10301,40 +10477,261 @@ const defaultProps$i = {
10301
10477
  }
10302
10478
  ) });
10303
10479
  });
10304
- ModalRoot.classes = classes$b;
10480
+ ModalRoot.classes = classes$d;
10305
10481
  ModalRoot.displayName = "@mantine/core/ModalRoot";
10306
- var __default__$a = { root: "m_a513464", icon: "m_a4ceffb", loader: "m_b0920b15", body: "m_a49ed24", title: "m_3feedf16", description: "m_3d733a3a", closeButton: "m_919a4d88" };
10307
- const classes$a = __default__$a, defaultProps$h = {
10308
- withCloseButton: !0
10309
- }, varsResolver$a = (theme, { radius, color }) => ({
10310
- root: {
10311
- "--notification-radius": radius === void 0 ? void 0 : getRadius(radius),
10312
- "--notification-color": color ? getThemeColor(color, theme) : void 0
10313
- }
10314
- }), Notification = factory((_props, ref) => {
10315
- const props = useProps("Notification", defaultProps$h, _props), {
10316
- className,
10317
- color,
10318
- radius,
10319
- loading,
10320
- withCloseButton,
10321
- withBorder,
10322
- title,
10323
- icon,
10324
- children,
10325
- onClose,
10326
- closeButtonProps,
10327
- classNames,
10328
- style,
10329
- styles,
10330
- unstyled,
10331
- variant,
10482
+ const [ModalStackProvider, useModalStackContext] = createOptionalContext();
10483
+ function ModalStack({ children }) {
10484
+ const [stack, setStack] = useState([]), [maxZIndex, setMaxZIndex] = useState(getDefaultZIndex("modal"));
10485
+ return /* @__PURE__ */ jsx(
10486
+ ModalStackProvider,
10487
+ {
10488
+ value: {
10489
+ stack,
10490
+ addModal: (id, zIndex) => {
10491
+ setStack((current) => [.../* @__PURE__ */ new Set([...current, id])]), setMaxZIndex(
10492
+ (current) => typeof zIndex == "number" && typeof current == "number" ? Math.max(current, zIndex) : current
10493
+ );
10494
+ },
10495
+ removeModal: (id) => setStack((current) => current.filter((currentId) => currentId !== id)),
10496
+ getZIndex: (id) => `calc(${maxZIndex} + ${stack.indexOf(id)} + 1)`,
10497
+ currentId: stack[stack.length - 1],
10498
+ maxZIndex
10499
+ },
10500
+ children
10501
+ }
10502
+ );
10503
+ }
10504
+ ModalStack.displayName = "@mantine/core/ModalStack";
10505
+ const defaultProps$t = {}, ModalTitle = factory((_props, ref) => {
10506
+ const props = useProps("ModalTitle", defaultProps$t, _props), { classNames, className, style, styles, vars, ...others } = props, ctx = useModalContext();
10507
+ return /* @__PURE__ */ jsx(
10508
+ ModalBaseTitle,
10509
+ {
10510
+ ref,
10511
+ ...ctx.getStyles("title", { classNames, style, styles, className }),
10512
+ ...others
10513
+ }
10514
+ );
10515
+ });
10516
+ ModalTitle.classes = classes$d;
10517
+ ModalTitle.displayName = "@mantine/core/ModalTitle";
10518
+ const defaultProps$s = {
10519
+ closeOnClickOutside: !0,
10520
+ withinPortal: !0,
10521
+ lockScroll: !0,
10522
+ trapFocus: !0,
10523
+ returnFocus: !0,
10524
+ closeOnEscape: !0,
10525
+ keepMounted: !1,
10526
+ zIndex: getDefaultZIndex("modal"),
10527
+ transitionProps: { duration: 200, transition: "fade-down" },
10528
+ withOverlay: !0,
10529
+ withCloseButton: !0
10530
+ }, Modal = factory((_props, ref) => {
10531
+ const {
10532
+ title,
10533
+ withOverlay,
10534
+ overlayProps,
10535
+ withCloseButton,
10536
+ closeButtonProps,
10537
+ children,
10538
+ radius,
10539
+ opened,
10540
+ stackId,
10541
+ zIndex,
10542
+ ...others
10543
+ } = useProps("Modal", defaultProps$s, _props), ctx = useModalStackContext(), hasHeader = !!title || withCloseButton, stackProps = ctx && stackId ? {
10544
+ closeOnEscape: ctx.currentId === stackId,
10545
+ trapFocus: ctx.currentId === stackId,
10546
+ zIndex: ctx.getZIndex(stackId)
10547
+ } : {}, overlayVisible = withOverlay === !1 ? !1 : stackId && ctx ? ctx.currentId === stackId : opened;
10548
+ return useEffect(() => {
10549
+ ctx && stackId && (opened ? ctx.addModal(stackId, zIndex || getDefaultZIndex("modal")) : ctx.removeModal(stackId));
10550
+ }, [opened, stackId, zIndex]), /* @__PURE__ */ jsxs(
10551
+ ModalRoot,
10552
+ {
10553
+ ref,
10554
+ radius,
10555
+ opened,
10556
+ zIndex: ctx && stackId ? ctx.getZIndex(stackId) : zIndex,
10557
+ ...others,
10558
+ ...stackProps,
10559
+ children: [
10560
+ withOverlay && /* @__PURE__ */ jsx(
10561
+ ModalOverlay,
10562
+ {
10563
+ visible: overlayVisible,
10564
+ transitionProps: ctx && stackId ? { duration: 0 } : void 0,
10565
+ ...overlayProps
10566
+ }
10567
+ ),
10568
+ /* @__PURE__ */ jsxs(
10569
+ ModalContent,
10570
+ {
10571
+ radius,
10572
+ __hidden: ctx && stackId && opened ? stackId !== ctx.currentId : !1,
10573
+ children: [
10574
+ hasHeader && /* @__PURE__ */ jsxs(ModalHeader, { children: [
10575
+ title && /* @__PURE__ */ jsx(ModalTitle, { children: title }),
10576
+ withCloseButton && /* @__PURE__ */ jsx(ModalCloseButton, { ...closeButtonProps })
10577
+ ] }),
10578
+ /* @__PURE__ */ jsx(ModalBody, { children })
10579
+ ]
10580
+ }
10581
+ )
10582
+ ]
10583
+ }
10584
+ );
10585
+ });
10586
+ Modal.classes = classes$d;
10587
+ Modal.displayName = "@mantine/core/Modal";
10588
+ Modal.Root = ModalRoot;
10589
+ Modal.Overlay = ModalOverlay;
10590
+ Modal.Content = ModalContent;
10591
+ Modal.Body = ModalBody;
10592
+ Modal.Header = ModalHeader;
10593
+ Modal.Title = ModalTitle;
10594
+ Modal.CloseButton = ModalCloseButton;
10595
+ Modal.Stack = ModalStack;
10596
+ const [PillsInputProvider, usePillsInputContext] = createOptionalContext(), [PillGroupProvider, usePillGroupContext] = createOptionalContext();
10597
+ var __default__$c = { root: "m_7cda1cd6", "root--default": "m_44da308b", "root--contrast": "m_e3a01f8", label: "m_1e0e6180", remove: "m_ae386778", group: "m_1dcfd90b" };
10598
+ const classes$c = __default__$c, defaultProps$r = {}, varsResolver$c = (_, { gap }, { size: size2 }) => ({
10599
+ group: {
10600
+ "--pg-gap": gap !== void 0 ? getSize(gap) : getSize(size2, "pg-gap")
10601
+ }
10602
+ }), PillGroup = factory((_props, ref) => {
10603
+ const props = useProps("PillGroup", defaultProps$r, _props), { classNames, className, style, styles, unstyled, vars, size: size2, disabled, ...others } = props, _size = usePillsInputContext()?.size || size2 || void 0, getStyles2 = useStyles({
10604
+ name: "PillGroup",
10605
+ classes: classes$c,
10606
+ props,
10607
+ className,
10608
+ style,
10609
+ classNames,
10610
+ styles,
10611
+ unstyled,
10612
+ vars,
10613
+ varsResolver: varsResolver$c,
10614
+ stylesCtx: { size: _size },
10615
+ rootSelector: "group"
10616
+ });
10617
+ return /* @__PURE__ */ jsx(PillGroupProvider, { value: { size: _size, disabled }, children: /* @__PURE__ */ jsx(Box, { ref, size: _size, ...getStyles2("group"), ...others }) });
10618
+ });
10619
+ PillGroup.classes = classes$c;
10620
+ PillGroup.displayName = "@mantine/core/PillGroup";
10621
+ const defaultProps$q = {
10622
+ variant: "default"
10623
+ }, varsResolver$b = (_, { radius }, { size: size2 }) => ({
10624
+ root: {
10625
+ "--pill-fz": getSize(size2, "pill-fz"),
10626
+ "--pill-height": getSize(size2, "pill-height"),
10627
+ "--pill-radius": radius === void 0 ? void 0 : getRadius(radius)
10628
+ }
10629
+ }), Pill = factory((_props, ref) => {
10630
+ const props = useProps("Pill", defaultProps$q, _props), {
10631
+ classNames,
10632
+ className,
10633
+ style,
10634
+ styles,
10635
+ unstyled,
10636
+ vars,
10637
+ variant,
10638
+ children,
10639
+ withRemoveButton,
10640
+ onRemove,
10641
+ removeButtonProps,
10642
+ radius,
10643
+ size: size2,
10644
+ disabled,
10645
+ mod,
10646
+ ...others
10647
+ } = props, ctx = usePillGroupContext(), pillsInputCtx = usePillsInputContext(), _size = size2 || ctx?.size || void 0, _variant = pillsInputCtx?.variant === "filled" ? "contrast" : variant || "default", getStyles2 = useStyles({
10648
+ name: "Pill",
10649
+ classes: classes$c,
10650
+ props,
10651
+ className,
10652
+ style,
10653
+ classNames,
10654
+ styles,
10655
+ unstyled,
10656
+ vars,
10657
+ varsResolver: varsResolver$b,
10658
+ stylesCtx: { size: _size }
10659
+ });
10660
+ return /* @__PURE__ */ jsxs(
10661
+ Box,
10662
+ {
10663
+ component: "span",
10664
+ ref,
10665
+ variant: _variant,
10666
+ size: _size,
10667
+ ...getStyles2("root", { variant: _variant }),
10668
+ mod: [
10669
+ { "with-remove": withRemoveButton && !disabled, disabled: disabled || ctx?.disabled },
10670
+ mod
10671
+ ],
10672
+ ...others,
10673
+ children: [
10674
+ /* @__PURE__ */ jsx("span", { ...getStyles2("label"), children }),
10675
+ withRemoveButton && /* @__PURE__ */ jsx(
10676
+ CloseButton,
10677
+ {
10678
+ variant: "transparent",
10679
+ radius,
10680
+ tabIndex: -1,
10681
+ "aria-hidden": !0,
10682
+ unstyled,
10683
+ ...removeButtonProps,
10684
+ ...getStyles2("remove", {
10685
+ className: removeButtonProps?.className,
10686
+ style: removeButtonProps?.style
10687
+ }),
10688
+ onMouseDown: (event) => {
10689
+ event.preventDefault(), event.stopPropagation(), removeButtonProps?.onMouseDown?.(event);
10690
+ },
10691
+ onClick: (event) => {
10692
+ event.stopPropagation(), onRemove?.(), removeButtonProps?.onClick?.(event);
10693
+ }
10694
+ }
10695
+ )
10696
+ ]
10697
+ }
10698
+ );
10699
+ });
10700
+ Pill.classes = classes$c;
10701
+ Pill.displayName = "@mantine/core/Pill";
10702
+ Pill.Group = PillGroup;
10703
+ var __default__$b = { root: "m_a513464", icon: "m_a4ceffb", loader: "m_b0920b15", body: "m_a49ed24", title: "m_3feedf16", description: "m_3d733a3a", closeButton: "m_919a4d88" };
10704
+ const classes$b = __default__$b, defaultProps$p = {
10705
+ withCloseButton: !0
10706
+ }, varsResolver$a = (theme, { radius, color }) => ({
10707
+ root: {
10708
+ "--notification-radius": radius === void 0 ? void 0 : getRadius(radius),
10709
+ "--notification-color": color ? getThemeColor(color, theme) : void 0
10710
+ }
10711
+ }), Notification = factory((_props, ref) => {
10712
+ const props = useProps("Notification", defaultProps$p, _props), {
10713
+ className,
10714
+ color,
10715
+ radius,
10716
+ loading,
10717
+ withCloseButton,
10718
+ withBorder,
10719
+ title,
10720
+ icon,
10721
+ children,
10722
+ onClose,
10723
+ closeButtonProps,
10724
+ classNames,
10725
+ style,
10726
+ styles,
10727
+ unstyled,
10728
+ variant,
10332
10729
  vars,
10333
10730
  mod,
10334
10731
  ...others
10335
10732
  } = props, getStyles2 = useStyles({
10336
10733
  name: "Notification",
10337
- classes: classes$a,
10734
+ classes: classes$b,
10338
10735
  props,
10339
10736
  className,
10340
10737
  style,
@@ -10375,7 +10772,7 @@ const classes$a = __default__$a, defaultProps$h = {
10375
10772
  }
10376
10773
  );
10377
10774
  });
10378
- Notification.classes = classes$a;
10775
+ Notification.classes = classes$b;
10379
10776
  Notification.displayName = "@mantine/core/Notification";
10380
10777
  const defaultTransition = {
10381
10778
  duration: 100,
@@ -10432,8 +10829,8 @@ function useFloatingTooltip({
10432
10829
  }
10433
10830
  }, [elements.reference, refs.floating.current, update, handleMouseMove, opened]), { handleMouseMove, x, y, opened, setOpened, boundaryRef, floating: refs.setFloating };
10434
10831
  }
10435
- var __default__$9 = { tooltip: "m_1b3c8819", arrow: "m_f898399f" };
10436
- const classes$9 = __default__$9, defaultProps$g = {
10832
+ var __default__$a = { tooltip: "m_1b3c8819", arrow: "m_f898399f" };
10833
+ const classes$a = __default__$a, defaultProps$o = {
10437
10834
  refProp: "ref",
10438
10835
  withinPortal: !0,
10439
10836
  offset: 10,
@@ -10447,7 +10844,7 @@ const classes$9 = __default__$9, defaultProps$g = {
10447
10844
  "--tooltip-color": color ? "var(--mantine-color-white)" : void 0
10448
10845
  }
10449
10846
  }), TooltipFloating = factory((_props, ref) => {
10450
- const props = useProps("TooltipFloating", defaultProps$g, _props), {
10847
+ const props = useProps("TooltipFloating", defaultProps$o, _props), {
10451
10848
  children,
10452
10849
  refProp,
10453
10850
  withinPortal,
@@ -10472,7 +10869,7 @@ const classes$9 = __default__$9, defaultProps$g = {
10472
10869
  } = props, theme = useMantineTheme(), getStyles2 = useStyles({
10473
10870
  name: "TooltipFloating",
10474
10871
  props,
10475
- classes: classes$9,
10872
+ classes: classes$a,
10476
10873
  className,
10477
10874
  style,
10478
10875
  classNames,
@@ -10490,7 +10887,7 @@ const classes$9 = __default__$9, defaultProps$g = {
10490
10887
  throw new Error(
10491
10888
  "[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"
10492
10889
  );
10493
- const targetRef = useMergedRef(boundaryRef, children.ref, ref), onMouseEnter = (event) => {
10890
+ const targetRef = useMergedRef(boundaryRef, getRefProp(children), ref), onMouseEnter = (event) => {
10494
10891
  children.props.onMouseEnter?.(event), handleMouseMove(event), setOpened(!0);
10495
10892
  }, onMouseLeave = (event) => {
10496
10893
  children.props.onMouseLeave?.(event), setOpened(!1);
@@ -10523,14 +10920,14 @@ const classes$9 = __default__$9, defaultProps$g = {
10523
10920
  })
10524
10921
  ] });
10525
10922
  });
10526
- TooltipFloating.classes = classes$9;
10923
+ TooltipFloating.classes = classes$a;
10527
10924
  TooltipFloating.displayName = "@mantine/core/TooltipFloating";
10528
- const TooltipGroupContext = createContext(!1), TooltipGroupProvider = TooltipGroupContext.Provider, useTooltipGroupContext = () => useContext(TooltipGroupContext), defaultProps$f = {
10925
+ const TooltipGroupContext = createContext(!1), TooltipGroupProvider = TooltipGroupContext.Provider, useTooltipGroupContext = () => useContext(TooltipGroupContext), defaultProps$n = {
10529
10926
  openDelay: 0,
10530
10927
  closeDelay: 0
10531
10928
  };
10532
10929
  function TooltipGroup(props) {
10533
- const { openDelay, closeDelay, children } = useProps("TooltipGroup", defaultProps$f, props);
10930
+ const { openDelay, closeDelay, children } = useProps("TooltipGroup", defaultProps$n, props);
10534
10931
  return /* @__PURE__ */ jsx(TooltipGroupProvider, { value: !0, children: /* @__PURE__ */ jsx(FloatingDelayGroup, { delay: { open: openDelay, close: closeDelay }, children }) });
10535
10932
  }
10536
10933
  TooltipGroup.displayName = "@mantine/core/TooltipGroup";
@@ -10561,7 +10958,9 @@ function useTooltip(settings) {
10561
10958
  arrow({ element: settings.arrowRef, padding: settings.arrowOffset }),
10562
10959
  ...settings.inline ? [inline()] : []
10563
10960
  ]
10564
- }), { getReferenceProps, getFloatingProps } = useInteractions([
10961
+ });
10962
+ useDelayGroup(context, { id: uid });
10963
+ const { getReferenceProps, getFloatingProps } = useInteractions([
10565
10964
  useHover(context, {
10566
10965
  enabled: settings.events?.hover,
10567
10966
  delay: withinGroup ? groupDelay : { open: settings.openDelay, close: settings.closeDelay },
@@ -10570,8 +10969,7 @@ function useTooltip(settings) {
10570
10969
  useFocus(context, { enabled: settings.events?.focus, visibleOnly: !0 }),
10571
10970
  useRole(context, { role: "tooltip" }),
10572
10971
  // Cannot be used with controlled tooltip, page jumps
10573
- useDismiss(context, { enabled: typeof settings.opened > "u" }),
10574
- useDelayGroup(context, { id: uid })
10972
+ useDismiss(context, { enabled: typeof settings.opened > "u" })
10575
10973
  ]);
10576
10974
  useFloatingAutoUpdate({
10577
10975
  opened,
@@ -10596,7 +10994,7 @@ function useTooltip(settings) {
10596
10994
  placement
10597
10995
  };
10598
10996
  }
10599
- const defaultProps$e = {
10997
+ const defaultProps$m = {
10600
10998
  position: "top",
10601
10999
  refProp: "ref",
10602
11000
  withinPortal: !0,
@@ -10618,7 +11016,7 @@ const defaultProps$e = {
10618
11016
  "--tooltip-color": color ? "var(--mantine-color-white)" : void 0
10619
11017
  }
10620
11018
  }), Tooltip = factory((_props, ref) => {
10621
- const props = useProps("Tooltip", defaultProps$e, _props), {
11019
+ const props = useProps("Tooltip", defaultProps$m, _props), {
10622
11020
  children,
10623
11021
  position,
10624
11022
  refProp,
@@ -10659,7 +11057,7 @@ const defaultProps$e = {
10659
11057
  mod,
10660
11058
  floatingStrategy,
10661
11059
  ...others
10662
- } = useProps("Tooltip", defaultProps$e, props), { dir } = useDirection(), arrowRef = useRef(null), tooltip = useTooltip({
11060
+ } = useProps("Tooltip", defaultProps$m, props), { dir } = useDirection(), arrowRef = useRef(null), tooltip = useTooltip({
10663
11061
  position: getFloatingPosition(dir, position),
10664
11062
  closeDelay,
10665
11063
  openDelay,
@@ -10676,7 +11074,7 @@ const defaultProps$e = {
10676
11074
  }), getStyles2 = useStyles({
10677
11075
  name: "Tooltip",
10678
11076
  props,
10679
- classes: classes$9,
11077
+ classes: classes$a,
10680
11078
  className,
10681
11079
  style,
10682
11080
  classNames,
@@ -10690,7 +11088,7 @@ const defaultProps$e = {
10690
11088
  throw new Error(
10691
11089
  "[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"
10692
11090
  );
10693
- const targetRef = useMergedRef(tooltip.reference, children.ref, ref), transition = getTransitionProps(transitionProps, { duration: 100, transition: "fade" });
11091
+ const targetRef = useMergedRef(tooltip.reference, getRefProp(children), ref), transition = getTransitionProps(transitionProps, { duration: 100, transition: "fade" });
10694
11092
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
10695
11093
  /* @__PURE__ */ jsx(OptionalPortal, { ...portalProps, withinPortal, children: /* @__PURE__ */ jsx(
10696
11094
  Transition,
@@ -10755,12 +11153,12 @@ const defaultProps$e = {
10755
11153
  )
10756
11154
  ] });
10757
11155
  });
10758
- Tooltip.classes = classes$9;
11156
+ Tooltip.classes = classes$a;
10759
11157
  Tooltip.displayName = "@mantine/core/Tooltip";
10760
11158
  Tooltip.Floating = TooltipFloating;
10761
11159
  Tooltip.Group = TooltipGroup;
10762
- var __default__$8 = { root: "m_cf365364", indicator: "m_9e182ccd", label: "m_1738fcb2", input: "m_1714d588", control: "m_69686b9b", innerLabel: "m_78882f40" };
10763
- const classes$8 = __default__$8, defaultProps$d = {
11160
+ var __default__$9 = { root: "m_cf365364", indicator: "m_9e182ccd", label: "m_1738fcb2", input: "m_1714d588", control: "m_69686b9b", innerLabel: "m_78882f40" };
11161
+ const classes$9 = __default__$9, defaultProps$l = {
10764
11162
  withItemsBorders: !0
10765
11163
  }, varsResolver$7 = (theme, { radius, color, transitionDuration, size: size2, transitionTimingFunction }) => ({
10766
11164
  root: {
@@ -10773,7 +11171,7 @@ const classes$8 = __default__$8, defaultProps$d = {
10773
11171
  "--sc-font-size": getFontSize(size2)
10774
11172
  }
10775
11173
  }), SegmentedControl = factory((_props, ref) => {
10776
- const props = useProps("SegmentedControl", defaultProps$d, _props), {
11174
+ const props = useProps("SegmentedControl", defaultProps$l, _props), {
10777
11175
  classNames,
10778
11176
  className,
10779
11177
  style,
@@ -10802,7 +11200,7 @@ const classes$8 = __default__$8, defaultProps$d = {
10802
11200
  } = props, getStyles2 = useStyles({
10803
11201
  name: "SegmentedControl",
10804
11202
  props,
10805
- classes: classes$8,
11203
+ classes: classes$9,
10806
11204
  className,
10807
11205
  style,
10808
11206
  classNames,
@@ -10896,15 +11294,15 @@ const classes$8 = __default__$8, defaultProps$d = {
10896
11294
  }
10897
11295
  );
10898
11296
  });
10899
- SegmentedControl.classes = classes$8;
11297
+ SegmentedControl.classes = classes$9;
10900
11298
  SegmentedControl.displayName = "@mantine/core/SegmentedControl";
10901
- const defaultProps$c = {
11299
+ const defaultProps$k = {
10902
11300
  searchable: !1,
10903
11301
  withCheckIcon: !0,
10904
11302
  allowDeselect: !0,
10905
11303
  checkIconPosition: "left"
10906
11304
  }, Select = factory((_props, ref) => {
10907
- const props = useProps("Select", defaultProps$c, _props), {
11305
+ const props = useProps("Select", defaultProps$k, _props), {
10908
11306
  classNames,
10909
11307
  styles,
10910
11308
  unstyled,
@@ -11141,13 +11539,13 @@ function SimpleGridContainerVariables({
11141
11539
  }));
11142
11540
  return /* @__PURE__ */ jsx(InlineStyles, { styles: baseStyles, container: media, selector });
11143
11541
  }
11144
- var __default__$7 = { container: "m_925c2d2c", root: "m_2415a157" };
11145
- const classes$7 = __default__$7, defaultProps$b = {
11542
+ var __default__$8 = { container: "m_925c2d2c", root: "m_2415a157" };
11543
+ const classes$8 = __default__$8, defaultProps$j = {
11146
11544
  cols: 1,
11147
11545
  spacing: "md",
11148
11546
  type: "media"
11149
11547
  }, SimpleGrid = factory((_props, ref) => {
11150
- const props = useProps("SimpleGrid", defaultProps$b, _props), {
11548
+ const props = useProps("SimpleGrid", defaultProps$j, _props), {
11151
11549
  classNames,
11152
11550
  className,
11153
11551
  style,
@@ -11161,7 +11559,7 @@ const classes$7 = __default__$7, defaultProps$b = {
11161
11559
  ...others
11162
11560
  } = props, getStyles2 = useStyles({
11163
11561
  name: "SimpleGrid",
11164
- classes: classes$7,
11562
+ classes: classes$8,
11165
11563
  props,
11166
11564
  className,
11167
11565
  style,
@@ -11178,7 +11576,7 @@ const classes$7 = __default__$7, defaultProps$b = {
11178
11576
  /* @__PURE__ */ jsx(Box, { ref, ...getStyles2("root", { className: responsiveClassName }), ...others })
11179
11577
  ] });
11180
11578
  });
11181
- SimpleGrid.classes = classes$7;
11579
+ SimpleGrid.classes = classes$8;
11182
11580
  SimpleGrid.displayName = "@mantine/core/SimpleGrid";
11183
11581
  const [SliderProvider, useSliderContext] = createSafeContext(
11184
11582
  "SliderProvider was not found in tree"
@@ -11339,8 +11737,8 @@ function getPrecision(step) {
11339
11737
  const split = step.toString().split(".");
11340
11738
  return split.length > 1 ? split[1].length : 0;
11341
11739
  }
11342
- var __default__$6 = { root: "m_dd36362e", label: "m_c9357328", thumb: "m_c9a9a60a", trackContainer: "m_a8645c2", track: "m_c9ade57f", bar: "m_38aeed47", markWrapper: "m_b7b0423a", mark: "m_dd33bc19", markLabel: "m_68c77a5b" };
11343
- const classes$6 = __default__$6, defaultProps$a = {
11740
+ var __default__$7 = { root: "m_dd36362e", label: "m_c9357328", thumb: "m_c9a9a60a", trackContainer: "m_a8645c2", track: "m_c9ade57f", bar: "m_38aeed47", markWrapper: "m_b7b0423a", mark: "m_dd33bc19", markLabel: "m_68c77a5b" };
11741
+ const classes$7 = __default__$7, defaultProps$i = {
11344
11742
  radius: "xl",
11345
11743
  min: 0,
11346
11744
  max: 100,
@@ -11361,7 +11759,7 @@ const classes$6 = __default__$6, defaultProps$a = {
11361
11759
  "--slider-thumb-size": thumbSize !== void 0 ? rem(thumbSize) : "calc(var(--slider-size) * 2)"
11362
11760
  }
11363
11761
  }), Slider = factory((_props, ref) => {
11364
- const props = useProps("Slider", defaultProps$a, _props), {
11762
+ const props = useProps("Slider", defaultProps$i, _props), {
11365
11763
  classNames,
11366
11764
  styles,
11367
11765
  value,
@@ -11389,11 +11787,12 @@ const classes$6 = __default__$6, defaultProps$a = {
11389
11787
  style,
11390
11788
  vars,
11391
11789
  hiddenInputProps,
11790
+ restrictToMarks,
11392
11791
  ...others
11393
11792
  } = props, getStyles2 = useStyles({
11394
11793
  name: "Slider",
11395
11794
  props,
11396
- classes: classes$6,
11795
+ classes: classes$7,
11397
11796
  classNames,
11398
11797
  className,
11399
11798
  styles,
@@ -11416,13 +11815,25 @@ const classes$6 = __default__$6, defaultProps$a = {
11416
11815
  step,
11417
11816
  precision
11418
11817
  });
11419
- setValue(nextValue), valueRef.current = nextValue;
11818
+ setValue(
11819
+ restrictToMarks && marks?.length ? findClosestNumber(
11820
+ nextValue,
11821
+ marks.map((mark) => mark.value)
11822
+ ) : nextValue
11823
+ ), valueRef.current = nextValue;
11420
11824
  }
11421
11825
  },
11422
- [disabled, min2, max2, step, precision, setValue]
11826
+ [disabled, min2, max2, step, precision, setValue, marks, restrictToMarks]
11423
11827
  ), { ref: container, active } = useMove(
11424
11828
  handleChange,
11425
- { onScrubEnd: () => onChangeEnd?.(valueRef.current) },
11829
+ {
11830
+ onScrubEnd: () => onChangeEnd?.(
11831
+ restrictToMarks && marks?.length ? findClosestNumber(
11832
+ valueRef.current,
11833
+ marks.map((mark) => mark.value)
11834
+ ) : valueRef.current
11835
+ )
11836
+ },
11426
11837
  dir
11427
11838
  ), handleTrackKeydownCapture = (event) => {
11428
11839
  if (!disabled)
@@ -11525,15 +11936,15 @@ const classes$6 = __default__$6, defaultProps$a = {
11525
11936
  }
11526
11937
  ) });
11527
11938
  });
11528
- Slider.classes = classes$6;
11939
+ Slider.classes = classes$7;
11529
11940
  Slider.displayName = "@mantine/core/Slider";
11530
- const defaultProps$9 = {}, Space = factory((props, ref) => {
11531
- const { w, h, miw, mih, ...others } = useProps("Space", defaultProps$9, props);
11941
+ const defaultProps$h = {}, Space = factory((props, ref) => {
11942
+ const { w, h, miw, mih, ...others } = useProps("Space", defaultProps$h, props);
11532
11943
  return /* @__PURE__ */ jsx(Box, { ref, ...others, w, miw: miw ?? w, h, mih: mih ?? h });
11533
11944
  });
11534
11945
  Space.displayName = "@mantine/core/Space";
11535
- var __default__$5 = { root: "m_559cce2d", content: "m_b912df4e", control: "m_b9131032" };
11536
- const classes$5 = __default__$5, defaultProps$8 = {
11946
+ var __default__$6 = { root: "m_559cce2d", content: "m_b912df4e", control: "m_b9131032" };
11947
+ const classes$6 = __default__$6, defaultProps$g = {
11537
11948
  maxHeight: 100,
11538
11949
  initialState: !1
11539
11950
  }, varsResolver$5 = (_, { transitionDuration }) => ({
@@ -11541,7 +11952,7 @@ const classes$5 = __default__$5, defaultProps$8 = {
11541
11952
  "--spoiler-transition-duration": transitionDuration !== void 0 ? `${transitionDuration}ms` : void 0
11542
11953
  }
11543
11954
  }), Spoiler = factory((_props, ref) => {
11544
- const props = useProps("Spoiler", defaultProps$8, _props), {
11955
+ const props = useProps("Spoiler", defaultProps$g, _props), {
11545
11956
  classNames,
11546
11957
  className,
11547
11958
  style,
@@ -11561,7 +11972,7 @@ const classes$5 = __default__$5, defaultProps$8 = {
11561
11972
  ...others
11562
11973
  } = props, getStyles2 = useStyles({
11563
11974
  name: "Spoiler",
11564
- classes: classes$5,
11975
+ classes: classes$6,
11565
11976
  props,
11566
11977
  className,
11567
11978
  style,
@@ -11614,10 +12025,10 @@ const classes$5 = __default__$5, defaultProps$8 = {
11614
12025
  }
11615
12026
  );
11616
12027
  });
11617
- Spoiler.classes = classes$5;
12028
+ Spoiler.classes = classes$6;
11618
12029
  Spoiler.displayName = "@mantine/core/Spoiler";
11619
- var __default__$4 = { root: "m_6d731127" };
11620
- const classes$4 = __default__$4, defaultProps$7 = {
12030
+ var __default__$5 = { root: "m_6d731127" };
12031
+ const classes$5 = __default__$5, defaultProps$f = {
11621
12032
  gap: "md",
11622
12033
  align: "stretch",
11623
12034
  justify: "flex-start"
@@ -11628,7 +12039,7 @@ const classes$4 = __default__$4, defaultProps$7 = {
11628
12039
  "--stack-justify": justify
11629
12040
  }
11630
12041
  }), Stack = factory((_props, ref) => {
11631
- const props = useProps("Stack", defaultProps$7, _props), {
12042
+ const props = useProps("Stack", defaultProps$f, _props), {
11632
12043
  classNames,
11633
12044
  className,
11634
12045
  style,
@@ -11643,7 +12054,7 @@ const classes$4 = __default__$4, defaultProps$7 = {
11643
12054
  } = props, getStyles2 = useStyles({
11644
12055
  name: "Stack",
11645
12056
  props,
11646
- classes: classes$4,
12057
+ classes: classes$5,
11647
12058
  className,
11648
12059
  style,
11649
12060
  classNames,
@@ -11654,14 +12065,14 @@ const classes$4 = __default__$4, defaultProps$7 = {
11654
12065
  });
11655
12066
  return /* @__PURE__ */ jsx(Box, { ref, ...getStyles2("root"), variant, ...others });
11656
12067
  });
11657
- Stack.classes = classes$4;
12068
+ Stack.classes = classes$5;
11658
12069
  Stack.displayName = "@mantine/core/Stack";
11659
12070
  const [TabsProvider, useTabsContext] = createSafeContext(
11660
12071
  "Tabs component was not found in the tree"
11661
12072
  );
11662
- var __default__$3 = { root: "m_89d60db1", "list--default": "m_576c9d4", list: "m_89d33d6d", panel: "m_b0c91715", tab: "m_4ec4dce6", tabSection: "m_fc420b1f", "tab--default": "m_539e827b", "list--outline": "m_6772fbd5", "tab--outline": "m_b59ab47c", "tab--pills": "m_c3381914" };
11663
- const classes$3 = __default__$3, defaultProps$6 = {}, TabsList = factory((_props, ref) => {
11664
- const props = useProps("TabsList", defaultProps$6, _props), { children, className, grow, justify, classNames, styles, style, mod, ...others } = props, ctx = useTabsContext();
12073
+ var __default__$4 = { root: "m_89d60db1", "list--default": "m_576c9d4", list: "m_89d33d6d", panel: "m_b0c91715", tab: "m_4ec4dce6", tabSection: "m_fc420b1f", "tab--default": "m_539e827b", "list--outline": "m_6772fbd5", "tab--outline": "m_b59ab47c", "tab--pills": "m_c3381914" };
12074
+ const classes$4 = __default__$4, defaultProps$e = {}, TabsList = factory((_props, ref) => {
12075
+ const props = useProps("TabsList", defaultProps$e, _props), { children, className, grow, justify, classNames, styles, style, mod, ...others } = props, ctx = useTabsContext();
11665
12076
  return /* @__PURE__ */ jsx(
11666
12077
  Box,
11667
12078
  {
@@ -11692,10 +12103,10 @@ const classes$3 = __default__$3, defaultProps$6 = {}, TabsList = factory((_props
11692
12103
  }
11693
12104
  );
11694
12105
  });
11695
- TabsList.classes = classes$3;
12106
+ TabsList.classes = classes$4;
11696
12107
  TabsList.displayName = "@mantine/core/TabsList";
11697
- const defaultProps$5 = {}, TabsPanel = factory((_props, ref) => {
11698
- const props = useProps("TabsPanel", defaultProps$5, _props), { children, className, value, classNames, styles, style, mod, keepMounted, ...others } = props, ctx = useTabsContext(), active = ctx.value === value, content = ctx.keepMounted || keepMounted || active ? children : null;
12108
+ const defaultProps$d = {}, TabsPanel = factory((_props, ref) => {
12109
+ const props = useProps("TabsPanel", defaultProps$d, _props), { children, className, value, classNames, styles, style, mod, keepMounted, ...others } = props, ctx = useTabsContext(), active = ctx.value === value, content = ctx.keepMounted || keepMounted || active ? children : null;
11699
12110
  return /* @__PURE__ */ jsx(
11700
12111
  Box,
11701
12112
  {
@@ -11716,10 +12127,10 @@ const defaultProps$5 = {}, TabsPanel = factory((_props, ref) => {
11716
12127
  }
11717
12128
  );
11718
12129
  });
11719
- TabsPanel.classes = classes$3;
12130
+ TabsPanel.classes = classes$4;
11720
12131
  TabsPanel.displayName = "@mantine/core/TabsPanel";
11721
- const defaultProps$4 = {}, TabsTab = factory((_props, ref) => {
11722
- const props = useProps("TabsTab", defaultProps$4, _props), {
12132
+ const defaultProps$c = {}, TabsTab = factory((_props, ref) => {
12133
+ const props = useProps("TabsTab", defaultProps$c, _props), {
11723
12134
  className,
11724
12135
  children,
11725
12136
  rightSection,
@@ -11734,6 +12145,7 @@ const defaultProps$4 = {}, TabsTab = factory((_props, ref) => {
11734
12145
  styles,
11735
12146
  vars,
11736
12147
  mod,
12148
+ tabIndex,
11737
12149
  ...others
11738
12150
  } = props, theme = useMantineTheme(), { dir } = useDirection(), ctx = useTabsContext(), active = value === ctx.value, activateTab = (event) => {
11739
12151
  ctx.onChange(ctx.allowTabDeactivation && value === ctx.value ? null : value), onClick?.(event);
@@ -11760,7 +12172,7 @@ const defaultProps$4 = {}, TabsTab = factory((_props, ref) => {
11760
12172
  role: "tab",
11761
12173
  id: ctx.getTabId(value),
11762
12174
  "aria-selected": active,
11763
- tabIndex: active || ctx.value === null ? 0 : -1,
12175
+ tabIndex: tabIndex || active || ctx.value === null ? 0 : -1,
11764
12176
  "aria-controls": ctx.getPanelId(value),
11765
12177
  onClick: activateTab,
11766
12178
  __vars: { "--tabs-color": color ? getThemeColor(color, theme) : void 0 },
@@ -11781,9 +12193,9 @@ const defaultProps$4 = {}, TabsTab = factory((_props, ref) => {
11781
12193
  }
11782
12194
  );
11783
12195
  });
11784
- TabsTab.classes = classes$3;
12196
+ TabsTab.classes = classes$4;
11785
12197
  TabsTab.displayName = "@mantine/core/TabsTab";
11786
- const VALUE_ERROR = "Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value", defaultProps$3 = {
12198
+ const VALUE_ERROR = "Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value", defaultProps$b = {
11787
12199
  keepMounted: !0,
11788
12200
  orientation: "horizontal",
11789
12201
  loop: !0,
@@ -11800,7 +12212,7 @@ const VALUE_ERROR = "Tabs.Tab or Tabs.Panel component was rendered with invalid
11800
12212
  "--tabs-text-color": getAutoContrastValue(autoContrast, theme) ? getContrastColor({ color, theme, autoContrast }) : void 0
11801
12213
  }
11802
12214
  }), Tabs = factory((_props, ref) => {
11803
- const props = useProps("Tabs", defaultProps$3, _props), {
12215
+ const props = useProps("Tabs", defaultProps$b, _props), {
11804
12216
  defaultValue,
11805
12217
  value,
11806
12218
  onChange,
@@ -11833,7 +12245,7 @@ const VALUE_ERROR = "Tabs.Tab or Tabs.Panel component was rendered with invalid
11833
12245
  }), getStyles2 = useStyles({
11834
12246
  name: "Tabs",
11835
12247
  props,
11836
- classes: classes$3,
12248
+ classes: classes$4,
11837
12249
  className,
11838
12250
  style,
11839
12251
  classNames,
@@ -11886,13 +12298,13 @@ const VALUE_ERROR = "Tabs.Tab or Tabs.Panel component was rendered with invalid
11886
12298
  }
11887
12299
  );
11888
12300
  });
11889
- Tabs.classes = classes$3;
12301
+ Tabs.classes = classes$4;
11890
12302
  Tabs.displayName = "@mantine/core/Tabs";
11891
12303
  Tabs.Tab = TabsTab;
11892
12304
  Tabs.Panel = TabsPanel;
11893
12305
  Tabs.List = TabsList;
11894
- var __default__$2 = { root: "m_7341320d" };
11895
- const classes$2 = __default__$2, defaultProps$2 = {}, varsResolver$2 = (theme, { size: size2, radius, variant, gradient, color, autoContrast }) => {
12306
+ var __default__$3 = { root: "m_7341320d" };
12307
+ const classes$3 = __default__$3, defaultProps$a = {}, varsResolver$2 = (theme, { size: size2, radius, variant, gradient, color, autoContrast }) => {
11896
12308
  const colors = theme.variantColorResolver({
11897
12309
  color: color || theme.primaryColor,
11898
12310
  theme,
@@ -11910,9 +12322,9 @@ const classes$2 = __default__$2, defaultProps$2 = {}, varsResolver$2 = (theme, {
11910
12322
  }
11911
12323
  };
11912
12324
  }, ThemeIcon = factory((_props, ref) => {
11913
- const props = useProps("ThemeIcon", defaultProps$2, _props), { classNames, className, style, styles, unstyled, vars, autoContrast, ...others } = props, getStyles2 = useStyles({
12325
+ const props = useProps("ThemeIcon", defaultProps$a, _props), { classNames, className, style, styles, unstyled, vars, autoContrast, ...others } = props, getStyles2 = useStyles({
11914
12326
  name: "ThemeIcon",
11915
- classes: classes$2,
12327
+ classes: classes$3,
11916
12328
  props,
11917
12329
  className,
11918
12330
  style,
@@ -11924,7 +12336,7 @@ const classes$2 = __default__$2, defaultProps$2 = {}, varsResolver$2 = (theme, {
11924
12336
  });
11925
12337
  return /* @__PURE__ */ jsx(Box, { ref, ...getStyles2("root"), ...others });
11926
12338
  });
11927
- ThemeIcon.classes = classes$2;
12339
+ ThemeIcon.classes = classes$3;
11928
12340
  ThemeIcon.displayName = "@mantine/core/ThemeIcon";
11929
12341
  const headings = ["h1", "h2", "h3", "h4", "h5", "h6"], sizes = ["xs", "sm", "md", "lg", "xl"];
11930
12342
  function getTitleSize(order, size2) {
@@ -11943,8 +12355,8 @@ function getTitleSize(order, size2) {
11943
12355
  lineHeight: `var(--mantine-h${order}-line-height)`
11944
12356
  };
11945
12357
  }
11946
- var __default__$1 = { root: "m_8a5d1357" };
11947
- const classes$1 = __default__$1, defaultProps$1 = {
12358
+ var __default__$2 = { root: "m_8a5d1357" };
12359
+ const classes$2 = __default__$2, defaultProps$9 = {
11948
12360
  order: 1
11949
12361
  }, varsResolver$1 = (_, { order, size: size2, lineClamp, textWrap }) => {
11950
12362
  const sizeVariables = getTitleSize(order, size2);
@@ -11958,7 +12370,7 @@ const classes$1 = __default__$1, defaultProps$1 = {
11958
12370
  }
11959
12371
  };
11960
12372
  }, Title = factory((_props, ref) => {
11961
- const props = useProps("Title", defaultProps$1, _props), {
12373
+ const props = useProps("Title", defaultProps$9, _props), {
11962
12374
  classNames,
11963
12375
  className,
11964
12376
  style,
@@ -11975,7 +12387,7 @@ const classes$1 = __default__$1, defaultProps$1 = {
11975
12387
  } = props, getStyles2 = useStyles({
11976
12388
  name: "Title",
11977
12389
  props,
11978
- classes: classes$1,
12390
+ classes: classes$2,
11979
12391
  className,
11980
12392
  style,
11981
12393
  classNames,
@@ -11997,7 +12409,7 @@ const classes$1 = __default__$1, defaultProps$1 = {
11997
12409
  }
11998
12410
  ) : null;
11999
12411
  });
12000
- Title.classes = classes$1;
12412
+ Title.classes = classes$2;
12001
12413
  Title.displayName = "@mantine/core/Title";
12002
12414
  function getValuesRange(anchor, value, flatValues) {
12003
12415
  if (!anchor || !value)
@@ -12146,6 +12558,9 @@ function getChildrenNodesValues(value, data, acc = []) {
12146
12558
  Array.isArray(child.children) && child.children.length > 0 ? getChildrenNodesValues(child.value, data, acc) : acc.push(child.value);
12147
12559
  }), acc) : acc;
12148
12560
  }
12561
+ function getAllChildrenNodes(data) {
12562
+ return data.reduce((acc, node) => (Array.isArray(node.children) && node.children.length > 0 ? acc.push(...getAllChildrenNodes(node.children)) : acc.push(node.value), acc), []);
12563
+ }
12149
12564
  function isNodeChecked(value, data, checkedState) {
12150
12565
  return checkedState.length === 0 ? !1 : checkedState.includes(value) ? !0 : getAllCheckedNodes(data, checkedState).result.some((node) => node.value === value && node.checked);
12151
12566
  }
@@ -12154,33 +12569,47 @@ function isNodeIndeterminate(value, data, checkedState) {
12154
12569
  return checkedState.length === 0 ? !1 : getAllCheckedNodes(data, checkedState).result.some((node) => node.value === value && node.indeterminate);
12155
12570
  }
12156
12571
  const memoizedIsNodeIndeterminate = memoize(isNodeIndeterminate);
12157
- function getInitialExpandedState(initialState, data, value, acc = {}) {
12572
+ function getInitialTreeExpandedState(initialState, data, value, acc = {}) {
12158
12573
  return data.forEach((node) => {
12159
- acc[node.value] = node.value in initialState ? initialState[node.value] : node.value === value, Array.isArray(node.children) && getInitialExpandedState(initialState, node.children, value, acc);
12574
+ acc[node.value] = node.value in initialState ? initialState[node.value] : node.value === value, Array.isArray(node.children) && getInitialTreeExpandedState(initialState, node.children, value, acc);
12160
12575
  }), acc;
12161
12576
  }
12162
12577
  function getInitialCheckedState(initialState, data) {
12163
12578
  const acc = [];
12164
- return initialState.forEach((node) => acc.push(...getChildrenNodesValues(node, data))), acc;
12579
+ return initialState.forEach((node) => acc.push(...getChildrenNodesValues(node, data))), Array.from(new Set(acc));
12165
12580
  }
12166
12581
  function useTree({
12167
12582
  initialSelectedState = [],
12168
12583
  initialCheckedState = [],
12169
12584
  initialExpandedState = {},
12170
- multiple = !1
12585
+ multiple = !1,
12586
+ onNodeCollapse,
12587
+ onNodeExpand
12171
12588
  } = {}) {
12172
12589
  const [data, setData] = useState([]), [expandedState, setExpandedState] = useState(initialExpandedState), [selectedState, setSelectedState] = useState(initialSelectedState), [checkedState, setCheckedState] = useState(initialCheckedState), [anchorNode, setAnchorNode] = useState(null), [hoveredNode, setHoveredNode] = useState(null), initialize = useCallback(
12173
12590
  (_data) => {
12174
- setExpandedState((current) => getInitialExpandedState(current, _data, selectedState)), setCheckedState((current) => getInitialCheckedState(current, _data)), setData(_data);
12591
+ setExpandedState((current) => getInitialTreeExpandedState(current, _data, selectedState)), setCheckedState((current) => getInitialCheckedState(current, _data)), setData(_data);
12175
12592
  },
12176
12593
  [selectedState, checkedState]
12177
- ), toggleExpanded = useCallback((value) => {
12178
- setExpandedState((current) => ({ ...current, [value]: !current[value] }));
12179
- }, []), collapse = useCallback((value) => {
12180
- setExpandedState((current) => ({ ...current, [value]: !1 }));
12181
- }, []), expand = useCallback((value) => {
12182
- setExpandedState((current) => ({ ...current, [value]: !0 }));
12183
- }, []), expandAllNodes = useCallback(() => {
12594
+ ), toggleExpanded = useCallback(
12595
+ (value) => {
12596
+ setExpandedState((current) => {
12597
+ const nextState = { ...current, [value]: !current[value] };
12598
+ return nextState[value] ? onNodeExpand?.(value) : onNodeCollapse?.(value), nextState;
12599
+ });
12600
+ },
12601
+ [onNodeCollapse, onNodeExpand]
12602
+ ), collapse = useCallback(
12603
+ (value) => {
12604
+ setExpandedState((current) => (current[value] !== !1 && onNodeCollapse?.(value), { ...current, [value]: !1 }));
12605
+ },
12606
+ [onNodeCollapse]
12607
+ ), expand = useCallback(
12608
+ (value) => {
12609
+ setExpandedState((current) => (current[value] !== !0 && onNodeExpand?.(value), { ...current, [value]: !0 }));
12610
+ },
12611
+ [onNodeExpand]
12612
+ ), expandAllNodes = useCallback(() => {
12184
12613
  setExpandedState((current) => {
12185
12614
  const next = { ...current };
12186
12615
  return Object.keys(next).forEach((key) => {
@@ -12217,7 +12646,11 @@ function useTree({
12217
12646
  setCheckedState((current) => current.filter((item) => !checkedNodes.includes(item)));
12218
12647
  },
12219
12648
  [data]
12220
- );
12649
+ ), checkAllNodes = useCallback(() => {
12650
+ setCheckedState(() => getAllChildrenNodes(data));
12651
+ }, [data]), uncheckAllNodes = useCallback(() => {
12652
+ setCheckedState([]);
12653
+ }, []);
12221
12654
  return {
12222
12655
  multiple,
12223
12656
  expandedState,
@@ -12233,6 +12666,9 @@ function useTree({
12233
12666
  setExpandedState,
12234
12667
  checkNode,
12235
12668
  uncheckNode,
12669
+ checkAllNodes,
12670
+ uncheckAllNodes,
12671
+ setCheckedState,
12236
12672
  toggleSelected,
12237
12673
  select,
12238
12674
  deselect,
@@ -12245,12 +12681,12 @@ function useTree({
12245
12681
  isNodeIndeterminate: (value) => memoizedIsNodeIndeterminate(value, data, checkedState)
12246
12682
  };
12247
12683
  }
12248
- var __default__ = { root: "m_f698e191", subtree: "m_75f3ecf", node: "m_f6970eb1", label: "m_dc283425" };
12249
- const classes = __default__;
12684
+ var __default__$1 = { root: "m_f698e191", subtree: "m_75f3ecf", node: "m_f6970eb1", label: "m_dc283425" };
12685
+ const classes$1 = __default__$1;
12250
12686
  function getFlatValues(data) {
12251
12687
  return data.reduce((acc, item) => (acc.push(item.value), item.children && acc.push(...getFlatValues(item.children)), acc), []);
12252
12688
  }
12253
- const defaultProps = {
12689
+ const defaultProps$8 = {
12254
12690
  expandOnClick: !0,
12255
12691
  allowRangeSelection: !0,
12256
12692
  expandOnSpace: !0
@@ -12259,7 +12695,7 @@ const defaultProps = {
12259
12695
  "--level-offset": getSpacing(levelOffset)
12260
12696
  }
12261
12697
  }), Tree = factory((_props, ref) => {
12262
- const props = useProps("Tree", defaultProps, _props), {
12698
+ const props = useProps("Tree", defaultProps$8, _props), {
12263
12699
  classNames,
12264
12700
  className,
12265
12701
  style,
@@ -12278,7 +12714,7 @@ const defaultProps = {
12278
12714
  ...others
12279
12715
  } = props, defaultController = useTree(), controller = tree || defaultController, getStyles2 = useStyles({
12280
12716
  name: "Tree",
12281
- classes,
12717
+ classes: classes$1,
12282
12718
  props,
12283
12719
  className,
12284
12720
  style,
@@ -12324,7 +12760,7 @@ const defaultProps = {
12324
12760
  );
12325
12761
  });
12326
12762
  Tree.displayName = "@mantine/core/Tree";
12327
- Tree.classes = classes;
12763
+ Tree.classes = classes$1;
12328
12764
  function getSizesVariables(theme, themeKey, name) {
12329
12765
  return Object.keys(theme[themeKey]).reduce((acc, size2) => (acc[size2] = `var(--mantine-${name}-${size2})`, acc), {});
12330
12766
  }
@@ -12420,96 +12856,629 @@ function themeToVars(theme) {
12420
12856
  largerThan: (breakpoint) => `(min-width: ${getBreakpointValue(breakpoint, mergedTheme)})`
12421
12857
  };
12422
12858
  }
12859
+ function createStore(initialState) {
12860
+ let state = initialState, initialized = !1;
12861
+ const listeners = /* @__PURE__ */ new Set();
12862
+ return {
12863
+ getState() {
12864
+ return state;
12865
+ },
12866
+ updateState(value) {
12867
+ state = typeof value == "function" ? value(state) : value;
12868
+ },
12869
+ setState(value) {
12870
+ this.updateState(value), listeners.forEach((listener) => listener(state));
12871
+ },
12872
+ initialize(value) {
12873
+ initialized || (state = value, initialized = !0);
12874
+ },
12875
+ subscribe(callback) {
12876
+ return listeners.add(callback), () => listeners.delete(callback);
12877
+ }
12878
+ };
12879
+ }
12880
+ function useStore(store) {
12881
+ return useSyncExternalStore(
12882
+ store.subscribe,
12883
+ () => store.getState(),
12884
+ () => store.getState()
12885
+ );
12886
+ }
12887
+ const createSpotlightStore = () => createStore({
12888
+ opened: !1,
12889
+ empty: !1,
12890
+ selected: -1,
12891
+ listId: "",
12892
+ query: "",
12893
+ registeredActions: /* @__PURE__ */ new Set()
12894
+ }), useSpotlight = (store) => useStore(store);
12895
+ function updateSpotlightStateAction(update, store) {
12896
+ const state = store.getState();
12897
+ store.setState({ ...state, ...update(store.getState()) });
12898
+ }
12899
+ function openSpotlightAction(store) {
12900
+ updateSpotlightStateAction(() => ({ opened: !0, selected: -1 }), store);
12901
+ }
12902
+ function closeSpotlightAction(store) {
12903
+ updateSpotlightStateAction(() => ({ opened: !1 }), store);
12904
+ }
12905
+ function toggleSpotlightAction(store) {
12906
+ updateSpotlightStateAction(
12907
+ (state) => ({ opened: !state.opened, selected: state.opened ? state.selected : -1 }),
12908
+ store
12909
+ );
12910
+ }
12911
+ function setSelectedAction(index2, store) {
12912
+ store.updateState((state) => ({ ...state, selected: index2 }));
12913
+ }
12914
+ function setListId(id, store) {
12915
+ store.updateState((state) => ({ ...state, listId: id }));
12916
+ }
12917
+ function findElementByQuerySelector(selector, root = document) {
12918
+ const element = root.querySelector(selector);
12919
+ if (element)
12920
+ return element;
12921
+ const children = root instanceof ShadowRoot ? root.host.children : root.children;
12922
+ for (let i = 0; i < children.length; i += 1) {
12923
+ const child = children[i];
12924
+ if (child.shadowRoot) {
12925
+ const shadowElement = findElementByQuerySelector(selector, child.shadowRoot);
12926
+ if (shadowElement)
12927
+ return shadowElement;
12928
+ }
12929
+ const nestedElement = findElementByQuerySelector(selector, child);
12930
+ if (nestedElement)
12931
+ return nestedElement;
12932
+ }
12933
+ return null;
12934
+ }
12935
+ function selectAction(index2, store) {
12936
+ const state = store.getState(), actionsList = state.listId ? findElementByQuerySelector(`#${state.listId}`) : null, selected = actionsList?.querySelector("[data-selected]"), actions = actionsList?.querySelectorAll("[data-action]") ?? [], nextIndex = index2 === -1 ? actions.length - 1 : index2 === actions.length ? 0 : index2, selectedIndex = clamp$2(nextIndex, 0, actions.length - 1);
12937
+ return selected?.removeAttribute("data-selected"), actions[selectedIndex]?.scrollIntoView({ block: "nearest" }), actions[selectedIndex]?.setAttribute("data-selected", "true"), setSelectedAction(selectedIndex, store), selectedIndex;
12938
+ }
12939
+ function selectNextAction(store) {
12940
+ return selectAction(store.getState().selected + 1, store);
12941
+ }
12942
+ function selectPreviousAction(store) {
12943
+ return selectAction(store.getState().selected - 1, store);
12944
+ }
12945
+ function triggerSelectedAction(store) {
12946
+ const state = store.getState();
12947
+ findElementByQuerySelector(
12948
+ `#${state.listId} [data-selected]`
12949
+ )?.click();
12950
+ }
12951
+ function registerAction(id, store) {
12952
+ const state = store.getState();
12953
+ return state.registeredActions.add(id), () => {
12954
+ state.registeredActions.delete(id);
12955
+ };
12956
+ }
12957
+ function setQuery(query, store) {
12958
+ updateSpotlightStateAction(() => ({ query }), store), Promise.resolve().then(() => {
12959
+ selectAction(0, store), updateSpotlightStateAction(
12960
+ (state) => ({
12961
+ empty: state.query.trim().length > 0 && state.registeredActions.size === 0 || !1
12962
+ }),
12963
+ store
12964
+ );
12965
+ });
12966
+ }
12967
+ function clearSpotlightState({ clearQuery }, store) {
12968
+ store.updateState((state) => ({
12969
+ ...state,
12970
+ selected: -1,
12971
+ query: clearQuery ? "" : state.query,
12972
+ empty: clearQuery ? !1 : state.empty
12973
+ }));
12974
+ }
12975
+ const spotlightActions = {
12976
+ open: openSpotlightAction,
12977
+ close: closeSpotlightAction,
12978
+ toggle: toggleSpotlightAction,
12979
+ updateState: updateSpotlightStateAction,
12980
+ setSelectedAction,
12981
+ setListId,
12982
+ selectAction,
12983
+ selectNextAction,
12984
+ selectPreviousAction,
12985
+ triggerSelectedAction,
12986
+ registerAction,
12987
+ setQuery,
12988
+ clearSpotlightState
12989
+ };
12990
+ function createSpotlight() {
12991
+ const store = createSpotlightStore();
12992
+ return [store, {
12993
+ open: () => openSpotlightAction(store),
12994
+ close: () => closeSpotlightAction(store),
12995
+ toggle: () => toggleSpotlightAction(store)
12996
+ }];
12997
+ }
12998
+ const [spotlightStore, spotlight] = createSpotlight(), { open: openSpotlight, close: closeSpotlight, toggle: toggleSpotlight } = spotlight;
12999
+ function isActionsGroup(item) {
13000
+ const _item = item;
13001
+ return _item.group !== void 0 && Array.isArray(_item.actions);
13002
+ }
13003
+ function getKeywords(keywords) {
13004
+ return Array.isArray(keywords) ? keywords.map((keyword) => keyword.trim()).join(",").toLowerCase().trim() : typeof keywords == "string" ? keywords.toLowerCase().trim() : "";
13005
+ }
13006
+ function getFlatActions(data) {
13007
+ return data.reduce((acc, item) => "actions" in item ? [...acc, ...item.actions.map((action) => ({ ...action, group: item.group }))] : [...acc, item], []);
13008
+ }
13009
+ function flatActionsToGroups(data) {
13010
+ const groups = {}, result = [];
13011
+ return data.forEach((action) => {
13012
+ action.group ? (groups[action.group] || (groups[action.group] = { pushed: !1, data: { group: action.group, actions: [] } }), groups[action.group].data.actions.push(action), groups[action.group].pushed || (groups[action.group].pushed = !0, result.push(groups[action.group].data))) : result.push(action);
13013
+ }), result;
13014
+ }
13015
+ const defaultSpotlightFilter = (_query, data) => {
13016
+ const query = _query.trim().toLowerCase(), priorityMatrix = [[], []];
13017
+ return getFlatActions(data).forEach((item) => {
13018
+ item.label?.toLowerCase().includes(query) ? priorityMatrix[0].push(item) : (item.description?.toLowerCase().includes(query) || getKeywords(item.keywords).includes(query)) && priorityMatrix[1].push(item);
13019
+ }), flatActionsToGroups(priorityMatrix.flat());
13020
+ };
13021
+ function limitActions(actions, limit) {
13022
+ if (!Array.isArray(actions))
13023
+ return [];
13024
+ let count2 = 0;
13025
+ return actions.reduce((acc, item) => {
13026
+ if (count2 >= limit)
13027
+ return acc;
13028
+ if (isActionsGroup(item)) {
13029
+ const groupActions = limitActions(item.actions, limit - count2);
13030
+ acc.push({
13031
+ group: item.group,
13032
+ actions: groupActions
13033
+ }), count2 += groupActions.length;
13034
+ } else
13035
+ acc.push(item), count2 += 1;
13036
+ return acc;
13037
+ }, []);
13038
+ }
13039
+ const [SpotlightProvider, useSpotlightContext] = createSafeContext(
13040
+ "Spotlight component was not found in tree"
13041
+ );
13042
+ var __default__ = { root: "m_d2b315db", content: "m_3cd250e0", body: "m_d2abce9b", search: "m_f366a061", actionsList: "m_6e463822", action: "m_d49bb8ef", actionBody: "m_3d475731", actionSection: "m_832642f6", actionLabel: "m_6c2a1345", actionDescription: "m_a6d9d78d", empty: "m_82f78f74", footer: "m_ddcaf054", actionsGroup: "m_5a3e5f7b" };
13043
+ const classes = __default__, defaultProps$7 = {
13044
+ dimmedSections: !0,
13045
+ highlightQuery: !1
13046
+ }, SpotlightAction = factory((_props, ref) => {
13047
+ const props = useProps("SpotlightAction", defaultProps$7, _props), {
13048
+ className,
13049
+ style,
13050
+ classNames,
13051
+ styles,
13052
+ id,
13053
+ description,
13054
+ label,
13055
+ leftSection,
13056
+ rightSection,
13057
+ children,
13058
+ dimmedSections,
13059
+ highlightQuery,
13060
+ highlightColor,
13061
+ closeSpotlightOnTrigger,
13062
+ onClick,
13063
+ onMouseDown,
13064
+ keywords,
13065
+ vars,
13066
+ ...others
13067
+ } = props, ctx = useSpotlightContext(), stylesApi = { classNames, styles }, labelNode = highlightQuery && typeof label == "string" ? /* @__PURE__ */ jsx(
13068
+ Highlight,
13069
+ {
13070
+ component: "span",
13071
+ highlight: ctx.query,
13072
+ color: highlightColor,
13073
+ ...ctx.getStyles("actionLabel", stylesApi),
13074
+ children: label
13075
+ }
13076
+ ) : /* @__PURE__ */ jsx("span", { ...ctx.getStyles("actionLabel", stylesApi), children: label });
13077
+ return /* @__PURE__ */ jsx(
13078
+ UnstyledButton,
13079
+ {
13080
+ ref,
13081
+ "data-action": !0,
13082
+ ...ctx.getStyles("action", { className, style, ...stylesApi }),
13083
+ ...others,
13084
+ onMouseDown: (event) => {
13085
+ event.preventDefault(), onMouseDown?.(event);
13086
+ },
13087
+ onClick: (event) => {
13088
+ onClick?.(event), (closeSpotlightOnTrigger ?? ctx.closeOnActionTrigger) && spotlightActions.close(ctx.store);
13089
+ },
13090
+ tabIndex: -1,
13091
+ children: children || /* @__PURE__ */ jsxs(Fragment$1, { children: [
13092
+ leftSection && /* @__PURE__ */ jsx(
13093
+ Box,
13094
+ {
13095
+ component: "span",
13096
+ mod: { position: "left", dimmed: dimmedSections },
13097
+ ...ctx.getStyles("actionSection", stylesApi),
13098
+ children: leftSection
13099
+ }
13100
+ ),
13101
+ /* @__PURE__ */ jsxs("span", { ...ctx.getStyles("actionBody", stylesApi), children: [
13102
+ labelNode,
13103
+ /* @__PURE__ */ jsx("span", { ...ctx.getStyles("actionDescription", stylesApi), children: description })
13104
+ ] }),
13105
+ rightSection && /* @__PURE__ */ jsx(
13106
+ Box,
13107
+ {
13108
+ component: "span",
13109
+ mod: { position: "right", dimmed: dimmedSections },
13110
+ ...ctx.getStyles("actionSection", stylesApi),
13111
+ children: rightSection
13112
+ }
13113
+ )
13114
+ ] })
13115
+ }
13116
+ );
13117
+ });
13118
+ SpotlightAction.classes = classes;
13119
+ SpotlightAction.displayName = "@mantine/spotlight/SpotlightAction";
13120
+ const defaultProps$6 = {}, SpotlightActionsGroup = factory((props, ref) => {
13121
+ const { className, style, styles, classNames, label, children, ...others } = useProps(
13122
+ "SpotlightActionsGroup",
13123
+ defaultProps$6,
13124
+ props
13125
+ ), ctx = useSpotlightContext();
13126
+ return /* @__PURE__ */ jsx(
13127
+ Box,
13128
+ {
13129
+ ...ctx.getStyles("actionsGroup", { className, style, classNames, styles }),
13130
+ ref,
13131
+ ...others,
13132
+ __vars: { "--spotlight-label": `'${label}'` },
13133
+ children
13134
+ }
13135
+ );
13136
+ });
13137
+ SpotlightActionsGroup.classes = classes;
13138
+ SpotlightActionsGroup.displayName = "@mantine/core/SpotlightActionsGroup";
13139
+ const defaultProps$5 = {}, SpotlightActionsList = factory((props, ref) => {
13140
+ const { className, style, id, children, vars, classNames, styles, ...others } = useProps(
13141
+ "SpotlightActionsList",
13142
+ defaultProps$5,
13143
+ props
13144
+ ), ctx = useSpotlightContext(), generatedId = `mantine-${useId$2().replace(/:/g, "")}`, listId = id || generatedId;
13145
+ return useEffect(() => (spotlightActions.setListId(listId, ctx.store), () => spotlightActions.setListId("", ctx.store)), []), /* @__PURE__ */ jsx(
13146
+ ScrollArea.Autosize,
13147
+ {
13148
+ ...ctx.getStyles("actionsList", { className, style, classNames, styles }),
13149
+ ref,
13150
+ type: "scroll",
13151
+ scrollbarSize: "var(--spotlight-actions-list-padding)",
13152
+ offsetScrollbars: "y",
13153
+ id: listId,
13154
+ ...others,
13155
+ children
13156
+ }
13157
+ );
13158
+ });
13159
+ SpotlightActionsList.classes = classes;
13160
+ SpotlightActionsList.displayName = "@mantine/spotlight/SpotlightActionsList";
13161
+ const defaultProps$4 = {}, SpotlightEmpty = factory((props, ref) => {
13162
+ const { className, style, classNames, styles, ...others } = useProps(
13163
+ "SpotlightEmpty",
13164
+ defaultProps$4,
13165
+ props
13166
+ ), ctx = useSpotlightContext();
13167
+ return /* @__PURE__ */ jsx(
13168
+ Box,
13169
+ {
13170
+ ref,
13171
+ ...ctx.getStyles("empty", { classNames, styles, className, style }),
13172
+ ...others
13173
+ }
13174
+ );
13175
+ });
13176
+ SpotlightEmpty.classes = classes;
13177
+ SpotlightEmpty.displayName = "@mantine/spotlight/SpotlightEmpty";
13178
+ const defaultProps$3 = {}, SpotlightFooter = factory((props, ref) => {
13179
+ const { className, style, classNames, styles, ...others } = useProps(
13180
+ "SpotlightFooter",
13181
+ defaultProps$3,
13182
+ props
13183
+ ), ctx = useSpotlightContext();
13184
+ return /* @__PURE__ */ jsx(
13185
+ Box,
13186
+ {
13187
+ ref,
13188
+ ...ctx.getStyles("footer", { className, classNames, style, styles }),
13189
+ ...others
13190
+ }
13191
+ );
13192
+ });
13193
+ SpotlightFooter.classes = classes;
13194
+ SpotlightFooter.displayName = "@mantine/spotlight/SpotlightFooter";
13195
+ function getHotkeys(hotkeys, store) {
13196
+ if (!hotkeys)
13197
+ return [];
13198
+ const open = () => spotlightActions.open(store);
13199
+ return Array.isArray(hotkeys) ? hotkeys.map((hotkey) => [hotkey, open]) : [[hotkeys, open]];
13200
+ }
13201
+ const defaultProps$2 = {
13202
+ size: 600,
13203
+ yOffset: 80,
13204
+ zIndex: getDefaultZIndex("max"),
13205
+ overlayProps: { backgroundOpacity: 0.35, blur: 7 },
13206
+ transitionProps: { duration: 200, transition: "pop" },
13207
+ store: spotlightStore,
13208
+ clearQueryOnClose: !0,
13209
+ closeOnActionTrigger: !0,
13210
+ shortcut: "mod + K",
13211
+ maxHeight: 400,
13212
+ scrollable: !1
13213
+ }, SpotlightRoot = factory((_props, ref) => {
13214
+ const props = useProps("SpotlightRoot", defaultProps$2, _props), {
13215
+ classNames,
13216
+ className,
13217
+ style,
13218
+ styles,
13219
+ unstyled,
13220
+ vars,
13221
+ store,
13222
+ children,
13223
+ query,
13224
+ onQueryChange,
13225
+ transitionProps,
13226
+ clearQueryOnClose,
13227
+ shortcut,
13228
+ tagsToIgnore,
13229
+ triggerOnContentEditable,
13230
+ disabled,
13231
+ onSpotlightOpen,
13232
+ onSpotlightClose,
13233
+ forceOpened,
13234
+ closeOnActionTrigger,
13235
+ maxHeight,
13236
+ scrollable,
13237
+ ...others
13238
+ } = props, theme = useMantineTheme(), { opened, query: storeQuery } = useSpotlight(store), _query = query || storeQuery, setQuery2 = (q) => {
13239
+ onQueryChange?.(q), spotlightActions.setQuery(q, store);
13240
+ }, getStyles2 = useStyles({
13241
+ name: "Spotlight",
13242
+ classes,
13243
+ props,
13244
+ className,
13245
+ style,
13246
+ classNames,
13247
+ styles,
13248
+ unstyled
13249
+ });
13250
+ return useHotkeys(getHotkeys(shortcut, store), tagsToIgnore, triggerOnContentEditable), useDidUpdate(() => {
13251
+ opened ? onSpotlightOpen?.() : onSpotlightClose?.();
13252
+ }, [opened]), disabled ? null : /* @__PURE__ */ jsx(
13253
+ SpotlightProvider,
13254
+ {
13255
+ value: {
13256
+ getStyles: getStyles2,
13257
+ query: _query,
13258
+ setQuery: setQuery2,
13259
+ store,
13260
+ closeOnActionTrigger
13261
+ },
13262
+ children: /* @__PURE__ */ jsx(
13263
+ Modal,
13264
+ {
13265
+ ref,
13266
+ ...others,
13267
+ withCloseButton: !1,
13268
+ opened: opened || !!forceOpened,
13269
+ padding: 0,
13270
+ onClose: () => spotlightActions.close(store),
13271
+ className,
13272
+ style,
13273
+ classNames: resolveClassNames({
13274
+ theme,
13275
+ classNames: [classes, classNames],
13276
+ props,
13277
+ stylesCtx: void 0
13278
+ }),
13279
+ styles: resolveStyles({ theme, styles, props, stylesCtx: void 0 }),
13280
+ transitionProps: {
13281
+ ...transitionProps,
13282
+ onExited: () => {
13283
+ clearQueryOnClose && setQuery2(""), spotlightActions.clearSpotlightState({ clearQuery: clearQueryOnClose }, store), transitionProps?.onExited?.();
13284
+ }
13285
+ },
13286
+ __vars: { "--spotlight-max-height": scrollable ? rem(maxHeight) : void 0 },
13287
+ __staticSelector: "Spotlight",
13288
+ "data-scrollable": scrollable || void 0,
13289
+ children
13290
+ }
13291
+ )
13292
+ }
13293
+ );
13294
+ });
13295
+ SpotlightRoot.classes = classes;
13296
+ SpotlightRoot.displayName = "@mantine/spotlight/SpotlightRoot";
13297
+ const defaultProps$1 = {
13298
+ size: "lg"
13299
+ }, SpotlightSearch = factory((props, ref) => {
13300
+ const { classNames, styles, onKeyDown, onChange, vars, value, ...others } = useProps(
13301
+ "SpotlightSearch",
13302
+ defaultProps$1,
13303
+ props
13304
+ ), ctx = useSpotlightContext(), inputStyles = ctx.getStyles("search"), [isComposing, setIsComposing] = useState(!1), handleKeyDown = (event) => {
13305
+ onKeyDown?.(event), !isComposing && (event.nativeEvent.code === "ArrowDown" && (event.preventDefault(), spotlightActions.selectNextAction(ctx.store)), event.nativeEvent.code === "ArrowUp" && (event.preventDefault(), spotlightActions.selectPreviousAction(ctx.store)), (event.nativeEvent.code === "Enter" || event.nativeEvent.code === "NumpadEnter") && (event.preventDefault(), spotlightActions.triggerSelectedAction(ctx.store)));
13306
+ };
13307
+ return /* @__PURE__ */ jsx(
13308
+ Input,
13309
+ {
13310
+ ref,
13311
+ classNames: [{ input: inputStyles.className }, classNames],
13312
+ styles: [{ input: inputStyles.style }, styles],
13313
+ ...others,
13314
+ value: value ?? ctx.query,
13315
+ onChange: (event) => {
13316
+ ctx.setQuery(event.currentTarget.value), onChange?.(event);
13317
+ },
13318
+ onKeyDown: handleKeyDown,
13319
+ onCompositionStart: () => setIsComposing(!0),
13320
+ onCompositionEnd: () => setIsComposing(!1)
13321
+ }
13322
+ );
13323
+ });
13324
+ SpotlightSearch.classes = classes;
13325
+ SpotlightSearch.displayName = "@mantine/spotlight/SpotlightSearch";
13326
+ const defaultProps = {
13327
+ size: 600,
13328
+ yOffset: 80,
13329
+ limit: 1 / 0,
13330
+ zIndex: getDefaultZIndex("max"),
13331
+ overlayProps: { backgroundOpacity: 0.35, blur: 7 },
13332
+ transitionProps: { duration: 200, transition: "pop" },
13333
+ store: spotlightStore,
13334
+ filter: defaultSpotlightFilter,
13335
+ clearQueryOnClose: !0,
13336
+ closeOnActionTrigger: !0,
13337
+ shortcut: "mod + K",
13338
+ highlightQuery: !1
13339
+ }, Spotlight = factory((_props, ref) => {
13340
+ const props = useProps("Spotlight", defaultProps, _props), {
13341
+ searchProps,
13342
+ filter,
13343
+ query,
13344
+ onQueryChange,
13345
+ actions,
13346
+ nothingFound,
13347
+ highlightQuery,
13348
+ limit,
13349
+ ...others
13350
+ } = props, [_query, setQuery2] = useUncontrolled({
13351
+ value: query,
13352
+ defaultValue: "",
13353
+ finalValue: "",
13354
+ onChange: onQueryChange
13355
+ }), filteredActions = limitActions(filter(_query, actions), limit).map((item) => {
13356
+ if (isActionsGroup(item)) {
13357
+ const items = item.actions.map(({ id, ...actionData }) => /* @__PURE__ */ jsx(SpotlightAction, { highlightQuery, ...actionData }, id));
13358
+ return /* @__PURE__ */ jsx(SpotlightActionsGroup, { label: item.group, children: items }, item.group);
13359
+ }
13360
+ return /* @__PURE__ */ jsx(SpotlightAction, { highlightQuery, ...item }, item.id);
13361
+ });
13362
+ return /* @__PURE__ */ jsxs(SpotlightRoot, { ...others, query: _query, onQueryChange: setQuery2, ref, children: [
13363
+ /* @__PURE__ */ jsx(SpotlightSearch, { ...searchProps }),
13364
+ /* @__PURE__ */ jsxs(SpotlightActionsList, { children: [
13365
+ filteredActions,
13366
+ filteredActions.length === 0 && nothingFound && /* @__PURE__ */ jsx(SpotlightEmpty, { children: nothingFound })
13367
+ ] })
13368
+ ] });
13369
+ });
13370
+ Spotlight.classes = classes;
13371
+ Spotlight.displayName = "@mantine/spotlight/Spotlight";
13372
+ Spotlight.Search = SpotlightSearch;
13373
+ Spotlight.ActionsList = SpotlightActionsList;
13374
+ Spotlight.Action = SpotlightAction;
13375
+ Spotlight.Empty = SpotlightEmpty;
13376
+ Spotlight.ActionsGroup = SpotlightActionsGroup;
13377
+ Spotlight.Footer = SpotlightFooter;
13378
+ Spotlight.Root = SpotlightRoot;
13379
+ Spotlight.open = spotlight.open;
13380
+ Spotlight.close = spotlight.close;
13381
+ Spotlight.toggle = spotlight.toggle;
12423
13382
  export {
12424
- HoverCardDropdown as $,
13383
+ useLocalStorage as $,
12425
13384
  ActionIcon as A,
12426
13385
  Box as B,
12427
13386
  Card as C,
12428
- MenuDropdown as D,
12429
- MenuLabel as E,
12430
- FocusTrap as F,
13387
+ Pill as D,
13388
+ Divider as E,
13389
+ useViewportSize as F,
12431
13390
  Group as G,
12432
- MenuDivider as H,
13391
+ Highlight as H,
12433
13392
  Image as I,
12434
- TooltipGroup as J,
12435
- MenuItem as K,
13393
+ FocusTrap as J,
13394
+ FocusTrapInitialFocus as K,
12436
13395
  CloseButton as L,
12437
- MantineContext as M,
12438
- keys as N,
12439
- ColorSwatch as O,
13396
+ Badge as M,
13397
+ Flex as N,
13398
+ ActionIconGroup as O,
12440
13399
  Paper as P,
12441
- Divider as Q,
12442
- Flex as R,
12443
- ScrollAreaAutosize as S,
13400
+ Tabs as Q,
13401
+ RemoveScroll as R,
13402
+ Spotlight as S,
12444
13403
  ThemeIcon as T,
12445
- CheckIcon as U,
12446
- rem as V,
12447
- Slider as W,
12448
- useDebouncedValue as X,
12449
- HoverCard as Y,
12450
- HoverCardTarget as Z,
12451
- UnstyledButton as _,
13404
+ TabsList as U,
13405
+ TabsTab as V,
13406
+ TabsPanel as W,
13407
+ ScrollArea as X,
13408
+ UnstyledButton as Y,
13409
+ CopyButton as Z,
13410
+ Code as _,
12452
13411
  Text as a,
12453
- Anchor as a0,
12454
- CopyButton as a1,
12455
- Spoiler as a2,
12456
- Badge as a3,
12457
- ButtonGroup as a4,
12458
- Tabs as a5,
12459
- TabsList as a6,
12460
- TabsTab as a7,
12461
- TabsPanel as a8,
12462
- useHover$1 as a9,
12463
- Loader as aA,
12464
- FloatingIndicator as aa,
12465
- useUncontrolled as ab,
12466
- clampUseMovePosition as ac,
12467
- useMove as ad,
12468
- ActionIconGroup as ae,
12469
- Overlay as af,
12470
- Notification as ag,
12471
- Code as ah,
12472
- createTheme as ai,
12473
- MantineProvider as aj,
12474
- useInViewport as ak,
12475
- SimpleGrid as al,
12476
- Drawer as am,
12477
- ScrollArea as an,
12478
- Alert as ao,
12479
- Select as ap,
12480
- ModalRoot as aq,
12481
- ModalOverlay as ar,
12482
- ModalContent as as,
12483
- ModalBody as at,
12484
- useMantineTheme as au,
12485
- useMediaQuery as av,
12486
- useDisclosure as aw,
12487
- LoadingOverlay as ax,
12488
- useCallbackRef as ay,
12489
- Burger as az,
13412
+ useStateHistory as a0,
13413
+ Space as a1,
13414
+ useHotkeys as a2,
13415
+ MantineContext as a3,
13416
+ Menu as a4,
13417
+ MenuTarget as a5,
13418
+ MenuDropdown as a6,
13419
+ MenuLabel as a7,
13420
+ MenuDivider as a8,
13421
+ TooltipGroup as a9,
13422
+ ModalRoot as aA,
13423
+ ModalOverlay as aB,
13424
+ ModalContent as aC,
13425
+ ModalBody as aD,
13426
+ useMantineTheme as aE,
13427
+ useMediaQuery as aF,
13428
+ useDisclosure as aG,
13429
+ LoadingOverlay as aH,
13430
+ useCallbackRef as aI,
13431
+ Burger as aJ,
13432
+ Loader as aK,
13433
+ MenuItem as aa,
13434
+ keys as ab,
13435
+ ColorSwatch as ac,
13436
+ CheckIcon as ad,
13437
+ rem as ae,
13438
+ Slider as af,
13439
+ useDebouncedValue as ag,
13440
+ Spoiler as ah,
13441
+ ButtonGroup as ai,
13442
+ useHover$1 as aj,
13443
+ FloatingIndicator as ak,
13444
+ useUncontrolled as al,
13445
+ clampUseMovePosition as am,
13446
+ useMove as an,
13447
+ openSpotlight as ao,
13448
+ HoverCard as ap,
13449
+ HoverCardTarget as aq,
13450
+ Overlay as ar,
13451
+ HoverCardDropdown as as,
13452
+ Notification as at,
13453
+ createTheme as au,
13454
+ MantineProvider as av,
13455
+ useInViewport as aw,
13456
+ SimpleGrid as ax,
13457
+ Drawer as ay,
13458
+ Select as az,
12490
13459
  CardSection as b,
12491
13460
  clsx as c,
12492
13461
  Center as d,
12493
13462
  Container as e,
12494
13463
  Title as f,
12495
13464
  Button as g,
12496
- useMergedRef as h,
12497
- useMantineStyleNonce as i,
12498
- useComputedColorScheme as j,
12499
- Popover as k,
12500
- PopoverTarget as l,
12501
- PopoverDropdown as m,
12502
- Stack as n,
12503
- useTree as o,
12504
- Tree as p,
12505
- useLocalStorage as q,
12506
- useStateHistory as r,
12507
- Space as s,
13465
+ useReducedMotion as h,
13466
+ useMergedRef as i,
13467
+ useMantineStyleNonce as j,
13468
+ SpotlightActionsGroup as k,
13469
+ useComputedColorScheme as l,
13470
+ Popover as m,
13471
+ PopoverTarget as n,
13472
+ PopoverDropdown as o,
13473
+ ScrollAreaAutosize as p,
13474
+ Stack as q,
13475
+ useTree as r,
13476
+ Tree as s,
12508
13477
  themeToVars as t,
12509
13478
  useMantineColorScheme as u,
12510
- SegmentedControl as v,
12511
- useHotkeys as w,
12512
- Tooltip as x,
12513
- Menu as y,
12514
- MenuTarget as z
13479
+ Tooltip as v,
13480
+ useId$1 as w,
13481
+ SegmentedControl as x,
13482
+ Alert as y,
13483
+ Anchor as z
12515
13484
  };