akeyless-client-commons 1.0.127 → 1.0.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // src/components/utils/Checkboxes.tsx
1
+ // src/helpers/firebase.ts
2
2
  function _array_like_to_array(arr, len) {
3
3
  if (len == null || len > arr.length) len = arr.length;
4
4
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -358,114 +358,6 @@ function _ts_generator(thisArg, body) {
358
358
  };
359
359
  }
360
360
  }
361
- import { jsx, jsxs } from "react/jsx-runtime";
362
- var Checkbox = function(param) {
363
- var id = param.id, checked = param.checked, setChecked = param.setChecked, _param_rotate = param.rotate, rotate = _param_rotate === void 0 ? true : _param_rotate, style = param.style;
364
- return /* @__PURE__ */ jsxs("div", {
365
- className: "checkbox-wrapper-51",
366
- children: [
367
- /* @__PURE__ */ jsx("input", {
368
- type: "checkbox",
369
- id: id,
370
- className: "hidden",
371
- checked: checked,
372
- onChange: function() {
373
- return setChecked(!checked);
374
- }
375
- }),
376
- /* @__PURE__ */ jsxs("label", {
377
- htmlFor: id,
378
- className: "relative block w-[42px] h-[24px] cursor-pointer transform-gpu",
379
- children: [
380
- /* @__PURE__ */ jsx("div", {
381
- className: "relative top-[1px] left-[1px] w-[40px] h-[22px] rounded-[12px] transition-colors duration-200 ease-in-out ".concat(checked ? "bg-[#52d66b]" : "bg-[#c8ccd4]")
382
- }),
383
- /* @__PURE__ */ jsx("span", {
384
- className: "absolute ".concat(rotate ? "left-0" : "right-0", " top-0 w-[24px] h-[24px] bg-white rounded-full shadow-md transition-transform duration-200 ease-in-out ").concat(checked ? rotate ? "translate-x-[18px]" : "-translate-x-[18px]" : ""),
385
- children: /* @__PURE__ */ jsx("svg", {
386
- width: "10px",
387
- height: "10px",
388
- viewBox: "0 0 10 10",
389
- className: "m-[7px] fill-none",
390
- children: /* @__PURE__ */ jsx("path", {
391
- d: "M5,1 L5,1 C2.790861,1 1,2.790861 1,5 L1,5 C1,7.209139 2.790861,9 5,9 L5,9 C7.209139,9 9,7.209139 9,5 L9,5 C9,2.790861 7.209139,1 5,1 L5,9 L5,1 Z",
392
- strokeWidth: "2",
393
- strokeLinecap: "round",
394
- strokeLinejoin: "round",
395
- className: "transition-all duration-500 linear",
396
- stroke: checked ? "#52d66b" : "#c8ccd4",
397
- style: {
398
- strokeDasharray: checked ? "25" : "24",
399
- strokeDashoffset: checked ? "25" : "0"
400
- }
401
- })
402
- })
403
- })
404
- ]
405
- })
406
- ]
407
- });
408
- };
409
- // src/components/utils/ErrorBoundary.tsx
410
- import React from "react";
411
- import { jsx as jsx2 } from "react/jsx-runtime";
412
- var ErrorBoundary = /*#__PURE__*/ function(_React_Component) {
413
- "use strict";
414
- _inherits(ErrorBoundary, _React_Component);
415
- function ErrorBoundary(props) {
416
- _class_call_check(this, ErrorBoundary);
417
- var _this;
418
- _this = _call_super(this, ErrorBoundary, [
419
- props
420
- ]);
421
- _this.state = {
422
- hasError: false,
423
- error: null,
424
- errorInfo: null
425
- };
426
- return _this;
427
- }
428
- _create_class(ErrorBoundary, [
429
- {
430
- key: "componentDidCatch",
431
- value: function componentDidCatch(error, errorInfo) {
432
- console.error("Error:", error);
433
- console.log("Error Info:", errorInfo);
434
- this.setState({
435
- errorInfo: errorInfo
436
- });
437
- }
438
- },
439
- {
440
- key: "render",
441
- value: function render() {
442
- if (this.state.hasError) {
443
- return this.props.fallback || /* @__PURE__ */ jsx2("div", {
444
- className: "full center",
445
- children: /* @__PURE__ */ jsx2("h1", {
446
- children: "\u05DE\u05E9\u05D4\u05D5 \u05D4\u05E9\u05EA\u05D1\u05E9...."
447
- })
448
- });
449
- }
450
- return this.props.children;
451
- }
452
- }
453
- ], [
454
- {
455
- key: "getDerivedStateFromError",
456
- value: function getDerivedStateFromError(error) {
457
- return {
458
- hasError: true,
459
- error: error
460
- };
461
- }
462
- }
463
- ]);
464
- return ErrorBoundary;
465
- }(React.Component);
466
- // src/components/utils/loaders.tsx
467
- import { ClipLoader } from "react-spinners";
468
- // src/helpers/firebase.ts
469
361
  import moment from "moment";
470
362
  import { initializeApp } from "firebase/app";
471
363
  import { getStorage } from "firebase/storage";
@@ -1017,7 +909,126 @@ var baseDomain = mode === "qa" ? "https://nx-api.xyz/api" : "https://nx-api.info
1017
909
  var devicesDomain = isLocal ? "http://localhost:9001/api/devices" : baseDomain + "/devices";
1018
910
  var biDomain = isLocal ? "http://localhost:9002/api/bi" : baseDomain + "/bi";
1019
911
  var callCenterDomain = isLocal ? "http://localhost:9003/api/call-center" : baseDomain + "/call-center";
