@wistia/ui 0.8.6-beta.5e32ee7a.d7d4d10 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.8.6-beta.5e32ee7a.d7d4d10
3
+ * @license @wistia/ui v0.8.6
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9884,72 +9884,8 @@ var IconButton = forwardRef13(
9884
9884
  );
9885
9885
  IconButton.displayName = "IconButton";
9886
9886
 
9887
- // src/components/InputClickToCopy/InputClickToCopy.tsx
9888
- import styled38 from "styled-components";
9889
- import { forwardRef as forwardRef14, useEffect as useEffect7, useState as useState9 } from "react";
9890
- import { isFunction as isFunction3 } from "@wistia/type-guards";
9891
- import { jsx as jsx230 } from "react/jsx-runtime";
9892
- var StyledInput2 = styled38(Input)`
9893
- &:not([aria-disabled='true']) {
9894
- cursor: pointer;
9895
- }
9896
-
9897
- &::selection {
9898
- background-color: transparent;
9899
- }
9900
- `;
9901
- var COPY_SUCCESS_DURATION = 2e3;
9902
- var InputClickToCopy = forwardRef14(
9903
- ({ value, onCopy, ...props }, ref) => {
9904
- const [isCopied, setIsCopied] = useState9(false);
9905
- useEffect7(() => {
9906
- if (isCopied) {
9907
- const timeout = setTimeout(() => {
9908
- setIsCopied(false);
9909
- }, COPY_SUCCESS_DURATION);
9910
- return () => {
9911
- clearTimeout(timeout);
9912
- };
9913
- }
9914
- return () => null;
9915
- }, [isCopied]);
9916
- const handleClick = (event) => {
9917
- event.preventDefault();
9918
- if (isFunction3(props.onClick)) {
9919
- props.onClick(event);
9920
- }
9921
- void copyToClipboard(value).then(() => {
9922
- setIsCopied(true);
9923
- if (isFunction3(onCopy)) {
9924
- onCopy(value);
9925
- }
9926
- return value;
9927
- });
9928
- };
9929
- return /* @__PURE__ */ jsx230(
9930
- StyledInput2,
9931
- {
9932
- "aria-label": "Click to Copy",
9933
- ...props,
9934
- ref,
9935
- onClick: handleClick,
9936
- readOnly: true,
9937
- rightIcon: isCopied ? /* @__PURE__ */ jsx230(
9938
- Icon,
9939
- {
9940
- colorScheme: "success",
9941
- type: "checkmark-circle"
9942
- }
9943
- ) : /* @__PURE__ */ jsx230(Icon, { type: "save-as-copy" }),
9944
- value
9945
- }
9946
- );
9947
- }
9948
- );
9949
- InputClickToCopy.displayName = "InputClickToCopy";
9950
-
9951
9887
  // src/components/Menu/Menu.tsx
9952
- import styled39, { css as css28, keyframes as keyframes2 } from "styled-components";
9888
+ import styled38, { css as css28, keyframes as keyframes2 } from "styled-components";
9953
9889
  import {
9954
9890
  DropdownMenu,
9955
9891
  DropdownMenuTrigger,
@@ -9965,7 +9901,7 @@ var MenuContext = createContext5({ compact: false });
9965
9901
  var useMenuContext = () => useContext4(MenuContext);
9966
9902
 
9967
9903
  // src/components/Menu/Menu.tsx
9968
- import { jsx as jsx231, jsxs as jsxs25 } from "react/jsx-runtime";
9904
+ import { jsx as jsx230, jsxs as jsxs25 } from "react/jsx-runtime";
9969
9905
  var open = keyframes2`
9970
9906
  from {
9971
9907
  opacity: 0;
@@ -10050,7 +9986,7 @@ var menuContentCss = css28`
10050
9986
  margin: var(--menu-divider-margin) 0;
10051
9987
  }
10052
9988
  `;
10053
- var MenuContent = styled39(DropdownMenuContent)`
9989
+ var MenuContent = styled38(DropdownMenuContent)`
10054
9990
  ${menuContentCss}
10055
9991
  `;
