@mjhls/mjh-framework 1.0.833-d4d-52-1 → 1.0.834-beta.0
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 +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-912f52c2.js → ADInfeed-8d621d3c.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-98acbab8.js → ADlgInfeed-0e26bccb.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +626 -655
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +23 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +19 -20
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +139 -192
- package/dist/cjs/AuthWrapper.js +259 -301
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +80 -84
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +155 -159
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +125 -130
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +57 -58
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +57 -58
- package/dist/cjs/MediaSeriesLanding.js +848 -839
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +126 -131
- package/dist/cjs/NavNative.js +117 -125
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +69 -70
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +109 -113
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-10bc3826.js → SeriesSlider-d16a5ae5.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-560a666e.js → SocialSearchComponent-97dd19a5.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +40 -44
- package/dist/cjs/VideoSeriesCard.js +24 -25
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +25 -26
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +279 -203
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-156bd4d6.js} +5 -6
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-021d644c.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-b10010e9.js → index-a0bdcb69.js} +829 -852
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
- package/dist/cjs/{index.es-13533f24.js → index.es-9110add6.js} +8 -11
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +58 -62
- package/dist/cjs/{inherits-0c7830c5.js → inherits-9953db94.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-11ec04d2.js → main-02daeefe.js} +53 -85
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-813279c7.js → ADInfeed-b566ce41.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-8ba1523a.js → ADlgInfeed-5eb7281d.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +256 -284
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +120 -169
- package/dist/esm/AuthWrapper.js +257 -298
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +109 -109
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +142 -142
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +100 -100
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +55 -55
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +54 -54
- package/dist/esm/MediaSeriesLanding.js +571 -559
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +103 -103
- package/dist/esm/NavNative.js +92 -92
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +66 -66
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +95 -95
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-31dcb72b.js → SeriesSlider-8dc17b11.js} +28 -28
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-82ac7d6d.js → SocialSearchComponent-db5ba548.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +260 -180
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -3
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
- package/dist/esm/{index-b3bd543b.js → index-d9cf292f.js} +788 -804
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-7dda2f0a.js → index.es-29c1cef5.js} +6 -8
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +50 -51
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-aef58dbc.js → main-e4a934b2.js} +50 -81
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
require('./_to-object-329a650b.js');
|
|
5
7
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
6
8
|
require('./_library-dd23b178.js');
|
|
7
9
|
require('./_object-pie-68c5bcbc.js');
|
|
8
10
|
var _extends = require('./extends-0a918631.js');
|
|
9
11
|
require('./_object-sap-5e74ba08.js');
|
|
10
|
-
var inherits$1 = require('./inherits-
|
|
12
|
+
var inherits$1 = require('./inherits-9953db94.js');
|
|
11
13
|
require('./define-property-f4d12f4e.js');
|
|
12
14
|
require('./web.dom.iterable-a0e279c1.js');
|
|
13
|
-
var _typeof$
|
|
15
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
14
16
|
require('./_is-array-754e012d.js');
|
|
15
17
|
var React = require('react');
|
|
18
|
+
var React__default = _interopDefault(React);
|
|
16
19
|
var events = require('./events-1b438fe7.js');
|
|
17
20
|
var PropTypes = require('prop-types');
|
|
18
|
-
var
|
|
21
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
22
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
23
|
require('react-dom');
|
|
20
|
-
require('./index-
|
|
24
|
+
require('./index-be0c82be.js');
|
|
21
25
|
var urlFor = require('./urlFor.js');
|
|
22
|
-
var index$
|
|
26
|
+
var index$2 = require('./index-96b3db50.js');
|
|
23
27
|
var reactBootstrap = require('react-bootstrap');
|
|
24
|
-
var index = require('./index-
|
|
25
|
-
|
|
26
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
27
|
-
|
|
28
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
29
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
28
|
+
var index$5 = require('./index-e2e62963.js');
|
|
30
29
|
|
|
31
30
|
function _objectWithoutProperties(source, excluded) {
|
|
32
31
|
if (source == null) return {};
|
|
33
|
-
var target = index._objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var target = index$5._objectWithoutPropertiesLoose(source, excluded);
|
|
34
33
|
var key, i;
|
|
35
34
|
|
|
36
35
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -64,7 +63,7 @@ function _defineProperty(obj, key, value) {
|
|
|
64
63
|
|
|
65
64
|
function _objectSpread(target) {
|
|
66
65
|
for (var i = 1; i < arguments.length; i++) {
|
|
67
|
-
var source = arguments[i] != null ?
|
|
66
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
68
67
|
var ownKeys = Object.keys(source);
|
|
69
68
|
|
|
70
69
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
@@ -103,33 +102,22 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
103
102
|
return Constructor;
|
|
104
103
|
}
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
function _typeof(obj) {
|
|
108
|
-
"@babel/helpers - typeof";
|
|
105
|
+
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
|
|
109
106
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
function _typeof(obj) {
|
|
108
|
+
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
|
109
|
+
_typeof = function _typeof(obj) {
|
|
110
|
+
return _typeof2(obj);
|
|
113
111
|
};
|
|
114
|
-
|
|
115
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
116
112
|
} else {
|
|
117
|
-
|
|
118
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :
|
|
113
|
+
_typeof = function _typeof(obj) {
|
|
114
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
|
119
115
|
};
|
|
120
|
-
|
|
121
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
122
116
|
}
|
|
123
117
|
|
|
124
118
|
return _typeof(obj);
|
|
125
119
|
}
|
|
126
120
|
|
|
127
|
-
module.exports = _typeof;
|
|
128
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
var _typeof = _commonjsHelpers.unwrapExports(_typeof_1);
|
|
132
|
-
|
|
133
121
|
function _assertThisInitialized(self) {
|
|
134
122
|
if (self === void 0) {
|
|
135
123
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -153,6 +141,15 @@ function _getPrototypeOf(o) {
|
|
|
153
141
|
return _getPrototypeOf(o);
|
|
154
142
|
}
|
|
155
143
|
|
|
144
|
+
function _setPrototypeOf(o, p) {
|
|
145
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
146
|
+
o.__proto__ = p;
|
|
147
|
+
return o;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
return _setPrototypeOf(o, p);
|
|
151
|
+
}
|
|
152
|
+
|
|
156
153
|
function _inherits(subClass, superClass) {
|
|
157
154
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
158
155
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -165,7 +162,7 @@ function _inherits(subClass, superClass) {
|
|
|
165
162
|
configurable: true
|
|
166
163
|
}
|
|
167
164
|
});
|
|
168
|
-
if (superClass)
|
|
165
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
169
166
|
}
|
|
170
167
|
|
|
171
168
|
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
@@ -303,22 +300,6 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
303
300
|
}
|
|
304
301
|
};
|
|
305
302
|
|
|
306
|
-
function _typeof$1(obj) {
|
|
307
|
-
"@babel/helpers - typeof";
|
|
308
|
-
|
|
309
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
310
|
-
_typeof$1 = function _typeof(obj) {
|
|
311
|
-
return typeof obj;
|
|
312
|
-
};
|
|
313
|
-
} else {
|
|
314
|
-
_typeof$1 = function _typeof(obj) {
|
|
315
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
return _typeof$1(obj);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
303
|
// From https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
|
|
323
304
|
var shallowEqual = function shallowEqual(objA, objB) {
|
|
324
305
|
if (objA === objB) {
|
|
@@ -352,7 +333,7 @@ var defer = function defer(f) {
|
|
|
352
333
|
};
|
|
353
334
|
|
|
354
335
|
var isPlainObject = function isPlainObject(value) {
|
|
355
|
-
return _typeof
|
|
336
|
+
return _typeof(value) === 'object' && value !== null && !Array.isArray(value);
|
|
356
337
|
};
|
|
357
338
|
|
|
358
339
|
var removeEmptyKey = function removeEmptyKey(obj) {
|
|
@@ -719,7 +700,7 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
719
700
|
var searchForFacetValuesProps = typeof connectorDesc.searchForFacetValues === 'function' ? {
|
|
720
701
|
searchForItems: this.searchForFacetValues
|
|
721
702
|
} : {};
|
|
722
|
-
return React__default
|
|
703
|
+
return React__default.createElement(Composed, index$5._extends({}, props, providedProps, refineProps, searchForFacetValuesProps));
|
|
723
704
|
}
|
|
724
705
|
}]);
|
|
725
706
|
|
|
@@ -741,9 +722,9 @@ var createConnectorWithContext = function createConnectorWithContext(connectorDe
|
|
|
741
722
|
var Connector = createConnectorWithoutContext(connectorDesc)(Composed);
|
|
742
723
|
|
|
743
724
|
var ConnectorWrapper = function ConnectorWrapper(props) {
|
|
744
|
-
return React__default
|
|
745
|
-
return React__default
|
|
746
|
-
return React__default
|
|
725
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
726
|
+
return React__default.createElement(IndexConsumer, null, function (indexContextValue) {
|
|
727
|
+
return React__default.createElement(Connector, index$5._extends({
|
|
747
728
|
contextValue: contextValue,
|
|
748
729
|
indexContextValue: indexContextValue
|
|
749
730
|
}, props));
|
|
@@ -855,7 +836,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
855
836
|
});
|
|
856
837
|
}
|
|
857
838
|
|
|
858
|
-
var version = '6.
|
|
839
|
+
var version = '6.10.3';
|
|
859
840
|
|
|
860
841
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
861
842
|
return function (props, propName, componentName) {
|
|
@@ -916,7 +897,7 @@ function translatable(defaultTranslations) {
|
|
|
916
897
|
_createClass(Translatable, [{
|
|
917
898
|
key: "render",
|
|
918
899
|
value: function render() {
|
|
919
|
-
return React__default
|
|
900
|
+
return React__default.createElement(Composed, index$5._extends({
|
|
920
901
|
translate: this.translate
|
|
921
902
|
}, this.props));
|
|
922
903
|
}
|
|
@@ -1269,39 +1250,26 @@ var Configure = connectConfigure(function Configure() {
|
|
|
1269
1250
|
return null;
|
|
1270
1251
|
});
|
|
1271
1252
|
|
|
1272
|
-
function
|
|
1273
|
-
if (
|
|
1253
|
+
function _arrayWithoutHoles(arr) {
|
|
1254
|
+
if (Array.isArray(arr)) {
|
|
1255
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
1256
|
+
arr2[i] = arr[i];
|
|
1257
|
+
}
|
|
1274
1258
|
|
|
1275
|
-
|
|
1276
|
-
arr2[i] = arr[i];
|
|
1259
|
+
return arr2;
|
|
1277
1260
|
}
|
|
1278
|
-
|
|
1279
|
-
return arr2;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
function _arrayWithoutHoles(arr) {
|
|
1283
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1284
1261
|
}
|
|
1285
1262
|
|
|
1286
1263
|
function _iterableToArray(iter) {
|
|
1287
|
-
if (
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1291
|
-
if (!o) return;
|
|
1292
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1293
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1294
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1295
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1296
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1264
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
1297
1265
|
}
|
|
1298
1266
|
|
|
1299
1267
|
function _nonIterableSpread() {
|
|
1300
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1268
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1301
1269
|
}
|
|
1302
1270
|
|
|
1303
1271
|
function _toConsumableArray(arr) {
|
|
1304
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
1272
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
1305
1273
|
}
|
|
1306
1274
|
|
|
1307
1275
|
function clone(value) {
|
|
@@ -6354,9 +6322,9 @@ function ConfigureRelatedItems() {
|
|
|
6354
6322
|
}
|
|
6355
6323
|
|
|
6356
6324
|
ConfigureRelatedItems.propTypes = {
|
|
6357
|
-
hit: PropTypes__default
|
|
6358
|
-
matchingPatterns: PropTypes__default
|
|
6359
|
-
transformSearchParameters: PropTypes__default
|
|
6325
|
+
hit: PropTypes__default.object.isRequired,
|
|
6326
|
+
matchingPatterns: PropTypes__default.object.isRequired,
|
|
6327
|
+
transformSearchParameters: PropTypes__default.func
|
|
6360
6328
|
};
|
|
6361
6329
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6362
6330
|
|
|
@@ -6597,7 +6565,7 @@ function (_Component) {
|
|
|
6597
6565
|
return null;
|
|
6598
6566
|
}
|
|
6599
6567
|
|
|
6600
|
-
return React__default
|
|
6568
|
+
return React__default.createElement(IndexProvider, {
|
|
6601
6569
|
value: this.state.indexContext
|
|
6602
6570
|
}, this.props.children);
|
|
6603
6571
|
}
|
|
@@ -6607,15 +6575,15 @@ function (_Component) {
|
|
|
6607
6575
|
}(React.Component);
|
|
6608
6576
|
|
|
6609
6577
|
_defineProperty(Index, "propTypes", {
|
|
6610
|
-
indexName: PropTypes__default
|
|
6611
|
-
indexId: PropTypes__default
|
|
6612
|
-
children: PropTypes__default
|
|
6578
|
+
indexName: PropTypes__default.string.isRequired,
|
|
6579
|
+
indexId: PropTypes__default.string.isRequired,
|
|
6580
|
+
children: PropTypes__default.node
|
|
6613
6581
|
});
|
|
6614
6582
|
|
|
6615
6583
|
var IndexWrapper = function IndexWrapper(props) {
|
|
6616
6584
|
var inferredIndexId = props.indexName;
|
|
6617
|
-
return React__default
|
|
6618
|
-
return React__default
|
|
6585
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
6586
|
+
return React__default.createElement(Index, index$5._extends({
|
|
6619
6587
|
contextValue: contextValue,
|
|
6620
6588
|
indexId: inferredIndexId
|
|
6621
6589
|
}, props));
|
|
@@ -6623,8 +6591,8 @@ var IndexWrapper = function IndexWrapper(props) {
|
|
|
6623
6591
|
};
|
|
6624
6592
|
|
|
6625
6593
|
IndexWrapper.propTypes = {
|
|
6626
|
-
indexName: PropTypes__default
|
|
6627
|
-
indexId: PropTypes__default
|
|
6594
|
+
indexName: PropTypes__default.string.isRequired,
|
|
6595
|
+
indexId: PropTypes__default.string
|
|
6628
6596
|
};
|
|
6629
6597
|
|
|
6630
6598
|
function createWidgetsManager(onWidgetsUpdate) {
|
|
@@ -7426,7 +7394,7 @@ function (_Component) {
|
|
|
7426
7394
|
return null;
|
|
7427
7395
|
}
|
|
7428
7396
|
|
|
7429
|
-
return React__default
|
|
7397
|
+
return React__default.createElement(InstantSearchProvider, {
|
|
7430
7398
|
value: this.state.contextValue
|
|
7431
7399
|
}, this.props.children);
|
|
7432
7400
|
}
|
|
@@ -7442,22 +7410,22 @@ _defineProperty(InstantSearch, "defaultProps", {
|
|
|
7442
7410
|
|
|
7443
7411
|
_defineProperty(InstantSearch, "propTypes", {
|
|
7444
7412
|
// @TODO: These props are currently constant.
|
|
7445
|
-
indexName: PropTypes__default
|
|
7446
|
-
searchClient: PropTypes__default
|
|
7447
|
-
search: PropTypes__default
|
|
7448
|
-
searchForFacetValues: PropTypes__default
|
|
7449
|
-
addAlgoliaAgent: PropTypes__default
|
|
7450
|
-
clearCache: PropTypes__default
|
|
7413
|
+
indexName: PropTypes__default.string.isRequired,
|
|
7414
|
+
searchClient: PropTypes__default.shape({
|
|
7415
|
+
search: PropTypes__default.func.isRequired,
|
|
7416
|
+
searchForFacetValues: PropTypes__default.func,
|
|
7417
|
+
addAlgoliaAgent: PropTypes__default.func,
|
|
7418
|
+
clearCache: PropTypes__default.func
|
|
7451
7419
|
}).isRequired,
|
|
7452
|
-
createURL: PropTypes__default
|
|
7453
|
-
refresh: PropTypes__default
|
|
7454
|
-
searchState: PropTypes__default
|
|
7455
|
-
onSearchStateChange: PropTypes__default
|
|
7456
|
-
onSearchParameters: PropTypes__default
|
|
7457
|
-
widgetsCollector: PropTypes__default
|
|
7458
|
-
resultsState: PropTypes__default
|
|
7459
|
-
children: PropTypes__default
|
|
7460
|
-
stalledSearchDelay: PropTypes__default
|
|
7420
|
+
createURL: PropTypes__default.func,
|
|
7421
|
+
refresh: PropTypes__default.bool,
|
|
7422
|
+
searchState: PropTypes__default.object,
|
|
7423
|
+
onSearchStateChange: PropTypes__default.func,
|
|
7424
|
+
onSearchParameters: PropTypes__default.func,
|
|
7425
|
+
widgetsCollector: PropTypes__default.func,
|
|
7426
|
+
resultsState: PropTypes__default.oneOfType([PropTypes__default.object, PropTypes__default.array]),
|
|
7427
|
+
children: PropTypes__default.node,
|
|
7428
|
+
stalledSearchDelay: PropTypes__default.number
|
|
7461
7429
|
});
|
|
7462
7430
|
|
|
7463
7431
|
var getId$2 = function getId(props) {
|
|
@@ -7544,7 +7512,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7544
7512
|
|
|
7545
7513
|
return undefined;
|
|
7546
7514
|
},
|
|
7547
|
-
transformItems: PropTypes__default
|
|
7515
|
+
transformItems: PropTypes__default.func
|
|
7548
7516
|
},
|
|
7549
7517
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7550
7518
|
var id = getId$2(props);
|
|
@@ -7593,7 +7561,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7593
7561
|
var connectCurrentRefinements = createConnectorWithContext({
|
|
7594
7562
|
displayName: 'AlgoliaCurrentRefinements',
|
|
7595
7563
|
propTypes: {
|
|
7596
|
-
transformItems: PropTypes__default
|
|
7564
|
+
transformItems: PropTypes__default.func
|
|
7597
7565
|
},
|
|
7598
7566
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata) {
|
|
7599
7567
|
var items = metadata.reduce(function (res, meta) {
|
|
@@ -7772,14 +7740,14 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7772
7740
|
|
|
7773
7741
|
return undefined;
|
|
7774
7742
|
},
|
|
7775
|
-
separator: PropTypes__default
|
|
7776
|
-
rootPath: PropTypes__default
|
|
7777
|
-
showParentLevel: PropTypes__default
|
|
7778
|
-
defaultRefinement: PropTypes__default
|
|
7779
|
-
showMore: PropTypes__default
|
|
7780
|
-
limit: PropTypes__default
|
|
7781
|
-
showMoreLimit: PropTypes__default
|
|
7782
|
-
transformItems: PropTypes__default
|
|
7743
|
+
separator: PropTypes__default.string,
|
|
7744
|
+
rootPath: PropTypes__default.string,
|
|
7745
|
+
showParentLevel: PropTypes__default.bool,
|
|
7746
|
+
defaultRefinement: PropTypes__default.string,
|
|
7747
|
+
showMore: PropTypes__default.bool,
|
|
7748
|
+
limit: PropTypes__default.number,
|
|
7749
|
+
showMoreLimit: PropTypes__default.number,
|
|
7750
|
+
transformItems: PropTypes__default.func
|
|
7783
7751
|
},
|
|
7784
7752
|
defaultProps: {
|
|
7785
7753
|
showMore: false,
|
|
@@ -8092,12 +8060,12 @@ function getCurrentRefinement$1(props, searchState, context) {
|
|
|
8092
8060
|
var connectHitsPerPage = createConnectorWithContext({
|
|
8093
8061
|
displayName: 'AlgoliaHitsPerPage',
|
|
8094
8062
|
propTypes: {
|
|
8095
|
-
defaultRefinement: PropTypes__default
|
|
8096
|
-
items: PropTypes__default
|
|
8097
|
-
label: PropTypes__default
|
|
8098
|
-
value: PropTypes__default
|
|
8063
|
+
defaultRefinement: PropTypes__default.number.isRequired,
|
|
8064
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
8065
|
+
label: PropTypes__default.string,
|
|
8066
|
+
value: PropTypes__default.number.isRequired
|
|
8099
8067
|
})).isRequired,
|
|
8100
|
-
transformItems: PropTypes__default
|
|
8068
|
+
transformItems: PropTypes__default.func
|
|
8101
8069
|
},
|
|
8102
8070
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
8103
8071
|
var currentRefinement = getCurrentRefinement$1(props, searchState, {
|
|
@@ -8359,13 +8327,13 @@ var defaultSortBy = ['count:desc', 'name:asc'];
|
|
|
8359
8327
|
var connectMenu = createConnectorWithContext({
|
|
8360
8328
|
displayName: 'AlgoliaMenu',
|
|
8361
8329
|
propTypes: {
|
|
8362
|
-
attribute: PropTypes__default
|
|
8363
|
-
showMore: PropTypes__default
|
|
8364
|
-
limit: PropTypes__default
|
|
8365
|
-
showMoreLimit: PropTypes__default
|
|
8366
|
-
defaultRefinement: PropTypes__default
|
|
8367
|
-
transformItems: PropTypes__default
|
|
8368
|
-
searchable: PropTypes__default
|
|
8330
|
+
attribute: PropTypes__default.string.isRequired,
|
|
8331
|
+
showMore: PropTypes__default.bool,
|
|
8332
|
+
limit: PropTypes__default.number,
|
|
8333
|
+
showMoreLimit: PropTypes__default.number,
|
|
8334
|
+
defaultRefinement: PropTypes__default.string,
|
|
8335
|
+
transformItems: PropTypes__default.func,
|
|
8336
|
+
searchable: PropTypes__default.bool
|
|
8369
8337
|
},
|
|
8370
8338
|
defaultProps: {
|
|
8371
8339
|
showMore: false,
|
|
@@ -8515,7 +8483,10 @@ function _arrayWithHoles(arr) {
|
|
|
8515
8483
|
}
|
|
8516
8484
|
|
|
8517
8485
|
function _iterableToArrayLimit(arr, i) {
|
|
8518
|
-
if (
|
|
8486
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
8487
|
+
return;
|
|
8488
|
+
}
|
|
8489
|
+
|
|
8519
8490
|
var _arr = [];
|
|
8520
8491
|
var _n = true;
|
|
8521
8492
|
var _d = false;
|
|
@@ -8542,11 +8513,11 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
8542
8513
|
}
|
|
8543
8514
|
|
|
8544
8515
|
function _nonIterableRest() {
|
|
8545
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8516
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
8546
8517
|
}
|
|
8547
8518
|
|
|
8548
8519
|
function _slicedToArray(arr, i) {
|
|
8549
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
8520
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
8550
8521
|
}
|
|
8551
8522
|
|
|
8552
8523
|
function stringifyItem(item) {
|
|
@@ -8573,8 +8544,8 @@ function parseItem(value) {
|
|
|
8573
8544
|
endStr = _value$split2[1];
|
|
8574
8545
|
|
|
8575
8546
|
return {
|
|
8576
|
-
start: startStr.length > 0 ?
|
|
8577
|
-
end: endStr.length > 0 ?
|
|
8547
|
+
start: startStr.length > 0 ? parseInt(startStr, 10) : null,
|
|
8548
|
+
end: endStr.length > 0 ? parseInt(endStr, 10) : null
|
|
8578
8549
|
};
|
|
8579
8550
|
}
|
|
8580
8551
|
|
|
@@ -8635,14 +8606,14 @@ function _cleanUp$2(props, searchState, context) {
|
|
|
8635
8606
|
var connectNumericMenu = createConnectorWithContext({
|
|
8636
8607
|
displayName: 'AlgoliaNumericMenu',
|
|
8637
8608
|
propTypes: {
|
|
8638
|
-
id: PropTypes__default
|
|
8639
|
-
attribute: PropTypes__default
|
|
8640
|
-
items: PropTypes__default
|
|
8641
|
-
label: PropTypes__default
|
|
8642
|
-
start: PropTypes__default
|
|
8643
|
-
end: PropTypes__default
|
|
8609
|
+
id: PropTypes__default.string,
|
|
8610
|
+
attribute: PropTypes__default.string.isRequired,
|
|
8611
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
8612
|
+
label: PropTypes__default.node,
|
|
8613
|
+
start: PropTypes__default.number,
|
|
8614
|
+
end: PropTypes__default.number
|
|
8644
8615
|
})).isRequired,
|
|
8645
|
-
transformItems: PropTypes__default
|
|
8616
|
+
transformItems: PropTypes__default.func
|
|
8646
8617
|
},
|
|
8647
8618
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
8648
8619
|
var attribute = props.attribute;
|
|
@@ -9034,17 +9005,17 @@ function _cleanUp$3(props, searchState, context) {
|
|
|
9034
9005
|
var connectRange = createConnectorWithContext({
|
|
9035
9006
|
displayName: 'AlgoliaRange',
|
|
9036
9007
|
propTypes: {
|
|
9037
|
-
id: PropTypes__default
|
|
9038
|
-
attribute: PropTypes__default
|
|
9039
|
-
defaultRefinement: PropTypes__default
|
|
9040
|
-
min: PropTypes__default
|
|
9041
|
-
max: PropTypes__default
|
|
9008
|
+
id: PropTypes__default.string,
|
|
9009
|
+
attribute: PropTypes__default.string.isRequired,
|
|
9010
|
+
defaultRefinement: PropTypes__default.shape({
|
|
9011
|
+
min: PropTypes__default.number,
|
|
9012
|
+
max: PropTypes__default.number
|
|
9042
9013
|
}),
|
|
9043
|
-
min: PropTypes__default
|
|
9044
|
-
max: PropTypes__default
|
|
9045
|
-
precision: PropTypes__default
|
|
9046
|
-
header: PropTypes__default
|
|
9047
|
-
footer: PropTypes__default
|
|
9014
|
+
min: PropTypes__default.number,
|
|
9015
|
+
max: PropTypes__default.number,
|
|
9016
|
+
precision: PropTypes__default.number,
|
|
9017
|
+
header: PropTypes__default.node,
|
|
9018
|
+
footer: PropTypes__default.node
|
|
9048
9019
|
},
|
|
9049
9020
|
defaultProps: {
|
|
9050
9021
|
precision: 0
|
|
@@ -9267,15 +9238,15 @@ var sortBy$1 = ['isRefined', 'count:desc', 'name:asc'];
|
|
|
9267
9238
|
var connectRefinementList = createConnectorWithContext({
|
|
9268
9239
|
displayName: 'AlgoliaRefinementList',
|
|
9269
9240
|
propTypes: {
|
|
9270
|
-
id: PropTypes__default
|
|
9271
|
-
attribute: PropTypes__default
|
|
9272
|
-
operator: PropTypes__default
|
|
9273
|
-
showMore: PropTypes__default
|
|
9274
|
-
limit: PropTypes__default
|
|
9275
|
-
showMoreLimit: PropTypes__default
|
|
9276
|
-
defaultRefinement: PropTypes__default
|
|
9277
|
-
searchable: PropTypes__default
|
|
9278
|
-
transformItems: PropTypes__default
|
|
9241
|
+
id: PropTypes__default.string,
|
|
9242
|
+
attribute: PropTypes__default.string.isRequired,
|
|
9243
|
+
operator: PropTypes__default.oneOf(['and', 'or']),
|
|
9244
|
+
showMore: PropTypes__default.bool,
|
|
9245
|
+
limit: PropTypes__default.number,
|
|
9246
|
+
showMoreLimit: PropTypes__default.number,
|
|
9247
|
+
defaultRefinement: PropTypes__default.arrayOf(PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number])),
|
|
9248
|
+
searchable: PropTypes__default.bool,
|
|
9249
|
+
transformItems: PropTypes__default.func
|
|
9279
9250
|
},
|
|
9280
9251
|
defaultProps: {
|
|
9281
9252
|
operator: 'or',
|
|
@@ -9431,7 +9402,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9431
9402
|
var connectScrollTo = createConnectorWithContext({
|
|
9432
9403
|
displayName: 'AlgoliaScrollTo',
|
|
9433
9404
|
propTypes: {
|
|
9434
|
-
scrollOn: PropTypes__default
|
|
9405
|
+
scrollOn: PropTypes__default.string
|
|
9435
9406
|
},
|
|
9436
9407
|
defaultProps: {
|
|
9437
9408
|
scrollOn: 'page'
|
|
@@ -9520,7 +9491,7 @@ function _cleanUp$5(props, searchState, context) {
|
|
|
9520
9491
|
var connectSearchBox = createConnectorWithContext({
|
|
9521
9492
|
displayName: 'AlgoliaSearchBox',
|
|
9522
9493
|
propTypes: {
|
|
9523
|
-
defaultRefinement: PropTypes__default
|
|
9494
|
+
defaultRefinement: PropTypes__default.string
|
|
9524
9495
|
},
|
|
9525
9496
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9526
9497
|
return {
|
|
@@ -9656,12 +9627,12 @@ function getCurrentRefinement$a(props, searchState, context) {
|
|
|
9656
9627
|
var connectSortBy = createConnectorWithContext({
|
|
9657
9628
|
displayName: 'AlgoliaSortBy',
|
|
9658
9629
|
propTypes: {
|
|
9659
|
-
defaultRefinement: PropTypes__default
|
|
9660
|
-
items: PropTypes__default
|
|
9661
|
-
label: PropTypes__default
|
|
9662
|
-
value: PropTypes__default
|
|
9630
|
+
defaultRefinement: PropTypes__default.string,
|
|
9631
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
9632
|
+
label: PropTypes__default.string,
|
|
9633
|
+
value: PropTypes__default.string.isRequired
|
|
9663
9634
|
})).isRequired,
|
|
9664
|
-
transformItems: PropTypes__default
|
|
9635
|
+
transformItems: PropTypes__default.func
|
|
9665
9636
|
},
|
|
9666
9637
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
9667
9638
|
var currentRefinement = getCurrentRefinement$a(props, searchState, {
|
|
@@ -9795,11 +9766,11 @@ function _cleanUp$6(props, searchState, context) {
|
|
|
9795
9766
|
var connectToggleRefinement = createConnectorWithContext({
|
|
9796
9767
|
displayName: 'AlgoliaToggle',
|
|
9797
9768
|
propTypes: {
|
|
9798
|
-
label: PropTypes__default
|
|
9799
|
-
attribute: PropTypes__default
|
|
9800
|
-
value: PropTypes__default
|
|
9801
|
-
filter: PropTypes__default
|
|
9802
|
-
defaultRefinement: PropTypes__default
|
|
9769
|
+
label: PropTypes__default.string.isRequired,
|
|
9770
|
+
attribute: PropTypes__default.string.isRequired,
|
|
9771
|
+
value: PropTypes__default.any.isRequired,
|
|
9772
|
+
filter: PropTypes__default.func,
|
|
9773
|
+
defaultRefinement: PropTypes__default.bool
|
|
9803
9774
|
},
|
|
9804
9775
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9805
9776
|
var attribute = props.attribute,
|
|
@@ -9959,7 +9930,7 @@ function _cleanUp$7(props, searchState, context) {
|
|
|
9959
9930
|
var connectVoiceSearch = createConnectorWithContext({
|
|
9960
9931
|
displayName: 'AlgoliaVoiceSearch',
|
|
9961
9932
|
propTypes: {
|
|
9962
|
-
defaultRefinement: PropTypes__default
|
|
9933
|
+
defaultRefinement: PropTypes__default.string
|
|
9963
9934
|
},
|
|
9964
9935
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9965
9936
|
return {
|
|
@@ -10032,7 +10003,7 @@ var createClassNames = function createClassNames(block) {
|
|
|
10032
10003
|
var baseClassName = "".concat(prefix, "-").concat(block);
|
|
10033
10004
|
return element ? "".concat(baseClassName, "-").concat(element) : baseClassName;
|
|
10034
10005
|
});
|
|
10035
|
-
return index.classnames(suitElements);
|
|
10006
|
+
return index$5.classnames(suitElements);
|
|
10036
10007
|
};
|
|
10037
10008
|
};
|
|
10038
10009
|
var isSpecialClick = function isSpecialClick(event) {
|
|
@@ -10121,15 +10092,15 @@ function (_Component) {
|
|
|
10121
10092
|
header = _this$props.header,
|
|
10122
10093
|
footer = _this$props.footer;
|
|
10123
10094
|
var canRefine = this.state.canRefine;
|
|
10124
|
-
return React__default
|
|
10125
|
-
className: index.classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
10126
|
-
}, header && React__default
|
|
10095
|
+
return React__default.createElement("div", {
|
|
10096
|
+
className: index$5.classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
10097
|
+
}, header && React__default.createElement("div", {
|
|
10127
10098
|
className: cx('header')
|
|
10128
|
-
}, header), React__default
|
|
10099
|
+
}, header), React__default.createElement("div", {
|
|
10129
10100
|
className: cx('body')
|
|
10130
|
-
}, React__default
|
|
10101
|
+
}, React__default.createElement(PanelProvider, {
|
|
10131
10102
|
value: this.setCanRefine
|
|
10132
|
-
}, children)), footer && React__default
|
|
10103
|
+
}, children)), footer && React__default.createElement("div", {
|
|
10133
10104
|
className: cx('footer')
|
|
10134
10105
|
}, footer));
|
|
10135
10106
|
}
|
|
@@ -10139,10 +10110,10 @@ function (_Component) {
|
|
|
10139
10110
|
}(React.Component);
|
|
10140
10111
|
|
|
10141
10112
|
_defineProperty(Panel, "propTypes", {
|
|
10142
|
-
children: PropTypes__default
|
|
10143
|
-
className: PropTypes__default
|
|
10144
|
-
header: PropTypes__default
|
|
10145
|
-
footer: PropTypes__default
|
|
10113
|
+
children: PropTypes__default.node.isRequired,
|
|
10114
|
+
className: PropTypes__default.string,
|
|
10115
|
+
header: PropTypes__default.node,
|
|
10116
|
+
footer: PropTypes__default.node
|
|
10146
10117
|
});
|
|
10147
10118
|
|
|
10148
10119
|
_defineProperty(Panel, "defaultProps", {
|
|
@@ -10185,16 +10156,16 @@ function (_Component) {
|
|
|
10185
10156
|
}(React.Component);
|
|
10186
10157
|
|
|
10187
10158
|
_defineProperty(PanelCallbackHandler, "propTypes", {
|
|
10188
|
-
children: PropTypes__default
|
|
10189
|
-
canRefine: PropTypes__default
|
|
10190
|
-
setCanRefine: PropTypes__default
|
|
10159
|
+
children: PropTypes__default.node.isRequired,
|
|
10160
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10161
|
+
setCanRefine: PropTypes__default.func.isRequired
|
|
10191
10162
|
});
|
|
10192
10163
|
|
|
10193
10164
|
var PanelWrapper = function PanelWrapper(_ref) {
|
|
10194
10165
|
var canRefine = _ref.canRefine,
|
|
10195
10166
|
children = _ref.children;
|
|
10196
|
-
return React__default
|
|
10197
|
-
return React__default
|
|
10167
|
+
return React__default.createElement(PanelConsumer, null, function (setCanRefine) {
|
|
10168
|
+
return React__default.createElement(PanelCallbackHandler, {
|
|
10198
10169
|
setCanRefine: setCanRefine,
|
|
10199
10170
|
canRefine: canRefine
|
|
10200
10171
|
}, children);
|
|
@@ -10202,8 +10173,8 @@ var PanelWrapper = function PanelWrapper(_ref) {
|
|
|
10202
10173
|
};
|
|
10203
10174
|
|
|
10204
10175
|
PanelWrapper.propTypes = {
|
|
10205
|
-
canRefine: PropTypes__default
|
|
10206
|
-
children: PropTypes__default
|
|
10176
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10177
|
+
children: PropTypes__default.node.isRequired
|
|
10207
10178
|
};
|
|
10208
10179
|
|
|
10209
10180
|
var Link =
|
|
@@ -10240,7 +10211,7 @@ function (_Component) {
|
|
|
10240
10211
|
_createClass(Link, [{
|
|
10241
10212
|
key: "render",
|
|
10242
10213
|
value: function render() {
|
|
10243
|
-
return React__default
|
|
10214
|
+
return React__default.createElement("a", index$5._extends({}, this.props, {
|
|
10244
10215
|
onClick: this.onClick
|
|
10245
10216
|
}));
|
|
10246
10217
|
}
|
|
@@ -10250,13 +10221,13 @@ function (_Component) {
|
|
|
10250
10221
|
}(React.Component);
|
|
10251
10222
|
|
|
10252
10223
|
_defineProperty(Link, "propTypes", {
|
|
10253
|
-
onClick: PropTypes__default
|
|
10224
|
+
onClick: PropTypes__default.func.isRequired
|
|
10254
10225
|
});
|
|
10255
10226
|
|
|
10256
10227
|
var cx$1 = createClassNames('Breadcrumb');
|
|
10257
|
-
var itemsPropType = PropTypes__default
|
|
10258
|
-
label: PropTypes__default
|
|
10259
|
-
value: PropTypes__default
|
|
10228
|
+
var itemsPropType = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10229
|
+
label: PropTypes__default.string.isRequired,
|
|
10230
|
+
value: PropTypes__default.string.isRequired
|
|
10260
10231
|
}));
|
|
10261
10232
|
|
|
10262
10233
|
var Breadcrumb =
|
|
@@ -10282,9 +10253,9 @@ function (_Component) {
|
|
|
10282
10253
|
separator = _this$props.separator,
|
|
10283
10254
|
translate = _this$props.translate,
|
|
10284
10255
|
className = _this$props.className;
|
|
10285
|
-
var rootPath = canRefine ? React__default
|
|
10256
|
+
var rootPath = canRefine ? React__default.createElement("li", {
|
|
10286
10257
|
className: cx$1('item')
|
|
10287
|
-
}, React__default
|
|
10258
|
+
}, React__default.createElement(Link, {
|
|
10288
10259
|
className: cx$1('link'),
|
|
10289
10260
|
onClick: function onClick() {
|
|
10290
10261
|
return !rootURL ? refine() : null;
|
|
@@ -10293,12 +10264,12 @@ function (_Component) {
|
|
|
10293
10264
|
}, translate('rootLabel'))) : null;
|
|
10294
10265
|
var breadcrumb = items.map(function (item, idx) {
|
|
10295
10266
|
var isLast = idx === items.length - 1;
|
|
10296
|
-
return React__default
|
|
10267
|
+
return React__default.createElement("li", {
|
|
10297
10268
|
className: cx$1('item', isLast && 'item--selected'),
|
|
10298
10269
|
key: idx
|
|
10299
|
-
}, React__default
|
|
10270
|
+
}, React__default.createElement("span", {
|
|
10300
10271
|
className: cx$1('separator')
|
|
10301
|
-
}, separator), !isLast ? React__default
|
|
10272
|
+
}, separator), !isLast ? React__default.createElement(Link, {
|
|
10302
10273
|
className: cx$1('link'),
|
|
10303
10274
|
onClick: function onClick() {
|
|
10304
10275
|
return refine(item.value);
|
|
@@ -10306,9 +10277,9 @@ function (_Component) {
|
|
|
10306
10277
|
href: createURL(item.value)
|
|
10307
10278
|
}, item.label) : item.label);
|
|
10308
10279
|
});
|
|
10309
|
-
return React__default
|
|
10310
|
-
className: index.classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10311
|
-
}, React__default
|
|
10280
|
+
return React__default.createElement("div", {
|
|
10281
|
+
className: index$5.classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10282
|
+
}, React__default.createElement("ul", {
|
|
10312
10283
|
className: cx$1('list')
|
|
10313
10284
|
}, rootPath, breadcrumb));
|
|
10314
10285
|
}
|
|
@@ -10318,14 +10289,14 @@ function (_Component) {
|
|
|
10318
10289
|
}(React.Component);
|
|
10319
10290
|
|
|
10320
10291
|
_defineProperty(Breadcrumb, "propTypes", {
|
|
10321
|
-
canRefine: PropTypes__default
|
|
10322
|
-
createURL: PropTypes__default
|
|
10292
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10293
|
+
createURL: PropTypes__default.func.isRequired,
|
|
10323
10294
|
items: itemsPropType,
|
|
10324
|
-
refine: PropTypes__default
|
|
10325
|
-
rootURL: PropTypes__default
|
|
10326
|
-
separator: PropTypes__default
|
|
10327
|
-
translate: PropTypes__default
|
|
10328
|
-
className: PropTypes__default
|
|
10295
|
+
refine: PropTypes__default.func.isRequired,
|
|
10296
|
+
rootURL: PropTypes__default.string,
|
|
10297
|
+
separator: PropTypes__default.node,
|
|
10298
|
+
translate: PropTypes__default.func.isRequired,
|
|
10299
|
+
className: PropTypes__default.string
|
|
10329
10300
|
});
|
|
10330
10301
|
|
|
10331
10302
|
_defineProperty(Breadcrumb, "defaultProps", {
|
|
@@ -10427,7 +10398,7 @@ var Breadcrumb$1 = translatable({
|
|
|
10427
10398
|
*/
|
|
10428
10399
|
|
|
10429
10400
|
var BreadcrumbWidget = function BreadcrumbWidget(props) {
|
|
10430
|
-
return React__default
|
|
10401
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Breadcrumb$1, props));
|
|
10431
10402
|
};
|
|
10432
10403
|
|
|
10433
10404
|
connectBreadcrumb(BreadcrumbWidget);
|
|
@@ -10454,9 +10425,9 @@ function (_Component) {
|
|
|
10454
10425
|
refine = _this$props.refine,
|
|
10455
10426
|
translate = _this$props.translate,
|
|
10456
10427
|
className = _this$props.className;
|
|
10457
|
-
return React__default
|
|
10458
|
-
className: index.classnames(cx$2(''), className)
|
|
10459
|
-
}, React__default
|
|
10428
|
+
return React__default.createElement("div", {
|
|
10429
|
+
className: index$5.classnames(cx$2(''), className)
|
|
10430
|
+
}, React__default.createElement("button", {
|
|
10460
10431
|
className: cx$2('button', !canRefine && 'button--disabled'),
|
|
10461
10432
|
onClick: function onClick() {
|
|
10462
10433
|
return refine(items);
|
|
@@ -10470,11 +10441,11 @@ function (_Component) {
|
|
|
10470
10441
|
}(React.Component);
|
|
10471
10442
|
|
|
10472
10443
|
_defineProperty(ClearRefinements, "propTypes", {
|
|
10473
|
-
items: PropTypes__default
|
|
10474
|
-
canRefine: PropTypes__default
|
|
10475
|
-
refine: PropTypes__default
|
|
10476
|
-
translate: PropTypes__default
|
|
10477
|
-
className: PropTypes__default
|
|
10444
|
+
items: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
10445
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10446
|
+
refine: PropTypes__default.func.isRequired,
|
|
10447
|
+
translate: PropTypes__default.func.isRequired,
|
|
10448
|
+
className: PropTypes__default.string
|
|
10478
10449
|
});
|
|
10479
10450
|
|
|
10480
10451
|
_defineProperty(ClearRefinements, "defaultProps", {
|
|
@@ -10520,7 +10491,7 @@ var ClearRefinements$1 = translatable({
|
|
|
10520
10491
|
*/
|
|
10521
10492
|
|
|
10522
10493
|
var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
|
|
10523
|
-
return React__default
|
|
10494
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(ClearRefinements$1, props));
|
|
10524
10495
|
};
|
|
10525
10496
|
|
|
10526
10497
|
connectCurrentRefinements(ClearRefinementsWidget);
|
|
@@ -10532,31 +10503,31 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10532
10503
|
refine = _ref.refine,
|
|
10533
10504
|
translate = _ref.translate,
|
|
10534
10505
|
className = _ref.className;
|
|
10535
|
-
return React__default
|
|
10536
|
-
className: index.classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10537
|
-
}, React__default
|
|
10506
|
+
return React__default.createElement("div", {
|
|
10507
|
+
className: index$5.classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10508
|
+
}, React__default.createElement("ul", {
|
|
10538
10509
|
className: cx$3('list', !canRefine && 'list--noRefinement')
|
|
10539
10510
|
}, items.map(function (item) {
|
|
10540
|
-
return React__default
|
|
10511
|
+
return React__default.createElement("li", {
|
|
10541
10512
|
key: item.label,
|
|
10542
10513
|
className: cx$3('item')
|
|
10543
|
-
}, React__default
|
|
10514
|
+
}, React__default.createElement("span", {
|
|
10544
10515
|
className: cx$3('label')
|
|
10545
10516
|
}, item.label), item.items ? item.items.map(function (nest) {
|
|
10546
|
-
return React__default
|
|
10517
|
+
return React__default.createElement("span", {
|
|
10547
10518
|
key: nest.label,
|
|
10548
10519
|
className: cx$3('category')
|
|
10549
|
-
}, React__default
|
|
10520
|
+
}, React__default.createElement("span", {
|
|
10550
10521
|
className: cx$3('categoryLabel')
|
|
10551
|
-
}, nest.label), React__default
|
|
10522
|
+
}, nest.label), React__default.createElement("button", {
|
|
10552
10523
|
className: cx$3('delete'),
|
|
10553
10524
|
onClick: function onClick() {
|
|
10554
10525
|
return refine(nest.value);
|
|
10555
10526
|
}
|
|
10556
10527
|
}, translate('clearFilter', nest)));
|
|
10557
|
-
}) : React__default
|
|
10528
|
+
}) : React__default.createElement("span", {
|
|
10558
10529
|
className: cx$3('category')
|
|
10559
|
-
}, React__default
|
|
10530
|
+
}, React__default.createElement("button", {
|
|
10560
10531
|
className: cx$3('delete'),
|
|
10561
10532
|
onClick: function onClick() {
|
|
10562
10533
|
return refine(item.value);
|
|
@@ -10564,19 +10535,19 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10564
10535
|
}, translate('clearFilter', item))));
|
|
10565
10536
|
})));
|
|
10566
10537
|
};
|
|
10567
|
-
var itemPropTypes = PropTypes__default
|
|
10568
|
-
label: PropTypes__default
|
|
10569
|
-
value: PropTypes__default
|
|
10538
|
+
var itemPropTypes = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10539
|
+
label: PropTypes__default.string.isRequired,
|
|
10540
|
+
value: PropTypes__default.func.isRequired,
|
|
10570
10541
|
items: function items() {
|
|
10571
10542
|
return itemPropTypes.apply(void 0, arguments);
|
|
10572
10543
|
}
|
|
10573
10544
|
}));
|
|
10574
10545
|
CurrentRefinements.propTypes = {
|
|
10575
10546
|
items: itemPropTypes.isRequired,
|
|
10576
|
-
canRefine: PropTypes__default
|
|
10577
|
-
refine: PropTypes__default
|
|
10578
|
-
translate: PropTypes__default
|
|
10579
|
-
className: PropTypes__default
|
|
10547
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10548
|
+
refine: PropTypes__default.func.isRequired,
|
|
10549
|
+
translate: PropTypes__default.func.isRequired,
|
|
10550
|
+
className: PropTypes__default.string
|
|
10580
10551
|
};
|
|
10581
10552
|
CurrentRefinements.defaultProps = {
|
|
10582
10553
|
className: ''
|
|
@@ -10628,33 +10599,33 @@ var CurrentRefinements$1 = translatable({
|
|
|
10628
10599
|
*/
|
|
10629
10600
|
|
|
10630
10601
|
var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
|
|
10631
|
-
return React__default
|
|
10602
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(CurrentRefinements$1, props));
|
|
10632
10603
|
};
|
|
10633
10604
|
|
|
10634
10605
|
connectCurrentRefinements(CurrentRefinementsWidget);
|
|
10635
10606
|
|
|
10636
10607
|
var cx$4 = createClassNames('SearchBox');
|
|
10637
|
-
var defaultLoadingIndicator = React__default
|
|
10608
|
+
var defaultLoadingIndicator = React__default.createElement("svg", {
|
|
10638
10609
|
width: "18",
|
|
10639
10610
|
height: "18",
|
|
10640
10611
|
viewBox: "0 0 38 38",
|
|
10641
10612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10642
10613
|
stroke: "#444",
|
|
10643
10614
|
className: cx$4('loadingIcon')
|
|
10644
|
-
}, React__default
|
|
10615
|
+
}, React__default.createElement("g", {
|
|
10645
10616
|
fill: "none",
|
|
10646
10617
|
fillRule: "evenodd"
|
|
10647
|
-
}, React__default
|
|
10618
|
+
}, React__default.createElement("g", {
|
|
10648
10619
|
transform: "translate(1 1)",
|
|
10649
10620
|
strokeWidth: "2"
|
|
10650
|
-
}, React__default
|
|
10621
|
+
}, React__default.createElement("circle", {
|
|
10651
10622
|
strokeOpacity: ".5",
|
|
10652
10623
|
cx: "18",
|
|
10653
10624
|
cy: "18",
|
|
10654
10625
|
r: "18"
|
|
10655
|
-
}), React__default
|
|
10626
|
+
}), React__default.createElement("path", {
|
|
10656
10627
|
d: "M36 18c0-9.94-8.06-18-18-18"
|
|
10657
|
-
}, React__default
|
|
10628
|
+
}, React__default.createElement("animateTransform", {
|
|
10658
10629
|
attributeName: "transform",
|
|
10659
10630
|
type: "rotate",
|
|
10660
10631
|
from: "0 18 18",
|
|
@@ -10662,22 +10633,22 @@ var defaultLoadingIndicator = React__default['default'].createElement("svg", {
|
|
|
10662
10633
|
dur: "1s",
|
|
10663
10634
|
repeatCount: "indefinite"
|
|
10664
10635
|
})))));
|
|
10665
|
-
var defaultReset = React__default
|
|
10636
|
+
var defaultReset = React__default.createElement("svg", {
|
|
10666
10637
|
className: cx$4('resetIcon'),
|
|
10667
10638
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10668
10639
|
viewBox: "0 0 20 20",
|
|
10669
10640
|
width: "10",
|
|
10670
10641
|
height: "10"
|
|
10671
|
-
}, React__default
|
|
10642
|
+
}, React__default.createElement("path", {
|
|
10672
10643
|
d: "M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"
|
|
10673
10644
|
}));
|
|
10674
|
-
var defaultSubmit = React__default
|
|
10645
|
+
var defaultSubmit = React__default.createElement("svg", {
|
|
10675
10646
|
className: cx$4('submitIcon'),
|
|
10676
10647
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10677
10648
|
width: "10",
|
|
10678
10649
|
height: "10",
|
|
10679
10650
|
viewBox: "0 0 40 40"
|
|
10680
|
-
}, React__default
|
|
10651
|
+
}, React__default.createElement("path", {
|
|
10681
10652
|
d: "M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"
|
|
10682
10653
|
}));
|
|
10683
10654
|
|
|
@@ -10843,16 +10814,16 @@ function (_Component) {
|
|
|
10843
10814
|
var isSearchStalled = this.props.showLoadingIndicator && this.props.isSearchStalled;
|
|
10844
10815
|
/* eslint-disable max-len */
|
|
10845
10816
|
|
|
10846
|
-
return React__default
|
|
10847
|
-
className: index.classnames(cx$4(''), className)
|
|
10848
|
-
}, React__default
|
|
10817
|
+
return React__default.createElement("div", {
|
|
10818
|
+
className: index$5.classnames(cx$4(''), className)
|
|
10819
|
+
}, React__default.createElement("form", {
|
|
10849
10820
|
noValidate: true,
|
|
10850
10821
|
onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
|
|
10851
10822
|
onReset: this.onReset,
|
|
10852
10823
|
className: cx$4('form', isSearchStalled && 'form--stalledSearch'),
|
|
10853
10824
|
action: "",
|
|
10854
10825
|
role: "search"
|
|
10855
|
-
}, React__default
|
|
10826
|
+
}, React__default.createElement("input", index$5._extends({
|
|
10856
10827
|
ref: this.onInputMount,
|
|
10857
10828
|
type: "search",
|
|
10858
10829
|
placeholder: translate('placeholder'),
|
|
@@ -10867,16 +10838,16 @@ function (_Component) {
|
|
|
10867
10838
|
onChange: this.onChange
|
|
10868
10839
|
}, searchInputEvents, {
|
|
10869
10840
|
className: cx$4('input')
|
|
10870
|
-
})), React__default
|
|
10841
|
+
})), React__default.createElement("button", {
|
|
10871
10842
|
type: "submit",
|
|
10872
10843
|
title: translate('submitTitle'),
|
|
10873
10844
|
className: cx$4('submit')
|
|
10874
|
-
}, submit), React__default
|
|
10845
|
+
}, submit), React__default.createElement("button", {
|
|
10875
10846
|
type: "reset",
|
|
10876
10847
|
title: translate('resetTitle'),
|
|
10877
10848
|
className: cx$4('reset'),
|
|
10878
10849
|
hidden: !query || isSearchStalled
|
|
10879
|
-
}, reset), this.props.showLoadingIndicator && React__default
|
|
10850
|
+
}, reset), this.props.showLoadingIndicator && React__default.createElement("span", {
|
|
10880
10851
|
hidden: !isSearchStalled,
|
|
10881
10852
|
className: cx$4('loadingIndicator')
|
|
10882
10853
|
}, loadingIndicator)));
|
|
@@ -10888,23 +10859,23 @@ function (_Component) {
|
|
|
10888
10859
|
}(React.Component);
|
|
10889
10860
|
|
|
10890
10861
|
_defineProperty(SearchBox, "propTypes", {
|
|
10891
|
-
currentRefinement: PropTypes__default
|
|
10892
|
-
className: PropTypes__default
|
|
10893
|
-
refine: PropTypes__default
|
|
10894
|
-
translate: PropTypes__default
|
|
10895
|
-
loadingIndicator: PropTypes__default
|
|
10896
|
-
reset: PropTypes__default
|
|
10897
|
-
submit: PropTypes__default
|
|
10898
|
-
focusShortcuts: PropTypes__default
|
|
10899
|
-
autoFocus: PropTypes__default
|
|
10900
|
-
searchAsYouType: PropTypes__default
|
|
10901
|
-
onSubmit: PropTypes__default
|
|
10902
|
-
onReset: PropTypes__default
|
|
10903
|
-
onChange: PropTypes__default
|
|
10904
|
-
isSearchStalled: PropTypes__default
|
|
10905
|
-
showLoadingIndicator: PropTypes__default
|
|
10906
|
-
inputRef: PropTypes__default
|
|
10907
|
-
current: PropTypes__default
|
|
10862
|
+
currentRefinement: PropTypes__default.string,
|
|
10863
|
+
className: PropTypes__default.string,
|
|
10864
|
+
refine: PropTypes__default.func.isRequired,
|
|
10865
|
+
translate: PropTypes__default.func.isRequired,
|
|
10866
|
+
loadingIndicator: PropTypes__default.node,
|
|
10867
|
+
reset: PropTypes__default.node,
|
|
10868
|
+
submit: PropTypes__default.node,
|
|
10869
|
+
focusShortcuts: PropTypes__default.arrayOf(PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number])),
|
|
10870
|
+
autoFocus: PropTypes__default.bool,
|
|
10871
|
+
searchAsYouType: PropTypes__default.bool,
|
|
10872
|
+
onSubmit: PropTypes__default.func,
|
|
10873
|
+
onReset: PropTypes__default.func,
|
|
10874
|
+
onChange: PropTypes__default.func,
|
|
10875
|
+
isSearchStalled: PropTypes__default.bool,
|
|
10876
|
+
showLoadingIndicator: PropTypes__default.bool,
|
|
10877
|
+
inputRef: PropTypes__default.oneOfType([PropTypes__default.func, PropTypes__default.exact({
|
|
10878
|
+
current: PropTypes__default.object
|
|
10908
10879
|
})])
|
|
10909
10880
|
});
|
|
10910
10881
|
|
|
@@ -10927,9 +10898,9 @@ var SearchBox$1 = translatable({
|
|
|
10927
10898
|
placeholder: 'Search here…'
|
|
10928
10899
|
})(SearchBox);
|
|
10929
10900
|
|
|
10930
|
-
var itemsPropType$1 = PropTypes__default
|
|
10931
|
-
value: PropTypes__default
|
|
10932
|
-
label: PropTypes__default
|
|
10901
|
+
var itemsPropType$1 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10902
|
+
value: PropTypes__default.any,
|
|
10903
|
+
label: PropTypes__default.node.isRequired,
|
|
10933
10904
|
items: function items() {
|
|
10934
10905
|
return itemsPropType$1.apply(void 0, arguments);
|
|
10935
10906
|
}
|
|
@@ -10971,10 +10942,10 @@ function (_Component) {
|
|
|
10971
10942
|
|
|
10972
10943
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10973
10944
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
10974
|
-
return React__default
|
|
10945
|
+
return React__default.createElement("li", {
|
|
10975
10946
|
key: item.key || item.label,
|
|
10976
10947
|
className: _this.props.cx('item', item.isRefined && 'item--selected', item.noRefinement && 'item--noRefinement', itemHasChildren && 'item--parent')
|
|
10977
|
-
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default
|
|
10948
|
+
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default.createElement("ul", {
|
|
10978
10949
|
className: _this.props.cx('list', 'list--child')
|
|
10979
10950
|
}, item.items.slice(0, _this.getLimit()).map(function (child) {
|
|
10980
10951
|
return _this.renderItem(child, item);
|
|
@@ -11002,7 +10973,7 @@ function (_Component) {
|
|
|
11002
10973
|
return null;
|
|
11003
10974
|
}
|
|
11004
10975
|
|
|
11005
|
-
return React__default
|
|
10976
|
+
return React__default.createElement("button", {
|
|
11006
10977
|
disabled: disabled,
|
|
11007
10978
|
className: cx('showMore', disabled && 'showMore--disabled'),
|
|
11008
10979
|
onClick: this.onShowMoreClick
|
|
@@ -11020,12 +10991,12 @@ function (_Component) {
|
|
|
11020
10991
|
translate = _this$props3.translate,
|
|
11021
10992
|
items = _this$props3.items,
|
|
11022
10993
|
selectItem = _this$props3.selectItem;
|
|
11023
|
-
var noResults = items.length === 0 && this.state.query !== '' ? React__default
|
|
10994
|
+
var noResults = items.length === 0 && this.state.query !== '' ? React__default.createElement("div", {
|
|
11024
10995
|
className: cx('noResults')
|
|
11025
10996
|
}, translate('noResults')) : null;
|
|
11026
|
-
return React__default
|
|
10997
|
+
return React__default.createElement("div", {
|
|
11027
10998
|
className: cx('searchBox')
|
|
11028
|
-
}, React__default
|
|
10999
|
+
}, React__default.createElement(SearchBox$1, {
|
|
11029
11000
|
currentRefinement: this.state.query,
|
|
11030
11001
|
refine: function refine(value) {
|
|
11031
11002
|
_this2.setState({
|
|
@@ -11058,10 +11029,10 @@ function (_Component) {
|
|
|
11058
11029
|
searchable = _this$props4.searchable,
|
|
11059
11030
|
canRefine = _this$props4.canRefine;
|
|
11060
11031
|
var searchBox = searchable ? this.renderSearchBox() : null;
|
|
11061
|
-
var rootClassName = index.classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
11032
|
+
var rootClassName = index$5.classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
11062
11033
|
|
|
11063
11034
|
if (items.length === 0) {
|
|
11064
|
-
return React__default
|
|
11035
|
+
return React__default.createElement("div", {
|
|
11065
11036
|
className: rootClassName
|
|
11066
11037
|
}, searchBox);
|
|
11067
11038
|
} // Always limit the number of items we show on screen, since the actual
|
|
@@ -11069,9 +11040,9 @@ function (_Component) {
|
|
|
11069
11040
|
// option.
|
|
11070
11041
|
|
|
11071
11042
|
|
|
11072
|
-
return React__default
|
|
11043
|
+
return React__default.createElement("div", {
|
|
11073
11044
|
className: rootClassName
|
|
11074
|
-
}, searchBox, React__default
|
|
11045
|
+
}, searchBox, React__default.createElement("ul", {
|
|
11075
11046
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
11076
11047
|
}, items.slice(0, this.getLimit()).map(function (item) {
|
|
11077
11048
|
return _this3.renderItem(item, _this3.resetQuery);
|
|
@@ -11083,21 +11054,21 @@ function (_Component) {
|
|
|
11083
11054
|
}(React.Component);
|
|
11084
11055
|
|
|
11085
11056
|
_defineProperty(List, "propTypes", {
|
|
11086
|
-
cx: PropTypes__default
|
|
11057
|
+
cx: PropTypes__default.func.isRequired,
|
|
11087
11058
|
// Only required with showMore.
|
|
11088
|
-
translate: PropTypes__default
|
|
11059
|
+
translate: PropTypes__default.func,
|
|
11089
11060
|
items: itemsPropType$1,
|
|
11090
|
-
renderItem: PropTypes__default
|
|
11091
|
-
selectItem: PropTypes__default
|
|
11092
|
-
className: PropTypes__default
|
|
11093
|
-
showMore: PropTypes__default
|
|
11094
|
-
limit: PropTypes__default
|
|
11095
|
-
showMoreLimit: PropTypes__default
|
|
11096
|
-
show: PropTypes__default
|
|
11097
|
-
searchForItems: PropTypes__default
|
|
11098
|
-
searchable: PropTypes__default
|
|
11099
|
-
isFromSearch: PropTypes__default
|
|
11100
|
-
canRefine: PropTypes__default
|
|
11061
|
+
renderItem: PropTypes__default.func.isRequired,
|
|
11062
|
+
selectItem: PropTypes__default.func,
|
|
11063
|
+
className: PropTypes__default.string,
|
|
11064
|
+
showMore: PropTypes__default.bool,
|
|
11065
|
+
limit: PropTypes__default.number,
|
|
11066
|
+
showMoreLimit: PropTypes__default.number,
|
|
11067
|
+
show: PropTypes__default.func,
|
|
11068
|
+
searchForItems: PropTypes__default.func,
|
|
11069
|
+
searchable: PropTypes__default.bool,
|
|
11070
|
+
isFromSearch: PropTypes__default.bool,
|
|
11071
|
+
canRefine: PropTypes__default.bool
|
|
11101
11072
|
});
|
|
11102
11073
|
|
|
11103
11074
|
_defineProperty(List, "defaultProps", {
|
|
@@ -11106,10 +11077,10 @@ _defineProperty(List, "defaultProps", {
|
|
|
11106
11077
|
});
|
|
11107
11078
|
|
|
11108
11079
|
var cx$5 = createClassNames('HierarchicalMenu');
|
|
11109
|
-
var itemsPropType$2 = PropTypes__default
|
|
11110
|
-
label: PropTypes__default
|
|
11111
|
-
value: PropTypes__default
|
|
11112
|
-
count: PropTypes__default
|
|
11080
|
+
var itemsPropType$2 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11081
|
+
label: PropTypes__default.string.isRequired,
|
|
11082
|
+
value: PropTypes__default.string,
|
|
11083
|
+
count: PropTypes__default.number.isRequired,
|
|
11113
11084
|
items: function items() {
|
|
11114
11085
|
return itemsPropType$2.apply(void 0, arguments);
|
|
11115
11086
|
}
|
|
@@ -11137,15 +11108,15 @@ function (_Component) {
|
|
|
11137
11108
|
var _this$props = _this.props,
|
|
11138
11109
|
createURL = _this$props.createURL,
|
|
11139
11110
|
refine = _this$props.refine;
|
|
11140
|
-
return React__default
|
|
11111
|
+
return React__default.createElement(Link, {
|
|
11141
11112
|
className: cx$5('link'),
|
|
11142
11113
|
onClick: function onClick() {
|
|
11143
11114
|
return refine(item.value);
|
|
11144
11115
|
},
|
|
11145
11116
|
href: createURL(item.value)
|
|
11146
|
-
}, React__default
|
|
11117
|
+
}, React__default.createElement("span", {
|
|
11147
11118
|
className: cx$5('label')
|
|
11148
|
-
}, item.label), ' ', React__default
|
|
11119
|
+
}, item.label), ' ', React__default.createElement("span", {
|
|
11149
11120
|
className: cx$5('count')
|
|
11150
11121
|
}, item.count));
|
|
11151
11122
|
});
|
|
@@ -11164,7 +11135,7 @@ function (_Component) {
|
|
|
11164
11135
|
showMoreLimit = _this$props2.showMoreLimit,
|
|
11165
11136
|
canRefine = _this$props2.canRefine,
|
|
11166
11137
|
className = _this$props2.className;
|
|
11167
|
-
return React__default
|
|
11138
|
+
return React__default.createElement(List, {
|
|
11168
11139
|
renderItem: this.renderItem,
|
|
11169
11140
|
cx: cx$5,
|
|
11170
11141
|
translate: translate,
|
|
@@ -11182,16 +11153,16 @@ function (_Component) {
|
|
|
11182
11153
|
}(React.Component);
|
|
11183
11154
|
|
|
11184
11155
|
_defineProperty(HierarchicalMenu, "propTypes", {
|
|
11185
|
-
translate: PropTypes__default
|
|
11186
|
-
refine: PropTypes__default
|
|
11187
|
-
createURL: PropTypes__default
|
|
11188
|
-
canRefine: PropTypes__default
|
|
11156
|
+
translate: PropTypes__default.func.isRequired,
|
|
11157
|
+
refine: PropTypes__default.func.isRequired,
|
|
11158
|
+
createURL: PropTypes__default.func.isRequired,
|
|
11159
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
11189
11160
|
items: itemsPropType$2,
|
|
11190
|
-
showMore: PropTypes__default
|
|
11191
|
-
className: PropTypes__default
|
|
11192
|
-
limit: PropTypes__default
|
|
11193
|
-
showMoreLimit: PropTypes__default
|
|
11194
|
-
transformItems: PropTypes__default
|
|
11161
|
+
showMore: PropTypes__default.bool,
|
|
11162
|
+
className: PropTypes__default.string,
|
|
11163
|
+
limit: PropTypes__default.number,
|
|
11164
|
+
showMoreLimit: PropTypes__default.number,
|
|
11165
|
+
transformItems: PropTypes__default.func
|
|
11195
11166
|
});
|
|
11196
11167
|
|
|
11197
11168
|
_defineProperty(HierarchicalMenu, "defaultProps", {
|
|
@@ -11295,7 +11266,7 @@ var HierarchicalMenu$1 = translatable({
|
|
|
11295
11266
|
*/
|
|
11296
11267
|
|
|
11297
11268
|
var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
|
|
11298
|
-
return React__default
|
|
11269
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(HierarchicalMenu$1, props));
|
|
11299
11270
|
};
|
|
11300
11271
|
|
|
11301
11272
|
connectHierarchicalMenu(HierarchicalMenuWidget);
|
|
@@ -11308,16 +11279,16 @@ var Highlight = function Highlight(_ref) {
|
|
|
11308
11279
|
nonHighlightedTagName = _ref.nonHighlightedTagName;
|
|
11309
11280
|
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
11310
11281
|
var className = isHighlighted ? 'highlighted' : 'nonHighlighted';
|
|
11311
|
-
return React__default
|
|
11282
|
+
return React__default.createElement(TagName, {
|
|
11312
11283
|
className: cx(className)
|
|
11313
11284
|
}, value);
|
|
11314
11285
|
};
|
|
11315
11286
|
Highlight.propTypes = {
|
|
11316
|
-
cx: PropTypes__default
|
|
11317
|
-
value: PropTypes__default
|
|
11318
|
-
isHighlighted: PropTypes__default
|
|
11319
|
-
highlightedTagName: PropTypes__default
|
|
11320
|
-
nonHighlightedTagName: PropTypes__default
|
|
11287
|
+
cx: PropTypes__default.func.isRequired,
|
|
11288
|
+
value: PropTypes__default.string.isRequired,
|
|
11289
|
+
isHighlighted: PropTypes__default.bool.isRequired,
|
|
11290
|
+
highlightedTagName: PropTypes__default.string.isRequired,
|
|
11291
|
+
nonHighlightedTagName: PropTypes__default.string.isRequired
|
|
11321
11292
|
};
|
|
11322
11293
|
|
|
11323
11294
|
var Highlighter = function Highlighter(_ref2) {
|
|
@@ -11335,15 +11306,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11335
11306
|
attribute: attribute,
|
|
11336
11307
|
highlightProperty: highlightProperty
|
|
11337
11308
|
});
|
|
11338
|
-
return React__default
|
|
11339
|
-
className: index.classnames(cx(''), className)
|
|
11309
|
+
return React__default.createElement("span", {
|
|
11310
|
+
className: index$5.classnames(cx(''), className)
|
|
11340
11311
|
}, parsedHighlightedValue.map(function (item, i) {
|
|
11341
11312
|
if (Array.isArray(item)) {
|
|
11342
11313
|
var isLast = i === parsedHighlightedValue.length - 1;
|
|
11343
|
-
return React__default
|
|
11314
|
+
return React__default.createElement("span", {
|
|
11344
11315
|
key: i
|
|
11345
11316
|
}, item.map(function (element, index) {
|
|
11346
|
-
return React__default
|
|
11317
|
+
return React__default.createElement(Highlight, {
|
|
11347
11318
|
cx: cx,
|
|
11348
11319
|
key: index,
|
|
11349
11320
|
value: element.value,
|
|
@@ -11351,12 +11322,12 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11351
11322
|
nonHighlightedTagName: nonHighlightedTagName,
|
|
11352
11323
|
isHighlighted: element.isHighlighted
|
|
11353
11324
|
});
|
|
11354
|
-
}), !isLast && React__default
|
|
11325
|
+
}), !isLast && React__default.createElement("span", {
|
|
11355
11326
|
className: cx('separator')
|
|
11356
11327
|
}, separator));
|
|
11357
11328
|
}
|
|
11358
11329
|
|
|
11359
|
-
return React__default
|
|
11330
|
+
return React__default.createElement(Highlight, {
|
|
11360
11331
|
cx: cx,
|
|
11361
11332
|
key: i,
|
|
11362
11333
|
value: item.value,
|
|
@@ -11368,15 +11339,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11368
11339
|
};
|
|
11369
11340
|
|
|
11370
11341
|
Highlighter.propTypes = {
|
|
11371
|
-
cx: PropTypes__default
|
|
11372
|
-
hit: PropTypes__default
|
|
11373
|
-
attribute: PropTypes__default
|
|
11374
|
-
highlight: PropTypes__default
|
|
11375
|
-
highlightProperty: PropTypes__default
|
|
11376
|
-
tagName: PropTypes__default
|
|
11377
|
-
nonHighlightedTagName: PropTypes__default
|
|
11378
|
-
className: PropTypes__default
|
|
11379
|
-
separator: PropTypes__default
|
|
11342
|
+
cx: PropTypes__default.func.isRequired,
|
|
11343
|
+
hit: PropTypes__default.object.isRequired,
|
|
11344
|
+
attribute: PropTypes__default.oneOfType([PropTypes__default.arrayOf(PropTypes__default.string), PropTypes__default.string]).isRequired,
|
|
11345
|
+
highlight: PropTypes__default.func.isRequired,
|
|
11346
|
+
highlightProperty: PropTypes__default.string.isRequired,
|
|
11347
|
+
tagName: PropTypes__default.string,
|
|
11348
|
+
nonHighlightedTagName: PropTypes__default.string,
|
|
11349
|
+
className: PropTypes__default.string,
|
|
11350
|
+
separator: PropTypes__default.node
|
|
11380
11351
|
};
|
|
11381
11352
|
Highlighter.defaultProps = {
|
|
11382
11353
|
tagName: 'em',
|
|
@@ -11388,7 +11359,7 @@ Highlighter.defaultProps = {
|
|
|
11388
11359
|
var cx$6 = createClassNames('Highlight');
|
|
11389
11360
|
|
|
11390
11361
|
var Highlight$1 = function Highlight(props) {
|
|
11391
|
-
return React__default
|
|
11362
|
+
return React__default.createElement(Highlighter, index$5._extends({}, props, {
|
|
11392
11363
|
highlightProperty: "_highlightResult",
|
|
11393
11364
|
cx: cx$6
|
|
11394
11365
|
}));
|
|
@@ -11440,7 +11411,7 @@ var Highlight$2 = connectHighlight(Highlight$1);
|
|
|
11440
11411
|
var cx$7 = createClassNames('Hits');
|
|
11441
11412
|
|
|
11442
11413
|
var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
11443
|
-
return React__default
|
|
11414
|
+
return React__default.createElement("div", {
|
|
11444
11415
|
style: {
|
|
11445
11416
|
borderBottom: '1px solid #bbb',
|
|
11446
11417
|
paddingBottom: '5px',
|
|
@@ -11456,27 +11427,27 @@ var Hits = function Hits(_ref) {
|
|
|
11456
11427
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
11457
11428
|
_ref$hitComponent = _ref.hitComponent,
|
|
11458
11429
|
HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
|
|
11459
|
-
return React__default
|
|
11460
|
-
className: index.classnames(cx$7(''), className)
|
|
11461
|
-
}, React__default
|
|
11430
|
+
return React__default.createElement("div", {
|
|
11431
|
+
className: index$5.classnames(cx$7(''), className)
|
|
11432
|
+
}, React__default.createElement("ul", {
|
|
11462
11433
|
className: cx$7('list')
|
|
11463
11434
|
}, hits.map(function (hit) {
|
|
11464
|
-
return React__default
|
|
11435
|
+
return React__default.createElement("li", {
|
|
11465
11436
|
className: cx$7('item'),
|
|
11466
11437
|
key: hit.objectID
|
|
11467
|
-
}, React__default
|
|
11438
|
+
}, React__default.createElement(HitComponent, {
|
|
11468
11439
|
hit: hit
|
|
11469
11440
|
}));
|
|
11470
11441
|
})));
|
|
11471
11442
|
};
|
|
11472
11443
|
|
|
11473
|
-
var HitPropTypes = PropTypes__default
|
|
11474
|
-
objectID: PropTypes__default
|
|
11444
|
+
var HitPropTypes = PropTypes__default.shape({
|
|
11445
|
+
objectID: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired
|
|
11475
11446
|
});
|
|
11476
11447
|
Hits.propTypes = {
|
|
11477
|
-
hits: PropTypes__default
|
|
11478
|
-
className: PropTypes__default
|
|
11479
|
-
hitComponent: PropTypes__default
|
|
11448
|
+
hits: PropTypes__default.arrayOf(HitPropTypes.isRequired).isRequired,
|
|
11449
|
+
className: PropTypes__default.string,
|
|
11450
|
+
hitComponent: PropTypes__default.func
|
|
11480
11451
|
};
|
|
11481
11452
|
|
|
11482
11453
|
/**
|
|
@@ -11546,12 +11517,12 @@ function (_Component) {
|
|
|
11546
11517
|
cx = _this$props.cx,
|
|
11547
11518
|
items = _this$props.items,
|
|
11548
11519
|
selectedItem = _this$props.selectedItem;
|
|
11549
|
-
return React__default
|
|
11520
|
+
return React__default.createElement("select", {
|
|
11550
11521
|
className: cx('select'),
|
|
11551
11522
|
value: selectedItem,
|
|
11552
11523
|
onChange: this.onChange
|
|
11553
11524
|
}, items.map(function (item) {
|
|
11554
|
-
return React__default
|
|
11525
|
+
return React__default.createElement("option", {
|
|
11555
11526
|
className: cx('option'),
|
|
11556
11527
|
key: item.key === undefined ? item.value : item.key,
|
|
11557
11528
|
disabled: item.disabled,
|
|
@@ -11565,15 +11536,15 @@ function (_Component) {
|
|
|
11565
11536
|
}(React.Component);
|
|
11566
11537
|
|
|
11567
11538
|
_defineProperty(Select, "propTypes", {
|
|
11568
|
-
cx: PropTypes__default
|
|
11569
|
-
onSelect: PropTypes__default
|
|
11570
|
-
items: PropTypes__default
|
|
11571
|
-
value: PropTypes__default
|
|
11572
|
-
key: PropTypes__default
|
|
11573
|
-
label: PropTypes__default
|
|
11574
|
-
disabled: PropTypes__default
|
|
11539
|
+
cx: PropTypes__default.func.isRequired,
|
|
11540
|
+
onSelect: PropTypes__default.func.isRequired,
|
|
11541
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11542
|
+
value: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired,
|
|
11543
|
+
key: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]),
|
|
11544
|
+
label: PropTypes__default.string,
|
|
11545
|
+
disabled: PropTypes__default.bool
|
|
11575
11546
|
})).isRequired,
|
|
11576
|
-
selectedItem: PropTypes__default
|
|
11547
|
+
selectedItem: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired
|
|
11577
11548
|
});
|
|
11578
11549
|
|
|
11579
11550
|
var cx$8 = createClassNames('HitsPerPage');
|
|
@@ -11597,9 +11568,9 @@ function (_Component) {
|
|
|
11597
11568
|
currentRefinement = _this$props.currentRefinement,
|
|
11598
11569
|
refine = _this$props.refine,
|
|
11599
11570
|
className = _this$props.className;
|
|
11600
|
-
return React__default
|
|
11601
|
-
className: index.classnames(cx$8(''), className)
|
|
11602
|
-
}, React__default
|
|
11571
|
+
return React__default.createElement("div", {
|
|
11572
|
+
className: index$5.classnames(cx$8(''), className)
|
|
11573
|
+
}, React__default.createElement(Select, {
|
|
11603
11574
|
onSelect: refine,
|
|
11604
11575
|
selectedItem: currentRefinement,
|
|
11605
11576
|
items: items,
|
|
@@ -11612,13 +11583,13 @@ function (_Component) {
|
|
|
11612
11583
|
}(React.Component);
|
|
11613
11584
|
|
|
11614
11585
|
_defineProperty(HitsPerPage, "propTypes", {
|
|
11615
|
-
items: PropTypes__default
|
|
11616
|
-
value: PropTypes__default
|
|
11617
|
-
label: PropTypes__default
|
|
11586
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11587
|
+
value: PropTypes__default.number.isRequired,
|
|
11588
|
+
label: PropTypes__default.string
|
|
11618
11589
|
})).isRequired,
|
|
11619
|
-
currentRefinement: PropTypes__default
|
|
11620
|
-
refine: PropTypes__default
|
|
11621
|
-
className: PropTypes__default
|
|
11590
|
+
currentRefinement: PropTypes__default.number.isRequired,
|
|
11591
|
+
refine: PropTypes__default.func.isRequired,
|
|
11592
|
+
className: PropTypes__default.string
|
|
11622
11593
|
});
|
|
11623
11594
|
|
|
11624
11595
|
_defineProperty(HitsPerPage, "defaultProps", {
|
|
@@ -11695,24 +11666,24 @@ function (_Component) {
|
|
|
11695
11666
|
refineNext = _this$props.refineNext,
|
|
11696
11667
|
translate = _this$props.translate,
|
|
11697
11668
|
className = _this$props.className;
|
|
11698
|
-
return React__default
|
|
11699
|
-
className: index.classnames(cx$9(''), className)
|
|
11700
|
-
}, showPrevious && React__default
|
|
11669
|
+
return React__default.createElement("div", {
|
|
11670
|
+
className: index$5.classnames(cx$9(''), className)
|
|
11671
|
+
}, showPrevious && React__default.createElement("button", {
|
|
11701
11672
|
className: cx$9('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
|
|
11702
11673
|
onClick: function onClick() {
|
|
11703
11674
|
return refinePrevious();
|
|
11704
11675
|
},
|
|
11705
11676
|
disabled: !hasPrevious
|
|
11706
|
-
}, translate('loadPrevious')), React__default
|
|
11677
|
+
}, translate('loadPrevious')), React__default.createElement("ul", {
|
|
11707
11678
|
className: cx$9('list')
|
|
11708
11679
|
}, hits.map(function (hit) {
|
|
11709
|
-
return React__default
|
|
11680
|
+
return React__default.createElement("li", {
|
|
11710
11681
|
key: hit.objectID,
|
|
11711
11682
|
className: cx$9('item')
|
|
11712
|
-
}, React__default
|
|
11683
|
+
}, React__default.createElement(HitComponent, {
|
|
11713
11684
|
hit: hit
|
|
11714
11685
|
}));
|
|
11715
|
-
})), React__default
|
|
11686
|
+
})), React__default.createElement("button", {
|
|
11716
11687
|
className: cx$9('loadMore', !hasMore && 'loadMore--disabled'),
|
|
11717
11688
|
onClick: function onClick() {
|
|
11718
11689
|
return refineNext();
|
|
@@ -11726,21 +11697,21 @@ function (_Component) {
|
|
|
11726
11697
|
}(React.Component);
|
|
11727
11698
|
|
|
11728
11699
|
InfiniteHits.propTypes = {
|
|
11729
|
-
hits: PropTypes__default
|
|
11730
|
-
showPrevious: PropTypes__default
|
|
11731
|
-
hasPrevious: PropTypes__default
|
|
11732
|
-
hasMore: PropTypes__default
|
|
11733
|
-
refinePrevious: PropTypes__default
|
|
11734
|
-
refineNext: PropTypes__default
|
|
11735
|
-
translate: PropTypes__default
|
|
11736
|
-
className: PropTypes__default
|
|
11737
|
-
hitComponent: PropTypes__default
|
|
11700
|
+
hits: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
11701
|
+
showPrevious: PropTypes__default.bool.isRequired,
|
|
11702
|
+
hasPrevious: PropTypes__default.bool.isRequired,
|
|
11703
|
+
hasMore: PropTypes__default.bool.isRequired,
|
|
11704
|
+
refinePrevious: PropTypes__default.func.isRequired,
|
|
11705
|
+
refineNext: PropTypes__default.func.isRequired,
|
|
11706
|
+
translate: PropTypes__default.func.isRequired,
|
|
11707
|
+
className: PropTypes__default.string,
|
|
11708
|
+
hitComponent: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.func])
|
|
11738
11709
|
};
|
|
11739
11710
|
InfiniteHits.defaultProps = {
|
|
11740
11711
|
className: '',
|
|
11741
11712
|
showPrevious: false,
|
|
11742
11713
|
hitComponent: function hitComponent(hit) {
|
|
11743
|
-
return React__default
|
|
11714
|
+
return React__default.createElement("div", {
|
|
11744
11715
|
style: {
|
|
11745
11716
|
borderBottom: '1px solid #bbb',
|
|
11746
11717
|
paddingBottom: '5px',
|
|
@@ -11816,19 +11787,19 @@ function (_Component) {
|
|
|
11816
11787
|
|
|
11817
11788
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11818
11789
|
var createURL = _this.props.createURL;
|
|
11819
|
-
var label = _this.props.isFromSearch ? React__default
|
|
11790
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
11820
11791
|
attribute: "label",
|
|
11821
11792
|
hit: item
|
|
11822
11793
|
}) : item.label;
|
|
11823
|
-
return React__default
|
|
11794
|
+
return React__default.createElement(Link, {
|
|
11824
11795
|
className: cx$a('link'),
|
|
11825
11796
|
onClick: function onClick() {
|
|
11826
11797
|
return _this.selectItem(item, resetQuery);
|
|
11827
11798
|
},
|
|
11828
11799
|
href: createURL(item.value)
|
|
11829
|
-
}, React__default
|
|
11800
|
+
}, React__default.createElement("span", {
|
|
11830
11801
|
className: cx$a('label')
|
|
11831
|
-
}, label), ' ', React__default
|
|
11802
|
+
}, label), ' ', React__default.createElement("span", {
|
|
11832
11803
|
className: cx$a('count')
|
|
11833
11804
|
}, item.count));
|
|
11834
11805
|
});
|
|
@@ -11856,7 +11827,7 @@ function (_Component) {
|
|
|
11856
11827
|
searchable = _this$props.searchable,
|
|
11857
11828
|
canRefine = _this$props.canRefine,
|
|
11858
11829
|
className = _this$props.className;
|
|
11859
|
-
return React__default
|
|
11830
|
+
return React__default.createElement(List, {
|
|
11860
11831
|
renderItem: this.renderItem,
|
|
11861
11832
|
selectItem: this.selectItem,
|
|
11862
11833
|
cx: cx$a,
|
|
@@ -11878,24 +11849,24 @@ function (_Component) {
|
|
|
11878
11849
|
}(React.Component);
|
|
11879
11850
|
|
|
11880
11851
|
_defineProperty(Menu, "propTypes", {
|
|
11881
|
-
translate: PropTypes__default
|
|
11882
|
-
refine: PropTypes__default
|
|
11883
|
-
searchForItems: PropTypes__default
|
|
11884
|
-
searchable: PropTypes__default
|
|
11885
|
-
createURL: PropTypes__default
|
|
11886
|
-
items: PropTypes__default
|
|
11887
|
-
label: PropTypes__default
|
|
11888
|
-
value: PropTypes__default
|
|
11889
|
-
count: PropTypes__default
|
|
11890
|
-
isRefined: PropTypes__default
|
|
11852
|
+
translate: PropTypes__default.func.isRequired,
|
|
11853
|
+
refine: PropTypes__default.func.isRequired,
|
|
11854
|
+
searchForItems: PropTypes__default.func.isRequired,
|
|
11855
|
+
searchable: PropTypes__default.bool,
|
|
11856
|
+
createURL: PropTypes__default.func.isRequired,
|
|
11857
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11858
|
+
label: PropTypes__default.string.isRequired,
|
|
11859
|
+
value: PropTypes__default.string.isRequired,
|
|
11860
|
+
count: PropTypes__default.number.isRequired,
|
|
11861
|
+
isRefined: PropTypes__default.bool.isRequired
|
|
11891
11862
|
})),
|
|
11892
|
-
isFromSearch: PropTypes__default
|
|
11893
|
-
canRefine: PropTypes__default
|
|
11894
|
-
showMore: PropTypes__default
|
|
11895
|
-
limit: PropTypes__default
|
|
11896
|
-
showMoreLimit: PropTypes__default
|
|
11897
|
-
transformItems: PropTypes__default
|
|
11898
|
-
className: PropTypes__default
|
|
11863
|
+
isFromSearch: PropTypes__default.bool.isRequired,
|
|
11864
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
11865
|
+
showMore: PropTypes__default.bool,
|
|
11866
|
+
limit: PropTypes__default.number,
|
|
11867
|
+
showMoreLimit: PropTypes__default.number,
|
|
11868
|
+
transformItems: PropTypes__default.func,
|
|
11869
|
+
className: PropTypes__default.string
|
|
11899
11870
|
});
|
|
11900
11871
|
|
|
11901
11872
|
_defineProperty(Menu, "defaultProps", {
|
|
@@ -11964,7 +11935,7 @@ var Menu$1 = translatable({
|
|
|
11964
11935
|
*/
|
|
11965
11936
|
|
|
11966
11937
|
var MenuWidget = function MenuWidget(props) {
|
|
11967
|
-
return React__default
|
|
11938
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Menu$1, props));
|
|
11968
11939
|
};
|
|
11969
11940
|
|
|
11970
11941
|
connectMenu(MenuWidget);
|
|
@@ -12006,17 +11977,17 @@ function (_Component) {
|
|
|
12006
11977
|
canRefine = _this$props.canRefine,
|
|
12007
11978
|
translate = _this$props.translate,
|
|
12008
11979
|
className = _this$props.className;
|
|
12009
|
-
return React__default
|
|
12010
|
-
className: index.classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
12011
|
-
}, React__default
|
|
11980
|
+
return React__default.createElement("div", {
|
|
11981
|
+
className: index$5.classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
11982
|
+
}, React__default.createElement("select", {
|
|
12012
11983
|
value: this.selectedValue,
|
|
12013
11984
|
onChange: this.handleSelectChange,
|
|
12014
11985
|
className: cx$b('select')
|
|
12015
|
-
}, React__default
|
|
11986
|
+
}, React__default.createElement("option", {
|
|
12016
11987
|
value: "ais__see__all__option",
|
|
12017
11988
|
className: cx$b('option')
|
|
12018
11989
|
}, translate('seeAllOption')), items.map(function (item) {
|
|
12019
|
-
return React__default
|
|
11990
|
+
return React__default.createElement("option", {
|
|
12020
11991
|
key: item.value,
|
|
12021
11992
|
value: item.value,
|
|
12022
11993
|
className: cx$b('option')
|
|
@@ -12041,16 +12012,16 @@ function (_Component) {
|
|
|
12041
12012
|
}(React.Component);
|
|
12042
12013
|
|
|
12043
12014
|
_defineProperty(MenuSelect, "propTypes", {
|
|
12044
|
-
items: PropTypes__default
|
|
12045
|
-
label: PropTypes__default
|
|
12046
|
-
value: PropTypes__default
|
|
12047
|
-
count: PropTypes__default
|
|
12048
|
-
isRefined: PropTypes__default
|
|
12015
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12016
|
+
label: PropTypes__default.string.isRequired,
|
|
12017
|
+
value: PropTypes__default.string.isRequired,
|
|
12018
|
+
count: PropTypes__default.oneOfType([PropTypes__default.number.isRequired, PropTypes__default.string.isRequired]),
|
|
12019
|
+
isRefined: PropTypes__default.bool.isRequired
|
|
12049
12020
|
})).isRequired,
|
|
12050
|
-
canRefine: PropTypes__default
|
|
12051
|
-
refine: PropTypes__default
|
|
12052
|
-
translate: PropTypes__default
|
|
12053
|
-
className: PropTypes__default
|
|
12021
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12022
|
+
refine: PropTypes__default.func.isRequired,
|
|
12023
|
+
translate: PropTypes__default.func.isRequired,
|
|
12024
|
+
className: PropTypes__default.string
|
|
12054
12025
|
});
|
|
12055
12026
|
|
|
12056
12027
|
_defineProperty(MenuSelect, "defaultProps", {
|
|
@@ -12098,7 +12069,7 @@ var MenuSelect$1 = translatable({
|
|
|
12098
12069
|
*/
|
|
12099
12070
|
|
|
12100
12071
|
var MenuSelectWidget = function MenuSelectWidget(props) {
|
|
12101
|
-
return React__default
|
|
12072
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(MenuSelect$1, props));
|
|
12102
12073
|
};
|
|
12103
12074
|
|
|
12104
12075
|
connectMenu(MenuSelectWidget);
|
|
@@ -12127,9 +12098,9 @@ function (_Component) {
|
|
|
12127
12098
|
var _this$props = _this.props,
|
|
12128
12099
|
refine = _this$props.refine,
|
|
12129
12100
|
translate = _this$props.translate;
|
|
12130
|
-
return React__default
|
|
12101
|
+
return React__default.createElement("label", {
|
|
12131
12102
|
className: cx$c('label')
|
|
12132
|
-
}, React__default
|
|
12103
|
+
}, React__default.createElement("input", {
|
|
12133
12104
|
className: cx$c('radio'),
|
|
12134
12105
|
type: "radio",
|
|
12135
12106
|
checked: item.isRefined,
|
|
@@ -12137,7 +12108,7 @@ function (_Component) {
|
|
|
12137
12108
|
onChange: function onChange() {
|
|
12138
12109
|
return refine(item.value);
|
|
12139
12110
|
}
|
|
12140
|
-
}), React__default
|
|
12111
|
+
}), React__default.createElement("span", {
|
|
12141
12112
|
className: cx$c('labelText')
|
|
12142
12113
|
}, item.value === '' ? translate('all') : item.label));
|
|
12143
12114
|
});
|
|
@@ -12152,7 +12123,7 @@ function (_Component) {
|
|
|
12152
12123
|
items = _this$props2.items,
|
|
12153
12124
|
canRefine = _this$props2.canRefine,
|
|
12154
12125
|
className = _this$props2.className;
|
|
12155
|
-
return React__default
|
|
12126
|
+
return React__default.createElement(List, {
|
|
12156
12127
|
renderItem: this.renderItem,
|
|
12157
12128
|
showMore: false,
|
|
12158
12129
|
canRefine: canRefine,
|
|
@@ -12171,16 +12142,16 @@ function (_Component) {
|
|
|
12171
12142
|
}(React.Component);
|
|
12172
12143
|
|
|
12173
12144
|
_defineProperty(NumericMenu, "propTypes", {
|
|
12174
|
-
items: PropTypes__default
|
|
12175
|
-
label: PropTypes__default
|
|
12176
|
-
value: PropTypes__default
|
|
12177
|
-
isRefined: PropTypes__default
|
|
12178
|
-
noRefinement: PropTypes__default
|
|
12145
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12146
|
+
label: PropTypes__default.node.isRequired,
|
|
12147
|
+
value: PropTypes__default.string.isRequired,
|
|
12148
|
+
isRefined: PropTypes__default.bool.isRequired,
|
|
12149
|
+
noRefinement: PropTypes__default.bool.isRequired
|
|
12179
12150
|
})).isRequired,
|
|
12180
|
-
canRefine: PropTypes__default
|
|
12181
|
-
refine: PropTypes__default
|
|
12182
|
-
translate: PropTypes__default
|
|
12183
|
-
className: PropTypes__default
|
|
12151
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12152
|
+
refine: PropTypes__default.func.isRequired,
|
|
12153
|
+
translate: PropTypes__default.func.isRequired,
|
|
12154
|
+
className: PropTypes__default.string
|
|
12184
12155
|
});
|
|
12185
12156
|
|
|
12186
12157
|
_defineProperty(NumericMenu, "defaultProps", {
|
|
@@ -12238,7 +12209,7 @@ var NumericMenu$1 = translatable({
|
|
|
12238
12209
|
*/
|
|
12239
12210
|
|
|
12240
12211
|
var NumericMenuWidget = function NumericMenuWidget(props) {
|
|
12241
|
-
return React__default
|
|
12212
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(NumericMenu$1, props));
|
|
12242
12213
|
};
|
|
12243
12214
|
|
|
12244
12215
|
connectNumericMenu(NumericMenuWidget);
|
|
@@ -12263,15 +12234,15 @@ function (_Component) {
|
|
|
12263
12234
|
items = _this$props.items,
|
|
12264
12235
|
onSelect = _this$props.onSelect,
|
|
12265
12236
|
canRefine = _this$props.canRefine;
|
|
12266
|
-
return React__default
|
|
12237
|
+
return React__default.createElement("ul", {
|
|
12267
12238
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
12268
12239
|
}, items.map(function (item) {
|
|
12269
|
-
return React__default
|
|
12240
|
+
return React__default.createElement("li", {
|
|
12270
12241
|
key: item.key === undefined ? item.value : item.key,
|
|
12271
12242
|
className: cx('item', item.selected && !item.disabled && 'item--selected', item.disabled && 'item--disabled', item.modifier)
|
|
12272
|
-
}, item.disabled ? React__default
|
|
12243
|
+
}, item.disabled ? React__default.createElement("span", {
|
|
12273
12244
|
className: cx('link')
|
|
12274
|
-
}, item.label === undefined ? item.value : item.label) : React__default
|
|
12245
|
+
}, item.label === undefined ? item.value : item.label) : React__default.createElement(Link, {
|
|
12275
12246
|
className: cx('link', item.selected && 'link--selected'),
|
|
12276
12247
|
"aria-label": item.ariaLabel,
|
|
12277
12248
|
href: createURL(item.value),
|
|
@@ -12287,18 +12258,18 @@ function (_Component) {
|
|
|
12287
12258
|
}(React.Component);
|
|
12288
12259
|
|
|
12289
12260
|
_defineProperty(LinkList, "propTypes", {
|
|
12290
|
-
cx: PropTypes__default
|
|
12291
|
-
createURL: PropTypes__default
|
|
12292
|
-
items: PropTypes__default
|
|
12293
|
-
value: PropTypes__default
|
|
12294
|
-
key: PropTypes__default
|
|
12295
|
-
label: PropTypes__default
|
|
12296
|
-
modifier: PropTypes__default
|
|
12297
|
-
ariaLabel: PropTypes__default
|
|
12298
|
-
disabled: PropTypes__default
|
|
12261
|
+
cx: PropTypes__default.func.isRequired,
|
|
12262
|
+
createURL: PropTypes__default.func.isRequired,
|
|
12263
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12264
|
+
value: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number, PropTypes__default.object]).isRequired,
|
|
12265
|
+
key: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]),
|
|
12266
|
+
label: PropTypes__default.node,
|
|
12267
|
+
modifier: PropTypes__default.string,
|
|
12268
|
+
ariaLabel: PropTypes__default.string,
|
|
12269
|
+
disabled: PropTypes__default.bool
|
|
12299
12270
|
})),
|
|
12300
|
-
onSelect: PropTypes__default
|
|
12301
|
-
canRefine: PropTypes__default
|
|
12271
|
+
onSelect: PropTypes__default.func.isRequired,
|
|
12272
|
+
canRefine: PropTypes__default.bool.isRequired
|
|
12302
12273
|
});
|
|
12303
12274
|
|
|
12304
12275
|
var cx$d = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
|
|
@@ -12443,9 +12414,9 @@ function (_Component) {
|
|
|
12443
12414
|
});
|
|
12444
12415
|
}
|
|
12445
12416
|
|
|
12446
|
-
return React__default
|
|
12447
|
-
className: index.classnames(cx$d('', !canRefine && '-noRefinement'), className)
|
|
12448
|
-
}, React__default
|
|
12417
|
+
return React__default.createElement("div", {
|
|
12418
|
+
className: index$5.classnames(cx$d('', !canRefine && '-noRefinement'), className)
|
|
12419
|
+
}, React__default.createElement(ListComponent, index$5._extends({}, otherProps, {
|
|
12449
12420
|
cx: cx$d,
|
|
12450
12421
|
items: items,
|
|
12451
12422
|
onSelect: refine,
|
|
@@ -12459,20 +12430,20 @@ function (_Component) {
|
|
|
12459
12430
|
}(React.Component);
|
|
12460
12431
|
|
|
12461
12432
|
_defineProperty(Pagination, "propTypes", {
|
|
12462
|
-
nbPages: PropTypes__default
|
|
12463
|
-
currentRefinement: PropTypes__default
|
|
12464
|
-
refine: PropTypes__default
|
|
12465
|
-
createURL: PropTypes__default
|
|
12466
|
-
canRefine: PropTypes__default
|
|
12467
|
-
translate: PropTypes__default
|
|
12468
|
-
listComponent: PropTypes__default
|
|
12469
|
-
showFirst: PropTypes__default
|
|
12470
|
-
showPrevious: PropTypes__default
|
|
12471
|
-
showNext: PropTypes__default
|
|
12472
|
-
showLast: PropTypes__default
|
|
12473
|
-
padding: PropTypes__default
|
|
12474
|
-
totalPages: PropTypes__default
|
|
12475
|
-
className: PropTypes__default
|
|
12433
|
+
nbPages: PropTypes__default.number.isRequired,
|
|
12434
|
+
currentRefinement: PropTypes__default.number.isRequired,
|
|
12435
|
+
refine: PropTypes__default.func.isRequired,
|
|
12436
|
+
createURL: PropTypes__default.func.isRequired,
|
|
12437
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12438
|
+
translate: PropTypes__default.func.isRequired,
|
|
12439
|
+
listComponent: PropTypes__default.func,
|
|
12440
|
+
showFirst: PropTypes__default.bool,
|
|
12441
|
+
showPrevious: PropTypes__default.bool,
|
|
12442
|
+
showNext: PropTypes__default.bool,
|
|
12443
|
+
showLast: PropTypes__default.bool,
|
|
12444
|
+
padding: PropTypes__default.number,
|
|
12445
|
+
totalPages: PropTypes__default.number,
|
|
12446
|
+
className: PropTypes__default.string
|
|
12476
12447
|
});
|
|
12477
12448
|
|
|
12478
12449
|
_defineProperty(Pagination, "defaultProps", {
|
|
@@ -12558,7 +12529,7 @@ var Pagination$1 = translatable({
|
|
|
12558
12529
|
*/
|
|
12559
12530
|
|
|
12560
12531
|
var PaginationWidget = function PaginationWidget(props) {
|
|
12561
|
-
return React__default
|
|
12532
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$1, props));
|
|
12562
12533
|
};
|
|
12563
12534
|
|
|
12564
12535
|
var Pagination$2 = connectPagination(PaginationWidget);
|
|
@@ -12567,14 +12538,14 @@ var cx$e = createClassNames('PoweredBy');
|
|
|
12567
12538
|
/* eslint-disable max-len */
|
|
12568
12539
|
|
|
12569
12540
|
var AlgoliaLogo = function AlgoliaLogo() {
|
|
12570
|
-
return React__default
|
|
12541
|
+
return React__default.createElement("svg", {
|
|
12571
12542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12572
12543
|
baseProfile: "basic",
|
|
12573
12544
|
viewBox: "0 0 1366 362",
|
|
12574
12545
|
width: "100",
|
|
12575
12546
|
height: "27",
|
|
12576
12547
|
className: cx$e('logo')
|
|
12577
|
-
}, React__default
|
|
12548
|
+
}, React__default.createElement("linearGradient", {
|
|
12578
12549
|
id: "g",
|
|
12579
12550
|
x1: "428.258",
|
|
12580
12551
|
x2: "434.145",
|
|
@@ -12582,19 +12553,19 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12582
12553
|
y2: "409.85",
|
|
12583
12554
|
gradientUnits: "userSpaceOnUse",
|
|
12584
12555
|
gradientTransform: "matrix(94.045 0 0 -94.072 -40381.527 38479.52)"
|
|
12585
|
-
}, React__default
|
|
12556
|
+
}, React__default.createElement("stop", {
|
|
12586
12557
|
offset: "0",
|
|
12587
12558
|
stopColor: "#00AEFF"
|
|
12588
|
-
}), React__default
|
|
12559
|
+
}), React__default.createElement("stop", {
|
|
12589
12560
|
offset: "1",
|
|
12590
12561
|
stopColor: "#3369E7"
|
|
12591
|
-
})), React__default
|
|
12562
|
+
})), React__default.createElement("path", {
|
|
12592
12563
|
d: "M61.8 15.4h242.8c23.9 0 43.4 19.4 43.4 43.4v242.9c0 23.9-19.4 43.4-43.4 43.4H61.8c-23.9 0-43.4-19.4-43.4-43.4v-243c0-23.9 19.4-43.3 43.4-43.3z",
|
|
12593
12564
|
fill: "url(#g)"
|
|
12594
|
-
}), React__default
|
|
12565
|
+
}), React__default.createElement("path", {
|
|
12595
12566
|
d: "M187 98.7c-51.4 0-93.1 41.7-93.1 93.2S135.6 285 187 285s93.1-41.7 93.1-93.2-41.6-93.1-93.1-93.1zm0 158.8c-36.2 0-65.6-29.4-65.6-65.6s29.4-65.6 65.6-65.6 65.6 29.4 65.6 65.6-29.3 65.6-65.6 65.6zm0-117.8v48.9c0 1.4 1.5 2.4 2.8 1.7l43.4-22.5c1-.5 1.3-1.7.8-2.7-9-15.8-25.7-26.6-45-27.3-1 0-2 .8-2 1.9zm-60.8-35.9l-5.7-5.7c-5.6-5.6-14.6-5.6-20.2 0l-6.8 6.8c-5.6 5.6-5.6 14.6 0 20.2l5.6 5.6c.9.9 2.2.7 3-.2 3.3-4.5 6.9-8.8 10.9-12.8 4.1-4.1 8.3-7.7 12.9-11 1-.6 1.1-2 .3-2.9zM217.5 89V77.7c0-7.9-6.4-14.3-14.3-14.3h-33.3c-7.9 0-14.3 6.4-14.3 14.3v11.6c0 1.3 1.2 2.2 2.5 1.9 9.3-2.7 19.1-4.1 29-4.1 9.5 0 18.9 1.3 28 3.8 1.2.3 2.4-.6 2.4-1.9z",
|
|
12596
12567
|
fill: "#FFFFFF"
|
|
12597
|
-
}), React__default
|
|
12568
|
+
}), React__default.createElement("path", {
|
|
12598
12569
|
d: "M842.5 267.6c0 26.7-6.8 46.2-20.5 58.6-13.7 12.4-34.6 18.6-62.8 18.6-10.3 0-31.7-2-48.8-5.8l6.3-31c14.3 3 33.2 3.8 43.1 3.8 15.7 0 26.9-3.2 33.6-9.6s10-15.9 10-28.5v-6.4c-3.9 1.9-9 3.8-15.3 5.8-6.3 1.9-13.6 2.9-21.8 2.9-10.8 0-20.6-1.7-29.5-5.1-8.9-3.4-16.6-8.4-22.9-15-6.3-6.6-11.3-14.9-14.8-24.8s-5.3-27.6-5.3-40.6c0-12.2 1.9-27.5 5.6-37.7 3.8-10.2 9.2-19 16.5-26.3 7.2-7.3 16-12.9 26.3-17s22.4-6.7 35.5-6.7c12.7 0 24.4 1.6 35.8 3.5 11.4 1.9 21.1 3.9 29 6.1v155.2zm-108.7-77.2c0 16.4 3.6 34.6 10.8 42.2 7.2 7.6 16.5 11.4 27.9 11.4 6.2 0 12.1-.9 17.6-2.6 5.5-1.7 9.9-3.7 13.4-6.1v-97.1c-2.8-.6-14.5-3-25.8-3.3-14.2-.4-25 5.4-32.6 14.7-7.5 9.3-11.3 25.6-11.3 40.8zm294.3 0c0 13.2-1.9 23.2-5.8 34.1s-9.4 20.2-16.5 27.9c-7.1 7.7-15.6 13.7-25.6 17.9s-25.4 6.6-33.1 6.6c-7.7-.1-23-2.3-32.9-6.6-9.9-4.3-18.4-10.2-25.5-17.9-7.1-7.7-12.6-17-16.6-27.9s-6-20.9-6-34.1c0-13.2 1.8-25.9 5.8-36.7 4-10.8 9.6-20 16.8-27.7s15.8-13.6 25.6-17.8c9.9-4.2 20.8-6.2 32.6-6.2s22.7 2.1 32.7 6.2c10 4.2 18.6 10.1 25.6 17.8 7.1 7.7 12.6 16.9 16.6 27.7 4.2 10.8 6.3 23.5 6.3 36.7zm-40 .1c0-16.9-3.7-31-10.9-40.8-7.2-9.9-17.3-14.8-30.2-14.8-12.9 0-23 4.9-30.2 14.8-7.2 9.9-10.7 23.9-10.7 40.8 0 17.1 3.6 28.6 10.8 38.5 7.2 10 17.3 14.9 30.2 14.9 12.9 0 23-5 30.2-14.9 7.2-10 10.8-21.4 10.8-38.5zm127.1 86.4c-64.1.3-64.1-51.8-64.1-60.1L1051 32l39.1-6.2v183.6c0 4.7 0 34.5 25.1 34.6v32.9zm68.9 0h-39.3V108.1l39.3-6.2v175zm-19.7-193.5c13.1 0 23.8-10.6 23.8-23.7S1177.6 36 1164.4 36s-23.8 10.6-23.8 23.7 10.7 23.7 23.8 23.7zm117.4 18.6c12.9 0 23.8 1.6 32.6 4.8 8.8 3.2 15.9 7.7 21.1 13.4s8.9 13.5 11.1 21.7c2.3 8.2 3.4 17.2 3.4 27.1v100.6c-6 1.3-15.1 2.8-27.3 4.6s-25.9 2.7-41.1 2.7c-10.1 0-19.4-1-27.7-2.9-8.4-1.9-15.5-5-21.5-9.3-5.9-4.3-10.5-9.8-13.9-16.6-3.3-6.8-5-16.4-5-26.4 0-9.6 1.9-15.7 5.6-22.3 3.8-6.6 8.9-12 15.3-16.2 6.5-4.2 13.9-7.2 22.4-9s17.4-2.7 26.6-2.7c4.3 0 8.8.3 13.6.8s9.8 1.4 15.2 2.7v-6.4c0-4.5-.5-8.8-1.6-12.8-1.1-4.1-3-7.6-5.6-10.7-2.7-3.1-6.2-5.5-10.6-7.2s-10-3-16.7-3c-9 0-17.2 1.1-24.7 2.4-7.5 1.3-13.7 2.8-18.4 4.5l-4.7-32.1c4.9-1.7 12.2-3.4 21.6-5.1s19.5-2.6 30.3-2.6zm3.3 141.9c12 0 20.9-.7 27.1-1.9v-39.8c-2.2-.6-5.3-1.3-9.4-1.9-4.1-.6-8.6-1-13.6-1-4.3 0-8.7.3-13.1 1-4.4.6-8.4 1.8-11.9 3.5s-6.4 4.1-8.5 7.2c-2.2 3.1-3.2 4.9-3.2 9.6 0 9.2 3.2 14.5 9 18 5.9 3.6 13.7 5.3 23.6 5.3zM512.9 103c12.9 0 23.8 1.6 32.6 4.8 8.8 3.2 15.9 7.7 21.1 13.4 5.3 5.8 8.9 13.5 11.1 21.7 2.3 8.2 3.4 17.2 3.4 27.1v100.6c-6 1.3-15.1 2.8-27.3 4.6-12.2 1.8-25.9 2.7-41.1 2.7-10.1 0-19.4-1-27.7-2.9-8.4-1.9-15.5-5-21.5-9.3-5.9-4.3-10.5-9.8-13.9-16.6-3.3-6.8-5-16.4-5-26.4 0-9.6 1.9-15.7 5.6-22.3 3.8-6.6 8.9-12 15.3-16.2 6.5-4.2 13.9-7.2 22.4-9s17.4-2.7 26.6-2.7c4.3 0 8.8.3 13.6.8 4.7.5 9.8 1.4 15.2 2.7v-6.4c0-4.5-.5-8.8-1.6-12.8-1.1-4.1-3-7.6-5.6-10.7-2.7-3.1-6.2-5.5-10.6-7.2-4.4-1.7-10-3-16.7-3-9 0-17.2 1.1-24.7 2.4-7.5 1.3-13.7 2.8-18.4 4.5l-4.7-32.1c4.9-1.7 12.2-3.4 21.6-5.1 9.4-1.8 19.5-2.6 30.3-2.6zm3.4 142c12 0 20.9-.7 27.1-1.9v-39.8c-2.2-.6-5.3-1.3-9.4-1.9-4.1-.6-8.6-1-13.6-1-4.3 0-8.7.3-13.1 1-4.4.6-8.4 1.8-11.9 3.5s-6.4 4.1-8.5 7.2c-2.2 3.1-3.2 4.9-3.2 9.6 0 9.2 3.2 14.5 9 18s13.7 5.3 23.6 5.3zm158.5 31.9c-64.1.3-64.1-51.8-64.1-60.1L610.6 32l39.1-6.2v183.6c0 4.7 0 34.5 25.1 34.6v32.9z",
|
|
12599
12570
|
fill: "#182359"
|
|
12600
12571
|
}));
|
|
@@ -12620,17 +12591,17 @@ function (_Component) {
|
|
|
12620
12591
|
url = _this$props.url,
|
|
12621
12592
|
translate = _this$props.translate,
|
|
12622
12593
|
className = _this$props.className;
|
|
12623
|
-
return React__default
|
|
12624
|
-
className: index.classnames(cx$e(''), className)
|
|
12625
|
-
}, React__default
|
|
12594
|
+
return React__default.createElement("div", {
|
|
12595
|
+
className: index$5.classnames(cx$e(''), className)
|
|
12596
|
+
}, React__default.createElement("span", {
|
|
12626
12597
|
className: cx$e('text')
|
|
12627
|
-
}, translate('searchBy')), ' ', React__default
|
|
12598
|
+
}, translate('searchBy')), ' ', React__default.createElement("a", {
|
|
12628
12599
|
href: url,
|
|
12629
12600
|
target: "_blank",
|
|
12630
12601
|
className: cx$e('link'),
|
|
12631
12602
|
"aria-label": "Algolia",
|
|
12632
12603
|
rel: "noopener noreferrer"
|
|
12633
|
-
}, React__default
|
|
12604
|
+
}, React__default.createElement(AlgoliaLogo, null)));
|
|
12634
12605
|
}
|
|
12635
12606
|
}]);
|
|
12636
12607
|
|
|
@@ -12638,9 +12609,9 @@ function (_Component) {
|
|
|
12638
12609
|
}(React.Component);
|
|
12639
12610
|
|
|
12640
12611
|
_defineProperty(PoweredBy, "propTypes", {
|
|
12641
|
-
url: PropTypes__default
|
|
12642
|
-
translate: PropTypes__default
|
|
12643
|
-
className: PropTypes__default
|
|
12612
|
+
url: PropTypes__default.string.isRequired,
|
|
12613
|
+
translate: PropTypes__default.func.isRequired,
|
|
12614
|
+
className: PropTypes__default.string
|
|
12644
12615
|
});
|
|
12645
12616
|
|
|
12646
12617
|
var PoweredBy$1 = translatable({
|
|
@@ -12759,12 +12730,12 @@ function (_Component) {
|
|
|
12759
12730
|
max = _this$normalizeRangeF.max;
|
|
12760
12731
|
|
|
12761
12732
|
var step = 1 / Math.pow(10, precision);
|
|
12762
|
-
return React__default
|
|
12763
|
-
className: index.classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12764
|
-
}, React__default
|
|
12733
|
+
return React__default.createElement("div", {
|
|
12734
|
+
className: index$5.classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12735
|
+
}, React__default.createElement("form", {
|
|
12765
12736
|
className: cx$f('form'),
|
|
12766
12737
|
onSubmit: this.onSubmit
|
|
12767
|
-
}, React__default
|
|
12738
|
+
}, React__default.createElement("input", {
|
|
12768
12739
|
className: cx$f('input', 'input--min'),
|
|
12769
12740
|
type: "number",
|
|
12770
12741
|
min: min,
|
|
@@ -12778,9 +12749,9 @@ function (_Component) {
|
|
|
12778
12749
|
from: e.currentTarget.value
|
|
12779
12750
|
});
|
|
12780
12751
|
}
|
|
12781
|
-
}), React__default
|
|
12752
|
+
}), React__default.createElement("span", {
|
|
12782
12753
|
className: cx$f('separator')
|
|
12783
|
-
}, translate('separator')), React__default
|
|
12754
|
+
}, translate('separator')), React__default.createElement("input", {
|
|
12784
12755
|
className: cx$f('input', 'input--max'),
|
|
12785
12756
|
type: "number",
|
|
12786
12757
|
min: min,
|
|
@@ -12794,7 +12765,7 @@ function (_Component) {
|
|
|
12794
12765
|
to: e.currentTarget.value
|
|
12795
12766
|
});
|
|
12796
12767
|
}
|
|
12797
|
-
}), React__default
|
|
12768
|
+
}), React__default.createElement("button", {
|
|
12798
12769
|
className: cx$f('submit'),
|
|
12799
12770
|
type: "submit"
|
|
12800
12771
|
}, translate('submit'))));
|
|
@@ -12805,17 +12776,17 @@ function (_Component) {
|
|
|
12805
12776
|
}(React.Component);
|
|
12806
12777
|
|
|
12807
12778
|
_defineProperty(RawRangeInput, "propTypes", {
|
|
12808
|
-
canRefine: PropTypes__default
|
|
12809
|
-
precision: PropTypes__default
|
|
12810
|
-
translate: PropTypes__default
|
|
12811
|
-
refine: PropTypes__default
|
|
12812
|
-
min: PropTypes__default
|
|
12813
|
-
max: PropTypes__default
|
|
12814
|
-
currentRefinement: PropTypes__default
|
|
12815
|
-
min: PropTypes__default
|
|
12816
|
-
max: PropTypes__default
|
|
12779
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12780
|
+
precision: PropTypes__default.number.isRequired,
|
|
12781
|
+
translate: PropTypes__default.func.isRequired,
|
|
12782
|
+
refine: PropTypes__default.func.isRequired,
|
|
12783
|
+
min: PropTypes__default.number,
|
|
12784
|
+
max: PropTypes__default.number,
|
|
12785
|
+
currentRefinement: PropTypes__default.shape({
|
|
12786
|
+
min: PropTypes__default.number,
|
|
12787
|
+
max: PropTypes__default.number
|
|
12817
12788
|
}),
|
|
12818
|
-
className: PropTypes__default
|
|
12789
|
+
className: PropTypes__default.string
|
|
12819
12790
|
});
|
|
12820
12791
|
|
|
12821
12792
|
_defineProperty(RawRangeInput, "defaultProps", {
|
|
@@ -12871,7 +12842,7 @@ var RangeInput = translatable({
|
|
|
12871
12842
|
*/
|
|
12872
12843
|
|
|
12873
12844
|
var RangeInputWidget = function RangeInputWidget(props) {
|
|
12874
|
-
return React__default
|
|
12845
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RangeInput, props));
|
|
12875
12846
|
};
|
|
12876
12847
|
|
|
12877
12848
|
connectRange(RangeInputWidget);
|
|
@@ -12927,13 +12898,13 @@ function (_Component) {
|
|
|
12927
12898
|
rating++;
|
|
12928
12899
|
}
|
|
12929
12900
|
|
|
12930
|
-
icons.push([React__default
|
|
12901
|
+
icons.push([React__default.createElement("svg", {
|
|
12931
12902
|
key: icon,
|
|
12932
12903
|
className: cx$g('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
|
|
12933
12904
|
"aria-hidden": "true",
|
|
12934
12905
|
width: "24",
|
|
12935
12906
|
height: "24"
|
|
12936
|
-
}, React__default
|
|
12907
|
+
}, React__default.createElement("use", {
|
|
12937
12908
|
xlinkHref: "#".concat(cx$g(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
|
|
12938
12909
|
})), ' ']);
|
|
12939
12910
|
} // The last item of the list (the default item), should not
|
|
@@ -12948,16 +12919,16 @@ function (_Component) {
|
|
|
12948
12919
|
}),
|
|
12949
12920
|
onClick: this.onClick.bind(this, lowerBound, max)
|
|
12950
12921
|
};
|
|
12951
|
-
return React__default
|
|
12922
|
+
return React__default.createElement("li", {
|
|
12952
12923
|
key: lowerBound,
|
|
12953
12924
|
className: cx$g('item', selected && 'item--selected', disabled && 'item--disabled')
|
|
12954
|
-
}, React__default
|
|
12925
|
+
}, React__default.createElement("a", index$5._extends({
|
|
12955
12926
|
className: cx$g('link'),
|
|
12956
12927
|
"aria-label": "".concat(rating).concat(translate('ratingLabel'))
|
|
12957
|
-
}, onClickHandler), icons, React__default
|
|
12928
|
+
}, onClickHandler), icons, React__default.createElement("span", {
|
|
12958
12929
|
className: cx$g('label'),
|
|
12959
12930
|
"aria-hidden": "true"
|
|
12960
|
-
}, translate('ratingLabel')), ' ', React__default
|
|
12931
|
+
}, translate('ratingLabel')), ' ', React__default.createElement("span", {
|
|
12961
12932
|
className: cx$g('count')
|
|
12962
12933
|
}, count)));
|
|
12963
12934
|
}
|
|
@@ -13013,24 +12984,24 @@ function (_Component) {
|
|
|
13013
12984
|
createURL: createURL
|
|
13014
12985
|
});
|
|
13015
12986
|
});
|
|
13016
|
-
return React__default
|
|
13017
|
-
className: index.classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
13018
|
-
}, React__default
|
|
12987
|
+
return React__default.createElement("div", {
|
|
12988
|
+
className: index$5.classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
12989
|
+
}, React__default.createElement("svg", {
|
|
13019
12990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13020
12991
|
style: {
|
|
13021
12992
|
display: 'none'
|
|
13022
12993
|
}
|
|
13023
|
-
}, React__default
|
|
12994
|
+
}, React__default.createElement("symbol", {
|
|
13024
12995
|
id: cx$g('starSymbol'),
|
|
13025
12996
|
viewBox: "0 0 24 24"
|
|
13026
|
-
}, React__default
|
|
12997
|
+
}, React__default.createElement("path", {
|
|
13027
12998
|
d: "M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"
|
|
13028
|
-
})), React__default
|
|
12999
|
+
})), React__default.createElement("symbol", {
|
|
13029
13000
|
id: cx$g('starEmptySymbol'),
|
|
13030
13001
|
viewBox: "0 0 24 24"
|
|
13031
|
-
}, React__default
|
|
13002
|
+
}, React__default.createElement("path", {
|
|
13032
13003
|
d: "M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"
|
|
13033
|
-
}))), React__default
|
|
13004
|
+
}))), React__default.createElement("ul", {
|
|
13034
13005
|
className: cx$g('list', !canRefine && 'list--noRefinement')
|
|
13035
13006
|
}, items));
|
|
13036
13007
|
}
|
|
@@ -13040,21 +13011,21 @@ function (_Component) {
|
|
|
13040
13011
|
}(React.Component);
|
|
13041
13012
|
|
|
13042
13013
|
_defineProperty(RatingMenu, "propTypes", {
|
|
13043
|
-
translate: PropTypes__default
|
|
13044
|
-
refine: PropTypes__default
|
|
13045
|
-
createURL: PropTypes__default
|
|
13046
|
-
min: PropTypes__default
|
|
13047
|
-
max: PropTypes__default
|
|
13048
|
-
currentRefinement: PropTypes__default
|
|
13049
|
-
min: PropTypes__default
|
|
13050
|
-
max: PropTypes__default
|
|
13014
|
+
translate: PropTypes__default.func.isRequired,
|
|
13015
|
+
refine: PropTypes__default.func.isRequired,
|
|
13016
|
+
createURL: PropTypes__default.func.isRequired,
|
|
13017
|
+
min: PropTypes__default.number,
|
|
13018
|
+
max: PropTypes__default.number,
|
|
13019
|
+
currentRefinement: PropTypes__default.shape({
|
|
13020
|
+
min: PropTypes__default.number,
|
|
13021
|
+
max: PropTypes__default.number
|
|
13051
13022
|
}),
|
|
13052
|
-
count: PropTypes__default
|
|
13053
|
-
value: PropTypes__default
|
|
13054
|
-
count: PropTypes__default
|
|
13023
|
+
count: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
13024
|
+
value: PropTypes__default.string,
|
|
13025
|
+
count: PropTypes__default.number
|
|
13055
13026
|
})),
|
|
13056
|
-
canRefine: PropTypes__default
|
|
13057
|
-
className: PropTypes__default
|
|
13027
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
13028
|
+
className: PropTypes__default.string
|
|
13058
13029
|
});
|
|
13059
13030
|
|
|
13060
13031
|
_defineProperty(RatingMenu, "defaultProps", {
|
|
@@ -13114,7 +13085,7 @@ var RatingMenu$1 = translatable({
|
|
|
13114
13085
|
*/
|
|
13115
13086
|
|
|
13116
13087
|
var RatingMenuWidget = function RatingMenuWidget(props) {
|
|
13117
|
-
return React__default
|
|
13088
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RatingMenu$1, props));
|
|
13118
13089
|
};
|
|
13119
13090
|
|
|
13120
13091
|
connectRange(RatingMenuWidget);
|
|
@@ -13150,22 +13121,22 @@ function (_Component) {
|
|
|
13150
13121
|
});
|
|
13151
13122
|
|
|
13152
13123
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13153
|
-
var label = _this.props.isFromSearch ? React__default
|
|
13124
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
13154
13125
|
attribute: "label",
|
|
13155
13126
|
hit: item
|
|
13156
13127
|
}) : item.label;
|
|
13157
|
-
return React__default
|
|
13128
|
+
return React__default.createElement("label", {
|
|
13158
13129
|
className: cx$h('label')
|
|
13159
|
-
}, React__default
|
|
13130
|
+
}, React__default.createElement("input", {
|
|
13160
13131
|
className: cx$h('checkbox'),
|
|
13161
13132
|
type: "checkbox",
|
|
13162
13133
|
checked: item.isRefined,
|
|
13163
13134
|
onChange: function onChange() {
|
|
13164
13135
|
return _this.selectItem(item, resetQuery);
|
|
13165
13136
|
}
|
|
13166
|
-
}), React__default
|
|
13137
|
+
}), React__default.createElement("span", {
|
|
13167
13138
|
className: cx$h('labelText')
|
|
13168
|
-
}, label), ' ', React__default
|
|
13139
|
+
}, label), ' ', React__default.createElement("span", {
|
|
13169
13140
|
className: cx$h('count')
|
|
13170
13141
|
}, item.count.toLocaleString()));
|
|
13171
13142
|
});
|
|
@@ -13187,7 +13158,7 @@ function (_Component) {
|
|
|
13187
13158
|
searchable = _this$props.searchable,
|
|
13188
13159
|
canRefine = _this$props.canRefine,
|
|
13189
13160
|
className = _this$props.className;
|
|
13190
|
-
return React__default
|
|
13161
|
+
return React__default.createElement(List, {
|
|
13191
13162
|
renderItem: this.renderItem,
|
|
13192
13163
|
selectItem: this.selectItem,
|
|
13193
13164
|
cx: cx$h,
|
|
@@ -13210,24 +13181,24 @@ function (_Component) {
|
|
|
13210
13181
|
}(React.Component);
|
|
13211
13182
|
|
|
13212
13183
|
_defineProperty(RefinementList$1, "propTypes", {
|
|
13213
|
-
translate: PropTypes__default
|
|
13214
|
-
refine: PropTypes__default
|
|
13215
|
-
searchForItems: PropTypes__default
|
|
13216
|
-
searchable: PropTypes__default
|
|
13217
|
-
createURL: PropTypes__default
|
|
13218
|
-
items: PropTypes__default
|
|
13219
|
-
label: PropTypes__default
|
|
13220
|
-
value: PropTypes__default
|
|
13221
|
-
count: PropTypes__default
|
|
13222
|
-
isRefined: PropTypes__default
|
|
13184
|
+
translate: PropTypes__default.func.isRequired,
|
|
13185
|
+
refine: PropTypes__default.func.isRequired,
|
|
13186
|
+
searchForItems: PropTypes__default.func.isRequired,
|
|
13187
|
+
searchable: PropTypes__default.bool,
|
|
13188
|
+
createURL: PropTypes__default.func.isRequired,
|
|
13189
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
13190
|
+
label: PropTypes__default.string.isRequired,
|
|
13191
|
+
value: PropTypes__default.arrayOf(PropTypes__default.string).isRequired,
|
|
13192
|
+
count: PropTypes__default.number.isRequired,
|
|
13193
|
+
isRefined: PropTypes__default.bool.isRequired
|
|
13223
13194
|
})),
|
|
13224
|
-
isFromSearch: PropTypes__default
|
|
13225
|
-
canRefine: PropTypes__default
|
|
13226
|
-
showMore: PropTypes__default
|
|
13227
|
-
limit: PropTypes__default
|
|
13228
|
-
showMoreLimit: PropTypes__default
|
|
13229
|
-
transformItems: PropTypes__default
|
|
13230
|
-
className: PropTypes__default
|
|
13195
|
+
isFromSearch: PropTypes__default.bool.isRequired,
|
|
13196
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
13197
|
+
showMore: PropTypes__default.bool,
|
|
13198
|
+
limit: PropTypes__default.number,
|
|
13199
|
+
showMoreLimit: PropTypes__default.number,
|
|
13200
|
+
transformItems: PropTypes__default.func,
|
|
13201
|
+
className: PropTypes__default.string
|
|
13231
13202
|
});
|
|
13232
13203
|
|
|
13233
13204
|
_defineProperty(RefinementList$1, "defaultProps", {
|
|
@@ -13299,7 +13270,7 @@ var RefinementList$2 = translatable({
|
|
|
13299
13270
|
*/
|
|
13300
13271
|
|
|
13301
13272
|
var RefinementListWidget = function RefinementListWidget(props) {
|
|
13302
|
-
return React__default
|
|
13273
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RefinementList$2, props));
|
|
13303
13274
|
};
|
|
13304
13275
|
|
|
13305
13276
|
var RefinementList$3 = connectRefinementList(RefinementListWidget);
|
|
@@ -13333,7 +13304,7 @@ function (_Component) {
|
|
|
13333
13304
|
value: function render() {
|
|
13334
13305
|
var _this = this;
|
|
13335
13306
|
|
|
13336
|
-
return React__default
|
|
13307
|
+
return React__default.createElement("div", {
|
|
13337
13308
|
ref: function ref(_ref) {
|
|
13338
13309
|
return _this.el = _ref;
|
|
13339
13310
|
},
|
|
@@ -13346,9 +13317,9 @@ function (_Component) {
|
|
|
13346
13317
|
}(React.Component);
|
|
13347
13318
|
|
|
13348
13319
|
_defineProperty(ScrollTo, "propTypes", {
|
|
13349
|
-
value: PropTypes__default
|
|
13350
|
-
children: PropTypes__default
|
|
13351
|
-
hasNotChanged: PropTypes__default
|
|
13320
|
+
value: PropTypes__default.any,
|
|
13321
|
+
children: PropTypes__default.node,
|
|
13322
|
+
hasNotChanged: PropTypes__default.bool
|
|
13352
13323
|
});
|
|
13353
13324
|
|
|
13354
13325
|
/**
|
|
@@ -13436,7 +13407,7 @@ var SearchBox$2 = connectSearchBox(SearchBox$1);
|
|
|
13436
13407
|
var cx$j = createClassNames('Snippet');
|
|
13437
13408
|
|
|
13438
13409
|
var Snippet = function Snippet(props) {
|
|
13439
|
-
return React__default
|
|
13410
|
+
return React__default.createElement(Highlighter, index$5._extends({}, props, {
|
|
13440
13411
|
highlightProperty: "_snippetResult",
|
|
13441
13412
|
cx: cx$j
|
|
13442
13413
|
}));
|
|
@@ -13492,7 +13463,7 @@ var cx$k = createClassNames('RelevantSort');
|
|
|
13492
13463
|
|
|
13493
13464
|
var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
|
|
13494
13465
|
var isRelevantSorted = _ref.isRelevantSorted;
|
|
13495
|
-
return React__default
|
|
13466
|
+
return React__default.createElement("span", null, isRelevantSorted ? 'See all results' : 'See relevant results');
|
|
13496
13467
|
};
|
|
13497
13468
|
|
|
13498
13469
|
var RelevantSort = function RelevantSort(_ref2) {
|
|
@@ -13504,29 +13475,29 @@ var RelevantSort = function RelevantSort(_ref2) {
|
|
|
13504
13475
|
ButtonTextComponent = _ref2$buttonTextCompo === void 0 ? DefaultButtonTextComponent : _ref2$buttonTextCompo,
|
|
13505
13476
|
TextComponent = _ref2.textComponent,
|
|
13506
13477
|
refine = _ref2.refine;
|
|
13507
|
-
return !isVirtualReplica ? null : React__default
|
|
13508
|
-
className: index.classnames(cx$k(''), className)
|
|
13509
|
-
}, React__default
|
|
13478
|
+
return !isVirtualReplica ? null : React__default.createElement("div", {
|
|
13479
|
+
className: index$5.classnames(cx$k(''), className)
|
|
13480
|
+
}, React__default.createElement("div", {
|
|
13510
13481
|
className: cx$k('text')
|
|
13511
|
-
}, TextComponent && React__default
|
|
13482
|
+
}, TextComponent && React__default.createElement(TextComponent, {
|
|
13512
13483
|
isRelevantSorted: isRelevantSorted
|
|
13513
|
-
})), React__default
|
|
13484
|
+
})), React__default.createElement("button", {
|
|
13514
13485
|
className: cx$k('button'),
|
|
13515
13486
|
onClick: function onClick() {
|
|
13516
13487
|
return refine(isRelevantSorted ? 0 : undefined);
|
|
13517
13488
|
}
|
|
13518
|
-
}, React__default
|
|
13489
|
+
}, React__default.createElement(ButtonTextComponent, {
|
|
13519
13490
|
isRelevantSorted: isRelevantSorted
|
|
13520
13491
|
})));
|
|
13521
13492
|
};
|
|
13522
13493
|
|
|
13523
13494
|
RelevantSort.propTypes = {
|
|
13524
|
-
buttonTextComponent: PropTypes__default
|
|
13525
|
-
className: PropTypes__default
|
|
13526
|
-
isVirtualReplica: PropTypes__default
|
|
13527
|
-
isRelevantSorted: PropTypes__default
|
|
13528
|
-
refine: PropTypes__default
|
|
13529
|
-
textComponent: PropTypes__default
|
|
13495
|
+
buttonTextComponent: PropTypes__default.func,
|
|
13496
|
+
className: PropTypes__default.string,
|
|
13497
|
+
isVirtualReplica: PropTypes__default.bool.isRequired,
|
|
13498
|
+
isRelevantSorted: PropTypes__default.bool.isRequired,
|
|
13499
|
+
refine: PropTypes__default.func.isRequired,
|
|
13500
|
+
textComponent: PropTypes__default.func
|
|
13530
13501
|
};
|
|
13531
13502
|
|
|
13532
13503
|
connectRelevantSort(RelevantSort);
|
|
@@ -13552,9 +13523,9 @@ function (_Component) {
|
|
|
13552
13523
|
currentRefinement = _this$props.currentRefinement,
|
|
13553
13524
|
refine = _this$props.refine,
|
|
13554
13525
|
className = _this$props.className;
|
|
13555
|
-
return React__default
|
|
13556
|
-
className: index.classnames(cx$l(''), className)
|
|
13557
|
-
}, React__default
|
|
13526
|
+
return React__default.createElement("div", {
|
|
13527
|
+
className: index$5.classnames(cx$l(''), className)
|
|
13528
|
+
}, React__default.createElement(Select, {
|
|
13558
13529
|
cx: cx$l,
|
|
13559
13530
|
items: items,
|
|
13560
13531
|
selectedItem: currentRefinement,
|
|
@@ -13567,13 +13538,13 @@ function (_Component) {
|
|
|
13567
13538
|
}(React.Component);
|
|
13568
13539
|
|
|
13569
13540
|
_defineProperty(SortBy, "propTypes", {
|
|
13570
|
-
items: PropTypes__default
|
|
13571
|
-
label: PropTypes__default
|
|
13572
|
-
value: PropTypes__default
|
|
13541
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
13542
|
+
label: PropTypes__default.string,
|
|
13543
|
+
value: PropTypes__default.string.isRequired
|
|
13573
13544
|
})).isRequired,
|
|
13574
|
-
currentRefinement: PropTypes__default
|
|
13575
|
-
refine: PropTypes__default
|
|
13576
|
-
className: PropTypes__default
|
|
13545
|
+
currentRefinement: PropTypes__default.string.isRequired,
|
|
13546
|
+
refine: PropTypes__default.func.isRequired,
|
|
13547
|
+
className: PropTypes__default.string
|
|
13577
13548
|
});
|
|
13578
13549
|
|
|
13579
13550
|
_defineProperty(SortBy, "defaultProps", {
|
|
@@ -13631,20 +13602,20 @@ var Stats = function Stats(_ref) {
|
|
|
13631
13602
|
nbSortedHits = _ref.nbSortedHits,
|
|
13632
13603
|
processingTimeMS = _ref.processingTimeMS,
|
|
13633
13604
|
translate = _ref.translate;
|
|
13634
|
-
return React__default
|
|
13635
|
-
className: index.classnames(cx$m(''), className)
|
|
13636
|
-
}, React__default
|
|
13605
|
+
return React__default.createElement("div", {
|
|
13606
|
+
className: index$5.classnames(cx$m(''), className)
|
|
13607
|
+
}, React__default.createElement("span", {
|
|
13637
13608
|
className: cx$m('text')
|
|
13638
13609
|
}, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
|
|
13639
13610
|
};
|
|
13640
13611
|
|
|
13641
13612
|
Stats.propTypes = {
|
|
13642
|
-
className: PropTypes__default
|
|
13643
|
-
areHitsSorted: PropTypes__default
|
|
13644
|
-
nbHits: PropTypes__default
|
|
13645
|
-
nbSortedHits: PropTypes__default
|
|
13646
|
-
processingTimeMS: PropTypes__default
|
|
13647
|
-
translate: PropTypes__default
|
|
13613
|
+
className: PropTypes__default.string,
|
|
13614
|
+
areHitsSorted: PropTypes__default.bool.isRequired,
|
|
13615
|
+
nbHits: PropTypes__default.number.isRequired,
|
|
13616
|
+
nbSortedHits: PropTypes__default.number,
|
|
13617
|
+
processingTimeMS: PropTypes__default.number.isRequired,
|
|
13618
|
+
translate: PropTypes__default.func.isRequired
|
|
13648
13619
|
};
|
|
13649
13620
|
var Stats$1 = translatable({
|
|
13650
13621
|
stats: function stats(n, ms, nSorted, areHitsSorted) {
|
|
@@ -13690,28 +13661,28 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
|
13690
13661
|
canRefine = _ref.canRefine,
|
|
13691
13662
|
refine = _ref.refine,
|
|
13692
13663
|
className = _ref.className;
|
|
13693
|
-
return React__default
|
|
13694
|
-
className: index.classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13695
|
-
}, React__default
|
|
13664
|
+
return React__default.createElement("div", {
|
|
13665
|
+
className: index$5.classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13666
|
+
}, React__default.createElement("label", {
|
|
13696
13667
|
className: cx$n('label')
|
|
13697
|
-
}, React__default
|
|
13668
|
+
}, React__default.createElement("input", {
|
|
13698
13669
|
className: cx$n('checkbox'),
|
|
13699
13670
|
type: "checkbox",
|
|
13700
13671
|
checked: currentRefinement,
|
|
13701
13672
|
onChange: function onChange(event) {
|
|
13702
13673
|
return refine(event.target.checked);
|
|
13703
13674
|
}
|
|
13704
|
-
}), React__default
|
|
13675
|
+
}), React__default.createElement("span", {
|
|
13705
13676
|
className: cx$n('labelText')
|
|
13706
13677
|
}, label)));
|
|
13707
13678
|
};
|
|
13708
13679
|
|
|
13709
13680
|
ToggleRefinement.propTypes = {
|
|
13710
|
-
currentRefinement: PropTypes__default
|
|
13711
|
-
label: PropTypes__default
|
|
13712
|
-
canRefine: PropTypes__default
|
|
13713
|
-
refine: PropTypes__default
|
|
13714
|
-
className: PropTypes__default
|
|
13681
|
+
currentRefinement: PropTypes__default.bool.isRequired,
|
|
13682
|
+
label: PropTypes__default.string.isRequired,
|
|
13683
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
13684
|
+
refine: PropTypes__default.func.isRequired,
|
|
13685
|
+
className: PropTypes__default.string
|
|
13715
13686
|
};
|
|
13716
13687
|
ToggleRefinement.defaultProps = {
|
|
13717
13688
|
className: ''
|
|
@@ -13915,7 +13886,7 @@ var cx$o = createClassNames('VoiceSearch');
|
|
|
13915
13886
|
|
|
13916
13887
|
var ButtonSvg = function ButtonSvg(_ref) {
|
|
13917
13888
|
var children = _ref.children;
|
|
13918
|
-
return React__default
|
|
13889
|
+
return React__default.createElement("svg", {
|
|
13919
13890
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13920
13891
|
width: "16",
|
|
13921
13892
|
height: "16",
|
|
@@ -13932,36 +13903,36 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13932
13903
|
var status = _ref2.status,
|
|
13933
13904
|
errorCode = _ref2.errorCode,
|
|
13934
13905
|
isListening = _ref2.isListening;
|
|
13935
|
-
return status === 'error' && errorCode === 'not-allowed' ? React__default
|
|
13906
|
+
return status === 'error' && errorCode === 'not-allowed' ? React__default.createElement(ButtonSvg, null, React__default.createElement("line", {
|
|
13936
13907
|
x1: "1",
|
|
13937
13908
|
y1: "1",
|
|
13938
13909
|
x2: "23",
|
|
13939
13910
|
y2: "23"
|
|
13940
|
-
}), React__default
|
|
13911
|
+
}), React__default.createElement("path", {
|
|
13941
13912
|
d: "M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"
|
|
13942
|
-
}), React__default
|
|
13913
|
+
}), React__default.createElement("path", {
|
|
13943
13914
|
d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"
|
|
13944
|
-
}), React__default
|
|
13915
|
+
}), React__default.createElement("line", {
|
|
13945
13916
|
x1: "12",
|
|
13946
13917
|
y1: "19",
|
|
13947
13918
|
x2: "12",
|
|
13948
13919
|
y2: "23"
|
|
13949
|
-
}), React__default
|
|
13920
|
+
}), React__default.createElement("line", {
|
|
13950
13921
|
x1: "8",
|
|
13951
13922
|
y1: "23",
|
|
13952
13923
|
x2: "16",
|
|
13953
13924
|
y2: "23"
|
|
13954
|
-
})) : React__default
|
|
13925
|
+
})) : React__default.createElement(ButtonSvg, null, React__default.createElement("path", {
|
|
13955
13926
|
d: "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",
|
|
13956
13927
|
fill: isListening ? 'currentColor' : ''
|
|
13957
|
-
}), React__default
|
|
13928
|
+
}), React__default.createElement("path", {
|
|
13958
13929
|
d: "M19 10v2a7 7 0 0 1-14 0v-2"
|
|
13959
|
-
}), React__default
|
|
13930
|
+
}), React__default.createElement("line", {
|
|
13960
13931
|
x1: "12",
|
|
13961
13932
|
y1: "19",
|
|
13962
13933
|
x2: "12",
|
|
13963
13934
|
y2: "23"
|
|
13964
|
-
}), React__default
|
|
13935
|
+
}), React__default.createElement("line", {
|
|
13965
13936
|
x1: "8",
|
|
13966
13937
|
y1: "23",
|
|
13967
13938
|
x2: "16",
|
|
@@ -13971,7 +13942,7 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13971
13942
|
|
|
13972
13943
|
var DefaultStatus = function DefaultStatus(_ref3) {
|
|
13973
13944
|
var transcript = _ref3.transcript;
|
|
13974
|
-
return React__default
|
|
13945
|
+
return React__default.createElement("p", null, transcript);
|
|
13975
13946
|
};
|
|
13976
13947
|
|
|
13977
13948
|
var VoiceSearch =
|
|
@@ -14056,17 +14027,17 @@ function (_Component) {
|
|
|
14056
14027
|
isSpeechFinal: isSpeechFinal,
|
|
14057
14028
|
isBrowserSupported: isBrowserSupported()
|
|
14058
14029
|
};
|
|
14059
|
-
return React__default
|
|
14030
|
+
return React__default.createElement("div", {
|
|
14060
14031
|
className: cx$o('')
|
|
14061
|
-
}, React__default
|
|
14032
|
+
}, React__default.createElement("button", {
|
|
14062
14033
|
className: cx$o('button'),
|
|
14063
14034
|
type: "button",
|
|
14064
14035
|
title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
|
|
14065
14036
|
onClick: this.onClick,
|
|
14066
14037
|
disabled: !isBrowserSupported()
|
|
14067
|
-
}, React__default
|
|
14038
|
+
}, React__default.createElement(ButtonTextComponent, innerProps)), React__default.createElement("div", {
|
|
14068
14039
|
className: cx$o('status')
|
|
14069
|
-
}, React__default
|
|
14040
|
+
}, React__default.createElement(StatusComponent, innerProps)));
|
|
14070
14041
|
}
|
|
14071
14042
|
}, {
|
|
14072
14043
|
key: "componentWillUnmount",
|
|
@@ -14099,21 +14070,21 @@ var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
|
14099
14070
|
var items = _ref.items,
|
|
14100
14071
|
className = _ref.className,
|
|
14101
14072
|
children = _ref.children;
|
|
14102
|
-
return React__default
|
|
14103
|
-
className: index.classnames(cx$p(''), className)
|
|
14073
|
+
return React__default.createElement("div", {
|
|
14074
|
+
className: index$5.classnames(cx$p(''), className)
|
|
14104
14075
|
}, children({
|
|
14105
14076
|
items: items
|
|
14106
14077
|
}));
|
|
14107
14078
|
};
|
|
14108
14079
|
|
|
14109
14080
|
QueryRuleCustomData.propTypes = {
|
|
14110
|
-
items: PropTypes__default
|
|
14111
|
-
className: PropTypes__default
|
|
14112
|
-
children: PropTypes__default
|
|
14081
|
+
items: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
14082
|
+
className: PropTypes__default.string,
|
|
14083
|
+
children: PropTypes__default.func.isRequired
|
|
14113
14084
|
};
|
|
14114
14085
|
|
|
14115
14086
|
var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
14116
|
-
return React__default
|
|
14087
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(QueryRuleCustomData, props));
|
|
14117
14088
|
};
|
|
14118
14089
|
|
|
14119
14090
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
@@ -14137,52 +14108,52 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14137
14108
|
|
|
14138
14109
|
var hit = props.hit;
|
|
14139
14110
|
if (moment.moment().isSameOrBefore(props.hit.pubDateSort)) return null;
|
|
14140
|
-
return React__default
|
|
14111
|
+
return React__default.createElement(
|
|
14141
14112
|
'div',
|
|
14142
14113
|
{ key: hit.url, className: styles.article },
|
|
14143
|
-
React__default
|
|
14114
|
+
React__default.createElement(
|
|
14144
14115
|
'a',
|
|
14145
14116
|
{ href: '/view/' + hit.url, style: this.props.variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14146
|
-
React__default
|
|
14117
|
+
React__default.createElement(
|
|
14147
14118
|
'div',
|
|
14148
14119
|
{ className: styles.thumb },
|
|
14149
|
-
React__default
|
|
14120
|
+
React__default.createElement(
|
|
14150
14121
|
'figure',
|
|
14151
14122
|
null,
|
|
14152
|
-
React__default
|
|
14153
|
-
index$
|
|
14123
|
+
React__default.createElement(
|
|
14124
|
+
index$2.LazyLoad,
|
|
14154
14125
|
null,
|
|
14155
|
-
React__default
|
|
14156
|
-
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$
|
|
14126
|
+
React__default.createElement('img', {
|
|
14127
|
+
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$1._typeof(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14157
14128
|
})
|
|
14158
14129
|
)
|
|
14159
14130
|
)
|
|
14160
14131
|
),
|
|
14161
|
-
React__default
|
|
14132
|
+
React__default.createElement(
|
|
14162
14133
|
'div',
|
|
14163
14134
|
{ className: styles.info, style: this.props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14164
|
-
React__default
|
|
14135
|
+
React__default.createElement(
|
|
14165
14136
|
'h2',
|
|
14166
14137
|
null,
|
|
14167
14138
|
hit.title
|
|
14168
14139
|
),
|
|
14169
|
-
hit.pubDateSort && React__default
|
|
14140
|
+
hit.pubDateSort && React__default.createElement(
|
|
14170
14141
|
'p',
|
|
14171
14142
|
{ className: styles.published },
|
|
14172
14143
|
moment.moment(hit.pubDateSort).format('MMMM Do YYYY')
|
|
14173
14144
|
),
|
|
14174
|
-
hit.authorMapping && hit.authorMapping.length > 0 && React__default
|
|
14145
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default.createElement(
|
|
14175
14146
|
'p',
|
|
14176
14147
|
{ className: styles.author },
|
|
14177
14148
|
hit.authorMapping.map(function (author) {
|
|
14178
|
-
return React__default
|
|
14149
|
+
return React__default.createElement(
|
|
14179
14150
|
'span',
|
|
14180
14151
|
null,
|
|
14181
14152
|
author.displayName
|
|
14182
14153
|
);
|
|
14183
14154
|
})
|
|
14184
14155
|
),
|
|
14185
|
-
hit.summary && React__default
|
|
14156
|
+
hit.summary && React__default.createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14186
14157
|
)
|
|
14187
14158
|
)
|
|
14188
14159
|
);
|
|
@@ -14196,10 +14167,10 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14196
14167
|
styles: this.props.deckStyles,
|
|
14197
14168
|
client: this.props.sanityClient
|
|
14198
14169
|
};
|
|
14199
|
-
return React__default
|
|
14200
|
-
React__default
|
|
14170
|
+
return React__default.createElement(
|
|
14171
|
+
React__default.Fragment,
|
|
14201
14172
|
null,
|
|
14202
|
-
React__default
|
|
14173
|
+
React__default.createElement(
|
|
14203
14174
|
InstantSearch,
|
|
14204
14175
|
_extends._extends({
|
|
14205
14176
|
searchClient: this.props.searchClient,
|
|
@@ -14210,29 +14181,29 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14210
14181
|
indexName: this.props.indexName,
|
|
14211
14182
|
onSearchParameters: this.props.onSearchParameters
|
|
14212
14183
|
}, this.props),
|
|
14213
|
-
React__default
|
|
14214
|
-
React__default
|
|
14215
|
-
this.props.refinementAttributes && React__default
|
|
14184
|
+
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14185
|
+
React__default.createElement(SearchBox$2, null),
|
|
14186
|
+
this.props.refinementAttributes && React__default.createElement(
|
|
14216
14187
|
'div',
|
|
14217
14188
|
{ className: 'search_refinement' },
|
|
14218
14189
|
this.props.refinementAttributes.map(function (item, index) {
|
|
14219
|
-
return React__default
|
|
14190
|
+
return React__default.createElement(
|
|
14220
14191
|
reactBootstrap.DropdownButton,
|
|
14221
14192
|
{ title: item.title },
|
|
14222
|
-
React__default
|
|
14193
|
+
React__default.createElement(RefinementList$3, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
|
|
14223
14194
|
);
|
|
14224
14195
|
})
|
|
14225
14196
|
),
|
|
14226
|
-
React__default
|
|
14197
|
+
React__default.createElement(
|
|
14227
14198
|
'div',
|
|
14228
14199
|
{ className: 'AlgoliaResults' },
|
|
14229
|
-
React__default
|
|
14200
|
+
React__default.createElement(Hits$1, { hitComponent: function hitComponent(hit) {
|
|
14230
14201
|
return _this2.Deck(_extends._extends({}, hit, { propsObj: propsObj }));
|
|
14231
14202
|
} })
|
|
14232
14203
|
),
|
|
14233
|
-
React__default
|
|
14204
|
+
React__default.createElement(Pagination$2, null)
|
|
14234
14205
|
),
|
|
14235
|
-
React__default
|
|
14206
|
+
React__default.createElement(
|
|
14236
14207
|
'style',
|
|
14237
14208
|
{ jsx: 'true' },
|
|
14238
14209
|
'\n .AlgoliaResults {\n padding-left: 15px;\n margin-top: 3rem;\n }\n\n .search_refinement {\n display: flex;\n margin: 2rem 0;\n }\n\n .search_refinement > div {\n padding-right: 1rem;\n max-height: 500px;\n }\n\n .ais-Hits-list {\n margin: 0;\n list-style: none;\n padding-inline-start: 0;\n }\n .ais-Pagination-list {\n list-style: none;\n }\n .ais-Pagination-list {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n .ais-Pagination-item + .ais-Pagination-item {\n margin-left: 0.3rem;\n }\n .ais-Pagination-link {\n padding: 0.3rem 0.6rem;\n display: block;\n border: 1px solid var(--search-primary);\n border-radius: 5px;\n transition: background-color 0.2s ease-out;\n }\n .ais-Pagination-link:focus,\n .ais-Pagination-link:hover {\n background-color: var(--search-secondary);\n color: #fff;\n }\n .ais-Pagination-item--disabled .ais-Pagination-link {\n opacity: 0.6;\n cursor: not-allowed;\n color: var(--search-secondary);\n }\n .ais-Pagination-item--disabled .ais-Pagination-link:focus,\n .ais-Pagination-item--disabled .ais-Pagination-link:hover {\n color: #fff;\n background-color: var(--search-secondary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link {\n color: #fff;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link:focus,\n .ais-Pagination-item--selected .ais-Pagination-link:hover {\n color: #fff;\n }\n .ais-Pagination-list,\n .ais-Results-list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .ais-Pagination-list,\n .ais-PoweredBy,\n .ais-RangeInput-form,\n .ais-RatingMenu-link {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .ais-RefinementList-item {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .ais-RefinementList-list {\n margin: 0;\n padding: 0 1rem;\n width: max-content;\n }\n .ais-SearchBox-form {\n width: 100%;\n border-radius: 5px;\n height: 48px;\n }\n .ais-SearchBox-input {\n padding: 0.5rem;\n border-radius: 5px;\n width: calc(100% - 150px);\n height: 48px;\n border: 0;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit {\n width: 78px;\n border-radius: 5px;\n padding: 7px;\n margin-left: 5px;\n height: 48px;\n background-color: var(--search-primary);\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit > svg {\n fill: #fff;\n }\n .search_refinement > .dropdown > button {\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n\n .ais-SearchBox-reset {\n height: 48px;\n width: 48px;\n color: #fff;\n background-color: var(--search-primary);\n border: 0;\n margin-left: 5px;\n border-radius: 5px;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-reset > svg {\n fill: #fff;\n }\n .ais-RefinementList-checkbox {\n margin-right: 5px;\n }\n\n .ais-RefinementList-showMore {\n padding: 0.5rem;\n border: 0;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n color: #fff;\n border: 1px solid;\n border-radius: 5px;\n margin-left: 1rem;\n }\n '
|
|
@@ -14242,16 +14213,16 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14242
14213
|
}]);
|
|
14243
14214
|
|
|
14244
14215
|
return AlgoliaSearch;
|
|
14245
|
-
}(React__default
|
|
14216
|
+
}(React__default.Component);
|
|
14246
14217
|
|
|
14247
14218
|
AlgoliaSearch.propTypes = {
|
|
14248
|
-
searchState: PropTypes__default
|
|
14249
|
-
resultsState: PropTypes__default
|
|
14250
|
-
onSearchStateChange: PropTypes__default
|
|
14251
|
-
createURL: PropTypes__default
|
|
14252
|
-
indexName: PropTypes__default
|
|
14253
|
-
searchClient: PropTypes__default
|
|
14254
|
-
refinementAttributes: PropTypes__default
|
|
14219
|
+
searchState: PropTypes__default.object,
|
|
14220
|
+
resultsState: PropTypes__default.oneOfType([PropTypes__default.object, PropTypes__default.array]),
|
|
14221
|
+
onSearchStateChange: PropTypes__default.func,
|
|
14222
|
+
createURL: PropTypes__default.func,
|
|
14223
|
+
indexName: PropTypes__default.string,
|
|
14224
|
+
searchClient: PropTypes__default.object,
|
|
14225
|
+
refinementAttributes: PropTypes__default.array
|
|
14255
14226
|
};
|
|
14256
14227
|
|
|
14257
14228
|
module.exports = AlgoliaSearch;
|