@darajs/core 1.29.3 → 1.29.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +3 -2
  2. package/dist/actions/download-variable.d.ts +8 -0
  3. package/dist/actions/download-variable.d.ts.map +1 -1
  4. package/dist/actions/download-variable.js +12 -3
  5. package/dist/actions/download-variable.js.map +1 -1
  6. package/dist/actions/navigate-to.js +1 -1
  7. package/dist/actions/navigate-to.js.map +1 -1
  8. package/dist/api/websocket.d.ts +293 -102
  9. package/dist/api/websocket.d.ts.map +1 -1
  10. package/dist/api/websocket.js +140 -7
  11. package/dist/api/websocket.js.map +1 -1
  12. package/dist/auth/basic/basic-auth-login.js +7 -7
  13. package/dist/auth/basic/basic-auth-login.js.map +1 -1
  14. package/dist/auth/basic/basic-auth-logout.js +1 -1
  15. package/dist/auth/basic/basic-auth-logout.js.map +1 -1
  16. package/dist/auth/default/default-auth-login.js +4 -4
  17. package/dist/auth/default/default-auth-login.js.map +1 -1
  18. package/dist/auth/oidc/oidc-login.js +3 -3
  19. package/dist/auth/oidc/oidc-login.js.map +1 -1
  20. package/dist/auth/oidc/oidc-logout.js +2 -2
  21. package/dist/auth/oidc/oidc-logout.js.map +1 -1
  22. package/dist/auth/oidc/sso-callback.js +2 -2
  23. package/dist/auth/oidc/sso-callback.js.map +1 -1
  24. package/dist/auth/origin-security.d.ts.map +1 -1
  25. package/dist/auth/origin-security.js +8 -2
  26. package/dist/auth/origin-security.js.map +1 -1
  27. package/dist/components/link.js +1 -2
  28. package/dist/components/link.js.map +1 -1
  29. package/dist/components/menu-link.d.ts.map +1 -1
  30. package/dist/components/menu-link.js +1 -2
  31. package/dist/components/menu-link.js.map +1 -1
  32. package/dist/components/menu.d.ts.map +1 -1
  33. package/dist/components/menu.js +1 -2
  34. package/dist/components/menu.js.map +1 -1
  35. package/dist/components/side-bar-frame.d.ts.map +1 -1
  36. package/dist/components/side-bar-frame.js +7 -1
  37. package/dist/components/side-bar-frame.js.map +1 -1
  38. package/dist/components/top-bar-frame.d.ts.map +1 -1
  39. package/dist/components/top-bar-frame.js +7 -2
  40. package/dist/components/top-bar-frame.js.map +1 -1
  41. package/dist/{dara_core-1.29.3-py3-none-any.whl → dara_core-1.29.6-py3-none-any.whl} +0 -0
  42. package/dist/devtools/backend-errors/backend-errors.d.ts.map +1 -1
  43. package/dist/devtools/backend-errors/backend-errors.js +0 -1
  44. package/dist/devtools/backend-errors/backend-errors.js.map +1 -1
  45. package/dist/devtools/devtools-content.d.ts.map +1 -1
  46. package/dist/devtools/devtools-content.js +2 -3
  47. package/dist/devtools/devtools-content.js.map +1 -1
  48. package/dist/devtools/floating-button.js +3 -3
  49. package/dist/devtools/floating-button.js.map +1 -1
  50. package/dist/devtools/resizer.js +1 -1
  51. package/dist/pages/error-page.js +2 -2
  52. package/dist/pages/error-page.js.map +1 -1
  53. package/dist/pages/error-status-code-page.js +2 -2
  54. package/dist/pages/error-status-code-page.js.map +1 -1
  55. package/dist/pages/route-error-boundary.js +1 -1
  56. package/dist/pages/route-error-boundary.js.map +1 -1
  57. package/dist/shared/context/global-task-context.js +1 -1
  58. package/dist/shared/context/global-task-context.js.map +1 -1
  59. package/dist/shared/dynamic-component/dynamic-component.d.ts.map +1 -1
  60. package/dist/shared/dynamic-component/dynamic-component.js +3 -1
  61. package/dist/shared/dynamic-component/dynamic-component.js.map +1 -1
  62. package/dist/shared/error-handling/error-display.js +6 -6
  63. package/dist/shared/error-handling/error-display.js.map +1 -1
  64. package/dist/shared/interactivity/derived-variable.d.ts.map +1 -1
  65. package/dist/shared/interactivity/derived-variable.js +5 -3
  66. package/dist/shared/interactivity/derived-variable.js.map +1 -1
  67. package/dist/shared/interactivity/filtering.js +2 -1
  68. package/dist/shared/interactivity/filtering.js.map +1 -1
  69. package/dist/shared/interactivity/persistence.js +6 -5
  70. package/dist/shared/interactivity/persistence.js.map +1 -1
  71. package/dist/shared/interactivity/plain-variable.d.ts.map +1 -1
  72. package/dist/shared/interactivity/plain-variable.js +2 -2
  73. package/dist/shared/interactivity/plain-variable.js.map +1 -1
  74. package/dist/shared/interactivity/resolve-variable.d.ts.map +1 -1
  75. package/dist/shared/interactivity/resolve-variable.js +18 -11
  76. package/dist/shared/interactivity/resolve-variable.js.map +1 -1
  77. package/dist/shared/interactivity/server-variable.d.ts.map +1 -1
  78. package/dist/shared/interactivity/server-variable.js +2 -1
  79. package/dist/shared/interactivity/server-variable.js.map +1 -1
  80. package/dist/shared/interactivity/stream-variable.js +3 -3
  81. package/dist/shared/interactivity/stream-variable.js.map +1 -1
  82. package/dist/shared/interactivity/use-action.d.ts.map +1 -1
  83. package/dist/shared/interactivity/use-action.js +5 -5
  84. package/dist/shared/interactivity/use-action.js.map +1 -1
  85. package/dist/shared/interactivity/use-server-component.d.ts.map +1 -1
  86. package/dist/shared/interactivity/use-server-component.js +2 -2
  87. package/dist/shared/interactivity/use-server-component.js.map +1 -1
  88. package/dist/shared/root/authenticated-root.js +3 -3
  89. package/dist/shared/root/authenticated-root.js.map +1 -1
  90. package/dist/shared/root/insecure-origin-banner.js +2 -2
  91. package/dist/shared/root/insecure-origin-banner.js.map +1 -1
  92. package/dist/shared/utils/get-icon.d.ts.map +1 -1
  93. package/dist/shared/utils/get-icon.js.map +1 -1
  94. package/dist/shared/utils/use-component-styles.js +1 -2
  95. package/dist/shared/utils/use-component-styles.js.map +1 -1
  96. package/dist/types/core.d.ts +8 -8
  97. package/dist/types/core.d.ts.map +1 -1
  98. package/dist/types/utils.d.ts +3 -3
  99. package/dist/types/utils.d.ts.map +1 -1
  100. package/dist/types/utils.js.map +1 -1
  101. package/dist/umd/dara.core.umd.cjs +722 -270
  102. package/dist/vitest-setup.js +2 -0
  103. package/dist/vitest-setup.js.map +1 -1
  104. package/package.json +18 -17
@@ -10129,6 +10129,9 @@
10129
10129
  * See the License for the specific language governing permissions and
10130
10130
  * limitations under the License.
10131
10131
  */
10132
+ function getMaxItems$1(maxItems) {
10133
+ return maxItems || 5;
10134
+ }
10132
10135
  var List = dist_default.div`
10133
10136
  z-index: 5000;
10134
10137
 
@@ -10136,8 +10139,7 @@
10136
10139
  display: ${(props) => props.isOpen ? "flex" : "none"};
10137
10140
  flex-direction: column;
10138
10141
 
10139
- max-height: calc(${(props) => (props.maxItems || 5) * 2}em + 2px);
10140
-
10142
+ max-height: calc(${(props) => getMaxItems$1(props.maxItems) * 2}em + 2px);
10141
10143
  border: 1px solid ${(props) => props.theme.colors.grey3};
10142
10144
  `;
10143
10145
  var NoItemsLabel = dist_default.span`
@@ -18984,12 +18986,12 @@
18984
18986
  */
18985
18987
  var AccordionItemWrapper = dist_default.div`
18986
18988
  width: 100%;
18989
+ border: 1px solid ${(props) => props.theme.colors.grey1};
18990
+ border-radius: 0.25rem;
18987
18991
  background-color: ${(props) => {
18988
18992
  var _a;
18989
18993
  return (_a = props.backgroundColor) !== null && _a !== void 0 ? _a : props.theme.colors.blue1;
18990
18994
  }};
18991
- border: 1px solid ${(props) => props.theme.colors.grey1};
18992
- border-radius: 0.25rem;
18993
18995
 
18994
18996
  /* Define the animation used for collapsing */
18995
18997
  /* stylelint-disable-next-line -- external classname */
@@ -19006,14 +19008,14 @@
19006
19008
 
19007
19009
  width: 100%;
19008
19010
  padding: 0.5rem 1rem;
19011
+ border: none;
19012
+ border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
19009
19013
 
19010
19014
  font-size: 1.2em;
19011
19015
  font-weight: 400;
19012
19016
  color: ${(props) => props.theme.colors.text};
19013
19017
 
19014
19018
  background-color: ${(props) => props.theme.colors.grey1};
19015
- border: none;
19016
- border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
19017
19019
 
