@wistia/ui 0.10.15 → 0.10.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.10.15
3
+ * @license @wistia/ui v0.10.16
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -70,6 +70,8 @@ __export(index_exports, {
70
70
  FileAmountLimitValidator: () => import_validators.FileAmountLimitValidator,
71
71
  FileSizeValidator: () => import_validators.FileSizeValidator,
72
72
  FileTypeValidator: () => import_validators.FileTypeValidator,
73
+ FilterMenu: () => FilterMenu,
74
+ FilterMenuItem: () => FilterMenuItem,
73
75
  Form: () => Form,
74
76
  FormErrorSummary: () => FormErrorSummary,
75
77
  FormField: () => FormField,
@@ -9107,92 +9109,92 @@ var FormContext = (0, import_react36.createContext)({
9107
9109
  formId: "NO_FORM",
9108
9110
  labelPosition: "block"
9109
9111
  });
9110
- var FormComponent = ({
9111
- children,
9112
- action,
9113
- values = {},
9114
- labelPosition = "block",
9115
- validate,
9116
- fullWidth = false,
9117
- ...props
9118
- }, forwardedRef) => {
9119
- const [errors, setErrors] = (0, import_react36.useState)({});
9120
- const [hasSubmitted, setHasSubmitted] = (0, import_react36.useState)(false);
9121
- const innerRef = (0, import_react36.useRef)(null);
9122
- const ref = forwardedRef ?? innerRef;
9123
- const autoId = (0, import_react36.useId)();
9124
- const id = props.id ?? autoId;
9125
- const handleValidate = (nextFormData) => {
9126
- const nextData = serializeFormData(nextFormData);
9127
- if ((0, import_type_guards28.isUndefined)(validate)) {
9128
- return {};
9129
- }
9130
- return validate(nextData);
9131
- };
9132
- const handleBlur2 = (event) => {
9133
- if (props.onBlur) {
9134
- props.onBlur(event);
9135
- }
9136
- const formData = new FormData(event.currentTarget);
9137
- if ((0, import_type_guards28.isNotUndefined)(validate)) {
9138
- handleValidate(formData);
9139
- }
9140
- };
9141
- const handleSubmit = (event) => {
9142
- event.preventDefault();
9143
- const formData = new FormData(event.currentTarget);
9144
- const nextErrors = handleValidate(formData);
9145
- const isValid = Object.keys(nextErrors).length === 0;
9146
- setErrors(nextErrors);
9147
- setHasSubmitted(true);
9148
- if (isValid && props.onSubmit) {
9149
- props.onSubmit(event);
9150
- }
9151
- if (isValid && action) {
9152
- void action(formData);
9153
- }
9154
- };
9155
- const handleReset = (event) => {
9156
- setErrors({});
9157
- setHasSubmitted(false);
9158
- if (props.onReset) {
9159
- props.onReset(event);
9160
- }
9161
- if (action) {
9162
- void action(null);
9163
- }
9164
- };
9165
- const context = (0, import_react36.useMemo)(() => {
9166
- return {
9167
- values,
9168
- errors,
9169
- hasSubmitted,
9170
- formId: id,
9171
- labelPosition
9112
+ var Form = (0, import_react36.forwardRef)(
9113
+ ({
9114
+ children,
9115
+ action,
9116
+ values = {},
9117
+ labelPosition = "block",
9118
+ validate,
9119
+ fullWidth = false,
9120
+ ...props
9121
+ }, forwardedRef) => {
9122
+ const [errors, setErrors] = (0, import_react36.useState)({});
9123
+ const [hasSubmitted, setHasSubmitted] = (0, import_react36.useState)(false);
9124
+ const innerRef = (0, import_react36.useRef)(null);
9125
+ const ref = forwardedRef ?? innerRef;
9126
+ const autoId = (0, import_react36.useId)();
9127
+ const id = props.id ?? autoId;
9128
+ const handleValidate = (nextFormData) => {
9129
+ const nextData = serializeFormData(nextFormData);
9130
+ if ((0, import_type_guards28.isUndefined)(validate)) {
9131
+ return {};
9132
+ }
9133
+ return validate(nextData);
9172
9134
  };
9173
- }, [labelPosition, values, errors, id, hasSubmitted]);
9174
- return (
9175
- // @ts-expect-error - generic context providers are a giant pain
9176
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
9177
- Stack,
9178
- {
9179
- ...props,
9180
- ref,
9181
- $fullWidth: fullWidth,
9182
- alignItems: fullWidth ? "stretch" : "flex-start",
9183
- as: StyledForm,
9184
- gap: "space-05",
9185
- id,
9186
- onBlur: handleBlur2,
9187
- onReset: handleReset,
9188
- onSubmit: handleSubmit,
9189
- children
9135
+ const handleBlur2 = (event) => {
9136
+ if (props.onBlur) {
9137
+ props.onBlur(event);
9190
9138
  }
9191
- ) })
9192
- );
9193
- };
9194
- FormComponent.displayName = "Form";
9195
- var Form = (0, import_react36.forwardRef)(FormComponent);
9139
+ const formData = new FormData(event.currentTarget);
9140
+ if ((0, import_type_guards28.isNotUndefined)(validate)) {
9141
+ handleValidate(formData);
9142
+ }
9143
+ };
9144
+ const handleSubmit = (event) => {
9145
+ event.preventDefault();
9146
+ const formData = new FormData(event.currentTarget);
9147
+ const nextErrors = handleValidate(formData);
9148
+ const isValid = Object.keys(nextErrors).length === 0;
9149
+ setErrors(nextErrors);
9150
+ setHasSubmitted(true);
9151
+ if (isValid && props.onSubmit) {
9152
+ props.onSubmit(event);
9153
+ }
9154
+ if (isValid && action) {
9155
+ void action(formData);
9156
+ }
9157
+ };
9158
+ const handleReset = (event) => {
9159
+ setErrors({});
9160
+ setHasSubmitted(false);
9161
+ if (props.onReset) {
9162
+ props.onReset(event);
9163
+ }
9164
+ if (action) {
9165
+ void action(null);
9166
+ }
9167
+ };
9168
+ const context = (0, import_react36.useMemo)(() => {
9169
+ return {
9170
+ values,
9171
+ errors,
9172
+ hasSubmitted,
9173
+ formId: id,
9174
+ labelPosition
9175
+ };
9176
+ }, [labelPosition, values, errors, id, hasSubmitted]);
9177
+ return (
9178
+ // @ts-expect-error - generic context providers are a giant pain
9179
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
9180
+ Stack,
9181
+ {
9182
+ ...props,
9183
+ ref,
9184
+ $fullWidth: fullWidth,
9185
+ alignItems: fullWidth ? "stretch" : "flex-start",
9186
+ as: StyledForm,
9187
+ gap: "space-05",
9188
+ id,
9189
+ onBlur: handleBlur2,
9190
+ onReset: handleReset,
9191
+ onSubmit: handleSubmit,
9192
+ children
9193
+ }
9194
+ ) })
9195
+ );
9196
+ }
9197
+ );
9196
9198
 
9197
9199
  // src/components/FormGroup/CheckboxGroup.tsx
9198
9200
  var import_jsx_runtime217 = require("react/jsx-runtime");
@@ -11349,10 +11351,10 @@ var List = ({
11349
11351
  List.displayName = "List";
11350
11352
 
11351
11353
  // src/components/Menu/Menu.tsx
11354
+ var import_react52 = require("react");
11352
11355
  var import_styled_components63 = __toESM(require("styled-components"));
11353
11356
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
11354
11357
  var import_type_guards42 = require("@wistia/type-guards");
11355
- var import_react52 = require("react");
11356
11358
 
11357
11359
  // src/components/Menu/MenuContext.tsx
11358
11360
  var import_react51 = require("react");
@@ -11447,65 +11449,70 @@ var menuContentCss = import_styled_components63.css`
11447
11449
  `;
11448
11450
  var MenuContent = (0, import_styled_components63.default)(import_react_dropdown_menu.DropdownMenuContent)`
11449
11451
  ${menuContentCss}
11452
+ min-width: var(--radix-dropdown-menu-trigger-width);
11450
11453
  `;
11451
- var Menu = ({
11452
- align = "start",
11453
- children,
11454
- disabled = false,
11455
- compact = false,
11456
- trigger,
11457
- label,
11458
- isOpen,
11459
- triggerProps = {},
11460
- onOpenChange,
11461
- onInteractOutside,
11462
- ...props
11463
- }) => {
11464
- const contextValue = (0, import_react52.useMemo)(() => ({ compact }), [compact]);
11465
- let controlProps = {
11466
- ...(0, import_type_guards42.isNotNil)(onOpenChange) && (0, import_type_guards42.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
11467
- };
11468
- if (disabled) {
11469
- controlProps = {
11470
- open: false,
11471
- onOpenChange: () => null
11454
+ var Menu = (0, import_react52.forwardRef)(
11455
+ ({
11456
+ align = "start",
11457
+ children,
11458
+ disabled = false,
11459
+ compact = false,
11460
+ trigger,
11461
+ label,
11462
+ isOpen,
11463
+ triggerProps = {},
11464
+ onOpenChange,
11465
+ onInteractOutside,
11466
+ ...props
11467
+ }, ref) => {
11468
+ const contextValue = (0, import_react52.useMemo)(() => ({ compact }), [compact]);
11469
+ let controlProps = {
11470
+ ...(0, import_type_guards42.isNotNil)(onOpenChange) && (0, import_type_guards42.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
11472
11471
  };
11473
- }
11474
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
11475
- import_react_dropdown_menu.DropdownMenu,
11476
- {
11477
- modal: false,
11478
- ...controlProps,
11479
- children: [
11480
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards42.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
11481
- Button,
11482
- {
11483
- "aria-expanded": isOpen,
11484
- disabled,
11485
- forceState: isOpen ? "active" : void 0,
11486
- rightIcon: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon, { type: "caret-down" }),
11487
- ...triggerProps,
11488
- children: label
11489
- }
11490
- ) }),
11491
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
11492
- MenuContent,
11493
- {
11494
- ...props,
11495
- $compact: compact,
11496
- align,
11497
- collisionPadding: 8,
11498
- sideOffset: 6,
11499
- onFocusOutside: (event) => {
11500
- event.preventDefault();
11501
- },
11502
- children
11503
- }
11504
- ) })
11505
- ]
11472
+ if (disabled) {
11473
+ controlProps = {
11474
+ open: false,
11475
+ onOpenChange: () => null
11476
+ };
11506
11477
  }
11507
- ) });
11508
- };
11478
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
11479
+ import_react_dropdown_menu.DropdownMenu,
11480
+ {
11481
+ modal: false,
11482
+ ...controlProps,
11483
+ children: [
11484
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards42.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
11485
+ Button,
11486
+ {
11487
+ ref,
11488
+ "aria-expanded": isOpen,
11489
+ disabled,
11490
+ forceState: isOpen ? "active" : void 0,
11491
+ rightIcon: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon, { type: "caret-down" }),
11492
+ ...triggerProps,
11493
+ children: label
11494
+ }
11495
+ ) }),
11496
+ /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
11497
+ MenuContent,
11498
+ {
11499
+ ...props,
11500
+ $compact: compact,
11501
+ align,
11502
+ collisionPadding: 8,
11503
+ sideOffset: 6,
11504
+ onFocusOutside: (event) => {
11505
+ event.preventDefault();
11506
+ },
11507
+ children
11508
+ }
11509
+ ) })
11510
+ ]
11511
+ }
11512
+ ) });
11513
+ }
11514
+ );
11515
+ Menu.displayName = "Menu";
11509
11516
  Menu.displayName = "Menu";
