@firecms/ui 3.2.0 → 3.3.0-canary.451aa49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -23,7 +23,6 @@ import * as SeparatorPrimitive from "@radix-ui/react-separator";
23
23
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
24
24
  import * as SelectPrimitive from "@radix-ui/react-select";
25
25
  import * as SliderPrimitive from "@radix-ui/react-slider";
26
- import * as ReactDOM from "react-dom";
27
26
  import * as TabsPrimitive from "@radix-ui/react-tabs";
28
27
  const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
29
28
  const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-surface-accent-100 focus:dark:bg-surface-800 focus:dark:bg-opacity-60 focus:bg-surface-accent-100/70 dark:focus:bg-surface-800/60";
@@ -812,6 +811,7 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
812
811
  className,
813
812
  fullWidth = true,
814
813
  inputClassName,
814
+ switchAdornment,
815
815
  ...props
816
816
  }) {
817
817
  const ref = React__default.useRef(null);
@@ -837,6 +837,7 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
837
837
  }
838
838
  }, children: [
839
839
  /* @__PURE__ */ jsx(BooleanSwitch, { value, ref: refInput, size, className: cls(invisible && focus ? focusedClasses : "", inputClassName), disabled, ...props }),
840
+ switchAdornment,
840
841
  /* @__PURE__ */ jsx("div", { className: cls("flex-grow", position === "end" ? "mr-4" : "ml-4", size === "small" || size === "smallest" ? "text-sm" : "text-base"), children: label })
841
842
  ] });
842
843
  };
@@ -853,18 +854,29 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
853
854
  let t5;
854
855
  let t6;
855
856
  if ($[0] !== t0) {
856
- ({
857
- children,
858
- className,
859
- variant: t1,
860
- disabled: t2,
861
- size: t3,
862
- startIcon: t4,
863
- fullWidth: t5,
864
- component: Component,
865
- color: t6,
866
- ...props
867
- } = t0);
857
+ const {
858
+ children: t72,
859
+ className: t82,
860
+ variant: t92,
861
+ disabled: t102,
862
+ size: t112,
863
+ startIcon: t122,
864
+ fullWidth: t132,
865
+ component: t142,
866
+ color: t152,
867
+ loading,
868
+ ...t162
869
+ } = t0;
870
+ children = t72;
871
+ className = t82;
872
+ t1 = t92;
873
+ t2 = t102;
874
+ t3 = t112;
875
+ t4 = t122;
876
+ t5 = t132;
877
+ Component = t142;
878
+ t6 = t152;
879
+ props = t162;
868
880
  $[0] = t0;
869
881
  $[1] = Component;
870
882
  $[2] = children;
@@ -942,7 +954,7 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
942
954
  "text-text-disabled dark:text-text-disabled-dark": disabled,
943
955
  "border border-transparent opacity-50": t23,
944
956
  "border border-surface-500 opacity-50": t24,
945
- "border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40 bg-surface-300/40 dark:bg-surface-500/40": t25
957
+ "border border-transparent bg-surface-300 dark:bg-surface-500 opacity-70 bg-surface-300/70 dark:bg-surface-500/70": t25
946
958
  });