10056
9992
  var Menu = ({
@@ -10076,24 +10012,24 @@ var Menu = ({
10076
10012
  onOpenChange: () => null
10077
10013
  };
10078
10014
  }
10079
- return /* @__PURE__ */ jsx231(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs25(
10015
+ return /* @__PURE__ */ jsx230(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs25(
10080
10016
  DropdownMenu,
10081
10017
  {
10082
10018
  modal: false,
10083
10019
  ...controlProps,
10084
10020
  children: [
10085
- /* @__PURE__ */ jsx231(DropdownMenuTrigger, { asChild: true, children: isNotUndefined10(trigger) ? trigger : /* @__PURE__ */ jsx231(
10021
+ /* @__PURE__ */ jsx230(DropdownMenuTrigger, { asChild: true, children: isNotUndefined10(trigger) ? trigger : /* @__PURE__ */ jsx230(
10086
10022
  Button,
10087
10023
  {
10088
10024
  "aria-expanded": isOpen,
10089
10025
  disabled,
10090
10026
  forceState: isOpen ? "active" : void 0,
10091
- rightIcon: /* @__PURE__ */ jsx231(Icon, { type: "caret-down" }),
10027
+ rightIcon: /* @__PURE__ */ jsx230(Icon, { type: "caret-down" }),
10092
10028
  ...triggerProps,
10093
10029
  children: label
10094
10030
  }
10095
10031
  ) }),
10096
- /* @__PURE__ */ jsx231(DropdownMenuPortal, { children: /* @__PURE__ */ jsx231(
10032
+ /* @__PURE__ */ jsx230(DropdownMenuPortal, { children: /* @__PURE__ */ jsx230(
10097
10033
  MenuContent,
10098
10034
  {
10099
10035
  ...props,
@@ -10113,19 +10049,19 @@ var Menu = ({
10113
10049
  Menu.displayName = "Menu";
10114
10050
 
10115
10051
  // src/components/Menu/MenuLabel.tsx
10116
- import styled40 from "styled-components";
10052
+ import styled39 from "styled-components";
10117
10053
  import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
10118
- import { jsx as jsx232 } from "react/jsx-runtime";
10119
- var StyledMenuLabel = styled40(DropdownMenuLabel)`
10054
+ import { jsx as jsx231 } from "react/jsx-runtime";
10055
+ var StyledMenuLabel = styled39(DropdownMenuLabel)`
10120
10056
  padding: var(--wui-space-02);
10121
10057
  `;
10122
10058
  var MenuLabel = ({ children, ...props }) => {
10123
- return /* @__PURE__ */ jsx232(
10059
+ return /* @__PURE__ */ jsx231(
10124
10060
  StyledMenuLabel,
10125
10061
  {
10126
10062
  asChild: true,
10127
10063
  ...props,
10128
- children: /* @__PURE__ */ jsx232(
10064
+ children: /* @__PURE__ */ jsx231(
10129
10065
  Heading,
10130
10066
  {
10131
10067
  renderAs: "span",
@@ -10140,8 +10076,8 @@ var MenuLabel = ({ children, ...props }) => {
10140
10076
  MenuLabel.displayName = "MenuLabel";
10141
10077
 
10142
10078
  // src/components/Menu/SubMenu.tsx
10143
- import { useState as useState10 } from "react";
10144
- import styled43 from "styled-components";
10079
+ import { useState as useState9 } from "react";
10080
+ import styled42 from "styled-components";
10145
10081
  import {
10146
10082
  DropdownMenuPortal as DropdownMenuPortal2,
10147
10083
  DropdownMenuSub,
@@ -10153,11 +10089,11 @@ import {
10153
10089
  import { isNotNil as isNotNil20 } from "@wistia/type-guards";
10154
10090
 
10155
10091
  // src/components/Menu/MenuItemButton.tsx
10156
- import { forwardRef as forwardRef15 } from "react";
10157
- import styled41 from "styled-components";
10092
+ import { forwardRef as forwardRef14 } from "react";
10093
+ import styled40 from "styled-components";
10158
10094
  import { isNotNil as isNotNil19, isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
10159
- import { jsx as jsx233, jsxs as jsxs26 } from "react/jsx-runtime";
10160
- var StyledButton3 = styled41(Button)`
10095
+ import { jsx as jsx232, jsxs as jsxs26 } from "react/jsx-runtime";
10096
+ var StyledButton3 = styled40(Button)`
10161
10097
  ${({ colorScheme }) => getColorScheme(colorScheme)};
10162
10098
 
10163
10099
  display: flex;
@@ -10196,7 +10132,7 @@ var StyledButton3 = styled41(Button)`
10196
10132
  padding-left: var(--wui-space-04);
10197
10133
  }
10198
10134
  `;
10199
- var StyledLeftIconContainer = styled41.div`
10135
+ var StyledLeftIconContainer = styled40.div`
10200
10136
  height: var(--menu-item-left-icon-size);
10201
10137
  width: var(--menu-item-left-icon-size);
10202
10138
 
@@ -10207,7 +10143,7 @@ var StyledLeftIconContainer = styled41.div`
10207
10143
  }
10208
10144
  }
10209
10145
  `;
10210
- var StyledRightIconContainer = styled41.div`
10146
+ var StyledRightIconContainer = styled40.div`
10211
10147
  height: var(--menu-item-right-icon-size);
10212
10148
  width: var(--menu-item-right-icon-size);
10213
10149
 
@@ -10218,19 +10154,19 @@ var StyledRightIconContainer = styled41.div`
10218
10154
  }
10219
10155
  }
10220
10156
  `;
10221
- var StyledLabelAndDescriptionContainer = styled41.div`
10157
+ var StyledLabelAndDescriptionContainer = styled40.div`
10222
10158
  display: flex;
10223
10159
  flex-direction: column;
10224
10160
  gap: var(--menu-label-description-gap);
10225
10161
  flex-basis: 100%;
10226
10162
  `;
10227
- var StyledBadgeContainer = styled41.div`
10163
+ var StyledBadgeContainer = styled40.div`
10228
10164
  align-self: start;
10229
10165
  justify-self: end;
10230
10166
  font-size: var(--wui-typography-label-4-size);
10231
10167
  color: var(--wui-color-text-secondary);
10232
10168
  `;
10233
- var MenuItemButton = forwardRef15(({ children, appearance, command, icon, ...props }, ref) => {
10169
+ var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...props }, ref) => {
10234
10170
  let { colorScheme, badge } = props;
10235
10171
  if (appearance === "dangerous") {
10236
10172
  if (isNotUndefined11(colorScheme)) {
@@ -10239,7 +10175,7 @@ var MenuItemButton = forwardRef15(({ children, appearance, command, icon, ...pro
10239
10175
  colorScheme = "error";
10240
10176
  }
10241
10177
  if (appearance === "gated") {
10242
- badge = /* @__PURE__ */ jsx233(
10178
+ badge = /* @__PURE__ */ jsx232(
10243
10179
  Icon,
10244
10180
  {
10245
10181
  colorScheme: "purple",
@@ -10261,10 +10197,10 @@ var MenuItemButton = forwardRef15(({ children, appearance, command, icon, ...pro
10261
10197
  fullWidth: true,
10262
10198
  unstyled: true,
10263
10199
  children: [
10264
- props.leftIcon ? /* @__PURE__ */ jsx233(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10265
- /* @__PURE__ */ jsx233(StyledLabelAndDescriptionContainer, { children }),
10266
- isNotNil19(badge) || isNotNil19(command) ? /* @__PURE__ */ jsx233(StyledBadgeContainer, { children: badge ?? command }) : null,
10267
- props.rightIcon ? /* @__PURE__ */ jsx233(StyledRightIconContainer, { children: props.rightIcon }) : null
10200
+ props.leftIcon ? /* @__PURE__ */ jsx232(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10201
+ /* @__PURE__ */ jsx232(StyledLabelAndDescriptionContainer, { children }),
10202
+ isNotNil19(badge) || isNotNil19(command) ? /* @__PURE__ */ jsx232(StyledBadgeContainer, { children: badge ?? command }) : null,
10203
+ props.rightIcon ? /* @__PURE__ */ jsx232(StyledRightIconContainer, { children: props.rightIcon }) : null
10268
10204
  ]
10269
10205
  }
10270
10206
  );
@@ -10272,33 +10208,33 @@ var MenuItemButton = forwardRef15(({ children, appearance, command, icon, ...pro
10272
10208
  MenuItemButton.displayName = "MenuItemButton";
10273
10209
 
10274
10210
  // src/components/Menu/MenuItemLabelDescription.tsx
10275
- import styled42 from "styled-components";
10276
- import { jsx as jsx234 } from "react/jsx-runtime";
10277
- var StyledMenuItemLabel = styled42.span``;
10278
- var StyledMenuItemDescription = styled42(Text).attrs({
10211
+ import styled41 from "styled-components";
10212
+ import { jsx as jsx233 } from "react/jsx-runtime";
10213
+ var StyledMenuItemLabel = styled41.span``;
10214
+ var StyledMenuItemDescription = styled41(Text).attrs({
10279
10215
  variant: "body4",
10280
10216
  prominence: "secondary"
10281
10217
  })``;
10282
10218
  var MenuItemLabel = ({ children }) => {
10283
- return /* @__PURE__ */ jsx234(StyledMenuItemLabel, { children });
10219
+ return /* @__PURE__ */ jsx233(StyledMenuItemLabel, { children });
10284
10220
  };
10285
10221
  var MenuItemDescription = ({ children }) => {
10286
- return /* @__PURE__ */ jsx234(StyledMenuItemDescription, { children });
10222
+ return /* @__PURE__ */ jsx233(StyledMenuItemDescription, { children });
10287
10223
  };
10288
10224
 
10289
10225
  // src/components/Menu/SubMenu.tsx
10290
- import { jsx as jsx235, jsxs as jsxs27 } from "react/jsx-runtime";
10291
- var SubMenuContent = styled43(DropdownMenuSubContent)`
10226
+ import { jsx as jsx234, jsxs as jsxs27 } from "react/jsx-runtime";
10227
+ var SubMenuContent = styled42(DropdownMenuSubContent)`
10292
10228
  ${menuContentCss}
10293
10229
 
10294
10230
  ${mq.smAndDown} {
10295
10231
  transform: translateX(-100%) !important;
10296
10232
  }
10297
10233
  `;
10298
- var StyledMobileSubMenuItems = styled43.div`
10234
+ var StyledMobileSubMenuItems = styled42.div`
10299
10235
  margin-left: var(--wui-space-04);
10300
10236
  `;
10301
- var StyledSubTrigger = styled43(DropdownMenuSubTrigger)`
10237
+ var StyledSubTrigger = styled42(DropdownMenuSubTrigger)`
10302
10238
  outline: none;
10303
10239
 
10304
10240
  &[data-state='open'],
@@ -10309,12 +10245,12 @@ var StyledSubTrigger = styled43(DropdownMenuSubTrigger)`
10309
10245
  var SubMenuTrigger = ({ icon, ...props }) => {
10310
10246
  const { isSmAndUp } = useMq();
10311
10247
  const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
10312
- return /* @__PURE__ */ jsx235(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx235(
10248
+ return /* @__PURE__ */ jsx234(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx234(
10313
10249
  MenuItemButton,
10314
10250
  {
10315
10251
  ...props,
10316
10252
  leftIcon: icon,
10317
- rightIcon: /* @__PURE__ */ jsx235(Icon, { type: "caret-right" })
10253
+ rightIcon: /* @__PURE__ */ jsx234(Icon, { type: "caret-right" })
10318
10254
  }
10319
10255
  ) });
10320
10256
  };
@@ -10326,14 +10262,14 @@ var SubMenu = ({
10326
10262
  ...props
10327
10263
  }) => {
10328
10264
  const { isSmAndUp } = useMq();
10329
- const [isExpanded, setIsExpanded] = useState10(false);
10265
+ const [isExpanded, setIsExpanded] = useState9(false);
10330
10266
  const { compact } = useMenuContext();
10331
10267
  return isSmAndUp ? /* @__PURE__ */ jsxs27(DropdownMenuSub, { onOpenChange, children: [
10332
10268
  /* @__PURE__ */ jsxs27(SubMenuTrigger, { ...props, children: [
10333
- /* @__PURE__ */ jsx235(MenuItemLabel, { children: label }),
10334
- isNotNil20(description) ? /* @__PURE__ */ jsx235(MenuItemDescription, { children: description }) : null
10269
+ /* @__PURE__ */ jsx234(MenuItemLabel, { children: label }),
10270
+ isNotNil20(description) ? /* @__PURE__ */ jsx234(MenuItemDescription, { children: description }) : null
10335
10271
  ] }),
10336
- /* @__PURE__ */ jsx235(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx235(SubMenuContent, { $compact: compact, children }) })
10272
+ /* @__PURE__ */ jsx234(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx234(SubMenuContent, { $compact: compact, children }) })
10337
10273
  ] }) : /* @__PURE__ */ jsxs27(DropdownMenuGroup, { children: [
10338
10274
  /* @__PURE__ */ jsxs27(
10339
10275
  SubMenuTrigger,
@@ -10344,28 +10280,28 @@ var SubMenu = ({
10344
10280
  setIsExpanded((prev) => !prev);
10345
10281
  },
10346
10282
  children: [
10347
- /* @__PURE__ */ jsx235(MenuItemLabel, { children: label }),
10348
- /* @__PURE__ */ jsx235(MenuItemDescription, { children: description })
10283
+ /* @__PURE__ */ jsx234(MenuItemLabel, { children: label }),
10284
+ /* @__PURE__ */ jsx234(MenuItemDescription, { children: description })
10349
10285
  ]
10350
10286
  }
10351
10287
  ),
10352
- /* @__PURE__ */ jsx235(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10288
+ /* @__PURE__ */ jsx234(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
10353
10289
  ] });
10354
10290
  };
10355
10291
  SubMenu.displayName = "SubMenu";
10356
10292
 
10357
10293
  // src/components/Menu/MenuItem.tsx
10358
- import { forwardRef as forwardRef16 } from "react";
10294
+ import { forwardRef as forwardRef15 } from "react";
10359
10295
  import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
10360
- import { jsx as jsx236 } from "react/jsx-runtime";
10361
- var MenuItem = forwardRef16(
10296
+ import { jsx as jsx235 } from "react/jsx-runtime";
10297
+ var MenuItem = forwardRef15(
10362
10298
  ({ onSelect = () => null, ...props }, ref) => {
10363
- return /* @__PURE__ */ jsx236(
10299
+ return /* @__PURE__ */ jsx235(
10364
10300
  DropdownMenuItem2,
10365
10301
  {
10366
10302
  asChild: true,
10367
10303
  onSelect,
10368
- children: /* @__PURE__ */ jsx236(
10304
+ children: /* @__PURE__ */ jsx235(
10369
10305
  MenuItemButton,
10370
10306
  {
10371
10307
  ...props,
@@ -10383,10 +10319,10 @@ MenuItem.displayName = "MenuItem";
10383
10319
  import {
10384
10320
  DropdownMenuRadioGroup
10385
10321
  } from "@radix-ui/react-dropdown-menu";
10386
- import { jsx as jsx237, jsxs as jsxs28 } from "react/jsx-runtime";
10322
+ import { jsx as jsx236, jsxs as jsxs28 } from "react/jsx-runtime";
10387
10323
  var MenuRadioGroup = ({ children, label, ...props }) => {
10388
10324
  return /* @__PURE__ */ jsxs28(DropdownMenuRadioGroup, { ...props, children: [
10389
- /* @__PURE__ */ jsx237(MenuLabel, { children: label }),
10325
+ /* @__PURE__ */ jsx236(MenuLabel, { children: label }),
10390
10326
  children
10391
10327
  ] });
10392
10328
  };
@@ -10397,11 +10333,11 @@ import {
10397
10333
  DropdownMenuItemIndicator,
10398
10334
  DropdownMenuRadioItem
10399
10335
  } from "@radix-ui/react-dropdown-menu";
10400
- import { jsx as jsx238 } from "react/jsx-runtime";
10336
+ import { jsx as jsx237 } from "react/jsx-runtime";
10401
10337
  var RadioMenuItem = ({
10402
10338
  onSelect,
10403
10339
  value,
10404
- indicator = /* @__PURE__ */ jsx238(
10340
+ indicator = /* @__PURE__ */ jsx237(
10405
10341
  Icon,
10406
10342
  {
10407
10343
  size: "sm",
@@ -10411,17 +10347,17 @@ var RadioMenuItem = ({
10411
10347
  ...props
10412
10348
  }) => {
10413
10349
  const extraProps = onSelect ? { onSelect } : {};
10414
- return /* @__PURE__ */ jsx238(
10350
+ return /* @__PURE__ */ jsx237(
10415
10351
  DropdownMenuRadioItem,
10416
10352
  {
10417
10353
  ...extraProps,
10418
10354
  asChild: true,
10419
10355
  value,
10420
- children: /* @__PURE__ */ jsx238(
10356
+ children: /* @__PURE__ */ jsx237(
10421
10357
  MenuItemButton,
10422
10358
  {
10423
10359
  ...props,
10424
- rightIcon: /* @__PURE__ */ jsx238(DropdownMenuItemIndicator, { children: indicator })
10360
+ rightIcon: /* @__PURE__ */ jsx237(DropdownMenuItemIndicator, { children: indicator })
10425
10361
  }
10426
10362
  )
10427
10363
  }
@@ -10433,7 +10369,7 @@ RadioMenuItem.displayName = "RadioMenuItem";
10433
10369
  import {
10434
10370
  DropdownMenuCheckboxItem
10435
10371
  } from "@radix-ui/react-dropdown-menu";
10436
- import { jsx as jsx239, jsxs as jsxs29 } from "react/jsx-runtime";
10372
+ import { jsx as jsx238, jsxs as jsxs29 } from "react/jsx-runtime";
10437
10373
  var CheckboxIndicator = ({ checked, ...props }) => {
10438
10374
  return checked ? /* @__PURE__ */ jsxs29(
10439
10375
  "svg",
@@ -10445,14 +10381,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10445
10381
  width: "24",
10446
10382
  xmlns: "http://www.w3.org/2000/svg",
10447
10383
  children: [
10448
- /* @__PURE__ */ jsx239(
10384
+ /* @__PURE__ */ jsx238(
10449
10385
  "path",
10450
10386
  {
10451
10387
  d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
10452
10388
  fill: "#2949e5"
10453
10389
  }
10454
10390
  ),
10455
- /* @__PURE__ */ jsx239(
10391
+ /* @__PURE__ */ jsx238(
10456
10392
  "path",
10457
10393
  {
10458
10394
  d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
@@ -10471,14 +10407,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10471
10407
  width: "24",
10472
10408
  xmlns: "http://www.w3.org/2000/svg",
10473
10409
  children: [
10474
- /* @__PURE__ */ jsx239(
10410
+ /* @__PURE__ */ jsx238(
10475
10411
  "path",
10476
10412
  {
10477
10413
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
10478
10414
  fill: "#fcfcfd"
10479
10415
  }
10480
10416
  ),
10481
- /* @__PURE__ */ jsx239(
10417
+ /* @__PURE__ */ jsx238(
10482
10418
  "path",
10483
10419
  {
10484
10420
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
@@ -10495,18 +10431,18 @@ var CheckboxMenuItem = ({
10495
10431
  onCheckedChange,
10496
10432
  ...props
10497
10433
  }) => {
10498
- return /* @__PURE__ */ jsx239(
10434
+ return /* @__PURE__ */ jsx238(
10499
10435
  DropdownMenuCheckboxItem,
10500
10436
  {
10501
10437
  asChild: true,
10502
10438
  checked,
10503
10439
  onCheckedChange,
10504
10440
  onSelect,
10505
- children: /* @__PURE__ */ jsx239(
10441
+ children: /* @__PURE__ */ jsx238(
10506
10442
  MenuItemButton,
10507
10443
  {
10508
10444
  ...props,
10509
- leftIcon: /* @__PURE__ */ jsx239(CheckboxIndicator, { checked })
10445
+ leftIcon: /* @__PURE__ */ jsx238(CheckboxIndicator, { checked })
10510
10446
  }
10511
10447
  )
10512
10448
  }
@@ -10515,37 +10451,37 @@ var CheckboxMenuItem = ({
10515
10451
  CheckboxMenuItem.displayName = "CheckboxMenuItem";
10516
10452
 
10517
10453
  // src/components/Modal/Modal.tsx
10518
- import { forwardRef as forwardRef19 } from "react";
10519
- import styled48 from "styled-components";
10454
+ import { forwardRef as forwardRef18 } from "react";
10455
+ import styled47 from "styled-components";
10520
10456
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
10521
10457
  import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10522
10458
 
10523
10459
  // src/components/Modal/ModalHeader.tsx
10524
- import styled45 from "styled-components";
10460
+ import styled44 from "styled-components";
10525
10461
  import { Title as DialogTitle } from "@radix-ui/react-dialog";
10526
10462
 
10527
10463
  // src/components/Modal/ModalCloseButton.tsx
10528
- import styled44 from "styled-components";
10464
+ import styled43 from "styled-components";
10529
10465
  import { Close as DialogClose } from "@radix-ui/react-dialog";
10530
- import { jsx as jsx240 } from "react/jsx-runtime";
10531
- var CloseButton = styled44(DialogClose)`
10466
+ import { jsx as jsx239 } from "react/jsx-runtime";
10467
+ var CloseButton = styled43(DialogClose)`
10532
10468
  align-self: start;
10533
10469
  `;
10534
10470
  var ModalCloseButton = () => {
10535
- return /* @__PURE__ */ jsx240(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx240(
10471
+ return /* @__PURE__ */ jsx239(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx239(
10536
10472
  IconButton,
10537
10473
  {
10538
10474
  label: "Dismiss modal",
10539
10475
  size: "sm",
10540
10476
  variant: "ghost",
10541
- children: /* @__PURE__ */ jsx240(Icon, { type: "close" })
10477
+ children: /* @__PURE__ */ jsx239(Icon, { type: "close" })
10542
10478
  }
10543
10479
  ) });
10544
10480
  };
10545
10481
 
10546
10482
  // src/components/Modal/ModalHeader.tsx
10547
- import { jsx as jsx241, jsxs as jsxs30 } from "react/jsx-runtime";
10548
- var Header = styled45.header`
10483
+ import { jsx as jsx240, jsxs as jsxs30 } from "react/jsx-runtime";
10484
+ var Header = styled44.header`
10549
10485
  display: flex;
10550
10486
  order: 1;
10551
10487
  gap: var(--wui-space-01);
@@ -10556,7 +10492,7 @@ var Header = styled45.header`
10556
10492
  margin: 0 0 var(--wui-space-03);
10557
10493
  }
10558
10494
  `;
10559
- var Title = styled45(DialogTitle)`
10495
+ var Title = styled44(DialogTitle)`
10560
10496
  font-family: var(--wui-typography-heading-2-family);
10561
10497
  line-height: var(--wui-typography-heading-2-line-height);
10562
10498
  font-size: var(--wui-typography-heading-2-size);
@@ -10567,27 +10503,27 @@ var ModalHeader = ({
10567
10503
  hideTitle,
10568
10504
  hideCloseButton
10569
10505
  }) => {
10570
- const TitleComponent = hideTitle ? /* @__PURE__ */ jsx241(ScreenReaderOnly, { children: /* @__PURE__ */ jsx241(Title, { children: title }) }) : /* @__PURE__ */ jsx241(Title, { children: title });
10506
+ const TitleComponent = hideTitle ? /* @__PURE__ */ jsx240(ScreenReaderOnly, { children: /* @__PURE__ */ jsx240(Title, { children: title }) }) : /* @__PURE__ */ jsx240(Title, { children: title });
10571
10507
  return /* @__PURE__ */ jsxs30(Header, { $hideTitle: hideTitle, children: [
10572
10508
  TitleComponent,
10573
- hideCloseButton ? null : /* @__PURE__ */ jsx241(ModalCloseButton, {})
10509
+ hideCloseButton ? null : /* @__PURE__ */ jsx240(ModalCloseButton, {})
10574
10510
  ] });
10575
10511
  };
10576
10512
 
10577
10513
  // src/components/Modal/ModalContent.tsx
10578
- import { forwardRef as forwardRef17 } from "react";
10579
- import styled46 from "styled-components";
10514
+ import { forwardRef as forwardRef16 } from "react";
10515
+ import styled45 from "styled-components";
10580
10516
  import { Content as DialogContent } from "@radix-ui/react-dialog";
10581
10517
 
10582
10518
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
10583
- import { useRef as useRef9, useEffect as useEffect8 } from "react";
10519
+ import { useRef as useRef9, useEffect as useEffect7 } from "react";
10584
10520
  import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10585
10521
  var useFocusRestore = () => {
10586
10522
  const previouslyFocusedRef = useRef9(null);
10587
- useEffect8(() => {
10523
+ useEffect7(() => {
10588
10524
  previouslyFocusedRef.current = document.activeElement;
10589
10525
  }, []);
10590
- useEffect8(() => {
10526
+ useEffect7(() => {
10591
10527
  return () => {
10592
10528
  if (isNotNil21(previouslyFocusedRef.current)) {
10593
10529
  setTimeout(() => {
@@ -10599,8 +10535,8 @@ var useFocusRestore = () => {
10599
10535
  };
10600
10536
 
10601
10537
  // src/components/Modal/ModalContent.tsx
10602
- import { jsx as jsx242 } from "react/jsx-runtime";
10603
- var StyledModalContent = styled46(DialogContent)`
10538
+ import { jsx as jsx241 } from "react/jsx-runtime";
10539
+ var StyledModalContent = styled45(DialogContent)`
10604
10540
  background-color: var(--wui-color-bg-app);
10605
10541
  box-sizing: border-box;
10606
10542
  display: flex;
@@ -10641,10 +10577,10 @@ var StyledModalContent = styled46(DialogContent)`
10641
10577
  }
10642
10578
  }
10643
10579
  `;
10644
- var ModalContent = forwardRef17(
10580
+ var ModalContent = forwardRef16(
10645
10581
  ({ fullHeight, width, children, ...props }, ref) => {
10646
10582
  useFocusRestore();
10647
- return /* @__PURE__ */ jsx242(
10583
+ return /* @__PURE__ */ jsx241(
10648
10584
  StyledModalContent,
10649
10585
  {
10650
10586
  ref,
@@ -10659,9 +10595,9 @@ var ModalContent = forwardRef17(
10659
10595
  );
10660
10596
 
10661
10597
  // src/private/components/Backdrop/Backdrop.tsx
10662
- import { forwardRef as forwardRef18 } from "react";
10663
- import styled47 from "styled-components";
10664
- import { jsx as jsx243 } from "react/jsx-runtime";
10598
+ import { forwardRef as forwardRef17 } from "react";
10599
+ import styled46 from "styled-components";
10600
+ import { jsx as jsx242 } from "react/jsx-runtime";
10665
10601
  var backdropAnimationDuration = 150;
10666
10602
  var alignVerticalMap = {
10667
10603
  stretch: "normal",
@@ -10674,7 +10610,7 @@ var alignHorizontalMap = {
10674
10610
  center: "center",
10675
10611
  right: "end"
10676
10612
  };
10677
- var BackdropComponent = styled47.div`
10613
+ var BackdropComponent = styled46.div`
10678
10614
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
10679
10615
  animation-name: backdropShow;
10680
10616
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -10697,8 +10633,8 @@ var BackdropComponent = styled47.div`
10697
10633
  }
10698
10634
  }
10699
10635
  `;
10700
- var Backdrop = forwardRef18(
10701
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx243(
10636
+ var Backdrop = forwardRef17(
10637
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx242(
10702
10638
  BackdropComponent,
10703
10639
  {
10704
10640
  ref,
@@ -10712,14 +10648,14 @@ var Backdrop = forwardRef18(
10712
10648
  Backdrop.displayName = "Backdrop";
10713
10649
 
10714
10650
  // src/components/Modal/Modal.tsx
10715
- import { jsx as jsx244, jsxs as jsxs31 } from "react/jsx-runtime";
10651
+ import { jsx as jsx243, jsxs as jsxs31 } from "react/jsx-runtime";
10716
10652
  var DEFAULT_MODAL_WIDTH = "532px";
10717
- var ModalBody = styled48.div`
10653
+ var ModalBody = styled47.div`
10718
10654
  flex-direction: column;
10719
10655
  display: flex;
10720
10656
  order: 2;
10721
10657
  `;
10722
- var Modal = forwardRef19(
10658
+ var Modal = forwardRef18(
10723
10659
  ({
10724
10660
  children,
10725
10661
  fullHeight = false,
@@ -10732,7 +10668,7 @@ var Modal = forwardRef19(
10732
10668
  width = DEFAULT_MODAL_WIDTH,
10733
10669
  ...props
10734
10670
  }, ref) => {
10735
- return /* @__PURE__ */ jsx244(
10671
+ return /* @__PURE__ */ jsx243(
10736
10672
  DialogRoot,
10737
10673
  {
10738
10674
  onOpenChange: (open2) => {
@@ -10742,7 +10678,7 @@ var Modal = forwardRef19(
10742
10678
  },
10743
10679
  open: isOpen,
10744
10680
  children: /* @__PURE__ */ jsxs31(DialogPortal, { children: [
10745
- /* @__PURE__ */ jsx244(Backdrop, {}),
10681
+ /* @__PURE__ */ jsx243(Backdrop, {}),
10746
10682
  /* @__PURE__ */ jsxs31(
10747
10683
  ModalContent,
10748
10684
  {
@@ -10759,8 +10695,8 @@ var Modal = forwardRef19(
10759
10695
  width,
10760
10696
  ...props,
10761
10697
  children: [
10762
- /* @__PURE__ */ jsx244(ModalBody, { children }),
10763
- /* @__PURE__ */ jsx244(
10698
+ /* @__PURE__ */ jsx243(ModalBody, { children }),
10699
+ /* @__PURE__ */ jsx243(
10764
10700
  ModalHeader,
10765
10701
  {
10766
10702
  hideCloseButton,
@@ -10780,7 +10716,7 @@ Modal.displayName = "Modal";
10780
10716
 
10781
10717
  // src/components/Popover/Popover.tsx
10782
10718
  import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
10783
- import styled49, { css as css29 } from "styled-components";
10719
+ import styled48, { css as css29 } from "styled-components";
10784
10720
 
10785
10721
  // src/private/helpers/getControls/getControlProps.tsx
10786
10722
  import { isNotNil as isNotNil23 } from "@wistia/type-guards";
@@ -10789,8 +10725,8 @@ var getControlProps = (isOpen, onOpenChange) => {
10789
10725
  };
10790
10726
 
10791
10727
  // src/components/Popover/Popover.tsx
10792
- import { jsx as jsx245, jsxs as jsxs32 } from "react/jsx-runtime";
10793
- var StyledContent2 = styled49(Content2)`
10728
+ import { jsx as jsx244, jsxs as jsxs32 } from "react/jsx-runtime";
10729
+ var StyledContent2 = styled48(Content2)`
10794
10730
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10795
10731
  ${({ $unstyled }) => !$unstyled && css29`
10796
10732
  border-radius: var(--wui-border-radius-02);
@@ -10826,8 +10762,8 @@ var Popover = ({
10826
10762
  "--wui-popover-max-height": maxHeight
10827
10763
  };
10828
10764
  return /* @__PURE__ */ jsxs32(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
10829
- /* @__PURE__ */ jsx245(Trigger2, { asChild: true, children: trigger }),
10830
- /* @__PURE__ */ jsx245(Portal, { children: /* @__PURE__ */ jsxs32(
10765
+ /* @__PURE__ */ jsx244(Trigger2, { asChild: true, children: trigger }),
10766
+ /* @__PURE__ */ jsx244(Portal, { children: /* @__PURE__ */ jsxs32(
10831
10767
  StyledContent2,
10832
10768
  {
10833
10769
  $colorScheme: colorScheme,
@@ -10836,16 +10772,16 @@ var Popover = ({
10836
10772
  $unstyled: unstyled,
10837
10773
  style,
10838
10774
  children: [
10839
- !hideCloseButton && /* @__PURE__ */ jsx245(Close, { asChild: true, children: /* @__PURE__ */ jsx245(
10775
+ !hideCloseButton && /* @__PURE__ */ jsx244(Close, { asChild: true, children: /* @__PURE__ */ jsx244(
10840
10776
  IconButton,
10841
10777
  {
10842
10778
  "data-wui-popover-close": true,
10843
10779
  label: "Close",
10844
10780
  variant: "ghost",
10845
- children: /* @__PURE__ */ jsx245(Icon, { type: "close" })
10781
+ children: /* @__PURE__ */ jsx244(Icon, { type: "close" })
10846
10782
  }
10847
10783
  ) }),
10848
- /* @__PURE__ */ jsx245("div", { children })
10784
+ /* @__PURE__ */ jsx244("div", { children })
10849
10785
  ]
10850
10786
  }
10851
10787
  ) })
@@ -10854,11 +10790,11 @@ var Popover = ({
10854
10790
  Popover.displayName = "Popover";
10855
10791
 
10856
10792
  // src/components/ProgressBar/ProgressBar.tsx
10857
- import styled50 from "styled-components";
10793
+ import styled49 from "styled-components";
10858
10794
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
10859
10795
  import { isNotNil as isNotNil24 } from "@wistia/type-guards";
10860
- import { jsx as jsx246, jsxs as jsxs33 } from "react/jsx-runtime";
10861
- var ProgressBarWrapper = styled50.div`
10796
+ import { jsx as jsx245, jsxs as jsxs33 } from "react/jsx-runtime";
10797
+ var ProgressBarWrapper = styled49.div`
10862
10798
  --progress-bar-height: 8px;
10863
10799
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
10864
10800
  --progress-bar-background-color: var(--wui-color-bg-surface-secondary);
@@ -10874,7 +10810,7 @@ var getTranslateValue = (progress, max) => {
10874
10810
  const progressPercentage = progress / max * 100;
10875
10811
  return `translateX(-${100 - progressPercentage}%)`;
10876
10812
  };
10877
- var ProgressBarLabel = styled50.div`
10813
+ var ProgressBarLabel = styled49.div`
10878
10814
  display: flex;
10879
10815
  line-height: var(--wui-typography-label-3-line-height);
10880
10816
  font-size: var(--wui-typography-label-3-size);
@@ -10882,7 +10818,7 @@ var ProgressBarLabel = styled50.div`
10882
10818
  color: var(--wui-color-text-secondary);
10883
10819
  flex-shrink: 0;
10884
10820
  `;
10885
- var StyledProgressIndicator = styled50(ProgressIndicator)`
10821
+ var StyledProgressIndicator = styled49(ProgressIndicator)`
10886
10822
  background-color: var(--progress-bar-indicator-color);
10887
10823
  width: 100%;
10888
10824
  height: 100%;
@@ -10891,7 +10827,7 @@ var StyledProgressIndicator = styled50(ProgressIndicator)`
10891
10827
  transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
10892
10828
  transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
10893
10829
  `;
10894
- var StyledProgressBar = styled50(ProgressRoot)`
10830
+ var StyledProgressBar = styled49(ProgressRoot)`
10895
10831
  position: relative;
10896
10832
  overflow: hidden;
10897
10833
  background: var(--progress-bar-background-color);
@@ -10911,14 +10847,14 @@ var ProgressBar = ({
10911
10847
  ...props
10912
10848
  }) => {
10913
10849
  return /* @__PURE__ */ jsxs33(ProgressBarWrapper, { children: [
10914
- isNotNil24(labelLeft) ? /* @__PURE__ */ jsx246(ProgressBarLabel, { children: labelLeft }) : null,
10915
- /* @__PURE__ */ jsx246(
10850
+ isNotNil24(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
10851
+ /* @__PURE__ */ jsx245(
10916
10852
  StyledProgressBar,
10917
10853
  {
10918
10854
  max,
10919
10855
  value: progress,
10920
10856
  ...props,
10921
- children: /* @__PURE__ */ jsx246(
10857
+ children: /* @__PURE__ */ jsx245(
10922
10858
  StyledProgressIndicator,
10923
10859
  {
10924
10860
  $max: max,
@@ -10927,17 +10863,17 @@ var ProgressBar = ({
10927
10863
  )
10928
10864
  }
10929
10865
  ),
10930
- isNotNil24(labelRight) ? /* @__PURE__ */ jsx246(ProgressBarLabel, { children: labelRight }) : null
10866
+ isNotNil24(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
10931
10867
  ] });
10932
10868
  };
10933
10869
  ProgressBar.displayName = "ProgressBar";
10934
10870
 
10935
10871
  // src/components/Radio/Radio.tsx
10936
- import { forwardRef as forwardRef20, useId as useId3 } from "react";
10937
- import styled51, { css as css30 } from "styled-components";
10872
+ import { forwardRef as forwardRef19, useId as useId3 } from "react";
10873
+ import styled50, { css as css30 } from "styled-components";
10938
10874
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
10939
- import { jsx as jsx247, jsxs as jsxs34 } from "react/jsx-runtime";
10940
- var RadioIcon = () => /* @__PURE__ */ jsx247(
10875
+ import { jsx as jsx246, jsxs as jsxs34 } from "react/jsx-runtime";
10876
+ var RadioIcon = () => /* @__PURE__ */ jsx246(
10941
10877
  "svg",
10942
10878
  {
10943
10879
  fill: "inherit",
@@ -10945,7 +10881,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx247(
10945
10881
  viewBox: "0 0 1 1",
10946
10882
  width: "1",
10947
10883
  xmlns: "http://www.w3.org/2000/svg",
10948
- children: /* @__PURE__ */ jsx247(
10884
+ children: /* @__PURE__ */ jsx246(
10949
10885
  "circle",
10950
10886
  {
10951
10887
  cx: "0.5",
@@ -10994,14 +10930,14 @@ var getSizeCss2 = (size) => {
10994
10930
  if (size === "lg") return sizeLarge2;
10995
10931
  return sizeMedium2;
10996
10932
  };
10997
- var StyledRadioWrapper = styled51.div`
10933
+ var StyledRadioWrapper = styled50.div`
10998
10934
  display: flex;
10999
10935
  margin: 0;
11000
10936
 
11001
10937
  /* TODO this solves a problem but potentially causes and a11y issue */
11002
10938
  user-select: none;
11003
10939
  `;
11004
- var StyledRadioInput = styled51.div`
10940
+ var StyledRadioInput = styled50.div`
11005
10941
  ${({ $size }) => getSizeCss2($size)}
11006
10942
  line-height: 0;
11007
10943
  margin: 0;
@@ -11023,7 +10959,7 @@ var StyledRadioInput = styled51.div`
11023
10959
  }
11024
10960
  }
11025
10961
  `;
11026
- var StyledHiddenRadioInput = styled51.input`
10962
+ var StyledHiddenRadioInput = styled50.input`
11027
10963
  ${visuallyHiddenStyle}
11028
10964
 
11029
10965
  /* toggles display of faux-input border-color */
@@ -11036,7 +10972,7 @@ var StyledHiddenRadioInput = styled51.input`
11036
10972
  display: block;
11037
10973
  }
11038
10974
  `;
11039
- var Radio = forwardRef20(
10975
+ var Radio = forwardRef19(
11040
10976
  ({
11041
10977
  checked,
11042
10978
  disabled = false,
@@ -11059,7 +10995,7 @@ var Radio = forwardRef20(
11059
10995
  $disabled: disabled,
11060
10996
  "aria-invalid": props["aria-invalid"],
11061
10997
  children: [
11062
- /* @__PURE__ */ jsx247(
10998
+ /* @__PURE__ */ jsx246(
11063
10999
  StyledHiddenRadioInput,
11064
11000
  {
11065
11001
  ...props,
@@ -11074,16 +11010,16 @@ var Radio = forwardRef20(
11074
11010
  value
11075
11011
  }
11076
11012
  ),
11077
- /* @__PURE__ */ jsx247(
11013
+ /* @__PURE__ */ jsx246(
11078
11014
  FormControlLabel,
11079
11015
  {
11080
- controlSlot: /* @__PURE__ */ jsx247(
11016
+ controlSlot: /* @__PURE__ */ jsx246(
11081
11017
  StyledRadioInput,
11082
11018
  {
11083
11019
  $disabled: disabled,
11084
11020
  $size: size,
11085
11021
  "data-wui-faux-input": "true",
11086
- children: /* @__PURE__ */ jsx247(RadioIcon, {})
11022
+ children: /* @__PURE__ */ jsx246(RadioIcon, {})
11087
11023
  }
11088
11024
  ),
11089
11025
  description,
@@ -11101,19 +11037,19 @@ var Radio = forwardRef20(
11101
11037
  Radio.displayName = "Radio";
11102
11038
 
11103
11039
  // src/components/SegmentedControl/SegmentedControl.tsx
11104
- import { forwardRef as forwardRef21 } from "react";
11105
- import styled53, { css as css31 } from "styled-components";
11040
+ import { forwardRef as forwardRef20 } from "react";
11041
+ import styled52, { css as css31 } from "styled-components";
11106
11042
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11107
11043
  import { isNil as isNil14 } from "@wistia/type-guards";
11108
11044
 
11109
11045
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11110
- import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState11 } from "react";
11111
- import { jsx as jsx248 } from "react/jsx-runtime";
11046
+ import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState10 } from "react";
11047
+ import { jsx as jsx247 } from "react/jsx-runtime";
11112
11048
  var SelectedItemStyleContext = createContext6(null);
11113
11049
  var SelectedItemStyleProvider = ({
11114
11050
  children
11115
11051
  }) => {
11116
- const [selectedItemMeasurements, setSelectedItemMeasurements] = useState11(null);
11052
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = useState10(null);
11117
11053
  const selectedItemIndicatorStyle = useMemo8(
11118
11054
  () => selectedItemMeasurements != null ? {
11119
11055
  height: `${selectedItemMeasurements.offsetHeight}px`,
@@ -11131,7 +11067,7 @@ var SelectedItemStyleProvider = ({
11131
11067
  }),
11132
11068
  [selectedItemIndicatorStyle]
11133
11069
  );
11134
- return /* @__PURE__ */ jsx248(SelectedItemStyleContext.Provider, { value: contextValue, children });
11070
+ return /* @__PURE__ */ jsx247(SelectedItemStyleContext.Provider, { value: contextValue, children });
11135
11071
  };
11136
11072
  var useSelectedItemStyle = () => {
11137
11073
  const context = useContext5(SelectedItemStyleContext);
@@ -11142,7 +11078,7 @@ var useSelectedItemStyle = () => {
11142
11078
  };
11143
11079
 
11144
11080
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11145
- import styled52 from "styled-components";
11081
+ import styled51 from "styled-components";
11146
11082
 
11147
11083
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11148
11084
  import { createContext as createContext7, useContext as useContext6 } from "react";
@@ -11157,8 +11093,8 @@ var useSegmentedControlValue = () => {
11157
11093
  };
11158
11094
 
11159
11095
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
11160
- import { jsx as jsx249 } from "react/jsx-runtime";
11161
- var SelectedItemIndicatorDiv = styled52.div`
11096
+ import { jsx as jsx248 } from "react/jsx-runtime";
11097
+ var SelectedItemIndicatorDiv = styled51.div`
11162
11098
  background-color: var(--wui-color-bg-fill-white);
11163
11099
  border-radius: var(--wui-border-radius-rounded);
11164
11100
  left: 0;
@@ -11176,11 +11112,11 @@ var SelectedItemIndicator = () => {
11176
11112
  if (!selectedValue) {
11177
11113
  return null;
11178
11114
  }
11179
- return /* @__PURE__ */ jsx249(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11115
+ return /* @__PURE__ */ jsx248(SelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11180
11116
  };
11181
11117
 
11182
11118
  // src/components/SegmentedControl/SegmentedControl.tsx
11183
- import { jsx as jsx250, jsxs as jsxs35 } from "react/jsx-runtime";
11119
+ import { jsx as jsx249, jsxs as jsxs35 } from "react/jsx-runtime";
11184
11120
  var segmentedControlStyles = css31`
11185
11121
  display: inline-flex;
11186
11122
  background-color: var(--wui-color-bg-surface-secondary);
@@ -11192,10 +11128,10 @@ var segmentedControlStyles = css31`
11192
11128
  position: relative;
11193
11129
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11194
11130
  `;
11195
- var StyledSegmentedControl = styled53(ToggleGroupRoot)`
11131
+ var StyledSegmentedControl = styled52(ToggleGroupRoot)`
11196
11132
  ${segmentedControlStyles}
11197
11133
  `;
11198
- var SegmentedControl = forwardRef21(
11134
+ var SegmentedControl = forwardRef20(
11199
11135
  ({
11200
11136
  children,
11201
11137
  disabled = false,
@@ -11207,7 +11143,7 @@ var SegmentedControl = forwardRef21(
11207
11143
  if (isNil14(children)) {
11208
11144
  return null;
11209
11145
  }
11210
- return /* @__PURE__ */ jsx250(
11146
+ return /* @__PURE__ */ jsx249(
11211
11147
  StyledSegmentedControl,
11212
11148
  {
11213
11149
  ref,
@@ -11219,8 +11155,8 @@ var SegmentedControl = forwardRef21(
11219
11155
  type: "single",
11220
11156
  value: selectedValue,
11221
11157
  ...props,
11222
- children: /* @__PURE__ */ jsx250(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs35(SelectedItemStyleProvider, { children: [
11223
- /* @__PURE__ */ jsx250(SelectedItemIndicator, {}),
11158
+ children: /* @__PURE__ */ jsx249(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs35(SelectedItemStyleProvider, { children: [
11159
+ /* @__PURE__ */ jsx249(SelectedItemIndicator, {}),
11224
11160
  children
11225
11161
  ] }) })
11226
11162
  }
@@ -11230,8 +11166,8 @@ var SegmentedControl = forwardRef21(
11230
11166
  SegmentedControl.displayName = "SegmentedControl";
11231
11167
 
11232
11168
  // src/components/SegmentedControl/SegmentedControlItem.tsx
11233
- import { forwardRef as forwardRef22, useEffect as useEffect9, useRef as useRef10 } from "react";
11234
- import styled54, { css as css32 } from "styled-components";
11169
+ import { forwardRef as forwardRef21, useEffect as useEffect8, useRef as useRef10 } from "react";
11170
+ import styled53, { css as css32 } from "styled-components";
11235
11171
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
11236
11172
  import { isNotNil as isNotNil25 } from "@wistia/type-guards";
11237
11173
  import { jsxs as jsxs36 } from "react/jsx-runtime";
@@ -11295,10 +11231,10 @@ var segmentedControlItemStyles = css32`
11295
11231
  }
11296
11232
  }
11297
11233
  `;
11298
- var StyledSegmentedControlItem = styled54(ToggleGroupItem)`
11234
+ var StyledSegmentedControlItem = styled53(ToggleGroupItem)`
11299
11235
  ${segmentedControlItemStyles}
11300
11236
  `;
11301
- var SegmentedControlItem = forwardRef22(
11237
+ var SegmentedControlItem = forwardRef21(
11302
11238
  ({ disabled, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
11303
11239
  const selectedValue = useSegmentedControlValue();
11304
11240
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
@@ -11311,7 +11247,7 @@ var SegmentedControlItem = forwardRef22(
11311
11247
  event.preventDefault();
11312
11248
  }
11313
11249
  };
11314
- useEffect9(() => {
11250
+ useEffect8(() => {
11315
11251
  const buttonElem = buttonRef.current;
11316
11252
  if (!buttonElem) {
11317
11253
  return void 0;
@@ -11366,10 +11302,10 @@ import {
11366
11302
  Value,
11367
11303
  ScrollDownButton
11368
11304
  } from "@radix-ui/react-select";
11369
- import { forwardRef as forwardRef23 } from "react";
11370
- import styled55 from "styled-components";
11371
- import { jsx as jsx251, jsxs as jsxs37 } from "react/jsx-runtime";
11372
- var StyledTrigger = styled55(Trigger3)`
11305
+ import { forwardRef as forwardRef22 } from "react";
11306
+ import styled54 from "styled-components";
11307
+ import { jsx as jsx250, jsxs as jsxs37 } from "react/jsx-runtime";
11308
+ var StyledTrigger = styled54(Trigger3)`
11373
11309
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11374
11310
  ${inputCssVariables};
11375
11311
  padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
@@ -11413,7 +11349,7 @@ var StyledTrigger = styled55(Trigger3)`
11413
11349
  color: var(--wui-input-placeholder);
11414
11350
  }
11415
11351
  `;
11416
- var StyledContent3 = styled55(Content3)`
11352
+ var StyledContent3 = styled54(Content3)`
11417
11353
  --wui-select-content-border: var(--wui-color-border);
11418
11354
  --wui-select-content-bg: var(--wui-color-bg-surface);
11419
11355
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -11431,7 +11367,7 @@ var StyledContent3 = styled55(Content3)`
11431
11367
  max-height: var(--radix-select-content-available-height);
11432
11368
  z-index: var(--wui-zindex-select);
11433
11369
  `;
11434
- var Select = forwardRef23(
11370
+ var Select = forwardRef22(
11435
11371
  ({
11436
11372
  colorScheme = "inherit",
11437
11373
  children,
@@ -11455,8 +11391,8 @@ var Select = forwardRef23(
11455
11391
  $fullWidth: responsiveFullWidth,
11456
11392
  ...props,
11457
11393
  children: [
11458
- /* @__PURE__ */ jsx251(Value, { placeholder }),
11459
- /* @__PURE__ */ jsx251(
11394
+ /* @__PURE__ */ jsx250(Value, { placeholder }),
11395
+ /* @__PURE__ */ jsx250(
11460
11396
  Icon,
11461
11397
  {
11462
11398
  size: "md",
@@ -11466,10 +11402,10 @@ var Select = forwardRef23(
11466
11402
  ]
11467
11403
  }
11468
11404
  ),
11469
- /* @__PURE__ */ jsx251(Portal2, { children: /* @__PURE__ */ jsxs37(StyledContent3, { position: "popper", children: [
11470
- /* @__PURE__ */ jsx251(ScrollUpButton, { children: /* @__PURE__ */ jsx251(Icon, { type: "caret-up" }) }),
11471
- /* @__PURE__ */ jsx251(Viewport, { children }),
11472
- /* @__PURE__ */ jsx251(ScrollDownButton, { children: /* @__PURE__ */ jsx251(Icon, { type: "caret-down" }) })
11405
+ /* @__PURE__ */ jsx250(Portal2, { children: /* @__PURE__ */ jsxs37(StyledContent3, { position: "popper", children: [
11406
+ /* @__PURE__ */ jsx250(ScrollUpButton, { children: /* @__PURE__ */ jsx250(Icon, { type: "caret-up" }) }),
11407
+ /* @__PURE__ */ jsx250(Viewport, { children }),
11408
+ /* @__PURE__ */ jsx250(ScrollDownButton, { children: /* @__PURE__ */ jsx250(Icon, { type: "caret-down" }) })
11473
11409
  ] }) })
11474
11410
  ]
11475
11411
  }
@@ -11480,11 +11416,11 @@ Select.displayName = "Select";
11480
11416
 
11481
11417
  // src/components/Select/SelectOption.tsx
11482
11418
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11483
- import { forwardRef as forwardRef24 } from "react";
11484
- import styled56 from "styled-components";
11419
+ import { forwardRef as forwardRef23 } from "react";
11420
+ import styled55 from "styled-components";
11485
11421
  import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11486
- import { jsx as jsx252, jsxs as jsxs38 } from "react/jsx-runtime";
11487
- var StyledItem = styled56(Item)`
11422
+ import { jsx as jsx251, jsxs as jsxs38 } from "react/jsx-runtime";
11423
+ var StyledItem = styled55(Item)`
11488
11424
  ${variantStyleMap2.body3};
11489
11425
  display: flex;
11490
11426
  padding: var(--wui-select-option-padding);
@@ -11508,10 +11444,10 @@ var StyledItem = styled56(Item)`
11508
11444
  background-color: transparent;
11509
11445
  }
11510
11446
  `;
11511
- var StyledIconContainer = styled56.span`
11447
+ var StyledIconContainer = styled55.span`
11512
11448
  width: 12px;
11513
11449
  `;
11514
- var SelectOption = forwardRef24(
11450
+ var SelectOption = forwardRef23(
11515
11451
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11516
11452
  return /* @__PURE__ */ jsxs38(
11517
11453
  StyledItem,
@@ -11519,7 +11455,7 @@ var SelectOption = forwardRef24(
11519
11455
  ...props,
11520
11456
  ref: forwardedRef,
11521
11457
  children: [
11522
- /* @__PURE__ */ jsx252(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ jsx252(ItemIndicator, { children: /* @__PURE__ */ jsx252(
11458
+ /* @__PURE__ */ jsx251(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ jsx251(ItemIndicator, { children: /* @__PURE__ */ jsx251(
11523
11459
  Icon,
11524
11460
  {
11525
11461
  size: "sm",
@@ -11528,8 +11464,8 @@ var SelectOption = forwardRef24(
11528
11464
  ) }) }),
11529
11465
  isNotNil26(selectedDisplayValue) ? /* @__PURE__ */ jsxs38("div", { children: [
11530
11466
  children,
11531
- /* @__PURE__ */ jsx252("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx252(ItemText, { children: selectedDisplayValue }) })
11532
- ] }) : /* @__PURE__ */ jsx252(ItemText, { children })
11467
+ /* @__PURE__ */ jsx251("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx251(ItemText, { children: selectedDisplayValue }) })
11468
+ ] }) : /* @__PURE__ */ jsx251(ItemText, { children })
11533
11469
  ]
11534
11470
  }
11535
11471
  );
@@ -11539,14 +11475,14 @@ SelectOption.displayName = "Option";
11539
11475
 
11540
11476
  // src/components/Select/SelectOptionGroup.tsx
11541
11477
  import { Group, Label as Label2 } from "@radix-ui/react-select";
11542
- import styled57 from "styled-components";
11543
- import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
11544
- var StyledLabel4 = styled57(Label2)`
11478
+ import styled56 from "styled-components";
11479
+ import { jsx as jsx252, jsxs as jsxs39 } from "react/jsx-runtime";
11480
+ var StyledLabel4 = styled56(Label2)`
11545
11481
  padding: var(--wui-select-option-padding);
11546
11482
  `;
11547
11483
  var SelectOptionGroup = ({ children, label, ...props }) => {
11548
11484
  return /* @__PURE__ */ jsxs39(Group, { ...props, children: [
11549
- /* @__PURE__ */ jsx253(StyledLabel4, { children: /* @__PURE__ */ jsx253(
11485
+ /* @__PURE__ */ jsx252(StyledLabel4, { children: /* @__PURE__ */ jsx252(
11550
11486
  Text,
11551
11487
  {
11552
11488
  prominence: "secondary",
@@ -11559,10 +11495,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11559
11495
  };
11560
11496
 
11561
11497
  // src/components/Switch/Switch.tsx
11562
- import { forwardRef as forwardRef25, useId as useId4 } from "react";
11563
- import styled58, { css as css33 } from "styled-components";
11498
+ import { forwardRef as forwardRef24, useId as useId4 } from "react";
11499
+ import styled57, { css as css33 } from "styled-components";
11564
11500
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11565
- import { jsx as jsx254, jsxs as jsxs40 } from "react/jsx-runtime";
11501
+ import { jsx as jsx253, jsxs as jsxs40 } from "react/jsx-runtime";
11566
11502
  var sizeSmall3 = css33`
11567
11503
  --wui-size-small-width: 24px;
11568
11504
  --wui-size-small-height: 14px;
@@ -11613,14 +11549,14 @@ var getSizeCss3 = (size) => {
11613
11549
  if (size === "lg") return sizeLarge3;
11614
11550
  return sizeMedium3;
11615
11551
  };
11616
- var StyledSwitchWrapper = styled58.div`
11552
+ var StyledSwitchWrapper = styled57.div`
11617
11553
  display: flex;
11618
11554
  margin: 0;
11619
11555
 
11620
11556
  /* TODO this solves a problem but potentially causes and a11y issue */
11621
11557
  user-select: none;
11622
11558
  `;
11623
- var StyledSwitchInput = styled58.div`
11559
+ var StyledSwitchInput = styled57.div`
11624
11560
  ${({ $size }) => getSizeCss3($size)}
11625
11561
  line-height: 0;
11626
11562
  margin: 0;
@@ -11648,7 +11584,7 @@ var StyledSwitchInput = styled58.div`
11648
11584
  transition: all 0.2s ease-in-out;
11649
11585
  }
11650
11586
  `;
11651
- var StyledHiddenSwitchInput = styled58.input`
11587
+ var StyledHiddenSwitchInput = styled57.input`
11652
11588
  ${visuallyHiddenStyle}
11653
11589
 
11654
11590
  /* toggles display of faux-input background-color and toggle position */
@@ -11664,7 +11600,7 @@ var StyledHiddenSwitchInput = styled58.input`
11664
11600
  }
11665
11601
  }
11666
11602
  `;
11667
- var Switch = forwardRef25(
11603
+ var Switch = forwardRef24(
11668
11604
  ({
11669
11605
  checked,
11670
11606
  disabled = false,
@@ -11682,7 +11618,7 @@ var Switch = forwardRef25(
11682
11618
  const generatedId = useId4();
11683
11619
  const computedId = isNonEmptyString4(id) ? id : `wistia-ui-switch-${generatedId}`;
11684
11620
  return /* @__PURE__ */ jsxs40(StyledSwitchWrapper, { $disabled: disabled, children: [
11685
- /* @__PURE__ */ jsx254(
11621
+ /* @__PURE__ */ jsx253(
11686
11622
  StyledHiddenSwitchInput,
11687
11623
  {
11688
11624
  ...props,
@@ -11697,10 +11633,10 @@ var Switch = forwardRef25(
11697
11633
  value
11698
11634
  }
11699
11635
  ),
11700
- /* @__PURE__ */ jsx254(
11636
+ /* @__PURE__ */ jsx253(
11701
11637
  FormControlLabel,
11702
11638
  {
11703
- controlSlot: /* @__PURE__ */ jsx254(
11639
+ controlSlot: /* @__PURE__ */ jsx253(
11704
11640
  StyledSwitchInput,
11705
11641
  {
11706
11642
  $disabled: disabled,
@@ -11722,9 +11658,9 @@ var Switch = forwardRef25(
11722
11658
  Switch.displayName = "Switch";
11723
11659
 
11724
11660
  // src/components/Table/Table.tsx
11725
- import styled59, { css as css34 } from "styled-components";
11726
- import { jsx as jsx255 } from "react/jsx-runtime";
11727
- var StyledTable = styled59.table`
11661
+ import styled58, { css as css34 } from "styled-components";
11662
+ import { jsx as jsx254 } from "react/jsx-runtime";
11663
+ var StyledTable = styled58.table`
11728
11664
  width: 100%;
11729
11665
  border-collapse: collapse;
11730
11666
 
@@ -11746,7 +11682,7 @@ var Table = ({
11746
11682
  divided = false,
11747
11683
  ...props
11748
11684
  }) => {
11749
- return /* @__PURE__ */ jsx255(
11685
+ return /* @__PURE__ */ jsx254(
11750
11686
  StyledTable,
11751
11687
  {
11752
11688
  $divided: divided,
@@ -11758,35 +11694,35 @@ var Table = ({
11758
11694
  };
11759
11695
 
11760
11696
  // src/components/Table/TableBody.tsx
11761
- import styled60 from "styled-components";
11697
+ import styled59 from "styled-components";
11762
11698
 
11763
11699
  // src/components/Table/TableSectionContext.ts
11764
11700
  import { createContext as createContext8 } from "react";
11765
11701
  var TableSectionContext = createContext8(null);
11766
11702
 
11767
11703
  // src/components/Table/TableBody.tsx
11768
- import { jsx as jsx256 } from "react/jsx-runtime";
11769
- var StyledTbody = styled60.tbody``;
11704
+ import { jsx as jsx255 } from "react/jsx-runtime";
11705
+ var StyledTbody = styled59.tbody``;
11770
11706
  var TableBody = ({ children, ...props }) => {
11771
- return /* @__PURE__ */ jsx256(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx256(StyledTbody, { ...props, children }) });
11707
+ return /* @__PURE__ */ jsx255(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx255(StyledTbody, { ...props, children }) });
11772
11708
  };
11773
11709
 
11774
11710
  // src/components/Table/TableCell.tsx
11775
11711
  import { useContext as useContext7 } from "react";
11776
- import styled61, { css as css35 } from "styled-components";
11777
- import { jsx as jsx257 } from "react/jsx-runtime";
11712
+ import styled60, { css as css35 } from "styled-components";
11713
+ import { jsx as jsx256 } from "react/jsx-runtime";
11778
11714
  var sharedStyles = css35`
11779
11715
  color: var(--wui-color-text);
11780
11716
  padding: var(--wui-space-02);
11781
11717
  text-align: left;
11782
11718
  `;
11783
- var StyledTh = styled61.th`
11719
+ var StyledTh = styled60.th`
11784
11720
  ${sharedStyles}
11785
11721
  font-size: var(--wui-typography-body-4-size);
11786
11722
  font-weight: var(--wui-typography-weight-label-bold);
11787
11723
  line-height: var(--wui-typography-body-4-line-height);
11788
11724
  `;
11789
- var StyledTd = styled61.td`
11725
+ var StyledTd = styled60.td`
11790
11726
  ${sharedStyles}
11791
11727
  font-size: var(--wui-typography-body-2-size);
11792
11728
  font-weight: var(--wui-typography-body-2-weight);
@@ -11795,51 +11731,51 @@ var StyledTd = styled61.td`
11795
11731
  var TableCell = ({ children, ...props }) => {
11796
11732
  const section = useContext7(TableSectionContext);
11797
11733
  if (section === "head") {
11798
- return /* @__PURE__ */ jsx257(StyledTh, { ...props, children });
11734
+ return /* @__PURE__ */ jsx256(StyledTh, { ...props, children });
11799
11735
  }
11800
- return /* @__PURE__ */ jsx257(StyledTd, { ...props, children });
11736
+ return /* @__PURE__ */ jsx256(StyledTd, { ...props, children });
11801
11737
  };
11802
11738
 
11803
11739
  // src/components/Table/TableFooter.tsx
11804
- import styled62 from "styled-components";
11805
- import { jsx as jsx258 } from "react/jsx-runtime";
11806
- var StyledTfoot = styled62.tfoot``;
11740
+ import styled61 from "styled-components";
11741
+ import { jsx as jsx257 } from "react/jsx-runtime";
11742
+ var StyledTfoot = styled61.tfoot``;
11807
11743
  var TableFooter = ({ children, ...props }) => {
11808
- return /* @__PURE__ */ jsx258(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx258(StyledTfoot, { ...props, children }) });
11744
+ return /* @__PURE__ */ jsx257(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx257(StyledTfoot, { ...props, children }) });
11809
11745
  };
11810
11746
 
11811
11747
  // src/components/Table/TableHead.tsx
11812
- import styled63 from "styled-components";
11813
- import { jsx as jsx259 } from "react/jsx-runtime";
11814
- var StyledThead = styled63.thead``;
11748
+ import styled62 from "styled-components";
11749
+ import { jsx as jsx258 } from "react/jsx-runtime";
11750
+ var StyledThead = styled62.thead``;
11815
11751
  var TableHead = ({ children, ...props }) => {
11816
- return /* @__PURE__ */ jsx259(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx259(StyledThead, { ...props, children }) });
11752
+ return /* @__PURE__ */ jsx258(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx258(StyledThead, { ...props, children }) });
11817
11753
  };
11818
11754
 
11819
11755
  // src/components/Table/TableRow.tsx
11820
- import styled64 from "styled-components";
11821
- import { jsx as jsx260 } from "react/jsx-runtime";
11822
- var StyledTr = styled64.tr``;
11756
+ import styled63 from "styled-components";
11757
+ import { jsx as jsx259 } from "react/jsx-runtime";
11758
+ var StyledTr = styled63.tr``;
11823
11759
  var TableRow = ({ children, ...props }) => {
11824
- return /* @__PURE__ */ jsx260(StyledTr, { ...props, children });
11760
+ return /* @__PURE__ */ jsx259(StyledTr, { ...props, children });
11825
11761
  };
11826
11762
 
11827
11763
  // src/components/Tabs/Tabs.tsx
11828
- import { forwardRef as forwardRef27, useState as useState12 } from "react";
11764
+ import { forwardRef as forwardRef26, useState as useState11 } from "react";
11829
11765
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11830
11766
  import { isNotNil as isNotNil28, isNil as isNil15 } from "@wistia/type-guards";
11831
- import styled69 from "styled-components";
11767
+ import styled68 from "styled-components";
11832
11768
 
11833
11769
  // src/components/Tabs/TabPanel.tsx
11834
- import styled65 from "styled-components";
11770
+ import styled64 from "styled-components";
11835
11771
  import { Content as TabsContent } from "@radix-ui/react-tabs";
11836
- import { jsx as jsx261 } from "react/jsx-runtime";
11837
- var StyledTabPanel = styled65(TabsContent)`
11772
+ import { jsx as jsx260 } from "react/jsx-runtime";
11773
+ var StyledTabPanel = styled64(TabsContent)`
11838
11774
  display: flex;
11839
11775
  flex-direction: column;
11840
11776
  `;
11841
11777
  var TabPanel = ({ children, value, ...props }) => {
11842
- return /* @__PURE__ */ jsx261(
11778
+ return /* @__PURE__ */ jsx260(
11843
11779
  StyledTabPanel,
11844
11780
  {
11845
11781
  value,
@@ -11851,10 +11787,10 @@ var TabPanel = ({ children, value, ...props }) => {
11851
11787
  TabPanel.displayName = "TabPanel";
11852
11788
 
11853
11789
  // src/components/Tabs/TabList.tsx
11854
- import styled66 from "styled-components";
11790
+ import styled65 from "styled-components";
11855
11791
  import { List as RadixTabList } from "@radix-ui/react-tabs";
11856
- import { jsx as jsx262 } from "react/jsx-runtime";
11857
- var StyledTabList = styled66(RadixTabList)`
11792
+ import { jsx as jsx261 } from "react/jsx-runtime";
11793
+ var StyledTabList = styled65(RadixTabList)`
11858
11794
  ${segmentedControlStyles}
11859
11795
 
11860
11796
  margin-bottom: var(--wui-space-04);
@@ -11867,7 +11803,7 @@ var TabList = ({
11867
11803
  ariaLabel,
11868
11804
  ...props
11869
11805
  }) => {
11870
- return /* @__PURE__ */ jsx262(
11806
+ return /* @__PURE__ */ jsx261(
11871
11807
  StyledTabList,
11872
11808
  {
11873
11809
  $fullWidth: fullWidth,
@@ -11880,8 +11816,8 @@ var TabList = ({
11880
11816
  TabList.displayName = "TabList";
11881
11817
 
11882
11818
  // src/components/Tabs/TabItem.tsx
11883
- import { forwardRef as forwardRef26, useEffect as useEffect10, useRef as useRef11 } from "react";
11884
- import styled67 from "styled-components";
11819
+ import { forwardRef as forwardRef25, useEffect as useEffect9, useRef as useRef11 } from "react";
11820
+ import styled66 from "styled-components";
11885
11821
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
11886
11822
  import { isNotNil as isNotNil27 } from "@wistia/type-guards";
11887
11823
 
@@ -11899,20 +11835,20 @@ var useTabsValue = () => {
11899
11835
 
11900
11836
  // src/components/Tabs/TabItem.tsx
11901
11837
  import { jsxs as jsxs41 } from "react/jsx-runtime";
11902
- var StyledTabItem = styled67(RadixTab)`
11838
+ var StyledTabItem = styled66(RadixTab)`
11903
11839
  ${segmentedControlItemStyles}
11904
11840
 
11905
11841
  &:focus-visible {
11906
11842
  outline: none;
11907
11843
  }
11908
11844
  `;
11909
- var TabItem = forwardRef26(
11845
+ var TabItem = forwardRef25(
11910
11846
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
11911
11847
  const selectedValue = useTabsValue();
11912
11848
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
11913
11849
  const buttonRef = useRef11(null);
11914
11850
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
11915
- useEffect10(() => {
11851
+ useEffect9(() => {
11916
11852
  const buttonElem = buttonRef.current;
11917
11853
  if (!buttonElem) {
11918
11854
  return void 0;
@@ -11978,9 +11914,9 @@ var extractTabItems = (children) => {
11978
11914
  };
11979
11915
 
11980
11916
  // src/components/Tabs/SelectedItemIndicator.tsx
11981
- import styled68 from "styled-components";
11982
- import { jsx as jsx263 } from "react/jsx-runtime";
11983
- var TabsSelectedItemIndicatorDiv = styled68(SelectedItemIndicatorDiv)`
11917
+ import styled67 from "styled-components";
11918
+ import { jsx as jsx262 } from "react/jsx-runtime";
11919
+ var TabsSelectedItemIndicatorDiv = styled67(SelectedItemIndicatorDiv)`
11984
11920
  &:has(~ ${StyledTabItem}:focus-visible) {
11985
11921
  outline: 2px solid var(--wui-color-focus-ring);
11986
11922
  }
@@ -11991,28 +11927,28 @@ var SelectedItemIndicator2 = () => {
11991
11927
  if (selectedValue == null) {
11992
11928
  return null;
11993
11929
  }
11994
- return /* @__PURE__ */ jsx263(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11930
+ return /* @__PURE__ */ jsx262(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
11995
11931
  };
11996
11932
 
11997
11933
  // src/components/Tabs/Tabs.tsx
11998
- import { jsx as jsx264, jsxs as jsxs42 } from "react/jsx-runtime";
11999
- var TabsContainer = styled69.div`
11934
+ import { jsx as jsx263, jsxs as jsxs42 } from "react/jsx-runtime";
11935
+ var TabsContainer = styled68.div`
12000
11936
  display: flex;
12001
11937
  flex-direction: column;
12002
11938
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12003
11939
  overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12004
11940
  `;
12005
- var StickyTabContent = styled69.div`
11941
+ var StickyTabContent = styled68.div`
12006
11942
  flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
12007
11943
  overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
12008
11944
  overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12009
11945
  `;
12010
- var StyledTabsRoot = styled69(TabsRoot)`
11946
+ var StyledTabsRoot = styled68(TabsRoot)`
12011
11947
  display: flex;
12012
11948
  flex-direction: column;
12013
11949
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12014
11950
  `;
12015
- var Tabs = forwardRef27(
11951
+ var Tabs = forwardRef26(
12016
11952
  ({
12017
11953
  children,
12018
11954
  fullWidth = true,
@@ -12024,13 +11960,13 @@ var Tabs = forwardRef27(
12024
11960
  ...props
12025
11961
  }, ref) => {
12026
11962
  const tabItems = extractTabItems(children);
12027
- const [internalSelectedValue, setInternalSelectedValue] = useState12(defaultSelectedValue);
11963
+ const [internalSelectedValue, setInternalSelectedValue] = useState11(defaultSelectedValue);
12028
11964
  const modeProps = defaultSelectedValue !== void 0 ? {
12029
11965
  defaultValue: defaultSelectedValue,
12030
11966
  onValueChange: setInternalSelectedValue
12031
11967
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
12032
11968
  const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
12033
- return /* @__PURE__ */ jsx264(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx264(
11969
+ return /* @__PURE__ */ jsx263(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx263(
12034
11970
  StyledTabsRoot,
12035
11971
  {
12036
11972
  ref,
@@ -12038,14 +11974,14 @@ var Tabs = forwardRef27(
12038
11974
  activationMode: "automatic",
12039
11975
  ...props,
12040
11976
  ...modeProps,
12041
- children: /* @__PURE__ */ jsx264(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs42(SelectedItemStyleProvider, { children: [
11977
+ children: /* @__PURE__ */ jsx263(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs42(SelectedItemStyleProvider, { children: [
12042
11978
  /* @__PURE__ */ jsxs42(
12043
11979
  TabList,
12044
11980
  {
12045
11981
  ariaLabel,
12046
11982
  fullWidth,
12047
11983
  children: [
12048
- /* @__PURE__ */ jsx264(SelectedItemIndicator2, {}),
11984
+ /* @__PURE__ */ jsx263(SelectedItemIndicator2, {}),
12049
11985
  tabItems.map((tab) => {
12050
11986
  const {
12051
11987
  value,
@@ -12055,7 +11991,7 @@ var Tabs = forwardRef27(
12055
11991
  "aria-label": ariaLabelForTab
12056
11992
  } = tab.props;
12057
11993
  if (isNil15(icon)) {
12058
- return /* @__PURE__ */ jsx264(
11994
+ return /* @__PURE__ */ jsx263(
12059
11995
  TabItem,
12060
11996
  {
12061
11997
  disabled,
@@ -12066,7 +12002,7 @@ var Tabs = forwardRef27(
12066
12002
  );
12067
12003
  }
12068
12004
  if (isNotNil28(label)) {
12069
- return /* @__PURE__ */ jsx264(
12005
+ return /* @__PURE__ */ jsx263(
12070
12006
  TabItem,
12071
12007
  {
12072
12008
  disabled,
@@ -12078,7 +12014,7 @@ var Tabs = forwardRef27(
12078
12014
  );
12079
12015
  }
12080
12016
  if (isNotNil28(ariaLabelForTab)) {
12081
- return /* @__PURE__ */ jsx264(
12017
+ return /* @__PURE__ */ jsx263(
12082
12018
  TabItem,
12083
12019
  {
12084
12020
  "aria-label": ariaLabelForTab,
@@ -12094,7 +12030,7 @@ var Tabs = forwardRef27(
12094
12030
  ]
12095
12031
  }
12096
12032
  ),
12097
- /* @__PURE__ */ jsx264(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx264(
12033
+ /* @__PURE__ */ jsx263(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx263(
12098
12034
  TabPanel,
12099
12035
  {
12100
12036
  value: tab.props.value,
@@ -12110,19 +12046,19 @@ var Tabs = forwardRef27(
12110
12046
  Tabs.displayName = "Tabs";
12111
12047
 
12112
12048
  // src/components/Tabs/Tab.tsx
12113
- import { forwardRef as forwardRef28 } from "react";
12114
- import { jsx as jsx265 } from "react/jsx-runtime";
12115
- var Tab = forwardRef28(({ children }, ref) => {
12116
- return /* @__PURE__ */ jsx265("div", { ref, children });
12049
+ import { forwardRef as forwardRef27 } from "react";
12050
+ import { jsx as jsx264 } from "react/jsx-runtime";
12051
+ var Tab = forwardRef27(({ children }, ref) => {
12052
+ return /* @__PURE__ */ jsx264("div", { ref, children });
12117
12053
  });
12118
12054
  Tab.displayName = "Tab";
12119
12055
 
12120
12056
  // src/components/Tag/Tag.tsx
12121
- import { forwardRef as forwardRef29 } from "react";
12122
- import styled70 from "styled-components";
12057
+ import { forwardRef as forwardRef28 } from "react";
12058
+ import styled69 from "styled-components";
12123
12059
  import { isNil as isNil16, isNotNil as isNotNil29, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12124
- import { Fragment as Fragment8, jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
12125
- var TagLabel = styled70.a`
12060
+ import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs43 } from "react/jsx-runtime";
12061
+ var TagLabel = styled69.a`
12126
12062
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12127
12063
  font-size: var(--wui-typography-label-4-size);
12128
12064
  font-weight: var(--wui-typography-label-4-weight);
@@ -12157,14 +12093,14 @@ var TagLabel = styled70.a`
12157
12093
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12158
12094
  }
12159
12095
  `;
12160
- var TagDivider = styled70.div`
12096
+ var TagDivider = styled69.div`
12161
12097
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12162
12098
  border-left: 1px solid var(--wui-color-border);
12163
12099
  display: flex;
12164
12100
  height: 14px;
12165
12101
  width: 1px;
12166
12102
  `;
12167
- var StyledRemoveButton = styled70.button`
12103
+ var StyledRemoveButton = styled69.button`
12168
12104
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12169
12105
  all: unset;
12170
12106
  cursor: pointer;
@@ -12192,7 +12128,7 @@ var StyledRemoveButton = styled70.button`
12192
12128
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12193
12129
  }
12194
12130
  `;
12195
- var StyledTag = styled70.div`
12131
+ var StyledTag = styled69.div`
12196
12132
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12197
12133
  align-items: center;
12198
12134
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12214,7 +12150,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12214
12150
  );
12215
12151
  }
12216
12152
  return /* @__PURE__ */ jsxs43(Fragment8, { children: [
12217
- /* @__PURE__ */ jsx266(TagDivider, { $colorScheme: colorScheme }),
12153
+ /* @__PURE__ */ jsx265(TagDivider, { $colorScheme: colorScheme }),
12218
12154
  /* @__PURE__ */ jsxs43(
12219
12155
  StyledRemoveButton,
12220
12156
  {
@@ -12222,20 +12158,20 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12222
12158
  onClick: onClickRemove,
12223
12159
  type: "button",
12224
12160
  children: [
12225
- /* @__PURE__ */ jsx266(
12161
+ /* @__PURE__ */ jsx265(
12226
12162
  Icon,
12227
12163
  {
12228
12164
  size: "sm",
12229
12165
  type: "close"
12230
12166
  }
12231
12167
  ),
12232
- /* @__PURE__ */ jsx266(ScreenReaderOnly, { children: onClickRemoveLabel })
12168
+ /* @__PURE__ */ jsx265(ScreenReaderOnly, { children: onClickRemoveLabel })
12233
12169
  ]
12234
12170
  }
12235
12171
  )
12236
12172
  ] });
12237
12173
  };
12238
- var Tag = forwardRef29(
12174
+ var Tag = forwardRef28(
12239
12175
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12240
12176
  const hasIcon = isNotNil29(icon);
12241
12177
  const labelProps = isNotNil29(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
@@ -12257,7 +12193,7 @@ var Tag = forwardRef29(
12257
12193
  ]
12258
12194
  }
12259
12195
  ),
12260
- /* @__PURE__ */ jsx266(
12196
+ /* @__PURE__ */ jsx265(
12261
12197
  RemoveButton,
12262
12198
  {
12263
12199
  colorScheme,
@@ -12272,10 +12208,135 @@ var Tag = forwardRef29(
12272
12208
  );
12273
12209
  Tag.displayName = "Tag";
12274
12210
 
12211
+ // src/components/WistiaLogo/WistiaLogo.tsx
12212
+ import styled70, { css as css36 } from "styled-components";
12213
+ import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12214
+ import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
12215
+ var renderBrandmark = (brandmarkColor, iconOnly) => {
12216
+ if (iconOnly) {
12217
+ return /* @__PURE__ */ jsx266(
12218
+ "g",
12219
+ {
12220
+ "data-testid": "ui-wistia-logo-brandmark",
12221
+ fill: brandmarkColor,
12222
+ children: /* @__PURE__ */ jsx266("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12223
+ }
12224
+ );
12225
+ }
12226
+ return /* @__PURE__ */ jsx266(
12227
+ "g",
12228
+ {
12229
+ "data-testid": "ui-wistia-logo-brandmark",
12230
+ fill: brandmarkColor,
12231
+ children: /* @__PURE__ */ jsx266("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12232
+ }
12233
+ );
12234
+ };
12235
+ var renderLogotype = (logotypeColor, iconOnly) => {
12236
+ if (iconOnly) {
12237
+ return null;
12238
+ }
12239
+ return /* @__PURE__ */ jsx266(
12240
+ "g",
12241
+ {
12242
+ "data-testid": "ui-wistia-logo-logotype",
12243
+ fill: logotypeColor,
12244
+ children: /* @__PURE__ */ jsx266("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
12245
+ }
12246
+ );
12247
+ };
12248
+ var computedViewBox = (iconOnly) => {
12249
+ if (iconOnly) {
12250
+ return "0 0 34.4 26.78";
12251
+ }
12252
+ return "0 0 144 31.47";
12253
+ };
12254
+ var WistiaLogoComponent = styled70.svg`
12255
+ height: ${({ height }) => `${height}px`};
12256
+
12257
+ /* ensure it will always fit on mobile */
12258
+ max-height: 22vw;
12259
+ max-width: 100%;
12260
+
12261
+ &:hover {
12262
+ path {
12263
+ ${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
12264
+ }
12265
+ }
12266
+
12267
+ ${({ $opticallyCentered, $iconOnly }) => {
12268
+ if ($opticallyCentered) {
12269
+ if ($iconOnly) {
12270
+ return css36`
12271
+ aspect-ratio: 1;
12272
+ padding: 11.85% 3.12% 13.91%;
12273
+ `;
12274
+ }
12275
+ return css36`
12276
+ aspect-ratio: 127 / 32;
12277
+ `;
12278
+ }
12279
+ return null;
12280
+ }}
12281
+ `;
12282
+ var WistiaLogo = ({
12283
+ description = void 0,
12284
+ height = 100,
12285
+ hoverColor = void 0,
12286
+ href = void 0,
12287
+ iconOnly = false,
12288
+ opticallyCentered = false,
12289
+ title = "Wistia Logo",
12290
+ variant = "standard",
12291
+ ...props
12292
+ }) => {
12293
+ const primaryColor = "#2949e5";
12294
+ const darkColor = "#000934";
12295
+ const lightColor = "#ffffff";
12296
+ const VARIANT_COLORS = {
12297
+ standard: {
12298
+ brandmark: primaryColor,
12299
+ logotype: darkColor
12300
+ },
12301
+ dark: {
12302
+ brandmark: darkColor,
12303
+ logotype: darkColor
12304
+ },
12305
+ light: {
12306
+ brandmark: lightColor,
12307
+ logotype: lightColor
12308
+ }
12309
+ };
12310
+ const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12311
+ const logotypeColor = VARIANT_COLORS[variant].logotype;
12312
+ const Logo = /* @__PURE__ */ jsxs44(
12313
+ WistiaLogoComponent,
12314
+ {
12315
+ $hoverColor: hoverColor,
12316
+ $iconOnly: iconOnly,
12317
+ $opticallyCentered: opticallyCentered,
12318
+ height,
12319
+ preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
12320
+ role: "img",
12321
+ viewBox: computedViewBox(iconOnly),
12322
+ xmlns: "http://www.w3.org/2000/svg",
12323
+ ...props,
12324
+ children: [
12325
+ /* @__PURE__ */ jsx266("title", { children: title }),
12326
+ isNotNil30(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12327
+ renderBrandmark(brandmarkColor, iconOnly),
12328
+ renderLogotype(logotypeColor, iconOnly)
12329
+ ]
12330
+ }
12331
+ );
12332
+ return href !== void 0 ? /* @__PURE__ */ jsx266("a", { href, children: Logo }) : Logo;
12333
+ };
12334
+ WistiaLogo.displayName = "WistiaLogo";
12335
+
12275
12336
  // src/components/Thumbnail/ThumbnailBadge.tsx
12276
12337
  import styled71 from "styled-components";
12277
- import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12278
- import { jsx as jsx267, jsxs as jsxs44 } from "react/jsx-runtime";
12338
+ import { isNotNil as isNotNil31 } from "@wistia/type-guards";
12339
+ import { jsx as jsx267, jsxs as jsxs45 } from "react/jsx-runtime";
12279
12340
  var StyledThumbnailBadge = styled71.div`
12280
12341
  align-items: center;
12281
12342
  background-color: rgb(0 0 0 / 50%);
@@ -12301,23 +12362,23 @@ var StyledThumbnailBadge = styled71.div`
12301
12362
  }
12302
12363
  `;
12303
12364
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12304
- return /* @__PURE__ */ jsxs44(StyledThumbnailBadge, { ...props, children: [
12305
- isNotNil30(icon) && icon,
12365
+ return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12366
+ isNotNil31(icon) && icon,
12306
12367
  /* @__PURE__ */ jsx267("span", { children: label })
12307
12368
  ] });
12308
12369
  };
12309
12370
  ThumbnailBadge.displayName = "ThumbnailBadge";
12310
12371
 
12311
12372
  // src/components/Thumbnail/Thumbnail.tsx
12312
- import { forwardRef as forwardRef30 } from "react";
12373
+ import { forwardRef as forwardRef29 } from "react";
12313
12374
  import styled72 from "styled-components";
12314
- import { isNil as isNil17, isNotNil as isNotNil32 } from "@wistia/type-guards";
12375
+ import { isNil as isNil17, isNotNil as isNotNil33 } from "@wistia/type-guards";
12315
12376
 
12316
12377
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12317
- import { isNotNil as isNotNil31 } from "@wistia/type-guards";
12318
- import { css as css36 } from "styled-components";
12378
+ import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12379
+ import { css as css37 } from "styled-components";
12319
12380
  var gradients = {
12320
- defaultDarkOne: css36`
12381
+ defaultDarkOne: css37`
12321
12382
  background-color: #222d66;
12322
12383
  background-image:
12323
12384
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12325,7 +12386,7 @@ var gradients = {
12325
12386
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12326
12387
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12327
12388
  `,
12328
- defaultDarkTwo: css36`
12389
+ defaultDarkTwo: css37`
12329
12390
  background-color: #222d66;
12330
12391
  background-image:
12331
12392
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12333,7 +12394,7 @@ var gradients = {
12333
12394
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12334
12395
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12335
12396
  `,
12336
- defaultLightOne: css36`
12397
+ defaultLightOne: css37`
12337
12398
  background-color: #ccd5ff;
12338
12399
  background-image:
12339
12400
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12341,13 +12402,13 @@ var gradients = {
12341
12402
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12342
12403
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12343
12404
  `,
12344
- defaultLightTwo: css36`
12405
+ defaultLightTwo: css37`
12345
12406
  background-color: #ccd5ff;
12346
12407
  background-image:
12347
12408
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12348
12409
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12349
12410
  `,
12350
- defaultMidOne: css36`
12411
+ defaultMidOne: css37`
12351
12412
  background-color: #6b84ff;
12352
12413
  background-image:
12353
12414
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12355,13 +12416,13 @@ var gradients = {
12355
12416
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12356
12417
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12357
12418
  `,
12358
- defaultMidTwo: css36`
12419
+ defaultMidTwo: css37`
12359
12420
  background-color: #6b84ff;
12360
12421
  background-image:
12361
12422
  radial-gradient(ellipse at top, #2949e5, transparent),
12362
12423
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12363
12424
  `,
12364
- green: css36`
12425
+ green: css37`
12365
12426
  background-color: #fafffa;
12366
12427
  background-image:
12367
12428
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12369,7 +12430,7 @@ var gradients = {
12369
12430
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12370
12431
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12371
12432
  `,
12372
- greenWithPop: css36`
12433
+ greenWithPop: css37`
12373
12434
  background-color: #fafffa;
12374
12435
  background-image:
12375
12436
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12377,7 +12438,7 @@ var gradients = {
12377
12438
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12378
12439
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12379
12440
  `,
12380
- pink: css36`
12441
+ pink: css37`
12381
12442
  background-color: #fffff0;
12382
12443
  background-image:
12383
12444
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12385,7 +12446,7 @@ var gradients = {
12385
12446
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12386
12447
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12387
12448
  `,
12388
- pinkWithPop: css36`
12449
+ pinkWithPop: css37`
12389
12450
  background-color: #fffff0;
12390
12451
  background-image:
12391
12452
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12393,7 +12454,7 @@ var gradients = {
12393
12454
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12394
12455
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12395
12456
  `,
12396
- playfulGradientOne: css36`
12457
+ playfulGradientOne: css37`
12397
12458
  background-color: #f7f8ff;
12398
12459
  background-image:
12399
12460
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12401,7 +12462,7 @@ var gradients = {
12401
12462
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12402
12463
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12403
12464
  `,
12404
- playfulGradientTwo: css36`
12465
+ playfulGradientTwo: css37`
12405
12466
  background-color: #f7f8ff;
12406
12467
  background-image:
12407
12468
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12409,13 +12470,13 @@ var gradients = {
12409
12470
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12410
12471
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12411
12472
  `,
12412
- purple: css36`
12473
+ purple: css37`
12413
12474
  background-color: #f2caff;
12414
12475
  background-image:
12415
12476
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12416
12477
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12417
12478
  `,
12418
- purpleWithPop: css36`
12479
+ purpleWithPop: css37`
12419
12480
  background-color: #f2caff;
12420
12481
  background-image:
12421
12482
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12423,7 +12484,7 @@ var gradients = {
12423
12484
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12424
12485
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12425
12486
  `,
12426
- yellow: css36`
12487
+ yellow: css37`
12427
12488
  background-color: #fffff0;
12428
12489
  background-image:
12429
12490
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12431,7 +12492,7 @@ var gradients = {
12431
12492
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12432
12493
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12433
12494
  `,
12434
- yellowWithPop: css36`
12495
+ yellowWithPop: css37`
12435
12496
  background-color: #fffff0;
12436
12497
  background-image:
12437
12498
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12442,11 +12503,11 @@ var gradients = {
12442
12503
  };
12443
12504
  var gradientMap = Object.keys(gradients);
12444
12505
  var getBackgroundGradient = (gradientName = void 0) => {
12445
- return isNotNil31(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12506
+ return isNotNil32(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12446
12507
  };
12447
12508
 
12448
12509
  // src/components/Thumbnail/Thumbnail.tsx
12449
- import { jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12510
+ import { jsx as jsx268, jsxs as jsxs46 } from "react/jsx-runtime";
12450
12511
  var WideThumbnailImage = styled72.img`
12451
12512
  height: 100%;
12452
12513
  object-fit: cover;
@@ -12463,7 +12524,6 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12463
12524
  WideThumbnailImage,
12464
12525
  {
12465
12526
  alt: "",
12466
- role: "img",
12467
12527
  src: thumbnailUrl
12468
12528
  }
12469
12529
  );
@@ -12472,13 +12532,12 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12472
12532
  SquareThumbnailImage,
12473
12533
  {
12474
12534
  alt: "",
12475
- role: "img",
12476
12535
  src: thumbnailUrl
12477
12536
  }
12478
12537
  );
12479
12538
  };
12480
12539
  var StyledThumbnail = styled72.div`
12481
- background-image: ${({ $backgroundUrl }) => isNotNil32($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12540
+ background-image: ${({ $backgroundUrl }) => isNotNil33($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12482
12541
  ${({ $backgroundUrl, $gradientBackground }) => (
12483
12542
  // if we don't have $backgroundUrl show a gradient
12484
12543
  isNil17($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
@@ -12496,7 +12555,7 @@ var StyledThumbnail = styled72.div`
12496
12555
  border-radius: calc(8% * (9 / 16)) / 8%;
12497
12556
  }
12498
12557
  `;
12499
- var Thumbnail = forwardRef30(
12558
+ var Thumbnail = forwardRef29(
12500
12559
  ({
12501
12560
  gradientBackground = "defaultMidOne",
12502
12561
  thumbnailImageType = "square",
@@ -12505,19 +12564,18 @@ var Thumbnail = forwardRef30(
12505
12564
  children,
12506
12565
  ...props
12507
12566
  }, ref) => {
12508
- const backgroundUrl = thumbnailImageType === "square" && isNotNil32(thumbnailUrl) ? thumbnailUrl : void 0;
12509
- return /* @__PURE__ */ jsxs45(
12567
+ const backgroundUrl = thumbnailImageType === "square" && isNotNil33(thumbnailUrl) ? thumbnailUrl : void 0;
12568
+ return /* @__PURE__ */ jsxs46(
12510
12569
  StyledThumbnail,
12511
12570
  {
12512
12571
  ref,
12513
- ...props,
12514
12572
  $backgroundUrl: backgroundUrl,
12515
12573
  $gradientBackground: gradientBackground,
12516
12574
  $width: width,
12517
- role: "presentation",
12575
+ ...props,
12518
12576
  children: [
12519
- isNotNil32(children) ? children : null,
12520
- isNotNil32(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12577
+ isNotNil33(children) ? children : null,
12578
+ isNotNil33(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12521
12579
  ThumbnailImage,
12522
12580
  {
12523
12581
  thumbnailImageType,
@@ -12531,237 +12589,69 @@ var Thumbnail = forwardRef30(
12531
12589
  );
12532
12590
  Thumbnail.displayName = "Thumbnail";
12533
12591
 
12534
- // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12535
- import React2 from "react";
12592
+ // src/components/InputClickToCopy/InputClickToCopy.tsx
12536
12593
  import styled73 from "styled-components";
12537
- import { isNonEmptyArray } from "@wistia/type-guards";
12594
+ import { forwardRef as forwardRef30, useEffect as useEffect10, useState as useState12 } from "react";
12595
+ import { isFunction as isFunction3 } from "@wistia/type-guards";
12538
12596
  import { jsx as jsx269 } from "react/jsx-runtime";
12539
- var StyledThumbnailCollage = styled73.div`
12540
- display: grid;
12541
- gap: var(--wui-space-01);
12542
- width: 100%;
12543
- grid-template-columns: 3fr 2fr;
12544
- grid-template-rows: 1fr 1fr;
12545
- aspect-ratio: 16 / 9;
12546
-
12547
- &:has(:nth-child(1)) {
12548
- --wui-collage-thumbnail-first-border-radius: calc(8% * (9 / 16)) / 8%;
12549
-
12550
- grid-template-areas:
12551
- 'a a'
12552
- 'a a';
12553
- }
12554
-
12555
- &:has(:nth-child(2)) {
12556
- --wui-collage-thumbnail-first-border-radius: 7.5% / 8%;
12557
- --wui-collage-thumbnail-second-border-radius: 11.5% / 8%;
12558
-
12559
- grid-template-areas:
12560
- 'a b'
12561
- 'a b';
12562
- }
12563
-
12564
- &:has(:nth-child(3)) {
12565
- --wui-collage-thumbnail-first-border-radius: 7.5% / 8%;
12566
- --wui-collage-thumbnail-second-border-radius: 11.5% / 16%;
12567
- --wui-collage-thumbnail-third-border-radius: 11.5% / 16%;
12568
-
12569
- grid-template-areas:
12570
- 'a b'
12571
- 'a c';
12572
- }
12573
-
12574
- > :nth-child(1) {
12575
- --wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-first-border-radius);
12576
-
12577
- grid-area: a;
12578
- }
12579
-
12580
- > :nth-child(2) {
12581
- --wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-second-border-radius);
12582
-
12583
- grid-area: b;
12584
- }
12585
-
12586
- > :nth-child(3) {
12587
- --wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-third-border-radius);
12588
-
12589
- grid-area: c;
12597
+ var StyledInput2 = styled73(Input)`
12598
+ &:not([aria-disabled='true']) {
12599
+ cursor: pointer;
12590
12600
  }
12591
12601
 
12592
- > * {
12593
- aspect-ratio: unset;
12594
- height: 100%;
12595
- width: 100%;
12596
- border-radius: var(--wui-collage-thumbnail-border-radius);
12597
-
12598
- img {
12599
- border-radius: var(--wui-collage-thumbnail-border-radius);
12600
- }
12601
-
12602
- > :not(img) {
12603
- display: none;
12604
- }
12602
+ &::selection {
12603
+ background-color: transparent;
12605
12604
  }
12606
12605
  `;
12607
- var ThumbnailCollage = ({
12608
- children = [],
12609
- gradientBackground = "defaultMidOne",
12610
- ...props
12611
- }) => {
12612
- const thumbnailArray = React2.Children.toArray(children);
12613
- const truncatedThumbnails = thumbnailArray.slice(0, 3);
12614
- const thumbnails = isNonEmptyArray(thumbnailArray) ? truncatedThumbnails.map((child) => {
12615
- return React2.cloneElement(child, {
12616
- ...child.props,
12617
- children: void 0
12618
- });
12619
- }) : [
12620
- // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
12621
- /* @__PURE__ */ jsx269(
12622
- Thumbnail,
12623
- {
12624
- gradientBackground,
12625
- thumbnailUrl: null
12626
- },
12627
- "fallback"
12628
- )
12629
- ];
12630
- return /* @__PURE__ */ jsx269(
12631
- StyledThumbnailCollage,
12632
- {
12633
- $gradientBackground: gradientBackground,
12634
- "data-wui-thumbnail-collage": true,
12635
- ...props,
12636
- children: thumbnails
12637
- }
12638
- );
12639
- };
12640
-
12641
- // src/components/WistiaLogo/WistiaLogo.tsx
12642
- import styled74, { css as css37 } from "styled-components";
12643
- import { isNotNil as isNotNil33 } from "@wistia/type-guards";
12644
- import { jsx as jsx270, jsxs as jsxs46 } from "react/jsx-runtime";
12645
- var renderBrandmark = (brandmarkColor, iconOnly) => {
12646
- if (iconOnly) {
12647
- return /* @__PURE__ */ jsx270(
12648
- "g",
12606
+ var COPY_SUCCESS_DURATION = 2e3;
12607
+ var InputClickToCopy = forwardRef30(
12608
+ ({ value, onCopy, ...props }, ref) => {
12609
+ const [isCopied, setIsCopied] = useState12(false);
12610
+ useEffect10(() => {
12611
+ if (isCopied) {
12612
+ const timeout = setTimeout(() => {
12613
+ setIsCopied(false);
12614
+ }, COPY_SUCCESS_DURATION);
12615
+ return () => {
12616
+ clearTimeout(timeout);
12617
+ };
12618
+ }
12619
+ return () => null;
12620
+ }, [isCopied]);
12621
+ const handleClick = (event) => {
12622
+ event.preventDefault();
12623
+ if (isFunction3(props.onClick)) {
12624
+ props.onClick(event);
12625
+ }
12626
+ void copyToClipboard(value).then(() => {
12627
+ setIsCopied(true);
12628
+ if (isFunction3(onCopy)) {
12629
+ onCopy(value);
12630
+ }
12631
+ return value;
12632
+ });
12633
+ };
12634
+ return /* @__PURE__ */ jsx269(
12635
+ StyledInput2,
12649
12636
  {
12650
- "data-testid": "ui-wistia-logo-brandmark",
12651
- fill: brandmarkColor,
12652
- children: /* @__PURE__ */ jsx270("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12637
+ "aria-label": "Click to Copy",
12638
+ ...props,
12639
+ ref,
12640
+ onClick: handleClick,
12641
+ readOnly: true,
12642
+ rightIcon: isCopied ? /* @__PURE__ */ jsx269(
12643
+ Icon,
12644
+ {
12645
+ colorScheme: "success",
12646
+ type: "checkmark-circle"
12647
+ }
12648
+ ) : /* @__PURE__ */ jsx269(Icon, { type: "save-as-copy" }),
12649
+ value
12653
12650
  }
12654
12651
  );
12655
12652
  }
12656
- return /* @__PURE__ */ jsx270(
12657
- "g",
12658
- {
12659
- "data-testid": "ui-wistia-logo-brandmark",
12660
- fill: brandmarkColor,
12661
- children: /* @__PURE__ */ jsx270("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12662
- }
12663
- );
12664
- };
12665
- var renderLogotype = (logotypeColor, iconOnly) => {
12666
- if (iconOnly) {
12667
- return null;
12668
- }
12669
- return /* @__PURE__ */ jsx270(
12670
- "g",
12671
- {
12672
- "data-testid": "ui-wistia-logo-logotype",
12673
- fill: logotypeColor,
12674
- children: /* @__PURE__ */ jsx270("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
12675
- }
12676
- );
12677
- };
12678
- var computedViewBox = (iconOnly) => {
12679
- if (iconOnly) {
12680
- return "0 0 34.4 26.78";
12681
- }
12682
- return "0 0 144 31.47";
12683
- };
12684
- var WistiaLogoComponent = styled74.svg`
12685
- height: ${({ height }) => `${height}px`};
12686
-
12687
- /* ensure it will always fit on mobile */
12688
- max-height: 22vw;
12689
- max-width: 100%;
12690
-
12691
- &:hover {
12692
- path {
12693
- ${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
12694
- }
12695
- }
12696
-
12697
- ${({ $opticallyCentered, $iconOnly }) => {
12698
- if ($opticallyCentered) {
12699
- if ($iconOnly) {
12700
- return css37`
12701
- aspect-ratio: 1;
12702
- padding: 11.85% 3.12% 13.91%;
12703
- `;
12704
- }
12705
- return css37`
12706
- aspect-ratio: 127 / 32;
12707
- `;
12708
- }
12709
- return null;
12710
- }}
12711
- `;
12712
- var WistiaLogo = ({
12713
- description = void 0,
12714
- height = 100,
12715
- hoverColor = void 0,
12716
- href = void 0,
12717
- iconOnly = false,
12718
- opticallyCentered = false,
12719
- title = "Wistia Logo",
12720
- variant = "standard",
12721
- ...props
12722
- }) => {
12723
- const primaryColor = "#2949e5";
12724
- const darkColor = "#000934";
12725
- const lightColor = "#ffffff";
12726
- const VARIANT_COLORS = {
12727
- standard: {
12728
- brandmark: primaryColor,
12729
- logotype: darkColor
12730
- },
12731
- dark: {
12732
- brandmark: darkColor,
12733
- logotype: darkColor
12734
- },
12735
- light: {
12736
- brandmark: lightColor,
12737
- logotype: lightColor
12738
- }
12739
- };
12740
- const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12741
- const logotypeColor = VARIANT_COLORS[variant].logotype;
12742
- const Logo = /* @__PURE__ */ jsxs46(
12743
- WistiaLogoComponent,
12744
- {
12745
- $hoverColor: hoverColor,
12746
- $iconOnly: iconOnly,
12747
- $opticallyCentered: opticallyCentered,
12748
- height,
12749
- preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
12750
- role: "img",
12751
- viewBox: computedViewBox(iconOnly),
12752
- xmlns: "http://www.w3.org/2000/svg",
12753
- ...props,
12754
- children: [
12755
- /* @__PURE__ */ jsx270("title", { children: title }),
12756
- isNotNil33(description) ? /* @__PURE__ */ jsx270("desc", { children: description }) : null,
12757
- renderBrandmark(brandmarkColor, iconOnly),
12758
- renderLogotype(logotypeColor, iconOnly)
12759
- ]
12760
- }
12761
- );
12762
- return href !== void 0 ? /* @__PURE__ */ jsx270("a", { href, children: Logo }) : Logo;
12763
- };
12764
- WistiaLogo.displayName = "WistiaLogo";
12653
+ );
12654
+ InputClickToCopy.displayName = "InputClickToCopy";
12765
12655
  export {
12766
12656
  ActionButton,
12767
12657
  Avatar,
@@ -12837,7 +12727,6 @@ export {
12837
12727
  Text,
12838
12728
  Thumbnail,
12839
12729
  ThumbnailBadge,
12840
- ThumbnailCollage,
12841
12730
  Tooltip,
12842
12731
  UIProvider,
12843
12732
  WistiaLogo,