@mjhls/mjh-framework 1.0.850-affiliatefix-v1 → 1.0.850-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -31
- package/dist/cjs/AD300x250x600.js +30 -31
- package/dist/cjs/AD728x90.js +33 -34
- package/dist/cjs/ADFloatingFooter.js +32 -33
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -33
- package/dist/cjs/{ADInfeed-859820d9.js → ADInfeed-98c71bcd.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -33
- package/dist/cjs/ADSponsoredResources.js +32 -33
- package/dist/cjs/ADWebcast.js +32 -33
- package/dist/cjs/ADWelcome.js +33 -34
- package/dist/cjs/{ADlgInfeed-da3a36a6.js → ADlgInfeed-9de32585.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +101 -34
- package/dist/cjs/AdSlotsProvider.js +925 -24
- package/dist/cjs/AlgoliaSearch.js +1276 -1371
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +59 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -62
- package/dist/cjs/Auth.js +462 -686
- package/dist/cjs/AuthWrapper.js +423 -1739
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -62
- package/dist/cjs/ConferenceArticleCard.js +37 -38
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +103 -107
- package/dist/cjs/DeckQueue.js +90 -94
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
- package/dist/cjs/EventsDeck.js +152 -159
- package/dist/cjs/ExternalResources.js +80 -81
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +304 -190
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +141 -146
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +72 -73
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +73 -78
- package/dist/cjs/IssueDeck.js +72 -77
- package/dist/cjs/IssueLanding.js +93 -96
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +80 -81
- package/dist/cjs/MediaSeriesLanding.js +1137 -1228
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +148 -153
- package/dist/cjs/NavNative.js +145 -153
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +72 -73
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +1205 -115
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +40 -43
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +62 -67
- package/dist/cjs/PublicationLanding.js +135 -139
- package/dist/cjs/QueueDeckExpanded.js +1150 -1131
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +54 -55
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +368 -343
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-34c6cc2b.js → SeriesSlider-8bbc989f.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +55 -56
- package/dist/cjs/TemplateNormal.js +74 -75
- package/dist/cjs/ThumbnailCard.js +21 -23
- package/dist/cjs/Ustream.js +30 -31
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +82 -81
- package/dist/cjs/View.js +342 -264
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +66 -67
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-f1821260.js} +26 -17
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-060c5d65.js → index-bc88f898.js} +1039 -1005
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +164 -169
- package/dist/cjs/{inherits-c2065b95.js → inherits-452ff02c.js} +19 -19
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-4bf3b2f9.js → ADInfeed-bbdd5398.js} +6 -6
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +20 -20
- package/dist/esm/{ADlgInfeed-a3377c4a.js → ADlgInfeed-4473ee3b.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +92 -24
- package/dist/esm/AdSlotsProvider.js +922 -20
- package/dist/esm/AlgoliaSearch.js +505 -599
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +50 -50
- package/dist/esm/ArticleSeriesLandingPage.js +32 -32
- package/dist/esm/ArticleSeriesListing.js +34 -34
- package/dist/esm/Auth.js +375 -595
- package/dist/esm/AuthWrapper.js +396 -1711
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +21 -21
- package/dist/esm/Column3.js +39 -39
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +57 -57
- package/dist/esm/DeckQueue.js +50 -50
- package/dist/esm/{Dfp-2c43d2a0.js → Dfp-b7236041.js} +15 -15
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +48 -48
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +200 -82
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +39 -39
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +47 -47
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +27 -27
- package/dist/esm/IssueDeck.js +37 -37
- package/dist/esm/IssueLanding.js +82 -84
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +22 -22
- package/dist/esm/MasterDeck.js +45 -45
- package/dist/esm/MediaSeriesLanding.js +663 -751
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +44 -44
- package/dist/esm/NavNative.js +49 -49
- package/dist/esm/OncliveHero.js +5 -4
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1155 -65
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +32 -34
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +24 -24
- package/dist/esm/PublicationLanding.js +76 -76
- package/dist/esm/QueueDeckExpanded.js +1103 -1084
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +35 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +368 -343
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-5d5c08f4.js → SeriesSlider-a866bb21.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
- package/dist/esm/TaxonomyCard.js +25 -25
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +50 -50
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +54 -54
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +39 -37
- package/dist/esm/View.js +174 -92
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +26 -26
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-4877b617.js} +33 -33
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-bd800589.js} +25 -16
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index-01d53c17.js → index-f2a0d400.js} +688 -647
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -124
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +111 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
2
|
-
import { _ as _typeof$2 } from './typeof-a286cf0c.js';
|
|
3
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a41fe93f.js';
|
|
4
|
-
import React__default, { createContext, Component, Children, version as version$2 } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import { _ as _typeof$1 } from './typeof-2f07d0e8.js';
|
|
7
|
-
import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-98ca9cec.js';
|
|
8
|
-
import { E as EventEmitter } from './events-6c3a7a63.js';
|
|
9
|
-
import { DropdownButton } from 'react-bootstrap';
|
|
10
|
-
import urlFor from './urlFor.js';
|
|
11
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
12
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
13
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
|
-
import './_to-object-
|
|
15
|
-
import './
|
|
16
|
-
import './es6.string.iterator-bc33758b.js';
|
|
17
|
-
import './web.dom.iterable-4109ff68.js';
|
|
18
|
-
import './_is-array-3e99e06e.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
19
4
|
import './_library-528f1934.js';
|
|
20
|
-
import './_object-
|
|
21
|
-
import './
|
|
22
|
-
import './
|
|
5
|
+
import './_object-pie-33c40e79.js';
|
|
6
|
+
import { _ as _extends$1 } from './extends-6f2fcc99.js';
|
|
7
|
+
import './_object-sap-964b6feb.js';
|
|
8
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-cf8dde54.js';
|
|
9
|
+
import './define-property-8af5f002.js';
|
|
10
|
+
import './web.dom.iterable-4439f05a.js';
|
|
11
|
+
import { _ as _typeof$1 } from './typeof-6435ba1c.js';
|
|
12
|
+
import './_is-array-58e95429.js';
|
|
13
|
+
import React__default, { createContext, Component, Children, version as version$2 } from 'react';
|
|
14
|
+
import { E as EventEmitter } from './events-6c3a7a63.js';
|
|
15
|
+
import PropTypes from 'prop-types';
|
|
16
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
23
17
|
import 'react-dom';
|
|
18
|
+
import './index-73819142.js';
|
|
19
|
+
import urlFor from './urlFor.js';
|
|
20
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
21
|
+
import { DropdownButton } from 'react-bootstrap';
|
|
22
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
23
|
+
import { _ as _defineProperty, a as _typeof, b as _inherits, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, f as _assertThisInitialized, g as _createClass } from './inherits-77d5e4fc.js';
|
|
24
24
|
|
|
25
25
|
function _objectWithoutProperties(source, excluded) {
|
|
26
26
|
if (source == null) return {};
|
|
@@ -41,24 +41,9 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
41
41
|
return target;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
function _defineProperty(obj, key, value) {
|
|
45
|
-
if (key in obj) {
|
|
46
|
-
Object.defineProperty(obj, key, {
|
|
47
|
-
value: value,
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true,
|
|
50
|
-
writable: true
|
|
51
|
-
});
|
|
52
|
-
} else {
|
|
53
|
-
obj[key] = value;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return obj;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
44
|
function _objectSpread(target) {
|
|
60
45
|
for (var i = 1; i < arguments.length; i++) {
|
|
61
|
-
var source = arguments[i] != null ?
|
|
46
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
62
47
|
var ownKeys = Object.keys(source);
|
|
63
48
|
|
|
64
49
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
@@ -75,66 +60,6 @@ function _objectSpread(target) {
|
|
|
75
60
|
return target;
|
|
76
61
|
}
|
|
77
62
|
|
|
78
|
-
function _classCallCheck(instance, Constructor) {
|
|
79
|
-
if (!(instance instanceof Constructor)) {
|
|
80
|
-
throw new TypeError("Cannot call a class as a function");
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function _defineProperties(target, props) {
|
|
85
|
-
for (var i = 0; i < props.length; i++) {
|
|
86
|
-
var descriptor = props[i];
|
|
87
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
88
|
-
descriptor.configurable = true;
|
|
89
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
90
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
95
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
96
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
97
|
-
return Constructor;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function _assertThisInitialized(self) {
|
|
101
|
-
if (self === void 0) {
|
|
102
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return self;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function _possibleConstructorReturn(self, call) {
|
|
109
|
-
if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
|
|
110
|
-
return call;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return _assertThisInitialized(self);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function _getPrototypeOf(o) {
|
|
117
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
118
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
119
|
-
};
|
|
120
|
-
return _getPrototypeOf(o);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function _inherits(subClass, superClass) {
|
|
124
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
125
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
129
|
-
constructor: {
|
|
130
|
-
value: subClass,
|
|
131
|
-
writable: true,
|
|
132
|
-
configurable: true
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
63
|
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
139
64
|
|
|
140
65
|
var hasElementType = typeof Element !== 'undefined';
|
|
@@ -270,22 +195,6 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
270
195
|
}
|
|
271
196
|
};
|
|
272
197
|
|
|
273
|
-
function _typeof(obj) {
|
|
274
|
-
"@babel/helpers - typeof";
|
|
275
|
-
|
|
276
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
277
|
-
_typeof = function _typeof(obj) {
|
|
278
|
-
return typeof obj;
|
|
279
|
-
};
|
|
280
|
-
} else {
|
|
281
|
-
_typeof = function _typeof(obj) {
|
|
282
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
return _typeof(obj);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
198
|
// From https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
|
|
290
199
|
var shallowEqual = function shallowEqual(objA, objB) {
|
|
291
200
|
if (objA === objB) {
|
|
@@ -330,7 +239,7 @@ var removeEmptyKey = function removeEmptyKey(obj) {
|
|
|
330
239
|
return;
|
|
331
240
|
}
|
|
332
241
|
|
|
333
|
-
if (!objectHasKeys
|
|
242
|
+
if (!objectHasKeys(value)) {
|
|
334
243
|
delete obj[key];
|
|
335
244
|
} else {
|
|
336
245
|
removeEmptyKey(value);
|
|
@@ -366,7 +275,7 @@ function addQueryID(hits, queryID) {
|
|
|
366
275
|
});
|
|
367
276
|
});
|
|
368
277
|
}
|
|
369
|
-
function find
|
|
278
|
+
function find(array, comparator) {
|
|
370
279
|
if (!Array.isArray(array)) {
|
|
371
280
|
return undefined;
|
|
372
281
|
}
|
|
@@ -379,11 +288,11 @@ function find$2(array, comparator) {
|
|
|
379
288
|
|
|
380
289
|
return undefined;
|
|
381
290
|
}
|
|
382
|
-
function objectHasKeys
|
|
291
|
+
function objectHasKeys(object) {
|
|
383
292
|
return object && Object.keys(object).length > 0;
|
|
384
293
|
} // https://github.com/babel/babel/blob/3aaafae053fa75febb3aa45d45b6f00646e30ba4/packages/babel-helpers/src/helpers.js#L604-L620
|
|
385
294
|
|
|
386
|
-
function omit
|
|
295
|
+
function omit(source, excluded) {
|
|
387
296
|
if (source === null || source === undefined) {
|
|
388
297
|
return {};
|
|
389
298
|
}
|
|
@@ -454,9 +363,9 @@ var instantSearchContext = createContext({
|
|
|
454
363
|
var InstantSearchConsumer = instantSearchContext.Consumer,
|
|
455
364
|
InstantSearchProvider = instantSearchContext.Provider;
|
|
456
365
|
|
|
457
|
-
var _createContext
|
|
458
|
-
IndexConsumer = _createContext
|
|
459
|
-
IndexProvider = _createContext
|
|
366
|
+
var _createContext = createContext(undefined),
|
|
367
|
+
IndexConsumer = _createContext.Consumer,
|
|
368
|
+
IndexProvider = _createContext.Provider;
|
|
460
369
|
|
|
461
370
|
/**
|
|
462
371
|
* Connectors are the HOC used to transform React components
|
|
@@ -669,9 +578,9 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
669
578
|
}, {
|
|
670
579
|
key: "render",
|
|
671
580
|
value: function render() {
|
|
672
|
-
var _this$props = this.props
|
|
673
|
-
_this$props.contextValue
|
|
674
|
-
|
|
581
|
+
var _this$props = this.props,
|
|
582
|
+
contextValue = _this$props.contextValue,
|
|
583
|
+
props = _objectWithoutProperties(_this$props, ["contextValue"]);
|
|
675
584
|
|
|
676
585
|
var providedProps = this.state.providedProps;
|
|
677
586
|
|
|
@@ -822,7 +731,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
822
731
|
});
|
|
823
732
|
}
|
|
824
733
|
|
|
825
|
-
var version
|
|
734
|
+
var version = '6.10.3';
|
|
826
735
|
|
|
827
736
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
828
737
|
return function (props, propName, componentName) {
|
|
@@ -1019,7 +928,7 @@ function hasRefinements(_ref) {
|
|
|
1019
928
|
return Object.hasOwnProperty.call(searchState, id);
|
|
1020
929
|
}
|
|
1021
930
|
|
|
1022
|
-
function getRefinements
|
|
931
|
+
function getRefinements(_ref2) {
|
|
1023
932
|
var multiIndex = _ref2.multiIndex,
|
|
1024
933
|
indexId = _ref2.indexId,
|
|
1025
934
|
namespace = _ref2.namespace,
|
|
@@ -1061,7 +970,7 @@ function getCurrentRefinementValue(props, searchState, context, id, defaultValue
|
|
|
1061
970
|
var hasRefinementsValue = hasRefinements(args);
|
|
1062
971
|
|
|
1063
972
|
if (hasRefinementsValue) {
|
|
1064
|
-
return getRefinements
|
|
973
|
+
return getRefinements(args);
|
|
1065
974
|
}
|
|
1066
975
|
|
|
1067
976
|
if (props.defaultRefinement) {
|
|
@@ -1102,10 +1011,10 @@ function cleanUpValueWithSingleIndex(_ref3) {
|
|
|
1102
1011
|
attribute = _ref3.attribute;
|
|
1103
1012
|
|
|
1104
1013
|
if (namespace) {
|
|
1105
|
-
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit
|
|
1014
|
+
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1106
1015
|
}
|
|
1107
1016
|
|
|
1108
|
-
return omit
|
|
1017
|
+
return omit(searchState, [id]);
|
|
1109
1018
|
}
|
|
1110
1019
|
|
|
1111
1020
|
function cleanUpValueWithMultiIndex(_ref4) {
|
|
@@ -1118,20 +1027,20 @@ function cleanUpValueWithMultiIndex(_ref4) {
|
|
|
1118
1027
|
|
|
1119
1028
|
if (namespace && indexSearchState) {
|
|
1120
1029
|
return _objectSpread({}, searchState, {
|
|
1121
|
-
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit
|
|
1030
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit(indexSearchState[namespace], [attribute])))))
|
|
1122
1031
|
});
|
|
1123
1032
|
}
|
|
1124
1033
|
|
|
1125
1034
|
if (indexSearchState) {
|
|
1126
1035
|
return _objectSpread({}, searchState, {
|
|
1127
|
-
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit
|
|
1036
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1128
1037
|
});
|
|
1129
1038
|
}
|
|
1130
1039
|
|
|
1131
1040
|
return searchState;
|
|
1132
1041
|
}
|
|
1133
1042
|
|
|
1134
|
-
function getId
|
|
1043
|
+
function getId() {
|
|
1135
1044
|
return 'configure';
|
|
1136
1045
|
}
|
|
1137
1046
|
|
|
@@ -1141,20 +1050,20 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1141
1050
|
return {};
|
|
1142
1051
|
},
|
|
1143
1052
|
getSearchParameters: function getSearchParameters(searchParameters, props) {
|
|
1144
|
-
props.children
|
|
1145
|
-
props.contextValue
|
|
1146
|
-
props.indexContextValue
|
|
1147
|
-
|
|
1053
|
+
var children = props.children,
|
|
1054
|
+
contextValue = props.contextValue,
|
|
1055
|
+
indexContextValue = props.indexContextValue,
|
|
1056
|
+
items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
|
|
1148
1057
|
|
|
1149
1058
|
return searchParameters.setQueryParameters(items);
|
|
1150
1059
|
},
|
|
1151
1060
|
transitionState: function transitionState(props, prevSearchState, nextSearchState) {
|
|
1152
|
-
var id = getId
|
|
1061
|
+
var id = getId();
|
|
1153
1062
|
|
|
1154
|
-
props.children
|
|
1155
|
-
props.contextValue
|
|
1156
|
-
props.indexContextValue
|
|
1157
|
-
|
|
1063
|
+
var children = props.children,
|
|
1064
|
+
contextValue = props.contextValue,
|
|
1065
|
+
indexContextValue = props.indexContextValue,
|
|
1066
|
+
items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
|
|
1158
1067
|
|
|
1159
1068
|
var propKeys = Object.keys(props);
|
|
1160
1069
|
var nonPresentKeys = this._props ? Object.keys(this._props).filter(function (prop) {
|
|
@@ -1162,7 +1071,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1162
1071
|
}) : [];
|
|
1163
1072
|
this._props = props;
|
|
1164
1073
|
|
|
1165
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit
|
|
1074
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1166
1075
|
|
|
1167
1076
|
return refineValue(nextSearchState, nextValue, {
|
|
1168
1077
|
ais: props.contextValue,
|
|
@@ -1170,7 +1079,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1170
1079
|
});
|
|
1171
1080
|
},
|
|
1172
1081
|
cleanUp: function cleanUp(props, searchState) {
|
|
1173
|
-
var id = getId
|
|
1082
|
+
var id = getId();
|
|
1174
1083
|
var indexId = getIndexId({
|
|
1175
1084
|
ais: props.contextValue,
|
|
1176
1085
|
multiIndexContext: props.indexContextValue
|
|
@@ -1236,39 +1145,26 @@ var Configure = connectConfigure(function Configure() {
|
|
|
1236
1145
|
return null;
|
|
1237
1146
|
});
|
|
1238
1147
|
|
|
1239
|
-
function
|
|
1240
|
-
if (
|
|
1148
|
+
function _arrayWithoutHoles(arr) {
|
|
1149
|
+
if (Array.isArray(arr)) {
|
|
1150
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
1151
|
+
arr2[i] = arr[i];
|
|
1152
|
+
}
|
|
1241
1153
|
|
|
1242
|
-
|
|
1243
|
-
arr2[i] = arr[i];
|
|
1154
|
+
return arr2;
|
|
1244
1155
|
}
|
|
1245
|
-
|
|
1246
|
-
return arr2;
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
function _arrayWithoutHoles(arr) {
|
|
1250
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1251
1156
|
}
|
|
1252
1157
|
|
|
1253
1158
|
function _iterableToArray(iter) {
|
|
1254
|
-
if (
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1258
|
-
if (!o) return;
|
|
1259
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1260
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1261
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1262
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1263
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1159
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
1264
1160
|
}
|
|
1265
1161
|
|
|
1266
1162
|
function _nonIterableSpread() {
|
|
1267
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1163
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1268
1164
|
}
|
|
1269
1165
|
|
|
1270
1166
|
function _toConsumableArray(arr) {
|
|
1271
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
1167
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
1272
1168
|
}
|
|
1273
1169
|
|
|
1274
1170
|
function clone(value) {
|
|
@@ -1418,13 +1314,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1418
1314
|
return target;
|
|
1419
1315
|
}
|
|
1420
1316
|
|
|
1421
|
-
var omit = _objectWithoutPropertiesLoose;
|
|
1317
|
+
var omit$1 = _objectWithoutPropertiesLoose;
|
|
1422
1318
|
|
|
1423
|
-
function objectHasKeys(obj) {
|
|
1319
|
+
function objectHasKeys$1(obj) {
|
|
1424
1320
|
return obj && Object.keys(obj).length > 0;
|
|
1425
1321
|
}
|
|
1426
1322
|
|
|
1427
|
-
var objectHasKeys_1 = objectHasKeys;
|
|
1323
|
+
var objectHasKeys_1 = objectHasKeys$1;
|
|
1428
1324
|
|
|
1429
1325
|
var isValidUserToken = function isValidUserToken(userToken) {
|
|
1430
1326
|
if (userToken === null) {
|
|
@@ -1532,7 +1428,7 @@ var lib = {
|
|
|
1532
1428
|
}
|
|
1533
1429
|
return {};
|
|
1534
1430
|
} else if (typeof attribute === 'string') {
|
|
1535
|
-
return omit(refinementList, [attribute]);
|
|
1431
|
+
return omit$1(refinementList, [attribute]);
|
|
1536
1432
|
} else if (typeof attribute === 'function') {
|
|
1537
1433
|
var hasChanged = false;
|
|
1538
1434
|
|
|
@@ -1577,7 +1473,7 @@ var lib = {
|
|
|
1577
1473
|
}
|
|
1578
1474
|
};
|
|
1579
1475
|
|
|
1580
|
-
var RefinementList
|
|
1476
|
+
var RefinementList = lib;
|
|
1581
1477
|
|
|
1582
1478
|
/**
|
|
1583
1479
|
* isEqual, but only for numeric refinement values, possible values:
|
|
@@ -1946,22 +1842,22 @@ SearchParameters.prototype = {
|
|
|
1946
1842
|
clearRefinements: function clearRefinements(attribute) {
|
|
1947
1843
|
var patch = {
|
|
1948
1844
|
numericRefinements: this._clearNumericRefinements(attribute),
|
|
1949
|
-
facetsRefinements: RefinementList
|
|
1845
|
+
facetsRefinements: RefinementList.clearRefinement(
|
|
1950
1846
|
this.facetsRefinements,
|
|
1951
1847
|
attribute,
|
|
1952
1848
|
'conjunctiveFacet'
|
|
1953
1849
|
),
|
|
1954
|
-
facetsExcludes: RefinementList
|
|
1850
|
+
facetsExcludes: RefinementList.clearRefinement(
|
|
1955
1851
|
this.facetsExcludes,
|
|
1956
1852
|
attribute,
|
|
1957
1853
|
'exclude'
|
|
1958
1854
|
),
|
|
1959
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
1855
|
+
disjunctiveFacetsRefinements: RefinementList.clearRefinement(
|
|
1960
1856
|
this.disjunctiveFacetsRefinements,
|
|
1961
1857
|
attribute,
|
|
1962
1858
|
'disjunctiveFacet'
|
|
1963
1859
|
),
|
|
1964
|
-
hierarchicalFacetsRefinements: RefinementList
|
|
1860
|
+
hierarchicalFacetsRefinements: RefinementList.clearRefinement(
|
|
1965
1861
|
this.hierarchicalFacetsRefinements,
|
|
1966
1862
|
attribute,
|
|
1967
1863
|
'hierarchicalFacet'
|
|
@@ -2237,7 +2133,7 @@ SearchParameters.prototype = {
|
|
|
2237
2133
|
}
|
|
2238
2134
|
return {};
|
|
2239
2135
|
} else if (typeof attribute === 'string') {
|
|
2240
|
-
return omit(this.numericRefinements, [attribute]);
|
|
2136
|
+
return omit$1(this.numericRefinements, [attribute]);
|
|
2241
2137
|
} else if (typeof attribute === 'function') {
|
|
2242
2138
|
var hasChanged = false;
|
|
2243
2139
|
var numericRefinements = this.numericRefinements;
|
|
@@ -2329,10 +2225,10 @@ SearchParameters.prototype = {
|
|
|
2329
2225
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2330
2226
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2331
2227
|
}
|
|
2332
|
-
if (RefinementList
|
|
2228
|
+
if (RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
|
|
2333
2229
|
|
|
2334
2230
|
return this.setQueryParameters({
|
|
2335
|
-
facetsRefinements: RefinementList
|
|
2231
|
+
facetsRefinements: RefinementList.addRefinement(this.facetsRefinements, facet, value)
|
|
2336
2232
|
});
|
|
2337
2233
|
},
|
|
2338
2234
|
/**
|
|
@@ -2346,10 +2242,10 @@ SearchParameters.prototype = {
|
|
|
2346
2242
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2347
2243
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2348
2244
|
}
|
|
2349
|
-
if (RefinementList
|
|
2245
|
+
if (RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
|
|
2350
2246
|
|
|
2351
2247
|
return this.setQueryParameters({
|
|
2352
|
-
facetsExcludes: RefinementList
|
|
2248
|
+
facetsExcludes: RefinementList.addRefinement(this.facetsExcludes, facet, value)
|
|
2353
2249
|
});
|
|
2354
2250
|
},
|
|
2355
2251
|
/**
|
|
@@ -2365,10 +2261,10 @@ SearchParameters.prototype = {
|
|
|
2365
2261
|
facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
|
|
2366
2262
|
}
|
|
2367
2263
|
|
|
2368
|
-
if (RefinementList
|
|
2264
|
+
if (RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
|
|
2369
2265
|
|
|
2370
2266
|
return this.setQueryParameters({
|
|
2371
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2267
|
+
disjunctiveFacetsRefinements: RefinementList.addRefinement(
|
|
2372
2268
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2373
2269
|
});
|
|
2374
2270
|
},
|
|
@@ -2453,10 +2349,10 @@ SearchParameters.prototype = {
|
|
|
2453
2349
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2454
2350
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2455
2351
|
}
|
|
2456
|
-
if (!RefinementList
|
|
2352
|
+
if (!RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
|
|
2457
2353
|
|
|
2458
2354
|
return this.setQueryParameters({
|
|
2459
|
-
facetsRefinements: RefinementList
|
|
2355
|
+
facetsRefinements: RefinementList.removeRefinement(this.facetsRefinements, facet, value)
|
|
2460
2356
|
});
|
|
2461
2357
|
},
|
|
2462
2358
|
/**
|
|
@@ -2470,10 +2366,10 @@ SearchParameters.prototype = {
|
|
|
2470
2366
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2471
2367
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2472
2368
|
}
|
|
2473
|
-
if (!RefinementList
|
|
2369
|
+
if (!RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
|
|
2474
2370
|
|
|
2475
2371
|
return this.setQueryParameters({
|
|
2476
|
-
facetsExcludes: RefinementList
|
|
2372
|
+
facetsExcludes: RefinementList.removeRefinement(this.facetsExcludes, facet, value)
|
|
2477
2373
|
});
|
|
2478
2374
|
},
|
|
2479
2375
|
/**
|
|
@@ -2488,10 +2384,10 @@ SearchParameters.prototype = {
|
|
|
2488
2384
|
throw new Error(
|
|
2489
2385
|
facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
|
|
2490
2386
|
}
|
|
2491
|
-
if (!RefinementList
|
|
2387
|
+
if (!RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
|
|
2492
2388
|
|
|
2493
2389
|
return this.setQueryParameters({
|
|
2494
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2390
|
+
disjunctiveFacetsRefinements: RefinementList.removeRefinement(
|
|
2495
2391
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2496
2392
|
});
|
|
2497
2393
|
},
|
|
@@ -2557,7 +2453,7 @@ SearchParameters.prototype = {
|
|
|
2557
2453
|
}
|
|
2558
2454
|
|
|
2559
2455
|
return this.setQueryParameters({
|
|
2560
|
-
facetsRefinements: RefinementList
|
|
2456
|
+
facetsRefinements: RefinementList.toggleRefinement(this.facetsRefinements, facet, value)
|
|
2561
2457
|
});
|
|
2562
2458
|
},
|
|
2563
2459
|
/**
|
|
@@ -2573,7 +2469,7 @@ SearchParameters.prototype = {
|
|
|
2573
2469
|
}
|
|
2574
2470
|
|
|
2575
2471
|
return this.setQueryParameters({
|
|
2576
|
-
facetsExcludes: RefinementList
|
|
2472
|
+
facetsExcludes: RefinementList.toggleRefinement(this.facetsExcludes, facet, value)
|
|
2577
2473
|
});
|
|
2578
2474
|
},
|
|
2579
2475
|
/**
|
|
@@ -2590,7 +2486,7 @@ SearchParameters.prototype = {
|
|
|
2590
2486
|
}
|
|
2591
2487
|
|
|
2592
2488
|
return this.setQueryParameters({
|
|
2593
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2489
|
+
disjunctiveFacetsRefinements: RefinementList.toggleRefinement(
|
|
2594
2490
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2595
2491
|
});
|
|
2596
2492
|
},
|
|
@@ -2729,7 +2625,7 @@ SearchParameters.prototype = {
|
|
|
2729
2625
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2730
2626
|
return false;
|
|
2731
2627
|
}
|
|
2732
|
-
return RefinementList
|
|
2628
|
+
return RefinementList.isRefined(this.facetsRefinements, facet, value);
|
|
2733
2629
|
},
|
|
2734
2630
|
/**
|
|
2735
2631
|
* Returns true if the facet contains exclusions or if a specific value is
|
|
@@ -2745,7 +2641,7 @@ SearchParameters.prototype = {
|
|
|
2745
2641
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2746
2642
|
return false;
|
|
2747
2643
|
}
|
|
2748
|
-
return RefinementList
|
|
2644
|
+
return RefinementList.isRefined(this.facetsExcludes, facet, value);
|
|
2749
2645
|
},
|
|
2750
2646
|
/**
|
|
2751
2647
|
* Returns true if the facet contains a refinement, or if a value passed is a
|
|
@@ -2760,7 +2656,7 @@ SearchParameters.prototype = {
|
|
|
2760
2656
|
if (!this.isDisjunctiveFacet(facet)) {
|
|
2761
2657
|
return false;
|
|
2762
2658
|
}
|
|
2763
|
-
return RefinementList
|
|
2659
|
+
return RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value);
|
|
2764
2660
|
},
|
|
2765
2661
|
/**
|
|
2766
2662
|
* Returns true if the facet contains a refinement, or if a value passed is a
|
|
@@ -2946,7 +2842,7 @@ SearchParameters.prototype = {
|
|
|
2946
2842
|
var isNextValueDefined = nextWithNumbers[key] !== undefined;
|
|
2947
2843
|
|
|
2948
2844
|
if (isPreviousValueDefined && !isNextValueDefined) {
|
|
2949
|
-
return omit(previous, [key]);
|
|
2845
|
+
return omit$1(previous, [key]);
|
|
2950
2846
|
}
|
|
2951
2847
|
|
|
2952
2848
|
if (isNextValueDefined) {
|
|
@@ -4679,7 +4575,7 @@ var requestBuilder = {
|
|
|
4679
4575
|
|
|
4680
4576
|
var requestBuilder_1 = requestBuilder;
|
|
4681
4577
|
|
|
4682
|
-
var version = '3.4.4';
|
|
4578
|
+
var version$1 = '3.4.4';
|
|
4683
4579
|
|
|
4684
4580
|
/**
|
|
4685
4581
|
* Event triggered when a parameter is set or updated
|
|
@@ -4786,7 +4682,7 @@ var version = '3.4.4';
|
|
|
4786
4682
|
*/
|
|
4787
4683
|
function AlgoliaSearchHelper(client, index, options) {
|
|
4788
4684
|
if (typeof client.addAlgoliaAgent === 'function') {
|
|
4789
|
-
client.addAlgoliaAgent('JS Helper (' + version + ')');
|
|
4685
|
+
client.addAlgoliaAgent('JS Helper (' + version$1 + ')');
|
|
4790
4686
|
}
|
|
4791
4687
|
|
|
4792
4688
|
this.setClient(client);
|
|
@@ -4941,7 +4837,7 @@ AlgoliaSearchHelper.prototype.findAnswers = function(options) {
|
|
|
4941
4837
|
nbHits: options.nbHits
|
|
4942
4838
|
},
|
|
4943
4839
|
{
|
|
4944
|
-
params: omit(requestBuilder_1._getHitsSearchParams(derivedState), [
|
|
4840
|
+
params: omit$1(requestBuilder_1._getHitsSearchParams(derivedState), [
|
|
4945
4841
|
'attributesToSnippet',
|
|
4946
4842
|
'hitsPerPage',
|
|
4947
4843
|
'restrictSearchableAttributes',
|
|
@@ -6055,7 +5951,7 @@ AlgoliaSearchHelper.prototype.setClient = function(newClient) {
|
|
|
6055
5951
|
if (this.client === newClient) return this;
|
|
6056
5952
|
|
|
6057
5953
|
if (typeof newClient.addAlgoliaAgent === 'function') {
|
|
6058
|
-
newClient.addAlgoliaAgent('JS Helper (' + version + ')');
|
|
5954
|
+
newClient.addAlgoliaAgent('JS Helper (' + version$1 + ')');
|
|
6059
5955
|
}
|
|
6060
5956
|
this.client = newClient;
|
|
6061
5957
|
|
|
@@ -6174,7 +6070,7 @@ function algoliasearchHelper(client, index, opts) {
|
|
|
6174
6070
|
* @member module:algoliasearchHelper.version
|
|
6175
6071
|
* @type {number}
|
|
6176
6072
|
*/
|
|
6177
|
-
algoliasearchHelper.version = version;
|
|
6073
|
+
algoliasearchHelper.version = version$1;
|
|
6178
6074
|
|
|
6179
6075
|
/**
|
|
6180
6076
|
* Constructor for the Helper.
|
|
@@ -6206,13 +6102,13 @@ function createOptionalFilter(_ref) {
|
|
|
6206
6102
|
return "".concat(attributeName, ":").concat(attributeValue, "<score=").concat(attributeScore || 1, ">");
|
|
6207
6103
|
}
|
|
6208
6104
|
|
|
6209
|
-
var defaultProps
|
|
6105
|
+
var defaultProps = {
|
|
6210
6106
|
transformSearchParameters: function transformSearchParameters(x) {
|
|
6211
6107
|
return _objectSpread({}, x);
|
|
6212
6108
|
}
|
|
6213
6109
|
};
|
|
6214
6110
|
|
|
6215
|
-
function getId$
|
|
6111
|
+
function getId$1() {
|
|
6216
6112
|
// We store the search state of this widget in `configure`.
|
|
6217
6113
|
return 'configure';
|
|
6218
6114
|
}
|
|
@@ -6260,7 +6156,7 @@ function getSearchParametersFromProps(props) {
|
|
|
6260
6156
|
|
|
6261
6157
|
var connectConfigureRelatedItems = createConnectorWithContext({
|
|
6262
6158
|
displayName: 'AlgoliaConfigureRelatedItems',
|
|
6263
|
-
defaultProps: defaultProps
|
|
6159
|
+
defaultProps: defaultProps,
|
|
6264
6160
|
getProvidedProps: function getProvidedProps() {
|
|
6265
6161
|
return {};
|
|
6266
6162
|
},
|
|
@@ -6268,7 +6164,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6268
6164
|
return searchParameters.setQueryParameters(getSearchParametersFromProps(props));
|
|
6269
6165
|
},
|
|
6270
6166
|
transitionState: function transitionState(props, _prevSearchState, nextSearchState) {
|
|
6271
|
-
var id = getId$
|
|
6167
|
+
var id = getId$1(); // We need to transform the exhaustive search parameters back to clean
|
|
6272
6168
|
// search parameters without the empty default keys so we don't pollute the
|
|
6273
6169
|
// `configure` search state.
|
|
6274
6170
|
|
|
@@ -6279,7 +6175,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6279
6175
|
}) : [];
|
|
6280
6176
|
this._searchParameters = searchParameters;
|
|
6281
6177
|
|
|
6282
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit
|
|
6178
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6283
6179
|
|
|
6284
6180
|
return refineValue(nextSearchState, nextValue, {
|
|
6285
6181
|
ais: props.contextValue,
|
|
@@ -6289,7 +6185,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6289
6185
|
cleanUp: function cleanUp(props, searchState) {
|
|
6290
6186
|
var _this = this;
|
|
6291
6187
|
|
|
6292
|
-
var id = getId$
|
|
6188
|
+
var id = getId$1();
|
|
6293
6189
|
var indexId = getIndexId({
|
|
6294
6190
|
ais: props.contextValue,
|
|
6295
6191
|
multiIndexContext: props.indexContextValue
|
|
@@ -6362,7 +6258,7 @@ function getWidgetRefinements(attribute, widgetKey, searchState) {
|
|
|
6362
6258
|
}
|
|
6363
6259
|
}
|
|
6364
6260
|
|
|
6365
|
-
function getRefinements(attribute) {
|
|
6261
|
+
function getRefinements$1(attribute) {
|
|
6366
6262
|
var searchState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
6367
6263
|
var refinements = Object.keys(searchState).filter(function (widgetKey) {
|
|
6368
6264
|
return searchState[widgetKey] !== undefined && searchState[widgetKey][attribute] !== undefined;
|
|
@@ -6379,7 +6275,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
|
|
|
6379
6275
|
var searchState = _ref.searchState,
|
|
6380
6276
|
trackedFilters = _ref.trackedFilters;
|
|
6381
6277
|
var ruleContexts = Object.keys(trackedFilters).reduce(function (facets, facetName) {
|
|
6382
|
-
var facetRefinements = getRefinements(facetName, searchState);
|
|
6278
|
+
var facetRefinements = getRefinements$1(facetName, searchState);
|
|
6383
6279
|
var getTrackedFacetValues = trackedFilters[facetName];
|
|
6384
6280
|
var trackedFacetValues = getTrackedFacetValues(facetRefinements);
|
|
6385
6281
|
return [].concat(_toConsumableArray(facets), _toConsumableArray(facetRefinements.filter(function (facetRefinement) {
|
|
@@ -6391,7 +6287,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
|
|
|
6391
6287
|
return ruleContexts;
|
|
6392
6288
|
}
|
|
6393
6289
|
|
|
6394
|
-
var defaultProps = {
|
|
6290
|
+
var defaultProps$1 = {
|
|
6395
6291
|
transformItems: function transformItems(items) {
|
|
6396
6292
|
return items;
|
|
6397
6293
|
},
|
|
@@ -6402,7 +6298,7 @@ var defaultProps = {
|
|
|
6402
6298
|
};
|
|
6403
6299
|
var connectQueryRules = createConnectorWithContext({
|
|
6404
6300
|
displayName: 'AlgoliaQueryRules',
|
|
6405
|
-
defaultProps: defaultProps,
|
|
6301
|
+
defaultProps: defaultProps$1,
|
|
6406
6302
|
getProvidedProps: function getProvidedProps(props, _1, searchResults) {
|
|
6407
6303
|
var results = getResults(searchResults, {
|
|
6408
6304
|
ais: props.contextValue,
|
|
@@ -6579,10 +6475,20 @@ _defineProperty(Index, "propTypes", {
|
|
|
6579
6475
|
children: PropTypes.node
|
|
6580
6476
|
});
|
|
6581
6477
|
|
|
6582
|
-
({
|
|
6478
|
+
var IndexWrapper = function IndexWrapper(props) {
|
|
6479
|
+
var inferredIndexId = props.indexName;
|
|
6480
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
6481
|
+
return React__default.createElement(Index, _extends({
|
|
6482
|
+
contextValue: contextValue,
|
|
6483
|
+
indexId: inferredIndexId
|
|
6484
|
+
}, props));
|
|
6485
|
+
});
|
|
6486
|
+
};
|
|
6487
|
+
|
|
6488
|
+
IndexWrapper.propTypes = {
|
|
6583
6489
|
indexName: PropTypes.string.isRequired,
|
|
6584
6490
|
indexId: PropTypes.string
|
|
6585
|
-
}
|
|
6491
|
+
};
|
|
6586
6492
|
|
|
6587
6493
|
function createWidgetsManager(onWidgetsUpdate) {
|
|
6588
6494
|
var widgets = []; // Is an update scheduled?
|
|
@@ -6643,7 +6549,7 @@ function createStore(initialState) {
|
|
|
6643
6549
|
function addAlgoliaAgents(searchClient) {
|
|
6644
6550
|
if (typeof searchClient.addAlgoliaAgent === 'function') {
|
|
6645
6551
|
searchClient.addAlgoliaAgent("react (".concat(version$2, ")"));
|
|
6646
|
-
searchClient.addAlgoliaAgent("react-instantsearch (".concat(version
|
|
6552
|
+
searchClient.addAlgoliaAgent("react-instantsearch (".concat(version, ")"));
|
|
6647
6553
|
}
|
|
6648
6554
|
}
|
|
6649
6555
|
|
|
@@ -6881,8 +6787,8 @@ function createInstantSearchManager(_ref) {
|
|
|
6881
6787
|
nextIsSearchStalled = false;
|
|
6882
6788
|
}
|
|
6883
6789
|
|
|
6884
|
-
currentState.resultsFacetValues
|
|
6885
|
-
|
|
6790
|
+
var resultsFacetValues = currentState.resultsFacetValues,
|
|
6791
|
+
partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
|
|
6886
6792
|
|
|
6887
6793
|
store.setState(_objectSpread({}, partialState, {
|
|
6888
6794
|
results: results,
|
|
@@ -6903,8 +6809,8 @@ function createInstantSearchManager(_ref) {
|
|
|
6903
6809
|
nextIsSearchStalled = false;
|
|
6904
6810
|
}
|
|
6905
6811
|
|
|
6906
|
-
currentState.resultsFacetValues
|
|
6907
|
-
|
|
6812
|
+
var resultsFacetValues = currentState.resultsFacetValues,
|
|
6813
|
+
partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
|
|
6908
6814
|
|
|
6909
6815
|
store.setState(_objectSpread({}, partialState, {
|
|
6910
6816
|
isSearchStalled: nextIsSearchStalled,
|
|
@@ -6916,9 +6822,9 @@ function createInstantSearchManager(_ref) {
|
|
|
6916
6822
|
function handleNewSearch() {
|
|
6917
6823
|
if (!stalledSearchTimer) {
|
|
6918
6824
|
stalledSearchTimer = setTimeout(function () {
|
|
6919
|
-
var _store$getState = store.getState()
|
|
6920
|
-
_store$getState.resultsFacetValues
|
|
6921
|
-
|
|
6825
|
+
var _store$getState = store.getState(),
|
|
6826
|
+
resultsFacetValues = _store$getState.resultsFacetValues,
|
|
6827
|
+
partialState = _objectWithoutProperties(_store$getState, ["resultsFacetValues"]);
|
|
6922
6828
|
|
|
6923
6829
|
store.setState(_objectSpread({}, partialState, {
|
|
6924
6830
|
isSearchStalled: true
|
|
@@ -7417,21 +7323,21 @@ _defineProperty(InstantSearch, "propTypes", {
|
|
|
7417
7323
|
stalledSearchDelay: PropTypes.number
|
|
7418
7324
|
});
|
|
7419
7325
|
|
|
7420
|
-
var getId$
|
|
7326
|
+
var getId$2 = function getId(props) {
|
|
7421
7327
|
return props.attributes[0];
|
|
7422
7328
|
};
|
|
7423
|
-
var namespace
|
|
7329
|
+
var namespace = 'hierarchicalMenu';
|
|
7424
7330
|
|
|
7425
|
-
function _refine
|
|
7426
|
-
var id = getId$
|
|
7331
|
+
function _refine(props, searchState, nextRefinement, context) {
|
|
7332
|
+
var id = getId$2(props);
|
|
7427
7333
|
|
|
7428
7334
|
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7429
7335
|
|
|
7430
7336
|
var resetPage = true;
|
|
7431
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace
|
|
7337
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
7432
7338
|
}
|
|
7433
7339
|
|
|
7434
|
-
function transformValue
|
|
7340
|
+
function transformValue(values) {
|
|
7435
7341
|
return values.reduce(function (acc, item) {
|
|
7436
7342
|
if (item.isRefined) {
|
|
7437
7343
|
acc.push({
|
|
@@ -7442,7 +7348,7 @@ function transformValue$1(values) {
|
|
|
7442
7348
|
}); // Create a variable in order to keep the same acc for the recursion, otherwise "reduce" returns a new one
|
|
7443
7349
|
|
|
7444
7350
|
if (item.data) {
|
|
7445
|
-
acc = acc.concat(transformValue
|
|
7351
|
+
acc = acc.concat(transformValue(item.data));
|
|
7446
7352
|
}
|
|
7447
7353
|
}
|
|
7448
7354
|
|
|
@@ -7504,7 +7410,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7504
7410
|
transformItems: PropTypes.func
|
|
7505
7411
|
},
|
|
7506
7412
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7507
|
-
var id = getId$
|
|
7413
|
+
var id = getId$2(props);
|
|
7508
7414
|
var results = getResults(searchResults, {
|
|
7509
7415
|
ais: props.contextValue,
|
|
7510
7416
|
multiIndexContext: props.indexContextValue
|
|
@@ -7519,7 +7425,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7519
7425
|
}
|
|
7520
7426
|
|
|
7521
7427
|
var values = results.getFacetValues(id);
|
|
7522
|
-
var items = values.data ? transformValue
|
|
7428
|
+
var items = values.data ? transformValue(values.data) : [];
|
|
7523
7429
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
7524
7430
|
return {
|
|
7525
7431
|
canRefine: transformedItems.length > 0,
|
|
@@ -7527,7 +7433,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7527
7433
|
};
|
|
7528
7434
|
},
|
|
7529
7435
|
refine: function refine(props, searchState, nextRefinement) {
|
|
7530
|
-
return _refine
|
|
7436
|
+
return _refine(props, searchState, nextRefinement, {
|
|
7531
7437
|
ais: props.contextValue,
|
|
7532
7438
|
multiIndexContext: props.indexContextValue
|
|
7533
7439
|
});
|
|
@@ -7590,13 +7496,13 @@ var connectCurrentRefinements = createConnectorWithContext({
|
|
|
7590
7496
|
}
|
|
7591
7497
|
});
|
|
7592
7498
|
|
|
7593
|
-
var getId$
|
|
7499
|
+
var getId$3 = function getId(props) {
|
|
7594
7500
|
return props.attributes[0];
|
|
7595
7501
|
};
|
|
7596
|
-
var namespace$
|
|
7502
|
+
var namespace$1 = 'hierarchicalMenu';
|
|
7597
7503
|
|
|
7598
|
-
function getCurrentRefinement
|
|
7599
|
-
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$
|
|
7504
|
+
function getCurrentRefinement(props, searchState, context) {
|
|
7505
|
+
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)), null);
|
|
7600
7506
|
|
|
7601
7507
|
if (currentRefinement === '') {
|
|
7602
7508
|
return null;
|
|
@@ -7605,13 +7511,13 @@ function getCurrentRefinement$b(props, searchState, context) {
|
|
|
7605
7511
|
return currentRefinement;
|
|
7606
7512
|
}
|
|
7607
7513
|
|
|
7608
|
-
function getValue
|
|
7514
|
+
function getValue(path, props, searchState, context) {
|
|
7609
7515
|
var id = props.id,
|
|
7610
7516
|
attributes = props.attributes,
|
|
7611
7517
|
separator = props.separator,
|
|
7612
7518
|
rootPath = props.rootPath,
|
|
7613
7519
|
showParentLevel = props.showParentLevel;
|
|
7614
|
-
var currentRefinement = getCurrentRefinement
|
|
7520
|
+
var currentRefinement = getCurrentRefinement(props, searchState, context);
|
|
7615
7521
|
var nextRefinement;
|
|
7616
7522
|
|
|
7617
7523
|
if (currentRefinement === null) {
|
|
@@ -7632,14 +7538,14 @@ function getValue$2(path, props, searchState, context) {
|
|
|
7632
7538
|
return nextRefinement;
|
|
7633
7539
|
}
|
|
7634
7540
|
|
|
7635
|
-
function transformValue(value, props, searchState, context) {
|
|
7541
|
+
function transformValue$1(value, props, searchState, context) {
|
|
7636
7542
|
return value.map(function (v) {
|
|
7637
7543
|
return {
|
|
7638
7544
|
label: v.name,
|
|
7639
|
-
value: getValue
|
|
7545
|
+
value: getValue(v.path, props, searchState, context),
|
|
7640
7546
|
count: v.count,
|
|
7641
7547
|
isRefined: v.isRefined,
|
|
7642
|
-
items: v.data && transformValue(v.data, props, searchState, context)
|
|
7548
|
+
items: v.data && transformValue$1(v.data, props, searchState, context)
|
|
7643
7549
|
};
|
|
7644
7550
|
});
|
|
7645
7551
|
}
|
|
@@ -7655,20 +7561,20 @@ var truncate = function truncate() {
|
|
|
7655
7561
|
});
|
|
7656
7562
|
};
|
|
7657
7563
|
|
|
7658
|
-
function _refine$
|
|
7659
|
-
var id = getId$
|
|
7564
|
+
function _refine$1(props, searchState, nextRefinement, context) {
|
|
7565
|
+
var id = getId$3(props);
|
|
7660
7566
|
|
|
7661
7567
|
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7662
7568
|
|
|
7663
7569
|
var resetPage = true;
|
|
7664
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
7570
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$1);
|
|
7665
7571
|
}
|
|
7666
7572
|
|
|
7667
|
-
function _cleanUp
|
|
7668
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
7573
|
+
function _cleanUp(props, searchState, context) {
|
|
7574
|
+
return cleanUpValue(searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)));
|
|
7669
7575
|
}
|
|
7670
7576
|
|
|
7671
|
-
var sortBy
|
|
7577
|
+
var sortBy = ['name:asc'];
|
|
7672
7578
|
/**
|
|
7673
7579
|
* connectHierarchicalMenu connector provides the logic to build a widget that will
|
|
7674
7580
|
* give the user the ability to explore a tree-like structure.
|
|
@@ -7750,7 +7656,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7750
7656
|
var showMore = props.showMore,
|
|
7751
7657
|
limit = props.limit,
|
|
7752
7658
|
showMoreLimit = props.showMoreLimit;
|
|
7753
|
-
var id = getId$
|
|
7659
|
+
var id = getId$3(props);
|
|
7754
7660
|
var results = getResults(searchResults, {
|
|
7755
7661
|
ais: props.contextValue,
|
|
7756
7662
|
multiIndexContext: props.indexContextValue
|
|
@@ -7760,7 +7666,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7760
7666
|
if (!isFacetPresent) {
|
|
7761
7667
|
return {
|
|
7762
7668
|
items: [],
|
|
7763
|
-
currentRefinement: getCurrentRefinement
|
|
7669
|
+
currentRefinement: getCurrentRefinement(props, searchState, {
|
|
7764
7670
|
ais: props.contextValue,
|
|
7765
7671
|
multiIndexContext: props.indexContextValue
|
|
7766
7672
|
}),
|
|
@@ -7770,16 +7676,16 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7770
7676
|
|
|
7771
7677
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7772
7678
|
var value = results.getFacetValues(id, {
|
|
7773
|
-
sortBy: sortBy
|
|
7679
|
+
sortBy: sortBy
|
|
7774
7680
|
});
|
|
7775
|
-
var items = value.data ? transformValue(value.data, props, searchState, {
|
|
7681
|
+
var items = value.data ? transformValue$1(value.data, props, searchState, {
|
|
7776
7682
|
ais: props.contextValue,
|
|
7777
7683
|
multiIndexContext: props.indexContextValue
|
|
7778
7684
|
}) : [];
|
|
7779
7685
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
7780
7686
|
return {
|
|
7781
7687
|
items: truncate(transformedItems, itemsLimit),
|
|
7782
|
-
currentRefinement: getCurrentRefinement
|
|
7688
|
+
currentRefinement: getCurrentRefinement(props, searchState, {
|
|
7783
7689
|
ais: props.contextValue,
|
|
7784
7690
|
multiIndexContext: props.indexContextValue
|
|
7785
7691
|
}),
|
|
@@ -7787,13 +7693,13 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7787
7693
|
};
|
|
7788
7694
|
},
|
|
7789
7695
|
refine: function refine(props, searchState, nextRefinement) {
|
|
7790
|
-
return _refine$
|
|
7696
|
+
return _refine$1(props, searchState, nextRefinement, {
|
|
7791
7697
|
ais: props.contextValue,
|
|
7792
7698
|
multiIndexContext: props.indexContextValue
|
|
7793
7699
|
});
|
|
7794
7700
|
},
|
|
7795
7701
|
cleanUp: function cleanUp(props, searchState) {
|
|
7796
|
-
return _cleanUp
|
|
7702
|
+
return _cleanUp(props, searchState, {
|
|
7797
7703
|
ais: props.contextValue,
|
|
7798
7704
|
multiIndexContext: props.indexContextValue
|
|
7799
7705
|
});
|
|
@@ -7807,7 +7713,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7807
7713
|
limit = props.limit,
|
|
7808
7714
|
showMoreLimit = props.showMoreLimit,
|
|
7809
7715
|
contextValue = props.contextValue;
|
|
7810
|
-
var id = getId$
|
|
7716
|
+
var id = getId$3(props);
|
|
7811
7717
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7812
7718
|
searchParameters = searchParameters.addHierarchicalFacet({
|
|
7813
7719
|
name: id,
|
|
@@ -7818,7 +7724,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7818
7724
|
}).setQueryParameters({
|
|
7819
7725
|
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, itemsLimit)
|
|
7820
7726
|
});
|
|
7821
|
-
var currentRefinement = getCurrentRefinement
|
|
7727
|
+
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
7822
7728
|
ais: contextValue,
|
|
7823
7729
|
multiIndexContext: props.indexContextValue
|
|
7824
7730
|
});
|
|
@@ -7831,8 +7737,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7831
7737
|
},
|
|
7832
7738
|
getMetadata: function getMetadata(props, searchState) {
|
|
7833
7739
|
var rootAttribute = props.attributes[0];
|
|
7834
|
-
var id = getId$
|
|
7835
|
-
var currentRefinement = getCurrentRefinement
|
|
7740
|
+
var id = getId$3(props);
|
|
7741
|
+
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
7836
7742
|
ais: props.contextValue,
|
|
7837
7743
|
multiIndexContext: props.indexContextValue
|
|
7838
7744
|
});
|
|
@@ -7840,7 +7746,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7840
7746
|
label: "".concat(rootAttribute, ": ").concat(currentRefinement),
|
|
7841
7747
|
attribute: rootAttribute,
|
|
7842
7748
|
value: function value(nextState) {
|
|
7843
|
-
return _refine$
|
|
7749
|
+
return _refine$1(props, nextState, '', {
|
|
7844
7750
|
ais: props.contextValue,
|
|
7845
7751
|
multiIndexContext: props.indexContextValue
|
|
7846
7752
|
});
|
|
@@ -8017,12 +7923,12 @@ var connectHits = createConnectorWithContext({
|
|
|
8017
7923
|
}
|
|
8018
7924
|
});
|
|
8019
7925
|
|
|
8020
|
-
function getId$
|
|
7926
|
+
function getId$4() {
|
|
8021
7927
|
return 'hitsPerPage';
|
|
8022
7928
|
}
|
|
8023
7929
|
|
|
8024
|
-
function getCurrentRefinement$
|
|
8025
|
-
var id = getId$
|
|
7930
|
+
function getCurrentRefinement$1(props, searchState, context) {
|
|
7931
|
+
var id = getId$4();
|
|
8026
7932
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
|
|
8027
7933
|
|
|
8028
7934
|
if (typeof currentRefinement === 'string') {
|
|
@@ -8057,7 +7963,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8057
7963
|
transformItems: PropTypes.func
|
|
8058
7964
|
},
|
|
8059
7965
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
8060
|
-
var currentRefinement = getCurrentRefinement$
|
|
7966
|
+
var currentRefinement = getCurrentRefinement$1(props, searchState, {
|
|
8061
7967
|
ais: props.contextValue,
|
|
8062
7968
|
multiIndexContext: props.indexContextValue
|
|
8063
7969
|
});
|
|
@@ -8074,7 +7980,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8074
7980
|
};
|
|
8075
7981
|
},
|
|
8076
7982
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8077
|
-
var id = getId$
|
|
7983
|
+
var id = getId$4();
|
|
8078
7984
|
|
|
8079
7985
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
8080
7986
|
|
|
@@ -8088,27 +7994,27 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8088
7994
|
return cleanUpValue(searchState, {
|
|
8089
7995
|
ais: props.contextValue,
|
|
8090
7996
|
multiIndexContext: props.indexContextValue
|
|
8091
|
-
}, getId$
|
|
7997
|
+
}, getId$4());
|
|
8092
7998
|
},
|
|
8093
7999
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8094
|
-
return searchParameters.setHitsPerPage(getCurrentRefinement$
|
|
8000
|
+
return searchParameters.setHitsPerPage(getCurrentRefinement$1(props, searchState, {
|
|
8095
8001
|
ais: props.contextValue,
|
|
8096
8002
|
multiIndexContext: props.indexContextValue
|
|
8097
8003
|
}));
|
|
8098
8004
|
},
|
|
8099
8005
|
getMetadata: function getMetadata() {
|
|
8100
8006
|
return {
|
|
8101
|
-
id: getId$
|
|
8007
|
+
id: getId$4()
|
|
8102
8008
|
};
|
|
8103
8009
|
}
|
|
8104
8010
|
});
|
|
8105
8011
|
|
|
8106
|
-
function getId$
|
|
8012
|
+
function getId$5() {
|
|
8107
8013
|
return 'page';
|
|
8108
8014
|
}
|
|
8109
8015
|
|
|
8110
|
-
function getCurrentRefinement$
|
|
8111
|
-
var id = getId$
|
|
8016
|
+
function getCurrentRefinement$2(props, searchState, context) {
|
|
8017
|
+
var id = getId$5();
|
|
8112
8018
|
var page = 1;
|
|
8113
8019
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
|
|
8114
8020
|
|
|
@@ -8120,9 +8026,9 @@ function getCurrentRefinement$9(props, searchState, context) {
|
|
|
8120
8026
|
}
|
|
8121
8027
|
|
|
8122
8028
|
function getStateWithoutPage(state) {
|
|
8123
|
-
var _ref = state || {}
|
|
8124
|
-
_ref.page
|
|
8125
|
-
|
|
8029
|
+
var _ref = state || {},
|
|
8030
|
+
page = _ref.page,
|
|
8031
|
+
rest = _objectWithoutProperties(_ref, ["page"]);
|
|
8126
8032
|
|
|
8127
8033
|
return rest;
|
|
8128
8034
|
}
|
|
@@ -8231,14 +8137,14 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8231
8137
|
},
|
|
8232
8138
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8233
8139
|
return searchParameters.setQueryParameters({
|
|
8234
|
-
page: getCurrentRefinement$
|
|
8140
|
+
page: getCurrentRefinement$2(props, searchState, {
|
|
8235
8141
|
ais: props.contextValue,
|
|
8236
8142
|
multiIndexContext: props.indexContextValue
|
|
8237
8143
|
}) - 1
|
|
8238
8144
|
});
|
|
8239
8145
|
},
|
|
8240
8146
|
refine: function refine(props, searchState, event, index) {
|
|
8241
|
-
var id = getId$
|
|
8147
|
+
var id = getId$5();
|
|
8242
8148
|
|
|
8243
8149
|
var nextValue = _defineProperty({}, id, index + 1);
|
|
8244
8150
|
|
|
@@ -8250,14 +8156,14 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8250
8156
|
}
|
|
8251
8157
|
});
|
|
8252
8158
|
|
|
8253
|
-
var namespace$
|
|
8159
|
+
var namespace$2 = 'menu';
|
|
8254
8160
|
|
|
8255
|
-
function getId$
|
|
8161
|
+
function getId$6(props) {
|
|
8256
8162
|
return props.attribute;
|
|
8257
8163
|
}
|
|
8258
8164
|
|
|
8259
|
-
function getCurrentRefinement$
|
|
8260
|
-
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$
|
|
8165
|
+
function getCurrentRefinement$3(props, searchState, context) {
|
|
8166
|
+
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)), null);
|
|
8261
8167
|
|
|
8262
8168
|
if (currentRefinement === '') {
|
|
8263
8169
|
return null;
|
|
@@ -8267,28 +8173,28 @@ function getCurrentRefinement$8(props, searchState, context) {
|
|
|
8267
8173
|
}
|
|
8268
8174
|
|
|
8269
8175
|
function getValue$1(name, props, searchState, context) {
|
|
8270
|
-
var currentRefinement = getCurrentRefinement$
|
|
8176
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, context);
|
|
8271
8177
|
return name === currentRefinement ? '' : name;
|
|
8272
8178
|
}
|
|
8273
8179
|
|
|
8274
|
-
function getLimit
|
|
8180
|
+
function getLimit(_ref) {
|
|
8275
8181
|
var showMore = _ref.showMore,
|
|
8276
8182
|
limit = _ref.limit,
|
|
8277
8183
|
showMoreLimit = _ref.showMoreLimit;
|
|
8278
8184
|
return showMore ? showMoreLimit : limit;
|
|
8279
8185
|
}
|
|
8280
8186
|
|
|
8281
|
-
function _refine$
|
|
8282
|
-
var id = getId$
|
|
8187
|
+
function _refine$2(props, searchState, nextRefinement, context) {
|
|
8188
|
+
var id = getId$6(props);
|
|
8283
8189
|
|
|
8284
8190
|
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8285
8191
|
|
|
8286
8192
|
var resetPage = true;
|
|
8287
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
8193
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$2);
|
|
8288
8194
|
}
|
|
8289
8195
|
|
|
8290
|
-
function _cleanUp$
|
|
8291
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
8196
|
+
function _cleanUp$1(props, searchState, context) {
|
|
8197
|
+
return cleanUpValue(searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)));
|
|
8292
8198
|
}
|
|
8293
8199
|
|
|
8294
8200
|
var defaultSortBy = ['count:desc', 'name:asc'];
|
|
@@ -8347,7 +8253,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8347
8253
|
if (!canRefine) {
|
|
8348
8254
|
return {
|
|
8349
8255
|
items: [],
|
|
8350
|
-
currentRefinement: getCurrentRefinement$
|
|
8256
|
+
currentRefinement: getCurrentRefinement$3(props, searchState, {
|
|
8351
8257
|
ais: props.contextValue,
|
|
8352
8258
|
multiIndexContext: props.indexContextValue
|
|
8353
8259
|
}),
|
|
@@ -8394,8 +8300,8 @@ var connectMenu = createConnectorWithContext({
|
|
|
8394
8300
|
|
|
8395
8301
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
8396
8302
|
return {
|
|
8397
|
-
items: transformedItems.slice(0, getLimit
|
|
8398
|
-
currentRefinement: getCurrentRefinement$
|
|
8303
|
+
items: transformedItems.slice(0, getLimit(props)),
|
|
8304
|
+
currentRefinement: getCurrentRefinement$3(props, searchState, {
|
|
8399
8305
|
ais: props.contextValue,
|
|
8400
8306
|
multiIndexContext: props.indexContextValue
|
|
8401
8307
|
}),
|
|
@@ -8405,7 +8311,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8405
8311
|
};
|
|
8406
8312
|
},
|
|
8407
8313
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8408
|
-
return _refine$
|
|
8314
|
+
return _refine$2(props, searchState, nextRefinement, {
|
|
8409
8315
|
ais: props.contextValue,
|
|
8410
8316
|
multiIndexContext: props.indexContextValue
|
|
8411
8317
|
});
|
|
@@ -8414,11 +8320,11 @@ var connectMenu = createConnectorWithContext({
|
|
|
8414
8320
|
return {
|
|
8415
8321
|
facetName: props.attribute,
|
|
8416
8322
|
query: nextRefinement,
|
|
8417
|
-
maxFacetHits: getLimit
|
|
8323
|
+
maxFacetHits: getLimit(props)
|
|
8418
8324
|
};
|
|
8419
8325
|
},
|
|
8420
8326
|
cleanUp: function cleanUp(props, searchState) {
|
|
8421
|
-
return _cleanUp$
|
|
8327
|
+
return _cleanUp$1(props, searchState, {
|
|
8422
8328
|
ais: props.contextValue,
|
|
8423
8329
|
multiIndexContext: props.indexContextValue
|
|
8424
8330
|
});
|
|
@@ -8426,10 +8332,10 @@ var connectMenu = createConnectorWithContext({
|
|
|
8426
8332
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8427
8333
|
var attribute = props.attribute;
|
|
8428
8334
|
searchParameters = searchParameters.setQueryParameters({
|
|
8429
|
-
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit
|
|
8335
|
+
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
|
|
8430
8336
|
});
|
|
8431
8337
|
searchParameters = searchParameters.addDisjunctiveFacet(attribute);
|
|
8432
|
-
var currentRefinement = getCurrentRefinement$
|
|
8338
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, {
|
|
8433
8339
|
ais: props.contextValue,
|
|
8434
8340
|
multiIndexContext: props.indexContextValue
|
|
8435
8341
|
});
|
|
@@ -8441,8 +8347,8 @@ var connectMenu = createConnectorWithContext({
|
|
|
8441
8347
|
return searchParameters;
|
|
8442
8348
|
},
|
|
8443
8349
|
getMetadata: function getMetadata(props, searchState) {
|
|
8444
|
-
var id = getId$
|
|
8445
|
-
var currentRefinement = getCurrentRefinement$
|
|
8350
|
+
var id = getId$6(props);
|
|
8351
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, {
|
|
8446
8352
|
ais: props.contextValue,
|
|
8447
8353
|
multiIndexContext: props.indexContextValue
|
|
8448
8354
|
});
|
|
@@ -8456,7 +8362,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8456
8362
|
label: "".concat(props.attribute, ": ").concat(currentRefinement),
|
|
8457
8363
|
attribute: props.attribute,
|
|
8458
8364
|
value: function value(nextState) {
|
|
8459
|
-
return _refine$
|
|
8365
|
+
return _refine$2(props, nextState, '', {
|
|
8460
8366
|
ais: props.contextValue,
|
|
8461
8367
|
multiIndexContext: props.indexContextValue
|
|
8462
8368
|
});
|
|
@@ -8472,17 +8378,17 @@ function _arrayWithHoles(arr) {
|
|
|
8472
8378
|
}
|
|
8473
8379
|
|
|
8474
8380
|
function _iterableToArrayLimit(arr, i) {
|
|
8475
|
-
|
|
8381
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
8382
|
+
return;
|
|
8383
|
+
}
|
|
8476
8384
|
|
|
8477
|
-
if (_i == null) return;
|
|
8478
8385
|
var _arr = [];
|
|
8479
8386
|
var _n = true;
|
|
8480
8387
|
var _d = false;
|
|
8481
|
-
|
|
8482
|
-
var _s, _e;
|
|
8388
|
+
var _e = undefined;
|
|
8483
8389
|
|
|
8484
8390
|
try {
|
|
8485
|
-
for (_i =
|
|
8391
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
8486
8392
|
_arr.push(_s.value);
|
|
8487
8393
|
|
|
8488
8394
|
if (i && _arr.length === i) break;
|
|
@@ -8502,11 +8408,11 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
8502
8408
|
}
|
|
8503
8409
|
|
|
8504
8410
|
function _nonIterableRest() {
|
|
8505
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8411
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
8506
8412
|
}
|
|
8507
8413
|
|
|
8508
8414
|
function _slicedToArray(arr, i) {
|
|
8509
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
8415
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
8510
8416
|
}
|
|
8511
8417
|
|
|
8512
8418
|
function stringifyItem(item) {
|
|
@@ -8533,19 +8439,19 @@ function parseItem(value) {
|
|
|
8533
8439
|
endStr = _value$split2[1];
|
|
8534
8440
|
|
|
8535
8441
|
return {
|
|
8536
|
-
start: startStr.length > 0 ?
|
|
8537
|
-
end: endStr.length > 0 ?
|
|
8442
|
+
start: startStr.length > 0 ? parseInt(startStr, 10) : null,
|
|
8443
|
+
end: endStr.length > 0 ? parseInt(endStr, 10) : null
|
|
8538
8444
|
};
|
|
8539
8445
|
}
|
|
8540
8446
|
|
|
8541
8447
|
var namespace$3 = 'multiRange';
|
|
8542
8448
|
|
|
8543
|
-
function getId$
|
|
8449
|
+
function getId$7(props) {
|
|
8544
8450
|
return props.attribute;
|
|
8545
8451
|
}
|
|
8546
8452
|
|
|
8547
|
-
function getCurrentRefinement$
|
|
8548
|
-
return getCurrentRefinementValue(props, searchState, context, "".concat(namespace$3, ".").concat(getId$
|
|
8453
|
+
function getCurrentRefinement$4(props, searchState, context) {
|
|
8454
|
+
return getCurrentRefinementValue(props, searchState, context, "".concat(namespace$3, ".").concat(getId$7(props)), '');
|
|
8549
8455
|
}
|
|
8550
8456
|
|
|
8551
8457
|
function isRefinementsRangeIncludesInsideItemRange(stats, start, end) {
|
|
@@ -8564,15 +8470,15 @@ function itemHasRefinement(attribute, results, value) {
|
|
|
8564
8470
|
return !(Boolean(stats) && (isRefinementsRangeIncludesInsideItemRange(stats, start, end) || isItemRangeIncludedInsideRefinementsRange(stats, start, end)));
|
|
8565
8471
|
}
|
|
8566
8472
|
|
|
8567
|
-
function _refine$
|
|
8568
|
-
var nextValue = _defineProperty({}, getId$
|
|
8473
|
+
function _refine$3(props, searchState, nextRefinement, context) {
|
|
8474
|
+
var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
|
|
8569
8475
|
|
|
8570
8476
|
var resetPage = true;
|
|
8571
8477
|
return refineValue(searchState, nextValue, context, resetPage, namespace$3);
|
|
8572
8478
|
}
|
|
8573
8479
|
|
|
8574
|
-
function _cleanUp$
|
|
8575
|
-
return cleanUpValue(searchState, context, "".concat(namespace$3, ".").concat(getId$
|
|
8480
|
+
function _cleanUp$2(props, searchState, context) {
|
|
8481
|
+
return cleanUpValue(searchState, context, "".concat(namespace$3, ".").concat(getId$7(props)));
|
|
8576
8482
|
}
|
|
8577
8483
|
/**
|
|
8578
8484
|
* connectNumericMenu connector provides the logic to build a widget that will
|
|
@@ -8606,7 +8512,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8606
8512
|
},
|
|
8607
8513
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
8608
8514
|
var attribute = props.attribute;
|
|
8609
|
-
var currentRefinement = getCurrentRefinement$
|
|
8515
|
+
var currentRefinement = getCurrentRefinement$4(props, searchState, {
|
|
8610
8516
|
ais: props.contextValue,
|
|
8611
8517
|
multiIndexContext: props.indexContextValue
|
|
8612
8518
|
});
|
|
@@ -8620,11 +8526,11 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8620
8526
|
label: item.label,
|
|
8621
8527
|
value: value,
|
|
8622
8528
|
isRefined: value === currentRefinement,
|
|
8623
|
-
noRefinement: results ? itemHasRefinement(getId$
|
|
8529
|
+
noRefinement: results ? itemHasRefinement(getId$7(props), results, value) : false
|
|
8624
8530
|
};
|
|
8625
8531
|
});
|
|
8626
8532
|
var stats = results && results.getFacetByName(attribute) ? results.getFacetStats(attribute) : null;
|
|
8627
|
-
var refinedItem = find
|
|
8533
|
+
var refinedItem = find(items, function (item) {
|
|
8628
8534
|
return item.isRefined === true;
|
|
8629
8535
|
});
|
|
8630
8536
|
|
|
@@ -8649,13 +8555,13 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8649
8555
|
};
|
|
8650
8556
|
},
|
|
8651
8557
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8652
|
-
return _refine$
|
|
8558
|
+
return _refine$3(props, searchState, nextRefinement, {
|
|
8653
8559
|
ais: props.contextValue,
|
|
8654
8560
|
multiIndexContext: props.indexContextValue
|
|
8655
8561
|
});
|
|
8656
8562
|
},
|
|
8657
8563
|
cleanUp: function cleanUp(props, searchState) {
|
|
8658
|
-
return _cleanUp$
|
|
8564
|
+
return _cleanUp$2(props, searchState, {
|
|
8659
8565
|
ais: props.contextValue,
|
|
8660
8566
|
multiIndexContext: props.indexContextValue
|
|
8661
8567
|
});
|
|
@@ -8663,7 +8569,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8663
8569
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8664
8570
|
var attribute = props.attribute;
|
|
8665
8571
|
|
|
8666
|
-
var _parseItem = parseItem(getCurrentRefinement$
|
|
8572
|
+
var _parseItem = parseItem(getCurrentRefinement$4(props, searchState, {
|
|
8667
8573
|
ais: props.contextValue,
|
|
8668
8574
|
multiIndexContext: props.indexContextValue
|
|
8669
8575
|
})),
|
|
@@ -8683,8 +8589,8 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8683
8589
|
return searchParameters;
|
|
8684
8590
|
},
|
|
8685
8591
|
getMetadata: function getMetadata(props, searchState) {
|
|
8686
|
-
var id = getId$
|
|
8687
|
-
var value = getCurrentRefinement$
|
|
8592
|
+
var id = getId$7(props);
|
|
8593
|
+
var value = getCurrentRefinement$4(props, searchState, {
|
|
8688
8594
|
ais: props.contextValue,
|
|
8689
8595
|
multiIndexContext: props.indexContextValue
|
|
8690
8596
|
});
|
|
@@ -8695,7 +8601,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8695
8601
|
});
|
|
8696
8602
|
|
|
8697
8603
|
if (value !== '') {
|
|
8698
|
-
var _find = find
|
|
8604
|
+
var _find = find(props.items, function (item) {
|
|
8699
8605
|
return stringifyItem(item) === value;
|
|
8700
8606
|
}),
|
|
8701
8607
|
label = _find.label;
|
|
@@ -8705,7 +8611,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8705
8611
|
attribute: props.attribute,
|
|
8706
8612
|
currentRefinement: label,
|
|
8707
8613
|
value: function value(nextState) {
|
|
8708
|
-
return _refine$
|
|
8614
|
+
return _refine$3(props, nextState, '', {
|
|
8709
8615
|
ais: props.contextValue,
|
|
8710
8616
|
multiIndexContext: props.indexContextValue
|
|
8711
8617
|
});
|
|
@@ -8721,12 +8627,12 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8721
8627
|
}
|
|
8722
8628
|
});
|
|
8723
8629
|
|
|
8724
|
-
function getId$
|
|
8630
|
+
function getId$8() {
|
|
8725
8631
|
return 'page';
|
|
8726
8632
|
}
|
|
8727
8633
|
|
|
8728
|
-
function getCurrentRefinement$
|
|
8729
|
-
var id = getId$
|
|
8634
|
+
function getCurrentRefinement$5(props, searchState, context) {
|
|
8635
|
+
var id = getId$8();
|
|
8730
8636
|
var page = 1;
|
|
8731
8637
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
|
|
8732
8638
|
|
|
@@ -8737,8 +8643,8 @@ function getCurrentRefinement$6(props, searchState, context) {
|
|
|
8737
8643
|
return currentRefinement;
|
|
8738
8644
|
}
|
|
8739
8645
|
|
|
8740
|
-
function _refine$
|
|
8741
|
-
var id = getId$
|
|
8646
|
+
function _refine$4(props, searchState, nextPage, context) {
|
|
8647
|
+
var id = getId$8();
|
|
8742
8648
|
|
|
8743
8649
|
var nextValue = _defineProperty({}, id, nextPage);
|
|
8744
8650
|
|
|
@@ -8778,7 +8684,7 @@ var connectPagination = createConnectorWithContext({
|
|
|
8778
8684
|
var nbPages = results.nbPages;
|
|
8779
8685
|
return {
|
|
8780
8686
|
nbPages: nbPages,
|
|
8781
|
-
currentRefinement: getCurrentRefinement$
|
|
8687
|
+
currentRefinement: getCurrentRefinement$5(props, searchState, {
|
|
8782
8688
|
ais: props.contextValue,
|
|
8783
8689
|
multiIndexContext: props.indexContextValue
|
|
8784
8690
|
}),
|
|
@@ -8786,7 +8692,7 @@ var connectPagination = createConnectorWithContext({
|
|
|
8786
8692
|
};
|
|
8787
8693
|
},
|
|
8788
8694
|
refine: function refine(props, searchState, nextPage) {
|
|
8789
|
-
return _refine$
|
|
8695
|
+
return _refine$4(props, searchState, nextPage, {
|
|
8790
8696
|
ais: props.contextValue,
|
|
8791
8697
|
multiIndexContext: props.indexContextValue
|
|
8792
8698
|
});
|
|
@@ -8795,17 +8701,17 @@ var connectPagination = createConnectorWithContext({
|
|
|
8795
8701
|
return cleanUpValue(searchState, {
|
|
8796
8702
|
ais: props.contextValue,
|
|
8797
8703
|
multiIndexContext: props.indexContextValue
|
|
8798
|
-
}, getId$
|
|
8704
|
+
}, getId$8());
|
|
8799
8705
|
},
|
|
8800
8706
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8801
|
-
return searchParameters.setPage(getCurrentRefinement$
|
|
8707
|
+
return searchParameters.setPage(getCurrentRefinement$5(props, searchState, {
|
|
8802
8708
|
ais: props.contextValue,
|
|
8803
8709
|
multiIndexContext: props.indexContextValue
|
|
8804
8710
|
}) - 1);
|
|
8805
8711
|
},
|
|
8806
8712
|
getMetadata: function getMetadata() {
|
|
8807
8713
|
return {
|
|
8808
|
-
id: getId$
|
|
8714
|
+
id: getId$8()
|
|
8809
8715
|
};
|
|
8810
8716
|
}
|
|
8811
8717
|
});
|
|
@@ -8851,11 +8757,11 @@ var connectPoweredBy = createConnectorWithContext({
|
|
|
8851
8757
|
* @providedPropType {number} precision - Number of digits after decimal point to use.
|
|
8852
8758
|
*/
|
|
8853
8759
|
|
|
8854
|
-
function getId$
|
|
8760
|
+
function getId$9(props) {
|
|
8855
8761
|
return props.attribute;
|
|
8856
8762
|
}
|
|
8857
8763
|
|
|
8858
|
-
var namespace$
|
|
8764
|
+
var namespace$4 = 'range';
|
|
8859
8765
|
|
|
8860
8766
|
function getCurrentRange(boundaries, stats, precision) {
|
|
8861
8767
|
var pow = Math.pow(10, precision);
|
|
@@ -8885,8 +8791,8 @@ function getCurrentRange(boundaries, stats, precision) {
|
|
|
8885
8791
|
};
|
|
8886
8792
|
}
|
|
8887
8793
|
|
|
8888
|
-
function getCurrentRefinement$
|
|
8889
|
-
var _getCurrentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$
|
|
8794
|
+
function getCurrentRefinement$6(props, searchState, currentRange, context) {
|
|
8795
|
+
var _getCurrentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)), {}),
|
|
8890
8796
|
min = _getCurrentRefinement.min,
|
|
8891
8797
|
max = _getCurrentRefinement.max;
|
|
8892
8798
|
|
|
@@ -8952,7 +8858,7 @@ function nextValueForRefinement(hasBound, isReset, range, value) {
|
|
|
8952
8858
|
return next;
|
|
8953
8859
|
}
|
|
8954
8860
|
|
|
8955
|
-
function _refine$
|
|
8861
|
+
function _refine$5(props, searchState, nextRefinement, currentRange, context) {
|
|
8956
8862
|
var nextMin = nextRefinement.min,
|
|
8957
8863
|
nextMax = nextRefinement.max;
|
|
8958
8864
|
var currentMinRange = currentRange.min,
|
|
@@ -8976,7 +8882,7 @@ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
|
|
|
8976
8882
|
throw Error("You can't provide max value greater than range.");
|
|
8977
8883
|
}
|
|
8978
8884
|
|
|
8979
|
-
var id = getId$
|
|
8885
|
+
var id = getId$9(props);
|
|
8980
8886
|
var resetPage = true;
|
|
8981
8887
|
|
|
8982
8888
|
var nextValue = _defineProperty({}, id, {
|
|
@@ -8984,11 +8890,11 @@ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
|
|
|
8984
8890
|
max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
|
|
8985
8891
|
});
|
|
8986
8892
|
|
|
8987
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
8893
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$4);
|
|
8988
8894
|
}
|
|
8989
8895
|
|
|
8990
|
-
function _cleanUp$
|
|
8991
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
8896
|
+
function _cleanUp$3(props, searchState, context) {
|
|
8897
|
+
return cleanUpValue(searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)));
|
|
8992
8898
|
}
|
|
8993
8899
|
|
|
8994
8900
|
var connectRange = createConnectorWithContext({
|
|
@@ -9043,7 +8949,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9043
8949
|
min: rangeMin,
|
|
9044
8950
|
max: rangeMax
|
|
9045
8951
|
};
|
|
9046
|
-
var currentRefinement = getCurrentRefinement$
|
|
8952
|
+
var currentRefinement = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9047
8953
|
ais: props.contextValue,
|
|
9048
8954
|
multiIndexContext: props.indexContextValue
|
|
9049
8955
|
});
|
|
@@ -9057,13 +8963,13 @@ var connectRange = createConnectorWithContext({
|
|
|
9057
8963
|
};
|
|
9058
8964
|
},
|
|
9059
8965
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9060
|
-
return _refine$
|
|
8966
|
+
return _refine$5(props, searchState, nextRefinement, this._currentRange, {
|
|
9061
8967
|
ais: props.contextValue,
|
|
9062
8968
|
multiIndexContext: props.indexContextValue
|
|
9063
8969
|
});
|
|
9064
8970
|
},
|
|
9065
8971
|
cleanUp: function cleanUp(props, searchState) {
|
|
9066
|
-
return _cleanUp$
|
|
8972
|
+
return _cleanUp$3(props, searchState, {
|
|
9067
8973
|
ais: props.contextValue,
|
|
9068
8974
|
multiIndexContext: props.indexContextValue
|
|
9069
8975
|
});
|
|
@@ -9071,7 +8977,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9071
8977
|
getSearchParameters: function getSearchParameters(params, props, searchState) {
|
|
9072
8978
|
var attribute = props.attribute;
|
|
9073
8979
|
|
|
9074
|
-
var _getCurrentRefinement2 = getCurrentRefinement$
|
|
8980
|
+
var _getCurrentRefinement2 = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9075
8981
|
ais: props.contextValue,
|
|
9076
8982
|
multiIndexContext: props.indexContextValue
|
|
9077
8983
|
}),
|
|
@@ -9097,7 +9003,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9097
9003
|
minRange = _this$_currentRange.min,
|
|
9098
9004
|
maxRange = _this$_currentRange.max;
|
|
9099
9005
|
|
|
9100
|
-
var _getCurrentRefinement3 = getCurrentRefinement$
|
|
9006
|
+
var _getCurrentRefinement3 = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9101
9007
|
ais: props.contextValue,
|
|
9102
9008
|
multiIndexContext: props.indexContextValue
|
|
9103
9009
|
}),
|
|
@@ -9116,7 +9022,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9116
9022
|
label: fragments.join(''),
|
|
9117
9023
|
attribute: props.attribute,
|
|
9118
9024
|
value: function value(nextState) {
|
|
9119
|
-
return _refine$
|
|
9025
|
+
return _refine$5(props, nextState, {}, _this._currentRange, {
|
|
9120
9026
|
ais: props.contextValue,
|
|
9121
9027
|
multiIndexContext: props.indexContextValue
|
|
9122
9028
|
});
|
|
@@ -9132,7 +9038,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9132
9038
|
}
|
|
9133
9039
|
|
|
9134
9040
|
return {
|
|
9135
|
-
id: getId$
|
|
9041
|
+
id: getId$9(props),
|
|
9136
9042
|
index: getIndexId({
|
|
9137
9043
|
ais: props.contextValue,
|
|
9138
9044
|
multiIndexContext: props.indexContextValue
|
|
@@ -9142,14 +9048,14 @@ var connectRange = createConnectorWithContext({
|
|
|
9142
9048
|
}
|
|
9143
9049
|
});
|
|
9144
9050
|
|
|
9145
|
-
var namespace$
|
|
9051
|
+
var namespace$5 = 'refinementList';
|
|
9146
9052
|
|
|
9147
|
-
function getId$
|
|
9053
|
+
function getId$a(props) {
|
|
9148
9054
|
return props.attribute;
|
|
9149
9055
|
}
|
|
9150
9056
|
|
|
9151
|
-
function getCurrentRefinement$
|
|
9152
|
-
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$
|
|
9057
|
+
function getCurrentRefinement$7(props, searchState, context) {
|
|
9058
|
+
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$5, ".").concat(getId$a(props)), []);
|
|
9153
9059
|
|
|
9154
9060
|
if (typeof currentRefinement !== 'string') {
|
|
9155
9061
|
return currentRefinement;
|
|
@@ -9162,8 +9068,8 @@ function getCurrentRefinement$4(props, searchState, context) {
|
|
|
9162
9068
|
return [];
|
|
9163
9069
|
}
|
|
9164
9070
|
|
|
9165
|
-
function getValue(name, props, searchState, context) {
|
|
9166
|
-
var currentRefinement = getCurrentRefinement$
|
|
9071
|
+
function getValue$2(name, props, searchState, context) {
|
|
9072
|
+
var currentRefinement = getCurrentRefinement$7(props, searchState, context);
|
|
9167
9073
|
var isAnewValue = currentRefinement.indexOf(name) === -1;
|
|
9168
9074
|
var nextRefinement = isAnewValue ? currentRefinement.concat([name]) // cannot use .push(), it mutates
|
|
9169
9075
|
: currentRefinement.filter(function (selectedValue) {
|
|
@@ -9173,15 +9079,15 @@ function getValue(name, props, searchState, context) {
|
|
|
9173
9079
|
return nextRefinement;
|
|
9174
9080
|
}
|
|
9175
9081
|
|
|
9176
|
-
function getLimit(_ref) {
|
|
9082
|
+
function getLimit$1(_ref) {
|
|
9177
9083
|
var showMore = _ref.showMore,
|
|
9178
9084
|
limit = _ref.limit,
|
|
9179
9085
|
showMoreLimit = _ref.showMoreLimit;
|
|
9180
9086
|
return showMore ? showMoreLimit : limit;
|
|
9181
9087
|
}
|
|
9182
9088
|
|
|
9183
|
-
function _refine$
|
|
9184
|
-
var id = getId$
|
|
9089
|
+
function _refine$6(props, searchState, nextRefinement, context) {
|
|
9090
|
+
var id = getId$a(props); // Setting the value to an empty string ensures that it is persisted in
|
|
9185
9091
|
// the URL as an empty value.
|
|
9186
9092
|
// This is necessary in the case where `defaultRefinement` contains one
|
|
9187
9093
|
// item and we try to deselect it. `nextSelected` would be an empty array,
|
|
@@ -9192,11 +9098,11 @@ function _refine$3(props, searchState, nextRefinement, context) {
|
|
|
9192
9098
|
var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9193
9099
|
|
|
9194
9100
|
var resetPage = true;
|
|
9195
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
9101
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$5);
|
|
9196
9102
|
}
|
|
9197
9103
|
|
|
9198
|
-
function _cleanUp$
|
|
9199
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
9104
|
+
function _cleanUp$4(props, searchState, context) {
|
|
9105
|
+
return cleanUpValue(searchState, context, "".concat(namespace$5, ".").concat(getId$a(props)));
|
|
9200
9106
|
}
|
|
9201
9107
|
/**
|
|
9202
9108
|
* connectRefinementList connector provides the logic to build a widget that will
|
|
@@ -9223,7 +9129,7 @@ function _cleanUp$3(props, searchState, context) {
|
|
|
9223
9129
|
*/
|
|
9224
9130
|
|
|
9225
9131
|
|
|
9226
|
-
var sortBy = ['isRefined', 'count:desc', 'name:asc'];
|
|
9132
|
+
var sortBy$1 = ['isRefined', 'count:desc', 'name:asc'];
|
|
9227
9133
|
var connectRefinementList = createConnectorWithContext({
|
|
9228
9134
|
displayName: 'AlgoliaRefinementList',
|
|
9229
9135
|
propTypes: {
|
|
@@ -9261,7 +9167,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9261
9167
|
if (!canRefine) {
|
|
9262
9168
|
return {
|
|
9263
9169
|
items: [],
|
|
9264
|
-
currentRefinement: getCurrentRefinement$
|
|
9170
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, {
|
|
9265
9171
|
ais: props.contextValue,
|
|
9266
9172
|
multiIndexContext: props.indexContextValue
|
|
9267
9173
|
}),
|
|
@@ -9274,7 +9180,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9274
9180
|
var items = isFromSearch ? searchForFacetValuesResults[attribute].map(function (v) {
|
|
9275
9181
|
return {
|
|
9276
9182
|
label: v.value,
|
|
9277
|
-
value: getValue(v.value, props, searchState, {
|
|
9183
|
+
value: getValue$2(v.value, props, searchState, {
|
|
9278
9184
|
ais: props.contextValue,
|
|
9279
9185
|
multiIndexContext: props.indexContextValue
|
|
9280
9186
|
}),
|
|
@@ -9287,11 +9193,11 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9287
9193
|
isRefined: v.isRefined
|
|
9288
9194
|
};
|
|
9289
9195
|
}) : results.getFacetValues(attribute, {
|
|
9290
|
-
sortBy: sortBy
|
|
9196
|
+
sortBy: sortBy$1
|
|
9291
9197
|
}).map(function (v) {
|
|
9292
9198
|
return {
|
|
9293
9199
|
label: v.name,
|
|
9294
|
-
value: getValue(v.name, props, searchState, {
|
|
9200
|
+
value: getValue$2(v.name, props, searchState, {
|
|
9295
9201
|
ais: props.contextValue,
|
|
9296
9202
|
multiIndexContext: props.indexContextValue
|
|
9297
9203
|
}),
|
|
@@ -9301,8 +9207,8 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9301
9207
|
});
|
|
9302
9208
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
9303
9209
|
return {
|
|
9304
|
-
items: transformedItems.slice(0, getLimit(props)),
|
|
9305
|
-
currentRefinement: getCurrentRefinement$
|
|
9210
|
+
items: transformedItems.slice(0, getLimit$1(props)),
|
|
9211
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, {
|
|
9306
9212
|
ais: props.contextValue,
|
|
9307
9213
|
multiIndexContext: props.indexContextValue
|
|
9308
9214
|
}),
|
|
@@ -9312,7 +9218,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9312
9218
|
};
|
|
9313
9219
|
},
|
|
9314
9220
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9315
|
-
return _refine$
|
|
9221
|
+
return _refine$6(props, searchState, nextRefinement, {
|
|
9316
9222
|
ais: props.contextValue,
|
|
9317
9223
|
multiIndexContext: props.indexContextValue
|
|
9318
9224
|
});
|
|
@@ -9321,11 +9227,11 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9321
9227
|
return {
|
|
9322
9228
|
facetName: props.attribute,
|
|
9323
9229
|
query: nextRefinement,
|
|
9324
|
-
maxFacetHits: getLimit(props)
|
|
9230
|
+
maxFacetHits: getLimit$1(props)
|
|
9325
9231
|
};
|
|
9326
9232
|
},
|
|
9327
9233
|
cleanUp: function cleanUp(props, searchState) {
|
|
9328
|
-
return _cleanUp$
|
|
9234
|
+
return _cleanUp$4(props, searchState, {
|
|
9329
9235
|
ais: props.contextValue,
|
|
9330
9236
|
multiIndexContext: props.indexContextValue
|
|
9331
9237
|
});
|
|
@@ -9336,10 +9242,10 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9336
9242
|
var addKey = operator === 'and' ? 'addFacet' : 'addDisjunctiveFacet';
|
|
9337
9243
|
var addRefinementKey = "".concat(addKey, "Refinement");
|
|
9338
9244
|
searchParameters = searchParameters.setQueryParameters({
|
|
9339
|
-
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
|
|
9245
|
+
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit$1(props))
|
|
9340
9246
|
});
|
|
9341
9247
|
searchParameters = searchParameters[addKey](attribute);
|
|
9342
|
-
return getCurrentRefinement$
|
|
9248
|
+
return getCurrentRefinement$7(props, searchState, {
|
|
9343
9249
|
ais: props.contextValue,
|
|
9344
9250
|
multiIndexContext: props.indexContextValue
|
|
9345
9251
|
}).reduce(function (res, val) {
|
|
@@ -9347,7 +9253,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9347
9253
|
}, searchParameters);
|
|
9348
9254
|
},
|
|
9349
9255
|
getMetadata: function getMetadata(props, searchState) {
|
|
9350
|
-
var id = getId$
|
|
9256
|
+
var id = getId$a(props);
|
|
9351
9257
|
var context = {
|
|
9352
9258
|
ais: props.contextValue,
|
|
9353
9259
|
multiIndexContext: props.indexContextValue
|
|
@@ -9355,21 +9261,21 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9355
9261
|
return {
|
|
9356
9262
|
id: id,
|
|
9357
9263
|
index: getIndexId(context),
|
|
9358
|
-
items: getCurrentRefinement$
|
|
9264
|
+
items: getCurrentRefinement$7(props, searchState, context).length > 0 ? [{
|
|
9359
9265
|
attribute: props.attribute,
|
|
9360
9266
|
label: "".concat(props.attribute, ": "),
|
|
9361
|
-
currentRefinement: getCurrentRefinement$
|
|
9267
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, context),
|
|
9362
9268
|
value: function value(nextState) {
|
|
9363
|
-
return _refine$
|
|
9269
|
+
return _refine$6(props, nextState, [], context);
|
|
9364
9270
|
},
|
|
9365
|
-
items: getCurrentRefinement$
|
|
9271
|
+
items: getCurrentRefinement$7(props, searchState, context).map(function (item) {
|
|
9366
9272
|
return {
|
|
9367
9273
|
label: "".concat(item),
|
|
9368
9274
|
value: function value(nextState) {
|
|
9369
|
-
var nextSelectedItems = getCurrentRefinement$
|
|
9275
|
+
var nextSelectedItems = getCurrentRefinement$7(props, nextState, context).filter(function (other) {
|
|
9370
9276
|
return other !== item;
|
|
9371
9277
|
});
|
|
9372
|
-
return _refine$
|
|
9278
|
+
return _refine$6(props, searchState, nextSelectedItems, context);
|
|
9373
9279
|
}
|
|
9374
9280
|
};
|
|
9375
9281
|
})
|
|
@@ -9428,7 +9334,7 @@ var connectScrollTo = createConnectorWithContext({
|
|
|
9428
9334
|
// See: https://github.com/algolia/react-instantsearch/issues/164
|
|
9429
9335
|
|
|
9430
9336
|
|
|
9431
|
-
var cleanedSearchState = omit
|
|
9337
|
+
var cleanedSearchState = omit(searchState, ['configure', id]);
|
|
9432
9338
|
var hasNotChanged = shallowEqual(this._prevSearchState, cleanedSearchState);
|
|
9433
9339
|
this._prevSearchState = cleanedSearchState;
|
|
9434
9340
|
return {
|
|
@@ -9438,12 +9344,12 @@ var connectScrollTo = createConnectorWithContext({
|
|
|
9438
9344
|
}
|
|
9439
9345
|
});
|
|
9440
9346
|
|
|
9441
|
-
function getId$
|
|
9347
|
+
function getId$b() {
|
|
9442
9348
|
return 'query';
|
|
9443
9349
|
}
|
|
9444
9350
|
|
|
9445
|
-
function getCurrentRefinement$
|
|
9446
|
-
var id = getId$
|
|
9351
|
+
function getCurrentRefinement$8(props, searchState, context) {
|
|
9352
|
+
var id = getId$b();
|
|
9447
9353
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
|
|
9448
9354
|
|
|
9449
9355
|
if (currentRefinement) {
|
|
@@ -9453,8 +9359,8 @@ function getCurrentRefinement$3(props, searchState, context) {
|
|
|
9453
9359
|
return '';
|
|
9454
9360
|
}
|
|
9455
9361
|
|
|
9456
|
-
function _refine$
|
|
9457
|
-
var id = getId$
|
|
9362
|
+
function _refine$7(props, searchState, nextRefinement, context) {
|
|
9363
|
+
var id = getId$b();
|
|
9458
9364
|
|
|
9459
9365
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9460
9366
|
|
|
@@ -9462,8 +9368,8 @@ function _refine$2(props, searchState, nextRefinement, context) {
|
|
|
9462
9368
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9463
9369
|
}
|
|
9464
9370
|
|
|
9465
|
-
function _cleanUp$
|
|
9466
|
-
return cleanUpValue(searchState, context, getId$
|
|
9371
|
+
function _cleanUp$5(props, searchState, context) {
|
|
9372
|
+
return cleanUpValue(searchState, context, getId$b());
|
|
9467
9373
|
}
|
|
9468
9374
|
/**
|
|
9469
9375
|
* connectSearchBox connector provides the logic to build a widget that will
|
|
@@ -9484,7 +9390,7 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9484
9390
|
},
|
|
9485
9391
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9486
9392
|
return {
|
|
9487
|
-
currentRefinement: getCurrentRefinement$
|
|
9393
|
+
currentRefinement: getCurrentRefinement$8(props, searchState, {
|
|
9488
9394
|
ais: props.contextValue,
|
|
9489
9395
|
multiIndexContext: props.indexContextValue
|
|
9490
9396
|
}),
|
|
@@ -9492,26 +9398,26 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9492
9398
|
};
|
|
9493
9399
|
},
|
|
9494
9400
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9495
|
-
return _refine$
|
|
9401
|
+
return _refine$7(props, searchState, nextRefinement, {
|
|
9496
9402
|
ais: props.contextValue,
|
|
9497
9403
|
multiIndexContext: props.indexContextValue
|
|
9498
9404
|
});
|
|
9499
9405
|
},
|
|
9500
9406
|
cleanUp: function cleanUp(props, searchState) {
|
|
9501
|
-
return _cleanUp$
|
|
9407
|
+
return _cleanUp$5(props, searchState, {
|
|
9502
9408
|
ais: props.contextValue,
|
|
9503
9409
|
multiIndexContext: props.indexContextValue
|
|
9504
9410
|
});
|
|
9505
9411
|
},
|
|
9506
9412
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9507
|
-
return searchParameters.setQuery(getCurrentRefinement$
|
|
9413
|
+
return searchParameters.setQuery(getCurrentRefinement$8(props, searchState, {
|
|
9508
9414
|
ais: props.contextValue,
|
|
9509
9415
|
multiIndexContext: props.indexContextValue
|
|
9510
9416
|
}));
|
|
9511
9417
|
},
|
|
9512
9418
|
getMetadata: function getMetadata(props, searchState) {
|
|
9513
|
-
var id = getId$
|
|
9514
|
-
var currentRefinement = getCurrentRefinement$
|
|
9419
|
+
var id = getId$b();
|
|
9420
|
+
var currentRefinement = getCurrentRefinement$8(props, searchState, {
|
|
9515
9421
|
ais: props.contextValue,
|
|
9516
9422
|
multiIndexContext: props.indexContextValue
|
|
9517
9423
|
});
|
|
@@ -9524,7 +9430,7 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9524
9430
|
items: currentRefinement === null ? [] : [{
|
|
9525
9431
|
label: "".concat(id, ": ").concat(currentRefinement),
|
|
9526
9432
|
value: function value(nextState) {
|
|
9527
|
-
return _refine$
|
|
9433
|
+
return _refine$7(props, nextState, '', {
|
|
9528
9434
|
ais: props.contextValue,
|
|
9529
9435
|
multiIndexContext: props.indexContextValue
|
|
9530
9436
|
});
|
|
@@ -9535,12 +9441,12 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9535
9441
|
}
|
|
9536
9442
|
});
|
|
9537
9443
|
|
|
9538
|
-
function getId$
|
|
9444
|
+
function getId$c() {
|
|
9539
9445
|
return 'relevancyStrictness';
|
|
9540
9446
|
}
|
|
9541
9447
|
|
|
9542
|
-
function getCurrentRefinement$
|
|
9543
|
-
var id = getId$
|
|
9448
|
+
function getCurrentRefinement$9(props, searchState, context) {
|
|
9449
|
+
var id = getId$c();
|
|
9544
9450
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id);
|
|
9545
9451
|
return currentRefinement;
|
|
9546
9452
|
}
|
|
@@ -9566,13 +9472,13 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9566
9472
|
};
|
|
9567
9473
|
},
|
|
9568
9474
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9569
|
-
return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$
|
|
9475
|
+
return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$9(props, searchState, {
|
|
9570
9476
|
ais: props.contextValue,
|
|
9571
9477
|
multiIndexContext: props.indexContextValue
|
|
9572
9478
|
}));
|
|
9573
9479
|
},
|
|
9574
9480
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9575
|
-
var nextValue = _defineProperty({}, getId$
|
|
9481
|
+
var nextValue = _defineProperty({}, getId$c(), nextRefinement);
|
|
9576
9482
|
|
|
9577
9483
|
var resetPage = true;
|
|
9578
9484
|
return refineValue(searchState, nextValue, {
|
|
@@ -9582,12 +9488,12 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9582
9488
|
}
|
|
9583
9489
|
});
|
|
9584
9490
|
|
|
9585
|
-
function getId$
|
|
9491
|
+
function getId$d() {
|
|
9586
9492
|
return 'sortBy';
|
|
9587
9493
|
}
|
|
9588
9494
|
|
|
9589
|
-
function getCurrentRefinement$
|
|
9590
|
-
var id = getId$
|
|
9495
|
+
function getCurrentRefinement$a(props, searchState, context) {
|
|
9496
|
+
var id = getId$d();
|
|
9591
9497
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
|
|
9592
9498
|
|
|
9593
9499
|
if (currentRefinement) {
|
|
@@ -9624,7 +9530,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9624
9530
|
transformItems: PropTypes.func
|
|
9625
9531
|
},
|
|
9626
9532
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
9627
|
-
var currentRefinement = getCurrentRefinement$
|
|
9533
|
+
var currentRefinement = getCurrentRefinement$a(props, searchState, {
|
|
9628
9534
|
ais: props.contextValue,
|
|
9629
9535
|
multiIndexContext: props.indexContextValue
|
|
9630
9536
|
});
|
|
@@ -9641,7 +9547,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9641
9547
|
};
|
|
9642
9548
|
},
|
|
9643
9549
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9644
|
-
var id = getId$
|
|
9550
|
+
var id = getId$d();
|
|
9645
9551
|
|
|
9646
9552
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9647
9553
|
|
|
@@ -9655,10 +9561,10 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9655
9561
|
return cleanUpValue(searchState, {
|
|
9656
9562
|
ais: props.contextValue,
|
|
9657
9563
|
multiIndexContext: props.indexContextValue
|
|
9658
|
-
}, getId$
|
|
9564
|
+
}, getId$d());
|
|
9659
9565
|
},
|
|
9660
9566
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9661
|
-
var selectedIndex = getCurrentRefinement$
|
|
9567
|
+
var selectedIndex = getCurrentRefinement$a(props, searchState, {
|
|
9662
9568
|
ais: props.contextValue,
|
|
9663
9569
|
multiIndexContext: props.indexContextValue
|
|
9664
9570
|
});
|
|
@@ -9666,7 +9572,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9666
9572
|
},
|
|
9667
9573
|
getMetadata: function getMetadata() {
|
|
9668
9574
|
return {
|
|
9669
|
-
id: getId$
|
|
9575
|
+
id: getId$d()
|
|
9670
9576
|
};
|
|
9671
9577
|
}
|
|
9672
9578
|
});
|
|
@@ -9702,15 +9608,15 @@ var connectStats = createConnectorWithContext({
|
|
|
9702
9608
|
}
|
|
9703
9609
|
});
|
|
9704
9610
|
|
|
9705
|
-
function getId$
|
|
9611
|
+
function getId$e(props) {
|
|
9706
9612
|
return props.attribute;
|
|
9707
9613
|
}
|
|
9708
9614
|
|
|
9709
|
-
var namespace = 'toggle';
|
|
9615
|
+
var namespace$6 = 'toggle';
|
|
9710
9616
|
var falsyStrings = ['0', 'false', 'null', 'undefined'];
|
|
9711
9617
|
|
|
9712
|
-
function getCurrentRefinement(props, searchState, context) {
|
|
9713
|
-
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace, ".").concat(getId$
|
|
9618
|
+
function getCurrentRefinement$b(props, searchState, context) {
|
|
9619
|
+
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$6, ".").concat(getId$e(props)), false);
|
|
9714
9620
|
|
|
9715
9621
|
if (falsyStrings.indexOf(currentRefinement) !== -1) {
|
|
9716
9622
|
return false;
|
|
@@ -9719,17 +9625,17 @@ function getCurrentRefinement(props, searchState, context) {
|
|
|
9719
9625
|
return Boolean(currentRefinement);
|
|
9720
9626
|
}
|
|
9721
9627
|
|
|
9722
|
-
function _refine$
|
|
9723
|
-
var id = getId$
|
|
9628
|
+
function _refine$8(props, searchState, nextRefinement, context) {
|
|
9629
|
+
var id = getId$e(props);
|
|
9724
9630
|
|
|
9725
9631
|
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9726
9632
|
|
|
9727
9633
|
var resetPage = true;
|
|
9728
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
9634
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$6);
|
|
9729
9635
|
}
|
|
9730
9636
|
|
|
9731
|
-
function _cleanUp$
|
|
9732
|
-
return cleanUpValue(searchState, context, "".concat(namespace, ".").concat(getId$
|
|
9637
|
+
function _cleanUp$6(props, searchState, context) {
|
|
9638
|
+
return cleanUpValue(searchState, context, "".concat(namespace$6, ".").concat(getId$e(props)));
|
|
9733
9639
|
}
|
|
9734
9640
|
/**
|
|
9735
9641
|
* connectToggleRefinement connector provides the logic to build a widget that will
|
|
@@ -9768,14 +9674,14 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9768
9674
|
ais: props.contextValue,
|
|
9769
9675
|
multiIndexContext: props.indexContextValue
|
|
9770
9676
|
});
|
|
9771
|
-
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
9677
|
+
var currentRefinement = getCurrentRefinement$b(props, searchState, {
|
|
9772
9678
|
ais: props.contextValue,
|
|
9773
9679
|
multiIndexContext: props.indexContextValue
|
|
9774
9680
|
});
|
|
9775
9681
|
var allFacetValues = results && results.getFacetByName(attribute) ? results.getFacetValues(attribute) : null;
|
|
9776
9682
|
var facetValue = // Use null to always be consistent with type of the value
|
|
9777
9683
|
// count: number | null
|
|
9778
|
-
allFacetValues && allFacetValues.length ? find
|
|
9684
|
+
allFacetValues && allFacetValues.length ? find(allFacetValues, function (item) {
|
|
9779
9685
|
return item.name === value.toString();
|
|
9780
9686
|
}) : null;
|
|
9781
9687
|
var facetValueCount = facetValue && facetValue.count;
|
|
@@ -9796,13 +9702,13 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9796
9702
|
};
|
|
9797
9703
|
},
|
|
9798
9704
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9799
|
-
return _refine$
|
|
9705
|
+
return _refine$8(props, searchState, nextRefinement, {
|
|
9800
9706
|
ais: props.contextValue,
|
|
9801
9707
|
multiIndexContext: props.indexContextValue
|
|
9802
9708
|
});
|
|
9803
9709
|
},
|
|
9804
9710
|
cleanUp: function cleanUp(props, searchState) {
|
|
9805
|
-
return _cleanUp$
|
|
9711
|
+
return _cleanUp$6(props, searchState, {
|
|
9806
9712
|
ais: props.contextValue,
|
|
9807
9713
|
multiIndexContext: props.indexContextValue
|
|
9808
9714
|
});
|
|
@@ -9811,7 +9717,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9811
9717
|
var attribute = props.attribute,
|
|
9812
9718
|
value = props.value,
|
|
9813
9719
|
filter = props.filter;
|
|
9814
|
-
var checked = getCurrentRefinement(props, searchState, {
|
|
9720
|
+
var checked = getCurrentRefinement$b(props, searchState, {
|
|
9815
9721
|
ais: props.contextValue,
|
|
9816
9722
|
multiIndexContext: props.indexContextValue
|
|
9817
9723
|
});
|
|
@@ -9828,8 +9734,8 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9828
9734
|
return nextSearchParameters;
|
|
9829
9735
|
},
|
|
9830
9736
|
getMetadata: function getMetadata(props, searchState) {
|
|
9831
|
-
var id = getId$
|
|
9832
|
-
var checked = getCurrentRefinement(props, searchState, {
|
|
9737
|
+
var id = getId$e(props);
|
|
9738
|
+
var checked = getCurrentRefinement$b(props, searchState, {
|
|
9833
9739
|
ais: props.contextValue,
|
|
9834
9740
|
multiIndexContext: props.indexContextValue
|
|
9835
9741
|
});
|
|
@@ -9845,7 +9751,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9845
9751
|
currentRefinement: checked,
|
|
9846
9752
|
attribute: props.attribute,
|
|
9847
9753
|
value: function value(nextState) {
|
|
9848
|
-
return _refine$
|
|
9754
|
+
return _refine$8(props, nextState, false, {
|
|
9849
9755
|
ais: props.contextValue,
|
|
9850
9756
|
multiIndexContext: props.indexContextValue
|
|
9851
9757
|
});
|
|
@@ -9861,7 +9767,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9861
9767
|
}
|
|
9862
9768
|
});
|
|
9863
9769
|
|
|
9864
|
-
function getId() {
|
|
9770
|
+
function getId$f() {
|
|
9865
9771
|
return 'query';
|
|
9866
9772
|
}
|
|
9867
9773
|
|
|
@@ -9870,7 +9776,7 @@ function getAdditionalId() {
|
|
|
9870
9776
|
}
|
|
9871
9777
|
|
|
9872
9778
|
function getCurrentRefinementQuery(props, searchState, context) {
|
|
9873
|
-
var id = getId();
|
|
9779
|
+
var id = getId$f();
|
|
9874
9780
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
|
|
9875
9781
|
|
|
9876
9782
|
if (currentRefinement) {
|
|
@@ -9891,10 +9797,10 @@ function getCurrentRefinementAdditional(props, searchState, context) {
|
|
|
9891
9797
|
return {};
|
|
9892
9798
|
}
|
|
9893
9799
|
|
|
9894
|
-
function _refine(props, searchState, nextRefinement, context) {
|
|
9800
|
+
function _refine$9(props, searchState, nextRefinement, context) {
|
|
9895
9801
|
var _nextValue;
|
|
9896
9802
|
|
|
9897
|
-
var id = getId();
|
|
9803
|
+
var id = getId$f();
|
|
9898
9804
|
var voiceParams = getAdditionalId();
|
|
9899
9805
|
var queryLanguages = props.language ? {
|
|
9900
9806
|
queryLanguages: [props.language.split('-')[0]]
|
|
@@ -9911,8 +9817,8 @@ function _refine(props, searchState, nextRefinement, context) {
|
|
|
9911
9817
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9912
9818
|
}
|
|
9913
9819
|
|
|
9914
|
-
function _cleanUp(props, searchState, context) {
|
|
9915
|
-
var interimState = cleanUpValue(searchState, context, getId());
|
|
9820
|
+
function _cleanUp$7(props, searchState, context) {
|
|
9821
|
+
var interimState = cleanUpValue(searchState, context, getId$f());
|
|
9916
9822
|
return cleanUpValue(interimState, context, getAdditionalId());
|
|
9917
9823
|
}
|
|
9918
9824
|
|
|
@@ -9931,13 +9837,13 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9931
9837
|
};
|
|
9932
9838
|
},
|
|
9933
9839
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9934
|
-
return _refine(props, searchState, nextRefinement, {
|
|
9840
|
+
return _refine$9(props, searchState, nextRefinement, {
|
|
9935
9841
|
ais: props.contextValue,
|
|
9936
9842
|
multiIndexContext: props.indexContextValue
|
|
9937
9843
|
});
|
|
9938
9844
|
},
|
|
9939
9845
|
cleanUp: function cleanUp(props, searchState) {
|
|
9940
|
-
return _cleanUp(props, searchState, {
|
|
9846
|
+
return _cleanUp$7(props, searchState, {
|
|
9941
9847
|
ais: props.contextValue,
|
|
9942
9848
|
multiIndexContext: props.indexContextValue
|
|
9943
9849
|
});
|
|
@@ -9954,7 +9860,7 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9954
9860
|
return searchParameters.setQuery(query).setQueryParameters(additionalParams);
|
|
9955
9861
|
},
|
|
9956
9862
|
getMetadata: function getMetadata(props, searchState) {
|
|
9957
|
-
var id = getId();
|
|
9863
|
+
var id = getId$f();
|
|
9958
9864
|
var currentRefinement = getCurrentRefinementQuery(props, searchState, {
|
|
9959
9865
|
ais: props.contextValue,
|
|
9960
9866
|
multiIndexContext: props.indexContextValue
|
|
@@ -9968,7 +9874,7 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9968
9874
|
items: currentRefinement === null ? [] : [{
|
|
9969
9875
|
label: "".concat(id, ": ").concat(currentRefinement),
|
|
9970
9876
|
value: function value(nextState) {
|
|
9971
|
-
return _refine(props, nextState, '', {
|
|
9877
|
+
return _refine$9(props, nextState, '', {
|
|
9972
9878
|
ais: props.contextValue,
|
|
9973
9879
|
multiIndexContext: props.indexContextValue
|
|
9974
9880
|
});
|
|
@@ -10021,7 +9927,7 @@ function range(_ref) {
|
|
|
10021
9927
|
return (start + current) * limitStep;
|
|
10022
9928
|
});
|
|
10023
9929
|
}
|
|
10024
|
-
function find(array, comparator) {
|
|
9930
|
+
function find$2(array, comparator) {
|
|
10025
9931
|
if (!Array.isArray(array)) {
|
|
10026
9932
|
return undefined;
|
|
10027
9933
|
}
|
|
@@ -10035,11 +9941,11 @@ function find(array, comparator) {
|
|
|
10035
9941
|
return undefined;
|
|
10036
9942
|
}
|
|
10037
9943
|
|
|
10038
|
-
var cx
|
|
9944
|
+
var cx = createClassNames('Panel');
|
|
10039
9945
|
|
|
10040
|
-
var _createContext = createContext(function setCanRefine() {}),
|
|
10041
|
-
PanelConsumer = _createContext.Consumer,
|
|
10042
|
-
PanelProvider = _createContext.Provider;
|
|
9946
|
+
var _createContext$1 = createContext(function setCanRefine() {}),
|
|
9947
|
+
PanelConsumer = _createContext$1.Consumer,
|
|
9948
|
+
PanelProvider = _createContext$1.Provider;
|
|
10043
9949
|
|
|
10044
9950
|
var Panel =
|
|
10045
9951
|
/*#__PURE__*/
|
|
@@ -10082,15 +9988,15 @@ function (_Component) {
|
|
|
10082
9988
|
footer = _this$props.footer;
|
|
10083
9989
|
var canRefine = this.state.canRefine;
|
|
10084
9990
|
return React__default.createElement("div", {
|
|
10085
|
-
className: classnames(cx
|
|
9991
|
+
className: classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
10086
9992
|
}, header && React__default.createElement("div", {
|
|
10087
|
-
className: cx
|
|
9993
|
+
className: cx('header')
|
|
10088
9994
|
}, header), React__default.createElement("div", {
|
|
10089
|
-
className: cx
|
|
9995
|
+
className: cx('body')
|
|
10090
9996
|
}, React__default.createElement(PanelProvider, {
|
|
10091
9997
|
value: this.setCanRefine
|
|
10092
9998
|
}, children)), footer && React__default.createElement("div", {
|
|
10093
|
-
className: cx
|
|
9999
|
+
className: cx('footer')
|
|
10094
10000
|
}, footer));
|
|
10095
10001
|
}
|
|
10096
10002
|
}]);
|
|
@@ -10213,8 +10119,8 @@ _defineProperty(Link, "propTypes", {
|
|
|
10213
10119
|
onClick: PropTypes.func.isRequired
|
|
10214
10120
|
});
|
|
10215
10121
|
|
|
10216
|
-
var cx$
|
|
10217
|
-
var itemsPropType
|
|
10122
|
+
var cx$1 = createClassNames('Breadcrumb');
|
|
10123
|
+
var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
|
|
10218
10124
|
label: PropTypes.string.isRequired,
|
|
10219
10125
|
value: PropTypes.string.isRequired
|
|
10220
10126
|
}));
|
|
@@ -10243,9 +10149,9 @@ function (_Component) {
|
|
|
10243
10149
|
translate = _this$props.translate,
|
|
10244
10150
|
className = _this$props.className;
|
|
10245
10151
|
var rootPath = canRefine ? React__default.createElement("li", {
|
|
10246
|
-
className: cx$
|
|
10152
|
+
className: cx$1('item')
|
|
10247
10153
|
}, React__default.createElement(Link, {
|
|
10248
|
-
className: cx$
|
|
10154
|
+
className: cx$1('link'),
|
|
10249
10155
|
onClick: function onClick() {
|
|
10250
10156
|
return !rootURL ? refine() : null;
|
|
10251
10157
|
},
|
|
@@ -10254,12 +10160,12 @@ function (_Component) {
|
|
|
10254
10160
|
var breadcrumb = items.map(function (item, idx) {
|
|
10255
10161
|
var isLast = idx === items.length - 1;
|
|
10256
10162
|
return React__default.createElement("li", {
|
|
10257
|
-
className: cx$
|
|
10163
|
+
className: cx$1('item', isLast && 'item--selected'),
|
|
10258
10164
|
key: idx
|
|
10259
10165
|
}, React__default.createElement("span", {
|
|
10260
|
-
className: cx$
|
|
10166
|
+
className: cx$1('separator')
|
|
10261
10167
|
}, separator), !isLast ? React__default.createElement(Link, {
|
|
10262
|
-
className: cx$
|
|
10168
|
+
className: cx$1('link'),
|
|
10263
10169
|
onClick: function onClick() {
|
|
10264
10170
|
return refine(item.value);
|
|
10265
10171
|
},
|
|
@@ -10267,9 +10173,9 @@ function (_Component) {
|
|
|
10267
10173
|
}, item.label) : item.label);
|
|
10268
10174
|
});
|
|
10269
10175
|
return React__default.createElement("div", {
|
|
10270
|
-
className: classnames(cx$
|
|
10176
|
+
className: classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10271
10177
|
}, React__default.createElement("ul", {
|
|
10272
|
-
className: cx$
|
|
10178
|
+
className: cx$1('list')
|
|
10273
10179
|
}, rootPath, breadcrumb));
|
|
10274
10180
|
}
|
|
10275
10181
|
}]);
|
|
@@ -10280,7 +10186,7 @@ function (_Component) {
|
|
|
10280
10186
|
_defineProperty(Breadcrumb, "propTypes", {
|
|
10281
10187
|
canRefine: PropTypes.bool.isRequired,
|
|
10282
10188
|
createURL: PropTypes.func.isRequired,
|
|
10283
|
-
items: itemsPropType
|
|
10189
|
+
items: itemsPropType,
|
|
10284
10190
|
refine: PropTypes.func.isRequired,
|
|
10285
10191
|
rootURL: PropTypes.string,
|
|
10286
10192
|
separator: PropTypes.node,
|
|
@@ -10392,7 +10298,7 @@ var BreadcrumbWidget = function BreadcrumbWidget(props) {
|
|
|
10392
10298
|
|
|
10393
10299
|
connectBreadcrumb(BreadcrumbWidget);
|
|
10394
10300
|
|
|
10395
|
-
var cx$
|
|
10301
|
+
var cx$2 = createClassNames('ClearRefinements');
|
|
10396
10302
|
|
|
10397
10303
|
var ClearRefinements =
|
|
10398
10304
|
/*#__PURE__*/
|
|
@@ -10415,9 +10321,9 @@ function (_Component) {
|
|
|
10415
10321
|
translate = _this$props.translate,
|
|
10416
10322
|
className = _this$props.className;
|
|
10417
10323
|
return React__default.createElement("div", {
|
|
10418
|
-
className: classnames(cx$
|
|
10324
|
+
className: classnames(cx$2(''), className)
|
|
10419
10325
|
}, React__default.createElement("button", {
|
|
10420
|
-
className: cx$
|
|
10326
|
+
className: cx$2('button', !canRefine && 'button--disabled'),
|
|
10421
10327
|
onClick: function onClick() {
|
|
10422
10328
|
return refine(items);
|
|
10423
10329
|
},
|
|
@@ -10485,7 +10391,7 @@ var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
|
|
|
10485
10391
|
|
|
10486
10392
|
connectCurrentRefinements(ClearRefinementsWidget);
|
|
10487
10393
|
|
|
10488
|
-
var cx$
|
|
10394
|
+
var cx$3 = createClassNames('CurrentRefinements');
|
|
10489
10395
|
var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
10490
10396
|
var items = _ref.items,
|
|
10491
10397
|
canRefine = _ref.canRefine,
|
|
@@ -10493,31 +10399,31 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10493
10399
|
translate = _ref.translate,
|
|
10494
10400
|
className = _ref.className;
|
|
10495
10401
|
return React__default.createElement("div", {
|
|
10496
|
-
className: classnames(cx$
|
|
10402
|
+
className: classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10497
10403
|
}, React__default.createElement("ul", {
|
|
10498
|
-
className: cx$
|
|
10404
|
+
className: cx$3('list', !canRefine && 'list--noRefinement')
|
|
10499
10405
|
}, items.map(function (item) {
|
|
10500
10406
|
return React__default.createElement("li", {
|
|
10501
10407
|
key: item.label,
|
|
10502
|
-
className: cx$
|
|
10408
|
+
className: cx$3('item')
|
|
10503
10409
|
}, React__default.createElement("span", {
|
|
10504
|
-
className: cx$
|
|
10410
|
+
className: cx$3('label')
|
|
10505
10411
|
}, item.label), item.items ? item.items.map(function (nest) {
|
|
10506
10412
|
return React__default.createElement("span", {
|
|
10507
10413
|
key: nest.label,
|
|
10508
|
-
className: cx$
|
|
10414
|
+
className: cx$3('category')
|
|
10509
10415
|
}, React__default.createElement("span", {
|
|
10510
|
-
className: cx$
|
|
10416
|
+
className: cx$3('categoryLabel')
|
|
10511
10417
|
}, nest.label), React__default.createElement("button", {
|
|
10512
|
-
className: cx$
|
|
10418
|
+
className: cx$3('delete'),
|
|
10513
10419
|
onClick: function onClick() {
|
|
10514
10420
|
return refine(nest.value);
|
|
10515
10421
|
}
|
|
10516
10422
|
}, translate('clearFilter', nest)));
|
|
10517
10423
|
}) : React__default.createElement("span", {
|
|
10518
|
-
className: cx$
|
|
10424
|
+
className: cx$3('category')
|
|
10519
10425
|
}, React__default.createElement("button", {
|
|
10520
|
-
className: cx$
|
|
10426
|
+
className: cx$3('delete'),
|
|
10521
10427
|
onClick: function onClick() {
|
|
10522
10428
|
return refine(item.value);
|
|
10523
10429
|
}
|
|
@@ -10593,14 +10499,14 @@ var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
|
|
|
10593
10499
|
|
|
10594
10500
|
connectCurrentRefinements(CurrentRefinementsWidget);
|
|
10595
10501
|
|
|
10596
|
-
var cx$
|
|
10502
|
+
var cx$4 = createClassNames('SearchBox');
|
|
10597
10503
|
var defaultLoadingIndicator = React__default.createElement("svg", {
|
|
10598
10504
|
width: "18",
|
|
10599
10505
|
height: "18",
|
|
10600
10506
|
viewBox: "0 0 38 38",
|
|
10601
10507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10602
10508
|
stroke: "#444",
|
|
10603
|
-
className: cx$
|
|
10509
|
+
className: cx$4('loadingIcon')
|
|
10604
10510
|
}, React__default.createElement("g", {
|
|
10605
10511
|
fill: "none",
|
|
10606
10512
|
fillRule: "evenodd"
|
|
@@ -10623,7 +10529,7 @@ var defaultLoadingIndicator = React__default.createElement("svg", {
|
|
|
10623
10529
|
repeatCount: "indefinite"
|
|
10624
10530
|
})))));
|
|
10625
10531
|
var defaultReset = React__default.createElement("svg", {
|
|
10626
|
-
className: cx$
|
|
10532
|
+
className: cx$4('resetIcon'),
|
|
10627
10533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10628
10534
|
viewBox: "0 0 20 20",
|
|
10629
10535
|
width: "10",
|
|
@@ -10632,7 +10538,7 @@ var defaultReset = React__default.createElement("svg", {
|
|
|
10632
10538
|
d: "M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"
|
|
10633
10539
|
}));
|
|
10634
10540
|
var defaultSubmit = React__default.createElement("svg", {
|
|
10635
|
-
className: cx$
|
|
10541
|
+
className: cx$4('submitIcon'),
|
|
10636
10542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10637
10543
|
width: "10",
|
|
10638
10544
|
height: "10",
|
|
@@ -10641,7 +10547,7 @@ var defaultSubmit = React__default.createElement("svg", {
|
|
|
10641
10547
|
d: "M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"
|
|
10642
10548
|
}));
|
|
10643
10549
|
|
|
10644
|
-
var SearchBox
|
|
10550
|
+
var SearchBox =
|
|
10645
10551
|
/*#__PURE__*/
|
|
10646
10552
|
function (_Component) {
|
|
10647
10553
|
_inherits(SearchBox, _Component);
|
|
@@ -10804,12 +10710,12 @@ function (_Component) {
|
|
|
10804
10710
|
/* eslint-disable max-len */
|
|
10805
10711
|
|
|
10806
10712
|
return React__default.createElement("div", {
|
|
10807
|
-
className: classnames(cx$
|
|
10713
|
+
className: classnames(cx$4(''), className)
|
|
10808
10714
|
}, React__default.createElement("form", {
|
|
10809
10715
|
noValidate: true,
|
|
10810
10716
|
onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
|
|
10811
10717
|
onReset: this.onReset,
|
|
10812
|
-
className: cx$
|
|
10718
|
+
className: cx$4('form', isSearchStalled && 'form--stalledSearch'),
|
|
10813
10719
|
action: "",
|
|
10814
10720
|
role: "search"
|
|
10815
10721
|
}, React__default.createElement("input", _extends({
|
|
@@ -10826,19 +10732,19 @@ function (_Component) {
|
|
|
10826
10732
|
value: query,
|
|
10827
10733
|
onChange: this.onChange
|
|
10828
10734
|
}, searchInputEvents, {
|
|
10829
|
-
className: cx$
|
|
10735
|
+
className: cx$4('input')
|
|
10830
10736
|
})), React__default.createElement("button", {
|
|
10831
10737
|
type: "submit",
|
|
10832
10738
|
title: translate('submitTitle'),
|
|
10833
|
-
className: cx$
|
|
10739
|
+
className: cx$4('submit')
|
|
10834
10740
|
}, submit), React__default.createElement("button", {
|
|
10835
10741
|
type: "reset",
|
|
10836
10742
|
title: translate('resetTitle'),
|
|
10837
|
-
className: cx$
|
|
10743
|
+
className: cx$4('reset'),
|
|
10838
10744
|
hidden: !query || isSearchStalled
|
|
10839
10745
|
}, reset), this.props.showLoadingIndicator && React__default.createElement("span", {
|
|
10840
10746
|
hidden: !isSearchStalled,
|
|
10841
|
-
className: cx$
|
|
10747
|
+
className: cx$4('loadingIndicator')
|
|
10842
10748
|
}, loadingIndicator)));
|
|
10843
10749
|
/* eslint-enable */
|
|
10844
10750
|
}
|
|
@@ -10847,7 +10753,7 @@ function (_Component) {
|
|
|
10847
10753
|
return SearchBox;
|
|
10848
10754
|
}(Component);
|
|
10849
10755
|
|
|
10850
|
-
_defineProperty(SearchBox
|
|
10756
|
+
_defineProperty(SearchBox, "propTypes", {
|
|
10851
10757
|
currentRefinement: PropTypes.string,
|
|
10852
10758
|
className: PropTypes.string,
|
|
10853
10759
|
refine: PropTypes.func.isRequired,
|
|
@@ -10868,7 +10774,7 @@ _defineProperty(SearchBox$1, "propTypes", {
|
|
|
10868
10774
|
})])
|
|
10869
10775
|
});
|
|
10870
10776
|
|
|
10871
|
-
_defineProperty(SearchBox
|
|
10777
|
+
_defineProperty(SearchBox, "defaultProps", {
|
|
10872
10778
|
currentRefinement: '',
|
|
10873
10779
|
className: '',
|
|
10874
10780
|
focusShortcuts: ['s', '/'],
|
|
@@ -10881,11 +10787,11 @@ _defineProperty(SearchBox$1, "defaultProps", {
|
|
|
10881
10787
|
submit: defaultSubmit
|
|
10882
10788
|
});
|
|
10883
10789
|
|
|
10884
|
-
var SearchBox$
|
|
10790
|
+
var SearchBox$1 = translatable({
|
|
10885
10791
|
resetTitle: 'Clear the search query.',
|
|
10886
10792
|
submitTitle: 'Submit your search query.',
|
|
10887
10793
|
placeholder: 'Search here…'
|
|
10888
|
-
})(SearchBox
|
|
10794
|
+
})(SearchBox);
|
|
10889
10795
|
|
|
10890
10796
|
var itemsPropType$1 = PropTypes.arrayOf(PropTypes.shape({
|
|
10891
10797
|
value: PropTypes.any,
|
|
@@ -10985,7 +10891,7 @@ function (_Component) {
|
|
|
10985
10891
|
}, translate('noResults')) : null;
|
|
10986
10892
|
return React__default.createElement("div", {
|
|
10987
10893
|
className: cx('searchBox')
|
|
10988
|
-
}, React__default.createElement(SearchBox$
|
|
10894
|
+
}, React__default.createElement(SearchBox$1, {
|
|
10989
10895
|
currentRefinement: this.state.query,
|
|
10990
10896
|
refine: function refine(value) {
|
|
10991
10897
|
_this2.setState({
|
|
@@ -11065,13 +10971,13 @@ _defineProperty(List, "defaultProps", {
|
|
|
11065
10971
|
isFromSearch: false
|
|
11066
10972
|
});
|
|
11067
10973
|
|
|
11068
|
-
var cx$
|
|
11069
|
-
var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
|
|
10974
|
+
var cx$5 = createClassNames('HierarchicalMenu');
|
|
10975
|
+
var itemsPropType$2 = PropTypes.arrayOf(PropTypes.shape({
|
|
11070
10976
|
label: PropTypes.string.isRequired,
|
|
11071
10977
|
value: PropTypes.string,
|
|
11072
10978
|
count: PropTypes.number.isRequired,
|
|
11073
10979
|
items: function items() {
|
|
11074
|
-
return itemsPropType.apply(void 0, arguments);
|
|
10980
|
+
return itemsPropType$2.apply(void 0, arguments);
|
|
11075
10981
|
}
|
|
11076
10982
|
}));
|
|
11077
10983
|
|
|
@@ -11098,15 +11004,15 @@ function (_Component) {
|
|
|
11098
11004
|
createURL = _this$props.createURL,
|
|
11099
11005
|
refine = _this$props.refine;
|
|
11100
11006
|
return React__default.createElement(Link, {
|
|
11101
|
-
className: cx$
|
|
11007
|
+
className: cx$5('link'),
|
|
11102
11008
|
onClick: function onClick() {
|
|
11103
11009
|
return refine(item.value);
|
|
11104
11010
|
},
|
|
11105
11011
|
href: createURL(item.value)
|
|
11106
11012
|
}, React__default.createElement("span", {
|
|
11107
|
-
className: cx$
|
|
11013
|
+
className: cx$5('label')
|
|
11108
11014
|
}, item.label), ' ', React__default.createElement("span", {
|
|
11109
|
-
className: cx$
|
|
11015
|
+
className: cx$5('count')
|
|
11110
11016
|
}, item.count));
|
|
11111
11017
|
});
|
|
11112
11018
|
|
|
@@ -11126,7 +11032,7 @@ function (_Component) {
|
|
|
11126
11032
|
className = _this$props2.className;
|
|
11127
11033
|
return React__default.createElement(List, {
|
|
11128
11034
|
renderItem: this.renderItem,
|
|
11129
|
-
cx: cx$
|
|
11035
|
+
cx: cx$5,
|
|
11130
11036
|
translate: translate,
|
|
11131
11037
|
items: items,
|
|
11132
11038
|
showMore: showMore,
|
|
@@ -11146,7 +11052,7 @@ _defineProperty(HierarchicalMenu, "propTypes", {
|
|
|
11146
11052
|
refine: PropTypes.func.isRequired,
|
|
11147
11053
|
createURL: PropTypes.func.isRequired,
|
|
11148
11054
|
canRefine: PropTypes.bool.isRequired,
|
|
11149
|
-
items: itemsPropType,
|
|
11055
|
+
items: itemsPropType$2,
|
|
11150
11056
|
showMore: PropTypes.bool,
|
|
11151
11057
|
className: PropTypes.string,
|
|
11152
11058
|
limit: PropTypes.number,
|
|
@@ -11260,7 +11166,7 @@ var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
|
|
|
11260
11166
|
|
|
11261
11167
|
connectHierarchicalMenu(HierarchicalMenuWidget);
|
|
11262
11168
|
|
|
11263
|
-
var Highlight
|
|
11169
|
+
var Highlight = function Highlight(_ref) {
|
|
11264
11170
|
var cx = _ref.cx,
|
|
11265
11171
|
value = _ref.value,
|
|
11266
11172
|
highlightedTagName = _ref.highlightedTagName,
|
|
@@ -11272,7 +11178,7 @@ var Highlight$2 = function Highlight(_ref) {
|
|
|
11272
11178
|
className: cx(className)
|
|
11273
11179
|
}, value);
|
|
11274
11180
|
};
|
|
11275
|
-
Highlight
|
|
11181
|
+
Highlight.propTypes = {
|
|
11276
11182
|
cx: PropTypes.func.isRequired,
|
|
11277
11183
|
value: PropTypes.string.isRequired,
|
|
11278
11184
|
isHighlighted: PropTypes.bool.isRequired,
|
|
@@ -11303,7 +11209,7 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11303
11209
|
return React__default.createElement("span", {
|
|
11304
11210
|
key: i
|
|
11305
11211
|
}, item.map(function (element, index) {
|
|
11306
|
-
return React__default.createElement(Highlight
|
|
11212
|
+
return React__default.createElement(Highlight, {
|
|
11307
11213
|
cx: cx,
|
|
11308
11214
|
key: index,
|
|
11309
11215
|
value: element.value,
|
|
@@ -11316,7 +11222,7 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11316
11222
|
}, separator));
|
|
11317
11223
|
}
|
|
11318
11224
|
|
|
11319
|
-
return React__default.createElement(Highlight
|
|
11225
|
+
return React__default.createElement(Highlight, {
|
|
11320
11226
|
cx: cx,
|
|
11321
11227
|
key: i,
|
|
11322
11228
|
value: item.value,
|
|
@@ -11345,12 +11251,12 @@ Highlighter.defaultProps = {
|
|
|
11345
11251
|
separator: ', '
|
|
11346
11252
|
};
|
|
11347
11253
|
|
|
11348
|
-
var cx$
|
|
11254
|
+
var cx$6 = createClassNames('Highlight');
|
|
11349
11255
|
|
|
11350
11256
|
var Highlight$1 = function Highlight(props) {
|
|
11351
11257
|
return React__default.createElement(Highlighter, _extends({}, props, {
|
|
11352
11258
|
highlightProperty: "_highlightResult",
|
|
11353
|
-
cx: cx$
|
|
11259
|
+
cx: cx$6
|
|
11354
11260
|
}));
|
|
11355
11261
|
};
|
|
11356
11262
|
|
|
@@ -11395,9 +11301,9 @@ var Highlight$1 = function Highlight(props) {
|
|
|
11395
11301
|
* );
|
|
11396
11302
|
*/
|
|
11397
11303
|
|
|
11398
|
-
var Highlight = connectHighlight(Highlight$1);
|
|
11304
|
+
var Highlight$2 = connectHighlight(Highlight$1);
|
|
11399
11305
|
|
|
11400
|
-
var cx$
|
|
11306
|
+
var cx$7 = createClassNames('Hits');
|
|
11401
11307
|
|
|
11402
11308
|
var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
11403
11309
|
return React__default.createElement("div", {
|
|
@@ -11410,19 +11316,19 @@ var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
|
11410
11316
|
}, JSON.stringify(props).slice(0, 100), "...");
|
|
11411
11317
|
};
|
|
11412
11318
|
|
|
11413
|
-
var Hits
|
|
11319
|
+
var Hits = function Hits(_ref) {
|
|
11414
11320
|
var hits = _ref.hits,
|
|
11415
11321
|
_ref$className = _ref.className,
|
|
11416
11322
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
11417
11323
|
_ref$hitComponent = _ref.hitComponent,
|
|
11418
11324
|
HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
|
|
11419
11325
|
return React__default.createElement("div", {
|
|
11420
|
-
className: classnames(cx$
|
|
11326
|
+
className: classnames(cx$7(''), className)
|
|
11421
11327
|
}, React__default.createElement("ul", {
|
|
11422
|
-
className: cx$
|
|
11328
|
+
className: cx$7('list')
|
|
11423
11329
|
}, hits.map(function (hit) {
|
|
11424
11330
|
return React__default.createElement("li", {
|
|
11425
|
-
className: cx$
|
|
11331
|
+
className: cx$7('item'),
|
|
11426
11332
|
key: hit.objectID
|
|
11427
11333
|
}, React__default.createElement(HitComponent, {
|
|
11428
11334
|
hit: hit
|
|
@@ -11433,7 +11339,7 @@ var Hits$1 = function Hits(_ref) {
|
|
|
11433
11339
|
var HitPropTypes = PropTypes.shape({
|
|
11434
11340
|
objectID: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
11435
11341
|
});
|
|
11436
|
-
Hits
|
|
11342
|
+
Hits.propTypes = {
|
|
11437
11343
|
hits: PropTypes.arrayOf(HitPropTypes.isRequired).isRequired,
|
|
11438
11344
|
className: PropTypes.string,
|
|
11439
11345
|
hitComponent: PropTypes.func
|
|
@@ -11472,7 +11378,7 @@ Hits$1.propTypes = {
|
|
|
11472
11378
|
* );
|
|
11473
11379
|
*/
|
|
11474
11380
|
|
|
11475
|
-
var Hits = connectHits(Hits
|
|
11381
|
+
var Hits$1 = connectHits(Hits);
|
|
11476
11382
|
|
|
11477
11383
|
var Select =
|
|
11478
11384
|
/*#__PURE__*/
|
|
@@ -11536,7 +11442,7 @@ _defineProperty(Select, "propTypes", {
|
|
|
11536
11442
|
selectedItem: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
11537
11443
|
});
|
|
11538
11444
|
|
|
11539
|
-
var cx$
|
|
11445
|
+
var cx$8 = createClassNames('HitsPerPage');
|
|
11540
11446
|
|
|
11541
11447
|
var HitsPerPage =
|
|
11542
11448
|
/*#__PURE__*/
|
|
@@ -11558,12 +11464,12 @@ function (_Component) {
|
|
|
11558
11464
|
refine = _this$props.refine,
|
|
11559
11465
|
className = _this$props.className;
|
|
11560
11466
|
return React__default.createElement("div", {
|
|
11561
|
-
className: classnames(cx$
|
|
11467
|
+
className: classnames(cx$8(''), className)
|
|
11562
11468
|
}, React__default.createElement(Select, {
|
|
11563
11469
|
onSelect: refine,
|
|
11564
11470
|
selectedItem: currentRefinement,
|
|
11565
11471
|
items: items,
|
|
11566
|
-
cx: cx$
|
|
11472
|
+
cx: cx$8
|
|
11567
11473
|
}));
|
|
11568
11474
|
}
|
|
11569
11475
|
}]);
|
|
@@ -11629,7 +11535,7 @@ _defineProperty(HitsPerPage, "defaultProps", {
|
|
|
11629
11535
|
|
|
11630
11536
|
connectHitsPerPage(HitsPerPage);
|
|
11631
11537
|
|
|
11632
|
-
var cx$
|
|
11538
|
+
var cx$9 = createClassNames('InfiniteHits');
|
|
11633
11539
|
|
|
11634
11540
|
var InfiniteHits =
|
|
11635
11541
|
/*#__PURE__*/
|
|
@@ -11656,24 +11562,24 @@ function (_Component) {
|
|
|
11656
11562
|
translate = _this$props.translate,
|
|
11657
11563
|
className = _this$props.className;
|
|
11658
11564
|
return React__default.createElement("div", {
|
|
11659
|
-
className: classnames(cx$
|
|
11565
|
+
className: classnames(cx$9(''), className)
|
|
11660
11566
|
}, showPrevious && React__default.createElement("button", {
|
|
11661
|
-
className: cx$
|
|
11567
|
+
className: cx$9('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
|
|
11662
11568
|
onClick: function onClick() {
|
|
11663
11569
|
return refinePrevious();
|
|
11664
11570
|
},
|
|
11665
11571
|
disabled: !hasPrevious
|
|
11666
11572
|
}, translate('loadPrevious')), React__default.createElement("ul", {
|
|
11667
|
-
className: cx$
|
|
11573
|
+
className: cx$9('list')
|
|
11668
11574
|
}, hits.map(function (hit) {
|
|
11669
11575
|
return React__default.createElement("li", {
|
|
11670
11576
|
key: hit.objectID,
|
|
11671
|
-
className: cx$
|
|
11577
|
+
className: cx$9('item')
|
|
11672
11578
|
}, React__default.createElement(HitComponent, {
|
|
11673
11579
|
hit: hit
|
|
11674
11580
|
}));
|
|
11675
11581
|
})), React__default.createElement("button", {
|
|
11676
|
-
className: cx$
|
|
11582
|
+
className: cx$9('loadMore', !hasMore && 'loadMore--disabled'),
|
|
11677
11583
|
onClick: function onClick() {
|
|
11678
11584
|
return refineNext();
|
|
11679
11585
|
},
|
|
@@ -11754,7 +11660,7 @@ var InfiniteHits$1 = translatable({
|
|
|
11754
11660
|
|
|
11755
11661
|
connectInfiniteHits(InfiniteHits$1);
|
|
11756
11662
|
|
|
11757
|
-
var cx$
|
|
11663
|
+
var cx$a = createClassNames('Menu');
|
|
11758
11664
|
|
|
11759
11665
|
var Menu =
|
|
11760
11666
|
/*#__PURE__*/
|
|
@@ -11776,20 +11682,20 @@ function (_Component) {
|
|
|
11776
11682
|
|
|
11777
11683
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11778
11684
|
var createURL = _this.props.createURL;
|
|
11779
|
-
var label = _this.props.isFromSearch ? React__default.createElement(Highlight, {
|
|
11685
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
11780
11686
|
attribute: "label",
|
|
11781
11687
|
hit: item
|
|
11782
11688
|
}) : item.label;
|
|
11783
11689
|
return React__default.createElement(Link, {
|
|
11784
|
-
className: cx$
|
|
11690
|
+
className: cx$a('link'),
|
|
11785
11691
|
onClick: function onClick() {
|
|
11786
11692
|
return _this.selectItem(item, resetQuery);
|
|
11787
11693
|
},
|
|
11788
11694
|
href: createURL(item.value)
|
|
11789
11695
|
}, React__default.createElement("span", {
|
|
11790
|
-
className: cx$
|
|
11696
|
+
className: cx$a('label')
|
|
11791
11697
|
}, label), ' ', React__default.createElement("span", {
|
|
11792
|
-
className: cx$
|
|
11698
|
+
className: cx$a('count')
|
|
11793
11699
|
}, item.count));
|
|
11794
11700
|
});
|
|
11795
11701
|
|
|
@@ -11819,7 +11725,7 @@ function (_Component) {
|
|
|
11819
11725
|
return React__default.createElement(List, {
|
|
11820
11726
|
renderItem: this.renderItem,
|
|
11821
11727
|
selectItem: this.selectItem,
|
|
11822
|
-
cx: cx$
|
|
11728
|
+
cx: cx$a,
|
|
11823
11729
|
translate: translate,
|
|
11824
11730
|
items: items,
|
|
11825
11731
|
showMore: showMore,
|
|
@@ -11929,7 +11835,7 @@ var MenuWidget = function MenuWidget(props) {
|
|
|
11929
11835
|
|
|
11930
11836
|
connectMenu(MenuWidget);
|
|
11931
11837
|
|
|
11932
|
-
var cx$
|
|
11838
|
+
var cx$b = createClassNames('MenuSelect');
|
|
11933
11839
|
|
|
11934
11840
|
var MenuSelect =
|
|
11935
11841
|
/*#__PURE__*/
|
|
@@ -11967,26 +11873,26 @@ function (_Component) {
|
|
|
11967
11873
|
translate = _this$props.translate,
|
|
11968
11874
|
className = _this$props.className;
|
|
11969
11875
|
return React__default.createElement("div", {
|
|
11970
|
-
className: classnames(cx$
|
|
11876
|
+
className: classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
11971
11877
|
}, React__default.createElement("select", {
|
|
11972
11878
|
value: this.selectedValue,
|
|
11973
11879
|
onChange: this.handleSelectChange,
|
|
11974
|
-
className: cx$
|
|
11880
|
+
className: cx$b('select')
|
|
11975
11881
|
}, React__default.createElement("option", {
|
|
11976
11882
|
value: "ais__see__all__option",
|
|
11977
|
-
className: cx$
|
|
11883
|
+
className: cx$b('option')
|
|
11978
11884
|
}, translate('seeAllOption')), items.map(function (item) {
|
|
11979
11885
|
return React__default.createElement("option", {
|
|
11980
11886
|
key: item.value,
|
|
11981
11887
|
value: item.value,
|
|
11982
|
-
className: cx$
|
|
11888
|
+
className: cx$b('option')
|
|
11983
11889
|
}, item.label, " (", item.count, ")");
|
|
11984
11890
|
})));
|
|
11985
11891
|
}
|
|
11986
11892
|
}, {
|
|
11987
11893
|
key: "selectedValue",
|
|
11988
11894
|
get: function get() {
|
|
11989
|
-
var _ref2 = find(this.props.items, function (item) {
|
|
11895
|
+
var _ref2 = find$2(this.props.items, function (item) {
|
|
11990
11896
|
return item.isRefined === true;
|
|
11991
11897
|
}) || {
|
|
11992
11898
|
value: 'ais__see__all__option'
|
|
@@ -12063,7 +11969,7 @@ var MenuSelectWidget = function MenuSelectWidget(props) {
|
|
|
12063
11969
|
|
|
12064
11970
|
connectMenu(MenuSelectWidget);
|
|
12065
11971
|
|
|
12066
|
-
var cx$
|
|
11972
|
+
var cx$c = createClassNames('NumericMenu');
|
|
12067
11973
|
|
|
12068
11974
|
var NumericMenu =
|
|
12069
11975
|
/*#__PURE__*/
|
|
@@ -12088,9 +11994,9 @@ function (_Component) {
|
|
|
12088
11994
|
refine = _this$props.refine,
|
|
12089
11995
|
translate = _this$props.translate;
|
|
12090
11996
|
return React__default.createElement("label", {
|
|
12091
|
-
className: cx$
|
|
11997
|
+
className: cx$c('label')
|
|
12092
11998
|
}, React__default.createElement("input", {
|
|
12093
|
-
className: cx$
|
|
11999
|
+
className: cx$c('radio'),
|
|
12094
12000
|
type: "radio",
|
|
12095
12001
|
checked: item.isRefined,
|
|
12096
12002
|
disabled: item.noRefinement,
|
|
@@ -12098,7 +12004,7 @@ function (_Component) {
|
|
|
12098
12004
|
return refine(item.value);
|
|
12099
12005
|
}
|
|
12100
12006
|
}), React__default.createElement("span", {
|
|
12101
|
-
className: cx$
|
|
12007
|
+
className: cx$c('labelText')
|
|
12102
12008
|
}, item.value === '' ? translate('all') : item.label));
|
|
12103
12009
|
});
|
|
12104
12010
|
|
|
@@ -12116,7 +12022,7 @@ function (_Component) {
|
|
|
12116
12022
|
renderItem: this.renderItem,
|
|
12117
12023
|
showMore: false,
|
|
12118
12024
|
canRefine: canRefine,
|
|
12119
|
-
cx: cx$
|
|
12025
|
+
cx: cx$c,
|
|
12120
12026
|
items: items.map(function (item) {
|
|
12121
12027
|
return _objectSpread({}, item, {
|
|
12122
12028
|
key: item.value
|
|
@@ -12261,7 +12167,7 @@ _defineProperty(LinkList, "propTypes", {
|
|
|
12261
12167
|
canRefine: PropTypes.bool.isRequired
|
|
12262
12168
|
});
|
|
12263
12169
|
|
|
12264
|
-
var cx$
|
|
12170
|
+
var cx$d = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
|
|
12265
12171
|
|
|
12266
12172
|
function calculateSize(padding, maxPages) {
|
|
12267
12173
|
return Math.min(2 * padding + 1, maxPages);
|
|
@@ -12297,7 +12203,7 @@ function getPages(currentPage, maxPages, padding) {
|
|
|
12297
12203
|
});
|
|
12298
12204
|
}
|
|
12299
12205
|
|
|
12300
|
-
var Pagination
|
|
12206
|
+
var Pagination =
|
|
12301
12207
|
/*#__PURE__*/
|
|
12302
12208
|
function (_Component) {
|
|
12303
12209
|
_inherits(Pagination, _Component);
|
|
@@ -12404,9 +12310,9 @@ function (_Component) {
|
|
|
12404
12310
|
}
|
|
12405
12311
|
|
|
12406
12312
|
return React__default.createElement("div", {
|
|
12407
|
-
className: classnames(cx$
|
|
12313
|
+
className: classnames(cx$d('', !canRefine && '-noRefinement'), className)
|
|
12408
12314
|
}, React__default.createElement(ListComponent, _extends({}, otherProps, {
|
|
12409
|
-
cx: cx$
|
|
12315
|
+
cx: cx$d,
|
|
12410
12316
|
items: items,
|
|
12411
12317
|
onSelect: refine,
|
|
12412
12318
|
createURL: createURL,
|
|
@@ -12418,7 +12324,7 @@ function (_Component) {
|
|
|
12418
12324
|
return Pagination;
|
|
12419
12325
|
}(Component);
|
|
12420
12326
|
|
|
12421
|
-
_defineProperty(Pagination
|
|
12327
|
+
_defineProperty(Pagination, "propTypes", {
|
|
12422
12328
|
nbPages: PropTypes.number.isRequired,
|
|
12423
12329
|
currentRefinement: PropTypes.number.isRequired,
|
|
12424
12330
|
refine: PropTypes.func.isRequired,
|
|
@@ -12435,7 +12341,7 @@ _defineProperty(Pagination$1, "propTypes", {
|
|
|
12435
12341
|
className: PropTypes.string
|
|
12436
12342
|
});
|
|
12437
12343
|
|
|
12438
|
-
_defineProperty(Pagination
|
|
12344
|
+
_defineProperty(Pagination, "defaultProps", {
|
|
12439
12345
|
listComponent: LinkList,
|
|
12440
12346
|
showFirst: true,
|
|
12441
12347
|
showPrevious: true,
|
|
@@ -12446,7 +12352,7 @@ _defineProperty(Pagination$1, "defaultProps", {
|
|
|
12446
12352
|
className: ''
|
|
12447
12353
|
});
|
|
12448
12354
|
|
|
12449
|
-
var Pagination$
|
|
12355
|
+
var Pagination$1 = translatable({
|
|
12450
12356
|
previous: '‹',
|
|
12451
12357
|
next: '›',
|
|
12452
12358
|
first: '«',
|
|
@@ -12461,7 +12367,7 @@ var Pagination$2 = translatable({
|
|
|
12461
12367
|
ariaPage: function ariaPage(currentRefinement) {
|
|
12462
12368
|
return "Page ".concat(currentRefinement.toString());
|
|
12463
12369
|
}
|
|
12464
|
-
})(Pagination
|
|
12370
|
+
})(Pagination);
|
|
12465
12371
|
|
|
12466
12372
|
/**
|
|
12467
12373
|
* The Pagination widget displays a simple pagination system allowing the user to
|
|
@@ -12518,12 +12424,12 @@ var Pagination$2 = translatable({
|
|
|
12518
12424
|
*/
|
|
12519
12425
|
|
|
12520
12426
|
var PaginationWidget = function PaginationWidget(props) {
|
|
12521
|
-
return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$
|
|
12427
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$1, props));
|
|
12522
12428
|
};
|
|
12523
12429
|
|
|
12524
|
-
var Pagination = connectPagination(PaginationWidget);
|
|
12430
|
+
var Pagination$2 = connectPagination(PaginationWidget);
|
|
12525
12431
|
|
|
12526
|
-
var cx$
|
|
12432
|
+
var cx$e = createClassNames('PoweredBy');
|
|
12527
12433
|
/* eslint-disable max-len */
|
|
12528
12434
|
|
|
12529
12435
|
var AlgoliaLogo = function AlgoliaLogo() {
|
|
@@ -12533,7 +12439,7 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12533
12439
|
viewBox: "0 0 1366 362",
|
|
12534
12440
|
width: "100",
|
|
12535
12441
|
height: "27",
|
|
12536
|
-
className: cx$
|
|
12442
|
+
className: cx$e('logo')
|
|
12537
12443
|
}, React__default.createElement("linearGradient", {
|
|
12538
12444
|
id: "g",
|
|
12539
12445
|
x1: "428.258",
|
|
@@ -12581,13 +12487,13 @@ function (_Component) {
|
|
|
12581
12487
|
translate = _this$props.translate,
|
|
12582
12488
|
className = _this$props.className;
|
|
12583
12489
|
return React__default.createElement("div", {
|
|
12584
|
-
className: classnames(cx$
|
|
12490
|
+
className: classnames(cx$e(''), className)
|
|
12585
12491
|
}, React__default.createElement("span", {
|
|
12586
|
-
className: cx$
|
|
12492
|
+
className: cx$e('text')
|
|
12587
12493
|
}, translate('searchBy')), ' ', React__default.createElement("a", {
|
|
12588
12494
|
href: url,
|
|
12589
12495
|
target: "_blank",
|
|
12590
|
-
className: cx$
|
|
12496
|
+
className: cx$e('link'),
|
|
12591
12497
|
"aria-label": "Algolia",
|
|
12592
12498
|
rel: "noopener noreferrer"
|
|
12593
12499
|
}, React__default.createElement(AlgoliaLogo, null)));
|
|
@@ -12640,7 +12546,7 @@ var PoweredBy$1 = translatable({
|
|
|
12640
12546
|
|
|
12641
12547
|
connectPoweredBy(PoweredBy$1);
|
|
12642
12548
|
|
|
12643
|
-
var cx$
|
|
12549
|
+
var cx$f = createClassNames('RangeInput');
|
|
12644
12550
|
var RawRangeInput =
|
|
12645
12551
|
/*#__PURE__*/
|
|
12646
12552
|
function (_Component) {
|
|
@@ -12720,12 +12626,12 @@ function (_Component) {
|
|
|
12720
12626
|
|
|
12721
12627
|
var step = 1 / Math.pow(10, precision);
|
|
12722
12628
|
return React__default.createElement("div", {
|
|
12723
|
-
className: classnames(cx$
|
|
12629
|
+
className: classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12724
12630
|
}, React__default.createElement("form", {
|
|
12725
|
-
className: cx$
|
|
12631
|
+
className: cx$f('form'),
|
|
12726
12632
|
onSubmit: this.onSubmit
|
|
12727
12633
|
}, React__default.createElement("input", {
|
|
12728
|
-
className: cx$
|
|
12634
|
+
className: cx$f('input', 'input--min'),
|
|
12729
12635
|
type: "number",
|
|
12730
12636
|
min: min,
|
|
12731
12637
|
max: max,
|
|
@@ -12739,9 +12645,9 @@ function (_Component) {
|
|
|
12739
12645
|
});
|
|
12740
12646
|
}
|
|
12741
12647
|
}), React__default.createElement("span", {
|
|
12742
|
-
className: cx$
|
|
12648
|
+
className: cx$f('separator')
|
|
12743
12649
|
}, translate('separator')), React__default.createElement("input", {
|
|
12744
|
-
className: cx$
|
|
12650
|
+
className: cx$f('input', 'input--max'),
|
|
12745
12651
|
type: "number",
|
|
12746
12652
|
min: min,
|
|
12747
12653
|
max: max,
|
|
@@ -12755,7 +12661,7 @@ function (_Component) {
|
|
|
12755
12661
|
});
|
|
12756
12662
|
}
|
|
12757
12663
|
}), React__default.createElement("button", {
|
|
12758
|
-
className: cx$
|
|
12664
|
+
className: cx$f('submit'),
|
|
12759
12665
|
type: "submit"
|
|
12760
12666
|
}, translate('submit'))));
|
|
12761
12667
|
}
|
|
@@ -12836,7 +12742,7 @@ var RangeInputWidget = function RangeInputWidget(props) {
|
|
|
12836
12742
|
|
|
12837
12743
|
connectRange(RangeInputWidget);
|
|
12838
12744
|
|
|
12839
|
-
var cx$
|
|
12745
|
+
var cx$g = createClassNames('RatingMenu');
|
|
12840
12746
|
|
|
12841
12747
|
var RatingMenu =
|
|
12842
12748
|
/*#__PURE__*/
|
|
@@ -12889,12 +12795,12 @@ function (_Component) {
|
|
|
12889
12795
|
|
|
12890
12796
|
icons.push([React__default.createElement("svg", {
|
|
12891
12797
|
key: icon,
|
|
12892
|
-
className: cx$
|
|
12798
|
+
className: cx$g('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
|
|
12893
12799
|
"aria-hidden": "true",
|
|
12894
12800
|
width: "24",
|
|
12895
12801
|
height: "24"
|
|
12896
12802
|
}, React__default.createElement("use", {
|
|
12897
|
-
xlinkHref: "#".concat(cx$
|
|
12803
|
+
xlinkHref: "#".concat(cx$g(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
|
|
12898
12804
|
})), ' ']);
|
|
12899
12805
|
} // The last item of the list (the default item), should not
|
|
12900
12806
|
// be clickable if it is selected.
|
|
@@ -12910,15 +12816,15 @@ function (_Component) {
|
|
|
12910
12816
|
};
|
|
12911
12817
|
return React__default.createElement("li", {
|
|
12912
12818
|
key: lowerBound,
|
|
12913
|
-
className: cx$
|
|
12819
|
+
className: cx$g('item', selected && 'item--selected', disabled && 'item--disabled')
|
|
12914
12820
|
}, React__default.createElement("a", _extends({
|
|
12915
|
-
className: cx$
|
|
12821
|
+
className: cx$g('link'),
|
|
12916
12822
|
"aria-label": "".concat(rating).concat(translate('ratingLabel'))
|
|
12917
12823
|
}, onClickHandler), icons, React__default.createElement("span", {
|
|
12918
|
-
className: cx$
|
|
12824
|
+
className: cx$g('label'),
|
|
12919
12825
|
"aria-hidden": "true"
|
|
12920
12826
|
}, translate('ratingLabel')), ' ', React__default.createElement("span", {
|
|
12921
|
-
className: cx$
|
|
12827
|
+
className: cx$g('count')
|
|
12922
12828
|
}, count)));
|
|
12923
12829
|
}
|
|
12924
12830
|
}, {
|
|
@@ -12950,7 +12856,7 @@ function (_Component) {
|
|
|
12950
12856
|
start: 0,
|
|
12951
12857
|
end: Math.max(inclusiveLength, 0)
|
|
12952
12858
|
}).map(function (index) {
|
|
12953
|
-
var element = find(values, function (item) {
|
|
12859
|
+
var element = find$2(values, function (item) {
|
|
12954
12860
|
return item.value === limitMax - index;
|
|
12955
12861
|
});
|
|
12956
12862
|
var placeholder = {
|
|
@@ -12974,24 +12880,24 @@ function (_Component) {
|
|
|
12974
12880
|
});
|
|
12975
12881
|
});
|
|
12976
12882
|
return React__default.createElement("div", {
|
|
12977
|
-
className: classnames(cx$
|
|
12883
|
+
className: classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
12978
12884
|
}, React__default.createElement("svg", {
|
|
12979
12885
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12980
12886
|
style: {
|
|
12981
12887
|
display: 'none'
|
|
12982
12888
|
}
|
|
12983
12889
|
}, React__default.createElement("symbol", {
|
|
12984
|
-
id: cx$
|
|
12890
|
+
id: cx$g('starSymbol'),
|
|
12985
12891
|
viewBox: "0 0 24 24"
|
|
12986
12892
|
}, React__default.createElement("path", {
|
|
12987
12893
|
d: "M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"
|
|
12988
12894
|
})), React__default.createElement("symbol", {
|
|
12989
|
-
id: cx$
|
|
12895
|
+
id: cx$g('starEmptySymbol'),
|
|
12990
12896
|
viewBox: "0 0 24 24"
|
|
12991
12897
|
}, React__default.createElement("path", {
|
|
12992
12898
|
d: "M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"
|
|
12993
12899
|
}))), React__default.createElement("ul", {
|
|
12994
|
-
className: cx$
|
|
12900
|
+
className: cx$g('list', !canRefine && 'list--noRefinement')
|
|
12995
12901
|
}, items));
|
|
12996
12902
|
}
|
|
12997
12903
|
}]);
|
|
@@ -13079,7 +12985,7 @@ var RatingMenuWidget = function RatingMenuWidget(props) {
|
|
|
13079
12985
|
|
|
13080
12986
|
connectRange(RatingMenuWidget);
|
|
13081
12987
|
|
|
13082
|
-
var cx$
|
|
12988
|
+
var cx$h = createClassNames('RefinementList');
|
|
13083
12989
|
|
|
13084
12990
|
var RefinementList$1 =
|
|
13085
12991
|
/*#__PURE__*/
|
|
@@ -13110,23 +13016,23 @@ function (_Component) {
|
|
|
13110
13016
|
});
|
|
13111
13017
|
|
|
13112
13018
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13113
|
-
var label = _this.props.isFromSearch ? React__default.createElement(Highlight, {
|
|
13019
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
13114
13020
|
attribute: "label",
|
|
13115
13021
|
hit: item
|
|
13116
13022
|
}) : item.label;
|
|
13117
13023
|
return React__default.createElement("label", {
|
|
13118
|
-
className: cx$
|
|
13024
|
+
className: cx$h('label')
|
|
13119
13025
|
}, React__default.createElement("input", {
|
|
13120
|
-
className: cx$
|
|
13026
|
+
className: cx$h('checkbox'),
|
|
13121
13027
|
type: "checkbox",
|
|
13122
13028
|
checked: item.isRefined,
|
|
13123
13029
|
onChange: function onChange() {
|
|
13124
13030
|
return _this.selectItem(item, resetQuery);
|
|
13125
13031
|
}
|
|
13126
13032
|
}), React__default.createElement("span", {
|
|
13127
|
-
className: cx$
|
|
13033
|
+
className: cx$h('labelText')
|
|
13128
13034
|
}, label), ' ', React__default.createElement("span", {
|
|
13129
|
-
className: cx$
|
|
13035
|
+
className: cx$h('count')
|
|
13130
13036
|
}, item.count.toLocaleString()));
|
|
13131
13037
|
});
|
|
13132
13038
|
|
|
@@ -13150,7 +13056,7 @@ function (_Component) {
|
|
|
13150
13056
|
return React__default.createElement(List, {
|
|
13151
13057
|
renderItem: this.renderItem,
|
|
13152
13058
|
selectItem: this.selectItem,
|
|
13153
|
-
cx: cx$
|
|
13059
|
+
cx: cx$h,
|
|
13154
13060
|
translate: translate,
|
|
13155
13061
|
items: items,
|
|
13156
13062
|
showMore: showMore,
|
|
@@ -13262,9 +13168,9 @@ var RefinementListWidget = function RefinementListWidget(props) {
|
|
|
13262
13168
|
return React__default.createElement(PanelWrapper, props, React__default.createElement(RefinementList$2, props));
|
|
13263
13169
|
};
|
|
13264
13170
|
|
|
13265
|
-
var RefinementList = connectRefinementList(RefinementListWidget);
|
|
13171
|
+
var RefinementList$3 = connectRefinementList(RefinementListWidget);
|
|
13266
13172
|
|
|
13267
|
-
var cx$
|
|
13173
|
+
var cx$i = createClassNames('ScrollTo');
|
|
13268
13174
|
|
|
13269
13175
|
var ScrollTo =
|
|
13270
13176
|
/*#__PURE__*/
|
|
@@ -13297,7 +13203,7 @@ function (_Component) {
|
|
|
13297
13203
|
ref: function ref(_ref) {
|
|
13298
13204
|
return _this.el = _ref;
|
|
13299
13205
|
},
|
|
13300
|
-
className: cx$
|
|
13206
|
+
className: cx$i('')
|
|
13301
13207
|
}, this.props.children);
|
|
13302
13208
|
}
|
|
13303
13209
|
}]);
|
|
@@ -13391,14 +13297,14 @@ connectScrollTo(ScrollTo);
|
|
|
13391
13297
|
* );
|
|
13392
13298
|
*/
|
|
13393
13299
|
|
|
13394
|
-
var SearchBox = connectSearchBox(SearchBox$
|
|
13300
|
+
var SearchBox$2 = connectSearchBox(SearchBox$1);
|
|
13395
13301
|
|
|
13396
|
-
var cx$
|
|
13302
|
+
var cx$j = createClassNames('Snippet');
|
|
13397
13303
|
|
|
13398
13304
|
var Snippet = function Snippet(props) {
|
|
13399
13305
|
return React__default.createElement(Highlighter, _extends({}, props, {
|
|
13400
13306
|
highlightProperty: "_snippetResult",
|
|
13401
|
-
cx: cx$
|
|
13307
|
+
cx: cx$j
|
|
13402
13308
|
}));
|
|
13403
13309
|
};
|
|
13404
13310
|
|
|
@@ -13448,7 +13354,7 @@ var Snippet = function Snippet(props) {
|
|
|
13448
13354
|
|
|
13449
13355
|
connectHighlight(Snippet);
|
|
13450
13356
|
|
|
13451
|
-
var cx$
|
|
13357
|
+
var cx$k = createClassNames('RelevantSort');
|
|
13452
13358
|
|
|
13453
13359
|
var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
|
|
13454
13360
|
var isRelevantSorted = _ref.isRelevantSorted;
|
|
@@ -13465,13 +13371,13 @@ var RelevantSort = function RelevantSort(_ref2) {
|
|
|
13465
13371
|
TextComponent = _ref2.textComponent,
|
|
13466
13372
|
refine = _ref2.refine;
|
|
13467
13373
|
return !isVirtualReplica ? null : React__default.createElement("div", {
|
|
13468
|
-
className: classnames(cx$
|
|
13374
|
+
className: classnames(cx$k(''), className)
|
|
13469
13375
|
}, React__default.createElement("div", {
|
|
13470
|
-
className: cx$
|
|
13376
|
+
className: cx$k('text')
|
|
13471
13377
|
}, TextComponent && React__default.createElement(TextComponent, {
|
|
13472
13378
|
isRelevantSorted: isRelevantSorted
|
|
13473
13379
|
})), React__default.createElement("button", {
|
|
13474
|
-
className: cx$
|
|
13380
|
+
className: cx$k('button'),
|
|
13475
13381
|
onClick: function onClick() {
|
|
13476
13382
|
return refine(isRelevantSorted ? 0 : undefined);
|
|
13477
13383
|
}
|
|
@@ -13491,7 +13397,7 @@ RelevantSort.propTypes = {
|
|
|
13491
13397
|
|
|
13492
13398
|
connectRelevantSort(RelevantSort);
|
|
13493
13399
|
|
|
13494
|
-
var cx$
|
|
13400
|
+
var cx$l = createClassNames('SortBy');
|
|
13495
13401
|
|
|
13496
13402
|
var SortBy =
|
|
13497
13403
|
/*#__PURE__*/
|
|
@@ -13513,9 +13419,9 @@ function (_Component) {
|
|
|
13513
13419
|
refine = _this$props.refine,
|
|
13514
13420
|
className = _this$props.className;
|
|
13515
13421
|
return React__default.createElement("div", {
|
|
13516
|
-
className: classnames(cx$
|
|
13422
|
+
className: classnames(cx$l(''), className)
|
|
13517
13423
|
}, React__default.createElement(Select, {
|
|
13518
|
-
cx: cx$
|
|
13424
|
+
cx: cx$l,
|
|
13519
13425
|
items: items,
|
|
13520
13426
|
selectedItem: currentRefinement,
|
|
13521
13427
|
onSelect: refine
|
|
@@ -13581,7 +13487,7 @@ _defineProperty(SortBy, "defaultProps", {
|
|
|
13581
13487
|
|
|
13582
13488
|
connectSortBy(SortBy);
|
|
13583
13489
|
|
|
13584
|
-
var cx$
|
|
13490
|
+
var cx$m = createClassNames('Stats');
|
|
13585
13491
|
|
|
13586
13492
|
var Stats = function Stats(_ref) {
|
|
13587
13493
|
var _ref$className = _ref.className,
|
|
@@ -13592,9 +13498,9 @@ var Stats = function Stats(_ref) {
|
|
|
13592
13498
|
processingTimeMS = _ref.processingTimeMS,
|
|
13593
13499
|
translate = _ref.translate;
|
|
13594
13500
|
return React__default.createElement("div", {
|
|
13595
|
-
className: classnames(cx$
|
|
13501
|
+
className: classnames(cx$m(''), className)
|
|
13596
13502
|
}, React__default.createElement("span", {
|
|
13597
|
-
className: cx$
|
|
13503
|
+
className: cx$m('text')
|
|
13598
13504
|
}, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
|
|
13599
13505
|
};
|
|
13600
13506
|
|
|
@@ -13642,7 +13548,7 @@ var Stats$1 = translatable({
|
|
|
13642
13548
|
|
|
13643
13549
|
connectStats(Stats$1);
|
|
13644
13550
|
|
|
13645
|
-
var cx$
|
|
13551
|
+
var cx$n = createClassNames('ToggleRefinement');
|
|
13646
13552
|
|
|
13647
13553
|
var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
13648
13554
|
var currentRefinement = _ref.currentRefinement,
|
|
@@ -13651,18 +13557,18 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
|
13651
13557
|
refine = _ref.refine,
|
|
13652
13558
|
className = _ref.className;
|
|
13653
13559
|
return React__default.createElement("div", {
|
|
13654
|
-
className: classnames(cx$
|
|
13560
|
+
className: classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13655
13561
|
}, React__default.createElement("label", {
|
|
13656
|
-
className: cx$
|
|
13562
|
+
className: cx$n('label')
|
|
13657
13563
|
}, React__default.createElement("input", {
|
|
13658
|
-
className: cx$
|
|
13564
|
+
className: cx$n('checkbox'),
|
|
13659
13565
|
type: "checkbox",
|
|
13660
13566
|
checked: currentRefinement,
|
|
13661
13567
|
onChange: function onChange(event) {
|
|
13662
13568
|
return refine(event.target.checked);
|
|
13663
13569
|
}
|
|
13664
13570
|
}), React__default.createElement("span", {
|
|
13665
|
-
className: cx$
|
|
13571
|
+
className: cx$n('labelText')
|
|
13666
13572
|
}, label)));
|
|
13667
13573
|
};
|
|
13668
13574
|
|
|
@@ -13871,7 +13777,7 @@ function createVoiceSearchHelper(_ref) {
|
|
|
13871
13777
|
};
|
|
13872
13778
|
}
|
|
13873
13779
|
|
|
13874
|
-
var cx$
|
|
13780
|
+
var cx$o = createClassNames('VoiceSearch');
|
|
13875
13781
|
|
|
13876
13782
|
var ButtonSvg = function ButtonSvg(_ref) {
|
|
13877
13783
|
var children = _ref.children;
|
|
@@ -14017,15 +13923,15 @@ function (_Component) {
|
|
|
14017
13923
|
isBrowserSupported: isBrowserSupported()
|
|
14018
13924
|
};
|
|
14019
13925
|
return React__default.createElement("div", {
|
|
14020
|
-
className: cx$
|
|
13926
|
+
className: cx$o('')
|
|
14021
13927
|
}, React__default.createElement("button", {
|
|
14022
|
-
className: cx$
|
|
13928
|
+
className: cx$o('button'),
|
|
14023
13929
|
type: "button",
|
|
14024
13930
|
title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
|
|
14025
13931
|
onClick: this.onClick,
|
|
14026
13932
|
disabled: !isBrowserSupported()
|
|
14027
13933
|
}, React__default.createElement(ButtonTextComponent, innerProps)), React__default.createElement("div", {
|
|
14028
|
-
className: cx$
|
|
13934
|
+
className: cx$o('status')
|
|
14029
13935
|
}, React__default.createElement(StatusComponent, innerProps)));
|
|
14030
13936
|
}
|
|
14031
13937
|
}, {
|
|
@@ -14053,14 +13959,14 @@ var VoiceSearch$1 = translatable({
|
|
|
14053
13959
|
|
|
14054
13960
|
connectVoiceSearch(VoiceSearch$1);
|
|
14055
13961
|
|
|
14056
|
-
var cx = createClassNames('QueryRuleCustomData');
|
|
13962
|
+
var cx$p = createClassNames('QueryRuleCustomData');
|
|
14057
13963
|
|
|
14058
13964
|
var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
14059
13965
|
var items = _ref.items,
|
|
14060
13966
|
className = _ref.className,
|
|
14061
13967
|
children = _ref.children;
|
|
14062
13968
|
return React__default.createElement("div", {
|
|
14063
|
-
className: classnames(cx(''), className)
|
|
13969
|
+
className: classnames(cx$p(''), className)
|
|
14064
13970
|
}, children({
|
|
14065
13971
|
items: items
|
|
14066
13972
|
}));
|
|
@@ -14113,7 +14019,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14113
14019
|
LazyLoad,
|
|
14114
14020
|
null,
|
|
14115
14021
|
React__default.createElement('img', {
|
|
14116
|
-
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$
|
|
14022
|
+
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$1(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14117
14023
|
})
|
|
14118
14024
|
)
|
|
14119
14025
|
)
|
|
@@ -14171,7 +14077,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14171
14077
|
onSearchParameters: this.props.onSearchParameters
|
|
14172
14078
|
}, this.props),
|
|
14173
14079
|
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14174
|
-
React__default.createElement(SearchBox, null),
|
|
14080
|
+
React__default.createElement(SearchBox$2, null),
|
|
14175
14081
|
this.props.refinementAttributes && React__default.createElement(
|
|
14176
14082
|
'div',
|
|
14177
14083
|
{ className: 'search_refinement' },
|
|
@@ -14179,18 +14085,18 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14179
14085
|
return React__default.createElement(
|
|
14180
14086
|
DropdownButton,
|
|
14181
14087
|
{ title: item.title },
|
|
14182
|
-
React__default.createElement(RefinementList, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
|
|
14088
|
+
React__default.createElement(RefinementList$3, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
|
|
14183
14089
|
);
|
|
14184
14090
|
})
|
|
14185
14091
|
),
|
|
14186
14092
|
React__default.createElement(
|
|
14187
14093
|
'div',
|
|
14188
14094
|
{ className: 'AlgoliaResults' },
|
|
14189
|
-
React__default.createElement(Hits, { hitComponent: function hitComponent(hit) {
|
|
14095
|
+
React__default.createElement(Hits$1, { hitComponent: function hitComponent(hit) {
|
|
14190
14096
|
return _this2.Deck(_extends$1({}, hit, { propsObj: propsObj }));
|
|
14191
14097
|
} })
|
|
14192
14098
|
),
|
|
14193
|
-
React__default.createElement(Pagination, null)
|
|
14099
|
+
React__default.createElement(Pagination$2, null)
|
|
14194
14100
|
),
|
|
14195
14101
|
React__default.createElement(
|
|
14196
14102
|
'style',
|