@fairmint/ui 0.2.7 → 0.2.9

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.
@@ -21,7 +21,7 @@ function _interopNamespaceDefault(e) {
21
21
  }
22
22
  const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
23
23
  const ReactDOM__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactDOM);
24
- function clamp$3(value, min2, max2) {
24
+ function clamp$4(value, min2, max2) {
25
25
  if (min2 === void 0 && max2 === void 0) {
26
26
  return value;
27
27
  }
@@ -2751,6 +2751,23 @@ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
2751
2751
  childFactory: PropTypes.func
2752
2752
  } : {};
2753
2753
  TransitionGroup.defaultProps = defaultProps$_;
2754
+ var extendStatics = function(d, b) {
2755
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2756
+ d2.__proto__ = b2;
2757
+ } || function(d2, b2) {
2758
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
2759
+ };
2760
+ return extendStatics(d, b);
2761
+ };
2762
+ function __extends(d, b) {
2763
+ if (typeof b !== "function" && b !== null)
2764
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2765
+ extendStatics(d, b);
2766
+ function __() {
2767
+ this.constructor = d;
2768
+ }
2769
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2770
+ }
2754
2771
  var __assign = function() {
2755
2772
  __assign = Object.assign || function __assign2(t) {
2756
2773
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -3857,8 +3874,8 @@ function mergeClassNames(objects) {
3857
3874
  });
3858
3875
  return merged;
3859
3876
  }
