@uniformdev/design-system 19.27.0 → 19.29.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
@@ -52,6 +52,7 @@ __export(src_exports, {
52
52
  Details: () => Details,
53
53
  DismissibleChipAction: () => DismissibleChipAction,
54
54
  Drawer: () => Drawer,
55
+ DrawerContent: () => DrawerContent2,
55
56
  DrawerProvider: () => DrawerProvider,
56
57
  DrawerRenderer: () => DrawerRenderer,
57
58
  EditTeamIntegrationTile: () => EditTeamIntegrationTile,
@@ -404,7 +405,7 @@ var Theme = ({ disableReset = false }) => {
404
405
  /* z-indexs */
405
406
  --z-10: 10;
406
407
  --z-20: 20;
407
- --z-drawer: 40;
408
+ --z-drawer: 50;
408
409
  --z-50: 50;
409
410
  --z-tooltip: 80;
410
411
 
@@ -789,6 +790,10 @@ var inputSelect = import_react4.css`
789
790
  background-repeat: no-repeat;
790
791
  background-size: 1rem;
791
792
  padding-right: var(--spacing-xl);
793
+
794
+ option:disabled {
795
+ color: var(--gray-300);
796
+ }
792
797
  `;
793
798
  var inputSearchCloseBtn = import_react4.css`
794
799
  background: none;
@@ -11186,28 +11191,34 @@ var UniformBadge = ({
11186
11191
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
11187
11192
  "svg",
11188
11193
  {
11189
- width: "38",
11190
- height: "44",
11191
- viewBox: "0 0 87 101",
11194
+ width: "51",
11195
+ height: "52",
11196
+ viewBox: "0 0 51 52",
11192
11197
  fill: "none",
11193
11198
  xmlns: "http://www.w3.org/2000/svg",
11194
11199
  "data-test-id": "uniform-Badge",
11195
11200
  css: [SVG, theme === "dark" ? SVGDark : SVGLight],
11196
11201
  ...props,
11197
11202
  children: [
11198
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z", fill: "#7BB3FF" }),
11199
11203
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
11200
11204
  "path",
11201
11205
  {
11202
- d: "M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",
11203
- fill: "#498DFF"
11206
+ d: "M19.3444 4.35168L7 11.484V25.7181L19.3444 18.5858L31.6583 11.484L19.3444 4.35168Z",
11207
+ fill: "#84ADFF"
11204
11208
  }
11205
11209
  ),
11206
11210
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
11207
11211
  "path",
11208
11212
  {
11209
- d: "M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",
11210
- fill: "#E61408"
11213
+ d: "M19.3444 32.8505V18.5858L7 25.7182V39.9523L19.3444 47.0846L31.6583 39.9523V25.7182L19.3444 32.8505Z",
11214
+ fill: "#5786FF"
11215
+ }
11216
+ ),
11217
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
11218
+ "path",
11219
+ {
11220
+ d: "M31.6583 11.484L19.3444 18.5858L31.6583 25.7182V39.9523L44.0027 32.8505V18.5858L31.6583 11.484Z",
11221
+ fill: "#EC2924"
11211
11222
  }
11212
11223
  )
11213
11224
  ]
@@ -12787,8 +12798,10 @@ var headerWrapperStyles = import_react47.css`
12787
12798
  margin-right: var(--spacing-sm);
12788
12799
  `;
12789
12800
  var drawerHeaderStyles = import_react47.css`
12790
- font-size: var(--fs-lg);
12791
- font-weight: var(--fw-bold);
12801
+ align-items: center;
12802
+ display: flex;
12803
+ gap: var(--spacing-sm);
12804
+ font-size: var(--fs-md);
12792
12805
  padding-inline: var(--spacing-base);
12793
12806
  flex: 1;
12794
12807
  `;
@@ -12799,10 +12812,13 @@ var drawerRendererStyles = import_react47.css`
12799
12812
  `;
12800
12813
  var drawerInnerStyles = import_react47.css`
12801
12814
  height: 100%;
12802
- padding: 0 var(--spacing-base) var(--spacing-base);
12803
12815
  overflow: auto;
12816
+ padding: 0 var(--spacing-md) var(--spacing-base) var(--spacing-sm);
12804
12817
  ${scrollbarStyles}
12805
12818
  `;
12819
+ var drawerHeading = import_react47.css`
12820
+ font-size: var(--fs-base);
12821
+ `;
12806
12822
  var slideDrawerIn = import_react47.keyframes`
12807
12823
  0% {
12808
12824
  transform: translate(0);
@@ -12856,8 +12872,11 @@ var drawerWrapperLeftAlignedStyles = import_react47.css`
12856
12872
  var drawerWrapperOverlayStyles = import_react47.css`
12857
12873
  position: absolute;
12858
12874
  inset: 0;
12859
- background: rgba(31, 43, 52, 0.4);
12860
12875
  animation: ${fadeIn} var(--duration-fast) ease-out;
12876
+
12877
+ &:first-of-type {
12878
+ background: rgba(31, 43, 52, 0.4);
12879
+ }
12861
12880
  `;
12862
12881
 
12863
12882
  // src/components/Drawer/DrawerProvider.tsx
@@ -12942,7 +12961,7 @@ var useCurrentDrawerRenderer = () => {
12942
12961
  var DrawerRenderer = ({
12943
12962
  stackId,
12944
12963
  position = "absolute",
12945
- width = "45%",
12964
+ width = "medium",
12946
12965
  minWidth = "0",
12947
12966
  maxWidth = "100%",
12948
12967
  leftAligned = false,
@@ -12950,6 +12969,11 @@ var DrawerRenderer = ({
12950
12969
  }) => {
12951
12970
  const { drawersRegistry } = useDrawer();
12952
12971
  const drawersToRender = drawersRegistry.filter(({ stackId: sId }) => sId === stackId);
12972
+ const drawerWidth = {
12973
+ narrow: "29rem",
12974
+ medium: "43rem",
12975
+ wide: "57rem"
12976
+ };
12953
12977
  if (drawersToRender.length === 0) {
12954
12978
  return null;
12955
12979
  }
@@ -12962,20 +12986,23 @@ var DrawerRenderer = ({
12962
12986
  position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
12963
12987
  ],
12964
12988
  ...otherProps,
12965
- children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
12966
- DrawerWrapper,
12967
- {
12968
- index,
12969
- totalDrawers: drawersToRender.length,
12970
- width,
12971
- minWidth,
12972
- maxWidth,
12973
- onOverlayClick: onRequestClose,
12974
- leftAligned,
12975
- children: component
12976
- },
12977
- `${stackId2}-${id}`
12978
- ))
12989
+ children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => {
12990
+ var _a;
12991
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
12992
+ DrawerWrapper,
12993
+ {
12994
+ index,
12995
+ totalDrawers: drawersToRender.length,
12996
+ width: (_a = drawerWidth[width]) != null ? _a : width,
12997
+ minWidth,
12998
+ maxWidth,
12999
+ onOverlayClick: onRequestClose,
13000
+ leftAligned,
13001
+ children: component
13002
+ },
13003
+ `${stackId2}-${id}`
13004
+ );
13005
+ })
12979
13006
  }
12980
13007
  ) });
12981
13008
  };
@@ -13025,7 +13052,7 @@ var DrawerInner = ({
13025
13052
  ref,
13026
13053
  stackId = defaultSackId,
13027
13054
  id,
13028
- bgColor,
13055
+ bgColor = "var(--gray-50)",
13029
13056
  children,
13030
13057
  header,
13031
13058
  instanceKey,
@@ -13100,9 +13127,41 @@ var DrawerInner = ({
13100
13127
  return null;
13101
13128
  };
13102
13129
 
13103
- // src/components/Input/styles/CaptionText.styles.ts
13130
+ // src/components/Drawer/DrawerContent.styles.ts
13104
13131
  var import_react51 = require("@emotion/react");
13105
- var CaptionText = (dynamicSize) => import_react51.css`
13132
+ var DrawerContent = import_react51.css`
13133
+ background: var(--gray-50);
13134
+ display: flex;
13135
+ flex-direction: column;
13136
+ gap: var(--spacing-base);
13137
+ height: 100%;
13138
+ `;
13139
+ var DrawerContentInner = import_react51.css`
13140
+ background: var(--white);
13141
+ padding: var(--spacing-base);
13142
+ flex: 1;
13143
+ height: 100%;
13144
+ overflow-y: auto;
13145
+ ${scrollbarStyles}
13146
+ `;
13147
+ var DrawerContentBtnGroup = import_react51.css`
13148
+ display: flex;
13149
+ gap: var(--spacing-sm);
13150
+ padding: 0 var(--spacing-base) var(--spacing-base);
13151
+ `;
13152
+
13153
+ // src/components/Drawer/DrawerContent.tsx
13154
+ var import_jsx_runtime41 = require("@emotion/react/jsx-runtime");
13155
+ var DrawerContent2 = ({ children, buttonGroup, ...props }) => {
13156
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { css: DrawerContent, ...props, children: [
13157
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { css: DrawerContentInner, children }),
13158
+ buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { css: DrawerContentBtnGroup, children: buttonGroup }) : null
13159
+ ] });
13160
+ };
13161
+
13162
+ // src/components/Input/styles/CaptionText.styles.ts
13163
+ var import_react52 = require("@emotion/react");
13164
+ var CaptionText = (dynamicSize) => import_react52.css`
13106
13165
  color: var(--gray-500);
13107
13166
  display: block;
13108
13167
  font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
@@ -13111,29 +13170,29 @@ var CaptionText = (dynamicSize) => import_react51.css`
13111
13170
  `;
13112
13171
 
13113
13172
  // src/components/Input/Caption.tsx
13114
- var import_jsx_runtime41 = require("@emotion/react/jsx-runtime");
13173
+ var import_jsx_runtime42 = require("@emotion/react/jsx-runtime");
13115
13174
  var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
13116
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
13175
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
13117
13176
  };
13118
13177
 
13119
13178
  // src/components/Input/CheckboxWithInfo.tsx
13120
- var import_react53 = require("react");
13179
+ var import_react54 = require("react");
13121
13180
 
13122
13181
  // src/components/Input/styles/CheckboxWithInfo.styles.ts
13123
- var import_react52 = require("@emotion/react");
13124
- var CheckboxWithInfoContainer = import_react52.css`
13182
+ var import_react53 = require("@emotion/react");
13183
+ var CheckboxWithInfoContainer = import_react53.css`
13125
13184
  align-items: center;
13126
13185
  display: flex;
13127
13186
  gap: var(--spacing-sm);
13128
13187
  `;
13129
- var CheckboxWithInfoLabel = import_react52.css`
13188
+ var CheckboxWithInfoLabel = import_react53.css`
13130
13189
  align-items: center;
13131
13190
  color: var(--gray-500);
13132
13191
  display: flex;
13133
13192
  font-size: var(--fs-xs);
13134
13193
  gap: var(--spacing-sm);
13135
13194
  `;
13136
- var CheckboxWithInfoInput = import_react52.css`
13195
+ var CheckboxWithInfoInput = import_react53.css`
13137
13196
  appearance: none;
13138
13197
  border: 1px solid var(--gray-300);
13139
13198
  background: var(--white) no-repeat bottom center;
@@ -13166,7 +13225,7 @@ var CheckboxWithInfoInput = import_react52.css`
13166
13225
  border-color: var(--gray-200);
13167
13226
  }
13168
13227
  `;
13169
- var InfoDialogContainer = import_react52.css`
13228
+ var InfoDialogContainer = import_react53.css`
13170
13229
  position: relative;
13171
13230
 
13172
13231
  &:hover {
@@ -13175,7 +13234,7 @@ var InfoDialogContainer = import_react52.css`
13175
13234
  }
13176
13235
  }
13177
13236
  `;
13178
- var InfoDialogMessage = import_react52.css`
13237
+ var InfoDialogMessage = import_react53.css`
13179
13238
  background: var(--white);
13180
13239
  box-shadow: var(--shadow-base);
13181
13240
  border-radius: var(--rounded-md);
@@ -13192,21 +13251,21 @@ var InfoDialogMessage = import_react52.css`
13192
13251
  `;
13193
13252
 
13194
13253
  // src/components/Input/CheckboxWithInfo.tsx
13195
- var import_jsx_runtime42 = require("@emotion/react/jsx-runtime");
13254
+ var import_jsx_runtime43 = require("@emotion/react/jsx-runtime");
13196
13255
  var InfoDialog = ({ message }) => {
13197
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
13198
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
13199
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
13256
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
13257
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
13258
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
13200
13259
  ] });
13201
13260
  };
13202
- var CheckboxWithInfo = (0, import_react53.forwardRef)(
13261
+ var CheckboxWithInfo = (0, import_react54.forwardRef)(
13203
13262
  ({ label, name, info, ...props }, ref) => {
13204
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { css: CheckboxWithInfoContainer, children: [
13205
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { css: CheckboxWithInfoLabel, children: [
13206
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
13207
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: label })
13263
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { css: CheckboxWithInfoContainer, children: [
13264
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { css: CheckboxWithInfoLabel, children: [
13265
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
13266
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: label })
13208
13267
  ] }),
13209
- info ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(InfoDialog, { message: info }) : null
13268
+ info ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(InfoDialog, { message: info }) : null
13210
13269
  ] });
13211
13270
  }
13212
13271
  );
@@ -13215,8 +13274,8 @@ var CheckboxWithInfo = (0, import_react53.forwardRef)(
13215
13274
  var import_md2 = require("react-icons/md");
13216
13275
 
13217
13276
  // src/components/Input/styles/ErrorMessage.styles.ts
13218
- var import_react54 = require("@emotion/react");
13219
- var ErrorText = import_react54.css`
13277
+ var import_react55 = require("@emotion/react");
13278
+ var ErrorText = import_react55.css`
13220
13279
  align-items: center;
13221
13280
  color: var(--brand-secondary-5);
13222
13281
  display: flex;
@@ -13224,10 +13283,10 @@ var ErrorText = import_react54.css`
13224
13283
  `;
13225
13284
 
13226
13285
  // src/components/Input/ErrorMessage.tsx
13227
- var import_jsx_runtime43 = require("@emotion/react/jsx-runtime");
13286
+ var import_jsx_runtime44 = require("@emotion/react/jsx-runtime");
13228
13287
  var ErrorMessage = ({ message, testId, ...otherProps }) => {
13229
- return message ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
13230
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { icon: import_md2.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
13288
+ return message ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
13289
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { icon: import_md2.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
13231
13290
  message
13232
13291
  ] }) : null;
13233
13292
  };
@@ -13236,9 +13295,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
13236
13295
  var React13 = __toESM(require("react"));
13237
13296
 
13238
13297
  // src/components/Input/styles/Fieldset.styles.ts
13239
- var import_react55 = require("@emotion/react");
13298
+ var import_react56 = require("@emotion/react");
13240
13299
  function fieldsetContainer(invert) {
13241
- const base = import_react55.css`
13300
+ const base = import_react56.css`
13242
13301
  border-radius: var(--rounded-base);
13243
13302
  border: 1px solid var(--gray-300);
13244
13303
 
@@ -13250,18 +13309,18 @@ function fieldsetContainer(invert) {
13250
13309
  }
13251
13310
  `;
13252
13311
  return invert ? [
13253
- import_react55.css`
13312
+ import_react56.css`
13254
13313
  background: white;
13255
13314
  `,
13256
13315
  base
13257
13316
  ] : [
13258
- import_react55.css`
13317
+ import_react56.css`
13259
13318
  background: var(--gray-50);
13260
13319
  `,
13261
13320
  base
13262
13321
  ];
13263
13322
  }
13264
- var fieldsetLegend = import_react55.css`
13323
+ var fieldsetLegend = import_react56.css`
13265
13324
  align-items: center;
13266
13325
  color: var(--brand-secondary-1);
13267
13326
  display: flex;
@@ -13271,17 +13330,17 @@ var fieldsetLegend = import_react55.css`
13271
13330
  margin-bottom: var(--spacing-base);
13272
13331
  float: left; // allows the legend to be inside the fieldset and not sat on the border line
13273
13332
  `;
13274
- var fieldsetBody = import_react55.css`
13333
+ var fieldsetBody = import_react56.css`
13275
13334
  clear: left;
13276
13335
  `;
13277
13336
 
13278
13337
  // src/components/Input/Fieldset.tsx
13279
- var import_jsx_runtime44 = require("@emotion/react/jsx-runtime");
13338
+ var import_jsx_runtime45 = require("@emotion/react/jsx-runtime");
13280
13339
  var Fieldset = React13.forwardRef(
13281
13340
  ({ legend, disabled, children, invert, ...props }, ref) => {
13282
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
13341
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
13283
13342
  legend,
13284
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { css: fieldsetBody, children })
13343
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { css: fieldsetBody, children })
13285
13344
  ] });
13286
13345
  }
13287
13346
  );
@@ -13290,8 +13349,8 @@ var Fieldset = React13.forwardRef(
13290
13349
  var import_md3 = require("react-icons/md");
13291
13350
 
13292
13351
  // src/components/Input/styles/InfoMessage.styles.tsx
13293
- var import_react56 = require("@emotion/react");
13294
- var InfoText = import_react56.css`
13352
+ var import_react57 = require("@emotion/react");
13353
+ var InfoText = import_react57.css`
13295
13354
  --info-desc: rgb(29, 78, 216);
13296
13355
  --info-icon: rgb(96, 165, 250);
13297
13356
 
@@ -13300,15 +13359,15 @@ var InfoText = import_react56.css`
13300
13359
  display: flex;
13301
13360
  gap: var(--spacing-sm);
13302
13361
  `;
13303
- var InfoIcon2 = import_react56.css`
13362
+ var InfoIcon2 = import_react57.css`
13304
13363
  color: var(--info-icon);
13305
13364
  `;
13306
13365
 
13307
13366
  // src/components/Input/InfoMessage.tsx
13308
- var import_jsx_runtime45 = require("@emotion/react/jsx-runtime");
13367
+ var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
13309
13368
  var InfoMessage = ({ message, testId, ...props }) => {
13310
- return message ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { role: "status", css: InfoText, "data-test-id": testId, ...props, children: [
13311
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { css: InfoIcon2, icon: import_md3.MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
13369
+ return message ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { role: "status", css: InfoText, "data-test-id": testId, ...props, children: [
13370
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon, { css: InfoIcon2, icon: import_md3.MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
13312
13371
  message
13313
13372
  ] }) : null;
13314
13373
  };
@@ -13317,9 +13376,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
13317
13376
  var React14 = __toESM(require("react"));
13318
13377
 
13319
13378
  // src/components/Input/Label.tsx
13320
- var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
13379
+ var import_jsx_runtime47 = require("@emotion/react/jsx-runtime");
13321
13380
  var Label = ({ children, className, testId, ...props }) => {
13322
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13381
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13323
13382
  "label",
13324
13383
  {
13325
13384
  css: [labelText, typeof className === "object" ? className : void 0],
@@ -13335,28 +13394,28 @@ var Label = ({ children, className, testId, ...props }) => {
13335
13394
  var import_md4 = require("react-icons/md");
13336
13395
 
13337
13396
  // src/components/Input/styles/WarningMessage.styles.tsx
13338
- var import_react57 = require("@emotion/react");
13339
- var WarningText = import_react57.css`
13397
+ var import_react58 = require("@emotion/react");
13398
+ var WarningText = import_react58.css`
13340
13399
  align-items: center;
13341
13400
  color: var(--alert-text);
13342
13401
  display: flex;
13343
13402
  gap: var(--spacing-sm);
13344
13403
  `;
13345
- var WarningIcon = import_react57.css`
13404
+ var WarningIcon = import_react58.css`
13346
13405
  color: var(--alert);
13347
13406
  `;
13348
13407
 
13349
13408
  // src/components/Input/WarningMessage.tsx
13350
- var import_jsx_runtime47 = require("@emotion/react/jsx-runtime");
13409
+ var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
13351
13410
  var WarningMessage = ({ message, testId, ...props }) => {
13352
- return message ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
13353
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { css: WarningIcon, icon: import_md4.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
13411
+ return message ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
13412
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { css: WarningIcon, icon: import_md4.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
13354
13413
  message
13355
13414
  ] }) : null;
13356
13415
  };
13357
13416
 
13358
13417
  // src/components/Input/Input.tsx
13359
- var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
13418
+ var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
13360
13419
  var Input = React14.forwardRef(
13361
13420
  ({
13362
13421
  label,
@@ -13375,8 +13434,8 @@ var Input = React14.forwardRef(
13375
13434
  classNameLabel,
13376
13435
  ...props
13377
13436
  }, ref) => {
13378
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
13379
- showLabel ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13437
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
13438
+ showLabel ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13380
13439
  Label,
13381
13440
  {
13382
13441
  htmlFor: id,
@@ -13386,13 +13445,13 @@ var Input = React14.forwardRef(
13386
13445
  children: label
13387
13446
  }
13388
13447
  ) : null,
13389
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
13448
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
13390
13449
  "div",
13391
13450
  {
13392
13451
  css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
13393
13452
  className: typeof classNameContainer === "string" ? classNameContainer : "",
13394
13453
  children: [
13395
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13454
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13396
13455
  "input",
13397
13456
  {
13398
13457
  id,
@@ -13408,23 +13467,23 @@ var Input = React14.forwardRef(
13408
13467
  ref
13409
13468
  }
13410
13469
  ),
13411
- icon ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { css: inputIcon, children: icon }) : null
13470
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { css: inputIcon, children: icon }) : null
13412
13471
  ]
13413
13472
  }
13414
13473
  ),
13415
- caption ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
13416
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
13417
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WarningMessage, { message: warningMessage }) : null
13474
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
13475
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
13476
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(WarningMessage, { message: warningMessage }) : null
13418
13477
  ] });
13419
13478
  }
13420
13479
  );
13421
13480
 
13422
13481
  // src/components/Input/InputComboBox.tsx
13423
13482
  var import_react_select = __toESM(require("react-select"));
13424
- var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
13483
+ var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
13425
13484
  function InputComboBox(props) {
13426
13485
  var _a;
13427
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13486
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13428
13487
  import_react_select.default,
13429
13488
  {
13430
13489
  ...props,
@@ -13553,17 +13612,17 @@ function InputComboBox(props) {
13553
13612
  }
13554
13613
 
13555
13614
  // src/components/Input/InputInlineSelect.tsx
13556
- var import_react59 = require("@emotion/react");
13557
- var import_react60 = require("react");
13615
+ var import_react60 = require("@emotion/react");
13616
+ var import_react61 = require("react");
13558
13617
  var import_cg11 = require("react-icons/cg");
13559
13618
 
13560
13619
  // src/components/Input/styles/InputInlineSelect.styles.ts
13561
- var import_react58 = require("@emotion/react");
13562
- var inlineSelectContainer = import_react58.css`
13620
+ var import_react59 = require("@emotion/react");
13621
+ var inlineSelectContainer = import_react59.css`
13563
13622
  margin-inline: auto;
13564
13623
  max-width: fit-content;
13565
13624
  `;
13566
- var inlineSelectBtn = import_react58.css`
13625
+ var inlineSelectBtn = import_react59.css`
13567
13626
  align-items: center;
13568
13627
  background: var(--brand-secondary-3);
13569
13628
  border: 2px solid var(--brand-secondary-3);
@@ -13587,7 +13646,7 @@ var inlineSelectBtn = import_react58.css`
13587
13646
  outline: 2px solid var(--brand-secondary-1);
13588
13647
  }
13589
13648
  `;
13590
- var inlineSelectMenu = import_react58.css`
13649
+ var inlineSelectMenu = import_react59.css`
13591
13650
  background: var(--white);
13592
13651
  border: 1px solid var(--brand-secondary-3);
13593
13652
  border-top: none;
@@ -13598,7 +13657,7 @@ var inlineSelectMenu = import_react58.css`
13598
13657
  inset: auto 0;
13599
13658
  transform: translateY(-0.2rem);
13600
13659
  `;
13601
- var inlineSelectBtnOptions = import_react58.css`
13660
+ var inlineSelectBtnOptions = import_react59.css`
13602
13661
  cursor: pointer;
13603
13662
  display: block;
13604
13663
  font-size: var(--fs-sm);
@@ -13614,7 +13673,7 @@ var inlineSelectBtnOptions = import_react58.css`
13614
13673
  background: var(--gray-50);
13615
13674
  }
