@lanaco/lnc-react-ui 4.0.198 → 4.0.200
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 +5 -5
- package/dist/Accordion.js +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +19 -19
- package/dist/SalesCampaignsSection.js +283 -324
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +6 -5
- package/dist/ToggleSection.js +49 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +1 -1
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
const
|
|
1
|
+
import { jsx as c, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import Y, { forwardRef as J } from "react";
|
|
3
|
+
import We from "./TextInput.js";
|
|
4
|
+
import Ye from "./Icon.js";
|
|
5
|
+
import Je from "./Chip.js";
|
|
6
|
+
import { s as Z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
|
+
import { M as pe } from "./consts-BuFChS64.js";
|
|
8
|
+
import { a as Ze, c as H, g as qe } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
9
|
+
import { r as de } from "./index-wlx30R-h.js";
|
|
10
|
+
import { p as Ge } from "./index-CblbdqjE.js";
|
|
11
|
+
import { u as Qe } from "./useDetectMobile-Bkvj0VMa.js";
|
|
12
|
+
const et = Z.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
gap: 0.5rem;
|
|
15
15
|
align-content: center;
|
|
@@ -33,7 +33,7 @@ const at = G.div`
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@media (max-width: ${
|
|
36
|
+
@media (max-width: ${pe + "px"}) {
|
|
37
37
|
width: 100%;
|
|
38
38
|
overflow-x: auto;
|
|
39
39
|
white-space: nowrap;
|
|
@@ -52,7 +52,7 @@ const at = G.div`
|
|
|
52
52
|
/* Safari and Chrome */
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`, tt = Z.div`
|
|
56
56
|
position: relative;
|
|
57
57
|
display: flex;
|
|
58
58
|
justify-content: center;
|
|
@@ -74,10 +74,10 @@ const at = G.div`
|
|
|
74
74
|
& .section__play {
|
|
75
75
|
position: absolute;
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`, ae = J(
|
|
78
78
|
({ tags: e = [], selectedTagCode: t = null, onSelectTag: r = () => {
|
|
79
|
-
} }, n) => /* @__PURE__ */ c(
|
|
80
|
-
|
|
79
|
+
} }, n) => /* @__PURE__ */ c(et, { ref: n, children: e == null ? void 0 : e.map((a, o) => /* @__PURE__ */ c(
|
|
80
|
+
Je,
|
|
81
81
|
{
|
|
82
82
|
label: a == null ? void 0 : a.name,
|
|
83
83
|
borderRadius: "curved",
|
|
@@ -90,71 +90,67 @@ const at = G.div`
|
|
|
90
90
|
`search-section-tag__${o + 1}`
|
|
91
91
|
)) })
|
|
92
92
|
);
|
|
93
|
-
|
|
94
|
-
tags: b.array,
|
|
95
|
-
onSelectTag: b.func
|
|
96
|
-
};
|
|
97
|
-
var ot = function(t, r, n) {
|
|
93
|
+
var rt = function(t, r, n) {
|
|
98
94
|
var a = document.head || document.getElementsByTagName("head")[0], o = document.createElement("script");
|
|
99
95
|
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 &&
|
|
101
|
-
var
|
|
102
|
-
|
|
96
|
+
}, o.type = r.type || "text/javascript", o.charset = r.charset || "utf8", o.async = "async" in r ? !!r.async : !0, o.src = t, r.attrs && at(o, r.attrs), r.text && (o.text = "" + r.text);
|
|
97
|
+
var f = "onload" in o ? ne : nt;
|
|
98
|
+
f(o, n), o.onload || ne(o, n), a.appendChild(o);
|
|
103
99
|
};
|
|
104
|
-
function
|
|
100
|
+
function at(e, t) {
|
|
105
101
|
for (var r in t)
|
|
106
102
|
e.setAttribute(r, t[r]);
|
|
107
103
|
}
|
|
108
|
-
function
|
|
104
|
+
function ne(e, t) {
|
|
109
105
|
e.onload = function() {
|
|
110
106
|
this.onerror = this.onload = null, t(null, e);
|
|
111
107
|
}, e.onerror = function() {
|
|
112
108
|
this.onerror = this.onload = null, t(new Error("Failed to load " + this.src), e);
|
|
113
109
|
};
|
|
114
110
|
}
|
|
115
|
-
function
|
|
111
|
+
function nt(e, t) {
|
|
116
112
|
e.onreadystatechange = function() {
|
|
117
113
|
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, t(null, e));
|
|
118
114
|
};
|
|
119
115
|
}
|
|
120
|
-
var
|
|
121
|
-
return
|
|
116
|
+
var ot = function(t) {
|
|
117
|
+
return it(t) && !st(t);
|
|
122
118
|
};
|
|
123
|
-
function
|
|
119
|
+
function it(e) {
|
|
124
120
|
return !!e && typeof e == "object";
|
|
125
121
|
}
|
|
126
|
-
function
|
|
122
|
+
function st(e) {
|
|
127
123
|
var t = Object.prototype.toString.call(e);
|
|
128
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
124
|
+
return t === "[object RegExp]" || t === "[object Date]" || ut(e);
|
|
129
125
|
}
|
|
130
|
-
var
|
|
131
|
-
function
|
|
132
|
-
return e.$$typeof ===
|
|
126
|
+
var lt = typeof Symbol == "function" && Symbol.for, ct = lt ? Symbol.for("react.element") : 60103;
|
|
127
|
+
function ut(e) {
|
|
128
|
+
return e.$$typeof === ct;
|
|
133
129
|
}
|
|
134
|
-
function
|
|
130
|
+
function pt(e) {
|
|
135
131
|
return Array.isArray(e) ? [] : {};
|
|
136
132
|
}
|
|
137
|
-
function
|
|
138
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
133
|
+
function x(e, t) {
|
|
134
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? C(pt(e), e, t) : e;
|
|
139
135
|
}
|
|
140
|
-
function
|
|
136
|
+
function dt(e, t, r) {
|
|
141
137
|
return e.concat(t).map(function(n) {
|
|
142
|
-
return
|
|
138
|
+
return x(n, r);
|
|
143
139
|
});
|
|
144
140
|
}
|
|
145
|
-
function
|
|
141
|
+
function ft(e, t) {
|
|
146
142
|
if (!t.customMerge)
|
|
147
|
-
return
|
|
143
|
+
return C;
|
|
148
144
|
var r = t.customMerge(e);
|
|
149
|
-
return typeof r == "function" ? r :
|
|
145
|
+
return typeof r == "function" ? r : C;
|
|
150
146
|
}
|
|
151
|
-
function
|
|
147
|
+
function yt(e) {
|
|
152
148
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
153
149
|
return Object.propertyIsEnumerable.call(e, t);
|
|
154
150
|
}) : [];
|
|
155
151
|
}
|
|
156
|
-
function
|
|
157
|
-
return Object.keys(e).concat(
|
|
152
|
+
function oe(e) {
|
|
153
|
+
return Object.keys(e).concat(yt(e));
|
|
158
154
|
}
|
|
159
155
|
function fe(e, t) {
|
|
160
156
|
try {
|
|
@@ -163,437 +159,437 @@ function fe(e, t) {
|
|
|
163
159
|
return !1;
|
|
164
160
|
}
|
|
165
161
|
}
|
|
166
|
-
function
|
|
162
|
+
function ht(e, t) {
|
|
167
163
|
return fe(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
168
164
|
}
|
|
169
|
-
function
|
|
165
|
+
function mt(e, t, r) {
|
|
170
166
|
var n = {};
|
|
171
|
-
return r.isMergeableObject(e) &&
|
|
172
|
-
n[a] =
|
|
173
|
-
}),
|
|
174
|
-
|
|
167
|
+
return r.isMergeableObject(e) && oe(e).forEach(function(a) {
|
|
168
|
+
n[a] = x(e[a], r);
|
|
169
|
+
}), oe(t).forEach(function(a) {
|
|
170
|
+
ht(e, a) || (fe(e, a) && r.isMergeableObject(t[a]) ? n[a] = ft(a, r)(e[a], t[a], r) : n[a] = x(t[a], r));
|
|
175
171
|
}), n;
|
|
176
172
|
}
|
|
177
|
-
function
|
|
178
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
173
|
+
function C(e, t, r) {
|
|
174
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || dt, r.isMergeableObject = r.isMergeableObject || ot, r.cloneUnlessOtherwiseSpecified = x;
|
|
179
175
|
var n = Array.isArray(t), a = Array.isArray(e), o = n === a;
|
|
180
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
176
|
+
return o ? n ? r.arrayMerge(e, t, r) : mt(e, t, r) : x(t, r);
|
|
181
177
|
}
|
|
182
|
-
|
|
178
|
+
C.all = function(t, r) {
|
|
183
179
|
if (!Array.isArray(t))
|
|
184
180
|
throw new Error("first argument should be an array");
|
|
185
181
|
return t.reduce(function(n, a) {
|
|
186
|
-
return
|
|
182
|
+
return C(n, a, r);
|
|
187
183
|
}, {});
|
|
188
184
|
};
|
|
189
|
-
var
|
|
185
|
+
var _t = C, ye = _t, Pt = Object.create, N = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, bt = Object.getOwnPropertyNames, vt = Object.getPrototypeOf, wt = Object.prototype.hasOwnProperty, Ot = (e, t) => {
|
|
190
186
|
for (var r in t)
|
|
191
|
-
|
|
192
|
-
},
|
|
187
|
+
N(e, r, { get: t[r], enumerable: !0 });
|
|
188
|
+
}, he = (e, t, r, n) => {
|
|
193
189
|
if (t && typeof t == "object" || typeof t == "function")
|
|
194
|
-
for (let a of
|
|
195
|
-
!
|
|
190
|
+
for (let a of bt(t))
|
|
191
|
+
!wt.call(e, a) && a !== r && N(e, a, { get: () => t[a], enumerable: !(n = gt(t, a)) || n.enumerable });
|
|
196
192
|
return e;
|
|
197
|
-
},
|
|
193
|
+
}, q = (e, t, r) => (r = e != null ? Pt(vt(e)) : {}, he(
|
|
198
194
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
199
195
|
// file that has been converted to a CommonJS file using a Babel-
|
|
200
196
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
201
197
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
202
|
-
!e || !e.__esModule ?
|
|
198
|
+
!e || !e.__esModule ? N(r, "default", { value: e, enumerable: !0 }) : r,
|
|
203
199
|
e
|
|
204
|
-
)),
|
|
205
|
-
|
|
206
|
-
callPlayer: () =>
|
|
207
|
-
getConfig: () =>
|
|
208
|
-
getSDK: () =>
|
|
209
|
-
isBlobUrl: () =>
|
|
210
|
-
isMediaStream: () =>
|
|
211
|
-
lazy: () =>
|
|
212
|
-
omit: () =>
|
|
213
|
-
parseEndTime: () =>
|
|
214
|
-
parseStartTime: () =>
|
|
215
|
-
queryString: () =>
|
|
216
|
-
randomString: () =>
|
|
217
|
-
supportsWebKitPresentationMode: () =>
|
|
200
|
+
)), St = (e) => he(N({}, "__esModule", { value: !0 }), e), me = {};
|
|
201
|
+
Ot(me, {
|
|
202
|
+
callPlayer: () => Ht,
|
|
203
|
+
getConfig: () => Ut,
|
|
204
|
+
getSDK: () => Dt,
|
|
205
|
+
isBlobUrl: () => Vt,
|
|
206
|
+
isMediaStream: () => zt,
|
|
207
|
+
lazy: () => Mt,
|
|
208
|
+
omit: () => kt,
|
|
209
|
+
parseEndTime: () => Lt,
|
|
210
|
+
parseStartTime: () => $t,
|
|
211
|
+
queryString: () => jt,
|
|
212
|
+
randomString: () => Nt,
|
|
213
|
+
supportsWebKitPresentationMode: () => Ft
|
|
218
214
|
});
|
|
219
|
-
var
|
|
220
|
-
const
|
|
215
|
+
var j = St(me), Tt = q(Y), Ct = q(rt), Et = q(ye);
|
|
216
|
+
const Mt = (e) => Tt.default.lazy(async () => {
|
|
221
217
|
const t = await e();
|
|
222
218
|
return typeof t.default == "function" ? t : t.default;
|
|
223
|
-
}),
|
|
224
|
-
function
|
|
219
|
+
}), At = /[?&#](?:start|t)=([0-9hms]+)/, Rt = /[?&#]end=([0-9hms]+)/, B = /(\d+)(h|m|s)/g, xt = /^\d+$/;
|
|
220
|
+
function _e(e, t) {
|
|
225
221
|
if (e instanceof Array)
|
|
226
222
|
return;
|
|
227
223
|
const r = e.match(t);
|
|
228
224
|
if (r) {
|
|
229
225
|
const n = r[1];
|
|
230
|
-
if (n.match(
|
|
231
|
-
return
|
|
232
|
-
if (
|
|
226
|
+
if (n.match(B))
|
|
227
|
+
return It(n);
|
|
228
|
+
if (xt.test(n))
|
|
233
229
|
return parseInt(n);
|
|
234
230
|
}
|
|
235
231
|
}
|
|
236
|
-
function
|
|
237
|
-
let t = 0, r =
|
|
232
|
+
function It(e) {
|
|
233
|
+
let t = 0, r = B.exec(e);
|
|
238
234
|
for (; r !== null; ) {
|
|
239
235
|
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 =
|
|
236
|
+
a === "h" && (t += parseInt(n, 10) * 60 * 60), a === "m" && (t += parseInt(n, 10) * 60), a === "s" && (t += parseInt(n, 10)), r = B.exec(e);
|
|
241
237
|
}
|
|
242
238
|
return t;
|
|
243
239
|
}
|
|
244
|
-
function
|
|
245
|
-
return
|
|
240
|
+
function $t(e) {
|
|
241
|
+
return _e(e, At);
|
|
246
242
|
}
|
|
247
|
-
function
|
|
248
|
-
return
|
|
243
|
+
function Lt(e) {
|
|
244
|
+
return _e(e, Rt);
|
|
249
245
|
}
|
|
250
|
-
function
|
|
246
|
+
function Nt() {
|
|
251
247
|
return Math.random().toString(36).substr(2, 5);
|
|
252
248
|
}
|
|
253
|
-
function
|
|
249
|
+
function jt(e) {
|
|
254
250
|
return Object.keys(e).map((t) => `${t}=${e[t]}`).join("&");
|
|
255
251
|
}
|
|
256
|
-
function
|
|
252
|
+
function z(e) {
|
|
257
253
|
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
254
|
}
|
|
259
|
-
const
|
|
260
|
-
const
|
|
261
|
-
return
|
|
262
|
-
if (
|
|
263
|
-
|
|
255
|
+
const w = {}, Dt = function(t, r, n = null, a = () => !0, o = Ct.default) {
|
|
256
|
+
const f = z(r);
|
|
257
|
+
return f && a(f) ? Promise.resolve(f) : new Promise((y, u) => {
|
|
258
|
+
if (w[t]) {
|
|
259
|
+
w[t].push({ resolve: y, reject: u });
|
|
264
260
|
return;
|
|
265
261
|
}
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
|
|
262
|
+
w[t] = [{ resolve: y, reject: u }];
|
|
263
|
+
const v = (b) => {
|
|
264
|
+
w[t].forEach((E) => E.resolve(b));
|
|
269
265
|
};
|
|
270
266
|
if (n) {
|
|
271
|
-
const
|
|
267
|
+
const b = window[n];
|
|
272
268
|
window[n] = function() {
|
|
273
|
-
|
|
269
|
+
b && b(), v(z(r));
|
|
274
270
|
};
|
|
275
271
|
}
|
|
276
|
-
o(t, (
|
|
277
|
-
|
|
272
|
+
o(t, (b) => {
|
|
273
|
+
b ? (w[t].forEach((E) => E.reject(b)), w[t] = null) : n || v(z(r));
|
|
278
274
|
});
|
|
279
275
|
});
|
|
280
276
|
};
|
|
281
|
-
function
|
|
282
|
-
return (0,
|
|
277
|
+
function Ut(e, t) {
|
|
278
|
+
return (0, Et.default)(t.config, e.config);
|
|
283
279
|
}
|
|
284
|
-
function
|
|
280
|
+
function kt(e, ...t) {
|
|
285
281
|
const r = [].concat(...t), n = {}, a = Object.keys(e);
|
|
286
282
|
for (const o of a)
|
|
287
283
|
r.indexOf(o) === -1 && (n[o] = e[o]);
|
|
288
284
|
return n;
|
|
289
285
|
}
|
|
290
|
-
function
|
|
286
|
+
function Ht(e, ...t) {
|
|
291
287
|
if (!this.player || !this.player[e]) {
|
|
292
288
|
let r = `ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;
|
|
293
289
|
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
290
|
}
|
|
295
291
|
return this.player[e](...t);
|
|
296
292
|
}
|
|
297
|
-
function
|
|
293
|
+
function zt(e) {
|
|
298
294
|
return typeof window < "u" && typeof window.MediaStream < "u" && e instanceof window.MediaStream;
|
|
299
295
|
}
|
|
300
|
-
function
|
|
296
|
+
function Vt(e) {
|
|
301
297
|
return /^blob:/.test(e);
|
|
302
298
|
}
|
|
303
|
-
function
|
|
299
|
+
function Ft(e = document.createElement("video")) {
|
|
304
300
|
const t = /iPhone|iPod/.test(navigator.userAgent) === !1;
|
|
305
301
|
return e.webkitSupportsPresentationMode && typeof e.webkitSetPresentationMode == "function" && t;
|
|
306
302
|
}
|
|
307
|
-
var
|
|
303
|
+
var G = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, Kt = Object.getOwnPropertyNames, Xt = Object.prototype.hasOwnProperty, Wt = (e, t) => {
|
|
308
304
|
for (var r in t)
|
|
309
|
-
|
|
310
|
-
},
|
|
305
|
+
G(e, r, { get: t[r], enumerable: !0 });
|
|
306
|
+
}, Yt = (e, t, r, n) => {
|
|
311
307
|
if (t && typeof t == "object" || typeof t == "function")
|
|
312
|
-
for (let a of
|
|
313
|
-
!
|
|
308
|
+
for (let a of Kt(t))
|
|
309
|
+
!Xt.call(e, a) && a !== r && G(e, a, { get: () => t[a], enumerable: !(n = Bt(t, a)) || n.enumerable });
|
|
314
310
|
return e;
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
AUDIO_EXTENSIONS: () =>
|
|
318
|
-
DASH_EXTENSIONS: () =>
|
|
319
|
-
FLV_EXTENSIONS: () =>
|
|
320
|
-
HLS_EXTENSIONS: () =>
|
|
321
|
-
MATCH_URL_DAILYMOTION: () =>
|
|
322
|
-
MATCH_URL_FACEBOOK: () =>
|
|
323
|
-
MATCH_URL_FACEBOOK_WATCH: () =>
|
|
324
|
-
MATCH_URL_KALTURA: () =>
|
|
325
|
-
MATCH_URL_MIXCLOUD: () =>
|
|
326
|
-
MATCH_URL_MUX: () =>
|
|
327
|
-
MATCH_URL_SOUNDCLOUD: () =>
|
|
328
|
-
MATCH_URL_STREAMABLE: () =>
|
|
329
|
-
MATCH_URL_TWITCH_CHANNEL: () =>
|
|
330
|
-
MATCH_URL_TWITCH_VIDEO: () =>
|
|
311
|
+
}, Jt = (e) => Yt(G({}, "__esModule", { value: !0 }), e), Pe = {};
|
|
312
|
+
Wt(Pe, {
|
|
313
|
+
AUDIO_EXTENSIONS: () => Q,
|
|
314
|
+
DASH_EXTENSIONS: () => Ie,
|
|
315
|
+
FLV_EXTENSIONS: () => $e,
|
|
316
|
+
HLS_EXTENSIONS: () => te,
|
|
317
|
+
MATCH_URL_DAILYMOTION: () => Me,
|
|
318
|
+
MATCH_URL_FACEBOOK: () => we,
|
|
319
|
+
MATCH_URL_FACEBOOK_WATCH: () => Oe,
|
|
320
|
+
MATCH_URL_KALTURA: () => xe,
|
|
321
|
+
MATCH_URL_MIXCLOUD: () => Ae,
|
|
322
|
+
MATCH_URL_MUX: () => ve,
|
|
323
|
+
MATCH_URL_SOUNDCLOUD: () => ge,
|
|
324
|
+
MATCH_URL_STREAMABLE: () => Se,
|
|
325
|
+
MATCH_URL_TWITCH_CHANNEL: () => Ee,
|
|
326
|
+
MATCH_URL_TWITCH_VIDEO: () => Ce,
|
|
331
327
|
MATCH_URL_VIDYARD: () => Re,
|
|
332
|
-
MATCH_URL_VIMEO: () =>
|
|
333
|
-
MATCH_URL_WISTIA: () =>
|
|
334
|
-
MATCH_URL_YOUTUBE: () =>
|
|
335
|
-
VIDEO_EXTENSIONS: () =>
|
|
336
|
-
canPlay: () =>
|
|
328
|
+
MATCH_URL_VIMEO: () => be,
|
|
329
|
+
MATCH_URL_WISTIA: () => Te,
|
|
330
|
+
MATCH_URL_YOUTUBE: () => K,
|
|
331
|
+
VIDEO_EXTENSIONS: () => ee,
|
|
332
|
+
canPlay: () => qt
|
|
337
333
|
});
|
|
338
|
-
var
|
|
339
|
-
const
|
|
334
|
+
var Zt = Jt(Pe), ie = j;
|
|
335
|
+
const K = /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//, ge = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/, be = /vimeo\.com\/(?!progressive_redirect).+/, ve = /stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/, we = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/, Oe = /^https?:\/\/fb\.watch\/.+$/, Se = /streamable\.com\/([a-z0-9]+)$/, Te = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/, Ce = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/, Ee = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/, Me = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/, Ae = /mixcloud\.com\/([^/]+\/[^/]+)/, Re = /vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/, xe = /^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-_].*)$/, Q = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i, ee = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i, te = /\.(m3u8)($|\?)/i, Ie = /\.(mpd)($|\?)/i, $e = /\.(flv)($|\?)/i, X = (e) => {
|
|
340
336
|
if (e instanceof Array) {
|
|
341
337
|
for (const t of e)
|
|
342
|
-
if (typeof t == "string" &&
|
|
338
|
+
if (typeof t == "string" && X(t) || X(t.src))
|
|
343
339
|
return !0;
|
|
344
340
|
return !1;
|
|
345
341
|
}
|
|
346
|
-
return (0,
|
|
347
|
-
},
|
|
348
|
-
youtube: (e) => e instanceof Array ? e.every((t) =>
|
|
349
|
-
soundcloud: (e) =>
|
|
350
|
-
vimeo: (e) =>
|
|
351
|
-
mux: (e) =>
|
|
352
|
-
facebook: (e) =>
|
|
353
|
-
streamable: (e) =>
|
|
354
|
-
wistia: (e) =>
|
|
355
|
-
twitch: (e) =>
|
|
356
|
-
dailymotion: (e) =>
|
|
357
|
-
mixcloud: (e) =>
|
|
342
|
+
return (0, ie.isMediaStream)(e) || (0, ie.isBlobUrl)(e) ? !0 : Q.test(e) || ee.test(e) || te.test(e) || Ie.test(e) || $e.test(e);
|
|
343
|
+
}, qt = {
|
|
344
|
+
youtube: (e) => e instanceof Array ? e.every((t) => K.test(t)) : K.test(e),
|
|
345
|
+
soundcloud: (e) => ge.test(e) && !Q.test(e),
|
|
346
|
+
vimeo: (e) => be.test(e) && !ee.test(e) && !te.test(e),
|
|
347
|
+
mux: (e) => ve.test(e),
|
|
348
|
+
facebook: (e) => we.test(e) || Oe.test(e),
|
|
349
|
+
streamable: (e) => Se.test(e),
|
|
350
|
+
wistia: (e) => Te.test(e),
|
|
351
|
+
twitch: (e) => Ce.test(e) || Ee.test(e),
|
|
352
|
+
dailymotion: (e) => Me.test(e),
|
|
353
|
+
mixcloud: (e) => Ae.test(e),
|
|
358
354
|
vidyard: (e) => Re.test(e),
|
|
359
|
-
kaltura: (e) =>
|
|
360
|
-
file:
|
|
355
|
+
kaltura: (e) => xe.test(e),
|
|
356
|
+
file: X
|
|
361
357
|
};
|
|
362
|
-
var
|
|
358
|
+
var re = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, Qt = Object.getOwnPropertyNames, er = Object.prototype.hasOwnProperty, tr = (e, t) => {
|
|
363
359
|
for (var r in t)
|
|
364
|
-
|
|
365
|
-
},
|
|
360
|
+
re(e, r, { get: t[r], enumerable: !0 });
|
|
361
|
+
}, rr = (e, t, r, n) => {
|
|
366
362
|
if (t && typeof t == "object" || typeof t == "function")
|
|
367
|
-
for (let a of
|
|
368
|
-
!
|
|
363
|
+
for (let a of Qt(t))
|
|
364
|
+
!er.call(e, a) && a !== r && re(e, a, { get: () => t[a], enumerable: !(n = Gt(t, a)) || n.enumerable });
|
|
369
365
|
return e;
|
|
370
|
-
},
|
|
371
|
-
|
|
372
|
-
default: () =>
|
|
366
|
+
}, ar = (e) => rr(re({}, "__esModule", { value: !0 }), e), Le = {};
|
|
367
|
+
tr(Le, {
|
|
368
|
+
default: () => or
|
|
373
369
|
});
|
|
374
|
-
var
|
|
370
|
+
var nr = ar(Le), P = j, m = Zt, or = [
|
|
375
371
|
{
|
|
376
372
|
key: "youtube",
|
|
377
373
|
name: "YouTube",
|
|
378
374
|
canPlay: m.canPlay.youtube,
|
|
379
|
-
lazyPlayer: (0,
|
|
375
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
380
376
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
381
|
-
"./YouTube-
|
|
377
|
+
"./YouTube-BKyipPZx.js"
|
|
382
378
|
).then((e) => e.Y))
|
|
383
379
|
},
|
|
384
380
|
{
|
|
385
381
|
key: "soundcloud",
|
|
386
382
|
name: "SoundCloud",
|
|
387
383
|
canPlay: m.canPlay.soundcloud,
|
|
388
|
-
lazyPlayer: (0,
|
|
384
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
389
385
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
390
|
-
"./SoundCloud-
|
|
386
|
+
"./SoundCloud-lO8wg_0s.js"
|
|
391
387
|
).then((e) => e.S))
|
|
392
388
|
},
|
|
393
389
|
{
|
|
394
390
|
key: "vimeo",
|
|
395
391
|
name: "Vimeo",
|
|
396
392
|
canPlay: m.canPlay.vimeo,
|
|
397
|
-
lazyPlayer: (0,
|
|
393
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
398
394
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
399
|
-
"./Vimeo-
|
|
395
|
+
"./Vimeo-kzHz4Gco.js"
|
|
400
396
|
).then((e) => e.V))
|
|
401
397
|
},
|
|
402
398
|
{
|
|
403
399
|
key: "mux",
|
|
404
400
|
name: "Mux",
|
|
405
401
|
canPlay: m.canPlay.mux,
|
|
406
|
-
lazyPlayer: (0,
|
|
402
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
407
403
|
/* webpackChunkName: 'reactPlayerMux' */
|
|
408
|
-
"./Mux-
|
|
404
|
+
"./Mux-BGTG_Tvc.js"
|
|
409
405
|
).then((e) => e.M))
|
|
410
406
|
},
|
|
411
407
|
{
|
|
412
408
|
key: "facebook",
|
|
413
409
|
name: "Facebook",
|
|
414
410
|
canPlay: m.canPlay.facebook,
|
|
415
|
-
lazyPlayer: (0,
|
|
411
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
416
412
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
417
|
-
"./Facebook-
|
|
413
|
+
"./Facebook-BSWPEXjA.js"
|
|
418
414
|
).then((e) => e.F))
|
|
419
415
|
},
|
|
420
416
|
{
|
|
421
417
|
key: "streamable",
|
|
422
418
|
name: "Streamable",
|
|
423
419
|
canPlay: m.canPlay.streamable,
|
|
424
|
-
lazyPlayer: (0,
|
|
420
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
425
421
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
426
|
-
"./Streamable-
|
|
422
|
+
"./Streamable-Dwa5ZEK4.js"
|
|
427
423
|
).then((e) => e.S))
|
|
428
424
|
},
|
|
429
425
|
{
|
|
430
426
|
key: "wistia",
|
|
431
427
|
name: "Wistia",
|
|
432
428
|
canPlay: m.canPlay.wistia,
|
|
433
|
-
lazyPlayer: (0,
|
|
429
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
434
430
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
435
|
-
"./Wistia-
|
|
431
|
+
"./Wistia-w4jnqd7y.js"
|
|
436
432
|
).then((e) => e.W))
|
|
437
433
|
},
|
|
438
434
|
{
|
|
439
435
|
key: "twitch",
|
|
440
436
|
name: "Twitch",
|
|
441
437
|
canPlay: m.canPlay.twitch,
|
|
442
|
-
lazyPlayer: (0,
|
|
438
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
443
439
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
444
|
-
"./Twitch-
|
|
440
|
+
"./Twitch-C73-dwWo.js"
|
|
445
441
|
).then((e) => e.T))
|
|
446
442
|
},
|
|
447
443
|
{
|
|
448
444
|
key: "dailymotion",
|
|
449
445
|
name: "DailyMotion",
|
|
450
446
|
canPlay: m.canPlay.dailymotion,
|
|
451
|
-
lazyPlayer: (0,
|
|
447
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
452
448
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
453
|
-
"./DailyMotion-
|
|
449
|
+
"./DailyMotion-BBcJkMo_.js"
|
|
454
450
|
).then((e) => e.D))
|
|
455
451
|
},
|
|
456
452
|
{
|
|
457
453
|
key: "mixcloud",
|
|
458
454
|
name: "Mixcloud",
|
|
459
455
|
canPlay: m.canPlay.mixcloud,
|
|
460
|
-
lazyPlayer: (0,
|
|
456
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
461
457
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
462
|
-
"./Mixcloud-
|
|
458
|
+
"./Mixcloud-zAh6j7Ha.js"
|
|
463
459
|
).then((e) => e.M))
|
|
464
460
|
},
|
|
465
461
|
{
|
|
466
462
|
key: "vidyard",
|
|
467
463
|
name: "Vidyard",
|
|
468
464
|
canPlay: m.canPlay.vidyard,
|
|
469
|
-
lazyPlayer: (0,
|
|
465
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
470
466
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
471
|
-
"./Vidyard-
|
|
467
|
+
"./Vidyard-B6GdBHsM.js"
|
|
472
468
|
).then((e) => e.V))
|
|
473
469
|
},
|
|
474
470
|
{
|
|
475
471
|
key: "kaltura",
|
|
476
472
|
name: "Kaltura",
|
|
477
473
|
canPlay: m.canPlay.kaltura,
|
|
478
|
-
lazyPlayer: (0,
|
|
474
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
479
475
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
480
|
-
"./Kaltura-
|
|
476
|
+
"./Kaltura-BDqlEQpd.js"
|
|
481
477
|
).then((e) => e.K))
|
|
482
478
|
},
|
|
483
479
|
{
|
|
484
480
|
key: "file",
|
|
485
481
|
name: "FilePlayer",
|
|
486
482
|
canPlay: m.canPlay.file,
|
|
487
|
-
canEnablePIP: (e) => m.canPlay.file(e) && (document.pictureInPictureEnabled || (0,
|
|
488
|
-
lazyPlayer: (0,
|
|
483
|
+
canEnablePIP: (e) => m.canPlay.file(e) && (document.pictureInPictureEnabled || (0, P.supportsWebKitPresentationMode)()) && !m.AUDIO_EXTENSIONS.test(e),
|
|
484
|
+
lazyPlayer: (0, P.lazy)(() => import(
|
|
489
485
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
490
|
-
"./FilePlayer-
|
|
486
|
+
"./FilePlayer-BtGpIWnK.js"
|
|
491
487
|
).then((e) => e.F))
|
|
492
488
|
}
|
|
493
|
-
],
|
|
489
|
+
], se = Number.isNaN || function(t) {
|
|
494
490
|
return typeof t == "number" && t !== t;
|
|
495
491
|
};
|
|
496
|
-
function
|
|
497
|
-
return !!(e === t ||
|
|
492
|
+
function ir(e, t) {
|
|
493
|
+
return !!(e === t || se(e) && se(t));
|
|
498
494
|
}
|
|
499
|
-
function
|
|
495
|
+
function sr(e, t) {
|
|
500
496
|
if (e.length !== t.length)
|
|
501
497
|
return !1;
|
|
502
498
|
for (var r = 0; r < e.length; r++)
|
|
503
|
-
if (!
|
|
499
|
+
if (!ir(e[r], t[r]))
|
|
504
500
|
return !1;
|
|
505
501
|
return !0;
|
|
506
502
|
}
|
|
507
|
-
function
|
|
508
|
-
t === void 0 && (t =
|
|
503
|
+
function lr(e, t) {
|
|
504
|
+
t === void 0 && (t = sr);
|
|
509
505
|
var r, n = [], a, o = !1;
|
|
510
|
-
function
|
|
511
|
-
for (var
|
|
512
|
-
|
|
513
|
-
return o && r === this && t(
|
|
506
|
+
function f() {
|
|
507
|
+
for (var y = [], u = 0; u < arguments.length; u++)
|
|
508
|
+
y[u] = arguments[u];
|
|
509
|
+
return o && r === this && t(y, n) || (a = e.apply(this, y), o = !0, r = this, n = y), a;
|
|
514
510
|
}
|
|
515
|
-
return
|
|
511
|
+
return f;
|
|
516
512
|
}
|
|
517
|
-
const
|
|
513
|
+
const cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
518
514
|
__proto__: null,
|
|
519
|
-
default:
|
|
520
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
521
|
-
var
|
|
515
|
+
default: lr
|
|
516
|
+
}, Symbol.toStringTag, { value: "Module" })), ur = /* @__PURE__ */ Ze(cr);
|
|
517
|
+
var pr = Object.create, D = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, fr = Object.getOwnPropertyNames, yr = Object.getPrototypeOf, hr = Object.prototype.hasOwnProperty, mr = (e, t) => {
|
|
522
518
|
for (var r in t)
|
|
523
|
-
|
|
524
|
-
},
|
|
519
|
+
D(e, r, { get: t[r], enumerable: !0 });
|
|
520
|
+
}, Ne = (e, t, r, n) => {
|
|
525
521
|
if (t && typeof t == "object" || typeof t == "function")
|
|
526
|
-
for (let a of
|
|
527
|
-
!
|
|
522
|
+
for (let a of fr(t))
|
|
523
|
+
!hr.call(e, a) && a !== r && D(e, a, { get: () => t[a], enumerable: !(n = dr(t, a)) || n.enumerable });
|
|
528
524
|
return e;
|
|
529
|
-
},
|
|
525
|
+
}, _r = (e, t, r) => (r = e != null ? pr(yr(e)) : {}, Ne(
|
|
530
526
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
531
527
|
// file that has been converted to a CommonJS file using a Babel-
|
|
532
528
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
533
529
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
534
|
-
!e || !e.__esModule ?
|
|
530
|
+
!e || !e.__esModule ? D(r, "default", { value: e, enumerable: !0 }) : r,
|
|
535
531
|
e
|
|
536
|
-
)),
|
|
537
|
-
|
|
538
|
-
defaultProps: () =>
|
|
539
|
-
propTypes: () =>
|
|
532
|
+
)), Pr = (e) => Ne(D({}, "__esModule", { value: !0 }), e), je = {};
|
|
533
|
+
mr(je, {
|
|
534
|
+
defaultProps: () => vr,
|
|
535
|
+
propTypes: () => br
|
|
540
536
|
});
|
|
541
|
-
var
|
|
542
|
-
const { string: p, bool: _, number:
|
|
543
|
-
url:
|
|
537
|
+
var De = Pr(je), gr = _r(Ge);
|
|
538
|
+
const { string: p, bool: _, number: O, array: V, oneOfType: M, shape: g, object: h, func: l, node: le } = gr.default, br = {
|
|
539
|
+
url: M([p, V, h]),
|
|
544
540
|
playing: _,
|
|
545
541
|
loop: _,
|
|
546
542
|
controls: _,
|
|
547
|
-
volume:
|
|
543
|
+
volume: O,
|
|
548
544
|
muted: _,
|
|
549
|
-
playbackRate:
|
|
550
|
-
width:
|
|
551
|
-
height:
|
|
545
|
+
playbackRate: O,
|
|
546
|
+
width: M([p, O]),
|
|
547
|
+
height: M([p, O]),
|
|
552
548
|
style: h,
|
|
553
|
-
progressInterval:
|
|
549
|
+
progressInterval: O,
|
|
554
550
|
playsinline: _,
|
|
555
551
|
pip: _,
|
|
556
552
|
stopOnUnmount: _,
|
|
557
|
-
light:
|
|
558
|
-
playIcon:
|
|
559
|
-
previewTabIndex:
|
|
553
|
+
light: M([_, p, h]),
|
|
554
|
+
playIcon: le,
|
|
555
|
+
previewTabIndex: O,
|
|
560
556
|
previewAriaLabel: p,
|
|
561
|
-
fallback:
|
|
557
|
+
fallback: le,
|
|
562
558
|
oEmbedUrl: p,
|
|
563
|
-
wrapper:
|
|
559
|
+
wrapper: M([
|
|
564
560
|
p,
|
|
565
561
|
l,
|
|
566
|
-
|
|
562
|
+
g({ render: l.isRequired })
|
|
567
563
|
]),
|
|
568
|
-
config:
|
|
569
|
-
soundcloud:
|
|
564
|
+
config: g({
|
|
565
|
+
soundcloud: g({
|
|
570
566
|
options: h
|
|
571
567
|
}),
|
|
572
|
-
youtube:
|
|
568
|
+
youtube: g({
|
|
573
569
|
playerVars: h,
|
|
574
570
|
embedOptions: h,
|
|
575
571
|
onUnstarted: l
|
|
576
572
|
}),
|
|
577
|
-
facebook:
|
|
573
|
+
facebook: g({
|
|
578
574
|
appId: p,
|
|
579
575
|
version: p,
|
|
580
576
|
playerId: p,
|
|
581
577
|
attributes: h
|
|
582
578
|
}),
|
|
583
|
-
dailymotion:
|
|
579
|
+
dailymotion: g({
|
|
584
580
|
params: h
|
|
585
581
|
}),
|
|
586
|
-
vimeo:
|
|
582
|
+
vimeo: g({
|
|
587
583
|
playerOptions: h,
|
|
588
584
|
title: p
|
|
589
585
|
}),
|
|
590
|
-
mux:
|
|
586
|
+
mux: g({
|
|
591
587
|
attributes: h,
|
|
592
588
|
version: p
|
|
593
589
|
}),
|
|
594
|
-
file:
|
|
590
|
+
file: g({
|
|
595
591
|
attributes: h,
|
|
596
|
-
tracks:
|
|
592
|
+
tracks: V,
|
|
597
593
|
forceVideo: _,
|
|
598
594
|
forceAudio: _,
|
|
599
595
|
forceHLS: _,
|
|
@@ -606,19 +602,19 @@ const { string: p, bool: _, number: S, array: F, oneOfType: A, shape: P, object:
|
|
|
606
602
|
dashVersion: p,
|
|
607
603
|
flvVersion: p
|
|
608
604
|
}),
|
|
609
|
-
wistia:
|
|
605
|
+
wistia: g({
|
|
610
606
|
options: h,
|
|
611
607
|
playerId: p,
|
|
612
|
-
customControls:
|
|
608
|
+
customControls: V
|
|
613
609
|
}),
|
|
614
|
-
mixcloud:
|
|
610
|
+
mixcloud: g({
|
|
615
611
|
options: h
|
|
616
612
|
}),
|
|
617
|
-
twitch:
|
|
613
|
+
twitch: g({
|
|
618
614
|
options: h,
|
|
619
615
|
playerId: p
|
|
620
616
|
}),
|
|
621
|
-
vidyard:
|
|
617
|
+
vidyard: g({
|
|
622
618
|
options: h
|
|
623
619
|
})
|
|
624
620
|
}),
|
|
@@ -639,7 +635,7 @@ const { string: p, bool: _, number: S, array: F, oneOfType: A, shape: P, object:
|
|
|
639
635
|
onEnablePIP: l,
|
|
640
636
|
onDisablePIP: l
|
|
641
637
|
}, d = () => {
|
|
642
|
-
},
|
|
638
|
+
}, vr = {
|
|
643
639
|
playing: !1,
|
|
644
640
|
loop: !1,
|
|
645
641
|
controls: !1,
|
|
@@ -757,28 +753,28 @@ const { string: p, bool: _, number: S, array: F, oneOfType: A, shape: P, object:
|
|
|
757
753
|
onEnablePIP: d,
|
|
758
754
|
onDisablePIP: d
|
|
759
755
|
};
|
|
760
|
-
var
|
|
756
|
+
var wr = Object.create, I = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, Sr = Object.getOwnPropertyNames, Tr = Object.getPrototypeOf, Cr = Object.prototype.hasOwnProperty, Er = (e, t, r) => t in e ? I(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mr = (e, t) => {
|
|
761
757
|
for (var r in t)
|
|
762
|
-
|
|
763
|
-
},
|
|
758
|
+
I(e, r, { get: t[r], enumerable: !0 });
|
|
759
|
+
}, Ue = (e, t, r, n) => {
|
|
764
760
|
if (t && typeof t == "object" || typeof t == "function")
|
|
765
|
-
for (let a of
|
|
766
|
-
!
|
|
761
|
+
for (let a of Sr(t))
|
|
762
|
+
!Cr.call(e, a) && a !== r && I(e, a, { get: () => t[a], enumerable: !(n = Or(t, a)) || n.enumerable });
|
|
767
763
|
return e;
|
|
768
|
-
},
|
|
764
|
+
}, ke = (e, t, r) => (r = e != null ? wr(Tr(e)) : {}, Ue(
|
|
769
765
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
770
766
|
// file that has been converted to a CommonJS file using a Babel-
|
|
771
767
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
772
768
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
773
|
-
!e || !e.__esModule ?
|
|
769
|
+
!e || !e.__esModule ? I(r, "default", { value: e, enumerable: !0 }) : r,
|
|
774
770
|
e
|
|
775
|
-
)),
|
|
776
|
-
|
|
777
|
-
default: () =>
|
|
771
|
+
)), Ar = (e) => Ue(I({}, "__esModule", { value: !0 }), e), s = (e, t, r) => (Er(e, typeof t != "symbol" ? t + "" : t, r), r), He = {};
|
|
772
|
+
Mr(He, {
|
|
773
|
+
default: () => U
|
|
778
774
|
});
|
|
779
|
-
var
|
|
780
|
-
const
|
|
781
|
-
class
|
|
775
|
+
var Rr = Ar(He), ce = ke(Y), xr = ke(de), ze = De, Ir = j;
|
|
776
|
+
const $r = 5e3;
|
|
777
|
+
class U extends ce.Component {
|
|
782
778
|
constructor() {
|
|
783
779
|
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
780
|
if (this.player) {
|
|
@@ -832,15 +828,15 @@ class k extends ue.Component {
|
|
|
832
828
|
componentDidUpdate(t) {
|
|
833
829
|
if (!this.player)
|
|
834
830
|
return;
|
|
835
|
-
const { url: r, playing: n, volume: a, muted: o, playbackRate:
|
|
836
|
-
if (!(0,
|
|
837
|
-
if (this.isLoading && !
|
|
831
|
+
const { url: r, playing: n, volume: a, muted: o, playbackRate: f, pip: y, loop: u, activePlayer: v, disableDeferredLoading: b } = this.props;
|
|
832
|
+
if (!(0, xr.default)(t.url, r)) {
|
|
833
|
+
if (this.isLoading && !v.forceLoad && !b && !(0, Ir.isMediaStream)(r)) {
|
|
838
834
|
console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`), this.loadOnReady = r;
|
|
839
835
|
return;
|
|
840
836
|
}
|
|
841
837
|
this.isLoading = !0, this.startOnPlay = !0, this.onDurationCalled = !1, this.player.load(r, this.isReady);
|
|
842
838
|
}
|
|
843
|
-
!t.playing && n && !this.isPlaying && this.player.play(), t.playing && !n && this.isPlaying && this.player.pause(), !t.pip &&
|
|
839
|
+
!t.playing && n && !this.isPlaying && this.player.play(), t.playing && !n && this.isPlaying && this.player.pause(), !t.pip && y && this.player.enablePIP && this.player.enablePIP(), t.pip && !y && 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 !== f && this.player.setPlaybackRate && this.player.setPlaybackRate(f), t.loop !== u && this.player.setLoop && this.player.setLoop(u);
|
|
844
840
|
}
|
|
845
841
|
getDuration() {
|
|
846
842
|
return this.isReady ? this.player.getDuration() : null;
|
|
@@ -855,7 +851,7 @@ class k extends ue.Component {
|
|
|
855
851
|
if (!this.isReady) {
|
|
856
852
|
t !== 0 && (this.seekOnPlay = t, setTimeout(() => {
|
|
857
853
|
this.seekOnPlay = null;
|
|
858
|
-
},
|
|
854
|
+
}, $r));
|
|
859
855
|
return;
|
|
860
856
|
}
|
|
861
857
|
if (r ? r === "fraction" : t > 0 && t < 1) {
|
|
@@ -871,7 +867,7 @@ class k extends ue.Component {
|
|
|
871
867
|
}
|
|
872
868
|
render() {
|
|
873
869
|
const t = this.props.activePlayer;
|
|
874
|
-
return t ? /* @__PURE__ */
|
|
870
|
+
return t ? /* @__PURE__ */ ce.default.createElement(
|
|
875
871
|
t,
|
|
876
872
|
{
|
|
877
873
|
...this.props,
|
|
@@ -886,35 +882,35 @@ class k extends ue.Component {
|
|
|
886
882
|
) : null;
|
|
887
883
|
}
|
|
888
884
|
}
|
|
889
|
-
s(
|
|
890
|
-
s(
|
|
891
|
-
s(
|
|
892
|
-
var
|
|
885
|
+
s(U, "displayName", "Player");
|
|
886
|
+
s(U, "propTypes", ze.propTypes);
|
|
887
|
+
s(U, "defaultProps", ze.defaultProps);
|
|
888
|
+
var Lr = Object.create, $ = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, jr = Object.getOwnPropertyNames, Dr = Object.getPrototypeOf, Ur = Object.prototype.hasOwnProperty, kr = (e, t, r) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hr = (e, t) => {
|
|
893
889
|
for (var r in t)
|
|
894
|
-
|
|
895
|
-
},
|
|
890
|
+
$(e, r, { get: t[r], enumerable: !0 });
|
|
891
|
+
}, Ve = (e, t, r, n) => {
|
|
896
892
|
if (t && typeof t == "object" || typeof t == "function")
|
|
897
|
-
for (let a of
|
|
898
|
-
!
|
|
893
|
+
for (let a of jr(t))
|
|
894
|
+
!Ur.call(e, a) && a !== r && $(e, a, { get: () => t[a], enumerable: !(n = Nr(t, a)) || n.enumerable });
|
|
899
895
|
return e;
|
|
900
|
-
},
|
|
896
|
+
}, L = (e, t, r) => (r = e != null ? Lr(Dr(e)) : {}, Ve(
|
|
901
897
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
902
898
|
// file that has been converted to a CommonJS file using a Babel-
|
|
903
899
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
904
900
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
905
|
-
!e || !e.__esModule ?
|
|
901
|
+
!e || !e.__esModule ? $(r, "default", { value: e, enumerable: !0 }) : r,
|
|
906
902
|
e
|
|
907
|
-
)),
|
|
908
|
-
|
|
909
|
-
createReactPlayer: () =>
|
|
903
|
+
)), zr = (e) => Ve($({}, "__esModule", { value: !0 }), e), i = (e, t, r) => (kr(e, typeof t != "symbol" ? t + "" : t, r), r), Fe = {};
|
|
904
|
+
Hr(Fe, {
|
|
905
|
+
createReactPlayer: () => Zr
|
|
910
906
|
});
|
|
911
|
-
var
|
|
912
|
-
const
|
|
907
|
+
var Vr = zr(Fe), T = L(Y), Fr = L(ye), F = L(ur), ue = L(de), R = De, Be = j, Br = L(Rr);
|
|
908
|
+
const Kr = (0, Be.lazy)(() => import(
|
|
913
909
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
914
910
|
"./Preview-CO6WSP5f.js"
|
|
915
|
-
).then((e) => e.P)),
|
|
911
|
+
).then((e) => e.P)), Xr = typeof window < "u" && window.document && typeof document < "u", Wr = typeof H < "u" && H.window && H.window.document, Yr = Object.keys(R.propTypes), Jr = Xr || Wr ? T.Suspense : () => null, A = [], Zr = (e, t) => {
|
|
916
912
|
var r;
|
|
917
|
-
return r = class extends
|
|
913
|
+
return r = class extends T.Component {
|
|
918
914
|
constructor() {
|
|
919
915
|
super(...arguments), i(this, "state", {
|
|
920
916
|
showPreview: !!this.props.light
|
|
@@ -935,28 +931,28 @@ const Yr = (0, Ke.lazy)(() => import(
|
|
|
935
931
|
this.player.seekTo(n, a, o);
|
|
936
932
|
}), i(this, "handleReady", () => {
|
|
937
933
|
this.props.onReady(this);
|
|
938
|
-
}), i(this, "getActivePlayer", (0,
|
|
939
|
-
for (const a of [...
|
|
934
|
+
}), i(this, "getActivePlayer", (0, F.default)((n) => {
|
|
935
|
+
for (const a of [...A, ...e])
|
|
940
936
|
if (a.canPlay(n))
|
|
941
937
|
return a;
|
|
942
938
|
return t || null;
|
|
943
|
-
})), i(this, "getConfig", (0,
|
|
939
|
+
})), i(this, "getConfig", (0, F.default)((n, a) => {
|
|
944
940
|
const { config: o } = this.props;
|
|
945
|
-
return
|
|
941
|
+
return Fr.default.all([
|
|
946
942
|
R.defaultProps.config,
|
|
947
943
|
R.defaultProps.config[a] || {},
|
|
948
944
|
o,
|
|
949
945
|
o[a] || {}
|
|
950
946
|
]);
|
|
951
|
-
})), i(this, "getAttributes", (0,
|
|
947
|
+
})), i(this, "getAttributes", (0, F.default)((n) => (0, Be.omit)(this.props, Yr))), i(this, "renderActivePlayer", (n) => {
|
|
952
948
|
if (!n)
|
|
953
949
|
return null;
|
|
954
950
|
const a = this.getActivePlayer(n);
|
|
955
951
|
if (!a)
|
|
956
952
|
return null;
|
|
957
953
|
const o = this.getConfig(n, a.key);
|
|
958
|
-
return /* @__PURE__ */
|
|
959
|
-
|
|
954
|
+
return /* @__PURE__ */ T.default.createElement(
|
|
955
|
+
Br.default,
|
|
960
956
|
{
|
|
961
957
|
...this.props,
|
|
962
958
|
key: a.key,
|
|
@@ -969,7 +965,7 @@ const Yr = (0, Ke.lazy)(() => import(
|
|
|
969
965
|
});
|
|
970
966
|
}
|
|
971
967
|
shouldComponentUpdate(n, a) {
|
|
972
|
-
return !(0,
|
|
968
|
+
return !(0, ue.default)(this.props, n) || !(0, ue.default)(this.state, a);
|
|
973
969
|
}
|
|
974
970
|
componentDidUpdate(n) {
|
|
975
971
|
const { light: a } = this.props;
|
|
@@ -978,69 +974,69 @@ const Yr = (0, Ke.lazy)(() => import(
|
|
|
978
974
|
renderPreview(n) {
|
|
979
975
|
if (!n)
|
|
980
976
|
return null;
|
|
981
|
-
const { light: a, playIcon: o, previewTabIndex:
|
|
982
|
-
return /* @__PURE__ */
|
|
983
|
-
|
|
977
|
+
const { light: a, playIcon: o, previewTabIndex: f, oEmbedUrl: y, previewAriaLabel: u } = this.props;
|
|
978
|
+
return /* @__PURE__ */ T.default.createElement(
|
|
979
|
+
Kr,
|
|
984
980
|
{
|
|
985
981
|
url: n,
|
|
986
982
|
light: a,
|
|
987
983
|
playIcon: o,
|
|
988
|
-
previewTabIndex:
|
|
984
|
+
previewTabIndex: f,
|
|
989
985
|
previewAriaLabel: u,
|
|
990
|
-
oEmbedUrl:
|
|
986
|
+
oEmbedUrl: y,
|
|
991
987
|
onClick: this.handleClickPreview
|
|
992
988
|
}
|
|
993
989
|
);
|
|
994
990
|
}
|
|
995
991
|
render() {
|
|
996
|
-
const { url: n, style: a, width: o, height:
|
|
997
|
-
return /* @__PURE__ */
|
|
992
|
+
const { url: n, style: a, width: o, height: f, fallback: y, wrapper: u } = this.props, { showPreview: v } = this.state, b = this.getAttributes(n), E = typeof u == "string" ? this.references.wrapper : void 0;
|
|
993
|
+
return /* @__PURE__ */ T.default.createElement(u, { ref: E, style: { ...a, width: o, height: f }, ...b }, /* @__PURE__ */ T.default.createElement(Jr, { fallback: y }, v ? this.renderPreview(n) : this.renderActivePlayer(n)));
|
|
998
994
|
}
|
|
999
995
|
}, i(r, "displayName", "ReactPlayer"), i(r, "propTypes", R.propTypes), i(r, "defaultProps", R.defaultProps), i(r, "addCustomPlayer", (n) => {
|
|
1000
|
-
|
|
996
|
+
A.push(n);
|
|
1001
997
|
}), i(r, "removeCustomPlayers", () => {
|
|
1002
|
-
|
|
998
|
+
A.length = 0;
|
|
1003
999
|
}), i(r, "canPlay", (n) => {
|
|
1004
|
-
for (const a of [...
|
|
1000
|
+
for (const a of [...A, ...e])
|
|
1005
1001
|
if (a.canPlay(n))
|
|
1006
1002
|
return !0;
|
|
1007
1003
|
return !1;
|
|
1008
1004
|
}), i(r, "canEnablePIP", (n) => {
|
|
1009
|
-
for (const a of [...
|
|
1005
|
+
for (const a of [...A, ...e])
|
|
1010
1006
|
if (a.canEnablePIP && a.canEnablePIP(n))
|
|
1011
1007
|
return !0;
|
|
1012
1008
|
return !1;
|
|
1013
1009
|
}), r;
|
|
1014
1010
|
};
|
|
1015
|
-
var
|
|
1011
|
+
var qr = Object.create, k = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, Qr = Object.getOwnPropertyNames, ea = Object.getPrototypeOf, ta = Object.prototype.hasOwnProperty, ra = (e, t) => {
|
|
1016
1012
|
for (var r in t)
|
|
1017
|
-
|
|
1018
|
-
},
|
|
1013
|
+
k(e, r, { get: t[r], enumerable: !0 });
|
|
1014
|
+
}, Ke = (e, t, r, n) => {
|
|
1019
1015
|
if (t && typeof t == "object" || typeof t == "function")
|
|
1020
|
-
for (let a of
|
|
1021
|
-
!
|
|
1016
|
+
for (let a of Qr(t))
|
|
1017
|
+
!ta.call(e, a) && a !== r && k(e, a, { get: () => t[a], enumerable: !(n = Gr(t, a)) || n.enumerable });
|
|
1022
1018
|
return e;
|
|
1023
|
-
},
|
|
1019
|
+
}, aa = (e, t, r) => (r = e != null ? qr(ea(e)) : {}, Ke(
|
|
1024
1020
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
1025
1021
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1026
1022
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1027
1023
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1028
|
-
!e || !e.__esModule ?
|
|
1024
|
+
!e || !e.__esModule ? k(r, "default", { value: e, enumerable: !0 }) : r,
|
|
1029
1025
|
e
|
|
1030
|
-
)),
|
|
1031
|
-
|
|
1032
|
-
default: () =>
|
|
1026
|
+
)), na = (e) => Ke(k({}, "__esModule", { value: !0 }), e), Xe = {};
|
|
1027
|
+
ra(Xe, {
|
|
1028
|
+
default: () => la
|
|
1033
1029
|
});
|
|
1034
|
-
var
|
|
1035
|
-
const
|
|
1036
|
-
var
|
|
1037
|
-
const
|
|
1030
|
+
var oa = na(Xe), W = aa(nr), ia = Vr;
|
|
1031
|
+
const sa = W.default[W.default.length - 1];
|
|
1032
|
+
var la = (0, ia.createReactPlayer)(W.default, sa);
|
|
1033
|
+
const ca = /* @__PURE__ */ qe(oa), ua = "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", pa = ({ thumbnail: e }) => /* @__PURE__ */ S(tt, { children: [
|
|
1038
1034
|
/* @__PURE__ */ c("img", { src: e, className: "section__thumbnail", alt: "Thumbnail" }),
|
|
1039
|
-
/* @__PURE__ */ c("img", { src:
|
|
1040
|
-
] }),
|
|
1041
|
-
const n =
|
|
1035
|
+
/* @__PURE__ */ c("img", { src: ua, className: "section__play", alt: "Play" })
|
|
1036
|
+
] }), da = J(({ video: e, thumbnail: t }, r) => {
|
|
1037
|
+
const n = Qe();
|
|
1042
1038
|
return /* @__PURE__ */ c(
|
|
1043
|
-
|
|
1039
|
+
ca,
|
|
1044
1040
|
{
|
|
1045
1041
|
url: e,
|
|
1046
1042
|
playing: !0,
|
|
@@ -1048,18 +1044,10 @@ const da = /* @__PURE__ */ tt(la), ya = "data:image/svg+xml,%3csvg%20width='65'%
|
|
|
1048
1044
|
width: n ? "100%" : "31.25rem",
|
|
1049
1045
|
height: n ? "100%" : "18.75rem",
|
|
1050
1046
|
light: !0,
|
|
1051
|
-
playIcon: /* @__PURE__ */ c(
|
|
1047
|
+
playIcon: /* @__PURE__ */ c(pa, { thumbnail: t })
|
|
1052
1048
|
}
|
|
1053
1049
|
);
|
|
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`
|
|
1050
|
+
}), fa = Z.div`
|
|
1063
1051
|
display: flex;
|
|
1064
1052
|
justify-content: space-between;
|
|
1065
1053
|
align-items: center;
|
|
@@ -1137,7 +1125,7 @@ const fa = G.div`
|
|
|
1137
1125
|
}
|
|
1138
1126
|
}
|
|
1139
1127
|
|
|
1140
|
-
@media (max-width: ${
|
|
1128
|
+
@media (max-width: ${pe + "px"}) {
|
|
1141
1129
|
flex-direction: column;
|
|
1142
1130
|
gap: 1.5rem;
|
|
1143
1131
|
|
|
@@ -1154,7 +1142,7 @@ const fa = G.div`
|
|
|
1154
1142
|
width: 100%;
|
|
1155
1143
|
}
|
|
1156
1144
|
}
|
|
1157
|
-
`,
|
|
1145
|
+
`, Ta = J(
|
|
1158
1146
|
({
|
|
1159
1147
|
title: e,
|
|
1160
1148
|
description: t,
|
|
@@ -1162,18 +1150,18 @@ const fa = G.div`
|
|
|
1162
1150
|
searchPlaceholderText: n = "Search for rules, tempates, forms and more",
|
|
1163
1151
|
tags: a = [],
|
|
1164
1152
|
includeSearch: o = !1,
|
|
1165
|
-
video:
|
|
1166
|
-
thumbnail:
|
|
1167
|
-
}, u) => /* @__PURE__ */
|
|
1168
|
-
o ? /* @__PURE__ */
|
|
1153
|
+
video: f,
|
|
1154
|
+
thumbnail: y
|
|
1155
|
+
}, u) => /* @__PURE__ */ S(fa, { ref: u, children: [
|
|
1156
|
+
o ? /* @__PURE__ */ S("div", { className: "section__left search", children: [
|
|
1169
1157
|
/* @__PURE__ */ c("div", { children: e && /* @__PURE__ */ c("div", { className: "section__title", children: e }) }),
|
|
1170
1158
|
/* @__PURE__ */ c(
|
|
1171
|
-
|
|
1159
|
+
We,
|
|
1172
1160
|
{
|
|
1173
1161
|
className: "section__text-input",
|
|
1174
1162
|
placeholder: n,
|
|
1175
1163
|
prefix: /* @__PURE__ */ c(
|
|
1176
|
-
|
|
1164
|
+
Ye,
|
|
1177
1165
|
{
|
|
1178
1166
|
icon: " mng-lnc-search",
|
|
1179
1167
|
sizeInUnits: "1.25rem",
|
|
@@ -1183,32 +1171,22 @@ const fa = G.div`
|
|
|
1183
1171
|
color: "neutral"
|
|
1184
1172
|
}
|
|
1185
1173
|
),
|
|
1186
|
-
/* @__PURE__ */
|
|
1174
|
+
/* @__PURE__ */ S("div", { className: "section__tags", children: [
|
|
1187
1175
|
/* @__PURE__ */ c("div", { className: "section__suggested", children: r }),
|
|
1188
|
-
/* @__PURE__ */ c(
|
|
1176
|
+
/* @__PURE__ */ c(ae, { tags: a })
|
|
1189
1177
|
] })
|
|
1190
|
-
] }) : /* @__PURE__ */
|
|
1191
|
-
/* @__PURE__ */
|
|
1178
|
+
] }) : /* @__PURE__ */ S("div", { className: "section__left", children: [
|
|
1179
|
+
/* @__PURE__ */ S("div", { children: [
|
|
1192
1180
|
e && /* @__PURE__ */ c("div", { className: "section__title", children: e }),
|
|
1193
1181
|
t && /* @__PURE__ */ c("div", { className: "section__description", children: t })
|
|
1194
1182
|
] }),
|
|
1195
|
-
/* @__PURE__ */ c("div", { className: "section__tags", children: /* @__PURE__ */ c(
|
|
1183
|
+
/* @__PURE__ */ c("div", { className: "section__tags", children: /* @__PURE__ */ c(ae, { tags: a }) })
|
|
1196
1184
|
] }),
|
|
1197
|
-
/* @__PURE__ */ c("div", { className: "section__right", children: /* @__PURE__ */ c(
|
|
1185
|
+
/* @__PURE__ */ c("div", { className: "section__right", children: /* @__PURE__ */ c(da, { video: f, thumbnail: y }) })
|
|
1198
1186
|
] })
|
|
1199
1187
|
);
|
|
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
1188
|
export {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1189
|
+
Ta as S,
|
|
1190
|
+
Zt as p,
|
|
1191
|
+
j as u
|
|
1214
1192
|
};
|