@uniformdev/design-system 19.51.1-alpha.10 → 19.53.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
@@ -1382,6 +1382,7 @@ __export(src_exports, {
1382
1382
  Icon: () => Icon,
1383
1383
  IconButton: () => IconButton,
1384
1384
  IconsProvider: () => IconsProvider,
1385
+ Image: () => Image,
1385
1386
  ImageBroken: () => ImageBroken,
1386
1387
  InfoMessage: () => InfoMessage,
1387
1388
  InlineAlert: () => InlineAlert,
@@ -1487,8 +1488,6 @@ __export(src_exports, {
1487
1488
  borderTopIcon: () => borderTopIcon,
1488
1489
  breakpoints: () => breakpoints,
1489
1490
  button: () => button,
1490
- buttonAccentAltDark: () => buttonAccentAltDark,
1491
- buttonAccentAltDarkOutline: () => buttonAccentAltDarkOutline,
1492
1491
  buttonDestructive: () => buttonDestructive,
1493
1492
  buttonGhost: () => buttonGhost,
1494
1493
  buttonGhostDestructive: () => buttonGhostDestructive,
@@ -1896,34 +1895,6 @@ var buttonRippleEffect = (props) => import_react3.css`
1896
1895
  transition: background 0s;
1897
1896
  }
1898
1897
  `;
1899
- var buttonAccentAltDark = import_react3.css`
1900
- background: var(--accent-alt-dark);
1901
- color: var(--white);
1902
-
1903
- &:disabled {
1904
- background: var(--gray-300);
1905
- color: var(--white);
1906
- }
1907
-
1908
- ${buttonRippleEffect({ hoverColor: "var(--brand-secondary-1)" })}
1909
- `;
1910
- var buttonAccentAltDarkOutline = import_react3.css`
1911
- background: var(--white);
1912
- color: var(--accent-alt-dark);
1913
- box-shadow: 0 0 0 1px var(--accent-alt-dark);
1914
- transition: box-shadow var(--duration-fast) var(--timing-ease-out);
1915
-
1916
- &:hover {
1917
- color: var(--primary-action-hover);
1918
- }
1919
-
1920
- &:disabled {
1921
- color: var(--gray-300);
1922
- box-shadow: 0 0 0 1px var(--gray-300);
1923
- }
1924
-
1925
- ${buttonRippleEffect({ hoverColor: "var(--gray-50)" })}
1926
- `;
1927
1898
  var buttonPrimary = import_react3.css`
1928
1899
  background: var(--brand-secondary-1);
1929
1900
  color: var(--white);
@@ -2634,9 +2605,6 @@ var IconImg = import_react12.css`
2634
2605
  vertical-align: middle;
2635
2606
  }
2636
2607
  `;
2637
- var IconWhite = import_react12.css`
2638
- color: var(--white);
2639
- `;
2640
2608
  var IconColorDefault = import_react12.css`
2641
2609
  color: var(--brand-secondary-3);
2642
2610
  `;
@@ -2692,7 +2660,6 @@ var IconInner = ({ icon, iconColor = "default", size = "1.5rem", ...otherProps }
2692
2660
  const isIconName = typeof icon === "string";
2693
2661
  const { iconsMap, isLoading } = useIconContext();
2694
2662
  const customColor = {
2695
- white: IconWhite,
2696
2663
  action: IconColorAction,
2697
2664
  default: IconColorDefault,
2698
2665
  gray: IconColorGray,
@@ -3302,60 +3269,6 @@ var diamondFill = (0, import_all_files.GenIcon)({
3302
3269
  }
3303
3270
  ]
3304
3271
  });
3305
- var magicWand = (0, import_all_files.GenIcon)({
3306
- tag: "svg",
3307
- attr: {
3308
- role: "img",
3309
- viewBox: "0 0 24 24"
3310
- },
3311
- child: [
3312
- {
3313
- tag: "path",
3314
- attr: {
3315
- fill: "currentColor",
3316
- fillOpacity: "0.5",
3317
- d: "M12.6021 0.799316C12.5443 0.799316 12.487 0.802204 12.4305 0.807862C12.3484 1.91145 11.5902 2.79082 10.6387 2.88601C10.6338 2.9516 10.6313 3.01798 10.6313 3.08503C10.6313 3.15208 10.6338 3.21846 10.6387 3.28405C11.5902 3.37924 12.3484 4.25862 12.4305 5.3622C12.487 5.36786 12.5443 5.37074 12.6021 5.37074C12.6599 5.37074 12.7171 5.36786 12.7737 5.3622C12.8558 4.25862 13.614 3.37924 14.5655 3.28405C14.5704 3.21846 14.5729 3.15208 14.5729 3.08503C14.5729 3.01798 14.5704 2.9516 14.5655 2.88601C13.614 2.79082 12.8558 1.91145 12.7737 0.807862C12.7171 0.802204 12.6599 0.799316 12.6021 0.799316Z"
3318
- },
3319
- child: []
3320
- },
3321
- {
3322
- tag: "path",
3323
- attr: {
3324
- fill: "currentColor",
3325
- fillOpacity: "0.5",
3326
- d: "M17.8945 12.4247C17.8367 12.4247 17.7795 12.4276 17.7229 12.4332C17.6409 13.5368 16.8826 14.4162 15.9311 14.5114C15.9262 14.577 15.9237 14.6433 15.9237 14.7104C15.9237 14.7774 15.9262 14.8438 15.9311 14.9094C16.8826 15.0046 17.6409 15.884 17.7229 16.9876C17.7795 16.9932 17.8367 16.9961 17.8945 16.9961C17.9523 16.9961 18.0096 16.9932 18.0661 16.9876C18.1482 15.884 18.9064 15.0046 19.858 14.9094C19.8628 14.8438 19.8653 14.7774 19.8653 14.7104C19.8653 14.6433 19.8628 14.577 19.858 14.5114C18.9064 14.4162 18.1482 13.5368 18.0661 12.4332C18.0096 12.4276 17.9523 12.4247 17.8945 12.4247Z"
3327
- },
3328
- child: []
3329
- },
3330
- {
3331
- tag: "path",
3332
- attr: {
3333
- fill: "currentColor",
3334
- fillOpacity: "0.5",
3335
- d: "M21.571 1.6413C21.509 1.6413 21.4476 1.6449 21.387 1.65195C21.299 3.02718 20.4858 4.12302 19.4653 4.24164C19.4601 4.32337 19.4574 4.40609 19.4574 4.48965C19.4574 4.57321 19.4601 4.65592 19.4653 4.73766C20.4858 4.85628 21.299 5.95211 21.387 7.32734C21.4476 7.33439 21.509 7.33799 21.571 7.33799C21.633 7.33799 21.6944 7.33439 21.755 7.32734C21.8431 5.95211 22.6562 4.85628 23.6767 4.73766C23.6819 4.65592 23.6846 4.57321 23.6846 4.48965C23.6846 4.40609 23.6819 4.32337 23.6767 4.24164C22.6562 4.12302 21.8431 3.02718 21.755 1.65195C21.6944 1.6449 21.633 1.6413 21.571 1.6413Z"
3336
- },
3337
- child: []
3338
- },
3339
- {
3340
- tag: "path",
3341
- attr: {
3342
- fill: "currentColor",
3343
- d: "M15.6875 11.9141L12.5116 8.73823L2.07262 19.1773C1.9166 19.3333 1.9166 19.5862 2.07262 19.7422L4.68354 22.3532C4.83956 22.5092 5.0925 22.5092 5.24852 22.3532L15.6875 11.9141Z"
3344
- },
3345
- child: []
3346
- },
3347
- {
3348
- tag: "path",
3349
- attr: {
3350
- fill: "currentColor",
3351
- fillRule: "evenodd",
3352
- clipRule: "evenodd",
3353
- d: "M16.8929 4.92196L19.5038 7.53288L14.8688 12.1679L12.2578 9.55702L16.8929 4.92196ZM19.7863 7.2504C19.9423 7.40641 19.9423 7.65936 19.7863 7.81537L15.6875 11.9141L12.5116 8.73823L16.6104 4.63947C16.7664 4.48346 17.0194 4.48346 17.1754 4.63947L19.7863 7.2504Z"
3354
- },
3355
- child: []
3356
- }
3357
- ]
3358
- });
3359
3272
  var customIcons = {
3360
3273
  "rectangle-rounded": rectangleRoundedIcon,
3361
3274
  card: cardIcon,
@@ -3379,8 +3292,7 @@ var customIcons = {
3379
3292
  "clear-formatting": clearFormatting,
3380
3293
  "yes-no": yesNoIcon,
3381
3294
  "diamond-outline": diamondOutline,
3382
- "diamond-fill": diamondFill,
3383
- "magic-wand": magicWand
3295
+ "diamond-fill": diamondFill
3384
3296
  };
3385
3297
 
3386
3298
  // src/components/AddListButton/AddListButton.styles.ts
@@ -3958,7 +3870,7 @@ var PageHeaderSection = ({
3958
3870
  if (linkText && linkProps && !linkManagerComponent) {
3959
3871
  throw Error("You must provide a linkManagerComponent");
3960
3872
  }
3961
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { css: PageHeaderSectionContainer, children: [
3873
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { css: PageHeaderSectionContainer, "data-testid": "page-header", children: [
3962
3874
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("section", { css: PageHeaderSectionDetails, children: [
3963
3875
  linkText && linkProps && linkManagerComponent ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { css: PageHeaderSectionLinkContainer, children: [
3964
3876
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { icon: import_CgChevronLeft2.CgChevronLeft, size: 18, css: PageHeaderSectionLinkIcon, iconColor: "currentColor" }),
@@ -3968,7 +3880,8 @@ var PageHeaderSection = ({
3968
3880
  linkManagerComponent,
3969
3881
  ...linkProps,
3970
3882
  css: PageHeaderSectionLink,
3971
- text: linkText
3883
+ text: linkText,
3884
+ "data-testid": "page-header-link"
3972
3885
  }
3973
3886
  )
3974
3887
  ] }) : null,
@@ -13009,8 +12922,6 @@ var Button = React6.forwardRef(
13009
12922
  const buttonTheme = {
13010
12923
  primary: buttonPrimary,
13011
12924
  primaryInvert: buttonPrimaryInvert,
13012
- "accent-alt-dark": buttonAccentAltDark,
13013
- "accent-alt-dark-outline": buttonAccentAltDarkOutline,
13014
12925
  destructive: buttonDestructive,
13015
12926
  secondary: buttonSecondary,
13016
12927
  secondaryInvert: buttonSecondaryInvert,
@@ -13252,6 +13163,7 @@ var Menu = ({
13252
13163
  typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
13253
13164
  ],
13254
13165
  className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
13166
+ "data-testid": "more-menu",
13255
13167
  children: disableAutoSeparatorManagement ? children : filterMenuSeparators(children)
13256
13168
  }
13257
13169
  ) })
@@ -15150,51 +15062,62 @@ var import_react58 = require("react");
15150
15062
  init_emotion_jsx_shim();
15151
15063
  var import_react57 = require("@emotion/react");
15152
15064
  var iconButton = import_react57.css`
15153
- border-radius: 50%;
15154
- padding: var(--spacing-sm);
15155
- `;
15065
+ padding: 0;
15066
+ max-width: unset;
15067
+ justify-content: center;
15068
+ width: var(--button-size);
15069
+ height: var(--button-size);
15070
+ `;
15071
+ var sizes = {
15072
+ xs: import_react57.css`
15073
+ --button-size: 2rem;
15074
+ `,
15075
+ sm: import_react57.css`
15076
+ --button-size: 2.25rem;
15077
+ `,
15078
+ md: import_react57.css`
15079
+ --button-size: 2.5rem;
15080
+ `
15081
+ };
15082
+ var variants = {
15083
+ square: null,
15084
+ rounded: import_react57.css`
15085
+ border-radius: 50%;
15086
+ `
15087
+ };
15156
15088
 
15157
15089
  // src/components/IconButton/IconButton.tsx
15158
15090
  var import_jsx_runtime47 = require("@emotion/react/jsx-runtime");
15159
- var IconButton = (0, import_react58.forwardRef)(({ children, ...props }, ref) => {
15160
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Button, { ref, css: iconButton, ...props, children });
15161
- });
15091
+ var IconButton = (0, import_react58.forwardRef)(
15092
+ ({ children, size = "md", variant = "square", ...props }, ref) => {
15093
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Button, { ref, css: [iconButton, variants[variant], sizes[size]], ...props, children });
15094
+ }
15095
+ );
15162
15096
  IconButton.displayName = "IconButton";
15163
15097
 
15164
- // src/components/Image/ImageBroken.tsx
15098
+ // src/components/Image/index.ts
15165
15099
  init_emotion_jsx_shim();
15166
- var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
15167
- var ImageBroken = ({ width, height, ...props }) => {
15168
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
15169
- "svg",
15170
- {
15171
- role: "img",
15172
- width: width != null ? width : "214",
15173
- height: height != null ? height : "214",
15174
- viewBox: "0 0 214 214",
15175
- fill: "none",
15176
- xmlns: "http://www.w3.org/2000/svg",
15177
- xmlnsXlink: "http://www.w3.org/1999/xlink",
15178
- "data-testid": "broken-image",
15179
- ...props,
15180
- children: [
15181
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
15182
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
15183
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("defs", { children: [
15184
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
15185
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
15186
- "image",
15187
- {
15188
- id: "image0_761_4353",
15189
- width: "400",
15190
- height: "400",
15191
- xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8mdhmcblxN/+/tiqKpajOoHZZJx0wZ8CWJ51+aCD4hjJh1FfCy45vKF4IrLN92etUKG+I54hGlKlfiZOF7p0Ws9XNcb7OsGcX1YNYqrVEcpx5FHFhKK0GHDhEKcwyJ59P/MXHcmgx1w7FH/NmrQaFJCmhROW1TiZRhgmEGcOIkEZUp4/dtDT7PIh/lD+op72mYMuNaAYeZpk0dANATclrliKj/O+toBayuVdDnUBAZPHOetBASngM6j47w3HadzDgw8Aa32JyLnYb5bLiabAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAAGQoAMABAAAAAEAAAGQAAAAADj5TfYAABuPSURBVHgB7Z0Ld9RG1kX94GmMAYcECJAwyZq1vv//czKLDEMghkB4GIPf9ne6FRq5W60qt9Vq3aPNypoR3erSvftUTuqWSqXl/YPDJf5AAAIQiEBgJUKQxAgBCEBgQADDoh9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9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DEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
15192
- }
15193
- )
15194
- ] })
15195
- ]
15100
+
15101
+ // src/components/Image/Image.tsx
15102
+ init_emotion_jsx_shim();
15103
+ var import_react72 = require("react");
15104
+
15105
+ // src/utils/url.ts
15106
+ init_emotion_jsx_shim();
15107
+ var isValidUrl = (urlString, options = {}) => {
15108
+ try {
15109
+ const isRelativeToLocation = /^([/.])/.test(urlString);
15110
+ const url = new URL(
15111
+ urlString,
15112
+ options.allowRelative && isRelativeToLocation ? "https://defaultbaseurl.com" : void 0
15113
+ );
15114
+ if (options.isSecure) {
15115
+ return url.protocol === "https:";
15196
15116
  }
15197
- );
15117
+ return true;
15118
+ } catch (e) {
15119
+ return false;
15120
+ }
15198
15121
  };
15199
15122
 
15200
15123
  // src/components/Input/Caption.tsx
@@ -15212,9 +15135,9 @@ var CaptionText = (dynamicSize) => import_react59.css`
15212
15135
  `;
15213
15136
 
15214
15137
  // src/components/Input/Caption.tsx
15215
- var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
15138
+ var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
15216
15139
  var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
15217
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
15140
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
15218
15141
  };
15219
15142
 
15220
15143
  // src/components/Input/CheckboxWithInfo.tsx
@@ -15295,21 +15218,21 @@ var InfoDialogMessage = import_react60.css`
15295
15218
  `;
15296
15219
 
15297
15220
  // src/components/Input/CheckboxWithInfo.tsx
15298
- var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
15221
+ var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
15299
15222
  var InfoDialog = ({ message }) => {
15300
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
15301
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
15302
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
15223
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
15224
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
15225
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
15303
15226
  ] });
15304
15227
  };
15305
15228
  var CheckboxWithInfo = (0, import_react61.forwardRef)(
15306
15229
  ({ label, name, info, ...props }, ref) => {
15307
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { css: CheckboxWithInfoContainer, children: [
15308
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("label", { css: CheckboxWithInfoLabel, children: [
15309
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
15310
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: label })
15230
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { css: CheckboxWithInfoContainer, children: [
15231
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("label", { css: CheckboxWithInfoLabel, children: [
15232
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
15233
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { children: label })
15311
15234
  ] }),
15312
- info ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(InfoDialog, { message: info }) : null
15235
+ info ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(InfoDialog, { message: info }) : null
15313
15236
  ] });
15314
15237
  }
15315
15238
  );
@@ -15329,10 +15252,10 @@ var ErrorText = import_react62.css`
15329
15252
  `;
15330
15253
 
15331
15254
  // src/components/Input/ErrorMessage.tsx
15332
- var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
15255
+ var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
15333
15256
  var ErrorMessage = ({ message, testId, ...otherProps }) => {
15334
- return message ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
15335
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: import_MdWarning.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
15257
+ return message ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
15258
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: import_MdWarning.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
15336
15259
  message
15337
15260
  ] }) : null;
15338
15261
  };
@@ -15383,12 +15306,12 @@ var fieldsetBody = import_react63.css`
15383
15306
  `;
15384
15307
 
15385
15308
  // src/components/Input/Fieldset.tsx
15386
- var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
15309
+ var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
15387
15310
  var Fieldset = React15.forwardRef(
15388
15311
  ({ legend, disabled, children, invert, ...props }, ref) => {
15389
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
15312
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
15390
15313
  legend,
15391
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { css: fieldsetBody, children })
15314
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { css: fieldsetBody, children })
15392
15315
  ] });
15393
15316
  }
15394
15317
  );
@@ -15414,10 +15337,10 @@ var InfoIcon2 = import_react64.css`
15414
15337
  `;
15415
15338
 
15416
15339
  // src/components/Input/InfoMessage.tsx
15417
- var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
15340
+ var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
15418
15341
  var InfoMessage = ({ message, testId, ...props }) => {
15419
- return message ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
15420
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { css: InfoIcon2, icon: import_MdInfoOutline.MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
15342
+ return message ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
15343
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { css: InfoIcon2, icon: import_MdInfoOutline.MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
15421
15344
  message
15422
15345
  ] }) : null;
15423
15346
  };
@@ -15428,9 +15351,9 @@ var React16 = __toESM(require("react"));
15428
15351
 
15429
15352
  // src/components/Input/Label.tsx
15430
15353
  init_emotion_jsx_shim();
15431
- var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
15354
+ var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
15432
15355
  var Label = ({ children, className, testId, ...props }) => {
15433
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
15356
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15434
15357
  "label",
15435
15358
  {
15436
15359
  css: [labelText, typeof className === "object" ? className : void 0],
@@ -15460,16 +15383,16 @@ var WarningIcon = import_react65.css`
15460
15383
  `;
15461
15384
 
15462
15385
  // src/components/Input/WarningMessage.tsx
15463
- var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
15386
+ var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
15464
15387
  var WarningMessage = ({ message, testId, ...props }) => {
15465
- return message ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
15466
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { css: WarningIcon, icon: import_MdWarning2.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
15388
+ return message ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
15389
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { css: WarningIcon, icon: import_MdWarning2.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
15467
15390
  message
15468
15391
  ] }) : null;
15469
15392
  };
15470
15393
 
15471
15394
  // src/components/Input/Input.tsx
15472
- var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
15395
+ var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
15473
15396
  var Input = React16.forwardRef(
15474
15397
  ({
15475
15398
  label,
@@ -15489,13 +15412,13 @@ var Input = React16.forwardRef(
15489
15412
  classNameLabel,
15490
15413
  ...props
15491
15414
  }, ref) => {
15492
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
15415
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
15493
15416
  "div",
15494
15417
  {
15495
15418
  css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
15496
15419
  "data-testid": containerTestId ? containerTestId : "container-input-field",
15497
15420
  children: [
15498
- showLabel ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15421
+ showLabel ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
15499
15422
  Label,
15500
15423
  {
15501
15424
  htmlFor: id,
@@ -15505,13 +15428,13 @@ var Input = React16.forwardRef(
15505
15428
  children: label
15506
15429
  }
15507
15430
  ) : null,
15508
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
15431
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
15509
15432
  "div",
15510
15433
  {
15511
15434
  css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
15512
15435
  className: typeof classNameContainer === "string" ? classNameContainer : "",
15513
15436
  children: [
15514
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15437
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
15515
15438
  "input",
15516
15439
  {
15517
15440
  id,
@@ -15527,13 +15450,13 @@ var Input = React16.forwardRef(
15527
15450
  ref
15528
15451
  }
15529
15452
  ),
15530
- icon ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { css: inputIcon, children: icon }) : null
15453
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { css: inputIcon, children: icon }) : null
15531
15454
  ]
15532
15455
  }
15533
15456
  ),
15534
- caption ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
15535
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
15536
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WarningMessage, { message: warningMessage }) : null
15457
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
15458
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
15459
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WarningMessage, { message: warningMessage }) : null
15537
15460
  ]
15538
15461
  }
15539
15462
  );