19018
19020
  &:hover {
19019
19021
  background-color: ${(props) => props.theme.colors.grey2};
@@ -19093,6 +19095,10 @@
19093
19095
  * limitations under the License.
19094
19096
  */
19095
19097
  var shouldForwardProp$4 = (prop) => !["color", "width"].includes(prop);
19098
+ function getWidth$1(width) {
19099
+ if (width) return width;
19100
+ return "auto";
19101
+ }
19096
19102
  /**
19097
19103
  * A simple badge component
19098
19104
  *
@@ -19103,17 +19109,17 @@
19103
19109
  align-items: center;
19104
19110
  justify-content: center;
19105
19111
 
19106
- width: ${(props) => props.width || "auto"};
19112
+ width: ${(props) => getWidth$1(props.width)};
19107
19113
  height: ${(props) => props.height ? `${props.height}px` : "2rem"};
19108
19114
  padding: 0 0.75rem;
19115
+ border: 1px solid ${(props) => props.color};
19116
+ border-radius: ${(props) => props.height ? `${props.height / 2}px` : "1rem"};
19109
19117
 
19110
19118
  font-size: 0.875rem;
19111
19119
  font-weight: 400;
19112
19120
  color: ${(props) => props.outline ? props.color : props.theme.colors.blue1};
19113
19121
 
19114
19122
  background-color: ${(props) => props.outline ? props.theme.colors.blue1 : props.color};
19115
- border: 1px solid ${(props) => props.color};
19116
- border-radius: ${(props) => props.height ? `${props.height / 2}px` : "1rem"};
19117
19123
  `;
19118
19124
  //#endregion
19119
19125
  //#region ../../node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/extends.js
@@ -19702,12 +19708,12 @@
19702
19708
 
19703
19709
  width: 25%;
19704
19710
  height: 25%;
19711
+ border-radius: 100%;
19705
19712
 
19706
19713
  background-color: ${(props) => {
19707
19714
  var _a;
19708
19715
  return (_a = props.color) !== null && _a !== void 0 ? _a : props.theme.colors.grey4;
19709
19716
  }};
19710
- border-radius: 100%;
19711
19717
 
19712
19718
  animation: sk-chase-dot-before 2s infinite ease-in-out both;
19713
19719
  }
@@ -19805,7 +19811,7 @@
19805
19811
  (0, import_jsx_runtime.jsx)("div", { className: "sk-chase-dot" }),
19806
19812
  (0, import_jsx_runtime.jsx)("div", { className: "sk-chase-dot" })
19807
19813
  ]
19808
- }), (props.showText || props.text) && (0, import_jsx_runtime.jsx)(LoadingText, {
19814
+ }), (Boolean(props.showText) || Boolean(props.text)) && (0, import_jsx_runtime.jsx)(LoadingText, {
19809
19815
  color: props.color,
19810
19816
  children: (_a = props.text) !== null && _a !== void 0 ? _a : "LOADING"
19811
19817
  })]
@@ -19848,13 +19854,12 @@
19848
19854
  height: 2.5rem;
19849
19855
  padding: ${(props) => props.$hasAnchor ? 0 : "0 1rem"};
19850
19856
  padding: 0 1rem;
19857
+ border: none;
19858
+ border-radius: 0.25rem;
19851
19859
 
19852
19860
  font-size: 1rem;
19853
19861
  font-weight: 600;
19854
19862
 
19855
- border: none;
19856
- border-radius: 0.25rem;
19857
-
19858
19863
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
19859
19864
  transition-duration: 150ms;
19860
19865
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
@@ -19985,7 +19990,7 @@
19985
19990
  $hasAnchor: !!href,
19986
19991
  autoFocus,
19987
19992
  className,
19988
- disabled: disabled || loading,
19993
+ disabled: Boolean(disabled) || Boolean(loading),
19989
19994
  id,
19990
19995
  onClick,
19991
19996
  outline,
@@ -20021,7 +20026,6 @@
20021
20026
  flex: 1 1 auto;
20022
20027
 
20023
20028
  height: 2.5rem;
20024
-
20025
20029
  border: 1px solid ${(props) => {
20026
20030
  var _a;
20027
20031
  return props.disabled ? props.theme.colors.grey2 : (_a = props.theme.colors) === null || _a === void 0 ? void 0 : _a[props.styling];
@@ -20160,11 +20164,11 @@
20160
20164
  align-items: center;
20161
20165
 
20162
20166
  padding: 0;
20167
+ border: none;
20163
20168
 
20164
20169
  color: ${(props) => props.theme.colors.grey4};
20165
20170
 
20166
20171
  background-color: inherit;
20167
- border: none;
20168
20172
 
20169
20173
  :hover {
20170
20174
  color: ${(props) => props.theme.colors.grey5};
@@ -20177,11 +20181,11 @@
20177
20181
  z-index: 3;
20178
20182
 
20179
20183
  padding: 0;
20184
+ border: none;
20180
20185
 
20181
20186
  color: ${(props) => props.selected ? props.theme.colors.grey4 : props.theme.colors.grey3};
20182
20187
 
20183
20188
  background-color: inherit;
20184
- border: none;
20185
20189
 
20186
20190
  :hover {
20187
20191
  color: ${(props) => props.theme.colors.grey4};
@@ -20252,13 +20256,13 @@
20252
20256
  height: 100%;
20253
20257
  min-height: 3.4rem;
20254
20258
  padding: 1rem;
20259
+ border: 1px solid ${(props) => props.isErrored ? props.theme.colors.error : props.theme.colors.grey1};
20260
+ border-radius: 0.25rem;
20255
20261
 
20256
20262
  font-size: 1rem;
20257
20263
  color: ${(props) => props.disabled ? props.theme.colors.grey2 : props.theme.colors.text};
20258
20264
 
20259
20265
  background-color: ${(props) => props.theme.colors.grey1};
20260
- border: 1px solid ${(props) => props.isErrored ? props.theme.colors.error : props.theme.colors.grey1};
20261
- border-radius: 0.25rem;
20262
20266
  outline: 0;
20263
20267
 
20264
20268
  :hover:not(:disabled) {
@@ -27481,11 +27485,11 @@
27481
27485
  justify-content: space-between;
27482
27486
 
27483
27487
  padding: 0.5rem 1rem;
27488
+ border-radius: 0.25rem 0.25rem 0 0;
27484
27489
 
27485
27490
  font-size: 0.875rem;
27486
27491
 
27487
27492
  background-color: ${(props) => props.$isLightTheme ? theme.colors.blue2 : darkTheme.colors.blue2} !important;
27488
- border-radius: 0.25rem 0.25rem 0 0;
27489
27493
  `;
27490
27494
  var CopyToClipboardContainer = dist_default.span`
27491
27495
  :hover {
@@ -27506,9 +27510,9 @@
27506
27510
 
27507
27511
  margin: 0;
27508
27512
  padding: 1rem;
27513
+ border-radius: 0 0 0.25rem 0.25rem;
27509
27514
 
27510
27515
  background-color: ${(props) => props.$isLightTheme ? theme.colors.blue1 : darkTheme.colors.blue1} !important;
27511
- border-radius: 0 0 0.25rem 0.25rem;
27512
27516
  `;
27513
27517
  //#endregion
27514
27518
  //#region ../ui-components/dist/markdown/markdown.js
@@ -27536,9 +27540,9 @@
27536
27540
 
27537
27541
  code {
27538
27542
  padding: 0.1rem;
27539
- background-color: ${(props) => props.theme.colors.grey1};
27540
27543
  border: 1px solid ${(props) => props.theme.colors.grey3};
27541
27544
  border-radius: 0.25rem;
27545
+ background-color: ${(props) => props.theme.colors.grey1};
27542
27546
  }
27543
27547
  }
27544
27548
 
@@ -27558,7 +27562,8 @@
27558
27562
 
27559
27563
  a {
27560
27564
  color: ${(props) => props.theme.colors.primary};
27561
- word-break: break-word;
27565
+ word-break: normal;
27566
+ overflow-wrap: anywhere;
27562
27567
  }
27563
27568
 
27564
27569
  blockquote {
@@ -27567,13 +27572,12 @@
27567
27572
  margin-top: 1.5rem;
27568
27573
  margin-bottom: 1.5rem;
27569
27574
  padding-left: 1rem;
27575
+ border-left: 0.25rem solid ${(props) => props.theme.colors.grey3};
27570
27576
 
27571
27577
  font-weight: 500;
27572
27578
  font-style: italic;
27573
27579
  color: ${(props) => props.theme.colors.grey6};
27574
27580
 
27575
- border-left: 0.25rem solid ${(props) => props.theme.colors.grey3};
27576
-
27577
27581
  p:first-of-type::before {
27578
27582
  content: open-quote;
27579
27583
  }
@@ -27663,13 +27667,13 @@
27663
27667
  margin-top: 1.7rem;
27664
27668
  margin-bottom: 1.7rem;
27665
27669
  padding: 0 0.5em;
27670
+ border: 1px solid ${(props) => props.theme.colors.blue3};
27671
+ border-radius: 0.375rem;
27666
27672
 
27667
27673
  font-size: 0.9rem;
27668
27674
  line-height: 1.7;
27669
27675
 
27670
27676
  background-color: ${(props) => props.theme.colors.blue2};
27671
- border: 1px solid ${(props) => props.theme.colors.blue3};
27672
- border-radius: 0.375rem;
27673
27677
 
27674
27678
  div {
27675
27679
  background-color: ${(props) => props.theme.colors.blue2} !important;
@@ -27701,9 +27705,9 @@
27701
27705
 
27702
27706
  code {
27703
27707
  padding: 0.1em;
27704
- background-color: ${(props) => props.theme.colors.grey1};
27705
27708
  border: 1px solid ${(props) => props.theme.colors.grey3};
27706
27709
  border-radius: 0.25rem;
27710
+ background-color: ${(props) => props.theme.colors.grey1};
27707
27711
  }
27708
27712
 
27709
27713
  p {
@@ -27861,11 +27865,11 @@
27861
27865
 
27862
27866
  max-width: 15rem;
27863
27867
  padding: 0.75rem 1rem;
27864
-
27865
- word-break: break-word;
27866
-
27867
27868
  border-radius: 0.25rem;
27868
27869
 
27870
+ word-break: normal;
27871
+ overflow-wrap: anywhere;
27872
+
27869
27873
  transition: opacity 150ms ease-in-out;
27870
27874
 
27871
27875
  ${(props) => {
@@ -27910,7 +27914,7 @@
27910
27914
  ];
27911
27915
  }, [placement]);
27912
27916
  const { refs, floatingStyles, context } = useFloating({
27913
- open: visible !== void 0 ? visible : isOpen,
27917
+ open: visible !== null && visible !== void 0 ? visible : isOpen,
27914
27918
  onOpenChange: visible !== void 0 ? void 0 : setIsOpen,
27915
27919
  placement: placement === "auto" ? void 0 : placement,
27916
27920
  middleware,
@@ -27937,7 +27941,7 @@
27937
27941
  }),
27938
27942
  useRole(context, { role: "tooltip" })
27939
27943
  ]);
27940
- const isVisible = visible !== void 0 ? visible : isOpen;
27944
+ const isVisible = visible !== null && visible !== void 0 ? visible : isOpen;
27941
27945
  const childRef = children && typeof children === "object" && "ref" in children ? children.ref : null;
27942
27946
  const mergedRef = useMergeRefs([refs.setReference, childRef]);
27943
27947
  const referenceElement = children ? react.cloneElement(children, getReferenceProps(Object.assign({ ref: mergedRef }, children.props))) : null;
@@ -27984,9 +27988,9 @@
27984
27988
  gap: 0.5rem;
27985
27989
 
27986
27990
  padding: 0.3rem;
27991
+ border-radius: 0.25rem;
27987
27992
 
27988
27993
  background-color: ${(props) => props.theme.colors.blue1};
27989
- border-radius: 0.25rem;
27990
27994
  box-shadow: ${(props) => props.theme.shadow.medium};
27991
27995
  `;
27992
27996
  var MessageWrapper = dist_default.div`
@@ -27998,9 +28002,9 @@
27998
28002
 
27999
28003
  width: 100%;
28000
28004
  padding: 1rem;
28005
+ border-radius: 0.25rem;
28001
28006
 
28002
28007
  background-color: ${(props) => props.$messageFromActiveUser ? props.theme.colors.blue2 : props.theme.colors.blue1};
28003
- border-radius: 0.25rem;
28004
28008
  box-shadow: ${(props) => props.theme.shadow.medium};
28005
28009
 
28006
28010
  :hover ${InteractiveIcons} {
@@ -28075,11 +28079,10 @@
28075
28079
 
28076
28080
  width: 2rem;
28077
28081
  height: 2rem;
28082
+ border-radius: 50%;
28078
28083
 
28079
28084
  font-weight: 700;
28080
28085
  color: white;
28081
-
28082
- border-radius: 50%;
28083
28086
  `;
28084
28087
  //#endregion
28085
28088
  //#region ../ui-components/dist/chat/chat.js
@@ -28108,9 +28111,9 @@
28108
28111
  width: ${(props) => props.$isPopup ? "350px" : "100%"};
28109
28112
  height: ${(props) => props.$isPopup ? "calc(100vh - 2rem)" : "100%"};
28110
28113
  padding: 1.5rem;
28114
+ border-radius: ${(props) => props.$isPopup ? "0.4rem" : 0};
28111
28115
 
28112
28116
  background-color: ${(props) => props.$isPopup ? `${props.theme.colors.background}e6` : "inherit"};
28113
- border-radius: ${(props) => props.$isPopup ? "0.4rem" : 0};
28114
28117
  box-shadow: ${(props) => props.theme.shadow.medium};
28115
28118
  `;
28116
28119
  var ReplyWrapper = dist_default.div`
@@ -30497,11 +30500,10 @@
30497
30500
 
30498
30501
  width: ${(props) => props.isListStyle ? "100%" : "fit-content"};
30499
30502
  padding: 0.5625rem 0 0.5625rem 2rem;
30503
+ border-radius: 0.25rem;
30500
30504
 
30501
30505
  font-size: 1rem;
30502
30506
 
30503
- border-radius: 0.25rem;
30504
-
30505
30507
  ${(props) => {
30506
30508
  if (props.isListStyle && !props.disabled) return `
30507
30509
  :hover {
@@ -30526,7 +30528,6 @@
30526
30528
 
30527
30529
  width: 0.3125rem;
30528
30530
  height: 0.625rem;
30529
-
30530
30531
  border: solid ${(props) => props.theme.colors.grey5};
30531
30532
  border-width: 0 2px 2px 0;
30532
30533
  }
@@ -30539,12 +30540,12 @@
30539
30540
  :hover {
30540
30541
  span,
30541
30542
  input:checked ~ span {
30543
+ border: 1px solid ${(props) => props.theme.colors.grey4};
30542
30544
  background-color: ${(props) => {
30543
30545
  if (props.disabled) return props.theme.colors.grey3;
30544
30546
  if (props.isListStyle) return props.theme.colors.blue1;
30545
30547
  return props.theme.colors.grey1;
30546
30548
  }};
30547
- border: 1px solid ${(props) => props.theme.colors.grey4};
30548
30549
  }
30549
30550
  }
30550
30551
 
@@ -30599,7 +30600,8 @@
30599
30600
  * @param {CheckboxProps} props - the component props
30600
30601
  */
30601
30602
  function Checkbox(props) {
30602
- const [checked, setChecked] = (0, react.useState)(props.selected || props.initialValue);
30603
+ var _a;
30604
+ const [checked, setChecked] = (0, react.useState)((_a = props.selected) !== null && _a !== void 0 ? _a : props.initialValue);
30603
30605
  (0, react.useEffect)(() => {
30604
30606
  if (props.selected !== void 0) setChecked(props.selected);
30605
30607
  }, [props.selected]);
@@ -30683,7 +30685,10 @@
30683
30685
  * @param {CheckboxGroupProps} props - the component props
30684
30686
  */
30685
30687
  function CheckboxGroup(props) {
30686
- const [values, setValues] = (0, react.useState)(() => getInitialValue$3(props.values || props.initialValue));
30688
+ const [values, setValues] = (0, react.useState)(() => {
30689
+ var _a;
30690
+ return getInitialValue$3((_a = props.values) !== null && _a !== void 0 ? _a : props.initialValue);
30691
+ });
30687
30692
  const [checkedState, setCheckedState] = (0, react.useState)(() => getInitialCheckedState(props.items, values));
30688
30693
  const isSelectPermitted = (0, react.useMemo)(() => {
30689
30694
  if (!props.selectMax || values.length < props.selectMax) return true;
@@ -30724,7 +30729,7 @@
30724
30729
  className: props.className,
30725
30730
  style: props.style,
30726
30731
  id: props.id,
30727
- children: [(props.selectMax || props.selectMin) && (0, import_jsx_runtime.jsx)(CheckboxInfo, { children: infoMessage }), props.items.map((item, index) => {
30732
+ children: [(Boolean(props.selectMax) || Boolean(props.selectMin)) && (0, import_jsx_runtime.jsx)(CheckboxInfo, { children: infoMessage }), props.items.map((item, index) => {
30728
30733
  var _a, _b;
30729
30734
  return (0, import_jsx_runtime.jsx)(CheckboxWrapper, {
30730
30735
  "aria-disabled": props.disabled,
@@ -30773,13 +30778,13 @@
30773
30778
  width: 100%;
30774
30779
  height: 100%;
30775
30780
  padding: 0 1rem;
30781
+ border: 1px solid ${(props) => props.isErrored ? props.theme.colors.error : props.theme.colors.grey1};
30782
+ border-radius: 0.25rem;
30776
30783
 
30777
30784
  font-size: 1rem;
30778
30785
  color: ${(props) => props.disabled ? props.theme.colors.grey2 : props.theme.colors.text};
30779
30786
 
30780
30787
  background-color: ${(props) => props.theme.colors.grey1};
30781
- border: 1px solid ${(props) => props.isErrored ? props.theme.colors.error : props.theme.colors.grey1};
30782
- border-radius: 0.25rem;
30783
30788
  outline: 0;
30784
30789
 
30785
30790
  :active:not(:disabled),
@@ -30947,21 +30952,21 @@
30947
30952
 
30948
30953
  width: 17.5rem;
30949
30954
  padding: 1.25rem 0.5rem;
30955
+ border-radius: 0.25rem;
30950
30956
 
30951
30957
  background-color: ${(props) => props.theme.colors.grey1};
30952
- border-radius: 0.25rem;
30953
30958
  box-shadow: ${(props) => props.theme.shadow.light};
30954
30959
  `;
30955
30960
  var StyledSearchBar = dist_default(SearchBar)`
30956
30961
  width: 15.5rem;
30957
- background-color: ${(props) => props.theme.colors.blue1};
30958
30962
  border: 1px solid ${(props) => props.theme.colors.blue1};
30959
30963
  border-radius: 0.25rem;
30964
+ background-color: ${(props) => props.theme.colors.blue1};
30960
30965
 
30961
30966
  input {
30962
30967
  width: 15.5rem;
30963
- background-color: ${(props) => props.theme.colors.blue1};
30964
30968
  border: none;
30969
+ background-color: ${(props) => props.theme.colors.blue1};
30965
30970
 
30966
30971
  :active:not(:disabled),
30967
30972
  :focus:not(:disabled) {
@@ -30970,22 +30975,23 @@
30970
30975
  }
30971
30976
 
30972
30977
  :hover:not(:disabled) {
30973
- background-color: ${(props) => props.theme.colors.blue1};
30974
30978
  border: 1px solid ${(props) => props.theme.colors.grey2};
30979
+ background-color: ${(props) => props.theme.colors.blue1};
30975
30980
 
30976
30981
  input {
30977
- background-color: ${(props) => props.theme.colors.blue1};
30978
30982
  border: none;
30983
+ background-color: ${(props) => props.theme.colors.blue1};
30979
30984
  }
30980
30985
  }
30981
30986
  `;
30982
30987
  var FilterButtons = dist_default.button`
30988
+ border: none;
30989
+
30983
30990
  font-size: 0.75rem;
30984
30991
  font-weight: 400;
30985
30992
  color: ${(props) => props.theme.colors.primary};
30986
30993
 
30987
30994
  background-color: inherit;
30988
- border: none;
30989
30995
 
30990
30996
  :hover {
30991
30997
  cursor: pointer;
@@ -31078,7 +31084,7 @@
31078
31084
  values: filterValue
31079
31085
  }) }),
31080
31086
  (0, import_jsx_runtime.jsx)(ApplyButton, {
31081
- disabled: props.disabled || previousFilter === filterValue,
31087
+ disabled: Boolean(props.disabled) || previousFilter === filterValue,
31082
31088
  onClick: (e) => {
31083
31089
  var _a, _b;
31084
31090
  (_a = props.onChange) === null || _a === void 0 || _a.call(props, filterValue, e);
@@ -33282,6 +33288,7 @@
33282
33288
  width: 100%;
33283
33289
  min-height: 2rem;
33284
33290
  padding: 0.25rem 1rem;
33291
+ border-bottom: 1px solid ${(props) => props.theme.colors.grey3};
33285
33292
 
33286
33293
  font-size: ${(props) => props.size ? `${props.size}rem` : "1rem"};
33287
33294
  font-weight: 300;
@@ -33294,7 +33301,6 @@
33294
33301
  if (props.isHighlighted) return props.theme.colors.grey2;
33295
33302
  return props.theme.colors.blue1;
33296
33303
  }};
33297
- border-bottom: 1px solid ${(props) => props.theme.colors.grey3};
33298
33304
 
33299
33305
  :hover {
33300
33306
  background-color: ${(props) => props.theme.colors.grey2};
@@ -33413,7 +33419,6 @@
33413
33419
  width: 100%;
33414
33420
  min-width: 4rem;
33415
33421
  height: 2.5rem;
33416
-
33417
33422
  border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0px 0px" : "0.25rem"};
33418
33423
 
33419
33424
  ${(props) => {
@@ -33443,12 +33448,12 @@
33443
33448
  width: calc(100% - 1rem);
33444
33449
  height: 100%;
33445
33450
  padding: 0 0.25rem 0 1rem;
33451
+ border: none;
33452
+ border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0px 0px" : "0.25rem"};
33446
33453
 
33447
33454
  color: ${(props) => props.disabled ? props.theme.colors.grey2 : props.theme.colors.text};
33448
33455
 
33449
33456
  background-color: ${(props) => props.theme.colors.grey1};
33450
- border: none;
33451
- border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0px 0px" : "0.25rem"};
33452
33457
 
33453
33458
  :hover {
33454
33459
  background-color: ${(props) => props.disabled ? props.theme.colors.grey1 : props.theme.colors.grey2};
@@ -33465,6 +33470,7 @@
33465
33470
  height: 100%;
33466
33471
  margin-right: 0.5rem;
33467
33472
  padding: 0;
33473
+ border: none;
33468
33474
 
33469
33475
  font-size: ${(props) => props.size ? `${props.size}rem` : props.theme.font.size};
33470
33476
  font-weight: 300;
@@ -33474,7 +33480,6 @@
33474
33480
  white-space: nowrap;
33475
33481
 
33476
33482
  background-color: transparent;
33477
- border: none;
33478
33483
  outline: 0;
33479
33484
 
33480
33485
  :disabled {
@@ -33489,8 +33494,9 @@
33489
33494
  display: flex;
33490
33495
  flex-direction: column;
33491
33496
 
33492
- background-color: ${(props) => props.theme.colors.blue1};
33493
33497
  border-radius: 4px;
33498
+
33499
+ background-color: ${(props) => props.theme.colors.blue1};
33494
33500
  outline: none;
33495
33501
  box-shadow: rgb(0 0 0 / 10%) 0 2px 5px;
33496
33502
 
@@ -33542,14 +33548,14 @@
33542
33548
  min-width: 160px;
33543
33549
  height: fit-content;
33544
33550
  padding: 5px 8px;
33551
+ border: none;
33552
+ border-radius: 4px;
33545
33553
 
33546
33554
  font-size: 0.9rem;
33547
33555
  color: ${(props) => props.theme.colors.text};
33548
33556
  white-space: nowrap;
33549
33557
 
33550
33558
  background-color: ${(props) => props.theme.colors.blue1};
33551
- border: none;
33552
- border-radius: 4px;
33553
33559
  box-shadow: none;
33554
33560
 
33555
33561
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -38563,10 +38569,10 @@
38563
38569
  width: 100%;
38564
38570
  height: 100%;
38565
38571
  padding: 0 0.5rem 0 1rem;
38572
+ border: none;
38566
38573
 
38567
38574
  font-size: ${(props) => props.theme.font.size};
38568
38575
 
38569
- border: none;
38570
38576
  outline: 0;
38571
38577
 
38572
38578
  :not(:enabled) {
@@ -38577,12 +38583,12 @@
38577
38583
 
38578
38584
  width: 100%;
38579
38585
  padding: 0 0.25rem;
38586
+ border-radius: 0.25rem;
38580
38587
 
38581
38588
  font-size: 0.875rem;
38582
38589
  color: ${(props) => props.theme.colors.text};
38583
38590
 
38584
38591
  background-color: ${(props) => props.theme.colors.grey1};
38585
- border-radius: 0.25rem;
38586
38592
 
38587
38593
  :hover:enabled {
38588
38594
  background-color: ${(props) => props.theme.colors.grey2};
@@ -38613,6 +38619,7 @@
38613
38619
  width: 100%;
38614
38620
  min-height: 2rem;
38615
38621
  padding: 0.25rem 1.5rem;
38622
+ border-radius: 0.25rem;
38616
38623
 
38617
38624
  font-size: 0.75rem;
38618
38625
  font-weight: 300;
@@ -38625,7 +38632,6 @@
38625
38632
  if (props.isHighlighted) return props.theme.colors.grey2;
38626
38633
  return props.theme.colors.grey1;
38627
38634
  }};
38628
- border-radius: 0.25rem;
38629
38635
 
38630
38636
  :hover {
38631
38637
  background-color: ${(props) => props.isSelected ? props.theme.colors.primary : props.theme.colors.grey2};
@@ -38654,6 +38660,9 @@
38654
38660
  children: item.label
38655
38661
  }));
38656
38662
  });
38663
+ function getMaxItems(maxItems) {
38664
+ return maxItems || 5;
38665
+ }
38657
38666
  var StyledDropdownList = react.memo(dist_default(dropdown_list_default)`
38658
38667
  overflow-y: auto;
38659
38668
  display: ${(props) => props.isOpen ? "flex" : "none"};
@@ -38662,12 +38671,13 @@
38662
38671
 
38663
38672
  width: 16.25rem;
38664
38673
  max-height: calc(
38665
- ${(props) => (props.maxItems || 5) * 2}em + 2px + (${(props) => (props.maxItems || 5) - 1}) * 0.125em
38674
+ ${(props) => getMaxItems(props.maxItems) * 2}em + 2px + (${(props) => getMaxItems(props.maxItems) - 1}) *
38675
+ 0.125em
38666
38676
  );
38667
38677
  margin-left: ${(props) => props.displacement}rem;
38678
+ border: none;
38668
38679
 
38669
38680
  background-color: ${(props) => props.theme.colors.grey1};
38670
- border: none;
38671
38681
  box-shadow: none;
38672
38682
  `);
38673
38683
  var DatepickerSelectButtonPrimary = react.memo(({ disabled, getToggleButtonProps, setReference, getReferenceProps, size, isOpen, selectedItem }) => (0, import_jsx_runtime.jsxs)(SelectButtonPrimary, Object.assign({ disabled }, getToggleButtonProps({
@@ -38835,12 +38845,12 @@
38835
38845
  .react-datepicker {
38836
38846
  width: 16.45rem;
38837
38847
  height: 18.5rem;
38848
+ border: 1px solid ${(props) => props.theme.colors.grey1};
38838
38849
 
38839
38850
  font-family: Manrope, sans-serif;
38840
38851
  font-size: 0.75rem;
38841
38852
 
38842
38853
  background-color: ${(props) => props.theme.colors.grey1};
38843
- border: 1px solid ${(props) => props.theme.colors.grey1};
38844
38854
  box-shadow: ${(props) => props.theme.shadow.light};
38845
38855
 
38846
38856
  svg {
@@ -38872,11 +38882,11 @@
38872
38882
  margin-right: 3px;
38873
38883
  margin-left: 3px;
38874
38884
  padding: 1.25em 0.75em 0;
38885
+ border: none;
38875
38886
 
38876
38887
  color: ${(props) => props.theme.colors.text};
38877
38888
 
38878
38889
  background-color: ${(props) => props.theme.colors.grey1};
38879
- border: none;
38880
38890
 
38881
38891
  .react-datepicker__day-names {
38882
38892
  display: flex;
@@ -39040,15 +39050,15 @@
39040
39050
  width: 8.5rem;
39041
39051
  height: 2.5rem;
39042
39052
  padding: 0 1rem;
39053
+ border: 1px solid ${(props) => props.theme.colors.grey1};
39054
+ border-radius: 0.25rem;
39055
+ border-radius: ${(props) => props.isTimeRange ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
39043
39056
 
39044
39057
  font-size: 1rem;
39045
39058
  color: ${(props) => props.disabled ? props.theme.colors.grey2 : props.theme.colors.text};
39046
39059
  text-align: center;
39047
39060
 
39048
39061
  background-color: ${(props) => props.theme.colors.grey1};
39049
- border: 1px solid ${(props) => props.theme.colors.grey1};
39050
- border-radius: 0.25rem;
39051
- border-radius: ${(props) => props.isTimeRange ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
39052
39062
  outline: 0;
39053
39063
 
39054
39064
  :focus:not(:disabled) {
@@ -39082,13 +39092,12 @@
39082
39092
  justify-content: center;
39083
39093
 
39084
39094
  padding: 0.5rem;
39095
+ border-radius: ${(props) => props.isRange ? "0rem 0rem 0.25rem 0.25rem" : "0.25rem"};
39085
39096
 
39086
39097
  font-size: 1rem;
39087
39098
  color: ${(props) => props.theme.colors.text};
39088
39099
  text-align: center;
39089
39100
 
39090
- border-radius: ${(props) => props.isRange ? "0rem 0rem 0.25rem 0.25rem" : "0.25rem"};
39091
-
39092
39101
  :focus:not(:disabled) {
39093
39102
  border: 1px solid ${(props) => props.theme.colors.grey3};
39094
39103
  }
@@ -39108,7 +39117,6 @@
39108
39117
  display: block;
39109
39118
 
39110
39119
  width: 6rem;
39111
-
39112
39120
  border-top: ${(props) => props.isRange ? `1px solid ${props.theme.colors.grey2}` : "none"};
39113
39121
  }
39114
39122
  }
@@ -39228,7 +39236,7 @@
39228
39236
  function DatePicker(props) {
39229
39237
  var _a, _b, _c;
39230
39238
  const value = (_a = props.value) !== null && _a !== void 0 ? _a : props.initialValue;
39231
- const [selectedDate, setSelectedDate] = (0, react.useState)(value || (props.selectsRange ? [null, null] : null));
39239
+ const [selectedDate, setSelectedDate] = (0, react.useState)(value !== null && value !== void 0 ? value : props.selectsRange ? [null, null] : null);
39232
39240
  const [selectedTime, setSelectedTime] = (0, react.useState)(() => getInitialTime(value, props.selectsRange));
39233
39241
  const formatToApply = (_b = props.dateFormat) !== null && _b !== void 0 ? _b : "dd/MM/yyyy";
39234
39242
  const [startDate, setStartDate] = (0, react.useState)(() => getInitialDate(value, formatToApply, true));
@@ -39331,7 +39339,7 @@
39331
39339
  (0, react.useEffect)(() => {
39332
39340
  var _a;
39333
39341
  const newValue = (_a = props.value) !== null && _a !== void 0 ? _a : props.initialValue;
39334
- const newDate = newValue || (props.selectsRange ? [null, null] : null);
39342
+ const newDate = newValue !== null && newValue !== void 0 ? newValue : props.selectsRange ? [null, null] : null;
39335
39343
  if (JSON.stringify(newDate) === JSON.stringify(selectedDateRef.current)) return;
39336
39344
  setSelectedDate(newDate);
39337
39345
  const newTime = getInitialTime(newValue, props.selectsRange);
@@ -39460,6 +39468,7 @@
39460
39468
 
39461
39469
  width: 10px;
39462
39470
  height: 10px;
39471
+ border-radius: 5px;
39463
39472
 
39464
39473
  color: ${(props) => {
39465
39474
  var _a;
@@ -39470,7 +39479,6 @@
39470
39479
  var _a;
39471
39480
  return (_a = props.$grey4) !== null && _a !== void 0 ? _a : props.theme.colors.grey4;
39472
39481
  }};
39473
- border-radius: 5px;
39474
39482
 
39475
39483
  animation: dot-flashing 1s infinite linear alternate;
39476
39484
  animation-delay: 0.5s;
@@ -39488,6 +39496,7 @@
39488
39496
 
39489
39497
  width: 10px;
39490
39498
  height: 10px;
39499
+ border-radius: 5px;
39491
39500
 
39492
39501
  color: ${(props) => {
39493
39502
  var _a;
@@ -39498,7 +39507,6 @@
39498
39507
  var _a;
39499
39508
  return (_a = props.$grey4) !== null && _a !== void 0 ? _a : props.theme.colors.grey4;
39500
39509
  }};
39501
- border-radius: 5px;
39502
39510
 
39503
39511
  animation: dot-flashing 1s infinite alternate;
39504
39512
  animation-delay: 0s;
@@ -39509,6 +39517,7 @@
39509
39517
 
39510
39518
  width: 10px;
39511
39519
  height: 10px;
39520
+ border-radius: 5px;
39512
39521
 
39513
39522
  color: ${(props) => {
39514
39523
  var _a;
@@ -39519,7 +39528,6 @@
39519
39528
  var _a;
39520
39529
  return (_a = props.$grey4) !== null && _a !== void 0 ? _a : props.theme.colors.grey4;
39521
39530
  }};
39522
- border-radius: 5px;
39523
39531
 
39524
39532
  animation: dot-flashing 1s infinite alternate;
39525
39533
  animation-delay: 1s;
@@ -40632,12 +40640,11 @@
40632
40640
  justify-content: center;
40633
40641
 
40634
40642
  margin-top: 20px;
40635
-
40636
- color: ${(props) => props.theme.colors.text};
40637
-
40638
40643
  border: 1px dashed ${(props) => props.isDragActive ? props.theme.colors.primary : props.theme.colors.grey3};
40639
40644
  border-radius: 0.25rem;
40640
40645
 
40646
+ color: ${(props) => props.theme.colors.text};
40647
+
40641
40648
  :hover {
40642
40649
  background-color: ${(props) => props.theme.colors.grey1};
40643
40650
  }
@@ -40776,10 +40783,9 @@
40776
40783
  width: 0.9rem;
40777
40784
  height: 0.8rem;
40778
40785
  margin-right: 0.1rem;
40786
+ border-bottom: thin solid ${(props) => props.theme.colors.grey6};
40779
40787
 
40780
40788
  vertical-align: top;
40781
-
40782
- border-bottom: thin solid ${(props) => props.theme.colors.grey6};
40783
40789
  }
40784
40790
 
40785
40791
  &:last-child {
@@ -40913,11 +40919,11 @@
40913
40919
  max-height: 80vh;
40914
40920
  margin-top: ${(props) => props.render ? 0 : "-50px"};
40915
40921
  padding: 1.75rem;
40922
+ border-radius: 0.25rem;
40916
40923
 
40917
40924
  font-size: ${(props) => props.theme.font.size};
40918
40925
 
40919
40926
  background-color: ${(props) => props.theme.colors.grey1};
40920
- border-radius: 0.25rem;
40921
40927
  box-shadow: ${(props) => props.theme.shadow.medium};
40922
40928
 
40923
40929
  transition: margin-top ease-in 0.1s;
@@ -40929,11 +40935,15 @@
40929
40935
  justify-content: space-between;
40930
40936
  margin-top: 1rem;
40931
40937
  `;
40938
+ function getFlexDirection(flexDirection) {
40939
+ if (flexDirection) return flexDirection;
40940
+ return "column";
40941
+ }
40932
40942
  /** Arranges the modal header and adds some space below it */
40933
40943
  var ModalHeader = dist_default.div`
40934
40944
  display: flex;
40935
40945
  flex: 0 0 auto;
40936
- flex-direction: ${(props) => props.flexDirection || "column"};
40946
+ flex-direction: ${(props) => getFlexDirection(props.flexDirection)};
40937
40947
  justify-content: space-between;
40938
40948
 
40939
40949
  margin-bottom: 1rem;
@@ -40961,7 +40971,6 @@
40961
40971
  width: 100%;
40962
40972
  max-width: ${(props) => props.maxWidth};
40963
40973
  max-height: ${(props) => props.maxRows * 2.5}rem;
40964
-
40965
40974
  border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
40966
40975
  `;
40967
40976
  var InputWrapper$3 = dist_default.div`
@@ -40975,12 +40984,12 @@
40975
40984
  min-height: 2.5rem;
40976
40985
  margin-right: 0.25rem;
40977
40986
  padding: 0.25rem 0.5rem 0.25rem 1rem;
40987
+ border: none;
40988
+ border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
40978
40989
 
40979
40990
  color: ${(props) => props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.text};
40980
40991
 
40981
40992
  background-color: ${(props) => props.theme.colors.grey1};
40982
- border: none;
40983
- border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
40984
40993
 
40985
40994
  :hover {
40986
40995
  background-color: ${(props) => props.isDisabled ? props.theme.colors.grey1 : props.theme.colors.grey2};
@@ -41015,6 +41024,7 @@
41015
41024
 
41016
41025
  margin-right: 0.5rem;
41017
41026
  padding: 0;
41027
+ border: none;
41018
41028
 
41019
41029
  font-size: ${(props) => props.size ? `${props.size}rem` : props.theme.font.size};
41020
41030
  font-weight: 300;
@@ -41024,7 +41034,6 @@
41024
41034
  white-space: nowrap;
41025
41035
 
41026
41036
  background-color: transparent;
41027
- border: none;
41028
41037
  outline: 0;
41029
41038
 
41030
41039
  :disabled {
@@ -41049,13 +41058,13 @@
41049
41058
 
41050
41059
  height: ${tagHeight}rem;
41051
41060
  padding: 0 0.75rem;
41061
+ border: 1px solid ${(props) => props.theme.colors.primary};
41062
+ border-radius: 1rem;
41052
41063
 
41053
41064
  font-size: 0.875rem;
41054
41065
  color: ${(props) => props.disabled ? props.theme.colors.grey3 : props.theme.colors.text};
41055
41066
 
41056
41067
  background-color: ${(props) => props.disabled ? props.theme.colors.grey3 : props.theme.colors.blue3};
41057
- border: 1px solid ${(props) => props.theme.colors.primary};
41058
- border-radius: 1rem;
41059
41068
 
41060
41069
  svg {
41061
41070
  width: 0.85rem;
@@ -41111,7 +41120,6 @@
41111
41120
  width: 100%;
41112
41121
  min-width: 4rem;
41113
41122
  height: 2.5rem;
41114
-
41115
41123
  border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
41116
41124
 
41117
41125
  ${(props) => {
@@ -41138,13 +41146,13 @@
41138
41146
  width: 100%;
41139
41147
  height: 100%;
41140
41148
  padding: 0 0.5rem 0 1rem;
41149
+ border: none;
41150
+ border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
41141
41151
 
41142
41152
  font-size: 1rem;
41143
41153
  color: ${(props) => props.theme.colors.text};
41144
41154
 
41145
41155
  background-color: ${(props) => props.theme.colors.grey1};
41146
- border: none;
41147
- border-radius: ${(props) => props.isOpen ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"};
41148
41156
  outline: 0;
41149
41157
 
41150
41158
  :not(:enabled) {
@@ -41304,12 +41312,12 @@
41304
41312
 
41305
41313
  input {
41306
41314
  width: ${(props) => props.showTwoInputs ? "106px" : "100%"};
41307
- background-color: ${(props) => props.theme.colors.background};
41308
41315
  border: 1px solid ${(props) => props.showError ? props.theme.colors.error : props.theme.colors.background};
41316
+ background-color: ${(props) => props.theme.colors.background};
41309
41317
 
41310
41318
  :hover:not(:disabled) {
41311
- background-color: ${(props) => props.theme.colors.background};
41312
41319
  border: 1px solid ${(props) => props.showError ? props.theme.colors.error : props.theme.colors.grey3};
41320
+ background-color: ${(props) => props.theme.colors.background};
41313
41321
  }
41314
41322
 
41315
41323
  :active:not(:disabled),
@@ -41465,7 +41473,6 @@
41465
41473
 
41466
41474
  box-sizing: border-box;
41467
41475
  padding: 0.25rem 0;
41468
-
41469
41476
  border-radius: 0 0.25rem 0.25rem 0;
41470
41477
  `;
41471
41478
  var StepperButton = dist_default(button_default)`
@@ -41552,11 +41559,11 @@
41552
41559
  width: 22ch;
41553
41560
  height: 2.5rem;
41554
41561
  padding-right: 0.5rem;
41555
-
41556
- background-color: ${(props) => props.theme.colors.grey1};
41557
41562
  border: 1px solid ${(props) => props.errorMsg ? props.theme.colors.error : props.theme.colors.grey1};
41558
41563
  border-radius: 0.25rem;
41559
41564
 
41565
+ background-color: ${(props) => props.theme.colors.grey1};
41566
+
41560
41567
  input {
41561
41568
  height: calc(2.5rem - 2px);
41562
41569
  border: none;
@@ -41614,7 +41621,7 @@
41614
41621
  * @param integerOnly whether to limit the input to only accept integers
41615
41622
  */
41616
41623
  var numericFilter = (integerOnly) => (e) => {
41617
- if (parseInt(e.key) || parseInt(e.key) === 0) return true;
41624
+ if (parseInt(e.key, 10) || parseInt(e.key, 10) === 0) return true;
41618
41625
  if (CONTROL_KEYS.includes(e.key)) return true;
41619
41626
  const target = e.target;
41620
41627
  if (!integerOnly && e.key === Key.PERIOD && !target.value.includes(Key.PERIOD)) return true;
@@ -41673,7 +41680,7 @@
41673
41680
  if (e.key === Key.DOWN) step(stepSkip * -1);
41674
41681
  };
41675
41682
  const handleOnChange = (0, react.useCallback)((v, e) => {
41676
- const parsed = props.integerOnly ? parseInt(v) : parseFloat(v);
41683
+ const parsed = props.integerOnly ? parseInt(v, 10) : parseFloat(v);
41677
41684
  if (value === void 0) {
41678
41685
  setInput(v);
41679
41686
  onChange === null || onChange === void 0 || onChange(parsed, e);
@@ -41776,11 +41783,11 @@
41776
41783
  max-height: 100%;
41777
41784
  margin: 2rem;
41778
41785
  padding: 1rem;
41786
+ border-radius: 0.25rem;
41779
41787
 
41780
41788
  color: ${(props) => props.theme.colors.text};
41781
41789
 
41782
41790
  background-color: ${(props) => props.theme.colors.grey1};
41783
- border-radius: 0.25rem;
41784
41791
  `;
41785
41792
  var Card$1 = dist_default.div`
41786
41793
  cursor: pointer;
@@ -41794,12 +41801,12 @@
41794
41801
 
41795
41802
  margin: 1rem;
41796
41803
  padding: 1rem;
41804
+ border: ${(props) => `2px solid ${props.selected ? props.theme.colors.primary : "transparent"}`};
41805
+ border-radius: 0.25rem;
41797
41806
 
41798
41807
  text-align: center;
41799
41808
 
41800
41809
  background-color: ${(props) => props.theme.colors.blue1};
41801
- border: ${(props) => `2px solid ${props.selected ? props.theme.colors.primary : "transparent"}`};
41802
- border-radius: 0.25rem;
41803
41810
 
41804
41811
  :hover {
41805
41812
  border: ${(props) => `2px solid ${props.selected ? props.theme.colors.primary : props.theme.colors.grey3}`};
@@ -42224,19 +42231,23 @@
42224
42231
 
42225
42232
  width: 100%;
42226
42233
  height: ${(props) => props.small ? "0.5rem" : "1rem"};
42234
+ border-radius: ${(props) => props.small ? "0.25rem" : "0.5rem"};
42227
42235
 
42228
42236
  background-color: ${(props) => props.theme.colors.grey2};
42229
- border-radius: ${(props) => props.small ? "0.25rem" : "0.5rem"};
42230
42237
  `;
42238
+ function getBarColor(color, fallback) {
42239
+ if (color) return color;
42240
+ return fallback;
42241
+ }
42231
42242
  var Bar = dist_default.div`
42232
42243
  position: absolute;
42233
42244
 
42234
42245
  overflow: ${(props) => props.multi ? "hidden" : "visible"};
42235
42246
 
42236
42247
  height: 100%;
42237
-
42238
- background-color: ${(props) => props.color ? props.color : props.theme.colors.primary};
42239
42248
  border-radius: ${(props) => props.small ? "0.25rem" : "0.5rem"};
42249
+
42250
+ background-color: ${(props) => getBarColor(props.color, props.theme.colors.primary)};
42240
42251
  `;
42241
42252
  var Text = dist_default.span`
42242
42253
  position: absolute;
@@ -42281,10 +42292,10 @@
42281
42292
  const progresses = typeof props.progress === "number" ? [{
42282
42293
  index: 0,
42283
42294
  value: props.progress
42284
- }] : (0, import_sortBy.default)([...props.progress.map((x, i) => ({
42295
+ }] : (0, import_sortBy.default)(props.progress.map((x, i) => ({
42285
42296
  index: i,
42286
42297
  value: x
42287
- }))], "value").reverse();
42298
+ })), "value").reverse();
42288
42299
  const colors = arrayify(props.color, defaultColors.slice(0, progresses.length));
42289
42300
  const labels = arrayify(props.label, progresses.map((x) => `${x.value}%`));
42290
42301
  return (0, import_jsx_runtime.jsx)(Track$1, {
@@ -42338,12 +42349,11 @@
42338
42349
  width: ${(props) => props.isListStyle ? "auto" : "fit-content"};
42339
42350
  height: 2.5rem;
42340
42351
  padding: 0 0.5rem;
42341
-
42342
- color: ${(props) => props["aria-disabled"] ? props.theme.colors.grey3 : props.theme.colors.text};
42343
-
42344
42352
  border: none;
42345
42353
  border-radius: 0.25rem;
42346
42354
 
42355
+ color: ${(props) => props["aria-disabled"] ? props.theme.colors.grey3 : props.theme.colors.text};
42356
+
42347
42357
  /* sets checkmark indicator */
42348
42358
  span::after {
42349
42359
  top: calc(0.25rem - 1px);
@@ -42351,9 +42361,9 @@
42351
42361
 
42352
42362
  width: 0.5rem;
42353
42363
  height: 0.5rem;
42364
+ border-radius: 50%;
42354
42365
 
42355
42366
  background-color: ${(props) => props["aria-disabled"] ? props.theme.colors.grey3 : props.theme.colors.grey5};
42356
- border-radius: 50%;
42357
42367
  }
42358
42368
 
42359
42369
  /* Show the checkmark when checked */
@@ -42410,11 +42420,11 @@
42410
42420
 
42411
42421
  width: 1rem;
42412
42422
  height: 1rem;
42413
-
42414
- background-color: ${(props) => props.disabled ? props.theme.colors.grey1 : props.theme.colors.blue1};
42415
42423
  border: 1px solid ${(props) => props.disabled ? props.theme.colors.grey2 : props.theme.colors.grey3};
42416
42424
  border-radius: 50%;
42417
42425
 
42426
+ background-color: ${(props) => props.disabled ? props.theme.colors.grey1 : props.theme.colors.blue1};
42427
+
42418
42428
  ::after {
42419
42429
  content: '';
42420
42430
  position: relative;
@@ -42464,9 +42474,9 @@
42464
42474
  padding: ${(props) => (props === null || props === void 0 ? void 0 : props.heading) || !props.section ? "0 0.7rem" : "0 1.5rem"};
42465
42475
  padding-right: 0.7rem;
42466
42476
 
42477
+ font-size: ${(props) => props.size ? `${props.size}rem` : "1rem"};
42467
42478
  font-weight: ${(props) => (props === null || props === void 0 ? void 0 : props.heading) ? "bold" : "normal"};
42468
42479
  color: ${(props) => getTextColor(props === null || props === void 0 ? void 0 : props.heading, props.isSelected, props.theme)};
42469
- font-size: ${(props) => props.size ? `${props.size}rem` : "1rem"};
42470
42480
 
42471
42481
  ${(props) => {
42472
42482
  if (props.heading) return `
@@ -42499,12 +42509,14 @@
42499
42509
  }, []);
42500
42510
  }
42501
42511
  var SectionedListItem = ({ item, index, getItemProps, isSelected, isHighlighted, size }) => {
42512
+ var _a;
42502
42513
  const theme = useClTheme();
42503
- const _a = getItemProps({
42514
+ const _b = getItemProps({
42504
42515
  index,
42505
42516
  item
42506
- }), { itemClassName } = _a, itemProps = __rest$3(_a, ["itemClassName"]);
42517
+ }), { itemClassName } = _b, itemProps = __rest$3(_b, ["itemClassName"]);
42507
42518
  if (item.heading) delete itemProps.onClick;
42519
+ const badgeColor = ((_a = item.badge) === null || _a === void 0 ? void 0 : _a.color) || theme.colors.primary;
42508
42520
  return (0, import_jsx_runtime.jsxs)(ListItemSpan, Object.assign({}, itemProps, {
42509
42521
  heading: item.heading,
42510
42522
  section: item.section,
@@ -42515,7 +42527,7 @@
42515
42527
  size,
42516
42528
  isHighlighted,
42517
42529
  children: [item.label || item.section, item.badge && (0, import_jsx_runtime.jsx)(Badge, {
42518
- color: item.badge.color || theme.colors.primary,
42530
+ color: badgeColor,
42519
42531
  children: item.badge.label
42520
42532
  })]
42521
42533
  }));
@@ -42574,6 +42586,7 @@
42574
42586
  }
42575
42587
  }, syncKbdHighlightIdx(setKbdHighlightIdx)), { stateReducer: (state, { changes, type }) => {
42576
42588
  var _a, _b, _c;
42589
+ var _d;
42577
42590
  if (type === stateChangeTypes.ControlledPropUpdatedSelectedItem) return Object.assign(Object.assign({}, changes), { inputValue: "" });
42578
42591
  if (type === stateChangeTypes.InputFocus || type === stateChangeTypes.ToggleButtonClick && changes.isOpen) {
42579
42592
  setPendingHighlight(changes.selectedItem ? props.items.findIndex((i) => i.value === changes.selectedItem.value) : 0);
@@ -42585,7 +42598,7 @@
42585
42598
  stateChangeTypes.InputBlur,
42586
42599
  stateChangeTypes.InputKeyDownEscape,
42587
42600
  stateChangeTypes.ToggleButtonClick
42588
- ].includes(type)) return Object.assign(Object.assign({}, changes), { inputValue: ((_a = changes.selectedItem) === null || _a === void 0 ? void 0 : _a.label) || "" });
42601
+ ].includes(type)) return Object.assign(Object.assign({}, changes), { inputValue: (_d = (_a = changes.selectedItem) === null || _a === void 0 ? void 0 : _a.label) !== null && _d !== void 0 ? _d : "" });
42589
42602
  if (type === stateChangeTypes.InputKeyDownArrowUp && ((_b = items[changes.highlightedIndex]) === null || _b === void 0 ? void 0 : _b.heading)) return Object.assign(Object.assign({}, changes), { highlightedIndex: changes.highlightedIndex - 1 < 0 ? items.length - 1 : changes.highlightedIndex - 1 });
42590
42603
  if (type === stateChangeTypes.InputKeyDownArrowDown && ((_c = items[changes.highlightedIndex]) === null || _c === void 0 ? void 0 : _c.heading)) return Object.assign(Object.assign({}, changes), { highlightedIndex: changes.highlightedIndex + 1 === items.length ? 0 : changes.highlightedIndex + 1 });
42591
42604
  return changes;
@@ -45024,9 +45037,9 @@
45024
45037
 
45025
45038
  width: 100%;
45026
45039
  height: 0.25rem;
45040
+ border-radius: 0.125rem;
45027
45041
 
45028
45042
  background-color: ${(props) => props.theme.colors.grey2};
45029
- border-radius: 0.125rem;
45030
45043
  `;
45031
45044
  var StyledSliderThumb = dist_default($6f909507e6374d18$export$2c1b491743890dec)`
45032
45045
  cursor: pointer;
@@ -45037,9 +45050,9 @@
45037
45050
 
45038
45051
  width: 1rem;
45039
45052
  height: 1rem;
45053
+ border-radius: 50%;
45040
45054
 
45041
45055
  background-color: ${(props) => props.theme.colors.primary};
45042
- border-radius: 50%;
45043
45056
 
45044
45057
  &[data-focus-visible] {
45045
45058
  outline: 2px solid ${(props) => props.theme.colors.primary};
@@ -45061,9 +45074,9 @@
45061
45074
  transform: translateY(-50%);
45062
45075
 
45063
45076
  height: 0.25rem;
45077
+ border-radius: 0.125rem;
45064
45078
 
45065
45079
  background-color: ${(props) => props.theme.colors.primary};
45066
- border-radius: 0.125rem;
45067
45080
  `;
45068
45081
  var TrackLabel = dist_default.span`
45069
45082
  position: absolute;
@@ -45093,9 +45106,9 @@
45093
45106
  width: 0.125rem;
45094
45107
  height: 0.125rem;
45095
45108
  margin-top: -0.685rem;
45109
+ border-radius: 50%;
45096
45110
 
45097
45111
  background-color: ${(props) => props.theme.colors.grey3};
45098
- border-radius: 50%;
45099
45112
  }
45100
45113
  `;
45101
45114
  var SwapButton = dist_default(button_default).attrs({ styling: "plain" })`
@@ -45213,12 +45226,12 @@
45213
45226
  padding: 0;
45214
45227
  padding-right: ${(props) => props.enabled ? "1.75rem" : "0.5rem"};
45215
45228
  padding-left: ${(props) => props.enabled ? "0.5rem" : "1.75rem"};
45229
+ border-radius: 0.75rem;
45216
45230
 
45217
45231
  font-size: ${(props) => props.theme.font.size};
45218
45232
  color: ${(props) => props.theme.colors.blue1};
45219
45233
 
45220
45234
  background-color: ${(props) => props.enabled ? props.theme.colors.primary : props.theme.colors.secondary};
45221
- border-radius: 0.75rem;
45222
45235
 
45223
45236
  svg {
45224
45237
  color: ${(props) => props.theme.colors.blue1};
@@ -45233,9 +45246,9 @@
45233
45246
 
45234
45247
  width: 1.25rem;
45235
45248
  height: 1.25rem;
45249
+ border-radius: 0.625rem;
45236
45250
 
45237
45251
  background-color: ${(props) => props.theme.colors.blue1};
45238
- border-radius: 0.625rem;
45239
45252
 
45240
45253
  transition: left 100ms linear;
45241
45254
  `;
@@ -45248,7 +45261,7 @@
45248
45261
  off: "OFF",
45249
45262
  on: "ON"
45250
45263
  }, lightDark = false, onChange, style, value, id }, ref) {
45251
- const [enabled, setEnabled] = (0, react.useState)(value || initialValue);
45264
+ const [enabled, setEnabled] = (0, react.useState)(value !== null && value !== void 0 ? value : initialValue);
45252
45265
  const labelIconToShow = (0, react.useMemo)(() => {
45253
45266
  if (lightDark) return enabled ? (0, import_jsx_runtime.jsx)(Sun, {}) : (0, import_jsx_runtime.jsx)(Moon, {});
45254
45267
  return enabled ? labels.on : labels.off;
@@ -46308,16 +46321,16 @@
46308
46321
  input {
46309
46322
  width: 6.7rem;
46310
46323
  padding: 0;
46311
- background-color: ${(props) => props.theme.colors.background};
46312
46324
  border: 1px solid ${(props) => props.theme.colors.background};
46325
+ background-color: ${(props) => props.theme.colors.background};
46313
46326
 
46314
46327
  ::after {
46315
46328
  width: 5rem;
46316
46329
  }
46317
46330
 
46318
46331
  :hover:not(:disabled) {
46319
- background-color: ${(props) => props.theme.colors.background};
46320
46332
  border: 1px solid ${(props) => props.theme.colors.grey4};
46333
+ background-color: ${(props) => props.theme.colors.background};
46321
46334
  }
46322
46335
  }
46323
46336
 
@@ -46344,9 +46357,9 @@
46344
46357
  .react-datepicker {
46345
46358
  margin-bottom: -1rem;
46346
46359
  margin-left: -0.5rem;
46360
+ border: none;
46347
46361
 
46348
46362
  background-color: ${(props) => props.theme.colors.grey1};
46349
- border: none;
46350
46363
  box-shadow: none;
46351
46364
 
46352
46365
  /* stylelint-disable -- external classnames */
@@ -46777,7 +46790,6 @@
46777
46790
 
46778
46791
  width: 1.5rem;
46779
46792
  height: 1.5rem;
46780
-
46781
46793
  border-radius: 0.25rem;
46782
46794
 
46783
46795
  :hover {
@@ -47288,10 +47300,10 @@
47288
47300
  min-width: 80px;
47289
47301
  height: 0.7rem;
47290
47302
  margin: 0.5rem;
47303
+ border-radius: 0.5rem;
47291
47304
 
47292
47305
  background: ${(props) => `linear-gradient(to right, ${props.theme.colors.grey2}, ${curriedTransparentize(.2, props.theme.colors.grey3)}, ${props.theme.colors.grey2});`};
47293
47306
  background-size: 50%;
47294
- border-radius: 0.5rem;
47295
47307
 
47296
47308
  animation-name: ani-horizontal;
47297
47309
  animation-duration: 3.5s;
@@ -47314,11 +47326,11 @@
47314
47326
 
47315
47327
  min-width: 80px;
47316
47328
  height: ${({ rowHeight }) => `${rowHeight}px`};
47329
+ border-bottom: 1px solid ${(props) => props.theme.colors.grey3};
47317
47330
 
47318
47331
  color: ${(props) => props.theme.colors.grey6};
47319
47332
 
47320
47333
  background-color: ${(props) => props.theme.colors.blue1};
47321
- border-bottom: 1px solid ${(props) => props.theme.colors.grey3};
47322
47334
 
47323
47335
  :last-child {
47324
47336
  border-right: 0;
@@ -47383,36 +47395,36 @@
47383
47395
  var _a;
47384
47396
  return String((_a = row.original[col]) !== null && _a !== void 0 ? _a : "");
47385
47397
  }).join("_") : void 0;
47386
- return (0, react.createElement)(Row, Object.assign({}, restRow, {
47387
- key: `row-${index}`,
47398
+ return (0, import_jsx_runtime.jsx)(Row, Object.assign({}, restRow, {
47388
47399
  "data-row-id": rowDataId,
47389
47400
  onClick,
47390
47401
  onClickRow,
47391
47402
  style: Object.assign(Object.assign({}, rowStyle), {
47392
47403
  top: index === 0 ? DEFAULT_ROW_HEIGHT : index * rowHeight + DEFAULT_ROW_HEIGHT,
47393
47404
  width: totalColumnsWidth > width ? totalColumnsWidth : "100%"
47405
+ }),
47406
+ children: row.cells.map((cell, colIdx) => {
47407
+ var _a, _b, _c, _d, _e;
47408
+ const cellProps = cell.getCellProps();
47409
+ return (0, import_jsx_runtime.jsx)(Cell, Object.assign({}, cellProps, {
47410
+ rowHeight,
47411
+ style: Object.assign(Object.assign(Object.assign(Object.assign({}, cellProps.style), {
47412
+ backgroundColor,
47413
+ justifyContent: mappedColumns[colIdx].align,
47414
+ maxWidth: (_a = cell.column) === null || _a === void 0 ? void 0 : _a.maxWidth,
47415
+ width: cellProps.style.width === "NaNpx" ? mappedColumns[colIdx].width : cellProps.style.width
47416
+ }), ((_b = mappedColumns[colIdx]) === null || _b === void 0 ? void 0 : _b.sticky) === "left" && typeof ((_c = mappedColumns[colIdx]) === null || _c === void 0 ? void 0 : _c.stickyOffset) === "number" ? { left: `${mappedColumns[colIdx].stickyOffset}px` } : {}), ((_d = mappedColumns[colIdx]) === null || _d === void 0 ? void 0 : _d.sticky) === "right" && typeof ((_e = mappedColumns[colIdx]) === null || _e === void 0 ? void 0 : _e.stickyOffset) === "number" ? { right: `${mappedColumns[colIdx].stickyOffset}px` } : {}),
47417
+ children: (0, import_jsx_runtime.jsx)(CellContent, {
47418
+ hasRowHeight: rowHeight !== DEFAULT_ROW_HEIGHT,
47419
+ children: cell.render("Cell", {
47420
+ colIdx,
47421
+ currentEditCell,
47422
+ rowIdx: index
47423
+ })
47424
+ })
47425
+ }), `cell-${index}-${colIdx}`);
47394
47426
  })
47395
- }), row.cells.map((cell, colIdx) => {
47396
- var _a, _b, _c, _d, _e;
47397
- const cellProps = cell.getCellProps();
47398
- return (0, react.createElement)(Cell, Object.assign({}, cellProps, {
47399
- rowHeight,
47400
- key: `cell-${index}-${colIdx}`,
47401
- style: Object.assign(Object.assign(Object.assign(Object.assign({}, cellProps.style), {
47402
- backgroundColor,
47403
- justifyContent: mappedColumns[colIdx].align,
47404
- maxWidth: (_a = cell.column) === null || _a === void 0 ? void 0 : _a.maxWidth,
47405
- width: cellProps.style.width === "NaNpx" ? mappedColumns[colIdx].width : cellProps.style.width
47406
- }), ((_b = mappedColumns[colIdx]) === null || _b === void 0 ? void 0 : _b.sticky) === "left" && typeof ((_c = mappedColumns[colIdx]) === null || _c === void 0 ? void 0 : _c.stickyOffset) === "number" ? { left: `${mappedColumns[colIdx].stickyOffset}px` } : {}), ((_d = mappedColumns[colIdx]) === null || _d === void 0 ? void 0 : _d.sticky) === "right" && typeof ((_e = mappedColumns[colIdx]) === null || _e === void 0 ? void 0 : _e.stickyOffset) === "number" ? { right: `${mappedColumns[colIdx].stickyOffset}px` } : {})
47407
- }), (0, import_jsx_runtime.jsx)(CellContent, {
47408
- hasRowHeight: rowHeight !== DEFAULT_ROW_HEIGHT,
47409
- children: cell.render("Cell", {
47410
- colIdx,
47411
- currentEditCell,
47412
- rowIdx: index
47413
- })
47414
- }));
47415
- }));
47427
+ }), `row-${index}`);
47416
47428
  }, arePropsEqual);
47417
47429
  //#endregion
47418
47430
  //#region ../ui-components/dist/table/table.js
@@ -47468,7 +47480,7 @@
47468
47480
 
47469
47481
  position: sticky;
47470
47482
  z-index: 5;
47471
- inset: calc(2.5rem - 2px) 0 0 0;
47483
+ inset: calc(2.5rem - 2px) 0 0;
47472
47484
 
47473
47485
  display: block;
47474
47486
 
@@ -47601,8 +47613,8 @@
47601
47613
  for (let i = 0; i < len; i++) {
47602
47614
  const aa = a[i];
47603
47615
  const bb = b[i];
47604
- const an = parseInt(aa);
47605
- const bn = parseInt(bb);
47616
+ const an = parseInt(aa, 10);
47617
+ const bn = parseInt(bb, 10);
47606
47618
  const aIsNaN = Number.isNaN(an);
47607
47619
  const bIsNaN = Number.isNaN(bn);
47608
47620
  if (aIsNaN && bIsNaN) {
@@ -47650,11 +47662,11 @@
47650
47662
  var appendStickyOffsets = (columns) => {
47651
47663
  let leftOffset = 0;
47652
47664
  let rightOffset = 0;
47653
- const rightStickyColumnWidths = columns.filter((col) => col.sticky === "right").slice(1).map((col) => parseInt(col.width) || 150);
47665
+ const rightStickyColumnWidths = columns.filter((col) => col.sticky === "right").slice(1).map((col) => parseInt(col.width, 10) || 150);
47654
47666
  return columns.map((col) => {
47655
47667
  if (col.sticky === "left") {
47656
47668
  const nextCol = Object.assign(Object.assign({}, col), { stickyOffset: leftOffset });
47657
- const width = parseInt(col.width) || 150;
47669
+ const width = parseInt(col.width, 10) || 150;
47658
47670
  leftOffset += width;
47659
47671
  return nextCol;
47660
47672
  }
@@ -47778,7 +47790,7 @@
47778
47790
  return appendStickyOffsets(appendFilterComponents(orderStickyCols(processedColumns)));
47779
47791
  }, [columns, actions]);
47780
47792
  const hasFixedColumns = (0, react.useMemo)(() => mappedColumns.some((column) => "sticky" in column), [mappedColumns]);
47781
- const totalColumnsWidth = (0, react.useMemo)(() => mappedColumns.reduce((acc, column) => acc + (parseInt(column.width) || 150), 0), [mappedColumns]);
47793
+ const totalColumnsWidth = (0, react.useMemo)(() => mappedColumns.reduce((acc, column) => acc + (parseInt(column.width, 10) || 150), 0), [mappedColumns]);
47782
47794
  const filterTypes = (0, react.useMemo)(() => ({
47783
47795
  categorical,
47784
47796
  datetime: datetime$2,
@@ -47786,7 +47798,7 @@
47786
47798
  }), []);
47787
47799
  const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow, state: { sortBy, filters }, setAllFilters, resetResizing, allColumns } = (0, import_react_table.useTable)({
47788
47800
  columns: mappedColumns,
47789
- data: data || infiniteData,
47801
+ data: data !== null && data !== void 0 ? data : infiniteData,
47790
47802
  filterTypes,
47791
47803
  sortTypes: { alphanumeric: caseInsensitiveAlphanumeric },
47792
47804
  initialState: { sortBy: currentSortBy.map((sort) => Object.assign(Object.assign({}, sort), { id: mappedColumns.find((col) => [col.sortKey, col.accessor].includes(sort.id)).accessor })) },
@@ -47812,53 +47824,56 @@
47812
47824
  var { children, style: tableStyle } = _a, rest = __rest$1(_a, ["children", "style"]);
47813
47825
  return (0, import_jsx_runtime.jsxs)("div", { children: [(0, import_jsx_runtime.jsx)(Header, {
47814
47826
  style: { width: `max(${totalColumnsWidth}px, 100%)` },
47815
- children: headerGroups.map((headerGroup, gidx) => (0, react.createElement)(HeaderRow, Object.assign({}, headerGroup.getHeaderGroupProps(), { key: `group-${gidx}` }), headerGroup.headers.map((col, cidx) => {
47816
- const headerProps = col.getHeaderProps();
47817
- const sortProps = col.getSortByToggleProps();
47818
- const headerContent = col.render("Header");
47819
- const resizerProps = col.getResizerProps();
47820
- const numVisibleColumns = allColumns.filter((column) => column.isVisible).length;
47821
- const showSort = !col.disableSortBy;
47822
- const showFilter = col.canFilter && col.filter;
47823
- const showOptions = cidx === numVisibleColumns - 1 && showTableOptions;
47824
- const showHeaderCellButtonContainer = showSort || showFilter || showOptions;
47825
- return (0, react.createElement)(HeaderCell, Object.assign({}, headerProps, {
47826
- key: `col-${gidx}-${cidx}`,
47827
- style: Object.assign(Object.assign(Object.assign(Object.assign({}, headerProps.style), {
47828
- maxWidth: col.maxWidth,
47829
- width: headerProps.style.width === "NaNpx" ? mappedColumns[cidx].width : headerProps.style.width
47830
- }), col.sticky === "left" && typeof col.stickyOffset === "number" ? { left: `${col.stickyOffset}px` } : {}), col.sticky === "right" && typeof col.stickyOffset === "number" ? { right: `${col.stickyOffset}px` } : {})
47831
- }), (0, import_jsx_runtime.jsxs)(HeaderTooltipContainer, {
47832
- isPrimitiveHeader: typeof headerContent === "string",
47833
- children: [(0, import_jsx_runtime.jsx)(HeaderContentWrapper, Object.assign({}, sortProps, {
47834
- isPrimitiveHeader: typeof headerContent === "string",
47835
- title: typeof headerContent === "string" ? headerContent : "",
47836
- children: headerContent
47837
- })), col.tooltip && (0, import_jsx_runtime.jsx)(Tooltip, {
47838
- content: col.tooltip,
47839
- children: (0, import_jsx_runtime.jsx)(TooltipIcon, { icon: faCircleQuestion })
47840
- })]
47841
- }), showHeaderCellButtonContainer && (0, import_jsx_runtime.jsxs)(HeaderCellButtonContainer, { children: [(0, import_jsx_runtime.jsxs)(HeaderIconsWrapper, { children: [
47842
- showSort && (0, import_jsx_runtime.jsx)(HeaderIconWrapper, { children: (0, import_jsx_runtime.jsx)(SortIcon, Object.assign({}, sortProps, {
47843
- className: "tableSortArrow",
47844
- icon: getSortIcon(col.isSorted, col.isSortedDesc),
47845
- isSorted: col.isSorted
47846
- })) }),
47847
- showFilter ? (0, import_jsx_runtime.jsx)(FilterContainer, { col }) : null,
47848
- showOptions && (0, import_jsx_runtime.jsx)(OptionsMenu, {
47849
- allColumns,
47850
- allowColumnHiding: allowHiding,
47851
- numVisibleColumns,
47852
- resetResizing,
47853
- setAllFilters,
47854
- style: tableOptionsStyle
47855
- })
47856
- ] }), (0, import_jsx_runtime.jsx)(ResizeBorder, Object.assign({}, resizerProps))] }));
47857
- })))
47858
- }), (0, react.createElement)("div", Object.assign({}, tableProps, rest, {
47859
- key: "table-body-inner",
47860
- style: tableStyle
47861
- }), children)] }, "table-inner");
47827
+ children: headerGroups.map((headerGroup) => {
47828
+ const _a = headerGroup.getHeaderGroupProps(), { key: headerGroupKey } = _a, headerGroupProps = __rest$1(_a, ["key"]);
47829
+ return (0, import_jsx_runtime.jsx)(HeaderRow, Object.assign({}, headerGroupProps, { children: headerGroup.headers.map((col, cidx) => {
47830
+ const _a = col.getHeaderProps(), { key: headerCellKey } = _a, headerProps = __rest$1(_a, ["key"]);
47831
+ const sortProps = col.getSortByToggleProps();
47832
+ const headerContent = col.render("Header");
47833
+ const resizerProps = col.getResizerProps();
47834
+ const numVisibleColumns = allColumns.filter((column) => column.isVisible).length;
47835
+ const showSort = !col.disableSortBy;
47836
+ const showFilter = col.canFilter && col.filter;
47837
+ const showOptions = cidx === numVisibleColumns - 1 && showTableOptions;
47838
+ const showHeaderCellButtonContainer = Boolean(showSort) || Boolean(showFilter) || Boolean(showOptions);
47839
+ return (0, import_jsx_runtime.jsxs)(HeaderCell, Object.assign({}, headerProps, {
47840
+ style: Object.assign(Object.assign(Object.assign(Object.assign({}, headerProps.style), {
47841
+ maxWidth: col.maxWidth,
47842
+ width: headerProps.style.width === "NaNpx" ? mappedColumns[cidx].width : headerProps.style.width
47843
+ }), col.sticky === "left" && typeof col.stickyOffset === "number" ? { left: `${col.stickyOffset}px` } : {}), col.sticky === "right" && typeof col.stickyOffset === "number" ? { right: `${col.stickyOffset}px` } : {}),
47844
+ children: [(0, import_jsx_runtime.jsxs)(HeaderTooltipContainer, {
47845
+ isPrimitiveHeader: typeof headerContent === "string",
47846
+ children: [(0, import_jsx_runtime.jsx)(HeaderContentWrapper, Object.assign({}, sortProps, {
47847
+ isPrimitiveHeader: typeof headerContent === "string",
47848
+ title: typeof headerContent === "string" ? headerContent : "",
47849
+ children: headerContent
47850
+ })), col.tooltip && (0, import_jsx_runtime.jsx)(Tooltip, {
47851
+ content: col.tooltip,
47852
+ children: (0, import_jsx_runtime.jsx)(TooltipIcon, { icon: faCircleQuestion })
47853
+ })]
47854
+ }), showHeaderCellButtonContainer && (0, import_jsx_runtime.jsxs)(HeaderCellButtonContainer, { children: [(0, import_jsx_runtime.jsxs)(HeaderIconsWrapper, { children: [
47855
+ showSort && (0, import_jsx_runtime.jsx)(HeaderIconWrapper, { children: (0, import_jsx_runtime.jsx)(SortIcon, Object.assign({}, sortProps, {
47856
+ className: "tableSortArrow",
47857
+ icon: getSortIcon(col.isSorted, col.isSortedDesc),
47858
+ isSorted: col.isSorted
47859
+ })) }),
47860
+ showFilter ? (0, import_jsx_runtime.jsx)(FilterContainer, { col }) : null,
47861
+ showOptions && (0, import_jsx_runtime.jsx)(OptionsMenu, {
47862
+ allColumns,
47863
+ allowColumnHiding: allowHiding,
47864
+ numVisibleColumns,
47865
+ resetResizing,
47866
+ setAllFilters,
47867
+ style: tableOptionsStyle
47868
+ })
47869
+ ] }), (0, import_jsx_runtime.jsx)(ResizeBorder, Object.assign({}, resizerProps))] })]
47870
+ }), headerCellKey);
47871
+ }) }), headerGroupKey);
47872
+ })
47873
+ }), (0, import_jsx_runtime.jsx)("div", Object.assign({}, tableProps, rest, {
47874
+ style: tableStyle,
47875
+ children
47876
+ }), "table-body-inner")] }, "table-inner");
47862
47877
  }, useDeepCompare([
47863
47878
  tableProps,
47864
47879
  totalColumnsWidth,
@@ -47872,7 +47887,7 @@
47872
47887
  return (0, import_jsx_runtime.jsx)(StyledFixedSizeList, {
47873
47888
  height,
47874
47889
  innerElementType: renderTable,
47875
- itemCount: itemCount || rows.length,
47890
+ itemCount: itemCount !== null && itemCount !== void 0 ? itemCount : rows.length,
47876
47891
  itemData: createItemData$1(width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns, tableRowHeight, rowDataIdColumn),
47877
47892
  itemSize: tableRowHeight,
47878
47893
  onItemsRendered,
@@ -47925,7 +47940,6 @@
47925
47940
  flex-shrink: 0;
47926
47941
 
47927
47942
  width: 100%;
47928
-
47929
47943
  border-radius: 1rem 1rem 0 0;
47930
47944
  `;
47931
47945
  var TabComponent = dist_default.span`
@@ -47940,11 +47954,11 @@
47940
47954
 
47941
47955
  box-sizing: border-box;
47942
47956
  height: 2.5rem;
47957
+ border-bottom: ${(props) => props.selected ? `2px solid ${props.theme.colors.primary}` : `1px solid ${props.theme.colors.grey3}`};
47943
47958
 
47944
47959
  color: ${(props) => props.selected ? props.theme.colors.primary : props.theme.colors.grey3};
47945
47960
 
47946
47961
  background-color: ${(props) => props.theme.colors.blue1};
47947
- border-bottom: ${(props) => props.selected ? `2px solid ${props.theme.colors.primary}` : `1px solid ${props.theme.colors.grey3}`};
47948
47962
 
47949
47963
  :hover {
47950
47964
  color: ${(props) => props.selected ? props.theme.colors.primary : props.theme.colors.text};
@@ -48046,6 +48060,12 @@
48046
48060
  const end = source.endsWith("$") ? source.length - 1 : source.length;
48047
48061
  return source.slice(start, end);
48048
48062
  }
48063
+ function floatSafeRemainder(val, step) {
48064
+ const valDecCount = (val.toString().split(".")[1] || "").length;
48065
+ const stepDecCount = (step.toString().split(".")[1] || "").length;
48066
+ const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
48067
+ return Number.parseInt(val.toFixed(decCount).replace(".", "")) % Number.parseInt(step.toFixed(decCount).replace(".", "")) / 10 ** decCount;
48068
+ }
48049
48069
  function defineLazy(object, key, getter) {
48050
48070
  Object.defineProperty(object, key, {
48051
48071
  get() {
@@ -48460,7 +48480,10 @@
48460
48480
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
48461
48481
  return new RegExp(`^${regex}$`);
48462
48482
  };
48483
+ var integer = /^\d+$/;
48484
+ var number$3 = /^-?\d+(?:\.\d+)?/i;
48463
48485
  var boolean$1 = /true|false/i;
48486
+ var _null$2 = /null/i;
48464
48487
  var lowercase = /^[^A-Z]*$/;
48465
48488
  var uppercase = /^[^a-z]*$/;
48466
48489
  //#endregion
@@ -48471,6 +48494,140 @@
48471
48494
  inst._zod.def = def;
48472
48495
  (_a = inst._zod).onattach ?? (_a.onattach = []);
48473
48496
  });
48497
+ var numericOriginMap = {
48498
+ number: "number",
48499
+ bigint: "bigint",
48500
+ object: "date"
48501
+ };
48502
+ var $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
48503
+ $ZodCheck.init(inst, def);
48504
+ const origin = numericOriginMap[typeof def.value];
48505
+ inst._zod.onattach.push((inst) => {
48506
+ const bag = inst._zod.bag;
48507
+ const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
48508
+ if (def.value < curr) if (def.inclusive) bag.maximum = def.value;
48509
+ else bag.exclusiveMaximum = def.value;
48510
+ });
48511
+ inst._zod.check = (payload) => {
48512
+ if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
48513
+ payload.issues.push({
48514
+ origin,
48515
+ code: "too_big",
48516
+ maximum: def.value,
48517
+ input: payload.value,
48518
+ inclusive: def.inclusive,
48519
+ inst,
48520
+ continue: !def.abort
48521
+ });
48522
+ };
48523
+ });
48524
+ var $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
48525
+ $ZodCheck.init(inst, def);
48526
+ const origin = numericOriginMap[typeof def.value];
48527
+ inst._zod.onattach.push((inst) => {
48528
+ const bag = inst._zod.bag;
48529
+ const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
48530
+ if (def.value > curr) if (def.inclusive) bag.minimum = def.value;
48531
+ else bag.exclusiveMinimum = def.value;
48532
+ });
48533
+ inst._zod.check = (payload) => {
48534
+ if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
48535
+ payload.issues.push({
48536
+ origin,
48537
+ code: "too_small",
48538
+ minimum: def.value,
48539
+ input: payload.value,
48540
+ inclusive: def.inclusive,
48541
+ inst,
48542
+ continue: !def.abort
48543
+ });
48544
+ };
48545
+ });
48546
+ var $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
48547
+ $ZodCheck.init(inst, def);
48548
+ inst._zod.onattach.push((inst) => {
48549
+ var _a;
48550
+ (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
48551
+ });
48552
+ inst._zod.check = (payload) => {
48553
+ if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
48554
+ if (typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0) return;
48555
+ payload.issues.push({
48556
+ origin: typeof payload.value,
48557
+ code: "not_multiple_of",
48558
+ divisor: def.value,
48559
+ input: payload.value,
48560
+ inst,
48561
+ continue: !def.abort
48562
+ });
48563
+ };
48564
+ });
48565
+ var $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
48566
+ $ZodCheck.init(inst, def);
48567
+ def.format = def.format || "float64";
48568
+ const isInt = def.format?.includes("int");
48569
+ const origin = isInt ? "int" : "number";
48570
+ const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
48571
+ inst._zod.onattach.push((inst) => {
48572
+ const bag = inst._zod.bag;
48573
+ bag.format = def.format;
48574
+ bag.minimum = minimum;
48575
+ bag.maximum = maximum;
48576
+ if (isInt) bag.pattern = integer;
48577
+ });
48578
+ inst._zod.check = (payload) => {
48579
+ const input = payload.value;
48580
+ if (isInt) {
48581
+ if (!Number.isInteger(input)) {
48582
+ payload.issues.push({
48583
+ expected: origin,
48584
+ format: def.format,
48585
+ code: "invalid_type",
48586
+ input,
48587
+ inst
48588
+ });
48589
+ return;
48590
+ }
48591
+ if (!Number.isSafeInteger(input)) {
48592
+ if (input > 0) payload.issues.push({
48593
+ input,
48594
+ code: "too_big",
48595
+ maximum: Number.MAX_SAFE_INTEGER,
48596
+ note: "Integers must be within the safe integer range.",
48597
+ inst,
48598
+ origin,
48599
+ continue: !def.abort
48600
+ });
48601
+ else payload.issues.push({
48602
+ input,
48603
+ code: "too_small",
48604
+ minimum: Number.MIN_SAFE_INTEGER,
48605
+ note: "Integers must be within the safe integer range.",
48606
+ inst,
48607
+ origin,
48608
+ continue: !def.abort
48609
+ });
48610
+ return;
48611
+ }
48612
+ }
48613
+ if (input < minimum) payload.issues.push({
48614
+ origin: "number",
48615
+ input,
48616
+ code: "too_small",
48617
+ minimum,
48618
+ inclusive: true,
48619
+ inst,
48620
+ continue: !def.abort
48621
+ });
48622
+ if (input > maximum) payload.issues.push({
48623
+ origin: "number",
48624
+ input,
48625
+ code: "too_big",
48626
+ maximum,
48627
+ inst
48628
+ });
48629
+ };
48630
+ });
48474
48631
  var $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
48475
48632
  var _a;
48476
48633
  $ZodCheck.init(inst, def);
@@ -49055,6 +49212,30 @@
49055
49212
  });
49056
49213
  };
49057
49214
  });
49215
+ var $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
49216
+ $ZodType.init(inst, def);
49217
+ inst._zod.pattern = inst._zod.bag.pattern ?? number$3;
49218
+ inst._zod.parse = (payload, _ctx) => {
49219
+ if (def.coerce) try {
49220
+ payload.value = Number(payload.value);
49221
+ } catch (_) {}
49222
+ const input = payload.value;
49223
+ if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) return payload;
49224
+ const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : void 0 : void 0;
49225
+ payload.issues.push({
49226
+ expected: "number",
49227
+ code: "invalid_type",
49228
+ input,
49229
+ inst,
49230
+ ...received ? { received } : {}
49231
+ });
49232
+ return payload;
49233
+ };
49234
+ });
49235
+ var $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
49236
+ $ZodCheckNumberFormat.init(inst, def);
49237
+ $ZodNumber.init(inst, def);
49238
+ });
49058
49239
  var $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
49059
49240
  $ZodType.init(inst, def);
49060
49241
  inst._zod.pattern = boolean$1;
@@ -49073,6 +49254,22 @@
49073
49254
  return payload;
49074
49255
  };
49075
49256
  });
49257
+ var $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => {
49258
+ $ZodType.init(inst, def);
49259
+ inst._zod.pattern = _null$2;
49260
+ inst._zod.values = /* @__PURE__ */ new Set([null]);
49261
+ inst._zod.parse = (payload, _ctx) => {
49262
+ const input = payload.value;
49263
+ if (input === null) return payload;
49264
+ payload.issues.push({
49265
+ expected: "null",
49266
+ code: "invalid_type",
49267
+ input,
49268
+ inst
49269
+ });
49270
+ return payload;
49271
+ };
49272
+ });
49076
49273
  var $ZodAny = /*@__PURE__*/ $constructor("$ZodAny", (inst, def) => {
49077
49274
  $ZodType.init(inst, def);
49078
49275
  inst._zod.parse = (payload) => payload;
@@ -50062,12 +50259,34 @@
50062
50259
  ...normalizeParams(params)
50063
50260
  });
50064
50261
  }
50262
+ function _number(Class, params) {
50263
+ return new Class({
50264
+ type: "number",
50265
+ checks: [],
50266
+ ...normalizeParams(params)
50267
+ });
50268
+ }
50269
+ function _int(Class, params) {
50270
+ return new Class({
50271
+ type: "number",
50272
+ check: "number_format",
50273
+ abort: false,
50274
+ format: "safeint",
50275
+ ...normalizeParams(params)
50276
+ });
50277
+ }
50065
50278
  function _boolean(Class, params) {
50066
50279
  return new Class({
50067
50280
  type: "boolean",
50068
50281
  ...normalizeParams(params)
50069
50282
  });
50070
50283
  }
50284
+ function _null$1(Class, params) {
50285
+ return new Class({
50286
+ type: "null",
50287
+ ...normalizeParams(params)
50288
+ });
50289
+ }
50071
50290
  function _any(Class) {
50072
50291
  return new Class({ type: "any" });
50073
50292
  }
@@ -50080,6 +50299,45 @@
50080
50299
  ...normalizeParams(params)
50081
50300
  });
50082
50301
  }
50302
+ function _lt(value, params) {
50303
+ return new $ZodCheckLessThan({
50304
+ check: "less_than",
50305
+ ...normalizeParams(params),
50306
+ value,
50307
+ inclusive: false
50308
+ });
50309
+ }
50310
+ function _lte(value, params) {
50311
+ return new $ZodCheckLessThan({
50312
+ check: "less_than",
50313
+ ...normalizeParams(params),
50314
+ value,
50315
+ inclusive: true
50316
+ });
50317
+ }
50318
+ function _gt(value, params) {
50319
+ return new $ZodCheckGreaterThan({
50320
+ check: "greater_than",
50321
+ ...normalizeParams(params),
50322
+ value,
50323
+ inclusive: false
50324
+ });
50325
+ }
50326
+ function _gte(value, params) {
50327
+ return new $ZodCheckGreaterThan({
50328
+ check: "greater_than",
50329
+ ...normalizeParams(params),
50330
+ value,
50331
+ inclusive: true
50332
+ });
50333
+ }
50334
+ function _multipleOf(value, params) {
50335
+ return new $ZodCheckMultipleOf({
50336
+ check: "multiple_of",
50337
+ ...normalizeParams(params),
50338
+ value
50339
+ });
50340
+ }
50083
50341
  function _maxLength(maximum, params) {
50084
50342
  return new $ZodCheckMaxLength({
50085
50343
  check: "max_length",
@@ -50172,6 +50430,16 @@
50172
50430
  ...normalizeParams(params)
50173
50431
  });
50174
50432
  }
50433
+ function _custom(Class, fn, _params) {
50434
+ const norm = normalizeParams(_params);
50435
+ norm.abort ?? (norm.abort = true);
50436
+ return new Class({
50437
+ type: "custom",
50438
+ check: "custom",
50439
+ fn,
50440
+ ...norm
50441
+ });
50442
+ }
50175
50443
  function _refine(Class, fn, _params) {
50176
50444
  return new Class({
50177
50445
  type: "custom",
@@ -50434,6 +50702,41 @@
50434
50702
  $ZodJWT.init(inst, def);
50435
50703
  ZodStringFormat.init(inst, def);
50436
50704
  });
50705
+ var ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
50706
+ $ZodNumber.init(inst, def);
50707
+ ZodType.init(inst, def);
50708
+ inst.gt = (value, params) => inst.check(_gt(value, params));
50709
+ inst.gte = (value, params) => inst.check(_gte(value, params));
50710
+ inst.min = (value, params) => inst.check(_gte(value, params));
50711
+ inst.lt = (value, params) => inst.check(_lt(value, params));
50712
+ inst.lte = (value, params) => inst.check(_lte(value, params));
50713
+ inst.max = (value, params) => inst.check(_lte(value, params));
50714
+ inst.int = (params) => inst.check(int(params));
50715
+ inst.safe = (params) => inst.check(int(params));
50716
+ inst.positive = (params) => inst.check(_gt(0, params));
50717
+ inst.nonnegative = (params) => inst.check(_gte(0, params));
50718
+ inst.negative = (params) => inst.check(_lt(0, params));
50719
+ inst.nonpositive = (params) => inst.check(_lte(0, params));
50720
+ inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
50721
+ inst.step = (value, params) => inst.check(_multipleOf(value, params));
50722
+ inst.finite = () => inst;
50723
+ const bag = inst._zod.bag;
50724
+ inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
50725
+ inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
50726
+ inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? .5);
50727
+ inst.isFinite = true;
50728
+ inst.format = bag.format ?? null;
50729
+ });
50730
+ function number$4(params) {
50731
+ return _number(ZodNumber, params);
50732
+ }
50733
+ var ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
50734
+ $ZodNumberFormat.init(inst, def);
50735
+ ZodNumber.init(inst, def);
50736
+ });
50737
+ function int(params) {
50738
+ return _int(ZodNumberFormat, params);
50739
+ }
50437
50740
  var ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
50438
50741
  $ZodBoolean.init(inst, def);
50439
50742
  ZodType.init(inst, def);
@@ -50441,6 +50744,13 @@
50441
50744
  function boolean(params) {
50442
50745
  return _boolean(ZodBoolean, params);
50443
50746
  }
50747
+ var ZodNull = /*@__PURE__*/ $constructor("ZodNull", (inst, def) => {
50748
+ $ZodNull.init(inst, def);
50749
+ ZodType.init(inst, def);
50750
+ });
50751
+ function _null(params) {
50752
+ return _null$1(ZodNull, params);
50753
+ }
50444
50754
  var ZodAny = /*@__PURE__*/ $constructor("ZodAny", (inst, def) => {
50445
50755
  $ZodAny.init(inst, def);
50446
50756
  ZodType.init(inst, def);
@@ -50770,6 +51080,9 @@
50770
51080
  ch._zod.check = fn;
50771
51081
  return ch;
50772
51082
  }
51083
+ function custom$4(fn, _params) {
51084
+ return _custom(ZodCustom, fn ?? (() => true), _params);
51085
+ }
50773
51086
  function refine(fn, _params = {}) {
50774
51087
  return _refine(ZodCustom, fn, _params);
50775
51088
  }
@@ -52678,12 +52991,12 @@
52678
52991
  width: 22rem;
52679
52992
  height: ${(props) => props.hasTitle ? "5.625rem" : "4.375rem"};
52680
52993
  padding: 1rem;
52994
+ border: 1px solid ${(props) => getStatusColor(props.status, props.theme.colors)};
52995
+ border-radius: 0.25rem;
52681
52996
 
52682
52997
  color: ${(props) => getStatusColor(props.status, props.theme.colors)};
52683
52998
 
52684
52999
  background-color: ${(props) => mix$1(.1, getStatusColor(props.status, props.theme.colors), props.theme.colors.background)};
52685
- border: 1px solid ${(props) => getStatusColor(props.status, props.theme.colors)};
52686
- border-radius: 0.25rem;
52687
53000
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
52688
53001
  `;
52689
53002
  var Message = dist_default.div`
@@ -52699,23 +53012,21 @@
52699
53012
  overflow: hidden;
52700
53013
  display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
52701
53014
  -webkit-box-orient: vertical;
53015
+ -webkit-line-clamp: 1;
52702
53016
 
52703
53017
  font-size: 1rem;
52704
53018
  font-weight: 700;
52705
53019
  text-overflow: ellipsis;
52706
-
52707
- -webkit-line-clamp: 1;
52708
53020
  `;
52709
53021
  var Body = dist_default.span`
52710
53022
  overflow: hidden;
52711
53023
  display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
52712
53024
  -webkit-box-orient: vertical;
53025
+ -webkit-line-clamp: ${(props) => props.moreDetailsShown ? 1 : 2};
52713
53026
 
52714
53027
  font-weight: 400;
52715
53028
  line-height: 1.25rem;
52716
53029
  text-overflow: ellipsis;
52717
-
52718
- -webkit-line-clamp: ${(props) => props.moreDetailsShown ? 1 : 2};
52719
53030
  `;
52720
53031
  var Icon$1 = dist_default.div`
52721
53032
  display: flex;
@@ -52732,11 +53043,11 @@
52732
53043
  display: flex;
52733
53044
 
52734
53045
  padding-left: 0;
53046
+ border: none;
52735
53047
 
52736
53048
  color: ${() => theme.colors.grey4};
52737
53049
 
52738
53050
  background: transparent;
52739
- border: none;
52740
53051
 
52741
53052
  :hover {
52742
53053
  text-decoration: underline;
@@ -68607,29 +68918,159 @@
68607
68918
  this.task_id = task_id;
68608
68919
  }
68609
68920
  };
68921
+ var initMessageSchema = object$4({
68922
+ message: object$4({ channel: string$4() }),
68923
+ type: literal$4("init")
68924
+ });
68925
+ var pingPongMessageSchema = object$4({
68926
+ message: _null(),
68927
+ type: union$4([literal$4("ping"), literal$4("pong")])
68928
+ });
68929
+ var taskNotificationContentSchema = discriminatedUnion("status", [
68930
+ object$4({
68931
+ status: literal$4("COMPLETE"),
68932
+ task_id: string$4()
68933
+ }).passthrough(),
68934
+ object$4({
68935
+ status: literal$4("ERROR"),
68936
+ task_id: string$4(),
68937
+ error: string$4()
68938
+ }).passthrough(),
68939
+ object$4({
68940
+ status: literal$4("PROGRESS"),
68941
+ task_id: string$4(),
68942
+ progress: number$4(),
68943
+ message: string$4()
68944
+ }).passthrough(),
68945
+ object$4({
68946
+ status: literal$4("CANCELED"),
68947
+ task_id: string$4()
68948
+ }).passthrough()
68949
+ ]);
68950
+ var taskNotificationMessageSchema = object$4({
68951
+ __typename: literal$4("TaskNotificationMessage"),
68952
+ message: taskNotificationContentSchema,
68953
+ type: literal$4("message")
68954
+ });
68955
+ var serverErrorMessageSchema = object$4({
68956
+ __typename: literal$4("ServerErrorMessage"),
68957
+ message: object$4({
68958
+ error: string$4(),
68959
+ time: string$4()
68960
+ }),
68961
+ type: literal$4("message")
68962
+ });
68963
+ var variableRequestMessageSchema = object$4({
68964
+ __typename: literal$4("VariableRequestMessage"),
68965
+ message: object$4({
68966
+ /** Channel to send in the response */
68967
+ __rchan: string$4(),
68968
+ variable: custom$4()
68969
+ }),
68970
+ type: literal$4("message")
68971
+ });
68972
+ var actionMessageSchema = object$4({
68973
+ __typename: literal$4("ActionMessage"),
68974
+ message: object$4({
68975
+ /**
68976
+ * Action implementation instance
68977
+ */
68978
+ action: custom$4().nullable(),
68979
+ /**
68980
+ * Execution uid
68981
+ */
68982
+ uid: string$4()
68983
+ }),
68984
+ type: literal$4("message")
68985
+ });
68986
+ var backendStoreMessageSchema = object$4({
68987
+ __typename: literal$4("BackendStoreMessage"),
68988
+ message: object$4({
68989
+ store_uid: string$4(),
68990
+ value: any(),
68991
+ sequence_number: number$4()
68992
+ }),
68993
+ type: literal$4("message")
68994
+ });
68995
+ var backendStorePatchMessageSchema = object$4({
68996
+ __typename: literal$4("BackendStorePatchMessage"),
68997
+ message: object$4({
68998
+ store_uid: string$4(),
68999
+ patches: array$4(object$4({
69000
+ op: union$4([
69001
+ literal$4("add"),
69002
+ literal$4("remove"),
69003
+ literal$4("replace"),
69004
+ literal$4("move"),
69005
+ literal$4("copy"),
69006
+ literal$4("test")
69007
+ ]),
69008
+ path: string$4(),
69009
+ value: any().optional(),
69010
+ from: string$4().optional()
69011
+ })),
69012
+ sequence_number: number$4()
69013
+ }),
69014
+ type: literal$4("message")
69015
+ });
69016
+ var serverVariableMessageSchema = object$4({
69017
+ __typename: literal$4("ServerVariableMessage"),
69018
+ message: object$4({
69019
+ __type: literal$4("ServerVariable"),
69020
+ uid: string$4(),
69021
+ sequence_number: number$4()
69022
+ }),
69023
+ type: literal$4("message")
69024
+ });
69025
+ var customMessageSchema = object$4({
69026
+ message: object$4({
69027
+ data: any(),
69028
+ kind: string$4(),
69029
+ /** Optional ID, returned from server custom messages coming as a response for a custom client message */
69030
+ __response_for: string$4().optional(),
69031
+ /** Optional ID, should be included as `__response_for` when the server responds to this message */
69032
+ __rchan: string$4().optional()
69033
+ }),
69034
+ type: literal$4("custom")
69035
+ });
69036
+ var firstPartyServerMessageSchema = discriminatedUnion("__typename", [
69037
+ taskNotificationMessageSchema,
69038
+ serverErrorMessageSchema,
69039
+ variableRequestMessageSchema,
69040
+ actionMessageSchema,
69041
+ backendStoreMessageSchema,
69042
+ backendStorePatchMessageSchema,
69043
+ serverVariableMessageSchema
69044
+ ]);
69045
+ var webSocketMessageSchema = union$4([
69046
+ initMessageSchema,
69047
+ pingPongMessageSchema,
69048
+ firstPartyServerMessageSchema,
69049
+ customMessageSchema
69050
+ ]);
68610
69051
  function isInitMessage(message) {
68611
69052
  return message.type === "init";
68612
69053
  }
68613
69054
  function isTaskNotification(message) {
68614
- return message.type === "message" && "status" in message.message && "task_id" in message.message;
69055
+ return message.type === "message" && message.__typename === "TaskNotificationMessage";
68615
69056
  }
68616
69057
  function isServerVariableMessage(message) {
68617
- return message.type === "message" && "__type" in message.message && message.message.__type === "ServerVariable";
69058
+ return message.type === "message" && message.__typename === "ServerVariableMessage";
68618
69059
  }
68619
69060
  function isServerErrorMessage(message) {
68620
- return message.type === "message" && "error" in message.message;
69061
+ return message.type === "message" && message.__typename === "ServerErrorMessage";
68621
69062
  }
68622
69063
  function isVariableRequestMessage(message) {
68623
- return message.type === "message" && "variable" in message.message;
69064
+ return message.type === "message" && message.__typename === "VariableRequestMessage";
68624
69065
  }
68625
69066
  function isActionMessage(message) {
68626
- return message.type === "message" && "action" in message.message;
69067
+ return message.type === "message" && message.__typename === "ActionMessage";
68627
69068
  }
68628
69069
  function isBackendStoreMessage(message) {
68629
- return message.type === "message" && "store_uid" in message.message && "value" in message.message;
69070
+ return message.type === "message" && message.__typename === "BackendStoreMessage";
68630
69071
  }
68631
69072
  function isBackendStorePatchMessage(message) {
68632
- return message.type === "message" && "store_uid" in message.message && "patches" in message.message;
69073
+ return message.type === "message" && message.__typename === "BackendStorePatchMessage";
68633
69074
  }
68634
69075
  function isCustomMessage(message) {
68635
69076
  return message.type === "custom";
@@ -87898,7 +88339,7 @@ ${String(error)}`;
87898
88339
  variable: await resolveVariable(resolvedValue.variable, client, taskContext, extras, resolver)
87899
88340
  };
87900
88341
  const resolvedValueMap = isVariable(variable.value_map) ? await resolveVariable(variable.value_map, client, taskContext, extras, resolver) : variable.value_map;
87901
- const resolvedDefault = isVariable(variable.default) ? await resolveVariable(variable.default, client, taskContext, extras, resolver) : variable.default;
88342
+ const resolvedDefault = variable.default !== void 0 && isVariable(variable.default) ? await resolveVariable(variable.default, client, taskContext, extras, resolver) : variable.default;
87902
88343
  return {
87903
88344
  type: "switch",
87904
88345
  uid: variable.uid,
@@ -89465,7 +89906,7 @@ ${String(error)}`;
89465
89906
  return desc ? -comparison : comparison;
89466
89907
  });
89467
89908
  }
89468
- const startIndex = pagination.offset || 0;
89909
+ const startIndex = pagination.offset ?? 0;
89469
89910
  const endIndex = pagination.limit ? startIndex + pagination.limit : filteredData.length;
89470
89911
  filteredData = filteredData.slice(startIndex, endIndex);
89471
89912
  }
@@ -89966,7 +90407,7 @@ ${String(error)}`;
89966
90407
  if (result instanceof Promise) promiseChain = result;
89967
90408
  }
89968
90409
  }
89969
- return promiseChain || void 0;
90410
+ return promiseChain ?? void 0;
89970
90411
  }, []);
89971
90412
  }
89972
90413
  /**
@@ -90797,9 +91238,9 @@ ${String(error)}`;
90797
91238
 
90798
91239
  height: min-content;
90799
91240
  padding: 1rem;
91241
+ border-radius: 0.25rem;
90800
91242
 
90801
91243
  background-color: ${(props) => curriedTransparentize$1(.9, props.theme.colors.error)};
90802
- border-radius: 0.25rem;
90803
91244
  `);
90804
91245
  var IconWrapper = dist_default.div`
90805
91246
  display: flex;
@@ -90844,15 +91285,15 @@ ${String(error)}`;
90844
91285
 
90845
91286
  width: 40px;
90846
91287
  height: 40px;
90847
-
90848
- color: ${(props) => props.theme.colors.error};
90849
-
90850
- background-color: inherit;
90851
91288
  border: none;
90852
91289
  border: 1px solid;
90853
91290
  border-color: ${(props) => props.theme.colors.error};
90854
91291
  border-radius: 5px;
90855
91292
 
91293
+ color: ${(props) => props.theme.colors.error};
91294
+
91295
+ background-color: inherit;
91296
+
90856
91297
  transition-timing-function: ease;
90857
91298
  transition-duration: 100ms;
90858
91299
  transition-property: color, border-color;
@@ -90863,8 +91304,8 @@ ${String(error)}`;
90863
91304
  }
90864
91305
 
90865
91306
  &:hover {
90866
- color: ${(props) => props.theme.colors.errorHover};
90867
91307
  border-color: ${(props) => props.theme.colors.errorHover};
91308
+ color: ${(props) => props.theme.colors.errorHover};
90868
91309
 
90869
91310
  i {
90870
91311
  transform: rotate(180deg);
@@ -91270,7 +91711,6 @@ ${String(error)}`;
91270
91711
  padding-top: 0.25rem;
91271
91712
  padding-bottom: 0.25rem;
91272
91713
  padding-left: 0.5rem;
91273
-
91274
91714
  border-bottom: 1px solid;
91275
91715
  border-bottom-color: ${(props) => props.theme.colors.grey5};
91276
91716
  `;
@@ -91306,11 +91746,11 @@ ${String(error)}`;
91306
91746
  flex-direction: column;
91307
91747
 
91308
91748
  width: 100%;
91749
+ border-left: 1px solid ${(props) => props.theme.colors.grey5};
91309
91750
 
91310
91751
  color: ${(props) => props.theme.colors.text};
91311
91752
 
91312
91753
  background-color: ${(props) => props.theme.colors.blue1};
91313
- border-left: 1px solid ${(props) => props.theme.colors.grey5};
91314
91754
  `;
91315
91755
  var HeaderWrapper = dist_default.div`
91316
91756
  display: flex;
@@ -91319,7 +91759,6 @@ ${String(error)}`;
91319
91759
 
91320
91760
  width: 100%;
91321
91761
  margin: 0 auto;
91322
-
91323
91762
  border-bottom: 1px solid;
91324
91763
  border-bottom-color: ${(props) => props.theme.colors.grey5};
91325
91764
  `;
@@ -91345,9 +91784,9 @@ ${String(error)}`;
91345
91784
  }
91346
91785
  `;
91347
91786
  var SelectionButton = dist_default(button_default)`
91348
- color: ${(props) => props.theme.colors.text};
91349
91787
  border-bottom: 2px solid ${(props) => props.theme.colors.primary};
91350
91788
  border-radius: 0;
91789
+ color: ${(props) => props.theme.colors.text};
91351
91790
 
91352
91791
  :hover:not(:disabled) {
91353
91792
  color: ${(props) => props.theme.colors.text};
@@ -91430,13 +91869,13 @@ ${String(error)}`;
91430
91869
 
91431
91870
  width: ${50}px;
91432
91871
  height: ${50}px;
91872
+ border: 1px solid;
91873
+ border-color: ${(props) => props.theme.colors.secondary};
91874
+ border-radius: 30%;
91433
91875
 
91434
91876
  color: ${(props) => props.theme.colors.blue1};
91435
91877
 
91436
91878
  background-color: ${(props) => props.theme.colors.secondary};
91437
- border: 1px solid;
91438
- border-color: ${(props) => props.theme.colors.secondary};
91439
- border-radius: 30%;
91440
91879
 
91441
91880
  transition: ${(props) => !props.$isDragging ? "left top" : "none"} 150ms ease 0s;
91442
91881
  `;
@@ -91538,9 +91977,9 @@ ${String(error)}`;
91538
91977
  width: 24px;
91539
91978
  height: 100%;
91540
91979
  padding: 0;
91980
+ border: 0;
91541
91981
 
91542
91982
  background-color: transparent;
91543
- border: 0;
91544
91983
  `;
91545
91984
  /**
91546
91985
  * Sidebar resizer.
@@ -91690,8 +92129,8 @@ ${String(error)}`;
91690
92129
  }
91691
92130
 
91692
92131
  *::-webkit-scrollbar-track {
91693
- background: ${(props) => props.theme.colors.grey2};
91694
92132
  border-radius: 100px;
92133
+ background: ${(props) => props.theme.colors.grey2};
91695
92134
  }
91696
92135
 
91697
92136
  *::-webkit-scrollbar-corner {
@@ -91699,8 +92138,8 @@ ${String(error)}`;
91699
92138
  }
91700
92139
 
91701
92140
  *::-webkit-scrollbar-thumb {
91702
- background-color: ${(props) => props.theme.colors.grey5};
91703
92141
  border-radius: 100px;
92142
+ background-color: ${(props) => props.theme.colors.grey5};
91704
92143
  }
91705
92144
  `;
91706
92145
  /**
@@ -92117,7 +92556,7 @@ ${String(error)}`;
92117
92556
  await Promise.allSettled(Array.from(extrasMap.entries()).map(([serializableExtras, storeDiff]) => sendRequest(serializableExtras, storeDiff)));
92118
92557
  }, [client]);
92119
92558
  const applyPatchesToAtoms = Recoil_index_31(({ snapshot, set }) => async (storeUid, patches, sequenceNumber) => {
92120
- const expectedSequence = STORE_SEQUENCE_MAP.get(storeUid) || 0;
92559
+ const expectedSequence = STORE_SEQUENCE_MAP.get(storeUid) ?? 0;
92121
92560
  if (sequenceNumber !== expectedSequence + 1) {
92122
92561
  if (sequenceNumber <= expectedSequence) return;
92123
92562
  console.warn(`Sequence number mismatch for store ${storeUid}. Expected: ${expectedSequence + 1}, Got: ${sequenceNumber}.`);
@@ -92660,7 +93099,7 @@ ${String(error)}`;
92660
93099
  width: props.width,
92661
93100
  ...flexProps,
92662
93101
  ...rawStyles,
92663
- ...props.style ?? {}
93102
+ ...props.style
92664
93103
  };
92665
93104
  return Object.fromEntries(Object.entries(stylesObj).filter(([, v]) => v !== null && v !== void 0));
92666
93105
  }, [
@@ -92699,11 +93138,11 @@ ${String(error)}`;
92699
93138
  `;
92700
93139
  var Card = dist_default.div`
92701
93140
  padding: 1.5rem;
93141
+ border-radius: 1rem;
92702
93142
 
92703
93143
  color: ${(props) => props.theme.colors.text};
92704
93144
 
92705
93145
  background-color: ${(props) => props.theme.colors.blue1};
92706
- border-radius: 1rem;
92707
93146
  box-shadow: ${(props) => props.theme.shadow.medium};
92708
93147
 
92709
93148
  @media (width >= 640px) {
@@ -92745,14 +93184,14 @@ ${String(error)}`;
92745
93184
  height: 2.5rem;
92746
93185
  margin-top: 0.5rem;
92747
93186
  padding: 0 1rem;
93187
+ border: none;
93188
+ border-radius: 0.25rem;
92748
93189
 
92749
93190
  font-size: 1rem;
92750
93191
  line-height: 1.5rem;
92751
93192
  color: ${(props) => props.theme.colors.text};
92752
93193
 
92753
93194
  background-color: ${(props) => props.theme.colors.blue1};
92754
- border: none;
92755
- border-radius: 0.25rem;
92756
93195
  outline: none;
92757
93196
  box-shadow:
92758
93197
  inset 0 0 0 0 ${(props) => props.theme.colors.blue1},
@@ -93011,7 +93450,7 @@ ${String(error)}`;
93011
93450
  const { search } = useLocation();
93012
93451
  const query = (0, react$3.useMemo)(() => new URLSearchParams(search), [search]);
93013
93452
  const code = props.code ?? query.get("code");
93014
- const errorConfig = code && errorMessages[code] || errorMessages.default;
93453
+ const errorConfig = code ? errorMessages[code] ?? errorMessages.default : errorMessages.default;
93015
93454
  return /* @__PURE__ */ React.createElement(CenteredDivWithGap$1, null, /* @__PURE__ */ React.createElement("h1", null, errorConfig.title), /* @__PURE__ */ React.createElement("p", null, errorConfig.description), /* @__PURE__ */ React.createElement(button_default, {
93016
93455
  href: "/login",
93017
93456
  styling: errorConfig.styling
@@ -93033,8 +93472,8 @@ ${String(error)}`;
93033
93472
 
93034
93473
  code {
93035
93474
  padding: 0.2rem;
93036
- background-color: ${(props) => props.theme.colors.grey2};
93037
93475
  border-radius: 0.5rem;
93476
+ background-color: ${(props) => props.theme.colors.grey2};
93038
93477
  }
93039
93478
  `;
93040
93479
  var Title = dist_default.h1`
@@ -93146,8 +93585,9 @@ body,
93146
93585
  return !securityContext.isSecureContext;
93147
93586
  }
93148
93587
  function getAuthOriginRecommendation(location) {
93149
- const host = location.host || location.hostname;
93150
- const pathname = location.pathname || "";
93588
+ let host = location.host;
93589
+ if (!host) host = location.hostname;
93590
+ const pathname = location.pathname ?? "";
93151
93591
  if (location.hostname.toLowerCase() === "0.0.0.0") return `http://${host.replace(/^0\.0\.0\.0/i, "localhost")}${pathname}`;
93152
93592
  return `https://${host}${pathname}`;
93153
93593
  }
@@ -93163,6 +93603,7 @@ body,
93163
93603
  box-sizing: border-box;
93164
93604
  width: 100%;
93165
93605
  padding: 0.75rem 1rem;
93606
+ border-bottom: 1px solid ${(props) => curriedTransparentize$1(.7, props.theme.colors.error)};
93166
93607
 
93167
93608
  font-size: 0.875rem;
93168
93609
  line-height: 1.4;
@@ -93171,12 +93612,11 @@ body,
93171
93612
  letter-spacing: 0.01em;
93172
93613
 
93173
93614
  background-color: ${(props) => curriedTransparentize$1(.9, props.theme.colors.error)};
93174
- border-bottom: 1px solid ${(props) => curriedTransparentize$1(.7, props.theme.colors.error)};
93175
93615
  `;
93176
93616
  var InlineCode = dist_default.code`
93177
93617
  font-family: monospace;
93178
93618
  font-size: inherit;
93179
- word-break: break-word;
93619
+ word-break: normal;
93180
93620
  overflow-wrap: anywhere;
93181
93621
  `;
93182
93622
  var RecommendationLink = dist_default.a`
@@ -126700,6 +127140,9 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
126700
127140
  return processedRow;
126701
127141
  });
126702
127142
  };
127143
+ /**
127144
+ * Convert records to a matrix while leaving missing fields as empty cells.
127145
+ */
126703
127146
  var createMatrixFromArrayOfObjects = (content) => {
126704
127147
  const processedContent = processDataForDownload(content);
126705
127148
  const headings = [];
@@ -126715,7 +127158,8 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
126715
127158
  const headingsLength = headings.length;
126716
127159
  const matrix = [];
126717
127160
  processedContent.forEach((c) => {
126718
- const row = new Array(headingsLength);
127161
+ const row = [];
127162
+ row.length = headingsLength;
126719
127163
  Object.entries(c).forEach(([k, v]) => {
126720
127164
  row[indexes[k]] = v;
126721
127165
  });
@@ -126732,6 +127176,9 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
126732
127176
  if (cellValue.search(/("|,|\n)/g) > 0) cellValue = `"${cellValue}"`;
126733
127177
  return cellValue;
126734
127178
  };
127179
+ /**
127180
+ * Serialize a matrix as a CSV blob.
127181
+ */
126735
127182
  var createCsvFromMatrix = (matrix) => {
126736
127183
  const csv = matrix.map((col) => col.map((cell) => processCell(cell)).join(",")).join("\n");
126737
127184
  return new Blob([csv], { type: "text/csv" });
@@ -126852,14 +127299,13 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
126852
127299
  width: ${(props) => props.direction === "row" ? "10rem" : "100%"};
126853
127300
  height: 3rem;
126854
127301
  padding: 0 1rem;
127302
+ border-radius: 1rem;
126855
127303
 
126856
127304
  font-size: 0.875rem;
126857
127305
  font-weight: 700;
126858
127306
  color: ${(props) => props.theme.colors.secondary};
126859
127307
  text-decoration: none;
126860
127308
 
126861
- border-radius: 1rem;
126862
-
126863
127309
  :hover {
126864
127310
  background: ${(props) => curriedTransparentize$1(.9, props.theme.colors.secondary)};
126865
127311
  }
@@ -127011,9 +127457,9 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
127011
127457
  const [to] = useVariable(props.to);
127012
127458
  const linkKey = getResolvedToHookKey(to);
127013
127459
  return /* @__PURE__ */ react$3.createElement(LinkResolveImpl, {
127460
+ key: linkKey,
127014
127461
  ...props,
127015
- to,
127016
- key: linkKey
127462
+ to
127017
127463
  });
127018
127464
  }
127019
127465
  //#endregion
@@ -127028,14 +127474,13 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
127028
127474
  width: auto;
127029
127475
  height: 3rem;
127030
127476
  padding: 0 1rem;
127477
+ border-radius: 1rem;
127031
127478
 
127032
127479
  font-size: 0.875rem;
127033
127480
  font-weight: 700;
127034
127481
  color: ${(props) => props.theme.colors.secondary};
127035
127482
  text-decoration: none;
127036
127483
 
127037
- border-radius: 1rem;
127038
-
127039
127484
  :hover {
127040
127485
  background: ${(props) => curriedTransparentize$1(.9, props.theme.colors.secondary)};
127041
127486
  }
@@ -127119,12 +127564,16 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
127119
127564
  //#endregion
127120
127565
  //#region js/components/side-bar-frame.tsx
127121
127566
  var shouldForwardProp$1 = (prop) => !["width"].includes(prop);
127567
+ function getWidth(width) {
127568
+ if (width) return width;
127569
+ return "240px";
127570
+ }
127122
127571
  var SideBar = dist_default.div.withConfig({ shouldForwardProp: shouldForwardProp$1 })`
127123
127572
  display: flex;
127124
127573
  flex-direction: column;
127125
127574
  align-items: center;
127126
127575
 
127127
- width: ${(props) => props.width || "240px"};
127576
+ width: ${(props) => getWidth(props.width)};
127128
127577
  min-width: 150px;
127129
127578
  max-width: 350px;
127130
127579
  height: 100%;
@@ -127210,6 +127659,10 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
127210
127659
  //#endregion
127211
127660
  //#region js/components/top-bar-frame.tsx
127212
127661
  var shouldForwardProp = (prop) => !["width"].includes(prop);
127662
+ function getHeight(height) {
127663
+ if (height) return height;
127664
+ return "124px";
127665
+ }
127213
127666
  var TopBar = dist_default.div.withConfig({ shouldForwardProp })`
127214
127667
  display: flex;
127215
127668
  flex-direction: column;
@@ -127217,7 +127670,7 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
127217
127670
  align-items: flex-end;
127218
127671
 
127219
127672
  width: 100%;
127220
- height: ${(props) => props.height || "124px"};
127673
+ height: ${(props) => getHeight(props.height)};
127221
127674
  min-height: 100px;
127222
127675
  max-height: 350px;
127223
127676
  padding: 2rem 3rem;
@@ -127245,7 +127698,6 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
127245
127698
  height: 3rem;
127246
127699
  margin-left: 0.5rem;
127247
127700
  padding: 1rem;
127248
-
127249
127701
  border-radius: 1rem;
127250
127702
 
127251
127703
  a {