11510
11517
 
11511
11518
  // src/components/Menu/MenuLabel.tsx
@@ -11899,8 +11906,103 @@ var CheckboxMenuItem = ({
11899
11906
  };
11900
11907
  CheckboxMenuItem.displayName = "CheckboxMenuItem";
11901
11908
 
11909
+ // src/components/Menu/FilterMenu.tsx
11910
+ var import_react56 = require("react");
11911
+ var import_jsx_runtime249 = require("react/jsx-runtime");
11912
+ var FilterMenuItem = CheckboxMenuItem;
11913
+ var FilterMenu = (0, import_react56.forwardRef)(
11914
+ ({ value, onChange, searchValue, onSearchValueChange, children, ...props }, ref) => {
11915
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
11916
+ Menu,
11917
+ {
11918
+ ...props,
11919
+ ref,
11920
+ isOpen: true,
11921
+ children: [
11922
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11923
+ Card,
11924
+ {
11925
+ alignItems: "flex-end",
11926
+ border: false,
11927
+ borderRadius: "border-radius-02",
11928
+ paddingSize: "space-01",
11929
+ prominence: "default",
11930
+ style: {
11931
+ position: "absolute",
11932
+ top: 0,
11933
+ left: 0,
11934
+ right: 0,
11935
+ margin: "1px"
11936
+ },
11937
+ children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11938
+ Input,
11939
+ {
11940
+ autoFocus: true,
11941
+ onChange: (event) => {
11942
+ onSearchValueChange(event.target.value);
11943
+ },
11944
+ onClick: (event) => event.preventDefault(),
11945
+ onKeyDown: (event) => {
11946
+ if (event.key === "ArrowDown") {
11947
+ event.preventDefault();
11948
+ const menu = document.querySelector('[role="menu"]');
11949
+ const firstMenuItem = menu?.querySelector('[role="menuitemcheckbox"]');
11950
+ if (firstMenuItem) {
11951
+ firstMenuItem.focus();
11952
+ }
11953
+ }
11954
+ event.stopPropagation();
11955
+ },
11956
+ placeholder: "Search...",
11957
+ tabIndex: 0,
11958
+ type: "search"
11959
+ }
11960
+ )
11961
+ }
11962
+ ),
11963
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11964
+ MenuItem,
11965
+ {
11966
+ disabled: true,
11967
+ style: { padding: "16px" },
11968
+ children: " "
11969
+ }
11970
+ ),
11971
+ import_react56.Children.toArray(children).length > 0 ? children : /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(MenuItem, { disabled: true, children: "No results found" }),
11972
+ value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(MenuItem, { disabled: true, children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11973
+ Card,
11974
+ {
11975
+ alignItems: "flex-end",
11976
+ border: false,
11977
+ borderRadius: "border-radius-02",
11978
+ paddingSize: "space-01",
11979
+ prominence: "default",
11980
+ style: {
11981
+ position: "absolute",
11982
+ bottom: 0,
11983
+ left: 0,
11984
+ right: 0,
11985
+ margin: "1px"
11986
+ },
11987
+ children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
11988
+ Button,
11989
+ {
11990
+ onClick: () => onChange([]),
11991
+ size: "sm",
11992
+ children: "Clear"
11993
+ }
11994
+ )
11995
+ }
11996
+ ) })
11997
+ ]
11998
+ }
11999
+ );
12000
+ }
12001
+ );
12002
+ FilterMenu.displayName = "FilterMenu";
12003
+
11902
12004
  // src/components/Modal/Modal.tsx
11903
- var import_react59 = require("react");
12005
+ var import_react60 = require("react");
11904
12006
  var import_styled_components72 = __toESM(require("styled-components"));
11905
12007
  var import_react_dialog4 = require("@radix-ui/react-dialog");
11906
12008
  var import_type_guards47 = require("@wistia/type-guards");
@@ -11912,24 +12014,24 @@ var import_react_dialog2 = require("@radix-ui/react-dialog");
11912
12014
  // src/components/Modal/ModalCloseButton.tsx
11913
12015
  var import_styled_components68 = __toESM(require("styled-components"));
11914
12016
  var import_react_dialog = require("@radix-ui/react-dialog");
11915
- var import_jsx_runtime249 = require("react/jsx-runtime");
12017
+ var import_jsx_runtime250 = require("react/jsx-runtime");
11916
12018
  var CloseButton = (0, import_styled_components68.default)(import_react_dialog.Close)`
11917
12019
  align-self: start;
11918
12020
  `;
11919
12021
  var ModalCloseButton = () => {
11920
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
12022
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
11921
12023
  IconButton,
11922
12024
  {
11923
12025
  label: "Dismiss modal",
11924
12026
  size: "sm",
11925
12027
  variant: "ghost",
11926
- children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Icon, { type: "close" })
12028
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon, { type: "close" })
11927
12029
  }
11928
12030
  ) });
11929
12031
  };
11930
12032
 
11931
12033
  // src/components/Modal/ModalHeader.tsx
11932
- var import_jsx_runtime250 = require("react/jsx-runtime");
12034
+ var import_jsx_runtime251 = require("react/jsx-runtime");
11933
12035
  var Header = import_styled_components69.default.header`
11934
12036
  display: flex;
11935
12037
  order: 1;
@@ -11952,27 +12054,27 @@ var ModalHeader = ({
11952
12054
  hideTitle,
11953
12055
  hideCloseButton
11954
12056
  }) => {
11955
- const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Title, { children: title });
11956
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Header, { $hideTitle: hideTitle, children: [
12057
+ const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Title, { children: title });
12058
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Header, { $hideTitle: hideTitle, children: [
11957
12059
  TitleComponent,
11958
- hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(ModalCloseButton, {})
12060
+ hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(ModalCloseButton, {})
11959
12061
  ] });
11960
12062
  };
11961
12063
 
11962
12064
  // src/components/Modal/ModalContent.tsx
11963
- var import_react57 = require("react");
12065
+ var import_react58 = require("react");
11964
12066
  var import_styled_components70 = __toESM(require("styled-components"));
11965
12067
  var import_react_dialog3 = require("@radix-ui/react-dialog");
11966
12068
 
11967
12069
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
11968
- var import_react56 = require("react");
12070
+ var import_react57 = require("react");
11969
12071
  var import_type_guards46 = require("@wistia/type-guards");
11970
12072
  var useFocusRestore = () => {
11971
- const previouslyFocusedRef = (0, import_react56.useRef)(null);
11972
- (0, import_react56.useEffect)(() => {
12073
+ const previouslyFocusedRef = (0, import_react57.useRef)(null);
12074
+ (0, import_react57.useEffect)(() => {
11973
12075
  previouslyFocusedRef.current = document.activeElement;
11974
12076
  }, []);
11975
- (0, import_react56.useEffect)(() => {
12077
+ (0, import_react57.useEffect)(() => {
11976
12078
  return () => {
11977
12079
  if ((0, import_type_guards46.isNotNil)(previouslyFocusedRef.current)) {
11978
12080
  setTimeout(() => {
@@ -11984,7 +12086,7 @@ var useFocusRestore = () => {
11984
12086
  };
11985
12087
 
11986
12088
  // src/components/Modal/ModalContent.tsx
11987
- var import_jsx_runtime251 = require("react/jsx-runtime");
12089
+ var import_jsx_runtime252 = require("react/jsx-runtime");
11988
12090
  var alignTopStyles = import_styled_components70.css`
11989
12091
  --wui-modal-translate-y: 0;
11990
12092
 
@@ -12063,10 +12165,10 @@ var StyledModalContent = (0, import_styled_components70.default)(import_react_di
12063
12165
  }
