@wistia/ui 0.10.0 → 0.10.2-beta.1a120d29.1091aa4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.10.0
3
+ * @license @wistia/ui v0.10.2-beta.1a120d29.1091aa4
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -100,6 +100,7 @@ __export(index_exports, {
100
100
  Select: () => Select,
101
101
  SelectOption: () => SelectOption,
102
102
  SelectOptionGroup: () => SelectOptionGroup,
103
+ Slider: () => Slider,
103
104
  Stack: () => Stack,
104
105
  SubMenu: () => SubMenu,
105
106
  Switch: () => Switch,
@@ -131,6 +132,7 @@ __export(index_exports, {
131
132
  useAriaLive: () => useAriaLive,
132
133
  useBoolean: () => useBoolean,
133
134
  useClipboard: () => useClipboard,
135
+ useElementObserver: () => useElementObserver,
134
136
  useFilePicker: () => import_use_file_picker.useFilePicker,
135
137
  useFocusTrap: () => useFocusTrap,
136
138
  useForceUpdate: () => useForceUpdate,
@@ -2145,12 +2147,48 @@ var useClipboard = (textToCopy, timeout = 1500) => {
2145
2147
  return [onCopy, hasCopied, failedToCopy];
2146
2148
  };
2147
2149
 
2150
+ // src/hooks/useElementObserver/useElementObserver.ts
2151
+ var import_react8 = require("react");
2152
+ var initialRect = {
2153
+ width: 0,
2154
+ height: 0,
2155
+ top: 0,
2156
+ left: 0,
2157
+ bottom: 0,
2158
+ right: 0,
2159
+ x: 0,
2160
+ y: 0
2161
+ };
2162
+ var useElementObserver = () => {
2163
+ const ref = (0, import_react8.useRef)(null);
2164
+ const [rect, setRect] = (0, import_react8.useState)(initialRect);
2165
+ const observer = (0, import_react8.useMemo)(
2166
+ () => new window.ResizeObserver((entries) => {
2167
+ if (entries[0]) {
2168
+ const { width, height, top, left, bottom, right, x, y } = entries[0].contentRect;
2169
+ setRect({ width, height, top, left, bottom, right, x, y });
2170
+ }
2171
+ }),
2172
+ []
2173
+ );
2174
+ (0, import_react8.useLayoutEffect)(() => {
2175
+ if (!ref.current) {
2176
+ return;
2177
+ }
2178
+ observer.observe(ref.current);
2179
+ return () => {
2180
+ observer.disconnect();
2181
+ };
2182
+ }, [observer]);
2183
+ return [ref, rect];
2184
+ };
2185
+
2148
2186
  // src/hooks/useFilePicker/useFilePicker.tsx
2149
2187
  var import_use_file_picker = require("use-file-picker");
2150
2188
  var import_validators = require("use-file-picker/validators");
2151
2189
 
2152
2190
  // src/hooks/useFocusTrap/useFocusTrap.ts
2153
- var import_react8 = require("react");
2191
+ var import_react9 = require("react");
2154
2192
  var import_type_guards7 = require("@wistia/type-guards");
2155
2193
 
2156
2194
  // src/hooks/useFocusTrap/helpers.ts
@@ -2298,9 +2336,9 @@ var isRef = (val) => {
2298
2336
  return val !== null && typeof val === "object" && "current" in val;
2299
2337
  };
2300
2338
  var useFocusTrap = (active = true, options = {}) => {
2301
- const ref = (0, import_react8.useRef)(null);
2302
- const restoreAriaRef = (0, import_react8.useRef)(null);
2303
- const setRef = (0, import_react8.useCallback)(
2339
+ const ref = (0, import_react9.useRef)(null);
2340
+ const restoreAriaRef = (0, import_react9.useRef)(null);
2341
+ const setRef = (0, import_react9.useCallback)(
2304
2342
  (node) => {
2305
2343
  if (restoreAriaRef.current !== null) {
2306
2344
  restoreAriaRef.current();
@@ -2362,7 +2400,7 @@ var useFocusTrap = (active = true, options = {}) => {
2362
2400
  },
2363
2401
  [active, options.focusSelector, options.disableAriaHider]
2364
2402
  );
2365
- (0, import_react8.useEffect)(() => {
2403
+ (0, import_react9.useEffect)(() => {
2366
2404
  if (!active) {
2367
2405
  return void 0;
2368
2406
  }
@@ -2380,18 +2418,18 @@ var useFocusTrap = (active = true, options = {}) => {
2380
2418
  };
2381
2419
 
2382
2420
  // src/hooks/useForceUpdate/useForceUpdate.ts
2383
- var import_react9 = require("react");
2421
+ var import_react10 = require("react");
2384
2422
  var useForceUpdate = () => {
2385
- const [, dispatch] = (0, import_react9.useState)(/* @__PURE__ */ Object.create(null));
2386
- return (0, import_react9.useCallback)(() => {
2423
+ const [, dispatch] = (0, import_react10.useState)(/* @__PURE__ */ Object.create(null));
2424
+ return (0, import_react10.useCallback)(() => {
2387
2425
  dispatch(/* @__PURE__ */ Object.create(null));
2388
2426
  }, [dispatch]);
2389
2427
  };
2390
2428
 
2391
2429
  // src/hooks/useIsHovered/useIsHovered.ts
2392
- var import_react10 = require("react");
2430
+ var import_react11 = require("react");
2393
2431
  var useIsHovered = () => {
2394
- const [isHovered, setIsHovered] = (0, import_react10.useState)(false);
2432
+ const [isHovered, setIsHovered] = (0, import_react11.useState)(false);
2395
2433
  const onFocus = () => setIsHovered(true);
2396
2434
  const onMouseEnter = () => setIsHovered(true);
2397
2435
  const onMouseMove = () => setIsHovered(true);
@@ -2410,10 +2448,10 @@ var useIsHovered = () => {
2410
2448
  };
2411
2449
 
2412
2450
  // src/hooks/useKey/useKey.ts
2413
- var import_react12 = require("react");
2451
+ var import_react13 = require("react");
2414
2452
 
2415
2453
  // src/private/hooks/useEvent/useEvent.ts
2416
- var import_react11 = require("react");
2454
+ var import_react12 = require("react");
2417
2455
 
2418
2456
  // src/private/helpers/isValidRef/isValidRef.ts
2419
2457
  var import_type_guards8 = require("@wistia/type-guards");
@@ -2431,15 +2469,15 @@ var isEventTargetSupported = (eventTarget) => (
2431
2469
  Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener)
2432
2470
  );
2433
2471
  var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
2434
- const savedEventHandler = (0, import_react11.useRef)();
2435
- const savedEventOptions = (0, import_react11.useRef)();
2436
- (0, import_react11.useEffect)(() => {
2472
+ const savedEventHandler = (0, import_react12.useRef)();
2473
+ const savedEventOptions = (0, import_react12.useRef)();
2474
+ (0, import_react12.useEffect)(() => {
2437
2475
  savedEventHandler.current = eventHandler;
2438
2476
  }, [eventHandler]);
2439
- (0, import_react11.useEffect)(() => {
2477
+ (0, import_react12.useEffect)(() => {
2440
2478
  savedEventOptions.current = eventOptions;
2441
2479
  }, [eventOptions]);
2442
- (0, import_react11.useEffect)(() => {
2480
+ (0, import_react12.useEffect)(() => {
2443
2481
  const target = isValidRef(eventTarget) ? eventTarget.current : eventTarget;
2444
2482
  if (!eventName || !isEventTargetSupported(target)) {
2445
2483
  return;
@@ -2459,7 +2497,7 @@ var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}
2459
2497
 
2460
2498
  // src/hooks/useKey/useKey.ts
2461
2499
  var useKey = (key, eventHandler, { eventName = "keydown", eventTarget, eventOptions } = {}) => {
2462
- const memoizedEventHandler = (0, import_react12.useCallback)(
2500
+ const memoizedEventHandler = (0, import_react13.useCallback)(
2463
2501
  (handlerEvent) => {
2464
2502
  if (["INPUT", "TEXTAREA", "SELECT"].includes(document.activeElement?.nodeName ?? "") || document.activeElement?.isContentEditable) {
2465
2503
  return;
@@ -2484,9 +2522,9 @@ var useKey = (key, eventHandler, { eventName = "keydown", eventTarget, eventOpti
2484
2522
  };
2485
2523
 
2486
2524
  // src/hooks/useLocalStorage/useLocalStorage.ts
2487
- var import_react13 = require("react");
2525
+ var import_react14 = require("react");
2488
2526
  var useLocalStorage = (key, initialValue, storage = window.localStorage) => {
2489
- const [storedValue, setStoredValue] = (0, import_react13.useState)(() => {
2527
+ const [storedValue, setStoredValue] = (0, import_react14.useState)(() => {
2490
2528
  try {
2491
2529
  const item = storage.getItem(key);
2492
2530
  return item !== null && Boolean(item) ? JSON.parse(item) : initialValue;
@@ -2512,9 +2550,9 @@ var useLocalStorage = (key, initialValue, storage = window.localStorage) => {
2512
2550
  };
2513
2551
 
2514
2552
  // src/hooks/useLockBodyScroll/useLockBodyScroll.ts
2515
- var import_react14 = require("react");
2553
+ var import_react15 = require("react");
2516
2554
  var useLockBodyScroll = (locked) => {
2517
- (0, import_react14.useLayoutEffect)(() => {
2555
+ (0, import_react15.useLayoutEffect)(() => {
2518
2556
  if (locked) {
2519
2557
  const originalStyle = window.getComputedStyle(document.body).overflow;
2520
2558
  document.body.style.overflow = "hidden";
@@ -2530,7 +2568,7 @@ var useLockBodyScroll = (locked) => {
2530
2568
  var import_type_guards9 = require("@wistia/type-guards");
2531
2569
 
2532
2570
  // src/hooks/useWindowSize/useWindowSize.ts
2533
- var import_react15 = require("react");
2571
+ var import_react16 = require("react");
2534
2572
  var import_throttle_debounce = require("throttle-debounce");
2535
2573
 
2536
2574
  // src/private/helpers/isClient/isClient.ts
@@ -2538,11 +2576,11 @@ var isClient = () => typeof window !== "undefined" && typeof document !== "undef
2538
2576
 
2539
2577
  // src/hooks/useWindowSize/useWindowSize.ts
2540
2578
  var useWindowSize = (interval = 0) => {
2541
- const [dimensions, setDimensions] = (0, import_react15.useState)({
2579
+ const [dimensions, setDimensions] = (0, import_react16.useState)({
2542
2580
  width: isClient() ? window.innerWidth : 0,
2543
2581
  height: isClient() ? window.innerHeight : 0
2544
2582
  });
2545
- (0, import_react15.useLayoutEffect)(() => {
2583
+ (0, import_react16.useLayoutEffect)(() => {
2546
2584
  const handleResize = (0, import_throttle_debounce.debounce)(
2547
2585
  interval,
2548
2586
  () => setDimensions({
@@ -2594,9 +2632,9 @@ var useActiveMq = () => {
2594
2632
  };
2595
2633
 
2596
2634
  // src/hooks/useOnClickOutside/useOnClickOutside.ts
2597
- var import_react16 = require("react");
2635
+ var import_react17 = require("react");
2598
2636
  var useOnClickOutside = (ref, handler, eventTypes = ["mousedown", "touchend"]) => {
2599
- (0, import_react16.useEffect)(() => {
2637
+ (0, import_react17.useEffect)(() => {
2600
2638
  const listener = (event) => {
2601
2639
  if (!ref.current || ref.current.contains(event.target)) {
2602
2640
  return;
@@ -2623,21 +2661,21 @@ var useOnClickOutside = (ref, handler, eventTypes = ["mousedown", "touchend"]) =
2623
2661
  };
2624
2662
 
2625
2663
  // src/hooks/usePreviousValue/usePreviousValue.ts
2626
- var import_react17 = require("react");
2664
+ var import_react18 = require("react");
2627
2665
  var usePreviousValue = (value) => {
2628
- const ref = (0, import_react17.useRef)();
2629
- (0, import_react17.useEffect)(() => {
2666
+ const ref = (0, import_react18.useRef)();
2667
+ (0, import_react18.useEffect)(() => {
2630
2668
  ref.current = value;
2631
2669
  });
2632
2670
  return ref.current;
2633
2671
  };
2634
2672
 
2635
2673
  // src/hooks/useToast/useToast.tsx
2636
- var import_react19 = require("react");
2674
+ var import_react20 = require("react");
2637
2675
  var import_sonner2 = require("sonner");
2638
2676
 
2639
2677
  // src/private/components/Toast/Toast.tsx
2640
- var import_react18 = require("react");
2678
+ var import_react19 = require("react");
2641
2679
  var import_styled_components16 = __toESM(require("styled-components"));
2642
2680
  var import_type_guards11 = require("@wistia/type-guards");
2643
2681
 
@@ -2875,8 +2913,8 @@ var StyledToast = import_styled_components16.default.div`
2875
2913
  }
2876
2914
  `;
2877
2915
  var Action = ({ actionButton }) => {
2878
- if ((0, import_type_guards11.isNotNil)(actionButton) && (0, import_react18.isValidElement)(actionButton)) {
2879
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ActionWrapper, { children: (0, import_react18.cloneElement)(actionButton, {
2916
+ if ((0, import_type_guards11.isNotNil)(actionButton) && (0, import_react19.isValidElement)(actionButton)) {
2917
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ActionWrapper, { children: (0, import_react19.cloneElement)(actionButton, {
2880
2918
  variant: "soft",
2881
2919
  // force Button variant
2882
2920
  size: "sm"
@@ -2912,7 +2950,7 @@ Toast.displayName = "Toast";
2912
2950
  // src/hooks/useToast/useToast.tsx
2913
2951
  var import_jsx_runtime6 = require("react/jsx-runtime");
2914
2952
  var useToast = () => {
2915
- return (0, import_react19.useCallback)(
2953
+ return (0, import_react20.useCallback)(
2916
2954
  ({ message, action, colorScheme, icon, position = "bottom-left", duration = 3e3 }) => {
2917
2955
  import_sonner2.toast.custom(
2918
2956
  () => {
@@ -2934,11 +2972,11 @@ var useToast = () => {
2934
2972
  };
2935
2973
 
2936
2974
  // src/components/ActionButton/ActionButton.tsx
2937
- var import_react23 = require("react");
2975
+ var import_react24 = require("react");
2938
2976
  var import_styled_components22 = __toESM(require("styled-components"));
2939
2977
 
2940
2978
  // src/components/Button/Button.tsx
2941
- var import_react22 = require("react");
2979
+ var import_react23 = require("react");
2942
2980
  var import_styled_components21 = __toESM(require("styled-components"));
2943
2981
  var import_type_guards15 = require("@wistia/type-guards");
2944
2982
 
@@ -7038,13 +7076,13 @@ var iconMap = {
7038
7076
 
7039
7077
  // src/private/hooks/useResponsiveProp/useResponsiveProp.ts
7040
7078
  var import_type_guards12 = require("@wistia/type-guards");
7041
- var import_react20 = require("react");
7079
+ var import_react21 = require("react");
7042
7080
  var isResponsiveObject = (values) => {
7043
7081
  return typeof values === "object" && values !== null && !Array.isArray(values) && "base" in values;
7044
7082
  };
7045
7083
  var useResponsiveProp = (values) => {
7046
7084
  const activeMediaQueries = useActiveMq();
7047
- return (0, import_react20.useMemo)(() => {
7085
+ return (0, import_react21.useMemo)(() => {
7048
7086
  if ((0, import_type_guards12.isRecord)(values) && isResponsiveObject(values)) {
7049
7087
  const mq2 = activeMediaQueries.find((key) => key in values);
7050
7088
  return (0, import_type_guards12.isNotUndefined)(mq2) && (0, import_type_guards12.isNotUndefined)(values[mq2]) ? values[mq2] : values.base;
@@ -7111,7 +7149,7 @@ var Icon = ({
7111
7149
  Icon.displayName = "Icon";
7112
7150
 
7113
7151
  // src/components/Link/Link.tsx
7114
- var import_react21 = require("react");
7152
+ var import_react22 = require("react");
7115
7153
  var import_styled_components20 = __toESM(require("styled-components"));
7116
7154
  var import_react_router_dom = require("react-router-dom");
7117
7155
  var import_type_guards14 = require("@wistia/type-guards");
@@ -7153,7 +7191,7 @@ var StyledLink = import_styled_components20.default.a`
7153
7191
  }
7154
7192
  }
7155
7193
  `;
7156
- var Link = (0, import_react21.forwardRef)(
7194
+ var Link = (0, import_react22.forwardRef)(
7157
7195
  ({
7158
7196
  beforeAction,
7159
7197
  children,
@@ -7305,7 +7343,7 @@ var ButtonContent = ({
7305
7343
  )
7306
7344
  ] });
7307
7345
  };
7308
- var Button = (0, import_react22.forwardRef)(
7346
+ var Button = (0, import_react23.forwardRef)(
7309
7347
  ({
7310
7348
  children,
7311
7349
  forceState,
@@ -7489,7 +7527,7 @@ var StyledLabel = import_styled_components22.default.span`
7489
7527
  grid-row: 2;
7490
7528
  text-align: left;
7491
7529
  `;
7492
- var ActionButton = (0, import_react23.forwardRef)(
7530
+ var ActionButton = (0, import_react24.forwardRef)(
7493
7531
  ({
7494
7532
  icon,
7495
7533
  colorScheme = "default",
@@ -7533,7 +7571,7 @@ var ActionButton = (0, import_react23.forwardRef)(
7533
7571
  ActionButton.displayName = "ActionButton";
7534
7572
 
7535
7573
  // src/components/Avatar/Avatar.tsx
7536
- var import_react24 = require("react");
7574
+ var import_react25 = require("react");
7537
7575
  var import_type_guards18 = require("@wistia/type-guards");
7538
7576
  var import_styled_components25 = __toESM(require("styled-components"));
7539
7577
 
@@ -7741,8 +7779,8 @@ var Avatar = ({
7741
7779
  onImageLoad,
7742
7780
  ...props
7743
7781
  }) => {
7744
- const [imageLoadState, setImageLoadState] = (0, import_react24.useState)("loading");
7745
- (0, import_react24.useEffect)(() => {
7782
+ const [imageLoadState, setImageLoadState] = (0, import_react25.useState)("loading");
7783
+ (0, import_react25.useEffect)(() => {
7746
7784
  setImageLoadState("loading");
7747
7785
  }, [imageUrl]);
7748
7786
  const handleImageLoad = () => {
@@ -7754,7 +7792,7 @@ var Avatar = ({
7754
7792
  onImageLoad?.({ state: "error", type: "initials" });
7755
7793
  };
7756
7794
  const avatarSize = heightAndWidth ?? avatarSizeMap[size];
7757
- const avatarColor = (0, import_react24.useMemo)(() => chooseColorScheme(name), [name]);
7795
+ const avatarColor = (0, import_react25.useMemo)(() => chooseColorScheme(name), [name]);
7758
7796
  return /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)(
7759
7797
  AvatarWrapper,
7760
7798
  {
@@ -7781,7 +7819,7 @@ var Avatar = ({
7781
7819
  Avatar.displayName = "Avatar";
7782
7820
 
7783
7821
  // src/components/Badge/Badge.tsx
7784
- var import_react25 = require("react");
7822
+ var import_react26 = require("react");
7785
7823
  var import_styled_components26 = __toESM(require("styled-components"));
7786
7824
  var import_type_guards19 = require("@wistia/type-guards");
7787
7825
  var import_jsx_runtime200 = require("react/jsx-runtime");
@@ -7805,7 +7843,7 @@ var StyledBadge = import_styled_components26.default.div`
7805
7843
  width: 12px;
7806
7844
  }
7807
7845
  `;
7808
- var Badge = (0, import_react25.forwardRef)(
7846
+ var Badge = (0, import_react26.forwardRef)(
7809
7847
  ({ colorScheme = "inherit", label, icon, ...props }, ref) => {
7810
7848
  const hasIcon = (0, import_type_guards19.isNotNil)(icon);
7811
7849
  return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(
@@ -7826,7 +7864,7 @@ var Badge = (0, import_react25.forwardRef)(
7826
7864
  Badge.displayName = "Badge";
7827
7865
 
7828
7866
  // src/components/Box/Box.tsx
7829
- var import_react26 = require("react");
7867
+ var import_react27 = require("react");
7830
7868
  var import_styled_components27 = __toESM(require("styled-components"));
7831
7869
  var import_type_guards20 = require("@wistia/type-guards");
7832
7870
 
@@ -7932,7 +7970,7 @@ var StyledBoxComponent = import_styled_components27.default.div`
7932
7970
  order: ${({ $order }) => (0, import_type_guards20.isNotNil)($order) ? $order : null};
7933
7971
  `;
7934
7972
  var DEFAULT_ELEMENT = "div";
7935
- var BoxComponent = (0, import_react26.forwardRef)(
7973
+ var BoxComponent = (0, import_react27.forwardRef)(
7936
7974
  ({
7937
7975
  alignContent = "stretch",
7938
7976
  alignItems = "flex-start",
@@ -8013,7 +8051,7 @@ BoxComponent.displayName = "Box";
8013
8051
  var Box = makePolymorphic(BoxComponent);
8014
8052
 
8015
8053
  // src/components/Breadcrumbs/Breadcrumbs.tsx
8016
- var import_react27 = require("react");
8054
+ var import_react28 = require("react");
8017
8055
  var import_styled_components28 = __toESM(require("styled-components"));
8018
8056
  var import_jsx_runtime202 = require("react/jsx-runtime");
8019
8057
  var StyledBreadcrumbs = import_styled_components28.default.nav`
@@ -8029,7 +8067,7 @@ var StyledBreadcrumbs = import_styled_components28.default.nav`
8029
8067
  var BUFFER_WIDTH = 10;
8030
8068
  var Breadcrumbs = ({ children, ...props }) => {
8031
8069
  const { isXsAndDown } = useMq();
8032
- let crumbs = import_react27.Children.toArray(children);
8070
+ let crumbs = import_react28.Children.toArray(children);
8033
8071
  if (isXsAndDown) {
8034
8072
  crumbs = crumbs.slice(-1);
8035
8073
  }
@@ -8134,14 +8172,28 @@ var ButtonGroupComponent = import_styled_components30.default.div`
8134
8172
  width: 100%;
8135
8173
  }
8136
8174
  }
8175
+
8176
+ ${({ $buttonSize }) => $buttonSize !== "natural" && import_styled_components30.css`
8177
+ button,
8178
+ a {
8179
+ ${buttonSizeStyles[$buttonSize]}
8180
+ }
8181
+
8182
+ [data-wistia-ui-icon-button] {
8183
+ height: var(--icon-button-size-${$buttonSize});
8184
+ width: var(--icon-button-size-${$buttonSize});
8185
+ }
8186
+ `}
8137
8187
  `;
8138
8188
  var ButtonGroup = ({
8139
8189
  children,
8140
8190
  align = "left",
8141
8191
  fullWidth = false,
8142
8192
  collapseOnSmallScreens = true,
8193
+ buttonSize = "natural",
8143
8194
  ...props
8144
8195
  }) => {
8196
+ const responsiveButtonSize = useResponsiveProp(buttonSize);
8145
8197
  if ((0, import_type_guards21.isNil)(children)) {
8146
8198
  return null;
8147
8199
  }
@@ -8149,6 +8201,7 @@ var ButtonGroup = ({
8149
8201
  ButtonGroupComponent,
8150
8202
  {
8151
8203
  $align: align,
8204
+ $buttonSize: responsiveButtonSize,
8152
8205
  $collapse: collapseOnSmallScreens,
8153
8206
  $fullWidth: fullWidth,
8154
8207
  ...props,
@@ -8218,7 +8271,7 @@ var Card = ({
8218
8271
  Card.displayName = "Card";
8219
8272
 
8220
8273
  // src/components/Center/Center.tsx
8221
- var import_react28 = require("react");
8274
+ var import_react29 = require("react");
8222
8275
  var import_styled_components32 = __toESM(require("styled-components"));
8223
8276
  var import_jsx_runtime206 = require("react/jsx-runtime");
8224
8277
  var StyledCenter = import_styled_components32.default.div`
@@ -8233,7 +8286,7 @@ var StyledCenter = import_styled_components32.default.div`
8233
8286
  align-items: center;
8234
8287
  `}
8235
8288
  `;
8236
- var Center = (0, import_react28.forwardRef)(
8289
+ var Center = (0, import_react29.forwardRef)(
8237
8290
  ({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
8238
8291
  StyledCenter,
8239
8292
  {
@@ -8249,7 +8302,7 @@ var Center = (0, import_react28.forwardRef)(
8249
8302
  Center.displayName = "Center";
8250
8303
 
8251
8304
  // src/components/Checkbox/Checkbox.tsx
8252
- var import_react33 = require("react");
8305
+ var import_react34 = require("react");
8253
8306
  var import_styled_components39 = __toESM(require("styled-components"));
8254
8307
  var import_type_guards26 = require("@wistia/type-guards");
8255
8308
 
@@ -8370,14 +8423,14 @@ var FormControlLabel = ({
8370
8423
  FormControlLabel.displayName = "FormControlLabel";
8371
8424
 
8372
8425
  // src/components/FormGroup/CheckboxGroup.tsx
8373
- var import_react32 = require("react");
8426
+ var import_react33 = require("react");
8374
8427
 
8375
8428
  // src/components/FormGroup/FormGroup.tsx
8376
8429
  var import_styled_components38 = __toESM(require("styled-components"));
8377
- var import_react31 = require("react");
8430
+ var import_react32 = require("react");
8378
8431
 
8379
8432
  // src/components/Stack/Stack.tsx
8380
- var import_react29 = require("react");
8433
+ var import_react30 = require("react");
8381
8434
  var import_styled_components36 = __toESM(require("styled-components"));
8382
8435
  var import_jsx_runtime210 = require("react/jsx-runtime");
8383
8436
  var DEFAULT_ELEMENT2 = "div";
@@ -8387,7 +8440,7 @@ var StyledStack = import_styled_components36.default.div`
8387
8440
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
8388
8441
  align-items: ${({ $alignItems }) => $alignItems};
8389
8442
  `;
8390
- var StackComponent = (0, import_react29.forwardRef)(
8443
+ var StackComponent = (0, import_react30.forwardRef)(
8391
8444
  ({ renderAs, direction = "vertical", gap = "space-02", alignItems = "stretch", ...props }, ref) => {
8392
8445
  const responsiveGap = useResponsiveProp(gap);
8393
8446
  const responsiveDirection = useResponsiveProp(direction);
@@ -8409,7 +8462,7 @@ StackComponent.displayName = "Stack";
8409
8462
  var Stack = makePolymorphic(StackComponent);
8410
8463
 
8411
8464
  // src/components/Heading/Heading.tsx
8412
- var import_react30 = require("react");
8465
+ var import_react31 = require("react");
8413
8466
  var import_styled_components37 = __toESM(require("styled-components"));
8414
8467
  var import_type_guards25 = require("@wistia/type-guards");
8415
8468
  var import_jsx_runtime211 = require("react/jsx-runtime");
@@ -8505,7 +8558,7 @@ var variantElementMap = {
8505
8558
  heading5: "h5",
8506
8559
  heading6: "h6"
8507
8560
  };
8508
- var HeadingComponent = (0, import_react30.forwardRef)(
8561
+ var HeadingComponent = (0, import_react31.forwardRef)(
8509
8562
  ({
8510
8563
  align = "left",
8511
8564
  colorScheme = "inherit",
@@ -8544,7 +8597,7 @@ var StyledLegend = import_styled_components38.default.legend`
8544
8597
  margin-bottom: var(--space-01);
8545
8598
  `;
8546
8599
  var FormGroup = ({ children, label, ...props }) => {
8547
- const ref = (0, import_react31.useRef)();
8600
+ const ref = (0, import_react32.useRef)();
8548
8601
  return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
8549
8602
  Stack,
8550
8603
  {
@@ -8569,9 +8622,9 @@ FormGroup.displayName = "FormGroup";
8569
8622
 
8570
8623
  // src/components/FormGroup/CheckboxGroup.tsx
8571
8624
  var import_jsx_runtime213 = require("react/jsx-runtime");
8572
- var CheckboxGroupContext = (0, import_react32.createContext)(null);
8625
+ var CheckboxGroupContext = (0, import_react33.createContext)(null);
8573
8626
  var useCheckboxGroup = () => {
8574
- return (0, import_react32.useContext)(CheckboxGroupContext);
8627
+ return (0, import_react33.useContext)(CheckboxGroupContext);
8575
8628
  };
8576
8629
  var CheckboxGroup = ({
8577
8630
  children,
@@ -8580,7 +8633,7 @@ var CheckboxGroup = ({
8580
8633
  value,
8581
8634
  ...props
8582
8635
  }) => {
8583
- const context = (0, import_react32.useMemo)(() => {
8636
+ const context = (0, import_react33.useMemo)(() => {
8584
8637
  return {
8585
8638
  name,
8586
8639
  onChange
@@ -8690,7 +8743,7 @@ var StyledHiddenCheckboxInput = import_styled_components39.default.input`
8690
8743
  display: block;
8691
8744
  }
8692
8745
  `;
8693
- var Checkbox = (0, import_react33.forwardRef)(
8746
+ var Checkbox = (0, import_react34.forwardRef)(
8694
8747
  ({
8695
8748
  checked,
8696
8749
  disabled = false,
@@ -8705,7 +8758,7 @@ var Checkbox = (0, import_react33.forwardRef)(
8705
8758
  hideLabel = false,
8706
8759
  ...props
8707
8760
  }, ref) => {
8708
- const generatedId = (0, import_react33.useId)();
8761
+ const generatedId = (0, import_react34.useId)();
8709
8762
  const computedId = (0, import_type_guards26.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8710
8763
  const checkboxGroupContext = useCheckboxGroup();
8711
8764
  const contextName = checkboxGroupContext?.name;
@@ -8753,14 +8806,14 @@ var Checkbox = (0, import_react33.forwardRef)(
8753
8806
  Checkbox.displayName = "Checkbox";
8754
8807
 
8755
8808
  // src/components/ClickRegion/ClickRegion.tsx
8756
- var import_react34 = require("react");
8809
+ var import_react35 = require("react");
8757
8810
  var isClickableElement = (element) => {
8758
8811
  if (!element) return false;
8759
8812
  const el = element;
8760
8813
  return el.closest("button") !== null || el.closest("a") !== null || el.closest("input") !== null || el.closest("select") !== null || el.closest("textarea") !== null || el.closest("label") !== null || el.closest("[data-wui-faux-input]") !== null;
8761
8814
  };
8762
8815
  var ClickRegion = ({ children, targetRef }) => {
8763
- (0, import_react34.useEffect)(() => {
8816
+ (0, import_react35.useEffect)(() => {
8764
8817
  if (targetRef.current && targetRef.current.tagName === "A") {
8765
8818
  targetRef.current.setAttribute("data-click-region-target-link", "");
8766
8819
  } else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
@@ -8768,7 +8821,7 @@ var ClickRegion = ({ children, targetRef }) => {
8768
8821
  } else {
8769
8822
  }
8770
8823
  }, [targetRef]);
8771
- const handleClick = (0, import_react34.useCallback)(
8824
+ const handleClick = (0, import_react35.useCallback)(
8772
8825
  (event) => {
8773
8826
  const node = targetRef.current;
8774
8827
  if (event.target === node) {
@@ -8788,7 +8841,7 @@ var ClickRegion = ({ children, targetRef }) => {
8788
8841
  },
8789
8842
  [targetRef]
8790
8843
  );
8791
- return (0, import_react34.cloneElement)(import_react34.Children.only(children), {
8844
+ return (0, import_react35.cloneElement)(import_react35.Children.only(children), {
8792
8845
  "data-click-region": true,
8793
8846
  onClick: handleClick
8794
8847
  });
@@ -8821,11 +8874,11 @@ var Collapsible = ({
8821
8874
  Collapsible.displayName = "Collapsible";
8822
8875
 
8823
8876
  // src/components/Collapsible/CollapsibleTrigger.tsx
8824
- var import_react35 = require("react");
8877
+ var import_react36 = require("react");
8825
8878
  var import_react_collapsible2 = require("@radix-ui/react-collapsible");
8826
8879
  var import_jsx_runtime216 = require("react/jsx-runtime");
8827
8880
  var CollapsibleTrigger = ({ children }) => {
8828
- import_react35.Children.only(children);
8881
+ import_react36.Children.only(children);
8829
8882
  return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8830
8883
  };
8831
8884
 
@@ -8855,7 +8908,7 @@ var CollapsibleContent = ({ clamp, children }) => {
8855
8908
  };
8856
8909
 
8857
8910
  // src/components/DataCards/DataCard.tsx
8858
- var import_react36 = require("react");
8911
+ var import_react37 = require("react");
8859
8912
  var import_styled_components42 = __toESM(require("styled-components"));
8860
8913
  var import_type_guards29 = require("@wistia/type-guards");
8861
8914
  var import_jsx_runtime218 = require("react/jsx-runtime");
@@ -9001,7 +9054,7 @@ var DataCardArrowIcon = /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9001
9054
  }
9002
9055
  );
9003
9056
  var DataCard = (props) => {
9004
- const ref = (0, import_react36.useRef)(null);
9057
+ const ref = (0, import_react37.useRef)(null);
9005
9058
  if ((0, import_type_guards29.isNotNil)(props.href) || (0, import_type_guards29.isNotNil)(props.onClick)) {
9006
9059
  return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9007
9060
  DataCardInner,
@@ -9065,7 +9118,7 @@ DataCards.displayName = "DataCards";
9065
9118
  var import_styled_components45 = __toESM(require("styled-components"));
9066
9119
 
9067
9120
  // src/components/Text/Text.tsx
9068
- var import_react37 = require("react");
9121
+ var import_react38 = require("react");
9069
9122
  var import_styled_components44 = __toESM(require("styled-components"));
9070
9123
  var import_type_guards30 = require("@wistia/type-guards");
9071
9124
  var import_jsx_runtime220 = require("react/jsx-runtime");
@@ -9240,7 +9293,7 @@ var StyledText = import_styled_components44.default.div`
9240
9293
  }
9241
9294
  `}
9242
9295
  `;
9243
- var TextComponent = (0, import_react37.forwardRef)(
9296
+ var TextComponent = (0, import_react38.forwardRef)(
9244
9297
  ({
9245
9298
  align = "left",
9246
9299
  colorScheme = "inherit",
@@ -9353,7 +9406,7 @@ Divider.displayName = "Divider";
9353
9406
 
9354
9407
  // src/components/EditableHeading/EditableHeading.tsx
9355
9408
  var import_styled_components50 = __toESM(require("styled-components"));
9356
- var import_react39 = require("react");
9409
+ var import_react40 = require("react");
9357
9410
 
9358
9411
  // src/components/Tooltip/Tooltip.tsx
9359
9412
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
@@ -9505,13 +9558,13 @@ var Tooltip = ({
9505
9558
  Tooltip.displayName = "Tooltip";
9506
9559
 
9507
9560
  // src/components/Input/Input.tsx
9508
- var import_react38 = require("react");
9561
+ var import_react39 = require("react");
9509
9562
  var import_styled_components49 = __toESM(require("styled-components"));
9510
9563
  var import_type_guards31 = require("@wistia/type-guards");
9511
9564
 
9512
- // src/css/sharedStyles/inputCssVariables.ts
9565
+ // src/css/inputCss.ts
9513
9566
  var import_styled_components48 = require("styled-components");
9514
- var inputCssVariables = import_styled_components48.css`
9567
+ var inputCss = import_styled_components48.css`
9515
9568
  /* Colors */
9516
9569
  --wui-input-color-bg: var(--wui-color-bg-surface);
9517
9570
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -9539,7 +9592,7 @@ var inputCssVariables = import_styled_components48.css`
9539
9592
  // src/components/Input/Input.tsx
9540
9593
  var import_jsx_runtime224 = require("react/jsx-runtime");
9541
9594
  var inputStyles = import_styled_components49.css`
9542
- ${inputCssVariables}
9595
+ ${inputCss}
9543
9596
  input,
9544
9597
  textarea {
9545
9598
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
@@ -9640,7 +9693,7 @@ var StyledInputContainer = import_styled_components49.default.div`
9640
9693
  padding-right: 32px;
9641
9694
  }
9642
9695
  `;
9643
- var Input = (0, import_react38.forwardRef)(
9696
+ var Input = (0, import_react39.forwardRef)(
9644
9697
  ({
9645
9698
  fullWidth = true,
9646
9699
  monospace = false,
@@ -9650,7 +9703,7 @@ var Input = (0, import_react38.forwardRef)(
9650
9703
  rightIcon,
9651
9704
  ...props
9652
9705
  }, externalRef) => {
9653
- const internalRef = (0, import_react38.useRef)();
9706
+ const internalRef = (0, import_react39.useRef)();
9654
9707
  const ref = (
9655
9708
  // eslint-disable-next-line react-compiler/react-compiler
9656
9709
  (0, import_type_guards31.isNotNil)(externalRef) && (0, import_type_guards31.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
@@ -9660,14 +9713,14 @@ var Input = (0, import_react38.forwardRef)(
9660
9713
  leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Icon, { type: "search" });
9661
9714
  }
9662
9715
  if ((0, import_type_guards31.isNotNil)(leftIconToDisplay)) {
9663
- leftIconToDisplay = (0, import_react38.cloneElement)(leftIconToDisplay, {
9716
+ leftIconToDisplay = (0, import_react39.cloneElement)(leftIconToDisplay, {
9664
9717
  size: "md",
9665
9718
  className: "wui-input-left-icon"
9666
9719
  });
9667
9720
  }
9668
9721
  let rightIconToDisplay = rightIcon;
9669
9722
  if ((0, import_type_guards31.isNotNil)(rightIconToDisplay)) {
9670
- rightIconToDisplay = (0, import_react38.cloneElement)(rightIconToDisplay, {
9723
+ rightIconToDisplay = (0, import_react39.cloneElement)(rightIconToDisplay, {
9671
9724
  size: "md",
9672
9725
  className: "wui-input-right-icon"
9673
9726
  });
@@ -9759,11 +9812,11 @@ var EditableHeading = ({
9759
9812
  __forceEditing = false,
9760
9813
  editingDisabled = false
9761
9814
  }) => {
9762
- const [isEditing, setIsEditing] = (0, import_react39.useState)(false);
9763
- const [value, setValue] = (0, import_react39.useState)(children);
9764
- const [previousValue, setPreviousValue] = (0, import_react39.useState)(children);
9765
- const [headingHeight, setHeadingHeight] = (0, import_react39.useState)("60");
9766
- const headingRef = (0, import_react39.useRef)(null);
9815
+ const [isEditing, setIsEditing] = (0, import_react40.useState)(false);
9816
+ const [value, setValue] = (0, import_react40.useState)(children);
9817
+ const [previousValue, setPreviousValue] = (0, import_react40.useState)(children);
9818
+ const [headingHeight, setHeadingHeight] = (0, import_react40.useState)("60");
9819
+ const headingRef = (0, import_react40.useRef)(null);
9767
9820
  const handleSetEditing = (editing) => {
9768
9821
  if (editingDisabled) return;
9769
9822
  if (editing && headingRef.current) {
@@ -9842,7 +9895,7 @@ var EditableHeading = ({
9842
9895
  };
9843
9896
 
9844
9897
  // src/components/Form/Form.tsx
9845
- var import_react40 = require("react");
9898
+ var import_react41 = require("react");
9846
9899
  var import_styled_components51 = __toESM(require("styled-components"));
9847
9900
  var import_type_guards32 = require("@wistia/type-guards");
9848
9901
  var import_jsx_runtime226 = require("react/jsx-runtime");
@@ -9852,7 +9905,7 @@ var StyledForm = import_styled_components51.default.form`
9852
9905
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9853
9906
  align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9854
9907
  `;
9855
- var FormContext = (0, import_react40.createContext)({
9908
+ var FormContext = (0, import_react41.createContext)({
9856
9909
  values: {},
9857
9910
  errors: {},
9858
9911
  hasSubmitted: false,
@@ -9868,11 +9921,11 @@ var FormComponent = ({
9868
9921
  fullWidth = false,
9869
9922
  ...props
9870
9923
  }, forwardedRef) => {
9871
- const [errors, setErrors] = (0, import_react40.useState)({});
9872
- const [hasSubmitted, setHasSubmitted] = (0, import_react40.useState)(false);
9873
- const innerRef = (0, import_react40.useRef)();
9924
+ const [errors, setErrors] = (0, import_react41.useState)({});
9925
+ const [hasSubmitted, setHasSubmitted] = (0, import_react41.useState)(false);
9926
+ const innerRef = (0, import_react41.useRef)();
9874
9927
  const ref = forwardedRef ?? innerRef;
9875
- const autoId = (0, import_react40.useId)();
9928
+ const autoId = (0, import_react41.useId)();
9876
9929
  const id = props.id ?? autoId;
9877
9930
  const handleValidate = (nextFormData) => {
9878
9931
  const nextData = Object.fromEntries(nextFormData.entries());
@@ -9914,7 +9967,7 @@ var FormComponent = ({
9914
9967
  void action(null);
9915
9968
  }
9916
9969
  };
9917
- const context = (0, import_react40.useMemo)(() => {
9970
+ const context = (0, import_react41.useMemo)(() => {
9918
9971
  return {
9919
9972
  values,
9920
9973
  errors,
@@ -9943,15 +9996,15 @@ var FormComponent = ({
9943
9996
  );
9944
9997
  };
9945
9998
  FormComponent.displayName = "Form";
9946
- var Form = (0, import_react40.forwardRef)(FormComponent);
9999
+ var Form = (0, import_react41.forwardRef)(FormComponent);
9947
10000
 
9948
10001
  // src/components/Form/useFormState.tsx
9949
- var import_react41 = require("react");
10002
+ var import_react42 = require("react");
9950
10003
  var useFormState = (action, initialData = {}) => {
9951
- const [data, setData] = (0, import_react41.useState)(initialData);
9952
- const [isPending, setIsPending] = (0, import_react41.useState)(false);
9953
- const [error, setError] = (0, import_react41.useState)(null);
9954
- const formAction = (0, import_react41.useCallback)(
10004
+ const [data, setData] = (0, import_react42.useState)(initialData);
10005
+ const [isPending, setIsPending] = (0, import_react42.useState)(false);
10006
+ const [error, setError] = (0, import_react42.useState)(null);
10007
+ const formAction = (0, import_react42.useCallback)(
9955
10008
  async (nextFormData) => {
9956
10009
  if (nextFormData === null) {
9957
10010
  setData(initialData);
@@ -9982,15 +10035,15 @@ var useFormState = (action, initialData = {}) => {
9982
10035
  };
9983
10036
 
9984
10037
  // src/components/Form/FormErrorSummary.tsx
9985
- var import_react42 = require("react");
10038
+ var import_react43 = require("react");
9986
10039
  var import_type_guards33 = require("@wistia/type-guards");
9987
10040
  var import_jsx_runtime227 = require("react/jsx-runtime");
9988
10041
  var ErrorItem = ({ name, error, formId }) => {
9989
10042
  return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9990
10043
  };
9991
10044
  var FormErrorSummary = ({ description }) => {
9992
- const ref = (0, import_react42.useRef)(null);
9993
- const { formId, errors, hasSubmitted } = (0, import_react42.useContext)(FormContext);
10045
+ const ref = (0, import_react43.useRef)(null);
10046
+ const { formId, errors, hasSubmitted } = (0, import_react43.useContext)(FormContext);
9994
10047
  const isValid = Object.keys(errors).length === 0;
9995
10048
  if (isValid || !hasSubmitted) {
9996
10049
  return null;
@@ -10020,7 +10073,7 @@ var FormErrorSummary = ({ description }) => {
10020
10073
  };
10021
10074
 
10022
10075
  // src/components/FormField/FormField.tsx
10023
- var import_react43 = require("react");
10076
+ var import_react44 = require("react");
10024
10077
  var import_styled_components53 = __toESM(require("styled-components"));
10025
10078
  var import_type_guards34 = require("@wistia/type-guards");
10026
10079
 
@@ -10159,8 +10212,8 @@ var FormField = ({
10159
10212
  value,
10160
10213
  ...props
10161
10214
  }) => {
10162
- const formState = (0, import_react43.useContext)(FormContext);
10163
- const checkboxGroup = (0, import_react43.useContext)(CheckboxGroupContext);
10215
+ const formState = (0, import_react44.useContext)(FormContext);
10216
+ const checkboxGroup = (0, import_react44.useContext)(CheckboxGroupContext);
10164
10217
  const defaultValue = formState.values[name];
10165
10218
  const isIntegratedLabel = children.type === Checkbox;
10166
10219
  const computedId = id ?? `${formState.formId}-${name}`;
@@ -10198,7 +10251,7 @@ var FormField = ({
10198
10251
  "aria-invalid": (0, import_type_guards34.isNotNil)(error)
10199
10252
  };
10200
10253
  }
10201
- import_react43.Children.only(children);
10254
+ import_react44.Children.only(children);
10202
10255
  return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
10203
10256
  StyledFormField,
10204
10257
  {
@@ -10207,7 +10260,7 @@ var FormField = ({
10207
10260
  children: [
10208
10261
  !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Label, { htmlFor: computedId, children: label }),
10209
10262
  (0, import_type_guards34.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
10210
- (0, import_react43.cloneElement)(children, childProps),
10263
+ (0, import_react44.cloneElement)(children, childProps),
10211
10264
  (0, import_type_guards34.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, { children: [
10212
10265
  /* @__PURE__ */ (0, import_jsx_runtime229.jsx)("div", {}),
10213
10266
  /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
@@ -10225,11 +10278,11 @@ var FormField = ({
10225
10278
  FormField.displayName = "FormField";
10226
10279
 
10227
10280
  // src/components/FormGroup/RadioGroup.tsx
10228
- var import_react44 = require("react");
10281
+ var import_react45 = require("react");
10229
10282
  var import_jsx_runtime230 = require("react/jsx-runtime");
10230
- var RadioGroupContext = (0, import_react44.createContext)(null);
10283
+ var RadioGroupContext = (0, import_react45.createContext)(null);
10231
10284
  var useRadioGroup = () => {
10232
- return (0, import_react44.useContext)(RadioGroupContext);
10285
+ return (0, import_react45.useContext)(RadioGroupContext);
10233
10286
  };
10234
10287
  var RadioGroup = ({
10235
10288
  children,
@@ -10238,7 +10291,7 @@ var RadioGroup = ({
10238
10291
  value,
10239
10292
  ...props
10240
10293
  }) => {
10241
- const context = (0, import_react44.useMemo)(() => {
10294
+ const context = (0, import_react45.useMemo)(() => {
10242
10295
  return {
10243
10296
  name,
10244
10297
  onChange
@@ -10249,7 +10302,7 @@ var RadioGroup = ({
10249
10302
  RadioGroup.displayName = "RadioGroup";
10250
10303
 
10251
10304
  // src/components/IconButton/IconButton.tsx
10252
- var import_react45 = require("react");
10305
+ var import_react46 = require("react");
10253
10306
  var import_styled_components54 = __toESM(require("styled-components"));
10254
10307
  var import_jsx_runtime231 = require("react/jsx-runtime");
10255
10308
  var StyledButton2 = (0, import_styled_components54.default)(Button)`
@@ -10266,7 +10319,7 @@ var StyledButton2 = (0, import_styled_components54.default)(Button)`
10266
10319
  align-items: center;
10267
10320
  line-height: 1;
10268
10321
  `;
10269
- var IconButton = (0, import_react45.forwardRef)(
10322
+ var IconButton = (0, import_react46.forwardRef)(
10270
10323
  ({ children, label, size = "md", ...props }, ref) => {
10271
10324
  const responsiveSize = useResponsiveProp(size);
10272
10325
  return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
@@ -10277,7 +10330,7 @@ var IconButton = (0, import_react45.forwardRef)(
10277
10330
  "aria-label": label,
10278
10331
  "data-wistia-ui-icon-button": true,
10279
10332
  size: responsiveSize,
10280
- children: (0, import_react45.cloneElement)(import_react45.Children.only(children), {
10333
+ children: (0, import_react46.cloneElement)(import_react46.Children.only(children), {
10281
10334
  size: responsiveSize
10282
10335
  })
10283
10336
  }
@@ -10288,7 +10341,7 @@ IconButton.displayName = "IconButton";
10288
10341
 
10289
10342
  // src/components/InputClickToCopy/InputClickToCopy.tsx
10290
10343
  var import_styled_components55 = __toESM(require("styled-components"));
10291
- var import_react46 = require("react");
10344
+ var import_react47 = require("react");
10292
10345
  var import_type_guards35 = require("@wistia/type-guards");
10293
10346
  var import_jsx_runtime232 = require("react/jsx-runtime");
10294
10347
  var StyledInput2 = (0, import_styled_components55.default)(Input)`
@@ -10301,10 +10354,10 @@ var StyledInput2 = (0, import_styled_components55.default)(Input)`
10301
10354
  }
10302
10355
  `;
10303
10356
  var COPY_SUCCESS_DURATION = 2e3;
10304
- var InputClickToCopy = (0, import_react46.forwardRef)(
10357
+ var InputClickToCopy = (0, import_react47.forwardRef)(
10305
10358
  ({ value, onCopy, ...props }, ref) => {
10306
- const [isCopied, setIsCopied] = (0, import_react46.useState)(false);
10307
- (0, import_react46.useEffect)(() => {
10359
+ const [isCopied, setIsCopied] = (0, import_react47.useState)(false);
10360
+ (0, import_react47.useEffect)(() => {
10308
10361
  if (isCopied) {
10309
10362
  const timeout = setTimeout(() => {
10310
10363
  setIsCopied(false);
@@ -10459,20 +10512,178 @@ var KeyboardShortcut = ({
10459
10512
  );
10460
10513
  KeyboardShortcut.displayName = "KeyboardShortcut";
10461
10514
 
10462
- // src/components/Menu/Menu.tsx
10515
+ // src/components/List/List.tsx
10516
+ var import_type_guards38 = require("@wistia/type-guards");
10517
+ var import_styled_components58 = __toESM(require("styled-components"));
10518
+
10519
+ // src/components/List/ListItem.tsx
10463
10520
  var import_styled_components57 = __toESM(require("styled-components"));
10464
- var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
10465
10521
  var import_type_guards37 = require("@wistia/type-guards");
10466
- var import_react48 = require("react");
10522
+ var import_jsx_runtime234 = require("react/jsx-runtime");
10523
+ var ListItemComponent = import_styled_components57.default.li`
10524
+ margin-bottom: var(--wui-space-02);
10525
+ `;
10526
+ var ListItem = ({ children }) => {
10527
+ if ((0, import_type_guards37.isNil)(children)) {
10528
+ return null;
10529
+ }
10530
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(ListItemComponent, { children });
10531
+ };
10532
+ ListItem.displayName = "ListItem";
10533
+
10534
+ // src/components/List/List.tsx
10535
+ var import_jsx_runtime235 = require("react/jsx-runtime");
10536
+ var spacesStyle = import_styled_components58.css`
10537
+ overflow: hidden;
10538
+ padding-left: 0;
10539
+ vertical-align: bottom;
10540
+
10541
+ li {
10542
+ display: block;
10543
+ float: left;
10544
+
10545
+ &::after {
10546
+ content: ' ';
10547
+ padding-right: var(--wui-space-03);
10548
+ }
10549
+
10550
+ &:last-child {
10551
+ &::after {
10552
+ content: '' !important;
10553
+ padding-right: 0;
10554
+ }
10555
+ }
10556
+ }
10557
+ `;
10558
+ var commasStyle = import_styled_components58.css`
10559
+ ${spacesStyle};
10560
+
10561
+ li {
10562
+ &::after {
10563
+ content: ',' !important;
10564
+ padding-right: var(--wui-space-01);
10565
+ }
10566
+ }
10567
+ `;
10568
+ var slashesStyle = import_styled_components58.css`
10569
+ ${spacesStyle};
10570
+
10571
+ li {
10572
+ &::after {
10573
+ content: '/' !important;
10574
+ padding-left: var(--wui-space-01);
10575
+ padding-right: var(--wui-space-01);
10576
+ }
10577
+ }
10578
+ `;
10579
+ var breadcrumbsStyle = import_styled_components58.css`
10580
+ ${spacesStyle};
10581
+
10582
+ li {
10583
+ &::after {
10584
+ content: '>' !important;
10585
+ padding-left: var(--wui-space-01);
10586
+ padding-right: var(--wui-space-01);
10587
+ }
10588
+ }
10589
+ `;
10590
+ var unbulletedStyle = import_styled_components58.css`
10591
+ list-style: none;
10592
+ padding-left: 0;
10593
+ `;
10594
+ var ListComponent = import_styled_components58.default.ul`
10595
+ list-style-position: outside;
10596
+ margin: 0 0 var(--wui-space-01);
10597
+ padding: 0 0 0 var(--wui-space-04);
10598
+ ${({ variant }) => variant === "unbulleted" && unbulletedStyle};
10599
+ ${({ variant }) => variant === "spaces" && spacesStyle};
10600
+ ${({ variant }) => variant === "commas" && commasStyle};
10601
+ ${({ variant }) => variant === "slashes" && slashesStyle};
10602
+ ${({ variant }) => variant === "breadcrumbs" && breadcrumbsStyle};
10603
+
10604
+ > li:last-child {
10605
+ margin-bottom: 0;
10606
+ }
10607
+
10608
+ ul,
10609
+ ol {
10610
+ margin-top: var(--wui-space-01);
10611
+ }
10612
+
10613
+ /* nested lists should not have bottom margins because their container <li> will have one */
10614
+ li ul,
10615
+ li ol {
10616
+ margin-bottom: 0;
10617
+ }
10618
+ `;
10619
+ var renderListComponent = (listItems, variant, { ...otherProps }) => {
10620
+ const elementType = variant === "ordered" ? "ol" : "ul";
10621
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10622
+ ListComponent,
10623
+ {
10624
+ as: elementType,
10625
+ variant,
10626
+ ...otherProps,
10627
+ children: listItems
10628
+ }
10629
+ );
10630
+ };
10631
+ var renderListFromArray = (listItems, variant, otherProps) => {
10632
+ let itemCount = 0;
10633
+ const items = listItems.map((listItem, i) => {
10634
+ const item = listItem;
10635
+ const nextItem = listItems[i + 1];
10636
+ const key = `item-${itemCount += 1}`;
10637
+ if (Array.isArray(nextItem)) {
10638
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(ListItem, { children: [
10639
+ item,
10640
+ renderListFromArray(nextItem, variant, otherProps)
10641
+ ] }, key);
10642
+ }
10643
+ if (Array.isArray(item)) {
10644
+ return null;
10645
+ }
10646
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(ListItem, { children: item }, key);
10647
+ });
10648
+ return renderListComponent(items, variant, otherProps);
10649
+ };
10650
+ var List = ({
10651
+ children,
10652
+ items,
10653
+ variant,
10654
+ ...otherProps
10655
+ }) => {
10656
+ const listVariant = variant ?? "bullets";
10657
+ if ((0, import_type_guards38.isNotNil)(children)) {
10658
+ if (Array.isArray(children) && !children.length) {
10659
+ return null;
10660
+ }
10661
+ return renderListComponent(children, listVariant, otherProps);
10662
+ }
10663
+ if ((0, import_type_guards38.isNotNil)(items)) {
10664
+ if (!items.length) {
10665
+ return null;
10666
+ }
10667
+ return renderListFromArray(items, listVariant, otherProps);
10668
+ }
10669
+ return null;
10670
+ };
10671
+ List.displayName = "List";
10672
+
10673
+ // src/components/Menu/Menu.tsx
10674
+ var import_styled_components59 = __toESM(require("styled-components"));
10675
+ var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
10676
+ var import_type_guards39 = require("@wistia/type-guards");
10677
+ var import_react49 = require("react");
10467
10678
 
10468
10679
  // src/components/Menu/MenuContext.tsx
10469
- var import_react47 = require("react");
10470
- var MenuContext = (0, import_react47.createContext)({ compact: false });
10471
- var useMenuContext = () => (0, import_react47.useContext)(MenuContext);
10680
+ var import_react48 = require("react");
10681
+ var MenuContext = (0, import_react48.createContext)({ compact: false });
10682
+ var useMenuContext = () => (0, import_react48.useContext)(MenuContext);
10472
10683
 
10473
10684
  // src/components/Menu/Menu.tsx
10474
- var import_jsx_runtime234 = require("react/jsx-runtime");
10475
- var open = import_styled_components57.keyframes`
10685
+ var import_jsx_runtime236 = require("react/jsx-runtime");
10686
+ var open = import_styled_components59.keyframes`
10476
10687
  from {
10477
10688
  opacity: 0;
10478
10689
  transform: scale(.97) translateY(-8px);
@@ -10482,7 +10693,7 @@ var open = import_styled_components57.keyframes`
10482
10693
  transform: scale(1);
10483
10694
  }
10484
10695
  `;
10485
- var close = import_styled_components57.keyframes`
10696
+ var close = import_styled_components59.keyframes`
10486
10697
  from {
10487
10698
  opacity: 1;
10488
10699
  transform: scale(1);
@@ -10492,7 +10703,7 @@ var close = import_styled_components57.keyframes`
10492
10703
  transform: scale(.97) translateY(-8px);
10493
10704
  }
10494
10705
  `;
10495
- var menuItemCss = import_styled_components57.css`
10706
+ var menuItemCss = import_styled_components59.css`
10496
10707
  --menu-label-description-gap: var(--wui-space-01);
10497
10708
  --menu-item-inner-gap: var(--wui-space-03);
10498
10709
  --menu-item-left-icon-size: 24px;
@@ -10503,7 +10714,7 @@ var menuItemCss = import_styled_components57.css`
10503
10714
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
10504
10715
  --menu-divider-margin: var(--wui-space-02);
10505
10716
  `;
10506
- var compactMenuItemCss = import_styled_components57.css`
10717
+ var compactMenuItemCss = import_styled_components59.css`
10507
10718
  --menu-label-description-gap: 0;
10508
10719
  --menu-item-inner-gap: var(--wui-space-02);
10509
10720
  --menu-item-left-icon-size: 16px;
@@ -10514,7 +10725,7 @@ var compactMenuItemCss = import_styled_components57.css`
10514
10725
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
10515
10726
  --menu-divider-margin: var(--wui-space-01);
10516
10727
  `;
10517
- var menuContentCss = import_styled_components57.css`
10728
+ var menuContentCss = import_styled_components59.css`
10518
10729
  --menu-font-family: var(--wui-typography-family-default);
10519
10730
  --menu-bg: var(--wui-color-bg-surface);
10520
10731
  --menu-shadow: var(--wui-elevation-01);
@@ -10556,7 +10767,7 @@ var menuContentCss = import_styled_components57.css`
10556
10767
  margin: var(--menu-divider-margin) 0;
10557
10768
  }
10558
10769
  `;
10559
- var MenuContent = (0, import_styled_components57.default)(import_react_dropdown_menu.DropdownMenuContent)`
10770
+ var MenuContent = (0, import_styled_components59.default)(import_react_dropdown_menu.DropdownMenuContent)`
10560
10771
  ${menuContentCss}
10561
10772
  `;
10562
10773
  var Menu = ({
@@ -10572,9 +10783,9 @@ var Menu = ({
10572
10783
  onInteractOutside,
10573
10784
  ...props
10574
10785
  }) => {
10575
- const contextValue = (0, import_react48.useMemo)(() => ({ compact }), [compact]);
10786
+ const contextValue = (0, import_react49.useMemo)(() => ({ compact }), [compact]);
10576
10787
  let controlProps = {
10577
- ...(0, import_type_guards37.isNotNil)(onOpenChange) && (0, import_type_guards37.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
10788
+ ...(0, import_type_guards39.isNotNil)(onOpenChange) && (0, import_type_guards39.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
10578
10789
  };
10579
10790
  if (disabled) {
10580
10791
  controlProps = {
@@ -10582,24 +10793,24 @@ var Menu = ({
10582
10793
  onOpenChange: () => null
10583
10794
  };
10584
10795
  }
10585
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
10796
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
10586
10797
  import_react_dropdown_menu.DropdownMenu,
10587
10798
  {
10588
10799
  modal: false,
10589
10800
  ...controlProps,
10590
10801
  children: [
10591
- /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards37.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
10802
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards39.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10592
10803
  Button,
10593
10804
  {
10594
10805
  "aria-expanded": isOpen,
10595
10806
  disabled,
10596
10807
  forceState: isOpen ? "active" : void 0,
10597
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Icon, { type: "caret-down" }),
10808
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Icon, { type: "caret-down" }),
10598
10809
  ...triggerProps,
10599
10810
  children: label
10600
10811
  }
10601
10812
  ) }),
10602
- /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
10813
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10603
10814
  MenuContent,
10604
10815
  {
10605
10816
  ...props,
@@ -10620,19 +10831,19 @@ var Menu = ({
10620
10831
  Menu.displayName = "Menu";
10621
10832
 
10622
10833
  // src/components/Menu/MenuLabel.tsx
10623
- var import_styled_components58 = __toESM(require("styled-components"));
10834
+ var import_styled_components60 = __toESM(require("styled-components"));
10624
10835
  var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
10625
- var import_jsx_runtime235 = require("react/jsx-runtime");
10626
- var StyledMenuLabel = (0, import_styled_components58.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
10836
+ var import_jsx_runtime237 = require("react/jsx-runtime");
10837
+ var StyledMenuLabel = (0, import_styled_components60.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
10627
10838
  padding: var(--wui-space-02);
10628
10839
  `;
10629
10840
  var MenuLabel = ({ children, ...props }) => {
10630
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10841
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10631
10842
  StyledMenuLabel,
10632
10843
  {
10633
10844
  asChild: true,
10634
10845
  ...props,
10635
- children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10846
+ children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10636
10847
  Heading,
10637
10848
  {
10638
10849
  renderAs: "span",
@@ -10647,17 +10858,17 @@ var MenuLabel = ({ children, ...props }) => {
10647
10858
  MenuLabel.displayName = "MenuLabel";
10648
10859
 
10649
10860
  // src/components/Menu/SubMenu.tsx
10650
- var import_react50 = require("react");
10651
- var import_styled_components61 = __toESM(require("styled-components"));
10861
+ var import_react51 = require("react");
10862
+ var import_styled_components63 = __toESM(require("styled-components"));
10652
10863
  var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
10653
- var import_type_guards39 = require("@wistia/type-guards");
10864
+ var import_type_guards41 = require("@wistia/type-guards");
10654
10865
 
10655
10866
  // src/components/Menu/MenuItemButton.tsx
10656
- var import_react49 = require("react");
10657
- var import_styled_components59 = __toESM(require("styled-components"));
10658
- var import_type_guards38 = require("@wistia/type-guards");
10659
- var import_jsx_runtime236 = require("react/jsx-runtime");
10660
- var StyledButton3 = (0, import_styled_components59.default)(Button)`
10867
+ var import_react50 = require("react");
10868
+ var import_styled_components61 = __toESM(require("styled-components"));
10869
+ var import_type_guards40 = require("@wistia/type-guards");
10870
+ var import_jsx_runtime238 = require("react/jsx-runtime");
10871
+ var StyledButton3 = (0, import_styled_components61.default)(Button)`
10661
10872
  ${({ colorScheme }) => getColorScheme(colorScheme)};
10662
10873
 
10663
10874
  display: flex;
@@ -10696,7 +10907,7 @@ var StyledButton3 = (0, import_styled_components59.default)(Button)`
10696
10907
  padding-left: var(--wui-space-04);
10697
10908
  }
10698
10909
  `;
10699
- var StyledLeftIconContainer = import_styled_components59.default.div`
10910
+ var StyledLeftIconContainer = import_styled_components61.default.div`
10700
10911
  height: var(--menu-item-left-icon-size);
10701
10912
  width: var(--menu-item-left-icon-size);
10702
10913
 
@@ -10707,7 +10918,7 @@ var StyledLeftIconContainer = import_styled_components59.default.div`
10707
10918
  }
10708
10919
  }
10709
10920
  `;
10710
- var StyledRightIconContainer = import_styled_components59.default.div`
10921
+ var StyledRightIconContainer = import_styled_components61.default.div`
10711
10922
  height: var(--menu-item-right-icon-size);
10712
10923
  width: var(--menu-item-right-icon-size);
10713
10924
 
@@ -10718,28 +10929,28 @@ var StyledRightIconContainer = import_styled_components59.default.div`
10718
10929
  }
10719
10930
  }
10720
10931
  `;
10721
- var StyledLabelAndDescriptionContainer = import_styled_components59.default.div`
10932
+ var StyledLabelAndDescriptionContainer = import_styled_components61.default.div`
10722
10933
  display: flex;
10723
10934
  flex-direction: column;
10724
10935
  gap: var(--menu-label-description-gap);
10725
10936
  flex-basis: 100%;
10726
10937
  `;
10727
- var StyledBadgeContainer = import_styled_components59.default.div`
10938
+ var StyledBadgeContainer = import_styled_components61.default.div`
10728
10939
  align-self: start;
10729
10940
  justify-self: end;
10730
10941
  font-size: var(--wui-typography-label-4-size);
10731
10942
  color: var(--wui-color-text-secondary);
10732
10943
  `;
10733
- var MenuItemButton = (0, import_react49.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
10944
+ var MenuItemButton = (0, import_react50.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
10734
10945
  let { colorScheme, badge } = props;
10735
10946
  if (appearance === "dangerous") {
10736
- if ((0, import_type_guards38.isNotUndefined)(colorScheme)) {
10947
+ if ((0, import_type_guards40.isNotUndefined)(colorScheme)) {
10737
10948
  console.warn("colorScheme prop is ignored when appearance is dangerous");
10738
10949
  }
10739
10950
  colorScheme = "error";
10740
10951
  }
10741
10952
  if (appearance === "gated") {
10742
- badge = /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
10953
+ badge = /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
10743
10954
  Icon,
10744
10955
  {
10745
10956
  colorScheme: "purple",
@@ -10751,7 +10962,7 @@ var MenuItemButton = (0, import_react49.forwardRef)(({ children, appearance, com
10751
10962
  }
10752
10963
  );
10753
10964
  }
10754
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
10965
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
10755
10966
  StyledButton3,
10756
10967
  {
10757
10968
  ...props,
@@ -10761,10 +10972,10 @@ var MenuItemButton = (0, import_react49.forwardRef)(({ children, appearance, com
10761
10972
  fullWidth: true,
10762
10973
  unstyled: true,
10763
10974
  children: [
10764
- props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10765
- /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(StyledLabelAndDescriptionContainer, { children }),
10766
- (0, import_type_guards38.isNotNil)(badge) || (0, import_type_guards38.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
10767
- props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
10975
+ props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10976
+ /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StyledLabelAndDescriptionContainer, { children }),
10977
+ (0, import_type_guards40.isNotNil)(badge) || (0, import_type_guards40.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
10978
+ props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
10768
10979
  ]
10769
10980
  }
10770
10981
  );
@@ -10772,15 +10983,15 @@ var MenuItemButton = (0, import_react49.forwardRef)(({ children, appearance, com
10772
10983
  MenuItemButton.displayName = "MenuItemButton";
10773
10984
 
10774
10985
  // src/components/Menu/MenuItemLabelDescription.tsx
10775
- var import_styled_components60 = __toESM(require("styled-components"));
10776
- var import_jsx_runtime237 = require("react/jsx-runtime");
10777
- var StyledMenuItemLabel = import_styled_components60.default.span``;
10778
- var StyledMenuItemDescription = (0, import_styled_components60.default)(Text)``;
10986
+ var import_styled_components62 = __toESM(require("styled-components"));
10987
+ var import_jsx_runtime239 = require("react/jsx-runtime");
10988
+ var StyledMenuItemLabel = import_styled_components62.default.span``;
10989
+ var StyledMenuItemDescription = (0, import_styled_components62.default)(Text)``;
10779
10990
  var MenuItemLabel = ({ children }) => {
10780
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(StyledMenuItemLabel, { children });
10991
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(StyledMenuItemLabel, { children });
10781
10992
  };
10782
10993
  var MenuItemDescription = ({ children }) => {
10783
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10994
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10784
10995
  StyledMenuItemDescription,
10785
10996
  {
10786
10997
  prominence: "secondary",
@@ -10791,18 +11002,18 @@ var MenuItemDescription = ({ children }) => {
10791
11002
  };
10792
11003
 
10793
11004
  // src/components/Menu/SubMenu.tsx
10794
- var import_jsx_runtime238 = require("react/jsx-runtime");
10795
- var SubMenuContent = (0, import_styled_components61.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
11005
+ var import_jsx_runtime240 = require("react/jsx-runtime");
11006
+ var SubMenuContent = (0, import_styled_components63.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
10796
11007
  ${menuContentCss}
10797
11008
 
10798
11009
  ${mq.smAndDown} {
10799
11010
  transform: translateX(-100%) !important;
10800
11011
  }
10801
11012
  `;
10802
- var StyledMobileSubMenuItems = import_styled_components61.default.div`
11013
+ var StyledMobileSubMenuItems = import_styled_components63.default.div`
10803
11014
  margin-left: var(--wui-space-04);
10804
11015
  `;
10805
- var StyledSubTrigger = (0, import_styled_components61.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
11016
+ var StyledSubTrigger = (0, import_styled_components63.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
10806
11017
  outline: none;
10807
11018
 
10808
11019
  &[data-state='open'],
@@ -10813,12 +11024,12 @@ var StyledSubTrigger = (0, import_styled_components61.default)(import_react_drop
10813
11024
  var SubMenuTrigger = ({ icon, ...props }) => {
10814
11025
  const { isSmAndUp } = useMq();
10815
11026
  const Trigger4 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
10816
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
11027
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10817
11028
  MenuItemButton,
10818
11029
  {
10819
11030
  ...props,
10820
11031
  leftIcon: icon,
10821
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Icon, { type: "caret-right" })
11032
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon, { type: "caret-right" })
10822
11033
  }
10823
11034
  ) });
10824
11035
  };
@@ -10830,16 +11041,16 @@ var SubMenu = ({
10830
11041
  ...props
10831
11042
  }) => {
10832
11043
  const { isSmAndUp } = useMq();
10833
- const [isExpanded, setIsExpanded] = (0, import_react50.useState)(false);
11044
+ const [isExpanded, setIsExpanded] = (0, import_react51.useState)(false);
10834
11045
  const { compact } = useMenuContext();
10835
- return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
10836
- /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(SubMenuTrigger, { ...props, children: [
10837
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(MenuItemLabel, { children: label }),
10838
- (0, import_type_guards39.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(MenuItemDescription, { children: description }) : null
11046
+ return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
11047
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(SubMenuTrigger, { ...props, children: [
11048
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(MenuItemLabel, { children: label }),
11049
+ (0, import_type_guards41.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(MenuItemDescription, { children: description }) : null
10839
11050
  ] }),
10840
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(SubMenuContent, { $compact: compact, children }) })
10841
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
10842
- /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
11051
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(SubMenuContent, { $compact: compact, children }) })
11052
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
11053
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
10843
11054
  SubMenuTrigger,
10844
11055
  {
10845
11056
  ...props,
@@ -10848,28 +11059,28 @@ var SubMenu = ({
10848
11059
  setIsExpanded((prev) => !prev);
10849
11060
  },
10850
11061
  children: [
10851
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(MenuItemLabel, { children: label }),
10852
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(MenuItemDescription, { children: description })
11062
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(MenuItemLabel, { children: label }),
11063
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(MenuItemDescription, { children: description })
10853
11064
  ]
10854
11065
  }
10855
11066
  ),
10856
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
11067
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10857
11068
  ] });
10858
11069
  };
10859
11070
  SubMenu.displayName = "SubMenu";
10860
11071
 
10861
11072
  // src/components/Menu/MenuItem.tsx
10862
- var import_react51 = require("react");
11073
+ var import_react52 = require("react");
10863
11074
  var import_react_dropdown_menu4 = require("@radix-ui/react-dropdown-menu");
10864
- var import_jsx_runtime239 = require("react/jsx-runtime");
10865
- var MenuItem = (0, import_react51.forwardRef)(
11075
+ var import_jsx_runtime241 = require("react/jsx-runtime");
11076
+ var MenuItem = (0, import_react52.forwardRef)(
10866
11077
  ({ onSelect = () => null, ...props }, ref) => {
10867
- return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
11078
+ return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10868
11079
  import_react_dropdown_menu4.DropdownMenuItem,
10869
11080
  {
10870
11081
  asChild: true,
10871
11082
  onSelect,
10872
- children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
11083
+ children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10873
11084
  MenuItemButton,
10874
11085
  {
10875
11086
  ...props,
@@ -10885,19 +11096,19 @@ MenuItem.displayName = "MenuItem";
10885
11096
 
10886
11097
  // src/components/Menu/MenuRadioGroup.tsx
10887
11098
  var import_react_dropdown_menu5 = require("@radix-ui/react-dropdown-menu");
10888
- var import_jsx_runtime240 = require("react/jsx-runtime");
11099
+ var import_jsx_runtime242 = require("react/jsx-runtime");
10889
11100
  var MenuRadioGroup = ({ children, ...props }) => {
10890
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children });
11101
+ return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children });
10891
11102
  };
10892
11103
  MenuRadioGroup.displayName = "MenuRadioGroup";
10893
11104
 
10894
11105
  // src/components/Menu/RadioMenuItem.tsx
10895
11106
  var import_react_dropdown_menu6 = require("@radix-ui/react-dropdown-menu");
10896
- var import_jsx_runtime241 = require("react/jsx-runtime");
11107
+ var import_jsx_runtime243 = require("react/jsx-runtime");
10897
11108
  var RadioMenuItem = ({
10898
11109
  onSelect,
10899
11110
  value,
10900
- indicator = /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
11111
+ indicator = /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
10901
11112
  Icon,
10902
11113
  {
10903
11114
  size: "sm",
@@ -10907,17 +11118,17 @@ var RadioMenuItem = ({
10907
11118
  ...props
10908
11119
  }) => {
10909
11120
  const extraProps = onSelect ? { onSelect } : {};
10910
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
11121
+ return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
10911
11122
  import_react_dropdown_menu6.DropdownMenuRadioItem,
10912
11123
  {
10913
11124
  ...extraProps,
10914
11125
  asChild: true,
10915
11126
  value,
10916
- children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
11127
+ children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
10917
11128
  MenuItemButton,
10918
11129
  {
10919
11130
  ...props,
10920
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
11131
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
10921
11132
  }
10922
11133
  )
10923
11134
  }
@@ -10927,10 +11138,10 @@ RadioMenuItem.displayName = "RadioMenuItem";
10927
11138
 
10928
11139
  // src/components/Menu/CheckboxMenuItem.tsx
10929
11140
  var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
10930
- var import_type_guards40 = require("@wistia/type-guards");
10931
- var import_jsx_runtime242 = require("react/jsx-runtime");
11141
+ var import_type_guards42 = require("@wistia/type-guards");
11142
+ var import_jsx_runtime244 = require("react/jsx-runtime");
10932
11143
  var CheckboxIndicator = ({ checked, ...props }) => {
10933
- return checked ? /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
11144
+ return checked ? /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
10934
11145
  "svg",
10935
11146
  {
10936
11147
  ...props,
@@ -10940,14 +11151,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10940
11151
  width: "24",
10941
11152
  xmlns: "http://www.w3.org/2000/svg",
10942
11153
  children: [
10943
- /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
11154
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
10944
11155
  "path",
10945
11156
  {
10946
11157
  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",
10947
11158
  fill: "#2949e5"
10948
11159
  }
10949
11160
  ),
10950
- /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
11161
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
10951
11162
  "path",
10952
11163
  {
10953
11164
  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",
@@ -10956,7 +11167,7 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10956
11167
  )
10957
11168
  ]
10958
11169
  }
10959
- ) : /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
11170
+ ) : /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
10960
11171
  "svg",
10961
11172
  {
10962
11173
  ...props,
@@ -10966,14 +11177,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10966
11177
  width: "24",
10967
11178
  xmlns: "http://www.w3.org/2000/svg",
10968
11179
  children: [
10969
- /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
11180
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
10970
11181
  "path",
10971
11182
  {
10972
11183
  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",
10973
11184
  fill: "#fcfcfd"
10974
11185
  }
10975
11186
  ),
10976
- /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
11187
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
10977
11188
  "path",
10978
11189
  {
10979
11190
  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",
@@ -10990,19 +11201,19 @@ var CheckboxMenuItem = ({
10990
11201
  onCheckedChange,
10991
11202
  ...props
10992
11203
  }) => {
10993
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
11204
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
10994
11205
  import_react_dropdown_menu7.DropdownMenuCheckboxItem,
10995
11206
  {
10996
11207
  asChild: true,
10997
11208
  checked,
10998
11209
  onCheckedChange,
10999
11210
  onSelect,
11000
- children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
11211
+ children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
11001
11212
  MenuItemButton,
11002
11213
  {
11003
11214
  ...props,
11004
- leftIcon: (0, import_type_guards40.isNotNil)(props.icon) ? props.icon : /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(CheckboxIndicator, { checked }),
11005
- rightIcon: (0, import_type_guards40.isNotNil)(props.icon) ? /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(import_react_dropdown_menu7.DropdownMenuItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { type: "checkmark" }) }) : void 0
11215
+ leftIcon: (0, import_type_guards42.isNotNil)(props.icon) ? props.icon : /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(CheckboxIndicator, { checked }),
11216
+ rightIcon: (0, import_type_guards42.isNotNil)(props.icon) ? /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_dropdown_menu7.DropdownMenuItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Icon, { type: "checkmark" }) }) : void 0
11006
11217
  }
11007
11218
  )
11008
11219
  }
@@ -11011,37 +11222,37 @@ var CheckboxMenuItem = ({
11011
11222
  CheckboxMenuItem.displayName = "CheckboxMenuItem";
11012
11223
 
11013
11224
  // src/components/Modal/Modal.tsx
11014
- var import_react55 = require("react");
11015
- var import_styled_components66 = __toESM(require("styled-components"));
11225
+ var import_react56 = require("react");
11226
+ var import_styled_components68 = __toESM(require("styled-components"));
11016
11227
  var import_react_dialog4 = require("@radix-ui/react-dialog");
11017
- var import_type_guards42 = require("@wistia/type-guards");
11228
+ var import_type_guards44 = require("@wistia/type-guards");
11018
11229
 
11019
11230
  // src/components/Modal/ModalHeader.tsx
11020
- var import_styled_components63 = __toESM(require("styled-components"));
11231
+ var import_styled_components65 = __toESM(require("styled-components"));
11021
11232
  var import_react_dialog2 = require("@radix-ui/react-dialog");
11022
11233
 
11023
11234
  // src/components/Modal/ModalCloseButton.tsx
11024
- var import_styled_components62 = __toESM(require("styled-components"));
11235
+ var import_styled_components64 = __toESM(require("styled-components"));
11025
11236
  var import_react_dialog = require("@radix-ui/react-dialog");
11026
- var import_jsx_runtime243 = require("react/jsx-runtime");
11027
- var CloseButton = (0, import_styled_components62.default)(import_react_dialog.Close)`
11237
+ var import_jsx_runtime245 = require("react/jsx-runtime");
11238
+ var CloseButton = (0, import_styled_components64.default)(import_react_dialog.Close)`
11028
11239
  align-self: start;
11029
11240
  `;
11030
11241
  var ModalCloseButton = () => {
11031
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
11242
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
11032
11243
  IconButton,
11033
11244
  {
11034
11245
  label: "Dismiss modal",
11035
11246
  size: "sm",
11036
11247
  variant: "ghost",
11037
- children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Icon, { type: "close" })
11248
+ children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Icon, { type: "close" })
11038
11249
  }
11039
11250
  ) });
11040
11251
  };
11041
11252
 
11042
11253
  // src/components/Modal/ModalHeader.tsx
11043
- var import_jsx_runtime244 = require("react/jsx-runtime");
11044
- var Header = import_styled_components63.default.header`
11254
+ var import_jsx_runtime246 = require("react/jsx-runtime");
11255
+ var Header = import_styled_components65.default.header`
11045
11256
  display: flex;
11046
11257
  order: 1;
11047
11258
  gap: var(--wui-space-01);
@@ -11052,7 +11263,7 @@ var Header = import_styled_components63.default.header`
11052
11263
  margin: 0 0 var(--wui-space-03);
11053
11264
  }
11054
11265
  `;
11055
- var Title = (0, import_styled_components63.default)(import_react_dialog2.Title)`
11266
+ var Title = (0, import_styled_components65.default)(import_react_dialog2.Title)`
11056
11267
  font-family: var(--wui-typography-heading-2-family);
11057
11268
  line-height: var(--wui-typography-heading-2-line-height);
11058
11269
  font-size: var(--wui-typography-heading-2-size);
@@ -11063,29 +11274,29 @@ var ModalHeader = ({
11063
11274
  hideTitle,
11064
11275
  hideCloseButton
11065
11276
  }) => {
11066
- const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Title, { children: title });
11067
- return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Header, { $hideTitle: hideTitle, children: [
11277
+ const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Title, { children: title });
11278
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Header, { $hideTitle: hideTitle, children: [
11068
11279
  TitleComponent,
11069
- hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(ModalCloseButton, {})
11280
+ hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(ModalCloseButton, {})
11070
11281
  ] });
11071
11282
  };
11072
11283
 
11073
11284
  // src/components/Modal/ModalContent.tsx
11074
- var import_react53 = require("react");
11075
- var import_styled_components64 = __toESM(require("styled-components"));
11285
+ var import_react54 = require("react");
11286
+ var import_styled_components66 = __toESM(require("styled-components"));
11076
11287
  var import_react_dialog3 = require("@radix-ui/react-dialog");
11077
11288
 
11078
11289
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
11079
- var import_react52 = require("react");
11080
- var import_type_guards41 = require("@wistia/type-guards");
11290
+ var import_react53 = require("react");
11291
+ var import_type_guards43 = require("@wistia/type-guards");
11081
11292
  var useFocusRestore = () => {
11082
- const previouslyFocusedRef = (0, import_react52.useRef)(null);
11083
- (0, import_react52.useEffect)(() => {
11293
+ const previouslyFocusedRef = (0, import_react53.useRef)(null);
11294
+ (0, import_react53.useEffect)(() => {
11084
11295
  previouslyFocusedRef.current = document.activeElement;
11085
11296
  }, []);
11086
- (0, import_react52.useEffect)(() => {
11297
+ (0, import_react53.useEffect)(() => {
11087
11298
  return () => {
11088
- if ((0, import_type_guards41.isNotNil)(previouslyFocusedRef.current)) {
11299
+ if ((0, import_type_guards43.isNotNil)(previouslyFocusedRef.current)) {
11089
11300
  setTimeout(() => {
11090
11301
  previouslyFocusedRef.current?.focus();
11091
11302
  }, 0);
@@ -11095,38 +11306,38 @@ var useFocusRestore = () => {
11095
11306
  };
11096
11307
 
11097
11308
  // src/components/Modal/ModalContent.tsx
11098
- var import_jsx_runtime245 = require("react/jsx-runtime");
11099
- var alignTopStyles = import_styled_components64.css`
11309
+ var import_jsx_runtime247 = require("react/jsx-runtime");
11310
+ var alignTopStyles = import_styled_components66.css`
11100
11311
  --wui-modal-translate-y: 0;
11101
11312
 
11102
11313
  top: 0;
11103
11314
  `;
11104
- var alignVerticalCenterStyles = import_styled_components64.css`
11315
+ var alignVerticalCenterStyles = import_styled_components66.css`
11105
11316
  --wui-modal-translate-y: -50%;
11106
11317
 
11107
11318
  top: 50%;
11108
11319
  `;
11109
- var alignBottomStyles = import_styled_components64.css`
11320
+ var alignBottomStyles = import_styled_components66.css`
11110
11321
  --wui-modal-translate-y: 0;
11111
11322
 
11112
11323
  bottom: 0;
11113
11324
  `;
11114
- var alignHorizontalCenterStyles = import_styled_components64.css`
11325
+ var alignHorizontalCenterStyles = import_styled_components66.css`
11115
11326
  --wui-modal-translate-x: -50%;
11116
11327
 
11117
11328
  left: 50%;
11118
11329
  `;
11119
- var alignRightStyles = import_styled_components64.css`
11330
+ var alignRightStyles = import_styled_components66.css`
11120
11331
  --wui-modal-translate-x: 0;
11121
11332
 
11122
11333
  right: 0;
11123
11334
  `;
11124
- var alignLeftStyles = import_styled_components64.css`
11335
+ var alignLeftStyles = import_styled_components66.css`
11125
11336
  --wui-modal-translate-x: 0;
11126
11337
 
11127
11338
  left: 0;
11128
11339
  `;
11129
- var StyledModalContent = (0, import_styled_components64.default)(import_react_dialog3.Content)`
11340
+ var StyledModalContent = (0, import_styled_components66.default)(import_react_dialog3.Content)`
11130
11341
  background-color: var(--wui-color-bg-app);
11131
11342
  box-sizing: border-box;
11132
11343
  display: flex;
@@ -11174,10 +11385,10 @@ var StyledModalContent = (0, import_styled_components64.default)(import_react_di
11174
11385
  }
11175
11386
  }
11176
11387
  `;
11177
- var ModalContent = (0, import_react53.forwardRef)(
11388
+ var ModalContent = (0, import_react54.forwardRef)(
11178
11389
  ({ fullHeight, width, alignHorizontal, alignVertical, children, ...props }, ref) => {
11179
11390
  useFocusRestore();
11180
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
11391
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11181
11392
  StyledModalContent,
11182
11393
  {
11183
11394
  ref,
@@ -11194,9 +11405,9 @@ var ModalContent = (0, import_react53.forwardRef)(
11194
11405
  );
11195
11406
 
11196
11407
  // src/private/components/Backdrop/Backdrop.tsx
11197
- var import_react54 = require("react");
11198
- var import_styled_components65 = __toESM(require("styled-components"));
11199
- var import_jsx_runtime246 = require("react/jsx-runtime");
11408
+ var import_react55 = require("react");
11409
+ var import_styled_components67 = __toESM(require("styled-components"));
11410
+ var import_jsx_runtime248 = require("react/jsx-runtime");
11200
11411
  var alignVerticalMap = {
11201
11412
  stretch: "normal",
11202
11413
  top: "start",
@@ -11208,7 +11419,7 @@ var alignHorizontalMap = {
11208
11419
  center: "center",
11209
11420
  right: "end"
11210
11421
  };
11211
- var BackdropComponent = import_styled_components65.default.div`
11422
+ var BackdropComponent = import_styled_components67.default.div`
11212
11423
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
11213
11424
  animation-name: backdropShow var(--wui-motion-duration-03) var(--wui-motion-ease-out);
11214
11425
  background: var(--wui-color-backdrop);
@@ -11234,8 +11445,8 @@ var BackdropComponent = import_styled_components65.default.div`
11234
11445
  }
11235
11446
  }
11236
11447
  `;
11237
- var Backdrop = (0, import_react54.forwardRef)(
11238
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
11448
+ var Backdrop = (0, import_react55.forwardRef)(
11449
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11239
11450
  BackdropComponent,
11240
11451
  {
11241
11452
  ref,
@@ -11249,15 +11460,15 @@ var Backdrop = (0, import_react54.forwardRef)(
11249
11460
  Backdrop.displayName = "Backdrop";
11250
11461
 
11251
11462
  // src/components/Modal/Modal.tsx
11252
- var import_jsx_runtime247 = require("react/jsx-runtime");
11463
+ var import_jsx_runtime249 = require("react/jsx-runtime");
11253
11464
  var DEFAULT_MODAL_WIDTH = "532px";
11254
- var ModalBody = import_styled_components66.default.div`
11465
+ var ModalBody = import_styled_components68.default.div`
11255
11466
  flex-direction: column;
11256
11467
  display: flex;
11257
11468
  flex: 1 0 0;
11258
11469
  order: 2;
11259
11470
  `;
11260
- var Modal = (0, import_react55.forwardRef)(
11471
+ var Modal = (0, import_react56.forwardRef)(
11261
11472
  ({
11262
11473
  children,
11263
11474
  fullHeight = false,
@@ -11272,18 +11483,18 @@ var Modal = (0, import_react55.forwardRef)(
11272
11483
  alignVertical = "center",
11273
11484
  ...props
11274
11485
  }, ref) => {
11275
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11486
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11276
11487
  import_react_dialog4.Root,
11277
11488
  {
11278
11489
  onOpenChange: (open2) => {
11279
- if (!open2 && (0, import_type_guards42.isNotNil)(onRequestClose)) {
11490
+ if (!open2 && (0, import_type_guards44.isNotNil)(onRequestClose)) {
11280
11491
  onRequestClose();
11281
11492
  }
11282
11493
  },
11283
11494
  open: isOpen,
11284
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(import_react_dialog4.Portal, { children: [
11285
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Backdrop, {}),
11286
- /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
11495
+ children: /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_react_dialog4.Portal, { children: [
11496
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Backdrop, {}),
11497
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
11287
11498
  ModalContent,
11288
11499
  {
11289
11500
  ref,
@@ -11291,7 +11502,7 @@ var Modal = (0, import_react55.forwardRef)(
11291
11502
  alignVertical,
11292
11503
  fullHeight,
11293
11504
  onOpenAutoFocus: (event) => {
11294
- if ((0, import_type_guards42.isNotNil)(initialFocusRef) && initialFocusRef.current) {
11505
+ if ((0, import_type_guards44.isNotNil)(initialFocusRef) && initialFocusRef.current) {
11295
11506
  event.preventDefault();
11296
11507
  requestAnimationFrame(() => {
11297
11508
  initialFocusRef.current?.focus();
@@ -11301,8 +11512,8 @@ var Modal = (0, import_react55.forwardRef)(
11301
11512
  width,
11302
11513
  ...props,
11303
11514
  children: [
11304
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(ModalBody, { children }),
11305
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
11515
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(ModalBody, { children }),
11516
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11306
11517
  ModalHeader,
11307
11518
  {
11308
11519
  hideCloseButton,
@@ -11322,22 +11533,22 @@ Modal.displayName = "Modal";
11322
11533
 
11323
11534
  // src/components/Popover/Popover.tsx
11324
11535
  var import_react_popover2 = require("@radix-ui/react-popover");
11325
- var import_styled_components68 = __toESM(require("styled-components"));
11536
+ var import_styled_components70 = __toESM(require("styled-components"));
11326
11537
 
11327
11538
  // src/private/helpers/getControls/getControlProps.tsx
11328
- var import_type_guards43 = require("@wistia/type-guards");
11539
+ var import_type_guards45 = require("@wistia/type-guards");
11329
11540
  var getControlProps = (isOpen, onOpenChange) => {
11330
- return (0, import_type_guards43.isNotNil)(onOpenChange) && (0, import_type_guards43.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
11541
+ return (0, import_type_guards45.isNotNil)(onOpenChange) && (0, import_type_guards45.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
11331
11542
  };
11332
11543
 
11333
11544
  // src/components/Popover/PopoverArrow.tsx
11334
11545
  var import_react_popover = require("@radix-ui/react-popover");
11335
- var import_styled_components67 = __toESM(require("styled-components"));
11336
- var import_jsx_runtime248 = require("react/jsx-runtime");
11337
- var StyledPath = import_styled_components67.default.path`
11546
+ var import_styled_components69 = __toESM(require("styled-components"));
11547
+ var import_jsx_runtime250 = require("react/jsx-runtime");
11548
+ var StyledPath = import_styled_components69.default.path`
11338
11549
  fill: var(--wui-color-border-secondary);
11339
11550
  `;
11340
- var circleAnimation = import_styled_components67.keyframes`
11551
+ var circleAnimation = import_styled_components69.keyframes`
11341
11552
  0% {
11342
11553
  opacity: var(--wui-popover-arrow-circle-starting-opacity);
11343
11554
  }
@@ -11345,7 +11556,7 @@ var circleAnimation = import_styled_components67.keyframes`
11345
11556
  opacity: 0;
11346
11557
  }
11347
11558
  `;
11348
- var StyledCircle = import_styled_components67.default.circle`
11559
+ var StyledCircle = import_styled_components69.default.circle`
11349
11560
  stroke: var(--wui-color-border-active);
11350
11561
  animation-duration: 2s;
11351
11562
  animation-iteration-count: infinite;
@@ -11366,13 +11577,13 @@ var StyledCircle = import_styled_components67.default.circle`
11366
11577
  }
11367
11578
 
11368
11579
  @media (prefers-reduced-motion: no-preference) {
11369
- ${({ $isAnimated }) => $isAnimated && import_styled_components67.css`
11580
+ ${({ $isAnimated }) => $isAnimated && import_styled_components69.css`
11370
11581
  animation-name: ${circleAnimation};
11371
11582
  `}
11372
11583
  }
11373
11584
  `;
11374
11585
  var PopoverArrow = ({ isAnimated }) => {
11375
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(import_react_popover.PopoverArrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
11586
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_react_popover.PopoverArrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
11376
11587
  "svg",
11377
11588
  {
11378
11589
  fill: "none",
@@ -11381,8 +11592,8 @@ var PopoverArrow = ({ isAnimated }) => {
11381
11592
  width: "48",
11382
11593
  xmlns: "http://www.w3.org/2000/svg",
11383
11594
  children: [
11384
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(StyledPath, { d: "M24 26.6667C21.0545 26.6667 18.6667 29.0545 18.6667 32C18.6667 34.9455 21.0545 37.3333 24 37.3333C26.9455 37.3333 29.3333 34.9455 29.3333 32C29.3333 29.0545 26.9455 26.6667 24 26.6667ZM23 0V32H25V0H23Z" }),
11385
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11595
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(StyledPath, { d: "M24 26.6667C21.0545 26.6667 18.6667 29.0545 18.6667 32C18.6667 34.9455 21.0545 37.3333 24 37.3333C26.9455 37.3333 29.3333 34.9455 29.3333 32C29.3333 29.0545 26.9455 26.6667 24 26.6667ZM23 0V32H25V0H23Z" }),
11596
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
11386
11597
  StyledCircle,
11387
11598
  {
11388
11599
  $isAnimated: isAnimated,
@@ -11393,7 +11604,7 @@ var PopoverArrow = ({ isAnimated }) => {
11393
11604
  strokeWidth: "4"
11394
11605
  }
11395
11606
  ),
11396
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
11607
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
11397
11608
  StyledCircle,
11398
11609
  {
11399
11610
  $isAnimated: isAnimated,
@@ -11411,10 +11622,10 @@ var PopoverArrow = ({ isAnimated }) => {
11411
11622
  PopoverArrow.displayName = "PopoverArrow";
11412
11623
 
11413
11624
  // src/components/Popover/Popover.tsx
11414
- var import_jsx_runtime249 = require("react/jsx-runtime");
11415
- var StyledContent2 = (0, import_styled_components68.default)(import_react_popover2.Content)`
11625
+ var import_jsx_runtime251 = require("react/jsx-runtime");
11626
+ var StyledContent2 = (0, import_styled_components70.default)(import_react_popover2.Content)`
11416
11627
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11417
- ${({ $unstyled }) => !$unstyled && import_styled_components68.css`
11628
+ ${({ $unstyled }) => !$unstyled && import_styled_components70.css`
11418
11629
  border-radius: var(--wui-border-radius-02);
11419
11630
  padding: var(--wui-space-04);
11420
11631
  max-width: var(--wui-popover-max-width, 320px);
@@ -11450,9 +11661,9 @@ var Popover = ({
11450
11661
  "--wui-popover-max-width": maxWidth,
11451
11662
  "--wui-popover-max-height": maxHeight
11452
11663
  };
11453
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_react_popover2.Root, { ...getControlProps(isOpen, onOpenChange), children: [
11454
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(import_react_popover2.Trigger, { asChild: true, children: trigger }),
11455
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(import_react_popover2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
11664
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(import_react_popover2.Root, { ...getControlProps(isOpen, onOpenChange), children: [
11665
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_popover2.Trigger, { asChild: true, children: trigger }),
11666
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_popover2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
11456
11667
  StyledContent2,
11457
11668
  {
11458
11669
  $colorScheme: colorScheme,
@@ -11461,17 +11672,17 @@ var Popover = ({
11461
11672
  $unstyled: unstyled,
11462
11673
  style,
11463
11674
  children: [
11464
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(import_react_popover2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11675
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_popover2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11465
11676
  IconButton,
11466
11677
  {
11467
11678
  "data-wui-popover-close": true,
11468
11679
  label: "Close",
11469
11680
  variant: "ghost",
11470
- children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Icon, { type: "close" })
11681
+ children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon, { type: "close" })
11471
11682
  }
11472
11683
  ) }),
11473
- withArrow ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(PopoverArrow, { isAnimated }) : null,
11474
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("div", { children })
11684
+ withArrow ? /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(PopoverArrow, { isAnimated }) : null,
11685
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)("div", { children })
11475
11686
  ]
11476
11687
  }
11477
11688
  ) })
@@ -11480,11 +11691,11 @@ var Popover = ({
11480
11691
  Popover.displayName = "Popover";
11481
11692
 
11482
11693
  // src/components/ProgressBar/ProgressBar.tsx
11483
- var import_styled_components69 = __toESM(require("styled-components"));
11694
+ var import_styled_components71 = __toESM(require("styled-components"));
11484
11695
  var import_react_progress = require("@radix-ui/react-progress");
11485
- var import_type_guards44 = require("@wistia/type-guards");
11486
- var import_jsx_runtime250 = require("react/jsx-runtime");
11487
- var ProgressBarWrapper = import_styled_components69.default.div`
11696
+ var import_type_guards46 = require("@wistia/type-guards");
11697
+ var import_jsx_runtime252 = require("react/jsx-runtime");
11698
+ var ProgressBarWrapper = import_styled_components71.default.div`
11488
11699
  --progress-bar-height: 8px;
11489
11700
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
11490
11701
  --progress-bar-background-color: var(--wui-color-bg-surface-secondary);
@@ -11500,7 +11711,7 @@ var getTranslateValue = (progress, max) => {
11500
11711
  const progressPercentage = progress / max * 100;
11501
11712
  return `translateX(-${100 - progressPercentage}%)`;
11502
11713
  };
11503
- var ProgressBarLabel = import_styled_components69.default.div`
11714
+ var ProgressBarLabel = import_styled_components71.default.div`
11504
11715
  display: flex;
11505
11716
  line-height: var(--wui-typography-label-3-line-height);
11506
11717
  font-size: var(--wui-typography-label-3-size);
@@ -11508,7 +11719,7 @@ var ProgressBarLabel = import_styled_components69.default.div`
11508
11719
  color: var(--wui-color-text-secondary);
11509
11720
  flex-shrink: 0;
11510
11721
  `;
11511
- var StyledProgressIndicator = (0, import_styled_components69.default)(import_react_progress.Indicator)`
11722
+ var StyledProgressIndicator = (0, import_styled_components71.default)(import_react_progress.Indicator)`
11512
11723
  background-color: var(--progress-bar-indicator-color);
11513
11724
  width: 100%;
11514
11725
  height: 100%;
@@ -11517,7 +11728,7 @@ var StyledProgressIndicator = (0, import_styled_components69.default)(import_rea
11517
11728
  transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
11518
11729
  transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
11519
11730
  `;
11520
- var StyledProgressBar = (0, import_styled_components69.default)(import_react_progress.Root)`
11731
+ var StyledProgressBar = (0, import_styled_components71.default)(import_react_progress.Root)`
11521
11732
  position: relative;
11522
11733
  overflow: hidden;
11523
11734
  background: var(--progress-bar-background-color);
@@ -11536,15 +11747,15 @@ var ProgressBar = ({
11536
11747
  labelRight,
11537
11748
  ...props
11538
11749
  }) => {
11539
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(ProgressBarWrapper, { children: [
11540
- (0, import_type_guards44.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
11541
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
11750
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(ProgressBarWrapper, { children: [
11751
+ (0, import_type_guards46.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
11752
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
11542
11753
  StyledProgressBar,
11543
11754
  {
11544
11755
  max,
11545
11756
  value: progress,
11546
11757
  ...props,
11547
- children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
11758
+ children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
11548
11759
  StyledProgressIndicator,
11549
11760
  {
11550
11761
  $max: max,
@@ -11553,17 +11764,17 @@ var ProgressBar = ({
11553
11764
  )
11554
11765
  }
11555
11766
  ),
11556
- (0, import_type_guards44.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(ProgressBarLabel, { children: labelRight }) : null
11767
+ (0, import_type_guards46.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(ProgressBarLabel, { children: labelRight }) : null
11557
11768
  ] });
11558
11769
  };
11559
11770
  ProgressBar.displayName = "ProgressBar";
11560
11771
 
11561
11772
  // src/components/Radio/Radio.tsx
11562
- var import_react56 = require("react");
11563
- var import_styled_components70 = __toESM(require("styled-components"));
11564
- var import_type_guards45 = require("@wistia/type-guards");
11565
- var import_jsx_runtime251 = require("react/jsx-runtime");
11566
- var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11773
+ var import_react57 = require("react");
11774
+ var import_styled_components72 = __toESM(require("styled-components"));
11775
+ var import_type_guards47 = require("@wistia/type-guards");
11776
+ var import_jsx_runtime253 = require("react/jsx-runtime");
11777
+ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
11567
11778
  "svg",
11568
11779
  {
11569
11780
  fill: "inherit",
@@ -11571,7 +11782,7 @@ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11571
11782
  viewBox: "0 0 1 1",
11572
11783
  width: "1",
11573
11784
  xmlns: "http://www.w3.org/2000/svg",
11574
- children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11785
+ children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
11575
11786
  "circle",
11576
11787
  {
11577
11788
  cx: "0.5",
@@ -11582,7 +11793,7 @@ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11582
11793
  )
11583
11794
  }
11584
11795
  );
11585
- var sizeSmall2 = import_styled_components70.css`
11796
+ var sizeSmall2 = import_styled_components72.css`
11586
11797
  width: 14px;
11587
11798
  height: 14px;
11588
11799
  min-width: 14px;
@@ -11593,7 +11804,7 @@ var sizeSmall2 = import_styled_components70.css`
11593
11804
  height: 7px;
11594
11805
  }
11595
11806
  `;
11596
- var sizeMedium2 = import_styled_components70.css`
11807
+ var sizeMedium2 = import_styled_components72.css`
11597
11808
  width: 16px;
11598
11809
  height: 16px;
11599
11810
  min-width: 16px;
@@ -11604,7 +11815,7 @@ var sizeMedium2 = import_styled_components70.css`
11604
11815
  height: 8px;
11605
11816
  }
11606
11817
  `;
11607
- var sizeLarge2 = import_styled_components70.css`
11818
+ var sizeLarge2 = import_styled_components72.css`
11608
11819
  width: 20px;
11609
11820
  height: 20px;
11610
11821
  min-width: 20px;
@@ -11620,14 +11831,14 @@ var getSizeCss2 = (size) => {
11620
11831
  if (size === "lg") return sizeLarge2;
11621
11832
  return sizeMedium2;
11622
11833
  };
11623
- var StyledRadioWrapper = import_styled_components70.default.div`
11834
+ var StyledRadioWrapper = import_styled_components72.default.div`
11624
11835
  display: flex;
11625
11836
  margin: 0;
11626
11837
 
11627
11838
  /* TODO this solves a problem but potentially causes and a11y issue */
11628
11839
  user-select: none;
11629
11840
  `;
11630
- var StyledRadioInput = import_styled_components70.default.div`
11841
+ var StyledRadioInput = import_styled_components72.default.div`
11631
11842
  ${({ $size }) => getSizeCss2($size)}
11632
11843
  line-height: 0;
11633
11844
  margin: 0;
@@ -11649,7 +11860,7 @@ var StyledRadioInput = import_styled_components70.default.div`
11649
11860
  }
11650
11861
  }
11651
11862
  `;
11652
- var StyledHiddenRadioInput = import_styled_components70.default.input`
11863
+ var StyledHiddenRadioInput = import_styled_components72.default.input`
11653
11864
  ${visuallyHiddenStyle}
11654
11865
 
11655
11866
  /* toggles display of faux-input border-color */
@@ -11662,7 +11873,7 @@ var StyledHiddenRadioInput = import_styled_components70.default.input`
11662
11873
  display: block;
11663
11874
  }
11664
11875
  `;
11665
- var Radio = (0, import_react56.forwardRef)(
11876
+ var Radio = (0, import_react57.forwardRef)(
11666
11877
  ({
11667
11878
  checked,
11668
11879
  disabled = false,
@@ -11677,20 +11888,20 @@ var Radio = (0, import_react56.forwardRef)(
11677
11888
  hideLabel = false,
11678
11889
  ...props
11679
11890
  }, ref) => {
11680
- const generatedId = (0, import_react56.useId)();
11681
- const computedId = (0, import_type_guards45.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11891
+ const generatedId = (0, import_react57.useId)();
11892
+ const computedId = (0, import_type_guards47.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11682
11893
  const radioGroupContext = useRadioGroup();
11683
11894
  const contextName = radioGroupContext?.name;
11684
11895
  const contextOnChange = radioGroupContext?.onChange;
11685
11896
  const radioName = name ?? contextName;
11686
11897
  const handleOnChange = onChange ?? contextOnChange;
11687
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
11898
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
11688
11899
  StyledRadioWrapper,
11689
11900
  {
11690
11901
  $disabled: disabled,
11691
11902
  "aria-invalid": props["aria-invalid"],
11692
11903
  children: [
11693
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11904
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
11694
11905
  StyledHiddenRadioInput,
11695
11906
  {
11696
11907
  ...props,
@@ -11705,16 +11916,16 @@ var Radio = (0, import_react56.forwardRef)(
11705
11916
  value
11706
11917
  }
11707
11918
  ),
11708
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11919
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
11709
11920
  FormControlLabel,
11710
11921
  {
11711
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
11922
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
11712
11923
  StyledRadioInput,
11713
11924
  {
11714
11925
  $disabled: disabled,
11715
11926
  $size: size,
11716
11927
  "data-wui-faux-input": "true",
11717
- children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(RadioIcon, {})
11928
+ children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(RadioIcon, {})
11718
11929
  }
11719
11930
  ),
11720
11931
  description,
@@ -11732,20 +11943,20 @@ var Radio = (0, import_react56.forwardRef)(
11732
11943
  Radio.displayName = "Radio";
11733
11944
 
11734
11945
  // src/components/SegmentedControl/SegmentedControl.tsx
11735
- var import_react59 = require("react");
11736
- var import_styled_components72 = __toESM(require("styled-components"));
11946
+ var import_react60 = require("react");
11947
+ var import_styled_components74 = __toESM(require("styled-components"));
11737
11948
  var import_react_toggle_group = require("@radix-ui/react-toggle-group");
11738
- var import_type_guards46 = require("@wistia/type-guards");
11949
+ var import_type_guards48 = require("@wistia/type-guards");
11739
11950
 
11740
11951
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11741
- var import_react57 = require("react");
11742
- var import_jsx_runtime252 = require("react/jsx-runtime");
11743
- var SelectedItemStyleContext = (0, import_react57.createContext)(null);
11952
+ var import_react58 = require("react");
11953
+ var import_jsx_runtime254 = require("react/jsx-runtime");
11954
+ var SelectedItemStyleContext = (0, import_react58.createContext)(null);
11744
11955
  var SelectedItemStyleProvider = ({
11745
11956
  children
11746
11957
  }) => {
11747
- const [selectedItemMeasurements, setSelectedItemMeasurements] = (0, import_react57.useState)(null);
11748
- const selectedItemIndicatorStyle = (0, import_react57.useMemo)(
11958
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = (0, import_react58.useState)(null);
11959
+ const selectedItemIndicatorStyle = (0, import_react58.useMemo)(
11749
11960
  () => selectedItemMeasurements != null ? {
11750
11961
  height: `${selectedItemMeasurements.offsetHeight}px`,
11751
11962
  transform: `translateX(${selectedItemMeasurements.offsetLeft}px) translateY(-50%)`,
@@ -11755,17 +11966,17 @@ var SelectedItemStyleProvider = ({
11755
11966
  },
11756
11967
  [selectedItemMeasurements]
11757
11968
  );
11758
- const contextValue = (0, import_react57.useMemo)(
11969
+ const contextValue = (0, import_react58.useMemo)(
11759
11970
  () => ({
11760
11971
  setSelectedItemMeasurements,
11761
11972
  selectedItemIndicatorStyle
11762
11973
  }),
11763
11974
  [selectedItemIndicatorStyle]
11764
11975
  );
11765
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
11976
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
11766
11977
  };
11767
11978
  var useSelectedItemStyle = () => {
11768
- const context = (0, import_react57.useContext)(SelectedItemStyleContext);
11979
+ const context = (0, import_react58.useContext)(SelectedItemStyleContext);
11769
11980
  if (context === null) {
11770
11981
  throw new Error("useSelectedItemStyle must be used within a SelectedItemStyleProvider");
11771
11982
  }
@@ -11773,14 +11984,14 @@ var useSelectedItemStyle = () => {
11773
11984
  };
11774
11985
 
11775
11986
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11776
- var import_styled_components71 = __toESM(require("styled-components"));
11987
+ var import_styled_components73 = __toESM(require("styled-components"));
11777
11988
 
11778
11989
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11779
- var import_react58 = require("react");
11780
- var SegmentedControlValueContext = (0, import_react58.createContext)(null);
11990
+ var import_react59 = require("react");
11991
+ var SegmentedControlValueContext = (0, import_react59.createContext)(null);
11781
11992
  var SegmentedControlValueProvider = SegmentedControlValueContext.Provider;
11782
11993
  var useSegmentedControlValue = () => {
11783
- const context = (0, import_react58.useContext)(SegmentedControlValueContext);
11994
+ const context = (0, import_react59.useContext)(SegmentedControlValueContext);
11784
11995
  if (context === null) {
11785
11996
  throw new Error("useSegmentedControlValue must be used within a SegmentedControlValueProvider");
11786
11997
  }
@@ -11788,8 +11999,8 @@ var useSegmentedControlValue = () => {
11788
11999
  };
11789
12000
 
11790
12001
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11791
- var import_jsx_runtime253 = require("react/jsx-runtime");
11792
- var SelectedItemIndicatorDiv = import_styled_components71.default.div`
12002
+ var import_jsx_runtime255 = require("react/jsx-runtime");
12003
+ var SelectedItemIndicatorDiv = import_styled_components73.default.div`
11793
12004
  background-color: var(--wui-color-bg-fill-white);
11794
12005
  border-radius: var(--wui-border-radius-rounded);
11795
12006
  left: 0;
@@ -11807,12 +12018,12 @@ var SelectedItemIndicator = () => {
11807
12018
  if (!selectedValue) {
11808
12019
  return null;
11809
12020
  }
11810
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12021
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11811
12022
  };
11812
12023
 
11813
12024
  // src/components/SegmentedControl/SegmentedControl.tsx
11814
- var import_jsx_runtime254 = require("react/jsx-runtime");
11815
- var segmentedControlStyles = import_styled_components72.css`
12025
+ var import_jsx_runtime256 = require("react/jsx-runtime");
12026
+ var segmentedControlStyles = import_styled_components74.css`
11816
12027
  display: inline-flex;
11817
12028
  background-color: var(--wui-color-bg-surface-secondary);
11818
12029
  border-radius: var(--wui-border-radius-rounded);
@@ -11823,10 +12034,10 @@ var segmentedControlStyles = import_styled_components72.css`
11823
12034
  position: relative;
11824
12035
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11825
12036
  `;
11826
- var StyledSegmentedControl = (0, import_styled_components72.default)(import_react_toggle_group.Root)`
12037
+ var StyledSegmentedControl = (0, import_styled_components74.default)(import_react_toggle_group.Root)`
11827
12038
  ${segmentedControlStyles}
11828
12039
  `;
11829
- var SegmentedControl = (0, import_react59.forwardRef)(
12040
+ var SegmentedControl = (0, import_react60.forwardRef)(
11830
12041
  ({
11831
12042
  children,
11832
12043
  disabled = false,
@@ -11835,10 +12046,10 @@ var SegmentedControl = (0, import_react59.forwardRef)(
11835
12046
  onSelectedValueChange,
11836
12047
  ...props
11837
12048
  }, ref) => {
11838
- if ((0, import_type_guards46.isNil)(children)) {
12049
+ if ((0, import_type_guards48.isNil)(children)) {
11839
12050
  return null;
11840
12051
  }
11841
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
12052
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11842
12053
  StyledSegmentedControl,
11843
12054
  {
11844
12055
  ref,
@@ -11850,8 +12061,8 @@ var SegmentedControl = (0, import_react59.forwardRef)(
11850
12061
  type: "single",
11851
12062
  value: selectedValue,
11852
12063
  ...props,
11853
- children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(SelectedItemStyleProvider, { children: [
11854
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(SelectedItemIndicator, {}),
12064
+ children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(SelectedItemStyleProvider, { children: [
12065
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(SelectedItemIndicator, {}),
11855
12066
  children
11856
12067
  ] }) })
11857
12068
  }
@@ -11861,12 +12072,12 @@ var SegmentedControl = (0, import_react59.forwardRef)(
11861
12072
  SegmentedControl.displayName = "SegmentedControl";
11862
12073
 
11863
12074
  // src/components/SegmentedControl/SegmentedControlItem.tsx
11864
- var import_react60 = require("react");
11865
- var import_styled_components73 = __toESM(require("styled-components"));
12075
+ var import_react61 = require("react");
12076
+ var import_styled_components75 = __toESM(require("styled-components"));
11866
12077
  var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
11867
- var import_type_guards47 = require("@wistia/type-guards");
11868
- var import_jsx_runtime255 = require("react/jsx-runtime");
11869
- var segmentedControlItemStyles = import_styled_components73.css`
12078
+ var import_type_guards49 = require("@wistia/type-guards");
12079
+ var import_jsx_runtime257 = require("react/jsx-runtime");
12080
+ var segmentedControlItemStyles = import_styled_components75.css`
11870
12081
  all: unset; /* ToggleGroupItem is a button element */
11871
12082
  align-items: center;
11872
12083
  border-radius: var(--wui-border-radius-rounded);
@@ -11926,14 +12137,14 @@ var segmentedControlItemStyles = import_styled_components73.css`
11926
12137
  }
11927
12138
  }
11928
12139
  `;
11929
- var StyledSegmentedControlItem = (0, import_styled_components73.default)(import_react_toggle_group2.Item)`
12140
+ var StyledSegmentedControlItem = (0, import_styled_components75.default)(import_react_toggle_group2.Item)`
11930
12141
  ${segmentedControlItemStyles}
11931
12142
  `;
11932
- var SegmentedControlItem = (0, import_react60.forwardRef)(
12143
+ var SegmentedControlItem = (0, import_react61.forwardRef)(
11933
12144
  ({ disabled, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
11934
12145
  const selectedValue = useSegmentedControlValue();
11935
12146
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
11936
- const buttonRef = (0, import_react60.useRef)(null);
12147
+ const buttonRef = (0, import_react61.useRef)(null);
11937
12148
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
11938
12149
  const handleClick = (event) => {
11939
12150
  const target = event.target;
@@ -11942,7 +12153,7 @@ var SegmentedControlItem = (0, import_react60.forwardRef)(
11942
12153
  event.preventDefault();
11943
12154
  }
11944
12155
  };
11945
- (0, import_react60.useEffect)(() => {
12156
+ (0, import_react61.useEffect)(() => {
11946
12157
  const buttonElem = buttonRef.current;
11947
12158
  if (!buttonElem) {
11948
12159
  return void 0;
@@ -11967,13 +12178,13 @@ var SegmentedControlItem = (0, import_react60.forwardRef)(
11967
12178
  resizeObserver.disconnect();
11968
12179
  };
11969
12180
  }, [selectedValue, setSelectedItemMeasurements, value]);
11970
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
12181
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
11971
12182
  StyledSegmentedControlItem,
11972
12183
  {
11973
12184
  ref: combinedRef,
11974
12185
  ...otherProps,
11975
- $hasLabel: (0, import_type_guards47.isNotNil)(label),
11976
- "aria-label": (0, import_type_guards47.isNotNil)(label) ? void 0 : ariaLabel,
12186
+ $hasLabel: (0, import_type_guards49.isNotNil)(label),
12187
+ "aria-label": (0, import_type_guards49.isNotNil)(label) ? void 0 : ariaLabel,
11977
12188
  disabled,
11978
12189
  onClick: handleClick,
11979
12190
  value,
@@ -11989,12 +12200,12 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
11989
12200
 
11990
12201
  // src/components/Select/Select.tsx
11991
12202
  var import_react_select = require("@radix-ui/react-select");
11992
- var import_react61 = require("react");
11993
- var import_styled_components74 = __toESM(require("styled-components"));
11994
- var import_jsx_runtime256 = require("react/jsx-runtime");
11995
- var StyledTrigger = (0, import_styled_components74.default)(import_react_select.Trigger)`
12203
+ var import_react62 = require("react");
12204
+ var import_styled_components76 = __toESM(require("styled-components"));
12205
+ var import_jsx_runtime258 = require("react/jsx-runtime");
12206
+ var StyledTrigger = (0, import_styled_components76.default)(import_react_select.Trigger)`
11996
12207
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11997
- ${inputCssVariables};
12208
+ ${inputCss};
11998
12209
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
11999
12210
  background-color: var(--wui-input-color-bg);
12000
12211
  border: none;
@@ -12036,7 +12247,7 @@ var StyledTrigger = (0, import_styled_components74.default)(import_react_select.
12036
12247
  color: var(--wui-input-placeholder);
12037
12248
  }
12038
12249
  `;
12039
- var StyledContent3 = (0, import_styled_components74.default)(import_react_select.Content)`
12250
+ var StyledContent3 = (0, import_styled_components76.default)(import_react_select.Content)`
12040
12251
  --wui-select-content-border: var(--wui-color-border);
12041
12252
  --wui-select-content-bg: var(--wui-color-bg-surface);
12042
12253
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -12054,7 +12265,7 @@ var StyledContent3 = (0, import_styled_components74.default)(import_react_select
12054
12265
  max-height: var(--radix-select-content-available-height);
12055
12266
  z-index: var(--wui-zindex-select);
12056
12267
  `;
12057
- var Select = (0, import_react61.forwardRef)(
12268
+ var Select = (0, import_react62.forwardRef)(
12058
12269
  ({
12059
12270
  colorScheme = "inherit",
12060
12271
  children,
@@ -12064,13 +12275,13 @@ var Select = (0, import_react61.forwardRef)(
12064
12275
  ...props
12065
12276
  }, forwardedRef) => {
12066
12277
  const responsiveFullWidth = useResponsiveProp(fullWidth);
12067
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
12278
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
12068
12279
  import_react_select.Root,
12069
12280
  {
12070
12281
  ...props,
12071
12282
  onValueChange: onChange,
12072
12283
  children: [
12073
- /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
12284
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
12074
12285
  StyledTrigger,
12075
12286
  {
12076
12287
  ref: forwardedRef,
@@ -12078,8 +12289,8 @@ var Select = (0, import_react61.forwardRef)(
12078
12289
  $fullWidth: responsiveFullWidth,
12079
12290
  ...props,
12080
12291
  children: [
12081
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_react_select.Value, { placeholder }),
12082
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
12292
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(import_react_select.Value, { placeholder }),
12293
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
12083
12294
  Icon,
12084
12295
  {
12085
12296
  size: "md",
@@ -12089,10 +12300,10 @@ var Select = (0, import_react61.forwardRef)(
12089
12300
  ]
12090
12301
  }
12091
12302
  ),
12092
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(StyledContent3, { position: "popper", children: [
12093
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { type: "caret-up" }) }),
12094
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_react_select.Viewport, { children }),
12095
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { type: "caret-down" }) })
12303
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(StyledContent3, { position: "popper", children: [
12304
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Icon, { type: "caret-up" }) }),
12305
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(import_react_select.Viewport, { children }),
12306
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Icon, { type: "caret-down" }) })
12096
12307
  ] }) })
12097
12308
  ]
12098
12309
  }
@@ -12103,11 +12314,11 @@ Select.displayName = "Select";
12103
12314
 
12104
12315
  // src/components/Select/SelectOption.tsx
12105
12316
  var import_react_select2 = require("@radix-ui/react-select");
12106
- var import_react62 = require("react");
12107
- var import_styled_components75 = __toESM(require("styled-components"));
12108
- var import_type_guards48 = require("@wistia/type-guards");
12109
- var import_jsx_runtime257 = require("react/jsx-runtime");
12110
- var StyledItem = (0, import_styled_components75.default)(import_react_select2.Item)`
12317
+ var import_react63 = require("react");
12318
+ var import_styled_components77 = __toESM(require("styled-components"));
12319
+ var import_type_guards50 = require("@wistia/type-guards");
12320
+ var import_jsx_runtime259 = require("react/jsx-runtime");
12321
+ var StyledItem = (0, import_styled_components77.default)(import_react_select2.Item)`
12111
12322
  ${variantStyleMap2.body3};
12112
12323
  display: flex;
12113
12324
  padding: var(--wui-select-option-padding);
@@ -12131,28 +12342,28 @@ var StyledItem = (0, import_styled_components75.default)(import_react_select2.It
12131
12342
  background-color: transparent;
12132
12343
  }
12133
12344
  `;
12134
- var StyledIconContainer = import_styled_components75.default.span`
12345
+ var StyledIconContainer = import_styled_components77.default.span`
12135
12346
  width: 12px;
12136
12347
  `;
12137
- var SelectOption = (0, import_react62.forwardRef)(
12348
+ var SelectOption = (0, import_react63.forwardRef)(
12138
12349
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
12139
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
12350
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
12140
12351
  StyledItem,
12141
12352
  {
12142
12353
  ...props,
12143
12354
  ref: forwardedRef,
12144
12355
  children: [
12145
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12356
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
12146
12357
  Icon,
12147
12358
  {
12148
12359
  size: "sm",
12149
12360
  type: "checkmark"
12150
12361
  }
12151
12362
  ) }) }),
12152
- (0, import_type_guards48.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)("div", { children: [
12363
+ (0, import_type_guards50.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { children: [
12153
12364
  children,
12154
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
12155
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_react_select2.ItemText, { children })
12365
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
12366
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(import_react_select2.ItemText, { children })
12156
12367
  ]
12157
12368
  }
12158
12369
  );
@@ -12162,14 +12373,14 @@ SelectOption.displayName = "SelectOption";
12162
12373
 
12163
12374
  // src/components/Select/SelectOptionGroup.tsx
12164
12375
  var import_react_select3 = require("@radix-ui/react-select");
12165
- var import_styled_components76 = __toESM(require("styled-components"));
12166
- var import_jsx_runtime258 = require("react/jsx-runtime");
12167
- var StyledLabel4 = (0, import_styled_components76.default)(import_react_select3.Label)`
12376
+ var import_styled_components78 = __toESM(require("styled-components"));
12377
+ var import_jsx_runtime260 = require("react/jsx-runtime");
12378
+ var StyledLabel4 = (0, import_styled_components78.default)(import_react_select3.Label)`
12168
12379
  padding: var(--wui-select-option-padding);
12169
12380
  `;
12170
12381
  var SelectOptionGroup = ({ children, label, ...props }) => {
12171
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(import_react_select3.Group, { ...props, children: [
12172
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
12382
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(import_react_select3.Group, { ...props, children: [
12383
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
12173
12384
  Text,
12174
12385
  {
12175
12386
  prominence: "secondary",
@@ -12181,12 +12392,139 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
12181
12392
  ] });
12182
12393
  };
12183
12394
 
12395
+ // src/components/Slider/Slider.tsx
12396
+ var import_react_slider = require("@radix-ui/react-slider");
12397
+ var import_styled_components79 = __toESM(require("styled-components"));
12398
+ var import_type_guards51 = require("@wistia/type-guards");
12399
+ var import_jsx_runtime261 = require("react/jsx-runtime");
12400
+ var SliderContainer = import_styled_components79.default.div`
12401
+ /* width: 100%; */
12402
+ ${({ disabled }) => disabled ? import_styled_components79.css`
12403
+ opacity: 0.5;
12404
+
12405
+ & * {
12406
+ pointer-events: none;
12407
+ }
12408
+ ` : null}
12409
+ `;
12410
+ var StyledSliderRoot = (0, import_styled_components79.default)(import_react_slider.Root)`
12411
+ position: relative;
12412
+ display: flex;
12413
+ align-items: center;
12414
+ user-select: none;
12415
+ touch-action: none;
12416
+ width: 100%;
12417
+ `;
12418
+ var StyledSliderTrack = (0, import_styled_components79.default)(import_react_slider.Track)`
12419
+ background-color: #cccccc;
12420
+ position: relative;
12421
+ flex-grow: 1;
12422
+ border-radius: var(--wui-border-radius-rounded);
12423
+ height: 4px;
12424
+ `;
12425
+ var StyledSliderRange = (0, import_styled_components79.default)(import_react_slider.Range)`
12426
+ position: absolute;
12427
+ background-color: #0055ff;
12428
+ border-radius: var(--wui-border-radius-rounded);
12429
+ height: 100%;
12430
+ `;
12431
+ var StyledSliderThumb = (0, import_styled_components79.default)(import_react_slider.Thumb)`
12432
+ display: block;
12433
+ background-color: white;
12434
+ border-color: #0055ff;
12435
+ border-radius: 50%;
12436
+ border-style: solid;
12437
+ border-width: 2px;
12438
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
12439
+ cursor: grab;
12440
+ height: 20px;
12441
+ transition-duration: 70ms;
12442
+ transition-property: border-width, transform;
12443
+ transition-timing-function: cubic-bezier(0.2, 0, 1, 0.9);
12444
+ width: 20px;
12445
+
12446
+ &:hover,
12447
+ &:active {
12448
+ transform: scale(1.2);
12449
+ transform-origin: center;
12450
+ transition-timing-function: cubic-bezier(0.4, 0.14, 1, 1);
12451
+ }
12452
+
12453
+ &:focus-visible {
12454
+ border-width: 3px;
12455
+ outline: none;
12456
+ }
12457
+ `;
12458
+ var Slider = ({
12459
+ "aria-label": ariaLabel,
12460
+ "aria-labelledby": ariaLabelledby,
12461
+ disabled = false,
12462
+ initialValue = [0],
12463
+ max = 100,
12464
+ min = 0,
12465
+ onChange,
12466
+ step = 1,
12467
+ value,
12468
+ "data-testid": passedDataTestId,
12469
+ ...otherProps
12470
+ }) => {
12471
+ if (!((0, import_type_guards51.isNonEmptyString)(ariaLabel) || (0, import_type_guards51.isNonEmptyString)(ariaLabelledby))) {
12472
+ console.warn(
12473
+ "UI Slider: Sliders should have an accessible name. Add a label using the aria-label or aria-labelledby prop."
12474
+ );
12475
+ }
12476
+ const dataTestId = (0, import_type_guards51.isNotNil)(passedDataTestId) ? passedDataTestId : "ui-slider";
12477
+ const values = value ?? initialValue;
12478
+ const handleValueChange = (newValue) => {
12479
+ if (onChange) {
12480
+ onChange(newValue);
12481
+ }
12482
+ };
12483
+ const renderThumbs = () => {
12484
+ return values.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
12485
+ StyledSliderThumb,
12486
+ {
12487
+ "data-testid": `${dataTestId}-thumb-${index}`
12488
+ },
12489
+ `thumb-${index}`
12490
+ ));
12491
+ };
12492
+ const renderRoot = () => {
12493
+ const rootProps = {
12494
+ "aria-label": ariaLabel,
12495
+ "aria-labelledby": ariaLabelledby,
12496
+ $initialValue: initialValue,
12497
+ defaultValue: initialValue,
12498
+ disabled,
12499
+ max,
12500
+ min,
12501
+ onValueChange: handleValueChange,
12502
+ step,
12503
+ ...value ? { value } : {}
12504
+ };
12505
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(StyledSliderRoot, { ...rootProps, children: [
12506
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
12507
+ renderThumbs()
12508
+ ] });
12509
+ };
12510
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
12511
+ SliderContainer,
12512
+ {
12513
+ ...otherProps,
12514
+ "data-testid": dataTestId,
12515
+ disabled,
12516
+ children: renderRoot()
12517
+ }
12518
+ );
12519
+ };
12520
+ Slider.displayName = "Slider";
12521
+
12184
12522
  // src/components/Switch/Switch.tsx
12185
- var import_react63 = require("react");
12186
- var import_styled_components77 = __toESM(require("styled-components"));
12187
- var import_type_guards49 = require("@wistia/type-guards");
12188
- var import_jsx_runtime259 = require("react/jsx-runtime");
12189
- var sizeSmall3 = import_styled_components77.css`
12523
+ var import_react64 = require("react");
12524
+ var import_styled_components80 = __toESM(require("styled-components"));
12525
+ var import_type_guards52 = require("@wistia/type-guards");
12526
+ var import_jsx_runtime262 = require("react/jsx-runtime");
12527
+ var sizeSmall3 = import_styled_components80.css`
12190
12528
  --wui-size-small-width: 24px;
12191
12529
  --wui-size-small-height: 14px;
12192
12530
 
@@ -12201,7 +12539,7 @@ var sizeSmall3 = import_styled_components77.css`
12201
12539
  height: calc(var(--wui-size-small-width) / 2);
12202
12540
  }
12203
12541
  `;
12204
- var sizeMedium3 = import_styled_components77.css`
12542
+ var sizeMedium3 = import_styled_components80.css`
12205
12543
  --wui-size-medium-width: 32px;
12206
12544
  --wui-size-medium-height: 18px;
12207
12545
 
@@ -12216,7 +12554,7 @@ var sizeMedium3 = import_styled_components77.css`
12216
12554
  height: calc(var(--wui-size-medium-width) / 2);
12217
12555
  }
12218
12556
  `;
12219
- var sizeLarge3 = import_styled_components77.css`
12557
+ var sizeLarge3 = import_styled_components80.css`
12220
12558
  --wui-size-large-width: 40px;
12221
12559
  --wui-size-large-height: 22px;
12222
12560
 
@@ -12236,14 +12574,14 @@ var getSizeCss3 = (size) => {
12236
12574
  if (size === "lg") return sizeLarge3;
12237
12575
  return sizeMedium3;
12238
12576
  };
12239
- var StyledSwitchWrapper = import_styled_components77.default.div`
12577
+ var StyledSwitchWrapper = import_styled_components80.default.div`
12240
12578
  display: flex;
12241
12579
  margin: 0;
12242
12580
 
12243
12581
  /* TODO this solves a problem but potentially causes and a11y issue */
12244
12582
  user-select: none;
12245
12583
  `;
12246
- var StyledSwitchInput = import_styled_components77.default.div`
12584
+ var StyledSwitchInput = import_styled_components80.default.div`
12247
12585
  ${({ $size }) => getSizeCss3($size)}
12248
12586
  line-height: 0;
12249
12587
  margin: 0;
@@ -12271,7 +12609,7 @@ var StyledSwitchInput = import_styled_components77.default.div`
12271
12609
  transition: all 0.2s ease-in-out;
12272
12610
  }
12273
12611
  `;
12274
- var StyledHiddenSwitchInput = import_styled_components77.default.input`
12612
+ var StyledHiddenSwitchInput = import_styled_components80.default.input`
12275
12613
  ${visuallyHiddenStyle}
12276
12614
 
12277
12615
  /* toggles display of faux-input background-color and toggle position */
@@ -12287,7 +12625,7 @@ var StyledHiddenSwitchInput = import_styled_components77.default.input`
12287
12625
  }
12288
12626
  }
12289
12627
  `;
12290
- var Switch = (0, import_react63.forwardRef)(
12628
+ var Switch = (0, import_react64.forwardRef)(
12291
12629
  ({
12292
12630
  checked,
12293
12631
  disabled = false,
@@ -12302,10 +12640,10 @@ var Switch = (0, import_react63.forwardRef)(
12302
12640
  hideLabel = false,
12303
12641
  ...props
12304
12642
  }, ref) => {
12305
- const generatedId = (0, import_react63.useId)();
12306
- const computedId = (0, import_type_guards49.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
12307
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
12308
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
12643
+ const generatedId = (0, import_react64.useId)();
12644
+ const computedId = (0, import_type_guards52.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
12645
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
12646
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
12309
12647
  StyledHiddenSwitchInput,
12310
12648
  {
12311
12649
  ...props,
@@ -12320,10 +12658,10 @@ var Switch = (0, import_react63.forwardRef)(
12320
12658
  value
12321
12659
  }
12322
12660
  ),
12323
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
12661
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
12324
12662
  FormControlLabel,
12325
12663
  {
12326
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
12664
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
12327
12665
  StyledSwitchInput,
12328
12666
  {
12329
12667
  $disabled: disabled,
@@ -12345,25 +12683,25 @@ var Switch = (0, import_react63.forwardRef)(
12345
12683
  Switch.displayName = "Switch";
12346
12684
 
12347
12685
  // src/components/Table/Table.tsx
12348
- var import_styled_components78 = __toESM(require("styled-components"));
12349
- var import_jsx_runtime260 = require("react/jsx-runtime");
12350
- var StyledTable = import_styled_components78.default.table`
12686
+ var import_styled_components81 = __toESM(require("styled-components"));
12687
+ var import_jsx_runtime263 = require("react/jsx-runtime");
12688
+ var StyledTable = import_styled_components81.default.table`
12351
12689
  width: 100%;
12352
12690
  border-collapse: collapse;
12353
12691
 
12354
- ${({ $divided }) => $divided && import_styled_components78.css`
12692
+ ${({ $divided }) => $divided && import_styled_components81.css`
12355
12693
  tr {
12356
12694
  border-bottom: 1px solid var(--wui-color-border);
12357
12695
  }
12358
12696
  `}
12359
12697
 
12360
- ${({ $striped }) => $striped && import_styled_components78.css`
12698
+ ${({ $striped }) => $striped && import_styled_components81.css`
12361
12699
  tbody tr:nth-child(even) {
12362
12700
  background-color: var(--wui-color-bg-surface-secondary);
12363
12701
  }
12364
12702
  `}
12365
12703
 
12366
- ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && import_styled_components78.css`
12704
+ ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && import_styled_components81.css`
12367
12705
  thead {
12368
12706
  ${visuallyHiddenStyle}
12369
12707
  }
@@ -12376,7 +12714,7 @@ var Table = ({
12376
12714
  visuallyHiddenHeader = false,
12377
12715
  ...props
12378
12716
  }) => {
12379
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
12717
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
12380
12718
  StyledTable,
12381
12719
  {
12382
12720
  $divided: divided,
@@ -12389,83 +12727,83 @@ var Table = ({
12389
12727
  };
12390
12728
 
12391
12729
  // src/components/Table/TableBody.tsx
12392
- var import_styled_components79 = __toESM(require("styled-components"));
12730
+ var import_styled_components82 = __toESM(require("styled-components"));
12393
12731
 
12394
12732
  // src/components/Table/TableSectionContext.ts
12395
- var import_react64 = require("react");
12396
- var TableSectionContext = (0, import_react64.createContext)(null);
12733
+ var import_react65 = require("react");
12734
+ var TableSectionContext = (0, import_react65.createContext)(null);
12397
12735
 
12398
12736
  // src/components/Table/TableBody.tsx
12399
- var import_jsx_runtime261 = require("react/jsx-runtime");
12400
- var StyledTableBody = import_styled_components79.default.tbody``;
12737
+ var import_jsx_runtime264 = require("react/jsx-runtime");
12738
+ var StyledTableBody = import_styled_components82.default.tbody``;
12401
12739
  var TableBody = ({ children, ...props }) => {
12402
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(StyledTableBody, { ...props, children }) });
12740
+ return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StyledTableBody, { ...props, children }) });
12403
12741
  };
12404
12742
 
12405
12743
  // src/components/Table/TableCell.tsx
12406
- var import_react65 = require("react");
12407
- var import_styled_components80 = __toESM(require("styled-components"));
12408
- var import_jsx_runtime262 = require("react/jsx-runtime");
12409
- var sharedStyles = import_styled_components80.css`
12744
+ var import_react66 = require("react");
12745
+ var import_styled_components83 = __toESM(require("styled-components"));
12746
+ var import_jsx_runtime265 = require("react/jsx-runtime");
12747
+ var sharedStyles = import_styled_components83.css`
12410
12748
  color: var(--wui-color-text);
12411
12749
  padding: var(--wui-space-02);
12412
12750
  text-align: left;
12413
12751
  `;
12414
- var StyledTh = import_styled_components80.default.th`
12752
+ var StyledTh = import_styled_components83.default.th`
12415
12753
  ${sharedStyles}
12416
12754
  font-size: var(--wui-typography-body-4-size);
12417
12755
  font-weight: var(--wui-typography-weight-label-bold);
12418
12756
  line-height: var(--wui-typography-body-4-line-height);
12419
12757
  `;
12420
- var StyledTd = import_styled_components80.default.td`
12758
+ var StyledTd = import_styled_components83.default.td`
12421
12759
  ${sharedStyles}
12422
12760
  font-size: var(--wui-typography-body-2-size);
12423
12761
  font-weight: var(--wui-typography-body-2-weight);
12424
12762
  line-height: var(--wui-typography-body-2-line-height);
12425
12763
  `;
12426
12764
  var TableCell = ({ children, ...props }) => {
12427
- const section = (0, import_react65.useContext)(TableSectionContext);
12765
+ const section = (0, import_react66.useContext)(TableSectionContext);
12428
12766
  if (section === "head") {
12429
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(StyledTh, { ...props, children });
12767
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(StyledTh, { ...props, children });
12430
12768
  }
12431
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(StyledTd, { ...props, children });
12769
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(StyledTd, { ...props, children });
12432
12770
  };
12433
12771
 
12434
12772
  // src/components/Table/TableFoot.tsx
12435
- var import_styled_components81 = __toESM(require("styled-components"));
12436
- var import_jsx_runtime263 = require("react/jsx-runtime");
12437
- var StyledTableFoot = import_styled_components81.default.tfoot``;
12773
+ var import_styled_components84 = __toESM(require("styled-components"));
12774
+ var import_jsx_runtime266 = require("react/jsx-runtime");
12775
+ var StyledTableFoot = import_styled_components84.default.tfoot``;
12438
12776
  var TableFoot = ({ children, ...props }) => {
12439
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(StyledTableFoot, { ...props, children }) });
12777
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StyledTableFoot, { ...props, children }) });
12440
12778
  };
12441
12779
 
12442
12780
  // src/components/Table/TableHead.tsx
12443
- var import_styled_components82 = __toESM(require("styled-components"));
12444
- var import_jsx_runtime264 = require("react/jsx-runtime");
12445
- var StyledThead = import_styled_components82.default.thead``;
12781
+ var import_styled_components85 = __toESM(require("styled-components"));
12782
+ var import_jsx_runtime267 = require("react/jsx-runtime");
12783
+ var StyledThead = import_styled_components85.default.thead``;
12446
12784
  var TableHead = ({ children, ...props }) => {
12447
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StyledThead, { ...props, children }) });
12785
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(StyledThead, { ...props, children }) });
12448
12786
  };
12449
12787
 
12450
12788
  // src/components/Table/TableRow.tsx
12451
- var import_styled_components83 = __toESM(require("styled-components"));
12452
- var import_jsx_runtime265 = require("react/jsx-runtime");
12453
- var StyledTableRow = import_styled_components83.default.tr``;
12789
+ var import_styled_components86 = __toESM(require("styled-components"));
12790
+ var import_jsx_runtime268 = require("react/jsx-runtime");
12791
+ var StyledTableRow = import_styled_components86.default.tr``;
12454
12792
  var TableRow = ({ children, ...props }) => {
12455
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(StyledTableRow, { ...props, children });
12793
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(StyledTableRow, { ...props, children });
12456
12794
  };
12457
12795
 
12458
12796
  // src/components/Tabs/Tabs.tsx
12459
12797
  var import_react_tabs = require("@radix-ui/react-tabs");
12460
- var import_react67 = require("react");
12461
- var import_type_guards50 = require("@wistia/type-guards");
12798
+ var import_react68 = require("react");
12799
+ var import_type_guards53 = require("@wistia/type-guards");
12462
12800
 
12463
12801
  // src/components/Tabs/useTabsValue.tsx
12464
- var import_react66 = require("react");
12465
- var TabsValueContext = (0, import_react66.createContext)(null);
12802
+ var import_react67 = require("react");
12803
+ var TabsValueContext = (0, import_react67.createContext)(null);
12466
12804
  var TabsValueProvider = TabsValueContext.Provider;
12467
12805
  var useTabsValue = () => {
12468
- const context = (0, import_react66.useContext)(TabsValueContext);
12806
+ const context = (0, import_react67.useContext)(TabsValueContext);
12469
12807
  if (context === null) {
12470
12808
  throw new Error("useTabsValue must be used within a TabsValueProvider");
12471
12809
  }
@@ -12473,7 +12811,7 @@ var useTabsValue = () => {
12473
12811
  };
12474
12812
 
12475
12813
  // src/components/Tabs/Tabs.tsx
12476
- var import_jsx_runtime266 = require("react/jsx-runtime");
12814
+ var import_jsx_runtime269 = require("react/jsx-runtime");
12477
12815
  var Tabs = ({
12478
12816
  children,
12479
12817
  value: valueProp,
@@ -12481,8 +12819,8 @@ var Tabs = ({
12481
12819
  defaultValue,
12482
12820
  ...props
12483
12821
  }) => {
12484
- const [value, setValue] = (0, import_react67.useState)(valueProp ?? defaultValue);
12485
- const onValueChange = (0, import_react67.useCallback)(
12822
+ const [value, setValue] = (0, import_react68.useState)(valueProp ?? defaultValue);
12823
+ const onValueChange = (0, import_react68.useCallback)(
12486
12824
  (newValue) => {
12487
12825
  setValue(newValue);
12488
12826
  if (onValueChangeProp) {
@@ -12495,60 +12833,60 @@ var Tabs = ({
12495
12833
  ...props,
12496
12834
  onValueChange
12497
12835
  };
12498
- if ((0, import_type_guards50.isNotNil)(value)) {
12836
+ if ((0, import_type_guards53.isNotNil)(value)) {
12499
12837
  rootProps.value = value;
12500
12838
  }
12501
- if ((0, import_type_guards50.isNotNil)(defaultValue)) {
12839
+ if ((0, import_type_guards53.isNotNil)(defaultValue)) {
12502
12840
  rootProps.defaultValue = defaultValue;
12503
12841
  }
12504
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(SelectedItemStyleProvider, { children }) }) });
12842
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(SelectedItemStyleProvider, { children }) }) });
12505
12843
  };
12506
12844
  Tabs.displayName = "Tabs";
12507
12845
 
12508
12846
  // src/components/Tabs/TabsContent.tsx
12509
12847
  var import_react_tabs2 = require("@radix-ui/react-tabs");
12510
- var import_jsx_runtime267 = require("react/jsx-runtime");
12848
+ var import_jsx_runtime270 = require("react/jsx-runtime");
12511
12849
  var TabsContent = ({ children, value }) => {
12512
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(import_react_tabs2.Content, { value, children });
12850
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(import_react_tabs2.Content, { value, children });
12513
12851
  };
12514
12852
  TabsContent.displayName = "TabsContent";
12515
12853
 
12516
12854
  // src/components/Tabs/TabsList.tsx
12517
12855
  var import_react_tabs3 = require("@radix-ui/react-tabs");
12518
- var import_styled_components85 = __toESM(require("styled-components"));
12856
+ var import_styled_components88 = __toESM(require("styled-components"));
12519
12857
 
12520
12858
  // src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
12521
- var import_styled_components84 = __toESM(require("styled-components"));
12522
- var TabsSelectedItemIndicatorDiv = (0, import_styled_components84.default)(SelectedItemIndicatorDiv)`
12859
+ var import_styled_components87 = __toESM(require("styled-components"));
12860
+ var TabsSelectedItemIndicatorDiv = (0, import_styled_components87.default)(SelectedItemIndicatorDiv)`
12523
12861
  &:has(~ button[role='tab']:focus-visible) {
12524
12862
  outline: 2px solid var(--wui-color-focus-ring);
12525
12863
  }
12526
12864
  `;
12527
12865
 
12528
12866
  // src/components/Tabs/SelectedTabIndicator.tsx
12529
- var import_jsx_runtime268 = require("react/jsx-runtime");
12867
+ var import_jsx_runtime271 = require("react/jsx-runtime");
12530
12868
  var SelectedTabIndicator = () => {
12531
12869
  const { selectedItemIndicatorStyle } = useSelectedItemStyle();
12532
12870
  const selectedValue = useTabsValue();
12533
12871
  if (selectedValue == null) {
12534
12872
  return null;
12535
12873
  }
12536
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12874
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12537
12875
  };
12538
12876
 
12539
12877
  // src/components/Tabs/TabsList.tsx
12540
- var import_jsx_runtime269 = require("react/jsx-runtime");
12541
- var StyledRadixTabsList = (0, import_styled_components85.default)(import_react_tabs3.List)`
12878
+ var import_jsx_runtime272 = require("react/jsx-runtime");
12879
+ var StyledRadixTabsList = (0, import_styled_components88.default)(import_react_tabs3.List)`
12542
12880
  ${segmentedControlStyles}
12543
12881
  `;
12544
12882
  var TabsList = ({ children, fullWidth = true, ...props }) => {
12545
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12883
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
12546
12884
  StyledRadixTabsList,
12547
12885
  {
12548
12886
  $fullWidth: fullWidth,
12549
12887
  "aria-label": props["aria-label"],
12550
12888
  children: [
12551
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(SelectedTabIndicator, {}),
12889
+ /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(SelectedTabIndicator, {}),
12552
12890
  children
12553
12891
  ]
12554
12892
  }
@@ -12557,13 +12895,13 @@ var TabsList = ({ children, fullWidth = true, ...props }) => {
12557
12895
  TabsList.displayName = "TabsList";
12558
12896
 
12559
12897
  // src/components/Tabs/TabsTrigger.tsx
12560
- var import_react68 = require("react");
12561
- var import_type_guards51 = require("@wistia/type-guards");
12898
+ var import_react69 = require("react");
12899
+ var import_type_guards54 = require("@wistia/type-guards");
12562
12900
 
12563
12901
  // src/components/Tabs/StyledRadixTabsTrigger.tsx
12564
- var import_styled_components86 = __toESM(require("styled-components"));
12902
+ var import_styled_components89 = __toESM(require("styled-components"));
12565
12903
  var import_react_tabs4 = require("@radix-ui/react-tabs");
12566
- var StyledRadixTabsTrigger = (0, import_styled_components86.default)(import_react_tabs4.Trigger)`
12904
+ var StyledRadixTabsTrigger = (0, import_styled_components89.default)(import_react_tabs4.Trigger)`
12567
12905
  ${segmentedControlItemStyles}
12568
12906
 
12569
12907
  &:focus-visible {
@@ -12572,14 +12910,14 @@ var StyledRadixTabsTrigger = (0, import_styled_components86.default)(import_reac
12572
12910
  `;
12573
12911
 
12574
12912
  // src/components/Tabs/TabsTrigger.tsx
12575
- var import_jsx_runtime270 = require("react/jsx-runtime");
12576
- var TabsTrigger = (0, import_react68.forwardRef)(
12913
+ var import_jsx_runtime273 = require("react/jsx-runtime");
12914
+ var TabsTrigger = (0, import_react69.forwardRef)(
12577
12915
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
12578
12916
  const selectedValue = useTabsValue();
12579
12917
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
12580
- const buttonRef = (0, import_react68.useRef)(null);
12918
+ const buttonRef = (0, import_react69.useRef)(null);
12581
12919
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
12582
- (0, import_react68.useEffect)(() => {
12920
+ (0, import_react69.useEffect)(() => {
12583
12921
  const buttonElem = buttonRef.current;
12584
12922
  if (!buttonElem) {
12585
12923
  return void 0;
@@ -12604,13 +12942,13 @@ var TabsTrigger = (0, import_react68.forwardRef)(
12604
12942
  resizeObserver.disconnect();
12605
12943
  };
12606
12944
  }, [selectedValue, setSelectedItemMeasurements, value]);
12607
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12945
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
12608
12946
  StyledRadixTabsTrigger,
12609
12947
  {
12610
12948
  ...otherProps,
12611
12949
  ref: combinedRef,
12612
- $hasLabel: (0, import_type_guards51.isNotNil)(label),
12613
- "aria-label": (0, import_type_guards51.isNotNil)(label) ? void 0 : ariaLabel,
12950
+ $hasLabel: (0, import_type_guards54.isNotNil)(label),
12951
+ "aria-label": (0, import_type_guards54.isNotNil)(label) ? void 0 : ariaLabel,
12614
12952
  disabled,
12615
12953
  value,
12616
12954
  children: [
@@ -12624,11 +12962,11 @@ var TabsTrigger = (0, import_react68.forwardRef)(
12624
12962
  TabsTrigger.displayName = "TabsTrigger";
12625
12963
 
12626
12964
  // src/components/Tag/Tag.tsx
12627
- var import_react69 = require("react");
12628
- var import_styled_components87 = __toESM(require("styled-components"));
12629
- var import_type_guards52 = require("@wistia/type-guards");
12630
- var import_jsx_runtime271 = require("react/jsx-runtime");
12631
- var TagLabel = import_styled_components87.default.a`
12965
+ var import_react70 = require("react");
12966
+ var import_styled_components90 = __toESM(require("styled-components"));
12967
+ var import_type_guards55 = require("@wistia/type-guards");
12968
+ var import_jsx_runtime274 = require("react/jsx-runtime");
12969
+ var TagLabel = import_styled_components90.default.a`
12632
12970
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12633
12971
  font-size: var(--wui-typography-label-4-size);
12634
12972
  font-weight: var(--wui-typography-label-4-weight);
@@ -12663,14 +13001,14 @@ var TagLabel = import_styled_components87.default.a`
12663
13001
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12664
13002
  }
12665
13003
  `;
12666
- var TagDivider = import_styled_components87.default.div`
13004
+ var TagDivider = import_styled_components90.default.div`
12667
13005
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12668
13006
  border-left: 1px solid var(--wui-color-border);
12669
13007
  display: flex;
12670
13008
  height: 14px;
12671
13009
  width: 1px;
12672
13010
  `;
12673
- var StyledRemoveButton = import_styled_components87.default.button`
13011
+ var StyledRemoveButton = import_styled_components90.default.button`
12674
13012
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12675
13013
  all: unset;
12676
13014
  cursor: pointer;
@@ -12698,7 +13036,7 @@ var StyledRemoveButton = import_styled_components87.default.button`
12698
13036
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12699
13037
  }
12700
13038
  `;
12701
- var StyledTag = import_styled_components87.default.div`
13039
+ var StyledTag = import_styled_components90.default.div`
12702
13040
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12703
13041
  align-items: center;
12704
13042
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12711,48 +13049,48 @@ var StyledTag = import_styled_components87.default.div`
12711
13049
  }
12712
13050
  `;
12713
13051
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12714
- if ((0, import_type_guards52.isNil)(onClickRemove)) {
13052
+ if ((0, import_type_guards55.isNil)(onClickRemove)) {
12715
13053
  return null;
12716
13054
  }
12717
- if ((0, import_type_guards52.isNil)(onClickRemoveLabel)) {
13055
+ if ((0, import_type_guards55.isNil)(onClickRemoveLabel)) {
12718
13056
  throw new Error(
12719
13057
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12720
13058
  );
12721
13059
  }
12722
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(import_jsx_runtime271.Fragment, { children: [
12723
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(TagDivider, { $colorScheme: colorScheme }),
12724
- /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
13060
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(import_jsx_runtime274.Fragment, { children: [
13061
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(TagDivider, { $colorScheme: colorScheme }),
13062
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
12725
13063
  StyledRemoveButton,
12726
13064
  {
12727
13065
  $colorScheme: colorScheme,
12728
13066
  onClick: onClickRemove,
12729
13067
  type: "button",
12730
13068
  children: [
12731
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
13069
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
12732
13070
  Icon,
12733
13071
  {
12734
13072
  size: "sm",
12735
13073
  type: "close"
12736
13074
  }
12737
13075
  ),
12738
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
13076
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12739
13077
  ]
12740
13078
  }
12741
13079
  )
12742
13080
  ] });
12743
13081
  };
12744
- var Tag = (0, import_react69.forwardRef)(
13082
+ var Tag = (0, import_react70.forwardRef)(
12745
13083
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12746
- const hasIcon = (0, import_type_guards52.isNotNil)(icon);
12747
- const labelProps = (0, import_type_guards52.isNotNil)(href) && (0, import_type_guards52.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12748
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
13084
+ const hasIcon = (0, import_type_guards55.isNotNil)(icon);
13085
+ const labelProps = (0, import_type_guards55.isNotNil)(href) && (0, import_type_guards55.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
13086
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
12749
13087
  StyledTag,
12750
13088
  {
12751
13089
  ref,
12752
13090
  $colorScheme: colorScheme,
12753
13091
  ...props,
12754
13092
  children: [
12755
- /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
13093
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
12756
13094
  TagLabel,
12757
13095
  {
12758
13096
  ...labelProps,
@@ -12763,7 +13101,7 @@ var Tag = (0, import_react69.forwardRef)(
12763
13101
  ]
12764
13102
  }
12765
13103
  ),
12766
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
13104
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
12767
13105
  RemoveButton,
12768
13106
  {
12769
13107
  colorScheme,
@@ -12779,10 +13117,10 @@ var Tag = (0, import_react69.forwardRef)(
12779
13117
  Tag.displayName = "Tag";
12780
13118
 
12781
13119
  // src/components/Thumbnail/ThumbnailBadge.tsx
12782
- var import_styled_components88 = __toESM(require("styled-components"));
12783
- var import_type_guards53 = require("@wistia/type-guards");
12784
- var import_jsx_runtime272 = require("react/jsx-runtime");
12785
- var StyledThumbnailBadge = import_styled_components88.default.div`
13120
+ var import_styled_components91 = __toESM(require("styled-components"));
13121
+ var import_type_guards56 = require("@wistia/type-guards");
13122
+ var import_jsx_runtime275 = require("react/jsx-runtime");
13123
+ var StyledThumbnailBadge = import_styled_components91.default.div`
12786
13124
  align-items: center;
12787
13125
  background-color: rgb(0 0 0 / 50%);
12788
13126
  border-radius: var(--wui-border-radius-01);
@@ -12807,23 +13145,23 @@ var StyledThumbnailBadge = import_styled_components88.default.div`
12807
13145
  }
12808
13146
  `;
12809
13147
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12810
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(StyledThumbnailBadge, { ...props, children: [
12811
- (0, import_type_guards53.isNotNil)(icon) && icon,
12812
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("span", { children: label })
13148
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(StyledThumbnailBadge, { ...props, children: [
13149
+ (0, import_type_guards56.isNotNil)(icon) && icon,
13150
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("span", { children: label })
12813
13151
  ] });
12814
13152
  };
12815
13153
  ThumbnailBadge.displayName = "ThumbnailBadge";
12816
13154
 
12817
13155
  // src/components/Thumbnail/Thumbnail.tsx
12818
- var import_react70 = require("react");
12819
- var import_styled_components91 = __toESM(require("styled-components"));
12820
- var import_type_guards56 = require("@wistia/type-guards");
13156
+ var import_react71 = require("react");
13157
+ var import_styled_components94 = __toESM(require("styled-components"));
13158
+ var import_type_guards59 = require("@wistia/type-guards");
12821
13159
 
12822
13160
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12823
- var import_type_guards54 = require("@wistia/type-guards");
12824
- var import_styled_components89 = require("styled-components");
13161
+ var import_type_guards57 = require("@wistia/type-guards");
13162
+ var import_styled_components92 = require("styled-components");
12825
13163
  var gradients = {
12826
- defaultDarkOne: import_styled_components89.css`
13164
+ defaultDarkOne: import_styled_components92.css`
12827
13165
  background-color: #222d66;
12828
13166
  background-image:
12829
13167
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12831,7 +13169,7 @@ var gradients = {
12831
13169
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12832
13170
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12833
13171
  `,
12834
- defaultDarkTwo: import_styled_components89.css`
13172
+ defaultDarkTwo: import_styled_components92.css`
12835
13173
  background-color: #222d66;
12836
13174
  background-image:
12837
13175
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12839,7 +13177,7 @@ var gradients = {
12839
13177
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12840
13178
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12841
13179
  `,
12842
- defaultLightOne: import_styled_components89.css`
13180
+ defaultLightOne: import_styled_components92.css`
12843
13181
  background-color: #ccd5ff;
12844
13182
  background-image:
12845
13183
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12847,13 +13185,13 @@ var gradients = {
12847
13185
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12848
13186
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12849
13187
  `,
12850
- defaultLightTwo: import_styled_components89.css`
13188
+ defaultLightTwo: import_styled_components92.css`
12851
13189
  background-color: #ccd5ff;
12852
13190
  background-image:
12853
13191
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12854
13192
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12855
13193
  `,
12856
- defaultMidOne: import_styled_components89.css`
13194
+ defaultMidOne: import_styled_components92.css`
12857
13195
  background-color: #6b84ff;
12858
13196
  background-image:
12859
13197
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12861,13 +13199,13 @@ var gradients = {
12861
13199
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12862
13200
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12863
13201
  `,
12864
- defaultMidTwo: import_styled_components89.css`
13202
+ defaultMidTwo: import_styled_components92.css`
12865
13203
  background-color: #6b84ff;
12866
13204
  background-image:
12867
13205
  radial-gradient(ellipse at top, #2949e5, transparent),
12868
13206
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12869
13207
  `,
12870
- green: import_styled_components89.css`
13208
+ green: import_styled_components92.css`
12871
13209
  background-color: #fafffa;
12872
13210
  background-image:
12873
13211
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12875,7 +13213,7 @@ var gradients = {
12875
13213
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12876
13214
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12877
13215
  `,
12878
- greenWithPop: import_styled_components89.css`
13216
+ greenWithPop: import_styled_components92.css`
12879
13217
  background-color: #fafffa;
12880
13218
  background-image:
12881
13219
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12883,7 +13221,7 @@ var gradients = {
12883
13221
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12884
13222
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12885
13223
  `,
12886
- pink: import_styled_components89.css`
13224
+ pink: import_styled_components92.css`
12887
13225
  background-color: #fffff0;
12888
13226
  background-image:
12889
13227
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12891,7 +13229,7 @@ var gradients = {
12891
13229
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12892
13230
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12893
13231
  `,
12894
- pinkWithPop: import_styled_components89.css`
13232
+ pinkWithPop: import_styled_components92.css`
12895
13233
  background-color: #fffff0;
12896
13234
  background-image:
12897
13235
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12899,7 +13237,7 @@ var gradients = {
12899
13237
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12900
13238
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12901
13239
  `,
12902
- playfulGradientOne: import_styled_components89.css`
13240
+ playfulGradientOne: import_styled_components92.css`
12903
13241
  background-color: #f7f8ff;
12904
13242
  background-image:
12905
13243
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12907,7 +13245,7 @@ var gradients = {
12907
13245
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12908
13246
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12909
13247
  `,
12910
- playfulGradientTwo: import_styled_components89.css`
13248
+ playfulGradientTwo: import_styled_components92.css`
12911
13249
  background-color: #f7f8ff;
12912
13250
  background-image:
12913
13251
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12915,13 +13253,13 @@ var gradients = {
12915
13253
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12916
13254
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12917
13255
  `,
12918
- purple: import_styled_components89.css`
13256
+ purple: import_styled_components92.css`
12919
13257
  background-color: #f2caff;
12920
13258
  background-image:
12921
13259
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12922
13260
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12923
13261
  `,
12924
- purpleWithPop: import_styled_components89.css`
13262
+ purpleWithPop: import_styled_components92.css`
12925
13263
  background-color: #f2caff;
12926
13264
  background-image:
12927
13265
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12929,7 +13267,7 @@ var gradients = {
12929
13267
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12930
13268
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12931
13269
  `,
12932
- yellow: import_styled_components89.css`
13270
+ yellow: import_styled_components92.css`
12933
13271
  background-color: #fffff0;
12934
13272
  background-image:
12935
13273
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12937,7 +13275,7 @@ var gradients = {
12937
13275
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12938
13276
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12939
13277
  `,
12940
- yellowWithPop: import_styled_components89.css`
13278
+ yellowWithPop: import_styled_components92.css`
12941
13279
  background-color: #fffff0;
12942
13280
  background-image:
12943
13281
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12948,14 +13286,14 @@ var gradients = {
12948
13286
  };
12949
13287
  var gradientMap = Object.keys(gradients);
12950
13288
  var getBackgroundGradient = (gradientName = void 0) => {
12951
- return (0, import_type_guards54.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
13289
+ return (0, import_type_guards57.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12952
13290
  };
12953
13291
 
12954
13292
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
12955
- var import_styled_components90 = __toESM(require("styled-components"));
12956
- var import_type_guards55 = require("@wistia/type-guards");
12957
- var import_jsx_runtime273 = require("react/jsx-runtime");
12958
- var ScrubLine = import_styled_components90.default.div`
13293
+ var import_styled_components93 = __toESM(require("styled-components"));
13294
+ var import_type_guards58 = require("@wistia/type-guards");
13295
+ var import_jsx_runtime276 = require("react/jsx-runtime");
13296
+ var ScrubLine = import_styled_components93.default.div`
12959
13297
  position: absolute;
12960
13298
  top: 0;
12961
13299
  height: 100%;
@@ -13039,8 +13377,8 @@ var ThumbnailStoryboardViewer = ({
13039
13377
  );
13040
13378
  const backgroundSize = `${scaledStoryboardWidth}px ${scaledStoryboardHeight}px`;
13041
13379
  const backgroundImage = `url(${storyboardUrl})`;
13042
- const showScrubLine = (0, import_type_guards55.isNotNil)(cursorPosition);
13043
- const scrubLinePosition = (0, import_type_guards55.isNotNil)(cursorPosition) ? `${cursorPosition - 1}px` : "0";
13380
+ const showScrubLine = (0, import_type_guards58.isNotNil)(cursorPosition);
13381
+ const scrubLinePosition = (0, import_type_guards58.isNotNil)(cursorPosition) ? `${cursorPosition - 1}px` : "0";
13044
13382
  const viewerStyles = {
13045
13383
  position: "relative",
13046
13384
  overflow: "hidden",
@@ -13057,14 +13395,14 @@ var ThumbnailStoryboardViewer = ({
13057
13395
  backgroundPosition,
13058
13396
  backgroundSize
13059
13397
  };
13060
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
13398
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
13061
13399
  "div",
13062
13400
  {
13063
13401
  ...props,
13064
13402
  style: viewerStyles,
13065
13403
  children: [
13066
- /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("div", { style: storyboardStyles }),
13067
- showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13404
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("div", { style: storyboardStyles }),
13405
+ showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
13068
13406
  ScrubLine,
13069
13407
  {
13070
13408
  style: {
@@ -13078,20 +13416,20 @@ var ThumbnailStoryboardViewer = ({
13078
13416
  };
13079
13417
 
13080
13418
  // src/components/Thumbnail/Thumbnail.tsx
13081
- var import_jsx_runtime274 = require("react/jsx-runtime");
13082
- var WideThumbnailImage = import_styled_components91.default.img`
13419
+ var import_jsx_runtime277 = require("react/jsx-runtime");
13420
+ var WideThumbnailImage = import_styled_components94.default.img`
13083
13421
  height: 100%;
13084
13422
  object-fit: cover;
13085
13423
  width: 100%;
13086
13424
  `;
13087
- var SquareThumbnailImage = import_styled_components91.default.img`
13425
+ var SquareThumbnailImage = import_styled_components94.default.img`
13088
13426
  backdrop-filter: blur(8px);
13089
13427
  object-fit: contain;
13090
13428
  width: 100%;
13091
13429
  `;
13092
13430
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13093
13431
  if (thumbnailImageType === "wide") {
13094
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13432
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
13095
13433
  WideThumbnailImage,
13096
13434
  {
13097
13435
  alt: "",
@@ -13100,7 +13438,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13100
13438
  }
13101
13439
  );
13102
13440
  }
13103
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13441
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
13104
13442
  SquareThumbnailImage,
13105
13443
  {
13106
13444
  alt: "",
@@ -13109,11 +13447,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13109
13447
  }
13110
13448
  );
13111
13449
  };
13112
- var StyledThumbnail = import_styled_components91.default.div`
13113
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards56.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
13450
+ var StyledThumbnail = import_styled_components94.default.div`
13451
+ background-image: ${({ $backgroundUrl }) => (0, import_type_guards59.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
13114
13452
  ${({ $backgroundUrl, $gradientBackground }) => (
13115
13453
  // if we don't have $backgroundUrl show a gradient
13116
- (0, import_type_guards56.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
13454
+ (0, import_type_guards59.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
13117
13455
  )};
13118
13456
  background-position: center center;
13119
13457
  background-size: cover;
@@ -13138,7 +13476,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
13138
13476
  left: relativeLeft
13139
13477
  };
13140
13478
  };
13141
- var Thumbnail = (0, import_react70.forwardRef)(
13479
+ var Thumbnail = (0, import_react71.forwardRef)(
13142
13480
  ({
13143
13481
  gradientBackground = "defaultMidOne",
13144
13482
  thumbnailImageType = "square",
@@ -13149,17 +13487,17 @@ var Thumbnail = (0, import_react70.forwardRef)(
13149
13487
  height,
13150
13488
  ...props
13151
13489
  }, ref) => {
13152
- const [percent, setPercent] = (0, import_react70.useState)(0);
13153
- const [isMouseOver, setIsMouseOver] = (0, import_react70.useState)(false);
13154
- const [isStoryboardReady, setIsStoryboardReady] = (0, import_react70.useState)(false);
13155
- const storyboardElementRef = (0, import_react70.useRef)(null);
13156
- const [cursorPosition, setCursorPosition] = (0, import_react70.useState)(null);
13157
- const backgroundUrl = (0, import_react70.useMemo)(
13158
- () => thumbnailImageType === "square" && (0, import_type_guards56.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
13490
+ const [percent, setPercent] = (0, import_react71.useState)(0);
13491
+ const [isMouseOver, setIsMouseOver] = (0, import_react71.useState)(false);
13492
+ const [isStoryboardReady, setIsStoryboardReady] = (0, import_react71.useState)(false);
13493
+ const storyboardElementRef = (0, import_react71.useRef)(null);
13494
+ const [cursorPosition, setCursorPosition] = (0, import_react71.useState)(null);
13495
+ const backgroundUrl = (0, import_react71.useMemo)(
13496
+ () => thumbnailImageType === "square" && (0, import_type_guards59.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
13159
13497
  [thumbnailImageType, thumbnailUrl]
13160
13498
  );
13161
- const isScrubbable = (0, import_type_guards56.isNotNil)(storyboard);
13162
- const trackStoryboardLoadStatus = (0, import_react70.useCallback)(() => {
13499
+ const isScrubbable = (0, import_type_guards59.isNotNil)(storyboard);
13500
+ const trackStoryboardLoadStatus = (0, import_react71.useCallback)(() => {
13163
13501
  if (storyboardElementRef.current || !storyboard) {
13164
13502
  return storyboardElementRef.current;
13165
13503
  }
@@ -13169,7 +13507,7 @@ var Thumbnail = (0, import_react70.forwardRef)(
13169
13507
  storyboardElementRef.current = asset;
13170
13508
  return storyboardElementRef.current;
13171
13509
  }, [storyboard]);
13172
- const handleMouseMove = (0, import_react70.useCallback)(
13510
+ const handleMouseMove = (0, import_react71.useCallback)(
13173
13511
  (mouseEvent) => {
13174
13512
  if (!isScrubbable) return;
13175
13513
  const elem = mouseEvent.currentTarget;
@@ -13182,16 +13520,16 @@ var Thumbnail = (0, import_react70.forwardRef)(
13182
13520
  },
13183
13521
  [isScrubbable, trackStoryboardLoadStatus]
13184
13522
  );
13185
- const handleMouseOut = (0, import_react70.useCallback)(() => {
13523
+ const handleMouseOut = (0, import_react71.useCallback)(() => {
13186
13524
  if (!isScrubbable) return;
13187
13525
  setIsMouseOver(false);
13188
13526
  setCursorPosition(null);
13189
13527
  }, [isScrubbable]);
13190
- const shouldRenderStoryboard = (0, import_react70.useMemo)(() => {
13528
+ const shouldRenderStoryboard = (0, import_react71.useMemo)(() => {
13191
13529
  return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
13192
13530
  }, [isScrubbable, isMouseOver, isStoryboardReady]);
13193
- const renderStoryboard = (0, import_react70.useCallback)(() => {
13194
- if (!storyboard || (0, import_type_guards56.isUndefined)(height) || (0, import_type_guards56.isEmptyString)(height)) return null;
13531
+ const renderStoryboard = (0, import_react71.useCallback)(() => {
13532
+ if (!storyboard || (0, import_type_guards59.isUndefined)(height) || (0, import_type_guards59.isEmptyString)(height)) return null;
13195
13533
  const {
13196
13534
  url,
13197
13535
  width: sbWidth,
@@ -13201,9 +13539,9 @@ var Thumbnail = (0, import_react70.forwardRef)(
13201
13539
  frameCount,
13202
13540
  aspectRatio
13203
13541
  } = storyboard;
13204
- const targetWidth = (0, import_type_guards56.isString)(width) ? parseInt(width, 10) : Number(width);
13542
+ const targetWidth = (0, import_type_guards59.isString)(width) ? parseInt(width, 10) : Number(width);
13205
13543
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
13206
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13544
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
13207
13545
  ThumbnailStoryboardViewer,
13208
13546
  {
13209
13547
  cursorPosition: effectiveCursorPosition,
@@ -13222,8 +13560,8 @@ var Thumbnail = (0, import_react70.forwardRef)(
13222
13560
  let thumbnailContent = null;
13223
13561
  if (shouldRenderStoryboard) {
13224
13562
  thumbnailContent = renderStoryboard();
13225
- } else if ((0, import_type_guards56.isNotNil)(thumbnailUrl)) {
13226
- thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13563
+ } else if ((0, import_type_guards59.isNotNil)(thumbnailUrl)) {
13564
+ thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
13227
13565
  ThumbnailImage,
13228
13566
  {
13229
13567
  thumbnailImageType,
@@ -13233,7 +13571,7 @@ var Thumbnail = (0, import_react70.forwardRef)(
13233
13571
  } else {
13234
13572
  thumbnailContent = null;
13235
13573
  }
13236
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
13574
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(
13237
13575
  StyledThumbnail,
13238
13576
  {
13239
13577
  ref,
@@ -13247,7 +13585,7 @@ var Thumbnail = (0, import_react70.forwardRef)(
13247
13585
  onMouseOut: handleMouseOut,
13248
13586
  role: "presentation",
13249
13587
  children: [
13250
- (0, import_type_guards56.isNotNil)(children) ? children : null,
13588
+ (0, import_type_guards59.isNotNil)(children) ? children : null,
13251
13589
  thumbnailContent
13252
13590
  ]
13253
13591
  }
@@ -13257,14 +13595,14 @@ var Thumbnail = (0, import_react70.forwardRef)(
13257
13595
  Thumbnail.displayName = "Thumbnail";
13258
13596
 
13259
13597
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
13260
- var import_react71 = __toESM(require("react"));
13261
- var import_styled_components92 = __toESM(require("styled-components"));
13262
- var import_type_guards57 = require("@wistia/type-guards");
13263
- var import_jsx_runtime275 = (
13598
+ var import_react72 = __toESM(require("react"));
13599
+ var import_styled_components95 = __toESM(require("styled-components"));
13600
+ var import_type_guards60 = require("@wistia/type-guards");
13601
+ var import_jsx_runtime278 = (
13264
13602
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
13265
13603
  require("react/jsx-runtime")
13266
13604
  );
13267
- var StyledThumbnailCollage = import_styled_components92.default.div`
13605
+ var StyledThumbnailCollage = import_styled_components95.default.div`
13268
13606
  display: grid;
13269
13607
  gap: var(--wui-space-01);
13270
13608
  width: 100%;
@@ -13337,15 +13675,15 @@ var ThumbnailCollage = ({
13337
13675
  gradientBackground = "defaultMidOne",
13338
13676
  ...props
13339
13677
  }) => {
13340
- const thumbnailArray = import_react71.default.Children.toArray(children);
13678
+ const thumbnailArray = import_react72.default.Children.toArray(children);
13341
13679
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
13342
- const thumbnails = (0, import_type_guards57.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
13343
- return import_react71.default.cloneElement(child, {
13680
+ const thumbnails = (0, import_type_guards60.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
13681
+ return import_react72.default.cloneElement(child, {
13344
13682
  ...child.props,
13345
13683
  children: void 0
13346
13684
  });
13347
13685
  }) : [
13348
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13686
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
13349
13687
  Thumbnail,
13350
13688
  {
13351
13689
  gradientBackground,
@@ -13354,7 +13692,7 @@ var ThumbnailCollage = ({
13354
13692
  "fallback"
13355
13693
  )
13356
13694
  ];
13357
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13695
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
13358
13696
  StyledThumbnailCollage,
13359
13697
  {
13360
13698
  $gradientBackground: gradientBackground,
@@ -13366,26 +13704,26 @@ var ThumbnailCollage = ({
13366
13704
  };
13367
13705
 
13368
13706
  // src/components/WistiaLogo/WistiaLogo.tsx
13369
- var import_styled_components93 = __toESM(require("styled-components"));
13370
- var import_type_guards58 = require("@wistia/type-guards");
13371
- var import_jsx_runtime276 = require("react/jsx-runtime");
13707
+ var import_styled_components96 = __toESM(require("styled-components"));
13708
+ var import_type_guards61 = require("@wistia/type-guards");
13709
+ var import_jsx_runtime279 = require("react/jsx-runtime");
13372
13710
  var renderBrandmark = (brandmarkColor, iconOnly) => {
13373
13711
  if (iconOnly) {
13374
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
13712
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
13375
13713
  "g",
13376
13714
  {
13377
13715
  "data-testid": "ui-wistia-logo-brandmark",
13378
13716
  fill: brandmarkColor,
13379
- children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13717
+ children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13380
13718
  }
13381
13719
  );
13382
13720
  }
13383
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
13721
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
13384
13722
  "g",
13385
13723
  {
13386
13724
  "data-testid": "ui-wistia-logo-brandmark",
13387
13725
  fill: brandmarkColor,
13388
- children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13726
+ children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13389
13727
  }
13390
13728
  );
13391
13729
  };
@@ -13393,12 +13731,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
13393
13731
  if (iconOnly) {
13394
13732
  return null;
13395
13733
  }
13396
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
13734
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
13397
13735
  "g",
13398
13736
  {
13399
13737
  "data-testid": "ui-wistia-logo-logotype",
13400
13738
  fill: logotypeColor,
13401
- children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
13739
+ children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
13402
13740
  }
13403
13741
  );
13404
13742
  };
@@ -13408,7 +13746,7 @@ var computedViewBox = (iconOnly) => {
13408
13746
  }
13409
13747
  return "0 0 144 31.47";
13410
13748
  };
13411
- var WistiaLogoComponent = import_styled_components93.default.svg`
13749
+ var WistiaLogoComponent = import_styled_components96.default.svg`
13412
13750
  height: ${({ height }) => `${height}px`};
13413
13751
 
13414
13752
  /* ensure it will always fit on mobile */
@@ -13424,12 +13762,12 @@ var WistiaLogoComponent = import_styled_components93.default.svg`
13424
13762
  ${({ $opticallyCentered, $iconOnly }) => {
13425
13763
  if ($opticallyCentered) {
13426
13764
  if ($iconOnly) {
13427
- return import_styled_components93.css`
13765
+ return import_styled_components96.css`
13428
13766
  aspect-ratio: 1;
13429
13767
  padding: 11.85% 3.12% 13.91%;
13430
13768
  `;
13431
13769
  }
13432
- return import_styled_components93.css`
13770
+ return import_styled_components96.css`
13433
13771
  aspect-ratio: 127 / 32;
13434
13772
  `;
13435
13773
  }
@@ -13466,7 +13804,7 @@ var WistiaLogo = ({
13466
13804
  };
13467
13805
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
13468
13806
  const logotypeColor = VARIANT_COLORS[variant].logotype;
13469
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
13807
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(
13470
13808
  WistiaLogoComponent,
13471
13809
  {
13472
13810
  $hoverColor: hoverColor,
@@ -13479,174 +13817,16 @@ var WistiaLogo = ({
13479
13817
  xmlns: "http://www.w3.org/2000/svg",
13480
13818
  ...props,
13481
13819
  children: [
13482
- /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("title", { children: title }),
13483
- (0, import_type_guards58.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("desc", { children: description }) : null,
13820
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("title", { children: title }),
13821
+ (0, import_type_guards61.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("desc", { children: description }) : null,
13484
13822
  renderBrandmark(brandmarkColor, iconOnly),
13485
13823
  renderLogotype(logotypeColor, iconOnly)
13486
13824
  ]
13487
13825
  }
13488
13826
  );
13489
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("a", { href, children: Logo }) : Logo;
13827
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("a", { href, children: Logo }) : Logo;
13490
13828
  };
13491
13829
  WistiaLogo.displayName = "WistiaLogo";
13492
-
13493
- // src/components/List/List.tsx
13494
- var import_type_guards60 = require("@wistia/type-guards");
13495
- var import_styled_components95 = __toESM(require("styled-components"));
13496
-
13497
- // src/components/List/ListItem.tsx
13498
- var import_styled_components94 = __toESM(require("styled-components"));
13499
- var import_type_guards59 = require("@wistia/type-guards");
13500
- var import_jsx_runtime277 = require("react/jsx-runtime");
13501
- var ListItemComponent = import_styled_components94.default.li`
13502
- margin-bottom: var(--wui-space-02);
13503
- `;
13504
- var ListItem = ({ children }) => {
13505
- if ((0, import_type_guards59.isNil)(children)) {
13506
- return null;
13507
- }
13508
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(ListItemComponent, { children });
13509
- };
13510
- ListItem.displayName = "ListItem";
13511
-
13512
- // src/components/List/List.tsx
13513
- var import_jsx_runtime278 = require("react/jsx-runtime");
13514
- var spacesStyle = import_styled_components95.css`
13515
- overflow: hidden;
13516
- padding-left: 0;
13517
- vertical-align: bottom;
13518
-
13519
- li {
13520
- display: block;
13521
- float: left;
13522
-
13523
- &::after {
13524
- content: ' ';
13525
- padding-right: var(--wui-space-03);
13526
- }
13527
-
13528
- &:last-child {
13529
- &::after {
13530
- content: '' !important;
13531
- padding-right: 0;
13532
- }
13533
- }
13534
- }
13535
- `;
13536
- var commasStyle = import_styled_components95.css`
13537
- ${spacesStyle};
13538
-
13539
- li {
13540
- &::after {
13541
- content: ',' !important;
13542
- padding-right: var(--wui-space-01);
13543
- }
13544
- }
13545
- `;
13546
- var slashesStyle = import_styled_components95.css`
13547
- ${spacesStyle};
13548
-
13549
- li {
13550
- &::after {
13551
- content: '/' !important;
13552
- padding-left: var(--wui-space-01);
13553
- padding-right: var(--wui-space-01);
13554
- }
13555
- }
13556
- `;
13557
- var breadcrumbsStyle = import_styled_components95.css`
13558
- ${spacesStyle};
13559
-
13560
- li {
13561
- &::after {
13562
- content: '>' !important;
13563
- padding-left: var(--wui-space-01);
13564
- padding-right: var(--wui-space-01);
13565
- }
13566
- }
13567
- `;
13568
- var unbulletedStyle = import_styled_components95.css`
13569
- list-style: none;
13570
- padding-left: 0;
13571
- `;
13572
- var ListComponent = import_styled_components95.default.ul`
13573
- list-style-position: outside;
13574
- margin: 0 0 var(--wui-space-01);
13575
- padding: 0 0 0 var(--wui-space-04);
13576
- ${({ variant }) => variant === "unbulleted" && unbulletedStyle};
13577
- ${({ variant }) => variant === "spaces" && spacesStyle};
13578
- ${({ variant }) => variant === "commas" && commasStyle};
13579
- ${({ variant }) => variant === "slashes" && slashesStyle};
13580
- ${({ variant }) => variant === "breadcrumbs" && breadcrumbsStyle};
13581
-
13582
- > li:last-child {
13583
- margin-bottom: 0;
13584
- }
13585
-
13586
- ul,
13587
- ol {
13588
- margin-top: var(--wui-space-01);
13589
- }
13590
-
13591
- /* nested lists should not have bottom margins because their container <li> will have one */
13592
- li ul,
13593
- li ol {
13594
- margin-bottom: 0;
13595
- }
13596
- `;
13597
- var renderListComponent = (listItems, variant, { ...otherProps }) => {
13598
- const elementType = variant === "ordered" ? "ol" : "ul";
13599
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
13600
- ListComponent,
13601
- {
13602
- as: elementType,
13603
- variant,
13604
- ...otherProps,
13605
- children: listItems
13606
- }
13607
- );
13608
- };
13609
- var renderListFromArray = (listItems, variant, otherProps) => {
13610
- let itemCount = 0;
13611
- const items = listItems.map((listItem, i) => {
13612
- const item = listItem;
13613
- const nextItem = listItems[i + 1];
13614
- const key = `item-${itemCount += 1}`;
13615
- if (Array.isArray(nextItem)) {
13616
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(ListItem, { children: [
13617
- item,
13618
- renderListFromArray(nextItem, variant, otherProps)
13619
- ] }, key);
13620
- }
13621
- if (Array.isArray(item)) {
13622
- return null;
13623
- }
13624
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(ListItem, { children: item }, key);
13625
- });
13626
- return renderListComponent(items, variant, otherProps);
13627
- };
13628
- var List = ({
13629
- children,
13630
- items,
13631
- variant,
13632
- ...otherProps
13633
- }) => {
13634
- const listVariant = variant ?? "bullets";
13635
- if ((0, import_type_guards60.isNotNil)(children)) {
13636
- if (Array.isArray(children) && !children.length) {
13637
- return null;
13638
- }
13639
- return renderListComponent(children, listVariant, otherProps);
13640
- }
13641
- if ((0, import_type_guards60.isNotNil)(items)) {
13642
- if (!items.length) {
13643
- return null;
13644
- }
13645
- return renderListFromArray(items, listVariant, otherProps);
13646
- }
13647
- return null;
13648
- };
13649
- List.displayName = "List";
13650
13830
  // Annotate the CommonJS export names for ESM import in node:
13651
13831
  0 && (module.exports = {
13652
13832
  ActionButton,
@@ -13710,6 +13890,7 @@ List.displayName = "List";
13710
13890
  Select,
13711
13891
  SelectOption,
13712
13892
  SelectOptionGroup,
13893
+ Slider,
13713
13894
  Stack,
13714
13895
  SubMenu,
13715
13896
  Switch,
@@ -13741,6 +13922,7 @@ List.displayName = "List";
13741
13922
  useAriaLive,
13742
13923
  useBoolean,
13743
13924
  useClipboard,
13925
+ useElementObserver,
13744
13926
  useFilePicker,
13745
13927
  useFocusTrap,
13746
13928
  useForceUpdate,