@mjhls/mjh-framework 1.0.841-dv → 1.0.842-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-ad02bfab.js → ADInfeed-55587a4e.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-eb23fc9f.js → ADlgInfeed-5c3d8260.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 -970
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +23 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +19 -20
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +139 -192
- package/dist/cjs/AuthWrapper.js +259 -301
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +80 -84
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +125 -130
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +56 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +57 -58
- package/dist/cjs/MediaSeriesLanding.js +847 -838
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +126 -131
- package/dist/cjs/NavNative.js +117 -125
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +1167 -72
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +18 -21
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +109 -113
- package/dist/cjs/QueueDeckExpanded.js +1110 -1087
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-d38767ae.js → SeriesSlider-8bbc989f.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-9a9d6f8c.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 +40 -44
- package/dist/cjs/VideoSeriesCard.js +23 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +24 -25
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +200 -204
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-156bd4d6.js} +5 -6
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-021d644c.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-c1d8b5a1.js → index-ac18d02c.js} +852 -875
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
- package/dist/cjs/{index.es-13533f24.js → index.es-9110add6.js} +8 -11
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +60 -64
- package/dist/cjs/{inherits-0c7830c5.js → inherits-452ff02c.js} +1 -1
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-11ec04d2.js → main-02daeefe.js} +53 -85
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +8 -8
- package/dist/esm/AD300x250x600.js +8 -8
- package/dist/esm/AD728x90.js +9 -9
- package/dist/esm/ADFloatingFooter.js +10 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -10
- package/dist/esm/{ADInfeed-e8ab7008.js → ADInfeed-bb665cdc.js} +7 -7
- package/dist/esm/ADSkyscraper.js +10 -10
- package/dist/esm/ADSponsoredResources.js +10 -10
- package/dist/esm/ADWebcast.js +10 -10
- package/dist/esm/ADWelcome.js +14 -14
- package/dist/esm/{ADlgInfeed-882b23a8.js → ADlgInfeed-2897d78f.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +6 -6
- package/dist/esm/AdSlotsProvider.js +903 -11
- package/dist/esm/AlgoliaSearch.js +241 -368
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +21 -21
- package/dist/esm/ArticleSeriesLandingPage.js +18 -18
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +121 -170
- package/dist/esm/AuthWrapper.js +257 -298
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -62
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +18 -18
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +77 -77
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +109 -109
- package/dist/esm/ExternalResources.js +42 -42
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +173 -173
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +101 -101
- 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 +35 -35
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +55 -57
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -17
- package/dist/esm/MasterDeck.js +55 -55
- package/dist/esm/MediaSeriesLanding.js +573 -561
- package/dist/esm/NavDvm.js +47 -47
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +104 -104
- package/dist/esm/NavNative.js +93 -93
- 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 +1166 -71
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -19
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +96 -96
- package/dist/esm/QueueDeckExpanded.js +1102 -1079
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-b8cc1baa.js → SeriesSlider-a866bb21.js} +28 -28
- package/dist/esm/SideFooter.js +22 -22
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c54d43cb.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 +17 -17
- package/dist/esm/TemplateNormal.js +32 -32
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +19 -19
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +33 -33
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +18 -18
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +183 -183
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-4877b617.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -3
- package/dist/esm/faundadb.js +2 -2
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +12 -12
- package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-1fd83450.js → index-8dbb97f3.js} +810 -826
- package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-7dda2f0a.js → index.es-29c1cef5.js} +6 -8
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +53 -54
- 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-aef58dbc.js → main-e4a934b2.js} +50 -81
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +111 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
require('./_to-object-329a650b.js');
|
|
5
7
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
6
8
|
require('./_library-dd23b178.js');
|
|
7
9
|
require('./_object-pie-68c5bcbc.js');
|
|
8
10
|
var _extends = require('./extends-0a918631.js');
|
|
9
11
|
require('./_object-sap-5e74ba08.js');
|
|
10
|
-
var inherits$1 = require('./inherits-
|
|
12
|
+
var inherits$1 = require('./inherits-452ff02c.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-
|
|
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,100 +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
|
-
var _typeof_1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
107
|
-
function _typeof(obj) {
|
|
108
|
-
"@babel/helpers - typeof";
|
|
109
|
-
|
|
110
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
111
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
112
|
-
return typeof obj;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
116
|
-
} else {
|
|
117
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
118
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return _typeof(obj);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
module.exports = _typeof;
|
|
128
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
var _typeof = _commonjsHelpers.unwrapExports(_typeof_1);
|
|
132
|
-
|
|
133
|
-
function _assertThisInitialized(self) {
|
|
134
|
-
if (self === void 0) {
|
|
135
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return self;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function _possibleConstructorReturn(self, call) {
|
|
142
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
143
|
-
return call;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return _assertThisInitialized(self);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function _getPrototypeOf(o) {
|
|
150
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
151
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
152
|
-
};
|
|
153
|
-
return _getPrototypeOf(o);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function _inherits(subClass, superClass) {
|
|
157
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
158
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
162
|
-
constructor: {
|
|
163
|
-
value: subClass,
|
|
164
|
-
writable: true,
|
|
165
|
-
configurable: true
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
if (superClass) index._setPrototypeOf(subClass, superClass);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
69
|
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
172
70
|
|
|
173
71
|
var hasElementType = typeof Element !== 'undefined';
|
|
@@ -303,22 +201,6 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
303
201
|
}
|
|
304
202
|
};
|
|
305
203
|
|
|
306
|
-
function _typeof$1(obj) {
|
|
307
|
-
"@babel/helpers - typeof";
|
|
308
|
-
|
|
309
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
310
|
-
_typeof$1 = function _typeof(obj) {
|
|
311
|
-
return typeof obj;
|
|
312
|
-
};
|
|
313
|
-
} else {
|
|
314
|
-
_typeof$1 = function _typeof(obj) {
|
|
315
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
return _typeof$1(obj);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
204
|
// From https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
|
|
323
205
|
var shallowEqual = function shallowEqual(objA, objB) {
|
|
324
206
|
if (objA === objB) {
|
|
@@ -352,7 +234,7 @@ var defer = function defer(f) {
|
|
|
352
234
|
};
|
|
353
235
|
|
|
354
236
|
var isPlainObject = function isPlainObject(value) {
|
|
355
|
-
return
|
|
237
|
+
return inherits$1$1._typeof(value) === 'object' && value !== null && !Array.isArray(value);
|
|
356
238
|
};
|
|
357
239
|
|
|
358
240
|
var removeEmptyKey = function removeEmptyKey(obj) {
|
|
@@ -511,26 +393,26 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
511
393
|
var Connector =
|
|
512
394
|
/*#__PURE__*/
|
|
513
395
|
function (_Component) {
|
|
514
|
-
_inherits(Connector, _Component);
|
|
396
|
+
inherits$1$1._inherits(Connector, _Component);
|
|
515
397
|
|
|
516
398
|
function Connector(props) {
|
|
517
399
|
var _this;
|
|
518
400
|
|
|
519
|
-
_classCallCheck(this, Connector);
|
|
401
|
+
inherits$1$1._classCallCheck(this, Connector);
|
|
520
402
|
|
|
521
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(Connector).call(this, props));
|
|
403
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(Connector).call(this, props));
|
|
522
404
|
|
|
523
|
-
_defineProperty(_assertThisInitialized(_this), "unsubscribe", void 0);
|
|
405
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "unsubscribe", void 0);
|
|
524
406
|
|
|
525
|
-
_defineProperty(_assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
407
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
526
408
|
|
|
527
|
-
_defineProperty(_assertThisInitialized(_this), "isUnmounting", false);
|
|
409
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "isUnmounting", false);
|
|
528
410
|
|
|
529
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
411
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "state", {
|
|
530
412
|
providedProps: _this.getProvidedProps(_this.props)
|
|
531
413
|
});
|
|
532
414
|
|
|
533
|
-
_defineProperty(_assertThisInitialized(_this), "refine", function () {
|
|
415
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "refine", function () {
|
|
534
416
|
var _ref;
|
|
535
417
|
|
|
536
418
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -538,10 +420,10 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
538
420
|
}
|
|
539
421
|
|
|
540
422
|
_this.props.contextValue.onInternalStateUpdate( // refine will always be defined here because the prop is only given conditionally
|
|
541
|
-
(_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)));
|
|
542
424
|
});
|
|
543
425
|
|
|
544
|
-
_defineProperty(_assertThisInitialized(_this), "createURL", function () {
|
|
426
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "createURL", function () {
|
|
545
427
|
var _ref2;
|
|
546
428
|
|
|
547
429
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
@@ -549,10 +431,10 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
549
431
|
}
|
|
550
432
|
|
|
551
433
|
return _this.props.contextValue.createHrefForState( // refine will always be defined here because the prop is only given conditionally
|
|
552
|
-
(_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)));
|
|
553
435
|
});
|
|
554
436
|
|
|
555
|
-
_defineProperty(_assertThisInitialized(_this), "searchForFacetValues", function () {
|
|
437
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "searchForFacetValues", function () {
|
|
556
438
|
var _ref3;
|
|
557
439
|
|
|
558
440
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
@@ -560,20 +442,20 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
560
442
|
}
|
|
561
443
|
|
|
562
444
|
_this.props.contextValue.onSearchForFacetValues( // searchForFacetValues will always be defined here because the prop is only given conditionally
|
|
563
|
-
(_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)));
|
|
564
446
|
});
|
|
565
447
|
|
|
566
448
|
if (connectorDesc.getSearchParameters) {
|
|
567
|
-
_this.props.contextValue.onSearchParameters(connectorDesc.getSearchParameters.bind(_assertThisInitialized(_this)), {
|
|
449
|
+
_this.props.contextValue.onSearchParameters(connectorDesc.getSearchParameters.bind(inherits$1$1._assertThisInitialized(_this)), {
|
|
568
450
|
ais: _this.props.contextValue,
|
|
569
451
|
multiIndexContext: _this.props.indexContextValue
|
|
570
|
-
}, _this.props, connectorDesc.getMetadata && connectorDesc.getMetadata.bind(_assertThisInitialized(_this)));
|
|
452
|
+
}, _this.props, connectorDesc.getMetadata && connectorDesc.getMetadata.bind(inherits$1$1._assertThisInitialized(_this)));
|
|
571
453
|
}
|
|
572
454
|
|
|
573
455
|
return _this;
|
|
574
456
|
}
|
|
575
457
|
|
|
576
|
-
_createClass(Connector, [{
|
|
458
|
+
inherits$1$1._createClass(Connector, [{
|
|
577
459
|
key: "componentDidMount",
|
|
578
460
|
value: function componentDidMount() {
|
|
579
461
|
var _this2 = this;
|
|
@@ -719,18 +601,18 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
719
601
|
var searchForFacetValuesProps = typeof connectorDesc.searchForFacetValues === 'function' ? {
|
|
720
602
|
searchForItems: this.searchForFacetValues
|
|
721
603
|
} : {};
|
|
722
|
-
return React__default
|
|
604
|
+
return React__default.createElement(Composed, index$5._extends({}, props, providedProps, refineProps, searchForFacetValuesProps));
|
|
723
605
|
}
|
|
724
606
|
}]);
|
|
725
607
|
|
|
726
608
|
return Connector;
|
|
727
609
|
}(React.Component);
|
|
728
610
|
|
|
729
|
-
_defineProperty(Connector, "displayName", "".concat(connectorDesc.displayName, "(").concat(getDisplayName(Composed), ")"));
|
|
611
|
+
inherits$1$1._defineProperty(Connector, "displayName", "".concat(connectorDesc.displayName, "(").concat(getDisplayName(Composed), ")"));
|
|
730
612
|
|
|
731
|
-
_defineProperty(Connector, "propTypes", connectorDesc.propTypes);
|
|
613
|
+
inherits$1$1._defineProperty(Connector, "propTypes", connectorDesc.propTypes);
|
|
732
614
|
|
|
733
|
-
_defineProperty(Connector, "defaultProps", connectorDesc.defaultProps);
|
|
615
|
+
inherits$1$1._defineProperty(Connector, "defaultProps", connectorDesc.defaultProps);
|
|
734
616
|
|
|
735
617
|
return Connector;
|
|
736
618
|
};
|
|
@@ -741,9 +623,9 @@ var createConnectorWithContext = function createConnectorWithContext(connectorDe
|
|
|
741
623
|
var Connector = createConnectorWithoutContext(connectorDesc)(Composed);
|
|
742
624
|
|
|
743
625
|
var ConnectorWrapper = function ConnectorWrapper(props) {
|
|
744
|
-
return React__default
|
|
745
|
-
return React__default
|
|
746
|
-
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({
|
|
747
629
|
contextValue: contextValue,
|
|
748
630
|
indexContextValue: indexContextValue
|
|
749
631
|
}, props));
|
|
@@ -855,7 +737,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
855
737
|
});
|
|
856
738
|
}
|
|
857
739
|
|
|
858
|
-
var version = '6.
|
|
740
|
+
var version = '6.10.3';
|
|
859
741
|
|
|
860
742
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
861
743
|
return function (props, propName, componentName) {
|
|
@@ -880,22 +762,22 @@ function translatable(defaultTranslations) {
|
|
|
880
762
|
var Translatable =
|
|
881
763
|
/*#__PURE__*/
|
|
882
764
|
function (_Component) {
|
|
883
|
-
_inherits(Translatable, _Component);
|
|
765
|
+
inherits$1$1._inherits(Translatable, _Component);
|
|
884
766
|
|
|
885
767
|
function Translatable() {
|
|
886
768
|
var _getPrototypeOf2;
|
|
887
769
|
|
|
888
770
|
var _this;
|
|
889
771
|
|
|
890
|
-
_classCallCheck(this, Translatable);
|
|
772
|
+
inherits$1$1._classCallCheck(this, Translatable);
|
|
891
773
|
|
|
892
774
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
893
775
|
args[_key] = arguments[_key];
|
|
894
776
|
}
|
|
895
777
|
|
|
896
|
-
_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)));
|
|
897
779
|
|
|
898
|
-
_defineProperty(_assertThisInitialized(_this), "translate", function (key) {
|
|
780
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "translate", function (key) {
|
|
899
781
|
var translations = _this.props.translations;
|
|
900
782
|
var translation = translations && translations.hasOwnProperty(key) ? translations[key] : defaultTranslations[key];
|
|
901
783
|
|
|
@@ -913,10 +795,10 @@ function translatable(defaultTranslations) {
|
|
|
913
795
|
return _this;
|
|
914
796
|
}
|
|
915
797
|
|
|
916
|
-
_createClass(Translatable, [{
|
|
798
|
+
inherits$1$1._createClass(Translatable, [{
|
|
917
799
|
key: "render",
|
|
918
800
|
value: function render() {
|
|
919
|
-
return React__default
|
|
801
|
+
return React__default.createElement(Composed, index$5._extends({
|
|
920
802
|
translate: this.translate
|
|
921
803
|
}, this.props));
|
|
922
804
|
}
|
|
@@ -986,7 +868,7 @@ function refineMultiIndex(searchState, nextRefinement, indexId, resetPage) {
|
|
|
986
868
|
var page = resetPage ? {
|
|
987
869
|
page: 1
|
|
988
870
|
} : undefined;
|
|
989
|
-
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)));
|
|
990
872
|
return _objectSpread({}, searchState, {
|
|
991
873
|
indices: state
|
|
992
874
|
});
|
|
@@ -1006,7 +888,7 @@ function refineMultiIndexWithNamespace(searchState, nextRefinement, indexId, res
|
|
|
1006
888
|
var page = resetPage ? {
|
|
1007
889
|
page: 1
|
|
1008
890
|
} : undefined;
|
|
1009
|
-
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)));
|
|
1010
892
|
return _objectSpread({}, searchState, {
|
|
1011
893
|
indices: state
|
|
1012
894
|
});
|
|
@@ -1016,7 +898,7 @@ function refineSingleIndexWithNamespace(searchState, nextRefinement, resetPage,
|
|
|
1016
898
|
var page = resetPage ? {
|
|
1017
899
|
page: 1
|
|
1018
900
|
} : undefined;
|
|
1019
|
-
return _objectSpread({}, searchState, _defineProperty({}, namespace, _objectSpread({}, searchState[namespace], nextRefinement)), page);
|
|
901
|
+
return _objectSpread({}, searchState, inherits$1$1._defineProperty({}, namespace, _objectSpread({}, searchState[namespace], nextRefinement)), page);
|
|
1020
902
|
}
|
|
1021
903
|
|
|
1022
904
|
function getNamespaceAndAttributeName(id) {
|
|
@@ -1135,7 +1017,7 @@ function cleanUpValueWithSingleIndex(_ref3) {
|
|
|
1135
1017
|
attribute = _ref3.attribute;
|
|
1136
1018
|
|
|
1137
1019
|
if (namespace) {
|
|
1138
|
-
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1020
|
+
return _objectSpread({}, searchState, inherits$1$1._defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1139
1021
|
}
|
|
1140
1022
|
|
|
1141
1023
|
return omit(searchState, [id]);
|
|
@@ -1151,13 +1033,13 @@ function cleanUpValueWithMultiIndex(_ref4) {
|
|
|
1151
1033
|
|
|
1152
1034
|
if (namespace && indexSearchState) {
|
|
1153
1035
|
return _objectSpread({}, searchState, {
|
|
1154
|
-
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])))))
|
|
1155
1037
|
});
|
|
1156
1038
|
}
|
|
1157
1039
|
|
|
1158
1040
|
if (indexSearchState) {
|
|
1159
1041
|
return _objectSpread({}, searchState, {
|
|
1160
|
-
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1042
|
+
indices: _objectSpread({}, searchState.indices, inherits$1$1._defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1161
1043
|
});
|
|
1162
1044
|
}
|
|
1163
1045
|
|
|
@@ -1195,7 +1077,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1195
1077
|
}) : [];
|
|
1196
1078
|
this._props = props;
|
|
1197
1079
|
|
|
1198
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1080
|
+
var nextValue = inherits$1$1._defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1199
1081
|
|
|
1200
1082
|
return refineValue(nextSearchState, nextValue, {
|
|
1201
1083
|
ais: props.contextValue,
|
|
@@ -1221,7 +1103,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1221
1103
|
return acc;
|
|
1222
1104
|
}, {});
|
|
1223
1105
|
|
|
1224
|
-
var nextValue = _defineProperty({}, id, configureState);
|
|
1106
|
+
var nextValue = inherits$1$1._defineProperty({}, id, configureState);
|
|
1225
1107
|
|
|
1226
1108
|
return refineValue(searchState, nextValue, {
|
|
1227
1109
|
ais: props.contextValue,
|
|
@@ -1269,39 +1151,26 @@ var Configure = connectConfigure(function Configure() {
|
|
|
1269
1151
|
return null;
|
|
1270
1152
|
});
|
|
1271
1153
|
|
|
1272
|
-
function
|
|
1273
|
-
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
|
+
}
|
|
1274
1159
|
|
|
1275
|
-
|
|
1276
|
-
arr2[i] = arr[i];
|
|
1160
|
+
return arr2;
|
|
1277
1161
|
}
|
|
1278
|
-
|
|
1279
|
-
return arr2;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
function _arrayWithoutHoles(arr) {
|
|
1283
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1284
1162
|
}
|
|
1285
1163
|
|
|
1286
1164
|
function _iterableToArray(iter) {
|
|
1287
|
-
if (
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1291
|
-
if (!o) return;
|
|
1292
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1293
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1294
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1295
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1296
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1165
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
1297
1166
|
}
|
|
1298
1167
|
|
|
1299
1168
|
function _nonIterableSpread() {
|
|
1300
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1169
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1301
1170
|
}
|
|
1302
1171
|
|
|
1303
1172
|
function _toConsumableArray(arr) {
|
|
1304
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
1173
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
1305
1174
|
}
|
|
1306
1175
|
|
|
1307
1176
|
function clone(value) {
|
|
@@ -6312,7 +6181,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6312
6181
|
}) : [];
|
|
6313
6182
|
this._searchParameters = searchParameters;
|
|
6314
6183
|
|
|
6315
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6184
|
+
var nextValue = inherits$1$1._defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6316
6185
|
|
|
6317
6186
|
return refineValue(nextSearchState, nextValue, {
|
|
6318
6187
|
ais: props.contextValue,
|
|
@@ -6340,7 +6209,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6340
6209
|
return acc;
|
|
6341
6210
|
}, {});
|
|
6342
6211
|
|
|
6343
|
-
var nextValue = _defineProperty({}, id, configureState);
|
|
6212
|
+
var nextValue = inherits$1$1._defineProperty({}, id, configureState);
|
|
6344
6213
|
|
|
6345
6214
|
return refineValue(searchState, nextValue, {
|
|
6346
6215
|
ais: props.contextValue,
|
|
@@ -6354,9 +6223,9 @@ function ConfigureRelatedItems() {
|
|
|
6354
6223
|
}
|
|
6355
6224
|
|
|
6356
6225
|
ConfigureRelatedItems.propTypes = {
|
|
6357
|
-
hit: PropTypes__default
|
|
6358
|
-
matchingPatterns: PropTypes__default
|
|
6359
|
-
transformSearchParameters: PropTypes__default
|
|
6226
|
+
hit: PropTypes__default.object.isRequired,
|
|
6227
|
+
matchingPatterns: PropTypes__default.object.isRequired,
|
|
6228
|
+
transformSearchParameters: PropTypes__default.func
|
|
6360
6229
|
};
|
|
6361
6230
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6362
6231
|
|
|
@@ -6532,9 +6401,9 @@ function getIndexContext(props) {
|
|
|
6532
6401
|
var Index =
|
|
6533
6402
|
/*#__PURE__*/
|
|
6534
6403
|
function (_Component) {
|
|
6535
|
-
_inherits(Index, _Component);
|
|
6404
|
+
inherits$1$1._inherits(Index, _Component);
|
|
6536
6405
|
|
|
6537
|
-
_createClass(Index, null, [{
|
|
6406
|
+
inherits$1$1._createClass(Index, null, [{
|
|
6538
6407
|
key: "getDerivedStateFromProps",
|
|
6539
6408
|
value: function getDerivedStateFromProps(props) {
|
|
6540
6409
|
return {
|
|
@@ -6546,17 +6415,17 @@ function (_Component) {
|
|
|
6546
6415
|
function Index(props) {
|
|
6547
6416
|
var _this;
|
|
6548
6417
|
|
|
6549
|
-
_classCallCheck(this, Index);
|
|
6418
|
+
inherits$1$1._classCallCheck(this, Index);
|
|
6550
6419
|
|
|
6551
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(Index).call(this, props));
|
|
6420
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(Index).call(this, props));
|
|
6552
6421
|
|
|
6553
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
6422
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "state", {
|
|
6554
6423
|
indexContext: getIndexContext(_this.props)
|
|
6555
6424
|
});
|
|
6556
6425
|
|
|
6557
|
-
_defineProperty(_assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
6426
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
6558
6427
|
|
|
6559
|
-
_this.props.contextValue.onSearchParameters(_this.getSearchParameters.bind(_assertThisInitialized(_this)), {
|
|
6428
|
+
_this.props.contextValue.onSearchParameters(_this.getSearchParameters.bind(inherits$1$1._assertThisInitialized(_this)), {
|
|
6560
6429
|
ais: _this.props.contextValue,
|
|
6561
6430
|
multiIndexContext: _this.state.indexContext
|
|
6562
6431
|
}, _this.props, undefined);
|
|
@@ -6564,7 +6433,7 @@ function (_Component) {
|
|
|
6564
6433
|
return _this;
|
|
6565
6434
|
}
|
|
6566
6435
|
|
|
6567
|
-
_createClass(Index, [{
|
|
6436
|
+
inherits$1$1._createClass(Index, [{
|
|
6568
6437
|
key: "componentDidMount",
|
|
6569
6438
|
value: function componentDidMount() {
|
|
6570
6439
|
this.unregisterWidget = this.props.contextValue.widgetsManager.registerWidget(this);
|
|
@@ -6597,7 +6466,7 @@ function (_Component) {
|
|
|
6597
6466
|
return null;
|
|
6598
6467
|
}
|
|
6599
6468
|
|
|
6600
|
-
return React__default
|
|
6469
|
+
return React__default.createElement(IndexProvider, {
|
|
6601
6470
|
value: this.state.indexContext
|
|
6602
6471
|
}, this.props.children);
|
|
6603
6472
|
}
|
|
@@ -6606,16 +6475,16 @@ function (_Component) {
|
|
|
6606
6475
|
return Index;
|
|
6607
6476
|
}(React.Component);
|
|
6608
6477
|
|
|
6609
|
-
_defineProperty(Index, "propTypes", {
|
|
6610
|
-
indexName: PropTypes__default
|
|
6611
|
-
indexId: PropTypes__default
|
|
6612
|
-
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
|
|
6613
6482
|
});
|
|
6614
6483
|
|
|
6615
6484
|
var IndexWrapper = function IndexWrapper(props) {
|
|
6616
6485
|
var inferredIndexId = props.indexName;
|
|
6617
|
-
return React__default
|
|
6618
|
-
return React__default
|
|
6486
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
6487
|
+
return React__default.createElement(Index, index$5._extends({
|
|
6619
6488
|
contextValue: contextValue,
|
|
6620
6489
|
indexId: inferredIndexId
|
|
6621
6490
|
}, props));
|
|
@@ -6623,8 +6492,8 @@ var IndexWrapper = function IndexWrapper(props) {
|
|
|
6623
6492
|
};
|
|
6624
6493
|
|
|
6625
6494
|
IndexWrapper.propTypes = {
|
|
6626
|
-
indexName: PropTypes__default
|
|
6627
|
-
indexId: PropTypes__default
|
|
6495
|
+
indexName: PropTypes__default.string.isRequired,
|
|
6496
|
+
indexId: PropTypes__default.string
|
|
6628
6497
|
};
|
|
6629
6498
|
|
|
6630
6499
|
function createWidgetsManager(onWidgetsUpdate) {
|
|
@@ -6840,7 +6709,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6840
6709
|
.sort(sortIndexWidgetsFirst).reduce(function (indices, widget) {
|
|
6841
6710
|
var indexId = isMultiIndexContext(widget) ? widget.props.indexContextValue.targetedIndex : widget.props.indexId;
|
|
6842
6711
|
var widgets = indices[indexId] || [];
|
|
6843
|
-
return _objectSpread({}, indices, _defineProperty({}, indexId, widgets.concat(widget)));
|
|
6712
|
+
return _objectSpread({}, indices, inherits$1$1._defineProperty({}, indexId, widgets.concat(widget)));
|
|
6844
6713
|
}, {});
|
|
6845
6714
|
var derivedParameters = Object.keys(derivedIndices).map(function (indexId) {
|
|
6846
6715
|
return {
|
|
@@ -6910,7 +6779,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6910
6779
|
results = !isDerivedHelpersEmpty && results.getFacetByName ? {} : results;
|
|
6911
6780
|
|
|
6912
6781
|
if (!isDerivedHelpersEmpty) {
|
|
6913
|
-
results = _objectSpread({}, results, _defineProperty({}, indexId, event.results));
|
|
6782
|
+
results = _objectSpread({}, results, inherits$1$1._defineProperty({}, indexId, event.results));
|
|
6914
6783
|
} else {
|
|
6915
6784
|
results = event.results;
|
|
6916
6785
|
}
|
|
@@ -7058,7 +6927,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7058
6927
|
}));
|
|
7059
6928
|
}, [])
|
|
7060
6929
|
}));
|
|
7061
|
-
client.cache = _objectSpread({}, client.cache, _defineProperty({}, key, JSON.stringify({
|
|
6930
|
+
client.cache = _objectSpread({}, client.cache, inherits$1$1._defineProperty({}, key, JSON.stringify({
|
|
7062
6931
|
results: results.reduce(function (acc, result) {
|
|
7063
6932
|
return acc.concat(result.rawResults);
|
|
7064
6933
|
}, [])
|
|
@@ -7097,7 +6966,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7097
6966
|
};
|
|
7098
6967
|
})
|
|
7099
6968
|
}));
|
|
7100
|
-
client.cache = _objectSpread({}, client.cache, _defineProperty({}, key, JSON.stringify({
|
|
6969
|
+
client.cache = _objectSpread({}, client.cache, inherits$1$1._defineProperty({}, key, JSON.stringify({
|
|
7101
6970
|
results: results.rawResults
|
|
7102
6971
|
})));
|
|
7103
6972
|
}
|
|
@@ -7109,7 +6978,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7109
6978
|
|
|
7110
6979
|
if (Array.isArray(results.results)) {
|
|
7111
6980
|
return results.results.reduce(function (acc, result) {
|
|
7112
|
-
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)));
|
|
7113
6982
|
}, {});
|
|
7114
6983
|
}
|
|
7115
6984
|
|
|
@@ -7164,7 +7033,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7164
7033
|
store.setState(_objectSpread({}, store.getState(), {
|
|
7165
7034
|
error: null,
|
|
7166
7035
|
searchingForFacetValues: false,
|
|
7167
|
-
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))
|
|
7168
7037
|
}));
|
|
7169
7038
|
}, function (error) {
|
|
7170
7039
|
store.setState(_objectSpread({}, store.getState(), {
|
|
@@ -7278,9 +7147,9 @@ function isControlled(props) {
|
|
|
7278
7147
|
var InstantSearch =
|
|
7279
7148
|
/*#__PURE__*/
|
|
7280
7149
|
function (_Component) {
|
|
7281
|
-
_inherits(InstantSearch, _Component);
|
|
7150
|
+
inherits$1$1._inherits(InstantSearch, _Component);
|
|
7282
7151
|
|
|
7283
|
-
_createClass(InstantSearch, null, [{
|
|
7152
|
+
inherits$1$1._createClass(InstantSearch, null, [{
|
|
7284
7153
|
key: "getDerivedStateFromProps",
|
|
7285
7154
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
7286
7155
|
var nextIsControlled = isControlled(nextProps);
|
|
@@ -7303,11 +7172,11 @@ function (_Component) {
|
|
|
7303
7172
|
function InstantSearch(props) {
|
|
7304
7173
|
var _this;
|
|
7305
7174
|
|
|
7306
|
-
_classCallCheck(this, InstantSearch);
|
|
7175
|
+
inherits$1$1._classCallCheck(this, InstantSearch);
|
|
7307
7176
|
|
|
7308
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(InstantSearch).call(this, props));
|
|
7177
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(InstantSearch).call(this, props));
|
|
7309
7178
|
|
|
7310
|
-
_defineProperty(_assertThisInitialized(_this), "isUnmounting", false);
|
|
7179
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "isUnmounting", false);
|
|
7311
7180
|
|
|
7312
7181
|
var instantSearchManager = createInstantSearchManager({
|
|
7313
7182
|
indexName: _this.props.indexName,
|
|
@@ -7320,11 +7189,11 @@ function (_Component) {
|
|
|
7320
7189
|
store: instantSearchManager.store,
|
|
7321
7190
|
widgetsManager: instantSearchManager.widgetsManager,
|
|
7322
7191
|
mainTargetedIndex: _this.props.indexName,
|
|
7323
|
-
onInternalStateUpdate: _this.onWidgetsInternalStateUpdate.bind(_assertThisInitialized(_this)),
|
|
7324
|
-
createHrefForState: _this.createHrefForState.bind(_assertThisInitialized(_this)),
|
|
7325
|
-
onSearchForFacetValues: _this.onSearchForFacetValues.bind(_assertThisInitialized(_this)),
|
|
7326
|
-
onSearchStateChange: _this.onSearchStateChange.bind(_assertThisInitialized(_this)),
|
|
7327
|
-
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))
|
|
7328
7197
|
};
|
|
7329
7198
|
_this.state = {
|
|
7330
7199
|
isControlled: isControlled(_this.props),
|
|
@@ -7334,7 +7203,7 @@ function (_Component) {
|
|
|
7334
7203
|
return _this;
|
|
7335
7204
|
}
|
|
7336
7205
|
|
|
7337
|
-
_createClass(InstantSearch, [{
|
|
7206
|
+
inherits$1$1._createClass(InstantSearch, [{
|
|
7338
7207
|
key: "componentDidUpdate",
|
|
7339
7208
|
value: function componentDidUpdate(prevProps) {
|
|
7340
7209
|
var prevIsControlled = isControlled(prevProps);
|
|
@@ -7426,7 +7295,7 @@ function (_Component) {
|
|
|
7426
7295
|
return null;
|
|
7427
7296
|
}
|
|
7428
7297
|
|
|
7429
|
-
return React__default
|
|
7298
|
+
return React__default.createElement(InstantSearchProvider, {
|
|
7430
7299
|
value: this.state.contextValue
|
|
7431
7300
|
}, this.props.children);
|
|
7432
7301
|
}
|
|
@@ -7435,29 +7304,29 @@ function (_Component) {
|
|
|
7435
7304
|
return InstantSearch;
|
|
7436
7305
|
}(React.Component);
|
|
7437
7306
|
|
|
7438
|
-
_defineProperty(InstantSearch, "defaultProps", {
|
|
7307
|
+
inherits$1$1._defineProperty(InstantSearch, "defaultProps", {
|
|
7439
7308
|
stalledSearchDelay: 200,
|
|
7440
7309
|
refresh: false
|
|
7441
7310
|
});
|
|
7442
7311
|
|
|
7443
|
-
_defineProperty(InstantSearch, "propTypes", {
|
|
7312
|
+
inherits$1$1._defineProperty(InstantSearch, "propTypes", {
|
|
7444
7313
|
// @TODO: These props are currently constant.
|
|
7445
|
-
indexName: PropTypes__default
|
|
7446
|
-
searchClient: PropTypes__default
|
|
7447
|
-
search: PropTypes__default
|
|
7448
|
-
searchForFacetValues: PropTypes__default
|
|
7449
|
-
addAlgoliaAgent: PropTypes__default
|
|
7450
|
-
clearCache: PropTypes__default
|
|
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
|
|
7451
7320
|
}).isRequired,
|
|
7452
|
-
createURL: PropTypes__default
|
|
7453
|
-
refresh: PropTypes__default
|
|
7454
|
-
searchState: PropTypes__default
|
|
7455
|
-
onSearchStateChange: PropTypes__default
|
|
7456
|
-
onSearchParameters: PropTypes__default
|
|
7457
|
-
widgetsCollector: PropTypes__default
|
|
7458
|
-
resultsState: PropTypes__default
|
|
7459
|
-
children: PropTypes__default
|
|
7460
|
-
stalledSearchDelay: PropTypes__default
|
|
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
|
|
7461
7330
|
});
|
|
7462
7331
|
|
|
7463
7332
|
var getId$2 = function getId(props) {
|
|
@@ -7468,7 +7337,7 @@ var namespace = 'hierarchicalMenu';
|
|
|
7468
7337
|
function _refine(props, searchState, nextRefinement, context) {
|
|
7469
7338
|
var id = getId$2(props);
|
|
7470
7339
|
|
|
7471
|
-
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7340
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement || '');
|
|
7472
7341
|
|
|
7473
7342
|
var resetPage = true;
|
|
7474
7343
|
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
@@ -7544,7 +7413,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7544
7413
|
|
|
7545
7414
|
return undefined;
|
|
7546
7415
|
},
|
|
7547
|
-
transformItems: PropTypes__default
|
|
7416
|
+
transformItems: PropTypes__default.func
|
|
7548
7417
|
},
|
|
7549
7418
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7550
7419
|
var id = getId$2(props);
|
|
@@ -7593,7 +7462,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7593
7462
|
var connectCurrentRefinements = createConnectorWithContext({
|
|
7594
7463
|
displayName: 'AlgoliaCurrentRefinements',
|
|
7595
7464
|
propTypes: {
|
|
7596
|
-
transformItems: PropTypes__default
|
|
7465
|
+
transformItems: PropTypes__default.func
|
|
7597
7466
|
},
|
|
7598
7467
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata) {
|
|
7599
7468
|
var items = metadata.reduce(function (res, meta) {
|
|
@@ -7701,7 +7570,7 @@ var truncate = function truncate() {
|
|
|
7701
7570
|
function _refine$1(props, searchState, nextRefinement, context) {
|
|
7702
7571
|
var id = getId$3(props);
|
|
7703
7572
|
|
|
7704
|
-
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7573
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement || '');
|
|
7705
7574
|
|
|
7706
7575
|
var resetPage = true;
|
|
7707
7576
|
return refineValue(searchState, nextValue, context, resetPage, namespace$1);
|
|
@@ -7772,14 +7641,14 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7772
7641
|
|
|
7773
7642
|
return undefined;
|
|
7774
7643
|
},
|
|
7775
|
-
separator: PropTypes__default
|
|
7776
|
-
rootPath: PropTypes__default
|
|
7777
|
-
showParentLevel: PropTypes__default
|
|
7778
|
-
defaultRefinement: PropTypes__default
|
|
7779
|
-
showMore: PropTypes__default
|
|
7780
|
-
limit: PropTypes__default
|
|
7781
|
-
showMoreLimit: PropTypes__default
|
|
7782
|
-
transformItems: PropTypes__default
|
|
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
|
|
7783
7652
|
},
|
|
7784
7653
|
defaultProps: {
|
|
7785
7654
|
showMore: false,
|
|
@@ -8092,12 +7961,12 @@ function getCurrentRefinement$1(props, searchState, context) {
|
|
|
8092
7961
|
var connectHitsPerPage = createConnectorWithContext({
|
|
8093
7962
|
displayName: 'AlgoliaHitsPerPage',
|
|
8094
7963
|
propTypes: {
|
|
8095
|
-
defaultRefinement: PropTypes__default
|
|
8096
|
-
items: PropTypes__default
|
|
8097
|
-
label: PropTypes__default
|
|
8098
|
-
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
|
|
8099
7968
|
})).isRequired,
|
|
8100
|
-
transformItems: PropTypes__default
|
|
7969
|
+
transformItems: PropTypes__default.func
|
|
8101
7970
|
},
|
|
8102
7971
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
8103
7972
|
var currentRefinement = getCurrentRefinement$1(props, searchState, {
|
|
@@ -8119,7 +7988,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8119
7988
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8120
7989
|
var id = getId$4();
|
|
8121
7990
|
|
|
8122
|
-
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
7991
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement);
|
|
8123
7992
|
|
|
8124
7993
|
var resetPage = true;
|
|
8125
7994
|
return refineValue(searchState, nextValue, {
|
|
@@ -8283,7 +8152,7 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8283
8152
|
refine: function refine(props, searchState, event, index) {
|
|
8284
8153
|
var id = getId$5();
|
|
8285
8154
|
|
|
8286
|
-
var nextValue = _defineProperty({}, id, index + 1);
|
|
8155
|
+
var nextValue = inherits$1$1._defineProperty({}, id, index + 1);
|
|
8287
8156
|
|
|
8288
8157
|
var resetPage = false;
|
|
8289
8158
|
return refineValue(searchState, nextValue, {
|
|
@@ -8324,7 +8193,7 @@ function getLimit(_ref) {
|
|
|
8324
8193
|
function _refine$2(props, searchState, nextRefinement, context) {
|
|
8325
8194
|
var id = getId$6(props);
|
|
8326
8195
|
|
|
8327
|
-
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8196
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8328
8197
|
|
|
8329
8198
|
var resetPage = true;
|
|
8330
8199
|
return refineValue(searchState, nextValue, context, resetPage, namespace$2);
|
|
@@ -8359,13 +8228,13 @@ var defaultSortBy = ['count:desc', 'name:asc'];
|
|
|
8359
8228
|
var connectMenu = createConnectorWithContext({
|
|
8360
8229
|
displayName: 'AlgoliaMenu',
|
|
8361
8230
|
propTypes: {
|
|
8362
|
-
attribute: PropTypes__default
|
|
8363
|
-
showMore: PropTypes__default
|
|
8364
|
-
limit: PropTypes__default
|
|
8365
|
-
showMoreLimit: PropTypes__default
|
|
8366
|
-
defaultRefinement: PropTypes__default
|
|
8367
|
-
transformItems: PropTypes__default
|
|
8368
|
-
searchable: PropTypes__default
|
|
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
|
|
8369
8238
|
},
|
|
8370
8239
|
defaultProps: {
|
|
8371
8240
|
showMore: false,
|
|
@@ -8515,7 +8384,10 @@ function _arrayWithHoles(arr) {
|
|
|
8515
8384
|
}
|
|
8516
8385
|
|
|
8517
8386
|
function _iterableToArrayLimit(arr, i) {
|
|
8518
|
-
if (
|
|
8387
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
8388
|
+
return;
|
|
8389
|
+
}
|
|
8390
|
+
|
|
8519
8391
|
var _arr = [];
|
|
8520
8392
|
var _n = true;
|
|
8521
8393
|
var _d = false;
|
|
@@ -8542,11 +8414,11 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
8542
8414
|
}
|
|
8543
8415
|
|
|
8544
8416
|
function _nonIterableRest() {
|
|
8545
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8417
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
8546
8418
|
}
|
|
8547
8419
|
|
|
8548
8420
|
function _slicedToArray(arr, i) {
|
|
8549
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
8421
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
8550
8422
|
}
|
|
8551
8423
|
|
|
8552
8424
|
function stringifyItem(item) {
|
|
@@ -8573,8 +8445,8 @@ function parseItem(value) {
|
|
|
8573
8445
|
endStr = _value$split2[1];
|
|
8574
8446
|
|
|
8575
8447
|
return {
|
|
8576
|
-
start: startStr.length > 0 ?
|
|
8577
|
-
end: endStr.length > 0 ?
|
|
8448
|
+
start: startStr.length > 0 ? parseInt(startStr, 10) : null,
|
|
8449
|
+
end: endStr.length > 0 ? parseInt(endStr, 10) : null
|
|
8578
8450
|
};
|
|
8579
8451
|
}
|
|
8580
8452
|
|
|
@@ -8605,7 +8477,7 @@ function itemHasRefinement(attribute, results, value) {
|
|
|
8605
8477
|
}
|
|
8606
8478
|
|
|
8607
8479
|
function _refine$3(props, searchState, nextRefinement, context) {
|
|
8608
|
-
var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
|
|
8480
|
+
var nextValue = inherits$1$1._defineProperty({}, getId$7(props), nextRefinement);
|
|
8609
8481
|
|
|
8610
8482
|
var resetPage = true;
|
|
8611
8483
|
return refineValue(searchState, nextValue, context, resetPage, namespace$3);
|
|
@@ -8635,14 +8507,14 @@ function _cleanUp$2(props, searchState, context) {
|
|
|
8635
8507
|
var connectNumericMenu = createConnectorWithContext({
|
|
8636
8508
|
displayName: 'AlgoliaNumericMenu',
|
|
8637
8509
|
propTypes: {
|
|
8638
|
-
id: PropTypes__default
|
|
8639
|
-
attribute: PropTypes__default
|
|
8640
|
-
items: PropTypes__default
|
|
8641
|
-
label: PropTypes__default
|
|
8642
|
-
start: PropTypes__default
|
|
8643
|
-
end: PropTypes__default
|
|
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
|
|
8644
8516
|
})).isRequired,
|
|
8645
|
-
transformItems: PropTypes__default
|
|
8517
|
+
transformItems: PropTypes__default.func
|
|
8646
8518
|
},
|
|
8647
8519
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
8648
8520
|
var attribute = props.attribute;
|
|
@@ -8780,7 +8652,7 @@ function getCurrentRefinement$5(props, searchState, context) {
|
|
|
8780
8652
|
function _refine$4(props, searchState, nextPage, context) {
|
|
8781
8653
|
var id = getId$8();
|
|
8782
8654
|
|
|
8783
|
-
var nextValue = _defineProperty({}, id, nextPage);
|
|
8655
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextPage);
|
|
8784
8656
|
|
|
8785
8657
|
var resetPage = false;
|
|
8786
8658
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
@@ -9019,7 +8891,7 @@ function _refine$5(props, searchState, nextRefinement, currentRange, context) {
|
|
|
9019
8891
|
var id = getId$9(props);
|
|
9020
8892
|
var resetPage = true;
|
|
9021
8893
|
|
|
9022
|
-
var nextValue = _defineProperty({}, id, {
|
|
8894
|
+
var nextValue = inherits$1$1._defineProperty({}, id, {
|
|
9023
8895
|
min: nextValueForRefinement(props.min !== undefined, isMinReset, currentMinRange, nextMinAsNumber),
|
|
9024
8896
|
max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
|
|
9025
8897
|
});
|
|
@@ -9034,17 +8906,17 @@ function _cleanUp$3(props, searchState, context) {
|
|
|
9034
8906
|
var connectRange = createConnectorWithContext({
|
|
9035
8907
|
displayName: 'AlgoliaRange',
|
|
9036
8908
|
propTypes: {
|
|
9037
|
-
id: PropTypes__default
|
|
9038
|
-
attribute: PropTypes__default
|
|
9039
|
-
defaultRefinement: PropTypes__default
|
|
9040
|
-
min: PropTypes__default
|
|
9041
|
-
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
|
|
9042
8914
|
}),
|
|
9043
|
-
min: PropTypes__default
|
|
9044
|
-
max: PropTypes__default
|
|
9045
|
-
precision: PropTypes__default
|
|
9046
|
-
header: PropTypes__default
|
|
9047
|
-
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
|
|
9048
8920
|
},
|
|
9049
8921
|
defaultProps: {
|
|
9050
8922
|
precision: 0
|
|
@@ -9229,7 +9101,7 @@ function _refine$6(props, searchState, nextRefinement, context) {
|
|
|
9229
9101
|
// {foo: ['bar']} => "foo[0]=bar"
|
|
9230
9102
|
// {foo: []} => ""
|
|
9231
9103
|
|
|
9232
|
-
var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9104
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9233
9105
|
|
|
9234
9106
|
var resetPage = true;
|
|
9235
9107
|
return refineValue(searchState, nextValue, context, resetPage, namespace$5);
|
|
@@ -9267,15 +9139,15 @@ var sortBy$1 = ['isRefined', 'count:desc', 'name:asc'];
|
|
|
9267
9139
|
var connectRefinementList = createConnectorWithContext({
|
|
9268
9140
|
displayName: 'AlgoliaRefinementList',
|
|
9269
9141
|
propTypes: {
|
|
9270
|
-
id: PropTypes__default
|
|
9271
|
-
attribute: PropTypes__default
|
|
9272
|
-
operator: PropTypes__default
|
|
9273
|
-
showMore: PropTypes__default
|
|
9274
|
-
limit: PropTypes__default
|
|
9275
|
-
showMoreLimit: PropTypes__default
|
|
9276
|
-
defaultRefinement: PropTypes__default
|
|
9277
|
-
searchable: PropTypes__default
|
|
9278
|
-
transformItems: PropTypes__default
|
|
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
|
|
9279
9151
|
},
|
|
9280
9152
|
defaultProps: {
|
|
9281
9153
|
operator: 'or',
|
|
@@ -9431,7 +9303,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9431
9303
|
var connectScrollTo = createConnectorWithContext({
|
|
9432
9304
|
displayName: 'AlgoliaScrollTo',
|
|
9433
9305
|
propTypes: {
|
|
9434
|
-
scrollOn: PropTypes__default
|
|
9306
|
+
scrollOn: PropTypes__default.string
|
|
9435
9307
|
},
|
|
9436
9308
|
defaultProps: {
|
|
9437
9309
|
scrollOn: 'page'
|
|
@@ -9496,7 +9368,7 @@ function getCurrentRefinement$8(props, searchState, context) {
|
|
|
9496
9368
|
function _refine$7(props, searchState, nextRefinement, context) {
|
|
9497
9369
|
var id = getId$b();
|
|
9498
9370
|
|
|
9499
|
-
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9371
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement);
|
|
9500
9372
|
|
|
9501
9373
|
var resetPage = true;
|
|
9502
9374
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
@@ -9520,7 +9392,7 @@ function _cleanUp$5(props, searchState, context) {
|
|
|
9520
9392
|
var connectSearchBox = createConnectorWithContext({
|
|
9521
9393
|
displayName: 'AlgoliaSearchBox',
|
|
9522
9394
|
propTypes: {
|
|
9523
|
-
defaultRefinement: PropTypes__default
|
|
9395
|
+
defaultRefinement: PropTypes__default.string
|
|
9524
9396
|
},
|
|
9525
9397
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9526
9398
|
return {
|
|
@@ -9612,7 +9484,7 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9612
9484
|
}));
|
|
9613
9485
|
},
|
|
9614
9486
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9615
|
-
var nextValue = _defineProperty({}, getId$c(), nextRefinement);
|
|
9487
|
+
var nextValue = inherits$1$1._defineProperty({}, getId$c(), nextRefinement);
|
|
9616
9488
|
|
|
9617
9489
|
var resetPage = true;
|
|
9618
9490
|
return refineValue(searchState, nextValue, {
|
|
@@ -9656,12 +9528,12 @@ function getCurrentRefinement$a(props, searchState, context) {
|
|
|
9656
9528
|
var connectSortBy = createConnectorWithContext({
|
|
9657
9529
|
displayName: 'AlgoliaSortBy',
|
|
9658
9530
|
propTypes: {
|
|
9659
|
-
defaultRefinement: PropTypes__default
|
|
9660
|
-
items: PropTypes__default
|
|
9661
|
-
label: PropTypes__default
|
|
9662
|
-
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
|
|
9663
9535
|
})).isRequired,
|
|
9664
|
-
transformItems: PropTypes__default
|
|
9536
|
+
transformItems: PropTypes__default.func
|
|
9665
9537
|
},
|
|
9666
9538
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
9667
9539
|
var currentRefinement = getCurrentRefinement$a(props, searchState, {
|
|
@@ -9683,7 +9555,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9683
9555
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9684
9556
|
var id = getId$d();
|
|
9685
9557
|
|
|
9686
|
-
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9558
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement);
|
|
9687
9559
|
|
|
9688
9560
|
var resetPage = true;
|
|
9689
9561
|
return refineValue(searchState, nextValue, {
|
|
@@ -9762,7 +9634,7 @@ function getCurrentRefinement$b(props, searchState, context) {
|
|
|
9762
9634
|
function _refine$8(props, searchState, nextRefinement, context) {
|
|
9763
9635
|
var id = getId$e(props);
|
|
9764
9636
|
|
|
9765
|
-
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9637
|
+
var nextValue = inherits$1$1._defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9766
9638
|
|
|
9767
9639
|
var resetPage = true;
|
|
9768
9640
|
return refineValue(searchState, nextValue, context, resetPage, namespace$6);
|
|
@@ -9795,11 +9667,11 @@ function _cleanUp$6(props, searchState, context) {
|
|
|
9795
9667
|
var connectToggleRefinement = createConnectorWithContext({
|
|
9796
9668
|
displayName: 'AlgoliaToggle',
|
|
9797
9669
|
propTypes: {
|
|
9798
|
-
label: PropTypes__default
|
|
9799
|
-
attribute: PropTypes__default
|
|
9800
|
-
value: PropTypes__default
|
|
9801
|
-
filter: PropTypes__default
|
|
9802
|
-
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
|
|
9803
9675
|
},
|
|
9804
9676
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9805
9677
|
var attribute = props.attribute,
|
|
@@ -9946,7 +9818,7 @@ function _refine$9(props, searchState, nextRefinement, context) {
|
|
|
9946
9818
|
}, props.additionalQueryParameters({
|
|
9947
9819
|
query: nextRefinement
|
|
9948
9820
|
})) : {};
|
|
9949
|
-
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);
|
|
9950
9822
|
var resetPage = true;
|
|
9951
9823
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9952
9824
|
}
|
|
@@ -9959,7 +9831,7 @@ function _cleanUp$7(props, searchState, context) {
|
|
|
9959
9831
|
var connectVoiceSearch = createConnectorWithContext({
|
|
9960
9832
|
displayName: 'AlgoliaVoiceSearch',
|
|
9961
9833
|
propTypes: {
|
|
9962
|
-
defaultRefinement: PropTypes__default
|
|
9834
|
+
defaultRefinement: PropTypes__default.string
|
|
9963
9835
|
},
|
|
9964
9836
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9965
9837
|
return {
|
|
@@ -10032,7 +9904,7 @@ var createClassNames = function createClassNames(block) {
|
|
|
10032
9904
|
var baseClassName = "".concat(prefix, "-").concat(block);
|
|
10033
9905
|
return element ? "".concat(baseClassName, "-").concat(element) : baseClassName;
|
|
10034
9906
|
});
|
|
10035
|
-
return index.classnames(suitElements);
|
|
9907
|
+
return index$5.classnames(suitElements);
|
|
10036
9908
|
};
|
|
10037
9909
|
};
|
|
10038
9910
|
var isSpecialClick = function isSpecialClick(event) {
|
|
@@ -10084,26 +9956,26 @@ var _createContext$1 = React.createContext(function setCanRefine() {}),
|
|
|
10084
9956
|
var Panel =
|
|
10085
9957
|
/*#__PURE__*/
|
|
10086
9958
|
function (_Component) {
|
|
10087
|
-
_inherits(Panel, _Component);
|
|
9959
|
+
inherits$1$1._inherits(Panel, _Component);
|
|
10088
9960
|
|
|
10089
9961
|
function Panel() {
|
|
10090
9962
|
var _getPrototypeOf2;
|
|
10091
9963
|
|
|
10092
9964
|
var _this;
|
|
10093
9965
|
|
|
10094
|
-
_classCallCheck(this, Panel);
|
|
9966
|
+
inherits$1$1._classCallCheck(this, Panel);
|
|
10095
9967
|
|
|
10096
9968
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10097
9969
|
args[_key] = arguments[_key];
|
|
10098
9970
|
}
|
|
10099
9971
|
|
|
10100
|
-
_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)));
|
|
10101
9973
|
|
|
10102
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
9974
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "state", {
|
|
10103
9975
|
canRefine: true
|
|
10104
9976
|
});
|
|
10105
9977
|
|
|
10106
|
-
_defineProperty(_assertThisInitialized(_this), "setCanRefine", function (nextCanRefine) {
|
|
9978
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "setCanRefine", function (nextCanRefine) {
|
|
10107
9979
|
_this.setState({
|
|
10108
9980
|
canRefine: nextCanRefine
|
|
10109
9981
|
});
|
|
@@ -10112,7 +9984,7 @@ function (_Component) {
|
|
|
10112
9984
|
return _this;
|
|
10113
9985
|
}
|
|
10114
9986
|
|
|
10115
|
-
_createClass(Panel, [{
|
|
9987
|
+
inherits$1$1._createClass(Panel, [{
|
|
10116
9988
|
key: "render",
|
|
10117
9989
|
value: function render() {
|
|
10118
9990
|
var _this$props = this.props,
|
|
@@ -10121,15 +9993,15 @@ function (_Component) {
|
|
|
10121
9993
|
header = _this$props.header,
|
|
10122
9994
|
footer = _this$props.footer;
|
|
10123
9995
|
var canRefine = this.state.canRefine;
|
|
10124
|
-
return React__default
|
|
10125
|
-
className: index.classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
10126
|
-
}, header && React__default
|
|
9996
|
+
return React__default.createElement("div", {
|
|
9997
|
+
className: index$5.classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
9998
|
+
}, header && React__default.createElement("div", {
|
|
10127
9999
|
className: cx('header')
|
|
10128
|
-
}, header), React__default
|
|
10000
|
+
}, header), React__default.createElement("div", {
|
|
10129
10001
|
className: cx('body')
|
|
10130
|
-
}, React__default
|
|
10002
|
+
}, React__default.createElement(PanelProvider, {
|
|
10131
10003
|
value: this.setCanRefine
|
|
10132
|
-
}, children)), footer && React__default
|
|
10004
|
+
}, children)), footer && React__default.createElement("div", {
|
|
10133
10005
|
className: cx('footer')
|
|
10134
10006
|
}, footer));
|
|
10135
10007
|
}
|
|
@@ -10138,14 +10010,14 @@ function (_Component) {
|
|
|
10138
10010
|
return Panel;
|
|
10139
10011
|
}(React.Component);
|
|
10140
10012
|
|
|
10141
|
-
_defineProperty(Panel, "propTypes", {
|
|
10142
|
-
children: PropTypes__default
|
|
10143
|
-
className: PropTypes__default
|
|
10144
|
-
header: PropTypes__default
|
|
10145
|
-
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
|
|
10146
10018
|
});
|
|
10147
10019
|
|
|
10148
|
-
_defineProperty(Panel, "defaultProps", {
|
|
10020
|
+
inherits$1$1._defineProperty(Panel, "defaultProps", {
|
|
10149
10021
|
className: '',
|
|
10150
10022
|
header: null,
|
|
10151
10023
|
footer: null
|
|
@@ -10154,15 +10026,15 @@ _defineProperty(Panel, "defaultProps", {
|
|
|
10154
10026
|
var PanelCallbackHandler =
|
|
10155
10027
|
/*#__PURE__*/
|
|
10156
10028
|
function (_Component) {
|
|
10157
|
-
_inherits(PanelCallbackHandler, _Component);
|
|
10029
|
+
inherits$1$1._inherits(PanelCallbackHandler, _Component);
|
|
10158
10030
|
|
|
10159
10031
|
function PanelCallbackHandler() {
|
|
10160
|
-
_classCallCheck(this, PanelCallbackHandler);
|
|
10032
|
+
inherits$1$1._classCallCheck(this, PanelCallbackHandler);
|
|
10161
10033
|
|
|
10162
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(PanelCallbackHandler).apply(this, arguments));
|
|
10034
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(PanelCallbackHandler).apply(this, arguments));
|
|
10163
10035
|
}
|
|
10164
10036
|
|
|
10165
|
-
_createClass(PanelCallbackHandler, [{
|
|
10037
|
+
inherits$1$1._createClass(PanelCallbackHandler, [{
|
|
10166
10038
|
key: "componentDidMount",
|
|
10167
10039
|
value: function componentDidMount() {
|
|
10168
10040
|
this.props.setCanRefine(this.props.canRefine);
|
|
@@ -10184,17 +10056,17 @@ function (_Component) {
|
|
|
10184
10056
|
return PanelCallbackHandler;
|
|
10185
10057
|
}(React.Component);
|
|
10186
10058
|
|
|
10187
|
-
_defineProperty(PanelCallbackHandler, "propTypes", {
|
|
10188
|
-
children: PropTypes__default
|
|
10189
|
-
canRefine: PropTypes__default
|
|
10190
|
-
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
|
|
10191
10063
|
});
|
|
10192
10064
|
|
|
10193
10065
|
var PanelWrapper = function PanelWrapper(_ref) {
|
|
10194
10066
|
var canRefine = _ref.canRefine,
|
|
10195
10067
|
children = _ref.children;
|
|
10196
|
-
return React__default
|
|
10197
|
-
return React__default
|
|
10068
|
+
return React__default.createElement(PanelConsumer, null, function (setCanRefine) {
|
|
10069
|
+
return React__default.createElement(PanelCallbackHandler, {
|
|
10198
10070
|
setCanRefine: setCanRefine,
|
|
10199
10071
|
canRefine: canRefine
|
|
10200
10072
|
}, children);
|
|
@@ -10202,29 +10074,29 @@ var PanelWrapper = function PanelWrapper(_ref) {
|
|
|
10202
10074
|
};
|
|
10203
10075
|
|
|
10204
10076
|
PanelWrapper.propTypes = {
|
|
10205
|
-
canRefine: PropTypes__default
|
|
10206
|
-
children: PropTypes__default
|
|
10077
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10078
|
+
children: PropTypes__default.node.isRequired
|
|
10207
10079
|
};
|
|
10208
10080
|
|
|
10209
10081
|
var Link =
|
|
10210
10082
|
/*#__PURE__*/
|
|
10211
10083
|
function (_Component) {
|
|
10212
|
-
_inherits(Link, _Component);
|
|
10084
|
+
inherits$1$1._inherits(Link, _Component);
|
|
10213
10085
|
|
|
10214
10086
|
function Link() {
|
|
10215
10087
|
var _getPrototypeOf2;
|
|
10216
10088
|
|
|
10217
10089
|
var _this;
|
|
10218
10090
|
|
|
10219
|
-
_classCallCheck(this, Link);
|
|
10091
|
+
inherits$1$1._classCallCheck(this, Link);
|
|
10220
10092
|
|
|
10221
10093
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10222
10094
|
args[_key] = arguments[_key];
|
|
10223
10095
|
}
|
|
10224
10096
|
|
|
10225
|
-
_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)));
|
|
10226
10098
|
|
|
10227
|
-
_defineProperty(_assertThisInitialized(_this), "onClick", function (e) {
|
|
10099
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onClick", function (e) {
|
|
10228
10100
|
if (isSpecialClick(e)) {
|
|
10229
10101
|
return;
|
|
10230
10102
|
}
|
|
@@ -10237,10 +10109,10 @@ function (_Component) {
|
|
|
10237
10109
|
return _this;
|
|
10238
10110
|
}
|
|
10239
10111
|
|
|
10240
|
-
_createClass(Link, [{
|
|
10112
|
+
inherits$1$1._createClass(Link, [{
|
|
10241
10113
|
key: "render",
|
|
10242
10114
|
value: function render() {
|
|
10243
|
-
return React__default
|
|
10115
|
+
return React__default.createElement("a", index$5._extends({}, this.props, {
|
|
10244
10116
|
onClick: this.onClick
|
|
10245
10117
|
}));
|
|
10246
10118
|
}
|
|
@@ -10249,28 +10121,28 @@ function (_Component) {
|
|
|
10249
10121
|
return Link;
|
|
10250
10122
|
}(React.Component);
|
|
10251
10123
|
|
|
10252
|
-
_defineProperty(Link, "propTypes", {
|
|
10253
|
-
onClick: PropTypes__default
|
|
10124
|
+
inherits$1$1._defineProperty(Link, "propTypes", {
|
|
10125
|
+
onClick: PropTypes__default.func.isRequired
|
|
10254
10126
|
});
|
|
10255
10127
|
|
|
10256
10128
|
var cx$1 = createClassNames('Breadcrumb');
|
|
10257
|
-
var itemsPropType = PropTypes__default
|
|
10258
|
-
label: PropTypes__default
|
|
10259
|
-
value: PropTypes__default
|
|
10129
|
+
var itemsPropType = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10130
|
+
label: PropTypes__default.string.isRequired,
|
|
10131
|
+
value: PropTypes__default.string.isRequired
|
|
10260
10132
|
}));
|
|
10261
10133
|
|
|
10262
10134
|
var Breadcrumb =
|
|
10263
10135
|
/*#__PURE__*/
|
|
10264
10136
|
function (_Component) {
|
|
10265
|
-
_inherits(Breadcrumb, _Component);
|
|
10137
|
+
inherits$1$1._inherits(Breadcrumb, _Component);
|
|
10266
10138
|
|
|
10267
10139
|
function Breadcrumb() {
|
|
10268
|
-
_classCallCheck(this, Breadcrumb);
|
|
10140
|
+
inherits$1$1._classCallCheck(this, Breadcrumb);
|
|
10269
10141
|
|
|
10270
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Breadcrumb).apply(this, arguments));
|
|
10142
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(Breadcrumb).apply(this, arguments));
|
|
10271
10143
|
}
|
|
10272
10144
|
|
|
10273
|
-
_createClass(Breadcrumb, [{
|
|
10145
|
+
inherits$1$1._createClass(Breadcrumb, [{
|
|
10274
10146
|
key: "render",
|
|
10275
10147
|
value: function render() {
|
|
10276
10148
|
var _this$props = this.props,
|
|
@@ -10282,9 +10154,9 @@ function (_Component) {
|
|
|
10282
10154
|
separator = _this$props.separator,
|
|
10283
10155
|
translate = _this$props.translate,
|
|
10284
10156
|
className = _this$props.className;
|
|
10285
|
-
var rootPath = canRefine ? React__default
|
|
10157
|
+
var rootPath = canRefine ? React__default.createElement("li", {
|
|
10286
10158
|
className: cx$1('item')
|
|
10287
|
-
}, React__default
|
|
10159
|
+
}, React__default.createElement(Link, {
|
|
10288
10160
|
className: cx$1('link'),
|
|
10289
10161
|
onClick: function onClick() {
|
|
10290
10162
|
return !rootURL ? refine() : null;
|
|
@@ -10293,12 +10165,12 @@ function (_Component) {
|
|
|
10293
10165
|
}, translate('rootLabel'))) : null;
|
|
10294
10166
|
var breadcrumb = items.map(function (item, idx) {
|
|
10295
10167
|
var isLast = idx === items.length - 1;
|
|
10296
|
-
return React__default
|
|
10168
|
+
return React__default.createElement("li", {
|
|
10297
10169
|
className: cx$1('item', isLast && 'item--selected'),
|
|
10298
10170
|
key: idx
|
|
10299
|
-
}, React__default
|
|
10171
|
+
}, React__default.createElement("span", {
|
|
10300
10172
|
className: cx$1('separator')
|
|
10301
|
-
}, separator), !isLast ? React__default
|
|
10173
|
+
}, separator), !isLast ? React__default.createElement(Link, {
|
|
10302
10174
|
className: cx$1('link'),
|
|
10303
10175
|
onClick: function onClick() {
|
|
10304
10176
|
return refine(item.value);
|
|
@@ -10306,9 +10178,9 @@ function (_Component) {
|
|
|
10306
10178
|
href: createURL(item.value)
|
|
10307
10179
|
}, item.label) : item.label);
|
|
10308
10180
|
});
|
|
10309
|
-
return React__default
|
|
10310
|
-
className: index.classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10311
|
-
}, React__default
|
|
10181
|
+
return React__default.createElement("div", {
|
|
10182
|
+
className: index$5.classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10183
|
+
}, React__default.createElement("ul", {
|
|
10312
10184
|
className: cx$1('list')
|
|
10313
10185
|
}, rootPath, breadcrumb));
|
|
10314
10186
|
}
|
|
@@ -10317,18 +10189,18 @@ function (_Component) {
|
|
|
10317
10189
|
return Breadcrumb;
|
|
10318
10190
|
}(React.Component);
|
|
10319
10191
|
|
|
10320
|
-
_defineProperty(Breadcrumb, "propTypes", {
|
|
10321
|
-
canRefine: PropTypes__default
|
|
10322
|
-
createURL: PropTypes__default
|
|
10192
|
+
inherits$1$1._defineProperty(Breadcrumb, "propTypes", {
|
|
10193
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
10194
|
+
createURL: PropTypes__default.func.isRequired,
|
|
10323
10195
|
items: itemsPropType,
|
|
10324
|
-
refine: PropTypes__default
|
|
10325
|
-
rootURL: PropTypes__default
|
|
10326
|
-
separator: PropTypes__default
|
|
10327
|
-
translate: PropTypes__default
|
|
10328
|
-
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
|
|
10329
10201
|
});
|
|
10330
10202
|
|
|
10331
|
-
_defineProperty(Breadcrumb, "defaultProps", {
|
|
10203
|
+
inherits$1$1._defineProperty(Breadcrumb, "defaultProps", {
|
|
10332
10204
|
rootURL: null,
|
|
10333
10205
|
separator: ' > ',
|
|
10334
10206
|
className: ''
|
|
@@ -10427,7 +10299,7 @@ var Breadcrumb$1 = translatable({
|
|
|
10427
10299
|
*/
|
|
10428
10300
|
|
|
10429
10301
|
var BreadcrumbWidget = function BreadcrumbWidget(props) {
|
|
10430
|
-
return React__default
|
|
10302
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Breadcrumb$1, props));
|
|
10431
10303
|
};
|
|
10432
10304
|
|
|
10433
10305
|
connectBreadcrumb(BreadcrumbWidget);
|
|
@@ -10437,15 +10309,15 @@ var cx$2 = createClassNames('ClearRefinements');
|
|
|
10437
10309
|
var ClearRefinements =
|
|
10438
10310
|
/*#__PURE__*/
|
|
10439
10311
|
function (_Component) {
|
|
10440
|
-
_inherits(ClearRefinements, _Component);
|
|
10312
|
+
inherits$1$1._inherits(ClearRefinements, _Component);
|
|
10441
10313
|
|
|
10442
10314
|
function ClearRefinements() {
|
|
10443
|
-
_classCallCheck(this, ClearRefinements);
|
|
10315
|
+
inherits$1$1._classCallCheck(this, ClearRefinements);
|
|
10444
10316
|
|
|
10445
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(ClearRefinements).apply(this, arguments));
|
|
10317
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(ClearRefinements).apply(this, arguments));
|
|
10446
10318
|
}
|
|
10447
10319
|
|
|
10448
|
-
_createClass(ClearRefinements, [{
|
|
10320
|
+
inherits$1$1._createClass(ClearRefinements, [{
|
|
10449
10321
|
key: "render",
|
|
10450
10322
|
value: function render() {
|
|
10451
10323
|
var _this$props = this.props,
|
|
@@ -10454,9 +10326,9 @@ function (_Component) {
|
|
|
10454
10326
|
refine = _this$props.refine,
|
|
10455
10327
|
translate = _this$props.translate,
|
|
10456
10328
|
className = _this$props.className;
|
|
10457
|
-
return React__default
|
|
10458
|
-
className: index.classnames(cx$2(''), className)
|
|
10459
|
-
}, React__default
|
|
10329
|
+
return React__default.createElement("div", {
|
|
10330
|
+
className: index$5.classnames(cx$2(''), className)
|
|
10331
|
+
}, React__default.createElement("button", {
|
|
10460
10332
|
className: cx$2('button', !canRefine && 'button--disabled'),
|
|
10461
10333
|
onClick: function onClick() {
|
|
10462
10334
|
return refine(items);
|
|
@@ -10469,15 +10341,15 @@ function (_Component) {
|
|
|
10469
10341
|
return ClearRefinements;
|
|
10470
10342
|
}(React.Component);
|
|
10471
10343
|
|
|
10472
|
-
_defineProperty(ClearRefinements, "propTypes", {
|
|
10473
|
-
items: PropTypes__default
|
|
10474
|
-
canRefine: PropTypes__default
|
|
10475
|
-
refine: PropTypes__default
|
|
10476
|
-
translate: PropTypes__default
|
|
10477
|
-
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
|
|
10478
10350
|
});
|
|
10479
10351
|
|
|
10480
|
-
_defineProperty(ClearRefinements, "defaultProps", {
|
|
10352
|
+
inherits$1$1._defineProperty(ClearRefinements, "defaultProps", {
|
|
10481
10353
|
className: ''
|
|
10482
10354
|
});
|
|
10483
10355
|
|
|
@@ -10520,7 +10392,7 @@ var ClearRefinements$1 = translatable({
|
|
|
10520
10392
|
*/
|
|
10521
10393
|
|
|
10522
10394
|
var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
|
|
10523
|
-
return React__default
|
|
10395
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(ClearRefinements$1, props));
|
|
10524
10396
|
};
|
|
10525
10397
|
|
|
10526
10398
|
connectCurrentRefinements(ClearRefinementsWidget);
|
|
@@ -10532,31 +10404,31 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10532
10404
|
refine = _ref.refine,
|
|
10533
10405
|
translate = _ref.translate,
|
|
10534
10406
|
className = _ref.className;
|
|
10535
|
-
return React__default
|
|
10536
|
-
className: index.classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10537
|
-
}, React__default
|
|
10407
|
+
return React__default.createElement("div", {
|
|
10408
|
+
className: index$5.classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10409
|
+
}, React__default.createElement("ul", {
|
|
10538
10410
|
className: cx$3('list', !canRefine && 'list--noRefinement')
|
|
10539
10411
|
}, items.map(function (item) {
|
|
10540
|
-
return React__default
|
|
10412
|
+
return React__default.createElement("li", {
|
|
10541
10413
|
key: item.label,
|
|
10542
10414
|
className: cx$3('item')
|
|
10543
|
-
}, React__default
|
|
10415
|
+
}, React__default.createElement("span", {
|
|
10544
10416
|
className: cx$3('label')
|
|
10545
10417
|
}, item.label), item.items ? item.items.map(function (nest) {
|
|
10546
|
-
return React__default
|
|
10418
|
+
return React__default.createElement("span", {
|
|
10547
10419
|
key: nest.label,
|
|
10548
10420
|
className: cx$3('category')
|
|
10549
|
-
}, React__default
|
|
10421
|
+
}, React__default.createElement("span", {
|
|
10550
10422
|
className: cx$3('categoryLabel')
|
|
10551
|
-
}, nest.label), React__default
|
|
10423
|
+
}, nest.label), React__default.createElement("button", {
|
|
10552
10424
|
className: cx$3('delete'),
|
|
10553
10425
|
onClick: function onClick() {
|
|
10554
10426
|
return refine(nest.value);
|
|
10555
10427
|
}
|
|
10556
10428
|
}, translate('clearFilter', nest)));
|
|
10557
|
-
}) : React__default
|
|
10429
|
+
}) : React__default.createElement("span", {
|
|
10558
10430
|
className: cx$3('category')
|
|
10559
|
-
}, React__default
|
|
10431
|
+
}, React__default.createElement("button", {
|
|
10560
10432
|
className: cx$3('delete'),
|
|
10561
10433
|
onClick: function onClick() {
|
|
10562
10434
|
return refine(item.value);
|
|
@@ -10564,19 +10436,19 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10564
10436
|
}, translate('clearFilter', item))));
|
|
10565
10437
|
})));
|
|
10566
10438
|
};
|
|
10567
|
-
var itemPropTypes = PropTypes__default
|
|
10568
|
-
label: PropTypes__default
|
|
10569
|
-
value: PropTypes__default
|
|
10439
|
+
var itemPropTypes = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10440
|
+
label: PropTypes__default.string.isRequired,
|
|
10441
|
+
value: PropTypes__default.func.isRequired,
|
|
10570
10442
|
items: function items() {
|
|
10571
10443
|
return itemPropTypes.apply(void 0, arguments);
|
|
10572
10444
|
}
|
|
10573
10445
|
}));
|
|
10574
10446
|
CurrentRefinements.propTypes = {
|
|
10575
10447
|
items: itemPropTypes.isRequired,
|
|
10576
|
-
canRefine: PropTypes__default
|
|
10577
|
-
refine: PropTypes__default
|
|
10578
|
-
translate: PropTypes__default
|
|
10579
|
-
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
|
|
10580
10452
|
};
|
|
10581
10453
|
CurrentRefinements.defaultProps = {
|
|
10582
10454
|
className: ''
|
|
@@ -10628,33 +10500,33 @@ var CurrentRefinements$1 = translatable({
|
|
|
10628
10500
|
*/
|
|
10629
10501
|
|
|
10630
10502
|
var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
|
|
10631
|
-
return React__default
|
|
10503
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(CurrentRefinements$1, props));
|
|
10632
10504
|
};
|
|
10633
10505
|
|
|
10634
10506
|
connectCurrentRefinements(CurrentRefinementsWidget);
|
|
10635
10507
|
|
|
10636
10508
|
var cx$4 = createClassNames('SearchBox');
|
|
10637
|
-
var defaultLoadingIndicator = React__default
|
|
10509
|
+
var defaultLoadingIndicator = React__default.createElement("svg", {
|
|
10638
10510
|
width: "18",
|
|
10639
10511
|
height: "18",
|
|
10640
10512
|
viewBox: "0 0 38 38",
|
|
10641
10513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10642
10514
|
stroke: "#444",
|
|
10643
10515
|
className: cx$4('loadingIcon')
|
|
10644
|
-
}, React__default
|
|
10516
|
+
}, React__default.createElement("g", {
|
|
10645
10517
|
fill: "none",
|
|
10646
10518
|
fillRule: "evenodd"
|
|
10647
|
-
}, React__default
|
|
10519
|
+
}, React__default.createElement("g", {
|
|
10648
10520
|
transform: "translate(1 1)",
|
|
10649
10521
|
strokeWidth: "2"
|
|
10650
|
-
}, React__default
|
|
10522
|
+
}, React__default.createElement("circle", {
|
|
10651
10523
|
strokeOpacity: ".5",
|
|
10652
10524
|
cx: "18",
|
|
10653
10525
|
cy: "18",
|
|
10654
10526
|
r: "18"
|
|
10655
|
-
}), React__default
|
|
10527
|
+
}), React__default.createElement("path", {
|
|
10656
10528
|
d: "M36 18c0-9.94-8.06-18-18-18"
|
|
10657
|
-
}, React__default
|
|
10529
|
+
}, React__default.createElement("animateTransform", {
|
|
10658
10530
|
attributeName: "transform",
|
|
10659
10531
|
type: "rotate",
|
|
10660
10532
|
from: "0 18 18",
|
|
@@ -10662,42 +10534,42 @@ var defaultLoadingIndicator = React__default['default'].createElement("svg", {
|
|
|
10662
10534
|
dur: "1s",
|
|
10663
10535
|
repeatCount: "indefinite"
|
|
10664
10536
|
})))));
|
|
10665
|
-
var defaultReset = React__default
|
|
10537
|
+
var defaultReset = React__default.createElement("svg", {
|
|
10666
10538
|
className: cx$4('resetIcon'),
|
|
10667
10539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10668
10540
|
viewBox: "0 0 20 20",
|
|
10669
10541
|
width: "10",
|
|
10670
10542
|
height: "10"
|
|
10671
|
-
}, React__default
|
|
10543
|
+
}, React__default.createElement("path", {
|
|
10672
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"
|
|
10673
10545
|
}));
|
|
10674
|
-
var defaultSubmit = React__default
|
|
10546
|
+
var defaultSubmit = React__default.createElement("svg", {
|
|
10675
10547
|
className: cx$4('submitIcon'),
|
|
10676
10548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10677
10549
|
width: "10",
|
|
10678
10550
|
height: "10",
|
|
10679
10551
|
viewBox: "0 0 40 40"
|
|
10680
|
-
}, React__default
|
|
10552
|
+
}, React__default.createElement("path", {
|
|
10681
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"
|
|
10682
10554
|
}));
|
|
10683
10555
|
|
|
10684
10556
|
var SearchBox =
|
|
10685
10557
|
/*#__PURE__*/
|
|
10686
10558
|
function (_Component) {
|
|
10687
|
-
_inherits(SearchBox, _Component);
|
|
10559
|
+
inherits$1$1._inherits(SearchBox, _Component);
|
|
10688
10560
|
|
|
10689
10561
|
function SearchBox(props) {
|
|
10690
10562
|
var _this;
|
|
10691
10563
|
|
|
10692
|
-
_classCallCheck(this, SearchBox);
|
|
10564
|
+
inherits$1$1._classCallCheck(this, SearchBox);
|
|
10693
10565
|
|
|
10694
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(SearchBox).call(this));
|
|
10566
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(SearchBox).call(this));
|
|
10695
10567
|
|
|
10696
|
-
_defineProperty(_assertThisInitialized(_this), "getQuery", function () {
|
|
10568
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "getQuery", function () {
|
|
10697
10569
|
return _this.props.searchAsYouType ? _this.props.currentRefinement : _this.state.query;
|
|
10698
10570
|
});
|
|
10699
10571
|
|
|
10700
|
-
_defineProperty(_assertThisInitialized(_this), "onInputMount", function (input) {
|
|
10572
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onInputMount", function (input) {
|
|
10701
10573
|
_this.input = input;
|
|
10702
10574
|
if (!_this.props.inputRef) return;
|
|
10703
10575
|
|
|
@@ -10708,7 +10580,7 @@ function (_Component) {
|
|
|
10708
10580
|
}
|
|
10709
10581
|
});
|
|
10710
10582
|
|
|
10711
|
-
_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (e) {
|
|
10583
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onKeyDown", function (e) {
|
|
10712
10584
|
if (!_this.props.focusShortcuts) {
|
|
10713
10585
|
return;
|
|
10714
10586
|
}
|
|
@@ -10738,7 +10610,7 @@ function (_Component) {
|
|
|
10738
10610
|
e.preventDefault();
|
|
10739
10611
|
});
|
|
10740
10612
|
|
|
10741
|
-
_defineProperty(_assertThisInitialized(_this), "onSubmit", function (e) {
|
|
10613
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onSubmit", function (e) {
|
|
10742
10614
|
e.preventDefault();
|
|
10743
10615
|
e.stopPropagation();
|
|
10744
10616
|
|
|
@@ -10755,7 +10627,7 @@ function (_Component) {
|
|
|
10755
10627
|
return false;
|
|
10756
10628
|
});
|
|
10757
10629
|
|
|
10758
|
-
_defineProperty(_assertThisInitialized(_this), "onChange", function (event) {
|
|
10630
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onChange", function (event) {
|
|
10759
10631
|
var _this$props2 = _this.props,
|
|
10760
10632
|
searchAsYouType = _this$props2.searchAsYouType,
|
|
10761
10633
|
refine = _this$props2.refine,
|
|
@@ -10775,7 +10647,7 @@ function (_Component) {
|
|
|
10775
10647
|
}
|
|
10776
10648
|
});
|
|
10777
10649
|
|
|
10778
|
-
_defineProperty(_assertThisInitialized(_this), "onReset", function (event) {
|
|
10650
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onReset", function (event) {
|
|
10779
10651
|
var _this$props3 = _this.props,
|
|
10780
10652
|
searchAsYouType = _this$props3.searchAsYouType,
|
|
10781
10653
|
refine = _this$props3.refine,
|
|
@@ -10801,7 +10673,7 @@ function (_Component) {
|
|
|
10801
10673
|
return _this;
|
|
10802
10674
|
}
|
|
10803
10675
|
|
|
10804
|
-
_createClass(SearchBox, [{
|
|
10676
|
+
inherits$1$1._createClass(SearchBox, [{
|
|
10805
10677
|
key: "componentDidMount",
|
|
10806
10678
|
value: function componentDidMount() {
|
|
10807
10679
|
document.addEventListener('keydown', this.onKeyDown);
|
|
@@ -10835,7 +10707,7 @@ function (_Component) {
|
|
|
10835
10707
|
var query = this.getQuery();
|
|
10836
10708
|
var searchInputEvents = Object.keys(this.props).reduce(function (props, prop) {
|
|
10837
10709
|
if (['onsubmit', 'onreset', 'onchange'].indexOf(prop.toLowerCase()) === -1 && prop.indexOf('on') === 0) {
|
|
10838
|
-
return _objectSpread({}, props, _defineProperty({}, prop, _this2.props[prop]));
|
|
10710
|
+
return _objectSpread({}, props, inherits$1$1._defineProperty({}, prop, _this2.props[prop]));
|
|
10839
10711
|
}
|
|
10840
10712
|
|
|
10841
10713
|
return props;
|
|
@@ -10843,16 +10715,16 @@ function (_Component) {
|
|
|
10843
10715
|
var isSearchStalled = this.props.showLoadingIndicator && this.props.isSearchStalled;
|
|
10844
10716
|
/* eslint-disable max-len */
|
|
10845
10717
|
|
|
10846
|
-
return React__default
|
|
10847
|
-
className: index.classnames(cx$4(''), className)
|
|
10848
|
-
}, React__default
|
|
10718
|
+
return React__default.createElement("div", {
|
|
10719
|
+
className: index$5.classnames(cx$4(''), className)
|
|
10720
|
+
}, React__default.createElement("form", {
|
|
10849
10721
|
noValidate: true,
|
|
10850
10722
|
onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
|
|
10851
10723
|
onReset: this.onReset,
|
|
10852
10724
|
className: cx$4('form', isSearchStalled && 'form--stalledSearch'),
|
|
10853
10725
|
action: "",
|
|
10854
10726
|
role: "search"
|
|
10855
|
-
}, React__default
|
|
10727
|
+
}, React__default.createElement("input", index$5._extends({
|
|
10856
10728
|
ref: this.onInputMount,
|
|
10857
10729
|
type: "search",
|
|
10858
10730
|
placeholder: translate('placeholder'),
|
|
@@ -10867,16 +10739,16 @@ function (_Component) {
|
|
|
10867
10739
|
onChange: this.onChange
|
|
10868
10740
|
}, searchInputEvents, {
|
|
10869
10741
|
className: cx$4('input')
|
|
10870
|
-
})), React__default
|
|
10742
|
+
})), React__default.createElement("button", {
|
|
10871
10743
|
type: "submit",
|
|
10872
10744
|
title: translate('submitTitle'),
|
|
10873
10745
|
className: cx$4('submit')
|
|
10874
|
-
}, submit), React__default
|
|
10746
|
+
}, submit), React__default.createElement("button", {
|
|
10875
10747
|
type: "reset",
|
|
10876
10748
|
title: translate('resetTitle'),
|
|
10877
10749
|
className: cx$4('reset'),
|
|
10878
10750
|
hidden: !query || isSearchStalled
|
|
10879
|
-
}, reset), this.props.showLoadingIndicator && React__default
|
|
10751
|
+
}, reset), this.props.showLoadingIndicator && React__default.createElement("span", {
|
|
10880
10752
|
hidden: !isSearchStalled,
|
|
10881
10753
|
className: cx$4('loadingIndicator')
|
|
10882
10754
|
}, loadingIndicator)));
|
|
@@ -10887,28 +10759,28 @@ function (_Component) {
|
|
|
10887
10759
|
return SearchBox;
|
|
10888
10760
|
}(React.Component);
|
|
10889
10761
|
|
|
10890
|
-
_defineProperty(SearchBox, "propTypes", {
|
|
10891
|
-
currentRefinement: PropTypes__default
|
|
10892
|
-
className: PropTypes__default
|
|
10893
|
-
refine: PropTypes__default
|
|
10894
|
-
translate: PropTypes__default
|
|
10895
|
-
loadingIndicator: PropTypes__default
|
|
10896
|
-
reset: PropTypes__default
|
|
10897
|
-
submit: PropTypes__default
|
|
10898
|
-
focusShortcuts: PropTypes__default
|
|
10899
|
-
autoFocus: PropTypes__default
|
|
10900
|
-
searchAsYouType: PropTypes__default
|
|
10901
|
-
onSubmit: PropTypes__default
|
|
10902
|
-
onReset: PropTypes__default
|
|
10903
|
-
onChange: PropTypes__default
|
|
10904
|
-
isSearchStalled: PropTypes__default
|
|
10905
|
-
showLoadingIndicator: PropTypes__default
|
|
10906
|
-
inputRef: PropTypes__default
|
|
10907
|
-
current: PropTypes__default
|
|
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
|
|
10908
10780
|
})])
|
|
10909
10781
|
});
|
|
10910
10782
|
|
|
10911
|
-
_defineProperty(SearchBox, "defaultProps", {
|
|
10783
|
+
inherits$1$1._defineProperty(SearchBox, "defaultProps", {
|
|
10912
10784
|
currentRefinement: '',
|
|
10913
10785
|
className: '',
|
|
10914
10786
|
focusShortcuts: ['s', '/'],
|
|
@@ -10927,9 +10799,9 @@ var SearchBox$1 = translatable({
|
|
|
10927
10799
|
placeholder: 'Search here…'
|
|
10928
10800
|
})(SearchBox);
|
|
10929
10801
|
|
|
10930
|
-
var itemsPropType$1 = PropTypes__default
|
|
10931
|
-
value: PropTypes__default
|
|
10932
|
-
label: PropTypes__default
|
|
10802
|
+
var itemsPropType$1 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
10803
|
+
value: PropTypes__default.any,
|
|
10804
|
+
label: PropTypes__default.node.isRequired,
|
|
10933
10805
|
items: function items() {
|
|
10934
10806
|
return itemsPropType$1.apply(void 0, arguments);
|
|
10935
10807
|
}
|
|
@@ -10938,16 +10810,16 @@ var itemsPropType$1 = PropTypes__default['default'].arrayOf(PropTypes__default['
|
|
|
10938
10810
|
var List =
|
|
10939
10811
|
/*#__PURE__*/
|
|
10940
10812
|
function (_Component) {
|
|
10941
|
-
_inherits(List, _Component);
|
|
10813
|
+
inherits$1$1._inherits(List, _Component);
|
|
10942
10814
|
|
|
10943
10815
|
function List() {
|
|
10944
10816
|
var _this;
|
|
10945
10817
|
|
|
10946
|
-
_classCallCheck(this, List);
|
|
10818
|
+
inherits$1$1._classCallCheck(this, List);
|
|
10947
10819
|
|
|
10948
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(List).call(this));
|
|
10820
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(List).call(this));
|
|
10949
10821
|
|
|
10950
|
-
_defineProperty(_assertThisInitialized(_this), "onShowMoreClick", function () {
|
|
10822
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onShowMoreClick", function () {
|
|
10951
10823
|
_this.setState(function (state) {
|
|
10952
10824
|
return {
|
|
10953
10825
|
extended: !state.extended
|
|
@@ -10955,7 +10827,7 @@ function (_Component) {
|
|
|
10955
10827
|
});
|
|
10956
10828
|
});
|
|
10957
10829
|
|
|
10958
|
-
_defineProperty(_assertThisInitialized(_this), "getLimit", function () {
|
|
10830
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "getLimit", function () {
|
|
10959
10831
|
var _this$props = _this.props,
|
|
10960
10832
|
limit = _this$props.limit,
|
|
10961
10833
|
showMoreLimit = _this$props.showMoreLimit;
|
|
@@ -10963,18 +10835,18 @@ function (_Component) {
|
|
|
10963
10835
|
return extended ? showMoreLimit : limit;
|
|
10964
10836
|
});
|
|
10965
10837
|
|
|
10966
|
-
_defineProperty(_assertThisInitialized(_this), "resetQuery", function () {
|
|
10838
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "resetQuery", function () {
|
|
10967
10839
|
_this.setState({
|
|
10968
10840
|
query: ''
|
|
10969
10841
|
});
|
|
10970
10842
|
});
|
|
10971
10843
|
|
|
10972
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10844
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10973
10845
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
10974
|
-
return React__default
|
|
10846
|
+
return React__default.createElement("li", {
|
|
10975
10847
|
key: item.key || item.label,
|
|
10976
10848
|
className: _this.props.cx('item', item.isRefined && 'item--selected', item.noRefinement && 'item--noRefinement', itemHasChildren && 'item--parent')
|
|
10977
|
-
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default
|
|
10849
|
+
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default.createElement("ul", {
|
|
10978
10850
|
className: _this.props.cx('list', 'list--child')
|
|
10979
10851
|
}, item.items.slice(0, _this.getLimit()).map(function (child) {
|
|
10980
10852
|
return _this.renderItem(child, item);
|
|
@@ -10988,7 +10860,7 @@ function (_Component) {
|
|
|
10988
10860
|
return _this;
|
|
10989
10861
|
}
|
|
10990
10862
|
|
|
10991
|
-
_createClass(List, [{
|
|
10863
|
+
inherits$1$1._createClass(List, [{
|
|
10992
10864
|
key: "renderShowMore",
|
|
10993
10865
|
value: function renderShowMore() {
|
|
10994
10866
|
var _this$props2 = this.props,
|
|
@@ -11002,7 +10874,7 @@ function (_Component) {
|
|
|
11002
10874
|
return null;
|
|
11003
10875
|
}
|
|
11004
10876
|
|
|
11005
|
-
return React__default
|
|
10877
|
+
return React__default.createElement("button", {
|
|
11006
10878
|
disabled: disabled,
|
|
11007
10879
|
className: cx('showMore', disabled && 'showMore--disabled'),
|
|
11008
10880
|
onClick: this.onShowMoreClick
|
|
@@ -11020,12 +10892,12 @@ function (_Component) {
|
|
|
11020
10892
|
translate = _this$props3.translate,
|
|
11021
10893
|
items = _this$props3.items,
|
|
11022
10894
|
selectItem = _this$props3.selectItem;
|
|
11023
|
-
var noResults = items.length === 0 && this.state.query !== '' ? React__default
|
|
10895
|
+
var noResults = items.length === 0 && this.state.query !== '' ? React__default.createElement("div", {
|
|
11024
10896
|
className: cx('noResults')
|
|
11025
10897
|
}, translate('noResults')) : null;
|
|
11026
|
-
return React__default
|
|
10898
|
+
return React__default.createElement("div", {
|
|
11027
10899
|
className: cx('searchBox')
|
|
11028
|
-
}, React__default
|
|
10900
|
+
}, React__default.createElement(SearchBox$1, {
|
|
11029
10901
|
currentRefinement: this.state.query,
|
|
11030
10902
|
refine: function refine(value) {
|
|
11031
10903
|
_this2.setState({
|
|
@@ -11058,10 +10930,10 @@ function (_Component) {
|
|
|
11058
10930
|
searchable = _this$props4.searchable,
|
|
11059
10931
|
canRefine = _this$props4.canRefine;
|
|
11060
10932
|
var searchBox = searchable ? this.renderSearchBox() : null;
|
|
11061
|
-
var rootClassName = index.classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
10933
|
+
var rootClassName = index$5.classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
11062
10934
|
|
|
11063
10935
|
if (items.length === 0) {
|
|
11064
|
-
return React__default
|
|
10936
|
+
return React__default.createElement("div", {
|
|
11065
10937
|
className: rootClassName
|
|
11066
10938
|
}, searchBox);
|
|
11067
10939
|
} // Always limit the number of items we show on screen, since the actual
|
|
@@ -11069,9 +10941,9 @@ function (_Component) {
|
|
|
11069
10941
|
// option.
|
|
11070
10942
|
|
|
11071
10943
|
|
|
11072
|
-
return React__default
|
|
10944
|
+
return React__default.createElement("div", {
|
|
11073
10945
|
className: rootClassName
|
|
11074
|
-
}, searchBox, React__default
|
|
10946
|
+
}, searchBox, React__default.createElement("ul", {
|
|
11075
10947
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
11076
10948
|
}, items.slice(0, this.getLimit()).map(function (item) {
|
|
11077
10949
|
return _this3.renderItem(item, _this3.resetQuery);
|
|
@@ -11082,34 +10954,34 @@ function (_Component) {
|
|
|
11082
10954
|
return List;
|
|
11083
10955
|
}(React.Component);
|
|
11084
10956
|
|
|
11085
|
-
_defineProperty(List, "propTypes", {
|
|
11086
|
-
cx: PropTypes__default
|
|
10957
|
+
inherits$1$1._defineProperty(List, "propTypes", {
|
|
10958
|
+
cx: PropTypes__default.func.isRequired,
|
|
11087
10959
|
// Only required with showMore.
|
|
11088
|
-
translate: PropTypes__default
|
|
10960
|
+
translate: PropTypes__default.func,
|
|
11089
10961
|
items: itemsPropType$1,
|
|
11090
|
-
renderItem: PropTypes__default
|
|
11091
|
-
selectItem: PropTypes__default
|
|
11092
|
-
className: PropTypes__default
|
|
11093
|
-
showMore: PropTypes__default
|
|
11094
|
-
limit: PropTypes__default
|
|
11095
|
-
showMoreLimit: PropTypes__default
|
|
11096
|
-
show: PropTypes__default
|
|
11097
|
-
searchForItems: PropTypes__default
|
|
11098
|
-
searchable: PropTypes__default
|
|
11099
|
-
isFromSearch: PropTypes__default
|
|
11100
|
-
canRefine: PropTypes__default
|
|
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
|
|
11101
10973
|
});
|
|
11102
10974
|
|
|
11103
|
-
_defineProperty(List, "defaultProps", {
|
|
10975
|
+
inherits$1$1._defineProperty(List, "defaultProps", {
|
|
11104
10976
|
className: '',
|
|
11105
10977
|
isFromSearch: false
|
|
11106
10978
|
});
|
|
11107
10979
|
|
|
11108
10980
|
var cx$5 = createClassNames('HierarchicalMenu');
|
|
11109
|
-
var itemsPropType$2 = PropTypes__default
|
|
11110
|
-
label: PropTypes__default
|
|
11111
|
-
value: PropTypes__default
|
|
11112
|
-
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,
|
|
11113
10985
|
items: function items() {
|
|
11114
10986
|
return itemsPropType$2.apply(void 0, arguments);
|
|
11115
10987
|
}
|
|
@@ -11118,34 +10990,34 @@ var itemsPropType$2 = PropTypes__default['default'].arrayOf(PropTypes__default['
|
|
|
11118
10990
|
var HierarchicalMenu =
|
|
11119
10991
|
/*#__PURE__*/
|
|
11120
10992
|
function (_Component) {
|
|
11121
|
-
_inherits(HierarchicalMenu, _Component);
|
|
10993
|
+
inherits$1$1._inherits(HierarchicalMenu, _Component);
|
|
11122
10994
|
|
|
11123
10995
|
function HierarchicalMenu() {
|
|
11124
10996
|
var _getPrototypeOf2;
|
|
11125
10997
|
|
|
11126
10998
|
var _this;
|
|
11127
10999
|
|
|
11128
|
-
_classCallCheck(this, HierarchicalMenu);
|
|
11000
|
+
inherits$1$1._classCallCheck(this, HierarchicalMenu);
|
|
11129
11001
|
|
|
11130
11002
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11131
11003
|
args[_key] = arguments[_key];
|
|
11132
11004
|
}
|
|
11133
11005
|
|
|
11134
|
-
_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)));
|
|
11135
11007
|
|
|
11136
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item) {
|
|
11008
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item) {
|
|
11137
11009
|
var _this$props = _this.props,
|
|
11138
11010
|
createURL = _this$props.createURL,
|
|
11139
11011
|
refine = _this$props.refine;
|
|
11140
|
-
return React__default
|
|
11012
|
+
return React__default.createElement(Link, {
|
|
11141
11013
|
className: cx$5('link'),
|
|
11142
11014
|
onClick: function onClick() {
|
|
11143
11015
|
return refine(item.value);
|
|
11144
11016
|
},
|
|
11145
11017
|
href: createURL(item.value)
|
|
11146
|
-
}, React__default
|
|
11018
|
+
}, React__default.createElement("span", {
|
|
11147
11019
|
className: cx$5('label')
|
|
11148
|
-
}, item.label), ' ', React__default
|
|
11020
|
+
}, item.label), ' ', React__default.createElement("span", {
|
|
11149
11021
|
className: cx$5('count')
|
|
11150
11022
|
}, item.count));
|
|
11151
11023
|
});
|
|
@@ -11153,7 +11025,7 @@ function (_Component) {
|
|
|
11153
11025
|
return _this;
|
|
11154
11026
|
}
|
|
11155
11027
|
|
|
11156
|
-
_createClass(HierarchicalMenu, [{
|
|
11028
|
+
inherits$1$1._createClass(HierarchicalMenu, [{
|
|
11157
11029
|
key: "render",
|
|
11158
11030
|
value: function render() {
|
|
11159
11031
|
var _this$props2 = this.props,
|
|
@@ -11164,7 +11036,7 @@ function (_Component) {
|
|
|
11164
11036
|
showMoreLimit = _this$props2.showMoreLimit,
|
|
11165
11037
|
canRefine = _this$props2.canRefine,
|
|
11166
11038
|
className = _this$props2.className;
|
|
11167
|
-
return React__default
|
|
11039
|
+
return React__default.createElement(List, {
|
|
11168
11040
|
renderItem: this.renderItem,
|
|
11169
11041
|
cx: cx$5,
|
|
11170
11042
|
translate: translate,
|
|
@@ -11181,20 +11053,20 @@ function (_Component) {
|
|
|
11181
11053
|
return HierarchicalMenu;
|
|
11182
11054
|
}(React.Component);
|
|
11183
11055
|
|
|
11184
|
-
_defineProperty(HierarchicalMenu, "propTypes", {
|
|
11185
|
-
translate: PropTypes__default
|
|
11186
|
-
refine: PropTypes__default
|
|
11187
|
-
createURL: PropTypes__default
|
|
11188
|
-
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,
|
|
11189
11061
|
items: itemsPropType$2,
|
|
11190
|
-
showMore: PropTypes__default
|
|
11191
|
-
className: PropTypes__default
|
|
11192
|
-
limit: PropTypes__default
|
|
11193
|
-
showMoreLimit: PropTypes__default
|
|
11194
|
-
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
|
|
11195
11067
|
});
|
|
11196
11068
|
|
|
11197
|
-
_defineProperty(HierarchicalMenu, "defaultProps", {
|
|
11069
|
+
inherits$1$1._defineProperty(HierarchicalMenu, "defaultProps", {
|
|
11198
11070
|
className: ''
|
|
11199
11071
|
});
|
|
11200
11072
|
|
|
@@ -11295,7 +11167,7 @@ var HierarchicalMenu$1 = translatable({
|
|
|
11295
11167
|
*/
|
|
11296
11168
|
|
|
11297
11169
|
var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
|
|
11298
|
-
return React__default
|
|
11170
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(HierarchicalMenu$1, props));
|
|
11299
11171
|
};
|
|
11300
11172
|
|
|
11301
11173
|
connectHierarchicalMenu(HierarchicalMenuWidget);
|
|
@@ -11308,16 +11180,16 @@ var Highlight = function Highlight(_ref) {
|
|
|
11308
11180
|
nonHighlightedTagName = _ref.nonHighlightedTagName;
|
|
11309
11181
|
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
11310
11182
|
var className = isHighlighted ? 'highlighted' : 'nonHighlighted';
|
|
11311
|
-
return React__default
|
|
11183
|
+
return React__default.createElement(TagName, {
|
|
11312
11184
|
className: cx(className)
|
|
11313
11185
|
}, value);
|
|
11314
11186
|
};
|
|
11315
11187
|
Highlight.propTypes = {
|
|
11316
|
-
cx: PropTypes__default
|
|
11317
|
-
value: PropTypes__default
|
|
11318
|
-
isHighlighted: PropTypes__default
|
|
11319
|
-
highlightedTagName: PropTypes__default
|
|
11320
|
-
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
|
|
11321
11193
|
};
|
|
11322
11194
|
|
|
11323
11195
|
var Highlighter = function Highlighter(_ref2) {
|
|
@@ -11335,15 +11207,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11335
11207
|
attribute: attribute,
|
|
11336
11208
|
highlightProperty: highlightProperty
|
|
11337
11209
|
});
|
|
11338
|
-
return React__default
|
|
11339
|
-
className: index.classnames(cx(''), className)
|
|
11210
|
+
return React__default.createElement("span", {
|
|
11211
|
+
className: index$5.classnames(cx(''), className)
|
|
11340
11212
|
}, parsedHighlightedValue.map(function (item, i) {
|
|
11341
11213
|
if (Array.isArray(item)) {
|
|
11342
11214
|
var isLast = i === parsedHighlightedValue.length - 1;
|
|
11343
|
-
return React__default
|
|
11215
|
+
return React__default.createElement("span", {
|
|
11344
11216
|
key: i
|
|
11345
11217
|
}, item.map(function (element, index) {
|
|
11346
|
-
return React__default
|
|
11218
|
+
return React__default.createElement(Highlight, {
|
|
11347
11219
|
cx: cx,
|
|
11348
11220
|
key: index,
|
|
11349
11221
|
value: element.value,
|
|
@@ -11351,12 +11223,12 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11351
11223
|
nonHighlightedTagName: nonHighlightedTagName,
|
|
11352
11224
|
isHighlighted: element.isHighlighted
|
|
11353
11225
|
});
|
|
11354
|
-
}), !isLast && React__default
|
|
11226
|
+
}), !isLast && React__default.createElement("span", {
|
|
11355
11227
|
className: cx('separator')
|
|
11356
11228
|
}, separator));
|
|
11357
11229
|
}
|
|
11358
11230
|
|
|
11359
|
-
return React__default
|
|
11231
|
+
return React__default.createElement(Highlight, {
|
|
11360
11232
|
cx: cx,
|
|
11361
11233
|
key: i,
|
|
11362
11234
|
value: item.value,
|
|
@@ -11368,15 +11240,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11368
11240
|
};
|
|
11369
11241
|
|
|
11370
11242
|
Highlighter.propTypes = {
|
|
11371
|
-
cx: PropTypes__default
|
|
11372
|
-
hit: PropTypes__default
|
|
11373
|
-
attribute: PropTypes__default
|
|
11374
|
-
highlight: PropTypes__default
|
|
11375
|
-
highlightProperty: PropTypes__default
|
|
11376
|
-
tagName: PropTypes__default
|
|
11377
|
-
nonHighlightedTagName: PropTypes__default
|
|
11378
|
-
className: PropTypes__default
|
|
11379
|
-
separator: PropTypes__default
|
|
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
|
|
11380
11252
|
};
|
|
11381
11253
|
Highlighter.defaultProps = {
|
|
11382
11254
|
tagName: 'em',
|
|
@@ -11388,7 +11260,7 @@ Highlighter.defaultProps = {
|
|
|
11388
11260
|
var cx$6 = createClassNames('Highlight');
|
|
11389
11261
|
|
|
11390
11262
|
var Highlight$1 = function Highlight(props) {
|
|
11391
|
-
return React__default
|
|
11263
|
+
return React__default.createElement(Highlighter, index$5._extends({}, props, {
|
|
11392
11264
|
highlightProperty: "_highlightResult",
|
|
11393
11265
|
cx: cx$6
|
|
11394
11266
|
}));
|
|
@@ -11440,7 +11312,7 @@ var Highlight$2 = connectHighlight(Highlight$1);
|
|
|
11440
11312
|
var cx$7 = createClassNames('Hits');
|
|
11441
11313
|
|
|
11442
11314
|
var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
11443
|
-
return React__default
|
|
11315
|
+
return React__default.createElement("div", {
|
|
11444
11316
|
style: {
|
|
11445
11317
|
borderBottom: '1px solid #bbb',
|
|
11446
11318
|
paddingBottom: '5px',
|
|
@@ -11456,27 +11328,27 @@ var Hits = function Hits(_ref) {
|
|
|
11456
11328
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
11457
11329
|
_ref$hitComponent = _ref.hitComponent,
|
|
11458
11330
|
HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
|
|
11459
|
-
return React__default
|
|
11460
|
-
className: index.classnames(cx$7(''), className)
|
|
11461
|
-
}, React__default
|
|
11331
|
+
return React__default.createElement("div", {
|
|
11332
|
+
className: index$5.classnames(cx$7(''), className)
|
|
11333
|
+
}, React__default.createElement("ul", {
|
|
11462
11334
|
className: cx$7('list')
|
|
11463
11335
|
}, hits.map(function (hit) {
|
|
11464
|
-
return React__default
|
|
11336
|
+
return React__default.createElement("li", {
|
|
11465
11337
|
className: cx$7('item'),
|
|
11466
11338
|
key: hit.objectID
|
|
11467
|
-
}, React__default
|
|
11339
|
+
}, React__default.createElement(HitComponent, {
|
|
11468
11340
|
hit: hit
|
|
11469
11341
|
}));
|
|
11470
11342
|
})));
|
|
11471
11343
|
};
|
|
11472
11344
|
|
|
11473
|
-
var HitPropTypes = PropTypes__default
|
|
11474
|
-
objectID: PropTypes__default
|
|
11345
|
+
var HitPropTypes = PropTypes__default.shape({
|
|
11346
|
+
objectID: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired
|
|
11475
11347
|
});
|
|
11476
11348
|
Hits.propTypes = {
|
|
11477
|
-
hits: PropTypes__default
|
|
11478
|
-
className: PropTypes__default
|
|
11479
|
-
hitComponent: PropTypes__default
|
|
11349
|
+
hits: PropTypes__default.arrayOf(HitPropTypes.isRequired).isRequired,
|
|
11350
|
+
className: PropTypes__default.string,
|
|
11351
|
+
hitComponent: PropTypes__default.func
|
|
11480
11352
|
};
|
|
11481
11353
|
|
|
11482
11354
|
/**
|
|
@@ -11517,41 +11389,41 @@ var Hits$1 = connectHits(Hits);
|
|
|
11517
11389
|
var Select =
|
|
11518
11390
|
/*#__PURE__*/
|
|
11519
11391
|
function (_Component) {
|
|
11520
|
-
_inherits(Select, _Component);
|
|
11392
|
+
inherits$1$1._inherits(Select, _Component);
|
|
11521
11393
|
|
|
11522
11394
|
function Select() {
|
|
11523
11395
|
var _getPrototypeOf2;
|
|
11524
11396
|
|
|
11525
11397
|
var _this;
|
|
11526
11398
|
|
|
11527
|
-
_classCallCheck(this, Select);
|
|
11399
|
+
inherits$1$1._classCallCheck(this, Select);
|
|
11528
11400
|
|
|
11529
11401
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11530
11402
|
args[_key] = arguments[_key];
|
|
11531
11403
|
}
|
|
11532
11404
|
|
|
11533
|
-
_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)));
|
|
11534
11406
|
|
|
11535
|
-
_defineProperty(_assertThisInitialized(_this), "onChange", function (e) {
|
|
11407
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onChange", function (e) {
|
|
11536
11408
|
_this.props.onSelect(e.target.value);
|
|
11537
11409
|
});
|
|
11538
11410
|
|
|
11539
11411
|
return _this;
|
|
11540
11412
|
}
|
|
11541
11413
|
|
|
11542
|
-
_createClass(Select, [{
|
|
11414
|
+
inherits$1$1._createClass(Select, [{
|
|
11543
11415
|
key: "render",
|
|
11544
11416
|
value: function render() {
|
|
11545
11417
|
var _this$props = this.props,
|
|
11546
11418
|
cx = _this$props.cx,
|
|
11547
11419
|
items = _this$props.items,
|
|
11548
11420
|
selectedItem = _this$props.selectedItem;
|
|
11549
|
-
return React__default
|
|
11421
|
+
return React__default.createElement("select", {
|
|
11550
11422
|
className: cx('select'),
|
|
11551
11423
|
value: selectedItem,
|
|
11552
11424
|
onChange: this.onChange
|
|
11553
11425
|
}, items.map(function (item) {
|
|
11554
|
-
return React__default
|
|
11426
|
+
return React__default.createElement("option", {
|
|
11555
11427
|
className: cx('option'),
|
|
11556
11428
|
key: item.key === undefined ? item.value : item.key,
|
|
11557
11429
|
disabled: item.disabled,
|
|
@@ -11564,16 +11436,16 @@ function (_Component) {
|
|
|
11564
11436
|
return Select;
|
|
11565
11437
|
}(React.Component);
|
|
11566
11438
|
|
|
11567
|
-
_defineProperty(Select, "propTypes", {
|
|
11568
|
-
cx: PropTypes__default
|
|
11569
|
-
onSelect: PropTypes__default
|
|
11570
|
-
items: PropTypes__default
|
|
11571
|
-
value: PropTypes__default
|
|
11572
|
-
key: PropTypes__default
|
|
11573
|
-
label: PropTypes__default
|
|
11574
|
-
disabled: PropTypes__default
|
|
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
|
|
11575
11447
|
})).isRequired,
|
|
11576
|
-
selectedItem: PropTypes__default
|
|
11448
|
+
selectedItem: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired
|
|
11577
11449
|
});
|
|
11578
11450
|
|
|
11579
11451
|
var cx$8 = createClassNames('HitsPerPage');
|
|
@@ -11581,15 +11453,15 @@ var cx$8 = createClassNames('HitsPerPage');
|
|
|
11581
11453
|
var HitsPerPage =
|
|
11582
11454
|
/*#__PURE__*/
|
|
11583
11455
|
function (_Component) {
|
|
11584
|
-
_inherits(HitsPerPage, _Component);
|
|
11456
|
+
inherits$1$1._inherits(HitsPerPage, _Component);
|
|
11585
11457
|
|
|
11586
11458
|
function HitsPerPage() {
|
|
11587
|
-
_classCallCheck(this, HitsPerPage);
|
|
11459
|
+
inherits$1$1._classCallCheck(this, HitsPerPage);
|
|
11588
11460
|
|
|
11589
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(HitsPerPage).apply(this, arguments));
|
|
11461
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(HitsPerPage).apply(this, arguments));
|
|
11590
11462
|
}
|
|
11591
11463
|
|
|
11592
|
-
_createClass(HitsPerPage, [{
|
|
11464
|
+
inherits$1$1._createClass(HitsPerPage, [{
|
|
11593
11465
|
key: "render",
|
|
11594
11466
|
value: function render() {
|
|
11595
11467
|
var _this$props = this.props,
|
|
@@ -11597,9 +11469,9 @@ function (_Component) {
|
|
|
11597
11469
|
currentRefinement = _this$props.currentRefinement,
|
|
11598
11470
|
refine = _this$props.refine,
|
|
11599
11471
|
className = _this$props.className;
|
|
11600
|
-
return React__default
|
|
11601
|
-
className: index.classnames(cx$8(''), className)
|
|
11602
|
-
}, React__default
|
|
11472
|
+
return React__default.createElement("div", {
|
|
11473
|
+
className: index$5.classnames(cx$8(''), className)
|
|
11474
|
+
}, React__default.createElement(Select, {
|
|
11603
11475
|
onSelect: refine,
|
|
11604
11476
|
selectedItem: currentRefinement,
|
|
11605
11477
|
items: items,
|
|
@@ -11611,17 +11483,17 @@ function (_Component) {
|
|
|
11611
11483
|
return HitsPerPage;
|
|
11612
11484
|
}(React.Component);
|
|
11613
11485
|
|
|
11614
|
-
_defineProperty(HitsPerPage, "propTypes", {
|
|
11615
|
-
items: PropTypes__default
|
|
11616
|
-
value: PropTypes__default
|
|
11617
|
-
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
|
|
11618
11490
|
})).isRequired,
|
|
11619
|
-
currentRefinement: PropTypes__default
|
|
11620
|
-
refine: PropTypes__default
|
|
11621
|
-
className: PropTypes__default
|
|
11491
|
+
currentRefinement: PropTypes__default.number.isRequired,
|
|
11492
|
+
refine: PropTypes__default.func.isRequired,
|
|
11493
|
+
className: PropTypes__default.string
|
|
11622
11494
|
});
|
|
11623
11495
|
|
|
11624
|
-
_defineProperty(HitsPerPage, "defaultProps", {
|
|
11496
|
+
inherits$1$1._defineProperty(HitsPerPage, "defaultProps", {
|
|
11625
11497
|
className: ''
|
|
11626
11498
|
});
|
|
11627
11499
|
|
|
@@ -11674,15 +11546,15 @@ var cx$9 = createClassNames('InfiniteHits');
|
|
|
11674
11546
|
var InfiniteHits =
|
|
11675
11547
|
/*#__PURE__*/
|
|
11676
11548
|
function (_Component) {
|
|
11677
|
-
_inherits(InfiniteHits, _Component);
|
|
11549
|
+
inherits$1$1._inherits(InfiniteHits, _Component);
|
|
11678
11550
|
|
|
11679
11551
|
function InfiniteHits() {
|
|
11680
|
-
_classCallCheck(this, InfiniteHits);
|
|
11552
|
+
inherits$1$1._classCallCheck(this, InfiniteHits);
|
|
11681
11553
|
|
|
11682
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(InfiniteHits).apply(this, arguments));
|
|
11554
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(InfiniteHits).apply(this, arguments));
|
|
11683
11555
|
}
|
|
11684
11556
|
|
|
11685
|
-
_createClass(InfiniteHits, [{
|
|
11557
|
+
inherits$1$1._createClass(InfiniteHits, [{
|
|
11686
11558
|
key: "render",
|
|
11687
11559
|
value: function render() {
|
|
11688
11560
|
var _this$props = this.props,
|
|
@@ -11695,24 +11567,24 @@ function (_Component) {
|
|
|
11695
11567
|
refineNext = _this$props.refineNext,
|
|
11696
11568
|
translate = _this$props.translate,
|
|
11697
11569
|
className = _this$props.className;
|
|
11698
|
-
return React__default
|
|
11699
|
-
className: index.classnames(cx$9(''), className)
|
|
11700
|
-
}, showPrevious && React__default
|
|
11570
|
+
return React__default.createElement("div", {
|
|
11571
|
+
className: index$5.classnames(cx$9(''), className)
|
|
11572
|
+
}, showPrevious && React__default.createElement("button", {
|
|
11701
11573
|
className: cx$9('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
|
|
11702
11574
|
onClick: function onClick() {
|
|
11703
11575
|
return refinePrevious();
|
|
11704
11576
|
},
|
|
11705
11577
|
disabled: !hasPrevious
|
|
11706
|
-
}, translate('loadPrevious')), React__default
|
|
11578
|
+
}, translate('loadPrevious')), React__default.createElement("ul", {
|
|
11707
11579
|
className: cx$9('list')
|
|
11708
11580
|
}, hits.map(function (hit) {
|
|
11709
|
-
return React__default
|
|
11581
|
+
return React__default.createElement("li", {
|
|
11710
11582
|
key: hit.objectID,
|
|
11711
11583
|
className: cx$9('item')
|
|
11712
|
-
}, React__default
|
|
11584
|
+
}, React__default.createElement(HitComponent, {
|
|
11713
11585
|
hit: hit
|
|
11714
11586
|
}));
|
|
11715
|
-
})), React__default
|
|
11587
|
+
})), React__default.createElement("button", {
|
|
11716
11588
|
className: cx$9('loadMore', !hasMore && 'loadMore--disabled'),
|
|
11717
11589
|
onClick: function onClick() {
|
|
11718
11590
|
return refineNext();
|
|
@@ -11726,21 +11598,21 @@ function (_Component) {
|
|
|
11726
11598
|
}(React.Component);
|
|
11727
11599
|
|
|
11728
11600
|
InfiniteHits.propTypes = {
|
|
11729
|
-
hits: PropTypes__default
|
|
11730
|
-
showPrevious: PropTypes__default
|
|
11731
|
-
hasPrevious: PropTypes__default
|
|
11732
|
-
hasMore: PropTypes__default
|
|
11733
|
-
refinePrevious: PropTypes__default
|
|
11734
|
-
refineNext: PropTypes__default
|
|
11735
|
-
translate: PropTypes__default
|
|
11736
|
-
className: PropTypes__default
|
|
11737
|
-
hitComponent: PropTypes__default
|
|
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])
|
|
11738
11610
|
};
|
|
11739
11611
|
InfiniteHits.defaultProps = {
|
|
11740
11612
|
className: '',
|
|
11741
11613
|
showPrevious: false,
|
|
11742
11614
|
hitComponent: function hitComponent(hit) {
|
|
11743
|
-
return React__default
|
|
11615
|
+
return React__default.createElement("div", {
|
|
11744
11616
|
style: {
|
|
11745
11617
|
borderBottom: '1px solid #bbb',
|
|
11746
11618
|
paddingBottom: '5px',
|
|
@@ -11799,41 +11671,41 @@ var cx$a = createClassNames('Menu');
|
|
|
11799
11671
|
var Menu =
|
|
11800
11672
|
/*#__PURE__*/
|
|
11801
11673
|
function (_Component) {
|
|
11802
|
-
_inherits(Menu, _Component);
|
|
11674
|
+
inherits$1$1._inherits(Menu, _Component);
|
|
11803
11675
|
|
|
11804
11676
|
function Menu() {
|
|
11805
11677
|
var _getPrototypeOf2;
|
|
11806
11678
|
|
|
11807
11679
|
var _this;
|
|
11808
11680
|
|
|
11809
|
-
_classCallCheck(this, Menu);
|
|
11681
|
+
inherits$1$1._classCallCheck(this, Menu);
|
|
11810
11682
|
|
|
11811
11683
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11812
11684
|
args[_key] = arguments[_key];
|
|
11813
11685
|
}
|
|
11814
11686
|
|
|
11815
|
-
_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)));
|
|
11816
11688
|
|
|
11817
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11689
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11818
11690
|
var createURL = _this.props.createURL;
|
|
11819
|
-
var label = _this.props.isFromSearch ? React__default
|
|
11691
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
11820
11692
|
attribute: "label",
|
|
11821
11693
|
hit: item
|
|
11822
11694
|
}) : item.label;
|
|
11823
|
-
return React__default
|
|
11695
|
+
return React__default.createElement(Link, {
|
|
11824
11696
|
className: cx$a('link'),
|
|
11825
11697
|
onClick: function onClick() {
|
|
11826
11698
|
return _this.selectItem(item, resetQuery);
|
|
11827
11699
|
},
|
|
11828
11700
|
href: createURL(item.value)
|
|
11829
|
-
}, React__default
|
|
11701
|
+
}, React__default.createElement("span", {
|
|
11830
11702
|
className: cx$a('label')
|
|
11831
|
-
}, label), ' ', React__default
|
|
11703
|
+
}, label), ' ', React__default.createElement("span", {
|
|
11832
11704
|
className: cx$a('count')
|
|
11833
11705
|
}, item.count));
|
|
11834
11706
|
});
|
|
11835
11707
|
|
|
11836
|
-
_defineProperty(_assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
11708
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
11837
11709
|
resetQuery();
|
|
11838
11710
|
|
|
11839
11711
|
_this.props.refine(item.value);
|
|
@@ -11842,7 +11714,7 @@ function (_Component) {
|
|
|
11842
11714
|
return _this;
|
|
11843
11715
|
}
|
|
11844
11716
|
|
|
11845
|
-
_createClass(Menu, [{
|
|
11717
|
+
inherits$1$1._createClass(Menu, [{
|
|
11846
11718
|
key: "render",
|
|
11847
11719
|
value: function render() {
|
|
11848
11720
|
var _this$props = this.props,
|
|
@@ -11856,7 +11728,7 @@ function (_Component) {
|
|
|
11856
11728
|
searchable = _this$props.searchable,
|
|
11857
11729
|
canRefine = _this$props.canRefine,
|
|
11858
11730
|
className = _this$props.className;
|
|
11859
|
-
return React__default
|
|
11731
|
+
return React__default.createElement(List, {
|
|
11860
11732
|
renderItem: this.renderItem,
|
|
11861
11733
|
selectItem: this.selectItem,
|
|
11862
11734
|
cx: cx$a,
|
|
@@ -11877,28 +11749,28 @@ function (_Component) {
|
|
|
11877
11749
|
return Menu;
|
|
11878
11750
|
}(React.Component);
|
|
11879
11751
|
|
|
11880
|
-
_defineProperty(Menu, "propTypes", {
|
|
11881
|
-
translate: PropTypes__default
|
|
11882
|
-
refine: PropTypes__default
|
|
11883
|
-
searchForItems: PropTypes__default
|
|
11884
|
-
searchable: PropTypes__default
|
|
11885
|
-
createURL: PropTypes__default
|
|
11886
|
-
items: PropTypes__default
|
|
11887
|
-
label: PropTypes__default
|
|
11888
|
-
value: PropTypes__default
|
|
11889
|
-
count: PropTypes__default
|
|
11890
|
-
isRefined: PropTypes__default
|
|
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
|
|
11891
11763
|
})),
|
|
11892
|
-
isFromSearch: PropTypes__default
|
|
11893
|
-
canRefine: PropTypes__default
|
|
11894
|
-
showMore: PropTypes__default
|
|
11895
|
-
limit: PropTypes__default
|
|
11896
|
-
showMoreLimit: PropTypes__default
|
|
11897
|
-
transformItems: PropTypes__default
|
|
11898
|
-
className: PropTypes__default
|
|
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
|
|
11899
11771
|
});
|
|
11900
11772
|
|
|
11901
|
-
_defineProperty(Menu, "defaultProps", {
|
|
11773
|
+
inherits$1$1._defineProperty(Menu, "defaultProps", {
|
|
11902
11774
|
className: ''
|
|
11903
11775
|
});
|
|
11904
11776
|
|
|
@@ -11964,7 +11836,7 @@ var Menu$1 = translatable({
|
|
|
11964
11836
|
*/
|
|
11965
11837
|
|
|
11966
11838
|
var MenuWidget = function MenuWidget(props) {
|
|
11967
|
-
return React__default
|
|
11839
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Menu$1, props));
|
|
11968
11840
|
};
|
|
11969
11841
|
|
|
11970
11842
|
connectMenu(MenuWidget);
|
|
@@ -11974,22 +11846,22 @@ var cx$b = createClassNames('MenuSelect');
|
|
|
11974
11846
|
var MenuSelect =
|
|
11975
11847
|
/*#__PURE__*/
|
|
11976
11848
|
function (_Component) {
|
|
11977
|
-
_inherits(MenuSelect, _Component);
|
|
11849
|
+
inherits$1$1._inherits(MenuSelect, _Component);
|
|
11978
11850
|
|
|
11979
11851
|
function MenuSelect() {
|
|
11980
11852
|
var _getPrototypeOf2;
|
|
11981
11853
|
|
|
11982
11854
|
var _this;
|
|
11983
11855
|
|
|
11984
|
-
_classCallCheck(this, MenuSelect);
|
|
11856
|
+
inherits$1$1._classCallCheck(this, MenuSelect);
|
|
11985
11857
|
|
|
11986
11858
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11987
11859
|
args[_key] = arguments[_key];
|
|
11988
11860
|
}
|
|
11989
11861
|
|
|
11990
|
-
_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)));
|
|
11991
11863
|
|
|
11992
|
-
_defineProperty(_assertThisInitialized(_this), "handleSelectChange", function (_ref) {
|
|
11864
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "handleSelectChange", function (_ref) {
|
|
11993
11865
|
var value = _ref.target.value;
|
|
11994
11866
|
|
|
11995
11867
|
_this.props.refine(value === 'ais__see__all__option' ? '' : value);
|
|
@@ -11998,7 +11870,7 @@ function (_Component) {
|
|
|
11998
11870
|
return _this;
|
|
11999
11871
|
}
|
|
12000
11872
|
|
|
12001
|
-
_createClass(MenuSelect, [{
|
|
11873
|
+
inherits$1$1._createClass(MenuSelect, [{
|
|
12002
11874
|
key: "render",
|
|
12003
11875
|
value: function render() {
|
|
12004
11876
|
var _this$props = this.props,
|
|
@@ -12006,17 +11878,17 @@ function (_Component) {
|
|
|
12006
11878
|
canRefine = _this$props.canRefine,
|
|
12007
11879
|
translate = _this$props.translate,
|
|
12008
11880
|
className = _this$props.className;
|
|
12009
|
-
return React__default
|
|
12010
|
-
className: index.classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
12011
|
-
}, React__default
|
|
11881
|
+
return React__default.createElement("div", {
|
|
11882
|
+
className: index$5.classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
11883
|
+
}, React__default.createElement("select", {
|
|
12012
11884
|
value: this.selectedValue,
|
|
12013
11885
|
onChange: this.handleSelectChange,
|
|
12014
11886
|
className: cx$b('select')
|
|
12015
|
-
}, React__default
|
|
11887
|
+
}, React__default.createElement("option", {
|
|
12016
11888
|
value: "ais__see__all__option",
|
|
12017
11889
|
className: cx$b('option')
|
|
12018
11890
|
}, translate('seeAllOption')), items.map(function (item) {
|
|
12019
|
-
return React__default
|
|
11891
|
+
return React__default.createElement("option", {
|
|
12020
11892
|
key: item.value,
|
|
12021
11893
|
value: item.value,
|
|
12022
11894
|
className: cx$b('option')
|
|
@@ -12040,20 +11912,20 @@ function (_Component) {
|
|
|
12040
11912
|
return MenuSelect;
|
|
12041
11913
|
}(React.Component);
|
|
12042
11914
|
|
|
12043
|
-
_defineProperty(MenuSelect, "propTypes", {
|
|
12044
|
-
items: PropTypes__default
|
|
12045
|
-
label: PropTypes__default
|
|
12046
|
-
value: PropTypes__default
|
|
12047
|
-
count: PropTypes__default
|
|
12048
|
-
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
|
|
12049
11921
|
})).isRequired,
|
|
12050
|
-
canRefine: PropTypes__default
|
|
12051
|
-
refine: PropTypes__default
|
|
12052
|
-
translate: PropTypes__default
|
|
12053
|
-
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
|
|
12054
11926
|
});
|
|
12055
11927
|
|
|
12056
|
-
_defineProperty(MenuSelect, "defaultProps", {
|
|
11928
|
+
inherits$1$1._defineProperty(MenuSelect, "defaultProps", {
|
|
12057
11929
|
className: ''
|
|
12058
11930
|
});
|
|
12059
11931
|
|
|
@@ -12098,7 +11970,7 @@ var MenuSelect$1 = translatable({
|
|
|
12098
11970
|
*/
|
|
12099
11971
|
|
|
12100
11972
|
var MenuSelectWidget = function MenuSelectWidget(props) {
|
|
12101
|
-
return React__default
|
|
11973
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(MenuSelect$1, props));
|
|
12102
11974
|
};
|
|
12103
11975
|
|
|
12104
11976
|
connectMenu(MenuSelectWidget);
|
|
@@ -12108,28 +11980,28 @@ var cx$c = createClassNames('NumericMenu');
|
|
|
12108
11980
|
var NumericMenu =
|
|
12109
11981
|
/*#__PURE__*/
|
|
12110
11982
|
function (_Component) {
|
|
12111
|
-
_inherits(NumericMenu, _Component);
|
|
11983
|
+
inherits$1$1._inherits(NumericMenu, _Component);
|
|
12112
11984
|
|
|
12113
11985
|
function NumericMenu() {
|
|
12114
11986
|
var _getPrototypeOf2;
|
|
12115
11987
|
|
|
12116
11988
|
var _this;
|
|
12117
11989
|
|
|
12118
|
-
_classCallCheck(this, NumericMenu);
|
|
11990
|
+
inherits$1$1._classCallCheck(this, NumericMenu);
|
|
12119
11991
|
|
|
12120
11992
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
12121
11993
|
args[_key] = arguments[_key];
|
|
12122
11994
|
}
|
|
12123
11995
|
|
|
12124
|
-
_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)));
|
|
12125
11997
|
|
|
12126
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item) {
|
|
11998
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "renderItem", function (item) {
|
|
12127
11999
|
var _this$props = _this.props,
|
|
12128
12000
|
refine = _this$props.refine,
|
|
12129
12001
|
translate = _this$props.translate;
|
|
12130
|
-
return React__default
|
|
12002
|
+
return React__default.createElement("label", {
|
|
12131
12003
|
className: cx$c('label')
|
|
12132
|
-
}, React__default
|
|
12004
|
+
}, React__default.createElement("input", {
|
|
12133
12005
|
className: cx$c('radio'),
|
|
12134
12006
|
type: "radio",
|
|
12135
12007
|
checked: item.isRefined,
|
|
@@ -12137,7 +12009,7 @@ function (_Component) {
|
|
|
12137
12009
|
onChange: function onChange() {
|
|
12138
12010
|
return refine(item.value);
|
|
12139
12011
|
}
|
|
12140
|
-
}), React__default
|
|
12012
|
+
}), React__default.createElement("span", {
|
|
12141
12013
|
className: cx$c('labelText')
|
|
12142
12014
|
}, item.value === '' ? translate('all') : item.label));
|
|
12143
12015
|
});
|
|
@@ -12145,14 +12017,14 @@ function (_Component) {
|
|
|
12145
12017
|
return _this;
|
|
12146
12018
|
}
|
|
12147
12019
|
|
|
12148
|
-
_createClass(NumericMenu, [{
|
|
12020
|
+
inherits$1$1._createClass(NumericMenu, [{
|
|
12149
12021
|
key: "render",
|
|
12150
12022
|
value: function render() {
|
|
12151
12023
|
var _this$props2 = this.props,
|
|
12152
12024
|
items = _this$props2.items,
|
|
12153
12025
|
canRefine = _this$props2.canRefine,
|
|
12154
12026
|
className = _this$props2.className;
|
|
12155
|
-
return React__default
|
|
12027
|
+
return React__default.createElement(List, {
|
|
12156
12028
|
renderItem: this.renderItem,
|
|
12157
12029
|
showMore: false,
|
|
12158
12030
|
canRefine: canRefine,
|
|
@@ -12170,20 +12042,20 @@ function (_Component) {
|
|
|
12170
12042
|
return NumericMenu;
|
|
12171
12043
|
}(React.Component);
|
|
12172
12044
|
|
|
12173
|
-
_defineProperty(NumericMenu, "propTypes", {
|
|
12174
|
-
items: PropTypes__default
|
|
12175
|
-
label: PropTypes__default
|
|
12176
|
-
value: PropTypes__default
|
|
12177
|
-
isRefined: PropTypes__default
|
|
12178
|
-
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
|
|
12179
12051
|
})).isRequired,
|
|
12180
|
-
canRefine: PropTypes__default
|
|
12181
|
-
refine: PropTypes__default
|
|
12182
|
-
translate: PropTypes__default
|
|
12183
|
-
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
|
|
12184
12056
|
});
|
|
12185
12057
|
|
|
12186
|
-
_defineProperty(NumericMenu, "defaultProps", {
|
|
12058
|
+
inherits$1$1._defineProperty(NumericMenu, "defaultProps", {
|
|
12187
12059
|
className: ''
|
|
12188
12060
|
});
|
|
12189
12061
|
|
|
@@ -12238,7 +12110,7 @@ var NumericMenu$1 = translatable({
|
|
|
12238
12110
|
*/
|
|
12239
12111
|
|
|
12240
12112
|
var NumericMenuWidget = function NumericMenuWidget(props) {
|
|
12241
|
-
return React__default
|
|
12113
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(NumericMenu$1, props));
|
|
12242
12114
|
};
|
|
12243
12115
|
|
|
12244
12116
|
connectNumericMenu(NumericMenuWidget);
|
|
@@ -12246,15 +12118,15 @@ connectNumericMenu(NumericMenuWidget);
|
|
|
12246
12118
|
var LinkList =
|
|
12247
12119
|
/*#__PURE__*/
|
|
12248
12120
|
function (_Component) {
|
|
12249
|
-
_inherits(LinkList, _Component);
|
|
12121
|
+
inherits$1$1._inherits(LinkList, _Component);
|
|
12250
12122
|
|
|
12251
12123
|
function LinkList() {
|
|
12252
|
-
_classCallCheck(this, LinkList);
|
|
12124
|
+
inherits$1$1._classCallCheck(this, LinkList);
|
|
12253
12125
|
|
|
12254
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(LinkList).apply(this, arguments));
|
|
12126
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(LinkList).apply(this, arguments));
|
|
12255
12127
|
}
|
|
12256
12128
|
|
|
12257
|
-
_createClass(LinkList, [{
|
|
12129
|
+
inherits$1$1._createClass(LinkList, [{
|
|
12258
12130
|
key: "render",
|
|
12259
12131
|
value: function render() {
|
|
12260
12132
|
var _this$props = this.props,
|
|
@@ -12263,15 +12135,15 @@ function (_Component) {
|
|
|
12263
12135
|
items = _this$props.items,
|
|
12264
12136
|
onSelect = _this$props.onSelect,
|
|
12265
12137
|
canRefine = _this$props.canRefine;
|
|
12266
|
-
return React__default
|
|
12138
|
+
return React__default.createElement("ul", {
|
|
12267
12139
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
12268
12140
|
}, items.map(function (item) {
|
|
12269
|
-
return React__default
|
|
12141
|
+
return React__default.createElement("li", {
|
|
12270
12142
|
key: item.key === undefined ? item.value : item.key,
|
|
12271
12143
|
className: cx('item', item.selected && !item.disabled && 'item--selected', item.disabled && 'item--disabled', item.modifier)
|
|
12272
|
-
}, item.disabled ? React__default
|
|
12144
|
+
}, item.disabled ? React__default.createElement("span", {
|
|
12273
12145
|
className: cx('link')
|
|
12274
|
-
}, item.label === undefined ? item.value : item.label) : React__default
|
|
12146
|
+
}, item.label === undefined ? item.value : item.label) : React__default.createElement(Link, {
|
|
12275
12147
|
className: cx('link', item.selected && 'link--selected'),
|
|
12276
12148
|
"aria-label": item.ariaLabel,
|
|
12277
12149
|
href: createURL(item.value),
|
|
@@ -12286,19 +12158,19 @@ function (_Component) {
|
|
|
12286
12158
|
return LinkList;
|
|
12287
12159
|
}(React.Component);
|
|
12288
12160
|
|
|
12289
|
-
_defineProperty(LinkList, "propTypes", {
|
|
12290
|
-
cx: PropTypes__default
|
|
12291
|
-
createURL: PropTypes__default
|
|
12292
|
-
items: PropTypes__default
|
|
12293
|
-
value: PropTypes__default
|
|
12294
|
-
key: PropTypes__default
|
|
12295
|
-
label: PropTypes__default
|
|
12296
|
-
modifier: PropTypes__default
|
|
12297
|
-
ariaLabel: PropTypes__default
|
|
12298
|
-
disabled: PropTypes__default
|
|
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
|
|
12299
12171
|
})),
|
|
12300
|
-
onSelect: PropTypes__default
|
|
12301
|
-
canRefine: PropTypes__default
|
|
12172
|
+
onSelect: PropTypes__default.func.isRequired,
|
|
12173
|
+
canRefine: PropTypes__default.bool.isRequired
|
|
12302
12174
|
});
|
|
12303
12175
|
|
|
12304
12176
|
var cx$d = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
|
|
@@ -12340,15 +12212,15 @@ function getPages(currentPage, maxPages, padding) {
|
|
|
12340
12212
|
var Pagination =
|
|
12341
12213
|
/*#__PURE__*/
|
|
12342
12214
|
function (_Component) {
|
|
12343
|
-
_inherits(Pagination, _Component);
|
|
12215
|
+
inherits$1$1._inherits(Pagination, _Component);
|
|
12344
12216
|
|
|
12345
12217
|
function Pagination() {
|
|
12346
|
-
_classCallCheck(this, Pagination);
|
|
12218
|
+
inherits$1$1._classCallCheck(this, Pagination);
|
|
12347
12219
|
|
|
12348
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Pagination).apply(this, arguments));
|
|
12220
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(Pagination).apply(this, arguments));
|
|
12349
12221
|
}
|
|
12350
12222
|
|
|
12351
|
-
_createClass(Pagination, [{
|
|
12223
|
+
inherits$1$1._createClass(Pagination, [{
|
|
12352
12224
|
key: "getItem",
|
|
12353
12225
|
value: function getItem(modifier, translationKey, value) {
|
|
12354
12226
|
var _this$props = this.props,
|
|
@@ -12443,9 +12315,9 @@ function (_Component) {
|
|
|
12443
12315
|
});
|
|
12444
12316
|
}
|
|
12445
12317
|
|
|
12446
|
-
return React__default
|
|
12447
|
-
className: index.classnames(cx$d('', !canRefine && '-noRefinement'), className)
|
|
12448
|
-
}, 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, {
|
|
12449
12321
|
cx: cx$d,
|
|
12450
12322
|
items: items,
|
|
12451
12323
|
onSelect: refine,
|
|
@@ -12458,24 +12330,24 @@ function (_Component) {
|
|
|
12458
12330
|
return Pagination;
|
|
12459
12331
|
}(React.Component);
|
|
12460
12332
|
|
|
12461
|
-
_defineProperty(Pagination, "propTypes", {
|
|
12462
|
-
nbPages: PropTypes__default
|
|
12463
|
-
currentRefinement: PropTypes__default
|
|
12464
|
-
refine: PropTypes__default
|
|
12465
|
-
createURL: PropTypes__default
|
|
12466
|
-
canRefine: PropTypes__default
|
|
12467
|
-
translate: PropTypes__default
|
|
12468
|
-
listComponent: PropTypes__default
|
|
12469
|
-
showFirst: PropTypes__default
|
|
12470
|
-
showPrevious: PropTypes__default
|
|
12471
|
-
showNext: PropTypes__default
|
|
12472
|
-
showLast: PropTypes__default
|
|
12473
|
-
padding: PropTypes__default
|
|
12474
|
-
totalPages: PropTypes__default
|
|
12475
|
-
className: PropTypes__default
|
|
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
|
|
12476
12348
|
});
|
|
12477
12349
|
|
|
12478
|
-
_defineProperty(Pagination, "defaultProps", {
|
|
12350
|
+
inherits$1$1._defineProperty(Pagination, "defaultProps", {
|
|
12479
12351
|
listComponent: LinkList,
|
|
12480
12352
|
showFirst: true,
|
|
12481
12353
|
showPrevious: true,
|
|
@@ -12558,7 +12430,7 @@ var Pagination$1 = translatable({
|
|
|
12558
12430
|
*/
|
|
12559
12431
|
|
|
12560
12432
|
var PaginationWidget = function PaginationWidget(props) {
|
|
12561
|
-
return React__default
|
|
12433
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$1, props));
|
|
12562
12434
|
};
|
|
12563
12435
|
|
|
12564
12436
|
var Pagination$2 = connectPagination(PaginationWidget);
|
|
@@ -12567,14 +12439,14 @@ var cx$e = createClassNames('PoweredBy');
|
|
|
12567
12439
|
/* eslint-disable max-len */
|
|
12568
12440
|
|
|
12569
12441
|
var AlgoliaLogo = function AlgoliaLogo() {
|
|
12570
|
-
return React__default
|
|
12442
|
+
return React__default.createElement("svg", {
|
|
12571
12443
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12572
12444
|
baseProfile: "basic",
|
|
12573
12445
|
viewBox: "0 0 1366 362",
|
|
12574
12446
|
width: "100",
|
|
12575
12447
|
height: "27",
|
|
12576
12448
|
className: cx$e('logo')
|
|
12577
|
-
}, React__default
|
|
12449
|
+
}, React__default.createElement("linearGradient", {
|
|
12578
12450
|
id: "g",
|
|
12579
12451
|
x1: "428.258",
|
|
12580
12452
|
x2: "434.145",
|
|
@@ -12582,19 +12454,19 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12582
12454
|
y2: "409.85",
|
|
12583
12455
|
gradientUnits: "userSpaceOnUse",
|
|
12584
12456
|
gradientTransform: "matrix(94.045 0 0 -94.072 -40381.527 38479.52)"
|
|
12585
|
-
}, React__default
|
|
12457
|
+
}, React__default.createElement("stop", {
|
|
12586
12458
|
offset: "0",
|
|
12587
12459
|
stopColor: "#00AEFF"
|
|
12588
|
-
}), React__default
|
|
12460
|
+
}), React__default.createElement("stop", {
|
|
12589
12461
|
offset: "1",
|
|
12590
12462
|
stopColor: "#3369E7"
|
|
12591
|
-
})), React__default
|
|
12463
|
+
})), React__default.createElement("path", {
|
|
12592
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",
|
|
12593
12465
|
fill: "url(#g)"
|
|
12594
|
-
}), React__default
|
|
12466
|
+
}), React__default.createElement("path", {
|
|
12595
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",
|
|
12596
12468
|
fill: "#FFFFFF"
|
|
12597
|
-
}), React__default
|
|
12469
|
+
}), React__default.createElement("path", {
|
|
12598
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",
|
|
12599
12471
|
fill: "#182359"
|
|
12600
12472
|
}));
|
|
@@ -12605,42 +12477,42 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12605
12477
|
var PoweredBy =
|
|
12606
12478
|
/*#__PURE__*/
|
|
12607
12479
|
function (_Component) {
|
|
12608
|
-
_inherits(PoweredBy, _Component);
|
|
12480
|
+
inherits$1$1._inherits(PoweredBy, _Component);
|
|
12609
12481
|
|
|
12610
12482
|
function PoweredBy() {
|
|
12611
|
-
_classCallCheck(this, PoweredBy);
|
|
12483
|
+
inherits$1$1._classCallCheck(this, PoweredBy);
|
|
12612
12484
|
|
|
12613
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(PoweredBy).apply(this, arguments));
|
|
12485
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(PoweredBy).apply(this, arguments));
|
|
12614
12486
|
}
|
|
12615
12487
|
|
|
12616
|
-
_createClass(PoweredBy, [{
|
|
12488
|
+
inherits$1$1._createClass(PoweredBy, [{
|
|
12617
12489
|
key: "render",
|
|
12618
12490
|
value: function render() {
|
|
12619
12491
|
var _this$props = this.props,
|
|
12620
12492
|
url = _this$props.url,
|
|
12621
12493
|
translate = _this$props.translate,
|
|
12622
12494
|
className = _this$props.className;
|
|
12623
|
-
return React__default
|
|
12624
|
-
className: index.classnames(cx$e(''), className)
|
|
12625
|
-
}, React__default
|
|
12495
|
+
return React__default.createElement("div", {
|
|
12496
|
+
className: index$5.classnames(cx$e(''), className)
|
|
12497
|
+
}, React__default.createElement("span", {
|
|
12626
12498
|
className: cx$e('text')
|
|
12627
|
-
}, translate('searchBy')), ' ', React__default
|
|
12499
|
+
}, translate('searchBy')), ' ', React__default.createElement("a", {
|
|
12628
12500
|
href: url,
|
|
12629
12501
|
target: "_blank",
|
|
12630
12502
|
className: cx$e('link'),
|
|
12631
12503
|
"aria-label": "Algolia",
|
|
12632
12504
|
rel: "noopener noreferrer"
|
|
12633
|
-
}, React__default
|
|
12505
|
+
}, React__default.createElement(AlgoliaLogo, null)));
|
|
12634
12506
|
}
|
|
12635
12507
|
}]);
|
|
12636
12508
|
|
|
12637
12509
|
return PoweredBy;
|
|
12638
12510
|
}(React.Component);
|
|
12639
12511
|
|
|
12640
|
-
_defineProperty(PoweredBy, "propTypes", {
|
|
12641
|
-
url: PropTypes__default
|
|
12642
|
-
translate: PropTypes__default
|
|
12643
|
-
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
|
|
12644
12516
|
});
|
|
12645
12517
|
|
|
12646
12518
|
var PoweredBy$1 = translatable({
|
|
@@ -12684,16 +12556,16 @@ var cx$f = createClassNames('RangeInput');
|
|
|
12684
12556
|
var RawRangeInput =
|
|
12685
12557
|
/*#__PURE__*/
|
|
12686
12558
|
function (_Component) {
|
|
12687
|
-
_inherits(RawRangeInput, _Component);
|
|
12559
|
+
inherits$1$1._inherits(RawRangeInput, _Component);
|
|
12688
12560
|
|
|
12689
12561
|
function RawRangeInput(props) {
|
|
12690
12562
|
var _this;
|
|
12691
12563
|
|
|
12692
|
-
_classCallCheck(this, RawRangeInput);
|
|
12564
|
+
inherits$1$1._classCallCheck(this, RawRangeInput);
|
|
12693
12565
|
|
|
12694
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(RawRangeInput).call(this, props));
|
|
12566
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(RawRangeInput).call(this, props));
|
|
12695
12567
|
|
|
12696
|
-
_defineProperty(_assertThisInitialized(_this), "onSubmit", function (e) {
|
|
12568
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onSubmit", function (e) {
|
|
12697
12569
|
e.preventDefault();
|
|
12698
12570
|
|
|
12699
12571
|
_this.props.refine({
|
|
@@ -12706,7 +12578,7 @@ function (_Component) {
|
|
|
12706
12578
|
return _this;
|
|
12707
12579
|
}
|
|
12708
12580
|
|
|
12709
|
-
_createClass(RawRangeInput, [{
|
|
12581
|
+
inherits$1$1._createClass(RawRangeInput, [{
|
|
12710
12582
|
key: "componentDidUpdate",
|
|
12711
12583
|
value: function componentDidUpdate(prevProps) {
|
|
12712
12584
|
if (this.props.canRefine && (prevProps.currentRefinement.min !== this.props.currentRefinement.min || prevProps.currentRefinement.max !== this.props.currentRefinement.max)) {
|
|
@@ -12759,12 +12631,12 @@ function (_Component) {
|
|
|
12759
12631
|
max = _this$normalizeRangeF.max;
|
|
12760
12632
|
|
|
12761
12633
|
var step = 1 / Math.pow(10, precision);
|
|
12762
|
-
return React__default
|
|
12763
|
-
className: index.classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12764
|
-
}, React__default
|
|
12634
|
+
return React__default.createElement("div", {
|
|
12635
|
+
className: index$5.classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12636
|
+
}, React__default.createElement("form", {
|
|
12765
12637
|
className: cx$f('form'),
|
|
12766
12638
|
onSubmit: this.onSubmit
|
|
12767
|
-
}, React__default
|
|
12639
|
+
}, React__default.createElement("input", {
|
|
12768
12640
|
className: cx$f('input', 'input--min'),
|
|
12769
12641
|
type: "number",
|
|
12770
12642
|
min: min,
|
|
@@ -12778,9 +12650,9 @@ function (_Component) {
|
|
|
12778
12650
|
from: e.currentTarget.value
|
|
12779
12651
|
});
|
|
12780
12652
|
}
|
|
12781
|
-
}), React__default
|
|
12653
|
+
}), React__default.createElement("span", {
|
|
12782
12654
|
className: cx$f('separator')
|
|
12783
|
-
}, translate('separator')), React__default
|
|
12655
|
+
}, translate('separator')), React__default.createElement("input", {
|
|
12784
12656
|
className: cx$f('input', 'input--max'),
|
|
12785
12657
|
type: "number",
|
|
12786
12658
|
min: min,
|
|
@@ -12794,7 +12666,7 @@ function (_Component) {
|
|
|
12794
12666
|
to: e.currentTarget.value
|
|
12795
12667
|
});
|
|
12796
12668
|
}
|
|
12797
|
-
}), React__default
|
|
12669
|
+
}), React__default.createElement("button", {
|
|
12798
12670
|
className: cx$f('submit'),
|
|
12799
12671
|
type: "submit"
|
|
12800
12672
|
}, translate('submit'))));
|
|
@@ -12804,21 +12676,21 @@ function (_Component) {
|
|
|
12804
12676
|
return RawRangeInput;
|
|
12805
12677
|
}(React.Component);
|
|
12806
12678
|
|
|
12807
|
-
_defineProperty(RawRangeInput, "propTypes", {
|
|
12808
|
-
canRefine: PropTypes__default
|
|
12809
|
-
precision: PropTypes__default
|
|
12810
|
-
translate: PropTypes__default
|
|
12811
|
-
refine: PropTypes__default
|
|
12812
|
-
min: PropTypes__default
|
|
12813
|
-
max: PropTypes__default
|
|
12814
|
-
currentRefinement: PropTypes__default
|
|
12815
|
-
min: PropTypes__default
|
|
12816
|
-
max: PropTypes__default
|
|
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
|
|
12817
12689
|
}),
|
|
12818
|
-
className: PropTypes__default
|
|
12690
|
+
className: PropTypes__default.string
|
|
12819
12691
|
});
|
|
12820
12692
|
|
|
12821
|
-
_defineProperty(RawRangeInput, "defaultProps", {
|
|
12693
|
+
inherits$1$1._defineProperty(RawRangeInput, "defaultProps", {
|
|
12822
12694
|
currentRefinement: {},
|
|
12823
12695
|
className: ''
|
|
12824
12696
|
});
|
|
@@ -12871,7 +12743,7 @@ var RangeInput = translatable({
|
|
|
12871
12743
|
*/
|
|
12872
12744
|
|
|
12873
12745
|
var RangeInputWidget = function RangeInputWidget(props) {
|
|
12874
|
-
return React__default
|
|
12746
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RangeInput, props));
|
|
12875
12747
|
};
|
|
12876
12748
|
|
|
12877
12749
|
connectRange(RangeInputWidget);
|
|
@@ -12881,15 +12753,15 @@ var cx$g = createClassNames('RatingMenu');
|
|
|
12881
12753
|
var RatingMenu =
|
|
12882
12754
|
/*#__PURE__*/
|
|
12883
12755
|
function (_Component) {
|
|
12884
|
-
_inherits(RatingMenu, _Component);
|
|
12756
|
+
inherits$1$1._inherits(RatingMenu, _Component);
|
|
12885
12757
|
|
|
12886
12758
|
function RatingMenu() {
|
|
12887
|
-
_classCallCheck(this, RatingMenu);
|
|
12759
|
+
inherits$1$1._classCallCheck(this, RatingMenu);
|
|
12888
12760
|
|
|
12889
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(RatingMenu).apply(this, arguments));
|
|
12761
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(RatingMenu).apply(this, arguments));
|
|
12890
12762
|
}
|
|
12891
12763
|
|
|
12892
|
-
_createClass(RatingMenu, [{
|
|
12764
|
+
inherits$1$1._createClass(RatingMenu, [{
|
|
12893
12765
|
key: "onClick",
|
|
12894
12766
|
value: function onClick(min, max, e) {
|
|
12895
12767
|
e.preventDefault();
|
|
@@ -12927,13 +12799,13 @@ function (_Component) {
|
|
|
12927
12799
|
rating++;
|
|
12928
12800
|
}
|
|
12929
12801
|
|
|
12930
|
-
icons.push([React__default
|
|
12802
|
+
icons.push([React__default.createElement("svg", {
|
|
12931
12803
|
key: icon,
|
|
12932
12804
|
className: cx$g('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
|
|
12933
12805
|
"aria-hidden": "true",
|
|
12934
12806
|
width: "24",
|
|
12935
12807
|
height: "24"
|
|
12936
|
-
}, React__default
|
|
12808
|
+
}, React__default.createElement("use", {
|
|
12937
12809
|
xlinkHref: "#".concat(cx$g(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
|
|
12938
12810
|
})), ' ']);
|
|
12939
12811
|
} // The last item of the list (the default item), should not
|
|
@@ -12948,16 +12820,16 @@ function (_Component) {
|
|
|
12948
12820
|
}),
|
|
12949
12821
|
onClick: this.onClick.bind(this, lowerBound, max)
|
|
12950
12822
|
};
|
|
12951
|
-
return React__default
|
|
12823
|
+
return React__default.createElement("li", {
|
|
12952
12824
|
key: lowerBound,
|
|
12953
12825
|
className: cx$g('item', selected && 'item--selected', disabled && 'item--disabled')
|
|
12954
|
-
}, React__default
|
|
12826
|
+
}, React__default.createElement("a", index$5._extends({
|
|
12955
12827
|
className: cx$g('link'),
|
|
12956
12828
|
"aria-label": "".concat(rating).concat(translate('ratingLabel'))
|
|
12957
|
-
}, onClickHandler), icons, React__default
|
|
12829
|
+
}, onClickHandler), icons, React__default.createElement("span", {
|
|
12958
12830
|
className: cx$g('label'),
|
|
12959
12831
|
"aria-hidden": "true"
|
|
12960
|
-
}, translate('ratingLabel')), ' ', React__default
|
|
12832
|
+
}, translate('ratingLabel')), ' ', React__default.createElement("span", {
|
|
12961
12833
|
className: cx$g('count')
|
|
12962
12834
|
}, count)));
|
|
12963
12835
|
}
|
|
@@ -13013,24 +12885,24 @@ function (_Component) {
|
|
|
13013
12885
|
createURL: createURL
|
|
13014
12886
|
});
|
|
13015
12887
|
});
|
|
13016
|
-
return React__default
|
|
13017
|
-
className: index.classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
13018
|
-
}, React__default
|
|
12888
|
+
return React__default.createElement("div", {
|
|
12889
|
+
className: index$5.classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
12890
|
+
}, React__default.createElement("svg", {
|
|
13019
12891
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13020
12892
|
style: {
|
|
13021
12893
|
display: 'none'
|
|
13022
12894
|
}
|
|
13023
|
-
}, React__default
|
|
12895
|
+
}, React__default.createElement("symbol", {
|
|
13024
12896
|
id: cx$g('starSymbol'),
|
|
13025
12897
|
viewBox: "0 0 24 24"
|
|
13026
|
-
}, React__default
|
|
12898
|
+
}, React__default.createElement("path", {
|
|
13027
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"
|
|
13028
|
-
})), React__default
|
|
12900
|
+
})), React__default.createElement("symbol", {
|
|
13029
12901
|
id: cx$g('starEmptySymbol'),
|
|
13030
12902
|
viewBox: "0 0 24 24"
|
|
13031
|
-
}, React__default
|
|
12903
|
+
}, React__default.createElement("path", {
|
|
13032
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"
|
|
13033
|
-
}))), React__default
|
|
12905
|
+
}))), React__default.createElement("ul", {
|
|
13034
12906
|
className: cx$g('list', !canRefine && 'list--noRefinement')
|
|
13035
12907
|
}, items));
|
|
13036
12908
|
}
|
|
@@ -13039,25 +12911,25 @@ function (_Component) {
|
|
|
13039
12911
|
return RatingMenu;
|
|
13040
12912
|
}(React.Component);
|
|
13041
12913
|
|
|
13042
|
-
_defineProperty(RatingMenu, "propTypes", {
|
|
13043
|
-
translate: PropTypes__default
|
|
13044
|
-
refine: PropTypes__default
|
|
13045
|
-
createURL: PropTypes__default
|
|
13046
|
-
min: PropTypes__default
|
|
13047
|
-
max: PropTypes__default
|
|
13048
|
-
currentRefinement: PropTypes__default
|
|
13049
|
-
min: PropTypes__default
|
|
13050
|
-
max: PropTypes__default
|
|
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
|
|
13051
12923
|
}),
|
|
13052
|
-
count: PropTypes__default
|
|
13053
|
-
value: PropTypes__default
|
|
13054
|
-
count: PropTypes__default
|
|
12924
|
+
count: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12925
|
+
value: PropTypes__default.string,
|
|
12926
|
+
count: PropTypes__default.number
|
|
13055
12927
|
})),
|
|
13056
|
-
canRefine: PropTypes__default
|
|
13057
|
-
className: PropTypes__default
|
|
12928
|
+
canRefine: PropTypes__default.bool.isRequired,
|
|
12929
|
+
className: PropTypes__default.string
|
|
13058
12930
|
});
|
|
13059
12931
|
|
|
13060
|
-
_defineProperty(RatingMenu, "defaultProps", {
|
|
12932
|
+
inherits$1$1._defineProperty(RatingMenu, "defaultProps", {
|
|
13061
12933
|
className: ''
|
|
13062
12934
|
});
|
|
13063
12935
|
|
|
@@ -13114,7 +12986,7 @@ var RatingMenu$1 = translatable({
|
|
|
13114
12986
|
*/
|
|
13115
12987
|
|
|
13116
12988
|
var RatingMenuWidget = function RatingMenuWidget(props) {
|
|
13117
|
-
return React__default
|
|
12989
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RatingMenu$1, props));
|
|
13118
12990
|
};
|
|
13119
12991
|
|
|
13120
12992
|
connectRange(RatingMenuWidget);
|
|
@@ -13124,48 +12996,48 @@ var cx$h = createClassNames('RefinementList');
|
|
|
13124
12996
|
var RefinementList$1 =
|
|
13125
12997
|
/*#__PURE__*/
|
|
13126
12998
|
function (_Component) {
|
|
13127
|
-
_inherits(RefinementList, _Component);
|
|
12999
|
+
inherits$1$1._inherits(RefinementList, _Component);
|
|
13128
13000
|
|
|
13129
13001
|
function RefinementList() {
|
|
13130
13002
|
var _getPrototypeOf2;
|
|
13131
13003
|
|
|
13132
13004
|
var _this;
|
|
13133
13005
|
|
|
13134
|
-
_classCallCheck(this, RefinementList);
|
|
13006
|
+
inherits$1$1._classCallCheck(this, RefinementList);
|
|
13135
13007
|
|
|
13136
13008
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13137
13009
|
args[_key] = arguments[_key];
|
|
13138
13010
|
}
|
|
13139
13011
|
|
|
13140
|
-
_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)));
|
|
13141
13013
|
|
|
13142
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
13014
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "state", {
|
|
13143
13015
|
query: ''
|
|
13144
13016
|
});
|
|
13145
13017
|
|
|
13146
|
-
_defineProperty(_assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
13018
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
13147
13019
|
resetQuery();
|
|
13148
13020
|
|
|
13149
13021
|
_this.props.refine(item.value);
|
|
13150
13022
|
});
|
|
13151
13023
|
|
|
13152
|
-
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13153
|
-
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, {
|
|
13154
13026
|
attribute: "label",
|
|
13155
13027
|
hit: item
|
|
13156
13028
|
}) : item.label;
|
|
13157
|
-
return React__default
|
|
13029
|
+
return React__default.createElement("label", {
|
|
13158
13030
|
className: cx$h('label')
|
|
13159
|
-
}, React__default
|
|
13031
|
+
}, React__default.createElement("input", {
|
|
13160
13032
|
className: cx$h('checkbox'),
|
|
13161
13033
|
type: "checkbox",
|
|
13162
13034
|
checked: item.isRefined,
|
|
13163
13035
|
onChange: function onChange() {
|
|
13164
13036
|
return _this.selectItem(item, resetQuery);
|
|
13165
13037
|
}
|
|
13166
|
-
}), React__default
|
|
13038
|
+
}), React__default.createElement("span", {
|
|
13167
13039
|
className: cx$h('labelText')
|
|
13168
|
-
}, label), ' ', React__default
|
|
13040
|
+
}, label), ' ', React__default.createElement("span", {
|
|
13169
13041
|
className: cx$h('count')
|
|
13170
13042
|
}, item.count.toLocaleString()));
|
|
13171
13043
|
});
|
|
@@ -13173,7 +13045,7 @@ function (_Component) {
|
|
|
13173
13045
|
return _this;
|
|
13174
13046
|
}
|
|
13175
13047
|
|
|
13176
|
-
_createClass(RefinementList, [{
|
|
13048
|
+
inherits$1$1._createClass(RefinementList, [{
|
|
13177
13049
|
key: "render",
|
|
13178
13050
|
value: function render() {
|
|
13179
13051
|
var _this$props = this.props,
|
|
@@ -13187,7 +13059,7 @@ function (_Component) {
|
|
|
13187
13059
|
searchable = _this$props.searchable,
|
|
13188
13060
|
canRefine = _this$props.canRefine,
|
|
13189
13061
|
className = _this$props.className;
|
|
13190
|
-
return React__default
|
|
13062
|
+
return React__default.createElement(List, {
|
|
13191
13063
|
renderItem: this.renderItem,
|
|
13192
13064
|
selectItem: this.selectItem,
|
|
13193
13065
|
cx: cx$h,
|
|
@@ -13209,28 +13081,28 @@ function (_Component) {
|
|
|
13209
13081
|
return RefinementList;
|
|
13210
13082
|
}(React.Component);
|
|
13211
13083
|
|
|
13212
|
-
_defineProperty(RefinementList$1, "propTypes", {
|
|
13213
|
-
translate: PropTypes__default
|
|
13214
|
-
refine: PropTypes__default
|
|
13215
|
-
searchForItems: PropTypes__default
|
|
13216
|
-
searchable: PropTypes__default
|
|
13217
|
-
createURL: PropTypes__default
|
|
13218
|
-
items: PropTypes__default
|
|
13219
|
-
label: PropTypes__default
|
|
13220
|
-
value: PropTypes__default
|
|
13221
|
-
count: PropTypes__default
|
|
13222
|
-
isRefined: PropTypes__default
|
|
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
|
|
13223
13095
|
})),
|
|
13224
|
-
isFromSearch: PropTypes__default
|
|
13225
|
-
canRefine: PropTypes__default
|
|
13226
|
-
showMore: PropTypes__default
|
|
13227
|
-
limit: PropTypes__default
|
|
13228
|
-
showMoreLimit: PropTypes__default
|
|
13229
|
-
transformItems: PropTypes__default
|
|
13230
|
-
className: PropTypes__default
|
|
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
|
|
13231
13103
|
});
|
|
13232
13104
|
|
|
13233
|
-
_defineProperty(RefinementList$1, "defaultProps", {
|
|
13105
|
+
inherits$1$1._defineProperty(RefinementList$1, "defaultProps", {
|
|
13234
13106
|
className: ''
|
|
13235
13107
|
});
|
|
13236
13108
|
|
|
@@ -13299,7 +13171,7 @@ var RefinementList$2 = translatable({
|
|
|
13299
13171
|
*/
|
|
13300
13172
|
|
|
13301
13173
|
var RefinementListWidget = function RefinementListWidget(props) {
|
|
13302
|
-
return React__default
|
|
13174
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RefinementList$2, props));
|
|
13303
13175
|
};
|
|
13304
13176
|
|
|
13305
13177
|
var RefinementList$3 = connectRefinementList(RefinementListWidget);
|
|
@@ -13309,15 +13181,15 @@ var cx$i = createClassNames('ScrollTo');
|
|
|
13309
13181
|
var ScrollTo =
|
|
13310
13182
|
/*#__PURE__*/
|
|
13311
13183
|
function (_Component) {
|
|
13312
|
-
_inherits(ScrollTo, _Component);
|
|
13184
|
+
inherits$1$1._inherits(ScrollTo, _Component);
|
|
13313
13185
|
|
|
13314
13186
|
function ScrollTo() {
|
|
13315
|
-
_classCallCheck(this, ScrollTo);
|
|
13187
|
+
inherits$1$1._classCallCheck(this, ScrollTo);
|
|
13316
13188
|
|
|
13317
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(ScrollTo).apply(this, arguments));
|
|
13189
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(ScrollTo).apply(this, arguments));
|
|
13318
13190
|
}
|
|
13319
13191
|
|
|
13320
|
-
_createClass(ScrollTo, [{
|
|
13192
|
+
inherits$1$1._createClass(ScrollTo, [{
|
|
13321
13193
|
key: "componentDidUpdate",
|
|
13322
13194
|
value: function componentDidUpdate(prevProps) {
|
|
13323
13195
|
var _this$props = this.props,
|
|
@@ -13333,7 +13205,7 @@ function (_Component) {
|
|
|
13333
13205
|
value: function render() {
|
|
13334
13206
|
var _this = this;
|
|
13335
13207
|
|
|
13336
|
-
return React__default
|
|
13208
|
+
return React__default.createElement("div", {
|
|
13337
13209
|
ref: function ref(_ref) {
|
|
13338
13210
|
return _this.el = _ref;
|
|
13339
13211
|
},
|
|
@@ -13345,10 +13217,10 @@ function (_Component) {
|
|
|
13345
13217
|
return ScrollTo;
|
|
13346
13218
|
}(React.Component);
|
|
13347
13219
|
|
|
13348
|
-
_defineProperty(ScrollTo, "propTypes", {
|
|
13349
|
-
value: PropTypes__default
|
|
13350
|
-
children: PropTypes__default
|
|
13351
|
-
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
|
|
13352
13224
|
});
|
|
13353
13225
|
|
|
13354
13226
|
/**
|
|
@@ -13436,7 +13308,7 @@ var SearchBox$2 = connectSearchBox(SearchBox$1);
|
|
|
13436
13308
|
var cx$j = createClassNames('Snippet');
|
|
13437
13309
|
|
|
13438
13310
|
var Snippet = function Snippet(props) {
|
|
13439
|
-
return React__default
|
|
13311
|
+
return React__default.createElement(Highlighter, index$5._extends({}, props, {
|
|
13440
13312
|
highlightProperty: "_snippetResult",
|
|
13441
13313
|
cx: cx$j
|
|
13442
13314
|
}));
|
|
@@ -13492,7 +13364,7 @@ var cx$k = createClassNames('RelevantSort');
|
|
|
13492
13364
|
|
|
13493
13365
|
var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
|
|
13494
13366
|
var isRelevantSorted = _ref.isRelevantSorted;
|
|
13495
|
-
return React__default
|
|
13367
|
+
return React__default.createElement("span", null, isRelevantSorted ? 'See all results' : 'See relevant results');
|
|
13496
13368
|
};
|
|
13497
13369
|
|
|
13498
13370
|
var RelevantSort = function RelevantSort(_ref2) {
|
|
@@ -13504,29 +13376,29 @@ var RelevantSort = function RelevantSort(_ref2) {
|
|
|
13504
13376
|
ButtonTextComponent = _ref2$buttonTextCompo === void 0 ? DefaultButtonTextComponent : _ref2$buttonTextCompo,
|
|
13505
13377
|
TextComponent = _ref2.textComponent,
|
|
13506
13378
|
refine = _ref2.refine;
|
|
13507
|
-
return !isVirtualReplica ? null : React__default
|
|
13508
|
-
className: index.classnames(cx$k(''), className)
|
|
13509
|
-
}, React__default
|
|
13379
|
+
return !isVirtualReplica ? null : React__default.createElement("div", {
|
|
13380
|
+
className: index$5.classnames(cx$k(''), className)
|
|
13381
|
+
}, React__default.createElement("div", {
|
|
13510
13382
|
className: cx$k('text')
|
|
13511
|
-
}, TextComponent && React__default
|
|
13383
|
+
}, TextComponent && React__default.createElement(TextComponent, {
|
|
13512
13384
|
isRelevantSorted: isRelevantSorted
|
|
13513
|
-
})), React__default
|
|
13385
|
+
})), React__default.createElement("button", {
|
|
13514
13386
|
className: cx$k('button'),
|
|
13515
13387
|
onClick: function onClick() {
|
|
13516
13388
|
return refine(isRelevantSorted ? 0 : undefined);
|
|
13517
13389
|
}
|
|
13518
|
-
}, React__default
|
|
13390
|
+
}, React__default.createElement(ButtonTextComponent, {
|
|
13519
13391
|
isRelevantSorted: isRelevantSorted
|
|
13520
13392
|
})));
|
|
13521
13393
|
};
|
|
13522
13394
|
|
|
13523
13395
|
RelevantSort.propTypes = {
|
|
13524
|
-
buttonTextComponent: PropTypes__default
|
|
13525
|
-
className: PropTypes__default
|
|
13526
|
-
isVirtualReplica: PropTypes__default
|
|
13527
|
-
isRelevantSorted: PropTypes__default
|
|
13528
|
-
refine: PropTypes__default
|
|
13529
|
-
textComponent: PropTypes__default
|
|
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
|
|
13530
13402
|
};
|
|
13531
13403
|
|
|
13532
13404
|
connectRelevantSort(RelevantSort);
|
|
@@ -13536,15 +13408,15 @@ var cx$l = createClassNames('SortBy');
|
|
|
13536
13408
|
var SortBy =
|
|
13537
13409
|
/*#__PURE__*/
|
|
13538
13410
|
function (_Component) {
|
|
13539
|
-
_inherits(SortBy, _Component);
|
|
13411
|
+
inherits$1$1._inherits(SortBy, _Component);
|
|
13540
13412
|
|
|
13541
13413
|
function SortBy() {
|
|
13542
|
-
_classCallCheck(this, SortBy);
|
|
13414
|
+
inherits$1$1._classCallCheck(this, SortBy);
|
|
13543
13415
|
|
|
13544
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(SortBy).apply(this, arguments));
|
|
13416
|
+
return inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(SortBy).apply(this, arguments));
|
|
13545
13417
|
}
|
|
13546
13418
|
|
|
13547
|
-
_createClass(SortBy, [{
|
|
13419
|
+
inherits$1$1._createClass(SortBy, [{
|
|
13548
13420
|
key: "render",
|
|
13549
13421
|
value: function render() {
|
|
13550
13422
|
var _this$props = this.props,
|
|
@@ -13552,9 +13424,9 @@ function (_Component) {
|
|
|
13552
13424
|
currentRefinement = _this$props.currentRefinement,
|
|
13553
13425
|
refine = _this$props.refine,
|
|
13554
13426
|
className = _this$props.className;
|
|
13555
|
-
return React__default
|
|
13556
|
-
className: index.classnames(cx$l(''), className)
|
|
13557
|
-
}, React__default
|
|
13427
|
+
return React__default.createElement("div", {
|
|
13428
|
+
className: index$5.classnames(cx$l(''), className)
|
|
13429
|
+
}, React__default.createElement(Select, {
|
|
13558
13430
|
cx: cx$l,
|
|
13559
13431
|
items: items,
|
|
13560
13432
|
selectedItem: currentRefinement,
|
|
@@ -13566,17 +13438,17 @@ function (_Component) {
|
|
|
13566
13438
|
return SortBy;
|
|
13567
13439
|
}(React.Component);
|
|
13568
13440
|
|
|
13569
|
-
_defineProperty(SortBy, "propTypes", {
|
|
13570
|
-
items: PropTypes__default
|
|
13571
|
-
label: PropTypes__default
|
|
13572
|
-
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
|
|
13573
13445
|
})).isRequired,
|
|
13574
|
-
currentRefinement: PropTypes__default
|
|
13575
|
-
refine: PropTypes__default
|
|
13576
|
-
className: PropTypes__default
|
|
13446
|
+
currentRefinement: PropTypes__default.string.isRequired,
|
|
13447
|
+
refine: PropTypes__default.func.isRequired,
|
|
13448
|
+
className: PropTypes__default.string
|
|
13577
13449
|
});
|
|
13578
13450
|
|
|
13579
|
-
_defineProperty(SortBy, "defaultProps", {
|
|
13451
|
+
inherits$1$1._defineProperty(SortBy, "defaultProps", {
|
|
13580
13452
|
className: ''
|
|
13581
13453
|
});
|
|
13582
13454
|
|
|
@@ -13631,20 +13503,20 @@ var Stats = function Stats(_ref) {
|
|
|
13631
13503
|
nbSortedHits = _ref.nbSortedHits,
|
|
13632
13504
|
processingTimeMS = _ref.processingTimeMS,
|
|
13633
13505
|
translate = _ref.translate;
|
|
13634
|
-
return React__default
|
|
13635
|
-
className: index.classnames(cx$m(''), className)
|
|
13636
|
-
}, React__default
|
|
13506
|
+
return React__default.createElement("div", {
|
|
13507
|
+
className: index$5.classnames(cx$m(''), className)
|
|
13508
|
+
}, React__default.createElement("span", {
|
|
13637
13509
|
className: cx$m('text')
|
|
13638
13510
|
}, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
|
|
13639
13511
|
};
|
|
13640
13512
|
|
|
13641
13513
|
Stats.propTypes = {
|
|
13642
|
-
className: PropTypes__default
|
|
13643
|
-
areHitsSorted: PropTypes__default
|
|
13644
|
-
nbHits: PropTypes__default
|
|
13645
|
-
nbSortedHits: PropTypes__default
|
|
13646
|
-
processingTimeMS: PropTypes__default
|
|
13647
|
-
translate: PropTypes__default
|
|
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
|
|
13648
13520
|
};
|
|
13649
13521
|
var Stats$1 = translatable({
|
|
13650
13522
|
stats: function stats(n, ms, nSorted, areHitsSorted) {
|
|
@@ -13690,28 +13562,28 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
|
13690
13562
|
canRefine = _ref.canRefine,
|
|
13691
13563
|
refine = _ref.refine,
|
|
13692
13564
|
className = _ref.className;
|
|
13693
|
-
return React__default
|
|
13694
|
-
className: index.classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13695
|
-
}, React__default
|
|
13565
|
+
return React__default.createElement("div", {
|
|
13566
|
+
className: index$5.classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13567
|
+
}, React__default.createElement("label", {
|
|
13696
13568
|
className: cx$n('label')
|
|
13697
|
-
}, React__default
|
|
13569
|
+
}, React__default.createElement("input", {
|
|
13698
13570
|
className: cx$n('checkbox'),
|
|
13699
13571
|
type: "checkbox",
|
|
13700
13572
|
checked: currentRefinement,
|
|
13701
13573
|
onChange: function onChange(event) {
|
|
13702
13574
|
return refine(event.target.checked);
|
|
13703
13575
|
}
|
|
13704
|
-
}), React__default
|
|
13576
|
+
}), React__default.createElement("span", {
|
|
13705
13577
|
className: cx$n('labelText')
|
|
13706
13578
|
}, label)));
|
|
13707
13579
|
};
|
|
13708
13580
|
|
|
13709
13581
|
ToggleRefinement.propTypes = {
|
|
13710
|
-
currentRefinement: PropTypes__default
|
|
13711
|
-
label: PropTypes__default
|
|
13712
|
-
canRefine: PropTypes__default
|
|
13713
|
-
refine: PropTypes__default
|
|
13714
|
-
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
|
|
13715
13587
|
};
|
|
13716
13588
|
ToggleRefinement.defaultProps = {
|
|
13717
13589
|
className: ''
|
|
@@ -13915,7 +13787,7 @@ var cx$o = createClassNames('VoiceSearch');
|
|
|
13915
13787
|
|
|
13916
13788
|
var ButtonSvg = function ButtonSvg(_ref) {
|
|
13917
13789
|
var children = _ref.children;
|
|
13918
|
-
return React__default
|
|
13790
|
+
return React__default.createElement("svg", {
|
|
13919
13791
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13920
13792
|
width: "16",
|
|
13921
13793
|
height: "16",
|
|
@@ -13932,36 +13804,36 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13932
13804
|
var status = _ref2.status,
|
|
13933
13805
|
errorCode = _ref2.errorCode,
|
|
13934
13806
|
isListening = _ref2.isListening;
|
|
13935
|
-
return status === 'error' && errorCode === 'not-allowed' ? React__default
|
|
13807
|
+
return status === 'error' && errorCode === 'not-allowed' ? React__default.createElement(ButtonSvg, null, React__default.createElement("line", {
|
|
13936
13808
|
x1: "1",
|
|
13937
13809
|
y1: "1",
|
|
13938
13810
|
x2: "23",
|
|
13939
13811
|
y2: "23"
|
|
13940
|
-
}), React__default
|
|
13812
|
+
}), React__default.createElement("path", {
|
|
13941
13813
|
d: "M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"
|
|
13942
|
-
}), React__default
|
|
13814
|
+
}), React__default.createElement("path", {
|
|
13943
13815
|
d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"
|
|
13944
|
-
}), React__default
|
|
13816
|
+
}), React__default.createElement("line", {
|
|
13945
13817
|
x1: "12",
|
|
13946
13818
|
y1: "19",
|
|
13947
13819
|
x2: "12",
|
|
13948
13820
|
y2: "23"
|
|
13949
|
-
}), React__default
|
|
13821
|
+
}), React__default.createElement("line", {
|
|
13950
13822
|
x1: "8",
|
|
13951
13823
|
y1: "23",
|
|
13952
13824
|
x2: "16",
|
|
13953
13825
|
y2: "23"
|
|
13954
|
-
})) : React__default
|
|
13826
|
+
})) : React__default.createElement(ButtonSvg, null, React__default.createElement("path", {
|
|
13955
13827
|
d: "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",
|
|
13956
13828
|
fill: isListening ? 'currentColor' : ''
|
|
13957
|
-
}), React__default
|
|
13829
|
+
}), React__default.createElement("path", {
|
|
13958
13830
|
d: "M19 10v2a7 7 0 0 1-14 0v-2"
|
|
13959
|
-
}), React__default
|
|
13831
|
+
}), React__default.createElement("line", {
|
|
13960
13832
|
x1: "12",
|
|
13961
13833
|
y1: "19",
|
|
13962
13834
|
x2: "12",
|
|
13963
13835
|
y2: "23"
|
|
13964
|
-
}), React__default
|
|
13836
|
+
}), React__default.createElement("line", {
|
|
13965
13837
|
x1: "8",
|
|
13966
13838
|
y1: "23",
|
|
13967
13839
|
x2: "16",
|
|
@@ -13971,30 +13843,30 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13971
13843
|
|
|
13972
13844
|
var DefaultStatus = function DefaultStatus(_ref3) {
|
|
13973
13845
|
var transcript = _ref3.transcript;
|
|
13974
|
-
return React__default
|
|
13846
|
+
return React__default.createElement("p", null, transcript);
|
|
13975
13847
|
};
|
|
13976
13848
|
|
|
13977
13849
|
var VoiceSearch =
|
|
13978
13850
|
/*#__PURE__*/
|
|
13979
13851
|
function (_Component) {
|
|
13980
|
-
_inherits(VoiceSearch, _Component);
|
|
13852
|
+
inherits$1$1._inherits(VoiceSearch, _Component);
|
|
13981
13853
|
|
|
13982
13854
|
function VoiceSearch() {
|
|
13983
13855
|
var _getPrototypeOf2;
|
|
13984
13856
|
|
|
13985
13857
|
var _this;
|
|
13986
13858
|
|
|
13987
|
-
_classCallCheck(this, VoiceSearch);
|
|
13859
|
+
inherits$1$1._classCallCheck(this, VoiceSearch);
|
|
13988
13860
|
|
|
13989
13861
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13990
13862
|
args[_key] = arguments[_key];
|
|
13991
13863
|
}
|
|
13992
13864
|
|
|
13993
|
-
_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)));
|
|
13994
13866
|
|
|
13995
|
-
_defineProperty(_assertThisInitialized(_this), "voiceSearchHelper", void 0);
|
|
13867
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "voiceSearchHelper", void 0);
|
|
13996
13868
|
|
|
13997
|
-
_defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
|
|
13869
|
+
inherits$1$1._defineProperty(inherits$1$1._assertThisInitialized(_this), "onClick", function (event) {
|
|
13998
13870
|
if (!_this.voiceSearchHelper) {
|
|
13999
13871
|
return;
|
|
14000
13872
|
}
|
|
@@ -14007,7 +13879,7 @@ function (_Component) {
|
|
|
14007
13879
|
return _this;
|
|
14008
13880
|
}
|
|
14009
13881
|
|
|
14010
|
-
_createClass(VoiceSearch, [{
|
|
13882
|
+
inherits$1$1._createClass(VoiceSearch, [{
|
|
14011
13883
|
key: "componentDidMount",
|
|
14012
13884
|
value: function componentDidMount() {
|
|
14013
13885
|
var _this2 = this;
|
|
@@ -14056,17 +13928,17 @@ function (_Component) {
|
|
|
14056
13928
|
isSpeechFinal: isSpeechFinal,
|
|
14057
13929
|
isBrowserSupported: isBrowserSupported()
|
|
14058
13930
|
};
|
|
14059
|
-
return React__default
|
|
13931
|
+
return React__default.createElement("div", {
|
|
14060
13932
|
className: cx$o('')
|
|
14061
|
-
}, React__default
|
|
13933
|
+
}, React__default.createElement("button", {
|
|
14062
13934
|
className: cx$o('button'),
|
|
14063
13935
|
type: "button",
|
|
14064
13936
|
title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
|
|
14065
13937
|
onClick: this.onClick,
|
|
14066
13938
|
disabled: !isBrowserSupported()
|
|
14067
|
-
}, React__default
|
|
13939
|
+
}, React__default.createElement(ButtonTextComponent, innerProps)), React__default.createElement("div", {
|
|
14068
13940
|
className: cx$o('status')
|
|
14069
|
-
}, React__default
|
|
13941
|
+
}, React__default.createElement(StatusComponent, innerProps)));
|
|
14070
13942
|
}
|
|
14071
13943
|
}, {
|
|
14072
13944
|
key: "componentWillUnmount",
|
|
@@ -14080,7 +13952,7 @@ function (_Component) {
|
|
|
14080
13952
|
return VoiceSearch;
|
|
14081
13953
|
}(React.Component);
|
|
14082
13954
|
|
|
14083
|
-
_defineProperty(VoiceSearch, "defaultProps", {
|
|
13955
|
+
inherits$1$1._defineProperty(VoiceSearch, "defaultProps", {
|
|
14084
13956
|
searchAsYouSpeak: false,
|
|
14085
13957
|
buttonTextComponent: DefaultButtonText,
|
|
14086
13958
|
statusComponent: DefaultStatus
|
|
@@ -14099,21 +13971,21 @@ var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
|
14099
13971
|
var items = _ref.items,
|
|
14100
13972
|
className = _ref.className,
|
|
14101
13973
|
children = _ref.children;
|
|
14102
|
-
return React__default
|
|
14103
|
-
className: index.classnames(cx$p(''), className)
|
|
13974
|
+
return React__default.createElement("div", {
|
|
13975
|
+
className: index$5.classnames(cx$p(''), className)
|
|
14104
13976
|
}, children({
|
|
14105
13977
|
items: items
|
|
14106
13978
|
}));
|
|
14107
13979
|
};
|
|
14108
13980
|
|
|
14109
13981
|
QueryRuleCustomData.propTypes = {
|
|
14110
|
-
items: PropTypes__default
|
|
14111
|
-
className: PropTypes__default
|
|
14112
|
-
children: PropTypes__default
|
|
13982
|
+
items: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
13983
|
+
className: PropTypes__default.string,
|
|
13984
|
+
children: PropTypes__default.func.isRequired
|
|
14113
13985
|
};
|
|
14114
13986
|
|
|
14115
13987
|
var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
14116
|
-
return React__default
|
|
13988
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(QueryRuleCustomData, props));
|
|
14117
13989
|
};
|
|
14118
13990
|
|
|
14119
13991
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
@@ -14137,52 +14009,52 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14137
14009
|
|
|
14138
14010
|
var hit = props.hit;
|
|
14139
14011
|
if (moment.moment().isSameOrBefore(props.hit.pubDateSort)) return null;
|
|
14140
|
-
return React__default
|
|
14012
|
+
return React__default.createElement(
|
|
14141
14013
|
'div',
|
|
14142
14014
|
{ key: hit.url, className: styles.article },
|
|
14143
|
-
React__default
|
|
14015
|
+
React__default.createElement(
|
|
14144
14016
|
'a',
|
|
14145
14017
|
{ href: '/view/' + hit.url, style: this.props.variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14146
|
-
React__default
|
|
14018
|
+
React__default.createElement(
|
|
14147
14019
|
'div',
|
|
14148
14020
|
{ className: styles.thumb },
|
|
14149
|
-
React__default
|
|
14021
|
+
React__default.createElement(
|
|
14150
14022
|
'figure',
|
|
14151
14023
|
null,
|
|
14152
|
-
React__default
|
|
14153
|
-
index$
|
|
14024
|
+
React__default.createElement(
|
|
14025
|
+
index$2.LazyLoad,
|
|
14154
14026
|
null,
|
|
14155
|
-
React__default
|
|
14156
|
-
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
|
|
14157
14029
|
})
|
|
14158
14030
|
)
|
|
14159
14031
|
)
|
|
14160
14032
|
),
|
|
14161
|
-
React__default
|
|
14033
|
+
React__default.createElement(
|
|
14162
14034
|
'div',
|
|
14163
14035
|
{ className: styles.info, style: this.props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14164
|
-
React__default
|
|
14036
|
+
React__default.createElement(
|
|
14165
14037
|
'h2',
|
|
14166
14038
|
null,
|
|
14167
14039
|
hit.title
|
|
14168
14040
|
),
|
|
14169
|
-
hit.pubDateSort && React__default
|
|
14041
|
+
hit.pubDateSort && React__default.createElement(
|
|
14170
14042
|
'p',
|
|
14171
14043
|
{ className: styles.published },
|
|
14172
14044
|
moment.moment(hit.pubDateSort).format('MMMM Do YYYY')
|
|
14173
14045
|
),
|
|
14174
|
-
hit.authorMapping && hit.authorMapping.length > 0 && React__default
|
|
14046
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default.createElement(
|
|
14175
14047
|
'p',
|
|
14176
14048
|
{ className: styles.author },
|
|
14177
14049
|
hit.authorMapping.map(function (author) {
|
|
14178
|
-
return React__default
|
|
14050
|
+
return React__default.createElement(
|
|
14179
14051
|
'span',
|
|
14180
14052
|
null,
|
|
14181
14053
|
author.displayName
|
|
14182
14054
|
);
|
|
14183
14055
|
})
|
|
14184
14056
|
),
|
|
14185
|
-
hit.summary && React__default
|
|
14057
|
+
hit.summary && React__default.createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14186
14058
|
)
|
|
14187
14059
|
)
|
|
14188
14060
|
);
|
|
@@ -14196,10 +14068,10 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14196
14068
|
styles: this.props.deckStyles,
|
|
14197
14069
|
client: this.props.sanityClient
|
|
14198
14070
|
};
|
|
14199
|
-
return React__default
|
|
14200
|
-
React__default
|
|
14071
|
+
return React__default.createElement(
|
|
14072
|
+
React__default.Fragment,
|
|
14201
14073
|
null,
|
|
14202
|
-
React__default
|
|
14074
|
+
React__default.createElement(
|
|
14203
14075
|
InstantSearch,
|
|
14204
14076
|
_extends._extends({
|
|
14205
14077
|
searchClient: this.props.searchClient,
|
|
@@ -14210,29 +14082,29 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14210
14082
|
indexName: this.props.indexName,
|
|
14211
14083
|
onSearchParameters: this.props.onSearchParameters
|
|
14212
14084
|
}, this.props),
|
|
14213
|
-
React__default
|
|
14214
|
-
React__default
|
|
14215
|
-
this.props.refinementAttributes && React__default
|
|
14085
|
+
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14086
|
+
React__default.createElement(SearchBox$2, null),
|
|
14087
|
+
this.props.refinementAttributes && React__default.createElement(
|
|
14216
14088
|
'div',
|
|
14217
14089
|
{ className: 'search_refinement' },
|
|
14218
14090
|
this.props.refinementAttributes.map(function (item, index) {
|
|
14219
|
-
return React__default
|
|
14091
|
+
return React__default.createElement(
|
|
14220
14092
|
reactBootstrap.DropdownButton,
|
|
14221
14093
|
{ title: item.title },
|
|
14222
|
-
React__default
|
|
14094
|
+
React__default.createElement(RefinementList$3, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
|
|
14223
14095
|
);
|
|
14224
14096
|
})
|
|
14225
14097
|
),
|
|
14226
|
-
React__default
|
|
14098
|
+
React__default.createElement(
|
|
14227
14099
|
'div',
|
|
14228
14100
|
{ className: 'AlgoliaResults' },
|
|
14229
|
-
React__default
|
|
14101
|
+
React__default.createElement(Hits$1, { hitComponent: function hitComponent(hit) {
|
|
14230
14102
|
return _this2.Deck(_extends._extends({}, hit, { propsObj: propsObj }));
|
|
14231
14103
|
} })
|
|
14232
14104
|
),
|
|
14233
|
-
React__default
|
|
14105
|
+
React__default.createElement(Pagination$2, null)
|
|
14234
14106
|
),
|
|
14235
|
-
React__default
|
|
14107
|
+
React__default.createElement(
|
|
14236
14108
|
'style',
|
|
14237
14109
|
{ jsx: 'true' },
|
|
14238
14110
|
'\n .AlgoliaResults {\n padding-left: 15px;\n margin-top: 3rem;\n }\n\n .search_refinement {\n display: flex;\n margin: 2rem 0;\n }\n\n .search_refinement > div {\n padding-right: 1rem;\n max-height: 500px;\n }\n\n .ais-Hits-list {\n margin: 0;\n list-style: none;\n padding-inline-start: 0;\n }\n .ais-Pagination-list {\n list-style: none;\n }\n .ais-Pagination-list {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n .ais-Pagination-item + .ais-Pagination-item {\n margin-left: 0.3rem;\n }\n .ais-Pagination-link {\n padding: 0.3rem 0.6rem;\n display: block;\n border: 1px solid var(--search-primary);\n border-radius: 5px;\n transition: background-color 0.2s ease-out;\n }\n .ais-Pagination-link:focus,\n .ais-Pagination-link:hover {\n background-color: var(--search-secondary);\n color: #fff;\n }\n .ais-Pagination-item--disabled .ais-Pagination-link {\n opacity: 0.6;\n cursor: not-allowed;\n color: var(--search-secondary);\n }\n .ais-Pagination-item--disabled .ais-Pagination-link:focus,\n .ais-Pagination-item--disabled .ais-Pagination-link:hover {\n color: #fff;\n background-color: var(--search-secondary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link {\n color: #fff;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link:focus,\n .ais-Pagination-item--selected .ais-Pagination-link:hover {\n color: #fff;\n }\n .ais-Pagination-list,\n .ais-Results-list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .ais-Pagination-list,\n .ais-PoweredBy,\n .ais-RangeInput-form,\n .ais-RatingMenu-link {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .ais-RefinementList-item {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .ais-RefinementList-list {\n margin: 0;\n padding: 0 1rem;\n width: max-content;\n }\n .ais-SearchBox-form {\n width: 100%;\n border-radius: 5px;\n height: 48px;\n }\n .ais-SearchBox-input {\n padding: 0.5rem;\n border-radius: 5px;\n width: calc(100% - 150px);\n height: 48px;\n border: 0;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit {\n width: 78px;\n border-radius: 5px;\n padding: 7px;\n margin-left: 5px;\n height: 48px;\n background-color: var(--search-primary);\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit > svg {\n fill: #fff;\n }\n .search_refinement > .dropdown > button {\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n\n .ais-SearchBox-reset {\n height: 48px;\n width: 48px;\n color: #fff;\n background-color: var(--search-primary);\n border: 0;\n margin-left: 5px;\n border-radius: 5px;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-reset > svg {\n fill: #fff;\n }\n .ais-RefinementList-checkbox {\n margin-right: 5px;\n }\n\n .ais-RefinementList-showMore {\n padding: 0.5rem;\n border: 0;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n color: #fff;\n border: 1px solid;\n border-radius: 5px;\n margin-left: 1rem;\n }\n '
|
|
@@ -14242,16 +14114,16 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14242
14114
|
}]);
|
|
14243
14115
|
|
|
14244
14116
|
return AlgoliaSearch;
|
|
14245
|
-
}(React__default
|
|
14117
|
+
}(React__default.Component);
|
|
14246
14118
|
|
|
14247
14119
|
AlgoliaSearch.propTypes = {
|
|
14248
|
-
searchState: PropTypes__default
|
|
14249
|
-
resultsState: PropTypes__default
|
|
14250
|
-
onSearchStateChange: PropTypes__default
|
|
14251
|
-
createURL: PropTypes__default
|
|
14252
|
-
indexName: PropTypes__default
|
|
14253
|
-
searchClient: PropTypes__default
|
|
14254
|
-
refinementAttributes: PropTypes__default
|
|
14120
|
+
searchState: PropTypes__default.object,
|
|
14121
|
+
resultsState: PropTypes__default.oneOfType([PropTypes__default.object, PropTypes__default.array]),
|
|
14122
|
+
onSearchStateChange: PropTypes__default.func,
|
|
14123
|
+
createURL: PropTypes__default.func,
|
|
14124
|
+
indexName: PropTypes__default.string,
|
|
14125
|
+
searchClient: PropTypes__default.object,
|
|
14126
|
+
refinementAttributes: PropTypes__default.array
|
|
14255
14127
|
};
|
|
14256
14128
|
|
|
14257
14129
|
module.exports = AlgoliaSearch;
|