@wistia/ui 0.8.20 → 0.8.21-beta.1443df14.df6788c

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.8.20
3
+ * @license @wistia/ui v0.8.21-beta.1443df14.df6788c
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -77,6 +77,7 @@ __export(index_exports, {
77
77
  ImageDimensionsValidator: () => import_validators.ImageDimensionsValidator,
78
78
  Input: () => Input,
79
79
  InputClickToCopy: () => InputClickToCopy,
80
+ KeyboardShortcut: () => KeyboardShortcut,
80
81
  Label: () => Label,
81
82
  Link: () => Link,
82
83
  Menu: () => Menu,
@@ -1445,13 +1446,13 @@ var motionTokens = import_styled_components9.css`
1445
1446
  --wui-motion-duration-05: 400ms;
1446
1447
  --wui-motion-duration-06: 700ms;
1447
1448
 
1448
- @media (prefers-reduced-motion) {
1449
- --wui-motion-duration-01: 0ms;
1450
- --wui-motion-duration-02: 0ms;
1451
- --wui-motion-duration-03: 0ms;
1452
- --wui-motion-duration-04: 0ms;
1453
- --wui-motion-duration-05: 0ms;
1454
- --wui-motion-duration-06: 0ms;
1449
+ @media (prefers-reduced-motion: reduce) {
1450
+ --wui-motion-duration-01: 0.01ms;
1451
+ --wui-motion-duration-02: 0.01ms;
1452
+ --wui-motion-duration-03: 0.01ms;
1453
+ --wui-motion-duration-04: 0.01ms;
1454
+ --wui-motion-duration-05: 0.01ms;
1455
+ --wui-motion-duration-06: 0.01ms;
1455
1456
  }
1456
1457
 
1457
1458
  /* Easings */
@@ -2141,7 +2142,7 @@ var useClipboard = (textToCopy, timeout = 1500) => {
2141
2142
  return [onCopy, hasCopied, failedToCopy];
2142
2143
  };
2143
2144
 
2144
- // src/hooks/useFilePicker/index.ts
2145
+ // src/hooks/useFilePicker/useFilePicker.tsx
2145
2146
  var import_use_file_picker = require("use-file-picker");
2146
2147
  var import_validators = require("use-file-picker/validators");
2147
2148
 
@@ -7117,6 +7118,8 @@ var Link = (0, import_react21.forwardRef)(
7117
7118
  underline = false,
7118
7119
  leftIcon,
7119
7120
  rightIcon,
7121
+ "aria-disabled": ariaDisabled,
7122
+ role,
7120
7123
  ...props
7121
7124
  }, ref) => {
7122
7125
  const inRouterContext = (0, import_react_router_dom.useInRouterContext)();
@@ -7150,7 +7153,8 @@ var Link = (0, import_react21.forwardRef)(
7150
7153
  $colorScheme: colorScheme,
7151
7154
  $disabled: disabled,
7152
7155
  $underline: underline,
7153
- onClick: handleClick
7156
+ onClick: handleClick,
7157
+ "aria-disabled": ariaDisabled ?? (disabled ? "true" : void 0)
7154
7158
  };
7155
7159
  if (isButton(props)) {
7156
7160
  return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
@@ -7183,11 +7187,18 @@ var Link = (0, import_react21.forwardRef)(
7183
7187
  ...externalLinkProps,
7184
7188
  ...routerSpecificProps
7185
7189
  };
7186
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(StyledLink, { ...combinedProps, children: [
7187
- leftIcon ?? null,
7188
- children,
7189
- rightIcon ?? null
7190
- ] });
7190
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(
7191
+ StyledLink,
7192
+ {
7193
+ ...combinedProps,
7194
+ role: role ?? (disabled ? "link" : void 0),
7195
+ children: [
7196
+ leftIcon ?? null,
7197
+ children,
7198
+ rightIcon ?? null
7199
+ ]
7200
+ }
7201
+ );
7191
7202
  }
7192
7203
  return null;
7193
7204
  }
@@ -7219,7 +7230,7 @@ var StyledButtonContent = import_styled_components21.default.div`
7219
7230
  ${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
7220
7231
  `;
7221
7232
  var StyledButtonContentLabel = import_styled_components21.default.span`
7222
- flex: 1;
7233
+ flex: ${({ $fullWidth }) => $fullWidth ? "initial" : "1"};
7223
7234
  `;
7224
7235
  var StyledButtonLoading = import_styled_components21.default.div`
7225
7236
  position: absolute;
@@ -7229,7 +7240,8 @@ var ButtonContent = ({
7229
7240
  isLoading = false,
7230
7241
  leftIcon,
7231
7242
  rightIcon,
7232
- children
7243
+ children,
7244
+ fullWidth = false
7233
7245
  }) => {
7234
7246
  return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(import_jsx_runtime193.Fragment, { children: [
7235
7247
  isLoading ? /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(StyledButtonLoading, { children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(Icon, { type: "spinner" }) }) : null,
@@ -7241,7 +7253,7 @@ var ButtonContent = ({
7241
7253
  $isLoading: isLoading,
7242
7254
  children: [
7243
7255
  leftIcon ?? null,
7244
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(StyledButtonContentLabel, { children }),
7256
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(StyledButtonContentLabel, { $fullWidth: fullWidth, children }),
7245
7257
  rightIcon ?? null
7246
7258
  ]
7247
7259
  }
@@ -7291,6 +7303,7 @@ var Button = (0, import_react22.forwardRef)(
7291
7303
  children: unstyled ? children : /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
7292
7304
  ButtonContent,
7293
7305
  {
7306
+ fullWidth: responsiveFullWidth,
7294
7307
  isLoading,
7295
7308
  leftIcon,
7296
7309
  rightIcon,
@@ -7320,6 +7333,7 @@ var Button = (0, import_react22.forwardRef)(
7320
7333
  children: unstyled ? children : /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
7321
7334
  ButtonContent,
7322
7335
  {
7336
+ fullWidth: responsiveFullWidth,
7323
7337
  isLoading,
7324
7338
  leftIcon,
7325
7339
  rightIcon,
@@ -8557,12 +8571,19 @@ var import_styled_components38 = __toESM(require("styled-components"));
8557
8571
  var import_react_collapsible3 = require("@radix-ui/react-collapsible");
8558
8572
  var import_type_guards27 = require("@wistia/type-guards");
8559
8573
  var import_jsx_runtime211 = require("react/jsx-runtime");
8560
- var ClampedContent = import_styled_components38.default.div.attrs({ "data-wui-collapsible-content": true })`
8574
+ var ClampedContent = import_styled_components38.default.div`
8561
8575
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
8562
8576
  `;
8563
8577
  var CollapsibleContent = ({ clamp, children }) => {
8564
8578
  if ((0, import_type_guards27.isNotUndefined)(clamp)) {
8565
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(ClampedContent, { $clamp: clamp, children });
8579
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
8580
+ ClampedContent,
8581
+ {
8582
+ $clamp: clamp,
8583
+ "data-wui-collapsible-content": "true",
8584
+ children
8585
+ }
8586
+ );
8566
8587
  }
8567
8588
  return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(import_jsx_runtime211.Fragment, { children: [
8568
8589
  children,
@@ -9129,6 +9150,54 @@ var import_react35 = require("react");
9129
9150
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
9130
9151
  var import_styled_components45 = __toESM(require("styled-components"));
9131
9152
  var import_jsx_runtime218 = require("react/jsx-runtime");
9153
+ var hide = import_styled_components45.keyframes`
9154
+ from {
9155
+ opacity: 1;
9156
+ }
9157
+ to {
9158
+ opacity: 0;
9159
+ }
9160
+ `;
9161
+ var slideDownAndFade = import_styled_components45.keyframes`
9162
+ from {
9163
+ opacity: 0;
9164
+ transform: translateY(-6px);
9165
+ }
9166
+ to {
9167
+ opacity: 1;
9168
+ transform: translateY(0);
9169
+ }
9170
+ `;
9171
+ var slideLeftAndFade = import_styled_components45.keyframes`
9172
+ from {
9173
+ opacity: 0;
9174
+ transform: translateX(6px);
9175
+ }
9176
+ to {
9177
+ opacity: 1;
9178
+ transform: translateX(0);
9179
+ }
9180
+ `;
9181
+ var slideUpAndFade = import_styled_components45.keyframes`
9182
+ from {
9183
+ opacity: 0;
9184
+ transform: translateY(6px);
9185
+ }
9186
+ to {
9187
+ opacity: 1;
9188
+ transform: translateY(0);
9189
+ }
9190
+ `;
9191
+ var slideRightAndFade = import_styled_components45.keyframes`
9192
+ from {
9193
+ opacity: 0;
9194
+ transform: translateX(-6px);
9195
+ }
9196
+ to {
9197
+ opacity: 1;
9198
+ transform: translateX(0);
9199
+ }
9200
+ `;
9132
9201
  var StyledContent = (0, import_styled_components45.default)(import_react_tooltip2.Content)`
9133
9202
  --tooltip-font-family: var(--wui-typography-family-default);
9134
9203
  --tooltip-border-radius: var(--wui-border-radius-05);
@@ -9139,6 +9208,8 @@ var StyledContent = (0, import_styled_components45.default)(import_react_tooltip
9139
9208
  --tooltip-font-weight: var(--wui-typography-label-4-weight);
9140
9209
  --tooltip-horizontal-padding: var(--wui-space-02);
9141
9210
  --tooltip-vertical-padding: var(--wui-space-03);
9211
+ --tooltip-animation-duration: var(--wui-motion-duration-04);
9212
+ --tooltip-animation-timing-function: var(--wui-motion-ease-out);
9142
9213
 
9143
9214
  font-family: var(--tooltip-font-family);
9144
9215
  font-size: var(--tooltip-font-size);
@@ -9147,26 +9218,30 @@ var StyledContent = (0, import_styled_components45.default)(import_react_tooltip
9147
9218
  background-color: var(--tooltip-bg);
9148
9219
  color: var(--tooltip-color);
9149
9220
  user-select: none;
9150
- animation-duration: 400ms;
9151
- animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
9221
+ animation-duration: var(--tooltip-animation-duration);
9222
+ animation-timing-function: var(--tooltip-animation-timing-function);
9152
9223
  will-change: transform, opacity;
9153
9224
  max-width: 30em;
9154
9225
  z-index: var(--wui-zindex-tooltip);
9155
9226
 
9227
+ &[data-state='closed'] {
9228
+ animation-name: ${hide};
9229
+ }
9230
+
9156
9231
  &[data-state='delayed-open'][data-side='top'] {
9157
- animation-name: slideDownAndFade;
9232
+ animation-name: ${slideUpAndFade};
9158
9233
  }
9159
9234
 
9160
9235
  &[data-state='delayed-open'][data-side='right'] {
9161
- animation-name: slideLeftAndFade;
9236
+ animation-name: ${slideRightAndFade};
9162
9237
  }
9163
9238
 
9164
9239
  &[data-state='delayed-open'][data-side='bottom'] {
9165
- animation-name: slideUpAndFade;
9240
+ animation-name: ${slideDownAndFade};
9166
9241
  }
9167
9242
 
9168
9243
  &[data-state='delayed-open'][data-side='left'] {
9169
- animation-name: slideRightAndFade;
9244
+ animation-name: ${slideLeftAndFade};
9170
9245
  }
9171
9246
  `;
9172
9247
  var VISUAL_OFFSET = 6;
@@ -10154,10 +10229,119 @@ var InputClickToCopy = (0, import_react45.forwardRef)(
10154
10229
  );
10155
10230
  InputClickToCopy.displayName = "InputClickToCopy";
10156
10231
 
10157
- // src/components/Menu/Menu.tsx
10232
+ // src/components/KeyboardShortcut/KeyboardShortcut.tsx
10158
10233
  var import_styled_components56 = __toESM(require("styled-components"));
10159
- var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
10160
10234
  var import_type_guards36 = require("@wistia/type-guards");
10235
+ var import_jsx_runtime231 = require("react/jsx-runtime");
10236
+ var StyledKeyboardShortcut = import_styled_components56.default.div`
10237
+ align-items: center;
10238
+ display: flex;
10239
+ gap: var(--wui-space-02);
10240
+ ${({ $fullWidth }) => $fullWidth && "width: 100%; justify-content: space-between;"}
10241
+ `;
10242
+ var StyledKey = import_styled_components56.default.kbd`
10243
+ align-items: center;
10244
+ background: var(--wui-color-bg-surface-secondary);
10245
+ border-bottom: 1px solid var(--wui-color-border-secondary);
10246
+ border-radius: 4px;
10247
+ color: var(--wui-color-text);
10248
+ display: flex;
10249
+ font-family: InterVariable, sans-serif;
10250
+
10251
+ /* Adds serif to uppercase "I" to distinguish it from "l": https://rsms.me/inter/glyphs/?g=I.1 */
10252
+ font-feature-settings: 'cv08' on;
10253
+ font-size: 10px;
10254
+
10255
+ /* Adds a slash to the zero to distinguish it from the letter "O": https://rsms.me/inter/glyphs/?g=zero.tf.slash */
10256
+
10257
+ /* Adds tabular numbers to ensure the width of the key is consistent */
10258
+ font-variant-numeric: slashed-zero tabular-nums;
10259
+ height: 20px;
10260
+ justify-content: center;
10261
+ line-height: 20px;
10262
+ min-width: 20px;
10263
+ padding: 0 var(--wui-space-01);
10264
+ `;
10265
+ var Label2 = import_styled_components56.default.span`
10266
+ color: var(--wui-color-text);
10267
+ font-size: 12px;
10268
+ `;
10269
+ var KeysContainer = import_styled_components56.default.div`
10270
+ display: flex;
10271
+ gap: var(--wui-space-01);
10272
+ `;
10273
+ var keyToString = (key) => {
10274
+ switch (key) {
10275
+ // Arrow Keys
10276
+ case "ArrowDown":
10277
+ return "\u2193";
10278
+ case "ArrowLeft":
10279
+ return "\u2190";
10280
+ case "ArrowRight":
10281
+ return "\u2192";
10282
+ case "ArrowUp":
10283
+ return "\u2191";
10284
+ // Modifier Keys
10285
+ case "Alt":
10286
+ return "Alt";
10287
+ case "Cmd":
10288
+ case "Meta":
10289
+ if (/Mac|iPhone|iPad/.test(window.navigator.userAgent)) {
10290
+ return "\u2318";
10291
+ }
10292
+ if (window.navigator.userAgent.includes("Win")) {
10293
+ return "\u229E";
10294
+ }
10295
+ return "^";
10296
+ case "Ctrl":
10297
+ return "Ctrl";
10298
+ case "Option":
10299
+ return "\u2325";
10300
+ case "Shift":
10301
+ return "\u21E7";
10302
+ // Whitespace Keys
10303
+ case "Enter":
10304
+ return "\u21B5";
10305
+ case "Space":
10306
+ return "Space";
10307
+ case "Tab":
10308
+ return "Tab";
10309
+ case "Backspace":
10310
+ return "Del";
10311
+ case "Esc":
10312
+ return "Esc";
10313
+ default:
10314
+ return key.toUpperCase();
10315
+ }
10316
+ };
10317
+ var KeyboardShortcut = ({
10318
+ label,
10319
+ keyboardKeys,
10320
+ fullWidth = false,
10321
+ ...otherProps
10322
+ }) => /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
10323
+ StyledKeyboardShortcut,
10324
+ {
10325
+ $fullWidth: fullWidth,
10326
+ ...otherProps,
10327
+ children: [
10328
+ (0, import_type_guards36.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Label2, { children: label }),
10329
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(KeysContainer, { children: (Array.isArray(keyboardKeys) ? keyboardKeys : [keyboardKeys]).map((keyboardKey, index) => /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
10330
+ StyledKey,
10331
+ {
10332
+ children: keyToString(keyboardKey)
10333
+ },
10334
+ index
10335
+ )) })
10336
+ ]
10337
+ }
10338
+ );
10339
+ KeyboardShortcut.displayName = "KeyboardShortcut";
10340
+
10341
+ // src/components/Menu/Menu.tsx
10342
+ var import_styled_components57 = __toESM(require("styled-components"));
10343
+ var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
10344
+ var import_type_guards37 = require("@wistia/type-guards");
10161
10345
  var import_react47 = require("react");
10162
10346
 
10163
10347
  // src/components/Menu/MenuContext.tsx
@@ -10166,8 +10350,8 @@ var MenuContext = (0, import_react46.createContext)({ compact: false });
10166
10350
  var useMenuContext = () => (0, import_react46.useContext)(MenuContext);
10167
10351
 
10168
10352
  // src/components/Menu/Menu.tsx
10169
- var import_jsx_runtime231 = require("react/jsx-runtime");
10170
- var open = import_styled_components56.keyframes`
10353
+ var import_jsx_runtime232 = require("react/jsx-runtime");
10354
+ var open = import_styled_components57.keyframes`
10171
10355
  from {
10172
10356
  opacity: 0;
10173
10357
  transform: scale(.97) translateY(-8px);
@@ -10177,7 +10361,7 @@ var open = import_styled_components56.keyframes`
10177
10361
  transform: scale(1);
10178
10362
  }
10179
10363
  `;
10180
- var close = import_styled_components56.keyframes`
10364
+ var close = import_styled_components57.keyframes`
10181
10365
  from {
10182
10366
  opacity: 1;
10183
10367
  transform: scale(1);
@@ -10187,7 +10371,7 @@ var close = import_styled_components56.keyframes`
10187
10371
  transform: scale(.97) translateY(-8px);
10188
10372
  }
10189
10373
  `;
10190
- var menuItemCss = import_styled_components56.css`
10374
+ var menuItemCss = import_styled_components57.css`
10191
10375
  --menu-label-description-gap: var(--wui-space-01);
10192
10376
  --menu-item-inner-gap: var(--wui-space-03);
10193
10377
  --menu-item-left-icon-size: 24px;
@@ -10198,7 +10382,7 @@ var menuItemCss = import_styled_components56.css`
10198
10382
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
10199
10383
  --menu-divider-margin: var(--wui-space-02);
10200
10384
  `;
10201
- var compactMenuItemCss = import_styled_components56.css`
10385
+ var compactMenuItemCss = import_styled_components57.css`
10202
10386
  --menu-label-description-gap: 0;
10203
10387
  --menu-item-inner-gap: var(--wui-space-02);
10204
10388
  --menu-item-left-icon-size: 16px;
@@ -10209,7 +10393,7 @@ var compactMenuItemCss = import_styled_components56.css`
10209
10393
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
10210
10394
  --menu-divider-margin: var(--wui-space-01);
10211
10395
  `;
10212
- var menuContentCss = import_styled_components56.css`
10396
+ var menuContentCss = import_styled_components57.css`
10213
10397
  --menu-font-family: var(--wui-typography-family-default);
10214
10398
  --menu-bg: var(--wui-color-bg-surface);
10215
10399
  --menu-shadow: var(--wui-elevation-01);
@@ -10251,7 +10435,7 @@ var menuContentCss = import_styled_components56.css`
10251
10435
  margin: var(--menu-divider-margin) 0;
10252
10436
  }
10253
10437
  `;
10254
- var MenuContent = (0, import_styled_components56.default)(import_react_dropdown_menu.DropdownMenuContent)`
10438
+ var MenuContent = (0, import_styled_components57.default)(import_react_dropdown_menu.DropdownMenuContent)`
10255
10439
  ${menuContentCss}
10256
10440
  `;
10257
10441
  var Menu = ({
@@ -10269,7 +10453,7 @@ var Menu = ({
10269
10453
  }) => {
10270
10454
  const contextValue = (0, import_react47.useMemo)(() => ({ compact }), [compact]);
10271
10455
  let controlProps = {
10272
- ...(0, import_type_guards36.isNotNil)(onOpenChange) && (0, import_type_guards36.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
10456
+ ...(0, import_type_guards37.isNotNil)(onOpenChange) && (0, import_type_guards37.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
10273
10457
  };
10274
10458
  if (disabled) {
10275
10459
  controlProps = {
@@ -10277,24 +10461,24 @@ var Menu = ({
10277
10461
  onOpenChange: () => null
10278
10462
  };
10279
10463
  }
10280
- return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
10464
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
10281
10465
  import_react_dropdown_menu.DropdownMenu,
10282
10466
  {
10283
10467
  modal: false,
10284
10468
  ...controlProps,
10285
10469
  children: [
10286
- /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards36.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
10470
+ /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards37.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
10287
10471
  Button,
10288
10472
  {
10289
10473
  "aria-expanded": isOpen,
10290
10474
  disabled,
10291
10475
  forceState: isOpen ? "active" : void 0,
10292
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Icon, { type: "caret-down" }),
10476
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Icon, { type: "caret-down" }),
10293
10477
  ...triggerProps,
10294
10478
  children: label
10295
10479
  }
10296
10480
  ) }),
10297
- /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
10481
+ /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
10298
10482
  MenuContent,
10299
10483
  {
10300
10484
  ...props,
@@ -10314,19 +10498,19 @@ var Menu = ({
10314
10498
  Menu.displayName = "Menu";
10315
10499
 
10316
10500
  // src/components/Menu/MenuLabel.tsx
10317
- var import_styled_components57 = __toESM(require("styled-components"));
10501
+ var import_styled_components58 = __toESM(require("styled-components"));
10318
10502
  var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
10319
- var import_jsx_runtime232 = require("react/jsx-runtime");
10320
- var StyledMenuLabel = (0, import_styled_components57.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
10503
+ var import_jsx_runtime233 = require("react/jsx-runtime");
10504
+ var StyledMenuLabel = (0, import_styled_components58.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
10321
10505
  padding: var(--wui-space-02);
10322
10506
  `;
10323
10507
  var MenuLabel = ({ children, ...props }) => {
10324
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
10508
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
10325
10509
  StyledMenuLabel,
10326
10510
  {
10327
10511
  asChild: true,
10328
10512
  ...props,
10329
- children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
10513
+ children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
10330
10514
  Heading,
10331
10515
  {
10332
10516
  renderAs: "span",
@@ -10342,16 +10526,16 @@ MenuLabel.displayName = "MenuLabel";
10342
10526
 
10343
10527
  // src/components/Menu/SubMenu.tsx
10344
10528
  var import_react49 = require("react");
10345
- var import_styled_components60 = __toESM(require("styled-components"));
10529
+ var import_styled_components61 = __toESM(require("styled-components"));
10346
10530
  var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
10347
- var import_type_guards38 = require("@wistia/type-guards");
10531
+ var import_type_guards39 = require("@wistia/type-guards");
10348
10532
 
10349
10533
  // src/components/Menu/MenuItemButton.tsx
10350
10534
  var import_react48 = require("react");
10351
- var import_styled_components58 = __toESM(require("styled-components"));
10352
- var import_type_guards37 = require("@wistia/type-guards");
10353
- var import_jsx_runtime233 = require("react/jsx-runtime");
10354
- var StyledButton3 = (0, import_styled_components58.default)(Button)`
10535
+ var import_styled_components59 = __toESM(require("styled-components"));
10536
+ var import_type_guards38 = require("@wistia/type-guards");
10537
+ var import_jsx_runtime234 = require("react/jsx-runtime");
10538
+ var StyledButton3 = (0, import_styled_components59.default)(Button)`
10355
10539
  ${({ colorScheme }) => getColorScheme(colorScheme)};
10356
10540
 
10357
10541
  display: flex;
@@ -10390,7 +10574,7 @@ var StyledButton3 = (0, import_styled_components58.default)(Button)`
10390
10574
  padding-left: var(--wui-space-04);
10391
10575
  }
10392
10576
  `;
10393
- var StyledLeftIconContainer = import_styled_components58.default.div`
10577
+ var StyledLeftIconContainer = import_styled_components59.default.div`
10394
10578
  height: var(--menu-item-left-icon-size);
10395
10579
  width: var(--menu-item-left-icon-size);
10396
10580
 
@@ -10401,7 +10585,7 @@ var StyledLeftIconContainer = import_styled_components58.default.div`
10401
10585
  }
10402
10586
  }
10403
10587
  `;
10404
- var StyledRightIconContainer = import_styled_components58.default.div`
10588
+ var StyledRightIconContainer = import_styled_components59.default.div`
10405
10589
  height: var(--menu-item-right-icon-size);
10406
10590
  width: var(--menu-item-right-icon-size);
10407
10591
 
@@ -10412,13 +10596,13 @@ var StyledRightIconContainer = import_styled_components58.default.div`
10412
10596
  }
10413
10597
  }
10414
10598
  `;
10415
- var StyledLabelAndDescriptionContainer = import_styled_components58.default.div`
10599
+ var StyledLabelAndDescriptionContainer = import_styled_components59.default.div`
10416
10600
  display: flex;
10417
10601
  flex-direction: column;
10418
10602
  gap: var(--menu-label-description-gap);
10419
10603
  flex-basis: 100%;
10420
10604
  `;
10421
- var StyledBadgeContainer = import_styled_components58.default.div`
10605
+ var StyledBadgeContainer = import_styled_components59.default.div`
10422
10606
  align-self: start;
10423
10607
  justify-self: end;
10424
10608
  font-size: var(--wui-typography-label-4-size);
@@ -10427,13 +10611,13 @@ var StyledBadgeContainer = import_styled_components58.default.div`
10427
10611
  var MenuItemButton = (0, import_react48.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
10428
10612
  let { colorScheme, badge } = props;
10429
10613
  if (appearance === "dangerous") {
10430
- if ((0, import_type_guards37.isNotUndefined)(colorScheme)) {
10614
+ if ((0, import_type_guards38.isNotUndefined)(colorScheme)) {
10431
10615
  console.warn("colorScheme prop is ignored when appearance is dangerous");
10432
10616
  }
10433
10617
  colorScheme = "error";
10434
10618
  }
10435
10619
  if (appearance === "gated") {
10436
- badge = /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
10620
+ badge = /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
10437
10621
  Icon,
10438
10622
  {
10439
10623
  colorScheme: "purple",
@@ -10445,7 +10629,7 @@ var MenuItemButton = (0, import_react48.forwardRef)(({ children, appearance, com
10445
10629
  }
10446
10630
  );
10447
10631
  }
10448
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
10632
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
10449
10633
  StyledButton3,
10450
10634
  {
10451
10635
  ...props,
@@ -10455,10 +10639,10 @@ var MenuItemButton = (0, import_react48.forwardRef)(({ children, appearance, com
10455
10639
  fullWidth: true,
10456
10640
  unstyled: true,
10457
10641
  children: [
10458
- props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10459
- /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StyledLabelAndDescriptionContainer, { children }),
10460
- (0, import_type_guards37.isNotNil)(badge) || (0, import_type_guards37.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
10461
- props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
10642
+ props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10643
+ /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledLabelAndDescriptionContainer, { children }),
10644
+ (0, import_type_guards38.isNotNil)(badge) || (0, import_type_guards38.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
10645
+ props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
10462
10646
  ]
10463
10647
  }
10464
10648
  );
@@ -10466,33 +10650,37 @@ var MenuItemButton = (0, import_react48.forwardRef)(({ children, appearance, com
10466
10650
  MenuItemButton.displayName = "MenuItemButton";
10467
10651
 
10468
10652
  // src/components/Menu/MenuItemLabelDescription.tsx
10469
- var import_styled_components59 = __toESM(require("styled-components"));
10470
- var import_jsx_runtime234 = require("react/jsx-runtime");
10471
- var StyledMenuItemLabel = import_styled_components59.default.span``;
10472
- var StyledMenuItemDescription = (0, import_styled_components59.default)(Text).attrs({
10473
- variant: "body4",
10474
- prominence: "secondary"
10475
- })``;
10653
+ var import_styled_components60 = __toESM(require("styled-components"));
10654
+ var import_jsx_runtime235 = require("react/jsx-runtime");
10655
+ var StyledMenuItemLabel = import_styled_components60.default.span``;
10656
+ var StyledMenuItemDescription = (0, import_styled_components60.default)(Text)``;
10476
10657
  var MenuItemLabel = ({ children }) => {
10477
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledMenuItemLabel, { children });
10658
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StyledMenuItemLabel, { children });
10478
10659
  };
10479
10660
  var MenuItemDescription = ({ children }) => {
10480
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledMenuItemDescription, { children });
10661
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10662
+ StyledMenuItemDescription,
10663
+ {
10664
+ prominence: "secondary",
10665
+ variant: "body4",
10666
+ children
10667
+ }
10668
+ );
10481
10669
  };
10482
10670
 
10483
10671
  // src/components/Menu/SubMenu.tsx
10484
- var import_jsx_runtime235 = require("react/jsx-runtime");
10485
- var SubMenuContent = (0, import_styled_components60.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
10672
+ var import_jsx_runtime236 = require("react/jsx-runtime");
10673
+ var SubMenuContent = (0, import_styled_components61.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
10486
10674
  ${menuContentCss}
10487
10675
 
10488
10676
  ${mq.smAndDown} {
10489
10677
  transform: translateX(-100%) !important;
10490
10678
  }
10491
10679
  `;
10492
- var StyledMobileSubMenuItems = import_styled_components60.default.div`
10680
+ var StyledMobileSubMenuItems = import_styled_components61.default.div`
10493
10681
  margin-left: var(--wui-space-04);
10494
10682
  `;
10495
- var StyledSubTrigger = (0, import_styled_components60.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
10683
+ var StyledSubTrigger = (0, import_styled_components61.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
10496
10684
  outline: none;
10497
10685
 
10498
10686
  &[data-state='open'],
@@ -10503,12 +10691,12 @@ var StyledSubTrigger = (0, import_styled_components60.default)(import_react_drop
10503
10691
  var SubMenuTrigger = ({ icon, ...props }) => {
10504
10692
  const { isSmAndUp } = useMq();
10505
10693
  const Trigger4 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
10506
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10694
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10507
10695
  MenuItemButton,
10508
10696
  {
10509
10697
  ...props,
10510
10698
  leftIcon: icon,
10511
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Icon, { type: "caret-right" })
10699
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Icon, { type: "caret-right" })
10512
10700
  }
10513
10701
  ) });
10514
10702
  };
@@ -10522,14 +10710,14 @@ var SubMenu = ({
10522
10710
  const { isSmAndUp } = useMq();
10523
10711
  const [isExpanded, setIsExpanded] = (0, import_react49.useState)(false);
10524
10712
  const { compact } = useMenuContext();
10525
- return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
10526
- /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(SubMenuTrigger, { ...props, children: [
10527
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(MenuItemLabel, { children: label }),
10528
- (0, import_type_guards38.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(MenuItemDescription, { children: description }) : null
10713
+ return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
10714
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(SubMenuTrigger, { ...props, children: [
10715
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuItemLabel, { children: label }),
10716
+ (0, import_type_guards39.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuItemDescription, { children: description }) : null
10529
10717
  ] }),
10530
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(SubMenuContent, { $compact: compact, children }) })
10531
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
10532
- /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
10718
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(SubMenuContent, { $compact: compact, children }) })
10719
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
10720
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
10533
10721
  SubMenuTrigger,
10534
10722
  {
10535
10723
  ...props,
@@ -10538,12 +10726,12 @@ var SubMenu = ({
10538
10726
  setIsExpanded((prev) => !prev);
10539
10727
  },
10540
10728
  children: [
10541
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(MenuItemLabel, { children: label }),
10542
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(MenuItemDescription, { children: description })
10729
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuItemLabel, { children: label }),
10730
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuItemDescription, { children: description })
10543
10731
  ]
10544
10732
  }
10545
10733
  ),
10546
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10734
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10547
10735
  ] });
10548
10736
  };
10549
10737
  SubMenu.displayName = "SubMenu";
@@ -10551,15 +10739,15 @@ SubMenu.displayName = "SubMenu";
10551
10739
  // src/components/Menu/MenuItem.tsx
10552
10740
  var import_react50 = require("react");
10553
10741
  var import_react_dropdown_menu4 = require("@radix-ui/react-dropdown-menu");
10554
- var import_jsx_runtime236 = require("react/jsx-runtime");
10742
+ var import_jsx_runtime237 = require("react/jsx-runtime");
10555
10743
  var MenuItem = (0, import_react50.forwardRef)(
10556
10744
  ({ onSelect = () => null, ...props }, ref) => {
10557
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10745
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10558
10746
  import_react_dropdown_menu4.DropdownMenuItem,
10559
10747
  {
10560
10748
  asChild: true,
10561
10749
  onSelect,
10562
- children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10750
+ children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10563
10751
  MenuItemButton,
10564
10752
  {
10565
10753
  ...props,
@@ -10575,10 +10763,10 @@ MenuItem.displayName = "MenuItem";
10575
10763
 
10576
10764
  // src/components/Menu/MenuRadioGroup.tsx
10577
10765
  var import_react_dropdown_menu5 = require("@radix-ui/react-dropdown-menu");
10578
- var import_jsx_runtime237 = require("react/jsx-runtime");
10766
+ var import_jsx_runtime238 = require("react/jsx-runtime");
10579
10767
  var MenuRadioGroup = ({ children, label, ...props }) => {
10580
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
10581
- /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(MenuLabel, { children: label }),
10768
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
10769
+ /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(MenuLabel, { children: label }),
10582
10770
  children
10583
10771
  ] });
10584
10772
  };
@@ -10586,11 +10774,11 @@ MenuRadioGroup.displayName = "MenuRadioGroup";
10586
10774
 
10587
10775
  // src/components/Menu/RadioMenuItem.tsx
10588
10776
  var import_react_dropdown_menu6 = require("@radix-ui/react-dropdown-menu");
10589
- var import_jsx_runtime238 = require("react/jsx-runtime");
10777
+ var import_jsx_runtime239 = require("react/jsx-runtime");
10590
10778
  var RadioMenuItem = ({
10591
10779
  onSelect,
10592
10780
  value,
10593
- indicator = /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10781
+ indicator = /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10594
10782
  Icon,
10595
10783
  {
10596
10784
  size: "sm",
@@ -10600,17 +10788,17 @@ var RadioMenuItem = ({
10600
10788
  ...props
10601
10789
  }) => {
10602
10790
  const extraProps = onSelect ? { onSelect } : {};
10603
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10791
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10604
10792
  import_react_dropdown_menu6.DropdownMenuRadioItem,
10605
10793
  {
10606
10794
  ...extraProps,
10607
10795
  asChild: true,
10608
10796
  value,
10609
- children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10797
+ children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10610
10798
  MenuItemButton,
10611
10799
  {
10612
10800
  ...props,
10613
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
10801
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
10614
10802
  }
10615
10803
  )
10616
10804
  }
@@ -10620,10 +10808,10 @@ RadioMenuItem.displayName = "RadioMenuItem";
10620
10808
 
10621
10809
  // src/components/Menu/CheckboxMenuItem.tsx
10622
10810
  var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
10623
- var import_type_guards39 = require("@wistia/type-guards");
10624
- var import_jsx_runtime239 = require("react/jsx-runtime");
10811
+ var import_type_guards40 = require("@wistia/type-guards");
10812
+ var import_jsx_runtime240 = require("react/jsx-runtime");
10625
10813
  var CheckboxIndicator = ({ checked, ...props }) => {
10626
- return checked ? /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
10814
+ return checked ? /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
10627
10815
  "svg",
10628
10816
  {
10629
10817
  ...props,
@@ -10633,14 +10821,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10633
10821
  width: "24",
10634
10822
  xmlns: "http://www.w3.org/2000/svg",
10635
10823
  children: [
10636
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10824
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10637
10825
  "path",
10638
10826
  {
10639
10827
  d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
10640
10828
  fill: "#2949e5"
10641
10829
  }
10642
10830
  ),
10643
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10831
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10644
10832
  "path",
10645
10833
  {
10646
10834
  d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
@@ -10649,7 +10837,7 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10649
10837
  )
10650
10838
  ]
10651
10839
  }
10652
- ) : /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
10840
+ ) : /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
10653
10841
  "svg",
10654
10842
  {
10655
10843
  ...props,
@@ -10659,14 +10847,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10659
10847
  width: "24",
10660
10848
  xmlns: "http://www.w3.org/2000/svg",
10661
10849
  children: [
10662
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10850
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10663
10851
  "path",
10664
10852
  {
10665
10853
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
10666
10854
  fill: "#fcfcfd"
10667
10855
  }
10668
10856
  ),
10669
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10857
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10670
10858
  "path",
10671
10859
  {
10672
10860
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
@@ -10683,19 +10871,19 @@ var CheckboxMenuItem = ({
10683
10871
  onCheckedChange,
10684
10872
  ...props
10685
10873
  }) => {
10686
- return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10874
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10687
10875
  import_react_dropdown_menu7.DropdownMenuCheckboxItem,
10688
10876
  {
10689
10877
  asChild: true,
10690
10878
  checked,
10691
10879
  onCheckedChange,
10692
10880
  onSelect,
10693
- children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10881
+ children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10694
10882
  MenuItemButton,
10695
10883
  {
10696
10884
  ...props,
10697
- leftIcon: (0, import_type_guards39.isNotNil)(props.icon) ? props.icon : /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(CheckboxIndicator, { checked }),
10698
- rightIcon: (0, import_type_guards39.isNotNil)(props.icon) ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_react_dropdown_menu7.DropdownMenuItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Icon, { type: "checkmark" }) }) : void 0
10885
+ leftIcon: (0, import_type_guards40.isNotNil)(props.icon) ? props.icon : /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(CheckboxIndicator, { checked }),
10886
+ rightIcon: (0, import_type_guards40.isNotNil)(props.icon) ? /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(import_react_dropdown_menu7.DropdownMenuItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon, { type: "checkmark" }) }) : void 0
10699
10887
  }
10700
10888
  )
10701
10889
  }
@@ -10705,36 +10893,36 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
10705
10893
 
10706
10894
  // src/components/Modal/Modal.tsx
10707
10895
  var import_react54 = require("react");
10708
- var import_styled_components65 = __toESM(require("styled-components"));
10896
+ var import_styled_components66 = __toESM(require("styled-components"));
10709
10897
  var import_react_dialog4 = require("@radix-ui/react-dialog");
10710
- var import_type_guards41 = require("@wistia/type-guards");
10898
+ var import_type_guards42 = require("@wistia/type-guards");
10711
10899
 
10712
10900
  // src/components/Modal/ModalHeader.tsx
10713
- var import_styled_components62 = __toESM(require("styled-components"));
10901
+ var import_styled_components63 = __toESM(require("styled-components"));
10714
10902
  var import_react_dialog2 = require("@radix-ui/react-dialog");
10715
10903
 
10716
10904
  // src/components/Modal/ModalCloseButton.tsx
10717
- var import_styled_components61 = __toESM(require("styled-components"));
10905
+ var import_styled_components62 = __toESM(require("styled-components"));
10718
10906
  var import_react_dialog = require("@radix-ui/react-dialog");
10719
- var import_jsx_runtime240 = require("react/jsx-runtime");
10720
- var CloseButton = (0, import_styled_components61.default)(import_react_dialog.Close)`
10907
+ var import_jsx_runtime241 = require("react/jsx-runtime");
10908
+ var CloseButton = (0, import_styled_components62.default)(import_react_dialog.Close)`
10721
10909
  align-self: start;
10722
10910
  `;
10723
10911
  var ModalCloseButton = () => {
10724
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10912
+ return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10725
10913
  IconButton,
10726
10914
  {
10727
10915
  label: "Dismiss modal",
10728
10916
  size: "sm",
10729
10917
  variant: "ghost",
10730
- children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon, { type: "close" })
10918
+ children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Icon, { type: "close" })
10731
10919
  }
10732
10920
  ) });
10733
10921
  };
10734
10922
 
10735
10923
  // src/components/Modal/ModalHeader.tsx
10736
- var import_jsx_runtime241 = require("react/jsx-runtime");
10737
- var Header = import_styled_components62.default.header`
10924
+ var import_jsx_runtime242 = require("react/jsx-runtime");
10925
+ var Header = import_styled_components63.default.header`
10738
10926
  display: flex;
10739
10927
  order: 1;
10740
10928
  gap: var(--wui-space-01);
@@ -10745,7 +10933,7 @@ var Header = import_styled_components62.default.header`
10745
10933
  margin: 0 0 var(--wui-space-03);
10746
10934
  }
10747
10935
  `;
10748
- var Title = (0, import_styled_components62.default)(import_react_dialog2.Title)`
10936
+ var Title = (0, import_styled_components63.default)(import_react_dialog2.Title)`
10749
10937
  font-family: var(--wui-typography-heading-2-family);
10750
10938
  line-height: var(--wui-typography-heading-2-line-height);
10751
10939
  font-size: var(--wui-typography-heading-2-size);
@@ -10756,21 +10944,21 @@ var ModalHeader = ({
10756
10944
  hideTitle,
10757
10945
  hideCloseButton
10758
10946
  }) => {
10759
- const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Title, { children: title });
10760
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Header, { $hideTitle: hideTitle, children: [
10947
+ const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Title, { children: title });
10948
+ return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Header, { $hideTitle: hideTitle, children: [
10761
10949
  TitleComponent,
10762
- hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(ModalCloseButton, {})
10950
+ hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(ModalCloseButton, {})
10763
10951
  ] });
10764
10952
  };
10765
10953
 
10766
10954
  // src/components/Modal/ModalContent.tsx
10767
10955
  var import_react52 = require("react");
10768
- var import_styled_components63 = __toESM(require("styled-components"));
10956
+ var import_styled_components64 = __toESM(require("styled-components"));
10769
10957
  var import_react_dialog3 = require("@radix-ui/react-dialog");
10770
10958
 
10771
10959
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
10772
10960
  var import_react51 = require("react");
10773
- var import_type_guards40 = require("@wistia/type-guards");
10961
+ var import_type_guards41 = require("@wistia/type-guards");
10774
10962
  var useFocusRestore = () => {
10775
10963
  const previouslyFocusedRef = (0, import_react51.useRef)(null);
10776
10964
  (0, import_react51.useEffect)(() => {
@@ -10778,7 +10966,7 @@ var useFocusRestore = () => {
10778
10966
  }, []);
10779
10967
  (0, import_react51.useEffect)(() => {
10780
10968
  return () => {
10781
- if ((0, import_type_guards40.isNotNil)(previouslyFocusedRef.current)) {
10969
+ if ((0, import_type_guards41.isNotNil)(previouslyFocusedRef.current)) {
10782
10970
  setTimeout(() => {
10783
10971
  previouslyFocusedRef.current?.focus();
10784
10972
  }, 0);
@@ -10788,8 +10976,8 @@ var useFocusRestore = () => {
10788
10976
  };
10789
10977
 
10790
10978
  // src/components/Modal/ModalContent.tsx
10791
- var import_jsx_runtime242 = require("react/jsx-runtime");
10792
- var StyledModalContent = (0, import_styled_components63.default)(import_react_dialog3.Content)`
10979
+ var import_jsx_runtime243 = require("react/jsx-runtime");
10980
+ var StyledModalContent = (0, import_styled_components64.default)(import_react_dialog3.Content)`
10793
10981
  background-color: var(--wui-color-bg-app);
10794
10982
  box-sizing: border-box;
10795
10983
  display: flex;
@@ -10833,7 +11021,7 @@ var StyledModalContent = (0, import_styled_components63.default)(import_react_di
10833
11021
  var ModalContent = (0, import_react52.forwardRef)(
10834
11022
  ({ fullHeight, width, children, ...props }, ref) => {
10835
11023
  useFocusRestore();
10836
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
11024
+ return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
10837
11025
  StyledModalContent,
10838
11026
  {
10839
11027
  ref,
@@ -10849,8 +11037,8 @@ var ModalContent = (0, import_react52.forwardRef)(
10849
11037
 
10850
11038
  // src/private/components/Backdrop/Backdrop.tsx
10851
11039
  var import_react53 = require("react");
10852
- var import_styled_components64 = __toESM(require("styled-components"));
10853
- var import_jsx_runtime243 = require("react/jsx-runtime");
11040
+ var import_styled_components65 = __toESM(require("styled-components"));
11041
+ var import_jsx_runtime244 = require("react/jsx-runtime");
10854
11042
  var backdropAnimationDuration = 150;
10855
11043
  var alignVerticalMap = {
10856
11044
  stretch: "normal",
@@ -10863,7 +11051,7 @@ var alignHorizontalMap = {
10863
11051
  center: "center",
10864
11052
  right: "end"
10865
11053
  };
10866
- var BackdropComponent = import_styled_components64.default.div`
11054
+ var BackdropComponent = import_styled_components65.default.div`
10867
11055
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
10868
11056
  animation-name: backdropShow;
10869
11057
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -10892,7 +11080,7 @@ var BackdropComponent = import_styled_components64.default.div`
10892
11080
  }
10893
11081
  `;
10894
11082
  var Backdrop = (0, import_react53.forwardRef)(
10895
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
11083
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
10896
11084
  BackdropComponent,
10897
11085
  {
10898
11086
  ref,
@@ -10906,9 +11094,9 @@ var Backdrop = (0, import_react53.forwardRef)(
10906
11094
  Backdrop.displayName = "Backdrop";
10907
11095
 
10908
11096
  // src/components/Modal/Modal.tsx
10909
- var import_jsx_runtime244 = require("react/jsx-runtime");
11097
+ var import_jsx_runtime245 = require("react/jsx-runtime");
10910
11098
  var DEFAULT_MODAL_WIDTH = "532px";
10911
- var ModalBody = import_styled_components65.default.div`
11099
+ var ModalBody = import_styled_components66.default.div`
10912
11100
  flex-direction: column;
10913
11101
  display: flex;
10914
11102
  order: 2;
@@ -10926,24 +11114,24 @@ var Modal = (0, import_react54.forwardRef)(
10926
11114
  width = DEFAULT_MODAL_WIDTH,
10927
11115
  ...props
10928
11116
  }, ref) => {
10929
- return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
11117
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
10930
11118
  import_react_dialog4.Root,
10931
11119
  {
10932
11120
  onOpenChange: (open2) => {
10933
- if (!open2 && (0, import_type_guards41.isNotNil)(onRequestClose)) {
11121
+ if (!open2 && (0, import_type_guards42.isNotNil)(onRequestClose)) {
10934
11122
  onRequestClose();
10935
11123
  }
10936
11124
  },
10937
11125
  open: isOpen,
10938
- children: /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(import_react_dialog4.Portal, { children: [
10939
- /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Backdrop, {}),
10940
- /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
11126
+ children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(import_react_dialog4.Portal, { children: [
11127
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Backdrop, {}),
11128
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
10941
11129
  ModalContent,
10942
11130
  {
10943
11131
  ref,
10944
11132
  fullHeight,
10945
11133
  onOpenAutoFocus: (event) => {
10946
- if ((0, import_type_guards41.isNotNil)(initialFocusRef) && initialFocusRef.current) {
11134
+ if ((0, import_type_guards42.isNotNil)(initialFocusRef) && initialFocusRef.current) {
10947
11135
  event.preventDefault();
10948
11136
  requestAnimationFrame(() => {
10949
11137
  initialFocusRef.current?.focus();
@@ -10953,8 +11141,8 @@ var Modal = (0, import_react54.forwardRef)(
10953
11141
  width,
10954
11142
  ...props,
10955
11143
  children: [
10956
- /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(ModalBody, { children }),
10957
- /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
11144
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(ModalBody, { children }),
11145
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
10958
11146
  ModalHeader,
10959
11147
  {
10960
11148
  hideCloseButton,
@@ -10974,19 +11162,19 @@ Modal.displayName = "Modal";
10974
11162
 
10975
11163
  // src/components/Popover/Popover.tsx
10976
11164
  var import_react_popover = require("@radix-ui/react-popover");
10977
- var import_styled_components66 = __toESM(require("styled-components"));
11165
+ var import_styled_components67 = __toESM(require("styled-components"));
10978
11166
 
10979
11167
  // src/private/helpers/getControls/getControlProps.tsx
10980
- var import_type_guards42 = require("@wistia/type-guards");
11168
+ var import_type_guards43 = require("@wistia/type-guards");
10981
11169
  var getControlProps = (isOpen, onOpenChange) => {
10982
- return (0, import_type_guards42.isNotNil)(onOpenChange) && (0, import_type_guards42.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
11170
+ return (0, import_type_guards43.isNotNil)(onOpenChange) && (0, import_type_guards43.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
10983
11171
  };
10984
11172
 
10985
11173
  // src/components/Popover/Popover.tsx
10986
- var import_jsx_runtime245 = require("react/jsx-runtime");
10987
- var StyledContent2 = (0, import_styled_components66.default)(import_react_popover.Content)`
11174
+ var import_jsx_runtime246 = require("react/jsx-runtime");
11175
+ var StyledContent2 = (0, import_styled_components67.default)(import_react_popover.Content)`
10988
11176
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10989
- ${({ $unstyled }) => !$unstyled && import_styled_components66.css`
11177
+ ${({ $unstyled }) => !$unstyled && import_styled_components67.css`
10990
11178
  border-radius: var(--wui-border-radius-02);
10991
11179
  padding: var(--wui-space-04);
10992
11180
  max-width: var(--wui-popover-max-width, 320px);
@@ -11019,9 +11207,9 @@ var Popover = ({
11019
11207
  "--wui-popover-max-width": maxWidth,
11020
11208
  "--wui-popover-max-height": maxHeight
11021
11209
  };
11022
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
11023
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_popover.Trigger, { asChild: true, children: trigger }),
11024
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
11210
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
11211
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_popover.Trigger, { asChild: true, children: trigger }),
11212
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
11025
11213
  StyledContent2,
11026
11214
  {
11027
11215
  $colorScheme: colorScheme,
@@ -11030,16 +11218,16 @@ var Popover = ({
11030
11218
  $unstyled: unstyled,
11031
11219
  style,
11032
11220
  children: [
11033
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
11221
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
11034
11222
  IconButton,
11035
11223
  {
11036
11224
  "data-wui-popover-close": true,
11037
11225
  label: "Close",
11038
11226
  variant: "ghost",
11039
- children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Icon, { type: "close" })
11227
+ children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { type: "close" })
11040
11228
  }
11041
11229
  ) }),
11042
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)("div", { children })
11230
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)("div", { children })
11043
11231
  ]
11044
11232
  }
11045
11233
  ) })
@@ -11048,11 +11236,11 @@ var Popover = ({
11048
11236
  Popover.displayName = "Popover";
11049
11237
 
11050
11238
  // src/components/ProgressBar/ProgressBar.tsx
11051
- var import_styled_components67 = __toESM(require("styled-components"));
11239
+ var import_styled_components68 = __toESM(require("styled-components"));
11052
11240
  var import_react_progress = require("@radix-ui/react-progress");
11053
- var import_type_guards43 = require("@wistia/type-guards");
11054
- var import_jsx_runtime246 = require("react/jsx-runtime");
11055
- var ProgressBarWrapper = import_styled_components67.default.div`
11241
+ var import_type_guards44 = require("@wistia/type-guards");
11242
+ var import_jsx_runtime247 = require("react/jsx-runtime");
11243
+ var ProgressBarWrapper = import_styled_components68.default.div`
11056
11244
  --progress-bar-height: 8px;
11057
11245
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
11058
11246
  --progress-bar-background-color: var(--wui-color-bg-surface-secondary);
@@ -11068,7 +11256,7 @@ var getTranslateValue = (progress, max) => {
11068
11256
  const progressPercentage = progress / max * 100;
11069
11257
  return `translateX(-${100 - progressPercentage}%)`;
11070
11258
  };
11071
- var ProgressBarLabel = import_styled_components67.default.div`
11259
+ var ProgressBarLabel = import_styled_components68.default.div`
11072
11260
  display: flex;
11073
11261
  line-height: var(--wui-typography-label-3-line-height);
11074
11262
  font-size: var(--wui-typography-label-3-size);
@@ -11076,7 +11264,7 @@ var ProgressBarLabel = import_styled_components67.default.div`
11076
11264
  color: var(--wui-color-text-secondary);
11077
11265
  flex-shrink: 0;
11078
11266
  `;
11079
- var StyledProgressIndicator = (0, import_styled_components67.default)(import_react_progress.Indicator)`
11267
+ var StyledProgressIndicator = (0, import_styled_components68.default)(import_react_progress.Indicator)`
11080
11268
  background-color: var(--progress-bar-indicator-color);
11081
11269
  width: 100%;
11082
11270
  height: 100%;
@@ -11085,7 +11273,7 @@ var StyledProgressIndicator = (0, import_styled_components67.default)(import_rea
11085
11273
  transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
11086
11274
  transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
11087
11275
  `;
11088
- var StyledProgressBar = (0, import_styled_components67.default)(import_react_progress.Root)`
11276
+ var StyledProgressBar = (0, import_styled_components68.default)(import_react_progress.Root)`
11089
11277
  position: relative;
11090
11278
  overflow: hidden;
11091
11279
  background: var(--progress-bar-background-color);
@@ -11104,15 +11292,15 @@ var ProgressBar = ({
11104
11292
  labelRight,
11105
11293
  ...props
11106
11294
  }) => {
11107
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(ProgressBarWrapper, { children: [
11108
- (0, import_type_guards43.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
11109
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
11295
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(ProgressBarWrapper, { children: [
11296
+ (0, import_type_guards44.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
11297
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11110
11298
  StyledProgressBar,
11111
11299
  {
11112
11300
  max,
11113
11301
  value: progress,
11114
11302
  ...props,
11115
- children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
11303
+ children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11116
11304
  StyledProgressIndicator,
11117
11305
  {
11118
11306
  $max: max,
@@ -11121,17 +11309,17 @@ var ProgressBar = ({
11121
11309
  )
11122
11310
  }
11123
11311
  ),
11124
- (0, import_type_guards43.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(ProgressBarLabel, { children: labelRight }) : null
11312
+ (0, import_type_guards44.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(ProgressBarLabel, { children: labelRight }) : null
11125
11313
  ] });
11126
11314
  };
11127
11315
  ProgressBar.displayName = "ProgressBar";
11128
11316
 
11129
11317
  // src/components/Radio/Radio.tsx
11130
11318
  var import_react55 = require("react");
11131
- var import_styled_components68 = __toESM(require("styled-components"));
11132
- var import_type_guards44 = require("@wistia/type-guards");
11133
- var import_jsx_runtime247 = require("react/jsx-runtime");
11134
- var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11319
+ var import_styled_components69 = __toESM(require("styled-components"));
11320
+ var import_type_guards45 = require("@wistia/type-guards");
11321
+ var import_jsx_runtime248 = require("react/jsx-runtime");
11322
+ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11135
11323
  "svg",
11136
11324
  {
11137
11325
  fill: "inherit",
@@ -11139,7 +11327,7 @@ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11139
11327
  viewBox: "0 0 1 1",
11140
11328
  width: "1",
11141
11329
  xmlns: "http://www.w3.org/2000/svg",
11142
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11330
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11143
11331
  "circle",
11144
11332
  {
11145
11333
  cx: "0.5",
@@ -11150,7 +11338,7 @@ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11150
11338
  )
11151
11339
  }
11152
11340
  );
11153
- var sizeSmall2 = import_styled_components68.css`
11341
+ var sizeSmall2 = import_styled_components69.css`
11154
11342
  width: 14px;
11155
11343
  height: 14px;
11156
11344
  min-width: 14px;
@@ -11161,7 +11349,7 @@ var sizeSmall2 = import_styled_components68.css`
11161
11349
  height: 7px;
11162
11350
  }
11163
11351
  `;
11164
- var sizeMedium2 = import_styled_components68.css`
11352
+ var sizeMedium2 = import_styled_components69.css`
11165
11353
  width: 16px;
11166
11354
  height: 16px;
11167
11355
  min-width: 16px;
@@ -11172,7 +11360,7 @@ var sizeMedium2 = import_styled_components68.css`
11172
11360
  height: 8px;
11173
11361
  }
11174
11362
  `;
11175
- var sizeLarge2 = import_styled_components68.css`
11363
+ var sizeLarge2 = import_styled_components69.css`
11176
11364
  width: 20px;
11177
11365
  height: 20px;
11178
11366
  min-width: 20px;
@@ -11188,14 +11376,14 @@ var getSizeCss2 = (size) => {
11188
11376
  if (size === "lg") return sizeLarge2;
11189
11377
  return sizeMedium2;
11190
11378
  };
11191
- var StyledRadioWrapper = import_styled_components68.default.div`
11379
+ var StyledRadioWrapper = import_styled_components69.default.div`
11192
11380
  display: flex;
11193
11381
  margin: 0;
11194
11382
 
11195
11383
  /* TODO this solves a problem but potentially causes and a11y issue */
11196
11384
  user-select: none;
11197
11385
  `;
11198
- var StyledRadioInput = import_styled_components68.default.div`
11386
+ var StyledRadioInput = import_styled_components69.default.div`
11199
11387
  ${({ $size }) => getSizeCss2($size)}
11200
11388
  line-height: 0;
11201
11389
  margin: 0;
@@ -11217,7 +11405,7 @@ var StyledRadioInput = import_styled_components68.default.div`
11217
11405
  }
11218
11406
  }
11219
11407
  `;
11220
- var StyledHiddenRadioInput = import_styled_components68.default.input`
11408
+ var StyledHiddenRadioInput = import_styled_components69.default.input`
11221
11409
  ${visuallyHiddenStyle}
11222
11410
 
11223
11411
  /* toggles display of faux-input border-color */
@@ -11246,14 +11434,14 @@ var Radio = (0, import_react55.forwardRef)(
11246
11434
  ...props
11247
11435
  }, ref) => {
11248
11436
  const generatedId = (0, import_react55.useId)();
11249
- const computedId = (0, import_type_guards44.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11250
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
11437
+ const computedId = (0, import_type_guards45.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11438
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
11251
11439
  StyledRadioWrapper,
11252
11440
  {
11253
11441
  $disabled: disabled,
11254
11442
  "aria-invalid": props["aria-invalid"],
11255
11443
  children: [
11256
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11444
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11257
11445
  StyledHiddenRadioInput,
11258
11446
  {
11259
11447
  ...props,
@@ -11268,16 +11456,16 @@ var Radio = (0, import_react55.forwardRef)(
11268
11456
  value
11269
11457
  }
11270
11458
  ),
11271
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11459
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11272
11460
  FormControlLabel,
11273
11461
  {
11274
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11462
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11275
11463
  StyledRadioInput,
11276
11464
  {
11277
11465
  $disabled: disabled,
11278
11466
  $size: size,
11279
11467
  "data-wui-faux-input": "true",
11280
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(RadioIcon, {})
11468
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(RadioIcon, {})
11281
11469
  }
11282
11470
  ),
11283
11471
  description,
@@ -11296,13 +11484,13 @@ Radio.displayName = "Radio";
11296
11484
 
11297
11485
  // src/components/SegmentedControl/SegmentedControl.tsx
11298
11486
  var import_react58 = require("react");
11299
- var import_styled_components70 = __toESM(require("styled-components"));
11487
+ var import_styled_components71 = __toESM(require("styled-components"));
11300
11488
  var import_react_toggle_group = require("@radix-ui/react-toggle-group");
11301
- var import_type_guards45 = require("@wistia/type-guards");
11489
+ var import_type_guards46 = require("@wistia/type-guards");
11302
11490
 
11303
11491
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11304
11492
  var import_react56 = require("react");
11305
- var import_jsx_runtime248 = require("react/jsx-runtime");
11493
+ var import_jsx_runtime249 = require("react/jsx-runtime");
11306
11494
  var SelectedItemStyleContext = (0, import_react56.createContext)(null);
11307
11495
  var SelectedItemStyleProvider = ({
11308
11496
  children
@@ -11325,7 +11513,7 @@ var SelectedItemStyleProvider = ({
11325
11513
  }),
11326
11514
  [selectedItemIndicatorStyle]
11327
11515
  );
11328
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
11516
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
11329
11517
  };
11330
11518
  var useSelectedItemStyle = () => {
11331
11519
  const context = (0, import_react56.useContext)(SelectedItemStyleContext);
@@ -11336,7 +11524,7 @@ var useSelectedItemStyle = () => {
11336
11524
  };
11337
11525
 
11338
11526
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11339
- var import_styled_components69 = __toESM(require("styled-components"));
11527
+ var import_styled_components70 = __toESM(require("styled-components"));
11340
11528
 
11341
11529
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11342
11530
  var import_react57 = require("react");
@@ -11351,8 +11539,8 @@ var useSegmentedControlValue = () => {
11351
11539
  };
11352
11540
 
11353
11541
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11354
- var import_jsx_runtime249 = require("react/jsx-runtime");
11355
- var SelectedItemIndicatorDiv = import_styled_components69.default.div`
11542
+ var import_jsx_runtime250 = require("react/jsx-runtime");
11543
+ var SelectedItemIndicatorDiv = import_styled_components70.default.div`
11356
11544
  background-color: var(--wui-color-bg-fill-white);
11357
11545
  border-radius: var(--wui-border-radius-rounded);
11358
11546
  left: 0;
@@ -11370,12 +11558,12 @@ var SelectedItemIndicator = () => {
11370
11558
  if (!selectedValue) {
11371
11559
  return null;
11372
11560
  }
11373
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11561
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11374
11562
  };
11375
11563
 
11376
11564
  // src/components/SegmentedControl/SegmentedControl.tsx
11377
- var import_jsx_runtime250 = require("react/jsx-runtime");
11378
- var segmentedControlStyles = import_styled_components70.css`
11565
+ var import_jsx_runtime251 = require("react/jsx-runtime");
11566
+ var segmentedControlStyles = import_styled_components71.css`
11379
11567
  display: inline-flex;
11380
11568
  background-color: var(--wui-color-bg-surface-secondary);
11381
11569
  border-radius: var(--wui-border-radius-rounded);
@@ -11386,7 +11574,7 @@ var segmentedControlStyles = import_styled_components70.css`
11386
11574
  position: relative;
11387
11575
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11388
11576
  `;
11389
- var StyledSegmentedControl = (0, import_styled_components70.default)(import_react_toggle_group.Root)`
11577
+ var StyledSegmentedControl = (0, import_styled_components71.default)(import_react_toggle_group.Root)`
11390
11578
  ${segmentedControlStyles}
11391
11579
  `;
11392
11580
  var SegmentedControl = (0, import_react58.forwardRef)(
@@ -11398,10 +11586,10 @@ var SegmentedControl = (0, import_react58.forwardRef)(
11398
11586
  onSelectedValueChange,
11399
11587
  ...props
11400
11588
  }, ref) => {
11401
- if ((0, import_type_guards45.isNil)(children)) {
11589
+ if ((0, import_type_guards46.isNil)(children)) {
11402
11590
  return null;
11403
11591
  }
11404
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
11592
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11405
11593
  StyledSegmentedControl,
11406
11594
  {
11407
11595
  ref,
@@ -11413,8 +11601,8 @@ var SegmentedControl = (0, import_react58.forwardRef)(
11413
11601
  type: "single",
11414
11602
  value: selectedValue,
11415
11603
  ...props,
11416
- children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(SelectedItemStyleProvider, { children: [
11417
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(SelectedItemIndicator, {}),
11604
+ children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(SelectedItemStyleProvider, { children: [
11605
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(SelectedItemIndicator, {}),
11418
11606
  children
11419
11607
  ] }) })
11420
11608
  }
@@ -11425,11 +11613,11 @@ SegmentedControl.displayName = "SegmentedControl";
11425
11613
 
11426
11614
  // src/components/SegmentedControl/SegmentedControlItem.tsx
11427
11615
  var import_react59 = require("react");
11428
- var import_styled_components71 = __toESM(require("styled-components"));
11616
+ var import_styled_components72 = __toESM(require("styled-components"));
11429
11617
  var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
11430
- var import_type_guards46 = require("@wistia/type-guards");
11431
- var import_jsx_runtime251 = require("react/jsx-runtime");
11432
- var segmentedControlItemStyles = import_styled_components71.css`
11618
+ var import_type_guards47 = require("@wistia/type-guards");
11619
+ var import_jsx_runtime252 = require("react/jsx-runtime");
11620
+ var segmentedControlItemStyles = import_styled_components72.css`
11433
11621
  all: unset; /* ToggleGroupItem is a button element */
11434
11622
  align-items: center;
11435
11623
  border-radius: var(--wui-border-radius-rounded);
@@ -11489,7 +11677,7 @@ var segmentedControlItemStyles = import_styled_components71.css`
11489
11677
  }
11490
11678
  }
11491
11679
  `;
11492
- var StyledSegmentedControlItem = (0, import_styled_components71.default)(import_react_toggle_group2.Item)`
11680
+ var StyledSegmentedControlItem = (0, import_styled_components72.default)(import_react_toggle_group2.Item)`
11493
11681
  ${segmentedControlItemStyles}
11494
11682
  `;
11495
11683
  var SegmentedControlItem = (0, import_react59.forwardRef)(
@@ -11530,12 +11718,12 @@ var SegmentedControlItem = (0, import_react59.forwardRef)(
11530
11718
  resizeObserver.disconnect();
11531
11719
  };
11532
11720
  }, [selectedValue, setSelectedItemMeasurements, value]);
11533
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
11721
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
11534
11722
  StyledSegmentedControlItem,
11535
11723
  {
11536
11724
  ref: combinedRef,
11537
- $hasLabel: (0, import_type_guards46.isNotNil)(label),
11538
- "aria-label": (0, import_type_guards46.isNotNil)(label) ? void 0 : ariaLabel,
11725
+ $hasLabel: (0, import_type_guards47.isNotNil)(label),
11726
+ "aria-label": (0, import_type_guards47.isNotNil)(label) ? void 0 : ariaLabel,
11539
11727
  disabled,
11540
11728
  onClick: handleClick,
11541
11729
  value,
@@ -11552,9 +11740,9 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
11552
11740
  // src/components/Select/Select.tsx
11553
11741
  var import_react_select = require("@radix-ui/react-select");
11554
11742
  var import_react60 = require("react");
11555
- var import_styled_components72 = __toESM(require("styled-components"));
11556
- var import_jsx_runtime252 = require("react/jsx-runtime");
11557
- var StyledTrigger = (0, import_styled_components72.default)(import_react_select.Trigger)`
11743
+ var import_styled_components73 = __toESM(require("styled-components"));
11744
+ var import_jsx_runtime253 = require("react/jsx-runtime");
11745
+ var StyledTrigger = (0, import_styled_components73.default)(import_react_select.Trigger)`
11558
11746
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11559
11747
  ${inputCssVariables};
11560
11748
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
@@ -11598,7 +11786,7 @@ var StyledTrigger = (0, import_styled_components72.default)(import_react_select.
11598
11786
  color: var(--wui-input-placeholder);
11599
11787
  }
11600
11788
  `;
11601
- var StyledContent3 = (0, import_styled_components72.default)(import_react_select.Content)`
11789
+ var StyledContent3 = (0, import_styled_components73.default)(import_react_select.Content)`
11602
11790
  --wui-select-content-border: var(--wui-color-border);
11603
11791
  --wui-select-content-bg: var(--wui-color-bg-surface);
11604
11792
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -11626,13 +11814,13 @@ var Select = (0, import_react60.forwardRef)(
11626
11814
  ...props
11627
11815
  }, forwardedRef) => {
11628
11816
  const responsiveFullWidth = useResponsiveProp(fullWidth);
11629
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
11817
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
11630
11818
  import_react_select.Root,
11631
11819
  {
11632
11820
  ...props,
11633
11821
  onValueChange: onChange,
11634
11822
  children: [
11635
- /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
11823
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
11636
11824
  StyledTrigger,
11637
11825
  {
11638
11826
  ref: forwardedRef,
@@ -11640,8 +11828,8 @@ var Select = (0, import_react60.forwardRef)(
11640
11828
  $fullWidth: responsiveFullWidth,
11641
11829
  ...props,
11642
11830
  children: [
11643
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.Value, { placeholder }),
11644
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
11831
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.Value, { placeholder }),
11832
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
11645
11833
  Icon,
11646
11834
  {
11647
11835
  size: "md",
@@ -11651,10 +11839,10 @@ var Select = (0, import_react60.forwardRef)(
11651
11839
  ]
11652
11840
  }
11653
11841
  ),
11654
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(StyledContent3, { position: "popper", children: [
11655
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon, { type: "caret-up" }) }),
11656
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.Viewport, { children }),
11657
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon, { type: "caret-down" }) })
11842
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(StyledContent3, { position: "popper", children: [
11843
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Icon, { type: "caret-up" }) }),
11844
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.Viewport, { children }),
11845
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Icon, { type: "caret-down" }) })
11658
11846
  ] }) })
11659
11847
  ]
11660
11848
  }
@@ -11666,10 +11854,10 @@ Select.displayName = "Select";
11666
11854
  // src/components/Select/SelectOption.tsx
11667
11855
  var import_react_select2 = require("@radix-ui/react-select");
11668
11856
  var import_react61 = require("react");
11669
- var import_styled_components73 = __toESM(require("styled-components"));
11670
- var import_type_guards47 = require("@wistia/type-guards");
11671
- var import_jsx_runtime253 = require("react/jsx-runtime");
11672
- var StyledItem = (0, import_styled_components73.default)(import_react_select2.Item)`
11857
+ var import_styled_components74 = __toESM(require("styled-components"));
11858
+ var import_type_guards48 = require("@wistia/type-guards");
11859
+ var import_jsx_runtime254 = require("react/jsx-runtime");
11860
+ var StyledItem = (0, import_styled_components74.default)(import_react_select2.Item)`
11673
11861
  ${variantStyleMap2.body3};
11674
11862
  display: flex;
11675
11863
  padding: var(--wui-select-option-padding);
@@ -11693,28 +11881,28 @@ var StyledItem = (0, import_styled_components73.default)(import_react_select2.It
11693
11881
  background-color: transparent;
11694
11882
  }
11695
11883
  `;
11696
- var StyledIconContainer = import_styled_components73.default.span`
11884
+ var StyledIconContainer = import_styled_components74.default.span`
11697
11885
  width: 12px;
11698
11886
  `;
11699
11887
  var SelectOption = (0, import_react61.forwardRef)(
11700
11888
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11701
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
11889
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
11702
11890
  StyledItem,
11703
11891
  {
11704
11892
  ...props,
11705
11893
  ref: forwardedRef,
11706
11894
  children: [
11707
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
11895
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
11708
11896
  Icon,
11709
11897
  {
11710
11898
  size: "sm",
11711
11899
  type: "checkmark"
11712
11900
  }
11713
11901
  ) }) }),
11714
- (0, import_type_guards47.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)("div", { children: [
11902
+ (0, import_type_guards48.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)("div", { children: [
11715
11903
  children,
11716
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
11717
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select2.ItemText, { children })
11904
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
11905
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(import_react_select2.ItemText, { children })
11718
11906
  ]
11719
11907
  }
11720
11908
  );
@@ -11724,14 +11912,14 @@ SelectOption.displayName = "SelectOption";
11724
11912
 
11725
11913
  // src/components/Select/SelectOptionGroup.tsx
11726
11914
  var import_react_select3 = require("@radix-ui/react-select");
11727
- var import_styled_components74 = __toESM(require("styled-components"));
11728
- var import_jsx_runtime254 = require("react/jsx-runtime");
11729
- var StyledLabel4 = (0, import_styled_components74.default)(import_react_select3.Label)`
11915
+ var import_styled_components75 = __toESM(require("styled-components"));
11916
+ var import_jsx_runtime255 = require("react/jsx-runtime");
11917
+ var StyledLabel4 = (0, import_styled_components75.default)(import_react_select3.Label)`
11730
11918
  padding: var(--wui-select-option-padding);
11731
11919
  `;
11732
11920
  var SelectOptionGroup = ({ children, label, ...props }) => {
11733
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(import_react_select3.Group, { ...props, children: [
11734
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
11921
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_react_select3.Group, { ...props, children: [
11922
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
11735
11923
  Text,
11736
11924
  {
11737
11925
  prominence: "secondary",
@@ -11745,10 +11933,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11745
11933
 
11746
11934
  // src/components/Switch/Switch.tsx
11747
11935
  var import_react62 = require("react");
11748
- var import_styled_components75 = __toESM(require("styled-components"));
11749
- var import_type_guards48 = require("@wistia/type-guards");
11750
- var import_jsx_runtime255 = require("react/jsx-runtime");
11751
- var sizeSmall3 = import_styled_components75.css`
11936
+ var import_styled_components76 = __toESM(require("styled-components"));
11937
+ var import_type_guards49 = require("@wistia/type-guards");
11938
+ var import_jsx_runtime256 = require("react/jsx-runtime");
11939
+ var sizeSmall3 = import_styled_components76.css`
11752
11940
  --wui-size-small-width: 24px;
11753
11941
  --wui-size-small-height: 14px;
11754
11942
 
@@ -11763,7 +11951,7 @@ var sizeSmall3 = import_styled_components75.css`
11763
11951
  height: calc(var(--wui-size-small-width) / 2);
11764
11952
  }
11765
11953
  `;
11766
- var sizeMedium3 = import_styled_components75.css`
11954
+ var sizeMedium3 = import_styled_components76.css`
11767
11955
  --wui-size-medium-width: 32px;
11768
11956
  --wui-size-medium-height: 18px;
11769
11957
 
@@ -11778,7 +11966,7 @@ var sizeMedium3 = import_styled_components75.css`
11778
11966
  height: calc(var(--wui-size-medium-width) / 2);
11779
11967
  }
11780
11968
  `;
11781
- var sizeLarge3 = import_styled_components75.css`
11969
+ var sizeLarge3 = import_styled_components76.css`
11782
11970
  --wui-size-large-width: 40px;
11783
11971
  --wui-size-large-height: 22px;
11784
11972
 
@@ -11798,14 +11986,14 @@ var getSizeCss3 = (size) => {
11798
11986
  if (size === "lg") return sizeLarge3;
11799
11987
  return sizeMedium3;
11800
11988
  };
11801
- var StyledSwitchWrapper = import_styled_components75.default.div`
11989
+ var StyledSwitchWrapper = import_styled_components76.default.div`
11802
11990
  display: flex;
11803
11991
  margin: 0;
11804
11992
 
11805
11993
  /* TODO this solves a problem but potentially causes and a11y issue */
11806
11994
  user-select: none;
11807
11995
  `;
11808
- var StyledSwitchInput = import_styled_components75.default.div`
11996
+ var StyledSwitchInput = import_styled_components76.default.div`
11809
11997
  ${({ $size }) => getSizeCss3($size)}
11810
11998
  line-height: 0;
11811
11999
  margin: 0;
@@ -11833,7 +12021,7 @@ var StyledSwitchInput = import_styled_components75.default.div`
11833
12021
  transition: all 0.2s ease-in-out;
11834
12022
  }
11835
12023
  `;
11836
- var StyledHiddenSwitchInput = import_styled_components75.default.input`
12024
+ var StyledHiddenSwitchInput = import_styled_components76.default.input`
11837
12025
  ${visuallyHiddenStyle}
11838
12026
 
11839
12027
  /* toggles display of faux-input background-color and toggle position */
@@ -11865,9 +12053,9 @@ var Switch = (0, import_react62.forwardRef)(
11865
12053
  ...props
11866
12054
  }, ref) => {
11867
12055
  const generatedId = (0, import_react62.useId)();
11868
- const computedId = (0, import_type_guards48.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
11869
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
11870
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
12056
+ const computedId = (0, import_type_guards49.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
12057
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
12058
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11871
12059
  StyledHiddenSwitchInput,
11872
12060
  {
11873
12061
  ...props,
@@ -11882,10 +12070,10 @@ var Switch = (0, import_react62.forwardRef)(
11882
12070
  value
11883
12071
  }
11884
12072
  ),
11885
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
12073
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11886
12074
  FormControlLabel,
11887
12075
  {
11888
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
12076
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11889
12077
  StyledSwitchInput,
11890
12078
  {
11891
12079
  $disabled: disabled,
@@ -11907,25 +12095,25 @@ var Switch = (0, import_react62.forwardRef)(
11907
12095
  Switch.displayName = "Switch";
11908
12096
 
11909
12097
  // src/components/Table/Table.tsx
11910
- var import_styled_components76 = __toESM(require("styled-components"));
11911
- var import_jsx_runtime256 = require("react/jsx-runtime");
11912
- var StyledTable = import_styled_components76.default.table`
12098
+ var import_styled_components77 = __toESM(require("styled-components"));
12099
+ var import_jsx_runtime257 = require("react/jsx-runtime");
12100
+ var StyledTable = import_styled_components77.default.table`
11913
12101
  width: 100%;
11914
12102
  border-collapse: collapse;
11915
12103
 
11916
- ${({ $divided }) => $divided && import_styled_components76.css`
12104
+ ${({ $divided }) => $divided && import_styled_components77.css`
11917
12105
  tr {
11918
12106
  border-bottom: 1px solid var(--wui-color-border);
11919
12107
  }
11920
12108
  `}
11921
12109
 
11922
- ${({ $striped }) => $striped && import_styled_components76.css`
12110
+ ${({ $striped }) => $striped && import_styled_components77.css`
11923
12111
  tbody tr:nth-child(even) {
11924
12112
  background-color: var(--wui-color-bg-surface-secondary);
11925
12113
  }
11926
12114
  `}
11927
12115
 
11928
- ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && import_styled_components76.css`
12116
+ ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && import_styled_components77.css`
11929
12117
  thead {
11930
12118
  ${visuallyHiddenStyle}
11931
12119
  }
@@ -11938,7 +12126,7 @@ var Table = ({
11938
12126
  visuallyHiddenHeader = false,
11939
12127
  ...props
11940
12128
  }) => {
11941
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
12129
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
11942
12130
  StyledTable,
11943
12131
  {
11944
12132
  $divided: divided,
@@ -11951,35 +12139,35 @@ var Table = ({
11951
12139
  };
11952
12140
 
11953
12141
  // src/components/Table/TableBody.tsx
11954
- var import_styled_components77 = __toESM(require("styled-components"));
12142
+ var import_styled_components78 = __toESM(require("styled-components"));
11955
12143
 
11956
12144
  // src/components/Table/TableSectionContext.ts
11957
12145
  var import_react63 = require("react");
11958
12146
  var TableSectionContext = (0, import_react63.createContext)(null);
11959
12147
 
11960
12148
  // src/components/Table/TableBody.tsx
11961
- var import_jsx_runtime257 = require("react/jsx-runtime");
11962
- var StyledTableBody = import_styled_components77.default.tbody``;
12149
+ var import_jsx_runtime258 = require("react/jsx-runtime");
12150
+ var StyledTableBody = import_styled_components78.default.tbody``;
11963
12151
  var TableBody = ({ children, ...props }) => {
11964
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledTableBody, { ...props, children }) });
12152
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StyledTableBody, { ...props, children }) });
11965
12153
  };
11966
12154
 
11967
12155
  // src/components/Table/TableCell.tsx
11968
12156
  var import_react64 = require("react");
11969
- var import_styled_components78 = __toESM(require("styled-components"));
11970
- var import_jsx_runtime258 = require("react/jsx-runtime");
11971
- var sharedStyles = import_styled_components78.css`
12157
+ var import_styled_components79 = __toESM(require("styled-components"));
12158
+ var import_jsx_runtime259 = require("react/jsx-runtime");
12159
+ var sharedStyles = import_styled_components79.css`
11972
12160
  color: var(--wui-color-text);
11973
12161
  padding: var(--wui-space-02);
11974
12162
  text-align: left;
11975
12163
  `;
11976
- var StyledTh = import_styled_components78.default.th`
12164
+ var StyledTh = import_styled_components79.default.th`
11977
12165
  ${sharedStyles}
11978
12166
  font-size: var(--wui-typography-body-4-size);
11979
12167
  font-weight: var(--wui-typography-weight-label-bold);
11980
12168
  line-height: var(--wui-typography-body-4-line-height);
11981
12169
  `;
11982
- var StyledTd = import_styled_components78.default.td`
12170
+ var StyledTd = import_styled_components79.default.td`
11983
12171
  ${sharedStyles}
11984
12172
  font-size: var(--wui-typography-body-2-size);
11985
12173
  font-weight: var(--wui-typography-body-2-weight);
@@ -11988,51 +12176,51 @@ var StyledTd = import_styled_components78.default.td`
11988
12176
  var TableCell = ({ children, ...props }) => {
11989
12177
  const section = (0, import_react64.useContext)(TableSectionContext);
11990
12178
  if (section === "head") {
11991
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StyledTh, { ...props, children });
12179
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StyledTh, { ...props, children });
11992
12180
  }
11993
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StyledTd, { ...props, children });
12181
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StyledTd, { ...props, children });
11994
12182
  };
11995
12183
 
11996
12184
  // src/components/Table/TableFoot.tsx
11997
- var import_styled_components79 = __toESM(require("styled-components"));
11998
- var import_jsx_runtime259 = require("react/jsx-runtime");
11999
- var StyledTableFoot = import_styled_components79.default.tfoot``;
12185
+ var import_styled_components80 = __toESM(require("styled-components"));
12186
+ var import_jsx_runtime260 = require("react/jsx-runtime");
12187
+ var StyledTableFoot = import_styled_components80.default.tfoot``;
12000
12188
  var TableFoot = ({ children, ...props }) => {
12001
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StyledTableFoot, { ...props, children }) });
12189
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StyledTableFoot, { ...props, children }) });
12002
12190
  };
12003
12191
 
12004
12192
  // src/components/Table/TableHead.tsx
12005
- var import_styled_components80 = __toESM(require("styled-components"));
12006
- var import_jsx_runtime260 = require("react/jsx-runtime");
12007
- var StyledThead = import_styled_components80.default.thead``;
12193
+ var import_styled_components81 = __toESM(require("styled-components"));
12194
+ var import_jsx_runtime261 = require("react/jsx-runtime");
12195
+ var StyledThead = import_styled_components81.default.thead``;
12008
12196
  var TableHead = ({ children, ...props }) => {
12009
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StyledThead, { ...props, children }) });
12197
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(StyledThead, { ...props, children }) });
12010
12198
  };
12011
12199
 
12012
12200
  // src/components/Table/TableRow.tsx
12013
- var import_styled_components81 = __toESM(require("styled-components"));
12014
- var import_jsx_runtime261 = require("react/jsx-runtime");
12015
- var StyledTableRow = import_styled_components81.default.tr``;
12201
+ var import_styled_components82 = __toESM(require("styled-components"));
12202
+ var import_jsx_runtime262 = require("react/jsx-runtime");
12203
+ var StyledTableRow = import_styled_components82.default.tr``;
12016
12204
  var TableRow = ({ children, ...props }) => {
12017
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(StyledTableRow, { ...props, children });
12205
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(StyledTableRow, { ...props, children });
12018
12206
  };
12019
12207
 
12020
12208
  // src/components/Tabs/Tabs.tsx
12021
12209
  var import_react68 = require("react");
12022
12210
  var import_react_tabs4 = require("@radix-ui/react-tabs");
12023
- var import_type_guards50 = require("@wistia/type-guards");
12024
- var import_styled_components86 = __toESM(require("styled-components"));
12211
+ var import_type_guards51 = require("@wistia/type-guards");
12212
+ var import_styled_components87 = __toESM(require("styled-components"));
12025
12213
 
12026
12214
  // src/components/Tabs/TabPanel.tsx
12027
- var import_styled_components82 = __toESM(require("styled-components"));
12215
+ var import_styled_components83 = __toESM(require("styled-components"));
12028
12216
  var import_react_tabs = require("@radix-ui/react-tabs");
12029
- var import_jsx_runtime262 = require("react/jsx-runtime");
12030
- var StyledTabPanel = (0, import_styled_components82.default)(import_react_tabs.Content)`
12217
+ var import_jsx_runtime263 = require("react/jsx-runtime");
12218
+ var StyledTabPanel = (0, import_styled_components83.default)(import_react_tabs.Content)`
12031
12219
  display: flex;
12032
12220
  flex-direction: column;
12033
12221
  `;
12034
12222
  var TabPanel = ({ children, value, ...props }) => {
12035
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
12223
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
12036
12224
  StyledTabPanel,
12037
12225
  {
12038
12226
  value,
@@ -12044,10 +12232,10 @@ var TabPanel = ({ children, value, ...props }) => {
12044
12232
  TabPanel.displayName = "TabPanel";
12045
12233
 
12046
12234
  // src/components/Tabs/TabList.tsx
12047
- var import_styled_components83 = __toESM(require("styled-components"));
12235
+ var import_styled_components84 = __toESM(require("styled-components"));
12048
12236
  var import_react_tabs2 = require("@radix-ui/react-tabs");
12049
- var import_jsx_runtime263 = require("react/jsx-runtime");
12050
- var StyledTabList = (0, import_styled_components83.default)(import_react_tabs2.List)`
12237
+ var import_jsx_runtime264 = require("react/jsx-runtime");
12238
+ var StyledTabList = (0, import_styled_components84.default)(import_react_tabs2.List)`
12051
12239
  ${segmentedControlStyles}
12052
12240
 
12053
12241
  margin-bottom: var(--wui-space-04);
@@ -12060,7 +12248,7 @@ var TabList = ({
12060
12248
  ariaLabel,
12061
12249
  ...props
12062
12250
  }) => {
12063
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
12251
+ return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
12064
12252
  StyledTabList,
12065
12253
  {
12066
12254
  $fullWidth: fullWidth,
@@ -12074,9 +12262,9 @@ TabList.displayName = "TabList";
12074
12262
 
12075
12263
  // src/components/Tabs/TabItem.tsx
12076
12264
  var import_react66 = require("react");
12077
- var import_styled_components84 = __toESM(require("styled-components"));
12265
+ var import_styled_components85 = __toESM(require("styled-components"));
12078
12266
  var import_react_tabs3 = require("@radix-ui/react-tabs");
12079
- var import_type_guards49 = require("@wistia/type-guards");
12267
+ var import_type_guards50 = require("@wistia/type-guards");
12080
12268
 
12081
12269
  // src/components/Tabs/useTabsValue.tsx
12082
12270
  var import_react65 = require("react");
@@ -12091,8 +12279,8 @@ var useTabsValue = () => {
12091
12279
  };
12092
12280
 
12093
12281
  // src/components/Tabs/TabItem.tsx
12094
- var import_jsx_runtime264 = require("react/jsx-runtime");
12095
- var StyledTabItem = (0, import_styled_components84.default)(import_react_tabs3.Trigger)`
12282
+ var import_jsx_runtime265 = require("react/jsx-runtime");
12283
+ var StyledTabItem = (0, import_styled_components85.default)(import_react_tabs3.Trigger)`
12096
12284
  ${segmentedControlItemStyles}
12097
12285
 
12098
12286
  &:focus-visible {
@@ -12130,12 +12318,12 @@ var TabItem = (0, import_react66.forwardRef)(
12130
12318
  resizeObserver.disconnect();
12131
12319
  };
12132
12320
  }, [selectedValue, setSelectedItemMeasurements, value]);
12133
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
12321
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
12134
12322
  StyledTabItem,
12135
12323
  {
12136
12324
  ref: combinedRef,
12137
- $hasLabel: (0, import_type_guards49.isNotNil)(label),
12138
- "aria-label": (0, import_type_guards49.isNotNil)(label) ? void 0 : ariaLabel,
12325
+ $hasLabel: (0, import_type_guards50.isNotNil)(label),
12326
+ "aria-label": (0, import_type_guards50.isNotNil)(label) ? void 0 : ariaLabel,
12139
12327
  disabled,
12140
12328
  value,
12141
12329
  children: [
@@ -12171,9 +12359,9 @@ var extractTabItems = (children) => {
12171
12359
  };
12172
12360
 
12173
12361
  // src/components/Tabs/SelectedItemIndicator.tsx
12174
- var import_styled_components85 = __toESM(require("styled-components"));
12175
- var import_jsx_runtime265 = require("react/jsx-runtime");
12176
- var TabsSelectedItemIndicatorDiv = (0, import_styled_components85.default)(SelectedItemIndicatorDiv)`
12362
+ var import_styled_components86 = __toESM(require("styled-components"));
12363
+ var import_jsx_runtime266 = require("react/jsx-runtime");
12364
+ var TabsSelectedItemIndicatorDiv = (0, import_styled_components86.default)(SelectedItemIndicatorDiv)`
12177
12365
  &:has(~ ${StyledTabItem}:focus-visible) {
12178
12366
  outline: 2px solid var(--wui-color-focus-ring);
12179
12367
  }
@@ -12184,23 +12372,23 @@ var SelectedItemIndicator2 = () => {
12184
12372
  if (selectedValue == null) {
12185
12373
  return null;
12186
12374
  }
12187
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12375
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12188
12376
  };
12189
12377
 
12190
12378
  // src/components/Tabs/Tabs.tsx
12191
- var import_jsx_runtime266 = require("react/jsx-runtime");
12192
- var TabsContainer = import_styled_components86.default.div`
12379
+ var import_jsx_runtime267 = require("react/jsx-runtime");
12380
+ var TabsContainer = import_styled_components87.default.div`
12193
12381
  display: flex;
12194
12382
  flex-direction: column;
12195
12383
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12196
12384
  overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12197
12385
  `;
12198
- var StickyTabContent = import_styled_components86.default.div`
12386
+ var StickyTabContent = import_styled_components87.default.div`
12199
12387
  flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
12200
12388
  overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
12201
12389
  overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12202
12390
  `;
12203
- var StyledTabsRoot = (0, import_styled_components86.default)(import_react_tabs4.Root)`
12391
+ var StyledTabsRoot = (0, import_styled_components87.default)(import_react_tabs4.Root)`
12204
12392
  display: flex;
12205
12393
  flex-direction: column;
12206
12394
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
@@ -12223,7 +12411,7 @@ var Tabs = (0, import_react68.forwardRef)(
12223
12411
  onValueChange: setInternalSelectedValue
12224
12412
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
12225
12413
  const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
12226
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12414
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12227
12415
  StyledTabsRoot,
12228
12416
  {
12229
12417
  ref,
@@ -12231,14 +12419,14 @@ var Tabs = (0, import_react68.forwardRef)(
12231
12419
  activationMode: "automatic",
12232
12420
  ...props,
12233
12421
  ...modeProps,
12234
- children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(SelectedItemStyleProvider, { children: [
12235
- /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
12422
+ children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(SelectedItemStyleProvider, { children: [
12423
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
12236
12424
  TabList,
12237
12425
  {
12238
12426
  ariaLabel,
12239
12427
  fullWidth,
12240
12428
  children: [
12241
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(SelectedItemIndicator2, {}),
12429
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(SelectedItemIndicator2, {}),
12242
12430
  tabItems.map((tab) => {
12243
12431
  const {
12244
12432
  value,
@@ -12247,8 +12435,8 @@ var Tabs = (0, import_react68.forwardRef)(
12247
12435
  label,
12248
12436
  "aria-label": ariaLabelForTab
12249
12437
  } = tab.props;
12250
- if ((0, import_type_guards50.isNil)(icon)) {
12251
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12438
+ if ((0, import_type_guards51.isNil)(icon)) {
12439
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12252
12440
  TabItem,
12253
12441
  {
12254
12442
  disabled,
@@ -12258,8 +12446,8 @@ var Tabs = (0, import_react68.forwardRef)(
12258
12446
  value
12259
12447
  );
12260
12448
  }
12261
- if ((0, import_type_guards50.isNotNil)(label)) {
12262
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12449
+ if ((0, import_type_guards51.isNotNil)(label)) {
12450
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12263
12451
  TabItem,
12264
12452
  {
12265
12453
  disabled,
@@ -12270,8 +12458,8 @@ var Tabs = (0, import_react68.forwardRef)(
12270
12458
  value
12271
12459
  );
12272
12460
  }
12273
- if ((0, import_type_guards50.isNotNil)(ariaLabelForTab)) {
12274
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12461
+ if ((0, import_type_guards51.isNotNil)(ariaLabelForTab)) {
12462
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12275
12463
  TabItem,
12276
12464
  {
12277
12465
  "aria-label": ariaLabelForTab,
@@ -12287,7 +12475,7 @@ var Tabs = (0, import_react68.forwardRef)(
12287
12475
  ]
12288
12476
  }
12289
12477
  ),
12290
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12478
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12291
12479
  TabPanel,
12292
12480
  {
12293
12481
  value: tab.props.value,
@@ -12304,18 +12492,18 @@ Tabs.displayName = "Tabs";
12304
12492
 
12305
12493
  // src/components/Tabs/Tab.tsx
12306
12494
  var import_react69 = require("react");
12307
- var import_jsx_runtime267 = require("react/jsx-runtime");
12495
+ var import_jsx_runtime268 = require("react/jsx-runtime");
12308
12496
  var Tab = (0, import_react69.forwardRef)(({ children }, ref) => {
12309
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { ref, children });
12497
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("div", { ref, children });
12310
12498
  });
12311
12499
  Tab.displayName = "Tab";
12312
12500
 
12313
12501
  // src/components/Tag/Tag.tsx
12314
12502
  var import_react70 = require("react");
12315
- var import_styled_components87 = __toESM(require("styled-components"));
12316
- var import_type_guards51 = require("@wistia/type-guards");
12317
- var import_jsx_runtime268 = require("react/jsx-runtime");
12318
- var TagLabel = import_styled_components87.default.a`
12503
+ var import_styled_components88 = __toESM(require("styled-components"));
12504
+ var import_type_guards52 = require("@wistia/type-guards");
12505
+ var import_jsx_runtime269 = require("react/jsx-runtime");
12506
+ var TagLabel = import_styled_components88.default.a`
12319
12507
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12320
12508
  font-size: var(--wui-typography-label-4-size);
12321
12509
  font-weight: var(--wui-typography-label-4-weight);
@@ -12350,14 +12538,14 @@ var TagLabel = import_styled_components87.default.a`
12350
12538
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12351
12539
  }
12352
12540
  `;
12353
- var TagDivider = import_styled_components87.default.div`
12541
+ var TagDivider = import_styled_components88.default.div`
12354
12542
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12355
12543
  border-left: 1px solid var(--wui-color-border);
12356
12544
  display: flex;
12357
12545
  height: 14px;
12358
12546
  width: 1px;
12359
12547
  `;
12360
- var StyledRemoveButton = import_styled_components87.default.button`
12548
+ var StyledRemoveButton = import_styled_components88.default.button`
12361
12549
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12362
12550
  all: unset;
12363
12551
  cursor: pointer;
@@ -12385,7 +12573,7 @@ var StyledRemoveButton = import_styled_components87.default.button`
12385
12573
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12386
12574
  }
12387
12575
  `;
12388
- var StyledTag = import_styled_components87.default.div`
12576
+ var StyledTag = import_styled_components88.default.div`
12389
12577
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12390
12578
  align-items: center;
12391
12579
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12398,31 +12586,31 @@ var StyledTag = import_styled_components87.default.div`
12398
12586
  }
12399
12587
  `;
12400
12588
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12401
- if ((0, import_type_guards51.isNil)(onClickRemove)) {
12589
+ if ((0, import_type_guards52.isNil)(onClickRemove)) {
12402
12590
  return null;
12403
12591
  }
12404
- if ((0, import_type_guards51.isNil)(onClickRemoveLabel)) {
12592
+ if ((0, import_type_guards52.isNil)(onClickRemoveLabel)) {
12405
12593
  throw new Error(
12406
12594
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12407
12595
  );
12408
12596
  }
12409
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(import_jsx_runtime268.Fragment, { children: [
12410
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TagDivider, { $colorScheme: colorScheme }),
12411
- /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12597
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(import_jsx_runtime269.Fragment, { children: [
12598
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(TagDivider, { $colorScheme: colorScheme }),
12599
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12412
12600
  StyledRemoveButton,
12413
12601
  {
12414
12602
  $colorScheme: colorScheme,
12415
12603
  onClick: onClickRemove,
12416
12604
  type: "button",
12417
12605
  children: [
12418
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12606
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12419
12607
  Icon,
12420
12608
  {
12421
12609
  size: "sm",
12422
12610
  type: "close"
12423
12611
  }
12424
12612
  ),
12425
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12613
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12426
12614
  ]
12427
12615
  }
12428
12616
  )
@@ -12430,16 +12618,16 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12430
12618
  };
12431
12619
  var Tag = (0, import_react70.forwardRef)(
12432
12620
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12433
- const hasIcon = (0, import_type_guards51.isNotNil)(icon);
12434
- const labelProps = (0, import_type_guards51.isNotNil)(href) && (0, import_type_guards51.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12435
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12621
+ const hasIcon = (0, import_type_guards52.isNotNil)(icon);
12622
+ const labelProps = (0, import_type_guards52.isNotNil)(href) && (0, import_type_guards52.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12623
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12436
12624
  StyledTag,
12437
12625
  {
12438
12626
  ref,
12439
12627
  $colorScheme: colorScheme,
12440
12628
  ...props,
12441
12629
  children: [
12442
- /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12630
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12443
12631
  TagLabel,
12444
12632
  {
12445
12633
  ...labelProps,
@@ -12450,7 +12638,7 @@ var Tag = (0, import_react70.forwardRef)(
12450
12638
  ]
12451
12639
  }
12452
12640
  ),
12453
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12641
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12454
12642
  RemoveButton,
12455
12643
  {
12456
12644
  colorScheme,
@@ -12466,10 +12654,10 @@ var Tag = (0, import_react70.forwardRef)(
12466
12654
  Tag.displayName = "Tag";
12467
12655
 
12468
12656
  // src/components/Thumbnail/ThumbnailBadge.tsx
12469
- var import_styled_components88 = __toESM(require("styled-components"));
12470
- var import_type_guards52 = require("@wistia/type-guards");
12471
- var import_jsx_runtime269 = require("react/jsx-runtime");
12472
- var StyledThumbnailBadge = import_styled_components88.default.div`
12657
+ var import_styled_components89 = __toESM(require("styled-components"));
12658
+ var import_type_guards53 = require("@wistia/type-guards");
12659
+ var import_jsx_runtime270 = require("react/jsx-runtime");
12660
+ var StyledThumbnailBadge = import_styled_components89.default.div`
12473
12661
  align-items: center;
12474
12662
  background-color: rgb(0 0 0 / 50%);
12475
12663
  border-radius: var(--wui-border-radius-01);
@@ -12494,23 +12682,23 @@ var StyledThumbnailBadge = import_styled_components88.default.div`
12494
12682
  }
12495
12683
  `;
12496
12684
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12497
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(StyledThumbnailBadge, { ...props, children: [
12498
- (0, import_type_guards52.isNotNil)(icon) && icon,
12499
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("span", { children: label })
12685
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(StyledThumbnailBadge, { ...props, children: [
12686
+ (0, import_type_guards53.isNotNil)(icon) && icon,
12687
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("span", { children: label })
12500
12688
  ] });
12501
12689
  };
12502
12690
  ThumbnailBadge.displayName = "ThumbnailBadge";
12503
12691
 
12504
12692
  // src/components/Thumbnail/Thumbnail.tsx
12505
12693
  var import_react71 = require("react");
12506
- var import_styled_components90 = __toESM(require("styled-components"));
12507
- var import_type_guards54 = require("@wistia/type-guards");
12694
+ var import_styled_components91 = __toESM(require("styled-components"));
12695
+ var import_type_guards55 = require("@wistia/type-guards");
12508
12696
 
12509
12697
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12510
- var import_type_guards53 = require("@wistia/type-guards");
12511
- var import_styled_components89 = require("styled-components");
12698
+ var import_type_guards54 = require("@wistia/type-guards");
12699
+ var import_styled_components90 = require("styled-components");
12512
12700
  var gradients = {
12513
- defaultDarkOne: import_styled_components89.css`
12701
+ defaultDarkOne: import_styled_components90.css`
12514
12702
  background-color: #222d66;
12515
12703
  background-image:
12516
12704
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12518,7 +12706,7 @@ var gradients = {
12518
12706
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12519
12707
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12520
12708
  `,
12521
- defaultDarkTwo: import_styled_components89.css`
12709
+ defaultDarkTwo: import_styled_components90.css`
12522
12710
  background-color: #222d66;
12523
12711
  background-image:
12524
12712
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12526,7 +12714,7 @@ var gradients = {
12526
12714
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12527
12715
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12528
12716
  `,
12529
- defaultLightOne: import_styled_components89.css`
12717
+ defaultLightOne: import_styled_components90.css`
12530
12718
  background-color: #ccd5ff;
12531
12719
  background-image:
12532
12720
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12534,13 +12722,13 @@ var gradients = {
12534
12722
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12535
12723
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12536
12724
  `,
12537
- defaultLightTwo: import_styled_components89.css`
12725
+ defaultLightTwo: import_styled_components90.css`
12538
12726
  background-color: #ccd5ff;
12539
12727
  background-image:
12540
12728
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12541
12729
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12542
12730
  `,
12543
- defaultMidOne: import_styled_components89.css`
12731
+ defaultMidOne: import_styled_components90.css`
12544
12732
  background-color: #6b84ff;
12545
12733
  background-image:
12546
12734
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12548,13 +12736,13 @@ var gradients = {
12548
12736
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12549
12737
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12550
12738
  `,
12551
- defaultMidTwo: import_styled_components89.css`
12739
+ defaultMidTwo: import_styled_components90.css`
12552
12740
  background-color: #6b84ff;
12553
12741
  background-image:
12554
12742
  radial-gradient(ellipse at top, #2949e5, transparent),
12555
12743
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12556
12744
  `,
12557
- green: import_styled_components89.css`
12745
+ green: import_styled_components90.css`
12558
12746
  background-color: #fafffa;
12559
12747
  background-image:
12560
12748
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12562,7 +12750,7 @@ var gradients = {
12562
12750
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12563
12751
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12564
12752
  `,
12565
- greenWithPop: import_styled_components89.css`
12753
+ greenWithPop: import_styled_components90.css`
12566
12754
  background-color: #fafffa;
12567
12755
  background-image:
12568
12756
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12570,7 +12758,7 @@ var gradients = {
12570
12758
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12571
12759
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12572
12760
  `,
12573
- pink: import_styled_components89.css`
12761
+ pink: import_styled_components90.css`
12574
12762
  background-color: #fffff0;
12575
12763
  background-image:
12576
12764
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12578,7 +12766,7 @@ var gradients = {
12578
12766
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12579
12767
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12580
12768
  `,
12581
- pinkWithPop: import_styled_components89.css`
12769
+ pinkWithPop: import_styled_components90.css`
12582
12770
  background-color: #fffff0;
12583
12771
  background-image:
12584
12772
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12586,7 +12774,7 @@ var gradients = {
12586
12774
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12587
12775
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12588
12776
  `,
12589
- playfulGradientOne: import_styled_components89.css`
12777
+ playfulGradientOne: import_styled_components90.css`
12590
12778
  background-color: #f7f8ff;
12591
12779
  background-image:
12592
12780
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12594,7 +12782,7 @@ var gradients = {
12594
12782
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12595
12783
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12596
12784
  `,
12597
- playfulGradientTwo: import_styled_components89.css`
12785
+ playfulGradientTwo: import_styled_components90.css`
12598
12786
  background-color: #f7f8ff;
12599
12787
  background-image:
12600
12788
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12602,13 +12790,13 @@ var gradients = {
12602
12790
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12603
12791
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12604
12792
  `,
12605
- purple: import_styled_components89.css`
12793
+ purple: import_styled_components90.css`
12606
12794
  background-color: #f2caff;
12607
12795
  background-image:
12608
12796
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12609
12797
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12610
12798
  `,
12611
- purpleWithPop: import_styled_components89.css`
12799
+ purpleWithPop: import_styled_components90.css`
12612
12800
  background-color: #f2caff;
12613
12801
  background-image:
12614
12802
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12616,7 +12804,7 @@ var gradients = {
12616
12804
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12617
12805
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12618
12806
  `,
12619
- yellow: import_styled_components89.css`
12807
+ yellow: import_styled_components90.css`
12620
12808
  background-color: #fffff0;
12621
12809
  background-image:
12622
12810
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12624,7 +12812,7 @@ var gradients = {
12624
12812
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12625
12813
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12626
12814
  `,
12627
- yellowWithPop: import_styled_components89.css`
12815
+ yellowWithPop: import_styled_components90.css`
12628
12816
  background-color: #fffff0;
12629
12817
  background-image:
12630
12818
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12635,24 +12823,24 @@ var gradients = {
12635
12823
  };
12636
12824
  var gradientMap = Object.keys(gradients);
12637
12825
  var getBackgroundGradient = (gradientName = void 0) => {
12638
- return (0, import_type_guards53.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12826
+ return (0, import_type_guards54.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12639
12827
  };
12640
12828
 
12641
12829
  // src/components/Thumbnail/Thumbnail.tsx
12642
- var import_jsx_runtime270 = require("react/jsx-runtime");
12643
- var WideThumbnailImage = import_styled_components90.default.img`
12830
+ var import_jsx_runtime271 = require("react/jsx-runtime");
12831
+ var WideThumbnailImage = import_styled_components91.default.img`
12644
12832
  height: 100%;
12645
12833
  object-fit: cover;
12646
12834
  width: 100%;
12647
12835
  `;
12648
- var SquareThumbnailImage = import_styled_components90.default.img`
12836
+ var SquareThumbnailImage = import_styled_components91.default.img`
12649
12837
  backdrop-filter: blur(8px);
12650
12838
  object-fit: contain;
12651
12839
  width: 100%;
12652
12840
  `;
12653
12841
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12654
12842
  if (thumbnailImageType === "wide") {
12655
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12843
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12656
12844
  WideThumbnailImage,
12657
12845
  {
12658
12846
  alt: "",
@@ -12661,7 +12849,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12661
12849
  }
12662
12850
  );
12663
12851
  }
12664
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12852
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12665
12853
  SquareThumbnailImage,
12666
12854
  {
12667
12855
  alt: "",
@@ -12670,11 +12858,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12670
12858
  }
12671
12859
  );
12672
12860
  };
12673
- var StyledThumbnail = import_styled_components90.default.div`
12674
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards54.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12861
+ var StyledThumbnail = import_styled_components91.default.div`
12862
+ background-image: ${({ $backgroundUrl }) => (0, import_type_guards55.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12675
12863
  ${({ $backgroundUrl, $gradientBackground }) => (
12676
12864
  // if we don't have $backgroundUrl show a gradient
12677
- (0, import_type_guards54.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12865
+ (0, import_type_guards55.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12678
12866
  )};
12679
12867
  background-position: center center;
12680
12868
  background-size: cover;
@@ -12698,8 +12886,8 @@ var Thumbnail = (0, import_react71.forwardRef)(
12698
12886
  children,
12699
12887
  ...props
12700
12888
  }, ref) => {
12701
- const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards54.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12702
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12889
+ const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards55.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12890
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
12703
12891
  StyledThumbnail,
12704
12892
  {
12705
12893
  ref,
@@ -12709,8 +12897,8 @@ var Thumbnail = (0, import_react71.forwardRef)(
12709
12897
  $width: width,
12710
12898
  role: "presentation",
12711
12899
  children: [
12712
- (0, import_type_guards54.isNotNil)(children) ? children : null,
12713
- (0, import_type_guards54.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12900
+ (0, import_type_guards55.isNotNil)(children) ? children : null,
12901
+ (0, import_type_guards55.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12714
12902
  ThumbnailImage,
12715
12903
  {
12716
12904
  thumbnailImageType,
@@ -12726,13 +12914,13 @@ Thumbnail.displayName = "Thumbnail";
12726
12914
 
12727
12915
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12728
12916
  var import_react72 = __toESM(require("react"));
12729
- var import_styled_components91 = __toESM(require("styled-components"));
12730
- var import_type_guards55 = require("@wistia/type-guards");
12731
- var import_jsx_runtime271 = (
12917
+ var import_styled_components92 = __toESM(require("styled-components"));
12918
+ var import_type_guards56 = require("@wistia/type-guards");
12919
+ var import_jsx_runtime272 = (
12732
12920
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
12733
12921
  require("react/jsx-runtime")
12734
12922
  );
12735
- var StyledThumbnailCollage = import_styled_components91.default.div`
12923
+ var StyledThumbnailCollage = import_styled_components92.default.div`
12736
12924
  display: grid;
12737
12925
  gap: var(--wui-space-01);
12738
12926
  width: 100%;
@@ -12807,13 +12995,13 @@ var ThumbnailCollage = ({
12807
12995
  }) => {
12808
12996
  const thumbnailArray = import_react72.default.Children.toArray(children);
12809
12997
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
12810
- const thumbnails = (0, import_type_guards55.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
12998
+ const thumbnails = (0, import_type_guards56.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
12811
12999
  return import_react72.default.cloneElement(child, {
12812
13000
  ...child.props,
12813
13001
  children: void 0
12814
13002
  });
12815
13003
  }) : [
12816
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
13004
+ /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
12817
13005
  Thumbnail,
12818
13006
  {
12819
13007
  gradientBackground,
@@ -12822,7 +13010,7 @@ var ThumbnailCollage = ({
12822
13010
  "fallback"
12823
13011
  )
12824
13012
  ];
12825
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
13013
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
12826
13014
  StyledThumbnailCollage,
12827
13015
  {
12828
13016
  $gradientBackground: gradientBackground,
@@ -12834,26 +13022,26 @@ var ThumbnailCollage = ({
12834
13022
  };
12835
13023
 
12836
13024
  // src/components/WistiaLogo/WistiaLogo.tsx
12837
- var import_styled_components92 = __toESM(require("styled-components"));
12838
- var import_type_guards56 = require("@wistia/type-guards");
12839
- var import_jsx_runtime272 = require("react/jsx-runtime");
13025
+ var import_styled_components93 = __toESM(require("styled-components"));
13026
+ var import_type_guards57 = require("@wistia/type-guards");
13027
+ var import_jsx_runtime273 = require("react/jsx-runtime");
12840
13028
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12841
13029
  if (iconOnly) {
12842
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13030
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
12843
13031
  "g",
12844
13032
  {
12845
13033
  "data-testid": "ui-wistia-logo-brandmark",
12846
13034
  fill: brandmarkColor,
12847
- children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13035
+ children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12848
13036
  }
12849
13037
  );
12850
13038
  }
12851
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13039
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
12852
13040
  "g",
12853
13041
  {
12854
13042
  "data-testid": "ui-wistia-logo-brandmark",
12855
13043
  fill: brandmarkColor,
12856
- children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13044
+ children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12857
13045
  }
12858
13046
  );
12859
13047
  };
@@ -12861,12 +13049,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
12861
13049
  if (iconOnly) {
12862
13050
  return null;
12863
13051
  }
12864
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13052
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
12865
13053
  "g",
12866
13054
  {
12867
13055
  "data-testid": "ui-wistia-logo-logotype",
12868
13056
  fill: logotypeColor,
12869
- children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
13057
+ children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
12870
13058
  }
12871
13059
  );
12872
13060
  };
@@ -12876,7 +13064,7 @@ var computedViewBox = (iconOnly) => {
12876
13064
  }
12877
13065
  return "0 0 144 31.47";
12878
13066
  };
12879
- var WistiaLogoComponent = import_styled_components92.default.svg`
13067
+ var WistiaLogoComponent = import_styled_components93.default.svg`
12880
13068
  height: ${({ height }) => `${height}px`};
12881
13069
 
12882
13070
  /* ensure it will always fit on mobile */
@@ -12892,12 +13080,12 @@ var WistiaLogoComponent = import_styled_components92.default.svg`
12892
13080
  ${({ $opticallyCentered, $iconOnly }) => {
12893
13081
  if ($opticallyCentered) {
12894
13082
  if ($iconOnly) {
12895
- return import_styled_components92.css`
13083
+ return import_styled_components93.css`
12896
13084
  aspect-ratio: 1;
12897
13085
  padding: 11.85% 3.12% 13.91%;
12898
13086
  `;
12899
13087
  }
12900
- return import_styled_components92.css`
13088
+ return import_styled_components93.css`
12901
13089
  aspect-ratio: 127 / 32;
12902
13090
  `;
12903
13091
  }
@@ -12934,7 +13122,7 @@ var WistiaLogo = ({
12934
13122
  };
12935
13123
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12936
13124
  const logotypeColor = VARIANT_COLORS[variant].logotype;
12937
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
13125
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
12938
13126
  WistiaLogoComponent,
12939
13127
  {
12940
13128
  $hoverColor: hoverColor,
@@ -12947,14 +13135,14 @@ var WistiaLogo = ({
12947
13135
  xmlns: "http://www.w3.org/2000/svg",
12948
13136
  ...props,
12949
13137
  children: [
12950
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("title", { children: title }),
12951
- (0, import_type_guards56.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("desc", { children: description }) : null,
13138
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("title", { children: title }),
13139
+ (0, import_type_guards57.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("desc", { children: description }) : null,
12952
13140
  renderBrandmark(brandmarkColor, iconOnly),
12953
13141
  renderLogotype(logotypeColor, iconOnly)
12954
13142
  ]
12955
13143
  }
12956
13144
  );
12957
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("a", { href, children: Logo }) : Logo;
13145
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("a", { href, children: Logo }) : Logo;
12958
13146
  };
12959
13147
  WistiaLogo.displayName = "WistiaLogo";
12960
13148
  // Annotate the CommonJS export names for ESM import in node:
@@ -12997,6 +13185,7 @@ WistiaLogo.displayName = "WistiaLogo";
12997
13185
  ImageDimensionsValidator,
12998
13186
  Input,
12999
13187
  InputClickToCopy,
13188
+ KeyboardShortcut,
13000
13189
  Label,
13001
13190
  Link,
13002
13191
  Menu,