912
+ // src/components/utils/Checkboxes.tsx
913
+ import { useState } from "react";
914
+ import { jsx, jsxs } from "react/jsx-runtime";
915
+ var Checkbox = function(param) {
916
+ var id = param.id, checked = param.checked, setChecked = param.setChecked, _param_rotate = param.rotate, rotate = _param_rotate === void 0 ? true : _param_rotate, className = param.className, circleClassName = param.circleClassName, containerClassName = param.containerClassName, elementClassName = param.elementClassName, name = param.name;
917
+ var isControlled = typeof checked === "boolean" && typeof setChecked === "function";
918
+ var _useState = _sliced_to_array(useState(false), 2), internalChecked = _useState[0], setInternalChecked = _useState[1];
919
+ var actualChecked = isControlled ? checked : internalChecked;
920
+ var toggleChecked = function() {
921
+ if (isControlled) {
922
+ setChecked(!checked);
923
+ } else {
924
+ setInternalChecked(function(prev) {
925
+ return !prev;
926
+ });
927
+ }
928
+ };
929
+ return /* @__PURE__ */ jsxs("div", {
930
+ className: containerClassName,
931
+ children: [
932
+ /* @__PURE__ */ jsx("input", {
933
+ name: name,
934
+ type: "checkbox",
935
+ id: id,
936
+ className: "hidden",
937
+ checked: actualChecked,
938
+ onChange: toggleChecked
939
+ }),
940
+ /* @__PURE__ */ jsxs("label", {
941
+ htmlFor: id,
942
+ className: cn("relative block w-[42px] h-[24px] cursor-pointer transform-gpu", className),
943
+ children: [
944
+ /* @__PURE__ */ jsx("div", {
945
+ className: cn("relative top-[1px] left-[1px] w-[40px] h-[22px] rounded-[12px] transition-colors duration-200 ease-in-out ".concat(actualChecked ? "bg-[#52d66b]" : "bg-[#c8ccd4]"), elementClassName)
946
+ }),
947
+ /* @__PURE__ */ jsx("span", {
948
+ className: cn("absolute ".concat(rotate ? "left-0" : "right-0", " top-0 w-[24px] h-[24px] bg-white rounded-full shadow-md transition-transform duration-200 ease-in-out ").concat(actualChecked ? rotate ? "translate-x-[18px]" : "-translate-x-[18px]" : ""), circleClassName),
949
+ children: /* @__PURE__ */ jsx("svg", {
950
+ width: "10px",
951
+ height: "10px",
952
+ viewBox: "0 0 10 10",
953
+ className: "m-[7px] fill-none",
954
+ children: /* @__PURE__ */ jsx("path", {
955
+ d: "M5,1 L5,1 C2.790861,1 1,2.790861 1,5 L1,5 C1,7.209139 2.790861,9 5,9 L5,9 C7.209139,9 9,7.209139 9,5 L9,5 C9,2.790861 7.209139,1 5,1 L5,9 L5,1 Z",
956
+ strokeWidth: "2",
957
+ strokeLinecap: "round",
958
+ strokeLinejoin: "round",
959
+ className: "transition-all duration-500 linear",
960
+ stroke: actualChecked ? "#52d66b" : "#c8ccd4",
961
+ style: {
962
+ strokeDasharray: actualChecked ? "25" : "24",
963
+ strokeDashoffset: actualChecked ? "25" : "0"
964
+ }
965
+ })
966
+ })
967
+ })
968
+ ]
969
+ })
970
+ ]
971
+ });
972
+ };
973
+ // src/components/utils/ErrorBoundary.tsx
974
+ import React2 from "react";
975
+ import { jsx as jsx2 } from "react/jsx-runtime";
976
+ var ErrorBoundary = /*#__PURE__*/ function(_React2_Component) {
977
+ "use strict";
978
+ _inherits(ErrorBoundary, _React2_Component);
979
+ function ErrorBoundary(props) {
980
+ _class_call_check(this, ErrorBoundary);
981
+ var _this;
982
+ _this = _call_super(this, ErrorBoundary, [
983
+ props
984
+ ]);
985
+ _this.state = {
986
+ hasError: false,
987
+ error: null,
988
+ errorInfo: null
989
+ };
990
+ return _this;
991
+ }
992
+ _create_class(ErrorBoundary, [
993
+ {
994
+ key: "componentDidCatch",
995
+ value: function componentDidCatch(error, errorInfo) {
996
+ console.error("Error:", error);
997
+ console.log("Error Info:", errorInfo);
998
+ this.setState({
999
+ errorInfo: errorInfo
1000
+ });
1001
+ }
1002
+ },
1003
+ {
1004
+ key: "render",
1005
+ value: function render() {
1006
+ if (this.state.hasError) {
1007
+ return this.props.fallback || /* @__PURE__ */ jsx2("div", {
1008
+ className: "full center",
1009
+ children: /* @__PURE__ */ jsx2("h1", {
1010
+ children: "\u05DE\u05E9\u05D4\u05D5 \u05D4\u05E9\u05EA\u05D1\u05E9...."
1011
+ })
1012
+ });
1013
+ }
1014
+ return this.props.children;
1015
+ }
1016
+ }
1017
+ ], [
1018
+ {
1019
+ key: "getDerivedStateFromError",
1020
+ value: function getDerivedStateFromError(error) {
1021
+ return {
1022
+ hasError: true,
1023
+ error: error
1024
+ };
1025
+ }
1026
+ }
1027
+ ]);
1028
+ return ErrorBoundary;
1029
+ }(React2.Component);
1020
1030
  // src/components/utils/loaders.tsx
1031
+ import { ClipLoader } from "react-spinners";
1021
1032
  import { jsx as jsx3 } from "react/jsx-runtime";
1022
1033
  var Loader = function(param) {
1023
1034
  var color = param.color, size3 = param.size, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
@@ -1044,7 +1055,7 @@ var Version = function(param) {
1044
1055
  });
1045
1056
  };
1046
1057
  // src/components/utils/LoginWithGoogle.tsx
1047
- import { useState } from "react";
1058
+ import { useState as useState2 } from "react";
1048
1059
  import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