3860
- function resolveClassNames({ theme: theme2, classNames, props, stylesCtx }) {
3861
- const arrayClassNames = Array.isArray(classNames) ? classNames : [classNames];
3877
+ function resolveClassNames({ theme: theme2, classNames: classNames2, props, stylesCtx }) {
3878
+ const arrayClassNames = Array.isArray(classNames2) ? classNames2 : [classNames2];
3862
3879
  const resolvedClassNames = arrayClassNames.map(
3863
3880
  (item) => typeof item === "function" ? item(theme2, props, stylesCtx) : item || EMPTY_CLASS_NAMES
3864
3881
  );
@@ -5168,7 +5185,7 @@ function MantineProvider({
5168
5185
  }
5169
5186
  MantineProvider.displayName = "@mantine/core/MantineProvider";
5170
5187
  function useResolvedStylesApi({
5171
- classNames,
5188
+ classNames: classNames2,
5172
5189
  styles,
5173
5190
  props,
5174
5191
  stylesCtx
@@ -5177,7 +5194,7 @@ function useResolvedStylesApi({
5177
5194
  return {
5178
5195
  resolvedClassNames: resolveClassNames({
5179
5196
  theme: theme2,
5180
- classNames,
5197
+ classNames: classNames2,
5181
5198
  props,
5182
5199
  stylesCtx: stylesCtx || void 0
5183
5200
  }),
@@ -5218,10 +5235,10 @@ function getResolvedClassNames({
5218
5235
  selector,
5219
5236
  stylesCtx,
5220
5237
  theme: theme2,
5221
- classNames,
5238
+ classNames: classNames2,
5222
5239
  props
5223
5240
  }) {
5224
- return resolveClassNames({ theme: theme2, classNames, props, stylesCtx })[selector];
5241
+ return resolveClassNames({ theme: theme2, classNames: classNames2, props, stylesCtx })[selector];
5225
5242
  }
5226
5243
  function getRootClassName({ rootSelector, selector, className }) {
5227
5244
  return rootSelector === selector ? className : void 0;
@@ -5270,7 +5287,7 @@ function getClassName({
5270
5287
  themeName,
5271
5288
  selector,
5272
5289
  classNamesPrefix,
5273
- classNames,
5290
+ classNames: classNames2,
5274
5291
  classes: classes2,
5275
5292
  unstyled,
5276
5293
  className,
@@ -5285,7 +5302,7 @@ function getClassName({
5285
5302
  getGlobalClassNames({ theme: theme2, options, unstyled: unstyled || headless }),
5286
5303
  getThemeClassNames({ theme: theme2, themeName, selector, props, stylesCtx }),
5287
5304
  getVariantClassName({ options, classes: classes2, selector, unstyled }),
5288
- getResolvedClassNames({ selector, stylesCtx, theme: theme2, classNames, props }),
5305
+ getResolvedClassNames({ selector, stylesCtx, theme: theme2, classNames: classNames2, props }),
5289
5306
  getResolvedClassNames({ selector, stylesCtx, theme: theme2, classNames: transformedStyles, props }),
5290
5307
  getOptionsClassNames({ selector, stylesCtx, options, props, theme: theme2 }),
5291
5308
  getRootClassName({ rootSelector, selector, className }),
@@ -5411,7 +5428,7 @@ function useStyles({
5411
5428
  style,
5412
5429
  rootSelector = "root",
5413
5430
  unstyled,
5414
- classNames,
5431
+ classNames: classNames2,
5415
5432
  styles,
5416
5433
  vars,
5417
5434
  varsResolver: varsResolver2,
@@ -5434,7 +5451,7 @@ function useStyles({
5434
5451
  themeName,
5435
5452
  selector,
5436
5453
  classNamesPrefix,
5437
- classNames,
5454
+ classNames: classNames2,
5438
5455
  classes: classes2,
5439
5456
  unstyled,
5440
5457
  className,
@@ -6372,7 +6389,7 @@ const oppositeSideMap = {
6372
6389
  bottom: "top",
6373
6390
  top: "bottom"
6374
6391
  };
6375
- function clamp$2(start, value, end) {
6392
+ function clamp$3(start, value, end) {
6376
6393
  return max(start, min(value, end));
6377
6394
  }
6378
6395
  function evaluate(value, param) {
@@ -6878,7 +6895,7 @@ const arrow$3 = (options) => ({
6878
6895
  const min$1 = minPadding;
6879
6896
  const max2 = clientSize - arrowDimensions[length] - maxPadding;
6880
6897
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
6881
- const offset2 = clamp$2(min$1, center, max2);
6898
+ const offset2 = clamp$3(min$1, center, max2);
6882
6899
  const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
6883
6900
  const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
6884
6901
  return {
@@ -7295,14 +7312,14 @@ const shift$2 = function(options) {
7295
7312
  const maxSide = mainAxis === "y" ? "bottom" : "right";
7296
7313
  const min2 = mainAxisCoord + overflow[minSide];
7297
7314
  const max2 = mainAxisCoord - overflow[maxSide];
7298
- mainAxisCoord = clamp$2(min2, mainAxisCoord, max2);
7315
+ mainAxisCoord = clamp$3(min2, mainAxisCoord, max2);
7299
7316
  }
7300
7317
  if (checkCrossAxis) {
7301
7318
  const minSide = crossAxis === "y" ? "top" : "left";
7302
7319
  const maxSide = crossAxis === "y" ? "bottom" : "right";
7303
7320
  const min2 = crossAxisCoord + overflow[minSide];
7304
7321
  const max2 = crossAxisCoord - overflow[maxSide];
7305
- crossAxisCoord = clamp$2(min2, crossAxisCoord, max2);
7322
+ crossAxisCoord = clamp$3(min2, crossAxisCoord, max2);
7306
7323
  }
7307
7324
  const limitedCoords = limiter.fn({
7308
7325
  ...state,
@@ -9769,7 +9786,7 @@ function linearScale(input, output) {
9769
9786
  return output[0] + ratio * (value - input[0]);
9770
9787
  };
9771
9788
  }
9772
- function clamp$1(value, [min2, max2]) {
9789
+ function clamp$2(value, [min2, max2]) {
9773
9790
  return Math.min(max2, Math.max(min2, value));
9774
9791
  }
9775
9792
  function getThumbOffsetFromScroll(scrollPos, sizes2, dir = "ltr") {
@@ -9779,7 +9796,7 @@ function getThumbOffsetFromScroll(scrollPos, sizes2, dir = "ltr") {
9779
9796
  const maxScrollPos = sizes2.content - sizes2.viewport;
9780
9797
  const maxThumbPos = scrollbar - thumbSizePx;
9781
9798
  const scrollClampRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
9782
- const scrollWithoutMomentum = clamp$1(scrollPos, scrollClampRange);
9799
+ const scrollWithoutMomentum = clamp$2(scrollPos, scrollClampRange);
9783
9800
  const interpolate = linearScale([0, maxScrollPos], [0, maxThumbPos]);
9784
9801
  return interpolate(scrollWithoutMomentum);
9785
9802
  }
@@ -10367,7 +10384,7 @@ const varsResolver$T = createVarsResolver(
10367
10384
  const ScrollArea = factory((_props, ref) => {
10368
10385
  const props = useProps("ScrollArea", defaultProps$X, _props);
10369
10386
  const {
10370
- classNames,
10387
+ classNames: classNames2,
10371
10388
  className,
10372
10389
  style,
10373
10390
  styles,
@@ -10397,7 +10414,7 @@ const ScrollArea = factory((_props, ref) => {
10397
10414
  classes: classes$Q,
10398
10415
  className,
10399
10416
  style,
10400
- classNames,
10417
+ classNames: classNames2,
10401
10418
  styles,
10402
10419
  unstyled,
10403
10420
  attributes,
@@ -10497,7 +10514,7 @@ ScrollArea.displayName = "@mantine/core/ScrollArea";
10497
10514
  const ScrollAreaAutosize = factory((props, ref) => {
10498
10515
  const {
10499
10516
  children,
10500
- classNames,
10517
+ classNames: classNames2,
10501
10518
  styles,
10502
10519
  scrollbarSize,
10503
10520
  scrollHideDelay,
@@ -10565,7 +10582,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
10565
10582
  children: /* @__PURE__ */ jsxRuntime.jsx(
10566
10583
  ScrollArea,
10567
10584
  {
10568
- classNames,
10585
+ classNames: classNames2,
10569
10586
  styles,
10570
10587
  scrollHideDelay,
10571
10588
  scrollbarSize,
@@ -10605,7 +10622,7 @@ const UnstyledButton = polymorphicFactory(
10605
10622
  component = "button",
10606
10623
  __staticSelector,
10607
10624
  unstyled,
10608
- classNames,
10625
+ classNames: classNames2,
10609
10626
  styles,
10610
10627
  style,
10611
10628
  attributes,
@@ -10617,7 +10634,7 @@ const UnstyledButton = polymorphicFactory(
10617
10634
  classes: classes$P,
10618
10635
  className,
10619
10636
  style,
10620
- classNames,
10637
+ classNames: classNames2,
10621
10638
  styles,
10622
10639
  unstyled,
10623
10640
  attributes
@@ -10639,14 +10656,14 @@ UnstyledButton.displayName = "@mantine/core/UnstyledButton";
10639
10656
  var classes$O = { "root": "m_515a97f8" };
10640
10657
  const VisuallyHidden = factory((_props, ref) => {
10641
10658
  const props = useProps("VisuallyHidden", null, _props);
10642
- const { classNames, className, style, styles, unstyled, vars, attributes, ...others } = props;
10659
+ const { classNames: classNames2, className, style, styles, unstyled, vars, attributes, ...others } = props;
10643
10660
  const getStyles2 = useStyles({
10644
10661
  name: "VisuallyHidden",
10645
10662
  classes: classes$O,
10646
10663
  props,
10647
10664
  className,
10648
10665
  style,
10649
- classNames,
10666
+ classNames: classNames2,
10650
10667
  styles,
10651
10668
  unstyled,
10652
10669
  attributes
@@ -10665,7 +10682,7 @@ const varsResolver$S = createVarsResolver((_, { radius, shadow }) => ({
10665
10682
  const Paper = polymorphicFactory((_props, ref) => {
10666
10683
  const props = useProps("Paper", null, _props);
10667
10684
  const {
10668
- classNames,
10685
+ classNames: classNames2,
10669
10686
  className,
10670
10687
  style,
10671
10688
  styles,
@@ -10685,7 +10702,7 @@ const Paper = polymorphicFactory((_props, ref) => {
10685
10702
  classes: classes$N,
10686
10703
  className,
10687
10704
  style,
10688
- classNames,
10705
+ classNames: classNames2,
10689
10706
  styles,
10690
10707
  unstyled,
10691
10708
  attributes,
@@ -10861,7 +10878,7 @@ const varsResolver$R = createVarsResolver(
10861
10878
  const Overlay = polymorphicFactory((_props, ref) => {
10862
10879
  const props = useProps("Overlay", defaultProps$V, _props);
10863
10880
  const {
10864
- classNames,
10881
+ classNames: classNames2,
10865
10882
  className,
10866
10883
  style,
10867
10884
  styles,
@@ -10886,7 +10903,7 @@ const Overlay = polymorphicFactory((_props, ref) => {
10886
10903
  classes: classes$M,
10887
10904
  className,
10888
10905
  style,
10889
- classNames,
10906
+ classNames: classNames2,
10890
10907
  styles,
10891
10908
  unstyled,
10892
10909
  attributes,
@@ -11269,7 +11286,7 @@ const PopoverDropdown = factory((_props, ref) => {
11269
11286
  children,
11270
11287
  onKeyDownCapture,
11271
11288
  variant,
11272
- classNames,
11289
+ classNames: classNames2,
11273
11290
  styles,
11274
11291
  ...others
11275
11292
  } = props;
@@ -11319,7 +11336,7 @@ const PopoverDropdown = factory((_props, ref) => {
11319
11336
  ...ctx.getStyles("dropdown", {
11320
11337
  className,
11321
11338
  props,
11322
- classNames,
11339
+ classNames: classNames2,
11323
11340
  styles,
11324
11341
  style: [
11325
11342
  {
@@ -11351,7 +11368,7 @@ const PopoverDropdown = factory((_props, ref) => {
11351
11368
  arrowPosition: ctx.arrowPosition,
11352
11369
  ...ctx.getStyles("arrow", {
11353
11370
  props,
11354
- classNames,
11371
+ classNames: classNames2,
11355
11372
  styles
11356
11373
  })
11357
11374
  }
@@ -11589,7 +11606,7 @@ function Popover(_props) {
11589
11606
  arrowRadius,
11590
11607
  arrowPosition,
11591
11608
  unstyled,
11592
- classNames,
11609
+ classNames: classNames2,
11593
11610
  styles,
11594
11611
  closeOnClickOutside,
11595
11612
  withinPortal,
@@ -11625,7 +11642,7 @@ function Popover(_props) {
11625
11642
  name: __staticSelector,
11626
11643
  props,
11627
11644
  classes: classes$L,
11628
- classNames,
11645
+ classNames: classNames2,
11629
11646
  styles,
11630
11647
  unstyled,
11631
11648
  attributes,
@@ -11633,7 +11650,7 @@ function Popover(_props) {
11633
11650
  vars,
11634
11651
  varsResolver: varsResolver$Q
11635
11652
  });
11636
- const { resolvedStyles } = useResolvedStylesApi({ classNames, styles, props });
11653
+ const { resolvedStyles } = useResolvedStylesApi({ classNames: classNames2, styles, props });
11637
11654
  const [dropdownVisible, setDropdownVisible] = React.useState(opened ?? defaultOpened ?? false);
11638
11655
  const positionRef = React.useRef(position);
11639
11656
  const arrowRef = React.useRef(null);
@@ -11739,7 +11756,7 @@ function Popover(_props) {
11739
11756
  withRoles,
11740
11757
  targetProps: others,
11741
11758
  __staticSelector,
11742
- classNames,
11759
+ classNames: classNames2,
11743
11760
  styles,
11744
11761
  unstyled,
11745
11762
  variant,
@@ -11808,7 +11825,7 @@ const varsResolver$P = createVarsResolver((theme2, { size: size2, color }) => ({
11808
11825
  "--loader-color": color ? getThemeColor(color, theme2) : void 0
11809
11826
  }
11810
11827
  }));
11811
- const Loader = factory((_props, ref) => {
11828
+ const Loader$1 = factory((_props, ref) => {
11812
11829
  const props = useProps("Loader", defaultProps$R, _props);
11813
11830
  const {
11814
11831
  size: size2,
@@ -11817,7 +11834,7 @@ const Loader = factory((_props, ref) => {
11817
11834
  vars,
11818
11835
  className,
11819
11836
  style,
11820
- classNames,
11837
+ classNames: classNames2,
11821
11838
  styles,
11822
11839
  unstyled,
11823
11840
  loaders,
@@ -11832,7 +11849,7 @@ const Loader = factory((_props, ref) => {
11832
11849
  classes: classes$K,
11833
11850
  className,
11834
11851
  style,
11835
- classNames,
11852
+ classNames: classNames2,
11836
11853
  styles,
11837
11854
  unstyled,
11838
11855
  attributes,
@@ -11854,9 +11871,9 @@ const Loader = factory((_props, ref) => {
11854
11871
  }
11855
11872
  );
11856
11873
  });
11857
- Loader.defaultLoaders = defaultLoaders;
11858
- Loader.classes = classes$K;
11859
- Loader.displayName = "@mantine/core/Loader";
11874
+ Loader$1.defaultLoaders = defaultLoaders;
11875
+ Loader$1.classes = classes$K;
11876
+ Loader$1.displayName = "@mantine/core/Loader";
11860
11877
  var classes$J = { "root": "m_8d3f4000", "icon": "m_8d3afb97", "loader": "m_302b9fb1", "group": "m_1a0f1b21", "groupSection": "m_437b6484" };
11861
11878
  const defaultProps$Q = {
11862
11879
  orientation: "horizontal"
@@ -11869,7 +11886,7 @@ const ActionIconGroup = factory((_props, ref) => {
11869
11886
  const {
11870
11887
  className,
11871
11888
  style,
11872
- classNames,
11889
+ classNames: classNames2,
11873
11890
  styles,
11874
11891
  unstyled,
11875
11892
  orientation,
@@ -11886,7 +11903,7 @@ const ActionIconGroup = factory((_props, ref) => {
11886
11903
  classes: classes$J,
11887
11904
  className,
11888
11905
  style,
11889
- classNames,
11906
+ classNames: classNames2,
11890
11907
  styles,
11891
11908
  unstyled,
11892
11909
  attributes,
@@ -11935,7 +11952,7 @@ const ActionIconGroupSection = factory((_props, ref) => {
11935
11952
  const {
11936
11953
  className,
11937
11954
  style,
11938
- classNames,
11955
+ classNames: classNames2,
11939
11956
  styles,
11940
11957
  unstyled,
11941
11958
  vars,
@@ -11952,7 +11969,7 @@ const ActionIconGroupSection = factory((_props, ref) => {
11952
11969
  classes: classes$J,
11953
11970
  className,
11954
11971
  style,
11955
- classNames,
11972
+ classNames: classNames2,
11956
11973
  styles,
11957
11974
  unstyled,
11958
11975
  attributes,
@@ -11992,7 +12009,7 @@ const ActionIcon$1 = polymorphicFactory((_props, ref) => {
11992
12009
  className,
11993
12010
  unstyled,
11994
12011
  variant,
11995
- classNames,
12012
+ classNames: classNames2,
11996
12013
  styles,
11997
12014
  style,
11998
12015
  loading,
@@ -12017,7 +12034,7 @@ const ActionIcon$1 = polymorphicFactory((_props, ref) => {
12017
12034
  className,
12018
12035
  style,
12019
12036
  classes: classes$J,
12020
- classNames,
12037
+ classNames: classNames2,
12021
12038
  styles,
12022
12039
  unstyled,
12023
12040
  attributes,
@@ -12036,7 +12053,7 @@ const ActionIcon$1 = polymorphicFactory((_props, ref) => {
12036
12053
  ref,
12037
12054
  mod: [{ loading, disabled: disabled || dataDisabled }, mod],
12038
12055
  children: [
12039
- typeof loading === "boolean" && /* @__PURE__ */ jsxRuntime.jsx(Transition$1, { mounted: loading, transition: "slide-down", duration: 150, children: (transitionStyles) => /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", ...getStyles2("loader", { style: transitionStyles }), "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(Loader, { color: "var(--ai-color)", size: "calc(var(--ai-size) * 0.55)", ...loaderProps }) }) }),
12056
+ typeof loading === "boolean" && /* @__PURE__ */ jsxRuntime.jsx(Transition$1, { mounted: loading, transition: "slide-down", duration: 150, children: (transitionStyles) => /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", ...getStyles2("loader", { style: transitionStyles }), "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(Loader$1, { color: "var(--ai-color)", size: "calc(var(--ai-size) * 0.55)", ...loaderProps }) }) }),
12040
12057
  /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", mod: { loading }, ...getStyles2("icon"), children })
12041
12058
  ]
12042
12059
  }
@@ -12088,7 +12105,7 @@ const CloseButton = polymorphicFactory((_props, ref) => {
12088
12105
  vars,
12089
12106
  radius,
12090
12107
  className,
12091
- classNames,
12108
+ classNames: classNames2,
12092
12109
  style,
12093
12110
  styles,
12094
12111
  unstyled,
@@ -12107,7 +12124,7 @@ const CloseButton = polymorphicFactory((_props, ref) => {
12107
12124
  className,
12108
12125
  style,
12109
12126
  classes: classes$I,
12110
- classNames,
12127
+ classNames: classNames2,
12111
12128
  styles,
12112
12129
  unstyled,
12113
12130
  attributes,
@@ -12158,7 +12175,7 @@ const varsResolver$K = createVarsResolver(
12158
12175
  const Group = factory((_props, ref) => {
12159
12176
  const props = useProps("Group", defaultProps$O, _props);
12160
12177
  const {
12161
- classNames,
12178
+ classNames: classNames2,
12162
12179
  className,
12163
12180
  style,
12164
12181
  styles,
@@ -12189,7 +12206,7 @@ const Group = factory((_props, ref) => {
12189
12206
  className,
12190
12207
  style,
12191
12208
  classes: classes$H,
12192
- classNames,
12209
+ classNames: classNames2,
12193
12210
  styles,
12194
12211
  unstyled,
12195
12212
  attributes,
@@ -12519,10 +12536,10 @@ const [InputContext, useInputContext] = createOptionalContext({
12519
12536
  var classes$F = { "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" };
12520
12537
  const InputClearButton = factory((_props, ref) => {
12521
12538
  const props = useProps("InputClearButton", null, _props);
12522
- const { size: size2, variant, vars, classNames, styles, ...others } = props;
12539
+ const { size: size2, variant, vars, classNames: classNames2, styles, ...others } = props;
12523
12540
  const ctx = useInputContext();
12524
12541
  const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
12525
- classNames,
12542
+ classNames: classNames2,
12526
12543
  styles,
12527
12544
  props
12528
12545
  });
@@ -12592,7 +12609,7 @@ const varsResolver$J = createVarsResolver((_, { size: size2 }) => ({
12592
12609
  const InputDescription = factory((_props, ref) => {
12593
12610
  const props = useProps("InputDescription", null, _props);
12594
12611
  const {
12595
- classNames,
12612
+ classNames: classNames2,
12596
12613
  className,
12597
12614
  style,
12598
12615
  styles,
@@ -12612,7 +12629,7 @@ const InputDescription = factory((_props, ref) => {
12612
12629
  classes: classes$F,
12613
12630
  className,
12614
12631
  style,
12615
- classNames,
12632
+ classNames: classNames2,
12616
12633
  styles,
12617
12634
  unstyled,
12618
12635
  attributes,
@@ -12643,7 +12660,7 @@ const varsResolver$I = createVarsResolver((_, { size: size2 }) => ({
12643
12660
  const InputError = factory((_props, ref) => {
12644
12661
  const props = useProps("InputError", null, _props);
12645
12662
  const {
12646
- classNames,
12663
+ classNames: classNames2,
12647
12664
  className,
12648
12665
  style,
12649
12666
  styles,
@@ -12662,7 +12679,7 @@ const InputError = factory((_props, ref) => {
12662
12679
  classes: classes$F,
12663
12680
  className,
12664
12681
  style,
12665
- classNames,
12682
+ classNames: classNames2,
12666
12683
  styles,
12667
12684
  unstyled,
12668
12685
  attributes,
@@ -12698,7 +12715,7 @@ const varsResolver$H = createVarsResolver((_, { size: size2 }) => ({
12698
12715
  const InputLabel = factory((_props, ref) => {
12699
12716
  const props = useProps("InputLabel", defaultProps$N, _props);
12700
12717
  const {
12701
- classNames,
12718
+ classNames: classNames2,
12702
12719
  className,
12703
12720
  style,
12704
12721
  styles,
@@ -12722,7 +12739,7 @@ const InputLabel = factory((_props, ref) => {
12722
12739
  classes: classes$F,
12723
12740
  className,
12724
12741
  style,
12725
- classNames,
12742
+ classNames: classNames2,
12726
12743
  styles,
12727
12744
  unstyled,
12728
12745
  attributes,
@@ -12761,7 +12778,7 @@ InputLabel.displayName = "@mantine/core/InputLabel";
12761
12778
  const InputPlaceholder = factory((_props, ref) => {
12762
12779
  const props = useProps("InputPlaceholder", null, _props);
12763
12780
  const {
12764
- classNames,
12781
+ classNames: classNames2,
12765
12782
  className,
12766
12783
  style,
12767
12784
  styles,
@@ -12780,7 +12797,7 @@ const InputPlaceholder = factory((_props, ref) => {
12780
12797
  classes: classes$F,
12781
12798
  className,
12782
12799
  style,
12783
- classNames,
12800
+ classNames: classNames2,
12784
12801
  styles,
12785
12802
  unstyled,
12786
12803
  attributes,
@@ -12828,7 +12845,7 @@ const varsResolver$G = createVarsResolver((_, { size: size2 }) => ({
12828
12845
  const InputWrapper = factory((_props, ref) => {
12829
12846
  const props = useProps("InputWrapper", defaultProps$M, _props);
12830
12847
  const {
12831
- classNames,
12848
+ classNames: classNames2,
12832
12849
  className,
12833
12850
  style,
12834
12851
  styles,
@@ -12861,7 +12878,7 @@ const InputWrapper = factory((_props, ref) => {
12861
12878
  classes: classes$F,
12862
12879
  className,
12863
12880
  style,
12864
- classNames,
12881
+ classNames: classNames2,
12865
12882
  styles,
12866
12883
  unstyled,
12867
12884
  attributes,
@@ -12985,7 +13002,7 @@ const varsResolver$F = createVarsResolver((_, props, ctx) => ({
12985
13002
  const Input = polymorphicFactory((_props, ref) => {
12986
13003
  const props = useProps("Input", defaultProps$L, _props);
12987
13004
  const {
12988
- classNames,
13005
+ classNames: classNames2,
12989
13006
  className,
12990
13007
  style,
12991
13008
  styles,
@@ -13030,7 +13047,7 @@ const Input = polymorphicFactory((_props, ref) => {
13030
13047
  classes: classes$F,
13031
13048
  className,
13032
13049
  style,
13033
- classNames,
13050
+ classNames: classNames2,
13034
13051
  styles,
13035
13052
  unstyled,
13036
13053
  attributes,
@@ -13130,7 +13147,7 @@ function useInputProps(component, defaultProps2, _props) {
13130
13147
  description,
13131
13148
  error: error2,
13132
13149
  required,
13133
- classNames,
13150
+ classNames: classNames2,
13134
13151
  styles,
13135
13152
  className,
13136
13153
  unstyled,
@@ -13158,7 +13175,7 @@ function useInputProps(component, defaultProps2, _props) {
13158
13175
  description,
13159
13176
  error: error2,
13160
13177
  required,
13161
- classNames,
13178
+ classNames: classNames2,
13162
13179
  className,
13163
13180
  __staticSelector,
13164
13181
  __stylesApiProps: __stylesApiProps || props,
@@ -13180,13 +13197,13 @@ function useInputProps(component, defaultProps2, _props) {
13180
13197
  };
13181
13198
  return {
13182
13199
  ...rest,
13183
- classNames,
13200
+ classNames: classNames2,
13184
13201
  styles,
13185
13202
  unstyled,
13186
13203
  wrapperProps: { ...wrapperProps, ...styleProps },
13187
13204
  inputProps: {
13188
13205
  required,
13189
- classNames,
13206
+ classNames: classNames2,
13190
13207
  styles,
13191
13208
  unstyled,
13192
13209
  size: size2,
@@ -13223,7 +13240,7 @@ var classes$E = { "root": "m_8bffd616" };
13223
13240
  const Flex = polymorphicFactory((_props, ref) => {
13224
13241
  const props = useProps("Flex", null, _props);
13225
13242
  const {
13226
- classNames,
13243
+ classNames: classNames2,
13227
13244
  className,
13228
13245
  style,
13229
13246
  styles,
@@ -13245,7 +13262,7 @@ const Flex = polymorphicFactory((_props, ref) => {
13245
13262
  props,
13246
13263
  className,
13247
13264
  style,
13248
- classNames,
13265
+ classNames: classNames2,
13249
13266
  styles,
13250
13267
  unstyled,
13251
13268
  attributes,
@@ -13404,7 +13421,7 @@ const varsResolver$E = createVarsResolver(
13404
13421
  const FloatingIndicator = factory((_props, ref) => {
13405
13422
  const props = useProps("FloatingIndicator", null, _props);
13406
13423
  const {
13407
- classNames,
13424
+ classNames: classNames2,
13408
13425
  className,
13409
13426
  style,
13410
13427
  styles,
@@ -13424,7 +13441,7 @@ const FloatingIndicator = factory((_props, ref) => {
13424
13441
  props,
13425
13442
  className,
13426
13443
  style,
13427
- classNames,
13444
+ classNames: classNames2,
13428
13445
  styles,
13429
13446
  unstyled,
13430
13447
  attributes,
@@ -13516,7 +13533,7 @@ const varsResolver$D = createVarsResolver(
13516
13533
  const Alert$1 = factory((_props, ref) => {
13517
13534
  const props = useProps("Alert", null, _props);
13518
13535
  const {
13519
- classNames,
13536
+ classNames: classNames2,
13520
13537
  className,
13521
13538
  style,
13522
13539
  styles,
@@ -13543,7 +13560,7 @@ const Alert$1 = factory((_props, ref) => {
13543
13560
  props,
13544
13561
  className,
13545
13562
  style,
13546
- classNames,
13563
+ classNames: classNames2,
13547
13564
  styles,
13548
13565
  unstyled,
13549
13566
  attributes,
@@ -13627,7 +13644,7 @@ const Text = polymorphicFactory((_props, ref) => {
13627
13644
  vars,
13628
13645
  className,
13629
13646
  style,
13630
- classNames,
13647
+ classNames: classNames2,
13631
13648
  styles,
13632
13649
  unstyled,
13633
13650
  variant,
@@ -13642,7 +13659,7 @@ const Text = polymorphicFactory((_props, ref) => {
13642
13659
  classes: classes$B,
13643
13660
  className,
13644
13661
  style,
13645
- classNames,
13662
+ classNames: classNames2,
13646
13663
  styles,
13647
13664
  unstyled,
13648
13665
  attributes,
@@ -13703,7 +13720,7 @@ const [AppShellProvider, useAppShellContext] = createSafeContext(
13703
13720
  var classes$z = { "root": "m_89ab340", "navbar": "m_45252eee", "aside": "m_9cdde9a", "header": "m_3b16f56b", "main": "m_8983817", "footer": "m_3840c879", "section": "m_6dcfc7c7" };
13704
13721
  const AppShellAside = factory((_props, ref) => {
13705
13722
  const {
13706
- classNames,
13723
+ classNames: classNames2,
13707
13724
  className,
13708
13725
  style,
13709
13726
  styles,
@@ -13726,7 +13743,7 @@ const AppShellAside = factory((_props, ref) => {
13726
13743
  mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
13727
13744
  ...ctx.getStyles("aside", {
13728
13745
  className: clsx({ [ReactRemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
13729
- classNames,
13746
+ classNames: classNames2,
13730
13747
  styles,
13731
13748
  style
13732
13749
  }),
@@ -13739,7 +13756,7 @@ AppShellAside.classes = classes$z;
13739
13756
  AppShellAside.displayName = "@mantine/core/AppShellAside";
13740
13757
  const AppShellFooter = factory((_props, ref) => {
13741
13758
  const {
13742
- classNames,
13759
+ classNames: classNames2,
13743
13760
  className,
13744
13761
  style,
13745
13762
  styles,
@@ -13762,7 +13779,7 @@ const AppShellFooter = factory((_props, ref) => {
13762
13779
  mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
13763
13780
  ...ctx.getStyles("footer", {
13764
13781
  className: clsx({ [ReactRemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
13765
- classNames,
13782
+ classNames: classNames2,
13766
13783
  styles,
13767
13784
  style
13768
13785
  }),
@@ -13775,7 +13792,7 @@ AppShellFooter.classes = classes$z;
13775
13792
  AppShellFooter.displayName = "@mantine/core/AppShellFooter";
13776
13793
  const AppShellHeader = factory((_props, ref) => {
13777
13794
  const {
13778
- classNames,
13795
+ classNames: classNames2,
13779
13796
  className,
13780
13797
  style,
13781
13798
  styles,
@@ -13798,7 +13815,7 @@ const AppShellHeader = factory((_props, ref) => {
13798
13815
  mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
13799
13816
  ...ctx.getStyles("header", {
13800
13817
  className: clsx({ [ReactRemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
13801
- classNames,
13818
+ classNames: classNames2,
13802
13819
  styles,
13803
13820
  style
13804
13821
  }),
@@ -13810,7 +13827,7 @@ const AppShellHeader = factory((_props, ref) => {
13810
13827
  AppShellHeader.classes = classes$z;
13811
13828
  AppShellHeader.displayName = "@mantine/core/AppShellHeader";
13812
13829
  const AppShellMain = factory((_props, ref) => {
13813
- const { classNames, className, style, styles, vars, ...others } = useProps(
13830
+ const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
13814
13831
  "AppShellMain",
13815
13832
  null,
13816
13833
  _props
@@ -13821,7 +13838,7 @@ const AppShellMain = factory((_props, ref) => {
13821
13838
  {
13822
13839
  component: "main",
13823
13840
  ref,
13824
- ...ctx.getStyles("main", { className, style, classNames, styles }),
13841
+ ...ctx.getStyles("main", { className, style, classNames: classNames2, styles }),
13825
13842
  ...others
13826
13843
  }
13827
13844
  );
@@ -14193,7 +14210,7 @@ function AppShellMediaStyles({
14193
14210
  }
14194
14211
  const AppShellNavbar = factory((_props, ref) => {
14195
14212
  const {
14196
- classNames,
14213
+ classNames: classNames2,
14197
14214
  className,
14198
14215
  style,
14199
14216
  styles,
@@ -14214,7 +14231,7 @@ const AppShellNavbar = factory((_props, ref) => {
14214
14231
  component: "nav",
14215
14232
  ref,
14216
14233
  mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
14217
- ...ctx.getStyles("navbar", { className, classNames, styles, style }),
14234
+ ...ctx.getStyles("navbar", { className, classNames: classNames2, styles, style }),
14218
14235
  ...others,
14219
14236
  __vars: { "--app-shell-navbar-z-index": `calc(${zIndex ?? ctx.zIndex} + 1)` }
14220
14237
  }
@@ -14223,7 +14240,7 @@ const AppShellNavbar = factory((_props, ref) => {
14223
14240
  AppShellNavbar.classes = classes$z;
14224
14241
  AppShellNavbar.displayName = "@mantine/core/AppShellNavbar";
14225
14242
  const AppShellSection = polymorphicFactory((_props, ref) => {
14226
- const { classNames, className, style, styles, vars, grow, mod, ...others } = useProps(
14243
+ const { classNames: classNames2, className, style, styles, vars, grow, mod, ...others } = useProps(
14227
14244
  "AppShellSection",
14228
14245
  null,
14229
14246
  _props
@@ -14234,7 +14251,7 @@ const AppShellSection = polymorphicFactory((_props, ref) => {
14234
14251
  {
14235
14252
  ref,
14236
14253
  mod: [{ grow }, mod],
14237
- ...ctx.getStyles("section", { className, style, classNames, styles }),
14254
+ ...ctx.getStyles("section", { className, style, classNames: classNames2, styles }),
14238
14255
  ...others
14239
14256
  }
14240
14257
  );
@@ -14286,7 +14303,7 @@ const varsResolver$B = createVarsResolver(
14286
14303
  const AppShell = factory((_props, ref) => {
14287
14304
  const props = useProps("AppShell", defaultProps$H, _props);
14288
14305
  const {
14289
- classNames,
14306
+ classNames: classNames2,
14290
14307
  className,
14291
14308
  style,
14292
14309
  styles,
@@ -14316,7 +14333,7 @@ const AppShell = factory((_props, ref) => {
14316
14333
  props,
14317
14334
  className,
14318
14335
  style,
14319
- classNames,
14336
+ classNames: classNames2,
14320
14337
  styles,
14321
14338
  unstyled,
14322
14339
  attributes,
@@ -14403,14 +14420,14 @@ const varsResolver$A = createVarsResolver((theme2, { size: size2, color }) => ({
14403
14420
  }));
14404
14421
  const ComboboxChevron = factory((_props, ref) => {
14405
14422
  const props = useProps("ComboboxChevron", defaultProps$G, _props);
14406
- const { size: size2, error: error2, style, className, classNames, styles, unstyled, vars, mod, ...others } = props;
14423
+ const { size: size2, error: error2, style, className, classNames: classNames2, styles, unstyled, vars, mod, ...others } = props;
14407
14424
  const getStyles2 = useStyles({
14408
14425
  name: "ComboboxChevron",
14409
14426
  classes: classes$y,
14410
14427
  props,
14411
14428
  style,
14412
14429
  className,
14413
- classNames,
14430
+ classNames: classNames2,
14414
14431
  styles,
14415
14432
  unstyled,
14416
14433
  vars,
@@ -14467,7 +14484,7 @@ const ComboboxClearButton = React.forwardRef(
14467
14484
  );
14468
14485
  ComboboxClearButton.displayName = "@mantine/core/ComboboxClearButton";
14469
14486
  const ComboboxDropdown = factory((props, ref) => {
14470
- const { classNames, styles, className, style, hidden: hidden2, ...others } = useProps(
14487
+ const { classNames: classNames2, styles, className, style, hidden: hidden2, ...others } = useProps(
14471
14488
  "ComboboxDropdown",
14472
14489
  null,
14473
14490
  props
@@ -14480,7 +14497,7 @@ const ComboboxDropdown = factory((props, ref) => {
14480
14497
  ref,
14481
14498
  role: "presentation",
14482
14499
  "data-hidden": hidden2 || void 0,
14483
- ...ctx.getStyles("dropdown", { className, style, classNames, styles })
14500
+ ...ctx.getStyles("dropdown", { className, style, classNames: classNames2, styles })
14484
14501
  }
14485
14502
  );
14486
14503
  });
@@ -14501,7 +14518,7 @@ const ComboboxDropdownTarget = factory((props, ref) => {
14501
14518
  });
14502
14519
  ComboboxDropdownTarget.displayName = "@mantine/core/ComboboxDropdownTarget";
14503
14520
  const ComboboxEmpty = factory((props, ref) => {
14504
- const { classNames, className, style, styles, vars, ...others } = useProps(
14521
+ const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
14505
14522
  "ComboboxEmpty",
14506
14523
  null,
14507
14524
  props
@@ -14511,7 +14528,7 @@ const ComboboxEmpty = factory((props, ref) => {
14511
14528
  Box,
14512
14529
  {
14513
14530
  ref,
14514
- ...ctx.getStyles("empty", { className, classNames, styles, style }),
14531
+ ...ctx.getStyles("empty", { className, classNames: classNames2, styles, style }),
14515
14532
  ...others
14516
14533
  }
14517
14534
  );
@@ -14637,7 +14654,7 @@ const ComboboxEventsTarget = factory((props, ref) => {
14637
14654
  });
14638
14655
  ComboboxEventsTarget.displayName = "@mantine/core/ComboboxEventsTarget";
14639
14656
  const ComboboxFooter = factory((props, ref) => {
14640
- const { classNames, className, style, styles, vars, ...others } = useProps(
14657
+ const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
14641
14658
  "ComboboxFooter",
14642
14659
  null,
14643
14660
  props
@@ -14647,7 +14664,7 @@ const ComboboxFooter = factory((props, ref) => {
14647
14664
  Box,
14648
14665
  {
14649
14666
  ref,
14650
- ...ctx.getStyles("footer", { className, classNames, style, styles }),
14667
+ ...ctx.getStyles("footer", { className, classNames: classNames2, style, styles }),
14651
14668
  ...others,
14652
14669
  onMouseDown: (event) => {
14653
14670
  event.preventDefault();
@@ -14658,7 +14675,7 @@ const ComboboxFooter = factory((props, ref) => {
14658
14675
  ComboboxFooter.classes = classes$y;
14659
14676
  ComboboxFooter.displayName = "@mantine/core/ComboboxFooter";
14660
14677
  const ComboboxGroup = factory((props, ref) => {
14661
- const { classNames, className, style, styles, vars, children, label, id, ...others } = useProps(
14678
+ const { classNames: classNames2, className, style, styles, vars, children, label, id, ...others } = useProps(
14662
14679
  "ComboboxGroup",
14663
14680
  null,
14664
14681
  props
@@ -14671,10 +14688,10 @@ const ComboboxGroup = factory((props, ref) => {
14671
14688
  ref,
14672
14689
  role: "group",
14673
14690
  "aria-labelledby": label ? _id : void 0,
14674
- ...ctx.getStyles("group", { className, classNames, style, styles }),
14691
+ ...ctx.getStyles("group", { className, classNames: classNames2, style, styles }),
14675
14692
  ...others,
14676
14693
  children: [
14677
- label && /* @__PURE__ */ jsxRuntime.jsx("div", { id: _id, ...ctx.getStyles("groupLabel", { classNames, styles }), children: label }),
14694
+ label && /* @__PURE__ */ jsxRuntime.jsx("div", { id: _id, ...ctx.getStyles("groupLabel", { classNames: classNames2, styles }), children: label }),
14678
14695
  children
14679
14696
  ]
14680
14697
  }
@@ -14683,7 +14700,7 @@ const ComboboxGroup = factory((props, ref) => {
14683
14700
  ComboboxGroup.classes = classes$y;
14684
14701
  ComboboxGroup.displayName = "@mantine/core/ComboboxGroup";
14685
14702
  const ComboboxHeader = factory((props, ref) => {
14686
- const { classNames, className, style, styles, vars, ...others } = useProps(
14703
+ const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
14687
14704
  "ComboboxHeader",
14688
14705
  null,
14689
14706
  props
@@ -14693,7 +14710,7 @@ const ComboboxHeader = factory((props, ref) => {
14693
14710
  Box,
14694
14711
  {
14695
14712
  ref,
14696
- ...ctx.getStyles("header", { className, classNames, style, styles }),
14713
+ ...ctx.getStyles("header", { className, classNames: classNames2, style, styles }),
14697
14714
  ...others,
14698
14715
  onMouseDown: (event) => {
14699
14716
  event.preventDefault();
@@ -14721,7 +14738,7 @@ ComboboxHiddenInput.displayName = "@mantine/core/ComboboxHiddenInput";
14721
14738
  const ComboboxOption = factory((_props, ref) => {
14722
14739
  const props = useProps("ComboboxOption", null, _props);
14723
14740
  const {
14724
- classNames,
14741
+ classNames: classNames2,
14725
14742
  className,
14726
14743
  style,
14727
14744
  styles,
@@ -14742,7 +14759,7 @@ const ComboboxOption = factory((_props, ref) => {
14742
14759
  return /* @__PURE__ */ jsxRuntime.jsx(
14743
14760
  Box,
14744
14761
  {
14745
- ...ctx.getStyles("option", { className, classNames, styles, style }),
14762
+ ...ctx.getStyles("option", { className, classNames: classNames2, styles, style }),
14746
14763
  ...others,
14747
14764
  ref,
14748
14765
  id: _id,
@@ -14777,7 +14794,7 @@ ComboboxOption.classes = classes$y;
14777
14794
  ComboboxOption.displayName = "@mantine/core/ComboboxOption";
14778
14795
  const ComboboxOptions = factory((_props, ref) => {
14779
14796
  const props = useProps("ComboboxOptions", null, _props);
14780
- const { classNames, className, style, styles, id, onMouseDown, labelledBy, ...others } = props;
14797
+ const { classNames: classNames2, className, style, styles, id, onMouseDown, labelledBy, ...others } = props;
14781
14798
  const ctx = useComboboxContext();
14782
14799
  const _id = useId$1(id);
14783
14800
  React.useEffect(() => {
@@ -14787,7 +14804,7 @@ const ComboboxOptions = factory((_props, ref) => {
14787
14804
  Box,
14788
14805
  {
14789
14806
  ref,
14790
- ...ctx.getStyles("options", { className, style, classNames, styles }),
14807
+ ...ctx.getStyles("options", { className, style, classNames: classNames2, styles }),
14791
14808
  ...others,
14792
14809
  id: _id,
14793
14810
  role: "listbox",
@@ -14808,7 +14825,7 @@ const defaultProps$D = {
14808
14825
  const ComboboxSearch = factory((_props, ref) => {
14809
14826
  const props = useProps("ComboboxSearch", defaultProps$D, _props);
14810
14827
  const {
14811
- classNames,
14828
+ classNames: classNames2,
14812
14829
  styles,
14813
14830
  unstyled,
14814
14831
  vars,
@@ -14832,7 +14849,7 @@ const ComboboxSearch = factory((_props, ref) => {
14832
14849
  Input,
14833
14850
  {
14834
14851
  ref: useMergedRef(ref, ctx.store.searchRef),
14835
- classNames: [{ input: _styles.className }, classNames],
14852
+ classNames: [{ input: _styles.className }, classNames2],
14836
14853
  styles: [{ input: _styles.style }, styles],
14837
14854
  size: size2 || ctx.size,
14838
14855
  ...targetProps,
@@ -15132,7 +15149,7 @@ const varsResolver$z = createVarsResolver((_, { size: size2, dropdownPadding })
15132
15149
  function Combobox(_props) {
15133
15150
  const props = useProps("Combobox", defaultProps$B, _props);
15134
15151
  const {
15135
- classNames,
15152
+ classNames: classNames2,
15136
15153
  styles,
15137
15154
  unstyled,
15138
15155
  children,
@@ -15154,7 +15171,7 @@ function Combobox(_props) {
15154
15171
  name: __staticSelector || "Combobox",
15155
15172
  classes: classes$y,
15156
15173
  props,
15157
- classNames,
15174
+ classNames: classNames2,
15158
15175
  styles,
15159
15176
  unstyled,
15160
15177
  attributes,
@@ -15216,7 +15233,7 @@ const InlineInput = React.forwardRef(
15216
15233
  __staticSelector,
15217
15234
  __stylesApiProps,
15218
15235
  className,
15219
- classNames,
15236
+ classNames: classNames2,
15220
15237
  styles,
15221
15238
  unstyled,
15222
15239
  children,
@@ -15242,7 +15259,7 @@ const InlineInput = React.forwardRef(
15242
15259
  className,
15243
15260
  style,
15244
15261
  classes: classes$x,
15245
- classNames,
15262
+ classNames: classNames2,
15246
15263
  styles,
15247
15264
  unstyled,
15248
15265
  attributes
@@ -15307,7 +15324,7 @@ const varsResolver$y = createVarsResolver((_, { radius }) => ({
15307
15324
  const CheckboxCard = factory((_props, ref) => {
15308
15325
  const props = useProps("CheckboxCard", defaultProps$A, _props);
15309
15326
  const {
15310
- classNames,
15327
+ classNames: classNames2,
15311
15328
  className,
15312
15329
  style,
15313
15330
  styles,
@@ -15329,7 +15346,7 @@ const CheckboxCard = factory((_props, ref) => {
15329
15346
  props,
15330
15347
  className,
15331
15348
  style,
15332
- classNames,
15349
+ classNames: classNames2,
15333
15350
  styles,
15334
15351
  unstyled,
15335
15352
  attributes,
@@ -15471,7 +15488,7 @@ const varsResolver$x = createVarsResolver(
15471
15488
  const CheckboxIndicator = factory((_props, ref) => {
15472
15489
  const props = useProps("CheckboxIndicator", defaultProps$z, _props);
15473
15490
  const {
15474
- classNames,
15491
+ classNames: classNames2,
15475
15492
  className,
15476
15493
  style,
15477
15494
  styles,
@@ -15496,7 +15513,7 @@ const CheckboxIndicator = factory((_props, ref) => {
15496
15513
  props,
15497
15514
  className,
15498
15515
  style,
15499
- classNames,
15516
+ classNames: classNames2,
15500
15517
  styles,
15501
15518
  unstyled,
15502
15519
  attributes,
@@ -15542,7 +15559,7 @@ const varsResolver$w = createVarsResolver(
15542
15559
  const Checkbox$1 = factory((_props, forwardedRef) => {
15543
15560
  const props = useProps("Checkbox", defaultProps$y, _props);
15544
15561
  const {
15545
- classNames,
15562
+ classNames: classNames2,
15546
15563
  className,
15547
15564
  style,
15548
15565
  styles,
@@ -15578,7 +15595,7 @@ const Checkbox$1 = factory((_props, forwardedRef) => {
15578
15595
  classes: classes$w,
15579
15596
  className,
15580
15597
  style,
15581
- classNames,
15598
+ classNames: classNames2,
15582
15599
  styles,
15583
15600
  unstyled,
15584
15601
  attributes,
@@ -15620,7 +15637,7 @@ const Checkbox$1 = factory((_props, forwardedRef) => {
15620
15637
  description,
15621
15638
  error: error2,
15622
15639
  disabled: withContextProps.disabled,
15623
- classNames,
15640
+ classNames: classNames2,
15624
15641
  styles,
15625
15642
  unstyled,
15626
15643
  "data-checked": withContextProps.checked || checked || void 0,
@@ -15847,14 +15864,14 @@ const varsResolver$v = createVarsResolver((_, { spacing }) => ({
15847
15864
  }));
15848
15865
  const AvatarGroup = factory((_props, ref) => {
15849
15866
  const props = useProps("AvatarGroup", null, _props);
15850
- const { classNames, className, style, styles, unstyled, vars, spacing, attributes, ...others } = props;
15867
+ const { classNames: classNames2, className, style, styles, unstyled, vars, spacing, attributes, ...others } = props;
15851
15868
  const getStyles2 = useStyles({
15852
15869
  name: "AvatarGroup",
15853
15870
  classes: classes$t,
15854
15871
  props,
15855
15872
  className,
15856
15873
  style,
15857
- classNames,
15874
+ classNames: classNames2,
15858
15875
  styles,
15859
15876
  unstyled,
15860
15877
  attributes,
@@ -15945,7 +15962,7 @@ const varsResolver$u = createVarsResolver(
15945
15962
  const Avatar$1 = polymorphicFactory((_props, ref) => {
15946
15963
  const props = useProps("Avatar", null, _props);
15947
15964
  const {
15948
- classNames,
15965
+ classNames: classNames2,
15949
15966
  className,
15950
15967
  style,
15951
15968
  styles,
@@ -15973,7 +15990,7 @@ const Avatar$1 = polymorphicFactory((_props, ref) => {
15973
15990
  classes: classes$t,
15974
15991
  className,
15975
15992
  style,
15976
- classNames,
15993
+ classNames: classNames2,
15977
15994
  styles,
15978
15995
  unstyled,
15979
15996
  attributes,
@@ -16034,7 +16051,7 @@ const varsResolver$t = createVarsResolver(
16034
16051
  const Badge$1 = polymorphicFactory((_props, ref) => {
16035
16052
  const props = useProps("Badge", null, _props);
16036
16053
  const {
16037
- classNames,
16054
+ classNames: classNames2,
16038
16055
  className,
16039
16056
  style,
16040
16057
  styles,
@@ -16060,7 +16077,7 @@ const Badge$1 = polymorphicFactory((_props, ref) => {
16060
16077
  classes: classes$s,
16061
16078
  className,
16062
16079
  style,
16063
- classNames,
16080
+ classNames: classNames2,
16064
16081
  styles,
16065
16082
  unstyled,
16066
16083
  attributes,
@@ -16108,7 +16125,7 @@ const varsResolver$s = createVarsResolver(
16108
16125
  const Burger = factory((_props, ref) => {
16109
16126
  const props = useProps("Burger", null, _props);
16110
16127
  const {
16111
- classNames,
16128
+ classNames: classNames2,
16112
16129
  className,
16113
16130
  style,
16114
16131
  styles,
@@ -16128,7 +16145,7 @@ const Burger = factory((_props, ref) => {
16128
16145
  props,
16129
16146
  className,
16130
16147
  style,
16131
- classNames,
16148
+ classNames: classNames2,
16132
16149
  styles,
16133
16150
  unstyled,
16134
16151
  attributes,
@@ -16154,7 +16171,7 @@ const ButtonGroup = factory((_props, ref) => {
16154
16171
  const {
16155
16172
  className,
16156
16173
  style,
16157
- classNames,
16174
+ classNames: classNames2,
16158
16175
  styles,
16159
16176
  unstyled,
16160
16177
  orientation,
@@ -16171,7 +16188,7 @@ const ButtonGroup = factory((_props, ref) => {
16171
16188
  classes: classes$q,
16172
16189
  className,
16173
16190
  style,
16174
- classNames,
16191
+ classNames: classNames2,
16175
16192
  styles,
16176
16193
  unstyled,
16177
16194
  attributes,
@@ -16220,7 +16237,7 @@ const ButtonGroupSection = factory((_props, ref) => {
16220
16237
  const {
16221
16238
  className,
16222
16239
  style,
16223
- classNames,
16240
+ classNames: classNames2,
16224
16241
  styles,
16225
16242
  unstyled,
16226
16243
  vars,
@@ -16237,7 +16254,7 @@ const ButtonGroupSection = factory((_props, ref) => {
16237
16254
  classes: classes$q,
16238
16255
  className,
16239
16256
  style,
16240
- classNames,
16257
+ classNames: classNames2,
16241
16258
  styles,
16242
16259
  unstyled,
16243
16260
  attributes,
@@ -16297,7 +16314,7 @@ const Button$1 = polymorphicFactory((_props, ref) => {
16297
16314
  loading,
16298
16315
  loaderProps,
16299
16316
  gradient,
16300
- classNames,
16317
+ classNames: classNames2,
16301
16318
  styles,
16302
16319
  unstyled,
16303
16320
  "data-disabled": dataDisabled,
@@ -16312,7 +16329,7 @@ const Button$1 = polymorphicFactory((_props, ref) => {
16312
16329
  classes: classes$q,
16313
16330
  className,
16314
16331
  style,
16315
- classNames,
16332
+ classNames: classNames2,
16316
16333
  styles,
16317
16334
  unstyled,
16318
16335
  attributes,
@@ -16342,7 +16359,7 @@ const Button$1 = polymorphicFactory((_props, ref) => {
16342
16359
  ...others,
16343
16360
  children: [
16344
16361
  typeof loading === "boolean" && /* @__PURE__ */ jsxRuntime.jsx(Transition$1, { mounted: loading, transition: loaderTransition, duration: 150, children: (transitionStyles) => /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", ...getStyles2("loader", { style: transitionStyles }), "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(
16345
- Loader,
16362
+ Loader$1,
16346
16363
  {
16347
16364
  color: "var(--button-color)",
16348
16365
  size: "calc(var(--button-height) / 1.8)",
@@ -16368,14 +16385,14 @@ const [CardProvider, useCardContext] = createSafeContext(
16368
16385
  var classes$p = { "root": "m_e615b15f", "section": "m_599a2148" };
16369
16386
  const CardSection = polymorphicFactory((_props, ref) => {
16370
16387
  const props = useProps("CardSection", null, _props);
16371
- const { classNames, className, style, styles, vars, withBorder, inheritPadding, mod, ...others } = props;
16388
+ const { classNames: classNames2, className, style, styles, vars, withBorder, inheritPadding, mod, ...others } = props;
16372
16389
  const ctx = useCardContext();
16373
16390
  return /* @__PURE__ */ jsxRuntime.jsx(
16374
16391
  Box,
16375
16392
  {
16376
16393
  ref,
16377
16394
  mod: [{ "with-border": withBorder, "inherit-padding": inheritPadding }, mod],
16378
- ...ctx.getStyles("section", { className, style, styles, classNames }),
16395
+ ...ctx.getStyles("section", { className, style, styles, classNames: classNames2 }),
16379
16396
  ...others
16380
16397
  }
16381
16398
  );
@@ -16390,7 +16407,7 @@ const varsResolver$o = createVarsResolver((_, { padding }) => ({
16390
16407
  const Card$1 = polymorphicFactory((_props, ref) => {
16391
16408
  const props = useProps("Card", null, _props);
16392
16409
  const {
16393
- classNames,
16410
+ classNames: classNames2,
16394
16411
  className,
16395
16412
  style,
16396
16413
  styles,
@@ -16407,7 +16424,7 @@ const Card$1 = polymorphicFactory((_props, ref) => {
16407
16424
  classes: classes$p,
16408
16425
  className,
16409
16426
  style,
16410
- classNames,
16427
+ classNames: classNames2,
16411
16428
  styles,
16412
16429
  unstyled,
16413
16430
  attributes,
@@ -16433,7 +16450,7 @@ var classes$o = { "root": "m_4451eb3a" };
16433
16450
  const Center = polymorphicFactory((_props, ref) => {
16434
16451
  const props = useProps("Center", null, _props);
16435
16452
  const {
16436
- classNames,
16453
+ classNames: classNames2,
16437
16454
  className,
16438
16455
  style,
16439
16456
  styles,
@@ -16450,7 +16467,7 @@ const Center = polymorphicFactory((_props, ref) => {
16450
16467
  classes: classes$o,
16451
16468
  className,
16452
16469
  style,
16453
- classNames,
16470
+ classNames: classNames2,
16454
16471
  styles,
16455
16472
  unstyled,
16456
16473
  attributes,
@@ -16469,7 +16486,7 @@ const varsResolver$n = createVarsResolver((_, { size: size2, fluid }) => ({
16469
16486
  const Container = factory((_props, ref) => {
16470
16487
  const props = useProps("Container", null, _props);
16471
16488
  const {
16472
- classNames,
16489
+ classNames: classNames2,
16473
16490
  className,
16474
16491
  style,
16475
16492
  styles,
@@ -16487,7 +16504,7 @@ const Container = factory((_props, ref) => {
16487
16504
  props,
16488
16505
  className,
16489
16506
  style,
16490
- classNames,
16507
+ classNames: classNames2,
16491
16508
  styles,
16492
16509
  unstyled,
16493
16510
  attributes,
@@ -16520,7 +16537,7 @@ const varsResolver$m = createVarsResolver((theme2, { color, variant, size: size2
16520
16537
  const Divider = factory((_props, ref) => {
16521
16538
  const props = useProps("Divider", defaultProps$w, _props);
16522
16539
  const {
16523
- classNames,
16540
+ classNames: classNames2,
16524
16541
  className,
16525
16542
  style,
16526
16543
  styles,
@@ -16540,7 +16557,7 @@ const Divider = factory((_props, ref) => {
16540
16557
  props,
16541
16558
  className,
16542
16559
  style,
16543
- classNames,
16560
+ classNames: classNames2,
16544
16561
  styles,
16545
16562
  unstyled,
16546
16563
  attributes,
@@ -16567,13 +16584,13 @@ const [DrawerProvider, useDrawerContext] = createSafeContext(
16567
16584
  );
16568
16585
  const DrawerBody = factory((_props, ref) => {
16569
16586
  const props = useProps("DrawerBody", null, _props);
16570
- const { classNames, className, style, styles, vars, ...others } = props;
16587
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
16571
16588
  const ctx = useDrawerContext();
16572
16589
  return /* @__PURE__ */ jsxRuntime.jsx(
16573
16590
  ModalBaseBody,
16574
16591
  {
16575
16592
  ref,
16576
- ...ctx.getStyles("body", { classNames, style, styles, className }),
16593
+ ...ctx.getStyles("body", { classNames: classNames2, style, styles, className }),
16577
16594
  ...others
16578
16595
  }
16579
16596
  );
@@ -16582,13 +16599,13 @@ DrawerBody.classes = classes$l;
16582
16599
  DrawerBody.displayName = "@mantine/core/DrawerBody";
16583
16600
  const DrawerCloseButton = factory((_props, ref) => {
16584
16601
  const props = useProps("DrawerCloseButton", null, _props);
16585
- const { classNames, className, style, styles, vars, ...others } = props;
16602
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
16586
16603
  const ctx = useDrawerContext();
16587
16604
  return /* @__PURE__ */ jsxRuntime.jsx(
16588
16605
  ModalBaseCloseButton,
16589
16606
  {
16590
16607
  ref,
16591
- ...ctx.getStyles("close", { classNames, style, styles, className }),
16608
+ ...ctx.getStyles("close", { classNames: classNames2, style, styles, className }),
16592
16609
  ...others
16593
16610
  }
16594
16611
  );
@@ -16597,14 +16614,14 @@ DrawerCloseButton.classes = classes$l;
16597
16614
  DrawerCloseButton.displayName = "@mantine/core/DrawerCloseButton";
16598
16615
  const DrawerContent = factory((_props, ref) => {
16599
16616
  const props = useProps("DrawerContent", null, _props);
16600
- const { classNames, className, style, styles, vars, children, radius, __hidden, ...others } = props;
16617
+ const { classNames: classNames2, className, style, styles, vars, children, radius, __hidden, ...others } = props;
16601
16618
  const ctx = useDrawerContext();
16602
16619
  const Scroll = ctx.scrollAreaComponent || NativeScrollArea;
16603
16620
  return /* @__PURE__ */ jsxRuntime.jsx(
16604
16621
  ModalBaseContent,
16605
16622
  {
16606
- ...ctx.getStyles("content", { className, style, styles, classNames }),
16607
- innerProps: ctx.getStyles("inner", { className, style, styles, classNames }),
16623
+ ...ctx.getStyles("content", { className, style, styles, classNames: classNames2 }),
16624
+ innerProps: ctx.getStyles("inner", { className, style, styles, classNames: classNames2 }),
16608
16625
  ref,
16609
16626
  ...others,
16610
16627
  radius: radius || ctx.radius || 0,
@@ -16617,13 +16634,13 @@ DrawerContent.classes = classes$l;
16617
16634
  DrawerContent.displayName = "@mantine/core/DrawerContent";
16618
16635
  const DrawerHeader = factory((_props, ref) => {
16619
16636
  const props = useProps("DrawerHeader", null, _props);
16620
- const { classNames, className, style, styles, vars, ...others } = props;
16637
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
16621
16638
  const ctx = useDrawerContext();
16622
16639
  return /* @__PURE__ */ jsxRuntime.jsx(
16623
16640
  ModalBaseHeader,
16624
16641
  {
16625
16642
  ref,
16626
- ...ctx.getStyles("header", { classNames, style, styles, className }),
16643
+ ...ctx.getStyles("header", { classNames: classNames2, style, styles, className }),
16627
16644
  ...others
16628
16645
  }
16629
16646
  );
@@ -16632,13 +16649,13 @@ DrawerHeader.classes = classes$l;
16632
16649
  DrawerHeader.displayName = "@mantine/core/DrawerHeader";
16633
16650
  const DrawerOverlay = factory((_props, ref) => {
16634
16651
  const props = useProps("DrawerOverlay", null, _props);
16635
- const { classNames, className, style, styles, vars, ...others } = props;
16652
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
16636
16653
  const ctx = useDrawerContext();
16637
16654
  return /* @__PURE__ */ jsxRuntime.jsx(
16638
16655
  ModalBaseOverlay,
16639
16656
  {
16640
16657
  ref,
16641
- ...ctx.getStyles("overlay", { classNames, style, styles, className }),
16658
+ ...ctx.getStyles("overlay", { classNames: classNames2, style, styles, className }),
16642
16659
  ...others
16643
16660
  }
16644
16661
  );
@@ -16697,7 +16714,7 @@ const varsResolver$l = createVarsResolver((_, { position, size: size2, offset: o
16697
16714
  const DrawerRoot = factory((_props, ref) => {
16698
16715
  const props = useProps("DrawerRoot", defaultProps$v, _props);
16699
16716
  const {
16700
- classNames,
16717
+ classNames: classNames2,
16701
16718
  className,
16702
16719
  style,
16703
16720
  styles,
@@ -16717,7 +16734,7 @@ const DrawerRoot = factory((_props, ref) => {
16717
16734
  props,
16718
16735
  className,
16719
16736
  style,
16720
- classNames,
16737
+ classNames: classNames2,
16721
16738
  styles,
16722
16739
  unstyled,
16723
16740
  attributes,
@@ -16766,13 +16783,13 @@ function DrawerStack({ children }) {
16766
16783
  DrawerStack.displayName = "@mantine/core/DrawerStack";
16767
16784
  const DrawerTitle = factory((_props, ref) => {
16768
16785
  const props = useProps("DrawerTitle", null, _props);
16769
- const { classNames, className, style, styles, vars, ...others } = props;
16786
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
16770
16787
  const ctx = useDrawerContext();
16771
16788
  return /* @__PURE__ */ jsxRuntime.jsx(
16772
16789
  ModalBaseTitle,
16773
16790
  {
16774
16791
  ref,
16775
- ...ctx.getStyles("title", { classNames, style, styles, className }),
16792
+ ...ctx.getStyles("title", { classNames: classNames2, style, styles, className }),
16776
16793
  ...others
16777
16794
  }
16778
16795
  );
@@ -16945,7 +16962,7 @@ const defaultProps$t = {
16945
16962
  };
16946
16963
  const GridCol = factory((_props, ref) => {
16947
16964
  const props = useProps("GridCol", defaultProps$t, _props);
16948
- const { classNames, className, style, styles, vars, span, order, offset: offset2, ...others } = props;
16965
+ const { classNames: classNames2, className, style, styles, vars, span, order, offset: offset2, ...others } = props;
16949
16966
  const ctx = useGridContext();
16950
16967
  const responsiveClassName = useRandomClassName();
16951
16968
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -16965,7 +16982,7 @@ const GridCol = factory((_props, ref) => {
16965
16982
  ...ctx.getStyles("col", {
16966
16983
  className: clsx(className, responsiveClassName),
16967
16984
  style,
16968
- classNames,
16985
+ classNames: classNames2,
16969
16986
  styles
16970
16987
  }),
16971
16988
  ...others
@@ -17025,7 +17042,7 @@ const varsResolver$k = createVarsResolver((_, { justify, align, overflow }) => (
17025
17042
  const Grid = factory((_props, ref) => {
17026
17043
  const props = useProps("Grid", defaultProps$s, _props);
17027
17044
  const {
17028
- classNames,
17045
+ classNames: classNames2,
17029
17046
  className,
17030
17047
  style,
17031
17048
  styles,
@@ -17048,7 +17065,7 @@ const Grid = factory((_props, ref) => {
17048
17065
  props,
17049
17066
  className,
17050
17067
  style,
17051
- classNames,
17068
+ classNames: classNames2,
17052
17069
  styles,
17053
17070
  unstyled,
17054
17071
  attributes,
@@ -17075,7 +17092,7 @@ const [MenuContextProvider, useMenuContext] = createSafeContext(
17075
17092
  );
17076
17093
  var classes$j = { "dropdown": "m_dc9b7c9f", "label": "m_9bfac126", "divider": "m_efdf90cb", "item": "m_99ac2aa1", "itemLabel": "m_5476e0d3", "itemSection": "m_8b75e504", "chevron": "m_b85b0bed" };
17077
17094
  const MenuDivider = factory((props, ref) => {
17078
- const { classNames, className, style, styles, vars, ...others } = useProps(
17095
+ const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
17079
17096
  "MenuDivider",
17080
17097
  null,
17081
17098
  props
@@ -17085,7 +17102,7 @@ const MenuDivider = factory((props, ref) => {
17085
17102
  Box,
17086
17103
  {
17087
17104
  ref,
17088
- ...ctx.getStyles("divider", { className, style, styles, classNames }),
17105
+ ...ctx.getStyles("divider", { className, style, styles, classNames: classNames2 }),
17089
17106
  ...others
17090
17107
  }
17091
17108
  );
@@ -17094,7 +17111,7 @@ MenuDivider.classes = classes$j;
17094
17111
  MenuDivider.displayName = "@mantine/core/MenuDivider";
17095
17112
  const MenuDropdown = factory((props, ref) => {
17096
17113
  const {
17097
- classNames,
17114
+ classNames: classNames2,
17098
17115
  className,
17099
17116
  style,
17100
17117
  styles,
@@ -17134,7 +17151,7 @@ const MenuDropdown = factory((props, ref) => {
17134
17151
  className,
17135
17152
  style,
17136
17153
  styles,
17137
- classNames,
17154
+ classNames: classNames2,
17138
17155
  withStaticClass: false
17139
17156
  }),
17140
17157
  tabIndex: -1,
@@ -17152,7 +17169,7 @@ MenuDropdown.displayName = "@mantine/core/MenuDropdown";
17152
17169
  const [SubMenuProvider, useSubMenuContext] = createOptionalContext();
17153
17170
  const MenuItem = polymorphicFactory((props, ref) => {
17154
17171
  const {
17155
- classNames,
17172
+ classNames: classNames2,
17156
17173
  className,
17157
17174
  style,
17158
17175
  styles,
@@ -17197,7 +17214,7 @@ const MenuItem = polymorphicFactory((props, ref) => {
17197
17214
  ...others,
17198
17215
  unstyled: ctx.unstyled,
17199
17216
  tabIndex: ctx.menuItemTabIndex,
17200
- ...ctx.getStyles("item", { className, style, styles, classNames }),
17217
+ ...ctx.getStyles("item", { className, style, styles, classNames: classNames2 }),
17201
17218
  ref: useMergedRef(itemRef, ref),
17202
17219
  role: "menuitem",
17203
17220
  disabled,
@@ -17219,9 +17236,9 @@ const MenuItem = polymorphicFactory((props, ref) => {
17219
17236
  "--menu-item-hover": colors2?.hover
17220
17237
  },
17221
17238
  children: [
17222
- leftSection && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemSection", { styles, classNames }), "data-position": "left", children: leftSection }),
17223
- children && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemLabel", { styles, classNames }), children }),
17224
- rightSection && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemSection", { styles, classNames }), "data-position": "right", children: rightSection })
17239
+ leftSection && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemSection", { styles, classNames: classNames2 }), "data-position": "left", children: leftSection }),
17240
+ children && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemLabel", { styles, classNames: classNames2 }), children }),
17241
+ rightSection && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemSection", { styles, classNames: classNames2 }), "data-position": "right", children: rightSection })
17225
17242
  ]
17226
17243
  }
17227
17244
  );
@@ -17229,7 +17246,7 @@ const MenuItem = polymorphicFactory((props, ref) => {
17229
17246
  MenuItem.classes = classes$j;
17230
17247
  MenuItem.displayName = "@mantine/core/MenuItem";
17231
17248
  const MenuLabel = factory((props, ref) => {
17232
- const { classNames, className, style, styles, vars, ...others } = useProps(
17249
+ const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
17233
17250
  "MenuLabel",
17234
17251
  null,
17235
17252
  props
@@ -17239,7 +17256,7 @@ const MenuLabel = factory((props, ref) => {
17239
17256
  Box,
17240
17257
  {
17241
17258
  ref,
17242
- ...ctx.getStyles("label", { className, style, styles, classNames }),
17259
+ ...ctx.getStyles("label", { className, style, styles, classNames: classNames2 }),
17243
17260
  ...others
17244
17261
  }
17245
17262
  );
@@ -17248,7 +17265,7 @@ MenuLabel.classes = classes$j;
17248
17265
  MenuLabel.displayName = "@mantine/core/MenuLabel";
17249
17266
  const MenuSubDropdown = factory((props, ref) => {
17250
17267
  const {
17251
- classNames,
17268
+ classNames: classNames2,
17252
17269
  className,
17253
17270
  style,
17254
17271
  styles,
@@ -17277,7 +17294,7 @@ const MenuSubDropdown = factory((props, ref) => {
17277
17294
  className,
17278
17295
  style,
17279
17296
  styles,
17280
- classNames,
17297
+ classNames: classNames2,
17281
17298
  withStaticClass: false
17282
17299
  }),
17283
17300
  tabIndex: -1,
@@ -17290,7 +17307,7 @@ MenuSubDropdown.classes = classes$j;
17290
17307
  MenuSubDropdown.displayName = "@mantine/core/MenuSubDropdown";
17291
17308
  const MenuSubItem = polymorphicFactory((props, ref) => {
17292
17309
  const {
17293
- classNames,
17310
+ classNames: classNames2,
17294
17311
  className,
17295
17312
  style,
17296
17313
  styles,
@@ -17336,7 +17353,7 @@ const MenuSubItem = polymorphicFactory((props, ref) => {
17336
17353
  ...others,
17337
17354
  unstyled: ctx.unstyled,
17338
17355
  tabIndex: ctx.menuItemTabIndex,
17339
- ...ctx.getStyles("item", { className, style, styles, classNames }),
17356
+ ...ctx.getStyles("item", { className, style, styles, classNames: classNames2 }),
17340
17357
  ref: useMergedRef(itemRef, ref),
17341
17358
  role: "menuitem",
17342
17359
  disabled,
@@ -17361,9 +17378,9 @@ const MenuSubItem = polymorphicFactory((props, ref) => {
17361
17378
  "--menu-item-hover": colors2?.hover
17362
17379
  },
17363
17380
  children: [
17364
- leftSection && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemSection", { styles, classNames }), "data-position": "left", children: leftSection }),
17365
- children && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemLabel", { styles, classNames }), children }),
17366
- /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemSection", { styles, classNames }), "data-position": "right", children: rightSection || /* @__PURE__ */ jsxRuntime.jsx(AccordionChevron, { ...ctx.getStyles("chevron"), size: 14 }) })
17381
+ leftSection && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemSection", { styles, classNames: classNames2 }), "data-position": "left", children: leftSection }),
17382
+ children && /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemLabel", { styles, classNames: classNames2 }), children }),
17383
+ /* @__PURE__ */ jsxRuntime.jsx("div", { ...ctx.getStyles("itemSection", { styles, classNames: classNames2 }), "data-position": "right", children: rightSection || /* @__PURE__ */ jsxRuntime.jsx(AccordionChevron, { ...ctx.getStyles("chevron"), size: 14 }) })
17367
17384
  ]
17368
17385
  }
17369
17386
  );
@@ -17498,7 +17515,7 @@ function Menu$1(_props) {
17498
17515
  trigger,
17499
17516
  openDelay,
17500
17517
  closeDelay,
17501
- classNames,
17518
+ classNames: classNames2,
17502
17519
  styles,
17503
17520
  unstyled,
17504
17521
  variant,
@@ -17513,7 +17530,7 @@ function Menu$1(_props) {
17513
17530
  name: "Menu",
17514
17531
  classes: classes$j,
17515
17532
  props,
17516
- classNames,
17533
+ classNames: classNames2,
17517
17534
  styles,
17518
17535
  unstyled,
17519
17536
  attributes
@@ -17540,7 +17557,7 @@ function Menu$1(_props) {
17540
17557
  const { openDropdown, closeDropdown } = useDelayedHover({ open, close, closeDelay, openDelay });
17541
17558
  const getItemIndex = (node) => getContextItemIndex("[data-menu-item]", "[data-menu-dropdown]", node);
17542
17559
  const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
17543
- classNames,
17560
+ classNames: classNames2,
17544
17561
  styles,
17545
17562
  props
17546
17563
  });
@@ -17602,13 +17619,13 @@ const [ModalProvider, useModalContext] = createSafeContext(
17602
17619
  );
17603
17620
  const ModalBody = factory((_props, ref) => {
17604
17621
  const props = useProps("ModalBody", null, _props);
17605
- const { classNames, className, style, styles, vars, ...others } = props;
17622
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
17606
17623
  const ctx = useModalContext();
17607
17624
  return /* @__PURE__ */ jsxRuntime.jsx(
17608
17625
  ModalBaseBody,
17609
17626
  {
17610
17627
  ref,
17611
- ...ctx.getStyles("body", { classNames, style, styles, className }),
17628
+ ...ctx.getStyles("body", { classNames: classNames2, style, styles, className }),
17612
17629
  ...others
17613
17630
  }
17614
17631
  );
@@ -17617,13 +17634,13 @@ ModalBody.classes = classes$i;
17617
17634
  ModalBody.displayName = "@mantine/core/ModalBody";
17618
17635
  const ModalCloseButton = factory((_props, ref) => {
17619
17636
  const props = useProps("ModalCloseButton", null, _props);
17620
- const { classNames, className, style, styles, vars, ...others } = props;
17637
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
17621
17638
  const ctx = useModalContext();
17622
17639
  return /* @__PURE__ */ jsxRuntime.jsx(
17623
17640
  ModalBaseCloseButton,
17624
17641
  {
17625
17642
  ref,
17626
- ...ctx.getStyles("close", { classNames, style, styles, className }),
17643
+ ...ctx.getStyles("close", { classNames: classNames2, style, styles, className }),
17627
17644
  ...others
17628
17645
  }
17629
17646
  );
@@ -17632,14 +17649,14 @@ ModalCloseButton.classes = classes$i;
17632
17649
  ModalCloseButton.displayName = "@mantine/core/ModalCloseButton";
17633
17650
  const ModalContent = factory((_props, ref) => {
17634
17651
  const props = useProps("ModalContent", null, _props);
17635
- const { classNames, className, style, styles, vars, children, __hidden, ...others } = props;
17652
+ const { classNames: classNames2, className, style, styles, vars, children, __hidden, ...others } = props;
17636
17653
  const ctx = useModalContext();
17637
17654
  const Scroll = ctx.scrollAreaComponent || NativeScrollArea;
17638
17655
  return /* @__PURE__ */ jsxRuntime.jsx(
17639
17656
  ModalBaseContent,
17640
17657
  {
17641
- ...ctx.getStyles("content", { className, style, styles, classNames }),
17642
- innerProps: ctx.getStyles("inner", { className, style, styles, classNames }),
17658
+ ...ctx.getStyles("content", { className, style, styles, classNames: classNames2 }),
17659
+ innerProps: ctx.getStyles("inner", { className, style, styles, classNames: classNames2 }),
17643
17660
  "data-full-screen": ctx.fullScreen || void 0,
17644
17661
  "data-modal-content": true,
17645
17662
  "data-hidden": __hidden || void 0,
@@ -17661,13 +17678,13 @@ ModalContent.classes = classes$i;
17661
17678
  ModalContent.displayName = "@mantine/core/ModalContent";
17662
17679
  const ModalHeader = factory((_props, ref) => {
17663
17680
  const props = useProps("ModalHeader", null, _props);
17664
- const { classNames, className, style, styles, vars, ...others } = props;
17681
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
17665
17682
  const ctx = useModalContext();
17666
17683
  return /* @__PURE__ */ jsxRuntime.jsx(
17667
17684
  ModalBaseHeader,
17668
17685
  {
17669
17686
  ref,
17670
- ...ctx.getStyles("header", { classNames, style, styles, className }),
17687
+ ...ctx.getStyles("header", { classNames: classNames2, style, styles, className }),
17671
17688
  ...others
17672
17689
  }
17673
17690
  );
@@ -17676,13 +17693,13 @@ ModalHeader.classes = classes$i;
17676
17693
  ModalHeader.displayName = "@mantine/core/ModalHeader";
17677
17694
  const ModalOverlay = factory((_props, ref) => {
17678
17695
  const props = useProps("ModalOverlay", null, _props);
17679
- const { classNames, className, style, styles, vars, ...others } = props;
17696
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
17680
17697
  const ctx = useModalContext();
17681
17698
  return /* @__PURE__ */ jsxRuntime.jsx(
17682
17699
  ModalBaseOverlay,
17683
17700
  {
17684
17701
  ref,
17685
- ...ctx.getStyles("overlay", { classNames, style, styles, className }),
17702
+ ...ctx.getStyles("overlay", { classNames: classNames2, style, styles, className }),
17686
17703
  ...others
17687
17704
  }
17688
17705
  );
@@ -17715,7 +17732,7 @@ const varsResolver$j = createVarsResolver(
17715
17732
  const ModalRoot = factory((_props, ref) => {
17716
17733
  const props = useProps("ModalRoot", defaultProps$o, _props);
17717
17734
  const {
17718
- classNames,
17735
+ classNames: classNames2,
17719
17736
  className,
17720
17737
  style,
17721
17738
  styles,
@@ -17737,7 +17754,7 @@ const ModalRoot = factory((_props, ref) => {
17737
17754
  props,
17738
17755
  className,
17739
17756
  style,
17740
- classNames,
17757
+ classNames: classNames2,
17741
17758
  styles,
17742
17759
  unstyled,
17743
17760
  attributes,
@@ -17786,13 +17803,13 @@ function ModalStack({ children }) {
17786
17803
  ModalStack.displayName = "@mantine/core/ModalStack";
17787
17804
  const ModalTitle = factory((_props, ref) => {
17788
17805
  const props = useProps("ModalTitle", null, _props);
17789
- const { classNames, className, style, styles, vars, ...others } = props;
17806
+ const { classNames: classNames2, className, style, styles, vars, ...others } = props;
17790
17807
  const ctx = useModalContext();
17791
17808
  return /* @__PURE__ */ jsxRuntime.jsx(
17792
17809
  ModalBaseTitle,
17793
17810
  {
17794
17811
  ref,
17795
- ...ctx.getStyles("title", { classNames, style, styles, className }),
17812
+ ...ctx.getStyles("title", { classNames: classNames2, style, styles, className }),
17796
17813
  ...others
17797
17814
  }
17798
17815
  );
@@ -17909,7 +17926,7 @@ const varsResolver$i = createVarsResolver(
17909
17926
  const NavLink = polymorphicFactory((_props, ref) => {
17910
17927
  const props = useProps("NavLink", null, _props);
17911
17928
  const {
17912
- classNames,
17929
+ classNames: classNames2,
17913
17930
  className,
17914
17931
  style,
17915
17932
  styles,
@@ -17941,7 +17958,7 @@ const NavLink = polymorphicFactory((_props, ref) => {
17941
17958
  classes: classes$h,
17942
17959
  className,
17943
17960
  style,
17944
- classNames,
17961
+ classNames: classNames2,
17945
17962
  styles,
17946
17963
  unstyled,
17947
17964
  attributes,
@@ -18027,7 +18044,7 @@ const Notification = factory((_props, ref) => {
18027
18044
  children,
18028
18045
  onClose,
18029
18046
  closeButtonProps,
18030
- classNames,
18047
+ classNames: classNames2,
18031
18048
  style,
18032
18049
  styles,
18033
18050
  unstyled,
@@ -18044,7 +18061,7 @@ const Notification = factory((_props, ref) => {
18044
18061
  props,
18045
18062
  className,
18046
18063
  style,
18047
- classNames,
18064
+ classNames: classNames2,
18048
18065
  styles,
18049
18066
  unstyled,
18050
18067
  attributes,
@@ -18061,7 +18078,7 @@ const Notification = factory((_props, ref) => {
18061
18078
  ...others,
18062
18079
  children: [
18063
18080
  icon && !loading && /* @__PURE__ */ jsxRuntime.jsx("div", { ...getStyles2("icon"), children: icon }),
18064
- loading && /* @__PURE__ */ jsxRuntime.jsx(Loader, { size: 28, color, ...loaderProps, ...getStyles2("loader") }),
18081
+ loading && /* @__PURE__ */ jsxRuntime.jsx(Loader$1, { size: 28, color, ...loaderProps, ...getStyles2("loader") }),
18065
18082
  /* @__PURE__ */ jsxRuntime.jsxs("div", { ...getStyles2("body"), children: [
18066
18083
  title && /* @__PURE__ */ jsxRuntime.jsx("div", { ...getStyles2("title"), children: title }),
18067
18084
  /* @__PURE__ */ jsxRuntime.jsx(Box, { ...getStyles2("description"), mod: { "data-with-title": !!title }, children })
@@ -18294,7 +18311,7 @@ var findChangedRangeFromCaretPositions = function(lastCaretPositions, currentCar
18294
18311
  to: { start: startPosition, end: currentCaretPosition }
18295
18312
  };
18296
18313
  };
18297
- function clamp(num, min2, max2) {
18314
+ function clamp$1(num, min2, max2) {
18298
18315
  return Math.min(Math.max(num, min2), max2);
18299
18316
  }
18300
18317
  function geInputCaretPosition(el) {
@@ -18372,7 +18389,7 @@ function getCaretPosition(newFormattedValue, lastFormattedValue, curValue, curCa
18372
18389
  }
18373
18390
  function getCaretPosInBoundary(value, caretPos, boundary, direction) {
18374
18391
  var valLn = value.length;
18375
- caretPos = clamp(caretPos, 0, valLn);
18392
+ caretPos = clamp$1(caretPos, 0, valLn);
18376
18393
  if (direction === "left") {
18377
18394
  while (caretPos >= 0 && !boundary[caretPos]) {
18378
18395
  caretPos--;
@@ -19171,7 +19188,7 @@ function clampAndSanitizeInput(sanitizedValue, max2, min2) {
19171
19188
  if (parsedValue > Number.MAX_SAFE_INTEGER) {
19172
19189
  return max2 !== void 0 ? max2 : replaced;
19173
19190
  }
19174
- const clamped = clamp$3(parsedValue, min2, max2);
19191
+ const clamped = clamp$4(parsedValue, min2, max2);
19175
19192
  if (hasTrailingDecimalSeparator) {
19176
19193
  const clampedString = clamped.toString().replace(/^0+(?=\d)/, "");
19177
19194
  return `${clampedString}.`;
@@ -19182,7 +19199,7 @@ const NumberInput = factory((_props, ref) => {
19182
19199
  const props = useProps("NumberInput", defaultProps$l, _props);
19183
19200
  const {
19184
19201
  className,
19185
- classNames,
19202
+ classNames: classNames2,
19186
19203
  styles,
19187
19204
  unstyled,
19188
19205
  vars,
@@ -19223,7 +19240,7 @@ const NumberInput = factory((_props, ref) => {
19223
19240
  name: "NumberInput",
19224
19241
  classes: classes$f,
19225
19242
  props,
19226
- classNames,
19243
+ classNames: classNames2,
19227
19244
  styles,
19228
19245
  unstyled,
19229
19246
  attributes,
@@ -19231,7 +19248,7 @@ const NumberInput = factory((_props, ref) => {
19231
19248
  varsResolver: varsResolver$g
19232
19249
  });
19233
19250
  const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
19234
- classNames,
19251
+ classNames: classNames2,
19235
19252
  styles,
19236
19253
  props
19237
19254
  });
@@ -19276,7 +19293,7 @@ const NumberInput = factory((_props, ref) => {
19276
19293
  const maxPrecision = Math.max(currentValuePrecision, stepPrecision);
19277
19294
  const factor = 10 ** maxPrecision;
19278
19295
  if (!isNumberString(_value) && (typeof _value !== "number" || Number.isNaN(_value))) {
19279
- val = clamp$3(startValue, min2, max2);
19296
+ val = clamp$4(startValue, min2, max2);
19280
19297
  } else if (max2 !== void 0) {
19281
19298
  const incrementedValue = (Math.round(Number(_value) * factor) + Math.round(step * factor)) / factor;
19282
19299
  val = incrementedValue <= max2 ? incrementedValue : max2;
@@ -19303,7 +19320,7 @@ const NumberInput = factory((_props, ref) => {
19303
19320
  const maxPrecision = Math.max(currentValuePrecision, stepPrecision);
19304
19321
  const factor = 10 ** maxPrecision;
19305
19322
  if (!isNumberString(_value) && typeof _value !== "number" || Number.isNaN(_value)) {
19306
- val = clamp$3(startValue, minValue, max2);
19323
+ val = clamp$4(startValue, minValue, max2);
19307
19324
  } else {
19308
19325
  const decrementedValue = (Math.round(Number(_value) * factor) - Math.round(step * factor)) / factor;
19309
19326
  val = minValue !== void 0 && decrementedValue < minValue ? minValue : decrementedValue;
@@ -19343,7 +19360,7 @@ const NumberInput = factory((_props, ref) => {
19343
19360
  const handleBlur = (event) => {
19344
19361
  let sanitizedValue = _value;
19345
19362
  if (clampBehavior === "blur" && typeof sanitizedValue === "number") {
19346
- sanitizedValue = clamp$3(sanitizedValue, min2, max2);
19363
+ sanitizedValue = clamp$4(sanitizedValue, min2, max2);
19347
19364
  }
19348
19365
  if (trimLeadingZeroesOnBlur && typeof sanitizedValue === "string" && getDecimalPlaces2(sanitizedValue) < 15) {
19349
19366
  sanitizedValue = clampAndSanitizeInput(sanitizedValue, max2, min2);
@@ -19472,7 +19489,7 @@ const defaultProps$k = {
19472
19489
  const PaginationControl = factory((_props, ref) => {
19473
19490
  const props = useProps("PaginationControl", defaultProps$k, _props);
19474
19491
  const {
19475
- classNames,
19492
+ classNames: classNames2,
19476
19493
  className,
19477
19494
  style,
19478
19495
  styles,
@@ -19491,7 +19508,7 @@ const PaginationControl = factory((_props, ref) => {
19491
19508
  ref,
19492
19509
  disabled: _disabled,
19493
19510
  mod: [{ active, disabled: _disabled, "with-padding": withPadding }, mod],
19494
- ...ctx.getStyles("control", { className, style, classNames, styles, active: !_disabled }),
19511
+ ...ctx.getStyles("control", { className, style, classNames: classNames2, styles, active: !_disabled }),
19495
19512
  ...others
19496
19513
  }
19497
19514
  );
@@ -19554,9 +19571,9 @@ const defaultProps$j = {
19554
19571
  };
19555
19572
  const PaginationDots = factory((_props, ref) => {
19556
19573
  const props = useProps("PaginationDots", defaultProps$j, _props);
19557
- const { classNames, className, style, styles, vars, icon: Icon, ...others } = props;
19574
+ const { classNames: classNames2, className, style, styles, vars, icon: Icon, ...others } = props;
19558
19575
  const ctx = usePaginationContext();
19559
- return /* @__PURE__ */ jsxRuntime.jsx(Box, { ref, ...ctx.getStyles("dots", { className, style, styles, classNames }), ...others, children: /* @__PURE__ */ jsxRuntime.jsx(
19576
+ return /* @__PURE__ */ jsxRuntime.jsx(Box, { ref, ...ctx.getStyles("dots", { className, style, styles, classNames: classNames2 }), ...others, children: /* @__PURE__ */ jsxRuntime.jsx(
19560
19577
  Icon,
19561
19578
  {
19562
19579
  style: {
@@ -19662,7 +19679,7 @@ const varsResolver$f = createVarsResolver(
19662
19679
  const PaginationRoot = factory((_props, ref) => {
19663
19680
  const props = useProps("PaginationRoot", defaultProps$i, _props);
19664
19681
  const {
19665
- classNames,
19682
+ classNames: classNames2,
19666
19683
  className,
19667
19684
  style,
19668
19685
  styles,
@@ -19692,7 +19709,7 @@ const PaginationRoot = factory((_props, ref) => {
19692
19709
  props,
19693
19710
  className,
19694
19711
  style,
19695
- classNames,
19712
+ classNames: classNames2,
19696
19713
  styles,
19697
19714
  unstyled,
19698
19715
  attributes,
@@ -19811,7 +19828,7 @@ const varsResolver$e = createVarsResolver((_, { size: size2 }) => ({
19811
19828
  const PasswordInput$1 = factory((_props, ref) => {
19812
19829
  const props = useProps("PasswordInput", defaultProps$g, _props);
19813
19830
  const {
19814
- classNames,
19831
+ classNames: classNames2,
19815
19832
  className,
19816
19833
  style,
19817
19834
  styles,
@@ -19865,7 +19882,7 @@ const PasswordInput$1 = factory((_props, ref) => {
19865
19882
  props,
19866
19883
  className,
19867
19884
  style,
19868
- classNames,
19885
+ classNames: classNames2,
19869
19886
  styles,
19870
19887
  unstyled,
19871
19888
  attributes,
@@ -19873,7 +19890,7 @@ const PasswordInput$1 = factory((_props, ref) => {
19873
19890
  varsResolver: varsResolver$e
19874
19891
  });
19875
19892
  const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
19876
- classNames,
19893
+ classNames: classNames2,
19877
19894
  styles,
19878
19895
  props
19879
19896
  });
@@ -20033,7 +20050,7 @@ const PinInput = factory((props, ref) => {
20033
20050
  gap,
20034
20051
  style,
20035
20052
  size: size2,
20036
- classNames,
20053
+ classNames: classNames2,
20037
20054
  styles,
20038
20055
  unstyled,
20039
20056
  length,
@@ -20067,7 +20084,7 @@ const PinInput = factory((props, ref) => {
20067
20084
  props,
20068
20085
  className,
20069
20086
  style,
20070
- classNames,
20087
+ classNames: classNames2,
20071
20088
  styles,
20072
20089
  unstyled,
20073
20090
  attributes,
@@ -20075,7 +20092,7 @@ const PinInput = factory((props, ref) => {
20075
20092
  varsResolver: varsResolver$d
20076
20093
  });
20077
20094
  const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
20078
- classNames,
20095
+ classNames: classNames2,
20079
20096
  styles,
20080
20097
  props
20081
20098
  });
@@ -20274,7 +20291,7 @@ const [ProgressProvider, useProgressContext] = createSafeContext(
20274
20291
  "Progress.Root component was not found in tree"
20275
20292
  );
20276
20293
  const ProgressLabel = factory((props, ref) => {
20277
- const { classNames, className, style, styles, vars, ...others } = useProps(
20294
+ const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
20278
20295
  "ProgressLabel",
20279
20296
  null,
20280
20297
  props
@@ -20284,7 +20301,7 @@ const ProgressLabel = factory((props, ref) => {
20284
20301
  Box,
20285
20302
  {
20286
20303
  ref,
20287
- ...ctx.getStyles("label", { className, style, classNames, styles }),
20304
+ ...ctx.getStyles("label", { className, style, classNames: classNames2, styles }),
20288
20305
  ...others
20289
20306
  }
20290
20307
  );
@@ -20303,7 +20320,7 @@ const varsResolver$c = createVarsResolver(
20303
20320
  const ProgressRoot = factory((_props, ref) => {
20304
20321
  const props = useProps("ProgressRoot", null, _props);
20305
20322
  const {
20306
- classNames,
20323
+ classNames: classNames2,
20307
20324
  className,
20308
20325
  style,
20309
20326
  styles,
@@ -20322,7 +20339,7 @@ const ProgressRoot = factory((_props, ref) => {
20322
20339
  props,
20323
20340
  className,
20324
20341
  style,
20325
- classNames,
20342
+ classNames: classNames2,
20326
20343
  styles,
20327
20344
  unstyled,
20328
20345
  attributes,
@@ -20338,7 +20355,7 @@ const defaultProps$e = {
20338
20355
  };
20339
20356
  const ProgressSection = factory((props, ref) => {
20340
20357
  const {
20341
- classNames,
20358
+ classNames: classNames2,
20342
20359
  className,
20343
20360
  style,
20344
20361
  styles,
@@ -20364,7 +20381,7 @@ const ProgressSection = factory((props, ref) => {
20364
20381
  Box,
20365
20382
  {
20366
20383
  ref,
20367
- ...ctx.getStyles("section", { className, classNames, styles, style }),
20384
+ ...ctx.getStyles("section", { className, classNames: classNames2, styles, style }),
20368
20385
  ...others,
20369
20386
  ...ariaAttributes,
20370
20387
  mod: [{ striped: striped || animated, animated }, mod],
@@ -20382,7 +20399,7 @@ const Progress = factory((_props, ref) => {
20382
20399
  const props = useProps("Progress", null, _props);
20383
20400
  const {
20384
20401
  value,
20385
- classNames,
20402
+ classNames: classNames2,
20386
20403
  styles,
20387
20404
  vars,
20388
20405
  color,
@@ -20392,7 +20409,7 @@ const Progress = factory((_props, ref) => {
20392
20409
  ...others
20393
20410
  } = props;
20394
20411
  const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
20395
- classNames,
20412
+ classNames: classNames2,
20396
20413
  styles,
20397
20414
  props
20398
20415
  });
@@ -20509,7 +20526,7 @@ const TooltipFloating = factory((_props, ref) => {
20509
20526
  withinPortal,
20510
20527
  style,
20511
20528
  className,
20512
- classNames,
20529
+ classNames: classNames2,
20513
20530
  styles,
20514
20531
  unstyled,
20515
20532
  radius,
@@ -20534,7 +20551,7 @@ const TooltipFloating = factory((_props, ref) => {
20534
20551
  classes: classes$a,
20535
20552
  className,
20536
20553
  style,
20537
- classNames,
20554
+ classNames: classNames2,
20538
20555
  styles,
20539
20556
  unstyled,
20540
20557
  attributes,
@@ -20752,7 +20769,7 @@ const Tooltip$1 = factory((_props, ref) => {
20752
20769
  withinPortal,
20753
20770
  radius,
20754
20771
  color,
20755
- classNames,
20772
+ classNames: classNames2,
20756
20773
  styles,
20757
20774
  unstyled,
20758
20775
  style,
@@ -20817,7 +20834,7 @@ const Tooltip$1 = factory((_props, ref) => {
20817
20834
  classes: classes$a,
20818
20835
  className,
20819
20836
  style,
20820
- classNames,
20837
+ classNames: classNames2,
20821
20838
  styles,
20822
20839
  unstyled,
20823
20840
  attributes,
@@ -20970,7 +20987,7 @@ const varsResolver$9 = createVarsResolver(
20970
20987
  const SegmentedControl = factory((_props, ref) => {
20971
20988
  const props = useProps("SegmentedControl", defaultProps$a, _props);
20972
20989
  const {
20973
- classNames,
20990
+ classNames: classNames2,
20974
20991
  className,
20975
20992
  style,
20976
20993
  styles,
@@ -21003,7 +21020,7 @@ const SegmentedControl = factory((_props, ref) => {
21003
21020
  classes: classes$9,
21004
21021
  className,
21005
21022
  style,
21006
- classNames,
21023
+ classNames: classNames2,
21007
21024
  styles,
21008
21025
  unstyled,
21009
21026
  attributes,
@@ -21125,7 +21142,7 @@ const defaultProps$9 = {
21125
21142
  const Select$1 = factory((_props, ref) => {
21126
21143
  const props = useProps("Select", defaultProps$9, _props);
21127
21144
  const {
21128
- classNames,
21145
+ classNames: classNames2,
21129
21146
  styles,
21130
21147
  unstyled,
21131
21148
  vars,
@@ -21223,7 +21240,7 @@ const Select$1 = factory((_props, ref) => {
21223
21240
  const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
21224
21241
  props,
21225
21242
  styles,
21226
- classNames
21243
+ classNames: classNames2
21227
21244
  });
21228
21245
  React.useEffect(() => {
21229
21246
  if (selectFirstOptionOnChange) {
@@ -21491,7 +21508,7 @@ const defaultProps$8 = {
21491
21508
  const SimpleGrid = factory((_props, ref) => {
21492
21509
  const props = useProps("SimpleGrid", defaultProps$8, _props);
21493
21510
  const {
21494
- classNames,
21511
+ classNames: classNames2,
21495
21512
  className,
21496
21513
  style,
21497
21514
  styles,
@@ -21510,7 +21527,7 @@ const SimpleGrid = factory((_props, ref) => {
21510
21527
  props,
21511
21528
  className,
21512
21529
  style,
21513
- classNames,
21530
+ classNames: classNames2,
21514
21531
  styles,
21515
21532
  unstyled,
21516
21533
  attributes,
@@ -21547,7 +21564,7 @@ const varsResolver$8 = createVarsResolver(
21547
21564
  const Skeleton$1 = factory((_props, ref) => {
21548
21565
  const props = useProps("Skeleton", defaultProps$7, _props);
21549
21566
  const {
21550
- classNames,
21567
+ classNames: classNames2,
21551
21568
  className,
21552
21569
  style,
21553
21570
  styles,
@@ -21569,7 +21586,7 @@ const Skeleton$1 = factory((_props, ref) => {
21569
21586
  props,
21570
21587
  className,
21571
21588
  style,
21572
- classNames,
21589
+ classNames: classNames2,
21573
21590
  styles,
21574
21591
  unstyled,
21575
21592
  attributes,
@@ -21601,7 +21618,7 @@ const varsResolver$7 = createVarsResolver((_, { gap, align, justify }) => ({
21601
21618
  const Stack = factory((_props, ref) => {
21602
21619
  const props = useProps("Stack", defaultProps$6, _props);
21603
21620
  const {
21604
- classNames,
21621
+ classNames: classNames2,
21605
21622
  className,
21606
21623
  style,
21607
21624
  styles,
@@ -21620,7 +21637,7 @@ const Stack = factory((_props, ref) => {
21620
21637
  classes: classes$6,
21621
21638
  className,
21622
21639
  style,
21623
- classNames,
21640
+ classNames: classNames2,
21624
21641
  styles,
21625
21642
  unstyled,
21626
21643
  attributes,
@@ -21692,7 +21709,7 @@ const varsResolver$6 = createVarsResolver((theme2, { radius, color, size: size2
21692
21709
  const Switch$1 = factory((_props, ref) => {
21693
21710
  const props = useProps("Switch", defaultProps$5, _props);
21694
21711
  const {
21695
- classNames,
21712
+ classNames: classNames2,
21696
21713
  className,
21697
21714
  style,
21698
21715
  styles,
@@ -21729,7 +21746,7 @@ const Switch$1 = factory((_props, ref) => {
21729
21746
  classes: classes$5,
21730
21747
  className,
21731
21748
  style,
21732
- classNames,
21749
+ classNames: classNames2,
21733
21750
  styles,
21734
21751
  unstyled,
21735
21752
  attributes,
@@ -21766,7 +21783,7 @@ const Switch$1 = factory((_props, ref) => {
21766
21783
  disabled: withContextProps.disabled,
21767
21784
  bodyElement: "label",
21768
21785
  labelElement: "span",
21769
- classNames,
21786
+ classNames: classNames2,
21770
21787
  styles,
21771
21788
  unstyled,
21772
21789
  "data-checked": withContextProps.checked,
@@ -21857,7 +21874,7 @@ function tableElement(element, options) {
21857
21874
  const name = `Table${element.charAt(0).toUpperCase()}${element.slice(1)}`;
21858
21875
  const Component = factory((_props, ref) => {
21859
21876
  const props = useProps(name, {}, _props);
21860
- const { classNames, className, style, styles, ...others } = props;
21877
+ const { classNames: classNames2, className, style, styles, ...others } = props;
21861
21878
  const ctx = useTableContext();
21862
21879
  return /* @__PURE__ */ jsxRuntime.jsx(
21863
21880
  Box,
@@ -21865,7 +21882,7 @@ function tableElement(element, options) {
21865
21882
  component: element,
21866
21883
  ref,
21867
21884
  ...getDataAttributes(ctx, options),
21868
- ...ctx.getStyles(element, { className, classNames, style, styles, props }),
21885
+ ...ctx.getStyles(element, { className, classNames: classNames2, style, styles, props }),
21869
21886
  ...others
21870
21887
  }
21871
21888
  );
@@ -21909,7 +21926,7 @@ const varsResolver$5 = createVarsResolver(
21909
21926
  const TableScrollContainer = factory((_props, ref) => {
21910
21927
  const props = useProps("TableScrollContainer", defaultProps$4, _props);
21911
21928
  const {
21912
- classNames,
21929
+ classNames: classNames2,
21913
21930
  className,
21914
21931
  style,
21915
21932
  styles,
@@ -21929,7 +21946,7 @@ const TableScrollContainer = factory((_props, ref) => {
21929
21946
  props,
21930
21947
  className,
21931
21948
  style,
21932
- classNames,
21949
+ classNames: classNames2,
21933
21950
  styles,
21934
21951
  unstyled,
21935
21952
  attributes,
@@ -21984,7 +22001,7 @@ const varsResolver$4 = createVarsResolver(
21984
22001
  const Table$1 = factory((_props, ref) => {
21985
22002
  const props = useProps("Table", defaultProps$3, _props);
21986
22003
  const {
21987
- classNames,
22004
+ classNames: classNames2,
21988
22005
  className,
21989
22006
  style,
21990
22007
  styles,
@@ -22018,7 +22035,7 @@ const Table$1 = factory((_props, ref) => {
22018
22035
  className,
22019
22036
  style,
22020
22037
  classes: classes$4,
22021
- classNames,
22038
+ classNames: classNames2,
22022
22039
  styles,
22023
22040
  unstyled,
22024
22041
  attributes,
@@ -22070,7 +22087,7 @@ const [TabsProvider, useTabsContext] = createSafeContext(
22070
22087
  var classes$3 = { "root": "m_89d60db1", "list--default": "m_576c9d4", "list": "m_89d33d6d", "tab": "m_4ec4dce6", "panel": "m_b0c91715", "tabSection": "m_fc420b1f", "tabLabel": "m_42bbd1ae", "tab--default": "m_539e827b", "list--outline": "m_6772fbd5", "tab--outline": "m_b59ab47c", "tab--pills": "m_c3381914" };
22071
22088
  const TabsList = factory((_props, ref) => {
22072
22089
  const props = useProps("TabsList", null, _props);
22073
- const { children, className, grow, justify, classNames, styles, style, mod, ...others } = props;
22090
+ const { children, className, grow, justify, classNames: classNames2, styles, style, mod, ...others } = props;
22074
22091
  const ctx = useTabsContext();
22075
22092
  return /* @__PURE__ */ jsxRuntime.jsx(
22076
22093
  Box,
@@ -22079,7 +22096,7 @@ const TabsList = factory((_props, ref) => {
22079
22096
  ...ctx.getStyles("list", {
22080
22097
  className,
22081
22098
  style,
22082
- classNames,
22099
+ classNames: classNames2,
22083
22100
  styles,
22084
22101
  props,
22085
22102
  variant: ctx.variant
@@ -22106,7 +22123,7 @@ TabsList.classes = classes$3;
22106
22123
  TabsList.displayName = "@mantine/core/TabsList";
22107
22124
  const TabsPanel = factory((_props, ref) => {
22108
22125
  const props = useProps("TabsPanel", null, _props);
22109
- const { children, className, value, classNames, styles, style, mod, keepMounted, ...others } = props;
22126
+ const { children, className, value, classNames: classNames2, styles, style, mod, keepMounted, ...others } = props;
22110
22127
  const ctx = useTabsContext();
22111
22128
  const active = ctx.value === value;
22112
22129
  const content = ctx.keepMounted || keepMounted ? children : active ? children : null;
@@ -22115,7 +22132,7 @@ const TabsPanel = factory((_props, ref) => {
22115
22132
  {
22116
22133
  ...ctx.getStyles("panel", {
22117
22134
  className,
22118
- classNames,
22135
+ classNames: classNames2,
22119
22136
  styles,
22120
22137
  style: [style, !active ? { display: "none" } : void 0],
22121
22138
  props
@@ -22145,7 +22162,7 @@ const TabsTab = factory((_props, ref) => {
22145
22162
  disabled,
22146
22163
  color,
22147
22164
  style,
22148
- classNames,
22165
+ classNames: classNames2,
22149
22166
  styles,
22150
22167
  vars,
22151
22168
  mod,
@@ -22160,7 +22177,7 @@ const TabsTab = factory((_props, ref) => {
22160
22177
  ctx.onChange(ctx.allowTabDeactivation ? value === ctx.value ? null : value : value);
22161
22178
  onClick?.(event);
22162
22179
  };
22163
- const stylesApiProps = { classNames, styles, props };
22180
+ const stylesApiProps = { classNames: classNames2, styles, props };
22164
22181
  return /* @__PURE__ */ jsxRuntime.jsxs(
22165
22182
  UnstyledButton,
22166
22183
  {
@@ -22240,7 +22257,7 @@ const Tabs$1 = factory((_props, ref) => {
22240
22257
  inverted,
22241
22258
  placement,
22242
22259
  keepMounted,
22243
- classNames,
22260
+ classNames: classNames2,
22244
22261
  styles,
22245
22262
  unstyled,
22246
22263
  className,
@@ -22264,7 +22281,7 @@ const Tabs$1 = factory((_props, ref) => {
22264
22281
  classes: classes$3,
22265
22282
  className,
22266
22283
  style,
22267
- classNames,
22284
+ classNames: classNames2,
22268
22285
  styles,
22269
22286
  unstyled,
22270
22287
  attributes,
@@ -22350,7 +22367,7 @@ const varsResolver$2 = createVarsResolver(
22350
22367
  const ThemeIcon = factory((_props, ref) => {
22351
22368
  const props = useProps("ThemeIcon", null, _props);
22352
22369
  const {
22353
- classNames,
22370
+ classNames: classNames2,
22354
22371
  className,
22355
22372
  style,
22356
22373
  styles,
@@ -22366,7 +22383,7 @@ const ThemeIcon = factory((_props, ref) => {
22366
22383
  props,
22367
22384
  className,
22368
22385
  style,
22369
- classNames,
22386
+ classNames: classNames2,
22370
22387
  styles,
22371
22388
  unstyled,
22372
22389
  attributes,
@@ -22419,7 +22436,7 @@ const varsResolver$1 = createVarsResolver((_, { order, size: size2, lineClamp, t
22419
22436
  const Title = factory((_props, ref) => {
22420
22437
  const props = useProps("Title", defaultProps$1, _props);
22421
22438
  const {
22422
- classNames,
22439
+ classNames: classNames2,
22423
22440
  className,
22424
22441
  style,
22425
22442
  styles,
@@ -22440,7 +22457,7 @@ const Title = factory((_props, ref) => {
22440
22457
  classes: classes$1,
22441
22458
  className,
22442
22459
  style,
22443
- classNames,
22460
+ classNames: classNames2,
22444
22461
  styles,
22445
22462
  unstyled,
22446
22463
  attributes,
@@ -22598,7 +22615,7 @@ const varsResolver = createVarsResolver((_, { zIndex, containerWidth }) => ({
22598
22615
  const Notifications = factory((_props, ref) => {
22599
22616
  const props = useProps("Notifications", defaultProps, _props);
22600
22617
  const {
22601
- classNames,
22618
+ classNames: classNames2,
22602
22619
  className,
22603
22620
  style,
22604
22621
  styles,
@@ -22630,7 +22647,7 @@ const Notifications = factory((_props, ref) => {
22630
22647
  props,
22631
22648
  className,
22632
22649
  style,
22633
- classNames,
22650
+ classNames: classNames2,
22634
22651
  styles,
22635
22652
  unstyled,
22636
22653
  vars,
@@ -26821,6 +26838,9 @@ Checkbox.displayName = "Checkbox";
26821
26838
  function Drawer(props) {
26822
26839
  return /* @__PURE__ */ jsxRuntime.jsx(Drawer$1, { position: "right", size: "lg", p: "lg", ...props });
26823
26840
  }
26841
+ function Loader(props) {
26842
+ return /* @__PURE__ */ jsxRuntime.jsx(Loader$1, { ...props });
26843
+ }
26824
26844
  function MenuBase(props) {
26825
26845
  return /* @__PURE__ */ jsxRuntime.jsx(Menu$1, { shadow: "md", ...props });
26826
26846
  }
@@ -26904,6 +26924,13 @@ function FairmintLogo({
26904
26924
  }
26905
26925
  );
26906
26926
  }
26927
+ const radii = {
26928
+ xs: "0.25rem",
26929
+ sm: "0.375rem",
26930
+ md: "0.5rem",
26931
+ lg: "0.75rem",
26932
+ xl: "1rem"
26933
+ };
26907
26934
  const indigo = [
26908
26935
  "#EEF2FF",
26909
26936
  "#E0E7FF",
@@ -27008,13 +27035,7 @@ const theme = createTheme({
27008
27035
  fontFamily: '"Plus Jakarta Sans", sans-serif',
27009
27036
  fontWeight: "700"
27010
27037
  },
27011
- radius: {
27012
- xs: "0.25rem",
27013
- sm: "0.375rem",
27014
- md: "0.5rem",
27015
- lg: "0.75rem",
27016
- xl: "1rem"
27017
- },
27038
+ radius: radii,
27018
27039
  defaultRadius: "md",
27019
27040
  breakpoints: {
27020
27041
  xs: "30em",
@@ -28238,6 +28259,72 @@ function PhoneField({ error: error2, ...rest }) {
28238
28259
  }
28239
28260
  );
28240
28261
  }
28262
+ const US_STATES = [
28263
+ { value: "AL", label: "Alabama" },
28264
+ { value: "AK", label: "Alaska" },
28265
+ { value: "AZ", label: "Arizona" },
28266
+ { value: "AR", label: "Arkansas" },
28267
+ { value: "CA", label: "California" },
28268
+ { value: "CO", label: "Colorado" },
28269
+ { value: "CT", label: "Connecticut" },
28270
+ { value: "DE", label: "Delaware" },
28271
+ { value: "FL", label: "Florida" },
28272
+ { value: "GA", label: "Georgia" },
28273
+ { value: "HI", label: "Hawaii" },
28274
+ { value: "ID", label: "Idaho" },
28275
+ { value: "IL", label: "Illinois" },
28276
+ { value: "IN", label: "Indiana" },
28277
+ { value: "IA", label: "Iowa" },
28278
+ { value: "KS", label: "Kansas" },
28279
+ { value: "KY", label: "Kentucky" },
28280
+ { value: "LA", label: "Louisiana" },
28281
+ { value: "ME", label: "Maine" },
28282
+ { value: "MD", label: "Maryland" },
28283
+ { value: "MA", label: "Massachusetts" },
28284
+ { value: "MI", label: "Michigan" },
28285
+ { value: "MN", label: "Minnesota" },
28286
+ { value: "MS", label: "Mississippi" },
28287
+ { value: "MO", label: "Missouri" },
28288
+ { value: "MT", label: "Montana" },
28289
+ { value: "NE", label: "Nebraska" },
28290
+ { value: "NV", label: "Nevada" },
28291
+ { value: "NH", label: "New Hampshire" },
28292
+ { value: "NJ", label: "New Jersey" },
28293
+ { value: "NM", label: "New Mexico" },
28294
+ { value: "NY", label: "New York" },
28295
+ { value: "NC", label: "North Carolina" },
28296
+ { value: "ND", label: "North Dakota" },
28297
+ { value: "OH", label: "Ohio" },
28298
+ { value: "OK", label: "Oklahoma" },
28299
+ { value: "OR", label: "Oregon" },
28300
+ { value: "PA", label: "Pennsylvania" },
28301
+ { value: "RI", label: "Rhode Island" },
28302
+ { value: "SC", label: "South Carolina" },
28303
+ { value: "SD", label: "South Dakota" },
28304
+ { value: "TN", label: "Tennessee" },
28305
+ { value: "TX", label: "Texas" },
28306
+ { value: "UT", label: "Utah" },
28307
+ { value: "VT", label: "Vermont" },
28308
+ { value: "VA", label: "Virginia" },
28309
+ { value: "WA", label: "Washington" },
28310
+ { value: "WV", label: "West Virginia" },
28311
+ { value: "WI", label: "Wisconsin" },
28312
+ { value: "WY", label: "Wyoming" },
28313
+ { value: "DC", label: "District of Columbia" }
28314
+ ];
28315
+ function USStateField({ label, placeholder, ...rest }) {
28316
+ return /* @__PURE__ */ jsxRuntime.jsx(
28317
+ Select,
28318
+ {
28319
+ label: label ?? "State",
28320
+ placeholder: placeholder ?? "Select state",
28321
+ data: [...US_STATES],
28322
+ searchable: true,
28323
+ clearable: true,
28324
+ ...rest
28325
+ }
28326
+ );
28327
+ }
28241
28328
  const US_ZIP_REGEX = /^\d{5}(-\d{4})?$/;
28242
28329
  const INTL_POSTAL_REGEX = /^[A-Z0-9]+(?:[ -][A-Z0-9]+)*$/i;
28243
28330
  function createZipSchema(options) {
@@ -28457,7 +28544,7 @@ function DataTable({
28457
28544
  styles: onRowClick ? {
28458
28545
  tr: {
28459
28546
  "&:hover": {
28460
- backgroundColor: `var(--mantine-color-${colors.neutral}-0)`
28547
+ backgroundColor: neutralColors[50]
28461
28548
  }
28462
28549
  }
28463
28550
  } : void 0,
@@ -28639,10 +28726,10 @@ function ListRow({
28639
28726
  root: {
28640
28727
  transition: "background-color 0.15s ease",
28641
28728
  "&:hover": {
28642
- backgroundColor: `var(--mantine-color-${colors.neutral}-0)`
28729
+ backgroundColor: neutralColors[50]
28643
28730
  },
28644
28731
  "&:focus-visible": {
28645
- outline: `2px solid var(--mantine-color-${colors.primary}-5)`,
28732
+ outline: `2px solid ${brandColors.indigo}`,
28646
28733
  outlineOffset: "-2px"
28647
28734
  }
28648
28735
  }
@@ -28656,6 +28743,1257 @@ function ListRow({
28656
28743
  function Percent({ value, decimals = 2, ...rest }) {
28657
28744
  return /* @__PURE__ */ jsxRuntime.jsx(Text, { component: "span", ...rest, children: formatPercent(value, decimals) });
28658
28745
  }
28746
+ var UserAgent_DEPRECATED_1;
28747
+ var hasRequiredUserAgent_DEPRECATED;
28748
+ function requireUserAgent_DEPRECATED() {
28749
+ if (hasRequiredUserAgent_DEPRECATED) return UserAgent_DEPRECATED_1;
28750
+ hasRequiredUserAgent_DEPRECATED = 1;
28751
+ var _populated = false;
28752
+ var _ie, _firefox, _opera, _webkit, _chrome;
28753
+ var _ie_real_version;
28754
+ var _osx, _windows, _linux, _android;
28755
+ var _win64;
28756
+ var _iphone, _ipad, _native;
28757
+ var _mobile;
28758
+ function _populate() {
28759
+ if (_populated) {
28760
+ return;
28761
+ }
28762
+ _populated = true;
28763
+ var uas = navigator.userAgent;
28764
+ var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
28765
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
28766
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
28767
+ _ipad = /\b(iP[ao]d)/.exec(uas);
28768
+ _android = /Android/i.exec(uas);
28769
+ _native = /FBAN\/\w+;/i.exec(uas);
28770
+ _mobile = /Mobile/i.exec(uas);
28771
+ _win64 = !!/Win64/.exec(uas);
28772
+ if (agent) {
28773
+ _ie = agent[1] ? parseFloat(agent[1]) : agent[5] ? parseFloat(agent[5]) : NaN;
28774
+ if (_ie && document && document.documentMode) {
28775
+ _ie = document.documentMode;
28776
+ }
28777
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
28778
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
28779
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
28780
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
28781
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
28782
+ if (_webkit) {
28783
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
28784
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
28785
+ } else {
28786
+ _chrome = NaN;
28787
+ }
28788
+ } else {
28789
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
28790
+ }
28791
+ if (os) {
28792
+ if (os[1]) {
28793
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
28794
+ _osx = ver ? parseFloat(ver[1].replace("_", ".")) : true;
28795
+ } else {
28796
+ _osx = false;
28797
+ }
28798
+ _windows = !!os[2];
28799
+ _linux = !!os[3];
28800
+ } else {
28801
+ _osx = _windows = _linux = false;
28802
+ }
28803
+ }
28804
+ var UserAgent_DEPRECATED = {
28805
+ /**
28806
+ * Check if the UA is Internet Explorer.
28807
+ *
28808
+ *
28809
+ * @return float|NaN Version number (if match) or NaN.
28810
+ */
28811
+ ie: function() {
28812
+ return _populate() || _ie;
28813
+ },
28814
+ /**
28815
+ * Check if we're in Internet Explorer compatibility mode.
28816
+ *
28817
+ * @return bool true if in compatibility mode, false if
28818
+ * not compatibility mode or not ie
28819
+ */
28820
+ ieCompatibilityMode: function() {
28821
+ return _populate() || _ie_real_version > _ie;
28822
+ },
28823
+ /**
28824
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
28825
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
28826
+ * this when we don't need it -- tracked by #601957.
28827
+ */
28828
+ ie64: function() {
28829
+ return UserAgent_DEPRECATED.ie() && _win64;
28830
+ },
28831
+ /**
28832
+ * Check if the UA is Firefox.
28833
+ *
28834
+ *
28835
+ * @return float|NaN Version number (if match) or NaN.
28836
+ */
28837
+ firefox: function() {
28838
+ return _populate() || _firefox;
28839
+ },
28840
+ /**
28841
+ * Check if the UA is Opera.
28842
+ *
28843
+ *
28844
+ * @return float|NaN Version number (if match) or NaN.
28845
+ */
28846
+ opera: function() {
28847
+ return _populate() || _opera;
28848
+ },
28849
+ /**
28850
+ * Check if the UA is WebKit.
28851
+ *
28852
+ *
28853
+ * @return float|NaN Version number (if match) or NaN.
28854
+ */
28855
+ webkit: function() {
28856
+ return _populate() || _webkit;
28857
+ },
28858
+ /**
28859
+ * For Push
28860
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
28861
+ */
28862
+ safari: function() {
28863
+ return UserAgent_DEPRECATED.webkit();
28864
+ },
28865
+ /**
28866
+ * Check if the UA is a Chrome browser.
28867
+ *
28868
+ *
28869
+ * @return float|NaN Version number (if match) or NaN.
28870
+ */
28871
+ chrome: function() {
28872
+ return _populate() || _chrome;
28873
+ },
28874
+ /**
28875
+ * Check if the user is running Windows.
28876
+ *
28877
+ * @return bool `true' if the user's OS is Windows.
28878
+ */
28879
+ windows: function() {
28880
+ return _populate() || _windows;
28881
+ },
28882
+ /**
28883
+ * Check if the user is running Mac OS X.
28884
+ *
28885
+ * @return float|bool Returns a float if a version number is detected,
28886
+ * otherwise true/false.
28887
+ */
28888
+ osx: function() {
28889
+ return _populate() || _osx;
28890
+ },
28891
+ /**
28892
+ * Check if the user is running Linux.
28893
+ *
28894
+ * @return bool `true' if the user's OS is some flavor of Linux.
28895
+ */
28896
+ linux: function() {
28897
+ return _populate() || _linux;
28898
+ },
28899
+ /**
28900
+ * Check if the user is running on an iPhone or iPod platform.
28901
+ *
28902
+ * @return bool `true' if the user is running some flavor of the
28903
+ * iPhone OS.
28904
+ */
28905
+ iphone: function() {
28906
+ return _populate() || _iphone;
28907
+ },
28908
+ mobile: function() {
28909
+ return _populate() || (_iphone || _ipad || _android || _mobile);
28910
+ },
28911
+ nativeApp: function() {
28912
+ return _populate() || _native;
28913
+ },
28914
+ android: function() {
28915
+ return _populate() || _android;
28916
+ },
28917
+ ipad: function() {
28918
+ return _populate() || _ipad;
28919
+ }
28920
+ };
28921
+ UserAgent_DEPRECATED_1 = UserAgent_DEPRECATED;
28922
+ return UserAgent_DEPRECATED_1;
28923
+ }
28924
+ var ExecutionEnvironment_1;
28925
+ var hasRequiredExecutionEnvironment;
28926
+ function requireExecutionEnvironment() {
28927
+ if (hasRequiredExecutionEnvironment) return ExecutionEnvironment_1;
28928
+ hasRequiredExecutionEnvironment = 1;
28929
+ var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
28930
+ var ExecutionEnvironment = {
28931
+ canUseDOM,
28932
+ canUseWorkers: typeof Worker !== "undefined",
28933
+ canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
28934
+ canUseViewport: canUseDOM && !!window.screen,
28935
+ isInWorker: !canUseDOM
28936
+ // For now, this is true - might change in the future.
28937
+ };
28938
+ ExecutionEnvironment_1 = ExecutionEnvironment;
28939
+ return ExecutionEnvironment_1;
28940
+ }
28941
+ var isEventSupported_1;
28942
+ var hasRequiredIsEventSupported;
28943
+ function requireIsEventSupported() {
28944
+ if (hasRequiredIsEventSupported) return isEventSupported_1;
28945
+ hasRequiredIsEventSupported = 1;
28946
+ var ExecutionEnvironment = requireExecutionEnvironment();
28947
+ var useHasFeature;
28948
+ if (ExecutionEnvironment.canUseDOM) {
28949
+ useHasFeature = document.implementation && document.implementation.hasFeature && // always returns true in newer browsers as per the standard.
28950
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
28951
+ document.implementation.hasFeature("", "") !== true;
28952
+ }
28953
+ function isEventSupported(eventNameSuffix, capture) {
28954
+ if (!ExecutionEnvironment.canUseDOM || capture && !("addEventListener" in document)) {
28955
+ return false;
28956
+ }
28957
+ var eventName = "on" + eventNameSuffix;
28958
+ var isSupported = eventName in document;
28959
+ if (!isSupported) {
28960
+ var element = document.createElement("div");
28961
+ element.setAttribute(eventName, "return;");
28962
+ isSupported = typeof element[eventName] === "function";
28963
+ }
28964
+ if (!isSupported && useHasFeature && eventNameSuffix === "wheel") {
28965
+ isSupported = document.implementation.hasFeature("Events.wheel", "3.0");
28966
+ }
28967
+ return isSupported;
28968
+ }
28969
+ isEventSupported_1 = isEventSupported;
28970
+ return isEventSupported_1;
28971
+ }
28972
+ var normalizeWheel_1;
28973
+ var hasRequiredNormalizeWheel$1;
28974
+ function requireNormalizeWheel$1() {
28975
+ if (hasRequiredNormalizeWheel$1) return normalizeWheel_1;
28976
+ hasRequiredNormalizeWheel$1 = 1;
28977
+ var UserAgent_DEPRECATED = requireUserAgent_DEPRECATED();
28978
+ var isEventSupported = requireIsEventSupported();
28979
+ var PIXEL_STEP = 10;
28980
+ var LINE_HEIGHT = 40;
28981
+ var PAGE_HEIGHT = 800;
28982
+ function normalizeWheel2(event) {
28983
+ var sX = 0, sY = 0, pX = 0, pY = 0;
28984
+ if ("detail" in event) {
28985
+ sY = event.detail;
28986
+ }
28987
+ if ("wheelDelta" in event) {
28988
+ sY = -event.wheelDelta / 120;
28989
+ }
28990
+ if ("wheelDeltaY" in event) {
28991
+ sY = -event.wheelDeltaY / 120;
28992
+ }
28993
+ if ("wheelDeltaX" in event) {
28994
+ sX = -event.wheelDeltaX / 120;
28995
+ }
28996
+ if ("axis" in event && event.axis === event.HORIZONTAL_AXIS) {
28997
+ sX = sY;
28998
+ sY = 0;
28999
+ }
29000
+ pX = sX * PIXEL_STEP;
29001
+ pY = sY * PIXEL_STEP;
29002
+ if ("deltaY" in event) {
29003
+ pY = event.deltaY;
29004
+ }
29005
+ if ("deltaX" in event) {
29006
+ pX = event.deltaX;
29007
+ }
29008
+ if ((pX || pY) && event.deltaMode) {
29009
+ if (event.deltaMode == 1) {
29010
+ pX *= LINE_HEIGHT;
29011
+ pY *= LINE_HEIGHT;
29012
+ } else {
29013
+ pX *= PAGE_HEIGHT;
29014
+ pY *= PAGE_HEIGHT;
29015
+ }
29016
+ }
29017
+ if (pX && !sX) {
29018
+ sX = pX < 1 ? -1 : 1;
29019
+ }
29020
+ if (pY && !sY) {
29021
+ sY = pY < 1 ? -1 : 1;
29022
+ }
29023
+ return {
29024
+ spinX: sX,
29025
+ spinY: sY,
29026
+ pixelX: pX,
29027
+ pixelY: pY
29028
+ };
29029
+ }
29030
+ normalizeWheel2.getEventType = function() {
29031
+ return UserAgent_DEPRECATED.firefox() ? "DOMMouseScroll" : isEventSupported("wheel") ? "wheel" : "mousewheel";
29032
+ };
29033
+ normalizeWheel_1 = normalizeWheel2;
29034
+ return normalizeWheel_1;
29035
+ }
29036
+ var normalizeWheel$1;
29037
+ var hasRequiredNormalizeWheel;
29038
+ function requireNormalizeWheel() {
29039
+ if (hasRequiredNormalizeWheel) return normalizeWheel$1;
29040
+ hasRequiredNormalizeWheel = 1;
29041
+ normalizeWheel$1 = requireNormalizeWheel$1();
29042
+ return normalizeWheel$1;
29043
+ }
29044
+ var normalizeWheelExports = requireNormalizeWheel();
29045
+ const normalizeWheel = /* @__PURE__ */ getDefaultExportFromCjs(normalizeWheelExports);
29046
+ function getCropSize(mediaWidth, mediaHeight, containerWidth, containerHeight, aspect, rotation) {
29047
+ if (rotation === void 0) {
29048
+ rotation = 0;
29049
+ }
29050
+ var _a = rotateSize(mediaWidth, mediaHeight, rotation), width = _a.width, height = _a.height;
29051
+ var fittingWidth = Math.min(width, containerWidth);
29052
+ var fittingHeight = Math.min(height, containerHeight);
29053
+ if (fittingWidth > fittingHeight * aspect) {
29054
+ return {
29055
+ width: fittingHeight * aspect,
29056
+ height: fittingHeight
29057
+ };
29058
+ }
29059
+ return {
29060
+ width: fittingWidth,
29061
+ height: fittingWidth / aspect
29062
+ };
29063
+ }
29064
+ function getMediaZoom(mediaSize) {
29065
+ return mediaSize.width > mediaSize.height ? mediaSize.width / mediaSize.naturalWidth : mediaSize.height / mediaSize.naturalHeight;
29066
+ }
29067
+ function restrictPosition(position, mediaSize, cropSize, zoom, rotation) {
29068
+ if (rotation === void 0) {
29069
+ rotation = 0;
29070
+ }
29071
+ var _a = rotateSize(mediaSize.width, mediaSize.height, rotation), width = _a.width, height = _a.height;
29072
+ return {
29073
+ x: restrictPositionCoord(position.x, width, cropSize.width, zoom),
29074
+ y: restrictPositionCoord(position.y, height, cropSize.height, zoom)
29075
+ };
29076
+ }
29077
+ function restrictPositionCoord(position, mediaSize, cropSize, zoom) {
29078
+ var maxPosition = mediaSize * zoom / 2 - cropSize / 2;
29079
+ return clamp(position, -maxPosition, maxPosition);
29080
+ }
29081
+ function getDistanceBetweenPoints(pointA, pointB) {
29082
+ return Math.sqrt(Math.pow(pointA.y - pointB.y, 2) + Math.pow(pointA.x - pointB.x, 2));
29083
+ }
29084
+ function getRotationBetweenPoints(pointA, pointB) {
29085
+ return Math.atan2(pointB.y - pointA.y, pointB.x - pointA.x) * 180 / Math.PI;
29086
+ }
29087
+ function computeCroppedArea(crop, mediaSize, cropSize, aspect, zoom, rotation, restrictPosition2) {
29088
+ if (rotation === void 0) {
29089
+ rotation = 0;
29090
+ }
29091
+ if (restrictPosition2 === void 0) {
29092
+ restrictPosition2 = true;
29093
+ }
29094
+ var limitAreaFn = restrictPosition2 ? limitArea : noOp;
29095
+ var mediaBBoxSize = rotateSize(mediaSize.width, mediaSize.height, rotation);
29096
+ var mediaNaturalBBoxSize = rotateSize(mediaSize.naturalWidth, mediaSize.naturalHeight, rotation);
29097
+ var croppedAreaPercentages = {
29098
+ x: limitAreaFn(100, ((mediaBBoxSize.width - cropSize.width / zoom) / 2 - crop.x / zoom) / mediaBBoxSize.width * 100),
29099
+ y: limitAreaFn(100, ((mediaBBoxSize.height - cropSize.height / zoom) / 2 - crop.y / zoom) / mediaBBoxSize.height * 100),
29100
+ width: limitAreaFn(100, cropSize.width / mediaBBoxSize.width * 100 / zoom),
29101
+ height: limitAreaFn(100, cropSize.height / mediaBBoxSize.height * 100 / zoom)
29102
+ };
29103
+ var widthInPixels = Math.round(limitAreaFn(mediaNaturalBBoxSize.width, croppedAreaPercentages.width * mediaNaturalBBoxSize.width / 100));
29104
+ var heightInPixels = Math.round(limitAreaFn(mediaNaturalBBoxSize.height, croppedAreaPercentages.height * mediaNaturalBBoxSize.height / 100));
29105
+ var isImgWiderThanHigh = mediaNaturalBBoxSize.width >= mediaNaturalBBoxSize.height * aspect;
29106
+ var sizePixels = isImgWiderThanHigh ? {
29107
+ width: Math.round(heightInPixels * aspect),
29108
+ height: heightInPixels
29109
+ } : {
29110
+ width: widthInPixels,
29111
+ height: Math.round(widthInPixels / aspect)
29112
+ };
29113
+ var croppedAreaPixels = __assign(__assign({}, sizePixels), {
29114
+ x: Math.round(limitAreaFn(mediaNaturalBBoxSize.width - sizePixels.width, croppedAreaPercentages.x * mediaNaturalBBoxSize.width / 100)),
29115
+ y: Math.round(limitAreaFn(mediaNaturalBBoxSize.height - sizePixels.height, croppedAreaPercentages.y * mediaNaturalBBoxSize.height / 100))
29116
+ });
29117
+ return {
29118
+ croppedAreaPercentages,
29119
+ croppedAreaPixels
29120
+ };
29121
+ }
29122
+ function limitArea(max2, value) {
29123
+ return Math.min(max2, Math.max(0, value));
29124
+ }
29125
+ function noOp(_max, value) {
29126
+ return value;
29127
+ }
29128
+ function getInitialCropFromCroppedAreaPercentages(croppedAreaPercentages, mediaSize, rotation, cropSize, minZoom, maxZoom) {
29129
+ var mediaBBoxSize = rotateSize(mediaSize.width, mediaSize.height, rotation);
29130
+ var zoom = clamp(cropSize.width / mediaBBoxSize.width * (100 / croppedAreaPercentages.width), minZoom, maxZoom);
29131
+ var crop = {
29132
+ x: zoom * mediaBBoxSize.width / 2 - cropSize.width / 2 - mediaBBoxSize.width * zoom * (croppedAreaPercentages.x / 100),
29133
+ y: zoom * mediaBBoxSize.height / 2 - cropSize.height / 2 - mediaBBoxSize.height * zoom * (croppedAreaPercentages.y / 100)
29134
+ };
29135
+ return {
29136
+ crop,
29137
+ zoom
29138
+ };
29139
+ }
29140
+ function getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) {
29141
+ var mediaZoom = getMediaZoom(mediaSize);
29142
+ return cropSize.height > cropSize.width ? cropSize.height / (croppedAreaPixels.height * mediaZoom) : cropSize.width / (croppedAreaPixels.width * mediaZoom);
29143
+ }
29144
+ function getInitialCropFromCroppedAreaPixels(croppedAreaPixels, mediaSize, rotation, cropSize, minZoom, maxZoom) {
29145
+ if (rotation === void 0) {
29146
+ rotation = 0;
29147
+ }
29148
+ var mediaNaturalBBoxSize = rotateSize(mediaSize.naturalWidth, mediaSize.naturalHeight, rotation);
29149
+ var zoom = clamp(getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize), minZoom, maxZoom);
29150
+ var cropZoom = cropSize.height > cropSize.width ? cropSize.height / croppedAreaPixels.height : cropSize.width / croppedAreaPixels.width;
29151
+ var crop = {
29152
+ x: ((mediaNaturalBBoxSize.width - croppedAreaPixels.width) / 2 - croppedAreaPixels.x) * cropZoom,
29153
+ y: ((mediaNaturalBBoxSize.height - croppedAreaPixels.height) / 2 - croppedAreaPixels.y) * cropZoom
29154
+ };
29155
+ return {
29156
+ crop,
29157
+ zoom
29158
+ };
29159
+ }
29160
+ function getCenter(a, b) {
29161
+ return {
29162
+ x: (b.x + a.x) / 2,
29163
+ y: (b.y + a.y) / 2
29164
+ };
29165
+ }
29166
+ function getRadianAngle(degreeValue) {
29167
+ return degreeValue * Math.PI / 180;
29168
+ }
29169
+ function rotateSize(width, height, rotation) {
29170
+ var rotRad = getRadianAngle(rotation);
29171
+ return {
29172
+ width: Math.abs(Math.cos(rotRad) * width) + Math.abs(Math.sin(rotRad) * height),
29173
+ height: Math.abs(Math.sin(rotRad) * width) + Math.abs(Math.cos(rotRad) * height)
29174
+ };
29175
+ }
29176
+ function clamp(value, min2, max2) {
29177
+ return Math.min(Math.max(value, min2), max2);
29178
+ }
29179
+ function classNames() {
29180
+ var args = [];
29181
+ for (var _i = 0; _i < arguments.length; _i++) {
29182
+ args[_i] = arguments[_i];
29183
+ }
29184
+ return args.filter(function(value) {
29185
+ if (typeof value === "string" && value.length > 0) {
29186
+ return true;
29187
+ }
29188
+ return false;
29189
+ }).join(" ").trim();
29190
+ }
29191
+ var css_248z = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n";
29192
+ var MIN_ZOOM = 1;
29193
+ var MAX_ZOOM = 3;
29194
+ var KEYBOARD_STEP = 1;
29195
+ var Cropper = (
29196
+ /** @class */
29197
+ (function(_super) {
29198
+ __extends(Cropper2, _super);
29199
+ function Cropper2() {
29200
+ var _this = _super !== null && _super.apply(this, arguments) || this;
29201
+ _this.cropperRef = React__namespace.createRef();
29202
+ _this.imageRef = React__namespace.createRef();
29203
+ _this.videoRef = React__namespace.createRef();
29204
+ _this.containerPosition = {
29205
+ x: 0,
29206
+ y: 0
29207
+ };
29208
+ _this.containerRef = null;
29209
+ _this.styleRef = null;
29210
+ _this.containerRect = null;
29211
+ _this.mediaSize = {
29212
+ width: 0,
29213
+ height: 0,
29214
+ naturalWidth: 0,
29215
+ naturalHeight: 0
29216
+ };
29217
+ _this.dragStartPosition = {
29218
+ x: 0,
29219
+ y: 0
29220
+ };
29221
+ _this.dragStartCrop = {
29222
+ x: 0,
29223
+ y: 0
29224
+ };
29225
+ _this.gestureZoomStart = 0;
29226
+ _this.gestureRotationStart = 0;
29227
+ _this.isTouching = false;
29228
+ _this.lastPinchDistance = 0;
29229
+ _this.lastPinchRotation = 0;
29230
+ _this.rafDragTimeout = null;
29231
+ _this.rafPinchTimeout = null;
29232
+ _this.wheelTimer = null;
29233
+ _this.currentDoc = typeof document !== "undefined" ? document : null;
29234
+ _this.currentWindow = typeof window !== "undefined" ? window : null;
29235
+ _this.resizeObserver = null;
29236
+ _this.previousCropSize = null;
29237
+ _this.isInitialized = false;
29238
+ _this.state = {
29239
+ cropSize: null,
29240
+ hasWheelJustStarted: false,
29241
+ mediaObjectFit: void 0
29242
+ };
29243
+ _this.initResizeObserver = function() {
29244
+ if (typeof window.ResizeObserver === "undefined" || !_this.containerRef) {
29245
+ return;
29246
+ }
29247
+ var isFirstResize = true;
29248
+ _this.resizeObserver = new window.ResizeObserver(function(entries) {
29249
+ if (isFirstResize) {
29250
+ isFirstResize = false;
29251
+ return;
29252
+ }
29253
+ _this.computeSizes();
29254
+ });
29255
+ _this.resizeObserver.observe(_this.containerRef);
29256
+ };
29257
+ _this.preventZoomSafari = function(e) {
29258
+ return e.preventDefault();
29259
+ };
29260
+ _this.cleanEvents = function() {
29261
+ if (!_this.currentDoc) return;
29262
+ _this.currentDoc.removeEventListener("mousemove", _this.onMouseMove);
29263
+ _this.currentDoc.removeEventListener("mouseup", _this.onDragStopped);
29264
+ _this.currentDoc.removeEventListener("touchmove", _this.onTouchMove);
29265
+ _this.currentDoc.removeEventListener("touchend", _this.onDragStopped);
29266
+ _this.currentDoc.removeEventListener("gesturechange", _this.onGestureChange);
29267
+ _this.currentDoc.removeEventListener("gestureend", _this.onGestureEnd);
29268
+ _this.currentDoc.removeEventListener("scroll", _this.onScroll);
29269
+ };
29270
+ _this.clearScrollEvent = function() {
29271
+ if (_this.containerRef) _this.containerRef.removeEventListener("wheel", _this.onWheel);
29272
+ if (_this.wheelTimer) {
29273
+ clearTimeout(_this.wheelTimer);
29274
+ }
29275
+ };
29276
+ _this.onMediaLoad = function() {
29277
+ var cropSize = _this.computeSizes();
29278
+ if (cropSize) {
29279
+ _this.previousCropSize = cropSize;
29280
+ _this.emitCropData();
29281
+ _this.setInitialCrop(cropSize);
29282
+ _this.isInitialized = true;
29283
+ }
29284
+ if (_this.props.onMediaLoaded) {
29285
+ _this.props.onMediaLoaded(_this.mediaSize);
29286
+ }
29287
+ };
29288
+ _this.setInitialCrop = function(cropSize) {
29289
+ if (_this.props.initialCroppedAreaPercentages) {
29290
+ var _a = getInitialCropFromCroppedAreaPercentages(_this.props.initialCroppedAreaPercentages, _this.mediaSize, _this.props.rotation, cropSize, _this.props.minZoom, _this.props.maxZoom), crop = _a.crop, zoom = _a.zoom;
29291
+ _this.props.onCropChange(crop);
29292
+ _this.props.onZoomChange && _this.props.onZoomChange(zoom);
29293
+ } else if (_this.props.initialCroppedAreaPixels) {
29294
+ var _b = getInitialCropFromCroppedAreaPixels(_this.props.initialCroppedAreaPixels, _this.mediaSize, _this.props.rotation, cropSize, _this.props.minZoom, _this.props.maxZoom), crop = _b.crop, zoom = _b.zoom;
29295
+ _this.props.onCropChange(crop);
29296
+ _this.props.onZoomChange && _this.props.onZoomChange(zoom);
29297
+ }
29298
+ };
29299
+ _this.computeSizes = function() {
29300
+ var _a, _b, _c, _d, _e, _f;
29301
+ var mediaRef = _this.imageRef.current || _this.videoRef.current;
29302
+ if (mediaRef && _this.containerRef) {
29303
+ _this.containerRect = _this.containerRef.getBoundingClientRect();
29304
+ _this.saveContainerPosition();
29305
+ var containerAspect = _this.containerRect.width / _this.containerRect.height;
29306
+ var naturalWidth = ((_a = _this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = _this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
29307
+ var naturalHeight = ((_c = _this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = _this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
29308
+ var isMediaScaledDown = mediaRef.offsetWidth < naturalWidth || mediaRef.offsetHeight < naturalHeight;
29309
+ var mediaAspect = naturalWidth / naturalHeight;
29310
+ var renderedMediaSize = void 0;
29311
+ if (isMediaScaledDown) {
29312
+ switch (_this.state.mediaObjectFit) {
29313
+ default:
29314
+ case "contain":
29315
+ renderedMediaSize = containerAspect > mediaAspect ? {
29316
+ width: _this.containerRect.height * mediaAspect,
29317
+ height: _this.containerRect.height
29318
+ } : {
29319
+ width: _this.containerRect.width,
29320
+ height: _this.containerRect.width / mediaAspect
29321
+ };
29322
+ break;
29323
+ case "horizontal-cover":
29324
+ renderedMediaSize = {
29325
+ width: _this.containerRect.width,
29326
+ height: _this.containerRect.width / mediaAspect
29327
+ };
29328
+ break;
29329
+ case "vertical-cover":
29330
+ renderedMediaSize = {
29331
+ width: _this.containerRect.height * mediaAspect,
29332
+ height: _this.containerRect.height
29333
+ };
29334
+ break;
29335
+ }
29336
+ } else {
29337
+ renderedMediaSize = {
29338
+ width: mediaRef.offsetWidth,
29339
+ height: mediaRef.offsetHeight
29340
+ };
29341
+ }
29342
+ _this.mediaSize = __assign(__assign({}, renderedMediaSize), {
29343
+ naturalWidth,
29344
+ naturalHeight
29345
+ });
29346
+ if (_this.props.setMediaSize) {
29347
+ _this.props.setMediaSize(_this.mediaSize);
29348
+ }
29349
+ var cropSize = _this.props.cropSize ? _this.props.cropSize : getCropSize(_this.mediaSize.width, _this.mediaSize.height, _this.containerRect.width, _this.containerRect.height, _this.props.aspect, _this.props.rotation);
29350
+ if (((_e = _this.state.cropSize) === null || _e === void 0 ? void 0 : _e.height) !== cropSize.height || ((_f = _this.state.cropSize) === null || _f === void 0 ? void 0 : _f.width) !== cropSize.width) {
29351
+ _this.props.onCropSizeChange && _this.props.onCropSizeChange(cropSize);
29352
+ }
29353
+ _this.setState({
29354
+ cropSize
29355
+ }, _this.recomputeCropPosition);
29356
+ if (_this.props.setCropSize) {
29357
+ _this.props.setCropSize(cropSize);
29358
+ }
29359
+ return cropSize;
29360
+ }
29361
+ };
29362
+ _this.saveContainerPosition = function() {
29363
+ if (_this.containerRef) {
29364
+ var bounds = _this.containerRef.getBoundingClientRect();
29365
+ _this.containerPosition = {
29366
+ x: bounds.left,
29367
+ y: bounds.top
29368
+ };
29369
+ }
29370
+ };
29371
+ _this.onMouseDown = function(e) {
29372
+ if (!_this.currentDoc) return;
29373
+ e.preventDefault();
29374
+ _this.currentDoc.addEventListener("mousemove", _this.onMouseMove);
29375
+ _this.currentDoc.addEventListener("mouseup", _this.onDragStopped);
29376
+ _this.saveContainerPosition();
29377
+ _this.onDragStart(Cropper2.getMousePoint(e));
29378
+ };
29379
+ _this.onMouseMove = function(e) {
29380
+ return _this.onDrag(Cropper2.getMousePoint(e));
29381
+ };
29382
+ _this.onScroll = function(e) {
29383
+ if (!_this.currentDoc) return;
29384
+ e.preventDefault();
29385
+ _this.saveContainerPosition();
29386
+ };
29387
+ _this.onTouchStart = function(e) {
29388
+ if (!_this.currentDoc) return;
29389
+ _this.isTouching = true;
29390
+ if (_this.props.onTouchRequest && !_this.props.onTouchRequest(e)) {
29391
+ return;
29392
+ }
29393
+ _this.currentDoc.addEventListener("touchmove", _this.onTouchMove, {
29394
+ passive: false
29395
+ });
29396
+ _this.currentDoc.addEventListener("touchend", _this.onDragStopped);
29397
+ _this.saveContainerPosition();
29398
+ if (e.touches.length === 2) {
29399
+ _this.onPinchStart(e);
29400
+ } else if (e.touches.length === 1) {
29401
+ _this.onDragStart(Cropper2.getTouchPoint(e.touches[0]));
29402
+ }
29403
+ };
29404
+ _this.onTouchMove = function(e) {
29405
+ e.preventDefault();
29406
+ if (e.touches.length === 2) {
29407
+ _this.onPinchMove(e);
29408
+ } else if (e.touches.length === 1) {
29409
+ _this.onDrag(Cropper2.getTouchPoint(e.touches[0]));
29410
+ }
29411
+ };
29412
+ _this.onGestureStart = function(e) {
29413
+ if (!_this.currentDoc) return;
29414
+ e.preventDefault();
29415
+ _this.currentDoc.addEventListener("gesturechange", _this.onGestureChange);
29416
+ _this.currentDoc.addEventListener("gestureend", _this.onGestureEnd);
29417
+ _this.gestureZoomStart = _this.props.zoom;
29418
+ _this.gestureRotationStart = _this.props.rotation;
29419
+ };
29420
+ _this.onGestureChange = function(e) {
29421
+ e.preventDefault();
29422
+ if (_this.isTouching) {
29423
+ return;
29424
+ }
29425
+ var point = Cropper2.getMousePoint(e);
29426
+ var newZoom = _this.gestureZoomStart - 1 + e.scale;
29427
+ _this.setNewZoom(newZoom, point, {
29428
+ shouldUpdatePosition: true
29429
+ });
29430
+ if (_this.props.onRotationChange) {
29431
+ var newRotation = _this.gestureRotationStart + e.rotation;
29432
+ _this.props.onRotationChange(newRotation);
29433
+ }
29434
+ };
29435
+ _this.onGestureEnd = function(e) {
29436
+ _this.cleanEvents();
29437
+ };
29438
+ _this.onDragStart = function(_a) {
29439
+ var _b, _c;
29440
+ var x = _a.x, y = _a.y;
29441
+ _this.dragStartPosition = {
29442
+ x,
29443
+ y
29444
+ };
29445
+ _this.dragStartCrop = __assign({}, _this.props.crop);
29446
+ (_c = (_b = _this.props).onInteractionStart) === null || _c === void 0 ? void 0 : _c.call(_b);
29447
+ };
29448
+ _this.onDrag = function(_a) {
29449
+ var x = _a.x, y = _a.y;
29450
+ if (!_this.currentWindow) return;
29451
+ if (_this.rafDragTimeout) _this.currentWindow.cancelAnimationFrame(_this.rafDragTimeout);
29452
+ _this.rafDragTimeout = _this.currentWindow.requestAnimationFrame(function() {
29453
+ if (!_this.state.cropSize) return;
29454
+ if (x === void 0 || y === void 0) return;
29455
+ var offsetX = x - _this.dragStartPosition.x;
29456
+ var offsetY = y - _this.dragStartPosition.y;
29457
+ var requestedPosition = {
29458
+ x: _this.dragStartCrop.x + offsetX,
29459
+ y: _this.dragStartCrop.y + offsetY
29460
+ };
29461
+ var newPosition = _this.props.restrictPosition ? restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : requestedPosition;
29462
+ _this.props.onCropChange(newPosition);
29463
+ });
29464
+ };
29465
+ _this.onDragStopped = function() {
29466
+ var _a, _b;
29467
+ _this.isTouching = false;
29468
+ _this.cleanEvents();
29469
+ _this.emitCropData();
29470
+ (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
29471
+ };
29472
+ _this.onWheel = function(e) {
29473
+ if (!_this.currentWindow) return;
29474
+ if (_this.props.onWheelRequest && !_this.props.onWheelRequest(e)) {
29475
+ return;
29476
+ }
29477
+ e.preventDefault();
29478
+ var point = Cropper2.getMousePoint(e);
29479
+ var pixelY = normalizeWheel(e).pixelY;
29480
+ var newZoom = _this.props.zoom - pixelY * _this.props.zoomSpeed / 200;
29481
+ _this.setNewZoom(newZoom, point, {
29482
+ shouldUpdatePosition: true
29483
+ });
29484
+ if (!_this.state.hasWheelJustStarted) {
29485
+ _this.setState({
29486
+ hasWheelJustStarted: true
29487
+ }, function() {
29488
+ var _a, _b;
29489
+ return (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a);
29490
+ });
29491
+ }
29492
+ if (_this.wheelTimer) {
29493
+ clearTimeout(_this.wheelTimer);
29494
+ }
29495
+ _this.wheelTimer = _this.currentWindow.setTimeout(function() {
29496
+ return _this.setState({
29497
+ hasWheelJustStarted: false
29498
+ }, function() {
29499
+ var _a, _b;
29500
+ return (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
29501
+ });
29502
+ }, 250);
29503
+ };
29504
+ _this.getPointOnContainer = function(_a, containerTopLeft) {
29505
+ var x = _a.x, y = _a.y;
29506
+ if (!_this.containerRect) {
29507
+ throw new Error("The Cropper is not mounted");
29508
+ }
29509
+ return {
29510
+ x: _this.containerRect.width / 2 - (x - containerTopLeft.x),
29511
+ y: _this.containerRect.height / 2 - (y - containerTopLeft.y)
29512
+ };
29513
+ };
29514
+ _this.getPointOnMedia = function(_a) {
29515
+ var x = _a.x, y = _a.y;
29516
+ var _b = _this.props, crop = _b.crop, zoom = _b.zoom;
29517
+ return {
29518
+ x: (x + crop.x) / zoom,
29519
+ y: (y + crop.y) / zoom
29520
+ };
29521
+ };
29522
+ _this.setNewZoom = function(zoom, point, _a) {
29523
+ var _b = _a === void 0 ? {} : _a, _c = _b.shouldUpdatePosition, shouldUpdatePosition = _c === void 0 ? true : _c;
29524
+ if (!_this.state.cropSize || !_this.props.onZoomChange) return;
29525
+ var newZoom = clamp(zoom, _this.props.minZoom, _this.props.maxZoom);
29526
+ if (shouldUpdatePosition) {
29527
+ var zoomPoint = _this.getPointOnContainer(point, _this.containerPosition);
29528
+ var zoomTarget = _this.getPointOnMedia(zoomPoint);
29529
+ var requestedPosition = {
29530
+ x: zoomTarget.x * newZoom - zoomPoint.x,
29531
+ y: zoomTarget.y * newZoom - zoomPoint.y
29532
+ };
29533
+ var newPosition = _this.props.restrictPosition ? restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, newZoom, _this.props.rotation) : requestedPosition;
29534
+ _this.props.onCropChange(newPosition);
29535
+ }
29536
+ _this.props.onZoomChange(newZoom);
29537
+ };
29538
+ _this.getCropData = function() {
29539
+ if (!_this.state.cropSize) {
29540
+ return null;
29541
+ }
29542
+ var restrictedPosition = _this.props.restrictPosition ? restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop;
29543
+ return computeCroppedArea(restrictedPosition, _this.mediaSize, _this.state.cropSize, _this.getAspect(), _this.props.zoom, _this.props.rotation, _this.props.restrictPosition);
29544
+ };
29545
+ _this.emitCropData = function() {
29546
+ var cropData = _this.getCropData();
29547
+ if (!cropData) return;
29548
+ var croppedAreaPercentages = cropData.croppedAreaPercentages, croppedAreaPixels = cropData.croppedAreaPixels;
29549
+ if (_this.props.onCropComplete) {
29550
+ _this.props.onCropComplete(croppedAreaPercentages, croppedAreaPixels);
29551
+ }
29552
+ if (_this.props.onCropAreaChange) {
29553
+ _this.props.onCropAreaChange(croppedAreaPercentages, croppedAreaPixels);
29554
+ }
29555
+ };
29556
+ _this.emitCropAreaChange = function() {
29557
+ var cropData = _this.getCropData();
29558
+ if (!cropData) return;
29559
+ var croppedAreaPercentages = cropData.croppedAreaPercentages, croppedAreaPixels = cropData.croppedAreaPixels;
29560
+ if (_this.props.onCropAreaChange) {
29561
+ _this.props.onCropAreaChange(croppedAreaPercentages, croppedAreaPixels);
29562
+ }
29563
+ };
29564
+ _this.recomputeCropPosition = function() {
29565
+ var _a, _b;
29566
+ if (!_this.state.cropSize) return;
29567
+ var adjustedCrop = _this.props.crop;
29568
+ if (_this.isInitialized && ((_a = _this.previousCropSize) === null || _a === void 0 ? void 0 : _a.width) && ((_b = _this.previousCropSize) === null || _b === void 0 ? void 0 : _b.height)) {
29569
+ var sizeChanged = Math.abs(_this.previousCropSize.width - _this.state.cropSize.width) > 1e-6 || Math.abs(_this.previousCropSize.height - _this.state.cropSize.height) > 1e-6;
29570
+ if (sizeChanged) {
29571
+ var scaleX = _this.state.cropSize.width / _this.previousCropSize.width;
29572
+ var scaleY = _this.state.cropSize.height / _this.previousCropSize.height;
29573
+ adjustedCrop = {
29574
+ x: _this.props.crop.x * scaleX,
29575
+ y: _this.props.crop.y * scaleY
29576
+ };
29577
+ }
29578
+ }
29579
+ var newPosition = _this.props.restrictPosition ? restrictPosition(adjustedCrop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : adjustedCrop;
29580
+ _this.previousCropSize = _this.state.cropSize;
29581
+ _this.props.onCropChange(newPosition);
29582
+ _this.emitCropData();
29583
+ };
29584
+ _this.onKeyDown = function(event) {
29585
+ var _a, _b;
29586
+ var _c = _this.props, crop = _c.crop, onCropChange = _c.onCropChange, keyboardStep = _c.keyboardStep, zoom = _c.zoom, rotation = _c.rotation;
29587
+ var step = keyboardStep;
29588
+ if (!_this.state.cropSize) return;
29589
+ if (event.shiftKey) {
29590
+ step *= 0.2;
29591
+ }
29592
+ var newCrop = __assign({}, crop);
29593
+ switch (event.key) {
29594
+ case "ArrowUp":
29595
+ newCrop.y -= step;
29596
+ event.preventDefault();
29597
+ break;
29598
+ case "ArrowDown":
29599
+ newCrop.y += step;
29600
+ event.preventDefault();
29601
+ break;
29602
+ case "ArrowLeft":
29603
+ newCrop.x -= step;
29604
+ event.preventDefault();
29605
+ break;
29606
+ case "ArrowRight":
29607
+ newCrop.x += step;
29608
+ event.preventDefault();
29609
+ break;
29610
+ default:
29611
+ return;
29612
+ }
29613
+ if (_this.props.restrictPosition) {
29614
+ newCrop = restrictPosition(newCrop, _this.mediaSize, _this.state.cropSize, zoom, rotation);
29615
+ }
29616
+ if (!event.repeat) {
29617
+ (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a);
29618
+ }
29619
+ onCropChange(newCrop);
29620
+ };
29621
+ _this.onKeyUp = function(event) {
29622
+ var _a, _b;
29623
+ switch (event.key) {
29624
+ case "ArrowUp":
29625
+ case "ArrowDown":
29626
+ case "ArrowLeft":
29627
+ case "ArrowRight":
29628
+ event.preventDefault();
29629
+ break;
29630
+ default:
29631
+ return;
29632
+ }
29633
+ _this.emitCropData();
29634
+ (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
29635
+ };
29636
+ return _this;
29637
+ }
29638
+ Cropper2.prototype.componentDidMount = function() {
29639
+ if (!this.currentDoc || !this.currentWindow) return;
29640
+ if (this.containerRef) {
29641
+ if (this.containerRef.ownerDocument) {
29642
+ this.currentDoc = this.containerRef.ownerDocument;
29643
+ }
29644
+ if (this.currentDoc.defaultView) {
29645
+ this.currentWindow = this.currentDoc.defaultView;
29646
+ }
29647
+ this.initResizeObserver();
29648
+ if (typeof window.ResizeObserver === "undefined") {
29649
+ this.currentWindow.addEventListener("resize", this.computeSizes);
29650
+ }
29651
+ this.props.zoomWithScroll && this.containerRef.addEventListener("wheel", this.onWheel, {
29652
+ passive: false
29653
+ });
29654
+ this.containerRef.addEventListener("gesturestart", this.onGestureStart);
29655
+ }
29656
+ this.currentDoc.addEventListener("scroll", this.onScroll);
29657
+ if (!this.props.disableAutomaticStylesInjection) {
29658
+ this.styleRef = this.currentDoc.createElement("style");
29659
+ this.styleRef.setAttribute("type", "text/css");
29660
+ if (this.props.nonce) {
29661
+ this.styleRef.setAttribute("nonce", this.props.nonce);
29662
+ }
29663
+ this.styleRef.innerHTML = css_248z;
29664
+ this.currentDoc.head.appendChild(this.styleRef);
29665
+ }
29666
+ if (this.imageRef.current && this.imageRef.current.complete) {
29667
+ this.onMediaLoad();
29668
+ }
29669
+ if (this.props.setImageRef) {
29670
+ this.props.setImageRef(this.imageRef);
29671
+ }
29672
+ if (this.props.setVideoRef) {
29673
+ this.props.setVideoRef(this.videoRef);
29674
+ }
29675
+ if (this.props.setCropperRef) {
29676
+ this.props.setCropperRef(this.cropperRef);
29677
+ }
29678
+ };
29679
+ Cropper2.prototype.componentWillUnmount = function() {
29680
+ var _a, _b;
29681
+ if (!this.currentDoc || !this.currentWindow) return;
29682
+ if (typeof window.ResizeObserver === "undefined") {
29683
+ this.currentWindow.removeEventListener("resize", this.computeSizes);
29684
+ }
29685
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
29686
+ if (this.containerRef) {
29687
+ this.containerRef.removeEventListener("gesturestart", this.preventZoomSafari);
29688
+ }
29689
+ if (this.styleRef) {
29690
+ (_b = this.styleRef.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.styleRef);
29691
+ }
29692
+ this.cleanEvents();
29693
+ this.props.zoomWithScroll && this.clearScrollEvent();
29694
+ };
29695
+ Cropper2.prototype.componentDidUpdate = function(prevProps) {
29696
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
29697
+ if (prevProps.rotation !== this.props.rotation) {
29698
+ this.computeSizes();
29699
+ this.recomputeCropPosition();
29700
+ } else if (prevProps.aspect !== this.props.aspect) {
29701
+ this.computeSizes();
29702
+ } else if (prevProps.objectFit !== this.props.objectFit) {
29703
+ this.computeSizes();
29704
+ } else if (prevProps.zoom !== this.props.zoom) {
29705
+ this.recomputeCropPosition();
29706
+ } else if (((_a = prevProps.cropSize) === null || _a === void 0 ? void 0 : _a.height) !== ((_b = this.props.cropSize) === null || _b === void 0 ? void 0 : _b.height) || ((_c = prevProps.cropSize) === null || _c === void 0 ? void 0 : _c.width) !== ((_d = this.props.cropSize) === null || _d === void 0 ? void 0 : _d.width)) {
29707
+ this.computeSizes();
29708
+ } else if (((_e = prevProps.crop) === null || _e === void 0 ? void 0 : _e.x) !== ((_f = this.props.crop) === null || _f === void 0 ? void 0 : _f.x) || ((_g = prevProps.crop) === null || _g === void 0 ? void 0 : _g.y) !== ((_h = this.props.crop) === null || _h === void 0 ? void 0 : _h.y)) {
29709
+ this.emitCropAreaChange();
29710
+ }
29711
+ if (prevProps.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef) {
29712
+ this.props.zoomWithScroll ? this.containerRef.addEventListener("wheel", this.onWheel, {
29713
+ passive: false
29714
+ }) : this.clearScrollEvent();
29715
+ }
29716
+ if (prevProps.video !== this.props.video) {
29717
+ (_j = this.videoRef.current) === null || _j === void 0 ? void 0 : _j.load();
29718
+ }
29719
+ var objectFit = this.getObjectFit();
29720
+ if (objectFit !== this.state.mediaObjectFit) {
29721
+ this.setState({
29722
+ mediaObjectFit: objectFit
29723
+ }, this.computeSizes);
29724
+ }
29725
+ };
29726
+ Cropper2.prototype.getAspect = function() {
29727
+ var _a = this.props, cropSize = _a.cropSize, aspect = _a.aspect;
29728
+ if (cropSize) {
29729
+ return cropSize.width / cropSize.height;
29730
+ }
29731
+ return aspect;
29732
+ };
29733
+ Cropper2.prototype.getObjectFit = function() {
29734
+ var _a, _b, _c, _d;
29735
+ if (this.props.objectFit === "cover") {
29736
+ var mediaRef = this.imageRef.current || this.videoRef.current;
29737
+ if (mediaRef && this.containerRef) {
29738
+ this.containerRect = this.containerRef.getBoundingClientRect();
29739
+ var containerAspect = this.containerRect.width / this.containerRect.height;
29740
+ var naturalWidth = ((_a = this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
29741
+ var naturalHeight = ((_c = this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
29742
+ var mediaAspect = naturalWidth / naturalHeight;
29743
+ return mediaAspect < containerAspect ? "horizontal-cover" : "vertical-cover";
29744
+ }
29745
+ return "horizontal-cover";
29746
+ }
29747
+ return this.props.objectFit;
29748
+ };
29749
+ Cropper2.prototype.onPinchStart = function(e) {
29750
+ var pointA = Cropper2.getTouchPoint(e.touches[0]);
29751
+ var pointB = Cropper2.getTouchPoint(e.touches[1]);
29752
+ this.lastPinchDistance = getDistanceBetweenPoints(pointA, pointB);
29753
+ this.lastPinchRotation = getRotationBetweenPoints(pointA, pointB);
29754
+ this.onDragStart(getCenter(pointA, pointB));
29755
+ };
29756
+ Cropper2.prototype.onPinchMove = function(e) {
29757
+ var _this = this;
29758
+ if (!this.currentDoc || !this.currentWindow) return;
29759
+ var pointA = Cropper2.getTouchPoint(e.touches[0]);
29760
+ var pointB = Cropper2.getTouchPoint(e.touches[1]);
29761
+ var center = getCenter(pointA, pointB);
29762
+ this.onDrag(center);
29763
+ if (this.rafPinchTimeout) this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout);
29764
+ this.rafPinchTimeout = this.currentWindow.requestAnimationFrame(function() {
29765
+ var distance = getDistanceBetweenPoints(pointA, pointB);
29766
+ var newZoom = _this.props.zoom * (distance / _this.lastPinchDistance);
29767
+ _this.setNewZoom(newZoom, center, {
29768
+ shouldUpdatePosition: false
29769
+ });
29770
+ _this.lastPinchDistance = distance;
29771
+ var rotation = getRotationBetweenPoints(pointA, pointB);
29772
+ var newRotation = _this.props.rotation + (rotation - _this.lastPinchRotation);
29773
+ _this.props.onRotationChange && _this.props.onRotationChange(newRotation);
29774
+ _this.lastPinchRotation = rotation;
29775
+ });
29776
+ };
29777
+ Cropper2.prototype.render = function() {
29778
+ var _this = this;
29779
+ var _a;
29780
+ var _b = this.props, image = _b.image, video = _b.video, mediaProps = _b.mediaProps, cropperProps = _b.cropperProps, transform = _b.transform, _c = _b.crop, x = _c.x, y = _c.y, rotation = _b.rotation, zoom = _b.zoom, cropShape = _b.cropShape, showGrid = _b.showGrid, roundCropAreaPixels = _b.roundCropAreaPixels, _d = _b.style, containerStyle = _d.containerStyle, cropAreaStyle = _d.cropAreaStyle, mediaStyle = _d.mediaStyle, _e = _b.classes, containerClassName = _e.containerClassName, cropAreaClassName = _e.cropAreaClassName, mediaClassName = _e.mediaClassName;
29781
+ var objectFit = (_a = this.state.mediaObjectFit) !== null && _a !== void 0 ? _a : this.getObjectFit();
29782
+ return React__namespace.createElement("div", {
29783
+ onMouseDown: this.onMouseDown,
29784
+ onTouchStart: this.onTouchStart,
29785
+ ref: function ref(el) {
29786
+ return _this.containerRef = el;
29787
+ },
29788
+ "data-testid": "container",
29789
+ style: containerStyle,
29790
+ className: classNames("reactEasyCrop_Container", containerClassName)
29791
+ }, image ? React__namespace.createElement("img", __assign({
29792
+ alt: "",
29793
+ className: classNames("reactEasyCrop_Image", objectFit === "contain" && "reactEasyCrop_Contain", objectFit === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", objectFit === "vertical-cover" && "reactEasyCrop_Cover_Vertical", mediaClassName)
29794
+ }, mediaProps, {
29795
+ src: image,
29796
+ ref: this.imageRef,
29797
+ style: __assign(__assign({}, mediaStyle), {
29798
+ transform: transform || "translate(".concat(x, "px, ").concat(y, "px) rotate(").concat(rotation, "deg) scale(").concat(zoom, ")")
29799
+ }),
29800
+ onLoad: this.onMediaLoad
29801
+ })) : video && React__namespace.createElement("video", __assign({
29802
+ autoPlay: true,
29803
+ playsInline: true,
29804
+ loop: true,
29805
+ muted: true,
29806
+ className: classNames("reactEasyCrop_Video", objectFit === "contain" && "reactEasyCrop_Contain", objectFit === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", objectFit === "vertical-cover" && "reactEasyCrop_Cover_Vertical", mediaClassName)
29807
+ }, mediaProps, {
29808
+ ref: this.videoRef,
29809
+ onLoadedMetadata: this.onMediaLoad,
29810
+ style: __assign(__assign({}, mediaStyle), {
29811
+ transform: transform || "translate(".concat(x, "px, ").concat(y, "px) rotate(").concat(rotation, "deg) scale(").concat(zoom, ")")
29812
+ }),
29813
+ controls: false
29814
+ }), (Array.isArray(video) ? video : [{
29815
+ src: video
29816
+ }]).map(function(item) {
29817
+ return React__namespace.createElement("source", __assign({
29818
+ key: item.src
29819
+ }, item));
29820
+ })), this.state.cropSize && React__namespace.createElement("div", __assign({
29821
+ ref: this.cropperRef,
29822
+ style: __assign(__assign({}, cropAreaStyle), {
29823
+ width: roundCropAreaPixels ? Math.round(this.state.cropSize.width) : this.state.cropSize.width,
29824
+ height: roundCropAreaPixels ? Math.round(this.state.cropSize.height) : this.state.cropSize.height
29825
+ }),
29826
+ tabIndex: 0,
29827
+ onKeyDown: this.onKeyDown,
29828
+ onKeyUp: this.onKeyUp,
29829
+ "data-testid": "cropper",
29830
+ className: classNames("reactEasyCrop_CropArea", cropShape === "round" && "reactEasyCrop_CropAreaRound", showGrid && "reactEasyCrop_CropAreaGrid", cropAreaClassName)
29831
+ }, cropperProps)));
29832
+ };
29833
+ Cropper2.defaultProps = {
29834
+ zoom: 1,
29835
+ rotation: 0,
29836
+ aspect: 4 / 3,
29837
+ maxZoom: MAX_ZOOM,
29838
+ minZoom: MIN_ZOOM,
29839
+ cropShape: "rect",
29840
+ objectFit: "contain",
29841
+ showGrid: true,
29842
+ style: {},
29843
+ classes: {},
29844
+ mediaProps: {},
29845
+ cropperProps: {},
29846
+ zoomSpeed: 1,
29847
+ restrictPosition: true,
29848
+ zoomWithScroll: true,
29849
+ keyboardStep: KEYBOARD_STEP
29850
+ };
29851
+ Cropper2.getMousePoint = function(e) {
29852
+ return {
29853
+ x: Number(e.clientX),
29854
+ y: Number(e.clientY)
29855
+ };
29856
+ };
29857
+ Cropper2.getTouchPoint = function(touch) {
29858
+ return {
29859
+ x: Number(touch.clientX),
29860
+ y: Number(touch.clientY)
29861
+ };
29862
+ };
29863
+ return Cropper2;
29864
+ })(React__namespace.Component)
29865
+ );
29866
+ async function getCroppedBlob(imageSrc, croppedAreaPixels) {
29867
+ return new Promise((resolve, reject) => {
29868
+ const image = new Image();
29869
+ image.addEventListener("load", () => {
29870
+ const canvas = document.createElement("canvas");
29871
+ canvas.width = croppedAreaPixels.width;
29872
+ canvas.height = croppedAreaPixels.height;
29873
+ const ctx = canvas.getContext("2d");
29874
+ if (!ctx) {
29875
+ reject(new Error("Canvas 2D context unavailable"));
29876
+ return;
29877
+ }
29878
+ ctx.drawImage(
29879
+ image,
29880
+ croppedAreaPixels.x,
29881
+ croppedAreaPixels.y,
29882
+ croppedAreaPixels.width,
29883
+ croppedAreaPixels.height,
29884
+ 0,
29885
+ 0,
29886
+ croppedAreaPixels.width,
29887
+ croppedAreaPixels.height
29888
+ );
29889
+ canvas.toBlob(
29890
+ (blob) => {
29891
+ if (blob) resolve(blob);
29892
+ else reject(new Error("canvas.toBlob returned null"));
29893
+ },
29894
+ "image/jpeg",
29895
+ 0.92
29896
+ );
29897
+ });
29898
+ image.addEventListener("error", () => reject(new Error("Failed to load image for crop")));
29899
+ image.src = imageSrc;
29900
+ });
29901
+ }
29902
+ function PhotoCropModal({
29903
+ opened,
29904
+ file,
29905
+ onConfirm,
29906
+ onClose,
29907
+ onError,
29908
+ aspect = 1,
29909
+ cropShape = "round"
29910
+ }) {
29911
+ const [imageUrl, setImageUrl] = React.useState(null);
29912
+ const [crop, setCrop] = React.useState({ x: 0, y: 0 });
29913
+ const [zoom, setZoom] = React.useState(1);
29914
+ const [croppedAreaPixels, setCroppedAreaPixels] = React.useState(null);
29915
+ const [isConfirming, setIsConfirming] = React.useState(false);
29916
+ React.useEffect(() => {
29917
+ if (!file) {
29918
+ setImageUrl(null);
29919
+ setCrop({ x: 0, y: 0 });
29920
+ setZoom(1);
29921
+ setCroppedAreaPixels(null);
29922
+ return;
29923
+ }
29924
+ const url = URL.createObjectURL(file);
29925
+ setImageUrl(url);
29926
+ setCrop({ x: 0, y: 0 });
29927
+ setZoom(1);
29928
+ setCroppedAreaPixels(null);
29929
+ return () => URL.revokeObjectURL(url);
29930
+ }, [file]);
29931
+ const onCropComplete = React.useCallback((_croppedArea, pixels) => {
29932
+ setCroppedAreaPixels(pixels);
29933
+ }, []);
29934
+ const handleConfirm = async () => {
29935
+ if (!imageUrl || !croppedAreaPixels || isConfirming) return;
29936
+ setIsConfirming(true);
29937
+ try {
29938
+ let blob;
29939
+ try {
29940
+ blob = await getCroppedBlob(imageUrl, croppedAreaPixels);
29941
+ } catch (err) {
29942
+ onError?.(err instanceof Error ? err : new Error("Crop failed"));
29943
+ return;
29944
+ }
29945
+ try {
29946
+ await onConfirm(blob);
29947
+ } catch (err) {
29948
+ onError?.(err instanceof Error ? err : new Error("Upload failed"));
29949
+ }
29950
+ } finally {
29951
+ setIsConfirming(false);
29952
+ }
29953
+ };
29954
+ return /* @__PURE__ */ jsxRuntime.jsx(Modal, { opened, onClose, title: "Adjust photo", size: "md", children: /* @__PURE__ */ jsxRuntime.jsxs(Stack, { gap: "md", children: [
29955
+ /* @__PURE__ */ jsxRuntime.jsx(
29956
+ Box,
29957
+ {
29958
+ style: {
29959
+ position: "relative",
29960
+ height: 320,
29961
+ borderRadius: radii.md,
29962
+ overflow: "hidden",
29963
+ background: neutralColors[900]
29964
+ },
29965
+ children: imageUrl && /* @__PURE__ */ jsxRuntime.jsx(
29966
+ Cropper,
29967
+ {
29968
+ image: imageUrl,
29969
+ crop,
29970
+ zoom,
29971
+ aspect,
29972
+ cropShape,
29973
+ showGrid: false,
29974
+ onCropChange: setCrop,
29975
+ onCropComplete,
29976
+ onZoomChange: setZoom,
29977
+ mediaProps: {
29978
+ onError: () => {
29979
+ onError?.(new Error("Failed to load image preview"));
29980
+ setImageUrl(null);
29981
+ setCrop({ x: 0, y: 0 });
29982
+ setZoom(1);
29983
+ setCroppedAreaPixels(null);
29984
+ }
29985
+ }
29986
+ }
29987
+ )
29988
+ }
29989
+ ),
29990
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "xs", c: "dimmed", ta: "center", children: "Drag to reposition · Scroll or pinch to zoom" }),
29991
+ /* @__PURE__ */ jsxRuntime.jsxs(Group, { justify: "flex-end", gap: "xs", children: [
29992
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "subtle", color: "gray", onClick: onClose, disabled: isConfirming, children: "Cancel" }),
29993
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: handleConfirm, loading: isConfirming, disabled: !croppedAreaPixels, children: "Apply" })
29994
+ ] })
29995
+ ] }) });
29996
+ }
28659
29997
  function SearchInput({
28660
29998
  value,
28661
29999
  onChange,
@@ -28736,32 +30074,24 @@ function StatCard({
28736
30074
  trend,
28737
30075
  ...rest
28738
30076
  }) {
28739
- return /* @__PURE__ */ jsxRuntime.jsx(
28740
- Card,
28741
- {
28742
- bg: `${color}.0`,
28743
- style: { border: `1px solid var(--mantine-color-${color}-2)` },
28744
- ...rest,
28745
- children: /* @__PURE__ */ jsxRuntime.jsxs(Group, { justify: "space-between", align: "flex-start", children: [
28746
- /* @__PURE__ */ jsxRuntime.jsxs(Stack, { gap: 4, children: [
28747
- /* @__PURE__ */ jsxRuntime.jsx(
28748
- Text,
28749
- {
28750
- size: "xs",
28751
- fw: 600,
28752
- tt: "uppercase",
28753
- c: `${color}.6`,
28754
- style: { letterSpacing: "0.05em" },
28755
- children: label
28756
- }
28757
- ),
28758
- /* @__PURE__ */ jsxRuntime.jsx(Text, { fw: 700, size: "xl", lh: 1, children: value }),
28759
- trend && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "xs", c: "dimmed", children: trend })
28760
- ] }),
28761
- icon && /* @__PURE__ */ jsxRuntime.jsx(Box, { c: `${color}.5`, fz: "1.5rem", children: icon })
28762
- ] })
28763
- }
28764
- );
30077
+ return /* @__PURE__ */ jsxRuntime.jsx(Card, { bg: `${color}.0`, bd: `1px solid ${color}.2`, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Group, { justify: "space-between", align: "flex-start", children: [
30078
+ /* @__PURE__ */ jsxRuntime.jsxs(Stack, { gap: 4, children: [
30079
+ /* @__PURE__ */ jsxRuntime.jsx(
30080
+ Text,
30081
+ {
30082
+ size: "xs",
30083
+ fw: 600,
30084
+ tt: "uppercase",
30085
+ c: `${color}.6`,
30086
+ style: { letterSpacing: "0.05em" },
30087
+ children: label
30088
+ }
30089
+ ),
30090
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { fw: 700, size: "xl", lh: 1, children: value }),
30091
+ trend && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "xs", c: "dimmed", children: trend })
30092
+ ] }),
30093
+ icon && /* @__PURE__ */ jsxRuntime.jsx(Box, { c: `${color}.5`, fz: "1.5rem", children: icon })
30094
+ ] }) });
28765
30095
  }
28766
30096
  const DEFAULT_COLOR_MAP = {
28767
30097
  active: colors.success,
@@ -28807,7 +30137,7 @@ function LoadingSpinner({ size: size2 = 32 }) {
28807
30137
  "svg",
28808
30138
  {
28809
30139
  ...iconProps,
28810
- stroke: "var(--mantine-color-gray-3)",
30140
+ stroke: neutralColors[300],
28811
30141
  style: { position: "absolute", inset: 0 },
28812
30142
  "aria-hidden": "true",
28813
30143
  children: paths
@@ -28817,7 +30147,7 @@ function LoadingSpinner({ size: size2 = 32 }) {
28817
30147
  "svg",
28818
30148
  {
28819
30149
  ...iconProps,
28820
- stroke: "var(--mantine-color-indigo-5)",
30150
+ stroke: brandColors.indigo,
28821
30151
  style: { position: "absolute", inset: 0, animation: "fillUp 1.4s ease-in-out infinite" },
28822
30152
  "aria-hidden": "true",
28823
30153
  children: paths
@@ -28868,14 +30198,14 @@ function SideNav({ items, onItemClick, color = "indigo" }) {
28868
30198
  onClick: () => onItemClick(item.id),
28869
30199
  color,
28870
30200
  variant: "light",
28871
- style: { borderRadius: "var(--mantine-radius-md)" },
30201
+ style: { borderRadius: radii.md },
28872
30202
  styles: {
28873
30203
  root: {
28874
- color: item.active ? void 0 : "var(--mantine-color-gray-5)",
30204
+ color: item.active ? void 0 : neutralColors[500],
28875
30205
  fontWeight: item.active ? 500 : 400
28876
30206
  },
28877
30207
  section: {
28878
- color: item.active ? void 0 : "var(--mantine-color-gray-4)"
30208
+ color: item.active ? void 0 : neutralColors[400]
28879
30209
  }
28880
30210
  }
28881
30211
  },
@@ -28992,6 +30322,43 @@ function InvestmentCard({
28992
30322
  }
28993
30323
  );
28994
30324
  }
30325
+ function DefaultPencilIcon() {
30326
+ return /* @__PURE__ */ jsxRuntime.jsx(
30327
+ "svg",
30328
+ {
30329
+ width: "12",
30330
+ height: "12",
30331
+ viewBox: "0 0 24 24",
30332
+ fill: "none",
30333
+ stroke: "currentColor",
30334
+ strokeWidth: "2",
30335
+ strokeLinecap: "round",
30336
+ strokeLinejoin: "round",
30337
+ "aria-hidden": "true",
30338
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
30339
+ }
30340
+ );
30341
+ }
30342
+ function DefaultCameraIcon() {
30343
+ return /* @__PURE__ */ jsxRuntime.jsxs(
30344
+ "svg",
30345
+ {
30346
+ width: "18",
30347
+ height: "18",
30348
+ viewBox: "0 0 24 24",
30349
+ fill: "none",
30350
+ stroke: "white",
30351
+ strokeWidth: "2",
30352
+ strokeLinecap: "round",
30353
+ strokeLinejoin: "round",
30354
+ "aria-hidden": "true",
30355
+ children: [
30356
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" }),
30357
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "13", r: "4" })
30358
+ ]
30359
+ }
30360
+ );
30361
+ }
28995
30362
  function formatMemberSince(iso) {
28996
30363
  const date = new Date(iso);
28997
30364
  if (Number.isNaN(date.getTime())) return null;
@@ -29004,16 +30371,97 @@ function InvestorProfileCard({
29004
30371
  verificationStatus,
29005
30372
  memberSince,
29006
30373
  subtitle,
29007
- children
30374
+ children,
30375
+ onEditName,
30376
+ onUploadPhoto,
30377
+ photoUploading,
30378
+ editNameIcon,
30379
+ uploadPhotoIcon
29008
30380
  }) {
29009
30381
  const memberSinceText = memberSince ? formatMemberSince(memberSince) : null;
30382
+ const [isAvatarHovered, setIsAvatarHovered] = React.useState(false);
30383
+ const [isAvatarFocused, setIsAvatarFocused] = React.useState(false);
30384
+ const displayName = name?.trim() || "Add your name";
30385
+ const avatarEl = /* @__PURE__ */ jsxRuntime.jsx(
30386
+ Avatar,
30387
+ {
30388
+ src: avatarUrl,
30389
+ alt: displayName,
30390
+ radius: "md",
30391
+ size: 56,
30392
+ color: getAvatarColor(displayName),
30393
+ children: displayName.charAt(0).toUpperCase()
30394
+ }
30395
+ );
29010
30396
  return /* @__PURE__ */ jsxRuntime.jsxs(Stack, { gap: "md", children: [
29011
30397
  /* @__PURE__ */ jsxRuntime.jsxs(Group, { gap: "md", wrap: "nowrap", children: [
29012
- /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: avatarUrl, alt: name, radius: "md", size: 56, color: getAvatarColor(name), children: name.charAt(0).toUpperCase() }),
30398
+ onUploadPhoto ? /* @__PURE__ */ jsxRuntime.jsxs(
30399
+ Box,
30400
+ {
30401
+ component: "button",
30402
+ type: "button",
30403
+ onClick: onUploadPhoto,
30404
+ onMouseEnter: () => setIsAvatarHovered(true),
30405
+ onMouseLeave: () => setIsAvatarHovered(false),
30406
+ onFocus: () => setIsAvatarFocused(true),
30407
+ onBlur: () => setIsAvatarFocused(false),
30408
+ "aria-label": "Upload profile photo",
30409
+ disabled: !!photoUploading,
30410
+ style: {
30411
+ position: "relative",
30412
+ display: "inline-block",
30413
+ cursor: photoUploading ? "not-allowed" : "pointer",
30414
+ background: "none",
30415
+ border: "none",
30416
+ padding: 0,
30417
+ borderRadius: radii.md,
30418
+ flexShrink: 0
30419
+ },
30420
+ children: [
30421
+ avatarEl,
30422
+ photoUploading ? /* @__PURE__ */ jsxRuntime.jsx(
30423
+ Box,
30424
+ {
30425
+ "data-testid": "photo-uploading-overlay",
30426
+ "aria-label": "Uploading photo",
30427
+ role: "status",
30428
+ style: {
30429
+ position: "absolute",
30430
+ inset: 0,
30431
+ borderRadius: radii.md,
30432
+ backgroundColor: `${neutralColors[900]}80`,
30433
+ display: "flex",
30434
+ alignItems: "center",
30435
+ justifyContent: "center"
30436
+ },
30437
+ children: /* @__PURE__ */ jsxRuntime.jsx(Loader, { size: "xs", color: "white" })
30438
+ }
30439
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
30440
+ Box,
30441
+ {
30442
+ style: {
30443
+ position: "absolute",
30444
+ inset: 0,
30445
+ borderRadius: radii.md,
30446
+ backgroundColor: `${neutralColors[900]}73`,
30447
+ display: "flex",
30448
+ alignItems: "center",
30449
+ justifyContent: "center",
30450
+ opacity: isAvatarHovered || isAvatarFocused ? 1 : 0,
30451
+ transition: "opacity 150ms ease",
30452
+ pointerEvents: "none"
30453
+ },
30454
+ children: uploadPhotoIcon ?? /* @__PURE__ */ jsxRuntime.jsx(DefaultCameraIcon, {})
30455
+ }
30456
+ )
30457
+ ]
30458
+ }
30459
+ ) : avatarEl,
29013
30460
  /* @__PURE__ */ jsxRuntime.jsxs(Stack, { gap: 2, children: [
29014
- /* @__PURE__ */ jsxRuntime.jsxs(Group, { gap: "xs", wrap: "nowrap", children: [
29015
- /* @__PURE__ */ jsxRuntime.jsx(Text, { fw: 600, size: "md", children: name }),
29016
- verificationStatus && /* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { status: verificationStatus, size: "xs" })
30461
+ /* @__PURE__ */ jsxRuntime.jsxs(Group, { gap: "xs", wrap: "nowrap", align: "center", children: [
30462
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { fw: 600, size: "md", children: displayName }),
30463
+ verificationStatus && /* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { status: verificationStatus, size: "xs" }),
30464
+ onEditName && /* @__PURE__ */ jsxRuntime.jsx(ActionIcon, { variant: "subtle", size: "sm", onClick: onEditName, "aria-label": "Edit name", children: editNameIcon ?? /* @__PURE__ */ jsxRuntime.jsx(DefaultPencilIcon, {}) })
29017
30465
  ] }),
29018
30466
  email && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "sm", c: `${colors.neutral}.5`, children: email }),
29019
30467
  memberSinceText && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "xs", c: `${colors.neutral}.4`, children: memberSinceText }),
@@ -29111,8 +30559,8 @@ function WalletList({
29111
30559
  justify: "space-between",
29112
30560
  p: "xs",
29113
30561
  style: {
29114
- borderRadius: "var(--mantine-radius-sm)",
29115
- border: "1px solid var(--mantine-color-default-border)"
30562
+ borderRadius: radii.sm,
30563
+ border: `1px solid ${neutralColors[200]}`
29116
30564
  },
29117
30565
  children: [
29118
30566
  /* @__PURE__ */ jsxRuntime.jsxs(Group, { gap: "xs", children: [
@@ -29284,6 +30732,7 @@ exports.Group = Group;
29284
30732
  exports.InvestmentCard = InvestmentCard;
29285
30733
  exports.InvestorProfileCard = InvestorProfileCard;
29286
30734
  exports.ListRow = ListRow;
30735
+ exports.Loader = Loader;
29287
30736
  exports.LoadingSpinner = LoadingSpinner;
29288
30737
  exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT;
29289
30738
  exports.Menu = Menu;
@@ -29299,6 +30748,7 @@ exports.PasswordField = PasswordField;
29299
30748
  exports.PasswordInput = PasswordInput;
29300
30749
  exports.Percent = Percent;
29301
30750
  exports.PhoneField = PhoneField;
30751
+ exports.PhotoCropModal = PhotoCropModal;
29302
30752
  exports.PinInput = PinInput;
29303
30753
  exports.Progress = Progress;
29304
30754
  exports.ScrollArea = ScrollArea;
@@ -29320,6 +30770,8 @@ exports.TextInput = TextInput;
29320
30770
  exports.ThemeIcon = ThemeIcon;
29321
30771
  exports.Title = Title;
29322
30772
  exports.Tooltip = Tooltip;
30773
+ exports.USStateField = USStateField;
30774
+ exports.US_STATES = US_STATES;
29323
30775
  exports.UnstyledButton = UnstyledButton;
29324
30776
  exports.UserMenu = UserMenu;
29325
30777
  exports.WalletList = WalletList;
@@ -29342,6 +30794,7 @@ exports.neutralColors = neutralColors;
29342
30794
  exports.notify = notify;
29343
30795
  exports.passwordSchema = passwordSchema;
29344
30796
  exports.phoneSchema = phoneSchema;
30797
+ exports.radii = radii;
29345
30798
  exports.semanticColors = semanticColors;
29346
30799
  exports.theme = theme;
29347
30800
  exports.truncateAddress = truncateAddress;