@wistia/ui 0.8.17-beta.d3a9e281.94cfcf8 → 0.8.18

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.17-beta.d3a9e281.94cfcf8
3
+ * @license @wistia/ui v0.8.18
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -77,7 +77,6 @@ __export(index_exports, {
77
77
  ImageDimensionsValidator: () => import_validators.ImageDimensionsValidator,
78
78
  Input: () => Input,
79
79
  InputClickToCopy: () => InputClickToCopy,
80
- KeyboardShortcut: () => KeyboardShortcut,
81
80
  Label: () => Label,
82
81
  Link: () => Link,
83
82
  Menu: () => Menu,
@@ -138,6 +137,7 @@ __export(index_exports, {
138
137
  useLockBodyScroll: () => useLockBodyScroll,
139
138
  useMq: () => useMq,
140
139
  useOnClickOutside: () => useOnClickOutside,
140
+ usePreviousValue: () => usePreviousValue,
141
141
  useToast: () => useToast,
142
142
  useWindowSize: () => useWindowSize
143
143
  });
@@ -2609,12 +2609,22 @@ var useOnClickOutside = (ref, handler, eventTypes = ["mousedown", "touchend"]) =
2609
2609
  }, [ref, handler, eventTypes]);
2610
2610
  };
2611
2611
 
2612
+ // src/hooks/usePreviousValue/usePreviousValue.ts
2613
+ var import_react16 = require("react");
2614
+ var usePreviousValue = (value) => {
2615
+ const ref = (0, import_react16.useRef)();
2616
+ (0, import_react16.useEffect)(() => {
2617
+ ref.current = value;
2618
+ });
2619
+ return ref.current;
2620
+ };
2621
+
2612
2622
  // src/hooks/useToast/useToast.tsx
2613
- var import_react17 = require("react");
2623
+ var import_react18 = require("react");
2614
2624
  var import_sonner2 = require("sonner");
2615
2625
 
2616
2626
  // src/private/components/Toast/Toast.tsx
2617
- var import_react16 = require("react");
2627
+ var import_react17 = require("react");
2618
2628
  var import_styled_components16 = __toESM(require("styled-components"));
2619
2629
  var import_type_guards11 = require("@wistia/type-guards");
2620
2630
 
@@ -2852,8 +2862,8 @@ var StyledToast = import_styled_components16.default.div`
2852
2862
  }
2853
2863
  `;