1049
1060
  var GoogleSvg = function(param) {
1050
1061
  var _param_width = param.width, width = _param_width === void 0 ? "20px" : _param_width, _param_height = param.height, height = _param_height === void 0 ? "20px" : _param_height, _param_viewBox = param.viewBox, viewBox = _param_viewBox === void 0 ? "0 0 256 266" : _param_viewBox;
@@ -1079,7 +1090,7 @@ var LoginWithGoogleButton = function(param) {
1079
1090
  color: "#000"
1080
1091
  } : _param_loaderProps, googleSvgProps = param.googleSvgProps, buttonProps = param.buttonProps, appName = param.appName;
1081
1092
  var signInWithGoogle = useLoginWithGoogle();
1082
- var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
1093
+ var _useState2 = _sliced_to_array(useState2(false), 2), isLoading = _useState2[0], setIsLoading = _useState2[1];
1083
1094
  var onLoginClick = /*#__PURE__*/ function() {
1084
1095
  var _ref = _async_to_generator(function(e) {
1085
1096
  var user, dbUser, token, userPermissions, error;
@@ -1419,11 +1430,11 @@ var exportToExcelSvg = function(width, height, viewBox) {
1419
1430
  });
1420
1431
  };
1421
1432
  // src/components/table/hooks.tsx
1422
- import { useContext as useContext2, useDeferredValue, useState as useState3, useTransition } from "react";
1433
+ import { useContext as useContext2, useDeferredValue, useState as useState4, useTransition } from "react";
1423
1434
  import { create } from "zustand";
1424
1435
  import { isEqual as isEqual3 } from "lodash";
1425
1436
  // src/components/table/Table.tsx
1426
- import React2, { createContext, useMemo } from "react";
1437
+ import React3, { createContext, useMemo } from "react";
1427
1438
  import { isEqual as isEqual2 } from "lodash";
1428
1439
  import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
1429
1440
  var TableContext = createContext(null);
@@ -1580,7 +1591,7 @@ var TableBase = function(props) {
1580
1591
  var areEqual = function(prevProps, nextProps) {
1581
1592
  return isEqual2(prevProps, nextProps);
1582
1593
  };
1583
- var Table = React2.memo(TableBase, areEqual);
1594
+ var Table = React3.memo(TableBase, areEqual);
1584
1595
  Table.displayName = "Table";
1585
1596
  // src/components/table/hooks.tsx
1586
1597
  var useTableContext = function() {
@@ -1595,8 +1606,8 @@ var useFilter = function(param) {
1595
1606
  var initFilter = filterableColumns.reduce(function(acc, col) {
1596
1607
  return _object_spread_props(_object_spread({}, acc), _define_property({}, col.dataKey, []));
1597
1608
  }, {});
1598
- var _useState3 = _sliced_to_array(useState3(initFilter), 2), filters = _useState3[0], setFilters = _useState3[1];
1599
- var _useState31 = _sliced_to_array(useState3(""), 2), filterPopupsDisplay = _useState31[0], setFilterPopupsDisplay = _useState31[1];
1609
+ var _useState4 = _sliced_to_array(useState4(initFilter), 2), filters = _useState4[0], setFilters = _useState4[1];
1610
+ var _useState41 = _sliced_to_array(useState4(""), 2), filterPopupsDisplay = _useState41[0], setFilterPopupsDisplay = _useState41[1];
1600
1611
  var filterOptions = filterableColumns.reduce(function(acc, col) {
1601
1612
  acc[col.dataKey] = Array.from(new Set(data.map(function(item) {
1602
1613
  return item[col.dataKey];
@@ -1642,8 +1653,8 @@ var useFilter = function(param) {
1642
1653
  };
1643
1654
  };
1644
1655
  var useSort = function() {
1645
- var _useState3 = _sliced_to_array(useState3(null), 2), sortColumn = _useState3[0], setSortColumn = _useState3[1];
1646
- var _useState31 = _sliced_to_array(useState3(null), 2), sortOrder = _useState31[0], setSortOrder = _useState31[1];
1656
+ var _useState4 = _sliced_to_array(useState4(null), 2), sortColumn = _useState4[0], setSortColumn = _useState4[1];
1657
+ var _useState41 = _sliced_to_array(useState4(null), 2), sortOrder = _useState41[0], setSortOrder = _useState41[1];
1647
1658
  var handleSort = function(columnIndex) {
1648
1659
  var newSortOrder = "asc";
1649
1660
  if (sortColumn === columnIndex && sortOrder === "asc") {
@@ -1668,14 +1679,14 @@ var useSort = function() {
1668
1679
  };
1669
1680
  };
1670
1681
  var useDisplayToggle = function() {
1671
- var _useState3 = _sliced_to_array(useState3(false), 2), displayAllRows = _useState3[0], setDisplayAllRows = _useState3[1];
1682
+ var _useState4 = _sliced_to_array(useState4(false), 2), displayAllRows = _useState4[0], setDisplayAllRows = _useState4[1];
1672
1683
  return {
1673
1684
  displayAllRows: displayAllRows,
1674
1685
  setDisplayAllRows: setDisplayAllRows
1675
1686
  };
1676
1687
  };
1677
1688
  var useSearch = function() {
1678
- var _useState3 = _sliced_to_array(useState3(""), 2), searchQuery = _useState3[0], setSearchQuery = _useState3[1];
1689
+ var _useState4 = _sliced_to_array(useState4(""), 2), searchQuery = _useState4[0], setSearchQuery = _useState4[1];
1679
1690
  var _useTransition = _sliced_to_array(useTransition(), 2), isPending = _useTransition[0], startTransition = _useTransition[1];
1680
1691
  var deferredSearchQuery = useDeferredValue(searchQuery);
1681
1692
  var handleSearch = function(e) {
@@ -1729,7 +1740,7 @@ function Badge(_param) {
1729
1740
  // src/components/ui/button.tsx
1730
1741
  import { Slot } from "@radix-ui/react-slot";
1731
1742
  import { cva as cva2 } from "class-variance-authority";
1732
- import * as React3 from "react";
1743
+ import * as React4 from "react";
1733
1744
  import { jsx as jsx9 } from "react/jsx-runtime";
1734
1745
  var buttonVariants = cva2("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", {
1735
1746
  variants: {
@@ -1753,7 +1764,7 @@ var buttonVariants = cva2("inline-flex items-center justify-center gap-2 whitesp
1753
1764
  size: "default"
1754
1765
  }
1755
1766
  });
1756
- var Button = React3.forwardRef(function(_param, ref) {
1767
+ var Button = React4.forwardRef(function(_param, ref) {
1757
1768
  var className = _param.className, variant = _param.variant, size3 = _param.size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, props = _object_without_properties(_param, [
1758
1769
  "className",
1759
1770
  "variant",
@@ -1773,9 +1784,9 @@ var Button = React3.forwardRef(function(_param, ref) {
1773
1784
  });
1774
1785
  Button.displayName = "Button";
1775
1786
  // src/components/ui/input.tsx
1776
- import * as React4 from "react";
1787
+ import * as React5 from "react";
1777
1788
  import { jsx as jsx10 } from "react/jsx-runtime";
1778
- var Input = React4.forwardRef(function(_param, ref) {
1789
+ var Input = React5.forwardRef(function(_param, ref) {
1779
1790
  var className = _param.className, type = _param.type, props = _object_without_properties(_param, [
1780
1791
  "className",
1781
1792
  "type"
@@ -1788,10 +1799,10 @@ var Input = React4.forwardRef(function(_param, ref) {
1788
1799
  });
1789
1800
  Input.displayName = "Input";
1790
1801
  // src/components/ui/progress.tsx
1791
- import * as React5 from "react";
1802
+ import * as React6 from "react";
1792
1803
  import * as ProgressPrimitive from "@radix-ui/react-progress";
1793
1804
  import { jsx as jsx11 } from "react/jsx-runtime";
1794
- var ProgressComponent = React5.forwardRef(function(_param, ref) {
1805
+ var ProgressComponent = React6.forwardRef(function(_param, ref) {
1795
1806
  var className = _param.className, value = _param.value, containerClassName = _param.containerClassName, indicatorClassName = _param.indicatorClassName, showValueClassName = _param.showValueClassName, _param_showValue = _param.showValue, showValue = _param_showValue === void 0 ? false : _param_showValue, props = _object_without_properties(_param, [
1796
1807
  "className",
1797
1808
  "value",
@@ -1824,19 +1835,19 @@ ProgressComponent.displayName = ProgressPrimitive.Root.displayName;
1824
1835
  import ReactDOM2 from "react-dom";
1825
1836
  import { Command as CommandPrimitive2, useCommandState } from "cmdk";
1826
1837
  import { X as X2 } from "lucide-react";
1827
- import React9 from "react";
1838
+ import React10 from "react";
1828
1839
  import { forwardRef as forwardRef6, useEffect as useEffect4, useCallback as useCallback3, useMemo as useMemo4, useRef as useRef3 } from "react";
1829
1840
  // src/components/ui/command.tsx
1830
1841
  import { Command as CommandPrimitive } from "cmdk";
1831
1842
  import { Search as Search2 } from "lucide-react";
1832
- import * as React7 from "react";
1843
+ import * as React8 from "react";
1833
1844
  // src/components/ui/dialog.tsx
1834
- import * as React6 from "react";
1845
+ import * as React7 from "react";
1835
1846
  import * as DialogPrimitive from "@radix-ui/react-dialog";
1836
1847
  import { X } from "lucide-react";
1837
1848
  import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
1838
1849
  var DialogPortal = DialogPrimitive.Portal;
1839
- var DialogOverlay = React6.forwardRef(function(_param, ref) {
1850
+ var DialogOverlay = React7.forwardRef(function(_param, ref) {
1840
1851
  var className = _param.className, props = _object_without_properties(_param, [
1841
1852
  "className"
1842
1853
  ]);
@@ -1846,7 +1857,7 @@ var DialogOverlay = React6.forwardRef(function(_param, ref) {
1846
1857
  }, props));
1847
1858
  });
1848
1859
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1849
- var DialogContent = React6.forwardRef(function(_param, ref) {
1860
+ var DialogContent = React7.forwardRef(function(_param, ref) {
1850
1861
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
1851
1862
  "className",
1852
1863
  "children"
@@ -1896,7 +1907,7 @@ var DialogFooter = function(_param) {
1896
1907
  }, props));
1897
1908
  };
1898
1909
  DialogFooter.displayName = "DialogFooter";
1899
- var DialogTitle = React6.forwardRef(function(_param, ref) {
1910
+ var DialogTitle = React7.forwardRef(function(_param, ref) {
1900
1911
  var className = _param.className, props = _object_without_properties(_param, [
1901
1912
  "className"
1902
1913
  ]);
@@ -1906,7 +1917,7 @@ var DialogTitle = React6.forwardRef(function(_param, ref) {
1906
1917
  }, props));
1907
1918
  });
1908
1919
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
1909
- var DialogDescription = React6.forwardRef(function(_param, ref) {
1920
+ var DialogDescription = React7.forwardRef(function(_param, ref) {
1910
1921
  var className = _param.className, props = _object_without_properties(_param, [
1911
1922
  "className"
1912
1923
  ]);
@@ -1918,7 +1929,7 @@ var DialogDescription = React6.forwardRef(function(_param, ref) {
1918
1929
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
1919
1930
  // src/components/ui/command.tsx
1920
1931
  import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1921
- var Command = React7.forwardRef(function(_param, ref) {
1932
+ var Command = React8.forwardRef(function(_param, ref) {
1922
1933
  var className = _param.className, props = _object_without_properties(_param, [
1923
1934
  "className"
1924
1935
  ]);
@@ -1928,7 +1939,7 @@ var Command = React7.forwardRef(function(_param, ref) {
1928
1939
  }, props));
1929
1940
  });
1930
1941
  Command.displayName = CommandPrimitive.displayName;
1931
- var CommandInput = React7.forwardRef(function(_param, ref) {
1942
+ var CommandInput = React8.forwardRef(function(_param, ref) {
1932
1943
  var className = _param.className, withSearchIcon = _param.withSearchIcon, props = _object_without_properties(_param, [
1933
1944
  "className",
1934
1945
  "withSearchIcon"
@@ -1950,7 +1961,7 @@ var CommandInput = React7.forwardRef(function(_param, ref) {
1950
1961
  });
1951
1962
  });
1952
1963
  CommandInput.displayName = CommandPrimitive.Input.displayName;
1953
- var CommandList = React7.forwardRef(function(_param, ref) {
1964
+ var CommandList = React8.forwardRef(function(_param, ref) {
1954
1965
  var className = _param.className, props = _object_without_properties(_param, [
1955
1966
  "className"
1956
1967
  ]);
@@ -1960,14 +1971,14 @@ var CommandList = React7.forwardRef(function(_param, ref) {
1960
1971
  }, props));
1961
1972
  });
1962
1973
  CommandList.displayName = CommandPrimitive.List.displayName;
1963
- var CommandEmpty = React7.forwardRef(function(props, ref) {
1974
+ var CommandEmpty = React8.forwardRef(function(props, ref) {
1964
1975
  return /* @__PURE__ */ jsx13(CommandPrimitive.Empty, _object_spread({
1965
1976
  ref: ref,
1966
1977
  className: "py-6 text-center text-sm"
1967
1978
  }, props));
1968
1979
  });
1969
1980
  CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
1970
- var CommandGroup = React7.forwardRef(function(_param, ref) {
1981
+ var CommandGroup = React8.forwardRef(function(_param, ref) {
1971
1982
  var className = _param.className, props = _object_without_properties(_param, [
1972
1983
  "className"
1973
1984
  ]);
@@ -1977,7 +1988,7 @@ var CommandGroup = React7.forwardRef(function(_param, ref) {
1977
1988
  }, props));
1978
1989
  });
1979
1990
  CommandGroup.displayName = CommandPrimitive.Group.displayName;
1980
- var CommandSeparator = React7.forwardRef(function(_param, ref) {
1991
+ var CommandSeparator = React8.forwardRef(function(_param, ref) {
1981
1992
  var className = _param.className, props = _object_without_properties(_param, [
1982
1993
  "className"
1983
1994
  ]);
@@ -1987,7 +1998,7 @@ var CommandSeparator = React7.forwardRef(function(_param, ref) {
1987
1998
  }, props));
1988
1999
  });
1989
2000
  CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
1990
- var CommandItem = React7.forwardRef(function(_param, ref) {
2001
+ var CommandItem = React8.forwardRef(function(_param, ref) {
1991
2002
  var className = _param.className, props = _object_without_properties(_param, [
1992
2003
  "className"
1993
2004
  ]);
@@ -3571,7 +3582,7 @@ var computePosition2 = function(reference, floating, options) {
3571
3582
  }));
3572
3583
  };
3573
3584
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
3574
- import * as React8 from "react";
3585
+ import * as React9 from "react";
3575
3586
  import { useLayoutEffect, useEffect as useEffect3 } from "react";
3576
3587
  import * as ReactDOM from "react-dom";
3577
3588
  var index = typeof document !== "undefined" ? useLayoutEffect : useEffect3;
@@ -3634,7 +3645,7 @@ function roundByDPR(element, value) {
3634
3645
  return Math.round(value * dpr) / dpr;
3635
3646
  }
3636
3647
  function useLatestRef(value) {
3637
- var ref = React8.useRef(value);
3648
+ var ref = React9.useRef(value);
3638
3649
  index(function() {
3639
3650
  ref.current = value;
3640
3651
  });
@@ -3645,27 +3656,27 @@ function useFloating(options) {
3645
3656
  options = {};
3646
3657
  }
3647
3658
  var _options_placement = options.placement, placement = _options_placement === void 0 ? "bottom" : _options_placement, _options_strategy = options.strategy, strategy = _options_strategy === void 0 ? "absolute" : _options_strategy, _options_middleware = options.middleware, middleware = _options_middleware === void 0 ? [] : _options_middleware, platform2 = options.platform, tmp = options.elements, _ref = tmp === void 0 ? {} : tmp, externalReference = _ref.reference, externalFloating = _ref.floating, _options_transform = options.transform, transform = _options_transform === void 0 ? true : _options_transform, whileElementsMounted = options.whileElementsMounted, open = options.open;
3648
- var _React8_useState = _sliced_to_array(React8.useState({
3659
+ var _React9_useState = _sliced_to_array(React9.useState({
3649
3660
  x: 0,
3650
3661
  y: 0,
3651
3662
  strategy: strategy,
3652
3663
  placement: placement,
3653
3664
  middlewareData: {},
3654
3665
  isPositioned: false
3655
- }), 2), data = _React8_useState[0], setData = _React8_useState[1];
3656
- var _React8_useState1 = _sliced_to_array(React8.useState(middleware), 2), latestMiddleware = _React8_useState1[0], setLatestMiddleware = _React8_useState1[1];
3666
+ }), 2), data = _React9_useState[0], setData = _React9_useState[1];
3667
+ var _React9_useState1 = _sliced_to_array(React9.useState(middleware), 2), latestMiddleware = _React9_useState1[0], setLatestMiddleware = _React9_useState1[1];
3657
3668
  if (!deepEqual(latestMiddleware, middleware)) {
3658
3669
  setLatestMiddleware(middleware);
3659
3670
  }
3660
- var _React8_useState2 = _sliced_to_array(React8.useState(null), 2), _reference = _React8_useState2[0], _setReference = _React8_useState2[1];
3661
- var _React8_useState3 = _sliced_to_array(React8.useState(null), 2), _floating = _React8_useState3[0], _setFloating = _React8_useState3[1];
3662
- var setReference = React8.useCallback(function(node) {
3671
+ var _React9_useState2 = _sliced_to_array(React9.useState(null), 2), _reference = _React9_useState2[0], _setReference = _React9_useState2[1];
3672
+ var _React9_useState3 = _sliced_to_array(React9.useState(null), 2), _floating = _React9_useState3[0], _setFloating = _React9_useState3[1];
3673
+ var setReference = React9.useCallback(function(node) {
3663
3674
  if (node !== referenceRef.current) {
3664
3675
  referenceRef.current = node;
3665
3676
  _setReference(node);
3666
3677
  }
3667
3678
  }, []);
3668
- var setFloating = React8.useCallback(function(node) {
3679
+ var setFloating = React9.useCallback(function(node) {
3669
3680
  if (node !== floatingRef.current) {
3670
3681
  floatingRef.current = node;
3671
3682
  _setFloating(node);
@@ -3673,14 +3684,14 @@ function useFloating(options) {
3673
3684
  }, []);
3674
3685
  var referenceEl = externalReference || _reference;
3675
3686
  var floatingEl = externalFloating || _floating;
3676
- var referenceRef = React8.useRef(null);
3677
- var floatingRef = React8.useRef(null);
3678
- var dataRef = React8.useRef(data);
3687
+ var referenceRef = React9.useRef(null);
3688
+ var floatingRef = React9.useRef(null);
3689
+ var dataRef = React9.useRef(data);
3679
3690
  var hasWhileElementsMounted = whileElementsMounted != null;
3680
3691
  var whileElementsMountedRef = useLatestRef(whileElementsMounted);
3681
3692
  var platformRef = useLatestRef(platform2);
3682
3693
  var openRef = useLatestRef(open);
3683
- var update = React8.useCallback(function() {
3694
+ var update = React9.useCallback(function() {
3684
3695
  if (!referenceRef.current || !floatingRef.current) {
3685
3696
  return;
3686
3697
  }
@@ -3726,7 +3737,7 @@ function useFloating(options) {
3726
3737
  }, [
3727
3738
  open
3728
3739
  ]);
3729
- var isMountedRef = React8.useRef(false);
3740
+ var isMountedRef = React9.useRef(false);
3730
3741
  index(function() {
3731
3742
  isMountedRef.current = true;
3732
3743
  return function() {
@@ -3749,7 +3760,7 @@ function useFloating(options) {
3749
3760
  whileElementsMountedRef,
3750
3761
  hasWhileElementsMounted
3751
3762
  ]);
3752
- var refs = React8.useMemo(function() {
3763
+ var refs = React9.useMemo(function() {
3753
3764
  return {
3754
3765
  reference: referenceRef,
3755
3766
  floating: floatingRef,
@@ -3760,7 +3771,7 @@ function useFloating(options) {
3760
3771
  setReference,
3761
3772
  setFloating
3762
3773
  ]);
3763
- var elements = React8.useMemo(function() {
3774
+ var elements = React9.useMemo(function() {
3764
3775
  return {
3765
3776
  reference: referenceEl,
3766
3777
  floating: floatingEl
@@ -3769,7 +3780,7 @@ function useFloating(options) {
3769
3780
  referenceEl,
3770
3781
  floatingEl
3771
3782
  ]);
3772
- var floatingStyles = React8.useMemo(function() {
3783
+ var floatingStyles = React9.useMemo(function() {
3773
3784
  var initialStyles = {
3774
3785
  position: strategy,
3775
3786
  left: 0,
@@ -3799,7 +3810,7 @@ function useFloating(options) {
3799
3810
  data.x,
3800
3811
  data.y
3801
3812
  ]);
3802
- return React8.useMemo(function() {
3813
+ return React9.useMemo(function() {
3803
3814
  return _object_spread_props(_object_spread({}, data), {
3804
3815
  update: update,
3805
3816
  refs: refs,
@@ -3933,7 +3944,7 @@ var CommandEmpty2 = forwardRef6(function(_param, forwardedRef) {
3933
3944
  });
3934
3945
  CommandEmpty2.displayName = "CommandEmpty";
3935
3946
  function useDebounce(value, delay) {
3936
- var _React9_useState = _sliced_to_array(React9.useState(value), 2), debouncedValue = _React9_useState[0], setDebouncedValue = _React9_useState[1];
3947
+ var _React10_useState = _sliced_to_array(React10.useState(value), 2), debouncedValue = _React10_useState[0], setDebouncedValue = _React10_useState[1];
3937
3948
  useEffect4(function() {
3938
3949
  var timer = setTimeout(function() {
3939
3950
  return setDebouncedValue(value);
@@ -3950,7 +3961,7 @@ function useDebounce(value, delay) {
3950
3961
  var MultipleSelector = forwardRef6(function(param, ref) {
3951
3962
  var value = param.value, onChange = param.onChange, placeholder = param.placeholder, tmp = param.defaultOptions, arrayDefaultOptions = tmp === void 0 ? [] : tmp, arrayOptions = param.options, delay = param.delay, onSearch = param.onSearch, onSearchSync = param.onSearchSync, loadingIndicator = param.loadingIndicator, emptyIndicator = param.emptyIndicator, _param_maxSelected = param.maxSelected, maxSelected = _param_maxSelected === void 0 ? Number.MAX_SAFE_INTEGER : _param_maxSelected, onMaxSelected = param.onMaxSelected, _param_hidePlaceholderWhenSelected = param.hidePlaceholderWhenSelected, hidePlaceholderWhenSelected = _param_hidePlaceholderWhenSelected === void 0 ? true : _param_hidePlaceholderWhenSelected, disabled = param.disabled, groupBy = param.groupBy, className = param.className, badgeClassName = param.badgeClassName, _param_selectFirstItem = param.selectFirstItem, selectFirstItem = _param_selectFirstItem === void 0 ? true : _param_selectFirstItem, createNewOptionLabel = param.createNewOptionLabel, _param_triggerSearchOnFocus = param.triggerSearchOnFocus, triggerSearchOnFocus = _param_triggerSearchOnFocus === void 0 ? true : _param_triggerSearchOnFocus, commandProps = param.commandProps, inputProps = param.inputProps, _param_hideClearAllButton = param.hideClearAllButton, hideClearAllButton = _param_hideClearAllButton === void 0 ? false : _param_hideClearAllButton, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, emptyIndicatorClassName = param.emptyIndicatorClassName, _param_unremovableOptions = param.unremovableOptions, unremovableOptions = _param_unremovableOptions === void 0 ? [] : _param_unremovableOptions, name = param.name, _param_dropdownContainerClassName = param.dropdownContainerClassName, dropdownContainerClassName = _param_dropdownContainerClassName === void 0 ? "" : _param_dropdownContainerClassName;
3952
3963
  var _containerRef_current;
3953
- var _React9_useState = _sliced_to_array(React9.useState(false), 2), isLoading = _React9_useState[0], setIsLoading = _React9_useState[1];
3964
+ var _React10_useState = _sliced_to_array(React10.useState(false), 2), isLoading = _React10_useState[0], setIsLoading = _React10_useState[1];
3954
3965
  var _useFloating = useFloating({
3955
3966
  placement: "bottom-start",
3956
3967
  middleware: [
@@ -3966,14 +3977,14 @@ var MultipleSelector = forwardRef6(function(param, ref) {
3966
3977
  refs.setReference(node);
3967
3978
  };
3968
3979
  var inputRef = useRef3(null);
3969
- var _React9_useState1 = _sliced_to_array(React9.useState(false), 2), open = _React9_useState1[0], setOpen = _React9_useState1[1];
3970
- var _React9_useState2 = _sliced_to_array(React9.useState(false), 2), onScrollbar = _React9_useState2[0], setOnScrollbar = _React9_useState2[1];
3980
+ var _React10_useState1 = _sliced_to_array(React10.useState(false), 2), open = _React10_useState1[0], setOpen = _React10_useState1[1];
3981
+ var _React10_useState2 = _sliced_to_array(React10.useState(false), 2), onScrollbar = _React10_useState2[0], setOnScrollbar = _React10_useState2[1];
3971
3982
  var dropdownRef = useRef3(null);
3972
- var _React9_useState3 = _sliced_to_array(React9.useState(value || []), 2), selected = _React9_useState3[0], setSelected = _React9_useState3[1];
3973
- var _React9_useState4 = _sliced_to_array(React9.useState(transToGroupOption(arrayDefaultOptions, groupBy)), 2), options = _React9_useState4[0], setOptions = _React9_useState4[1];
3974
- var _React9_useState5 = _sliced_to_array(React9.useState(""), 2), inputValue = _React9_useState5[0], setInputValue = _React9_useState5[1];
3983
+ var _React10_useState3 = _sliced_to_array(React10.useState(value || []), 2), selected = _React10_useState3[0], setSelected = _React10_useState3[1];
3984
+ var _React10_useState4 = _sliced_to_array(React10.useState(transToGroupOption(arrayDefaultOptions, groupBy)), 2), options = _React10_useState4[0], setOptions = _React10_useState4[1];
3985
+ var _React10_useState5 = _sliced_to_array(React10.useState(""), 2), inputValue = _React10_useState5[0], setInputValue = _React10_useState5[1];
3975
3986
  var debouncedSearchTerm = useDebounce(inputValue, delay || 500);
3976
- React9.useImperativeHandle(ref, function() {
3987
+ React10.useImperativeHandle(ref, function() {
3977
3988
  return {
3978
3989
  selectedValue: _to_consumable_array(selected),
3979
3990
  input: inputRef.current,
@@ -4507,15 +4518,15 @@ function PopoverContent(_param) {
4507
4518
  }
4508
4519
  // src/components/ui/SearchSelect.tsx
4509
4520
  import { CheckIcon, ChevronDownIcon } from "lucide-react";
4510
- import { useCallback as useCallback4, useEffect as useEffect5, useId, useMemo as useMemo5, useState as useState5 } from "react";
4521
+ import { useCallback as useCallback4, useEffect as useEffect5, useId, useMemo as useMemo5, useState as useState6 } from "react";
4511
4522
  import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
4512
4523
  function SearchSelect(param) {
4513
4524
  var options = param.options, name = param.name, _param_selectPlaceholder = param.selectPlaceholder, selectPlaceholder = _param_selectPlaceholder === void 0 ? "Select" : _param_selectPlaceholder, defaultValue = param.defaultValue, _param_searchPlaceholder = param.searchPlaceholder, searchPlaceholder = _param_searchPlaceholder === void 0 ? "Search" : _param_searchPlaceholder, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, notFoundLabel = param.notFoundLabel, notFoundLabelClassName = param.notFoundLabelClassName, elementClassName = param.elementClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, value = param.value, disabled = param.disabled, onChange = param.onChange, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName;
4514
4525
  var id = useId();
4515
- var _useState5 = _sliced_to_array(useState5(false), 2), open = _useState5[0], setOpen = _useState5[1];
4516
- var _useState51 = _sliced_to_array(useState5(value || defaultValue || ""), 2), selectedValue = _useState51[0], setSelectedValue = _useState51[1];
4517
- var _useState52 = _sliced_to_array(useState5(""), 2), searchQuery = _useState52[0], setSearchQuery = _useState52[1];
4518
- var _useState53 = _sliced_to_array(useState5([]), 2), newOptions = _useState53[0], setNewOptions = _useState53[1];
4526
+ var _useState6 = _sliced_to_array(useState6(false), 2), open = _useState6[0], setOpen = _useState6[1];
4527
+ var _useState61 = _sliced_to_array(useState6(value || defaultValue || ""), 2), selectedValue = _useState61[0], setSelectedValue = _useState61[1];
4528
+ var _useState62 = _sliced_to_array(useState6(""), 2), searchQuery = _useState62[0], setSearchQuery = _useState62[1];
4529
+ var _useState63 = _sliced_to_array(useState6([]), 2), newOptions = _useState63[0], setNewOptions = _useState63[1];
4519
4530
  useEffect5(function() {
4520
4531
  if (!defaultValue && onChange) {
4521
4532
  setSelectedValue(value);
@@ -5178,12 +5189,12 @@ var NumberUI = function(param) {
5178
5189
  });
5179
5190
  };
5180
5191
  // src/components/forms/ModularForm/ModularForm.tsx
5181
- import { cloneElement, useEffect as useEffect7, useRef as useRef5, useState as useState8 } from "react";
5192
+ import { cloneElement, useEffect as useEffect7, useRef as useRef5, useState as useState9 } from "react";
5182
5193
  // src/components/forms/ModularForm/formElements.tsx
5183
- import { useCallback as useCallback5, useMemo as useMemo8, useState as useState7 } from "react";
5194
+ import { useCallback as useCallback5, useMemo as useMemo8, useState as useState8 } from "react";
5184
5195
  // src/components/forms/ModularForm/InternationalPhonePicker.tsx
5185
5196
  import { ChevronDown, Phone } from "lucide-react";
5186
- import { forwardRef as forwardRef7, useEffect as useEffect6, useMemo as useMemo7, useRef as useRef4, useState as useState6 } from "react";
5197
+ import { forwardRef as forwardRef7, useEffect as useEffect6, useMemo as useMemo7, useRef as useRef4, useState as useState7 } from "react";
5187
5198
  import * as RPNInput from "react-phone-number-input";
5188
5199
  import flags from "react-phone-number-input/flags";
5189
5200
  import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
@@ -5196,7 +5207,7 @@ function InternationalPhonePicker(param) {
5196
5207
  }
5197
5208
  }
5198
5209
  };
5199
- var _useState6 = _sliced_to_array(useState6(""), 2), tempPhoneValue = _useState6[0], setTempPhoneValue = _useState6[1];
5210
+ var _useState7 = _sliced_to_array(useState7(""), 2), tempPhoneValue = _useState7[0], setTempPhoneValue = _useState7[1];
5200
5211
  useEffect6(function() {
5201
5212
  if (defaultValue) {
5202
5213
  if (setPhoneValue) {
@@ -5429,8 +5440,8 @@ var SelectContainer = function(param) {
5429
5440
  var _param_name = param.name, name = _param_name === void 0 ? "" : _param_name, _param_labelContent = param.labelContent, labelContent = _param_labelContent === void 0 ? "" : _param_labelContent, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_labelClassName = param.labelClassName, labelClassName = _param_labelClassName === void 0 ? "" : _param_labelClassName, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? "" : _param_defaultValue, _param_elementClassName = param.elementClassName, elementClassName = _param_elementClassName === void 0 ? "" : _param_elementClassName, _param_optionClassName = param.optionClassName, optionClassName = _param_optionClassName === void 0 ? "" : _param_optionClassName, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_selectClassName = param.selectClassName, selectClassName = _param_selectClassName === void 0 ? "" : _param_selectClassName, _param_optionsContainerClassName = param.optionsContainerClassName, optionsContainerClassName = _param_optionsContainerClassName === void 0 ? "" : _param_optionsContainerClassName, _param_sortDirection = param.sortDirection, sortDirection = _param_sortDirection === void 0 ? "abc" : _param_sortDirection, sortAsNumber = param.sortAsNumber, direction = param.direction, onChange = param.onChange, labelWithDots = param.labelWithDots, iconClassName = param.iconClassName, labelsCommonClassName = param.labelsCommonClassName;
5430
5441
  var _sortOptions_, _options_find;
5431
5442
  var sortOptions = useSortValues(options, sortDirection, sortAsNumber);
5432
- var _useState7 = _sliced_to_array(useState7(false), 2), isOpen = _useState7[0], setIsOpen = _useState7[1];
5433
- var _useState71 = _sliced_to_array(useState7(defaultValue || ((_sortOptions_ = sortOptions[0]) === null || _sortOptions_ === void 0 ? void 0 : _sortOptions_.value) || ""), 2), selectedValue = _useState71[0], setSelectedValue = _useState71[1];
5443
+ var _useState8 = _sliced_to_array(useState8(false), 2), isOpen = _useState8[0], setIsOpen = _useState8[1];
5444
+ var _useState81 = _sliced_to_array(useState8(defaultValue || ((_sortOptions_ = sortOptions[0]) === null || _sortOptions_ === void 0 ? void 0 : _sortOptions_.value) || ""), 2), selectedValue = _useState81[0], setSelectedValue = _useState81[1];
5434
5445
  var handleOptionClick = function(value) {
5435
5446
  setSelectedValue(value);
5436
5447
  onChange === null || onChange === void 0 ? void 0 : onChange(value);
@@ -5648,8 +5659,8 @@ var ModularForm = function(param) {
5648
5659
  return _ref.apply(this, arguments);
5649
5660
  };
5650
5661
  }() : _param_submitFunction, _param_elements = param.elements, elements = _param_elements === void 0 ? [] : _param_elements, headerContent = param.headerContent, buttonContent = param.buttonContent, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_headerClassName = param.headerClassName, headerClassName = _param_headerClassName === void 0 ? "" : _param_headerClassName, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, submitRef = param.submitRef, _param_footerClassName = param.footerClassName, footerClassName = _param_footerClassName === void 0 ? "" : _param_footerClassName, _param_errorClassName = param.errorClassName, errorClassName = _param_errorClassName === void 0 ? "" : _param_errorClassName, labelsCommonClassName = param.labelsCommonClassName, _param_autoFixLabelsWidth = param.autoFixLabelsWidth, autoFixLabelsWidth = _param_autoFixLabelsWidth === void 0 ? true : _param_autoFixLabelsWidth, onLoad = param.onLoad;
5651
- var _useState8 = _sliced_to_array(useState8(""), 2), errorMsg = _useState8[0], setErrorMsg = _useState8[1];
5652
- var _useState81 = _sliced_to_array(useState8(false), 2), isLoading = _useState81[0], setIsLoading = _useState81[1];
5662
+ var _useState9 = _sliced_to_array(useState9(""), 2), errorMsg = _useState9[0], setErrorMsg = _useState9[1];
5663
+ var _useState91 = _sliced_to_array(useState9(false), 2), isLoading = _useState91[0], setIsLoading = _useState91[1];
5653
5664
  var formRef = useRef5(null);
5654
5665
  useEffect7(function() {
5655
5666
  if (formRef.current && autoFixLabelsWidth) {
@@ -5824,7 +5835,7 @@ var ModularForm = function(param) {
5824
5835
  };
5825
5836
  var ModularForm_default = ModularForm;
5826
5837
  // src/components/forms/index.tsx
5827
- import { useState as useState9 } from "react";
5838
+ import { useState as useState10 } from "react";
5828
5839
  import moment3 from "moment";
5829
5840
  import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
5830
5841
  var ConfirmForm = function(param) {
@@ -5869,7 +5880,7 @@ var DatePicker = function(param) {
5869
5880
  return _ref.apply(this, arguments);
5870
5881
  };
5871
5882
  }() : _param_submit, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_labelsClassName = param.labelsClassName, labelsClassName = _param_labelsClassName === void 0 ? "" : _param_labelsClassName, _param_inputsClassName = param.inputsClassName, inputsClassName = _param_inputsClassName === void 0 ? "" : _param_inputsClassName, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, _param_buttonStyle = param.buttonStyle, buttonStyle = _param_buttonStyle === void 0 ? {} : _param_buttonStyle, defaultFrom = param.defaultFrom, defaultTo = param.defaultTo, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_fromText = param.fromText, fromText = _param_fromText === void 0 ? "From date" : _param_fromText, _param_toText = param.toText, toText = _param_toText === void 0 ? "To date" : _param_toText, _param_buttonText = param.buttonText, buttonText = _param_buttonText === void 0 ? "Search" : _param_buttonText;
5872
- var _useState9 = _sliced_to_array(useState9(false), 2), isLoading = _useState9[0], setIsLoading = _useState9[1];
5883
+ var _useState10 = _sliced_to_array(useState10(false), 2), isLoading = _useState10[0], setIsLoading = _useState10[1];
5873
5884
  var onSubmit = /*#__PURE__*/ function() {
5874
5885
  var _ref = _async_to_generator(function(e) {
5875
5886
  return _ts_generator(this, function(_state) {