@mjhls/mjh-framework 1.0.315 → 1.0.316
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 +1 -1
- package/dist/cjs/{ADInfeed-ee8f2922.js → ADInfeed-a7a5e9f3.js} +1 -1
- package/dist/cjs/{AdSlot-0af5afb9.js → AdSlot-fef815e9.js} +3 -3
- package/dist/cjs/DeckContent.js +10 -10
- package/dist/cjs/DeckQueue.js +8 -8
- package/dist/cjs/{Dfp-f871551d.js → Dfp-f5e04360.js} +2 -2
- package/dist/cjs/{Figure-434da9bb.js → Figure-36e6957e.js} +1 -1
- package/dist/cjs/{GridContent-e6ff710e.js → GridContent-98e9ab78.js} +12 -12
- package/dist/cjs/GridContent.js +11 -11
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/{Normal-7cd7e351.js → Normal-972b1cc8.js} +9 -9
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +11 -11
- package/dist/cjs/{TaxonomyCard-a8a64f98.js → TaxonomyCard-22b72261.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +6 -6
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +4 -4
- package/dist/cjs/{YoutubeGroup-93aa7a6c.js → YoutubeGroup-22a738f1.js} +19 -8
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{debounce-ba3eaee2.js → debounce-528ad412.js} +4 -6
- package/dist/cjs/{get-de2660c3.js → get-3b23d857.js} +1 -1
- package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
- package/dist/cjs/index.js +25 -25
- package/dist/cjs/{inherits-dd435947.js → inherits-be59e8ae.js} +1 -1
- package/dist/cjs/{main-0ea1b808.js → main-753fb093.js} +66 -35
- package/dist/cjs/{promise-2c453658.js → promise-e50b2d19.js} +2 -2
- package/dist/cjs/{toConsumableArray-f05a306f.js → toConsumableArray-18281c61.js} +1 -1
- package/dist/cjs/{visibility-sensor-b72d9527.js → visibility-sensor-c2ccc22d.js} +4 -2
- package/dist/esm/{ADInfeed-7bff8973.js → ADInfeed-2aaf8622.js} +1 -1
- package/dist/esm/{AdSlot-b6af1ab4.js → AdSlot-028b040f.js} +3 -3
- package/dist/esm/DeckContent.js +10 -10
- package/dist/esm/DeckQueue.js +8 -8
- package/dist/esm/{Dfp-d2d43384.js → Dfp-f518314c.js} +2 -2
- package/dist/esm/{Figure-d0f95cc0.js → Figure-af6a1f2d.js} +1 -1
- package/dist/esm/{GridContent-6f84ae5e.js → GridContent-dd8fe8d1.js} +12 -12
- package/dist/esm/GridContent.js +11 -11
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/{Normal-19f6db83.js → Normal-ed829d1e.js} +9 -9
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +11 -11
- package/dist/esm/{TaxonomyCard-ea494c28.js → TaxonomyCard-7e9aae2d.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +6 -6
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +4 -4
- package/dist/esm/{YoutubeGroup-e7e16d0e.js → YoutubeGroup-b45c9d82.js} +19 -8
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{debounce-93ab8f80.js → debounce-702eb224.js} +4 -6
- package/dist/esm/{get-9c285a85.js → get-36d03764.js} +1 -1
- package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
- package/dist/esm/index.js +29 -29
- package/dist/esm/{inherits-2a854891.js → inherits-9d26445c.js} +1 -1
- package/dist/esm/{main-155ec04f.js → main-d550db5e.js} +65 -34
- package/dist/esm/{promise-e3480f1c.js → promise-8fc46e97.js} +2 -2
- package/dist/esm/{toConsumableArray-eb308ede.js → toConsumableArray-a096ca06.js} +1 -1
- package/dist/esm/{visibility-sensor-336093e1.js → visibility-sensor-3cea5efb.js} +4 -2
- package/package.json +1 -1
|
@@ -495,6 +495,7 @@ GROQ query -
|
|
|
495
495
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
496
496
|
// Props should be an array of objects containing Thumbnail, title, and URL
|
|
497
497
|
var innerSlider = useRef(null);
|
|
498
|
+
var tile = useRef(null);
|
|
498
499
|
|
|
499
500
|
useEffect(function () {
|
|
500
501
|
//IE11 Polyfill
|
|
@@ -507,17 +508,27 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
507
508
|
var slide = e.target.parentElement;
|
|
508
509
|
var scrollOffset = slide.scrollLeft;
|
|
509
510
|
var viewableWidth = slide.clientWidth;
|
|
511
|
+
|
|
512
|
+
//calculate viewable size / slide
|
|
513
|
+
var numberOfSlidesToScroll = Math.floor(viewableWidth / (tile.current.offsetWidth + 20)); //width of the tile plus margin
|
|
514
|
+
var sliderMargin = numberOfSlidesToScroll * 10;
|
|
515
|
+
numberOfSlidesToScroll = numberOfSlidesToScroll * tile.current.offsetWidth + sliderMargin;
|
|
516
|
+
|
|
517
|
+
// console.log('numberOfSlidestoScrol: ',numberOfSlidesToScroll )
|
|
518
|
+
// console.log('tile.current.offsetWidth: ',tile.current.offsetWidth )
|
|
519
|
+
// console.log('viewableWidth: ',viewableWidth )
|
|
520
|
+
|
|
510
521
|
var scrollDirection = void 0;
|
|
511
522
|
|
|
512
523
|
if (direction === 'next') {
|
|
513
|
-
scrollDirection = scrollOffset +
|
|
524
|
+
scrollDirection = scrollOffset + numberOfSlidesToScroll;
|
|
514
525
|
|
|
515
|
-
if (
|
|
526
|
+
if (scrollOffset + viewableWidth > innerSlider.current.offsetWidth) {
|
|
516
527
|
scrollDirection = 0;
|
|
517
528
|
}
|
|
518
529
|
}
|
|
519
530
|
if (direction === 'prev') {
|
|
520
|
-
scrollDirection = scrollOffset -
|
|
531
|
+
scrollDirection = scrollOffset - numberOfSlidesToScroll;
|
|
521
532
|
|
|
522
533
|
if (scrollOffset === 0) {
|
|
523
534
|
scrollDirection = innerSlider.current.offsetWidth;
|
|
@@ -568,7 +579,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
568
579
|
|
|
569
580
|
return React__default.createElement(
|
|
570
581
|
'div',
|
|
571
|
-
{ key: index, className: 'tile' },
|
|
582
|
+
{ ref: tile, key: index, className: 'tile' },
|
|
572
583
|
current && current === url ? React__default.createElement(
|
|
573
584
|
'div',
|
|
574
585
|
{ className: 'now-playing' },
|
|
@@ -603,7 +614,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
603
614
|
),
|
|
604
615
|
React__default.createElement(
|
|
605
616
|
'div',
|
|
606
|
-
{ style: { color:
|
|
617
|
+
{ style: { color: '#fff' }, className: 'tile__info' },
|
|
607
618
|
video.title
|
|
608
619
|
)
|
|
609
620
|
)
|
|
@@ -614,7 +625,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
614
625
|
var _thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
|
|
615
626
|
return React__default.createElement(
|
|
616
627
|
'div',
|
|
617
|
-
{ key: index, className: 'tile' },
|
|
628
|
+
{ ref: tile, key: index, className: 'tile' },
|
|
618
629
|
React__default.createElement(
|
|
619
630
|
'a',
|
|
620
631
|
{ href: _url },
|
|
@@ -635,7 +646,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
635
646
|
{ className: 'tile__title' },
|
|
636
647
|
React__default.createElement(
|
|
637
648
|
'div',
|
|
638
|
-
{ style: { color:
|
|
649
|
+
{ style: { color: '#fff' }, className: 'tile__title_text' },
|
|
639
650
|
video.title
|
|
640
651
|
)
|
|
641
652
|
)
|
|
@@ -666,7 +677,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
666
677
|
React__default.createElement(
|
|
667
678
|
'style',
|
|
668
679
|
{ jsx: 'true' },
|
|
669
|
-
'\n #vid-slider * {\n box-sizing: border-box;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow: scroll;\n width: 100%;\n -ms-overflow-style: none;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 1rem;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 55px 0;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n width: 250px;\n height: 140.625px;\n margin-right: 10px;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile__img {\n width: 250px;\n height: 140.625px;\n -o-object-fit: cover;\n object-fit: cover;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -
|
|
680
|
+
'\n #vid-slider * {\n box-sizing: border-box;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 1.5rem;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow: scroll;\n width: 100%;\n -ms-overflow-style: none;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 1rem;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 55px 0;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n width: 250px;\n height: 140.625px;\n margin-right: 10px;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile__img {\n width: 250px;\n height: 140.625px;\n -o-object-fit: cover;\n object-fit: cover;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n #vid-slider .tile:hover .tile__details {\n opacity: 1;\n }\n #vid-slider .tile__title {\n position: absolute;\n bottom: 0;\n padding: 10px;\n max-width: 250px;\n }\n #vid-slider .tile__title_text {\n position: relative;\n left: 0;\n white-space: normal;\n }\n #vid-slider .row__inner:hover {\n -webkit-transform: translate3d(-62.5px, 0, 0);\n transform: translate3d(-62.5px, 0, 0);\n }\n #vid-slider .row__inner:hover .tile {\n opacity: 0.3;\n }\n #vid-slider .row__inner:hover .tile:hover {\n -webkit-transform: scale(1.15);\n transform: scale(1.15);\n opacity: 1;\n }\n #vid-slider .tile:hover ~ .tile {\n -webkit-transform: translate3d(62px, 0, 0);\n transform: translate3d(62px, 0, 0);\n }\n #vid-slider .tile:hover .tile__info {\n opacity: 0;\n }\n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -.5rem;\n padding: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -.5rem;\n padding: 1rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n padding-right: 0 1.2rem;\n }\n #vid-slider .tile:last-child {\n margin-right: 2rem;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n '
|
|
670
681
|
)
|
|
671
682
|
);
|
|
672
683
|
};
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -823,15 +823,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
823
823
|
});
|
|
824
824
|
|
|
825
825
|
if (_this5.lazyLoadIsEnabled()) {
|
|
826
|
-
var args = [];
|
|
827
|
-
|
|
828
826
|
var config = _this5.getLazyLoadConfig();
|
|
829
827
|
|
|
830
|
-
if (config
|
|
831
|
-
|
|
828
|
+
if (config) {
|
|
829
|
+
pubadsService.enableLazyLoad(config);
|
|
830
|
+
} else {
|
|
831
|
+
pubadsService.enableLazyLoad();
|
|
832
832
|
}
|
|
833
|
-
|
|
834
|
-
pubadsService.enableLazyLoad.call(args);
|
|
835
833
|
}
|
|
836
834
|
|
|
837
835
|
if (_this5.singleRequestIsEnabled()) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as isSymbol_1, h as isObject_1, _ as _baseGetTag, b as _root, j as _Symbol } from './debounce-
|
|
1
|
+
import { g as isSymbol_1, h as isObject_1, _ as _baseGetTag, b as _root, j as _Symbol } from './debounce-702eb224.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -58,35 +58,35 @@ function parseSource(source) {
|
|
|
58
58
|
if (typeof source === 'string' && isUrl(source)) {
|
|
59
59
|
// Someone passed an existing image url?
|
|
60
60
|
image = {
|
|
61
|
-
asset: { _ref: urlToId(source) }
|
|
61
|
+
asset: { _ref: urlToId(source) },
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
else if (typeof source === 'string') {
|
|
65
65
|
// Just an asset id
|
|
66
66
|
image = {
|
|
67
|
-
asset: { _ref: source }
|
|
67
|
+
asset: { _ref: source },
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
else if (isRef(source)) {
|
|
71
71
|
// We just got passed an asset directly
|
|
72
72
|
image = {
|
|
73
|
-
asset: source
|
|
73
|
+
asset: source,
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
else if (isAsset(source)) {
|
|
77
77
|
// If we were passed an image asset document
|
|
78
78
|
image = {
|
|
79
79
|
asset: {
|
|
80
|
-
_ref: source._id || ''
|
|
81
|
-
}
|
|
80
|
+
_ref: source._id || '',
|
|
81
|
+
},
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
else if (isAssetStub(source)) {
|
|
85
85
|
// If we were passed a partial asset (`url`, but no `_id`)
|
|
86
86
|
image = {
|
|
87
87
|
asset: {
|
|
88
|
-
_ref: urlToId(source.asset.url)
|
|
89
|
-
}
|
|
88
|
+
_ref: urlToId(source.asset.url),
|
|
89
|
+
},
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
else if (typeof source.asset === 'object') {
|
|
@@ -127,7 +127,7 @@ function applyDefaults(image) {
|
|
|
127
127
|
left: 0,
|
|
128
128
|
top: 0,
|
|
129
129
|
bottom: 0,
|
|
130
|
-
right: 0
|
|
130
|
+
right: 0,
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
if (!result.hotspot) {
|
|
@@ -135,7 +135,7 @@ function applyDefaults(image) {
|
|
|
135
135
|
x: 0.5,
|
|
136
136
|
y: 0.5,
|
|
137
137
|
height: 1.0,
|
|
138
|
-
width: 1.0
|
|
138
|
+
width: 1.0,
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
return result;
|
|
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
|
|
|
182
182
|
['crop', 'crop'],
|
|
183
183
|
['saturation', 'sat'],
|
|
184
184
|
['auto', 'auto'],
|
|
185
|
-
['dpr', 'dpr']
|
|
185
|
+
['dpr', 'dpr'],
|
|
186
186
|
];
|
|
187
187
|
function urlForImage(options) {
|
|
188
188
|
var spec = __assign({}, (options || {}));
|
|
@@ -201,7 +201,7 @@ function urlForImage(options) {
|
|
|
201
201
|
left: cropLeft,
|
|
202
202
|
top: cropTop,
|
|
203
203
|
width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
|
|
204
|
-
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
204
|
+
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
|
|
205
205
|
};
|
|
206
206
|
// Compute hot spot rect in terms of pixel coordinates
|
|
207
207
|
var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
|
|
@@ -212,7 +212,7 @@ function urlForImage(options) {
|
|
|
212
212
|
left: hotSpotCenterX - hotSpotHorizontalRadius,
|
|
213
213
|
top: hotSpotCenterY - hotSpotVerticalRadius,
|
|
214
214
|
right: hotSpotCenterX + hotSpotHorizontalRadius,
|
|
215
|
-
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
215
|
+
bottom: hotSpotCenterY + hotSpotVerticalRadius,
|
|
216
216
|
};
|
|
217
217
|
// If irrelevant, or if we are requested to: don't perform crop/fit based on
|
|
218
218
|
// the crop/hotspot.
|
|
@@ -294,7 +294,7 @@ function fit(source, spec) {
|
|
|
294
294
|
left: Math.round(left),
|
|
295
295
|
top: Math.round(top_2),
|
|
296
296
|
width: Math.round(width),
|
|
297
|
-
height: Math.round(height)
|
|
297
|
+
height: Math.round(height),
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
else {
|
|
@@ -316,13 +316,13 @@ function fit(source, spec) {
|
|
|
316
316
|
left: Math.max(0, Math.floor(left)),
|
|
317
317
|
top: Math.max(0, Math.floor(top_3)),
|
|
318
318
|
width: Math.round(width),
|
|
319
|
-
height: Math.round(height)
|
|
319
|
+
height: Math.round(height),
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
return {
|
|
323
323
|
width: imgWidth,
|
|
324
324
|
height: imgHeight,
|
|
325
|
-
rect: cropRect
|
|
325
|
+
rect: cropRect,
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -380,7 +380,7 @@ function urlBuilder(options) {
|
|
|
380
380
|
return new ImageUrlBuilder(null, {
|
|
381
381
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
382
382
|
projectId: projectId,
|
|
383
|
-
dataset: dataset
|
|
383
|
+
dataset: dataset,
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
// Or just accept the options as given
|
|
@@ -393,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
393
393
|
? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
|
|
394
394
|
}
|
|
395
395
|
ImageUrlBuilder.prototype.withOptions = function (options) {
|
|
396
|
-
var baseUrl = options.baseUrl ||
|
|
396
|
+
var baseUrl = options.baseUrl || this.options.baseUrl;
|
|
397
397
|
var newOptions = { baseUrl: baseUrl };
|
|
398
398
|
for (var key in options) {
|
|
399
399
|
if (options.hasOwnProperty(key)) {
|
|
@@ -521,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
521
521
|
ImageUrlBuilder.prototype.url = function () {
|
|
522
522
|
return urlForImage_1$1.default(this.options);
|
|
523
523
|
};
|
|
524
|
-
//
|
|
524
|
+
// Alias for url()
|
|
525
525
|
ImageUrlBuilder.prototype.toString = function () {
|
|
526
526
|
return this.url();
|
|
527
527
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { _ as _objectKeys, a as _toObject, b as _core } from './_to-object-b9b796ec.js';
|
|
3
3
|
import './web.dom.iterable-3be50d6c.js';
|
|
4
|
-
import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-
|
|
5
|
-
import { m as
|
|
6
|
-
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-
|
|
4
|
+
import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-702eb224.js';
|
|
5
|
+
import { m as main_39, a as main_16, b as main_38 } from './main-d550db5e.js';
|
|
6
|
+
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-a096ca06.js';
|
|
7
7
|
import './core.get-iterator-method-31c1fb1a.js';
|
|
8
8
|
import { _ as _extends$2 } from './extends-dbbe308d.js';
|
|
9
|
-
import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-
|
|
9
|
+
import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-9d26445c.js';
|
|
10
10
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import Container from 'react-bootstrap/Container';
|
|
13
13
|
import Row from 'react-bootstrap/Row';
|
|
14
14
|
import Col from 'react-bootstrap/Col';
|
|
15
15
|
import 'react-bootstrap/Card';
|
|
16
|
-
import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-
|
|
16
|
+
import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-3cea5efb.js';
|
|
17
17
|
import Link from 'next/link';
|
|
18
18
|
import Router, { useRouter } from 'next/router';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import { i as imageUrlBuilder } from './index-
|
|
20
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
21
21
|
import './index-5f9f807a.js';
|
|
22
22
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-d1db3163.js';
|
|
24
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
25
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
26
|
-
import './promise-
|
|
27
|
-
import './ADInfeed-
|
|
24
|
+
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-028b040f.js';
|
|
25
|
+
export { D as AdSlot, B as Beam } from './AdSlot-028b040f.js';
|
|
26
|
+
import './promise-8fc46e97.js';
|
|
27
|
+
import './ADInfeed-2aaf8622.js';
|
|
28
28
|
export { default as DeckContent } from './DeckContent.js';
|
|
29
|
-
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-
|
|
30
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
29
|
+
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-36d03764.js';
|
|
30
|
+
export { A as AD, G as GridContent } from './GridContent-dd8fe8d1.js';
|
|
31
31
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
32
32
|
import 'react-bootstrap/Media';
|
|
33
33
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
34
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
35
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
34
|
+
import { B as BlockContent } from './TaxonomyCard-7e9aae2d.js';
|
|
35
|
+
export { T as TaxonomyCard } from './TaxonomyCard-7e9aae2d.js';
|
|
36
36
|
import './react-social-icons-a7d5c5c7.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-
|
|
39
|
+
import { g as getYoutubeId } from './YoutubeGroup-b45c9d82.js';
|
|
40
|
+
export { Y as YoutubeGroup } from './YoutubeGroup-b45c9d82.js';
|
|
41
41
|
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, Form } from 'react-bootstrap';
|
|
42
42
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
43
43
|
import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
|
|
@@ -49,8 +49,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
49
49
|
import 'react-bootstrap/Badge';
|
|
50
50
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
51
51
|
import Spinner from 'react-bootstrap/Spinner';
|
|
52
|
-
import { M as MdPictureAsPdf } 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-
|
|
52
|
+
import { M as MdPictureAsPdf } from './Normal-ed829d1e.js';
|
|
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-ed829d1e.js';
|
|
54
54
|
import 'react-bootstrap/ListGroup';
|
|
55
55
|
import Head from 'next/head';
|
|
56
56
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -2107,7 +2107,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2107
2107
|
)
|
|
2108
2108
|
)
|
|
2109
2109
|
),
|
|
2110
|
-
|
|
2110
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2111
2111
|
'div',
|
|
2112
2112
|
{ style: { margin: '0 auto' } },
|
|
2113
2113
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2498,7 +2498,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2498
2498
|
)
|
|
2499
2499
|
)
|
|
2500
2500
|
),
|
|
2501
|
-
|
|
2501
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2502
2502
|
'div',
|
|
2503
2503
|
{ style: { margin: '0 auto' } },
|
|
2504
2504
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2787,7 +2787,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2787
2787
|
pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
|
|
2788
2788
|
|
|
2789
2789
|
var mobileView = false;
|
|
2790
|
-
if (
|
|
2790
|
+
if (main_39) {
|
|
2791
2791
|
pos = 'rect1-mobile';
|
|
2792
2792
|
mobileView = true;
|
|
2793
2793
|
}
|
|
@@ -2817,7 +2817,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2817
2817
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
2818
2818
|
|
|
2819
2819
|
var mobileView = false;
|
|
2820
|
-
if (
|
|
2820
|
+
if (main_39) {
|
|
2821
2821
|
pos = 'rect2-mobile';
|
|
2822
2822
|
mobileView = true;
|
|
2823
2823
|
}
|
|
@@ -13318,7 +13318,7 @@ var Poll = function Poll(_ref) {
|
|
|
13318
13318
|
);
|
|
13319
13319
|
};
|
|
13320
13320
|
|
|
13321
|
-
var numberOfPaginations =
|
|
13321
|
+
var numberOfPaginations = main_38 ? 4 : 10;
|
|
13322
13322
|
|
|
13323
13323
|
var Quiz = function Quiz(_ref) {
|
|
13324
13324
|
var quizzes = _ref.quizzes,
|
|
@@ -13408,7 +13408,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
13408
13408
|
var renderPagination = function renderPagination() {
|
|
13409
13409
|
return React__default.createElement(
|
|
13410
13410
|
Pagination,
|
|
13411
|
-
{ className: 'p-0 m-0', size:
|
|
13411
|
+
{ className: 'p-0 m-0', size: main_38 && 'sm' },
|
|
13412
13412
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
13413
13413
|
return changePage('first');
|
|
13414
13414
|
}, disabled: currentPage === 1 }),
|
|
@@ -13572,7 +13572,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13572
13572
|
};
|
|
13573
13573
|
|
|
13574
13574
|
var Figure = dynamic(function () {
|
|
13575
|
-
return import('./Figure-
|
|
13575
|
+
return import('./Figure-af6a1f2d.js');
|
|
13576
13576
|
}, { ssr: false });
|
|
13577
13577
|
|
|
13578
13578
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -13794,7 +13794,7 @@ var Feature = function Feature(props) {
|
|
|
13794
13794
|
};
|
|
13795
13795
|
//image width
|
|
13796
13796
|
var imageWidth = 900;
|
|
13797
|
-
if (
|
|
13797
|
+
if (main_39) {
|
|
13798
13798
|
imageWidth = 450;
|
|
13799
13799
|
}
|
|
13800
13800
|
|
|
@@ -16376,8 +16376,8 @@ var Article = function Article(props) {
|
|
|
16376
16376
|
renderIsiContent(props.article)
|
|
16377
16377
|
)
|
|
16378
16378
|
),
|
|
16379
|
-
|
|
16380
|
-
|
|
16379
|
+
main_39 && React__default.createElement('hr', { className: 'add-seperater' }),
|
|
16380
|
+
main_39 && props.article.Ads.map(function (ad, index) {
|
|
16381
16381
|
return React__default.createElement(
|
|
16382
16382
|
'div',
|
|
16383
16383
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
@@ -16556,7 +16556,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16556
16556
|
isLiveSite: isLiveSite
|
|
16557
16557
|
};
|
|
16558
16558
|
setPageConfig(_config);
|
|
16559
|
-
if (!
|
|
16559
|
+
if (!main_39) {
|
|
16560
16560
|
lib_3.getGoogletag().then(function (googletag) {
|
|
16561
16561
|
if (window.googletag && googletag.pubadsReady) {
|
|
16562
16562
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { b as _core, c as _export, d as _fails, a as _toObject, e as _objectDp, f as _descriptors, g as _uid, h as _isObject, i as _has, _ as _objectKeys, j as _cof, k as _objectKeysInternal, l as _enumBugKeys, m as _toIobject, n as _toPrimitive, o as _ie8DomDefine, p as _propertyDesc, q as _global, r as _shared, s as _hide, t as _anObject, u as _ctx } from './_to-object-b9b796ec.js';
|
|
3
3
|
import { _ as _objectGpo, a as _wks, b as _redefine, c as _setToStringTag, d as _objectCreate } from './web.dom.iterable-3be50d6c.js';
|
|
4
|
-
import { f as _library } from './debounce-
|
|
4
|
+
import { f as _library } from './debounce-702eb224.js';
|
|
5
5
|
import { a as _objectGops, b as _objectPie } from './extends-dbbe308d.js';
|
|
6
6
|
|
|
7
7
|
// most Object methods by ES6 should accept primitives
|
|
@@ -95,7 +95,7 @@ var getNavigatorInstance = function getNavigatorInstance() {
|
|
|
95
95
|
};
|
|
96
96
|
var isIOS13Check = function isIOS13Check(type) {
|
|
97
97
|
var nav = getNavigatorInstance();
|
|
98
|
-
return nav && (nav.platform.
|
|
98
|
+
return nav && nav.platform && (nav.platform.indexOf(type) !== -1 || nav.platform === 'MacIntel' && nav.maxTouchPoints > 1 && !window.MSStream);
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
function _typeof(obj) {
|
|
@@ -266,12 +266,15 @@ var BROWSER_TYPES = {
|
|
|
266
266
|
EDGE: "Edge",
|
|
267
267
|
CHROMIUM: "Chromium",
|
|
268
268
|
IE: 'IE',
|
|
269
|
-
MOBILE_SAFARI: "Mobile Safari"
|
|
269
|
+
MOBILE_SAFARI: "Mobile Safari",
|
|
270
|
+
EDGE_CHROMIUM: "Edge Chromium"
|
|
270
271
|
};
|
|
271
272
|
var OS_TYPES = {
|
|
272
273
|
IOS: 'iOS',
|
|
273
274
|
ANDROID: "Android",
|
|
274
|
-
WINDOWS_PHONE: "Windows Phone"
|
|
275
|
+
WINDOWS_PHONE: "Windows Phone",
|
|
276
|
+
WINDOWS: 'Windows',
|
|
277
|
+
MAC_OS: 'Mac OS'
|
|
275
278
|
};
|
|
276
279
|
var initialData = {
|
|
277
280
|
isMobile: false,
|
|
@@ -424,6 +427,14 @@ var isMobileAndTabletType = function isMobileAndTabletType() {
|
|
|
424
427
|
}
|
|
425
428
|
};
|
|
426
429
|
|
|
430
|
+
var isEdgeChromiumType = function isEdgeChromiumType() {
|
|
431
|
+
if (os.name === OS_TYPES.WINDOWS && os.version === '10') {
|
|
432
|
+
return typeof ua === 'string' && ua.indexOf('Edg/') !== -1;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
return false;
|
|
436
|
+
};
|
|
437
|
+
|
|
427
438
|
var isSmartTVType = function isSmartTVType() {
|
|
428
439
|
return device.type === DEVICE_TYPES.SMART_TV;
|
|
429
440
|
};
|
|
@@ -444,6 +455,14 @@ var isAndroidType = function isAndroidType() {
|
|
|
444
455
|
return os.name === OS_TYPES.ANDROID;
|
|
445
456
|
};
|
|
446
457
|
|
|
458
|
+
var isWindowsType = function isWindowsType() {
|
|
459
|
+
return os.name === OS_TYPES.WINDOWS;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
var isMacOsType = function isMacOsType() {
|
|
463
|
+
return os.name === OS_TYPES.MAC_OS;
|
|
464
|
+
};
|
|
465
|
+
|
|
447
466
|
var isWinPhoneType = function isWinPhoneType() {
|
|
448
467
|
return os.name === OS_TYPES.WINDOWS_PHONE;
|
|
449
468
|
};
|
|
@@ -491,7 +510,7 @@ var isIEType = function isIEType() {
|
|
|
491
510
|
var isElectronType = function isElectronType() {
|
|
492
511
|
var nav = getNavigatorInstance();
|
|
493
512
|
var ua = nav && nav.userAgent.toLowerCase();
|
|
494
|
-
return typeof ua === 'string' ? ua
|
|
513
|
+
return typeof ua === 'string' ? /electron/.test(ua) : false;
|
|
495
514
|
};
|
|
496
515
|
|
|
497
516
|
var getIOS13 = function getIOS13() {
|
|
@@ -558,15 +577,15 @@ var getDeviceType = function getDeviceType() {
|
|
|
558
577
|
var isSmartTV = isSmartTVType();
|
|
559
578
|
var isConsole = isConsoleType();
|
|
560
579
|
var isWearable = isWearableType();
|
|
561
|
-
var isMobileSafari = isMobileSafariType();
|
|
580
|
+
var isMobileSafari = isMobileSafariType() || getIPad13();
|
|
562
581
|
var isChromium = isChromiumType();
|
|
563
|
-
var isMobile = isMobileAndTabletType();
|
|
582
|
+
var isMobile = isMobileAndTabletType() || getIPad13();
|
|
564
583
|
var isMobileOnly = isMobileType();
|
|
565
|
-
var isTablet = isTabletType();
|
|
584
|
+
var isTablet = isTabletType() || getIPad13();
|
|
566
585
|
var isBrowser = isBrowserType();
|
|
567
586
|
var isAndroid = isAndroidType();
|
|
568
587
|
var isWinPhone = isWinPhoneType();
|
|
569
|
-
var isIOS = isIOSType();
|
|
588
|
+
var isIOS = isIOSType() || getIPad13();
|
|
570
589
|
var isChrome = isChromeType();
|
|
571
590
|
var isFirefox = isFirefoxType();
|
|
572
591
|
var isSafari = isSafariType();
|
|
@@ -582,7 +601,7 @@ var mobileModel = getMobileModel();
|
|
|
582
601
|
var engineName = getEngineName();
|
|
583
602
|
var engineVersion = getEngineVersion();
|
|
584
603
|
var getUA = getUseragent();
|
|
585
|
-
var isEdge = isEdgeType();
|
|
604
|
+
var isEdge = isEdgeType() || isEdgeChromiumType();
|
|
586
605
|
var isYandex = isYandexType();
|
|
587
606
|
var deviceType = getDeviceType();
|
|
588
607
|
var isIOS13 = getIOS13();
|
|
@@ -590,6 +609,10 @@ var isIPad13 = getIPad13();
|
|
|
590
609
|
var isIPhone13 = getIphone13();
|
|
591
610
|
var isIPod13 = getIPod13();
|
|
592
611
|
var isElectron = isElectronType();
|
|
612
|
+
var isEdgeChromium = isEdgeChromiumType();
|
|
613
|
+
var isLegacyEdge = isEdgeType();
|
|
614
|
+
var isWindows = isWindowsType();
|
|
615
|
+
var isMacOs = isMacOsType();
|
|
593
616
|
|
|
594
617
|
var AndroidView = function AndroidView(_ref) {
|
|
595
618
|
var renderWithFragment = _ref.renderWithFragment,
|
|
@@ -819,6 +842,7 @@ exports.isChrome = isChrome;
|
|
|
819
842
|
exports.isChromium = isChromium;
|
|
820
843
|
exports.isConsole = isConsole;
|
|
821
844
|
exports.isEdge = isEdge;
|
|
845
|
+
exports.isEdgeChromium = isEdgeChromium;
|
|
822
846
|
exports.isElectron = isElectron;
|
|
823
847
|
exports.isFirefox = isFirefox;
|
|
824
848
|
exports.isIE = isIE;
|
|
@@ -827,6 +851,8 @@ exports.isIOS13 = isIOS13;
|
|
|
827
851
|
exports.isIPad13 = isIPad13;
|
|
828
852
|
exports.isIPhone13 = isIPhone13;
|
|
829
853
|
exports.isIPod13 = isIPod13;
|
|
854
|
+
exports.isLegacyEdge = isLegacyEdge;
|
|
855
|
+
exports.isMacOs = isMacOs;
|
|
830
856
|
exports.isMobile = isMobile;
|
|
831
857
|
exports.isMobileOnly = isMobileOnly;
|
|
832
858
|
exports.isMobileSafari = isMobileSafari;
|
|
@@ -836,6 +862,7 @@ exports.isSmartTV = isSmartTV;
|
|
|
836
862
|
exports.isTablet = isTablet;
|
|
837
863
|
exports.isWearable = isWearable;
|
|
838
864
|
exports.isWinPhone = isWinPhone;
|
|
865
|
+
exports.isWindows = isWindows;
|
|
839
866
|
exports.isYandex = isYandex;
|
|
840
867
|
exports.mobileModel = mobileModel;
|
|
841
868
|
exports.mobileVendor = mobileVendor;
|
|
@@ -871,28 +898,32 @@ var main_23 = main.isChrome;
|
|
|
871
898
|
var main_24 = main.isChromium;
|
|
872
899
|
var main_25 = main.isConsole;
|
|
873
900
|
var main_26 = main.isEdge;
|
|
874
|
-
var main_27 = main.
|
|
875
|
-
var main_28 = main.
|
|
876
|
-
var main_29 = main.
|
|
877
|
-
var main_30 = main.
|
|
878
|
-
var main_31 = main.
|
|
879
|
-
var main_32 = main.
|
|
880
|
-
var main_33 = main.
|
|
881
|
-
var main_34 = main.
|
|
882
|
-
var main_35 = main.
|
|
883
|
-
var main_36 = main.
|
|
884
|
-
var main_37 = main.
|
|
885
|
-
var main_38 = main.
|
|
886
|
-
var main_39 = main.
|
|
887
|
-
var main_40 = main.
|
|
888
|
-
var main_41 = main.
|
|
889
|
-
var main_42 = main.
|
|
890
|
-
var main_43 = main.
|
|
891
|
-
var main_44 = main.
|
|
892
|
-
var main_45 = main.
|
|
893
|
-
var main_46 = main.
|
|
894
|
-
var main_47 = main.
|
|
895
|
-
var main_48 = main.
|
|
896
|
-
var main_49 = main.
|
|
897
|
-
|
|
898
|
-
|
|
901
|
+
var main_27 = main.isEdgeChromium;
|
|
902
|
+
var main_28 = main.isElectron;
|
|
903
|
+
var main_29 = main.isFirefox;
|
|
904
|
+
var main_30 = main.isIE;
|
|
905
|
+
var main_31 = main.isIOS;
|
|
906
|
+
var main_32 = main.isIOS13;
|
|
907
|
+
var main_33 = main.isIPad13;
|
|
908
|
+
var main_34 = main.isIPhone13;
|
|
909
|
+
var main_35 = main.isIPod13;
|
|
910
|
+
var main_36 = main.isLegacyEdge;
|
|
911
|
+
var main_37 = main.isMacOs;
|
|
912
|
+
var main_38 = main.isMobile;
|
|
913
|
+
var main_39 = main.isMobileOnly;
|
|
914
|
+
var main_40 = main.isMobileSafari;
|
|
915
|
+
var main_41 = main.isOpera;
|
|
916
|
+
var main_42 = main.isSafari;
|
|
917
|
+
var main_43 = main.isSmartTV;
|
|
918
|
+
var main_44 = main.isTablet;
|
|
919
|
+
var main_45 = main.isWearable;
|
|
920
|
+
var main_46 = main.isWinPhone;
|
|
921
|
+
var main_47 = main.isWindows;
|
|
922
|
+
var main_48 = main.isYandex;
|
|
923
|
+
var main_49 = main.mobileModel;
|
|
924
|
+
var main_50 = main.mobileVendor;
|
|
925
|
+
var main_51 = main.osName;
|
|
926
|
+
var main_52 = main.osVersion;
|
|
927
|
+
var main_53 = main.withOrientationChange;
|
|
928
|
+
|
|
929
|
+
export { _iterDetect as _, main_16 as a, main_38 as b, main_40 as c, _isArrayIter as d, _iterCall as e, main_39 as m };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { u as _ctx, w as _toLength, t as _anObject, x as _aFunction, q as _global, j as _cof, y as _domCreate, h as _isObject, s as _hide, b as _core, f as _descriptors, e as _objectDp, c as _export } from './_to-object-b9b796ec.js';
|
|
3
3
|
import { a as _wks, f as _html, c as _setToStringTag } from './web.dom.iterable-3be50d6c.js';
|
|
4
|
-
import { f as _library } from './debounce-
|
|
5
|
-
import { d as _isArrayIter, e as _iterCall, _ as _iterDetect } from './main-
|
|
4
|
+
import { f as _library } from './debounce-702eb224.js';
|
|
5
|
+
import { d as _isArrayIter, e as _iterCall, _ as _iterDetect } from './main-d550db5e.js';
|
|
6
6
|
import { c as core_getIteratorMethod, _ as _classof } from './core.get-iterator-method-31c1fb1a.js';
|
|
7
7
|
|
|
8
8
|
var _anInstance = function (it, Constructor, name, forbiddenField) {
|