2854
2864
  var Action = ({ actionButton }) => {
2855
- if ((0, import_type_guards11.isNotNil)(actionButton) && (0, import_react16.isValidElement)(actionButton)) {
2856
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ActionWrapper, { children: (0, import_react16.cloneElement)(actionButton, {
2865
+ if ((0, import_type_guards11.isNotNil)(actionButton) && (0, import_react17.isValidElement)(actionButton)) {
2866
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ActionWrapper, { children: (0, import_react17.cloneElement)(actionButton, {
2857
2867
  variant: "soft",
2858
2868
  // force Button variant
2859
2869
  size: "sm"
@@ -2889,7 +2899,7 @@ Toast.displayName = "Toast";
2889
2899
  // src/hooks/useToast/useToast.tsx
2890
2900
  var import_jsx_runtime6 = require("react/jsx-runtime");
2891
2901
  var useToast = () => {
2892
- return (0, import_react17.useCallback)(
2902
+ return (0, import_react18.useCallback)(
2893
2903
  ({ message, action, colorScheme, icon, position = "bottom-left", duration = 3e3 }) => {
2894
2904
  import_sonner2.toast.custom(
2895
2905
  () => {
@@ -2911,11 +2921,11 @@ var useToast = () => {
2911
2921
  };
2912
2922
 
2913
2923
  // src/components/ActionButton/ActionButton.tsx
2914
- var import_react21 = require("react");
2924
+ var import_react22 = require("react");
2915
2925
  var import_styled_components22 = __toESM(require("styled-components"));
2916
2926
 
2917
2927
  // src/components/Button/Button.tsx
2918
- var import_react20 = require("react");
2928
+ var import_react21 = require("react");
2919
2929
  var import_styled_components21 = __toESM(require("styled-components"));
2920
2930
  var import_type_guards15 = require("@wistia/type-guards");
2921
2931
 
@@ -6977,13 +6987,13 @@ var iconMap = {
6977
6987
 
6978
6988
  // src/private/hooks/useResponsiveProp/useResponsiveProp.ts
6979
6989
  var import_type_guards12 = require("@wistia/type-guards");
6980
- var import_react18 = require("react");
6990
+ var import_react19 = require("react");
6981
6991
  var isResponsiveObject = (values) => {
6982
6992
  return typeof values === "object" && values !== null && !Array.isArray(values) && "base" in values;
6983
6993
  };
6984
6994
  var useResponsiveProp = (values) => {
6985
6995
  const activeMediaQueries = useActiveMq();
6986
- return (0, import_react18.useMemo)(() => {
6996
+ return (0, import_react19.useMemo)(() => {
6987
6997
  if ((0, import_type_guards12.isRecord)(values) && isResponsiveObject(values)) {
6988
6998
  const mq2 = activeMediaQueries.find((key) => key in values);
6989
6999
  return (0, import_type_guards12.isNotUndefined)(mq2) && (0, import_type_guards12.isNotUndefined)(values[mq2]) ? values[mq2] : values.base;
@@ -7050,7 +7060,7 @@ var Icon = ({
7050
7060
  Icon.displayName = "Icon";
7051
7061
 
7052
7062
  // src/components/Link/Link.tsx
7053
- var import_react19 = require("react");
7063
+ var import_react20 = require("react");
7054
7064
  var import_styled_components20 = __toESM(require("styled-components"));
7055
7065
  var import_react_router_dom = require("react-router-dom");
7056
7066
  var import_type_guards14 = require("@wistia/type-guards");
@@ -7088,7 +7098,7 @@ var StyledLink = import_styled_components20.default.a`
7088
7098
  }
7089
7099
  }
7090
7100
  `;
7091
- var Link = (0, import_react19.forwardRef)(
7101
+ var Link = (0, import_react20.forwardRef)(
7092
7102
  ({
7093
7103
  beforeAction,
7094
7104
  children,
@@ -7229,7 +7239,7 @@ var ButtonContent = ({
7229
7239
  )
7230
7240
  ] });
7231
7241
  };
7232
- var Button = (0, import_react20.forwardRef)(
7242
+ var Button = (0, import_react21.forwardRef)(
7233
7243
  ({
7234
7244
  children,
7235
7245
  forceState,
@@ -7408,7 +7418,7 @@ var StyledLabel = import_styled_components22.default.span`
7408
7418
  grid-row: 2;
7409
7419
  text-align: left;
7410
7420
  `;
7411
- var ActionButton = (0, import_react21.forwardRef)(
7421
+ var ActionButton = (0, import_react22.forwardRef)(
7412
7422
  ({
7413
7423
  icon,
7414
7424
  colorScheme = "default",
@@ -7452,7 +7462,7 @@ var ActionButton = (0, import_react21.forwardRef)(
7452
7462
  ActionButton.displayName = "ActionButton";
7453
7463
 
7454
7464
  // src/components/Avatar/Avatar.tsx
7455
- var import_react22 = require("react");
7465
+ var import_react23 = require("react");
7456
7466
  var import_type_guards18 = require("@wistia/type-guards");
7457
7467
  var import_styled_components25 = __toESM(require("styled-components"));
7458
7468
 
@@ -7660,8 +7670,8 @@ var Avatar = ({
7660
7670
  onImageLoad,
7661
7671
  ...props
7662
7672
  }) => {
7663
- const [imageLoadState, setImageLoadState] = (0, import_react22.useState)("loading");
7664
- (0, import_react22.useEffect)(() => {
7673
+ const [imageLoadState, setImageLoadState] = (0, import_react23.useState)("loading");
7674
+ (0, import_react23.useEffect)(() => {
7665
7675
  setImageLoadState("loading");
7666
7676
  }, [imageUrl]);
7667
7677
  const handleImageLoad = () => {
@@ -7673,7 +7683,7 @@ var Avatar = ({
7673
7683
  onImageLoad?.({ state: "error", type: "initials" });
7674
7684
  };
7675
7685
  const avatarSize = heightAndWidth ?? avatarSizeMap[size];
7676
- const avatarColor = (0, import_react22.useMemo)(() => chooseColorScheme(name), [name]);
7686
+ const avatarColor = (0, import_react23.useMemo)(() => chooseColorScheme(name), [name]);
7677
7687
  return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7678
7688
  AvatarWrapper,
7679
7689
  {
@@ -7700,7 +7710,7 @@ var Avatar = ({
7700
7710
  Avatar.displayName = "Avatar";
7701
7711
 
7702
7712
  // src/components/Badge/Badge.tsx
7703
- var import_react23 = require("react");
7713
+ var import_react24 = require("react");
7704
7714
  var import_styled_components26 = __toESM(require("styled-components"));
7705
7715
  var import_type_guards19 = require("@wistia/type-guards");
7706
7716
  var import_jsx_runtime198 = require("react/jsx-runtime");
@@ -7724,7 +7734,7 @@ var StyledBadge = import_styled_components26.default.div`
7724
7734
  width: 12px;
7725
7735
  }
7726
7736
  `;
7727
- var Badge = (0, import_react23.forwardRef)(
7737
+ var Badge = (0, import_react24.forwardRef)(
7728
7738
  ({ colorScheme = "inherit", label, icon, ...props }, ref) => {
7729
7739
  const hasIcon = (0, import_type_guards19.isNotNil)(icon);
7730
7740
  return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)(
@@ -7745,7 +7755,7 @@ var Badge = (0, import_react23.forwardRef)(
7745
7755
  Badge.displayName = "Badge";
7746
7756
 
7747
7757
  // src/components/Box/Box.tsx
7748
- var import_react24 = require("react");
7758
+ var import_react25 = require("react");
7749
7759
  var import_styled_components27 = __toESM(require("styled-components"));
7750
7760
  var import_type_guards20 = require("@wistia/type-guards");
7751
7761
 
@@ -7854,13 +7864,13 @@ var StyledBoxComponent = import_styled_components27.default.div`
7854
7864
  var wrapChildren = (children) => {
7855
7865
  if ((0, import_type_guards20.isNotNil)(children)) {
7856
7866
  if (typeof children === "object" && isDev) {
7857
- return import_react24.Children.map(children, (child) => {
7867
+ return import_react25.Children.map(children, (child) => {
7858
7868
  if ((0, import_type_guards20.isNil)(child)) return null;
7859
7869
  const elementParams = {};
7860
7870
  if (child.type?.displayName === "Box" || child.type?.displayName === "Box_UI") {
7861
7871
  elementParams.hasBoxParent = true;
7862
7872
  }
7863
- return (0, import_react24.cloneElement)(child, elementParams);
7873
+ return (0, import_react25.cloneElement)(child, elementParams);
7864
7874
  });
7865
7875
  }
7866
7876
  return children;
@@ -7868,7 +7878,7 @@ var wrapChildren = (children) => {
7868
7878
  return null;
7869
7879
  };
7870
7880
  var DEFAULT_ELEMENT = "div";
7871
- var BoxComponent = (0, import_react24.forwardRef)(
7881
+ var BoxComponent = (0, import_react25.forwardRef)(
7872
7882
  ({
7873
7883
  alignContent = "stretch",
7874
7884
  alignItems = "flex-start",
@@ -7951,7 +7961,7 @@ BoxComponent.displayName = "Box";
7951
7961
  var Box = makePolymorphic(BoxComponent);
7952
7962
 
7953
7963
  // src/components/Breadcrumbs/Breadcrumbs.tsx
7954
- var import_react25 = require("react");
7964
+ var import_react26 = require("react");
7955
7965
  var import_styled_components28 = __toESM(require("styled-components"));
7956
7966
  var import_jsx_runtime200 = require("react/jsx-runtime");
7957
7967
  var StyledBreadcrumbs = import_styled_components28.default.nav`
@@ -7967,7 +7977,7 @@ var StyledBreadcrumbs = import_styled_components28.default.nav`
7967
7977
  var BUFFER_WIDTH = 10;
7968
7978
  var Breadcrumbs = ({ children, ...props }) => {
7969
7979
  const { isXsAndDown } = useMq();
7970
- let crumbs = import_react25.Children.toArray(children);
7980
+ let crumbs = import_react26.Children.toArray(children);
7971
7981
  if (isXsAndDown) {
7972
7982
  crumbs = crumbs.slice(-1);
7973
7983
  }
@@ -8156,7 +8166,7 @@ var Card = ({
8156
8166
  Card.displayName = "Card";
8157
8167
 
8158
8168
  // src/components/Center/Center.tsx
8159
- var import_react26 = require("react");
8169
+ var import_react27 = require("react");
8160
8170
  var import_styled_components32 = __toESM(require("styled-components"));
8161
8171
  var import_jsx_runtime204 = require("react/jsx-runtime");
8162
8172
  var StyledCenter = import_styled_components32.default.div`
@@ -8171,7 +8181,7 @@ var StyledCenter = import_styled_components32.default.div`
8171
8181
  align-items: center;
8172
8182
  `}
8173
8183
  `;
8174
- var Center = (0, import_react26.forwardRef)(
8184
+ var Center = (0, import_react27.forwardRef)(
8175
8185
  ({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
8176
8186
  StyledCenter,
8177
8187
  {
@@ -8187,7 +8197,7 @@ var Center = (0, import_react26.forwardRef)(
8187
8197
  Center.displayName = "Center";
8188
8198
 
8189
8199
  // src/components/Checkbox/Checkbox.tsx
8190
- var import_react27 = require("react");
8200
+ var import_react28 = require("react");
8191
8201
  var import_styled_components36 = __toESM(require("styled-components"));
8192
8202
  var import_type_guards25 = require("@wistia/type-guards");
8193
8203
 
@@ -8407,7 +8417,7 @@ var StyledHiddenCheckboxInput = import_styled_components36.default.input`
8407
8417
  display: block;
8408
8418
  }
8409
8419
  `;
8410
- var Checkbox = (0, import_react27.forwardRef)(
8420
+ var Checkbox = (0, import_react28.forwardRef)(
8411
8421
  ({
8412
8422
  checked,
8413
8423
  disabled = false,
@@ -8422,7 +8432,7 @@ var Checkbox = (0, import_react27.forwardRef)(
8422
8432
  hideLabel = false,
8423
8433
  ...props
8424
8434
  }, ref) => {
8425
- const generatedId = (0, import_react27.useId)();
8435
+ const generatedId = (0, import_react28.useId)();
8426
8436
  const computedId = (0, import_type_guards25.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8427
8437
  return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8428
8438
  /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
@@ -8465,9 +8475,9 @@ var Checkbox = (0, import_react27.forwardRef)(
8465
8475
  Checkbox.displayName = "Checkbox";
8466
8476
 
8467
8477
  // src/components/ClickRegion/ClickRegion.tsx
8468
- var import_react28 = require("react");
8478
+ var import_react29 = require("react");
8469
8479
  var ClickRegion = ({ children, targetRef }) => {
8470
- (0, import_react28.useEffect)(() => {
8480
+ (0, import_react29.useEffect)(() => {
8471
8481
  if (targetRef.current && targetRef.current.tagName === "A") {
8472
8482
  targetRef.current.setAttribute("data-click-region-target-link", "");
8473
8483
  } else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
@@ -8475,7 +8485,7 @@ var ClickRegion = ({ children, targetRef }) => {
8475
8485
  } else {
8476
8486
  }
8477
8487
  }, [targetRef]);
8478
- const handleClick = (0, import_react28.useCallback)(
8488
+ const handleClick = (0, import_react29.useCallback)(
8479
8489
  (event) => {
8480
8490
  const node = targetRef.current;
8481
8491
  if (event.target instanceof HTMLAnchorElement && !event.target.hasAttribute("data-click-region-target-link") || event.target instanceof HTMLButtonElement && !event.target.hasAttribute("data-click-region-target-button")) {
@@ -8492,7 +8502,7 @@ var ClickRegion = ({ children, targetRef }) => {
8492
8502
  },
8493
8503
  [targetRef]
8494
8504
  );
8495
- return (0, import_react28.cloneElement)(import_react28.Children.only(children), {
8505
+ return (0, import_react29.cloneElement)(import_react29.Children.only(children), {
8496
8506
  "data-click-region": true,
8497
8507
  onClick: handleClick
8498
8508
  });
@@ -8525,11 +8535,11 @@ var Collapsible = ({
8525
8535
  Collapsible.displayName = "Collapsible";
8526
8536
 
8527
8537
  // src/components/Collapsible/CollapsibleTrigger.tsx
8528
- var import_react29 = require("react");
8538
+ var import_react30 = require("react");
8529
8539
  var import_react_collapsible2 = require("@radix-ui/react-collapsible");
8530
8540
  var import_jsx_runtime210 = require("react/jsx-runtime");
8531
8541
  var CollapsibleTrigger = ({ children }) => {
8532
- import_react29.Children.only(children);
8542
+ import_react30.Children.only(children);
8533
8543
  return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8534
8544
  };
8535
8545
 
@@ -8556,7 +8566,7 @@ var import_styled_components40 = __toESM(require("styled-components"));
8556
8566
  var import_type_guards29 = require("@wistia/type-guards");
8557
8567
 
8558
8568
  // src/components/Heading/Heading.tsx
8559
- var import_react30 = require("react");
8569
+ var import_react31 = require("react");
8560
8570
  var import_styled_components39 = __toESM(require("styled-components"));
8561
8571
  var import_type_guards28 = require("@wistia/type-guards");
8562
8572
  var import_jsx_runtime212 = require("react/jsx-runtime");
@@ -8652,7 +8662,7 @@ var variantElementMap = {
8652
8662
  heading5: "h5",
8653
8663
  heading6: "h6"
8654
8664
  };
8655
- var HeadingComponent = (0, import_react30.forwardRef)(
8665
+ var HeadingComponent = (0, import_react31.forwardRef)(
8656
8666
  ({
8657
8667
  align = "left",
8658
8668
  colorScheme = "inherit",
@@ -8816,7 +8826,7 @@ DataCards.displayName = "DataCards";
8816
8826
  var import_styled_components43 = __toESM(require("styled-components"));
8817
8827
 
8818
8828
  // src/components/Text/Text.tsx
8819
- var import_react31 = require("react");
8829
+ var import_react32 = require("react");
8820
8830
  var import_styled_components42 = __toESM(require("styled-components"));
8821
8831
  var import_type_guards30 = require("@wistia/type-guards");
8822
8832
  var import_jsx_runtime215 = require("react/jsx-runtime");
@@ -8991,7 +9001,7 @@ var StyledText = import_styled_components42.default.div`
8991
9001
  }
8992
9002
  `}
8993
9003
  `;
8994
- var TextComponent = (0, import_react31.forwardRef)(
9004
+ var TextComponent = (0, import_react32.forwardRef)(
8995
9005
  ({
8996
9006
  align = "left",
8997
9007
  colorScheme = "inherit",
@@ -9104,7 +9114,7 @@ Divider.displayName = "Divider";
9104
9114
 
9105
9115
  // src/components/EditableHeading/EditableHeading.tsx
9106
9116
  var import_styled_components48 = __toESM(require("styled-components"));
9107
- var import_react33 = require("react");
9117
+ var import_react34 = require("react");
9108
9118
 
9109
9119
  // src/components/Tooltip/Tooltip.tsx
9110
9120
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
@@ -9202,7 +9212,7 @@ var Tooltip = ({
9202
9212
  Tooltip.displayName = "Tooltip";
9203
9213
 
9204
9214
  // src/components/Input/Input.tsx
9205
- var import_react32 = require("react");
9215
+ var import_react33 = require("react");
9206
9216
  var import_styled_components47 = __toESM(require("styled-components"));
9207
9217
  var import_type_guards31 = require("@wistia/type-guards");
9208
9218
 
@@ -9337,7 +9347,7 @@ var StyledInputContainer = import_styled_components47.default.div`
9337
9347
  padding-right: 32px;
9338
9348
  }
9339
9349
  `;
9340
- var Input = (0, import_react32.forwardRef)(
9350
+ var Input = (0, import_react33.forwardRef)(
9341
9351
  ({
9342
9352
  fullWidth = true,
9343
9353
  monospace = false,
@@ -9347,7 +9357,7 @@ var Input = (0, import_react32.forwardRef)(
9347
9357
  rightIcon,
9348
9358
  ...props
9349
9359
  }, externalRef) => {
9350
- const internalRef = (0, import_react32.useRef)();
9360
+ const internalRef = (0, import_react33.useRef)();
9351
9361
  const ref = (
9352
9362
  // eslint-disable-next-line react-compiler/react-compiler
9353
9363
  (0, import_type_guards31.isNotNil)(externalRef) && (0, import_type_guards31.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
@@ -9357,14 +9367,14 @@ var Input = (0, import_react32.forwardRef)(
9357
9367
  leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon, { type: "search" });
9358
9368
  }
9359
9369
  if ((0, import_type_guards31.isNotNil)(leftIconToDisplay)) {
9360
- leftIconToDisplay = (0, import_react32.cloneElement)(leftIconToDisplay, {
9370
+ leftIconToDisplay = (0, import_react33.cloneElement)(leftIconToDisplay, {
9361
9371
  size: "md",
9362
9372
  className: "wui-input-left-icon"
9363
9373
  });
9364
9374
  }
9365
9375
  let rightIconToDisplay = rightIcon;
9366
9376
  if ((0, import_type_guards31.isNotNil)(rightIconToDisplay)) {
9367
- rightIconToDisplay = (0, import_react32.cloneElement)(rightIconToDisplay, {
9377
+ rightIconToDisplay = (0, import_react33.cloneElement)(rightIconToDisplay, {
9368
9378
  size: "md",
9369
9379
  className: "wui-input-right-icon"
9370
9380
  });
@@ -9456,11 +9466,11 @@ var EditableHeading = ({
9456
9466
  __forceEditing = false,
9457
9467
  editingDisabled = false
9458
9468
  }) => {
9459
- const [isEditing, setIsEditing] = (0, import_react33.useState)(false);
9460
- const [value, setValue] = (0, import_react33.useState)(children);
9461
- const [previousValue, setPreviousValue] = (0, import_react33.useState)(children);
9462
- const [headingHeight, setHeadingHeight] = (0, import_react33.useState)("60");
9463
- const headingRef = (0, import_react33.useRef)(null);
9469
+ const [isEditing, setIsEditing] = (0, import_react34.useState)(false);
9470
+ const [value, setValue] = (0, import_react34.useState)(children);
9471
+ const [previousValue, setPreviousValue] = (0, import_react34.useState)(children);
9472
+ const [headingHeight, setHeadingHeight] = (0, import_react34.useState)("60");
9473
+ const headingRef = (0, import_react34.useRef)(null);
9464
9474
  const handleSetEditing = (editing) => {
9465
9475
  if (editingDisabled) return;
9466
9476
  if (editing && headingRef.current) {
@@ -9539,12 +9549,12 @@ var EditableHeading = ({
9539
9549
  };
9540
9550
 
9541
9551
  // src/components/Form/Form.tsx
9542
- var import_react35 = require("react");
9552
+ var import_react36 = require("react");
9543
9553
  var import_styled_components50 = __toESM(require("styled-components"));
9544
9554
  var import_type_guards32 = require("@wistia/type-guards");
9545
9555
 
9546
9556
  // src/components/Stack/Stack.tsx
9547
- var import_react34 = require("react");
9557
+ var import_react35 = require("react");
9548
9558
  var import_styled_components49 = __toESM(require("styled-components"));
9549
9559
  var import_jsx_runtime221 = require("react/jsx-runtime");
9550
9560
  var DEFAULT_ELEMENT4 = "div";
@@ -9554,7 +9564,7 @@ var StyledStack = import_styled_components49.default.div`
9554
9564
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
9555
9565
  align-items: ${({ $alignItems }) => $alignItems};
9556
9566
  `;
9557
- var StackComponent = (0, import_react34.forwardRef)(
9567
+ var StackComponent = (0, import_react35.forwardRef)(
9558
9568
  ({ renderAs, direction = "vertical", gap = "space-02", alignItems = "stretch", ...props }, ref) => {
9559
9569
  const responsiveGap = useResponsiveProp(gap);
9560
9570
  const responsiveDirection = useResponsiveProp(direction);
@@ -9583,11 +9593,11 @@ var StyledForm = import_styled_components50.default.form`
9583
9593
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9584
9594
  align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9585
9595
  `;
9586
- var FormContext = (0, import_react35.createContext)({
9596
+ var FormContext = (0, import_react36.createContext)({
9587
9597
  values: {},
9588
9598
  errors: {},
9589
9599
  hasSubmitted: false,
9590
- formId: "",
9600
+ formId: "NO_FORM",
9591
9601
  labelPosition: "block"
9592
9602
  });
9593
9603
  var FormComponent = ({
@@ -9599,11 +9609,11 @@ var FormComponent = ({
9599
9609
  fullWidth = false,
9600
9610
  ...props
9601
9611
  }, forwardedRef) => {
9602
- const [errors, setErrors] = (0, import_react35.useState)({});
9603
- const [hasSubmitted, setHasSubmitted] = (0, import_react35.useState)(false);
9604
- const innerRef = (0, import_react35.useRef)();
9612
+ const [errors, setErrors] = (0, import_react36.useState)({});
9613
+ const [hasSubmitted, setHasSubmitted] = (0, import_react36.useState)(false);
9614
+ const innerRef = (0, import_react36.useRef)();
9605
9615
  const ref = forwardedRef ?? innerRef;
9606
- const autoId = (0, import_react35.useId)();
9616
+ const autoId = (0, import_react36.useId)();
9607
9617
  const id = props.id ?? autoId;
9608
9618
  const handleValidate = (nextFormData) => {
9609
9619
  const nextData = Object.fromEntries(nextFormData.entries());
@@ -9645,7 +9655,7 @@ var FormComponent = ({
9645
9655
  void action(null);
9646
9656
  }
9647
9657
  };
9648
- const context = (0, import_react35.useMemo)(() => {
9658
+ const context = (0, import_react36.useMemo)(() => {
9649
9659
  return {
9650
9660
  values,
9651
9661
  errors,
@@ -9674,15 +9684,15 @@ var FormComponent = ({
9674
9684
  );
9675
9685
  };
9676
9686
  FormComponent.displayName = "Form";
9677
- var Form = (0, import_react35.forwardRef)(FormComponent);
9687
+ var Form = (0, import_react36.forwardRef)(FormComponent);
9678
9688
 
9679
9689
  // src/components/Form/useFormState.tsx
9680
- var import_react36 = require("react");
9690
+ var import_react37 = require("react");
9681
9691
  var useFormState = (action, initialData = {}) => {
9682
- const [data, setData] = (0, import_react36.useState)(initialData);
9683
- const [isPending, setIsPending] = (0, import_react36.useState)(false);
9684
- const [error, setError] = (0, import_react36.useState)(null);
9685
- const formAction = (0, import_react36.useCallback)(
9692
+ const [data, setData] = (0, import_react37.useState)(initialData);
9693
+ const [isPending, setIsPending] = (0, import_react37.useState)(false);
9694
+ const [error, setError] = (0, import_react37.useState)(null);
9695
+ const formAction = (0, import_react37.useCallback)(
9686
9696
  async (nextFormData) => {
9687
9697
  if (nextFormData === null) {
9688
9698
  setData(initialData);
@@ -9713,15 +9723,15 @@ var useFormState = (action, initialData = {}) => {
9713
9723
  };
9714
9724
 
9715
9725
  // src/components/Form/FormErrorSummary.tsx
9716
- var import_react37 = require("react");
9726
+ var import_react38 = require("react");
9717
9727
  var import_type_guards33 = require("@wistia/type-guards");
9718
9728
  var import_jsx_runtime223 = require("react/jsx-runtime");
9719
9729
  var ErrorItem = ({ name, error, formId }) => {
9720
9730
  return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9721
9731
  };
9722
9732
  var FormErrorSummary = ({ description }) => {
9723
- const ref = (0, import_react37.useRef)(null);
9724
- const { formId, errors, hasSubmitted } = (0, import_react37.useContext)(FormContext);
9733
+ const ref = (0, import_react38.useRef)(null);
9734
+ const { formId, errors, hasSubmitted } = (0, import_react38.useContext)(FormContext);
9725
9735
  const isValid = Object.keys(errors).length === 0;
9726
9736
  if (isValid || !hasSubmitted) {
9727
9737
  return null;
@@ -9751,7 +9761,7 @@ var FormErrorSummary = ({ description }) => {
9751
9761
  };
9752
9762
 
9753
9763
  // src/components/FormField/FormField.tsx
9754
- var import_react40 = require("react");
9764
+ var import_react41 = require("react");
9755
9765
  var import_styled_components53 = __toESM(require("styled-components"));
9756
9766
  var import_type_guards34 = require("@wistia/type-guards");
9757
9767
 
@@ -9816,11 +9826,11 @@ var Label = ({
9816
9826
  Label.displayName = "Label";
9817
9827
 
9818
9828
  // src/components/FormGroup/CheckboxGroup.tsx
9819
- var import_react39 = require("react");
9829
+ var import_react40 = require("react");
9820
9830
 
9821
9831
  // src/components/FormGroup/FormGroup.tsx
9822
9832
  var import_styled_components52 = __toESM(require("styled-components"));
9823
- var import_react38 = require("react");
9833
+ var import_react39 = require("react");
9824
9834
  var import_jsx_runtime225 = require("react/jsx-runtime");
9825
9835
  var StyledFieldset = import_styled_components52.default.fieldset`
9826
9836
  border: 0;
@@ -9829,7 +9839,7 @@ var StyledLegend = import_styled_components52.default.legend`
9829
9839
  margin-bottom: var(--space-01);
9830
9840
  `;
9831
9841
  var FormGroup = ({ children, label, ...props }) => {
9832
- const ref = (0, import_react38.useRef)();
9842
+ const ref = (0, import_react39.useRef)();
9833
9843
  return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
9834
9844
  Stack,
9835
9845
  {
@@ -9854,7 +9864,7 @@ FormGroup.displayName = "FormGroup";
9854
9864
 
9855
9865
  // src/components/FormGroup/CheckboxGroup.tsx
9856
9866
  var import_jsx_runtime226 = require("react/jsx-runtime");
9857
- var CheckboxGroupContext = (0, import_react39.createContext)(null);
9867
+ var CheckboxGroupContext = (0, import_react40.createContext)(null);
9858
9868
  var CheckboxGroup = ({
9859
9869
  children,
9860
9870
  name,
@@ -9862,7 +9872,7 @@ var CheckboxGroup = ({
9862
9872
  value,
9863
9873
  ...props
9864
9874
  }) => {
9865
- const context = (0, import_react39.useMemo)(() => {
9875
+ const context = (0, import_react40.useMemo)(() => {
9866
9876
  return {
9867
9877
  name,
9868
9878
  onChange
@@ -9947,8 +9957,8 @@ var FormField = ({
9947
9957
  value,
9948
9958
  ...props
9949
9959
  }) => {
9950
- const formState = (0, import_react40.useContext)(FormContext);
9951
- const checkboxGroup = (0, import_react40.useContext)(CheckboxGroupContext);
9960
+ const formState = (0, import_react41.useContext)(FormContext);
9961
+ const checkboxGroup = (0, import_react41.useContext)(CheckboxGroupContext);
9952
9962
  const defaultValue = formState.values[name];
9953
9963
  const isIntegratedLabel = children.type === Checkbox;
9954
9964
  const computedId = id ?? `${formState.formId}-${name}`;
@@ -9986,7 +9996,7 @@ var FormField = ({
9986
9996
  "aria-invalid": (0, import_type_guards34.isNotNil)(error)
9987
9997
  };
9988
9998
  }
9989
- import_react40.Children.only(children);
9999
+ import_react41.Children.only(children);
9990
10000
  return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
9991
10001
  StyledFormField,
9992
10002
  {
@@ -9995,7 +10005,7 @@ var FormField = ({
9995
10005
  children: [
9996
10006
  !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Label, { htmlFor: computedId, children: label }),
9997
10007
  (0, import_type_guards34.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9998
- (0, import_react40.cloneElement)(children, childProps),
10008
+ (0, import_react41.cloneElement)(children, childProps),
9999
10009
  (0, import_type_guards34.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, { children: [
10000
10010
  /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", {}),
10001
10011
  /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
@@ -10013,9 +10023,9 @@ var FormField = ({
10013
10023
  FormField.displayName = "FormField";
10014
10024
 
10015
10025
  // src/components/FormGroup/RadioGroup.tsx
10016
- var import_react41 = require("react");
10026
+ var import_react42 = require("react");
10017
10027
  var import_jsx_runtime228 = require("react/jsx-runtime");
10018
- var RadioGroupContext = (0, import_react41.createContext)(null);
10028
+ var RadioGroupContext = (0, import_react42.createContext)(null);
10019
10029
  var RadioGroup = ({
10020
10030
  children,
10021
10031
  name,
@@ -10023,7 +10033,7 @@ var RadioGroup = ({
10023
10033
  value,
10024
10034
  ...props
10025
10035
  }) => {
10026
- const context = (0, import_react41.useMemo)(() => {
10036
+ const context = (0, import_react42.useMemo)(() => {
10027
10037
  return {
10028
10038
  name,
10029
10039
  onChange
@@ -10034,7 +10044,7 @@ var RadioGroup = ({
10034
10044
  RadioGroup.displayName = "RadioGroup";
10035
10045
 
10036
10046
  // src/components/IconButton/IconButton.tsx
10037
- var import_react42 = require("react");
10047
+ var import_react43 = require("react");
10038
10048
  var import_styled_components54 = __toESM(require("styled-components"));
10039
10049
  var import_jsx_runtime229 = require("react/jsx-runtime");
10040
10050
  var StyledButton2 = (0, import_styled_components54.default)(Button)`
@@ -10051,7 +10061,7 @@ var StyledButton2 = (0, import_styled_components54.default)(Button)`
10051
10061
  align-items: center;
10052
10062
  line-height: 1;
10053
10063
  `;
10054
- var IconButton = (0, import_react42.forwardRef)(
10064
+ var IconButton = (0, import_react43.forwardRef)(
10055
10065
  ({ children, label, size = "md", ...props }, ref) => {
10056
10066
  const responsiveSize = useResponsiveProp(size);
10057
10067
  return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
@@ -10062,7 +10072,7 @@ var IconButton = (0, import_react42.forwardRef)(
10062
10072
  "aria-label": label,
10063
10073
  "data-wistia-ui-icon-button": true,
10064
10074
  size: responsiveSize,
10065
- children: (0, import_react42.cloneElement)(import_react42.Children.only(children), {
10075
+ children: (0, import_react43.cloneElement)(import_react43.Children.only(children), {
10066
10076
  size: responsiveSize
10067
10077
  })
10068
10078
  }
@@ -10073,7 +10083,7 @@ IconButton.displayName = "IconButton";
10073
10083
 
10074
10084
  // src/components/InputClickToCopy/InputClickToCopy.tsx
10075
10085
  var import_styled_components55 = __toESM(require("styled-components"));
10076
- var import_react43 = require("react");
10086
+ var import_react44 = require("react");
10077
10087
  var import_type_guards35 = require("@wistia/type-guards");
10078
10088
  var import_jsx_runtime230 = require("react/jsx-runtime");
10079
10089
  var StyledInput2 = (0, import_styled_components55.default)(Input)`
@@ -10086,10 +10096,10 @@ var StyledInput2 = (0, import_styled_components55.default)(Input)`
10086
10096
  }
10087
10097
  `;
10088
10098
  var COPY_SUCCESS_DURATION = 2e3;
10089
- var InputClickToCopy = (0, import_react43.forwardRef)(
10099
+ var InputClickToCopy = (0, import_react44.forwardRef)(
10090
10100
  ({ value, onCopy, ...props }, ref) => {
10091
- const [isCopied, setIsCopied] = (0, import_react43.useState)(false);
10092
- (0, import_react43.useEffect)(() => {
10101
+ const [isCopied, setIsCopied] = (0, import_react44.useState)(false);
10102
+ (0, import_react44.useEffect)(() => {
10093
10103
  if (isCopied) {
10094
10104
  const timeout = setTimeout(() => {
10095
10105
  setIsCopied(false);
@@ -10135,129 +10145,20 @@ var InputClickToCopy = (0, import_react43.forwardRef)(
10135
10145
  );
10136
10146
  InputClickToCopy.displayName = "InputClickToCopy";
10137
10147
 
10138
- // src/components/KeyboardShortcut/KeyboardShortcut.tsx
10139
- var import_styled_components56 = __toESM(require("styled-components"));
10140
- var import_type_guards36 = require("@wistia/type-guards");
10141
- var import_jsx_runtime231 = require("react/jsx-runtime");
10142
- var StyledKeyboardShortcut = import_styled_components56.default.div`
10143
- align-items: center;
10144
- display: flex;
10145
- gap: var(--wui-space-02);
10146
- ${({ $fullWidth }) => $fullWidth && "width: 100%; justify-content: space-between;"}
10147
- `;
10148
- var StyledKey = import_styled_components56.default.kbd`
10149
- align-items: center;
10150
- background: var(--wui-color-bg-surface-secondary);
10151
- border-bottom: 1px solid var(--wui-color-border-secondary);
10152
- border-radius: 4px;
10153
- color: var(--wui-color-text);
10154
- display: flex;
10155
- font-family: InterVariable, sans-serif;
10156
-
10157
- /* Adds serif to uppercase "I" to distinguish it from "l": https://rsms.me/inter/glyphs/?g=I.1 */
10158
- font-feature-settings: 'cv08' on;
10159
- font-size: 10px;
10160
-
10161
- /* Adds a slash to the zero to distinguish it from the letter "O": https://rsms.me/inter/glyphs/?g=zero.tf.slash */
10162
-
10163
- /* Adds tabular numbers to ensure the width of the key is consistent */
10164
- font-variant-numeric: slashed-zero tabular-nums;
10165
- height: 20px;
10166
- justify-content: center;
10167
- line-height: 20px;
10168
- min-width: 20px;
10169
- padding: 0 var(--wui-space-01);
10170
- `;
10171
- var Label2 = import_styled_components56.default.span`
10172
- color: var(--wui-color-text);
10173
- font-size: 12px;
10174
- `;
10175
- var KeysContainer = import_styled_components56.default.div`
10176
- display: flex;
10177
- gap: var(--wui-space-01);
10178
- `;
10179
- var keyToString = (key) => {
10180
- switch (key) {
10181
- // Arrow Keys
10182
- case "ArrowDown":
10183
- return "\u2193";
10184
- case "ArrowLeft":
10185
- return "\u2190";
10186
- case "ArrowRight":
10187
- return "\u2192";
10188
- case "ArrowUp":
10189
- return "\u2191";
10190
- // Modifier Keys
10191
- case "Alt":
10192
- return "Alt";
10193
- case "Cmd":
10194
- case "Meta":
10195
- if (/Mac|iPhone|iPad/.test(window.navigator.userAgent)) {
10196
- return "\u2318";
10197
- }
10198
- if (window.navigator.userAgent.includes("Win")) {
10199
- return "\u229E";
10200
- }
10201
- return "^";
10202
- case "Ctrl":
10203
- return "Ctrl";
10204
- case "Option":
10205
- return "\u2325";
10206
- case "Shift":
10207
- return "\u21E7";
10208
- // Whitespace Keys
10209
- case "Enter":
10210
- return "\u21B5";
10211
- case "Space":
10212
- return "Space";
10213
- case "Tab":
10214
- return "Tab";
10215
- case "Backspace":
10216
- return "Del";
10217
- case "Esc":
10218
- return "Esc";
10219
- default:
10220
- return key.toUpperCase();
10221
- }
10222
- };
10223
- var KeyboardShortcut = ({
10224
- label,
10225
- keyboardKeys,
10226
- fullWidth = false,
10227
- ...otherProps
10228
- }) => /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
10229
- StyledKeyboardShortcut,
10230
- {
10231
- $fullWidth: fullWidth,
10232
- ...otherProps,
10233
- children: [
10234
- (0, import_type_guards36.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Label2, { children: label }),
10235
- /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(KeysContainer, { children: (Array.isArray(keyboardKeys) ? keyboardKeys : [keyboardKeys]).map((keyboardKey, index) => /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
10236
- StyledKey,
10237
- {
10238
- children: keyToString(keyboardKey)
10239
- },
10240
- index
10241
- )) })
10242
- ]
10243
- }
10244
- );
10245
- KeyboardShortcut.displayName = "KeyboardShortcut";
10246
-
10247
10148
  // src/components/Menu/Menu.tsx
10248
- var import_styled_components57 = __toESM(require("styled-components"));
10149
+ var import_styled_components56 = __toESM(require("styled-components"));
10249
10150
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
10250
- var import_type_guards37 = require("@wistia/type-guards");
10251
- var import_react45 = require("react");
10151
+ var import_type_guards36 = require("@wistia/type-guards");
10152
+ var import_react46 = require("react");
10252
10153
 
10253
10154
  // src/components/Menu/MenuContext.tsx
10254
- var import_react44 = require("react");
10255
- var MenuContext = (0, import_react44.createContext)({ compact: false });
10256
- var useMenuContext = () => (0, import_react44.useContext)(MenuContext);
10155
+ var import_react45 = require("react");
10156
+ var MenuContext = (0, import_react45.createContext)({ compact: false });
10157
+ var useMenuContext = () => (0, import_react45.useContext)(MenuContext);
10257
10158
 
10258
10159
  // src/components/Menu/Menu.tsx
10259
- var import_jsx_runtime232 = require("react/jsx-runtime");
10260
- var open = import_styled_components57.keyframes`
10160
+ var import_jsx_runtime231 = require("react/jsx-runtime");
10161
+ var open = import_styled_components56.keyframes`
10261
10162
  from {
10262
10163
  opacity: 0;
10263
10164
  transform: scale(.97) translateY(-8px);
@@ -10267,7 +10168,7 @@ var open = import_styled_components57.keyframes`
10267
10168
  transform: scale(1);
10268
10169
  }
10269
10170
  `;
10270
- var close = import_styled_components57.keyframes`
10171
+ var close = import_styled_components56.keyframes`
10271
10172
  from {
10272
10173
  opacity: 1;
10273
10174
  transform: scale(1);
@@ -10277,7 +10178,7 @@ var close = import_styled_components57.keyframes`
10277
10178
  transform: scale(.97) translateY(-8px);
10278
10179
  }
10279
10180
  `;
10280
- var menuItemCss = import_styled_components57.css`
10181
+ var menuItemCss = import_styled_components56.css`
10281
10182
  --menu-label-description-gap: var(--wui-space-01);
10282
10183
  --menu-item-inner-gap: var(--wui-space-03);
10283
10184
  --menu-item-left-icon-size: 24px;
@@ -10288,7 +10189,7 @@ var menuItemCss = import_styled_components57.css`
10288
10189
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
10289
10190
  --menu-divider-margin: var(--wui-space-02);
10290
10191
  `;
10291
- var compactMenuItemCss = import_styled_components57.css`
10192
+ var compactMenuItemCss = import_styled_components56.css`
10292
10193
  --menu-label-description-gap: 0;
10293
10194
  --menu-item-inner-gap: var(--wui-space-02);
10294
10195
  --menu-item-left-icon-size: 16px;
@@ -10299,7 +10200,7 @@ var compactMenuItemCss = import_styled_components57.css`
10299
10200
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
10300
10201
  --menu-divider-margin: var(--wui-space-01);
10301
10202
  `;
10302
- var menuContentCss = import_styled_components57.css`
10203
+ var menuContentCss = import_styled_components56.css`
10303
10204
  --menu-font-family: var(--wui-typography-family-default);
10304
10205
  --menu-bg: var(--wui-color-bg-surface);
10305
10206
  --menu-shadow: var(--wui-elevation-01);
@@ -10341,7 +10242,7 @@ var menuContentCss = import_styled_components57.css`
10341
10242
  margin: var(--menu-divider-margin) 0;
10342
10243
  }
10343
10244
  `;
10344
- var MenuContent = (0, import_styled_components57.default)(import_react_dropdown_menu.DropdownMenuContent)`
10245
+ var MenuContent = (0, import_styled_components56.default)(import_react_dropdown_menu.DropdownMenuContent)`
10345
10246
  ${menuContentCss}
10346
10247
  `;
10347
10248
  var Menu = ({
@@ -10357,9 +10258,9 @@ var Menu = ({
10357
10258
  onInteractOutside,
10358
10259
  ...props
10359
10260
  }) => {
10360
- const contextValue = (0, import_react45.useMemo)(() => ({ compact }), [compact]);
10261
+ const contextValue = (0, import_react46.useMemo)(() => ({ compact }), [compact]);
10361
10262
  let controlProps = {
10362
- ...(0, import_type_guards37.isNotNil)(onOpenChange) && (0, import_type_guards37.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
10263
+ ...(0, import_type_guards36.isNotNil)(onOpenChange) && (0, import_type_guards36.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
10363
10264
  };
10364
10265
  if (disabled) {
10365
10266
  controlProps = {
@@ -10367,24 +10268,24 @@ var Menu = ({
10367
10268
  onOpenChange: () => null
10368
10269
  };
10369
10270
  }
10370
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
10271
+ return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
10371
10272
  import_react_dropdown_menu.DropdownMenu,
10372
10273
  {
10373
10274
  modal: false,
10374
10275
  ...controlProps,
10375
10276
  children: [
10376
- /* @__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)(
10277
+ /* @__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)(
10377
10278
  Button,
10378
10279
  {
10379
10280
  "aria-expanded": isOpen,
10380
10281
  disabled,
10381
10282
  forceState: isOpen ? "active" : void 0,
10382
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Icon, { type: "caret-down" }),
10283
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Icon, { type: "caret-down" }),
10383
10284
  ...triggerProps,
10384
10285
  children: label
10385
10286
  }
10386
10287
  ) }),
10387
- /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
10288
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
10388
10289
  MenuContent,
10389
10290
  {
10390
10291
  ...props,
@@ -10404,19 +10305,19 @@ var Menu = ({
10404
10305
  Menu.displayName = "Menu";
10405
10306
 
10406
10307
  // src/components/Menu/MenuLabel.tsx
10407
- var import_styled_components58 = __toESM(require("styled-components"));
10308
+ var import_styled_components57 = __toESM(require("styled-components"));
10408
10309
  var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
10409
- var import_jsx_runtime233 = require("react/jsx-runtime");
10410
- var StyledMenuLabel = (0, import_styled_components58.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
10310
+ var import_jsx_runtime232 = require("react/jsx-runtime");
10311
+ var StyledMenuLabel = (0, import_styled_components57.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
10411
10312
  padding: var(--wui-space-02);
10412
10313
  `;
10413
10314
  var MenuLabel = ({ children, ...props }) => {
10414
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
10315
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
10415
10316
  StyledMenuLabel,
10416
10317
  {
10417
10318
  asChild: true,
10418
10319
  ...props,
10419
- children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
10320
+ children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
10420
10321
  Heading,
10421
10322
  {
10422
10323
  renderAs: "span",
@@ -10431,17 +10332,17 @@ var MenuLabel = ({ children, ...props }) => {
10431
10332
  MenuLabel.displayName = "MenuLabel";
10432
10333
 
10433
10334
  // src/components/Menu/SubMenu.tsx
10434
- var import_react47 = require("react");
10435
- var import_styled_components61 = __toESM(require("styled-components"));
10335
+ var import_react48 = require("react");
10336
+ var import_styled_components60 = __toESM(require("styled-components"));
10436
10337
  var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
10437
- var import_type_guards39 = require("@wistia/type-guards");
10338
+ var import_type_guards38 = require("@wistia/type-guards");
10438
10339
 
10439
10340
  // src/components/Menu/MenuItemButton.tsx
10440
- var import_react46 = require("react");
10441
- var import_styled_components59 = __toESM(require("styled-components"));
10442
- var import_type_guards38 = require("@wistia/type-guards");
10443
- var import_jsx_runtime234 = require("react/jsx-runtime");
10444
- var StyledButton3 = (0, import_styled_components59.default)(Button)`
10341
+ var import_react47 = require("react");
10342
+ var import_styled_components58 = __toESM(require("styled-components"));
10343
+ var import_type_guards37 = require("@wistia/type-guards");
10344
+ var import_jsx_runtime233 = require("react/jsx-runtime");
10345
+ var StyledButton3 = (0, import_styled_components58.default)(Button)`
10445
10346
  ${({ colorScheme }) => getColorScheme(colorScheme)};
10446
10347
 
10447
10348
  display: flex;
@@ -10480,7 +10381,7 @@ var StyledButton3 = (0, import_styled_components59.default)(Button)`
10480
10381
  padding-left: var(--wui-space-04);
10481
10382
  }
10482
10383
  `;
10483
- var StyledLeftIconContainer = import_styled_components59.default.div`
10384
+ var StyledLeftIconContainer = import_styled_components58.default.div`
10484
10385
  height: var(--menu-item-left-icon-size);
10485
10386
  width: var(--menu-item-left-icon-size);
10486
10387
 
@@ -10491,7 +10392,7 @@ var StyledLeftIconContainer = import_styled_components59.default.div`
10491
10392
  }
10492
10393
  }
10493
10394
  `;
10494
- var StyledRightIconContainer = import_styled_components59.default.div`
10395
+ var StyledRightIconContainer = import_styled_components58.default.div`
10495
10396
  height: var(--menu-item-right-icon-size);
10496
10397
  width: var(--menu-item-right-icon-size);
10497
10398
 
@@ -10502,28 +10403,28 @@ var StyledRightIconContainer = import_styled_components59.default.div`
10502
10403
  }
10503
10404
  }
10504
10405
  `;
10505
- var StyledLabelAndDescriptionContainer = import_styled_components59.default.div`
10406
+ var StyledLabelAndDescriptionContainer = import_styled_components58.default.div`
10506
10407
  display: flex;
10507
10408
  flex-direction: column;
10508
10409
  gap: var(--menu-label-description-gap);
10509
10410
  flex-basis: 100%;
10510
10411
  `;
10511
- var StyledBadgeContainer = import_styled_components59.default.div`
10412
+ var StyledBadgeContainer = import_styled_components58.default.div`
10512
10413
  align-self: start;
10513
10414
  justify-self: end;
10514
10415
  font-size: var(--wui-typography-label-4-size);
10515
10416
  color: var(--wui-color-text-secondary);
10516
10417
  `;
10517
- var MenuItemButton = (0, import_react46.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
10418
+ var MenuItemButton = (0, import_react47.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
10518
10419
  let { colorScheme, badge } = props;
10519
10420
  if (appearance === "dangerous") {
10520
- if ((0, import_type_guards38.isNotUndefined)(colorScheme)) {
10421
+ if ((0, import_type_guards37.isNotUndefined)(colorScheme)) {
10521
10422
  console.warn("colorScheme prop is ignored when appearance is dangerous");
10522
10423
  }
10523
10424
  colorScheme = "error";
10524
10425
  }
10525
10426
  if (appearance === "gated") {
10526
- badge = /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
10427
+ badge = /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
10527
10428
  Icon,
10528
10429
  {
10529
10430
  colorScheme: "purple",
@@ -10535,7 +10436,7 @@ var MenuItemButton = (0, import_react46.forwardRef)(({ children, appearance, com
10535
10436
  }
10536
10437
  );
10537
10438
  }
10538
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
10439
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
10539
10440
  StyledButton3,
10540
10441
  {
10541
10442
  ...props,
@@ -10545,10 +10446,10 @@ var MenuItemButton = (0, import_react46.forwardRef)(({ children, appearance, com
10545
10446
  fullWidth: true,
10546
10447
  unstyled: true,
10547
10448
  children: [
10548
- props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10549
- /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledLabelAndDescriptionContainer, { children }),
10550
- (0, import_type_guards38.isNotNil)(badge) || (0, import_type_guards38.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
10551
- props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
10449
+ props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10450
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StyledLabelAndDescriptionContainer, { children }),
10451
+ (0, import_type_guards37.isNotNil)(badge) || (0, import_type_guards37.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
10452
+ props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
10552
10453
  ]
10553
10454
  }
10554
10455
  );
@@ -10556,33 +10457,33 @@ var MenuItemButton = (0, import_react46.forwardRef)(({ children, appearance, com
10556
10457
  MenuItemButton.displayName = "MenuItemButton";
10557
10458
 
10558
10459
  // src/components/Menu/MenuItemLabelDescription.tsx
10559
- var import_styled_components60 = __toESM(require("styled-components"));
10560
- var import_jsx_runtime235 = require("react/jsx-runtime");
10561
- var StyledMenuItemLabel = import_styled_components60.default.span``;
10562
- var StyledMenuItemDescription = (0, import_styled_components60.default)(Text).attrs({
10460
+ var import_styled_components59 = __toESM(require("styled-components"));
10461
+ var import_jsx_runtime234 = require("react/jsx-runtime");
10462
+ var StyledMenuItemLabel = import_styled_components59.default.span``;
10463
+ var StyledMenuItemDescription = (0, import_styled_components59.default)(Text).attrs({
10563
10464
  variant: "body4",
10564
10465
  prominence: "secondary"
10565
10466
  })``;
10566
10467
  var MenuItemLabel = ({ children }) => {
10567
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StyledMenuItemLabel, { children });
10468
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledMenuItemLabel, { children });
10568
10469
  };
10569
10470
  var MenuItemDescription = ({ children }) => {
10570
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StyledMenuItemDescription, { children });
10471
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(StyledMenuItemDescription, { children });
10571
10472
  };
10572
10473
 
10573
10474
  // src/components/Menu/SubMenu.tsx
10574
- var import_jsx_runtime236 = require("react/jsx-runtime");
10575
- var SubMenuContent = (0, import_styled_components61.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
10475
+ var import_jsx_runtime235 = require("react/jsx-runtime");
10476
+ var SubMenuContent = (0, import_styled_components60.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
10576
10477
  ${menuContentCss}
10577
10478
 
10578
10479
  ${mq.smAndDown} {
10579
10480
  transform: translateX(-100%) !important;
10580
10481
  }
10581
10482
  `;
10582
- var StyledMobileSubMenuItems = import_styled_components61.default.div`
10483
+ var StyledMobileSubMenuItems = import_styled_components60.default.div`
10583
10484
  margin-left: var(--wui-space-04);
10584
10485
  `;
10585
- var StyledSubTrigger = (0, import_styled_components61.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
10486
+ var StyledSubTrigger = (0, import_styled_components60.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
10586
10487
  outline: none;
10587
10488
 
10588
10489
  &[data-state='open'],
@@ -10593,12 +10494,12 @@ var StyledSubTrigger = (0, import_styled_components61.default)(import_react_drop
10593
10494
  var SubMenuTrigger = ({ icon, ...props }) => {
10594
10495
  const { isSmAndUp } = useMq();
10595
10496
  const Trigger4 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
10596
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10497
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10597
10498
  MenuItemButton,
10598
10499
  {
10599
10500
  ...props,
10600
10501
  leftIcon: icon,
10601
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Icon, { type: "caret-right" })
10502
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Icon, { type: "caret-right" })
10602
10503
  }
10603
10504
  ) });
10604
10505
  };
@@ -10610,16 +10511,16 @@ var SubMenu = ({
10610
10511
  ...props
10611
10512
  }) => {
10612
10513
  const { isSmAndUp } = useMq();
10613
- const [isExpanded, setIsExpanded] = (0, import_react47.useState)(false);
10514
+ const [isExpanded, setIsExpanded] = (0, import_react48.useState)(false);
10614
10515
  const { compact } = useMenuContext();
10615
- return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
10616
- /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(SubMenuTrigger, { ...props, children: [
10617
- /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuItemLabel, { children: label }),
10618
- (0, import_type_guards39.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuItemDescription, { children: description }) : null
10516
+ return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
10517
+ /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(SubMenuTrigger, { ...props, children: [
10518
+ /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(MenuItemLabel, { children: label }),
10519
+ (0, import_type_guards38.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(MenuItemDescription, { children: description }) : null
10619
10520
  ] }),
10620
- /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(SubMenuContent, { $compact: compact, children }) })
10621
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
10622
- /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
10521
+ /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(SubMenuContent, { $compact: compact, children }) })
10522
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
10523
+ /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
10623
10524
  SubMenuTrigger,
10624
10525
  {
10625
10526
  ...props,
@@ -10628,28 +10529,28 @@ var SubMenu = ({
10628
10529
  setIsExpanded((prev) => !prev);
10629
10530
  },
10630
10531
  children: [
10631
- /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuItemLabel, { children: label }),
10632
- /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuItemDescription, { children: description })
10532
+ /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(MenuItemLabel, { children: label }),
10533
+ /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(MenuItemDescription, { children: description })
10633
10534
  ]
10634
10535
  }
10635
10536
  ),
10636
- /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10537
+ /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10637
10538
  ] });
10638
10539
  };
10639
10540
  SubMenu.displayName = "SubMenu";
10640
10541
 
10641
10542
  // src/components/Menu/MenuItem.tsx
10642
- var import_react48 = require("react");
10543
+ var import_react49 = require("react");
10643
10544
  var import_react_dropdown_menu4 = require("@radix-ui/react-dropdown-menu");
10644
- var import_jsx_runtime237 = require("react/jsx-runtime");
10645
- var MenuItem = (0, import_react48.forwardRef)(
10545
+ var import_jsx_runtime236 = require("react/jsx-runtime");
10546
+ var MenuItem = (0, import_react49.forwardRef)(
10646
10547
  ({ onSelect = () => null, ...props }, ref) => {
10647
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10548
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10648
10549
  import_react_dropdown_menu4.DropdownMenuItem,
10649
10550
  {
10650
10551
  asChild: true,
10651
10552
  onSelect,
10652
- children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10553
+ children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10653
10554
  MenuItemButton,
10654
10555
  {
10655
10556
  ...props,
@@ -10665,10 +10566,10 @@ MenuItem.displayName = "MenuItem";
10665
10566
 
10666
10567
  // src/components/Menu/MenuRadioGroup.tsx
10667
10568
  var import_react_dropdown_menu5 = require("@radix-ui/react-dropdown-menu");
10668
- var import_jsx_runtime238 = require("react/jsx-runtime");
10569
+ var import_jsx_runtime237 = require("react/jsx-runtime");
10669
10570
  var MenuRadioGroup = ({ children, label, ...props }) => {
10670
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
10671
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(MenuLabel, { children: label }),
10571
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
10572
+ /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(MenuLabel, { children: label }),
10672
10573
  children
10673
10574
  ] });
10674
10575
  };
@@ -10676,11 +10577,11 @@ MenuRadioGroup.displayName = "MenuRadioGroup";
10676
10577
 
10677
10578
  // src/components/Menu/RadioMenuItem.tsx
10678
10579
  var import_react_dropdown_menu6 = require("@radix-ui/react-dropdown-menu");
10679
- var import_jsx_runtime239 = require("react/jsx-runtime");
10580
+ var import_jsx_runtime238 = require("react/jsx-runtime");
10680
10581
  var RadioMenuItem = ({
10681
10582
  onSelect,
10682
10583
  value,
10683
- indicator = /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10584
+ indicator = /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10684
10585
  Icon,
10685
10586
  {
10686
10587
  size: "sm",
@@ -10690,17 +10591,17 @@ var RadioMenuItem = ({
10690
10591
  ...props
10691
10592
  }) => {
10692
10593
  const extraProps = onSelect ? { onSelect } : {};
10693
- return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10594
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10694
10595
  import_react_dropdown_menu6.DropdownMenuRadioItem,
10695
10596
  {
10696
10597
  ...extraProps,
10697
10598
  asChild: true,
10698
10599
  value,
10699
- children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10600
+ children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10700
10601
  MenuItemButton,
10701
10602
  {
10702
10603
  ...props,
10703
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
10604
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
10704
10605
  }
10705
10606
  )
10706
10607
  }
@@ -10710,10 +10611,10 @@ RadioMenuItem.displayName = "RadioMenuItem";
10710
10611
 
10711
10612
  // src/components/Menu/CheckboxMenuItem.tsx
10712
10613
  var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
10713
- var import_type_guards40 = require("@wistia/type-guards");
10714
- var import_jsx_runtime240 = require("react/jsx-runtime");
10614
+ var import_type_guards39 = require("@wistia/type-guards");
10615
+ var import_jsx_runtime239 = require("react/jsx-runtime");
10715
10616
  var CheckboxIndicator = ({ checked, ...props }) => {
10716
- return checked ? /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
10617
+ return checked ? /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
10717
10618
  "svg",
10718
10619
  {
10719
10620
  ...props,
@@ -10723,14 +10624,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10723
10624
  width: "24",
10724
10625
  xmlns: "http://www.w3.org/2000/svg",
10725
10626
  children: [
10726
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10627
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10727
10628
  "path",
10728
10629
  {
10729
10630
  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",
10730
10631
  fill: "#2949e5"
10731
10632
  }
10732
10633
  ),
10733
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10634
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10734
10635
  "path",
10735
10636
  {
10736
10637
  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",
@@ -10739,7 +10640,7 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10739
10640
  )
10740
10641
  ]
10741
10642
  }
10742
- ) : /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
10643
+ ) : /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
10743
10644
  "svg",
10744
10645
  {
10745
10646
  ...props,
@@ -10749,14 +10650,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10749
10650
  width: "24",
10750
10651
  xmlns: "http://www.w3.org/2000/svg",
10751
10652
  children: [
10752
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10653
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10753
10654
  "path",
10754
10655
  {
10755
10656
  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",
10756
10657
  fill: "#fcfcfd"
10757
10658
  }
10758
10659
  ),
10759
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10660
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10760
10661
  "path",
10761
10662
  {
10762
10663
  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",
@@ -10773,19 +10674,19 @@ var CheckboxMenuItem = ({
10773
10674
  onCheckedChange,
10774
10675
  ...props
10775
10676
  }) => {
10776
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10677
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10777
10678
  import_react_dropdown_menu7.DropdownMenuCheckboxItem,
10778
10679
  {
10779
10680
  asChild: true,
10780
10681
  checked,
10781
10682
  onCheckedChange,
10782
10683
  onSelect,
10783
- children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10684
+ children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10784
10685
  MenuItemButton,
10785
10686
  {
10786
10687
  ...props,
10787
- leftIcon: (0, import_type_guards40.isNotNil)(props.icon) ? props.icon : /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(CheckboxIndicator, { checked }),
10788
- 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
10688
+ leftIcon: (0, import_type_guards39.isNotNil)(props.icon) ? props.icon : /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(CheckboxIndicator, { checked }),
10689
+ 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
10789
10690
  }
10790
10691
  )
10791
10692
  }
@@ -10794,37 +10695,37 @@ var CheckboxMenuItem = ({
10794
10695
  CheckboxMenuItem.displayName = "CheckboxMenuItem";
10795
10696
 
10796
10697
  // src/components/Modal/Modal.tsx
10797
- var import_react52 = require("react");
10798
- var import_styled_components66 = __toESM(require("styled-components"));
10698
+ var import_react53 = require("react");
10699
+ var import_styled_components65 = __toESM(require("styled-components"));
10799
10700
  var import_react_dialog4 = require("@radix-ui/react-dialog");
10800
- var import_type_guards42 = require("@wistia/type-guards");
10701
+ var import_type_guards41 = require("@wistia/type-guards");
10801
10702
 
10802
10703
  // src/components/Modal/ModalHeader.tsx
10803
- var import_styled_components63 = __toESM(require("styled-components"));
10704
+ var import_styled_components62 = __toESM(require("styled-components"));
10804
10705
  var import_react_dialog2 = require("@radix-ui/react-dialog");
10805
10706
 
10806
10707
  // src/components/Modal/ModalCloseButton.tsx
10807
- var import_styled_components62 = __toESM(require("styled-components"));
10708
+ var import_styled_components61 = __toESM(require("styled-components"));
10808
10709
  var import_react_dialog = require("@radix-ui/react-dialog");
10809
- var import_jsx_runtime241 = require("react/jsx-runtime");
10810
- var CloseButton = (0, import_styled_components62.default)(import_react_dialog.Close)`
10710
+ var import_jsx_runtime240 = require("react/jsx-runtime");
10711
+ var CloseButton = (0, import_styled_components61.default)(import_react_dialog.Close)`
10811
10712
  align-self: start;
10812
10713
  `;
10813
10714
  var ModalCloseButton = () => {
10814
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10715
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10815
10716
  IconButton,
10816
10717
  {
10817
10718
  label: "Dismiss modal",
10818
10719
  size: "sm",
10819
10720
  variant: "ghost",
10820
- children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Icon, { type: "close" })
10721
+ children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon, { type: "close" })
10821
10722
  }
10822
10723
  ) });
10823
10724
  };
10824
10725
 
10825
10726
  // src/components/Modal/ModalHeader.tsx
10826
- var import_jsx_runtime242 = require("react/jsx-runtime");
10827
- var Header = import_styled_components63.default.header`
10727
+ var import_jsx_runtime241 = require("react/jsx-runtime");
10728
+ var Header = import_styled_components62.default.header`
10828
10729
  display: flex;
10829
10730
  order: 1;
10830
10731
  gap: var(--wui-space-01);
@@ -10835,7 +10736,7 @@ var Header = import_styled_components63.default.header`
10835
10736
  margin: 0 0 var(--wui-space-03);
10836
10737
  }
10837
10738
  `;
10838
- var Title = (0, import_styled_components63.default)(import_react_dialog2.Title)`
10739
+ var Title = (0, import_styled_components62.default)(import_react_dialog2.Title)`
10839
10740
  font-family: var(--wui-typography-heading-2-family);
10840
10741
  line-height: var(--wui-typography-heading-2-line-height);
10841
10742
  font-size: var(--wui-typography-heading-2-size);
@@ -10846,29 +10747,29 @@ var ModalHeader = ({
10846
10747
  hideTitle,
10847
10748
  hideCloseButton
10848
10749
  }) => {
10849
- 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 });
10850
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Header, { $hideTitle: hideTitle, children: [
10750
+ 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 });
10751
+ return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Header, { $hideTitle: hideTitle, children: [
10851
10752
  TitleComponent,
10852
- hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(ModalCloseButton, {})
10753
+ hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(ModalCloseButton, {})
10853
10754
  ] });
10854
10755
  };
10855
10756
 
10856
10757
  // src/components/Modal/ModalContent.tsx
10857
- var import_react50 = require("react");
10858
- var import_styled_components64 = __toESM(require("styled-components"));
10758
+ var import_react51 = require("react");
10759
+ var import_styled_components63 = __toESM(require("styled-components"));
10859
10760
  var import_react_dialog3 = require("@radix-ui/react-dialog");
10860
10761
 
10861
10762
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
10862
- var import_react49 = require("react");
10863
- var import_type_guards41 = require("@wistia/type-guards");
10763
+ var import_react50 = require("react");
10764
+ var import_type_guards40 = require("@wistia/type-guards");
10864
10765
  var useFocusRestore = () => {
10865
- const previouslyFocusedRef = (0, import_react49.useRef)(null);
10866
- (0, import_react49.useEffect)(() => {
10766
+ const previouslyFocusedRef = (0, import_react50.useRef)(null);
10767
+ (0, import_react50.useEffect)(() => {
10867
10768
  previouslyFocusedRef.current = document.activeElement;
10868
10769
  }, []);
10869
- (0, import_react49.useEffect)(() => {
10770
+ (0, import_react50.useEffect)(() => {
10870
10771
  return () => {
10871
- if ((0, import_type_guards41.isNotNil)(previouslyFocusedRef.current)) {
10772
+ if ((0, import_type_guards40.isNotNil)(previouslyFocusedRef.current)) {
10872
10773
  setTimeout(() => {
10873
10774
  previouslyFocusedRef.current?.focus();
10874
10775
  }, 0);
@@ -10878,8 +10779,8 @@ var useFocusRestore = () => {
10878
10779
  };
10879
10780
 
10880
10781
  // src/components/Modal/ModalContent.tsx
10881
- var import_jsx_runtime243 = require("react/jsx-runtime");
10882
- var StyledModalContent = (0, import_styled_components64.default)(import_react_dialog3.Content)`
10782
+ var import_jsx_runtime242 = require("react/jsx-runtime");
10783
+ var StyledModalContent = (0, import_styled_components63.default)(import_react_dialog3.Content)`
10883
10784
  background-color: var(--wui-color-bg-app);
10884
10785
  box-sizing: border-box;
10885
10786
  display: flex;
@@ -10920,10 +10821,10 @@ var StyledModalContent = (0, import_styled_components64.default)(import_react_di
10920
10821
  }
10921
10822
  }
10922
10823
  `;
10923
- var ModalContent = (0, import_react50.forwardRef)(
10824
+ var ModalContent = (0, import_react51.forwardRef)(
10924
10825
  ({ fullHeight, width, children, ...props }, ref) => {
10925
10826
  useFocusRestore();
10926
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
10827
+ return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
10927
10828
  StyledModalContent,
10928
10829
  {
10929
10830
  ref,
@@ -10938,9 +10839,9 @@ var ModalContent = (0, import_react50.forwardRef)(
10938
10839
  );
10939
10840
 
10940
10841
  // src/private/components/Backdrop/Backdrop.tsx
10941
- var import_react51 = require("react");
10942
- var import_styled_components65 = __toESM(require("styled-components"));
10943
- var import_jsx_runtime244 = require("react/jsx-runtime");
10842
+ var import_react52 = require("react");
10843
+ var import_styled_components64 = __toESM(require("styled-components"));
10844
+ var import_jsx_runtime243 = require("react/jsx-runtime");
10944
10845
  var backdropAnimationDuration = 150;
10945
10846
  var alignVerticalMap = {
10946
10847
  stretch: "normal",
@@ -10953,7 +10854,7 @@ var alignHorizontalMap = {
10953
10854
  center: "center",
10954
10855
  right: "end"
10955
10856
  };
10956
- var BackdropComponent = import_styled_components65.default.div`
10857
+ var BackdropComponent = import_styled_components64.default.div`
10957
10858
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
10958
10859
  animation-name: backdropShow;
10959
10860
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -10981,8 +10882,8 @@ var BackdropComponent = import_styled_components65.default.div`
10981
10882
  }
10982
10883
  }
10983
10884
  `;
10984
- var Backdrop = (0, import_react51.forwardRef)(
10985
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
10885
+ var Backdrop = (0, import_react52.forwardRef)(
10886
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
10986
10887
  BackdropComponent,
10987
10888
  {
10988
10889
  ref,
@@ -10996,14 +10897,14 @@ var Backdrop = (0, import_react51.forwardRef)(
10996
10897
  Backdrop.displayName = "Backdrop";
10997
10898
 
10998
10899
  // src/components/Modal/Modal.tsx
10999
- var import_jsx_runtime245 = require("react/jsx-runtime");
10900
+ var import_jsx_runtime244 = require("react/jsx-runtime");
11000
10901
  var DEFAULT_MODAL_WIDTH = "532px";
11001
- var ModalBody = import_styled_components66.default.div`
10902
+ var ModalBody = import_styled_components65.default.div`
11002
10903
  flex-direction: column;
11003
10904
  display: flex;
11004
10905
  order: 2;
11005
10906
  `;
11006
- var Modal = (0, import_react52.forwardRef)(
10907
+ var Modal = (0, import_react53.forwardRef)(
11007
10908
  ({
11008
10909
  children,
11009
10910
  fullHeight = false,
@@ -11016,24 +10917,24 @@ var Modal = (0, import_react52.forwardRef)(
11016
10917
  width = DEFAULT_MODAL_WIDTH,
11017
10918
  ...props
11018
10919
  }, ref) => {
11019
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
10920
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
11020
10921
  import_react_dialog4.Root,
11021
10922
  {
11022
10923
  onOpenChange: (open2) => {
11023
- if (!open2 && (0, import_type_guards42.isNotNil)(onRequestClose)) {
10924
+ if (!open2 && (0, import_type_guards41.isNotNil)(onRequestClose)) {
11024
10925
  onRequestClose();
11025
10926
  }
11026
10927
  },
11027
10928
  open: isOpen,
11028
- children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(import_react_dialog4.Portal, { children: [
11029
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Backdrop, {}),
11030
- /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
10929
+ children: /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(import_react_dialog4.Portal, { children: [
10930
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Backdrop, {}),
10931
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
11031
10932
  ModalContent,
11032
10933
  {
11033
10934
  ref,
11034
10935
  fullHeight,
11035
10936
  onOpenAutoFocus: (event) => {
11036
- if ((0, import_type_guards42.isNotNil)(initialFocusRef) && initialFocusRef.current) {
10937
+ if ((0, import_type_guards41.isNotNil)(initialFocusRef) && initialFocusRef.current) {
11037
10938
  event.preventDefault();
11038
10939
  requestAnimationFrame(() => {
11039
10940
  initialFocusRef.current?.focus();
@@ -11043,8 +10944,8 @@ var Modal = (0, import_react52.forwardRef)(
11043
10944
  width,
11044
10945
  ...props,
11045
10946
  children: [
11046
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(ModalBody, { children }),
11047
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
10947
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(ModalBody, { children }),
10948
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
11048
10949
  ModalHeader,
11049
10950
  {
11050
10951
  hideCloseButton,
@@ -11064,19 +10965,19 @@ Modal.displayName = "Modal";
11064
10965
 
11065
10966
  // src/components/Popover/Popover.tsx
11066
10967
  var import_react_popover = require("@radix-ui/react-popover");
11067
- var import_styled_components67 = __toESM(require("styled-components"));
10968
+ var import_styled_components66 = __toESM(require("styled-components"));
11068
10969
 
11069
10970
  // src/private/helpers/getControls/getControlProps.tsx
11070
- var import_type_guards43 = require("@wistia/type-guards");
10971
+ var import_type_guards42 = require("@wistia/type-guards");
11071
10972
  var getControlProps = (isOpen, onOpenChange) => {
11072
- return (0, import_type_guards43.isNotNil)(onOpenChange) && (0, import_type_guards43.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
10973
+ return (0, import_type_guards42.isNotNil)(onOpenChange) && (0, import_type_guards42.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
11073
10974
  };
11074
10975
 
11075
10976
  // src/components/Popover/Popover.tsx
11076
- var import_jsx_runtime246 = require("react/jsx-runtime");
11077
- var StyledContent2 = (0, import_styled_components67.default)(import_react_popover.Content)`
10977
+ var import_jsx_runtime245 = require("react/jsx-runtime");
10978
+ var StyledContent2 = (0, import_styled_components66.default)(import_react_popover.Content)`
11078
10979
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11079
- ${({ $unstyled }) => !$unstyled && import_styled_components67.css`
10980
+ ${({ $unstyled }) => !$unstyled && import_styled_components66.css`
11080
10981
  border-radius: var(--wui-border-radius-02);
11081
10982
  padding: var(--wui-space-04);
11082
10983
  max-width: var(--wui-popover-max-width, 320px);
@@ -11109,9 +11010,9 @@ var Popover = ({
11109
11010
  "--wui-popover-max-width": maxWidth,
11110
11011
  "--wui-popover-max-height": maxHeight
11111
11012
  };
11112
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
11113
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_popover.Trigger, { asChild: true, children: trigger }),
11114
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
11013
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
11014
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_popover.Trigger, { asChild: true, children: trigger }),
11015
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
11115
11016
  StyledContent2,
11116
11017
  {
11117
11018
  $colorScheme: colorScheme,
@@ -11120,16 +11021,16 @@ var Popover = ({
11120
11021
  $unstyled: unstyled,
11121
11022
  style,
11122
11023
  children: [
11123
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
11024
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
11124
11025
  IconButton,
11125
11026
  {
11126
11027
  "data-wui-popover-close": true,
11127
11028
  label: "Close",
11128
11029
  variant: "ghost",
11129
- children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { type: "close" })
11030
+ children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Icon, { type: "close" })
11130
11031
  }
11131
11032
  ) }),
11132
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)("div", { children })
11033
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsx)("div", { children })
11133
11034
  ]
11134
11035
  }
11135
11036
  ) })
@@ -11138,11 +11039,11 @@ var Popover = ({
11138
11039
  Popover.displayName = "Popover";
11139
11040
 
11140
11041
  // src/components/ProgressBar/ProgressBar.tsx
11141
- var import_styled_components68 = __toESM(require("styled-components"));
11042
+ var import_styled_components67 = __toESM(require("styled-components"));
11142
11043
  var import_react_progress = require("@radix-ui/react-progress");
11143
- var import_type_guards44 = require("@wistia/type-guards");
11144
- var import_jsx_runtime247 = require("react/jsx-runtime");
11145
- var ProgressBarWrapper = import_styled_components68.default.div`
11044
+ var import_type_guards43 = require("@wistia/type-guards");
11045
+ var import_jsx_runtime246 = require("react/jsx-runtime");
11046
+ var ProgressBarWrapper = import_styled_components67.default.div`
11146
11047
  --progress-bar-height: 8px;
11147
11048
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
11148
11049
  --progress-bar-background-color: var(--wui-color-bg-surface-secondary);
@@ -11158,7 +11059,7 @@ var getTranslateValue = (progress, max) => {
11158
11059
  const progressPercentage = progress / max * 100;
11159
11060
  return `translateX(-${100 - progressPercentage}%)`;
11160
11061
  };
11161
- var ProgressBarLabel = import_styled_components68.default.div`
11062
+ var ProgressBarLabel = import_styled_components67.default.div`
11162
11063
  display: flex;
11163
11064
  line-height: var(--wui-typography-label-3-line-height);
11164
11065
  font-size: var(--wui-typography-label-3-size);
@@ -11166,7 +11067,7 @@ var ProgressBarLabel = import_styled_components68.default.div`
11166
11067
  color: var(--wui-color-text-secondary);
11167
11068
  flex-shrink: 0;
11168
11069
  `;
11169
- var StyledProgressIndicator = (0, import_styled_components68.default)(import_react_progress.Indicator)`
11070
+ var StyledProgressIndicator = (0, import_styled_components67.default)(import_react_progress.Indicator)`
11170
11071
  background-color: var(--progress-bar-indicator-color);
11171
11072
  width: 100%;
11172
11073
  height: 100%;
@@ -11175,7 +11076,7 @@ var StyledProgressIndicator = (0, import_styled_components68.default)(import_rea
11175
11076
  transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
11176
11077
  transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
11177
11078
  `;
11178
- var StyledProgressBar = (0, import_styled_components68.default)(import_react_progress.Root)`
11079
+ var StyledProgressBar = (0, import_styled_components67.default)(import_react_progress.Root)`
11179
11080
  position: relative;
11180
11081
  overflow: hidden;
11181
11082
  background: var(--progress-bar-background-color);
@@ -11194,15 +11095,15 @@ var ProgressBar = ({
11194
11095
  labelRight,
11195
11096
  ...props
11196
11097
  }) => {
11197
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(ProgressBarWrapper, { children: [
11198
- (0, import_type_guards44.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
11199
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11098
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(ProgressBarWrapper, { children: [
11099
+ (0, import_type_guards43.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
11100
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
11200
11101
  StyledProgressBar,
11201
11102
  {
11202
11103
  max,
11203
11104
  value: progress,
11204
11105
  ...props,
11205
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11106
+ children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
11206
11107
  StyledProgressIndicator,
11207
11108
  {
11208
11109
  $max: max,
@@ -11211,17 +11112,17 @@ var ProgressBar = ({
11211
11112
  )
11212
11113
  }
11213
11114
  ),
11214
- (0, import_type_guards44.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(ProgressBarLabel, { children: labelRight }) : null
11115
+ (0, import_type_guards43.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(ProgressBarLabel, { children: labelRight }) : null
11215
11116
  ] });
11216
11117
  };
11217
11118
  ProgressBar.displayName = "ProgressBar";
11218
11119
 
11219
11120
  // src/components/Radio/Radio.tsx
11220
- var import_react53 = require("react");
11221
- var import_styled_components69 = __toESM(require("styled-components"));
11222
- var import_type_guards45 = require("@wistia/type-guards");
11223
- var import_jsx_runtime248 = require("react/jsx-runtime");
11224
- var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11121
+ var import_react54 = require("react");
11122
+ var import_styled_components68 = __toESM(require("styled-components"));
11123
+ var import_type_guards44 = require("@wistia/type-guards");
11124
+ var import_jsx_runtime247 = require("react/jsx-runtime");
11125
+ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11225
11126
  "svg",
11226
11127
  {
11227
11128
  fill: "inherit",
@@ -11229,7 +11130,7 @@ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11229
11130
  viewBox: "0 0 1 1",
11230
11131
  width: "1",
11231
11132
  xmlns: "http://www.w3.org/2000/svg",
11232
- children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11133
+ children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11233
11134
  "circle",
11234
11135
  {
11235
11136
  cx: "0.5",
@@ -11240,7 +11141,7 @@ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11240
11141
  )
11241
11142
  }
11242
11143
  );
11243
- var sizeSmall2 = import_styled_components69.css`
11144
+ var sizeSmall2 = import_styled_components68.css`
11244
11145
  width: 14px;
11245
11146
  height: 14px;
11246
11147
  min-width: 14px;
@@ -11251,7 +11152,7 @@ var sizeSmall2 = import_styled_components69.css`
11251
11152
  height: 7px;
11252
11153
  }
11253
11154
  `;
11254
- var sizeMedium2 = import_styled_components69.css`
11155
+ var sizeMedium2 = import_styled_components68.css`
11255
11156
  width: 16px;
11256
11157
  height: 16px;
11257
11158
  min-width: 16px;
@@ -11262,7 +11163,7 @@ var sizeMedium2 = import_styled_components69.css`
11262
11163
  height: 8px;
11263
11164
  }
11264
11165
  `;
11265
- var sizeLarge2 = import_styled_components69.css`
11166
+ var sizeLarge2 = import_styled_components68.css`
11266
11167
  width: 20px;
11267
11168
  height: 20px;
11268
11169
  min-width: 20px;
@@ -11278,14 +11179,14 @@ var getSizeCss2 = (size) => {
11278
11179
  if (size === "lg") return sizeLarge2;
11279
11180
  return sizeMedium2;
11280
11181
  };
11281
- var StyledRadioWrapper = import_styled_components69.default.div`
11182
+ var StyledRadioWrapper = import_styled_components68.default.div`
11282
11183
  display: flex;
11283
11184
  margin: 0;
11284
11185
 
11285
11186
  /* TODO this solves a problem but potentially causes and a11y issue */
11286
11187
  user-select: none;
11287
11188
  `;
11288
- var StyledRadioInput = import_styled_components69.default.div`
11189
+ var StyledRadioInput = import_styled_components68.default.div`
11289
11190
  ${({ $size }) => getSizeCss2($size)}
11290
11191
  line-height: 0;
11291
11192
  margin: 0;
@@ -11307,7 +11208,7 @@ var StyledRadioInput = import_styled_components69.default.div`
11307
11208
  }
11308
11209
  }
11309
11210
  `;
11310
- var StyledHiddenRadioInput = import_styled_components69.default.input`
11211
+ var StyledHiddenRadioInput = import_styled_components68.default.input`
11311
11212
  ${visuallyHiddenStyle}
11312
11213
 
11313
11214
  /* toggles display of faux-input border-color */
@@ -11320,7 +11221,7 @@ var StyledHiddenRadioInput = import_styled_components69.default.input`
11320
11221
  display: block;
11321
11222
  }
11322
11223
  `;
11323
- var Radio = (0, import_react53.forwardRef)(
11224
+ var Radio = (0, import_react54.forwardRef)(
11324
11225
  ({
11325
11226
  checked,
11326
11227
  disabled = false,
@@ -11335,15 +11236,15 @@ var Radio = (0, import_react53.forwardRef)(
11335
11236
  hideLabel = false,
11336
11237
  ...props
11337
11238
  }, ref) => {
11338
- const generatedId = (0, import_react53.useId)();
11339
- const computedId = (0, import_type_guards45.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11340
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
11239
+ const generatedId = (0, import_react54.useId)();
11240
+ const computedId = (0, import_type_guards44.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11241
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
11341
11242
  StyledRadioWrapper,
11342
11243
  {
11343
11244
  $disabled: disabled,
11344
11245
  "aria-invalid": props["aria-invalid"],
11345
11246
  children: [
11346
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11247
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11347
11248
  StyledHiddenRadioInput,
11348
11249
  {
11349
11250
  ...props,
@@ -11358,16 +11259,16 @@ var Radio = (0, import_react53.forwardRef)(
11358
11259
  value
11359
11260
  }
11360
11261
  ),
11361
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11262
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11362
11263
  FormControlLabel,
11363
11264
  {
11364
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11265
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11365
11266
  StyledRadioInput,
11366
11267
  {
11367
11268
  $disabled: disabled,
11368
11269
  $size: size,
11369
11270
  "data-wui-faux-input": "true",
11370
- children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(RadioIcon, {})
11271
+ children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(RadioIcon, {})
11371
11272
  }
11372
11273
  ),
11373
11274
  description,
@@ -11385,20 +11286,20 @@ var Radio = (0, import_react53.forwardRef)(
11385
11286
  Radio.displayName = "Radio";
11386
11287
 
11387
11288
  // src/components/SegmentedControl/SegmentedControl.tsx
11388
- var import_react56 = require("react");
11389
- var import_styled_components71 = __toESM(require("styled-components"));
11289
+ var import_react57 = require("react");
11290
+ var import_styled_components70 = __toESM(require("styled-components"));
11390
11291
  var import_react_toggle_group = require("@radix-ui/react-toggle-group");
11391
- var import_type_guards46 = require("@wistia/type-guards");
11292
+ var import_type_guards45 = require("@wistia/type-guards");
11392
11293
 
11393
11294
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11394
- var import_react54 = require("react");
11395
- var import_jsx_runtime249 = require("react/jsx-runtime");
11396
- var SelectedItemStyleContext = (0, import_react54.createContext)(null);
11295
+ var import_react55 = require("react");
11296
+ var import_jsx_runtime248 = require("react/jsx-runtime");
11297
+ var SelectedItemStyleContext = (0, import_react55.createContext)(null);
11397
11298
  var SelectedItemStyleProvider = ({
11398
11299
  children
11399
11300
  }) => {
11400
- const [selectedItemMeasurements, setSelectedItemMeasurements] = (0, import_react54.useState)(null);
11401
- const selectedItemIndicatorStyle = (0, import_react54.useMemo)(
11301
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = (0, import_react55.useState)(null);
11302
+ const selectedItemIndicatorStyle = (0, import_react55.useMemo)(
11402
11303
  () => selectedItemMeasurements != null ? {
11403
11304
  height: `${selectedItemMeasurements.offsetHeight}px`,
11404
11305
  transform: `translateX(${selectedItemMeasurements.offsetLeft}px) translateY(-50%)`,
@@ -11408,17 +11309,17 @@ var SelectedItemStyleProvider = ({
11408
11309
  },
11409
11310
  [selectedItemMeasurements]
11410
11311
  );
11411
- const contextValue = (0, import_react54.useMemo)(
11312
+ const contextValue = (0, import_react55.useMemo)(
11412
11313
  () => ({
11413
11314
  setSelectedItemMeasurements,
11414
11315
  selectedItemIndicatorStyle
11415
11316
  }),
11416
11317
  [selectedItemIndicatorStyle]
11417
11318
  );
11418
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
11319
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
11419
11320
  };
11420
11321
  var useSelectedItemStyle = () => {
11421
- const context = (0, import_react54.useContext)(SelectedItemStyleContext);
11322
+ const context = (0, import_react55.useContext)(SelectedItemStyleContext);
11422
11323
  if (context === null) {
11423
11324
  throw new Error("useSelectedItemStyle must be used within a SelectedItemStyleProvider");
11424
11325
  }
@@ -11426,14 +11327,14 @@ var useSelectedItemStyle = () => {
11426
11327
  };
11427
11328
 
11428
11329
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11429
- var import_styled_components70 = __toESM(require("styled-components"));
11330
+ var import_styled_components69 = __toESM(require("styled-components"));
11430
11331
 
11431
11332
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11432
- var import_react55 = require("react");
11433
- var SegmentedControlValueContext = (0, import_react55.createContext)(null);
11333
+ var import_react56 = require("react");
11334
+ var SegmentedControlValueContext = (0, import_react56.createContext)(null);
11434
11335
  var SegmentedControlValueProvider = SegmentedControlValueContext.Provider;
11435
11336
  var useSegmentedControlValue = () => {
11436
- const context = (0, import_react55.useContext)(SegmentedControlValueContext);
11337
+ const context = (0, import_react56.useContext)(SegmentedControlValueContext);
11437
11338
  if (context === null) {
11438
11339
  throw new Error("useSegmentedControlValue must be used within a SegmentedControlValueProvider");
11439
11340
  }
@@ -11441,8 +11342,8 @@ var useSegmentedControlValue = () => {
11441
11342
  };
11442
11343
 
11443
11344
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11444
- var import_jsx_runtime250 = require("react/jsx-runtime");
11445
- var SelectedItemIndicatorDiv = import_styled_components70.default.div`
11345
+ var import_jsx_runtime249 = require("react/jsx-runtime");
11346
+ var SelectedItemIndicatorDiv = import_styled_components69.default.div`
11446
11347
  background-color: var(--wui-color-bg-fill-white);
11447
11348
  border-radius: var(--wui-border-radius-rounded);
11448
11349
  left: 0;
@@ -11460,12 +11361,12 @@ var SelectedItemIndicator = () => {
11460
11361
  if (!selectedValue) {
11461
11362
  return null;
11462
11363
  }
11463
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11364
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11464
11365
  };
11465
11366
 
11466
11367
  // src/components/SegmentedControl/SegmentedControl.tsx
11467
- var import_jsx_runtime251 = require("react/jsx-runtime");
11468
- var segmentedControlStyles = import_styled_components71.css`
11368
+ var import_jsx_runtime250 = require("react/jsx-runtime");
11369
+ var segmentedControlStyles = import_styled_components70.css`
11469
11370
  display: inline-flex;
11470
11371
  background-color: var(--wui-color-bg-surface-secondary);
11471
11372
  border-radius: var(--wui-border-radius-rounded);
@@ -11476,10 +11377,10 @@ var segmentedControlStyles = import_styled_components71.css`
11476
11377
  position: relative;
11477
11378
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11478
11379
  `;
11479
- var StyledSegmentedControl = (0, import_styled_components71.default)(import_react_toggle_group.Root)`
11380
+ var StyledSegmentedControl = (0, import_styled_components70.default)(import_react_toggle_group.Root)`
11480
11381
  ${segmentedControlStyles}
11481
11382
  `;
11482
- var SegmentedControl = (0, import_react56.forwardRef)(
11383
+ var SegmentedControl = (0, import_react57.forwardRef)(
11483
11384
  ({
11484
11385
  children,
11485
11386
  disabled = false,
@@ -11488,10 +11389,10 @@ var SegmentedControl = (0, import_react56.forwardRef)(
11488
11389
  onSelectedValueChange,
11489
11390
  ...props
11490
11391
  }, ref) => {
11491
- if ((0, import_type_guards46.isNil)(children)) {
11392
+ if ((0, import_type_guards45.isNil)(children)) {
11492
11393
  return null;
11493
11394
  }
11494
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11395
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
11495
11396
  StyledSegmentedControl,
11496
11397
  {
11497
11398
  ref,
@@ -11503,8 +11404,8 @@ var SegmentedControl = (0, import_react56.forwardRef)(
11503
11404
  type: "single",
11504
11405
  value: selectedValue,
11505
11406
  ...props,
11506
- children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(SelectedItemStyleProvider, { children: [
11507
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(SelectedItemIndicator, {}),
11407
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(SelectedItemStyleProvider, { children: [
11408
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(SelectedItemIndicator, {}),
11508
11409
  children
11509
11410
  ] }) })
11510
11411
  }
@@ -11514,12 +11415,12 @@ var SegmentedControl = (0, import_react56.forwardRef)(
11514
11415
  SegmentedControl.displayName = "SegmentedControl";
11515
11416
 
11516
11417
  // src/components/SegmentedControl/SegmentedControlItem.tsx
11517
- var import_react57 = require("react");
11518
- var import_styled_components72 = __toESM(require("styled-components"));
11418
+ var import_react58 = require("react");
11419
+ var import_styled_components71 = __toESM(require("styled-components"));
11519
11420
  var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
11520
- var import_type_guards47 = require("@wistia/type-guards");
11521
- var import_jsx_runtime252 = require("react/jsx-runtime");
11522
- var segmentedControlItemStyles = import_styled_components72.css`
11421
+ var import_type_guards46 = require("@wistia/type-guards");
11422
+ var import_jsx_runtime251 = require("react/jsx-runtime");
11423
+ var segmentedControlItemStyles = import_styled_components71.css`
11523
11424
  all: unset; /* ToggleGroupItem is a button element */
11524
11425
  align-items: center;
11525
11426
  border-radius: var(--wui-border-radius-rounded);
@@ -11579,14 +11480,14 @@ var segmentedControlItemStyles = import_styled_components72.css`
11579
11480
  }
11580
11481
  }
11581
11482
  `;
11582
- var StyledSegmentedControlItem = (0, import_styled_components72.default)(import_react_toggle_group2.Item)`
11483
+ var StyledSegmentedControlItem = (0, import_styled_components71.default)(import_react_toggle_group2.Item)`
11583
11484
  ${segmentedControlItemStyles}
11584
11485
  `;
11585
- var SegmentedControlItem = (0, import_react57.forwardRef)(
11486
+ var SegmentedControlItem = (0, import_react58.forwardRef)(
11586
11487
  ({ disabled, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
11587
11488
  const selectedValue = useSegmentedControlValue();
11588
11489
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
11589
- const buttonRef = (0, import_react57.useRef)(null);
11490
+ const buttonRef = (0, import_react58.useRef)(null);
11590
11491
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
11591
11492
  const handleClick = (event) => {
11592
11493
  const target = event.target;
@@ -11595,7 +11496,7 @@ var SegmentedControlItem = (0, import_react57.forwardRef)(
11595
11496
  event.preventDefault();
11596
11497
  }
11597
11498
  };
11598
- (0, import_react57.useEffect)(() => {
11499
+ (0, import_react58.useEffect)(() => {
11599
11500
  const buttonElem = buttonRef.current;
11600
11501
  if (!buttonElem) {
11601
11502
  return void 0;
@@ -11620,12 +11521,12 @@ var SegmentedControlItem = (0, import_react57.forwardRef)(
11620
11521
  resizeObserver.disconnect();
11621
11522
  };
11622
11523
  }, [selectedValue, setSelectedItemMeasurements, value]);
11623
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
11524
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
11624
11525
  StyledSegmentedControlItem,
11625
11526
  {
11626
11527
  ref: combinedRef,
11627
- $hasLabel: (0, import_type_guards47.isNotNil)(label),
11628
- "aria-label": (0, import_type_guards47.isNotNil)(label) ? void 0 : ariaLabel,
11528
+ $hasLabel: (0, import_type_guards46.isNotNil)(label),
11529
+ "aria-label": (0, import_type_guards46.isNotNil)(label) ? void 0 : ariaLabel,
11629
11530
  disabled,
11630
11531
  onClick: handleClick,
11631
11532
  value,
@@ -11641,10 +11542,10 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
11641
11542
 
11642
11543
  // src/components/Select/Select.tsx
11643
11544
  var import_react_select = require("@radix-ui/react-select");
11644
- var import_react58 = require("react");
11645
- var import_styled_components73 = __toESM(require("styled-components"));
11646
- var import_jsx_runtime253 = require("react/jsx-runtime");
11647
- var StyledTrigger = (0, import_styled_components73.default)(import_react_select.Trigger)`
11545
+ var import_react59 = require("react");
11546
+ var import_styled_components72 = __toESM(require("styled-components"));
11547
+ var import_jsx_runtime252 = require("react/jsx-runtime");
11548
+ var StyledTrigger = (0, import_styled_components72.default)(import_react_select.Trigger)`
11648
11549
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11649
11550
  ${inputCssVariables};
11650
11551
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
@@ -11688,7 +11589,7 @@ var StyledTrigger = (0, import_styled_components73.default)(import_react_select.
11688
11589
  color: var(--wui-input-placeholder);
11689
11590
  }
11690
11591
  `;
11691
- var StyledContent3 = (0, import_styled_components73.default)(import_react_select.Content)`
11592
+ var StyledContent3 = (0, import_styled_components72.default)(import_react_select.Content)`
11692
11593
  --wui-select-content-border: var(--wui-color-border);
11693
11594
  --wui-select-content-bg: var(--wui-color-bg-surface);
11694
11595
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -11706,7 +11607,7 @@ var StyledContent3 = (0, import_styled_components73.default)(import_react_select
11706
11607
  max-height: var(--radix-select-content-available-height);
11707
11608
  z-index: var(--wui-zindex-select);
11708
11609
  `;
11709
- var Select = (0, import_react58.forwardRef)(
11610
+ var Select = (0, import_react59.forwardRef)(
11710
11611
  ({
11711
11612
  colorScheme = "inherit",
11712
11613
  children,
@@ -11716,13 +11617,13 @@ var Select = (0, import_react58.forwardRef)(
11716
11617
  ...props
11717
11618
  }, forwardedRef) => {
11718
11619
  const responsiveFullWidth = useResponsiveProp(fullWidth);
11719
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
11620
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
11720
11621
  import_react_select.Root,
11721
11622
  {
11722
11623
  ...props,
11723
11624
  onValueChange: onChange,
11724
11625
  children: [
11725
- /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
11626
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
11726
11627
  StyledTrigger,
11727
11628
  {
11728
11629
  ref: forwardedRef,
@@ -11730,8 +11631,8 @@ var Select = (0, import_react58.forwardRef)(
11730
11631
  $fullWidth: responsiveFullWidth,
11731
11632
  ...props,
11732
11633
  children: [
11733
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.Value, { placeholder }),
11734
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
11634
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.Value, { placeholder }),
11635
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
11735
11636
  Icon,
11736
11637
  {
11737
11638
  size: "md",
@@ -11741,10 +11642,10 @@ var Select = (0, import_react58.forwardRef)(
11741
11642
  ]
11742
11643
  }
11743
11644
  ),
11744
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(StyledContent3, { position: "popper", children: [
11745
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Icon, { type: "caret-up" }) }),
11746
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.Viewport, { children }),
11747
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Icon, { type: "caret-down" }) })
11645
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(StyledContent3, { position: "popper", children: [
11646
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon, { type: "caret-up" }) }),
11647
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.Viewport, { children }),
11648
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon, { type: "caret-down" }) })
11748
11649
  ] }) })
11749
11650
  ]
11750
11651
  }
@@ -11755,11 +11656,11 @@ Select.displayName = "Select";
11755
11656
 
11756
11657
  // src/components/Select/SelectOption.tsx
11757
11658
  var import_react_select2 = require("@radix-ui/react-select");
11758
- var import_react59 = require("react");
11759
- var import_styled_components74 = __toESM(require("styled-components"));
11760
- var import_type_guards48 = require("@wistia/type-guards");
11761
- var import_jsx_runtime254 = require("react/jsx-runtime");
11762
- var StyledItem = (0, import_styled_components74.default)(import_react_select2.Item)`
11659
+ var import_react60 = require("react");
11660
+ var import_styled_components73 = __toESM(require("styled-components"));
11661
+ var import_type_guards47 = require("@wistia/type-guards");
11662
+ var import_jsx_runtime253 = require("react/jsx-runtime");
11663
+ var StyledItem = (0, import_styled_components73.default)(import_react_select2.Item)`
11763
11664
  ${variantStyleMap2.body3};
11764
11665
  display: flex;
11765
11666
  padding: var(--wui-select-option-padding);
@@ -11783,28 +11684,28 @@ var StyledItem = (0, import_styled_components74.default)(import_react_select2.It
11783
11684
  background-color: transparent;
11784
11685
  }
11785
11686
  `;
11786
- var StyledIconContainer = import_styled_components74.default.span`
11687
+ var StyledIconContainer = import_styled_components73.default.span`
11787
11688
  width: 12px;
11788
11689
  `;
11789
- var SelectOption = (0, import_react59.forwardRef)(
11690
+ var SelectOption = (0, import_react60.forwardRef)(
11790
11691
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11791
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
11692
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
11792
11693
  StyledItem,
11793
11694
  {
11794
11695
  ...props,
11795
11696
  ref: forwardedRef,
11796
11697
  children: [
11797
- /* @__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)(
11698
+ /* @__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)(
11798
11699
  Icon,
11799
11700
  {
11800
11701
  size: "sm",
11801
11702
  type: "checkmark"
11802
11703
  }
11803
11704
  ) }) }),
11804
- (0, import_type_guards48.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)("div", { children: [
11705
+ (0, import_type_guards47.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)("div", { children: [
11805
11706
  children,
11806
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
11807
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(import_react_select2.ItemText, { children })
11707
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
11708
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_react_select2.ItemText, { children })
11808
11709
  ]
11809
11710
  }
11810
11711
  );
@@ -11814,14 +11715,14 @@ SelectOption.displayName = "SelectOption";
11814
11715
 
11815
11716
  // src/components/Select/SelectOptionGroup.tsx
11816
11717
  var import_react_select3 = require("@radix-ui/react-select");
11817
- var import_styled_components75 = __toESM(require("styled-components"));
11818
- var import_jsx_runtime255 = require("react/jsx-runtime");
11819
- var StyledLabel4 = (0, import_styled_components75.default)(import_react_select3.Label)`
11718
+ var import_styled_components74 = __toESM(require("styled-components"));
11719
+ var import_jsx_runtime254 = require("react/jsx-runtime");
11720
+ var StyledLabel4 = (0, import_styled_components74.default)(import_react_select3.Label)`
11820
11721
  padding: var(--wui-select-option-padding);
11821
11722
  `;
11822
11723
  var SelectOptionGroup = ({ children, label, ...props }) => {
11823
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_react_select3.Group, { ...props, children: [
11824
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
11724
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(import_react_select3.Group, { ...props, children: [
11725
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
11825
11726
  Text,
11826
11727
  {
11827
11728
  prominence: "secondary",
@@ -11834,11 +11735,11 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11834
11735
  };
11835
11736
 
11836
11737
  // src/components/Switch/Switch.tsx
11837
- var import_react60 = require("react");
11838
- var import_styled_components76 = __toESM(require("styled-components"));
11839
- var import_type_guards49 = require("@wistia/type-guards");
11840
- var import_jsx_runtime256 = require("react/jsx-runtime");
11841
- var sizeSmall3 = import_styled_components76.css`
11738
+ var import_react61 = require("react");
11739
+ var import_styled_components75 = __toESM(require("styled-components"));
11740
+ var import_type_guards48 = require("@wistia/type-guards");
11741
+ var import_jsx_runtime255 = require("react/jsx-runtime");
11742
+ var sizeSmall3 = import_styled_components75.css`
11842
11743
  --wui-size-small-width: 24px;
11843
11744
  --wui-size-small-height: 14px;
11844
11745
 
@@ -11853,7 +11754,7 @@ var sizeSmall3 = import_styled_components76.css`
11853
11754
  height: calc(var(--wui-size-small-width) / 2);
11854
11755
  }
11855
11756
  `;
11856
- var sizeMedium3 = import_styled_components76.css`
11757
+ var sizeMedium3 = import_styled_components75.css`
11857
11758
  --wui-size-medium-width: 32px;
11858
11759
  --wui-size-medium-height: 18px;
11859
11760
 
@@ -11868,7 +11769,7 @@ var sizeMedium3 = import_styled_components76.css`
11868
11769
  height: calc(var(--wui-size-medium-width) / 2);
11869
11770
  }
11870
11771
  `;
11871
- var sizeLarge3 = import_styled_components76.css`
11772
+ var sizeLarge3 = import_styled_components75.css`
11872
11773
  --wui-size-large-width: 40px;
11873
11774
  --wui-size-large-height: 22px;
11874
11775
 
@@ -11888,14 +11789,14 @@ var getSizeCss3 = (size) => {
11888
11789
  if (size === "lg") return sizeLarge3;
11889
11790
  return sizeMedium3;
11890
11791
  };
11891
- var StyledSwitchWrapper = import_styled_components76.default.div`
11792
+ var StyledSwitchWrapper = import_styled_components75.default.div`
11892
11793
  display: flex;
11893
11794
  margin: 0;
11894
11795
 
11895
11796
  /* TODO this solves a problem but potentially causes and a11y issue */
11896
11797
  user-select: none;
11897
11798
  `;
11898
- var StyledSwitchInput = import_styled_components76.default.div`
11799
+ var StyledSwitchInput = import_styled_components75.default.div`
11899
11800
  ${({ $size }) => getSizeCss3($size)}
11900
11801
  line-height: 0;
11901
11802
  margin: 0;
@@ -11923,7 +11824,7 @@ var StyledSwitchInput = import_styled_components76.default.div`
11923
11824
  transition: all 0.2s ease-in-out;
11924
11825
  }
11925
11826
  `;
11926
- var StyledHiddenSwitchInput = import_styled_components76.default.input`
11827
+ var StyledHiddenSwitchInput = import_styled_components75.default.input`
11927
11828
  ${visuallyHiddenStyle}
11928
11829
 
11929
11830
  /* toggles display of faux-input background-color and toggle position */
@@ -11939,7 +11840,7 @@ var StyledHiddenSwitchInput = import_styled_components76.default.input`
11939
11840
  }
11940
11841
  }
11941
11842
  `;
11942
- var Switch = (0, import_react60.forwardRef)(
11843
+ var Switch = (0, import_react61.forwardRef)(
11943
11844
  ({
11944
11845
  checked,
11945
11846
  disabled = false,
@@ -11954,10 +11855,10 @@ var Switch = (0, import_react60.forwardRef)(
11954
11855
  hideLabel = false,
11955
11856
  ...props
11956
11857
  }, ref) => {
11957
- const generatedId = (0, import_react60.useId)();
11958
- const computedId = (0, import_type_guards49.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
11959
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
11960
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11858
+ const generatedId = (0, import_react61.useId)();
11859
+ const computedId = (0, import_type_guards48.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
11860
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
11861
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
11961
11862
  StyledHiddenSwitchInput,
11962
11863
  {
11963
11864
  ...props,
@@ -11972,10 +11873,10 @@ var Switch = (0, import_react60.forwardRef)(
11972
11873
  value
11973
11874
  }
11974
11875
  ),
11975
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11876
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
11976
11877
  FormControlLabel,
11977
11878
  {
11978
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11879
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
11979
11880
  StyledSwitchInput,
11980
11881
  {
11981
11882
  $disabled: disabled,
@@ -11997,25 +11898,25 @@ var Switch = (0, import_react60.forwardRef)(
11997
11898
  Switch.displayName = "Switch";
11998
11899
 
11999
11900
  // src/components/Table/Table.tsx
12000
- var import_styled_components77 = __toESM(require("styled-components"));
12001
- var import_jsx_runtime257 = require("react/jsx-runtime");
12002
- var StyledTable = import_styled_components77.default.table`
11901
+ var import_styled_components76 = __toESM(require("styled-components"));
11902
+ var import_jsx_runtime256 = require("react/jsx-runtime");
11903
+ var StyledTable = import_styled_components76.default.table`
12003
11904
  width: 100%;
12004
11905
  border-collapse: collapse;
12005
11906
 
12006
- ${({ $divided }) => $divided && import_styled_components77.css`
11907
+ ${({ $divided }) => $divided && import_styled_components76.css`
12007
11908
  tr {
12008
11909
  border-bottom: 1px solid var(--wui-color-border);
12009
11910
  }
12010
11911
  `}
12011
11912
 
12012
- ${({ $striped }) => $striped && import_styled_components77.css`
11913
+ ${({ $striped }) => $striped && import_styled_components76.css`
12013
11914
  tbody tr:nth-child(even) {
12014
11915
  background-color: var(--wui-color-bg-surface-secondary);
12015
11916
  }
12016
11917
  `}
12017
11918
 
12018
- ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && import_styled_components77.css`
11919
+ ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && import_styled_components76.css`
12019
11920
  thead {
12020
11921
  ${visuallyHiddenStyle}
12021
11922
  }
@@ -12028,7 +11929,7 @@ var Table = ({
12028
11929
  visuallyHiddenHeader = false,
12029
11930
  ...props
12030
11931
  }) => {
12031
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
11932
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
12032
11933
  StyledTable,
12033
11934
  {
12034
11935
  $divided: divided,
@@ -12041,88 +11942,88 @@ var Table = ({
12041
11942
  };
12042
11943
 
12043
11944
  // src/components/Table/TableBody.tsx
12044
- var import_styled_components78 = __toESM(require("styled-components"));
11945
+ var import_styled_components77 = __toESM(require("styled-components"));
12045
11946
 
12046
11947
  // src/components/Table/TableSectionContext.ts
12047
- var import_react61 = require("react");
12048
- var TableSectionContext = (0, import_react61.createContext)(null);
11948
+ var import_react62 = require("react");
11949
+ var TableSectionContext = (0, import_react62.createContext)(null);
12049
11950
 
12050
11951
  // src/components/Table/TableBody.tsx
12051
- var import_jsx_runtime258 = require("react/jsx-runtime");
12052
- var StyledTableBody = import_styled_components78.default.tbody``;
11952
+ var import_jsx_runtime257 = require("react/jsx-runtime");
11953
+ var StyledTableBody = import_styled_components77.default.tbody``;
12053
11954
  var TableBody = ({ children, ...props }) => {
12054
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StyledTableBody, { ...props, children }) });
11955
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledTableBody, { ...props, children }) });
12055
11956
  };
12056
11957
 
12057
11958
  // src/components/Table/TableCell.tsx
12058
- var import_react62 = require("react");
12059
- var import_styled_components79 = __toESM(require("styled-components"));
12060
- var import_jsx_runtime259 = require("react/jsx-runtime");
12061
- var sharedStyles = import_styled_components79.css`
11959
+ var import_react63 = require("react");
11960
+ var import_styled_components78 = __toESM(require("styled-components"));
11961
+ var import_jsx_runtime258 = require("react/jsx-runtime");
11962
+ var sharedStyles = import_styled_components78.css`
12062
11963
  color: var(--wui-color-text);
12063
11964
  padding: var(--wui-space-02);
12064
11965
  text-align: left;
12065
11966
  `;
12066
- var StyledTh = import_styled_components79.default.th`
11967
+ var StyledTh = import_styled_components78.default.th`
12067
11968
  ${sharedStyles}
12068
11969
  font-size: var(--wui-typography-body-4-size);
12069
11970
  font-weight: var(--wui-typography-weight-label-bold);
12070
11971
  line-height: var(--wui-typography-body-4-line-height);
12071
11972
  `;
12072
- var StyledTd = import_styled_components79.default.td`
11973
+ var StyledTd = import_styled_components78.default.td`
12073
11974
  ${sharedStyles}
12074
11975
  font-size: var(--wui-typography-body-2-size);
12075
11976
  font-weight: var(--wui-typography-body-2-weight);
12076
11977
  line-height: var(--wui-typography-body-2-line-height);
12077
11978
  `;
12078
11979
  var TableCell = ({ children, ...props }) => {
12079
- const section = (0, import_react62.useContext)(TableSectionContext);
11980
+ const section = (0, import_react63.useContext)(TableSectionContext);
12080
11981
  if (section === "head") {
12081
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StyledTh, { ...props, children });
11982
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StyledTh, { ...props, children });
12082
11983
  }
12083
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StyledTd, { ...props, children });
11984
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StyledTd, { ...props, children });
12084
11985
  };
12085
11986
 
12086
11987
  // src/components/Table/TableFoot.tsx
12087
- var import_styled_components80 = __toESM(require("styled-components"));
12088
- var import_jsx_runtime260 = require("react/jsx-runtime");
12089
- var StyledTableFoot = import_styled_components80.default.tfoot``;
11988
+ var import_styled_components79 = __toESM(require("styled-components"));
11989
+ var import_jsx_runtime259 = require("react/jsx-runtime");
11990
+ var StyledTableFoot = import_styled_components79.default.tfoot``;
12090
11991
  var TableFoot = ({ children, ...props }) => {
12091
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StyledTableFoot, { ...props, children }) });
11992
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StyledTableFoot, { ...props, children }) });
12092
11993
  };
12093
11994
 
12094
11995
  // src/components/Table/TableHead.tsx
12095
- var import_styled_components81 = __toESM(require("styled-components"));
12096
- var import_jsx_runtime261 = require("react/jsx-runtime");
12097
- var StyledThead = import_styled_components81.default.thead``;
11996
+ var import_styled_components80 = __toESM(require("styled-components"));
11997
+ var import_jsx_runtime260 = require("react/jsx-runtime");
11998
+ var StyledThead = import_styled_components80.default.thead``;
12098
11999
  var TableHead = ({ children, ...props }) => {
12099
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(StyledThead, { ...props, children }) });
12000
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StyledThead, { ...props, children }) });
12100
12001
  };
12101
12002
 
12102
12003
  // src/components/Table/TableRow.tsx
12103
- var import_styled_components82 = __toESM(require("styled-components"));
12104
- var import_jsx_runtime262 = require("react/jsx-runtime");
12105
- var StyledTableRow = import_styled_components82.default.tr``;
12004
+ var import_styled_components81 = __toESM(require("styled-components"));
12005
+ var import_jsx_runtime261 = require("react/jsx-runtime");
12006
+ var StyledTableRow = import_styled_components81.default.tr``;
12106
12007
  var TableRow = ({ children, ...props }) => {
12107
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(StyledTableRow, { ...props, children });
12008
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(StyledTableRow, { ...props, children });
12108
12009
  };
12109
12010
 
12110
12011
  // src/components/Tabs/Tabs.tsx
12111
- var import_react66 = require("react");
12012
+ var import_react67 = require("react");
12112
12013
  var import_react_tabs4 = require("@radix-ui/react-tabs");
12113
- var import_type_guards51 = require("@wistia/type-guards");
12114
- var import_styled_components87 = __toESM(require("styled-components"));
12014
+ var import_type_guards50 = require("@wistia/type-guards");
12015
+ var import_styled_components86 = __toESM(require("styled-components"));
12115
12016
 
12116
12017
  // src/components/Tabs/TabPanel.tsx
12117
- var import_styled_components83 = __toESM(require("styled-components"));
12018
+ var import_styled_components82 = __toESM(require("styled-components"));
12118
12019
  var import_react_tabs = require("@radix-ui/react-tabs");
12119
- var import_jsx_runtime263 = require("react/jsx-runtime");
12120
- var StyledTabPanel = (0, import_styled_components83.default)(import_react_tabs.Content)`
12020
+ var import_jsx_runtime262 = require("react/jsx-runtime");
12021
+ var StyledTabPanel = (0, import_styled_components82.default)(import_react_tabs.Content)`
12121
12022
  display: flex;
12122
12023
  flex-direction: column;
12123
12024
  `;
12124
12025
  var TabPanel = ({ children, value, ...props }) => {
12125
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
12026
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
12126
12027
  StyledTabPanel,
12127
12028
  {
12128
12029
  value,
@@ -12134,10 +12035,10 @@ var TabPanel = ({ children, value, ...props }) => {
12134
12035
  TabPanel.displayName = "TabPanel";
12135
12036
 
12136
12037
  // src/components/Tabs/TabList.tsx
12137
- var import_styled_components84 = __toESM(require("styled-components"));
12038
+ var import_styled_components83 = __toESM(require("styled-components"));
12138
12039
  var import_react_tabs2 = require("@radix-ui/react-tabs");
12139
- var import_jsx_runtime264 = require("react/jsx-runtime");
12140
- var StyledTabList = (0, import_styled_components84.default)(import_react_tabs2.List)`
12040
+ var import_jsx_runtime263 = require("react/jsx-runtime");
12041
+ var StyledTabList = (0, import_styled_components83.default)(import_react_tabs2.List)`
12141
12042
  ${segmentedControlStyles}
12142
12043
 
12143
12044
  margin-bottom: var(--wui-space-04);
@@ -12150,7 +12051,7 @@ var TabList = ({
12150
12051
  ariaLabel,
12151
12052
  ...props
12152
12053
  }) => {
12153
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
12054
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
12154
12055
  StyledTabList,
12155
12056
  {
12156
12057
  $fullWidth: fullWidth,
@@ -12163,17 +12064,17 @@ var TabList = ({
12163
12064
  TabList.displayName = "TabList";
12164
12065
 
12165
12066
  // src/components/Tabs/TabItem.tsx
12166
- var import_react64 = require("react");
12167
- var import_styled_components85 = __toESM(require("styled-components"));
12067
+ var import_react65 = require("react");
12068
+ var import_styled_components84 = __toESM(require("styled-components"));
12168
12069
  var import_react_tabs3 = require("@radix-ui/react-tabs");
12169
- var import_type_guards50 = require("@wistia/type-guards");
12070
+ var import_type_guards49 = require("@wistia/type-guards");
12170
12071
 
12171
12072
  // src/components/Tabs/useTabsValue.tsx
12172
- var import_react63 = require("react");
12173
- var TabsValueContext = (0, import_react63.createContext)(null);
12073
+ var import_react64 = require("react");
12074
+ var TabsValueContext = (0, import_react64.createContext)(null);
12174
12075
  var TabsValueProvider = TabsValueContext.Provider;
12175
12076
  var useTabsValue = () => {
12176
- const context = (0, import_react63.useContext)(TabsValueContext);
12077
+ const context = (0, import_react64.useContext)(TabsValueContext);
12177
12078
  if (context === null) {
12178
12079
  throw new Error("useTabsValue must be used within a TabsValueProvider");
12179
12080
  }
@@ -12181,21 +12082,21 @@ var useTabsValue = () => {
12181
12082
  };
12182
12083
 
12183
12084
  // src/components/Tabs/TabItem.tsx
12184
- var import_jsx_runtime265 = require("react/jsx-runtime");
12185
- var StyledTabItem = (0, import_styled_components85.default)(import_react_tabs3.Trigger)`
12085
+ var import_jsx_runtime264 = require("react/jsx-runtime");
12086
+ var StyledTabItem = (0, import_styled_components84.default)(import_react_tabs3.Trigger)`
12186
12087
  ${segmentedControlItemStyles}
12187
12088
 
12188
12089
  &:focus-visible {
12189
12090
  outline: none;
12190
12091
  }
12191
12092
  `;
12192
- var TabItem = (0, import_react64.forwardRef)(
12093
+ var TabItem = (0, import_react65.forwardRef)(
12193
12094
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
12194
12095
  const selectedValue = useTabsValue();
12195
12096
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
12196
- const buttonRef = (0, import_react64.useRef)(null);
12097
+ const buttonRef = (0, import_react65.useRef)(null);
12197
12098
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
12198
- (0, import_react64.useEffect)(() => {
12099
+ (0, import_react65.useEffect)(() => {
12199
12100
  const buttonElem = buttonRef.current;
12200
12101
  if (!buttonElem) {
12201
12102
  return void 0;
@@ -12220,12 +12121,12 @@ var TabItem = (0, import_react64.forwardRef)(
12220
12121
  resizeObserver.disconnect();
12221
12122
  };
12222
12123
  }, [selectedValue, setSelectedItemMeasurements, value]);
12223
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
12124
+ return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
12224
12125
  StyledTabItem,
12225
12126
  {
12226
12127
  ref: combinedRef,
12227
- $hasLabel: (0, import_type_guards50.isNotNil)(label),
12228
- "aria-label": (0, import_type_guards50.isNotNil)(label) ? void 0 : ariaLabel,
12128
+ $hasLabel: (0, import_type_guards49.isNotNil)(label),
12129
+ "aria-label": (0, import_type_guards49.isNotNil)(label) ? void 0 : ariaLabel,
12229
12130
  disabled,
12230
12131
  value,
12231
12132
  children: [
@@ -12239,16 +12140,16 @@ var TabItem = (0, import_react64.forwardRef)(
12239
12140
  TabItem.displayName = "TabItem";
12240
12141
 
12241
12142
  // src/components/Tabs/extractTabItems.ts
12242
- var import_react65 = require("react");
12143
+ var import_react66 = require("react");
12243
12144
  var extractTabItems = (children) => {
12244
12145
  const tabItems = [];
12245
- import_react65.Children.forEach(children, (child) => {
12246
- if (!(0, import_react65.isValidElement)(child)) {
12146
+ import_react66.Children.forEach(children, (child) => {
12147
+ if (!(0, import_react66.isValidElement)(child)) {
12247
12148
  return;
12248
12149
  }
12249
12150
  if (typeof child.type !== "string" && child.type.displayName === "Tab") {
12250
12151
  tabItems.push(child);
12251
- } else if (child.type === import_react65.Fragment) {
12152
+ } else if (child.type === import_react66.Fragment) {
12252
12153
  const fragmentElement = child;
12253
12154
  tabItems.push(...extractTabItems(fragmentElement.props.children));
12254
12155
  } else if ((child.props.children ?? null) != null) {
@@ -12261,9 +12162,9 @@ var extractTabItems = (children) => {
12261
12162
  };
12262
12163
 
12263
12164
  // src/components/Tabs/SelectedItemIndicator.tsx
12264
- var import_styled_components86 = __toESM(require("styled-components"));
12265
- var import_jsx_runtime266 = require("react/jsx-runtime");
12266
- var TabsSelectedItemIndicatorDiv = (0, import_styled_components86.default)(SelectedItemIndicatorDiv)`
12165
+ var import_styled_components85 = __toESM(require("styled-components"));
12166
+ var import_jsx_runtime265 = require("react/jsx-runtime");
12167
+ var TabsSelectedItemIndicatorDiv = (0, import_styled_components85.default)(SelectedItemIndicatorDiv)`
12267
12168
  &:has(~ ${StyledTabItem}:focus-visible) {
12268
12169
  outline: 2px solid var(--wui-color-focus-ring);
12269
12170
  }
@@ -12274,28 +12175,28 @@ var SelectedItemIndicator2 = () => {
12274
12175
  if (selectedValue == null) {
12275
12176
  return null;
12276
12177
  }
12277
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12178
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12278
12179
  };
12279
12180
 
12280
12181
  // src/components/Tabs/Tabs.tsx
12281
- var import_jsx_runtime267 = require("react/jsx-runtime");
12282
- var TabsContainer = import_styled_components87.default.div`
12182
+ var import_jsx_runtime266 = require("react/jsx-runtime");
12183
+ var TabsContainer = import_styled_components86.default.div`
12283
12184
  display: flex;
12284
12185
  flex-direction: column;
12285
12186
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12286
12187
  overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12287
12188
  `;
12288
- var StickyTabContent = import_styled_components87.default.div`
12189
+ var StickyTabContent = import_styled_components86.default.div`
12289
12190
  flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
12290
12191
  overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
12291
12192
  overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12292
12193
  `;
12293
- var StyledTabsRoot = (0, import_styled_components87.default)(import_react_tabs4.Root)`
12194
+ var StyledTabsRoot = (0, import_styled_components86.default)(import_react_tabs4.Root)`
12294
12195
  display: flex;
12295
12196
  flex-direction: column;
12296
12197
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12297
12198
  `;
12298
- var Tabs = (0, import_react66.forwardRef)(
12199
+ var Tabs = (0, import_react67.forwardRef)(
12299
12200
  ({
12300
12201
  children,
12301
12202
  fullWidth = true,
@@ -12307,13 +12208,13 @@ var Tabs = (0, import_react66.forwardRef)(
12307
12208
  ...props
12308
12209
  }, ref) => {
12309
12210
  const tabItems = extractTabItems(children);
12310
- const [internalSelectedValue, setInternalSelectedValue] = (0, import_react66.useState)(defaultSelectedValue);
12211
+ const [internalSelectedValue, setInternalSelectedValue] = (0, import_react67.useState)(defaultSelectedValue);
12311
12212
  const modeProps = defaultSelectedValue !== void 0 ? {
12312
12213
  defaultValue: defaultSelectedValue,
12313
12214
  onValueChange: setInternalSelectedValue
12314
12215
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
12315
12216
  const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
12316
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12217
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12317
12218
  StyledTabsRoot,
12318
12219
  {
12319
12220
  ref,
@@ -12321,14 +12222,14 @@ var Tabs = (0, import_react66.forwardRef)(
12321
12222
  activationMode: "automatic",
12322
12223
  ...props,
12323
12224
  ...modeProps,
12324
- children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(SelectedItemStyleProvider, { children: [
12325
- /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
12225
+ children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(SelectedItemStyleProvider, { children: [
12226
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
12326
12227
  TabList,
12327
12228
  {
12328
12229
  ariaLabel,
12329
12230
  fullWidth,
12330
12231
  children: [
12331
- /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(SelectedItemIndicator2, {}),
12232
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(SelectedItemIndicator2, {}),
12332
12233
  tabItems.map((tab) => {
12333
12234
  const {
12334
12235
  value,
@@ -12337,8 +12238,8 @@ var Tabs = (0, import_react66.forwardRef)(
12337
12238
  label,
12338
12239
  "aria-label": ariaLabelForTab
12339
12240
  } = tab.props;
12340
- if ((0, import_type_guards51.isNil)(icon)) {
12341
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12241
+ if ((0, import_type_guards50.isNil)(icon)) {
12242
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12342
12243
  TabItem,
12343
12244
  {
12344
12245
  disabled,
@@ -12348,8 +12249,8 @@ var Tabs = (0, import_react66.forwardRef)(
12348
12249
  value
12349
12250
  );
12350
12251
  }
12351
- if ((0, import_type_guards51.isNotNil)(label)) {
12352
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12252
+ if ((0, import_type_guards50.isNotNil)(label)) {
12253
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12353
12254
  TabItem,
12354
12255
  {
12355
12256
  disabled,
@@ -12360,8 +12261,8 @@ var Tabs = (0, import_react66.forwardRef)(
12360
12261
  value
12361
12262
  );
12362
12263
  }
12363
- if ((0, import_type_guards51.isNotNil)(ariaLabelForTab)) {
12364
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12264
+ if ((0, import_type_guards50.isNotNil)(ariaLabelForTab)) {
12265
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12365
12266
  TabItem,
12366
12267
  {
12367
12268
  "aria-label": ariaLabelForTab,
@@ -12377,7 +12278,7 @@ var Tabs = (0, import_react66.forwardRef)(
12377
12278
  ]
12378
12279
  }
12379
12280
  ),
12380
- /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
12281
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
12381
12282
  TabPanel,
12382
12283
  {
12383
12284
  value: tab.props.value,
@@ -12393,19 +12294,19 @@ var Tabs = (0, import_react66.forwardRef)(
12393
12294
  Tabs.displayName = "Tabs";
12394
12295
 
12395
12296
  // src/components/Tabs/Tab.tsx
12396
- var import_react67 = require("react");
12397
- var import_jsx_runtime268 = require("react/jsx-runtime");
12398
- var Tab = (0, import_react67.forwardRef)(({ children }, ref) => {
12399
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("div", { ref, children });
12297
+ var import_react68 = require("react");
12298
+ var import_jsx_runtime267 = require("react/jsx-runtime");
12299
+ var Tab = (0, import_react68.forwardRef)(({ children }, ref) => {
12300
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { ref, children });
12400
12301
  });
12401
12302
  Tab.displayName = "Tab";
12402
12303
 
12403
12304
  // src/components/Tag/Tag.tsx
12404
- var import_react68 = require("react");
12405
- var import_styled_components88 = __toESM(require("styled-components"));
12406
- var import_type_guards52 = require("@wistia/type-guards");
12407
- var import_jsx_runtime269 = require("react/jsx-runtime");
12408
- var TagLabel = import_styled_components88.default.a`
12305
+ var import_react69 = require("react");
12306
+ var import_styled_components87 = __toESM(require("styled-components"));
12307
+ var import_type_guards51 = require("@wistia/type-guards");
12308
+ var import_jsx_runtime268 = require("react/jsx-runtime");
12309
+ var TagLabel = import_styled_components87.default.a`
12409
12310
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12410
12311
  font-size: var(--wui-typography-label-4-size);
12411
12312
  font-weight: var(--wui-typography-label-4-weight);
@@ -12440,14 +12341,14 @@ var TagLabel = import_styled_components88.default.a`
12440
12341
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12441
12342
  }
12442
12343
  `;
12443
- var TagDivider = import_styled_components88.default.div`
12344
+ var TagDivider = import_styled_components87.default.div`
12444
12345
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12445
12346
  border-left: 1px solid var(--wui-color-border);
12446
12347
  display: flex;
12447
12348
  height: 14px;
12448
12349
  width: 1px;
12449
12350
  `;
12450
- var StyledRemoveButton = import_styled_components88.default.button`
12351
+ var StyledRemoveButton = import_styled_components87.default.button`
12451
12352
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12452
12353
  all: unset;
12453
12354
  cursor: pointer;
@@ -12475,7 +12376,7 @@ var StyledRemoveButton = import_styled_components88.default.button`
12475
12376
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12476
12377
  }
12477
12378
  `;
12478
- var StyledTag = import_styled_components88.default.div`
12379
+ var StyledTag = import_styled_components87.default.div`
12479
12380
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12480
12381
  align-items: center;
12481
12382
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12488,48 +12389,48 @@ var StyledTag = import_styled_components88.default.div`
12488
12389
  }
12489
12390
  `;
12490
12391
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12491
- if ((0, import_type_guards52.isNil)(onClickRemove)) {
12392
+ if ((0, import_type_guards51.isNil)(onClickRemove)) {
12492
12393
  return null;
12493
12394
  }
12494
- if ((0, import_type_guards52.isNil)(onClickRemoveLabel)) {
12395
+ if ((0, import_type_guards51.isNil)(onClickRemoveLabel)) {
12495
12396
  throw new Error(
12496
12397
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12497
12398
  );
12498
12399
  }
12499
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(import_jsx_runtime269.Fragment, { children: [
12500
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(TagDivider, { $colorScheme: colorScheme }),
12501
- /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12400
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(import_jsx_runtime268.Fragment, { children: [
12401
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TagDivider, { $colorScheme: colorScheme }),
12402
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12502
12403
  StyledRemoveButton,
12503
12404
  {
12504
12405
  $colorScheme: colorScheme,
12505
12406
  onClick: onClickRemove,
12506
12407
  type: "button",
12507
12408
  children: [
12508
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12409
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12509
12410
  Icon,
12510
12411
  {
12511
12412
  size: "sm",
12512
12413
  type: "close"
12513
12414
  }
12514
12415
  ),
12515
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12416
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12516
12417
  ]
12517
12418
  }
12518
12419
  )
12519
12420
  ] });
12520
12421
  };
12521
- var Tag = (0, import_react68.forwardRef)(
12422
+ var Tag = (0, import_react69.forwardRef)(
12522
12423
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12523
- const hasIcon = (0, import_type_guards52.isNotNil)(icon);
12524
- const labelProps = (0, import_type_guards52.isNotNil)(href) && (0, import_type_guards52.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12525
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12424
+ const hasIcon = (0, import_type_guards51.isNotNil)(icon);
12425
+ const labelProps = (0, import_type_guards51.isNotNil)(href) && (0, import_type_guards51.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12426
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12526
12427
  StyledTag,
12527
12428
  {
12528
12429
  ref,
12529
12430
  $colorScheme: colorScheme,
12530
12431
  ...props,
12531
12432
  children: [
12532
- /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12433
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12533
12434
  TagLabel,
12534
12435
  {
12535
12436
  ...labelProps,
@@ -12540,7 +12441,7 @@ var Tag = (0, import_react68.forwardRef)(
12540
12441
  ]
12541
12442
  }
12542
12443
  ),
12543
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12444
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12544
12445
  RemoveButton,
12545
12446
  {
12546
12447
  colorScheme,
@@ -12556,10 +12457,10 @@ var Tag = (0, import_react68.forwardRef)(
12556
12457
  Tag.displayName = "Tag";
12557
12458
 
12558
12459
  // src/components/Thumbnail/ThumbnailBadge.tsx
12559
- var import_styled_components89 = __toESM(require("styled-components"));
12560
- var import_type_guards53 = require("@wistia/type-guards");
12561
- var import_jsx_runtime270 = require("react/jsx-runtime");
12562
- var StyledThumbnailBadge = import_styled_components89.default.div`
12460
+ var import_styled_components88 = __toESM(require("styled-components"));
12461
+ var import_type_guards52 = require("@wistia/type-guards");
12462
+ var import_jsx_runtime269 = require("react/jsx-runtime");
12463
+ var StyledThumbnailBadge = import_styled_components88.default.div`
12563
12464
  align-items: center;
12564
12465
  background-color: rgb(0 0 0 / 50%);
12565
12466
  border-radius: var(--wui-border-radius-01);
@@ -12584,23 +12485,23 @@ var StyledThumbnailBadge = import_styled_components89.default.div`
12584
12485
  }
12585
12486
  `;
12586
12487
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12587
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(StyledThumbnailBadge, { ...props, children: [
12588
- (0, import_type_guards53.isNotNil)(icon) && icon,
12589
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("span", { children: label })
12488
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(StyledThumbnailBadge, { ...props, children: [
12489
+ (0, import_type_guards52.isNotNil)(icon) && icon,
12490
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("span", { children: label })
12590
12491
  ] });
12591
12492
  };
12592
12493
  ThumbnailBadge.displayName = "ThumbnailBadge";
12593
12494
 
12594
12495
  // src/components/Thumbnail/Thumbnail.tsx
12595
- var import_react69 = require("react");
12596
- var import_styled_components91 = __toESM(require("styled-components"));
12597
- var import_type_guards55 = require("@wistia/type-guards");
12496
+ var import_react70 = require("react");
12497
+ var import_styled_components90 = __toESM(require("styled-components"));
12498
+ var import_type_guards54 = require("@wistia/type-guards");
12598
12499
 
12599
12500
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12600
- var import_type_guards54 = require("@wistia/type-guards");
12601
- var import_styled_components90 = require("styled-components");
12501
+ var import_type_guards53 = require("@wistia/type-guards");
12502
+ var import_styled_components89 = require("styled-components");
12602
12503
  var gradients = {
12603
- defaultDarkOne: import_styled_components90.css`
12504
+ defaultDarkOne: import_styled_components89.css`
12604
12505
  background-color: #222d66;
12605
12506
  background-image:
12606
12507
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12608,7 +12509,7 @@ var gradients = {
12608
12509
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12609
12510
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12610
12511
  `,
12611
- defaultDarkTwo: import_styled_components90.css`
12512
+ defaultDarkTwo: import_styled_components89.css`
12612
12513
  background-color: #222d66;
12613
12514
  background-image:
12614
12515
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12616,7 +12517,7 @@ var gradients = {
12616
12517
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12617
12518
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12618
12519
  `,
12619
- defaultLightOne: import_styled_components90.css`
12520
+ defaultLightOne: import_styled_components89.css`
12620
12521
  background-color: #ccd5ff;
12621
12522
  background-image:
12622
12523
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12624,13 +12525,13 @@ var gradients = {
12624
12525
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12625
12526
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12626
12527
  `,
12627
- defaultLightTwo: import_styled_components90.css`
12528
+ defaultLightTwo: import_styled_components89.css`
12628
12529
  background-color: #ccd5ff;
12629
12530
  background-image:
12630
12531
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12631
12532
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12632
12533
  `,
12633
- defaultMidOne: import_styled_components90.css`
12534
+ defaultMidOne: import_styled_components89.css`
12634
12535
  background-color: #6b84ff;
12635
12536
  background-image:
12636
12537
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12638,13 +12539,13 @@ var gradients = {
12638
12539
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12639
12540
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12640
12541
  `,
12641
- defaultMidTwo: import_styled_components90.css`
12542
+ defaultMidTwo: import_styled_components89.css`
12642
12543
  background-color: #6b84ff;
12643
12544
  background-image:
12644
12545
  radial-gradient(ellipse at top, #2949e5, transparent),
12645
12546
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12646
12547
  `,
12647
- green: import_styled_components90.css`
12548
+ green: import_styled_components89.css`
12648
12549
  background-color: #fafffa;
12649
12550
  background-image:
12650
12551
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12652,7 +12553,7 @@ var gradients = {
12652
12553
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12653
12554
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12654
12555
  `,
12655
- greenWithPop: import_styled_components90.css`
12556
+ greenWithPop: import_styled_components89.css`
12656
12557
  background-color: #fafffa;
12657
12558
  background-image:
12658
12559
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12660,7 +12561,7 @@ var gradients = {
12660
12561
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12661
12562
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12662
12563
  `,
12663
- pink: import_styled_components90.css`
12564
+ pink: import_styled_components89.css`
12664
12565
  background-color: #fffff0;
12665
12566
  background-image:
12666
12567
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12668,7 +12569,7 @@ var gradients = {
12668
12569
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12669
12570
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12670
12571
  `,
12671
- pinkWithPop: import_styled_components90.css`
12572
+ pinkWithPop: import_styled_components89.css`
12672
12573
  background-color: #fffff0;
12673
12574
  background-image:
12674
12575
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12676,7 +12577,7 @@ var gradients = {
12676
12577
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12677
12578
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12678
12579
  `,
12679
- playfulGradientOne: import_styled_components90.css`
12580
+ playfulGradientOne: import_styled_components89.css`
12680
12581
  background-color: #f7f8ff;
12681
12582
  background-image:
12682
12583
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12684,7 +12585,7 @@ var gradients = {
12684
12585
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12685
12586
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12686
12587
  `,
12687
- playfulGradientTwo: import_styled_components90.css`
12588
+ playfulGradientTwo: import_styled_components89.css`
12688
12589
  background-color: #f7f8ff;
12689
12590
  background-image:
12690
12591
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12692,13 +12593,13 @@ var gradients = {
12692
12593
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12693
12594
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12694
12595
  `,
12695
- purple: import_styled_components90.css`
12596
+ purple: import_styled_components89.css`
12696
12597
  background-color: #f2caff;
12697
12598
  background-image:
12698
12599
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12699
12600
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12700
12601
  `,
12701
- purpleWithPop: import_styled_components90.css`
12602
+ purpleWithPop: import_styled_components89.css`
12702
12603
  background-color: #f2caff;
12703
12604
  background-image:
12704
12605
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12706,7 +12607,7 @@ var gradients = {
12706
12607
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12707
12608
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12708
12609
  `,
12709
- yellow: import_styled_components90.css`
12610
+ yellow: import_styled_components89.css`
12710
12611
  background-color: #fffff0;
12711
12612
  background-image:
12712
12613
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12714,7 +12615,7 @@ var gradients = {
12714
12615
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12715
12616
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12716
12617
  `,
12717
- yellowWithPop: import_styled_components90.css`
12618
+ yellowWithPop: import_styled_components89.css`
12718
12619
  background-color: #fffff0;
12719
12620
  background-image:
12720
12621
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12725,24 +12626,24 @@ var gradients = {
12725
12626
  };
12726
12627
  var gradientMap = Object.keys(gradients);
12727
12628
  var getBackgroundGradient = (gradientName = void 0) => {
12728
- return (0, import_type_guards54.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12629
+ return (0, import_type_guards53.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12729
12630
  };
12730
12631
 
12731
12632
  // src/components/Thumbnail/Thumbnail.tsx
12732
- var import_jsx_runtime271 = require("react/jsx-runtime");
12733
- var WideThumbnailImage = import_styled_components91.default.img`
12633
+ var import_jsx_runtime270 = require("react/jsx-runtime");
12634
+ var WideThumbnailImage = import_styled_components90.default.img`
12734
12635
  height: 100%;
12735
12636
  object-fit: cover;
12736
12637
  width: 100%;
12737
12638
  `;
12738
- var SquareThumbnailImage = import_styled_components91.default.img`
12639
+ var SquareThumbnailImage = import_styled_components90.default.img`
12739
12640
  backdrop-filter: blur(8px);
12740
12641
  object-fit: contain;
12741
12642
  width: 100%;
12742
12643
  `;
12743
12644
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12744
12645
  if (thumbnailImageType === "wide") {
12745
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12646
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12746
12647
  WideThumbnailImage,
12747
12648
  {
12748
12649
  alt: "",
@@ -12751,7 +12652,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12751
12652
  }
12752
12653
  );
12753
12654
  }
12754
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12655
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12755
12656
  SquareThumbnailImage,
12756
12657
  {
12757
12658
  alt: "",
@@ -12760,11 +12661,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12760
12661
  }
12761
12662
  );
12762
12663
  };
12763
- var StyledThumbnail = import_styled_components91.default.div`
12764
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards55.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12664
+ var StyledThumbnail = import_styled_components90.default.div`
12665
+ background-image: ${({ $backgroundUrl }) => (0, import_type_guards54.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12765
12666
  ${({ $backgroundUrl, $gradientBackground }) => (
12766
12667
  // if we don't have $backgroundUrl show a gradient
12767
- (0, import_type_guards55.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12668
+ (0, import_type_guards54.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12768
12669
  )};
12769
12670
  background-position: center center;
12770
12671
  background-size: cover;
@@ -12779,7 +12680,7 @@ var StyledThumbnail = import_styled_components91.default.div`
12779
12680
  border-radius: calc(8% * (9 / 16)) / 8%;
12780
12681
  }
12781
12682
  `;
12782
- var Thumbnail = (0, import_react69.forwardRef)(
12683
+ var Thumbnail = (0, import_react70.forwardRef)(
12783
12684
  ({
12784
12685
  gradientBackground = "defaultMidOne",
12785
12686
  thumbnailImageType = "square",
@@ -12788,8 +12689,8 @@ var Thumbnail = (0, import_react69.forwardRef)(
12788
12689
  children,
12789
12690
  ...props
12790
12691
  }, ref) => {
12791
- const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards55.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12792
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
12692
+ const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards54.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12693
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12793
12694
  StyledThumbnail,
12794
12695
  {
12795
12696
  ref,
@@ -12799,8 +12700,8 @@ var Thumbnail = (0, import_react69.forwardRef)(
12799
12700
  $width: width,
12800
12701
  role: "presentation",
12801
12702
  children: [
12802
- (0, import_type_guards55.isNotNil)(children) ? children : null,
12803
- (0, import_type_guards55.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12703
+ (0, import_type_guards54.isNotNil)(children) ? children : null,
12704
+ (0, import_type_guards54.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12804
12705
  ThumbnailImage,
12805
12706
  {
12806
12707
  thumbnailImageType,
@@ -12815,14 +12716,14 @@ var Thumbnail = (0, import_react69.forwardRef)(
12815
12716
  Thumbnail.displayName = "Thumbnail";
12816
12717
 
12817
12718
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12818
- var import_react70 = __toESM(require("react"));
12819
- var import_styled_components92 = __toESM(require("styled-components"));
12820
- var import_type_guards56 = require("@wistia/type-guards");
12821
- var import_jsx_runtime272 = (
12719
+ var import_react71 = __toESM(require("react"));
12720
+ var import_styled_components91 = __toESM(require("styled-components"));
12721
+ var import_type_guards55 = require("@wistia/type-guards");
12722
+ var import_jsx_runtime271 = (
12822
12723
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
12823
12724
  require("react/jsx-runtime")
12824
12725
  );
12825
- var StyledThumbnailCollage = import_styled_components92.default.div`
12726
+ var StyledThumbnailCollage = import_styled_components91.default.div`
12826
12727
  display: grid;
12827
12728
  gap: var(--wui-space-01);
12828
12729
  width: 100%;
@@ -12895,15 +12796,15 @@ var ThumbnailCollage = ({
12895
12796
  gradientBackground = "defaultMidOne",
12896
12797
  ...props
12897
12798
  }) => {
12898
- const thumbnailArray = import_react70.default.Children.toArray(children);
12799
+ const thumbnailArray = import_react71.default.Children.toArray(children);
12899
12800
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
12900
- const thumbnails = (0, import_type_guards56.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
12901
- return import_react70.default.cloneElement(child, {
12801
+ const thumbnails = (0, import_type_guards55.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
12802
+ return import_react71.default.cloneElement(child, {
12902
12803
  ...child.props,
12903
12804
  children: void 0
12904
12805
  });
12905
12806
  }) : [
12906
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
12807
+ /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12907
12808
  Thumbnail,
12908
12809
  {
12909
12810
  gradientBackground,
@@ -12912,7 +12813,7 @@ var ThumbnailCollage = ({
12912
12813
  "fallback"
12913
12814
  )
12914
12815
  ];
12915
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
12816
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12916
12817
  StyledThumbnailCollage,
12917
12818
  {
12918
12819
  $gradientBackground: gradientBackground,
@@ -12924,26 +12825,26 @@ var ThumbnailCollage = ({
12924
12825
  };
12925
12826
 
12926
12827
  // src/components/WistiaLogo/WistiaLogo.tsx
12927
- var import_styled_components93 = __toESM(require("styled-components"));
12928
- var import_type_guards57 = require("@wistia/type-guards");
12929
- var import_jsx_runtime273 = require("react/jsx-runtime");
12828
+ var import_styled_components92 = __toESM(require("styled-components"));
12829
+ var import_type_guards56 = require("@wistia/type-guards");
12830
+ var import_jsx_runtime272 = require("react/jsx-runtime");
12930
12831
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12931
12832
  if (iconOnly) {
12932
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
12833
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
12933
12834
  "g",
12934
12835
  {
12935
12836
  "data-testid": "ui-wistia-logo-brandmark",
12936
12837
  fill: brandmarkColor,
12937
- 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" })
12838
+ 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" })
12938
12839
  }
12939
12840
  );
12940
12841
  }
12941
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
12842
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
12942
12843
  "g",
12943
12844
  {
12944
12845
  "data-testid": "ui-wistia-logo-brandmark",
12945
12846
  fill: brandmarkColor,
12946
- 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" })
12847
+ 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" })
12947
12848
  }
12948
12849
  );
12949
12850
  };
@@ -12951,12 +12852,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
12951
12852
  if (iconOnly) {
12952
12853
  return null;
12953
12854
  }
12954
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
12855
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
12955
12856
  "g",
12956
12857
  {
12957
12858
  "data-testid": "ui-wistia-logo-logotype",
12958
12859
  fill: logotypeColor,
12959
- 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" })
12860
+ 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" })
12960
12861
  }
12961
12862
  );
12962
12863
  };
@@ -12966,7 +12867,7 @@ var computedViewBox = (iconOnly) => {
12966
12867
  }
12967
12868
  return "0 0 144 31.47";
12968
12869
  };
12969
- var WistiaLogoComponent = import_styled_components93.default.svg`
12870
+ var WistiaLogoComponent = import_styled_components92.default.svg`
12970
12871
  height: ${({ height }) => `${height}px`};
12971
12872
 
12972
12873
  /* ensure it will always fit on mobile */
@@ -12982,12 +12883,12 @@ var WistiaLogoComponent = import_styled_components93.default.svg`
12982
12883
  ${({ $opticallyCentered, $iconOnly }) => {
12983
12884
  if ($opticallyCentered) {
12984
12885
  if ($iconOnly) {
12985
- return import_styled_components93.css`
12886
+ return import_styled_components92.css`
12986
12887
  aspect-ratio: 1;
12987
12888
  padding: 11.85% 3.12% 13.91%;
12988
12889
  `;
12989
12890
  }
12990
- return import_styled_components93.css`
12891
+ return import_styled_components92.css`
12991
12892
  aspect-ratio: 127 / 32;
12992
12893
  `;
12993
12894
  }
@@ -13024,7 +12925,7 @@ var WistiaLogo = ({
13024
12925
  };
13025
12926
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
13026
12927
  const logotypeColor = VARIANT_COLORS[variant].logotype;
13027
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
12928
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
13028
12929
  WistiaLogoComponent,
13029
12930
  {
13030
12931
  $hoverColor: hoverColor,
@@ -13037,14 +12938,14 @@ var WistiaLogo = ({
13037
12938
  xmlns: "http://www.w3.org/2000/svg",
13038
12939
  ...props,
13039
12940
  children: [
13040
- /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("title", { children: title }),
13041
- (0, import_type_guards57.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("desc", { children: description }) : null,
12941
+ /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("title", { children: title }),
12942
+ (0, import_type_guards56.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("desc", { children: description }) : null,
13042
12943
  renderBrandmark(brandmarkColor, iconOnly),
13043
12944
  renderLogotype(logotypeColor, iconOnly)
13044
12945
  ]
13045
12946
  }
13046
12947
  );
13047
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("a", { href, children: Logo }) : Logo;
12948
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("a", { href, children: Logo }) : Logo;
13048
12949
  };
13049
12950
  WistiaLogo.displayName = "WistiaLogo";
13050
12951
  // Annotate the CommonJS export names for ESM import in node:
@@ -13087,7 +12988,6 @@ WistiaLogo.displayName = "WistiaLogo";
13087
12988
  ImageDimensionsValidator,
13088
12989
  Input,
13089
12990
  InputClickToCopy,
13090
- KeyboardShortcut,
13091
12991
  Label,
13092
12992
  Link,
13093
12993
  Menu,
@@ -13148,6 +13048,7 @@ WistiaLogo.displayName = "WistiaLogo";
13148
13048
  useLockBodyScroll,
13149
13049
  useMq,
13150
13050
  useOnClickOutside,
13051
+ usePreviousValue,
13151
13052
  useToast,
13152
13053
  useWindowSize
13153
13054
  });