947
959
  const sizeClasses2 = cls({
948
960
  "py-1 px-2": size === "small",
@@ -1408,6 +1420,50 @@ function HandleIcon() {
1408
1420
  }
1409
1421
  return t0;
1410
1422
  }
1423
+ const sizeMap = {
1424
+ smallest: 16,
1425
+ small: 20,
1426
+ medium: 24,
1427
+ large: 28
1428
+ };
1429
+ function FirestoreIcon(props) {
1430
+ const $ = c(7);
1431
+ const s = typeof props.size === "number" ? props.size : sizeMap[props.size ?? "medium"] ?? 24;
1432
+ let t0;
1433
+ let t1;
1434
+ let t2;
1435
+ let t3;
1436
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1437
+ t0 = /* @__PURE__ */ jsx("path", { d: "M22.575 87.933A52.16 52.16 0 0034.787 90.513c5.84.204 11.395-1.004 16.359-3.298a70.68 70.68 0 01-15.948-10.013c-2.98 4.778-7.393 8.548-12.623 10.731z", opacity: ".7" });
1438
+ t1 = /* @__PURE__ */ jsx("path", { d: "M35.2 77.205c-10.505-9.714-16.878-23.776-16.339-39.2.018-.499.045-1.001.075-1.5a39.51 39.51 0 00-5.866-.855 38.77 38.77 0 00-8.34.997A53.07 53.07 0 00.022 53.236c-.544 15.58 8.884 29.191 22.553 34.697 5.23-2.18 9.642-5.948 12.625-10.728z", opacity: ".6" });
1439
+ t2 = /* @__PURE__ */ jsx("path", { d: "M35.2 77.205a31.63 31.63 0 004.096-13.428c.452-12.985-8.278-24.155-20.36-27.273-.03.5-.058 1.002-.076 1.502-.536 15.421 5.835 29.483 16.34 39.199z", opacity: ".7" });
1440
+ t3 = /* @__PURE__ */ jsx("path", { d: "M37.944 0a73.99 73.99 0 00-15.603 21.156 72.82 72.82 0 00-3.41 15.349c12.082 3.117 20.812 14.288 20.36 27.275a31.58 31.58 0 01-4.098 13.425 70.76 70.76 0 0015.948 10.013c11.951-5.523 20.43-17.41 20.919-31.467.318-9.11-3.181-17.228-8.126-24.081C58.711 24.424 37.944 0 37.944 0z" });
1441
+ $[0] = t0;
1442
+ $[1] = t1;
1443
+ $[2] = t2;
1444
+ $[3] = t3;
1445
+ } else {
1446
+ t0 = $[0];
1447
+ t1 = $[1];
1448
+ t2 = $[2];
1449
+ t3 = $[3];
1450
+ }
1451
+ let t4;
1452
+ if ($[4] !== props.className || $[5] !== s) {
1453
+ t4 = /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: props.className, fill: "currentColor", width: s, height: s, viewBox: "0 0 73 91", children: [
1454
+ t0,
1455
+ t1,
1456
+ t2,
1457
+ t3
1458
+ ] });
1459
+ $[4] = props.className;
1460
+ $[5] = s;
1461
+ $[6] = t4;
1462
+ } else {
1463
+ t4 = $[6];
1464
+ }
1465
+ return t4;
1466
+ }
1411
1467
  const _10kIcon = React__default.forwardRef((props, ref) => {
1412
1468
  const $ = c(3);
1413
1469
  let t0;
@@ -8674,6 +8730,20 @@ const DatasetLinkedIcon = React__default.forwardRef((props, ref) => {
8674
8730
  return t0;
8675
8731
  });
8676
8732
  DatasetLinkedIcon.displayName = "DatasetLinkedIcon";
8733
+ const DatabaseIcon = React__default.forwardRef((props, ref) => {
8734
+ const $ = c(3);
8735
+ let t0;
8736
+ if ($[0] !== props || $[1] !== ref) {
8737
+ t0 = /* @__PURE__ */ jsx(Icon, { ...props, iconKey: "database", ref });
8738
+ $[0] = props;
8739
+ $[1] = ref;
8740
+ $[2] = t0;
8741
+ } else {
8742
+ t0 = $[2];
8743
+ }
8744
+ return t0;
8745
+ });
8746
+ DatabaseIcon.displayName = "DatabaseIcon";
8677
8747
  const DateRangeIcon = React__default.forwardRef((props, ref) => {
8678
8748
  const $ = c(3);
8679
8749
  let t0;
@@ -32284,8 +32354,8 @@ const sizeClassNames = {
32284
32354
  medium: "px-3 py-1 text-sm",
32285
32355
  large: "px-4 py-1.5 text-sm"
32286
32356
  };
32287
- function Chip(t0) {
32288
- const $ = c(18);
32357
+ const Chip = React__default.forwardRef(function Chip2(t0, ref) {
32358
+ const $ = c(19);
32289
32359
  const {
32290
32360
  children,
32291
32361
  colorScheme,
@@ -32340,128 +32410,184 @@ function Chip(t0) {
32340
32410
  t10 = $[11];
32341
32411
  }
32342
32412
  let t11;
32343
- if ($[12] !== children || $[13] !== icon || $[14] !== onClick || $[15] !== t10 || $[16] !== t7) {
32344
- t11 = /* @__PURE__ */ jsxs("div", { className: t7, onClick, style: t10, children: [
32413
+ if ($[12] !== children || $[13] !== icon || $[14] !== onClick || $[15] !== ref || $[16] !== t10 || $[17] !== t7) {
32414
+ t11 = /* @__PURE__ */ jsxs("div", { ref, className: t7, onClick, style: t10, children: [
32345
32415
  children,
32346
32416
  icon
32347
32417
  ] });
32348
32418
  $[12] = children;
32349
32419
  $[13] = icon;
32350
32420
  $[14] = onClick;
32351
- $[15] = t10;
32352
- $[16] = t7;
32353
- $[17] = t11;
32421
+ $[15] = ref;
32422
+ $[16] = t10;
32423
+ $[17] = t7;
32424
+ $[18] = t11;
32354
32425
  } else {
32355
- t11 = $[17];
32426
+ t11 = $[18];
32356
32427
  }
32357
32428
  return t11;
32358
- }
32359
- const Tooltip = (t0) => {
32360
- const $ = c(28);
32361
- const {
32362
- open,
32363
- defaultOpen,
32364
- side: t1,
32365
- delayDuration: t2,
32366
- sideOffset,
32367
- align,
32368
- onOpenChange,
32369
- title,
32370
- tooltipClassName,
32371
- tooltipStyle,
32372
- children,
32373
- asChild: t3,
32374
- container,
32375
- className,
32376
- style
32377
- } = t0;
32429
+ });
32430
+ const Tooltip = React__default.forwardRef((t0, ref) => {
32431
+ const $ = c(47);
32432
+ let align;
32433
+ let children;
32434
+ let className;
32435
+ let container;
32436
+ let defaultOpen;
32437
+ let onOpenChange;
32438
+ let open;
32439
+ let props;
32440
+ let sideOffset;
32441
+ let style;
32442
+ let t1;
32443
+ let t2;
32444
+ let t3;
32445
+ let title;
32446
+ let tooltipClassName;
32447
+ let tooltipStyle;
32448
+ if ($[0] !== t0) {
32449
+ ({
32450
+ open,
32451
+ defaultOpen,
32452
+ side: t1,
32453
+ delayDuration: t2,
32454
+ sideOffset,
32455
+ align,
32456
+ onOpenChange,
32457
+ title,
32458
+ tooltipClassName,
32459
+ tooltipStyle,
32460
+ children,
32461
+ asChild: t3,
32462
+ container,
32463
+ className,
32464
+ style,
32465
+ ...props
32466
+ } = t0);
32467
+ $[0] = t0;
32468
+ $[1] = align;
32469
+ $[2] = children;
32470
+ $[3] = className;
32471
+ $[4] = container;
32472
+ $[5] = defaultOpen;
32473
+ $[6] = onOpenChange;
32474
+ $[7] = open;
32475
+ $[8] = props;
32476
+ $[9] = sideOffset;
32477
+ $[10] = style;
32478
+ $[11] = t1;
32479
+ $[12] = t2;
32480
+ $[13] = t3;
32481
+ $[14] = title;
32482
+ $[15] = tooltipClassName;
32483
+ $[16] = tooltipStyle;
32484
+ } else {
32485
+ align = $[1];
32486
+ children = $[2];
32487
+ className = $[3];
32488
+ container = $[4];
32489
+ defaultOpen = $[5];
32490
+ onOpenChange = $[6];
32491
+ open = $[7];
32492
+ props = $[8];
32493
+ sideOffset = $[9];
32494
+ style = $[10];
32495
+ t1 = $[11];
32496
+ t2 = $[12];
32497
+ t3 = $[13];
32498
+ title = $[14];
32499
+ tooltipClassName = $[15];
32500
+ tooltipStyle = $[16];
32501
+ }
32378
32502
  const side = t1 === void 0 ? "bottom" : t1;
32379
32503
  const delayDuration = t2 === void 0 ? 200 : t2;
32380
32504
  const asChild = t3 === void 0 ? false : t3;
32381
- useInjectStyles("Tooltip", styles$1);
32505
+ useInjectStyles("Tooltip", styles);
32382
32506
  const contextContainer = usePortalContainer();
32383
32507
  const finalContainer = container ?? contextContainer ?? void 0;
32384
32508
  if (!title) {
32385
32509
  let t42;
32386
- if ($[0] !== children) {
32510
+ if ($[17] !== children) {
32387
32511
  t42 = /* @__PURE__ */ jsx(Fragment, { children });
32388
- $[0] = children;
32389
- $[1] = t42;
32512
+ $[17] = children;
32513
+ $[18] = t42;
32390
32514
  } else {
32391
- t42 = $[1];
32515
+ t42 = $[18];
32392
32516
  }
32393
32517
  return t42;
32394
32518
  }
32395
32519
  let t4;
32396
- if ($[2] !== asChild || $[3] !== children || $[4] !== className || $[5] !== style) {
32397
- t4 = asChild ? /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children }) : /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { style, className, children }) });
32398
- $[2] = asChild;
32399
- $[3] = children;
32400
- $[4] = className;
32401
- $[5] = style;
32402
- $[6] = t4;
32403
- } else {
32404
- t4 = $[6];
32520
+ if ($[19] !== asChild || $[20] !== children || $[21] !== className || $[22] !== props || $[23] !== ref || $[24] !== style) {
32521
+ t4 = asChild ? /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children }) : /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { style, className, ref, ...props, children }) });
32522
+ $[19] = asChild;
32523
+ $[20] = children;
32524
+ $[21] = className;
32525
+ $[22] = props;
32526
+ $[23] = ref;
32527
+ $[24] = style;
32528
+ $[25] = t4;
32529
+ } else {
32530
+ t4 = $[25];
32405
32531
  }
32406
32532
  const trigger = t4;
32407
32533
  let t5;
32408
- if ($[7] !== tooltipClassName) {
32534
+ if ($[26] !== tooltipClassName) {
32409
32535
  t5 = cls("TooltipContent", "max-w-lg leading-relaxed", "z-50 rounded px-3 py-2 text-xs leading-none bg-surface-accent-700 dark:bg-surface-accent-800 bg-opacity-90 bg-surface-accent-700/90 dark:bg-surface-accent-800/90 font-medium text-surface-accent-50 shadow-2xl select-none duration-400 ease-in transform opacity-100", tooltipClassName);
32410
- $[7] = tooltipClassName;
32411
- $[8] = t5;
32536
+ $[26] = tooltipClassName;
32537
+ $[27] = t5;
32412
32538
  } else {
32413
- t5 = $[8];
32539
+ t5 = $[27];
32414
32540
  }
32415
32541
  const t6 = sideOffset === void 0 ? 4 : sideOffset;
32416
32542
  let t7;
32417
- if ($[9] !== align || $[10] !== side || $[11] !== t5 || $[12] !== t6 || $[13] !== title || $[14] !== tooltipStyle) {
32543
+ if ($[28] !== align || $[29] !== side || $[30] !== t5 || $[31] !== t6 || $[32] !== title || $[33] !== tooltipStyle) {
32418
32544
  t7 = /* @__PURE__ */ jsx(TooltipPrimitive.Content, { className: t5, style: tooltipStyle, sideOffset: t6, align, side, children: title });
32419
- $[9] = align;
32420
- $[10] = side;
32421
- $[11] = t5;
32422
- $[12] = t6;
32423
- $[13] = title;
32424
- $[14] = tooltipStyle;
32425
- $[15] = t7;
32545
+ $[28] = align;
32546
+ $[29] = side;
32547
+ $[30] = t5;
32548
+ $[31] = t6;
32549
+ $[32] = title;
32550
+ $[33] = tooltipStyle;
32551
+ $[34] = t7;
32426
32552
  } else {
32427
- t7 = $[15];
32553
+ t7 = $[34];
32428
32554
  }
32429
32555
  let t8;
32430
- if ($[16] !== finalContainer || $[17] !== t7) {
32556
+ if ($[35] !== finalContainer || $[36] !== t7) {
32431
32557
  t8 = /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { container: finalContainer, children: t7 });
32432
- $[16] = finalContainer;
32433
- $[17] = t7;
32434
- $[18] = t8;
32558
+ $[35] = finalContainer;
32559
+ $[36] = t7;
32560
+ $[37] = t8;
32435
32561
  } else {
32436
- t8 = $[18];
32562
+ t8 = $[37];
32437
32563
  }
32438
32564
  let t9;
32439
- if ($[19] !== defaultOpen || $[20] !== onOpenChange || $[21] !== open || $[22] !== t8 || $[23] !== trigger) {
32565
+ if ($[38] !== defaultOpen || $[39] !== onOpenChange || $[40] !== open || $[41] !== t8 || $[42] !== trigger) {
32440
32566
  t9 = /* @__PURE__ */ jsxs(TooltipPrimitive.Root, { open, onOpenChange, defaultOpen, children: [
32441
32567
  trigger,
32442
32568
  t8
32443
32569
  ] });
32444
- $[19] = defaultOpen;
32445
- $[20] = onOpenChange;
32446
- $[21] = open;
32447
- $[22] = t8;
32448
- $[23] = trigger;
32449
- $[24] = t9;
32570
+ $[38] = defaultOpen;
32571
+ $[39] = onOpenChange;
32572
+ $[40] = open;
32573
+ $[41] = t8;
32574
+ $[42] = trigger;
32575
+ $[43] = t9;
32450
32576
  } else {
32451
- t9 = $[24];
32577
+ t9 = $[43];
32452
32578
  }
32453
32579
  let t10;
32454
- if ($[25] !== delayDuration || $[26] !== t9) {
32580
+ if ($[44] !== delayDuration || $[45] !== t9) {
32455
32581
  t10 = /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, children: t9 });
32456
- $[25] = delayDuration;
32457
- $[26] = t9;
32458
- $[27] = t10;
32582
+ $[44] = delayDuration;
32583
+ $[45] = t9;
32584
+ $[46] = t10;
32459
32585
  } else {
32460
- t10 = $[27];
32586
+ t10 = $[46];
32461
32587
  }
32462
32588
  return t10;
32463
- };
32464
- const styles$1 = `
32589
+ });
32590
+ const styles = `
32465
32591
 
32466
32592
  .TooltipContent {
32467
32593
  animation-duration: 220ms;
@@ -33153,7 +33279,7 @@ const Dialog = (t0) => {
33153
33279
  return () => clearTimeout(timeout);
33154
33280
  } else {
33155
33281
  setDisplayed(true);
33156
- return _temp$3;
33282
+ return _temp$4;
33157
33283
  }
33158
33284
  };
33159
33285
  t7 = [open];
@@ -33300,7 +33426,7 @@ const Dialog = (t0) => {
33300
33426
  }
33301
33427
  return t28;
33302
33428
  };
33303
- function _temp$3() {
33429
+ function _temp$4() {
33304
33430
  }
33305
33431
  function DialogActions(t0) {
33306
33432
  const $ = c(7);
@@ -34830,7 +34956,7 @@ function SelectInputLabel(t0) {
34830
34956
  }
34831
34957
  const MultiSelectContext = React.createContext({});
34832
34958
  const MultiSelect = React.forwardRef((t0, ref) => {
34833
- const $ = c(111);
34959
+ const $ = c(112);
34834
34960
  const {
34835
34961
  value,
34836
34962
  size: t1,
@@ -34851,7 +34977,8 @@ const MultiSelect = React.forwardRef((t0, ref) => {
34851
34977
  renderValues,
34852
34978
  open,
34853
34979
  onOpenChange,
34854
- portalContainer
34980
+ portalContainer,
34981
+ endAdornment
34855
34982
  } = t0;
34856
34983
  const size = t1 === void 0 ? "large" : t1;
34857
34984
  const modalPopover = t2 === void 0 ? true : t2;
@@ -34915,7 +35042,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
34915
35042
  let t12;
34916
35043
  let t13;
34917
35044
  if ($[9] !== children) {
34918
- t13 = children ? Children.map(children, _temp$2)?.filter(Boolean) ?? [] : [];
35045
+ t13 = children ? Children.map(children, _temp$3)?.filter(Boolean) ?? [] : [];
34919
35046
  $[9] = children;
34920
35047
  $[10] = t13;
34921
35048
  } else {
@@ -35116,7 +35243,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
35116
35243
  t30 = $[53];
35117
35244
  }
35118
35245
  let t31;
35119
- if ($[54] !== handleClear || $[55] !== includeClear || $[56] !== isPopoverOpen || $[57] !== optionsMap || $[58] !== placeholder || $[59] !== renderValues || $[60] !== selectedValues || $[61] !== size || $[62] !== toggleOption || $[63] !== useChips) {
35246
+ if ($[54] !== endAdornment || $[55] !== handleClear || $[56] !== includeClear || $[57] !== isPopoverOpen || $[58] !== optionsMap || $[59] !== placeholder || $[60] !== renderValues || $[61] !== selectedValues || $[62] !== size || $[63] !== toggleOption || $[64] !== useChips) {
35120
35247
  t31 = selectedValues.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center w-full", children: [
35121
35248
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5 text-start", children: [
35122
35249
  renderValues && renderValues(selectedValues),
@@ -35135,122 +35262,127 @@ const MultiSelect = React.forwardRef((t0, ref) => {
35135
35262
  })
35136
35263
  ] }),
35137
35264
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
35138
- includeClear && /* @__PURE__ */ jsx(CloseIcon, { className: "ml-4", size: "small", onClick: (event_1) => {
35265
+ includeClear && !endAdornment && /* @__PURE__ */ jsx(CloseIcon, { className: "ml-4", size: "small", onClick: (event_1) => {
35139
35266
  event_1.stopPropagation();
35140
35267
  handleClear();
35141
35268
  } }),
35269
+ endAdornment && /* @__PURE__ */ jsx("div", { className: "ml-4 flex items-center", onClick: _temp2$1, children: endAdornment }),
35142
35270
  /* @__PURE__ */ jsx("div", { className: cls("px-2 h-full flex items-center"), children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: size === "large" ? "medium" : "small", className: cls("transition", isPopoverOpen ? "rotate-180" : "") }) })
35143
35271
  ] })
35144
35272
  ] }) : /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between w-full mx-auto", children: [
35145
35273
  /* @__PURE__ */ jsx("span", { className: "text-sm", children: placeholder }),
35146
- /* @__PURE__ */ jsx("div", { className: cls("px-2 h-full flex items-center"), children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: size === "large" ? "medium" : "small", className: cls("transition", isPopoverOpen ? "rotate-180" : "") }) })
35274
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
35275
+ endAdornment && /* @__PURE__ */ jsx("div", { className: "ml-4 flex items-center", onClick: _temp3, children: endAdornment }),
35276
+ /* @__PURE__ */ jsx("div", { className: cls("px-2 h-full flex items-center"), children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: size === "large" ? "medium" : "small", className: cls("transition", isPopoverOpen ? "rotate-180" : "") }) })
35277
+ ] })
35147
35278
  ] });
35148
- $[54] = handleClear;
35149
- $[55] = includeClear;
35150
- $[56] = isPopoverOpen;
35151
- $[57] = optionsMap;
35152
- $[58] = placeholder;
35153
- $[59] = renderValues;
35154
- $[60] = selectedValues;
35155
- $[61] = size;
35156
- $[62] = toggleOption;
35157
- $[63] = useChips;
35158
- $[64] = t31;
35159
- } else {
35160
- t31 = $[64];
35279
+ $[54] = endAdornment;
35280
+ $[55] = handleClear;
35281
+ $[56] = includeClear;
35282
+ $[57] = isPopoverOpen;
35283
+ $[58] = optionsMap;
35284
+ $[59] = placeholder;
35285
+ $[60] = renderValues;
35286
+ $[61] = selectedValues;
35287
+ $[62] = size;
35288
+ $[63] = toggleOption;
35289
+ $[64] = useChips;
35290
+ $[65] = t31;
35291
+ } else {
35292
+ t31 = $[65];
35161
35293
  }
35162
35294
  let t32;
35163
- if ($[65] !== handleTogglePopover || $[66] !== t25 || $[67] !== t30 || $[68] !== t31) {
35295
+ if ($[66] !== handleTogglePopover || $[67] !== t25 || $[68] !== t30 || $[69] !== t31) {
35164
35296
  t32 = /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("button", { ref: t25, onClick: handleTogglePopover, className: t30, children: t31 }) });
35165
- $[65] = handleTogglePopover;
35166
- $[66] = t25;
35167
- $[67] = t30;
35168
- $[68] = t31;
35169
- $[69] = t32;
35297
+ $[66] = handleTogglePopover;
35298
+ $[67] = t25;
35299
+ $[68] = t30;
35300
+ $[69] = t31;
35301
+ $[70] = t32;
35170
35302
  } else {
35171
- t32 = $[69];
35303
+ t32 = $[70];
35172
35304
  }
35173
35305
  let t33;
