@uniformdev/design-system 19.131.1-alpha.8 → 19.133.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1432,6 +1432,7 @@ __export(src_exports, {
1432
1432
  MenuItemInner: () => MenuItemInner,
1433
1433
  MenuItemSeparator: () => MenuItemSeparator,
1434
1434
  Modal: () => Modal,
1435
+ ModalDialog: () => ModalDialog,
1435
1436
  MultilineChip: () => MultilineChip,
1436
1437
  NUMBER_OPERATORS: () => NUMBER_OPERATORS,
1437
1438
  PageHeaderSection: () => PageHeaderSection,
@@ -3876,23 +3877,18 @@ init_emotion_jsx_shim();
3876
3877
  init_emotion_jsx_shim();
3877
3878
  var import_react17 = require("@emotion/react");
3878
3879
  var BadgeContainer = import_react17.css`
3879
- --caution-desc: rgb(161, 98, 7);
3880
3880
  --caution-title: rgb(133, 77, 14);
3881
3881
  --caution-container: rgb(254, 252, 232);
3882
3882
 
3883
- --danger-desc: rgb(185, 28, 28);
3884
3883
  --danger-title: rgb(153, 27, 27);
3885
3884
  --danger-container: rgb(254, 242, 242);
3886
3885
 
3887
- --info-desc: rgb(29, 78, 216);
3888
3886
  --info-title: rgb(30, 64, 175);
3889
3887
  --info-container: rgb(239, 246, 255);
3890
3888
 
3891
- --note-desc: var(--gray-700);
3892
3889
  --note-title: var(--gray-800);
3893
3890
  --note-container: var(--gray-50);
3894
3891
 
3895
- --success-desc: rgb(21, 128, 61);
3896
3892
  --success-title: rgb(22, 101, 52);
3897
3893
  --success-container: rgb(240, 253, 250);
3898
3894
 
@@ -13055,27 +13051,22 @@ var import_react29 = require("@emotion/react");
13055
13051
  init_emotion_jsx_shim();
13056
13052
  var import_react28 = require("@emotion/react");
13057
13053
  var functionalColors = import_react28.css`
13058
- --caution-desc: rgb(161, 98, 7);
13059
13054
  --caution-icon: rgb(250, 204, 21);
13060
13055
  --caution-title: rgb(133, 77, 14);
13061
13056
  --caution-container: rgb(254, 252, 232);
13062
13057
 
13063
- --danger-desc: rgb(185, 28, 28);
13064
13058
  --danger-icon: rgb(248, 113, 113);
13065
13059
  --danger-title: rgb(153, 27, 27);
13066
13060
  --danger-container: rgb(254, 242, 242);
13067
13061
 
13068
- --info-desc: rgb(29, 78, 216);
13069
13062
  --info-icon: rgb(96, 165, 250);
13070
13063
  --info-title: rgb(30, 64, 175);
13071
13064
  --info-container: rgb(239, 246, 255);
13072
13065
 
13073
- --note-desc: var(--gray-700);
13074
13066
  --note-icon: var(--gray-400);
13075
13067
  --note-title: var(--gray-800);
13076
13068
  --note-container: var(--gray-50);
13077
13069
 
13078
- --success-desc: rgb(21, 128, 61);
13079
13070
  --success-icon: rgb(74, 222, 128);
13080
13071
  --success-title: rgb(22, 101, 52);
13081
13072
  --success-container: rgb(240, 253, 250);
@@ -14091,12 +14082,6 @@ var calloutContainerCompact = import_react41.css`
14091
14082
  padding: var(--spacing-sm);
14092
14083
  border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
14093
14084
  border-left: 2px solid currentColor;
14094
-
14095
- --caution-desc: var(--typography-base);
14096
- --danger-desc: var(--typography-base);
14097
- --info-desc: var(--typography-base);
14098
- --note-desc: var(--typography-base);
14099
- --success-desc: var(--typography-base);
14100
14085
  `;
14101
14086
  var calloutInner = import_react41.css`
14102
14087
  display: flex;
@@ -14253,7 +14238,7 @@ var calloutTypeDataMap = {
14253
14238
  caution: {
14254
14239
  icon: CautionIcon,
14255
14240
  descriptionColor: import_react42.css`
14256
- color: var(--caution-desc);
14241
+ color: var(--typography-base);
14257
14242
  `,
14258
14243
  iconColor: import_react42.css`
14259
14244
  color: var(--caution-icon);
@@ -14266,7 +14251,7 @@ var calloutTypeDataMap = {
14266
14251
  danger: {
14267
14252
  icon: DangerIcon,
14268
14253
  descriptionColor: import_react42.css`
14269
- color: var(--danger-desc);
14254
+ color: var(--typography-base);
14270
14255
  `,
14271
14256
  iconColor: import_react42.css`
14272
14257
  color: var(--danger-icon);
@@ -14279,7 +14264,7 @@ var calloutTypeDataMap = {
14279
14264
  error: {
14280
14265
  icon: CautionIcon,
14281
14266
  descriptionColor: import_react42.css`
14282
- color: var(--danger-desc);
14267
+ color: var(--typography-base);
14283
14268
  `,
14284
14269
  iconColor: import_react42.css`
14285
14270
  color: var(--danger-icon);
@@ -14292,7 +14277,7 @@ var calloutTypeDataMap = {
14292
14277
  info: {
14293
14278
  icon: InfoIcon,
14294
14279
  descriptionColor: import_react42.css`
14295
- color: var(--info-desc);
14280
+ color: var(--typography-base);
14296
14281
  `,
14297
14282
  iconColor: import_react42.css`
14298
14283
  color: var(--info-icon);
@@ -14305,7 +14290,7 @@ var calloutTypeDataMap = {
14305
14290
  note: {
14306
14291
  icon: NoteIcon,
14307
14292
  descriptionColor: import_react42.css`
14308
- color: var(--note-desc);
14293
+ color: var(--typography-base);
14309
14294
  `,
14310
14295
  iconColor: import_react42.css`
14311
14296
  color: var(--note-icon);
@@ -14318,7 +14303,7 @@ var calloutTypeDataMap = {
14318
14303
  success: {
14319
14304
  icon: SuccessIcon,
14320
14305
  descriptionColor: import_react42.css`
14321
- color: var(--success-desc);
14306
+ color: var(--typography-base);
14322
14307
  `,
14323
14308
  iconColor: import_react42.css`
14324
14309
  color: var(--success-icon);
@@ -14331,7 +14316,7 @@ var calloutTypeDataMap = {
14331
14316
  tip: {
14332
14317
  icon: TipIcon,
14333
14318
  descriptionColor: import_react42.css`
14334
- color: var(--success-desc);
14319
+ color: var(--typography-base);
14335
14320
  `,
14336
14321
  iconColor: import_react42.css`
14337
14322
  color: var(--success-icon);
@@ -16047,7 +16032,8 @@ var InputTime = React13.forwardRef(
16047
16032
  isDisabled: !!disabled2,
16048
16033
  onChange: (0, import_react65.useCallback)(
16049
16034
  (time) => {
16050
- onChange == null ? void 0 : onChange(time.toString());
16035
+ var _a;
16036
+ onChange == null ? void 0 : onChange((_a = time == null ? void 0 : time.toString()) != null ? _a : "00:00:00");
16051
16037
  },
16052
16038
  [onChange]
16053
16039
  ),
@@ -18973,7 +18959,7 @@ var modalInnerStyles = import_react106.css`
18973
18959
  gap: var(--spacing-base);
18974
18960
  background: var(--gray-50);
18975
18961
  color: unset;
18976
- padding: calc(var(--spacing-2xl) - 2px);
18962
+ padding: var(--spacing-base);
18977
18963
  box-shadow: var(--elevation-500);
18978
18964
  border-radius: var(--rounded-base);
18979
18965
  `;
@@ -18995,7 +18981,6 @@ var modalCloseButtonStyles = import_react106.css`
18995
18981
  display: block;
18996
18982
  padding: 0;
18997
18983
  margin-left: auto;
18998
- translate: calc(var(--spacing-base)) calc(var(--spacing-base) * -1);
18999
18984
  transition: color var(--duration-fast) var(--timing-ease-out);
19000
18985
 
19001
18986
  &:hover,
@@ -19008,21 +18993,33 @@ var modalContentStyles = import_react106.css`
19008
18993
  position: relative;
19009
18994
  flex: 1;
19010
18995
  overflow: auto;
18996
+ padding: var(--spacing-md);
19011
18997
  ${scrollbarStyles}
19012
18998
  `;
18999
+ var modalDialogWrapper = import_react106.css`
19000
+ padding: 0 var(--spacing-lg) var(--spacing-md);
19001
+ `;
19002
+ var modalDialogInnerStyles = import_react106.css`
19003
+ // we need to override the gap of the modalInnerStyles when using a modal dialog
19004
+ > div {
19005
+ gap: 0;
19006
+ }
19007
+ `;
19013
19008
 
19014
19009
  // src/components/Modal/Modal.tsx
19015
19010
  var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
19011
+ var defaultModalWidth = "75rem";
19016
19012
  var defaultModalHeight = "51rem";
19017
19013
  var Modal = import_react107.default.forwardRef(
19018
19014
  ({
19019
19015
  header: header2,
19020
19016
  children,
19021
19017
  onRequestClose,
19022
- width,
19018
+ width = defaultModalWidth,
19023
19019
  height = defaultModalHeight,
19024
19020
  buttonGroup,
19025
19021
  modalSize = "lg",
19022
+ withoutContentPadding = false,
19026
19023
  ...modalProps
19027
19024
  }, ref) => {
19028
19025
  const dialogRef = (0, import_react107.useRef)(null);
@@ -19065,7 +19062,7 @@ var Modal = import_react107.default.forwardRef(
19065
19062
  ref.current = element;
19066
19063
  }
19067
19064
  },
19068
- css: [modalStyles, width ? void 0 : size[modalSize]],
19065
+ css: [modalStyles, !width ? size[modalSize] : void 0],
19069
19066
  style: { width, height: height === "auto" ? "min-content" : height },
19070
19067
  "data-testid": "side-dialog",
19071
19068
  onClick: onRequestClose,
@@ -19080,7 +19077,7 @@ var Modal = import_react107.default.forwardRef(
19080
19077
  onClick: (e) => e.stopPropagation(),
19081
19078
  children: [
19082
19079
  /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { css: modalHeaderStyles, children: [
19083
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { css: modalHeaderHeaderStyles, children: header2 }),
19080
+ !header2 ? null : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { css: modalHeaderHeaderStyles, children: header2 }),
19084
19081
  /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
19085
19082
  Button,
19086
19083
  {
@@ -19094,7 +19091,7 @@ var Modal = import_react107.default.forwardRef(
19094
19091
  }
19095
19092
  )
19096
19093
  ] }),
19097
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { css: modalContentStyles, children }),
19094
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
19098
19095
  buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(HorizontalRhythm, { children: buttonGroup }) : null
19099
19096
  ]
19100
19097
  }
@@ -19105,6 +19102,34 @@ var Modal = import_react107.default.forwardRef(
19105
19102
  );
19106
19103
  Modal.displayName = "Modal";
19107
19104
 
19105
+ // src/components/Modal/ModalDialog.tsx
19106
+ init_emotion_jsx_shim();
19107
+ var import_react108 = require("react");
19108
+ var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
19109
+ var ModalDialog = (0, import_react108.forwardRef)(
19110
+ ({ header: header2, buttonGroup, modalSize = "lg", children, height = "auto", onRequestClose, ...props }, ref) => {
19111
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
19112
+ Modal,
19113
+ {
19114
+ ...props,
19115
+ modalSize,
19116
+ ref,
19117
+ onRequestClose,
19118
+ height,
19119
+ withoutContentPadding: true,
19120
+ css: modalDialogInnerStyles,
19121
+ width: "",
19122
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(VerticalRhythm, { css: modalDialogWrapper, children: [
19123
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { css: modalHeaderStyles, children: header2 }),
19124
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { children }),
19125
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(HorizontalRhythm, { children: buttonGroup })
19126
+ ] })
19127
+ }
19128
+ );
19129
+ }
19130
+ );
19131
+ ModalDialog.displayName = "ModalDialog";
19132
+
19108
19133
  // src/components/Pagination/Pagination.tsx
19109
19134
  init_emotion_jsx_shim();
19110
19135
  var import_react_paginate = __toESM(require("react-paginate"));
@@ -19139,7 +19164,7 @@ var page = import_css.css`
19139
19164
  `;
19140
19165
 
19141
19166
  // src/components/Pagination/Pagination.tsx
19142
- var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
19167
+ var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
19143
19168
  function Pagination({
19144
19169
  limit,
19145
19170
  offset,
@@ -19154,12 +19179,12 @@ function Pagination({
19154
19179
  if (pageCount <= 1) {
19155
19180
  return null;
19156
19181
  }
19157
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
19182
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
19158
19183
  import_react_paginate.default,
19159
19184
  {
19160
19185
  forcePage: currentPage,
19161
- previousLabel: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: prevNextControls, children: "<" }),
19162
- nextLabel: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: prevNextControls, children: ">" }),
19186
+ previousLabel: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: prevNextControls, children: "<" }),
19187
+ nextLabel: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: prevNextControls, children: ">" }),
19163
19188
  breakLabel: "...",
19164
19189
  pageCount,
19165
19190
  marginPagesDisplayed: 2,
@@ -19179,8 +19204,8 @@ function Pagination({
19179
19204
 
19180
19205
  // src/components/ParameterInputs/hooks/ParameterShellContext.tsx
19181
19206
  init_emotion_jsx_shim();
19182
- var import_react108 = require("react");
19183
- var ParameterShellContext = (0, import_react108.createContext)({
19207
+ var import_react109 = require("react");
19208
+ var ParameterShellContext = (0, import_react109.createContext)({
19184
19209
  id: "",
19185
19210
  label: "",
19186
19211
  hiddenLabel: void 0,
@@ -19189,7 +19214,7 @@ var ParameterShellContext = (0, import_react108.createContext)({
19189
19214
  }
19190
19215
  });
19191
19216
  var useParameterShell = () => {
19192
- const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react108.useContext)(ParameterShellContext);
19217
+ const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react109.useContext)(ParameterShellContext);
19193
19218
  return {
19194
19219
  id,
19195
19220
  label,
@@ -19204,8 +19229,8 @@ init_emotion_jsx_shim();
19204
19229
 
19205
19230
  // src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
19206
19231
  init_emotion_jsx_shim();
19207
- var import_react109 = require("@emotion/react");
19208
- var inputIconBtn = import_react109.css`
19232
+ var import_react110 = require("@emotion/react");
19233
+ var inputIconBtn = import_react110.css`
19209
19234
  align-items: center;
19210
19235
  border: none;
19211
19236
  border-radius: var(--rounded-base);
@@ -19231,7 +19256,7 @@ var inputIconBtn = import_react109.css`
19231
19256
  `;
19232
19257
 
19233
19258
  // src/components/ParameterInputs/LabelLeadingIcon.tsx
19234
- var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
19259
+ var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
19235
19260
  var LabelLeadingIcon = ({
19236
19261
  icon,
19237
19262
  iconColor,
@@ -19243,7 +19268,7 @@ var LabelLeadingIcon = ({
19243
19268
  ...props
19244
19269
  }) => {
19245
19270
  const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
19246
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Tooltip, { title: titleFr, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
19271
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Tooltip, { title: titleFr, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
19247
19272
  "button",
19248
19273
  {
19249
19274
  css: inputIconBtn,
@@ -19253,7 +19278,7 @@ var LabelLeadingIcon = ({
19253
19278
  ...props,
19254
19279
  "data-testid": "lock-button",
19255
19280
  children: [
19256
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
19281
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
19257
19282
  Icon,
19258
19283
  {
19259
19284
  icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
@@ -19273,8 +19298,8 @@ init_emotion_jsx_shim();
19273
19298
 
19274
19299
  // src/components/ParameterInputs/styles/ParameterInput.styles.ts
19275
19300
  init_emotion_jsx_shim();
19276
- var import_react110 = require("@emotion/react");
19277
- var inputContainer2 = import_react110.css`
19301
+ var import_react111 = require("@emotion/react");
19302
+ var inputContainer2 = import_react111.css`
19278
19303
  position: relative;
19279
19304
  scroll-margin: var(--spacing-2xl);
19280
19305
 
@@ -19287,14 +19312,14 @@ var inputContainer2 = import_react110.css`
19287
19312
  }
19288
19313
  }
19289
19314
  `;
19290
- var labelText2 = import_react110.css`
19315
+ var labelText2 = import_react111.css`
19291
19316
  align-items: center;
19292
19317
  display: flex;
19293
19318
  gap: var(--spacing-xs);
19294
19319
  font-weight: var(--fw-regular);
19295
19320
  margin: 0 0 var(--spacing-xs);
19296
19321
  `;
19297
- var input3 = import_react110.css`
19322
+ var input3 = import_react111.css`
19298
19323
  display: block;
19299
19324
  appearance: none;
19300
19325
  box-sizing: border-box;
@@ -19342,18 +19367,18 @@ var input3 = import_react110.css`
19342
19367
  color: var(--gray-400);
19343
19368
  }
19344
19369
  `;
19345
- var selectInput = import_react110.css`
19370
+ var selectInput = import_react111.css`
19346
19371
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
19347
19372
  background-position: right var(--spacing-sm) center;
19348
19373
  background-repeat: no-repeat;
19349
19374
  background-size: 1rem;
19350
19375
  padding-right: var(--spacing-xl);
19351
19376
  `;
19352
- var inputWrapper = import_react110.css`
19377
+ var inputWrapper = import_react111.css`
19353
19378
  display: flex; // used to correct overflow with chrome textarea
19354
19379
  position: relative;
19355
19380
  `;
19356
- var inputIcon2 = import_react110.css`
19381
+ var inputIcon2 = import_react111.css`
19357
19382
  align-items: center;
19358
19383
  background: var(--white);
19359
19384
  border-radius: var(--rounded-md) 0 0 var(--rounded-md);
@@ -19369,7 +19394,7 @@ var inputIcon2 = import_react110.css`
19369
19394
  width: var(--spacing-lg);
19370
19395
  z-index: var(--z-10);
19371
19396
  `;
19372
- var inputToggleLabel2 = import_react110.css`
19397
+ var inputToggleLabel2 = import_react111.css`
19373
19398
  --inline-label-color: var(--typography-base);
19374
19399
  align-items: center;
19375
19400
  cursor: pointer;
@@ -19384,7 +19409,7 @@ var inputToggleLabel2 = import_react110.css`
19384
19409
  --inline-label-color: var(--gray-400);
19385
19410
  }
19386
19411
  `;
19387
- var toggleInput2 = import_react110.css`
19412
+ var toggleInput2 = import_react111.css`
19388
19413
  appearance: none;
19389
19414
  border: 1px solid var(--gray-200);
19390
19415
  background: var(--white);
@@ -19437,7 +19462,7 @@ var toggleInput2 = import_react110.css`
19437
19462
  border-color: var(--gray-300);
19438
19463
  }
19439
19464
  `;
19440
- var inlineLabel2 = import_react110.css`
19465
+ var inlineLabel2 = import_react111.css`
19441
19466
  color: var(--inline-label-color);
19442
19467
  padding-left: var(--spacing-md);
19443
19468
  font-size: var(--fs-sm);
@@ -19454,7 +19479,7 @@ var inlineLabel2 = import_react110.css`
19454
19479
  }
19455
19480
  }
19456
19481
  `;
19457
- var inputMenu = import_react110.css`
19482
+ var inputMenu = import_react111.css`
19458
19483
  background: none;
19459
19484
  border: none;
19460
19485
  padding: var(--spacing-2xs);
@@ -19462,10 +19487,10 @@ var inputMenu = import_react110.css`
19462
19487
  top: calc(var(--spacing-md) * -1.2);
19463
19488
  right: 0;
19464
19489
  `;
19465
- var inputActionItems = import_react110.css`
19490
+ var inputActionItems = import_react111.css`
19466
19491
  display: flex;
19467
19492
  `;
19468
- var inputMenuHover = import_react110.css`
19493
+ var inputMenuHover = import_react111.css`
19469
19494
  opacity: var(--opacity-50);
19470
19495
  transition: background-color var(--duration-fast) var(--timing-ease-out);
19471
19496
 
@@ -19475,11 +19500,11 @@ var inputMenuHover = import_react110.css`
19475
19500
  background-color: var(--gray-200);
19476
19501
  }
19477
19502
  `;
19478
- var textarea2 = import_react110.css`
19503
+ var textarea2 = import_react111.css`
19479
19504
  resize: vertical;
19480
19505
  min-height: 2rem;
19481
19506
  `;
19482
- var dataConnectButton = import_react110.css`
19507
+ var dataConnectButton = import_react111.css`
19483
19508
  align-items: center;
19484
19509
  appearance: none;
19485
19510
  box-sizing: border-box;
@@ -19514,7 +19539,7 @@ var dataConnectButton = import_react110.css`
19514
19539
  pointer-events: none;
19515
19540
  }
19516
19541
  `;
19517
- var linkParameterBtn = import_react110.css`
19542
+ var linkParameterBtn = import_react111.css`
19518
19543
  border-radius: var(--rounded-base);
19519
19544
  background: transparent;
19520
19545
  border: none;
@@ -19523,7 +19548,7 @@ var linkParameterBtn = import_react110.css`
19523
19548
  font-size: var(--fs-sm);
19524
19549
  line-height: 1;
19525
19550
  `;
19526
- var linkParameterControls = import_react110.css`
19551
+ var linkParameterControls = import_react111.css`
19527
19552
  position: absolute;
19528
19553
  inset: 0 0 0 auto;
19529
19554
  padding: 0 var(--spacing-base);
@@ -19532,7 +19557,7 @@ var linkParameterControls = import_react110.css`
19532
19557
  justify-content: center;
19533
19558
  gap: var(--spacing-base);
19534
19559
  `;
19535
- var linkParameterInput = (withExternalLinkIcon) => import_react110.css`
19560
+ var linkParameterInput = (withExternalLinkIcon) => import_react111.css`
19536
19561
  padding-right: calc(
19537
19562
  ${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
19538
19563
  var(--spacing-base)
@@ -19545,7 +19570,7 @@ var linkParameterInput = (withExternalLinkIcon) => import_react110.css`
19545
19570
  }
19546
19571
  }
19547
19572
  `;
19548
- var linkParameterIcon = import_react110.css`
19573
+ var linkParameterIcon = import_react111.css`
19549
19574
  align-items: center;
19550
19575
  color: var(--brand-secondary-3);
19551
19576
  display: flex;
@@ -19560,7 +19585,7 @@ var linkParameterIcon = import_react110.css`
19560
19585
  `;
19561
19586
 
19562
19587
  // src/components/ParameterInputs/ParameterDataResource.tsx
19563
- var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
19588
+ var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
19564
19589
  function ParameterDataResource({
19565
19590
  label,
19566
19591
  labelLeadingIcon,
@@ -19570,12 +19595,12 @@ function ParameterDataResource({
19570
19595
  disabled: disabled2,
19571
19596
  children
19572
19597
  }) {
19573
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
19574
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("span", { css: labelText2, children: [
19598
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
19599
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("span", { css: labelText2, children: [
19575
19600
  labelLeadingIcon ? labelLeadingIcon : null,
19576
19601
  label
19577
19602
  ] }),
19578
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
19603
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
19579
19604
  "button",
19580
19605
  {
19581
19606
  type: "button",
@@ -19584,12 +19609,12 @@ function ParameterDataResource({
19584
19609
  disabled: disabled2,
19585
19610
  onClick: onConnectDatasource,
19586
19611
  children: [
19587
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
19612
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
19588
19613
  children
19589
19614
  ]
19590
19615
  }
19591
19616
  ),
19592
- caption ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Caption, { children: caption }) : null
19617
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Caption, { children: caption }) : null
19593
19618
  ] });
19594
19619
  }
19595
19620
 
@@ -19598,20 +19623,20 @@ init_emotion_jsx_shim();
19598
19623
 
19599
19624
  // src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
19600
19625
  init_emotion_jsx_shim();
19601
- var import_react111 = require("@emotion/react");
19602
- var ParameterDrawerHeaderContainer = import_react111.css`
19626
+ var import_react112 = require("@emotion/react");
19627
+ var ParameterDrawerHeaderContainer = import_react112.css`
19603
19628
  align-items: center;
19604
19629
  display: flex;
19605
19630
  gap: var(--spacing-base);
19606
19631
  justify-content: space-between;
19607
19632
  margin-bottom: var(--spacing-sm);
19608
19633
  `;
19609
- var ParameterDrawerHeaderTitleGroup = import_react111.css`
19634
+ var ParameterDrawerHeaderTitleGroup = import_react112.css`
19610
19635
  align-items: center;
19611
19636
  display: flex;
19612
19637
  gap: var(--spacing-sm);
19613
19638
  `;
19614
- var ParameterDrawerHeaderTitle = import_react111.css`
19639
+ var ParameterDrawerHeaderTitle = import_react112.css`
19615
19640
  text-overflow: ellipsis;
19616
19641
  white-space: nowrap;
19617
19642
  overflow: hidden;
@@ -19619,12 +19644,12 @@ var ParameterDrawerHeaderTitle = import_react111.css`
19619
19644
  `;
19620
19645
 
19621
19646
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
19622
- var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
19647
+ var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
19623
19648
  var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
19624
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
19625
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
19649
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
19650
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
19626
19651
  iconBeforeTitle,
19627
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
19652
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
19628
19653
  ] }),
19629
19654
  children
19630
19655
  ] });
@@ -19632,12 +19657,12 @@ var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
19632
19657
 
19633
19658
  // src/components/ParameterInputs/ParameterGroup.tsx
19634
19659
  init_emotion_jsx_shim();
19635
- var import_react113 = require("react");
19660
+ var import_react114 = require("react");
19636
19661
 
19637
19662
  // src/components/ParameterInputs/styles/ParameterGroup.styles.ts
19638
19663
  init_emotion_jsx_shim();
19639
- var import_react112 = require("@emotion/react");
19640
- var fieldsetStyles = import_react112.css`
19664
+ var import_react113 = require("@emotion/react");
19665
+ var fieldsetStyles = import_react113.css`
19641
19666
  &:disabled,
19642
19667
  [readonly] {
19643
19668
  pointer-events: none;
@@ -19648,7 +19673,7 @@ var fieldsetStyles = import_react112.css`
19648
19673
  }
19649
19674
  }
19650
19675
  `;
19651
- var fieldsetLegend2 = import_react112.css`
19676
+ var fieldsetLegend2 = import_react113.css`
19652
19677
  display: block;
19653
19678
  font-weight: var(--fw-medium);
19654
19679
  margin-bottom: var(--spacing-sm);
@@ -19656,11 +19681,11 @@ var fieldsetLegend2 = import_react112.css`
19656
19681
  `;
19657
19682
 
19658
19683
  // src/components/ParameterInputs/ParameterGroup.tsx
19659
- var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
19660
- var ParameterGroup = (0, import_react113.forwardRef)(
19684
+ var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
19685
+ var ParameterGroup = (0, import_react114.forwardRef)(
19661
19686
  ({ legend, isDisabled, children, ...props }, ref) => {
19662
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
19663
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("legend", { css: fieldsetLegend2, children: legend }),
19687
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
19688
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("legend", { css: fieldsetLegend2, children: legend }),
19664
19689
  children
19665
19690
  ] });
19666
19691
  }
@@ -19668,24 +19693,24 @@ var ParameterGroup = (0, import_react113.forwardRef)(
19668
19693
 
19669
19694
  // src/components/ParameterInputs/ParameterImage.tsx
19670
19695
  init_emotion_jsx_shim();
19671
- var import_react120 = require("react");
19696
+ var import_react121 = require("react");
19672
19697
 
19673
19698
  // src/components/ParameterInputs/ParameterImagePreview.tsx
19674
19699
  init_emotion_jsx_shim();
19675
- var import_react115 = require("react");
19700
+ var import_react116 = require("react");
19676
19701
  var import_react_dom2 = require("react-dom");
19677
19702
 
19678
19703
  // src/components/ParameterInputs/styles/ParameterImage.styles.ts
19679
19704
  init_emotion_jsx_shim();
19680
- var import_react114 = require("@emotion/react");
19681
- var previewWrapper = import_react114.css`
19705
+ var import_react115 = require("@emotion/react");
19706
+ var previewWrapper = import_react115.css`
19682
19707
  margin-top: var(--spacing-xs);
19683
19708
  background: var(--gray-50);
19684
19709
  padding: var(--spacing-sm);
19685
19710
  border: solid 1px var(--gray-300);
19686
19711
  border-radius: var(--rounded-sm);
19687
19712
  `;
19688
- var previewLink = import_react114.css`
19713
+ var previewLink = import_react115.css`
19689
19714
  display: block;
19690
19715
  width: 100%;
19691
19716
 
@@ -19693,7 +19718,7 @@ var previewLink = import_react114.css`
19693
19718
  max-height: 9rem;
19694
19719
  }
19695
19720
  `;
19696
- var previewModalWrapper = import_react114.css`
19721
+ var previewModalWrapper = import_react115.css`
19697
19722
  background: var(--gray-50);
19698
19723
  display: flex;
19699
19724
  height: 100%;
@@ -19702,7 +19727,7 @@ var previewModalWrapper = import_react114.css`
19702
19727
  border: solid 1px var(--gray-300);
19703
19728
  border-radius: var(--rounded-sm);
19704
19729
  `;
19705
- var previewModalImage = import_react114.css`
19730
+ var previewModalImage = import_react115.css`
19706
19731
  display: flex;
19707
19732
  height: 100%;
19708
19733
  width: 100%;
@@ -19714,32 +19739,32 @@ var previewModalImage = import_react114.css`
19714
19739
  `;
19715
19740
 
19716
19741
  // src/components/ParameterInputs/ParameterImagePreview.tsx
19717
- var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
19742
+ var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
19718
19743
  function ParameterImagePreview({ imageSrc }) {
19719
- const [showModal, setShowModal] = (0, import_react115.useState)(false);
19720
- return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { css: previewWrapper, children: [
19721
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
19722
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19744
+ const [showModal, setShowModal] = (0, import_react116.useState)(false);
19745
+ return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { css: previewWrapper, children: [
19746
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
19747
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19723
19748
  "button",
19724
19749
  {
19725
19750
  css: previewLink,
19726
19751
  onClick: () => {
19727
19752
  setShowModal(true);
19728
19753
  },
19729
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
19754
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
19730
19755
  }
19731
19756
  )
19732
19757
  ] }) : null;
19733
19758
  }
19734
19759
  var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
19735
- return open ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_jsx_runtime100.Fragment, { children: (0, import_react_dom2.createPortal)(
19736
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19760
+ return open ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_jsx_runtime101.Fragment, { children: (0, import_react_dom2.createPortal)(
19761
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19737
19762
  Modal,
19738
19763
  {
19739
19764
  header: "Image Preview",
19740
19765
  onRequestClose,
19741
- buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
19742
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
19766
+ buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
19767
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
19743
19768
  }
19744
19769
  ),
19745
19770
  document.body
@@ -19748,27 +19773,27 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
19748
19773
 
19749
19774
  // src/components/ParameterInputs/ParameterShell.tsx
19750
19775
  init_emotion_jsx_shim();
19751
- var import_react118 = require("@emotion/react");
19752
- var import_react119 = require("react");
19776
+ var import_react119 = require("@emotion/react");
19777
+ var import_react120 = require("react");
19753
19778
 
19754
19779
  // src/components/ParameterInputs/ParameterLabel.tsx
19755
19780
  init_emotion_jsx_shim();
19756
- var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
19781
+ var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
19757
19782
  var ParameterLabel = ({ id, asSpan, children, ...props }) => {
19758
- return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
19783
+ return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
19759
19784
  };
19760
19785
 
19761
19786
  // src/components/ParameterInputs/ParameterMenuButton.tsx
19762
19787
  init_emotion_jsx_shim();
19763
- var import_react116 = require("react");
19764
- var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
19765
- var ParameterMenuButton = (0, import_react116.forwardRef)(
19788
+ var import_react117 = require("react");
19789
+ var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
19790
+ var ParameterMenuButton = (0, import_react117.forwardRef)(
19766
19791
  ({ label, children }, ref) => {
19767
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19792
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19768
19793
  Menu,
19769
19794
  {
19770
19795
  menuLabel: `${label} menu`,
19771
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19796
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19772
19797
  "button",
19773
19798
  {
19774
19799
  className: "parameter-menu",
@@ -19776,7 +19801,7 @@ var ParameterMenuButton = (0, import_react116.forwardRef)(
19776
19801
  type: "button",
19777
19802
  "aria-label": `${label} options`,
19778
19803
  ref,
19779
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
19804
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
19780
19805
  }
19781
19806
  ),
19782
19807
  children
@@ -19787,14 +19812,14 @@ var ParameterMenuButton = (0, import_react116.forwardRef)(
19787
19812
 
19788
19813
  // src/components/ParameterInputs/styles/ParameterShell.styles.ts
19789
19814
  init_emotion_jsx_shim();
19790
- var import_react117 = require("@emotion/react");
19791
- var emptyParameterShell = import_react117.css`
19815
+ var import_react118 = require("@emotion/react");
19816
+ var emptyParameterShell = import_react118.css`
19792
19817
  border-radius: var(--rounded-sm);
19793
19818
  flex-grow: 1;
19794
19819
  position: relative;
19795
19820
  max-width: 100%;
19796
19821
  `;
19797
- var emptyParameterShellText = import_react117.css`
19822
+ var emptyParameterShellText = import_react118.css`
19798
19823
  background: var(--brand-secondary-6);
19799
19824
  border-radius: var(--rounded-sm);
19800
19825
  padding: var(--spacing-sm);
@@ -19802,7 +19827,7 @@ var emptyParameterShellText = import_react117.css`
19802
19827
  font-size: var(--fs-sm);
19803
19828
  margin: 0;
19804
19829
  `;
19805
- var overrideMarker = import_react117.css`
19830
+ var overrideMarker = import_react118.css`
19806
19831
  border-radius: var(--rounded-sm);
19807
19832
  border: 10px solid var(--gray-300);
19808
19833
  border-left-color: transparent;
@@ -19813,7 +19838,7 @@ var overrideMarker = import_react117.css`
19813
19838
  `;
19814
19839
 
19815
19840
  // src/components/ParameterInputs/ParameterShell.tsx
19816
- var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
19841
+ var import_jsx_runtime104 = require("@emotion/react/jsx-runtime");
19817
19842
  var extractParameterProps = (props) => {
19818
19843
  const {
19819
19844
  id,
@@ -19873,36 +19898,36 @@ var ParameterShell = ({
19873
19898
  isParameterGroup = false,
19874
19899
  ...props
19875
19900
  }) => {
19876
- const [manualErrorMessage, setManualErrorMessage] = (0, import_react119.useState)(void 0);
19901
+ const [manualErrorMessage, setManualErrorMessage] = (0, import_react120.useState)(void 0);
19877
19902
  const setErrorMessage = (message) => setManualErrorMessage(message);
19878
19903
  const errorMessaging = errorMessage || manualErrorMessage;
19879
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { css: inputContainer2, ...props, id, children: [
19880
- hiddenLabel || title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(ParameterLabel, { id, css: labelText2, children: [
19904
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { css: inputContainer2, ...props, id, children: [
19905
+ hiddenLabel || title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(ParameterLabel, { id, css: labelText2, children: [
19881
19906
  labelLeadingIcon != null ? labelLeadingIcon : null,
19882
19907
  label,
19883
19908
  labelTrailingIcon != null ? labelTrailingIcon : null
19884
19909
  ] }),
19885
- !title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(ParameterLabel, { id, asSpan: true, children: [
19910
+ !title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(ParameterLabel, { id, asSpan: true, children: [
19886
19911
  labelLeadingIcon != null ? labelLeadingIcon : null,
19887
19912
  title2,
19888
19913
  labelTrailingIcon != null ? labelTrailingIcon : null
19889
19914
  ] }),
19890
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { css: inputWrapper, children: [
19891
- actionItems ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19915
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { css: inputWrapper, children: [
19916
+ actionItems ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19892
19917
  "div",
19893
19918
  {
19894
19919
  css: [
19895
19920
  inputMenu,
19896
19921
  inputActionItems,
19897
- menuItems ? import_react118.css`
19922
+ menuItems ? import_react119.css`
19898
19923
  right: var(--spacing-md);
19899
19924
  ` : void 0
19900
19925
  ],
19901
19926
  children: actionItems
19902
19927
  }
19903
19928
  ) : null,
19904
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
19905
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19929
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
19930
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19906
19931
  ParameterShellContext.Provider,
19907
19932
  {
19908
19933
  value: {
@@ -19912,14 +19937,14 @@ var ParameterShell = ({
19912
19937
  errorMessage: errorMessaging,
19913
19938
  handleManuallySetErrorMessage: (message) => setErrorMessage(message)
19914
19939
  },
19915
- children: isParameterGroup ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(ParameterShellPlaceholder, { children: [
19940
+ children: isParameterGroup ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(ParameterShellPlaceholder, { children: [
19916
19941
  children,
19917
- hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
19942
+ hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
19918
19943
  ] })
19919
19944
  }
19920
19945
  )
19921
19946
  ] }),
19922
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19947
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19923
19948
  FieldMessage,
19924
19949
  {
19925
19950
  helperMessageTestId: captionTestId,
@@ -19933,27 +19958,27 @@ var ParameterShell = ({
19933
19958
  ] });
19934
19959
  };
19935
19960
  var ParameterShellPlaceholder = ({ children }) => {
19936
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: emptyParameterShell, children });
19961
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { css: emptyParameterShell, children });
19937
19962
  };
19938
- var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
19963
+ var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
19939
19964
 
19940
19965
  // src/components/ParameterInputs/ParameterImage.tsx
19941
- var import_jsx_runtime104 = require("@emotion/react/jsx-runtime");
19942
- var ParameterImage = (0, import_react120.forwardRef)(
19966
+ var import_jsx_runtime105 = require("@emotion/react/jsx-runtime");
19967
+ var ParameterImage = (0, import_react121.forwardRef)(
19943
19968
  ({ children, ...props }, ref) => {
19944
19969
  const { shellProps, innerProps } = extractParameterProps(props);
19945
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
19946
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterImageInner, { ref, ...innerProps }),
19970
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
19971
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterImageInner, { ref, ...innerProps }),
19947
19972
  children
19948
19973
  ] });
19949
19974
  }
19950
19975
  );
19951
- var ParameterImageInner = (0, import_react120.forwardRef)((props, ref) => {
19976
+ var ParameterImageInner = (0, import_react121.forwardRef)((props, ref) => {
19952
19977
  const { value } = props;
19953
19978
  const { id, label, hiddenLabel, errorMessage } = useParameterShell();
19954
- const deferredValue = (0, import_react120.useDeferredValue)(value);
19955
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
19956
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19979
+ const deferredValue = (0, import_react121.useDeferredValue)(value);
19980
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
19981
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
19957
19982
  "input",
19958
19983
  {
19959
19984
  css: input3,
@@ -19965,22 +19990,22 @@ var ParameterImageInner = (0, import_react120.forwardRef)((props, ref) => {
19965
19990
  ...props
19966
19991
  }
19967
19992
  ),
19968
- errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
19993
+ errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
19969
19994
  ] });
19970
19995
  });
19971
19996
 
19972
19997
  // src/components/ParameterInputs/ParameterInput.tsx
19973
19998
  init_emotion_jsx_shim();
19974
- var import_react121 = require("react");
19975
- var import_jsx_runtime105 = require("@emotion/react/jsx-runtime");
19976
- var ParameterInput = (0, import_react121.forwardRef)((props, ref) => {
19999
+ var import_react122 = require("react");
20000
+ var import_jsx_runtime106 = require("@emotion/react/jsx-runtime");
20001
+ var ParameterInput = (0, import_react122.forwardRef)((props, ref) => {
19977
20002
  const { shellProps, innerProps } = extractParameterProps(props);
19978
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterInputInner, { ref, ...innerProps }) });
20003
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ParameterInputInner, { ref, ...innerProps }) });
19979
20004
  });
19980
- var ParameterInputInner = (0, import_react121.forwardRef)(
20005
+ var ParameterInputInner = (0, import_react122.forwardRef)(
19981
20006
  ({ ...props }, ref) => {
19982
20007
  const { id, label, hiddenLabel } = useParameterShell();
19983
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
20008
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
19984
20009
  "input",
19985
20010
  {
19986
20011
  css: input3,
@@ -19997,19 +20022,19 @@ var ParameterInputInner = (0, import_react121.forwardRef)(
19997
20022
 
19998
20023
  // src/components/ParameterInputs/ParameterLink.tsx
19999
20024
  init_emotion_jsx_shim();
20000
- var import_react122 = require("react");
20001
- var import_jsx_runtime106 = require("@emotion/react/jsx-runtime");
20002
- var ParameterLink = (0, import_react122.forwardRef)(
20025
+ var import_react123 = require("react");
20026
+ var import_jsx_runtime107 = require("@emotion/react/jsx-runtime");
20027
+ var ParameterLink = (0, import_react123.forwardRef)(
20003
20028
  ({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
20004
20029
  const { shellProps, innerProps } = extractParameterProps(props);
20005
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20030
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20006
20031
  ParameterShell,
20007
20032
  {
20008
20033
  "data-testid": "link-parameter-editor",
20009
20034
  ...shellProps,
20010
20035
  label: innerProps.value ? shellProps.label : "",
20011
20036
  title: !innerProps.value ? shellProps.label : void 0,
20012
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20037
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20013
20038
  ParameterLinkInner,
20014
20039
  {
20015
20040
  onConnectLink,
@@ -20022,13 +20047,13 @@ var ParameterLink = (0, import_react122.forwardRef)(
20022
20047
  );
20023
20048
  }
20024
20049
  );
20025
- var ParameterLinkInner = (0, import_react122.forwardRef)(
20050
+ var ParameterLinkInner = (0, import_react123.forwardRef)(
20026
20051
  ({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
20027
20052
  const { id, label, hiddenLabel } = useParameterShell();
20028
20053
  if (!props.value)
20029
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
20030
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: inputWrapper, children: [
20031
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20054
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
20055
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { css: inputWrapper, children: [
20056
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20032
20057
  "input",
20033
20058
  {
20034
20059
  type: "text",
@@ -20040,8 +20065,8 @@ var ParameterLinkInner = (0, import_react122.forwardRef)(
20040
20065
  ...props
20041
20066
  }
20042
20067
  ),
20043
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: linkParameterControls, children: [
20044
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20068
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { css: linkParameterControls, children: [
20069
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20045
20070
  "button",
20046
20071
  {
20047
20072
  type: "button",
@@ -20052,7 +20077,7 @@ var ParameterLinkInner = (0, import_react122.forwardRef)(
20052
20077
  children: "edit"
20053
20078
  }
20054
20079
  ),
20055
- externalLink ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20080
+ externalLink ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20056
20081
  "a",
20057
20082
  {
20058
20083
  href: externalLink,
@@ -20060,7 +20085,7 @@ var ParameterLinkInner = (0, import_react122.forwardRef)(
20060
20085
  title: "Open link in new tab",
20061
20086
  target: "_blank",
20062
20087
  rel: "noopener noreferrer",
20063
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
20088
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
20064
20089
  }
20065
20090
  ) : null
20066
20091
  ] })
@@ -20070,7 +20095,7 @@ var ParameterLinkInner = (0, import_react122.forwardRef)(
20070
20095
 
20071
20096
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
20072
20097
  init_emotion_jsx_shim();
20073
- var import_jsx_runtime107 = require("@emotion/react/jsx-runtime");
20098
+ var import_jsx_runtime108 = require("@emotion/react/jsx-runtime");
20074
20099
  var ParameterNameAndPublicIdInput = ({
20075
20100
  id,
20076
20101
  onBlur,
@@ -20096,8 +20121,8 @@ var ParameterNameAndPublicIdInput = ({
20096
20121
  navigator.clipboard.writeText(values[publicIdFieldName]);
20097
20122
  };
20098
20123
  autoFocus == null ? void 0 : autoFocus();
20099
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
20100
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20124
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
20125
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20101
20126
  ParameterInput,
20102
20127
  {
20103
20128
  id: nameIdField,
@@ -20116,7 +20141,7 @@ var ParameterNameAndPublicIdInput = ({
20116
20141
  value: values[nameIdField]
20117
20142
  }
20118
20143
  ),
20119
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20144
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20120
20145
  ParameterInput,
20121
20146
  {
20122
20147
  id: publicIdFieldName,
@@ -20130,11 +20155,11 @@ var ParameterNameAndPublicIdInput = ({
20130
20155
  caption: !publicIdError ? publicIdCaption : void 0,
20131
20156
  placeholder: publicIdPlaceholderText,
20132
20157
  errorMessage: publicIdError,
20133
- menuItems: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20158
+ menuItems: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20134
20159
  MenuItem,
20135
20160
  {
20136
20161
  disabled: !values[publicIdFieldName],
20137
- icon: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
20162
+ icon: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
20138
20163
  onClick: handleCopyPidFieldValue,
20139
20164
  children: "Copy"
20140
20165
  }
@@ -20142,13 +20167,13 @@ var ParameterNameAndPublicIdInput = ({
20142
20167
  value: values[publicIdFieldName]
20143
20168
  }
20144
20169
  ),
20145
- (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
20170
+ (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
20146
20171
  ] });
20147
20172
  };
20148
20173
 
20149
20174
  // src/components/ParameterInputs/ParameterRichText.tsx
20150
20175
  init_emotion_jsx_shim();
20151
- var import_react129 = require("@emotion/react");
20176
+ var import_react130 = require("@emotion/react");
20152
20177
  var import_list3 = require("@lexical/list");
20153
20178
  var import_markdown = require("@lexical/markdown");
20154
20179
  var import_LexicalComposer = require("@lexical/react/LexicalComposer");
@@ -20255,7 +20280,7 @@ var getLabelForElement = (type) => {
20255
20280
  // src/components/ParameterInputs/ParameterRichText.tsx
20256
20281
  var import_fast_equals2 = require("fast-equals");
20257
20282
  var import_lexical6 = require("lexical");
20258
- var import_react130 = require("react");
20283
+ var import_react131 = require("react");
20259
20284
 
20260
20285
  // src/components/ParameterInputs/rich-text/CustomCodeNode.ts
20261
20286
  init_emotion_jsx_shim();
@@ -20278,10 +20303,10 @@ init_emotion_jsx_shim();
20278
20303
  var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
20279
20304
  var import_utils2 = require("@lexical/utils");
20280
20305
  var import_lexical = require("lexical");
20281
- var import_react123 = require("react");
20306
+ var import_react124 = require("react");
20282
20307
  function DisableStylesPlugin() {
20283
20308
  const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
20284
- (0, import_react123.useEffect)(() => {
20309
+ (0, import_react124.useEffect)(() => {
20285
20310
  return (0, import_utils2.mergeRegister)(
20286
20311
  // Disable text alignment on paragraph nodes
20287
20312
  editor.registerNodeTransform(import_lexical.ParagraphNode, (node) => {
@@ -20476,13 +20501,13 @@ var codeElement = import_css2.css`
20476
20501
 
20477
20502
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
20478
20503
  init_emotion_jsx_shim();
20479
- var import_react124 = require("@emotion/react");
20504
+ var import_react125 = require("@emotion/react");
20480
20505
  var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
20481
20506
  var import_LexicalNodeEventPlugin = require("@lexical/react/LexicalNodeEventPlugin");
20482
20507
  var import_utils3 = require("@lexical/utils");
20483
20508
  var import_fast_equals = require("fast-equals");
20484
20509
  var import_lexical3 = require("lexical");
20485
- var import_react125 = require("react");
20510
+ var import_react126 = require("react");
20486
20511
 
20487
20512
  // src/components/ParameterInputs/rich-text/utils.ts
20488
20513
  init_emotion_jsx_shim();
@@ -20521,7 +20546,7 @@ var getSelectedNode = (selection) => {
20521
20546
  };
20522
20547
 
20523
20548
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
20524
- var import_jsx_runtime108 = require("@emotion/react/jsx-runtime");
20549
+ var import_jsx_runtime109 = require("@emotion/react/jsx-runtime");
20525
20550
  var isProjectMapLinkValue = (value) => {
20526
20551
  return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
20527
20552
  value.nodeId && value.path && value.projectMapId
@@ -20808,16 +20833,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = (0, import_lexical3.createCommand)(
20808
20833
  );
20809
20834
  var LINK_POPOVER_OFFSET_X = 0;
20810
20835
  var LINK_POPOVER_OFFSET_Y = 8;
20811
- var linkPopover = import_react124.css`
20836
+ var linkPopover = import_react125.css`
20812
20837
  position: absolute;
20813
20838
  z-index: 5;
20814
20839
  `;
20815
- var linkPopoverContainer = import_react124.css`
20840
+ var linkPopoverContainer = import_react125.css`
20816
20841
  ${Popover};
20817
20842
  align-items: center;
20818
20843
  display: flex;
20819
20844
  `;
20820
- var linkPopoverAnchor = import_react124.css`
20845
+ var linkPopoverAnchor = import_react125.css`
20821
20846
  ${link}
20822
20847
  ${linkColorDefault}
20823
20848
  `;
@@ -20826,17 +20851,17 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20826
20851
  return path;
20827
20852
  };
20828
20853
  const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
20829
- const [linkPopoverState, setLinkPopoverState] = (0, import_react125.useState)();
20830
- const linkPopoverElRef = (0, import_react125.useRef)(null);
20831
- const [isEditorFocused, setIsEditorFocused] = (0, import_react125.useState)(false);
20832
- const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react125.useState)(false);
20833
- (0, import_react125.useEffect)(() => {
20854
+ const [linkPopoverState, setLinkPopoverState] = (0, import_react126.useState)();
20855
+ const linkPopoverElRef = (0, import_react126.useRef)(null);
20856
+ const [isEditorFocused, setIsEditorFocused] = (0, import_react126.useState)(false);
20857
+ const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react126.useState)(false);
20858
+ (0, import_react126.useEffect)(() => {
20834
20859
  if (!isEditorFocused && !isLinkPopoverFocused) {
20835
20860
  setLinkPopoverState(void 0);
20836
20861
  return;
20837
20862
  }
20838
20863
  }, [isEditorFocused, isLinkPopoverFocused]);
20839
- (0, import_react125.useEffect)(() => {
20864
+ (0, import_react126.useEffect)(() => {
20840
20865
  if (!editor.hasNodes([LinkNode])) {
20841
20866
  throw new Error("LinkNode not registered on editor");
20842
20867
  }
@@ -20905,7 +20930,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20905
20930
  )
20906
20931
  );
20907
20932
  }, [editor, onConnectLink]);
20908
- const maybeShowLinkToolbar = (0, import_react125.useCallback)(() => {
20933
+ const maybeShowLinkToolbar = (0, import_react126.useCallback)(() => {
20909
20934
  if (!editor.isEditable()) {
20910
20935
  return;
20911
20936
  }
@@ -20937,7 +20962,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20937
20962
  }
20938
20963
  });
20939
20964
  }, [editor]);
20940
- (0, import_react125.useEffect)(() => {
20965
+ (0, import_react126.useEffect)(() => {
20941
20966
  return editor.registerUpdateListener(({ editorState }) => {
20942
20967
  requestAnimationFrame(() => {
20943
20968
  editorState.read(() => {
@@ -20964,8 +20989,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20964
20989
  });
20965
20990
  });
20966
20991
  };
20967
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
20968
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20992
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
20993
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20969
20994
  import_LexicalNodeEventPlugin.NodeEventPlugin,
20970
20995
  {
20971
20996
  nodeType: LinkNode,
@@ -20975,7 +21000,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20975
21000
  }
20976
21001
  }
20977
21002
  ),
20978
- linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
21003
+ linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20979
21004
  "div",
20980
21005
  {
20981
21006
  css: linkPopover,
@@ -20984,8 +21009,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20984
21009
  top: linkPopoverState.position.y
20985
21010
  },
20986
21011
  ref: linkPopoverElRef,
20987
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { css: linkPopoverContainer, children: [
20988
- linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
21012
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { css: linkPopoverContainer, children: [
21013
+ linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20989
21014
  "a",
20990
21015
  {
20991
21016
  href: parsePath(
@@ -20997,7 +21022,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20997
21022
  children: parsePath(linkPopoverState.node.__link.path)
20998
21023
  }
20999
21024
  ),
21000
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
21025
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
21001
21026
  Button,
21002
21027
  {
21003
21028
  size: "xs",
@@ -21005,7 +21030,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
21005
21030
  onEditLinkNode(linkPopoverState.node);
21006
21031
  },
21007
21032
  buttonType: "ghost",
21008
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
21033
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
21009
21034
  }
21010
21035
  )
21011
21036
  ] })
@@ -21025,8 +21050,8 @@ var import_list = require("@lexical/list");
21025
21050
  var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
21026
21051
  var import_LexicalTabIndentationPlugin = require("@lexical/react/LexicalTabIndentationPlugin");
21027
21052
  var import_lexical4 = require("lexical");
21028
- var import_react126 = require("react");
21029
- var import_jsx_runtime109 = require("@emotion/react/jsx-runtime");
21053
+ var import_react127 = require("react");
21054
+ var import_jsx_runtime110 = require("@emotion/react/jsx-runtime");
21030
21055
  function isIndentPermitted(maxDepth) {
21031
21056
  const selection = (0, import_lexical4.$getSelection)();
21032
21057
  if (!(0, import_lexical4.$isRangeSelection)(selection)) {
@@ -21049,19 +21074,19 @@ function isIndentPermitted(maxDepth) {
21049
21074
  }
21050
21075
  function ListIndentPlugin({ maxDepth }) {
21051
21076
  const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
21052
- (0, import_react126.useEffect)(() => {
21077
+ (0, import_react127.useEffect)(() => {
21053
21078
  return editor.registerCommand(
21054
21079
  import_lexical4.INDENT_CONTENT_COMMAND,
21055
21080
  () => !isIndentPermitted(maxDepth),
21056
21081
  import_lexical4.COMMAND_PRIORITY_CRITICAL
21057
21082
  );
21058
21083
  }, [editor, maxDepth]);
21059
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
21084
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
21060
21085
  }
21061
21086
 
21062
21087
  // src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
21063
21088
  init_emotion_jsx_shim();
21064
- var import_react127 = require("@emotion/react");
21089
+ var import_react128 = require("@emotion/react");
21065
21090
  var import_code2 = require("@lexical/code");
21066
21091
  var import_list2 = require("@lexical/list");
21067
21092
  var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
@@ -21069,9 +21094,9 @@ var import_rich_text = require("@lexical/rich-text");
21069
21094
  var import_selection2 = require("@lexical/selection");
21070
21095
  var import_utils6 = require("@lexical/utils");
21071
21096
  var import_lexical5 = require("lexical");
21072
- var import_react128 = require("react");
21073
- var import_jsx_runtime110 = require("@emotion/react/jsx-runtime");
21074
- var toolbar = import_react127.css`
21097
+ var import_react129 = require("react");
21098
+ var import_jsx_runtime111 = require("@emotion/react/jsx-runtime");
21099
+ var toolbar = import_react128.css`
21075
21100
  background: var(--gray-50);
21076
21101
  border-radius: var(--rounded-base);
21077
21102
  display: flex;
@@ -21083,7 +21108,7 @@ var toolbar = import_react127.css`
21083
21108
  top: calc(var(--spacing-sm) * -2);
21084
21109
  z-index: 10;
21085
21110
  `;
21086
- var toolbarGroup = import_react127.css`
21111
+ var toolbarGroup = import_react128.css`
21087
21112
  display: flex;
21088
21113
  gap: var(--spacing-xs);
21089
21114
  position: relative;
@@ -21099,7 +21124,7 @@ var toolbarGroup = import_react127.css`
21099
21124
  width: 1px;
21100
21125
  }
21101
21126
  `;
21102
- var richTextToolbarButton = import_react127.css`
21127
+ var richTextToolbarButton = import_react128.css`
21103
21128
  align-items: center;
21104
21129
  appearance: none;
21105
21130
  border: 0;
@@ -21112,17 +21137,17 @@ var richTextToolbarButton = import_react127.css`
21112
21137
  min-width: 32px;
21113
21138
  padding: 0 var(--spacing-sm);
21114
21139
  `;
21115
- var richTextToolbarButtonActive = import_react127.css`
21140
+ var richTextToolbarButtonActive = import_react128.css`
21116
21141
  background: var(--gray-200);
21117
21142
  `;
21118
- var toolbarIcon = import_react127.css`
21143
+ var toolbarIcon = import_react128.css`
21119
21144
  color: inherit;
21120
21145
  `;
21121
- var toolbarChevron = import_react127.css`
21146
+ var toolbarChevron = import_react128.css`
21122
21147
  margin-left: var(--spacing-xs);
21123
21148
  `;
21124
21149
  var RichTextToolbarIcon = ({ icon }) => {
21125
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
21150
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
21126
21151
  };
21127
21152
  var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
21128
21153
  ["bold", "format-bold"],
@@ -21173,7 +21198,7 @@ var RichTextToolbar = ({ config, customControls }) => {
21173
21198
  }
21174
21199
  });
21175
21200
  };
21176
- const updateToolbar = (0, import_react128.useCallback)(() => {
21201
+ const updateToolbar = (0, import_react129.useCallback)(() => {
21177
21202
  const selection = (0, import_lexical5.$getSelection)();
21178
21203
  if (!(0, import_lexical5.$isRangeSelection)(selection)) {
21179
21204
  return;
@@ -21212,7 +21237,7 @@ var RichTextToolbar = ({ config, customControls }) => {
21212
21237
  setIsLink(false);
21213
21238
  }
21214
21239
  }, [editor, setActiveElement, setActiveFormats, setIsLink]);
21215
- (0, import_react128.useEffect)(() => {
21240
+ (0, import_react129.useEffect)(() => {
21216
21241
  return editor.registerCommand(
21217
21242
  import_lexical5.SELECTION_CHANGE_COMMAND,
21218
21243
  (_payload) => {
@@ -21222,7 +21247,7 @@ var RichTextToolbar = ({ config, customControls }) => {
21222
21247
  import_lexical5.COMMAND_PRIORITY_CRITICAL
21223
21248
  );
21224
21249
  }, [editor, updateToolbar]);
21225
- (0, import_react128.useEffect)(() => {
21250
+ (0, import_react129.useEffect)(() => {
21226
21251
  return editor.registerUpdateListener(({ editorState }) => {
21227
21252
  requestAnimationFrame(() => {
21228
21253
  editorState.read(() => {
@@ -21231,15 +21256,15 @@ var RichTextToolbar = ({ config, customControls }) => {
21231
21256
  });
21232
21257
  });
21233
21258
  }, [editor, updateToolbar]);
21234
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { css: toolbar, children: [
21235
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
21259
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: toolbar, children: [
21260
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
21236
21261
  Menu,
21237
21262
  {
21238
21263
  menuLabel: "Elements",
21239
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("button", { css: richTextToolbarButton, title: "Text styles", children: [
21264
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("button", { css: richTextToolbarButton, title: "Text styles", children: [
21240
21265
  visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
21241
21266
  " ",
21242
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
21267
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
21243
21268
  ] }),
21244
21269
  placement: "bottom-start",
21245
21270
  children: [
@@ -21249,7 +21274,7 @@ var RichTextToolbar = ({ config, customControls }) => {
21249
21274
  type: "paragraph"
21250
21275
  },
21251
21276
  ...visibleTextualElements
21252
- ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21277
+ ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21253
21278
  MenuItem,
21254
21279
  {
21255
21280
  onClick: () => {
@@ -21259,12 +21284,12 @@ var RichTextToolbar = ({ config, customControls }) => {
21259
21284
  },
21260
21285
  element.type
21261
21286
  )),
21262
- visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
21287
+ visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
21263
21288
  ]
21264
21289
  }
21265
21290
  ),
21266
- visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { css: toolbarGroup, children: [
21267
- visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21291
+ visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: toolbarGroup, children: [
21292
+ visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21268
21293
  "button",
21269
21294
  {
21270
21295
  onClick: () => {
@@ -21274,16 +21299,16 @@ var RichTextToolbar = ({ config, customControls }) => {
21274
21299
  richTextToolbarButton,
21275
21300
  activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
21276
21301
  ],
21277
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
21302
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
21278
21303
  }
21279
21304
  ) }, format.type)),
21280
- visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21305
+ visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21281
21306
  Menu,
21282
21307
  {
21283
21308
  menuLabel: "Alternative text styles",
21284
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
21309
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
21285
21310
  placement: "bottom-start",
21286
- children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21311
+ children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21287
21312
  MenuItem,
21288
21313
  {
21289
21314
  onClick: () => {
@@ -21296,19 +21321,19 @@ var RichTextToolbar = ({ config, customControls }) => {
21296
21321
  }
21297
21322
  ) : null
21298
21323
  ] }) : null,
21299
- visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { css: toolbarGroup, children: [
21300
- linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21324
+ visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: toolbarGroup, children: [
21325
+ linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21301
21326
  "button",
21302
21327
  {
21303
21328
  onClick: () => {
21304
21329
  isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
21305
21330
  },
21306
21331
  css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
21307
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "link" })
21332
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "link" })
21308
21333
  }
21309
21334
  ) }) : null,
21310
- visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
21311
- visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21335
+ visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
21336
+ visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21312
21337
  "button",
21313
21338
  {
21314
21339
  onClick: () => {
@@ -21318,10 +21343,10 @@ var RichTextToolbar = ({ config, customControls }) => {
21318
21343
  richTextToolbarButton,
21319
21344
  activeElement === "unorderedList" ? richTextToolbarButtonActive : null
21320
21345
  ],
21321
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
21346
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
21322
21347
  }
21323
21348
  ) }) : null,
21324
- visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21349
+ visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21325
21350
  "button",
21326
21351
  {
21327
21352
  onClick: () => {
@@ -21331,57 +21356,57 @@ var RichTextToolbar = ({ config, customControls }) => {
21331
21356
  richTextToolbarButton,
21332
21357
  activeElement === "orderedList" ? richTextToolbarButtonActive : null
21333
21358
  ],
21334
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
21359
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
21335
21360
  }
21336
21361
  ) }) : null
21337
21362
  ] }) : null,
21338
- quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21363
+ quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21339
21364
  "button",
21340
21365
  {
21341
21366
  onClick: () => {
21342
21367
  activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
21343
21368
  },
21344
21369
  css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
21345
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "quote" })
21370
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "quote" })
21346
21371
  }
21347
21372
  ) }) : null,
21348
- codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21373
+ codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21349
21374
  "button",
21350
21375
  {
21351
21376
  onClick: () => {
21352
21377
  activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
21353
21378
  },
21354
21379
  css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
21355
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "code-slash" })
21380
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "code-slash" })
21356
21381
  }
21357
21382
  ) }) : null
21358
21383
  ] }) : null,
21359
- customControls ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { css: toolbarGroup, children: customControls }) : null
21384
+ customControls ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: toolbarGroup, children: customControls }) : null
21360
21385
  ] });
21361
21386
  };
