@wistia/ui 0.8.8 → 0.8.9-beta.8e513df6.87f52b0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.8.8
3
+ * @license @wistia/ui v0.8.9-beta.8e513df6.87f52b0
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -10,6 +10,7 @@
10
10
 
11
11
  // src/providers/UIProvider/UIProvider.tsx
12
12
  import { Provider as TooltipProvider } from "@radix-ui/react-tooltip";
13
+ import { createContext as createContext2, useContext } from "react";
13
14
 
14
15
  // src/css/GlobalStyle.tsx
15
16
  import { createGlobalStyle } from "styled-components";
@@ -1468,12 +1469,17 @@ var ToastProvider = () => /* @__PURE__ */ jsx2(Toaster, { ...toastConfig });
1468
1469
 
1469
1470
  // src/providers/UIProvider/UIProvider.tsx
1470
1471
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
1472
+ var UIProviderNestingContext = createContext2(false);
1471
1473
  var UIProvider = ({ children }) => {
1472
- return /* @__PURE__ */ jsx3(AriaLiveProvider, { children: /* @__PURE__ */ jsxs(TooltipProvider, { children: [
1474
+ const isNested = useContext(UIProviderNestingContext);
1475
+ if (isNested) {
1476
+ console.warn("UIProvider is nested. Only one instance of UIProvider.");
1477
+ }
1478
+ return /* @__PURE__ */ jsx3(UIProviderNestingContext.Provider, { value: true, children: /* @__PURE__ */ jsx3(AriaLiveProvider, { children: /* @__PURE__ */ jsxs(TooltipProvider, { children: [
1473
1479
  /* @__PURE__ */ jsx3(GlobalStyle, {}),
1474
1480
  children,
1475
1481
  process.env["NODE_ENV"] !== "test" && /* @__PURE__ */ jsx3(ToastProvider, {})
1476
- ] }) });
1482
+ ] }) }) });
1477
1483
  };
1478
1484
 
1479
1485
  // src/helpers/copyToClipboard/copyToClipboard.ts
@@ -1941,10 +1947,10 @@ var mq = {
1941
1947
  };
1942
1948
 
1943
1949
  // src/hooks/useAriaLive/useAriaLive.tsx
1944
- import { useContext } from "react";
1950
+ import { useContext as useContext2 } from "react";
1945
1951
  import { isNil as isNil4 } from "@wistia/type-guards";