35174
- if ($[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
35306
+ if ($[71] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
35175
35307
  t33 = cls("z-50 overflow-hidden border bg-white dark:bg-surface-900 rounded-lg w-[400px]", defaultBorderMixin);
35176
- $[70] = t33;
35308
+ $[71] = t33;
35177
35309
  } else {
35178
- t33 = $[70];
35310
+ t33 = $[71];
35179
35311
  }
35180
35312
  let t34;
35181
- if ($[71] !== onPopoverOpenChange) {
35313
+ if ($[72] !== onPopoverOpenChange) {
35182
35314
  t34 = () => onPopoverOpenChange(false);
35183
- $[71] = onPopoverOpenChange;
35184
- $[72] = t34;
35315
+ $[72] = onPopoverOpenChange;
35316
+ $[73] = t34;
35185
35317
  } else {
35186
- t34 = $[72];
35318
+ t34 = $[73];
35187
35319
  }
35188
35320
  let t35;
35189
- if ($[73] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
35321
+ if ($[74] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
35190
35322
  t35 = cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full m-4 flex-grow text-surface-accent-900 dark:text-white");
35191
- $[73] = t35;
35323
+ $[74] = t35;
35192
35324
  } else {
35193
- t35 = $[73];
35325
+ t35 = $[74];
35194
35326
  }
35195
35327
  let t36;
35196
- if ($[74] !== handleInputKeyDown) {
35328
+ if ($[75] !== handleInputKeyDown) {
35197
35329
  t36 = /* @__PURE__ */ jsx(Command.Input, { className: t35, placeholder: "Search...", onKeyDown: handleInputKeyDown });
35198
- $[74] = handleInputKeyDown;
35199
- $[75] = t36;
35330
+ $[75] = handleInputKeyDown;
35331
+ $[76] = t36;
35200
35332
  } else {
35201
- t36 = $[75];
35333
+ t36 = $[76];
35202
35334
  }
35203
35335
  let t37;
35204
- if ($[76] !== handleClear || $[77] !== selectedValues.length) {
35336
+ if ($[77] !== handleClear || $[78] !== selectedValues.length) {
35205
35337
  t37 = selectedValues.length > 0 && /* @__PURE__ */ jsx("div", { onClick: handleClear, className: "text-sm justify-center cursor-pointer py-3 px-4 text-text-secondary dark:text-text-secondary-dark", children: "Clear" });
35206
- $[76] = handleClear;
35207
- $[77] = selectedValues.length;
35208
- $[78] = t37;
35338
+ $[77] = handleClear;
35339
+ $[78] = selectedValues.length;
35340
+ $[79] = t37;
35209
35341
  } else {
35210
- t37 = $[78];
35342
+ t37 = $[79];
35211
35343
  }
35212
35344
  let t38;
35213
- if ($[79] !== t36 || $[80] !== t37) {
35345
+ if ($[80] !== t36 || $[81] !== t37) {
35214
35346
  t38 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center", children: [
35215
35347
  t36,
35216
35348
  t37
35217
35349
  ] });
35218
- $[79] = t36;
35219
- $[80] = t37;
35220
- $[81] = t38;
35350
+ $[80] = t36;
35351
+ $[81] = t37;
35352
+ $[82] = t38;
35221
35353
  } else {
35222
- t38 = $[81];
35354
+ t38 = $[82];
35223
35355
  }
35224
35356
  let t39;
35225
- if ($[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
35357
+ if ($[83] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
35226
35358
  t39 = /* @__PURE__ */ jsx(Separator, { orientation: "horizontal", className: "my-0" });
35227
- $[82] = t39;
35359
+ $[83] = t39;
35228
35360
  } else {
35229
- t39 = $[82];
35361
+ t39 = $[83];
35230
35362
  }
35231
35363
  let t40;
35232
- if ($[83] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
35364
+ if ($[84] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
35233
35365
  t40 = /* @__PURE__ */ jsx(Command.Empty, { className: "px-4 py-2 text-sm text-text-secondary dark:text-text-secondary-dark", children: "No results found." });
35234
- $[83] = t40;
35366
+ $[84] = t40;
35235
35367
  } else {
35236
- t40 = $[83];
35368
+ t40 = $[84];
35237
35369
  }
35238
35370
  let t41;
35239
- if ($[84] !== allValues.length || $[85] !== includeSelectAll || $[86] !== selectedValues.length || $[87] !== toggleAll) {
35371
+ if ($[85] !== allValues.length || $[86] !== includeSelectAll || $[87] !== selectedValues.length || $[88] !== toggleAll) {
35240
35372
  t41 = includeSelectAll && /* @__PURE__ */ jsxs(Command.Item, { onSelect: toggleAll, className: cls("flex flex-row items-center gap-1.5", "cursor-pointer", "m-1", "ring-offset-transparent", "p-1 rounded aria-[selected=true]:outline-none aria-[selected=true]:ring-2 aria-[selected=true]:ring-primary aria-[selected=true]:ring-opacity-75 aria-[selected=true]:ring-primary/75 aria-[selected=true]:ring-offset-2", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900"), children: [
35241
35373
  /* @__PURE__ */ jsx(InnerCheckBox, { checked: selectedValues.length === allValues.length }),
35242
35374
  /* @__PURE__ */ jsx("span", { className: "text-sm text-text-secondary dark:text-text-secondary-dark", children: "(Select All)" })
35243
35375
  ] }, "all");
35244
- $[84] = allValues.length;
35245
- $[85] = includeSelectAll;
35246
- $[86] = selectedValues.length;
35247
- $[87] = toggleAll;
35248
- $[88] = t41;
35376
+ $[85] = allValues.length;
35377
+ $[86] = includeSelectAll;
35378
+ $[87] = selectedValues.length;
35379
+ $[88] = toggleAll;
35380
+ $[89] = t41;
35249
35381
  } else {
35250
- t41 = $[88];
35382
+ t41 = $[89];
35251
35383
  }
35252
35384
  let t42;
35253
- if ($[89] !== children || $[90] !== t41) {
35385
+ if ($[90] !== children || $[91] !== t41) {
35254
35386
  t42 = /* @__PURE__ */ jsxs(Command.List, { children: [
35255
35387
  t40,
35256
35388
  /* @__PURE__ */ jsxs(Command.Group, { children: [
@@ -35258,70 +35390,70 @@ const MultiSelect = React.forwardRef((t0, ref) => {
35258
35390
  children
35259
35391
  ] })
35260
35392
  ] });
35261
- $[89] = children;
35262
- $[90] = t41;
35263
- $[91] = t42;
35393
+ $[90] = children;
35394
+ $[91] = t41;
35395
+ $[92] = t42;
35264
35396
  } else {
35265
- t42 = $[91];
35397
+ t42 = $[92];
35266
35398
  }
35267
35399
  let t43;
35268
- if ($[92] !== t38 || $[93] !== t42) {
35400
+ if ($[93] !== t38 || $[94] !== t42) {
35269
35401
  t43 = /* @__PURE__ */ jsxs(Command, { children: [
35270
35402
  t38,
35271
35403
  t39,
35272
35404
  t42
35273
35405
  ] });
35274
- $[92] = t38;
35275
- $[93] = t42;
35276
- $[94] = t43;
35406
+ $[93] = t38;
35407
+ $[94] = t42;
35408
+ $[95] = t43;
35277
35409
  } else {
35278
- t43 = $[94];
35410
+ t43 = $[95];
35279
35411
  }
35280
35412
  let t44;
35281
- if ($[95] !== t34 || $[96] !== t43) {
35413
+ if ($[96] !== t34 || $[97] !== t43) {
35282
35414
  t44 = /* @__PURE__ */ jsx(PopoverPrimitive.Content, { className: t33, align: "start", sideOffset: 8, onEscapeKeyDown: t34, children: t43 });
35283
- $[95] = t34;
35284
- $[96] = t43;
35285
- $[97] = t44;
35415
+ $[96] = t34;
35416
+ $[97] = t43;
35417
+ $[98] = t44;
35286
35418
  } else {
35287
- t44 = $[97];
35419
+ t44 = $[98];
35288
35420
  }
35289
35421
  let t45;
35290
- if ($[98] !== finalContainer || $[99] !== t44) {
35422
+ if ($[99] !== finalContainer || $[100] !== t44) {
35291
35423
  t45 = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: finalContainer, children: t44 });
35292
- $[98] = finalContainer;
35293
- $[99] = t44;
35294
- $[100] = t45;
35424
+ $[99] = finalContainer;
35425
+ $[100] = t44;
35426
+ $[101] = t45;
35295
35427
  } else {
35296
- t45 = $[100];
35428
+ t45 = $[101];
35297
35429
  }
35298
35430
  let t46;
35299
- if ($[101] !== modalPopover || $[102] !== onPopoverOpenChange || $[103] !== t24 || $[104] !== t32 || $[105] !== t45) {
35431
+ if ($[102] !== modalPopover || $[103] !== onPopoverOpenChange || $[104] !== t24 || $[105] !== t32 || $[106] !== t45) {
35300
35432
  t46 = /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open: t24, onOpenChange: onPopoverOpenChange, modal: modalPopover, children: [
35301
35433
  t32,
35302
35434
  t45
35303
35435
  ] });
35304
- $[101] = modalPopover;
35305
- $[102] = onPopoverOpenChange;
35306
- $[103] = t24;
35307
- $[104] = t32;
35308
- $[105] = t45;
35309
- $[106] = t46;
35436
+ $[102] = modalPopover;
35437
+ $[103] = onPopoverOpenChange;
35438
+ $[104] = t24;
35439
+ $[105] = t32;
35440
+ $[106] = t45;
35441
+ $[107] = t46;
35310
35442
  } else {
35311
- t46 = $[106];
35443
+ t46 = $[107];
35312
35444
  }
35313
35445
  let t47;
35314
- if ($[107] !== t22 || $[108] !== t23 || $[109] !== t46) {
35446
+ if ($[108] !== t22 || $[109] !== t23 || $[110] !== t46) {
35315
35447
  t47 = /* @__PURE__ */ jsxs(MultiSelectContext.Provider, { value: t22, children: [
35316
35448
  t23,
35317
35449
  t46
35318
35450
  ] });
35319
- $[107] = t22;
35320
- $[108] = t23;
35321
- $[109] = t46;
35322
- $[110] = t47;
35451
+ $[108] = t22;
35452
+ $[109] = t23;
35453
+ $[110] = t46;
35454
+ $[111] = t47;
35323
35455
  } else {
35324
- t47 = $[110];
35456
+ t47 = $[111];
35325
35457
  }
35326
35458
  return t47;
35327
35459
  });
@@ -35398,7 +35530,7 @@ const MultiSelectItem = React.memo(function MultiSelectItem2(t0) {
35398
35530
  }
35399
35531
  let t7;
35400
35532
  if ($[15] !== children || $[16] !== t3 || $[17] !== t5 || $[18] !== t6) {
35401
- t7 = /* @__PURE__ */ jsxs(Command.Item, { onMouseDown: _temp2$1, onSelect: t3, className: t5, children: [
35533
+ t7 = /* @__PURE__ */ jsxs(Command.Item, { onMouseDown: _temp4, onSelect: t3, className: t5, children: [
35402
35534
  t6,
35403
35535
  children
35404
35536
  ] });
@@ -35456,7 +35588,7 @@ const InnerCheckBox = React.memo(function InnerCheckBox2(t0) {
35456
35588
  }
35457
35589
  return t7;
35458
35590
  });
35459
- function _temp$2(child) {
35591
+ function _temp$3(child) {
35460
35592
  if (React.isValidElement(child)) {
35461
35593
  return child.props.value;
35462
35594
  }
@@ -35466,6 +35598,14 @@ function _temp2$1(e) {
35466
35598
  e.preventDefault();
35467
35599
  e.stopPropagation();
35468
35600
  }
35601
+ function _temp3(e_0) {
35602
+ e_0.preventDefault();
35603
+ e_0.stopPropagation();
35604
+ }
35605
+ function _temp4(e) {
35606
+ e.preventDefault();
35607
+ e.stopPropagation();
35608
+ }
35469
35609
  function Paper(t0) {
35470
35610
  const $ = c(6);
35471
35611
  const {
@@ -35574,6 +35714,214 @@ const RadioGroupItem = React.forwardRef((t0, ref) => {
35574
35714
  return t3;
35575
35715
  });
35576
35716
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
35717
+ function ResizablePanels(t0) {
35718
+ const $ = c(40);
35719
+ const {
35720
+ firstPanel,
35721
+ secondPanel,
35722
+ showFirstPanel: t1,
35723
+ showSecondPanel: t2,
35724
+ panelSizePercent,
35725
+ onPanelSizeChange,
35726
+ minPanelSizePx: t3,
35727
+ orientation: t4,
35728
+ className
35729
+ } = t0;
35730
+ const showFirstPanel = t1 === void 0 ? true : t1;
35731
+ const showSecondPanel = t2 === void 0 ? true : t2;
35732
+ const minPanelSizePx = t3 === void 0 ? 200 : t3;
35733
+ const orientation = t4 === void 0 ? "horizontal" : t4;
35734
+ const containerRef = useRef(null);
35735
+ const isResizingRef = useRef(false);
35736
+ const firstPanelRef = useRef(null);
35737
+ const startPosRef = useRef(0);
35738
+ const startSizeRef = useRef(0);
35739
+ const [, setIsResizing] = useState(false);
35740
+ const isHorizontal = orientation === "horizontal";
35741
+ let t5;
35742
+ if ($[0] !== isHorizontal || $[1] !== showFirstPanel || $[2] !== showSecondPanel) {
35743
+ t5 = (e) => {
35744
+ if (!showFirstPanel || !showSecondPanel) {
35745
+ return;
35746
+ }
35747
+ e.preventDefault();
35748
+ isResizingRef.current = true;
35749
+ setIsResizing(true);
35750
+ startPosRef.current = isHorizontal ? e.clientX : e.clientY;
35751
+ if (firstPanelRef.current) {
35752
+ const rect = firstPanelRef.current.getBoundingClientRect();
35753
+ startSizeRef.current = isHorizontal ? rect.width : rect.height;
35754
+ }
35755
+ document.body.style.cursor = isHorizontal ? "col-resize" : "row-resize";
35756
+ document.body.style.userSelect = "none";
35757
+ };
35758
+ $[0] = isHorizontal;
35759
+ $[1] = showFirstPanel;
35760
+ $[2] = showSecondPanel;
35761
+ $[3] = t5;
35762
+ } else {
35763
+ t5 = $[3];
35764
+ }
35765
+ const handleResizeStart = t5;
35766
+ let t6;
35767
+ let t7;
35768
+ if ($[4] !== isHorizontal || $[5] !== minPanelSizePx || $[6] !== onPanelSizeChange) {
35769
+ t6 = () => {
35770
+ const handleMouseMove = (e_0) => {
35771
+ if (!isResizingRef.current || !containerRef.current) {
35772
+ return;
35773
+ }
35774
+ const currentPos = isHorizontal ? e_0.clientX : e_0.clientY;
35775
+ const delta = currentPos - startPosRef.current;
35776
+ let newSize = startSizeRef.current + delta;
35777
+ const containerRect = containerRef.current.getBoundingClientRect();
35778
+ const containerTotal = isHorizontal ? containerRect.width : containerRect.height;
35779
+ const maxSize = containerTotal - minPanelSizePx;
35780
+ newSize = Math.max(minPanelSizePx, Math.min(newSize, maxSize));
35781
+ if (firstPanelRef.current) {
35782
+ if (isHorizontal) {
35783
+ firstPanelRef.current.style.width = `${newSize}px`;
35784
+ } else {
35785
+ firstPanelRef.current.style.height = `${newSize}px`;
35786
+ }
35787
+ }
35788
+ };
35789
+ const handleMouseUp = () => {
35790
+ if (isResizingRef.current && containerRef.current && firstPanelRef.current) {
35791
+ isResizingRef.current = false;
35792
+ setIsResizing(false);
35793
+ document.body.style.cursor = "";
35794
+ document.body.style.userSelect = "";
35795
+ const containerRect_0 = containerRef.current.getBoundingClientRect();
35796
+ const firstPanelRect = firstPanelRef.current.getBoundingClientRect();
35797
+ const containerSize = isHorizontal ? containerRect_0.width : containerRect_0.height;
35798
+ const finalSize = isHorizontal ? firstPanelRect.width : firstPanelRect.height;
35799
+ if (containerSize > 0) {
35800
+ const newPercent = finalSize / containerSize * 100;
35801
+ onPanelSizeChange(Math.max(0, Math.min(100, newPercent)));
35802
+ }
35803
+ }
35804
+ };
35805
+ window.addEventListener("mousemove", handleMouseMove);
35806
+ window.addEventListener("mouseup", handleMouseUp);
35807
+ return () => {
35808
+ window.removeEventListener("mousemove", handleMouseMove);
35809
+ window.removeEventListener("mouseup", handleMouseUp);
35810
+ };
35811
+ };
35812
+ t7 = [onPanelSizeChange, isHorizontal, minPanelSizePx];
35813
+ $[4] = isHorizontal;
35814
+ $[5] = minPanelSizePx;
35815
+ $[6] = onPanelSizeChange;
35816
+ $[7] = t6;
35817
+ $[8] = t7;
35818
+ } else {
35819
+ t6 = $[7];
35820
+ t7 = $[8];
35821
+ }
35822
+ useEffect(t6, t7);
35823
+ const appliedBasis = !showFirstPanel ? "0%" : showSecondPanel ? `${panelSizePercent}%` : "100%";
35824
+ const t8 = isHorizontal ? "flex-row" : "flex-col";
35825
+ let t9;
35826
+ if ($[9] !== className || $[10] !== t8) {
35827
+ t9 = cls("relative w-full h-full flex overflow-hidden", t8, className);
35828
+ $[9] = className;
35829
+ $[10] = t8;
35830
+ $[11] = t9;
35831
+ } else {
35832
+ t9 = $[11];
35833
+ }
35834
+ const t10 = !showFirstPanel && "hidden";
35835
+ let t11;
35836
+ if ($[12] !== t10) {
35837
+ t11 = cls("relative flex-shrink-0 flex flex-col overflow-hidden", t10);
35838
+ $[12] = t10;
35839
+ $[13] = t11;
35840
+ } else {
35841
+ t11 = $[13];
35842
+ }
35843
+ const t12 = isHorizontal ? appliedBasis : "100%";
35844
+ const t13 = !isHorizontal ? appliedBasis : "100%";
35845
+ const t14 = isHorizontal && showFirstPanel && showSecondPanel ? `${minPanelSizePx}px` : void 0;
35846
+ const t15 = !isHorizontal && showFirstPanel && showSecondPanel ? `${minPanelSizePx}px` : void 0;
35847
+ const t16 = showSecondPanel ? void 0 : "100%";
35848
+ const t17 = showSecondPanel ? void 0 : "100%";
35849
+ let t18;
35850
+ if ($[14] !== t12 || $[15] !== t13 || $[16] !== t14 || $[17] !== t15 || $[18] !== t16 || $[19] !== t17) {
35851
+ t18 = {
35852
+ width: t12,
35853
+ height: t13,
35854
+ minWidth: t14,
35855
+ minHeight: t15,
35856
+ maxWidth: t16,
35857
+ maxHeight: t17
35858
+ };
35859
+ $[14] = t12;
35860
+ $[15] = t13;
35861
+ $[16] = t14;
35862
+ $[17] = t15;
35863
+ $[18] = t16;
35864
+ $[19] = t17;
35865
+ $[20] = t18;
35866
+ } else {
35867
+ t18 = $[20];
35868
+ }
35869
+ let t19;
35870
+ if ($[21] !== firstPanel || $[22] !== t11 || $[23] !== t18) {
35871
+ t19 = /* @__PURE__ */ jsx("div", { ref: firstPanelRef, className: t11, style: t18, children: firstPanel });
35872
+ $[21] = firstPanel;
35873
+ $[22] = t11;
35874
+ $[23] = t18;
35875
+ $[24] = t19;
35876
+ } else {
35877
+ t19 = $[24];
35878
+ }
35879
+ let t20;
35880
+ if ($[25] !== handleResizeStart || $[26] !== isHorizontal || $[27] !== showFirstPanel || $[28] !== showSecondPanel) {
35881
+ t20 = showFirstPanel && showSecondPanel && /* @__PURE__ */ jsx("div", { className: cls("relative z-10 flex flex-shrink-0 items-center justify-center", isHorizontal ? "w-px h-full cursor-col-resize" : "h-px w-full cursor-row-resize"), onMouseDown: handleResizeStart, children: /* @__PURE__ */ jsx("div", { className: cls("absolute flex items-center justify-center group", isHorizontal ? "w-4 h-full cursor-col-resize top-0" : "h-4 w-full cursor-row-resize left-0"), children: /* @__PURE__ */ jsx("div", { className: cls("bg-primary/60 dark:bg-primary rounded-full opacity-0 group-hover:opacity-100 transition-all duration-200", isHorizontal ? "w-1 h-8" : "h-1 w-8") }) }) });
35882
+ $[25] = handleResizeStart;
35883
+ $[26] = isHorizontal;
35884
+ $[27] = showFirstPanel;
35885
+ $[28] = showSecondPanel;
35886
+ $[29] = t20;
35887
+ } else {
35888
+ t20 = $[29];
35889
+ }
35890
+ const t21 = !showSecondPanel && "hidden";
35891
+ let t22;
35892
+ if ($[30] !== t21) {
35893
+ t22 = cls("flex-grow relative flex flex-col overflow-hidden min-w-0 min-h-0", t21);
35894
+ $[30] = t21;
35895
+ $[31] = t22;
35896
+ } else {
35897
+ t22 = $[31];
35898
+ }
35899
+ let t23;
35900
+ if ($[32] !== secondPanel || $[33] !== t22) {
35901
+ t23 = /* @__PURE__ */ jsx("div", { className: t22, children: secondPanel });
35902
+ $[32] = secondPanel;
35903
+ $[33] = t22;
35904
+ $[34] = t23;
35905
+ } else {
35906
+ t23 = $[34];
35907
+ }
35908
+ let t24;
35909
+ if ($[35] !== t19 || $[36] !== t20 || $[37] !== t23 || $[38] !== t9) {
35910
+ t24 = /* @__PURE__ */ jsxs("div", { ref: containerRef, className: t9, children: [
35911
+ t19,
35912
+ t20,
35913
+ t23
35914
+ ] });
35915
+ $[35] = t19;
35916
+ $[36] = t20;
35917
+ $[37] = t23;
35918
+ $[38] = t9;
35919
+ $[39] = t24;
35920
+ } else {
35921
+ t24 = $[39];
35922
+ }
35923
+ return t24;
35924
+ }
35577
35925
  function SearchBar(t0) {
35578
35926
  const $ = c(47);
35579
35927
  const {
@@ -35758,6 +36106,483 @@ function SearchBar(t0) {
35758
36106
  }
35759
36107
  return t22;
35760
36108
  }
36109
+ const SearchableSelect = React.forwardRef((t0, ref) => {
36110
+ const $ = c(106);
36111
+ const {
36112
+ value,
36113
+ onValueChange,
36114
+ placeholder: t1,
36115
+ label,
36116
+ size: t2,
36117
+ disabled,
36118
+ error,
36119
+ invisible,
36120
+ className,
36121
+ inputClassName,
36122
+ renderValue,
36123
+ modalPopover: t3,
36124
+ allowCustomValues: t4,
36125
+ portalContainer,
36126
+ autoFocus,
36127
+ children
36128
+ } = t0;
36129
+ const placeholder = t1 === void 0 ? "Select..." : t1;
36130
+ const size = t2 === void 0 ? "large" : t2;
36131
+ const modalPopover = t3 === void 0 ? false : t3;
36132
+ const allowCustomValues = t4 === void 0 ? true : t4;
36133
+ const [isMounted, setIsMounted] = useState(false);
36134
+ const [isPopoverOpen, setIsPopoverOpen] = useState(false);
36135
+ const [search, setSearch] = useState("");
36136
+ const inputRef = useRef(null);
36137
+ const contextContainer = usePortalContainer();
36138
+ const finalContainer = portalContainer ?? contextContainer ?? void 0;
36139
+ let t5;
36140
+ let t6;
36141
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36142
+ t5 = () => {
36143
+ setIsMounted(true);
36144
+ };
36145
+ t6 = [];
36146
+ $[0] = t5;
36147
+ $[1] = t6;
36148
+ } else {
36149
+ t5 = $[0];
36150
+ t6 = $[1];
36151
+ }
36152
+ useEffect(t5, t6);
36153
+ let t7;
36154
+ if ($[2] !== autoFocus || $[3] !== isMounted) {
36155
+ t7 = [autoFocus, isMounted];
36156
+ $[2] = autoFocus;
36157
+ $[3] = isMounted;
36158
+ $[4] = t7;
36159
+ } else {
36160
+ t7 = $[4];
36161
+ }
36162
+ useEffect(() => {
36163
+ if (autoFocus && isMounted) {
36164
+ onPopoverOpenChange(true);
36165
+ }
36166
+ }, t7);
36167
+ let t8;
36168
+ let map;
36169
+ if ($[5] !== children) {
36170
+ map = /* @__PURE__ */ new Map();
36171
+ React.Children.forEach(children, (child) => {
36172
+ if (React.isValidElement(child) && child.props.value != null) {
36173
+ map.set(String(child.props.value), child.props.children ?? child.props.value);
36174
+ }
36175
+ });
36176
+ $[5] = children;
36177
+ $[6] = map;
36178
+ } else {
36179
+ map = $[6];
36180
+ }
36181
+ t8 = map;
36182
+ const itemsMap = t8;
36183
+ const onPopoverOpenChange = (open) => {
36184
+ setIsPopoverOpen(open);
36185
+ if (open) {
36186
+ setSearch(value ?? "");
36187
+ setTimeout(() => inputRef.current?.focus(), 0);
36188
+ }
36189
+ };
36190
+ let t9;
36191
+ if ($[7] !== onValueChange) {
36192
+ t9 = (selectedValue) => {
36193
+ onValueChange?.(selectedValue);
36194
+ setIsPopoverOpen(false);
36195
+ setSearch("");
36196
+ };
36197
+ $[7] = onValueChange;
36198
+ $[8] = t9;
36199
+ } else {
36200
+ t9 = $[8];
36201
+ }
36202
+ const handleSelect = t9;
36203
+ let t10;
36204
+ if ($[9] !== allowCustomValues || $[10] !== handleSelect || $[11] !== itemsMap || $[12] !== search) {
36205
+ t10 = (e) => {
36206
+ if (e.key === "Enter" && allowCustomValues) {
36207
+ const trimmed = search.trim();
36208
+ if (trimmed) {
36209
+ const isExistingItem = itemsMap.has(trimmed);
36210
+ if (!isExistingItem) {
36211
+ e.preventDefault();
36212
+ handleSelect(trimmed);
36213
+ }
36214
+ }
36215
+ } else {
36216
+ if (e.key === "Escape") {
36217
+ setIsPopoverOpen(false);
36218
+ }
36219
+ }
36220
+ };
36221
+ $[9] = allowCustomValues;
36222
+ $[10] = handleSelect;
36223
+ $[11] = itemsMap;
36224
+ $[12] = search;
36225
+ $[13] = t10;
36226
+ } else {
36227
+ t10 = $[13];
36228
+ }
36229
+ const handleInputKeyDown = t10;
36230
+ let t11;
36231
+ bb0: {
36232
+ if (!value) {
36233
+ t11 = null;
36234
+ break bb0;
36235
+ }
36236
+ if (renderValue) {
36237
+ let t123;
36238
+ if ($[14] !== renderValue || $[15] !== value) {
36239
+ t123 = renderValue(value);
36240
+ $[14] = renderValue;
36241
+ $[15] = value;
36242
+ $[16] = t123;
36243
+ } else {
36244
+ t123 = $[16];
36245
+ }
36246
+ t11 = t123;
36247
+ break bb0;
36248
+ }
36249
+ let t122;
36250
+ if ($[17] !== itemsMap || $[18] !== value) {
36251
+ t122 = itemsMap.get(value);
36252
+ $[17] = itemsMap;
36253
+ $[18] = value;
36254
+ $[19] = t122;
36255
+ } else {
36256
+ t122 = $[19];
36257
+ }
36258
+ const itemLabel = t122;
36259
+ if (itemLabel) {
36260
+ t11 = itemLabel;
36261
+ break bb0;
36262
+ }
36263
+ let t132;
36264
+ if ($[20] !== value) {
36265
+ t132 = /* @__PURE__ */ jsx("span", { className: "text-sm", children: value });
36266
+ $[20] = value;
36267
+ $[21] = t132;
36268
+ } else {
36269
+ t132 = $[21];
36270
+ }
36271
+ t11 = t132;
36272
+ }
36273
+ const displayLabel = t11;
36274
+ useInjectStyles("SearchableSelect", `
36275
+ [cmdk-group] {
36276
+ max-height: 45vh;
36277
+ overflow-y: auto;
36278
+ }`);
36279
+ let t12;
36280
+ if ($[22] !== error || $[23] !== label) {
36281
+ t12 = label && (typeof label === "string" ? /* @__PURE__ */ jsx("div", { className: cls("text-sm font-medium ml-3.5 mb-1", error ? "text-red-500 dark:text-red-600" : "text-surface-accent-500 dark:text-surface-accent-300"), children: label }) : label);
36282
+ $[22] = error;
36283
+ $[23] = label;
36284
+ $[24] = t12;
36285
+ } else {
36286
+ t12 = $[24];
36287
+ }
36288
+ const t13 = isMounted && isPopoverOpen;
36289
+ let t14;
36290
+ if ($[25] !== disabled || $[26] !== isPopoverOpen || $[27] !== onPopoverOpenChange) {
36291
+ t14 = () => !disabled && onPopoverOpenChange(!isPopoverOpen);
36292
+ $[25] = disabled;
36293
+ $[26] = isPopoverOpen;
36294
+ $[27] = onPopoverOpenChange;
36295
+ $[28] = t14;
36296
+ } else {
36297
+ t14 = $[28];
36298
+ }
36299
+ const t15 = size === "smallest";
36300
+ const t16 = size === "small";
36301
+ const t17 = size === "medium";
36302
+ const t18 = size === "large";
36303
+ let t19;
36304
+ if ($[29] !== className || $[30] !== disabled || $[31] !== inputClassName || $[32] !== invisible || $[33] !== size || $[34] !== t15 || $[35] !== t16 || $[36] !== t17 || $[37] !== t18) {
36305
+ t19 = cls({
36306
+ "min-h-[28px]": t15,
36307
+ "min-h-[32px]": t16,
36308
+ "min-h-[44px]": t17,
36309
+ "min-h-[64px]": t18
36310
+ }, {
36311
+ "py-0.5": size === "smallest",
36312
+ "py-1": size === "small",
36313
+ "py-2": size === "medium" || size === "large"
36314
+ }, {
36315
+ "px-2": size === "small" || size === "smallest",
36316
+ "px-4": size === "medium" || size === "large"
36317
+ }, "select-none rounded-md text-sm w-full text-start", "focus:ring-0 focus-visible:ring-0 outline-none focus:outline-none focus-visible:outline-none", invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, "relative flex items-center", className, inputClassName);
36318
+ $[29] = className;
36319
+ $[30] = disabled;
36320
+ $[31] = inputClassName;
36321
+ $[32] = invisible;
36322
+ $[33] = size;
36323
+ $[34] = t15;
36324
+ $[35] = t16;
36325
+ $[36] = t17;
36326
+ $[37] = t18;
36327
+ $[38] = t19;
36328
+ } else {
36329
+ t19 = $[38];
36330
+ }
36331
+ let t20;
36332
+ if ($[39] !== displayLabel || $[40] !== placeholder) {
36333
+ t20 = displayLabel ?? /* @__PURE__ */ jsx("span", { className: "text-sm text-surface-accent-500 dark:text-surface-accent-400", children: placeholder });
36334
+ $[39] = displayLabel;
36335
+ $[40] = placeholder;
36336
+ $[41] = t20;
36337
+ } else {
36338
+ t20 = $[41];
36339
+ }
36340
+ let t21;
36341
+ if ($[42] !== t20) {
36342
+ t21 = /* @__PURE__ */ jsx("div", { className: "flex-grow min-w-0 truncate", children: t20 });
36343
+ $[42] = t20;
36344
+ $[43] = t21;
36345
+ } else {
36346
+ t21 = $[43];
36347
+ }
36348
+ let t22;
36349
+ if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36350
+ t22 = cls("flex-shrink-0 flex items-center");
36351
+ $[44] = t22;
36352
+ } else {
36353
+ t22 = $[44];
36354
+ }
36355
+ const t23 = size === "large" ? "medium" : "small";
36356
+ const t24 = isPopoverOpen ? "rotate-180" : "";
36357
+ let t25;
36358
+ if ($[45] !== t24) {
36359
+ t25 = cls("transition", t24);
36360
+ $[45] = t24;
36361
+ $[46] = t25;
36362
+ } else {
36363
+ t25 = $[46];
36364
+ }
36365
+ let t26;
36366
+ if ($[47] !== t23 || $[48] !== t25) {
36367
+ t26 = /* @__PURE__ */ jsx("div", { className: t22, children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: t23, className: t25 }) });
36368
+ $[47] = t23;
36369
+ $[48] = t25;
36370
+ $[49] = t26;
36371
+ } else {
36372
+ t26 = $[49];
36373
+ }
36374
+ let t27;
36375
+ if ($[50] !== t21 || $[51] !== t26) {
36376
+ t27 = /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between w-full gap-1", children: [
36377
+ t21,
36378
+ t26
36379
+ ] });
36380
+ $[50] = t21;
36381
+ $[51] = t26;
36382
+ $[52] = t27;
36383
+ } else {
36384
+ t27 = $[52];
36385
+ }
36386
+ let t28;
36387
+ if ($[53] !== disabled || $[54] !== ref || $[55] !== t14 || $[56] !== t19 || $[57] !== t27) {
36388
+ t28 = /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("button", { ref, disabled, onClick: t14, className: t19, children: t27 }) });
36389
+ $[53] = disabled;
36390
+ $[54] = ref;
36391
+ $[55] = t14;
36392
+ $[56] = t19;
36393
+ $[57] = t27;
36394
+ $[58] = t28;
36395
+ } else {
36396
+ t28 = $[58];
36397
+ }
36398
+ let t29;
36399
+ if ($[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36400
+ t29 = cls("z-50 overflow-hidden border bg-white dark:bg-surface-900 rounded-lg", defaultBorderMixin);
36401
+ $[59] = t29;
36402
+ } else {
36403
+ t29 = $[59];
36404
+ }
36405
+ let t30;
36406
+ if ($[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36407
+ t30 = {
36408
+ width: "var(--radix-popover-trigger-width)",
36409
+ minWidth: 180
36410
+ };
36411
+ $[60] = t30;
36412
+ } else {
36413
+ t30 = $[60];
36414
+ }
36415
+ let t31;
36416
+ if ($[61] !== onPopoverOpenChange) {
36417
+ t31 = () => onPopoverOpenChange(false);
36418
+ $[61] = onPopoverOpenChange;
36419
+ $[62] = t31;
36420
+ } else {
36421
+ t31 = $[62];
36422
+ }
36423
+ const t32 = size === "smallest" || size === "small";
36424
+ const t33 = size === "medium" || size === "large";
36425
+ let t34;
36426
+ if ($[63] !== t32 || $[64] !== t33) {
36427
+ t34 = cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full text-surface-accent-900 dark:text-white", {
36428
+ "m-2 text-xs": t32,
36429
+ "m-3 text-sm": t33
36430
+ });
36431
+ $[63] = t32;
36432
+ $[64] = t33;
36433
+ $[65] = t34;
36434
+ } else {
36435
+ t34 = $[65];
36436
+ }
36437
+ let t35;
36438
+ if ($[66] !== handleInputKeyDown || $[67] !== search || $[68] !== t34) {
36439
+ t35 = /* @__PURE__ */ jsx("div", { className: "flex flex-row items-center", children: /* @__PURE__ */ jsx(Command.Input, { ref: inputRef, value: search, onValueChange: setSearch, className: t34, placeholder: "Search...", onKeyDown: handleInputKeyDown }) });
36440
+ $[66] = handleInputKeyDown;
36441
+ $[67] = search;
36442
+ $[68] = t34;
36443
+ $[69] = t35;
36444
+ } else {
36445
+ t35 = $[69];
36446
+ }
36447
+ let t36;
36448
+ if ($[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36449
+ t36 = /* @__PURE__ */ jsx(Separator, { orientation: "horizontal", className: "my-0" });
36450
+ $[70] = t36;
36451
+ } else {
36452
+ t36 = $[70];
36453
+ }
36454
+ let t37;
36455
+ if ($[71] !== allowCustomValues || $[72] !== handleSelect || $[73] !== itemsMap || $[74] !== search) {
36456
+ t37 = allowCustomValues && search.trim() && !itemsMap.has(search.trim()) ? /* @__PURE__ */ jsxs(Command.Empty, { className: "px-3 py-2 text-xs cursor-pointer text-primary hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800", onClick: () => handleSelect(search.trim()), children: [
36457
+ "Use “",
36458
+ search.trim(),
36459
+ "”"
36460
+ ] }) : /* @__PURE__ */ jsx(Command.Empty, { className: "px-3 py-2 text-xs text-text-secondary dark:text-text-secondary-dark", children: "No results found." });
36461
+ $[71] = allowCustomValues;
36462
+ $[72] = handleSelect;
36463
+ $[73] = itemsMap;
36464
+ $[74] = search;
36465
+ $[75] = t37;
36466
+ } else {
36467
+ t37 = $[75];
36468
+ }
36469
+ let t38;
36470
+ if ($[76] !== children || $[77] !== handleSelect || $[78] !== value) {
36471
+ let t392;
36472
+ if ($[80] !== handleSelect || $[81] !== value) {
36473
+ t392 = (child_0) => {
36474
+ if (!React.isValidElement(child_0)) {
36475
+ return child_0;
36476
+ }
36477
+ const itemValue = child_0.props.value;
36478
+ const isSelected = String(value) === String(itemValue);
36479
+ return /* @__PURE__ */ jsxs(Command.Item, { value: String(itemValue), onMouseDown: _temp$2, onSelect: () => handleSelect(String(itemValue)), className: cls("flex flex-row items-center gap-1.5", isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "", "cursor-pointer", "m-0.5", "ring-offset-transparent", "p-1.5 rounded", "aria-[selected=true]:outline-none", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "text-surface-accent-700 dark:text-surface-accent-300", child_0.props.className), children: [
36480
+ /* @__PURE__ */ jsx("div", { className: cls("w-4 h-4 flex items-center justify-center flex-shrink-0", isSelected ? "text-primary" : "text-transparent"), children: isSelected && /* @__PURE__ */ jsx(CheckIcon, { size: 14 }) }),
36481
+ child_0.props.children ?? child_0.props.value
36482
+ ] }, String(itemValue));
36483
+ };
36484
+ $[80] = handleSelect;
36485
+ $[81] = value;
36486
+ $[82] = t392;
36487
+ } else {
36488
+ t392 = $[82];
36489
+ }
36490
+ t38 = React.Children.map(children, t392);
36491
+ $[76] = children;
36492
+ $[77] = handleSelect;
36493
+ $[78] = value;
36494
+ $[79] = t38;
36495
+ } else {
36496
+ t38 = $[79];
36497
+ }
36498
+ let t39;
36499
+ if ($[83] !== t38) {
36500
+ t39 = /* @__PURE__ */ jsx(Command.Group, { children: t38 });
36501
+ $[83] = t38;
36502
+ $[84] = t39;
36503
+ } else {
36504
+ t39 = $[84];
36505
+ }
36506
+ let t40;
36507
+ if ($[85] !== t37 || $[86] !== t39) {
36508
+ t40 = /* @__PURE__ */ jsxs(Command.List, { children: [
36509
+ t37,
36510
+ t39
36511
+ ] });
36512
+ $[85] = t37;
36513
+ $[86] = t39;
36514
+ $[87] = t40;
36515
+ } else {
36516
+ t40 = $[87];
36517
+ }
36518
+ let t41;
36519
+ if ($[88] !== t35 || $[89] !== t40) {
36520
+ t41 = /* @__PURE__ */ jsxs(Command, { shouldFilter: true, children: [
36521
+ t35,
36522
+ t36,
36523
+ t40
36524
+ ] });
36525
+ $[88] = t35;
36526
+ $[89] = t40;
36527
+ $[90] = t41;
36528
+ } else {
36529
+ t41 = $[90];
36530
+ }
36531
+ let t42;
36532
+ if ($[91] !== t31 || $[92] !== t41) {
36533
+ t42 = /* @__PURE__ */ jsx(PopoverPrimitive.Content, { className: t29, align: "start", sideOffset: 4, style: t30, onEscapeKeyDown: t31, children: t41 });
36534
+ $[91] = t31;
36535
+ $[92] = t41;
36536
+ $[93] = t42;
36537
+ } else {
36538
+ t42 = $[93];
36539
+ }
36540
+ let t43;
36541
+ if ($[94] !== finalContainer || $[95] !== t42) {
36542
+ t43 = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: finalContainer, children: t42 });
36543
+ $[94] = finalContainer;
36544
+ $[95] = t42;
36545
+ $[96] = t43;
36546
+ } else {
36547
+ t43 = $[96];
36548
+ }
36549
+ let t44;
36550
+ if ($[97] !== modalPopover || $[98] !== onPopoverOpenChange || $[99] !== t13 || $[100] !== t28 || $[101] !== t43) {
36551
+ t44 = /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open: t13, onOpenChange: onPopoverOpenChange, modal: modalPopover, children: [
36552
+ t28,
36553
+ t43
36554
+ ] });
36555
+ $[97] = modalPopover;
36556
+ $[98] = onPopoverOpenChange;
36557
+ $[99] = t13;
36558
+ $[100] = t28;
36559
+ $[101] = t43;
36560
+ $[102] = t44;
36561
+ } else {
36562
+ t44 = $[102];
36563
+ }
36564
+ let t45;
36565
+ if ($[103] !== t12 || $[104] !== t44) {
36566
+ t45 = /* @__PURE__ */ jsxs("div", { children: [
36567
+ t12,
36568
+ t44
36569
+ ] });
36570
+ $[103] = t12;
36571
+ $[104] = t44;
36572
+ $[105] = t45;
36573
+ } else {
36574
+ t45 = $[105];
36575
+ }
36576
+ return t45;
36577
+ });
36578
+ SearchableSelect.displayName = "SearchableSelect";
36579
+ function SearchableSelectItem(_props) {
36580
+ return null;
36581
+ }
36582
+ function _temp$2(e_0) {
36583
+ e_0.preventDefault();
36584
+ e_0.stopPropagation();
36585
+ }
35761
36586
  const Select = forwardRef((t0, ref) => {
35762
36587
  const $ = c(121);
35763
36588
  let children;
@@ -36734,203 +37559,222 @@ function _temp(event) {
36734
37559
  function getStyleValue(value) {
36735
37560
  return parseInt(value, 10) || 0;
36736
37561
  }
36737
- const styles = {
36738
- shadow: {
36739
- // Visibility needed to hide the extra text area on iPads
36740
- visibility: "hidden",
36741
- // Remove from the content flow
36742
- position: "absolute",
36743
- // Ignore the scrollbar width
36744
- overflow: "hidden",
36745
- height: 0,
36746
- top: 0,
36747
- left: 0,
36748
- // Create a new layer, increase the isolation of the computed values
36749
- transform: "translateZ(0)"
36750
- }
36751
- };
36752
- function isEmpty(obj) {
36753
- return obj === void 0 || obj === null || Object.keys(obj).length === 0 || obj.outerHeightStyle === 0 && !obj.overflow;
36754
- }
36755
37562
  const TextareaAutosize = React.forwardRef(function TextareaAutosize2(props, ref) {
36756
- const {
36757
- onChange,
36758
- onScroll,
36759
- onResize,
36760
- maxRows,
36761
- minRows = 1,
36762
- style,
36763
- value,
36764
- onFocus,
36765
- onBlur,
36766
- sizeRef,
36767
- ignoreBoxSizing,
36768
- ...other
36769
- } = props;
37563
+ const $ = c(38);
37564
+ let ignoreBoxSizing;
37565
+ let maxRows;
37566
+ let onBlur;
37567
+ let onChange;
37568
+ let onFocus;
37569
+ let onResize;
37570
+ let onScroll;
37571
+ let other;
37572
+ let style;
37573
+ let t0;
37574
+ let value;
37575
+ if ($[0] !== props) {
37576
+ const {
37577
+ onChange: t12,
37578
+ onScroll: t22,
37579
+ onResize: t32,
37580
+ maxRows: t42,
37581
+ minRows: t52,
37582
+ style: t62,
37583
+ value: t72,
37584
+ onFocus: t82,
37585
+ onBlur: t9,
37586
+ sizeRef,
37587
+ ignoreBoxSizing: t10,
37588
+ ...t11
37589
+ } = props;
37590
+ onChange = t12;
37591
+ onScroll = t22;
37592
+ onResize = t32;
37593
+ maxRows = t42;
37594
+ t0 = t52;
37595
+ style = t62;
37596
+ value = t72;
37597
+ onFocus = t82;
37598
+ onBlur = t9;
37599
+ ignoreBoxSizing = t10;
37600
+ other = t11;
37601
+ $[0] = props;
37602
+ $[1] = ignoreBoxSizing;
37603
+ $[2] = maxRows;
37604
+ $[3] = onBlur;
37605
+ $[4] = onChange;
37606
+ $[5] = onFocus;
37607
+ $[6] = onResize;
37608
+ $[7] = onScroll;
37609
+ $[8] = other;
37610
+ $[9] = style;
37611
+ $[10] = t0;
37612
+ $[11] = value;
37613
+ } else {
37614
+ ignoreBoxSizing = $[1];
37615
+ maxRows = $[2];
37616
+ onBlur = $[3];
37617
+ onChange = $[4];
37618
+ onFocus = $[5];
37619
+ onResize = $[6];
37620
+ onScroll = $[7];
37621
+ other = $[8];
37622
+ style = $[9];
37623
+ t0 = $[10];
37624
+ value = $[11];
37625
+ }
37626
+ const minRows = t0 === void 0 ? 1 : t0;
36770
37627
  const {
36771
37628
  current: isControlled
36772
37629
  } = React.useRef(value != null);
36773
37630
  const inputRef = React.useRef(null);
36774
37631
  const handleRef = useForkRef(ref, inputRef);
36775
- const shadowRef = React.useRef(null);
36776
- const renders = React.useRef(0);
36777
- const [state, setState] = React.useState({
36778
- outerHeightStyle: 0
36779
- });
36780
- const getUpdatedState = React.useCallback(() => {
36781
- const input = inputRef.current;
36782
- if (typeof window === "undefined") {
36783
- return {
36784
- outerHeightStyle: 0
36785
- };
36786
- }
36787
- const containerWindow = window;
36788
- const computedStyle = containerWindow.getComputedStyle(input);
36789
- if (computedStyle.width === "0px") {
36790
- return {
36791
- outerHeightStyle: 0
36792
- };
36793
- }
36794
- const sizeReferenceElement = sizeRef?.current ?? shadowRef.current;
36795
- const inputShallow = shadowRef.current;
36796
- sizeReferenceElement.style.width = computedStyle.width;
36797
- inputShallow.value = input.value || props.placeholder || "x";
36798
- if (inputShallow.value.slice(-1) === "\n") {
36799
- inputShallow.value += " ";
36800
- }
36801
- const boxSizing = computedStyle.boxSizing;
36802
- const padding = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);
36803
- const border = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);
36804
- const minHeight = getStyleValue(computedStyle.minHeight);
36805
- const innerHeight = sizeReferenceElement.scrollHeight;
36806
- inputShallow.value = "x";
36807
- const singleRowHeight = sizeReferenceElement.scrollHeight;
36808
- let outerHeight = innerHeight;
36809
- if (minRows) {
36810
- outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);
36811
- }
36812
- if (maxRows) {
36813
- outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);
36814
- }
36815
- outerHeight = Math.max(outerHeight, singleRowHeight, minHeight);
36816
- const outerHeightStyle = outerHeight + (!ignoreBoxSizing && boxSizing === "border-box" ? padding + border : 0);
36817
- const overflow = Math.abs(outerHeight - innerHeight) <= 1;
36818
- return {
36819
- outerHeightStyle,
36820
- overflow
36821
- };
36822
- }, [maxRows, minRows, props.placeholder]);
36823
- const updateState = React.useCallback((prevState, newState) => {
36824
- const {
36825
- outerHeightStyle: outerHeightStyle_0,
36826
- overflow: overflow_0
36827
- } = newState;
36828
- if (renders.current < 20 && (outerHeightStyle_0 > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle_0) > 1 || prevState.overflow !== overflow_0)) {
36829
- renders.current += 1;
36830
- return {
36831
- overflow: overflow_0,
36832
- outerHeightStyle: outerHeightStyle_0
36833
- };
36834
- }
36835
- if (process.env.NODE_ENV !== "production") {
36836
- if (renders.current === 20) {
36837
- console.error(["MUI: Too many re-renders. The layout is unstable.", "TextareaAutosize limits the number of renders to prevent an infinite loop."].join("\n"));
37632
+ let t1;
37633
+ if ($[12] !== ignoreBoxSizing || $[13] !== maxRows || $[14] !== minRows || $[15] !== onResize) {
37634
+ t1 = () => {
37635
+ const el = inputRef.current;
37636
+ if (!el || typeof window === "undefined") {
37637
+ return;
36838
37638
  }
36839
- }
36840
- return prevState;
36841
- }, []);
36842
- const syncHeight = React.useCallback(() => {
36843
- const newState_0 = getUpdatedState();
36844
- if (isEmpty(newState_0)) {
36845
- return;
36846
- }
36847
- if (onResize) {
36848
- onResize(newState_0);
36849
- }
36850
- setState((prevState_0) => {
36851
- return updateState(prevState_0, newState_0);
36852
- });
36853
- }, [getUpdatedState, onResize, updateState]);
36854
- const syncHeightWithFlushSync = React.useCallback(() => {
36855
- const newState_1 = getUpdatedState();
36856
- if (isEmpty(newState_1)) {
36857
- return;
36858
- }
36859
- ReactDOM.flushSync(() => {
36860
- setState((prevState_1) => {
36861
- return updateState(prevState_1, newState_1);
36862
- });
36863
- });
36864
- }, [getUpdatedState, updateState]);
36865
- React.useEffect(() => {
36866
- const handleResize = debounce(() => {
36867
- renders.current = 0;
36868
- if (inputRef.current) {
36869
- syncHeightWithFlushSync();
37639
+ if (el.offsetWidth === 0) {
37640
+ return;
36870
37641
  }
36871
- });
36872
- let resizeObserver;
36873
- const input_0 = inputRef.current;
36874
- const containerWindow_0 = window;
36875
- if (typeof window === "undefined") {
36876
- return;
36877
- }
36878
- containerWindow_0.addEventListener("resize", handleResize);
36879
- if (typeof ResizeObserver !== "undefined") {
36880
- resizeObserver = new ResizeObserver(handleResize);
36881
- resizeObserver.observe(input_0);
36882
- }
36883
- return () => {
36884
- handleResize.clear();
36885
- containerWindow_0.removeEventListener("resize", handleResize);
36886
- if (resizeObserver) {
36887
- resizeObserver.disconnect();
37642
+ const cs = window.getComputedStyle(el);
37643
+ const paddingY = getStyleValue(cs.paddingTop) + getStyleValue(cs.paddingBottom);
37644
+ const borderY = getStyleValue(cs.borderTopWidth) + getStyleValue(cs.borderBottomWidth);
37645
+ const boxSizing = cs.boxSizing;
37646
+ const prevHeight = el.style.height;
37647
+ const prevOverflow = el.style.overflowY;
37648
+ el.style.overflowY = "hidden";
37649
+ el.style.height = "0px";
37650
+ const scrollH = el.scrollHeight;
37651
+ const prevValue = el.value;
37652
+ el.value = "x";
37653
+ const singleRowScrollH = el.scrollHeight;
37654
+ el.value = prevValue;
37655
+ el.style.height = prevHeight;
37656
+ el.style.overflowY = prevOverflow;
37657
+ const lineHeight = singleRowScrollH - paddingY;
37658
+ let targetHeight = scrollH;
37659
+ if (minRows) {
37660
+ targetHeight = Math.max(Number(minRows) * lineHeight + paddingY, targetHeight);
37661
+ }
37662
+ const unclampedHeight = targetHeight;
37663
+ if (maxRows) {
37664
+ targetHeight = Math.min(Number(maxRows) * lineHeight + paddingY, targetHeight);
37665
+ }
37666
+ const extra = !ignoreBoxSizing && boxSizing === "border-box" ? borderY : 0;
37667
+ const finalHeight = Math.ceil(targetHeight + extra);
37668
+ const shouldScroll = Math.abs(unclampedHeight - targetHeight) > 1;
37669
+ el.style.height = `${finalHeight}px`;
37670
+ el.style.overflowY = shouldScroll ? "auto" : "hidden";
37671
+ if (onResize) {
37672
+ onResize({
37673
+ outerHeightStyle: finalHeight,
37674
+ overflow: !shouldScroll
37675
+ });
36888
37676
  }
36889
37677
  };
36890
- }, [syncHeightWithFlushSync]);
36891
- useLayoutEffect(() => {
36892
- syncHeight();
36893
- });
36894
- React.useEffect(() => {
36895
- renders.current = 0;
36896
- }, [value]);
36897
- const handleChange = (event) => {
36898
- renders.current = 0;
36899
- if (!isControlled) {
37678
+ $[12] = ignoreBoxSizing;
37679
+ $[13] = maxRows;
37680
+ $[14] = minRows;
37681
+ $[15] = onResize;
37682
+ $[16] = t1;
37683
+ } else {
37684
+ t1 = $[16];
37685
+ }
37686
+ const syncHeight = t1;
37687
+ let t2;
37688
+ if ($[17] !== syncHeight) {
37689
+ t2 = () => {
36900
37690
  syncHeight();
36901
- }
36902
- if (onChange) {
36903
- onChange(event);
36904
- }
36905
- };
36906
- return /* @__PURE__ */ jsxs(React.Fragment, { children: [
36907
- /* @__PURE__ */ jsx(
36908
- "textarea",
36909
- {
36910
- value,
36911
- onChange: handleChange,
36912
- className: props.className,
36913
- ref: handleRef,
36914
- onFocus,
36915
- onBlur,
36916
- rows: minRows,
36917
- style: {
36918
- height: state.outerHeightStyle,
36919
- // Need a large enough difference to allow scrolling.
36920
- // This prevents infinite rendering loop.
36921
- overflow: state.overflow ? "hidden" : void 0,
36922
- ...style
36923
- },
36924
- onScroll,
36925
- ...other
37691
+ };
37692
+ $[17] = syncHeight;
37693
+ $[18] = t2;
37694
+ } else {
37695
+ t2 = $[18];
37696
+ }
37697
+ useLayoutEffect(t2);
37698
+ let t3;
37699
+ let t4;
37700
+ if ($[19] !== syncHeight) {
37701
+ t3 = () => {
37702
+ const handleResize = debounce(() => {
37703
+ if (inputRef.current) {
37704
+ syncHeight();
37705
+ }
37706
+ });
37707
+ const input = inputRef.current;
37708
+ if (typeof window === "undefined") {
37709
+ return;
37710
+ }
37711
+ window.addEventListener("resize", handleResize);
37712
+ let resizeObserver;
37713
+ if (typeof ResizeObserver !== "undefined") {
37714
+ resizeObserver = new ResizeObserver(handleResize);
37715
+ resizeObserver.observe(input);
36926
37716
  }
36927
- ),
36928
- /* @__PURE__ */ jsx("textarea", { "aria-hidden": true, className: cls(props.className, props.shadowClassName), readOnly: true, ref: shadowRef, tabIndex: -1, style: {
36929
- padding: 0,
36930
- ...styles.shadow,
37717
+ return () => {
37718
+ handleResize.clear();
37719
+ window.removeEventListener("resize", handleResize);
37720
+ resizeObserver?.disconnect();
37721
+ };
37722
+ };
37723
+ t4 = [syncHeight];
37724
+ $[19] = syncHeight;
37725
+ $[20] = t3;
37726
+ $[21] = t4;
37727
+ } else {
37728
+ t3 = $[20];
37729
+ t4 = $[21];
37730
+ }
37731
+ React.useEffect(t3, t4);
37732
+ let t5;
37733
+ if ($[22] !== onChange || $[23] !== syncHeight) {
37734
+ t5 = (event) => {
37735
+ if (!isControlled) {
37736
+ syncHeight();
37737
+ }
37738
+ if (onChange) {
37739
+ onChange(event);
37740
+ }
37741
+ };
37742
+ $[22] = onChange;
37743
+ $[23] = syncHeight;
37744
+ $[24] = t5;
37745
+ } else {
37746
+ t5 = $[24];
37747
+ }
37748
+ const handleChange = t5;
37749
+ const t6 = minRows;
37750
+ let t7;
37751
+ if ($[25] !== style) {
37752
+ t7 = {
36931
37753
  ...style
36932
- } })
36933
- ] });
37754
+ };
37755
+ $[25] = style;
37756
+ $[26] = t7;
37757
+ } else {
37758
+ t7 = $[26];
37759
+ }
37760
+ let t8;
37761
+ if ($[27] !== handleChange || $[28] !== handleRef || $[29] !== onBlur || $[30] !== onFocus || $[31] !== onScroll || $[32] !== other || $[33] !== props.className || $[34] !== t6 || $[35] !== t7 || $[36] !== value) {
37762
+ t8 = /* @__PURE__ */ jsx("textarea", { value, onChange: handleChange, className: props.className, ref: handleRef, onFocus, onBlur, rows: t6, style: t7, onScroll, ...other });
37763
+ $[27] = handleChange;
37764
+ $[28] = handleRef;
37765
+ $[29] = onBlur;
37766
+ $[30] = onFocus;
37767
+ $[31] = onScroll;
37768
+ $[32] = other;
37769
+ $[33] = props.className;
37770
+ $[34] = t6;
37771
+ $[35] = t7;
37772
+ $[36] = value;
37773
+ $[37] = t8;
37774
+ } else {
37775
+ t8 = $[37];
37776
+ }
37777
+ return t8;
36934
37778
  });
36935
37779
  function useForkRef(...refs) {
36936
37780
  return React.useMemo(() => {
@@ -37014,22 +37858,25 @@ const TextField = forwardRef(({
37014
37858
  ] });
37015
37859
  });
37016
37860
  TextField.displayName = "TextField";
37861
+ const TabsModeContext = createContext("primary");
37017
37862
  function Tabs(t0) {
37018
- const $ = c(26);
37863
+ const $ = c(35);
37019
37864
  const {
37020
37865
  value,
37021
37866
  onValueChange,
37022
37867
  className,
37023
37868
  innerClassName,
37024
- children
37869
+ children,
37870
+ mode: t1
37025
37871
  } = t0;
37872
+ const mode = t1 === void 0 ? "primary" : t1;
37026
37873
  const scrollContainerRef = useRef(null);
37027
37874
  const [showLeftScroll, setShowLeftScroll] = useState(false);
37028
37875
  const [showRightScroll, setShowRightScroll] = useState(false);
37029
37876
  const [isScrollable, setIsScrollable] = useState(false);
37030
- let t1;
37877
+ let t2;
37031
37878
  if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37032
- t1 = () => {
37879
+ t2 = () => {
37033
37880
  if (scrollContainerRef.current) {
37034
37881
  const {
37035
37882
  scrollLeft,
@@ -37041,14 +37888,14 @@ function Tabs(t0) {
37041
37888
  setIsScrollable(scrollWidth > clientWidth);
37042
37889
  }
37043
37890
  };
37044
- $[0] = t1;
37891
+ $[0] = t2;
37045
37892
  } else {
37046
- t1 = $[0];
37893
+ t2 = $[0];
37047
37894
  }
37048
- const checkScroll = t1;
37049
- let t2;
37895
+ const checkScroll = t2;
37896
+ let t3;
37050
37897
  if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37051
- t2 = () => {
37898
+ t3 = () => {
37052
37899
  checkScroll();
37053
37900
  window.addEventListener("resize", checkScroll);
37054
37901
  let observer;
@@ -37064,22 +37911,22 @@ function Tabs(t0) {
37064
37911
  observer?.disconnect();
37065
37912
  };
37066
37913
  };
37067
- $[1] = t2;
37914
+ $[1] = t3;
37068
37915
  } else {
37069
- t2 = $[1];
37916
+ t3 = $[1];
37070
37917
  }
37071
- let t3;
37918
+ let t4;
37072
37919
  if ($[2] !== children) {
37073
- t3 = [children];
37920
+ t4 = [children];
37074
37921
  $[2] = children;
37075
- $[3] = t3;
37922
+ $[3] = t4;
37076
37923
  } else {
37077
- t3 = $[3];
37924
+ t4 = $[3];
37078
37925
  }
37079
- useEffect(t2, t3);
37080
- let t4;
37926
+ useEffect(t3, t4);
37927
+ let t5;
37081
37928
  if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37082
- t4 = (direction) => {
37929
+ t5 = (direction) => {
37083
37930
  if (scrollContainerRef.current) {
37084
37931
  const container = scrollContainerRef.current;
37085
37932
  const scrollAmount = Math.max(container.clientWidth / 2, 200);
@@ -37090,85 +37937,104 @@ function Tabs(t0) {
37090
37937
  });
37091
37938
  }
37092
37939
  };
37093
- $[4] = t4;
37940
+ $[4] = t5;
37094
37941
  } else {
37095
- t4 = $[4];
37942
+ t5 = $[4];
37096
37943
  }
37097
- const scroll = t4;
37098
- let t5;
37944
+ const scroll = t5;
37945
+ let t6;
37099
37946
  if ($[5] !== className) {
37100
- t5 = cls("flex flex-row items-center min-w-0", className);
37947
+ t6 = cls("flex flex-row items-center min-w-0", className);
37101
37948
  $[5] = className;
37102
- $[6] = t5;
37949
+ $[6] = t6;
37103
37950
  } else {
37104
- t5 = $[6];
37951
+ t6 = $[6];
37105
37952
  }
37106
- let t6;
37107
- if ($[7] !== isScrollable || $[8] !== showLeftScroll) {
37108
- t6 = isScrollable && /* @__PURE__ */ jsx("button", { type: "button", disabled: !showLeftScroll, onClick: () => scroll("left"), className: cls("flex-shrink-0 z-10 flex items-center justify-center rounded-md px-0.5 py-1.5 transition-all h-10 w-6", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400", "disabled:pointer-events-none disabled:opacity-0", "text-surface-600 dark:text-surface-400 hover:bg-surface-200 dark:hover:bg-surface-800", "mr-1 bg-surface-50 dark:bg-surface-900 border", defaultBorderMixin), children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: "small" }) });
37953
+ let t7;
37954
+ if ($[7] !== isScrollable || $[8] !== mode || $[9] !== showLeftScroll) {
37955
+ t7 = isScrollable && /* @__PURE__ */ jsx("button", { type: "button", disabled: !showLeftScroll, onClick: () => scroll("left"), className: cls("flex-shrink-0 z-10 flex items-center justify-center rounded-md px-0.5 py-1.5 transition-all h-10 w-6", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400", "disabled:pointer-events-none disabled:opacity-0", "text-surface-600 dark:text-surface-400 hover:bg-surface-200 dark:hover:bg-surface-800", mode === "primary" && "mr-1 bg-surface-50 dark:bg-surface-900 border", mode === "primary" && defaultBorderMixin, mode === "secondary" && "mr-1"), children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: "small" }) });
37109
37956
  $[7] = isScrollable;
37110
- $[8] = showLeftScroll;
37111
- $[9] = t6;
37957
+ $[8] = mode;
37958
+ $[9] = showLeftScroll;
37959
+ $[10] = t7;
37112
37960
  } else {
37113
- t6 = $[9];
37961
+ t7 = $[10];
37114
37962
  }
37115
- let t7;
37116
- if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37117
- t7 = {
37963
+ let t8;
37964
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37965
+ t8 = {
37118
37966
  scrollbarWidth: "none",
37119
37967
  msOverflowStyle: "none"
37120
37968
  };
37121
- $[10] = t7;
37969
+ $[11] = t8;
37122
37970
  } else {
37123
- t7 = $[10];
37971
+ t8 = $[11];
37124
37972
  }
37125
- let t8;
37126
- if ($[11] !== innerClassName) {
37127
- t8 = cls("border", defaultBorderMixin, "gap-2", "inline-flex h-10 items-center justify-center rounded-md bg-surface-50 p-1 text-surface-600 dark:bg-surface-900 dark:text-surface-400", innerClassName);
37128
- $[11] = innerClassName;
37129
- $[12] = t8;
37973
+ const t9 = mode === "primary" && "border";
37974
+ const t10 = mode === "primary" && defaultBorderMixin;
37975
+ const t11 = mode === "primary" && "gap-2 inline-flex h-10 items-center justify-center rounded-md bg-surface-50 p-1 text-surface-600 dark:bg-surface-900 dark:text-surface-400";
37976
+ const t12 = mode === "secondary" && "gap-1 inline-flex h-9 items-center text-surface-500 dark:text-surface-400";
37977
+ let t13;
37978
+ if ($[12] !== innerClassName || $[13] !== t10 || $[14] !== t11 || $[15] !== t12 || $[16] !== t9) {
37979
+ t13 = cls(t9, t10, t11, t12, innerClassName);
37980
+ $[12] = innerClassName;
37981
+ $[13] = t10;
37982
+ $[14] = t11;
37983
+ $[15] = t12;
37984
+ $[16] = t9;
37985
+ $[17] = t13;
37130
37986
  } else {
37131
- t8 = $[12];
37987
+ t13 = $[17];
37132
37988
  }
37133
- let t9;
37134
- if ($[13] !== children || $[14] !== t8) {
37135
- t9 = /* @__PURE__ */ jsx("div", { ref: scrollContainerRef, className: "flex-1 overflow-x-auto no-scrollbar min-w-0", onScroll: checkScroll, style: t7, children: /* @__PURE__ */ jsx(TabsPrimitive.List, { className: t8, children }) });
37136
- $[13] = children;
37137
- $[14] = t8;
37138
- $[15] = t9;
37989
+ let t14;
37990
+ if ($[18] !== children || $[19] !== t13) {
37991
+ t14 = /* @__PURE__ */ jsx("div", { ref: scrollContainerRef, className: "flex-1 overflow-x-auto no-scrollbar min-w-0", onScroll: checkScroll, style: t8, children: /* @__PURE__ */ jsx(TabsPrimitive.List, { className: t13, children }) });
37992
+ $[18] = children;
37993
+ $[19] = t13;
37994
+ $[20] = t14;
37139
37995
  } else {
37140
- t9 = $[15];
37996
+ t14 = $[20];
37141
37997
  }
37142
- let t10;
37143
- if ($[16] !== isScrollable || $[17] !== showRightScroll) {
37144
- t10 = isScrollable && /* @__PURE__ */ jsx("button", { type: "button", disabled: !showRightScroll, onClick: () => scroll("right"), className: cls("flex-shrink-0 z-10 flex items-center justify-center rounded-md px-0.5 py-1.5 transition-all h-10 w-6", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400", "disabled:pointer-events-none disabled:opacity-0", "text-surface-600 dark:text-surface-400 hover:bg-surface-200 dark:hover:bg-surface-800", "ml-1 bg-surface-50 dark:bg-surface-900 border", defaultBorderMixin), children: /* @__PURE__ */ jsx(ChevronRightIcon, { size: "small" }) });
37145
- $[16] = isScrollable;
37146
- $[17] = showRightScroll;
37147
- $[18] = t10;
37998
+ let t15;
37999
+ if ($[21] !== isScrollable || $[22] !== mode || $[23] !== showRightScroll) {
38000
+ t15 = isScrollable && /* @__PURE__ */ jsx("button", { type: "button", disabled: !showRightScroll, onClick: () => scroll("right"), className: cls("flex-shrink-0 z-10 flex items-center justify-center rounded-md px-0.5 py-1.5 transition-all h-10 w-6", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400", "disabled:pointer-events-none disabled:opacity-0", "text-surface-600 dark:text-surface-400 hover:bg-surface-200 dark:hover:bg-surface-800", mode === "primary" && "ml-1 bg-surface-50 dark:bg-surface-900 border", mode === "primary" && defaultBorderMixin, mode === "secondary" && "ml-1"), children: /* @__PURE__ */ jsx(ChevronRightIcon, { size: "small" }) });
38001
+ $[21] = isScrollable;
38002
+ $[22] = mode;
38003
+ $[23] = showRightScroll;
38004
+ $[24] = t15;
37148
38005
  } else {
37149
- t10 = $[18];
38006
+ t15 = $[24];
37150
38007
  }
37151
- let t11;
37152
- if ($[19] !== onValueChange || $[20] !== t10 || $[21] !== t5 || $[22] !== t6 || $[23] !== t9 || $[24] !== value) {
37153
- t11 = /* @__PURE__ */ jsxs(TabsPrimitive.Root, { value, onValueChange, className: t5, children: [
37154
- t6,
37155
- t9,
37156
- t10
38008
+ let t16;
38009
+ if ($[25] !== onValueChange || $[26] !== t14 || $[27] !== t15 || $[28] !== t6 || $[29] !== t7 || $[30] !== value) {
38010
+ t16 = /* @__PURE__ */ jsxs(TabsPrimitive.Root, { value, onValueChange, className: t6, children: [
38011
+ t7,
38012
+ t14,
38013
+ t15
37157
38014
  ] });
37158
- $[19] = onValueChange;
37159
- $[20] = t10;
37160
- $[21] = t5;
37161
- $[22] = t6;
37162
- $[23] = t9;
37163
- $[24] = value;
37164
- $[25] = t11;
38015
+ $[25] = onValueChange;
38016
+ $[26] = t14;
38017
+ $[27] = t15;
38018
+ $[28] = t6;
38019
+ $[29] = t7;
38020
+ $[30] = value;
38021
+ $[31] = t16;
37165
38022
  } else {
37166
- t11 = $[25];
38023
+ t16 = $[31];
37167
38024
  }
37168
- return t11;
38025
+ let t17;
38026
+ if ($[32] !== mode || $[33] !== t16) {
38027
+ t17 = /* @__PURE__ */ jsx(TabsModeContext.Provider, { value: mode, children: t16 });
38028
+ $[32] = mode;
38029
+ $[33] = t16;
38030
+ $[34] = t17;
38031
+ } else {
38032
+ t17 = $[34];
38033
+ }
38034
+ return t17;
37169
38035
  }
37170
38036
  function Tab(t0) {
37171
- const $ = c(8);
38037
+ const $ = c(15);
37172
38038
  const {
37173
38039
  value,
37174
38040
  className,
@@ -37176,27 +38042,46 @@ function Tab(t0) {
37176
38042
  children,
37177
38043
  disabled
37178
38044
  } = t0;
38045
+ const mode = useContext(TabsModeContext);
38046
+ let T0;
37179
38047
  let t1;
37180
- if ($[0] !== className || $[1] !== innerClassName) {
37181
- t1 = cls("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400 focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", "data-[state=active]:bg-white data-[state=active]:text-surface-900 dark:data-[state=active]:bg-surface-950 dark:data-[state=active]:text-surface-50", className, innerClassName);
37182
- $[0] = className;
37183
- $[1] = innerClassName;
37184
- $[2] = t1;
37185
- } else {
37186
- t1 = $[2];
37187
- }
37188
38048
  let t2;
37189
- if ($[3] !== children || $[4] !== disabled || $[5] !== t1 || $[6] !== value) {
37190
- t2 = /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { value, disabled, className: t1, children });
37191
- $[3] = children;
37192
- $[4] = disabled;
37193
- $[5] = t1;
37194
- $[6] = value;
38049
+ let t3;
38050
+ if ($[0] !== className || $[1] !== disabled || $[2] !== innerClassName || $[3] !== mode || $[4] !== value) {
38051
+ const primaryClasses = cls("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400 focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", "data-[state=active]:bg-white data-[state=active]:text-surface-900 dark:data-[state=active]:bg-surface-950 dark:data-[state=active]:text-surface-50");
38052
+ const secondaryClasses = cls("inline-flex items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all", "border-b-2 border-transparent -mb-px", "focus-visible:outline-none", "disabled:pointer-events-none disabled:opacity-50", "hover:text-surface-700 dark:hover:text-surface-300", "data-[state=active]:border-b-primary data-[state=active]:text-primary dark:data-[state=active]:border-b-primary dark:data-[state=active]:text-primary-dark");
38053
+ T0 = TabsPrimitive.Trigger;
38054
+ t1 = value;
38055
+ t2 = disabled;
38056
+ t3 = cls(mode === "secondary" ? secondaryClasses : primaryClasses, className, innerClassName);
38057
+ $[0] = className;
38058
+ $[1] = disabled;
38059
+ $[2] = innerClassName;
38060
+ $[3] = mode;
38061
+ $[4] = value;
38062
+ $[5] = T0;
38063
+ $[6] = t1;
37195
38064
  $[7] = t2;
38065
+ $[8] = t3;
37196
38066
  } else {
38067
+ T0 = $[5];
38068
+ t1 = $[6];
37197
38069
  t2 = $[7];
38070
+ t3 = $[8];
37198
38071
  }
37199
- return t2;
38072
+ let t4;
38073
+ if ($[9] !== T0 || $[10] !== children || $[11] !== t1 || $[12] !== t2 || $[13] !== t3) {
38074
+ t4 = /* @__PURE__ */ jsx(T0, { value: t1, disabled: t2, className: t3, children });
38075
+ $[9] = T0;
38076
+ $[10] = children;
38077
+ $[11] = t1;
38078
+ $[12] = t2;
38079
+ $[13] = t3;
38080
+ $[14] = t4;
38081
+ } else {
38082
+ t4 = $[14];
38083
+ }
38084
+ return t4;
37200
38085
  }
37201
38086
  const Table = React__default.memo((t0) => {
37202
38087
  const $ = c(12);
@@ -37707,14 +38592,14 @@ function DebouncedTextField(props) {
37707
38592
  return t5;
37708
38593
  }
37709
38594
  function Skeleton(t0) {
37710
- const $ = c(8);
38595
+ const $ = c(10);
37711
38596
  const {
37712
38597
  width,
37713
38598
  height,
37714
38599
  className
37715
38600
  } = t0;
37716
- const t1 = width ? `${width}px` : "100%";
37717
- const t2 = height ? `${height}px` : "12px";
38601
+ const t1 = width !== void 0 ? `${width}px` : void 0;
38602
+ const t2 = height !== void 0 ? `${height}px` : void 0;
37718
38603
  let t3;
37719
38604
  if ($[0] !== t1 || $[1] !== t2) {
37720
38605
  t3 = {
@@ -37727,24 +38612,28 @@ function Skeleton(t0) {
37727
38612
  } else {
37728
38613
  t3 = $[2];
37729
38614
  }
37730
- let t4;
37731
- if ($[3] !== className) {
37732
- t4 = cls("block", "bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md", "animate-pulse", "max-w-full max-h-full", className);
38615
+ const t4 = width === void 0 ? "w-full" : "";
38616
+ const t5 = height === void 0 ? "h-3" : "";
38617
+ let t6;
38618
+ if ($[3] !== className || $[4] !== t4 || $[5] !== t5) {
38619
+ t6 = cls("block", "bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md", "animate-pulse", "max-w-full max-h-full", t4, t5, className);
37733
38620
  $[3] = className;
37734
38621
  $[4] = t4;
38622
+ $[5] = t5;
38623
+ $[6] = t6;
37735
38624
  } else {
37736
- t4 = $[4];
38625
+ t6 = $[6];
37737
38626
  }
37738
- let t5;
37739
- if ($[5] !== t3 || $[6] !== t4) {
37740
- t5 = /* @__PURE__ */ jsx("span", { style: t3, className: t4 });
37741
- $[5] = t3;
37742
- $[6] = t4;
37743
- $[7] = t5;
38627
+ let t7;
38628
+ if ($[7] !== t3 || $[8] !== t6) {
38629
+ t7 = /* @__PURE__ */ jsx("span", { style: t3, className: t6 });
38630
+ $[7] = t3;
38631
+ $[8] = t6;
38632
+ $[9] = t7;
37744
38633
  } else {
37745
- t5 = $[7];
38634
+ t7 = $[9];
37746
38635
  }
37747
- return t5;
38636
+ return t7;
37748
38637
  }
37749
38638
  function ToggleButtonGroup(t0) {
37750
38639
  const $ = c(12);
@@ -38278,6 +39167,7 @@ export {
38278
39167
  DataSaverOnIcon,
38279
39168
  DataThresholdingIcon,
38280
39169
  DataUsageIcon,
39170
+ DatabaseIcon,
38281
39171
  DatasetIcon,
38282
39172
  DatasetLinkedIcon,
38283
39173
  DateRangeIcon,
@@ -38550,6 +39440,7 @@ export {
38550
39440
  FireHydrantAltIcon,
38551
39441
  FireTruckIcon,
38552
39442
  FireplaceIcon,
39443
+ FirestoreIcon,
38553
39444
  FirstPageIcon,
38554
39445
  FitScreenIcon,
38555
39446
  FitbitIcon,
@@ -39409,6 +40300,7 @@ export {
39409
40300
  RequestPageIcon,
39410
40301
  RequestQuoteIcon,
39411
40302
  ResetTvIcon,
40303
+ ResizablePanels,
39412
40304
  RestartAltIcon,
39413
40305
  RestaurantIcon,
39414
40306
  RestaurantMenuIcon,
@@ -39483,6 +40375,8 @@ export {
39483
40375
  SearchBar,
39484
40376
  SearchIcon,
39485
40377
  SearchOffIcon,
40378
+ SearchableSelect,
40379
+ SearchableSelectItem,
39486
40380
  SecurityIcon,
39487
40381
  SecurityUpdateGoodIcon,
39488
40382
  SecurityUpdateIcon,