13616
13675
  `;
13617
- var inlineSelectMenuClosed = import_react58.css`
13676
+ var inlineSelectMenuClosed = import_react59.css`
13618
13677
  position: absolute;
13619
13678
  overflow: hidden;
13620
13679
  height: 1px;
@@ -13624,7 +13683,7 @@ var inlineSelectMenuClosed = import_react58.css`
13624
13683
  `;
13625
13684
 
13626
13685
  // src/components/Input/InputInlineSelect.tsx
13627
- var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
13686
+ var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
13628
13687
  var InputInlineSelect = ({
13629
13688
  classNameContainer,
13630
13689
  options,
@@ -13634,21 +13693,21 @@ var InputInlineSelect = ({
13634
13693
  ...props
13635
13694
  }) => {
13636
13695
  var _a;
13637
- const [menuVisible, setMenuVisible] = (0, import_react60.useState)(false);
13638
- const divRef = (0, import_react60.useRef)(null);
13696
+ const [menuVisible, setMenuVisible] = (0, import_react61.useState)(false);
13697
+ const divRef = (0, import_react61.useRef)(null);
13639
13698
  useOutsideClick(divRef, () => setMenuVisible(false));
13640
13699
  const selected = options.find((option) => option.value === value);
13641
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
13700
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13642
13701
  "div",
13643
13702
  {
13644
13703
  ref: divRef,
13645
- css: !classNameContainer ? inlineSelectContainer : import_react59.css`
13704
+ css: !classNameContainer ? inlineSelectContainer : import_react60.css`
13646
13705
  max-width: fit-content;
13647
13706
  ${typeof classNameContainer === "object" ? classNameContainer : void 0}
13648
13707
  `,
13649
13708
  className: typeof classNameContainer === "string" ? classNameContainer : "",
13650
13709
  children: [
13651
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
13710
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13652
13711
  "button",
13653
13712
  {
13654
13713
  type: "button",
@@ -13662,18 +13721,18 @@ var InputInlineSelect = ({
13662
13721
  disabled,
13663
13722
  ...props,
13664
13723
  children: [
13665
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
13666
- disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: import_cg11.CgChevronDown, iconColor: "currentColor", size: 24 })
13724
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
13725
+ disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: import_cg11.CgChevronDown, iconColor: "currentColor", size: 24 })
13667
13726
  ]
13668
13727
  }
13669
13728
  ),
13670
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13729
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13671
13730
  "div",