@@ -15543,10 +15466,10 @@ var Input = React16.forwardRef(
15543
15466
  // src/components/Input/InputComboBox.tsx
15544
15467
  init_emotion_jsx_shim();
15545
15468
  var import_react_select = __toESM(require("react-select"));
15546
- var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
15469
+ var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
15547
15470
  function InputComboBox(props) {
15548
15471
  var _a;
15549
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15472
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15550
15473
  import_react_select.default,
15551
15474
  {
15552
15475
  ...props,
@@ -15748,7 +15671,7 @@ var inlineSelectMenuClosed = import_react66.css`
15748
15671
  `;
15749
15672
 
15750
15673
  // src/components/Input/InputInlineSelect.tsx
15751
- var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
15674
+ var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
15752
15675
  var InputInlineSelect = ({
15753
15676
  classNameContainer,
15754
15677
  options,
@@ -15762,7 +15685,7 @@ var InputInlineSelect = ({
15762
15685
  const divRef = (0, import_react68.useRef)(null);
15763
15686
  useOutsideClick(divRef, () => setMenuVisible(false));
15764
15687
  const selected = options.find((option) => option.value === value);
15765
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15688
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15766
15689
  "div",
15767
15690
  {
15768
15691
  ref: divRef,
@@ -15772,7 +15695,7 @@ var InputInlineSelect = ({
15772
15695
  `,
15773
15696
  className: typeof classNameContainer === "string" ? classNameContainer : "",
15774
15697
  children: [
15775
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15698
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15776
15699
  "button",
15777
15700
  {
15778
15701
  type: "button",
@@ -15786,18 +15709,18 @@ var InputInlineSelect = ({
15786
15709
  disabled,
15787
15710
  ...props,
15788
15711
  children: [
15789
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
15790
- disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: import_CgChevronDown3.CgChevronDown, iconColor: "currentColor", size: 24 })
15712
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
15713
+ disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { icon: import_CgChevronDown3.CgChevronDown, iconColor: "currentColor", size: 24 })
15791
15714
  ]
15792
15715
  }
15793
15716
  ),
15794
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15717
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15795
15718
  "div",
15796
15719
  {
15797
15720
  id: `and-or-${props.id}`,
15798
15721
  css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
15799
15722
  "aria-hidden": !menuVisible,
15800
- children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15723
+ children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15801
15724
  "button",
15802
15725
  {
15803
15726
  type: "button",
@@ -15821,7 +15744,7 @@ var InputInlineSelect = ({
15821
15744
  init_emotion_jsx_shim();
15822
15745
  var import_CgClose5 = require("@react-icons/all-files/cg/CgClose");
15823
15746
  var import_CgSearch2 = require("@react-icons/all-files/cg/CgSearch");
15824
- var import_jsx_runtime59 = require("@emotion/react/jsx-runtime");
15747
+ var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
15825
15748
  var InputKeywordSearch = ({
15826
15749
  onSearchTextChanged,
15827
15750
  disabled = false,
@@ -15842,7 +15765,7 @@ var InputKeywordSearch = ({
15842
15765
  e.preventDefault();
15843
15766
  }
15844
15767
  };
15845
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15768
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15846
15769
  Input,
15847
15770
  {
15848
15771
  type: "text",
@@ -15850,7 +15773,7 @@ var InputKeywordSearch = ({
15850
15773
  placeholder,
15851
15774
  showLabel: false,
15852
15775
  value,
15853
- icon: value ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: import_CgClose5.CgClose, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: import_CgSearch2.CgSearch, iconColor: "gray", size: "1rem" }),
15776
+ icon: value ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: import_CgClose5.CgClose, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: import_CgSearch2.CgSearch, iconColor: "gray", size: "1rem" }),
15854
15777
  onChange: handleSearchTextChanged,
15855
15778
  onKeyPress: preventSubmitOnField,
15856
15779
  disabled,
@@ -15869,7 +15792,7 @@ var InputKeywordSearch = ({
15869
15792
 
15870
15793
  // src/components/Input/InputSelect.tsx
15871
15794
  init_emotion_jsx_shim();
15872
- var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
15795
+ var import_jsx_runtime59 = require("@emotion/react/jsx-runtime");
15873
15796
  var InputSelect = ({
15874
15797
  label,
15875
15798
  defaultOption,
@@ -15885,13 +15808,13 @@ var InputSelect = ({
15885
15808
  classNameLabel,
15886
15809
  ...props
15887
15810
  }) => {
15888
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
15811
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
15889
15812
  "div",
15890
15813
  {
15891
15814
  css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
15892
15815
  className: typeof classNameContainer === "string" ? classNameContainer : "",
15893
15816
  children: [
15894
- showLabel ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
15817
+ showLabel ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
15895
15818
  Label,
15896
15819
  {
15897
15820
  htmlFor: props.id,
@@ -15903,7 +15826,7 @@ var InputSelect = ({
15903
15826
  ]
15904
15827
  }
15905
15828
  ) }) : null,
15906
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
15829
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
15907
15830
  "select",
15908
15831
  {
15909
15832
  title: label,
@@ -15918,14 +15841,14 @@ var InputSelect = ({
15918
15841
  className: typeof classNameControl === "string" ? classNameControl : "",
15919
15842
  ...props,
15920
15843
  children: [
15921
- defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("option", { value: "", children: defaultOption }) : null,
15922
- options.map((opt, index) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("option", { value: opt.label, ...opt }, index))
15844
+ defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("option", { value: "", children: defaultOption }) : null,
15845
+ options.map((opt, index) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("option", { value: opt.label, ...opt }, index))
15923
15846
  ]
15924
15847
  }
15925
15848
  ),
15926
- caption ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Caption, { children: caption }) : null,
15927
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ErrorMessage, { message: errorMessage }) : null,
15928
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(WarningMessage, { message: warningMessage }) : null
15849
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Caption, { children: caption }) : null,
15850
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ErrorMessage, { message: errorMessage }) : null,
15851
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(WarningMessage, { message: warningMessage }) : null
15929
15852
  ]
15930
15853
  }
15931
15854
  );
@@ -15934,7 +15857,7 @@ var InputSelect = ({
15934
15857
  // src/components/Input/InputToggle.tsx
15935
15858
  init_emotion_jsx_shim();
15936
15859
  var React17 = __toESM(require("react"));
15937
- var import_jsx_runtime61 = require("@emotion/react/jsx-runtime");
15860
+ var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
15938
15861
  var InputToggle = React17.forwardRef(
15939
15862
  ({
15940
15863
  label,
@@ -15949,13 +15872,13 @@ var InputToggle = React17.forwardRef(
15949
15872
  fontWeight = "medium",
15950
15873
  ...props
15951
15874
  }, ref) => {
15952
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
15875
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
15953
15876
  Label,
15954
15877
  {
15955
15878
  css: [inputToggleLabel, disabled ? inputDisabled : void 0],
15956
15879
  "data-testid": testId ? testId : "input-toggle",
15957
15880
  children: [
15958
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15881
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15959
15882
  "input",
15960
15883
  {
15961
15884
  ref,
@@ -15967,11 +15890,11 @@ var InputToggle = React17.forwardRef(
15967
15890
  ...props
15968
15891
  }
15969
15892
  ),
15970
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { css: inlineLabel(fontWeight), children: label }),
15971
- caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { css: inputToggleMessageContainer, children: [
15972
- caption ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Caption, { children: caption }) : null,
15973
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ErrorMessage, { message: errorMessage }) : null,
15974
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(WarningMessage, { message: warningMessage }) : null
15893
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { css: inlineLabel(fontWeight), children: label }),
15894
+ caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { css: inputToggleMessageContainer, children: [
15895
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Caption, { children: caption }) : null,
15896
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ErrorMessage, { message: errorMessage }) : null,
15897
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(WarningMessage, { message: warningMessage }) : null
15975
15898
  ] }) : null
15976
15899
  ]
15977
15900
  }
@@ -15981,9 +15904,9 @@ var InputToggle = React17.forwardRef(
15981
15904
 
15982
15905
  // src/components/Input/Legend.tsx
15983
15906
  init_emotion_jsx_shim();
15984
- var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
15907
+ var import_jsx_runtime61 = require("@emotion/react/jsx-runtime");
15985
15908
  var Legend = ({ children }) => {
15986
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("legend", { css: fieldsetLegend, children });
15909
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("legend", { css: fieldsetLegend, children });
15987
15910
  };
15988
15911
 
15989
15912
  // src/components/Input/SuccessMessage.tsx
@@ -16007,10 +15930,10 @@ var SuccessIcon2 = import_react69.css`
16007
15930
  `;
16008
15931
 
16009
15932
  // src/components/Input/SuccessMessage.tsx
16010
- var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
15933
+ var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
16011
15934
  var SuccessMessage = ({ message, testId, ...props }) => {
16012
- return message ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
16013
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { css: SuccessIcon2, icon: import_CgCheckO2.CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
15935
+ return message ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
15936
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { css: SuccessIcon2, icon: import_CgCheckO2.CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
16014
15937
  message
16015
15938
  ] }) : null;
16016
15939
  };
@@ -16018,13 +15941,13 @@ var SuccessMessage = ({ message, testId, ...props }) => {
16018
15941
  // src/components/Input/Textarea.tsx
16019
15942
  init_emotion_jsx_shim();
16020
15943
  var import_react70 = require("react");
16021
- var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
15944
+ var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
16022
15945
  var Textarea = (0, import_react70.forwardRef)(
16023
15946
  ({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
16024
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
16025
- showLabel ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("label", { htmlFor: id, css: [labelText], children: label }) : null,
16026
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: [inputContainer], children: [
16027
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
15947
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
15948
+ showLabel ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("label", { htmlFor: id, css: [labelText], children: label }) : null,
15949
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { css: [inputContainer], children: [
15950
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
16028
15951
  "textarea",
16029
15952
  {
16030
15953
  ref,
@@ -16039,135 +15962,310 @@ var Textarea = (0, import_react70.forwardRef)(
16039
15962
  ...props
16040
15963
  }
16041
15964
  ),
16042
- icon ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { css: inputIcon, children: icon }) : null
15965
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { css: inputIcon, children: icon }) : null
16043
15966
  ] }),
16044
- caption ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Caption, { children: caption }) : null,
16045
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ErrorMessage, { message: errorMessage }) : null,
16046
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(WarningMessage, { message: warningMessage }) : null
15967
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Caption, { children: caption }) : null,
15968
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ErrorMessage, { message: errorMessage }) : null,
15969
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(WarningMessage, { message: warningMessage }) : null
16047
15970
  ] });
16048
15971
  }
16049
15972
  );
16050
15973
 
16051
- // src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
16052
- init_emotion_jsx_shim();
16053
-
16054
- // src/components/Tiles/CreateTeamIntegrationTile.tsx
16055
- init_emotion_jsx_shim();
16056
- var import_react72 = require("@emotion/react");
16057
- var import_CgAdd3 = require("@react-icons/all-files/cg/CgAdd");
16058
- var import_CgChevronRight3 = require("@react-icons/all-files/cg/CgChevronRight");
16059
-
16060
- // src/components/Tiles/styles/IntegrationTile.styles.ts
15974
+ // src/components/Image/Image.styles.ts
16061
15975
  init_emotion_jsx_shim();
16062
15976
  var import_react71 = require("@emotion/react");
16063
- var IntegrationTileContainer = import_react71.css`
16064
- align-items: center;
16065
- box-sizing: border-box;
16066
- border-radius: var(--rounded-base);
16067
- border: 1px solid var(--gray-300);
16068
- background: var(--white);
16069
- display: inline-flex;
16070
- flex-flow: column wrap;
16071
- padding: var(--spacing-base);
15977
+ var imageWrapper = import_react71.css`
16072
15978
  position: relative;
16073
- min-height: 13rem;
16074
- max-height: 13rem;
16075
- text-align: center;
16076
- justify-content: center;
16077
- margin: auto;
16078
- transition: box-shadow var(--duration-fast) var(--timing-ease-out);
16079
-
16080
- &:hover {
16081
- box-shadow: var(--shadow-md);
16082
- }
16083
-
16084
- ${supports("aspect-ratio: 1/1")} {
16085
- aspect-ratio: 1/1;
16086
-
16087
- ${mq("sm")} {
16088
- max-width: unset;
16089
- max-height: unset;
16090
- margin: unset;
16091
- }
16092
- }
16093
- `;
16094
- var IntegrationTileBtnDashedBorder = import_react71.css`
16095
- border: 1px dashed var(--brand-secondary-1);
15979
+ display: inline-flex;
15980
+ flex-direction: column;
15981
+ background: var(--gray-50);
15982
+ max-width: 100%;
15983
+ max-height: 100%;
16096
15984
  `;
16097
- var IntegrationTileTitle = import_react71.css`
16098
- display: block;
16099
- font-weight: var(--fw-bold);
16100
- margin: 0 0 var(--spacing-base);
16101
- max-width: 13rem;
15985
+ var imageWrapperLoading = import_react71.css`
15986
+ animation: ${skeletonLoading} var(--duration-slow) linear infinite alternate;
16102
15987
  `;
16103
- var IntegrationTitleLogo = import_react71.css`
16104
- display: block;
16105
- max-width: 10rem;
16106
- max-height: 4rem;
15988
+ var img = import_react71.css`
15989
+ object-fit: contain;
15990
+ max-width: 100%;
15991
+ max-height: 100%;
15992
+ height: auto;
15993
+ opacity: var(--opacity-0);
16107
15994
  margin: 0 auto;
16108
15995
  `;
16109
- var IntegrationTileName = import_react71.css`
16110
- color: var(--gray-500);
16111
- display: -webkit-box;
16112
- -webkit-line-clamp: 1;
16113
- -webkit-box-orient: vertical;
16114
- font-size: var(--fs-xs);
16115
- padding: 0 var(--spacing-md);
16116
- text-overflow: ellipsis;
16117
- overflow: hidden;
16118
- white-space: normal;
16119
- position: absolute;
16120
- bottom: calc(var(--spacing-base) * 3.8);
15996
+ var imgLoading = import_react71.css`
15997
+ opacity: 0;
16121
15998
  `;
16122
- var IntegrationAddedText = import_react71.css`
16123
- align-items: center;
16124
- background: var(--brand-secondary-3);
16125
- border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
16126
- color: var(--white);
16127
- text-transform: uppercase;
16128
- display: flex;
16129
- font-weight: var(--fw-bold);
16130
- font-size: var(--fs-xs);
16131
- padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs) var(--spacing-sm);
16132
- min-height: 32px;
16133
- position: absolute;
16134
- top: 0;
16135
- right: 0;
15999
+ var imgLoaded = import_react71.css`
16000
+ animation: ${fadeIn} var(--duration-slow) var(--timing-ease-out) forwards;
16001
+ opacity: 1;
16136
16002
  `;
16137
- var IntegrationCustomBadgeText = (theme) => import_react71.css`
16138
- align-items: center;
16139
- border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
16140
- background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
16141
- color: ${theme === "gray" ? "var(--brand-secondary-1)" : "var(--white)"};
16003
+ var brokenImage = import_react71.css`
16004
+ height: 160px;
16005
+ `;
16006
+ var variantFillImageWrapper = import_react71.css`
16142
16007
  display: flex;
16143
- gap: var(--spacing-sm);
16144
- font-size: var(--fs-xs);
16145
- min-height: 32px;
16146
- padding: var(--spacing-xs) var(--spacing-base);
16147
- position: absolute;
16148
- top: 0;
16149
- left: 0;
16008
+ justify-content: center;
16009
+ height: 100%;
16010
+ width: 100%;
16150
16011
  `;
16151
- var IntegrationAuthorBadgeIcon = import_react71.css`
16152
- position: absolute;
16153
- bottom: var(--spacing-sm);
16154
- right: var(--spacing-xs);
16012
+ var variantFillImageImg = import_react71.css`
16013
+ height: inherit;
16014
+ `;
16015
+
16016
+ // src/components/Image/ImageBroken.tsx
16017
+ init_emotion_jsx_shim();
16018
+ var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
16019
+ var ImageBroken = ({ width, height, ...props }) => {
16020
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16021
+ "svg",
16022
+ {
16023
+ role: "img",
16024
+ width: width != null ? width : "214",
16025
+ height: height != null ? height : "214",
16026
+ viewBox: "0 0 214 214",
16027
+ fill: "none",
16028
+ xmlns: "http://www.w3.org/2000/svg",
16029
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
16030
+ "data-testid": "broken-image",
16031
+ ...props,
16032
+ children: [
16033
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
16034
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
16035
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("defs", { children: [
16036
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
16037
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16038
+ "image",
16039
+ {
16040
+ id: "image0_761_4353",
16041
+ width: "400",
16042
+ height: "400",
16043
+ xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8mdhmcblxN/+/tiqKpajOoHZZJx0wZ8CWJ51+aCD4hjJh1FfCy45vKF4IrLN92etUKG+I54hGlKlfiZOF7p0Ws9XNcb7OsGcX1YNYqrVEcpx5FHFhKK0GHDhEKcwyJ59P/MXHcmgx1w7FH/NmrQaFJCmhROW1TiZRhgmEGcOIkEZUp4/dtDT7PIh/lD+op72mYMuNaAYeZpk0dANATclrliKj/O+toBayuVdDnUBAZPHOetBASngM6j47w3HadzDgw8Aa32JyLnYb5bLiabAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAAGQoAMABAAAAAEAAAGQAAAAADj5TfYAABuPSURBVHgB7Z0Ld9RG1kX94GmMAYcECJAwyZq1vv//czKLDEMghkB4GIPf9ne6FRq5W60qt9Vq3aPNypoR3erSvftUTuqWSqXl/YPDJf5AAAIQiEBgJUKQxAgBCEBgQADDoh9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBY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MtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
16044
+ }
16045
+ )
16046
+ ] })
16047
+ ]
16048
+ }
16049
+ );
16050
+ };
16051
+
16052
+ // src/components/Image/Image.tsx
16053
+ var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
16054
+ var MIN_LOADING_MS = 500;
16055
+ function Image({
16056
+ alt,
16057
+ src,
16058
+ className,
16059
+ imgClassName,
16060
+ variant = "inline",
16061
+ width,
16062
+ height,
16063
+ ...imgAttribs
16064
+ }) {
16065
+ const [loading, setLoading] = (0, import_react72.useState)(true);
16066
+ const [loadErrorText, setLoadErrorText] = (0, import_react72.useState)("");
16067
+ const errorText = "The text you provided is not a valid URL";
16068
+ const updateImageSrc = (0, import_react72.useCallback)(() => {
16069
+ let message = "";
16070
+ try {
16071
+ if (src === "") {
16072
+ setLoading(false);
16073
+ } else {
16074
+ const url = String(src).startsWith("//") ? `${location.protocol}${src}` : String(src);
16075
+ if (!isValidUrl(url, { allowRelative: true, isSecure: true })) {
16076
+ throw Error(errorText);
16077
+ }
16078
+ }
16079
+ message = "";
16080
+ } catch (e) {
16081
+ message = errorText;
16082
+ setLoading(false);
16083
+ }
16084
+ setLoadErrorText(message);
16085
+ }, [setLoadErrorText, src]);
16086
+ (0, import_react72.useEffect)(() => {
16087
+ updateImageSrc();
16088
+ }, [src]);
16089
+ const handleLoadEvent = () => {
16090
+ setLoadErrorText("");
16091
+ if (src) {
16092
+ setLoading(true);
16093
+ }
16094
+ const timer = setTimeout(() => {
16095
+ setLoading(false);
16096
+ }, MIN_LOADING_MS);
16097
+ return () => clearTimeout(timer);
16098
+ };
16099
+ const handleErrorEvent = () => {
16100
+ setLoadErrorText("The value you provided is not a valid image URL");
16101
+ setLoading(false);
16102
+ };
16103
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
16104
+ "span",
16105
+ {
16106
+ className,
16107
+ css: [
16108
+ imageWrapper,
16109
+ loading ? imageWrapperLoading : null,
16110
+ variant === "fill-container" ? variantFillImageWrapper : null
16111
+ ],
16112
+ children: [
16113
+ src && !loadErrorText ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16114
+ "img",
16115
+ {
16116
+ ...imgAttribs,
16117
+ className: imgClassName,
16118
+ alt,
16119
+ src,
16120
+ css: [
16121
+ img,
16122
+ variant === "fill-container" ? variantFillImageImg : null,
16123
+ loading ? imgLoading : imgLoaded
16124
+ ],
16125
+ loading: "lazy",
16126
+ width,
16127
+ height,
16128
+ onLoad: handleLoadEvent,
16129
+ onError: handleErrorEvent
16130
+ }
16131
+ ) : null,
16132
+ src && loadErrorText ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
16133
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16134
+ ImageBroken,
16135
+ {
16136
+ css: [brokenImage, img, imgLoaded],
16137
+ width,
16138
+ height,
16139
+ "data-testid": "broken-image"
16140
+ }
16141
+ ),
16142
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ErrorMessage, { message: loadErrorText })
16143
+ ] }) : null
16144
+ ]
16145
+ }
16146
+ );
16147
+ }
16148
+
16149
+ // src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
16150
+ init_emotion_jsx_shim();
16151
+
16152
+ // src/components/Tiles/CreateTeamIntegrationTile.tsx
16153
+ init_emotion_jsx_shim();
16154
+ var import_react74 = require("@emotion/react");
16155
+ var import_CgAdd3 = require("@react-icons/all-files/cg/CgAdd");
16156
+ var import_CgChevronRight3 = require("@react-icons/all-files/cg/CgChevronRight");
16157
+
16158
+ // src/components/Tiles/styles/IntegrationTile.styles.ts
16159
+ init_emotion_jsx_shim();
16160
+ var import_react73 = require("@emotion/react");
16161
+ var IntegrationTileContainer = import_react73.css`
16162
+ align-items: center;
16163
+ box-sizing: border-box;
16164
+ border-radius: var(--rounded-base);
16165
+ border: 1px solid var(--gray-300);
16166
+ background: var(--white);
16167
+ display: inline-flex;
16168
+ flex-flow: column wrap;
16169
+ padding: var(--spacing-base);
16170
+ position: relative;
16171
+ min-height: 13rem;
16172
+ max-height: 13rem;
16173
+ text-align: center;
16174
+ justify-content: center;
16175
+ margin: auto;
16176
+ transition: box-shadow var(--duration-fast) var(--timing-ease-out);
16177
+
16178
+ &:hover {
16179
+ box-shadow: var(--shadow-md);
16180
+ }
16181
+
16182
+ ${supports("aspect-ratio: 1/1")} {
16183
+ aspect-ratio: 1/1;
16184
+
16185
+ ${mq("sm")} {
16186
+ max-width: unset;
16187
+ max-height: unset;
16188
+ margin: unset;
16189
+ }
16190
+ }
16191
+ `;
16192
+ var IntegrationTileBtnDashedBorder = import_react73.css`
16193
+ border: 1px dashed var(--brand-secondary-1);
16194
+ `;
16195
+ var IntegrationTileTitle = import_react73.css`
16196
+ display: block;
16197
+ font-weight: var(--fw-bold);
16198
+ margin: 0 0 var(--spacing-base);
16199
+ max-width: 13rem;
16200
+ `;
16201
+ var IntegrationTitleLogo = import_react73.css`
16202
+ display: block;
16203
+ max-width: 10rem;
16204
+ max-height: 4rem;
16205
+ margin: 0 auto;
16206
+ `;
16207
+ var IntegrationTileName = import_react73.css`
16208
+ color: var(--gray-500);
16209
+ display: -webkit-box;
16210
+ -webkit-line-clamp: 1;
16211
+ -webkit-box-orient: vertical;
16212
+ font-size: var(--fs-xs);
16213
+ padding: 0 var(--spacing-md);
16214
+ text-overflow: ellipsis;
16215
+ overflow: hidden;
16216
+ white-space: normal;
16217
+ position: absolute;
16218
+ bottom: calc(var(--spacing-base) * 3.8);
16219
+ `;
16220
+ var IntegrationAddedText = import_react73.css`
16221
+ align-items: center;
16222
+ background: var(--brand-secondary-3);
16223
+ border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
16224
+ color: var(--white);
16225
+ text-transform: uppercase;
16226
+ display: flex;
16227
+ font-weight: var(--fw-bold);
16228
+ font-size: var(--fs-xs);
16229
+ padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs) var(--spacing-sm);
16230
+ min-height: 32px;
16231
+ position: absolute;
16232
+ top: 0;
16233
+ right: 0;
16234
+ `;
16235
+ var IntegrationCustomBadgeText = (theme) => import_react73.css`
16236
+ align-items: center;
16237
+ border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
16238
+ background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
16239
+ color: ${theme === "gray" ? "var(--brand-secondary-1)" : "var(--white)"};
16240
+ display: flex;
16241
+ gap: var(--spacing-sm);
16242
+ font-size: var(--fs-xs);
16243
+ min-height: 32px;
16244
+ padding: var(--spacing-xs) var(--spacing-base);
16245
+ position: absolute;
16246
+ top: 0;
16247
+ left: 0;
16248
+ `;
16249
+ var IntegrationAuthorBadgeIcon = import_react73.css`
16250
+ position: absolute;
16251
+ bottom: var(--spacing-sm);
16252
+ right: var(--spacing-xs);
16155
16253
  max-height: 1rem;
16156
16254
  `;
16157
- var IntegrationTitleFakeButton = import_react71.css`
16255
+ var IntegrationTitleFakeButton = import_react73.css`
16158
16256
  font-size: var(--fs-xs);
16159
16257
  gap: var(--spacing-sm);
16160
16258
  padding: var(--spacing-sm) var(--spacing-base);
16161
16259
  text-transform: uppercase;
16162
16260
  `;
16163
- var IntegrationTileFloatingButton = import_react71.css`
16261
+ var IntegrationTileFloatingButton = import_react73.css`
16164
16262
  position: absolute;
16165
16263
  bottom: var(--spacing-base);
16166
16264
  gap: var(--spacing-sm);
16167
16265
  font-size: var(--fs-xs);
16168
16266
  overflow: hidden;
16169
16267
  `;
16170
- var IntegrationTileFloatingButtonMessage = (clicked) => import_react71.css`
16268
+ var IntegrationTileFloatingButtonMessage = (clicked) => import_react73.css`
16171
16269
  strong,
16172
16270
  span:first-of-type {
16173
16271
  transition: opacity var(--duration-fast) var(--timing-ease-out);
@@ -16188,7 +16286,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => import_react71.css`
16188
16286
  `;
16189
16287
 
16190
16288
  // src/components/Tiles/CreateTeamIntegrationTile.tsx
16191
- var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
16289
+ var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
16192
16290
  var CreateTeamIntegrationTile = ({
16193
16291
  title = "Create a custom integration for your team",
16194
16292
  buttonText = "Add Integration",
@@ -16196,9 +16294,9 @@ var CreateTeamIntegrationTile = ({
16196
16294
  asDeepLink = false,
16197
16295
  ...props
16198
16296
  }) => {
16199
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
16200
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { css: IntegrationTileTitle, title, children: title }),
16201
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
16297
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
16298
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { css: IntegrationTileTitle, title, children: title }),
16299
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
16202
16300
  Button,
16203
16301
  {
16204
16302
  buttonType: "tertiary",
@@ -16208,23 +16306,23 @@ var CreateTeamIntegrationTile = ({
16208
16306
  css: IntegrationTitleFakeButton,
16209
16307
  children: [
16210
16308
  buttonText,
16211
- asDeepLink ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16309
+ asDeepLink ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
16212
16310
  Icon,
16213
16311
  {
16214
16312
  icon: import_CgChevronRight3.CgChevronRight,
16215
16313
  iconColor: "currentColor",
16216
16314
  size: 20,
16217
- css: import_react72.css`
16315
+ css: import_react74.css`
16218
16316
  order: 1;
16219
16317
  `
16220
16318
  }
16221
- ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16319
+ ) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
16222
16320
  Icon,
16223
16321
  {
16224
16322
  icon: import_CgAdd3.CgAdd,
16225
16323
  iconColor: "currentColor",
16226
16324
  size: 16,
16227
- css: import_react72.css`
16325
+ css: import_react74.css`
16228
16326
  order: -1;
16229
16327
  `
16230
16328
  }
@@ -16243,32 +16341,32 @@ init_emotion_jsx_shim();
16243
16341
  var import_CgCheck2 = require("@react-icons/all-files/cg/CgCheck");
16244
16342
  var import_CgLock2 = require("@react-icons/all-files/cg/CgLock");
16245
16343
  var import_CgSandClock2 = require("@react-icons/all-files/cg/CgSandClock");
16246
- var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
16344
+ var import_jsx_runtime67 = require("@emotion/react/jsx-runtime");
16247
16345
  var IntegrationedAddedBadge = ({ text = "Added" }) => {
16248
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
16249
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: import_CgCheck2.CgCheck, iconColor: "currentColor" }),
16346
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
16347
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { icon: import_CgCheck2.CgCheck, iconColor: "currentColor" }),
16250
16348
  text
16251
16349
  ] });
16252
16350
  };