21362
21387
  var RichTextToolbar_default = RichTextToolbar;
21363
21388
  var useRichTextToolbarState = ({ config }) => {
21364
21389
  var _a;
21365
- const enabledBuiltInFormats = (0, import_react128.useMemo)(() => {
21390
+ const enabledBuiltInFormats = (0, import_react129.useMemo)(() => {
21366
21391
  return richTextBuiltInFormats.filter((format) => {
21367
21392
  var _a2, _b;
21368
21393
  return (_b = (_a2 = config == null ? void 0 : config.formatting) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(format.type);
21369
21394
  });
21370
21395
  }, [config]);
21371
- const enabledBuiltInElements = (0, import_react128.useMemo)(() => {
21396
+ const enabledBuiltInElements = (0, import_react129.useMemo)(() => {
21372
21397
  return richTextBuiltInElements.filter((element) => {
21373
21398
  var _a2, _b;
21374
21399
  return (_b = (_a2 = config == null ? void 0 : config.elements) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(element.type);
21375
21400
  });
21376
21401
  }, [config]);
21377
- const enabledBuiltInFormatsWithIcon = (0, import_react128.useMemo)(() => {
21402
+ const enabledBuiltInFormatsWithIcon = (0, import_react129.useMemo)(() => {
21378
21403
  return enabledBuiltInFormats.filter((format) => FORMATS_WITH_ICON.has(format.type));
21379
21404
  }, [enabledBuiltInFormats]);
21380
21405
  const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
21381
21406
  (format) => !FORMATS_WITH_ICON.has(format.type)
21382
21407
  );
21383
- const [activeFormats, setActiveFormats] = (0, import_react128.useState)([]);
21384
- const visibleFormatsWithIcon = (0, import_react128.useMemo)(() => {
21408
+ const [activeFormats, setActiveFormats] = (0, import_react129.useState)([]);
21409
+ const visibleFormatsWithIcon = (0, import_react129.useMemo)(() => {
21385
21410
  const visibleFormats = /* @__PURE__ */ new Set();
21386
21411
  activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
21387
21412
  visibleFormats.add(type);
@@ -21391,7 +21416,7 @@ var useRichTextToolbarState = ({ config }) => {
21391
21416
  });
21392
21417
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
21393
21418
  }, [activeFormats, enabledBuiltInFormatsWithIcon]);
21394
- const visibleFormatsWithoutIcon = (0, import_react128.useMemo)(() => {
21419
+ const visibleFormatsWithoutIcon = (0, import_react129.useMemo)(() => {
21395
21420
  const visibleFormats = /* @__PURE__ */ new Set();
21396
21421
  activeFormats.filter((type) => !FORMATS_WITH_ICON.has(type)).forEach((type) => {
21397
21422
  visibleFormats.add(type);
@@ -21401,11 +21426,11 @@ var useRichTextToolbarState = ({ config }) => {
21401
21426
  });
21402
21427
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
21403
21428
  }, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
21404
- const [activeElement, setActiveElement] = (0, import_react128.useState)("paragraph");
21429
+ const [activeElement, setActiveElement] = (0, import_react129.useState)("paragraph");
21405
21430
  const enabledTextualElements = enabledBuiltInElements.filter(
21406
21431
  (element) => TEXTUAL_ELEMENTS.includes(element.type)
21407
21432
  );
21408
- const visibleTextualElements = (0, import_react128.useMemo)(() => {
21433
+ const visibleTextualElements = (0, import_react129.useMemo)(() => {
21409
21434
  if (!TEXTUAL_ELEMENTS.includes(activeElement)) {
21410
21435
  return enabledTextualElements;
21411
21436
  }
@@ -21416,24 +21441,24 @@ var useRichTextToolbarState = ({ config }) => {
21416
21441
  }
21417
21442
  );
21418
21443
  }, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
21419
- const [isLink, setIsLink] = (0, import_react128.useState)(false);
21420
- const linkElementVisible = (0, import_react128.useMemo)(() => {
21444
+ const [isLink, setIsLink] = (0, import_react129.useState)(false);
21445
+ const linkElementVisible = (0, import_react129.useMemo)(() => {
21421
21446
  return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
21422
21447
  }, [isLink, enabledBuiltInElements]);
21423
- const visibleLists = (0, import_react128.useMemo)(() => {
21448
+ const visibleLists = (0, import_react129.useMemo)(() => {
21424
21449
  return new Set(
21425
21450
  ["orderedList", "unorderedList"].filter(
21426
21451
  (type) => enabledBuiltInElements.some((element) => element.type === type) || activeElement === type
21427
21452
  )
21428
21453
  );
21429
21454
  }, [activeElement, enabledBuiltInElements]);
21430
- const quoteElementVisible = (0, import_react128.useMemo)(() => {
21455
+ const quoteElementVisible = (0, import_react129.useMemo)(() => {
21431
21456
  return enabledBuiltInElements.some((element) => element.type === "quote") || activeElement === "quote";
21432
21457
  }, [activeElement, enabledBuiltInElements]);
21433
- const codeElementVisible = (0, import_react128.useMemo)(() => {
21458
+ const codeElementVisible = (0, import_react129.useMemo)(() => {
21434
21459
  return enabledBuiltInElements.some((element) => element.type === "code") || activeElement === "code";
21435
21460
  }, [activeElement, enabledBuiltInElements]);
21436
- const visibleElementsWithIcons = (0, import_react128.useMemo)(() => {
21461
+ const visibleElementsWithIcons = (0, import_react129.useMemo)(() => {
21437
21462
  const visibleElements = /* @__PURE__ */ new Set();
21438
21463
  if (linkElementVisible) {
21439
21464
  visibleElements.add("link");
@@ -21470,7 +21495,7 @@ var useRichTextToolbarState = ({ config }) => {
21470
21495
  };
21471
21496
 
21472
21497
  // src/components/ParameterInputs/ParameterRichText.tsx
21473
- var import_jsx_runtime111 = require("@emotion/react/jsx-runtime");
21498
+ var import_jsx_runtime112 = require("@emotion/react/jsx-runtime");
21474
21499
  var ParameterRichText = ({
21475
21500
  label,
21476
21501
  labelLeadingIcon,
@@ -21495,7 +21520,7 @@ var ParameterRichText = ({
21495
21520
  variables,
21496
21521
  customControls
21497
21522
  }) => {
21498
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
21523
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
21499
21524
  ParameterShell,
21500
21525
  {
21501
21526
  "data-testid": "parameter-richtext",
@@ -21509,7 +21534,7 @@ var ParameterRichText = ({
21509
21534
  captionTestId,
21510
21535
  menuItems,
21511
21536
  children: [
21512
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21537
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
21513
21538
  ParameterRichTextInner,
21514
21539
  {
21515
21540
  value,
@@ -21527,23 +21552,23 @@ var ParameterRichText = ({
21527
21552
  children
21528
21553
  }
21529
21554
  ),
21530
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_jsx_runtime111.Fragment, { children: menuItems }) }) : null
21555
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_jsx_runtime112.Fragment, { children: menuItems }) }) : null
21531
21556
  ]
21532
21557
  }
21533
21558
  );
21534
21559
  };
21535
- var editorWrapper = import_react129.css`
21560
+ var editorWrapper = import_react130.css`
21536
21561
  display: flex;
21537
21562
  flex-flow: column;
21538
21563
  flex-grow: 1;
21539
21564
  `;
21540
- var editorContainer = import_react129.css`
21565
+ var editorContainer = import_react130.css`
21541
21566
  display: flex;
21542
21567
  flex-flow: column;
21543
21568
  flex-grow: 1;
21544
21569
  position: relative;
21545
21570
  `;
21546
- var editorPlaceholder = import_react129.css`
21571
+ var editorPlaceholder = import_react130.css`
21547
21572
  color: var(--gray-500);
21548
21573
  font-style: italic;
21549
21574
  /* 1px is added to make sure caret is clearly visible when field is focused
@@ -21554,7 +21579,7 @@ var editorPlaceholder = import_react129.css`
21554
21579
  top: var(--spacing-sm);
21555
21580
  user-select: none;
21556
21581
  `;
21557
- var editorInput = import_react129.css`
21582
+ var editorInput = import_react130.css`
21558
21583
  background: var(--white);
21559
21584
  border: 1px solid var(--gray-200);
21560
21585
  border-radius: var(--rounded-sm);
@@ -21638,8 +21663,8 @@ var ParameterRichTextInner = ({
21638
21663
  },
21639
21664
  editable: !readOnly
21640
21665
  };
21641
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
21642
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21666
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
21667
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
21643
21668
  RichText,
21644
21669
  {
21645
21670
  onChange,
@@ -21676,14 +21701,14 @@ var RichText = ({
21676
21701
  variables,
21677
21702
  customControls
21678
21703
  }) => {
21679
- const editorContainerRef = (0, import_react130.useRef)(null);
21704
+ const editorContainerRef = (0, import_react131.useRef)(null);
21680
21705
  const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
21681
- (0, import_react130.useEffect)(() => {
21706
+ (0, import_react131.useEffect)(() => {
21682
21707
  if (onRichTextInit) {
21683
21708
  onRichTextInit(editor);
21684
21709
  }
21685
21710
  }, [editor, onRichTextInit]);
21686
- (0, import_react130.useEffect)(() => {
21711
+ (0, import_react131.useEffect)(() => {
21687
21712
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState }) => {
21688
21713
  requestAnimationFrame(() => {
21689
21714
  if (!(0, import_fast_equals2.deepEqual)(editorState.toJSON(), prevEditorState.toJSON())) {
@@ -21695,23 +21720,23 @@ var RichText = ({
21695
21720
  removeUpdateListener();
21696
21721
  };
21697
21722
  }, [editor, onChange]);
21698
- (0, import_react130.useEffect)(() => {
21723
+ (0, import_react131.useEffect)(() => {
21699
21724
  editor.setEditable(!readOnly);
21700
21725
  }, [editor, readOnly]);
21701
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
21702
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbar_default, { config, customControls }),
21703
- /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
21704
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21726
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
21727
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(RichTextToolbar_default, { config, customControls }),
21728
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
21729
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
21705
21730
  import_LexicalRichTextPlugin.RichTextPlugin,
21706
21731
  {
21707
- contentEditable: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
21708
- placeholder: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
21732
+ contentEditable: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
21733
+ placeholder: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
21709
21734
  ErrorBoundary: import_LexicalErrorBoundary.default
21710
21735
  }
21711
21736
  ),
21712
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalListPlugin.ListPlugin, {}),
21713
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
21714
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21737
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalListPlugin.ListPlugin, {}),
21738
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
21739
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
21715
21740
  LinkNodePlugin,
21716
21741
  {
21717
21742
  onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
@@ -21721,28 +21746,28 @@ var RichText = ({
21721
21746
  } : void 0
21722
21747
  }
21723
21748
  ),
21724
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(ListIndentPlugin, { maxDepth: 4 }),
21725
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(DisableStylesPlugin, {}),
21726
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
21727
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_jsx_runtime111.Fragment, { children })
21749
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ListIndentPlugin, { maxDepth: 4 }),
21750
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(DisableStylesPlugin, {}),
21751
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
21752
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_jsx_runtime112.Fragment, { children })
21728
21753
  ] })
21729
21754
  ] });
21730
21755
  };
21731
21756
 
21732
21757
  // src/components/ParameterInputs/ParameterSelect.tsx
21733
21758
  init_emotion_jsx_shim();
21734
- var import_react131 = require("react");
21735
- var import_jsx_runtime112 = require("@emotion/react/jsx-runtime");
21736
- var ParameterSelect = (0, import_react131.forwardRef)(
21759
+ var import_react132 = require("react");
21760
+ var import_jsx_runtime113 = require("@emotion/react/jsx-runtime");
21761
+ var ParameterSelect = (0, import_react132.forwardRef)(
21737
21762
  ({ defaultOption, options, ...props }, ref) => {
21738
21763
  const { shellProps, innerProps } = extractParameterProps(props);
21739
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
21764
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
21740
21765
  }
21741
21766
  );
21742
- var ParameterSelectInner = (0, import_react131.forwardRef)(
21767
+ var ParameterSelectInner = (0, import_react132.forwardRef)(
21743
21768
  ({ defaultOption, options, ...props }, ref) => {
21744
21769
  const { id, label, hiddenLabel } = useParameterShell();
21745
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
21770
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
21746
21771
  "select",
21747
21772
  {
21748
21773
  css: [input3, selectInput],
@@ -21751,10 +21776,10 @@ var ParameterSelectInner = (0, import_react131.forwardRef)(
21751
21776
  ref,
21752
21777
  ...props,
21753
21778
  children: [
21754
- defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("option", { value: "", children: defaultOption }) : null,
21779
+ defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("option", { value: "", children: defaultOption }) : null,
21755
21780
  options.map((option) => {
21756
21781
  var _a;
21757
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
21782
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
21758
21783
  })
21759
21784
  ]
21760
21785
  }
@@ -21764,15 +21789,15 @@ var ParameterSelectInner = (0, import_react131.forwardRef)(
21764
21789
 
21765
21790
  // src/components/ParameterInputs/ParameterTextarea.tsx
21766
21791
  init_emotion_jsx_shim();
21767
- var import_react132 = require("react");
21768
- var import_jsx_runtime113 = require("@emotion/react/jsx-runtime");
21769
- var ParameterTextarea = (0, import_react132.forwardRef)((props, ref) => {
21792
+ var import_react133 = require("react");
21793
+ var import_jsx_runtime114 = require("@emotion/react/jsx-runtime");
21794
+ var ParameterTextarea = (0, import_react133.forwardRef)((props, ref) => {
21770
21795
  const { shellProps, innerProps } = extractParameterProps(props);
21771
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
21796
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
21772
21797
  });
21773
- var ParameterTextareaInner = (0, import_react132.forwardRef)(({ ...props }, ref) => {
21798
+ var ParameterTextareaInner = (0, import_react133.forwardRef)(({ ...props }, ref) => {
21774
21799
  const { id, label, hiddenLabel } = useParameterShell();
21775
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
21800
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
21776
21801
  "textarea",
21777
21802
  {
21778
21803
  css: [input3, textarea2],
@@ -21786,18 +21811,18 @@ var ParameterTextareaInner = (0, import_react132.forwardRef)(({ ...props }, ref)
21786
21811
 
21787
21812
  // src/components/ParameterInputs/ParameterToggle.tsx
21788
21813
  init_emotion_jsx_shim();
21789
- var import_react133 = require("react");
21790
- var import_jsx_runtime114 = require("@emotion/react/jsx-runtime");
21791
- var ParameterToggle = (0, import_react133.forwardRef)((props, ref) => {
21814
+ var import_react134 = require("react");
21815
+ var import_jsx_runtime115 = require("@emotion/react/jsx-runtime");
21816
+ var ParameterToggle = (0, import_react134.forwardRef)((props, ref) => {
21792
21817
  const { shellProps, innerProps } = extractParameterProps(props);
21793
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
21818
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
21794
21819
  });
21795
- var ParameterToggleInner = (0, import_react133.forwardRef)(
21820
+ var ParameterToggleInner = (0, import_react134.forwardRef)(
21796
21821
  ({ children, ...props }, ref) => {
21797
21822
  const { id, label } = useParameterShell();
21798
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("label", { css: inputToggleLabel2, children: [
21799
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
21800
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { css: inlineLabel2, children: label }),
21823
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("label", { css: inputToggleLabel2, children: [
21824
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
21825
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { css: inlineLabel2, children: label }),
21801
21826
  children
21802
21827
  ] });
21803
21828
  }
@@ -21808,8 +21833,8 @@ init_emotion_jsx_shim();
21808
21833
 
21809
21834
  // src/components/ProgressBar/ProgressBar.styles.ts
21810
21835
  init_emotion_jsx_shim();
21811
- var import_react134 = require("@emotion/react");
21812
- var container3 = import_react134.css`
21836
+ var import_react135 = require("@emotion/react");
21837
+ var container3 = import_react135.css`
21813
21838
  background: var(--gray-50);
21814
21839
  margin-block: var(--spacing-sm);
21815
21840
  position: relative;
@@ -21819,17 +21844,17 @@ var container3 = import_react134.css`
21819
21844
  border: solid 1px var(--gray-300);
21820
21845
  `;
21821
21846
  var themeMap = {
21822
- primary: import_react134.css`
21847
+ primary: import_react135.css`
21823
21848
  --progress-color: var(--accent-light);
21824
21849
  `,
21825
- secondary: import_react134.css`
21850
+ secondary: import_react135.css`
21826
21851
  --progress-color: var(--accent-alt-light);
21827
21852
  `,
21828
- destructive: import_react134.css`
21853
+ destructive: import_react135.css`
21829
21854
  --progress-color: var(--brand-secondary-5);
21830
21855
  `
21831
21856
  };
21832
- var slidingBackgroundPosition = import_react134.keyframes`
21857
+ var slidingBackgroundPosition = import_react135.keyframes`
21833
21858
  from {
21834
21859
  background-position: 0 0;
21835
21860
  }
@@ -21837,10 +21862,10 @@ var slidingBackgroundPosition = import_react134.keyframes`
21837
21862
  background-position: 64px 0;
21838
21863
  }
21839
21864
  `;
21840
- var determinate = import_react134.css`
21865
+ var determinate = import_react135.css`
21841
21866
  background-color: var(--progress-color);
21842
21867
  `;
21843
- var indeterminate = import_react134.css`
21868
+ var indeterminate = import_react135.css`
21844
21869
  background-image: linear-gradient(
21845
21870
  45deg,
21846
21871
  var(--progress-color) 25%,
@@ -21854,7 +21879,7 @@ var indeterminate = import_react134.css`
21854
21879
  background-size: 64px 64px;
21855
21880
  animation: ${slidingBackgroundPosition} 1s linear infinite;
21856
21881
  `;
21857
- var bar = import_react134.css`
21882
+ var bar = import_react135.css`
21858
21883
  position: absolute;
21859
21884
  inset: 0;
21860
21885
  transition: transform var(--duration-fast) var(--timing-ease-out);
@@ -21862,7 +21887,7 @@ var bar = import_react134.css`
21862
21887
  `;
21863
21888
 
21864
21889
  // src/components/ProgressBar/ProgressBar.tsx
21865
- var import_jsx_runtime115 = require("@emotion/react/jsx-runtime");
21890
+ var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
21866
21891
  function ProgressBar({
21867
21892
  current,
21868
21893
  max,
@@ -21872,7 +21897,7 @@ function ProgressBar({
21872
21897
  }) {
21873
21898
  const valueNow = Math.min(current, max);
21874
21899
  const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
21875
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
21900
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
21876
21901
  "div",
21877
21902
  {
21878
21903
  css: container3,
@@ -21883,7 +21908,7 @@ function ProgressBar({
21883
21908
  "aria-valuemax": max,
21884
21909
  "aria-valuenow": valueNow,
21885
21910
  ...props,
21886
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
21911
+ children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
21887
21912
  "div",
21888
21913
  {
21889
21914
  css: [
@@ -21903,31 +21928,31 @@ function ProgressBar({
21903
21928
 
21904
21929
  // src/components/ProgressList/ProgressList.tsx
21905
21930
  init_emotion_jsx_shim();
21906
- var import_react136 = require("@emotion/react");
21931
+ var import_react137 = require("@emotion/react");
21907
21932
  var import_CgCheckO3 = require("@react-icons/all-files/cg/CgCheckO");
21908
21933
  var import_CgRadioCheck2 = require("@react-icons/all-files/cg/CgRadioCheck");
21909
21934
  var import_CgRecord2 = require("@react-icons/all-files/cg/CgRecord");
21910
- var import_react137 = require("react");
21935
+ var import_react138 = require("react");
21911
21936
 
21912
21937
  // src/components/ProgressList/styles/ProgressList.styles.ts
21913
21938
  init_emotion_jsx_shim();
21914
- var import_react135 = require("@emotion/react");
21915
- var progressListStyles = import_react135.css`
21939
+ var import_react136 = require("@emotion/react");
21940
+ var progressListStyles = import_react136.css`
21916
21941
  display: flex;
21917
21942
  flex-direction: column;
21918
21943
  gap: var(--spacing-sm);
21919
21944
  list-style-type: none;
21920
21945
  `;
21921
- var progressListItemStyles = import_react135.css`
21946
+ var progressListItemStyles = import_react136.css`
21922
21947
  display: flex;
21923
21948
  gap: var(--spacing-base);
21924
21949
  align-items: center;
21925
21950
  `;
21926
21951
 
21927
21952
  // src/components/ProgressList/ProgressList.tsx
21928
- var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
21953
+ var import_jsx_runtime117 = require("@emotion/react/jsx-runtime");
21929
21954
  var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
21930
- const itemsWithStatus = (0, import_react137.useMemo)(() => {
21955
+ const itemsWithStatus = (0, import_react138.useMemo)(() => {
21931
21956
  const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
21932
21957
  return items.map((item, index) => {
21933
21958
  let status = "queued";
@@ -21939,8 +21964,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
21939
21964
  return { ...item, status };
21940
21965
  });
21941
21966
  }, [items, inProgressId]);
21942
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
21943
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
21967
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
21968
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
21944
21969
  ProgressListItem,
21945
21970
  {
21946
21971
  status,
@@ -21960,7 +21985,7 @@ var ProgressListItem = ({
21960
21985
  errorLevel = "danger",
21961
21986
  autoEllipsis = false
21962
21987
  }) => {
21963
- const icon = (0, import_react137.useMemo)(() => {
21988
+ const icon = (0, import_react138.useMemo)(() => {
21964
21989
  if (error) {
21965
21990
  return warningIcon;
21966
21991
  }
@@ -21971,14 +21996,14 @@ var ProgressListItem = ({
21971
21996
  };
21972
21997
  return iconPerStatus[status];
21973
21998
  }, [status, error]);
21974
- const statusStyles = (0, import_react137.useMemo)(() => {
21999
+ const statusStyles = (0, import_react138.useMemo)(() => {
21975
22000
  if (error) {
21976
- return errorLevel === "caution" ? import_react136.css`
22001
+ return errorLevel === "caution" ? import_react137.css`
21977
22002
  color: rgb(161, 98, 7);
21978
22003
  & svg {
21979
22004
  color: rgb(250, 204, 21);
21980
22005
  }
21981
- ` : import_react136.css`
22006
+ ` : import_react137.css`
21982
22007
  color: rgb(185, 28, 28);
21983
22008
  & svg {
21984
22009
  color: var(--brand-primary-2);
@@ -21986,23 +22011,23 @@ var ProgressListItem = ({
21986
22011
  `;
21987
22012
  }
21988
22013
  const colorPerStatus = {
21989
- completed: import_react136.css`
22014
+ completed: import_react137.css`
21990
22015
  opacity: 0.75;
21991
22016
  `,
21992
- inProgress: import_react136.css`
22017
+ inProgress: import_react137.css`
21993
22018
  -webkit-text-stroke-width: thin;
21994
22019
  `,
21995
- queued: import_react136.css`
22020
+ queued: import_react137.css`
21996
22021
  opacity: 0.5;
21997
22022
  `
21998
22023
  };
21999
22024
  return colorPerStatus[status];
22000
22025
  }, [status, error, errorLevel]);
22001
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
22002
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
22003
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { children: [
22026
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
22027
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
22028
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { children: [
22004
22029
  children,
22005
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
22030
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
22006
22031
  ] })
22007
22032
  ] });
22008
22033
  };
@@ -22247,21 +22272,21 @@ init_emotion_jsx_shim();
22247
22272
 
22248
22273
  // src/components/SearchAndFilter/styles/SearchAndFilter.styles.ts
22249
22274
  init_emotion_jsx_shim();
22250
- var import_react138 = require("@emotion/react");
22251
- var SearchAndFilterContainer = import_react138.css``;
22252
- var SearchAndFilterControlsWrapper = (gridColumns) => import_react138.css`
22275
+ var import_react139 = require("@emotion/react");
22276
+ var SearchAndFilterContainer = import_react139.css``;
22277
+ var SearchAndFilterControlsWrapper = (gridColumns) => import_react139.css`
22253
22278
  align-items: stretch;
22254
22279
  display: grid;
22255
22280
  grid-template-columns: ${gridColumns};
22256
22281
  gap: var(--spacing-sm);
22257
22282
  `;
22258
- var SearchAndFilterOutterControlWrapper = (gridColumns) => import_react138.css`
22283
+ var SearchAndFilterOutterControlWrapper = (gridColumns) => import_react139.css`
22259
22284
  align-items: stretch;
22260
22285
  display: grid;
22261
22286
  grid-template-columns: ${gridColumns};
22262
22287
  gap: var(--spacing-sm);
22263
22288
  `;
22264
- var ConditionalFilterRow = import_react138.css`
22289
+ var ConditionalFilterRow = import_react139.css`
22265
22290
  display: grid;
22266
22291
  grid-template-columns: 35px 1fr;
22267
22292
  gap: var(--spacing-sm);
@@ -22280,7 +22305,7 @@ var ConditionalFilterRow = import_react138.css`
22280
22305
  animation: ${fadeInLtr} var(--duration-fast) var(--timing-ease-out);
22281
22306
  }
22282
22307
  `;
22283
- var ConditionalInputRow = import_react138.css`
22308
+ var ConditionalInputRow = import_react139.css`
22284
22309
  display: flex;
22285
22310
  gap: var(--spacing-sm);
22286
22311
  flex-direction: column;
@@ -22294,14 +22319,14 @@ var ConditionalInputRow = import_react138.css`
22294
22319
  grid-template-columns: 200px 160px 1fr 32px;
22295
22320
  }
22296
22321
  `;
22297
- var SearchInput = import_react138.css`
22322
+ var SearchInput = import_react139.css`
22298
22323
  ${input("nowrap")}
22299
22324
  border-radius: var(--rounded-full);
22300
22325
  padding: var(--spacing-sm) var(--spacing-base);
22301
22326
  font-size: var(--fs-sm);
22302
22327
  padding-right: var(--spacing-2xl);
22303
22328
  `;
22304
- var FilterButton = import_react138.css`
22329
+ var FilterButton = import_react139.css`
22305
22330
  align-items: center;
22306
22331
  background: var(--white);
22307
22332
  border: 1px solid var(--gray-300);
@@ -22335,13 +22360,13 @@ var FilterButton = import_react138.css`
22335
22360
  opacity: var(--opacity-50);
22336
22361
  }
22337
22362
  `;
22338
- var FilterButtonText = import_react138.css`
22363
+ var FilterButtonText = import_react139.css`
22339
22364
  overflow: hidden;
22340
22365
  text-overflow: ellipsis;
22341
22366
  white-space: nowrap;
22342
22367
  max-width: 14ch;
22343
22368
  `;
22344
- var FilterButtonSelected = import_react138.css`
22369
+ var FilterButtonSelected = import_react139.css`
22345
22370
  background: var(--gray-100);
22346
22371
  border-color: var(--gray-300);
22347
22372
 
@@ -22349,7 +22374,7 @@ var FilterButtonSelected = import_react138.css`
22349
22374
  color: var(--accent-dark);
22350
22375
  }
22351
22376
  `;
22352
- var FilterButtonWithOptions = import_react138.css`
22377
+ var FilterButtonWithOptions = import_react139.css`
22353
22378
  :where([aria-expanded='true']) {
22354
22379
  background: var(--purple-rain-100);
22355
22380
  border-color: var(--accent-light);
@@ -22361,14 +22386,14 @@ var FilterButtonWithOptions = import_react138.css`
22361
22386
  }
22362
22387
  }
22363
22388
  `;
22364
- var SearchIcon = import_react138.css`
22389
+ var SearchIcon = import_react139.css`
22365
22390
  color: var(--icon-color);
22366
22391
  position: absolute;
22367
22392
  inset: 0 var(--spacing-base) 0 auto;
22368
22393
  margin: auto;
22369
22394
  transition: color var(--duration-fast) var(--timing-ease-out);
22370
22395
  `;
22371
- var AddConditionalBtn = import_react138.css`
22396
+ var AddConditionalBtn = import_react139.css`
22372
22397
  align-items: center;
22373
22398
  background: transparent;
22374
22399
  border: none;
@@ -22387,14 +22412,14 @@ var AddConditionalBtn = import_react138.css`
22387
22412
  color: var(--gray-400);
22388
22413
  }
22389
22414
  `;
22390
- var Title = import_react138.css`
22415
+ var Title = import_react139.css`
22391
22416
  color: var(--typography-light);
22392
22417
 
22393
22418
  &:focus {
22394
22419
  outline: none;
22395
22420
  }
22396
22421
  `;
22397
- var ResetConditionsBtn = import_react138.css`
22422
+ var ResetConditionsBtn = import_react139.css`
22398
22423
  background: transparent;
22399
22424
  border: none;
22400
22425
  color: var(--action-destructive-default);
@@ -22406,12 +22431,12 @@ var ResetConditionsBtn = import_react138.css`
22406
22431
  color: var(--action-destructive-hover);
22407
22432
  }
22408
22433
  `;
22409
- var IconBtn = import_react138.css`
22434
+ var IconBtn = import_react139.css`
22410
22435
  background: transparent;
22411
22436
  border: none;
22412
22437
  padding: var(--spacing-sm);
22413
22438
  `;
22414
- var CloseBtn = import_react138.css`
22439
+ var CloseBtn = import_react139.css`
22415
22440
  color: var(--gray-500);
22416
22441
  background: transparent;
22417
22442
  border: none;
@@ -22420,7 +22445,7 @@ var CloseBtn = import_react138.css`
22420
22445
  top: var(--spacing-base);
22421
22446
  right: var(--spacing-base);
22422
22447
  `;
22423
- var SearchAndFilterOptionsContainer = import_react138.css`
22448
+ var SearchAndFilterOptionsContainer = import_react139.css`
22424
22449
  background: var(--gray-50);
22425
22450
  border: 1px solid var(--gray-300);
22426
22451
  border-radius: var(--rounded-base);
@@ -22433,22 +22458,22 @@ var SearchAndFilterOptionsContainer = import_react138.css`
22433
22458
  position: relative;
22434
22459
  z-index: 1;
22435
22460
  `;
22436
- var SearchAndFilterOptionsInnerContainer = import_react138.css`
22461
+ var SearchAndFilterOptionsInnerContainer = import_react139.css`
22437
22462
  display: flex;
22438
22463
  flex-direction: column;
22439
22464
  gap: var(--spacing-sm);
22440
22465
  `;
22441
- var SearchAndFilterButtonGroup = import_react138.css`
22466
+ var SearchAndFilterButtonGroup = import_react139.css`
22442
22467
  margin-top: var(--spacing-base);
22443
22468
  `;
22444
- var SortFilterInputRow = import_react138.css`
22469
+ var SortFilterInputRow = import_react139.css`
22445
22470
  align-items: center;
22446
22471
  display: flex;
22447
22472
  gap: var(--spacing-sm);
22448
22473
  `;
22449
22474
 
22450
22475
  // src/components/SearchAndFilter/FilterButton.tsx
22451
- var import_jsx_runtime117 = require("@emotion/react/jsx-runtime");
22476
+ var import_jsx_runtime118 = require("@emotion/react/jsx-runtime");
22452
22477
  var FilterButton2 = ({
22453
22478
  text = "Filters",
22454
22479
  icon = "filter-add",
@@ -22456,7 +22481,7 @@ var FilterButton2 = ({
22456
22481
  hasSelectedValue,
22457
22482
  ...props
22458
22483
  }) => {
22459
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
22484
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
22460
22485
  "button",
22461
22486
  {
22462
22487
  type: "button",
@@ -22468,9 +22493,9 @@ var FilterButton2 = ({
22468
22493
  ...props,
22469
22494
  "data-testid": "filters-button",
22470
22495
  children: [
22471
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Icon, { icon, iconColor: "currentColor", size: "1rem" }),
22472
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { css: FilterButtonText, children: text }),
22473
- filterCount ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Counter, { count: filterCount, bgColor: "var(--white)" }) : null
22496
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Icon, { icon, iconColor: "currentColor", size: "1rem" }),
22497
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { css: FilterButtonText, children: text }),
22498
+ filterCount ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Counter, { count: filterCount, bgColor: "var(--white)" }) : null
22474
22499
  ]
22475
22500
  }
22476
22501
  );
@@ -22478,14 +22503,14 @@ var FilterButton2 = ({
22478
22503
 
22479
22504
  // src/components/SearchAndFilter/FilterControls.tsx
22480
22505
  init_emotion_jsx_shim();
22481
- var import_react140 = require("react");
22506
+ var import_react141 = require("react");
22482
22507
  var import_react_use3 = require("react-use");
22483
22508
 
22484
22509
  // src/components/SearchAndFilter/hooks/useSearchAndFilter.tsx
22485
22510
  init_emotion_jsx_shim();
22486
- var import_react139 = require("react");
22487
- var import_jsx_runtime118 = require("@emotion/react/jsx-runtime");
22488
- var SearchAndFilterContext = (0, import_react139.createContext)({
22511
+ var import_react140 = require("react");
22512
+ var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
22513
+ var SearchAndFilterContext = (0, import_react140.createContext)({
22489
22514
  searchTerm: "",
22490
22515
  setSearchTerm: () => {
22491
22516
  },
@@ -22521,48 +22546,48 @@ var SearchAndFilterProvider = ({
22521
22546
  totalResults,
22522
22547
  children
22523
22548
  }) => {
22524
- const [searchTerm, setSearchTerm] = (0, import_react139.useState)("");
22525
- const deferredSearchTerm = (0, import_react139.useDeferredValue)(searchTerm);
22526
- const [filterVisibility, setFilterVisibility] = (0, import_react139.useState)(filterMode3);
22527
- const [sortByValue, setSortByValue] = (0, import_react139.useState)(defaultSortByValue);
22528
- const handleSearchTerm = (0, import_react139.useCallback)(
22549
+ const [searchTerm, setSearchTerm] = (0, import_react140.useState)("");
22550
+ const deferredSearchTerm = (0, import_react140.useDeferredValue)(searchTerm);
22551
+ const [filterVisibility, setFilterVisibility] = (0, import_react140.useState)(filterMode3);
22552
+ const [sortByValue, setSortByValue] = (0, import_react140.useState)(defaultSortByValue);
22553
+ const handleSearchTerm = (0, import_react140.useCallback)(
22529
22554
  (term) => {
22530
22555
  setSearchTerm(term);
22531
22556
  onSearchChange == null ? void 0 : onSearchChange(term);
22532
22557
  },
22533
22558
  [setSearchTerm, onSearchChange]
22534
22559
  );
22535
- const handleOnSortChange = (0, import_react139.useCallback)(
22560
+ const handleOnSortChange = (0, import_react140.useCallback)(
22536
22561
  (sort) => {
22537
22562
  setSortByValue(sort);
22538
22563
  onSortChange(sort);
22539
22564
  },
22540
22565
  [onSortChange]
22541
22566
  );
22542
- const handleToggleFilterVisibilty = (0, import_react139.useCallback)(
22567
+ const handleToggleFilterVisibilty = (0, import_react140.useCallback)(
22543
22568
  (mode) => setFilterVisibility(mode),
22544
22569
  [setFilterVisibility]
22545
22570
  );
22546
- const handleAddFilter = (0, import_react139.useCallback)(() => {
22571
+ const handleAddFilter = (0, import_react140.useCallback)(() => {
22547
22572
  onChange([...filters, { field: "", operator: "", value: "" }]);
22548
22573
  }, [filters, onChange]);
22549
- const handleResetFilters = (0, import_react139.useCallback)(() => {
22574
+ const handleResetFilters = (0, import_react140.useCallback)(() => {
22550
22575
  onChange([]);
22551
22576
  }, [onChange]);
22552
- const handleDeleteFilter = (0, import_react139.useCallback)(
22577
+ const handleDeleteFilter = (0, import_react140.useCallback)(
22553
22578
  (index) => {
22554
22579
  const remainingFilters = filters.filter((_, i) => i !== index);
22555
22580
  onChange(remainingFilters);
22556
22581
  },
22557
22582
  [filters, onChange]
22558
22583
  );
22559
- const validFilterQuery = (0, import_react139.useMemo)(() => {
22584
+ const validFilterQuery = (0, import_react140.useMemo)(() => {
22560
22585
  const hasValidFilters = filters.every((f) => f.field && f.operator && f.value);
22561
22586
  if (hasValidFilters) {
22562
22587
  return filters;
22563
22588
  }
22564
22589
  }, [filters]);
22565
- (0, import_react139.useEffect)(() => {
22590
+ (0, import_react140.useEffect)(() => {
22566
22591
  if (filterVisibility) {
22567
22592
  const handleEscKeyFilterClose = (e) => {
22568
22593
  if (e.key === "Escape") {
@@ -22575,7 +22600,7 @@ var SearchAndFilterProvider = ({
22575
22600
  };
22576
22601
  }
22577
22602
  }, [filterVisibility]);
22578
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
22603
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
22579
22604
  SearchAndFilterContext.Provider,
22580
22605
  {
22581
22606
  value: {
@@ -22595,17 +22620,17 @@ var SearchAndFilterProvider = ({
22595
22620
  validFilterQuery,
22596
22621
  totalResults
22597
22622
  },
22598
- children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(VerticalRhythm, { children })
22623
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(VerticalRhythm, { children })
22599
22624
  }
22600
22625
  );
22601
22626
  };
22602
22627
  var useSearchAndFilter = () => {
22603
- const value = (0, import_react139.useContext)(SearchAndFilterContext);
22628
+ const value = (0, import_react140.useContext)(SearchAndFilterContext);
22604
22629
  return { ...value };
22605
22630
  };
22606
22631
 
22607
22632
  // src/components/SearchAndFilter/FilterControls.tsx
22608
- var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
22633
+ var import_jsx_runtime120 = require("@emotion/react/jsx-runtime");
22609
22634
  var FilterControls = ({
22610
22635
  children,
22611
22636
  defaultSortByValue,
@@ -22621,9 +22646,9 @@ var FilterControls = ({
22621
22646
  sortByValue,
22622
22647
  filterOptions
22623
22648
  } = useSearchAndFilter();
22624
- const [initialSortValue, setInitialSortValue] = (0, import_react140.useState)(sortByValue);
22625
- const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react140.useState)("");
22626
- const [userHasChangedSortByValue, setUserHasChangedSortByValue] = (0, import_react140.useState)(false);
22649
+ const [initialSortValue, setInitialSortValue] = (0, import_react141.useState)(sortByValue);
22650
+ const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react141.useState)("");
22651
+ const [userHasChangedSortByValue, setUserHasChangedSortByValue] = (0, import_react141.useState)(false);
22627
22652
  (0, import_react_use3.useDebounce)(
22628
22653
  () => {
22629
22654
  setSearchTerm(localeSearchTerm);
@@ -22631,7 +22656,7 @@ var FilterControls = ({
22631
22656
  300,
22632
22657
  [localeSearchTerm, searchTerm]
22633
22658
  );
22634
- (0, import_react140.useEffect)(() => {
22659
+ (0, import_react141.useEffect)(() => {
22635
22660
  if (searchTerm === "") {
22636
22661
  setLocaleSearchTerm("");
22637
22662
  }
@@ -22651,13 +22676,13 @@ var FilterControls = ({
22651
22676
  (0, import_react_use3.useEffectOnce)(() => {
22652
22677
  setInitialSortValue(sortByValue);
22653
22678
  });
22654
- (0, import_react140.useEffect)(() => {
22679
+ (0, import_react141.useEffect)(() => {
22655
22680
  if (initialSortValue !== sortByValue) {
22656
22681
  setUserHasChangedSortByValue(true);
22657
22682
  }
22658
22683
  }, [initialSortValue, sortByValue]);
22659
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
22660
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
22684
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_jsx_runtime120.Fragment, { children: [
22685
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
22661
22686
  FilterButton2,
22662
22687
  {
22663
22688
  "aria-controls": "search-and-filter-options",
@@ -22668,7 +22693,7 @@ var FilterControls = ({
22668
22693
  onClick: () => handleFilterToggle("filters")
22669
22694
  }
22670
22695
  ),
22671
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
22696
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
22672
22697
  FilterButton2,
22673
22698
  {
22674
22699
  "aria-controls": "search-and-filter-sortBy",
@@ -22682,7 +22707,7 @@ var FilterControls = ({
22682
22707
  "data-testid": "sort-by-dropdown"
22683
22708
  }
22684
22709
  ),
22685
- hideSearchInput ? null : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
22710
+ hideSearchInput ? null : /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
22686
22711
  InputKeywordSearch,
22687
22712
  {
22688
22713
  placeholder: "Search...",
@@ -22698,11 +22723,11 @@ var FilterControls = ({
22698
22723
 
22699
22724
  // src/components/SearchAndFilter/FilterItem.tsx
22700
22725
  init_emotion_jsx_shim();
22701
- var import_react144 = require("react");
22726
+ var import_react145 = require("react");
22702
22727
 
22703
22728
  // src/components/SearchAndFilter/FilterEditor.tsx
22704
22729
  init_emotion_jsx_shim();
22705
- var import_react142 = require("react");
22730
+ var import_react143 = require("react");
22706
22731
  var import_react_use4 = require("react-use");
22707
22732
 
22708
22733
  // src/components/Validation/StatusBullet.tsx
@@ -22710,8 +22735,8 @@ init_emotion_jsx_shim();
22710
22735
 
22711
22736
  // src/components/Validation/StatusBullet.styles.ts
22712
22737
  init_emotion_jsx_shim();
22713
- var import_react141 = require("@emotion/react");
22714
- var StatusBulletContainer = import_react141.css`
22738
+ var import_react142 = require("@emotion/react");
22739
+ var StatusBulletContainer = import_react142.css`
22715
22740
  align-items: center;
22716
22741
  align-self: center;
22717
22742
  color: var(--gray-500);
@@ -22728,33 +22753,33 @@ var StatusBulletContainer = import_react141.css`
22728
22753
  display: block;
22729
22754
  }
22730
22755
  `;
22731
- var StatusBulletBase = import_react141.css`
22756
+ var StatusBulletBase = import_react142.css`
22732
22757
  font-size: var(--fs-sm);
22733
22758
  &:before {
22734
22759
  width: var(--fs-xs);
22735
22760
  height: var(--fs-xs);
22736
22761
  }
22737
22762
  `;
22738
- var StatusBulletSmall = import_react141.css`
22763
+ var StatusBulletSmall = import_react142.css`
22739
22764
  font-size: var(--fs-xs);
22740
22765
  &:before {
22741
22766
  width: var(--fs-xxs);
22742
22767
  height: var(--fs-xxs);
22743
22768
  }
22744
22769
  `;
22745
- var StatusDraft = import_react141.css`
22770
+ var StatusDraft = import_react142.css`
22746
22771
  &:before {
22747
22772
  background: var(--white);
22748
22773
  box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
22749
22774
  }
22750
22775
  `;
22751
- var StatusModified = import_react141.css`
22776
+ var StatusModified = import_react142.css`
22752
22777
  &:before {
22753
22778
  background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
22754
22779
  box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
22755
22780
  }
22756
22781
  `;
22757
- var StatusError = import_react141.css`
22782
+ var StatusError = import_react142.css`
22758
22783
  color: var(--error);
22759
22784
  &:before {
22760
22785
  /* TODO: replace this with an svg icon */
@@ -22767,29 +22792,29 @@ var StatusError = import_react141.css`
22767
22792
  );
22768
22793
  }
22769
22794
  `;
22770
- var StatusPublished = import_react141.css`
22795
+ var StatusPublished = import_react142.css`
22771
22796
  &:before {
22772
22797
  background: var(--primary-action-default);
22773
22798
  }
22774
22799
  `;
22775
- var StatusOrphan = import_react141.css`
22800
+ var StatusOrphan = import_react142.css`
22776
22801
  &:before {
22777
22802
  background: var(--brand-secondary-5);
22778
22803
  }
22779
22804
  `;
22780
- var StatusUnknown = import_react141.css`
22805
+ var StatusUnknown = import_react142.css`
22781
22806
  &:before {
22782
22807
  background: var(--gray-800);
22783
22808
  }
22784
22809
  `;
22785
- var StatusDeleted = import_react141.css`
22810
+ var StatusDeleted = import_react142.css`
22786
22811
  &:before {
22787
22812
  background: var(--error);
22788
22813
  }
22789
22814
  `;
22790
22815
 
22791
22816
  // src/components/Validation/StatusBullet.tsx
22792
- var import_jsx_runtime120 = require("@emotion/react/jsx-runtime");
22817
+ var import_jsx_runtime121 = require("@emotion/react/jsx-runtime");
22793
22818
  var StatusBullet = ({
22794
22819
  status,
22795
22820
  hideText = false,
@@ -22809,7 +22834,7 @@ var StatusBullet = ({
22809
22834
  Deleted: StatusDeleted
22810
22835
  };
22811
22836
  const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
22812
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
22837
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22813
22838
  "span",
22814
22839
  {
22815
22840
  role: "status",
@@ -22822,7 +22847,7 @@ var StatusBullet = ({
22822
22847
  };
22823
22848
 
22824
22849
  // src/components/SearchAndFilter/FilterEditor.tsx
22825
- var import_jsx_runtime121 = require("@emotion/react/jsx-runtime");
22850
+ var import_jsx_runtime122 = require("@emotion/react/jsx-runtime");
22826
22851
  var readOnlyAttributes = {
22827
22852
  isSearchable: false,
22828
22853
  menuIsOpen: false,
@@ -22837,7 +22862,7 @@ var FilterMultiChoiceEditor = ({
22837
22862
  ...props
22838
22863
  }) => {
22839
22864
  const readOnlyProps = readOnly ? readOnlyAttributes : {};
22840
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22865
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22841
22866
  InputComboBox,
22842
22867
  {
22843
22868
  ...props,
@@ -22873,7 +22898,7 @@ var FilterSingleChoiceEditor = ({
22873
22898
  valueTestId
22874
22899
  }) => {
22875
22900
  const readOnlyProps = readOnly ? readOnlyAttributes : {};
22876
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22901
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22877
22902
  InputComboBox,
22878
22903
  {
22879
22904
  placeholder: "Type to search...",
@@ -22899,7 +22924,7 @@ var FilterSingleChoiceEditor = ({
22899
22924
  ) });
22900
22925
  };
22901
22926
  var CustomOptions = ({ label, value }) => {
22902
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(StatusBullet, { status: label, message: value });
22927
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(StatusBullet, { status: label, message: value });
22903
22928
  };
22904
22929
  var StatusMultiEditor = ({
22905
22930
  options,
@@ -22910,7 +22935,7 @@ var StatusMultiEditor = ({
22910
22935
  valueTestId
22911
22936
  }) => {
22912
22937
  const readOnlyProps = readOnly ? readOnlyAttributes : {};
22913
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22938
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22914
22939
  InputComboBox,
22915
22940
  {
22916
22941
  options,
@@ -22943,7 +22968,7 @@ var StatusSingleEditor = ({
22943
22968
  valueTestId
22944
22969
  }) => {
22945
22970
  const readOnlyProps = readOnly ? readOnlyAttributes : {};
22946
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22971
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22947
22972
  InputComboBox,
22948
22973
  {
22949
22974
  options,
@@ -22968,7 +22993,7 @@ var StatusSingleEditor = ({
22968
22993
  };
22969
22994
  var TextEditor = ({ onChange, ariaLabel, value, readOnly, valueTestId }) => {
22970
22995
  (0, import_react_use4.useDebounce)(() => onChange, 500, [value]);
22971
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22996
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22972
22997
  Input,
22973
22998
  {
22974
22999
  showLabel: false,
@@ -22989,10 +23014,10 @@ var NumberRangeEditor = ({
22989
23014
  readOnly,
22990
23015
  valueTestId
22991
23016
  }) => {
22992
- const [minValue, setMinValue] = (0, import_react142.useState)("");
22993
- const [maxValue, setMaxValue] = (0, import_react142.useState)("");
22994
- const [error, setError] = (0, import_react142.useState)("");
22995
- (0, import_react142.useEffect)(() => {
23017
+ const [minValue, setMinValue] = (0, import_react143.useState)("");
23018
+ const [maxValue, setMaxValue] = (0, import_react143.useState)("");
23019
+ const [error, setError] = (0, import_react143.useState)("");
23020
+ (0, import_react143.useEffect)(() => {
22996
23021
  if (!maxValue && !minValue) {
22997
23022
  return;
22998
23023
  }
@@ -23011,9 +23036,9 @@ var NumberRangeEditor = ({
23011
23036
  setError("");
23012
23037
  onChange([minValue, maxValue]);
23013
23038
  }, [maxValue, minValue, setError]);
23014
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_jsx_runtime121.Fragment, { children: [
23015
- /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
23016
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23039
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
23040
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
23041
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23017
23042
  Input,
23018
23043
  {
23019
23044
  label: `${ariaLabel}-min`,
@@ -23028,7 +23053,7 @@ var NumberRangeEditor = ({
23028
23053
  readOnly
23029
23054
  }
23030
23055
  ),
23031
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23056
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23032
23057
  Input,
23033
23058
  {
23034
23059
  type: "number",
@@ -23044,7 +23069,7 @@ var NumberRangeEditor = ({
23044
23069
  }
23045
23070
  )
23046
23071
  ] }),
23047
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ErrorContainer, { errorMessage: error })
23072
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ErrorContainer, { errorMessage: error })
23048
23073
  ] });
23049
23074
  };
23050
23075
  var NumberEditor = ({
@@ -23055,7 +23080,7 @@ var NumberEditor = ({
23055
23080
  readOnly,
23056
23081
  valueTestId
23057
23082
  }) => {
23058
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23083
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23059
23084
  Input,
23060
23085
  {
23061
23086
  label: ariaLabel,
@@ -23078,7 +23103,7 @@ var DateEditor = ({
23078
23103
  readOnly,
23079
23104
  valueTestId
23080
23105
  }) => {
23081
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23106
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23082
23107
  Input,
23083
23108
  {
23084
23109
  type: "date",
@@ -23100,10 +23125,10 @@ var DateRangeEditor = ({
23100
23125
  readOnly,
23101
23126
  valueTestId
23102
23127
  }) => {
23103
- const [minDateValue, setMinDateValue] = (0, import_react142.useState)(value ? value[0] : "");
23104
- const [maxDateValue, setMaxDateValue] = (0, import_react142.useState)(value ? value[1] : "");
23105
- const [error, setError] = (0, import_react142.useState)("");
23106
- (0, import_react142.useEffect)(() => {
23128
+ const [minDateValue, setMinDateValue] = (0, import_react143.useState)(value ? value[0] : "");
23129
+ const [maxDateValue, setMaxDateValue] = (0, import_react143.useState)(value ? value[1] : "");
23130
+ const [error, setError] = (0, import_react143.useState)("");
23131
+ (0, import_react143.useEffect)(() => {
23107
23132
  if (!minDateValue || !maxDateValue) {
23108
23133
  return;
23109
23134
  }
@@ -23134,9 +23159,9 @@ var DateRangeEditor = ({
23134
23159
  setError("");
23135
23160
  onChange([minDateValue, maxDateValue]);
23136
23161
  }, [minDateValue, maxDateValue, setError]);
23137
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_jsx_runtime121.Fragment, { children: [
23138
- /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
23139
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23162
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
23163
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
23164
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23140
23165
  Input,
23141
23166
  {
23142
23167
  label: `${ariaLabel}-min-date`,
@@ -23149,7 +23174,7 @@ var DateRangeEditor = ({
23149
23174
  readOnly
23150
23175
  }
23151
23176
  ),
23152
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23177
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23153
23178
  Input,
23154
23179
  {
23155
23180
  label: `${ariaLabel}-max-date`,
@@ -23163,7 +23188,7 @@ var DateRangeEditor = ({
23163
23188
  }
23164
23189
  )
23165
23190
  ] }),
23166
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ErrorContainer, { errorMessage: error })
23191
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ErrorContainer, { errorMessage: error })
23167
23192
  ] });
23168
23193
  };
23169
23194
  var FilterEditorRenderer = ({ editorType, ...props }) => {
@@ -23174,7 +23199,7 @@ var FilterEditorRenderer = ({ editorType, ...props }) => {
23174
23199
  if (editorType === "empty") {
23175
23200
  return null;
23176
23201
  }
23177
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Editor, { ...props, disabled: props.isDisabled });
23202
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Editor, { ...props, disabled: props.isDisabled });
23178
23203
  };
23179
23204
  var filterMapper = {
23180
23205
  multiChoice: FilterMultiChoiceEditor,
@@ -23189,14 +23214,14 @@ var filterMapper = {
23189
23214
  empty: null
23190
23215
  };
23191
23216
  var ErrorContainer = ({ errorMessage }) => {
23192
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23217
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23193
23218
  "div",
23194
23219
  {
23195
23220
  css: {
23196
23221
  gridColumn: "span 6",
23197
23222
  order: 6
23198
23223
  },
23199
- children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(FieldMessage, { errorMessage })
23224
+ children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(FieldMessage, { errorMessage })
23200
23225
  }
23201
23226
  );
23202
23227
  };
@@ -23208,15 +23233,15 @@ var twoColumnGrid = {
23208
23233
 
23209
23234
  // src/components/SearchAndFilter/FilterMenu.tsx
23210
23235
  init_emotion_jsx_shim();
23211
- var import_react143 = __toESM(require("react"));
23212
- var import_jsx_runtime122 = require("@emotion/react/jsx-runtime");
23236
+ var import_react144 = __toESM(require("react"));
23237
+ var import_jsx_runtime123 = require("@emotion/react/jsx-runtime");
23213
23238
  var SearchAndFilterOptionsContainer2 = ({
23214
23239
  buttonRow,
23215
23240
  children
23216
23241
  }) => {
23217
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { css: SearchAndFilterOptionsContainer, "data-testid": "search-and-filter-options", children: [
23218
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { css: SearchAndFilterOptionsInnerContainer, children }),
23219
- buttonRow ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23242
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { css: SearchAndFilterOptionsContainer, "data-testid": "search-and-filter-options", children: [
23243
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { css: SearchAndFilterOptionsInnerContainer, children }),
23244
+ buttonRow ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23220
23245
  HorizontalRhythm,
23221
23246
  {
23222
23247
  css: SearchAndFilterButtonGroup,
@@ -23230,23 +23255,23 @@ var SearchAndFilterOptionsContainer2 = ({
23230
23255
  };
23231
23256
  var FilterMenu = ({ id, filterTitle = "Show results", menuControls, children }) => {
23232
23257
  const { filterVisibility, setFilterVisibility } = useSearchAndFilter();
23233
- const innerMenuRef = import_react143.default.useRef(null);
23234
- (0, import_react143.useEffect)(() => {
23258
+ const innerMenuRef = import_react144.default.useRef(null);
23259
+ (0, import_react144.useEffect)(() => {
23235
23260
  var _a;
23236
23261
  if (filterVisibility) {
23237
23262
  (_a = innerMenuRef.current) == null ? void 0 : _a.focus();
23238
23263
  }
23239
23264
  }, [filterVisibility]);
23240
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(VerticalRhythm, { gap: "sm", "aria-haspopup": "true", id, children: filterVisibility ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(SearchAndFilterOptionsContainer2, { buttonRow: menuControls, children: [
23241
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { css: Title, ref: innerMenuRef, tabIndex: 0, children: filterTitle }),
23242
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23265
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(VerticalRhythm, { gap: "sm", "aria-haspopup": "true", id, children: filterVisibility ? /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(SearchAndFilterOptionsContainer2, { buttonRow: menuControls, children: [
23266
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { css: Title, ref: innerMenuRef, tabIndex: 0, children: filterTitle }),
23267
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23243
23268
  "button",
23244
23269
  {
23245
23270
  type: "button",
23246
23271
  "aria-label": "close filters",
23247
23272
  css: [CloseBtn],
23248
23273
  onClick: () => setFilterVisibility(void 0),
23249
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { icon: "close", iconColor: "currentColor", size: "1.1rem" })
23274
+ children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { icon: "close", iconColor: "currentColor", size: "1.1rem" })
23250
23275
  }
23251
23276
  ),
23252
23277
  children
@@ -23254,7 +23279,7 @@ var FilterMenu = ({ id, filterTitle = "Show results", menuControls, children })
23254
23279
  };
23255
23280
 
23256
23281
  // src/components/SearchAndFilter/FilterItem.tsx
23257
- var import_jsx_runtime123 = require("@emotion/react/jsx-runtime");
23282
+ var import_jsx_runtime124 = require("@emotion/react/jsx-runtime");
23258
23283
  var FilterItem = ({
23259
23284
  index,
23260
23285
  paramOptions,
@@ -23270,7 +23295,7 @@ var FilterItem = ({
23270
23295
  const operatorLabel = filters[index].operator !== "" ? `operator ${filters[index].operator}` : "unknown operator";
23271
23296
  const metaDataLabel = filters[index].value !== "" ? `value ${filters[index].value}` : "unknown value";
23272
23297
  const metaDataPossibleOptions = (_b = (_a = operatorOptions.find((op) => filters[index].operator === op.value)) == null ? void 0 : _a.editorType) != null ? _b : "singleChoice";
23273
- const { selectedFieldValue, selectedOperatorValue, selectedMetaValue, readOnly } = (0, import_react144.useMemo)(() => {
23298
+ const { selectedFieldValue, selectedOperatorValue, selectedMetaValue, readOnly } = (0, import_react145.useMemo)(() => {
23274
23299
  var _a2;
23275
23300
  const currentSelectedFilter = filterOptions.find((item) => {
23276
23301
  var _a3;
@@ -23302,10 +23327,10 @@ var FilterItem = ({
23302
23327
  menuIsOpen: false,
23303
23328
  isClearable: false
23304
23329
  } : {};
23305
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
23306
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { children: index === 0 ? "Where" : "and" }),
23307
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { css: ConditionalInputRow, children: [
23308
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23330
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
23331
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { children: index === 0 ? "Where" : "and" }),
23332
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { css: ConditionalInputRow, children: [
23333
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23309
23334
  InputComboBox,
23310
23335
  {
23311
23336
  "aria-label": label,
@@ -23331,7 +23356,7 @@ var FilterItem = ({
23331
23356
  id: "filter-field"
23332
23357
  }
23333
23358
  ),
23334
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23359
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23335
23360
  InputComboBox,
23336
23361
  {
23337
23362
  "aria-label": operatorLabel,
@@ -23354,7 +23379,7 @@ var FilterItem = ({
23354
23379
  id: "filter-operator"
23355
23380
  }
23356
23381
  ),
23357
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23382
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23358
23383
  FilterEditorRenderer,
23359
23384
  {
23360
23385
  "aria-label": metaDataLabel,
@@ -23367,7 +23392,7 @@ var FilterItem = ({
23367
23392
  valueTestId: "filter-value"
23368
23393
  }
23369
23394
  ),
23370
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23395
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23371
23396
  "button",
23372
23397
  {
23373
23398
  type: "button",
@@ -23375,7 +23400,7 @@ var FilterItem = ({
23375
23400
  "aria-label": "delete filter",
23376
23401
  css: IconBtn,
23377
23402
  "data-testid": "delete-filter",
23378
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { icon: "trash", iconColor: "red", size: "1rem" })
23403
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon, { icon: "trash", iconColor: "red", size: "1rem" })
23379
23404
  }
23380
23405
  )
23381
23406
  ] })
@@ -23409,12 +23434,12 @@ var FilterItems = ({
23409
23434
  }
23410
23435
  setFilters(next);
23411
23436
  };
23412
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23437
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23413
23438
  FilterMenu,
23414
23439
  {
23415
23440
  id: "search-and-filter-options",
23416
- menuControls: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_jsx_runtime123.Fragment, { children: [
23417
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
23441
+ menuControls: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
23442
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
23418
23443
  "button",
23419
23444
  {
23420
23445
  type: "button",
@@ -23422,12 +23447,12 @@ var FilterItems = ({
23422
23447
  onClick: handleAddFilter,
23423
23448
  "data-testid": "add-filter",
23424
23449
  children: [
23425
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { icon: "math-plus", iconColor: "currentColor", size: "1rem" }),
23450
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon, { icon: "math-plus", iconColor: "currentColor", size: "1rem" }),
23426
23451
  addButtonText
23427
23452
  ]
23428
23453
  }
23429
23454
  ),
23430
- (filters == null ? void 0 : filters.length) ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23455
+ (filters == null ? void 0 : filters.length) ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23431
23456
  "button",
23432
23457
  {
23433
23458
  type: "button",
@@ -23449,7 +23474,7 @@ var FilterItems = ({
23449
23474
  })) == null ? void 0 : _a.options) != null ? _b : [];
23450
23475
  const possibleValueOptions = (_d = (_c = availableTypeOptions == null ? void 0 : availableTypeOptions.find((op) => op.value === item.field)) == null ? void 0 : _c.valueOptions) != null ? _d : [];
23451
23476
  const possibleOperators = (_f = (_e = availableTypeOptions == null ? void 0 : availableTypeOptions.find((op) => op.value === item.field)) == null ? void 0 : _e.operatorOptions) != null ? _f : [];
23452
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23477
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23453
23478
  FilterItem,
23454
23479
  {
23455
23480
  index: i,
@@ -23478,14 +23503,14 @@ init_emotion_jsx_shim();
23478
23503
 
23479
23504
  // src/components/SegmentedControl/SegmentedControl.tsx
23480
23505
  init_emotion_jsx_shim();
23481
- var import_react146 = require("@emotion/react");
23506
+ var import_react147 = require("@emotion/react");
23482
23507
  var import_CgCheck5 = require("@react-icons/all-files/cg/CgCheck");
23483
- var import_react147 = require("react");
23508
+ var import_react148 = require("react");
23484
23509
 
23485
23510
  // src/components/SegmentedControl/SegmentedControl.styles.ts
23486
23511
  init_emotion_jsx_shim();
23487
- var import_react145 = require("@emotion/react");
23488
- var segmentedControlStyles = import_react145.css`
23512
+ var import_react146 = require("@emotion/react");
23513
+ var segmentedControlStyles = import_react146.css`
23489
23514
  --segmented-control-rounded-value: var(--rounded-base);
23490
23515
  --segmented-control-border-width: 1px;
23491
23516
  --segmented-control-selected-color: var(--brand-secondary-3);
@@ -23504,14 +23529,14 @@ var segmentedControlStyles = import_react145.css`
23504
23529
  border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
23505
23530
  font-size: var(--fs-xs);
23506
23531
  `;
23507
- var segmentedControlVerticalStyles = import_react145.css`
23532
+ var segmentedControlVerticalStyles = import_react146.css`
23508
23533
  flex-direction: column;
23509
23534
  --segmented-control-first-border-radius: var(--segmented-control-rounded-value)
23510
23535
  var(--segmented-control-rounded-value) 0 0;
23511
23536
  --segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
23512
23537
  var(--segmented-control-rounded-value);
23513
23538
  `;
23514
- var segmentedControlItemStyles = import_react145.css`
23539
+ var segmentedControlItemStyles = import_react146.css`
23515
23540
  &:first-of-type label {
23516
23541
  border-radius: var(--segmented-control-first-border-radius);
23517
23542
  }
@@ -23519,10 +23544,10 @@ var segmentedControlItemStyles = import_react145.css`
23519
23544
  border-radius: var(--segmented-control-last-border-radius);
23520
23545
  }
23521
23546
  `;
23522
- var segmentedControlInputStyles = import_react145.css`
23547
+ var segmentedControlInputStyles = import_react146.css`
23523
23548
  ${accessibleHidden}
23524
23549
  `;
23525
- var segmentedControlLabelStyles = (checked, disabled2) => import_react145.css`
23550
+ var segmentedControlLabelStyles = (checked, disabled2) => import_react146.css`
23526
23551
  position: relative;
23527
23552
  display: flex;
23528
23553
  align-items: center;
@@ -23589,23 +23614,23 @@ var segmentedControlLabelStyles = (checked, disabled2) => import_react145.css`
23589
23614
  `}
23590
23615
  }
23591
23616
  `;
23592
- var segmentedControlLabelIconOnlyStyles = import_react145.css`
23617
+ var segmentedControlLabelIconOnlyStyles = import_react146.css`
23593
23618
  padding-inline: 0.5em;
23594
23619
  `;
23595
- var segmentedControlLabelCheckStyles = import_react145.css`
23620
+ var segmentedControlLabelCheckStyles = import_react146.css`
23596
23621
  opacity: 0.5;
23597
23622
  `;
23598
- var segmentedControlLabelContentStyles = import_react145.css`
23623
+ var segmentedControlLabelContentStyles = import_react146.css`
23599
23624
  display: flex;
23600
23625
  align-items: center;
23601
23626
  justify-content: center;
23602
23627
  gap: var(--spacing-sm);
23603
23628
  height: 100%;
23604
23629
  `;
23605
- var segmentedControlLabelTextStyles = import_react145.css``;
23630
+ var segmentedControlLabelTextStyles = import_react146.css``;
23606
23631
 
23607
23632
  // src/components/SegmentedControl/SegmentedControl.tsx
23608
- var import_jsx_runtime124 = require("@emotion/react/jsx-runtime");
23633
+ var import_jsx_runtime125 = require("@emotion/react/jsx-runtime");
23609
23634
  var SegmentedControl = ({
23610
23635
  name,
23611
23636
  options,
@@ -23617,7 +23642,7 @@ var SegmentedControl = ({
23617
23642
  size = "md",
23618
23643
  ...props
23619
23644
  }) => {
23620
- const onOptionChange = (0, import_react147.useCallback)(
23645
+ const onOptionChange = (0, import_react148.useCallback)(
23621
23646
  (event) => {
23622
23647
  if (event.target.checked) {
23623
23648
  onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
@@ -23625,18 +23650,18 @@ var SegmentedControl = ({
23625
23650
  },
23626
23651
  [options, onChange]
23627
23652
  );
23628
- const sizeStyles = (0, import_react147.useMemo)(() => {
23653
+ const sizeStyles = (0, import_react148.useMemo)(() => {
23629
23654
  const map = {
23630
- sm: (0, import_react146.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
23631
- md: (0, import_react146.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
23632
- lg: (0, import_react146.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
23655
+ sm: (0, import_react147.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
23656
+ md: (0, import_react147.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
23657
+ lg: (0, import_react147.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
23633
23658
  };
23634
23659
  return map[size];
23635
23660
  }, [size]);
23636
- const isIconOnly = (0, import_react147.useMemo)(() => {
23661
+ const isIconOnly = (0, import_react148.useMemo)(() => {
23637
23662
  return options.every((option) => option && option.icon && !option.label);
23638
23663
  }, [options]);
23639
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23664
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23640
23665
  "div",
23641
23666
  {
23642
23667
  css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
@@ -23648,7 +23673,7 @@ var SegmentedControl = ({
23648
23673
  }
23649
23674
  const text = option.label ? option.label : option.icon ? null : String(option.value);
23650
23675
  const isDisabled = disabled2 || option.disabled;
23651
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
23676
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
23652
23677
  "label",
23653
23678
  {
23654
23679
  css: [
@@ -23657,7 +23682,7 @@ var SegmentedControl = ({
23657
23682
  isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
23658
23683
  ],
23659
23684
  children: [
23660
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23685
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23661
23686
  "input",
23662
23687
  {
23663
23688
  css: segmentedControlInputStyles,
@@ -23669,10 +23694,10 @@ var SegmentedControl = ({
23669
23694
  disabled: isDisabled
23670
23695
  }
23671
23696
  ),
23672
- option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_CgCheck5.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
23673
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
23674
- !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
23675
- !text ? null : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
23697
+ option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_CgCheck5.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
23698
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
23699
+ !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
23700
+ !text ? null : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
23676
23701
  ] })
23677
23702
  ]
23678
23703
  }
@@ -23683,7 +23708,7 @@ var SegmentedControl = ({
23683
23708
  };
23684
23709
 
23685
23710
  // src/components/SearchAndFilter/SortItems.tsx
23686
- var import_jsx_runtime125 = require("@emotion/react/jsx-runtime");
23711
+ var import_jsx_runtime126 = require("@emotion/react/jsx-runtime");
23687
23712
  var SortItems = () => {
23688
23713
  var _a, _b;
23689
23714
  const { sortOptions, setSortBy, sortByValue } = useSearchAndFilter();
@@ -23694,8 +23719,8 @@ var SortItems = () => {
23694
23719
  var _a2;
23695
23720
  return (_a2 = item.options) == null ? void 0 : _a2.find((option) => option.value === sortField);
23696
23721
  })) == null ? void 0 : _a.options) == null ? void 0 : _b.find((nestedOption) => nestedOption.value === sortField);
23697
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(FilterMenu, { id: "search-and-filter-options", filterTitle: "Sort by", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { css: SortFilterInputRow, children: [
23698
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23722
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(FilterMenu, { id: "search-and-filter-options", filterTitle: "Sort by", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { css: SortFilterInputRow, children: [
23723
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
23699
23724
  InputComboBox,
23700
23725
  {
23701
23726
  options: sortOptions,
@@ -23714,7 +23739,7 @@ var SortItems = () => {
23714
23739
  value: currentSelectedOption
23715
23740
  }
23716
23741
  ),
23717
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23742
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
23718
23743
  SegmentedControl,
23719
23744
  {
23720
23745
  noCheckmark: true,
@@ -23731,19 +23756,19 @@ var SortItems = () => {
23731
23756
  };
23732
23757
 
23733
23758
  // src/components/SearchAndFilter/FilterModeView.tsx
23734
- var import_jsx_runtime126 = require("@emotion/react/jsx-runtime");
23759
+ var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
23735
23760
  var FilterModeView = () => {
23736
23761
  const { filterVisibility } = useSearchAndFilter();
23737
23762
  const modeView = {
23738
- filters: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(FilterItems, {}),
23739
- sort: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(SortItems, {})
23763
+ filters: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(FilterItems, {}),
23764
+ sort: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(SortItems, {})
23740
23765
  };
23741
23766
  return filterVisibility ? modeView[filterVisibility] : null;
23742
23767
  };
23743
23768
 
23744
23769
  // src/components/SearchAndFilter/SearchAndFilterResultContainer.tsx
23745
23770
  init_emotion_jsx_shim();
23746
- var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
23771
+ var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
23747
23772
  var SearchAndFilterResultContainer = ({
23748
23773
  buttonText,
23749
23774
  clearButtonLabel = "clear",
@@ -23777,24 +23802,24 @@ var SearchAndFilterResultContainer = ({
23777
23802
  if (totalResults && totalResults > 0) {
23778
23803
  return null;
23779
23804
  }
23780
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
23781
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(HorizontalRhythm, { children: [
23782
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("span", { children: [
23805
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
23806
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(HorizontalRhythm, { children: [
23807
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("span", { children: [
23783
23808
  totalResults,
23784
23809
  " results ",
23785
23810
  searchTerm ? `for "${searchTerm}"` : null
23786
23811
  ] }),
23787
- !searchTerm ? null : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { buttonType: "ghostDestructive", size: "zero", onClick: () => setSearchTerm(""), children: clearButtonLabel })
23812
+ !searchTerm ? null : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Button, { buttonType: "ghostDestructive", size: "zero", onClick: () => setSearchTerm(""), children: clearButtonLabel })
23788
23813
  ] }),
23789
- totalResults === 0 ? /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(Callout, { title: calloutTitle2 != null ? calloutTitle2 : automateCalloutTitle(), type: "note", children: [
23790
- calloutText ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Paragraph, { children: calloutText }) : null,
23791
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { buttonType: "tertiaryOutline", size: "xs", onClick: onHandleClear != null ? onHandleClear : handleResetFilters, children: buttonText != null ? buttonText : "Clear search" })
23814
+ totalResults === 0 ? /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(Callout, { title: calloutTitle2 != null ? calloutTitle2 : automateCalloutTitle(), type: "note", children: [
23815
+ calloutText ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Paragraph, { children: calloutText }) : null,
23816
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Button, { buttonType: "tertiaryOutline", size: "xs", onClick: onHandleClear != null ? onHandleClear : handleResetFilters, children: buttonText != null ? buttonText : "Clear search" })
23792
23817
  ] }) : null
23793
23818
  ] });
23794
23819
  };
23795
23820
 
23796
23821
  // src/components/SearchAndFilter/SearchAndFilter.tsx
23797
- var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
23822
+ var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
23798
23823
  var SearchAndFilter = ({
23799
23824
  filters,
23800
23825
  filterOptions,
@@ -23803,14 +23828,14 @@ var SearchAndFilter = ({
23803
23828
  defaultSortByValue,
23804
23829
  filterControls,
23805
23830
  viewSwitchControls,
23806
- resultsContainerView = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SearchAndFilterResultContainer, {}),
23807
- children = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(FilterModeView, {}),
23831
+ resultsContainerView = /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SearchAndFilterResultContainer, {}),
23832
+ children = /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(FilterModeView, {}),
23808
23833
  onChange,
23809
23834
  onSearchChange,
23810
23835
  onSortChange,
23811
23836
  totalResults
23812
23837
  }) => {
23813
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
23838
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
23814
23839
  SearchAndFilterProvider,
23815
23840
  {
23816
23841
  filters,
@@ -23822,15 +23847,15 @@ var SearchAndFilter = ({
23822
23847
  onSearchChange,
23823
23848
  onSortChange,
23824
23849
  totalResults,
23825
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(VerticalRhythm, { css: SearchAndFilterContainer, "data-testid": "search-and-filter", children: [
23826
- /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
23827
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
23850
+ children: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(VerticalRhythm, { css: SearchAndFilterContainer, "data-testid": "search-and-filter", children: [
23851
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
23852
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
23828
23853
  "div",
23829
23854
  {
23830
23855
  css: SearchAndFilterControlsWrapper(
23831
23856
  viewSwitchControls ? "auto auto 1fr 0.5fr" : "auto auto 1fr"
23832
23857
  ),
23833
- children: !filterControls ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(FilterControls, { hideSearchInput: !onSearchChange, defaultSortByValue }) : filterControls
23858
+ children: !filterControls ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(FilterControls, { hideSearchInput: !onSearchChange, defaultSortByValue }) : filterControls
23834
23859
  }
23835
23860
  ),
23836
23861
  viewSwitchControls
@@ -23844,17 +23869,17 @@ var SearchAndFilter = ({
23844
23869
 
23845
23870
  // src/components/SearchAndFilter/SearchOnlyFilter.tsx
23846
23871
  init_emotion_jsx_shim();
23847
- var import_react148 = require("react");
23872
+ var import_react149 = require("react");
23848
23873
  var import_react_use5 = require("react-use");
23849
- var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
23850
- var SearchOnlyContext = (0, import_react148.createContext)({
23874
+ var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
23875
+ var SearchOnlyContext = (0, import_react149.createContext)({
23851
23876
  searchTerm: "",
23852
23877
  setSearchTerm: () => {
23853
23878
  }
23854
23879
  });
23855
23880
  var SearchOnlyFilter = ({ onSearchChange, maxWidth }) => {
23856
23881
  const { searchTerm, setSearchTerm } = useSearchAndFilter();
23857
- const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react148.useState)("");
23882
+ const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react149.useState)("");
23858
23883
  (0, import_react_use5.useDebounce)(
23859
23884
  () => {
23860
23885
  setSearchTerm(localeSearchTerm);
@@ -23863,14 +23888,14 @@ var SearchOnlyFilter = ({ onSearchChange, maxWidth }) => {
23863
23888
  300,
23864
23889
  [localeSearchTerm]
23865
23890
  );
23866
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
23891
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
23867
23892
  SearchOnlyContext.Provider,
23868
23893
  {
23869
23894
  value: {
23870
23895
  searchTerm,
23871
23896
  setSearchTerm: setLocaleSearchTerm
23872
23897
  },
23873
- children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { css: { maxWidth: maxWidth != null ? maxWidth : "712px" }, children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
23898
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { css: { maxWidth: maxWidth != null ? maxWidth : "712px" }, children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
23874
23899
  InputKeywordSearch,
23875
23900
  {
23876
23901
  placeholder: "Search...",
@@ -23889,18 +23914,18 @@ init_emotion_jsx_shim();
23889
23914
 
23890
23915
  // src/components/Skeleton/Skeleton.styles.ts
23891
23916
  init_emotion_jsx_shim();
23892
- var import_react149 = require("@emotion/react");
23893
- var lightFadingOut = import_react149.keyframes`
23917
+ var import_react150 = require("@emotion/react");
23918
+ var lightFadingOut = import_react150.keyframes`
23894
23919
  from { opacity: 0.1; }
23895
23920
  to { opacity: 0.025; }
23896
23921
  `;
23897
- var skeletonStyles = import_react149.css`
23922
+ var skeletonStyles = import_react150.css`
23898
23923
  animation: ${lightFadingOut} 1s ease-out infinite alternate;
23899
23924
  background-color: var(--gray-900);
23900
23925
  `;
23901
23926
 
23902
23927
  // src/components/Skeleton/Skeleton.tsx
23903
- var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
23928
+ var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
23904
23929
  var Skeleton = ({
23905
23930
  width = "100%",
23906
23931
  height = "1.25rem",
@@ -23908,7 +23933,7 @@ var Skeleton = ({
23908
23933
  circle = false,
23909
23934
  children,
23910
23935
  ...otherProps
23911
- }) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
23936
+ }) => /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
23912
23937
  "div",
23913
23938
  {
23914
23939
  css: [
@@ -23933,8 +23958,8 @@ var React26 = __toESM(require("react"));
23933
23958
 
23934
23959
  // src/components/Switch/Switch.styles.ts
23935
23960
  init_emotion_jsx_shim();
23936
- var import_react150 = require("@emotion/react");
23937
- var SwitchInputContainer = import_react150.css`
23961
+ var import_react151 = require("@emotion/react");
23962
+ var SwitchInputContainer = import_react151.css`
23938
23963
  cursor: pointer;
23939
23964
  display: inline-block;
23940
23965
  position: relative;
@@ -23943,7 +23968,7 @@ var SwitchInputContainer = import_react150.css`
23943
23968
  vertical-align: middle;
23944
23969
  user-select: none;
23945
23970
  `;
23946
- var SwitchInput = import_react150.css`
23971
+ var SwitchInput = import_react151.css`
23947
23972
  appearance: none;
23948
23973
  border-radius: var(--rounded-full);
23949
23974
  background-color: var(--white);
@@ -23981,7 +24006,7 @@ var SwitchInput = import_react150.css`
23981
24006
  cursor: not-allowed;
23982
24007
  }
23983
24008
  `;
23984
- var SwitchInputDisabled = import_react150.css`
24009
+ var SwitchInputDisabled = import_react151.css`
23985
24010
  opacity: var(--opacity-50);
23986
24011
  cursor: not-allowed;
23987
24012
 
@@ -23989,7 +24014,7 @@ var SwitchInputDisabled = import_react150.css`
23989
24014
  cursor: not-allowed;
23990
24015
  }
23991
24016
  `;
23992
- var SwitchInputLabel = import_react150.css`
24017
+ var SwitchInputLabel = import_react151.css`
23993
24018
  align-items: center;
23994
24019
  color: var(--typography-base);
23995
24020
  display: inline-flex;
@@ -24010,26 +24035,26 @@ var SwitchInputLabel = import_react150.css`
24010
24035
  top: 0;
24011
24036
  }
24012
24037
  `;
24013
- var SwitchText = import_react150.css`
24038
+ var SwitchText = import_react151.css`
24014
24039
  color: var(--gray-500);
24015
24040
  font-size: var(--fs-sm);
24016
24041
  padding-inline: var(--spacing-2xl) 0;
24017
24042
  `;
24018
24043
 
24019
24044
  // src/components/Switch/Switch.tsx
24020
- var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
24045
+ var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
24021
24046
  var Switch = React26.forwardRef(
24022
24047
  ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
24023
24048
  let additionalText = infoText;
24024
24049
  if (infoText && toggleText) {
24025
24050
  additionalText = inputProps.checked ? toggleText : infoText;
24026
24051
  }
24027
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
24028
- /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
24029
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
24030
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", { css: SwitchInputLabel, children: label })
24052
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
24053
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
24054
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
24055
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", { css: SwitchInputLabel, children: label })
24031
24056
  ] }),
24032
- additionalText ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("p", { css: SwitchText, children: additionalText }) : null,
24057
+ additionalText ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("p", { css: SwitchText, children: additionalText }) : null,
24033
24058
  children
24034
24059
  ] });
24035
24060
  }
@@ -24041,8 +24066,8 @@ var React27 = __toESM(require("react"));
24041
24066
 
24042
24067
  // src/components/Table/Table.styles.ts
24043
24068
  init_emotion_jsx_shim();
24044
- var import_react151 = require("@emotion/react");
24045
- var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => import_react151.css`
24069
+ var import_react152 = require("@emotion/react");
24070
+ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => import_react152.css`
24046
24071
  border-bottom: 1px solid var(--gray-400);
24047
24072
  border-collapse: collapse;
24048
24073
  min-width: 100%;
@@ -24053,67 +24078,67 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => impor
24053
24078
  padding: ${cellPadding};
24054
24079
  }
24055
24080
  `;
24056
- var tableHead = import_react151.css`
24081
+ var tableHead = import_react152.css`
24057
24082
  background: var(--gray-100);
24058
24083
  color: var(--typography-base);
24059
24084
  text-align: left;
24060
24085
  `;
24061
- var tableRow = import_react151.css`
24086
+ var tableRow = import_react152.css`
24062
24087
  border-bottom: 1px solid var(--gray-200);
24063
24088
  `;
24064
- var tableCellHead = import_react151.css`
24089
+ var tableCellHead = import_react152.css`
24065
24090
  font-size: var(--fs-sm);
24066
24091
  text-transform: uppercase;
24067
24092
  font-weight: var(--fw-bold);
24068
24093
  `;
24069
24094
 
24070
24095
  // src/components/Table/Table.tsx
24071
- var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
24096
+ var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
24072
24097
  var Table = React27.forwardRef(
24073
24098
  ({ children, cellPadding, ...otherProps }, ref) => {
24074
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
24099
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
24075
24100
  }
24076
24101
  );
24077
24102
  var TableHead = React27.forwardRef(
24078
24103
  ({ children, ...otherProps }, ref) => {
24079
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
24104
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
24080
24105
  }
24081
24106
  );
24082
24107
  var TableBody = React27.forwardRef(
24083
24108
  ({ children, ...otherProps }, ref) => {
24084
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tbody", { ref, ...otherProps, children });
24109
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("tbody", { ref, ...otherProps, children });
24085
24110
  }
24086
24111
  );
24087
24112
  var TableFoot = React27.forwardRef(
24088
24113
  ({ children, ...otherProps }, ref) => {
24089
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tfoot", { ref, ...otherProps, children });
24114
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("tfoot", { ref, ...otherProps, children });
24090
24115
  }
24091
24116
  );
24092
24117
  var TableRow = React27.forwardRef(
24093
24118
  ({ children, ...otherProps }, ref) => {
24094
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
24119
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
24095
24120
  }
24096
24121
  );
24097
24122
  var TableCellHead = React27.forwardRef(
24098
24123
  ({ children, ...otherProps }, ref) => {
24099
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
24124
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
24100
24125
  }
24101
24126
  );
24102
24127
  var TableCellData = React27.forwardRef(
24103
24128
  ({ children, ...otherProps }, ref) => {
24104
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("td", { ref, ...otherProps, children });
24129
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("td", { ref, ...otherProps, children });
24105
24130
  }
24106
24131
  );
24107
24132
 
24108
24133
  // src/components/Tabs/Tabs.tsx
24109
24134
  init_emotion_jsx_shim();
24110
- var import_react153 = require("@ariakit/react");
24111
- var import_react154 = require("react");
24135
+ var import_react154 = require("@ariakit/react");
24136
+ var import_react155 = require("react");
24112
24137
 
24113
24138
  // src/components/Tabs/Tabs.styles.ts
24114
24139
  init_emotion_jsx_shim();
24115
- var import_react152 = require("@emotion/react");
24116
- var tabButtonStyles = import_react152.css`
24140
+ var import_react153 = require("@emotion/react");
24141
+ var tabButtonStyles = import_react153.css`
24117
24142
  align-items: center;
24118
24143
  border: 0;
24119
24144
  height: 2.5rem;
@@ -24130,16 +24155,16 @@ var tabButtonStyles = import_react152.css`
24130
24155
  box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
24131
24156
  }
24132
24157
  `;
24133
- var tabButtonGroupStyles = import_react152.css`
24158
+ var tabButtonGroupStyles = import_react153.css`
24134
24159
  display: flex;
24135
24160
  gap: var(--spacing-base);
24136
24161
  border-bottom: 1px solid var(--gray-300);
24137
24162
  `;
24138
24163
 
24139
24164
  // src/components/Tabs/Tabs.tsx
24140
- var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
24165
+ var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
24141
24166
  var useCurrentTab = () => {
24142
- const context = (0, import_react153.useTabStore)();
24167
+ const context = (0, import_react154.useTabStore)();
24143
24168
  if (!context) {
24144
24169
  throw new Error("This component can only be used inside <Tabs>");
24145
24170
  }
@@ -24153,13 +24178,13 @@ var Tabs = ({
24153
24178
  manual,
24154
24179
  ...props
24155
24180
  }) => {
24156
- const selected = (0, import_react154.useMemo)(() => {
24181
+ const selected = (0, import_react155.useMemo)(() => {
24157
24182
  if (selectedId)
24158
24183
  return selectedId;
24159
24184
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
24160
24185
  }, [selectedId, useHashForState]);
24161
- const tab = (0, import_react153.useTabStore)({ ...props, selectOnMove: !manual, selectedId: selected });
24162
- const onTabSelect = (0, import_react154.useCallback)(
24186
+ const tab = (0, import_react154.useTabStore)({ ...props, selectOnMove: !manual, selectedId: selected });
24187
+ const onTabSelect = (0, import_react155.useCallback)(
24163
24188
  (value) => {
24164
24189
  const selectedValueWithoutNull = value != null ? value : void 0;
24165
24190
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -24170,28 +24195,28 @@ var Tabs = ({
24170
24195
  },
24171
24196
  [onSelectedIdChange, useHashForState]
24172
24197
  );
24173
- (0, import_react154.useEffect)(() => {
24198
+ (0, import_react155.useEffect)(() => {
24174
24199
  if (selected && selected !== tab.getState().activeId) {
24175
24200
  tab.setSelectedId(selected);
24176
24201
  }
24177
24202
  }, [selected, tab]);
24178
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react153.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
24203
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react154.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
24179
24204
  };
24180
24205
  var TabButtonGroup = ({ children, ...props }) => {
24181
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react153.TabList, { ...props, css: tabButtonGroupStyles, children });
24206
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react154.TabList, { ...props, css: tabButtonGroupStyles, children });
24182
24207
  };
24183
24208
  var TabButton = ({
24184
24209
  children,
24185
24210
  id,
24186
24211
  ...props
24187
24212
  }) => {
24188
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react153.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
24213
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react154.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
24189
24214
  };
24190
24215
  var TabContent = ({
24191
24216
  children,
24192
24217
  ...props
24193
24218
  }) => {
24194
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react153.TabPanel, { ...props, children });
24219
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react154.TabPanel, { ...props, children });
24195
24220
  };
24196
24221
 
24197
24222
  // src/components/Toast/Toast.tsx
@@ -24200,8 +24225,8 @@ var import_react_toastify = require("react-toastify");
24200
24225
 
24201
24226
  // src/components/Toast/Toast.styles.ts
24202
24227
  init_emotion_jsx_shim();
24203
- var import_react155 = require("@emotion/react");
24204
- var toastContainerStyles = import_react155.css`
24228
+ var import_react156 = require("@emotion/react");
24229
+ var toastContainerStyles = import_react156.css`
24205
24230
  ${functionalColors}
24206
24231
 
24207
24232
  --toastify-color-light: white;
@@ -24424,9 +24449,9 @@ var toastContainerStyles = import_react155.css`
24424
24449
  `;
24425
24450
 
24426
24451
  // src/components/Toast/Toast.tsx
24427
- var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
24452
+ var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
24428
24453
  var ToastContainer = ({ limit = 4 }) => {
24429
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
24454
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
24430
24455
  import_react_toastify.ToastContainer,
24431
24456
  {
24432
24457
  css: toastContainerStyles,
@@ -24526,6 +24551,7 @@ var ToastContainer = ({ limit = 4 }) => {
24526
24551
  MenuItemInner,
24527
24552
  MenuItemSeparator,
24528
24553
  Modal,
24554
+ ModalDialog,
24529
24555
  MultilineChip,
24530
24556
  NUMBER_OPERATORS,
24531
24557
  PageHeaderSection,