@wistia/ui 0.14.40 → 0.14.41-beta.2d6c4133.02b8232

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.14.40
3
+ * @license @wistia/ui v0.14.41-beta.2d6c4133.02b8232
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -125,6 +125,8 @@ __export(index_exports, {
125
125
  MenuLabel: () => MenuLabel,
126
126
  MenuRadioGroup: () => MenuRadioGroup,
127
127
  Modal: () => Modal,
128
+ ModalValueProp: () => ModalValueProp,
129
+ ModalValueProps: () => ModalValueProps,
128
130
  PersistentFileAmountLimitValidator: () => import_validators.PersistentFileAmountLimitValidator,
129
131
  Popover: () => Popover,
130
132
  ProgressBar: () => ProgressBar,
@@ -12489,6 +12491,7 @@ var Ariakit = __toESM(require("@ariakit/react"));
12489
12491
  var import_react54 = require("react");
12490
12492
  var import_match_sorter = require("match-sorter");
12491
12493
  var import_styled_components69 = __toESM(require("styled-components"));
12494
+ var import_type_guards37 = require("@wistia/type-guards");
12492
12495
 
12493
12496
  // src/components/Tag/Tag.tsx
12494
12497
  var import_react53 = require("react");
@@ -12808,7 +12811,8 @@ var extractOptions = (children) => {
12808
12811
  return options;
12809
12812
  };
12810
12813
  var defaultDisplayValues = (values, onRemove) => {
12811
- return values.map((selectedValue) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
12814
+ const valueArray = Array.isArray(values) ? values : [values];
12815
+ return valueArray.map((selectedValue) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
12812
12816
  Tag,
12813
12817
  {
12814
12818
  href: "https://example.com",
@@ -12849,7 +12853,11 @@ var Combobox2 = ({
12849
12853
  return () => null;
12850
12854
  }, []);
12851
12855
  const handleRemoveValue = (valueToRemove) => {
12852
- onChange(value.filter((val) => val !== valueToRemove));
12856
+ if ((0, import_type_guards37.isString)(value)) {
12857
+ onChange("");
12858
+ return;
12859
+ }
12860
+ onChange(typeof value === "string" ? "" : value.filter((val) => val !== valueToRemove));
12853
12861
  };
12854
12862
  const matches = (0, import_react54.useMemo)(() => {
12855
12863
  return (0, import_match_sorter.matchSorter)(Object.keys(options), searchValue);
@@ -12923,12 +12931,12 @@ var Combobox2 = ({
12923
12931
  };
12924
12932
 
12925
12933
  // src/components/ContextMenu/ContextMenu.tsx
12926
- var import_type_guards41 = require("@wistia/type-guards");
12934
+ var import_type_guards42 = require("@wistia/type-guards");
12927
12935
  var import_react61 = require("react");
12928
12936
 
12929
12937
  // src/components/Menu/Menu.tsx
12930
12938
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
12931
- var import_type_guards37 = require("@wistia/type-guards");
12939
+ var import_type_guards38 = require("@wistia/type-guards");
12932
12940
  var import_react56 = require("react");
12933
12941
  var import_styled_components70 = __toESM(require("styled-components"));
12934
12942
 
@@ -13043,7 +13051,7 @@ var Menu = (0, import_react56.forwardRef)(
13043
13051
  }, ref) => {
13044
13052
  const contextValue = (0, import_react56.useMemo)(() => ({ compact }), [compact]);
13045
13053
  let controlProps = {
13046
- ...(0, import_type_guards37.isNotNil)(onOpenChange) && (0, import_type_guards37.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
13054
+ ...(0, import_type_guards38.isNotNil)(onOpenChange) && (0, import_type_guards38.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
13047
13055
  };
13048
13056
  if (disabled) {
13049
13057
  controlProps = {
@@ -13057,7 +13065,7 @@ var Menu = (0, import_react56.forwardRef)(
13057
13065
  modal: false,
13058
13066
  ...controlProps,
13059
13067
  children: [
13060
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards37.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
13068
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards38.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
13061
13069
  Button,
13062
13070
  {
13063
13071
  ref,
@@ -13123,12 +13131,12 @@ MenuLabel.displayName = "MenuLabel_UI";
13123
13131
  var import_react58 = require("react");
13124
13132
  var import_styled_components74 = __toESM(require("styled-components"));
13125
13133
  var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
13126
- var import_type_guards39 = require("@wistia/type-guards");
13134
+ var import_type_guards40 = require("@wistia/type-guards");
13127
13135
 
13128
13136
  // src/components/Menu/MenuItemButton.tsx
13129
13137
  var import_react57 = require("react");
13130
13138
  var import_styled_components72 = __toESM(require("styled-components"));
13131
- var import_type_guards38 = require("@wistia/type-guards");
13139
+ var import_type_guards39 = require("@wistia/type-guards");
13132
13140
  var import_jsx_runtime257 = require("react/jsx-runtime");
13133
13141
  var StyledButton3 = (0, import_styled_components72.default)(Button)`
13134
13142
  ${({ colorScheme }) => getColorScheme(colorScheme)};
@@ -13208,7 +13216,7 @@ var StyledBadgeContainer = import_styled_components72.default.div`
13208
13216
  var MenuItemButton = (0, import_react57.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
13209
13217
  let { colorScheme, badge } = props;
13210
13218
  if (appearance === "dangerous") {
13211
- if ((0, import_type_guards38.isNotUndefined)(colorScheme)) {
13219
+ if ((0, import_type_guards39.isNotUndefined)(colorScheme)) {
13212
13220
  console.warn("colorScheme prop is ignored when appearance is dangerous");
13213
13221
  }
13214
13222
  colorScheme = "error";
@@ -13236,10 +13244,10 @@ var MenuItemButton = (0, import_react57.forwardRef)(({ children, appearance, com
13236
13244
  fullWidth: true,
13237
13245
  unstyled: true,
13238
13246
  children: [
13239
- (0, import_type_guards38.isNotNil)(props.leftIcon) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
13247
+ (0, import_type_guards39.isNotNil)(props.leftIcon) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
13240
13248
  /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledLabelAndDescriptionContainer, { children }),
13241
- (0, import_type_guards38.isNotNil)(badge) || (0, import_type_guards38.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
13242
- (0, import_type_guards38.isNotNil)(props.rightIcon) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
13249
+ (0, import_type_guards39.isNotNil)(badge) || (0, import_type_guards39.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
13250
+ (0, import_type_guards39.isNotNil)(props.rightIcon) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
13243
13251
  ]
13244
13252
  }
13245
13253
  );
@@ -13310,7 +13318,7 @@ var SubMenu = ({
13310
13318
  return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
13311
13319
  /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(SubMenuTrigger, { ...props, children: [
13312
13320
  /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(MenuItemLabel, { children: label }),
13313
- (0, import_type_guards39.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(MenuItemDescription, { children: description }) : null
13321
+ (0, import_type_guards40.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(MenuItemDescription, { children: description }) : null
13314
13322
  ] }),
13315
13323
  /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(SubMenuContent, { $compact: compact, children }) })
13316
13324
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
@@ -13402,7 +13410,7 @@ RadioMenuItem.displayName = "RadioMenuItem_UI";
13402
13410
 
13403
13411
  // src/components/Menu/CheckboxMenuItem.tsx
13404
13412
  var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
13405
- var import_type_guards40 = require("@wistia/type-guards");
13413
+ var import_type_guards41 = require("@wistia/type-guards");
13406
13414
  var import_jsx_runtime263 = require("react/jsx-runtime");
13407
13415
  var CheckboxIndicator = ({ checked, ...props }) => {
13408
13416
  return checked ? /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
@@ -13476,8 +13484,8 @@ var CheckboxMenuItem = ({
13476
13484
  MenuItemButton,
13477
13485
  {
13478
13486
  ...props,
13479
- leftIcon: (0, import_type_guards40.isNotNil)(props.icon) ? props.icon : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(CheckboxIndicator, { checked }),
13480
- rightIcon: (0, import_type_guards40.isNotNil)(props.icon) ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_dropdown_menu7.DropdownMenuItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { type: "checkmark" }) }) : void 0
13487
+ leftIcon: (0, import_type_guards41.isNotNil)(props.icon) ? props.icon : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(CheckboxIndicator, { checked }),
13488
+ rightIcon: (0, import_type_guards41.isNotNil)(props.icon) ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_dropdown_menu7.DropdownMenuItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { type: "checkmark" }) }) : void 0
13481
13489
  }
13482
13490
  )
13483
13491
  }
@@ -13599,7 +13607,7 @@ var ContextMenu = ({
13599
13607
  const [isRightClicked, setIsRightClicked] = (0, import_react61.useState)(false);
13600
13608
  const [menuPosition, setMenuPosition] = (0, import_react61.useState)(position ?? { x: 0, y: 0 });
13601
13609
  (0, import_react61.useEffect)(() => {
13602
- if ((0, import_type_guards41.isNil)(position)) {
13610
+ if ((0, import_type_guards42.isNil)(position)) {
13603
13611
  const onContextMenu = (event) => {
13604
13612
  event.preventDefault();
13605
13613
  setMenuPosition({ x: event.clientX, y: event.clientY });
@@ -13613,7 +13621,7 @@ var ContextMenu = ({
13613
13621
  }
13614
13622
  return () => null;
13615
13623
  }, [position, triggerRef]);
13616
- const isOpen = (0, import_type_guards41.isNotNil)(position) || isRightClicked;
13624
+ const isOpen = (0, import_type_guards42.isNotNil)(position) || isRightClicked;
13617
13625
  return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
13618
13626
  Menu,
13619
13627
  {
@@ -13648,7 +13656,7 @@ var ContextMenu = ({
13648
13656
  // src/components/DataCards/DataCard.tsx
13649
13657
  var import_react62 = require("react");
13650
13658
  var import_styled_components75 = __toESM(require("styled-components"));
13651
- var import_type_guards42 = require("@wistia/type-guards");
13659
+ var import_type_guards43 = require("@wistia/type-guards");
13652
13660
  var import_jsx_runtime266 = require("react/jsx-runtime");
13653
13661
  var StyledDataCard = import_styled_components75.default.div`
13654
13662
  --wui-data-card-text: var(--wui-color-text-button);
@@ -13802,8 +13810,8 @@ var DataCardInner = ({
13802
13810
  children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StyledLoadingValue, {}) : value
13803
13811
  }
13804
13812
  ),
13805
- (0, import_type_guards42.isNotNil)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StyledSlot, { children: upperRightSlot }),
13806
- (0, import_type_guards42.isNotNil)(subtitle) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13813
+ (0, import_type_guards43.isNotNil)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StyledSlot, { children: upperRightSlot }),
13814
+ (0, import_type_guards43.isNotNil)(subtitle) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13807
13815
  StyledSubtitle,
13808
13816
  {
13809
13817
  "data-wui-data-card-subtitle": true,
@@ -13811,13 +13819,13 @@ var DataCardInner = ({
13811
13819
  children: subtitle
13812
13820
  }
13813
13821
  ),
13814
- (0, import_type_guards42.isNotNil)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StyledDataCardTrendContainer, { children: trend })
13822
+ (0, import_type_guards43.isNotNil)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StyledDataCardTrendContainer, { children: trend })
13815
13823
  ]
13816
13824
  }
13817
13825
  );
13818
13826
  var DataCard = (props) => {
13819
13827
  const ref = (0, import_react62.useRef)(null);
13820
- if ((0, import_type_guards42.isNotNil)(props.href) || (0, import_type_guards42.isNotNil)(props.onClick)) {
13828
+ if ((0, import_type_guards43.isNotNil)(props.href) || (0, import_type_guards43.isNotNil)(props.onClick)) {
13821
13829
  const { "aria-pressed": ariaPressed, ...dataCardProps } = props;
13822
13830
  return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13823
13831
  DataCardInner,
@@ -13828,8 +13836,8 @@ var DataCard = (props) => {
13828
13836
  Button,
13829
13837
  {
13830
13838
  ref,
13831
- ...(0, import_type_guards42.isNotNil)(props.beforeAction) ? { beforeAction: props.beforeAction } : {},
13832
- ...(0, import_type_guards42.isNotNil)(props.reloadDocument) ? { reloadDocument: props.reloadDocument } : {},
13839
+ ...(0, import_type_guards43.isNotNil)(props.beforeAction) ? { beforeAction: props.beforeAction } : {},
13840
+ ...(0, import_type_guards43.isNotNil)(props.reloadDocument) ? { reloadDocument: props.reloadDocument } : {},
13833
13841
  "aria-pressed": ariaPressed,
13834
13842
  disabled: props.disabled ?? false,
13835
13843
  href: props.href,
@@ -14197,11 +14205,11 @@ var EditableHeading = ({
14197
14205
  // src/components/EditableText/EditableTextDisplay.tsx
14198
14206
  var import_react65 = require("react");
14199
14207
  var import_styled_components83 = __toESM(require("styled-components"));
14200
- var import_type_guards44 = require("@wistia/type-guards");
14208
+ var import_type_guards45 = require("@wistia/type-guards");
14201
14209
 
14202
14210
  // src/components/EditableText/EditableTextRoot.tsx
14203
14211
  var import_react64 = require("react");
14204
- var import_type_guards43 = require("@wistia/type-guards");
14212
+ var import_type_guards44 = require("@wistia/type-guards");
14205
14213
  var import_styled_components82 = __toESM(require("styled-components"));
14206
14214
  var import_jsx_runtime275 = require("react/jsx-runtime");
14207
14215
  var StyledEditableTextRoot = import_styled_components82.default.div`
@@ -14236,7 +14244,7 @@ var EditableTextRoot = ({
14236
14244
  const [isEditing, setIsEditing] = (0, import_react64.useState)(false);
14237
14245
  const value = isControlled ? controlledValue : internalValue;
14238
14246
  const generatedId = (0, import_react64.useId)();
14239
- const computedId = (0, import_type_guards43.isNonEmptyString)(id) ? id : `wistia-ui-editable-text-${generatedId}`;
14247
+ const computedId = (0, import_type_guards44.isNonEmptyString)(id) ? id : `wistia-ui-editable-text-${generatedId}`;
14240
14248
  const handleSetIsEditing = (0, import_react64.useCallback)(
14241
14249
  (editing) => {
14242
14250
  if (editing && !isEditing) {
@@ -14323,7 +14331,7 @@ var StyledEditableTextDisplay = import_styled_components83.default.div`
14323
14331
  margin: 0;
14324
14332
  transition: all var(--wui-motion-duration-02) var(--wui-motion-ease);
14325
14333
  ${({ $maxLines }) => {
14326
- if ((0, import_type_guards44.isNotNil)($maxLines)) {
14334
+ if ((0, import_type_guards45.isNotNil)($maxLines)) {
14327
14335
  return import_styled_components83.css`
14328
14336
  ${ellipsisStyle};
14329
14337
  ${lineClampCss($maxLines)};
@@ -14331,7 +14339,7 @@ var StyledEditableTextDisplay = import_styled_components83.default.div`
14331
14339
  }
14332
14340
  return void 0;
14333
14341
  }}
14334
- ${({ $minLines }) => (0, import_type_guards44.isNotNil)($minLines) && import_styled_components83.css`
14342
+ ${({ $minLines }) => (0, import_type_guards45.isNotNil)($minLines) && import_styled_components83.css`
14335
14343
  min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));
14336
14344
  `}
14337
14345
  word-break: break-word;
@@ -14418,12 +14426,12 @@ var EditableTextDisplay = makePolymorphic(
14418
14426
  // src/components/EditableText/EditableTextInput.tsx
14419
14427
  var import_react66 = require("react");
14420
14428
  var import_styled_components84 = __toESM(require("styled-components"));
14421
- var import_type_guards45 = require("@wistia/type-guards");
14429
+ var import_type_guards46 = require("@wistia/type-guards");
14422
14430
  var import_jsx_runtime277 = require("react/jsx-runtime");
14423
14431
  var StyledInput2 = (0, import_styled_components84.default)(Input)`
14424
14432
  && {
14425
- ${({ $minLines }) => (0, import_type_guards45.isNotNil)($minLines) && `min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
14426
- ${({ $maxLines }) => (0, import_type_guards45.isNotNil)($maxLines) && `max-height: calc(${$maxLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
14433
+ ${({ $minLines }) => (0, import_type_guards46.isNotNil)($minLines) && `min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
14434
+ ${({ $maxLines }) => (0, import_type_guards46.isNotNil)($maxLines) && `max-height: calc(${$maxLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
14427
14435
  ${({ $typographicVariant }) => getTypographicStyles($typographicVariant)}
14428
14436
  background-color: var(--wui-color-bg-surface);
14429
14437
  border-radius: var(--wui-editable-text-border-radius);
@@ -14536,11 +14544,11 @@ var EditableTextLabel = ({ ...props }) => {
14536
14544
  if (!context) {
14537
14545
  throw new Error("EditableTextLabel must be used within an EditableTextRoot context");
14538
14546
  }
14539
- const { id, label } = context;
14547
+ const { id, label, isEditing } = context;
14540
14548
  return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
14541
14549
  Label,
14542
14550
  {
14543
- htmlFor: id,
14551
+ ...isEditing && { htmlFor: id },
14544
14552
  ...props,
14545
14553
  children: label
14546
14554
  }
@@ -14680,7 +14688,7 @@ var useFormState = (action, initialData = {}) => {
14680
14688
 
14681
14689
  // src/components/Form/FormErrorSummary.tsx
14682
14690
  var import_react72 = require("react");
14683
- var import_type_guards46 = require("@wistia/type-guards");
14691
+ var import_type_guards47 = require("@wistia/type-guards");
14684
14692
  var import_jsx_runtime280 = require("react/jsx-runtime");
14685
14693
  var ErrorItem = ({ name, error, formId }) => {
14686
14694
  return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
@@ -14694,8 +14702,8 @@ var FormErrorSummary = ({ description }) => {
14694
14702
  }
14695
14703
  return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)("div", { ref, children: [
14696
14704
  /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("p", { children: description }),
14697
- /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards46.isNotUndefined)(error)).map(
14698
- ([name, error]) => (0, import_type_guards46.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
14705
+ /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards47.isNotUndefined)(error)).map(
14706
+ ([name, error]) => (0, import_type_guards47.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
14699
14707
  ErrorItem,
14700
14708
  {
14701
14709
  error: err,
@@ -14719,7 +14727,7 @@ var FormErrorSummary = ({ description }) => {
14719
14727
  // src/components/FormField/FormField.tsx
14720
14728
  var import_react73 = require("react");
14721
14729
  var import_styled_components85 = __toESM(require("styled-components"));
14722
- var import_type_guards47 = require("@wistia/type-guards");
14730
+ var import_type_guards48 = require("@wistia/type-guards");
14723
14731
  var import_jsx_runtime281 = require("react/jsx-runtime");
14724
14732
  var StyledFormField = import_styled_components85.default.div`
14725
14733
  --form-field-spacing: var(--wui-space-01);
@@ -14760,7 +14768,7 @@ var StyledErrorList = import_styled_components85.default.ul`
14760
14768
  gap: var(--wui-space-01);
14761
14769
  `;
14762
14770
  var ErrorMessages = ({ errors, id }) => {
14763
- const isErrorArray = (0, import_type_guards47.isArray)(errors);
14771
+ const isErrorArray = (0, import_type_guards48.isArray)(errors);
14764
14772
  const isMultipleErrors = isErrorArray && errors.length > 1;
14765
14773
  if (!isErrorArray) {
14766
14774
  return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
@@ -14828,19 +14836,19 @@ var FormField = ({
14828
14836
  "aria-describedby": ariaDescribedby,
14829
14837
  ...props
14830
14838
  };
14831
- if ((0, import_type_guards47.isUndefined)(value) && (0, import_type_guards47.isNotUndefined)(defaultValue)) {
14839
+ if ((0, import_type_guards48.isUndefined)(value) && (0, import_type_guards48.isNotUndefined)(defaultValue)) {
14832
14840
  childProps = {
14833
14841
  ...childProps,
14834
14842
  defaultValue
14835
14843
  };
14836
14844
  }
14837
- if ((0, import_type_guards47.isNotNil)(checkboxGroup)) {
14838
- const computedName = (0, import_type_guards47.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
14845
+ if ((0, import_type_guards48.isNotNil)(checkboxGroup)) {
14846
+ const computedName = (0, import_type_guards48.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
14839
14847
  const handleChange = (event) => {
14840
- if ((0, import_type_guards47.isNotUndefined)(props.onChange)) {
14848
+ if ((0, import_type_guards48.isNotUndefined)(props.onChange)) {
14841
14849
  props.onChange(event);
14842
14850
  }
14843
- if ((0, import_type_guards47.isNotUndefined)(checkboxGroup.onChange)) {
14851
+ if ((0, import_type_guards48.isNotUndefined)(checkboxGroup.onChange)) {
14844
14852
  checkboxGroup.onChange(event);
14845
14853
  }
14846
14854
  };
@@ -14848,7 +14856,7 @@ var FormField = ({
14848
14856
  ...childProps,
14849
14857
  name: computedName,
14850
14858
  onChange: handleChange,
14851
- "aria-invalid": (0, import_type_guards47.isNotNil)(error)
14859
+ "aria-invalid": (0, import_type_guards48.isNotNil)(error)
14852
14860
  };
14853
14861
  }
14854
14862
  import_react73.Children.only(children);
@@ -14859,9 +14867,9 @@ var FormField = ({
14859
14867
  "data-label-position": labelPosition ?? formState.labelPosition,
14860
14868
  children: [
14861
14869
  !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Label, { htmlFor: computedId, children: label }),
14862
- (0, import_type_guards47.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
14870
+ (0, import_type_guards48.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
14863
14871
  (0, import_react73.cloneElement)(children, childProps),
14864
- (0, import_type_guards47.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(import_jsx_runtime281.Fragment, { children: [
14872
+ (0, import_type_guards48.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(import_jsx_runtime281.Fragment, { children: [
14865
14873
  /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("div", {}),
14866
14874
  /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
14867
14875
  ErrorMessages,
@@ -14907,7 +14915,7 @@ RadioGroup.displayName = "RadioGroup_UI";
14907
14915
  // src/components/Grid/Grid.tsx
14908
14916
  var import_react75 = require("react");
14909
14917
  var import_styled_components86 = __toESM(require("styled-components"));
14910
- var import_type_guards48 = require("@wistia/type-guards");
14918
+ var import_type_guards49 = require("@wistia/type-guards");
14911
14919
  var import_jsx_runtime283 = require("react/jsx-runtime");
14912
14920
  var DEFAULT_ELEMENT5 = "div";
14913
14921
  var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
@@ -14957,7 +14965,7 @@ var GridComponent = (0, import_react75.forwardRef)(
14957
14965
  ...props
14958
14966
  }, ref) => {
14959
14967
  const responsiveGap = useResponsiveProp(gap);
14960
- const { column, row } = (0, import_type_guards48.isRecord)(responsiveGap) ? responsiveGap : { column: responsiveGap, row: responsiveGap };
14968
+ const { column, row } = (0, import_type_guards49.isRecord)(responsiveGap) ? responsiveGap : { column: responsiveGap, row: responsiveGap };
14961
14969
  const responsiveColumns = useResponsiveProp(columns);
14962
14970
  const responsiveMinChildWidth = useResponsiveProp(minChildWidth);
14963
14971
  return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
@@ -14982,7 +14990,7 @@ var Grid = makePolymorphic(GridComponent);
14982
14990
  // src/components/InputClickToCopy/InputClickToCopy.tsx
14983
14991
  var import_styled_components87 = __toESM(require("styled-components"));
14984
14992
  var import_react76 = require("react");
14985
- var import_type_guards49 = require("@wistia/type-guards");
14993
+ var import_type_guards50 = require("@wistia/type-guards");
14986
14994
  var import_jsx_runtime284 = require("react/jsx-runtime");
14987
14995
  var StyledIconButton = (0, import_styled_components87.default)(IconButton)`
14988
14996
  /* override size for icon button since prop gets changed by Input */
@@ -15012,12 +15020,12 @@ var InputClickToCopy = (0, import_react76.forwardRef)(
15012
15020
  if (disabled) {
15013
15021
  return;
15014
15022
  }
15015
- if ((0, import_type_guards49.isFunction)(props.onClick)) {
15023
+ if ((0, import_type_guards50.isFunction)(props.onClick)) {
15016
15024
  props.onClick(event);
15017
15025
  }
15018
15026
  void copyToClipboard(value).then(() => {
15019
15027
  setIsCopied(true);
15020
- if ((0, import_type_guards49.isFunction)(onCopy)) {
15028
+ if ((0, import_type_guards50.isFunction)(onCopy)) {
15021
15029
  onCopy(value);
15022
15030
  }
15023
15031
  return value;
@@ -15052,7 +15060,7 @@ InputClickToCopy.displayName = "InputClickToCopy_UI";
15052
15060
  // src/components/InputPassword/InputPassword.tsx
15053
15061
  var import_styled_components88 = __toESM(require("styled-components"));
15054
15062
  var import_react77 = require("react");
15055
- var import_type_guards50 = require("@wistia/type-guards");
15063
+ var import_type_guards51 = require("@wistia/type-guards");
15056
15064
  var import_jsx_runtime285 = require("react/jsx-runtime");
15057
15065
  var StyledIconButton2 = (0, import_styled_components88.default)(IconButton)`
15058
15066
  /* override size for icon button since prop gets changed by Input */
@@ -15068,7 +15076,7 @@ var InputPassword = (0, import_react77.forwardRef)(
15068
15076
  const handleClick = () => {
15069
15077
  const newVisibility = !isVisible;
15070
15078
  setIsVisible(newVisibility);
15071
- if ((0, import_type_guards50.isFunction)(onVisibilityToggle)) {
15079
+ if ((0, import_type_guards51.isFunction)(onVisibilityToggle)) {
15072
15080
  onVisibilityToggle(newVisibility);
15073
15081
  }
15074
15082
  };
@@ -15098,7 +15106,7 @@ InputPassword.displayName = "InputPassword_UI";
15098
15106
 
15099
15107
  // src/components/KeyboardShortcut/KeyboardShortcut.tsx
15100
15108
  var import_styled_components89 = __toESM(require("styled-components"));
15101
- var import_type_guards51 = require("@wistia/type-guards");
15109
+ var import_type_guards52 = require("@wistia/type-guards");
15102
15110
  var import_jsx_runtime286 = require("react/jsx-runtime");
15103
15111
  var StyledKeyboardShortcut = import_styled_components89.default.div`
15104
15112
  align-items: center;
@@ -15192,7 +15200,7 @@ var KeyboardShortcut = ({
15192
15200
  $fullWidth: fullWidth,
15193
15201
  ...otherProps,
15194
15202
  children: [
15195
- (0, import_type_guards51.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(Label2, { children: label }),
15203
+ (0, import_type_guards52.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(Label2, { children: label }),
15196
15204
  /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(KeysContainer, { children: (Array.isArray(keyboardKeys) ? keyboardKeys : [keyboardKeys]).map((keyboardKey, index) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
15197
15205
  StyledKey,
15198
15206
  {
@@ -15206,18 +15214,18 @@ var KeyboardShortcut = ({
15206
15214
  KeyboardShortcut.displayName = "KeyboardShortcut_UI";
15207
15215
 
15208
15216
  // src/components/List/List.tsx
15209
- var import_type_guards53 = require("@wistia/type-guards");
15217
+ var import_type_guards54 = require("@wistia/type-guards");
15210
15218
  var import_styled_components91 = __toESM(require("styled-components"));
15211
15219
 
15212
15220
  // src/components/List/ListItem.tsx
15213
15221
  var import_styled_components90 = __toESM(require("styled-components"));
15214
- var import_type_guards52 = require("@wistia/type-guards");
15222
+ var import_type_guards53 = require("@wistia/type-guards");
15215
15223
  var import_jsx_runtime287 = require("react/jsx-runtime");
15216
15224
  var ListItemComponent = import_styled_components90.default.li`
15217
15225
  margin-bottom: var(--wui-space-02);
15218
15226
  `;
15219
15227
  var ListItem = ({ children }) => {
15220
- if ((0, import_type_guards52.isNil)(children)) {
15228
+ if ((0, import_type_guards53.isNil)(children)) {
15221
15229
  return null;
15222
15230
  }
15223
15231
  return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(ListItemComponent, { children });
@@ -15347,13 +15355,13 @@ var List = ({
15347
15355
  ...otherProps
15348
15356
  }) => {
15349
15357
  const listVariant = variant ?? "bullets";
15350
- if ((0, import_type_guards53.isNotNil)(children)) {
15358
+ if ((0, import_type_guards54.isNotNil)(children)) {
15351
15359
  if (Array.isArray(children) && !children.length) {
15352
15360
  return null;
15353
15361
  }
15354
15362
  return renderListComponent(children, listVariant, otherProps);
15355
15363
  }
15356
- if ((0, import_type_guards53.isNotNil)(items)) {
15364
+ if ((0, import_type_guards54.isNotNil)(items)) {
15357
15365
  if (!items.length) {
15358
15366
  return null;
15359
15367
  }
@@ -15388,7 +15396,7 @@ Mark.displayName = "Mark_UI";
15388
15396
  var import_react80 = require("react");
15389
15397
  var import_styled_components97 = __toESM(require("styled-components"));
15390
15398
  var import_react_dialog5 = require("@radix-ui/react-dialog");
15391
- var import_type_guards55 = require("@wistia/type-guards");
15399
+ var import_type_guards56 = require("@wistia/type-guards");
15392
15400
 
15393
15401
  // src/components/Modal/ModalHeader.tsx
15394
15402
  var import_styled_components94 = __toESM(require("styled-components"));
@@ -15418,12 +15426,14 @@ var import_jsx_runtime291 = require("react/jsx-runtime");
15418
15426
  var Header = import_styled_components94.default.header`
15419
15427
  display: flex;
15420
15428
  order: 1;
15429
+ padding: 0 var(--wui-space-05);
15430
+ padding-bottom: 0;
15421
15431
  gap: var(--wui-space-01);
15422
15432
  justify-content: ${({ $hideTitle }) => $hideTitle ? "flex-end" : "space-between"}; /* ensure ModalCloseButton is right-aligned */
15423
15433
 
15424
15434
  /* DialogTitle creates an h2 element which inherits some margin */
15425
15435
  h2 {
15426
- margin: 0 0 var(--wui-space-03);
15436
+ margin: 0;
15427
15437
  padding-right: ${({ $hideCloseButon }) => $hideCloseButon ? "0" : "var(--wui-space-03)"};
15428
15438
  }
15429
15439
 
@@ -15465,7 +15475,7 @@ var import_react_dialog3 = require("@radix-ui/react-dialog");
15465
15475
 
15466
15476
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
15467
15477
  var import_react78 = require("react");
15468
- var import_type_guards54 = require("@wistia/type-guards");
15478
+ var import_type_guards55 = require("@wistia/type-guards");
15469
15479
  var useFocusRestore = () => {
15470
15480
  const previouslyFocusedRef = (0, import_react78.useRef)(null);
15471
15481
  (0, import_react78.useEffect)(() => {
@@ -15473,7 +15483,7 @@ var useFocusRestore = () => {
15473
15483
  }, []);
15474
15484
  (0, import_react78.useEffect)(() => {
15475
15485
  return () => {
15476
- if ((0, import_type_guards54.isNotNil)(previouslyFocusedRef.current)) {
15486
+ if ((0, import_type_guards55.isNotNil)(previouslyFocusedRef.current)) {
15477
15487
  setTimeout(() => {
15478
15488
  previouslyFocusedRef.current?.focus();
15479
15489
  }, 0);
@@ -15585,15 +15595,15 @@ var StyledModalContent = (0, import_styled_components95.default)(import_react_di
15585
15595
  position: fixed;
15586
15596
  display: flex;
15587
15597
  flex-direction: column;
15598
+ gap: var(--wui-space-03);
15588
15599
  top: 0;
15589
15600
  left: 0;
15590
15601
  width: 100vw;
15591
15602
  height: 100vh;
15592
15603
  z-index: var(--wui-zindex-modal);
15593
15604
  box-sizing: border-box;
15594
- padding: var(--wui-space-05);
15605
+ padding: var(--wui-space-05) 0;
15595
15606
  background-color: var(--wui-color-bg-app);
15596
- overflow: auto;
15597
15607
 
15598
15608
  ${mq.smAndUp} {
15599
15609
  position: fixed;
@@ -15666,11 +15676,21 @@ var ModalBody = import_styled_components97.default.div`
15666
15676
  flex-direction: column;
15667
15677
  display: flex;
15668
15678
  flex: 1 0 0;
15679
+ padding: 0 var(--wui-space-05);
15680
+ `;
15681
+ var ModalScrollArea = import_styled_components97.default.div`
15669
15682
  order: 2;
15683
+ max-height: 90vh;
15684
+ overflow-y: auto;
15685
+ `;
15686
+ var ModalFooter = import_styled_components97.default.footer`
15687
+ padding: 0 var(--wui-space-05);
15688
+ order: 3;
15670
15689
  `;
15671
15690
  var Modal = (0, import_react80.forwardRef)(
15672
15691
  ({
15673
15692
  children,
15693
+ footer,
15674
15694
  hideCloseButton = false,
15675
15695
  hideTitle = false,
15676
15696
  initialFocusRef,
@@ -15685,7 +15705,7 @@ var Modal = (0, import_react80.forwardRef)(
15685
15705
  import_react_dialog5.Root,
15686
15706
  {
15687
15707
  onOpenChange: (open2) => {
15688
- if (!open2 && (0, import_type_guards55.isNotNil)(onRequestClose)) {
15708
+ if (!open2 && (0, import_type_guards56.isNotNil)(onRequestClose)) {
15689
15709
  onRequestClose();
15690
15710
  }
15691
15711
  },
@@ -15697,7 +15717,7 @@ var Modal = (0, import_react80.forwardRef)(
15697
15717
  {
15698
15718
  ref,
15699
15719
  onOpenAutoFocus: (event) => {
15700
- if ((0, import_type_guards55.isNotNil)(initialFocusRef) && initialFocusRef.current) {
15720
+ if ((0, import_type_guards56.isNotNil)(initialFocusRef) && initialFocusRef.current) {
15701
15721
  event.preventDefault();
15702
15722
  requestAnimationFrame(() => {
15703
15723
  initialFocusRef.current?.focus();
@@ -15708,7 +15728,7 @@ var Modal = (0, import_react80.forwardRef)(
15708
15728
  width,
15709
15729
  ...props,
15710
15730
  children: [
15711
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(ModalBody, { children }),
15731
+ /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(ModalScrollArea, { children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(ModalBody, { children }) }),
15712
15732
  hideCloseButton && hideTitle ? null : /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
15713
15733
  ModalHeader,
15714
15734
  {
@@ -15716,7 +15736,8 @@ var Modal = (0, import_react80.forwardRef)(
15716
15736
  hideTitle,
15717
15737
  title
15718
15738
  }
15719
- )
15739
+ ),
15740
+ (0, import_type_guards56.isNotNil)(footer) ? /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(ModalFooter, { children: footer }) : null
15720
15741
  ]
15721
15742
  }
15722
15743
  )
@@ -15727,20 +15748,42 @@ var Modal = (0, import_react80.forwardRef)(
15727
15748
  );
15728
15749
  Modal.displayName = "Modal_UI";
15729
15750
 
15751
+ // src/components/Modal/ModalValueProps.tsx
15752
+ var import_jsx_runtime294 = require("react/jsx-runtime");
15753
+ var ModalValueProps = ({ children }) => {
15754
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
15755
+ Stack,
15756
+ {
15757
+ direction: "horizontal",
15758
+ gap: "space-08",
15759
+ children
15760
+ }
15761
+ );
15762
+ };
15763
+ ModalValueProps.displayName = "ModalValueProps_UI";
15764
+ var ModalValueProp = ({ title, image, children }) => {
15765
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(Stack, { direction: "vertical", children: [
15766
+ image,
15767
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Heading, { variant: "heading4", children: title }),
15768
+ children
15769
+ ] });
15770
+ };
15771
+ ModalValueProp.displayName = "ModalValueProp_UI";
15772
+
15730
15773
  // src/components/Popover/Popover.tsx
15731
15774
  var import_react_popover5 = require("@radix-ui/react-popover");
15732
15775
  var import_styled_components99 = __toESM(require("styled-components"));
15733
15776
 
15734
15777
  // src/private/helpers/getControls/getControlProps.tsx
15735
- var import_type_guards56 = require("@wistia/type-guards");
15778
+ var import_type_guards57 = require("@wistia/type-guards");
15736
15779
  var getControlProps = (isOpen, onOpenChange) => {
15737
- return (0, import_type_guards56.isNotNil)(onOpenChange) && (0, import_type_guards56.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
15780
+ return (0, import_type_guards57.isNotNil)(onOpenChange) && (0, import_type_guards57.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
15738
15781
  };
15739
15782
 
15740
15783
  // src/components/Popover/PopoverArrow.tsx
15741
15784
  var import_react_popover4 = require("@radix-ui/react-popover");
15742
15785
  var import_styled_components98 = __toESM(require("styled-components"));
15743
- var import_jsx_runtime294 = require("react/jsx-runtime");
15786
+ var import_jsx_runtime295 = require("react/jsx-runtime");
15744
15787
  var StyledPath = import_styled_components98.default.path`
15745
15788
  fill: var(--wui-color-border-secondary);
15746
15789
  `;
@@ -15779,7 +15822,7 @@ var StyledCircle = import_styled_components98.default.circle`
15779
15822
  }
15780
15823
  `;
15781
15824
  var PopoverArrow = ({ isAnimated }) => {
15782
- return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(import_react_popover4.PopoverArrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(
15825
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(import_react_popover4.PopoverArrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
15783
15826
  "svg",
15784
15827
  {
15785
15828
  fill: "none",
@@ -15788,8 +15831,8 @@ var PopoverArrow = ({ isAnimated }) => {
15788
15831
  width: "48",
15789
15832
  xmlns: "http://www.w3.org/2000/svg",
15790
15833
  children: [
15791
- /* @__PURE__ */ (0, import_jsx_runtime294.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" }),
15792
- /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
15834
+ /* @__PURE__ */ (0, import_jsx_runtime295.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" }),
15835
+ /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
15793
15836
  StyledCircle,
15794
15837
  {
15795
15838
  $isAnimated: isAnimated,
@@ -15800,7 +15843,7 @@ var PopoverArrow = ({ isAnimated }) => {
15800
15843
  strokeWidth: "4"
15801
15844
  }
15802
15845
  ),
15803
- /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
15846
+ /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
15804
15847
  StyledCircle,
15805
15848
  {
15806
15849
  $isAnimated: isAnimated,
@@ -15818,7 +15861,7 @@ var PopoverArrow = ({ isAnimated }) => {
15818
15861
  PopoverArrow.displayName = "PopoverArrow_UI";
15819
15862
 
15820
15863
  // src/components/Popover/Popover.tsx
15821
- var import_jsx_runtime295 = require("react/jsx-runtime");
15864
+ var import_jsx_runtime296 = require("react/jsx-runtime");
15822
15865
  var StyledContent2 = (0, import_styled_components99.default)(import_react_popover5.Content)`
15823
15866
  z-index: var(--wui-zindex-popover);
15824
15867
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -15858,9 +15901,9 @@ var Popover = ({
15858
15901
  "--wui-popover-max-width": maxWidth,
15859
15902
  "--wui-popover-max-height": maxHeight
15860
15903
  };
15861
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(import_react_popover5.Root, { ...getControlProps(isOpen, onOpenChange), children: [
15862
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(import_react_popover5.Trigger, { asChild: true, children: trigger }),
15863
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(import_react_popover5.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
15904
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(import_react_popover5.Root, { ...getControlProps(isOpen, onOpenChange), children: [
15905
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(import_react_popover5.Trigger, { asChild: true, children: trigger }),
15906
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(import_react_popover5.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
15864
15907
  StyledContent2,
15865
15908
  {
15866
15909
  $colorScheme: colorScheme,
@@ -15869,17 +15912,17 @@ var Popover = ({
15869
15912
  $unstyled: unstyled,
15870
15913
  style,
15871
15914
  children: [
15872
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(import_react_popover5.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
15915
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(import_react_popover5.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
15873
15916
  IconButton,
15874
15917
  {
15875
15918
  "data-wui-popover-close": true,
15876
15919
  label: "Close",
15877
15920
  variant: "ghost",
15878
- children: /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(Icon, { type: "close" })
15921
+ children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Icon, { type: "close" })
15879
15922
  }
15880
15923
  ) }),
15881
- withArrow ? /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(PopoverArrow, { isAnimated }) : null,
15882
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("div", { children })
15924
+ withArrow ? /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(PopoverArrow, { isAnimated }) : null,
15925
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)("div", { children })
15883
15926
  ]
15884
15927
  }
15885
15928
  ) })
@@ -15890,8 +15933,8 @@ Popover.displayName = "Popover_UI";
15890
15933
  // src/components/ProgressBar/ProgressBar.tsx
15891
15934
  var import_styled_components100 = __toESM(require("styled-components"));
15892
15935
  var import_react_progress = require("@radix-ui/react-progress");
15893
- var import_type_guards57 = require("@wistia/type-guards");
15894
- var import_jsx_runtime296 = require("react/jsx-runtime");
15936
+ var import_type_guards58 = require("@wistia/type-guards");
15937
+ var import_jsx_runtime297 = require("react/jsx-runtime");
15895
15938
  var ProgressBarWrapper = import_styled_components100.default.div`
15896
15939
  --progress-bar-height: 8px;
15897
15940
 
@@ -15945,16 +15988,16 @@ var ProgressBar = ({
15945
15988
  colorScheme = "inherit",
15946
15989
  ...props
15947
15990
  }) => {
15948
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(ProgressBarWrapper, { children: [
15949
- (0, import_type_guards57.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
15950
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
15991
+ return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(ProgressBarWrapper, { children: [
15992
+ (0, import_type_guards58.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
15993
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
15951
15994
  StyledProgressBar,
15952
15995
  {
15953
15996
  $colorScheme: colorScheme,
15954
15997
  max,
15955
15998
  value: progress,
15956
15999
  ...props,
15957
- children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
16000
+ children: /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
15958
16001
  StyledProgressIndicator,
15959
16002
  {
15960
16003
  $colorScheme: colorScheme,
@@ -15964,16 +16007,16 @@ var ProgressBar = ({
15964
16007
  )
15965
16008
  }
15966
16009
  ),
15967
- (0, import_type_guards57.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(ProgressBarLabel, { children: labelRight }) : null
16010
+ (0, import_type_guards58.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(ProgressBarLabel, { children: labelRight }) : null
15968
16011
  ] });
15969
16012
  };
15970
16013
  ProgressBar.displayName = "ProgressBar_UI";
15971
16014
 
15972
16015
  // src/components/Radio/Radio.tsx
15973
- var import_type_guards58 = require("@wistia/type-guards");
16016
+ var import_type_guards59 = require("@wistia/type-guards");
15974
16017
  var import_react81 = require("react");
15975
16018
  var import_styled_components101 = __toESM(require("styled-components"));
15976
- var import_jsx_runtime297 = require("react/jsx-runtime");
16019
+ var import_jsx_runtime298 = require("react/jsx-runtime");
15977
16020
  var sizeSmall2 = import_styled_components101.css`
15978
16021
  --wui-radio-size: 14px;
15979
16022
  --wui-radio-icon-size: 7px;
@@ -16070,22 +16113,22 @@ var Radio = (0, import_react81.forwardRef)(
16070
16113
  ...props
16071
16114
  }, ref) => {
16072
16115
  const generatedId = (0, import_react81.useId)();
16073
- const computedId = (0, import_type_guards58.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
16116
+ const computedId = (0, import_type_guards59.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
16074
16117
  const radioGroupContext = useRadioGroup();
16075
16118
  const contextName = radioGroupContext?.name;
16076
16119
  const contextOnChange = radioGroupContext?.onChange;
16077
16120
  const contextValue = radioGroupContext?.value;
16078
16121
  const radioName = name ?? contextName;
16079
16122
  const handleOnChange = onChange ?? contextOnChange;
16080
- const isChecked = (0, import_type_guards58.isNotUndefined)(value) && (0, import_type_guards58.isNotUndefined)(contextValue) ? contextValue === value : checked;
16081
- return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
16123
+ const isChecked = (0, import_type_guards59.isNotUndefined)(value) && (0, import_type_guards59.isNotUndefined)(contextValue) ? contextValue === value : checked;
16124
+ return /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(
16082
16125
  StyledRadioWrapper,
16083
16126
  {
16084
16127
  $disabled: disabled,
16085
16128
  $hideLabel: hideLabel,
16086
16129
  "aria-invalid": props["aria-invalid"],
16087
16130
  children: [
16088
- /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
16131
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
16089
16132
  StyledHiddenRadioInput,
16090
16133
  {
16091
16134
  ...props,
@@ -16100,10 +16143,10 @@ var Radio = (0, import_react81.forwardRef)(
16100
16143
  value
16101
16144
  }
16102
16145
  ),
16103
- /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
16146
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
16104
16147
  FormControlLabel,
16105
16148
  {
16106
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(StyledRadioInput, { $size: size }),
16149
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(StyledRadioInput, { $size: size }),
16107
16150
  description,
16108
16151
  disabled,
16109
16152
  hideLabel,
@@ -16124,8 +16167,8 @@ var import_react83 = require("react");
16124
16167
  // src/components/RadioCard/RadioCardRoot.tsx
16125
16168
  var import_react82 = require("react");
16126
16169
  var import_styled_components102 = __toESM(require("styled-components"));
16127
- var import_type_guards59 = require("@wistia/type-guards");
16128
- var import_jsx_runtime298 = require("react/jsx-runtime");
16170
+ var import_type_guards60 = require("@wistia/type-guards");
16171
+ var import_jsx_runtime299 = require("react/jsx-runtime");
16129
16172
  var checkedStyles = import_styled_components102.css`
16130
16173
  --wui-radio-card-border-color: var(--wui-color-focus-ring);
16131
16174
  --wui-color-icon: var(--wui-color-icon-selected);
@@ -16246,22 +16289,22 @@ var RadioCardRoot = (0, import_react82.forwardRef)(
16246
16289
  ...props
16247
16290
  }, ref) => {
16248
16291
  const generatedId = (0, import_react82.useId)();
16249
- const computedId = (0, import_type_guards59.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
16292
+ const computedId = (0, import_type_guards60.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
16250
16293
  const radioGroupContext = useRadioGroup();
16251
16294
  const contextName = radioGroupContext?.name;
16252
16295
  const contextOnChange = radioGroupContext?.onChange;
16253
16296
  const contextValue = radioGroupContext?.value;
16254
16297
  const radioName = name ?? contextName;
16255
16298
  const handleOnChange = onChange ?? contextOnChange;
16256
- const isChecked = (0, import_type_guards59.isNotUndefined)(value) && (0, import_type_guards59.isNotUndefined)(contextValue) ? contextValue === value : checked;
16257
- return /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(
16299
+ const isChecked = (0, import_type_guards60.isNotUndefined)(value) && (0, import_type_guards60.isNotUndefined)(contextValue) ? contextValue === value : checked;
16300
+ return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(
16258
16301
  StyledCard2,
16259
16302
  {
16260
16303
  $aspectRatio: aspectRatio,
16261
16304
  $padding: padding,
16262
16305
  htmlFor: computedId,
16263
16306
  children: [
16264
- /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
16307
+ /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
16265
16308
  StyledHiddenInput,
16266
16309
  {
16267
16310
  ...props,
@@ -16285,7 +16328,7 @@ RadioCardRoot.displayName = "RadioCardRoot_UI";
16285
16328
 
16286
16329
  // src/components/RadioCard/RadioCardDefaultLayout.tsx
16287
16330
  var import_styled_components104 = __toESM(require("styled-components"));
16288
- var import_type_guards60 = require("@wistia/type-guards");
16331
+ var import_type_guards61 = require("@wistia/type-guards");
16289
16332
 
16290
16333
  // src/components/RadioCard/RadioCardIndicator.tsx
16291
16334
  var import_styled_components103 = __toESM(require("styled-components"));
@@ -16338,7 +16381,7 @@ var RadioCardIndicator = import_styled_components103.default.div`
16338
16381
  RadioCardIndicator.displayName = "RadioCardIndicator_UI";
16339
16382
 
16340
16383
  // src/components/RadioCard/RadioCardDefaultLayout.tsx
16341
- var import_jsx_runtime299 = require("react/jsx-runtime");
16384
+ var import_jsx_runtime300 = require("react/jsx-runtime");
16342
16385
  var StyledCardContent = import_styled_components104.default.div`
16343
16386
  display: grid;
16344
16387
  grid-auto-flow: column;
@@ -16358,18 +16401,18 @@ var RadioCardDefaultLayout = ({
16358
16401
  description,
16359
16402
  showIndicator = true
16360
16403
  }) => {
16361
- return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(StyledCardContent, { children: [
16362
- showIndicator ? /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(StyledIndicatorContainer, { $hasIcon: (0, import_type_guards60.isNotNil)(icon), children: /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
16363
- /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(Stack, { gap: "space-02", children: [
16364
- (0, import_type_guards60.isNotNil)(icon) && /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
16365
- /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(
16404
+ return /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(StyledCardContent, { children: [
16405
+ showIndicator ? /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(StyledIndicatorContainer, { $hasIcon: (0, import_type_guards61.isNotNil)(icon), children: /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
16406
+ /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(Stack, { gap: "space-02", children: [
16407
+ (0, import_type_guards61.isNotNil)(icon) && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
16408
+ /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(
16366
16409
  Stack,
16367
16410
  {
16368
16411
  gap: "space-01",
16369
- style: (0, import_type_guards60.isNotNil)(icon) ? { paddingLeft: 2 } : void 0,
16412
+ style: (0, import_type_guards61.isNotNil)(icon) ? { paddingLeft: 2 } : void 0,
16370
16413
  children: [
16371
- (0, import_type_guards60.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(Text, { variant: "label3", children: /* @__PURE__ */ (0, import_jsx_runtime299.jsx)("strong", { children: label }) }),
16372
- (0, import_type_guards60.isNotNil)(description) && /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
16414
+ (0, import_type_guards61.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Text, { variant: "label3", children: /* @__PURE__ */ (0, import_jsx_runtime300.jsx)("strong", { children: label }) }),
16415
+ (0, import_type_guards61.isNotNil)(description) && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
16373
16416
  Text,
16374
16417
  {
16375
16418
  prominence: "secondary",
@@ -16392,16 +16435,16 @@ var RadioCardChildrenContainer = import_styled_components105.default.div`
16392
16435
  `;
16393
16436
 
16394
16437
  // src/components/RadioCard/RadioCard.tsx
16395
- var import_jsx_runtime300 = require("react/jsx-runtime");
16438
+ var import_jsx_runtime301 = require("react/jsx-runtime");
16396
16439
  var RadioCard = (0, import_react83.forwardRef)(
16397
16440
  ({ icon, label, description, showIndicator, children, ...rootProps }, ref) => {
16398
- return /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
16441
+ return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
16399
16442
  RadioCardRoot,
16400
16443
  {
16401
16444
  ref,
16402
16445
  padding: children != null ? "space-00" : "space-04",
16403
16446
  ...rootProps,
16404
- children: children != null ? /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(RadioCardChildrenContainer, { "data-wui-radio-card-image": "cover", children }) : /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
16447
+ children: children != null ? /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(RadioCardChildrenContainer, { "data-wui-radio-card-image": "cover", children }) : /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
16405
16448
  RadioCardDefaultLayout,
16406
16449
  {
16407
16450
  description,
@@ -16418,17 +16461,17 @@ RadioCard.displayName = "RadioCard_UI";
16418
16461
 
16419
16462
  // src/components/RadioCard/RadioCardImage.tsx
16420
16463
  var import_react84 = require("react");
16421
- var import_jsx_runtime301 = require("react/jsx-runtime");
16464
+ var import_jsx_runtime302 = require("react/jsx-runtime");
16422
16465
  var RadioCardImage = (0, import_react84.forwardRef)(
16423
16466
  ({ label, imageSrc, aspectRatio, padding = "space-04", ...rootProps }, ref) => {
16424
- return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
16467
+ return /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
16425
16468
  RadioCardRoot,
16426
16469
  {
16427
16470
  ref,
16428
16471
  ...rootProps,
16429
16472
  aspectRatio,
16430
16473
  padding,
16431
- children: /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
16474
+ children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
16432
16475
  Image,
16433
16476
  {
16434
16477
  alt: label,
@@ -16448,7 +16491,7 @@ RadioCardImage.displayName = "RadioCardImage_UI";
16448
16491
  var import_react85 = require("react");
16449
16492
  var import_styled_components106 = __toESM(require("styled-components"));
16450
16493
  var import_throttle_debounce2 = require("throttle-debounce");
16451
- var import_jsx_runtime302 = require("react/jsx-runtime");
16494
+ var import_jsx_runtime303 = require("react/jsx-runtime");
16452
16495
  var SHADOW_SIZE_PX = 8;
16453
16496
  var Container10 = import_styled_components106.default.div`
16454
16497
  overflow: hidden;
@@ -16528,12 +16571,12 @@ var ScrollArea = (0, import_react85.forwardRef)(
16528
16571
  (0, import_react85.useEffect)(() => {
16529
16572
  updateShadows();
16530
16573
  }, [updateShadows]);
16531
- return /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(Container10, { style, children: [
16532
- /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(ShadowAtTop, { $isVisible: shadowState.canScrollUp }),
16533
- /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(ShadowAtBottom, { $isVisible: shadowState.canScrollDown }),
16534
- /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(ShadowAtLeft, { $isVisible: shadowState.canScrollLeft }),
16535
- /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(ShadowAtRight, { $isVisible: shadowState.canScrollRight }),
16536
- /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
16574
+ return /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(Container10, { style, children: [
16575
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(ShadowAtTop, { $isVisible: shadowState.canScrollUp }),
16576
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(ShadowAtBottom, { $isVisible: shadowState.canScrollDown }),
16577
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(ShadowAtLeft, { $isVisible: shadowState.canScrollLeft }),
16578
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(ShadowAtRight, { $isVisible: shadowState.canScrollRight }),
16579
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
16537
16580
  ScrollContainer,
16538
16581
  {
16539
16582
  ref: scrollContainerRef,
@@ -16551,11 +16594,11 @@ ScrollArea.displayName = "ScrollArea_UI";
16551
16594
  var import_react88 = require("react");
16552
16595
  var import_styled_components108 = __toESM(require("styled-components"));
16553
16596
  var import_react_toggle_group3 = require("@radix-ui/react-toggle-group");
16554
- var import_type_guards62 = require("@wistia/type-guards");
16597
+ var import_type_guards63 = require("@wistia/type-guards");
16555
16598
 
16556
16599
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
16557
16600
  var import_react86 = require("react");
16558
- var import_jsx_runtime303 = require("react/jsx-runtime");
16601
+ var import_jsx_runtime304 = require("react/jsx-runtime");
16559
16602
  var SelectedItemStyleContext = (0, import_react86.createContext)(null);
16560
16603
  var SelectedItemStyleProvider = ({
16561
16604
  children
@@ -16576,7 +16619,7 @@ var SelectedItemStyleProvider = ({
16576
16619
  }),
16577
16620
  [selectedItemIndicatorStyle]
16578
16621
  );
16579
- return /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
16622
+ return /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
16580
16623
  };
16581
16624
  var useSelectedItemStyle = () => {
16582
16625
  const context = (0, import_react86.useContext)(SelectedItemStyleContext);
@@ -16588,7 +16631,7 @@ var useSelectedItemStyle = () => {
16588
16631
 
16589
16632
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
16590
16633
  var import_styled_components107 = __toESM(require("styled-components"));
16591
- var import_type_guards61 = require("@wistia/type-guards");
16634
+ var import_type_guards62 = require("@wistia/type-guards");
16592
16635
 
16593
16636
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
16594
16637
  var import_react87 = require("react");
@@ -16603,7 +16646,7 @@ var useSegmentedControlValue = () => {
16603
16646
  };
16604
16647
 
16605
16648
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
16606
- var import_jsx_runtime304 = require("react/jsx-runtime");
16649
+ var import_jsx_runtime305 = require("react/jsx-runtime");
16607
16650
  var selectedItemIndicatorStyles = import_styled_components107.css`
16608
16651
  background-color: var(--wui-color-bg-fill-white);
16609
16652
  border-radius: var(--wui-border-radius-rounded);
@@ -16622,10 +16665,10 @@ var SelectedItemIndicatorDiv = import_styled_components107.default.div`
16622
16665
  var SelectedItemIndicator = () => {
16623
16666
  const selectedValue = useSegmentedControlValue();
16624
16667
  const { selectedItemIndicatorStyle } = useSelectedItemStyle();
16625
- if (!selectedValue || (0, import_type_guards61.isUndefined)(selectedItemIndicatorStyle)) {
16668
+ if (!selectedValue || (0, import_type_guards62.isUndefined)(selectedItemIndicatorStyle)) {
16626
16669
  return null;
16627
16670
  }
16628
- return /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
16671
+ return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
16629
16672
  SelectedItemIndicatorDiv,
16630
16673
  {
16631
16674
  "data-wui-selected-item-indicator": true,
@@ -16635,7 +16678,7 @@ var SelectedItemIndicator = () => {
16635
16678
  };
16636
16679
 
16637
16680
  // src/components/SegmentedControl/SegmentedControl.tsx
16638
- var import_jsx_runtime305 = require("react/jsx-runtime");
16681
+ var import_jsx_runtime306 = require("react/jsx-runtime");
16639
16682
  var segmentedControlStyles = import_styled_components108.css`
16640
16683
  display: inline-flex;
16641
16684
  background-color: var(--wui-color-bg-surface-secondary);
@@ -16659,10 +16702,10 @@ var SegmentedControl = (0, import_react88.forwardRef)(
16659
16702
  onSelectedValueChange,
16660
16703
  ...props
16661
16704
  }, ref) => {
16662
- if ((0, import_type_guards62.isNil)(children)) {
16705
+ if ((0, import_type_guards63.isNil)(children)) {
16663
16706
  return null;
16664
16707
  }
16665
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
16708
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
16666
16709
  StyledSegmentedControl,
16667
16710
  {
16668
16711
  ref,
@@ -16674,9 +16717,9 @@ var SegmentedControl = (0, import_react88.forwardRef)(
16674
16717
  type: "single",
16675
16718
  value: selectedValue,
16676
16719
  ...props,
16677
- children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(SelectedItemStyleProvider, { children: [
16720
+ children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(SelectedItemStyleProvider, { children: [
16678
16721
  children,
16679
- /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(SelectedItemIndicator, {})
16722
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(SelectedItemIndicator, {})
16680
16723
  ] }) })
16681
16724
  }
16682
16725
  );
@@ -16688,8 +16731,8 @@ SegmentedControl.displayName = "SegmentedControl_UI";
16688
16731
  var import_react89 = require("react");
16689
16732
  var import_styled_components109 = __toESM(require("styled-components"));
16690
16733
  var import_react_toggle_group4 = require("@radix-ui/react-toggle-group");
16691
- var import_type_guards63 = require("@wistia/type-guards");
16692
- var import_jsx_runtime306 = require("react/jsx-runtime");
16734
+ var import_type_guards64 = require("@wistia/type-guards");
16735
+ var import_jsx_runtime307 = require("react/jsx-runtime");
16693
16736
  var segmentedControlItemStyles = import_styled_components109.css`
16694
16737
  all: unset; /* ToggleGroupItem is a button element */
16695
16738
  align-items: center;
@@ -16799,13 +16842,13 @@ var SegmentedControlItem = (0, import_react89.forwardRef)(
16799
16842
  resizeObserver.disconnect();
16800
16843
  };
16801
16844
  }, [selectedValue, setSelectedItemMeasurements, value]);
16802
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
16845
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
16803
16846
  StyledSegmentedControlItem,
16804
16847
  {
16805
16848
  ref: combinedRef,
16806
16849
  ...otherProps,
16807
- $hasLabel: (0, import_type_guards63.isNotNil)(label),
16808
- "aria-label": (0, import_type_guards63.isNotNil)(label) ? void 0 : ariaLabel,
16850
+ $hasLabel: (0, import_type_guards64.isNotNil)(label),
16851
+ "aria-label": (0, import_type_guards64.isNotNil)(label) ? void 0 : ariaLabel,
16809
16852
  disabled,
16810
16853
  onClick: handleClick,
16811
16854
  value,
@@ -16823,7 +16866,7 @@ SegmentedControlItem.displayName = "SegmentedControlItem_UI";
16823
16866
  var import_react_select = require("@radix-ui/react-select");
16824
16867
  var import_react90 = require("react");
16825
16868
  var import_styled_components110 = __toESM(require("styled-components"));
16826
- var import_jsx_runtime307 = require("react/jsx-runtime");
16869
+ var import_jsx_runtime308 = require("react/jsx-runtime");
16827
16870
  var StyledTrigger2 = (0, import_styled_components110.default)(import_react_select.Trigger)`
16828
16871
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
16829
16872
  ${inputCss};
@@ -16912,8 +16955,8 @@ var Select = (0, import_react90.forwardRef)(
16912
16955
  if (forceOpen) {
16913
16956
  rootProps["open"] = true;
16914
16957
  }
16915
- return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(import_react_select.Root, { ...rootProps, children: [
16916
- /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
16958
+ return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(import_react_select.Root, { ...rootProps, children: [
16959
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
16917
16960
  StyledTrigger2,
16918
16961
  {
16919
16962
  ref: forwardedRef,
@@ -16921,8 +16964,8 @@ var Select = (0, import_react90.forwardRef)(
16921
16964
  $fullWidth: responsiveFullWidth,
16922
16965
  ...props,
16923
16966
  children: [
16924
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.Value, { placeholder }),
16925
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
16967
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.Value, { placeholder }),
16968
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
16926
16969
  Icon,
16927
16970
  {
16928
16971
  size: "md",
@@ -16932,10 +16975,10 @@ var Select = (0, import_react90.forwardRef)(
16932
16975
  ]
16933
16976
  }
16934
16977
  ),
16935
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(StyledContent3, { position: "popper", children: [
16936
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { type: "caret-up" }) }),
16937
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.Viewport, { children }),
16938
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { type: "caret-down" }) })
16978
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(StyledContent3, { position: "popper", children: [
16979
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(Icon, { type: "caret-up" }) }),
16980
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.Viewport, { children }),
16981
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(Icon, { type: "caret-down" }) })
16939
16982
  ] }) })
16940
16983
  ] });
16941
16984
  }
@@ -16946,8 +16989,8 @@ Select.displayName = "Select_UI";
16946
16989
  var import_react_select2 = require("@radix-ui/react-select");
16947
16990
  var import_react91 = require("react");
16948
16991
  var import_styled_components111 = __toESM(require("styled-components"));
16949
- var import_type_guards64 = require("@wistia/type-guards");
16950
- var import_jsx_runtime308 = require("react/jsx-runtime");
16992
+ var import_type_guards65 = require("@wistia/type-guards");
16993
+ var import_jsx_runtime309 = require("react/jsx-runtime");
16951
16994
  var StyledItem = (0, import_styled_components111.default)(import_react_select2.Item)`
16952
16995
  ${getTypographicStyles("label3")}
16953
16996
  display: flex;
@@ -16974,17 +17017,17 @@ var StyledItem = (0, import_styled_components111.default)(import_react_select2.I
16974
17017
  `;
16975
17018
  var SelectOption = (0, import_react91.forwardRef)(
16976
17019
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
16977
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
17020
+ return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
16978
17021
  StyledItem,
16979
17022
  {
16980
17023
  ...props,
16981
17024
  ref: forwardedRef,
16982
17025
  children: [
16983
- (0, import_type_guards64.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("div", { children: [
17026
+ (0, import_type_guards65.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)("div", { children: [
16984
17027
  children,
16985
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
16986
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemText, { children }),
16987
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
17028
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
17029
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(import_react_select2.ItemText, { children }),
17030
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
16988
17031
  Icon,
16989
17032
  {
16990
17033
  size: "md",
@@ -17001,13 +17044,13 @@ SelectOption.displayName = "SelectOption_UI";
17001
17044
  // src/components/Select/SelectOptionGroup.tsx
17002
17045
  var import_react_select3 = require("@radix-ui/react-select");
17003
17046
  var import_styled_components112 = __toESM(require("styled-components"));
17004
- var import_jsx_runtime309 = require("react/jsx-runtime");
17047
+ var import_jsx_runtime310 = require("react/jsx-runtime");
17005
17048
  var StyledLabel4 = (0, import_styled_components112.default)(import_react_select3.Label)`
17006
17049
  padding: var(--wui-select-option-padding);
17007
17050
  `;
17008
17051
  var SelectOptionGroup = ({ children, label, ...props }) => {
17009
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_react_select3.Group, { ...props, children: [
17010
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
17052
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_react_select3.Group, { ...props, children: [
17053
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
17011
17054
  Heading,
17012
17055
  {
17013
17056
  renderAs: "span",
@@ -17022,8 +17065,8 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
17022
17065
  // src/components/Slider/Slider.tsx
17023
17066
  var import_react_slider2 = require("@radix-ui/react-slider");
17024
17067
  var import_styled_components113 = __toESM(require("styled-components"));
17025
- var import_type_guards65 = require("@wistia/type-guards");
17026
- var import_jsx_runtime310 = require("react/jsx-runtime");
17068
+ var import_type_guards66 = require("@wistia/type-guards");
17069
+ var import_jsx_runtime311 = require("react/jsx-runtime");
17027
17070
  var SliderContainer = import_styled_components113.default.div`
17028
17071
  --wui-slider-track-color: var(--wui-gray-6);
17029
17072
  --wui-slider-track-border-radius: var(--wui-border-radius-rounded);
@@ -17101,7 +17144,7 @@ var Slider = ({
17101
17144
  "data-testid": dataTestId = "ui-slider",
17102
17145
  ...otherProps
17103
17146
  }) => {
17104
- if (!((0, import_type_guards65.isNonEmptyString)(ariaLabel) || (0, import_type_guards65.isNonEmptyString)(ariaLabelledby))) {
17147
+ if (!((0, import_type_guards66.isNonEmptyString)(ariaLabel) || (0, import_type_guards66.isNonEmptyString)(ariaLabelledby))) {
17105
17148
  throw new Error(
17106
17149
  "UI Slider: Sliders should have an accessible name. Add a label using the aria-label or aria-labelledby prop."
17107
17150
  );
@@ -17112,12 +17155,12 @@ var Slider = ({
17112
17155
  onChange(newValue);
17113
17156
  }
17114
17157
  };
17115
- return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
17158
+ return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
17116
17159
  SliderContainer,
17117
17160
  {
17118
17161
  ...otherProps,
17119
17162
  "data-testid": dataTestId,
17120
- children: /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(
17163
+ children: /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(
17121
17164
  StyledSliderRoot,
17122
17165
  {
17123
17166
  "aria-label": ariaLabel,
@@ -17130,8 +17173,8 @@ var Slider = ({
17130
17173
  step,
17131
17174
  ...value ? { value } : {},
17132
17175
  children: [
17133
- /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
17134
- values.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
17176
+ /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
17177
+ values.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
17135
17178
  StyledSliderThumb,
17136
17179
  {
17137
17180
  "data-testid": `${dataTestId}-thumb-${index}`
@@ -17148,7 +17191,7 @@ Slider.displayName = "Slider_UI";
17148
17191
 
17149
17192
  // src/components/Table/Table.tsx
17150
17193
  var import_styled_components114 = __toESM(require("styled-components"));
17151
- var import_jsx_runtime311 = require("react/jsx-runtime");
17194
+ var import_jsx_runtime312 = require("react/jsx-runtime");
17152
17195
  var StyledTable = import_styled_components114.default.table`
17153
17196
  width: 100%;
17154
17197
  border-collapse: collapse;
@@ -17178,7 +17221,7 @@ var Table = ({
17178
17221
  visuallyHiddenHeader = false,
17179
17222
  ...props
17180
17223
  }) => {
17181
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
17224
+ return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
17182
17225
  StyledTable,
17183
17226
  {
17184
17227
  $divided: divided,
@@ -17199,16 +17242,16 @@ var import_react92 = require("react");
17199
17242
  var TableSectionContext = (0, import_react92.createContext)(null);
17200
17243
 
17201
17244
  // src/components/Table/TableBody.tsx
17202
- var import_jsx_runtime312 = require("react/jsx-runtime");
17245
+ var import_jsx_runtime313 = require("react/jsx-runtime");
17203
17246
  var StyledTableBody = import_styled_components115.default.tbody``;
17204
17247
  var TableBody = ({ children, ...props }) => {
17205
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(StyledTableBody, { ...props, children }) });
17248
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(StyledTableBody, { ...props, children }) });
17206
17249
  };
17207
17250
 
17208
17251
  // src/components/Table/TableCell.tsx
17209
17252
  var import_react94 = require("react");
17210
17253
  var import_styled_components116 = __toESM(require("styled-components"));
17211
- var import_jsx_runtime313 = require("react/jsx-runtime");
17254
+ var import_jsx_runtime314 = require("react/jsx-runtime");
17212
17255
  var sharedStyles = import_styled_components116.css`
17213
17256
  color: var(--wui-color-text);
17214
17257
  padding: var(--wui-space-02);
@@ -17229,41 +17272,41 @@ var StyledTd = import_styled_components116.default.td`
17229
17272
  var TableCell = ({ children, ...props }) => {
17230
17273
  const section = (0, import_react94.useContext)(TableSectionContext);
17231
17274
  if (section === "head") {
17232
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(StyledTh, { ...props, children });
17275
+ return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(StyledTh, { ...props, children });
17233
17276
  }
17234
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(StyledTd, { ...props, children });
17277
+ return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(StyledTd, { ...props, children });
17235
17278
  };
17236
17279
 
17237
17280
  // src/components/Table/TableFoot.tsx
17238
17281
  var import_react95 = require("react");
17239
17282
  var import_styled_components117 = __toESM(require("styled-components"));
17240
- var import_jsx_runtime314 = require("react/jsx-runtime");
17283
+ var import_jsx_runtime315 = require("react/jsx-runtime");
17241
17284
  var StyledTableFoot = import_styled_components117.default.tfoot``;
17242
17285
  var TableFoot = ({ children, ...props }) => {
17243
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(StyledTableFoot, { ...props, children }) });
17286
+ return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(StyledTableFoot, { ...props, children }) });
17244
17287
  };
17245
17288
 
17246
17289
  // src/components/Table/TableHead.tsx
17247
17290
  var import_react96 = require("react");
17248
17291
  var import_styled_components118 = __toESM(require("styled-components"));
17249
- var import_jsx_runtime315 = require("react/jsx-runtime");
17292
+ var import_jsx_runtime316 = require("react/jsx-runtime");
17250
17293
  var StyledThead = import_styled_components118.default.thead``;
17251
17294
  var TableHead = ({ children, ...props }) => {
17252
- return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(StyledThead, { ...props, children }) });
17295
+ return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(StyledThead, { ...props, children }) });
17253
17296
  };
17254
17297
 
17255
17298
  // src/components/Table/TableRow.tsx
17256
17299
  var import_styled_components119 = __toESM(require("styled-components"));
17257
- var import_jsx_runtime316 = require("react/jsx-runtime");
17300
+ var import_jsx_runtime317 = require("react/jsx-runtime");
17258
17301
  var StyledTableRow = import_styled_components119.default.tr``;
17259
17302
  var TableRow = ({ children, ...props }) => {
17260
- return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(StyledTableRow, { ...props, children });
17303
+ return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(StyledTableRow, { ...props, children });
17261
17304
  };
17262
17305
 
17263
17306
  // src/components/Tabs/Tabs.tsx
17264
17307
  var import_react_tabs = require("@radix-ui/react-tabs");
17265
17308
  var import_react98 = require("react");
17266
- var import_type_guards66 = require("@wistia/type-guards");
17309
+ var import_type_guards67 = require("@wistia/type-guards");
17267
17310
 
17268
17311
  // src/components/Tabs/useTabsValue.tsx
17269
17312
  var import_react97 = require("react");
@@ -17278,7 +17321,7 @@ var useTabsValue = () => {
17278
17321
  };
17279
17322
 
17280
17323
  // src/components/Tabs/Tabs.tsx
17281
- var import_jsx_runtime317 = require("react/jsx-runtime");
17324
+ var import_jsx_runtime318 = require("react/jsx-runtime");
17282
17325
  var Tabs = ({
17283
17326
  children,
17284
17327
  value: valueProp,
@@ -17300,21 +17343,21 @@ var Tabs = ({
17300
17343
  ...props,
17301
17344
  onValueChange
17302
17345
  };
17303
- if ((0, import_type_guards66.isNotNil)(value)) {
17346
+ if ((0, import_type_guards67.isNotNil)(value)) {
17304
17347
  rootProps.value = value;
17305
17348
  }
17306
- if ((0, import_type_guards66.isNotNil)(defaultValue)) {
17349
+ if ((0, import_type_guards67.isNotNil)(defaultValue)) {
17307
17350
  rootProps.defaultValue = defaultValue;
17308
17351
  }
17309
- return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(SelectedItemStyleProvider, { children }) }) });
17352
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(SelectedItemStyleProvider, { children }) }) });
17310
17353
  };
17311
17354
  Tabs.displayName = "Tabs_UI";
17312
17355
 
17313
17356
  // src/components/Tabs/TabsContent.tsx
17314
17357
  var import_react_tabs2 = require("@radix-ui/react-tabs");
17315
- var import_jsx_runtime318 = require("react/jsx-runtime");
17358
+ var import_jsx_runtime319 = require("react/jsx-runtime");
17316
17359
  var TabsContent = ({ children, value }) => {
17317
- return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(import_react_tabs2.Content, { value, children });
17360
+ return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(import_react_tabs2.Content, { value, children });
17318
17361
  };
17319
17362
  TabsContent.displayName = "TabsContent_UI";
17320
17363
 
@@ -17323,7 +17366,7 @@ var import_react_tabs3 = require("@radix-ui/react-tabs");
17323
17366
  var import_styled_components121 = __toESM(require("styled-components"));
17324
17367
 
17325
17368
  // src/components/Tabs/SelectedTabIndicator.tsx
17326
- var import_type_guards67 = require("@wistia/type-guards");
17369
+ var import_type_guards68 = require("@wistia/type-guards");
17327
17370
 
17328
17371
  // src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
17329
17372
  var import_styled_components120 = __toESM(require("styled-components"));
@@ -17334,14 +17377,14 @@ var TabsSelectedItemIndicatorDiv = (0, import_styled_components120.default)(Sele
17334
17377
  `;
17335
17378
 
17336
17379
  // src/components/Tabs/SelectedTabIndicator.tsx
17337
- var import_jsx_runtime319 = require("react/jsx-runtime");
17380
+ var import_jsx_runtime320 = require("react/jsx-runtime");
17338
17381
  var SelectedTabIndicator = () => {
17339
17382
  const { selectedItemIndicatorStyle } = useSelectedItemStyle();
17340
17383
  const selectedValue = useTabsValue();
17341
- if (selectedValue == null || (0, import_type_guards67.isUndefined)(selectedItemIndicatorStyle)) {
17384
+ if (selectedValue == null || (0, import_type_guards68.isUndefined)(selectedItemIndicatorStyle)) {
17342
17385
  return null;
17343
17386
  }
17344
- return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
17387
+ return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
17345
17388
  TabsSelectedItemIndicatorDiv,
17346
17389
  {
17347
17390
  "data-wui-selected-item-indicator": true,
@@ -17351,19 +17394,19 @@ var SelectedTabIndicator = () => {
17351
17394
  };
17352
17395
 
17353
17396
  // src/components/Tabs/TabsList.tsx
17354
- var import_jsx_runtime320 = require("react/jsx-runtime");
17397
+ var import_jsx_runtime321 = require("react/jsx-runtime");
17355
17398
  var StyledRadixTabsList = (0, import_styled_components121.default)(import_react_tabs3.List)`
17356
17399
  ${segmentedControlStyles}
17357
17400
  `;
17358
17401
  var TabsList = ({ children, fullWidth = true, ...props }) => {
17359
- return /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
17402
+ return /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(
17360
17403
  StyledRadixTabsList,
17361
17404
  {
17362
17405
  $fullWidth: fullWidth,
17363
17406
  "aria-label": props["aria-label"],
17364
17407
  children: [
17365
17408
  children,
17366
- /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(SelectedTabIndicator, {})
17409
+ /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(SelectedTabIndicator, {})
17367
17410
  ]
17368
17411
  }
17369
17412
  );
@@ -17372,7 +17415,7 @@ TabsList.displayName = "TabsList_UI";
17372
17415
 
17373
17416
  // src/components/Tabs/TabsTrigger.tsx
17374
17417
  var import_react99 = require("react");
17375
- var import_type_guards68 = require("@wistia/type-guards");
17418
+ var import_type_guards69 = require("@wistia/type-guards");
17376
17419
 
17377
17420
  // src/components/Tabs/StyledRadixTabsTrigger.tsx
17378
17421
  var import_styled_components122 = __toESM(require("styled-components"));
@@ -17386,7 +17429,7 @@ var StyledRadixTabsTrigger = (0, import_styled_components122.default)(import_rea
17386
17429
  `;
17387
17430
 
17388
17431
  // src/components/Tabs/TabsTrigger.tsx
17389
- var import_jsx_runtime321 = require("react/jsx-runtime");
17432
+ var import_jsx_runtime322 = require("react/jsx-runtime");
17390
17433
  var TabsTrigger = (0, import_react99.forwardRef)(
17391
17434
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
17392
17435
  const selectedValue = useTabsValue();
@@ -17418,13 +17461,13 @@ var TabsTrigger = (0, import_react99.forwardRef)(
17418
17461
  resizeObserver.disconnect();
17419
17462
  };
17420
17463
  }, [selectedValue, setSelectedItemMeasurements, value]);
17421
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(
17464
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(
17422
17465
  StyledRadixTabsTrigger,
17423
17466
  {
17424
17467
  ...otherProps,
17425
17468
  ref: combinedRef,
17426
- $hasLabel: (0, import_type_guards68.isNotNil)(label),
17427
- "aria-label": (0, import_type_guards68.isNotNil)(label) ? void 0 : ariaLabel,
17469
+ $hasLabel: (0, import_type_guards69.isNotNil)(label),
17470
+ "aria-label": (0, import_type_guards69.isNotNil)(label) ? void 0 : ariaLabel,
17428
17471
  disabled,
17429
17472
  value,
17430
17473
  children: [
@@ -17439,8 +17482,8 @@ TabsTrigger.displayName = "TabsTrigger_UI";
17439
17482
 
17440
17483
  // src/components/Thumbnail/ThumbnailBadge.tsx
17441
17484
  var import_styled_components123 = __toESM(require("styled-components"));
17442
- var import_type_guards69 = require("@wistia/type-guards");
17443
- var import_jsx_runtime322 = require("react/jsx-runtime");
17485
+ var import_type_guards70 = require("@wistia/type-guards");
17486
+ var import_jsx_runtime323 = require("react/jsx-runtime");
17444
17487
  var StyledThumbnailBadge = import_styled_components123.default.div`
17445
17488
  align-items: center;
17446
17489
  background-color: rgb(0 0 0 / 50%);
@@ -17467,9 +17510,9 @@ var StyledThumbnailBadge = import_styled_components123.default.div`
17467
17510
  }
17468
17511
  `;
17469
17512
  var ThumbnailBadge = ({ icon, label, ...props }) => {
17470
- return /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(StyledThumbnailBadge, { ...props, children: [
17471
- (0, import_type_guards69.isNotNil)(icon) && icon,
17472
- /* @__PURE__ */ (0, import_jsx_runtime322.jsx)("span", { children: label })
17513
+ return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(StyledThumbnailBadge, { ...props, children: [
17514
+ (0, import_type_guards70.isNotNil)(icon) && icon,
17515
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("span", { children: label })
17473
17516
  ] });
17474
17517
  };
17475
17518
  ThumbnailBadge.displayName = "ThumbnailBadge_UI";
@@ -17477,10 +17520,10 @@ ThumbnailBadge.displayName = "ThumbnailBadge_UI";
17477
17520
  // src/components/Thumbnail/Thumbnail.tsx
17478
17521
  var import_react100 = require("react");
17479
17522
  var import_styled_components126 = __toESM(require("styled-components"));
17480
- var import_type_guards72 = require("@wistia/type-guards");
17523
+ var import_type_guards73 = require("@wistia/type-guards");
17481
17524
 
17482
17525
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
17483
- var import_type_guards70 = require("@wistia/type-guards");
17526
+ var import_type_guards71 = require("@wistia/type-guards");
17484
17527
  var import_styled_components124 = require("styled-components");
17485
17528
  var gradients = {
17486
17529
  defaultDarkOne: import_styled_components124.css`
@@ -17608,13 +17651,13 @@ var gradients = {
17608
17651
  };
17609
17652
  var gradientMap = Object.keys(gradients);
17610
17653
  var getBackgroundGradient = (gradientName = void 0) => {
17611
- return (0, import_type_guards70.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
17654
+ return (0, import_type_guards71.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
17612
17655
  };
17613
17656
 
17614
17657
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
17615
17658
  var import_styled_components125 = __toESM(require("styled-components"));
17616
- var import_type_guards71 = require("@wistia/type-guards");
17617
- var import_jsx_runtime323 = require("react/jsx-runtime");
17659
+ var import_type_guards72 = require("@wistia/type-guards");
17660
+ var import_jsx_runtime324 = require("react/jsx-runtime");
17618
17661
  var ScrubLine = import_styled_components125.default.div`
17619
17662
  position: absolute;
17620
17663
  top: 0;
@@ -17707,8 +17750,8 @@ var ThumbnailStoryboardViewer = ({
17707
17750
  );
17708
17751
  const backgroundSize = `${scaledStoryboardWidth}px ${scaledStoryboardHeight}px`;
17709
17752
  const backgroundImage = `url(${storyboardUrl})`;
17710
- const showScrubLine = (0, import_type_guards71.isNotNil)(cursorPosition);
17711
- const scrubLinePosition = (0, import_type_guards71.isNotNil)(cursorPosition) ? `${cursorPosition - 1}px` : "0";
17753
+ const showScrubLine = (0, import_type_guards72.isNotNil)(cursorPosition);
17754
+ const scrubLinePosition = (0, import_type_guards72.isNotNil)(cursorPosition) ? `${cursorPosition - 1}px` : "0";
17712
17755
  const viewerStyles = {
17713
17756
  position: "relative",
17714
17757
  overflow: "hidden",
@@ -17726,14 +17769,14 @@ var ThumbnailStoryboardViewer = ({
17726
17769
  backgroundPosition,
17727
17770
  backgroundSize
17728
17771
  };
17729
- return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(
17772
+ return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(
17730
17773
  "div",
17731
17774
  {
17732
17775
  ...props,
17733
17776
  style: viewerStyles,
17734
17777
  children: [
17735
- /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("div", { style: storyboardStyles }),
17736
- showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
17778
+ /* @__PURE__ */ (0, import_jsx_runtime324.jsx)("div", { style: storyboardStyles }),
17779
+ showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
17737
17780
  ScrubLine,
17738
17781
  {
17739
17782
  style: {
@@ -17747,7 +17790,7 @@ var ThumbnailStoryboardViewer = ({
17747
17790
  };
17748
17791
 
17749
17792
  // src/components/Thumbnail/Thumbnail.tsx
17750
- var import_jsx_runtime324 = require("react/jsx-runtime");
17793
+ var import_jsx_runtime325 = require("react/jsx-runtime");
17751
17794
  var WideThumbnailImage = import_styled_components126.default.img`
17752
17795
  height: 100%;
17753
17796
  object-fit: cover;
@@ -17760,7 +17803,7 @@ var SquareThumbnailImage = import_styled_components126.default.img`
17760
17803
  `;
17761
17804
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
17762
17805
  if (thumbnailImageType === "wide") {
17763
- return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
17806
+ return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
17764
17807
  WideThumbnailImage,
17765
17808
  {
17766
17809
  alt: "",
@@ -17769,7 +17812,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
17769
17812
  }
17770
17813
  );
17771
17814
  }
17772
- return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
17815
+ return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
17773
17816
  SquareThumbnailImage,
17774
17817
  {
17775
17818
  alt: "",
@@ -17779,10 +17822,10 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
17779
17822
  );
17780
17823
  };
17781
17824
  var StyledThumbnail = import_styled_components126.default.div`
17782
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards72.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
17825
+ background-image: ${({ $backgroundUrl }) => (0, import_type_guards73.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
17783
17826
  ${({ $backgroundUrl, $gradientBackground }) => (
17784
17827
  // if we don't have $backgroundUrl show a gradient
17785
- (0, import_type_guards72.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
17828
+ (0, import_type_guards73.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
17786
17829
  )};
17787
17830
  background-position: center center;
17788
17831
  background-size: cover;
@@ -17824,10 +17867,10 @@ var Thumbnail = (0, import_react100.forwardRef)(
17824
17867
  const storyboardElementRef = (0, import_react100.useRef)(null);
17825
17868
  const [cursorPosition, setCursorPosition] = (0, import_react100.useState)(null);
17826
17869
  const backgroundUrl = (0, import_react100.useMemo)(
17827
- () => thumbnailImageType === "square" && (0, import_type_guards72.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
17870
+ () => thumbnailImageType === "square" && (0, import_type_guards73.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
17828
17871
  [thumbnailImageType, thumbnailUrl]
17829
17872
  );
17830
- const isScrubbable = (0, import_type_guards72.isNotNil)(storyboard);
17873
+ const isScrubbable = (0, import_type_guards73.isNotNil)(storyboard);
17831
17874
  const trackStoryboardLoadStatus = (0, import_react100.useCallback)(() => {
17832
17875
  if (storyboardElementRef.current || !storyboard) {
17833
17876
  return storyboardElementRef.current;
@@ -17860,7 +17903,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
17860
17903
  return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
17861
17904
  }, [isScrubbable, isMouseOver, isStoryboardReady]);
17862
17905
  const renderStoryboard = (0, import_react100.useCallback)(() => {
17863
- if (!storyboard || (0, import_type_guards72.isUndefined)(height) || (0, import_type_guards72.isEmptyString)(height)) return null;
17906
+ if (!storyboard || (0, import_type_guards73.isUndefined)(height) || (0, import_type_guards73.isEmptyString)(height)) return null;
17864
17907
  const {
17865
17908
  url,
17866
17909
  width: sbWidth,
@@ -17870,9 +17913,9 @@ var Thumbnail = (0, import_react100.forwardRef)(
17870
17913
  frameCount,
17871
17914
  aspectRatio
17872
17915
  } = storyboard;
17873
- const targetWidth = (0, import_type_guards72.isString)(width) ? parseInt(width, 10) : Number(width);
17916
+ const targetWidth = (0, import_type_guards73.isString)(width) ? parseInt(width, 10) : Number(width);
17874
17917
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
17875
- return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
17918
+ return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
17876
17919
  ThumbnailStoryboardViewer,
17877
17920
  {
17878
17921
  cursorPosition: effectiveCursorPosition,
@@ -17891,8 +17934,8 @@ var Thumbnail = (0, import_react100.forwardRef)(
17891
17934
  let thumbnailContent = null;
17892
17935
  if (shouldRenderStoryboard) {
17893
17936
  thumbnailContent = renderStoryboard();
17894
- } else if ((0, import_type_guards72.isNotNil)(thumbnailUrl)) {
17895
- thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
17937
+ } else if ((0, import_type_guards73.isNotNil)(thumbnailUrl)) {
17938
+ thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
17896
17939
  ThumbnailImage,
17897
17940
  {
17898
17941
  thumbnailImageType,
@@ -17902,7 +17945,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
17902
17945
  } else {
17903
17946
  thumbnailContent = null;
17904
17947
  }
17905
- return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(
17948
+ return /* @__PURE__ */ (0, import_jsx_runtime325.jsxs)(
17906
17949
  StyledThumbnail,
17907
17950
  {
17908
17951
  ref,
@@ -17916,7 +17959,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
17916
17959
  onMouseOut: handleMouseOut,
17917
17960
  role: "presentation",
17918
17961
  children: [
17919
- (0, import_type_guards72.isNotNil)(children) ? children : null,
17962
+ (0, import_type_guards73.isNotNil)(children) ? children : null,
17920
17963
  thumbnailContent
17921
17964
  ]
17922
17965
  }
@@ -17928,8 +17971,8 @@ Thumbnail.displayName = "Thumbnail_UI";
17928
17971
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
17929
17972
  var import_react101 = __toESM(require("react"));
17930
17973
  var import_styled_components127 = __toESM(require("styled-components"));
17931
- var import_type_guards73 = require("@wistia/type-guards");
17932
- var import_jsx_runtime325 = (
17974
+ var import_type_guards74 = require("@wistia/type-guards");
17975
+ var import_jsx_runtime326 = (
17933
17976
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
17934
17977
  require("react/jsx-runtime")
17935
17978
  );
@@ -18008,13 +18051,13 @@ var ThumbnailCollage = ({
18008
18051
  }) => {
18009
18052
  const thumbnailArray = import_react101.default.Children.toArray(children);
18010
18053
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
18011
- const thumbnails = (0, import_type_guards73.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
18054
+ const thumbnails = (0, import_type_guards74.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
18012
18055
  return import_react101.default.cloneElement(child, {
18013
18056
  ...child.props,
18014
18057
  children: void 0
18015
18058
  });
18016
18059
  }) : [
18017
- /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
18060
+ /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
18018
18061
  Thumbnail,
18019
18062
  {
18020
18063
  gradientBackground,
@@ -18023,7 +18066,7 @@ var ThumbnailCollage = ({
18023
18066
  "fallback"
18024
18067
  )
18025
18068
  ];
18026
- return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
18069
+ return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
18027
18070
  StyledThumbnailCollage,
18028
18071
  {
18029
18072
  $gradientBackground: gradientBackground,
@@ -18036,25 +18079,25 @@ var ThumbnailCollage = ({
18036
18079
 
18037
18080
  // src/components/WistiaLogo/WistiaLogo.tsx
18038
18081
  var import_styled_components128 = __toESM(require("styled-components"));
18039
- var import_type_guards74 = require("@wistia/type-guards");
18040
- var import_jsx_runtime326 = require("react/jsx-runtime");
18082
+ var import_type_guards75 = require("@wistia/type-guards");
18083
+ var import_jsx_runtime327 = require("react/jsx-runtime");
18041
18084
  var renderBrandmark = (brandmarkColor, iconOnly) => {
18042
18085
  if (iconOnly) {
18043
- return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
18086
+ return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18044
18087
  "g",
18045
18088
  {
18046
18089
  "data-testid": "ui-wistia-logo-brandmark",
18047
18090
  fill: brandmarkColor,
18048
- children: /* @__PURE__ */ (0, import_jsx_runtime326.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" })
18091
+ children: /* @__PURE__ */ (0, import_jsx_runtime327.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" })
18049
18092
  }
18050
18093
  );
18051
18094
  }
18052
- return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
18095
+ return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18053
18096
  "g",
18054
18097
  {
18055
18098
  "data-testid": "ui-wistia-logo-brandmark",
18056
18099
  fill: brandmarkColor,
18057
- children: /* @__PURE__ */ (0, import_jsx_runtime326.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" })
18100
+ children: /* @__PURE__ */ (0, import_jsx_runtime327.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" })
18058
18101
  }
18059
18102
  );
18060
18103
  };
@@ -18062,12 +18105,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
18062
18105
  if (iconOnly) {
18063
18106
  return null;
18064
18107
  }
18065
- return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
18108
+ return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18066
18109
  "g",
18067
18110
  {
18068
18111
  "data-testid": "ui-wistia-logo-logotype",
18069
18112
  fill: logotypeColor,
18070
- children: /* @__PURE__ */ (0, import_jsx_runtime326.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" })
18113
+ children: /* @__PURE__ */ (0, import_jsx_runtime327.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" })
18071
18114
  }
18072
18115
  );
18073
18116
  };
@@ -18135,7 +18178,7 @@ var WistiaLogo = ({
18135
18178
  };
18136
18179
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
18137
18180
  const logotypeColor = VARIANT_COLORS[variant].logotype;
18138
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime326.jsxs)(
18181
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
18139
18182
  WistiaLogoComponent,
18140
18183
  {
18141
18184
  $hoverColor: hoverColor,
@@ -18148,21 +18191,21 @@ var WistiaLogo = ({
18148
18191
  xmlns: "http://www.w3.org/2000/svg",
18149
18192
  ...props,
18150
18193
  children: [
18151
- /* @__PURE__ */ (0, import_jsx_runtime326.jsx)("title", { children: title }),
18152
- (0, import_type_guards74.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime326.jsx)("desc", { children: description }) : null,
18194
+ /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("title", { children: title }),
18195
+ (0, import_type_guards75.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("desc", { children: description }) : null,
18153
18196
  renderBrandmark(brandmarkColor, iconOnly),
18154
18197
  renderLogotype(logotypeColor, iconOnly)
18155
18198
  ]
18156
18199
  }
18157
18200
  );
18158
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime326.jsx)("a", { href, children: Logo }) : Logo;
18201
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("a", { href, children: Logo }) : Logo;
18159
18202
  };
18160
18203
  WistiaLogo.displayName = "WistiaLogo_UI";
18161
18204
 
18162
18205
  // src/components/SplitButton/SplitButton.tsx
18163
18206
  var import_styled_components129 = __toESM(require("styled-components"));
18164
- var import_type_guards75 = require("@wistia/type-guards");
18165
- var import_jsx_runtime327 = require("react/jsx-runtime");
18207
+ var import_type_guards76 = require("@wistia/type-guards");
18208
+ var import_jsx_runtime328 = require("react/jsx-runtime");
18166
18209
  var StyledSplitButton = import_styled_components129.default.span`
18167
18210
  white-space: nowrap;
18168
18211
 
@@ -18180,7 +18223,7 @@ var StyledSplitButton = import_styled_components129.default.span`
18180
18223
  var SplitButton = ({
18181
18224
  children,
18182
18225
  menuLabel = "Select an option",
18183
- menuIcon = /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(Icon, { type: "caret-down" }),
18226
+ menuIcon = /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(Icon, { type: "caret-down" }),
18184
18227
  menuItems,
18185
18228
  disabled = false,
18186
18229
  colorScheme = "default",
@@ -18191,8 +18234,8 @@ var SplitButton = ({
18191
18234
  menuProps = {},
18192
18235
  ...props
18193
18236
  }) => {
18194
- return /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(StyledSplitButton, { children: [
18195
- /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18237
+ return /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(StyledSplitButton, { children: [
18238
+ /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
18196
18239
  Button,
18197
18240
  {
18198
18241
  colorScheme,
@@ -18204,12 +18247,12 @@ var SplitButton = ({
18204
18247
  children
18205
18248
  }
18206
18249
  ),
18207
- (0, import_type_guards75.isNotNil)(menuItems) && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18250
+ (0, import_type_guards76.isNotNil)(menuItems) && /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
18208
18251
  Menu,
18209
18252
  {
18210
18253
  ...menuProps,
18211
18254
  disabled,
18212
- trigger: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18255
+ trigger: /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
18213
18256
  IconButton,
18214
18257
  {
18215
18258
  colorScheme,
@@ -18224,7 +18267,7 @@ var SplitButton = ({
18224
18267
  children: menuItems
18225
18268
  }
18226
18269
  ),
18227
- (0, import_type_guards75.isNotNil)(secondaryAction) && secondaryAction
18270
+ (0, import_type_guards76.isNotNil)(secondaryAction) && secondaryAction
18228
18271
  ] });
18229
18272
  };
18230
18273
  SplitButton.displayName = "SplitButton_UI";
@@ -18316,6 +18359,8 @@ SplitButton.displayName = "SplitButton_UI";
18316
18359
  MenuLabel,
18317
18360
  MenuRadioGroup,
18318
18361
  Modal,
18362
+ ModalValueProp,
18363
+ ModalValueProps,
18319
18364
  PersistentFileAmountLimitValidator,
18320
18365
  Popover,
18321
18366
  ProgressBar,