16253
16351
  var IntegrationCustomBadge = ({ text = "Custom" }) => {
16254
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
16352
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
16255
16353
  };
16256
16354
  var IntegrationPremiumBadge = ({ text = "Premium" }) => {
16257
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
16258
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: import_CgLock2.CgLock, iconColor: "currentColor", size: 12 }),
16355
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
16356
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { icon: import_CgLock2.CgLock, iconColor: "currentColor", size: 12 }),
16259
16357
  text
16260
16358
  ] });
16261
16359
  };
16262
16360
  var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
16263
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
16264
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon: import_CgSandClock2.CgSandClock, iconColor: "currentColor", size: 12 }),
16361
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
16362
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { icon: import_CgSandClock2.CgSandClock, iconColor: "currentColor", size: 12 }),
16265
16363
  text
16266
16364
  ] });
16267
16365
  };
16268
16366
 
16269
16367
  // src/components/Tiles/ResolveIcon.tsx
16270
16368
  init_emotion_jsx_shim();
16271
- var import_jsx_runtime67 = require("@emotion/react/jsx-runtime");
16369
+ var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
16272
16370
  var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
16273
16371
  const CompIcon = icon && typeof icon !== "string" ? icon : null;
16274
16372
  const mapClassName = {
@@ -16276,13 +16374,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
16276
16374
  logo: IntegrationTitleLogo
16277
16375
  };
16278
16376
  if (icon) {
16279
- 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 });
16377
+ 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 });
16280
16378
  }
16281
16379
  return null;
16282
16380
  };
16283
16381
 
16284
16382
  // src/components/Tiles/EditTeamIntegrationTile.tsx
16285
- var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
16383
+ var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
16286
16384
  var EditTeamIntegrationTile = ({
16287
16385
  id,
16288
16386
  icon,
@@ -16291,17 +16389,17 @@ var EditTeamIntegrationTile = ({
16291
16389
  isPublic,
16292
16390
  canEdit = false
16293
16391
  }) => {
16294
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16392
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16295
16393
  "div",
16296
16394
  {
16297
16395
  css: IntegrationTileContainer,
16298
16396
  "data-testid": "configure-integration-container",
16299
16397
  "integration-id": `${id.toLocaleLowerCase()}`,
16300
16398
  children: [
16301
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
16302
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
16303
- !isPublic ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(IntegrationCustomBadge, {}) : null,
16304
- canEdit ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16399
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
16400
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
16401
+ !isPublic ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(IntegrationCustomBadge, {}) : null,
16402
+ canEdit ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16305
16403
  Button,
16306
16404
  {
16307
16405
  buttonType: "unimportant",
@@ -16320,10 +16418,10 @@ var EditTeamIntegrationTile = ({
16320
16418
 
16321
16419
  // src/components/Tiles/IntegrationComingSoon.tsx
16322
16420
  init_emotion_jsx_shim();
16323
- var import_react73 = require("@emotion/react");
16421
+ var import_react75 = require("@emotion/react");
16324
16422
  var import_CgHeart2 = require("@react-icons/all-files/cg/CgHeart");
16325
- var import_react74 = require("react");
16326
- var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
16423
+ var import_react76 = require("react");
16424
+ var import_jsx_runtime70 = require("@emotion/react/jsx-runtime");
16327
16425
  var IntegrationComingSoon = ({
16328
16426
  name,
16329
16427
  icon,
@@ -16332,12 +16430,12 @@ var IntegrationComingSoon = ({
16332
16430
  timing = 1e3,
16333
16431
  ...props
16334
16432
  }) => {
16335
- const [upVote, setUpVote] = (0, import_react74.useState)(false);
16433
+ const [upVote, setUpVote] = (0, import_react76.useState)(false);
16336
16434
  const handleUpVoteInteraction = () => {
16337
16435
  setUpVote((prev) => !prev);
16338
16436
  onUpVoteClick();
16339
16437
  };
16340
- (0, import_react74.useEffect)(() => {
16438
+ (0, import_react76.useEffect)(() => {
16341
16439
  if (upVote) {
16342
16440
  const timer = setTimeout(() => setUpVote(false), timing);
16343
16441
  return () => {
@@ -16345,17 +16443,17 @@ var IntegrationComingSoon = ({
16345
16443
  };
16346
16444
  }
16347
16445
  }, [upVote, setUpVote, timing]);
16348
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16446
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
16349
16447
  "div",
16350
16448
  {
16351
16449
  css: IntegrationTileContainer,
16352
16450
  "data-testid": `coming-soon-${id.toLowerCase()}-integration`,
16353
16451
  ...props,
16354
16452
  children: [
16355
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(IntegrationComingSoonBadge, {}),
16356
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ResolveIcon, { icon, name }),
16357
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
16358
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16453
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IntegrationComingSoonBadge, {}),
16454
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ResolveIcon, { icon, name }),
16455
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
16456
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
16359
16457
  Button,
16360
16458
  {
16361
16459
  buttonType: "unimportant",
@@ -16365,19 +16463,19 @@ var IntegrationComingSoon = ({
16365
16463
  role: "link",
16366
16464
  css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
16367
16465
  children: [
16368
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("strong", { children: "+1" }),
16369
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16466
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("strong", { children: "+1" }),
16467
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16370
16468
  "span",
16371
16469
  {
16372
- css: import_react73.css`
16470
+ css: import_react75.css`
16373
16471
  text-transform: uppercase;
16374
16472
  color: var(--gray-500);
16375
16473
  `,
16376
16474
  children: "(I want this)"
16377
16475
  }
16378
16476
  ),
16379
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { "aria-hidden": !upVote, children: [
16380
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: import_CgHeart2.CgHeart, iconColor: "currentColor", size: 18 }),
16477
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("span", { "aria-hidden": !upVote, children: [
16478
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, { icon: import_CgHeart2.CgHeart, iconColor: "currentColor", size: 18 }),
16381
16479
  "Thanks!"
16382
16480
  ] })
16383
16481
  ]
@@ -16393,8 +16491,8 @@ init_emotion_jsx_shim();
16393
16491
 
16394
16492
  // src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
16395
16493
  init_emotion_jsx_shim();
16396
- var import_react75 = require("@emotion/react");
16397
- var IntegrationLoadingTileContainer = import_react75.css`
16494
+ var import_react77 = require("@emotion/react");
16495
+ var IntegrationLoadingTileContainer = import_react77.css`
16398
16496
  align-items: center;
16399
16497
  box-sizing: border-box;
16400
16498
  border-radius: var(--rounded-base);
@@ -16421,28 +16519,28 @@ var IntegrationLoadingTileContainer = import_react75.css`
16421
16519
  }
16422
16520
  }
16423
16521
  `;
16424
- var IntegrationLoadingTileImg = import_react75.css`
16522
+ var IntegrationLoadingTileImg = import_react77.css`
16425
16523
  width: 10rem;
16426
16524
  height: 4rem;
16427
16525
  margin: 0 auto;
16428
16526
  `;
16429
- var IntegrationLoadingTileText = import_react75.css`
16527
+ var IntegrationLoadingTileText = import_react77.css`
16430
16528
  width: 5rem;
16431
16529
  height: var(--spacing-sm);
16432
16530
  margin: var(--spacing-sm) 0;
16433
16531
  `;
16434
- var IntegrationLoadingFrame = import_react75.css`
16532
+ var IntegrationLoadingFrame = import_react77.css`
16435
16533
  animation: ${skeletonLoading} 1s linear infinite alternate;
16436
16534
  border-radius: var(--rounded-base);
16437
16535
  `;
16438
16536
 
16439
16537
  // src/components/Tiles/IntegrationLoadingTile.tsx
16440
- var import_jsx_runtime70 = require("@emotion/react/jsx-runtime");
16538
+ var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
16441
16539
  var IntegrationLoadingTile = ({ count = 1 }) => {
16442
16540
  const componentCount = Array.from(Array(count).keys());
16443
- 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: [
16444
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
16445
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
16541
+ 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: [
16542
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
16543
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
16446
16544
  ] }, i)) });
16447
16545
  };
16448
16546
 
@@ -16451,13 +16549,13 @@ init_emotion_jsx_shim();
16451
16549
 
16452
16550
  // src/components/Tiles/styles/IntegrationModalIcon.styles.ts
16453
16551
  init_emotion_jsx_shim();
16454
- var import_react76 = require("@emotion/react");
16455
- var IntegrationModalIconContainer = import_react76.css`
16552
+ var import_react78 = require("@emotion/react");
16553
+ var IntegrationModalIconContainer = import_react78.css`
16456
16554
  position: relative;
16457
16555
  width: 50px;
16458
16556
  margin-bottom: var(--spacing-base);
16459
16557
  `;
16460
- var IntegrationModalImage = import_react76.css`
16558
+ var IntegrationModalImage = import_react78.css`
16461
16559
  position: absolute;
16462
16560
  inset: 0;
16463
16561
  margin: auto;
@@ -16466,7 +16564,7 @@ var IntegrationModalImage = import_react76.css`
16466
16564
  `;
16467
16565
 
16468
16566
  // src/components/Tiles/IntegrationModalIcon.tsx
16469
- var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
16567
+ var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
16470
16568
  var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
16471
16569
  const CompIcon = icon && typeof icon !== "string" ? icon : null;
16472
16570
  let iconSrc = void 0;
@@ -16482,9 +16580,9 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
16482
16580
  }
16483
16581
  }
16484
16582
  }
16485
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { css: IntegrationModalIconContainer, children: [
16486
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
16487
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16583
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { css: IntegrationModalIconContainer, children: [
16584
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
16585
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16488
16586
  "path",
16489
16587
  {
16490
16588
  d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
@@ -16493,12 +16591,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
16493
16591
  strokeWidth: "2"
16494
16592
  }
16495
16593
  ),
16496
- /* @__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: [
16497
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { stopColor: "#1768B2" }),
16498
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: "1", stopColor: "#B3EFE4" })
16594
+ /* @__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: [
16595
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("stop", { stopColor: "#1768B2" }),
16596
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("stop", { offset: "1", stopColor: "#B3EFE4" })
16499
16597
  ] }) })
16500
16598
  ] }),
16501
- CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16599
+ CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16502
16600
  "img",
16503
16601
  {
16504
16602
  src: iconSrc,
@@ -16513,7 +16611,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
16513
16611
 
16514
16612
  // src/components/Tiles/IntegrationTile.tsx
16515
16613
  init_emotion_jsx_shim();
16516
- var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
16614
+ var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
16517
16615
  var IntegrationTile = ({
16518
16616
  id,
16519
16617
  icon,
@@ -16525,7 +16623,7 @@ var IntegrationTile = ({
16525
16623
  authorIcon,
16526
16624
  ...btnProps
16527
16625
  }) => {
16528
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
16626
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
16529
16627
  "button",
16530
16628
  {
16531
16629
  type: "button",
@@ -16535,12 +16633,12 @@ var IntegrationTile = ({
16535
16633
  "aria-label": name,
16536
16634
  ...btnProps,
16537
16635
  children: [
16538
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ResolveIcon, { icon, name }),
16539
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
16540
- isInstalled ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IntegrationedAddedBadge, {}) : null,
16541
- requiedEntitlement && isPublic ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IntegrationPremiumBadge, {}) : null,
16542
- !isPublic ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IntegrationCustomBadge, {}) : null,
16543
- authorIcon ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ResolveIcon, { icon: authorIcon, name }) : null
16636
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ResolveIcon, { icon, name }),
16637
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
16638
+ isInstalled ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IntegrationedAddedBadge, {}) : null,
16639
+ requiedEntitlement && isPublic ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IntegrationPremiumBadge, {}) : null,
16640
+ !isPublic ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IntegrationCustomBadge, {}) : null,
16641
+ authorIcon ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ResolveIcon, { icon: authorIcon, name }) : null
16544
16642
  ]
16545
16643
  }
16546
16644
  );
@@ -16551,9 +16649,9 @@ init_emotion_jsx_shim();
16551
16649
 
16552
16650
  // src/components/Tiles/styles/Tile.styles.ts
16553
16651
  init_emotion_jsx_shim();
16554
- var import_react77 = require("@emotion/react");
16652
+ var import_react79 = require("@emotion/react");
16555
16653
  var tileBorderSize = "1px";
16556
- var Tile = import_react77.css`
16654
+ var Tile = import_react79.css`
16557
16655
  background: var(--white);
16558
16656
  cursor: pointer;
16559
16657
  border: ${tileBorderSize} solid var(--gray-300);
@@ -16577,9 +16675,9 @@ var Tile = import_react77.css`
16577
16675
  `;
16578
16676
 
16579
16677
  // src/components/Tiles/Tile.tsx
16580
- var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
16678
+ var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
16581
16679
  var Tile2 = ({ children, disabled, ...props }) => {
16582
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("button", { type: "button", css: Tile, disabled, ...props, children });
16680
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("button", { type: "button", css: Tile, disabled, ...props, children });
16583
16681
  };
16584
16682
 
16585
16683
  // src/components/Tiles/TileContainer.tsx
@@ -16587,12 +16685,12 @@ init_emotion_jsx_shim();
16587
16685
 
16588
16686
  // src/components/Tiles/styles/TileContainer.styles.ts
16589
16687
  init_emotion_jsx_shim();
16590
- var import_react78 = require("@emotion/react");
16591
- var TileContainerWrapper = (theme, padding) => import_react78.css`
16688
+ var import_react80 = require("@emotion/react");
16689
+ var TileContainerWrapper = (theme, padding) => import_react80.css`
16592
16690
  background: ${theme};
16593
16691
  padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
16594
16692
  `;
16595
- var TileContainerInner = (gap, templateColumns) => import_react78.css`
16693
+ var TileContainerInner = (gap, templateColumns) => import_react80.css`
16596
16694
  display: grid;
16597
16695
  grid-template-columns: ${templateColumns};
16598
16696
  gap: var(--spacing-${gap});
@@ -16606,7 +16704,7 @@ var TileContainerInner = (gap, templateColumns) => import_react78.css`
16606
16704
  `;
16607
16705
 
16608
16706
  // src/components/Tiles/TileContainer.tsx
16609
- var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
16707
+ var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
16610
16708
  var TileContainer = ({
16611
16709
  bgColor = "var(--brand-secondary-2)",
16612
16710
  containerPadding = "base",
@@ -16615,7 +16713,7 @@ var TileContainer = ({
16615
16713
  children,
16616
16714
  ...props
16617
16715
  }) => {
16618
- 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 }) });
16716
+ 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 }) });
16619
16717
  };
16620
16718
 
16621
16719
  // src/components/Tiles/TileText.tsx
@@ -16623,21 +16721,21 @@ init_emotion_jsx_shim();
16623
16721
 
16624
16722
  // src/components/Tiles/styles/TileText.styles.ts
16625
16723
  init_emotion_jsx_shim();
16626
- var import_react79 = require("@emotion/react");
16627
- var TileHeading = import_react79.css`
16724
+ var import_react81 = require("@emotion/react");
16725
+ var TileHeading = import_react81.css`
16628
16726
  font-size: var(--fs-base);
16629
16727
  `;
16630
- var TileText = import_react79.css`
16728
+ var TileText = import_react81.css`
16631
16729
  color: var(--gray-500);
16632
16730
  font-size: var(--fs-sm);
16633
16731
  line-height: 1.2;
16634
16732
  `;
16635
16733
 
16636
16734
  // src/components/Tiles/TileText.tsx
16637
- var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
16735
+ var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
16638
16736
  var TileText2 = ({ as = "heading", children, ...props }) => {
16639
16737
  const isHeading = as === "heading";
16640
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16738
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
16641
16739
  "span",
16642
16740
  {
16643
16741
  role: isHeading ? "heading" : void 0,
@@ -16650,39 +16748,39 @@ var TileText2 = ({ as = "heading", children, ...props }) => {
16650
16748
 
16651
16749
  // src/components/IntegrationModalHeader/IntegrationModalHeader.styles.ts
16652
16750
  init_emotion_jsx_shim();
16653
- var import_react80 = require("@emotion/react");
16654
- var IntegrationModalHeaderSVGBackground = import_react80.css`
16751
+ var import_react82 = require("@emotion/react");
16752
+ var IntegrationModalHeaderSVGBackground = import_react82.css`
16655
16753
  position: absolute;
16656
16754
  top: 0;
16657
16755
  left: 0;
16658
16756
  `;
16659
- var IntegrationModalHeaderGroup = import_react80.css`
16757
+ var IntegrationModalHeaderGroup = import_react82.css`
16660
16758
  align-items: center;
16661
16759
  display: flex;
16662
16760
  gap: var(--spacing-sm);
16663
16761
  margin: 0 0 var(--spacing-md);
16664
16762
  position: relative;
16665
16763
  `;
16666
- var IntegrationModalHeaderTitleGroup = import_react80.css`
16764
+ var IntegrationModalHeaderTitleGroup = import_react82.css`
16667
16765
  align-items: center;
16668
16766
  display: flex;
16669
16767
  gap: var(--spacing-base);
16670
16768
  `;
16671
- var IntegrationModalHeaderTitle = import_react80.css`
16769
+ var IntegrationModalHeaderTitle = import_react82.css`
16672
16770
  margin-top: 0;
16673
16771
  `;
16674
- var IntegrationModalHeaderMenuPlacement = import_react80.css`
16772
+ var IntegrationModalHeaderMenuPlacement = import_react82.css`
16675
16773
  margin-bottom: var(--spacing-base);
16676
16774
  `;
16677
- var IntegrationModalHeaderContentWrapper = import_react80.css`
16775
+ var IntegrationModalHeaderContentWrapper = import_react82.css`
16678
16776
  position: relative;
16679
16777
  z-index: var(--z-10);
16680
16778
  `;
16681
16779
 
16682
16780
  // src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
16683
- var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
16781
+ var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
16684
16782
  var HexModalBackground = ({ ...props }) => {
16685
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
16783
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
16686
16784
  "svg",
16687
16785
  {
16688
16786
  width: "236",
@@ -16692,7 +16790,7 @@ var HexModalBackground = ({ ...props }) => {
16692
16790
  xmlns: "http://www.w3.org/2000/svg",
16693
16791
  ...props,
16694
16792
  children: [
16695
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
16793
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
16696
16794
  "path",
16697
16795
  {
16698
16796
  fillRule: "evenodd",
@@ -16701,7 +16799,7 @@ var HexModalBackground = ({ ...props }) => {
16701
16799
  fill: "url(#paint0_linear_196_2737)"
16702
16800
  }
16703
16801
  ),
16704
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
16802
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
16705
16803
  "linearGradient",
16706
16804
  {
16707
16805
  id: "paint0_linear_196_2737",
@@ -16711,8 +16809,8 @@ var HexModalBackground = ({ ...props }) => {
16711
16809
  y2: "-95.2742",
16712
16810
  gradientUnits: "userSpaceOnUse",
16713
16811
  children: [
16714
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("stop", { stopColor: "#81DCDE" }),
16715
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
16812
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("stop", { stopColor: "#81DCDE" }),
16813
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
16716
16814
  ]
16717
16815
  }
16718
16816
  ) })
@@ -16721,24 +16819,24 @@ var HexModalBackground = ({ ...props }) => {
16721
16819
  );
16722
16820
  };
16723
16821
  var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
16724
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
16725
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
16726
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
16727
- icon ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
16728
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
16729
- menu2 ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
16822
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
16823
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
16824
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
16825
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
16826
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
16827
+ menu2 ? /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
16730
16828
  menu2,
16731
16829
  " "
16732
16830
  ] }) : null
16733
16831
  ] }) }),
16734
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
16832
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
16735
16833
  ] });
16736
16834
  };
16737
16835
 
16738
16836
  // src/components/JsonEditor/JsonEditor.tsx
16739
16837
  init_emotion_jsx_shim();
16740
- var import_react81 = __toESM(require("@monaco-editor/react"));
16741
- var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
16838
+ var import_react83 = __toESM(require("@monaco-editor/react"));
16839
+ var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
16742
16840
  var minEditorHeightPx = 150;
16743
16841
  var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
16744
16842
  let effectiveHeight = height;
@@ -16748,8 +16846,8 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
16748
16846
  if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
16749
16847
  effectiveHeight = minEditorHeightPx;
16750
16848
  }
16751
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
16752
- import_react81.default,
16849
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
16850
+ import_react83.default,
16753
16851
  {
16754
16852
  height: effectiveHeight,
16755
16853
  className: "uniform-json-editor",
@@ -16789,39 +16887,39 @@ init_emotion_jsx_shim();
16789
16887
 
16790
16888
  // src/components/LimitsBar/LimitsBar.styles.ts
16791
16889
  init_emotion_jsx_shim();
16792
- var import_react82 = require("@emotion/react");
16793
- var LimitsBarContainer = import_react82.css`
16890
+ var import_react84 = require("@emotion/react");
16891
+ var LimitsBarContainer = import_react84.css`
16794
16892
  margin-block: var(--spacing-sm);
16795
16893
  `;
16796
- var LimitsBarProgressBar = import_react82.css`
16894
+ var LimitsBarProgressBar = import_react84.css`
16797
16895
  background: var(--gray-100);
16798
16896
  margin-top: var(--spacing-sm);
16799
16897
  position: relative;
16800
16898
  overflow: hidden;
16801
16899
  height: 0.25rem;
16802
16900
  `;
16803
- var LimitsBarProgressBarLine = import_react82.css`
16901
+ var LimitsBarProgressBarLine = import_react84.css`
16804
16902
  position: absolute;
16805
16903
  inset: 0;
16806
16904
  transition: transform var(--duration-fast) var(--timing-ease-out);
16807
16905
  `;
16808
- var LimitsBarLabelContainer = import_react82.css`
16906
+ var LimitsBarLabelContainer = import_react84.css`
16809
16907
  display: flex;
16810
16908
  justify-content: space-between;
16811
16909
  font-weight: var(--fw-bold);
16812
16910
  `;
16813
- var LimitsBarLabel = import_react82.css`
16911
+ var LimitsBarLabel = import_react84.css`
16814
16912
  font-size: var(--fs-baase);
16815
16913
  `;
16816
- var LimitsBarBgColor = (statusColor) => import_react82.css`
16914
+ var LimitsBarBgColor = (statusColor) => import_react84.css`
16817
16915
  background: ${statusColor};
16818
16916
  `;
16819
- var LimitsBarTextColor = (statusColor) => import_react82.css`
16917
+ var LimitsBarTextColor = (statusColor) => import_react84.css`
16820
16918
  color: ${statusColor};
16821
16919
  `;
16822
16920
 
16823
16921
  // src/components/LimitsBar/LimitsBar.tsx
16824
- var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
16922
+ var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
16825
16923
  var LimitsBar = ({ current, max, label }) => {
16826
16924
  const maxPercentage = 100;
16827
16925
  const progressBarValue = Math.ceil(current / max * maxPercentage);
@@ -16832,16 +16930,16 @@ var LimitsBar = ({ current, max, label }) => {
16832
16930
  danger: "var(--brand-secondary-5)"
16833
16931
  };
16834
16932
  const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
16835
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { css: LimitsBarContainer, children: [
16836
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { css: LimitsBarLabelContainer, children: [
16837
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { css: LimitsBarLabel, children: label }),
16838
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
16933
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { css: LimitsBarContainer, children: [
16934
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { css: LimitsBarLabelContainer, children: [
16935
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { css: LimitsBarLabel, children: label }),
16936
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
16839
16937
  current,
16840
16938
  " of ",
16841
16939
  max
16842
16940
  ] })
16843
16941
  ] }),
16844
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
16942
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
16845
16943
  "div",
16846
16944
  {
16847
16945
  role: "progressbar",
@@ -16850,7 +16948,7 @@ var LimitsBar = ({ current, max, label }) => {
16850
16948
  "aria-valuemax": max,
16851
16949
  "aria-valuetext": `${current} of ${max}`,
16852
16950
  css: LimitsBarProgressBar,
16853
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
16951
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
16854
16952
  "span",
16855
16953
  {
16856
16954
  role: "presentation",
@@ -16870,8 +16968,8 @@ init_emotion_jsx_shim();
16870
16968
 
16871
16969
  // src/components/LinkList/LinkList.styles.ts
16872
16970
  init_emotion_jsx_shim();
16873
- var import_react83 = require("@emotion/react");
16874
- var LinkListContainer = (padding) => import_react83.css`
16971
+ var import_react85 = require("@emotion/react");
16972
+ var LinkListContainer = (padding) => import_react85.css`
16875
16973
  padding: ${padding};
16876
16974
 
16877
16975
  ${mq("sm")} {
@@ -16879,32 +16977,32 @@ var LinkListContainer = (padding) => import_react83.css`
16879
16977
  grid-row: 1 / last-line;
16880
16978
  }
