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