@wistia/ui 0.8.23 → 0.8.24

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.8.23
3
+ * @license @wistia/ui v0.8.24
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -11058,7 +11058,7 @@ Modal.displayName = "Modal";
11058
11058
 
11059
11059
  // src/components/Popover/Popover.tsx
11060
11060
  import { Root, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
11061
- import styled50, { css as css30 } from "styled-components";
11061
+ import styled51, { css as css31 } from "styled-components";
11062
11062
 
11063
11063
  // src/private/helpers/getControls/getControlProps.tsx
11064
11064
  import { isNotNil as isNotNil25 } from "@wistia/type-guards";
@@ -11066,11 +11066,91 @@ var getControlProps = (isOpen, onOpenChange) => {
11066
11066
  return isNotNil25(onOpenChange) && isNotNil25(isOpen) ? { open: isOpen, onOpenChange } : {};
11067
11067
  };
11068
11068
 
11069
- // src/components/Popover/Popover.tsx
11069
+ // src/components/Popover/PopoverArrow.tsx
11070
+ import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
11071
+ import styled50, { css as css30, keyframes as keyframes4 } from "styled-components";
11070
11072
  import { jsx as jsx246, jsxs as jsxs33 } from "react/jsx-runtime";
11071
- var StyledContent2 = styled50(Content2)`
11073
+ var StyledPath = styled50.path`
11074
+ fill: var(--wui-color-border-secondary);
11075
+ `;
11076
+ var circleAnimation = keyframes4`
11077
+ 0% {
11078
+ opacity: var(--wui-popover-arrow-circle-starting-opacity);
11079
+ }
11080
+ 100% {
11081
+ opacity: 0;
11082
+ }
11083
+ `;
11084
+ var StyledCircle = styled50.circle`
11085
+ stroke: var(--wui-color-border-active);
11086
+ animation-duration: 2s;
11087
+ animation-iteration-count: infinite;
11088
+ animation-direction: alternate;
11089
+ animation-timing-function: ease-in-out;
11090
+
11091
+ &[data-wui-popover-arrow-inner-circle] {
11092
+ --wui-popover-arrow-circle-starting-opacity: 0.36;
11093
+
11094
+ opacity: var(--wui-popover-arrow-circle-starting-opacity);
11095
+ }
11096
+
11097
+ &[data-wui-popover-arrow-outer-circle] {
11098
+ --wui-popover-arrow-circle-starting-opacity: 0.2;
11099
+
11100
+ animation-direction: alternate-reverse;
11101
+ opacity: 0.11;
11102
+ }
11103
+
11104
+ @media (prefers-reduced-motion: no-preference) {
11105
+ ${({ $isAnimated }) => $isAnimated && css30`
11106
+ animation-name: ${circleAnimation};
11107
+ `}
11108
+ }
11109
+ `;
11110
+ var PopoverArrow = ({ isAnimated }) => {
11111
+ return /* @__PURE__ */ jsx246(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs33(
11112
+ "svg",
11113
+ {
11114
+ fill: "none",
11115
+ height: "56",
11116
+ viewBox: "0 0 48 56",
11117
+ width: "48",
11118
+ xmlns: "http://www.w3.org/2000/svg",
11119
+ children: [
11120
+ /* @__PURE__ */ jsx246(StyledPath, { d: "M24 26.6667C21.0545 26.6667 18.6667 29.0545 18.6667 32C18.6667 34.9455 21.0545 37.3333 24 37.3333C26.9455 37.3333 29.3333 34.9455 29.3333 32C29.3333 29.0545 26.9455 26.6667 24 26.6667ZM23 0V32H25V0H23Z" }),
11121
+ /* @__PURE__ */ jsx246(
11122
+ StyledCircle,
11123
+ {
11124
+ $isAnimated: isAnimated,
11125
+ cx: "24",
11126
+ cy: "32",
11127
+ "data-wui-popover-arrow-inner-circle": true,
11128
+ r: "10",
11129
+ strokeWidth: "4"
11130
+ }
11131
+ ),
11132
+ /* @__PURE__ */ jsx246(
11133
+ StyledCircle,
11134
+ {
11135
+ $isAnimated: isAnimated,
11136
+ cx: "24",
11137
+ cy: "32",
11138
+ "data-wui-popover-arrow-outer-circle": true,
11139
+ r: "20",
11140
+ strokeWidth: "8"
11141
+ }
11142
+ )
11143
+ ]
11144
+ }
11145
+ ) });
11146
+ };
11147
+ PopoverArrow.displayName = "PopoverArrow";
11148
+
11149
+ // src/components/Popover/Popover.tsx
11150
+ import { jsx as jsx247, jsxs as jsxs34 } from "react/jsx-runtime";
11151
+ var StyledContent2 = styled51(Content2)`
11072
11152
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11073
- ${({ $unstyled }) => !$unstyled && css30`
11153
+ ${({ $unstyled }) => !$unstyled && css31`
11074
11154
  border-radius: var(--wui-border-radius-02);
11075
11155
  padding: var(--wui-space-04);
11076
11156
  max-width: var(--wui-popover-max-width, 320px);
@@ -11096,34 +11176,38 @@ var Popover = ({
11096
11176
  maxHeight = "auto",
11097
11177
  onOpenChange,
11098
11178
  unstyled = false,
11179
+ withArrow = false,
11180
+ isAnimated = false,
11099
11181
  colorScheme = "inherit",
11100
11182
  ...props
11101
11183
  }) => {
11184
+ const sideOffset = withArrow ? -24 : 8;
11102
11185
  const style = {
11103
11186
  "--wui-popover-max-width": maxWidth,
11104
11187
  "--wui-popover-max-height": maxHeight
11105
11188
  };
11106
- return /* @__PURE__ */ jsxs33(Root, { ...getControlProps(isOpen, onOpenChange), children: [
11107
- /* @__PURE__ */ jsx246(Trigger2, { asChild: true, children: trigger }),
11108
- /* @__PURE__ */ jsx246(Portal, { children: /* @__PURE__ */ jsxs33(
11189
+ return /* @__PURE__ */ jsxs34(Root, { ...getControlProps(isOpen, onOpenChange), children: [
11190
+ /* @__PURE__ */ jsx247(Trigger2, { asChild: true, children: trigger }),
11191
+ /* @__PURE__ */ jsx247(Portal, { children: /* @__PURE__ */ jsxs34(
11109
11192
  StyledContent2,
11110
11193
  {
11111
11194
  $colorScheme: colorScheme,
11112
- sideOffset: 8,
11195
+ sideOffset,
11113
11196
  ...props,
11114
11197
  $unstyled: unstyled,
11115
11198
  style,
11116
11199
  children: [
11117
- !hideCloseButton && /* @__PURE__ */ jsx246(Close, { asChild: true, children: /* @__PURE__ */ jsx246(
11200
+ !hideCloseButton && /* @__PURE__ */ jsx247(Close, { asChild: true, children: /* @__PURE__ */ jsx247(
11118
11201
  IconButton,
11119
11202
  {
11120
11203
  "data-wui-popover-close": true,
11121
11204
  label: "Close",
11122
11205
  variant: "ghost",
11123
- children: /* @__PURE__ */ jsx246(Icon, { type: "close" })
11206
+ children: /* @__PURE__ */ jsx247(Icon, { type: "close" })
11124
11207
  }
11125
11208
  ) }),
11126
- /* @__PURE__ */ jsx246("div", { children })
11209
+ withArrow ? /* @__PURE__ */ jsx247(PopoverArrow, { isAnimated }) : null,
11210
+ /* @__PURE__ */ jsx247("div", { children })
11127
11211
  ]
11128
11212
  }
11129
11213
  ) })
@@ -11132,11 +11216,11 @@ var Popover = ({
11132
11216
  Popover.displayName = "Popover";
11133
11217
 
11134
11218
  // src/components/ProgressBar/ProgressBar.tsx
11135
- import styled51 from "styled-components";
11219
+ import styled52 from "styled-components";
11136
11220
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
11137
11221
  import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11138
- import { jsx as jsx247, jsxs as jsxs34 } from "react/jsx-runtime";
11139
- var ProgressBarWrapper = styled51.div`
11222
+ import { jsx as jsx248, jsxs as jsxs35 } from "react/jsx-runtime";
11223
+ var ProgressBarWrapper = styled52.div`
11140
11224
  --progress-bar-height: 8px;
11141
11225
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
11142
11226
  --progress-bar-background-color: var(--wui-color-bg-surface-secondary);
@@ -11152,7 +11236,7 @@ var getTranslateValue = (progress, max) => {
11152
11236
  const progressPercentage = progress / max * 100;
11153
11237
  return `translateX(-${100 - progressPercentage}%)`;
11154
11238
  };
11155
- var ProgressBarLabel = styled51.div`
11239
+ var ProgressBarLabel = styled52.div`
11156
11240
  display: flex;
11157
11241
  line-height: var(--wui-typography-label-3-line-height);
11158
11242
  font-size: var(--wui-typography-label-3-size);
@@ -11160,7 +11244,7 @@ var ProgressBarLabel = styled51.div`
11160
11244
  color: var(--wui-color-text-secondary);
11161
11245
  flex-shrink: 0;
11162
11246
  `;
11163
- var StyledProgressIndicator = styled51(ProgressIndicator)`
11247
+ var StyledProgressIndicator = styled52(ProgressIndicator)`
11164
11248
  background-color: var(--progress-bar-indicator-color);
11165
11249
  width: 100%;
11166
11250
  height: 100%;
@@ -11169,7 +11253,7 @@ var StyledProgressIndicator = styled51(ProgressIndicator)`
11169
11253
  transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
11170
11254
  transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
11171
11255
  `;
11172
- var StyledProgressBar = styled51(ProgressRoot)`
11256
+ var StyledProgressBar = styled52(ProgressRoot)`
11173
11257
  position: relative;
11174
11258
  overflow: hidden;
11175
11259
  background: var(--progress-bar-background-color);
@@ -11188,15 +11272,15 @@ var ProgressBar = ({
11188
11272
  labelRight,
11189
11273
  ...props
11190
11274
  }) => {
11191
- return /* @__PURE__ */ jsxs34(ProgressBarWrapper, { children: [
11192
- isNotNil26(labelLeft) ? /* @__PURE__ */ jsx247(ProgressBarLabel, { children: labelLeft }) : null,
11193
- /* @__PURE__ */ jsx247(
11275
+ return /* @__PURE__ */ jsxs35(ProgressBarWrapper, { children: [
11276
+ isNotNil26(labelLeft) ? /* @__PURE__ */ jsx248(ProgressBarLabel, { children: labelLeft }) : null,
11277
+ /* @__PURE__ */ jsx248(
11194
11278
  StyledProgressBar,
11195
11279
  {
11196
11280
  max,
11197
11281
  value: progress,
11198
11282
  ...props,
11199
- children: /* @__PURE__ */ jsx247(
11283
+ children: /* @__PURE__ */ jsx248(
11200
11284
  StyledProgressIndicator,
11201
11285
  {
11202
11286
  $max: max,
@@ -11205,17 +11289,17 @@ var ProgressBar = ({
11205
11289
  )
11206
11290
  }
11207
11291
  ),
11208
- isNotNil26(labelRight) ? /* @__PURE__ */ jsx247(ProgressBarLabel, { children: labelRight }) : null
11292
+ isNotNil26(labelRight) ? /* @__PURE__ */ jsx248(ProgressBarLabel, { children: labelRight }) : null
11209
11293
  ] });
11210
11294
  };
11211
11295
  ProgressBar.displayName = "ProgressBar";
11212
11296
 
11213
11297
  // src/components/Radio/Radio.tsx
11214
11298
  import { forwardRef as forwardRef20, useId as useId3 } from "react";
11215
- import styled52, { css as css31 } from "styled-components";
11299
+ import styled53, { css as css32 } from "styled-components";
11216
11300
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
11217
- import { jsx as jsx248, jsxs as jsxs35 } from "react/jsx-runtime";
11218
- var RadioIcon = () => /* @__PURE__ */ jsx248(
11301
+ import { jsx as jsx249, jsxs as jsxs36 } from "react/jsx-runtime";
11302
+ var RadioIcon = () => /* @__PURE__ */ jsx249(
11219
11303
  "svg",
11220
11304
  {
11221
11305
  fill: "inherit",
@@ -11223,7 +11307,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx248(
11223
11307
  viewBox: "0 0 1 1",
11224
11308
  width: "1",
11225
11309
  xmlns: "http://www.w3.org/2000/svg",
11226
- children: /* @__PURE__ */ jsx248(
11310
+ children: /* @__PURE__ */ jsx249(
11227
11311
  "circle",
11228
11312
  {
11229
11313
  cx: "0.5",
@@ -11234,7 +11318,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx248(
11234
11318
  )
11235
11319
  }
11236
11320
  );
11237
- var sizeSmall2 = css31`
11321
+ var sizeSmall2 = css32`
11238
11322
  width: 14px;
11239
11323
  height: 14px;
11240
11324
  min-width: 14px;
@@ -11245,7 +11329,7 @@ var sizeSmall2 = css31`
11245
11329
  height: 7px;
11246
11330
  }
11247
11331
  `;
11248
- var sizeMedium2 = css31`
11332
+ var sizeMedium2 = css32`
11249
11333
  width: 16px;
11250
11334
  height: 16px;
11251
11335
  min-width: 16px;
@@ -11256,7 +11340,7 @@ var sizeMedium2 = css31`
11256
11340
  height: 8px;
11257
11341
  }
11258
11342
  `;
11259
- var sizeLarge2 = css31`
11343
+ var sizeLarge2 = css32`
11260
11344
  width: 20px;
11261
11345
  height: 20px;
11262
11346
  min-width: 20px;
@@ -11272,14 +11356,14 @@ var getSizeCss2 = (size) => {
11272
11356
  if (size === "lg") return sizeLarge2;
11273
11357
  return sizeMedium2;
11274
11358
  };
11275
- var StyledRadioWrapper = styled52.div`
11359
+ var StyledRadioWrapper = styled53.div`
11276
11360
  display: flex;
11277
11361
  margin: 0;
11278
11362
 
11279
11363
  /* TODO this solves a problem but potentially causes and a11y issue */
11280
11364
  user-select: none;
11281
11365
  `;
11282
- var StyledRadioInput = styled52.div`
11366
+ var StyledRadioInput = styled53.div`
11283
11367
  ${({ $size }) => getSizeCss2($size)}
11284
11368
  line-height: 0;
11285
11369
  margin: 0;
@@ -11301,7 +11385,7 @@ var StyledRadioInput = styled52.div`
11301
11385
  }
11302
11386
  }
11303
11387
  `;
11304
- var StyledHiddenRadioInput = styled52.input`
11388
+ var StyledHiddenRadioInput = styled53.input`
11305
11389
  ${visuallyHiddenStyle}
11306
11390
 
11307
11391
  /* toggles display of faux-input border-color */
@@ -11331,13 +11415,13 @@ var Radio = forwardRef20(
11331
11415
  }, ref) => {
11332
11416
  const generatedId = useId3();
11333
11417
  const computedId = isNonEmptyString3(id) ? id : `wistia-ui-radio-${generatedId}`;
11334
- return /* @__PURE__ */ jsxs35(
11418
+ return /* @__PURE__ */ jsxs36(
11335
11419
  StyledRadioWrapper,
11336
11420
  {
11337
11421
  $disabled: disabled,
11338
11422
  "aria-invalid": props["aria-invalid"],
11339
11423
  children: [
11340
- /* @__PURE__ */ jsx248(
11424
+ /* @__PURE__ */ jsx249(
11341
11425
  StyledHiddenRadioInput,
11342
11426
  {
11343
11427
  ...props,
@@ -11352,16 +11436,16 @@ var Radio = forwardRef20(
11352
11436
  value
11353
11437
  }
11354
11438
  ),
11355
- /* @__PURE__ */ jsx248(
11439
+ /* @__PURE__ */ jsx249(
11356
11440
  FormControlLabel,
11357
11441
  {
11358
- controlSlot: /* @__PURE__ */ jsx248(
11442
+ controlSlot: /* @__PURE__ */ jsx249(
11359
11443
  StyledRadioInput,
11360
11444
  {
11361
11445
  $disabled: disabled,
11362
11446
  $size: size,
11363
11447
  "data-wui-faux-input": "true",
11364
- children: /* @__PURE__ */ jsx248(RadioIcon, {})
11448
+ children: /* @__PURE__ */ jsx249(RadioIcon, {})
11365
11449
  }
11366
11450
  ),
11367
11451
  description,
@@ -11380,13 +11464,13 @@ Radio.displayName = "Radio";
11380
11464
 
11381
11465
  // src/components/SegmentedControl/SegmentedControl.tsx
11382
11466
  import { forwardRef as forwardRef21 } from "react";
11383
- import styled54, { css as css32 } from "styled-components";
11467
+ import styled55, { css as css33 } from "styled-components";
11384
11468
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11385
11469
  import { isNil as isNil14 } from "@wistia/type-guards";
11386
11470
 
11387
11471
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11388
11472
  import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState14 } from "react";
11389
- import { jsx as jsx249 } from "react/jsx-runtime";
11473
+ import { jsx as jsx250 } from "react/jsx-runtime";
11390
11474
  var SelectedItemStyleContext = createContext7(null);
11391
11475
  var SelectedItemStyleProvider = ({
11392
11476
  children
@@ -11409,7 +11493,7 @@ var SelectedItemStyleProvider = ({
11409
11493
  }),
11410
11494
  [selectedItemIndicatorStyle]
11411
11495
  );
11412
- return /* @__PURE__ */ jsx249(SelectedItemStyleContext.Provider, { value: contextValue, children });
11496
+ return /* @__PURE__ */ jsx250(SelectedItemStyleContext.Provider, { value: contextValue, children });
11413
11497
  };
11414
11498
  var useSelectedItemStyle = () => {
11415
11499
  const context = useContext6(SelectedItemStyleContext);
@@ -11420,7 +11504,7 @@ var useSelectedItemStyle = () => {
11420
11504
  };
11421
11505
 
11422
11506
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11423
- import styled53 from "styled-components";
11507
+ import styled54 from "styled-components";
11424
11508
 
11425
11509
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11426
11510
  import { createContext as createContext8, useContext as useContext7 } from "react";
@@ -11435,8 +11519,8 @@ var useSegmentedControlValue = () => {
11435
11519
  };
11436
11520
 
11437
11521
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11438
- import { jsx as jsx250 } from "react/jsx-runtime";
11439
- var SelectedItemIndicatorDiv = styled53.div`
11522
+ import { jsx as jsx251 } from "react/jsx-runtime";
11523
+ var SelectedItemIndicatorDiv = styled54.div`
11440
11524
  background-color: var(--wui-color-bg-fill-white);
11441
11525
  border-radius: var(--wui-border-radius-rounded);
11442
11526
  left: 0;
@@ -11454,12 +11538,12 @@ var SelectedItemIndicator = () => {
11454
11538
  if (!selectedValue) {
11455
11539
  return null;
11456
11540
  }
11457
- return /* @__PURE__ */ jsx250(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11541
+ return /* @__PURE__ */ jsx251(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11458
11542
  };
11459
11543
 
11460
11544
  // src/components/SegmentedControl/SegmentedControl.tsx
11461
- import { jsx as jsx251, jsxs as jsxs36 } from "react/jsx-runtime";
11462
- var segmentedControlStyles = css32`
11545
+ import { jsx as jsx252, jsxs as jsxs37 } from "react/jsx-runtime";
11546
+ var segmentedControlStyles = css33`
11463
11547
  display: inline-flex;
11464
11548
  background-color: var(--wui-color-bg-surface-secondary);
11465
11549
  border-radius: var(--wui-border-radius-rounded);
@@ -11470,7 +11554,7 @@ var segmentedControlStyles = css32`
11470
11554
  position: relative;
11471
11555
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11472
11556
  `;
11473
- var StyledSegmentedControl = styled54(ToggleGroupRoot)`
11557
+ var StyledSegmentedControl = styled55(ToggleGroupRoot)`
11474
11558
  ${segmentedControlStyles}
11475
11559
  `;
11476
11560
  var SegmentedControl = forwardRef21(
@@ -11485,7 +11569,7 @@ var SegmentedControl = forwardRef21(
11485
11569
  if (isNil14(children)) {
11486
11570
  return null;
11487
11571
  }
11488
- return /* @__PURE__ */ jsx251(
11572
+ return /* @__PURE__ */ jsx252(
11489
11573
  StyledSegmentedControl,
11490
11574
  {
11491
11575
  ref,
@@ -11497,8 +11581,8 @@ var SegmentedControl = forwardRef21(
11497
11581
  type: "single",
11498
11582
  value: selectedValue,
11499
11583
  ...props,
11500
- children: /* @__PURE__ */ jsx251(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs36(SelectedItemStyleProvider, { children: [
11501
- /* @__PURE__ */ jsx251(SelectedItemIndicator, {}),
11584
+ children: /* @__PURE__ */ jsx252(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs37(SelectedItemStyleProvider, { children: [
11585
+ /* @__PURE__ */ jsx252(SelectedItemIndicator, {}),
11502
11586
  children
11503
11587
  ] }) })
11504
11588
  }
@@ -11509,11 +11593,11 @@ SegmentedControl.displayName = "SegmentedControl";
11509
11593
 
11510
11594
  // src/components/SegmentedControl/SegmentedControlItem.tsx
11511
11595
  import { forwardRef as forwardRef22, useEffect as useEffect11, useRef as useRef12 } from "react";
11512
- import styled55, { css as css33 } from "styled-components";
11596
+ import styled56, { css as css34 } from "styled-components";
11513
11597
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
11514
11598
  import { isNotNil as isNotNil27 } from "@wistia/type-guards";
11515
- import { jsxs as jsxs37 } from "react/jsx-runtime";
11516
- var segmentedControlItemStyles = css33`
11599
+ import { jsxs as jsxs38 } from "react/jsx-runtime";
11600
+ var segmentedControlItemStyles = css34`
11517
11601
  all: unset; /* ToggleGroupItem is a button element */
11518
11602
  align-items: center;
11519
11603
  border-radius: var(--wui-border-radius-rounded);
@@ -11573,7 +11657,7 @@ var segmentedControlItemStyles = css33`
11573
11657
  }
11574
11658
  }
11575
11659
  `;
11576
- var StyledSegmentedControlItem = styled55(ToggleGroupItem)`
11660
+ var StyledSegmentedControlItem = styled56(ToggleGroupItem)`
11577
11661
  ${segmentedControlItemStyles}
11578
11662
  `;
11579
11663
  var SegmentedControlItem = forwardRef22(
@@ -11614,7 +11698,7 @@ var SegmentedControlItem = forwardRef22(
11614
11698
  resizeObserver.disconnect();
11615
11699
  };
11616
11700
  }, [selectedValue, setSelectedItemMeasurements, value]);
11617
- return /* @__PURE__ */ jsxs37(
11701
+ return /* @__PURE__ */ jsxs38(
11618
11702
  StyledSegmentedControlItem,
11619
11703
  {
11620
11704
  ref: combinedRef,
@@ -11645,9 +11729,9 @@ import {
11645
11729
  ScrollDownButton
11646
11730
  } from "@radix-ui/react-select";
11647
11731
  import { forwardRef as forwardRef23 } from "react";
11648
- import styled56 from "styled-components";
11649
- import { jsx as jsx252, jsxs as jsxs38 } from "react/jsx-runtime";
11650
- var StyledTrigger = styled56(Trigger3)`
11732
+ import styled57 from "styled-components";
11733
+ import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
11734
+ var StyledTrigger = styled57(Trigger3)`
11651
11735
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11652
11736
  ${inputCssVariables};
11653
11737
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
@@ -11691,7 +11775,7 @@ var StyledTrigger = styled56(Trigger3)`
11691
11775
  color: var(--wui-input-placeholder);
11692
11776
  }
11693
11777
  `;
11694
- var StyledContent3 = styled56(Content3)`
11778
+ var StyledContent3 = styled57(Content3)`
11695
11779
  --wui-select-content-border: var(--wui-color-border);
11696
11780
  --wui-select-content-bg: var(--wui-color-bg-surface);
11697
11781
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -11719,13 +11803,13 @@ var Select = forwardRef23(
11719
11803
  ...props
11720
11804
  }, forwardedRef) => {
11721
11805
  const responsiveFullWidth = useResponsiveProp(fullWidth);
11722
- return /* @__PURE__ */ jsxs38(
11806
+ return /* @__PURE__ */ jsxs39(
11723
11807
  Root2,
11724
11808
  {
11725
11809
  ...props,
11726
11810
  onValueChange: onChange,
11727
11811
  children: [
11728
- /* @__PURE__ */ jsxs38(
11812
+ /* @__PURE__ */ jsxs39(
11729
11813
  StyledTrigger,
11730
11814
  {
11731
11815
  ref: forwardedRef,
@@ -11733,8 +11817,8 @@ var Select = forwardRef23(
11733
11817
  $fullWidth: responsiveFullWidth,
11734
11818
  ...props,
11735
11819
  children: [
11736
- /* @__PURE__ */ jsx252(Value, { placeholder }),
11737
- /* @__PURE__ */ jsx252(
11820
+ /* @__PURE__ */ jsx253(Value, { placeholder }),
11821
+ /* @__PURE__ */ jsx253(
11738
11822
  Icon,
11739
11823
  {
11740
11824
  size: "md",
@@ -11744,10 +11828,10 @@ var Select = forwardRef23(
11744
11828
  ]
11745
11829
  }
11746
11830
  ),
11747
- /* @__PURE__ */ jsx252(Portal2, { children: /* @__PURE__ */ jsxs38(StyledContent3, { position: "popper", children: [
11748
- /* @__PURE__ */ jsx252(ScrollUpButton, { children: /* @__PURE__ */ jsx252(Icon, { type: "caret-up" }) }),
11749
- /* @__PURE__ */ jsx252(Viewport, { children }),
11750
- /* @__PURE__ */ jsx252(ScrollDownButton, { children: /* @__PURE__ */ jsx252(Icon, { type: "caret-down" }) })
11831
+ /* @__PURE__ */ jsx253(Portal2, { children: /* @__PURE__ */ jsxs39(StyledContent3, { position: "popper", children: [
11832
+ /* @__PURE__ */ jsx253(ScrollUpButton, { children: /* @__PURE__ */ jsx253(Icon, { type: "caret-up" }) }),
11833
+ /* @__PURE__ */ jsx253(Viewport, { children }),
11834
+ /* @__PURE__ */ jsx253(ScrollDownButton, { children: /* @__PURE__ */ jsx253(Icon, { type: "caret-down" }) })
11751
11835
  ] }) })
11752
11836
  ]
11753
11837
  }
@@ -11759,10 +11843,10 @@ Select.displayName = "Select";
11759
11843
  // src/components/Select/SelectOption.tsx
11760
11844
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11761
11845
  import { forwardRef as forwardRef24 } from "react";
11762
- import styled57 from "styled-components";
11846
+ import styled58 from "styled-components";
11763
11847
  import { isNotNil as isNotNil28 } from "@wistia/type-guards";
11764
- import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
11765
- var StyledItem = styled57(Item)`
11848
+ import { jsx as jsx254, jsxs as jsxs40 } from "react/jsx-runtime";
11849
+ var StyledItem = styled58(Item)`
11766
11850
  ${variantStyleMap2.body3};
11767
11851
  display: flex;
11768
11852
  padding: var(--wui-select-option-padding);
@@ -11786,28 +11870,28 @@ var StyledItem = styled57(Item)`
11786
11870
  background-color: transparent;
11787
11871
  }
11788
11872
  `;
11789
- var StyledIconContainer = styled57.span`
11873
+ var StyledIconContainer = styled58.span`
11790
11874
  width: 12px;
11791
11875
  `;
11792
11876
  var SelectOption = forwardRef24(
11793
11877
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11794
- return /* @__PURE__ */ jsxs39(
11878
+ return /* @__PURE__ */ jsxs40(
11795
11879
  StyledItem,
11796
11880
  {
11797
11881
  ...props,
11798
11882
  ref: forwardedRef,
11799
11883
  children: [
11800
- /* @__PURE__ */ jsx253(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ jsx253(ItemIndicator, { children: /* @__PURE__ */ jsx253(
11884
+ /* @__PURE__ */ jsx254(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ jsx254(ItemIndicator, { children: /* @__PURE__ */ jsx254(
11801
11885
  Icon,
11802
11886
  {
11803
11887
  size: "sm",
11804
11888
  type: "checkmark"
11805
11889
  }
11806
11890
  ) }) }),
11807
- isNotNil28(selectedDisplayValue) ? /* @__PURE__ */ jsxs39("div", { children: [
11891
+ isNotNil28(selectedDisplayValue) ? /* @__PURE__ */ jsxs40("div", { children: [
11808
11892
  children,
11809
- /* @__PURE__ */ jsx253("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx253(ItemText, { children: selectedDisplayValue }) })
11810
- ] }) : /* @__PURE__ */ jsx253(ItemText, { children })
11893
+ /* @__PURE__ */ jsx254("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx254(ItemText, { children: selectedDisplayValue }) })
11894
+ ] }) : /* @__PURE__ */ jsx254(ItemText, { children })
11811
11895
  ]
11812
11896
  }
11813
11897
  );
@@ -11817,14 +11901,14 @@ SelectOption.displayName = "SelectOption";
11817
11901
 
11818
11902
  // src/components/Select/SelectOptionGroup.tsx
11819
11903
  import { Group, Label as Label3 } from "@radix-ui/react-select";
11820
- import styled58 from "styled-components";
11821
- import { jsx as jsx254, jsxs as jsxs40 } from "react/jsx-runtime";
11822
- var StyledLabel4 = styled58(Label3)`
11904
+ import styled59 from "styled-components";
11905
+ import { jsx as jsx255, jsxs as jsxs41 } from "react/jsx-runtime";
11906
+ var StyledLabel4 = styled59(Label3)`
11823
11907
  padding: var(--wui-select-option-padding);
11824
11908
  `;
11825
11909
  var SelectOptionGroup = ({ children, label, ...props }) => {
11826
- return /* @__PURE__ */ jsxs40(Group, { ...props, children: [
11827
- /* @__PURE__ */ jsx254(StyledLabel4, { children: /* @__PURE__ */ jsx254(
11910
+ return /* @__PURE__ */ jsxs41(Group, { ...props, children: [
11911
+ /* @__PURE__ */ jsx255(StyledLabel4, { children: /* @__PURE__ */ jsx255(
11828
11912
  Text,
11829
11913
  {
11830
11914
  prominence: "secondary",
@@ -11838,10 +11922,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11838
11922
 
11839
11923
  // src/components/Switch/Switch.tsx
11840
11924
  import { forwardRef as forwardRef25, useId as useId4 } from "react";
11841
- import styled59, { css as css34 } from "styled-components";
11925
+ import styled60, { css as css35 } from "styled-components";
11842
11926
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11843
- import { jsx as jsx255, jsxs as jsxs41 } from "react/jsx-runtime";
11844
- var sizeSmall3 = css34`
11927
+ import { jsx as jsx256, jsxs as jsxs42 } from "react/jsx-runtime";
11928
+ var sizeSmall3 = css35`
11845
11929
  --wui-size-small-width: 24px;
11846
11930
  --wui-size-small-height: 14px;
11847
11931
 
@@ -11856,7 +11940,7 @@ var sizeSmall3 = css34`
11856
11940
  height: calc(var(--wui-size-small-width) / 2);
11857
11941
  }
11858
11942
  `;
11859
- var sizeMedium3 = css34`
11943
+ var sizeMedium3 = css35`
11860
11944
  --wui-size-medium-width: 32px;
11861
11945
  --wui-size-medium-height: 18px;
11862
11946
 
@@ -11871,7 +11955,7 @@ var sizeMedium3 = css34`
11871
11955
  height: calc(var(--wui-size-medium-width) / 2);
11872
11956
  }
11873
11957
  `;
11874
- var sizeLarge3 = css34`
11958
+ var sizeLarge3 = css35`
11875
11959
  --wui-size-large-width: 40px;
11876
11960
  --wui-size-large-height: 22px;
11877
11961
 
@@ -11891,14 +11975,14 @@ var getSizeCss3 = (size) => {
11891
11975
  if (size === "lg") return sizeLarge3;
11892
11976
  return sizeMedium3;
11893
11977
  };
11894
- var StyledSwitchWrapper = styled59.div`
11978
+ var StyledSwitchWrapper = styled60.div`
11895
11979
  display: flex;
11896
11980
  margin: 0;
11897
11981
 
11898
11982
  /* TODO this solves a problem but potentially causes and a11y issue */
11899
11983
  user-select: none;
11900
11984
  `;
11901
- var StyledSwitchInput = styled59.div`
11985
+ var StyledSwitchInput = styled60.div`
11902
11986
  ${({ $size }) => getSizeCss3($size)}
11903
11987
  line-height: 0;
11904
11988
  margin: 0;
@@ -11926,7 +12010,7 @@ var StyledSwitchInput = styled59.div`
11926
12010
  transition: all 0.2s ease-in-out;
11927
12011
  }
11928
12012
  `;
11929
- var StyledHiddenSwitchInput = styled59.input`
12013
+ var StyledHiddenSwitchInput = styled60.input`
11930
12014
  ${visuallyHiddenStyle}
11931
12015
 
11932
12016
  /* toggles display of faux-input background-color and toggle position */
@@ -11959,8 +12043,8 @@ var Switch = forwardRef25(
11959
12043
  }, ref) => {
11960
12044
  const generatedId = useId4();
11961
12045
  const computedId = isNonEmptyString4(id) ? id : `wistia-ui-switch-${generatedId}`;
11962
- return /* @__PURE__ */ jsxs41(StyledSwitchWrapper, { $disabled: disabled, children: [
11963
- /* @__PURE__ */ jsx255(
12046
+ return /* @__PURE__ */ jsxs42(StyledSwitchWrapper, { $disabled: disabled, children: [
12047
+ /* @__PURE__ */ jsx256(
11964
12048
  StyledHiddenSwitchInput,
11965
12049
  {
11966
12050
  ...props,
@@ -11975,10 +12059,10 @@ var Switch = forwardRef25(
11975
12059
  value
11976
12060
  }
11977
12061
  ),
11978
- /* @__PURE__ */ jsx255(
12062
+ /* @__PURE__ */ jsx256(
11979
12063
  FormControlLabel,
11980
12064
  {
11981
- controlSlot: /* @__PURE__ */ jsx255(
12065
+ controlSlot: /* @__PURE__ */ jsx256(
11982
12066
  StyledSwitchInput,
11983
12067
  {
11984
12068
  $disabled: disabled,
@@ -12000,25 +12084,25 @@ var Switch = forwardRef25(
12000
12084
  Switch.displayName = "Switch";
12001
12085
 
12002
12086
  // src/components/Table/Table.tsx
12003
- import styled60, { css as css35 } from "styled-components";
12004
- import { jsx as jsx256 } from "react/jsx-runtime";
12005
- var StyledTable = styled60.table`
12087
+ import styled61, { css as css36 } from "styled-components";
12088
+ import { jsx as jsx257 } from "react/jsx-runtime";
12089
+ var StyledTable = styled61.table`
12006
12090
  width: 100%;
12007
12091
  border-collapse: collapse;
12008
12092
 
12009
- ${({ $divided }) => $divided && css35`
12093
+ ${({ $divided }) => $divided && css36`
12010
12094
  tr {
12011
12095
  border-bottom: 1px solid var(--wui-color-border);
12012
12096
  }
12013
12097
  `}
12014
12098
 
12015
- ${({ $striped }) => $striped && css35`
12099
+ ${({ $striped }) => $striped && css36`
12016
12100
  tbody tr:nth-child(even) {
12017
12101
  background-color: var(--wui-color-bg-surface-secondary);
12018
12102
  }
12019
12103
  `}
12020
12104
 
12021
- ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css35`
12105
+ ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css36`
12022
12106
  thead {
12023
12107
  ${visuallyHiddenStyle}
12024
12108
  }
@@ -12031,7 +12115,7 @@ var Table = ({
12031
12115
  visuallyHiddenHeader = false,
12032
12116
  ...props
12033
12117
  }) => {
12034
- return /* @__PURE__ */ jsx256(
12118
+ return /* @__PURE__ */ jsx257(
12035
12119
  StyledTable,
12036
12120
  {
12037
12121
  $divided: divided,
@@ -12044,35 +12128,35 @@ var Table = ({
12044
12128
  };
12045
12129
 
12046
12130
  // src/components/Table/TableBody.tsx
12047
- import styled61 from "styled-components";
12131
+ import styled62 from "styled-components";
12048
12132
 
12049
12133
  // src/components/Table/TableSectionContext.ts
12050
12134
  import { createContext as createContext9 } from "react";
12051
12135
  var TableSectionContext = createContext9(null);
12052
12136
 
12053
12137
  // src/components/Table/TableBody.tsx
12054
- import { jsx as jsx257 } from "react/jsx-runtime";
12055
- var StyledTableBody = styled61.tbody``;
12138
+ import { jsx as jsx258 } from "react/jsx-runtime";
12139
+ var StyledTableBody = styled62.tbody``;
12056
12140
  var TableBody = ({ children, ...props }) => {
12057
- return /* @__PURE__ */ jsx257(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx257(StyledTableBody, { ...props, children }) });
12141
+ return /* @__PURE__ */ jsx258(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx258(StyledTableBody, { ...props, children }) });
12058
12142
  };
12059
12143
 
12060
12144
  // src/components/Table/TableCell.tsx
12061
12145
  import { useContext as useContext8 } from "react";
12062
- import styled62, { css as css36 } from "styled-components";
12063
- import { jsx as jsx258 } from "react/jsx-runtime";
12064
- var sharedStyles = css36`
12146
+ import styled63, { css as css37 } from "styled-components";
12147
+ import { jsx as jsx259 } from "react/jsx-runtime";
12148
+ var sharedStyles = css37`
12065
12149
  color: var(--wui-color-text);
12066
12150
  padding: var(--wui-space-02);
12067
12151
  text-align: left;
12068
12152
  `;
12069
- var StyledTh = styled62.th`
12153
+ var StyledTh = styled63.th`
12070
12154
  ${sharedStyles}
12071
12155
  font-size: var(--wui-typography-body-4-size);
12072
12156
  font-weight: var(--wui-typography-weight-label-bold);
12073
12157
  line-height: var(--wui-typography-body-4-line-height);
12074
12158
  `;
12075
- var StyledTd = styled62.td`
12159
+ var StyledTd = styled63.td`
12076
12160
  ${sharedStyles}
12077
12161
  font-size: var(--wui-typography-body-2-size);
12078
12162
  font-weight: var(--wui-typography-body-2-weight);
@@ -12081,51 +12165,51 @@ var StyledTd = styled62.td`
12081
12165
  var TableCell = ({ children, ...props }) => {
12082
12166
  const section = useContext8(TableSectionContext);
12083
12167
  if (section === "head") {
12084
- return /* @__PURE__ */ jsx258(StyledTh, { ...props, children });
12168
+ return /* @__PURE__ */ jsx259(StyledTh, { ...props, children });
12085
12169
  }
12086
- return /* @__PURE__ */ jsx258(StyledTd, { ...props, children });
12170
+ return /* @__PURE__ */ jsx259(StyledTd, { ...props, children });
12087
12171
  };
12088
12172
 
12089
12173
  // src/components/Table/TableFoot.tsx
12090
- import styled63 from "styled-components";
12091
- import { jsx as jsx259 } from "react/jsx-runtime";
12092
- var StyledTableFoot = styled63.tfoot``;
12174
+ import styled64 from "styled-components";
12175
+ import { jsx as jsx260 } from "react/jsx-runtime";
12176
+ var StyledTableFoot = styled64.tfoot``;
12093
12177
  var TableFoot = ({ children, ...props }) => {
12094
- return /* @__PURE__ */ jsx259(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx259(StyledTableFoot, { ...props, children }) });
12178
+ return /* @__PURE__ */ jsx260(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx260(StyledTableFoot, { ...props, children }) });
12095
12179
  };
12096
12180
 
12097
12181
  // src/components/Table/TableHead.tsx
12098
- import styled64 from "styled-components";
12099
- import { jsx as jsx260 } from "react/jsx-runtime";
12100
- var StyledThead = styled64.thead``;
12182
+ import styled65 from "styled-components";
12183
+ import { jsx as jsx261 } from "react/jsx-runtime";
12184
+ var StyledThead = styled65.thead``;
12101
12185
  var TableHead = ({ children, ...props }) => {
12102
- return /* @__PURE__ */ jsx260(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx260(StyledThead, { ...props, children }) });
12186
+ return /* @__PURE__ */ jsx261(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx261(StyledThead, { ...props, children }) });
12103
12187
  };
12104
12188
 
12105
12189
  // src/components/Table/TableRow.tsx
12106
- import styled65 from "styled-components";
12107
- import { jsx as jsx261 } from "react/jsx-runtime";
12108
- var StyledTableRow = styled65.tr``;
12190
+ import styled66 from "styled-components";
12191
+ import { jsx as jsx262 } from "react/jsx-runtime";
12192
+ var StyledTableRow = styled66.tr``;
12109
12193
  var TableRow = ({ children, ...props }) => {
12110
- return /* @__PURE__ */ jsx261(StyledTableRow, { ...props, children });
12194
+ return /* @__PURE__ */ jsx262(StyledTableRow, { ...props, children });
12111
12195
  };
12112
12196
 
12113
12197
  // src/components/Tabs/Tabs.tsx
12114
12198
  import { forwardRef as forwardRef27, useState as useState15 } from "react";
12115
12199
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
12116
12200
  import { isNotNil as isNotNil30, isNil as isNil15 } from "@wistia/type-guards";
12117
- import styled70 from "styled-components";
12201
+ import styled71 from "styled-components";
12118
12202
 
12119
12203
  // src/components/Tabs/TabPanel.tsx
12120
- import styled66 from "styled-components";
12204
+ import styled67 from "styled-components";
12121
12205
  import { Content as TabsContent } from "@radix-ui/react-tabs";
12122
- import { jsx as jsx262 } from "react/jsx-runtime";
12123
- var StyledTabPanel = styled66(TabsContent)`
12206
+ import { jsx as jsx263 } from "react/jsx-runtime";
12207
+ var StyledTabPanel = styled67(TabsContent)`
12124
12208
  display: flex;
12125
12209
  flex-direction: column;
12126
12210
  `;
12127
12211
  var TabPanel = ({ children, value, ...props }) => {
12128
- return /* @__PURE__ */ jsx262(
12212
+ return /* @__PURE__ */ jsx263(
12129
12213
  StyledTabPanel,
12130
12214
  {
12131
12215
  value,
@@ -12137,10 +12221,10 @@ var TabPanel = ({ children, value, ...props }) => {
12137
12221
  TabPanel.displayName = "TabPanel";
12138
12222
 
12139
12223
  // src/components/Tabs/TabList.tsx
12140
- import styled67 from "styled-components";
12224
+ import styled68 from "styled-components";
12141
12225
  import { List as RadixTabList } from "@radix-ui/react-tabs";
12142
- import { jsx as jsx263 } from "react/jsx-runtime";
12143
- var StyledTabList = styled67(RadixTabList)`
12226
+ import { jsx as jsx264 } from "react/jsx-runtime";
12227
+ var StyledTabList = styled68(RadixTabList)`
12144
12228
  ${segmentedControlStyles}
12145
12229
 
12146
12230
  margin-bottom: var(--wui-space-04);
@@ -12153,7 +12237,7 @@ var TabList = ({
12153
12237
  ariaLabel,
12154
12238
  ...props
12155
12239
  }) => {
12156
- return /* @__PURE__ */ jsx263(
12240
+ return /* @__PURE__ */ jsx264(
12157
12241
  StyledTabList,
12158
12242
  {
12159
12243
  $fullWidth: fullWidth,
@@ -12167,7 +12251,7 @@ TabList.displayName = "TabList";
12167
12251
 
12168
12252
  // src/components/Tabs/TabItem.tsx
12169
12253
  import { forwardRef as forwardRef26, useEffect as useEffect12, useRef as useRef13 } from "react";
12170
- import styled68 from "styled-components";
12254
+ import styled69 from "styled-components";
12171
12255
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
12172
12256
  import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12173
12257
 
@@ -12184,8 +12268,8 @@ var useTabsValue = () => {
12184
12268
  };
12185
12269
 
12186
12270
  // src/components/Tabs/TabItem.tsx
12187
- import { jsxs as jsxs42 } from "react/jsx-runtime";
12188
- var StyledTabItem = styled68(RadixTab)`
12271
+ import { jsxs as jsxs43 } from "react/jsx-runtime";
12272
+ var StyledTabItem = styled69(RadixTab)`
12189
12273
  ${segmentedControlItemStyles}
12190
12274
 
12191
12275
  &:focus-visible {
@@ -12223,7 +12307,7 @@ var TabItem = forwardRef26(
12223
12307
  resizeObserver.disconnect();
12224
12308
  };
12225
12309
  }, [selectedValue, setSelectedItemMeasurements, value]);
12226
- return /* @__PURE__ */ jsxs42(
12310
+ return /* @__PURE__ */ jsxs43(
12227
12311
  StyledTabItem,
12228
12312
  {
12229
12313
  ref: combinedRef,
@@ -12264,9 +12348,9 @@ var extractTabItems = (children) => {
12264
12348
  };
12265
12349
 
12266
12350
  // src/components/Tabs/SelectedItemIndicator.tsx
12267
- import styled69 from "styled-components";
12268
- import { jsx as jsx264 } from "react/jsx-runtime";
12269
- var TabsSelectedItemIndicatorDiv = styled69(SelectedItemIndicatorDiv)`
12351
+ import styled70 from "styled-components";
12352
+ import { jsx as jsx265 } from "react/jsx-runtime";
12353
+ var TabsSelectedItemIndicatorDiv = styled70(SelectedItemIndicatorDiv)`
12270
12354
  &:has(~ ${StyledTabItem}:focus-visible) {
12271
12355
  outline: 2px solid var(--wui-color-focus-ring);
12272
12356
  }
@@ -12277,23 +12361,23 @@ var SelectedItemIndicator2 = () => {
12277
12361
  if (selectedValue == null) {
12278
12362
  return null;
12279
12363
  }
12280
- return /* @__PURE__ */ jsx264(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12364
+ return /* @__PURE__ */ jsx265(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12281
12365
  };
12282
12366
 
12283
12367
  // src/components/Tabs/Tabs.tsx
12284
- import { jsx as jsx265, jsxs as jsxs43 } from "react/jsx-runtime";
12285
- var TabsContainer = styled70.div`
12368
+ import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
12369
+ var TabsContainer = styled71.div`
12286
12370
  display: flex;
12287
12371
  flex-direction: column;
12288
12372
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12289
12373
  overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12290
12374
  `;
12291
- var StickyTabContent = styled70.div`
12375
+ var StickyTabContent = styled71.div`
12292
12376
  flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
12293
12377
  overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
12294
12378
  overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12295
12379
  `;
12296
- var StyledTabsRoot = styled70(TabsRoot)`
12380
+ var StyledTabsRoot = styled71(TabsRoot)`
12297
12381
  display: flex;
12298
12382
  flex-direction: column;
12299
12383
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
@@ -12316,7 +12400,7 @@ var Tabs = forwardRef27(
12316
12400
  onValueChange: setInternalSelectedValue
12317
12401
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
12318
12402
  const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
12319
- return /* @__PURE__ */ jsx265(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx265(
12403
+ return /* @__PURE__ */ jsx266(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx266(
12320
12404
  StyledTabsRoot,
12321
12405
  {
12322
12406
  ref,
@@ -12324,14 +12408,14 @@ var Tabs = forwardRef27(
12324
12408
  activationMode: "automatic",
12325
12409
  ...props,
12326
12410
  ...modeProps,
12327
- children: /* @__PURE__ */ jsx265(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs43(SelectedItemStyleProvider, { children: [
12328
- /* @__PURE__ */ jsxs43(
12411
+ children: /* @__PURE__ */ jsx266(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs44(SelectedItemStyleProvider, { children: [
12412
+ /* @__PURE__ */ jsxs44(
12329
12413
  TabList,
12330
12414
  {
12331
12415
  ariaLabel,
12332
12416
  fullWidth,
12333
12417
  children: [
12334
- /* @__PURE__ */ jsx265(SelectedItemIndicator2, {}),
12418
+ /* @__PURE__ */ jsx266(SelectedItemIndicator2, {}),
12335
12419
  tabItems.map((tab) => {
12336
12420
  const {
12337
12421
  value,
@@ -12341,7 +12425,7 @@ var Tabs = forwardRef27(
12341
12425
  "aria-label": ariaLabelForTab
12342
12426
  } = tab.props;
12343
12427
  if (isNil15(icon)) {
12344
- return /* @__PURE__ */ jsx265(
12428
+ return /* @__PURE__ */ jsx266(
12345
12429
  TabItem,
12346
12430
  {
12347
12431
  disabled,
@@ -12352,7 +12436,7 @@ var Tabs = forwardRef27(
12352
12436
  );
12353
12437
  }
12354
12438
  if (isNotNil30(label)) {
12355
- return /* @__PURE__ */ jsx265(
12439
+ return /* @__PURE__ */ jsx266(
12356
12440
  TabItem,
12357
12441
  {
12358
12442
  disabled,
@@ -12364,7 +12448,7 @@ var Tabs = forwardRef27(
12364
12448
  );
12365
12449
  }
12366
12450
  if (isNotNil30(ariaLabelForTab)) {
12367
- return /* @__PURE__ */ jsx265(
12451
+ return /* @__PURE__ */ jsx266(
12368
12452
  TabItem,
12369
12453
  {
12370
12454
  "aria-label": ariaLabelForTab,
@@ -12380,7 +12464,7 @@ var Tabs = forwardRef27(
12380
12464
  ]
12381
12465
  }
12382
12466
  ),
12383
- /* @__PURE__ */ jsx265(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx265(
12467
+ /* @__PURE__ */ jsx266(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx266(
12384
12468
  TabPanel,
12385
12469
  {
12386
12470
  value: tab.props.value,
@@ -12397,18 +12481,18 @@ Tabs.displayName = "Tabs";
12397
12481
 
12398
12482
  // src/components/Tabs/Tab.tsx
12399
12483
  import { forwardRef as forwardRef28 } from "react";
12400
- import { jsx as jsx266 } from "react/jsx-runtime";
12484
+ import { jsx as jsx267 } from "react/jsx-runtime";
12401
12485
  var Tab = forwardRef28(({ children }, ref) => {
12402
- return /* @__PURE__ */ jsx266("div", { ref, children });
12486
+ return /* @__PURE__ */ jsx267("div", { ref, children });
12403
12487
  });
12404
12488
  Tab.displayName = "Tab";
12405
12489
 
12406
12490
  // src/components/Tag/Tag.tsx
12407
12491
  import { forwardRef as forwardRef29 } from "react";
12408
- import styled71 from "styled-components";
12492
+ import styled72 from "styled-components";
12409
12493
  import { isNil as isNil16, isNotNil as isNotNil31, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12410
- import { Fragment as Fragment8, jsx as jsx267, jsxs as jsxs44 } from "react/jsx-runtime";
12411
- var TagLabel = styled71.a`
12494
+ import { Fragment as Fragment8, jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12495
+ var TagLabel = styled72.a`
12412
12496
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12413
12497
  font-size: var(--wui-typography-label-4-size);
12414
12498
  font-weight: var(--wui-typography-label-4-weight);
@@ -12443,14 +12527,14 @@ var TagLabel = styled71.a`
12443
12527
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12444
12528
  }
12445
12529
  `;
12446
- var TagDivider = styled71.div`
12530
+ var TagDivider = styled72.div`
12447
12531
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12448
12532
  border-left: 1px solid var(--wui-color-border);
12449
12533
  display: flex;
12450
12534
  height: 14px;
12451
12535
  width: 1px;
12452
12536
  `;
12453
- var StyledRemoveButton = styled71.button`
12537
+ var StyledRemoveButton = styled72.button`
12454
12538
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12455
12539
  all: unset;
12456
12540
  cursor: pointer;
@@ -12478,7 +12562,7 @@ var StyledRemoveButton = styled71.button`
12478
12562
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12479
12563
  }
12480
12564
  `;
12481
- var StyledTag = styled71.div`
12565
+ var StyledTag = styled72.div`
12482
12566
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12483
12567
  align-items: center;
12484
12568
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12499,23 +12583,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12499
12583
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12500
12584
  );
12501
12585
  }
12502
- return /* @__PURE__ */ jsxs44(Fragment8, { children: [
12503
- /* @__PURE__ */ jsx267(TagDivider, { $colorScheme: colorScheme }),
12504
- /* @__PURE__ */ jsxs44(
12586
+ return /* @__PURE__ */ jsxs45(Fragment8, { children: [
12587
+ /* @__PURE__ */ jsx268(TagDivider, { $colorScheme: colorScheme }),
12588
+ /* @__PURE__ */ jsxs45(
12505
12589
  StyledRemoveButton,
12506
12590
  {
12507
12591
  $colorScheme: colorScheme,
12508
12592
  onClick: onClickRemove,
12509
12593
  type: "button",
12510
12594
  children: [
12511
- /* @__PURE__ */ jsx267(
12595
+ /* @__PURE__ */ jsx268(
12512
12596
  Icon,
12513
12597
  {
12514
12598
  size: "sm",
12515
12599
  type: "close"
12516
12600
  }
12517
12601
  ),
12518
- /* @__PURE__ */ jsx267(ScreenReaderOnly, { children: onClickRemoveLabel })
12602
+ /* @__PURE__ */ jsx268(ScreenReaderOnly, { children: onClickRemoveLabel })
12519
12603
  ]
12520
12604
  }
12521
12605
  )
@@ -12525,14 +12609,14 @@ var Tag = forwardRef29(
12525
12609
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12526
12610
  const hasIcon = isNotNil31(icon);
12527
12611
  const labelProps = isNotNil31(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12528
- return /* @__PURE__ */ jsxs44(
12612
+ return /* @__PURE__ */ jsxs45(
12529
12613
  StyledTag,
12530
12614
  {
12531
12615
  ref,
12532
12616
  $colorScheme: colorScheme,
12533
12617
  ...props,
12534
12618
  children: [
12535
- /* @__PURE__ */ jsxs44(
12619
+ /* @__PURE__ */ jsxs45(
12536
12620
  TagLabel,
12537
12621
  {
12538
12622
  ...labelProps,
@@ -12543,7 +12627,7 @@ var Tag = forwardRef29(
12543
12627
  ]
12544
12628
  }
12545
12629
  ),
12546
- /* @__PURE__ */ jsx267(
12630
+ /* @__PURE__ */ jsx268(
12547
12631
  RemoveButton,
12548
12632
  {
12549
12633
  colorScheme,
@@ -12559,10 +12643,10 @@ var Tag = forwardRef29(
12559
12643
  Tag.displayName = "Tag";
12560
12644
 
12561
12645
  // src/components/Thumbnail/ThumbnailBadge.tsx
12562
- import styled72 from "styled-components";
12646
+ import styled73 from "styled-components";
12563
12647
  import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12564
- import { jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12565
- var StyledThumbnailBadge = styled72.div`
12648
+ import { jsx as jsx269, jsxs as jsxs46 } from "react/jsx-runtime";
12649
+ var StyledThumbnailBadge = styled73.div`
12566
12650
  align-items: center;
12567
12651
  background-color: rgb(0 0 0 / 50%);
12568
12652
  border-radius: var(--wui-border-radius-01);
@@ -12587,23 +12671,23 @@ var StyledThumbnailBadge = styled72.div`
12587
12671
  }
12588
12672
  `;
12589
12673
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12590
- return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12674
+ return /* @__PURE__ */ jsxs46(StyledThumbnailBadge, { ...props, children: [
12591
12675
  isNotNil32(icon) && icon,
12592
- /* @__PURE__ */ jsx268("span", { children: label })
12676
+ /* @__PURE__ */ jsx269("span", { children: label })
12593
12677
  ] });
12594
12678
  };
12595
12679
  ThumbnailBadge.displayName = "ThumbnailBadge";
12596
12680
 
12597
12681
  // src/components/Thumbnail/Thumbnail.tsx
12598
12682
  import { forwardRef as forwardRef30 } from "react";
12599
- import styled73 from "styled-components";
12683
+ import styled74 from "styled-components";
12600
12684
  import { isNil as isNil17, isNotNil as isNotNil34 } from "@wistia/type-guards";
12601
12685
 
12602
12686
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12603
12687
  import { isNotNil as isNotNil33 } from "@wistia/type-guards";
12604
- import { css as css37 } from "styled-components";
12688
+ import { css as css38 } from "styled-components";
12605
12689
  var gradients = {
12606
- defaultDarkOne: css37`
12690
+ defaultDarkOne: css38`
12607
12691
  background-color: #222d66;
12608
12692
  background-image:
12609
12693
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12611,7 +12695,7 @@ var gradients = {
12611
12695
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12612
12696
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12613
12697
  `,
12614
- defaultDarkTwo: css37`
12698
+ defaultDarkTwo: css38`
12615
12699
  background-color: #222d66;
12616
12700
  background-image:
12617
12701
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12619,7 +12703,7 @@ var gradients = {
12619
12703
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12620
12704
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12621
12705
  `,
12622
- defaultLightOne: css37`
12706
+ defaultLightOne: css38`
12623
12707
  background-color: #ccd5ff;
12624
12708
  background-image:
12625
12709
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12627,13 +12711,13 @@ var gradients = {
12627
12711
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12628
12712
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12629
12713
  `,
12630
- defaultLightTwo: css37`
12714
+ defaultLightTwo: css38`
12631
12715
  background-color: #ccd5ff;
12632
12716
  background-image:
12633
12717
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12634
12718
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12635
12719
  `,
12636
- defaultMidOne: css37`
12720
+ defaultMidOne: css38`
12637
12721
  background-color: #6b84ff;
12638
12722
  background-image:
12639
12723
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12641,13 +12725,13 @@ var gradients = {
12641
12725
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12642
12726
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12643
12727
  `,
12644
- defaultMidTwo: css37`
12728
+ defaultMidTwo: css38`
12645
12729
  background-color: #6b84ff;
12646
12730
  background-image:
12647
12731
  radial-gradient(ellipse at top, #2949e5, transparent),
12648
12732
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12649
12733
  `,
12650
- green: css37`
12734
+ green: css38`
12651
12735
  background-color: #fafffa;
12652
12736
  background-image:
12653
12737
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12655,7 +12739,7 @@ var gradients = {
12655
12739
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12656
12740
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12657
12741
  `,
12658
- greenWithPop: css37`
12742
+ greenWithPop: css38`
12659
12743
  background-color: #fafffa;
12660
12744
  background-image:
12661
12745
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12663,7 +12747,7 @@ var gradients = {
12663
12747
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12664
12748
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12665
12749
  `,
12666
- pink: css37`
12750
+ pink: css38`
12667
12751
  background-color: #fffff0;
12668
12752
  background-image:
12669
12753
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12671,7 +12755,7 @@ var gradients = {
12671
12755
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12672
12756
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12673
12757
  `,
12674
- pinkWithPop: css37`
12758
+ pinkWithPop: css38`
12675
12759
  background-color: #fffff0;
12676
12760
  background-image:
12677
12761
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12679,7 +12763,7 @@ var gradients = {
12679
12763
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12680
12764
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12681
12765
  `,
12682
- playfulGradientOne: css37`
12766
+ playfulGradientOne: css38`
12683
12767
  background-color: #f7f8ff;
12684
12768
  background-image:
12685
12769
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12687,7 +12771,7 @@ var gradients = {
12687
12771
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12688
12772
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12689
12773
  `,
12690
- playfulGradientTwo: css37`
12774
+ playfulGradientTwo: css38`
12691
12775
  background-color: #f7f8ff;
12692
12776
  background-image:
12693
12777
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12695,13 +12779,13 @@ var gradients = {
12695
12779
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12696
12780
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12697
12781
  `,
12698
- purple: css37`
12782
+ purple: css38`
12699
12783
  background-color: #f2caff;
12700
12784
  background-image:
12701
12785
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12702
12786
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12703
12787
  `,
12704
- purpleWithPop: css37`
12788
+ purpleWithPop: css38`
12705
12789
  background-color: #f2caff;
12706
12790
  background-image:
12707
12791
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12709,7 +12793,7 @@ var gradients = {
12709
12793
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12710
12794
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12711
12795
  `,
12712
- yellow: css37`
12796
+ yellow: css38`
12713
12797
  background-color: #fffff0;
12714
12798
  background-image:
12715
12799
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12717,7 +12801,7 @@ var gradients = {
12717
12801
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12718
12802
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12719
12803
  `,
12720
- yellowWithPop: css37`
12804
+ yellowWithPop: css38`
12721
12805
  background-color: #fffff0;
12722
12806
  background-image:
12723
12807
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12732,20 +12816,20 @@ var getBackgroundGradient = (gradientName = void 0) => {
12732
12816
  };
12733
12817
 
12734
12818
  // src/components/Thumbnail/Thumbnail.tsx
12735
- import { jsx as jsx269, jsxs as jsxs46 } from "react/jsx-runtime";
12736
- var WideThumbnailImage = styled73.img`
12819
+ import { jsx as jsx270, jsxs as jsxs47 } from "react/jsx-runtime";
12820
+ var WideThumbnailImage = styled74.img`
12737
12821
  height: 100%;
12738
12822
  object-fit: cover;
12739
12823
  width: 100%;
12740
12824
  `;
12741
- var SquareThumbnailImage = styled73.img`
12825
+ var SquareThumbnailImage = styled74.img`
12742
12826
  backdrop-filter: blur(8px);
12743
12827
  object-fit: contain;
12744
12828
  width: 100%;
12745
12829
  `;
12746
12830
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12747
12831
  if (thumbnailImageType === "wide") {
12748
- return /* @__PURE__ */ jsx269(
12832
+ return /* @__PURE__ */ jsx270(
12749
12833
  WideThumbnailImage,
12750
12834
  {
12751
12835
  alt: "",
@@ -12754,7 +12838,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12754
12838
  }
12755
12839
  );
12756
12840
  }
12757
- return /* @__PURE__ */ jsx269(
12841
+ return /* @__PURE__ */ jsx270(
12758
12842
  SquareThumbnailImage,
12759
12843
  {
12760
12844
  alt: "",
@@ -12763,7 +12847,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12763
12847
  }
12764
12848
  );
12765
12849
  };
12766
- var StyledThumbnail = styled73.div`
12850
+ var StyledThumbnail = styled74.div`
12767
12851
  background-image: ${({ $backgroundUrl }) => isNotNil34($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12768
12852
  ${({ $backgroundUrl, $gradientBackground }) => (
12769
12853
  // if we don't have $backgroundUrl show a gradient
@@ -12792,7 +12876,7 @@ var Thumbnail = forwardRef30(
12792
12876
  ...props
12793
12877
  }, ref) => {
12794
12878
  const backgroundUrl = thumbnailImageType === "square" && isNotNil34(thumbnailUrl) ? thumbnailUrl : void 0;
12795
- return /* @__PURE__ */ jsxs46(
12879
+ return /* @__PURE__ */ jsxs47(
12796
12880
  StyledThumbnail,
12797
12881
  {
12798
12882
  ref,
@@ -12803,7 +12887,7 @@ var Thumbnail = forwardRef30(
12803
12887
  role: "presentation",
12804
12888
  children: [
12805
12889
  isNotNil34(children) ? children : null,
12806
- isNotNil34(thumbnailUrl) ? /* @__PURE__ */ jsx269(
12890
+ isNotNil34(thumbnailUrl) ? /* @__PURE__ */ jsx270(
12807
12891
  ThumbnailImage,
12808
12892
  {
12809
12893
  thumbnailImageType,
@@ -12819,10 +12903,10 @@ Thumbnail.displayName = "Thumbnail";
12819
12903
 
12820
12904
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12821
12905
  import React2 from "react";
12822
- import styled74 from "styled-components";
12906
+ import styled75 from "styled-components";
12823
12907
  import { isNonEmptyArray } from "@wistia/type-guards";
12824
- import { jsx as jsx270 } from "react/jsx-runtime";
12825
- var StyledThumbnailCollage = styled74.div`
12908
+ import { jsx as jsx271 } from "react/jsx-runtime";
12909
+ var StyledThumbnailCollage = styled75.div`
12826
12910
  display: grid;
12827
12911
  gap: var(--wui-space-01);
12828
12912
  width: 100%;
@@ -12904,7 +12988,7 @@ var ThumbnailCollage = ({
12904
12988
  });
12905
12989
  }) : [
12906
12990
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
12907
- /* @__PURE__ */ jsx270(
12991
+ /* @__PURE__ */ jsx271(
12908
12992
  Thumbnail,
12909
12993
  {
12910
12994
  gradientBackground,
@@ -12913,7 +12997,7 @@ var ThumbnailCollage = ({
12913
12997
  "fallback"
12914
12998
  )
12915
12999
  ];
12916
- return /* @__PURE__ */ jsx270(
13000
+ return /* @__PURE__ */ jsx271(
12917
13001
  StyledThumbnailCollage,
12918
13002
  {
12919
13003
  $gradientBackground: gradientBackground,
@@ -12925,26 +13009,26 @@ var ThumbnailCollage = ({
12925
13009
  };
12926
13010
 
12927
13011
  // src/components/WistiaLogo/WistiaLogo.tsx
12928
- import styled75, { css as css38 } from "styled-components";
13012
+ import styled76, { css as css39 } from "styled-components";
12929
13013
  import { isNotNil as isNotNil35 } from "@wistia/type-guards";
12930
- import { jsx as jsx271, jsxs as jsxs47 } from "react/jsx-runtime";
13014
+ import { jsx as jsx272, jsxs as jsxs48 } from "react/jsx-runtime";
12931
13015
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12932
13016
  if (iconOnly) {
12933
- return /* @__PURE__ */ jsx271(
13017
+ return /* @__PURE__ */ jsx272(
12934
13018
  "g",
12935
13019
  {
12936
13020
  "data-testid": "ui-wistia-logo-brandmark",
12937
13021
  fill: brandmarkColor,
12938
- children: /* @__PURE__ */ jsx271("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" })
13022
+ children: /* @__PURE__ */ jsx272("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" })
12939
13023
  }
12940
13024
  );
12941
13025
  }
12942
- return /* @__PURE__ */ jsx271(
13026
+ return /* @__PURE__ */ jsx272(
12943
13027
  "g",
12944
13028
  {
12945
13029
  "data-testid": "ui-wistia-logo-brandmark",
12946
13030
  fill: brandmarkColor,
12947
- children: /* @__PURE__ */ jsx271("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" })
13031
+ children: /* @__PURE__ */ jsx272("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" })
12948
13032
  }
12949
13033
  );
12950
13034
  };
@@ -12952,12 +13036,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
12952
13036
  if (iconOnly) {
12953
13037
  return null;
12954
13038
  }
12955
- return /* @__PURE__ */ jsx271(
13039
+ return /* @__PURE__ */ jsx272(
12956
13040
  "g",
12957
13041
  {
12958
13042
  "data-testid": "ui-wistia-logo-logotype",
12959
13043
  fill: logotypeColor,
12960
- children: /* @__PURE__ */ jsx271("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" })
13044
+ children: /* @__PURE__ */ jsx272("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" })
12961
13045
  }
12962
13046
  );
12963
13047
  };
@@ -12967,7 +13051,7 @@ var computedViewBox = (iconOnly) => {
12967
13051
  }
12968
13052
  return "0 0 144 31.47";
12969
13053
  };
12970
- var WistiaLogoComponent = styled75.svg`
13054
+ var WistiaLogoComponent = styled76.svg`
12971
13055
  height: ${({ height }) => `${height}px`};
12972
13056
 
12973
13057
  /* ensure it will always fit on mobile */
@@ -12983,12 +13067,12 @@ var WistiaLogoComponent = styled75.svg`
12983
13067
  ${({ $opticallyCentered, $iconOnly }) => {
12984
13068
  if ($opticallyCentered) {
12985
13069
  if ($iconOnly) {
12986
- return css38`
13070
+ return css39`
12987
13071
  aspect-ratio: 1;
12988
13072
  padding: 11.85% 3.12% 13.91%;
12989
13073
  `;
12990
13074
  }
12991
- return css38`
13075
+ return css39`
12992
13076
  aspect-ratio: 127 / 32;
12993
13077
  `;
12994
13078
  }
@@ -13025,7 +13109,7 @@ var WistiaLogo = ({
13025
13109
  };
13026
13110
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
13027
13111
  const logotypeColor = VARIANT_COLORS[variant].logotype;
13028
- const Logo = /* @__PURE__ */ jsxs47(
13112
+ const Logo = /* @__PURE__ */ jsxs48(
13029
13113
  WistiaLogoComponent,
13030
13114
  {
13031
13115
  $hoverColor: hoverColor,
@@ -13038,14 +13122,14 @@ var WistiaLogo = ({
13038
13122
  xmlns: "http://www.w3.org/2000/svg",
13039
13123
  ...props,
13040
13124
  children: [
13041
- /* @__PURE__ */ jsx271("title", { children: title }),
13042
- isNotNil35(description) ? /* @__PURE__ */ jsx271("desc", { children: description }) : null,
13125
+ /* @__PURE__ */ jsx272("title", { children: title }),
13126
+ isNotNil35(description) ? /* @__PURE__ */ jsx272("desc", { children: description }) : null,
13043
13127
  renderBrandmark(brandmarkColor, iconOnly),
13044
13128
  renderLogotype(logotypeColor, iconOnly)
13045
13129
  ]
13046
13130
  }
13047
13131
  );
13048
- return href !== void 0 ? /* @__PURE__ */ jsx271("a", { href, children: Logo }) : Logo;
13132
+ return href !== void 0 ? /* @__PURE__ */ jsx272("a", { href, children: Logo }) : Logo;
13049
13133
  };
13050
13134
  WistiaLogo.displayName = "WistiaLogo";
13051
13135
  export {