16881
16979
  `;
16882
- var LinkListTitle = import_react83.css`
16980
+ var LinkListTitle = import_react85.css`
16883
16981
  font-weight: var(--fw-bold);
16884
16982
  font-size: var(--fs-sm);
16885
16983
  text-transform: uppercase;
16886
16984
  `;
16887
16985
 
16888
16986
  // src/components/LinkList/LinkList.tsx
16889
- var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
16987
+ var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
16890
16988
  var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
16891
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { css: LinkListContainer(padding), ...props, children: [
16892
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Heading, { level: 3, css: LinkListTitle, children: title }),
16989
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { css: LinkListContainer(padding), ...props, children: [
16990
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Heading, { level: 3, css: LinkListTitle, children: title }),
16893
16991
  children
16894
16992
  ] });
16895
16993
  };
16896
16994
 
16897
16995
  // src/components/List/ScrollableList.tsx
16898
16996
  init_emotion_jsx_shim();
16899
- var import_react85 = require("@emotion/react");
16997
+ var import_react87 = require("@emotion/react");
16900
16998
 
16901
16999
  // src/components/List/styles/ScrollableList.styles.ts
16902
17000
  init_emotion_jsx_shim();
16903
- var import_react84 = require("@emotion/react");
16904
- var ScrollableListContainer = import_react84.css`
17001
+ var import_react86 = require("@emotion/react");
17002
+ var ScrollableListContainer = import_react86.css`
16905
17003
  position: relative;
16906
17004
  `;
16907
- var ScrollableListInner = import_react84.css`
17005
+ var ScrollableListInner = import_react86.css`
16908
17006
  background: var(--gray-50);
16909
17007
  border-top: 1px solid var(--gray-200);
16910
17008
  border-bottom: 1px solid var(--gray-200);
@@ -16927,19 +17025,19 @@ var ScrollableListInner = import_react84.css`
16927
17025
  `;
16928
17026
 
16929
17027
  // src/components/List/ScrollableList.tsx
16930
- var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
17028
+ var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
16931
17029
  var ScrollableList = ({ label, children, ...props }) => {
16932
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
16933
- label ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
17030
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
17031
+ label ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
16934
17032
  "span",
16935
17033
  {
16936
- css: import_react85.css`
17034
+ css: import_react87.css`
16937
17035
  ${labelText}
16938
17036
  `,
16939
17037
  children: label
16940
17038
  }
16941
17039
  ) : null,
16942
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { css: [ScrollableListInner, scrollbarStyles], children })
17040
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { css: [ScrollableListInner, scrollbarStyles], children })
16943
17041
  ] });
16944
17042
  };
16945
17043
 
@@ -16949,8 +17047,8 @@ var import_CgCheck3 = require("@react-icons/all-files/cg/CgCheck");
16949
17047
 
16950
17048
  // src/components/List/styles/ScrollableListItem.styles.ts
16951
17049
  init_emotion_jsx_shim();
16952
- var import_react86 = require("@emotion/react");
16953
- var ScrollableListItemContainer = import_react86.css`
17050
+ var import_react88 = require("@emotion/react");
17051
+ var ScrollableListItemContainer = import_react88.css`
16954
17052
  align-items: center;
16955
17053
  background: var(--white);
16956
17054
  border-radius: var(--rounded-base);
@@ -16959,13 +17057,13 @@ var ScrollableListItemContainer = import_react86.css`
16959
17057
  min-height: 52px;
16960
17058
  transition: border-color var(--duration-fast) var(--timing-ease-out);
16961
17059
  `;
16962
- var ScrollableListItemShadow = import_react86.css`
17060
+ var ScrollableListItemShadow = import_react88.css`
16963
17061
  box-shadow: var(--shadow-base);
16964
17062
  `;
16965
- var ScrollableListItemActive = import_react86.css`
17063
+ var ScrollableListItemActive = import_react88.css`
16966
17064
  border-color: var(--brand-secondary-3);
16967
17065
  `;
16968
- var ScrollableListItemBtn = import_react86.css`
17066
+ var ScrollableListItemBtn = import_react88.css`
16969
17067
  align-items: center;
16970
17068
  border: none;
16971
17069
  background: transparent;
@@ -16980,27 +17078,27 @@ var ScrollableListItemBtn = import_react86.css`
16980
17078
  outline: none;
16981
17079
  }
16982
17080
  `;
16983
- var ScrollableListInputLabel = import_react86.css`
17081
+ var ScrollableListInputLabel = import_react88.css`
16984
17082
  align-items: center;
16985
17083
  cursor: pointer;
16986
17084
  display: flex;
16987
17085
  padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
16988
17086
  flex-grow: 1;
16989
17087
  `;
16990
- var ScrollableListInputText = import_react86.css`
17088
+ var ScrollableListInputText = import_react88.css`
16991
17089
  align-items: center;
16992
17090
  display: flex;
16993
17091
  gap: var(--spacing-sm);
16994
17092
  flex-grow: 1;
16995
17093
  flex-wrap: wrap;
16996
17094
  `;
16997
- var ScrollableListHiddenInput = import_react86.css`
17095
+ var ScrollableListHiddenInput = import_react88.css`
16998
17096
  position: absolute;
16999
17097
  height: 0;
17000
17098
  width: 0;
17001
17099
  opacity: 0;
17002
17100
  `;
17003
- var ScrollableListIcon = import_react86.css`
17101
+ var ScrollableListIcon = import_react88.css`
17004
17102
  border-radius: var(--rounded-full);
17005
17103
  background: var(--brand-secondary-3);
17006
17104
  color: var(--white);
@@ -17008,12 +17106,12 @@ var ScrollableListIcon = import_react86.css`
17008
17106
  min-width: 24px;
17009
17107
  opacity: 0;
17010
17108
  `;
17011
- var ScrollableListIconVisible = import_react86.css`
17109
+ var ScrollableListIconVisible = import_react88.css`
17012
17110
  animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
17013
17111
  `;
17014
17112
 
17015
17113
  // src/components/List/ScrollableListInputItem.tsx
17016
- var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
17114
+ var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
17017
17115
  var ScrollableListInputItem = ({
17018
17116
  label,
17019
17117
  icon,
@@ -17023,7 +17121,7 @@ var ScrollableListInputItem = ({
17023
17121
  labelTestId,
17024
17122
  ...props
17025
17123
  }) => {
17026
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
17124
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
17027
17125
  "div",
17028
17126
  {
17029
17127
  css: [
@@ -17032,13 +17130,13 @@ var ScrollableListInputItem = ({
17032
17130
  active ? ScrollableListItemActive : void 0
17033
17131
  ],
17034
17132
  ...props,
17035
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
17036
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { css: ScrollableListInputText, children: [
17133
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
17134
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { css: ScrollableListInputText, children: [
17037
17135
  icon,
17038
17136
  label
17039
17137
  ] }),
17040
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { css: ScrollableListHiddenInput, children }),
17041
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
17138
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { css: ScrollableListHiddenInput, children }),
17139
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
17042
17140
  Icon,
17043
17141
  {
17044
17142
  icon: import_CgCheck3.CgCheck,
@@ -17057,15 +17155,14 @@ var ScrollableListInputItem = ({
17057
17155
  // src/components/List/ScrollableListItem.tsx
17058
17156
  init_emotion_jsx_shim();
17059
17157
  var import_CgCheck4 = require("@react-icons/all-files/cg/CgCheck");
17060
- var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
17158
+ var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
17061
17159
  var ScrollableListItem = ({
17062
17160
  buttonText,
17063
- icon,
17064
17161
  active,
17065
17162
  disableShadow,
17066
17163
  ...props
17067
17164
  }) => {
17068
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
17165
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
17069
17166
  "div",
17070
17167
  {
17071
17168
  css: [
@@ -17073,12 +17170,9 @@ var ScrollableListItem = ({
17073
17170
  disableShadow ? void 0 : ScrollableListItemShadow,
17074
17171
  active ? ScrollableListItemActive : void 0
17075
17172
  ],
17076
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
17077
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", children: [
17078
- icon,
17079
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { children: buttonText })
17080
- ] }),
17081
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
17173
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
17174
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: buttonText }),
17175
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
17082
17176
  Icon,
17083
17177
  {
17084
17178
  icon: import_CgCheck4.CgCheck,
@@ -17097,10 +17191,10 @@ init_emotion_jsx_shim();
17097
17191
 
17098
17192
  // src/components/LoadingIndicator/LoadingIndicator.styles.ts
17099
17193
  init_emotion_jsx_shim();
17100
- var import_react87 = require("@emotion/react");
17194
+ var import_react89 = require("@emotion/react");
17101
17195
  function bounceFade(size) {
17102
17196
  const bounceHeight = size === "lg" ? 10 : 5;
17103
- return import_react87.keyframes`
17197
+ return import_react89.keyframes`
17104
17198
  0%, 100% {
17105
17199
  opacity: 1.0;
17106
17200
  transform: translateY(0);
@@ -17118,13 +17212,13 @@ function bounceFade(size) {
17118
17212
  }
17119
17213
  `;
17120
17214
  }
17121
- var loader = import_react87.css`
17215
+ var loader = import_react89.css`
17122
17216
  display: inline-flex;
17123
17217
  justify-content: center;
17124
17218
  `;
17125
17219
  function loadingDot(size) {
17126
17220
  const dotSize = size === "lg" ? 8 : 4;
17127
- return import_react87.css`
17221
+ return import_react89.css`
17128
17222
  background-color: var(--gray-700);
17129
17223
  display: block;
17130
17224
  border-radius: var(--rounded-full);
@@ -17149,27 +17243,27 @@ function loadingDot(size) {
17149
17243
  }
17150
17244
 
17151
17245
  // src/components/LoadingIndicator/LoadingIndicator.tsx
17152
- var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
17246
+ var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
17153
17247
  var LoadingIndicator = ({
17154
17248
  size = "lg",
17155
17249
  ...props
17156
17250
  }) => {
17157
17251
  const dotStyle = loadingDot(size);
17158
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
17159
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { css: dotStyle }),
17160
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { css: dotStyle }),
17161
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { css: dotStyle })
17252
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
17253
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { css: dotStyle }),
17254
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { css: dotStyle }),
17255
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { css: dotStyle })
17162
17256
  ] });
17163
17257
  };
17164
17258
 
17165
17259
  // src/components/LoadingOverlay/LoadingOverlay.tsx
17166
17260
  init_emotion_jsx_shim();
17167
- var import_react89 = require("react");
17261
+ var import_react91 = require("react");
17168
17262
 
17169
17263
  // src/components/LoadingOverlay/LoadingOverlay.styles.ts
17170
17264
  init_emotion_jsx_shim();
17171
- var import_react88 = require("@emotion/react");
17172
- var loadingOverlayContainer = import_react88.css`
17265
+ var import_react90 = require("@emotion/react");
17266
+ var loadingOverlayContainer = import_react90.css`
17173
17267
  position: absolute;
17174
17268
  inset: 0;
17175
17269
  overflow: hidden;
@@ -17177,30 +17271,30 @@ var loadingOverlayContainer = import_react88.css`
17177
17271
  padding: var(--spacing-xl);
17178
17272
  overflow-y: auto;
17179
17273
  `;
17180
- var loadingOverlayVisible = import_react88.css`
17274
+ var loadingOverlayVisible = import_react90.css`
17181
17275
  display: flex;
17182
17276
  `;
17183
- var loadingOverlayHidden = import_react88.css`
17277
+ var loadingOverlayHidden = import_react90.css`
17184
17278
  display: none;
17185
17279
  `;
17186
- var loadingOverlayBackground = (bgColor) => import_react88.css`
17280
+ var loadingOverlayBackground = (bgColor) => import_react90.css`
17187
17281
  background: ${bgColor};
17188
17282
  opacity: 0.92;
17189
17283
  position: absolute;
17190
17284
  inset: 0 0;
17191
17285
  `;
17192
- var loadingOverlayBody = import_react88.css`
17286
+ var loadingOverlayBody = import_react90.css`
17193
17287
  align-items: center;
17194
17288
  display: flex;
17195
17289
  flex-direction: column;
17196
17290
  `;
17197
- var loadingOverlayMessage = import_react88.css`
17291
+ var loadingOverlayMessage = import_react90.css`
17198
17292
  color: var(--gray-600);
17199
17293
  margin: var(--spacing-base) 0 0;
17200
17294
  `;
17201
17295
 
17202
17296
  // src/components/LoadingOverlay/LoadingOverlay.tsx
17203
- var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
17297
+ var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
17204
17298
  var LoadingOverlay = ({
17205
17299
  isActive,
17206
17300
  statusMessage,
@@ -17211,14 +17305,14 @@ var LoadingOverlay = ({
17211
17305
  isPaused = false,
17212
17306
  children
17213
17307
  }) => {
17214
- const lottieRef = (0, import_react89.useRef)(null);
17215
- const onLoopComplete = (0, import_react89.useCallback)(() => {
17308
+ const lottieRef = (0, import_react91.useRef)(null);
17309
+ const onLoopComplete = (0, import_react91.useCallback)(() => {
17216
17310
  var _a, _b, _c;
17217
17311
  if (isPaused && !((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
17218
17312
  (_c = lottieRef.current) == null ? void 0 : _c.stop();
17219
17313
  }
17220
17314
  }, [isPaused]);
17221
- (0, import_react89.useEffect)(() => {
17315
+ (0, import_react91.useEffect)(() => {
17222
17316
  var _a, _b, _c, _d, _e, _f;
17223
17317
  if (!isPaused && ((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
17224
17318
  (_c = lottieRef.current) == null ? void 0 : _c.play();
@@ -17226,7 +17320,7 @@ var LoadingOverlay = ({
17226
17320
  (_f = lottieRef.current) == null ? void 0 : _f.stop();
17227
17321
  }
17228
17322
  }, [isPaused]);
17229
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
17323
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
17230
17324
  "div",
17231
17325
  {
17232
17326
  role: "alert",
@@ -17234,9 +17328,9 @@ var LoadingOverlay = ({
17234
17328
  "aria-hidden": !isActive,
17235
17329
  "aria-busy": isActive && !isPaused,
17236
17330
  children: [
17237
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
17238
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { css: loadingOverlayBody, children: [
17239
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
17331
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
17332
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { css: loadingOverlayBody, children: [
17333
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
17240
17334
  AnimationFile,
17241
17335
  {
17242
17336
  lottieRef,
@@ -17251,15 +17345,15 @@ var LoadingOverlay = ({
17251
17345
  }
17252
17346
  }
17253
17347
  ),
17254
- statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
17255
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
17348
+ statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
17349
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
17256
17350
  ] }) })
17257
17351
  ]
17258
17352
  }
17259
17353
  );
17260
17354
  };
17261
17355
  var LoadingIcon = ({ height, width, ...props }) => {
17262
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
17356
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
17263
17357
  "svg",
17264
17358
  {
17265
17359
  viewBox: "0 0 38 38",
@@ -17269,9 +17363,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
17269
17363
  stroke: "currentColor",
17270
17364
  ...props,
17271
17365
  "data-testid": "loading-icon",
17272
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
17273
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
17274
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
17366
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
17367
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
17368
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
17275
17369
  "animateTransform",
17276
17370
  {
17277
17371
  attributeName: "transform",
@@ -17299,12 +17393,12 @@ var import_Popover = require("reakit/Popover");
17299
17393
 
17300
17394
  // src/components/Popover/Popover.styles.ts
17301
17395
  init_emotion_jsx_shim();
17302
- var import_react90 = require("@emotion/react");
17303
- var PopoverBtn = import_react90.css`
17396
+ var import_react92 = require("@emotion/react");
17397
+ var PopoverBtn = import_react92.css`
17304
17398
  border: none;
17305
17399
  background: none;
17306
17400
  `;
17307
- var PopoverDefaulterTriggerBtn = import_react90.css`
17401
+ var PopoverDefaulterTriggerBtn = import_react92.css`
17308
17402
  border: none;
17309
17403
  background: none;
17310
17404
  padding: var(--spacing-2xs);
@@ -17314,7 +17408,7 @@ var PopoverDefaulterTriggerBtn = import_react90.css`
17314
17408
  background-color: rgba(0, 0, 0, 0.05);
17315
17409
  }
17316
17410
  `;
17317
- var Popover = import_react90.css`
17411
+ var Popover = import_react92.css`
17318
17412
  border-left: var(--spacing-xs) solid var(--brand-secondary-3);
17319
17413
  border-radius: var(--rounded-base);
17320
17414
  box-shadow: var(--shadow-base);
@@ -17328,7 +17422,7 @@ var Popover = import_react90.css`
17328
17422
  `;
17329
17423
 
17330
17424
  // src/components/Popover/Popover.tsx
17331
- var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
17425
+ var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
17332
17426
  var Popover2 = ({
17333
17427
  iconColor = "action",
17334
17428
  icon = "info",
@@ -17342,28 +17436,28 @@ var Popover2 = ({
17342
17436
  ...otherProps
17343
17437
  }) => {
17344
17438
  const popover = (0, import_Popover.usePopoverState)({ placement });
17345
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
17346
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
17439
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
17440
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17347
17441
  import_Popover.PopoverDisclosure,
17348
17442
  {
17349
17443
  ...popover,
17350
17444
  css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
17351
17445
  title: buttonText,
17352
17446
  "data-testid": testId,
17353
- children: trigger ? trigger : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
17354
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon, { icon, iconColor, size: iconSize }),
17355
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { hidden: true, children: buttonText })
17447
+ children: trigger ? trigger : /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
17448
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Icon, { icon, iconColor, size: iconSize }),
17449
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { hidden: true, children: buttonText })
17356
17450
  ] })
17357
17451
  }
17358
17452
  ),
17359
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_Popover.Popover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
17453
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_Popover.Popover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
17360
17454
  ] });
17361
17455
  };
17362
17456
 
17363
17457
  // src/components/MediaCard/MediaCard.styles.ts
17364
17458
  init_emotion_jsx_shim();
17365
- var import_react91 = require("@emotion/react");
17366
- var cardBaseStyles = import_react91.css`
17459
+ var import_react93 = require("@emotion/react");
17460
+ var cardBaseStyles = import_react93.css`
17367
17461
  display: flex;
17368
17462
  flex-direction: column;
17369
17463
  justify-content: flex-start;
@@ -17377,7 +17471,7 @@ var cardBaseStyles = import_react91.css`
17377
17471
  outline: 2px solid var(--primary-action-default);
17378
17472
  }
17379
17473
  `;
17380
- var cardBaseCoverIconWrapperStyles = import_react91.css`
17474
+ var cardBaseCoverIconWrapperStyles = import_react93.css`
17381
17475
  position: relative;
17382
17476
  display: flex;
17383
17477
  align-items: center;
@@ -17389,19 +17483,19 @@ var cardBaseCoverIconWrapperStyles = import_react91.css`
17389
17483
  padding: var(--spacing-sm);
17390
17484
  cursor: pointer;
17391
17485
  `;
17392
- var cardBaseContentStyles = import_react91.css`
17486
+ var cardBaseContentStyles = import_react93.css`
17393
17487
  padding: var(--spacing-sm);
17394
17488
  `;
17395
- var cardBaseTitleStyles = import_react91.css`
17489
+ var cardBaseTitleStyles = import_react93.css`
17396
17490
  font-size: var(--fs-sm);
17397
17491
  color: var(--gray-500);
17398
17492
  cursor: pointer;
17399
17493
  `;
17400
- var cardBaseSubtitleStyles = import_react91.css`
17494
+ var cardBaseSubtitleStyles = import_react93.css`
17401
17495
  font-size: var(--fs-xs);
17402
17496
  color: var(--gray-500);
17403
17497
  `;
17404
- var cardBaseMenuButtonStyles = import_react91.css`
17498
+ var cardBaseMenuButtonStyles = import_react93.css`
17405
17499
  padding: var(--spacing-2xs);
17406
17500
  border-radius: var(--rounded-sm);
17407
17501
  border-width: 0;
@@ -17413,7 +17507,7 @@ var cardBaseMenuButtonStyles = import_react91.css`
17413
17507
  `;
17414
17508
 
17415
17509
  // src/components/MediaCard/MediaCard.tsx
17416
- var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
17510
+ var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
17417
17511
  var MediaCard = ({
17418
17512
  title,
17419
17513
  subtitle,
@@ -17424,13 +17518,13 @@ var MediaCard = ({
17424
17518
  onClick,
17425
17519
  ...cardProps
17426
17520
  }) => {
17427
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Card, { tag: "button", css: cardBaseStyles, ...cardProps, onClick, children: [
17428
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { css: cardBaseCoverIconWrapperStyles, children: cover }),
17429
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { css: cardBaseContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
17430
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1 }, children: [
17431
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", children: [
17432
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { css: cardBaseTitleStyles, "data-testid": "card-title", children: title }),
17433
- !infoPopover ? null : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { css: { display: "flex", cursor: "default" }, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17521
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Card, { tag: "button", css: cardBaseStyles, ...cardProps, onClick, children: [
17522
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseCoverIconWrapperStyles, children: cover }),
17523
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
17524
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1 }, children: [
17525
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", children: [
17526
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseTitleStyles, "data-testid": "card-title", children: title }),
17527
+ !infoPopover ? null : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { display: "flex", cursor: "default" }, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
17434
17528
  Popover2,
17435
17529
  {
17436
17530
  baseId: `info-of-${title}`,
@@ -17439,17 +17533,17 @@ var MediaCard = ({
17439
17533
  iconColor: "default",
17440
17534
  tabIndex: 0,
17441
17535
  css: { display: "block" },
17442
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { children: infoPopover })
17536
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: infoPopover })
17443
17537
  }
17444
17538
  ) })
17445
17539
  ] }),
17446
- !subtitle ? null : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { css: cardBaseSubtitleStyles, children: subtitle })
17540
+ !subtitle ? null : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: cardBaseSubtitleStyles, children: subtitle })
17447
17541
  ] }),
17448
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }),
17449
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(VerticalRhythm, { align: "center", justify: "center", onClick: (e) => e.stopPropagation(), children: !menuItems || Array.isArray(menuItems) && !menuItems.length ? null : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17542
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }),
17543
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(VerticalRhythm, { align: "center", justify: "center", onClick: (e) => e.stopPropagation(), children: !menuItems || Array.isArray(menuItems) && !menuItems.length ? null : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
17450
17544
  Menu,
17451
17545
  {
17452
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("button", { type: "button", "aria-label": "More options", css: cardBaseMenuButtonStyles, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Icon, { icon: "more-alt", iconColor: "gray", size: 16 }) }),
17546
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("button", { type: "button", "aria-label": "More options", css: cardBaseMenuButtonStyles, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Icon, { icon: "more-alt", iconColor: "gray", size: 16 }) }),
17453
17547
  menuLabel: `Menu of ${title}`,
17454
17548
  children: menuItems
17455
17549
  }
@@ -17461,12 +17555,12 @@ var MediaCard = ({
17461
17555
  // src/components/Modal/Modal.tsx
17462
17556
  init_emotion_jsx_shim();
17463
17557
  var import_CgClose6 = require("@react-icons/all-files/cg/CgClose");
17464
- var import_react93 = __toESM(require("react"));
17558
+ var import_react95 = __toESM(require("react"));
17465
17559
 
17466
17560
  // src/components/Modal/Modal.styles.ts
17467
17561
  init_emotion_jsx_shim();
17468
- var import_react92 = require("@emotion/react");
17469
- var modalWrapperStyles = import_react92.css`
17562
+ var import_react94 = require("@emotion/react");
17563
+ var modalWrapperStyles = import_react94.css`
17470
17564
  position: fixed;
17471
17565
  inset: 0;
17472
17566
  display: flex;
@@ -17474,13 +17568,13 @@ var modalWrapperStyles = import_react92.css`
17474
17568
  justify-content: center;
