@mjhls/mjh-framework 1.0.272 → 1.0.273
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/README.md +171 -171
- package/dist/cjs/DeckContent.js +9 -9
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/Figure-fe3e9705.js +145 -0
- package/dist/cjs/{GridContent-df5951a1.js → GridContent-8d5a738c.js} +2 -2
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +9 -9
- package/dist/cjs/{Normal-47f04b2b.js → Normal-7ed9eee9.js} +29 -29
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-e3566492.js → TaxonomyCard-b5074d6e.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +2 -1
- package/dist/cjs/{YoutubeGroup-94e6efea.js → YoutubeGroup-78e6bcc3.js} +5 -437
- package/dist/cjs/YoutubeGroup.js +2 -1
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/index.js +554 -682
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/Figure-d6e22818.js +140 -0
- package/dist/esm/{GridContent-8479e775.js → GridContent-b8b5f361.js} +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/{Normal-3e5ad3d1.js → Normal-21cfb458.js} +29 -29
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-2d0ab635.js → TaxonomyCard-ee1a22ae.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -1
- package/dist/esm/{YoutubeGroup-f59297bb.js → YoutubeGroup-a87b8967.js} +5 -437
- package/dist/esm/YoutubeGroup.js +2 -1
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/index.js +563 -691
- package/package.json +103 -103
package/dist/esm/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visib
|
|
|
18
18
|
import Link from 'next/link';
|
|
19
19
|
import Router, { useRouter } from 'next/router';
|
|
20
20
|
import 'react-dom';
|
|
21
|
-
import { i as imageUrlBuilder } from './index-
|
|
21
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
22
22
|
import './index-5f9f807a.js';
|
|
23
23
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
24
24
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
@@ -28,17 +28,18 @@ import './promise-683a9c54.js';
|
|
|
28
28
|
import './ADInfeed-a77b2850.js';
|
|
29
29
|
export { default as DeckContent } from './DeckContent.js';
|
|
30
30
|
import './get-b2201dc8.js';
|
|
31
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
31
|
+
export { A as AD, G as GridContent } from './GridContent-b8b5f361.js';
|
|
32
32
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
33
33
|
import 'react-bootstrap/Media';
|
|
34
34
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
35
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
36
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
35
|
+
import { B as BlockContent } from './TaxonomyCard-ee1a22ae.js';
|
|
36
|
+
export { T as TaxonomyCard } from './TaxonomyCard-ee1a22ae.js';
|
|
37
37
|
import GroupDeck from './GroupDeck.js';
|
|
38
38
|
export { default as GroupDeck } from './GroupDeck.js';
|
|
39
|
-
import { g as getYoutubeId } from './YoutubeGroup-
|
|
40
|
-
export { Y as YoutubeGroup } from './YoutubeGroup-
|
|
41
|
-
import
|
|
39
|
+
import { g as getYoutubeId } from './YoutubeGroup-a87b8967.js';
|
|
40
|
+
export { Y as YoutubeGroup } from './YoutubeGroup-a87b8967.js';
|
|
41
|
+
import 'smoothscroll-polyfill';
|
|
42
|
+
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card } from 'react-bootstrap';
|
|
42
43
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
43
44
|
import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
|
|
44
45
|
export { default as VideoSeriesListing } from './VideoSeriesListing.js';
|
|
@@ -49,8 +50,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
49
50
|
import 'react-bootstrap/Badge';
|
|
50
51
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
51
52
|
import Spinner from 'react-bootstrap/Spinner';
|
|
52
|
-
import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-
|
|
53
|
-
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-
|
|
53
|
+
import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-21cfb458.js';
|
|
54
|
+
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-21cfb458.js';
|
|
54
55
|
import 'react-bootstrap/ListGroup';
|
|
55
56
|
import Head from 'next/head';
|
|
56
57
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -63,6 +64,7 @@ import 'react-bootstrap/Form';
|
|
|
63
64
|
import 'react-bootstrap/FormControl';
|
|
64
65
|
import Modal from 'react-bootstrap/Modal';
|
|
65
66
|
import Pagination from 'react-bootstrap/Pagination';
|
|
67
|
+
import dynamic from 'next/dynamic';
|
|
66
68
|
import Carousel$1 from 'react-bootstrap/Carousel';
|
|
67
69
|
import Breadcrumb from 'react-bootstrap/Breadcrumb';
|
|
68
70
|
import DropdownButton from 'react-bootstrap/DropdownButton';
|
|
@@ -3079,153 +3081,7 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
3079
3081
|
);
|
|
3080
3082
|
};
|
|
3081
3083
|
|
|
3082
|
-
var urlFor$1 = function urlFor(source,
|
|
3083
|
-
var builder = imageUrlBuilder(client);
|
|
3084
|
-
return builder.image(source).auto('format');
|
|
3085
|
-
};
|
|
3086
|
-
|
|
3087
|
-
var FigureComponent = function FigureComponent(_ref) {
|
|
3088
|
-
var node = _ref.node,
|
|
3089
|
-
client = _ref.client;
|
|
3090
|
-
|
|
3091
|
-
var imgElement = useRef(null);
|
|
3092
|
-
|
|
3093
|
-
var _useState = useState(null),
|
|
3094
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
3095
|
-
imageWidth = _useState2[0],
|
|
3096
|
-
setimageWidth = _useState2[1];
|
|
3097
|
-
|
|
3098
|
-
var _useState3 = useState(null),
|
|
3099
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
3100
|
-
imgFloat = _useState4[0],
|
|
3101
|
-
setimgFloat = _useState4[1];
|
|
3102
|
-
|
|
3103
|
-
var _useState5 = useState(false),
|
|
3104
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
3105
|
-
openImg = _useState6[0],
|
|
3106
|
-
setOpenImg = _useState6[1];
|
|
3107
|
-
|
|
3108
|
-
var _useState7 = useState(''),
|
|
3109
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
3110
|
-
openImgSrc = _useState8[0],
|
|
3111
|
-
setOpenImgSrc = _useState8[1];
|
|
3112
|
-
|
|
3113
|
-
var caption = node.caption,
|
|
3114
|
-
alt = node.alt,
|
|
3115
|
-
blank = node.blank,
|
|
3116
|
-
link = node.link,
|
|
3117
|
-
_node$alignment = node.alignment,
|
|
3118
|
-
alignment = _node$alignment === undefined ? 'center' : _node$alignment;
|
|
3119
|
-
var _node$widthP = node.widthP,
|
|
3120
|
-
widthP = _node$widthP === undefined ? 'auto' : _node$widthP;
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
if (client.clientConfig && client.clientConfig.defaultImageSize && widthP === 'auto') {
|
|
3124
|
-
widthP = client.clientConfig.defaultImageSize;
|
|
3125
|
-
}
|
|
3126
|
-
|
|
3127
|
-
var figureMargin = void 0;
|
|
3128
|
-
if (imgFloat === 'none') {
|
|
3129
|
-
figureMargin = '0 auto 1rem';
|
|
3130
|
-
}
|
|
3131
|
-
if (imgFloat === 'left') {
|
|
3132
|
-
figureMargin = '0 1.5rem 1.5rem 0';
|
|
3133
|
-
}
|
|
3134
|
-
if (imgFloat === 'right') {
|
|
3135
|
-
figureMargin = '0 0 1.5rem 1.5rem';
|
|
3136
|
-
}
|
|
3137
|
-
|
|
3138
|
-
var loadImg = function loadImg() {
|
|
3139
|
-
var screenWidth = window.innerWidth;
|
|
3140
|
-
if (screenWidth > 1000) {
|
|
3141
|
-
if (widthP === 'auto') {
|
|
3142
|
-
if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
|
|
3143
|
-
} else {
|
|
3144
|
-
setimageWidth(widthP + '%');
|
|
3145
|
-
}
|
|
3146
|
-
} else {
|
|
3147
|
-
setimageWidth('100%');
|
|
3148
|
-
}
|
|
3149
|
-
};
|
|
3150
|
-
|
|
3151
|
-
useEffect(function () {
|
|
3152
|
-
var screenWidth = window.innerWidth;
|
|
3153
|
-
if (screenWidth > 1000) {
|
|
3154
|
-
if (widthP === 'auto') {
|
|
3155
|
-
if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
|
|
3156
|
-
} else {
|
|
3157
|
-
setimageWidth(widthP + '%');
|
|
3158
|
-
}
|
|
3159
|
-
} else {
|
|
3160
|
-
setimageWidth('100%');
|
|
3161
|
-
}
|
|
3162
|
-
}, [widthP, imgFloat]);
|
|
3163
|
-
|
|
3164
|
-
useEffect(function () {
|
|
3165
|
-
var screenWidth = window.innerWidth;
|
|
3166
|
-
if (screenWidth > 1000) {
|
|
3167
|
-
var align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
|
|
3168
|
-
setimgFloat(align);
|
|
3169
|
-
} else {
|
|
3170
|
-
var _align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
|
|
3171
|
-
setimgFloat(_align);
|
|
3172
|
-
}
|
|
3173
|
-
|
|
3174
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3175
|
-
}, []);
|
|
3176
|
-
|
|
3177
|
-
if (!node.asset) return null;
|
|
3178
|
-
|
|
3179
|
-
return React__default.createElement(
|
|
3180
|
-
React__default.Fragment,
|
|
3181
|
-
null,
|
|
3182
|
-
imageWidth && imgFloat && React__default.createElement(
|
|
3183
|
-
Figure,
|
|
3184
|
-
{ className: 'd-block', style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin } },
|
|
3185
|
-
link ? React__default.createElement(
|
|
3186
|
-
'a',
|
|
3187
|
-
{ target: blank ? '_blank' : '_self', href: link },
|
|
3188
|
-
React__default.createElement(Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node, client).url(), alt: alt && alt }),
|
|
3189
|
-
caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
|
|
3190
|
-
) : React__default.createElement(
|
|
3191
|
-
React__default.Fragment,
|
|
3192
|
-
null,
|
|
3193
|
-
React__default.createElement(Figure.Image, {
|
|
3194
|
-
style: { width: '100%' },
|
|
3195
|
-
className: 'figure-image',
|
|
3196
|
-
ref: imgElement,
|
|
3197
|
-
onLoad: loadImg,
|
|
3198
|
-
src: urlFor$1(node, client).url(),
|
|
3199
|
-
alt: alt && alt,
|
|
3200
|
-
onClick: function onClick() {
|
|
3201
|
-
setOpenImgSrc(urlFor$1(node, client).url());
|
|
3202
|
-
setOpenImg(true);
|
|
3203
|
-
}
|
|
3204
|
-
}),
|
|
3205
|
-
caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
|
|
3206
|
-
)
|
|
3207
|
-
),
|
|
3208
|
-
React__default.createElement(
|
|
3209
|
-
'div',
|
|
3210
|
-
{ className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
3211
|
-
React__default.createElement('img', { src: openImgSrc }),
|
|
3212
|
-
React__default.createElement('a', {
|
|
3213
|
-
className: 'lightbox-close',
|
|
3214
|
-
onClick: function onClick() {
|
|
3215
|
-
setOpenImgSrc('');
|
|
3216
|
-
setOpenImg(false);
|
|
3217
|
-
}
|
|
3218
|
-
})
|
|
3219
|
-
),
|
|
3220
|
-
React__default.createElement(
|
|
3221
|
-
'style',
|
|
3222
|
-
{ jsx: 'true' },
|
|
3223
|
-
'\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 9999;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
3224
|
-
)
|
|
3225
|
-
);
|
|
3226
|
-
};
|
|
3227
|
-
|
|
3228
|
-
var urlFor$2 = function urlFor(source, builder) {
|
|
3084
|
+
var urlFor$1 = function urlFor(source, builder) {
|
|
3229
3085
|
return builder.image(source).auto('format');
|
|
3230
3086
|
};
|
|
3231
3087
|
|
|
@@ -3276,7 +3132,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3276
3132
|
return React__default.createElement(
|
|
3277
3133
|
Carousel.Item,
|
|
3278
3134
|
{ key: slide._key },
|
|
3279
|
-
React__default.createElement('img', { src: slide.asset && urlFor$
|
|
3135
|
+
React__default.createElement('img', { src: slide.asset && urlFor$1(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
3280
3136
|
slide.caption && React__default.createElement(
|
|
3281
3137
|
'p',
|
|
3282
3138
|
{ className: 'p-2' },
|
|
@@ -3288,21 +3144,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3288
3144
|
);
|
|
3289
3145
|
};
|
|
3290
3146
|
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3147
|
+
// do not edit .js files directly - edit src/index.jst
|
|
3148
|
+
|
|
3149
|
+
|
|
3294
3150
|
|
|
3295
3151
|
var fastDeepEqual = function equal(a, b) {
|
|
3296
3152
|
if (a === b) return true;
|
|
3297
3153
|
|
|
3298
3154
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3299
|
-
|
|
3300
|
-
, arrB = isArray(b)
|
|
3301
|
-
, i
|
|
3302
|
-
, length
|
|
3303
|
-
, key;
|
|
3155
|
+
if (a.constructor !== b.constructor) return false;
|
|
3304
3156
|
|
|
3305
|
-
|
|
3157
|
+
var length, i, keys;
|
|
3158
|
+
if (Array.isArray(a)) {
|
|
3306
3159
|
length = a.length;
|
|
3307
3160
|
if (length != b.length) return false;
|
|
3308
3161
|
for (i = length; i-- !== 0;)
|
|
@@ -3310,35 +3163,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3310
3163
|
return true;
|
|
3311
3164
|
}
|
|
3312
3165
|
|
|
3313
|
-
if (arrA != arrB) return false;
|
|
3314
3166
|
|
|
3315
|
-
var dateA = a instanceof Date
|
|
3316
|
-
, dateB = b instanceof Date;
|
|
3317
|
-
if (dateA != dateB) return false;
|
|
3318
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3319
3167
|
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
if (
|
|
3323
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3168
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
3169
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
3170
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
3324
3171
|
|
|
3325
|
-
|
|
3172
|
+
keys = Object.keys(a);
|
|
3326
3173
|
length = keys.length;
|
|
3327
|
-
|
|
3328
|
-
if (length !== keyList(b).length)
|
|
3329
|
-
return false;
|
|
3174
|
+
if (length !== Object.keys(b).length) return false;
|
|
3330
3175
|
|
|
3331
3176
|
for (i = length; i-- !== 0;)
|
|
3332
|
-
if (!
|
|
3177
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
3333
3178
|
|
|
3334
3179
|
for (i = length; i-- !== 0;) {
|
|
3335
|
-
key = keys[i];
|
|
3180
|
+
var key = keys[i];
|
|
3181
|
+
|
|
3336
3182
|
if (!equal(a[key], b[key])) return false;
|
|
3337
3183
|
}
|
|
3338
3184
|
|
|
3339
3185
|
return true;
|
|
3340
3186
|
}
|
|
3341
3187
|
|
|
3188
|
+
// true if both NaN, false otherwise
|
|
3342
3189
|
return a!==a && b!==b;
|
|
3343
3190
|
};
|
|
3344
3191
|
|
|
@@ -4361,7 +4208,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4361
4208
|
var base = '', array = false, braces = ['{', '}'];
|
|
4362
4209
|
|
|
4363
4210
|
// Make Array say that they are Array
|
|
4364
|
-
if (isArray
|
|
4211
|
+
if (isArray(value)) {
|
|
4365
4212
|
array = true;
|
|
4366
4213
|
braces = ['[', ']'];
|
|
4367
4214
|
}
|
|
@@ -4540,7 +4387,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4540
4387
|
|
|
4541
4388
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4542
4389
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4543
|
-
function isArray
|
|
4390
|
+
function isArray(ar) {
|
|
4544
4391
|
return Array.isArray(ar);
|
|
4545
4392
|
}
|
|
4546
4393
|
|
|
@@ -4667,7 +4514,7 @@ var util = {
|
|
|
4667
4514
|
isNullOrUndefined: isNullOrUndefined,
|
|
4668
4515
|
isNull: isNull,
|
|
4669
4516
|
isBoolean: isBoolean,
|
|
4670
|
-
isArray: isArray
|
|
4517
|
+
isArray: isArray,
|
|
4671
4518
|
inspect: inspect,
|
|
4672
4519
|
deprecate: deprecate,
|
|
4673
4520
|
format: format,
|
|
@@ -5334,199 +5181,235 @@ module.exports = exports['default'];
|
|
|
5334
5181
|
|
|
5335
5182
|
var youTubePlayer = unwrapExports(dist);
|
|
5336
5183
|
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
5184
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
5340
5185
|
|
|
5341
5186
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5342
5187
|
|
|
5343
|
-
function
|
|
5188
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5189
|
+
|
|
5190
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5191
|
+
|
|
5192
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5193
|
+
|
|
5194
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5195
|
+
|
|
5196
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5197
|
+
|
|
5198
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5199
|
+
|
|
5200
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5201
|
+
|
|
5202
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5203
|
+
|
|
5204
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5205
|
+
|
|
5206
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
5344
5207
|
|
|
5345
|
-
function
|
|
5208
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5346
5209
|
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
*
|
|
5350
|
-
*
|
|
5351
|
-
* @param {Object}
|
|
5210
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5211
|
+
/**
|
|
5212
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5213
|
+
*
|
|
5214
|
+
* @param {Object} prevProps
|
|
5215
|
+
* @param {Object} props
|
|
5352
5216
|
*/
|
|
5217
|
+
|
|
5353
5218
|
function shouldUpdateVideo(prevProps, props) {
|
|
5354
5219
|
// A changing video should always trigger an update
|
|
5355
5220
|
if (prevProps.videoId !== props.videoId) {
|
|
5356
5221
|
return true;
|
|
5357
|
-
}
|
|
5358
|
-
|
|
5359
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5222
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
5360
5223
|
// update.
|
|
5224
|
+
|
|
5225
|
+
|
|
5361
5226
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5362
5227
|
var vars = props.opts.playerVars || {};
|
|
5363
|
-
|
|
5364
5228
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5365
5229
|
}
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
*
|
|
5369
|
-
*
|
|
5370
|
-
*
|
|
5371
|
-
*
|
|
5372
|
-
* @param {Object} opts
|
|
5230
|
+
/**
|
|
5231
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
5232
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5233
|
+
* player reset is necessary.
|
|
5234
|
+
*
|
|
5235
|
+
* @param {Object} opts
|
|
5373
5236
|
*/
|
|
5237
|
+
|
|
5238
|
+
|
|
5374
5239
|
function filterResetOptions(opts) {
|
|
5375
|
-
return
|
|
5376
|
-
playerVars:
|
|
5240
|
+
return _objectSpread({}, opts, {
|
|
5241
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
5377
5242
|
autoplay: 0,
|
|
5378
5243
|
start: 0,
|
|
5379
5244
|
end: 0
|
|
5380
5245
|
})
|
|
5381
5246
|
});
|
|
5382
5247
|
}
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
*
|
|
5386
|
-
*
|
|
5387
|
-
*
|
|
5388
|
-
*
|
|
5389
|
-
*
|
|
5390
|
-
* @param {Object}
|
|
5391
|
-
* @param {Object} props
|
|
5248
|
+
/**
|
|
5249
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5250
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5251
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5252
|
+
* those.
|
|
5253
|
+
*
|
|
5254
|
+
* @param {Object} prevProps
|
|
5255
|
+
* @param {Object} props
|
|
5392
5256
|
*/
|
|
5257
|
+
|
|
5258
|
+
|
|
5393
5259
|
function shouldResetPlayer(prevProps, props) {
|
|
5394
5260
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5395
5261
|
}
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
*
|
|
5399
|
-
*
|
|
5400
|
-
* @param {Object}
|
|
5401
|
-
* @param {Object} props
|
|
5262
|
+
/**
|
|
5263
|
+
* Check whether a props change should result in an id or className update.
|
|
5264
|
+
*
|
|
5265
|
+
* @param {Object} prevProps
|
|
5266
|
+
* @param {Object} props
|
|
5402
5267
|
*/
|
|
5268
|
+
|
|
5269
|
+
|
|
5403
5270
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5404
5271
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5405
5272
|
}
|
|
5406
5273
|
|
|
5407
|
-
var YouTube = function (_React$Component) {
|
|
5274
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
5408
5275
|
_inherits(YouTube, _React$Component);
|
|
5409
5276
|
|
|
5277
|
+
var _super = _createSuper(YouTube);
|
|
5278
|
+
|
|
5279
|
+
/**
|
|
5280
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5281
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5282
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5283
|
+
*/
|
|
5410
5284
|
function YouTube(props) {
|
|
5285
|
+
var _this;
|
|
5286
|
+
|
|
5411
5287
|
_classCallCheck(this, YouTube);
|
|
5412
5288
|
|
|
5413
|
-
|
|
5289
|
+
_this = _super.call(this, props);
|
|
5414
5290
|
|
|
5415
|
-
_this
|
|
5291
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
5416
5292
|
return _this.props.onReady(event);
|
|
5417
|
-
};
|
|
5293
|
+
});
|
|
5418
5294
|
|
|
5419
|
-
_this
|
|
5295
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
5420
5296
|
return _this.props.onError(event);
|
|
5421
|
-
};
|
|
5297
|
+
});
|
|
5422
5298
|
|
|
5423
|
-
_this
|
|
5299
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
5424
5300
|
_this.props.onStateChange(event);
|
|
5425
|
-
switch (event.data) {
|
|
5426
5301
|
|
|
5302
|
+
switch (event.data) {
|
|
5427
5303
|
case YouTube.PlayerState.ENDED:
|
|
5428
5304
|
_this.props.onEnd(event);
|
|
5305
|
+
|
|
5429
5306
|
break;
|
|
5430
5307
|
|
|
5431
5308
|
case YouTube.PlayerState.PLAYING:
|
|
5432
5309
|
_this.props.onPlay(event);
|
|
5310
|
+
|
|
5433
5311
|
break;
|
|
5434
5312
|
|
|
5435
5313
|
case YouTube.PlayerState.PAUSED:
|
|
5436
5314
|
_this.props.onPause(event);
|
|
5315
|
+
|
|
5437
5316
|
break;
|
|
5438
5317
|
}
|
|
5439
|
-
};
|
|
5318
|
+
});
|
|
5440
5319
|
|
|
5441
|
-
_this
|
|
5320
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
5442
5321
|
return _this.props.onPlaybackRateChange(event);
|
|
5443
|
-
};
|
|
5322
|
+
});
|
|
5444
5323
|
|
|
5445
|
-
_this
|
|
5324
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
5446
5325
|
return _this.props.onPlaybackQualityChange(event);
|
|
5447
|
-
};
|
|
5326
|
+
});
|
|
5448
5327
|
|
|
5449
|
-
_this
|
|
5328
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
5450
5329
|
// do not attempt to create a player server-side, it won't work
|
|
5451
|
-
if (typeof document === 'undefined') return;
|
|
5452
|
-
|
|
5453
|
-
var playerOpts =
|
|
5330
|
+
if (typeof document === 'undefined') return; // create player
|
|
5331
|
+
|
|
5332
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
5454
5333
|
// preload the `videoId` video if one is already given
|
|
5455
5334
|
videoId: _this.props.videoId
|
|
5456
5335
|
});
|
|
5457
|
-
|
|
5458
|
-
// attach event handlers
|
|
5336
|
+
|
|
5337
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
5338
|
+
|
|
5459
5339
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5340
|
+
|
|
5460
5341
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5342
|
+
|
|
5461
5343
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5344
|
+
|
|
5462
5345
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5346
|
+
|
|
5463
5347
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5464
|
-
};
|
|
5348
|
+
});
|
|
5465
5349
|
|
|
5466
|
-
_this
|
|
5350
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
5467
5351
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5468
|
-
};
|
|
5352
|
+
});
|
|
5469
5353
|
|
|
5470
|
-
_this
|
|
5354
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
5471
5355
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5472
5356
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5473
5357
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5474
5358
|
});
|
|
5475
|
-
};
|
|
5359
|
+
});
|
|
5476
5360
|
|
|
5477
|
-
_this
|
|
5361
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
5478
5362
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5479
5363
|
_this.internalPlayer.stopVideo();
|
|
5364
|
+
|
|
5480
5365
|
return;
|
|
5481
|
-
}
|
|
5366
|
+
} // set queueing options
|
|
5367
|
+
|
|
5482
5368
|
|
|
5483
|
-
// set queueing options
|
|
5484
5369
|
var autoplay = false;
|
|
5485
5370
|
var opts = {
|
|
5486
5371
|
videoId: _this.props.videoId
|
|
5487
5372
|
};
|
|
5373
|
+
|
|
5488
5374
|
if ('playerVars' in _this.props.opts) {
|
|
5489
5375
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5376
|
+
|
|
5490
5377
|
if ('start' in _this.props.opts.playerVars) {
|
|
5491
5378
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5492
5379
|
}
|
|
5380
|
+
|
|
5493
5381
|
if ('end' in _this.props.opts.playerVars) {
|
|
5494
5382
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5495
5383
|
}
|
|
5496
|
-
}
|
|
5384
|
+
} // if autoplay is enabled loadVideoById
|
|
5385
|
+
|
|
5497
5386
|
|
|
5498
|
-
// if autoplay is enabled loadVideoById
|
|
5499
5387
|
if (autoplay) {
|
|
5500
5388
|
_this.internalPlayer.loadVideoById(opts);
|
|
5389
|
+
|
|
5501
5390
|
return;
|
|
5502
|
-
}
|
|
5503
|
-
|
|
5391
|
+
} // default behaviour just cues the video
|
|
5392
|
+
|
|
5393
|
+
|
|
5504
5394
|
_this.internalPlayer.cueVideoById(opts);
|
|
5505
|
-
};
|
|
5395
|
+
});
|
|
5506
5396
|
|
|
5507
|
-
_this
|
|
5397
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
5508
5398
|
_this.container = container;
|
|
5509
|
-
};
|
|
5399
|
+
});
|
|
5510
5400
|
|
|
5511
5401
|
_this.container = null;
|
|
5512
5402
|
_this.internalPlayer = null;
|
|
5513
5403
|
return _this;
|
|
5514
5404
|
}
|
|
5515
5405
|
|
|
5516
|
-
/**
|
|
5517
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5518
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5519
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5520
|
-
*/
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
5406
|
_createClass(YouTube, [{
|
|
5524
|
-
key:
|
|
5407
|
+
key: "componentDidMount",
|
|
5525
5408
|
value: function componentDidMount() {
|
|
5526
5409
|
this.createPlayer();
|
|
5527
5410
|
}
|
|
5528
5411
|
}, {
|
|
5529
|
-
key:
|
|
5412
|
+
key: "componentDidUpdate",
|
|
5530
5413
|
value: function componentDidUpdate(prevProps) {
|
|
5531
5414
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5532
5415
|
this.updatePlayer();
|
|
@@ -5541,112 +5424,58 @@ var YouTube = function (_React$Component) {
|
|
|
5541
5424
|
}
|
|
5542
5425
|
}
|
|
5543
5426
|
}, {
|
|
5544
|
-
key:
|
|
5427
|
+
key: "componentWillUnmount",
|
|
5545
5428
|
value: function componentWillUnmount() {
|
|
5546
|
-
/**
|
|
5547
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5548
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5549
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5550
|
-
* this method isn't quick enough to reset the container element.
|
|
5429
|
+
/**
|
|
5430
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
5431
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5432
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5433
|
+
* this method isn't quick enough to reset the container element.
|
|
5551
5434
|
*/
|
|
5552
5435
|
this.internalPlayer.destroy();
|
|
5553
5436
|
}
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
*
|
|
5557
|
-
*
|
|
5558
|
-
*
|
|
5559
|
-
* @param {Object} target - player object
|
|
5560
|
-
*/
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
/**
|
|
5564
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5565
|
-
*
|
|
5566
|
-
* @param {Object} event
|
|
5567
|
-
* @param {Integer} data - error type
|
|
5568
|
-
* @param {Object} target - player object
|
|
5569
|
-
*/
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
/**
|
|
5573
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5574
|
-
*
|
|
5575
|
-
* @param {Object} event
|
|
5576
|
-
* @param {Integer} data - status change type
|
|
5577
|
-
* @param {Object} target - actual YT player
|
|
5578
|
-
*/
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
/**
|
|
5582
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5583
|
-
*
|
|
5584
|
-
* @param {Object} event
|
|
5585
|
-
* @param {Float} data - playback rate
|
|
5586
|
-
* @param {Object} target - actual YT player
|
|
5587
|
-
*/
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
/**
|
|
5591
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5592
|
-
*
|
|
5593
|
-
* @param {Object} event
|
|
5594
|
-
* @param {String} data - playback quality
|
|
5595
|
-
* @param {Object} target - actual YT player
|
|
5596
|
-
*/
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
/**
|
|
5600
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5601
|
-
*/
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
/**
|
|
5605
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5606
|
-
*/
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
/**
|
|
5610
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
5611
|
-
* React should update this automatically but since the Youtube Player API
|
|
5612
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5613
|
-
*/
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
/**
|
|
5617
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
5618
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5619
|
-
* Youtube Player API methods to update the video.
|
|
5437
|
+
/**
|
|
5438
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5439
|
+
*
|
|
5440
|
+
* @param {Object} event
|
|
5441
|
+
* @param {Object} target - player object
|
|
5620
5442
|
*/
|
|
5621
5443
|
|
|
5622
5444
|
}, {
|
|
5623
|
-
key:
|
|
5445
|
+
key: "render",
|
|
5624
5446
|
value: function render() {
|
|
5625
|
-
return React__default.createElement(
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5447
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
5448
|
+
className: this.props.containerClassName
|
|
5449
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5450
|
+
id: this.props.id,
|
|
5451
|
+
className: this.props.className,
|
|
5452
|
+
ref: this.refContainer
|
|
5453
|
+
}));
|
|
5630
5454
|
}
|
|
5631
5455
|
}]);
|
|
5632
5456
|
|
|
5633
5457
|
return YouTube;
|
|
5634
5458
|
}(React__default.Component);
|
|
5635
5459
|
|
|
5460
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
5461
|
+
UNSTARTED: -1,
|
|
5462
|
+
ENDED: 0,
|
|
5463
|
+
PLAYING: 1,
|
|
5464
|
+
PAUSED: 2,
|
|
5465
|
+
BUFFERING: 3,
|
|
5466
|
+
CUED: 5
|
|
5467
|
+
});
|
|
5468
|
+
|
|
5636
5469
|
YouTube.propTypes = {
|
|
5637
5470
|
videoId: PropTypes.string,
|
|
5638
|
-
|
|
5639
5471
|
// custom ID for player element
|
|
5640
5472
|
id: PropTypes.string,
|
|
5641
|
-
|
|
5642
5473
|
// custom class name for player element
|
|
5643
5474
|
className: PropTypes.string,
|
|
5644
5475
|
// custom class name for player container element
|
|
5645
5476
|
containerClassName: PropTypes.string,
|
|
5646
|
-
|
|
5647
5477
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5648
5478
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5649
|
-
|
|
5650
5479
|
// event subscriptions
|
|
5651
5480
|
onReady: PropTypes.func,
|
|
5652
5481
|
onError: PropTypes.func,
|
|
@@ -5658,6 +5487,7 @@ YouTube.propTypes = {
|
|
|
5658
5487
|
onPlaybackQualityChange: PropTypes.func
|
|
5659
5488
|
};
|
|
5660
5489
|
YouTube.defaultProps = {
|
|
5490
|
+
videoId: null,
|
|
5661
5491
|
id: null,
|
|
5662
5492
|
className: null,
|
|
5663
5493
|
opts: {},
|
|
@@ -5671,14 +5501,6 @@ YouTube.defaultProps = {
|
|
|
5671
5501
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5672
5502
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5673
5503
|
};
|
|
5674
|
-
YouTube.PlayerState = {
|
|
5675
|
-
UNSTARTED: -1,
|
|
5676
|
-
ENDED: 0,
|
|
5677
|
-
PLAYING: 1,
|
|
5678
|
-
PAUSED: 2,
|
|
5679
|
-
BUFFERING: 3,
|
|
5680
|
-
CUED: 5
|
|
5681
|
-
};
|
|
5682
5504
|
|
|
5683
5505
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5684
5506
|
var url = _ref.url;
|
|
@@ -6010,14 +5832,14 @@ var Media = function Media(_ref) {
|
|
|
6010
5832
|
if (uploadDoc && uploadDoc.asset) {
|
|
6011
5833
|
if (poster && poster.asset && caption && caption !== '') {
|
|
6012
5834
|
return React__default.createElement(
|
|
6013
|
-
Figure,
|
|
5835
|
+
Figure$1,
|
|
6014
5836
|
{ className: 'mb-3' },
|
|
6015
5837
|
React__default.createElement(
|
|
6016
5838
|
'a',
|
|
6017
5839
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
6018
|
-
React__default.createElement(Figure.Image, { src: urlFor(poster).url(), fluid: true }),
|
|
5840
|
+
React__default.createElement(Figure$1.Image, { src: urlFor(poster).url(), fluid: true }),
|
|
6019
5841
|
React__default.createElement(
|
|
6020
|
-
Figure.Caption,
|
|
5842
|
+
Figure$1.Caption,
|
|
6021
5843
|
{ className: 'text-center' },
|
|
6022
5844
|
caption
|
|
6023
5845
|
)
|
|
@@ -6025,12 +5847,12 @@ var Media = function Media(_ref) {
|
|
|
6025
5847
|
);
|
|
6026
5848
|
} else if (poster && poster.asset) {
|
|
6027
5849
|
return React__default.createElement(
|
|
6028
|
-
Figure,
|
|
5850
|
+
Figure$1,
|
|
6029
5851
|
{ className: 'mb-3' },
|
|
6030
5852
|
React__default.createElement(
|
|
6031
5853
|
'a',
|
|
6032
5854
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
6033
|
-
React__default.createElement(Figure.Image, { src: urlFor(poster).url(), fluid: true })
|
|
5855
|
+
React__default.createElement(Figure$1.Image, { src: urlFor(poster).url(), fluid: true })
|
|
6034
5856
|
)
|
|
6035
5857
|
);
|
|
6036
5858
|
} else if (caption && caption !== '') {
|
|
@@ -6702,8 +6524,8 @@ var window_1 = win;
|
|
|
6702
6524
|
|
|
6703
6525
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6704
6526
|
|
|
6705
|
-
function _extends
|
|
6706
|
-
_extends
|
|
6527
|
+
function _extends() {
|
|
6528
|
+
_extends = Object.assign || function (target) {
|
|
6707
6529
|
for (var i = 1; i < arguments.length; i++) {
|
|
6708
6530
|
var source = arguments[i];
|
|
6709
6531
|
|
|
@@ -6717,7 +6539,7 @@ function _extends$1() {
|
|
|
6717
6539
|
return target;
|
|
6718
6540
|
};
|
|
6719
6541
|
|
|
6720
|
-
return _extends
|
|
6542
|
+
return _extends.apply(this, arguments);
|
|
6721
6543
|
}
|
|
6722
6544
|
|
|
6723
6545
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6726,7 +6548,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6726
6548
|
subClass.__proto__ = superClass;
|
|
6727
6549
|
}
|
|
6728
6550
|
|
|
6729
|
-
function _assertThisInitialized(self) {
|
|
6551
|
+
function _assertThisInitialized$1(self) {
|
|
6730
6552
|
if (self === void 0) {
|
|
6731
6553
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6732
6554
|
}
|
|
@@ -6736,8 +6558,8 @@ function _assertThisInitialized(self) {
|
|
|
6736
6558
|
|
|
6737
6559
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6738
6560
|
|
|
6739
|
-
function _extends$1
|
|
6740
|
-
_extends$1
|
|
6561
|
+
function _extends$1() {
|
|
6562
|
+
_extends$1 = Object.assign || function (target) {
|
|
6741
6563
|
for (var i = 1; i < arguments.length; i++) {
|
|
6742
6564
|
var source = arguments[i];
|
|
6743
6565
|
|
|
@@ -6751,7 +6573,7 @@ function _extends$1$1() {
|
|
|
6751
6573
|
return target;
|
|
6752
6574
|
};
|
|
6753
6575
|
|
|
6754
|
-
return _extends$1
|
|
6576
|
+
return _extends$1.apply(this, arguments);
|
|
6755
6577
|
}
|
|
6756
6578
|
|
|
6757
6579
|
var version$1 = "1.7.1";
|
|
@@ -6759,7 +6581,7 @@ var version$1 = "1.7.1";
|
|
|
6759
6581
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6760
6582
|
var version$1$1 = "1.2.0";
|
|
6761
6583
|
|
|
6762
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6584
|
+
var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6763
6585
|
return typeof obj;
|
|
6764
6586
|
} : function (obj) {
|
|
6765
6587
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6894,7 +6716,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6894
6716
|
|
|
6895
6717
|
var qs = '';
|
|
6896
6718
|
|
|
6897
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6719
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
|
|
6898
6720
|
qs = getQueryString(queryParams);
|
|
6899
6721
|
}
|
|
6900
6722
|
|
|
@@ -7128,7 +6950,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7128
6950
|
el.style.width = '100%';
|
|
7129
6951
|
el.style.height = '100%';
|
|
7130
6952
|
|
|
7131
|
-
var responsive = _extends$1
|
|
6953
|
+
var responsive = _extends$1({
|
|
7132
6954
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7133
6955
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7134
6956
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7813,7 +7635,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7813
7635
|
|
|
7814
7636
|
|
|
7815
7637
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7816
|
-
var params = _extends$1
|
|
7638
|
+
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7817
7639
|
|
|
7818
7640
|
var Promise = params.Promise,
|
|
7819
7641
|
onSuccess = params.onSuccess,
|
|
@@ -7955,7 +7777,7 @@ function (_React$Component) {
|
|
|
7955
7777
|
_this.refNode = ref;
|
|
7956
7778
|
};
|
|
7957
7779
|
|
|
7958
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7780
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
|
|
7959
7781
|
return _this;
|
|
7960
7782
|
}
|
|
7961
7783
|
/**
|
|
@@ -7976,7 +7798,7 @@ function (_React$Component) {
|
|
|
7976
7798
|
var userSuccess = this.props.onSuccess;
|
|
7977
7799
|
var userFailure = this.props.onFailure;
|
|
7978
7800
|
|
|
7979
|
-
var options = _extends
|
|
7801
|
+
var options = _extends({}, this.props, {
|
|
7980
7802
|
refNode: this.refNode,
|
|
7981
7803
|
refNodeInsert: 'append',
|
|
7982
7804
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8285,7 +8107,7 @@ function (_React$Component) {
|
|
|
8285
8107
|
;
|
|
8286
8108
|
|
|
8287
8109
|
_proto.render = function render() {
|
|
8288
|
-
var props = _extends
|
|
8110
|
+
var props = _extends({
|
|
8289
8111
|
className: 'brightcove-react-player-loader'
|
|
8290
8112
|
}, this.props.attrs, {
|
|
8291
8113
|
ref: this.setRefNode
|
|
@@ -8699,11 +8521,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8699
8521
|
|
|
8700
8522
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8701
8523
|
|
|
8702
|
-
function
|
|
8524
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8525
|
+
|
|
8526
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8703
8527
|
|
|
8704
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8528
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8705
8529
|
|
|
8706
|
-
function
|
|
8530
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8531
|
+
|
|
8532
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8533
|
+
|
|
8534
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8707
8535
|
|
|
8708
8536
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8709
8537
|
|
|
@@ -8833,12 +8661,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8833
8661
|
|
|
8834
8662
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8835
8663
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8836
|
-
|
|
8837
|
-
var
|
|
8838
|
-
|
|
8664
|
+
|
|
8665
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
8666
|
+
_step;
|
|
8839
8667
|
|
|
8840
8668
|
try {
|
|
8841
|
-
for (
|
|
8669
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
8842
8670
|
var p = _step.value;
|
|
8843
8671
|
|
|
8844
8672
|
if (props$1[p]) {
|
|
@@ -8853,18 +8681,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8853
8681
|
}
|
|
8854
8682
|
}
|
|
8855
8683
|
} catch (err) {
|
|
8856
|
-
|
|
8857
|
-
_iteratorError = err;
|
|
8684
|
+
_iterator.e(err);
|
|
8858
8685
|
} finally {
|
|
8859
|
-
|
|
8860
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8861
|
-
_iterator["return"]();
|
|
8862
|
-
}
|
|
8863
|
-
} finally {
|
|
8864
|
-
if (_didIteratorError) {
|
|
8865
|
-
throw _iteratorError;
|
|
8866
|
-
}
|
|
8867
|
-
}
|
|
8686
|
+
_iterator.f();
|
|
8868
8687
|
}
|
|
8869
8688
|
|
|
8870
8689
|
return config;
|
|
@@ -9011,12 +8830,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9011
8830
|
|
|
9012
8831
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9013
8832
|
|
|
9014
|
-
function
|
|
8833
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9015
8834
|
|
|
9016
|
-
function
|
|
8835
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9017
8836
|
|
|
9018
8837
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9019
8838
|
|
|
8839
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
8840
|
+
|
|
8841
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8842
|
+
|
|
9020
8843
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9021
8844
|
|
|
9022
8845
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9025,14 +8848,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9025
8848
|
|
|
9026
8849
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
9027
8850
|
|
|
9028
|
-
var Player =
|
|
9029
|
-
/*#__PURE__*/
|
|
9030
|
-
function (_Component) {
|
|
8851
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
9031
8852
|
_inherits(Player, _Component);
|
|
9032
8853
|
|
|
9033
|
-
|
|
9034
|
-
var _getPrototypeOf2;
|
|
8854
|
+
var _super = _createSuper(Player);
|
|
9035
8855
|
|
|
8856
|
+
function Player() {
|
|
9036
8857
|
var _this;
|
|
9037
8858
|
|
|
9038
8859
|
_classCallCheck(this, Player);
|
|
@@ -9041,7 +8862,7 @@ function (_Component) {
|
|
|
9041
8862
|
_args[_key] = arguments[_key];
|
|
9042
8863
|
}
|
|
9043
8864
|
|
|
9044
|
-
_this =
|
|
8865
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
9045
8866
|
|
|
9046
8867
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
9047
8868
|
|
|
@@ -9366,7 +9187,7 @@ function (_Component) {
|
|
|
9366
9187
|
return null;
|
|
9367
9188
|
}
|
|
9368
9189
|
|
|
9369
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9190
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
9370
9191
|
ref: this.ref,
|
|
9371
9192
|
onReady: this.handleReady,
|
|
9372
9193
|
onPlay: this.handlePlay,
|
|
@@ -9427,12 +9248,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9427
9248
|
|
|
9428
9249
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9429
9250
|
|
|
9430
|
-
function
|
|
9251
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9431
9252
|
|
|
9432
|
-
function
|
|
9253
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9433
9254
|
|
|
9434
9255
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9435
9256
|
|
|
9257
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9258
|
+
|
|
9259
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9260
|
+
|
|
9436
9261
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9437
9262
|
|
|
9438
9263
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9444,14 +9269,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9444
9269
|
function createSinglePlayer(activePlayer) {
|
|
9445
9270
|
var _class, _temp;
|
|
9446
9271
|
|
|
9447
|
-
return _temp = _class =
|
|
9448
|
-
/*#__PURE__*/
|
|
9449
|
-
function (_Component) {
|
|
9272
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
9450
9273
|
_inherits(SinglePlayer, _Component);
|
|
9451
9274
|
|
|
9452
|
-
|
|
9453
|
-
var _getPrototypeOf2;
|
|
9275
|
+
var _super = _createSuper(SinglePlayer);
|
|
9454
9276
|
|
|
9277
|
+
function SinglePlayer() {
|
|
9455
9278
|
var _this;
|
|
9456
9279
|
|
|
9457
9280
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9460,7 +9283,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9460
9283
|
args[_key] = arguments[_key];
|
|
9461
9284
|
}
|
|
9462
9285
|
|
|
9463
|
-
_this =
|
|
9286
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9464
9287
|
|
|
9465
9288
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9466
9289
|
|
|
@@ -9528,12 +9351,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9528
9351
|
height = _this$props.height,
|
|
9529
9352
|
Wrapper = _this$props.wrapper;
|
|
9530
9353
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9531
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
9354
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
9532
9355
|
style: _objectSpread({}, style, {
|
|
9533
9356
|
width: width,
|
|
9534
9357
|
height: height
|
|
9535
9358
|
})
|
|
9536
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9359
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9537
9360
|
ref: this.ref,
|
|
9538
9361
|
activePlayer: activePlayer,
|
|
9539
9362
|
config: this.config
|
|
@@ -9579,23 +9402,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9579
9402
|
|
|
9580
9403
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9581
9404
|
|
|
9582
|
-
function
|
|
9405
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9583
9406
|
|
|
9584
|
-
function
|
|
9407
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9585
9408
|
|
|
9586
9409
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9587
9410
|
|
|
9411
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9412
|
+
|
|
9413
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9414
|
+
|
|
9588
9415
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9589
9416
|
|
|
9590
9417
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9591
9418
|
|
|
9592
9419
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9593
9420
|
|
|
9594
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9421
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9595
9422
|
|
|
9596
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9423
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9597
9424
|
|
|
9598
|
-
function
|
|
9425
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9426
|
+
|
|
9427
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
9428
|
+
|
|
9429
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9599
9430
|
|
|
9600
9431
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9601
9432
|
|
|
@@ -9620,14 +9451,12 @@ function parsePlaylist(url) {
|
|
|
9620
9451
|
return {};
|
|
9621
9452
|
}
|
|
9622
9453
|
|
|
9623
|
-
var YouTube =
|
|
9624
|
-
/*#__PURE__*/
|
|
9625
|
-
function (_Component) {
|
|
9454
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
9626
9455
|
_inherits(YouTube, _Component);
|
|
9627
9456
|
|
|
9628
|
-
|
|
9629
|
-
var _getPrototypeOf2;
|
|
9457
|
+
var _super = _createSuper(YouTube);
|
|
9630
9458
|
|
|
9459
|
+
function YouTube() {
|
|
9631
9460
|
var _this;
|
|
9632
9461
|
|
|
9633
9462
|
_classCallCheck(this, YouTube);
|
|
@@ -9636,7 +9465,7 @@ function (_Component) {
|
|
|
9636
9465
|
args[_key] = arguments[_key];
|
|
9637
9466
|
}
|
|
9638
9467
|
|
|
9639
|
-
_this =
|
|
9468
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9640
9469
|
|
|
9641
9470
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9642
9471
|
|
|
@@ -9824,9 +9653,9 @@ function (_Component) {
|
|
|
9824
9653
|
height: '100%',
|
|
9825
9654
|
display: display
|
|
9826
9655
|
};
|
|
9827
|
-
return _react["default"].createElement("div", {
|
|
9656
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
9828
9657
|
style: style
|
|
9829
|
-
}, _react["default"].createElement("div", {
|
|
9658
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
9830
9659
|
ref: this.ref
|
|
9831
9660
|
}));
|
|
9832
9661
|
}
|
|
@@ -9882,12 +9711,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9882
9711
|
|
|
9883
9712
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9884
9713
|
|
|
9885
|
-
function
|
|
9714
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9886
9715
|
|
|
9887
|
-
function
|
|
9716
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9888
9717
|
|
|
9889
9718
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9890
9719
|
|
|
9720
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9721
|
+
|
|
9722
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9723
|
+
|
|
9891
9724
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9892
9725
|
|
|
9893
9726
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9896,16 +9729,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9896
9729
|
|
|
9897
9730
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9898
9731
|
var SDK_GLOBAL = 'SC';
|
|
9899
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
9732
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
9900
9733
|
|
|
9901
|
-
var SoundCloud =
|
|
9902
|
-
/*#__PURE__*/
|
|
9903
|
-
function (_Component) {
|
|
9734
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
9904
9735
|
_inherits(SoundCloud, _Component);
|
|
9905
9736
|
|
|
9906
|
-
|
|
9907
|
-
var _getPrototypeOf2;
|
|
9737
|
+
var _super = _createSuper(SoundCloud);
|
|
9908
9738
|
|
|
9739
|
+
function SoundCloud() {
|
|
9909
9740
|
var _this;
|
|
9910
9741
|
|
|
9911
9742
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9914,7 +9745,7 @@ function (_Component) {
|
|
|
9914
9745
|
args[_key] = arguments[_key];
|
|
9915
9746
|
}
|
|
9916
9747
|
|
|
9917
|
-
_this =
|
|
9748
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9918
9749
|
|
|
9919
9750
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9920
9751
|
|
|
@@ -10035,7 +9866,7 @@ function (_Component) {
|
|
|
10035
9866
|
height: '100%',
|
|
10036
9867
|
display: display
|
|
10037
9868
|
};
|
|
10038
|
-
return _react["default"].createElement("iframe", {
|
|
9869
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10039
9870
|
ref: this.ref,
|
|
10040
9871
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
10041
9872
|
style: style,
|
|
@@ -10097,12 +9928,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10097
9928
|
|
|
10098
9929
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10099
9930
|
|
|
10100
|
-
function
|
|
9931
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10101
9932
|
|
|
10102
|
-
function
|
|
9933
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10103
9934
|
|
|
10104
9935
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10105
9936
|
|
|
9937
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9938
|
+
|
|
9939
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9940
|
+
|
|
10106
9941
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10107
9942
|
|
|
10108
9943
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10114,14 +9949,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10114
9949
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10115
9950
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10116
9951
|
|
|
10117
|
-
var Vimeo =
|
|
10118
|
-
/*#__PURE__*/
|
|
10119
|
-
function (_Component) {
|
|
9952
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
10120
9953
|
_inherits(Vimeo, _Component);
|
|
10121
9954
|
|
|
10122
|
-
|
|
10123
|
-
var _getPrototypeOf2;
|
|
9955
|
+
var _super = _createSuper(Vimeo);
|
|
10124
9956
|
|
|
9957
|
+
function Vimeo() {
|
|
10125
9958
|
var _this;
|
|
10126
9959
|
|
|
10127
9960
|
_classCallCheck(this, Vimeo);
|
|
@@ -10130,7 +9963,7 @@ function (_Component) {
|
|
|
10130
9963
|
args[_key] = arguments[_key];
|
|
10131
9964
|
}
|
|
10132
9965
|
|
|
10133
|
-
_this =
|
|
9966
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10134
9967
|
|
|
10135
9968
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10136
9969
|
|
|
@@ -10287,7 +10120,7 @@ function (_Component) {
|
|
|
10287
10120
|
overflow: 'hidden',
|
|
10288
10121
|
display: display
|
|
10289
10122
|
};
|
|
10290
|
-
return _react["default"].createElement("div", {
|
|
10123
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10291
10124
|
key: this.props.url,
|
|
10292
10125
|
ref: this.ref,
|
|
10293
10126
|
style: style
|
|
@@ -10347,12 +10180,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10347
10180
|
|
|
10348
10181
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10349
10182
|
|
|
10350
|
-
function
|
|
10183
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10351
10184
|
|
|
10352
|
-
function
|
|
10185
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10353
10186
|
|
|
10354
10187
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10355
10188
|
|
|
10189
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10190
|
+
|
|
10191
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10192
|
+
|
|
10356
10193
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10357
10194
|
|
|
10358
10195
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10365,14 +10202,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10365
10202
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10366
10203
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10367
10204
|
|
|
10368
|
-
var Facebook =
|
|
10369
|
-
/*#__PURE__*/
|
|
10370
|
-
function (_Component) {
|
|
10205
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
10371
10206
|
_inherits(Facebook, _Component);
|
|
10372
10207
|
|
|
10373
|
-
|
|
10374
|
-
var _getPrototypeOf2;
|
|
10208
|
+
var _super = _createSuper(Facebook);
|
|
10375
10209
|
|
|
10210
|
+
function Facebook() {
|
|
10376
10211
|
var _this;
|
|
10377
10212
|
|
|
10378
10213
|
_classCallCheck(this, Facebook);
|
|
@@ -10381,7 +10216,7 @@ function (_Component) {
|
|
|
10381
10216
|
args[_key] = arguments[_key];
|
|
10382
10217
|
}
|
|
10383
10218
|
|
|
10384
|
-
_this =
|
|
10219
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10385
10220
|
|
|
10386
10221
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10387
10222
|
|
|
@@ -10497,7 +10332,7 @@ function (_Component) {
|
|
|
10497
10332
|
width: '100%',
|
|
10498
10333
|
height: '100%'
|
|
10499
10334
|
};
|
|
10500
|
-
return _react["default"].createElement("div", {
|
|
10335
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10501
10336
|
style: style,
|
|
10502
10337
|
id: this.playerID,
|
|
10503
10338
|
className: "fb-video",
|
|
@@ -10557,12 +10392,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10557
10392
|
|
|
10558
10393
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10559
10394
|
|
|
10560
|
-
function
|
|
10395
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10561
10396
|
|
|
10562
|
-
function
|
|
10397
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10563
10398
|
|
|
10564
10399
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10565
10400
|
|
|
10401
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10402
|
+
|
|
10403
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10404
|
+
|
|
10566
10405
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10567
10406
|
|
|
10568
10407
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10573,14 +10412,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10573
10412
|
var SDK_GLOBAL = 'playerjs';
|
|
10574
10413
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10575
10414
|
|
|
10576
|
-
var Streamable =
|
|
10577
|
-
/*#__PURE__*/
|
|
10578
|
-
function (_Component) {
|
|
10415
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
10579
10416
|
_inherits(Streamable, _Component);
|
|
10580
10417
|
|
|
10581
|
-
|
|
10582
|
-
var _getPrototypeOf2;
|
|
10418
|
+
var _super = _createSuper(Streamable);
|
|
10583
10419
|
|
|
10420
|
+
function Streamable() {
|
|
10584
10421
|
var _this;
|
|
10585
10422
|
|
|
10586
10423
|
_classCallCheck(this, Streamable);
|
|
@@ -10589,7 +10426,7 @@ function (_Component) {
|
|
|
10589
10426
|
args[_key] = arguments[_key];
|
|
10590
10427
|
}
|
|
10591
10428
|
|
|
10592
|
-
_this =
|
|
10429
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10593
10430
|
|
|
10594
10431
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10595
10432
|
|
|
@@ -10709,7 +10546,7 @@ function (_Component) {
|
|
|
10709
10546
|
width: '100%',
|
|
10710
10547
|
height: '100%'
|
|
10711
10548
|
};
|
|
10712
|
-
return _react["default"].createElement("iframe", {
|
|
10549
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10713
10550
|
ref: this.ref,
|
|
10714
10551
|
src: "https://streamable.com/o/".concat(id),
|
|
10715
10552
|
frameBorder: "0",
|
|
@@ -10770,12 +10607,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10770
10607
|
|
|
10771
10608
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10772
10609
|
|
|
10773
|
-
function
|
|
10610
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10774
10611
|
|
|
10775
|
-
function
|
|
10612
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10776
10613
|
|
|
10777
10614
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10778
10615
|
|
|
10616
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10617
|
+
|
|
10618
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10619
|
+
|
|
10779
10620
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10780
10621
|
|
|
10781
10622
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10786,26 +10627,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10786
10627
|
var SDK_GLOBAL = 'Wistia';
|
|
10787
10628
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10788
10629
|
|
|
10789
|
-
var Wistia =
|
|
10790
|
-
/*#__PURE__*/
|
|
10791
|
-
function (_Component) {
|
|
10630
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
10792
10631
|
_inherits(Wistia, _Component);
|
|
10793
10632
|
|
|
10794
|
-
|
|
10795
|
-
var _getPrototypeOf2;
|
|
10633
|
+
var _super = _createSuper(Wistia);
|
|
10796
10634
|
|
|
10635
|
+
function Wistia() {
|
|
10797
10636
|
var _this;
|
|
10798
10637
|
|
|
10799
10638
|
_classCallCheck(this, Wistia);
|
|
10800
10639
|
|
|
10801
|
-
for (var _len = arguments.length,
|
|
10802
|
-
|
|
10640
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10641
|
+
_args[_key] = arguments[_key];
|
|
10803
10642
|
}
|
|
10804
10643
|
|
|
10805
|
-
_this =
|
|
10644
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
10806
10645
|
|
|
10807
10646
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10808
10647
|
|
|
10648
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10649
|
+
var _this$props;
|
|
10650
|
+
|
|
10651
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10652
|
+
});
|
|
10653
|
+
|
|
10654
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10655
|
+
var _this$props2;
|
|
10656
|
+
|
|
10657
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10658
|
+
});
|
|
10659
|
+
|
|
10660
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10661
|
+
var _this$props3;
|
|
10662
|
+
|
|
10663
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10664
|
+
});
|
|
10665
|
+
|
|
10666
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10667
|
+
var _this$props4;
|
|
10668
|
+
|
|
10669
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10670
|
+
});
|
|
10671
|
+
|
|
10809
10672
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10810
10673
|
_this.callPlayer('mute');
|
|
10811
10674
|
});
|
|
@@ -10827,17 +10690,13 @@ function (_Component) {
|
|
|
10827
10690
|
value: function load(url) {
|
|
10828
10691
|
var _this2 = this;
|
|
10829
10692
|
|
|
10830
|
-
var _this$
|
|
10831
|
-
playing = _this$
|
|
10832
|
-
muted = _this$
|
|
10833
|
-
controls = _this$
|
|
10834
|
-
_onReady = _this$
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
onSeek = _this$props.onSeek,
|
|
10838
|
-
onEnded = _this$props.onEnded,
|
|
10839
|
-
config = _this$props.config,
|
|
10840
|
-
onError = _this$props.onError;
|
|
10693
|
+
var _this$props5 = this.props,
|
|
10694
|
+
playing = _this$props5.playing,
|
|
10695
|
+
muted = _this$props5.muted,
|
|
10696
|
+
controls = _this$props5.controls,
|
|
10697
|
+
_onReady = _this$props5.onReady,
|
|
10698
|
+
config = _this$props5.config,
|
|
10699
|
+
onError = _this$props5.onError;
|
|
10841
10700
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10842
10701
|
window._wq = window._wq || [];
|
|
10843
10702
|
|
|
@@ -10854,19 +10713,28 @@ function (_Component) {
|
|
|
10854
10713
|
|
|
10855
10714
|
_this2.unbind();
|
|
10856
10715
|
|
|
10857
|
-
_this2.player.bind('play', onPlay);
|
|
10716
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
10858
10717
|
|
|
10859
|
-
_this2.player.bind('pause', onPause);
|
|
10718
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
10860
10719
|
|
|
10861
|
-
_this2.player.bind('seek', onSeek);
|
|
10720
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
10862
10721
|
|
|
10863
|
-
_this2.player.bind('end', onEnded);
|
|
10722
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
10864
10723
|
|
|
10865
10724
|
_onReady();
|
|
10866
10725
|
}
|
|
10867
10726
|
});
|
|
10868
10727
|
}, onError);
|
|
10869
10728
|
}
|
|
10729
|
+
}, {
|
|
10730
|
+
key: "unbind",
|
|
10731
|
+
value: function unbind() {
|
|
10732
|
+
this.player.unbind('play', this.onPlay);
|
|
10733
|
+
this.player.unbind('pause', this.onPause);
|
|
10734
|
+
this.player.unbind('seek', this.onSeek);
|
|
10735
|
+
this.player.unbind('end', this.onEnded);
|
|
10736
|
+
} // Proxy methods to prevent listener leaks
|
|
10737
|
+
|
|
10870
10738
|
}, {
|
|
10871
10739
|
key: "play",
|
|
10872
10740
|
value: function play() {
|
|
@@ -10877,19 +10745,6 @@ function (_Component) {
|
|
|
10877
10745
|
value: function pause() {
|
|
10878
10746
|
this.callPlayer('pause');
|
|
10879
10747
|
}
|
|
10880
|
-
}, {
|
|
10881
|
-
key: "unbind",
|
|
10882
|
-
value: function unbind() {
|
|
10883
|
-
var _this$props2 = this.props,
|
|
10884
|
-
onPlay = _this$props2.onPlay,
|
|
10885
|
-
onPause = _this$props2.onPause,
|
|
10886
|
-
onSeek = _this$props2.onSeek,
|
|
10887
|
-
onEnded = _this$props2.onEnded;
|
|
10888
|
-
this.player.unbind('play', onPlay);
|
|
10889
|
-
this.player.unbind('pause', onPause);
|
|
10890
|
-
this.player.unbind('seek', onSeek);
|
|
10891
|
-
this.player.unbind('end', onEnded);
|
|
10892
|
-
}
|
|
10893
10748
|
}, {
|
|
10894
10749
|
key: "stop",
|
|
10895
10750
|
value: function stop() {
|
|
@@ -10935,7 +10790,7 @@ function (_Component) {
|
|
|
10935
10790
|
width: '100%',
|
|
10936
10791
|
height: '100%'
|
|
10937
10792
|
};
|
|
10938
|
-
return _react["default"].createElement("div", {
|
|
10793
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10939
10794
|
key: id,
|
|
10940
10795
|
className: className,
|
|
10941
10796
|
style: style
|
|
@@ -10995,12 +10850,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10995
10850
|
|
|
10996
10851
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10997
10852
|
|
|
10998
|
-
function
|
|
10853
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10999
10854
|
|
|
11000
|
-
function
|
|
10855
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11001
10856
|
|
|
11002
10857
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11003
10858
|
|
|
10859
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10860
|
+
|
|
10861
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10862
|
+
|
|
11004
10863
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11005
10864
|
|
|
11006
10865
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11013,14 +10872,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
11013
10872
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
11014
10873
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
11015
10874
|
|
|
11016
|
-
var Twitch =
|
|
11017
|
-
/*#__PURE__*/
|
|
11018
|
-
function (_Component) {
|
|
10875
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
11019
10876
|
_inherits(Twitch, _Component);
|
|
11020
10877
|
|
|
11021
|
-
|
|
11022
|
-
var _getPrototypeOf2;
|
|
10878
|
+
var _super = _createSuper(Twitch);
|
|
11023
10879
|
|
|
10880
|
+
function Twitch() {
|
|
11024
10881
|
var _this;
|
|
11025
10882
|
|
|
11026
10883
|
_classCallCheck(this, Twitch);
|
|
@@ -11029,7 +10886,7 @@ function (_Component) {
|
|
|
11029
10886
|
args[_key] = arguments[_key];
|
|
11030
10887
|
}
|
|
11031
10888
|
|
|
11032
|
-
_this =
|
|
10889
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11033
10890
|
|
|
11034
10891
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11035
10892
|
|
|
@@ -11150,7 +11007,7 @@ function (_Component) {
|
|
|
11150
11007
|
width: '100%',
|
|
11151
11008
|
height: '100%'
|
|
11152
11009
|
};
|
|
11153
|
-
return _react["default"].createElement("div", {
|
|
11010
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11154
11011
|
style: style,
|
|
11155
11012
|
id: this.playerID
|
|
11156
11013
|
});
|
|
@@ -11203,11 +11060,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11203
11060
|
|
|
11204
11061
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
11205
11062
|
|
|
11206
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11063
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11064
|
+
|
|
11065
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11066
|
+
|
|
11067
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11207
11068
|
|
|
11208
|
-
function
|
|
11069
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11209
11070
|
|
|
11210
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
11071
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11211
11072
|
|
|
11212
11073
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11213
11074
|
|
|
@@ -11217,12 +11078,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11217
11078
|
|
|
11218
11079
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11219
11080
|
|
|
11220
|
-
function
|
|
11081
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11221
11082
|
|
|
11222
|
-
function
|
|
11083
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11223
11084
|
|
|
11224
11085
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11225
11086
|
|
|
11087
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11088
|
+
|
|
11089
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11090
|
+
|
|
11226
11091
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11227
11092
|
|
|
11228
11093
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11234,14 +11099,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
11234
11099
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11235
11100
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11236
11101
|
|
|
11237
|
-
var DailyMotion =
|
|
11238
|
-
/*#__PURE__*/
|
|
11239
|
-
function (_Component) {
|
|
11102
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
11240
11103
|
_inherits(DailyMotion, _Component);
|
|
11241
11104
|
|
|
11242
|
-
|
|
11243
|
-
var _getPrototypeOf2;
|
|
11105
|
+
var _super = _createSuper(DailyMotion);
|
|
11244
11106
|
|
|
11107
|
+
function DailyMotion() {
|
|
11245
11108
|
var _this;
|
|
11246
11109
|
|
|
11247
11110
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11250,7 +11113,7 @@ function (_Component) {
|
|
|
11250
11113
|
args[_key] = arguments[_key];
|
|
11251
11114
|
}
|
|
11252
11115
|
|
|
11253
|
-
_this =
|
|
11116
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11254
11117
|
|
|
11255
11118
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11256
11119
|
|
|
@@ -11379,9 +11242,9 @@ function (_Component) {
|
|
|
11379
11242
|
height: '100%',
|
|
11380
11243
|
display: display
|
|
11381
11244
|
};
|
|
11382
|
-
return _react["default"].createElement("div", {
|
|
11245
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11383
11246
|
style: style
|
|
11384
|
-
}, _react["default"].createElement("div", {
|
|
11247
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
11385
11248
|
ref: this.ref
|
|
11386
11249
|
}));
|
|
11387
11250
|
}
|
|
@@ -11439,12 +11302,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11439
11302
|
|
|
11440
11303
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11441
11304
|
|
|
11442
|
-
function
|
|
11305
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11443
11306
|
|
|
11444
|
-
function
|
|
11307
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11445
11308
|
|
|
11446
11309
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11447
11310
|
|
|
11311
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11312
|
+
|
|
11313
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11314
|
+
|
|
11448
11315
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11449
11316
|
|
|
11450
11317
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11455,14 +11322,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11455
11322
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11456
11323
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11457
11324
|
|
|
11458
|
-
var Mixcloud =
|
|
11459
|
-
/*#__PURE__*/
|
|
11460
|
-
function (_Component) {
|
|
11325
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
11461
11326
|
_inherits(Mixcloud, _Component);
|
|
11462
11327
|
|
|
11463
|
-
|
|
11464
|
-
var _getPrototypeOf2;
|
|
11328
|
+
var _super = _createSuper(Mixcloud);
|
|
11465
11329
|
|
|
11330
|
+
function Mixcloud() {
|
|
11466
11331
|
var _this;
|
|
11467
11332
|
|
|
11468
11333
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11471,7 +11336,7 @@ function (_Component) {
|
|
|
11471
11336
|
args[_key] = arguments[_key];
|
|
11472
11337
|
}
|
|
11473
11338
|
|
|
11474
|
-
_this =
|
|
11339
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11475
11340
|
|
|
11476
11341
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11477
11342
|
|
|
@@ -11574,7 +11439,7 @@ function (_Component) {
|
|
|
11574
11439
|
})); // We have to give the iframe a key here to prevent a
|
|
11575
11440
|
// weird dialog appearing when loading a new track
|
|
11576
11441
|
|
|
11577
|
-
return _react["default"].createElement("iframe", {
|
|
11442
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
11578
11443
|
key: id,
|
|
11579
11444
|
ref: this.ref,
|
|
11580
11445
|
style: style,
|
|
@@ -11634,23 +11499,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11634
11499
|
|
|
11635
11500
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11636
11501
|
|
|
11637
|
-
function
|
|
11502
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11638
11503
|
|
|
11639
|
-
function
|
|
11504
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11640
11505
|
|
|
11641
11506
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11642
11507
|
|
|
11508
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11509
|
+
|
|
11510
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11511
|
+
|
|
11643
11512
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11644
11513
|
|
|
11645
11514
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11646
11515
|
|
|
11647
11516
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11648
11517
|
|
|
11518
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
11519
|
+
|
|
11520
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11521
|
+
|
|
11522
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11523
|
+
|
|
11649
11524
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11650
11525
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11651
11526
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11652
11527
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11653
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11528
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
11654
11529
|
var HLS_GLOBAL = 'Hls';
|
|
11655
11530
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11656
11531
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11659,12 +11534,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11659
11534
|
|
|
11660
11535
|
function canPlay(url) {
|
|
11661
11536
|
if (url instanceof Array) {
|
|
11662
|
-
var
|
|
11663
|
-
|
|
11664
|
-
var _iteratorError = undefined;
|
|
11537
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
11538
|
+
_step;
|
|
11665
11539
|
|
|
11666
11540
|
try {
|
|
11667
|
-
for (
|
|
11541
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11668
11542
|
var item = _step.value;
|
|
11669
11543
|
|
|
11670
11544
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11676,18 +11550,9 @@ function canPlay(url) {
|
|
|
11676
11550
|
}
|
|
11677
11551
|
}
|
|
11678
11552
|
} catch (err) {
|
|
11679
|
-
|
|
11680
|
-
_iteratorError = err;
|
|
11553
|
+
_iterator.e(err);
|
|
11681
11554
|
} finally {
|
|
11682
|
-
|
|
11683
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11684
|
-
_iterator["return"]();
|
|
11685
|
-
}
|
|
11686
|
-
} finally {
|
|
11687
|
-
if (_didIteratorError) {
|
|
11688
|
-
throw _iteratorError;
|
|
11689
|
-
}
|
|
11690
|
-
}
|
|
11555
|
+
_iterator.f();
|
|
11691
11556
|
}
|
|
11692
11557
|
|
|
11693
11558
|
return false;
|
|
@@ -11711,14 +11576,12 @@ function canEnablePIP(url) {
|
|
|
11711
11576
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11712
11577
|
}
|
|
11713
11578
|
|
|
11714
|
-
var FilePlayer =
|
|
11715
|
-
/*#__PURE__*/
|
|
11716
|
-
function (_Component) {
|
|
11579
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
11717
11580
|
_inherits(FilePlayer, _Component);
|
|
11718
11581
|
|
|
11719
|
-
|
|
11720
|
-
var _getPrototypeOf2;
|
|
11582
|
+
var _super = _createSuper(FilePlayer);
|
|
11721
11583
|
|
|
11584
|
+
function FilePlayer() {
|
|
11722
11585
|
var _this;
|
|
11723
11586
|
|
|
11724
11587
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11727,7 +11590,7 @@ function (_Component) {
|
|
|
11727
11590
|
_args[_key] = arguments[_key];
|
|
11728
11591
|
}
|
|
11729
11592
|
|
|
11730
|
-
_this =
|
|
11593
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
11731
11594
|
|
|
11732
11595
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11733
11596
|
var _this$props;
|
|
@@ -11814,19 +11677,19 @@ function (_Component) {
|
|
|
11814
11677
|
|
|
11815
11678
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11816
11679
|
if (typeof source === 'string') {
|
|
11817
|
-
return _react["default"].createElement("source", {
|
|
11680
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
11818
11681
|
key: index,
|
|
11819
11682
|
src: source
|
|
11820
11683
|
});
|
|
11821
11684
|
}
|
|
11822
11685
|
|
|
11823
|
-
return _react["default"].createElement("source", _extends({
|
|
11686
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
11824
11687
|
key: index
|
|
11825
11688
|
}, source));
|
|
11826
11689
|
});
|
|
11827
11690
|
|
|
11828
11691
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11829
|
-
return _react["default"].createElement("track", _extends({
|
|
11692
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
11830
11693
|
key: index
|
|
11831
11694
|
}, track));
|
|
11832
11695
|
});
|
|
@@ -11864,6 +11727,10 @@ function (_Component) {
|
|
|
11864
11727
|
key: "componentWillUnmount",
|
|
11865
11728
|
value: function componentWillUnmount() {
|
|
11866
11729
|
this.removeListeners(this.player);
|
|
11730
|
+
|
|
11731
|
+
if (this.hls) {
|
|
11732
|
+
this.hls.destroy();
|
|
11733
|
+
}
|
|
11867
11734
|
}
|
|
11868
11735
|
}, {
|
|
11869
11736
|
key: "addListeners",
|
|
@@ -11994,10 +11861,6 @@ function (_Component) {
|
|
|
11994
11861
|
value: function stop() {
|
|
11995
11862
|
this.player.removeAttribute('src');
|
|
11996
11863
|
|
|
11997
|
-
if (this.hls) {
|
|
11998
|
-
this.hls.destroy();
|
|
11999
|
-
}
|
|
12000
|
-
|
|
12001
11864
|
if (this.dash) {
|
|
12002
11865
|
this.dash.reset();
|
|
12003
11866
|
}
|
|
@@ -12109,7 +11972,7 @@ function (_Component) {
|
|
|
12109
11972
|
width: width === 'auto' ? width : '100%',
|
|
12110
11973
|
height: height === 'auto' ? height : '100%'
|
|
12111
11974
|
};
|
|
12112
|
-
return _react["default"].createElement(Element, _extends({
|
|
11975
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
12113
11976
|
ref: this.ref,
|
|
12114
11977
|
src: this.getSource(url),
|
|
12115
11978
|
style: style,
|
|
@@ -12199,12 +12062,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12199
12062
|
|
|
12200
12063
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12201
12064
|
|
|
12202
|
-
function
|
|
12065
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12203
12066
|
|
|
12204
|
-
function
|
|
12067
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12205
12068
|
|
|
12206
12069
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12207
12070
|
|
|
12071
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
12072
|
+
|
|
12073
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12074
|
+
|
|
12208
12075
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12209
12076
|
|
|
12210
12077
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12213,14 +12080,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12213
12080
|
|
|
12214
12081
|
var ICON_SIZE = '64px';
|
|
12215
12082
|
|
|
12216
|
-
var Preview =
|
|
12217
|
-
/*#__PURE__*/
|
|
12218
|
-
function (_Component) {
|
|
12083
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
12219
12084
|
_inherits(Preview, _Component);
|
|
12220
12085
|
|
|
12221
|
-
|
|
12222
|
-
var _getPrototypeOf2;
|
|
12086
|
+
var _super = _createSuper(Preview);
|
|
12223
12087
|
|
|
12088
|
+
function Preview() {
|
|
12224
12089
|
var _this;
|
|
12225
12090
|
|
|
12226
12091
|
_classCallCheck(this, Preview);
|
|
@@ -12229,7 +12094,7 @@ function (_Component) {
|
|
|
12229
12094
|
args[_key] = arguments[_key];
|
|
12230
12095
|
}
|
|
12231
12096
|
|
|
12232
|
-
_this =
|
|
12097
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12233
12098
|
|
|
12234
12099
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12235
12100
|
|
|
@@ -12327,15 +12192,15 @@ function (_Component) {
|
|
|
12327
12192
|
}
|
|
12328
12193
|
};
|
|
12329
12194
|
|
|
12330
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12195
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
12331
12196
|
style: styles.shadow,
|
|
12332
12197
|
className: "react-player__shadow"
|
|
12333
|
-
}, _react["default"].createElement("div", {
|
|
12198
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
12334
12199
|
style: styles.playIcon,
|
|
12335
12200
|
className: "react-player__play-icon"
|
|
12336
12201
|
}));
|
|
12337
12202
|
|
|
12338
|
-
return _react["default"].createElement("div", {
|
|
12203
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
12339
12204
|
style: styles.preview,
|
|
12340
12205
|
className: "react-player__preview",
|
|
12341
12206
|
onClick: onClick
|
|
@@ -12372,6 +12237,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12372
12237
|
|
|
12373
12238
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12374
12239
|
|
|
12240
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12241
|
+
|
|
12242
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12243
|
+
|
|
12244
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12245
|
+
|
|
12375
12246
|
var PRELOAD_PLAYERS = [{
|
|
12376
12247
|
Player: YouTube_1.YouTube,
|
|
12377
12248
|
configKey: 'youtube',
|
|
@@ -12392,16 +12263,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12392
12263
|
|
|
12393
12264
|
function renderPreloadPlayers(url, controls, config) {
|
|
12394
12265
|
var players = [];
|
|
12395
|
-
|
|
12396
|
-
var
|
|
12397
|
-
|
|
12266
|
+
|
|
12267
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
12268
|
+
_step;
|
|
12398
12269
|
|
|
12399
12270
|
try {
|
|
12400
|
-
for (
|
|
12271
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12401
12272
|
var player = _step.value;
|
|
12402
12273
|
|
|
12403
12274
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12404
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
12275
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
12405
12276
|
key: player.Player.displayName,
|
|
12406
12277
|
activePlayer: player.Player,
|
|
12407
12278
|
url: player.url,
|
|
@@ -12413,18 +12284,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12413
12284
|
}
|
|
12414
12285
|
}
|
|
12415
12286
|
} catch (err) {
|
|
12416
|
-
|
|
12417
|
-
_iteratorError = err;
|
|
12287
|
+
_iterator.e(err);
|
|
12418
12288
|
} finally {
|
|
12419
|
-
|
|
12420
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12421
|
-
_iterator["return"]();
|
|
12422
|
-
}
|
|
12423
|
-
} finally {
|
|
12424
|
-
if (_didIteratorError) {
|
|
12425
|
-
throw _iteratorError;
|
|
12426
|
-
}
|
|
12427
|
-
}
|
|
12289
|
+
_iterator.f();
|
|
12428
12290
|
}
|
|
12429
12291
|
|
|
12430
12292
|
return players;
|
|
@@ -12548,13 +12410,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12548
12410
|
|
|
12549
12411
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
12550
12412
|
|
|
12551
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12413
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12414
|
+
|
|
12415
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12416
|
+
|
|
12417
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12552
12418
|
|
|
12553
|
-
function
|
|
12419
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
12554
12420
|
|
|
12555
|
-
function
|
|
12421
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12556
12422
|
|
|
12557
|
-
function
|
|
12423
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12558
12424
|
|
|
12559
12425
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12560
12426
|
|
|
@@ -12562,12 +12428,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12562
12428
|
|
|
12563
12429
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12564
12430
|
|
|
12565
|
-
function
|
|
12431
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12566
12432
|
|
|
12567
|
-
function
|
|
12433
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12568
12434
|
|
|
12569
12435
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12570
12436
|
|
|
12437
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
12438
|
+
|
|
12439
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12440
|
+
|
|
12571
12441
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12572
12442
|
|
|
12573
12443
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12577,14 +12447,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12577
12447
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12578
12448
|
var customPlayers = [];
|
|
12579
12449
|
|
|
12580
|
-
var ReactPlayer =
|
|
12581
|
-
/*#__PURE__*/
|
|
12582
|
-
function (_Component) {
|
|
12450
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
12583
12451
|
_inherits(ReactPlayer, _Component);
|
|
12584
12452
|
|
|
12585
|
-
|
|
12586
|
-
var _getPrototypeOf2;
|
|
12453
|
+
var _super = _createSuper(ReactPlayer);
|
|
12587
12454
|
|
|
12455
|
+
function ReactPlayer() {
|
|
12588
12456
|
var _this;
|
|
12589
12457
|
|
|
12590
12458
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12593,7 +12461,7 @@ function (_Component) {
|
|
|
12593
12461
|
args[_key] = arguments[_key];
|
|
12594
12462
|
}
|
|
12595
12463
|
|
|
12596
|
-
_this =
|
|
12464
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12597
12465
|
|
|
12598
12466
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12599
12467
|
|
|
@@ -12704,7 +12572,7 @@ function (_Component) {
|
|
|
12704
12572
|
key: "renderActivePlayer",
|
|
12705
12573
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12706
12574
|
if (!url) return null;
|
|
12707
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12575
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12708
12576
|
key: activePlayer.displayName,
|
|
12709
12577
|
ref: this.activePlayerRef,
|
|
12710
12578
|
config: this.config,
|
|
@@ -12741,14 +12609,14 @@ function (_Component) {
|
|
|
12741
12609
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12742
12610
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12743
12611
|
|
|
12744
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12612
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
12745
12613
|
url: url,
|
|
12746
12614
|
light: light,
|
|
12747
12615
|
playIcon: playIcon,
|
|
12748
12616
|
onClick: this.handleClickPreview
|
|
12749
12617
|
});
|
|
12750
12618
|
|
|
12751
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
12619
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
12752
12620
|
ref: this.wrapperRef,
|
|
12753
12621
|
style: _objectSpread({}, style, {
|
|
12754
12622
|
width: width,
|
|
@@ -13507,7 +13375,7 @@ var Leads = function Leads(_ref) {
|
|
|
13507
13375
|
);
|
|
13508
13376
|
};
|
|
13509
13377
|
|
|
13510
|
-
var urlFor$
|
|
13378
|
+
var urlFor$2 = function urlFor(source, client) {
|
|
13511
13379
|
var builder = imageUrlBuilder(client);
|
|
13512
13380
|
return builder.image(source).auto('format');
|
|
13513
13381
|
};
|
|
@@ -13561,7 +13429,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
13561
13429
|
React__default.createElement(
|
|
13562
13430
|
'a',
|
|
13563
13431
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
13564
|
-
React__default.createElement('img', { src: urlFor$
|
|
13432
|
+
React__default.createElement('img', { src: urlFor$2(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
13565
13433
|
),
|
|
13566
13434
|
React__default.createElement(
|
|
13567
13435
|
'div',
|
|
@@ -13599,6 +13467,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
13599
13467
|
);
|
|
13600
13468
|
};
|
|
13601
13469
|
|
|
13470
|
+
var Figure = dynamic(function () {
|
|
13471
|
+
return import('./Figure-d6e22818.js');
|
|
13472
|
+
}, { ssr: false });
|
|
13473
|
+
|
|
13602
13474
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
13603
13475
|
if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
|
|
13604
13476
|
return true;
|
|
@@ -13654,7 +13526,7 @@ var getSerializers = function getSerializers() {
|
|
|
13654
13526
|
figure: function figure(_ref3) {
|
|
13655
13527
|
var node = _ref3.node;
|
|
13656
13528
|
|
|
13657
|
-
return React__default.createElement(
|
|
13529
|
+
return React__default.createElement(Figure, { node: node, client: client });
|
|
13658
13530
|
},
|
|
13659
13531
|
slideshow: function slideshow(_ref4) {
|
|
13660
13532
|
var node = _ref4.node;
|
|
@@ -13962,13 +13834,13 @@ var SetCookie = function SetCookie(key, value) {
|
|
|
13962
13834
|
js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
|
|
13963
13835
|
};
|
|
13964
13836
|
|
|
13965
|
-
var urlFor$
|
|
13837
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
13966
13838
|
var builder = imageUrlBuilder(client);
|
|
13967
13839
|
return builder.image(source).auto('format');
|
|
13968
13840
|
};
|
|
13969
13841
|
|
|
13970
13842
|
var renderCardImage = function renderCardImage(thumbnail, client, imageHeight, imageWidth) {
|
|
13971
|
-
var url = urlFor$
|
|
13843
|
+
var url = urlFor$3(thumbnail, client);
|
|
13972
13844
|
if (imageHeight) url = url.height(imageHeight);
|
|
13973
13845
|
if (imageWidth) url = url.width(imageWidth);
|
|
13974
13846
|
return url.url();
|
|
@@ -14177,16 +14049,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14177
14049
|
_ref$className = _ref.className,
|
|
14178
14050
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14179
14051
|
|
|
14180
|
-
/*
|
|
14181
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14182
|
-
example:
|
|
14183
|
-
<RelatedTopicDropdown
|
|
14184
|
-
page='/clinical'
|
|
14185
|
-
exclude="clinical"
|
|
14186
|
-
className='mb-3'
|
|
14187
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14188
|
-
subTaxonomies={props.subTaxonomies}
|
|
14189
|
-
/>
|
|
14052
|
+
/*
|
|
14053
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14054
|
+
example:
|
|
14055
|
+
<RelatedTopicDropdown
|
|
14056
|
+
page='/clinical'
|
|
14057
|
+
exclude="clinical"
|
|
14058
|
+
className='mb-3'
|
|
14059
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14060
|
+
subTaxonomies={props.subTaxonomies}
|
|
14061
|
+
/>
|
|
14190
14062
|
*/
|
|
14191
14063
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14192
14064
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14224,19 +14096,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14224
14096
|
}
|
|
14225
14097
|
};
|
|
14226
14098
|
|
|
14227
|
-
/*
|
|
14228
|
-
This dropdown is used inside Article body to display related content placement pages
|
|
14229
|
-
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
14230
|
-
|
|
14231
|
-
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
14232
|
-
|
|
14233
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14234
|
-
...,
|
|
14235
|
-
'ancestor': parent->parent->identifier,
|
|
14236
|
-
'parent': parent->identifier,
|
|
14237
|
-
'path': identifier
|
|
14238
|
-
}
|
|
14239
|
-
|
|
14099
|
+
/*
|
|
14100
|
+
This dropdown is used inside Article body to display related content placement pages
|
|
14101
|
+
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
14102
|
+
|
|
14103
|
+
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
14104
|
+
|
|
14105
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14106
|
+
...,
|
|
14107
|
+
'ancestor': parent->parent->identifier,
|
|
14108
|
+
'parent': parent->identifier,
|
|
14109
|
+
'path': identifier
|
|
14110
|
+
}
|
|
14111
|
+
|
|
14240
14112
|
*/
|
|
14241
14113
|
|
|
14242
14114
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15075,34 +14947,34 @@ var GridHero = function GridHero(props) {
|
|
|
15075
14947
|
);
|
|
15076
14948
|
};
|
|
15077
14949
|
|
|
15078
|
-
/*
|
|
15079
|
-
Sample query
|
|
15080
|
-
let references = ''
|
|
15081
|
-
if(article.taxonomyMapping.length > 0){
|
|
15082
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15083
|
-
references = references + `references('${ref._ref}') `
|
|
15084
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15085
|
-
references = references + ` && `
|
|
15086
|
-
}
|
|
15087
|
-
})
|
|
15088
|
-
}
|
|
15089
|
-
|
|
15090
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15091
|
-
...,
|
|
15092
|
-
title,
|
|
15093
|
-
summary,
|
|
15094
|
-
thumbnail,
|
|
15095
|
-
url,
|
|
15096
|
-
published,
|
|
15097
|
-
authorMapping[]->,
|
|
15098
|
-
contentCategory->
|
|
15099
|
-
}`
|
|
15100
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15101
|
-
|
|
15102
|
-
Sample usage
|
|
15103
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15104
|
-
|
|
15105
|
-
|
|
14950
|
+
/*
|
|
14951
|
+
Sample query
|
|
14952
|
+
let references = ''
|
|
14953
|
+
if(article.taxonomyMapping.length > 0){
|
|
14954
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
14955
|
+
references = references + `references('${ref._ref}') `
|
|
14956
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
14957
|
+
references = references + ` && `
|
|
14958
|
+
}
|
|
14959
|
+
})
|
|
14960
|
+
}
|
|
14961
|
+
|
|
14962
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
14963
|
+
...,
|
|
14964
|
+
title,
|
|
14965
|
+
summary,
|
|
14966
|
+
thumbnail,
|
|
14967
|
+
url,
|
|
14968
|
+
published,
|
|
14969
|
+
authorMapping[]->,
|
|
14970
|
+
contentCategory->
|
|
14971
|
+
}`
|
|
14972
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
14973
|
+
|
|
14974
|
+
Sample usage
|
|
14975
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
14976
|
+
|
|
14977
|
+
|
|
15106
14978
|
*/
|
|
15107
14979
|
var RelatedContent = function RelatedContent(props) {
|
|
15108
14980
|
var client = props.client,
|
|
@@ -15169,21 +15041,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15169
15041
|
);
|
|
15170
15042
|
};
|
|
15171
15043
|
|
|
15172
|
-
/*
|
|
15173
|
-
Example usage - targetedonc.com/latest-conference
|
|
15174
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15175
|
-
...,
|
|
15176
|
-
title,
|
|
15177
|
-
summary,
|
|
15178
|
-
thumbnail,
|
|
15179
|
-
url,
|
|
15180
|
-
published,
|
|
15181
|
-
documentGroup->,
|
|
15182
|
-
contentCategory->,
|
|
15183
|
-
'pageNumber': ${currentPage}
|
|
15184
|
-
}`
|
|
15185
|
-
|
|
15186
|
-
const posts = await client.fetch(query, params)
|
|
15044
|
+
/*
|
|
15045
|
+
Example usage - targetedonc.com/latest-conference
|
|
15046
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15047
|
+
...,
|
|
15048
|
+
title,
|
|
15049
|
+
summary,
|
|
15050
|
+
thumbnail,
|
|
15051
|
+
url,
|
|
15052
|
+
published,
|
|
15053
|
+
documentGroup->,
|
|
15054
|
+
contentCategory->,
|
|
15055
|
+
'pageNumber': ${currentPage}
|
|
15056
|
+
}`
|
|
15057
|
+
|
|
15058
|
+
const posts = await client.fetch(query, params)
|
|
15187
15059
|
*/
|
|
15188
15060
|
|
|
15189
15061
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -15810,27 +15682,27 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
15810
15682
|
};
|
|
15811
15683
|
|
|
15812
15684
|
var KMTracker = function KMTracker(props) {
|
|
15813
|
-
|
|
15685
|
+
var id = props.id;
|
|
15814
15686
|
|
|
15815
|
-
|
|
15687
|
+
if (document && id) {
|
|
15816
15688
|
(function () {
|
|
15817
|
-
|
|
15689
|
+
var ecnJquery = document.createElement('script');
|
|
15818
15690
|
|
|
15819
|
-
|
|
15820
|
-
|
|
15821
|
-
|
|
15691
|
+
ecnJquery.type = 'text/javascript';
|
|
15692
|
+
ecnJquery.async = true;
|
|
15693
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
15822
15694
|
|
|
15823
|
-
|
|
15695
|
+
var ecnScript = document.createElement('script');
|
|
15824
15696
|
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15697
|
+
ecnScript.type = 'text/javascript';
|
|
15698
|
+
ecnScript.async = true;
|
|
15699
|
+
ecnScript.id = 'km-tracker';
|
|
15700
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
15829
15701
|
|
|
15830
|
-
|
|
15831
|
-
|
|
15832
|
-
|
|
15833
|
-
|
|
15702
|
+
document.head.appendChild(ecnJquery);
|
|
15703
|
+
document.head.appendChild(ecnScript);
|
|
15704
|
+
})();
|
|
15705
|
+
}
|
|
15834
15706
|
};
|
|
15835
15707
|
|
|
15836
15708
|
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };
|