@mjhls/mjh-framework 1.0.842-beta.0 → 1.0.843
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 +1 -1
- package/dist/cjs/AD300x250.js +13 -13
- package/dist/cjs/AD300x250x600.js +13 -13
- package/dist/cjs/AD728x90.js +14 -14
- package/dist/cjs/ADFloatingFooter.js +12 -12
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +12 -12
- package/dist/cjs/{ADInfeed-55587a4e.js → ADInfeed-6810812f.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +12 -12
- package/dist/cjs/ADSponsoredResources.js +12 -12
- package/dist/cjs/ADWebcast.js +12 -12
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-5c3d8260.js → ADlgInfeed-12b1f200.js} +1 -1
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +15 -15
- package/dist/cjs/AdSlotsProvider.js +12 -905
- package/dist/cjs/AlgoliaSearch.js +391 -264
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +10 -10
- package/dist/cjs/ArticleProgramLandingPage.js +27 -27
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +18 -18
- package/dist/cjs/Auth.js +465 -245
- package/dist/cjs/AuthWrapper.js +283 -242
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-0c464248.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-bac780ac.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +8 -8
- package/dist/cjs/Column3.js +16 -16
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-ac0c1cc6.js} +7 -7
- package/dist/cjs/EventsDeck.js +33 -33
- package/dist/cjs/ExternalResources.js +26 -26
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +8 -8
- package/dist/cjs/GridContent.js +28 -28
- package/dist/cjs/GridHero.js +8 -8
- package/dist/cjs/GroupDeck.js +8 -8
- package/dist/cjs/HamMagazine.js +25 -25
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +25 -25
- package/dist/cjs/HorizontalHero.js +3 -3
- package/dist/cjs/IssueContentDeck.js +8 -8
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +61 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +12 -12
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +208 -209
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +24 -24
- package/dist/cjs/NavNative.js +21 -21
- package/dist/cjs/OncliveHero.js +2 -3
- package/dist/cjs/OncliveLargeHero.js +8 -8
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +37 -1133
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +22 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +36 -36
- package/dist/cjs/QueueDeckExpanded.js +1064 -1087
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +15 -15
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-dad08884.js} +11 -11
- package/dist/cjs/SideFooter.js +10 -10
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-ad15dd61.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +4 -4
- package/dist/cjs/TaxonomyDescription.js +25 -25
- package/dist/cjs/TemplateNormal.js +18 -18
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +12 -12
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoProgramLandingPage.js +27 -27
- package/dist/cjs/VideoSeriesCard.js +9 -9
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesListing.js +18 -18
- package/dist/cjs/View.js +61 -61
- package/dist/cjs/YahooHero.js +8 -8
- package/dist/cjs/YoutubeGroup.js +18 -18
- package/dist/cjs/{_is-array-754e012d.js → _is-array-39ff55dd.js} +1 -1
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-ef35661e.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b231f928.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-c3aeb51d.js} +1 -1
- package/dist/cjs/{_to-object-329a650b.js → _to-object-7a3ce269.js} +2 -2
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-8ae2191c.js} +5 -5
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-05029198.js} +4 -3
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-6cd7682d.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-6191c8ee.js} +1 -1
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-fc002cec.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-03c4c82e.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-ab94a594.js} +1 -1
- package/dist/cjs/{extends-0a918631.js → extends-acc1318d.js} +1 -1
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-98ab97f7.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-ac18d02c.js → index-52c2d039.js} +518 -502
- package/dist/cjs/{index-e2e62963.js → index-53e27416.js} +25 -9
- package/dist/cjs/{index-3294d3bc.js → index-79eed652.js} +39 -40
- package/dist/cjs/{index-be0c82be.js → index-ff69979f.js} +28 -22
- package/dist/cjs/{index.es-9110add6.js → index.es-e9d84959.js} +23 -5
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/{index.esm-4d410430.js → index.esm-bf016399.js} +2 -3
- package/dist/cjs/index.js +44 -43
- package/dist/cjs/{inherits-452ff02c.js → inherits-bfdb22af.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-62e097ca.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-b5e0d5f6.js} +127 -30
- package/dist/cjs/main-bc7d4bf8.js +972 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-41819145.js} +4 -4
- package/dist/cjs/{stringify-7c5aff47.js → stringify-7ccc8524.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-4fdb72e2.js} +4 -4
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-f2f8744b.js} +39 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-e83d4a26.js} +4 -4
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-c30d203c.js} +4 -4
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-68e3aaf2.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +13 -13
- package/dist/esm/AD300x250x600.js +13 -13
- package/dist/esm/AD728x90.js +14 -14
- package/dist/esm/ADFloatingFooter.js +12 -12
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +12 -12
- package/dist/esm/{ADInfeed-bb665cdc.js → ADInfeed-9e41b90e.js} +1 -1
- package/dist/esm/ADSkyscraper.js +12 -12
- package/dist/esm/ADSponsoredResources.js +12 -12
- package/dist/esm/ADWebcast.js +12 -12
- package/dist/esm/ADWelcome.js +12 -12
- package/dist/esm/{ADlgInfeed-2897d78f.js → ADlgInfeed-519eade4.js} +1 -1
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +15 -15
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +159 -32
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +10 -10
- package/dist/esm/ArticleProgramLandingPage.js +26 -26
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +18 -18
- package/dist/esm/Auth.js +464 -244
- package/dist/esm/AuthWrapper.js +283 -242
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5cab1f6b.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-ea93e8f7.js} +1 -1
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +8 -8
- package/dist/esm/Column3.js +16 -16
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +19 -19
- package/dist/esm/{Dfp-b7236041.js → Dfp-4b94fbd4.js} +7 -7
- package/dist/esm/EventsDeck.js +33 -33
- package/dist/esm/ExternalResources.js +26 -26
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +8 -8
- package/dist/esm/GridContent.js +28 -28
- package/dist/esm/GridHero.js +8 -8
- package/dist/esm/GroupDeck.js +8 -8
- package/dist/esm/HamMagazine.js +25 -25
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +25 -25
- package/dist/esm/HorizontalHero.js +3 -3
- package/dist/esm/IssueContentDeck.js +8 -8
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +61 -59
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +12 -12
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +364 -365
- package/dist/esm/NavDvm.js +7 -7
- package/dist/esm/NavMagazine.js +24 -24
- package/dist/esm/NavNative.js +21 -21
- package/dist/esm/OncliveHero.js +2 -3
- package/dist/esm/OncliveLargeHero.js +8 -8
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +36 -1131
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +22 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +36 -36
- package/dist/esm/QueueDeckExpanded.js +1064 -1087
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-5ba2e521.js} +11 -11
- package/dist/esm/SideFooter.js +10 -10
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-9cc36413.js} +7 -7
- package/dist/esm/TaxonomyCard.js +4 -4
- package/dist/esm/TaxonomyDescription.js +25 -25
- package/dist/esm/TemplateNormal.js +18 -18
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoProgramLandingPage.js +26 -26
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +18 -18
- package/dist/esm/View.js +37 -37
- package/dist/esm/YahooHero.js +8 -8
- package/dist/esm/YoutubeGroup.js +18 -18
- package/dist/esm/{_is-array-58e95429.js → _is-array-328b85b7.js} +1 -1
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-0fa1c752.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-1b84e2bf.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-c8f72bf1.js} +1 -1
- package/dist/esm/{_to-object-a4107da3.js → _to-object-cedb5b78.js} +2 -2
- package/dist/esm/{asyncToGenerator-4877b617.js → asyncToGenerator-e1a2f43a.js} +6 -6
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e761d404.js} +4 -3
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-227107e6.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-89969f66.js} +1 -1
- package/dist/esm/{define-property-8af5f002.js → define-property-2f35af22.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-eb9699c0.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-1577cb76.js} +1 -1
- package/dist/esm/{extends-6f2fcc99.js → extends-be71a29a.js} +1 -1
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/getRelatedArticle.js +6 -6
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -25
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-93bb872d.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-8dbb97f3.js → index-4f60bd57.js} +518 -502
- package/dist/esm/{index-ef6d5dcf.js → index-511bdaa5.js} +39 -40
- package/dist/esm/{index-aaa2dae0.js → index-637e8f49.js} +25 -10
- package/dist/esm/{index-73819142.js → index-f7fdcc91.js} +28 -22
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/{index.esm-fd746768.js → index.esm-ed50151c.js} +2 -3
- package/dist/esm/index.js +44 -43
- package/dist/esm/{inherits-cf8dde54.js → inherits-2cf82c38.js} +5 -5
- package/dist/esm/{keys-8eda7a5c.js → keys-526daf0a.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-a818d390.js} +127 -30
- package/dist/esm/main-ae902629.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-f0edf3d6.js} +4 -4
- package/dist/esm/{stringify-4330ccdc.js → stringify-d1b9276a.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-81605212.js} +4 -4
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-e3dcad26.js} +39 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-ad2c7a21.js} +4 -4
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-cf90f7e6.js} +4 -4
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-ace8ed30.js} +2 -2
- package/package.json +110 -111
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-e4a934b2.js +0 -851
|
@@ -2,31 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
4
|
|
|
5
|
-
require('./_commonjsHelpers-06173234.js');
|
|
6
|
-
require('./_to-object-
|
|
7
|
-
require('./es6.string.iterator-
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
require('./_to-object-7a3ce269.js');
|
|
7
|
+
require('./es6.string.iterator-ab94a594.js');
|
|
8
8
|
require('./_library-dd23b178.js');
|
|
9
9
|
require('./_object-pie-68c5bcbc.js');
|
|
10
|
-
var _extends = require('./extends-
|
|
11
|
-
require('./_object-sap-
|
|
12
|
-
var inherits$1 = require('./inherits-
|
|
13
|
-
require('./define-property-
|
|
14
|
-
require('./web.dom.iterable-
|
|
15
|
-
var _typeof = require('./typeof-
|
|
16
|
-
require('./_is-array-
|
|
10
|
+
var _extends = require('./extends-acc1318d.js');
|
|
11
|
+
require('./_object-sap-b231f928.js');
|
|
12
|
+
var inherits$1 = require('./inherits-bfdb22af.js');
|
|
13
|
+
require('./define-property-fc002cec.js');
|
|
14
|
+
require('./web.dom.iterable-68e3aaf2.js');
|
|
15
|
+
var _typeof$2 = require('./typeof-e83d4a26.js');
|
|
16
|
+
require('./_is-array-39ff55dd.js');
|
|
17
17
|
var React = require('react');
|
|
18
18
|
var React__default = _interopDefault(React);
|
|
19
19
|
var events = require('./events-1b438fe7.js');
|
|
20
20
|
var PropTypes = require('prop-types');
|
|
21
21
|
var PropTypes__default = _interopDefault(PropTypes);
|
|
22
|
-
var moment = require('./moment-
|
|
22
|
+
var moment = require('./moment-ca3bd9fb.js');
|
|
23
23
|
require('react-dom');
|
|
24
|
-
require('./index-
|
|
24
|
+
require('./index-ff69979f.js');
|
|
25
25
|
var urlFor = require('./urlFor.js');
|
|
26
26
|
var index$2 = require('./index-96b3db50.js');
|
|
27
27
|
var reactBootstrap = require('react-bootstrap');
|
|
28
|
-
var index$5 = require('./index-
|
|
29
|
-
var inherits$1$1 = require('./inherits-8d29278d.js');
|
|
28
|
+
var index$5 = require('./index-53e27416.js');
|
|
30
29
|
|
|
31
30
|
function _objectWithoutProperties(source, excluded) {
|
|
32
31
|
if (source == null) return {};
|
|
@@ -47,9 +46,24 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
47
46
|
return target;
|
|
48
47
|
}
|
|
49
48
|
|
|
49
|
+
function _defineProperty(obj, key, value) {
|
|
50
|
+
if (key in obj) {
|
|
51
|
+
Object.defineProperty(obj, key, {
|
|
52
|
+
value: value,
|
|
53
|
+
enumerable: true,
|
|
54
|
+
configurable: true,
|
|
55
|
+
writable: true
|
|
56
|
+
});
|
|
57
|
+
} else {
|
|
58
|
+
obj[key] = value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return obj;
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
function _objectSpread(target) {
|
|
51
65
|
for (var i = 1; i < arguments.length; i++) {
|
|
52
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
66
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
53
67
|
var ownKeys = Object.keys(source);
|
|
54
68
|
|
|
55
69
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
@@ -59,13 +73,100 @@ function _objectSpread(target) {
|
|
|
59
73
|
}
|
|
60
74
|
|
|
61
75
|
ownKeys.forEach(function (key) {
|
|
62
|
-
|
|
76
|
+
_defineProperty(target, key, source[key]);
|
|
63
77
|
});
|
|
64
78
|
}
|
|
65
79
|
|
|
66
80
|
return target;
|
|
67
81
|
}
|
|
68
82
|
|
|
83
|
+
function _classCallCheck(instance, Constructor) {
|
|
84
|
+
if (!(instance instanceof Constructor)) {
|
|
85
|
+
throw new TypeError("Cannot call a class as a function");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function _defineProperties(target, props) {
|
|
90
|
+
for (var i = 0; i < props.length; i++) {
|
|
91
|
+
var descriptor = props[i];
|
|
92
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
93
|
+
descriptor.configurable = true;
|
|
94
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
95
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
100
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
101
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
102
|
+
return Constructor;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
var _typeof_1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
106
|
+
function _typeof(obj) {
|
|
107
|
+
"@babel/helpers - typeof";
|
|
108
|
+
|
|
109
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
110
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
111
|
+
return typeof obj;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
115
|
+
} else {
|
|
116
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
117
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return _typeof(obj);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
module.exports = _typeof;
|
|
127
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
var _typeof = _commonjsHelpers.unwrapExports(_typeof_1);
|
|
131
|
+
|
|
132
|
+
function _assertThisInitialized(self) {
|
|
133
|
+
if (self === void 0) {
|
|
134
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return self;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function _possibleConstructorReturn(self, call) {
|
|
141
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
142
|
+
return call;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return _assertThisInitialized(self);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function _getPrototypeOf(o) {
|
|
149
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
150
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
151
|
+
};
|
|
152
|
+
return _getPrototypeOf(o);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function _inherits(subClass, superClass) {
|
|
156
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
157
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
161
|
+
constructor: {
|
|
162
|
+
value: subClass,
|
|
163
|
+
writable: true,
|
|
164
|
+
configurable: true
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
if (superClass) index$5._setPrototypeOf(subClass, superClass);
|
|
168
|
+
}
|
|
169
|
+
|
|
69
170
|
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
70
171
|
|
|
71
172
|
var hasElementType = typeof Element !== 'undefined';
|
|
@@ -201,6 +302,22 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
201
302
|
}
|
|
202
303
|
};
|
|
203
304
|
|
|
305
|
+
function _typeof$1(obj) {
|
|
306
|
+
"@babel/helpers - typeof";
|
|
307
|
+
|
|
308
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
309
|
+
_typeof$1 = function _typeof(obj) {
|
|
310
|
+
return typeof obj;
|
|
311
|
+
};
|
|
312
|
+
} else {
|
|
313
|
+
_typeof$1 = function _typeof(obj) {
|
|
314
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return _typeof$1(obj);
|
|
319
|
+
}
|
|
320
|
+
|
|
204
321
|
// From https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
|
|
205
322
|
var shallowEqual = function shallowEqual(objA, objB) {
|
|
206
323
|
if (objA === objB) {
|
|
@@ -234,7 +351,7 @@ var defer = function defer(f) {
|
|
|
234
351
|
};
|
|
235
352
|
|
|
236
353
|
var isPlainObject = function isPlainObject(value) {
|
|
237
|
-
return
|
|
354
|
+
return _typeof$1(value) === 'object' && value !== null && !Array.isArray(value);
|
|
238
355
|
};
|
|
239
356
|
|
|
240
357
|
var removeEmptyKey = function removeEmptyKey(obj) {
|
|
@@ -393,26 +510,26 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
393
510
|
var Connector =
|
|
394
511
|
/*#__PURE__*/
|
|
395
512
|
function (_Component) {
|
|
396
|
-
|
|
513
|
+
_inherits(Connector, _Component);
|
|
397
514
|
|
|
398
515
|
function Connector(props) {
|
|
399
516
|
var _this;
|
|
400
517
|
|
|
401
|
-
|
|
518
|
+
_classCallCheck(this, Connector);
|
|
402
519
|
|
|
403
|
-
_this =
|
|
520
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(Connector).call(this, props));
|
|
404
521
|
|
|
405
|
-
|
|
522
|
+
_defineProperty(_assertThisInitialized(_this), "unsubscribe", void 0);
|
|
406
523
|
|
|
407
|
-
|
|
524
|
+
_defineProperty(_assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
408
525
|
|
|
409
|
-
|
|
526
|
+
_defineProperty(_assertThisInitialized(_this), "isUnmounting", false);
|
|
410
527
|
|
|
411
|
-
|
|
528
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
412
529
|
providedProps: _this.getProvidedProps(_this.props)
|
|
413
530
|
});
|
|
414
531
|
|
|
415
|
-
|
|
532
|
+
_defineProperty(_assertThisInitialized(_this), "refine", function () {
|
|
416
533
|
var _ref;
|
|
417
534
|
|
|
418
535
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -420,10 +537,10 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
420
537
|
}
|
|
421
538
|
|
|
422
539
|
_this.props.contextValue.onInternalStateUpdate( // refine will always be defined here because the prop is only given conditionally
|
|
423
|
-
(_ref = connectorDesc.refine).call.apply(_ref, [
|
|
540
|
+
(_ref = connectorDesc.refine).call.apply(_ref, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
424
541
|
});
|
|
425
542
|
|
|
426
|
-
|
|
543
|
+
_defineProperty(_assertThisInitialized(_this), "createURL", function () {
|
|
427
544
|
var _ref2;
|
|
428
545
|
|
|
429
546
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
@@ -431,10 +548,10 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
431
548
|
}
|
|
432
549
|
|
|
433
550
|
return _this.props.contextValue.createHrefForState( // refine will always be defined here because the prop is only given conditionally
|
|
434
|
-
(_ref2 = connectorDesc.refine).call.apply(_ref2, [
|
|
551
|
+
(_ref2 = connectorDesc.refine).call.apply(_ref2, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
435
552
|
});
|
|
436
553
|
|
|
437
|
-
|
|
554
|
+
_defineProperty(_assertThisInitialized(_this), "searchForFacetValues", function () {
|
|
438
555
|
var _ref3;
|
|
439
556
|
|
|
440
557
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
@@ -442,20 +559,20 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
442
559
|
}
|
|
443
560
|
|
|
444
561
|
_this.props.contextValue.onSearchForFacetValues( // searchForFacetValues will always be defined here because the prop is only given conditionally
|
|
445
|
-
(_ref3 = connectorDesc.searchForFacetValues).call.apply(_ref3, [
|
|
562
|
+
(_ref3 = connectorDesc.searchForFacetValues).call.apply(_ref3, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
446
563
|
});
|
|
447
564
|
|
|
448
565
|
if (connectorDesc.getSearchParameters) {
|
|
449
|
-
_this.props.contextValue.onSearchParameters(connectorDesc.getSearchParameters.bind(
|
|
566
|
+
_this.props.contextValue.onSearchParameters(connectorDesc.getSearchParameters.bind(_assertThisInitialized(_this)), {
|
|
450
567
|
ais: _this.props.contextValue,
|
|
451
568
|
multiIndexContext: _this.props.indexContextValue
|
|
452
|
-
}, _this.props, connectorDesc.getMetadata && connectorDesc.getMetadata.bind(
|
|
569
|
+
}, _this.props, connectorDesc.getMetadata && connectorDesc.getMetadata.bind(_assertThisInitialized(_this)));
|
|
453
570
|
}
|
|
454
571
|
|
|
455
572
|
return _this;
|
|
456
573
|
}
|
|
457
574
|
|
|
458
|
-
|
|
575
|
+
_createClass(Connector, [{
|
|
459
576
|
key: "componentDidMount",
|
|
460
577
|
value: function componentDidMount() {
|
|
461
578
|
var _this2 = this;
|
|
@@ -608,11 +725,11 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
608
725
|
return Connector;
|
|
609
726
|
}(React.Component);
|
|
610
727
|
|
|
611
|
-
|
|
728
|
+
_defineProperty(Connector, "displayName", "".concat(connectorDesc.displayName, "(").concat(getDisplayName(Composed), ")"));
|
|
612
729
|
|
|
613
|
-
|
|
730
|
+
_defineProperty(Connector, "propTypes", connectorDesc.propTypes);
|
|
614
731
|
|
|
615
|
-
|
|
732
|
+
_defineProperty(Connector, "defaultProps", connectorDesc.defaultProps);
|
|
616
733
|
|
|
617
734
|
return Connector;
|
|
618
735
|
};
|
|
@@ -762,22 +879,22 @@ function translatable(defaultTranslations) {
|
|
|
762
879
|
var Translatable =
|
|
763
880
|
/*#__PURE__*/
|
|
764
881
|
function (_Component) {
|
|
765
|
-
|
|
882
|
+
_inherits(Translatable, _Component);
|
|
766
883
|
|
|
767
884
|
function Translatable() {
|
|
768
885
|
var _getPrototypeOf2;
|
|
769
886
|
|
|
770
887
|
var _this;
|
|
771
888
|
|
|
772
|
-
|
|
889
|
+
_classCallCheck(this, Translatable);
|
|
773
890
|
|
|
774
891
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
775
892
|
args[_key] = arguments[_key];
|
|
776
893
|
}
|
|
777
894
|
|
|
778
|
-
_this =
|
|
895
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Translatable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
779
896
|
|
|
780
|
-
|
|
897
|
+
_defineProperty(_assertThisInitialized(_this), "translate", function (key) {
|
|
781
898
|
var translations = _this.props.translations;
|
|
782
899
|
var translation = translations && translations.hasOwnProperty(key) ? translations[key] : defaultTranslations[key];
|
|
783
900
|
|
|
@@ -795,7 +912,7 @@ function translatable(defaultTranslations) {
|
|
|
795
912
|
return _this;
|
|
796
913
|
}
|
|
797
914
|
|
|
798
|
-
|
|
915
|
+
_createClass(Translatable, [{
|
|
799
916
|
key: "render",
|
|
800
917
|
value: function render() {
|
|
801
918
|
return React__default.createElement(Composed, index$5._extends({
|
|
@@ -868,7 +985,7 @@ function refineMultiIndex(searchState, nextRefinement, indexId, resetPage) {
|
|
|
868
985
|
var page = resetPage ? {
|
|
869
986
|
page: 1
|
|
870
987
|
} : undefined;
|
|
871
|
-
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices,
|
|
988
|
+
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)));
|
|
872
989
|
return _objectSpread({}, searchState, {
|
|
873
990
|
indices: state
|
|
874
991
|
});
|
|
@@ -888,7 +1005,7 @@ function refineMultiIndexWithNamespace(searchState, nextRefinement, indexId, res
|
|
|
888
1005
|
var page = resetPage ? {
|
|
889
1006
|
page: 1
|
|
890
1007
|
} : undefined;
|
|
891
|
-
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices,
|
|
1008
|
+
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)));
|
|
892
1009
|
return _objectSpread({}, searchState, {
|
|
893
1010
|
indices: state
|
|
894
1011
|
});
|
|
@@ -898,7 +1015,7 @@ function refineSingleIndexWithNamespace(searchState, nextRefinement, resetPage,
|
|
|
898
1015
|
var page = resetPage ? {
|
|
899
1016
|
page: 1
|
|
900
1017
|
} : undefined;
|
|
901
|
-
return _objectSpread({}, searchState,
|
|
1018
|
+
return _objectSpread({}, searchState, _defineProperty({}, namespace, _objectSpread({}, searchState[namespace], nextRefinement)), page);
|
|
902
1019
|
}
|
|
903
1020
|
|
|
904
1021
|
function getNamespaceAndAttributeName(id) {
|
|
@@ -1017,7 +1134,7 @@ function cleanUpValueWithSingleIndex(_ref3) {
|
|
|
1017
1134
|
attribute = _ref3.attribute;
|
|
1018
1135
|
|
|
1019
1136
|
if (namespace) {
|
|
1020
|
-
return _objectSpread({}, searchState,
|
|
1137
|
+
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1021
1138
|
}
|
|
1022
1139
|
|
|
1023
1140
|
return omit(searchState, [id]);
|
|
@@ -1033,13 +1150,13 @@ function cleanUpValueWithMultiIndex(_ref4) {
|
|
|
1033
1150
|
|
|
1034
1151
|
if (namespace && indexSearchState) {
|
|
1035
1152
|
return _objectSpread({}, searchState, {
|
|
1036
|
-
indices: _objectSpread({}, searchState.indices,
|
|
1153
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit(indexSearchState[namespace], [attribute])))))
|
|
1037
1154
|
});
|
|
1038
1155
|
}
|
|
1039
1156
|
|
|
1040
1157
|
if (indexSearchState) {
|
|
1041
1158
|
return _objectSpread({}, searchState, {
|
|
1042
|
-
indices: _objectSpread({}, searchState.indices,
|
|
1159
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1043
1160
|
});
|
|
1044
1161
|
}
|
|
1045
1162
|
|
|
@@ -1077,7 +1194,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1077
1194
|
}) : [];
|
|
1078
1195
|
this._props = props;
|
|
1079
1196
|
|
|
1080
|
-
var nextValue =
|
|
1197
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1081
1198
|
|
|
1082
1199
|
return refineValue(nextSearchState, nextValue, {
|
|
1083
1200
|
ais: props.contextValue,
|
|
@@ -1103,7 +1220,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1103
1220
|
return acc;
|
|
1104
1221
|
}, {});
|
|
1105
1222
|
|
|
1106
|
-
var nextValue =
|
|
1223
|
+
var nextValue = _defineProperty({}, id, configureState);
|
|
1107
1224
|
|
|
1108
1225
|
return refineValue(searchState, nextValue, {
|
|
1109
1226
|
ais: props.contextValue,
|
|
@@ -1151,26 +1268,39 @@ var Configure = connectConfigure(function Configure() {
|
|
|
1151
1268
|
return null;
|
|
1152
1269
|
});
|
|
1153
1270
|
|
|
1154
|
-
function
|
|
1155
|
-
if (
|
|
1156
|
-
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
1157
|
-
arr2[i] = arr[i];
|
|
1158
|
-
}
|
|
1271
|
+
function _arrayLikeToArray(arr, len) {
|
|
1272
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1159
1273
|
|
|
1160
|
-
|
|
1274
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
1275
|
+
arr2[i] = arr[i];
|
|
1161
1276
|
}
|
|
1277
|
+
|
|
1278
|
+
return arr2;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
function _arrayWithoutHoles(arr) {
|
|
1282
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1162
1283
|
}
|
|
1163
1284
|
|
|
1164
1285
|
function _iterableToArray(iter) {
|
|
1165
|
-
if (Symbol.iterator in Object(iter)
|
|
1286
|
+
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
1290
|
+
if (!o) return;
|
|
1291
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1292
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1293
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1294
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1295
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1166
1296
|
}
|
|
1167
1297
|
|
|
1168
1298
|
function _nonIterableSpread() {
|
|
1169
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1299
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1170
1300
|
}
|
|
1171
1301
|
|
|
1172
1302
|
function _toConsumableArray(arr) {
|
|
1173
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
1303
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
1174
1304
|
}
|
|
1175
1305
|
|
|
1176
1306
|
function clone(value) {
|
|
@@ -6181,7 +6311,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6181
6311
|
}) : [];
|
|
6182
6312
|
this._searchParameters = searchParameters;
|
|
6183
6313
|
|
|
6184
|
-
var nextValue =
|
|
6314
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6185
6315
|
|
|
6186
6316
|
return refineValue(nextSearchState, nextValue, {
|
|
6187
6317
|
ais: props.contextValue,
|
|
@@ -6209,7 +6339,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6209
6339
|
return acc;
|
|
6210
6340
|
}, {});
|
|
6211
6341
|
|
|
6212
|
-
var nextValue =
|
|
6342
|
+
var nextValue = _defineProperty({}, id, configureState);
|
|
6213
6343
|
|
|
6214
6344
|
return refineValue(searchState, nextValue, {
|
|
6215
6345
|
ais: props.contextValue,
|
|
@@ -6401,9 +6531,9 @@ function getIndexContext(props) {
|
|
|
6401
6531
|
var Index =
|
|
6402
6532
|
/*#__PURE__*/
|
|
6403
6533
|
function (_Component) {
|
|
6404
|
-
|
|
6534
|
+
_inherits(Index, _Component);
|
|
6405
6535
|
|
|
6406
|
-
|
|
6536
|
+
_createClass(Index, null, [{
|
|
6407
6537
|
key: "getDerivedStateFromProps",
|
|
6408
6538
|
value: function getDerivedStateFromProps(props) {
|
|
6409
6539
|
return {
|
|
@@ -6415,17 +6545,17 @@ function (_Component) {
|
|
|
6415
6545
|
function Index(props) {
|
|
6416
6546
|
var _this;
|
|
6417
6547
|
|
|
6418
|
-
|
|
6548
|
+
_classCallCheck(this, Index);
|
|
6419
6549
|
|
|
6420
|
-
_this =
|
|
6550
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(Index).call(this, props));
|
|
6421
6551
|
|
|
6422
|
-
|
|
6552
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
6423
6553
|
indexContext: getIndexContext(_this.props)
|
|
6424
6554
|
});
|
|
6425
6555
|
|
|
6426
|
-
|
|
6556
|
+
_defineProperty(_assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
6427
6557
|
|
|
6428
|
-
_this.props.contextValue.onSearchParameters(_this.getSearchParameters.bind(
|
|
6558
|
+
_this.props.contextValue.onSearchParameters(_this.getSearchParameters.bind(_assertThisInitialized(_this)), {
|
|
6429
6559
|
ais: _this.props.contextValue,
|
|
6430
6560
|
multiIndexContext: _this.state.indexContext
|
|
6431
6561
|
}, _this.props, undefined);
|
|
@@ -6433,7 +6563,7 @@ function (_Component) {
|
|
|
6433
6563
|
return _this;
|
|
6434
6564
|
}
|
|
6435
6565
|
|
|
6436
|
-
|
|
6566
|
+
_createClass(Index, [{
|
|
6437
6567
|
key: "componentDidMount",
|
|
6438
6568
|
value: function componentDidMount() {
|
|
6439
6569
|
this.unregisterWidget = this.props.contextValue.widgetsManager.registerWidget(this);
|
|
@@ -6475,7 +6605,7 @@ function (_Component) {
|
|
|
6475
6605
|
return Index;
|
|
6476
6606
|
}(React.Component);
|
|
6477
6607
|
|
|
6478
|
-
|
|
6608
|
+
_defineProperty(Index, "propTypes", {
|
|
6479
6609
|
indexName: PropTypes__default.string.isRequired,
|
|
6480
6610
|
indexId: PropTypes__default.string.isRequired,
|
|
6481
6611
|
children: PropTypes__default.node
|
|
@@ -6709,7 +6839,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6709
6839
|
.sort(sortIndexWidgetsFirst).reduce(function (indices, widget) {
|
|
6710
6840
|
var indexId = isMultiIndexContext(widget) ? widget.props.indexContextValue.targetedIndex : widget.props.indexId;
|
|
6711
6841
|
var widgets = indices[indexId] || [];
|
|
6712
|
-
return _objectSpread({}, indices,
|
|
6842
|
+
return _objectSpread({}, indices, _defineProperty({}, indexId, widgets.concat(widget)));
|
|
6713
6843
|
}, {});
|
|
6714
6844
|
var derivedParameters = Object.keys(derivedIndices).map(function (indexId) {
|
|
6715
6845
|
return {
|
|
@@ -6779,7 +6909,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6779
6909
|
results = !isDerivedHelpersEmpty && results.getFacetByName ? {} : results;
|
|
6780
6910
|
|
|
6781
6911
|
if (!isDerivedHelpersEmpty) {
|
|
6782
|
-
results = _objectSpread({}, results,
|
|
6912
|
+
results = _objectSpread({}, results, _defineProperty({}, indexId, event.results));
|
|
6783
6913
|
} else {
|
|
6784
6914
|
results = event.results;
|
|
6785
6915
|
}
|
|
@@ -6927,7 +7057,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6927
7057
|
}));
|
|
6928
7058
|
}, [])
|
|
6929
7059
|
}));
|
|
6930
|
-
client.cache = _objectSpread({}, client.cache,
|
|
7060
|
+
client.cache = _objectSpread({}, client.cache, _defineProperty({}, key, JSON.stringify({
|
|
6931
7061
|
results: results.reduce(function (acc, result) {
|
|
6932
7062
|
return acc.concat(result.rawResults);
|
|
6933
7063
|
}, [])
|
|
@@ -6966,7 +7096,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6966
7096
|
};
|
|
6967
7097
|
})
|
|
6968
7098
|
}));
|
|
6969
|
-
client.cache = _objectSpread({}, client.cache,
|
|
7099
|
+
client.cache = _objectSpread({}, client.cache, _defineProperty({}, key, JSON.stringify({
|
|
6970
7100
|
results: results.rawResults
|
|
6971
7101
|
})));
|
|
6972
7102
|
}
|
|
@@ -6978,7 +7108,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6978
7108
|
|
|
6979
7109
|
if (Array.isArray(results.results)) {
|
|
6980
7110
|
return results.results.reduce(function (acc, result) {
|
|
6981
|
-
return _objectSpread({}, acc,
|
|
7111
|
+
return _objectSpread({}, acc, _defineProperty({}, result._internalIndexId, new algoliasearchHelper_1.SearchResults(new algoliasearchHelper_1.SearchParameters(result.state), result.rawResults)));
|
|
6982
7112
|
}, {});
|
|
6983
7113
|
}
|
|
6984
7114
|
|
|
@@ -7033,7 +7163,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7033
7163
|
store.setState(_objectSpread({}, store.getState(), {
|
|
7034
7164
|
error: null,
|
|
7035
7165
|
searchingForFacetValues: false,
|
|
7036
|
-
resultsFacetValues: _objectSpread({}, store.getState().resultsFacetValues, (_objectSpread7 = {},
|
|
7166
|
+
resultsFacetValues: _objectSpread({}, store.getState().resultsFacetValues, (_objectSpread7 = {}, _defineProperty(_objectSpread7, facetName, content.facetHits), _defineProperty(_objectSpread7, "query", query), _objectSpread7))
|
|
7037
7167
|
}));
|
|
7038
7168
|
}, function (error) {
|
|
7039
7169
|
store.setState(_objectSpread({}, store.getState(), {
|
|
@@ -7147,9 +7277,9 @@ function isControlled(props) {
|
|
|
7147
7277
|
var InstantSearch =
|
|
7148
7278
|
/*#__PURE__*/
|
|
7149
7279
|
function (_Component) {
|
|
7150
|
-
|
|
7280
|
+
_inherits(InstantSearch, _Component);
|
|
7151
7281
|
|
|
7152
|
-
|
|
7282
|
+
_createClass(InstantSearch, null, [{
|
|
7153
7283
|
key: "getDerivedStateFromProps",
|
|
7154
7284
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
7155
7285
|
var nextIsControlled = isControlled(nextProps);
|
|
@@ -7172,11 +7302,11 @@ function (_Component) {
|
|
|
7172
7302
|
function InstantSearch(props) {
|
|
7173
7303
|
var _this;
|
|
7174
7304
|
|
|
7175
|
-
|
|
7305
|
+
_classCallCheck(this, InstantSearch);
|
|
7176
7306
|
|
|
7177
|
-
_this =
|
|
7307
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(InstantSearch).call(this, props));
|
|
7178
7308
|
|
|
7179
|
-
|
|
7309
|
+
_defineProperty(_assertThisInitialized(_this), "isUnmounting", false);
|
|
7180
7310
|
|
|
7181
7311
|
var instantSearchManager = createInstantSearchManager({
|
|
7182
7312
|
indexName: _this.props.indexName,
|
|
@@ -7189,11 +7319,11 @@ function (_Component) {
|
|
|
7189
7319
|
store: instantSearchManager.store,
|
|
7190
7320
|
widgetsManager: instantSearchManager.widgetsManager,
|
|
7191
7321
|
mainTargetedIndex: _this.props.indexName,
|
|
7192
|
-
onInternalStateUpdate: _this.onWidgetsInternalStateUpdate.bind(
|
|
7193
|
-
createHrefForState: _this.createHrefForState.bind(
|
|
7194
|
-
onSearchForFacetValues: _this.onSearchForFacetValues.bind(
|
|
7195
|
-
onSearchStateChange: _this.onSearchStateChange.bind(
|
|
7196
|
-
onSearchParameters: _this.onSearchParameters.bind(
|
|
7322
|
+
onInternalStateUpdate: _this.onWidgetsInternalStateUpdate.bind(_assertThisInitialized(_this)),
|
|
7323
|
+
createHrefForState: _this.createHrefForState.bind(_assertThisInitialized(_this)),
|
|
7324
|
+
onSearchForFacetValues: _this.onSearchForFacetValues.bind(_assertThisInitialized(_this)),
|
|
7325
|
+
onSearchStateChange: _this.onSearchStateChange.bind(_assertThisInitialized(_this)),
|
|
7326
|
+
onSearchParameters: _this.onSearchParameters.bind(_assertThisInitialized(_this))
|
|
7197
7327
|
};
|
|
7198
7328
|
_this.state = {
|
|
7199
7329
|
isControlled: isControlled(_this.props),
|
|
@@ -7203,7 +7333,7 @@ function (_Component) {
|
|
|
7203
7333
|
return _this;
|
|
7204
7334
|
}
|
|
7205
7335
|
|
|
7206
|
-
|
|
7336
|
+
_createClass(InstantSearch, [{
|
|
7207
7337
|
key: "componentDidUpdate",
|
|
7208
7338
|
value: function componentDidUpdate(prevProps) {
|
|
7209
7339
|
var prevIsControlled = isControlled(prevProps);
|
|
@@ -7304,12 +7434,12 @@ function (_Component) {
|
|
|
7304
7434
|
return InstantSearch;
|
|
7305
7435
|
}(React.Component);
|
|
7306
7436
|
|
|
7307
|
-
|
|
7437
|
+
_defineProperty(InstantSearch, "defaultProps", {
|
|
7308
7438
|
stalledSearchDelay: 200,
|
|
7309
7439
|
refresh: false
|
|
7310
7440
|
});
|
|
7311
7441
|
|
|
7312
|
-
|
|
7442
|
+
_defineProperty(InstantSearch, "propTypes", {
|
|
7313
7443
|
// @TODO: These props are currently constant.
|
|
7314
7444
|
indexName: PropTypes__default.string.isRequired,
|
|
7315
7445
|
searchClient: PropTypes__default.shape({
|
|
@@ -7337,7 +7467,7 @@ var namespace = 'hierarchicalMenu';
|
|
|
7337
7467
|
function _refine(props, searchState, nextRefinement, context) {
|
|
7338
7468
|
var id = getId$2(props);
|
|
7339
7469
|
|
|
7340
|
-
var nextValue =
|
|
7470
|
+
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7341
7471
|
|
|
7342
7472
|
var resetPage = true;
|
|
7343
7473
|
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
@@ -7570,7 +7700,7 @@ var truncate = function truncate() {
|
|
|
7570
7700
|
function _refine$1(props, searchState, nextRefinement, context) {
|
|
7571
7701
|
var id = getId$3(props);
|
|
7572
7702
|
|
|
7573
|
-
var nextValue =
|
|
7703
|
+
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7574
7704
|
|
|
7575
7705
|
var resetPage = true;
|
|
7576
7706
|
return refineValue(searchState, nextValue, context, resetPage, namespace$1);
|
|
@@ -7988,7 +8118,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
7988
8118
|
refine: function refine(props, searchState, nextRefinement) {
|
|
7989
8119
|
var id = getId$4();
|
|
7990
8120
|
|
|
7991
|
-
var nextValue =
|
|
8121
|
+
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
7992
8122
|
|
|
7993
8123
|
var resetPage = true;
|
|
7994
8124
|
return refineValue(searchState, nextValue, {
|
|
@@ -8152,7 +8282,7 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8152
8282
|
refine: function refine(props, searchState, event, index) {
|
|
8153
8283
|
var id = getId$5();
|
|
8154
8284
|
|
|
8155
|
-
var nextValue =
|
|
8285
|
+
var nextValue = _defineProperty({}, id, index + 1);
|
|
8156
8286
|
|
|
8157
8287
|
var resetPage = false;
|
|
8158
8288
|
return refineValue(searchState, nextValue, {
|
|
@@ -8193,7 +8323,7 @@ function getLimit(_ref) {
|
|
|
8193
8323
|
function _refine$2(props, searchState, nextRefinement, context) {
|
|
8194
8324
|
var id = getId$6(props);
|
|
8195
8325
|
|
|
8196
|
-
var nextValue =
|
|
8326
|
+
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8197
8327
|
|
|
8198
8328
|
var resetPage = true;
|
|
8199
8329
|
return refineValue(searchState, nextValue, context, resetPage, namespace$2);
|
|
@@ -8384,10 +8514,7 @@ function _arrayWithHoles(arr) {
|
|
|
8384
8514
|
}
|
|
8385
8515
|
|
|
8386
8516
|
function _iterableToArrayLimit(arr, i) {
|
|
8387
|
-
if (!(Symbol.iterator in Object(arr)
|
|
8388
|
-
return;
|
|
8389
|
-
}
|
|
8390
|
-
|
|
8517
|
+
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
|
8391
8518
|
var _arr = [];
|
|
8392
8519
|
var _n = true;
|
|
8393
8520
|
var _d = false;
|
|
@@ -8414,11 +8541,11 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
8414
8541
|
}
|
|
8415
8542
|
|
|
8416
8543
|
function _nonIterableRest() {
|
|
8417
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
8544
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8418
8545
|
}
|
|
8419
8546
|
|
|
8420
8547
|
function _slicedToArray(arr, i) {
|
|
8421
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
8548
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
8422
8549
|
}
|
|
8423
8550
|
|
|
8424
8551
|
function stringifyItem(item) {
|
|
@@ -8477,7 +8604,7 @@ function itemHasRefinement(attribute, results, value) {
|
|
|
8477
8604
|
}
|
|
8478
8605
|
|
|
8479
8606
|
function _refine$3(props, searchState, nextRefinement, context) {
|
|
8480
|
-
var nextValue =
|
|
8607
|
+
var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
|
|
8481
8608
|
|
|
8482
8609
|
var resetPage = true;
|
|
8483
8610
|
return refineValue(searchState, nextValue, context, resetPage, namespace$3);
|
|
@@ -8652,7 +8779,7 @@ function getCurrentRefinement$5(props, searchState, context) {
|
|
|
8652
8779
|
function _refine$4(props, searchState, nextPage, context) {
|
|
8653
8780
|
var id = getId$8();
|
|
8654
8781
|
|
|
8655
|
-
var nextValue =
|
|
8782
|
+
var nextValue = _defineProperty({}, id, nextPage);
|
|
8656
8783
|
|
|
8657
8784
|
var resetPage = false;
|
|
8658
8785
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
@@ -8891,7 +9018,7 @@ function _refine$5(props, searchState, nextRefinement, currentRange, context) {
|
|
|
8891
9018
|
var id = getId$9(props);
|
|
8892
9019
|
var resetPage = true;
|
|
8893
9020
|
|
|
8894
|
-
var nextValue =
|
|
9021
|
+
var nextValue = _defineProperty({}, id, {
|
|
8895
9022
|
min: nextValueForRefinement(props.min !== undefined, isMinReset, currentMinRange, nextMinAsNumber),
|
|
8896
9023
|
max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
|
|
8897
9024
|
});
|
|
@@ -9101,7 +9228,7 @@ function _refine$6(props, searchState, nextRefinement, context) {
|
|
|
9101
9228
|
// {foo: ['bar']} => "foo[0]=bar"
|
|
9102
9229
|
// {foo: []} => ""
|
|
9103
9230
|
|
|
9104
|
-
var nextValue =
|
|
9231
|
+
var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9105
9232
|
|
|
9106
9233
|
var resetPage = true;
|
|
9107
9234
|
return refineValue(searchState, nextValue, context, resetPage, namespace$5);
|
|
@@ -9368,7 +9495,7 @@ function getCurrentRefinement$8(props, searchState, context) {
|
|
|
9368
9495
|
function _refine$7(props, searchState, nextRefinement, context) {
|
|
9369
9496
|
var id = getId$b();
|
|
9370
9497
|
|
|
9371
|
-
var nextValue =
|
|
9498
|
+
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9372
9499
|
|
|
9373
9500
|
var resetPage = true;
|
|
9374
9501
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
@@ -9484,7 +9611,7 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9484
9611
|
}));
|
|
9485
9612
|
},
|
|
9486
9613
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9487
|
-
var nextValue =
|
|
9614
|
+
var nextValue = _defineProperty({}, getId$c(), nextRefinement);
|
|
9488
9615
|
|
|
9489
9616
|
var resetPage = true;
|
|
9490
9617
|
return refineValue(searchState, nextValue, {
|
|
@@ -9555,7 +9682,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9555
9682
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9556
9683
|
var id = getId$d();
|
|
9557
9684
|
|
|
9558
|
-
var nextValue =
|
|
9685
|
+
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9559
9686
|
|
|
9560
9687
|
var resetPage = true;
|
|
9561
9688
|
return refineValue(searchState, nextValue, {
|
|
@@ -9634,7 +9761,7 @@ function getCurrentRefinement$b(props, searchState, context) {
|
|
|
9634
9761
|
function _refine$8(props, searchState, nextRefinement, context) {
|
|
9635
9762
|
var id = getId$e(props);
|
|
9636
9763
|
|
|
9637
|
-
var nextValue =
|
|
9764
|
+
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9638
9765
|
|
|
9639
9766
|
var resetPage = true;
|
|
9640
9767
|
return refineValue(searchState, nextValue, context, resetPage, namespace$6);
|
|
@@ -9818,7 +9945,7 @@ function _refine$9(props, searchState, nextRefinement, context) {
|
|
|
9818
9945
|
}, props.additionalQueryParameters({
|
|
9819
9946
|
query: nextRefinement
|
|
9820
9947
|
})) : {};
|
|
9821
|
-
var nextValue = (_nextValue = {},
|
|
9948
|
+
var nextValue = (_nextValue = {}, _defineProperty(_nextValue, id, nextRefinement), _defineProperty(_nextValue, voiceParams, _objectSpread({}, queryLanguages, additionalQueryParameters)), _nextValue);
|
|
9822
9949
|
var resetPage = true;
|
|
9823
9950
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9824
9951
|
}
|
|
@@ -9956,26 +10083,26 @@ var _createContext$1 = React.createContext(function setCanRefine() {}),
|
|
|
9956
10083
|
var Panel =
|
|
9957
10084
|
/*#__PURE__*/
|
|
9958
10085
|
function (_Component) {
|
|
9959
|
-
|
|
10086
|
+
_inherits(Panel, _Component);
|
|
9960
10087
|
|
|
9961
10088
|
function Panel() {
|
|
9962
10089
|
var _getPrototypeOf2;
|
|
9963
10090
|
|
|
9964
10091
|
var _this;
|
|
9965
10092
|
|
|
9966
|
-
|
|
10093
|
+
_classCallCheck(this, Panel);
|
|
9967
10094
|
|
|
9968
10095
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9969
10096
|
args[_key] = arguments[_key];
|
|
9970
10097
|
}
|
|
9971
10098
|
|
|
9972
|
-
_this =
|
|
10099
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9973
10100
|
|
|
9974
|
-
|
|
10101
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
9975
10102
|
canRefine: true
|
|
9976
10103
|
});
|
|
9977
10104
|
|
|
9978
|
-
|
|
10105
|
+
_defineProperty(_assertThisInitialized(_this), "setCanRefine", function (nextCanRefine) {
|
|
9979
10106
|
_this.setState({
|
|
9980
10107
|
canRefine: nextCanRefine
|
|
9981
10108
|
});
|
|
@@ -9984,7 +10111,7 @@ function (_Component) {
|
|
|
9984
10111
|
return _this;
|
|
9985
10112
|
}
|
|
9986
10113
|
|
|
9987
|
-
|
|
10114
|
+
_createClass(Panel, [{
|
|
9988
10115
|
key: "render",
|
|
9989
10116
|
value: function render() {
|
|
9990
10117
|
var _this$props = this.props,
|
|
@@ -10010,14 +10137,14 @@ function (_Component) {
|
|
|
10010
10137
|
return Panel;
|
|
10011
10138
|
}(React.Component);
|
|
10012
10139
|
|
|
10013
|
-
|
|
10140
|
+
_defineProperty(Panel, "propTypes", {
|
|
10014
10141
|
children: PropTypes__default.node.isRequired,
|
|
10015
10142
|
className: PropTypes__default.string,
|
|
10016
10143
|
header: PropTypes__default.node,
|
|
10017
10144
|
footer: PropTypes__default.node
|
|
10018
10145
|
});
|
|
10019
10146
|
|
|
10020
|
-
|
|
10147
|
+
_defineProperty(Panel, "defaultProps", {
|
|
10021
10148
|
className: '',
|
|
10022
10149
|
header: null,
|
|
10023
10150
|
footer: null
|
|
@@ -10026,15 +10153,15 @@ inherits$1$1._defineProperty(Panel, "defaultProps", {
|
|
|
10026
10153
|
var PanelCallbackHandler =
|
|
10027
10154
|
/*#__PURE__*/
|
|
10028
10155
|
function (_Component) {
|
|
10029
|
-
|
|
10156
|
+
_inherits(PanelCallbackHandler, _Component);
|
|
10030
10157
|
|
|
10031
10158
|
function PanelCallbackHandler() {
|
|
10032
|
-
|
|
10159
|
+
_classCallCheck(this, PanelCallbackHandler);
|
|
10033
10160
|
|
|
10034
|
-
return
|
|
10161
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(PanelCallbackHandler).apply(this, arguments));
|
|
10035
10162
|
}
|
|
10036
10163
|
|
|
10037
|
-
|
|
10164
|
+
_createClass(PanelCallbackHandler, [{
|
|
10038
10165
|
key: "componentDidMount",
|
|
10039
10166
|
value: function componentDidMount() {
|
|
10040
10167
|
this.props.setCanRefine(this.props.canRefine);
|
|
@@ -10056,7 +10183,7 @@ function (_Component) {
|
|
|
10056
10183
|
return PanelCallbackHandler;
|
|
10057
10184
|
}(React.Component);
|
|
10058
10185
|
|
|
10059
|
-
|
|
10186
|
+
_defineProperty(PanelCallbackHandler, "propTypes", {
|
|
10060
10187
|
children: PropTypes__default.node.isRequired,
|
|
10061
10188
|
canRefine: PropTypes__default.bool.isRequired,
|
|
10062
10189
|
setCanRefine: PropTypes__default.func.isRequired
|
|
@@ -10081,22 +10208,22 @@ PanelWrapper.propTypes = {
|
|
|
10081
10208
|
var Link =
|
|
10082
10209
|
/*#__PURE__*/
|
|
10083
10210
|
function (_Component) {
|
|
10084
|
-
|
|
10211
|
+
_inherits(Link, _Component);
|
|
10085
10212
|
|
|
10086
10213
|
function Link() {
|
|
10087
10214
|
var _getPrototypeOf2;
|
|
10088
10215
|
|
|
10089
10216
|
var _this;
|
|
10090
10217
|
|
|
10091
|
-
|
|
10218
|
+
_classCallCheck(this, Link);
|
|
10092
10219
|
|
|
10093
10220
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10094
10221
|
args[_key] = arguments[_key];
|
|
10095
10222
|
}
|
|
10096
10223
|
|
|
10097
|
-
_this =
|
|
10224
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Link)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10098
10225
|
|
|
10099
|
-
|
|
10226
|
+
_defineProperty(_assertThisInitialized(_this), "onClick", function (e) {
|
|
10100
10227
|
if (isSpecialClick(e)) {
|
|
10101
10228
|
return;
|
|
10102
10229
|
}
|
|
@@ -10109,7 +10236,7 @@ function (_Component) {
|
|
|
10109
10236
|
return _this;
|
|
10110
10237
|
}
|
|
10111
10238
|
|
|
10112
|
-
|
|
10239
|
+
_createClass(Link, [{
|
|
10113
10240
|
key: "render",
|
|
10114
10241
|
value: function render() {
|
|
10115
10242
|
return React__default.createElement("a", index$5._extends({}, this.props, {
|
|
@@ -10121,7 +10248,7 @@ function (_Component) {
|
|
|
10121
10248
|
return Link;
|
|
10122
10249
|
}(React.Component);
|
|
10123
10250
|
|
|
10124
|
-
|
|
10251
|
+
_defineProperty(Link, "propTypes", {
|
|
10125
10252
|
onClick: PropTypes__default.func.isRequired
|
|
10126
10253
|
});
|
|
10127
10254
|
|
|
@@ -10134,15 +10261,15 @@ var itemsPropType = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
|
10134
10261
|
var Breadcrumb =
|
|
10135
10262
|
/*#__PURE__*/
|
|
10136
10263
|
function (_Component) {
|
|
10137
|
-
|
|
10264
|
+
_inherits(Breadcrumb, _Component);
|
|
10138
10265
|
|
|
10139
10266
|
function Breadcrumb() {
|
|
10140
|
-
|
|
10267
|
+
_classCallCheck(this, Breadcrumb);
|
|
10141
10268
|
|
|
10142
|
-
return
|
|
10269
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(Breadcrumb).apply(this, arguments));
|
|
10143
10270
|
}
|
|
10144
10271
|
|
|
10145
|
-
|
|
10272
|
+
_createClass(Breadcrumb, [{
|
|
10146
10273
|
key: "render",
|
|
10147
10274
|
value: function render() {
|
|
10148
10275
|
var _this$props = this.props,
|
|
@@ -10189,7 +10316,7 @@ function (_Component) {
|
|
|
10189
10316
|
return Breadcrumb;
|
|
10190
10317
|
}(React.Component);
|
|
10191
10318
|
|
|
10192
|
-
|
|
10319
|
+
_defineProperty(Breadcrumb, "propTypes", {
|
|
10193
10320
|
canRefine: PropTypes__default.bool.isRequired,
|
|
10194
10321
|
createURL: PropTypes__default.func.isRequired,
|
|
10195
10322
|
items: itemsPropType,
|
|
@@ -10200,7 +10327,7 @@ inherits$1$1._defineProperty(Breadcrumb, "propTypes", {
|
|
|
10200
10327
|
className: PropTypes__default.string
|
|
10201
10328
|
});
|
|
10202
10329
|
|
|
10203
|
-
|
|
10330
|
+
_defineProperty(Breadcrumb, "defaultProps", {
|
|
10204
10331
|
rootURL: null,
|
|
10205
10332
|
separator: ' > ',
|
|
10206
10333
|
className: ''
|
|
@@ -10309,15 +10436,15 @@ var cx$2 = createClassNames('ClearRefinements');
|
|
|
10309
10436
|
var ClearRefinements =
|
|
10310
10437
|
/*#__PURE__*/
|
|
10311
10438
|
function (_Component) {
|
|
10312
|
-
|
|
10439
|
+
_inherits(ClearRefinements, _Component);
|
|
10313
10440
|
|
|
10314
10441
|
function ClearRefinements() {
|
|
10315
|
-
|
|
10442
|
+
_classCallCheck(this, ClearRefinements);
|
|
10316
10443
|
|
|
10317
|
-
return
|
|
10444
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(ClearRefinements).apply(this, arguments));
|
|
10318
10445
|
}
|
|
10319
10446
|
|
|
10320
|
-
|
|
10447
|
+
_createClass(ClearRefinements, [{
|
|
10321
10448
|
key: "render",
|
|
10322
10449
|
value: function render() {
|
|
10323
10450
|
var _this$props = this.props,
|
|
@@ -10341,7 +10468,7 @@ function (_Component) {
|
|
|
10341
10468
|
return ClearRefinements;
|
|
10342
10469
|
}(React.Component);
|
|
10343
10470
|
|
|
10344
|
-
|
|
10471
|
+
_defineProperty(ClearRefinements, "propTypes", {
|
|
10345
10472
|
items: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
10346
10473
|
canRefine: PropTypes__default.bool.isRequired,
|
|
10347
10474
|
refine: PropTypes__default.func.isRequired,
|
|
@@ -10349,7 +10476,7 @@ inherits$1$1._defineProperty(ClearRefinements, "propTypes", {
|
|
|
10349
10476
|
className: PropTypes__default.string
|
|
10350
10477
|
});
|
|
10351
10478
|
|
|
10352
|
-
|
|
10479
|
+
_defineProperty(ClearRefinements, "defaultProps", {
|
|
10353
10480
|
className: ''
|
|
10354
10481
|
});
|
|
10355
10482
|
|
|
@@ -10556,20 +10683,20 @@ var defaultSubmit = React__default.createElement("svg", {
|
|
|
10556
10683
|
var SearchBox =
|
|
10557
10684
|
/*#__PURE__*/
|
|
10558
10685
|
function (_Component) {
|
|
10559
|
-
|
|
10686
|
+
_inherits(SearchBox, _Component);
|
|
10560
10687
|
|
|
10561
10688
|
function SearchBox(props) {
|
|
10562
10689
|
var _this;
|
|
10563
10690
|
|
|
10564
|
-
|
|
10691
|
+
_classCallCheck(this, SearchBox);
|
|
10565
10692
|
|
|
10566
|
-
_this =
|
|
10693
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(SearchBox).call(this));
|
|
10567
10694
|
|
|
10568
|
-
|
|
10695
|
+
_defineProperty(_assertThisInitialized(_this), "getQuery", function () {
|
|
10569
10696
|
return _this.props.searchAsYouType ? _this.props.currentRefinement : _this.state.query;
|
|
10570
10697
|
});
|
|
10571
10698
|
|
|
10572
|
-
|
|
10699
|
+
_defineProperty(_assertThisInitialized(_this), "onInputMount", function (input) {
|
|
10573
10700
|
_this.input = input;
|
|
10574
10701
|
if (!_this.props.inputRef) return;
|
|
10575
10702
|
|
|
@@ -10580,7 +10707,7 @@ function (_Component) {
|
|
|
10580
10707
|
}
|
|
10581
10708
|
});
|
|
10582
10709
|
|
|
10583
|
-
|
|
10710
|
+
_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (e) {
|
|
10584
10711
|
if (!_this.props.focusShortcuts) {
|
|
10585
10712
|
return;
|
|
10586
10713
|
}
|
|
@@ -10610,7 +10737,7 @@ function (_Component) {
|
|
|
10610
10737
|
e.preventDefault();
|
|
10611
10738
|
});
|
|
10612
10739
|
|
|
10613
|
-
|
|
10740
|
+
_defineProperty(_assertThisInitialized(_this), "onSubmit", function (e) {
|
|
10614
10741
|
e.preventDefault();
|
|
10615
10742
|
e.stopPropagation();
|
|
10616
10743
|
|
|
@@ -10627,7 +10754,7 @@ function (_Component) {
|
|
|
10627
10754
|
return false;
|
|
10628
10755
|
});
|
|
10629
10756
|
|
|
10630
|
-
|
|
10757
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (event) {
|
|
10631
10758
|
var _this$props2 = _this.props,
|
|
10632
10759
|
searchAsYouType = _this$props2.searchAsYouType,
|
|
10633
10760
|
refine = _this$props2.refine,
|
|
@@ -10647,7 +10774,7 @@ function (_Component) {
|
|
|
10647
10774
|
}
|
|
10648
10775
|
});
|
|
10649
10776
|
|
|
10650
|
-
|
|
10777
|
+
_defineProperty(_assertThisInitialized(_this), "onReset", function (event) {
|
|
10651
10778
|
var _this$props3 = _this.props,
|
|
10652
10779
|
searchAsYouType = _this$props3.searchAsYouType,
|
|
10653
10780
|
refine = _this$props3.refine,
|
|
@@ -10673,7 +10800,7 @@ function (_Component) {
|
|
|
10673
10800
|
return _this;
|
|
10674
10801
|
}
|
|
10675
10802
|
|
|
10676
|
-
|
|
10803
|
+
_createClass(SearchBox, [{
|
|
10677
10804
|
key: "componentDidMount",
|
|
10678
10805
|
value: function componentDidMount() {
|
|
10679
10806
|
document.addEventListener('keydown', this.onKeyDown);
|
|
@@ -10707,7 +10834,7 @@ function (_Component) {
|
|
|
10707
10834
|
var query = this.getQuery();
|
|
10708
10835
|
var searchInputEvents = Object.keys(this.props).reduce(function (props, prop) {
|
|
10709
10836
|
if (['onsubmit', 'onreset', 'onchange'].indexOf(prop.toLowerCase()) === -1 && prop.indexOf('on') === 0) {
|
|
10710
|
-
return _objectSpread({}, props,
|
|
10837
|
+
return _objectSpread({}, props, _defineProperty({}, prop, _this2.props[prop]));
|
|
10711
10838
|
}
|
|
10712
10839
|
|
|
10713
10840
|
return props;
|
|
@@ -10759,7 +10886,7 @@ function (_Component) {
|
|
|
10759
10886
|
return SearchBox;
|
|
10760
10887
|
}(React.Component);
|
|
10761
10888
|
|
|
10762
|
-
|
|
10889
|
+
_defineProperty(SearchBox, "propTypes", {
|
|
10763
10890
|
currentRefinement: PropTypes__default.string,
|
|
10764
10891
|
className: PropTypes__default.string,
|
|
10765
10892
|
refine: PropTypes__default.func.isRequired,
|
|
@@ -10780,7 +10907,7 @@ inherits$1$1._defineProperty(SearchBox, "propTypes", {
|
|
|
10780
10907
|
})])
|
|
10781
10908
|
});
|
|
10782
10909
|
|
|
10783
|
-
|
|
10910
|
+
_defineProperty(SearchBox, "defaultProps", {
|
|
10784
10911
|
currentRefinement: '',
|
|
10785
10912
|
className: '',
|
|
10786
10913
|
focusShortcuts: ['s', '/'],
|
|
@@ -10810,16 +10937,16 @@ var itemsPropType$1 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
|
10810
10937
|
var List =
|
|
10811
10938
|
/*#__PURE__*/
|
|
10812
10939
|
function (_Component) {
|
|
10813
|
-
|
|
10940
|
+
_inherits(List, _Component);
|
|
10814
10941
|
|
|
10815
10942
|
function List() {
|
|
10816
10943
|
var _this;
|
|
10817
10944
|
|
|
10818
|
-
|
|
10945
|
+
_classCallCheck(this, List);
|
|
10819
10946
|
|
|
10820
|
-
_this =
|
|
10947
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(List).call(this));
|
|
10821
10948
|
|
|
10822
|
-
|
|
10949
|
+
_defineProperty(_assertThisInitialized(_this), "onShowMoreClick", function () {
|
|
10823
10950
|
_this.setState(function (state) {
|
|
10824
10951
|
return {
|
|
10825
10952
|
extended: !state.extended
|
|
@@ -10827,7 +10954,7 @@ function (_Component) {
|
|
|
10827
10954
|
});
|
|
10828
10955
|
});
|
|
10829
10956
|
|
|
10830
|
-
|
|
10957
|
+
_defineProperty(_assertThisInitialized(_this), "getLimit", function () {
|
|
10831
10958
|
var _this$props = _this.props,
|
|
10832
10959
|
limit = _this$props.limit,
|
|
10833
10960
|
showMoreLimit = _this$props.showMoreLimit;
|
|
@@ -10835,13 +10962,13 @@ function (_Component) {
|
|
|
10835
10962
|
return extended ? showMoreLimit : limit;
|
|
10836
10963
|
});
|
|
10837
10964
|
|
|
10838
|
-
|
|
10965
|
+
_defineProperty(_assertThisInitialized(_this), "resetQuery", function () {
|
|
10839
10966
|
_this.setState({
|
|
10840
10967
|
query: ''
|
|
10841
10968
|
});
|
|
10842
10969
|
});
|
|
10843
10970
|
|
|
10844
|
-
|
|
10971
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10845
10972
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
10846
10973
|
return React__default.createElement("li", {
|
|
10847
10974
|
key: item.key || item.label,
|
|
@@ -10860,7 +10987,7 @@ function (_Component) {
|
|
|
10860
10987
|
return _this;
|
|
10861
10988
|
}
|
|
10862
10989
|
|
|
10863
|
-
|
|
10990
|
+
_createClass(List, [{
|
|
10864
10991
|
key: "renderShowMore",
|
|
10865
10992
|
value: function renderShowMore() {
|
|
10866
10993
|
var _this$props2 = this.props,
|
|
@@ -10954,7 +11081,7 @@ function (_Component) {
|
|
|
10954
11081
|
return List;
|
|
10955
11082
|
}(React.Component);
|
|
10956
11083
|
|
|
10957
|
-
|
|
11084
|
+
_defineProperty(List, "propTypes", {
|
|
10958
11085
|
cx: PropTypes__default.func.isRequired,
|
|
10959
11086
|
// Only required with showMore.
|
|
10960
11087
|
translate: PropTypes__default.func,
|
|
@@ -10972,7 +11099,7 @@ inherits$1$1._defineProperty(List, "propTypes", {
|
|
|
10972
11099
|
canRefine: PropTypes__default.bool
|
|
10973
11100
|
});
|
|
10974
11101
|
|
|
10975
|
-
|
|
11102
|
+
_defineProperty(List, "defaultProps", {
|
|
10976
11103
|
className: '',
|
|
10977
11104
|
isFromSearch: false
|
|
10978
11105
|
});
|
|
@@ -10990,22 +11117,22 @@ var itemsPropType$2 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
|
10990
11117
|
var HierarchicalMenu =
|
|
10991
11118
|
/*#__PURE__*/
|
|
10992
11119
|
function (_Component) {
|
|
10993
|
-
|
|
11120
|
+
_inherits(HierarchicalMenu, _Component);
|
|
10994
11121
|
|
|
10995
11122
|
function HierarchicalMenu() {
|
|
10996
11123
|
var _getPrototypeOf2;
|
|
10997
11124
|
|
|
10998
11125
|
var _this;
|
|
10999
11126
|
|
|
11000
|
-
|
|
11127
|
+
_classCallCheck(this, HierarchicalMenu);
|
|
11001
11128
|
|
|
11002
11129
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11003
11130
|
args[_key] = arguments[_key];
|
|
11004
11131
|
}
|
|
11005
11132
|
|
|
11006
|
-
_this =
|
|
11133
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(HierarchicalMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11007
11134
|
|
|
11008
|
-
|
|
11135
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item) {
|
|
11009
11136
|
var _this$props = _this.props,
|
|
11010
11137
|
createURL = _this$props.createURL,
|
|
11011
11138
|
refine = _this$props.refine;
|
|
@@ -11025,7 +11152,7 @@ function (_Component) {
|
|
|
11025
11152
|
return _this;
|
|
11026
11153
|
}
|
|
11027
11154
|
|
|
11028
|
-
|
|
11155
|
+
_createClass(HierarchicalMenu, [{
|
|
11029
11156
|
key: "render",
|
|
11030
11157
|
value: function render() {
|
|
11031
11158
|
var _this$props2 = this.props,
|
|
@@ -11053,7 +11180,7 @@ function (_Component) {
|
|
|
11053
11180
|
return HierarchicalMenu;
|
|
11054
11181
|
}(React.Component);
|
|
11055
11182
|
|
|
11056
|
-
|
|
11183
|
+
_defineProperty(HierarchicalMenu, "propTypes", {
|
|
11057
11184
|
translate: PropTypes__default.func.isRequired,
|
|
11058
11185
|
refine: PropTypes__default.func.isRequired,
|
|
11059
11186
|
createURL: PropTypes__default.func.isRequired,
|
|
@@ -11066,7 +11193,7 @@ inherits$1$1._defineProperty(HierarchicalMenu, "propTypes", {
|
|
|
11066
11193
|
transformItems: PropTypes__default.func
|
|
11067
11194
|
});
|
|
11068
11195
|
|
|
11069
|
-
|
|
11196
|
+
_defineProperty(HierarchicalMenu, "defaultProps", {
|
|
11070
11197
|
className: ''
|
|
11071
11198
|
});
|
|
11072
11199
|
|
|
@@ -11389,29 +11516,29 @@ var Hits$1 = connectHits(Hits);
|
|
|
11389
11516
|
var Select =
|
|
11390
11517
|
/*#__PURE__*/
|
|
11391
11518
|
function (_Component) {
|
|
11392
|
-
|
|
11519
|
+
_inherits(Select, _Component);
|
|
11393
11520
|
|
|
11394
11521
|
function Select() {
|
|
11395
11522
|
var _getPrototypeOf2;
|
|
11396
11523
|
|
|
11397
11524
|
var _this;
|
|
11398
11525
|
|
|
11399
|
-
|
|
11526
|
+
_classCallCheck(this, Select);
|
|
11400
11527
|
|
|
11401
11528
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11402
11529
|
args[_key] = arguments[_key];
|
|
11403
11530
|
}
|
|
11404
11531
|
|
|
11405
|
-
_this =
|
|
11532
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Select)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11406
11533
|
|
|
11407
|
-
|
|
11534
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (e) {
|
|
11408
11535
|
_this.props.onSelect(e.target.value);
|
|
11409
11536
|
});
|
|
11410
11537
|
|
|
11411
11538
|
return _this;
|
|
11412
11539
|
}
|
|
11413
11540
|
|
|
11414
|
-
|
|
11541
|
+
_createClass(Select, [{
|
|
11415
11542
|
key: "render",
|
|
11416
11543
|
value: function render() {
|
|
11417
11544
|
var _this$props = this.props,
|
|
@@ -11436,7 +11563,7 @@ function (_Component) {
|
|
|
11436
11563
|
return Select;
|
|
11437
11564
|
}(React.Component);
|
|
11438
11565
|
|
|
11439
|
-
|
|
11566
|
+
_defineProperty(Select, "propTypes", {
|
|
11440
11567
|
cx: PropTypes__default.func.isRequired,
|
|
11441
11568
|
onSelect: PropTypes__default.func.isRequired,
|
|
11442
11569
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
@@ -11453,15 +11580,15 @@ var cx$8 = createClassNames('HitsPerPage');
|
|
|
11453
11580
|
var HitsPerPage =
|
|
11454
11581
|
/*#__PURE__*/
|
|
11455
11582
|
function (_Component) {
|
|
11456
|
-
|
|
11583
|
+
_inherits(HitsPerPage, _Component);
|
|
11457
11584
|
|
|
11458
11585
|
function HitsPerPage() {
|
|
11459
|
-
|
|
11586
|
+
_classCallCheck(this, HitsPerPage);
|
|
11460
11587
|
|
|
11461
|
-
return
|
|
11588
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(HitsPerPage).apply(this, arguments));
|
|
11462
11589
|
}
|
|
11463
11590
|
|
|
11464
|
-
|
|
11591
|
+
_createClass(HitsPerPage, [{
|
|
11465
11592
|
key: "render",
|
|
11466
11593
|
value: function render() {
|
|
11467
11594
|
var _this$props = this.props,
|
|
@@ -11483,7 +11610,7 @@ function (_Component) {
|
|
|
11483
11610
|
return HitsPerPage;
|
|
11484
11611
|
}(React.Component);
|
|
11485
11612
|
|
|
11486
|
-
|
|
11613
|
+
_defineProperty(HitsPerPage, "propTypes", {
|
|
11487
11614
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11488
11615
|
value: PropTypes__default.number.isRequired,
|
|
11489
11616
|
label: PropTypes__default.string
|
|
@@ -11493,7 +11620,7 @@ inherits$1$1._defineProperty(HitsPerPage, "propTypes", {
|
|
|
11493
11620
|
className: PropTypes__default.string
|
|
11494
11621
|
});
|
|
11495
11622
|
|
|
11496
|
-
|
|
11623
|
+
_defineProperty(HitsPerPage, "defaultProps", {
|
|
11497
11624
|
className: ''
|
|
11498
11625
|
});
|
|
11499
11626
|
|
|
@@ -11546,15 +11673,15 @@ var cx$9 = createClassNames('InfiniteHits');
|
|
|
11546
11673
|
var InfiniteHits =
|
|
11547
11674
|
/*#__PURE__*/
|
|
11548
11675
|
function (_Component) {
|
|
11549
|
-
|
|
11676
|
+
_inherits(InfiniteHits, _Component);
|
|
11550
11677
|
|
|
11551
11678
|
function InfiniteHits() {
|
|
11552
|
-
|
|
11679
|
+
_classCallCheck(this, InfiniteHits);
|
|
11553
11680
|
|
|
11554
|
-
return
|
|
11681
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(InfiniteHits).apply(this, arguments));
|
|
11555
11682
|
}
|
|
11556
11683
|
|
|
11557
|
-
|
|
11684
|
+
_createClass(InfiniteHits, [{
|
|
11558
11685
|
key: "render",
|
|
11559
11686
|
value: function render() {
|
|
11560
11687
|
var _this$props = this.props,
|
|
@@ -11671,22 +11798,22 @@ var cx$a = createClassNames('Menu');
|
|
|
11671
11798
|
var Menu =
|
|
11672
11799
|
/*#__PURE__*/
|
|
11673
11800
|
function (_Component) {
|
|
11674
|
-
|
|
11801
|
+
_inherits(Menu, _Component);
|
|
11675
11802
|
|
|
11676
11803
|
function Menu() {
|
|
11677
11804
|
var _getPrototypeOf2;
|
|
11678
11805
|
|
|
11679
11806
|
var _this;
|
|
11680
11807
|
|
|
11681
|
-
|
|
11808
|
+
_classCallCheck(this, Menu);
|
|
11682
11809
|
|
|
11683
11810
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11684
11811
|
args[_key] = arguments[_key];
|
|
11685
11812
|
}
|
|
11686
11813
|
|
|
11687
|
-
_this =
|
|
11814
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Menu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11688
11815
|
|
|
11689
|
-
|
|
11816
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11690
11817
|
var createURL = _this.props.createURL;
|
|
11691
11818
|
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
11692
11819
|
attribute: "label",
|
|
@@ -11705,7 +11832,7 @@ function (_Component) {
|
|
|
11705
11832
|
}, item.count));
|
|
11706
11833
|
});
|
|
11707
11834
|
|
|
11708
|
-
|
|
11835
|
+
_defineProperty(_assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
11709
11836
|
resetQuery();
|
|
11710
11837
|
|
|
11711
11838
|
_this.props.refine(item.value);
|
|
@@ -11714,7 +11841,7 @@ function (_Component) {
|
|
|
11714
11841
|
return _this;
|
|
11715
11842
|
}
|
|
11716
11843
|
|
|
11717
|
-
|
|
11844
|
+
_createClass(Menu, [{
|
|
11718
11845
|
key: "render",
|
|
11719
11846
|
value: function render() {
|
|
11720
11847
|
var _this$props = this.props,
|
|
@@ -11749,7 +11876,7 @@ function (_Component) {
|
|
|
11749
11876
|
return Menu;
|
|
11750
11877
|
}(React.Component);
|
|
11751
11878
|
|
|
11752
|
-
|
|
11879
|
+
_defineProperty(Menu, "propTypes", {
|
|
11753
11880
|
translate: PropTypes__default.func.isRequired,
|
|
11754
11881
|
refine: PropTypes__default.func.isRequired,
|
|
11755
11882
|
searchForItems: PropTypes__default.func.isRequired,
|
|
@@ -11770,7 +11897,7 @@ inherits$1$1._defineProperty(Menu, "propTypes", {
|
|
|
11770
11897
|
className: PropTypes__default.string
|
|
11771
11898
|
});
|
|
11772
11899
|
|
|
11773
|
-
|
|
11900
|
+
_defineProperty(Menu, "defaultProps", {
|
|
11774
11901
|
className: ''
|
|
11775
11902
|
});
|
|
11776
11903
|
|
|
@@ -11846,22 +11973,22 @@ var cx$b = createClassNames('MenuSelect');
|
|
|
11846
11973
|
var MenuSelect =
|
|
11847
11974
|
/*#__PURE__*/
|
|
11848
11975
|
function (_Component) {
|
|
11849
|
-
|
|
11976
|
+
_inherits(MenuSelect, _Component);
|
|
11850
11977
|
|
|
11851
11978
|
function MenuSelect() {
|
|
11852
11979
|
var _getPrototypeOf2;
|
|
11853
11980
|
|
|
11854
11981
|
var _this;
|
|
11855
11982
|
|
|
11856
|
-
|
|
11983
|
+
_classCallCheck(this, MenuSelect);
|
|
11857
11984
|
|
|
11858
11985
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11859
11986
|
args[_key] = arguments[_key];
|
|
11860
11987
|
}
|
|
11861
11988
|
|
|
11862
|
-
_this =
|
|
11989
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MenuSelect)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11863
11990
|
|
|
11864
|
-
|
|
11991
|
+
_defineProperty(_assertThisInitialized(_this), "handleSelectChange", function (_ref) {
|
|
11865
11992
|
var value = _ref.target.value;
|
|
11866
11993
|
|
|
11867
11994
|
_this.props.refine(value === 'ais__see__all__option' ? '' : value);
|
|
@@ -11870,7 +11997,7 @@ function (_Component) {
|
|
|
11870
11997
|
return _this;
|
|
11871
11998
|
}
|
|
11872
11999
|
|
|
11873
|
-
|
|
12000
|
+
_createClass(MenuSelect, [{
|
|
11874
12001
|
key: "render",
|
|
11875
12002
|
value: function render() {
|
|
11876
12003
|
var _this$props = this.props,
|
|
@@ -11912,7 +12039,7 @@ function (_Component) {
|
|
|
11912
12039
|
return MenuSelect;
|
|
11913
12040
|
}(React.Component);
|
|
11914
12041
|
|
|
11915
|
-
|
|
12042
|
+
_defineProperty(MenuSelect, "propTypes", {
|
|
11916
12043
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11917
12044
|
label: PropTypes__default.string.isRequired,
|
|
11918
12045
|
value: PropTypes__default.string.isRequired,
|
|
@@ -11925,7 +12052,7 @@ inherits$1$1._defineProperty(MenuSelect, "propTypes", {
|
|
|
11925
12052
|
className: PropTypes__default.string
|
|
11926
12053
|
});
|
|
11927
12054
|
|
|
11928
|
-
|
|
12055
|
+
_defineProperty(MenuSelect, "defaultProps", {
|
|
11929
12056
|
className: ''
|
|
11930
12057
|
});
|
|
11931
12058
|
|
|
@@ -11980,22 +12107,22 @@ var cx$c = createClassNames('NumericMenu');
|
|
|
11980
12107
|
var NumericMenu =
|
|
11981
12108
|
/*#__PURE__*/
|
|
11982
12109
|
function (_Component) {
|
|
11983
|
-
|
|
12110
|
+
_inherits(NumericMenu, _Component);
|
|
11984
12111
|
|
|
11985
12112
|
function NumericMenu() {
|
|
11986
12113
|
var _getPrototypeOf2;
|
|
11987
12114
|
|
|
11988
12115
|
var _this;
|
|
11989
12116
|
|
|
11990
|
-
|
|
12117
|
+
_classCallCheck(this, NumericMenu);
|
|
11991
12118
|
|
|
11992
12119
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11993
12120
|
args[_key] = arguments[_key];
|
|
11994
12121
|
}
|
|
11995
12122
|
|
|
11996
|
-
_this =
|
|
12123
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(NumericMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11997
12124
|
|
|
11998
|
-
|
|
12125
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item) {
|
|
11999
12126
|
var _this$props = _this.props,
|
|
12000
12127
|
refine = _this$props.refine,
|
|
12001
12128
|
translate = _this$props.translate;
|
|
@@ -12017,7 +12144,7 @@ function (_Component) {
|
|
|
12017
12144
|
return _this;
|
|
12018
12145
|
}
|
|
12019
12146
|
|
|
12020
|
-
|
|
12147
|
+
_createClass(NumericMenu, [{
|
|
12021
12148
|
key: "render",
|
|
12022
12149
|
value: function render() {
|
|
12023
12150
|
var _this$props2 = this.props,
|
|
@@ -12042,7 +12169,7 @@ function (_Component) {
|
|
|
12042
12169
|
return NumericMenu;
|
|
12043
12170
|
}(React.Component);
|
|
12044
12171
|
|
|
12045
|
-
|
|
12172
|
+
_defineProperty(NumericMenu, "propTypes", {
|
|
12046
12173
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12047
12174
|
label: PropTypes__default.node.isRequired,
|
|
12048
12175
|
value: PropTypes__default.string.isRequired,
|
|
@@ -12055,7 +12182,7 @@ inherits$1$1._defineProperty(NumericMenu, "propTypes", {
|
|
|
12055
12182
|
className: PropTypes__default.string
|
|
12056
12183
|
});
|
|
12057
12184
|
|
|
12058
|
-
|
|
12185
|
+
_defineProperty(NumericMenu, "defaultProps", {
|
|
12059
12186
|
className: ''
|
|
12060
12187
|
});
|
|
12061
12188
|
|
|
@@ -12118,15 +12245,15 @@ connectNumericMenu(NumericMenuWidget);
|
|
|
12118
12245
|
var LinkList =
|
|
12119
12246
|
/*#__PURE__*/
|
|
12120
12247
|
function (_Component) {
|
|
12121
|
-
|
|
12248
|
+
_inherits(LinkList, _Component);
|
|
12122
12249
|
|
|
12123
12250
|
function LinkList() {
|
|
12124
|
-
|
|
12251
|
+
_classCallCheck(this, LinkList);
|
|
12125
12252
|
|
|
12126
|
-
return
|
|
12253
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(LinkList).apply(this, arguments));
|
|
12127
12254
|
}
|
|
12128
12255
|
|
|
12129
|
-
|
|
12256
|
+
_createClass(LinkList, [{
|
|
12130
12257
|
key: "render",
|
|
12131
12258
|
value: function render() {
|
|
12132
12259
|
var _this$props = this.props,
|
|
@@ -12158,7 +12285,7 @@ function (_Component) {
|
|
|
12158
12285
|
return LinkList;
|
|
12159
12286
|
}(React.Component);
|
|
12160
12287
|
|
|
12161
|
-
|
|
12288
|
+
_defineProperty(LinkList, "propTypes", {
|
|
12162
12289
|
cx: PropTypes__default.func.isRequired,
|
|
12163
12290
|
createURL: PropTypes__default.func.isRequired,
|
|
12164
12291
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
@@ -12212,15 +12339,15 @@ function getPages(currentPage, maxPages, padding) {
|
|
|
12212
12339
|
var Pagination =
|
|
12213
12340
|
/*#__PURE__*/
|
|
12214
12341
|
function (_Component) {
|
|
12215
|
-
|
|
12342
|
+
_inherits(Pagination, _Component);
|
|
12216
12343
|
|
|
12217
12344
|
function Pagination() {
|
|
12218
|
-
|
|
12345
|
+
_classCallCheck(this, Pagination);
|
|
12219
12346
|
|
|
12220
|
-
return
|
|
12347
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(Pagination).apply(this, arguments));
|
|
12221
12348
|
}
|
|
12222
12349
|
|
|
12223
|
-
|
|
12350
|
+
_createClass(Pagination, [{
|
|
12224
12351
|
key: "getItem",
|
|
12225
12352
|
value: function getItem(modifier, translationKey, value) {
|
|
12226
12353
|
var _this$props = this.props,
|
|
@@ -12330,7 +12457,7 @@ function (_Component) {
|
|
|
12330
12457
|
return Pagination;
|
|
12331
12458
|
}(React.Component);
|
|
12332
12459
|
|
|
12333
|
-
|
|
12460
|
+
_defineProperty(Pagination, "propTypes", {
|
|
12334
12461
|
nbPages: PropTypes__default.number.isRequired,
|
|
12335
12462
|
currentRefinement: PropTypes__default.number.isRequired,
|
|
12336
12463
|
refine: PropTypes__default.func.isRequired,
|
|
@@ -12347,7 +12474,7 @@ inherits$1$1._defineProperty(Pagination, "propTypes", {
|
|
|
12347
12474
|
className: PropTypes__default.string
|
|
12348
12475
|
});
|
|
12349
12476
|
|
|
12350
|
-
|
|
12477
|
+
_defineProperty(Pagination, "defaultProps", {
|
|
12351
12478
|
listComponent: LinkList,
|
|
12352
12479
|
showFirst: true,
|
|
12353
12480
|
showPrevious: true,
|
|
@@ -12477,15 +12604,15 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12477
12604
|
var PoweredBy =
|
|
12478
12605
|
/*#__PURE__*/
|
|
12479
12606
|
function (_Component) {
|
|
12480
|
-
|
|
12607
|
+
_inherits(PoweredBy, _Component);
|
|
12481
12608
|
|
|
12482
12609
|
function PoweredBy() {
|
|
12483
|
-
|
|
12610
|
+
_classCallCheck(this, PoweredBy);
|
|
12484
12611
|
|
|
12485
|
-
return
|
|
12612
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(PoweredBy).apply(this, arguments));
|
|
12486
12613
|
}
|
|
12487
12614
|
|
|
12488
|
-
|
|
12615
|
+
_createClass(PoweredBy, [{
|
|
12489
12616
|
key: "render",
|
|
12490
12617
|
value: function render() {
|
|
12491
12618
|
var _this$props = this.props,
|
|
@@ -12509,7 +12636,7 @@ function (_Component) {
|
|
|
12509
12636
|
return PoweredBy;
|
|
12510
12637
|
}(React.Component);
|
|
12511
12638
|
|
|
12512
|
-
|
|
12639
|
+
_defineProperty(PoweredBy, "propTypes", {
|
|
12513
12640
|
url: PropTypes__default.string.isRequired,
|
|
12514
12641
|
translate: PropTypes__default.func.isRequired,
|
|
12515
12642
|
className: PropTypes__default.string
|
|
@@ -12556,16 +12683,16 @@ var cx$f = createClassNames('RangeInput');
|
|
|
12556
12683
|
var RawRangeInput =
|
|
12557
12684
|
/*#__PURE__*/
|
|
12558
12685
|
function (_Component) {
|
|
12559
|
-
|
|
12686
|
+
_inherits(RawRangeInput, _Component);
|
|
12560
12687
|
|
|
12561
12688
|
function RawRangeInput(props) {
|
|
12562
12689
|
var _this;
|
|
12563
12690
|
|
|
12564
|
-
|
|
12691
|
+
_classCallCheck(this, RawRangeInput);
|
|
12565
12692
|
|
|
12566
|
-
_this =
|
|
12693
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(RawRangeInput).call(this, props));
|
|
12567
12694
|
|
|
12568
|
-
|
|
12695
|
+
_defineProperty(_assertThisInitialized(_this), "onSubmit", function (e) {
|
|
12569
12696
|
e.preventDefault();
|
|
12570
12697
|
|
|
12571
12698
|
_this.props.refine({
|
|
@@ -12578,7 +12705,7 @@ function (_Component) {
|
|
|
12578
12705
|
return _this;
|
|
12579
12706
|
}
|
|
12580
12707
|
|
|
12581
|
-
|
|
12708
|
+
_createClass(RawRangeInput, [{
|
|
12582
12709
|
key: "componentDidUpdate",
|
|
12583
12710
|
value: function componentDidUpdate(prevProps) {
|
|
12584
12711
|
if (this.props.canRefine && (prevProps.currentRefinement.min !== this.props.currentRefinement.min || prevProps.currentRefinement.max !== this.props.currentRefinement.max)) {
|
|
@@ -12676,7 +12803,7 @@ function (_Component) {
|
|
|
12676
12803
|
return RawRangeInput;
|
|
12677
12804
|
}(React.Component);
|
|
12678
12805
|
|
|
12679
|
-
|
|
12806
|
+
_defineProperty(RawRangeInput, "propTypes", {
|
|
12680
12807
|
canRefine: PropTypes__default.bool.isRequired,
|
|
12681
12808
|
precision: PropTypes__default.number.isRequired,
|
|
12682
12809
|
translate: PropTypes__default.func.isRequired,
|
|
@@ -12690,7 +12817,7 @@ inherits$1$1._defineProperty(RawRangeInput, "propTypes", {
|
|
|
12690
12817
|
className: PropTypes__default.string
|
|
12691
12818
|
});
|
|
12692
12819
|
|
|
12693
|
-
|
|
12820
|
+
_defineProperty(RawRangeInput, "defaultProps", {
|
|
12694
12821
|
currentRefinement: {},
|
|
12695
12822
|
className: ''
|
|
12696
12823
|
});
|
|
@@ -12753,15 +12880,15 @@ var cx$g = createClassNames('RatingMenu');
|
|
|
12753
12880
|
var RatingMenu =
|
|
12754
12881
|
/*#__PURE__*/
|
|
12755
12882
|
function (_Component) {
|
|
12756
|
-
|
|
12883
|
+
_inherits(RatingMenu, _Component);
|
|
12757
12884
|
|
|
12758
12885
|
function RatingMenu() {
|
|
12759
|
-
|
|
12886
|
+
_classCallCheck(this, RatingMenu);
|
|
12760
12887
|
|
|
12761
|
-
return
|
|
12888
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(RatingMenu).apply(this, arguments));
|
|
12762
12889
|
}
|
|
12763
12890
|
|
|
12764
|
-
|
|
12891
|
+
_createClass(RatingMenu, [{
|
|
12765
12892
|
key: "onClick",
|
|
12766
12893
|
value: function onClick(min, max, e) {
|
|
12767
12894
|
e.preventDefault();
|
|
@@ -12911,7 +13038,7 @@ function (_Component) {
|
|
|
12911
13038
|
return RatingMenu;
|
|
12912
13039
|
}(React.Component);
|
|
12913
13040
|
|
|
12914
|
-
|
|
13041
|
+
_defineProperty(RatingMenu, "propTypes", {
|
|
12915
13042
|
translate: PropTypes__default.func.isRequired,
|
|
12916
13043
|
refine: PropTypes__default.func.isRequired,
|
|
12917
13044
|
createURL: PropTypes__default.func.isRequired,
|
|
@@ -12929,7 +13056,7 @@ inherits$1$1._defineProperty(RatingMenu, "propTypes", {
|
|
|
12929
13056
|
className: PropTypes__default.string
|
|
12930
13057
|
});
|
|
12931
13058
|
|
|
12932
|
-
|
|
13059
|
+
_defineProperty(RatingMenu, "defaultProps", {
|
|
12933
13060
|
className: ''
|
|
12934
13061
|
});
|
|
12935
13062
|
|
|
@@ -12996,32 +13123,32 @@ var cx$h = createClassNames('RefinementList');
|
|
|
12996
13123
|
var RefinementList$1 =
|
|
12997
13124
|
/*#__PURE__*/
|
|
12998
13125
|
function (_Component) {
|
|
12999
|
-
|
|
13126
|
+
_inherits(RefinementList, _Component);
|
|
13000
13127
|
|
|
13001
13128
|
function RefinementList() {
|
|
13002
13129
|
var _getPrototypeOf2;
|
|
13003
13130
|
|
|
13004
13131
|
var _this;
|
|
13005
13132
|
|
|
13006
|
-
|
|
13133
|
+
_classCallCheck(this, RefinementList);
|
|
13007
13134
|
|
|
13008
13135
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13009
13136
|
args[_key] = arguments[_key];
|
|
13010
13137
|
}
|
|
13011
13138
|
|
|
13012
|
-
_this =
|
|
13139
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(RefinementList)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
13013
13140
|
|
|
13014
|
-
|
|
13141
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
13015
13142
|
query: ''
|
|
13016
13143
|
});
|
|
13017
13144
|
|
|
13018
|
-
|
|
13145
|
+
_defineProperty(_assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
13019
13146
|
resetQuery();
|
|
13020
13147
|
|
|
13021
13148
|
_this.props.refine(item.value);
|
|
13022
13149
|
});
|
|
13023
13150
|
|
|
13024
|
-
|
|
13151
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13025
13152
|
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
13026
13153
|
attribute: "label",
|
|
13027
13154
|
hit: item
|
|
@@ -13045,7 +13172,7 @@ function (_Component) {
|
|
|
13045
13172
|
return _this;
|
|
13046
13173
|
}
|
|
13047
13174
|
|
|
13048
|
-
|
|
13175
|
+
_createClass(RefinementList, [{
|
|
13049
13176
|
key: "render",
|
|
13050
13177
|
value: function render() {
|
|
13051
13178
|
var _this$props = this.props,
|
|
@@ -13081,7 +13208,7 @@ function (_Component) {
|
|
|
13081
13208
|
return RefinementList;
|
|
13082
13209
|
}(React.Component);
|
|
13083
13210
|
|
|
13084
|
-
|
|
13211
|
+
_defineProperty(RefinementList$1, "propTypes", {
|
|
13085
13212
|
translate: PropTypes__default.func.isRequired,
|
|
13086
13213
|
refine: PropTypes__default.func.isRequired,
|
|
13087
13214
|
searchForItems: PropTypes__default.func.isRequired,
|
|
@@ -13102,7 +13229,7 @@ inherits$1$1._defineProperty(RefinementList$1, "propTypes", {
|
|
|
13102
13229
|
className: PropTypes__default.string
|
|
13103
13230
|
});
|
|
13104
13231
|
|
|
13105
|
-
|
|
13232
|
+
_defineProperty(RefinementList$1, "defaultProps", {
|
|
13106
13233
|
className: ''
|
|
13107
13234
|
});
|
|
13108
13235
|
|
|
@@ -13181,15 +13308,15 @@ var cx$i = createClassNames('ScrollTo');
|
|
|
13181
13308
|
var ScrollTo =
|
|
13182
13309
|
/*#__PURE__*/
|
|
13183
13310
|
function (_Component) {
|
|
13184
|
-
|
|
13311
|
+
_inherits(ScrollTo, _Component);
|
|
13185
13312
|
|
|
13186
13313
|
function ScrollTo() {
|
|
13187
|
-
|
|
13314
|
+
_classCallCheck(this, ScrollTo);
|
|
13188
13315
|
|
|
13189
|
-
return
|
|
13316
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(ScrollTo).apply(this, arguments));
|
|
13190
13317
|
}
|
|
13191
13318
|
|
|
13192
|
-
|
|
13319
|
+
_createClass(ScrollTo, [{
|
|
13193
13320
|
key: "componentDidUpdate",
|
|
13194
13321
|
value: function componentDidUpdate(prevProps) {
|
|
13195
13322
|
var _this$props = this.props,
|
|
@@ -13217,7 +13344,7 @@ function (_Component) {
|
|
|
13217
13344
|
return ScrollTo;
|
|
13218
13345
|
}(React.Component);
|
|
13219
13346
|
|
|
13220
|
-
|
|
13347
|
+
_defineProperty(ScrollTo, "propTypes", {
|
|
13221
13348
|
value: PropTypes__default.any,
|
|
13222
13349
|
children: PropTypes__default.node,
|
|
13223
13350
|
hasNotChanged: PropTypes__default.bool
|
|
@@ -13408,15 +13535,15 @@ var cx$l = createClassNames('SortBy');
|
|
|
13408
13535
|
var SortBy =
|
|
13409
13536
|
/*#__PURE__*/
|
|
13410
13537
|
function (_Component) {
|
|
13411
|
-
|
|
13538
|
+
_inherits(SortBy, _Component);
|
|
13412
13539
|
|
|
13413
13540
|
function SortBy() {
|
|
13414
|
-
|
|
13541
|
+
_classCallCheck(this, SortBy);
|
|
13415
13542
|
|
|
13416
|
-
return
|
|
13543
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(SortBy).apply(this, arguments));
|
|
13417
13544
|
}
|
|
13418
13545
|
|
|
13419
|
-
|
|
13546
|
+
_createClass(SortBy, [{
|
|
13420
13547
|
key: "render",
|
|
13421
13548
|
value: function render() {
|
|
13422
13549
|
var _this$props = this.props,
|
|
@@ -13438,7 +13565,7 @@ function (_Component) {
|
|
|
13438
13565
|
return SortBy;
|
|
13439
13566
|
}(React.Component);
|
|
13440
13567
|
|
|
13441
|
-
|
|
13568
|
+
_defineProperty(SortBy, "propTypes", {
|
|
13442
13569
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
13443
13570
|
label: PropTypes__default.string,
|
|
13444
13571
|
value: PropTypes__default.string.isRequired
|
|
@@ -13448,7 +13575,7 @@ inherits$1$1._defineProperty(SortBy, "propTypes", {
|
|
|
13448
13575
|
className: PropTypes__default.string
|
|
13449
13576
|
});
|
|
13450
13577
|
|
|
13451
|
-
|
|
13578
|
+
_defineProperty(SortBy, "defaultProps", {
|
|
13452
13579
|
className: ''
|
|
13453
13580
|
});
|
|
13454
13581
|
|
|
@@ -13849,24 +13976,24 @@ var DefaultStatus = function DefaultStatus(_ref3) {
|
|
|
13849
13976
|
var VoiceSearch =
|
|
13850
13977
|
/*#__PURE__*/
|
|
13851
13978
|
function (_Component) {
|
|
13852
|
-
|
|
13979
|
+
_inherits(VoiceSearch, _Component);
|
|
13853
13980
|
|
|
13854
13981
|
function VoiceSearch() {
|
|
13855
13982
|
var _getPrototypeOf2;
|
|
13856
13983
|
|
|
13857
13984
|
var _this;
|
|
13858
13985
|
|
|
13859
|
-
|
|
13986
|
+
_classCallCheck(this, VoiceSearch);
|
|
13860
13987
|
|
|
13861
13988
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13862
13989
|
args[_key] = arguments[_key];
|
|
13863
13990
|
}
|
|
13864
13991
|
|
|
13865
|
-
_this =
|
|
13992
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(VoiceSearch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
13866
13993
|
|
|
13867
|
-
|
|
13994
|
+
_defineProperty(_assertThisInitialized(_this), "voiceSearchHelper", void 0);
|
|
13868
13995
|
|
|
13869
|
-
|
|
13996
|
+
_defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
|
|
13870
13997
|
if (!_this.voiceSearchHelper) {
|
|
13871
13998
|
return;
|
|
13872
13999
|
}
|
|
@@ -13879,7 +14006,7 @@ function (_Component) {
|
|
|
13879
14006
|
return _this;
|
|
13880
14007
|
}
|
|
13881
14008
|
|
|
13882
|
-
|
|
14009
|
+
_createClass(VoiceSearch, [{
|
|
13883
14010
|
key: "componentDidMount",
|
|
13884
14011
|
value: function componentDidMount() {
|
|
13885
14012
|
var _this2 = this;
|
|
@@ -13952,7 +14079,7 @@ function (_Component) {
|
|
|
13952
14079
|
return VoiceSearch;
|
|
13953
14080
|
}(React.Component);
|
|
13954
14081
|
|
|
13955
|
-
|
|
14082
|
+
_defineProperty(VoiceSearch, "defaultProps", {
|
|
13956
14083
|
searchAsYouSpeak: false,
|
|
13957
14084
|
buttonTextComponent: DefaultButtonText,
|
|
13958
14085
|
statusComponent: DefaultStatus
|
|
@@ -14025,7 +14152,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14025
14152
|
index$2.LazyLoad,
|
|
14026
14153
|
null,
|
|
14027
14154
|
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
|
|
14155
|
+
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2._typeof(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14029
14156
|
})
|
|
14030
14157
|
)
|
|
14031
14158
|
)
|