17475
17569
  z-index: var(--z-drawer);
17476
17570
  `;
17477
- var modalBackdropStyles = import_react92.css`
17571
+ var modalBackdropStyles = import_react94.css`
17478
17572
  position: absolute;
17479
17573
  inset: 0;
17480
17574
  background-color: var(--brand-secondary-1);
17481
17575
  opacity: 0.4;
17482
17576
  `;
17483
- var modalStyles = import_react92.css`
17577
+ var modalStyles = import_react94.css`
17484
17578
  position: relative;
17485
17579
  display: flex;
17486
17580
  flex-direction: column;
@@ -17495,21 +17589,21 @@ var modalStyles = import_react92.css`
17495
17589
  color: unset;
17496
17590
  z-index: 1;
17497
17591
  `;
17498
- var modalHeaderStyles = import_react92.css`
17592
+ var modalHeaderStyles = import_react94.css`
17499
17593
  display: flex;
17500
17594
  align-items: flex-start;
17501
17595
  gap: var(--spacing-base);
17502
17596
  font-size: var(--fs-md);
17503
17597
  line-height: 1.2;
17504
17598
  `;
17505
- var modalCloseButtonStyles = import_react92.css`
17599
+ var modalCloseButtonStyles = import_react94.css`
17506
17600
  display: block;
17507
17601
  padding: 0;
17508
17602
  background: transparent;
17509
17603
  border: none;
17510
17604
  margin-left: auto;
17511
17605
  `;
17512
- var modalContentStyles = import_react92.css`
17606
+ var modalContentStyles = import_react94.css`
17513
17607
  flex: 1;
17514
17608
  background-color: white;
17515
17609
  padding: var(--spacing-md);
@@ -17518,10 +17612,10 @@ var modalContentStyles = import_react92.css`
17518
17612
  `;
17519
17613
 
17520
17614
  // src/components/Modal/Modal.tsx
17521
- var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
17615
+ var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
17522
17616
  var defaultModalWidth = "75rem";
17523
17617
  var defaultModalHeight = "51rem";
17524
- var Modal = import_react93.default.forwardRef(
17618
+ var Modal = import_react95.default.forwardRef(
17525
17619
  ({
17526
17620
  header,
17527
17621
  children,
@@ -17537,12 +17631,12 @@ var Modal = import_react93.default.forwardRef(
17537
17631
  handler: onRequestClose,
17538
17632
  shortcut: "escape"
17539
17633
  });
17540
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { css: [modalWrapperStyles, wrapperClassName], children: [
17541
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { onClick: onRequestClose, css: modalBackdropStyles }),
17542
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("dialog", { ref, css: modalStyles, style: { width, height }, ...modalProps, children: [
17543
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { css: modalHeaderStyles, children: [
17544
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: header }),
17545
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
17634
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { css: [modalWrapperStyles, wrapperClassName], children: [
17635
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { onClick: onRequestClose, css: modalBackdropStyles }),
17636
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("dialog", { ref, css: modalStyles, style: { width, height }, ...modalProps, children: [
17637
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { css: modalHeaderStyles, children: [
17638
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: header }),
17639
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
17546
17640
  Button,
17547
17641
  {
17548
17642
  type: "button",
@@ -17551,12 +17645,12 @@ var Modal = import_react93.default.forwardRef(
17551
17645
  title: "Close dialog",
17552
17646
  buttonType: "ghost",
17553
17647
  "data-testid": "close-dialog",
17554
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Icon, { icon: import_CgClose6.CgClose, iconColor: "gray", size: 24 })
17648
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon, { icon: import_CgClose6.CgClose, iconColor: "gray", size: 24 })
17555
17649
  }
17556
17650
  )
17557
17651
  ] }),
17558
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
17559
- buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(HorizontalRhythm, { children: buttonGroup }) : null
17652
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
17653
+ buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(HorizontalRhythm, { children: buttonGroup }) : null
17560
17654
  ] })
17561
17655
  ] });
17562
17656
  }
@@ -17565,8 +17659,8 @@ Modal.displayName = "Modal";
17565
17659
 
17566
17660
  // src/components/ParameterInputs/hooks/ParameterShellContext.tsx
17567
17661
  init_emotion_jsx_shim();
