@lanaco/lnc-react-ui 4.0.112 → 4.0.114
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/Accordion.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +3 -3
- package/dist/BannerSectionWithListImage.cjs +2 -2
- package/dist/BannerSectionWithListImage.js +9 -9
- package/dist/BlogCardsSponsoredSection.cjs +25 -14
- package/dist/BlogCardsSponsoredSection.js +59 -47
- package/dist/BlogListSection.cjs +37 -9
- package/dist/BlogListSection.js +127 -70
- package/dist/BlogsSectionDetailed.cjs +11 -6
- package/dist/BlogsSectionDetailed.js +7 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +3 -2
- package/dist/BlogsSectionSimpleCentered.js +1 -0
- package/dist/BlogsSectionWithFilters.cjs +2 -2
- package/dist/BlogsSectionWithFilters.js +15 -15
- package/dist/BrandHitsSection.cjs +11 -11
- package/dist/BrandHitsSection.js +40 -38
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +2 -2
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/ContactSection.cjs +303 -0
- package/dist/ContactSection.js +1614 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +1 -1
- package/dist/{CustomStyles-DtKDPOdk.cjs → CustomStyles-D3JePSNK.cjs} +1 -1
- package/dist/{CustomStyles-Dd8IsVV6.js → CustomStyles-DpKzWczC.js} +2 -2
- package/dist/DailyMotion-CUHIuSln.js +136 -0
- package/dist/DailyMotion-D46sLmkS.cjs +1 -0
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +496 -552
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +2 -2
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +6 -6
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +5 -5
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +4 -4
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/Facebook-R53Rry9l.cjs +1 -0
- package/dist/Facebook-aEQQxj-r.js +121 -0
- package/dist/FaqSection.cjs +219 -0
- package/dist/FaqSection.js +481 -0
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +9 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +24 -23
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FilePlayer-9FdL9kM0.js +202 -0
- package/dist/FilePlayer-D9up8eWZ.cjs +1 -0
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GiftCardsSection.cjs +2 -2
- package/dist/GiftCardsSection.js +9 -9
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +1 -1
- package/dist/HelpBannerSection.cjs +62 -0
- package/dist/HelpBannerSection.js +81 -0
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kaltura-C170sgeD.cjs +1 -0
- package/dist/Kaltura-Dziqci9-.js +121 -0
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +5 -5
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/{KanbanCard-CXRQQu4S.cjs → KanbanCard-CP60mpJO.cjs} +1 -1
- package/dist/{KanbanCard-CIscpYlR.js → KanbanCard-Crf-cTxA.js} +2 -2
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -2
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +1 -1
- package/dist/KanbanHeader.cjs +1 -1
- package/dist/KanbanHeader.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +2 -2
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Mixcloud-Cfn28kqf.js +113 -0
- package/dist/Mixcloud-Towpm_ct.cjs +1 -0
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +2 -2
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +3 -3
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +3 -3
- package/dist/Mux-D0MPDKkM.js +165 -0
- package/dist/Mux-yqNOmuss.cjs +1 -0
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +2 -2
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +2 -2
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +2 -2
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +2 -2
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +2 -2
- package/dist/Preview-B8HyPnfR.cjs +1 -0
- package/dist/Preview-CO6WSP5f.js +127 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +1 -1
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +3 -3
- package/dist/SearchSection-BUD-hnQA.cjs +161 -0
- package/dist/SearchSection-xe0nvARV.js +1214 -0
- package/dist/SearchSection.cjs +1 -0
- package/dist/SearchSection.js +9 -0
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +3 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +4 -4
- package/dist/SoundCloud-D85Da68L.js +123 -0
- package/dist/SoundCloud-YZlcPffr.cjs +1 -0
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +2 -2
- package/dist/StatsSection.cjs +117 -0
- package/dist/StatsSection.js +154 -0
- package/dist/Streamable-CJQf8evZ.cjs +1 -0
- package/dist/Streamable-Zj4FOeBP.js +115 -0
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +3 -3
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +2 -2
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +2 -2
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +2 -2
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +2 -2
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/Twitch-Ba2O5gTX.cjs +1 -0
- package/dist/Twitch-DC97YrR8.js +117 -0
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +5 -5
- package/dist/Vidyard-BdNB5Wka.cjs +1 -0
- package/dist/Vidyard-D9vYqvNv.js +113 -0
- package/dist/Vimeo-23LnW4uS.js +146 -0
- package/dist/Vimeo-DatJiKS5.cjs +1 -0
- package/dist/Wistia-D--UDN6c.cjs +1 -0
- package/dist/Wistia-d2TQ3m-s.js +124 -0
- package/dist/YouTube-BEkcZxN7.cjs +1 -0
- package/dist/YouTube-x5-hc3s6.js +176 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
- package/dist/{emotion-react.browser.esm-1R69UXoj.cjs → emotion-react.browser.esm-Cvnp-zmB.cjs} +1 -1
- package/dist/{emotion-react.browser.esm-C6iWxXPG.js → emotion-react.browser.esm-DUVZ5oEL.js} +1 -1
- package/dist/{floating-ui.react.esm-h3qa3pb9.js → floating-ui.react.esm-CfpRzwmn.js} +1 -1
- package/dist/{floating-ui.react.esm-Bb1ww976.cjs → floating-ui.react.esm-CiYofNnh.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-Dr-ytKVG.cjs → hoist-non-react-statics.cjs-DGqlkKoS.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-CAHiRNzQ.js → hoist-non-react-statics.cjs-NQME298B.js} +1 -1
- package/dist/{index-EeoArxOx.cjs → index-41nUb2kP.cjs} +1 -1
- package/dist/{index-BlxaTV-D.js → index-6RFrSPs_.js} +1 -1
- package/dist/{index-64mXPFBC.js → index-B1vKwsDE.js} +1 -1
- package/dist/{index-Bq3leL2e.js → index-BXrmgzsU.js} +1 -1
- package/dist/{index-gY9e_8LL.cjs → index-BZnmT78f.cjs} +1 -1
- package/dist/{index-CQLF61YV.js → index-BgRyIsRu.js} +1 -1
- package/dist/{index-BPVoEhTF.cjs → index-BpbMKBf_.cjs} +1 -1
- package/dist/index-CDGmG-qk.cjs +1 -0
- package/dist/{index-S5Cd7WrG.js → index-CblbdqjE.js} +1 -1
- package/dist/{index-DaiUAQVF.cjs → index-Cp66dWMi.cjs} +1 -1
- package/dist/{index-DAOBjHnD.cjs → index-DA7SIHV1.cjs} +1 -1
- package/dist/{index-C1DkD2ug.cjs → index-DCFJmN23.cjs} +1 -1
- package/dist/{index-CkWvbrVT.js → index-Dt62UGku.js} +1 -1
- package/dist/index-wlx30R-h.js +62 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +60 -50
- package/dist/{react-toastify.esm--2awuizG.js → react-toastify.esm-BLQznunb.js} +1 -1
- package/dist/{react-toastify.esm-Dq1k28O7.cjs → react-toastify.esm-BoMuFZcq.cjs} +1 -1
- package/dist/{styled-components.browser.esm-CMTEDJ_5.cjs → styled-components.browser.esm-CvykQBGY.cjs} +1 -1
- package/dist/{styled-components.browser.esm-C9FYANiy.js → styled-components.browser.esm-D-n22PJk.js} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +1 -1
- package/package.json +8 -2
- package/vite.config.js +14 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
|
@@ -0,0 +1,1214 @@
|
|
|
1
|
+
import { jsx as c, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import Z, { forwardRef as q } from "react";
|
|
3
|
+
import { P as b, p as Ze } from "./index-CblbdqjE.js";
|
|
4
|
+
import qe from "./TextInput.js";
|
|
5
|
+
import Ge from "./Icon.js";
|
|
6
|
+
import Qe from "./Chip.js";
|
|
7
|
+
import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
+
import { M as de } from "./consts-BuFChS64.js";
|
|
9
|
+
import { a as et, c as z, g as tt } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
10
|
+
import { r as ye } from "./index-wlx30R-h.js";
|
|
11
|
+
import { u as rt } from "./useDetectMobile-Bkvj0VMa.js";
|
|
12
|
+
const at = G.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
gap: 0.5rem;
|
|
15
|
+
align-content: center;
|
|
16
|
+
|
|
17
|
+
& .tags__item {
|
|
18
|
+
color: var(--neutral-600, #0f2a46);
|
|
19
|
+
background: var(--neutral-50, #eef2f5);
|
|
20
|
+
font-size: 0.875rem;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
line-height: 1rem;
|
|
24
|
+
letter-spacing: 0.025rem;
|
|
25
|
+
padding: 0.5rem;
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
background: var(--gray-200, #e4e9f0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:focus {
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (max-width: ${de + "px"}) {
|
|
37
|
+
width: 100%;
|
|
38
|
+
overflow-x: auto;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
|
|
41
|
+
-webkit-overflow-scrolling: touch;
|
|
42
|
+
::-webkit-scrollbar {
|
|
43
|
+
-webkit-appearance: none;
|
|
44
|
+
}
|
|
45
|
+
-ms-overflow-style: none;
|
|
46
|
+
/* Internet Explorer 10+ */
|
|
47
|
+
scrollbar-width: none;
|
|
48
|
+
/* Firefox */
|
|
49
|
+
|
|
50
|
+
&::-webkit-scrollbar {
|
|
51
|
+
display: none;
|
|
52
|
+
/* Safari and Chrome */
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`, nt = G.div`
|
|
56
|
+
position: relative;
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
align-items: center;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
max-width: 31.25rem;
|
|
63
|
+
max-height: 18.75rem;
|
|
64
|
+
border-radius: 1rem;
|
|
65
|
+
|
|
66
|
+
& .section__thumbnail {
|
|
67
|
+
width: 100%;
|
|
68
|
+
height: 100%;
|
|
69
|
+
max-width: 31.25rem;
|
|
70
|
+
max-height: 18.75rem;
|
|
71
|
+
border-radius: 1rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
& .section__play {
|
|
75
|
+
position: absolute;
|
|
76
|
+
}
|
|
77
|
+
`, K = q(
|
|
78
|
+
({ tags: e = [], selectedTagCode: t = null, onSelectTag: r = () => {
|
|
79
|
+
} }, n) => /* @__PURE__ */ c(at, { children: e == null ? void 0 : e.map((a, o) => /* @__PURE__ */ c(
|
|
80
|
+
Qe,
|
|
81
|
+
{
|
|
82
|
+
label: a == null ? void 0 : a.name,
|
|
83
|
+
borderRadius: "curved",
|
|
84
|
+
color: "neutral",
|
|
85
|
+
className: `tags__item ${t === (a == null ? void 0 : a.code) ? "active" : ""}`,
|
|
86
|
+
onClick: () => {
|
|
87
|
+
r(a);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
`search-section-tag__${o + 1}`
|
|
91
|
+
)) })
|
|
92
|
+
);
|
|
93
|
+
K.propTypes = {
|
|
94
|
+
tags: b.array,
|
|
95
|
+
onSelectTag: b.func
|
|
96
|
+
};
|
|
97
|
+
var ot = function(t, r, n) {
|
|
98
|
+
var a = document.head || document.getElementsByTagName("head")[0], o = document.createElement("script");
|
|
99
|
+
typeof r == "function" && (n = r, r = {}), r = r || {}, n = n || function() {
|
|
100
|
+
}, o.type = r.type || "text/javascript", o.charset = r.charset || "utf8", o.async = "async" in r ? !!r.async : !0, o.src = t, r.attrs && it(o, r.attrs), r.text && (o.text = "" + r.text);
|
|
101
|
+
var y = "onload" in o ? oe : st;
|
|
102
|
+
y(o, n), o.onload || oe(o, n), a.appendChild(o);
|
|
103
|
+
};
|
|
104
|
+
function it(e, t) {
|
|
105
|
+
for (var r in t)
|
|
106
|
+
e.setAttribute(r, t[r]);
|
|
107
|
+
}
|
|
108
|
+
function oe(e, t) {
|
|
109
|
+
e.onload = function() {
|
|
110
|
+
this.onerror = this.onload = null, t(null, e);
|
|
111
|
+
}, e.onerror = function() {
|
|
112
|
+
this.onerror = this.onload = null, t(new Error("Failed to load " + this.src), e);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function st(e, t) {
|
|
116
|
+
e.onreadystatechange = function() {
|
|
117
|
+
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, t(null, e));
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
var lt = function(t) {
|
|
121
|
+
return ct(t) && !ut(t);
|
|
122
|
+
};
|
|
123
|
+
function ct(e) {
|
|
124
|
+
return !!e && typeof e == "object";
|
|
125
|
+
}
|
|
126
|
+
function ut(e) {
|
|
127
|
+
var t = Object.prototype.toString.call(e);
|
|
128
|
+
return t === "[object RegExp]" || t === "[object Date]" || yt(e);
|
|
129
|
+
}
|
|
130
|
+
var pt = typeof Symbol == "function" && Symbol.for, dt = pt ? Symbol.for("react.element") : 60103;
|
|
131
|
+
function yt(e) {
|
|
132
|
+
return e.$$typeof === dt;
|
|
133
|
+
}
|
|
134
|
+
function ft(e) {
|
|
135
|
+
return Array.isArray(e) ? [] : {};
|
|
136
|
+
}
|
|
137
|
+
function I(e, t) {
|
|
138
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? E(ft(e), e, t) : e;
|
|
139
|
+
}
|
|
140
|
+
function ht(e, t, r) {
|
|
141
|
+
return e.concat(t).map(function(n) {
|
|
142
|
+
return I(n, r);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function mt(e, t) {
|
|
146
|
+
if (!t.customMerge)
|
|
147
|
+
return E;
|
|
148
|
+
var r = t.customMerge(e);
|
|
149
|
+
return typeof r == "function" ? r : E;
|
|
150
|
+
}
|
|
151
|
+
function _t(e) {
|
|
152
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
153
|
+
return Object.propertyIsEnumerable.call(e, t);
|
|
154
|
+
}) : [];
|
|
155
|
+
}
|
|
156
|
+
function ie(e) {
|
|
157
|
+
return Object.keys(e).concat(_t(e));
|
|
158
|
+
}
|
|
159
|
+
function fe(e, t) {
|
|
160
|
+
try {
|
|
161
|
+
return t in e;
|
|
162
|
+
} catch {
|
|
163
|
+
return !1;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function gt(e, t) {
|
|
167
|
+
return fe(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
168
|
+
}
|
|
169
|
+
function Pt(e, t, r) {
|
|
170
|
+
var n = {};
|
|
171
|
+
return r.isMergeableObject(e) && ie(e).forEach(function(a) {
|
|
172
|
+
n[a] = I(e[a], r);
|
|
173
|
+
}), ie(t).forEach(function(a) {
|
|
174
|
+
gt(e, a) || (fe(e, a) && r.isMergeableObject(t[a]) ? n[a] = mt(a, r)(e[a], t[a], r) : n[a] = I(t[a], r));
|
|
175
|
+
}), n;
|
|
176
|
+
}
|
|
177
|
+
function E(e, t, r) {
|
|
178
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ht, r.isMergeableObject = r.isMergeableObject || lt, r.cloneUnlessOtherwiseSpecified = I;
|
|
179
|
+
var n = Array.isArray(t), a = Array.isArray(e), o = n === a;
|
|
180
|
+
return o ? n ? r.arrayMerge(e, t, r) : Pt(e, t, r) : I(t, r);
|
|
181
|
+
}
|
|
182
|
+
E.all = function(t, r) {
|
|
183
|
+
if (!Array.isArray(t))
|
|
184
|
+
throw new Error("first argument should be an array");
|
|
185
|
+
return t.reduce(function(n, a) {
|
|
186
|
+
return E(n, a, r);
|
|
187
|
+
}, {});
|
|
188
|
+
};
|
|
189
|
+
var bt = E, he = bt, vt = Object.create, j = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, Ot = Object.getOwnPropertyNames, Tt = Object.getPrototypeOf, St = Object.prototype.hasOwnProperty, Ct = (e, t) => {
|
|
190
|
+
for (var r in t)
|
|
191
|
+
j(e, r, { get: t[r], enumerable: !0 });
|
|
192
|
+
}, me = (e, t, r, n) => {
|
|
193
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
194
|
+
for (let a of Ot(t))
|
|
195
|
+
!St.call(e, a) && a !== r && j(e, a, { get: () => t[a], enumerable: !(n = wt(t, a)) || n.enumerable });
|
|
196
|
+
return e;
|
|
197
|
+
}, Q = (e, t, r) => (r = e != null ? vt(Tt(e)) : {}, me(
|
|
198
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
199
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
200
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
201
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
202
|
+
!e || !e.__esModule ? j(r, "default", { value: e, enumerable: !0 }) : r,
|
|
203
|
+
e
|
|
204
|
+
)), Et = (e) => me(j({}, "__esModule", { value: !0 }), e), _e = {};
|
|
205
|
+
Ct(_e, {
|
|
206
|
+
callPlayer: () => Ft,
|
|
207
|
+
getConfig: () => zt,
|
|
208
|
+
getSDK: () => Ht,
|
|
209
|
+
isBlobUrl: () => Kt,
|
|
210
|
+
isMediaStream: () => Bt,
|
|
211
|
+
lazy: () => Rt,
|
|
212
|
+
omit: () => Vt,
|
|
213
|
+
parseEndTime: () => Dt,
|
|
214
|
+
parseStartTime: () => jt,
|
|
215
|
+
queryString: () => kt,
|
|
216
|
+
randomString: () => Ut,
|
|
217
|
+
supportsWebKitPresentationMode: () => Xt
|
|
218
|
+
});
|
|
219
|
+
var D = Et(_e), Mt = Q(Z), At = Q(ot), xt = Q(he);
|
|
220
|
+
const Rt = (e) => Mt.default.lazy(async () => {
|
|
221
|
+
const t = await e();
|
|
222
|
+
return typeof t.default == "function" ? t : t.default;
|
|
223
|
+
}), It = /[?&#](?:start|t)=([0-9hms]+)/, $t = /[?&#]end=([0-9hms]+)/, X = /(\d+)(h|m|s)/g, Lt = /^\d+$/;
|
|
224
|
+
function ge(e, t) {
|
|
225
|
+
if (e instanceof Array)
|
|
226
|
+
return;
|
|
227
|
+
const r = e.match(t);
|
|
228
|
+
if (r) {
|
|
229
|
+
const n = r[1];
|
|
230
|
+
if (n.match(X))
|
|
231
|
+
return Nt(n);
|
|
232
|
+
if (Lt.test(n))
|
|
233
|
+
return parseInt(n);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function Nt(e) {
|
|
237
|
+
let t = 0, r = X.exec(e);
|
|
238
|
+
for (; r !== null; ) {
|
|
239
|
+
const [, n, a] = r;
|
|
240
|
+
a === "h" && (t += parseInt(n, 10) * 60 * 60), a === "m" && (t += parseInt(n, 10) * 60), a === "s" && (t += parseInt(n, 10)), r = X.exec(e);
|
|
241
|
+
}
|
|
242
|
+
return t;
|
|
243
|
+
}
|
|
244
|
+
function jt(e) {
|
|
245
|
+
return ge(e, It);
|
|
246
|
+
}
|
|
247
|
+
function Dt(e) {
|
|
248
|
+
return ge(e, $t);
|
|
249
|
+
}
|
|
250
|
+
function Ut() {
|
|
251
|
+
return Math.random().toString(36).substr(2, 5);
|
|
252
|
+
}
|
|
253
|
+
function kt(e) {
|
|
254
|
+
return Object.keys(e).map((t) => `${t}=${e[t]}`).join("&");
|
|
255
|
+
}
|
|
256
|
+
function V(e) {
|
|
257
|
+
return window[e] ? window[e] : window.exports && window.exports[e] ? window.exports[e] : window.module && window.module.exports && window.module.exports[e] ? window.module.exports[e] : null;
|
|
258
|
+
}
|
|
259
|
+
const O = {}, Ht = function(t, r, n = null, a = () => !0, o = At.default) {
|
|
260
|
+
const y = V(r);
|
|
261
|
+
return y && a(y) ? Promise.resolve(y) : new Promise((f, u) => {
|
|
262
|
+
if (O[t]) {
|
|
263
|
+
O[t].push({ resolve: f, reject: u });
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
O[t] = [{ resolve: f, reject: u }];
|
|
267
|
+
const w = (v) => {
|
|
268
|
+
O[t].forEach((M) => M.resolve(v));
|
|
269
|
+
};
|
|
270
|
+
if (n) {
|
|
271
|
+
const v = window[n];
|
|
272
|
+
window[n] = function() {
|
|
273
|
+
v && v(), w(V(r));
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
o(t, (v) => {
|
|
277
|
+
v ? (O[t].forEach((M) => M.reject(v)), O[t] = null) : n || w(V(r));
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
};
|
|
281
|
+
function zt(e, t) {
|
|
282
|
+
return (0, xt.default)(t.config, e.config);
|
|
283
|
+
}
|
|
284
|
+
function Vt(e, ...t) {
|
|
285
|
+
const r = [].concat(...t), n = {}, a = Object.keys(e);
|
|
286
|
+
for (const o of a)
|
|
287
|
+
r.indexOf(o) === -1 && (n[o] = e[o]);
|
|
288
|
+
return n;
|
|
289
|
+
}
|
|
290
|
+
function Ft(e, ...t) {
|
|
291
|
+
if (!this.player || !this.player[e]) {
|
|
292
|
+
let r = `ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;
|
|
293
|
+
return this.player ? this.player[e] || (r += "The method was not available") : r += "The player was not available", console.warn(r, "font-weight: bold", ""), null;
|
|
294
|
+
}
|
|
295
|
+
return this.player[e](...t);
|
|
296
|
+
}
|
|
297
|
+
function Bt(e) {
|
|
298
|
+
return typeof window < "u" && typeof window.MediaStream < "u" && e instanceof window.MediaStream;
|
|
299
|
+
}
|
|
300
|
+
function Kt(e) {
|
|
301
|
+
return /^blob:/.test(e);
|
|
302
|
+
}
|
|
303
|
+
function Xt(e = document.createElement("video")) {
|
|
304
|
+
const t = /iPhone|iPod/.test(navigator.userAgent) === !1;
|
|
305
|
+
return e.webkitSupportsPresentationMode && typeof e.webkitSetPresentationMode == "function" && t;
|
|
306
|
+
}
|
|
307
|
+
var ee = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, Yt = Object.getOwnPropertyNames, Jt = Object.prototype.hasOwnProperty, Zt = (e, t) => {
|
|
308
|
+
for (var r in t)
|
|
309
|
+
ee(e, r, { get: t[r], enumerable: !0 });
|
|
310
|
+
}, qt = (e, t, r, n) => {
|
|
311
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
312
|
+
for (let a of Yt(t))
|
|
313
|
+
!Jt.call(e, a) && a !== r && ee(e, a, { get: () => t[a], enumerable: !(n = Wt(t, a)) || n.enumerable });
|
|
314
|
+
return e;
|
|
315
|
+
}, Gt = (e) => qt(ee({}, "__esModule", { value: !0 }), e), Pe = {};
|
|
316
|
+
Zt(Pe, {
|
|
317
|
+
AUDIO_EXTENSIONS: () => te,
|
|
318
|
+
DASH_EXTENSIONS: () => $e,
|
|
319
|
+
FLV_EXTENSIONS: () => Le,
|
|
320
|
+
HLS_EXTENSIONS: () => ae,
|
|
321
|
+
MATCH_URL_DAILYMOTION: () => Ae,
|
|
322
|
+
MATCH_URL_FACEBOOK: () => Oe,
|
|
323
|
+
MATCH_URL_FACEBOOK_WATCH: () => Te,
|
|
324
|
+
MATCH_URL_KALTURA: () => Ie,
|
|
325
|
+
MATCH_URL_MIXCLOUD: () => xe,
|
|
326
|
+
MATCH_URL_MUX: () => we,
|
|
327
|
+
MATCH_URL_SOUNDCLOUD: () => be,
|
|
328
|
+
MATCH_URL_STREAMABLE: () => Se,
|
|
329
|
+
MATCH_URL_TWITCH_CHANNEL: () => Me,
|
|
330
|
+
MATCH_URL_TWITCH_VIDEO: () => Ee,
|
|
331
|
+
MATCH_URL_VIDYARD: () => Re,
|
|
332
|
+
MATCH_URL_VIMEO: () => ve,
|
|
333
|
+
MATCH_URL_WISTIA: () => Ce,
|
|
334
|
+
MATCH_URL_YOUTUBE: () => W,
|
|
335
|
+
VIDEO_EXTENSIONS: () => re,
|
|
336
|
+
canPlay: () => er
|
|
337
|
+
});
|
|
338
|
+
var Qt = Gt(Pe), se = D;
|
|
339
|
+
const W = /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//, be = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/, ve = /vimeo\.com\/(?!progressive_redirect).+/, we = /stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/, Oe = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/, Te = /^https?:\/\/fb\.watch\/.+$/, Se = /streamable\.com\/([a-z0-9]+)$/, Ce = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/, Ee = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/, Me = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/, Ae = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/, xe = /mixcloud\.com\/([^/]+\/[^/]+)/, Re = /vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/, Ie = /^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/, te = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i, re = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i, ae = /\.(m3u8)($|\?)/i, $e = /\.(mpd)($|\?)/i, Le = /\.(flv)($|\?)/i, Y = (e) => {
|
|
340
|
+
if (e instanceof Array) {
|
|
341
|
+
for (const t of e)
|
|
342
|
+
if (typeof t == "string" && Y(t) || Y(t.src))
|
|
343
|
+
return !0;
|
|
344
|
+
return !1;
|
|
345
|
+
}
|
|
346
|
+
return (0, se.isMediaStream)(e) || (0, se.isBlobUrl)(e) ? !0 : te.test(e) || re.test(e) || ae.test(e) || $e.test(e) || Le.test(e);
|
|
347
|
+
}, er = {
|
|
348
|
+
youtube: (e) => e instanceof Array ? e.every((t) => W.test(t)) : W.test(e),
|
|
349
|
+
soundcloud: (e) => be.test(e) && !te.test(e),
|
|
350
|
+
vimeo: (e) => ve.test(e) && !re.test(e) && !ae.test(e),
|
|
351
|
+
mux: (e) => we.test(e),
|
|
352
|
+
facebook: (e) => Oe.test(e) || Te.test(e),
|
|
353
|
+
streamable: (e) => Se.test(e),
|
|
354
|
+
wistia: (e) => Ce.test(e),
|
|
355
|
+
twitch: (e) => Ee.test(e) || Me.test(e),
|
|
356
|
+
dailymotion: (e) => Ae.test(e),
|
|
357
|
+
mixcloud: (e) => xe.test(e),
|
|
358
|
+
vidyard: (e) => Re.test(e),
|
|
359
|
+
kaltura: (e) => Ie.test(e),
|
|
360
|
+
file: Y
|
|
361
|
+
};
|
|
362
|
+
var ne = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, rr = Object.getOwnPropertyNames, ar = Object.prototype.hasOwnProperty, nr = (e, t) => {
|
|
363
|
+
for (var r in t)
|
|
364
|
+
ne(e, r, { get: t[r], enumerable: !0 });
|
|
365
|
+
}, or = (e, t, r, n) => {
|
|
366
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
367
|
+
for (let a of rr(t))
|
|
368
|
+
!ar.call(e, a) && a !== r && ne(e, a, { get: () => t[a], enumerable: !(n = tr(t, a)) || n.enumerable });
|
|
369
|
+
return e;
|
|
370
|
+
}, ir = (e) => or(ne({}, "__esModule", { value: !0 }), e), Ne = {};
|
|
371
|
+
nr(Ne, {
|
|
372
|
+
default: () => lr
|
|
373
|
+
});
|
|
374
|
+
var sr = ir(Ne), g = D, m = Qt, lr = [
|
|
375
|
+
{
|
|
376
|
+
key: "youtube",
|
|
377
|
+
name: "YouTube",
|
|
378
|
+
canPlay: m.canPlay.youtube,
|
|
379
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
380
|
+
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
381
|
+
"./YouTube-x5-hc3s6.js"
|
|
382
|
+
).then((e) => e.Y))
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
key: "soundcloud",
|
|
386
|
+
name: "SoundCloud",
|
|
387
|
+
canPlay: m.canPlay.soundcloud,
|
|
388
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
389
|
+
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
390
|
+
"./SoundCloud-D85Da68L.js"
|
|
391
|
+
).then((e) => e.S))
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
key: "vimeo",
|
|
395
|
+
name: "Vimeo",
|
|
396
|
+
canPlay: m.canPlay.vimeo,
|
|
397
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
398
|
+
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
399
|
+
"./Vimeo-23LnW4uS.js"
|
|
400
|
+
).then((e) => e.V))
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
key: "mux",
|
|
404
|
+
name: "Mux",
|
|
405
|
+
canPlay: m.canPlay.mux,
|
|
406
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
407
|
+
/* webpackChunkName: 'reactPlayerMux' */
|
|
408
|
+
"./Mux-D0MPDKkM.js"
|
|
409
|
+
).then((e) => e.M))
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
key: "facebook",
|
|
413
|
+
name: "Facebook",
|
|
414
|
+
canPlay: m.canPlay.facebook,
|
|
415
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
416
|
+
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
417
|
+
"./Facebook-aEQQxj-r.js"
|
|
418
|
+
).then((e) => e.F))
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
key: "streamable",
|
|
422
|
+
name: "Streamable",
|
|
423
|
+
canPlay: m.canPlay.streamable,
|
|
424
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
425
|
+
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
426
|
+
"./Streamable-Zj4FOeBP.js"
|
|
427
|
+
).then((e) => e.S))
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
key: "wistia",
|
|
431
|
+
name: "Wistia",
|
|
432
|
+
canPlay: m.canPlay.wistia,
|
|
433
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
434
|
+
/* webpackChunkName: 'reactPlayerWistia' */
|
|
435
|
+
"./Wistia-d2TQ3m-s.js"
|
|
436
|
+
).then((e) => e.W))
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
key: "twitch",
|
|
440
|
+
name: "Twitch",
|
|
441
|
+
canPlay: m.canPlay.twitch,
|
|
442
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
443
|
+
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
444
|
+
"./Twitch-DC97YrR8.js"
|
|
445
|
+
).then((e) => e.T))
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
key: "dailymotion",
|
|
449
|
+
name: "DailyMotion",
|
|
450
|
+
canPlay: m.canPlay.dailymotion,
|
|
451
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
452
|
+
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
453
|
+
"./DailyMotion-CUHIuSln.js"
|
|
454
|
+
).then((e) => e.D))
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
key: "mixcloud",
|
|
458
|
+
name: "Mixcloud",
|
|
459
|
+
canPlay: m.canPlay.mixcloud,
|
|
460
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
461
|
+
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
462
|
+
"./Mixcloud-Cfn28kqf.js"
|
|
463
|
+
).then((e) => e.M))
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
key: "vidyard",
|
|
467
|
+
name: "Vidyard",
|
|
468
|
+
canPlay: m.canPlay.vidyard,
|
|
469
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
470
|
+
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
471
|
+
"./Vidyard-D9vYqvNv.js"
|
|
472
|
+
).then((e) => e.V))
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
key: "kaltura",
|
|
476
|
+
name: "Kaltura",
|
|
477
|
+
canPlay: m.canPlay.kaltura,
|
|
478
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
479
|
+
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
480
|
+
"./Kaltura-Dziqci9-.js"
|
|
481
|
+
).then((e) => e.K))
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
key: "file",
|
|
485
|
+
name: "FilePlayer",
|
|
486
|
+
canPlay: m.canPlay.file,
|
|
487
|
+
canEnablePIP: (e) => m.canPlay.file(e) && (document.pictureInPictureEnabled || (0, g.supportsWebKitPresentationMode)()) && !m.AUDIO_EXTENSIONS.test(e),
|
|
488
|
+
lazyPlayer: (0, g.lazy)(() => import(
|
|
489
|
+
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
490
|
+
"./FilePlayer-9FdL9kM0.js"
|
|
491
|
+
).then((e) => e.F))
|
|
492
|
+
}
|
|
493
|
+
], le = Number.isNaN || function(t) {
|
|
494
|
+
return typeof t == "number" && t !== t;
|
|
495
|
+
};
|
|
496
|
+
function cr(e, t) {
|
|
497
|
+
return !!(e === t || le(e) && le(t));
|
|
498
|
+
}
|
|
499
|
+
function ur(e, t) {
|
|
500
|
+
if (e.length !== t.length)
|
|
501
|
+
return !1;
|
|
502
|
+
for (var r = 0; r < e.length; r++)
|
|
503
|
+
if (!cr(e[r], t[r]))
|
|
504
|
+
return !1;
|
|
505
|
+
return !0;
|
|
506
|
+
}
|
|
507
|
+
function pr(e, t) {
|
|
508
|
+
t === void 0 && (t = ur);
|
|
509
|
+
var r, n = [], a, o = !1;
|
|
510
|
+
function y() {
|
|
511
|
+
for (var f = [], u = 0; u < arguments.length; u++)
|
|
512
|
+
f[u] = arguments[u];
|
|
513
|
+
return o && r === this && t(f, n) || (a = e.apply(this, f), o = !0, r = this, n = f), a;
|
|
514
|
+
}
|
|
515
|
+
return y;
|
|
516
|
+
}
|
|
517
|
+
const dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
518
|
+
__proto__: null,
|
|
519
|
+
default: pr
|
|
520
|
+
}, Symbol.toStringTag, { value: "Module" })), yr = /* @__PURE__ */ et(dr);
|
|
521
|
+
var fr = Object.create, U = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, mr = Object.getOwnPropertyNames, _r = Object.getPrototypeOf, gr = Object.prototype.hasOwnProperty, Pr = (e, t) => {
|
|
522
|
+
for (var r in t)
|
|
523
|
+
U(e, r, { get: t[r], enumerable: !0 });
|
|
524
|
+
}, je = (e, t, r, n) => {
|
|
525
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
526
|
+
for (let a of mr(t))
|
|
527
|
+
!gr.call(e, a) && a !== r && U(e, a, { get: () => t[a], enumerable: !(n = hr(t, a)) || n.enumerable });
|
|
528
|
+
return e;
|
|
529
|
+
}, br = (e, t, r) => (r = e != null ? fr(_r(e)) : {}, je(
|
|
530
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
531
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
532
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
533
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
534
|
+
!e || !e.__esModule ? U(r, "default", { value: e, enumerable: !0 }) : r,
|
|
535
|
+
e
|
|
536
|
+
)), vr = (e) => je(U({}, "__esModule", { value: !0 }), e), De = {};
|
|
537
|
+
Pr(De, {
|
|
538
|
+
defaultProps: () => Tr,
|
|
539
|
+
propTypes: () => Or
|
|
540
|
+
});
|
|
541
|
+
var Ue = vr(De), wr = br(Ze);
|
|
542
|
+
const { string: p, bool: _, number: T, array: F, oneOfType: A, shape: P, object: h, func: l, node: ce } = wr.default, Or = {
|
|
543
|
+
url: A([p, F, h]),
|
|
544
|
+
playing: _,
|
|
545
|
+
loop: _,
|
|
546
|
+
controls: _,
|
|
547
|
+
volume: T,
|
|
548
|
+
muted: _,
|
|
549
|
+
playbackRate: T,
|
|
550
|
+
width: A([p, T]),
|
|
551
|
+
height: A([p, T]),
|
|
552
|
+
style: h,
|
|
553
|
+
progressInterval: T,
|
|
554
|
+
playsinline: _,
|
|
555
|
+
pip: _,
|
|
556
|
+
stopOnUnmount: _,
|
|
557
|
+
light: A([_, p, h]),
|
|
558
|
+
playIcon: ce,
|
|
559
|
+
previewTabIndex: T,
|
|
560
|
+
previewAriaLabel: p,
|
|
561
|
+
fallback: ce,
|
|
562
|
+
oEmbedUrl: p,
|
|
563
|
+
wrapper: A([
|
|
564
|
+
p,
|
|
565
|
+
l,
|
|
566
|
+
P({ render: l.isRequired })
|
|
567
|
+
]),
|
|
568
|
+
config: P({
|
|
569
|
+
soundcloud: P({
|
|
570
|
+
options: h
|
|
571
|
+
}),
|
|
572
|
+
youtube: P({
|
|
573
|
+
playerVars: h,
|
|
574
|
+
embedOptions: h,
|
|
575
|
+
onUnstarted: l
|
|
576
|
+
}),
|
|
577
|
+
facebook: P({
|
|
578
|
+
appId: p,
|
|
579
|
+
version: p,
|
|
580
|
+
playerId: p,
|
|
581
|
+
attributes: h
|
|
582
|
+
}),
|
|
583
|
+
dailymotion: P({
|
|
584
|
+
params: h
|
|
585
|
+
}),
|
|
586
|
+
vimeo: P({
|
|
587
|
+
playerOptions: h,
|
|
588
|
+
title: p
|
|
589
|
+
}),
|
|
590
|
+
mux: P({
|
|
591
|
+
attributes: h,
|
|
592
|
+
version: p
|
|
593
|
+
}),
|
|
594
|
+
file: P({
|
|
595
|
+
attributes: h,
|
|
596
|
+
tracks: F,
|
|
597
|
+
forceVideo: _,
|
|
598
|
+
forceAudio: _,
|
|
599
|
+
forceHLS: _,
|
|
600
|
+
forceSafariHLS: _,
|
|
601
|
+
forceDisableHls: _,
|
|
602
|
+
forceDASH: _,
|
|
603
|
+
forceFLV: _,
|
|
604
|
+
hlsOptions: h,
|
|
605
|
+
hlsVersion: p,
|
|
606
|
+
dashVersion: p,
|
|
607
|
+
flvVersion: p
|
|
608
|
+
}),
|
|
609
|
+
wistia: P({
|
|
610
|
+
options: h,
|
|
611
|
+
playerId: p,
|
|
612
|
+
customControls: F
|
|
613
|
+
}),
|
|
614
|
+
mixcloud: P({
|
|
615
|
+
options: h
|
|
616
|
+
}),
|
|
617
|
+
twitch: P({
|
|
618
|
+
options: h,
|
|
619
|
+
playerId: p
|
|
620
|
+
}),
|
|
621
|
+
vidyard: P({
|
|
622
|
+
options: h
|
|
623
|
+
})
|
|
624
|
+
}),
|
|
625
|
+
onReady: l,
|
|
626
|
+
onStart: l,
|
|
627
|
+
onPlay: l,
|
|
628
|
+
onPause: l,
|
|
629
|
+
onBuffer: l,
|
|
630
|
+
onBufferEnd: l,
|
|
631
|
+
onEnded: l,
|
|
632
|
+
onError: l,
|
|
633
|
+
onDuration: l,
|
|
634
|
+
onSeek: l,
|
|
635
|
+
onPlaybackRateChange: l,
|
|
636
|
+
onPlaybackQualityChange: l,
|
|
637
|
+
onProgress: l,
|
|
638
|
+
onClickPreview: l,
|
|
639
|
+
onEnablePIP: l,
|
|
640
|
+
onDisablePIP: l
|
|
641
|
+
}, d = () => {
|
|
642
|
+
}, Tr = {
|
|
643
|
+
playing: !1,
|
|
644
|
+
loop: !1,
|
|
645
|
+
controls: !1,
|
|
646
|
+
volume: null,
|
|
647
|
+
muted: !1,
|
|
648
|
+
playbackRate: 1,
|
|
649
|
+
width: "640px",
|
|
650
|
+
height: "360px",
|
|
651
|
+
style: {},
|
|
652
|
+
progressInterval: 1e3,
|
|
653
|
+
playsinline: !1,
|
|
654
|
+
pip: !1,
|
|
655
|
+
stopOnUnmount: !0,
|
|
656
|
+
light: !1,
|
|
657
|
+
fallback: null,
|
|
658
|
+
wrapper: "div",
|
|
659
|
+
previewTabIndex: 0,
|
|
660
|
+
previewAriaLabel: "",
|
|
661
|
+
oEmbedUrl: "https://noembed.com/embed?url={url}",
|
|
662
|
+
config: {
|
|
663
|
+
soundcloud: {
|
|
664
|
+
options: {
|
|
665
|
+
visual: !0,
|
|
666
|
+
// Undocumented, but makes player fill container and look better
|
|
667
|
+
buying: !1,
|
|
668
|
+
liking: !1,
|
|
669
|
+
download: !1,
|
|
670
|
+
sharing: !1,
|
|
671
|
+
show_comments: !1,
|
|
672
|
+
show_playcount: !1
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
youtube: {
|
|
676
|
+
playerVars: {
|
|
677
|
+
playsinline: 1,
|
|
678
|
+
showinfo: 0,
|
|
679
|
+
rel: 0,
|
|
680
|
+
iv_load_policy: 3,
|
|
681
|
+
modestbranding: 1
|
|
682
|
+
},
|
|
683
|
+
embedOptions: {},
|
|
684
|
+
onUnstarted: d
|
|
685
|
+
},
|
|
686
|
+
facebook: {
|
|
687
|
+
appId: "1309697205772819",
|
|
688
|
+
version: "v3.3",
|
|
689
|
+
playerId: null,
|
|
690
|
+
attributes: {}
|
|
691
|
+
},
|
|
692
|
+
dailymotion: {
|
|
693
|
+
params: {
|
|
694
|
+
api: 1,
|
|
695
|
+
"endscreen-enable": !1
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
vimeo: {
|
|
699
|
+
playerOptions: {
|
|
700
|
+
autopause: !1,
|
|
701
|
+
byline: !1,
|
|
702
|
+
portrait: !1,
|
|
703
|
+
title: !1
|
|
704
|
+
},
|
|
705
|
+
title: null
|
|
706
|
+
},
|
|
707
|
+
mux: {
|
|
708
|
+
attributes: {},
|
|
709
|
+
version: "2"
|
|
710
|
+
},
|
|
711
|
+
file: {
|
|
712
|
+
attributes: {},
|
|
713
|
+
tracks: [],
|
|
714
|
+
forceVideo: !1,
|
|
715
|
+
forceAudio: !1,
|
|
716
|
+
forceHLS: !1,
|
|
717
|
+
forceDASH: !1,
|
|
718
|
+
forceFLV: !1,
|
|
719
|
+
hlsOptions: {},
|
|
720
|
+
hlsVersion: "1.1.4",
|
|
721
|
+
dashVersion: "3.1.3",
|
|
722
|
+
flvVersion: "1.5.0",
|
|
723
|
+
forceDisableHls: !1
|
|
724
|
+
},
|
|
725
|
+
wistia: {
|
|
726
|
+
options: {},
|
|
727
|
+
playerId: null,
|
|
728
|
+
customControls: null
|
|
729
|
+
},
|
|
730
|
+
mixcloud: {
|
|
731
|
+
options: {
|
|
732
|
+
hide_cover: 1
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
twitch: {
|
|
736
|
+
options: {},
|
|
737
|
+
playerId: null
|
|
738
|
+
},
|
|
739
|
+
vidyard: {
|
|
740
|
+
options: {}
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
onReady: d,
|
|
744
|
+
onStart: d,
|
|
745
|
+
onPlay: d,
|
|
746
|
+
onPause: d,
|
|
747
|
+
onBuffer: d,
|
|
748
|
+
onBufferEnd: d,
|
|
749
|
+
onEnded: d,
|
|
750
|
+
onError: d,
|
|
751
|
+
onDuration: d,
|
|
752
|
+
onSeek: d,
|
|
753
|
+
onPlaybackRateChange: d,
|
|
754
|
+
onPlaybackQualityChange: d,
|
|
755
|
+
onProgress: d,
|
|
756
|
+
onClickPreview: d,
|
|
757
|
+
onEnablePIP: d,
|
|
758
|
+
onDisablePIP: d
|
|
759
|
+
};
|
|
760
|
+
var Sr = Object.create, $ = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, Er = Object.getOwnPropertyNames, Mr = Object.getPrototypeOf, Ar = Object.prototype.hasOwnProperty, xr = (e, t, r) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rr = (e, t) => {
|
|
761
|
+
for (var r in t)
|
|
762
|
+
$(e, r, { get: t[r], enumerable: !0 });
|
|
763
|
+
}, ke = (e, t, r, n) => {
|
|
764
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
765
|
+
for (let a of Er(t))
|
|
766
|
+
!Ar.call(e, a) && a !== r && $(e, a, { get: () => t[a], enumerable: !(n = Cr(t, a)) || n.enumerable });
|
|
767
|
+
return e;
|
|
768
|
+
}, He = (e, t, r) => (r = e != null ? Sr(Mr(e)) : {}, ke(
|
|
769
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
770
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
771
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
772
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
773
|
+
!e || !e.__esModule ? $(r, "default", { value: e, enumerable: !0 }) : r,
|
|
774
|
+
e
|
|
775
|
+
)), Ir = (e) => ke($({}, "__esModule", { value: !0 }), e), s = (e, t, r) => (xr(e, typeof t != "symbol" ? t + "" : t, r), r), ze = {};
|
|
776
|
+
Rr(ze, {
|
|
777
|
+
default: () => k
|
|
778
|
+
});
|
|
779
|
+
var $r = Ir(ze), ue = He(Z), Lr = He(ye), Ve = Ue, Nr = D;
|
|
780
|
+
const jr = 5e3;
|
|
781
|
+
class k extends ue.Component {
|
|
782
|
+
constructor() {
|
|
783
|
+
super(...arguments), s(this, "mounted", !1), s(this, "isReady", !1), s(this, "isPlaying", !1), s(this, "isLoading", !0), s(this, "loadOnReady", null), s(this, "startOnPlay", !0), s(this, "seekOnPlay", null), s(this, "onDurationCalled", !1), s(this, "handlePlayerMount", (t) => {
|
|
784
|
+
if (this.player) {
|
|
785
|
+
this.progress();
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
this.player = t, this.player.load(this.props.url), this.progress();
|
|
789
|
+
}), s(this, "getInternalPlayer", (t) => this.player ? this.player[t] : null), s(this, "progress", () => {
|
|
790
|
+
if (this.props.url && this.player && this.isReady) {
|
|
791
|
+
const t = this.getCurrentTime() || 0, r = this.getSecondsLoaded(), n = this.getDuration();
|
|
792
|
+
if (n) {
|
|
793
|
+
const a = {
|
|
794
|
+
playedSeconds: t,
|
|
795
|
+
played: t / n
|
|
796
|
+
};
|
|
797
|
+
r !== null && (a.loadedSeconds = r, a.loaded = r / n), (a.playedSeconds !== this.prevPlayed || a.loadedSeconds !== this.prevLoaded) && this.props.onProgress(a), this.prevPlayed = a.playedSeconds, this.prevLoaded = a.loadedSeconds;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval);
|
|
801
|
+
}), s(this, "handleReady", () => {
|
|
802
|
+
if (!this.mounted)
|
|
803
|
+
return;
|
|
804
|
+
this.isReady = !0, this.isLoading = !1;
|
|
805
|
+
const { onReady: t, playing: r, volume: n, muted: a } = this.props;
|
|
806
|
+
t(), !a && n !== null && this.player.setVolume(n), this.loadOnReady ? (this.player.load(this.loadOnReady, !0), this.loadOnReady = null) : r && this.player.play(), this.handleDurationCheck();
|
|
807
|
+
}), s(this, "handlePlay", () => {
|
|
808
|
+
this.isPlaying = !0, this.isLoading = !1;
|
|
809
|
+
const { onStart: t, onPlay: r, playbackRate: n } = this.props;
|
|
810
|
+
this.startOnPlay && (this.player.setPlaybackRate && n !== 1 && this.player.setPlaybackRate(n), t(), this.startOnPlay = !1), r(), this.seekOnPlay && (this.seekTo(this.seekOnPlay), this.seekOnPlay = null), this.handleDurationCheck();
|
|
811
|
+
}), s(this, "handlePause", (t) => {
|
|
812
|
+
this.isPlaying = !1, this.isLoading || this.props.onPause(t);
|
|
813
|
+
}), s(this, "handleEnded", () => {
|
|
814
|
+
const { activePlayer: t, loop: r, onEnded: n } = this.props;
|
|
815
|
+
t.loopOnEnded && r && this.seekTo(0), r || (this.isPlaying = !1, n());
|
|
816
|
+
}), s(this, "handleError", (...t) => {
|
|
817
|
+
this.isLoading = !1, this.props.onError(...t);
|
|
818
|
+
}), s(this, "handleDurationCheck", () => {
|
|
819
|
+
clearTimeout(this.durationCheckTimeout);
|
|
820
|
+
const t = this.getDuration();
|
|
821
|
+
t ? this.onDurationCalled || (this.props.onDuration(t), this.onDurationCalled = !0) : this.durationCheckTimeout = setTimeout(this.handleDurationCheck, 100);
|
|
822
|
+
}), s(this, "handleLoaded", () => {
|
|
823
|
+
this.isLoading = !1;
|
|
824
|
+
});
|
|
825
|
+
}
|
|
826
|
+
componentDidMount() {
|
|
827
|
+
this.mounted = !0;
|
|
828
|
+
}
|
|
829
|
+
componentWillUnmount() {
|
|
830
|
+
clearTimeout(this.progressTimeout), clearTimeout(this.durationCheckTimeout), this.isReady && this.props.stopOnUnmount && (this.player.stop(), this.player.disablePIP && this.player.disablePIP()), this.mounted = !1;
|
|
831
|
+
}
|
|
832
|
+
componentDidUpdate(t) {
|
|
833
|
+
if (!this.player)
|
|
834
|
+
return;
|
|
835
|
+
const { url: r, playing: n, volume: a, muted: o, playbackRate: y, pip: f, loop: u, activePlayer: w, disableDeferredLoading: v } = this.props;
|
|
836
|
+
if (!(0, Lr.default)(t.url, r)) {
|
|
837
|
+
if (this.isLoading && !w.forceLoad && !v && !(0, Nr.isMediaStream)(r)) {
|
|
838
|
+
console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`), this.loadOnReady = r;
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
841
|
+
this.isLoading = !0, this.startOnPlay = !0, this.onDurationCalled = !1, this.player.load(r, this.isReady);
|
|
842
|
+
}
|
|
843
|
+
!t.playing && n && !this.isPlaying && this.player.play(), t.playing && !n && this.isPlaying && this.player.pause(), !t.pip && f && this.player.enablePIP && this.player.enablePIP(), t.pip && !f && this.player.disablePIP && this.player.disablePIP(), t.volume !== a && a !== null && this.player.setVolume(a), t.muted !== o && (o ? this.player.mute() : (this.player.unmute(), a !== null && setTimeout(() => this.player.setVolume(a)))), t.playbackRate !== y && this.player.setPlaybackRate && this.player.setPlaybackRate(y), t.loop !== u && this.player.setLoop && this.player.setLoop(u);
|
|
844
|
+
}
|
|
845
|
+
getDuration() {
|
|
846
|
+
return this.isReady ? this.player.getDuration() : null;
|
|
847
|
+
}
|
|
848
|
+
getCurrentTime() {
|
|
849
|
+
return this.isReady ? this.player.getCurrentTime() : null;
|
|
850
|
+
}
|
|
851
|
+
getSecondsLoaded() {
|
|
852
|
+
return this.isReady ? this.player.getSecondsLoaded() : null;
|
|
853
|
+
}
|
|
854
|
+
seekTo(t, r, n) {
|
|
855
|
+
if (!this.isReady) {
|
|
856
|
+
t !== 0 && (this.seekOnPlay = t, setTimeout(() => {
|
|
857
|
+
this.seekOnPlay = null;
|
|
858
|
+
}, jr));
|
|
859
|
+
return;
|
|
860
|
+
}
|
|
861
|
+
if (r ? r === "fraction" : t > 0 && t < 1) {
|
|
862
|
+
const o = this.player.getDuration();
|
|
863
|
+
if (!o) {
|
|
864
|
+
console.warn("ReactPlayer: could not seek using fraction – duration not yet available");
|
|
865
|
+
return;
|
|
866
|
+
}
|
|
867
|
+
this.player.seekTo(o * t, n);
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
870
|
+
this.player.seekTo(t, n);
|
|
871
|
+
}
|
|
872
|
+
render() {
|
|
873
|
+
const t = this.props.activePlayer;
|
|
874
|
+
return t ? /* @__PURE__ */ ue.default.createElement(
|
|
875
|
+
t,
|
|
876
|
+
{
|
|
877
|
+
...this.props,
|
|
878
|
+
onMount: this.handlePlayerMount,
|
|
879
|
+
onReady: this.handleReady,
|
|
880
|
+
onPlay: this.handlePlay,
|
|
881
|
+
onPause: this.handlePause,
|
|
882
|
+
onEnded: this.handleEnded,
|
|
883
|
+
onLoaded: this.handleLoaded,
|
|
884
|
+
onError: this.handleError
|
|
885
|
+
}
|
|
886
|
+
) : null;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
s(k, "displayName", "Player");
|
|
890
|
+
s(k, "propTypes", Ve.propTypes);
|
|
891
|
+
s(k, "defaultProps", Ve.defaultProps);
|
|
892
|
+
var Dr = Object.create, L = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, kr = Object.getOwnPropertyNames, Hr = Object.getPrototypeOf, zr = Object.prototype.hasOwnProperty, Vr = (e, t, r) => t in e ? L(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fr = (e, t) => {
|
|
893
|
+
for (var r in t)
|
|
894
|
+
L(e, r, { get: t[r], enumerable: !0 });
|
|
895
|
+
}, Fe = (e, t, r, n) => {
|
|
896
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
897
|
+
for (let a of kr(t))
|
|
898
|
+
!zr.call(e, a) && a !== r && L(e, a, { get: () => t[a], enumerable: !(n = Ur(t, a)) || n.enumerable });
|
|
899
|
+
return e;
|
|
900
|
+
}, N = (e, t, r) => (r = e != null ? Dr(Hr(e)) : {}, Fe(
|
|
901
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
902
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
903
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
904
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
905
|
+
!e || !e.__esModule ? L(r, "default", { value: e, enumerable: !0 }) : r,
|
|
906
|
+
e
|
|
907
|
+
)), Br = (e) => Fe(L({}, "__esModule", { value: !0 }), e), i = (e, t, r) => (Vr(e, typeof t != "symbol" ? t + "" : t, r), r), Be = {};
|
|
908
|
+
Fr(Be, {
|
|
909
|
+
createReactPlayer: () => Qr
|
|
910
|
+
});
|
|
911
|
+
var Kr = Br(Be), C = N(Z), Xr = N(he), B = N(yr), pe = N(ye), R = Ue, Ke = D, Wr = N($r);
|
|
912
|
+
const Yr = (0, Ke.lazy)(() => import(
|
|
913
|
+
/* webpackChunkName: 'reactPlayerPreview' */
|
|
914
|
+
"./Preview-CO6WSP5f.js"
|
|
915
|
+
).then((e) => e.P)), Jr = typeof window < "u" && window.document && typeof document < "u", Zr = typeof z < "u" && z.window && z.window.document, qr = Object.keys(R.propTypes), Gr = Jr || Zr ? C.Suspense : () => null, x = [], Qr = (e, t) => {
|
|
916
|
+
var r;
|
|
917
|
+
return r = class extends C.Component {
|
|
918
|
+
constructor() {
|
|
919
|
+
super(...arguments), i(this, "state", {
|
|
920
|
+
showPreview: !!this.props.light
|
|
921
|
+
}), i(this, "references", {
|
|
922
|
+
wrapper: (n) => {
|
|
923
|
+
this.wrapper = n;
|
|
924
|
+
},
|
|
925
|
+
player: (n) => {
|
|
926
|
+
this.player = n;
|
|
927
|
+
}
|
|
928
|
+
}), i(this, "handleClickPreview", (n) => {
|
|
929
|
+
this.setState({ showPreview: !1 }), this.props.onClickPreview(n);
|
|
930
|
+
}), i(this, "showPreview", () => {
|
|
931
|
+
this.setState({ showPreview: !0 });
|
|
932
|
+
}), i(this, "getDuration", () => this.player ? this.player.getDuration() : null), i(this, "getCurrentTime", () => this.player ? this.player.getCurrentTime() : null), i(this, "getSecondsLoaded", () => this.player ? this.player.getSecondsLoaded() : null), i(this, "getInternalPlayer", (n = "player") => this.player ? this.player.getInternalPlayer(n) : null), i(this, "seekTo", (n, a, o) => {
|
|
933
|
+
if (!this.player)
|
|
934
|
+
return null;
|
|
935
|
+
this.player.seekTo(n, a, o);
|
|
936
|
+
}), i(this, "handleReady", () => {
|
|
937
|
+
this.props.onReady(this);
|
|
938
|
+
}), i(this, "getActivePlayer", (0, B.default)((n) => {
|
|
939
|
+
for (const a of [...x, ...e])
|
|
940
|
+
if (a.canPlay(n))
|
|
941
|
+
return a;
|
|
942
|
+
return t || null;
|
|
943
|
+
})), i(this, "getConfig", (0, B.default)((n, a) => {
|
|
944
|
+
const { config: o } = this.props;
|
|
945
|
+
return Xr.default.all([
|
|
946
|
+
R.defaultProps.config,
|
|
947
|
+
R.defaultProps.config[a] || {},
|
|
948
|
+
o,
|
|
949
|
+
o[a] || {}
|
|
950
|
+
]);
|
|
951
|
+
})), i(this, "getAttributes", (0, B.default)((n) => (0, Ke.omit)(this.props, qr))), i(this, "renderActivePlayer", (n) => {
|
|
952
|
+
if (!n)
|
|
953
|
+
return null;
|
|
954
|
+
const a = this.getActivePlayer(n);
|
|
955
|
+
if (!a)
|
|
956
|
+
return null;
|
|
957
|
+
const o = this.getConfig(n, a.key);
|
|
958
|
+
return /* @__PURE__ */ C.default.createElement(
|
|
959
|
+
Wr.default,
|
|
960
|
+
{
|
|
961
|
+
...this.props,
|
|
962
|
+
key: a.key,
|
|
963
|
+
ref: this.references.player,
|
|
964
|
+
config: o,
|
|
965
|
+
activePlayer: a.lazyPlayer || a,
|
|
966
|
+
onReady: this.handleReady
|
|
967
|
+
}
|
|
968
|
+
);
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
shouldComponentUpdate(n, a) {
|
|
972
|
+
return !(0, pe.default)(this.props, n) || !(0, pe.default)(this.state, a);
|
|
973
|
+
}
|
|
974
|
+
componentDidUpdate(n) {
|
|
975
|
+
const { light: a } = this.props;
|
|
976
|
+
!n.light && a && this.setState({ showPreview: !0 }), n.light && !a && this.setState({ showPreview: !1 });
|
|
977
|
+
}
|
|
978
|
+
renderPreview(n) {
|
|
979
|
+
if (!n)
|
|
980
|
+
return null;
|
|
981
|
+
const { light: a, playIcon: o, previewTabIndex: y, oEmbedUrl: f, previewAriaLabel: u } = this.props;
|
|
982
|
+
return /* @__PURE__ */ C.default.createElement(
|
|
983
|
+
Yr,
|
|
984
|
+
{
|
|
985
|
+
url: n,
|
|
986
|
+
light: a,
|
|
987
|
+
playIcon: o,
|
|
988
|
+
previewTabIndex: y,
|
|
989
|
+
previewAriaLabel: u,
|
|
990
|
+
oEmbedUrl: f,
|
|
991
|
+
onClick: this.handleClickPreview
|
|
992
|
+
}
|
|
993
|
+
);
|
|
994
|
+
}
|
|
995
|
+
render() {
|
|
996
|
+
const { url: n, style: a, width: o, height: y, fallback: f, wrapper: u } = this.props, { showPreview: w } = this.state, v = this.getAttributes(n), M = typeof u == "string" ? this.references.wrapper : void 0;
|
|
997
|
+
return /* @__PURE__ */ C.default.createElement(u, { ref: M, style: { ...a, width: o, height: y }, ...v }, /* @__PURE__ */ C.default.createElement(Gr, { fallback: f }, w ? this.renderPreview(n) : this.renderActivePlayer(n)));
|
|
998
|
+
}
|
|
999
|
+
}, i(r, "displayName", "ReactPlayer"), i(r, "propTypes", R.propTypes), i(r, "defaultProps", R.defaultProps), i(r, "addCustomPlayer", (n) => {
|
|
1000
|
+
x.push(n);
|
|
1001
|
+
}), i(r, "removeCustomPlayers", () => {
|
|
1002
|
+
x.length = 0;
|
|
1003
|
+
}), i(r, "canPlay", (n) => {
|
|
1004
|
+
for (const a of [...x, ...e])
|
|
1005
|
+
if (a.canPlay(n))
|
|
1006
|
+
return !0;
|
|
1007
|
+
return !1;
|
|
1008
|
+
}), i(r, "canEnablePIP", (n) => {
|
|
1009
|
+
for (const a of [...x, ...e])
|
|
1010
|
+
if (a.canEnablePIP && a.canEnablePIP(n))
|
|
1011
|
+
return !0;
|
|
1012
|
+
return !1;
|
|
1013
|
+
}), r;
|
|
1014
|
+
};
|
|
1015
|
+
var ea = Object.create, H = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, ra = Object.getOwnPropertyNames, aa = Object.getPrototypeOf, na = Object.prototype.hasOwnProperty, oa = (e, t) => {
|
|
1016
|
+
for (var r in t)
|
|
1017
|
+
H(e, r, { get: t[r], enumerable: !0 });
|
|
1018
|
+
}, Xe = (e, t, r, n) => {
|
|
1019
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
1020
|
+
for (let a of ra(t))
|
|
1021
|
+
!na.call(e, a) && a !== r && H(e, a, { get: () => t[a], enumerable: !(n = ta(t, a)) || n.enumerable });
|
|
1022
|
+
return e;
|
|
1023
|
+
}, ia = (e, t, r) => (r = e != null ? ea(aa(e)) : {}, Xe(
|
|
1024
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
1025
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
1026
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1027
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1028
|
+
!e || !e.__esModule ? H(r, "default", { value: e, enumerable: !0 }) : r,
|
|
1029
|
+
e
|
|
1030
|
+
)), sa = (e) => Xe(H({}, "__esModule", { value: !0 }), e), We = {};
|
|
1031
|
+
oa(We, {
|
|
1032
|
+
default: () => pa
|
|
1033
|
+
});
|
|
1034
|
+
var la = sa(We), J = ia(sr), ca = Kr;
|
|
1035
|
+
const ua = J.default[J.default.length - 1];
|
|
1036
|
+
var pa = (0, ca.createReactPlayer)(J.default, ua);
|
|
1037
|
+
const da = /* @__PURE__ */ tt(la), ya = "data:image/svg+xml,%3csvg%20width='65'%20height='65'%20viewBox='0%200%2065%2065'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.253906'%20y='0.5'%20width='64'%20height='64'%20rx='32'%20fill='url(%23paint0_linear_59350_95007)'/%3e%3cpath%20d='M21.0039%2047.5001C20.6724%2047.5001%2020.3544%2047.3684%2020.12%2047.134C19.8856%2046.8996%2019.7539%2046.5816%2019.7539%2046.2501V18.7501C19.7539%2018.5329%2019.8105%2018.3194%2019.9181%2018.1307C20.0257%2017.942%2020.1807%2017.7846%2020.3677%2017.674C20.5546%2017.5635%2020.7672%2017.5035%2020.9844%2017.5002C21.2016%2017.4968%2021.4159%2017.55%2021.6063%2017.6547L46.6063%2031.4047C46.8024%2031.5126%2046.966%2031.6711%2047.0799%2031.8638C47.1939%2032.0565%2047.254%2032.2762%2047.254%2032.5C47.254%2032.7239%2047.1939%2032.9436%2047.0799%2033.1363C46.966%2033.3289%2046.8024%2033.4875%2046.6063%2033.5953L21.6063%2047.3453C21.4217%2047.4468%2021.2145%2047.5001%2021.0039%2047.5001Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_59350_95007'%20x1='32.2539'%20y1='64.5'%20x2='32.254'%20y2='0.499999'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF7621'/%3e%3cstop%20offset='1'%20stop-color='%23FF9706'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Ye = ({ thumbnail: e }) => /* @__PURE__ */ S(nt, { children: [
|
|
1038
|
+
/* @__PURE__ */ c("img", { src: e, className: "section__thumbnail", alt: "Thumbnail" }),
|
|
1039
|
+
/* @__PURE__ */ c("img", { src: ya, className: "section__play", alt: "Play" })
|
|
1040
|
+
] }), Je = q(({ video: e, thumbnail: t }, r) => {
|
|
1041
|
+
const n = rt();
|
|
1042
|
+
return /* @__PURE__ */ c(
|
|
1043
|
+
da,
|
|
1044
|
+
{
|
|
1045
|
+
url: e,
|
|
1046
|
+
playing: !0,
|
|
1047
|
+
controls: !0,
|
|
1048
|
+
width: n ? "100%" : "31.25rem",
|
|
1049
|
+
height: n ? "100%" : "18.75rem",
|
|
1050
|
+
light: !0,
|
|
1051
|
+
playIcon: /* @__PURE__ */ c(Ye, { thumbnail: t })
|
|
1052
|
+
}
|
|
1053
|
+
);
|
|
1054
|
+
});
|
|
1055
|
+
Ye.propTypes = {
|
|
1056
|
+
thumbnail: b.string
|
|
1057
|
+
};
|
|
1058
|
+
Je.propTypes = {
|
|
1059
|
+
video: b.string,
|
|
1060
|
+
thumbnail: b.string
|
|
1061
|
+
};
|
|
1062
|
+
const fa = G.div`
|
|
1063
|
+
display: flex;
|
|
1064
|
+
justify-content: space-between;
|
|
1065
|
+
align-items: center;
|
|
1066
|
+
|
|
1067
|
+
& .section__left {
|
|
1068
|
+
display: flex;
|
|
1069
|
+
flex-direction: column;
|
|
1070
|
+
gap: 2rem;
|
|
1071
|
+
|
|
1072
|
+
&.search {
|
|
1073
|
+
gap: 0.75rem;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
& .section__title {
|
|
1077
|
+
color: var(--gray-900, #0c1520);
|
|
1078
|
+
font-size: 1.75rem;
|
|
1079
|
+
font-style: normal;
|
|
1080
|
+
font-weight: 600;
|
|
1081
|
+
line-height: 2.25rem;
|
|
1082
|
+
letter-spacing: -0.0369rem;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
& .section__text-input {
|
|
1086
|
+
border-radius: 999px;
|
|
1087
|
+
height: 3rem;
|
|
1088
|
+
min-height: 3rem;
|
|
1089
|
+
border: 1px solid var(--gray-200, #e4e9f0);
|
|
1090
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
1091
|
+
outline: none;
|
|
1092
|
+
|
|
1093
|
+
& input::placeholder {
|
|
1094
|
+
color: var(--gray-500, #7a8594);
|
|
1095
|
+
font-size: 0.875rem;
|
|
1096
|
+
font-style: normal;
|
|
1097
|
+
font-weight: 400;
|
|
1098
|
+
line-height: 1.25rem;
|
|
1099
|
+
letter-spacing: 0.0156rem;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
& .section__prefix {
|
|
1103
|
+
color: var(--gray-500, #7a8594);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
& .section__description {
|
|
1108
|
+
color: var(--gray-500, #7a8594);
|
|
1109
|
+
font-size: 1rem;
|
|
1110
|
+
font-style: normal;
|
|
1111
|
+
font-weight: 500;
|
|
1112
|
+
line-height: 1.5rem;
|
|
1113
|
+
letter-spacing: -0.0112rem;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
& .section__tags {
|
|
1117
|
+
display: flex;
|
|
1118
|
+
align-items: center;
|
|
1119
|
+
gap: 1.25rem;
|
|
1120
|
+
|
|
1121
|
+
& .section__suggested {
|
|
1122
|
+
color: var(--neutral-900, #0c1520);
|
|
1123
|
+
font-size: 0.75rem;
|
|
1124
|
+
font-style: normal;
|
|
1125
|
+
font-weight: 400;
|
|
1126
|
+
line-height: 1rem;
|
|
1127
|
+
letter-spacing: 0.025rem;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
& .section__right {
|
|
1133
|
+
& video {
|
|
1134
|
+
border-radius: 1rem;
|
|
1135
|
+
overflow: hidden;
|
|
1136
|
+
object-fit: cover;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
@media (max-width: ${de + "px"}) {
|
|
1141
|
+
flex-direction: column;
|
|
1142
|
+
gap: 1.5rem;
|
|
1143
|
+
|
|
1144
|
+
& .section__left {
|
|
1145
|
+
width: 100%;
|
|
1146
|
+
text-align: center;
|
|
1147
|
+
|
|
1148
|
+
& .section__suggested {
|
|
1149
|
+
display: none;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
& .section__text-input {
|
|
1154
|
+
width: 100%;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
`, ha = q(
|
|
1158
|
+
({
|
|
1159
|
+
title: e,
|
|
1160
|
+
description: t,
|
|
1161
|
+
suggestedText: r,
|
|
1162
|
+
searchPlaceholderText: n,
|
|
1163
|
+
tags: a = [],
|
|
1164
|
+
includeSearch: o = !1,
|
|
1165
|
+
video: y,
|
|
1166
|
+
thumbnail: f
|
|
1167
|
+
}, u) => /* @__PURE__ */ S(fa, { ref: u, children: [
|
|
1168
|
+
o ? /* @__PURE__ */ S("div", { className: "section__left search", children: [
|
|
1169
|
+
/* @__PURE__ */ c("div", { children: e && /* @__PURE__ */ c("div", { className: "section__title", children: e }) }),
|
|
1170
|
+
/* @__PURE__ */ c(
|
|
1171
|
+
qe,
|
|
1172
|
+
{
|
|
1173
|
+
className: "section__text-input",
|
|
1174
|
+
placeholder: n,
|
|
1175
|
+
prefix: /* @__PURE__ */ c(
|
|
1176
|
+
Ge,
|
|
1177
|
+
{
|
|
1178
|
+
icon: " mng-lnc-search",
|
|
1179
|
+
sizeInUnits: "1.25rem",
|
|
1180
|
+
className: "section__prefix"
|
|
1181
|
+
}
|
|
1182
|
+
),
|
|
1183
|
+
color: "neutral"
|
|
1184
|
+
}
|
|
1185
|
+
),
|
|
1186
|
+
/* @__PURE__ */ S("div", { className: "section__tags", children: [
|
|
1187
|
+
/* @__PURE__ */ c("div", { className: "section__suggested", children: r }),
|
|
1188
|
+
/* @__PURE__ */ c(K, { tags: a })
|
|
1189
|
+
] })
|
|
1190
|
+
] }) : /* @__PURE__ */ S("div", { className: "section__left", children: [
|
|
1191
|
+
/* @__PURE__ */ S("div", { children: [
|
|
1192
|
+
e && /* @__PURE__ */ c("div", { className: "section__title", children: e }),
|
|
1193
|
+
t && /* @__PURE__ */ c("div", { className: "section__description", children: t })
|
|
1194
|
+
] }),
|
|
1195
|
+
/* @__PURE__ */ c("div", { className: "section__tags", children: /* @__PURE__ */ c(K, { tags: a }) })
|
|
1196
|
+
] }),
|
|
1197
|
+
/* @__PURE__ */ c("div", { className: "section__right", children: /* @__PURE__ */ c(Je, { video: y, thumbnail: f }) })
|
|
1198
|
+
] })
|
|
1199
|
+
);
|
|
1200
|
+
ha.propTypes = {
|
|
1201
|
+
title: b.string,
|
|
1202
|
+
description: b.string,
|
|
1203
|
+
suggestedText: b.string,
|
|
1204
|
+
searchPlaceholderText: b.string,
|
|
1205
|
+
tags: b.array,
|
|
1206
|
+
includeSearch: b.bool,
|
|
1207
|
+
video: b.string,
|
|
1208
|
+
thumbnail: b.string
|
|
1209
|
+
};
|
|
1210
|
+
export {
|
|
1211
|
+
ha as S,
|
|
1212
|
+
Qt as p,
|
|
1213
|
+
D as u
|
|
1214
|
+
};
|