@mjhls/mjh-framework 1.0.854-adblocker-fix-v1 → 1.0.854-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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-25d48cc2.js → ADInfeed-98c71bcd.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 +16 -26
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-9de32585.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 +842 -952
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +27 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +38 -119
- 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 +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- 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 +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +116 -121
- 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 +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +786 -733
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- 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 +3907 -78
- 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 +83 -87
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +22 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- 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-0d3bf265.js → SeriesSlider-8bbc989f.js} +33 -34
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.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 +43 -47
- package/dist/cjs/VideoSeriesCard.js +22 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +27 -28
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +199 -203
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +50 -51
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-f1821260.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-00a7ead6.js → index-276bab5c.js} +928 -954
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- 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-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- 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 -63
- package/dist/cjs/{inherits-0c7830c5.js → inherits-1f5a1c72.js} +3 -3
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- 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-56a3db8b.js → ADInfeed-1cc9d817.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 +14 -23
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-8c4f129e.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 +238 -347
- 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 +1180 -216
- package/dist/esm/AuthWrapper.js +36 -116
- 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 +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- 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 +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- 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 +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +506 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- 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 +3903 -74
- 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 +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- 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-7d89f4d9.js → SeriesSlider-a866bb21.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.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 +17 -17
- 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 +180 -180
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +35 -35
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +126 -62
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-0500ae55.js → index-0f6867b9.js} +882 -898
- 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-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- 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 +49 -51
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- 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-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- 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 +2 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
require('./_to-object-329a650b.js');
|
|
5
7
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
@@ -7,30 +9,28 @@ 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-1f5a1c72.js');
|
|
11
13
|
require('./define-property-f4d12f4e.js');
|
|
12
14
|
require('./web.dom.iterable-a0e279c1.js');
|
|
13
|
-
var _typeof
|
|
15
|
+
var _typeof = 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-e2e62963.js');
|
|
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');
|
|
29
|
+
var inherits$1$1 = require('./inherits-8d29278d.js');
|
|
30
30
|
|
|
31
31
|
function _objectWithoutProperties(source, excluded) {
|
|
32
32
|
if (source == null) return {};
|
|
33
|
-
var target = index._objectWithoutPropertiesLoose(source, excluded);
|
|
33
|
+
var target = index$5._objectWithoutPropertiesLoose(source, excluded);
|
|
34
34
|
var key, i;
|
|
35
35
|
|
|
36
36
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -47,24 +47,9 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
47
47
|
return target;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
function _defineProperty(obj, key, value) {
|
|
51
|
-
if (key in obj) {
|
|
52
|
-
Object.defineProperty(obj, key, {
|
|
53
|
-
value: value,
|
|
54
|
-
enumerable: true,
|
|
55
|
-
configurable: true,
|
|
56
|
-
writable: true
|
|
57
|
-
});
|
|
58
|
-
} else {
|
|
59
|
-
obj[key] = value;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return obj;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
50
|
function _objectSpread(target) {
|
|
66
51
|
for (var i = 1; i < arguments.length; i++) {
|
|
67
|
-
var source = arguments[i] != null ?
|
|
52
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
68
53
|
var ownKeys = Object.keys(source);
|
|
69
54
|
|
|
70
55
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
@@ -74,98 +59,13 @@ function _objectSpread(target) {
|
|
|
74
59
|
}
|
|
75
60
|
|
|
76
61
|
ownKeys.forEach(function (key) {
|
|
77
|
-
_defineProperty(target, key, source[key]);
|
|
62
|
+
inherits$1$1._defineProperty(target, key, source[key]);
|
|
78
63
|
});
|
|
79
64
|
}
|
|
80
65
|
|
|
81
66
|
return target;
|
|
82
67
|
}
|
|
83
68
|
|
|
84
|
-
function _classCallCheck(instance, Constructor) {
|
|
85
|
-
if (!(instance instanceof Constructor)) {
|
|
86
|
-
throw new TypeError("Cannot call a class as a function");
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function _defineProperties(target, props) {
|
|
91
|
-
for (var i = 0; i < props.length; i++) {
|
|
92
|
-
var descriptor = props[i];
|
|
93
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
94
|
-
descriptor.configurable = true;
|
|
95
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
96
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
101
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
102
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
103
|
-
return Constructor;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function _typeof(obj) {
|
|
107
|
-
"@babel/helpers - typeof";
|
|
108
|
-
|
|
109
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
110
|
-
_typeof = function _typeof(obj) {
|
|
111
|
-
return typeof obj;
|
|
112
|
-
};
|
|
113
|
-
} else {
|
|
114
|
-
_typeof = function _typeof(obj) {
|
|
115
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return _typeof(obj);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function _assertThisInitialized(self) {
|
|
123
|
-
if (self === void 0) {
|
|
124
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return self;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function _possibleConstructorReturn(self, call) {
|
|
131
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
132
|
-
return call;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return _assertThisInitialized(self);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function _getPrototypeOf(o) {
|
|
139
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
140
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
141
|
-
};
|
|
142
|
-
return _getPrototypeOf(o);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function _setPrototypeOf(o, p) {
|
|
146
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
147
|
-
o.__proto__ = p;
|
|
148
|
-
return o;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
return _setPrototypeOf(o, p);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
function _inherits(subClass, superClass) {
|
|
155
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
156
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
160
|
-
constructor: {
|
|
161
|
-
value: subClass,
|
|
162
|
-
writable: true,
|
|
163
|
-
configurable: true
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
69
|
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
170
70
|
|
|
171
71
|
var hasElementType = typeof Element !== 'undefined';
|
|
@@ -334,7 +234,7 @@ var defer = function defer(f) {
|
|
|
334
234
|
};
|
|
335
235
|
|
|
336
236
|
var isPlainObject = function isPlainObject(value) {
|
|
337
|
-
return _typeof(value) === 'object' && value !== null && !Array.isArray(value);
|
|
237
|
+
return inherits$1$1._typeof(value) === 'object' && value !== null && !Array.isArray(value);
|
|
338
238
|
};
|
|
339
239
|
|
|
340
240
|
var removeEmptyKey = function removeEmptyKey(obj) {
|
|
@@ -493,26 +393,26 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
493
393
|
var Connector =
|
|
494
394
|
/*#__PURE__*/
|
|
495
395
|
function (_Component) {
|
|
496
|
-
_inherits(Connector, _Component);
|
|
396
|
+
inherits$1$1._inherits(Connector, _Component);
|
|
497
397
|
|
|
498
398
|
function Connector(props) {
|
|
499
399
|
var _this;
|
|
500
400
|
|
|
501
|
-
_classCallCheck(this, Connector);
|
|
401
|
+
inherits$1$1._classCallCheck(this, Connector);
|
|
502
402
|
|
|
503
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(Connector).call(this, props));
|
|
403
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(Connector).call(this, props));
|
|
504
404
|
|
|
505
|
-
_defineProperty(_assertThisInitialized(_this), "unsubscribe", void 0);
|
|
405
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "unsubscribe", void 0);
|
|
506
406
|
|
|
507
|
-
_defineProperty(_assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
407
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
508
408
|
|
|
509
|
-
_defineProperty(_assertThisInitialized(_this), "isUnmounting", false);
|
|
409
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "isUnmounting", false);
|
|
510
410
|
|
|
511
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
411
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "state", {
|
|
512
412
|
providedProps: _this.getProvidedProps(_this.props)
|
|
513
413
|
});
|
|
514
414
|
|
|
515
|
-
_defineProperty(_assertThisInitialized(_this), "refine", function () {
|
|
415
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "refine", function () {
|
|
516
416
|
var _ref;
|
|
517
417
|
|
|
518
418
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -520,10 +420,10 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
520
420
|
}
|
|
521
421
|
|
|
522
422
|
_this.props.contextValue.onInternalStateUpdate( // refine will always be defined here because the prop is only given conditionally
|
|
523
|
-
(_ref = connectorDesc.refine).call.apply(_ref, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
423
|
+
(_ref = connectorDesc.refine).call.apply(_ref, [inherits$1$1._assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
524
424
|
});
|
|
525
425
|
|
|
526
|
-
_defineProperty(_assertThisInitialized(_this), "createURL", function () {
|
|
426
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "createURL", function () {
|
|
527
427
|
var _ref2;
|
|
528
428
|
|
|
529
429
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
@@ -531,10 +431,10 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
531
431
|
}
|
|
532
432
|
|
|
533
433
|
return _this.props.contextValue.createHrefForState( // refine will always be defined here because the prop is only given conditionally
|
|
534
|
-
(_ref2 = connectorDesc.refine).call.apply(_ref2, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
434
|
+
(_ref2 = connectorDesc.refine).call.apply(_ref2, [inherits$1$1._assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
535
435
|
});
|
|
536
436
|
|
|
537
|
-
_defineProperty(_assertThisInitialized(_this), "searchForFacetValues", function () {
|
|
437
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "searchForFacetValues", function () {
|
|
538
438
|
var _ref3;
|
|
539
439
|
|
|
540
440
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
@@ -542,20 +442,20 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
542
442
|
}
|
|
543
443
|
|
|
544
444
|
_this.props.contextValue.onSearchForFacetValues( // searchForFacetValues will always be defined here because the prop is only given conditionally
|
|
545
|
-
(_ref3 = connectorDesc.searchForFacetValues).call.apply(_ref3, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
445
|
+
(_ref3 = connectorDesc.searchForFacetValues).call.apply(_ref3, [inherits$1$1._assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
546
446
|
});
|
|
547
447
|
|
|
548
448
|
if (connectorDesc.getSearchParameters) {
|
|
549
|
-
_this.props.contextValue.onSearchParameters(connectorDesc.getSearchParameters.bind(_assertThisInitialized(_this)), {
|
|
449
|
+
_this.props.contextValue.onSearchParameters(connectorDesc.getSearchParameters.bind(inherits$1$1._assertThisInitialized(_this)), {
|
|
550
450
|
ais: _this.props.contextValue,
|
|
551
451
|
multiIndexContext: _this.props.indexContextValue
|
|
552
|
-
}, _this.props, connectorDesc.getMetadata && connectorDesc.getMetadata.bind(_assertThisInitialized(_this)));
|
|
452
|
+
}, _this.props, connectorDesc.getMetadata && connectorDesc.getMetadata.bind(inherits$1$1._assertThisInitialized(_this)));
|
|
553
453
|
}
|
|
554
454
|
|
|
555
455
|
return _this;
|
|
556
456
|
}
|
|
557
457
|
|
|
558
|
-
_createClass(Connector, [{
|
|
458
|
+
inherits$1$1._createClass(Connector, [{
|
|
559
459
|
key: "componentDidMount",
|
|
560
460
|
value: function componentDidMount() {
|
|
561
461
|
var _this2 = this;
|
|
@@ -701,18 +601,18 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
701
601
|
var searchForFacetValuesProps = typeof connectorDesc.searchForFacetValues === 'function' ? {
|
|
702
602
|
searchForItems: this.searchForFacetValues
|
|
703
603
|
} : {};
|
|
704
|
-
return React__default
|
|
604
|
+
return React__default.createElement(Composed, index$5._extends({}, props, providedProps, refineProps, searchForFacetValuesProps));
|
|
705
605
|
}
|
|
706
606
|
}]);
|
|
707
607
|
|
|
708
608
|
return Connector;
|
|
709
609
|
}(React.Component);
|
|
710
610
|
|
|
711
|
-
_defineProperty(Connector, "displayName", "".concat(connectorDesc.displayName, "(").concat(getDisplayName(Composed), ")"));
|
|
611
|
+
inherits$1$1._defineProperty(Connector, "displayName", "".concat(connectorDesc.displayName, "(").concat(getDisplayName(Composed), ")"));
|
|
712
612
|
|
|
713
|
-
_defineProperty(Connector, "propTypes", connectorDesc.propTypes);
|
|
613
|
+
inherits$1$1._defineProperty(Connector, "propTypes", connectorDesc.propTypes);
|
|
714
614
|
|
|
715
|
-
_defineProperty(Connector, "defaultProps", connectorDesc.defaultProps);
|
|
615
|
+
inherits$1$1._defineProperty(Connector, "defaultProps", connectorDesc.defaultProps);
|
|
716
616
|
|
|
717
617
|
return Connector;
|
|
718
618
|
};
|
|
@@ -723,9 +623,9 @@ var createConnectorWithContext = function createConnectorWithContext(connectorDe
|
|
|
723
623
|
var Connector = createConnectorWithoutContext(connectorDesc)(Composed);
|
|
724
624
|
|
|
725
625
|
var ConnectorWrapper = function ConnectorWrapper(props) {
|
|
726
|
-
return React__default
|
|
727
|
-
return React__default
|
|
728
|
-
return React__default
|
|
626
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
627
|
+
return React__default.createElement(IndexConsumer, null, function (indexContextValue) {
|
|
628
|
+
return React__default.createElement(Connector, index$5._extends({
|
|
729
629
|
contextValue: contextValue,
|
|
730
630
|
indexContextValue: indexContextValue
|
|
731
631
|
}, props));
|
|
@@ -837,7 +737,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
837
737
|
});
|
|
838
738
|
}
|
|
839
739
|
|
|
840
|
-
var version = '6.
|
|
740
|
+
var version = '6.10.3';
|
|
841
741
|
|
|
842
742
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
843
743
|
return function (props, propName, componentName) {
|
|
@@ -862,22 +762,22 @@ function translatable(defaultTranslations) {
|
|
|
862
762
|
var Translatable =
|
|
863
763
|
/*#__PURE__*/
|
|
864
764
|
function (_Component) {
|
|
865
|
-
_inherits(Translatable, _Component);
|
|
765
|
+
inherits$1$1._inherits(Translatable, _Component);
|
|
866
766
|
|
|
867
767
|
function Translatable() {
|
|
868
768
|
var _getPrototypeOf2;
|
|
869
769
|
|
|
870
770
|
var _this;
|
|
871
771
|
|
|
872
|
-
_classCallCheck(this, Translatable);
|
|
772
|
+
inherits$1$1._classCallCheck(this, Translatable);
|
|
873
773
|
|
|
874
774
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
875
775
|
args[_key] = arguments[_key];
|
|
876
776
|
}
|
|
877
777
|
|
|
878
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Translatable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
778
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(Translatable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
879
779
|
|
|
880
|
-
_defineProperty(_assertThisInitialized(_this), "translate", function (key) {
|
|
780
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "translate", function (key) {
|
|
881
781
|
var translations = _this.props.translations;
|
|
882
782
|
var translation = translations && translations.hasOwnProperty(key) ? translations[key] : defaultTranslations[key];
|
|
883
783
|
|
|
@@ -895,10 +795,10 @@ function translatable(defaultTranslations) {
|
|
|
895
795
|
return _this;
|
|
896
796
|
}
|
|
897
797
|
|
|
898
|
-
_createClass(Translatable, [{
|
|
798
|
+
inherits$1$1._createClass(Translatable, [{
|
|
899
799
|
key: "render",
|
|
900
800
|
value: function render() {
|
|
901
|
-
return React__default
|
|
801
|
+
return React__default.createElement(Composed, index$5._extends({
|
|
902
802
|
translate: this.translate
|
|
903
803
|
}, this.props));
|
|
904
804
|
}
|
|
@@ -968,7 +868,7 @@ function refineMultiIndex(searchState, nextRefinement, indexId, resetPage) {
|
|
|
968
868
|
var page = resetPage ? {
|
|
969
869
|
page: 1
|
|
970
870
|
} : undefined;
|
|
971
|
-
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, searchState.indices[indexId], nextRefinement, page))) : _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, nextRefinement, page)));
|
|
871
|
+
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices, inherits$1$1._defineProperty({}, indexId, _objectSpread({}, searchState.indices[indexId], nextRefinement, page))) : _objectSpread({}, searchState.indices, inherits$1$1._defineProperty({}, indexId, _objectSpread({}, nextRefinement, page)));
|
|
972
872
|
return _objectSpread({}, searchState, {
|
|
973
873
|
indices: state
|
|
974
874
|
});
|
|
@@ -988,7 +888,7 @@ function refineMultiIndexWithNamespace(searchState, nextRefinement, indexId, res
|
|
|
988
888
|
var page = resetPage ? {
|
|
989
889
|
page: 1
|
|
990
890
|
} : undefined;
|
|
991
|
-
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, searchState.indices[indexId], (_objectSpread4 = {}, _defineProperty(_objectSpread4, namespace, _objectSpread({}, searchState.indices[indexId][namespace], nextRefinement)), _defineProperty(_objectSpread4, "page", 1), _objectSpread4)))) : _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread(_defineProperty({}, namespace, nextRefinement), page)));
|
|
891
|
+
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices, inherits$1$1._defineProperty({}, indexId, _objectSpread({}, searchState.indices[indexId], (_objectSpread4 = {}, inherits$1$1._defineProperty(_objectSpread4, namespace, _objectSpread({}, searchState.indices[indexId][namespace], nextRefinement)), inherits$1$1._defineProperty(_objectSpread4, "page", 1), _objectSpread4)))) : _objectSpread({}, searchState.indices, inherits$1$1._defineProperty({}, indexId, _objectSpread(inherits$1$1._defineProperty({}, namespace, nextRefinement), page)));
|
|
992
892
|
return _objectSpread({}, searchState, {
|
|
993
893
|
indices: state
|
|
994
894
|
});
|
|
@@ -998,7 +898,7 @@ function refineSingleIndexWithNamespace(searchState, nextRefinement, resetPage,
|
|
|
998
898
|
var page = resetPage ? {
|
|
999
899
|
page: 1
|
|
1000
900
|
} : undefined;
|
|
1001
|
-
return _objectSpread({}, searchState, _defineProperty({}, namespace, _objectSpread({}, searchState[namespace], nextRefinement)), page);
|
|
901
|
+
return _objectSpread({}, searchState, inherits$1$1._defineProperty({}, namespace, _objectSpread({}, searchState[namespace], nextRefinement)), page);
|
|
1002
902
|
}
|
|
1003
903
|
|
|
1004
904
|
function getNamespaceAndAttributeName(id) {
|
|
@@ -1117,7 +1017,7 @@ function cleanUpValueWithSingleIndex(_ref3) {
|
|
|
1117
1017
|
attribute = _ref3.attribute;
|
|
1118
1018
|
|
|
1119
1019
|
if (namespace) {
|
|
1120
|
-
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1020
|
+
return _objectSpread({}, searchState, inherits$1$1._defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1121
1021
|
}
|
|
1122
1022
|
|
|
1123
1023
|
return omit(searchState, [id]);
|
|
@@ -1133,13 +1033,13 @@ function cleanUpValueWithMultiIndex(_ref4) {
|
|
|
1133
1033
|
|
|
1134
1034
|
if (namespace && indexSearchState) {
|
|
1135
1035
|
return _objectSpread({}, searchState, {
|
|
1136
|
-
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit(indexSearchState[namespace], [attribute])))))
|
|
1036
|
+
indices: _objectSpread({}, searchState.indices, inherits$1$1._defineProperty({}, indexId, _objectSpread({}, indexSearchState, inherits$1$1._defineProperty({}, namespace, omit(indexSearchState[namespace], [attribute])))))
|
|
1137
1037
|
});
|
|
1138
1038
|
}
|
|
1139
1039
|
|
|
1140
1040
|
if (indexSearchState) {
|
|
1141
1041
|
return _objectSpread({}, searchState, {
|
|
1142
|
-
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1042
|
+
indices: _objectSpread({}, searchState.indices, inherits$1$1._defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1143
1043
|
});
|
|
1144
1044
|
}
|
|
1145
1045
|
|
|
@@ -1177,7 +1077,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1177
1077
|
}) : [];
|
|
1178
1078
|
this._props = props;
|
|
1179
1079
|
|
|
1180
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1080
|
+
var nextValue = inherits$1$1._defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1181
1081
|
|
|
1182
1082
|
return refineValue(nextSearchState, nextValue, {
|
|
1183
1083
|
ais: props.contextValue,
|
|
@@ -1203,7 +1103,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1203
1103
|
return acc;
|
|
1204
1104
|
}, {});
|
|
1205
1105
|
|
|
1206
|
-
var nextValue = _defineProperty({}, id, configureState);
|
|
1106
|
+
var nextValue = inherits$1$1._defineProperty({}, id, configureState);
|
|
1207
1107
|
|
|
1208
1108
|
return refineValue(searchState, nextValue, {
|
|
1209
1109
|
ais: props.contextValue,
|
|
@@ -1251,39 +1151,26 @@ var Configure = connectConfigure(function Configure() {
|
|
|
1251
1151
|
return null;
|
|
1252
1152
|
});
|
|
1253
1153
|
|
|
1254
|
-
function
|
|
1255
|
-
if (
|
|
1154
|
+
function _arrayWithoutHoles(arr) {
|
|
1155
|
+
if (Array.isArray(arr)) {
|
|
1156
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
1157
|
+
arr2[i] = arr[i];
|
|
1158
|
+
}
|
|
1256
1159
|
|
|
1257
|
-
|
|
1258
|
-
arr2[i] = arr[i];
|
|
1160
|
+
return arr2;
|
|
1259
1161
|
}
|
|
1260
|
-
|
|
1261
|
-
return arr2;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
function _arrayWithoutHoles(arr) {
|
|
1265
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1266
1162
|
}
|
|
1267
1163
|
|
|
1268
1164
|
function _iterableToArray(iter) {
|
|
1269
|
-
if (
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1273
|
-
if (!o) return;
|
|
1274
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1275
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1276
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1277
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1278
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1165
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
1279
1166
|
}
|
|
1280
1167
|
|
|
1281
1168
|
function _nonIterableSpread() {
|
|
1282
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1169
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1283
1170
|
}
|
|
1284
1171
|
|
|
1285
1172
|
function _toConsumableArray(arr) {
|
|
1286
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
1173
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
1287
1174
|
}
|
|
1288
1175
|
|
|
1289
1176
|
function clone(value) {
|
|
@@ -6294,7 +6181,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6294
6181
|
}) : [];
|
|
6295
6182
|
this._searchParameters = searchParameters;
|
|
6296
6183
|
|
|
6297
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6184
|
+
var nextValue = inherits$1$1._defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6298
6185
|
|
|
6299
6186
|
return refineValue(nextSearchState, nextValue, {
|
|
6300
6187
|
ais: props.contextValue,
|
|
@@ -6322,7 +6209,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6322
6209
|
return acc;
|
|
6323
6210
|
}, {});
|
|
6324
6211
|
|
|
6325
|
-
var nextValue = _defineProperty({}, id, configureState);
|
|
6212
|
+
var nextValue = inherits$1$1._defineProperty({}, id, configureState);
|
|
6326
6213
|
|
|
6327
6214
|
return refineValue(searchState, nextValue, {
|
|
6328
6215
|
ais: props.contextValue,
|
|
@@ -6336,9 +6223,9 @@ function ConfigureRelatedItems() {
|
|
|
6336
6223
|
}
|
|
6337
6224
|
|
|
6338
6225
|
ConfigureRelatedItems.propTypes = {
|
|
6339
|
-
hit: PropTypes__default
|
|
6340
|
-
matchingPatterns: PropTypes__default
|
|
6341
|
-
transformSearchParameters: PropTypes__default
|
|
6226
|
+
hit: PropTypes__default.object.isRequired,
|
|
6227
|
+
matchingPatterns: PropTypes__default.object.isRequired,
|
|
6228
|
+
transformSearchParameters: PropTypes__default.func
|
|
6342
6229
|
};
|
|
6343
6230
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6344
6231
|
|
|
@@ -6514,9 +6401,9 @@ function getIndexContext(props) {
|
|
|
6514
6401
|
var Index =
|
|
6515
6402
|
/*#__PURE__*/
|
|
6516
6403
|
function (_Component) {
|
|
6517
|
-
_inherits(Index, _Component);
|
|
6404
|
+
inherits$1$1._inherits(Index, _Component);
|
|
6518
6405
|
|
|
6519
|
-
_createClass(Index, null, [{
|
|
6406
|
+
inherits$1$1._createClass(Index, null, [{
|
|
6520
6407
|
key: "getDerivedStateFromProps",
|
|
6521
6408
|
value: function getDerivedStateFromProps(props) {
|
|
6522
6409
|
return {
|
|
@@ -6528,17 +6415,17 @@ function (_Component) {
|
|
|
6528
6415
|
function Index(props) {
|
|
6529
6416
|
var _this;
|
|
6530
6417
|
|
|
6531
|
-
_classCallCheck(this, Index);
|
|
6418
|
+
inherits$1$1._classCallCheck(this, Index);
|
|
6532
6419
|
|
|
6533
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(Index).call(this, props));
|
|
6420
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(Index).call(this, props));
|
|
6534
6421
|
|
|
6535
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
6422
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "state", {
|
|
6536
6423
|
indexContext: getIndexContext(_this.props)
|
|
6537
6424
|
});
|
|
6538
6425
|
|
|
6539
|
-
_defineProperty(_assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
6426
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
6540
6427
|
|
|
6541
|
-
_this.props.contextValue.onSearchParameters(_this.getSearchParameters.bind(_assertThisInitialized(_this)), {
|
|
6428
|
+
_this.props.contextValue.onSearchParameters(_this.getSearchParameters.bind(inherits$1$1._assertThisInitialized(_this)), {
|
|
6542
6429
|
ais: _this.props.contextValue,
|
|
6543
6430
|
multiIndexContext: _this.state.indexContext
|
|
6544
6431
|
}, _this.props, undefined);
|
|
@@ -6546,7 +6433,7 @@ function (_Component) {
|
|
|
6546
6433
|
return _this;
|
|
6547
6434
|
}
|
|
6548
6435
|
|
|
6549
|
-
_createClass(Index, [{
|
|
6436
|
+
inherits$1$1._createClass(Index, [{
|
|
6550
6437
|
key: "componentDidMount",
|
|
6551
6438
|
value: function componentDidMount() {
|
|
6552
6439
|
this.unregisterWidget = this.props.contextValue.widgetsManager.registerWidget(this);
|
|
@@ -6579,7 +6466,7 @@ function (_Component) {
|
|
|
6579
6466
|
return null;
|
|
6580
6467
|
}
|
|
6581
6468
|
|
|
6582
|
-
return React__default
|
|
6469
|
+
return React__default.createElement(IndexProvider, {
|
|
6583
6470
|
value: this.state.indexContext
|
|
6584
6471
|
}, this.props.children);
|
|
6585
6472
|
}
|
|
@@ -6588,16 +6475,16 @@ function (_Component) {
|
|
|
6588
6475
|
return Index;
|
|
6589
6476
|
}(React.Component);
|
|
6590
6477
|
|
|
6591
|
-
_defineProperty(Index, "propTypes", {
|
|
6592
|
-
indexName: PropTypes__default
|
|
6593
|
-
indexId: PropTypes__default
|
|
6594
|
-
children: PropTypes__default
|
|
6478
|
+
inherits$1$1._defineProperty(Index, "propTypes", {
|
|
6479
|
+
indexName: PropTypes__default.string.isRequired,
|
|
6480
|
+
indexId: PropTypes__default.string.isRequired,
|
|
6481
|
+
children: PropTypes__default.node
|
|
6595
6482
|
});
|
|
6596
6483
|
|
|
6597
6484
|
var IndexWrapper = function IndexWrapper(props) {
|
|
6598
6485
|
var inferredIndexId = props.indexName;
|
|
6599
|
-
return React__default
|
|
6600
|
-
return React__default
|
|
6486
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
6487
|
+
return React__default.createElement(Index, index$5._extends({
|
|
6601
6488
|
contextValue: contextValue,
|
|
6602
6489
|
indexId: inferredIndexId
|
|
6603
6490
|
}, props));
|
|
@@ -6605,8 +6492,8 @@ var IndexWrapper = function IndexWrapper(props) {
|
|
|
6605
6492
|
};
|
|
6606
6493
|
|
|
6607
6494
|
IndexWrapper.propTypes = {
|
|
6608
|
-
indexName: PropTypes__default
|
|
6609
|
-
indexId: PropTypes__default
|
|
6495
|
+
indexName: PropTypes__default.string.isRequired,
|
|
6496
|
+
indexId: PropTypes__default.string
|
|
6610
6497
|
};
|
|
6611
6498
|
|
|
6612
6499
|
function createWidgetsManager(onWidgetsUpdate) {
|
|
@@ -6822,7 +6709,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6822
6709
|
.sort(sortIndexWidgetsFirst).reduce(function (indices, widget) {
|
|
6823
6710
|
var indexId = isMultiIndexContext(widget) ? widget.props.indexContextValue.targetedIndex : widget.props.indexId;
|
|
6824
6711
|
var widgets = indices[indexId] || [];
|
|
6825
|
-
return _objectSpread({}, indices, _defineProperty({}, indexId, widgets.concat(widget)));
|
|
6712
|
+
return _objectSpread({}, indices, inherits$1$1._defineProperty({}, indexId, widgets.concat(widget)));
|
|
6826
6713
|
}, {});
|
|
6827
6714
|
var derivedParameters = Object.keys(derivedIndices).map(function (indexId) {
|
|
6828
6715
|
return {
|
|
@@ -6892,7 +6779,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6892
6779
|
results = !isDerivedHelpersEmpty && results.getFacetByName ? {} : results;
|
|
6893
6780
|
|
|
6894
6781
|
if (!isDerivedHelpersEmpty) {
|
|
6895
|
-
results = _objectSpread({}, results, _defineProperty({}, indexId, event.results));
|
|
6782
|
+
results = _objectSpread({}, results, inherits$1$1._defineProperty({}, indexId, event.results));
|
|
6896
6783
|
} else {
|
|
6897
6784
|
results = event.results;
|
|
6898
6785
|
}
|
|
@@ -7040,7 +6927,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7040
6927
|
}));
|
|
7041
6928
|
}, [])
|
|
7042
6929
|
}));
|
|
7043
|
-
client.cache = _objectSpread({}, client.cache, _defineProperty({}, key, JSON.stringify({
|
|
6930
|
+
client.cache = _objectSpread({}, client.cache, inherits$1$1._defineProperty({}, key, JSON.stringify({
|
|
7044
6931
|
results: results.reduce(function (acc, result) {
|
|
7045
6932
|
return acc.concat(result.rawResults);
|
|
7046
6933
|
}, [])
|
|
@@ -7079,7 +6966,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7079
6966
|
};
|
|
7080
6967
|
})
|
|
7081
6968
|
}));
|
|
7082
|
-
client.cache = _objectSpread({}, client.cache, _defineProperty({}, key, JSON.stringify({
|
|
6969
|
+
client.cache = _objectSpread({}, client.cache, inherits$1$1._defineProperty({}, key, JSON.stringify({
|
|
7083
6970
|
results: results.rawResults
|
|
7084
6971
|
})));
|
|
7085
6972
|
}
|
|
@@ -7091,7 +6978,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7091
6978
|
|
|
7092
6979
|
if (Array.isArray(results.results)) {
|
|
7093
6980
|
return results.results.reduce(function (acc, result) {
|
|
7094
|
-
return _objectSpread({}, acc, _defineProperty({}, result._internalIndexId, new algoliasearchHelper_1.SearchResults(new algoliasearchHelper_1.SearchParameters(result.state), result.rawResults)));
|
|
6981
|
+
return _objectSpread({}, acc, inherits$1$1._defineProperty({}, result._internalIndexId, new algoliasearchHelper_1.SearchResults(new algoliasearchHelper_1.SearchParameters(result.state), result.rawResults)));
|
|
7095
6982
|
}, {});
|
|
7096
6983
|
}
|
|
7097
6984
|
|
|
@@ -7146,7 +7033,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7146
7033
|
store.setState(_objectSpread({}, store.getState(), {
|
|
7147
7034
|
error: null,
|
|
7148
7035
|
searchingForFacetValues: false,
|
|
7149
|
-
resultsFacetValues: _objectSpread({}, store.getState().resultsFacetValues, (_objectSpread7 = {}, _defineProperty(_objectSpread7, facetName, content.facetHits), _defineProperty(_objectSpread7, "query", query), _objectSpread7))
|
|
7036
|
+
resultsFacetValues: _objectSpread({}, store.getState().resultsFacetValues, (_objectSpread7 = {}, inherits$1$1._defineProperty(_objectSpread7, facetName, content.facetHits), inherits$1$1._defineProperty(_objectSpread7, "query", query), _objectSpread7))
|
|
7150
7037
|
}));
|
|
7151
7038
|
}, function (error) {
|
|
7152
7039
|
store.setState(_objectSpread({}, store.getState(), {
|
|
@@ -7260,9 +7147,9 @@ function isControlled(props) {
|
|
|
7260
7147
|
var InstantSearch =
|
|
7261
7148
|
/*#__PURE__*/
|
|
7262
7149
|
function (_Component) {
|
|
7263
|
-
_inherits(InstantSearch, _Component);
|
|
7150
|
+
inherits$1$1._inherits(InstantSearch, _Component);
|
|
7264
7151
|
|
|
7265
|
-
_createClass(InstantSearch, null, [{
|
|
7152
|
+
inherits$1$1._createClass(InstantSearch, null, [{
|
|
7266
7153
|
key: "getDerivedStateFromProps",
|
|
7267
7154
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
7268
7155
|
var nextIsControlled = isControlled(nextProps);
|
|
@@ -7285,11 +7172,11 @@ function (_Component) {
|
|
|
7285
7172
|
function InstantSearch(props) {
|
|
7286
7173
|
var _this;
|
|
7287
7174
|
|
|
7288
|
-
_classCallCheck(this, InstantSearch);
|
|
7175
|
+
inherits$1$1._classCallCheck(this, InstantSearch);
|
|
7289
7176
|
|
|
7290
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(InstantSearch).call(this, props));
|
|
7177
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(InstantSearch).call(this, props));
|
|
7291
7178
|
|
|
7292
|
-
_defineProperty(_assertThisInitialized(_this), "isUnmounting", false);
|
|
7179
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "isUnmounting", false);
|
|
7293
7180
|
|
|
7294
7181
|
var instantSearchManager = createInstantSearchManager({
|
|
7295
7182
|
indexName: _this.props.indexName,
|
|
@@ -7302,11 +7189,11 @@ function (_Component) {
|
|
|
7302
7189
|
store: instantSearchManager.store,
|
|
7303
7190
|
widgetsManager: instantSearchManager.widgetsManager,
|
|
7304
7191
|
mainTargetedIndex: _this.props.indexName,
|
|
7305
|
-
onInternalStateUpdate: _this.onWidgetsInternalStateUpdate.bind(_assertThisInitialized(_this)),
|
|
7306
|
-
createHrefForState: _this.createHrefForState.bind(_assertThisInitialized(_this)),
|
|
7307
|
-
onSearchForFacetValues: _this.onSearchForFacetValues.bind(_assertThisInitialized(_this)),
|
|
7308
|
-
onSearchStateChange: _this.onSearchStateChange.bind(_assertThisInitialized(_this)),
|
|
7309
|
-
onSearchParameters: _this.onSearchParameters.bind(_assertThisInitialized(_this))
|
|
7192
|
+
onInternalStateUpdate: _this.onWidgetsInternalStateUpdate.bind(inherits$1$1._assertThisInitialized(_this)),
|
|
7193
|
+
createHrefForState: _this.createHrefForState.bind(inherits$1$1._assertThisInitialized(_this)),
|
|
7194
|
+
onSearchForFacetValues: _this.onSearchForFacetValues.bind(inherits$1$1._assertThisInitialized(_this)),
|
|
7195
|
+
onSearchStateChange: _this.onSearchStateChange.bind(inherits$1$1._assertThisInitialized(_this)),
|
|
7196
|
+
onSearchParameters: _this.onSearchParameters.bind(inherits$1$1._assertThisInitialized(_this))
|
|
7310
7197
|
};
|
|
7311
7198
|
_this.state = {
|
|
7312
7199
|
isControlled: isControlled(_this.props),
|
|
@@ -7316,7 +7203,7 @@ function (_Component) {
|
|
|
7316
7203
|
return _this;
|
|
7317
7204
|
}
|
|
7318
7205
|
|
|
7319
|
-
_createClass(InstantSearch, [{
|
|
7206
|
+
inherits$1$1._createClass(InstantSearch, [{
|
|
7320
7207
|
key: "componentDidUpdate",
|
|
7321
7208
|
value: function componentDidUpdate(prevProps) {
|
|
7322
7209
|
var prevIsControlled = isControlled(prevProps);
|
|
@@ -7408,7 +7295,7 @@ function (_Component) {
|
|
|
7408
7295
|
return null;
|
|
7409
7296
|
}
|
|
7410
7297
|
|
|
7411
|
-
return React__default
|
|
7298
|
+
return React__default.createElement(InstantSearchProvider, {
|
|
7412
7299
|
value: this.state.contextValue
|
|
7413
7300
|
}, this.props.children);
|
|
7414
7301
|
}
|
|
@@ -7417,29 +7304,29 @@ function (_Component) {
|
|
|
7417
7304
|
return InstantSearch;
|
|
7418
7305
|
}(React.Component);
|
|
7419
7306
|
|
|
7420
|
-
_defineProperty(InstantSearch, "defaultProps", {
|
|
7307
|
+
inherits$1$1._defineProperty(InstantSearch, "defaultProps", {
|
|
7421
7308
|
stalledSearchDelay: 200,
|
|
7422
7309
|
refresh: false
|
|
7423
7310
|
});
|
|
7424
7311
|
|
|
7425
|
-
_defineProperty(InstantSearch, "propTypes", {
|
|
7312
|
+
inherits$1$1._defineProperty(InstantSearch, "propTypes", {
|
|
7426
7313
|
// @TODO: These props are currently constant.
|
|
7427
|
-
indexName: PropTypes__default
|
|
7428
|
-
searchClient: PropTypes__default
|
|
7429
|
-
search: PropTypes__default
|
|
7430
|
-
searchForFacetValues: PropTypes__default
|
|
7431
|
-
addAlgoliaAgent: PropTypes__default
|
|
7432
|
-
clearCache: PropTypes__default
|
|
7314
|
+
indexName: PropTypes__default.string.isRequired,
|
|
7315
|
+
searchClient: PropTypes__default.shape({
|
|
7316
|
+
search: PropTypes__default.func.isRequired,
|
|
7317
|
+
searchForFacetValues: PropTypes__default.func,
|
|
7318
|
+
addAlgoliaAgent: PropTypes__default.func,
|
|
7319
|
+
clearCache: PropTypes__default.func
|
|
7433
7320
|
}).isRequired,
|
|
7434
|
-
createURL: PropTypes__default
|
|
7435
|
-
refresh: PropTypes__default
|
|
7436
|
-
searchState: PropTypes__default
|
|
7437
|
-
onSearchStateChange: PropTypes__default
|
|
7438
|
-
onSearchParameters: PropTypes__default
|
|
7439
|
-
widgetsCollector: PropTypes__default
|
|
7440
|
-
resultsState: PropTypes__default
|
|
7441
|
-
children: PropTypes__default
|
|
7442
|
-
stalledSearchDelay: PropTypes__default
|
|
7321
|
+
createURL: PropTypes__default.func,
|
|
7322
|
+
refresh: PropTypes__default.bool,
|
|
7323
|
+
searchState: PropTypes__default.object,
|
|
7324
|
+
onSearchStateChange: PropTypes__default.func,
|
|
7325
|
+
onSearchParameters: PropTypes__default.func,
|
|
7326
|
+
widgetsCollector: PropTypes__default.func,
|
|
7327
|
+
resultsState: PropTypes__default.oneOfType([PropTypes__default.object, PropTypes__default.array]),
|
|
7328
|
+
children: PropTypes__default.node,
|
|
7329
|
+
stalledSearchDelay: PropTypes__default.number
|
|
7443
7330
|
});
|
|
7444
7331
|
|
|
7445
7332
|
var getId$2 = function getId(props) {
|
|
@@ -7450,7 +7337,7 @@ var namespace = 'hierarchicalMenu';
|
|
|
7450
7337
|
function _refine(props, searchState, nextRefinement, context) {
|
|
7451
7338
|
var id = getId$2(props);
|
|
7452
7339
|
|
|
7453
|
-
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7340
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement || '');
|
|
7454
7341
|
|
|
7455
7342
|
var resetPage = true;
|
|
7456
7343
|
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
@@ -7526,7 +7413,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7526
7413
|
|
|
7527
7414
|
return undefined;
|
|
7528
7415
|
},
|
|
7529
|
-
transformItems: PropTypes__default
|
|
7416
|
+
transformItems: PropTypes__default.func
|
|
7530
7417
|
},
|
|
7531
7418
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7532
7419
|
var id = getId$2(props);
|
|
@@ -7575,7 +7462,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7575
7462
|
var connectCurrentRefinements = createConnectorWithContext({
|
|
7576
7463
|
displayName: 'AlgoliaCurrentRefinements',
|
|
7577
7464
|
propTypes: {
|
|
7578
|
-
transformItems: PropTypes__default
|
|
7465
|
+
transformItems: PropTypes__default.func
|
|
7579
7466
|
},
|
|
7580
7467
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata) {
|
|
7581
7468
|
var items = metadata.reduce(function (res, meta) {
|
|
@@ -7683,7 +7570,7 @@ var truncate = function truncate() {
|
|
|
7683
7570
|
function _refine$1(props, searchState, nextRefinement, context) {
|
|
7684
7571
|
var id = getId$3(props);
|
|
7685
7572
|
|
|
7686
|
-
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7573
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement || '');
|
|
7687
7574
|
|
|
7688
7575
|
var resetPage = true;
|
|
7689
7576
|
return refineValue(searchState, nextValue, context, resetPage, namespace$1);
|
|
@@ -7754,14 +7641,14 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7754
7641
|
|
|
7755
7642
|
return undefined;
|
|
7756
7643
|
},
|
|
7757
|
-
separator: PropTypes__default
|
|
7758
|
-
rootPath: PropTypes__default
|
|
7759
|
-
showParentLevel: PropTypes__default
|
|
7760
|
-
defaultRefinement: PropTypes__default
|
|
7761
|
-
showMore: PropTypes__default
|
|
7762
|
-
limit: PropTypes__default
|
|
7763
|
-
showMoreLimit: PropTypes__default
|
|
7764
|
-
transformItems: PropTypes__default
|
|
7644
|
+
separator: PropTypes__default.string,
|
|
7645
|
+
rootPath: PropTypes__default.string,
|
|
7646
|
+
showParentLevel: PropTypes__default.bool,
|
|
7647
|
+
defaultRefinement: PropTypes__default.string,
|
|
7648
|
+
showMore: PropTypes__default.bool,
|
|
7649
|
+
limit: PropTypes__default.number,
|
|
7650
|
+
showMoreLimit: PropTypes__default.number,
|
|
7651
|
+
transformItems: PropTypes__default.func
|
|
7765
7652
|
},
|
|
7766
7653
|
defaultProps: {
|
|
7767
7654
|
showMore: false,
|
|
@@ -8074,12 +7961,12 @@ function getCurrentRefinement$1(props, searchState, context) {
|
|
|
8074
7961
|
var connectHitsPerPage = createConnectorWithContext({
|
|
8075
7962
|
displayName: 'AlgoliaHitsPerPage',
|
|
8076
7963
|
propTypes: {
|
|
8077
|
-
defaultRefinement: PropTypes__default
|
|
8078
|
-
items: PropTypes__default
|
|
8079
|
-
label: PropTypes__default
|
|
8080
|
-
value: PropTypes__default
|
|
7964
|
+
defaultRefinement: PropTypes__default.number.isRequired,
|
|
7965
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
7966
|
+
label: PropTypes__default.string,
|
|
7967
|
+
value: PropTypes__default.number.isRequired
|
|
8081
7968
|
})).isRequired,
|
|
8082
|
-
transformItems: PropTypes__default
|
|
7969
|
+
transformItems: PropTypes__default.func
|
|
8083
7970
|
},
|
|
8084
7971
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
8085
7972
|
var currentRefinement = getCurrentRefinement$1(props, searchState, {
|
|
@@ -8101,7 +7988,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8101
7988
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8102
7989
|
var id = getId$4();
|
|
8103
7990
|
|
|
8104
|
-
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
7991
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement);
|
|
8105
7992
|
|
|
8106
7993
|
var resetPage = true;
|
|
8107
7994
|
return refineValue(searchState, nextValue, {
|
|
@@ -8265,7 +8152,7 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8265
8152
|
refine: function refine(props, searchState, event, index) {
|
|
8266
8153
|
var id = getId$5();
|
|
8267
8154
|
|
|
8268
|
-
var nextValue = _defineProperty({}, id, index + 1);
|
|
8155
|
+
var nextValue = inherits$1$1._defineProperty({}, id, index + 1);
|
|
8269
8156
|
|
|
8270
8157
|
var resetPage = false;
|
|
8271
8158
|
return refineValue(searchState, nextValue, {
|
|
@@ -8306,7 +8193,7 @@ function getLimit(_ref) {
|
|
|
8306
8193
|
function _refine$2(props, searchState, nextRefinement, context) {
|
|
8307
8194
|
var id = getId$6(props);
|
|
8308
8195
|
|
|
8309
|
-
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8196
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8310
8197
|
|
|
8311
8198
|
var resetPage = true;
|
|
8312
8199
|
return refineValue(searchState, nextValue, context, resetPage, namespace$2);
|
|
@@ -8341,13 +8228,13 @@ var defaultSortBy = ['count:desc', 'name:asc'];
|
|
|
8341
8228
|
var connectMenu = createConnectorWithContext({
|
|
8342
8229
|
displayName: 'AlgoliaMenu',
|
|
8343
8230
|
propTypes: {
|
|
8344
|
-
attribute: PropTypes__default
|
|
8345
|
-
showMore: PropTypes__default
|
|
8346
|
-
limit: PropTypes__default
|
|
8347
|
-
showMoreLimit: PropTypes__default
|
|
8348
|
-
defaultRefinement: PropTypes__default
|
|
8349
|
-
transformItems: PropTypes__default
|
|
8350
|
-
searchable: PropTypes__default
|
|
8231
|
+
attribute: PropTypes__default.string.isRequired,
|
|
8232
|
+
showMore: PropTypes__default.bool,
|
|
8233
|
+
limit: PropTypes__default.number,
|
|
8234
|
+
showMoreLimit: PropTypes__default.number,
|
|
8235
|
+
defaultRefinement: PropTypes__default.string,
|
|
8236
|
+
transformItems: PropTypes__default.func,
|
|
8237
|
+
searchable: PropTypes__default.bool
|
|
8351
8238
|
},
|
|
8352
8239
|
defaultProps: {
|
|
8353
8240
|
showMore: false,
|
|
@@ -8497,7 +8384,10 @@ function _arrayWithHoles(arr) {
|
|
|
8497
8384
|
}
|
|
8498
8385
|
|
|
8499
8386
|
function _iterableToArrayLimit(arr, i) {
|
|
8500
|
-
if (
|
|
8387
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
8388
|
+
return;
|
|
8389
|
+
}
|
|
8390
|
+
|
|
8501
8391
|
var _arr = [];
|
|
8502
8392
|
var _n = true;
|
|
8503
8393
|
var _d = false;
|
|
@@ -8524,11 +8414,11 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
8524
8414
|
}
|
|
8525
8415
|
|
|
8526
8416
|
function _nonIterableRest() {
|
|
8527
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8417
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
8528
8418
|
}
|
|
8529
8419
|
|
|
8530
8420
|
function _slicedToArray(arr, i) {
|
|
8531
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
8421
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
8532
8422
|
}
|
|
8533
8423
|
|
|
8534
8424
|
function stringifyItem(item) {
|
|
@@ -8555,8 +8445,8 @@ function parseItem(value) {
|
|
|
8555
8445
|
endStr = _value$split2[1];
|
|
8556
8446
|
|
|
8557
8447
|
return {
|
|
8558
|
-
start: startStr.length > 0 ?
|
|
8559
|
-
end: endStr.length > 0 ?
|
|
8448
|
+
start: startStr.length > 0 ? parseInt(startStr, 10) : null,
|
|
8449
|
+
end: endStr.length > 0 ? parseInt(endStr, 10) : null
|
|
8560
8450
|
};
|
|
8561
8451
|
}
|
|
8562
8452
|
|
|
@@ -8587,7 +8477,7 @@ function itemHasRefinement(attribute, results, value) {
|
|
|
8587
8477
|
}
|
|
8588
8478
|
|
|
8589
8479
|
function _refine$3(props, searchState, nextRefinement, context) {
|
|
8590
|
-
var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
|
|
8480
|
+
var nextValue = inherits$1$1._defineProperty({}, getId$7(props), nextRefinement);
|
|
8591
8481
|
|
|
8592
8482
|
var resetPage = true;
|
|
8593
8483
|
return refineValue(searchState, nextValue, context, resetPage, namespace$3);
|
|
@@ -8617,14 +8507,14 @@ function _cleanUp$2(props, searchState, context) {
|
|
|
8617
8507
|
var connectNumericMenu = createConnectorWithContext({
|
|
8618
8508
|
displayName: 'AlgoliaNumericMenu',
|
|
8619
8509
|
propTypes: {
|
|
8620
|
-
id: PropTypes__default
|
|
8621
|
-
attribute: PropTypes__default
|
|
8622
|
-
items: PropTypes__default
|
|
8623
|
-
label: PropTypes__default
|
|
8624
|
-
start: PropTypes__default
|
|
8625
|
-
end: PropTypes__default
|
|
8510
|
+
id: PropTypes__default.string,
|
|
8511
|
+
attribute: PropTypes__default.string.isRequired,
|
|
8512
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
8513
|
+
label: PropTypes__default.node,
|
|
8514
|
+
start: PropTypes__default.number,
|
|
8515
|
+
end: PropTypes__default.number
|
|
8626
8516
|
})).isRequired,
|
|
8627
|
-
transformItems: PropTypes__default
|
|
8517
|
+
transformItems: PropTypes__default.func
|
|
8628
8518
|
},
|
|
8629
8519
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
8630
8520
|
var attribute = props.attribute;
|
|
@@ -8762,7 +8652,7 @@ function getCurrentRefinement$5(props, searchState, context) {
|
|
|
8762
8652
|
function _refine$4(props, searchState, nextPage, context) {
|
|
8763
8653
|
var id = getId$8();
|
|
8764
8654
|
|
|
8765
|
-
var nextValue = _defineProperty({}, id, nextPage);
|
|
8655
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextPage);
|
|
8766
8656
|
|
|
8767
8657
|
var resetPage = false;
|
|
8768
8658
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
@@ -9001,7 +8891,7 @@ function _refine$5(props, searchState, nextRefinement, currentRange, context) {
|
|
|
9001
8891
|
var id = getId$9(props);
|
|
9002
8892
|
var resetPage = true;
|
|
9003
8893
|
|
|
9004
|
-
var nextValue = _defineProperty({}, id, {
|
|
8894
|
+
var nextValue = inherits$1$1._defineProperty({}, id, {
|
|
9005
8895
|
min: nextValueForRefinement(props.min !== undefined, isMinReset, currentMinRange, nextMinAsNumber),
|
|
9006
8896
|
max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
|
|
9007
8897
|
});
|
|
@@ -9016,17 +8906,17 @@ function _cleanUp$3(props, searchState, context) {
|
|
|
9016
8906
|
var connectRange = createConnectorWithContext({
|
|
9017
8907
|
displayName: 'AlgoliaRange',
|
|
9018
8908
|
propTypes: {
|
|
9019
|
-
id: PropTypes__default
|
|
9020
|
-
attribute: PropTypes__default
|
|
9021
|
-
defaultRefinement: PropTypes__default
|
|
9022
|
-
min: PropTypes__default
|
|
9023
|
-
max: PropTypes__default
|
|
8909
|
+
id: PropTypes__default.string,
|
|
8910
|
+
attribute: PropTypes__default.string.isRequired,
|
|
8911
|
+
defaultRefinement: PropTypes__default.shape({
|
|
8912
|
+
min: PropTypes__default.number,
|
|
8913
|
+
max: PropTypes__default.number
|
|
9024
8914
|
}),
|
|
9025
|
-
min: PropTypes__default
|
|
9026
|
-
max: PropTypes__default
|
|
9027
|
-
precision: PropTypes__default
|
|
9028
|
-
header: PropTypes__default
|
|
9029
|
-
footer: PropTypes__default
|
|
8915
|
+
min: PropTypes__default.number,
|
|
8916
|
+
max: PropTypes__default.number,
|
|
8917
|
+
precision: PropTypes__default.number,
|
|
8918
|
+
header: PropTypes__default.node,
|
|
8919
|
+
footer: PropTypes__default.node
|
|
9030
8920
|
},
|
|
9031
8921
|
defaultProps: {
|
|
9032
8922
|
precision: 0
|
|
@@ -9211,7 +9101,7 @@ function _refine$6(props, searchState, nextRefinement, context) {
|
|
|
9211
9101
|
// {foo: ['bar']} => "foo[0]=bar"
|
|
9212
9102
|
// {foo: []} => ""
|
|
9213
9103
|
|
|
9214
|
-
var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9104
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9215
9105
|
|
|
9216
9106
|
var resetPage = true;
|
|
9217
9107
|
return refineValue(searchState, nextValue, context, resetPage, namespace$5);
|
|
@@ -9249,15 +9139,15 @@ var sortBy$1 = ['isRefined', 'count:desc', 'name:asc'];
|
|
|
9249
9139
|
var connectRefinementList = createConnectorWithContext({
|
|
9250
9140
|
displayName: 'AlgoliaRefinementList',
|
|
9251
9141
|
propTypes: {
|
|
9252
|
-
id: PropTypes__default
|
|
9253
|
-
attribute: PropTypes__default
|
|
9254
|
-
operator: PropTypes__default
|
|
9255
|
-
showMore: PropTypes__default
|
|
9256
|
-
limit: PropTypes__default
|
|
9257
|
-
showMoreLimit: PropTypes__default
|
|
9258
|
-
defaultRefinement: PropTypes__default
|
|
9259
|
-
searchable: PropTypes__default
|
|
9260
|
-
transformItems: PropTypes__default
|
|
9142
|
+
id: PropTypes__default.string,
|
|
9143
|
+
attribute: PropTypes__default.string.isRequired,
|
|
9144
|
+
operator: PropTypes__default.oneOf(['and', 'or']),
|
|
9145
|
+
showMore: PropTypes__default.bool,
|
|
9146
|
+
limit: PropTypes__default.number,
|
|
9147
|
+
showMoreLimit: PropTypes__default.number,
|
|
9148
|
+
defaultRefinement: PropTypes__default.arrayOf(PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number])),
|
|
9149
|
+
searchable: PropTypes__default.bool,
|
|
9150
|
+
transformItems: PropTypes__default.func
|
|
9261
9151
|
},
|
|
9262
9152
|
defaultProps: {
|
|
9263
9153
|
operator: 'or',
|
|
@@ -9413,7 +9303,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9413
9303
|
var connectScrollTo = createConnectorWithContext({
|
|
9414
9304
|
displayName: 'AlgoliaScrollTo',
|
|
9415
9305
|
propTypes: {
|
|
9416
|
-
scrollOn: PropTypes__default
|
|
9306
|
+
scrollOn: PropTypes__default.string
|
|
9417
9307
|
},
|
|
9418
9308
|
defaultProps: {
|
|
9419
9309
|
scrollOn: 'page'
|
|
@@ -9478,7 +9368,7 @@ function getCurrentRefinement$8(props, searchState, context) {
|
|
|
9478
9368
|
function _refine$7(props, searchState, nextRefinement, context) {
|
|
9479
9369
|
var id = getId$b();
|
|
9480
9370
|
|
|
9481
|
-
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9371
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement);
|
|
9482
9372
|
|
|
9483
9373
|
var resetPage = true;
|
|
9484
9374
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
@@ -9502,7 +9392,7 @@ function _cleanUp$5(props, searchState, context) {
|
|
|
9502
9392
|
var connectSearchBox = createConnectorWithContext({
|
|
9503
9393
|
displayName: 'AlgoliaSearchBox',
|
|
9504
9394
|
propTypes: {
|
|
9505
|
-
defaultRefinement: PropTypes__default
|
|
9395
|
+
defaultRefinement: PropTypes__default.string
|
|
9506
9396
|
},
|
|
9507
9397
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9508
9398
|
return {
|
|
@@ -9594,7 +9484,7 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9594
9484
|
}));
|
|
9595
9485
|
},
|
|
9596
9486
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9597
|
-
var nextValue = _defineProperty({}, getId$c(), nextRefinement);
|
|
9487
|
+
var nextValue = inherits$1$1._defineProperty({}, getId$c(), nextRefinement);
|
|
9598
9488
|
|
|
9599
9489
|
var resetPage = true;
|
|
9600
9490
|
return refineValue(searchState, nextValue, {
|
|
@@ -9638,12 +9528,12 @@ function getCurrentRefinement$a(props, searchState, context) {
|
|
|
9638
9528
|
var connectSortBy = createConnectorWithContext({
|
|
9639
9529
|
displayName: 'AlgoliaSortBy',
|
|
9640
9530
|
propTypes: {
|
|
9641
|
-
defaultRefinement: PropTypes__default
|
|
9642
|
-
items: PropTypes__default
|
|
9643
|
-
label: PropTypes__default
|
|
9644
|
-
value: PropTypes__default
|
|
9531
|
+
defaultRefinement: PropTypes__default.string,
|
|
9532
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
9533
|
+
label: PropTypes__default.string,
|
|
9534
|
+
value: PropTypes__default.string.isRequired
|
|
9645
9535
|
})).isRequired,
|
|
9646
|
-
transformItems: PropTypes__default
|
|
9536
|
+
transformItems: PropTypes__default.func
|
|
9647
9537
|
},
|
|
9648
9538
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
9649
9539
|
var currentRefinement = getCurrentRefinement$a(props, searchState, {
|
|
@@ -9665,7 +9555,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9665
9555
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9666
9556
|
var id = getId$d();
|
|
9667
9557
|
|
|
9668
|
-
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9558
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement);
|
|
9669
9559
|
|
|
9670
9560
|
var resetPage = true;
|
|
9671
9561
|
return refineValue(searchState, nextValue, {
|
|
@@ -9744,7 +9634,7 @@ function getCurrentRefinement$b(props, searchState, context) {
|
|
|
9744
9634
|
function _refine$8(props, searchState, nextRefinement, context) {
|
|
9745
9635
|
var id = getId$e(props);
|
|
9746
9636
|
|
|
9747
|
-
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9637
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9748
9638
|
|
|
9749
9639
|
var resetPage = true;
|
|
9750
9640
|
return refineValue(searchState, nextValue, context, resetPage, namespace$6);
|
|
@@ -9777,11 +9667,11 @@ function _cleanUp$6(props, searchState, context) {
|
|
|
9777
9667
|
var connectToggleRefinement = createConnectorWithContext({
|
|
9778
9668
|
displayName: 'AlgoliaToggle',
|
|
9779
9669
|
propTypes: {
|
|
9780
|
-
label: PropTypes__default
|
|
9781
|
-
attribute: PropTypes__default
|
|
9782
|
-
value: PropTypes__default
|
|
9783
|
-
filter: PropTypes__default
|
|
9784
|
-
defaultRefinement: PropTypes__default
|
|
9670
|
+
label: PropTypes__default.string.isRequired,
|
|
9671
|
+
attribute: PropTypes__default.string.isRequired,
|
|
9672
|
+
value: PropTypes__default.any.isRequired,
|
|
9673
|
+
filter: PropTypes__default.func,
|
|
9674
|
+
defaultRefinement: PropTypes__default.bool
|
|
9785
9675
|
},
|
|
9786
9676
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9787
9677
|
var attribute = props.attribute,
|
|
@@ -9928,7 +9818,7 @@ function _refine$9(props, searchState, nextRefinement, context) {
|
|
|
9928
9818
|
}, props.additionalQueryParameters({
|
|
9929
9819
|
query: nextRefinement
|
|
9930
9820
|
})) : {};
|
|
9931
|
-
var nextValue = (_nextValue = {}, _defineProperty(_nextValue, id, nextRefinement), _defineProperty(_nextValue, voiceParams, _objectSpread({}, queryLanguages, additionalQueryParameters)), _nextValue);
|
|
9821
|
+
var nextValue = (_nextValue = {}, inherits$1$1._defineProperty(_nextValue, id, nextRefinement), inherits$1$1._defineProperty(_nextValue, voiceParams, _objectSpread({}, queryLanguages, additionalQueryParameters)), _nextValue);
|
|
9932
9822
|
var resetPage = true;
|
|
9933
9823
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9934
9824
|
}
|
|
@@ -9941,7 +9831,7 @@ function _cleanUp$7(props, searchState, context) {
|
|
|
9941
9831
|
var connectVoiceSearch = createConnectorWithContext({
|
|
9942
9832
|
displayName: 'AlgoliaVoiceSearch',
|
|
9943
9833
|
propTypes: {
|
|
9944
|
-
defaultRefinement: PropTypes__default
|
|
9834
|
+
defaultRefinement: PropTypes__default.string
|
|
9945
9835
|
},
|
|
9946
9836
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9947
9837
|
return {
|
|
@@ -10014,7 +9904,7 @@ var createClassNames = function createClassNames(block) {
|
|
|
10014
9904
|
var baseClassName = "".concat(prefix, "-").concat(block);
|
|
10015
9905
|
return element ? "".concat(baseClassName, "-").concat(element) : baseClassName;
|
|
10016
9906
|
});
|
|
10017
|
-
return index.classnames(suitElements);
|
|
9907
|
+
return index$5.classnames(suitElements);
|
|
10018
9908
|
};
|
|
10019
9909
|
};
|
|
10020
9910
|
var isSpecialClick = function isSpecialClick(event) {
|
|
@@ -10066,26 +9956,26 @@ var _createContext$1 = React.createContext(function setCanRefine() {}),
|
|
|
10066
9956
|
var Panel =
|
|
10067
9957
|
/*#__PURE__*/
|
|
10068
9958
|
function (_Component) {
|
|
10069
|
-
_inherits(Panel, _Component);
|
|
9959
|
+
inherits$1$1._inherits(Panel, _Component);
|
|
10070
9960
|
|
|
10071
9961
|
function Panel() {
|
|
10072
9962
|
var _getPrototypeOf2;
|
|
10073
9963
|
|
|
10074
9964
|
var _this;
|
|
10075
9965
|
|
|
10076
|
-
_classCallCheck(this, Panel);
|
|
9966
|
+
inherits$1$1._classCallCheck(this, Panel);
|
|
10077
9967
|
|
|
10078
9968
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10079
9969
|
args[_key] = arguments[_key];
|
|
10080
9970
|
}
|
|
10081
9971
|
|
|
10082
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9972
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10083
9973
|
|
|
10084
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
9974
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "state", {
|
|
10085
9975
|
canRefine: true
|
|
10086
9976
|
});
|
|
10087
9977
|
|
|
10088
|
-
_defineProperty(_assertThisInitialized(_this), "setCanRefine", function (nextCanRefine) {
|
|
9978
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "setCanRefine", function (nextCanRefine) {
|
|
10089
9979
|
_this.setState({
|
|
10090
9980
|
canRefine: nextCanRefine
|
|
10091
9981
|
});
|
|
@@ -10094,7 +9984,7 @@ function (_Component) {
|
|
|
10094
9984
|
return _this;
|
|
10095
9985
|
}
|
|
10096
9986
|
|
|
10097
|
-
_createClass(Panel, [{
|
|
9987
|
+
inherits$1$1._createClass(Panel, [{
|
|
10098
9988
|
key: "render",
|
|
10099
9989
|
value: function render() {
|
|
10100
9990
|
var _this$props = this.props,
|
|
@@ -10103,15 +9993,15 @@ function (_Component) {
|
|
|
10103
9993
|
header = _this$props.header,
|
|
10104
9994
|
footer = _this$props.footer;
|
|
10105
9995
|
var canRefine = this.state.canRefine;
|
|
10106
|
-
return React__default
|
|
10107
|
-
className: index.classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
10108
|
-
}, header && React__default
|
|
9996
|
+
return React__default.createElement("div", {
|
|
9997
|
+
className: index$5.classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
9998
|
+
}, header && React__default.createElement("div", {
|
|
10109
9999
|
className: cx('header')
|
|
10110
|
-
}, header), React__default
|
|
10000
|
+
}, header), React__default.createElement("div", {
|
|
10111
10001
|
className: cx('body')
|
|
10112
|
-
}, React__default
|
|
10002
|
+
}, React__default.createElement(PanelProvider, {
|
|
10113
10003
|
value: this.setCanRefine
|
|
10114
|
-
}, children)), footer && React__default
|
|
10004
|
+
}, children)), footer && React__default.createElement("div", {
|
|
10115
10005
|
className: cx('footer')
|
|
10116
10006
|
}, footer));
|
|
10117
10007
|
}
|
|
@@ -10120,14 +10010,14 @@ function (_Component) {
|
|
|
10120
10010
|
return Panel;
|
|
10121
10011
|
}(React.Component);
|
|
10122
10012
|
|
|
10123
|
-
_defineProperty(Panel, "propTypes", {
|
|
10124
|
-
children: PropTypes__default
|
|
10125
|
-
className: PropTypes__default
|
|
10126
|
-
header: PropTypes__default
|
|
10127
|
-
footer: PropTypes__default
|
|
10013
|
+
inherits$1$1._defineProperty(Panel, "propTypes", {
|
|
10014
|
+
children: PropTypes__default.node.isRequired,
|
|
10015
|
+
className: PropTypes__default.string,
|
|
10016
|
+
header: PropTypes__default.node,
|
|
10017
|
+
footer: PropTypes__default.node
|
|
10128
10018
|
});
|
|
10129
10019
|
|
|
10130
|
-
_defineProperty(Panel, "defaultProps", {
|
|
10020
|
+
inherits$1$1._defineProperty(Panel, "defaultProps", {
|
|
10131
10021
|
className: '',
|
|
10132
10022
|
header: null,
|
|
10133
10023
|
footer: null
|
|
@@ -10136,15 +10026,15 @@ _defineProperty(Panel, "defaultProps", {
|
|
|
10136
10026
|
var PanelCallbackHandler =
|
|
10137
10027
|
/*#__PURE__*/
|
|
10138
10028
|
function (_Component) {
|
|
10139
|
-
_inherits(PanelCallbackHandler, _Component);
|
|
10029
|
+
inherits$1$1._inherits(PanelCallbackHandler, _Component);
|
|
10140
10030
|
|
|
10141
10031
|
function PanelCallbackHandler() {
|
|
10142
|
-
_classCallCheck(this, PanelCallbackHandler);
|
|
10032
|
+
inherits$1$1._classCallCheck(this, PanelCallbackHandler);
|
|
10143
10033
|
|
|
10144
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(PanelCallbackHandler).apply(this, arguments));
|
|
10034
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(PanelCallbackHandler).apply(this, arguments));
|
|
10145
10035
|
}
|
|
10146
10036
|
|
|
10147
|
-
_createClass(PanelCallbackHandler, [{
|
|
10037
|
+
inherits$1$1._createClass(PanelCallbackHandler, [{
|
|
10148
10038
|
key: "componentDidMount",
|
|
10149
10039
|
value: function componentDidMount() {
|
|
10150
10040
|
this.props.setCanRefine(this.props.canRefine);
|
|
@@ -10166,17 +10056,17 @@ function (_Component) {
|
|
|
10166
10056
|
return PanelCallbackHandler;
|
|
10167
10057
|
}(React.Component);
|
|
10168
10058
|
|
|
10169
|
-
_defineProperty(PanelCallbackHandler, "propTypes", {
|
|
10170
|
-
children: PropTypes__default
|
|
10171
|
-
canRefine: PropTypes__default
|
|
10172
|
-
setCanRefine: PropTypes__default
|
|
10059
|
+
inherits$1$1._defineProperty(PanelCallbackHandler, "propTypes", {
|
|
10060
|
+
children: PropTypes__default.node.isRequired,
|
|
10061
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10062
|
+
setCanRefine: PropTypes__default.func.isRequired
|
|
10173
10063
|
});
|
|
10174
10064
|
|
|
10175
10065
|
var PanelWrapper = function PanelWrapper(_ref) {
|
|
10176
10066
|
var canRefine = _ref.canRefine,
|
|
10177
10067
|
children = _ref.children;
|
|
10178
|
-
return React__default
|
|
10179
|
-
return React__default
|
|
10068
|
+
return React__default.createElement(PanelConsumer, null, function (setCanRefine) {
|
|
10069
|
+
return React__default.createElement(PanelCallbackHandler, {
|
|
10180
10070
|
setCanRefine: setCanRefine,
|
|
10181
10071
|
canRefine: canRefine
|
|
10182
10072
|
}, children);
|
|
@@ -10184,29 +10074,29 @@ var PanelWrapper = function PanelWrapper(_ref) {
|
|
|
10184
10074
|
};
|
|
10185
10075
|
|
|
10186
10076
|
PanelWrapper.propTypes = {
|
|
10187
|
-
canRefine: PropTypes__default
|
|
10188
|
-
children: PropTypes__default
|
|
10077
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10078
|
+
children: PropTypes__default.node.isRequired
|
|
10189
10079
|
};
|
|
10190
10080
|
|
|
10191
10081
|
var Link =
|
|
10192
10082
|
/*#__PURE__*/
|
|
10193
10083
|
function (_Component) {
|
|
10194
|
-
_inherits(Link, _Component);
|
|
10084
|
+
inherits$1$1._inherits(Link, _Component);
|
|
10195
10085
|
|
|
10196
10086
|
function Link() {
|
|
10197
10087
|
var _getPrototypeOf2;
|
|
10198
10088
|
|
|
10199
10089
|
var _this;
|
|
10200
10090
|
|
|
10201
|
-
_classCallCheck(this, Link);
|
|
10091
|
+
inherits$1$1._classCallCheck(this, Link);
|
|
10202
10092
|
|
|
10203
10093
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10204
10094
|
args[_key] = arguments[_key];
|
|
10205
10095
|
}
|
|
10206
10096
|
|
|
10207
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Link)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10097
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(Link)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10208
10098
|
|
|
10209
|
-
_defineProperty(_assertThisInitialized(_this), "onClick", function (e) {
|
|
10099
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onClick", function (e) {
|
|
10210
10100
|
if (isSpecialClick(e)) {
|
|
10211
10101
|
return;
|
|
10212
10102
|
}
|
|
@@ -10219,10 +10109,10 @@ function (_Component) {
|
|
|
10219
10109
|
return _this;
|
|
10220
10110
|
}
|
|
10221
10111
|
|
|
10222
|
-
_createClass(Link, [{
|
|
10112
|
+
inherits$1$1._createClass(Link, [{
|
|
10223
10113
|
key: "render",
|
|
10224
10114
|
value: function render() {
|
|
10225
|
-
return React__default
|
|
10115
|
+
return React__default.createElement("a", index$5._extends({}, this.props, {
|
|
10226
10116
|
onClick: this.onClick
|
|
10227
10117
|
}));
|
|
10228
10118
|
}
|
|
@@ -10231,28 +10121,28 @@ function (_Component) {
|
|
|
10231
10121
|
return Link;
|
|
10232
10122
|
}(React.Component);
|
|
10233
10123
|
|
|
10234
|
-
_defineProperty(Link, "propTypes", {
|
|
10235
|
-
onClick: PropTypes__default
|
|
10124
|
+
inherits$1$1._defineProperty(Link, "propTypes", {
|
|
10125
|
+
onClick: PropTypes__default.func.isRequired
|
|
10236
10126
|
});
|
|
10237
10127
|
|
|
10238
10128
|
var cx$1 = createClassNames('Breadcrumb');
|
|
10239
|
-
var itemsPropType = PropTypes__default
|
|
10240
|
-
label: PropTypes__default
|
|
10241
|
-
value: PropTypes__default
|
|
10129
|
+
var itemsPropType = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10130
|
+
label: PropTypes__default.string.isRequired,
|
|
10131
|
+
value: PropTypes__default.string.isRequired
|
|
10242
10132
|
}));
|
|
10243
10133
|
|
|
10244
10134
|
var Breadcrumb =
|
|
10245
10135
|
/*#__PURE__*/
|
|
10246
10136
|
function (_Component) {
|
|
10247
|
-
_inherits(Breadcrumb, _Component);
|
|
10137
|
+
inherits$1$1._inherits(Breadcrumb, _Component);
|
|
10248
10138
|
|
|
10249
10139
|
function Breadcrumb() {
|
|
10250
|
-
_classCallCheck(this, Breadcrumb);
|
|
10140
|
+
inherits$1$1._classCallCheck(this, Breadcrumb);
|
|
10251
10141
|
|
|
10252
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Breadcrumb).apply(this, arguments));
|
|
10142
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(Breadcrumb).apply(this, arguments));
|
|
10253
10143
|
}
|
|
10254
10144
|
|
|
10255
|
-
_createClass(Breadcrumb, [{
|
|
10145
|
+
inherits$1$1._createClass(Breadcrumb, [{
|
|
10256
10146
|
key: "render",
|
|
10257
10147
|
value: function render() {
|
|
10258
10148
|
var _this$props = this.props,
|
|
@@ -10264,9 +10154,9 @@ function (_Component) {
|
|
|
10264
10154
|
separator = _this$props.separator,
|
|
10265
10155
|
translate = _this$props.translate,
|
|
10266
10156
|
className = _this$props.className;
|
|
10267
|
-
var rootPath = canRefine ? React__default
|
|
10157
|
+
var rootPath = canRefine ? React__default.createElement("li", {
|
|
10268
10158
|
className: cx$1('item')
|
|
10269
|
-
}, React__default
|
|
10159
|
+
}, React__default.createElement(Link, {
|
|
10270
10160
|
className: cx$1('link'),
|
|
10271
10161
|
onClick: function onClick() {
|
|
10272
10162
|
return !rootURL ? refine() : null;
|
|
@@ -10275,12 +10165,12 @@ function (_Component) {
|
|
|
10275
10165
|
}, translate('rootLabel'))) : null;
|
|
10276
10166
|
var breadcrumb = items.map(function (item, idx) {
|
|
10277
10167
|
var isLast = idx === items.length - 1;
|
|
10278
|
-
return React__default
|
|
10168
|
+
return React__default.createElement("li", {
|
|
10279
10169
|
className: cx$1('item', isLast && 'item--selected'),
|
|
10280
10170
|
key: idx
|
|
10281
|
-
}, React__default
|
|
10171
|
+
}, React__default.createElement("span", {
|
|
10282
10172
|
className: cx$1('separator')
|
|
10283
|
-
}, separator), !isLast ? React__default
|
|
10173
|
+
}, separator), !isLast ? React__default.createElement(Link, {
|
|
10284
10174
|
className: cx$1('link'),
|
|
10285
10175
|
onClick: function onClick() {
|
|
10286
10176
|
return refine(item.value);
|
|
@@ -10288,9 +10178,9 @@ function (_Component) {
|
|
|
10288
10178
|
href: createURL(item.value)
|
|
10289
10179
|
}, item.label) : item.label);
|
|
10290
10180
|
});
|
|
10291
|
-
return React__default
|
|
10292
|
-
className: index.classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10293
|
-
}, React__default
|
|
10181
|
+
return React__default.createElement("div", {
|
|
10182
|
+
className: index$5.classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10183
|
+
}, React__default.createElement("ul", {
|
|
10294
10184
|
className: cx$1('list')
|
|
10295
10185
|
}, rootPath, breadcrumb));
|
|
10296
10186
|
}
|
|
@@ -10299,18 +10189,18 @@ function (_Component) {
|
|
|
10299
10189
|
return Breadcrumb;
|
|
10300
10190
|
}(React.Component);
|
|
10301
10191
|
|
|
10302
|
-
_defineProperty(Breadcrumb, "propTypes", {
|
|
10303
|
-
canRefine: PropTypes__default
|
|
10304
|
-
createURL: PropTypes__default
|
|
10192
|
+
inherits$1$1._defineProperty(Breadcrumb, "propTypes", {
|
|
10193
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10194
|
+
createURL: PropTypes__default.func.isRequired,
|
|
10305
10195
|
items: itemsPropType,
|
|
10306
|
-
refine: PropTypes__default
|
|
10307
|
-
rootURL: PropTypes__default
|
|
10308
|
-
separator: PropTypes__default
|
|
10309
|
-
translate: PropTypes__default
|
|
10310
|
-
className: PropTypes__default
|
|
10196
|
+
refine: PropTypes__default.func.isRequired,
|
|
10197
|
+
rootURL: PropTypes__default.string,
|
|
10198
|
+
separator: PropTypes__default.node,
|
|
10199
|
+
translate: PropTypes__default.func.isRequired,
|
|
10200
|
+
className: PropTypes__default.string
|
|
10311
10201
|
});
|
|
10312
10202
|
|
|
10313
|
-
_defineProperty(Breadcrumb, "defaultProps", {
|
|
10203
|
+
inherits$1$1._defineProperty(Breadcrumb, "defaultProps", {
|
|
10314
10204
|
rootURL: null,
|
|
10315
10205
|
separator: ' > ',
|
|
10316
10206
|
className: ''
|
|
@@ -10409,7 +10299,7 @@ var Breadcrumb$1 = translatable({
|
|
|
10409
10299
|
*/
|
|
10410
10300
|
|
|
10411
10301
|
var BreadcrumbWidget = function BreadcrumbWidget(props) {
|
|
10412
|
-
return React__default
|
|
10302
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Breadcrumb$1, props));
|
|
10413
10303
|
};
|
|
10414
10304
|
|
|
10415
10305
|
connectBreadcrumb(BreadcrumbWidget);
|
|
@@ -10419,15 +10309,15 @@ var cx$2 = createClassNames('ClearRefinements');
|
|
|
10419
10309
|
var ClearRefinements =
|
|
10420
10310
|
/*#__PURE__*/
|
|
10421
10311
|
function (_Component) {
|
|
10422
|
-
_inherits(ClearRefinements, _Component);
|
|
10312
|
+
inherits$1$1._inherits(ClearRefinements, _Component);
|
|
10423
10313
|
|
|
10424
10314
|
function ClearRefinements() {
|
|
10425
|
-
_classCallCheck(this, ClearRefinements);
|
|
10315
|
+
inherits$1$1._classCallCheck(this, ClearRefinements);
|
|
10426
10316
|
|
|
10427
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(ClearRefinements).apply(this, arguments));
|
|
10317
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(ClearRefinements).apply(this, arguments));
|
|
10428
10318
|
}
|
|
10429
10319
|
|
|
10430
|
-
_createClass(ClearRefinements, [{
|
|
10320
|
+
inherits$1$1._createClass(ClearRefinements, [{
|
|
10431
10321
|
key: "render",
|
|
10432
10322
|
value: function render() {
|
|
10433
10323
|
var _this$props = this.props,
|
|
@@ -10436,9 +10326,9 @@ function (_Component) {
|
|
|
10436
10326
|
refine = _this$props.refine,
|
|
10437
10327
|
translate = _this$props.translate,
|
|
10438
10328
|
className = _this$props.className;
|
|
10439
|
-
return React__default
|
|
10440
|
-
className: index.classnames(cx$2(''), className)
|
|
10441
|
-
}, React__default
|
|
10329
|
+
return React__default.createElement("div", {
|
|
10330
|
+
className: index$5.classnames(cx$2(''), className)
|
|
10331
|
+
}, React__default.createElement("button", {
|
|
10442
10332
|
className: cx$2('button', !canRefine && 'button--disabled'),
|
|
10443
10333
|
onClick: function onClick() {
|
|
10444
10334
|
return refine(items);
|
|
@@ -10451,15 +10341,15 @@ function (_Component) {
|
|
|
10451
10341
|
return ClearRefinements;
|
|
10452
10342
|
}(React.Component);
|
|
10453
10343
|
|
|
10454
|
-
_defineProperty(ClearRefinements, "propTypes", {
|
|
10455
|
-
items: PropTypes__default
|
|
10456
|
-
canRefine: PropTypes__default
|
|
10457
|
-
refine: PropTypes__default
|
|
10458
|
-
translate: PropTypes__default
|
|
10459
|
-
className: PropTypes__default
|
|
10344
|
+
inherits$1$1._defineProperty(ClearRefinements, "propTypes", {
|
|
10345
|
+
items: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
10346
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10347
|
+
refine: PropTypes__default.func.isRequired,
|
|
10348
|
+
translate: PropTypes__default.func.isRequired,
|
|
10349
|
+
className: PropTypes__default.string
|
|
10460
10350
|
});
|
|
10461
10351
|
|
|
10462
|
-
_defineProperty(ClearRefinements, "defaultProps", {
|
|
10352
|
+
inherits$1$1._defineProperty(ClearRefinements, "defaultProps", {
|
|
10463
10353
|
className: ''
|
|
10464
10354
|
});
|
|
10465
10355
|
|
|
@@ -10502,7 +10392,7 @@ var ClearRefinements$1 = translatable({
|
|
|
10502
10392
|
*/
|
|
10503
10393
|
|
|
10504
10394
|
var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
|
|
10505
|
-
return React__default
|
|
10395
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(ClearRefinements$1, props));
|
|
10506
10396
|
};
|
|
10507
10397
|
|
|
10508
10398
|
connectCurrentRefinements(ClearRefinementsWidget);
|
|
@@ -10514,31 +10404,31 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10514
10404
|
refine = _ref.refine,
|
|
10515
10405
|
translate = _ref.translate,
|
|
10516
10406
|
className = _ref.className;
|
|
10517
|
-
return React__default
|
|
10518
|
-
className: index.classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10519
|
-
}, React__default
|
|
10407
|
+
return React__default.createElement("div", {
|
|
10408
|
+
className: index$5.classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10409
|
+
}, React__default.createElement("ul", {
|
|
10520
10410
|
className: cx$3('list', !canRefine && 'list--noRefinement')
|
|
10521
10411
|
}, items.map(function (item) {
|
|
10522
|
-
return React__default
|
|
10412
|
+
return React__default.createElement("li", {
|
|
10523
10413
|
key: item.label,
|
|
10524
10414
|
className: cx$3('item')
|
|
10525
|
-
}, React__default
|
|
10415
|
+
}, React__default.createElement("span", {
|
|
10526
10416
|
className: cx$3('label')
|
|
10527
10417
|
}, item.label), item.items ? item.items.map(function (nest) {
|
|
10528
|
-
return React__default
|
|
10418
|
+
return React__default.createElement("span", {
|
|
10529
10419
|
key: nest.label,
|
|
10530
10420
|
className: cx$3('category')
|
|
10531
|
-
}, React__default
|
|
10421
|
+
}, React__default.createElement("span", {
|
|
10532
10422
|
className: cx$3('categoryLabel')
|
|
10533
|
-
}, nest.label), React__default
|
|
10423
|
+
}, nest.label), React__default.createElement("button", {
|
|
10534
10424
|
className: cx$3('delete'),
|
|
10535
10425
|
onClick: function onClick() {
|
|
10536
10426
|
return refine(nest.value);
|
|
10537
10427
|
}
|
|
10538
10428
|
}, translate('clearFilter', nest)));
|
|
10539
|
-
}) : React__default
|
|
10429
|
+
}) : React__default.createElement("span", {
|
|
10540
10430
|
className: cx$3('category')
|
|
10541
|
-
}, React__default
|
|
10431
|
+
}, React__default.createElement("button", {
|
|
10542
10432
|
className: cx$3('delete'),
|
|
10543
10433
|
onClick: function onClick() {
|
|
10544
10434
|
return refine(item.value);
|
|
@@ -10546,19 +10436,19 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10546
10436
|
}, translate('clearFilter', item))));
|
|
10547
10437
|
})));
|
|
10548
10438
|
};
|
|
10549
|
-
var itemPropTypes = PropTypes__default
|
|
10550
|
-
label: PropTypes__default
|
|
10551
|
-
value: PropTypes__default
|
|
10439
|
+
var itemPropTypes = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10440
|
+
label: PropTypes__default.string.isRequired,
|
|
10441
|
+
value: PropTypes__default.func.isRequired,
|
|
10552
10442
|
items: function items() {
|
|
10553
10443
|
return itemPropTypes.apply(void 0, arguments);
|
|
10554
10444
|
}
|
|
10555
10445
|
}));
|
|
10556
10446
|
CurrentRefinements.propTypes = {
|
|
10557
10447
|
items: itemPropTypes.isRequired,
|
|
10558
|
-
canRefine: PropTypes__default
|
|
10559
|
-
refine: PropTypes__default
|
|
10560
|
-
translate: PropTypes__default
|
|
10561
|
-
className: PropTypes__default
|
|
10448
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10449
|
+
refine: PropTypes__default.func.isRequired,
|
|
10450
|
+
translate: PropTypes__default.func.isRequired,
|
|
10451
|
+
className: PropTypes__default.string
|
|
10562
10452
|
};
|
|
10563
10453
|
CurrentRefinements.defaultProps = {
|
|
10564
10454
|
className: ''
|
|
@@ -10610,33 +10500,33 @@ var CurrentRefinements$1 = translatable({
|
|
|
10610
10500
|
*/
|
|
10611
10501
|
|
|
10612
10502
|
var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
|
|
10613
|
-
return React__default
|
|
10503
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(CurrentRefinements$1, props));
|
|
10614
10504
|
};
|
|
10615
10505
|
|
|
10616
10506
|
connectCurrentRefinements(CurrentRefinementsWidget);
|
|
10617
10507
|
|
|
10618
10508
|
var cx$4 = createClassNames('SearchBox');
|
|
10619
|
-
var defaultLoadingIndicator = React__default
|
|
10509
|
+
var defaultLoadingIndicator = React__default.createElement("svg", {
|
|
10620
10510
|
width: "18",
|
|
10621
10511
|
height: "18",
|
|
10622
10512
|
viewBox: "0 0 38 38",
|
|
10623
10513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10624
10514
|
stroke: "#444",
|
|
10625
10515
|
className: cx$4('loadingIcon')
|
|
10626
|
-
}, React__default
|
|
10516
|
+
}, React__default.createElement("g", {
|
|
10627
10517
|
fill: "none",
|
|
10628
10518
|
fillRule: "evenodd"
|
|
10629
|
-
}, React__default
|
|
10519
|
+
}, React__default.createElement("g", {
|
|
10630
10520
|
transform: "translate(1 1)",
|
|
10631
10521
|
strokeWidth: "2"
|
|
10632
|
-
}, React__default
|
|
10522
|
+
}, React__default.createElement("circle", {
|
|
10633
10523
|
strokeOpacity: ".5",
|
|
10634
10524
|
cx: "18",
|
|
10635
10525
|
cy: "18",
|
|
10636
10526
|
r: "18"
|
|
10637
|
-
}), React__default
|
|
10527
|
+
}), React__default.createElement("path", {
|
|
10638
10528
|
d: "M36 18c0-9.94-8.06-18-18-18"
|
|
10639
|
-
}, React__default
|
|
10529
|
+
}, React__default.createElement("animateTransform", {
|
|
10640
10530
|
attributeName: "transform",
|
|
10641
10531
|
type: "rotate",
|
|
10642
10532
|
from: "0 18 18",
|
|
@@ -10644,42 +10534,42 @@ var defaultLoadingIndicator = React__default['default'].createElement("svg", {
|
|
|
10644
10534
|
dur: "1s",
|
|
10645
10535
|
repeatCount: "indefinite"
|
|
10646
10536
|
})))));
|
|
10647
|
-
var defaultReset = React__default
|
|
10537
|
+
var defaultReset = React__default.createElement("svg", {
|
|
10648
10538
|
className: cx$4('resetIcon'),
|
|
10649
10539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10650
10540
|
viewBox: "0 0 20 20",
|
|
10651
10541
|
width: "10",
|
|
10652
10542
|
height: "10"
|
|
10653
|
-
}, React__default
|
|
10543
|
+
}, React__default.createElement("path", {
|
|
10654
10544
|
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"
|
|
10655
10545
|
}));
|
|
10656
|
-
var defaultSubmit = React__default
|
|
10546
|
+
var defaultSubmit = React__default.createElement("svg", {
|
|
10657
10547
|
className: cx$4('submitIcon'),
|
|
10658
10548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10659
10549
|
width: "10",
|
|
10660
10550
|
height: "10",
|
|
10661
10551
|
viewBox: "0 0 40 40"
|
|
10662
|
-
}, React__default
|
|
10552
|
+
}, React__default.createElement("path", {
|
|
10663
10553
|
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"
|
|
10664
10554
|
}));
|
|
10665
10555
|
|
|
10666
10556
|
var SearchBox =
|
|
10667
10557
|
/*#__PURE__*/
|
|
10668
10558
|
function (_Component) {
|
|
10669
|
-
_inherits(SearchBox, _Component);
|
|
10559
|
+
inherits$1$1._inherits(SearchBox, _Component);
|
|
10670
10560
|
|
|
10671
10561
|
function SearchBox(props) {
|
|
10672
10562
|
var _this;
|
|
10673
10563
|
|
|
10674
|
-
_classCallCheck(this, SearchBox);
|
|
10564
|
+
inherits$1$1._classCallCheck(this, SearchBox);
|
|
10675
10565
|
|
|
10676
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(SearchBox).call(this));
|
|
10566
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(SearchBox).call(this));
|
|
10677
10567
|
|
|
10678
|
-
_defineProperty(_assertThisInitialized(_this), "getQuery", function () {
|
|
10568
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "getQuery", function () {
|
|
10679
10569
|
return _this.props.searchAsYouType ? _this.props.currentRefinement : _this.state.query;
|
|
10680
10570
|
});
|
|
10681
10571
|
|
|
10682
|
-
_defineProperty(_assertThisInitialized(_this), "onInputMount", function (input) {
|
|
10572
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onInputMount", function (input) {
|
|
10683
10573
|
_this.input = input;
|
|
10684
10574
|
if (!_this.props.inputRef) return;
|
|
10685
10575
|
|
|
@@ -10690,7 +10580,7 @@ function (_Component) {
|
|
|
10690
10580
|
}
|
|
10691
10581
|
});
|
|
10692
10582
|
|
|
10693
|
-
_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (e) {
|
|
10583
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onKeyDown", function (e) {
|
|
10694
10584
|
if (!_this.props.focusShortcuts) {
|
|
10695
10585
|
return;
|
|
10696
10586
|
}
|
|
@@ -10720,7 +10610,7 @@ function (_Component) {
|
|
|
10720
10610
|
e.preventDefault();
|
|
10721
10611
|
});
|
|
10722
10612
|
|
|
10723
|
-
_defineProperty(_assertThisInitialized(_this), "onSubmit", function (e) {
|
|
10613
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onSubmit", function (e) {
|
|
10724
10614
|
e.preventDefault();
|
|
10725
10615
|
e.stopPropagation();
|
|
10726
10616
|
|
|
@@ -10737,7 +10627,7 @@ function (_Component) {
|
|
|
10737
10627
|
return false;
|
|
10738
10628
|
});
|
|
10739
10629
|
|
|
10740
|
-
_defineProperty(_assertThisInitialized(_this), "onChange", function (event) {
|
|
10630
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onChange", function (event) {
|
|
10741
10631
|
var _this$props2 = _this.props,
|
|
10742
10632
|
searchAsYouType = _this$props2.searchAsYouType,
|
|
10743
10633
|
refine = _this$props2.refine,
|
|
@@ -10757,7 +10647,7 @@ function (_Component) {
|
|
|
10757
10647
|
}
|
|
10758
10648
|
});
|
|
10759
10649
|
|
|
10760
|
-
_defineProperty(_assertThisInitialized(_this), "onReset", function (event) {
|
|
10650
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onReset", function (event) {
|
|
10761
10651
|
var _this$props3 = _this.props,
|
|
10762
10652
|
searchAsYouType = _this$props3.searchAsYouType,
|
|
10763
10653
|
refine = _this$props3.refine,
|
|
@@ -10783,7 +10673,7 @@ function (_Component) {
|
|
|
10783
10673
|
return _this;
|
|
10784
10674
|
}
|
|
10785
10675
|
|
|
10786
|
-
_createClass(SearchBox, [{
|
|
10676
|
+
inherits$1$1._createClass(SearchBox, [{
|
|
10787
10677
|
key: "componentDidMount",
|
|
10788
10678
|
value: function componentDidMount() {
|
|
10789
10679
|
document.addEventListener('keydown', this.onKeyDown);
|
|
@@ -10817,7 +10707,7 @@ function (_Component) {
|
|
|
10817
10707
|
var query = this.getQuery();
|
|
10818
10708
|
var searchInputEvents = Object.keys(this.props).reduce(function (props, prop) {
|
|
10819
10709
|
if (['onsubmit', 'onreset', 'onchange'].indexOf(prop.toLowerCase()) === -1 && prop.indexOf('on') === 0) {
|
|
10820
|
-
return _objectSpread({}, props, _defineProperty({}, prop, _this2.props[prop]));
|
|
10710
|
+
return _objectSpread({}, props, inherits$1$1._defineProperty({}, prop, _this2.props[prop]));
|
|
10821
10711
|
}
|
|
10822
10712
|
|
|
10823
10713
|
return props;
|
|
@@ -10825,16 +10715,16 @@ function (_Component) {
|
|
|
10825
10715
|
var isSearchStalled = this.props.showLoadingIndicator && this.props.isSearchStalled;
|
|
10826
10716
|
/* eslint-disable max-len */
|
|
10827
10717
|
|
|
10828
|
-
return React__default
|
|
10829
|
-
className: index.classnames(cx$4(''), className)
|
|
10830
|
-
}, React__default
|
|
10718
|
+
return React__default.createElement("div", {
|
|
10719
|
+
className: index$5.classnames(cx$4(''), className)
|
|
10720
|
+
}, React__default.createElement("form", {
|
|
10831
10721
|
noValidate: true,
|
|
10832
10722
|
onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
|
|
10833
10723
|
onReset: this.onReset,
|
|
10834
10724
|
className: cx$4('form', isSearchStalled && 'form--stalledSearch'),
|
|
10835
10725
|
action: "",
|
|
10836
10726
|
role: "search"
|
|
10837
|
-
}, React__default
|
|
10727
|
+
}, React__default.createElement("input", index$5._extends({
|
|
10838
10728
|
ref: this.onInputMount,
|
|
10839
10729
|
type: "search",
|
|
10840
10730
|
placeholder: translate('placeholder'),
|
|
@@ -10849,16 +10739,16 @@ function (_Component) {
|
|
|
10849
10739
|
onChange: this.onChange
|
|
10850
10740
|
}, searchInputEvents, {
|
|
10851
10741
|
className: cx$4('input')
|
|
10852
|
-
})), React__default
|
|
10742
|
+
})), React__default.createElement("button", {
|
|
10853
10743
|
type: "submit",
|
|
10854
10744
|
title: translate('submitTitle'),
|
|
10855
10745
|
className: cx$4('submit')
|
|
10856
|
-
}, submit), React__default
|
|
10746
|
+
}, submit), React__default.createElement("button", {
|
|
10857
10747
|
type: "reset",
|
|
10858
10748
|
title: translate('resetTitle'),
|
|
10859
10749
|
className: cx$4('reset'),
|
|
10860
10750
|
hidden: !query || isSearchStalled
|
|
10861
|
-
}, reset), this.props.showLoadingIndicator && React__default
|
|
10751
|
+
}, reset), this.props.showLoadingIndicator && React__default.createElement("span", {
|
|
10862
10752
|
hidden: !isSearchStalled,
|
|
10863
10753
|
className: cx$4('loadingIndicator')
|
|
10864
10754
|
}, loadingIndicator)));
|
|
@@ -10869,28 +10759,28 @@ function (_Component) {
|
|
|
10869
10759
|
return SearchBox;
|
|
10870
10760
|
}(React.Component);
|
|
10871
10761
|
|
|
10872
|
-
_defineProperty(SearchBox, "propTypes", {
|
|
10873
|
-
currentRefinement: PropTypes__default
|
|
10874
|
-
className: PropTypes__default
|
|
10875
|
-
refine: PropTypes__default
|
|
10876
|
-
translate: PropTypes__default
|
|
10877
|
-
loadingIndicator: PropTypes__default
|
|
10878
|
-
reset: PropTypes__default
|
|
10879
|
-
submit: PropTypes__default
|
|
10880
|
-
focusShortcuts: PropTypes__default
|
|
10881
|
-
autoFocus: PropTypes__default
|
|
10882
|
-
searchAsYouType: PropTypes__default
|
|
10883
|
-
onSubmit: PropTypes__default
|
|
10884
|
-
onReset: PropTypes__default
|
|
10885
|
-
onChange: PropTypes__default
|
|
10886
|
-
isSearchStalled: PropTypes__default
|
|
10887
|
-
showLoadingIndicator: PropTypes__default
|
|
10888
|
-
inputRef: PropTypes__default
|
|
10889
|
-
current: PropTypes__default
|
|
10762
|
+
inherits$1$1._defineProperty(SearchBox, "propTypes", {
|
|
10763
|
+
currentRefinement: PropTypes__default.string,
|
|
10764
|
+
className: PropTypes__default.string,
|
|
10765
|
+
refine: PropTypes__default.func.isRequired,
|
|
10766
|
+
translate: PropTypes__default.func.isRequired,
|
|
10767
|
+
loadingIndicator: PropTypes__default.node,
|
|
10768
|
+
reset: PropTypes__default.node,
|
|
10769
|
+
submit: PropTypes__default.node,
|
|
10770
|
+
focusShortcuts: PropTypes__default.arrayOf(PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number])),
|
|
10771
|
+
autoFocus: PropTypes__default.bool,
|
|
10772
|
+
searchAsYouType: PropTypes__default.bool,
|
|
10773
|
+
onSubmit: PropTypes__default.func,
|
|
10774
|
+
onReset: PropTypes__default.func,
|
|
10775
|
+
onChange: PropTypes__default.func,
|
|
10776
|
+
isSearchStalled: PropTypes__default.bool,
|
|
10777
|
+
showLoadingIndicator: PropTypes__default.bool,
|
|
10778
|
+
inputRef: PropTypes__default.oneOfType([PropTypes__default.func, PropTypes__default.exact({
|
|
10779
|
+
current: PropTypes__default.object
|
|
10890
10780
|
})])
|
|
10891
10781
|
});
|
|
10892
10782
|
|
|
10893
|
-
_defineProperty(SearchBox, "defaultProps", {
|
|
10783
|
+
inherits$1$1._defineProperty(SearchBox, "defaultProps", {
|
|
10894
10784
|
currentRefinement: '',
|
|
10895
10785
|
className: '',
|
|
10896
10786
|
focusShortcuts: ['s', '/'],
|
|
@@ -10909,9 +10799,9 @@ var SearchBox$1 = translatable({
|
|
|
10909
10799
|
placeholder: 'Search here…'
|
|
10910
10800
|
})(SearchBox);
|
|
10911
10801
|
|
|
10912
|
-
var itemsPropType$1 = PropTypes__default
|
|
10913
|
-
value: PropTypes__default
|
|
10914
|
-
label: PropTypes__default
|
|
10802
|
+
var itemsPropType$1 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10803
|
+
value: PropTypes__default.any,
|
|
10804
|
+
label: PropTypes__default.node.isRequired,
|
|
10915
10805
|
items: function items() {
|
|
10916
10806
|
return itemsPropType$1.apply(void 0, arguments);
|
|
10917
10807
|
}
|
|
@@ -10920,16 +10810,16 @@ var itemsPropType$1 = PropTypes__default['default'].arrayOf(PropTypes__default['
|
|
|
10920
10810
|
var List =
|
|
10921
10811
|
/*#__PURE__*/
|
|
10922
10812
|
function (_Component) {
|
|
10923
|
-
_inherits(List, _Component);
|
|
10813
|
+
inherits$1$1._inherits(List, _Component);
|
|
10924
10814
|
|
|
10925
10815
|
function List() {
|
|
10926
10816
|
var _this;
|
|
10927
10817
|
|
|
10928
|
-
_classCallCheck(this, List);
|
|
10818
|
+
inherits$1$1._classCallCheck(this, List);
|
|
10929
10819
|
|
|
10930
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(List).call(this));
|
|
10820
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(List).call(this));
|
|
10931
10821
|
|
|
10932
|
-
_defineProperty(_assertThisInitialized(_this), "onShowMoreClick", function () {
|
|
10822
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onShowMoreClick", function () {
|
|
10933
10823
|
_this.setState(function (state) {
|
|
10934
10824
|
return {
|
|
10935
10825
|
extended: !state.extended
|
|
@@ -10937,7 +10827,7 @@ function (_Component) {
|
|
|
10937
10827
|
});
|
|
10938
10828
|
});
|
|
10939
10829
|
|
|
10940
|
-
_defineProperty(_assertThisInitialized(_this), "getLimit", function () {
|
|
10830
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "getLimit", function () {
|
|
10941
10831
|
var _this$props = _this.props,
|
|
10942
10832
|
limit = _this$props.limit,
|
|
10943
10833
|
showMoreLimit = _this$props.showMoreLimit;
|
|
@@ -10945,18 +10835,18 @@ function (_Component) {
|
|
|
10945
10835
|
return extended ? showMoreLimit : limit;
|
|
10946
10836
|
});
|
|
10947
10837
|
|
|
10948
|
-
_defineProperty(_assertThisInitialized(_this), "resetQuery", function () {
|
|
10838
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "resetQuery", function () {
|
|
10949
10839
|
_this.setState({
|
|
10950
10840
|
query: ''
|
|
10951
10841
|
});
|
|
10952
10842
|
});
|
|
10953
10843
|
|
|
10954
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10844
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10955
10845
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
10956
|
-
return React__default
|
|
10846
|
+
return React__default.createElement("li", {
|
|
10957
10847
|
key: item.key || item.label,
|
|
10958
10848
|
className: _this.props.cx('item', item.isRefined && 'item--selected', item.noRefinement && 'item--noRefinement', itemHasChildren && 'item--parent')
|
|
10959
|
-
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default
|
|
10849
|
+
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default.createElement("ul", {
|
|
10960
10850
|
className: _this.props.cx('list', 'list--child')
|
|
10961
10851
|
}, item.items.slice(0, _this.getLimit()).map(function (child) {
|
|
10962
10852
|
return _this.renderItem(child, item);
|
|
@@ -10970,7 +10860,7 @@ function (_Component) {
|
|
|
10970
10860
|
return _this;
|
|
10971
10861
|
}
|
|
10972
10862
|
|
|
10973
|
-
_createClass(List, [{
|
|
10863
|
+
inherits$1$1._createClass(List, [{
|
|
10974
10864
|
key: "renderShowMore",
|
|
10975
10865
|
value: function renderShowMore() {
|
|
10976
10866
|
var _this$props2 = this.props,
|
|
@@ -10984,7 +10874,7 @@ function (_Component) {
|
|
|
10984
10874
|
return null;
|
|
10985
10875
|
}
|
|
10986
10876
|
|
|
10987
|
-
return React__default
|
|
10877
|
+
return React__default.createElement("button", {
|
|
10988
10878
|
disabled: disabled,
|
|
10989
10879
|
className: cx('showMore', disabled && 'showMore--disabled'),
|
|
10990
10880
|
onClick: this.onShowMoreClick
|
|
@@ -11002,12 +10892,12 @@ function (_Component) {
|
|
|
11002
10892
|
translate = _this$props3.translate,
|
|
11003
10893
|
items = _this$props3.items,
|
|
11004
10894
|
selectItem = _this$props3.selectItem;
|
|
11005
|
-
var noResults = items.length === 0 && this.state.query !== '' ? React__default
|
|
10895
|
+
var noResults = items.length === 0 && this.state.query !== '' ? React__default.createElement("div", {
|
|
11006
10896
|
className: cx('noResults')
|
|
11007
10897
|
}, translate('noResults')) : null;
|
|
11008
|
-
return React__default
|
|
10898
|
+
return React__default.createElement("div", {
|
|
11009
10899
|
className: cx('searchBox')
|
|
11010
|
-
}, React__default
|
|
10900
|
+
}, React__default.createElement(SearchBox$1, {
|
|
11011
10901
|
currentRefinement: this.state.query,
|
|
11012
10902
|
refine: function refine(value) {
|
|
11013
10903
|
_this2.setState({
|
|
@@ -11040,10 +10930,10 @@ function (_Component) {
|
|
|
11040
10930
|
searchable = _this$props4.searchable,
|
|
11041
10931
|
canRefine = _this$props4.canRefine;
|
|
11042
10932
|
var searchBox = searchable ? this.renderSearchBox() : null;
|
|
11043
|
-
var rootClassName = index.classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
10933
|
+
var rootClassName = index$5.classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
11044
10934
|
|
|
11045
10935
|
if (items.length === 0) {
|
|
11046
|
-
return React__default
|
|
10936
|
+
return React__default.createElement("div", {
|
|
11047
10937
|
className: rootClassName
|
|
11048
10938
|
}, searchBox);
|
|
11049
10939
|
} // Always limit the number of items we show on screen, since the actual
|
|
@@ -11051,9 +10941,9 @@ function (_Component) {
|
|
|
11051
10941
|
// option.
|
|
11052
10942
|
|
|
11053
10943
|
|
|
11054
|
-
return React__default
|
|
10944
|
+
return React__default.createElement("div", {
|
|
11055
10945
|
className: rootClassName
|
|
11056
|
-
}, searchBox, React__default
|
|
10946
|
+
}, searchBox, React__default.createElement("ul", {
|
|
11057
10947
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
11058
10948
|
}, items.slice(0, this.getLimit()).map(function (item) {
|
|
11059
10949
|
return _this3.renderItem(item, _this3.resetQuery);
|
|
@@ -11064,34 +10954,34 @@ function (_Component) {
|
|
|
11064
10954
|
return List;
|
|
11065
10955
|
}(React.Component);
|
|
11066
10956
|
|
|
11067
|
-
_defineProperty(List, "propTypes", {
|
|
11068
|
-
cx: PropTypes__default
|
|
10957
|
+
inherits$1$1._defineProperty(List, "propTypes", {
|
|
10958
|
+
cx: PropTypes__default.func.isRequired,
|
|
11069
10959
|
// Only required with showMore.
|
|
11070
|
-
translate: PropTypes__default
|
|
10960
|
+
translate: PropTypes__default.func,
|
|
11071
10961
|
items: itemsPropType$1,
|
|
11072
|
-
renderItem: PropTypes__default
|
|
11073
|
-
selectItem: PropTypes__default
|
|
11074
|
-
className: PropTypes__default
|
|
11075
|
-
showMore: PropTypes__default
|
|
11076
|
-
limit: PropTypes__default
|
|
11077
|
-
showMoreLimit: PropTypes__default
|
|
11078
|
-
show: PropTypes__default
|
|
11079
|
-
searchForItems: PropTypes__default
|
|
11080
|
-
searchable: PropTypes__default
|
|
11081
|
-
isFromSearch: PropTypes__default
|
|
11082
|
-
canRefine: PropTypes__default
|
|
10962
|
+
renderItem: PropTypes__default.func.isRequired,
|
|
10963
|
+
selectItem: PropTypes__default.func,
|
|
10964
|
+
className: PropTypes__default.string,
|
|
10965
|
+
showMore: PropTypes__default.bool,
|
|
10966
|
+
limit: PropTypes__default.number,
|
|
10967
|
+
showMoreLimit: PropTypes__default.number,
|
|
10968
|
+
show: PropTypes__default.func,
|
|
10969
|
+
searchForItems: PropTypes__default.func,
|
|
10970
|
+
searchable: PropTypes__default.bool,
|
|
10971
|
+
isFromSearch: PropTypes__default.bool,
|
|
10972
|
+
canRefine: PropTypes__default.bool
|
|
11083
10973
|
});
|
|
11084
10974
|
|
|
11085
|
-
_defineProperty(List, "defaultProps", {
|
|
10975
|
+
inherits$1$1._defineProperty(List, "defaultProps", {
|
|
11086
10976
|
className: '',
|
|
11087
10977
|
isFromSearch: false
|
|
11088
10978
|
});
|
|
11089
10979
|
|
|
11090
10980
|
var cx$5 = createClassNames('HierarchicalMenu');
|
|
11091
|
-
var itemsPropType$2 = PropTypes__default
|
|
11092
|
-
label: PropTypes__default
|
|
11093
|
-
value: PropTypes__default
|
|
11094
|
-
count: PropTypes__default
|
|
10981
|
+
var itemsPropType$2 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10982
|
+
label: PropTypes__default.string.isRequired,
|
|
10983
|
+
value: PropTypes__default.string,
|
|
10984
|
+
count: PropTypes__default.number.isRequired,
|
|
11095
10985
|
items: function items() {
|
|
11096
10986
|
return itemsPropType$2.apply(void 0, arguments);
|
|
11097
10987
|
}
|
|
@@ -11100,34 +10990,34 @@ var itemsPropType$2 = PropTypes__default['default'].arrayOf(PropTypes__default['
|
|
|
11100
10990
|
var HierarchicalMenu =
|
|
11101
10991
|
/*#__PURE__*/
|
|
11102
10992
|
function (_Component) {
|
|
11103
|
-
_inherits(HierarchicalMenu, _Component);
|
|
10993
|
+
inherits$1$1._inherits(HierarchicalMenu, _Component);
|
|
11104
10994
|
|
|
11105
10995
|
function HierarchicalMenu() {
|
|
11106
10996
|
var _getPrototypeOf2;
|
|
11107
10997
|
|
|
11108
10998
|
var _this;
|
|
11109
10999
|
|
|
11110
|
-
_classCallCheck(this, HierarchicalMenu);
|
|
11000
|
+
inherits$1$1._classCallCheck(this, HierarchicalMenu);
|
|
11111
11001
|
|
|
11112
11002
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11113
11003
|
args[_key] = arguments[_key];
|
|
11114
11004
|
}
|
|
11115
11005
|
|
|
11116
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(HierarchicalMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11006
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(HierarchicalMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11117
11007
|
|
|
11118
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item) {
|
|
11008
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item) {
|
|
11119
11009
|
var _this$props = _this.props,
|
|
11120
11010
|
createURL = _this$props.createURL,
|
|
11121
11011
|
refine = _this$props.refine;
|
|
11122
|
-
return React__default
|
|
11012
|
+
return React__default.createElement(Link, {
|
|
11123
11013
|
className: cx$5('link'),
|
|
11124
11014
|
onClick: function onClick() {
|
|
11125
11015
|
return refine(item.value);
|
|
11126
11016
|
},
|
|
11127
11017
|
href: createURL(item.value)
|
|
11128
|
-
}, React__default
|
|
11018
|
+
}, React__default.createElement("span", {
|
|
11129
11019
|
className: cx$5('label')
|
|
11130
|
-
}, item.label), ' ', React__default
|
|
11020
|
+
}, item.label), ' ', React__default.createElement("span", {
|
|
11131
11021
|
className: cx$5('count')
|
|
11132
11022
|
}, item.count));
|
|
11133
11023
|
});
|
|
@@ -11135,7 +11025,7 @@ function (_Component) {
|
|
|
11135
11025
|
return _this;
|
|
11136
11026
|
}
|
|
11137
11027
|
|
|
11138
|
-
_createClass(HierarchicalMenu, [{
|
|
11028
|
+
inherits$1$1._createClass(HierarchicalMenu, [{
|
|
11139
11029
|
key: "render",
|
|
11140
11030
|
value: function render() {
|
|
11141
11031
|
var _this$props2 = this.props,
|
|
@@ -11146,7 +11036,7 @@ function (_Component) {
|
|
|
11146
11036
|
showMoreLimit = _this$props2.showMoreLimit,
|
|
11147
11037
|
canRefine = _this$props2.canRefine,
|
|
11148
11038
|
className = _this$props2.className;
|
|
11149
|
-
return React__default
|
|
11039
|
+
return React__default.createElement(List, {
|
|
11150
11040
|
renderItem: this.renderItem,
|
|
11151
11041
|
cx: cx$5,
|
|
11152
11042
|
translate: translate,
|
|
@@ -11163,20 +11053,20 @@ function (_Component) {
|
|
|
11163
11053
|
return HierarchicalMenu;
|
|
11164
11054
|
}(React.Component);
|
|
11165
11055
|
|
|
11166
|
-
_defineProperty(HierarchicalMenu, "propTypes", {
|
|
11167
|
-
translate: PropTypes__default
|
|
11168
|
-
refine: PropTypes__default
|
|
11169
|
-
createURL: PropTypes__default
|
|
11170
|
-
canRefine: PropTypes__default
|
|
11056
|
+
inherits$1$1._defineProperty(HierarchicalMenu, "propTypes", {
|
|
11057
|
+
translate: PropTypes__default.func.isRequired,
|
|
11058
|
+
refine: PropTypes__default.func.isRequired,
|
|
11059
|
+
createURL: PropTypes__default.func.isRequired,
|
|
11060
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
11171
11061
|
items: itemsPropType$2,
|
|
11172
|
-
showMore: PropTypes__default
|
|
11173
|
-
className: PropTypes__default
|
|
11174
|
-
limit: PropTypes__default
|
|
11175
|
-
showMoreLimit: PropTypes__default
|
|
11176
|
-
transformItems: PropTypes__default
|
|
11062
|
+
showMore: PropTypes__default.bool,
|
|
11063
|
+
className: PropTypes__default.string,
|
|
11064
|
+
limit: PropTypes__default.number,
|
|
11065
|
+
showMoreLimit: PropTypes__default.number,
|
|
11066
|
+
transformItems: PropTypes__default.func
|
|
11177
11067
|
});
|
|
11178
11068
|
|
|
11179
|
-
_defineProperty(HierarchicalMenu, "defaultProps", {
|
|
11069
|
+
inherits$1$1._defineProperty(HierarchicalMenu, "defaultProps", {
|
|
11180
11070
|
className: ''
|
|
11181
11071
|
});
|
|
11182
11072
|
|
|
@@ -11277,7 +11167,7 @@ var HierarchicalMenu$1 = translatable({
|
|
|
11277
11167
|
*/
|
|
11278
11168
|
|
|
11279
11169
|
var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
|
|
11280
|
-
return React__default
|
|
11170
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(HierarchicalMenu$1, props));
|
|
11281
11171
|
};
|
|
11282
11172
|
|
|
11283
11173
|
connectHierarchicalMenu(HierarchicalMenuWidget);
|
|
@@ -11290,16 +11180,16 @@ var Highlight = function Highlight(_ref) {
|
|
|
11290
11180
|
nonHighlightedTagName = _ref.nonHighlightedTagName;
|
|
11291
11181
|
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
11292
11182
|
var className = isHighlighted ? 'highlighted' : 'nonHighlighted';
|
|
11293
|
-
return React__default
|
|
11183
|
+
return React__default.createElement(TagName, {
|
|
11294
11184
|
className: cx(className)
|
|
11295
11185
|
}, value);
|
|
11296
11186
|
};
|
|
11297
11187
|
Highlight.propTypes = {
|
|
11298
|
-
cx: PropTypes__default
|
|
11299
|
-
value: PropTypes__default
|
|
11300
|
-
isHighlighted: PropTypes__default
|
|
11301
|
-
highlightedTagName: PropTypes__default
|
|
11302
|
-
nonHighlightedTagName: PropTypes__default
|
|
11188
|
+
cx: PropTypes__default.func.isRequired,
|
|
11189
|
+
value: PropTypes__default.string.isRequired,
|
|
11190
|
+
isHighlighted: PropTypes__default.bool.isRequired,
|
|
11191
|
+
highlightedTagName: PropTypes__default.string.isRequired,
|
|
11192
|
+
nonHighlightedTagName: PropTypes__default.string.isRequired
|
|
11303
11193
|
};
|
|
11304
11194
|
|
|
11305
11195
|
var Highlighter = function Highlighter(_ref2) {
|
|
@@ -11317,15 +11207,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11317
11207
|
attribute: attribute,
|
|
11318
11208
|
highlightProperty: highlightProperty
|
|
11319
11209
|
});
|
|
11320
|
-
return React__default
|
|
11321
|
-
className: index.classnames(cx(''), className)
|
|
11210
|
+
return React__default.createElement("span", {
|
|
11211
|
+
className: index$5.classnames(cx(''), className)
|
|
11322
11212
|
}, parsedHighlightedValue.map(function (item, i) {
|
|
11323
11213
|
if (Array.isArray(item)) {
|
|
11324
11214
|
var isLast = i === parsedHighlightedValue.length - 1;
|
|
11325
|
-
return React__default
|
|
11215
|
+
return React__default.createElement("span", {
|
|
11326
11216
|
key: i
|
|
11327
11217
|
}, item.map(function (element, index) {
|
|
11328
|
-
return React__default
|
|
11218
|
+
return React__default.createElement(Highlight, {
|
|
11329
11219
|
cx: cx,
|
|
11330
11220
|
key: index,
|
|
11331
11221
|
value: element.value,
|
|
@@ -11333,12 +11223,12 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11333
11223
|
nonHighlightedTagName: nonHighlightedTagName,
|
|
11334
11224
|
isHighlighted: element.isHighlighted
|
|
11335
11225
|
});
|
|
11336
|
-
}), !isLast && React__default
|
|
11226
|
+
}), !isLast && React__default.createElement("span", {
|
|
11337
11227
|
className: cx('separator')
|
|
11338
11228
|
}, separator));
|
|
11339
11229
|
}
|
|
11340
11230
|
|
|
11341
|
-
return React__default
|
|
11231
|
+
return React__default.createElement(Highlight, {
|
|
11342
11232
|
cx: cx,
|
|
11343
11233
|
key: i,
|
|
11344
11234
|
value: item.value,
|
|
@@ -11350,15 +11240,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11350
11240
|
};
|
|
11351
11241
|
|
|
11352
11242
|
Highlighter.propTypes = {
|
|
11353
|
-
cx: PropTypes__default
|
|
11354
|
-
hit: PropTypes__default
|
|
11355
|
-
attribute: PropTypes__default
|
|
11356
|
-
highlight: PropTypes__default
|
|
11357
|
-
highlightProperty: PropTypes__default
|
|
11358
|
-
tagName: PropTypes__default
|
|
11359
|
-
nonHighlightedTagName: PropTypes__default
|
|
11360
|
-
className: PropTypes__default
|
|
11361
|
-
separator: PropTypes__default
|
|
11243
|
+
cx: PropTypes__default.func.isRequired,
|
|
11244
|
+
hit: PropTypes__default.object.isRequired,
|
|
11245
|
+
attribute: PropTypes__default.oneOfType([PropTypes__default.arrayOf(PropTypes__default.string), PropTypes__default.string]).isRequired,
|
|
11246
|
+
highlight: PropTypes__default.func.isRequired,
|
|
11247
|
+
highlightProperty: PropTypes__default.string.isRequired,
|
|
11248
|
+
tagName: PropTypes__default.string,
|
|
11249
|
+
nonHighlightedTagName: PropTypes__default.string,
|
|
11250
|
+
className: PropTypes__default.string,
|
|
11251
|
+
separator: PropTypes__default.node
|
|
11362
11252
|
};
|
|
11363
11253
|
Highlighter.defaultProps = {
|
|
11364
11254
|
tagName: 'em',
|
|
@@ -11370,7 +11260,7 @@ Highlighter.defaultProps = {
|
|
|
11370
11260
|
var cx$6 = createClassNames('Highlight');
|
|
11371
11261
|
|
|
11372
11262
|
var Highlight$1 = function Highlight(props) {
|
|
11373
|
-
return React__default
|
|
11263
|
+
return React__default.createElement(Highlighter, index$5._extends({}, props, {
|
|
11374
11264
|
highlightProperty: "_highlightResult",
|
|
11375
11265
|
cx: cx$6
|
|
11376
11266
|
}));
|
|
@@ -11422,7 +11312,7 @@ var Highlight$2 = connectHighlight(Highlight$1);
|
|
|
11422
11312
|
var cx$7 = createClassNames('Hits');
|
|
11423
11313
|
|
|
11424
11314
|
var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
11425
|
-
return React__default
|
|
11315
|
+
return React__default.createElement("div", {
|
|
11426
11316
|
style: {
|
|
11427
11317
|
borderBottom: '1px solid #bbb',
|
|
11428
11318
|
paddingBottom: '5px',
|
|
@@ -11438,27 +11328,27 @@ var Hits = function Hits(_ref) {
|
|
|
11438
11328
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
11439
11329
|
_ref$hitComponent = _ref.hitComponent,
|
|
11440
11330
|
HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
|
|
11441
|
-
return React__default
|
|
11442
|
-
className: index.classnames(cx$7(''), className)
|
|
11443
|
-
}, React__default
|
|
11331
|
+
return React__default.createElement("div", {
|
|
11332
|
+
className: index$5.classnames(cx$7(''), className)
|
|
11333
|
+
}, React__default.createElement("ul", {
|
|
11444
11334
|
className: cx$7('list')
|
|
11445
11335
|
}, hits.map(function (hit) {
|
|
11446
|
-
return React__default
|
|
11336
|
+
return React__default.createElement("li", {
|
|
11447
11337
|
className: cx$7('item'),
|
|
11448
11338
|
key: hit.objectID
|
|
11449
|
-
}, React__default
|
|
11339
|
+
}, React__default.createElement(HitComponent, {
|
|
11450
11340
|
hit: hit
|
|
11451
11341
|
}));
|
|
11452
11342
|
})));
|
|
11453
11343
|
};
|
|
11454
11344
|
|
|
11455
|
-
var HitPropTypes = PropTypes__default
|
|
11456
|
-
objectID: PropTypes__default
|
|
11345
|
+
var HitPropTypes = PropTypes__default.shape({
|
|
11346
|
+
objectID: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired
|
|
11457
11347
|
});
|
|
11458
11348
|
Hits.propTypes = {
|
|
11459
|
-
hits: PropTypes__default
|
|
11460
|
-
className: PropTypes__default
|
|
11461
|
-
hitComponent: PropTypes__default
|
|
11349
|
+
hits: PropTypes__default.arrayOf(HitPropTypes.isRequired).isRequired,
|
|
11350
|
+
className: PropTypes__default.string,
|
|
11351
|
+
hitComponent: PropTypes__default.func
|
|
11462
11352
|
};
|
|
11463
11353
|
|
|
11464
11354
|
/**
|
|
@@ -11499,41 +11389,41 @@ var Hits$1 = connectHits(Hits);
|
|
|
11499
11389
|
var Select =
|
|
11500
11390
|
/*#__PURE__*/
|
|
11501
11391
|
function (_Component) {
|
|
11502
|
-
_inherits(Select, _Component);
|
|
11392
|
+
inherits$1$1._inherits(Select, _Component);
|
|
11503
11393
|
|
|
11504
11394
|
function Select() {
|
|
11505
11395
|
var _getPrototypeOf2;
|
|
11506
11396
|
|
|
11507
11397
|
var _this;
|
|
11508
11398
|
|
|
11509
|
-
_classCallCheck(this, Select);
|
|
11399
|
+
inherits$1$1._classCallCheck(this, Select);
|
|
11510
11400
|
|
|
11511
11401
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11512
11402
|
args[_key] = arguments[_key];
|
|
11513
11403
|
}
|
|
11514
11404
|
|
|
11515
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Select)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11405
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(Select)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11516
11406
|
|
|
11517
|
-
_defineProperty(_assertThisInitialized(_this), "onChange", function (e) {
|
|
11407
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onChange", function (e) {
|
|
11518
11408
|
_this.props.onSelect(e.target.value);
|
|
11519
11409
|
});
|
|
11520
11410
|
|
|
11521
11411
|
return _this;
|
|
11522
11412
|
}
|
|
11523
11413
|
|
|
11524
|
-
_createClass(Select, [{
|
|
11414
|
+
inherits$1$1._createClass(Select, [{
|
|
11525
11415
|
key: "render",
|
|
11526
11416
|
value: function render() {
|
|
11527
11417
|
var _this$props = this.props,
|
|
11528
11418
|
cx = _this$props.cx,
|
|
11529
11419
|
items = _this$props.items,
|
|
11530
11420
|
selectedItem = _this$props.selectedItem;
|
|
11531
|
-
return React__default
|
|
11421
|
+
return React__default.createElement("select", {
|
|
11532
11422
|
className: cx('select'),
|
|
11533
11423
|
value: selectedItem,
|
|
11534
11424
|
onChange: this.onChange
|
|
11535
11425
|
}, items.map(function (item) {
|
|
11536
|
-
return React__default
|
|
11426
|
+
return React__default.createElement("option", {
|
|
11537
11427
|
className: cx('option'),
|
|
11538
11428
|
key: item.key === undefined ? item.value : item.key,
|
|
11539
11429
|
disabled: item.disabled,
|
|
@@ -11546,16 +11436,16 @@ function (_Component) {
|
|
|
11546
11436
|
return Select;
|
|
11547
11437
|
}(React.Component);
|
|
11548
11438
|
|
|
11549
|
-
_defineProperty(Select, "propTypes", {
|
|
11550
|
-
cx: PropTypes__default
|
|
11551
|
-
onSelect: PropTypes__default
|
|
11552
|
-
items: PropTypes__default
|
|
11553
|
-
value: PropTypes__default
|
|
11554
|
-
key: PropTypes__default
|
|
11555
|
-
label: PropTypes__default
|
|
11556
|
-
disabled: PropTypes__default
|
|
11439
|
+
inherits$1$1._defineProperty(Select, "propTypes", {
|
|
11440
|
+
cx: PropTypes__default.func.isRequired,
|
|
11441
|
+
onSelect: PropTypes__default.func.isRequired,
|
|
11442
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11443
|
+
value: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired,
|
|
11444
|
+
key: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]),
|
|
11445
|
+
label: PropTypes__default.string,
|
|
11446
|
+
disabled: PropTypes__default.bool
|
|
11557
11447
|
})).isRequired,
|
|
11558
|
-
selectedItem: PropTypes__default
|
|
11448
|
+
selectedItem: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired
|
|
11559
11449
|
});
|
|
11560
11450
|
|
|
11561
11451
|
var cx$8 = createClassNames('HitsPerPage');
|
|
@@ -11563,15 +11453,15 @@ var cx$8 = createClassNames('HitsPerPage');
|
|
|
11563
11453
|
var HitsPerPage =
|
|
11564
11454
|
/*#__PURE__*/
|
|
11565
11455
|
function (_Component) {
|
|
11566
|
-
_inherits(HitsPerPage, _Component);
|
|
11456
|
+
inherits$1$1._inherits(HitsPerPage, _Component);
|
|
11567
11457
|
|
|
11568
11458
|
function HitsPerPage() {
|
|
11569
|
-
_classCallCheck(this, HitsPerPage);
|
|
11459
|
+
inherits$1$1._classCallCheck(this, HitsPerPage);
|
|
11570
11460
|
|
|
11571
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(HitsPerPage).apply(this, arguments));
|
|
11461
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(HitsPerPage).apply(this, arguments));
|
|
11572
11462
|
}
|
|
11573
11463
|
|
|
11574
|
-
_createClass(HitsPerPage, [{
|
|
11464
|
+
inherits$1$1._createClass(HitsPerPage, [{
|
|
11575
11465
|
key: "render",
|
|
11576
11466
|
value: function render() {
|
|
11577
11467
|
var _this$props = this.props,
|
|
@@ -11579,9 +11469,9 @@ function (_Component) {
|
|
|
11579
11469
|
currentRefinement = _this$props.currentRefinement,
|
|
11580
11470
|
refine = _this$props.refine,
|
|
11581
11471
|
className = _this$props.className;
|
|
11582
|
-
return React__default
|
|
11583
|
-
className: index.classnames(cx$8(''), className)
|
|
11584
|
-
}, React__default
|
|
11472
|
+
return React__default.createElement("div", {
|
|
11473
|
+
className: index$5.classnames(cx$8(''), className)
|
|
11474
|
+
}, React__default.createElement(Select, {
|
|
11585
11475
|
onSelect: refine,
|
|
11586
11476
|
selectedItem: currentRefinement,
|
|
11587
11477
|
items: items,
|
|
@@ -11593,17 +11483,17 @@ function (_Component) {
|
|
|
11593
11483
|
return HitsPerPage;
|
|
11594
11484
|
}(React.Component);
|
|
11595
11485
|
|
|
11596
|
-
_defineProperty(HitsPerPage, "propTypes", {
|
|
11597
|
-
items: PropTypes__default
|
|
11598
|
-
value: PropTypes__default
|
|
11599
|
-
label: PropTypes__default
|
|
11486
|
+
inherits$1$1._defineProperty(HitsPerPage, "propTypes", {
|
|
11487
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11488
|
+
value: PropTypes__default.number.isRequired,
|
|
11489
|
+
label: PropTypes__default.string
|
|
11600
11490
|
})).isRequired,
|
|
11601
|
-
currentRefinement: PropTypes__default
|
|
11602
|
-
refine: PropTypes__default
|
|
11603
|
-
className: PropTypes__default
|
|
11491
|
+
currentRefinement: PropTypes__default.number.isRequired,
|
|
11492
|
+
refine: PropTypes__default.func.isRequired,
|
|
11493
|
+
className: PropTypes__default.string
|
|
11604
11494
|
});
|
|
11605
11495
|
|
|
11606
|
-
_defineProperty(HitsPerPage, "defaultProps", {
|
|
11496
|
+
inherits$1$1._defineProperty(HitsPerPage, "defaultProps", {
|
|
11607
11497
|
className: ''
|
|
11608
11498
|
});
|
|
11609
11499
|
|
|
@@ -11656,15 +11546,15 @@ var cx$9 = createClassNames('InfiniteHits');
|
|
|
11656
11546
|
var InfiniteHits =
|
|
11657
11547
|
/*#__PURE__*/
|
|
11658
11548
|
function (_Component) {
|
|
11659
|
-
_inherits(InfiniteHits, _Component);
|
|
11549
|
+
inherits$1$1._inherits(InfiniteHits, _Component);
|
|
11660
11550
|
|
|
11661
11551
|
function InfiniteHits() {
|
|
11662
|
-
_classCallCheck(this, InfiniteHits);
|
|
11552
|
+
inherits$1$1._classCallCheck(this, InfiniteHits);
|
|
11663
11553
|
|
|
11664
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(InfiniteHits).apply(this, arguments));
|
|
11554
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(InfiniteHits).apply(this, arguments));
|
|
11665
11555
|
}
|
|
11666
11556
|
|
|
11667
|
-
_createClass(InfiniteHits, [{
|
|
11557
|
+
inherits$1$1._createClass(InfiniteHits, [{
|
|
11668
11558
|
key: "render",
|
|
11669
11559
|
value: function render() {
|
|
11670
11560
|
var _this$props = this.props,
|
|
@@ -11677,24 +11567,24 @@ function (_Component) {
|
|
|
11677
11567
|
refineNext = _this$props.refineNext,
|
|
11678
11568
|
translate = _this$props.translate,
|
|
11679
11569
|
className = _this$props.className;
|
|
11680
|
-
return React__default
|
|
11681
|
-
className: index.classnames(cx$9(''), className)
|
|
11682
|
-
}, showPrevious && React__default
|
|
11570
|
+
return React__default.createElement("div", {
|
|
11571
|
+
className: index$5.classnames(cx$9(''), className)
|
|
11572
|
+
}, showPrevious && React__default.createElement("button", {
|
|
11683
11573
|
className: cx$9('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
|
|
11684
11574
|
onClick: function onClick() {
|
|
11685
11575
|
return refinePrevious();
|
|
11686
11576
|
},
|
|
11687
11577
|
disabled: !hasPrevious
|
|
11688
|
-
}, translate('loadPrevious')), React__default
|
|
11578
|
+
}, translate('loadPrevious')), React__default.createElement("ul", {
|
|
11689
11579
|
className: cx$9('list')
|
|
11690
11580
|
}, hits.map(function (hit) {
|
|
11691
|
-
return React__default
|
|
11581
|
+
return React__default.createElement("li", {
|
|
11692
11582
|
key: hit.objectID,
|
|
11693
11583
|
className: cx$9('item')
|
|
11694
|
-
}, React__default
|
|
11584
|
+
}, React__default.createElement(HitComponent, {
|
|
11695
11585
|
hit: hit
|
|
11696
11586
|
}));
|
|
11697
|
-
})), React__default
|
|
11587
|
+
})), React__default.createElement("button", {
|
|
11698
11588
|
className: cx$9('loadMore', !hasMore && 'loadMore--disabled'),
|
|
11699
11589
|
onClick: function onClick() {
|
|
11700
11590
|
return refineNext();
|
|
@@ -11708,21 +11598,21 @@ function (_Component) {
|
|
|
11708
11598
|
}(React.Component);
|
|
11709
11599
|
|
|
11710
11600
|
InfiniteHits.propTypes = {
|
|
11711
|
-
hits: PropTypes__default
|
|
11712
|
-
showPrevious: PropTypes__default
|
|
11713
|
-
hasPrevious: PropTypes__default
|
|
11714
|
-
hasMore: PropTypes__default
|
|
11715
|
-
refinePrevious: PropTypes__default
|
|
11716
|
-
refineNext: PropTypes__default
|
|
11717
|
-
translate: PropTypes__default
|
|
11718
|
-
className: PropTypes__default
|
|
11719
|
-
hitComponent: PropTypes__default
|
|
11601
|
+
hits: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
11602
|
+
showPrevious: PropTypes__default.bool.isRequired,
|
|
11603
|
+
hasPrevious: PropTypes__default.bool.isRequired,
|
|
11604
|
+
hasMore: PropTypes__default.bool.isRequired,
|
|
11605
|
+
refinePrevious: PropTypes__default.func.isRequired,
|
|
11606
|
+
refineNext: PropTypes__default.func.isRequired,
|
|
11607
|
+
translate: PropTypes__default.func.isRequired,
|
|
11608
|
+
className: PropTypes__default.string,
|
|
11609
|
+
hitComponent: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.func])
|
|
11720
11610
|
};
|
|
11721
11611
|
InfiniteHits.defaultProps = {
|
|
11722
11612
|
className: '',
|
|
11723
11613
|
showPrevious: false,
|
|
11724
11614
|
hitComponent: function hitComponent(hit) {
|
|
11725
|
-
return React__default
|
|
11615
|
+
return React__default.createElement("div", {
|
|
11726
11616
|
style: {
|
|
11727
11617
|
borderBottom: '1px solid #bbb',
|
|
11728
11618
|
paddingBottom: '5px',
|
|
@@ -11781,41 +11671,41 @@ var cx$a = createClassNames('Menu');
|
|
|
11781
11671
|
var Menu =
|
|
11782
11672
|
/*#__PURE__*/
|
|
11783
11673
|
function (_Component) {
|
|
11784
|
-
_inherits(Menu, _Component);
|
|
11674
|
+
inherits$1$1._inherits(Menu, _Component);
|
|
11785
11675
|
|
|
11786
11676
|
function Menu() {
|
|
11787
11677
|
var _getPrototypeOf2;
|
|
11788
11678
|
|
|
11789
11679
|
var _this;
|
|
11790
11680
|
|
|
11791
|
-
_classCallCheck(this, Menu);
|
|
11681
|
+
inherits$1$1._classCallCheck(this, Menu);
|
|
11792
11682
|
|
|
11793
11683
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11794
11684
|
args[_key] = arguments[_key];
|
|
11795
11685
|
}
|
|
11796
11686
|
|
|
11797
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Menu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11687
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(Menu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11798
11688
|
|
|
11799
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11689
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11800
11690
|
var createURL = _this.props.createURL;
|
|
11801
|
-
var label = _this.props.isFromSearch ? React__default
|
|
11691
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
11802
11692
|
attribute: "label",
|
|
11803
11693
|
hit: item
|
|
11804
11694
|
}) : item.label;
|
|
11805
|
-
return React__default
|
|
11695
|
+
return React__default.createElement(Link, {
|
|
11806
11696
|
className: cx$a('link'),
|
|
11807
11697
|
onClick: function onClick() {
|
|
11808
11698
|
return _this.selectItem(item, resetQuery);
|
|
11809
11699
|
},
|
|
11810
11700
|
href: createURL(item.value)
|
|
11811
|
-
}, React__default
|
|
11701
|
+
}, React__default.createElement("span", {
|
|
11812
11702
|
className: cx$a('label')
|
|
11813
|
-
}, label), ' ', React__default
|
|
11703
|
+
}, label), ' ', React__default.createElement("span", {
|
|
11814
11704
|
className: cx$a('count')
|
|
11815
11705
|
}, item.count));
|
|
11816
11706
|
});
|
|
11817
11707
|
|
|
11818
|
-
_defineProperty(_assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
11708
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
11819
11709
|
resetQuery();
|
|
11820
11710
|
|
|
11821
11711
|
_this.props.refine(item.value);
|
|
@@ -11824,7 +11714,7 @@ function (_Component) {
|
|
|
11824
11714
|
return _this;
|
|
11825
11715
|
}
|
|
11826
11716
|
|
|
11827
|
-
_createClass(Menu, [{
|
|
11717
|
+
inherits$1$1._createClass(Menu, [{
|
|
11828
11718
|
key: "render",
|
|
11829
11719
|
value: function render() {
|
|
11830
11720
|
var _this$props = this.props,
|
|
@@ -11838,7 +11728,7 @@ function (_Component) {
|
|
|
11838
11728
|
searchable = _this$props.searchable,
|
|
11839
11729
|
canRefine = _this$props.canRefine,
|
|
11840
11730
|
className = _this$props.className;
|
|
11841
|
-
return React__default
|
|
11731
|
+
return React__default.createElement(List, {
|
|
11842
11732
|
renderItem: this.renderItem,
|
|
11843
11733
|
selectItem: this.selectItem,
|
|
11844
11734
|
cx: cx$a,
|
|
@@ -11859,28 +11749,28 @@ function (_Component) {
|
|
|
11859
11749
|
return Menu;
|
|
11860
11750
|
}(React.Component);
|
|
11861
11751
|
|
|
11862
|
-
_defineProperty(Menu, "propTypes", {
|
|
11863
|
-
translate: PropTypes__default
|
|
11864
|
-
refine: PropTypes__default
|
|
11865
|
-
searchForItems: PropTypes__default
|
|
11866
|
-
searchable: PropTypes__default
|
|
11867
|
-
createURL: PropTypes__default
|
|
11868
|
-
items: PropTypes__default
|
|
11869
|
-
label: PropTypes__default
|
|
11870
|
-
value: PropTypes__default
|
|
11871
|
-
count: PropTypes__default
|
|
11872
|
-
isRefined: PropTypes__default
|
|
11752
|
+
inherits$1$1._defineProperty(Menu, "propTypes", {
|
|
11753
|
+
translate: PropTypes__default.func.isRequired,
|
|
11754
|
+
refine: PropTypes__default.func.isRequired,
|
|
11755
|
+
searchForItems: PropTypes__default.func.isRequired,
|
|
11756
|
+
searchable: PropTypes__default.bool,
|
|
11757
|
+
createURL: PropTypes__default.func.isRequired,
|
|
11758
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11759
|
+
label: PropTypes__default.string.isRequired,
|
|
11760
|
+
value: PropTypes__default.string.isRequired,
|
|
11761
|
+
count: PropTypes__default.number.isRequired,
|
|
11762
|
+
isRefined: PropTypes__default.bool.isRequired
|
|
11873
11763
|
})),
|
|
11874
|
-
isFromSearch: PropTypes__default
|
|
11875
|
-
canRefine: PropTypes__default
|
|
11876
|
-
showMore: PropTypes__default
|
|
11877
|
-
limit: PropTypes__default
|
|
11878
|
-
showMoreLimit: PropTypes__default
|
|
11879
|
-
transformItems: PropTypes__default
|
|
11880
|
-
className: PropTypes__default
|
|
11764
|
+
isFromSearch: PropTypes__default.bool.isRequired,
|
|
11765
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
11766
|
+
showMore: PropTypes__default.bool,
|
|
11767
|
+
limit: PropTypes__default.number,
|
|
11768
|
+
showMoreLimit: PropTypes__default.number,
|
|
11769
|
+
transformItems: PropTypes__default.func,
|
|
11770
|
+
className: PropTypes__default.string
|
|
11881
11771
|
});
|
|
11882
11772
|
|
|
11883
|
-
_defineProperty(Menu, "defaultProps", {
|
|
11773
|
+
inherits$1$1._defineProperty(Menu, "defaultProps", {
|
|
11884
11774
|
className: ''
|
|
11885
11775
|
});
|
|
11886
11776
|
|
|
@@ -11946,7 +11836,7 @@ var Menu$1 = translatable({
|
|
|
11946
11836
|
*/
|
|
11947
11837
|
|
|
11948
11838
|
var MenuWidget = function MenuWidget(props) {
|
|
11949
|
-
return React__default
|
|
11839
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Menu$1, props));
|
|
11950
11840
|
};
|
|
11951
11841
|
|
|
11952
11842
|
connectMenu(MenuWidget);
|
|
@@ -11956,22 +11846,22 @@ var cx$b = createClassNames('MenuSelect');
|
|
|
11956
11846
|
var MenuSelect =
|
|
11957
11847
|
/*#__PURE__*/
|
|
11958
11848
|
function (_Component) {
|
|
11959
|
-
_inherits(MenuSelect, _Component);
|
|
11849
|
+
inherits$1$1._inherits(MenuSelect, _Component);
|
|
11960
11850
|
|
|
11961
11851
|
function MenuSelect() {
|
|
11962
11852
|
var _getPrototypeOf2;
|
|
11963
11853
|
|
|
11964
11854
|
var _this;
|
|
11965
11855
|
|
|
11966
|
-
_classCallCheck(this, MenuSelect);
|
|
11856
|
+
inherits$1$1._classCallCheck(this, MenuSelect);
|
|
11967
11857
|
|
|
11968
11858
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11969
11859
|
args[_key] = arguments[_key];
|
|
11970
11860
|
}
|
|
11971
11861
|
|
|
11972
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MenuSelect)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11862
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(MenuSelect)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11973
11863
|
|
|
11974
|
-
_defineProperty(_assertThisInitialized(_this), "handleSelectChange", function (_ref) {
|
|
11864
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "handleSelectChange", function (_ref) {
|
|
11975
11865
|
var value = _ref.target.value;
|
|
11976
11866
|
|
|
11977
11867
|
_this.props.refine(value === 'ais__see__all__option' ? '' : value);
|
|
@@ -11980,7 +11870,7 @@ function (_Component) {
|
|
|
11980
11870
|
return _this;
|
|
11981
11871
|
}
|
|
11982
11872
|
|
|
11983
|
-
_createClass(MenuSelect, [{
|
|
11873
|
+
inherits$1$1._createClass(MenuSelect, [{
|
|
11984
11874
|
key: "render",
|
|
11985
11875
|
value: function render() {
|
|
11986
11876
|
var _this$props = this.props,
|
|
@@ -11988,17 +11878,17 @@ function (_Component) {
|
|
|
11988
11878
|
canRefine = _this$props.canRefine,
|
|
11989
11879
|
translate = _this$props.translate,
|
|
11990
11880
|
className = _this$props.className;
|
|
11991
|
-
return React__default
|
|
11992
|
-
className: index.classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
11993
|
-
}, React__default
|
|
11881
|
+
return React__default.createElement("div", {
|
|
11882
|
+
className: index$5.classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
11883
|
+
}, React__default.createElement("select", {
|
|
11994
11884
|
value: this.selectedValue,
|
|
11995
11885
|
onChange: this.handleSelectChange,
|
|
11996
11886
|
className: cx$b('select')
|
|
11997
|
-
}, React__default
|
|
11887
|
+
}, React__default.createElement("option", {
|
|
11998
11888
|
value: "ais__see__all__option",
|
|
11999
11889
|
className: cx$b('option')
|
|
12000
11890
|
}, translate('seeAllOption')), items.map(function (item) {
|
|
12001
|
-
return React__default
|
|
11891
|
+
return React__default.createElement("option", {
|
|
12002
11892
|
key: item.value,
|
|
12003
11893
|
value: item.value,
|
|
12004
11894
|
className: cx$b('option')
|
|
@@ -12022,20 +11912,20 @@ function (_Component) {
|
|
|
12022
11912
|
return MenuSelect;
|
|
12023
11913
|
}(React.Component);
|
|
12024
11914
|
|
|
12025
|
-
_defineProperty(MenuSelect, "propTypes", {
|
|
12026
|
-
items: PropTypes__default
|
|
12027
|
-
label: PropTypes__default
|
|
12028
|
-
value: PropTypes__default
|
|
12029
|
-
count: PropTypes__default
|
|
12030
|
-
isRefined: PropTypes__default
|
|
11915
|
+
inherits$1$1._defineProperty(MenuSelect, "propTypes", {
|
|
11916
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11917
|
+
label: PropTypes__default.string.isRequired,
|
|
11918
|
+
value: PropTypes__default.string.isRequired,
|
|
11919
|
+
count: PropTypes__default.oneOfType([PropTypes__default.number.isRequired, PropTypes__default.string.isRequired]),
|
|
11920
|
+
isRefined: PropTypes__default.bool.isRequired
|
|
12031
11921
|
})).isRequired,
|
|
12032
|
-
canRefine: PropTypes__default
|
|
12033
|
-
refine: PropTypes__default
|
|
12034
|
-
translate: PropTypes__default
|
|
12035
|
-
className: PropTypes__default
|
|
11922
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
11923
|
+
refine: PropTypes__default.func.isRequired,
|
|
11924
|
+
translate: PropTypes__default.func.isRequired,
|
|
11925
|
+
className: PropTypes__default.string
|
|
12036
11926
|
});
|
|
12037
11927
|
|
|
12038
|
-
_defineProperty(MenuSelect, "defaultProps", {
|
|
11928
|
+
inherits$1$1._defineProperty(MenuSelect, "defaultProps", {
|
|
12039
11929
|
className: ''
|
|
12040
11930
|
});
|
|
12041
11931
|
|
|
@@ -12080,7 +11970,7 @@ var MenuSelect$1 = translatable({
|
|
|
12080
11970
|
*/
|
|
12081
11971
|
|
|
12082
11972
|
var MenuSelectWidget = function MenuSelectWidget(props) {
|
|
12083
|
-
return React__default
|
|
11973
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(MenuSelect$1, props));
|
|
12084
11974
|
};
|
|
12085
11975
|
|
|
12086
11976
|
connectMenu(MenuSelectWidget);
|
|
@@ -12090,28 +11980,28 @@ var cx$c = createClassNames('NumericMenu');
|
|
|
12090
11980
|
var NumericMenu =
|
|
12091
11981
|
/*#__PURE__*/
|
|
12092
11982
|
function (_Component) {
|
|
12093
|
-
_inherits(NumericMenu, _Component);
|
|
11983
|
+
inherits$1$1._inherits(NumericMenu, _Component);
|
|
12094
11984
|
|
|
12095
11985
|
function NumericMenu() {
|
|
12096
11986
|
var _getPrototypeOf2;
|
|
12097
11987
|
|
|
12098
11988
|
var _this;
|
|
12099
11989
|
|
|
12100
|
-
_classCallCheck(this, NumericMenu);
|
|
11990
|
+
inherits$1$1._classCallCheck(this, NumericMenu);
|
|
12101
11991
|
|
|
12102
11992
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
12103
11993
|
args[_key] = arguments[_key];
|
|
12104
11994
|
}
|
|
12105
11995
|
|
|
12106
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(NumericMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11996
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(NumericMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12107
11997
|
|
|
12108
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item) {
|
|
11998
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item) {
|
|
12109
11999
|
var _this$props = _this.props,
|
|
12110
12000
|
refine = _this$props.refine,
|
|
12111
12001
|
translate = _this$props.translate;
|
|
12112
|
-
return React__default
|
|
12002
|
+
return React__default.createElement("label", {
|
|
12113
12003
|
className: cx$c('label')
|
|
12114
|
-
}, React__default
|
|
12004
|
+
}, React__default.createElement("input", {
|
|
12115
12005
|
className: cx$c('radio'),
|
|
12116
12006
|
type: "radio",
|
|
12117
12007
|
checked: item.isRefined,
|
|
@@ -12119,7 +12009,7 @@ function (_Component) {
|
|
|
12119
12009
|
onChange: function onChange() {
|
|
12120
12010
|
return refine(item.value);
|
|
12121
12011
|
}
|
|
12122
|
-
}), React__default
|
|
12012
|
+
}), React__default.createElement("span", {
|
|
12123
12013
|
className: cx$c('labelText')
|
|
12124
12014
|
}, item.value === '' ? translate('all') : item.label));
|
|
12125
12015
|
});
|
|
@@ -12127,14 +12017,14 @@ function (_Component) {
|
|
|
12127
12017
|
return _this;
|
|
12128
12018
|
}
|
|
12129
12019
|
|
|
12130
|
-
_createClass(NumericMenu, [{
|
|
12020
|
+
inherits$1$1._createClass(NumericMenu, [{
|
|
12131
12021
|
key: "render",
|
|
12132
12022
|
value: function render() {
|
|
12133
12023
|
var _this$props2 = this.props,
|
|
12134
12024
|
items = _this$props2.items,
|
|
12135
12025
|
canRefine = _this$props2.canRefine,
|
|
12136
12026
|
className = _this$props2.className;
|
|
12137
|
-
return React__default
|
|
12027
|
+
return React__default.createElement(List, {
|
|
12138
12028
|
renderItem: this.renderItem,
|
|
12139
12029
|
showMore: false,
|
|
12140
12030
|
canRefine: canRefine,
|
|
@@ -12152,20 +12042,20 @@ function (_Component) {
|
|
|
12152
12042
|
return NumericMenu;
|
|
12153
12043
|
}(React.Component);
|
|
12154
12044
|
|
|
12155
|
-
_defineProperty(NumericMenu, "propTypes", {
|
|
12156
|
-
items: PropTypes__default
|
|
12157
|
-
label: PropTypes__default
|
|
12158
|
-
value: PropTypes__default
|
|
12159
|
-
isRefined: PropTypes__default
|
|
12160
|
-
noRefinement: PropTypes__default
|
|
12045
|
+
inherits$1$1._defineProperty(NumericMenu, "propTypes", {
|
|
12046
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12047
|
+
label: PropTypes__default.node.isRequired,
|
|
12048
|
+
value: PropTypes__default.string.isRequired,
|
|
12049
|
+
isRefined: PropTypes__default.bool.isRequired,
|
|
12050
|
+
noRefinement: PropTypes__default.bool.isRequired
|
|
12161
12051
|
})).isRequired,
|
|
12162
|
-
canRefine: PropTypes__default
|
|
12163
|
-
refine: PropTypes__default
|
|
12164
|
-
translate: PropTypes__default
|
|
12165
|
-
className: PropTypes__default
|
|
12052
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12053
|
+
refine: PropTypes__default.func.isRequired,
|
|
12054
|
+
translate: PropTypes__default.func.isRequired,
|
|
12055
|
+
className: PropTypes__default.string
|
|
12166
12056
|
});
|
|
12167
12057
|
|
|
12168
|
-
_defineProperty(NumericMenu, "defaultProps", {
|
|
12058
|
+
inherits$1$1._defineProperty(NumericMenu, "defaultProps", {
|
|
12169
12059
|
className: ''
|
|
12170
12060
|
});
|
|
12171
12061
|
|
|
@@ -12220,7 +12110,7 @@ var NumericMenu$1 = translatable({
|
|
|
12220
12110
|
*/
|
|
12221
12111
|
|
|
12222
12112
|
var NumericMenuWidget = function NumericMenuWidget(props) {
|
|
12223
|
-
return React__default
|
|
12113
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(NumericMenu$1, props));
|
|
12224
12114
|
};
|
|
12225
12115
|
|
|
12226
12116
|
connectNumericMenu(NumericMenuWidget);
|
|
@@ -12228,15 +12118,15 @@ connectNumericMenu(NumericMenuWidget);
|
|
|
12228
12118
|
var LinkList =
|
|
12229
12119
|
/*#__PURE__*/
|
|
12230
12120
|
function (_Component) {
|
|
12231
|
-
_inherits(LinkList, _Component);
|
|
12121
|
+
inherits$1$1._inherits(LinkList, _Component);
|
|
12232
12122
|
|
|
12233
12123
|
function LinkList() {
|
|
12234
|
-
_classCallCheck(this, LinkList);
|
|
12124
|
+
inherits$1$1._classCallCheck(this, LinkList);
|
|
12235
12125
|
|
|
12236
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(LinkList).apply(this, arguments));
|
|
12126
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(LinkList).apply(this, arguments));
|
|
12237
12127
|
}
|
|
12238
12128
|
|
|
12239
|
-
_createClass(LinkList, [{
|
|
12129
|
+
inherits$1$1._createClass(LinkList, [{
|
|
12240
12130
|
key: "render",
|
|
12241
12131
|
value: function render() {
|
|
12242
12132
|
var _this$props = this.props,
|
|
@@ -12245,15 +12135,15 @@ function (_Component) {
|
|
|
12245
12135
|
items = _this$props.items,
|
|
12246
12136
|
onSelect = _this$props.onSelect,
|
|
12247
12137
|
canRefine = _this$props.canRefine;
|
|
12248
|
-
return React__default
|
|
12138
|
+
return React__default.createElement("ul", {
|
|
12249
12139
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
12250
12140
|
}, items.map(function (item) {
|
|
12251
|
-
return React__default
|
|
12141
|
+
return React__default.createElement("li", {
|
|
12252
12142
|
key: item.key === undefined ? item.value : item.key,
|
|
12253
12143
|
className: cx('item', item.selected && !item.disabled && 'item--selected', item.disabled && 'item--disabled', item.modifier)
|
|
12254
|
-
}, item.disabled ? React__default
|
|
12144
|
+
}, item.disabled ? React__default.createElement("span", {
|
|
12255
12145
|
className: cx('link')
|
|
12256
|
-
}, item.label === undefined ? item.value : item.label) : React__default
|
|
12146
|
+
}, item.label === undefined ? item.value : item.label) : React__default.createElement(Link, {
|
|
12257
12147
|
className: cx('link', item.selected && 'link--selected'),
|
|
12258
12148
|
"aria-label": item.ariaLabel,
|
|
12259
12149
|
href: createURL(item.value),
|
|
@@ -12268,19 +12158,19 @@ function (_Component) {
|
|
|
12268
12158
|
return LinkList;
|
|
12269
12159
|
}(React.Component);
|
|
12270
12160
|
|
|
12271
|
-
_defineProperty(LinkList, "propTypes", {
|
|
12272
|
-
cx: PropTypes__default
|
|
12273
|
-
createURL: PropTypes__default
|
|
12274
|
-
items: PropTypes__default
|
|
12275
|
-
value: PropTypes__default
|
|
12276
|
-
key: PropTypes__default
|
|
12277
|
-
label: PropTypes__default
|
|
12278
|
-
modifier: PropTypes__default
|
|
12279
|
-
ariaLabel: PropTypes__default
|
|
12280
|
-
disabled: PropTypes__default
|
|
12161
|
+
inherits$1$1._defineProperty(LinkList, "propTypes", {
|
|
12162
|
+
cx: PropTypes__default.func.isRequired,
|
|
12163
|
+
createURL: PropTypes__default.func.isRequired,
|
|
12164
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12165
|
+
value: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number, PropTypes__default.object]).isRequired,
|
|
12166
|
+
key: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]),
|
|
12167
|
+
label: PropTypes__default.node,
|
|
12168
|
+
modifier: PropTypes__default.string,
|
|
12169
|
+
ariaLabel: PropTypes__default.string,
|
|
12170
|
+
disabled: PropTypes__default.bool
|
|
12281
12171
|
})),
|
|
12282
|
-
onSelect: PropTypes__default
|
|
12283
|
-
canRefine: PropTypes__default
|
|
12172
|
+
onSelect: PropTypes__default.func.isRequired,
|
|
12173
|
+
canRefine: PropTypes__default.bool.isRequired
|
|
12284
12174
|
});
|
|
12285
12175
|
|
|
12286
12176
|
var cx$d = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
|
|
@@ -12322,15 +12212,15 @@ function getPages(currentPage, maxPages, padding) {
|
|
|
12322
12212
|
var Pagination =
|
|
12323
12213
|
/*#__PURE__*/
|
|
12324
12214
|
function (_Component) {
|
|
12325
|
-
_inherits(Pagination, _Component);
|
|
12215
|
+
inherits$1$1._inherits(Pagination, _Component);
|
|
12326
12216
|
|
|
12327
12217
|
function Pagination() {
|
|
12328
|
-
_classCallCheck(this, Pagination);
|
|
12218
|
+
inherits$1$1._classCallCheck(this, Pagination);
|
|
12329
12219
|
|
|
12330
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Pagination).apply(this, arguments));
|
|
12220
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(Pagination).apply(this, arguments));
|
|
12331
12221
|
}
|
|
12332
12222
|
|
|
12333
|
-
_createClass(Pagination, [{
|
|
12223
|
+
inherits$1$1._createClass(Pagination, [{
|
|
12334
12224
|
key: "getItem",
|
|
12335
12225
|
value: function getItem(modifier, translationKey, value) {
|
|
12336
12226
|
var _this$props = this.props,
|
|
@@ -12425,9 +12315,9 @@ function (_Component) {
|
|
|
12425
12315
|
});
|
|
12426
12316
|
}
|
|
12427
12317
|
|
|
12428
|
-
return React__default
|
|
12429
|
-
className: index.classnames(cx$d('', !canRefine && '-noRefinement'), className)
|
|
12430
|
-
}, React__default
|
|
12318
|
+
return React__default.createElement("div", {
|
|
12319
|
+
className: index$5.classnames(cx$d('', !canRefine && '-noRefinement'), className)
|
|
12320
|
+
}, React__default.createElement(ListComponent, index$5._extends({}, otherProps, {
|
|
12431
12321
|
cx: cx$d,
|
|
12432
12322
|
items: items,
|
|
12433
12323
|
onSelect: refine,
|
|
@@ -12440,24 +12330,24 @@ function (_Component) {
|
|
|
12440
12330
|
return Pagination;
|
|
12441
12331
|
}(React.Component);
|
|
12442
12332
|
|
|
12443
|
-
_defineProperty(Pagination, "propTypes", {
|
|
12444
|
-
nbPages: PropTypes__default
|
|
12445
|
-
currentRefinement: PropTypes__default
|
|
12446
|
-
refine: PropTypes__default
|
|
12447
|
-
createURL: PropTypes__default
|
|
12448
|
-
canRefine: PropTypes__default
|
|
12449
|
-
translate: PropTypes__default
|
|
12450
|
-
listComponent: PropTypes__default
|
|
12451
|
-
showFirst: PropTypes__default
|
|
12452
|
-
showPrevious: PropTypes__default
|
|
12453
|
-
showNext: PropTypes__default
|
|
12454
|
-
showLast: PropTypes__default
|
|
12455
|
-
padding: PropTypes__default
|
|
12456
|
-
totalPages: PropTypes__default
|
|
12457
|
-
className: PropTypes__default
|
|
12333
|
+
inherits$1$1._defineProperty(Pagination, "propTypes", {
|
|
12334
|
+
nbPages: PropTypes__default.number.isRequired,
|
|
12335
|
+
currentRefinement: PropTypes__default.number.isRequired,
|
|
12336
|
+
refine: PropTypes__default.func.isRequired,
|
|
12337
|
+
createURL: PropTypes__default.func.isRequired,
|
|
12338
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12339
|
+
translate: PropTypes__default.func.isRequired,
|
|
12340
|
+
listComponent: PropTypes__default.func,
|
|
12341
|
+
showFirst: PropTypes__default.bool,
|
|
12342
|
+
showPrevious: PropTypes__default.bool,
|
|
12343
|
+
showNext: PropTypes__default.bool,
|
|
12344
|
+
showLast: PropTypes__default.bool,
|
|
12345
|
+
padding: PropTypes__default.number,
|
|
12346
|
+
totalPages: PropTypes__default.number,
|
|
12347
|
+
className: PropTypes__default.string
|
|
12458
12348
|
});
|
|
12459
12349
|
|
|
12460
|
-
_defineProperty(Pagination, "defaultProps", {
|
|
12350
|
+
inherits$1$1._defineProperty(Pagination, "defaultProps", {
|
|
12461
12351
|
listComponent: LinkList,
|
|
12462
12352
|
showFirst: true,
|
|
12463
12353
|
showPrevious: true,
|
|
@@ -12540,7 +12430,7 @@ var Pagination$1 = translatable({
|
|
|
12540
12430
|
*/
|
|
12541
12431
|
|
|
12542
12432
|
var PaginationWidget = function PaginationWidget(props) {
|
|
12543
|
-
return React__default
|
|
12433
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$1, props));
|
|
12544
12434
|
};
|
|
12545
12435
|
|
|
12546
12436
|
var Pagination$2 = connectPagination(PaginationWidget);
|
|
@@ -12549,14 +12439,14 @@ var cx$e = createClassNames('PoweredBy');
|
|
|
12549
12439
|
/* eslint-disable max-len */
|
|
12550
12440
|
|
|
12551
12441
|
var AlgoliaLogo = function AlgoliaLogo() {
|
|
12552
|
-
return React__default
|
|
12442
|
+
return React__default.createElement("svg", {
|
|
12553
12443
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12554
12444
|
baseProfile: "basic",
|
|
12555
12445
|
viewBox: "0 0 1366 362",
|
|
12556
12446
|
width: "100",
|
|
12557
12447
|
height: "27",
|
|
12558
12448
|
className: cx$e('logo')
|
|
12559
|
-
}, React__default
|
|
12449
|
+
}, React__default.createElement("linearGradient", {
|
|
12560
12450
|
id: "g",
|
|
12561
12451
|
x1: "428.258",
|
|
12562
12452
|
x2: "434.145",
|
|
@@ -12564,19 +12454,19 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12564
12454
|
y2: "409.85",
|
|
12565
12455
|
gradientUnits: "userSpaceOnUse",
|
|
12566
12456
|
gradientTransform: "matrix(94.045 0 0 -94.072 -40381.527 38479.52)"
|
|
12567
|
-
}, React__default
|
|
12457
|
+
}, React__default.createElement("stop", {
|
|
12568
12458
|
offset: "0",
|
|
12569
12459
|
stopColor: "#00AEFF"
|
|
12570
|
-
}), React__default
|
|
12460
|
+
}), React__default.createElement("stop", {
|
|
12571
12461
|
offset: "1",
|
|
12572
12462
|
stopColor: "#3369E7"
|
|
12573
|
-
})), React__default
|
|
12463
|
+
})), React__default.createElement("path", {
|
|
12574
12464
|
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",
|
|
12575
12465
|
fill: "url(#g)"
|
|
12576
|
-
}), React__default
|
|
12466
|
+
}), React__default.createElement("path", {
|
|
12577
12467
|
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",
|
|
12578
12468
|
fill: "#FFFFFF"
|
|
12579
|
-
}), React__default
|
|
12469
|
+
}), React__default.createElement("path", {
|
|
12580
12470
|
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",
|
|
12581
12471
|
fill: "#182359"
|
|
12582
12472
|
}));
|
|
@@ -12587,42 +12477,42 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12587
12477
|
var PoweredBy =
|
|
12588
12478
|
/*#__PURE__*/
|
|
12589
12479
|
function (_Component) {
|
|
12590
|
-
_inherits(PoweredBy, _Component);
|
|
12480
|
+
inherits$1$1._inherits(PoweredBy, _Component);
|
|
12591
12481
|
|
|
12592
12482
|
function PoweredBy() {
|
|
12593
|
-
_classCallCheck(this, PoweredBy);
|
|
12483
|
+
inherits$1$1._classCallCheck(this, PoweredBy);
|
|
12594
12484
|
|
|
12595
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(PoweredBy).apply(this, arguments));
|
|
12485
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(PoweredBy).apply(this, arguments));
|
|
12596
12486
|
}
|
|
12597
12487
|
|
|
12598
|
-
_createClass(PoweredBy, [{
|
|
12488
|
+
inherits$1$1._createClass(PoweredBy, [{
|
|
12599
12489
|
key: "render",
|
|
12600
12490
|
value: function render() {
|
|
12601
12491
|
var _this$props = this.props,
|
|
12602
12492
|
url = _this$props.url,
|
|
12603
12493
|
translate = _this$props.translate,
|
|
12604
12494
|
className = _this$props.className;
|
|
12605
|
-
return React__default
|
|
12606
|
-
className: index.classnames(cx$e(''), className)
|
|
12607
|
-
}, React__default
|
|
12495
|
+
return React__default.createElement("div", {
|
|
12496
|
+
className: index$5.classnames(cx$e(''), className)
|
|
12497
|
+
}, React__default.createElement("span", {
|
|
12608
12498
|
className: cx$e('text')
|
|
12609
|
-
}, translate('searchBy')), ' ', React__default
|
|
12499
|
+
}, translate('searchBy')), ' ', React__default.createElement("a", {
|
|
12610
12500
|
href: url,
|
|
12611
12501
|
target: "_blank",
|
|
12612
12502
|
className: cx$e('link'),
|
|
12613
12503
|
"aria-label": "Algolia",
|
|
12614
12504
|
rel: "noopener noreferrer"
|
|
12615
|
-
}, React__default
|
|
12505
|
+
}, React__default.createElement(AlgoliaLogo, null)));
|
|
12616
12506
|
}
|
|
12617
12507
|
}]);
|
|
12618
12508
|
|
|
12619
12509
|
return PoweredBy;
|
|
12620
12510
|
}(React.Component);
|
|
12621
12511
|
|
|
12622
|
-
_defineProperty(PoweredBy, "propTypes", {
|
|
12623
|
-
url: PropTypes__default
|
|
12624
|
-
translate: PropTypes__default
|
|
12625
|
-
className: PropTypes__default
|
|
12512
|
+
inherits$1$1._defineProperty(PoweredBy, "propTypes", {
|
|
12513
|
+
url: PropTypes__default.string.isRequired,
|
|
12514
|
+
translate: PropTypes__default.func.isRequired,
|
|
12515
|
+
className: PropTypes__default.string
|
|
12626
12516
|
});
|
|
12627
12517
|
|
|
12628
12518
|
var PoweredBy$1 = translatable({
|
|
@@ -12666,16 +12556,16 @@ var cx$f = createClassNames('RangeInput');
|
|
|
12666
12556
|
var RawRangeInput =
|
|
12667
12557
|
/*#__PURE__*/
|
|
12668
12558
|
function (_Component) {
|
|
12669
|
-
_inherits(RawRangeInput, _Component);
|
|
12559
|
+
inherits$1$1._inherits(RawRangeInput, _Component);
|
|
12670
12560
|
|
|
12671
12561
|
function RawRangeInput(props) {
|
|
12672
12562
|
var _this;
|
|
12673
12563
|
|
|
12674
|
-
_classCallCheck(this, RawRangeInput);
|
|
12564
|
+
inherits$1$1._classCallCheck(this, RawRangeInput);
|
|
12675
12565
|
|
|
12676
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(RawRangeInput).call(this, props));
|
|
12566
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(RawRangeInput).call(this, props));
|
|
12677
12567
|
|
|
12678
|
-
_defineProperty(_assertThisInitialized(_this), "onSubmit", function (e) {
|
|
12568
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onSubmit", function (e) {
|
|
12679
12569
|
e.preventDefault();
|
|
12680
12570
|
|
|
12681
12571
|
_this.props.refine({
|
|
@@ -12688,7 +12578,7 @@ function (_Component) {
|
|
|
12688
12578
|
return _this;
|
|
12689
12579
|
}
|
|
12690
12580
|
|
|
12691
|
-
_createClass(RawRangeInput, [{
|
|
12581
|
+
inherits$1$1._createClass(RawRangeInput, [{
|
|
12692
12582
|
key: "componentDidUpdate",
|
|
12693
12583
|
value: function componentDidUpdate(prevProps) {
|
|
12694
12584
|
if (this.props.canRefine && (prevProps.currentRefinement.min !== this.props.currentRefinement.min || prevProps.currentRefinement.max !== this.props.currentRefinement.max)) {
|
|
@@ -12741,12 +12631,12 @@ function (_Component) {
|
|
|
12741
12631
|
max = _this$normalizeRangeF.max;
|
|
12742
12632
|
|
|
12743
12633
|
var step = 1 / Math.pow(10, precision);
|
|
12744
|
-
return React__default
|
|
12745
|
-
className: index.classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12746
|
-
}, React__default
|
|
12634
|
+
return React__default.createElement("div", {
|
|
12635
|
+
className: index$5.classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12636
|
+
}, React__default.createElement("form", {
|
|
12747
12637
|
className: cx$f('form'),
|
|
12748
12638
|
onSubmit: this.onSubmit
|
|
12749
|
-
}, React__default
|
|
12639
|
+
}, React__default.createElement("input", {
|
|
12750
12640
|
className: cx$f('input', 'input--min'),
|
|
12751
12641
|
type: "number",
|
|
12752
12642
|
min: min,
|
|
@@ -12760,9 +12650,9 @@ function (_Component) {
|
|
|
12760
12650
|
from: e.currentTarget.value
|
|
12761
12651
|
});
|
|
12762
12652
|
}
|
|
12763
|
-
}), React__default
|
|
12653
|
+
}), React__default.createElement("span", {
|
|
12764
12654
|
className: cx$f('separator')
|
|
12765
|
-
}, translate('separator')), React__default
|
|
12655
|
+
}, translate('separator')), React__default.createElement("input", {
|
|
12766
12656
|
className: cx$f('input', 'input--max'),
|
|
12767
12657
|
type: "number",
|
|
12768
12658
|
min: min,
|
|
@@ -12776,7 +12666,7 @@ function (_Component) {
|
|
|
12776
12666
|
to: e.currentTarget.value
|
|
12777
12667
|
});
|
|
12778
12668
|
}
|
|
12779
|
-
}), React__default
|
|
12669
|
+
}), React__default.createElement("button", {
|
|
12780
12670
|
className: cx$f('submit'),
|
|
12781
12671
|
type: "submit"
|
|
12782
12672
|
}, translate('submit'))));
|
|
@@ -12786,21 +12676,21 @@ function (_Component) {
|
|
|
12786
12676
|
return RawRangeInput;
|
|
12787
12677
|
}(React.Component);
|
|
12788
12678
|
|
|
12789
|
-
_defineProperty(RawRangeInput, "propTypes", {
|
|
12790
|
-
canRefine: PropTypes__default
|
|
12791
|
-
precision: PropTypes__default
|
|
12792
|
-
translate: PropTypes__default
|
|
12793
|
-
refine: PropTypes__default
|
|
12794
|
-
min: PropTypes__default
|
|
12795
|
-
max: PropTypes__default
|
|
12796
|
-
currentRefinement: PropTypes__default
|
|
12797
|
-
min: PropTypes__default
|
|
12798
|
-
max: PropTypes__default
|
|
12679
|
+
inherits$1$1._defineProperty(RawRangeInput, "propTypes", {
|
|
12680
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12681
|
+
precision: PropTypes__default.number.isRequired,
|
|
12682
|
+
translate: PropTypes__default.func.isRequired,
|
|
12683
|
+
refine: PropTypes__default.func.isRequired,
|
|
12684
|
+
min: PropTypes__default.number,
|
|
12685
|
+
max: PropTypes__default.number,
|
|
12686
|
+
currentRefinement: PropTypes__default.shape({
|
|
12687
|
+
min: PropTypes__default.number,
|
|
12688
|
+
max: PropTypes__default.number
|
|
12799
12689
|
}),
|
|
12800
|
-
className: PropTypes__default
|
|
12690
|
+
className: PropTypes__default.string
|
|
12801
12691
|
});
|
|
12802
12692
|
|
|
12803
|
-
_defineProperty(RawRangeInput, "defaultProps", {
|
|
12693
|
+
inherits$1$1._defineProperty(RawRangeInput, "defaultProps", {
|
|
12804
12694
|
currentRefinement: {},
|
|
12805
12695
|
className: ''
|
|
12806
12696
|
});
|
|
@@ -12853,7 +12743,7 @@ var RangeInput = translatable({
|
|
|
12853
12743
|
*/
|
|
12854
12744
|
|
|
12855
12745
|
var RangeInputWidget = function RangeInputWidget(props) {
|
|
12856
|
-
return React__default
|
|
12746
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RangeInput, props));
|
|
12857
12747
|
};
|
|
12858
12748
|
|
|
12859
12749
|
connectRange(RangeInputWidget);
|
|
@@ -12863,15 +12753,15 @@ var cx$g = createClassNames('RatingMenu');
|
|
|
12863
12753
|
var RatingMenu =
|
|
12864
12754
|
/*#__PURE__*/
|
|
12865
12755
|
function (_Component) {
|
|
12866
|
-
_inherits(RatingMenu, _Component);
|
|
12756
|
+
inherits$1$1._inherits(RatingMenu, _Component);
|
|
12867
12757
|
|
|
12868
12758
|
function RatingMenu() {
|
|
12869
|
-
_classCallCheck(this, RatingMenu);
|
|
12759
|
+
inherits$1$1._classCallCheck(this, RatingMenu);
|
|
12870
12760
|
|
|
12871
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(RatingMenu).apply(this, arguments));
|
|
12761
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(RatingMenu).apply(this, arguments));
|
|
12872
12762
|
}
|
|
12873
12763
|
|
|
12874
|
-
_createClass(RatingMenu, [{
|
|
12764
|
+
inherits$1$1._createClass(RatingMenu, [{
|
|
12875
12765
|
key: "onClick",
|
|
12876
12766
|
value: function onClick(min, max, e) {
|
|
12877
12767
|
e.preventDefault();
|
|
@@ -12909,13 +12799,13 @@ function (_Component) {
|
|
|
12909
12799
|
rating++;
|
|
12910
12800
|
}
|
|
12911
12801
|
|
|
12912
|
-
icons.push([React__default
|
|
12802
|
+
icons.push([React__default.createElement("svg", {
|
|
12913
12803
|
key: icon,
|
|
12914
12804
|
className: cx$g('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
|
|
12915
12805
|
"aria-hidden": "true",
|
|
12916
12806
|
width: "24",
|
|
12917
12807
|
height: "24"
|
|
12918
|
-
}, React__default
|
|
12808
|
+
}, React__default.createElement("use", {
|
|
12919
12809
|
xlinkHref: "#".concat(cx$g(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
|
|
12920
12810
|
})), ' ']);
|
|
12921
12811
|
} // The last item of the list (the default item), should not
|
|
@@ -12930,16 +12820,16 @@ function (_Component) {
|
|
|
12930
12820
|
}),
|
|
12931
12821
|
onClick: this.onClick.bind(this, lowerBound, max)
|
|
12932
12822
|
};
|
|
12933
|
-
return React__default
|
|
12823
|
+
return React__default.createElement("li", {
|
|
12934
12824
|
key: lowerBound,
|
|
12935
12825
|
className: cx$g('item', selected && 'item--selected', disabled && 'item--disabled')
|
|
12936
|
-
}, React__default
|
|
12826
|
+
}, React__default.createElement("a", index$5._extends({
|
|
12937
12827
|
className: cx$g('link'),
|
|
12938
12828
|
"aria-label": "".concat(rating).concat(translate('ratingLabel'))
|
|
12939
|
-
}, onClickHandler), icons, React__default
|
|
12829
|
+
}, onClickHandler), icons, React__default.createElement("span", {
|
|
12940
12830
|
className: cx$g('label'),
|
|
12941
12831
|
"aria-hidden": "true"
|
|
12942
|
-
}, translate('ratingLabel')), ' ', React__default
|
|
12832
|
+
}, translate('ratingLabel')), ' ', React__default.createElement("span", {
|
|
12943
12833
|
className: cx$g('count')
|
|
12944
12834
|
}, count)));
|
|
12945
12835
|
}
|
|
@@ -12995,24 +12885,24 @@ function (_Component) {
|
|
|
12995
12885
|
createURL: createURL
|
|
12996
12886
|
});
|
|
12997
12887
|
});
|
|
12998
|
-
return React__default
|
|
12999
|
-
className: index.classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
13000
|
-
}, React__default
|
|
12888
|
+
return React__default.createElement("div", {
|
|
12889
|
+
className: index$5.classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
12890
|
+
}, React__default.createElement("svg", {
|
|
13001
12891
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13002
12892
|
style: {
|
|
13003
12893
|
display: 'none'
|
|
13004
12894
|
}
|
|
13005
|
-
}, React__default
|
|
12895
|
+
}, React__default.createElement("symbol", {
|
|
13006
12896
|
id: cx$g('starSymbol'),
|
|
13007
12897
|
viewBox: "0 0 24 24"
|
|
13008
|
-
}, React__default
|
|
12898
|
+
}, React__default.createElement("path", {
|
|
13009
12899
|
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"
|
|
13010
|
-
})), React__default
|
|
12900
|
+
})), React__default.createElement("symbol", {
|
|
13011
12901
|
id: cx$g('starEmptySymbol'),
|
|
13012
12902
|
viewBox: "0 0 24 24"
|
|
13013
|
-
}, React__default
|
|
12903
|
+
}, React__default.createElement("path", {
|
|
13014
12904
|
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"
|
|
13015
|
-
}))), React__default
|
|
12905
|
+
}))), React__default.createElement("ul", {
|
|
13016
12906
|
className: cx$g('list', !canRefine && 'list--noRefinement')
|
|
13017
12907
|
}, items));
|
|
13018
12908
|
}
|
|
@@ -13021,25 +12911,25 @@ function (_Component) {
|
|
|
13021
12911
|
return RatingMenu;
|
|
13022
12912
|
}(React.Component);
|
|
13023
12913
|
|
|
13024
|
-
_defineProperty(RatingMenu, "propTypes", {
|
|
13025
|
-
translate: PropTypes__default
|
|
13026
|
-
refine: PropTypes__default
|
|
13027
|
-
createURL: PropTypes__default
|
|
13028
|
-
min: PropTypes__default
|
|
13029
|
-
max: PropTypes__default
|
|
13030
|
-
currentRefinement: PropTypes__default
|
|
13031
|
-
min: PropTypes__default
|
|
13032
|
-
max: PropTypes__default
|
|
12914
|
+
inherits$1$1._defineProperty(RatingMenu, "propTypes", {
|
|
12915
|
+
translate: PropTypes__default.func.isRequired,
|
|
12916
|
+
refine: PropTypes__default.func.isRequired,
|
|
12917
|
+
createURL: PropTypes__default.func.isRequired,
|
|
12918
|
+
min: PropTypes__default.number,
|
|
12919
|
+
max: PropTypes__default.number,
|
|
12920
|
+
currentRefinement: PropTypes__default.shape({
|
|
12921
|
+
min: PropTypes__default.number,
|
|
12922
|
+
max: PropTypes__default.number
|
|
13033
12923
|
}),
|
|
13034
|
-
count: PropTypes__default
|
|
13035
|
-
value: PropTypes__default
|
|
13036
|
-
count: PropTypes__default
|
|
12924
|
+
count: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12925
|
+
value: PropTypes__default.string,
|
|
12926
|
+
count: PropTypes__default.number
|
|
13037
12927
|
})),
|
|
13038
|
-
canRefine: PropTypes__default
|
|
13039
|
-
className: PropTypes__default
|
|
12928
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12929
|
+
className: PropTypes__default.string
|
|
13040
12930
|
});
|
|
13041
12931
|
|
|
13042
|
-
_defineProperty(RatingMenu, "defaultProps", {
|
|
12932
|
+
inherits$1$1._defineProperty(RatingMenu, "defaultProps", {
|
|
13043
12933
|
className: ''
|
|
13044
12934
|
});
|
|
13045
12935
|
|
|
@@ -13096,7 +12986,7 @@ var RatingMenu$1 = translatable({
|
|
|
13096
12986
|
*/
|
|
13097
12987
|
|
|
13098
12988
|
var RatingMenuWidget = function RatingMenuWidget(props) {
|
|
13099
|
-
return React__default
|
|
12989
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RatingMenu$1, props));
|
|
13100
12990
|
};
|
|
13101
12991
|
|
|
13102
12992
|
connectRange(RatingMenuWidget);
|
|
@@ -13106,48 +12996,48 @@ var cx$h = createClassNames('RefinementList');
|
|
|
13106
12996
|
var RefinementList$1 =
|
|
13107
12997
|
/*#__PURE__*/
|
|
13108
12998
|
function (_Component) {
|
|
13109
|
-
_inherits(RefinementList, _Component);
|
|
12999
|
+
inherits$1$1._inherits(RefinementList, _Component);
|
|
13110
13000
|
|
|
13111
13001
|
function RefinementList() {
|
|
13112
13002
|
var _getPrototypeOf2;
|
|
13113
13003
|
|
|
13114
13004
|
var _this;
|
|
13115
13005
|
|
|
13116
|
-
_classCallCheck(this, RefinementList);
|
|
13006
|
+
inherits$1$1._classCallCheck(this, RefinementList);
|
|
13117
13007
|
|
|
13118
13008
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13119
13009
|
args[_key] = arguments[_key];
|
|
13120
13010
|
}
|
|
13121
13011
|
|
|
13122
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(RefinementList)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
13012
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(RefinementList)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
13123
13013
|
|
|
13124
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
13014
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "state", {
|
|
13125
13015
|
query: ''
|
|
13126
13016
|
});
|
|
13127
13017
|
|
|
13128
|
-
_defineProperty(_assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
13018
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
13129
13019
|
resetQuery();
|
|
13130
13020
|
|
|
13131
13021
|
_this.props.refine(item.value);
|
|
13132
13022
|
});
|
|
13133
13023
|
|
|
13134
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13135
|
-
var label = _this.props.isFromSearch ? React__default
|
|
13024
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13025
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
13136
13026
|
attribute: "label",
|
|
13137
13027
|
hit: item
|
|
13138
13028
|
}) : item.label;
|
|
13139
|
-
return React__default
|
|
13029
|
+
return React__default.createElement("label", {
|
|
13140
13030
|
className: cx$h('label')
|
|
13141
|
-
}, React__default
|
|
13031
|
+
}, React__default.createElement("input", {
|
|
13142
13032
|
className: cx$h('checkbox'),
|
|
13143
13033
|
type: "checkbox",
|
|
13144
13034
|
checked: item.isRefined,
|
|
13145
13035
|
onChange: function onChange() {
|
|
13146
13036
|
return _this.selectItem(item, resetQuery);
|
|
13147
13037
|
}
|
|
13148
|
-
}), React__default
|
|
13038
|
+
}), React__default.createElement("span", {
|
|
13149
13039
|
className: cx$h('labelText')
|
|
13150
|
-
}, label), ' ', React__default
|
|
13040
|
+
}, label), ' ', React__default.createElement("span", {
|
|
13151
13041
|
className: cx$h('count')
|
|
13152
13042
|
}, item.count.toLocaleString()));
|
|
13153
13043
|
});
|
|
@@ -13155,7 +13045,7 @@ function (_Component) {
|
|
|
13155
13045
|
return _this;
|
|
13156
13046
|
}
|
|
13157
13047
|
|
|
13158
|
-
_createClass(RefinementList, [{
|
|
13048
|
+
inherits$1$1._createClass(RefinementList, [{
|
|
13159
13049
|
key: "render",
|
|
13160
13050
|
value: function render() {
|
|
13161
13051
|
var _this$props = this.props,
|
|
@@ -13169,7 +13059,7 @@ function (_Component) {
|
|
|
13169
13059
|
searchable = _this$props.searchable,
|
|
13170
13060
|
canRefine = _this$props.canRefine,
|
|
13171
13061
|
className = _this$props.className;
|
|
13172
|
-
return React__default
|
|
13062
|
+
return React__default.createElement(List, {
|
|
13173
13063
|
renderItem: this.renderItem,
|
|
13174
13064
|
selectItem: this.selectItem,
|
|
13175
13065
|
cx: cx$h,
|
|
@@ -13191,28 +13081,28 @@ function (_Component) {
|
|
|
13191
13081
|
return RefinementList;
|
|
13192
13082
|
}(React.Component);
|
|
13193
13083
|
|
|
13194
|
-
_defineProperty(RefinementList$1, "propTypes", {
|
|
13195
|
-
translate: PropTypes__default
|
|
13196
|
-
refine: PropTypes__default
|
|
13197
|
-
searchForItems: PropTypes__default
|
|
13198
|
-
searchable: PropTypes__default
|
|
13199
|
-
createURL: PropTypes__default
|
|
13200
|
-
items: PropTypes__default
|
|
13201
|
-
label: PropTypes__default
|
|
13202
|
-
value: PropTypes__default
|
|
13203
|
-
count: PropTypes__default
|
|
13204
|
-
isRefined: PropTypes__default
|
|
13084
|
+
inherits$1$1._defineProperty(RefinementList$1, "propTypes", {
|
|
13085
|
+
translate: PropTypes__default.func.isRequired,
|
|
13086
|
+
refine: PropTypes__default.func.isRequired,
|
|
13087
|
+
searchForItems: PropTypes__default.func.isRequired,
|
|
13088
|
+
searchable: PropTypes__default.bool,
|
|
13089
|
+
createURL: PropTypes__default.func.isRequired,
|
|
13090
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
13091
|
+
label: PropTypes__default.string.isRequired,
|
|
13092
|
+
value: PropTypes__default.arrayOf(PropTypes__default.string).isRequired,
|
|
13093
|
+
count: PropTypes__default.number.isRequired,
|
|
13094
|
+
isRefined: PropTypes__default.bool.isRequired
|
|
13205
13095
|
})),
|
|
13206
|
-
isFromSearch: PropTypes__default
|
|
13207
|
-
canRefine: PropTypes__default
|
|
13208
|
-
showMore: PropTypes__default
|
|
13209
|
-
limit: PropTypes__default
|
|
13210
|
-
showMoreLimit: PropTypes__default
|
|
13211
|
-
transformItems: PropTypes__default
|
|
13212
|
-
className: PropTypes__default
|
|
13096
|
+
isFromSearch: PropTypes__default.bool.isRequired,
|
|
13097
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
13098
|
+
showMore: PropTypes__default.bool,
|
|
13099
|
+
limit: PropTypes__default.number,
|
|
13100
|
+
showMoreLimit: PropTypes__default.number,
|
|
13101
|
+
transformItems: PropTypes__default.func,
|
|
13102
|
+
className: PropTypes__default.string
|
|
13213
13103
|
});
|
|
13214
13104
|
|
|
13215
|
-
_defineProperty(RefinementList$1, "defaultProps", {
|
|
13105
|
+
inherits$1$1._defineProperty(RefinementList$1, "defaultProps", {
|
|
13216
13106
|
className: ''
|
|
13217
13107
|
});
|
|
13218
13108
|
|
|
@@ -13281,7 +13171,7 @@ var RefinementList$2 = translatable({
|
|
|
13281
13171
|
*/
|
|
13282
13172
|
|
|
13283
13173
|
var RefinementListWidget = function RefinementListWidget(props) {
|
|
13284
|
-
return React__default
|
|
13174
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RefinementList$2, props));
|
|
13285
13175
|
};
|
|
13286
13176
|
|
|
13287
13177
|
var RefinementList$3 = connectRefinementList(RefinementListWidget);
|
|
@@ -13291,15 +13181,15 @@ var cx$i = createClassNames('ScrollTo');
|
|
|
13291
13181
|
var ScrollTo =
|
|
13292
13182
|
/*#__PURE__*/
|
|
13293
13183
|
function (_Component) {
|
|
13294
|
-
_inherits(ScrollTo, _Component);
|
|
13184
|
+
inherits$1$1._inherits(ScrollTo, _Component);
|
|
13295
13185
|
|
|
13296
13186
|
function ScrollTo() {
|
|
13297
|
-
_classCallCheck(this, ScrollTo);
|
|
13187
|
+
inherits$1$1._classCallCheck(this, ScrollTo);
|
|
13298
13188
|
|
|
13299
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(ScrollTo).apply(this, arguments));
|
|
13189
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(ScrollTo).apply(this, arguments));
|
|
13300
13190
|
}
|
|
13301
13191
|
|
|
13302
|
-
_createClass(ScrollTo, [{
|
|
13192
|
+
inherits$1$1._createClass(ScrollTo, [{
|
|
13303
13193
|
key: "componentDidUpdate",
|
|
13304
13194
|
value: function componentDidUpdate(prevProps) {
|
|
13305
13195
|
var _this$props = this.props,
|
|
@@ -13315,7 +13205,7 @@ function (_Component) {
|
|
|
13315
13205
|
value: function render() {
|
|
13316
13206
|
var _this = this;
|
|
13317
13207
|
|
|
13318
|
-
return React__default
|
|
13208
|
+
return React__default.createElement("div", {
|
|
13319
13209
|
ref: function ref(_ref) {
|
|
13320
13210
|
return _this.el = _ref;
|
|
13321
13211
|
},
|
|
@@ -13327,10 +13217,10 @@ function (_Component) {
|
|
|
13327
13217
|
return ScrollTo;
|
|
13328
13218
|
}(React.Component);
|
|
13329
13219
|
|
|
13330
|
-
_defineProperty(ScrollTo, "propTypes", {
|
|
13331
|
-
value: PropTypes__default
|
|
13332
|
-
children: PropTypes__default
|
|
13333
|
-
hasNotChanged: PropTypes__default
|
|
13220
|
+
inherits$1$1._defineProperty(ScrollTo, "propTypes", {
|
|
13221
|
+
value: PropTypes__default.any,
|
|
13222
|
+
children: PropTypes__default.node,
|
|
13223
|
+
hasNotChanged: PropTypes__default.bool
|
|
13334
13224
|
});
|
|
13335
13225
|
|
|
13336
13226
|
/**
|
|
@@ -13418,7 +13308,7 @@ var SearchBox$2 = connectSearchBox(SearchBox$1);
|
|
|
13418
13308
|
var cx$j = createClassNames('Snippet');
|
|
13419
13309
|
|
|
13420
13310
|
var Snippet = function Snippet(props) {
|
|
13421
|
-
return React__default
|
|
13311
|
+
return React__default.createElement(Highlighter, index$5._extends({}, props, {
|
|
13422
13312
|
highlightProperty: "_snippetResult",
|
|
13423
13313
|
cx: cx$j
|
|
13424
13314
|
}));
|
|
@@ -13474,7 +13364,7 @@ var cx$k = createClassNames('RelevantSort');
|
|
|
13474
13364
|
|
|
13475
13365
|
var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
|
|
13476
13366
|
var isRelevantSorted = _ref.isRelevantSorted;
|
|
13477
|
-
return React__default
|
|
13367
|
+
return React__default.createElement("span", null, isRelevantSorted ? 'See all results' : 'See relevant results');
|
|
13478
13368
|
};
|
|
13479
13369
|
|
|
13480
13370
|
var RelevantSort = function RelevantSort(_ref2) {
|
|
@@ -13486,29 +13376,29 @@ var RelevantSort = function RelevantSort(_ref2) {
|
|
|
13486
13376
|
ButtonTextComponent = _ref2$buttonTextCompo === void 0 ? DefaultButtonTextComponent : _ref2$buttonTextCompo,
|
|
13487
13377
|
TextComponent = _ref2.textComponent,
|
|
13488
13378
|
refine = _ref2.refine;
|
|
13489
|
-
return !isVirtualReplica ? null : React__default
|
|
13490
|
-
className: index.classnames(cx$k(''), className)
|
|
13491
|
-
}, React__default
|
|
13379
|
+
return !isVirtualReplica ? null : React__default.createElement("div", {
|
|
13380
|
+
className: index$5.classnames(cx$k(''), className)
|
|
13381
|
+
}, React__default.createElement("div", {
|
|
13492
13382
|
className: cx$k('text')
|
|
13493
|
-
}, TextComponent && React__default
|
|
13383
|
+
}, TextComponent && React__default.createElement(TextComponent, {
|
|
13494
13384
|
isRelevantSorted: isRelevantSorted
|
|
13495
|
-
})), React__default
|
|
13385
|
+
})), React__default.createElement("button", {
|
|
13496
13386
|
className: cx$k('button'),
|
|
13497
13387
|
onClick: function onClick() {
|
|
13498
13388
|
return refine(isRelevantSorted ? 0 : undefined);
|
|
13499
13389
|
}
|
|
13500
|
-
}, React__default
|
|
13390
|
+
}, React__default.createElement(ButtonTextComponent, {
|
|
13501
13391
|
isRelevantSorted: isRelevantSorted
|
|
13502
13392
|
})));
|
|
13503
13393
|
};
|
|
13504
13394
|
|
|
13505
13395
|
RelevantSort.propTypes = {
|
|
13506
|
-
buttonTextComponent: PropTypes__default
|
|
13507
|
-
className: PropTypes__default
|
|
13508
|
-
isVirtualReplica: PropTypes__default
|
|
13509
|
-
isRelevantSorted: PropTypes__default
|
|
13510
|
-
refine: PropTypes__default
|
|
13511
|
-
textComponent: PropTypes__default
|
|
13396
|
+
buttonTextComponent: PropTypes__default.func,
|
|
13397
|
+
className: PropTypes__default.string,
|
|
13398
|
+
isVirtualReplica: PropTypes__default.bool.isRequired,
|
|
13399
|
+
isRelevantSorted: PropTypes__default.bool.isRequired,
|
|
13400
|
+
refine: PropTypes__default.func.isRequired,
|
|
13401
|
+
textComponent: PropTypes__default.func
|
|
13512
13402
|
};
|
|
13513
13403
|
|
|
13514
13404
|
connectRelevantSort(RelevantSort);
|
|
@@ -13518,15 +13408,15 @@ var cx$l = createClassNames('SortBy');
|
|
|
13518
13408
|
var SortBy =
|
|
13519
13409
|
/*#__PURE__*/
|
|
13520
13410
|
function (_Component) {
|
|
13521
|
-
_inherits(SortBy, _Component);
|
|
13411
|
+
inherits$1$1._inherits(SortBy, _Component);
|
|
13522
13412
|
|
|
13523
13413
|
function SortBy() {
|
|
13524
|
-
_classCallCheck(this, SortBy);
|
|
13414
|
+
inherits$1$1._classCallCheck(this, SortBy);
|
|
13525
13415
|
|
|
13526
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(SortBy).apply(this, arguments));
|
|
13416
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(SortBy).apply(this, arguments));
|
|
13527
13417
|
}
|
|
13528
13418
|
|
|
13529
|
-
_createClass(SortBy, [{
|
|
13419
|
+
inherits$1$1._createClass(SortBy, [{
|
|
13530
13420
|
key: "render",
|
|
13531
13421
|
value: function render() {
|
|
13532
13422
|
var _this$props = this.props,
|
|
@@ -13534,9 +13424,9 @@ function (_Component) {
|
|
|
13534
13424
|
currentRefinement = _this$props.currentRefinement,
|
|
13535
13425
|
refine = _this$props.refine,
|
|
13536
13426
|
className = _this$props.className;
|
|
13537
|
-
return React__default
|
|
13538
|
-
className: index.classnames(cx$l(''), className)
|
|
13539
|
-
}, React__default
|
|
13427
|
+
return React__default.createElement("div", {
|
|
13428
|
+
className: index$5.classnames(cx$l(''), className)
|
|
13429
|
+
}, React__default.createElement(Select, {
|
|
13540
13430
|
cx: cx$l,
|
|
13541
13431
|
items: items,
|
|
13542
13432
|
selectedItem: currentRefinement,
|
|
@@ -13548,17 +13438,17 @@ function (_Component) {
|
|
|
13548
13438
|
return SortBy;
|
|
13549
13439
|
}(React.Component);
|
|
13550
13440
|
|
|
13551
|
-
_defineProperty(SortBy, "propTypes", {
|
|
13552
|
-
items: PropTypes__default
|
|
13553
|
-
label: PropTypes__default
|
|
13554
|
-
value: PropTypes__default
|
|
13441
|
+
inherits$1$1._defineProperty(SortBy, "propTypes", {
|
|
13442
|
+
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
13443
|
+
label: PropTypes__default.string,
|
|
13444
|
+
value: PropTypes__default.string.isRequired
|
|
13555
13445
|
})).isRequired,
|
|
13556
|
-
currentRefinement: PropTypes__default
|
|
13557
|
-
refine: PropTypes__default
|
|
13558
|
-
className: PropTypes__default
|
|
13446
|
+
currentRefinement: PropTypes__default.string.isRequired,
|
|
13447
|
+
refine: PropTypes__default.func.isRequired,
|
|
13448
|
+
className: PropTypes__default.string
|
|
13559
13449
|
});
|
|
13560
13450
|
|
|
13561
|
-
_defineProperty(SortBy, "defaultProps", {
|
|
13451
|
+
inherits$1$1._defineProperty(SortBy, "defaultProps", {
|
|
13562
13452
|
className: ''
|
|
13563
13453
|
});
|
|
13564
13454
|
|
|
@@ -13613,20 +13503,20 @@ var Stats = function Stats(_ref) {
|
|
|
13613
13503
|
nbSortedHits = _ref.nbSortedHits,
|
|
13614
13504
|
processingTimeMS = _ref.processingTimeMS,
|
|
13615
13505
|
translate = _ref.translate;
|
|
13616
|
-
return React__default
|
|
13617
|
-
className: index.classnames(cx$m(''), className)
|
|
13618
|
-
}, React__default
|
|
13506
|
+
return React__default.createElement("div", {
|
|
13507
|
+
className: index$5.classnames(cx$m(''), className)
|
|
13508
|
+
}, React__default.createElement("span", {
|
|
13619
13509
|
className: cx$m('text')
|
|
13620
13510
|
}, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
|
|
13621
13511
|
};
|
|
13622
13512
|
|
|
13623
13513
|
Stats.propTypes = {
|
|
13624
|
-
className: PropTypes__default
|
|
13625
|
-
areHitsSorted: PropTypes__default
|
|
13626
|
-
nbHits: PropTypes__default
|
|
13627
|
-
nbSortedHits: PropTypes__default
|
|
13628
|
-
processingTimeMS: PropTypes__default
|
|
13629
|
-
translate: PropTypes__default
|
|
13514
|
+
className: PropTypes__default.string,
|
|
13515
|
+
areHitsSorted: PropTypes__default.bool.isRequired,
|
|
13516
|
+
nbHits: PropTypes__default.number.isRequired,
|
|
13517
|
+
nbSortedHits: PropTypes__default.number,
|
|
13518
|
+
processingTimeMS: PropTypes__default.number.isRequired,
|
|
13519
|
+
translate: PropTypes__default.func.isRequired
|
|
13630
13520
|
};
|
|
13631
13521
|
var Stats$1 = translatable({
|
|
13632
13522
|
stats: function stats(n, ms, nSorted, areHitsSorted) {
|
|
@@ -13672,28 +13562,28 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
|
13672
13562
|
canRefine = _ref.canRefine,
|
|
13673
13563
|
refine = _ref.refine,
|
|
13674
13564
|
className = _ref.className;
|
|
13675
|
-
return React__default
|
|
13676
|
-
className: index.classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13677
|
-
}, React__default
|
|
13565
|
+
return React__default.createElement("div", {
|
|
13566
|
+
className: index$5.classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13567
|
+
}, React__default.createElement("label", {
|
|
13678
13568
|
className: cx$n('label')
|
|
13679
|
-
}, React__default
|
|
13569
|
+
}, React__default.createElement("input", {
|
|
13680
13570
|
className: cx$n('checkbox'),
|
|
13681
13571
|
type: "checkbox",
|
|
13682
13572
|
checked: currentRefinement,
|
|
13683
13573
|
onChange: function onChange(event) {
|
|
13684
13574
|
return refine(event.target.checked);
|
|
13685
13575
|
}
|
|
13686
|
-
}), React__default
|
|
13576
|
+
}), React__default.createElement("span", {
|
|
13687
13577
|
className: cx$n('labelText')
|
|
13688
13578
|
}, label)));
|
|
13689
13579
|
};
|
|
13690
13580
|
|
|
13691
13581
|
ToggleRefinement.propTypes = {
|
|
13692
|
-
currentRefinement: PropTypes__default
|
|
13693
|
-
label: PropTypes__default
|
|
13694
|
-
canRefine: PropTypes__default
|
|
13695
|
-
refine: PropTypes__default
|
|
13696
|
-
className: PropTypes__default
|
|
13582
|
+
currentRefinement: PropTypes__default.bool.isRequired,
|
|
13583
|
+
label: PropTypes__default.string.isRequired,
|
|
13584
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
13585
|
+
refine: PropTypes__default.func.isRequired,
|
|
13586
|
+
className: PropTypes__default.string
|
|
13697
13587
|
};
|
|
13698
13588
|
ToggleRefinement.defaultProps = {
|
|
13699
13589
|
className: ''
|
|
@@ -13897,7 +13787,7 @@ var cx$o = createClassNames('VoiceSearch');
|
|
|
13897
13787
|
|
|
13898
13788
|
var ButtonSvg = function ButtonSvg(_ref) {
|
|
13899
13789
|
var children = _ref.children;
|
|
13900
|
-
return React__default
|
|
13790
|
+
return React__default.createElement("svg", {
|
|
13901
13791
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13902
13792
|
width: "16",
|
|
13903
13793
|
height: "16",
|
|
@@ -13914,36 +13804,36 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13914
13804
|
var status = _ref2.status,
|
|
13915
13805
|
errorCode = _ref2.errorCode,
|
|
13916
13806
|
isListening = _ref2.isListening;
|
|
13917
|
-
return status === 'error' && errorCode === 'not-allowed' ? React__default
|
|
13807
|
+
return status === 'error' && errorCode === 'not-allowed' ? React__default.createElement(ButtonSvg, null, React__default.createElement("line", {
|
|
13918
13808
|
x1: "1",
|
|
13919
13809
|
y1: "1",
|
|
13920
13810
|
x2: "23",
|
|
13921
13811
|
y2: "23"
|
|
13922
|
-
}), React__default
|
|
13812
|
+
}), React__default.createElement("path", {
|
|
13923
13813
|
d: "M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"
|
|
13924
|
-
}), React__default
|
|
13814
|
+
}), React__default.createElement("path", {
|
|
13925
13815
|
d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"
|
|
13926
|
-
}), React__default
|
|
13816
|
+
}), React__default.createElement("line", {
|
|
13927
13817
|
x1: "12",
|
|
13928
13818
|
y1: "19",
|
|
13929
13819
|
x2: "12",
|
|
13930
13820
|
y2: "23"
|
|
13931
|
-
}), React__default
|
|
13821
|
+
}), React__default.createElement("line", {
|
|
13932
13822
|
x1: "8",
|
|
13933
13823
|
y1: "23",
|
|
13934
13824
|
x2: "16",
|
|
13935
13825
|
y2: "23"
|
|
13936
|
-
})) : React__default
|
|
13826
|
+
})) : React__default.createElement(ButtonSvg, null, React__default.createElement("path", {
|
|
13937
13827
|
d: "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",
|
|
13938
13828
|
fill: isListening ? 'currentColor' : ''
|
|
13939
|
-
}), React__default
|
|
13829
|
+
}), React__default.createElement("path", {
|
|
13940
13830
|
d: "M19 10v2a7 7 0 0 1-14 0v-2"
|
|
13941
|
-
}), React__default
|
|
13831
|
+
}), React__default.createElement("line", {
|
|
13942
13832
|
x1: "12",
|
|
13943
13833
|
y1: "19",
|
|
13944
13834
|
x2: "12",
|
|
13945
13835
|
y2: "23"
|
|
13946
|
-
}), React__default
|
|
13836
|
+
}), React__default.createElement("line", {
|
|
13947
13837
|
x1: "8",
|
|
13948
13838
|
y1: "23",
|
|
13949
13839
|
x2: "16",
|
|
@@ -13953,30 +13843,30 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13953
13843
|
|
|
13954
13844
|
var DefaultStatus = function DefaultStatus(_ref3) {
|
|
13955
13845
|
var transcript = _ref3.transcript;
|
|
13956
|
-
return React__default
|
|
13846
|
+
return React__default.createElement("p", null, transcript);
|
|
13957
13847
|
};
|
|
13958
13848
|
|
|
13959
13849
|
var VoiceSearch =
|
|
13960
13850
|
/*#__PURE__*/
|
|
13961
13851
|
function (_Component) {
|
|
13962
|
-
_inherits(VoiceSearch, _Component);
|
|
13852
|
+
inherits$1$1._inherits(VoiceSearch, _Component);
|
|
13963
13853
|
|
|
13964
13854
|
function VoiceSearch() {
|
|
13965
13855
|
var _getPrototypeOf2;
|
|
13966
13856
|
|
|
13967
13857
|
var _this;
|
|
13968
13858
|
|
|
13969
|
-
_classCallCheck(this, VoiceSearch);
|
|
13859
|
+
inherits$1$1._classCallCheck(this, VoiceSearch);
|
|
13970
13860
|
|
|
13971
13861
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13972
13862
|
args[_key] = arguments[_key];
|
|
13973
13863
|
}
|
|
13974
13864
|
|
|
13975
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(VoiceSearch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
13865
|
+
_this = inherits$1$1._possibleConstructorReturn(this, (_getPrototypeOf2 = inherits$1$1._getPrototypeOf(VoiceSearch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
13976
13866
|
|
|
13977
|
-
_defineProperty(_assertThisInitialized(_this), "voiceSearchHelper", void 0);
|
|
13867
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "voiceSearchHelper", void 0);
|
|
13978
13868
|
|
|
13979
|
-
_defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
|
|
13869
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onClick", function (event) {
|
|
13980
13870
|
if (!_this.voiceSearchHelper) {
|
|
13981
13871
|
return;
|
|
13982
13872
|
}
|
|
@@ -13989,7 +13879,7 @@ function (_Component) {
|
|
|
13989
13879
|
return _this;
|
|
13990
13880
|
}
|
|
13991
13881
|
|
|
13992
|
-
_createClass(VoiceSearch, [{
|
|
13882
|
+
inherits$1$1._createClass(VoiceSearch, [{
|
|
13993
13883
|
key: "componentDidMount",
|
|
13994
13884
|
value: function componentDidMount() {
|
|
13995
13885
|
var _this2 = this;
|
|
@@ -14038,17 +13928,17 @@ function (_Component) {
|
|
|
14038
13928
|
isSpeechFinal: isSpeechFinal,
|
|
14039
13929
|
isBrowserSupported: isBrowserSupported()
|
|
14040
13930
|
};
|
|
14041
|
-
return React__default
|
|
13931
|
+
return React__default.createElement("div", {
|
|
14042
13932
|
className: cx$o('')
|
|
14043
|
-
}, React__default
|
|
13933
|
+
}, React__default.createElement("button", {
|
|
14044
13934
|
className: cx$o('button'),
|
|
14045
13935
|
type: "button",
|
|
14046
13936
|
title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
|
|
14047
13937
|
onClick: this.onClick,
|
|
14048
13938
|
disabled: !isBrowserSupported()
|
|
14049
|
-
}, React__default
|
|
13939
|
+
}, React__default.createElement(ButtonTextComponent, innerProps)), React__default.createElement("div", {
|
|
14050
13940
|
className: cx$o('status')
|
|
14051
|
-
}, React__default
|
|
13941
|
+
}, React__default.createElement(StatusComponent, innerProps)));
|
|
14052
13942
|
}
|
|
14053
13943
|
}, {
|
|
14054
13944
|
key: "componentWillUnmount",
|
|
@@ -14062,7 +13952,7 @@ function (_Component) {
|
|
|
14062
13952
|
return VoiceSearch;
|
|
14063
13953
|
}(React.Component);
|
|
14064
13954
|
|
|
14065
|
-
_defineProperty(VoiceSearch, "defaultProps", {
|
|
13955
|
+
inherits$1$1._defineProperty(VoiceSearch, "defaultProps", {
|
|
14066
13956
|
searchAsYouSpeak: false,
|
|
14067
13957
|
buttonTextComponent: DefaultButtonText,
|
|
14068
13958
|
statusComponent: DefaultStatus
|
|
@@ -14081,21 +13971,21 @@ var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
|
14081
13971
|
var items = _ref.items,
|
|
14082
13972
|
className = _ref.className,
|
|
14083
13973
|
children = _ref.children;
|
|
14084
|
-
return React__default
|
|
14085
|
-
className: index.classnames(cx$p(''), className)
|
|
13974
|
+
return React__default.createElement("div", {
|
|
13975
|
+
className: index$5.classnames(cx$p(''), className)
|
|
14086
13976
|
}, children({
|
|
14087
13977
|
items: items
|
|
14088
13978
|
}));
|
|
14089
13979
|
};
|
|
14090
13980
|
|
|
14091
13981
|
QueryRuleCustomData.propTypes = {
|
|
14092
|
-
items: PropTypes__default
|
|
14093
|
-
className: PropTypes__default
|
|
14094
|
-
children: PropTypes__default
|
|
13982
|
+
items: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
13983
|
+
className: PropTypes__default.string,
|
|
13984
|
+
children: PropTypes__default.func.isRequired
|
|
14095
13985
|
};
|
|
14096
13986
|
|
|
14097
13987
|
var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
14098
|
-
return React__default
|
|
13988
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(QueryRuleCustomData, props));
|
|
14099
13989
|
};
|
|
14100
13990
|
|
|
14101
13991
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
@@ -14119,57 +14009,57 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14119
14009
|
|
|
14120
14010
|
var hit = props.hit;
|
|
14121
14011
|
if (moment.moment().isSameOrBefore(props.hit.pubDateSort)) return null;
|
|
14122
|
-
return React__default
|
|
14012
|
+
return React__default.createElement(
|
|
14123
14013
|
'div',
|
|
14124
14014
|
{ key: hit.url, className: 'hitResult ' + styles.article },
|
|
14125
|
-
React__default
|
|
14015
|
+
React__default.createElement(
|
|
14126
14016
|
'a',
|
|
14127
14017
|
{ href: '/view/' + hit.url, style: this.props.variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14128
|
-
React__default
|
|
14018
|
+
React__default.createElement(
|
|
14129
14019
|
'div',
|
|
14130
14020
|
{ className: styles.thumb },
|
|
14131
|
-
React__default
|
|
14021
|
+
React__default.createElement(
|
|
14132
14022
|
'figure',
|
|
14133
14023
|
null,
|
|
14134
|
-
React__default
|
|
14135
|
-
index$
|
|
14024
|
+
React__default.createElement(
|
|
14025
|
+
index$2.LazyLoad,
|
|
14136
14026
|
{ once: true },
|
|
14137
|
-
React__default
|
|
14138
|
-
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof
|
|
14027
|
+
React__default.createElement('img', {
|
|
14028
|
+
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof._typeof(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14139
14029
|
})
|
|
14140
14030
|
)
|
|
14141
14031
|
)
|
|
14142
14032
|
)
|
|
14143
14033
|
),
|
|
14144
|
-
React__default
|
|
14034
|
+
React__default.createElement(
|
|
14145
14035
|
'div',
|
|
14146
14036
|
{ className: styles.info, style: this.props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14147
|
-
React__default
|
|
14037
|
+
React__default.createElement(
|
|
14148
14038
|
'a',
|
|
14149
14039
|
{ href: '/view/' + hit.url },
|
|
14150
|
-
React__default
|
|
14040
|
+
React__default.createElement(
|
|
14151
14041
|
'h2',
|
|
14152
14042
|
null,
|
|
14153
14043
|
hit.title
|
|
14154
14044
|
)
|
|
14155
14045
|
),
|
|
14156
|
-
hit.pubDateSort && React__default
|
|
14046
|
+
hit.pubDateSort && React__default.createElement(
|
|
14157
14047
|
'p',
|
|
14158
14048
|
{ className: styles.published },
|
|
14159
14049
|
moment.moment(hit.pubDateSort).format('MMMM Do YYYY')
|
|
14160
14050
|
),
|
|
14161
|
-
hit.authorMapping && hit.authorMapping.length > 0 && React__default
|
|
14051
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default.createElement(
|
|
14162
14052
|
'p',
|
|
14163
14053
|
{ className: styles.author },
|
|
14164
14054
|
hit.authorMapping.map(function (author) {
|
|
14165
|
-
return React__default
|
|
14055
|
+
return React__default.createElement(
|
|
14166
14056
|
'span',
|
|
14167
14057
|
null,
|
|
14168
14058
|
author.displayName
|
|
14169
14059
|
);
|
|
14170
14060
|
})
|
|
14171
14061
|
),
|
|
14172
|
-
hit.summary && React__default
|
|
14062
|
+
hit.summary && React__default.createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14173
14063
|
)
|
|
14174
14064
|
);
|
|
14175
14065
|
}
|
|
@@ -14182,10 +14072,10 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14182
14072
|
styles: this.props.deckStyles,
|
|
14183
14073
|
client: this.props.sanityClient
|
|
14184
14074
|
};
|
|
14185
|
-
return React__default
|
|
14186
|
-
React__default
|
|
14075
|
+
return React__default.createElement(
|
|
14076
|
+
React__default.Fragment,
|
|
14187
14077
|
null,
|
|
14188
|
-
React__default
|
|
14078
|
+
React__default.createElement(
|
|
14189
14079
|
InstantSearch,
|
|
14190
14080
|
_extends._extends({
|
|
14191
14081
|
searchClient: this.props.searchClient,
|
|
@@ -14196,29 +14086,29 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14196
14086
|
indexName: this.props.indexName,
|
|
14197
14087
|
onSearchParameters: this.props.onSearchParameters
|
|
14198
14088
|
}, this.props),
|
|
14199
|
-
React__default
|
|
14200
|
-
React__default
|
|
14201
|
-
this.props.refinementAttributes && React__default
|
|
14089
|
+
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14090
|
+
React__default.createElement(SearchBox$2, null),
|
|
14091
|
+
this.props.refinementAttributes && React__default.createElement(
|
|
14202
14092
|
'div',
|
|
14203
14093
|
{ className: 'search_refinement' },
|
|
14204
14094
|
this.props.refinementAttributes.map(function (item, index) {
|
|
14205
|
-
return React__default
|
|
14095
|
+
return React__default.createElement(
|
|
14206
14096
|
reactBootstrap.DropdownButton,
|
|
14207
14097
|
{ title: item.title },
|
|
14208
|
-
React__default
|
|
14098
|
+
React__default.createElement(RefinementList$3, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
|
|
14209
14099
|
);
|
|
14210
14100
|
})
|
|
14211
14101
|
),
|
|
14212
|
-
React__default
|
|
14102
|
+
React__default.createElement(
|
|
14213
14103
|
'div',
|
|
14214
14104
|
{ className: 'AlgoliaResults' },
|
|
14215
|
-
React__default
|
|
14105
|
+
React__default.createElement(Hits$1, { hitComponent: function hitComponent(hit) {
|
|
14216
14106
|
return _this2.Deck(_extends._extends({}, hit, { propsObj: propsObj }));
|
|
14217
14107
|
} })
|
|
14218
14108
|
),
|
|
14219
|
-
React__default
|
|
14109
|
+
React__default.createElement(Pagination$2, null)
|
|
14220
14110
|
),
|
|
14221
|
-
React__default
|
|
14111
|
+
React__default.createElement(
|
|
14222
14112
|
'style',
|
|
14223
14113
|
{ jsx: 'true' },
|
|
14224
14114
|
'\n .hitResult {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-bottom: 1rem;\n border-bottom: 1px solid #00000024;\n padding: 1rem 0;\n }\n .hitResult > a:first-child {\n width: 30%;\n }\n .hitResult > a:first-child > div{\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n .hitResult > div:last-child > a {\n margin-bottom: .5rem;\n width: 100%;\n }\n @media only screen and (max-width: 568px) {\n .hitResult {\n flex-direction: column;\n align-items: center;\n border: none;\n padding: 0;\n }\n .hitResult > a:first-child {\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n }\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 '
|
|
@@ -14228,16 +14118,16 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14228
14118
|
}]);
|
|
14229
14119
|
|
|
14230
14120
|
return AlgoliaSearch;
|
|
14231
|
-
}(React__default
|
|
14121
|
+
}(React__default.Component);
|
|
14232
14122
|
|
|
14233
14123
|
AlgoliaSearch.propTypes = {
|
|
14234
|
-
searchState: PropTypes__default
|
|
14235
|
-
resultsState: PropTypes__default
|
|
14236
|
-
onSearchStateChange: PropTypes__default
|
|
14237
|
-
createURL: PropTypes__default
|
|
14238
|
-
indexName: PropTypes__default
|
|
14239
|
-
searchClient: PropTypes__default
|
|
14240
|
-
refinementAttributes: PropTypes__default
|
|
14124
|
+
searchState: PropTypes__default.object,
|
|
14125
|
+
resultsState: PropTypes__default.oneOfType([PropTypes__default.object, PropTypes__default.array]),
|
|
14126
|
+
onSearchStateChange: PropTypes__default.func,
|
|
14127
|
+
createURL: PropTypes__default.func,
|
|
14128
|
+
indexName: PropTypes__default.string,
|
|
14129
|
+
searchClient: PropTypes__default.object,
|
|
14130
|
+
refinementAttributes: PropTypes__default.array
|
|
14241
14131
|
};
|
|
14242
14132
|
|
|
14243
14133
|
module.exports = AlgoliaSearch;
|