17568
- var import_react94 = require("react");
17569
- var ParameterShellContext = (0, import_react94.createContext)({
17662
+ var import_react96 = require("react");
17663
+ var ParameterShellContext = (0, import_react96.createContext)({
17570
17664
  id: "",
17571
17665
  label: "",
17572
17666
  hiddenLabel: void 0,
@@ -17575,7 +17669,7 @@ var ParameterShellContext = (0, import_react94.createContext)({
17575
17669
  }
17576
17670
  });
17577
17671
  var useParameterShell = () => {
17578
- const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react94.useContext)(ParameterShellContext);
17672
+ const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react96.useContext)(ParameterShellContext);
17579
17673
  return {
17580
17674
  id,
17581
17675
  label,
@@ -17590,8 +17684,8 @@ init_emotion_jsx_shim();
17590
17684
 
17591
17685
  // src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
17592
17686
  init_emotion_jsx_shim();
17593
- var import_react95 = require("@emotion/react");
17594
- var inputIconBtn = import_react95.css`
17687
+ var import_react97 = require("@emotion/react");
17688
+ var inputIconBtn = import_react97.css`
17595
17689
  align-items: center;
17596
17690
  border: none;
17597
17691
  border-radius: var(--rounded-base);
@@ -17617,7 +17711,7 @@ var inputIconBtn = import_react95.css`
17617
17711
  `;
17618
17712
 
17619
17713
  // src/components/ParameterInputs/LabelLeadingIcon.tsx
17620
- var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
17714
+ var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
17621
17715
  var LabelLeadingIcon = ({
17622
17716
  icon,
17623
17717
  iconColor,
@@ -17629,7 +17723,7 @@ var LabelLeadingIcon = ({
17629
17723
  ...props
17630
17724
  }) => {
17631
17725
  const titleFr = title != null ? title : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
17632
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Tooltip, { title: titleFr, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
17726
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Tooltip, { title: titleFr, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
17633
17727
  "button",
17634
17728
  {
17635
17729
  css: inputIconBtn,
@@ -17638,7 +17732,7 @@ var LabelLeadingIcon = ({
17638
17732
  "aria-disabled": isLocked,
17639
17733
  ...props,
17640
17734
  children: [
17641
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
17735
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
17642
17736
  Icon,
17643
17737
  {
17644
17738
  icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
@@ -17658,8 +17752,8 @@ init_emotion_jsx_shim();
17658
17752
 
17659
17753
  // src/components/ParameterInputs/styles/ParameterInput.styles.ts
17660
17754
  init_emotion_jsx_shim();
17661
- var import_react96 = require("@emotion/react");
17662
- var inputContainer2 = import_react96.css`
17755
+ var import_react98 = require("@emotion/react");
17756
+ var inputContainer2 = import_react98.css`
17663
17757
  position: relative;
17664
17758
 
17665
17759
  &:hover,
@@ -17671,14 +17765,14 @@ var inputContainer2 = import_react96.css`
17671
17765
  }
17672
17766
  }
17673
17767
  `;
17674
- var labelText2 = import_react96.css`
17768
+ var labelText2 = import_react98.css`
17675
17769
  align-items: center;
17676
17770
  display: flex;
17677
17771
  gap: var(--spacing-xs);
17678
17772
  font-weight: var(--fw-regular);
17679
17773
  margin: 0 0 var(--spacing-xs);
17680
17774
  `;
17681
- var input2 = import_react96.css`
17775
+ var input2 = import_react98.css`
17682
17776
  display: block;
17683
17777
  appearance: none;
17684
17778
  box-sizing: border-box;
@@ -17722,18 +17816,18 @@ var input2 = import_react96.css`
17722
17816
  color: var(--gray-400);
17723
17817
  }
17724
17818
  `;
17725
- var selectInput = import_react96.css`
17819
+ var selectInput = import_react98.css`
17726
17820
  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");
17727
17821
  background-position: right var(--spacing-sm) center;
17728
17822
  background-repeat: no-repeat;
17729
17823
  background-size: 1rem;
17730
17824
  padding-right: var(--spacing-xl);
17731
17825
  `;
17732
- var inputWrapper = import_react96.css`
17826
+ var inputWrapper = import_react98.css`
17733
17827
  display: flex; // used to correct overflow with chrome textarea
17734
17828
  position: relative;
17735
17829
  `;
17736
- var inputIcon2 = import_react96.css`
17830
+ var inputIcon2 = import_react98.css`
17737
17831
  align-items: center;
17738
17832
  background: var(--white);
17739
17833
  border-radius: var(--rounded-md) 0 0 var(--rounded-md);
@@ -17749,7 +17843,7 @@ var inputIcon2 = import_react96.css`
17749
17843
  width: var(--spacing-lg);
17750
17844
  z-index: var(--z-10);
17751
17845
  `;
17752
- var inputToggleLabel2 = import_react96.css`
17846
+ var inputToggleLabel2 = import_react98.css`
17753
17847
  align-items: center;
17754
17848
  background: var(--white);
17755
17849
  cursor: pointer;
@@ -17760,7 +17854,7 @@ var inputToggleLabel2 = import_react96.css`
17760
17854
  min-height: var(--spacing-md);
17761
17855
  position: relative;
17762
17856
  `;
17763
- var toggleInput2 = import_react96.css`
17857
+ var toggleInput2 = import_react98.css`
17764
17858
  appearance: none;
17765
17859
  border: 1px solid var(--gray-300);
17766
17860
  background: var(--white);
@@ -17799,7 +17893,7 @@ var toggleInput2 = import_react96.css`
17799
17893
  border-color: var(--gray-300);
17800
17894
  }
17801
17895
  `;
17802
- var inlineLabel2 = import_react96.css`
17896
+ var inlineLabel2 = import_react98.css`
17803
17897
  padding-left: var(--spacing-lg);
17804
17898
  font-size: var(--fs-sm);
17805
17899
  font-weight: var(--fw-regular);
@@ -17815,7 +17909,7 @@ var inlineLabel2 = import_react96.css`
17815
17909
  }
17816
17910
  }
17817
17911
  `;
17818
- var inputMenu = import_react96.css`
17912
+ var inputMenu = import_react98.css`
17819
17913
  background: none;
17820
17914
  border: none;
17821
17915
  padding: var(--spacing-2xs);
@@ -17831,11 +17925,11 @@ var inputMenu = import_react96.css`
17831
17925
  background-color: var(--gray-200);
17832
17926
  }
17833
17927
  `;
17834
- var textarea2 = import_react96.css`
17928
+ var textarea2 = import_react98.css`
17835
17929
  resize: vertical;
17836
17930
  min-height: 2rem;
17837
17931
  `;
17838
- var dataConnectButton = import_react96.css`
17932
+ var dataConnectButton = import_react98.css`
17839
17933
  align-items: center;
17840
17934
  appearance: none;
17841
17935
  box-sizing: border-box;
@@ -17870,7 +17964,7 @@ var dataConnectButton = import_react96.css`
17870
17964
  pointer-events: none;
17871
17965
  }
17872
17966
  `;
17873
- var linkParameterBtn = import_react96.css`
17967
+ var linkParameterBtn = import_react98.css`
17874
17968
  border-radius: var(--rounded-base);
17875
17969
  background: var(--white);
17876
17970
  border: none;
@@ -17879,7 +17973,7 @@ var linkParameterBtn = import_react96.css`
17879
17973
  font-size: var(--fs-sm);
17880
17974
  line-height: 1;
17881
17975
  `;
17882
- var linkParameterControls = import_react96.css`
17976
+ var linkParameterControls = import_react98.css`
17883
17977
  position: absolute;
17884
17978
  inset: 0 0 0 auto;
17885
17979
  padding: 0 var(--spacing-base);
@@ -17888,7 +17982,7 @@ var linkParameterControls = import_react96.css`
17888
17982
  justify-content: center;
17889
17983
  gap: var(--spacing-base);
17890
17984
  `;
17891
- var linkParameterInput = (withExternalLinkIcon) => import_react96.css`
17985
+ var linkParameterInput = (withExternalLinkIcon) => import_react98.css`
17892
17986
  padding-right: calc(
17893
17987
  ${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
17894
17988
  var(--spacing-base)
@@ -17901,7 +17995,7 @@ var linkParameterInput = (withExternalLinkIcon) => import_react96.css`
17901
17995
  }
17902
17996
  }
17903
17997
  `;
17904
- var linkParameterIcon = import_react96.css`
17998
+ var linkParameterIcon = import_react98.css`
17905
17999
  align-items: center;
17906
18000
  color: var(--brand-secondary-3);
17907
18001
  display: flex;
@@ -17916,7 +18010,7 @@ var linkParameterIcon = import_react96.css`
17916
18010
  `;
17917
18011
 
17918
18012
  // src/components/ParameterInputs/ParameterDataResource.tsx
17919
- var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
18013
+ var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
17920
18014
  function ParameterDataResource({
17921
18015
  label,
17922
18016
  labelLeadingIcon,
@@ -17926,12 +18020,12 @@ function ParameterDataResource({
17926
18020
  disabled,
17927
18021
  children
17928
18022
  }) {
17929
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
17930
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("span", { css: labelText2, children: [
18023
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
18024
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("span", { css: labelText2, children: [
17931
18025
  labelLeadingIcon ? labelLeadingIcon : null,
17932
18026
  label
17933
18027
  ] }),
17934
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
18028
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
17935
18029
  "button",
17936
18030
  {
17937
18031
  type: "button",
@@ -17940,12 +18034,12 @@ function ParameterDataResource({
17940
18034
  disabled,
17941
18035
  onClick: onConnectDatasource,
17942
18036
  children: [
17943
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
18037
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
17944
18038
  children
17945
18039
  ]
17946
18040
  }
17947
18041
  ),
17948
- caption ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Caption, { children: caption }) : null
18042
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Caption, { children: caption }) : null
17949
18043
  ] });
17950
18044
  }
17951
18045
 
@@ -17954,20 +18048,20 @@ init_emotion_jsx_shim();
17954
18048
 
17955
18049
  // src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
17956
18050
  init_emotion_jsx_shim();
17957
- var import_react97 = require("@emotion/react");
17958
- var ParameterDrawerHeaderContainer = import_react97.css`
18051
+ var import_react99 = require("@emotion/react");
18052
+ var ParameterDrawerHeaderContainer = import_react99.css`
17959
18053
  align-items: center;
17960
18054
  display: flex;
17961
18055
  gap: var(--spacing-base);
17962
18056
  justify-content: space-between;
17963
18057
  margin-bottom: var(--spacing-sm);
17964
18058
  `;
17965
- var ParameterDrawerHeaderTitleGroup = import_react97.css`
18059
+ var ParameterDrawerHeaderTitleGroup = import_react99.css`
17966
18060
  align-items: center;
17967
18061
  display: flex;
17968
18062
  gap: var(--spacing-sm);
17969
18063
  `;
17970
- var ParameterDrawerHeaderTitle = import_react97.css`
18064
+ var ParameterDrawerHeaderTitle = import_react99.css`
17971
18065
  text-overflow: ellipsis;
17972
18066
  white-space: nowrap;
17973
18067
  overflow: hidden;
@@ -17975,12 +18069,12 @@ var ParameterDrawerHeaderTitle = import_react97.css`
17975
18069
  `;
17976
18070
 
17977
18071
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
17978
- var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
18072
+ var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
17979
18073
  var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
17980
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
17981
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
18074
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
18075
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
17982
18076
  iconBeforeTitle,
17983
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
18077
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
17984
18078
  ] }),
17985
18079
  children
17986
18080
  ] });
@@ -17988,12 +18082,12 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
17988
18082
 
17989
18083
  // src/components/ParameterInputs/ParameterGroup.tsx
17990
18084
  init_emotion_jsx_shim();
17991
- var import_react99 = require("react");
18085
+ var import_react101 = require("react");
17992
18086
 
17993
18087
  // src/components/ParameterInputs/styles/ParameterGroup.styles.ts
17994
18088
  init_emotion_jsx_shim();
17995
- var import_react98 = require("@emotion/react");
17996
- var fieldsetStyles = import_react98.css`
18089
+ var import_react100 = require("@emotion/react");
18090
+ var fieldsetStyles = import_react100.css`
17997
18091
  &:disabled,
17998
18092
  [readonly] {
17999
18093
  pointer-events: none;
@@ -18004,7 +18098,7 @@ var fieldsetStyles = import_react98.css`
18004
18098
  }
18005
18099
  }
18006
18100
  `;
18007
- var fieldsetLegend2 = import_react98.css`
18101
+ var fieldsetLegend2 = import_react100.css`
18008
18102
  display: block;
18009
18103
  font-weight: var(--fw-medium);
18010
18104
  margin-bottom: var(--spacing-sm);
@@ -18012,11 +18106,11 @@ var fieldsetLegend2 = import_react98.css`
18012
18106
  `;
18013
18107
 
18014
18108
  // src/components/ParameterInputs/ParameterGroup.tsx
18015
- var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
18016
- var ParameterGroup = (0, import_react99.forwardRef)(
18109
+ var import_jsx_runtime92 = require("@emotion/react/jsx-runtime");
18110
+ var ParameterGroup = (0, import_react101.forwardRef)(
18017
18111
  ({ legend, isDisabled, children, ...props }, ref) => {
18018
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
18019
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("legend", { css: fieldsetLegend2, children: legend }),
18112
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
18113
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("legend", { css: fieldsetLegend2, children: legend }),
18020
18114
  children
18021
18115
  ] });
18022
18116
  }
@@ -18024,63 +18118,24 @@ var ParameterGroup = (0, import_react99.forwardRef)(
18024
18118
 
18025
18119
  // src/components/ParameterInputs/ParameterImage.tsx
18026
18120
  init_emotion_jsx_shim();
18027
- var import_react105 = require("react");
18121
+ var import_react107 = require("react");
18028
18122
 
18029
18123
  // src/components/ParameterInputs/ParameterImagePreview.tsx
18030
18124
  init_emotion_jsx_shim();
18031
- var import_react101 = require("react");
18125
+ var import_react103 = require("react");
18032
18126
  var import_react_dom2 = require("react-dom");
18033
18127
 
18034
- // src/utils/url.ts
18035
- init_emotion_jsx_shim();
18036
- var isValidUrl = (url, options = {}) => {
18037
- try {
18038
- new URL(url, options.allowRelative ? "https://defaultbaseurl.com" : void 0);
18039
- return true;
18040
- } catch (e) {
18041
- return false;
18042
- }
18043
- };
18044
-
18045
18128
  // src/components/ParameterInputs/styles/ParameterImage.styles.ts
18046
18129
  init_emotion_jsx_shim();
18047
- var import_react100 = require("@emotion/react");
18048
- var imageWrapper = import_react100.css`
18049
- position: relative;
18050
- display: flex;
18051
- flex-direction: column;
18052
- background: var(--gray-50);
18053
- max-width: 100%;
18054
- max-height: 100%;
18055
- `;
18056
- var imageWrapperLoading = import_react100.css`
18057
- animation: ${skeletonLoading} var(--duration-slow) linear infinite alternate;
18058
- `;
18059
- var img = import_react100.css`
18060
- object-fit: contain;
18061
- max-width: 100%;
18062
- height: auto;
18063
- opacity: var(--opacity-0);
18064
- margin: 0 auto;
18065
- `;
18066
- var imgLoading = import_react100.css`
18067
- opacity: 0;
18068
- `;
18069
- var imgLoaded = import_react100.css`
18070
- animation: ${fadeIn} var(--duration-slow) var(--timing-ease-out) forwards;
18071
- opacity: 1;
18072
- `;
18073
- var brokenImage = import_react100.css`
18074
- height: 160px;
18075
- `;
18076
- var previewWrapper = import_react100.css`
18130
+ var import_react102 = require("@emotion/react");
18131
+ var previewWrapper = import_react102.css`
18077
18132
  margin-top: var(--spacing-xs);
18078
18133
  background: var(--gray-50);
18079
18134
  padding: var(--spacing-sm);
18080
18135
  border: solid 1px var(--gray-300);
18081
18136
  border-radius: var(--rounded-sm);
18082
18137
  `;
18083
- var previewLink = import_react100.css`
18138
+ var previewLink = import_react102.css`
18084
18139
  display: block;
18085
18140
  width: 100%;
18086
18141
 
@@ -18088,7 +18143,7 @@ var previewLink = import_react100.css`
18088
18143
  max-height: 9rem;
18089
18144
  }
18090
18145
  `;
18091
- var previewModalWrapper = import_react100.css`
18146
+ var previewModalWrapper = import_react102.css`
18092
18147
  background: var(--gray-50);
18093
18148
  display: flex;
18094
18149
  height: 100%;
@@ -18097,7 +18152,7 @@ var previewModalWrapper = import_react100.css`
18097
18152
  border: solid 1px var(--gray-300);
18098
18153
  border-radius: var(--rounded-sm);
18099
18154
  `;
18100
- var previewModalImage = import_react100.css`
18155
+ var previewModalImage = import_react102.css`
18101
18156
  display: flex;
18102
18157
  height: 100%;
18103
18158
  width: 100%;
@@ -18109,122 +18164,61 @@ var previewModalImage = import_react100.css`
18109
18164
  `;
18110
18165
 
18111
18166
  // src/components/ParameterInputs/ParameterImagePreview.tsx
18112
- var import_jsx_runtime92 = require("@emotion/react/jsx-runtime");
18167
+ var import_jsx_runtime93 = require("@emotion/react/jsx-runtime");
18113
18168
  function ParameterImagePreview({ imageSrc }) {
18114
- const [showModal, setShowModal] = (0, import_react101.useState)(false);
18115
- return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { css: previewWrapper, children: [
18116
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
18117
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
18169
+ const [showModal, setShowModal] = (0, import_react103.useState)(false);
18170
+ return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { css: previewWrapper, children: [
18171
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
18172
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
18118
18173
  "button",
18119
18174
  {
18120
18175
  css: previewLink,
18121
18176
  onClick: () => {
18122
18177
  setShowModal(true);
18123
18178
  },
18124
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Image, { src: imageSrc })
18179
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
18125
18180
  }
18126
18181
  )
18127
18182
  ] }) : null;
18128
18183
  }
18129
18184
  var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
18130
- return open ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, { children: (0, import_react_dom2.createPortal)(
18131
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
18185
+ return open ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_jsx_runtime93.Fragment, { children: (0, import_react_dom2.createPortal)(
18186
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
18132
18187
  Modal,
18133
18188
  {
18134
18189
  header: "Image Preview",
18135
18190
  onRequestClose,
18136
18191
  withoutContentPadding: true,
18137
- buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
18138
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Image, { src: imageSrc, css: previewModalImage }) })
18192
+ buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
18193
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
18139
18194
  }
18140
18195
  ),
18141
18196
  document.body
18142
18197
  ) }) : null;
18143
18198
  };
18144
- var Image = ({ src, className }) => {
18145
- const [loading, setLoading] = (0, import_react101.useState)(false);
18146
- const [loadErrorText, setLoadErrorText] = (0, import_react101.useState)("");
18147
- const errorText = "The text you provided is not a valid URL";
18148
- const updateImageSrc = (0, import_react101.useCallback)(() => {
18149
- let message = "";
18150
- try {
18151
- if (src !== "") {
18152
- const url = String(src).startsWith("//") ? `${location.protocol}${src}` : String(src);
18153
- if (!isValidUrl(url) || !url.startsWith("https")) {
18154
- throw Error(errorText);
18155
- }
18156
- }
18157
- message = "";
18158
- } catch (e) {
18159
- message = errorText;
18160
- }
18161
- setLoadErrorText(message);
18162
- }, [setLoadErrorText, src]);
18163
- (0, import_react101.useEffect)(() => {
18164
- updateImageSrc();
18165
- }, [src]);
18166
- const handleLoadEvent = () => {
18167
- setLoadErrorText("");
18168
- if (src) {
18169
- setLoading(true);
18170
- }
18171
- const timer = setTimeout(() => {
18172
- setLoading(false);
18173
- }, 1e3);
18174
- return () => clearTimeout(timer);
18175
- };
18176
- const handleErrorEvent = () => {
18177
- setLoadErrorText("The value you provided is not a valid image URL");
18178
- };
18179
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
18180
- "span",
18181
- {
18182
- className,
18183
- css: [imageWrapper, loading ? imageWrapperLoading : null],
18184
- children: [
18185
- src && !loadErrorText ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
18186
- "img",
18187
- {
18188
- src,
18189
- css: [img, loading ? imgLoading : imgLoaded],
18190
- alt: "image preview",
18191
- onLoad: handleLoadEvent,
18192
- onError: handleErrorEvent,
18193
- loading: "lazy",
18194
- "data-testid": "parameter-image-preview"
18195
- }
18196
- ) : null,
18197
- src && loadErrorText ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
18198
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ImageBroken, { css: [brokenImage, img, imgLoaded] }),
18199
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ErrorMessage, { message: loadErrorText })
18200
- ] }) : null
18201
- ]
18202
- }
18203
- );
18204
- };
18205
18199
 
18206
18200
  // src/components/ParameterInputs/ParameterShell.tsx
18207
18201
  init_emotion_jsx_shim();
18208
- var import_react104 = require("react");
18202
+ var import_react106 = require("react");
18209
18203
 
18210
18204
  // src/components/ParameterInputs/ParameterLabel.tsx
18211
18205
  init_emotion_jsx_shim();
18212
- var import_jsx_runtime93 = require("@emotion/react/jsx-runtime");
18206
+ var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
18213
18207
  var ParameterLabel = ({ id, asSpan, children, ...props }) => {
18214
- return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
18208
+ return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
18215
18209
  };
18216
18210
 
18217
18211
  // src/components/ParameterInputs/ParameterMenuButton.tsx
18218
18212
  init_emotion_jsx_shim();
18219
- var import_react102 = require("react");
18220
- var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
18221
- var ParameterMenuButton = (0, import_react102.forwardRef)(
18213
+ var import_react104 = require("react");
18214
+ var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
18215
+ var ParameterMenuButton = (0, import_react104.forwardRef)(
18222
18216
  ({ label, children }, ref) => {
18223
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
18217
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
18224
18218
  Menu,
18225
18219
  {
18226
18220
  menuLabel: `${label} menu`,
18227
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
18221
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
18228
18222
  "button",
18229
18223
  {
18230
18224
  className: "parameter-menu",
@@ -18232,7 +18226,7 @@ var ParameterMenuButton = (0, import_react102.forwardRef)(
18232
18226
  type: "button",
18233
18227
  "aria-label": `${label} options`,
18234
18228
  ref,
18235
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
18229
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
18236
18230
  }
18237
18231
  ),
18238
18232
  children
@@ -18243,8 +18237,8 @@ var ParameterMenuButton = (0, import_react102.forwardRef)(
18243
18237
 
18244
18238
  // src/components/ParameterInputs/styles/ParameterShell.styles.ts
18245
18239
  init_emotion_jsx_shim();
18246
- var import_react103 = require("@emotion/react");
18247
- var emptyParameterShell = import_react103.css`
18240
+ var import_react105 = require("@emotion/react");
18241
+ var emptyParameterShell = import_react105.css`
18248
18242
  border-radius: var(--rounded-sm);
18249
18243
  background: var(--white);
18250
18244
  flex-grow: 1;
@@ -18252,7 +18246,7 @@ var emptyParameterShell = import_react103.css`
18252
18246
  position: relative;
18253
18247
  max-width: 100%;
18254
18248
  `;
18255
- var emptyParameterShellText = import_react103.css`
18249
+ var emptyParameterShellText = import_react105.css`
18256
18250
  background: var(--brand-secondary-6);
18257
18251
  border-radius: var(--rounded-sm);
18258
18252
  padding: var(--spacing-sm);
@@ -18260,7 +18254,7 @@ var emptyParameterShellText = import_react103.css`
18260
18254
  font-size: var(--fs-sm);
18261
18255
  margin: 0;
18262
18256
  `;
18263
- var overrideMarker = import_react103.css`
18257
+ var overrideMarker = import_react105.css`
18264
18258
  border-radius: var(--rounded-sm);
18265
18259
  border: 10px solid var(--gray-300);
18266
18260
  border-left-color: transparent;
@@ -18271,7 +18265,7 @@ var overrideMarker = import_react103.css`
18271
18265
  `;
18272
18266
 
18273
18267
  // src/components/ParameterInputs/ParameterShell.tsx
18274
- var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
18268
+ var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
18275
18269
  var extractParameterProps = (props) => {
18276
18270
  const {
18277
18271
  id,
@@ -18329,23 +18323,23 @@ var ParameterShell = ({
18329
18323
  children,
18330
18324
  ...props
18331
18325
  }) => {
18332
- const [manualErrorMessage, setManualErrorMessage] = (0, import_react104.useState)(void 0);
18326
+ const [manualErrorMessage, setManualErrorMessage] = (0, import_react106.useState)(void 0);
18333
18327
  const setErrorMessage = (message) => setManualErrorMessage(message);
18334
18328
  const errorMessaging = errorMessage || manualErrorMessage;
18335
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { css: inputContainer2, ...props, children: [
18336
- hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(ParameterLabel, { id, css: labelText2, children: [
18329
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { css: inputContainer2, ...props, children: [
18330
+ hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(ParameterLabel, { id, css: labelText2, children: [
18337
18331
  labelLeadingIcon != null ? labelLeadingIcon : null,
18338
18332
  label,
18339
18333
  labelTrailingIcon != null ? labelTrailingIcon : null
18340
18334
  ] }),
18341
- !title ? null : /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(ParameterLabel, { id, asSpan: true, children: [
18335
+ !title ? null : /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(ParameterLabel, { id, asSpan: true, children: [
18342
18336
  labelLeadingIcon != null ? labelLeadingIcon : null,
18343
18337
  title,
18344
18338
  labelTrailingIcon != null ? labelTrailingIcon : null
18345
18339
  ] }),
18346
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { css: inputWrapper, children: [
18347
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
18348
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
18340
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { css: inputWrapper, children: [
18341
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
18342
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
18349
18343
  ParameterShellContext.Provider,
18350
18344
  {
18351
18345
  value: {
@@ -18355,41 +18349,41 @@ var ParameterShell = ({
18355
18349
  errorMessage: errorMessaging,
18356
18350
  handleManuallySetErrorMessage: (message) => setErrorMessage(message)
18357
18351
  },
18358
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(ParameterShellPlaceholder, { children: [
18352
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(ParameterShellPlaceholder, { children: [
18359
18353
  children,
18360
- hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
18354
+ hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
18361
18355
  ] })
18362
18356
  }
18363
18357
  )
18364
18358
  ] }),
18365
- caption ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
18366
- errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
18367
- warningMessage ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(WarningMessage, { message: warningMessage }) : null,
18368
- infoMessage ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(InfoMessage, { message: infoMessage }) : null
18359
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
18360
+ errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
18361
+ warningMessage ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(WarningMessage, { message: warningMessage }) : null,
18362
+ infoMessage ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(InfoMessage, { message: infoMessage }) : null
18369
18363
  ] });
18370
18364
  };
18371
18365
  var ParameterShellPlaceholder = ({ children }) => {
18372
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { css: emptyParameterShell, children });
18366
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { css: emptyParameterShell, children });
18373
18367
  };
18374
- var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
18368
+ var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
18375
18369
 
18376
18370
  // src/components/ParameterInputs/ParameterImage.tsx
18377
- var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
18378
- var ParameterImage = (0, import_react105.forwardRef)(
18371
+ var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
18372
+ var ParameterImage = (0, import_react107.forwardRef)(
18379
18373
  ({ children, ...props }, ref) => {
18380
18374
  const { shellProps, innerProps } = extractParameterProps(props);
18381
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
18382
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ParameterImageInner, { ref, ...innerProps }),
18375
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
18376
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ParameterImageInner, { ref, ...innerProps }),
18383
18377
  children
18384
18378
  ] });
18385
18379
  }
18386
18380
  );
18387
- var ParameterImageInner = (0, import_react105.forwardRef)((props, ref) => {
18381
+ var ParameterImageInner = (0, import_react107.forwardRef)((props, ref) => {
18388
18382
  const { value } = props;
18389
18383
  const { id, label, hiddenLabel, errorMessage } = useParameterShell();
18390
- const deferredValue = (0, import_react105.useDeferredValue)(value);
18391
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
18392
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
18384
+ const deferredValue = (0, import_react107.useDeferredValue)(value);
18385
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
18386
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
18393
18387
  "input",
18394
18388
  {
18395
18389
  css: input2,
@@ -18401,22 +18395,22 @@ var ParameterImageInner = (0, import_react105.forwardRef)((props, ref) => {
18401
18395
  ...props
18402
18396
  }
18403
18397
  ),
18404
- errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
18398
+ errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
18405
18399
  ] });
18406
18400
  });
18407
18401
 
18408
18402
  // src/components/ParameterInputs/ParameterInput.tsx
18409
18403
  init_emotion_jsx_shim();
18410
- var import_react106 = require("react");
18411
- var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
18412
- var ParameterInput = (0, import_react106.forwardRef)((props, ref) => {
18404
+ var import_react108 = require("react");
18405
+ var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
18406
+ var ParameterInput = (0, import_react108.forwardRef)((props, ref) => {
18413
18407
  const { shellProps, innerProps } = extractParameterProps(props);
18414
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ParameterInputInner, { ref, ...innerProps }) });
18408
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ParameterInputInner, { ref, ...innerProps }) });
18415
18409
  });
18416
- var ParameterInputInner = (0, import_react106.forwardRef)(
18410
+ var ParameterInputInner = (0, import_react108.forwardRef)(
18417
18411
  ({ ...props }, ref) => {
18418
18412
  const { id, label, hiddenLabel } = useParameterShell();
18419
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
18413
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
18420
18414
  "input",
18421
18415
  {
18422
18416
  css: input2,
@@ -18433,19 +18427,19 @@ var ParameterInputInner = (0, import_react106.forwardRef)(
18433
18427
 
18434
18428
  // src/components/ParameterInputs/ParameterLink.tsx
18435
18429
  init_emotion_jsx_shim();
18436
- var import_react107 = require("react");
18437
- var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
18438
- var ParameterLink = (0, import_react107.forwardRef)(
18430
+ var import_react109 = require("react");
18431
+ var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
18432
+ var ParameterLink = (0, import_react109.forwardRef)(
18439
18433
  ({ disabled, onConnectLink, externalLink, ...props }, ref) => {
18440
18434
  const { shellProps, innerProps } = extractParameterProps(props);
18441
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
18435
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18442
18436
  ParameterShell,
18443
18437
  {
18444
18438
  "data-testid": "link-parameter-editor",
18445
18439
  ...shellProps,
18446
18440
  label: innerProps.value ? shellProps.label : "",
18447
18441
  title: !innerProps.value ? shellProps.label : void 0,
18448
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
18442
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18449
18443
  ParameterLinkInner,
18450
18444
  {
18451
18445
  onConnectLink,
@@ -18458,13 +18452,13 @@ var ParameterLink = (0, import_react107.forwardRef)(
18458
18452
  );
18459
18453
  }
18460
18454
  );
18461
- var ParameterLinkInner = (0, import_react107.forwardRef)(
18455
+ var ParameterLinkInner = (0, import_react109.forwardRef)(
18462
18456
  ({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
18463
18457
  const { id, label, hiddenLabel } = useParameterShell();
18464
18458
  if (!props.value)
18465
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText });
18466
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { css: inputWrapper, children: [
18467
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
18459
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText });
18460
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { css: inputWrapper, children: [
18461
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18468
18462
  "input",
18469
18463
  {
18470
18464
  type: "text",
@@ -18476,8 +18470,8 @@ var ParameterLinkInner = (0, import_react107.forwardRef)(
18476
18470
  ...props
18477
18471
  }
18478
18472
  ),
18479
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { css: linkParameterControls, children: [
18480
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
18473
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { css: linkParameterControls, children: [
18474
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18481
18475
  "button",
18482
18476
  {
18483
18477
  type: "button",
@@ -18488,7 +18482,7 @@ var ParameterLinkInner = (0, import_react107.forwardRef)(
18488
18482
  children: "edit"
18489
18483
  }
18490
18484
  ),
18491
- externalLink ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
18485
+ externalLink ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18492
18486
  "a",
18493
18487
  {
18494
18488
  href: externalLink,
@@ -18496,7 +18490,7 @@ var ParameterLinkInner = (0, import_react107.forwardRef)(
18496
18490
  title: "Open link in new tab",
18497
18491
  target: "_blank",
18498
18492
  rel: "noopener noreferrer",
18499
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
18493
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
18500
18494
  }
18501
18495
  ) : null
18502
18496
  ] })
@@ -18506,7 +18500,7 @@ var ParameterLinkInner = (0, import_react107.forwardRef)(
18506
18500
 
18507
18501
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
18508
18502
  init_emotion_jsx_shim();
18509
- var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
18503
+ var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
18510
18504
  var ParameterNameAndPublicIdInput = ({
18511
18505
  id,
18512
18506
  onBlur,
@@ -18532,8 +18526,8 @@ var ParameterNameAndPublicIdInput = ({
18532
18526
  navigator.clipboard.writeText(values[publicIdFieldName]);
18533
18527
  };
18534
18528
  autoFocus == null ? void 0 : autoFocus();
18535
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
18536
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18529
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
18530
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
18537
18531
  ParameterInput,
18538
18532
  {
18539
18533
  id: nameIdField,
@@ -18552,7 +18546,7 @@ var ParameterNameAndPublicIdInput = ({
18552
18546
  value: values[nameIdField]
18553
18547
  }
18554
18548
  ),
18555
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18549
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
18556
18550
  ParameterInput,
18557
18551
  {
18558
18552
  id: publicIdFieldName,
@@ -18566,11 +18560,11 @@ var ParameterNameAndPublicIdInput = ({
18566
18560
  caption: publicIdCaption,
18567
18561
  placeholder: publicIdPlaceholderText,
18568
18562
  errorMessage: publicIdError,
18569
- menuItems: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18563
+ menuItems: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
18570
18564
  MenuItem,
18571
18565
  {
18572
18566
  disabled: !values[publicIdFieldName],
18573
- icon: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
18567
+ icon: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
18574
18568
  onClick: handleCopyPidFieldValue,
18575
18569
  children: "Copy"
18576
18570
  }
@@ -18578,13 +18572,13 @@ var ParameterNameAndPublicIdInput = ({
18578
18572
  value: values[publicIdFieldName]
18579
18573
  }
18580
18574
  ),
18581
- (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
18575
+ (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
18582
18576
  ] });
18583
18577
  };
18584
18578
 
18585
18579
  // src/components/ParameterInputs/ParameterRichText.tsx
18586
18580
  init_emotion_jsx_shim();
18587
- var import_react114 = require("@emotion/react");
18581
+ var import_react116 = require("@emotion/react");
18588
18582
  var import_list3 = require("@lexical/list");
18589
18583
  var import_markdown = require("@lexical/markdown");
18590
18584
  var import_LexicalComposer = require("@lexical/react/LexicalComposer");
@@ -18691,7 +18685,7 @@ var getLabelForElement = (type) => {
18691
18685
  // src/components/ParameterInputs/ParameterRichText.tsx
18692
18686
  var import_fast_equals2 = require("fast-equals");
18693
18687
  var import_lexical6 = require("lexical");
18694
- var import_react115 = require("react");
18688
+ var import_react117 = require("react");
18695
18689
 
18696
18690
  // src/components/ParameterInputs/rich-text/CustomCodeNode.ts
18697
18691
  init_emotion_jsx_shim();
@@ -18714,10 +18708,10 @@ init_emotion_jsx_shim();
18714
18708
  var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
18715
18709
  var import_utils2 = require("@lexical/utils");
18716
18710
  var import_lexical = require("lexical");
18717
- var import_react108 = require("react");
18711
+ var import_react110 = require("react");
18718
18712
  function DisableStylesPlugin() {
18719
18713
  const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
18720
- (0, import_react108.useEffect)(() => {
18714
+ (0, import_react110.useEffect)(() => {
18721
18715
  return (0, import_utils2.mergeRegister)(
18722
18716
  // Disable text alignment on paragraph nodes
18723
18717
  editor.registerNodeTransform(import_lexical.ParagraphNode, (node) => {
@@ -18912,13 +18906,13 @@ var codeElement = import_css.css`
18912
18906
 
18913
18907
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
18914
18908
  init_emotion_jsx_shim();
18915
- var import_react109 = require("@emotion/react");
18909
+ var import_react111 = require("@emotion/react");
18916
18910
  var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
18917
18911
  var import_LexicalNodeEventPlugin = require("@lexical/react/LexicalNodeEventPlugin");
18918
18912
  var import_utils3 = require("@lexical/utils");
18919
18913
  var import_fast_equals = require("fast-equals");
18920
18914
  var import_lexical3 = require("lexical");
18921
- var import_react110 = require("react");
18915
+ var import_react112 = require("react");
18922
18916
 
18923
18917
  // src/components/ParameterInputs/rich-text/utils.ts
18924
18918
  init_emotion_jsx_shim();
@@ -18957,7 +18951,7 @@ var getSelectedNode = (selection) => {
18957
18951
  };
18958
18952
 
18959
18953
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
18960
- var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
18954
+ var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
18961
18955
  var isProjectMapLinkValue = (value) => {
18962
18956
  return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
18963
18957
  value.nodeId && value.path && value.projectMapId
@@ -19244,16 +19238,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = (0, import_lexical3.createCommand)(
19244
19238
  );
19245
19239
  var LINK_POPOVER_OFFSET_X = 0;
19246
19240
  var LINK_POPOVER_OFFSET_Y = 8;
19247
- var linkPopover = import_react109.css`
19241
+ var linkPopover = import_react111.css`
19248
19242
  position: absolute;
19249
19243
  z-index: 5;
19250
19244
  `;
19251
- var linkPopoverContainer = import_react109.css`
19245
+ var linkPopoverContainer = import_react111.css`
19252
19246
  ${Popover};
19253
19247
  align-items: center;
19254
19248
  display: flex;
19255
19249
  `;
19256
- var linkPopoverAnchor = import_react109.css`
19250
+ var linkPopoverAnchor = import_react111.css`
19257
19251
  ${link}
19258
19252
  ${linkColorDefault}
19259
19253
  `;
@@ -19262,17 +19256,17 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
19262
19256
  return path;
19263
19257
  };
19264
19258
  const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
19265
- const [linkPopoverState, setLinkPopoverState] = (0, import_react110.useState)();
19266
- const linkPopoverElRef = (0, import_react110.useRef)(null);
19267
- const [isEditorFocused, setIsEditorFocused] = (0, import_react110.useState)(false);
19268
- const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react110.useState)(false);
19269
- (0, import_react110.useEffect)(() => {
19259
+ const [linkPopoverState, setLinkPopoverState] = (0, import_react112.useState)();
19260
+ const linkPopoverElRef = (0, import_react112.useRef)(null);
19261
+ const [isEditorFocused, setIsEditorFocused] = (0, import_react112.useState)(false);
19262
+ const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react112.useState)(false);
19263
+ (0, import_react112.useEffect)(() => {
19270
19264
  if (!isEditorFocused && !isLinkPopoverFocused) {
19271
19265
  setLinkPopoverState(void 0);
19272
19266
  return;
19273
19267
  }
19274
19268
  }, [isEditorFocused, isLinkPopoverFocused]);
19275
- (0, import_react110.useEffect)(() => {
19269
+ (0, import_react112.useEffect)(() => {
19276
19270
  if (!editor.hasNodes([LinkNode])) {
19277
19271
  throw new Error("LinkNode not registered on editor");
19278
19272
  }
@@ -19341,7 +19335,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
19341
19335
  )
19342
19336
  );
19343
19337
  }, [editor, onConnectLink]);
19344
- const maybeShowLinkToolbar = (0, import_react110.useCallback)(() => {
19338
+ const maybeShowLinkToolbar = (0, import_react112.useCallback)(() => {
19345
19339
  if (!editor.isEditable()) {
19346
19340
  return;
19347
19341
  }
@@ -19373,7 +19367,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
19373
19367
  }
19374
19368
  });
19375
19369
  }, [editor]);
19376
- (0, import_react110.useEffect)(() => {
19370
+ (0, import_react112.useEffect)(() => {
19377
19371
  return editor.registerUpdateListener(({ editorState }) => {
19378
19372
  requestAnimationFrame(() => {
19379
19373
  editorState.read(() => {
@@ -19400,8 +19394,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
19400
19394
  });
19401
19395
  });
19402
19396
  };
19403
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
19404
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19397
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
19398
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19405
19399
  import_LexicalNodeEventPlugin.NodeEventPlugin,
19406
19400
  {
19407
19401
  nodeType: LinkNode,
@@ -19411,7 +19405,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
19411
19405
  }
19412
19406
  }
19413
19407
  ),
19414
- linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19408
+ linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19415
19409
  "div",
19416
19410
  {
19417
19411
  css: linkPopover,
@@ -19420,8 +19414,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
19420
19414
  top: linkPopoverState.position.y
19421
19415
  },
19422
19416
  ref: linkPopoverElRef,
19423
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { css: linkPopoverContainer, children: [
19424
- linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19417
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { css: linkPopoverContainer, children: [
19418
+ linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19425
19419
  "a",
19426
19420
  {
19427
19421
  href: parsePath(
@@ -19433,7 +19427,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
19433
19427
  children: parsePath(linkPopoverState.node.__link.path)
19434
19428
  }
19435
19429
  ),
19436
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19430
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19437
19431
  Button,
19438
19432
  {
19439
19433
  size: "xs",
@@ -19441,7 +19435,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
19441
19435
  onEditLinkNode(linkPopoverState.node);
19442
19436
  },
19443
19437
  buttonType: "ghost",
19444
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
19438
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
19445
19439
  }
19446
19440
  )
19447
19441
  ] })
@@ -19461,8 +19455,8 @@ var import_list = require("@lexical/list");
19461
19455
  var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
19462
19456
  var import_LexicalTabIndentationPlugin = require("@lexical/react/LexicalTabIndentationPlugin");
19463
19457
  var import_lexical4 = require("lexical");
19464
- var import_react111 = require("react");
19465
- var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
19458
+ var import_react113 = require("react");
19459
+ var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
19466
19460
  function isIndentPermitted(maxDepth) {
19467
19461
  const selection = (0, import_lexical4.$getSelection)();
19468
19462
  if (!(0, import_lexical4.$isRangeSelection)(selection)) {
@@ -19485,19 +19479,19 @@ function isIndentPermitted(maxDepth) {
19485
19479
  }
19486
19480
  function ListIndentPlugin({ maxDepth }) {
19487
19481
  const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
19488
- (0, import_react111.useEffect)(() => {
19482
+ (0, import_react113.useEffect)(() => {
19489
19483
  return editor.registerCommand(
19490
19484
  import_lexical4.INDENT_CONTENT_COMMAND,
19491
19485
  () => !isIndentPermitted(maxDepth),
19492
19486
  import_lexical4.COMMAND_PRIORITY_CRITICAL
19493
19487
  );
19494
19488
  }, [editor, maxDepth]);
19495
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
19489
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
19496
19490
  }
19497
19491
 
19498
19492
  // src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
19499
19493
  init_emotion_jsx_shim();
19500
- var import_react112 = require("@emotion/react");
19494
+ var import_react114 = require("@emotion/react");
19501
19495
  var import_code2 = require("@lexical/code");
19502
19496
  var import_list2 = require("@lexical/list");
19503
19497
  var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
@@ -19505,9 +19499,9 @@ var import_rich_text = require("@lexical/rich-text");
19505
19499
  var import_selection2 = require("@lexical/selection");
19506
19500
  var import_utils6 = require("@lexical/utils");
19507
19501
  var import_lexical5 = require("lexical");
19508
- var import_react113 = require("react");
19509
- var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
19510
- var toolbar = import_react112.css`
19502
+ var import_react115 = require("react");
19503
+ var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
19504
+ var toolbar = import_react114.css`
19511
19505
  background: var(--gray-50);
19512
19506
  border-radius: var(--rounded-base);
19513
19507
  display: flex;
@@ -19519,7 +19513,7 @@ var toolbar = import_react112.css`
19519
19513
  top: calc(var(--spacing-sm) * -2);
19520
19514
  z-index: 10;
19521
19515
  `;
19522
- var toolbarGroup = import_react112.css`
19516
+ var toolbarGroup = import_react114.css`
19523
19517
  display: flex;
19524
19518
  gap: var(--spacing-xs);
19525
19519
  position: relative;
@@ -19535,7 +19529,7 @@ var toolbarGroup = import_react112.css`
19535
19529
  width: 1px;
19536
19530
  }
19537
19531
  `;
19538
- var richTextToolbarButton = import_react112.css`
19532
+ var richTextToolbarButton = import_react114.css`
19539
19533
  align-items: center;
19540
19534
  appearance: none;
19541
19535
  border: 0;
@@ -19548,17 +19542,17 @@ var richTextToolbarButton = import_react112.css`
19548
19542
  min-width: 32px;
19549
19543
  padding: 0 var(--spacing-sm);
19550
19544
  `;
19551
- var richTextToolbarButtonActive = import_react112.css`
19545
+ var richTextToolbarButtonActive = import_react114.css`
19552
19546
  background: var(--gray-200);
19553
19547
  `;
19554
- var toolbarIcon = import_react112.css`
19548
+ var toolbarIcon = import_react114.css`
19555
19549
  color: inherit;
19556
19550
  `;
19557
- var toolbarChevron = import_react112.css`
19551
+ var toolbarChevron = import_react114.css`
19558
19552
  margin-left: var(--spacing-xs);
19559
19553
  `;
19560
19554
  var RichTextToolbarIcon = ({ icon }) => {
19561
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
19555
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
19562
19556
  };
19563
19557
  var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
19564
19558
  ["bold", "format-bold"],
@@ -19609,7 +19603,7 @@ var RichTextToolbar = ({ config, customControls }) => {
19609
19603
  }
19610
19604
  });
19611
19605
  };
19612
- const updateToolbar = (0, import_react113.useCallback)(() => {
19606
+ const updateToolbar = (0, import_react115.useCallback)(() => {
19613
19607
  const selection = (0, import_lexical5.$getSelection)();
19614
19608
  if (!(0, import_lexical5.$isRangeSelection)(selection)) {
19615
19609
  return;
@@ -19648,7 +19642,7 @@ var RichTextToolbar = ({ config, customControls }) => {
19648
19642
  setIsLink(false);
19649
19643
  }
19650
19644
  }, [editor, setActiveElement, setActiveFormats, setIsLink]);
19651
- (0, import_react113.useEffect)(() => {
19645
+ (0, import_react115.useEffect)(() => {
19652
19646
  return editor.registerCommand(
19653
19647
  import_lexical5.SELECTION_CHANGE_COMMAND,
19654
19648
  (_payload) => {
@@ -19658,7 +19652,7 @@ var RichTextToolbar = ({ config, customControls }) => {
19658
19652
  import_lexical5.COMMAND_PRIORITY_CRITICAL
19659
19653
  );
19660
19654
  }, [editor, updateToolbar]);
19661
- (0, import_react113.useEffect)(() => {
19655
+ (0, import_react115.useEffect)(() => {
19662
19656
  return editor.registerUpdateListener(({ editorState }) => {
19663
19657
  requestAnimationFrame(() => {
19664
19658
  editorState.read(() => {
@@ -19667,15 +19661,15 @@ var RichTextToolbar = ({ config, customControls }) => {
19667
19661
  });
19668
19662
  });
19669
19663
  }, [editor, updateToolbar]);
19670
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { css: toolbar, children: [
19671
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
19664
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { css: toolbar, children: [
19665
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
19672
19666
  Menu,
19673
19667
  {
19674
19668
  menuLabel: "Elements",
19675
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("button", { css: richTextToolbarButton, title: "Text styles", children: [
19669
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("button", { css: richTextToolbarButton, title: "Text styles", children: [
19676
19670
  visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
19677
19671
  " ",
19678
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
19672
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
19679
19673
  ] }),
19680
19674
  placement: "bottom-start",
19681
19675
  children: [
@@ -19685,7 +19679,7 @@ var RichTextToolbar = ({ config, customControls }) => {
19685
19679
  type: "paragraph"
19686
19680
  },
19687
19681
  ...visibleTextualElements
19688
- ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19682
+ ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19689
19683
  MenuItem,
19690
19684
  {
19691
19685
  onClick: () => {
@@ -19695,12 +19689,12 @@ var RichTextToolbar = ({ config, customControls }) => {
19695
19689
  },
19696
19690
  element.type
19697
19691
  )),
19698
- visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
19692
+ visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
19699
19693
  ]
19700
19694
  }
19701
19695
  ),
19702
- visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { css: toolbarGroup, children: [
19703
- visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19696
+ visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { css: toolbarGroup, children: [
19697
+ visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19704
19698
  "button",
19705
19699
  {
19706
19700
  onClick: () => {
@@ -19710,16 +19704,16 @@ var RichTextToolbar = ({ config, customControls }) => {
19710
19704
  richTextToolbarButton,
19711
19705
  activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
19712
19706
  ],
19713
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
19707
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
19714
19708
  }
19715
19709
  ) }, format.type)),
19716
- visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19710
+ visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19717
19711
  Menu,
19718
19712
  {
19719
19713
  menuLabel: "Alternative text styles",
19720
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
19714
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
19721
19715
  placement: "bottom-start",
19722
- children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19716
+ children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19723
19717
  MenuItem,
19724
19718
  {
19725
19719
  onClick: () => {
@@ -19732,19 +19726,19 @@ var RichTextToolbar = ({ config, customControls }) => {
19732
19726
  }
19733
19727
  ) : null
19734
19728
  ] }) : null,
19735
- visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { css: toolbarGroup, children: [
19736
- linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19729
+ visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { css: toolbarGroup, children: [
19730
+ linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19737
19731
  "button",
19738
19732
  {
19739
19733
  onClick: () => {
19740
19734
  isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
19741
19735
  },
19742
19736
  css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
19743
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RichTextToolbarIcon, { icon: "link" })
19737
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(RichTextToolbarIcon, { icon: "link" })
19744
19738
  }
19745
19739
  ) }) : null,
19746
- visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, { children: [
19747
- visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19740
+ visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
19741
+ visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19748
19742
  "button",
19749
19743
  {
19750
19744
  onClick: () => {
@@ -19754,10 +19748,10 @@ var RichTextToolbar = ({ config, customControls }) => {
19754
19748
  richTextToolbarButton,
19755
19749
  activeElement === "unorderedList" ? richTextToolbarButtonActive : null
19756
19750
  ],
19757
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
19751
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
19758
19752
  }
19759
19753
  ) }) : null,
19760
- visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19754
+ visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19761
19755
  "button",
19762
19756
  {
19763
19757
  onClick: () => {
@@ -19767,57 +19761,57 @@ var RichTextToolbar = ({ config, customControls }) => {
19767
19761
  richTextToolbarButton,
19768
19762
  activeElement === "orderedList" ? richTextToolbarButtonActive : null
19769
19763
  ],
19770
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
19764
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
19771
19765
  }
19772
19766
  ) }) : null
19773
19767
  ] }) : null,
19774
- quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19768
+ quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19775
19769
  "button",
19776
19770
  {
19777
19771
  onClick: () => {
19778
19772
  activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
19779
19773
  },
19780
19774
  css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
19781
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RichTextToolbarIcon, { icon: "quote" })
19775
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(RichTextToolbarIcon, { icon: "quote" })
19782
19776
  }
19783
19777
  ) }) : null,
19784
- codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19778
+ codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19785
19779
  "button",
19786
19780
  {
19787
19781
  onClick: () => {
19788
19782
  activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
19789
19783
  },
19790
19784
  css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
19791
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(RichTextToolbarIcon, { icon: "code-slash" })
19785
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(RichTextToolbarIcon, { icon: "code-slash" })
19792
19786
  }
19793
19787
  ) }) : null
19794
19788
  ] }) : null,
19795
- customControls ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { css: toolbarGroup, children: customControls }) : null
19789
+ customControls ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: toolbarGroup, children: customControls }) : null
19796
19790
  ] });