12064
12166
  }
12065
12167
  `;
12066
- var ModalContent = (0, import_react57.forwardRef)(
12168
+ var ModalContent = (0, import_react58.forwardRef)(
12067
12169
  ({ fullHeight, width, alignHorizontal, alignVertical, children, ...props }, ref) => {
12068
12170
  useFocusRestore();
12069
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
12171
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
12070
12172
  StyledModalContent,
12071
12173
  {
12072
12174
  ref,
@@ -12083,9 +12185,9 @@ var ModalContent = (0, import_react57.forwardRef)(
12083
12185
  );
12084
12186
 
12085
12187
  // src/private/components/Backdrop/Backdrop.tsx
12086
- var import_react58 = require("react");
12188
+ var import_react59 = require("react");
12087
12189
  var import_styled_components71 = __toESM(require("styled-components"));
12088
- var import_jsx_runtime252 = require("react/jsx-runtime");
12190
+ var import_jsx_runtime253 = require("react/jsx-runtime");
12089
12191
  var alignVerticalMap = {
12090
12192
  stretch: "normal",
12091
12193
  top: "start",
@@ -12123,8 +12225,8 @@ var BackdropComponent = import_styled_components71.default.div`
12123
12225
  }
12124
12226
  }
12125
12227
  `;
12126
- var Backdrop = (0, import_react58.forwardRef)(
12127
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
12228
+ var Backdrop = (0, import_react59.forwardRef)(
12229
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
12128
12230
  BackdropComponent,
12129
12231
  {
12130
12232
  ref,
@@ -12138,7 +12240,7 @@ var Backdrop = (0, import_react58.forwardRef)(
12138
12240
  Backdrop.displayName = "Backdrop";
12139
12241
 
12140
12242
  // src/components/Modal/Modal.tsx
12141
- var import_jsx_runtime253 = require("react/jsx-runtime");
12243
+ var import_jsx_runtime254 = require("react/jsx-runtime");
12142
12244
  var DEFAULT_MODAL_WIDTH = "532px";
12143
12245
  var ModalBody = import_styled_components72.default.div`
12144
12246
  flex-direction: column;
@@ -12146,7 +12248,7 @@ var ModalBody = import_styled_components72.default.div`
12146
12248
  flex: 1 0 0;
12147
12249
  order: 2;
12148
12250
  `;