13672
13731
  {
13673
13732
  id: `and-or-${props.id}`,
13674
13733
  css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
13675
13734
  "aria-hidden": !menuVisible,
13676
- children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13735
+ children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13677
13736
  "button",
13678
13737
  {
13679
13738
  type: "button",
@@ -13694,7 +13753,7 @@ var InputInlineSelect = ({
13694
13753
  };
13695
13754
 
13696
13755
  // src/components/Input/InputKeywordSearch.tsx
13697
- var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
13756
+ var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
13698
13757
  var InputKeywordSearch = ({
13699
13758
  onSearchTextChanged,
13700
13759
  disabled = false,
@@ -13713,7 +13772,7 @@ var InputKeywordSearch = ({
13713
13772
  e.preventDefault();
13714
13773
  }
13715
13774
  };
13716
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13775
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13717
13776
  Input,
13718
13777
  {
13719
13778
  type: "text",
@@ -13721,7 +13780,7 @@ var InputKeywordSearch = ({
13721
13780
  placeholder,
13722
13781
  showLabel: false,
13723
13782
  value,
13724
- icon: value ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
13783
+ icon: value ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
13725
13784
  onChange: handleSearchTextChanged,
13726
13785
  onKeyPress: preventSubmitOnField,
13727
13786
  disabled,
@@ -13732,7 +13791,7 @@ var InputKeywordSearch = ({
13732
13791
  };
13733
13792
 
13734
13793
  // src/components/Input/InputSelect.tsx
13735
- var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
13794
+ var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
13736
13795
  var InputSelect = ({
13737
13796
  label,
13738
13797
  defaultOption,
@@ -13748,13 +13807,13 @@ var InputSelect = ({
13748
13807
  classNameLabel,
13749
13808
  ...props
13750
13809
  }) => {
13751
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
13810
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
13752
13811
  "div",
13753
13812
  {
13754
13813
  css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
13755
13814
  className: typeof classNameContainer === "string" ? classNameContainer : "",
13756
13815
  children: [
13757
- showLabel ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
13816
+ showLabel ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
13758
13817
  Label,
13759
13818
  {
13760
13819
  htmlFor: props.id,
@@ -13766,7 +13825,7 @@ var InputSelect = ({
13766
13825
  ]
13767
13826
  }
13768
13827
  ) }) : null,
13769
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
13828
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
13770
13829
  "select",
13771
13830
  {
13772
13831
  title: label,
@@ -13781,14 +13840,14 @@ var InputSelect = ({
13781
13840
  className: typeof classNameControl === "string" ? classNameControl : "",
13782
13841
  ...props,
13783
13842
  children: [
13784
- defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("option", { value: "", children: defaultOption }) : null,
13785
- options.map((opt, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("option", { value: opt.label, ...opt }, index))
13843
+ defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("option", { value: "", children: defaultOption }) : null,
13844
+ options.map((opt, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("option", { value: opt.label, ...opt }, index))
13786
13845
  ]
13787
13846
  }
13788
13847
  ),
13789
- caption ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Caption, { children: caption }) : null,
13790
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ErrorMessage, { message: errorMessage }) : null,
13791
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(WarningMessage, { message: warningMessage }) : null
13848
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Caption, { children: caption }) : null,
13849
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ErrorMessage, { message: errorMessage }) : null,
13850
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(WarningMessage, { message: warningMessage }) : null
13792
13851
  ]
13793
13852
  }
13794
13853
  );
@@ -13796,7 +13855,7 @@ var InputSelect = ({
13796
13855
 
13797
13856
  // src/components/Input/InputToggle.tsx
13798
13857
  var React15 = __toESM(require("react"));
13799
- var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
13858
+ var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
13800
13859
  var InputToggle = React15.forwardRef(
13801
13860
  ({
13802
13861
  label,
@@ -13811,13 +13870,13 @@ var InputToggle = React15.forwardRef(
13811
13870
  fontWeight = "medium",
13812
13871
  ...props
13813
13872
  }, ref) => {
13814
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
13873
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
13815
13874
  Label,
13816
13875
  {
13817
13876
  css: [inputToggleLabel, disabled ? inputDisabled : void 0],
13818
13877
  "data-test-id": testId ? testId : "input-toggle",
13819
13878
  children: [
13820
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13879
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
13821
13880
  "input",
13822
13881
  {
13823
13882
  ref,
@@ -13829,11 +13888,11 @@ var InputToggle = React15.forwardRef(
13829
13888
  ...props
13830
13889
  }
13831
13890
  ),
13832
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { css: inlineLabel(fontWeight), children: label }),
13833
- caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { css: inputToggleMessageContainer, children: [
13834
- caption ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Caption, { children: caption }) : null,
13835
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ErrorMessage, { message: errorMessage }) : null,
13836
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(WarningMessage, { message: warningMessage }) : null
13891
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { css: inlineLabel(fontWeight), children: label }),
13892
+ caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("span", { css: inputToggleMessageContainer, children: [
13893
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Caption, { children: caption }) : null,
13894
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ErrorMessage, { message: errorMessage }) : null,
13895
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(WarningMessage, { message: warningMessage }) : null
13837
13896
  ] }) : null
13838
13897
  ]
13839
13898
  }
@@ -13842,17 +13901,17 @@ var InputToggle = React15.forwardRef(
13842
13901
  );
13843
13902
 
13844
13903
  // src/components/Input/Legend.tsx
13845
- var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
13904
+ var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
13846
13905
  var Legend = ({ children }) => {
13847
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("legend", { css: fieldsetLegend, children });
13906
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("legend", { css: fieldsetLegend, children });
13848
13907
  };
13849
13908
 
13850
13909
  // src/components/Input/SuccessMessage.tsx
13851
13910
  var import_cg12 = require("react-icons/cg");
13852
13911
 
13853
13912
  // src/components/Input/styles/SuccessMessage.styles.ts
13854
- var import_react61 = require("@emotion/react");
13855
- var SuccessText = import_react61.css`
13913
+ var import_react62 = require("@emotion/react");
13914
+ var SuccessText = import_react62.css`
13856
13915
  --info-desc: var(--brand-secondary-3);
13857
13916
  --info-icon: var(--brand-secondary-3);
13858
13917
 
@@ -13861,21 +13920,21 @@ var SuccessText = import_react61.css`
13861
13920
  display: flex;
13862
13921
  gap: var(--spacing-sm);
13863
13922
  `;
13864
- var SuccessIcon2 = import_react61.css`
13923
+ var SuccessIcon2 = import_react62.css`
13865
13924
  color: var(--info-icon);
13866
13925
  `;
13867
13926
 
13868
13927
  // src/components/Input/SuccessMessage.tsx
13869
- var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
13928
+ var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
13870
13929
  var SuccessMessage = ({ message, testId, ...props }) => {
13871
- return message ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { role: "status", css: SuccessText, "data-test-id": testId, ...props, children: [
13872
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { css: SuccessIcon2, icon: import_cg12.CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
13930
+ return message ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { role: "status", css: SuccessText, "data-test-id": testId, ...props, children: [
13931
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { css: SuccessIcon2, icon: import_cg12.CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
13873
13932
  message
13874
13933
  ] }) : null;
13875
13934
  };
13876
13935
 
13877
13936
  // src/components/Input/Textarea.tsx
13878
- var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
13937
+ var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
13879
13938
  var Textarea = ({
13880
13939
  label,
13881
13940
  icon,
@@ -13886,10 +13945,10 @@ var Textarea = ({
13886
13945
  warningMessage,
13887
13946
  ...props
13888
13947
  }) => {
13889
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
13890
- showLabel ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("label", { htmlFor: id, css: [labelText], children: label }) : null,
13891
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { css: [inputContainer], children: [
13892
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13948
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
13949
+ showLabel ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("label", { htmlFor: id, css: [labelText], children: label }) : null,
13950
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { css: [inputContainer], children: [
13951
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13893
13952
  "textarea",
13894
13953
  {
13895
13954
  id,
@@ -13898,17 +13957,17 @@ var Textarea = ({
13898
13957
  ...props
13899
13958
  }
13900
13959
  ),
13901
- icon ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { css: inputIcon, children: icon }) : null
13960
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { css: inputIcon, children: icon }) : null
13902
13961
  ] }),
13903
- caption ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Caption, { children: caption }) : null,
13904
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorMessage, { message: errorMessage }) : null,
13905
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WarningMessage, { message: warningMessage }) : null
13962
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Caption, { children: caption }) : null,
13963
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ErrorMessage, { message: errorMessage }) : null,
13964
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(WarningMessage, { message: warningMessage }) : null
13906
13965
  ] });
13907
13966
  };
13908
13967
 
13909
13968
  // src/components/JsonEditor/JsonEditor.tsx
13910
- var import_react62 = __toESM(require("@monaco-editor/react"));
13911
- var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
13969
+ var import_react63 = __toESM(require("@monaco-editor/react"));
13970
+ var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
13912
13971
  var minEditorHeightPx = 150;
13913
13972
  var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
13914
13973
  let effectiveHeight = height;
@@ -13918,8 +13977,8 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
13918
13977
  if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
13919
13978
  effectiveHeight = minEditorHeightPx;
13920
13979
  }
13921
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13922
- import_react62.default,
13980
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
13981
+ import_react63.default,
13923
13982
  {
13924
13983
  height: effectiveHeight,
13925
13984
  className: "uniform-json-editor",
@@ -13955,39 +14014,39 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
13955
14014
  };
13956
14015
 
13957
14016
  // src/components/LimitsBar/LimitsBar.styles.ts
13958
- var import_react63 = require("@emotion/react");
13959
- var LimitsBarContainer = import_react63.css`
14017
+ var import_react64 = require("@emotion/react");
14018
+ var LimitsBarContainer = import_react64.css`
13960
14019
  margin-block: var(--spacing-sm);
13961
14020
  `;
13962
- var LimitsBarProgressBar = import_react63.css`
14021
+ var LimitsBarProgressBar = import_react64.css`
13963
14022
  background: var(--gray-100);
13964
14023
  margin-top: var(--spacing-sm);
13965
14024
  position: relative;
13966
14025
  overflow: hidden;
13967
14026
  height: 0.25rem;
13968
14027
  `;
13969
- var LimitsBarProgressBarLine = import_react63.css`
14028
+ var LimitsBarProgressBarLine = import_react64.css`
13970
14029
  position: absolute;
13971
14030
  inset: 0;
13972
14031
  transition: transform var(--duration-fast) var(--timing-ease-out);
13973
14032
  `;
13974
- var LimitsBarLabelContainer = import_react63.css`
14033
+ var LimitsBarLabelContainer = import_react64.css`
13975
14034
  display: flex;
13976
14035
  justify-content: space-between;
13977
14036
  font-weight: var(--fw-bold);
13978
14037
  `;
13979
- var LimitsBarLabel = import_react63.css`
14038
+ var LimitsBarLabel = import_react64.css`
13980
14039
  font-size: var(--fs-baase);
13981
14040
  `;
13982
- var LimitsBarBgColor = (statusColor) => import_react63.css`
14041
+ var LimitsBarBgColor = (statusColor) => import_react64.css`
13983
14042
  background: ${statusColor};
13984
14043
  `;
13985
- var LimitsBarTextColor = (statusColor) => import_react63.css`
14044
+ var LimitsBarTextColor = (statusColor) => import_react64.css`
13986
14045
  color: ${statusColor};
13987
14046
  `;
13988
14047
 
13989
14048
  // src/components/LimitsBar/LimitsBar.tsx
13990
- var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
14049
+ var import_jsx_runtime59 = require("@emotion/react/jsx-runtime");
13991
14050
  var LimitsBar = ({ current, max, label }) => {
13992
14051
  const maxPercentage = 100;
13993
14052
  const progressBarValue = Math.ceil(current / max * maxPercentage);
@@ -13998,16 +14057,16 @@ var LimitsBar = ({ current, max, label }) => {
13998
14057
  danger: "var(--brand-secondary-5)"
13999
14058
  };
14000
14059
  const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
14001
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { css: LimitsBarContainer, children: [
14002
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { css: LimitsBarLabelContainer, children: [
14003
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { css: LimitsBarLabel, children: label }),
14004
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
14060
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { css: LimitsBarContainer, children: [
14061
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { css: LimitsBarLabelContainer, children: [
14062
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { css: LimitsBarLabel, children: label }),
14063
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
14005
14064
  current,
14006
14065
  " of ",
14007
14066
  max
14008
14067
  ] })
14009
14068
  ] }),
14010
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
14069
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
14011
14070
  "div",
14012
14071
  {
14013
14072
  role: "progressbar",
@@ -14016,7 +14075,7 @@ var LimitsBar = ({ current, max, label }) => {
14016
14075
  "aria-valuemax": max,
14017
14076
  "aria-valuetext": `${current} of ${max}`,
14018
14077
  css: LimitsBarProgressBar,
14019
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
14078
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
14020
14079
  "span",
14021
14080
  {
14022
14081
  role: "presentation",
@@ -14032,8 +14091,8 @@ var LimitsBar = ({ current, max, label }) => {
14032
14091
  };
14033
14092
 
14034
14093
  // src/components/LinkList/LinkList.styles.ts
14035
- var import_react64 = require("@emotion/react");
14036
- var LinkListContainer = (padding) => import_react64.css`
14094
+ var import_react65 = require("@emotion/react");
14095
+ var LinkListContainer = (padding) => import_react65.css`
14037
14096
  padding: ${padding};
14038
14097
 
14039
14098
  ${mq("sm")} {
@@ -14041,30 +14100,30 @@ var LinkListContainer = (padding) => import_react64.css`
14041
14100
  grid-row: 1 / last-line;
14042
14101
  }
14043
14102
  `;
14044
- var LinkListTitle = import_react64.css`
14103
+ var LinkListTitle = import_react65.css`
14045
14104
  font-weight: var(--fw-bold);
14046
14105
  font-size: var(--fs-sm);
14047
14106
  text-transform: uppercase;
14048
14107
  `;
14049
14108
 
14050
14109
  // src/components/LinkList/LinkList.tsx
14051
- var import_jsx_runtime59 = require("@emotion/react/jsx-runtime");
14110
+ var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
14052
14111
  var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
14053
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { css: LinkListContainer(padding), ...props, children: [
14054
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Heading, { level: 3, css: LinkListTitle, children: title }),
14112
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { css: LinkListContainer(padding), ...props, children: [
14113
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Heading, { level: 3, css: LinkListTitle, children: title }),
14055
14114
  children
14056
14115
  ] });
14057
14116
  };
14058
14117
 
14059
14118
  // src/components/List/ScrollableList.tsx
14060
- var import_react66 = require("@emotion/react");
14119
+ var import_react67 = require("@emotion/react");
14061
14120
 
14062
14121
  // src/components/List/styles/ScrollableList.styles.ts
14063
- var import_react65 = require("@emotion/react");
14064
- var ScrollableListContainer = import_react65.css`
14122
+ var import_react66 = require("@emotion/react");
14123
+ var ScrollableListContainer = import_react66.css`
14065
14124
  position: relative;
14066
14125
  `;
14067
- var ScrollableListInner = import_react65.css`
14126
+ var ScrollableListInner = import_react66.css`
14068
14127
  background: var(--gray-50);
14069
14128
  border-top: 1px solid var(--gray-200);
14070
14129
  border-bottom: 1px solid var(--gray-200);
@@ -14087,19 +14146,19 @@ var ScrollableListInner = import_react65.css`
14087
14146
  `;
14088
14147
 
14089
14148
  // src/components/List/ScrollableList.tsx
14090
- var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
14149
+ var import_jsx_runtime61 = require("@emotion/react/jsx-runtime");
14091
14150
  var ScrollableList = ({ label, children, ...props }) => {
14092
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
14093
- label ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
14151
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
14152
+ label ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
14094
14153
  "span",
14095
14154
  {
14096
- css: import_react66.css`
14155
+ css: import_react67.css`
14097
14156
  ${labelText}
14098
14157
  `,
14099
14158
  children: label
14100
14159
  }
14101
14160
  ) : null,
14102
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { css: [ScrollableListInner, scrollbarStyles], children })
14161
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { css: [ScrollableListInner, scrollbarStyles], children })
14103
14162
  ] });
14104
14163
  };
14105
14164
 
@@ -14107,8 +14166,8 @@ var ScrollableList = ({ label, children, ...props }) => {
14107
14166
  var import_cg13 = require("react-icons/cg");
14108
14167
 
14109
14168
  // src/components/List/styles/ScrollableListItem.styles.ts
14110
- var import_react67 = require("@emotion/react");
14111
- var ScrollableListItemContainer = import_react67.css`
14169
+ var import_react68 = require("@emotion/react");
14170
+ var ScrollableListItemContainer = import_react68.css`
14112
14171
  align-items: center;
14113
14172
  background: var(--white);
14114
14173
  border-radius: var(--rounded-base);
@@ -14117,13 +14176,13 @@ var ScrollableListItemContainer = import_react67.css`
14117
14176
  min-height: 52px;
14118
14177
  transition: border-color var(--duration-fast) var(--timing-ease-out);
14119
14178
  `;
14120
- var ScrollableListItemShadow = import_react67.css`
14179
+ var ScrollableListItemShadow = import_react68.css`
14121
14180
  box-shadow: var(--shadow-base);
14122
14181
  `;
14123
- var ScrollableListItemActive = import_react67.css`
14182
+ var ScrollableListItemActive = import_react68.css`
14124
14183
  border-color: var(--brand-secondary-3);
14125
14184
  `;
14126
- var ScrollableListItemBtn = import_react67.css`
14185
+ var ScrollableListItemBtn = import_react68.css`
14127
14186
  align-items: center;
14128
14187
  border: none;
14129
14188
  background: transparent;
@@ -14138,27 +14197,27 @@ var ScrollableListItemBtn = import_react67.css`
14138
14197
  outline: none;
14139
14198
  }
14140
14199
  `;
14141
- var ScrollableListInputLabel = import_react67.css`
14200
+ var ScrollableListInputLabel = import_react68.css`
14142
14201
  align-items: center;
14143
14202
  cursor: pointer;
14144
14203
  display: flex;
14145
14204
  padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
14146
14205
  flex-grow: 1;
14147
14206
  `;
14148
- var ScrollableListInputText = import_react67.css`
14207
+ var ScrollableListInputText = import_react68.css`
14149
14208
  align-items: center;
14150
14209
  display: flex;
14151
14210
  gap: var(--spacing-sm);
14152
14211
  flex-grow: 1;
14153
14212
  flex-wrap: wrap;
14154
14213
  `;
14155
- var ScrollableListHiddenInput = import_react67.css`
14214
+ var ScrollableListHiddenInput = import_react68.css`
14156
14215
  position: absolute;
14157
14216
  height: 0;
14158
14217
  width: 0;
14159
14218
  opacity: 0;
14160
14219
  `;
14161
- var ScrollableListIcon = import_react67.css`
14220
+ var ScrollableListIcon = import_react68.css`
14162
14221
  border-radius: var(--rounded-full);
14163
14222
  background: var(--brand-secondary-3);
14164
14223
  color: var(--white);
@@ -14166,12 +14225,12 @@ var ScrollableListIcon = import_react67.css`
14166
14225
  min-width: 24px;
14167
14226
  opacity: 0;
14168
14227
  `;
14169
- var ScrollableListIconVisible = import_react67.css`
14228
+ var ScrollableListIconVisible = import_react68.css`
14170
14229
  animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
14171
14230
  `;
14172
14231
 
14173
14232
  // src/components/List/ScrollableListInputItem.tsx
14174
- var import_jsx_runtime61 = require("@emotion/react/jsx-runtime");
14233
+ var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
14175
14234
  var ScrollableListInputItem = ({
14176
14235
  label,
14177
14236
  icon,
@@ -14181,7 +14240,7 @@ var ScrollableListInputItem = ({
14181
14240
  labelTestId,
14182
14241
  ...props
14183
14242
  }) => {
14184
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
14243
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
14185
14244
  "div",
14186
14245
  {
14187
14246
  css: [
@@ -14190,13 +14249,13 @@ var ScrollableListInputItem = ({
14190
14249
  active ? ScrollableListItemActive : void 0
14191
14250
  ],
14192
14251
  ...props,
14193
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
14194
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { css: ScrollableListInputText, children: [
14252
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
14253
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("span", { css: ScrollableListInputText, children: [
14195
14254
  icon,
14196
14255
  label
14197
14256
  ] }),
14198
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { css: ScrollableListHiddenInput, children }),
14199
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
14257
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { css: ScrollableListHiddenInput, children }),
14258
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
14200
14259
  Icon,
14201
14260
  {
14202
14261
  icon: import_cg13.CgCheck,
@@ -14214,14 +14273,14 @@ var ScrollableListInputItem = ({
14214
14273
 
14215
14274
  // src/components/List/ScrollableListItem.tsx
14216
14275
  var import_cg14 = require("react-icons/cg");
14217
- var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
14276
+ var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
14218
14277
  var ScrollableListItem = ({
14219
14278
  buttonText,
14220
14279
  active,
14221
14280
  disableShadow,
14222
14281
  ...props
14223
14282
  }) => {
14224
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
14283
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
14225
14284
  "div",
14226
14285
  {
14227
14286
  css: [
@@ -14229,9 +14288,9 @@ var ScrollableListItem = ({
14229
14288
  disableShadow ? void 0 : ScrollableListItemShadow,
14230
14289
  active ? ScrollableListItemActive : void 0
14231
14290
  ],
14232
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
14233
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: buttonText }),
14234
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
14291
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
14292
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: buttonText }),
14293
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
14235
14294
  Icon,
14236
14295
  {
14237
14296
  icon: import_cg14.CgCheck,
@@ -14246,8 +14305,8 @@ var ScrollableListItem = ({
14246
14305
  };
14247
14306
 
14248
14307
  // src/components/LoadingIndicator/LoadingIndicator.styles.ts
14249
- var import_react68 = require("@emotion/react");
14250
- var bounceFade = import_react68.keyframes`
14308
+ var import_react69 = require("@emotion/react");
14309
+ var bounceFade = import_react69.keyframes`
14251
14310
  0%, 100% {
14252
14311
  opacity: 1.0;
14253
14312
  transform: translateY(0);
@@ -14264,11 +14323,11 @@ var bounceFade = import_react68.keyframes`
14264
14323
  transform: translateY(-5px);
14265
14324
  }
14266
14325
  `;
14267
- var loader = import_react68.css`
14326
+ var loader = import_react69.css`
14268
14327
  display: inline-flex;
14269
14328
  justify-content: center;
14270
14329
  `;
14271
- var loadingDot = import_react68.css`
14330
+ var loadingDot = import_react69.css`
14272
14331
  background-color: var(--gray-700);
14273
14332
  display: block;
14274
14333
  border-radius: var(--rounded-full);
@@ -14292,21 +14351,21 @@ var loadingDot = import_react68.css`
14292
14351
  `;
14293
14352
 
14294
14353
  // src/components/LoadingIndicator/LoadingIndicator.tsx
14295
- var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
14354
+ var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
14296
14355
  var LoadingIndicator = ({ ...props }) => {
14297
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { role: "alert", css: loader, "data-test-id": "loading-indicator", ...props, children: [
14298
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { css: loadingDot }),
14299
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { css: loadingDot }),
14300
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { css: loadingDot })
14356
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { role: "alert", css: loader, "data-test-id": "loading-indicator", ...props, children: [
14357
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { css: loadingDot }),
14358
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { css: loadingDot }),
14359
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { css: loadingDot })
14301
14360
  ] });
14302
14361
  };
14303
14362
 
14304
14363
  // src/components/LoadingOverlay/LoadingOverlay.tsx
14305
- var import_react70 = require("react");
14364
+ var import_react71 = require("react");
14306
14365
 
14307
14366
  // src/components/LoadingOverlay/LoadingOverlay.styles.ts
14308
- var import_react69 = require("@emotion/react");
14309
- var loadingOverlayContainer = import_react69.css`
14367
+ var import_react70 = require("@emotion/react");
14368
+ var loadingOverlayContainer = import_react70.css`
14310
14369
  position: absolute;
14311
14370
  inset: 0;
14312
14371
  overflow: hidden;
@@ -14314,30 +14373,30 @@ var loadingOverlayContainer = import_react69.css`
14314
14373
  padding: var(--spacing-xl);
14315
14374
  overflow-y: auto;
14316
14375
  `;
14317
- var loadingOverlayVisible = import_react69.css`
14376
+ var loadingOverlayVisible = import_react70.css`
14318
14377
  display: flex;
14319
14378
  `;
14320
- var loadingOverlayHidden = import_react69.css`
14379
+ var loadingOverlayHidden = import_react70.css`
14321
14380
  display: none;
14322
14381
  `;
14323
- var loadingOverlayBackground = (bgColor) => import_react69.css`
14382
+ var loadingOverlayBackground = (bgColor) => import_react70.css`
14324
14383
  background: ${bgColor};
14325
14384
  opacity: 0.92;
14326
14385
  position: absolute;
14327
14386
  inset: 0 0;
14328
14387
  `;
14329
- var loadingOverlayBody = import_react69.css`
14388
+ var loadingOverlayBody = import_react70.css`
14330
14389
  align-items: center;
14331
14390
  display: flex;
14332
14391
  flex-direction: column;
14333
14392
  `;
14334
- var loadingOverlayMessage = import_react69.css`
14393
+ var loadingOverlayMessage = import_react70.css`
14335
14394
  color: var(--gray-600);
14336
14395
  margin: var(--spacing-base) 0 0;
14337
14396
  `;
14338
14397
 
14339
14398
  // src/components/LoadingOverlay/LoadingOverlay.tsx
14340
- var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
14399
+ var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
14341
14400
  var LoadingOverlay = ({
14342
14401
  isActive,
14343
14402
  statusMessage,
@@ -14348,14 +14407,14 @@ var LoadingOverlay = ({
14348
14407
  isPaused = false,
14349
14408
  children
14350
14409
  }) => {
14351
- const lottieRef = (0, import_react70.useRef)(null);
14352
- const onLoopComplete = (0, import_react70.useCallback)(() => {
14410
+ const lottieRef = (0, import_react71.useRef)(null);
14411
+ const onLoopComplete = (0, import_react71.useCallback)(() => {
14353
14412
  var _a, _b, _c;
14354
14413
  if (isPaused && !((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
14355
14414
  (_c = lottieRef.current) == null ? void 0 : _c.stop();
14356
14415
  }
14357
14416
  }, [isPaused]);
14358
- (0, import_react70.useEffect)(() => {
14417
+ (0, import_react71.useEffect)(() => {
14359
14418
  var _a, _b, _c, _d, _e, _f;
14360
14419
  if (!isPaused && ((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
14361
14420
  (_c = lottieRef.current) == null ? void 0 : _c.play();
@@ -14363,7 +14422,7 @@ var LoadingOverlay = ({
14363
14422
  (_f = lottieRef.current) == null ? void 0 : _f.stop();
14364
14423
  }
14365
14424
  }, [isPaused]);
14366
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
14425
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
14367
14426
  "div",
14368
14427
  {
14369
14428
  role: "alert",
@@ -14371,9 +14430,9 @@ var LoadingOverlay = ({
14371
14430
  "aria-hidden": !isActive,
14372
14431
  "aria-busy": isActive && !isPaused,
14373
14432
  children: [
14374
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
14375
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: loadingOverlayBody, children: [
14376
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
14433
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
14434
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { css: loadingOverlayBody, children: [
14435
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14377
14436
  AnimationFile,
14378
14437
  {
14379
14438
  lottieRef,
@@ -14388,15 +14447,15 @@ var LoadingOverlay = ({
14388
14447
  }
14389
14448
  }
14390
14449
  ),
14391
- statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
14392
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
14450
+ statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
14451
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
14393
14452
  ] }) })
14394
14453
  ]
14395
14454
  }
14396
14455
  );
14397
14456
  };
14398
14457
  var LoadingIcon = ({ height, width, ...props }) => {
14399
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
14458
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14400
14459
  "svg",
14401
14460
  {
14402
14461
  "data-testid": "svg",
@@ -14407,9 +14466,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
14407
14466
  stroke: "currentColor",
14408
14467
  ...props,
14409
14468
  "data-test-id": "loading-icon",
14410
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
14411
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
14412
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
14469
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
14470
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
14471
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14413
14472
  "animateTransform",
14414
14473
  {
14415
14474
  attributeName: "transform",
@@ -14426,12 +14485,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
14426
14485
  };
14427
14486
 
14428
14487
  // src/components/Tiles/CreateTeamIntegrationTile.tsx
14429
- var import_react72 = require("@emotion/react");
14488
+ var import_react73 = require("@emotion/react");
14430
14489
  var import_cg15 = require("react-icons/cg");
14431
14490
 
14432
14491
  // src/components/Tiles/styles/IntegrationTile.styles.ts
14433
- var import_react71 = require("@emotion/react");
14434
- var IntegrationTileContainer = import_react71.css`
14492
+ var import_react72 = require("@emotion/react");
14493
+ var IntegrationTileContainer = import_react72.css`
14435
14494
  align-items: center;
14436
14495
  box-sizing: border-box;
14437
14496
  border-radius: var(--rounded-base);
@@ -14462,22 +14521,22 @@ var IntegrationTileContainer = import_react71.css`
14462
14521
  }
14463
14522
  }
14464
14523
  `;
14465
- var IntegrationTileBtnDashedBorder = import_react71.css`
14524
+ var IntegrationTileBtnDashedBorder = import_react72.css`
14466
14525
  border: 1px dashed var(--brand-secondary-1);
14467
14526
  `;
14468
- var IntegrationTileTitle = import_react71.css`
14527
+ var IntegrationTileTitle = import_react72.css`
14469
14528
  display: block;
14470
14529
  font-weight: var(--fw-bold);
14471
14530
  margin: 0 0 var(--spacing-base);
14472
14531
  max-width: 13rem;
14473
14532
  `;
14474
- var IntegrationTitleLogo = import_react71.css`
14533
+ var IntegrationTitleLogo = import_react72.css`
14475
14534
  display: block;
14476
14535
  max-width: 10rem;
14477
14536
  max-height: 4rem;
14478
14537
  margin: 0 auto;
14479
14538
  `;
14480
- var IntegrationTileName = import_react71.css`
14539
+ var IntegrationTileName = import_react72.css`
14481
14540
  color: var(--gray-500);
14482
14541
  display: -webkit-box;
14483
14542
  -webkit-line-clamp: 1;
@@ -14490,7 +14549,7 @@ var IntegrationTileName = import_react71.css`
14490
14549
  position: absolute;
14491
14550
  bottom: calc(var(--spacing-base) * 3.8);
14492
14551
  `;
14493
- var IntegrationAddedText = import_react71.css`
14552
+ var IntegrationAddedText = import_react72.css`
14494
14553
  align-items: center;
14495
14554
  background: var(--brand-secondary-3);
14496
14555
  border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
@@ -14505,7 +14564,7 @@ var IntegrationAddedText = import_react71.css`
14505
14564
  top: 0;
14506
14565
  right: 0;
14507
14566
  `;
14508
- var IntegrationCustomBadgeText = (theme) => import_react71.css`
14567
+ var IntegrationCustomBadgeText = (theme) => import_react72.css`
14509
14568
  align-items: center;
14510
14569
  border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
14511
14570
  background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
@@ -14519,26 +14578,26 @@ var IntegrationCustomBadgeText = (theme) => import_react71.css`
14519
14578
  top: 0;
14520
14579
  left: 0;
14521
14580
  `;
14522
- var IntegrationAuthorBadgeIcon = import_react71.css`
14581
+ var IntegrationAuthorBadgeIcon = import_react72.css`
14523
14582
  position: absolute;
14524
14583
  bottom: var(--spacing-sm);
14525
14584
  right: var(--spacing-xs);
14526
14585
  max-height: 1rem;
14527
14586
  `;
14528
- var IntegrationTitleFakeButton = import_react71.css`
14587
+ var IntegrationTitleFakeButton = import_react72.css`
14529
14588
  font-size: var(--fs-xs);
14530
14589
  gap: var(--spacing-sm);
14531
14590
  padding: var(--spacing-sm) var(--spacing-base);
14532
14591
  text-transform: uppercase;
14533
14592
  `;
14534
- var IntegrationTileFloatingButton = import_react71.css`
14593
+ var IntegrationTileFloatingButton = import_react72.css`
14535
14594
  position: absolute;
14536
14595
  bottom: var(--spacing-base);
14537
14596
  gap: var(--spacing-sm);
14538
14597
  font-size: var(--fs-xs);
14539
14598
  overflow: hidden;
14540
14599
  `;
14541
- var IntegrationTileFloatingButtonMessage = (clicked) => import_react71.css`
14600
+ var IntegrationTileFloatingButtonMessage = (clicked) => import_react72.css`
14542
14601
  strong,
14543
14602
  span:first-of-type {
14544
14603
  transition: opacity var(--duration-fast) var(--timing-ease-out);
@@ -14559,7 +14618,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => import_react71.css`
14559
14618
  `;
14560
14619
 
14561
14620
  // src/components/Tiles/CreateTeamIntegrationTile.tsx
14562
- var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
14621
+ var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
14563
14622
  var CreateTeamIntegrationTile = ({
14564
14623
  title = "Create a custom integration for your team",
14565
14624
  buttonText = "Add Integration",
@@ -14567,9 +14626,9 @@ var CreateTeamIntegrationTile = ({
14567
14626
  asDeepLink = false,
14568
14627
  ...props
14569
14628
  }) => {
14570
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
14571
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { css: IntegrationTileTitle, title, children: title }),
14572
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
14629
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
14630
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { css: IntegrationTileTitle, title, children: title }),
14631
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
14573
14632
  Button,
14574
14633
  {
14575
14634
  buttonType: "tertiary",
@@ -14579,23 +14638,23 @@ var CreateTeamIntegrationTile = ({
14579
14638
  css: IntegrationTitleFakeButton,
14580
14639
  children: [
14581
14640
  buttonText,
14582
- asDeepLink ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14641
+ asDeepLink ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14583
14642
  Icon,
14584
14643
  {
14585
14644
  icon: import_cg15.CgChevronRight,
14586
14645
  iconColor: "currentColor",
14587
14646
  size: 20,
14588
- css: import_react72.css`
14647
+ css: import_react73.css`
14589
14648
  order: 1;
14590
14649
  `
14591
14650
  }
14592
- ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14651
+ ) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14593
14652
  Icon,
14594
14653
  {
14595
14654
  icon: import_cg15.CgAdd,
14596
14655
  iconColor: "currentColor",
14597
14656
  size: 16,
14598
- css: import_react72.css`
14657
+ css: import_react73.css`
14599
14658
  order: -1;
14600
14659
  `
14601
14660
  }
@@ -14608,31 +14667,31 @@ var CreateTeamIntegrationTile = ({
14608
14667
 
14609
14668
  // src/components/Tiles/IntegrationBadges.tsx
14610
14669
  var import_cg16 = require("react-icons/cg");
14611
- var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
14670
+ var import_jsx_runtime67 = require("@emotion/react/jsx-runtime");
14612
14671
  var IntegrationedAddedBadge = ({ text = "Added" }) => {
14613
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
14614
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: import_cg16.CgCheck, iconColor: "currentColor" }),
14672
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
14673
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { icon: import_cg16.CgCheck, iconColor: "currentColor" }),
14615
14674
  text
14616
14675
  ] });
14617
14676
  };
14618
14677
  var IntegrationCustomBadge = ({ text = "Custom" }) => {
14619
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
14678
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
14620
14679
  };
14621
14680
  var IntegrationPremiumBadge = ({ text = "Premium" }) => {
14622
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
14623
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: import_cg16.CgLock, iconColor: "currentColor", size: 12 }),
14681
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
14682
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { icon: import_cg16.CgLock, iconColor: "currentColor", size: 12 }),
14624
14683
  text
14625
14684
  ] });
14626
14685
  };
14627
14686
  var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
14628
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
14629
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: import_cg16.CgSandClock, iconColor: "currentColor", size: 12 }),
14687
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
14688
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { icon: import_cg16.CgSandClock, iconColor: "currentColor", size: 12 }),
14630
14689
  text
14631
14690
  ] });
14632
14691
  };
14633
14692
 
14634
14693
  // src/components/Tiles/ResolveIcon.tsx
14635
- var import_jsx_runtime67 = require("@emotion/react/jsx-runtime");
14694
+ var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
14636
14695
  var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
14637
14696
  const CompIcon = icon && typeof icon !== "string" ? icon : null;
14638
14697
  const mapClassName = {
@@ -14640,13 +14699,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
14640
14699
  logo: IntegrationTitleLogo
14641
14700
  };
14642
14701
  if (icon) {
14643
- return CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
14702
+ return CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
14644
14703
  }
14645
14704
  return null;
14646
14705
  };
14647
14706
 
14648
14707
  // src/components/Tiles/EditTeamIntegrationTile.tsx
14649
- var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
14708
+ var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
14650
14709
  var EditTeamIntegrationTile = ({
14651
14710
  id,
14652
14711
  icon,
@@ -14655,17 +14714,17 @@ var EditTeamIntegrationTile = ({
14655
14714
  isPublic,
14656
14715
  canEdit = false
14657
14716
  }) => {
14658
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
14717
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
14659
14718
  "div",
14660
14719
  {
14661
14720
  css: IntegrationTileContainer,
14662
14721
  "data-testid": "configure-integration-container",
14663
14722
  "integration-id": `${id.toLocaleLowerCase()}`,
14664
14723
  children: [
14665
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
14666
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
14667
- !isPublic ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(IntegrationCustomBadge, {}) : null,
14668
- canEdit ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14724
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
14725
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
14726
+ !isPublic ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(IntegrationCustomBadge, {}) : null,
14727
+ canEdit ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
14669
14728
  Button,
14670
14729
  {
14671
14730
  buttonType: "unimportant",
@@ -14683,10 +14742,10 @@ var EditTeamIntegrationTile = ({
14683
14742
  };
14684
14743
 
14685
14744
  // src/components/Tiles/IntegrationComingSoon.tsx
14686
- var import_react73 = require("@emotion/react");
14687
- var import_react74 = require("react");
14745
+ var import_react74 = require("@emotion/react");
14746
+ var import_react75 = require("react");
14688
14747
  var import_cg17 = require("react-icons/cg");
14689
- var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
14748
+ var import_jsx_runtime70 = require("@emotion/react/jsx-runtime");
14690
14749
  var IntegrationComingSoon = ({
14691
14750
  name,
14692
14751
  icon,
@@ -14695,12 +14754,12 @@ var IntegrationComingSoon = ({
14695
14754
  timing = 1e3,
14696
14755
  ...props
14697
14756
  }) => {
14698
- const [upVote, setUpVote] = (0, import_react74.useState)(false);
14757
+ const [upVote, setUpVote] = (0, import_react75.useState)(false);
14699
14758
  const handleUpVoteInteraction = () => {
14700
14759
  setUpVote((prev) => !prev);
14701
14760
  onUpVoteClick();
14702
14761
  };
14703
- (0, import_react74.useEffect)(() => {
14762
+ (0, import_react75.useEffect)(() => {
14704
14763
  if (upVote) {
14705
14764
  const timer = setTimeout(() => setUpVote(false), timing);
14706
14765
  return () => {
@@ -14708,17 +14767,17 @@ var IntegrationComingSoon = ({
14708
14767
  };
14709
14768
  }
14710
14769
  }, [upVote, setUpVote, timing]);
14711
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
14770
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
14712
14771
  "div",
14713
14772
  {
14714
14773
  css: IntegrationTileContainer,
14715
14774
  "data-testid": `coming-soon-${id.toLowerCase()}-integration`,
14716
14775
  ...props,
14717
14776
  children: [
14718
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(IntegrationComingSoonBadge, {}),
14719
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ResolveIcon, { icon, name }),
14720
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
14721
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
14777
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IntegrationComingSoonBadge, {}),
14778
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ResolveIcon, { icon, name }),
14779
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
14780
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
14722
14781
  Button,
14723
14782
  {
14724
14783
  buttonType: "unimportant",
@@ -14728,19 +14787,19 @@ var IntegrationComingSoon = ({
14728
14787
  role: "link",
14729
14788
  css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
14730
14789
  children: [
14731
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("strong", { children: "+1" }),
14732
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
14790
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("strong", { children: "+1" }),
14791
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
14733
14792
  "span",
14734
14793
  {
14735
- css: import_react73.css`
14794
+ css: import_react74.css`
14736
14795
  text-transform: uppercase;
14737
14796
  color: var(--gray-500);
14738
14797
  `,
14739
14798
  children: "(I want this)"
14740
14799
  }
14741
14800
  ),
14742
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { "aria-hidden": !upVote, children: [
14743
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: import_cg17.CgHeart, iconColor: "currentColor", size: 18 }),
14801
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("span", { "aria-hidden": !upVote, children: [
14802
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, { icon: import_cg17.CgHeart, iconColor: "currentColor", size: 18 }),
14744
14803
  "Thanks!"
14745
14804
  ] })
14746
14805
  ]
@@ -14752,8 +14811,8 @@ var IntegrationComingSoon = ({
14752
14811
  };
14753
14812
 
14754
14813
  // src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
14755
- var import_react75 = require("@emotion/react");
14756
- var IntegrationLoadingTileContainer = import_react75.css`
14814
+ var import_react76 = require("@emotion/react");
14815
+ var IntegrationLoadingTileContainer = import_react76.css`
14757
14816
  align-items: center;
14758
14817
  box-sizing: border-box;
14759
14818
  border-radius: var(--rounded-base);
@@ -14780,39 +14839,39 @@ var IntegrationLoadingTileContainer = import_react75.css`
14780
14839
  }
14781
14840
  }
14782
14841
  `;
14783
- var IntegrationLoadingTileImg = import_react75.css`
14842
+ var IntegrationLoadingTileImg = import_react76.css`
14784
14843
  width: 10rem;
14785
14844
  height: 4rem;
14786
14845
  margin: 0 auto;
14787
14846
  `;
14788
- var IntegrationLoadingTileText = import_react75.css`
14847
+ var IntegrationLoadingTileText = import_react76.css`
14789
14848
  width: 5rem;
14790
14849
  height: var(--spacing-sm);
14791
14850
  margin: var(--spacing-sm) 0;
14792
14851
  `;
14793
- var IntegrationLoadingFrame = import_react75.css`
14852
+ var IntegrationLoadingFrame = import_react76.css`
14794
14853
  animation: ${skeletonLoading} 1s linear infinite alternate;
14795
14854
  border-radius: var(--rounded-base);
14796
14855
  `;
14797
14856
 
14798
14857
  // src/components/Tiles/IntegrationLoadingTile.tsx
14799
- var import_jsx_runtime70 = require("@emotion/react/jsx-runtime");
14858
+ var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
14800
14859
  var IntegrationLoadingTile = ({ count = 1 }) => {
14801
14860
  const componentCount = Array.from(Array(count).keys());
14802
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: componentCount.map((i) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { css: IntegrationLoadingTileContainer, children: [
14803
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
14804
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
14861
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: componentCount.map((i) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { css: IntegrationLoadingTileContainer, children: [
14862
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
14863
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
14805
14864
  ] }, i)) });
14806
14865
  };
14807
14866
 
14808
14867
  // src/components/Tiles/styles/IntegrationModalIcon.styles.ts
14809
- var import_react76 = require("@emotion/react");
14810
- var IntegrationModalIconContainer = import_react76.css`
14868
+ var import_react77 = require("@emotion/react");
14869
+ var IntegrationModalIconContainer = import_react77.css`
14811
14870
  position: relative;
14812
14871
  width: 50px;
14813
14872
  margin-bottom: var(--spacing-base);
14814
14873
  `;
14815
- var IntegrationModalImage = import_react76.css`
14874
+ var IntegrationModalImage = import_react77.css`
14816
14875
  position: absolute;
14817
14876
  inset: 0;
14818
14877
  margin: auto;
@@ -14821,7 +14880,7 @@ var IntegrationModalImage = import_react76.css`
14821
14880
  `;
14822
14881
 
14823
14882
  // src/components/Tiles/IntegrationModalIcon.tsx
14824
- var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
14883
+ var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
14825
14884
  var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
14826
14885
  const CompIcon = icon && typeof icon !== "string" ? icon : null;
14827
14886
  let iconSrc = void 0;
@@ -14837,9 +14896,9 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
14837
14896
  }
14838
14897
  }
14839
14898
  }