19797
19791
  };
19798
19792
  var RichTextToolbar_default = RichTextToolbar;
19799
19793
  var useRichTextToolbarState = ({ config }) => {
19800
19794
  var _a;
19801
- const enabledBuiltInFormats = (0, import_react113.useMemo)(() => {
19795
+ const enabledBuiltInFormats = (0, import_react115.useMemo)(() => {
19802
19796
  return richTextBuiltInFormats.filter((format) => {
19803
19797
  var _a2, _b;
19804
19798
  return (_b = (_a2 = config == null ? void 0 : config.formatting) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(format.type);
19805
19799
  });
19806
19800
  }, [config]);
19807
- const enabledBuiltInElements = (0, import_react113.useMemo)(() => {
19801
+ const enabledBuiltInElements = (0, import_react115.useMemo)(() => {
19808
19802
  return richTextBuiltInElements.filter((element) => {
19809
19803
  var _a2, _b;
19810
19804
  return (_b = (_a2 = config == null ? void 0 : config.elements) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(element.type);
19811
19805
  });
19812
19806
  }, [config]);
19813
- const enabledBuiltInFormatsWithIcon = (0, import_react113.useMemo)(() => {
19807
+ const enabledBuiltInFormatsWithIcon = (0, import_react115.useMemo)(() => {
19814
19808
  return enabledBuiltInFormats.filter((format) => FORMATS_WITH_ICON.has(format.type));
19815
19809
  }, [enabledBuiltInFormats]);
19816
19810
  const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
19817
19811
  (format) => !FORMATS_WITH_ICON.has(format.type)
19818
19812
  );
19819
- const [activeFormats, setActiveFormats] = (0, import_react113.useState)([]);
19820
- const visibleFormatsWithIcon = (0, import_react113.useMemo)(() => {
19813
+ const [activeFormats, setActiveFormats] = (0, import_react115.useState)([]);
19814
+ const visibleFormatsWithIcon = (0, import_react115.useMemo)(() => {
19821
19815
  const visibleFormats = /* @__PURE__ */ new Set();
19822
19816
  activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
19823
19817
  visibleFormats.add(type);
@@ -19827,7 +19821,7 @@ var useRichTextToolbarState = ({ config }) => {
19827
19821
  });
19828
19822
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
19829
19823
  }, [activeFormats, enabledBuiltInFormatsWithIcon]);
19830
- const visibleFormatsWithoutIcon = (0, import_react113.useMemo)(() => {
19824
+ const visibleFormatsWithoutIcon = (0, import_react115.useMemo)(() => {
19831
19825
  const visibleFormats = /* @__PURE__ */ new Set();
19832
19826
  activeFormats.filter((type) => !FORMATS_WITH_ICON.has(type)).forEach((type) => {
19833
19827
  visibleFormats.add(type);
@@ -19837,11 +19831,11 @@ var useRichTextToolbarState = ({ config }) => {
19837
19831
  });
19838
19832
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
19839
19833
  }, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
19840
- const [activeElement, setActiveElement] = (0, import_react113.useState)("paragraph");
19834
+ const [activeElement, setActiveElement] = (0, import_react115.useState)("paragraph");
19841
19835
  const enabledTextualElements = enabledBuiltInElements.filter(
19842
19836
  (element) => TEXTUAL_ELEMENTS.includes(element.type)
19843
19837
  );
19844
- const visibleTextualElements = (0, import_react113.useMemo)(() => {
19838
+ const visibleTextualElements = (0, import_react115.useMemo)(() => {
19845
19839
  if (!TEXTUAL_ELEMENTS.includes(activeElement)) {
19846
19840
  return enabledTextualElements;
19847
19841
  }
@@ -19852,24 +19846,24 @@ var useRichTextToolbarState = ({ config }) => {
19852
19846
  }
19853
19847
  );
19854
19848
  }, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
19855
- const [isLink, setIsLink] = (0, import_react113.useState)(false);
19856
- const linkElementVisible = (0, import_react113.useMemo)(() => {
19849
+ const [isLink, setIsLink] = (0, import_react115.useState)(false);
19850
+ const linkElementVisible = (0, import_react115.useMemo)(() => {
19857
19851
  return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
19858
19852
  }, [isLink, enabledBuiltInElements]);
19859
- const visibleLists = (0, import_react113.useMemo)(() => {
19853
+ const visibleLists = (0, import_react115.useMemo)(() => {
19860
19854
  return new Set(
19861
19855
  ["orderedList", "unorderedList"].filter(
19862
19856
  (type) => enabledBuiltInElements.some((element) => element.type === type) || activeElement === type
19863
19857
  )
19864
19858
  );
19865
19859
  }, [activeElement, enabledBuiltInElements]);
19866
- const quoteElementVisible = (0, import_react113.useMemo)(() => {
19860
+ const quoteElementVisible = (0, import_react115.useMemo)(() => {
19867
19861
  return enabledBuiltInElements.some((element) => element.type === "quote") || activeElement === "quote";
19868
19862
  }, [activeElement, enabledBuiltInElements]);
19869
- const codeElementVisible = (0, import_react113.useMemo)(() => {
19863
+ const codeElementVisible = (0, import_react115.useMemo)(() => {
19870
19864
  return enabledBuiltInElements.some((element) => element.type === "code") || activeElement === "code";
19871
19865
  }, [activeElement, enabledBuiltInElements]);
19872
- const visibleElementsWithIcons = (0, import_react113.useMemo)(() => {
19866
+ const visibleElementsWithIcons = (0, import_react115.useMemo)(() => {
19873
19867
  const visibleElements = /* @__PURE__ */ new Set();
19874
19868
  if (linkElementVisible) {
19875
19869
  visibleElements.add("link");
@@ -19906,7 +19900,7 @@ var useRichTextToolbarState = ({ config }) => {
19906
19900
  };
19907
19901
 
19908
19902
  // src/components/ParameterInputs/ParameterRichText.tsx
19909
- var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
19903
+ var import_jsx_runtime104 = require("@emotion/react/jsx-runtime");
19910
19904
  var ParameterRichText = ({
19911
19905
  label,
19912
19906
  labelLeadingIcon,
@@ -19931,7 +19925,7 @@ var ParameterRichText = ({
19931
19925
  variables,
19932
19926
  customControls
19933
19927
  }) => {
19934
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
19928
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
19935
19929
  ParameterShell,
19936
19930
  {
19937
19931
  "data-testid": "parameter-input",
@@ -19945,7 +19939,7 @@ var ParameterRichText = ({
19945
19939
  captionTestId,
19946
19940
  menuItems,
19947
19941
  children: [
19948
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19942
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19949
19943
  ParameterRichTextInner,
19950
19944
  {
19951
19945
  value,
@@ -19963,23 +19957,23 @@ var ParameterRichText = ({
19963
19957
  children
19964
19958
  }
19965
19959
  ),
19966
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_jsx_runtime103.Fragment, { children: menuItems }) }) : null
19960
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_jsx_runtime104.Fragment, { children: menuItems }) }) : null
19967
19961
  ]
19968
19962
  }
19969
19963
  );
19970
19964
  };
19971
- var editorWrapper = import_react114.css`
19965
+ var editorWrapper = import_react116.css`
19972
19966
  display: flex;
19973
19967
  flex-flow: column;
19974
19968
  flex-grow: 1;
19975
19969
  `;
19976
- var editorContainer = import_react114.css`
19970
+ var editorContainer = import_react116.css`
19977
19971
  display: flex;
19978
19972
  flex-flow: column;
19979
19973
  flex-grow: 1;
19980
19974
  position: relative;
19981
19975
  `;
19982
- var editorPlaceholder = import_react114.css`
19976
+ var editorPlaceholder = import_react116.css`
19983
19977
  color: var(--gray-500);
19984
19978
  font-style: italic;
19985
19979
  /* 1px is added to make sure caret is clearly visible when field is focused
@@ -19990,7 +19984,7 @@ var editorPlaceholder = import_react114.css`
19990
19984
  top: var(--spacing-xs);
19991
19985
  user-select: none;
19992
19986
  `;
19993
- var editorInput = import_react114.css`
19987
+ var editorInput = import_react116.css`
19994
19988
  background: var(--white);
19995
19989
  border: 1px solid var(--white);
19996
19990
  border-radius: var(--rounded-sm);
@@ -20074,8 +20068,8 @@ var ParameterRichTextInner = ({
20074
20068
  },
20075
20069
  editable: !readOnly
20076
20070
  };
20077
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
20078
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
20071
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
20072
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
20079
20073
  RichText,
20080
20074
  {
20081
20075
  onChange,
@@ -20112,14 +20106,14 @@ var RichText = ({
20112
20106
  variables,
20113
20107
  customControls
20114
20108
  }) => {
20115
- const editorContainerRef = (0, import_react115.useRef)(null);
20109
+ const editorContainerRef = (0, import_react117.useRef)(null);
20116
20110
  const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
20117
- (0, import_react115.useEffect)(() => {
20111
+ (0, import_react117.useEffect)(() => {
20118
20112
  if (onRichTextInit) {
20119
20113
  onRichTextInit(editor);
20120
20114
  }
20121
20115
  }, [editor, onRichTextInit]);
20122
- (0, import_react115.useEffect)(() => {
20116
+ (0, import_react117.useEffect)(() => {
20123
20117
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState }) => {
20124
20118
  requestAnimationFrame(() => {
20125
20119
  if (!(0, import_fast_equals2.deepEqual)(editorState.toJSON(), prevEditorState.toJSON())) {
@@ -20131,20 +20125,20 @@ var RichText = ({
20131
20125
  removeUpdateListener();
20132
20126
  };
20133
20127
  }, []);
20134
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
20135
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(RichTextToolbar_default, { config, customControls }),
20136
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
20137
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
20128
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
20129
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(RichTextToolbar_default, { config, customControls }),
20130
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
20131
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
20138
20132
  import_LexicalRichTextPlugin.RichTextPlugin,
20139
20133
  {
20140
- contentEditable: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
20141
- placeholder: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
20134
+ contentEditable: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
20135
+ placeholder: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
20142
20136
  ErrorBoundary: import_LexicalErrorBoundary.default
20143
20137
  }
20144
20138
  ),
20145
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_LexicalListPlugin.ListPlugin, {}),
20146
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
20147
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
20139
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_LexicalListPlugin.ListPlugin, {}),
20140
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
20141
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
20148
20142
  LinkNodePlugin,
20149
20143
  {
20150
20144
  onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
@@ -20154,28 +20148,28 @@ var RichText = ({
20154
20148
  } : void 0
20155
20149
  }
20156
20150
  ),
20157
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ListIndentPlugin, { maxDepth: 4 }),
20158
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(DisableStylesPlugin, {}),
20159
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
20160
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_jsx_runtime103.Fragment, { children })
20151
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ListIndentPlugin, { maxDepth: 4 }),
20152
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(DisableStylesPlugin, {}),
20153
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
20154
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_jsx_runtime104.Fragment, { children })
20161
20155
  ] })
20162
20156
  ] });
20163
20157
  };
20164
20158
 
20165
20159
  // src/components/ParameterInputs/ParameterSelect.tsx
20166
20160
  init_emotion_jsx_shim();
20167
- var import_react116 = require("react");
20168
- var import_jsx_runtime104 = require("@emotion/react/jsx-runtime");
20169
- var ParameterSelect = (0, import_react116.forwardRef)(
20161
+ var import_react118 = require("react");
20162
+ var import_jsx_runtime105 = require("@emotion/react/jsx-runtime");
20163
+ var ParameterSelect = (0, import_react118.forwardRef)(
20170
20164
  ({ defaultOption, options, ...props }, ref) => {
20171
20165
  const { shellProps, innerProps } = extractParameterProps(props);
20172
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
20166
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
20173
20167
  }
20174
20168
  );
20175
- var ParameterSelectInner = (0, import_react116.forwardRef)(
20169
+ var ParameterSelectInner = (0, import_react118.forwardRef)(
20176
20170
  ({ defaultOption, options, ...props }, ref) => {
20177
20171
  const { id, label, hiddenLabel } = useParameterShell();
20178
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
20172
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
20179
20173
  "select",
20180
20174
  {
20181
20175
  css: [input2, selectInput],
@@ -20184,10 +20178,10 @@ var ParameterSelectInner = (0, import_react116.forwardRef)(
20184
20178
  ref,
20185
20179
  ...props,
20186
20180
  children: [
20187
- defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("option", { value: "", children: defaultOption }) : null,
20181
+ defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("option", { value: "", children: defaultOption }) : null,
20188
20182
  options.map((option) => {
20189
20183
  var _a;
20190
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
20184
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
20191
20185
  })
20192
20186
  ]
20193
20187
  }
@@ -20197,15 +20191,15 @@ var ParameterSelectInner = (0, import_react116.forwardRef)(
20197
20191
 
20198
20192
  // src/components/ParameterInputs/ParameterTextarea.tsx
20199
20193
  init_emotion_jsx_shim();
20200
- var import_react117 = require("react");
20201
- var import_jsx_runtime105 = require("@emotion/react/jsx-runtime");
20202
- var ParameterTextarea = (0, import_react117.forwardRef)((props, ref) => {
20194
+ var import_react119 = require("react");
20195
+ var import_jsx_runtime106 = require("@emotion/react/jsx-runtime");
20196
+ var ParameterTextarea = (0, import_react119.forwardRef)((props, ref) => {
20203
20197
  const { shellProps, innerProps } = extractParameterProps(props);
20204
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
20198
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
20205
20199
  });
20206
- var ParameterTextareaInner = (0, import_react117.forwardRef)(({ ...props }, ref) => {
20200
+ var ParameterTextareaInner = (0, import_react119.forwardRef)(({ ...props }, ref) => {
20207
20201
  const { id, label, hiddenLabel } = useParameterShell();
20208
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
20202
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20209
20203
  "textarea",
20210
20204
  {
20211
20205
  css: [input2, textarea2],
@@ -20219,49 +20213,49 @@ var ParameterTextareaInner = (0, import_react117.forwardRef)(({ ...props }, ref)
20219
20213
 
20220
20214
  // src/components/ParameterInputs/ParameterToggle.tsx
20221
20215
  init_emotion_jsx_shim();
20222
- var import_react118 = require("react");
20223
- var import_jsx_runtime106 = require("@emotion/react/jsx-runtime");
20224
- var ParameterToggle = (0, import_react118.forwardRef)((props, ref) => {
20216
+ var import_react120 = require("react");
20217
+ var import_jsx_runtime107 = require("@emotion/react/jsx-runtime");
20218
+ var ParameterToggle = (0, import_react120.forwardRef)((props, ref) => {
20225
20219
  const { shellProps, innerProps } = extractParameterProps(props);
20226
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
20220
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
20227
20221
  });
20228
- var ParameterToggleInner = (0, import_react118.forwardRef)(
20222
+ var ParameterToggleInner = (0, import_react120.forwardRef)(
20229
20223
  ({ ...props }, ref) => {
20230
20224
  const { id, label } = useParameterShell();
20231
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("label", { css: inputToggleLabel2, children: [
20232
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
20233
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { css: inlineLabel2, children: label })
20225
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("label", { css: inputToggleLabel2, children: [
20226
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
20227
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { css: inlineLabel2, children: label })
20234
20228
  ] });
20235
20229
  }
20236
20230
  );
20237
20231
 
20238
20232
  // src/components/ProgressList/ProgressList.tsx
20239
20233
  init_emotion_jsx_shim();
20240
- var import_react120 = require("@emotion/react");
20234
+ var import_react122 = require("@emotion/react");
20241
20235
  var import_CgCheckO3 = require("@react-icons/all-files/cg/CgCheckO");
20242
20236
  var import_CgRadioCheck2 = require("@react-icons/all-files/cg/CgRadioCheck");
20243
20237
  var import_CgRecord2 = require("@react-icons/all-files/cg/CgRecord");
20244
- var import_react121 = require("react");
20238
+ var import_react123 = require("react");
20245
20239
 
20246
20240
  // src/components/ProgressList/styles/ProgressList.styles.ts
20247
20241
  init_emotion_jsx_shim();
20248
- var import_react119 = require("@emotion/react");
20249
- var progressListStyles = import_react119.css`
20242
+ var import_react121 = require("@emotion/react");
20243
+ var progressListStyles = import_react121.css`
20250
20244
  display: flex;
20251
20245
  flex-direction: column;
20252
20246
  gap: var(--spacing-sm);
20253
20247
  list-style-type: none;
20254
20248
  `;
20255
- var progressListItemStyles = import_react119.css`
20249
+ var progressListItemStyles = import_react121.css`
20256
20250
  display: flex;
20257
20251
  gap: var(--spacing-base);
20258
20252
  align-items: center;
20259
20253
  `;
20260
20254
 
20261
20255
  // src/components/ProgressList/ProgressList.tsx
20262
- var import_jsx_runtime107 = require("@emotion/react/jsx-runtime");
20256
+ var import_jsx_runtime108 = require("@emotion/react/jsx-runtime");
20263
20257
  var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
20264
- const itemsWithStatus = (0, import_react121.useMemo)(() => {
20258
+ const itemsWithStatus = (0, import_react123.useMemo)(() => {
20265
20259
  const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
20266
20260
  return items.map((item, index) => {
20267
20261
  let status = "queued";
@@ -20273,8 +20267,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
20273
20267
  return { ...item, status };
20274
20268
  });
20275
20269
  }, [items, inProgressId]);
20276
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
20277
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20270
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
20271
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20278
20272
  ProgressListItem,
20279
20273
  {
20280
20274
  status,
@@ -20294,7 +20288,7 @@ var ProgressListItem = ({
20294
20288
  errorLevel = "danger",
20295
20289
  autoEllipsis = false
20296
20290
  }) => {
20297
- const icon = (0, import_react121.useMemo)(() => {
20291
+ const icon = (0, import_react123.useMemo)(() => {
20298
20292
  if (error) {
20299
20293
  return warningIcon;
20300
20294
  }
@@ -20305,14 +20299,14 @@ var ProgressListItem = ({
20305
20299
  };
20306
20300
  return iconPerStatus[status];
20307
20301
  }, [status, error]);
20308
- const statusStyles = (0, import_react121.useMemo)(() => {
20302
+ const statusStyles = (0, import_react123.useMemo)(() => {
20309
20303
  if (error) {
20310
- return errorLevel === "caution" ? import_react120.css`
20304
+ return errorLevel === "caution" ? import_react122.css`
20311
20305
  color: rgb(161, 98, 7);
20312
20306
  & svg {
20313
20307
  color: rgb(250, 204, 21);
20314
20308
  }
20315
- ` : import_react120.css`
20309
+ ` : import_react122.css`
20316
20310
  color: rgb(185, 28, 28);
20317
20311
  & svg {
20318
20312
  color: var(--brand-primary-2);
@@ -20320,37 +20314,37 @@ var ProgressListItem = ({
20320
20314
  `;
20321
20315
  }
20322
20316
  const colorPerStatus = {
20323
- completed: import_react120.css`
20317
+ completed: import_react122.css`
20324
20318
  opacity: 0.75;
20325
20319
  `,
20326
- inProgress: import_react120.css`
20320
+ inProgress: import_react122.css`
20327
20321
  -webkit-text-stroke-width: thin;
20328
20322
  `,
20329
- queued: import_react120.css`
20323
+ queued: import_react122.css`
20330
20324
  opacity: 0.5;
20331
20325
  `
20332
20326
  };
20333
20327
  return colorPerStatus[status];
20334
20328
  }, [status, error, errorLevel]);
20335
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
20336
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
20337
- /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { children: [
20329
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
20330
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
20331
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { children: [
20338
20332
  children,
20339
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
20333
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
20340
20334
  ] })
20341
20335
  ] });
20342
20336
  };
20343
20337
 
20344
20338
  // src/components/SegmentedControl/SegmentedControl.tsx
20345
20339
  init_emotion_jsx_shim();
20346
- var import_react123 = require("@emotion/react");
20340
+ var import_react125 = require("@emotion/react");
20347
20341
  var import_CgCheck5 = require("@react-icons/all-files/cg/CgCheck");
20348
- var import_react124 = require("react");
20342
+ var import_react126 = require("react");
20349
20343
 
20350
20344
  // src/components/SegmentedControl/SegmentedControl.styles.ts
20351
20345
  init_emotion_jsx_shim();
20352
- var import_react122 = require("@emotion/react");
20353
- var segmentedControlStyles = import_react122.css`
20346
+ var import_react124 = require("@emotion/react");
20347
+ var segmentedControlStyles = import_react124.css`
20354
20348
  --segmented-control-rounded-value: var(--rounded-base);
20355
20349
  --segmented-control-border-width: 1px;
20356
20350
  --segmented-control-selected-color: var(--brand-secondary-3);
@@ -20369,14 +20363,14 @@ var segmentedControlStyles = import_react122.css`
20369
20363
  border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
20370
20364
  font-size: var(--fs-xs);
20371
20365
  `;
20372
- var segmentedControlVerticalStyles = import_react122.css`
20366
+ var segmentedControlVerticalStyles = import_react124.css`
20373
20367
  flex-direction: column;
20374
20368
  --segmented-control-first-border-radius: var(--segmented-control-rounded-value)
20375
20369
  var(--segmented-control-rounded-value) 0 0;
20376
20370
  --segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
20377
20371
  var(--segmented-control-rounded-value);
20378
20372
  `;
20379
- var segmentedControlItemStyles = import_react122.css`
20373
+ var segmentedControlItemStyles = import_react124.css`
20380
20374
  &:first-of-type label {
20381
20375
  border-radius: var(--segmented-control-first-border-radius);
20382
20376
  }
@@ -20384,10 +20378,10 @@ var segmentedControlItemStyles = import_react122.css`
20384
20378
  border-radius: var(--segmented-control-last-border-radius);
20385
20379
  }
20386
20380
  `;
20387
- var segmentedControlInputStyles = import_react122.css`
20381
+ var segmentedControlInputStyles = import_react124.css`
20388
20382
  ${accessibleHidden}
20389
20383
  `;
20390
- var segmentedControlLabelStyles = (checked, disabled) => import_react122.css`
20384
+ var segmentedControlLabelStyles = (checked, disabled) => import_react124.css`
20391
20385
  position: relative;
20392
20386
  display: flex;
20393
20387
  align-items: center;
@@ -20454,23 +20448,23 @@ var segmentedControlLabelStyles = (checked, disabled) => import_react122.css`
20454
20448
  `}
20455
20449
  }
20456
20450
  `;
20457
- var segmentedControlLabelIconOnlyStyles = import_react122.css`
20451
+ var segmentedControlLabelIconOnlyStyles = import_react124.css`
20458
20452
  padding-inline: 0.5em;
20459
20453
  `;
20460
- var segmentedControlLabelCheckStyles = import_react122.css`
20454
+ var segmentedControlLabelCheckStyles = import_react124.css`
20461
20455
  opacity: 0.5;
20462
20456
  `;
20463
- var segmentedControlLabelContentStyles = import_react122.css`
20457
+ var segmentedControlLabelContentStyles = import_react124.css`
20464
20458
  display: flex;
20465
20459
  align-items: center;
20466
20460
  justify-content: center;
20467
20461
  gap: var(--spacing-sm);
20468
20462
  height: 100%;
20469
20463
  `;
20470
- var segmentedControlLabelTextStyles = import_react122.css``;
20464
+ var segmentedControlLabelTextStyles = import_react124.css``;
20471
20465
 
20472
20466
  // src/components/SegmentedControl/SegmentedControl.tsx
20473
- var import_jsx_runtime108 = require("@emotion/react/jsx-runtime");
20467
+ var import_jsx_runtime109 = require("@emotion/react/jsx-runtime");
20474
20468
  var SegmentedControl = ({
20475
20469
  name,
20476
20470
  options,
@@ -20482,7 +20476,7 @@ var SegmentedControl = ({
20482
20476
  size = "md",
20483
20477
  ...props
20484
20478
  }) => {
20485
- const onOptionChange = (0, import_react124.useCallback)(
20479
+ const onOptionChange = (0, import_react126.useCallback)(
20486
20480
  (event) => {
20487
20481
  if (event.target.checked) {
20488
20482
  onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
@@ -20490,18 +20484,18 @@ var SegmentedControl = ({
20490
20484
  },
20491
20485
  [options, onChange]
20492
20486
  );
20493
- const sizeStyles = (0, import_react124.useMemo)(() => {
20487
+ const sizeStyles = (0, import_react126.useMemo)(() => {
20494
20488
  const map = {
20495
- sm: (0, import_react123.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
20496
- md: (0, import_react123.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
20497
- lg: (0, import_react123.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
20489
+ sm: (0, import_react125.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
20490
+ md: (0, import_react125.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
20491
+ lg: (0, import_react125.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
20498
20492
  };
20499
20493
  return map[size];
20500
20494
  }, [size]);
20501
- const isIconOnly = (0, import_react124.useMemo)(() => {
20495
+ const isIconOnly = (0, import_react126.useMemo)(() => {
20502
20496
  return options.every((option) => option.icon && !option.label);
20503
20497
  }, [options]);
20504
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20498
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20505
20499
  "div",
20506
20500
  {
20507
20501
  css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
@@ -20509,11 +20503,11 @@ var SegmentedControl = ({
20509
20503
  children: options.map((option, index) => {
20510
20504
  const text = option.label ? option.label : option.icon ? null : String(option.value);
20511
20505
  const isDisabled = disabled || option.disabled;
20512
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20506
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20513
20507
  Tooltip,
20514
20508
  {
20515
20509
  title: isDisabled || !option.tooltip ? "" : option.tooltip,
20516
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
20510
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
20517
20511
  "label",
20518
20512
  {
20519
20513
  css: [
@@ -20522,7 +20516,7 @@ var SegmentedControl = ({
20522
20516
  isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
20523
20517
  ],
20524
20518
  children: [
20525
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20519
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20526
20520
  "input",
20527
20521
  {
20528
20522
  css: segmentedControlInputStyles,
@@ -20534,10 +20528,10 @@ var SegmentedControl = ({
20534
20528
  disabled: isDisabled
20535
20529
  }
20536
20530
  ),
20537
- option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_CgCheck5.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
20538
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
20539
- !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
20540
- !text ? null : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
20531
+ option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_CgCheck5.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
20532
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
20533
+ !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
20534
+ !text ? null : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
20541
20535
  ] })
20542
20536
  ]
20543
20537
  }
@@ -20555,18 +20549,18 @@ init_emotion_jsx_shim();
20555
20549
 
20556
20550
  // src/components/Skeleton/Skeleton.styles.ts
20557
20551
  init_emotion_jsx_shim();
20558
- var import_react125 = require("@emotion/react");
20559
- var lightFadingOut = import_react125.keyframes`
20552
+ var import_react127 = require("@emotion/react");
20553
+ var lightFadingOut = import_react127.keyframes`
20560
20554
  from { opacity: 0.1; }
20561
20555
  to { opacity: 0.025; }
20562
20556
  `;
20563
- var skeletonStyles = import_react125.css`
20557
+ var skeletonStyles = import_react127.css`
20564
20558
  animation: ${lightFadingOut} 1s ease-out infinite alternate;
20565
20559
  background-color: var(--gray-900);
20566
20560
  `;
20567
20561
 
20568
20562
  // src/components/Skeleton/Skeleton.tsx
20569
- var import_jsx_runtime109 = require("@emotion/react/jsx-runtime");
20563
+ var import_jsx_runtime110 = require("@emotion/react/jsx-runtime");
20570
20564
  var Skeleton = ({
20571
20565
  width = "100%",
20572
20566
  height = "1.25rem",
@@ -20574,7 +20568,7 @@ var Skeleton = ({
20574
20568
  circle = false,
20575
20569
  children,
20576
20570
  ...otherProps
20577
- }) => /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20571
+ }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
20578
20572
  "div",
20579
20573
  {
20580
20574
  css: [
@@ -20599,8 +20593,8 @@ var React23 = __toESM(require("react"));
20599
20593
 
20600
20594
  // src/components/Switch/Switch.styles.ts
20601
20595
  init_emotion_jsx_shim();
20602
- var import_react126 = require("@emotion/react");
20603
- var SwitchInputContainer = import_react126.css`
20596
+ var import_react128 = require("@emotion/react");
20597
+ var SwitchInputContainer = import_react128.css`
20604
20598
  cursor: pointer;
20605
20599
  display: inline-block;
20606
20600
  position: relative;
@@ -20609,7 +20603,7 @@ var SwitchInputContainer = import_react126.css`
20609
20603
  vertical-align: middle;
20610
20604
  user-select: none;
20611
20605
  `;
20612
- var SwitchInput = import_react126.css`
20606
+ var SwitchInput = import_react128.css`
20613
20607
  appearance: none;
20614
20608
  border-radius: var(--rounded-full);
20615
20609
  background-color: var(--white);
@@ -20647,7 +20641,7 @@ var SwitchInput = import_react126.css`
20647
20641
  cursor: not-allowed;
20648
20642
  }
20649
20643
  `;
20650
- var SwitchInputDisabled = import_react126.css`
20644
+ var SwitchInputDisabled = import_react128.css`
20651
20645
  opacity: var(--opacity-50);
20652
20646
  cursor: not-allowed;
20653
20647
 
@@ -20655,7 +20649,7 @@ var SwitchInputDisabled = import_react126.css`
20655
20649
  cursor: not-allowed;
20656
20650
  }
20657
20651
  `;
20658
- var SwitchInputLabel = import_react126.css`
20652
+ var SwitchInputLabel = import_react128.css`
20659
20653
  align-items: center;
20660
20654
  color: var(--brand-secondary-1);
20661
20655
  display: inline-flex;
@@ -20677,26 +20671,26 @@ var SwitchInputLabel = import_react126.css`
20677
20671
  top: 0;
20678
20672
  }
20679
20673
  `;
20680
- var SwitchText = import_react126.css`
20674
+ var SwitchText = import_react128.css`
20681
20675
  color: var(--gray-500);
20682
20676
  font-size: var(--fs-sm);
20683
20677
  padding-inline: var(--spacing-2xl) 0;
20684
20678
  `;
20685
20679
 
20686
20680
  // src/components/Switch/Switch.tsx
20687
- var import_jsx_runtime110 = require("@emotion/react/jsx-runtime");
20681
+ var import_jsx_runtime111 = require("@emotion/react/jsx-runtime");
20688
20682
  var Switch = React23.forwardRef(
20689
20683
  ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
20690
20684
  let additionalText = infoText;
20691
20685
  if (infoText && toggleText) {
20692
20686
  additionalText = inputProps.checked ? toggleText : infoText;
20693
20687
  }
20694
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
20695
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
20696
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
20697
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { css: SwitchInputLabel, children: label })
20688
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
20689
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
20690
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
20691
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { css: SwitchInputLabel, children: label })
20698
20692
  ] }),
20699
- additionalText ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { css: SwitchText, children: additionalText }) : null,
20693
+ additionalText ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { css: SwitchText, children: additionalText }) : null,
20700
20694
  children
20701
20695
  ] });
20702
20696
  }
@@ -20708,8 +20702,8 @@ var React24 = __toESM(require("react"));
20708
20702
 
20709
20703
  // src/components/Table/Table.styles.ts
20710
20704
  init_emotion_jsx_shim();
20711
- var import_react127 = require("@emotion/react");
20712
- var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => import_react127.css`
20705
+ var import_react129 = require("@emotion/react");
20706
+ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => import_react129.css`
20713
20707
  border-bottom: 1px solid var(--gray-400);
20714
20708
  border-collapse: collapse;
20715
20709
  min-width: 100%;
@@ -20720,67 +20714,67 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => impor
20720
20714
  padding: ${cellPadding};
20721
20715
  }
20722
20716
  `;
20723
- var tableHead = import_react127.css`
20717
+ var tableHead = import_react129.css`
20724
20718
  background: var(--gray-100);
20725
20719
  color: var(--brand-secondary-1);
20726
20720
  text-align: left;
20727
20721
  `;
20728
- var tableRow = import_react127.css`
20722
+ var tableRow = import_react129.css`
20729
20723
  border-bottom: 1px solid var(--gray-200);
20730
20724
  `;
20731
- var tableCellHead = import_react127.css`
20725
+ var tableCellHead = import_react129.css`
20732
20726
  font-size: var(--fs-sm);
20733
20727
  text-transform: uppercase;
20734
20728
  font-weight: var(--fw-bold);
20735
20729
  `;
20736
20730
 
20737
20731
  // src/components/Table/Table.tsx
20738
- var import_jsx_runtime111 = require("@emotion/react/jsx-runtime");
20732
+ var import_jsx_runtime112 = require("@emotion/react/jsx-runtime");
20739
20733
  var Table = React24.forwardRef(
20740
20734
  ({ children, cellPadding, ...otherProps }, ref) => {
20741
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
20735
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
20742
20736
  }
20743
20737
  );
20744
20738
  var TableHead = React24.forwardRef(
20745
20739
  ({ children, ...otherProps }, ref) => {
20746
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
20740
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
20747
20741
  }
20748
20742
  );
20749
20743
  var TableBody = React24.forwardRef(
20750
20744
  ({ children, ...otherProps }, ref) => {
20751
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("tbody", { ref, ...otherProps, children });
20745
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("tbody", { ref, ...otherProps, children });
20752
20746
  }
20753
20747
  );
20754
20748
  var TableFoot = React24.forwardRef(
20755
20749
  ({ children, ...otherProps }, ref) => {
20756
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("tfoot", { ref, ...otherProps, children });
20750
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("tfoot", { ref, ...otherProps, children });
20757
20751
  }
20758
20752
  );
20759
20753
  var TableRow = React24.forwardRef(
20760
20754
  ({ children, ...otherProps }, ref) => {
20761
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
20755
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
20762
20756
  }
20763
20757
  );
20764
20758
  var TableCellHead = React24.forwardRef(
20765
20759
  ({ children, ...otherProps }, ref) => {
20766
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
20760
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
20767
20761
  }
20768
20762
  );
20769
20763
  var TableCellData = React24.forwardRef(
20770
20764
  ({ children, ...otherProps }, ref) => {
20771
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("td", { ref, ...otherProps, children });
20765
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("td", { ref, ...otherProps, children });
20772
20766
  }
20773
20767
  );
20774
20768
 
20775
20769
  // src/components/Tabs/Tabs.tsx
20776
20770
  init_emotion_jsx_shim();
20777
- var import_react129 = require("react");
20771
+ var import_react131 = require("react");
20778
20772
  var import_Tab = require("reakit/Tab");
20779
20773
 
20780
20774
  // src/components/Tabs/Tabs.styles.ts
20781
20775
  init_emotion_jsx_shim();
20782
- var import_react128 = require("@emotion/react");
20783
- var tabButtonStyles = import_react128.css`
20776
+ var import_react130 = require("@emotion/react");
20777
+ var tabButtonStyles = import_react130.css`
20784
20778
  align-items: center;
20785
20779
  border: 0;
20786
20780
  height: 2.5rem;
@@ -20797,30 +20791,30 @@ var tabButtonStyles = import_react128.css`
20797
20791
  box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
20798
20792
  }
20799
20793
  `;
20800
- var tabButtonGroupStyles = import_react128.css`
20794
+ var tabButtonGroupStyles = import_react130.css`
20801
20795
  display: flex;
20802
20796
  gap: var(--spacing-base);
20803
20797
  border-bottom: 1px solid var(--gray-300);
20804
20798
  `;
20805
20799
 
20806
20800
  // src/components/Tabs/Tabs.tsx
20807
- var import_jsx_runtime112 = require("@emotion/react/jsx-runtime");
20808
- var CurrentTabContext = (0, import_react129.createContext)(null);
20801
+ var import_jsx_runtime113 = require("@emotion/react/jsx-runtime");
20802
+ var CurrentTabContext = (0, import_react131.createContext)(null);
20809
20803
  var useCurrentTab = () => {
20810
- const context = (0, import_react129.useContext)(CurrentTabContext);
20804
+ const context = (0, import_react131.useContext)(CurrentTabContext);
20811
20805
  if (!context) {
20812
20806
  throw new Error("This component can only be used inside <Tabs>");
20813
20807
  }
20814
20808
  return context;
20815
20809
  };
20816
20810
  var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
20817
- const selected = (0, import_react129.useMemo)(() => {
20811
+ const selected = (0, import_react131.useMemo)(() => {
20818
20812
  if (selectedId)
20819
20813
  return selectedId;
20820
20814
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
20821
20815
  }, [selectedId, useHashForState]);
20822
20816
  const tab = (0, import_Tab.useTabState)({ ...props, selectedId: selected });
20823
- (0, import_react129.useEffect)(() => {
20817
+ (0, import_react131.useEffect)(() => {
20824
20818
  var _a;
20825
20819
  const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
20826
20820
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -20828,24 +20822,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
20828
20822
  window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
20829
20823
  }
20830
20824
  }, [tab.selectedId, onSelectedIdChange, useHashForState]);
20831
- (0, import_react129.useEffect)(() => {
20825
+ (0, import_react131.useEffect)(() => {
20832
20826
  if (selected && selected !== tab.selectedId) {
20833
20827
  tab.setSelectedId(selected);
20834
20828
  }
20835
20829
  }, [selected]);
20836
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(CurrentTabContext.Provider, { value: tab, children });
20830
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(CurrentTabContext.Provider, { value: tab, children });
20837
20831
  };
20838
20832
  var TabButtonGroup = ({ children, ...props }) => {
20839
20833
  const currentTab = useCurrentTab();
20840
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
20834
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
20841
20835
  };
20842
20836
  var TabButton = ({ children, id, ...props }) => {
20843
20837
  const currentTab = useCurrentTab();
20844
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
20838
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
20845
20839
  };
20846
20840
  var TabContent = ({ children, ...props }) => {
20847
20841
  const currentTab = useCurrentTab();
20848
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
20842
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
20849
20843
  };
20850
20844
 
20851
20845
  // src/components/Validation/StatusBullet.tsx
@@ -20853,8 +20847,8 @@ init_emotion_jsx_shim();
20853
20847
 
20854
20848
  // src/components/Validation/StatusBullet.styles.ts
20855
20849
  init_emotion_jsx_shim();
20856
- var import_react130 = require("@emotion/react");
20857
- var StatusBulletContainer = import_react130.css`
20850
+ var import_react132 = require("@emotion/react");
20851
+ var StatusBulletContainer = import_react132.css`
20858
20852
  align-items: center;
20859
20853
  align-self: center;
20860
20854
  color: var(--gray-500);
@@ -20871,33 +20865,33 @@ var StatusBulletContainer = import_react130.css`
20871
20865
  display: block;
20872
20866
  }
20873
20867
  `;
20874
- var StatusBulletBase = import_react130.css`
20868
+ var StatusBulletBase = import_react132.css`
20875
20869
  font-size: var(--fs-sm);
20876
20870
  &:before {
20877
20871
  width: var(--fs-xs);
20878
20872
  height: var(--fs-xs);
20879
20873
  }
20880
20874
  `;
20881
- var StatusBulletSmall = import_react130.css`
20875
+ var StatusBulletSmall = import_react132.css`
20882
20876
  font-size: var(--fs-xs);
20883
20877
  &:before {
20884
20878
  width: var(--fs-xxs);
20885
20879
  height: var(--fs-xxs);
20886
20880
  }
20887
20881
  `;
20888
- var StatusDraft = import_react130.css`
20882
+ var StatusDraft = import_react132.css`
20889
20883
  &:before {
20890
20884
  background: var(--white);
20891
20885
  box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
20892
20886
  }
20893
20887
  `;
20894
- var StatusModified = import_react130.css`
20888
+ var StatusModified = import_react132.css`
20895
20889
  &:before {
20896
20890
  background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
20897
20891
  box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
20898
20892
  }
20899
20893
  `;
20900
- var StatusError = import_react130.css`
20894
+ var StatusError = import_react132.css`
20901
20895
  color: var(--error);
20902
20896
  &:before {
20903
20897
  /* TODO: replace this with an svg icon */
@@ -20910,19 +20904,19 @@ var StatusError = import_react130.css`
20910
20904
  );
20911
20905
  }
20912
20906
  `;
20913
- var StatusPublished = import_react130.css`
20907
+ var StatusPublished = import_react132.css`
20914
20908
  &:before {
20915
20909
  background: var(--primary-action-default);
20916
20910
  }
20917
20911
  `;
20918
- var StatusOrphan = import_react130.css`
20912
+ var StatusOrphan = import_react132.css`
20919
20913
  &:before {
20920
20914
  background: var(--brand-secondary-5);
20921
20915
  }
20922
20916
  `;
20923
20917
 
20924
20918
  // src/components/Validation/StatusBullet.tsx
20925
- var import_jsx_runtime113 = require("@emotion/react/jsx-runtime");
20919
+ var import_jsx_runtime114 = require("@emotion/react/jsx-runtime");
20926
20920
  var StatusBullet = ({
20927
20921
  status,
20928
20922
  hideText = false,
@@ -20940,7 +20934,7 @@ var StatusBullet = ({
20940
20934
  Previous: StatusDraft
20941
20935
  };
20942
20936
  const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
20943
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
20937
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
20944
20938
  "span",
20945
20939
  {
20946
20940
  role: "status",
@@ -20991,6 +20985,7 @@ var StatusBullet = ({
20991
20985
  Icon,
20992
20986
  IconButton,
20993
20987
  IconsProvider,
20988
+ Image,
20994
20989
  ImageBroken,
20995
20990
  InfoMessage,
20996
20991
  InlineAlert,
@@ -21096,8 +21091,6 @@ var StatusBullet = ({
21096
21091
  borderTopIcon,
21097
21092
  breakpoints,
21098
21093
  button,
21099
- buttonAccentAltDark,
21100
- buttonAccentAltDarkOutline,
21101
21094
  buttonDestructive,
21102
21095
  buttonGhost,
21103
21096
  buttonGhostDestructive,