12149
- var Modal = (0, import_react59.forwardRef)(
12251
+ var Modal = (0, import_react60.forwardRef)(
12150
12252
  ({
12151
12253
  children,
12152
12254
  fullHeight = false,
@@ -12161,7 +12263,7 @@ var Modal = (0, import_react59.forwardRef)(
12161
12263
  alignVertical = "center",
12162
12264
  ...props
12163
12265
  }, ref) => {
12164
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
12266
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
12165
12267
  import_react_dialog4.Root,
12166
12268
  {
12167
12269
  onOpenChange: (open2) => {
@@ -12170,9 +12272,9 @@ var Modal = (0, import_react59.forwardRef)(
12170
12272
  }
12171
12273
  },
12172
12274
  open: isOpen,
12173
- children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(import_react_dialog4.Portal, { children: [
12174
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Backdrop, {}),
12175
- /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
12275
+ children: /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(import_react_dialog4.Portal, { children: [
12276
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Backdrop, {}),
12277
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
12176
12278
  ModalContent,
12177
12279
  {
12178
12280
  ref,
@@ -12190,8 +12292,8 @@ var Modal = (0, import_react59.forwardRef)(
12190
12292
  width,
12191
12293
  ...props,
12192
12294
  children: [
12193
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(ModalBody, { children }),
12194
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
12295
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(ModalBody, { children }),
12296
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
12195
12297
  ModalHeader,
12196
12298
  {
12197
12299
  hideCloseButton,
@@ -12222,7 +12324,7 @@ var getControlProps = (isOpen, onOpenChange) => {
12222
12324
  // src/components/Popover/PopoverArrow.tsx
12223
12325
  var import_react_popover = require("@radix-ui/react-popover");
12224
12326
  var import_styled_components73 = __toESM(require("styled-components"));
12225
- var import_jsx_runtime254 = require("react/jsx-runtime");
12327
+ var import_jsx_runtime255 = require("react/jsx-runtime");
12226
12328
  var StyledPath = import_styled_components73.default.path`
12227
12329
  fill: var(--wui-color-border-secondary);
12228
12330
  `;
@@ -12261,7 +12363,7 @@ var StyledCircle = import_styled_components73.default.circle`
12261
12363
  }
12262
12364
  `;
12263
12365
  var PopoverArrow = ({ isAnimated }) => {
12264
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(import_react_popover.PopoverArrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
12366
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(import_react_popover.PopoverArrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
12265
12367
  "svg",
12266
12368
  {
12267
12369
  fill: "none",
@@ -12270,8 +12372,8 @@ var PopoverArrow = ({ isAnimated }) => {
12270
12372
  width: "48",
12271
12373
  xmlns: "http://www.w3.org/2000/svg",
12272
12374
  children: [
12273
- /* @__PURE__ */ (0, import_jsx_runtime254.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" }),
12274
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
12375
+ /* @__PURE__ */ (0, import_jsx_runtime255.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" }),
12376
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
12275
12377
  StyledCircle,
12276
12378
  {
12277
12379
  $isAnimated: isAnimated,
@@ -12282,7 +12384,7 @@ var PopoverArrow = ({ isAnimated }) => {
12282
12384
  strokeWidth: "4"
12283
12385
  }
12284
12386
  ),
12285
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
12387
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
12286
12388
  StyledCircle,
12287
12389
  {
12288
12390
  $isAnimated: isAnimated,
@@ -12300,7 +12402,7 @@ var PopoverArrow = ({ isAnimated }) => {
12300
12402
  PopoverArrow.displayName = "PopoverArrow";
12301
12403
 
12302
12404
  // src/components/Popover/Popover.tsx
12303
- var import_jsx_runtime255 = require("react/jsx-runtime");
12405
+ var import_jsx_runtime256 = require("react/jsx-runtime");
12304
12406
  var StyledContent2 = (0, import_styled_components74.default)(import_react_popover2.Content)`
12305
12407
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12306
12408
  ${({ $unstyled }) => !$unstyled && import_styled_components74.css`
@@ -12339,9 +12441,9 @@ var Popover2 = ({
12339
12441
  "--wui-popover-max-width": maxWidth,
12340
12442
  "--wui-popover-max-height": maxHeight
12341
12443
  };
12342
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_react_popover2.Root, { ...getControlProps(isOpen, onOpenChange), children: [
12343
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(import_react_popover2.Trigger, { asChild: true, children: trigger }),
12344
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(import_react_popover2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
12444
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(import_react_popover2.Root, { ...getControlProps(isOpen, onOpenChange), children: [
12445
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_react_popover2.Trigger, { asChild: true, children: trigger }),
12446
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_react_popover2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
12345
12447
  StyledContent2,
12346
12448
  {
12347
12449
  $colorScheme: colorScheme,
@@ -12350,17 +12452,17 @@ var Popover2 = ({
12350
12452
  $unstyled: unstyled,
12351
12453
  style,
12352
12454
  children: [
12353
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(import_react_popover2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
12455
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_react_popover2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
12354
12456
  IconButton,
12355
12457
  {
12356
12458
  "data-wui-popover-close": true,
12357
12459
  label: "Close",
12358
12460
  variant: "ghost",
12359
- children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Icon, { type: "close" })
12461
+ children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { type: "close" })
12360
12462
  }
12361
12463
  ) }),
12362
- withArrow ? /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(PopoverArrow, { isAnimated }) : null,
12363
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("div", { children })
12464
+ withArrow ? /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(PopoverArrow, { isAnimated }) : null,
12465
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("div", { children })
12364
12466
  ]
12365
12467
  }
12366
12468
  ) })
@@ -12372,7 +12474,7 @@ Popover2.displayName = "Popover";
12372
12474
  var import_styled_components75 = __toESM(require("styled-components"));
12373
12475
  var import_react_progress = require("@radix-ui/react-progress");
12374
12476
  var import_type_guards49 = require("@wistia/type-guards");
12375
- var import_jsx_runtime256 = require("react/jsx-runtime");
12477
+ var import_jsx_runtime257 = require("react/jsx-runtime");
12376
12478
  var ProgressBarWrapper = import_styled_components75.default.div`
12377
12479
  --progress-bar-height: 8px;
12378
12480
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
@@ -12425,15 +12527,15 @@ var ProgressBar = ({
12425
12527
  labelRight,
12426
12528
  ...props
12427
12529
  }) => {
12428
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(ProgressBarWrapper, { children: [
12429
- (0, import_type_guards49.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
12430
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
12530
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(ProgressBarWrapper, { children: [
12531
+ (0, import_type_guards49.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
12532
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12431
12533
  StyledProgressBar,
12432
12534
  {
12433
12535
  max,
12434
12536
  value: progress,
12435
12537
  ...props,
12436
- children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
12538
+ children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12437
12539
  StyledProgressIndicator,
12438
12540
  {
12439
12541
  $max: max,
@@ -12442,17 +12544,17 @@ var ProgressBar = ({
12442
12544
  )
12443
12545
  }
12444
12546
  ),
12445
- (0, import_type_guards49.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(ProgressBarLabel, { children: labelRight }) : null
12547
+ (0, import_type_guards49.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(ProgressBarLabel, { children: labelRight }) : null
12446
12548
  ] });
12447
12549
  };
12448
12550
  ProgressBar.displayName = "ProgressBar";
12449
12551
 
12450
12552
  // src/components/Radio/Radio.tsx
12451
- var import_react60 = require("react");
12553
+ var import_react61 = require("react");
12452
12554
  var import_styled_components76 = __toESM(require("styled-components"));
12453
12555
  var import_type_guards50 = require("@wistia/type-guards");
12454
- var import_jsx_runtime257 = require("react/jsx-runtime");
12455
- var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12556
+ var import_jsx_runtime258 = require("react/jsx-runtime");
12557
+ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
12456
12558
  "svg",
12457
12559
  {
12458
12560
  fill: "inherit",
@@ -12460,7 +12562,7 @@ var RadioIcon = () => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12460
12562
  viewBox: "0 0 1 1",
12461
12563
  width: "1",
12462
12564
  xmlns: "http://www.w3.org/2000/svg",
12463
- children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12565
+ children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
12464
12566
  "circle",
12465
12567
  {
12466
12568
  cx: "0.5",
@@ -12551,7 +12653,7 @@ var StyledHiddenRadioInput = import_styled_components76.default.input`
12551
12653
  display: block;
12552
12654
  }
12553
12655
  `;
12554
- var Radio = (0, import_react60.forwardRef)(
12656
+ var Radio = (0, import_react61.forwardRef)(
12555
12657
  ({
12556
12658
  checked,
12557
12659
  disabled = false,
@@ -12566,7 +12668,7 @@ var Radio = (0, import_react60.forwardRef)(
12566
12668
  hideLabel = false,
12567
12669
  ...props
12568
12670
  }, ref) => {
12569
- const generatedId = (0, import_react60.useId)();
12671
+ const generatedId = (0, import_react61.useId)();
12570
12672
  const computedId = (0, import_type_guards50.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
12571
12673
  const radioGroupContext = useRadioGroup();
12572
12674
  const contextName = radioGroupContext?.name;
@@ -12575,13 +12677,13 @@ var Radio = (0, import_react60.forwardRef)(
12575
12677
  const radioName = name ?? contextName;
12576
12678
  const handleOnChange = onChange ?? contextOnChange;
12577
12679
  const defaultChecked = (0, import_type_guards50.isNotUndefined)(value) && (0, import_type_guards50.isNotUndefined)(contextValue) ? contextValue.includes(value) : void 0;
12578
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
12680
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
12579
12681
  StyledRadioWrapper,
12580
12682
  {
12581
12683
  $disabled: disabled,
12582
12684
  "aria-invalid": props["aria-invalid"],
12583
12685
  children: [
12584
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12686
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
12585
12687
  StyledHiddenRadioInput,
12586
12688
  {
12587
12689
  ...props,
@@ -12596,16 +12698,16 @@ var Radio = (0, import_react60.forwardRef)(
12596
12698
  ...(0, import_type_guards50.isNotUndefined)(defaultChecked) ? { defaultChecked } : { checked }
12597
12699
  }
12598
12700
  ),
12599
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12701
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
12600
12702
  FormControlLabel,
12601
12703
  {
12602
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
12704
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
12603
12705
  StyledRadioInput,
12604
12706
  {
12605
12707
  $disabled: disabled,
12606
12708
  $size: size,
12607
12709
  "data-wui-faux-input": "true",
12608
- children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(RadioIcon, {})
12710
+ children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(RadioIcon, {})
12609
12711
  }
12610
12712
  ),
12611
12713
  description,
@@ -12623,20 +12725,20 @@ var Radio = (0, import_react60.forwardRef)(
12623
12725
  Radio.displayName = "Radio";
12624
12726
 
12625
12727
  // src/components/SegmentedControl/SegmentedControl.tsx
12626
- var import_react63 = require("react");
12728
+ var import_react64 = require("react");
12627
12729
  var import_styled_components78 = __toESM(require("styled-components"));
12628
12730
  var import_react_toggle_group = require("@radix-ui/react-toggle-group");
12629
12731
  var import_type_guards52 = require("@wistia/type-guards");
12630
12732
 
12631
12733
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
12632
- var import_react61 = require("react");
12633
- var import_jsx_runtime258 = require("react/jsx-runtime");
12634
- var SelectedItemStyleContext = (0, import_react61.createContext)(null);
12734
+ var import_react62 = require("react");
12735
+ var import_jsx_runtime259 = require("react/jsx-runtime");
12736
+ var SelectedItemStyleContext = (0, import_react62.createContext)(null);
12635
12737
  var SelectedItemStyleProvider = ({
12636
12738
  children
12637
12739
  }) => {
12638
- const [selectedItemMeasurements, setSelectedItemMeasurements] = (0, import_react61.useState)(null);
12639
- const selectedItemIndicatorStyle = (0, import_react61.useMemo)(
12740
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = (0, import_react62.useState)(null);
12741
+ const selectedItemIndicatorStyle = (0, import_react62.useMemo)(
12640
12742
  () => selectedItemMeasurements != null ? {
12641
12743
  height: `${selectedItemMeasurements.offsetHeight}px`,
12642
12744
  transform: `translateX(${selectedItemMeasurements.offsetLeft}px) translateY(-50%)`,
@@ -12644,17 +12746,17 @@ var SelectedItemStyleProvider = ({
12644
12746
  } : void 0,
12645
12747
  [selectedItemMeasurements]
12646
12748
  );
12647
- const contextValue = (0, import_react61.useMemo)(
12749
+ const contextValue = (0, import_react62.useMemo)(
12648
12750
  () => ({
12649
12751
  setSelectedItemMeasurements,
12650
12752
  selectedItemIndicatorStyle
12651
12753
  }),
12652
12754
  [selectedItemIndicatorStyle]
12653
12755
  );
12654
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
12756
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
12655
12757
  };
12656
12758
  var useSelectedItemStyle = () => {
12657
- const context = (0, import_react61.useContext)(SelectedItemStyleContext);
12759
+ const context = (0, import_react62.useContext)(SelectedItemStyleContext);
12658
12760
  if (context === null) {
12659
12761
  throw new Error("useSelectedItemStyle must be used within a SelectedItemStyleProvider");
12660
12762
  }
@@ -12666,11 +12768,11 @@ var import_styled_components77 = __toESM(require("styled-components"));
12666
12768
  var import_type_guards51 = require("@wistia/type-guards");
12667
12769
 
12668
12770
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
12669
- var import_react62 = require("react");
12670
- var SegmentedControlValueContext = (0, import_react62.createContext)(null);
12771
+ var import_react63 = require("react");
12772
+ var SegmentedControlValueContext = (0, import_react63.createContext)(null);
12671
12773
  var SegmentedControlValueProvider = SegmentedControlValueContext.Provider;
12672
12774
  var useSegmentedControlValue = () => {
12673
- const context = (0, import_react62.useContext)(SegmentedControlValueContext);
12775
+ const context = (0, import_react63.useContext)(SegmentedControlValueContext);
12674
12776
  if (context === null) {
12675
12777
  throw new Error("useSegmentedControlValue must be used within a SegmentedControlValueProvider");
12676
12778
  }
@@ -12678,7 +12780,7 @@ var useSegmentedControlValue = () => {
12678
12780
  };
12679
12781
 
12680
12782
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
12681
- var import_jsx_runtime259 = require("react/jsx-runtime");
12783
+ var import_jsx_runtime260 = require("react/jsx-runtime");
12682
12784
  var selectedItemIndicatorStyles = import_styled_components77.css`
12683
12785
  background-color: var(--wui-color-bg-fill-white);
12684
12786
  border-radius: var(--wui-border-radius-rounded);
@@ -12700,7 +12802,7 @@ var SelectedItemIndicator = () => {
12700
12802
  if (!selectedValue || (0, import_type_guards51.isUndefined)(selectedItemIndicatorStyle)) {
12701
12803
  return null;
12702
12804
  }
12703
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
12805
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
12704
12806
  SelectedItemIndicatorDiv,
12705
12807
  {
12706
12808
  "data-wui-selected-item-indicator": true,
@@ -12710,7 +12812,7 @@ var SelectedItemIndicator = () => {
12710
12812
  };
12711
12813
 
12712
12814
  // src/components/SegmentedControl/SegmentedControl.tsx
12713
- var import_jsx_runtime260 = require("react/jsx-runtime");
12815
+ var import_jsx_runtime261 = require("react/jsx-runtime");
12714
12816
  var segmentedControlStyles = import_styled_components78.css`
12715
12817
  display: inline-flex;
12716
12818
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12725,7 +12827,7 @@ var segmentedControlStyles = import_styled_components78.css`
12725
12827
  var StyledSegmentedControl = (0, import_styled_components78.default)(import_react_toggle_group.Root)`
12726
12828
  ${segmentedControlStyles}
12727
12829
  `;
12728
- var SegmentedControl = (0, import_react63.forwardRef)(
12830
+ var SegmentedControl = (0, import_react64.forwardRef)(
12729
12831
  ({
12730
12832
  children,
12731
12833
  disabled = false,
@@ -12737,7 +12839,7 @@ var SegmentedControl = (0, import_react63.forwardRef)(
12737
12839
  if ((0, import_type_guards52.isNil)(children)) {
12738
12840
  return null;
12739
12841
  }
12740
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
12842
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
12741
12843
  StyledSegmentedControl,
12742
12844
  {
12743
12845
  ref,
@@ -12749,9 +12851,9 @@ var SegmentedControl = (0, import_react63.forwardRef)(
12749
12851
  type: "single",
12750
12852
  value: selectedValue,
12751
12853
  ...props,
12752
- children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(SelectedItemStyleProvider, { children: [
12854
+ children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(SelectedItemStyleProvider, { children: [
12753
12855
  children,
12754
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(SelectedItemIndicator, {})
12856
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(SelectedItemIndicator, {})
12755
12857
  ] }) })
12756
12858
  }
12757
12859
  );
@@ -12760,11 +12862,11 @@ var SegmentedControl = (0, import_react63.forwardRef)(
12760
12862
  SegmentedControl.displayName = "SegmentedControl";
12761
12863
 
12762
12864
  // src/components/SegmentedControl/SegmentedControlItem.tsx
12763
- var import_react64 = require("react");
12865
+ var import_react65 = require("react");
12764
12866
  var import_styled_components79 = __toESM(require("styled-components"));
12765
12867
  var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
12766
12868
  var import_type_guards53 = require("@wistia/type-guards");
12767
- var import_jsx_runtime261 = require("react/jsx-runtime");
12869
+ var import_jsx_runtime262 = require("react/jsx-runtime");
12768
12870
  var segmentedControlItemStyles = import_styled_components79.css`
12769
12871
  all: unset; /* ToggleGroupItem is a button element */
12770
12872
  align-items: center;
@@ -12835,11 +12937,11 @@ var segmentedControlItemStyles = import_styled_components79.css`
12835
12937
  var StyledSegmentedControlItem = (0, import_styled_components79.default)(import_react_toggle_group2.Item)`
12836
12938
  ${segmentedControlItemStyles}
12837
12939
  `;
12838
- var SegmentedControlItem = (0, import_react64.forwardRef)(
12940
+ var SegmentedControlItem = (0, import_react65.forwardRef)(
12839
12941
  ({ disabled, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
12840
12942
  const selectedValue = useSegmentedControlValue();
12841
12943
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
12842
- const buttonRef = (0, import_react64.useRef)(null);
12944
+ const buttonRef = (0, import_react65.useRef)(null);
12843
12945
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
12844
12946
  const handleClick = (event) => {
12845
12947
  const target = event.target;
@@ -12848,7 +12950,7 @@ var SegmentedControlItem = (0, import_react64.forwardRef)(
12848
12950
  event.preventDefault();
12849
12951
  }
12850
12952
  };
12851
- (0, import_react64.useEffect)(() => {
12953
+ (0, import_react65.useEffect)(() => {
12852
12954
  const buttonElem = buttonRef.current;
12853
12955
  if (!buttonElem) {
12854
12956
  return void 0;
@@ -12873,7 +12975,7 @@ var SegmentedControlItem = (0, import_react64.forwardRef)(
12873
12975
  resizeObserver.disconnect();
12874
12976
  };
12875
12977
  }, [selectedValue, setSelectedItemMeasurements, value]);
12876
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
12978
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
12877
12979
  StyledSegmentedControlItem,
12878
12980
  {
12879
12981
  ref: combinedRef,
@@ -12895,9 +12997,9 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
12895
12997
 
12896
12998
  // src/components/Select/Select.tsx
12897
12999
  var import_react_select = require("@radix-ui/react-select");
12898
- var import_react65 = require("react");
13000
+ var import_react66 = require("react");
12899
13001
  var import_styled_components80 = __toESM(require("styled-components"));
12900
- var import_jsx_runtime262 = require("react/jsx-runtime");
13002
+ var import_jsx_runtime263 = require("react/jsx-runtime");
12901
13003
  var StyledTrigger2 = (0, import_styled_components80.default)(import_react_select.Trigger)`
12902
13004
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12903
13005
  ${inputCss};
@@ -12960,7 +13062,7 @@ var StyledContent3 = (0, import_styled_components80.default)(import_react_select
12960
13062
  max-height: var(--radix-select-content-available-height);
12961
13063
  z-index: var(--wui-zindex-select);
12962
13064
  `;
12963
- var Select = (0, import_react65.forwardRef)(
13065
+ var Select = (0, import_react66.forwardRef)(
12964
13066
  ({
12965
13067
  colorScheme = "inherit",
12966
13068
  children,
@@ -12970,13 +13072,13 @@ var Select = (0, import_react65.forwardRef)(
12970
13072
  ...props
12971
13073
  }, forwardedRef) => {
12972
13074
  const responsiveFullWidth = useResponsiveProp(fullWidth);
12973
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
13075
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
12974
13076
  import_react_select.Root,
12975
13077
  {
12976
13078
  ...props,
12977
13079
  onValueChange: onChange,
12978
13080
  children: [
12979
- /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
13081
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
12980
13082
  StyledTrigger2,
12981
13083
  {
12982
13084
  ref: forwardedRef,
@@ -12984,8 +13086,8 @@ var Select = (0, import_react65.forwardRef)(
12984
13086
  $fullWidth: responsiveFullWidth,
12985
13087
  ...props,
12986
13088
  children: [
12987
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(import_react_select.Value, { placeholder }),
12988
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
13089
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_select.Value, { placeholder }),
13090
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
12989
13091
  Icon,
12990
13092
  {
12991
13093
  size: "md",
@@ -12995,10 +13097,10 @@ var Select = (0, import_react65.forwardRef)(
12995
13097
  ]
12996
13098
  }
12997
13099
  ),
12998
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(StyledContent3, { position: "popper", children: [
12999
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon, { type: "caret-up" }) }),
13000
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(import_react_select.Viewport, { children }),
13001
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon, { type: "caret-down" }) })
13100
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(StyledContent3, { position: "popper", children: [
13101
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { type: "caret-up" }) }),
13102
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_select.Viewport, { children }),
13103
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { type: "caret-down" }) })
13002
13104
  ] }) })
13003
13105
  ]
13004
13106
  }
@@ -13009,10 +13111,10 @@ Select.displayName = "Select";
13009
13111
 
13010
13112
  // src/components/Select/SelectOption.tsx
13011
13113
  var import_react_select2 = require("@radix-ui/react-select");
13012
- var import_react66 = require("react");
13114
+ var import_react67 = require("react");
13013
13115
  var import_styled_components81 = __toESM(require("styled-components"));
13014
13116
  var import_type_guards54 = require("@wistia/type-guards");
13015
- var import_jsx_runtime263 = require("react/jsx-runtime");
13117
+ var import_jsx_runtime264 = require("react/jsx-runtime");
13016
13118
  var StyledItem = (0, import_styled_components81.default)(import_react_select2.Item)`
13017
13119
  ${variantStyleMap2.body3};
13018
13120
  display: flex;
@@ -13040,25 +13142,25 @@ var StyledItem = (0, import_styled_components81.default)(import_react_select2.It
13040
13142
  var StyledIconContainer = import_styled_components81.default.span`
13041
13143
  width: 12px;
13042
13144
  `;
13043
- var SelectOption = (0, import_react66.forwardRef)(
13145
+ var SelectOption = (0, import_react67.forwardRef)(
13044
13146
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
13045
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
13147
+ return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
13046
13148
  StyledItem,
13047
13149
  {
13048
13150
  ...props,
13049
13151
  ref: forwardedRef,
13050
13152
  children: [
13051
- /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
13153
+ /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
13052
13154
  Icon,
13053
13155
  {
13054
13156
  size: "sm",
13055
13157
  type: "checkmark"
13056
13158
  }
13057
13159
  ) }) }),
13058
- (0, import_type_guards54.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)("div", { children: [
13160
+ (0, import_type_guards54.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)("div", { children: [
13059
13161
  children,
13060
- /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
13061
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_select2.ItemText, { children })
13162
+ /* @__PURE__ */ (0, import_jsx_runtime264.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
13163
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_select2.ItemText, { children })
13062
13164
  ]
13063
13165
  }
13064
13166
  );
@@ -13069,13 +13171,13 @@ SelectOption.displayName = "SelectOption";
13069
13171
  // src/components/Select/SelectOptionGroup.tsx
13070
13172
  var import_react_select3 = require("@radix-ui/react-select");
13071
13173
  var import_styled_components82 = __toESM(require("styled-components"));
13072
- var import_jsx_runtime264 = require("react/jsx-runtime");
13174
+ var import_jsx_runtime265 = require("react/jsx-runtime");
13073
13175
  var StyledLabel4 = (0, import_styled_components82.default)(import_react_select3.Label)`
13074
13176
  padding: var(--wui-select-option-padding);
13075
13177
  `;
13076
13178
  var SelectOptionGroup = ({ children, label, ...props }) => {
13077
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(import_react_select3.Group, { ...props, children: [
13078
- /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
13179
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(import_react_select3.Group, { ...props, children: [
13180
+ /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
13079
13181
  Text,
13080
13182
  {
13081
13183
  prominence: "secondary",
@@ -13091,7 +13193,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
13091
13193
  var import_react_slider = require("@radix-ui/react-slider");
13092
13194
  var import_styled_components83 = __toESM(require("styled-components"));
13093
13195
  var import_type_guards55 = require("@wistia/type-guards");
13094
- var import_jsx_runtime265 = require("react/jsx-runtime");
13196
+ var import_jsx_runtime266 = require("react/jsx-runtime");
13095
13197
  var SliderContainer = import_styled_components83.default.div`
13096
13198
  --wui-slider-track-color: var(--wui-gray-6);
13097
13199
  --wui-slider-track-border-radius: var(--wui-border-radius-rounded);
@@ -13180,12 +13282,12 @@ var Slider = ({
13180
13282
  onChange(newValue);
13181
13283
  }
13182
13284
  };
13183
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
13285
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13184
13286
  SliderContainer,
13185
13287
  {
13186
13288
  ...otherProps,
13187
13289
  "data-testid": dataTestId,
13188
- children: /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
13290
+ children: /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
13189
13291
  StyledSliderRoot,
13190
13292
  {
13191
13293
  "aria-label": ariaLabel,
@@ -13198,8 +13300,8 @@ var Slider = ({
13198
13300
  step,
13199
13301
  ...value ? { value } : {},
13200
13302
  children: [
13201
- /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
13202
- values.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
13303
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
13304
+ values.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13203
13305
  StyledSliderThumb,
13204
13306
  {
13205
13307
  "data-testid": `${dataTestId}-thumb-${index}`
@@ -13215,10 +13317,10 @@ var Slider = ({
13215
13317
  Slider.displayName = "Slider";
13216
13318
 
13217
13319
  // src/components/Switch/Switch.tsx
13218
- var import_react67 = require("react");
13320
+ var import_react68 = require("react");
13219
13321
  var import_styled_components84 = __toESM(require("styled-components"));
13220
13322
  var import_type_guards56 = require("@wistia/type-guards");
13221
- var import_jsx_runtime266 = require("react/jsx-runtime");
13323
+ var import_jsx_runtime267 = require("react/jsx-runtime");
13222
13324
  var sizeSmall3 = import_styled_components84.css`
13223
13325
  --wui-size-small-width: 24px;
13224
13326
  --wui-size-small-height: 14px;
@@ -13320,7 +13422,7 @@ var StyledHiddenSwitchInput = import_styled_components84.default.input`
13320
13422
  }
13321
13423
  }
13322
13424
  `;
13323
- var Switch = (0, import_react67.forwardRef)(
13425
+ var Switch = (0, import_react68.forwardRef)(
13324
13426
  ({
13325
13427
  checked,
13326
13428
  disabled = false,
@@ -13335,10 +13437,10 @@ var Switch = (0, import_react67.forwardRef)(
13335
13437
  hideLabel = false,
13336
13438
  ...props
13337
13439
  }, ref) => {
13338
- const generatedId = (0, import_react67.useId)();
13440
+ const generatedId = (0, import_react68.useId)();
13339
13441
  const computedId = (0, import_type_guards56.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
13340
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
13341
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13442
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
13443
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13342
13444
  StyledHiddenSwitchInput,
13343
13445
  {
13344
13446
  ...props,
@@ -13353,10 +13455,10 @@ var Switch = (0, import_react67.forwardRef)(
13353
13455
  value
13354
13456
  }
13355
13457
  ),
13356
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13458
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13357
13459
  FormControlLabel,
13358
13460
  {
13359
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13461
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13360
13462
  StyledSwitchInput,
13361
13463
  {
13362
13464
  $disabled: disabled,
@@ -13379,7 +13481,7 @@ Switch.displayName = "Switch";
13379
13481
 
13380
13482
  // src/components/Table/Table.tsx
13381
13483
  var import_styled_components85 = __toESM(require("styled-components"));
13382
- var import_jsx_runtime267 = require("react/jsx-runtime");
13484
+ var import_jsx_runtime268 = require("react/jsx-runtime");
13383
13485
  var StyledTable = import_styled_components85.default.table`
13384
13486
  width: 100%;
13385
13487
  border-collapse: collapse;
@@ -13409,7 +13511,7 @@ var Table = ({
13409
13511
  visuallyHiddenHeader = false,
13410
13512
  ...props
13411
13513
  }) => {
13412
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13514
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
13413
13515
  StyledTable,
13414
13516
  {
13415
13517
  $divided: divided,
@@ -13425,20 +13527,20 @@ var Table = ({
13425
13527
  var import_styled_components86 = __toESM(require("styled-components"));
13426
13528
 
13427
13529
  // src/components/Table/TableSectionContext.ts
13428
- var import_react68 = require("react");
13429
- var TableSectionContext = (0, import_react68.createContext)(null);
13530
+ var import_react69 = require("react");
13531
+ var TableSectionContext = (0, import_react69.createContext)(null);
13430
13532
 
13431
13533
  // src/components/Table/TableBody.tsx
13432
- var import_jsx_runtime268 = require("react/jsx-runtime");
13534
+ var import_jsx_runtime269 = require("react/jsx-runtime");
13433
13535
  var StyledTableBody = import_styled_components86.default.tbody``;
13434
13536
  var TableBody = ({ children, ...props }) => {
13435
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(StyledTableBody, { ...props, children }) });
13537
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(StyledTableBody, { ...props, children }) });
13436
13538
  };
13437
13539
 
13438
13540
  // src/components/Table/TableCell.tsx
13439
- var import_react69 = require("react");
13541
+ var import_react70 = require("react");
13440
13542
  var import_styled_components87 = __toESM(require("styled-components"));
13441
- var import_jsx_runtime269 = require("react/jsx-runtime");
13543
+ var import_jsx_runtime270 = require("react/jsx-runtime");
13442
13544
  var sharedStyles = import_styled_components87.css`
13443
13545
  color: var(--wui-color-text);
13444
13546
  padding: var(--wui-space-02);
@@ -13457,48 +13559,48 @@ var StyledTd = import_styled_components87.default.td`
13457
13559
  line-height: var(--wui-typography-body-2-line-height);
13458
13560
  `;
13459
13561
  var TableCell = ({ children, ...props }) => {
13460
- const section = (0, import_react69.useContext)(TableSectionContext);
13562
+ const section = (0, import_react70.useContext)(TableSectionContext);
13461
13563
  if (section === "head") {
13462
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(StyledTh, { ...props, children });
13564
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(StyledTh, { ...props, children });
13463
13565
  }
13464
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(StyledTd, { ...props, children });
13566
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(StyledTd, { ...props, children });
13465
13567
  };
13466
13568
 
13467
13569
  // src/components/Table/TableFoot.tsx
13468
13570
  var import_styled_components88 = __toESM(require("styled-components"));
13469
- var import_jsx_runtime270 = require("react/jsx-runtime");
13571
+ var import_jsx_runtime271 = require("react/jsx-runtime");
13470
13572
  var StyledTableFoot = import_styled_components88.default.tfoot``;
13471
13573
  var TableFoot = ({ children, ...props }) => {
13472
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(StyledTableFoot, { ...props, children }) });
13574
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(StyledTableFoot, { ...props, children }) });
13473
13575
  };
13474
13576
 
13475
13577
  // src/components/Table/TableHead.tsx
13476
13578
  var import_styled_components89 = __toESM(require("styled-components"));
13477
- var import_jsx_runtime271 = require("react/jsx-runtime");
13579
+ var import_jsx_runtime272 = require("react/jsx-runtime");
13478
13580
  var StyledThead = import_styled_components89.default.thead``;
13479
13581
  var TableHead = ({ children, ...props }) => {
13480
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(StyledThead, { ...props, children }) });
13582
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(StyledThead, { ...props, children }) });
13481
13583
  };
13482
13584
 
13483
13585
  // src/components/Table/TableRow.tsx
13484
13586
  var import_styled_components90 = __toESM(require("styled-components"));
13485
- var import_jsx_runtime272 = require("react/jsx-runtime");
13587
+ var import_jsx_runtime273 = require("react/jsx-runtime");
13486
13588
  var StyledTableRow = import_styled_components90.default.tr``;
13487
13589
  var TableRow = ({ children, ...props }) => {
13488
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(StyledTableRow, { ...props, children });
13590
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(StyledTableRow, { ...props, children });
13489
13591
  };
13490
13592
 
13491
13593
  // src/components/Tabs/Tabs.tsx
13492
13594
  var import_react_tabs = require("@radix-ui/react-tabs");
13493
- var import_react71 = require("react");
13595
+ var import_react72 = require("react");
13494
13596
  var import_type_guards57 = require("@wistia/type-guards");
13495
13597
 
13496
13598
  // src/components/Tabs/useTabsValue.tsx
13497
- var import_react70 = require("react");
13498
- var TabsValueContext = (0, import_react70.createContext)(null);
13599
+ var import_react71 = require("react");
13600
+ var TabsValueContext = (0, import_react71.createContext)(null);
13499
13601
  var TabsValueProvider = TabsValueContext.Provider;
13500
13602
  var useTabsValue = () => {
13501
- const context = (0, import_react70.useContext)(TabsValueContext);
13603
+ const context = (0, import_react71.useContext)(TabsValueContext);
13502
13604
  if (context === null) {
13503
13605
  throw new Error("useTabsValue must be used within a TabsValueProvider");
13504
13606
  }
@@ -13506,7 +13608,7 @@ var useTabsValue = () => {
13506
13608
  };
13507
13609
 
13508
13610
  // src/components/Tabs/Tabs.tsx
13509
- var import_jsx_runtime273 = require("react/jsx-runtime");
13611
+ var import_jsx_runtime274 = require("react/jsx-runtime");
13510
13612
  var Tabs = ({
13511
13613
  children,
13512
13614
  value: valueProp,
@@ -13514,8 +13616,8 @@ var Tabs = ({
13514
13616
  defaultValue,
13515
13617
  ...props
13516
13618
  }) => {
13517
- const [value, setValue] = (0, import_react71.useState)(valueProp ?? defaultValue);
13518
- const onValueChange = (0, import_react71.useCallback)(
13619
+ const [value, setValue] = (0, import_react72.useState)(valueProp ?? defaultValue);
13620
+ const onValueChange = (0, import_react72.useCallback)(
13519
13621
  (newValue) => {
13520
13622
  setValue(newValue);
13521
13623
  if (onValueChangeProp) {
@@ -13534,15 +13636,15 @@ var Tabs = ({
13534
13636
  if ((0, import_type_guards57.isNotNil)(defaultValue)) {
13535
13637
  rootProps.defaultValue = defaultValue;
13536
13638
  }
13537
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(SelectedItemStyleProvider, { children }) }) });
13639
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(SelectedItemStyleProvider, { children }) }) });
13538
13640
  };
13539
13641
  Tabs.displayName = "Tabs";
13540
13642
 
13541
13643
  // src/components/Tabs/TabsContent.tsx
13542
13644
  var import_react_tabs2 = require("@radix-ui/react-tabs");
13543
- var import_jsx_runtime274 = require("react/jsx-runtime");
13645
+ var import_jsx_runtime275 = require("react/jsx-runtime");
13544
13646
  var TabsContent = ({ children, value }) => {
13545
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(import_react_tabs2.Content, { value, children });
13647
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(import_react_tabs2.Content, { value, children });
13546
13648
  };
13547
13649
  TabsContent.displayName = "TabsContent";
13548
13650
 
@@ -13562,14 +13664,14 @@ var TabsSelectedItemIndicatorDiv = (0, import_styled_components91.default)(Selec
13562
13664
  `;
13563
13665
 
13564
13666
  // src/components/Tabs/SelectedTabIndicator.tsx
13565
- var import_jsx_runtime275 = require("react/jsx-runtime");
13667
+ var import_jsx_runtime276 = require("react/jsx-runtime");
13566
13668
  var SelectedTabIndicator = () => {
13567
13669
  const { selectedItemIndicatorStyle } = useSelectedItemStyle();
13568
13670
  const selectedValue = useTabsValue();
13569
13671
  if (selectedValue == null || (0, import_type_guards58.isUndefined)(selectedItemIndicatorStyle)) {
13570
13672
  return null;
13571
13673
  }
13572
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13674
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
13573
13675
  TabsSelectedItemIndicatorDiv,
13574
13676
  {
13575
13677
  "data-wui-selected-item-indicator": true,
@@ -13579,19 +13681,19 @@ var SelectedTabIndicator = () => {
13579
13681
  };
13580
13682
 
13581
13683
  // src/components/Tabs/TabsList.tsx
13582
- var import_jsx_runtime276 = require("react/jsx-runtime");
13684
+ var import_jsx_runtime277 = require("react/jsx-runtime");
13583
13685
  var StyledRadixTabsList = (0, import_styled_components92.default)(import_react_tabs3.List)`
13584
13686
  ${segmentedControlStyles}
13585
13687
  `;
13586
13688
  var TabsList = ({ children, fullWidth = true, ...props }) => {
13587
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
13689
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(
13588
13690
  StyledRadixTabsList,
13589
13691
  {
13590
13692
  $fullWidth: fullWidth,
13591
13693
  "aria-label": props["aria-label"],
13592
13694
  children: [
13593
13695
  children,
13594
- /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(SelectedTabIndicator, {})
13696
+ /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(SelectedTabIndicator, {})
13595
13697
  ]
13596
13698
  }
13597
13699
  );
@@ -13599,7 +13701,7 @@ var TabsList = ({ children, fullWidth = true, ...props }) => {
13599
13701
  TabsList.displayName = "TabsList";
13600
13702
 
13601
13703
  // src/components/Tabs/TabsTrigger.tsx
13602
- var import_react72 = require("react");
13704
+ var import_react73 = require("react");
13603
13705
  var import_type_guards59 = require("@wistia/type-guards");
13604
13706
 
13605
13707
  // src/components/Tabs/StyledRadixTabsTrigger.tsx
@@ -13614,14 +13716,14 @@ var StyledRadixTabsTrigger = (0, import_styled_components93.default)(import_reac
13614
13716
  `;
13615
13717
 
13616
13718
  // src/components/Tabs/TabsTrigger.tsx
13617
- var import_jsx_runtime277 = require("react/jsx-runtime");
13618
- var TabsTrigger = (0, import_react72.forwardRef)(
13719
+ var import_jsx_runtime278 = require("react/jsx-runtime");
13720
+ var TabsTrigger = (0, import_react73.forwardRef)(
13619
13721
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
13620
13722
  const selectedValue = useTabsValue();
13621
13723
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
13622
- const buttonRef = (0, import_react72.useRef)(null);
13724
+ const buttonRef = (0, import_react73.useRef)(null);
13623
13725
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
13624
- (0, import_react72.useEffect)(() => {
13726
+ (0, import_react73.useEffect)(() => {
13625
13727
  const buttonElem = buttonRef.current;
13626
13728
  if (!buttonElem) {
13627
13729
  return void 0;
@@ -13646,7 +13748,7 @@ var TabsTrigger = (0, import_react72.forwardRef)(
13646
13748
  resizeObserver.disconnect();
13647
13749
  };
13648
13750
  }, [selectedValue, setSelectedItemMeasurements, value]);
13649
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(
13751
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(
13650
13752
  StyledRadixTabsTrigger,
13651
13753
  {
13652
13754
  ...otherProps,
@@ -13668,7 +13770,7 @@ TabsTrigger.displayName = "TabsTrigger";
13668
13770
  // src/components/Thumbnail/ThumbnailBadge.tsx
13669
13771
  var import_styled_components94 = __toESM(require("styled-components"));
13670
13772
  var import_type_guards60 = require("@wistia/type-guards");
13671
- var import_jsx_runtime278 = require("react/jsx-runtime");
13773
+ var import_jsx_runtime279 = require("react/jsx-runtime");
13672
13774
  var StyledThumbnailBadge = import_styled_components94.default.div`
13673
13775
  align-items: center;
13674
13776
  background-color: rgb(0 0 0 / 50%);
@@ -13694,15 +13796,15 @@ var StyledThumbnailBadge = import_styled_components94.default.div`
13694
13796
  }
13695
13797
  `;
13696
13798
  var ThumbnailBadge = ({ icon, label, ...props }) => {
13697
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(StyledThumbnailBadge, { ...props, children: [
13799
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(StyledThumbnailBadge, { ...props, children: [
13698
13800
  (0, import_type_guards60.isNotNil)(icon) && icon,
13699
- /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("span", { children: label })
13801
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("span", { children: label })
13700
13802
  ] });
13701
13803
  };
13702
13804
  ThumbnailBadge.displayName = "ThumbnailBadge";
13703
13805
 
13704
13806
  // src/components/Thumbnail/Thumbnail.tsx
13705
- var import_react73 = require("react");
13807
+ var import_react74 = require("react");
13706
13808
  var import_styled_components97 = __toESM(require("styled-components"));
13707
13809
  var import_type_guards63 = require("@wistia/type-guards");
13708
13810
 
@@ -13841,7 +13943,7 @@ var getBackgroundGradient = (gradientName = void 0) => {
13841
13943
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
13842
13944
  var import_styled_components96 = __toESM(require("styled-components"));
13843
13945
  var import_type_guards62 = require("@wistia/type-guards");
13844
- var import_jsx_runtime279 = require("react/jsx-runtime");
13946
+ var import_jsx_runtime280 = require("react/jsx-runtime");
13845
13947
  var ScrubLine = import_styled_components96.default.div`
13846
13948
  position: absolute;
13847
13949
  top: 0;
@@ -13944,14 +14046,14 @@ var ThumbnailStoryboardViewer = ({
13944
14046
  backgroundPosition,
13945
14047
  backgroundSize
13946
14048
  };
13947
- return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(
14049
+ return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
13948
14050
  "div",
13949
14051
  {
13950
14052
  ...props,
13951
14053
  style: viewerStyles,
13952
14054
  children: [
13953
- /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("div", { style: storyboardStyles }),
13954
- showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
14055
+ /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("div", { style: storyboardStyles }),
14056
+ showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
13955
14057
  ScrubLine,
13956
14058
  {
13957
14059
  style: {
@@ -13965,7 +14067,7 @@ var ThumbnailStoryboardViewer = ({
13965
14067
  };
13966
14068
 
13967
14069
  // src/components/Thumbnail/Thumbnail.tsx
13968
- var import_jsx_runtime280 = require("react/jsx-runtime");
14070
+ var import_jsx_runtime281 = require("react/jsx-runtime");
13969
14071
  var WideThumbnailImage = import_styled_components97.default.img`
13970
14072
  height: 100%;
13971
14073
  object-fit: cover;
@@ -13978,7 +14080,7 @@ var SquareThumbnailImage = import_styled_components97.default.img`
13978
14080
  `;
13979
14081
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13980
14082
  if (thumbnailImageType === "wide") {
13981
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
14083
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
13982
14084
  WideThumbnailImage,
13983
14085
  {
13984
14086
  alt: "",
@@ -13987,7 +14089,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13987
14089
  }
13988
14090
  );
13989
14091
  }
13990
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
14092
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
13991
14093
  SquareThumbnailImage,
13992
14094
  {
13993
14095
  alt: "",
@@ -14025,7 +14127,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
14025
14127
  left: relativeLeft
14026
14128
  };
14027
14129
  };
14028
- var Thumbnail = (0, import_react73.forwardRef)(
14130
+ var Thumbnail = (0, import_react74.forwardRef)(
14029
14131
  ({
14030
14132
  gradientBackground = "defaultMidOne",
14031
14133
  thumbnailImageType = "square",
@@ -14036,17 +14138,17 @@ var Thumbnail = (0, import_react73.forwardRef)(
14036
14138
  height,
14037
14139
  ...props
14038
14140
  }, ref) => {
14039
- const [percent, setPercent] = (0, import_react73.useState)(0);
14040
- const [isMouseOver, setIsMouseOver] = (0, import_react73.useState)(false);
14041
- const [isStoryboardReady, setIsStoryboardReady] = (0, import_react73.useState)(false);
14042
- const storyboardElementRef = (0, import_react73.useRef)(null);
14043
- const [cursorPosition, setCursorPosition] = (0, import_react73.useState)(null);
14044
- const backgroundUrl = (0, import_react73.useMemo)(
14141
+ const [percent, setPercent] = (0, import_react74.useState)(0);
14142
+ const [isMouseOver, setIsMouseOver] = (0, import_react74.useState)(false);
14143
+ const [isStoryboardReady, setIsStoryboardReady] = (0, import_react74.useState)(false);
14144
+ const storyboardElementRef = (0, import_react74.useRef)(null);
14145
+ const [cursorPosition, setCursorPosition] = (0, import_react74.useState)(null);
14146
+ const backgroundUrl = (0, import_react74.useMemo)(
14045
14147
  () => thumbnailImageType === "square" && (0, import_type_guards63.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
14046
14148
  [thumbnailImageType, thumbnailUrl]
14047
14149
  );
14048
14150
  const isScrubbable = (0, import_type_guards63.isNotNil)(storyboard);
14049
- const trackStoryboardLoadStatus = (0, import_react73.useCallback)(() => {
14151
+ const trackStoryboardLoadStatus = (0, import_react74.useCallback)(() => {
14050
14152
  if (storyboardElementRef.current || !storyboard) {
14051
14153
  return storyboardElementRef.current;
14052
14154
  }
@@ -14056,7 +14158,7 @@ var Thumbnail = (0, import_react73.forwardRef)(
14056
14158
  storyboardElementRef.current = asset;
14057
14159
  return storyboardElementRef.current;
14058
14160
  }, [storyboard]);
14059
- const handleMouseMove = (0, import_react73.useCallback)(
14161
+ const handleMouseMove = (0, import_react74.useCallback)(
14060
14162
  (mouseEvent) => {
14061
14163
  if (!isScrubbable) return;
14062
14164
  const elem = mouseEvent.currentTarget;
@@ -14069,15 +14171,15 @@ var Thumbnail = (0, import_react73.forwardRef)(
14069
14171
  },
14070
14172
  [isScrubbable, trackStoryboardLoadStatus]
14071
14173
  );
14072
- const handleMouseOut = (0, import_react73.useCallback)(() => {
14174
+ const handleMouseOut = (0, import_react74.useCallback)(() => {
14073
14175
  if (!isScrubbable) return;
14074
14176
  setIsMouseOver(false);
14075
14177
  setCursorPosition(null);
14076
14178
  }, [isScrubbable]);
14077
- const shouldRenderStoryboard = (0, import_react73.useMemo)(() => {
14179
+ const shouldRenderStoryboard = (0, import_react74.useMemo)(() => {
14078
14180
  return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
14079
14181
  }, [isScrubbable, isMouseOver, isStoryboardReady]);
14080
- const renderStoryboard = (0, import_react73.useCallback)(() => {
14182
+ const renderStoryboard = (0, import_react74.useCallback)(() => {
14081
14183
  if (!storyboard || (0, import_type_guards63.isUndefined)(height) || (0, import_type_guards63.isEmptyString)(height)) return null;
14082
14184
  const {
14083
14185
  url,
@@ -14090,7 +14192,7 @@ var Thumbnail = (0, import_react73.forwardRef)(
14090
14192
  } = storyboard;
14091
14193
  const targetWidth = (0, import_type_guards63.isString)(width) ? parseInt(width, 10) : Number(width);
14092
14194
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
14093
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
14195
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
14094
14196
  ThumbnailStoryboardViewer,
14095
14197
  {
14096
14198
  cursorPosition: effectiveCursorPosition,
@@ -14110,7 +14212,7 @@ var Thumbnail = (0, import_react73.forwardRef)(
14110
14212
  if (shouldRenderStoryboard) {
14111
14213
  thumbnailContent = renderStoryboard();
14112
14214
  } else if ((0, import_type_guards63.isNotNil)(thumbnailUrl)) {
14113
- thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
14215
+ thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
14114
14216
  ThumbnailImage,
14115
14217
  {
14116
14218
  thumbnailImageType,
@@ -14120,7 +14222,7 @@ var Thumbnail = (0, import_react73.forwardRef)(
14120
14222
  } else {
14121
14223
  thumbnailContent = null;
14122
14224
  }
14123
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
14225
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
14124
14226
  StyledThumbnail,
14125
14227
  {
14126
14228
  ref,
@@ -14144,10 +14246,10 @@ var Thumbnail = (0, import_react73.forwardRef)(
14144
14246
  Thumbnail.displayName = "Thumbnail";
14145
14247
 
14146
14248
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
14147
- var import_react74 = __toESM(require("react"));
14249
+ var import_react75 = __toESM(require("react"));
14148
14250
  var import_styled_components98 = __toESM(require("styled-components"));
14149
14251
  var import_type_guards64 = require("@wistia/type-guards");
14150
- var import_jsx_runtime281 = (
14252
+ var import_jsx_runtime282 = (
14151
14253
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
14152
14254
  require("react/jsx-runtime")
14153
14255
  );
@@ -14224,15 +14326,15 @@ var ThumbnailCollage = ({
14224
14326
  gradientBackground = "defaultMidOne",
14225
14327
  ...props
14226
14328
  }) => {
14227
- const thumbnailArray = import_react74.default.Children.toArray(children);
14329
+ const thumbnailArray = import_react75.default.Children.toArray(children);
14228
14330
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
14229
14331
  const thumbnails = (0, import_type_guards64.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
14230
- return import_react74.default.cloneElement(child, {
14332
+ return import_react75.default.cloneElement(child, {
14231
14333
  ...child.props,
14232
14334
  children: void 0
14233
14335
  });
14234
14336
  }) : [
14235
- /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
14337
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
14236
14338
  Thumbnail,
14237
14339
  {
14238
14340
  gradientBackground,
@@ -14241,7 +14343,7 @@ var ThumbnailCollage = ({
14241
14343
  "fallback"
14242
14344
  )
14243
14345
  ];
14244
- return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
14346
+ return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
14245
14347
  StyledThumbnailCollage,
14246
14348
  {
14247
14349
  $gradientBackground: gradientBackground,
@@ -14255,24 +14357,24 @@ var ThumbnailCollage = ({
14255
14357
  // src/components/WistiaLogo/WistiaLogo.tsx
14256
14358
  var import_styled_components99 = __toESM(require("styled-components"));
14257
14359
  var import_type_guards65 = require("@wistia/type-guards");
14258
- var import_jsx_runtime282 = require("react/jsx-runtime");
14360
+ var import_jsx_runtime283 = require("react/jsx-runtime");
14259
14361
  var renderBrandmark = (brandmarkColor, iconOnly) => {
14260
14362
  if (iconOnly) {
14261
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
14363
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
14262
14364
  "g",
14263
14365
  {
14264
14366
  "data-testid": "ui-wistia-logo-brandmark",
14265
14367
  fill: brandmarkColor,
14266
- children: /* @__PURE__ */ (0, import_jsx_runtime282.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" })
14368
+ children: /* @__PURE__ */ (0, import_jsx_runtime283.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" })
14267
14369
  }
14268
14370
  );
14269
14371
  }
14270
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
14372
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
14271
14373
  "g",
14272
14374
  {
14273
14375
  "data-testid": "ui-wistia-logo-brandmark",
14274
14376
  fill: brandmarkColor,
14275
- children: /* @__PURE__ */ (0, import_jsx_runtime282.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" })
14377
+ children: /* @__PURE__ */ (0, import_jsx_runtime283.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" })
14276
14378
  }
14277
14379
  );
14278
14380
  };
@@ -14280,12 +14382,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
14280
14382
  if (iconOnly) {
14281
14383
  return null;
14282
14384
  }
14283
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
14385
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
14284
14386
  "g",
14285
14387
  {
14286
14388
  "data-testid": "ui-wistia-logo-logotype",
14287
14389
  fill: logotypeColor,
14288
- children: /* @__PURE__ */ (0, import_jsx_runtime282.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" })
14390
+ children: /* @__PURE__ */ (0, import_jsx_runtime283.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" })
14289
14391
  }
14290
14392
  );
14291
14393
  };
@@ -14353,7 +14455,7 @@ var WistiaLogo = ({
14353
14455
  };
14354
14456
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
14355
14457
  const logotypeColor = VARIANT_COLORS[variant].logotype;
14356
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)(
14458
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(
14357
14459
  WistiaLogoComponent,
14358
14460
  {
14359
14461
  $hoverColor: hoverColor,
@@ -14366,14 +14468,14 @@ var WistiaLogo = ({
14366
14468
  xmlns: "http://www.w3.org/2000/svg",
14367
14469
  ...props,
14368
14470
  children: [
14369
- /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("title", { children: title }),
14370
- (0, import_type_guards65.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("desc", { children: description }) : null,
14471
+ /* @__PURE__ */ (0, import_jsx_runtime283.jsx)("title", { children: title }),
14472
+ (0, import_type_guards65.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime283.jsx)("desc", { children: description }) : null,
14371
14473
  renderBrandmark(brandmarkColor, iconOnly),
14372
14474
  renderLogotype(logotypeColor, iconOnly)
14373
14475
  ]
14374
14476
  }
14375
14477
  );
14376
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("a", { href, children: Logo }) : Logo;
14478
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime283.jsx)("a", { href, children: Logo }) : Logo;
14377
14479
  };
14378
14480
  WistiaLogo.displayName = "WistiaLogo";
14379
14481
  // Annotate the CommonJS export names for ESM import in node:
@@ -14409,6 +14511,8 @@ WistiaLogo.displayName = "WistiaLogo";
14409
14511
  FileAmountLimitValidator,
14410
14512
  FileSizeValidator,
14411
14513
  FileTypeValidator,
14514
+ FilterMenu,
14515
+ FilterMenuItem,
14412
14516
  Form,
14413
14517
  FormErrorSummary,
14414
14518
  FormField,