14840
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { css: IntegrationModalIconContainer, children: [
14841
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
14842
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
14899
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { css: IntegrationModalIconContainer, children: [
14900
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
14901
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
14843
14902
  "path",
14844
14903
  {
14845
14904
  d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
@@ -14848,12 +14907,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
14848
14907
  strokeWidth: "2"
14849
14908
  }
14850
14909
  ),
14851
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
14852
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { stopColor: "#1768B2" }),
14853
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: "1", stopColor: "#B3EFE4" })
14910
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
14911
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("stop", { stopColor: "#1768B2" }),
14912
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("stop", { offset: "1", stopColor: "#B3EFE4" })
14854
14913
  ] }) })
14855
14914
  ] }),
14856
- CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
14915
+ CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
14857
14916
  "img",
14858
14917
  {
14859
14918
  src: iconSrc,
@@ -14867,7 +14926,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
14867
14926
  };
14868
14927
 
14869
14928
  // src/components/Tiles/IntegrationTile.tsx
14870
- var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
14929
+ var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
14871
14930
  var IntegrationTile = ({
14872
14931
  id,
14873
14932
  icon,
@@ -14879,7 +14938,7 @@ var IntegrationTile = ({
14879
14938
  authorIcon,
14880
14939
  ...btnProps
14881
14940
  }) => {
14882
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
14941
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
14883
14942
  "button",
14884
14943
  {
14885
14944
  type: "button",
@@ -14889,20 +14948,20 @@ var IntegrationTile = ({
14889
14948
  "aria-label": name,
14890
14949
  ...btnProps,
14891
14950
  children: [
14892
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ResolveIcon, { icon, name }),
14893
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
14894
- isInstalled ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IntegrationedAddedBadge, {}) : null,
14895
- requiedEntitlement && isPublic ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IntegrationPremiumBadge, {}) : null,
14896
- !isPublic ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IntegrationCustomBadge, {}) : null,
14897
- authorIcon ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ResolveIcon, { icon: authorIcon, name }) : null
14951
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ResolveIcon, { icon, name }),
14952
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
14953
+ isInstalled ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IntegrationedAddedBadge, {}) : null,
14954
+ requiedEntitlement && isPublic ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IntegrationPremiumBadge, {}) : null,
14955
+ !isPublic ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IntegrationCustomBadge, {}) : null,
14956
+ authorIcon ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ResolveIcon, { icon: authorIcon, name }) : null
14898
14957
  ]
14899
14958
  }
14900
14959
  );
14901
14960
  };
14902
14961
 
14903
14962
  // src/components/Tiles/styles/Tile.styles.ts
14904
- var import_react77 = require("@emotion/react");
14905
- var Tile = import_react77.css`
14963
+ var import_react78 = require("@emotion/react");
14964
+ var Tile = import_react78.css`
14906
14965
  background: var(--white);
14907
14966
  border: none;
14908
14967
  cursor: pointer;
@@ -14922,25 +14981,25 @@ var Tile = import_react77.css`
14922
14981
  `;
14923
14982
 
14924
14983
  // src/components/Tiles/Tile.tsx
14925
- var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
14984
+ var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
14926
14985
  var Tile2 = ({ children, ...props }) => {
14927
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("button", { type: "button", css: Tile, ...props, children });
14986
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("button", { type: "button", css: Tile, ...props, children });
14928
14987
  };
14929
14988
 
14930
14989
  // src/components/Tiles/styles/TileContainer.styles.ts
14931
- var import_react78 = require("@emotion/react");
14932
- var TileContainerWrapper = (theme, padding) => import_react78.css`
14990
+ var import_react79 = require("@emotion/react");
14991
+ var TileContainerWrapper = (theme, padding) => import_react79.css`
14933
14992
  background: ${theme};
14934
14993
  padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
14935
14994
  `;
14936
- var TileContainerInner = (gap, templateColumns) => import_react78.css`
14995
+ var TileContainerInner = (gap, templateColumns) => import_react79.css`
14937
14996
  display: grid;
14938
14997
  grid-template-columns: ${templateColumns};
14939
14998
  gap: var(--spacing-${gap});
14940
14999
  `;
14941
15000
 
14942
15001
  // src/components/Tiles/TileContainer.tsx
14943
- var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
15002
+ var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
14944
15003
  var TileContainer = ({
14945
15004
  bgColor = "var(--brand-secondary-2)",
14946
15005
  containerPadding = "base",
@@ -14949,25 +15008,25 @@ var TileContainer = ({
14949
15008
  children,
14950
15009
  ...props
14951
15010
  }) => {
14952
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
15011
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
14953
15012
  };
14954
15013
 
14955
15014
  // src/components/Tiles/styles/TileText.styles.ts
14956
- var import_react79 = require("@emotion/react");
14957
- var TileHeading = import_react79.css`
15015
+ var import_react80 = require("@emotion/react");
15016
+ var TileHeading = import_react80.css`
14958
15017
  font-size: var(--fs-base);
14959
15018
  `;
14960
- var TileText = import_react79.css`
15019
+ var TileText = import_react80.css`
14961
15020
  color: var(--gray-500);
14962
15021
  font-size: var(--fs-sm);
14963
15022
  line-height: 1.2;
14964
15023
  `;
14965
15024
 
14966
15025
  // src/components/Tiles/TileText.tsx
14967
- var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
15026
+ var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
14968
15027
  var TileText2 = ({ as = "heading", children, ...props }) => {
14969
15028
  const isHeading = as === "heading";
14970
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
15029
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
14971
15030
  "span",
14972
15031
  {
14973
15032
  role: isHeading ? "heading" : void 0,
@@ -14979,39 +15038,39 @@ var TileText2 = ({ as = "heading", children, ...props }) => {
14979
15038
  };
14980
15039
 
14981
15040
  // src/components/Modal/IntegrationModalHeader.styles.ts
14982
- var import_react80 = require("@emotion/react");
14983
- var IntegrationModalHeaderSVGBackground = import_react80.css`
15041
+ var import_react81 = require("@emotion/react");
15042
+ var IntegrationModalHeaderSVGBackground = import_react81.css`
14984
15043
  position: absolute;
14985
15044
  top: 0;
14986
15045
  left: 0;
14987
15046
  `;
14988
- var IntegrationModalHeaderGroup = import_react80.css`
15047
+ var IntegrationModalHeaderGroup = import_react81.css`
14989
15048
  align-items: center;
14990
15049
  display: flex;
14991
15050
  gap: var(--spacing-sm);
14992
15051
  margin: 0 0 var(--spacing-md);
14993
15052
  position: relative;
14994
15053
  `;
14995
- var IntegrationModalHeaderTitleGroup = import_react80.css`
15054
+ var IntegrationModalHeaderTitleGroup = import_react81.css`
14996
15055
  align-items: center;
14997
15056
  display: flex;
14998
15057
  gap: var(--spacing-base);
14999
15058
  `;
15000
- var IntegrationModalHeaderTitle = import_react80.css`
15059
+ var IntegrationModalHeaderTitle = import_react81.css`
15001
15060
  margin-top: 0;
15002
15061
  `;
15003
- var IntegrationModalHeaderMenuPlacement = import_react80.css`
15062
+ var IntegrationModalHeaderMenuPlacement = import_react81.css`
15004
15063
  margin-bottom: var(--spacing-base);
15005
15064
  `;
15006
- var IntegrationModalHeaderContentWrapper = import_react80.css`
15065
+ var IntegrationModalHeaderContentWrapper = import_react81.css`
15007
15066
  position: relative;
15008
15067
  z-index: var(--z-10);
15009
15068
  `;
15010
15069
 
15011
15070
  // src/components/Modal/IntegrationModalHeader.tsx
15012
- var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
15071
+ var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
15013
15072
  var HexModalBackground = ({ ...props }) => {
15014
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
15073
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
15015
15074
  "svg",
15016
15075
  {
15017
15076
  width: "236",
@@ -15021,7 +15080,7 @@ var HexModalBackground = ({ ...props }) => {
15021
15080
  xmlns: "http://www.w3.org/2000/svg",
15022
15081
  ...props,
15023
15082
  children: [
15024
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
15083
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
15025
15084
  "path",
15026
15085
  {
15027
15086
  fillRule: "evenodd",
@@ -15030,7 +15089,7 @@ var HexModalBackground = ({ ...props }) => {
15030
15089
  fill: "url(#paint0_linear_196_2737)"
15031
15090
  }
15032
15091
  ),
15033
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
15092
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
15034
15093
  "linearGradient",
15035
15094
  {
15036
15095
  id: "paint0_linear_196_2737",
@@ -15040,8 +15099,8 @@ var HexModalBackground = ({ ...props }) => {
15040
15099
  y2: "-95.2742",
15041
15100
  gradientUnits: "userSpaceOnUse",
15042
15101
  children: [
15043
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("stop", { stopColor: "#81DCDE" }),
15044
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
15102
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("stop", { stopColor: "#81DCDE" }),
15103
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
15045
15104
  ]
15046
15105
  }
15047
15106
  ) })
@@ -15050,27 +15109,27 @@ var HexModalBackground = ({ ...props }) => {
15050
15109
  );
15051
15110
  };
15052
15111
  var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
15053
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
15054
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
15055
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
15056
- icon ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
15057
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
15058
- menu2 ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
15112
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
15113
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
15114
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
15115
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
15116
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
15117
+ menu2 ? /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
15059
15118
  menu2,
15060
15119
  " "
15061
15120
  ] }) : null
15062
15121
  ] }) }),
15063
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
15122
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
15064
15123
  ] });
15065
15124
  };
15066
15125
 
15067
15126
  // src/components/Tooltip/Tooltip.tsx
15068
- var import_react82 = __toESM(require("react"));
15127
+ var import_react83 = __toESM(require("react"));
15069
15128
  var import_Tooltip = require("reakit/Tooltip");
15070
15129
 
15071
15130
  // src/components/Tooltip/Tooltip.styles.ts
15072
- var import_react81 = require("@emotion/react");
15073
- var TooltipContainer = import_react81.css`
15131
+ var import_react82 = require("@emotion/react");
15132
+ var TooltipContainer = import_react82.css`
15074
15133
  z-index: var(--z-tooltip);
15075
15134
  border: 2px solid var(--gray-300);
15076
15135
  border-radius: var(--rounded-base);
@@ -15079,28 +15138,28 @@ var TooltipContainer = import_react81.css`
15079
15138
  font-size: var(--fs-xs);
15080
15139
  background: var(--white);
15081
15140
  `;
15082
- var TooltipArrowStyles = import_react81.css`
15141
+ var TooltipArrowStyles = import_react82.css`
15083
15142
  svg {
15084
15143
  fill: var(--gray-300);
15085
15144
  }
15086
15145
  `;
15087
15146
 
15088
15147
  // src/components/Tooltip/Tooltip.tsx
15089
- var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
15148
+ var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
15090
15149
  function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
15091
15150
  const tooltip = (0, import_Tooltip.useTooltipState)({ placement });
15092
- return !title ? children : /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
15093
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react82.default.cloneElement(children, referenceProps) }),
15094
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_Tooltip.Tooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
15095
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
15151
+ return !title ? children : /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
15152
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react83.default.cloneElement(children, referenceProps) }),
15153
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_Tooltip.Tooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
15154
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
15096
15155
  title
15097
15156
  ] })
15098
15157
  ] });
15099
15158
  }
15100
15159
 
15101
15160
  // src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
15102
- var import_react83 = require("@emotion/react");
15103
- var inputIconBtn = import_react83.css`
15161
+ var import_react84 = require("@emotion/react");
15162
+ var inputIconBtn = import_react84.css`
15104
15163
  align-items: center;
15105
15164
  border: none;
15106
15165
  border-radius: var(--rounded-base);
@@ -15124,7 +15183,7 @@ var inputIconBtn = import_react83.css`
15124
15183
  `;
15125
15184
 
15126
15185
  // src/components/ParameterInputs/ConnectToDataElementButton.tsx
15127
- var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
15186
+ var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
15128
15187
  var ConnectToDataElementButton = ({
15129
15188
  icon,
15130
15189
  iconColor,
@@ -15134,7 +15193,7 @@ var ConnectToDataElementButton = ({
15134
15193
  ...props
15135
15194
  }) => {
15136
15195
  const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
15137
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
15196
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
15138
15197
  "button",
15139
15198
  {
15140
15199
  css: inputIconBtn,
@@ -15143,7 +15202,7 @@ var ConnectToDataElementButton = ({
15143
15202
  "aria-disabled": isLocked,
15144
15203
  ...props,
15145
15204
  children: [
15146
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
15205
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
15147
15206
  Icon,
15148
15207
  {
15149
15208
  icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
@@ -15158,8 +15217,8 @@ var ConnectToDataElementButton = ({
15158
15217
  };
15159
15218
 
15160
15219
  // src/components/ParameterInputs/hooks/ParameterShellContext.tsx
15161
- var import_react84 = require("react");
15162
- var ParameterShellContext = (0, import_react84.createContext)({
15220
+ var import_react85 = require("react");
15221
+ var ParameterShellContext = (0, import_react85.createContext)({
15163
15222
  id: "",
15164
15223
  label: "",
15165
15224
  hiddenLabel: void 0,
@@ -15168,7 +15227,7 @@ var ParameterShellContext = (0, import_react84.createContext)({
15168
15227
  }
15169
15228
  });
15170
15229
  var useParameterShell = () => {
15171
- const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react84.useContext)(ParameterShellContext);
15230
+ const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react85.useContext)(ParameterShellContext);
15172
15231
  return {
15173
15232
  id,
15174
15233
  label,
@@ -15179,8 +15238,8 @@ var useParameterShell = () => {
15179
15238
  };
15180
15239
 
15181
15240
  // src/components/ParameterInputs/styles/ParameterInput.styles.ts
15182
- var import_react85 = require("@emotion/react");
15183
- var inputContainer2 = import_react85.css`
15241
+ var import_react86 = require("@emotion/react");
15242
+ var inputContainer2 = import_react86.css`
15184
15243
  position: relative;
15185
15244
 
15186
15245
  &:hover,
@@ -15192,14 +15251,14 @@ var inputContainer2 = import_react85.css`
15192
15251
  }
15193
15252
  }
15194
15253
  `;
15195
- var labelText2 = import_react85.css`
15254
+ var labelText2 = import_react86.css`
15196
15255
  align-items: center;
15197
15256
  display: flex;
15198
15257
  gap: var(--spacing-xs);
15199
15258
  font-weight: var(--fw-regular);
15200
15259
  margin: 0 0 var(--spacing-xs);
15201
15260
  `;
15202
- var input2 = import_react85.css`
15261
+ var input2 = import_react86.css`
15203
15262
  display: block;
15204
15263
  appearance: none;
15205
15264
  box-sizing: border-box;
@@ -15243,18 +15302,18 @@ var input2 = import_react85.css`
15243
15302
  color: var(--gray-400);
15244
15303
  }
15245
15304
  `;
15246
- var selectInput = import_react85.css`
15305
+ var selectInput = import_react86.css`
15247
15306
  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");
15248
15307
  background-position: right var(--spacing-sm) center;
15249
15308
  background-repeat: no-repeat;
15250
15309
  background-size: 1rem;
15251
15310
  padding-right: var(--spacing-xl);
15252
15311
  `;
15253
- var inputWrapper = import_react85.css`
15312
+ var inputWrapper = import_react86.css`
15254
15313
  display: flex; // used to correct overflow with chrome textarea
15255
15314
  position: relative;
15256
15315
  `;
15257
- var inputIcon2 = import_react85.css`
15316
+ var inputIcon2 = import_react86.css`
15258
15317
  align-items: center;
15259
15318
  background: var(--white);
15260
15319
  border-radius: var(--rounded-md) 0 0 var(--rounded-md);
@@ -15270,7 +15329,7 @@ var inputIcon2 = import_react85.css`
15270
15329
  width: var(--spacing-lg);
15271
15330
  z-index: var(--z-10);
15272
15331
  `;
15273
- var inputToggleLabel2 = import_react85.css`
15332
+ var inputToggleLabel2 = import_react86.css`
15274
15333
  align-items: center;
15275
15334
  background: var(--white);
15276
15335
  cursor: pointer;
@@ -15281,7 +15340,7 @@ var inputToggleLabel2 = import_react85.css`
15281
15340
  min-height: var(--spacing-md);
15282
15341
  position: relative;
15283
15342
  `;
15284
- var toggleInput2 = import_react85.css`
15343
+ var toggleInput2 = import_react86.css`
15285
15344
  appearance: none;
15286
15345
  border: 1px solid var(--gray-300);
15287
15346
  background: var(--white);
@@ -15320,7 +15379,7 @@ var toggleInput2 = import_react85.css`
15320
15379
  border-color: var(--gray-300);
15321
15380
  }
15322
15381
  `;
15323
- var inlineLabel2 = import_react85.css`
15382
+ var inlineLabel2 = import_react86.css`
15324
15383
  padding-left: var(--spacing-lg);
15325
15384
  font-size: var(--fs-sm);
15326
15385
  font-weight: var(--fw-regular);
@@ -15336,7 +15395,7 @@ var inlineLabel2 = import_react85.css`
15336
15395
  }
15337
15396
  }
15338
15397
  `;
15339
- var inputMenu = import_react85.css`
15398
+ var inputMenu = import_react86.css`
15340
15399
  background: none;
15341
15400
  border: none;
15342
15401
  padding: var(--spacing-2xs);
@@ -15352,14 +15411,14 @@ var inputMenu = import_react85.css`
15352
15411
  background-color: var(--gray-200);
15353
15412
  }
15354
15413
  `;
15355
- var textarea2 = import_react85.css`
15414
+ var textarea2 = import_react86.css`
15356
15415
  resize: vertical;
15357
15416
  min-height: 2rem;
15358
15417
  `;
15359
- var imageWrapper = import_react85.css`
15418
+ var imageWrapper = import_react86.css`
15360
15419
  background: var(--white);
15361
15420
  `;
15362
- var img = import_react85.css`
15421
+ var img = import_react86.css`
15363
15422
  animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
15364
15423
  object-fit: contain;
15365
15424
  max-width: 100%;
@@ -15367,7 +15426,7 @@ var img = import_react85.css`
15367
15426
  opacity: var(--opacity-0);
15368
15427
  margin: var(--spacing-sm) auto 0;
15369
15428
  `;
15370
- var dataConnectButton = import_react85.css`
15429
+ var dataConnectButton = import_react86.css`
15371
15430
  align-items: center;
15372
15431
  appearance: none;
15373
15432
  box-sizing: border-box;
@@ -15402,7 +15461,7 @@ var dataConnectButton = import_react85.css`
15402
15461
  pointer-events: none;
15403
15462
  }
15404
15463
  `;
15405
- var linkParameterBtn = import_react85.css`
15464
+ var linkParameterBtn = import_react86.css`
15406
15465
  border-radius: var(--rounded-base);
15407
15466
  background: var(--white);
15408
15467
  border: none;
@@ -15411,7 +15470,7 @@ var linkParameterBtn = import_react85.css`
15411
15470
  font-size: var(--fs-sm);
15412
15471
  line-height: 1;
15413
15472
  `;
15414
- var linkParameterControls = import_react85.css`
15473
+ var linkParameterControls = import_react86.css`
15415
15474
  position: absolute;
15416
15475
  inset: 0 0 0 auto;
15417
15476
  padding: 0 var(--spacing-base);
@@ -15420,13 +15479,13 @@ var linkParameterControls = import_react85.css`
15420
15479
  justify-content: center;
15421
15480
  gap: var(--spacing-base);
15422
15481
  `;
15423
- var linkParameterInput = (withExternalLinkIcon) => import_react85.css`
15482
+ var linkParameterInput = (withExternalLinkIcon) => import_react86.css`
15424
15483
  padding-right: calc(
15425
15484
  ${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
15426
15485
  var(--spacing-base)
15427
15486
  );
15428
15487
  `;
15429
- var linkParameterIcon = import_react85.css`
15488
+ var linkParameterIcon = import_react86.css`
15430
15489
  align-items: center;
15431
15490
  color: var(--brand-secondary-3);
15432
15491
  display: flex;
@@ -15441,7 +15500,7 @@ var linkParameterIcon = import_react85.css`
15441
15500
  `;
15442
15501
 
15443
15502
  // src/components/ParameterInputs/ParameterDataResource.tsx
15444
- var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
15503
+ var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
15445
15504
  function ParameterDataResource({
15446
15505
  label,
15447
15506
  labelLeadingIcon,
@@ -15451,12 +15510,12 @@ function ParameterDataResource({
15451
15510
  disabled,
15452
15511
  children
15453
15512
  }) {
15454
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
15455
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { css: labelText2, children: [
15513
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
15514
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("span", { css: labelText2, children: [
15456
15515
  labelLeadingIcon ? labelLeadingIcon : null,
15457
15516
  label
15458
15517
  ] }),
15459
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
15518
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
15460
15519
  "button",
15461
15520
  {
15462
15521
  type: "button",
@@ -15465,30 +15524,30 @@ function ParameterDataResource({
15465
15524
  disabled,
15466
15525
  onClick: onConnectDatasource,
15467
15526
  children: [
15468
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
15527
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
15469
15528
  children
15470
15529
  ]
15471
15530
  }
15472
15531
  ),
15473
- caption ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Caption, { children: caption }) : null
15532
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Caption, { children: caption }) : null
15474
15533
  ] });
15475
15534
  }
15476
15535
 
15477
15536
  // src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
15478
- var import_react86 = require("@emotion/react");
15479
- var ParameterDrawerHeaderContainer = import_react86.css`
15537
+ var import_react87 = require("@emotion/react");
15538
+ var ParameterDrawerHeaderContainer = import_react87.css`
15480
15539
  align-items: center;
15481
15540
  display: flex;
15482
15541
  gap: var(--spacing-base);
15483
15542
  justify-content: space-between;
15484
15543
  margin-bottom: var(--spacing-sm);
15485
15544
  `;
15486
- var ParameterDrawerHeaderTitleGroup = import_react86.css`
15545
+ var ParameterDrawerHeaderTitleGroup = import_react87.css`
15487
15546
  align-items: center;
15488
15547
  display: flex;
15489
15548
  gap: var(--spacing-sm);
15490
15549
  `;
15491
- var ParameterDrawerHeaderTitle = import_react86.css`
15550
+ var ParameterDrawerHeaderTitle = import_react87.css`
15492
15551
  text-overflow: ellipsis;
15493
15552
  white-space: nowrap;
15494
15553
  overflow: hidden;
@@ -15496,23 +15555,23 @@ var ParameterDrawerHeaderTitle = import_react86.css`
15496
15555
  `;
15497
15556
 
15498
15557
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
15499
- var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
15558
+ var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
15500
15559
  var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
15501
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
15502
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
15560
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
15561
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
15503
15562
  iconBeforeTitle,
15504
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
15563
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
15505
15564
  ] }),
15506
15565
  children
15507
15566
  ] });
15508
15567
  };
15509
15568
 
15510
15569
  // src/components/ParameterInputs/ParameterGroup.tsx
15511
- var import_react88 = require("react");
15570
+ var import_react89 = require("react");
15512
15571
 
15513
15572
  // src/components/ParameterInputs/styles/ParameterGroup.styles.ts
15514
- var import_react87 = require("@emotion/react");
15515
- var fieldsetStyles = import_react87.css`
15573
+ var import_react88 = require("@emotion/react");
15574
+ var fieldsetStyles = import_react88.css`
15516
15575
  &:disabled,
15517
15576
  [readonly] {
15518
15577
  pointer-events: none;
@@ -15523,7 +15582,7 @@ var fieldsetStyles = import_react87.css`
15523
15582
  }
