@wistia/vhs 4.0.0-beta.2ee06ce4.e80ed66 → 4.0.0-beta.7034eb93.0e6bb17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +47 -78
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d.cts → index.d.mts} +2 -19
- package/dist/index.d.ts +2 -19
- package/dist/index.mjs +39 -69
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v4.0.0-beta.
|
|
3
|
+
* @license @wistia/vhs v4.0.0-beta.7034eb93.0e6bb17
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -96,7 +96,6 @@ __export(index_exports, {
|
|
|
96
96
|
ScreenReaderOnly: () => ScreenReaderOnly,
|
|
97
97
|
Select: () => Select,
|
|
98
98
|
Slider: () => Slider,
|
|
99
|
-
Stack: () => Stack,
|
|
100
99
|
SubMenu: () => SubMenu,
|
|
101
100
|
Switch: () => Switch,
|
|
102
101
|
Text: () => Text,
|
|
@@ -4596,7 +4595,7 @@ var import_type_guards18 = require("@wistia/type-guards");
|
|
|
4596
4595
|
var import_react28 = require("react");
|
|
4597
4596
|
var import_react_dom2 = require("react-dom");
|
|
4598
4597
|
var import_styled_components10 = require("styled-components");
|
|
4599
|
-
var import_react_fast_compare = __toESM(require("react-fast-compare")
|
|
4598
|
+
var import_react_fast_compare = __toESM(require("react-fast-compare"));
|
|
4600
4599
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
4601
4600
|
|
|
4602
4601
|
// src/private/components/ModalAnimation/ModalAnimation.tsx
|
|
@@ -9055,9 +9054,9 @@ var import_styled_components50 = require("styled-components");
|
|
|
9055
9054
|
var import_slate_react3 = require("slate-react");
|
|
9056
9055
|
var import_slate7 = require("slate");
|
|
9057
9056
|
var import_slate_history = require("slate-history");
|
|
9058
|
-
var import_is_hotkey = __toESM(require("is-hotkey")
|
|
9057
|
+
var import_is_hotkey = __toESM(require("is-hotkey"));
|
|
9059
9058
|
var import_type_guards50 = require("@wistia/type-guards");
|
|
9060
|
-
var import_react_fast_compare2 = __toESM(require("react-fast-compare")
|
|
9059
|
+
var import_react_fast_compare2 = __toESM(require("react-fast-compare"));
|
|
9061
9060
|
|
|
9062
9061
|
// src/components/RichTextEditor/serializers.ts
|
|
9063
9062
|
var import_slate = require("slate");
|
|
@@ -12631,7 +12630,7 @@ var rangeToString = ({ start, end }) => {
|
|
|
12631
12630
|
};
|
|
12632
12631
|
|
|
12633
12632
|
// src/private/components/RangeSelectorInput/iterators.ts
|
|
12634
|
-
var import_react_fast_compare3 = __toESM(require("react-fast-compare")
|
|
12633
|
+
var import_react_fast_compare3 = __toESM(require("react-fast-compare"));
|
|
12635
12634
|
|
|
12636
12635
|
// src/private/components/RangeSelectorInput/utils.ts
|
|
12637
12636
|
var import_date_fns5 = require("date-fns");
|
|
@@ -13362,7 +13361,7 @@ RangeSelector.displayName = "RangeSelector_VHS";
|
|
|
13362
13361
|
|
|
13363
13362
|
// src/components/Slider/Slider.tsx
|
|
13364
13363
|
var import_styled_components76 = require("styled-components");
|
|
13365
|
-
var import_react_slider = __toESM(require("react-slider")
|
|
13364
|
+
var import_react_slider = __toESM(require("react-slider"));
|
|
13366
13365
|
var import_type_guards70 = require("@wistia/type-guards");
|
|
13367
13366
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
13368
13367
|
var TRACK_SIZE = "4px";
|
|
@@ -13501,39 +13500,10 @@ var Slider = ({
|
|
|
13501
13500
|
};
|
|
13502
13501
|
Slider.displayName = "Slider_VHS";
|
|
13503
13502
|
|
|
13504
|
-
// src/components/
|
|
13505
|
-
var import_react63 = require("react");
|
|
13503
|
+
// src/components/Switch/Switch.tsx
|
|
13506
13504
|
var import_styled_components77 = require("styled-components");
|
|
13507
13505
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
13508
|
-
var
|
|
13509
|
-
display: flex;
|
|
13510
|
-
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
13511
|
-
gap: ${({ $gap, theme: theme2 }) => theme2.spacing[$gap]};
|
|
13512
|
-
|
|
13513
|
-
> * {
|
|
13514
|
-
flex: 1;
|
|
13515
|
-
}
|
|
13516
|
-
`;
|
|
13517
|
-
var Stack = (0, import_react63.forwardRef)(
|
|
13518
|
-
({ renderAs = "div", direction = "vertical", gap = "space02", ...props }, ref) => {
|
|
13519
|
-
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
13520
|
-
StyledStack,
|
|
13521
|
-
{
|
|
13522
|
-
...props,
|
|
13523
|
-
ref,
|
|
13524
|
-
$direction: direction,
|
|
13525
|
-
$gap: gap,
|
|
13526
|
-
as: renderAs
|
|
13527
|
-
}
|
|
13528
|
-
);
|
|
13529
|
-
}
|
|
13530
|
-
);
|
|
13531
|
-
Stack.displayName = "Stack_VHS";
|
|
13532
|
-
|
|
13533
|
-
// src/components/Switch/Switch.tsx
|
|
13534
|
-
var import_styled_components78 = require("styled-components");
|
|
13535
|
-
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
13536
|
-
var SwitchComponent = import_styled_components78.styled.button`
|
|
13506
|
+
var SwitchComponent = import_styled_components77.styled.button`
|
|
13537
13507
|
background-color: white;
|
|
13538
13508
|
border-color: ${({ theme: theme2 }) => theme2.color.grey700};
|
|
13539
13509
|
border-radius: 20px;
|
|
@@ -13570,7 +13540,7 @@ var SwitchComponent = import_styled_components78.styled.button`
|
|
|
13570
13540
|
opacity: 0.5;
|
|
13571
13541
|
}
|
|
13572
13542
|
`;
|
|
13573
|
-
var ShowTextStyles =
|
|
13543
|
+
var ShowTextStyles = import_styled_components77.css`
|
|
13574
13544
|
&::before,
|
|
13575
13545
|
&::after {
|
|
13576
13546
|
display: inline-block;
|
|
@@ -13598,7 +13568,7 @@ var ShowTextStyles = import_styled_components78.css`
|
|
|
13598
13568
|
}
|
|
13599
13569
|
}
|
|
13600
13570
|
`;
|
|
13601
|
-
var SwitchKnob =
|
|
13571
|
+
var SwitchKnob = import_styled_components77.styled.div`
|
|
13602
13572
|
background-color: ${({ theme: theme2 }) => theme2.color.grey700};
|
|
13603
13573
|
border-radius: 50%;
|
|
13604
13574
|
height: 12px;
|
|
@@ -13633,7 +13603,7 @@ var Switch = ({
|
|
|
13633
13603
|
onChange(!isChecked);
|
|
13634
13604
|
}
|
|
13635
13605
|
};
|
|
13636
|
-
return /* @__PURE__ */ (0,
|
|
13606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
13637
13607
|
SwitchComponent,
|
|
13638
13608
|
{
|
|
13639
13609
|
$colorOverride: colorOverride,
|
|
@@ -13645,17 +13615,17 @@ var Switch = ({
|
|
|
13645
13615
|
role: "switch",
|
|
13646
13616
|
type: "button",
|
|
13647
13617
|
...otherProps,
|
|
13648
|
-
children: /* @__PURE__ */ (0,
|
|
13618
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(SwitchKnob, { $hideText: hideText })
|
|
13649
13619
|
}
|
|
13650
13620
|
);
|
|
13651
13621
|
};
|
|
13652
13622
|
Switch.displayName = "Switch_VHS";
|
|
13653
13623
|
|
|
13654
13624
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
13655
|
-
var
|
|
13625
|
+
var import_styled_components78 = require("styled-components");
|
|
13656
13626
|
var import_type_guards71 = require("@wistia/type-guards");
|
|
13657
|
-
var
|
|
13658
|
-
var ThumbnailComponent =
|
|
13627
|
+
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
13628
|
+
var ThumbnailComponent = import_styled_components78.styled.div`
|
|
13659
13629
|
${({ $gradientBackground }) => getBackgroundGradient($gradientBackground)};
|
|
13660
13630
|
aspect-ratio: 16 / 9;
|
|
13661
13631
|
background-image: ${({ $backgroundUrl }) => $backgroundUrl};
|
|
@@ -13667,17 +13637,17 @@ var ThumbnailComponent = import_styled_components79.styled.div`
|
|
|
13667
13637
|
position: relative;
|
|
13668
13638
|
width: ${({ $width }) => $width};
|
|
13669
13639
|
`;
|
|
13670
|
-
var WideThumbnailImage =
|
|
13640
|
+
var WideThumbnailImage = import_styled_components78.styled.img`
|
|
13671
13641
|
height: 100%;
|
|
13672
13642
|
object-fit: cover;
|
|
13673
13643
|
width: 100%;
|
|
13674
13644
|
`;
|
|
13675
|
-
var SquareThumbnailImage =
|
|
13645
|
+
var SquareThumbnailImage = import_styled_components78.styled.img`
|
|
13676
13646
|
backdrop-filter: blur(8px);
|
|
13677
13647
|
object-fit: contain;
|
|
13678
13648
|
width: 100%;
|
|
13679
13649
|
`;
|
|
13680
|
-
var BottomRightText =
|
|
13650
|
+
var BottomRightText = import_styled_components78.styled.div`
|
|
13681
13651
|
align-items: center;
|
|
13682
13652
|
background-color: rgb(0 0 0 / 50%);
|
|
13683
13653
|
border-radius: 2px;
|
|
@@ -13694,7 +13664,7 @@ var BottomRightText = import_styled_components79.styled.div`
|
|
|
13694
13664
|
right: 0;
|
|
13695
13665
|
z-index: 1;
|
|
13696
13666
|
`;
|
|
13697
|
-
var IconContainer3 =
|
|
13667
|
+
var IconContainer3 = import_styled_components78.styled.div`
|
|
13698
13668
|
align-self: center;
|
|
13699
13669
|
aspect-ratio: 1;
|
|
13700
13670
|
margin: 30%;
|
|
@@ -13707,7 +13677,7 @@ var IconContainer3 = import_styled_components79.styled.div`
|
|
|
13707
13677
|
`;
|
|
13708
13678
|
var ThumbnailImage = ({ $thumbnailImageType, $thumbnailUrl }) => {
|
|
13709
13679
|
if ($thumbnailImageType === "wide") {
|
|
13710
|
-
return /* @__PURE__ */ (0,
|
|
13680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
13711
13681
|
WideThumbnailImage,
|
|
13712
13682
|
{
|
|
13713
13683
|
alt: "",
|
|
@@ -13716,7 +13686,7 @@ var ThumbnailImage = ({ $thumbnailImageType, $thumbnailUrl }) => {
|
|
|
13716
13686
|
);
|
|
13717
13687
|
}
|
|
13718
13688
|
if ($thumbnailImageType === "square") {
|
|
13719
|
-
return /* @__PURE__ */ (0,
|
|
13689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
13720
13690
|
SquareThumbnailImage,
|
|
13721
13691
|
{
|
|
13722
13692
|
alt: "",
|
|
@@ -13726,13 +13696,13 @@ var ThumbnailImage = ({ $thumbnailImageType, $thumbnailUrl }) => {
|
|
|
13726
13696
|
}
|
|
13727
13697
|
return null;
|
|
13728
13698
|
};
|
|
13729
|
-
var Collage =
|
|
13699
|
+
var Collage = import_styled_components78.styled.div`
|
|
13730
13700
|
display: grid;
|
|
13731
13701
|
grid-template-columns: auto auto;
|
|
13732
13702
|
grid-template-rows: 50% 50%;
|
|
13733
13703
|
width: 100%;
|
|
13734
13704
|
`;
|
|
13735
|
-
var CollageImage =
|
|
13705
|
+
var CollageImage = import_styled_components78.styled.div`
|
|
13736
13706
|
background-image: ${({ $thumbnailUrl }) => `url(${$thumbnailUrl})`};
|
|
13737
13707
|
background-position: center;
|
|
13738
13708
|
background-size: cover;
|
|
@@ -13760,7 +13730,7 @@ var Thumbnail = ({
|
|
|
13760
13730
|
...otherProps
|
|
13761
13731
|
}) => {
|
|
13762
13732
|
const thumbnailUrlToUse = Array.isArray(thumbnailUrl) ? thumbnailUrl[0] : thumbnailUrl;
|
|
13763
|
-
return /* @__PURE__ */ (0,
|
|
13733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
|
|
13764
13734
|
ThumbnailComponent,
|
|
13765
13735
|
{
|
|
13766
13736
|
$backgroundUrl: thumbnailImageType === "square" && (0, import_type_guards71.isNotNil)(thumbnailUrlToUse) ? `url(${thumbnailUrlToUse})` : "",
|
|
@@ -13768,31 +13738,31 @@ var Thumbnail = ({
|
|
|
13768
13738
|
$width: width,
|
|
13769
13739
|
...otherProps,
|
|
13770
13740
|
children: [
|
|
13771
|
-
(0, import_type_guards71.isNotNil)(bottomRightText) ? /* @__PURE__ */ (0,
|
|
13772
|
-
bottomRightIcon ? /* @__PURE__ */ (0,
|
|
13741
|
+
(0, import_type_guards71.isNotNil)(bottomRightText) ? /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(BottomRightText, { children: [
|
|
13742
|
+
bottomRightIcon ? /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
13773
13743
|
Icon,
|
|
13774
13744
|
{
|
|
13775
13745
|
size: "sm",
|
|
13776
13746
|
type: bottomRightIcon
|
|
13777
13747
|
}
|
|
13778
13748
|
) : null,
|
|
13779
|
-
/* @__PURE__ */ (0,
|
|
13749
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)("span", { children: bottomRightText })
|
|
13780
13750
|
] }) : null,
|
|
13781
|
-
(0, import_type_guards71.isNotNil)(icon) && /* @__PURE__ */ (0,
|
|
13751
|
+
(0, import_type_guards71.isNotNil)(icon) && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(IconContainer3, { children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
13782
13752
|
Icon,
|
|
13783
13753
|
{
|
|
13784
13754
|
color: iconColor,
|
|
13785
13755
|
type: icon
|
|
13786
13756
|
}
|
|
13787
13757
|
) }),
|
|
13788
|
-
!Array.isArray(thumbnailUrl) && (0, import_type_guards71.isNotNil)(thumbnailImageType) && (0, import_type_guards71.isNotNil)(thumbnailUrl) && /* @__PURE__ */ (0,
|
|
13758
|
+
!Array.isArray(thumbnailUrl) && (0, import_type_guards71.isNotNil)(thumbnailImageType) && (0, import_type_guards71.isNotNil)(thumbnailUrl) && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
13789
13759
|
ThumbnailImage,
|
|
13790
13760
|
{
|
|
13791
13761
|
$thumbnailImageType: thumbnailImageType,
|
|
13792
13762
|
$thumbnailUrl: thumbnailUrl
|
|
13793
13763
|
}
|
|
13794
13764
|
),
|
|
13795
|
-
Array.isArray(thumbnailUrl) && (0, import_type_guards71.isNotNil)(thumbnailImageType) && (0, import_type_guards71.isNotNil)(thumbnailUrl) && /* @__PURE__ */ (0,
|
|
13765
|
+
Array.isArray(thumbnailUrl) && (0, import_type_guards71.isNotNil)(thumbnailImageType) && (0, import_type_guards71.isNotNil)(thumbnailUrl) && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Collage, { "data-testid": "thumbnail-collage", children: thumbnailUrl.map((url, index) => /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
13796
13766
|
CollageImage,
|
|
13797
13767
|
{
|
|
13798
13768
|
$thumbnailUrl: url,
|
|
@@ -13808,10 +13778,10 @@ var Thumbnail = ({
|
|
|
13808
13778
|
Thumbnail.displayName = "Thumbnail_VHS";
|
|
13809
13779
|
|
|
13810
13780
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
13811
|
-
var
|
|
13781
|
+
var import_styled_components79 = require("styled-components");
|
|
13812
13782
|
var import_type_guards72 = require("@wistia/type-guards");
|
|
13813
|
-
var
|
|
13814
|
-
var ThumbnailCollageContainer =
|
|
13783
|
+
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
13784
|
+
var ThumbnailCollageContainer = import_styled_components79.styled.div`
|
|
13815
13785
|
display: grid;
|
|
13816
13786
|
grid-template-columns: 3fr 2fr;
|
|
13817
13787
|
grid-template-rows: 1fr 1fr;
|
|
@@ -13819,7 +13789,7 @@ var ThumbnailCollageContainer = import_styled_components80.styled.div`
|
|
|
13819
13789
|
grid-gap: ${({ theme: theme2 }) => theme2.spacing.space01};
|
|
13820
13790
|
height: 100%;
|
|
13821
13791
|
`;
|
|
13822
|
-
var CollageImage2 =
|
|
13792
|
+
var CollageImage2 = import_styled_components79.styled.div`
|
|
13823
13793
|
${({ $thumbnailUrl }) => (0, import_type_guards72.isNotNil)($thumbnailUrl) && `background-image: url(${$thumbnailUrl})`};
|
|
13824
13794
|
${({ $backgroundGradient }) => $backgroundGradient && getBackgroundGradient($backgroundGradient)};
|
|
13825
13795
|
background-position: center;
|
|
@@ -13849,37 +13819,37 @@ var ThumbnailCollage = ({
|
|
|
13849
13819
|
gradientBackground = "defaultMidOne",
|
|
13850
13820
|
...props
|
|
13851
13821
|
}) => {
|
|
13852
|
-
return /* @__PURE__ */ (0,
|
|
13822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
13853
13823
|
ThumbnailCollageContainer,
|
|
13854
13824
|
{
|
|
13855
13825
|
role: "presentation",
|
|
13856
13826
|
...props,
|
|
13857
|
-
children: thumbnailUrls.length ? thumbnailUrls.map((thumbnailUrl) => /* @__PURE__ */ (0,
|
|
13827
|
+
children: thumbnailUrls.length ? thumbnailUrls.map((thumbnailUrl) => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
13858
13828
|
CollageImage2,
|
|
13859
13829
|
{
|
|
13860
13830
|
$thumbnailUrl: thumbnailUrl
|
|
13861
13831
|
},
|
|
13862
13832
|
thumbnailUrl
|
|
13863
|
-
)) : /* @__PURE__ */ (0,
|
|
13833
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(CollageImage2, { $backgroundGradient: gradientBackground })
|
|
13864
13834
|
}
|
|
13865
13835
|
);
|
|
13866
13836
|
};
|
|
13867
13837
|
|
|
13868
13838
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
13869
|
-
var
|
|
13839
|
+
var import_styled_components80 = require("styled-components");
|
|
13870
13840
|
var import_type_guards73 = require("@wistia/type-guards");
|
|
13871
|
-
var
|
|
13841
|
+
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
13872
13842
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
13873
13843
|
if (iconOnly) {
|
|
13874
|
-
return /* @__PURE__ */ (0,
|
|
13844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("g", { fill: brandmarkColor, children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" }) });
|
|
13875
13845
|
}
|
|
13876
|
-
return /* @__PURE__ */ (0,
|
|
13846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("g", { fill: brandmarkColor, children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" }) });
|
|
13877
13847
|
};
|
|
13878
13848
|
var renderLogotype = (logotypeColor, iconOnly) => {
|
|
13879
13849
|
if (iconOnly) {
|
|
13880
13850
|
return null;
|
|
13881
13851
|
}
|
|
13882
|
-
return /* @__PURE__ */ (0,
|
|
13852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("g", { fill: logotypeColor, children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" }) });
|
|
13883
13853
|
};
|
|
13884
13854
|
var computedViewBox = (iconOnly) => {
|
|
13885
13855
|
if (iconOnly) {
|
|
@@ -13887,7 +13857,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
13887
13857
|
}
|
|
13888
13858
|
return "0 0 144 31.47";
|
|
13889
13859
|
};
|
|
13890
|
-
var WistiaLogoComponent =
|
|
13860
|
+
var WistiaLogoComponent = import_styled_components80.styled.svg`
|
|
13891
13861
|
height: ${({ height }) => `${height}px`};
|
|
13892
13862
|
|
|
13893
13863
|
/* ensure it will always fit on mobile */
|
|
@@ -13929,7 +13899,7 @@ var WistiaLogo = ({
|
|
|
13929
13899
|
};
|
|
13930
13900
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
13931
13901
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
13932
|
-
const Logo = /* @__PURE__ */ (0,
|
|
13902
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
|
|
13933
13903
|
WistiaLogoComponent,
|
|
13934
13904
|
{
|
|
13935
13905
|
$hoverColor: hoverColor,
|
|
@@ -13939,14 +13909,14 @@ var WistiaLogo = ({
|
|
|
13939
13909
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13940
13910
|
...otherProps,
|
|
13941
13911
|
children: [
|
|
13942
|
-
/* @__PURE__ */ (0,
|
|
13943
|
-
(0, import_type_guards73.isNotNil)(description) ? /* @__PURE__ */ (0,
|
|
13912
|
+
/* @__PURE__ */ (0, import_jsx_runtime212.jsx)("title", { children: title }),
|
|
13913
|
+
(0, import_type_guards73.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("desc", { children: description }) : null,
|
|
13944
13914
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
13945
13915
|
renderLogotype(logotypeColor, iconOnly)
|
|
13946
13916
|
]
|
|
13947
13917
|
}
|
|
13948
13918
|
);
|
|
13949
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
13919
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("a", { href, children: Logo }) : Logo;
|
|
13950
13920
|
};
|
|
13951
13921
|
WistiaLogo.displayName = "WistiaLogo_VHS";
|
|
13952
13922
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -14008,7 +13978,6 @@ WistiaLogo.displayName = "WistiaLogo_VHS";
|
|
|
14008
13978
|
ScreenReaderOnly,
|
|
14009
13979
|
Select,
|
|
14010
13980
|
Slider,
|
|
14011
|
-
Stack,
|
|
14012
13981
|
SubMenu,
|
|
14013
13982
|
Switch,
|
|
14014
13983
|
Text,
|