1946
1952
  var useAriaLive = () => {
1947
- const context = useContext(AriaLiveContext);
1953
+ const context = useContext2(AriaLiveContext);
1948
1954
  if (isNil4(context)) {
1949
1955
  throw new Error("useAriaLive must be used within an AriaLiveProvider");
1950
1956
  }
@@ -2196,9 +2202,20 @@ import { isNotNil as isNotNil4 } from "@wistia/type-guards";
2196
2202
 
2197
2203
  // src/components/Ellipsis/Ellipsis.tsx
2198
2204
  import { isNotNil as isNotNil3 } from "@wistia/type-guards";
2199
- import styled, { css as css12 } from "styled-components";
2205
+ import styled, { css as css13 } from "styled-components";
2206
+
2207
+ // src/css/lineClampCss.tsx
2208
+ import { css as css12 } from "styled-components";
2209
+ var lineClampCss = ($lines = 1) => css12`
2210
+ -webkit-box-orient: vertical;
2211
+ -webkit-line-clamp: ${$lines};
2212
+ display: -webkit-box !important;
2213
+ white-space: initial;
2214
+ `;
2215
+
2216
+ // src/components/Ellipsis/Ellipsis.tsx
2200
2217
  import { jsx as jsx4 } from "react/jsx-runtime";
2201
- var ellipsisStyle = css12`
2218
+ var ellipsisStyle = css13`
2202
2219
  overflow: hidden;
2203
2220
  text-overflow: ellipsis;
2204
2221
  white-space: nowrap;
@@ -2222,23 +2239,14 @@ var ellipsisStyle = css12`
2222
2239
  }
2223
2240
  }
2224
2241
  `;
2225
- var lineClampStyle = css12`
2226
- -webkit-box-orient: vertical;
2227
- -webkit-line-clamp: 1;
2228
- display: -webkit-box !important;
2229
- white-space: initial;
2230
- `;
2231
- var ellipsisFlexParentStyle = css12`
2242
+ var ellipsisFlexParentStyle = css13`
2232
2243
  min-width: 0;
2233
2244
  `;
2234
2245
  var EllipsisComponent = styled.span`
2235
2246
  ${ellipsisStyle};
2236
2247
  ${({ $lines }) => {
2237
2248
  if (isNotNil3($lines)) {
2238
- return css12`
2239
- ${lineClampStyle};
2240
- -webkit-line-clamp: ${$lines};
2241
- `;
2249
+ return lineClampCss($lines);
2242
2250
  }
2243
2251
  return void 0;
2244
2252
  }}
@@ -2254,7 +2262,7 @@ var Ellipsis = ({ children, lines, ...props }) => /* @__PURE__ */ jsx4(
2254
2262
  Ellipsis.displayName = "Ellipsis";
2255
2263
 
2256
2264
  // src/private/helpers/getColorScheme/getColorScheme.ts
2257
- import { css as css13 } from "styled-components";
2265
+ import { css as css14 } from "styled-components";
2258
2266
  var colorSchemeSchema = [
2259
2267
  { token: "bg-surface", step: "2" },
2260
2268
  { token: "bg-surface-hover", step: "3" },
@@ -2281,7 +2289,7 @@ var colorSchemeSchema = [
2281
2289
  { token: "icon-on-fill", step: "contrast" },
2282
2290
  { token: "focus-ring", step: "9" }
2283
2291
  ];
2284
- var defaultScheme = css13`
2292
+ var defaultScheme = css14`
2285
2293
  --wui-color-bg-surface: var(--wui-gray-1);
2286
2294
  --wui-color-bg-surface-hover: var(--wui-gray-3);
2287
2295
  --wui-color-bg-surface-active: var(--wui-gray-4);
@@ -2307,7 +2315,7 @@ var defaultScheme = css13`
2307
2315
  --wui-color-icon-on-fill: var(--wui-gray-contrast);
2308
2316
  --wui-color-focus-ring: var(--wui-blue-9);
2309
2317
  `;
2310
- var navScheme = css13`
2318
+ var navScheme = css14`
2311
2319
  --wui-color-bg-app: #1e3399;
2312
2320
 
2313
2321
  --wui-color-bg-fill: var(--wui-blue-1);
@@ -2368,7 +2376,7 @@ var getColorScheme = (colorScheme) => {
2368
2376
  if (colorScheme === "default") {
2369
2377
  return defaultScheme;
2370
2378
  }
2371
- return css13`
2379
+ return css14`
2372
2380
  ${colorSchemeSchema.map(({ token, step }) => {
2373
2381
  return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
2374
2382
  }).join("")}
@@ -2381,6 +2389,8 @@ var Message = styled2(Ellipsis)`
2381
2389
  line-height: var(--wui-typography-label-3-line-height);
2382
2390
  font-size: var(--wui-typography-label-3-size);
2383
2391
  font-weight: var(--wui-typography-label-3-weight);
2392
+
2393
+ ${lineClampCss(3)}
2384
2394
  `;
2385
2395
  var MessageWrapper = styled2.div`
2386
2396
  display: flex;
@@ -2716,7 +2726,7 @@ var useFocusTrap = (active = true, options = {}) => {
2716
2726
 
2717
2727
  // src/components/ActionButton/ActionButton.tsx
2718
2728
  import { forwardRef as forwardRef3 } from "react";
2719
- import styled6, { css as css16 } from "styled-components";
2729
+ import styled6, { css as css17 } from "styled-components";
2720
2730
 
2721
2731
  // src/components/Button/Button.tsx
2722
2732
  import { forwardRef as forwardRef2 } from "react";
@@ -2724,8 +2734,8 @@ import styled5 from "styled-components";
2724
2734
  import { isNotNil as isNotNil6, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
2725
2735
 
2726
2736
  // src/css/buttonResetCss.tsx
2727
- import { css as css14 } from "styled-components";
2728
- var buttonResetCss = css14`
2737
+ import { css as css15 } from "styled-components";
2738
+ var buttonResetCss = css15`
2729
2739
  align-items: center;
2730
2740
  background-color: transparent;
2731
2741
  background-image: none;
@@ -2770,8 +2780,8 @@ var buttonResetCss = css14`
2770
2780
  `;
2771
2781
 
2772
2782
  // src/components/Button/buttonStyles.tsx
2773
- import { css as css15 } from "styled-components";
2774
- var buttonSmallStyles = css15`
2783
+ import { css as css16 } from "styled-components";
2784
+ var buttonSmallStyles = css16`
2775
2785
  --button-padding-vertical: var(--wui-space-01);
2776
2786
  --button-padding-horizontal: var(--wui-space-02);
2777
2787
  --button-label-padding-horizontal: var(--wui-space-01);
@@ -2782,7 +2792,7 @@ var buttonSmallStyles = css15`
2782
2792
  --button-icon-size: 12px;
2783
2793
  --button-label-gap: 4px;
2784
2794
  `;
2785
- var buttonMediumStyles = css15`
2795
+ var buttonMediumStyles = css16`
2786
2796
  --button-padding-vertical: var(--wui-space-02);
2787
2797
  --button-padding-horizontal: var(--wui-space-02);
2788
2798
  --button-label-padding-horizontal: 6px;
@@ -2793,7 +2803,7 @@ var buttonMediumStyles = css15`
2793
2803
  --button-icon-size: 16px;
2794
2804
  --button-label-gap: 6px;
2795
2805
  `;
2796
- var buttonLargeStyles = css15`
2806
+ var buttonLargeStyles = css16`
2797
2807
  --button-padding-vertical: var(--wui-space-02);
2798
2808
  --button-padding-horizontal: var(--wui-space-02);
2799
2809
  --button-label-padding-horizontal: var(--wui-space-02);
@@ -2804,7 +2814,7 @@ var buttonLargeStyles = css15`
2804
2814
  --button-icon-size: 24px;
2805
2815
  --button-label-gap: 8px;
2806
2816
  `;
2807
- var buttonExtraLargeStyles = css15`
2817
+ var buttonExtraLargeStyles = css16`
2808
2818
  --button-padding-vertical: var(--wui-space-03);
2809
2819
  --button-padding-horizontal: var(--wui-space-03);
2810
2820
  --button-label-padding-horizontal: var(--wui-space-02);
@@ -2815,34 +2825,34 @@ var buttonExtraLargeStyles = css15`
2815
2825
  --button-icon-size: 24px;
2816
2826
  --button-label-gap: 8px;
2817
2827
  `;
2818
- var ghostButtonVariant = css15`
2828
+ var ghostButtonVariant = css16`
2819
2829
  --button-color-bg: transparent;
2820
2830
  --button-color-bg-hover: var(--wui-color-bg-surface-hover);
2821
2831
  --button-color-bg-active: var(--wui-color-bg-surface-active);
2822
2832
  --button-color-text: var(--wui-color-text-button);
2823
2833
  --button-color-icon: var(--wui-color-icon);
2824
2834
  `;
2825
- var outlineButtonVariant = css15`
2835
+ var outlineButtonVariant = css16`
2826
2836
  ${ghostButtonVariant};
2827
2837
  --button-color-border: var(--wui-color-border);
2828
2838
 
2829
2839
  box-shadow: 0 0 0 2px var(--button-color-border) inset;
2830
2840
  `;
2831
- var softButtonVariant = css15`
2841
+ var softButtonVariant = css16`
2832
2842
  --button-color-bg: var(--wui-color-bg-surface-secondary);
2833
2843
  --button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
2834
2844
  --button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
2835
2845
  --button-color-text: var(--wui-color-text-button);
2836
2846
  --button-color-icon: var(--wui-color-icon);
2837
2847
  `;
2838
- var solidButtonVariant = css15`
2848
+ var solidButtonVariant = css16`
2839
2849
  --button-color-bg: var(--wui-color-bg-fill);
2840
2850
  --button-color-bg-hover: var(--wui-color-bg-fill-hover);
2841
2851
  --button-color-bg-active: var(--wui-color-bg-fill-active);
2842
2852
  --button-color-text: var(--wui-color-text-on-fill);
2843
2853
  --button-color-icon: var(--wui-color-icon-on-fill);
2844
2854
  `;
2845
- var disabledButtonVariant = css15`
2855
+ var disabledButtonVariant = css16`
2846
2856
  --button-color-bg: var(--wui-color-bg-surface-disabled);
2847
2857
  --button-color-bg-hover: var(--wui-color-bg-surface-disabled);
2848
2858
  --button-color-bg-active: var(--wui-color-bg-surface-disabled);
@@ -2850,7 +2860,7 @@ var disabledButtonVariant = css15`
2850
2860
  --button-color-icon: var(--wui-color-icon-disabled);
2851
2861
  --button-color-border: var(--wui-color-border-disabled);
2852
2862
  `;
2853
- var pressedButtonVariant = css15`
2863
+ var pressedButtonVariant = css16`
2854
2864
  --button-color-bg: var(--wui-color-bg-surface-selected);
2855
2865
  --button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
2856
2866
  --button-color-bg-active: var(--wui-color-bg-surface-selected-active);
@@ -2858,7 +2868,7 @@ var pressedButtonVariant = css15`
2858
2868
  --button-color-icon: var(--wui-color-icon-selected);
2859
2869
  --button-color-border: var(--wui-color-border-selected);
2860
2870
  `;
2861
- var buttonBaseStyles = css15`
2871
+ var buttonBaseStyles = css16`
2862
2872
  border-radius: var(--wui-border-radius-rounded);
2863
2873
  font-family: var(--button-typography-family);
2864
2874
  font-size: var(--button-typography-size);
@@ -6855,31 +6865,29 @@ Icon.displayName = "Icon";
6855
6865
 
6856
6866
  // src/components/Link/Link.tsx
6857
6867
  import { forwardRef } from "react";
6858
- import { isFunction as isFunction2, isNil as isNil6, isNotNil as isNotNil5, isNotUndefined as isNotUndefined3, isUndefined as isUndefined2 } from "@wistia/type-guards";
6859
6868
  import styled4 from "styled-components";
6860
6869
  import { Link as RouterLink, useInRouterContext } from "react-router-dom";
6870
+ import { isFunction as isFunction2, isNil as isNil6, isNotNil as isNotNil5, isNotUndefined as isNotUndefined3, isUndefined as isUndefined2 } from "@wistia/type-guards";
6861
6871
  import { jsx as jsx192, jsxs as jsxs7 } from "react/jsx-runtime";
6862
6872
  var generateHref = (href, type, disabled) => {
6863
6873
  if (disabled || isNil6(href)) {
6864
6874
  return void 0;
6865
6875
  }
6866
- let to = href;
6876
+ let modifiedHref = href;
6867
6877
  if (type === "phone") {
6868
- to = `tel:${href}`;
6878
+ modifiedHref = `tel:${href}`;
6869
6879
  }
6870
6880
  if (type === "email") {
6871
- to = `mailto:${href}`;
6881
+ modifiedHref = `mailto:${href}`;
6872
6882
  }
6873
- return to;
6883
+ return modifiedHref;
6874
6884
  };
6875
6885
  var isButton = (props) => isUndefined2(props.href);
6876
6886
  var isLink = (props) => isNotUndefined3(props.href);
6877
6887
  var StyledLink = styled4.a`
6878
- --link-icon-size: 14px;
6879
-
6880
6888
  ${({ href }) => isNil6(href) && buttonResetCss};
6881
6889
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
6882
- cursor: pointer;
6890
+ cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
6883
6891
  font-family: var(--wui-typography-family-default);
6884
6892
  color: var(--wui-color-text-link);
6885
6893
  text-decoration: ${({ $underline }) => $underline ? "underline" : "none"};
@@ -6889,8 +6897,8 @@ var StyledLink = styled4.a`
6889
6897
 
6890
6898
  && {
6891
6899
  svg {
6892
- width: var(--link-icon-size);
6893
- height: var(--link-icon-size);
6900
+ width: 14px;
6901
+ height: 14px;
6894
6902
  }
6895
6903
  }
6896
6904
  `;
@@ -6935,6 +6943,7 @@ var Link = forwardRef(
6935
6943
  };
6936
6944
  const commonProps = {
6937
6945
  $colorScheme: colorScheme,
6946
+ $disabled: disabled,
6938
6947
  $underline: underline,
6939
6948
  onClick: handleClick
6940
6949
  };
@@ -6953,33 +6962,27 @@ var Link = forwardRef(
6953
6962
  }
6954
6963
  if (isLink(props)) {
6955
6964
  const externalLinkProps = type === "external" ? { target: "_blank", rel: "noopener noreferrer" } : null;
6965
+ const routerSpecificProps = shouldUseReactRouterLink ? {
6966
+ // TODO: Using 'any' here due to styled-components typing limitations with RouterLink
6967
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
6968
+ as: RouterLink,
6969
+ to: to ?? ""
6970
+ } : {
6971
+ as: "a",
6972
+ href: to
6973
+ };
6956
6974
  const combinedProps = {
6957
6975
  ref,
6958
6976
  ...props,
6959
6977
  ...commonProps,
6960
- ...externalLinkProps
6978
+ ...externalLinkProps,
6979
+ ...routerSpecificProps
6961
6980
  };
6962
- return shouldUseReactRouterLink ? /* @__PURE__ */ jsx192(
6963
- StyledLink,
6964
- {
6965
- as: RouterLink,
6966
- ...combinedProps,
6967
- to: to ?? "",
6968
- children
6969
- }
6970
- ) : /* @__PURE__ */ jsxs7(
6971
- StyledLink,
6972
- {
6973
- as: "a",
6974
- ...combinedProps,
6975
- href: to,
6976
- children: [
6977
- leftIcon ?? null,
6978
- children,
6979
- rightIcon ?? null
6980
- ]
6981
- }
6982
- );
6981
+ return /* @__PURE__ */ jsxs7(StyledLink, { ...combinedProps, children: [
6982
+ leftIcon ?? null,
6983
+ children,
6984
+ rightIcon ?? null
6985
+ ] });
6983
6986
  }
6984
6987
  return null;
6985
6988
  }
@@ -7191,7 +7194,7 @@ var StyledSecondaryIcon = styled6.div`
7191
7194
  justify-content: flex-end;
7192
7195
  transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
7193
7196
 
7194
- ${({ $hideUntilHover }) => $hideUntilHover && css16`
7197
+ ${({ $hideUntilHover }) => $hideUntilHover && css17`
7195
7198
  will-change: transform;
7196
7199
  opacity: 0;
7197
7200
  transform: translateX(-16px);
@@ -7557,7 +7560,7 @@ Badge.displayName = "Badge";
7557
7560
 
7558
7561
  // src/components/Box/Box.tsx
7559
7562
  import { Children, cloneElement as cloneElement2, forwardRef as forwardRef5 } from "react";
7560
- import styled11, { css as css17 } from "styled-components";
7563
+ import styled11, { css as css18 } from "styled-components";
7561
7564
  import { isNotNil as isNotNil10, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
7562
7565
 
7563
7566
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
@@ -7614,27 +7617,27 @@ var getFlexStyle = (flexMode) => {
7614
7617
  switch (flexMode) {
7615
7618
  // grows to fill space, won't shrink, starts at 0
7616
7619
  case "grow":
7617
- return css17`
7620
+ return css18`
7618
7621
  flex: 1 0 0;
7619
7622
  `;
7620
7623
  // default behavior, can shrink but won't grow
7621
7624
  case "initial":
7622
- return css17`
7625
+ return css18`
7623
7626
  flex: 0 1 auto;
7624
7627
  `;
7625
7628
  // equal distribution of space
7626
7629
  case "equal":
7627
- return css17`
7630
+ return css18`
7628
7631
  flex: 1;
7629
7632
  `;
7630
7633
  // won't grow or shrink
7631
7634
  case "rigid":
7632
- return css17`
7635
+ return css18`
7633
7636
  flex: 0 0 auto;
7634
7637
  `;
7635
7638
  // can grow and shrink from content size
7636
7639
  case "fluid":
7637
- return css17`
7640
+ return css18`
7638
7641
  flex: 1 1 auto;
7639
7642
  `;
7640
7643
  default:
@@ -7991,18 +7994,18 @@ Center.displayName = "Center";
7991
7994
 
7992
7995
  // src/components/Checkbox/Checkbox.tsx
7993
7996
  import { forwardRef as forwardRef7, useId } from "react";
7994
- import styled20, { css as css20 } from "styled-components";
7997
+ import styled20, { css as css21 } from "styled-components";
7995
7998
  import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
7996
7999
 
7997
8000
  // src/private/components/FormControlLabel/FormControlLabel.tsx
7998
- import styled19, { css as css19 } from "styled-components";
8001
+ import styled19, { css as css20 } from "styled-components";
7999
8002
  import { isNil as isNil12, isNotNil as isNotNil12 } from "@wistia/type-guards";
8000
8003
 
8001
8004
  // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
8002
- import styled17, { css as css18 } from "styled-components";
8005
+ import styled17, { css as css19 } from "styled-components";
8003
8006
  import { isNil as isNil11 } from "@wistia/type-guards";
8004
8007
  import { jsx as jsx205 } from "react/jsx-runtime";
8005
- var disabledStyle = css18`
8008
+ var disabledStyle = css19`
8006
8009
  color: var(--wui-color-text-disabled);
8007
8010
  `;
8008
8011
  var StyledFormControlLabelDescription = styled17.div`
@@ -8058,7 +8061,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
8058
8061
 
8059
8062
  // src/private/components/FormControlLabel/FormControlLabel.tsx
8060
8063
  import { jsx as jsx207, jsxs as jsxs14 } from "react/jsx-runtime";
8061
- var disabledStyle2 = css19`
8064
+ var disabledStyle2 = css20`
8062
8065
  cursor: not-allowed;
8063
8066
  color: var(--wui-color-text-disabled);
8064
8067
  `;
@@ -8129,7 +8132,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx208(
8129
8132
  )
8130
8133
  }
8131
8134
  );
8132
- var sizeSmall = css20`
8135
+ var sizeSmall = css21`
8133
8136
  width: 14px;
8134
8137
  height: 14px;
8135
8138
  min-width: 14px;
@@ -8140,7 +8143,7 @@ var sizeSmall = css20`
8140
8143
  height: 7px;
8141
8144
  }
8142
8145
  `;
8143
- var sizeMedium = css20`
8146
+ var sizeMedium = css21`
8144
8147
  width: 16px;
8145
8148
  height: 16px;
8146
8149
  min-width: 16px;
@@ -8151,7 +8154,7 @@ var sizeMedium = css20`
8151
8154
  height: 9px;
8152
8155
  }
8153
8156
  `;
8154
- var sizeLarge = css20`
8157
+ var sizeLarge = css21`
8155
8158
  width: 20px;
8156
8159
  height: 20px;
8157
8160
  min-width: 20px;
@@ -8360,46 +8363,46 @@ import { isNotNull } from "@wistia/type-guards";
8360
8363
 
8361
8364
  // src/components/Heading/Heading.tsx
8362
8365
  import { forwardRef as forwardRef8 } from "react";
8363
- import styled23, { css as css21 } from "styled-components";
8366
+ import styled23, { css as css22 } from "styled-components";
8364
8367
  import { isNotNil as isNotNil14 } from "@wistia/type-guards";
8365
8368
  import { jsx as jsx212 } from "react/jsx-runtime";
8366
- var heroStyle = css21`
8369
+ var heroStyle = css22`
8367
8370
  --font-family: var(--wui-typography-heading-hero-family);
8368
8371
  --font-size: var(--wui-typography-heading-hero-size);
8369
8372
  --font-weight: var(--wui-typography-heading-hero-weight);
8370
8373
  --line-height: var(--wui-typography-heading-hero-line-height);
8371
8374
  `;
8372
- var heading1TextStyle = css21`
8375
+ var heading1TextStyle = css22`
8373
8376
  --font-family: var(--wui-typography-heading-1-family);
8374
8377
  --font-size: var(--wui-typography-heading-1-size);
8375
8378
  --font-weight: var(--wui-typography-heading-1-weight);
8376
8379
  --line-height: var(--wui-typography-heading-1-line-height);
8377
8380
  `;
8378
- var heading2TextStyle = css21`
8381
+ var heading2TextStyle = css22`
8379
8382
  --font-family: var(--wui-typography-heading-2-family);
8380
8383
  --font-size: var(--wui-typography-heading-2-size);
8381
8384
  --font-weight: var(--wui-typography-heading-2-weight);
8382
8385
  --line-height: var(--wui-typography-heading-2-line-height);
8383
8386
  `;
8384
- var heading3TextStyle = css21`
8387
+ var heading3TextStyle = css22`
8385
8388
  --font-family: var(--wui-typography-heading-3-family);
8386
8389
  --font-size: var(--wui-typography-heading-3-size);
8387
8390
  --font-weight: var(--wui-typography-heading-3-weight);
8388
8391
  --line-height: var(--wui-typography-heading-3-line-height);
8389
8392
  `;
8390
- var heading4TextStyle = css21`
8393
+ var heading4TextStyle = css22`
8391
8394
  --font-family: var(--wui-typography-heading-4-family);
8392
8395
  --font-size: var(--wui-typography-heading-4-size);
8393
8396
  --font-weight: var(--wui-typography-heading-4-weight);
8394
8397
  --line-height: var(--wui-typography-heading-4-line-height);
8395
8398
  `;
8396
- var heading5TextStyle = css21`
8399
+ var heading5TextStyle = css22`
8397
8400
  --font-family: var(--wui-typography-heading-5-family);
8398
8401
  --font-size: var(--wui-typography-heading-5-size);
8399
8402
  --font-weight: var(--wui-typography-heading-5-weight);
8400
8403
  --line-height: var(--wui-typography-heading-5-line-height);
8401
8404
  `;
8402
- var heading6TextStyle = css21`
8405
+ var heading6TextStyle = css22`
8403
8406
  --font-family: var(--wui-typography-heading-6-family);
8404
8407
  --font-size: var(--wui-typography-heading-6-size);
8405
8408
  --font-weight: var(--wui-typography-heading-6-weight);
@@ -8425,26 +8428,23 @@ var StyledHeading = styled23.div`
8425
8428
  ${({ $variant }) => variantStyleMap[$variant]}
8426
8429
  ${({ $truncate }) => {
8427
8430
  if (isNotNil14($truncate)) {
8428
- return css21`
8431
+ return css22`
8429
8432
  ${ellipsisStyle};
8430
- -webkit-box-orient: vertical;
8431
- -webkit-line-clamp: ${$truncate};
8432
- display: -webkit-box;
8433
- white-space: initial;
8433
+ ${lineClampCss($truncate)};
8434
8434
  `;
8435
8435
  }
8436
8436
  return void 0;
8437
8437
  }}
8438
- ${({ $inline }) => $inline && css21`
8438
+ ${({ $inline }) => $inline && css22`
8439
8439
  display: inline-block;
8440
8440
  `}
8441
- ${({ $disabled }) => $disabled && css21`
8441
+ ${({ $disabled }) => $disabled && css22`
8442
8442
  color: var(--wui-color-text-disabled);
8443
8443
  `}
8444
- ${({ $preventUserSelect }) => $preventUserSelect && css21`
8444
+ ${({ $preventUserSelect }) => $preventUserSelect && css22`
8445
8445
  user-select: none;
8446
8446
  `}
8447
- ${({ $align }) => css21`
8447
+ ${({ $align }) => css22`
8448
8448
  text-align: ${$align};
8449
8449
  `}
8450
8450
  margin: 0;
@@ -8623,22 +8623,22 @@ import styled27 from "styled-components";
8623
8623
 
8624
8624
  // src/components/Text/Text.tsx
8625
8625
  import { forwardRef as forwardRef9 } from "react";
8626
- import styled26, { css as css22 } from "styled-components";
8626
+ import styled26, { css as css23 } from "styled-components";
8627
8627
  import { isNotNil as isNotNil15 } from "@wistia/type-guards";
8628
8628
  import { jsx as jsx215 } from "react/jsx-runtime";
8629
- var bodyBoldStyles = css22`
8629
+ var bodyBoldStyles = css23`
8630
8630
  > strong,
8631
8631
  b {
8632
8632
  font-weight: var(--wui-typography-weight-body-bold);
8633
8633
  }
8634
8634
  `;
8635
- var labelBoldStyles = css22`
8635
+ var labelBoldStyles = css23`
8636
8636
  > strong,
8637
8637
  b {
8638
8638
  font-weight: var(--wui-typography-weight-label-bold);
8639
8639
  }
8640
8640
  `;
8641
- var body1TextStyle = css22`
8641
+ var body1TextStyle = css23`
8642
8642
  --font-family: var(--wui-typography-body-1-family);
8643
8643
  --font-size: var(--wui-typography-body-1-size);
8644
8644
  --font-weight: var(--wui-typography-body-1-weight);
@@ -8646,7 +8646,7 @@ var body1TextStyle = css22`
8646
8646
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8647
8647
  ${bodyBoldStyles}
8648
8648
  `;
8649
- var body2TextStyle = css22`
8649
+ var body2TextStyle = css23`
8650
8650
  --font-family: var(--wui-typography-body-2-family);
8651
8651
  --font-size: var(--wui-typography-body-2-size);
8652
8652
  --font-weight: var(--wui-typography-body-2-weight);
@@ -8654,7 +8654,7 @@ var body2TextStyle = css22`
8654
8654
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8655
8655
  ${bodyBoldStyles}
8656
8656
  `;
8657
- var body3TextStyle = css22`
8657
+ var body3TextStyle = css23`
8658
8658
  --font-family: var(--wui-typography-body-3-family);
8659
8659
  --font-size: var(--wui-typography-body-3-size);
8660
8660
  --font-weight: var(--wui-typography-body-3-weight);
@@ -8662,7 +8662,7 @@ var body3TextStyle = css22`
8662
8662
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8663
8663
  ${bodyBoldStyles}
8664
8664
  `;
8665
- var body4TextStyle = css22`
8665
+ var body4TextStyle = css23`
8666
8666
  --font-family: var(--wui-typography-body-4-family);
8667
8667
  --font-size: var(--wui-typography-body-4-size);
8668
8668
  --font-weight: var(--wui-typography-body-4-weight);
@@ -8670,47 +8670,47 @@ var body4TextStyle = css22`
8670
8670
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8671
8671
  ${bodyBoldStyles}
8672
8672
  `;
8673
- var label1TextStyle = css22`
8673
+ var label1TextStyle = css23`
8674
8674
  --font-family: var(--wui-typography-label-1-family);
8675
8675
  --font-size: var(--wui-typography-label-1-size);
8676
8676
  --font-weight: var(--wui-typography-label-1-weight);
8677
8677
  --line-height: var(--wui-typography-label-1-line-height);
8678
8678
  ${labelBoldStyles}
8679
8679
  `;
8680
- var label2TextStyle = css22`
8680
+ var label2TextStyle = css23`
8681
8681
  --font-family: var(--wui-typography-label-2-family);
8682
8682
  --font-size: var(--wui-typography-label-2-size);
8683
8683
  --font-weight: var(--wui-typography-label-2-weight);
8684
8684
  --line-height: var(--wui-typography-label-2-line-height);
8685
8685
  ${labelBoldStyles}
8686
8686
  `;
8687
- var label3TextStyle = css22`
8687
+ var label3TextStyle = css23`
8688
8688
  --font-family: var(--wui-typography-label-3-family);
8689
8689
  --font-size: var(--wui-typography-label-3-size);
8690
8690
  --font-weight: var(--wui-typography-label-3-weight);
8691
8691
  --line-height: var(--wui-typography-label-3-line-height);
8692
8692
  ${labelBoldStyles}
8693
8693
  `;
8694
- var label4TextStyle = css22`
8694
+ var label4TextStyle = css23`
8695
8695
  --font-family: var(--wui-typography-label-4-family);
8696
8696
  --font-size: var(--wui-typography-label-4-size);
8697
8697
  --font-weight: var(--wui-typography-label-4-weight);
8698
8698
  --line-height: var(--wui-typography-label-4-line-height);
8699
8699
  ${labelBoldStyles}
8700
8700
  `;
8701
- var body1MonoTextStyle = css22`
8701
+ var body1MonoTextStyle = css23`
8702
8702
  ${body1TextStyle};
8703
8703
  --font-family: var(--wui-typography-family-mono);
8704
8704
  `;
8705
- var body2MonoTextStyle = css22`
8705
+ var body2MonoTextStyle = css23`
8706
8706
  ${body2TextStyle};
8707
8707
  --font-family: var(--wui-typography-family-mono);
8708
8708
  `;
8709
- var body3MonoTextStyle = css22`
8709
+ var body3MonoTextStyle = css23`
8710
8710
  ${body3TextStyle};
8711
8711
  --font-family: var(--wui-typography-family-mono);
8712
8712
  `;
8713
- var body4MonoTextStyle = css22`
8713
+ var body4MonoTextStyle = css23`
8714
8714
  ${body4TextStyle};
8715
8715
  --font-family: var(--wui-typography-family-mono);
8716
8716
  `;
@@ -8770,27 +8770,26 @@ var StyledText = styled26.div`
8770
8770
  ${({ $variant }) => variantStyleMap2[$variant]}
8771
8771
  ${({ $truncate }) => {
8772
8772
  if (isNotNil15($truncate)) {
8773
- return css22`
8773
+ return css23`
8774
8774
  ${ellipsisStyle};
8775
- ${lineClampStyle};
8776
- -webkit-line-clamp: ${$truncate};
8775
+ ${lineClampCss($truncate)};
8777
8776
  `;
8778
8777
  }
8779
8778
  return void 0;
8780
8779
  }}
8781
- ${({ $inline }) => $inline && css22`
8780
+ ${({ $inline }) => $inline && css23`
8782
8781
  display: inline-block;
8783
8782
  `}
8784
- ${({ $disabled }) => $disabled && css22`
8783
+ ${({ $disabled }) => $disabled && css23`
8785
8784
  --text-color: var(--wui-color-text-disabled);
8786
8785
  `}
8787
- ${({ $preventUserSelect }) => $preventUserSelect && css22`
8786
+ ${({ $preventUserSelect }) => $preventUserSelect && css23`
8788
8787
  user-select: none;
8789
8788
  `}
8790
- ${({ $align }) => css22`
8789
+ ${({ $align }) => css23`
8791
8790
  text-align: ${$align};
8792
8791
  `}
8793
- ${({ as }) => as === "p" && css22`
8792
+ ${({ as }) => as === "p" && css23`
8794
8793
  display: block;
8795
8794
 
8796
8795
  + p {
@@ -8870,16 +8869,16 @@ var DataCardTrend = ({
8870
8869
  };
8871
8870
 
8872
8871
  // src/components/Divider/Divider.tsx
8873
- import styled28, { css as css23 } from "styled-components";
8872
+ import styled28, { css as css24 } from "styled-components";
8874
8873
  import { jsx as jsx217 } from "react/jsx-runtime";
8875
- var horizontalBorderCss = css23`
8874
+ var horizontalBorderCss = css24`
8876
8875
  border-top-color: var(--wui-color-border);
8877
8876
  border-top-style: solid;
8878
8877
  border-top-width: 1px;
8879
8878
  clear: both; /* for horizontal dividers, ensure it clears any floats */
8880
8879
  height: 0;
8881
8880
  `;
8882
- var verticalBorderCss = css23`
8881
+ var verticalBorderCss = css24`
8883
8882
  background-color: var(--wui-color-border);
8884
8883
  max-width: 1px;
8885
8884
  min-height: 100%;
@@ -8910,7 +8909,7 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
8910
8909
  Divider.displayName = "Divider";
8911
8910
 
8912
8911
  // src/components/EditableHeading/EditableHeading.tsx
8913
- import styled31, { css as css26 } from "styled-components";
8912
+ import styled31, { css as css27 } from "styled-components";
8914
8913
  import { useState as useState6, useRef as useRef5 } from "react";
8915
8914
 
8916
8915
  // src/components/Tooltip/Tooltip.tsx
@@ -9016,12 +9015,12 @@ Tooltip.displayName = "Tooltip";
9016
9015
 
9017
9016
  // src/components/Input/Input.tsx
9018
9017
  import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef4 } from "react";
9019
- import styled30, { css as css25 } from "styled-components";
9018
+ import styled30, { css as css26 } from "styled-components";
9020
9019
  import { isNil as isNil13, isNotNil as isNotNil16, isRecord as isRecord4 } from "@wistia/type-guards";
9021
9020
 
9022
9021
  // src/css/sharedStyles/inputCssVariables.ts
9023
- import { css as css24 } from "styled-components";
9024
- var inputCssVariables = css24`
9022
+ import { css as css25 } from "styled-components";
9023
+ var inputCssVariables = css25`
9025
9024
  /* Colors */
9026
9025
  --wui-input-color-bg: var(--wui-color-bg-surface);
9027
9026
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -9048,7 +9047,7 @@ var inputCssVariables = css24`
9048
9047
 
9049
9048
  // src/components/Input/Input.tsx
9050
9049
  import { jsx as jsx219, jsxs as jsxs20 } from "react/jsx-runtime";
9051
- var inputStyles = css25`
9050
+ var inputStyles = css26`
9052
9051
  ${inputCssVariables}
9053
9052
  input,
9054
9053
  textarea {
@@ -9242,7 +9241,7 @@ var StyledInput = styled31(Input)`
9242
9241
  height: ${({ $height }) => `${$height}px`};
9243
9242
  }
9244
9243
  `;
9245
- var editableStyles = css26`
9244
+ var editableStyles = css27`
9246
9245
  &:has(+ :focus-within) {
9247
9246
  background: var(--wui-color-bg-surface-hover);
9248
9247
  }
@@ -9352,7 +9351,7 @@ var EditableHeading = ({
9352
9351
  };
9353
9352
 
9354
9353
  // src/components/Form/Form.tsx
9355
- import { forwardRef as forwardRef12, useRef as useRef6, useMemo as useMemo4, createContext as createContext2, useState as useState7, useId as useId2 } from "react";
9354
+ import { forwardRef as forwardRef12, useRef as useRef6, useMemo as useMemo4, createContext as createContext3, useState as useState7, useId as useId2 } from "react";
9356
9355
  import styled33 from "styled-components";
9357
9356
  import { isNotUndefined as isNotUndefined7, isUndefined as isUndefined3 } from "@wistia/type-guards";
9358
9357
 
@@ -9396,7 +9395,7 @@ var StyledForm = styled33.form`
9396
9395
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9397
9396
  align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9398
9397
  `;
9399
- var FormContext = createContext2({
9398
+ var FormContext = createContext3({
9400
9399
  values: {},
9401
9400
  errors: {},
9402
9401
  hasSubmitted: false,
@@ -9508,7 +9507,7 @@ var useFormState = (action, initialData = {}) => {
9508
9507
  const result = await action(data, nextData);
9509
9508
  setData(result);
9510
9509
  } catch (err) {
9511
- setError(err);
9510
+ setError(err instanceof Error ? err : new Error(String(err)));
9512
9511
  } finally {
9513
9512
  setIsPending(false);
9514
9513
  }
@@ -9526,7 +9525,7 @@ var useFormState = (action, initialData = {}) => {
9526
9525
  };
9527
9526
 
9528
9527
  // src/components/Form/FormErrorSummary.tsx
9529
- import { useContext as useContext2, useRef as useRef7 } from "react";
9528
+ import { useContext as useContext3, useRef as useRef7 } from "react";
9530
9529
  import { isArray, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
9531
9530
  import { jsx as jsx223, jsxs as jsxs22 } from "react/jsx-runtime";
9532
9531
  var ErrorItem = ({ name, error, formId }) => {
@@ -9534,7 +9533,7 @@ var ErrorItem = ({ name, error, formId }) => {
9534
9533
  };
9535
9534
  var FormErrorSummary = ({ description }) => {
9536
9535
  const ref = useRef7(null);
9537
- const { formId, errors, hasSubmitted } = useContext2(FormContext);
9536
+ const { formId, errors, hasSubmitted } = useContext3(FormContext);
9538
9537
  const isValid = Object.keys(errors).length === 0;
9539
9538
  if (isValid || !hasSubmitted) {
9540
9539
  return null;
@@ -9564,14 +9563,14 @@ var FormErrorSummary = ({ description }) => {
9564
9563
  };
9565
9564
 
9566
9565
  // src/components/FormField/FormField.tsx
9567
- import { Children as Children5, cloneElement as cloneElement5, useContext as useContext3 } from "react";
9566
+ import { Children as Children5, cloneElement as cloneElement5, useContext as useContext4 } from "react";
9568
9567
  import styled36 from "styled-components";
9569
9568
  import { isArray as isArray2, isNotNil as isNotNil17, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
9570
9569
 
9571
9570
  // src/components/Label/Label.tsx
9572
- import styled34, { css as css27 } from "styled-components";
9571
+ import styled34, { css as css28 } from "styled-components";
9573
9572
  import { jsx as jsx224 } from "react/jsx-runtime";
9574
- var requiredStyle = css27`
9573
+ var requiredStyle = css28`
9575
9574
  &::after {
9576
9575
  color: var(--wui-color-text-error);
9577
9576
  display: inline;
@@ -9579,7 +9578,7 @@ var requiredStyle = css27`
9579
9578
  content: '*';
9580
9579
  }
9581
9580
  `;
9582
- var disabledStyle3 = css27`
9581
+ var disabledStyle3 = css28`
9583
9582
  color: var(--wui-color-text-disabled);
9584
9583
  `;
9585
9584
  var StyledLabel3 = styled34.label`
@@ -9629,7 +9628,7 @@ var Label = ({
9629
9628
  Label.displayName = "Label";
9630
9629
 
9631
9630
  // src/components/FormGroup/CheckboxGroup.tsx
9632
- import { createContext as createContext3, useMemo as useMemo5 } from "react";
9631
+ import { createContext as createContext4, useMemo as useMemo5 } from "react";
9633
9632
 
9634
9633
  // src/components/FormGroup/FormGroup.tsx
9635
9634
  import styled35 from "styled-components";
@@ -9667,7 +9666,7 @@ FormGroup.displayName = "FormGroup";
9667
9666
 
9668
9667
  // src/components/FormGroup/CheckboxGroup.tsx
9669
9668
  import { jsx as jsx226 } from "react/jsx-runtime";
9670
- var CheckboxGroupContext = createContext3(null);
9669
+ var CheckboxGroupContext = createContext4(null);
9671
9670
  var CheckboxGroup = ({
9672
9671
  children,
9673
9672
  name,
@@ -9760,8 +9759,8 @@ var FormField = ({
9760
9759
  value,
9761
9760
  ...props
9762
9761
  }) => {
9763
- const formState = useContext3(FormContext);
9764
- const checkboxGroup = useContext3(CheckboxGroupContext);
9762
+ const formState = useContext4(FormContext);
9763
+ const checkboxGroup = useContext4(CheckboxGroupContext);
9765
9764
  const defaultValue = formState.values[name];
9766
9765
  const isIntegratedLabel = children.type === Checkbox;
9767
9766
  const computedId = id ?? `${formState.formId}-${name}`;
@@ -9826,9 +9825,9 @@ var FormField = ({
9826
9825
  FormField.displayName = "FormField";
9827
9826
 
9828
9827
  // src/components/FormGroup/RadioGroup.tsx
9829
- import { createContext as createContext4, useMemo as useMemo6 } from "react";
9828
+ import { createContext as createContext5, useMemo as useMemo6 } from "react";
9830
9829
  import { jsx as jsx228 } from "react/jsx-runtime";
9831
- var RadioGroupContext = createContext4(null);
9830
+ var RadioGroupContext = createContext5(null);
9832
9831
  var RadioGroup = ({
9833
9832
  children,
9834
9833
  name,
@@ -9884,8 +9883,72 @@ var IconButton = forwardRef13(
9884
9883
  );
9885
9884
  IconButton.displayName = "IconButton";
9886
9885
 
9886
+ // src/components/InputClickToCopy/InputClickToCopy.tsx
9887
+ import styled38 from "styled-components";
9888
+ import { forwardRef as forwardRef14, useEffect as useEffect7, useState as useState9 } from "react";
9889
+ import { isFunction as isFunction3 } from "@wistia/type-guards";
9890
+ import { jsx as jsx230 } from "react/jsx-runtime";
9891
+ var StyledInput2 = styled38(Input)`
9892
+ &:not([aria-disabled='true']) {
9893
+ cursor: pointer;
9894
+ }
9895
+
9896
+ &::selection {
9897
+ background-color: transparent;
9898
+ }
9899
+ `;
9900
+ var COPY_SUCCESS_DURATION = 2e3;
9901
+ var InputClickToCopy = forwardRef14(
9902
+ ({ value, onCopy, ...props }, ref) => {
9903
+ const [isCopied, setIsCopied] = useState9(false);
9904
+ useEffect7(() => {
9905
+ if (isCopied) {
9906
+ const timeout = setTimeout(() => {
9907
+ setIsCopied(false);
9908
+ }, COPY_SUCCESS_DURATION);
9909
+ return () => {
9910
+ clearTimeout(timeout);
9911
+ };
9912
+ }
9913
+ return () => null;
9914
+ }, [isCopied]);
9915
+ const handleClick = (event) => {
9916
+ event.preventDefault();
9917
+ if (isFunction3(props.onClick)) {
9918
+ props.onClick(event);
9919
+ }
9920
+ void copyToClipboard(value).then(() => {
9921
+ setIsCopied(true);
9922
+ if (isFunction3(onCopy)) {
9923
+ onCopy(value);
9924
+ }
9925
+ return value;
9926
+ });
9927
+ };
9928
+ return /* @__PURE__ */ jsx230(
9929
+ StyledInput2,
9930
+ {
9931
+ "aria-label": "Click to Copy",
9932
+ ...props,
9933
+ ref,
9934
+ onClick: handleClick,
9935
+ readOnly: true,
9936
+ rightIcon: isCopied ? /* @__PURE__ */ jsx230(
9937
+ Icon,
9938
+ {
9939
+ colorScheme: "success",
9940
+ type: "checkmark-circle"
9941
+ }
9942
+ ) : /* @__PURE__ */ jsx230(Icon, { type: "save-as-copy" }),
9943
+ value
9944
+ }
9945
+ );
9946
+ }
9947
+ );
9948
+ InputClickToCopy.displayName = "InputClickToCopy";
9949
+
9887
9950
  // src/components/Menu/Menu.tsx
9888
- import styled38, { css as css28, keyframes as keyframes2 } from "styled-components";
9951
+ import styled39, { css as css29, keyframes as keyframes2 } from "styled-components";
9889
9952
  import {
9890
9953
  DropdownMenu,
9891
9954
  DropdownMenuTrigger,
@@ -9896,12 +9959,12 @@ import { isNotNil as isNotNil18, isNotUndefined as isNotUndefined10 } from "@wis
9896
9959
  import { useMemo as useMemo7 } from "react";
9897
9960
 
9898
9961
  // src/components/Menu/MenuContext.tsx
9899
- import { createContext as createContext5, useContext as useContext4 } from "react";
9900
- var MenuContext = createContext5({ compact: false });
9901
- var useMenuContext = () => useContext4(MenuContext);
9962
+ import { createContext as createContext6, useContext as useContext5 } from "react";
9963
+ var MenuContext = createContext6({ compact: false });
9964
+ var useMenuContext = () => useContext5(MenuContext);
9902
9965
 
9903
9966
  // src/components/Menu/Menu.tsx
9904
- import { jsx as jsx230, jsxs as jsxs25 } from "react/jsx-runtime";
9967
+ import { jsx as jsx231, jsxs as jsxs25 } from "react/jsx-runtime";
9905
9968
  var open = keyframes2`
9906
9969
  from {
9907
9970
  opacity: 0;
@@ -9922,7 +9985,7 @@ var close = keyframes2`
9922
9985
  transform: scale(.97) translateY(-8px);
9923
9986
  }
9924
9987
  `;
9925
- var menuItemCss = css28`
9988
+ var menuItemCss = css29`
9926
9989
  --menu-label-description-gap: var(--wui-space-01);
9927
9990
  --menu-item-inner-gap: var(--wui-space-03);
9928
9991
  --menu-item-left-icon-size: 24px;
@@ -9933,7 +9996,7 @@ var menuItemCss = css28`
9933
9996
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
9934
9997
  --menu-divider-margin: var(--wui-space-02);
9935
9998
  `;
9936
- var compactMenuItemCss = css28`
9999
+ var compactMenuItemCss = css29`
9937
10000
  --menu-label-description-gap: 0;
9938
10001
  --menu-item-inner-gap: var(--wui-space-02);
9939
10002
  --menu-item-left-icon-size: 16px;
@@ -9944,7 +10007,7 @@ var compactMenuItemCss = css28`
9944
10007
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
9945
10008
  --menu-divider-margin: var(--wui-space-01);
9946
10009
  `;
9947
- var menuContentCss = css28`
10010
+ var menuContentCss = css29`
9948
10011
  --menu-font-family: var(--wui-typography-family-default);
9949
10012
  --menu-bg: var(--wui-color-bg-surface);
9950
10013
  --menu-shadow: var(--wui-elevation-01);
@@ -9986,7 +10049,7 @@ var menuContentCss = css28`
9986
10049
  margin: var(--menu-divider-margin) 0;
9987
10050
  }
9988
10051
  `;
9989
- var MenuContent = styled38(DropdownMenuContent)`
10052
+ var MenuContent = styled39(DropdownMenuContent)`
9990
10053
  ${menuContentCss}
9991
10054
  `;
9992
10055
  var Menu = ({
@@ -10012,24 +10075,24 @@ var Menu = ({
10012
10075
  onOpenChange: () => null
10013
10076
  };
10014
10077
  }
10015
- return /* @__PURE__ */ jsx230(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs25(
10078
+ return /* @__PURE__ */ jsx231(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs25(
10016
10079
  DropdownMenu,
10017
10080
  {
10018
10081
  modal: false,
10019
10082
  ...controlProps,
10020
10083
  children: [
10021
- /* @__PURE__ */ jsx230(DropdownMenuTrigger, { asChild: true, children: isNotUndefined10(trigger) ? trigger : /* @__PURE__ */ jsx230(
10084
+ /* @__PURE__ */ jsx231(DropdownMenuTrigger, { asChild: true, children: isNotUndefined10(trigger) ? trigger : /* @__PURE__ */ jsx231(
10022
10085
  Button,
10023
10086
  {
10024
10087
  "aria-expanded": isOpen,
10025
10088
  disabled,
10026
10089
  forceState: isOpen ? "active" : void 0,
10027
- rightIcon: /* @__PURE__ */ jsx230(Icon, { type: "caret-down" }),
10090
+ rightIcon: /* @__PURE__ */ jsx231(Icon, { type: "caret-down" }),
10028
10091
  ...triggerProps,
10029
10092
  children: label
10030
10093
  }
10031
10094
  ) }),
10032
- /* @__PURE__ */ jsx230(DropdownMenuPortal, { children: /* @__PURE__ */ jsx230(
10095
+ /* @__PURE__ */ jsx231(DropdownMenuPortal, { children: /* @__PURE__ */ jsx231(
10033
10096
  MenuContent,
10034
10097
  {
10035
10098
  ...props,
@@ -10049,19 +10112,19 @@ var Menu = ({
10049
10112
  Menu.displayName = "Menu";
10050
10113
 
10051
10114
  // src/components/Menu/MenuLabel.tsx
10052
- import styled39 from "styled-components";
10115
+ import styled40 from "styled-components";
10053
10116
  import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
10054
- import { jsx as jsx231 } from "react/jsx-runtime";
10055
- var StyledMenuLabel = styled39(DropdownMenuLabel)`
10117
+ import { jsx as jsx232 } from "react/jsx-runtime";
10118
+ var StyledMenuLabel = styled40(DropdownMenuLabel)`
10056
10119
  padding: var(--wui-space-02);
10057
10120
  `;
10058
10121
  var MenuLabel = ({ children, ...props }) => {
10059
- return /* @__PURE__ */ jsx231(
10122
+ return /* @__PURE__ */ jsx232(
10060
10123
  StyledMenuLabel,
10061
10124
  {
10062
10125
  asChild: true,
10063
10126
  ...props,
10064
- children: /* @__PURE__ */ jsx231(
10127
+ children: /* @__PURE__ */ jsx232(
10065
10128
  Heading,
10066
10129
  {
10067
10130
  renderAs: "span",
@@ -10076,8 +10139,8 @@ var MenuLabel = ({ children, ...props }) => {
10076
10139
  MenuLabel.displayName = "MenuLabel";
10077
10140
 
10078
10141
  // src/components/Menu/SubMenu.tsx
10079
- import { useState as useState9 } from "react";
10080
- import styled42 from "styled-components";
10142
+ import { useState as useState10 } from "react";
10143
+ import styled43 from "styled-components";
10081
10144
  import {
10082
10145
  DropdownMenuPortal as DropdownMenuPortal2,
10083
10146
  DropdownMenuSub,
@@ -10089,11 +10152,11 @@ import {
10089
10152
  import { isNotNil as isNotNil20 } from "@wistia/type-guards";
10090
10153
 
10091
10154
  // src/components/Menu/MenuItemButton.tsx
10092
- import { forwardRef as forwardRef14 } from "react";
10093
- import styled40 from "styled-components";
10155
+ import { forwardRef as forwardRef15 } from "react";
10156
+ import styled41 from "styled-components";
10094
10157
  import { isNotNil as isNotNil19, isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
10095
- import { jsx as jsx232, jsxs as jsxs26 } from "react/jsx-runtime";
10096
- var StyledButton3 = styled40(Button)`
10158
+ import { jsx as jsx233, jsxs as jsxs26 } from "react/jsx-runtime";
10159
+ var StyledButton3 = styled41(Button)`
10097
10160
  ${({ colorScheme }) => getColorScheme(colorScheme)};
10098
10161
 
10099
10162
  display: flex;
@@ -10132,7 +10195,7 @@ var StyledButton3 = styled40(Button)`
10132
10195
  padding-left: var(--wui-space-04);
10133
10196
  }
10134
10197
  `;
10135
- var StyledLeftIconContainer = styled40.div`
10198
+ var StyledLeftIconContainer = styled41.div`
10136
10199
  height: var(--menu-item-left-icon-size);
10137
10200
  width: var(--menu-item-left-icon-size);
10138
10201
 
@@ -10143,7 +10206,7 @@ var StyledLeftIconContainer = styled40.div`
10143
10206
  }
10144
10207
  }
10145
10208
  `;
10146
- var StyledRightIconContainer = styled40.div`
10209
+ var StyledRightIconContainer = styled41.div`
10147
10210
  height: var(--menu-item-right-icon-size);
10148
10211
  width: var(--menu-item-right-icon-size);
10149
10212
 
@@ -10154,19 +10217,19 @@ var StyledRightIconContainer = styled40.div`
10154
10217
  }
10155
10218
  }
10156
10219
  `;
10157
- var StyledLabelAndDescriptionContainer = styled40.div`
10220
+ var StyledLabelAndDescriptionContainer = styled41.div`
10158
10221
  display: flex;
10159
10222
  flex-direction: column;
10160
10223
  gap: var(--menu-label-description-gap);
10161
10224
  flex-basis: 100%;
10162
10225
  `;
10163
- var StyledBadgeContainer = styled40.div`
10226
+ var StyledBadgeContainer = styled41.div`
10164
10227
  align-self: start;
10165
10228
  justify-self: end;
10166
10229
  font-size: var(--wui-typography-label-4-size);
10167
10230
  color: var(--wui-color-text-secondary);
10168
10231
  `;
10169
- var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...props }, ref) => {
10232
+ var MenuItemButton = forwardRef15(({ children, appearance, command, icon, ...props }, ref) => {
10170
10233
  let { colorScheme, badge } = props;
10171
10234
  if (appearance === "dangerous") {
10172
10235
  if (isNotUndefined11(colorScheme)) {
@@ -10175,7 +10238,7 @@ var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...pro
10175
10238
  colorScheme = "error";
10176
10239
  }
10177
10240
  if (appearance === "gated") {
10178
- badge = /* @__PURE__ */ jsx232(
10241
+ badge = /* @__PURE__ */ jsx233(
10179
10242
  Icon,
10180
10243
  {
10181
10244
  colorScheme: "purple",
@@ -10197,10 +10260,10 @@ var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...pro
10197
10260
  fullWidth: true,
10198
10261
  unstyled: true,
10199
10262
  children: [
10200
- props.leftIcon ? /* @__PURE__ */ jsx232(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10201
- /* @__PURE__ */ jsx232(StyledLabelAndDescriptionContainer, { children }),
10202
- isNotNil19(badge) || isNotNil19(command) ? /* @__PURE__ */ jsx232(StyledBadgeContainer, { children: badge ?? command }) : null,
10203
- props.rightIcon ? /* @__PURE__ */ jsx232(StyledRightIconContainer, { children: props.rightIcon }) : null
10263
+ props.leftIcon ? /* @__PURE__ */ jsx233(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10264
+ /* @__PURE__ */ jsx233(StyledLabelAndDescriptionContainer, { children }),
10265
+ isNotNil19(badge) || isNotNil19(command) ? /* @__PURE__ */ jsx233(StyledBadgeContainer, { children: badge ?? command }) : null,
10266
+ props.rightIcon ? /* @__PURE__ */ jsx233(StyledRightIconContainer, { children: props.rightIcon }) : null
10204
10267
  ]
10205
10268
  }
10206
10269
  );
@@ -10208,33 +10271,33 @@ var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...pro
10208
10271
  MenuItemButton.displayName = "MenuItemButton";
10209
10272
 
10210
10273
  // src/components/Menu/MenuItemLabelDescription.tsx
10211
- import styled41 from "styled-components";
10212
- import { jsx as jsx233 } from "react/jsx-runtime";
10213
- var StyledMenuItemLabel = styled41.span``;
10214
- var StyledMenuItemDescription = styled41(Text).attrs({
10274
+ import styled42 from "styled-components";
10275
+ import { jsx as jsx234 } from "react/jsx-runtime";
10276
+ var StyledMenuItemLabel = styled42.span``;
10277
+ var StyledMenuItemDescription = styled42(Text).attrs({
10215
10278
  variant: "body4",
10216
10279
  prominence: "secondary"
10217
10280
  })``;
10218
10281
  var MenuItemLabel = ({ children }) => {
10219
- return /* @__PURE__ */ jsx233(StyledMenuItemLabel, { children });
10282
+ return /* @__PURE__ */ jsx234(StyledMenuItemLabel, { children });
10220
10283
  };
10221
10284
  var MenuItemDescription = ({ children }) => {
10222
- return /* @__PURE__ */ jsx233(StyledMenuItemDescription, { children });
10285
+ return /* @__PURE__ */ jsx234(StyledMenuItemDescription, { children });
10223
10286
  };
10224
10287
 
10225
10288
  // src/components/Menu/SubMenu.tsx
10226
- import { jsx as jsx234, jsxs as jsxs27 } from "react/jsx-runtime";
10227
- var SubMenuContent = styled42(DropdownMenuSubContent)`
10289
+ import { jsx as jsx235, jsxs as jsxs27 } from "react/jsx-runtime";
10290
+ var SubMenuContent = styled43(DropdownMenuSubContent)`
10228
10291
  ${menuContentCss}
10229
10292
 
10230
10293
  ${mq.smAndDown} {
10231
10294
  transform: translateX(-100%) !important;
10232
10295
  }
10233
10296
  `;
10234
- var StyledMobileSubMenuItems = styled42.div`
10297
+ var StyledMobileSubMenuItems = styled43.div`
10235
10298
  margin-left: var(--wui-space-04);
10236
10299
  `;
10237
- var StyledSubTrigger = styled42(DropdownMenuSubTrigger)`
10300
+ var StyledSubTrigger = styled43(DropdownMenuSubTrigger)`
10238
10301
  outline: none;
10239
10302
 
10240
10303
  &[data-state='open'],
@@ -10245,12 +10308,12 @@ var StyledSubTrigger = styled42(DropdownMenuSubTrigger)`
10245
10308
  var SubMenuTrigger = ({ icon, ...props }) => {
10246
10309
  const { isSmAndUp } = useMq();
10247
10310
  const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
10248
- return /* @__PURE__ */ jsx234(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx234(
10311
+ return /* @__PURE__ */ jsx235(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx235(
10249
10312
  MenuItemButton,
10250
10313
  {
10251
10314
  ...props,
10252
10315
  leftIcon: icon,
10253
- rightIcon: /* @__PURE__ */ jsx234(Icon, { type: "caret-right" })
10316
+ rightIcon: /* @__PURE__ */ jsx235(Icon, { type: "caret-right" })
10254
10317
  }
10255
10318
  ) });
10256
10319
  };
@@ -10262,14 +10325,14 @@ var SubMenu = ({
10262
10325
  ...props
10263
10326
  }) => {
10264
10327
  const { isSmAndUp } = useMq();
10265
- const [isExpanded, setIsExpanded] = useState9(false);
10328
+ const [isExpanded, setIsExpanded] = useState10(false);
10266
10329
  const { compact } = useMenuContext();
10267
10330
  return isSmAndUp ? /* @__PURE__ */ jsxs27(DropdownMenuSub, { onOpenChange, children: [
10268
10331
  /* @__PURE__ */ jsxs27(SubMenuTrigger, { ...props, children: [
10269
- /* @__PURE__ */ jsx234(MenuItemLabel, { children: label }),
10270
- isNotNil20(description) ? /* @__PURE__ */ jsx234(MenuItemDescription, { children: description }) : null
10332
+ /* @__PURE__ */ jsx235(MenuItemLabel, { children: label }),
10333
+ isNotNil20(description) ? /* @__PURE__ */ jsx235(MenuItemDescription, { children: description }) : null
10271
10334
  ] }),
10272
- /* @__PURE__ */ jsx234(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx234(SubMenuContent, { $compact: compact, children }) })
10335
+ /* @__PURE__ */ jsx235(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx235(SubMenuContent, { $compact: compact, children }) })
10273
10336
  ] }) : /* @__PURE__ */ jsxs27(DropdownMenuGroup, { children: [
10274
10337
  /* @__PURE__ */ jsxs27(
10275
10338
  SubMenuTrigger,
@@ -10280,28 +10343,28 @@ var SubMenu = ({
10280
10343
  setIsExpanded((prev) => !prev);
10281
10344
  },
10282
10345
  children: [
10283
- /* @__PURE__ */ jsx234(MenuItemLabel, { children: label }),
10284
- /* @__PURE__ */ jsx234(MenuItemDescription, { children: description })
10346
+ /* @__PURE__ */ jsx235(MenuItemLabel, { children: label }),
10347
+ /* @__PURE__ */ jsx235(MenuItemDescription, { children: description })
10285
10348
  ]
10286
10349
  }
10287
10350
  ),
10288
- /* @__PURE__ */ jsx234(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10351
+ /* @__PURE__ */ jsx235(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10289
10352
  ] });
10290
10353
  };
10291
10354
  SubMenu.displayName = "SubMenu";
10292
10355
 
10293
10356
  // src/components/Menu/MenuItem.tsx
10294
- import { forwardRef as forwardRef15 } from "react";
10357
+ import { forwardRef as forwardRef16 } from "react";
10295
10358
  import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
10296
- import { jsx as jsx235 } from "react/jsx-runtime";
10297
- var MenuItem = forwardRef15(
10359
+ import { jsx as jsx236 } from "react/jsx-runtime";
10360
+ var MenuItem = forwardRef16(
10298
10361
  ({ onSelect = () => null, ...props }, ref) => {
10299
- return /* @__PURE__ */ jsx235(
10362
+ return /* @__PURE__ */ jsx236(
10300
10363
  DropdownMenuItem2,
10301
10364
  {
10302
10365
  asChild: true,
10303
10366
  onSelect,
10304
- children: /* @__PURE__ */ jsx235(
10367
+ children: /* @__PURE__ */ jsx236(
10305
10368
  MenuItemButton,
10306
10369
  {
10307
10370
  ...props,
@@ -10319,10 +10382,10 @@ MenuItem.displayName = "MenuItem";
10319
10382
  import {
10320
10383
  DropdownMenuRadioGroup
10321
10384
  } from "@radix-ui/react-dropdown-menu";
10322
- import { jsx as jsx236, jsxs as jsxs28 } from "react/jsx-runtime";
10385
+ import { jsx as jsx237, jsxs as jsxs28 } from "react/jsx-runtime";
10323
10386
  var MenuRadioGroup = ({ children, label, ...props }) => {
10324
10387
  return /* @__PURE__ */ jsxs28(DropdownMenuRadioGroup, { ...props, children: [
10325
- /* @__PURE__ */ jsx236(MenuLabel, { children: label }),
10388
+ /* @__PURE__ */ jsx237(MenuLabel, { children: label }),
10326
10389
  children
10327
10390
  ] });
10328
10391
  };
@@ -10333,11 +10396,11 @@ import {
10333
10396
  DropdownMenuItemIndicator,
10334
10397
  DropdownMenuRadioItem
10335
10398
  } from "@radix-ui/react-dropdown-menu";
10336
- import { jsx as jsx237 } from "react/jsx-runtime";
10399
+ import { jsx as jsx238 } from "react/jsx-runtime";
10337
10400
  var RadioMenuItem = ({
10338
10401
  onSelect,
10339
10402
  value,
10340
- indicator = /* @__PURE__ */ jsx237(
10403
+ indicator = /* @__PURE__ */ jsx238(
10341
10404
  Icon,
10342
10405
  {
10343
10406
  size: "sm",
@@ -10347,17 +10410,17 @@ var RadioMenuItem = ({
10347
10410
  ...props
10348
10411
  }) => {
10349
10412
  const extraProps = onSelect ? { onSelect } : {};
10350
- return /* @__PURE__ */ jsx237(
10413
+ return /* @__PURE__ */ jsx238(
10351
10414
  DropdownMenuRadioItem,
10352
10415
  {
10353
10416
  ...extraProps,
10354
10417
  asChild: true,
10355
10418
  value,
10356
- children: /* @__PURE__ */ jsx237(
10419
+ children: /* @__PURE__ */ jsx238(
10357
10420
  MenuItemButton,
10358
10421
  {
10359
10422
  ...props,
10360
- rightIcon: /* @__PURE__ */ jsx237(DropdownMenuItemIndicator, { children: indicator })
10423
+ rightIcon: /* @__PURE__ */ jsx238(DropdownMenuItemIndicator, { children: indicator })
10361
10424
  }
10362
10425
  )
10363
10426
  }
@@ -10371,7 +10434,7 @@ import {
10371
10434
  DropdownMenuItemIndicator as DropdownMenuItemIndicator2
10372
10435
  } from "@radix-ui/react-dropdown-menu";
10373
10436
  import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10374
- import { jsx as jsx238, jsxs as jsxs29 } from "react/jsx-runtime";
10437
+ import { jsx as jsx239, jsxs as jsxs29 } from "react/jsx-runtime";
10375
10438
  var CheckboxIndicator = ({ checked, ...props }) => {
10376
10439
  return checked ? /* @__PURE__ */ jsxs29(
10377
10440
  "svg",
@@ -10383,14 +10446,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10383
10446
  width: "24",
10384
10447
  xmlns: "http://www.w3.org/2000/svg",
10385
10448
  children: [
10386
- /* @__PURE__ */ jsx238(
10449
+ /* @__PURE__ */ jsx239(
10387
10450
  "path",
10388
10451
  {
10389
10452
  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",
10390
10453
  fill: "#2949e5"
10391
10454
  }
10392
10455
  ),
10393
- /* @__PURE__ */ jsx238(
10456
+ /* @__PURE__ */ jsx239(
10394
10457
  "path",
10395
10458
  {
10396
10459
  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",
@@ -10409,14 +10472,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10409
10472
  width: "24",
10410
10473
  xmlns: "http://www.w3.org/2000/svg",
10411
10474
  children: [
10412
- /* @__PURE__ */ jsx238(
10475
+ /* @__PURE__ */ jsx239(
10413
10476
  "path",
10414
10477
  {
10415
10478
  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",
10416
10479
  fill: "#fcfcfd"
10417
10480
  }
10418
10481
  ),
10419
- /* @__PURE__ */ jsx238(
10482
+ /* @__PURE__ */ jsx239(
10420
10483
  "path",
10421
10484
  {
10422
10485
  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",
@@ -10433,19 +10496,19 @@ var CheckboxMenuItem = ({
10433
10496
  onCheckedChange,
10434
10497
  ...props
10435
10498
  }) => {
10436
- return /* @__PURE__ */ jsx238(
10499
+ return /* @__PURE__ */ jsx239(
10437
10500
  DropdownMenuCheckboxItem,
10438
10501
  {
10439
10502
  asChild: true,
10440
10503
  checked,
10441
10504
  onCheckedChange,
10442
10505
  onSelect,
10443
- children: /* @__PURE__ */ jsx238(
10506
+ children: /* @__PURE__ */ jsx239(
10444
10507
  MenuItemButton,
10445
10508
  {
10446
10509
  ...props,
10447
- leftIcon: isNotNil21(props.icon) ? props.icon : /* @__PURE__ */ jsx238(CheckboxIndicator, { checked }),
10448
- rightIcon: isNotNil21(props.icon) ? /* @__PURE__ */ jsx238(DropdownMenuItemIndicator2, { children: /* @__PURE__ */ jsx238(Icon, { type: "checkmark" }) }) : void 0
10510
+ leftIcon: isNotNil21(props.icon) ? props.icon : /* @__PURE__ */ jsx239(CheckboxIndicator, { checked }),
10511
+ rightIcon: isNotNil21(props.icon) ? /* @__PURE__ */ jsx239(DropdownMenuItemIndicator2, { children: /* @__PURE__ */ jsx239(Icon, { type: "checkmark" }) }) : void 0
10449
10512
  }
10450
10513
  )
10451
10514
  }
@@ -10454,37 +10517,37 @@ var CheckboxMenuItem = ({
10454
10517
  CheckboxMenuItem.displayName = "CheckboxMenuItem";
10455
10518
 
10456
10519
  // src/components/Modal/Modal.tsx
10457
- import { forwardRef as forwardRef18 } from "react";
10458
- import styled47 from "styled-components";
10520
+ import { forwardRef as forwardRef19 } from "react";
10521
+ import styled48 from "styled-components";
10459
10522
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
10460
10523
  import { isNotNil as isNotNil23 } from "@wistia/type-guards";
10461
10524
 
10462
10525
  // src/components/Modal/ModalHeader.tsx
10463
- import styled44 from "styled-components";
10526
+ import styled45 from "styled-components";
10464
10527
  import { Title as DialogTitle } from "@radix-ui/react-dialog";
10465
10528
 
10466
10529
  // src/components/Modal/ModalCloseButton.tsx
10467
- import styled43 from "styled-components";
10530
+ import styled44 from "styled-components";
10468
10531
  import { Close as DialogClose } from "@radix-ui/react-dialog";
10469
- import { jsx as jsx239 } from "react/jsx-runtime";
10470
- var CloseButton = styled43(DialogClose)`
10532
+ import { jsx as jsx240 } from "react/jsx-runtime";
10533
+ var CloseButton = styled44(DialogClose)`
10471
10534
  align-self: start;
10472
10535
  `;
10473
10536
  var ModalCloseButton = () => {
10474
- return /* @__PURE__ */ jsx239(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx239(
10537
+ return /* @__PURE__ */ jsx240(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx240(
10475
10538
  IconButton,
10476
10539
  {
10477
10540
  label: "Dismiss modal",
10478
10541
  size: "sm",
10479
10542
  variant: "ghost",
10480
- children: /* @__PURE__ */ jsx239(Icon, { type: "close" })
10543
+ children: /* @__PURE__ */ jsx240(Icon, { type: "close" })
10481
10544
  }
10482
10545
  ) });
10483
10546
  };
10484
10547
 
10485
10548
  // src/components/Modal/ModalHeader.tsx
10486
- import { jsx as jsx240, jsxs as jsxs30 } from "react/jsx-runtime";
10487
- var Header = styled44.header`
10549
+ import { jsx as jsx241, jsxs as jsxs30 } from "react/jsx-runtime";
10550
+ var Header = styled45.header`
10488
10551
  display: flex;
10489
10552
  order: 1;
10490
10553
  gap: var(--wui-space-01);
@@ -10495,7 +10558,7 @@ var Header = styled44.header`
10495
10558
  margin: 0 0 var(--wui-space-03);
10496
10559
  }
10497
10560
  `;
10498
- var Title = styled44(DialogTitle)`
10561
+ var Title = styled45(DialogTitle)`
10499
10562
  font-family: var(--wui-typography-heading-2-family);
10500
10563
  line-height: var(--wui-typography-heading-2-line-height);
10501
10564
  font-size: var(--wui-typography-heading-2-size);
@@ -10506,27 +10569,27 @@ var ModalHeader = ({
10506
10569
  hideTitle,
10507
10570
  hideCloseButton
10508
10571
  }) => {
10509
- const TitleComponent = hideTitle ? /* @__PURE__ */ jsx240(ScreenReaderOnly, { children: /* @__PURE__ */ jsx240(Title, { children: title }) }) : /* @__PURE__ */ jsx240(Title, { children: title });
10572
+ const TitleComponent = hideTitle ? /* @__PURE__ */ jsx241(ScreenReaderOnly, { children: /* @__PURE__ */ jsx241(Title, { children: title }) }) : /* @__PURE__ */ jsx241(Title, { children: title });
10510
10573
  return /* @__PURE__ */ jsxs30(Header, { $hideTitle: hideTitle, children: [
10511
10574
  TitleComponent,
10512
- hideCloseButton ? null : /* @__PURE__ */ jsx240(ModalCloseButton, {})
10575
+ hideCloseButton ? null : /* @__PURE__ */ jsx241(ModalCloseButton, {})
10513
10576
  ] });
10514
10577
  };
10515
10578
 
10516
10579
  // src/components/Modal/ModalContent.tsx
10517
- import { forwardRef as forwardRef16 } from "react";
10518
- import styled45 from "styled-components";
10580
+ import { forwardRef as forwardRef17 } from "react";
10581
+ import styled46 from "styled-components";
10519
10582
  import { Content as DialogContent } from "@radix-ui/react-dialog";
10520
10583
 
10521
10584
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
10522
- import { useRef as useRef9, useEffect as useEffect7 } from "react";
10585
+ import { useRef as useRef9, useEffect as useEffect8 } from "react";
10523
10586
  import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10524
10587
  var useFocusRestore = () => {
10525
10588
  const previouslyFocusedRef = useRef9(null);
10526
- useEffect7(() => {
10589
+ useEffect8(() => {
10527
10590
  previouslyFocusedRef.current = document.activeElement;
10528
10591
  }, []);
10529
- useEffect7(() => {
10592
+ useEffect8(() => {
10530
10593
  return () => {
10531
10594
  if (isNotNil22(previouslyFocusedRef.current)) {
10532
10595
  setTimeout(() => {
@@ -10538,8 +10601,8 @@ var useFocusRestore = () => {
10538
10601
  };
10539
10602
 
10540
10603
  // src/components/Modal/ModalContent.tsx
10541
- import { jsx as jsx241 } from "react/jsx-runtime";
10542
- var StyledModalContent = styled45(DialogContent)`
10604
+ import { jsx as jsx242 } from "react/jsx-runtime";
10605
+ var StyledModalContent = styled46(DialogContent)`
10543
10606
  background-color: var(--wui-color-bg-app);
10544
10607
  box-sizing: border-box;
10545
10608
  display: flex;
@@ -10580,10 +10643,10 @@ var StyledModalContent = styled45(DialogContent)`
10580
10643
  }
10581
10644
  }
10582
10645
  `;
10583
- var ModalContent = forwardRef16(
10646
+ var ModalContent = forwardRef17(
10584
10647
  ({ fullHeight, width, children, ...props }, ref) => {
10585
10648
  useFocusRestore();
10586
- return /* @__PURE__ */ jsx241(
10649
+ return /* @__PURE__ */ jsx242(
10587
10650
  StyledModalContent,
10588
10651
  {
10589
10652
  ref,
@@ -10598,9 +10661,9 @@ var ModalContent = forwardRef16(
10598
10661
  );
10599
10662
 
10600
10663
  // src/private/components/Backdrop/Backdrop.tsx
10601
- import { forwardRef as forwardRef17 } from "react";
10602
- import styled46 from "styled-components";
10603
- import { jsx as jsx242 } from "react/jsx-runtime";
10664
+ import { forwardRef as forwardRef18 } from "react";
10665
+ import styled47 from "styled-components";
10666
+ import { jsx as jsx243 } from "react/jsx-runtime";
10604
10667
  var backdropAnimationDuration = 150;
10605
10668
  var alignVerticalMap = {
10606
10669
  stretch: "normal",
@@ -10613,7 +10676,7 @@ var alignHorizontalMap = {
10613
10676
  center: "center",
10614
10677
  right: "end"
10615
10678
  };
10616
- var BackdropComponent = styled46.div`
10679
+ var BackdropComponent = styled47.div`
10617
10680
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
10618
10681
  animation-name: backdropShow;
10619
10682
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -10636,8 +10699,8 @@ var BackdropComponent = styled46.div`
10636
10699
  }
10637
10700
  }
10638
10701
  `;
10639
- var Backdrop = forwardRef17(
10640
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx242(
10702
+ var Backdrop = forwardRef18(
10703
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx243(
10641
10704
  BackdropComponent,
10642
10705
  {
10643
10706
  ref,
@@ -10651,14 +10714,14 @@ var Backdrop = forwardRef17(
10651
10714
  Backdrop.displayName = "Backdrop";
10652
10715
 
10653
10716
  // src/components/Modal/Modal.tsx
10654
- import { jsx as jsx243, jsxs as jsxs31 } from "react/jsx-runtime";
10717
+ import { jsx as jsx244, jsxs as jsxs31 } from "react/jsx-runtime";
10655
10718
  var DEFAULT_MODAL_WIDTH = "532px";
10656
- var ModalBody = styled47.div`
10719
+ var ModalBody = styled48.div`
10657
10720
  flex-direction: column;
10658
10721
  display: flex;
10659
10722
  order: 2;
10660
10723
  `;
10661
- var Modal = forwardRef18(
10724
+ var Modal = forwardRef19(
10662
10725
  ({
10663
10726
  children,
10664
10727
  fullHeight = false,
@@ -10671,7 +10734,7 @@ var Modal = forwardRef18(
10671
10734
  width = DEFAULT_MODAL_WIDTH,
10672
10735
  ...props
10673
10736
  }, ref) => {
10674
- return /* @__PURE__ */ jsx243(
10737
+ return /* @__PURE__ */ jsx244(
10675
10738
  DialogRoot,
10676
10739
  {
10677
10740
  onOpenChange: (open2) => {
@@ -10681,7 +10744,7 @@ var Modal = forwardRef18(
10681
10744
  },
10682
10745
  open: isOpen,
10683
10746
  children: /* @__PURE__ */ jsxs31(DialogPortal, { children: [
10684
- /* @__PURE__ */ jsx243(Backdrop, {}),
10747
+ /* @__PURE__ */ jsx244(Backdrop, {}),
10685
10748
  /* @__PURE__ */ jsxs31(
10686
10749
  ModalContent,
10687
10750
  {
@@ -10698,8 +10761,8 @@ var Modal = forwardRef18(
10698
10761
  width,
10699
10762
  ...props,
10700
10763
  children: [
10701
- /* @__PURE__ */ jsx243(ModalBody, { children }),
10702
- /* @__PURE__ */ jsx243(
10764
+ /* @__PURE__ */ jsx244(ModalBody, { children }),
10765
+ /* @__PURE__ */ jsx244(
10703
10766
  ModalHeader,
10704
10767
  {
10705
10768
  hideCloseButton,
@@ -10719,7 +10782,7 @@ Modal.displayName = "Modal";
10719
10782
 
10720
10783
  // src/components/Popover/Popover.tsx
10721
10784
  import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
10722
- import styled48, { css as css29 } from "styled-components";
10785
+ import styled49, { css as css30 } from "styled-components";
10723
10786
 
10724
10787
  // src/private/helpers/getControls/getControlProps.tsx
10725
10788
  import { isNotNil as isNotNil24 } from "@wistia/type-guards";
@@ -10728,10 +10791,10 @@ var getControlProps = (isOpen, onOpenChange) => {
10728
10791
  };
10729
10792
 
10730
10793
  // src/components/Popover/Popover.tsx
10731
- import { jsx as jsx244, jsxs as jsxs32 } from "react/jsx-runtime";
10732
- var StyledContent2 = styled48(Content2)`
10794
+ import { jsx as jsx245, jsxs as jsxs32 } from "react/jsx-runtime";
10795
+ var StyledContent2 = styled49(Content2)`
10733
10796
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10734
- ${({ $unstyled }) => !$unstyled && css29`
10797
+ ${({ $unstyled }) => !$unstyled && css30`
10735
10798
  border-radius: var(--wui-border-radius-02);
10736
10799
  padding: var(--wui-space-04);
10737
10800
  max-width: var(--wui-popover-max-width, 320px);
@@ -10765,8 +10828,8 @@ var Popover = ({
10765
10828
  "--wui-popover-max-height": maxHeight
10766
10829
  };
10767
10830
  return /* @__PURE__ */ jsxs32(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
10768
- /* @__PURE__ */ jsx244(Trigger2, { asChild: true, children: trigger }),
10769
- /* @__PURE__ */ jsx244(Portal, { children: /* @__PURE__ */ jsxs32(
10831
+ /* @__PURE__ */ jsx245(Trigger2, { asChild: true, children: trigger }),
10832
+ /* @__PURE__ */ jsx245(Portal, { children: /* @__PURE__ */ jsxs32(
10770
10833
  StyledContent2,
10771
10834
  {
10772
10835
  $colorScheme: colorScheme,
@@ -10775,16 +10838,16 @@ var Popover = ({
10775
10838
  $unstyled: unstyled,
10776
10839
  style,
10777
10840
  children: [
10778
- !hideCloseButton && /* @__PURE__ */ jsx244(Close, { asChild: true, children: /* @__PURE__ */ jsx244(
10841
+ !hideCloseButton && /* @__PURE__ */ jsx245(Close, { asChild: true, children: /* @__PURE__ */ jsx245(
10779
10842
  IconButton,
10780
10843
  {
10781
10844
  "data-wui-popover-close": true,
10782
10845
  label: "Close",
10783
10846
  variant: "ghost",
10784
- children: /* @__PURE__ */ jsx244(Icon, { type: "close" })
10847
+ children: /* @__PURE__ */ jsx245(Icon, { type: "close" })
10785
10848
  }
10786
10849
  ) }),
10787
- /* @__PURE__ */ jsx244("div", { children })
10850
+ /* @__PURE__ */ jsx245("div", { children })
10788
10851
  ]
10789
10852
  }
10790
10853
  ) })
@@ -10793,11 +10856,11 @@ var Popover = ({
10793
10856
  Popover.displayName = "Popover";
10794
10857
 
10795
10858
  // src/components/ProgressBar/ProgressBar.tsx
10796
- import styled49 from "styled-components";
10859
+ import styled50 from "styled-components";
10797
10860
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
10798
10861
  import { isNotNil as isNotNil25 } from "@wistia/type-guards";
10799
- import { jsx as jsx245, jsxs as jsxs33 } from "react/jsx-runtime";
10800
- var ProgressBarWrapper = styled49.div`
10862
+ import { jsx as jsx246, jsxs as jsxs33 } from "react/jsx-runtime";
10863
+ var ProgressBarWrapper = styled50.div`
10801
10864
  --progress-bar-height: 8px;
10802
10865
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
10803
10866
  --progress-bar-background-color: var(--wui-color-bg-surface-secondary);
@@ -10813,7 +10876,7 @@ var getTranslateValue = (progress, max) => {
10813
10876
  const progressPercentage = progress / max * 100;
10814
10877
  return `translateX(-${100 - progressPercentage}%)`;
10815
10878
  };
10816
- var ProgressBarLabel = styled49.div`
10879
+ var ProgressBarLabel = styled50.div`
10817
10880
  display: flex;
10818
10881
  line-height: var(--wui-typography-label-3-line-height);
10819
10882
  font-size: var(--wui-typography-label-3-size);
@@ -10821,7 +10884,7 @@ var ProgressBarLabel = styled49.div`
10821
10884
  color: var(--wui-color-text-secondary);
10822
10885
  flex-shrink: 0;
10823
10886
  `;
10824
- var StyledProgressIndicator = styled49(ProgressIndicator)`
10887
+ var StyledProgressIndicator = styled50(ProgressIndicator)`
10825
10888
  background-color: var(--progress-bar-indicator-color);
10826
10889
  width: 100%;
10827
10890
  height: 100%;
@@ -10830,7 +10893,7 @@ var StyledProgressIndicator = styled49(ProgressIndicator)`
10830
10893
  transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
10831
10894
  transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
10832
10895
  `;
10833
- var StyledProgressBar = styled49(ProgressRoot)`
10896
+ var StyledProgressBar = styled50(ProgressRoot)`
10834
10897
  position: relative;
10835
10898
  overflow: hidden;
10836
10899
  background: var(--progress-bar-background-color);
@@ -10850,14 +10913,14 @@ var ProgressBar = ({
10850
10913
  ...props
10851
10914
  }) => {
10852
10915
  return /* @__PURE__ */ jsxs33(ProgressBarWrapper, { children: [
10853
- isNotNil25(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
10854
- /* @__PURE__ */ jsx245(
10916
+ isNotNil25(labelLeft) ? /* @__PURE__ */ jsx246(ProgressBarLabel, { children: labelLeft }) : null,
10917
+ /* @__PURE__ */ jsx246(
10855
10918
  StyledProgressBar,
10856
10919
  {
10857
10920
  max,
10858
10921
  value: progress,
10859
10922
  ...props,
10860
- children: /* @__PURE__ */ jsx245(
10923
+ children: /* @__PURE__ */ jsx246(
10861
10924
  StyledProgressIndicator,
10862
10925
  {
10863
10926
  $max: max,
@@ -10866,17 +10929,17 @@ var ProgressBar = ({
10866
10929
  )
10867
10930
  }
10868
10931
  ),
10869
- isNotNil25(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
10932
+ isNotNil25(labelRight) ? /* @__PURE__ */ jsx246(ProgressBarLabel, { children: labelRight }) : null
10870
10933
  ] });
10871
10934
  };
10872
10935
  ProgressBar.displayName = "ProgressBar";
10873
10936
 
10874
10937
  // src/components/Radio/Radio.tsx
10875
- import { forwardRef as forwardRef19, useId as useId3 } from "react";
10876
- import styled50, { css as css30 } from "styled-components";
10938
+ import { forwardRef as forwardRef20, useId as useId3 } from "react";
10939
+ import styled51, { css as css31 } from "styled-components";
10877
10940
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
10878
- import { jsx as jsx246, jsxs as jsxs34 } from "react/jsx-runtime";
10879
- var RadioIcon = () => /* @__PURE__ */ jsx246(
10941
+ import { jsx as jsx247, jsxs as jsxs34 } from "react/jsx-runtime";
10942
+ var RadioIcon = () => /* @__PURE__ */ jsx247(
10880
10943
  "svg",
10881
10944
  {
10882
10945
  fill: "inherit",
@@ -10884,7 +10947,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx246(
10884
10947
  viewBox: "0 0 1 1",
10885
10948
  width: "1",
10886
10949
  xmlns: "http://www.w3.org/2000/svg",
10887
- children: /* @__PURE__ */ jsx246(
10950
+ children: /* @__PURE__ */ jsx247(
10888
10951
  "circle",
10889
10952
  {
10890
10953
  cx: "0.5",
@@ -10895,7 +10958,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx246(
10895
10958
  )
10896
10959
  }
10897
10960
  );
10898
- var sizeSmall2 = css30`
10961
+ var sizeSmall2 = css31`
10899
10962
  width: 14px;
10900
10963
  height: 14px;
10901
10964
  min-width: 14px;
@@ -10906,7 +10969,7 @@ var sizeSmall2 = css30`
10906
10969
  height: 7px;
10907
10970
  }
10908
10971
  `;
10909
- var sizeMedium2 = css30`
10972
+ var sizeMedium2 = css31`
10910
10973
  width: 16px;
10911
10974
  height: 16px;
10912
10975
  min-width: 16px;
@@ -10917,7 +10980,7 @@ var sizeMedium2 = css30`
10917
10980
  height: 8px;
10918
10981
  }
10919
10982
  `;
10920
- var sizeLarge2 = css30`
10983
+ var sizeLarge2 = css31`
10921
10984
  width: 20px;
10922
10985
  height: 20px;
10923
10986
  min-width: 20px;
@@ -10933,14 +10996,14 @@ var getSizeCss2 = (size) => {
10933
10996
  if (size === "lg") return sizeLarge2;
10934
10997
  return sizeMedium2;
10935
10998
  };
10936
- var StyledRadioWrapper = styled50.div`
10999
+ var StyledRadioWrapper = styled51.div`
10937
11000
  display: flex;
10938
11001
  margin: 0;
10939
11002
 
10940
11003
  /* TODO this solves a problem but potentially causes and a11y issue */
10941
11004
  user-select: none;
10942
11005
  `;
10943
- var StyledRadioInput = styled50.div`
11006
+ var StyledRadioInput = styled51.div`
10944
11007
  ${({ $size }) => getSizeCss2($size)}
10945
11008
  line-height: 0;
10946
11009
  margin: 0;
@@ -10962,7 +11025,7 @@ var StyledRadioInput = styled50.div`
10962
11025
  }
10963
11026
  }
10964
11027
  `;
10965
- var StyledHiddenRadioInput = styled50.input`
11028
+ var StyledHiddenRadioInput = styled51.input`
10966
11029
  ${visuallyHiddenStyle}
10967
11030
 
10968
11031
  /* toggles display of faux-input border-color */
@@ -10975,7 +11038,7 @@ var StyledHiddenRadioInput = styled50.input`
10975
11038
  display: block;
10976
11039
  }
10977
11040
  `;
10978
- var Radio = forwardRef19(
11041
+ var Radio = forwardRef20(
10979
11042
  ({
10980
11043
  checked,
10981
11044
  disabled = false,
@@ -10998,7 +11061,7 @@ var Radio = forwardRef19(
10998
11061
  $disabled: disabled,
10999
11062
  "aria-invalid": props["aria-invalid"],
11000
11063
  children: [
11001
- /* @__PURE__ */ jsx246(
11064
+ /* @__PURE__ */ jsx247(
11002
11065
  StyledHiddenRadioInput,
11003
11066
  {
11004
11067
  ...props,
@@ -11013,16 +11076,16 @@ var Radio = forwardRef19(
11013
11076
  value
11014
11077
  }
11015
11078
  ),
11016
- /* @__PURE__ */ jsx246(
11079
+ /* @__PURE__ */ jsx247(
11017
11080
  FormControlLabel,
11018
11081
  {
11019
- controlSlot: /* @__PURE__ */ jsx246(
11082
+ controlSlot: /* @__PURE__ */ jsx247(
11020
11083
  StyledRadioInput,
11021
11084
  {
11022
11085
  $disabled: disabled,
11023
11086
  $size: size,
11024
11087
  "data-wui-faux-input": "true",
11025
- children: /* @__PURE__ */ jsx246(RadioIcon, {})
11088
+ children: /* @__PURE__ */ jsx247(RadioIcon, {})
11026
11089
  }
11027
11090
  ),
11028
11091
  description,
@@ -11040,19 +11103,19 @@ var Radio = forwardRef19(
11040
11103
  Radio.displayName = "Radio";
11041
11104
 
11042
11105
  // src/components/SegmentedControl/SegmentedControl.tsx
11043
- import { forwardRef as forwardRef20 } from "react";
11044
- import styled52, { css as css31 } from "styled-components";
11106
+ import { forwardRef as forwardRef21 } from "react";
11107
+ import styled53, { css as css32 } from "styled-components";
11045
11108
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11046
11109
  import { isNil as isNil14 } from "@wistia/type-guards";
11047
11110
 
11048
11111
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11049
- import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState10 } from "react";
11050
- import { jsx as jsx247 } from "react/jsx-runtime";
11051
- var SelectedItemStyleContext = createContext6(null);
11112
+ import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState11 } from "react";
11113
+ import { jsx as jsx248 } from "react/jsx-runtime";
11114
+ var SelectedItemStyleContext = createContext7(null);
11052
11115
  var SelectedItemStyleProvider = ({
11053
11116
  children
11054
11117
  }) => {
11055
- const [selectedItemMeasurements, setSelectedItemMeasurements] = useState10(null);
11118
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = useState11(null);
11056
11119
  const selectedItemIndicatorStyle = useMemo8(
11057
11120
  () => selectedItemMeasurements != null ? {
11058
11121
  height: `${selectedItemMeasurements.offsetHeight}px`,
@@ -11070,10 +11133,10 @@ var SelectedItemStyleProvider = ({
11070
11133
  }),
11071
11134
  [selectedItemIndicatorStyle]
11072
11135
  );
11073
- return /* @__PURE__ */ jsx247(SelectedItemStyleContext.Provider, { value: contextValue, children });
11136
+ return /* @__PURE__ */ jsx248(SelectedItemStyleContext.Provider, { value: contextValue, children });
11074
11137
  };
11075
11138
  var useSelectedItemStyle = () => {
11076
- const context = useContext5(SelectedItemStyleContext);
11139
+ const context = useContext6(SelectedItemStyleContext);
11077
11140
  if (context === null) {
11078
11141
  throw new Error("useSelectedItemStyle must be used within a SelectedItemStyleProvider");
11079
11142
  }
@@ -11081,14 +11144,14 @@ var useSelectedItemStyle = () => {
11081
11144
  };
11082
11145
 
11083
11146
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11084
- import styled51 from "styled-components";
11147
+ import styled52 from "styled-components";
11085
11148
 
11086
11149
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11087
- import { createContext as createContext7, useContext as useContext6 } from "react";
11088
- var SegmentedControlValueContext = createContext7(null);
11150
+ import { createContext as createContext8, useContext as useContext7 } from "react";
11151
+ var SegmentedControlValueContext = createContext8(null);
11089
11152
  var SegmentedControlValueProvider = SegmentedControlValueContext.Provider;
11090
11153
  var useSegmentedControlValue = () => {
11091
- const context = useContext6(SegmentedControlValueContext);
11154
+ const context = useContext7(SegmentedControlValueContext);
11092
11155
  if (context === null) {
11093
11156
  throw new Error("useSegmentedControlValue must be used within a SegmentedControlValueProvider");
11094
11157
  }
@@ -11096,8 +11159,8 @@ var useSegmentedControlValue = () => {
11096
11159
  };
11097
11160
 
11098
11161
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11099
- import { jsx as jsx248 } from "react/jsx-runtime";
11100
- var SelectedItemIndicatorDiv = styled51.div`
11162
+ import { jsx as jsx249 } from "react/jsx-runtime";
11163
+ var SelectedItemIndicatorDiv = styled52.div`
11101
11164
  background-color: var(--wui-color-bg-fill-white);
11102
11165
  border-radius: var(--wui-border-radius-rounded);
11103
11166
  left: 0;
@@ -11115,12 +11178,12 @@ var SelectedItemIndicator = () => {
11115
11178
  if (!selectedValue) {
11116
11179
  return null;
11117
11180
  }
11118
- return /* @__PURE__ */ jsx248(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11181
+ return /* @__PURE__ */ jsx249(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11119
11182
  };
11120
11183
 
11121
11184
  // src/components/SegmentedControl/SegmentedControl.tsx
11122
- import { jsx as jsx249, jsxs as jsxs35 } from "react/jsx-runtime";
11123
- var segmentedControlStyles = css31`
11185
+ import { jsx as jsx250, jsxs as jsxs35 } from "react/jsx-runtime";
11186
+ var segmentedControlStyles = css32`
11124
11187
  display: inline-flex;
11125
11188
  background-color: var(--wui-color-bg-surface-secondary);
11126
11189
  border-radius: var(--wui-border-radius-rounded);
@@ -11131,10 +11194,10 @@ var segmentedControlStyles = css31`
11131
11194
  position: relative;
11132
11195
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11133
11196
  `;
11134
- var StyledSegmentedControl = styled52(ToggleGroupRoot)`
11197
+ var StyledSegmentedControl = styled53(ToggleGroupRoot)`
11135
11198
  ${segmentedControlStyles}
11136
11199
  `;
11137
- var SegmentedControl = forwardRef20(
11200
+ var SegmentedControl = forwardRef21(
11138
11201
  ({
11139
11202
  children,
11140
11203
  disabled = false,
@@ -11146,7 +11209,7 @@ var SegmentedControl = forwardRef20(
11146
11209
  if (isNil14(children)) {
11147
11210
  return null;
11148
11211
  }
11149
- return /* @__PURE__ */ jsx249(
11212
+ return /* @__PURE__ */ jsx250(
11150
11213
  StyledSegmentedControl,
11151
11214
  {
11152
11215
  ref,
@@ -11158,8 +11221,8 @@ var SegmentedControl = forwardRef20(
11158
11221
  type: "single",
11159
11222
  value: selectedValue,
11160
11223
  ...props,
11161
- children: /* @__PURE__ */ jsx249(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs35(SelectedItemStyleProvider, { children: [
11162
- /* @__PURE__ */ jsx249(SelectedItemIndicator, {}),
11224
+ children: /* @__PURE__ */ jsx250(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs35(SelectedItemStyleProvider, { children: [
11225
+ /* @__PURE__ */ jsx250(SelectedItemIndicator, {}),
11163
11226
  children
11164
11227
  ] }) })
11165
11228
  }
@@ -11169,12 +11232,12 @@ var SegmentedControl = forwardRef20(
11169
11232
  SegmentedControl.displayName = "SegmentedControl";
11170
11233
 
11171
11234
  // src/components/SegmentedControl/SegmentedControlItem.tsx
11172
- import { forwardRef as forwardRef21, useEffect as useEffect8, useRef as useRef10 } from "react";
11173
- import styled53, { css as css32 } from "styled-components";
11235
+ import { forwardRef as forwardRef22, useEffect as useEffect9, useRef as useRef10 } from "react";
11236
+ import styled54, { css as css33 } from "styled-components";
11174
11237
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
11175
11238
  import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11176
11239
  import { jsxs as jsxs36 } from "react/jsx-runtime";
11177
- var segmentedControlItemStyles = css32`
11240
+ var segmentedControlItemStyles = css33`
11178
11241
  all: unset; /* ToggleGroupItem is a button element */
11179
11242
  align-items: center;
11180
11243
  border-radius: var(--wui-border-radius-rounded);
@@ -11234,10 +11297,10 @@ var segmentedControlItemStyles = css32`
11234
11297
  }
11235
11298
  }
11236
11299
  `;
11237
- var StyledSegmentedControlItem = styled53(ToggleGroupItem)`
11300
+ var StyledSegmentedControlItem = styled54(ToggleGroupItem)`
11238
11301
  ${segmentedControlItemStyles}
11239
11302
  `;
11240
- var SegmentedControlItem = forwardRef21(
11303
+ var SegmentedControlItem = forwardRef22(
11241
11304
  ({ disabled, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
11242
11305
  const selectedValue = useSegmentedControlValue();
11243
11306
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
@@ -11250,7 +11313,7 @@ var SegmentedControlItem = forwardRef21(
11250
11313
  event.preventDefault();
11251
11314
  }
11252
11315
  };
11253
- useEffect8(() => {
11316
+ useEffect9(() => {
11254
11317
  const buttonElem = buttonRef.current;
11255
11318
  if (!buttonElem) {
11256
11319
  return void 0;
@@ -11305,10 +11368,10 @@ import {
11305
11368
  Value,
11306
11369
  ScrollDownButton
11307
11370
  } from "@radix-ui/react-select";
11308
- import { forwardRef as forwardRef22 } from "react";
11309
- import styled54 from "styled-components";
11310
- import { jsx as jsx250, jsxs as jsxs37 } from "react/jsx-runtime";
11311
- var StyledTrigger = styled54(Trigger3)`
11371
+ import { forwardRef as forwardRef23 } from "react";
11372
+ import styled55 from "styled-components";
11373
+ import { jsx as jsx251, jsxs as jsxs37 } from "react/jsx-runtime";
11374
+ var StyledTrigger = styled55(Trigger3)`
11312
11375
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11313
11376
  ${inputCssVariables};
11314
11377
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
@@ -11352,7 +11415,7 @@ var StyledTrigger = styled54(Trigger3)`
11352
11415
  color: var(--wui-input-placeholder);
11353
11416
  }
11354
11417
  `;
11355
- var StyledContent3 = styled54(Content3)`
11418
+ var StyledContent3 = styled55(Content3)`
11356
11419
  --wui-select-content-border: var(--wui-color-border);
11357
11420
  --wui-select-content-bg: var(--wui-color-bg-surface);
11358
11421
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -11370,7 +11433,7 @@ var StyledContent3 = styled54(Content3)`
11370
11433
  max-height: var(--radix-select-content-available-height);
11371
11434
  z-index: var(--wui-zindex-select);
11372
11435
  `;
11373
- var Select = forwardRef22(
11436
+ var Select = forwardRef23(
11374
11437
  ({
11375
11438
  colorScheme = "inherit",
11376
11439
  children,
@@ -11394,8 +11457,8 @@ var Select = forwardRef22(
11394
11457
  $fullWidth: responsiveFullWidth,
11395
11458
  ...props,
11396
11459
  children: [
11397
- /* @__PURE__ */ jsx250(Value, { placeholder }),
11398
- /* @__PURE__ */ jsx250(
11460
+ /* @__PURE__ */ jsx251(Value, { placeholder }),
11461
+ /* @__PURE__ */ jsx251(
11399
11462
  Icon,
11400
11463
  {
11401
11464
  size: "md",
@@ -11405,10 +11468,10 @@ var Select = forwardRef22(
11405
11468
  ]
11406
11469
  }
11407
11470
  ),
11408
- /* @__PURE__ */ jsx250(Portal2, { children: /* @__PURE__ */ jsxs37(StyledContent3, { position: "popper", children: [
11409
- /* @__PURE__ */ jsx250(ScrollUpButton, { children: /* @__PURE__ */ jsx250(Icon, { type: "caret-up" }) }),
11410
- /* @__PURE__ */ jsx250(Viewport, { children }),
11411
- /* @__PURE__ */ jsx250(ScrollDownButton, { children: /* @__PURE__ */ jsx250(Icon, { type: "caret-down" }) })
11471
+ /* @__PURE__ */ jsx251(Portal2, { children: /* @__PURE__ */ jsxs37(StyledContent3, { position: "popper", children: [
11472
+ /* @__PURE__ */ jsx251(ScrollUpButton, { children: /* @__PURE__ */ jsx251(Icon, { type: "caret-up" }) }),
11473
+ /* @__PURE__ */ jsx251(Viewport, { children }),
11474
+ /* @__PURE__ */ jsx251(ScrollDownButton, { children: /* @__PURE__ */ jsx251(Icon, { type: "caret-down" }) })
11412
11475
  ] }) })
11413
11476
  ]
11414
11477
  }
@@ -11419,11 +11482,11 @@ Select.displayName = "Select";
11419
11482
 
11420
11483
  // src/components/Select/SelectOption.tsx
11421
11484
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11422
- import { forwardRef as forwardRef23 } from "react";
11423
- import styled55 from "styled-components";
11485
+ import { forwardRef as forwardRef24 } from "react";
11486
+ import styled56 from "styled-components";
11424
11487
  import { isNotNil as isNotNil27 } from "@wistia/type-guards";
11425
- import { jsx as jsx251, jsxs as jsxs38 } from "react/jsx-runtime";
11426
- var StyledItem = styled55(Item)`
11488
+ import { jsx as jsx252, jsxs as jsxs38 } from "react/jsx-runtime";
11489
+ var StyledItem = styled56(Item)`
11427
11490
  ${variantStyleMap2.body3};
11428
11491
  display: flex;
11429
11492
  padding: var(--wui-select-option-padding);
@@ -11447,10 +11510,10 @@ var StyledItem = styled55(Item)`
11447
11510
  background-color: transparent;
11448
11511
  }
11449
11512
  `;
11450
- var StyledIconContainer = styled55.span`
11513
+ var StyledIconContainer = styled56.span`
11451
11514
  width: 12px;
11452
11515
  `;
11453
- var SelectOption = forwardRef23(
11516
+ var SelectOption = forwardRef24(
11454
11517
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11455
11518
  return /* @__PURE__ */ jsxs38(
11456
11519
  StyledItem,
@@ -11458,7 +11521,7 @@ var SelectOption = forwardRef23(
11458
11521
  ...props,
11459
11522
  ref: forwardedRef,
11460
11523
  children: [
11461
- /* @__PURE__ */ jsx251(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ jsx251(ItemIndicator, { children: /* @__PURE__ */ jsx251(
11524
+ /* @__PURE__ */ jsx252(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ jsx252(ItemIndicator, { children: /* @__PURE__ */ jsx252(
11462
11525
  Icon,
11463
11526
  {
11464
11527
  size: "sm",
@@ -11467,8 +11530,8 @@ var SelectOption = forwardRef23(
11467
11530
  ) }) }),
11468
11531
  isNotNil27(selectedDisplayValue) ? /* @__PURE__ */ jsxs38("div", { children: [
11469
11532
  children,
11470
- /* @__PURE__ */ jsx251("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx251(ItemText, { children: selectedDisplayValue }) })
11471
- ] }) : /* @__PURE__ */ jsx251(ItemText, { children })
11533
+ /* @__PURE__ */ jsx252("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx252(ItemText, { children: selectedDisplayValue }) })
11534
+ ] }) : /* @__PURE__ */ jsx252(ItemText, { children })
11472
11535
  ]
11473
11536
  }
11474
11537
  );
@@ -11478,14 +11541,14 @@ SelectOption.displayName = "Option";
11478
11541
 
11479
11542
  // src/components/Select/SelectOptionGroup.tsx
11480
11543
  import { Group, Label as Label2 } from "@radix-ui/react-select";
11481
- import styled56 from "styled-components";
11482
- import { jsx as jsx252, jsxs as jsxs39 } from "react/jsx-runtime";
11483
- var StyledLabel4 = styled56(Label2)`
11544
+ import styled57 from "styled-components";
11545
+ import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
11546
+ var StyledLabel4 = styled57(Label2)`
11484
11547
  padding: var(--wui-select-option-padding);
11485
11548
  `;
11486
11549
  var SelectOptionGroup = ({ children, label, ...props }) => {
11487
11550
  return /* @__PURE__ */ jsxs39(Group, { ...props, children: [
11488
- /* @__PURE__ */ jsx252(StyledLabel4, { children: /* @__PURE__ */ jsx252(
11551
+ /* @__PURE__ */ jsx253(StyledLabel4, { children: /* @__PURE__ */ jsx253(
11489
11552
  Text,
11490
11553
  {
11491
11554
  prominence: "secondary",
@@ -11498,11 +11561,11 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11498
11561
  };
11499
11562
 
11500
11563
  // src/components/Switch/Switch.tsx
11501
- import { forwardRef as forwardRef24, useId as useId4 } from "react";
11502
- import styled57, { css as css33 } from "styled-components";
11564
+ import { forwardRef as forwardRef25, useId as useId4 } from "react";
11565
+ import styled58, { css as css34 } from "styled-components";
11503
11566
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11504
- import { jsx as jsx253, jsxs as jsxs40 } from "react/jsx-runtime";
11505
- var sizeSmall3 = css33`
11567
+ import { jsx as jsx254, jsxs as jsxs40 } from "react/jsx-runtime";
11568
+ var sizeSmall3 = css34`
11506
11569
  --wui-size-small-width: 24px;
11507
11570
  --wui-size-small-height: 14px;
11508
11571
 
@@ -11517,7 +11580,7 @@ var sizeSmall3 = css33`
11517
11580
  height: calc(var(--wui-size-small-width) / 2);
11518
11581
  }
11519
11582
  `;
11520
- var sizeMedium3 = css33`
11583
+ var sizeMedium3 = css34`
11521
11584
  --wui-size-medium-width: 32px;
11522
11585
  --wui-size-medium-height: 18px;
11523
11586
 
@@ -11532,7 +11595,7 @@ var sizeMedium3 = css33`
11532
11595
  height: calc(var(--wui-size-medium-width) / 2);
11533
11596
  }
11534
11597
  `;
11535
- var sizeLarge3 = css33`
11598
+ var sizeLarge3 = css34`
11536
11599
  --wui-size-large-width: 40px;
11537
11600
  --wui-size-large-height: 22px;
11538
11601
 
@@ -11552,14 +11615,14 @@ var getSizeCss3 = (size) => {
11552
11615
  if (size === "lg") return sizeLarge3;
11553
11616
  return sizeMedium3;
11554
11617
  };
11555
- var StyledSwitchWrapper = styled57.div`
11618
+ var StyledSwitchWrapper = styled58.div`
11556
11619
  display: flex;
11557
11620
  margin: 0;
11558
11621
 
11559
11622
  /* TODO this solves a problem but potentially causes and a11y issue */
11560
11623
  user-select: none;
11561
11624
  `;
11562
- var StyledSwitchInput = styled57.div`
11625
+ var StyledSwitchInput = styled58.div`
11563
11626
  ${({ $size }) => getSizeCss3($size)}
11564
11627
  line-height: 0;
11565
11628
  margin: 0;
@@ -11587,7 +11650,7 @@ var StyledSwitchInput = styled57.div`
11587
11650
  transition: all 0.2s ease-in-out;
11588
11651
  }
11589
11652
  `;
11590
- var StyledHiddenSwitchInput = styled57.input`
11653
+ var StyledHiddenSwitchInput = styled58.input`
11591
11654
  ${visuallyHiddenStyle}
11592
11655
 
11593
11656
  /* toggles display of faux-input background-color and toggle position */
@@ -11603,7 +11666,7 @@ var StyledHiddenSwitchInput = styled57.input`
11603
11666
  }
11604
11667
  }
11605
11668
  `;
11606
- var Switch = forwardRef24(
11669
+ var Switch = forwardRef25(
11607
11670
  ({
11608
11671
  checked,
11609
11672
  disabled = false,
@@ -11621,7 +11684,7 @@ var Switch = forwardRef24(
11621
11684
  const generatedId = useId4();
11622
11685
  const computedId = isNonEmptyString4(id) ? id : `wistia-ui-switch-${generatedId}`;
11623
11686
  return /* @__PURE__ */ jsxs40(StyledSwitchWrapper, { $disabled: disabled, children: [
11624
- /* @__PURE__ */ jsx253(
11687
+ /* @__PURE__ */ jsx254(
11625
11688
  StyledHiddenSwitchInput,
11626
11689
  {
11627
11690
  ...props,
@@ -11636,10 +11699,10 @@ var Switch = forwardRef24(
11636
11699
  value
11637
11700
  }
11638
11701
  ),
11639
- /* @__PURE__ */ jsx253(
11702
+ /* @__PURE__ */ jsx254(
11640
11703
  FormControlLabel,
11641
11704
  {
11642
- controlSlot: /* @__PURE__ */ jsx253(
11705
+ controlSlot: /* @__PURE__ */ jsx254(
11643
11706
  StyledSwitchInput,
11644
11707
  {
11645
11708
  $disabled: disabled,
@@ -11661,19 +11724,19 @@ var Switch = forwardRef24(
11661
11724
  Switch.displayName = "Switch";
11662
11725
 
11663
11726
  // src/components/Table/Table.tsx
11664
- import styled58, { css as css34 } from "styled-components";
11665
- import { jsx as jsx254 } from "react/jsx-runtime";
11666
- var StyledTable = styled58.table`
11727
+ import styled59, { css as css35 } from "styled-components";
11728
+ import { jsx as jsx255 } from "react/jsx-runtime";
11729
+ var StyledTable = styled59.table`
11667
11730
  width: 100%;
11668
11731
  border-collapse: collapse;
11669
11732
 
11670
- ${({ $striped }) => $striped && css34`
11733
+ ${({ $striped }) => $striped && css35`
11671
11734
  tbody tr:nth-child(even) {
11672
11735
  background-color: var(--wui-color-bg-surface-secondary);
11673
11736
  }
11674
11737
  `}
11675
11738
 
11676
- ${({ $divided }) => $divided && css34`
11739
+ ${({ $divided }) => $divided && css35`
11677
11740
  tr {
11678
11741
  border-bottom: 1px solid var(--wui-color-border);
11679
11742
  }
@@ -11685,7 +11748,7 @@ var Table = ({
11685
11748
  divided = false,
11686
11749
  ...props
11687
11750
  }) => {
11688
- return /* @__PURE__ */ jsx254(
11751
+ return /* @__PURE__ */ jsx255(
11689
11752
  StyledTable,
11690
11753
  {
11691
11754
  $divided: divided,
@@ -11697,88 +11760,88 @@ var Table = ({
11697
11760
  };
11698
11761
 
11699
11762
  // src/components/Table/TableBody.tsx
11700
- import styled59 from "styled-components";
11763
+ import styled60 from "styled-components";
11701
11764
 
11702
11765
  // src/components/Table/TableSectionContext.ts
11703
- import { createContext as createContext8 } from "react";
11704
- var TableSectionContext = createContext8(null);
11766
+ import { createContext as createContext9 } from "react";
11767
+ var TableSectionContext = createContext9(null);
11705
11768
 
11706
11769
  // src/components/Table/TableBody.tsx
11707
- import { jsx as jsx255 } from "react/jsx-runtime";
11708
- var StyledTbody = styled59.tbody``;
11770
+ import { jsx as jsx256 } from "react/jsx-runtime";
11771
+ var StyledTbody = styled60.tbody``;
11709
11772
  var TableBody = ({ children, ...props }) => {
11710
- return /* @__PURE__ */ jsx255(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx255(StyledTbody, { ...props, children }) });
11773
+ return /* @__PURE__ */ jsx256(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx256(StyledTbody, { ...props, children }) });
11711
11774
  };
11712
11775
 
11713
11776
  // src/components/Table/TableCell.tsx
11714
- import { useContext as useContext7 } from "react";
11715
- import styled60, { css as css35 } from "styled-components";
11716
- import { jsx as jsx256 } from "react/jsx-runtime";
11717
- var sharedStyles = css35`
11777
+ import { useContext as useContext8 } from "react";
11778
+ import styled61, { css as css36 } from "styled-components";
11779
+ import { jsx as jsx257 } from "react/jsx-runtime";
11780
+ var sharedStyles = css36`
11718
11781
  color: var(--wui-color-text);
11719
11782
  padding: var(--wui-space-02);
11720
11783
  text-align: left;
11721
11784
  `;
11722
- var StyledTh = styled60.th`
11785
+ var StyledTh = styled61.th`
11723
11786
  ${sharedStyles}
11724
11787
  font-size: var(--wui-typography-body-4-size);
11725
11788
  font-weight: var(--wui-typography-weight-label-bold);
11726
11789
  line-height: var(--wui-typography-body-4-line-height);
11727
11790
  `;
11728
- var StyledTd = styled60.td`
11791
+ var StyledTd = styled61.td`
11729
11792
  ${sharedStyles}
11730
11793
  font-size: var(--wui-typography-body-2-size);
11731
11794
  font-weight: var(--wui-typography-body-2-weight);
11732
11795
  line-height: var(--wui-typography-body-2-line-height);
11733
11796
  `;
11734
11797
  var TableCell = ({ children, ...props }) => {
11735
- const section = useContext7(TableSectionContext);
11798
+ const section = useContext8(TableSectionContext);
11736
11799
  if (section === "head") {
11737
- return /* @__PURE__ */ jsx256(StyledTh, { ...props, children });
11800
+ return /* @__PURE__ */ jsx257(StyledTh, { ...props, children });
11738
11801
  }
11739
- return /* @__PURE__ */ jsx256(StyledTd, { ...props, children });
11802
+ return /* @__PURE__ */ jsx257(StyledTd, { ...props, children });
11740
11803
  };
11741
11804
 
11742
11805
  // src/components/Table/TableFooter.tsx
11743
- import styled61 from "styled-components";
11744
- import { jsx as jsx257 } from "react/jsx-runtime";
11745
- var StyledTfoot = styled61.tfoot``;
11806
+ import styled62 from "styled-components";
11807
+ import { jsx as jsx258 } from "react/jsx-runtime";
11808
+ var StyledTfoot = styled62.tfoot``;
11746
11809
  var TableFooter = ({ children, ...props }) => {
11747
- return /* @__PURE__ */ jsx257(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx257(StyledTfoot, { ...props, children }) });
11810
+ return /* @__PURE__ */ jsx258(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx258(StyledTfoot, { ...props, children }) });
11748
11811
  };
11749
11812
 
11750
11813
  // src/components/Table/TableHead.tsx
11751
- import styled62 from "styled-components";
11752
- import { jsx as jsx258 } from "react/jsx-runtime";
11753
- var StyledThead = styled62.thead``;
11814
+ import styled63 from "styled-components";
11815
+ import { jsx as jsx259 } from "react/jsx-runtime";
11816
+ var StyledThead = styled63.thead``;
11754
11817
  var TableHead = ({ children, ...props }) => {
11755
- return /* @__PURE__ */ jsx258(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx258(StyledThead, { ...props, children }) });
11818
+ return /* @__PURE__ */ jsx259(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx259(StyledThead, { ...props, children }) });
11756
11819
  };
11757
11820
 
11758
11821
  // src/components/Table/TableRow.tsx
11759
- import styled63 from "styled-components";
11760
- import { jsx as jsx259 } from "react/jsx-runtime";
11761
- var StyledTr = styled63.tr``;
11822
+ import styled64 from "styled-components";
11823
+ import { jsx as jsx260 } from "react/jsx-runtime";
11824
+ var StyledTr = styled64.tr``;
11762
11825
  var TableRow = ({ children, ...props }) => {
11763
- return /* @__PURE__ */ jsx259(StyledTr, { ...props, children });
11826
+ return /* @__PURE__ */ jsx260(StyledTr, { ...props, children });
11764
11827
  };
11765
11828
 
11766
11829
  // src/components/Tabs/Tabs.tsx
11767
- import { forwardRef as forwardRef26, useState as useState11 } from "react";
11830
+ import { forwardRef as forwardRef27, useState as useState12 } from "react";
11768
11831
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11769
11832
  import { isNotNil as isNotNil29, isNil as isNil15 } from "@wistia/type-guards";
11770
- import styled68 from "styled-components";
11833
+ import styled69 from "styled-components";
11771
11834
 
11772
11835
  // src/components/Tabs/TabPanel.tsx
11773
- import styled64 from "styled-components";
11836
+ import styled65 from "styled-components";
11774
11837
  import { Content as TabsContent } from "@radix-ui/react-tabs";
11775
- import { jsx as jsx260 } from "react/jsx-runtime";
11776
- var StyledTabPanel = styled64(TabsContent)`
11838
+ import { jsx as jsx261 } from "react/jsx-runtime";
11839
+ var StyledTabPanel = styled65(TabsContent)`
11777
11840
  display: flex;
11778
11841
  flex-direction: column;
11779
11842
  `;
11780
11843
  var TabPanel = ({ children, value, ...props }) => {
11781
- return /* @__PURE__ */ jsx260(
11844
+ return /* @__PURE__ */ jsx261(
11782
11845
  StyledTabPanel,
11783
11846
  {
11784
11847
  value,
@@ -11790,10 +11853,10 @@ var TabPanel = ({ children, value, ...props }) => {
11790
11853
  TabPanel.displayName = "TabPanel";
11791
11854
 
11792
11855
  // src/components/Tabs/TabList.tsx
11793
- import styled65 from "styled-components";
11856
+ import styled66 from "styled-components";
11794
11857
  import { List as RadixTabList } from "@radix-ui/react-tabs";
11795
- import { jsx as jsx261 } from "react/jsx-runtime";
11796
- var StyledTabList = styled65(RadixTabList)`
11858
+ import { jsx as jsx262 } from "react/jsx-runtime";
11859
+ var StyledTabList = styled66(RadixTabList)`
11797
11860
  ${segmentedControlStyles}
11798
11861
 
11799
11862
  margin-bottom: var(--wui-space-04);
@@ -11806,7 +11869,7 @@ var TabList = ({
11806
11869
  ariaLabel,
11807
11870
  ...props
11808
11871
  }) => {
11809
- return /* @__PURE__ */ jsx261(
11872
+ return /* @__PURE__ */ jsx262(
11810
11873
  StyledTabList,
11811
11874
  {
11812
11875
  $fullWidth: fullWidth,
@@ -11819,17 +11882,17 @@ var TabList = ({
11819
11882
  TabList.displayName = "TabList";
11820
11883
 
11821
11884
  // src/components/Tabs/TabItem.tsx
11822
- import { forwardRef as forwardRef25, useEffect as useEffect9, useRef as useRef11 } from "react";
11823
- import styled66 from "styled-components";
11885
+ import { forwardRef as forwardRef26, useEffect as useEffect10, useRef as useRef11 } from "react";
11886
+ import styled67 from "styled-components";
11824
11887
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
11825
11888
  import { isNotNil as isNotNil28 } from "@wistia/type-guards";
11826
11889
 
11827
11890
  // src/components/Tabs/useTabsValue.tsx
11828
- import { createContext as createContext9, useContext as useContext8 } from "react";
11829
- var TabsValueContext = createContext9(null);
11891
+ import { createContext as createContext10, useContext as useContext9 } from "react";
11892
+ var TabsValueContext = createContext10(null);
11830
11893
  var TabsValueProvider = TabsValueContext.Provider;
11831
11894
  var useTabsValue = () => {
11832
- const context = useContext8(TabsValueContext);
11895
+ const context = useContext9(TabsValueContext);
11833
11896
  if (context === null) {
11834
11897
  throw new Error("useTabsValue must be used within a TabsValueProvider");
11835
11898
  }
@@ -11838,20 +11901,20 @@ var useTabsValue = () => {
11838
11901
 
11839
11902
  // src/components/Tabs/TabItem.tsx
11840
11903
  import { jsxs as jsxs41 } from "react/jsx-runtime";
11841
- var StyledTabItem = styled66(RadixTab)`
11904
+ var StyledTabItem = styled67(RadixTab)`
11842
11905
  ${segmentedControlItemStyles}
11843
11906
 
11844
11907
  &:focus-visible {
11845
11908
  outline: none;
11846
11909
  }
11847
11910
  `;
11848
- var TabItem = forwardRef25(
11911
+ var TabItem = forwardRef26(
11849
11912
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
11850
11913
  const selectedValue = useTabsValue();
11851
11914
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
11852
11915
  const buttonRef = useRef11(null);
11853
11916
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
11854
- useEffect9(() => {
11917
+ useEffect10(() => {
11855
11918
  const buttonElem = buttonRef.current;
11856
11919
  if (!buttonElem) {
11857
11920
  return void 0;
@@ -11917,9 +11980,9 @@ var extractTabItems = (children) => {
11917
11980
  };
11918
11981
 
11919
11982
  // src/components/Tabs/SelectedItemIndicator.tsx
11920
- import styled67 from "styled-components";
11921
- import { jsx as jsx262 } from "react/jsx-runtime";
11922
- var TabsSelectedItemIndicatorDiv = styled67(SelectedItemIndicatorDiv)`
11983
+ import styled68 from "styled-components";
11984
+ import { jsx as jsx263 } from "react/jsx-runtime";
11985
+ var TabsSelectedItemIndicatorDiv = styled68(SelectedItemIndicatorDiv)`
11923
11986
  &:has(~ ${StyledTabItem}:focus-visible) {
11924
11987
  outline: 2px solid var(--wui-color-focus-ring);
11925
11988
  }
@@ -11930,28 +11993,28 @@ var SelectedItemIndicator2 = () => {
11930
11993
  if (selectedValue == null) {
11931
11994
  return null;
11932
11995
  }
11933
- return /* @__PURE__ */ jsx262(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11996
+ return /* @__PURE__ */ jsx263(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11934
11997
  };
11935
11998
 
11936
11999
  // src/components/Tabs/Tabs.tsx
11937
- import { jsx as jsx263, jsxs as jsxs42 } from "react/jsx-runtime";
11938
- var TabsContainer = styled68.div`
12000
+ import { jsx as jsx264, jsxs as jsxs42 } from "react/jsx-runtime";
12001
+ var TabsContainer = styled69.div`
11939
12002
  display: flex;
11940
12003
  flex-direction: column;
11941
12004
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
11942
12005
  overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
11943
12006
  `;
11944
- var StickyTabContent = styled68.div`
12007
+ var StickyTabContent = styled69.div`
11945
12008
  flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
11946
12009
  overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
11947
12010
  overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
11948
12011
  `;
11949
- var StyledTabsRoot = styled68(TabsRoot)`
12012
+ var StyledTabsRoot = styled69(TabsRoot)`
11950
12013
  display: flex;
11951
12014
  flex-direction: column;
11952
12015
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
11953
12016
  `;
11954
- var Tabs = forwardRef26(
12017
+ var Tabs = forwardRef27(
11955
12018
  ({
11956
12019
  children,
11957
12020
  fullWidth = true,
@@ -11963,13 +12026,13 @@ var Tabs = forwardRef26(
11963
12026
  ...props
11964
12027
  }, ref) => {
11965
12028
  const tabItems = extractTabItems(children);
11966
- const [internalSelectedValue, setInternalSelectedValue] = useState11(defaultSelectedValue);
12029
+ const [internalSelectedValue, setInternalSelectedValue] = useState12(defaultSelectedValue);
11967
12030
  const modeProps = defaultSelectedValue !== void 0 ? {
11968
12031
  defaultValue: defaultSelectedValue,
11969
12032
  onValueChange: setInternalSelectedValue
11970
12033
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
11971
12034
  const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
11972
- return /* @__PURE__ */ jsx263(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx263(
12035
+ return /* @__PURE__ */ jsx264(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx264(
11973
12036
  StyledTabsRoot,
11974
12037
  {
11975
12038
  ref,
@@ -11977,14 +12040,14 @@ var Tabs = forwardRef26(
11977
12040
  activationMode: "automatic",
11978
12041
  ...props,
11979
12042
  ...modeProps,
11980
- children: /* @__PURE__ */ jsx263(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs42(SelectedItemStyleProvider, { children: [
12043
+ children: /* @__PURE__ */ jsx264(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs42(SelectedItemStyleProvider, { children: [
11981
12044
  /* @__PURE__ */ jsxs42(
11982
12045
  TabList,
11983
12046
  {
11984
12047
  ariaLabel,
11985
12048
  fullWidth,
11986
12049
  children: [
11987
- /* @__PURE__ */ jsx263(SelectedItemIndicator2, {}),
12050
+ /* @__PURE__ */ jsx264(SelectedItemIndicator2, {}),
11988
12051
  tabItems.map((tab) => {
11989
12052
  const {
11990
12053
  value,
@@ -11994,7 +12057,7 @@ var Tabs = forwardRef26(
11994
12057
  "aria-label": ariaLabelForTab
11995
12058
  } = tab.props;
11996
12059
  if (isNil15(icon)) {
11997
- return /* @__PURE__ */ jsx263(
12060
+ return /* @__PURE__ */ jsx264(
11998
12061
  TabItem,
11999
12062
  {
12000
12063
  disabled,
@@ -12005,7 +12068,7 @@ var Tabs = forwardRef26(
12005
12068
  );
12006
12069
  }
12007
12070
  if (isNotNil29(label)) {
12008
- return /* @__PURE__ */ jsx263(
12071
+ return /* @__PURE__ */ jsx264(
12009
12072
  TabItem,
12010
12073
  {
12011
12074
  disabled,
@@ -12017,7 +12080,7 @@ var Tabs = forwardRef26(
12017
12080
  );
12018
12081
  }
12019
12082
  if (isNotNil29(ariaLabelForTab)) {
12020
- return /* @__PURE__ */ jsx263(
12083
+ return /* @__PURE__ */ jsx264(
12021
12084
  TabItem,
12022
12085
  {
12023
12086
  "aria-label": ariaLabelForTab,
@@ -12033,7 +12096,7 @@ var Tabs = forwardRef26(
12033
12096
  ]
12034
12097
  }
12035
12098
  ),
12036
- /* @__PURE__ */ jsx263(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx263(
12099
+ /* @__PURE__ */ jsx264(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx264(
12037
12100
  TabPanel,
12038
12101
  {
12039
12102
  value: tab.props.value,
@@ -12049,19 +12112,19 @@ var Tabs = forwardRef26(
12049
12112
  Tabs.displayName = "Tabs";
12050
12113
 
12051
12114
  // src/components/Tabs/Tab.tsx
12052
- import { forwardRef as forwardRef27 } from "react";
12053
- import { jsx as jsx264 } from "react/jsx-runtime";
12054
- var Tab = forwardRef27(({ children }, ref) => {
12055
- return /* @__PURE__ */ jsx264("div", { ref, children });
12115
+ import { forwardRef as forwardRef28 } from "react";
12116
+ import { jsx as jsx265 } from "react/jsx-runtime";
12117
+ var Tab = forwardRef28(({ children }, ref) => {
12118
+ return /* @__PURE__ */ jsx265("div", { ref, children });
12056
12119
  });
12057
12120
  Tab.displayName = "Tab";
12058
12121
 
12059
12122
  // src/components/Tag/Tag.tsx
12060
- import { forwardRef as forwardRef28 } from "react";
12061
- import styled69 from "styled-components";
12123
+ import { forwardRef as forwardRef29 } from "react";
12124
+ import styled70 from "styled-components";
12062
12125
  import { isNil as isNil16, isNotNil as isNotNil30, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12063
- import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs43 } from "react/jsx-runtime";
12064
- var TagLabel = styled69.a`
12126
+ import { Fragment as Fragment8, jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
12127
+ var TagLabel = styled70.a`
12065
12128
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12066
12129
  font-size: var(--wui-typography-label-4-size);
12067
12130
  font-weight: var(--wui-typography-label-4-weight);
@@ -12096,14 +12159,14 @@ var TagLabel = styled69.a`
12096
12159
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12097
12160
  }
12098
12161
  `;
12099
- var TagDivider = styled69.div`
12162
+ var TagDivider = styled70.div`
12100
12163
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12101
12164
  border-left: 1px solid var(--wui-color-border);
12102
12165
  display: flex;
12103
12166
  height: 14px;
12104
12167
  width: 1px;
12105
12168
  `;
12106
- var StyledRemoveButton = styled69.button`
12169
+ var StyledRemoveButton = styled70.button`
12107
12170
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12108
12171
  all: unset;
12109
12172
  cursor: pointer;
@@ -12131,7 +12194,7 @@ var StyledRemoveButton = styled69.button`
12131
12194
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12132
12195
  }
12133
12196
  `;
12134
- var StyledTag = styled69.div`
12197
+ var StyledTag = styled70.div`
12135
12198
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12136
12199
  align-items: center;
12137
12200
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12153,7 +12216,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12153
12216
  );
12154
12217
  }
12155
12218
  return /* @__PURE__ */ jsxs43(Fragment8, { children: [
12156
- /* @__PURE__ */ jsx265(TagDivider, { $colorScheme: colorScheme }),
12219
+ /* @__PURE__ */ jsx266(TagDivider, { $colorScheme: colorScheme }),
12157
12220
  /* @__PURE__ */ jsxs43(
12158
12221
  StyledRemoveButton,
12159
12222
  {
@@ -12161,20 +12224,20 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12161
12224
  onClick: onClickRemove,
12162
12225
  type: "button",
12163
12226
  children: [
12164
- /* @__PURE__ */ jsx265(
12227
+ /* @__PURE__ */ jsx266(
12165
12228
  Icon,
12166
12229
  {
12167
12230
  size: "sm",
12168
12231
  type: "close"
12169
12232
  }
12170
12233
  ),
12171
- /* @__PURE__ */ jsx265(ScreenReaderOnly, { children: onClickRemoveLabel })
12234
+ /* @__PURE__ */ jsx266(ScreenReaderOnly, { children: onClickRemoveLabel })
12172
12235
  ]
12173
12236
  }
12174
12237
  )
12175
12238
  ] });
12176
12239
  };
12177
- var Tag = forwardRef28(
12240
+ var Tag = forwardRef29(
12178
12241
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12179
12242
  const hasIcon = isNotNil30(icon);
12180
12243
  const labelProps = isNotNil30(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
@@ -12196,7 +12259,7 @@ var Tag = forwardRef28(
12196
12259
  ]
12197
12260
  }
12198
12261
  ),
12199
- /* @__PURE__ */ jsx265(
12262
+ /* @__PURE__ */ jsx266(
12200
12263
  RemoveButton,
12201
12264
  {
12202
12265
  colorScheme,
@@ -12211,135 +12274,10 @@ var Tag = forwardRef28(
12211
12274
  );
12212
12275
  Tag.displayName = "Tag";
12213
12276
 
12214
- // src/components/WistiaLogo/WistiaLogo.tsx
12215
- import styled70, { css as css36 } from "styled-components";
12216
- import { isNotNil as isNotNil31 } from "@wistia/type-guards";
12217
- import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
12218
- var renderBrandmark = (brandmarkColor, iconOnly) => {
12219
- if (iconOnly) {
12220
- return /* @__PURE__ */ jsx266(
12221
- "g",
12222
- {
12223
- "data-testid": "ui-wistia-logo-brandmark",
12224
- fill: brandmarkColor,
12225
- children: /* @__PURE__ */ jsx266("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" })
12226
- }
12227
- );
12228
- }
12229
- return /* @__PURE__ */ jsx266(
12230
- "g",
12231
- {
12232
- "data-testid": "ui-wistia-logo-brandmark",
12233
- fill: brandmarkColor,
12234
- children: /* @__PURE__ */ jsx266("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" })
12235
- }
12236
- );
12237
- };
12238
- var renderLogotype = (logotypeColor, iconOnly) => {
12239
- if (iconOnly) {
12240
- return null;
12241
- }
12242
- return /* @__PURE__ */ jsx266(
12243
- "g",
12244
- {
12245
- "data-testid": "ui-wistia-logo-logotype",
12246
- fill: logotypeColor,
12247
- children: /* @__PURE__ */ jsx266("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" })
12248
- }
12249
- );
12250
- };
12251
- var computedViewBox = (iconOnly) => {
12252
- if (iconOnly) {
12253
- return "0 0 34.4 26.78";
12254
- }
12255
- return "0 0 144 31.47";
12256
- };
12257
- var WistiaLogoComponent = styled70.svg`
12258
- height: ${({ height }) => `${height}px`};
12259
-
12260
- /* ensure it will always fit on mobile */
12261
- max-height: 22vw;
12262
- max-width: 100%;
12263
-
12264
- &:hover {
12265
- path {
12266
- ${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
12267
- }
12268
- }
12269
-
12270
- ${({ $opticallyCentered, $iconOnly }) => {
12271
- if ($opticallyCentered) {
12272
- if ($iconOnly) {
12273
- return css36`
12274
- aspect-ratio: 1;
12275
- padding: 11.85% 3.12% 13.91%;
12276
- `;
12277
- }
12278
- return css36`
12279
- aspect-ratio: 127 / 32;
12280
- `;
12281
- }
12282
- return null;
12283
- }}
12284
- `;
12285
- var WistiaLogo = ({
12286
- description = void 0,
12287
- height = 100,
12288
- hoverColor = void 0,
12289
- href = void 0,
12290
- iconOnly = false,
12291
- opticallyCentered = false,
12292
- title = "Wistia Logo",
12293
- variant = "standard",
12294
- ...props
12295
- }) => {
12296
- const primaryColor = "#2949e5";
12297
- const darkColor = "#000934";
12298
- const lightColor = "#ffffff";
12299
- const VARIANT_COLORS = {
12300
- standard: {
12301
- brandmark: primaryColor,
12302
- logotype: darkColor
12303
- },
12304
- dark: {
12305
- brandmark: darkColor,
12306
- logotype: darkColor
12307
- },
12308
- light: {
12309
- brandmark: lightColor,
12310
- logotype: lightColor
12311
- }
12312
- };
12313
- const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12314
- const logotypeColor = VARIANT_COLORS[variant].logotype;
12315
- const Logo = /* @__PURE__ */ jsxs44(
12316
- WistiaLogoComponent,
12317
- {
12318
- $hoverColor: hoverColor,
12319
- $iconOnly: iconOnly,
12320
- $opticallyCentered: opticallyCentered,
12321
- height,
12322
- preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
12323
- role: "img",
12324
- viewBox: computedViewBox(iconOnly),
12325
- xmlns: "http://www.w3.org/2000/svg",
12326
- ...props,
12327
- children: [
12328
- /* @__PURE__ */ jsx266("title", { children: title }),
12329
- isNotNil31(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12330
- renderBrandmark(brandmarkColor, iconOnly),
12331
- renderLogotype(logotypeColor, iconOnly)
12332
- ]
12333
- }
12334
- );
12335
- return href !== void 0 ? /* @__PURE__ */ jsx266("a", { href, children: Logo }) : Logo;
12336
- };
12337
- WistiaLogo.displayName = "WistiaLogo";
12338
-
12339
12277
  // src/components/Thumbnail/ThumbnailBadge.tsx
12340
12278
  import styled71 from "styled-components";
12341
- import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12342
- import { jsx as jsx267, jsxs as jsxs45 } from "react/jsx-runtime";
12279
+ import { isNotNil as isNotNil31 } from "@wistia/type-guards";
12280
+ import { jsx as jsx267, jsxs as jsxs44 } from "react/jsx-runtime";
12343
12281
  var StyledThumbnailBadge = styled71.div`
12344
12282
  align-items: center;
12345
12283
  background-color: rgb(0 0 0 / 50%);
@@ -12365,20 +12303,20 @@ var StyledThumbnailBadge = styled71.div`
12365
12303
  }
12366
12304
  `;
12367
12305
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12368
- return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12369
- isNotNil32(icon) && icon,
12306
+ return /* @__PURE__ */ jsxs44(StyledThumbnailBadge, { ...props, children: [
12307
+ isNotNil31(icon) && icon,
12370
12308
  /* @__PURE__ */ jsx267("span", { children: label })
12371
12309
  ] });
12372
12310
  };
12373
12311
  ThumbnailBadge.displayName = "ThumbnailBadge";
12374
12312
 
12375
12313
  // src/components/Thumbnail/Thumbnail.tsx
12376
- import { forwardRef as forwardRef29 } from "react";
12314
+ import { forwardRef as forwardRef30 } from "react";
12377
12315
  import styled72 from "styled-components";
12378
- import { isNil as isNil17, isNotNil as isNotNil34 } from "@wistia/type-guards";
12316
+ import { isNil as isNil17, isNotNil as isNotNil33 } from "@wistia/type-guards";
12379
12317
 
12380
12318
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12381
- import { isNotNil as isNotNil33 } from "@wistia/type-guards";
12319
+ import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12382
12320
  import { css as css37 } from "styled-components";
12383
12321
  var gradients = {
12384
12322
  defaultDarkOne: css37`
@@ -12506,11 +12444,11 @@ var gradients = {
12506
12444
  };
12507
12445
  var gradientMap = Object.keys(gradients);
12508
12446
  var getBackgroundGradient = (gradientName = void 0) => {
12509
- return isNotNil33(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12447
+ return isNotNil32(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12510
12448
  };
12511
12449
 
12512
12450
  // src/components/Thumbnail/Thumbnail.tsx
12513
- import { jsx as jsx268, jsxs as jsxs46 } from "react/jsx-runtime";
12451
+ import { jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12514
12452
  var WideThumbnailImage = styled72.img`
12515
12453
  height: 100%;
12516
12454
  object-fit: cover;
@@ -12527,6 +12465,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12527
12465
  WideThumbnailImage,
12528
12466
  {
12529
12467
  alt: "",
12468
+ role: "img",
12530
12469
  src: thumbnailUrl
12531
12470
  }
12532
12471
  );
@@ -12535,12 +12474,13 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12535
12474
  SquareThumbnailImage,
12536
12475
  {
12537
12476
  alt: "",
12477
+ role: "img",
12538
12478
  src: thumbnailUrl
12539
12479
  }
12540
12480
  );
12541
12481
  };
12542
12482
  var StyledThumbnail = styled72.div`
12543
- background-image: ${({ $backgroundUrl }) => isNotNil34($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12483
+ background-image: ${({ $backgroundUrl }) => isNotNil33($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12544
12484
  ${({ $backgroundUrl, $gradientBackground }) => (
12545
12485
  // if we don't have $backgroundUrl show a gradient
12546
12486
  isNil17($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
@@ -12558,7 +12498,7 @@ var StyledThumbnail = styled72.div`
12558
12498
  border-radius: calc(8% * (9 / 16)) / 8%;
12559
12499
  }
12560
12500
  `;
12561
- var Thumbnail = forwardRef29(
12501
+ var Thumbnail = forwardRef30(
12562
12502
  ({
12563
12503
  gradientBackground = "defaultMidOne",
12564
12504
  thumbnailImageType = "square",
@@ -12567,18 +12507,19 @@ var Thumbnail = forwardRef29(
12567
12507
  children,
12568
12508
  ...props
12569
12509
  }, ref) => {
12570
- const backgroundUrl = thumbnailImageType === "square" && isNotNil34(thumbnailUrl) ? thumbnailUrl : void 0;
12571
- return /* @__PURE__ */ jsxs46(
12510
+ const backgroundUrl = thumbnailImageType === "square" && isNotNil33(thumbnailUrl) ? thumbnailUrl : void 0;
12511
+ return /* @__PURE__ */ jsxs45(
12572
12512
  StyledThumbnail,
12573
12513
  {
12574
12514
  ref,
12515
+ ...props,
12575
12516
  $backgroundUrl: backgroundUrl,
12576
12517
  $gradientBackground: gradientBackground,
12577
12518
  $width: width,
12578
- ...props,
12519
+ role: "presentation",
12579
12520
  children: [
12580
- isNotNil34(children) ? children : null,
12581
- isNotNil34(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12521
+ isNotNil33(children) ? children : null,
12522
+ isNotNil33(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12582
12523
  ThumbnailImage,
12583
12524
  {
12584
12525
  thumbnailImageType,
@@ -12592,69 +12533,237 @@ var Thumbnail = forwardRef29(
12592
12533
  );
12593
12534
  Thumbnail.displayName = "Thumbnail";
12594
12535
 
12595
- // src/components/InputClickToCopy/InputClickToCopy.tsx
12536
+ // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12537
+ import React2 from "react";
12596
12538
  import styled73 from "styled-components";
12597
- import { forwardRef as forwardRef30, useEffect as useEffect10, useState as useState12 } from "react";
12598
- import { isFunction as isFunction3 } from "@wistia/type-guards";
12539
+ import { isNonEmptyArray } from "@wistia/type-guards";
12599
12540
  import { jsx as jsx269 } from "react/jsx-runtime";
12600
- var StyledInput2 = styled73(Input)`
12601
- &:not([aria-disabled='true']) {
12602
- cursor: pointer;
12541
+ var StyledThumbnailCollage = styled73.div`
12542
+ display: grid;
12543
+ gap: var(--wui-space-01);
12544
+ width: 100%;
12545
+ grid-template-columns: 3fr 2fr;
12546
+ grid-template-rows: 1fr 1fr;
12547
+ aspect-ratio: 16 / 9;
12548
+
12549
+ &:has(:nth-child(1)) {
12550
+ --wui-collage-thumbnail-first-border-radius: calc(8% * (9 / 16)) / 8%;
12551
+
12552
+ grid-template-areas:
12553
+ 'a a'
12554
+ 'a a';
12603
12555
  }
12604
12556
 
12605
- &::selection {
12606
- background-color: transparent;
12557
+ &:has(:nth-child(2)) {
12558
+ --wui-collage-thumbnail-first-border-radius: 7.5% / 8%;
12559
+ --wui-collage-thumbnail-second-border-radius: 11.5% / 8%;
12560
+
12561
+ grid-template-areas:
12562
+ 'a b'
12563
+ 'a b';
12564
+ }
12565
+
12566
+ &:has(:nth-child(3)) {
12567
+ --wui-collage-thumbnail-first-border-radius: 7.5% / 8%;
12568
+ --wui-collage-thumbnail-second-border-radius: 11.5% / 16%;
12569
+ --wui-collage-thumbnail-third-border-radius: 11.5% / 16%;
12570
+
12571
+ grid-template-areas:
12572
+ 'a b'
12573
+ 'a c';
12574
+ }
12575
+
12576
+ > :nth-child(1) {
12577
+ --wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-first-border-radius);
12578
+
12579
+ grid-area: a;
12580
+ }
12581
+
12582
+ > :nth-child(2) {
12583
+ --wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-second-border-radius);
12584
+
12585
+ grid-area: b;
12586
+ }
12587
+
12588
+ > :nth-child(3) {
12589
+ --wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-third-border-radius);
12590
+
12591
+ grid-area: c;
12592
+ }
12593
+
12594
+ > * {
12595
+ aspect-ratio: unset;
12596
+ height: 100%;
12597
+ width: 100%;
12598
+ border-radius: var(--wui-collage-thumbnail-border-radius);
12599
+
12600
+ img {
12601
+ border-radius: var(--wui-collage-thumbnail-border-radius);
12602
+ }
12603
+
12604
+ > :not(img) {
12605
+ display: none;
12606
+ }
12607
12607
  }
12608
12608
  `;
12609
- var COPY_SUCCESS_DURATION = 2e3;
12610
- var InputClickToCopy = forwardRef30(
12611
- ({ value, onCopy, ...props }, ref) => {
12612
- const [isCopied, setIsCopied] = useState12(false);
12613
- useEffect10(() => {
12614
- if (isCopied) {
12615
- const timeout = setTimeout(() => {
12616
- setIsCopied(false);
12617
- }, COPY_SUCCESS_DURATION);
12618
- return () => {
12619
- clearTimeout(timeout);
12620
- };
12621
- }
12622
- return () => null;
12623
- }, [isCopied]);
12624
- const handleClick = (event) => {
12625
- event.preventDefault();
12626
- if (isFunction3(props.onClick)) {
12627
- props.onClick(event);
12628
- }
12629
- void copyToClipboard(value).then(() => {
12630
- setIsCopied(true);
12631
- if (isFunction3(onCopy)) {
12632
- onCopy(value);
12633
- }
12634
- return value;
12635
- });
12636
- };
12637
- return /* @__PURE__ */ jsx269(
12638
- StyledInput2,
12609
+ var ThumbnailCollage = ({
12610
+ children = [],
12611
+ gradientBackground = "defaultMidOne",
12612
+ ...props
12613
+ }) => {
12614
+ const thumbnailArray = React2.Children.toArray(children);
12615
+ const truncatedThumbnails = thumbnailArray.slice(0, 3);
12616
+ const thumbnails = isNonEmptyArray(thumbnailArray) ? truncatedThumbnails.map((child) => {
12617
+ return React2.cloneElement(child, {
12618
+ ...child.props,
12619
+ children: void 0
12620
+ });
12621
+ }) : [
12622
+ // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
12623
+ /* @__PURE__ */ jsx269(
12624
+ Thumbnail,
12639
12625
  {
12640
- "aria-label": "Click to Copy",
12641
- ...props,
12642
- ref,
12643
- onClick: handleClick,
12644
- readOnly: true,
12645
- rightIcon: isCopied ? /* @__PURE__ */ jsx269(
12646
- Icon,
12647
- {
12648
- colorScheme: "success",
12649
- type: "checkmark-circle"
12650
- }
12651
- ) : /* @__PURE__ */ jsx269(Icon, { type: "save-as-copy" }),
12652
- value
12626
+ gradientBackground,
12627
+ thumbnailUrl: null
12628
+ },
12629
+ "fallback"
12630
+ )
12631
+ ];
12632
+ return /* @__PURE__ */ jsx269(
12633
+ StyledThumbnailCollage,
12634
+ {
12635
+ $gradientBackground: gradientBackground,
12636
+ "data-wui-thumbnail-collage": true,
12637
+ ...props,
12638
+ children: thumbnails
12639
+ }
12640
+ );
12641
+ };
12642
+
12643
+ // src/components/WistiaLogo/WistiaLogo.tsx
12644
+ import styled74, { css as css38 } from "styled-components";
12645
+ import { isNotNil as isNotNil34 } from "@wistia/type-guards";
12646
+ import { jsx as jsx270, jsxs as jsxs46 } from "react/jsx-runtime";
12647
+ var renderBrandmark = (brandmarkColor, iconOnly) => {
12648
+ if (iconOnly) {
12649
+ return /* @__PURE__ */ jsx270(
12650
+ "g",
12651
+ {
12652
+ "data-testid": "ui-wistia-logo-brandmark",
12653
+ fill: brandmarkColor,
12654
+ children: /* @__PURE__ */ jsx270("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" })
12653
12655
  }
12654
12656
  );
12655
12657
  }
12656
- );
12657
- InputClickToCopy.displayName = "InputClickToCopy";
12658
+ return /* @__PURE__ */ jsx270(
12659
+ "g",
12660
+ {
12661
+ "data-testid": "ui-wistia-logo-brandmark",
12662
+ fill: brandmarkColor,
12663
+ children: /* @__PURE__ */ jsx270("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" })
12664
+ }
12665
+ );
12666
+ };
12667
+ var renderLogotype = (logotypeColor, iconOnly) => {
12668
+ if (iconOnly) {
12669
+ return null;
12670
+ }
12671
+ return /* @__PURE__ */ jsx270(
12672
+ "g",
12673
+ {
12674
+ "data-testid": "ui-wistia-logo-logotype",
12675
+ fill: logotypeColor,
12676
+ children: /* @__PURE__ */ jsx270("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" })
12677
+ }
12678
+ );
12679
+ };
12680
+ var computedViewBox = (iconOnly) => {
12681
+ if (iconOnly) {
12682
+ return "0 0 34.4 26.78";
12683
+ }
12684
+ return "0 0 144 31.47";
12685
+ };
12686
+ var WistiaLogoComponent = styled74.svg`
12687
+ height: ${({ height }) => `${height}px`};
12688
+
12689
+ /* ensure it will always fit on mobile */
12690
+ max-height: 22vw;
12691
+ max-width: 100%;
12692
+
12693
+ &:hover {
12694
+ path {
12695
+ ${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
12696
+ }
12697
+ }
12698
+
12699
+ ${({ $opticallyCentered, $iconOnly }) => {
12700
+ if ($opticallyCentered) {
12701
+ if ($iconOnly) {
12702
+ return css38`
12703
+ aspect-ratio: 1;
12704
+ padding: 11.85% 3.12% 13.91%;
12705
+ `;
12706
+ }
12707
+ return css38`
12708
+ aspect-ratio: 127 / 32;
12709
+ `;
12710
+ }
12711
+ return null;
12712
+ }}
12713
+ `;
12714
+ var WistiaLogo = ({
12715
+ description = void 0,
12716
+ height = 100,
12717
+ hoverColor = void 0,
12718
+ href = void 0,
12719
+ iconOnly = false,
12720
+ opticallyCentered = false,
12721
+ title = "Wistia Logo",
12722
+ variant = "standard",
12723
+ ...props
12724
+ }) => {
12725
+ const primaryColor = "#2949e5";
12726
+ const darkColor = "#000934";
12727
+ const lightColor = "#ffffff";
12728
+ const VARIANT_COLORS = {
12729
+ standard: {
12730
+ brandmark: primaryColor,
12731
+ logotype: darkColor
12732
+ },
12733
+ dark: {
12734
+ brandmark: darkColor,
12735
+ logotype: darkColor
12736
+ },
12737
+ light: {
12738
+ brandmark: lightColor,
12739
+ logotype: lightColor
12740
+ }
12741
+ };
12742
+ const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12743
+ const logotypeColor = VARIANT_COLORS[variant].logotype;
12744
+ const Logo = /* @__PURE__ */ jsxs46(
12745
+ WistiaLogoComponent,
12746
+ {
12747
+ $hoverColor: hoverColor,
12748
+ $iconOnly: iconOnly,
12749
+ $opticallyCentered: opticallyCentered,
12750
+ height,
12751
+ preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
12752
+ role: "img",
12753
+ viewBox: computedViewBox(iconOnly),
12754
+ xmlns: "http://www.w3.org/2000/svg",
12755
+ ...props,
12756
+ children: [
12757
+ /* @__PURE__ */ jsx270("title", { children: title }),
12758
+ isNotNil34(description) ? /* @__PURE__ */ jsx270("desc", { children: description }) : null,
12759
+ renderBrandmark(brandmarkColor, iconOnly),
12760
+ renderLogotype(logotypeColor, iconOnly)
12761
+ ]
12762
+ }
12763
+ );
12764
+ return href !== void 0 ? /* @__PURE__ */ jsx270("a", { href, children: Logo }) : Logo;
12765
+ };
12766
+ WistiaLogo.displayName = "WistiaLogo";
12658
12767
  export {
12659
12768
  ActionButton,
12660
12769
  Avatar,
@@ -12730,6 +12839,7 @@ export {
12730
12839
  Text,
12731
12840
  Thumbnail,
12732
12841
  ThumbnailBadge,
12842
+ ThumbnailCollage,
12733
12843
  Tooltip,
12734
12844
  UIProvider,
12735
12845
  WistiaLogo,