15524
15583
  }
15525
15584
  `;
15526
- var fieldsetLegend2 = import_react87.css`
15585
+ var fieldsetLegend2 = import_react88.css`
15527
15586
  display: block;
15528
15587
  font-weight: var(--fw-medium);
15529
15588
  margin-bottom: var(--spacing-sm);
@@ -15531,38 +15590,48 @@ var fieldsetLegend2 = import_react87.css`
15531
15590
  `;
15532
15591
 
15533
15592
  // src/components/ParameterInputs/ParameterGroup.tsx
15534
- var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
15535
- var ParameterGroup = (0, import_react88.forwardRef)(
15593
+ var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
15594
+ var ParameterGroup = (0, import_react89.forwardRef)(
15536
15595
  ({ legend, isDisabled, children, ...props }, ref) => {
15537
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
15538
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("legend", { css: fieldsetLegend2, children: legend }),
15596
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
15597
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("legend", { css: fieldsetLegend2, children: legend }),
15539
15598
  children
15540
15599
  ] });
15541
15600
  }
15542
15601
  );
15543
15602
 
15544
15603
  // src/components/ParameterInputs/ParameterImage.tsx
15545
- var import_react92 = require("react");
15604
+ var import_react93 = require("react");
15605
+
15606
+ // src/utils/url.ts
15607
+ var isValidUrl = (url, options = {}) => {
15608
+ try {
15609
+ new URL(url, options.allowRelative ? "https://defaultbaseurl.com" : void 0);
15610
+ return true;
15611
+ } catch (e) {
15612
+ return false;
15613
+ }
15614
+ };
15546
15615
 
15547
15616
  // src/components/ParameterInputs/ParameterShell.tsx
15548
- var import_react91 = require("react");
15617
+ var import_react92 = require("react");
15549
15618
 
15550
15619
  // src/components/ParameterInputs/ParameterLabel.tsx
15551
- var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
15620
+ var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
15552
15621
  var ParameterLabel = ({ id, asSpan, children, ...props }) => {
15553
- return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
15622
+ return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
15554
15623
  };
15555
15624
 
15556
15625
  // src/components/ParameterInputs/ParameterMenuButton.tsx
15557
- var import_react89 = require("react");
15558
- var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
15559
- var ParameterMenuButton = (0, import_react89.forwardRef)(
15626
+ var import_react90 = require("react");
15627
+ var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
15628
+ var ParameterMenuButton = (0, import_react90.forwardRef)(
15560
15629
  ({ label, children }, ref) => {
15561
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
15630
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
15562
15631
  Menu,
15563
15632
  {
15564
15633
  menuLabel: `${label} menu`,
15565
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
15634
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
15566
15635
  "button",
15567
15636
  {
15568
15637
  className: "parameter-menu",
@@ -15570,7 +15639,7 @@ var ParameterMenuButton = (0, import_react89.forwardRef)(
15570
15639
  type: "button",
15571
15640
  "aria-label": `${label} options`,
15572
15641
  ref,
15573
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
15642
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
15574
15643
  }
15575
15644
  ),
15576
15645
  children
@@ -15580,15 +15649,15 @@ var ParameterMenuButton = (0, import_react89.forwardRef)(
15580
15649
  );
15581
15650
 
15582
15651
  // src/components/ParameterInputs/styles/ParameterShell.styles.ts
15583
- var import_react90 = require("@emotion/react");
15584
- var emptyParameterShell = import_react90.css`
15652
+ var import_react91 = require("@emotion/react");
15653
+ var emptyParameterShell = import_react91.css`
15585
15654
  border-radius: var(--rounded-sm);
15586
15655
  background: var(--white);
15587
15656
  flex-grow: 1;
15588
15657
  padding: var(--spacing-xs);
15589
15658
  position: relative;
15590
15659
  `;
15591
- var emptyParameterShellText = import_react90.css`
15660
+ var emptyParameterShellText = import_react91.css`
15592
15661
  background: var(--brand-secondary-6);
15593
15662
  border-radius: var(--rounded-sm);
15594
15663
  padding: var(--spacing-sm);
@@ -15596,7 +15665,7 @@ var emptyParameterShellText = import_react90.css`
15596
15665
  font-size: var(--fs-sm);
15597
15666
  margin: 0;
15598
15667
  `;
15599
- var overrideMarker = import_react90.css`
15668
+ var overrideMarker = import_react91.css`
15600
15669
  border-radius: var(--rounded-sm);
15601
15670
  border: 10px solid var(--gray-300);
15602
15671
  border-left-color: transparent;
@@ -15607,7 +15676,7 @@ var overrideMarker = import_react90.css`
15607
15676
  `;
15608
15677
 
15609
15678
  // src/components/ParameterInputs/ParameterShell.tsx
15610
- var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
15679
+ var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
15611
15680
  var extractParameterProps = (props) => {
15612
15681
  const {
15613
15682
  id,
@@ -15664,21 +15733,21 @@ var ParameterShell = ({
15664
15733
  children,
15665
15734
  ...props
15666
15735
  }) => {
15667
- const [manualErrorMessage, setManualErrorMessage] = (0, import_react91.useState)(void 0);
15736
+ const [manualErrorMessage, setManualErrorMessage] = (0, import_react92.useState)(void 0);
15668
15737
  const setErrorMessage = (message) => setManualErrorMessage(message);
15669
15738
  const errorMessaging = errorMessage || manualErrorMessage;
15670
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { css: inputContainer2, ...props, children: [
15671
- hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(ParameterLabel, { id, css: labelText2, children: [
15739
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { css: inputContainer2, ...props, children: [
15740
+ hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(ParameterLabel, { id, css: labelText2, children: [
15672
15741
  labelLeadingIcon ? labelLeadingIcon : null,
15673
15742
  label
15674
15743
  ] }),
15675
- !title ? null : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(ParameterLabel, { id, asSpan: true, children: [
15744
+ !title ? null : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(ParameterLabel, { id, asSpan: true, children: [
15676
15745
  labelLeadingIcon ? labelLeadingIcon : null,
15677
15746
  title
15678
15747
  ] }),
15679
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { css: inputWrapper, children: [
15680
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
15681
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
15748
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { css: inputWrapper, children: [
15749
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
15750
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
15682
15751
  ParameterShellContext.Provider,
15683
15752
  {
15684
15753
  value: {
@@ -15688,32 +15757,32 @@ var ParameterShell = ({
15688
15757
  errorMessage: errorMessaging,
15689
15758
  handleManuallySetErrorMessage: (message) => setErrorMessage(message)
15690
15759
  },
15691
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(ParameterShellPlaceholder, { children: [
15760
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(ParameterShellPlaceholder, { children: [
15692
15761
  children,
15693
- hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
15762
+ hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
15694
15763
  ] })
15695
15764
  }
15696
15765
  )
15697
15766
  ] }),
15698
- caption ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
15699
- errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
15700
- warningMessage ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(WarningMessage, { message: warningMessage }) : null,
15701
- infoMessage ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(InfoMessage, { message: infoMessage }) : null
15767
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
15768
+ errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
15769
+ warningMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(WarningMessage, { message: warningMessage }) : null,
15770
+ infoMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(InfoMessage, { message: infoMessage }) : null
15702
15771
  ] });
15703
15772
  };
15704
15773
  var ParameterShellPlaceholder = ({ children }) => {
15705
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { css: emptyParameterShell, children });
15774
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: emptyParameterShell, children });
15706
15775
  };
15707
- var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
15776
+ var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
15708
15777
 
15709
15778
  // src/components/ParameterInputs/ParameterImage.tsx
15710
- var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
15711
- var ParameterImage = (0, import_react92.forwardRef)((props, ref) => {
15779
+ var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
15780
+ var ParameterImage = (0, import_react93.forwardRef)((props, ref) => {
15712
15781
  const { shellProps, innerProps } = extractParameterProps(props);
15713
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterImageInner, { ref, ...innerProps }) });
15782
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterImageInner, { ref, ...innerProps }) });
15714
15783
  });
15715
15784
  var BrokenImage = ({ ...props }) => {
15716
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
15785
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
15717
15786
  "svg",
15718
15787
  {
15719
15788
  role: "img",
@@ -15725,11 +15794,11 @@ var BrokenImage = ({ ...props }) => {
15725
15794
  xmlnsXlink: "http://www.w3.org/1999/xlink",
15726
15795
  ...props,
15727
15796
  children: [
15728
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
15729
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
15730
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("defs", { children: [
15731
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
15732
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
15797
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
15798
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
15799
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("defs", { children: [
15800
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
15801
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
15733
15802
  "image",
15734
15803
  {
15735
15804
  id: "image0_761_4353",
@@ -15743,22 +15812,19 @@ var BrokenImage = ({ ...props }) => {
15743
15812
  }
15744
15813
  );
15745
15814
  };
15746
- var ParameterImageInner = (0, import_react92.forwardRef)(
15815
+ var ParameterImageInner = (0, import_react93.forwardRef)(
15747
15816
  ({ ...props }, ref) => {
15748
15817
  const { value } = props;
15749
15818
  const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useParameterShell();
15750
- const [loading, setLoading] = (0, import_react92.useState)(false);
15751
- const deferredValue = (0, import_react92.useDeferredValue)(value);
15819
+ const [loading, setLoading] = (0, import_react93.useState)(false);
15820
+ const deferredValue = (0, import_react93.useDeferredValue)(value);
15752
15821
  const errorText = "The text you provided is not a valid URL";
15753
- const updateImageSrc = (0, import_react92.useCallback)(() => {
15754
- const validUrl = new RegExp(
15755
- /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_.+~#?&/=]*)$/
15756
- );
15822
+ const updateImageSrc = (0, import_react93.useCallback)(() => {
15757
15823
  let message = void 0;
15758
15824
  try {
15759
15825
  if (value !== "") {
15760
15826
  const url = String(value).startsWith("//") ? `${location.protocol}${value}` : String(value);
15761
- if (!validUrl.test(url) || !url.startsWith("https")) {
15827
+ if (!isValidUrl(url) || !url.startsWith("https")) {
15762
15828
  throw Error(errorText);
15763
15829
  }
15764
15830
  }
@@ -15784,11 +15850,11 @@ var ParameterImageInner = (0, import_react92.forwardRef)(
15784
15850
  handleManuallySetErrorMessage(errorText);
15785
15851
  }
15786
15852
  };
15787
- (0, import_react92.useEffect)(() => {
15853
+ (0, import_react93.useEffect)(() => {
15788
15854
  updateImageSrc();
15789
15855
  }, [deferredValue]);
15790
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
15791
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
15856
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
15857
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
15792
15858
  "input",
15793
15859
  {
15794
15860
  css: input2,
@@ -15800,8 +15866,8 @@ var ParameterImageInner = (0, import_react92.forwardRef)(
15800
15866
  ...props
15801
15867
  }
15802
15868
  ),
15803
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { css: imageWrapper, children: [
15804
- deferredValue && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
15869
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { css: imageWrapper, children: [
15870
+ deferredValue && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
15805
15871
  "img",
15806
15872
  {
15807
15873
  src: deferredValue,
@@ -15812,24 +15878,24 @@ var ParameterImageInner = (0, import_react92.forwardRef)(
15812
15878
  loading: "lazy"
15813
15879
  }
15814
15880
  ) : null,
15815
- deferredValue && errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(BrokenImage, { css: img }) : null
15881
+ deferredValue && errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(BrokenImage, { css: img }) : null
15816
15882
  ] }),
15817
- loading ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(LoadingIcon, {}) : null
15883
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(LoadingIcon, {}) : null
15818
15884
  ] });
15819
15885
  }
15820
15886
  );
15821
15887
 
15822
15888
  // src/components/ParameterInputs/ParameterInput.tsx
15823
- var import_react93 = require("react");
15824
- var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
15825
- var ParameterInput = (0, import_react93.forwardRef)((props, ref) => {
15889
+ var import_react94 = require("react");
15890
+ var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
15891
+ var ParameterInput = (0, import_react94.forwardRef)((props, ref) => {
15826
15892
  const { shellProps, innerProps } = extractParameterProps(props);
15827
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterInputInner, { ref, ...innerProps }) });
15893
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ParameterInputInner, { ref, ...innerProps }) });
15828
15894
  });
15829
- var ParameterInputInner = (0, import_react93.forwardRef)(
15895
+ var ParameterInputInner = (0, import_react94.forwardRef)(
15830
15896
  ({ ...props }, ref) => {
15831
15897
  const { id, label, hiddenLabel } = useParameterShell();
15832
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
15898
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
15833
15899
  "input",
15834
15900
  {
15835
15901
  css: input2,
@@ -15845,19 +15911,19 @@ var ParameterInputInner = (0, import_react93.forwardRef)(
15845
15911
  );
15846
15912
 
15847
15913
  // src/components/ParameterInputs/ParameterLink.tsx
15848
- var import_react94 = require("react");
15849
- var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
15850
- var ParameterLink = (0, import_react94.forwardRef)(
15914
+ var import_react95 = require("react");
15915
+ var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
15916
+ var ParameterLink = (0, import_react95.forwardRef)(
15851
15917
  ({ buttonText = "Select link", disabled, onConnectLink, externalLink, ...props }, ref) => {
15852
15918
  const { shellProps, innerProps } = extractParameterProps(props);
15853
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
15919
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
15854
15920
  ParameterShell,
15855
15921
  {
15856
15922
  "data-test-id": "link-parameter-editor",
15857
15923
  ...shellProps,
15858
15924
  label: innerProps.value ? shellProps.label : "",
15859
15925
  title: !innerProps.value ? shellProps.label : void 0,
15860
- children: !innerProps.value ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
15926
+ children: !innerProps.value ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
15861
15927
  ParameterLinkInner,
15862
15928
  {
15863
15929
  onConnectLink,
@@ -15870,11 +15936,11 @@ var ParameterLink = (0, import_react94.forwardRef)(
15870
15936
  );
15871
15937
  }
15872
15938
  );
15873
- var ParameterLinkInner = (0, import_react94.forwardRef)(
15939
+ var ParameterLinkInner = (0, import_react95.forwardRef)(
15874
15940
  ({ externalLink, onConnectLink, disabled, ...props }, ref) => {
15875
15941
  const { id, label, hiddenLabel } = useParameterShell();
15876
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { css: inputWrapper, children: [
15877
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
15942
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { css: inputWrapper, children: [
15943
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
15878
15944
  "input",
15879
15945
  {
15880
15946
  type: "text",
@@ -15886,8 +15952,8 @@ var ParameterLinkInner = (0, import_react94.forwardRef)(
15886
15952
  ...props
15887
15953
  }
15888
15954
  ),
15889
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { css: linkParameterControls, children: [
15890
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
15955
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { css: linkParameterControls, children: [
15956
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
15891
15957
  "button",
15892
15958
  {
15893
15959
  type: "button",
@@ -15898,7 +15964,7 @@ var ParameterLinkInner = (0, import_react94.forwardRef)(
15898
15964
  children: "edit"
15899
15965
  }
15900
15966
  ),
15901
- externalLink ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
15967
+ externalLink ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
15902
15968
  "a",
15903
15969
  {
15904
15970
  href: externalLink,
@@ -15906,7 +15972,7 @@ var ParameterLinkInner = (0, import_react94.forwardRef)(
15906
15972
  title: "Open link in new tab",
15907
15973
  target: "_blank",
15908
15974
  rel: "noopener noreferrer",
15909
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
15975
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
15910
15976
  }
15911
15977
  ) : null
15912
15978
  ] })
@@ -15915,7 +15981,7 @@ var ParameterLinkInner = (0, import_react94.forwardRef)(
15915
15981
  );
15916
15982
 
15917
15983
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
15918
- var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
15984
+ var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
15919
15985
  var ParameterNameAndPublicIdInput = ({
15920
15986
  id,
15921
15987
  onBlur,
@@ -15941,8 +16007,8 @@ var ParameterNameAndPublicIdInput = ({
15941
16007
  navigator.clipboard.writeText(values[publicIdFieldName]);
15942
16008
  };
15943
16009
  autoFocus == null ? void 0 : autoFocus();
15944
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
15945
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
16010
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
16011
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
15946
16012
  ParameterInput,
15947
16013
  {
15948
16014
  id: nameIdField,
@@ -15961,7 +16027,7 @@ var ParameterNameAndPublicIdInput = ({
15961
16027
  value: values[nameIdField]
15962
16028
  }
15963
16029
  ),
15964
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
16030
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
15965
16031
  ParameterInput,
15966
16032
  {
15967
16033
  id: publicIdFieldName,
@@ -15975,11 +16041,11 @@ var ParameterNameAndPublicIdInput = ({
15975
16041
  caption: publicIdCaption,
15976
16042
  placeholder: publicIdPlaceholderText,
15977
16043
  errorMessage: publicIdError,
15978
- menuItems: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
16044
+ menuItems: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
15979
16045
  MenuItem,
15980
16046
  {
15981
16047
  disabled: !values[publicIdFieldName],
15982
- icon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
16048
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
15983
16049
  onClick: handleCopyPidFieldValue,
15984
16050
  children: "Copy"
15985
16051
  }
@@ -15987,17 +16053,16 @@ var ParameterNameAndPublicIdInput = ({
15987
16053
  value: values[publicIdFieldName]
15988
16054
  }
15989
16055
  ),
15990
- (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
16056
+ (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
15991
16057
  ] });
15992
16058
  };
15993
16059
 
15994
16060
  // src/components/ParameterInputs/ParameterRichText.tsx
15995
- var import_react101 = require("@emotion/react");
15996
- var import_code2 = require("@lexical/code");
16061
+ var import_react103 = require("@emotion/react");
15997
16062
  var import_list3 = require("@lexical/list");
15998
16063
  var import_markdown = require("@lexical/markdown");
15999
16064
  var import_LexicalComposer = require("@lexical/react/LexicalComposer");
16000
- var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
16065
+ var import_LexicalComposerContext5 = require("@lexical/react/LexicalComposerContext");
16001
16066
  var import_LexicalContentEditable = require("@lexical/react/LexicalContentEditable");
16002
16067
  var import_LexicalErrorBoundary = __toESM(require("@lexical/react/LexicalErrorBoundary"));
16003
16068
  var import_LexicalHistoryPlugin = require("@lexical/react/LexicalHistoryPlugin");
@@ -16094,8 +16159,43 @@ var getLabelForElement = (type) => {
16094
16159
 
16095
16160
  // src/components/ParameterInputs/ParameterRichText.tsx
16096
16161
  var import_fast_equals2 = require("fast-equals");
16097
- var import_lexical5 = require("lexical");
16098
- var import_react102 = require("react");
16162
+ var import_lexical6 = require("lexical");
16163
+ var import_react104 = require("react");
16164
+
16165
+ // src/components/ParameterInputs/rich-text/CustomCodeNode.ts
16166
+ var import_code = require("@lexical/code");
16167
+ var CustomCodeNode = import_code.CodeNode;
16168
+ var oldImportDOMMap = import_code.CodeNode.importDOM();
16169
+ var oldImportDOMMapPre = oldImportDOMMap.pre;
16170
+ oldImportDOMMap.pre = (node) => {
16171
+ if (node.childNodes.length === 1 && Array.from(node.childNodes).some((node2) => node2.nodeName === "CODE")) {
16172
+ return null;
16173
+ }
16174
+ return oldImportDOMMapPre(node);
16175
+ };
16176
+ CustomCodeNode.importDOM = function() {
16177
+ return oldImportDOMMap;
16178
+ };
16179
+
16180
+ // src/components/ParameterInputs/rich-text/DisableStylesPlugin.ts
16181
+ var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
16182
+ var import_utils2 = require("@lexical/utils");
16183
+ var import_lexical = require("lexical");
16184
+ var import_react96 = require("react");
16185
+ function DisableStylesPlugin() {
16186
+ const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
16187
+ (0, import_react96.useEffect)(() => {
16188
+ return (0, import_utils2.mergeRegister)(
16189
+ // Disable text alignment on paragraph nodes
16190
+ editor.registerNodeTransform(import_lexical.ParagraphNode, (node) => {
16191
+ if (node.getFormatType() !== "") {
16192
+ node.setFormat("");
16193
+ }
16194
+ })
16195
+ );
16196
+ }, [editor]);
16197
+ return null;
16198
+ }
16099
16199
 
16100
16200
  // src/components/ParameterInputs/rich-text/editorStyles.ts
16101
16201
  var import_css = require("@emotion/css");
@@ -16119,6 +16219,8 @@ var textCode = import_css.css`
16119
16219
  border-radius: var(--rounded-sm);
16120
16220
  display: inline-block;
16121
16221
  font-family: var(--ff-mono);
16222
+ font-feature-settings: 'liga' 0;
16223
+ font-variant-ligatures: none;
16122
16224
  font-size: var(--fs-sm);
16123
16225
  padding-left: var(--spacing-xs);
16124
16226
  padding-right: var(--spacing-xs);
@@ -16263,6 +16365,8 @@ var codeElement = import_css.css`
16263
16365
  border-radius: var(--rounded-sm);
16264
16366
  display: block;
16265
16367
  font-family: var(--ff-mono);
16368
+ font-feature-settings: 'liga' 0;
16369
+ font-variant-ligatures: none;
16266
16370
  font-size: var(--fs-sm);
16267
16371
  margin-bottom: var(--spacing-base);
16268
16372
  padding: var(--spacing-sm);
@@ -16273,22 +16377,22 @@ var codeElement = import_css.css`
16273
16377
  `;
16274
16378
 
16275
16379
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
16276
- var import_react96 = require("@emotion/react");
16277
- var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
16380
+ var import_react98 = require("@emotion/react");
16381
+ var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
16278
16382
  var import_LexicalNodeEventPlugin = require("@lexical/react/LexicalNodeEventPlugin");
16279
- var import_utils2 = require("@lexical/utils");
16383
+ var import_utils3 = require("@lexical/utils");
16280
16384
  var import_fast_equals = require("fast-equals");
16281
- var import_lexical2 = require("lexical");
16282
- var import_react97 = require("react");
16385
+ var import_lexical3 = require("lexical");
16386
+ var import_react99 = require("react");
16283
16387
 
16284
16388
  // src/components/Popover/Popover.styles.ts
16285
- var import_react95 = require("@emotion/react");
16286
- var PopoverBtn = import_react95.css`
16389
+ var import_react97 = require("@emotion/react");
16390
+ var PopoverBtn = import_react97.css`
16287
16391
  border: none;
16288
16392
  background: none;
16289
16393
  padding: 0;
16290
16394
  `;
16291
- var Popover = import_react95.css`
16395
+ var Popover = import_react97.css`
16292
16396
  border-left: var(--spacing-xs) solid var(--brand-secondary-3);
16293
16397
  border-radius: var(--rounded-base);
16294
16398
  box-shadow: var(--shadow-base);
@@ -16302,7 +16406,7 @@ var Popover = import_react95.css`
16302
16406
 
16303
16407
  // src/components/ParameterInputs/rich-text/utils.ts
16304
16408
  var import_selection = require("@lexical/selection");
16305
- var import_lexical = require("lexical");
16409
+ var import_lexical2 = require("lexical");
16306
16410
  var getElementNodesInSelection = (selection) => {
16307
16411
  const nodesInSelection = selection.getNodes();
16308
16412
  if (nodesInSelection.length === 0) {
@@ -16311,7 +16415,7 @@ var getElementNodesInSelection = (selection) => {
16311
16415
  selection.focus.getNode().getParentOrThrow()
16312
16416
  ]);
16313
16417
  }
16314
- return new Set(nodesInSelection.map((node) => (0, import_lexical.$isElementNode)(node) ? node : node.getParentOrThrow()));
16418
+ return new Set(nodesInSelection.map((node) => (0, import_lexical2.$isElementNode)(node) ? node : node.getParentOrThrow()));
16315
16419
  };
16316
16420
  var getAncestor = (node, predicate) => {
16317
16421
  let parent = node;
@@ -16336,7 +16440,7 @@ var getSelectedNode = (selection) => {
16336
16440
  };
16337
16441
 
16338
16442
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
16339
- var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
16443
+ var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
16340
16444
  var isProjectMapLinkValue = (value) => {
16341
16445
  return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
16342
16446
  value.nodeId && value.path && value.projectMapId
@@ -16359,7 +16463,7 @@ var guessLinkTypeFromPath = (path) => {
16359
16463
  };
16360
16464
  function convertAnchorElement(domNode) {
16361
16465
  let node = null;
16362
- if (!(0, import_utils2.isHTMLAnchorElement)(domNode)) {
16466
+ if (!(0, import_utils3.isHTMLAnchorElement)(domNode)) {
16363
16467
  return { node };
16364
16468
  }
16365
16469
  const textContent = domNode.textContent;
@@ -16423,7 +16527,7 @@ function convertAnchorElement(domNode) {
16423
16527
  }
16424
16528
  return { node };
16425
16529
  }
16426
- var LinkNode = class extends import_lexical2.ElementNode {
16530
+ var LinkNode = class extends import_lexical3.ElementNode {
16427
16531
  constructor(props, key) {
16428
16532
  super(key);
16429
16533
  this.__link = props;
@@ -16468,7 +16572,7 @@ var LinkNode = class extends import_lexical2.ElementNode {
16468
16572
  element.setAttribute("href", `mailto:${this.__link.path}`);
16469
16573
  }
16470
16574
  }
16471
- (0, import_utils2.addClassNamesToElement)(element, config.theme.link);
16575
+ (0, import_utils3.addClassNamesToElement)(element, config.theme.link);
16472
16576
  return element;
16473
16577
  }
16474
16578
  updateDOM(prevNode, a) {
@@ -16496,7 +16600,7 @@ var LinkNode = class extends import_lexical2.ElementNode {
16496
16600
  }
16497
16601
  insertNewAfter(selection, restoreSelection = true) {
16498
16602
  const element = this.getParentOrThrow().insertNewAfter(selection, restoreSelection);
16499
- if ((0, import_lexical2.$isElementNode)(element)) {
16603
+ if ((0, import_lexical3.$isElementNode)(element)) {
16500
16604
  const linkNode = $createLinkNode(
16501
16605
  "nodeId" in this.__link ? {
16502
16606
  nodeId: this.__link.nodeId,
@@ -16527,7 +16631,7 @@ var LinkNode = class extends import_lexical2.ElementNode {
16527
16631
  }
16528
16632
  };
16529
16633
  function $createLinkNode(props) {
16530
- return (0, import_lexical2.$applyNodeReplacement)(new LinkNode(props));
16634
+ return (0, import_lexical3.$applyNodeReplacement)(new LinkNode(props));
16531
16635
  }
16532
16636
  function $isLinkNode(node) {
16533
16637
  return node instanceof LinkNode;
@@ -16540,14 +16644,14 @@ function removeLinkNode(node) {
16540
16644
  node.remove();
16541
16645
  }
16542
16646
  function removeLinkNodeFromSelection() {
16543
- const selection = (0, import_lexical2.$getSelection)();
16544
- if (!(0, import_lexical2.$isRangeSelection)(selection)) {
16647
+ const selection = (0, import_lexical3.$getSelection)();
16648
+ if (!(0, import_lexical3.$isRangeSelection)(selection)) {
16545
16649
  return;
16546
16650
  }
16547
16651
  const nodes = selection.extract();
16548
16652
  const linkNodesFound = /* @__PURE__ */ new Set();
16549
16653
  for (const node of nodes) {
16550
- if ((0, import_lexical2.$isElementNode)(node) && !node.isInline()) {
16654
+ if ((0, import_lexical3.$isElementNode)(node) && !node.isInline()) {
16551
16655
  continue;
16552
16656
  }
16553
16657
  const linkNodeAncestor = getLinkAncestor(node);
@@ -16561,14 +16665,14 @@ function removeLinkNodeFromSelection() {
16561
16665
  }
16562
16666
  function upsertLinkNode(props) {
16563
16667
  var _a, _b, _c, _d, _e;
16564
- const selection = (0, import_lexical2.$getSelection)();
16565
- if (!(0, import_lexical2.$isRangeSelection)(selection)) {
16668
+ const selection = (0, import_lexical3.$getSelection)();
16669
+ if (!(0, import_lexical3.$isRangeSelection)(selection)) {
16566
16670
  return;
16567
16671
  }
16568
16672
  const nodes = selection.extract();
16569
16673
  const touchedNodes = [];
16570
16674
  for (const node of nodes) {
16571
- if ((0, import_lexical2.$isElementNode)(node) && !node.isInline()) {
16675
+ if ((0, import_lexical3.$isElementNode)(node) && !node.isInline()) {
16572
16676
  continue;
16573
16677
  }
16574
16678
  const linkNodeAncestor = getLinkAncestor(node);
@@ -16616,50 +16720,50 @@ function upsertLinkNode(props) {
16616
16720
  }
16617
16721
  }
16618
16722
  }
16619
- var REMOVE_LINK_NODE_COMMAND = (0, import_lexical2.createCommand)("REMOVE_LINK_NODE_COMMAND");
16620
- var UPSERT_LINK_NODE_COMMAND = (0, import_lexical2.createCommand)("UPSERT_LINK_NODE_COMMAND");
16621
- var OPEN_LINK_NODE_MODAL_COMMAND = (0, import_lexical2.createCommand)(
16723
+ var REMOVE_LINK_NODE_COMMAND = (0, import_lexical3.createCommand)("REMOVE_LINK_NODE_COMMAND");
16724
+ var UPSERT_LINK_NODE_COMMAND = (0, import_lexical3.createCommand)("UPSERT_LINK_NODE_COMMAND");
16725
+ var OPEN_LINK_NODE_MODAL_COMMAND = (0, import_lexical3.createCommand)(
16622
16726
  "OPEN_LINK_NODE_MODAL_COMMAND"
16623
16727
  );
16624
16728
  var LINK_POPOVER_OFFSET_X = 0;
16625
16729
  var LINK_POPOVER_OFFSET_Y = 8;
16626
- var linkPopover = import_react96.css`
16730
+ var linkPopover = import_react98.css`
16627
16731
  position: absolute;
16628
16732
  z-index: 5;
16629
16733
  `;
16630
- var linkPopoverContainer = import_react96.css`
16734
+ var linkPopoverContainer = import_react98.css`
16631
16735
  ${Popover};
16632
16736
  align-items: center;
16633
16737
  display: flex;
16634
16738
  `;
16635
- var linkPopoverAnchor = import_react96.css`
16739
+ var linkPopoverAnchor = import_react98.css`
16636
16740
  ${link}
16637
16741
  ${linkColorDefault}
16638
16742
  `;
16639
16743
  function LinkNodePlugin({ onConnectLink }) {
16640
- const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
16641
- const [linkPopoverState, setLinkPopoverState] = (0, import_react97.useState)();
16642
- const linkPopoverElRef = (0, import_react97.useRef)(null);
16643
- const [isEditorFocused, setIsEditorFocused] = (0, import_react97.useState)(false);
16644
- const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react97.useState)(false);
16645
- (0, import_react97.useEffect)(() => {
16744
+ const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
16745
+ const [linkPopoverState, setLinkPopoverState] = (0, import_react99.useState)();
16746
+ const linkPopoverElRef = (0, import_react99.useRef)(null);
16747
+ const [isEditorFocused, setIsEditorFocused] = (0, import_react99.useState)(false);
16748
+ const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react99.useState)(false);
16749
+ (0, import_react99.useEffect)(() => {
16646
16750
  if (!isEditorFocused && !isLinkPopoverFocused) {
16647
16751
  setLinkPopoverState(void 0);
16648
16752
  return;
16649
16753
  }
16650
16754
  }, [isEditorFocused, isLinkPopoverFocused]);
16651
- (0, import_react97.useEffect)(() => {
16755
+ (0, import_react99.useEffect)(() => {
16652
16756
  if (!editor.hasNodes([LinkNode])) {
16653
16757
  throw new Error("LinkNode not registered on editor");
16654
16758
  }
16655
- return (0, import_utils2.mergeRegister)(
16759
+ return (0, import_utils3.mergeRegister)(
16656
16760
  editor.registerCommand(
16657
16761
  UPSERT_LINK_NODE_COMMAND,
16658
16762
  (payload) => {
16659
16763
  upsertLinkNode(payload);
16660
16764
  return true;
16661
16765
  },
16662
- import_lexical2.COMMAND_PRIORITY_EDITOR
16766
+ import_lexical3.COMMAND_PRIORITY_EDITOR
16663
16767
  ),
16664
16768
  editor.registerCommand(
16665
16769
  REMOVE_LINK_NODE_COMMAND,
@@ -16667,7 +16771,7 @@ function LinkNodePlugin({ onConnectLink }) {
16667
16771
  removeLinkNodeFromSelection();
16668
16772
  return true;
16669
16773
  },
16670
- import_lexical2.COMMAND_PRIORITY_EDITOR
16774
+ import_lexical3.COMMAND_PRIORITY_EDITOR
16671
16775
  ),
16672
16776
  editor.registerCommand(
16673
16777
  OPEN_LINK_NODE_MODAL_COMMAND,
@@ -16686,18 +16790,18 @@ function LinkNodePlugin({ onConnectLink }) {
16686
16790
  });
16687
16791
  return true;
16688
16792
  },
16689
- import_lexical2.COMMAND_PRIORITY_EDITOR
16793
+ import_lexical3.COMMAND_PRIORITY_EDITOR
16690
16794
  ),
16691
16795
  editor.registerCommand(
16692
- import_lexical2.FOCUS_COMMAND,
16796
+ import_lexical3.FOCUS_COMMAND,
16693
16797
  () => {
16694
16798
  setIsEditorFocused(true);
16695
16799
  return true;
16696
16800
  },
16697
- import_lexical2.COMMAND_PRIORITY_EDITOR
16801
+ import_lexical3.COMMAND_PRIORITY_EDITOR
16698
16802
  ),
16699
16803
  editor.registerCommand(
16700
- import_lexical2.BLUR_COMMAND,
16804
+ import_lexical3.BLUR_COMMAND,
16701
16805
  () => {
16702
16806
  requestAnimationFrame(() => {
16703
16807
  if (linkPopoverElRef.current !== null) {
@@ -16713,16 +16817,16 @@ function LinkNodePlugin({ onConnectLink }) {
16713
16817
  });
16714
16818
  return true;
16715
16819
  },
16716
- import_lexical2.COMMAND_PRIORITY_EDITOR
16820
+ import_lexical3.COMMAND_PRIORITY_EDITOR
16717
16821
  )
16718
16822
  );
16719
16823
  }, [editor, onConnectLink]);
16720
- const maybeShowLinkToolbar = (0, import_react97.useCallback)(() => {
16824
+ const maybeShowLinkToolbar = (0, import_react99.useCallback)(() => {
16721
16825
  if (!editor.isEditable()) {
16722
16826
  return;
16723
16827
  }
16724
- const selection = (0, import_lexical2.$getSelection)();
16725
- if (!(0, import_lexical2.$isRangeSelection)(selection)) {
16828
+ const selection = (0, import_lexical3.$getSelection)();
16829
+ if (!(0, import_lexical3.$isRangeSelection)(selection)) {
16726
16830
  setLinkPopoverState(void 0);
16727
16831
  return;
16728
16832
  }
@@ -16749,7 +16853,7 @@ function LinkNodePlugin({ onConnectLink }) {
16749
16853
  }
16750
16854
  });
16751
16855
  }, [editor]);
16752
- (0, import_react97.useEffect)(() => {
16856
+ (0, import_react99.useEffect)(() => {
16753
16857
  return editor.registerUpdateListener(({ editorState }) => {
16754
16858
  requestAnimationFrame(() => {
16755
16859
  editorState.read(() => {
@@ -16776,8 +16880,8 @@ function LinkNodePlugin({ onConnectLink }) {
16776
16880
  });
16777
16881
  });
16778
16882
  };
16779
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
16780
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
16883
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
16884
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16781
16885
  import_LexicalNodeEventPlugin.NodeEventPlugin,
16782
16886
  {
16783
16887
  nodeType: LinkNode,
@@ -16787,7 +16891,7 @@ function LinkNodePlugin({ onConnectLink }) {
16787
16891
  }
16788
16892
  }
16789
16893
  ),
16790
- linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
16894
+ linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16791
16895
  "div",
16792
16896
  {
16793
16897
  css: linkPopover,
@@ -16796,8 +16900,8 @@ function LinkNodePlugin({ onConnectLink }) {
16796
16900
  top: linkPopoverState.position.y
16797
16901
  },
16798
16902
  ref: linkPopoverElRef,
16799
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { css: linkPopoverContainer, children: [
16800
- linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
16903
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { css: linkPopoverContainer, children: [
16904
+ linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16801
16905
  "a",
16802
16906
  {
16803
16907
  href: `${linkPopoverState.node.__link.type === "email" ? "mailto:" : linkPopoverState.node.__link.type === "tel" ? "tel:" : ""}${linkPopoverState.node.__link.path}`,
@@ -16807,7 +16911,7 @@ function LinkNodePlugin({ onConnectLink }) {
16807
16911
  children: linkPopoverState.node.__link.path
16808
16912
  }
16809
16913
  ),
16810
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
16914
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
16811
16915
  Button,
16812
16916
  {
16813
16917
  size: "xs",
@@ -16815,7 +16919,7 @@ function LinkNodePlugin({ onConnectLink }) {
16815
16919
  onEditLinkNode(linkPopoverState.node);
16816
16920
  },
16817
16921
  buttonType: "ghost",
16818
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
16922
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
16819
16923
  }
16820
16924
  )
16821
16925
  ] })
@@ -16831,14 +16935,14 @@ function getLinkAncestor(node) {
16831
16935
 
16832
16936
  // src/components/ParameterInputs/rich-text/ListIndentPlugin.tsx
16833
16937
  var import_list = require("@lexical/list");
16834
- var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
16938
+ var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
16835
16939
  var import_LexicalTabIndentationPlugin = require("@lexical/react/LexicalTabIndentationPlugin");
16836
- var import_lexical3 = require("lexical");
16837
- var import_react98 = require("react");
16838
- var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
16940
+ var import_lexical4 = require("lexical");
16941
+ var import_react100 = require("react");
16942
+ var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
16839
16943
  function isIndentPermitted(maxDepth) {
16840
- const selection = (0, import_lexical3.$getSelection)();
16841
- if (!(0, import_lexical3.$isRangeSelection)(selection)) {
16944
+ const selection = (0, import_lexical4.$getSelection)();
16945
+ if (!(0, import_lexical4.$isRangeSelection)(selection)) {
16842
16946
  return false;
16843
16947
  }
16844
16948
  const elementNodesInSelection = getElementNodesInSelection(selection);
@@ -16857,29 +16961,29 @@ function isIndentPermitted(maxDepth) {
16857
16961
  return totalDepth <= maxDepth;
16858
16962
  }
16859
16963
  function ListIndentPlugin({ maxDepth }) {
16860
- const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
16861
- (0, import_react98.useEffect)(() => {
16964
+ const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
16965
+ (0, import_react100.useEffect)(() => {
16862
16966
  return editor.registerCommand(
16863
- import_lexical3.INDENT_CONTENT_COMMAND,
16967
+ import_lexical4.INDENT_CONTENT_COMMAND,
16864
16968
  () => !isIndentPermitted(maxDepth),
16865
- import_lexical3.COMMAND_PRIORITY_CRITICAL
16969
+ import_lexical4.COMMAND_PRIORITY_CRITICAL
16866
16970
  );
16867
16971
  }, [editor, maxDepth]);
16868
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
16972
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
16869
16973
  }
16870
16974
 
16871
16975
  // src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
16872
- var import_react99 = require("@emotion/react");
16873
- var import_code = require("@lexical/code");
16976
+ var import_react101 = require("@emotion/react");
16977
+ var import_code2 = require("@lexical/code");
16874
16978
  var import_list2 = require("@lexical/list");
16875
- var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
16979
+ var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
16876
16980
  var import_rich_text = require("@lexical/rich-text");
16877
16981
  var import_selection2 = require("@lexical/selection");
16878
- var import_utils5 = require("@lexical/utils");
16879
- var import_lexical4 = require("lexical");
16880
- var import_react100 = require("react");
16881
- var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
16882
- var toolbar = import_react99.css`
16982
+ var import_utils6 = require("@lexical/utils");
16983
+ var import_lexical5 = require("lexical");
16984
+ var import_react102 = require("react");
16985
+ var import_jsx_runtime92 = require("@emotion/react/jsx-runtime");
16986
+ var toolbar = import_react101.css`
16883
16987
  background: var(--gray-50);
16884
16988
  border-radius: var(--rounded-base);
16885
16989
  display: flex;
@@ -16891,7 +16995,7 @@ var toolbar = import_react99.css`
16891
16995
  top: 0;
16892
16996
  z-index: 10;
16893
16997
  `;
16894
- var toolbarGroup = import_react99.css`
16998
+ var toolbarGroup = import_react101.css`
16895
16999
  display: flex;
16896
17000
  gap: var(--spacing-xs);
16897
17001
  position: relative;
@@ -16907,7 +17011,7 @@ var toolbarGroup = import_react99.css`
16907
17011
  width: 1px;
16908
17012
  }
16909
17013
  `;
16910
- var toolbarButton = import_react99.css`
17014
+ var toolbarButton = import_react101.css`
16911
17015
  align-items: center;
16912
17016
  appearance: none;
16913
17017
  border: 0;
@@ -16920,17 +17024,17 @@ var toolbarButton = import_react99.css`
16920
17024
  min-width: 32px;
16921
17025
  padding: 0 var(--spacing-sm);
16922
17026
  `;
16923
- var toolbarButtonActive = import_react99.css`
17027
+ var toolbarButtonActive = import_react101.css`
16924
17028
  background: var(--gray-200);
16925
17029
  `;
16926
- var toolbarIcon = import_react99.css`
17030
+ var toolbarIcon = import_react101.css`
16927
17031
  color: inherit;
16928
17032
  `;
16929
- var toolbarChevron = import_react99.css`
17033
+ var toolbarChevron = import_react101.css`
16930
17034
  margin-left: var(--spacing-xs);
16931
17035
  `;
16932
17036
  var ToolbarIcon = ({ icon }) => {
16933
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
17037
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
16934
17038
  };
16935
17039
  var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
16936
17040
  ["bold", "format-bold"],
@@ -16944,7 +17048,7 @@ var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
16944
17048
  var HEADING_ELEMENTS = ["h1", "h2", "h3", "h4", "h5", "h6"];
16945
17049
  var TEXTUAL_ELEMENTS = HEADING_ELEMENTS;
16946
17050
  var RichTextToolbar = ({ config }) => {
16947
- const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
17051
+ const [editor] = (0, import_LexicalComposerContext4.useLexicalComposerContext)();
16948
17052
  const {
16949
17053
  activeElement,
16950
17054
  setActiveElement,
@@ -16966,24 +17070,24 @@ var RichTextToolbar = ({ config }) => {
16966
17070
  return;
16967
17071
  }
16968
17072
  editor.update(() => {
16969
- const selection = (0, import_lexical4.$getSelection)();
16970
- if (!(0, import_lexical4.$isRangeSelection)(selection)) {
17073
+ const selection = (0, import_lexical5.$getSelection)();
17074
+ if (!(0, import_lexical5.$isRangeSelection)(selection)) {
16971
17075
  return;
16972
17076
  }
16973
17077
  if (HEADING_ELEMENTS.includes(type)) {
16974
17078
  (0, import_selection2.$setBlocksType)(selection, () => (0, import_rich_text.$createHeadingNode)(type));
16975
17079
  } else if (type === "paragraph") {
16976
- (0, import_selection2.$setBlocksType)(selection, () => (0, import_lexical4.$createParagraphNode)());
17080
+ (0, import_selection2.$setBlocksType)(selection, () => (0, import_lexical5.$createParagraphNode)());
16977
17081
  } else if (type === "quote") {
16978
17082
  (0, import_selection2.$setBlocksType)(selection, () => (0, import_rich_text.$createQuoteNode)());
16979
17083
  } else if (type === "code") {
16980
- (0, import_selection2.$setBlocksType)(selection, () => (0, import_code.$createCodeNode)());
17084
+ (0, import_selection2.$setBlocksType)(selection, () => (0, import_code2.$createCodeNode)());
16981
17085
  }
16982
17086
  });
16983
17087
  };
16984
- const updateToolbar = (0, import_react100.useCallback)(() => {
16985
- const selection = (0, import_lexical4.$getSelection)();
16986
- if (!(0, import_lexical4.$isRangeSelection)(selection)) {
17088
+ const updateToolbar = (0, import_react102.useCallback)(() => {
17089
+ const selection = (0, import_lexical5.$getSelection)();
17090
+ if (!(0, import_lexical5.$isRangeSelection)(selection)) {
16987
17091
  return;
16988
17092
  }
16989
17093
  const newActiveFormats = [];
@@ -16994,9 +17098,9 @@ var RichTextToolbar = ({ config }) => {
16994
17098
  }
16995
17099
  setActiveFormats(newActiveFormats);
16996
17100
  const anchorNode = selection.anchor.getNode();
16997
- let element = anchorNode.getKey() === "root" ? anchorNode : (0, import_utils5.$findMatchingParent)(anchorNode, (e) => {
17101
+ let element = anchorNode.getKey() === "root" ? anchorNode : (0, import_utils6.$findMatchingParent)(anchorNode, (e) => {
16998
17102
  const parent = e.getParent();
16999
- return parent !== null && (0, import_lexical4.$isRootOrShadowRoot)(parent);
17103
+ return parent !== null && (0, import_lexical5.$isRootOrShadowRoot)(parent);
17000
17104
  });
17001
17105
  if (element === null) {
17002
17106
  element = anchorNode.getTopLevelElementOrThrow();
@@ -17005,7 +17109,7 @@ var RichTextToolbar = ({ config }) => {
17005
17109
  const elementDOM = editor.getElementByKey(elementKey);
17006
17110
  if (elementDOM !== null) {
17007
17111
  if ((0, import_list2.$isListNode)(element)) {
17008
- const parentList = (0, import_utils5.$getNearestNodeOfType)(anchorNode, import_list2.ListNode);
17112
+ const parentList = (0, import_utils6.$getNearestNodeOfType)(anchorNode, import_list2.ListNode);
17009
17113
  const type = parentList ? parentList.getListType() : element.getListType();
17010
17114
  setActiveElement(type === "bullet" ? "unorderedList" : "orderedList");
17011
17115
  } else {
@@ -17020,17 +17124,17 @@ var RichTextToolbar = ({ config }) => {
17020
17124
  setIsLink(false);
17021
17125
  }
17022
17126
  }, [editor, setActiveElement, setActiveFormats, setIsLink]);
17023
- (0, import_react100.useEffect)(() => {
17127
+ (0, import_react102.useEffect)(() => {
17024
17128
  return editor.registerCommand(
17025
- import_lexical4.SELECTION_CHANGE_COMMAND,
17129
+ import_lexical5.SELECTION_CHANGE_COMMAND,
17026
17130
  (_payload) => {
17027
17131
  updateToolbar();
17028
17132
  return false;
17029
17133
  },
17030
- import_lexical4.COMMAND_PRIORITY_CRITICAL
17134
+ import_lexical5.COMMAND_PRIORITY_CRITICAL
17031
17135
  );
17032
17136
  }, [editor, updateToolbar]);
17033
- (0, import_react100.useEffect)(() => {
17137
+ (0, import_react102.useEffect)(() => {
17034
17138
  return editor.registerUpdateListener(({ editorState }) => {
17035
17139
  requestAnimationFrame(() => {
17036
17140
  editorState.read(() => {
@@ -17039,15 +17143,15 @@ var RichTextToolbar = ({ config }) => {
17039
17143
  });
17040
17144
  });
17041
17145
  }, [editor, updateToolbar]);
17042
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { css: toolbar, children: [
17043
- /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
17146
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { css: toolbar, children: [
17147
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
17044
17148
  Menu,
17045
17149
  {
17046
17150
  menuLabel: "Elements",
17047
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("button", { css: toolbarButton, title: "Text styles", children: [
17151
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("button", { css: toolbarButton, title: "Text styles", children: [
17048
17152
  visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
17049
17153
  " ",
17050
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
17154
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
17051
17155
  ] }),
17052
17156
  placement: "bottom-start",
17053
17157
  children: [
@@ -17057,7 +17161,7 @@ var RichTextToolbar = ({ config }) => {
17057
17161
  type: "paragraph"
17058
17162
  },
17059
17163
  ...visibleTextualElements
17060
- ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17164
+ ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17061
17165
  MenuItem,
17062
17166
  {
17063
17167
  onClick: () => {
@@ -17067,32 +17171,32 @@ var RichTextToolbar = ({ config }) => {
17067
17171
  },
17068
17172
  element.type
17069
17173
  )),
17070
- visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
17174
+ visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
17071
17175
  ]
17072
17176
  }
17073
17177
  ),
17074
- visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { css: toolbarGroup, children: [
17075
- visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17178
+ visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { css: toolbarGroup, children: [
17179
+ visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17076
17180
  "button",
17077
17181
  {
17078
17182
  onClick: () => {
17079
- editor.dispatchCommand(import_lexical4.FORMAT_TEXT_COMMAND, format.type);
17183
+ editor.dispatchCommand(import_lexical5.FORMAT_TEXT_COMMAND, format.type);
17080
17184
  },
17081
17185
  css: [toolbarButton, activeFormats.includes(format.type) ? toolbarButtonActive : null],
17082
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
17186
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
17083
17187
  }
17084
17188
  ) }, format.type)),
17085
- visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17189
+ visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17086
17190
  Menu,
17087
17191
  {
17088
17192
  menuLabel: "Alternative text styles",
17089
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("button", { css: toolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
17193
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("button", { css: toolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
17090
17194
  placement: "bottom-start",
17091
- children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17195
+ children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17092
17196
  MenuItem,
17093
17197
  {
17094
17198
  onClick: () => {
17095
- editor.dispatchCommand(import_lexical4.FORMAT_TEXT_COMMAND, format.type);
17199
+ editor.dispatchCommand(import_lexical5.FORMAT_TEXT_COMMAND, format.type);
17096
17200
  },
17097
17201
  children: format.label
17098
17202
  },
@@ -17101,57 +17205,57 @@ var RichTextToolbar = ({ config }) => {
17101
17205
  }
17102
17206
  ) : null
17103
17207
  ] }) : null,
17104
- visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { css: toolbarGroup, children: [
17105
- linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17208
+ visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { css: toolbarGroup, children: [
17209
+ linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17106
17210
  "button",
17107
17211
  {
17108
17212
  onClick: () => {
17109
17213
  isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
17110
17214
  },
17111
17215
  css: [toolbarButton, isLink ? toolbarButtonActive : null],
17112
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "link" })
17216
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToolbarIcon, { icon: "link" })
17113
17217
  }
17114
17218
  ) }) : null,
17115
- visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
17116
- visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17219
+ visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
17220
+ visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17117
17221
  "button",
17118
17222
  {
17119
17223
  onClick: () => {
17120
17224
  activeElement === "unorderedList" ? editor.dispatchCommand(import_list2.REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(import_list2.INSERT_UNORDERED_LIST_COMMAND, void 0);
17121
17225
  },
17122
17226
  css: [toolbarButton, activeElement === "unorderedList" ? toolbarButtonActive : null],
17123
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "layout-list" })
17227
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToolbarIcon, { icon: "layout-list" })
17124
17228
  }
17125
17229
  ) }) : null,
17126
- visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17230
+ visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17127
17231
  "button",
17128
17232
  {
17129
17233
  onClick: () => {
17130
17234
  activeElement === "orderedList" ? editor.dispatchCommand(import_list2.REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(import_list2.INSERT_ORDERED_LIST_COMMAND, void 0);
17131
17235
  },
17132
17236
  css: [toolbarButton, activeElement === "orderedList" ? toolbarButtonActive : null],
17133
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "layout-list-numbered" })
17237
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToolbarIcon, { icon: "layout-list-numbered" })
17134
17238
  }
17135
17239
  ) }) : null
17136
17240
  ] }) : null,
17137
- quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17241
+ quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17138
17242
  "button",
17139
17243
  {
17140
17244
  onClick: () => {
17141
17245
  activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
17142
17246
  },
17143
17247
  css: [toolbarButton, activeElement === "quote" ? toolbarButtonActive : null],
17144
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "quote" })
17248
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToolbarIcon, { icon: "quote" })
17145
17249
  }
17146
17250
  ) }) : null,
17147
- codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
17251
+ codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17148
17252
  "button",
17149
17253
  {
17150
17254
  onClick: () => {
17151
17255
  activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
17152
17256
  },
17153
17257
  css: [toolbarButton, activeElement === "code" ? toolbarButtonActive : null],
17154
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "code-slash" })
17258
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToolbarIcon, { icon: "code-slash" })
17155
17259
  }
17156
17260
  ) }) : null
17157
17261
  ] }) : null
@@ -17160,26 +17264,26 @@ var RichTextToolbar = ({ config }) => {
17160
17264
  var RichTextToolbar_default = RichTextToolbar;
17161
17265
  var useRichTextToolbarState = ({ config }) => {
17162
17266
  var _a;
17163
- const enabledBuiltInFormats = (0, import_react100.useMemo)(() => {
17267
+ const enabledBuiltInFormats = (0, import_react102.useMemo)(() => {
17164
17268
  return richTextBuiltInFormats.filter((format) => {
17165
17269
  var _a2, _b;
17166
17270
  return (_b = (_a2 = config == null ? void 0 : config.formatting) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(format.type);
17167
17271
  });
17168
17272
  }, [config]);
17169
- const enabledBuiltInElements = (0, import_react100.useMemo)(() => {
17273
+ const enabledBuiltInElements = (0, import_react102.useMemo)(() => {
17170
17274
  return richTextBuiltInElements.filter((element) => {
17171
17275
  var _a2, _b;
17172
17276
  return (_b = (_a2 = config == null ? void 0 : config.elements) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(element.type);
17173
17277
  });
17174
17278
  }, [config]);
17175
- const enabledBuiltInFormatsWithIcon = (0, import_react100.useMemo)(() => {
17279
+ const enabledBuiltInFormatsWithIcon = (0, import_react102.useMemo)(() => {
17176
17280
  return enabledBuiltInFormats.filter((format) => FORMATS_WITH_ICON.has(format.type));
17177
17281
  }, [enabledBuiltInFormats]);
17178
17282
  const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
17179
17283
  (format) => !FORMATS_WITH_ICON.has(format.type)
17180
17284
  );
17181
- const [activeFormats, setActiveFormats] = (0, import_react100.useState)([]);
17182
- const visibleFormatsWithIcon = (0, import_react100.useMemo)(() => {
17285
+ const [activeFormats, setActiveFormats] = (0, import_react102.useState)([]);
17286
+ const visibleFormatsWithIcon = (0, import_react102.useMemo)(() => {
17183
17287
  const visibleFormats = /* @__PURE__ */ new Set();
17184
17288
  activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
17185
17289
  visibleFormats.add(type);
@@ -17189,7 +17293,7 @@ var useRichTextToolbarState = ({ config }) => {
17189
17293
  });
17190
17294
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
17191
17295
  }, [activeFormats, enabledBuiltInFormatsWithIcon]);
17192
- const visibleFormatsWithoutIcon = (0, import_react100.useMemo)(() => {
17296
+ const visibleFormatsWithoutIcon = (0, import_react102.useMemo)(() => {
17193
17297
  const visibleFormats = /* @__PURE__ */ new Set();
17194
17298
  activeFormats.filter((type) => !FORMATS_WITH_ICON.has(type)).forEach((type) => {
17195
17299
  visibleFormats.add(type);
@@ -17199,11 +17303,11 @@ var useRichTextToolbarState = ({ config }) => {
17199
17303
  });
17200
17304
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
17201
17305
  }, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
17202
- const [activeElement, setActiveElement] = (0, import_react100.useState)("paragraph");
17306
+ const [activeElement, setActiveElement] = (0, import_react102.useState)("paragraph");
17203
17307
  const enabledTextualElements = enabledBuiltInElements.filter(
17204
17308
  (element) => TEXTUAL_ELEMENTS.includes(element.type)
17205
17309
  );
17206
- const visibleTextualElements = (0, import_react100.useMemo)(() => {
17310
+ const visibleTextualElements = (0, import_react102.useMemo)(() => {
17207
17311
  if (!TEXTUAL_ELEMENTS.includes(activeElement)) {
17208
17312
  return enabledTextualElements;
17209
17313
  }
@@ -17214,24 +17318,24 @@ var useRichTextToolbarState = ({ config }) => {
17214
17318
  }
17215
17319
  );
17216
17320
  }, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
17217
- const [isLink, setIsLink] = (0, import_react100.useState)(false);
17218
- const linkElementVisible = (0, import_react100.useMemo)(() => {
17321
+ const [isLink, setIsLink] = (0, import_react102.useState)(false);
17322
+ const linkElementVisible = (0, import_react102.useMemo)(() => {
17219
17323
  return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
17220
17324
  }, [isLink, enabledBuiltInElements]);
17221
- const visibleLists = (0, import_react100.useMemo)(() => {
17325
+ const visibleLists = (0, import_react102.useMemo)(() => {
17222
17326
  return new Set(
17223
17327
  ["orderedList", "unorderedList"].filter(
17224
17328
  (type) => enabledBuiltInElements.some((element) => element.type === type) || activeElement === type
17225
17329
  )
17226
17330
  );
17227
17331
  }, [activeElement, enabledBuiltInElements]);
17228
- const quoteElementVisible = (0, import_react100.useMemo)(() => {
17332
+ const quoteElementVisible = (0, import_react102.useMemo)(() => {
17229
17333
  return enabledBuiltInElements.some((element) => element.type === "quote") || activeElement === "quote";
17230
17334
  }, [activeElement, enabledBuiltInElements]);
17231
- const codeElementVisible = (0, import_react100.useMemo)(() => {
17335
+ const codeElementVisible = (0, import_react102.useMemo)(() => {
17232
17336
  return enabledBuiltInElements.some((element) => element.type === "code") || activeElement === "code";
17233
17337
  }, [activeElement, enabledBuiltInElements]);
17234
- const visibleElementsWithIcons = (0, import_react100.useMemo)(() => {
17338
+ const visibleElementsWithIcons = (0, import_react102.useMemo)(() => {
17235
17339
  const visibleElements = /* @__PURE__ */ new Set();
17236
17340
  if (linkElementVisible) {
17237
17341
  visibleElements.add("link");
@@ -17268,7 +17372,7 @@ var useRichTextToolbarState = ({ config }) => {
17268
17372
  };
17269
17373
 
17270
17374
  // src/components/ParameterInputs/ParameterRichText.tsx
17271
- var import_jsx_runtime92 = require("@emotion/react/jsx-runtime");
17375
+ var import_jsx_runtime93 = require("@emotion/react/jsx-runtime");
17272
17376
  var ParameterRichText = ({
17273
17377
  label,
17274
17378
  labelLeadingIcon,
@@ -17289,7 +17393,7 @@ var ParameterRichText = ({
17289
17393
  editorInputClassName,
17290
17394
  editorFooter
17291
17395
  }) => {
17292
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
17396
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
17293
17397
  ParameterShell,
17294
17398
  {
17295
17399
  "data-test-id": "parameter-input",
@@ -17303,7 +17407,7 @@ var ParameterRichText = ({
17303
17407
  captionTestId,
17304
17408
  menuItems,
17305
17409
  children: [
17306
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17410
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
17307
17411
  ParameterRichTextInner,
17308
17412
  {
17309
17413
  value,
@@ -17317,23 +17421,23 @@ var ParameterRichText = ({
17317
17421
  editorFooter
17318
17422
  }
17319
17423
  ),
17320
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, { children: menuItems }) }) : null
17424
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_jsx_runtime93.Fragment, { children: menuItems }) }) : null
17321
17425
  ]
17322
17426
  }
17323
17427
  );
17324
17428
  };
17325
- var editorWrapper = import_react101.css`
17429
+ var editorWrapper = import_react103.css`
17326
17430
  display: flex;
17327
17431
  flex-flow: column;
17328
17432
  flex-grow: 1;
17329
17433
  `;
17330
- var editorContainer = import_react101.css`
17434
+ var editorContainer = import_react103.css`
17331
17435
  display: flex;
17332
17436
  flex-flow: column;
17333
17437
  flex-grow: 1;
17334
17438
  position: relative;
17335
17439
  `;
17336
- var editorPlaceholder = import_react101.css`
17440
+ var editorPlaceholder = import_react103.css`
17337
17441
  color: var(--gray-500);
17338
17442
  font-style: italic;
17339
17443
  /* 1px is added to make sure caret is clearly visible when field is focused
@@ -17344,7 +17448,7 @@ var editorPlaceholder = import_react101.css`
17344
17448
  top: var(--spacing-xs);
17345
17449
  user-select: none;
17346
17450
  `;
17347
- var editorInput = import_react101.css`
17451
+ var editorInput = import_react103.css`
17348
17452
  background: var(--white);
17349
17453
  border: 1px solid var(--white);
17350
17454
  border-radius: var(--rounded-sm);
@@ -17380,7 +17484,7 @@ var ParameterRichTextInner = ({
17380
17484
  console.error(error);
17381
17485
  },
17382
17486
  editorState: value ? JSON.stringify(value) : void 0,
17383
- nodes: [import_list3.ListNode, import_list3.ListItemNode, LinkNode, import_rich_text2.HeadingNode, import_rich_text2.QuoteNode, import_code2.CodeNode, import_lexical5.ParagraphNode],
17487
+ nodes: [import_list3.ListNode, import_list3.ListItemNode, LinkNode, import_rich_text2.HeadingNode, import_rich_text2.QuoteNode, import_lexical6.ParagraphNode, CustomCodeNode],
17384
17488
  theme: {
17385
17489
  text: {
17386
17490
  bold: textBold,
@@ -17415,8 +17519,8 @@ var ParameterRichTextInner = ({
17415
17519
  },
17416
17520
  editable: !readOnly
17417
17521
  };
17418
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
17419
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17522
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
17523
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
17420
17524
  RichText,
17421
17525
  {
17422
17526
  onChange,
@@ -17447,14 +17551,14 @@ var RichText = ({
17447
17551
  readOnly,
17448
17552
  editorInputClassName
17449
17553
  }) => {
17450
- const editorContainerRef = (0, import_react102.useRef)(null);
17451
- const [editor] = (0, import_LexicalComposerContext4.useLexicalComposerContext)();
17452
- (0, import_react102.useEffect)(() => {
17554
+ const editorContainerRef = (0, import_react104.useRef)(null);
17555
+ const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
17556
+ (0, import_react104.useEffect)(() => {
17453
17557
  if (onRichTextInit) {
17454
17558
  onRichTextInit(editor);
17455
17559
  }
17456
17560
  }, [editor, onRichTextInit]);
17457
- (0, import_react102.useEffect)(() => {
17561
+ (0, import_react104.useEffect)(() => {
17458
17562
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState }) => {
17459
17563
  requestAnimationFrame(() => {
17460
17564
  if (!(0, import_fast_equals2.deepEqual)(editorState.toJSON(), prevEditorState.toJSON())) {
@@ -17466,39 +17570,40 @@ var RichText = ({
17466
17570
  removeUpdateListener();
17467
17571
  };
17468
17572
  }, []);
17469
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
17470
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(RichTextToolbar_default, { config }),
17471
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { css: editorContainer, ref: editorContainerRef, children: [
17472
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
17573
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
17574
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(RichTextToolbar_default, { config }),
17575
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { css: editorContainer, ref: editorContainerRef, children: [
17576
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
17473
17577
  import_LexicalRichTextPlugin.RichTextPlugin,
17474
17578
  {
17475
- contentEditable: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
17476
- placeholder: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
17579
+ contentEditable: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
17580
+ placeholder: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
17477
17581
  ErrorBoundary: import_LexicalErrorBoundary.default
17478
17582
  }
17479
17583
  ),
17480
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalListPlugin.ListPlugin, {}),
17481
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
17482
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(LinkNodePlugin, { onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve() }),
17483
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ListIndentPlugin, { maxDepth: 4 }),
17484
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS })
17584
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_LexicalListPlugin.ListPlugin, {}),
17585
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
17586
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(LinkNodePlugin, { onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve() }),
17587
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ListIndentPlugin, { maxDepth: 4 }),
17588
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DisableStylesPlugin, {}),
17589
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS })
17485
17590
  ] })
17486
17591
  ] });
17487
17592
  };
17488
17593
 
17489
17594
  // src/components/ParameterInputs/ParameterSelect.tsx
17490
- var import_react103 = require("react");
17491
- var import_jsx_runtime93 = require("@emotion/react/jsx-runtime");
17492
- var ParameterSelect = (0, import_react103.forwardRef)(
17595
+ var import_react105 = require("react");
17596
+ var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
17597
+ var ParameterSelect = (0, import_react105.forwardRef)(
17493
17598
  ({ defaultOption, options, ...props }, ref) => {
17494
17599
  const { shellProps, innerProps } = extractParameterProps(props);
17495
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
17600
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
17496
17601
  }
17497
17602
  );
17498
- var ParameterSelectInner = (0, import_react103.forwardRef)(
17603
+ var ParameterSelectInner = (0, import_react105.forwardRef)(
17499
17604
  ({ defaultOption, options, ...props }, ref) => {
17500
17605
  const { id, label, hiddenLabel } = useParameterShell();
17501
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
17606
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
17502
17607
  "select",
17503
17608
  {
17504
17609
  css: [input2, selectInput],
@@ -17507,10 +17612,10 @@ var ParameterSelectInner = (0, import_react103.forwardRef)(
17507
17612
  ref,
17508
17613
  ...props,
17509
17614
  children: [
17510
- defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("option", { value: "", children: defaultOption }) : null,
17615
+ defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: "", children: defaultOption }) : null,
17511
17616
  options.map((option) => {
17512
17617
  var _a;
17513
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
17618
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
17514
17619
  })
17515
17620
  ]
17516
17621
  }
@@ -17519,15 +17624,15 @@ var ParameterSelectInner = (0, import_react103.forwardRef)(
17519
17624
  );
17520
17625
 
17521
17626
  // src/components/ParameterInputs/ParameterTextarea.tsx
17522
- var import_react104 = require("react");
17523
- var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
17524
- var ParameterTextarea = (0, import_react104.forwardRef)((props, ref) => {
17627
+ var import_react106 = require("react");
17628
+ var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
17629
+ var ParameterTextarea = (0, import_react106.forwardRef)((props, ref) => {
17525
17630
  const { shellProps, innerProps } = extractParameterProps(props);
17526
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
17631
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
17527
17632
  });
17528
- var ParameterTextareaInner = (0, import_react104.forwardRef)(({ ...props }, ref) => {
17633
+ var ParameterTextareaInner = (0, import_react106.forwardRef)(({ ...props }, ref) => {
17529
17634
  const { id, label, hiddenLabel } = useParameterShell();
17530
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
17635
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
17531
17636
  "textarea",
17532
17637
  {
17533
17638
  css: [input2, textarea2],
@@ -17540,18 +17645,18 @@ var ParameterTextareaInner = (0, import_react104.forwardRef)(({ ...props }, ref)
17540
17645
  });
17541
17646
 
17542
17647
  // src/components/ParameterInputs/ParameterToggle.tsx
17543
- var import_react105 = require("react");
17544
- var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
17545
- var ParameterToggle = (0, import_react105.forwardRef)((props, ref) => {
17648
+ var import_react107 = require("react");
17649
+ var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
17650
+ var ParameterToggle = (0, import_react107.forwardRef)((props, ref) => {
17546
17651
  const { shellProps, innerProps } = extractParameterProps(props);
17547
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
17652
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
17548
17653
  });
17549
- var ParameterToggleInner = (0, import_react105.forwardRef)(
17654
+ var ParameterToggleInner = (0, import_react107.forwardRef)(
17550
17655
  ({ ...props }, ref) => {
17551
17656
  const { id, label } = useParameterShell();
17552
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("label", { css: inputToggleLabel2, children: [
17553
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
17554
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { css: inlineLabel2, children: label })
17657
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("label", { css: inputToggleLabel2, children: [
17658
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
17659
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { css: inlineLabel2, children: label })
17555
17660
  ] });
17556
17661
  }
17557
17662
  );
@@ -17559,7 +17664,7 @@ var ParameterToggleInner = (0, import_react105.forwardRef)(
17559
17664
  // src/components/Popover/Popover.tsx
17560
17665
  var import_Popover = require("reakit/Popover");
17561
17666
  var import_Portal2 = require("reakit/Portal");
17562
- var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
17667
+ var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
17563
17668
  var Popover2 = ({
17564
17669
  iconColor = "action",
17565
17670
  icon = "info",
@@ -17571,38 +17676,38 @@ var Popover2 = ({
17571
17676
  children
17572
17677
  }) => {
17573
17678
  const popover = (0, import_Popover.usePopoverState)({ placement });
17574
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
17575
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-test-id": testId, children: [
17576
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Icon, { icon, iconColor, size: iconSize }),
17577
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { hidden: true, children: buttonText })
17679
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
17680
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-test-id": testId, children: [
17681
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon, { icon, iconColor, size: iconSize }),
17682
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { hidden: true, children: buttonText })
17578
17683
  ] }),
17579
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
17684
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
17580
17685
  ] });
17581
17686
  };
17582
17687
 
17583
17688
  // src/components/ProgressList/ProgressList.tsx
17584
- var import_react107 = require("@emotion/react");
17585
- var import_react108 = require("react");
17689
+ var import_react109 = require("@emotion/react");
17690
+ var import_react110 = require("react");
17586
17691
  var import_cg18 = require("react-icons/cg");
17587
17692
 
17588
17693
  // src/components/ProgressList/styles/ProgressList.styles.ts
17589
- var import_react106 = require("@emotion/react");
17590
- var progressListStyles = import_react106.css`
17694
+ var import_react108 = require("@emotion/react");
17695
+ var progressListStyles = import_react108.css`
17591
17696
  display: flex;
17592
17697
  flex-direction: column;
17593
17698
  gap: var(--spacing-sm);
17594
17699
  list-style-type: none;
17595
17700
  `;
17596
- var progressListItemStyles = import_react106.css`
17701
+ var progressListItemStyles = import_react108.css`
17597
17702
  display: flex;
17598
17703
  gap: var(--spacing-base);
17599
17704
  align-items: center;
17600
17705
  `;
17601
17706
 
17602
17707
  // src/components/ProgressList/ProgressList.tsx
17603
- var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
17708
+ var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
17604
17709
  var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
17605
- const itemsWithStatus = (0, import_react108.useMemo)(() => {
17710
+ const itemsWithStatus = (0, import_react110.useMemo)(() => {
17606
17711
  const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
17607
17712
  return items.map((item, index) => {
17608
17713
  let status = "queued";
@@ -17614,8 +17719,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
17614
17719
  return { ...item, status };
17615
17720
  });
17616
17721
  }, [items, inProgressId]);
17617
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
17618
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
17722
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
17723
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
17619
17724
  ProgressListItem,
17620
17725
  {
17621
17726
  status,
@@ -17635,7 +17740,7 @@ var ProgressListItem = ({
17635
17740
  errorLevel = "danger",
17636
17741
  autoEllipsis = false
17637
17742
  }) => {
17638
- const Icon2 = (0, import_react108.useMemo)(() => {
17743
+ const Icon2 = (0, import_react110.useMemo)(() => {
17639
17744
  if (error) {
17640
17745
  return warningIcon;
17641
17746
  }
@@ -17646,14 +17751,14 @@ var ProgressListItem = ({
17646
17751
  };
17647
17752
  return iconPerStatus[status];
17648
17753
  }, [status, error]);
17649
- const statusStyles = (0, import_react108.useMemo)(() => {
17754
+ const statusStyles = (0, import_react110.useMemo)(() => {
17650
17755
  if (error) {
17651
- return errorLevel === "caution" ? import_react107.css`
17756
+ return errorLevel === "caution" ? import_react109.css`
17652
17757
  color: rgb(161, 98, 7);
17653
17758
  & svg {
17654
17759
  color: rgb(250, 204, 21);
17655
17760
  }
17656
- ` : import_react107.css`
17761
+ ` : import_react109.css`
17657
17762
  color: rgb(185, 28, 28);
17658
17763
  & svg {
17659
17764
  color: var(--brand-primary-2);
@@ -17661,35 +17766,35 @@ var ProgressListItem = ({
17661
17766
  `;
17662
17767
  }
17663
17768
  const colorPerStatus = {
17664
- completed: import_react107.css`
17769
+ completed: import_react109.css`
17665
17770
  opacity: 0.75;
17666
17771
  `,
17667
- inProgress: import_react107.css`
17772
+ inProgress: import_react109.css`
17668
17773
  -webkit-text-stroke-width: thin;
17669
17774
  `,
17670
- queued: import_react107.css`
17775
+ queued: import_react109.css`
17671
17776
  opacity: 0.5;
17672
17777
  `
17673
17778
  };
17674
17779
  return colorPerStatus[status];
17675
17780
  }, [status, error, errorLevel]);
17676
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
17677
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon2, { size: 20 }) }) }),
17678
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { children: [
17781
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
17782
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Icon2, { size: 20 }) }) }),
17783
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { children: [
17679
17784
  children,
17680
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
17785
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
17681
17786
  ] })
17682
17787
  ] });
17683
17788
  };
17684
17789
 
17685
17790
  // src/components/SegmentedControl/SegmentedControl.tsx
17686
- var import_react110 = require("@emotion/react");
17687
- var import_react111 = require("react");
17791
+ var import_react112 = require("@emotion/react");
17792
+ var import_react113 = require("react");
17688
17793
  var import_cg19 = require("react-icons/cg");
17689
17794
 
17690
17795
  // src/components/SegmentedControl/SegmentedControl.styles.ts
17691
- var import_react109 = require("@emotion/react");
17692
- var segmentedControlStyles = import_react109.css`
17796
+ var import_react111 = require("@emotion/react");
17797
+ var segmentedControlStyles = import_react111.css`
17693
17798
  --segmented-control-rounded-value: var(--rounded-base);
17694
17799
  --segmented-control-border-width: 1px;
17695
17800
  --segmented-control-selected-color: var(--brand-secondary-3);
@@ -17708,14 +17813,14 @@ var segmentedControlStyles = import_react109.css`
17708
17813
  border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
17709
17814
  font-size: var(--fs-xs);
17710
17815
  `;
17711
- var segmentedControlVerticalStyles = import_react109.css`
17816
+ var segmentedControlVerticalStyles = import_react111.css`
17712
17817
  flex-direction: column;
17713
17818
  --segmented-control-first-border-radius: var(--segmented-control-rounded-value)
17714
17819
  var(--segmented-control-rounded-value) 0 0;
17715
17820
  --segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
17716
17821
  var(--segmented-control-rounded-value);
17717
17822
  `;
17718
- var segmentedControlItemStyles = import_react109.css`
17823
+ var segmentedControlItemStyles = import_react111.css`
17719
17824
  &:first-of-type label {
17720
17825
  border-radius: var(--segmented-control-first-border-radius);
17721
17826
  }
@@ -17723,10 +17828,10 @@ var segmentedControlItemStyles = import_react109.css`
17723
17828
  border-radius: var(--segmented-control-last-border-radius);
17724
17829
  }
17725
17830
  `;
17726
- var segmentedControlInputStyles = import_react109.css`
17831
+ var segmentedControlInputStyles = import_react111.css`
17727
17832
  ${accessibleHidden}
17728
17833
  `;
17729
- var segmentedControlLabelStyles = import_react109.css`
17834
+ var segmentedControlLabelStyles = import_react111.css`
17730
17835
  position: relative;
17731
17836
  display: flex;
17732
17837
  align-items: center;
@@ -17763,23 +17868,23 @@ var segmentedControlLabelStyles = import_react109.css`
17763
17868
  background-color: var(--gray-400);
17764
17869
  }
17765
17870
  `;
17766
- var segmentedControlLabelIconOnlyStyles = import_react109.css`
17871
+ var segmentedControlLabelIconOnlyStyles = import_react111.css`
17767
17872
  padding-inline: 0.5em;
17768
17873
  `;
17769
- var segmentedControlLabelCheckStyles = import_react109.css`
17874
+ var segmentedControlLabelCheckStyles = import_react111.css`
17770
17875
  opacity: 0.5;
17771
17876
  `;
17772
- var segmentedControlLabelContentStyles = import_react109.css`
17877
+ var segmentedControlLabelContentStyles = import_react111.css`
17773
17878
  display: flex;
17774
17879
  align-items: center;
17775
17880
  justify-content: center;
17776
17881
  gap: var(--spacing-sm);
17777
17882
  height: 100%;
17778
17883
  `;
17779
- var segmentedControlLabelTextStyles = import_react109.css``;
17884
+ var segmentedControlLabelTextStyles = import_react111.css``;
17780
17885
 
17781
17886
  // src/components/SegmentedControl/SegmentedControl.tsx
17782
- var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
17887
+ var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
17783
17888
  var SegmentedControl = ({
17784
17889
  name,
17785
17890
  options,
@@ -17791,7 +17896,7 @@ var SegmentedControl = ({
17791
17896
  size = "md",
17792
17897
  ...props
17793
17898
  }) => {
17794
- const onOptionChange = (0, import_react111.useCallback)(
17899
+ const onOptionChange = (0, import_react113.useCallback)(
17795
17900
  (event) => {
17796
17901
  if (event.target.checked) {
17797
17902
  onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
@@ -17799,18 +17904,18 @@ var SegmentedControl = ({
17799
17904
  },
17800
17905
  [options, onChange]
17801
17906
  );
17802
- const sizeStyles = (0, import_react111.useMemo)(() => {
17907
+ const sizeStyles = (0, import_react113.useMemo)(() => {
17803
17908
  const map = {
17804
- sm: (0, import_react110.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
17805
- md: (0, import_react110.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
17806
- lg: (0, import_react110.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
17909
+ sm: (0, import_react112.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
17910
+ md: (0, import_react112.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
17911
+ lg: (0, import_react112.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
17807
17912
  };
17808
17913
  return map[size];
17809
17914
  }, [size]);
17810
- const isIconOnly = (0, import_react111.useMemo)(() => {
17915
+ const isIconOnly = (0, import_react113.useMemo)(() => {
17811
17916
  return options.every((option) => option.icon && !option.label);
17812
17917
  }, [options]);
17813
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
17918
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
17814
17919
  "div",
17815
17920
  {
17816
17921
  css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
@@ -17818,11 +17923,11 @@ var SegmentedControl = ({
17818
17923
  children: options.map((option, index) => {
17819
17924
  const text = option.label ? option.label : option.icon ? null : String(option.value);
17820
17925
  const isDisabled = disabled || option.disabled;
17821
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
17926
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
17822
17927
  Tooltip,
17823
17928
  {
17824
17929
  title: isDisabled || !option.tooltip ? "" : option.tooltip,
17825
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { css: segmentedControlItemStyles, "data-test-id": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
17930
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { css: segmentedControlItemStyles, "data-test-id": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
17826
17931
  "label",
17827
17932
  {
17828
17933
  css: [
@@ -17831,7 +17936,7 @@ var SegmentedControl = ({
17831
17936
  isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
17832
17937
  ],
17833
17938
  children: [
17834
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
17939
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
17835
17940
  "input",
17836
17941
  {
17837
17942
  css: segmentedControlInputStyles,
@@ -17843,10 +17948,10 @@ var SegmentedControl = ({
17843
17948
  disabled: isDisabled
17844
17949
  }
17845
17950
  ),
17846
- option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_cg19.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
17847
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
17848
- !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(option.icon, { size: "1.5em" }),
17849
- !text ? null : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
17951
+ option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_cg19.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
17952
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
17953
+ !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(option.icon, { size: "1.5em" }),
17954
+ !text ? null : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
17850
17955
  ] })
17851
17956
  ]
17852
17957
  }
@@ -17860,18 +17965,18 @@ var SegmentedControl = ({
17860
17965
  };
17861
17966
 
17862
17967
  // src/components/Skeleton/Skeleton.styles.ts
17863
- var import_react112 = require("@emotion/react");
17864
- var lightFadingOut = import_react112.keyframes`
17968
+ var import_react114 = require("@emotion/react");
17969
+ var lightFadingOut = import_react114.keyframes`
17865
17970
  from { opacity: 0.1; }
17866
17971
  to { opacity: 0.025; }
17867
17972
  `;
17868
- var skeletonStyles = import_react112.css`
17973
+ var skeletonStyles = import_react114.css`
17869
17974
  animation: ${lightFadingOut} 1s ease-out infinite alternate;
17870
17975
  background-color: var(--gray-900);
17871
17976
  `;
17872
17977
 
17873
17978
  // src/components/Skeleton/Skeleton.tsx
17874
- var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
17979
+ var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
17875
17980
  var Skeleton = ({
17876
17981
  width = "100%",
17877
17982
  height = "1.25rem",
@@ -17879,7 +17984,7 @@ var Skeleton = ({
17879
17984
  circle = false,
17880
17985
  children,
17881
17986
  ...otherProps
17882
- }) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
17987
+ }) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
17883
17988
  "div",
17884
17989
  {
17885
17990
  css: [
@@ -17902,8 +18007,8 @@ var Skeleton = ({
17902
18007
  var React20 = __toESM(require("react"));
17903
18008
 
17904
18009
  // src/components/Switch/Switch.styles.ts
17905
- var import_react113 = require("@emotion/react");
17906
- var SwitchInputContainer = import_react113.css`
18010
+ var import_react115 = require("@emotion/react");
18011
+ var SwitchInputContainer = import_react115.css`
17907
18012
  cursor: pointer;
17908
18013
  display: inline-block;
17909
18014
  position: relative;
@@ -17912,7 +18017,7 @@ var SwitchInputContainer = import_react113.css`
17912
18017
  vertical-align: middle;
17913
18018
  user-select: none;
17914
18019
  `;
17915
- var SwitchInput = import_react113.css`
18020
+ var SwitchInput = import_react115.css`
17916
18021
  appearance: none;
17917
18022
  border-radius: var(--rounded-full);
17918
18023
  background-color: var(--white);
@@ -17950,7 +18055,7 @@ var SwitchInput = import_react113.css`
17950
18055
  cursor: not-allowed;
17951
18056
  }
17952
18057
  `;
17953
- var SwitchInputDisabled = import_react113.css`
18058
+ var SwitchInputDisabled = import_react115.css`
17954
18059
  opacity: var(--opacity-50);
17955
18060
  cursor: not-allowed;
17956
18061
 
@@ -17958,7 +18063,7 @@ var SwitchInputDisabled = import_react113.css`
17958
18063
  cursor: not-allowed;
17959
18064
  }
17960
18065
  `;
17961
- var SwitchInputLabel = import_react113.css`
18066
+ var SwitchInputLabel = import_react115.css`
17962
18067
  align-items: center;
17963
18068
  color: var(--brand-secondary-1);
17964
18069
  display: inline-flex;
@@ -17980,26 +18085,26 @@ var SwitchInputLabel = import_react113.css`
17980
18085
  top: 0;
17981
18086
  }
17982
18087
  `;
17983
- var SwitchText = import_react113.css`
18088
+ var SwitchText = import_react115.css`
17984
18089
  color: var(--gray-500);
17985
18090
  font-size: var(--fs-sm);
17986
18091
  padding-inline: var(--spacing-2xl) 0;
17987
18092
  `;
17988
18093
 
17989
18094
  // src/components/Switch/Switch.tsx
17990
- var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
18095
+ var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
17991
18096
  var Switch = React20.forwardRef(
17992
18097
  ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
17993
18098
  let additionalText = infoText;
17994
18099
  if (infoText && toggleText) {
17995
18100
  additionalText = inputProps.checked ? toggleText : infoText;
17996
18101
  }
17997
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
17998
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
17999
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
18000
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { css: SwitchInputLabel, children: label })
18102
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
18103
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
18104
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
18105
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { css: SwitchInputLabel, children: label })
18001
18106
  ] }),
18002
- additionalText ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { css: SwitchText, children: additionalText }) : null,
18107
+ additionalText ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { css: SwitchText, children: additionalText }) : null,
18003
18108
  children
18004
18109
  ] });
18005
18110
  }
@@ -18009,8 +18114,8 @@ var Switch = React20.forwardRef(
18009
18114
  var React21 = __toESM(require("react"));
18010
18115
 
18011
18116
  // src/components/Table/Table.styles.ts
18012
- var import_react114 = require("@emotion/react");
18013
- var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => import_react114.css`
18117
+ var import_react116 = require("@emotion/react");
18118
+ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => import_react116.css`
18014
18119
  border-bottom: 1px solid var(--gray-400);
18015
18120
  border-collapse: collapse;
18016
18121
  min-width: 100%;
@@ -18021,65 +18126,65 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => impor
18021
18126
  padding: ${cellPadding};
18022
18127
  }
18023
18128
  `;
18024
- var tableHead = import_react114.css`
18129
+ var tableHead = import_react116.css`
18025
18130
  background: var(--gray-100);
18026
18131
  color: var(--brand-secondary-1);
18027
18132
  text-align: left;
18028
18133
  `;
18029
- var tableRow = import_react114.css`
18134
+ var tableRow = import_react116.css`
18030
18135
  border-bottom: 1px solid var(--gray-200);
18031
18136
  `;
18032
- var tableCellHead = import_react114.css`
18137
+ var tableCellHead = import_react116.css`
18033
18138
  font-size: var(--fs-sm);
18034
18139
  text-transform: uppercase;
18035
18140
  font-weight: var(--fw-bold);
18036
18141
  `;
18037
18142
 
18038
18143
  // src/components/Table/Table.tsx
18039
- var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
18144
+ var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
18040
18145
  var Table = React21.forwardRef(
18041
18146
  ({ children, cellPadding, ...otherProps }, ref) => {
18042
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
18147
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
18043
18148
  }
18044
18149
  );
18045
18150
  var TableHead = React21.forwardRef(
18046
18151
  ({ children, ...otherProps }, ref) => {
18047
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
18152
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
18048
18153
  }
18049
18154
  );
18050
18155
  var TableBody = React21.forwardRef(
18051
18156
  ({ children, ...otherProps }, ref) => {
18052
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("tbody", { ref, ...otherProps, children });
18157
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("tbody", { ref, ...otherProps, children });
18053
18158
  }
18054
18159
  );
18055
18160
  var TableFoot = React21.forwardRef(
18056
18161
  ({ children, ...otherProps }, ref) => {
18057
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("tfoot", { ref, ...otherProps, children });
18162
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("tfoot", { ref, ...otherProps, children });
18058
18163
  }
18059
18164
  );
18060
18165
  var TableRow = React21.forwardRef(
18061
18166
  ({ children, ...otherProps }, ref) => {
18062
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
18167
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
18063
18168
  }
18064
18169
  );
18065
18170
  var TableCellHead = React21.forwardRef(
18066
18171
  ({ children, ...otherProps }, ref) => {
18067
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
18172
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
18068
18173
  }
18069
18174
  );
18070
18175
  var TableCellData = React21.forwardRef(
18071
18176
  ({ children, ...otherProps }, ref) => {
18072
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("td", { ref, ...otherProps, children });
18177
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("td", { ref, ...otherProps, children });
18073
18178
  }
18074
18179
  );
18075
18180
 
18076
18181
  // src/components/Tabs/Tabs.tsx
18077
- var import_react116 = require("react");
18182
+ var import_react118 = require("react");
18078
18183
  var import_Tab = require("reakit/Tab");
18079
18184
 
18080
18185
  // src/components/Tabs/Tabs.styles.ts
18081
- var import_react115 = require("@emotion/react");
18082
- var tabButtonStyles = import_react115.css`
18186
+ var import_react117 = require("@emotion/react");
18187
+ var tabButtonStyles = import_react117.css`
18083
18188
  align-items: center;
18084
18189
  border: 0;
18085
18190
  height: 2.5rem;
@@ -18096,30 +18201,30 @@ var tabButtonStyles = import_react115.css`
18096
18201
  box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
18097
18202
  }
18098
18203
  `;
18099
- var tabButtonGroupStyles = import_react115.css`
18204
+ var tabButtonGroupStyles = import_react117.css`
18100
18205
  display: flex;
18101
18206
  gap: var(--spacing-base);
18102
18207
  border-bottom: 1px solid var(--gray-300);
18103
18208
  `;
18104
18209
 
18105
18210
  // src/components/Tabs/Tabs.tsx
18106
- var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
18107
- var CurrentTabContext = (0, import_react116.createContext)(null);
18211
+ var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
18212
+ var CurrentTabContext = (0, import_react118.createContext)(null);
18108
18213
  var useCurrentTab = () => {
18109
- const context = (0, import_react116.useContext)(CurrentTabContext);
18214
+ const context = (0, import_react118.useContext)(CurrentTabContext);
18110
18215
  if (!context) {
18111
18216
  throw new Error("This component can only be used inside <Tabs>");
18112
18217
  }
18113
18218
  return context;
18114
18219
  };
18115
18220
  var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
18116
- const selected = (0, import_react116.useMemo)(() => {
18221
+ const selected = (0, import_react118.useMemo)(() => {
18117
18222
  if (selectedId)
18118
18223
  return selectedId;
18119
18224
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
18120
18225
  }, [selectedId, useHashForState]);
18121
18226
  const tab = (0, import_Tab.useTabState)({ ...props, selectedId: selected });
18122
- (0, import_react116.useEffect)(() => {
18227
+ (0, import_react118.useEffect)(() => {
18123
18228
  var _a;
18124
18229
  const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
18125
18230
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -18127,29 +18232,29 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
18127
18232
  window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
18128
18233
  }
18129
18234
  }, [tab.selectedId, onSelectedIdChange, useHashForState]);
18130
- (0, import_react116.useEffect)(() => {
18235
+ (0, import_react118.useEffect)(() => {
18131
18236
  if (selected && selected !== tab.selectedId) {
18132
18237
  tab.setSelectedId(selected);
18133
18238
  }
18134
18239
  }, [selected]);
18135
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CurrentTabContext.Provider, { value: tab, children });
18240
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(CurrentTabContext.Provider, { value: tab, children });
18136
18241
  };
18137
18242
  var TabButtonGroup = ({ children, ...props }) => {
18138
18243
  const currentTab = useCurrentTab();
18139
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
18244
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
18140
18245
  };
18141
18246
  var TabButton = ({ children, id, ...props }) => {
18142
18247
  const currentTab = useCurrentTab();
18143
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
18248
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
18144
18249
  };
18145
18250
  var TabContent = ({ children, ...props }) => {
18146
18251
  const currentTab = useCurrentTab();
18147
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
18252
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
18148
18253
  };
18149
18254
 
18150
18255
  // src/components/Validation/StatusBullet.styles.ts
18151
- var import_react117 = require("@emotion/react");
18152
- var StatusBulletContainer = import_react117.css`
18256
+ var import_react119 = require("@emotion/react");
18257
+ var StatusBulletContainer = import_react119.css`
18153
18258
  align-items: center;
18154
18259
  align-self: center;
18155
18260
  color: var(--gray-500);
@@ -18166,33 +18271,33 @@ var StatusBulletContainer = import_react117.css`
18166
18271
  display: block;
18167
18272
  }
18168
18273
  `;
18169
- var StatusBulletBase = import_react117.css`
18274
+ var StatusBulletBase = import_react119.css`
18170
18275
  font-size: var(--fs-sm);
18171
18276
  &:before {
18172
18277
  width: var(--fs-xs);
18173
18278
  height: var(--fs-xs);
18174
18279
  }
18175
18280
  `;
18176
- var StatusBulletSmall = import_react117.css`
18281
+ var StatusBulletSmall = import_react119.css`
18177
18282
  font-size: var(--fs-xs);
18178
18283
  &:before {
18179
18284
  width: var(--fs-xxs);
18180
18285
  height: var(--fs-xxs);
18181
18286
  }
18182
18287
  `;
18183
- var StatusDraft = import_react117.css`
18288
+ var StatusDraft = import_react119.css`
18184
18289
  &:before {
18185
18290
  background: var(--white);
18186
18291
  box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
18187
18292
  }
18188
18293
  `;
18189
- var StatusModified = import_react117.css`
18294
+ var StatusModified = import_react119.css`
18190
18295
  &:before {
18191
18296
  background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
18192
18297
  box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
18193
18298
  }
18194
18299
  `;
18195
- var StatusError = import_react117.css`
18300
+ var StatusError = import_react119.css`
18196
18301
  color: var(--error);
18197
18302
  &:before {
18198
18303
  /* TODO: replace this with an svg icon */
@@ -18205,19 +18310,19 @@ var StatusError = import_react117.css`
18205
18310
  );
18206
18311
  }
18207
18312
  `;
18208
- var StatusPublished = import_react117.css`
18313
+ var StatusPublished = import_react119.css`
18209
18314
  &:before {
18210
18315
  background: var(--primary-action-default);
18211
18316
  }
18212
18317
  `;
18213
- var StatusOrphan = import_react117.css`
18318
+ var StatusOrphan = import_react119.css`
18214
18319
  &:before {
18215
18320
  background: var(--brand-secondary-5);
18216
18321
  }
18217
18322
  `;
18218
18323
 
18219
18324
  // src/components/Validation/StatusBullet.tsx
18220
- var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
18325
+ var import_jsx_runtime104 = require("@emotion/react/jsx-runtime");
18221
18326
  var StatusBullet = ({
18222
18327
  status,
18223
18328
  hideText = false,
@@ -18235,7 +18340,7 @@ var StatusBullet = ({
18235
18340
  Previous: StatusDraft
18236
18341
  };
18237
18342
  const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
18238
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
18343
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
18239
18344
  "span",
18240
18345
  {
18241
18346
  role: "status",
@@ -18270,6 +18375,7 @@ var StatusBullet = ({
18270
18375
  Details,
18271
18376
  DismissibleChipAction,
18272
18377
  Drawer,
18378
+ DrawerContent,
18273
18379
  DrawerProvider,
18274
18380
  DrawerRenderer,
18275
18381
  EditTeamIntegrationTile,