@mjhls/mjh-framework 1.0.874 → 1.0.875-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -29
- package/dist/cjs/AD300x250x600.js +28 -29
- package/dist/cjs/AD728x90.js +31 -32
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-b9e5ff3f.js → ADInfeed-c628363f.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-3cdefebd.js → ADlgInfeed-a827d389.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +33 -34
- package/dist/cjs/AdSlotsProvider.js +909 -18
- package/dist/cjs/AlgoliaSearch.js +1274 -1392
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +60 -61
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +267 -309
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -60
- package/dist/cjs/ConferenceArticleCard.js +40 -41
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +101 -105
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
- package/dist/cjs/EventsDeck.js +150 -157
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +27 -29
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +231 -236
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +138 -143
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +27 -28
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +91 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +78 -79
- package/dist/cjs/MediaSeriesLanding.js +1127 -1118
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +145 -150
- package/dist/cjs/NavNative.js +137 -145
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/PartnerDetailListing.js +3914 -116
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +38 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/PublicationLanding.js +134 -138
- package/dist/cjs/QueueDeckExpanded.js +1151 -1130
- package/dist/cjs/RecentNews.js +21 -22
- package/dist/cjs/RelatedContent.js +57 -58
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-ce3261cb.js → SeriesSlider-49b81b0b.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-5ec44406.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +27 -28
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +265 -268
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +67 -68
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- 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-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.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/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +18 -18
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-8874437b.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/cjs/iconBase-68959171.js +3 -0
- 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-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-6a2a3e03.js → index-cdacba23.js} +1063 -1089
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +164 -170
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- 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-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.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-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +25 -25
- package/dist/esm/AD300x250x600.js +25 -25
- package/dist/esm/AD728x90.js +28 -28
- package/dist/esm/ADFloatingFooter.js +27 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +27 -27
- package/dist/esm/{ADInfeed-6c6093ae.js → ADInfeed-35a2a91f.js} +11 -11
- package/dist/esm/ADSkyscraper.js +27 -27
- package/dist/esm/ADSponsoredResources.js +27 -27
- package/dist/esm/ADWebcast.js +27 -27
- package/dist/esm/ADWelcome.js +28 -28
- package/dist/esm/{ADlgInfeed-5d7386e8.js → ADlgInfeed-fd34a881.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +25 -25
- package/dist/esm/AdSlotsProvider.js +907 -15
- package/dist/esm/AlgoliaSearch.js +703 -820
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +1487 -659
- package/dist/esm/AuthWrapper.js +265 -306
- package/dist/esm/{AuthorComponent-46a745ba.js → AuthorComponent-e6f95c2f.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -77
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +28 -28
- package/dist/esm/Column3.js +54 -54
- package/dist/esm/ConferenceArticleCard.js +38 -38
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +96 -96
- package/dist/esm/DeckQueue.js +82 -82
- package/dist/esm/{Dfp-4ca12f2e.js → Dfp-f867d061.js} +20 -20
- package/dist/esm/EventsDeck.js +127 -127
- package/dist/esm/ExternalResources.js +72 -72
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +199 -199
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -68
- package/dist/esm/HorizontalHero.js +25 -25
- package/dist/esm/IssueContentDeck.js +59 -59
- package/dist/esm/IssueDeck.js +63 -63
- package/dist/esm/IssueLanding.js +88 -90
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +75 -75
- package/dist/esm/MediaSeriesLanding.js +851 -839
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +114 -114
- package/dist/esm/OncliveHero.js +20 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/PartnerDetailListing.js +3910 -112
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +35 -37
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +56 -56
- package/dist/esm/PublicationLanding.js +121 -121
- package/dist/esm/QueueDeckExpanded.js +1153 -1132
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +51 -51
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +30 -30
- package/dist/esm/{SeriesSlider-485f514e.js → SeriesSlider-d555a1d2.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a5b11613.js → SocialSearchComponent-d240935c.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -56
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +68 -68
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +65 -65
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +40 -40
- package/dist/esm/VideoSeriesListing.js +72 -72
- package/dist/esm/View.js +247 -246
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +52 -52
- package/dist/esm/{_is-array-893ab020.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-f089461c.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-169d6272.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-50a6b9a3.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-b4dfe691.js → asyncToGenerator-64812e90.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-e903ff31.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-99e66838.js → define-property-6d26cb48.js} +6 -6
- package/dist/esm/{defineProperty-8fa0bc8d.js → defineProperty-d7d9b577.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/{extends-dc6a71fd.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -12
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-ff2c9409.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-5bbd1562.js → index-604589b2.js} +1021 -1037
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +137 -140
- package/dist/esm/{inherits-8a801a18.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-425c8ab0.js → keys-69989821.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-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-ca2c8b8d.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-7b1c0e23.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-83d9eb10.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-41166338.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-fdf034f5.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +112 -111
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/main-025fdc78.js +0 -973
- package/dist/esm/main-b5c5aac1.js +0 -961
- package/dist/esm/stringify-c21932b3.js +0 -15
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-8a801a18.js';
|
|
4
|
-
import React, { createContext, Component, Children, version as version$2 } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-67e1773f.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-35bdcc81.js';
|
|
13
|
-
import './core.get-iterator-method-e903ff31.js';
|
|
14
|
-
import './_object-pie-133f504a.js';
|
|
15
|
-
import './web.dom.iterable-fdf034f5.js';
|
|
16
|
-
import './_is-array-893ab020.js';
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
17
3
|
import './_library-528f1934.js';
|
|
18
|
-
import './_object-
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './
|
|
4
|
+
import './_object-pie-33c40e79.js';
|
|
5
|
+
import { _ as _extends$1 } from './extends-5b1796d4.js';
|
|
6
|
+
import './_object-sap-8b8ea5a9.js';
|
|
7
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-2409637d.js';
|
|
8
|
+
import './define-property-6d26cb48.js';
|
|
9
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
10
|
+
import { _ as _typeof$1 } from './typeof-c05a82ba.js';
|
|
11
|
+
import './_is-array-4df618a6.js';
|
|
12
|
+
import React__default, { createContext, Component, Children, version as version$2 } from 'react';
|
|
13
|
+
import { E as EventEmitter } from './events-6c3a7a63.js';
|
|
14
|
+
import PropTypes from 'prop-types';
|
|
15
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
22
16
|
import 'react-dom';
|
|
17
|
+
import './slicedToArray-67a08c9c.js';
|
|
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';
|
|
23
24
|
|
|
24
25
|
function _objectWithoutProperties(source, excluded) {
|
|
25
26
|
if (source == null) return {};
|
|
@@ -40,24 +41,9 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
40
41
|
return target;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
function _defineProperty(obj, key, value) {
|
|
44
|
-
if (key in obj) {
|
|
45
|
-
Object.defineProperty(obj, key, {
|
|
46
|
-
value: value,
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true
|
|
50
|
-
});
|
|
51
|
-
} else {
|
|
52
|
-
obj[key] = value;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return obj;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
44
|
function _objectSpread(target) {
|
|
59
45
|
for (var i = 1; i < arguments.length; i++) {
|
|
60
|
-
var source = arguments[i] != null ?
|
|
46
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
61
47
|
var ownKeys = Object.keys(source);
|
|
62
48
|
|
|
63
49
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
@@ -74,93 +60,6 @@ function _objectSpread(target) {
|
|
|
74
60
|
return target;
|
|
75
61
|
}
|
|
76
62
|
|
|
77
|
-
function _classCallCheck(instance, Constructor) {
|
|
78
|
-
if (!(instance instanceof Constructor)) {
|
|
79
|
-
throw new TypeError("Cannot call a class as a function");
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function _defineProperties(target, props) {
|
|
84
|
-
for (var i = 0; i < props.length; i++) {
|
|
85
|
-
var descriptor = props[i];
|
|
86
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
87
|
-
descriptor.configurable = true;
|
|
88
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
89
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
94
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
95
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
96
|
-
return Constructor;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
var _typeof_1 = createCommonjsModule(function (module) {
|
|
100
|
-
function _typeof(obj) {
|
|
101
|
-
"@babel/helpers - typeof";
|
|
102
|
-
|
|
103
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
104
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
105
|
-
return typeof obj;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
109
|
-
} else {
|
|
110
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
111
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return _typeof(obj);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
module.exports = _typeof;
|
|
121
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
var _typeof$1 = unwrapExports(_typeof_1);
|
|
125
|
-
|
|
126
|
-
function _assertThisInitialized(self) {
|
|
127
|
-
if (self === void 0) {
|
|
128
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return self;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function _possibleConstructorReturn(self, call) {
|
|
135
|
-
if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
|
|
136
|
-
return call;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return _assertThisInitialized(self);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function _getPrototypeOf(o) {
|
|
143
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
144
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
145
|
-
};
|
|
146
|
-
return _getPrototypeOf(o);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function _inherits(subClass, superClass) {
|
|
150
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
151
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
155
|
-
constructor: {
|
|
156
|
-
value: subClass,
|
|
157
|
-
writable: true,
|
|
158
|
-
configurable: true
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
63
|
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
165
64
|
|
|
166
65
|
var hasElementType = typeof Element !== 'undefined';
|
|
@@ -296,22 +195,6 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
296
195
|
}
|
|
297
196
|
};
|
|
298
197
|
|
|
299
|
-
function _typeof(obj) {
|
|
300
|
-
"@babel/helpers - typeof";
|
|
301
|
-
|
|
302
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
303
|
-
_typeof = function _typeof(obj) {
|
|
304
|
-
return typeof obj;
|
|
305
|
-
};
|
|
306
|
-
} else {
|
|
307
|
-
_typeof = function _typeof(obj) {
|
|
308
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
return _typeof(obj);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
198
|
// From https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
|
|
316
199
|
var shallowEqual = function shallowEqual(objA, objB) {
|
|
317
200
|
if (objA === objB) {
|
|
@@ -356,7 +239,7 @@ var removeEmptyKey = function removeEmptyKey(obj) {
|
|
|
356
239
|
return;
|
|
357
240
|
}
|
|
358
241
|
|
|
359
|
-
if (!objectHasKeys
|
|
242
|
+
if (!objectHasKeys(value)) {
|
|
360
243
|
delete obj[key];
|
|
361
244
|
} else {
|
|
362
245
|
removeEmptyKey(value);
|
|
@@ -392,7 +275,7 @@ function addQueryID(hits, queryID) {
|
|
|
392
275
|
});
|
|
393
276
|
});
|
|
394
277
|
}
|
|
395
|
-
function find
|
|
278
|
+
function find(array, comparator) {
|
|
396
279
|
if (!Array.isArray(array)) {
|
|
397
280
|
return undefined;
|
|
398
281
|
}
|
|
@@ -405,11 +288,11 @@ function find$2(array, comparator) {
|
|
|
405
288
|
|
|
406
289
|
return undefined;
|
|
407
290
|
}
|
|
408
|
-
function objectHasKeys
|
|
291
|
+
function objectHasKeys(object) {
|
|
409
292
|
return object && Object.keys(object).length > 0;
|
|
410
293
|
} // https://github.com/babel/babel/blob/3aaafae053fa75febb3aa45d45b6f00646e30ba4/packages/babel-helpers/src/helpers.js#L604-L620
|
|
411
294
|
|
|
412
|
-
function omit
|
|
295
|
+
function omit(source, excluded) {
|
|
413
296
|
if (source === null || source === undefined) {
|
|
414
297
|
return {};
|
|
415
298
|
}
|
|
@@ -480,9 +363,9 @@ var instantSearchContext = createContext({
|
|
|
480
363
|
var InstantSearchConsumer = instantSearchContext.Consumer,
|
|
481
364
|
InstantSearchProvider = instantSearchContext.Provider;
|
|
482
365
|
|
|
483
|
-
var _createContext
|
|
484
|
-
IndexConsumer = _createContext
|
|
485
|
-
IndexProvider = _createContext
|
|
366
|
+
var _createContext = createContext(undefined),
|
|
367
|
+
IndexConsumer = _createContext.Consumer,
|
|
368
|
+
IndexProvider = _createContext.Provider;
|
|
486
369
|
|
|
487
370
|
/**
|
|
488
371
|
* Connectors are the HOC used to transform React components
|
|
@@ -695,9 +578,9 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
695
578
|
}, {
|
|
696
579
|
key: "render",
|
|
697
580
|
value: function render() {
|
|
698
|
-
var _this$props = this.props
|
|
699
|
-
_this$props.contextValue
|
|
700
|
-
|
|
581
|
+
var _this$props = this.props,
|
|
582
|
+
contextValue = _this$props.contextValue,
|
|
583
|
+
props = _objectWithoutProperties(_this$props, ["contextValue"]);
|
|
701
584
|
|
|
702
585
|
var providedProps = this.state.providedProps;
|
|
703
586
|
|
|
@@ -712,7 +595,7 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
712
595
|
var searchForFacetValuesProps = typeof connectorDesc.searchForFacetValues === 'function' ? {
|
|
713
596
|
searchForItems: this.searchForFacetValues
|
|
714
597
|
} : {};
|
|
715
|
-
return
|
|
598
|
+
return React__default.createElement(Composed, _extends({}, props, providedProps, refineProps, searchForFacetValuesProps));
|
|
716
599
|
}
|
|
717
600
|
}]);
|
|
718
601
|
|
|
@@ -734,9 +617,9 @@ var createConnectorWithContext = function createConnectorWithContext(connectorDe
|
|
|
734
617
|
var Connector = createConnectorWithoutContext(connectorDesc)(Composed);
|
|
735
618
|
|
|
736
619
|
var ConnectorWrapper = function ConnectorWrapper(props) {
|
|
737
|
-
return
|
|
738
|
-
return
|
|
739
|
-
return
|
|
620
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
621
|
+
return React__default.createElement(IndexConsumer, null, function (indexContextValue) {
|
|
622
|
+
return React__default.createElement(Connector, _extends({
|
|
740
623
|
contextValue: contextValue,
|
|
741
624
|
indexContextValue: indexContextValue
|
|
742
625
|
}, props));
|
|
@@ -848,7 +731,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
848
731
|
});
|
|
849
732
|
}
|
|
850
733
|
|
|
851
|
-
var version
|
|
734
|
+
var version = '6.10.3';
|
|
852
735
|
|
|
853
736
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
854
737
|
return function (props, propName, componentName) {
|
|
@@ -909,7 +792,7 @@ function translatable(defaultTranslations) {
|
|
|
909
792
|
_createClass(Translatable, [{
|
|
910
793
|
key: "render",
|
|
911
794
|
value: function render() {
|
|
912
|
-
return
|
|
795
|
+
return React__default.createElement(Composed, _extends({
|
|
913
796
|
translate: this.translate
|
|
914
797
|
}, this.props));
|
|
915
798
|
}
|
|
@@ -1045,7 +928,7 @@ function hasRefinements(_ref) {
|
|
|
1045
928
|
return Object.hasOwnProperty.call(searchState, id);
|
|
1046
929
|
}
|
|
1047
930
|
|
|
1048
|
-
function getRefinements
|
|
931
|
+
function getRefinements(_ref2) {
|
|
1049
932
|
var multiIndex = _ref2.multiIndex,
|
|
1050
933
|
indexId = _ref2.indexId,
|
|
1051
934
|
namespace = _ref2.namespace,
|
|
@@ -1087,7 +970,7 @@ function getCurrentRefinementValue(props, searchState, context, id, defaultValue
|
|
|
1087
970
|
var hasRefinementsValue = hasRefinements(args);
|
|
1088
971
|
|
|
1089
972
|
if (hasRefinementsValue) {
|
|
1090
|
-
return getRefinements
|
|
973
|
+
return getRefinements(args);
|
|
1091
974
|
}
|
|
1092
975
|
|
|
1093
976
|
if (props.defaultRefinement) {
|
|
@@ -1128,10 +1011,10 @@ function cleanUpValueWithSingleIndex(_ref3) {
|
|
|
1128
1011
|
attribute = _ref3.attribute;
|
|
1129
1012
|
|
|
1130
1013
|
if (namespace) {
|
|
1131
|
-
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit
|
|
1014
|
+
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1132
1015
|
}
|
|
1133
1016
|
|
|
1134
|
-
return omit
|
|
1017
|
+
return omit(searchState, [id]);
|
|
1135
1018
|
}
|
|
1136
1019
|
|
|
1137
1020
|
function cleanUpValueWithMultiIndex(_ref4) {
|
|
@@ -1144,20 +1027,20 @@ function cleanUpValueWithMultiIndex(_ref4) {
|
|
|
1144
1027
|
|
|
1145
1028
|
if (namespace && indexSearchState) {
|
|
1146
1029
|
return _objectSpread({}, searchState, {
|
|
1147
|
-
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])))))
|
|
1148
1031
|
});
|
|
1149
1032
|
}
|
|
1150
1033
|
|
|
1151
1034
|
if (indexSearchState) {
|
|
1152
1035
|
return _objectSpread({}, searchState, {
|
|
1153
|
-
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit
|
|
1036
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1154
1037
|
});
|
|
1155
1038
|
}
|
|
1156
1039
|
|
|
1157
1040
|
return searchState;
|
|
1158
1041
|
}
|
|
1159
1042
|
|
|
1160
|
-
function getId
|
|
1043
|
+
function getId() {
|
|
1161
1044
|
return 'configure';
|
|
1162
1045
|
}
|
|
1163
1046
|
|
|
@@ -1167,20 +1050,20 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1167
1050
|
return {};
|
|
1168
1051
|
},
|
|
1169
1052
|
getSearchParameters: function getSearchParameters(searchParameters, props) {
|
|
1170
|
-
props.children
|
|
1171
|
-
props.contextValue
|
|
1172
|
-
props.indexContextValue
|
|
1173
|
-
|
|
1053
|
+
var children = props.children,
|
|
1054
|
+
contextValue = props.contextValue,
|
|
1055
|
+
indexContextValue = props.indexContextValue,
|
|
1056
|
+
items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
|
|
1174
1057
|
|
|
1175
1058
|
return searchParameters.setQueryParameters(items);
|
|
1176
1059
|
},
|
|
1177
1060
|
transitionState: function transitionState(props, prevSearchState, nextSearchState) {
|
|
1178
|
-
var id = getId
|
|
1061
|
+
var id = getId();
|
|
1179
1062
|
|
|
1180
|
-
props.children
|
|
1181
|
-
props.contextValue
|
|
1182
|
-
props.indexContextValue
|
|
1183
|
-
|
|
1063
|
+
var children = props.children,
|
|
1064
|
+
contextValue = props.contextValue,
|
|
1065
|
+
indexContextValue = props.indexContextValue,
|
|
1066
|
+
items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
|
|
1184
1067
|
|
|
1185
1068
|
var propKeys = Object.keys(props);
|
|
1186
1069
|
var nonPresentKeys = this._props ? Object.keys(this._props).filter(function (prop) {
|
|
@@ -1188,7 +1071,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1188
1071
|
}) : [];
|
|
1189
1072
|
this._props = props;
|
|
1190
1073
|
|
|
1191
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit
|
|
1074
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1192
1075
|
|
|
1193
1076
|
return refineValue(nextSearchState, nextValue, {
|
|
1194
1077
|
ais: props.contextValue,
|
|
@@ -1196,7 +1079,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1196
1079
|
});
|
|
1197
1080
|
},
|
|
1198
1081
|
cleanUp: function cleanUp(props, searchState) {
|
|
1199
|
-
var id = getId
|
|
1082
|
+
var id = getId();
|
|
1200
1083
|
var indexId = getIndexId({
|
|
1201
1084
|
ais: props.contextValue,
|
|
1202
1085
|
multiIndexContext: props.indexContextValue
|
|
@@ -1262,39 +1145,26 @@ var Configure = connectConfigure(function Configure() {
|
|
|
1262
1145
|
return null;
|
|
1263
1146
|
});
|
|
1264
1147
|
|
|
1265
|
-
function
|
|
1266
|
-
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
|
+
}
|
|
1267
1153
|
|
|
1268
|
-
|
|
1269
|
-
arr2[i] = arr[i];
|
|
1154
|
+
return arr2;
|
|
1270
1155
|
}
|
|
1271
|
-
|
|
1272
|
-
return arr2;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
function _arrayWithoutHoles(arr) {
|
|
1276
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1277
1156
|
}
|
|
1278
1157
|
|
|
1279
1158
|
function _iterableToArray(iter) {
|
|
1280
|
-
if (
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1284
|
-
if (!o) return;
|
|
1285
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1286
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1287
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1288
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1289
|
-
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);
|
|
1290
1160
|
}
|
|
1291
1161
|
|
|
1292
1162
|
function _nonIterableSpread() {
|
|
1293
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1163
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1294
1164
|
}
|
|
1295
1165
|
|
|
1296
1166
|
function _toConsumableArray(arr) {
|
|
1297
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
1167
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
1298
1168
|
}
|
|
1299
1169
|
|
|
1300
1170
|
function clone(value) {
|
|
@@ -1444,13 +1314,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1444
1314
|
return target;
|
|
1445
1315
|
}
|
|
1446
1316
|
|
|
1447
|
-
var omit = _objectWithoutPropertiesLoose;
|
|
1317
|
+
var omit$1 = _objectWithoutPropertiesLoose;
|
|
1448
1318
|
|
|
1449
|
-
function objectHasKeys(obj) {
|
|
1319
|
+
function objectHasKeys$1(obj) {
|
|
1450
1320
|
return obj && Object.keys(obj).length > 0;
|
|
1451
1321
|
}
|
|
1452
1322
|
|
|
1453
|
-
var objectHasKeys_1 = objectHasKeys;
|
|
1323
|
+
var objectHasKeys_1 = objectHasKeys$1;
|
|
1454
1324
|
|
|
1455
1325
|
var isValidUserToken = function isValidUserToken(userToken) {
|
|
1456
1326
|
if (userToken === null) {
|
|
@@ -1558,7 +1428,7 @@ var lib = {
|
|
|
1558
1428
|
}
|
|
1559
1429
|
return {};
|
|
1560
1430
|
} else if (typeof attribute === 'string') {
|
|
1561
|
-
return omit(refinementList, [attribute]);
|
|
1431
|
+
return omit$1(refinementList, [attribute]);
|
|
1562
1432
|
} else if (typeof attribute === 'function') {
|
|
1563
1433
|
var hasChanged = false;
|
|
1564
1434
|
|
|
@@ -1603,7 +1473,7 @@ var lib = {
|
|
|
1603
1473
|
}
|
|
1604
1474
|
};
|
|
1605
1475
|
|
|
1606
|
-
var RefinementList
|
|
1476
|
+
var RefinementList = lib;
|
|
1607
1477
|
|
|
1608
1478
|
/**
|
|
1609
1479
|
* isEqual, but only for numeric refinement values, possible values:
|
|
@@ -1972,22 +1842,22 @@ SearchParameters.prototype = {
|
|
|
1972
1842
|
clearRefinements: function clearRefinements(attribute) {
|
|
1973
1843
|
var patch = {
|
|
1974
1844
|
numericRefinements: this._clearNumericRefinements(attribute),
|
|
1975
|
-
facetsRefinements: RefinementList
|
|
1845
|
+
facetsRefinements: RefinementList.clearRefinement(
|
|
1976
1846
|
this.facetsRefinements,
|
|
1977
1847
|
attribute,
|
|
1978
1848
|
'conjunctiveFacet'
|
|
1979
1849
|
),
|
|
1980
|
-
facetsExcludes: RefinementList
|
|
1850
|
+
facetsExcludes: RefinementList.clearRefinement(
|
|
1981
1851
|
this.facetsExcludes,
|
|
1982
1852
|
attribute,
|
|
1983
1853
|
'exclude'
|
|
1984
1854
|
),
|
|
1985
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
1855
|
+
disjunctiveFacetsRefinements: RefinementList.clearRefinement(
|
|
1986
1856
|
this.disjunctiveFacetsRefinements,
|
|
1987
1857
|
attribute,
|
|
1988
1858
|
'disjunctiveFacet'
|
|
1989
1859
|
),
|
|
1990
|
-
hierarchicalFacetsRefinements: RefinementList
|
|
1860
|
+
hierarchicalFacetsRefinements: RefinementList.clearRefinement(
|
|
1991
1861
|
this.hierarchicalFacetsRefinements,
|
|
1992
1862
|
attribute,
|
|
1993
1863
|
'hierarchicalFacet'
|
|
@@ -2263,7 +2133,7 @@ SearchParameters.prototype = {
|
|
|
2263
2133
|
}
|
|
2264
2134
|
return {};
|
|
2265
2135
|
} else if (typeof attribute === 'string') {
|
|
2266
|
-
return omit(this.numericRefinements, [attribute]);
|
|
2136
|
+
return omit$1(this.numericRefinements, [attribute]);
|
|
2267
2137
|
} else if (typeof attribute === 'function') {
|
|
2268
2138
|
var hasChanged = false;
|
|
2269
2139
|
var numericRefinements = this.numericRefinements;
|
|
@@ -2355,10 +2225,10 @@ SearchParameters.prototype = {
|
|
|
2355
2225
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2356
2226
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2357
2227
|
}
|
|
2358
|
-
if (RefinementList
|
|
2228
|
+
if (RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
|
|
2359
2229
|
|
|
2360
2230
|
return this.setQueryParameters({
|
|
2361
|
-
facetsRefinements: RefinementList
|
|
2231
|
+
facetsRefinements: RefinementList.addRefinement(this.facetsRefinements, facet, value)
|
|
2362
2232
|
});
|
|
2363
2233
|
},
|
|
2364
2234
|
/**
|
|
@@ -2372,10 +2242,10 @@ SearchParameters.prototype = {
|
|
|
2372
2242
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2373
2243
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2374
2244
|
}
|
|
2375
|
-
if (RefinementList
|
|
2245
|
+
if (RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
|
|
2376
2246
|
|
|
2377
2247
|
return this.setQueryParameters({
|
|
2378
|
-
facetsExcludes: RefinementList
|
|
2248
|
+
facetsExcludes: RefinementList.addRefinement(this.facetsExcludes, facet, value)
|
|
2379
2249
|
});
|
|
2380
2250
|
},
|
|
2381
2251
|
/**
|
|
@@ -2391,10 +2261,10 @@ SearchParameters.prototype = {
|
|
|
2391
2261
|
facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
|
|
2392
2262
|
}
|
|
2393
2263
|
|
|
2394
|
-
if (RefinementList
|
|
2264
|
+
if (RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
|
|
2395
2265
|
|
|
2396
2266
|
return this.setQueryParameters({
|
|
2397
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2267
|
+
disjunctiveFacetsRefinements: RefinementList.addRefinement(
|
|
2398
2268
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2399
2269
|
});
|
|
2400
2270
|
},
|
|
@@ -2479,10 +2349,10 @@ SearchParameters.prototype = {
|
|
|
2479
2349
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2480
2350
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2481
2351
|
}
|
|
2482
|
-
if (!RefinementList
|
|
2352
|
+
if (!RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
|
|
2483
2353
|
|
|
2484
2354
|
return this.setQueryParameters({
|
|
2485
|
-
facetsRefinements: RefinementList
|
|
2355
|
+
facetsRefinements: RefinementList.removeRefinement(this.facetsRefinements, facet, value)
|
|
2486
2356
|
});
|
|
2487
2357
|
},
|
|
2488
2358
|
/**
|
|
@@ -2496,10 +2366,10 @@ SearchParameters.prototype = {
|
|
|
2496
2366
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2497
2367
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2498
2368
|
}
|
|
2499
|
-
if (!RefinementList
|
|
2369
|
+
if (!RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
|
|
2500
2370
|
|
|
2501
2371
|
return this.setQueryParameters({
|
|
2502
|
-
facetsExcludes: RefinementList
|
|
2372
|
+
facetsExcludes: RefinementList.removeRefinement(this.facetsExcludes, facet, value)
|
|
2503
2373
|
});
|
|
2504
2374
|
},
|
|
2505
2375
|
/**
|
|
@@ -2514,10 +2384,10 @@ SearchParameters.prototype = {
|
|
|
2514
2384
|
throw new Error(
|
|
2515
2385
|
facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
|
|
2516
2386
|
}
|
|
2517
|
-
if (!RefinementList
|
|
2387
|
+
if (!RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
|
|
2518
2388
|
|
|
2519
2389
|
return this.setQueryParameters({
|
|
2520
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2390
|
+
disjunctiveFacetsRefinements: RefinementList.removeRefinement(
|
|
2521
2391
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2522
2392
|
});
|
|
2523
2393
|
},
|
|
@@ -2583,7 +2453,7 @@ SearchParameters.prototype = {
|
|
|
2583
2453
|
}
|
|
2584
2454
|
|
|
2585
2455
|
return this.setQueryParameters({
|
|
2586
|
-
facetsRefinements: RefinementList
|
|
2456
|
+
facetsRefinements: RefinementList.toggleRefinement(this.facetsRefinements, facet, value)
|
|
2587
2457
|
});
|
|
2588
2458
|
},
|
|
2589
2459
|
/**
|
|
@@ -2599,7 +2469,7 @@ SearchParameters.prototype = {
|
|
|
2599
2469
|
}
|
|
2600
2470
|
|
|
2601
2471
|
return this.setQueryParameters({
|
|
2602
|
-
facetsExcludes: RefinementList
|
|
2472
|
+
facetsExcludes: RefinementList.toggleRefinement(this.facetsExcludes, facet, value)
|
|
2603
2473
|
});
|
|
2604
2474
|
},
|
|
2605
2475
|
/**
|
|
@@ -2616,7 +2486,7 @@ SearchParameters.prototype = {
|
|
|
2616
2486
|
}
|
|
2617
2487
|
|
|
2618
2488
|
return this.setQueryParameters({
|
|
2619
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2489
|
+
disjunctiveFacetsRefinements: RefinementList.toggleRefinement(
|
|
2620
2490
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2621
2491
|
});
|
|
2622
2492
|
},
|
|
@@ -2755,7 +2625,7 @@ SearchParameters.prototype = {
|
|
|
2755
2625
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2756
2626
|
return false;
|
|
2757
2627
|
}
|
|
2758
|
-
return RefinementList
|
|
2628
|
+
return RefinementList.isRefined(this.facetsRefinements, facet, value);
|
|
2759
2629
|
},
|
|
2760
2630
|
/**
|
|
2761
2631
|
* Returns true if the facet contains exclusions or if a specific value is
|
|
@@ -2771,7 +2641,7 @@ SearchParameters.prototype = {
|
|
|
2771
2641
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2772
2642
|
return false;
|
|
2773
2643
|
}
|
|
2774
|
-
return RefinementList
|
|
2644
|
+
return RefinementList.isRefined(this.facetsExcludes, facet, value);
|
|
2775
2645
|
},
|
|
2776
2646
|
/**
|
|
2777
2647
|
* Returns true if the facet contains a refinement, or if a value passed is a
|
|
@@ -2786,7 +2656,7 @@ SearchParameters.prototype = {
|
|
|
2786
2656
|
if (!this.isDisjunctiveFacet(facet)) {
|
|
2787
2657
|
return false;
|
|
2788
2658
|
}
|
|
2789
|
-
return RefinementList
|
|
2659
|
+
return RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value);
|
|
2790
2660
|
},
|
|
2791
2661
|
/**
|
|
2792
2662
|
* Returns true if the facet contains a refinement, or if a value passed is a
|
|
@@ -2972,7 +2842,7 @@ SearchParameters.prototype = {
|
|
|
2972
2842
|
var isNextValueDefined = nextWithNumbers[key] !== undefined;
|
|
2973
2843
|
|
|
2974
2844
|
if (isPreviousValueDefined && !isNextValueDefined) {
|
|
2975
|
-
return omit(previous, [key]);
|
|
2845
|
+
return omit$1(previous, [key]);
|
|
2976
2846
|
}
|
|
2977
2847
|
|
|
2978
2848
|
if (isNextValueDefined) {
|
|
@@ -4705,7 +4575,7 @@ var requestBuilder = {
|
|
|
4705
4575
|
|
|
4706
4576
|
var requestBuilder_1 = requestBuilder;
|
|
4707
4577
|
|
|
4708
|
-
var version = '3.4.4';
|
|
4578
|
+
var version$1 = '3.4.4';
|
|
4709
4579
|
|
|
4710
4580
|
/**
|
|
4711
4581
|
* Event triggered when a parameter is set or updated
|
|
@@ -4812,7 +4682,7 @@ var version = '3.4.4';
|
|
|
4812
4682
|
*/
|
|
4813
4683
|
function AlgoliaSearchHelper(client, index, options) {
|
|
4814
4684
|
if (typeof client.addAlgoliaAgent === 'function') {
|
|
4815
|
-
client.addAlgoliaAgent('JS Helper (' + version + ')');
|
|
4685
|
+
client.addAlgoliaAgent('JS Helper (' + version$1 + ')');
|
|
4816
4686
|
}
|
|
4817
4687
|
|
|
4818
4688
|
this.setClient(client);
|
|
@@ -4967,7 +4837,7 @@ AlgoliaSearchHelper.prototype.findAnswers = function(options) {
|
|
|
4967
4837
|
nbHits: options.nbHits
|
|
4968
4838
|
},
|
|
4969
4839
|
{
|
|
4970
|
-
params: omit(requestBuilder_1._getHitsSearchParams(derivedState), [
|
|
4840
|
+
params: omit$1(requestBuilder_1._getHitsSearchParams(derivedState), [
|
|
4971
4841
|
'attributesToSnippet',
|
|
4972
4842
|
'hitsPerPage',
|
|
4973
4843
|
'restrictSearchableAttributes',
|
|
@@ -6081,7 +5951,7 @@ AlgoliaSearchHelper.prototype.setClient = function(newClient) {
|
|
|
6081
5951
|
if (this.client === newClient) return this;
|
|
6082
5952
|
|
|
6083
5953
|
if (typeof newClient.addAlgoliaAgent === 'function') {
|
|
6084
|
-
newClient.addAlgoliaAgent('JS Helper (' + version + ')');
|
|
5954
|
+
newClient.addAlgoliaAgent('JS Helper (' + version$1 + ')');
|
|
6085
5955
|
}
|
|
6086
5956
|
this.client = newClient;
|
|
6087
5957
|
|
|
@@ -6200,7 +6070,7 @@ function algoliasearchHelper(client, index, opts) {
|
|
|
6200
6070
|
* @member module:algoliasearchHelper.version
|
|
6201
6071
|
* @type {number}
|
|
6202
6072
|
*/
|
|
6203
|
-
algoliasearchHelper.version = version;
|
|
6073
|
+
algoliasearchHelper.version = version$1;
|
|
6204
6074
|
|
|
6205
6075
|
/**
|
|
6206
6076
|
* Constructor for the Helper.
|
|
@@ -6232,13 +6102,13 @@ function createOptionalFilter(_ref) {
|
|
|
6232
6102
|
return "".concat(attributeName, ":").concat(attributeValue, "<score=").concat(attributeScore || 1, ">");
|
|
6233
6103
|
}
|
|
6234
6104
|
|
|
6235
|
-
var defaultProps
|
|
6105
|
+
var defaultProps = {
|
|
6236
6106
|
transformSearchParameters: function transformSearchParameters(x) {
|
|
6237
6107
|
return _objectSpread({}, x);
|
|
6238
6108
|
}
|
|
6239
6109
|
};
|
|
6240
6110
|
|
|
6241
|
-
function getId$
|
|
6111
|
+
function getId$1() {
|
|
6242
6112
|
// We store the search state of this widget in `configure`.
|
|
6243
6113
|
return 'configure';
|
|
6244
6114
|
}
|
|
@@ -6286,7 +6156,7 @@ function getSearchParametersFromProps(props) {
|
|
|
6286
6156
|
|
|
6287
6157
|
var connectConfigureRelatedItems = createConnectorWithContext({
|
|
6288
6158
|
displayName: 'AlgoliaConfigureRelatedItems',
|
|
6289
|
-
defaultProps: defaultProps
|
|
6159
|
+
defaultProps: defaultProps,
|
|
6290
6160
|
getProvidedProps: function getProvidedProps() {
|
|
6291
6161
|
return {};
|
|
6292
6162
|
},
|
|
@@ -6294,7 +6164,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6294
6164
|
return searchParameters.setQueryParameters(getSearchParametersFromProps(props));
|
|
6295
6165
|
},
|
|
6296
6166
|
transitionState: function transitionState(props, _prevSearchState, nextSearchState) {
|
|
6297
|
-
var id = getId$
|
|
6167
|
+
var id = getId$1(); // We need to transform the exhaustive search parameters back to clean
|
|
6298
6168
|
// search parameters without the empty default keys so we don't pollute the
|
|
6299
6169
|
// `configure` search state.
|
|
6300
6170
|
|
|
@@ -6305,7 +6175,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6305
6175
|
}) : [];
|
|
6306
6176
|
this._searchParameters = searchParameters;
|
|
6307
6177
|
|
|
6308
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit
|
|
6178
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6309
6179
|
|
|
6310
6180
|
return refineValue(nextSearchState, nextValue, {
|
|
6311
6181
|
ais: props.contextValue,
|
|
@@ -6315,7 +6185,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6315
6185
|
cleanUp: function cleanUp(props, searchState) {
|
|
6316
6186
|
var _this = this;
|
|
6317
6187
|
|
|
6318
|
-
var id = getId$
|
|
6188
|
+
var id = getId$1();
|
|
6319
6189
|
var indexId = getIndexId({
|
|
6320
6190
|
ais: props.contextValue,
|
|
6321
6191
|
multiIndexContext: props.indexContextValue
|
|
@@ -6388,7 +6258,7 @@ function getWidgetRefinements(attribute, widgetKey, searchState) {
|
|
|
6388
6258
|
}
|
|
6389
6259
|
}
|
|
6390
6260
|
|
|
6391
|
-
function getRefinements(attribute) {
|
|
6261
|
+
function getRefinements$1(attribute) {
|
|
6392
6262
|
var searchState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
6393
6263
|
var refinements = Object.keys(searchState).filter(function (widgetKey) {
|
|
6394
6264
|
return searchState[widgetKey] !== undefined && searchState[widgetKey][attribute] !== undefined;
|
|
@@ -6405,7 +6275,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
|
|
|
6405
6275
|
var searchState = _ref.searchState,
|
|
6406
6276
|
trackedFilters = _ref.trackedFilters;
|
|
6407
6277
|
var ruleContexts = Object.keys(trackedFilters).reduce(function (facets, facetName) {
|
|
6408
|
-
var facetRefinements = getRefinements(facetName, searchState);
|
|
6278
|
+
var facetRefinements = getRefinements$1(facetName, searchState);
|
|
6409
6279
|
var getTrackedFacetValues = trackedFilters[facetName];
|
|
6410
6280
|
var trackedFacetValues = getTrackedFacetValues(facetRefinements);
|
|
6411
6281
|
return [].concat(_toConsumableArray(facets), _toConsumableArray(facetRefinements.filter(function (facetRefinement) {
|
|
@@ -6417,7 +6287,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
|
|
|
6417
6287
|
return ruleContexts;
|
|
6418
6288
|
}
|
|
6419
6289
|
|
|
6420
|
-
var defaultProps = {
|
|
6290
|
+
var defaultProps$1 = {
|
|
6421
6291
|
transformItems: function transformItems(items) {
|
|
6422
6292
|
return items;
|
|
6423
6293
|
},
|
|
@@ -6428,7 +6298,7 @@ var defaultProps = {
|
|
|
6428
6298
|
};
|
|
6429
6299
|
var connectQueryRules = createConnectorWithContext({
|
|
6430
6300
|
displayName: 'AlgoliaQueryRules',
|
|
6431
|
-
defaultProps: defaultProps,
|
|
6301
|
+
defaultProps: defaultProps$1,
|
|
6432
6302
|
getProvidedProps: function getProvidedProps(props, _1, searchResults) {
|
|
6433
6303
|
var results = getResults(searchResults, {
|
|
6434
6304
|
ais: props.contextValue,
|
|
@@ -6590,7 +6460,7 @@ function (_Component) {
|
|
|
6590
6460
|
return null;
|
|
6591
6461
|
}
|
|
6592
6462
|
|
|
6593
|
-
return
|
|
6463
|
+
return React__default.createElement(IndexProvider, {
|
|
6594
6464
|
value: this.state.indexContext
|
|
6595
6465
|
}, this.props.children);
|
|
6596
6466
|
}
|
|
@@ -6605,10 +6475,20 @@ _defineProperty(Index, "propTypes", {
|
|
|
6605
6475
|
children: PropTypes.node
|
|
6606
6476
|
});
|
|
6607
6477
|
|
|
6608
|
-
({
|
|
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 = {
|
|
6609
6489
|
indexName: PropTypes.string.isRequired,
|
|
6610
6490
|
indexId: PropTypes.string
|
|
6611
|
-
}
|
|
6491
|
+
};
|
|
6612
6492
|
|
|
6613
6493
|
function createWidgetsManager(onWidgetsUpdate) {
|
|
6614
6494
|
var widgets = []; // Is an update scheduled?
|
|
@@ -6669,7 +6549,7 @@ function createStore(initialState) {
|
|
|
6669
6549
|
function addAlgoliaAgents(searchClient) {
|
|
6670
6550
|
if (typeof searchClient.addAlgoliaAgent === 'function') {
|
|
6671
6551
|
searchClient.addAlgoliaAgent("react (".concat(version$2, ")"));
|
|
6672
|
-
searchClient.addAlgoliaAgent("react-instantsearch (".concat(version
|
|
6552
|
+
searchClient.addAlgoliaAgent("react-instantsearch (".concat(version, ")"));
|
|
6673
6553
|
}
|
|
6674
6554
|
}
|
|
6675
6555
|
|
|
@@ -6907,8 +6787,8 @@ function createInstantSearchManager(_ref) {
|
|
|
6907
6787
|
nextIsSearchStalled = false;
|
|
6908
6788
|
}
|
|
6909
6789
|
|
|
6910
|
-
currentState.resultsFacetValues
|
|
6911
|
-
|
|
6790
|
+
var resultsFacetValues = currentState.resultsFacetValues,
|
|
6791
|
+
partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
|
|
6912
6792
|
|
|
6913
6793
|
store.setState(_objectSpread({}, partialState, {
|
|
6914
6794
|
results: results,
|
|
@@ -6929,8 +6809,8 @@ function createInstantSearchManager(_ref) {
|
|
|
6929
6809
|
nextIsSearchStalled = false;
|
|
6930
6810
|
}
|
|
6931
6811
|
|
|
6932
|
-
currentState.resultsFacetValues
|
|
6933
|
-
|
|
6812
|
+
var resultsFacetValues = currentState.resultsFacetValues,
|
|
6813
|
+
partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
|
|
6934
6814
|
|
|
6935
6815
|
store.setState(_objectSpread({}, partialState, {
|
|
6936
6816
|
isSearchStalled: nextIsSearchStalled,
|
|
@@ -6942,9 +6822,9 @@ function createInstantSearchManager(_ref) {
|
|
|
6942
6822
|
function handleNewSearch() {
|
|
6943
6823
|
if (!stalledSearchTimer) {
|
|
6944
6824
|
stalledSearchTimer = setTimeout(function () {
|
|
6945
|
-
var _store$getState = store.getState()
|
|
6946
|
-
_store$getState.resultsFacetValues
|
|
6947
|
-
|
|
6825
|
+
var _store$getState = store.getState(),
|
|
6826
|
+
resultsFacetValues = _store$getState.resultsFacetValues,
|
|
6827
|
+
partialState = _objectWithoutProperties(_store$getState, ["resultsFacetValues"]);
|
|
6948
6828
|
|
|
6949
6829
|
store.setState(_objectSpread({}, partialState, {
|
|
6950
6830
|
isSearchStalled: true
|
|
@@ -7409,7 +7289,7 @@ function (_Component) {
|
|
|
7409
7289
|
return null;
|
|
7410
7290
|
}
|
|
7411
7291
|
|
|
7412
|
-
return
|
|
7292
|
+
return React__default.createElement(InstantSearchProvider, {
|
|
7413
7293
|
value: this.state.contextValue
|
|
7414
7294
|
}, this.props.children);
|
|
7415
7295
|
}
|
|
@@ -7443,21 +7323,21 @@ _defineProperty(InstantSearch, "propTypes", {
|
|
|
7443
7323
|
stalledSearchDelay: PropTypes.number
|
|
7444
7324
|
});
|
|
7445
7325
|
|
|
7446
|
-
var getId$
|
|
7326
|
+
var getId$2 = function getId(props) {
|
|
7447
7327
|
return props.attributes[0];
|
|
7448
7328
|
};
|
|
7449
|
-
var namespace
|
|
7329
|
+
var namespace = 'hierarchicalMenu';
|
|
7450
7330
|
|
|
7451
|
-
function _refine
|
|
7452
|
-
var id = getId$
|
|
7331
|
+
function _refine(props, searchState, nextRefinement, context) {
|
|
7332
|
+
var id = getId$2(props);
|
|
7453
7333
|
|
|
7454
7334
|
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7455
7335
|
|
|
7456
7336
|
var resetPage = true;
|
|
7457
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace
|
|
7337
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
7458
7338
|
}
|
|
7459
7339
|
|
|
7460
|
-
function transformValue
|
|
7340
|
+
function transformValue(values) {
|
|
7461
7341
|
return values.reduce(function (acc, item) {
|
|
7462
7342
|
if (item.isRefined) {
|
|
7463
7343
|
acc.push({
|
|
@@ -7468,7 +7348,7 @@ function transformValue$1(values) {
|
|
|
7468
7348
|
}); // Create a variable in order to keep the same acc for the recursion, otherwise "reduce" returns a new one
|
|
7469
7349
|
|
|
7470
7350
|
if (item.data) {
|
|
7471
|
-
acc = acc.concat(transformValue
|
|
7351
|
+
acc = acc.concat(transformValue(item.data));
|
|
7472
7352
|
}
|
|
7473
7353
|
}
|
|
7474
7354
|
|
|
@@ -7530,7 +7410,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7530
7410
|
transformItems: PropTypes.func
|
|
7531
7411
|
},
|
|
7532
7412
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7533
|
-
var id = getId$
|
|
7413
|
+
var id = getId$2(props);
|
|
7534
7414
|
var results = getResults(searchResults, {
|
|
7535
7415
|
ais: props.contextValue,
|
|
7536
7416
|
multiIndexContext: props.indexContextValue
|
|
@@ -7545,7 +7425,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7545
7425
|
}
|
|
7546
7426
|
|
|
7547
7427
|
var values = results.getFacetValues(id);
|
|
7548
|
-
var items = values.data ? transformValue
|
|
7428
|
+
var items = values.data ? transformValue(values.data) : [];
|
|
7549
7429
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
7550
7430
|
return {
|
|
7551
7431
|
canRefine: transformedItems.length > 0,
|
|
@@ -7553,7 +7433,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7553
7433
|
};
|
|
7554
7434
|
},
|
|
7555
7435
|
refine: function refine(props, searchState, nextRefinement) {
|
|
7556
|
-
return _refine
|
|
7436
|
+
return _refine(props, searchState, nextRefinement, {
|
|
7557
7437
|
ais: props.contextValue,
|
|
7558
7438
|
multiIndexContext: props.indexContextValue
|
|
7559
7439
|
});
|
|
@@ -7616,13 +7496,13 @@ var connectCurrentRefinements = createConnectorWithContext({
|
|
|
7616
7496
|
}
|
|
7617
7497
|
});
|
|
7618
7498
|
|
|
7619
|
-
var getId$
|
|
7499
|
+
var getId$3 = function getId(props) {
|
|
7620
7500
|
return props.attributes[0];
|
|
7621
7501
|
};
|
|
7622
|
-
var namespace$
|
|
7502
|
+
var namespace$1 = 'hierarchicalMenu';
|
|
7623
7503
|
|
|
7624
|
-
function getCurrentRefinement
|
|
7625
|
-
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);
|
|
7626
7506
|
|
|
7627
7507
|
if (currentRefinement === '') {
|
|
7628
7508
|
return null;
|
|
@@ -7631,13 +7511,13 @@ function getCurrentRefinement$b(props, searchState, context) {
|
|
|
7631
7511
|
return currentRefinement;
|
|
7632
7512
|
}
|
|
7633
7513
|
|
|
7634
|
-
function getValue
|
|
7514
|
+
function getValue(path, props, searchState, context) {
|
|
7635
7515
|
var id = props.id,
|
|
7636
7516
|
attributes = props.attributes,
|
|
7637
7517
|
separator = props.separator,
|
|
7638
7518
|
rootPath = props.rootPath,
|
|
7639
7519
|
showParentLevel = props.showParentLevel;
|
|
7640
|
-
var currentRefinement = getCurrentRefinement
|
|
7520
|
+
var currentRefinement = getCurrentRefinement(props, searchState, context);
|
|
7641
7521
|
var nextRefinement;
|
|
7642
7522
|
|
|
7643
7523
|
if (currentRefinement === null) {
|
|
@@ -7658,14 +7538,14 @@ function getValue$2(path, props, searchState, context) {
|
|
|
7658
7538
|
return nextRefinement;
|
|
7659
7539
|
}
|
|
7660
7540
|
|
|
7661
|
-
function transformValue(value, props, searchState, context) {
|
|
7541
|
+
function transformValue$1(value, props, searchState, context) {
|
|
7662
7542
|
return value.map(function (v) {
|
|
7663
7543
|
return {
|
|
7664
7544
|
label: v.name,
|
|
7665
|
-
value: getValue
|
|
7545
|
+
value: getValue(v.path, props, searchState, context),
|
|
7666
7546
|
count: v.count,
|
|
7667
7547
|
isRefined: v.isRefined,
|
|
7668
|
-
items: v.data && transformValue(v.data, props, searchState, context)
|
|
7548
|
+
items: v.data && transformValue$1(v.data, props, searchState, context)
|
|
7669
7549
|
};
|
|
7670
7550
|
});
|
|
7671
7551
|
}
|
|
@@ -7681,20 +7561,20 @@ var truncate = function truncate() {
|
|
|
7681
7561
|
});
|
|
7682
7562
|
};
|
|
7683
7563
|
|
|
7684
|
-
function _refine$
|
|
7685
|
-
var id = getId$
|
|
7564
|
+
function _refine$1(props, searchState, nextRefinement, context) {
|
|
7565
|
+
var id = getId$3(props);
|
|
7686
7566
|
|
|
7687
7567
|
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7688
7568
|
|
|
7689
7569
|
var resetPage = true;
|
|
7690
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
7570
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$1);
|
|
7691
7571
|
}
|
|
7692
7572
|
|
|
7693
|
-
function _cleanUp
|
|
7694
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
7573
|
+
function _cleanUp(props, searchState, context) {
|
|
7574
|
+
return cleanUpValue(searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)));
|
|
7695
7575
|
}
|
|
7696
7576
|
|
|
7697
|
-
var sortBy
|
|
7577
|
+
var sortBy = ['name:asc'];
|
|
7698
7578
|
/**
|
|
7699
7579
|
* connectHierarchicalMenu connector provides the logic to build a widget that will
|
|
7700
7580
|
* give the user the ability to explore a tree-like structure.
|
|
@@ -7776,7 +7656,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7776
7656
|
var showMore = props.showMore,
|
|
7777
7657
|
limit = props.limit,
|
|
7778
7658
|
showMoreLimit = props.showMoreLimit;
|
|
7779
|
-
var id = getId$
|
|
7659
|
+
var id = getId$3(props);
|
|
7780
7660
|
var results = getResults(searchResults, {
|
|
7781
7661
|
ais: props.contextValue,
|
|
7782
7662
|
multiIndexContext: props.indexContextValue
|
|
@@ -7786,7 +7666,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7786
7666
|
if (!isFacetPresent) {
|
|
7787
7667
|
return {
|
|
7788
7668
|
items: [],
|
|
7789
|
-
currentRefinement: getCurrentRefinement
|
|
7669
|
+
currentRefinement: getCurrentRefinement(props, searchState, {
|
|
7790
7670
|
ais: props.contextValue,
|
|
7791
7671
|
multiIndexContext: props.indexContextValue
|
|
7792
7672
|
}),
|
|
@@ -7796,16 +7676,16 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7796
7676
|
|
|
7797
7677
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7798
7678
|
var value = results.getFacetValues(id, {
|
|
7799
|
-
sortBy: sortBy
|
|
7679
|
+
sortBy: sortBy
|
|
7800
7680
|
});
|
|
7801
|
-
var items = value.data ? transformValue(value.data, props, searchState, {
|
|
7681
|
+
var items = value.data ? transformValue$1(value.data, props, searchState, {
|
|
7802
7682
|
ais: props.contextValue,
|
|
7803
7683
|
multiIndexContext: props.indexContextValue
|
|
7804
7684
|
}) : [];
|
|
7805
7685
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
7806
7686
|
return {
|
|
7807
7687
|
items: truncate(transformedItems, itemsLimit),
|
|
7808
|
-
currentRefinement: getCurrentRefinement
|
|
7688
|
+
currentRefinement: getCurrentRefinement(props, searchState, {
|
|
7809
7689
|
ais: props.contextValue,
|
|
7810
7690
|
multiIndexContext: props.indexContextValue
|
|
7811
7691
|
}),
|
|
@@ -7813,13 +7693,13 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7813
7693
|
};
|
|
7814
7694
|
},
|
|
7815
7695
|
refine: function refine(props, searchState, nextRefinement) {
|
|
7816
|
-
return _refine$
|
|
7696
|
+
return _refine$1(props, searchState, nextRefinement, {
|
|
7817
7697
|
ais: props.contextValue,
|
|
7818
7698
|
multiIndexContext: props.indexContextValue
|
|
7819
7699
|
});
|
|
7820
7700
|
},
|
|
7821
7701
|
cleanUp: function cleanUp(props, searchState) {
|
|
7822
|
-
return _cleanUp
|
|
7702
|
+
return _cleanUp(props, searchState, {
|
|
7823
7703
|
ais: props.contextValue,
|
|
7824
7704
|
multiIndexContext: props.indexContextValue
|
|
7825
7705
|
});
|
|
@@ -7833,7 +7713,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7833
7713
|
limit = props.limit,
|
|
7834
7714
|
showMoreLimit = props.showMoreLimit,
|
|
7835
7715
|
contextValue = props.contextValue;
|
|
7836
|
-
var id = getId$
|
|
7716
|
+
var id = getId$3(props);
|
|
7837
7717
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7838
7718
|
searchParameters = searchParameters.addHierarchicalFacet({
|
|
7839
7719
|
name: id,
|
|
@@ -7844,7 +7724,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7844
7724
|
}).setQueryParameters({
|
|
7845
7725
|
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, itemsLimit)
|
|
7846
7726
|
});
|
|
7847
|
-
var currentRefinement = getCurrentRefinement
|
|
7727
|
+
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
7848
7728
|
ais: contextValue,
|
|
7849
7729
|
multiIndexContext: props.indexContextValue
|
|
7850
7730
|
});
|
|
@@ -7857,8 +7737,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7857
7737
|
},
|
|
7858
7738
|
getMetadata: function getMetadata(props, searchState) {
|
|
7859
7739
|
var rootAttribute = props.attributes[0];
|
|
7860
|
-
var id = getId$
|
|
7861
|
-
var currentRefinement = getCurrentRefinement
|
|
7740
|
+
var id = getId$3(props);
|
|
7741
|
+
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
7862
7742
|
ais: props.contextValue,
|
|
7863
7743
|
multiIndexContext: props.indexContextValue
|
|
7864
7744
|
});
|
|
@@ -7866,7 +7746,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7866
7746
|
label: "".concat(rootAttribute, ": ").concat(currentRefinement),
|
|
7867
7747
|
attribute: rootAttribute,
|
|
7868
7748
|
value: function value(nextState) {
|
|
7869
|
-
return _refine$
|
|
7749
|
+
return _refine$1(props, nextState, '', {
|
|
7870
7750
|
ais: props.contextValue,
|
|
7871
7751
|
multiIndexContext: props.indexContextValue
|
|
7872
7752
|
});
|
|
@@ -8043,12 +7923,12 @@ var connectHits = createConnectorWithContext({
|
|
|
8043
7923
|
}
|
|
8044
7924
|
});
|
|
8045
7925
|
|
|
8046
|
-
function getId$
|
|
7926
|
+
function getId$4() {
|
|
8047
7927
|
return 'hitsPerPage';
|
|
8048
7928
|
}
|
|
8049
7929
|
|
|
8050
|
-
function getCurrentRefinement$
|
|
8051
|
-
var id = getId$
|
|
7930
|
+
function getCurrentRefinement$1(props, searchState, context) {
|
|
7931
|
+
var id = getId$4();
|
|
8052
7932
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
|
|
8053
7933
|
|
|
8054
7934
|
if (typeof currentRefinement === 'string') {
|
|
@@ -8083,7 +7963,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8083
7963
|
transformItems: PropTypes.func
|
|
8084
7964
|
},
|
|
8085
7965
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
8086
|
-
var currentRefinement = getCurrentRefinement$
|
|
7966
|
+
var currentRefinement = getCurrentRefinement$1(props, searchState, {
|
|
8087
7967
|
ais: props.contextValue,
|
|
8088
7968
|
multiIndexContext: props.indexContextValue
|
|
8089
7969
|
});
|
|
@@ -8100,7 +7980,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8100
7980
|
};
|
|
8101
7981
|
},
|
|
8102
7982
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8103
|
-
var id = getId$
|
|
7983
|
+
var id = getId$4();
|
|
8104
7984
|
|
|
8105
7985
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
8106
7986
|
|
|
@@ -8114,27 +7994,27 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8114
7994
|
return cleanUpValue(searchState, {
|
|
8115
7995
|
ais: props.contextValue,
|
|
8116
7996
|
multiIndexContext: props.indexContextValue
|
|
8117
|
-
}, getId$
|
|
7997
|
+
}, getId$4());
|
|
8118
7998
|
},
|
|
8119
7999
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8120
|
-
return searchParameters.setHitsPerPage(getCurrentRefinement$
|
|
8000
|
+
return searchParameters.setHitsPerPage(getCurrentRefinement$1(props, searchState, {
|
|
8121
8001
|
ais: props.contextValue,
|
|
8122
8002
|
multiIndexContext: props.indexContextValue
|
|
8123
8003
|
}));
|
|
8124
8004
|
},
|
|
8125
8005
|
getMetadata: function getMetadata() {
|
|
8126
8006
|
return {
|
|
8127
|
-
id: getId$
|
|
8007
|
+
id: getId$4()
|
|
8128
8008
|
};
|
|
8129
8009
|
}
|
|
8130
8010
|
});
|
|
8131
8011
|
|
|
8132
|
-
function getId$
|
|
8012
|
+
function getId$5() {
|
|
8133
8013
|
return 'page';
|
|
8134
8014
|
}
|
|
8135
8015
|
|
|
8136
|
-
function getCurrentRefinement$
|
|
8137
|
-
var id = getId$
|
|
8016
|
+
function getCurrentRefinement$2(props, searchState, context) {
|
|
8017
|
+
var id = getId$5();
|
|
8138
8018
|
var page = 1;
|
|
8139
8019
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
|
|
8140
8020
|
|
|
@@ -8146,9 +8026,9 @@ function getCurrentRefinement$9(props, searchState, context) {
|
|
|
8146
8026
|
}
|
|
8147
8027
|
|
|
8148
8028
|
function getStateWithoutPage(state) {
|
|
8149
|
-
var _ref = state || {}
|
|
8150
|
-
_ref.page
|
|
8151
|
-
|
|
8029
|
+
var _ref = state || {},
|
|
8030
|
+
page = _ref.page,
|
|
8031
|
+
rest = _objectWithoutProperties(_ref, ["page"]);
|
|
8152
8032
|
|
|
8153
8033
|
return rest;
|
|
8154
8034
|
}
|
|
@@ -8257,14 +8137,14 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8257
8137
|
},
|
|
8258
8138
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8259
8139
|
return searchParameters.setQueryParameters({
|
|
8260
|
-
page: getCurrentRefinement$
|
|
8140
|
+
page: getCurrentRefinement$2(props, searchState, {
|
|
8261
8141
|
ais: props.contextValue,
|
|
8262
8142
|
multiIndexContext: props.indexContextValue
|
|
8263
8143
|
}) - 1
|
|
8264
8144
|
});
|
|
8265
8145
|
},
|
|
8266
8146
|
refine: function refine(props, searchState, event, index) {
|
|
8267
|
-
var id = getId$
|
|
8147
|
+
var id = getId$5();
|
|
8268
8148
|
|
|
8269
8149
|
var nextValue = _defineProperty({}, id, index + 1);
|
|
8270
8150
|
|
|
@@ -8276,14 +8156,14 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8276
8156
|
}
|
|
8277
8157
|
});
|
|
8278
8158
|
|
|
8279
|
-
var namespace$
|
|
8159
|
+
var namespace$2 = 'menu';
|
|
8280
8160
|
|
|
8281
|
-
function getId$
|
|
8161
|
+
function getId$6(props) {
|
|
8282
8162
|
return props.attribute;
|
|
8283
8163
|
}
|
|
8284
8164
|
|
|
8285
|
-
function getCurrentRefinement$
|
|
8286
|
-
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);
|
|
8287
8167
|
|
|
8288
8168
|
if (currentRefinement === '') {
|
|
8289
8169
|
return null;
|
|
@@ -8293,28 +8173,28 @@ function getCurrentRefinement$8(props, searchState, context) {
|
|
|
8293
8173
|
}
|
|
8294
8174
|
|
|
8295
8175
|
function getValue$1(name, props, searchState, context) {
|
|
8296
|
-
var currentRefinement = getCurrentRefinement$
|
|
8176
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, context);
|
|
8297
8177
|
return name === currentRefinement ? '' : name;
|
|
8298
8178
|
}
|
|
8299
8179
|
|
|
8300
|
-
function getLimit
|
|
8180
|
+
function getLimit(_ref) {
|
|
8301
8181
|
var showMore = _ref.showMore,
|
|
8302
8182
|
limit = _ref.limit,
|
|
8303
8183
|
showMoreLimit = _ref.showMoreLimit;
|
|
8304
8184
|
return showMore ? showMoreLimit : limit;
|
|
8305
8185
|
}
|
|
8306
8186
|
|
|
8307
|
-
function _refine$
|
|
8308
|
-
var id = getId$
|
|
8187
|
+
function _refine$2(props, searchState, nextRefinement, context) {
|
|
8188
|
+
var id = getId$6(props);
|
|
8309
8189
|
|
|
8310
8190
|
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8311
8191
|
|
|
8312
8192
|
var resetPage = true;
|
|
8313
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
8193
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$2);
|
|
8314
8194
|
}
|
|
8315
8195
|
|
|
8316
|
-
function _cleanUp$
|
|
8317
|
-
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)));
|
|
8318
8198
|
}
|
|
8319
8199
|
|
|
8320
8200
|
var defaultSortBy = ['count:desc', 'name:asc'];
|
|
@@ -8373,7 +8253,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8373
8253
|
if (!canRefine) {
|
|
8374
8254
|
return {
|
|
8375
8255
|
items: [],
|
|
8376
|
-
currentRefinement: getCurrentRefinement$
|
|
8256
|
+
currentRefinement: getCurrentRefinement$3(props, searchState, {
|
|
8377
8257
|
ais: props.contextValue,
|
|
8378
8258
|
multiIndexContext: props.indexContextValue
|
|
8379
8259
|
}),
|
|
@@ -8420,8 +8300,8 @@ var connectMenu = createConnectorWithContext({
|
|
|
8420
8300
|
|
|
8421
8301
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
8422
8302
|
return {
|
|
8423
|
-
items: transformedItems.slice(0, getLimit
|
|
8424
|
-
currentRefinement: getCurrentRefinement$
|
|
8303
|
+
items: transformedItems.slice(0, getLimit(props)),
|
|
8304
|
+
currentRefinement: getCurrentRefinement$3(props, searchState, {
|
|
8425
8305
|
ais: props.contextValue,
|
|
8426
8306
|
multiIndexContext: props.indexContextValue
|
|
8427
8307
|
}),
|
|
@@ -8431,7 +8311,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8431
8311
|
};
|
|
8432
8312
|
},
|
|
8433
8313
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8434
|
-
return _refine$
|
|
8314
|
+
return _refine$2(props, searchState, nextRefinement, {
|
|
8435
8315
|
ais: props.contextValue,
|
|
8436
8316
|
multiIndexContext: props.indexContextValue
|
|
8437
8317
|
});
|
|
@@ -8440,11 +8320,11 @@ var connectMenu = createConnectorWithContext({
|
|
|
8440
8320
|
return {
|
|
8441
8321
|
facetName: props.attribute,
|
|
8442
8322
|
query: nextRefinement,
|
|
8443
|
-
maxFacetHits: getLimit
|
|
8323
|
+
maxFacetHits: getLimit(props)
|
|
8444
8324
|
};
|
|
8445
8325
|
},
|
|
8446
8326
|
cleanUp: function cleanUp(props, searchState) {
|
|
8447
|
-
return _cleanUp$
|
|
8327
|
+
return _cleanUp$1(props, searchState, {
|
|
8448
8328
|
ais: props.contextValue,
|
|
8449
8329
|
multiIndexContext: props.indexContextValue
|
|
8450
8330
|
});
|
|
@@ -8452,10 +8332,10 @@ var connectMenu = createConnectorWithContext({
|
|
|
8452
8332
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8453
8333
|
var attribute = props.attribute;
|
|
8454
8334
|
searchParameters = searchParameters.setQueryParameters({
|
|
8455
|
-
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit
|
|
8335
|
+
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
|
|
8456
8336
|
});
|
|
8457
8337
|
searchParameters = searchParameters.addDisjunctiveFacet(attribute);
|
|
8458
|
-
var currentRefinement = getCurrentRefinement$
|
|
8338
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, {
|
|
8459
8339
|
ais: props.contextValue,
|
|
8460
8340
|
multiIndexContext: props.indexContextValue
|
|
8461
8341
|
});
|
|
@@ -8467,8 +8347,8 @@ var connectMenu = createConnectorWithContext({
|
|
|
8467
8347
|
return searchParameters;
|
|
8468
8348
|
},
|
|
8469
8349
|
getMetadata: function getMetadata(props, searchState) {
|
|
8470
|
-
var id = getId$
|
|
8471
|
-
var currentRefinement = getCurrentRefinement$
|
|
8350
|
+
var id = getId$6(props);
|
|
8351
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, {
|
|
8472
8352
|
ais: props.contextValue,
|
|
8473
8353
|
multiIndexContext: props.indexContextValue
|
|
8474
8354
|
});
|
|
@@ -8482,7 +8362,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8482
8362
|
label: "".concat(props.attribute, ": ").concat(currentRefinement),
|
|
8483
8363
|
attribute: props.attribute,
|
|
8484
8364
|
value: function value(nextState) {
|
|
8485
|
-
return _refine$
|
|
8365
|
+
return _refine$2(props, nextState, '', {
|
|
8486
8366
|
ais: props.contextValue,
|
|
8487
8367
|
multiIndexContext: props.indexContextValue
|
|
8488
8368
|
});
|
|
@@ -8498,7 +8378,10 @@ function _arrayWithHoles(arr) {
|
|
|
8498
8378
|
}
|
|
8499
8379
|
|
|
8500
8380
|
function _iterableToArrayLimit(arr, i) {
|
|
8501
|
-
if (
|
|
8381
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
8382
|
+
return;
|
|
8383
|
+
}
|
|
8384
|
+
|
|
8502
8385
|
var _arr = [];
|
|
8503
8386
|
var _n = true;
|
|
8504
8387
|
var _d = false;
|
|
@@ -8525,11 +8408,11 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
8525
8408
|
}
|
|
8526
8409
|
|
|
8527
8410
|
function _nonIterableRest() {
|
|
8528
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8411
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
8529
8412
|
}
|
|
8530
8413
|
|
|
8531
8414
|
function _slicedToArray(arr, i) {
|
|
8532
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
8415
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
8533
8416
|
}
|
|
8534
8417
|
|
|
8535
8418
|
function stringifyItem(item) {
|
|
@@ -8563,12 +8446,12 @@ function parseItem(value) {
|
|
|
8563
8446
|
|
|
8564
8447
|
var namespace$3 = 'multiRange';
|
|
8565
8448
|
|
|
8566
|
-
function getId$
|
|
8449
|
+
function getId$7(props) {
|
|
8567
8450
|
return props.attribute;
|
|
8568
8451
|
}
|
|
8569
8452
|
|
|
8570
|
-
function getCurrentRefinement$
|
|
8571
|
-
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)), '');
|
|
8572
8455
|
}
|
|
8573
8456
|
|
|
8574
8457
|
function isRefinementsRangeIncludesInsideItemRange(stats, start, end) {
|
|
@@ -8587,15 +8470,15 @@ function itemHasRefinement(attribute, results, value) {
|
|
|
8587
8470
|
return !(Boolean(stats) && (isRefinementsRangeIncludesInsideItemRange(stats, start, end) || isItemRangeIncludedInsideRefinementsRange(stats, start, end)));
|
|
8588
8471
|
}
|
|
8589
8472
|
|
|
8590
|
-
function _refine$
|
|
8591
|
-
var nextValue = _defineProperty({}, getId$
|
|
8473
|
+
function _refine$3(props, searchState, nextRefinement, context) {
|
|
8474
|
+
var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
|
|
8592
8475
|
|
|
8593
8476
|
var resetPage = true;
|
|
8594
8477
|
return refineValue(searchState, nextValue, context, resetPage, namespace$3);
|
|
8595
8478
|
}
|
|
8596
8479
|
|
|
8597
|
-
function _cleanUp$
|
|
8598
|
-
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)));
|
|
8599
8482
|
}
|
|
8600
8483
|
/**
|
|
8601
8484
|
* connectNumericMenu connector provides the logic to build a widget that will
|
|
@@ -8629,7 +8512,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8629
8512
|
},
|
|
8630
8513
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
8631
8514
|
var attribute = props.attribute;
|
|
8632
|
-
var currentRefinement = getCurrentRefinement$
|
|
8515
|
+
var currentRefinement = getCurrentRefinement$4(props, searchState, {
|
|
8633
8516
|
ais: props.contextValue,
|
|
8634
8517
|
multiIndexContext: props.indexContextValue
|
|
8635
8518
|
});
|
|
@@ -8643,11 +8526,11 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8643
8526
|
label: item.label,
|
|
8644
8527
|
value: value,
|
|
8645
8528
|
isRefined: value === currentRefinement,
|
|
8646
|
-
noRefinement: results ? itemHasRefinement(getId$
|
|
8529
|
+
noRefinement: results ? itemHasRefinement(getId$7(props), results, value) : false
|
|
8647
8530
|
};
|
|
8648
8531
|
});
|
|
8649
8532
|
var stats = results && results.getFacetByName(attribute) ? results.getFacetStats(attribute) : null;
|
|
8650
|
-
var refinedItem = find
|
|
8533
|
+
var refinedItem = find(items, function (item) {
|
|
8651
8534
|
return item.isRefined === true;
|
|
8652
8535
|
});
|
|
8653
8536
|
|
|
@@ -8672,13 +8555,13 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8672
8555
|
};
|
|
8673
8556
|
},
|
|
8674
8557
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8675
|
-
return _refine$
|
|
8558
|
+
return _refine$3(props, searchState, nextRefinement, {
|
|
8676
8559
|
ais: props.contextValue,
|
|
8677
8560
|
multiIndexContext: props.indexContextValue
|
|
8678
8561
|
});
|
|
8679
8562
|
},
|
|
8680
8563
|
cleanUp: function cleanUp(props, searchState) {
|
|
8681
|
-
return _cleanUp$
|
|
8564
|
+
return _cleanUp$2(props, searchState, {
|
|
8682
8565
|
ais: props.contextValue,
|
|
8683
8566
|
multiIndexContext: props.indexContextValue
|
|
8684
8567
|
});
|
|
@@ -8686,7 +8569,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8686
8569
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8687
8570
|
var attribute = props.attribute;
|
|
8688
8571
|
|
|
8689
|
-
var _parseItem = parseItem(getCurrentRefinement$
|
|
8572
|
+
var _parseItem = parseItem(getCurrentRefinement$4(props, searchState, {
|
|
8690
8573
|
ais: props.contextValue,
|
|
8691
8574
|
multiIndexContext: props.indexContextValue
|
|
8692
8575
|
})),
|
|
@@ -8706,8 +8589,8 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8706
8589
|
return searchParameters;
|
|
8707
8590
|
},
|
|
8708
8591
|
getMetadata: function getMetadata(props, searchState) {
|
|
8709
|
-
var id = getId$
|
|
8710
|
-
var value = getCurrentRefinement$
|
|
8592
|
+
var id = getId$7(props);
|
|
8593
|
+
var value = getCurrentRefinement$4(props, searchState, {
|
|
8711
8594
|
ais: props.contextValue,
|
|
8712
8595
|
multiIndexContext: props.indexContextValue
|
|
8713
8596
|
});
|
|
@@ -8718,7 +8601,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8718
8601
|
});
|
|
8719
8602
|
|
|
8720
8603
|
if (value !== '') {
|
|
8721
|
-
var _find = find
|
|
8604
|
+
var _find = find(props.items, function (item) {
|
|
8722
8605
|
return stringifyItem(item) === value;
|
|
8723
8606
|
}),
|
|
8724
8607
|
label = _find.label;
|
|
@@ -8728,7 +8611,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8728
8611
|
attribute: props.attribute,
|
|
8729
8612
|
currentRefinement: label,
|
|
8730
8613
|
value: function value(nextState) {
|
|
8731
|
-
return _refine$
|
|
8614
|
+
return _refine$3(props, nextState, '', {
|
|
8732
8615
|
ais: props.contextValue,
|
|
8733
8616
|
multiIndexContext: props.indexContextValue
|
|
8734
8617
|
});
|
|
@@ -8744,12 +8627,12 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8744
8627
|
}
|
|
8745
8628
|
});
|
|
8746
8629
|
|
|
8747
|
-
function getId$
|
|
8630
|
+
function getId$8() {
|
|
8748
8631
|
return 'page';
|
|
8749
8632
|
}
|
|
8750
8633
|
|
|
8751
|
-
function getCurrentRefinement$
|
|
8752
|
-
var id = getId$
|
|
8634
|
+
function getCurrentRefinement$5(props, searchState, context) {
|
|
8635
|
+
var id = getId$8();
|
|
8753
8636
|
var page = 1;
|
|
8754
8637
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
|
|
8755
8638
|
|
|
@@ -8760,8 +8643,8 @@ function getCurrentRefinement$6(props, searchState, context) {
|
|
|
8760
8643
|
return currentRefinement;
|
|
8761
8644
|
}
|
|
8762
8645
|
|
|
8763
|
-
function _refine$
|
|
8764
|
-
var id = getId$
|
|
8646
|
+
function _refine$4(props, searchState, nextPage, context) {
|
|
8647
|
+
var id = getId$8();
|
|
8765
8648
|
|
|
8766
8649
|
var nextValue = _defineProperty({}, id, nextPage);
|
|
8767
8650
|
|
|
@@ -8801,7 +8684,7 @@ var connectPagination = createConnectorWithContext({
|
|
|
8801
8684
|
var nbPages = results.nbPages;
|
|
8802
8685
|
return {
|
|
8803
8686
|
nbPages: nbPages,
|
|
8804
|
-
currentRefinement: getCurrentRefinement$
|
|
8687
|
+
currentRefinement: getCurrentRefinement$5(props, searchState, {
|
|
8805
8688
|
ais: props.contextValue,
|
|
8806
8689
|
multiIndexContext: props.indexContextValue
|
|
8807
8690
|
}),
|
|
@@ -8809,7 +8692,7 @@ var connectPagination = createConnectorWithContext({
|
|
|
8809
8692
|
};
|
|
8810
8693
|
},
|
|
8811
8694
|
refine: function refine(props, searchState, nextPage) {
|
|
8812
|
-
return _refine$
|
|
8695
|
+
return _refine$4(props, searchState, nextPage, {
|
|
8813
8696
|
ais: props.contextValue,
|
|
8814
8697
|
multiIndexContext: props.indexContextValue
|
|
8815
8698
|
});
|
|
@@ -8818,17 +8701,17 @@ var connectPagination = createConnectorWithContext({
|
|
|
8818
8701
|
return cleanUpValue(searchState, {
|
|
8819
8702
|
ais: props.contextValue,
|
|
8820
8703
|
multiIndexContext: props.indexContextValue
|
|
8821
|
-
}, getId$
|
|
8704
|
+
}, getId$8());
|
|
8822
8705
|
},
|
|
8823
8706
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8824
|
-
return searchParameters.setPage(getCurrentRefinement$
|
|
8707
|
+
return searchParameters.setPage(getCurrentRefinement$5(props, searchState, {
|
|
8825
8708
|
ais: props.contextValue,
|
|
8826
8709
|
multiIndexContext: props.indexContextValue
|
|
8827
8710
|
}) - 1);
|
|
8828
8711
|
},
|
|
8829
8712
|
getMetadata: function getMetadata() {
|
|
8830
8713
|
return {
|
|
8831
|
-
id: getId$
|
|
8714
|
+
id: getId$8()
|
|
8832
8715
|
};
|
|
8833
8716
|
}
|
|
8834
8717
|
});
|
|
@@ -8874,11 +8757,11 @@ var connectPoweredBy = createConnectorWithContext({
|
|
|
8874
8757
|
* @providedPropType {number} precision - Number of digits after decimal point to use.
|
|
8875
8758
|
*/
|
|
8876
8759
|
|
|
8877
|
-
function getId$
|
|
8760
|
+
function getId$9(props) {
|
|
8878
8761
|
return props.attribute;
|
|
8879
8762
|
}
|
|
8880
8763
|
|
|
8881
|
-
var namespace$
|
|
8764
|
+
var namespace$4 = 'range';
|
|
8882
8765
|
|
|
8883
8766
|
function getCurrentRange(boundaries, stats, precision) {
|
|
8884
8767
|
var pow = Math.pow(10, precision);
|
|
@@ -8908,8 +8791,8 @@ function getCurrentRange(boundaries, stats, precision) {
|
|
|
8908
8791
|
};
|
|
8909
8792
|
}
|
|
8910
8793
|
|
|
8911
|
-
function getCurrentRefinement$
|
|
8912
|
-
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)), {}),
|
|
8913
8796
|
min = _getCurrentRefinement.min,
|
|
8914
8797
|
max = _getCurrentRefinement.max;
|
|
8915
8798
|
|
|
@@ -8975,7 +8858,7 @@ function nextValueForRefinement(hasBound, isReset, range, value) {
|
|
|
8975
8858
|
return next;
|
|
8976
8859
|
}
|
|
8977
8860
|
|
|
8978
|
-
function _refine$
|
|
8861
|
+
function _refine$5(props, searchState, nextRefinement, currentRange, context) {
|
|
8979
8862
|
var nextMin = nextRefinement.min,
|
|
8980
8863
|
nextMax = nextRefinement.max;
|
|
8981
8864
|
var currentMinRange = currentRange.min,
|
|
@@ -8999,7 +8882,7 @@ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
|
|
|
8999
8882
|
throw Error("You can't provide max value greater than range.");
|
|
9000
8883
|
}
|
|
9001
8884
|
|
|
9002
|
-
var id = getId$
|
|
8885
|
+
var id = getId$9(props);
|
|
9003
8886
|
var resetPage = true;
|
|
9004
8887
|
|
|
9005
8888
|
var nextValue = _defineProperty({}, id, {
|
|
@@ -9007,11 +8890,11 @@ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
|
|
|
9007
8890
|
max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
|
|
9008
8891
|
});
|
|
9009
8892
|
|
|
9010
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
8893
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$4);
|
|
9011
8894
|
}
|
|
9012
8895
|
|
|
9013
|
-
function _cleanUp$
|
|
9014
|
-
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)));
|
|
9015
8898
|
}
|
|
9016
8899
|
|
|
9017
8900
|
var connectRange = createConnectorWithContext({
|
|
@@ -9066,7 +8949,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9066
8949
|
min: rangeMin,
|
|
9067
8950
|
max: rangeMax
|
|
9068
8951
|
};
|
|
9069
|
-
var currentRefinement = getCurrentRefinement$
|
|
8952
|
+
var currentRefinement = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9070
8953
|
ais: props.contextValue,
|
|
9071
8954
|
multiIndexContext: props.indexContextValue
|
|
9072
8955
|
});
|
|
@@ -9080,13 +8963,13 @@ var connectRange = createConnectorWithContext({
|
|
|
9080
8963
|
};
|
|
9081
8964
|
},
|
|
9082
8965
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9083
|
-
return _refine$
|
|
8966
|
+
return _refine$5(props, searchState, nextRefinement, this._currentRange, {
|
|
9084
8967
|
ais: props.contextValue,
|
|
9085
8968
|
multiIndexContext: props.indexContextValue
|
|
9086
8969
|
});
|
|
9087
8970
|
},
|
|
9088
8971
|
cleanUp: function cleanUp(props, searchState) {
|
|
9089
|
-
return _cleanUp$
|
|
8972
|
+
return _cleanUp$3(props, searchState, {
|
|
9090
8973
|
ais: props.contextValue,
|
|
9091
8974
|
multiIndexContext: props.indexContextValue
|
|
9092
8975
|
});
|
|
@@ -9094,7 +8977,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9094
8977
|
getSearchParameters: function getSearchParameters(params, props, searchState) {
|
|
9095
8978
|
var attribute = props.attribute;
|
|
9096
8979
|
|
|
9097
|
-
var _getCurrentRefinement2 = getCurrentRefinement$
|
|
8980
|
+
var _getCurrentRefinement2 = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9098
8981
|
ais: props.contextValue,
|
|
9099
8982
|
multiIndexContext: props.indexContextValue
|
|
9100
8983
|
}),
|
|
@@ -9120,7 +9003,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9120
9003
|
minRange = _this$_currentRange.min,
|
|
9121
9004
|
maxRange = _this$_currentRange.max;
|
|
9122
9005
|
|
|
9123
|
-
var _getCurrentRefinement3 = getCurrentRefinement$
|
|
9006
|
+
var _getCurrentRefinement3 = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9124
9007
|
ais: props.contextValue,
|
|
9125
9008
|
multiIndexContext: props.indexContextValue
|
|
9126
9009
|
}),
|
|
@@ -9139,7 +9022,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9139
9022
|
label: fragments.join(''),
|
|
9140
9023
|
attribute: props.attribute,
|
|
9141
9024
|
value: function value(nextState) {
|
|
9142
|
-
return _refine$
|
|
9025
|
+
return _refine$5(props, nextState, {}, _this._currentRange, {
|
|
9143
9026
|
ais: props.contextValue,
|
|
9144
9027
|
multiIndexContext: props.indexContextValue
|
|
9145
9028
|
});
|
|
@@ -9155,7 +9038,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9155
9038
|
}
|
|
9156
9039
|
|
|
9157
9040
|
return {
|
|
9158
|
-
id: getId$
|
|
9041
|
+
id: getId$9(props),
|
|
9159
9042
|
index: getIndexId({
|
|
9160
9043
|
ais: props.contextValue,
|
|
9161
9044
|
multiIndexContext: props.indexContextValue
|
|
@@ -9165,14 +9048,14 @@ var connectRange = createConnectorWithContext({
|
|
|
9165
9048
|
}
|
|
9166
9049
|
});
|
|
9167
9050
|
|
|
9168
|
-
var namespace$
|
|
9051
|
+
var namespace$5 = 'refinementList';
|
|
9169
9052
|
|
|
9170
|
-
function getId$
|
|
9053
|
+
function getId$a(props) {
|
|
9171
9054
|
return props.attribute;
|
|
9172
9055
|
}
|
|
9173
9056
|
|
|
9174
|
-
function getCurrentRefinement$
|
|
9175
|
-
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)), []);
|
|
9176
9059
|
|
|
9177
9060
|
if (typeof currentRefinement !== 'string') {
|
|
9178
9061
|
return currentRefinement;
|
|
@@ -9185,8 +9068,8 @@ function getCurrentRefinement$4(props, searchState, context) {
|
|
|
9185
9068
|
return [];
|
|
9186
9069
|
}
|
|
9187
9070
|
|
|
9188
|
-
function getValue(name, props, searchState, context) {
|
|
9189
|
-
var currentRefinement = getCurrentRefinement$
|
|
9071
|
+
function getValue$2(name, props, searchState, context) {
|
|
9072
|
+
var currentRefinement = getCurrentRefinement$7(props, searchState, context);
|
|
9190
9073
|
var isAnewValue = currentRefinement.indexOf(name) === -1;
|
|
9191
9074
|
var nextRefinement = isAnewValue ? currentRefinement.concat([name]) // cannot use .push(), it mutates
|
|
9192
9075
|
: currentRefinement.filter(function (selectedValue) {
|
|
@@ -9196,15 +9079,15 @@ function getValue(name, props, searchState, context) {
|
|
|
9196
9079
|
return nextRefinement;
|
|
9197
9080
|
}
|
|
9198
9081
|
|
|
9199
|
-
function getLimit(_ref) {
|
|
9082
|
+
function getLimit$1(_ref) {
|
|
9200
9083
|
var showMore = _ref.showMore,
|
|
9201
9084
|
limit = _ref.limit,
|
|
9202
9085
|
showMoreLimit = _ref.showMoreLimit;
|
|
9203
9086
|
return showMore ? showMoreLimit : limit;
|
|
9204
9087
|
}
|
|
9205
9088
|
|
|
9206
|
-
function _refine$
|
|
9207
|
-
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
|
|
9208
9091
|
// the URL as an empty value.
|
|
9209
9092
|
// This is necessary in the case where `defaultRefinement` contains one
|
|
9210
9093
|
// item and we try to deselect it. `nextSelected` would be an empty array,
|
|
@@ -9215,11 +9098,11 @@ function _refine$3(props, searchState, nextRefinement, context) {
|
|
|
9215
9098
|
var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9216
9099
|
|
|
9217
9100
|
var resetPage = true;
|
|
9218
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
9101
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$5);
|
|
9219
9102
|
}
|
|
9220
9103
|
|
|
9221
|
-
function _cleanUp$
|
|
9222
|
-
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)));
|
|
9223
9106
|
}
|
|
9224
9107
|
/**
|
|
9225
9108
|
* connectRefinementList connector provides the logic to build a widget that will
|
|
@@ -9246,7 +9129,7 @@ function _cleanUp$3(props, searchState, context) {
|
|
|
9246
9129
|
*/
|
|
9247
9130
|
|
|
9248
9131
|
|
|
9249
|
-
var sortBy = ['isRefined', 'count:desc', 'name:asc'];
|
|
9132
|
+
var sortBy$1 = ['isRefined', 'count:desc', 'name:asc'];
|
|
9250
9133
|
var connectRefinementList = createConnectorWithContext({
|
|
9251
9134
|
displayName: 'AlgoliaRefinementList',
|
|
9252
9135
|
propTypes: {
|
|
@@ -9284,7 +9167,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9284
9167
|
if (!canRefine) {
|
|
9285
9168
|
return {
|
|
9286
9169
|
items: [],
|
|
9287
|
-
currentRefinement: getCurrentRefinement$
|
|
9170
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, {
|
|
9288
9171
|
ais: props.contextValue,
|
|
9289
9172
|
multiIndexContext: props.indexContextValue
|
|
9290
9173
|
}),
|
|
@@ -9297,7 +9180,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9297
9180
|
var items = isFromSearch ? searchForFacetValuesResults[attribute].map(function (v) {
|
|
9298
9181
|
return {
|
|
9299
9182
|
label: v.value,
|
|
9300
|
-
value: getValue(v.value, props, searchState, {
|
|
9183
|
+
value: getValue$2(v.value, props, searchState, {
|
|
9301
9184
|
ais: props.contextValue,
|
|
9302
9185
|
multiIndexContext: props.indexContextValue
|
|
9303
9186
|
}),
|
|
@@ -9310,11 +9193,11 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9310
9193
|
isRefined: v.isRefined
|
|
9311
9194
|
};
|
|
9312
9195
|
}) : results.getFacetValues(attribute, {
|
|
9313
|
-
sortBy: sortBy
|
|
9196
|
+
sortBy: sortBy$1
|
|
9314
9197
|
}).map(function (v) {
|
|
9315
9198
|
return {
|
|
9316
9199
|
label: v.name,
|
|
9317
|
-
value: getValue(v.name, props, searchState, {
|
|
9200
|
+
value: getValue$2(v.name, props, searchState, {
|
|
9318
9201
|
ais: props.contextValue,
|
|
9319
9202
|
multiIndexContext: props.indexContextValue
|
|
9320
9203
|
}),
|
|
@@ -9324,8 +9207,8 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9324
9207
|
});
|
|
9325
9208
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
9326
9209
|
return {
|
|
9327
|
-
items: transformedItems.slice(0, getLimit(props)),
|
|
9328
|
-
currentRefinement: getCurrentRefinement$
|
|
9210
|
+
items: transformedItems.slice(0, getLimit$1(props)),
|
|
9211
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, {
|
|
9329
9212
|
ais: props.contextValue,
|
|
9330
9213
|
multiIndexContext: props.indexContextValue
|
|
9331
9214
|
}),
|
|
@@ -9335,7 +9218,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9335
9218
|
};
|
|
9336
9219
|
},
|
|
9337
9220
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9338
|
-
return _refine$
|
|
9221
|
+
return _refine$6(props, searchState, nextRefinement, {
|
|
9339
9222
|
ais: props.contextValue,
|
|
9340
9223
|
multiIndexContext: props.indexContextValue
|
|
9341
9224
|
});
|
|
@@ -9344,11 +9227,11 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9344
9227
|
return {
|
|
9345
9228
|
facetName: props.attribute,
|
|
9346
9229
|
query: nextRefinement,
|
|
9347
|
-
maxFacetHits: getLimit(props)
|
|
9230
|
+
maxFacetHits: getLimit$1(props)
|
|
9348
9231
|
};
|
|
9349
9232
|
},
|
|
9350
9233
|
cleanUp: function cleanUp(props, searchState) {
|
|
9351
|
-
return _cleanUp$
|
|
9234
|
+
return _cleanUp$4(props, searchState, {
|
|
9352
9235
|
ais: props.contextValue,
|
|
9353
9236
|
multiIndexContext: props.indexContextValue
|
|
9354
9237
|
});
|
|
@@ -9359,10 +9242,10 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9359
9242
|
var addKey = operator === 'and' ? 'addFacet' : 'addDisjunctiveFacet';
|
|
9360
9243
|
var addRefinementKey = "".concat(addKey, "Refinement");
|
|
9361
9244
|
searchParameters = searchParameters.setQueryParameters({
|
|
9362
|
-
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
|
|
9245
|
+
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit$1(props))
|
|
9363
9246
|
});
|
|
9364
9247
|
searchParameters = searchParameters[addKey](attribute);
|
|
9365
|
-
return getCurrentRefinement$
|
|
9248
|
+
return getCurrentRefinement$7(props, searchState, {
|
|
9366
9249
|
ais: props.contextValue,
|
|
9367
9250
|
multiIndexContext: props.indexContextValue
|
|
9368
9251
|
}).reduce(function (res, val) {
|
|
@@ -9370,7 +9253,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9370
9253
|
}, searchParameters);
|
|
9371
9254
|
},
|
|
9372
9255
|
getMetadata: function getMetadata(props, searchState) {
|
|
9373
|
-
var id = getId$
|
|
9256
|
+
var id = getId$a(props);
|
|
9374
9257
|
var context = {
|
|
9375
9258
|
ais: props.contextValue,
|
|
9376
9259
|
multiIndexContext: props.indexContextValue
|
|
@@ -9378,21 +9261,21 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9378
9261
|
return {
|
|
9379
9262
|
id: id,
|
|
9380
9263
|
index: getIndexId(context),
|
|
9381
|
-
items: getCurrentRefinement$
|
|
9264
|
+
items: getCurrentRefinement$7(props, searchState, context).length > 0 ? [{
|
|
9382
9265
|
attribute: props.attribute,
|
|
9383
9266
|
label: "".concat(props.attribute, ": "),
|
|
9384
|
-
currentRefinement: getCurrentRefinement$
|
|
9267
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, context),
|
|
9385
9268
|
value: function value(nextState) {
|
|
9386
|
-
return _refine$
|
|
9269
|
+
return _refine$6(props, nextState, [], context);
|
|
9387
9270
|
},
|
|
9388
|
-
items: getCurrentRefinement$
|
|
9271
|
+
items: getCurrentRefinement$7(props, searchState, context).map(function (item) {
|
|
9389
9272
|
return {
|
|
9390
9273
|
label: "".concat(item),
|
|
9391
9274
|
value: function value(nextState) {
|
|
9392
|
-
var nextSelectedItems = getCurrentRefinement$
|
|
9275
|
+
var nextSelectedItems = getCurrentRefinement$7(props, nextState, context).filter(function (other) {
|
|
9393
9276
|
return other !== item;
|
|
9394
9277
|
});
|
|
9395
|
-
return _refine$
|
|
9278
|
+
return _refine$6(props, searchState, nextSelectedItems, context);
|
|
9396
9279
|
}
|
|
9397
9280
|
};
|
|
9398
9281
|
})
|
|
@@ -9451,7 +9334,7 @@ var connectScrollTo = createConnectorWithContext({
|
|
|
9451
9334
|
// See: https://github.com/algolia/react-instantsearch/issues/164
|
|
9452
9335
|
|
|
9453
9336
|
|
|
9454
|
-
var cleanedSearchState = omit
|
|
9337
|
+
var cleanedSearchState = omit(searchState, ['configure', id]);
|
|
9455
9338
|
var hasNotChanged = shallowEqual(this._prevSearchState, cleanedSearchState);
|
|
9456
9339
|
this._prevSearchState = cleanedSearchState;
|
|
9457
9340
|
return {
|
|
@@ -9461,12 +9344,12 @@ var connectScrollTo = createConnectorWithContext({
|
|
|
9461
9344
|
}
|
|
9462
9345
|
});
|
|
9463
9346
|
|
|
9464
|
-
function getId$
|
|
9347
|
+
function getId$b() {
|
|
9465
9348
|
return 'query';
|
|
9466
9349
|
}
|
|
9467
9350
|
|
|
9468
|
-
function getCurrentRefinement$
|
|
9469
|
-
var id = getId$
|
|
9351
|
+
function getCurrentRefinement$8(props, searchState, context) {
|
|
9352
|
+
var id = getId$b();
|
|
9470
9353
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
|
|
9471
9354
|
|
|
9472
9355
|
if (currentRefinement) {
|
|
@@ -9476,8 +9359,8 @@ function getCurrentRefinement$3(props, searchState, context) {
|
|
|
9476
9359
|
return '';
|
|
9477
9360
|
}
|
|
9478
9361
|
|
|
9479
|
-
function _refine$
|
|
9480
|
-
var id = getId$
|
|
9362
|
+
function _refine$7(props, searchState, nextRefinement, context) {
|
|
9363
|
+
var id = getId$b();
|
|
9481
9364
|
|
|
9482
9365
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9483
9366
|
|
|
@@ -9485,8 +9368,8 @@ function _refine$2(props, searchState, nextRefinement, context) {
|
|
|
9485
9368
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9486
9369
|
}
|
|
9487
9370
|
|
|
9488
|
-
function _cleanUp$
|
|
9489
|
-
return cleanUpValue(searchState, context, getId$
|
|
9371
|
+
function _cleanUp$5(props, searchState, context) {
|
|
9372
|
+
return cleanUpValue(searchState, context, getId$b());
|
|
9490
9373
|
}
|
|
9491
9374
|
/**
|
|
9492
9375
|
* connectSearchBox connector provides the logic to build a widget that will
|
|
@@ -9507,7 +9390,7 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9507
9390
|
},
|
|
9508
9391
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9509
9392
|
return {
|
|
9510
|
-
currentRefinement: getCurrentRefinement$
|
|
9393
|
+
currentRefinement: getCurrentRefinement$8(props, searchState, {
|
|
9511
9394
|
ais: props.contextValue,
|
|
9512
9395
|
multiIndexContext: props.indexContextValue
|
|
9513
9396
|
}),
|
|
@@ -9515,26 +9398,26 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9515
9398
|
};
|
|
9516
9399
|
},
|
|
9517
9400
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9518
|
-
return _refine$
|
|
9401
|
+
return _refine$7(props, searchState, nextRefinement, {
|
|
9519
9402
|
ais: props.contextValue,
|
|
9520
9403
|
multiIndexContext: props.indexContextValue
|
|
9521
9404
|
});
|
|
9522
9405
|
},
|
|
9523
9406
|
cleanUp: function cleanUp(props, searchState) {
|
|
9524
|
-
return _cleanUp$
|
|
9407
|
+
return _cleanUp$5(props, searchState, {
|
|
9525
9408
|
ais: props.contextValue,
|
|
9526
9409
|
multiIndexContext: props.indexContextValue
|
|
9527
9410
|
});
|
|
9528
9411
|
},
|
|
9529
9412
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9530
|
-
return searchParameters.setQuery(getCurrentRefinement$
|
|
9413
|
+
return searchParameters.setQuery(getCurrentRefinement$8(props, searchState, {
|
|
9531
9414
|
ais: props.contextValue,
|
|
9532
9415
|
multiIndexContext: props.indexContextValue
|
|
9533
9416
|
}));
|
|
9534
9417
|
},
|
|
9535
9418
|
getMetadata: function getMetadata(props, searchState) {
|
|
9536
|
-
var id = getId$
|
|
9537
|
-
var currentRefinement = getCurrentRefinement$
|
|
9419
|
+
var id = getId$b();
|
|
9420
|
+
var currentRefinement = getCurrentRefinement$8(props, searchState, {
|
|
9538
9421
|
ais: props.contextValue,
|
|
9539
9422
|
multiIndexContext: props.indexContextValue
|
|
9540
9423
|
});
|
|
@@ -9547,7 +9430,7 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9547
9430
|
items: currentRefinement === null ? [] : [{
|
|
9548
9431
|
label: "".concat(id, ": ").concat(currentRefinement),
|
|
9549
9432
|
value: function value(nextState) {
|
|
9550
|
-
return _refine$
|
|
9433
|
+
return _refine$7(props, nextState, '', {
|
|
9551
9434
|
ais: props.contextValue,
|
|
9552
9435
|
multiIndexContext: props.indexContextValue
|
|
9553
9436
|
});
|
|
@@ -9558,12 +9441,12 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9558
9441
|
}
|
|
9559
9442
|
});
|
|
9560
9443
|
|
|
9561
|
-
function getId$
|
|
9444
|
+
function getId$c() {
|
|
9562
9445
|
return 'relevancyStrictness';
|
|
9563
9446
|
}
|
|
9564
9447
|
|
|
9565
|
-
function getCurrentRefinement$
|
|
9566
|
-
var id = getId$
|
|
9448
|
+
function getCurrentRefinement$9(props, searchState, context) {
|
|
9449
|
+
var id = getId$c();
|
|
9567
9450
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id);
|
|
9568
9451
|
return currentRefinement;
|
|
9569
9452
|
}
|
|
@@ -9589,13 +9472,13 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9589
9472
|
};
|
|
9590
9473
|
},
|
|
9591
9474
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9592
|
-
return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$
|
|
9475
|
+
return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$9(props, searchState, {
|
|
9593
9476
|
ais: props.contextValue,
|
|
9594
9477
|
multiIndexContext: props.indexContextValue
|
|
9595
9478
|
}));
|
|
9596
9479
|
},
|
|
9597
9480
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9598
|
-
var nextValue = _defineProperty({}, getId$
|
|
9481
|
+
var nextValue = _defineProperty({}, getId$c(), nextRefinement);
|
|
9599
9482
|
|
|
9600
9483
|
var resetPage = true;
|
|
9601
9484
|
return refineValue(searchState, nextValue, {
|
|
@@ -9605,12 +9488,12 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9605
9488
|
}
|
|
9606
9489
|
});
|
|
9607
9490
|
|
|
9608
|
-
function getId$
|
|
9491
|
+
function getId$d() {
|
|
9609
9492
|
return 'sortBy';
|
|
9610
9493
|
}
|
|
9611
9494
|
|
|
9612
|
-
function getCurrentRefinement$
|
|
9613
|
-
var id = getId$
|
|
9495
|
+
function getCurrentRefinement$a(props, searchState, context) {
|
|
9496
|
+
var id = getId$d();
|
|
9614
9497
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
|
|
9615
9498
|
|
|
9616
9499
|
if (currentRefinement) {
|
|
@@ -9647,7 +9530,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9647
9530
|
transformItems: PropTypes.func
|
|
9648
9531
|
},
|
|
9649
9532
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
9650
|
-
var currentRefinement = getCurrentRefinement$
|
|
9533
|
+
var currentRefinement = getCurrentRefinement$a(props, searchState, {
|
|
9651
9534
|
ais: props.contextValue,
|
|
9652
9535
|
multiIndexContext: props.indexContextValue
|
|
9653
9536
|
});
|
|
@@ -9664,7 +9547,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9664
9547
|
};
|
|
9665
9548
|
},
|
|
9666
9549
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9667
|
-
var id = getId$
|
|
9550
|
+
var id = getId$d();
|
|
9668
9551
|
|
|
9669
9552
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9670
9553
|
|
|
@@ -9678,10 +9561,10 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9678
9561
|
return cleanUpValue(searchState, {
|
|
9679
9562
|
ais: props.contextValue,
|
|
9680
9563
|
multiIndexContext: props.indexContextValue
|
|
9681
|
-
}, getId$
|
|
9564
|
+
}, getId$d());
|
|
9682
9565
|
},
|
|
9683
9566
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9684
|
-
var selectedIndex = getCurrentRefinement$
|
|
9567
|
+
var selectedIndex = getCurrentRefinement$a(props, searchState, {
|
|
9685
9568
|
ais: props.contextValue,
|
|
9686
9569
|
multiIndexContext: props.indexContextValue
|
|
9687
9570
|
});
|
|
@@ -9689,7 +9572,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9689
9572
|
},
|
|
9690
9573
|
getMetadata: function getMetadata() {
|
|
9691
9574
|
return {
|
|
9692
|
-
id: getId$
|
|
9575
|
+
id: getId$d()
|
|
9693
9576
|
};
|
|
9694
9577
|
}
|
|
9695
9578
|
});
|
|
@@ -9725,15 +9608,15 @@ var connectStats = createConnectorWithContext({
|
|
|
9725
9608
|
}
|
|
9726
9609
|
});
|
|
9727
9610
|
|
|
9728
|
-
function getId$
|
|
9611
|
+
function getId$e(props) {
|
|
9729
9612
|
return props.attribute;
|
|
9730
9613
|
}
|
|
9731
9614
|
|
|
9732
|
-
var namespace = 'toggle';
|
|
9615
|
+
var namespace$6 = 'toggle';
|
|
9733
9616
|
var falsyStrings = ['0', 'false', 'null', 'undefined'];
|
|
9734
9617
|
|
|
9735
|
-
function getCurrentRefinement(props, searchState, context) {
|
|
9736
|
-
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);
|
|
9737
9620
|
|
|
9738
9621
|
if (falsyStrings.indexOf(currentRefinement) !== -1) {
|
|
9739
9622
|
return false;
|
|
@@ -9742,17 +9625,17 @@ function getCurrentRefinement(props, searchState, context) {
|
|
|
9742
9625
|
return Boolean(currentRefinement);
|
|
9743
9626
|
}
|
|
9744
9627
|
|
|
9745
|
-
function _refine$
|
|
9746
|
-
var id = getId$
|
|
9628
|
+
function _refine$8(props, searchState, nextRefinement, context) {
|
|
9629
|
+
var id = getId$e(props);
|
|
9747
9630
|
|
|
9748
9631
|
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9749
9632
|
|
|
9750
9633
|
var resetPage = true;
|
|
9751
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
9634
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$6);
|
|
9752
9635
|
}
|
|
9753
9636
|
|
|
9754
|
-
function _cleanUp$
|
|
9755
|
-
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)));
|
|
9756
9639
|
}
|
|
9757
9640
|
/**
|
|
9758
9641
|
* connectToggleRefinement connector provides the logic to build a widget that will
|
|
@@ -9791,14 +9674,14 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9791
9674
|
ais: props.contextValue,
|
|
9792
9675
|
multiIndexContext: props.indexContextValue
|
|
9793
9676
|
});
|
|
9794
|
-
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
9677
|
+
var currentRefinement = getCurrentRefinement$b(props, searchState, {
|
|
9795
9678
|
ais: props.contextValue,
|
|
9796
9679
|
multiIndexContext: props.indexContextValue
|
|
9797
9680
|
});
|
|
9798
9681
|
var allFacetValues = results && results.getFacetByName(attribute) ? results.getFacetValues(attribute) : null;
|
|
9799
9682
|
var facetValue = // Use null to always be consistent with type of the value
|
|
9800
9683
|
// count: number | null
|
|
9801
|
-
allFacetValues && allFacetValues.length ? find
|
|
9684
|
+
allFacetValues && allFacetValues.length ? find(allFacetValues, function (item) {
|
|
9802
9685
|
return item.name === value.toString();
|
|
9803
9686
|
}) : null;
|
|
9804
9687
|
var facetValueCount = facetValue && facetValue.count;
|
|
@@ -9819,13 +9702,13 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9819
9702
|
};
|
|
9820
9703
|
},
|
|
9821
9704
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9822
|
-
return _refine$
|
|
9705
|
+
return _refine$8(props, searchState, nextRefinement, {
|
|
9823
9706
|
ais: props.contextValue,
|
|
9824
9707
|
multiIndexContext: props.indexContextValue
|
|
9825
9708
|
});
|
|
9826
9709
|
},
|
|
9827
9710
|
cleanUp: function cleanUp(props, searchState) {
|
|
9828
|
-
return _cleanUp$
|
|
9711
|
+
return _cleanUp$6(props, searchState, {
|
|
9829
9712
|
ais: props.contextValue,
|
|
9830
9713
|
multiIndexContext: props.indexContextValue
|
|
9831
9714
|
});
|
|
@@ -9834,7 +9717,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9834
9717
|
var attribute = props.attribute,
|
|
9835
9718
|
value = props.value,
|
|
9836
9719
|
filter = props.filter;
|
|
9837
|
-
var checked = getCurrentRefinement(props, searchState, {
|
|
9720
|
+
var checked = getCurrentRefinement$b(props, searchState, {
|
|
9838
9721
|
ais: props.contextValue,
|
|
9839
9722
|
multiIndexContext: props.indexContextValue
|
|
9840
9723
|
});
|
|
@@ -9851,8 +9734,8 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9851
9734
|
return nextSearchParameters;
|
|
9852
9735
|
},
|
|
9853
9736
|
getMetadata: function getMetadata(props, searchState) {
|
|
9854
|
-
var id = getId$
|
|
9855
|
-
var checked = getCurrentRefinement(props, searchState, {
|
|
9737
|
+
var id = getId$e(props);
|
|
9738
|
+
var checked = getCurrentRefinement$b(props, searchState, {
|
|
9856
9739
|
ais: props.contextValue,
|
|
9857
9740
|
multiIndexContext: props.indexContextValue
|
|
9858
9741
|
});
|
|
@@ -9868,7 +9751,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9868
9751
|
currentRefinement: checked,
|
|
9869
9752
|
attribute: props.attribute,
|
|
9870
9753
|
value: function value(nextState) {
|
|
9871
|
-
return _refine$
|
|
9754
|
+
return _refine$8(props, nextState, false, {
|
|
9872
9755
|
ais: props.contextValue,
|
|
9873
9756
|
multiIndexContext: props.indexContextValue
|
|
9874
9757
|
});
|
|
@@ -9884,7 +9767,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9884
9767
|
}
|
|
9885
9768
|
});
|
|
9886
9769
|
|
|
9887
|
-
function getId() {
|
|
9770
|
+
function getId$f() {
|
|
9888
9771
|
return 'query';
|
|
9889
9772
|
}
|
|
9890
9773
|
|
|
@@ -9893,7 +9776,7 @@ function getAdditionalId() {
|
|
|
9893
9776
|
}
|
|
9894
9777
|
|
|
9895
9778
|
function getCurrentRefinementQuery(props, searchState, context) {
|
|
9896
|
-
var id = getId();
|
|
9779
|
+
var id = getId$f();
|
|
9897
9780
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
|
|
9898
9781
|
|
|
9899
9782
|
if (currentRefinement) {
|
|
@@ -9914,10 +9797,10 @@ function getCurrentRefinementAdditional(props, searchState, context) {
|
|
|
9914
9797
|
return {};
|
|
9915
9798
|
}
|
|
9916
9799
|
|
|
9917
|
-
function _refine(props, searchState, nextRefinement, context) {
|
|
9800
|
+
function _refine$9(props, searchState, nextRefinement, context) {
|
|
9918
9801
|
var _nextValue;
|
|
9919
9802
|
|
|
9920
|
-
var id = getId();
|
|
9803
|
+
var id = getId$f();
|
|
9921
9804
|
var voiceParams = getAdditionalId();
|
|
9922
9805
|
var queryLanguages = props.language ? {
|
|
9923
9806
|
queryLanguages: [props.language.split('-')[0]]
|
|
@@ -9934,8 +9817,8 @@ function _refine(props, searchState, nextRefinement, context) {
|
|
|
9934
9817
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9935
9818
|
}
|
|
9936
9819
|
|
|
9937
|
-
function _cleanUp(props, searchState, context) {
|
|
9938
|
-
var interimState = cleanUpValue(searchState, context, getId());
|
|
9820
|
+
function _cleanUp$7(props, searchState, context) {
|
|
9821
|
+
var interimState = cleanUpValue(searchState, context, getId$f());
|
|
9939
9822
|
return cleanUpValue(interimState, context, getAdditionalId());
|
|
9940
9823
|
}
|
|
9941
9824
|
|
|
@@ -9954,13 +9837,13 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9954
9837
|
};
|
|
9955
9838
|
},
|
|
9956
9839
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9957
|
-
return _refine(props, searchState, nextRefinement, {
|
|
9840
|
+
return _refine$9(props, searchState, nextRefinement, {
|
|
9958
9841
|
ais: props.contextValue,
|
|
9959
9842
|
multiIndexContext: props.indexContextValue
|
|
9960
9843
|
});
|
|
9961
9844
|
},
|
|
9962
9845
|
cleanUp: function cleanUp(props, searchState) {
|
|
9963
|
-
return _cleanUp(props, searchState, {
|
|
9846
|
+
return _cleanUp$7(props, searchState, {
|
|
9964
9847
|
ais: props.contextValue,
|
|
9965
9848
|
multiIndexContext: props.indexContextValue
|
|
9966
9849
|
});
|
|
@@ -9977,7 +9860,7 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9977
9860
|
return searchParameters.setQuery(query).setQueryParameters(additionalParams);
|
|
9978
9861
|
},
|
|
9979
9862
|
getMetadata: function getMetadata(props, searchState) {
|
|
9980
|
-
var id = getId();
|
|
9863
|
+
var id = getId$f();
|
|
9981
9864
|
var currentRefinement = getCurrentRefinementQuery(props, searchState, {
|
|
9982
9865
|
ais: props.contextValue,
|
|
9983
9866
|
multiIndexContext: props.indexContextValue
|
|
@@ -9991,7 +9874,7 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9991
9874
|
items: currentRefinement === null ? [] : [{
|
|
9992
9875
|
label: "".concat(id, ": ").concat(currentRefinement),
|
|
9993
9876
|
value: function value(nextState) {
|
|
9994
|
-
return _refine(props, nextState, '', {
|
|
9877
|
+
return _refine$9(props, nextState, '', {
|
|
9995
9878
|
ais: props.contextValue,
|
|
9996
9879
|
multiIndexContext: props.indexContextValue
|
|
9997
9880
|
});
|
|
@@ -10044,7 +9927,7 @@ function range(_ref) {
|
|
|
10044
9927
|
return (start + current) * limitStep;
|
|
10045
9928
|
});
|
|
10046
9929
|
}
|
|
10047
|
-
function find(array, comparator) {
|
|
9930
|
+
function find$2(array, comparator) {
|
|
10048
9931
|
if (!Array.isArray(array)) {
|
|
10049
9932
|
return undefined;
|
|
10050
9933
|
}
|
|
@@ -10058,11 +9941,11 @@ function find(array, comparator) {
|
|
|
10058
9941
|
return undefined;
|
|
10059
9942
|
}
|
|
10060
9943
|
|
|
10061
|
-
var cx
|
|
9944
|
+
var cx = createClassNames('Panel');
|
|
10062
9945
|
|
|
10063
|
-
var _createContext = createContext(function setCanRefine() {}),
|
|
10064
|
-
PanelConsumer = _createContext.Consumer,
|
|
10065
|
-
PanelProvider = _createContext.Provider;
|
|
9946
|
+
var _createContext$1 = createContext(function setCanRefine() {}),
|
|
9947
|
+
PanelConsumer = _createContext$1.Consumer,
|
|
9948
|
+
PanelProvider = _createContext$1.Provider;
|
|
10066
9949
|
|
|
10067
9950
|
var Panel =
|
|
10068
9951
|
/*#__PURE__*/
|
|
@@ -10104,16 +9987,16 @@ function (_Component) {
|
|
|
10104
9987
|
header = _this$props.header,
|
|
10105
9988
|
footer = _this$props.footer;
|
|
10106
9989
|
var canRefine = this.state.canRefine;
|
|
10107
|
-
return
|
|
10108
|
-
className: classnames(cx
|
|
10109
|
-
}, header &&
|
|
10110
|
-
className: cx
|
|
10111
|
-
}, header),
|
|
10112
|
-
className: cx
|
|
10113
|
-
},
|
|
9990
|
+
return React__default.createElement("div", {
|
|
9991
|
+
className: classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
9992
|
+
}, header && React__default.createElement("div", {
|
|
9993
|
+
className: cx('header')
|
|
9994
|
+
}, header), React__default.createElement("div", {
|
|
9995
|
+
className: cx('body')
|
|
9996
|
+
}, React__default.createElement(PanelProvider, {
|
|
10114
9997
|
value: this.setCanRefine
|
|
10115
|
-
}, children)), footer &&
|
|
10116
|
-
className: cx
|
|
9998
|
+
}, children)), footer && React__default.createElement("div", {
|
|
9999
|
+
className: cx('footer')
|
|
10117
10000
|
}, footer));
|
|
10118
10001
|
}
|
|
10119
10002
|
}]);
|
|
@@ -10176,8 +10059,8 @@ _defineProperty(PanelCallbackHandler, "propTypes", {
|
|
|
10176
10059
|
var PanelWrapper = function PanelWrapper(_ref) {
|
|
10177
10060
|
var canRefine = _ref.canRefine,
|
|
10178
10061
|
children = _ref.children;
|
|
10179
|
-
return
|
|
10180
|
-
return
|
|
10062
|
+
return React__default.createElement(PanelConsumer, null, function (setCanRefine) {
|
|
10063
|
+
return React__default.createElement(PanelCallbackHandler, {
|
|
10181
10064
|
setCanRefine: setCanRefine,
|
|
10182
10065
|
canRefine: canRefine
|
|
10183
10066
|
}, children);
|
|
@@ -10223,7 +10106,7 @@ function (_Component) {
|
|
|
10223
10106
|
_createClass(Link, [{
|
|
10224
10107
|
key: "render",
|
|
10225
10108
|
value: function render() {
|
|
10226
|
-
return
|
|
10109
|
+
return React__default.createElement("a", _extends({}, this.props, {
|
|
10227
10110
|
onClick: this.onClick
|
|
10228
10111
|
}));
|
|
10229
10112
|
}
|
|
@@ -10236,8 +10119,8 @@ _defineProperty(Link, "propTypes", {
|
|
|
10236
10119
|
onClick: PropTypes.func.isRequired
|
|
10237
10120
|
});
|
|
10238
10121
|
|
|
10239
|
-
var cx$
|
|
10240
|
-
var itemsPropType
|
|
10122
|
+
var cx$1 = createClassNames('Breadcrumb');
|
|
10123
|
+
var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
|
|
10241
10124
|
label: PropTypes.string.isRequired,
|
|
10242
10125
|
value: PropTypes.string.isRequired
|
|
10243
10126
|
}));
|
|
@@ -10265,10 +10148,10 @@ function (_Component) {
|
|
|
10265
10148
|
separator = _this$props.separator,
|
|
10266
10149
|
translate = _this$props.translate,
|
|
10267
10150
|
className = _this$props.className;
|
|
10268
|
-
var rootPath = canRefine ?
|
|
10269
|
-
className: cx$
|
|
10270
|
-
},
|
|
10271
|
-
className: cx$
|
|
10151
|
+
var rootPath = canRefine ? React__default.createElement("li", {
|
|
10152
|
+
className: cx$1('item')
|
|
10153
|
+
}, React__default.createElement(Link, {
|
|
10154
|
+
className: cx$1('link'),
|
|
10272
10155
|
onClick: function onClick() {
|
|
10273
10156
|
return !rootURL ? refine() : null;
|
|
10274
10157
|
},
|
|
@@ -10276,23 +10159,23 @@ function (_Component) {
|
|
|
10276
10159
|
}, translate('rootLabel'))) : null;
|
|
10277
10160
|
var breadcrumb = items.map(function (item, idx) {
|
|
10278
10161
|
var isLast = idx === items.length - 1;
|
|
10279
|
-
return
|
|
10280
|
-
className: cx$
|
|
10162
|
+
return React__default.createElement("li", {
|
|
10163
|
+
className: cx$1('item', isLast && 'item--selected'),
|
|
10281
10164
|
key: idx
|
|
10282
|
-
},
|
|
10283
|
-
className: cx$
|
|
10284
|
-
}, separator), !isLast ?
|
|
10285
|
-
className: cx$
|
|
10165
|
+
}, React__default.createElement("span", {
|
|
10166
|
+
className: cx$1('separator')
|
|
10167
|
+
}, separator), !isLast ? React__default.createElement(Link, {
|
|
10168
|
+
className: cx$1('link'),
|
|
10286
10169
|
onClick: function onClick() {
|
|
10287
10170
|
return refine(item.value);
|
|
10288
10171
|
},
|
|
10289
10172
|
href: createURL(item.value)
|
|
10290
10173
|
}, item.label) : item.label);
|
|
10291
10174
|
});
|
|
10292
|
-
return
|
|
10293
|
-
className: classnames(cx$
|
|
10294
|
-
},
|
|
10295
|
-
className: cx$
|
|
10175
|
+
return React__default.createElement("div", {
|
|
10176
|
+
className: classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10177
|
+
}, React__default.createElement("ul", {
|
|
10178
|
+
className: cx$1('list')
|
|
10296
10179
|
}, rootPath, breadcrumb));
|
|
10297
10180
|
}
|
|
10298
10181
|
}]);
|
|
@@ -10303,7 +10186,7 @@ function (_Component) {
|
|
|
10303
10186
|
_defineProperty(Breadcrumb, "propTypes", {
|
|
10304
10187
|
canRefine: PropTypes.bool.isRequired,
|
|
10305
10188
|
createURL: PropTypes.func.isRequired,
|
|
10306
|
-
items: itemsPropType
|
|
10189
|
+
items: itemsPropType,
|
|
10307
10190
|
refine: PropTypes.func.isRequired,
|
|
10308
10191
|
rootURL: PropTypes.string,
|
|
10309
10192
|
separator: PropTypes.node,
|
|
@@ -10410,12 +10293,12 @@ var Breadcrumb$1 = translatable({
|
|
|
10410
10293
|
*/
|
|
10411
10294
|
|
|
10412
10295
|
var BreadcrumbWidget = function BreadcrumbWidget(props) {
|
|
10413
|
-
return
|
|
10296
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Breadcrumb$1, props));
|
|
10414
10297
|
};
|
|
10415
10298
|
|
|
10416
10299
|
connectBreadcrumb(BreadcrumbWidget);
|
|
10417
10300
|
|
|
10418
|
-
var cx$
|
|
10301
|
+
var cx$2 = createClassNames('ClearRefinements');
|
|
10419
10302
|
|
|
10420
10303
|
var ClearRefinements =
|
|
10421
10304
|
/*#__PURE__*/
|
|
@@ -10437,10 +10320,10 @@ function (_Component) {
|
|
|
10437
10320
|
refine = _this$props.refine,
|
|
10438
10321
|
translate = _this$props.translate,
|
|
10439
10322
|
className = _this$props.className;
|
|
10440
|
-
return
|
|
10441
|
-
className: classnames(cx$
|
|
10442
|
-
},
|
|
10443
|
-
className: cx$
|
|
10323
|
+
return React__default.createElement("div", {
|
|
10324
|
+
className: classnames(cx$2(''), className)
|
|
10325
|
+
}, React__default.createElement("button", {
|
|
10326
|
+
className: cx$2('button', !canRefine && 'button--disabled'),
|
|
10444
10327
|
onClick: function onClick() {
|
|
10445
10328
|
return refine(items);
|
|
10446
10329
|
},
|
|
@@ -10503,44 +10386,44 @@ var ClearRefinements$1 = translatable({
|
|
|
10503
10386
|
*/
|
|
10504
10387
|
|
|
10505
10388
|
var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
|
|
10506
|
-
return
|
|
10389
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(ClearRefinements$1, props));
|
|
10507
10390
|
};
|
|
10508
10391
|
|
|
10509
10392
|
connectCurrentRefinements(ClearRefinementsWidget);
|
|
10510
10393
|
|
|
10511
|
-
var cx$
|
|
10394
|
+
var cx$3 = createClassNames('CurrentRefinements');
|
|
10512
10395
|
var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
10513
10396
|
var items = _ref.items,
|
|
10514
10397
|
canRefine = _ref.canRefine,
|
|
10515
10398
|
refine = _ref.refine,
|
|
10516
10399
|
translate = _ref.translate,
|
|
10517
10400
|
className = _ref.className;
|
|
10518
|
-
return
|
|
10519
|
-
className: classnames(cx$
|
|
10520
|
-
},
|
|
10521
|
-
className: cx$
|
|
10401
|
+
return React__default.createElement("div", {
|
|
10402
|
+
className: classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10403
|
+
}, React__default.createElement("ul", {
|
|
10404
|
+
className: cx$3('list', !canRefine && 'list--noRefinement')
|
|
10522
10405
|
}, items.map(function (item) {
|
|
10523
|
-
return
|
|
10406
|
+
return React__default.createElement("li", {
|
|
10524
10407
|
key: item.label,
|
|
10525
|
-
className: cx$
|
|
10526
|
-
},
|
|
10527
|
-
className: cx$
|
|
10408
|
+
className: cx$3('item')
|
|
10409
|
+
}, React__default.createElement("span", {
|
|
10410
|
+
className: cx$3('label')
|
|
10528
10411
|
}, item.label), item.items ? item.items.map(function (nest) {
|
|
10529
|
-
return
|
|
10412
|
+
return React__default.createElement("span", {
|
|
10530
10413
|
key: nest.label,
|
|
10531
|
-
className: cx$
|
|
10532
|
-
},
|
|
10533
|
-
className: cx$
|
|
10534
|
-
}, nest.label),
|
|
10535
|
-
className: cx$
|
|
10414
|
+
className: cx$3('category')
|
|
10415
|
+
}, React__default.createElement("span", {
|
|
10416
|
+
className: cx$3('categoryLabel')
|
|
10417
|
+
}, nest.label), React__default.createElement("button", {
|
|
10418
|
+
className: cx$3('delete'),
|
|
10536
10419
|
onClick: function onClick() {
|
|
10537
10420
|
return refine(nest.value);
|
|
10538
10421
|
}
|
|
10539
10422
|
}, translate('clearFilter', nest)));
|
|
10540
|
-
}) :
|
|
10541
|
-
className: cx$
|
|
10542
|
-
},
|
|
10543
|
-
className: cx$
|
|
10423
|
+
}) : React__default.createElement("span", {
|
|
10424
|
+
className: cx$3('category')
|
|
10425
|
+
}, React__default.createElement("button", {
|
|
10426
|
+
className: cx$3('delete'),
|
|
10544
10427
|
onClick: function onClick() {
|
|
10545
10428
|
return refine(item.value);
|
|
10546
10429
|
}
|
|
@@ -10611,33 +10494,33 @@ var CurrentRefinements$1 = translatable({
|
|
|
10611
10494
|
*/
|
|
10612
10495
|
|
|
10613
10496
|
var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
|
|
10614
|
-
return
|
|
10497
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(CurrentRefinements$1, props));
|
|
10615
10498
|
};
|
|
10616
10499
|
|
|
10617
10500
|
connectCurrentRefinements(CurrentRefinementsWidget);
|
|
10618
10501
|
|
|
10619
|
-
var cx$
|
|
10620
|
-
var defaultLoadingIndicator =
|
|
10502
|
+
var cx$4 = createClassNames('SearchBox');
|
|
10503
|
+
var defaultLoadingIndicator = React__default.createElement("svg", {
|
|
10621
10504
|
width: "18",
|
|
10622
10505
|
height: "18",
|
|
10623
10506
|
viewBox: "0 0 38 38",
|
|
10624
10507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10625
10508
|
stroke: "#444",
|
|
10626
|
-
className: cx$
|
|
10627
|
-
},
|
|
10509
|
+
className: cx$4('loadingIcon')
|
|
10510
|
+
}, React__default.createElement("g", {
|
|
10628
10511
|
fill: "none",
|
|
10629
10512
|
fillRule: "evenodd"
|
|
10630
|
-
},
|
|
10513
|
+
}, React__default.createElement("g", {
|
|
10631
10514
|
transform: "translate(1 1)",
|
|
10632
10515
|
strokeWidth: "2"
|
|
10633
|
-
},
|
|
10516
|
+
}, React__default.createElement("circle", {
|
|
10634
10517
|
strokeOpacity: ".5",
|
|
10635
10518
|
cx: "18",
|
|
10636
10519
|
cy: "18",
|
|
10637
10520
|
r: "18"
|
|
10638
|
-
}),
|
|
10521
|
+
}), React__default.createElement("path", {
|
|
10639
10522
|
d: "M36 18c0-9.94-8.06-18-18-18"
|
|
10640
|
-
},
|
|
10523
|
+
}, React__default.createElement("animateTransform", {
|
|
10641
10524
|
attributeName: "transform",
|
|
10642
10525
|
type: "rotate",
|
|
10643
10526
|
from: "0 18 18",
|
|
@@ -10645,26 +10528,26 @@ var defaultLoadingIndicator = React.createElement("svg", {
|
|
|
10645
10528
|
dur: "1s",
|
|
10646
10529
|
repeatCount: "indefinite"
|
|
10647
10530
|
})))));
|
|
10648
|
-
var defaultReset =
|
|
10649
|
-
className: cx$
|
|
10531
|
+
var defaultReset = React__default.createElement("svg", {
|
|
10532
|
+
className: cx$4('resetIcon'),
|
|
10650
10533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10651
10534
|
viewBox: "0 0 20 20",
|
|
10652
10535
|
width: "10",
|
|
10653
10536
|
height: "10"
|
|
10654
|
-
},
|
|
10537
|
+
}, React__default.createElement("path", {
|
|
10655
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"
|
|
10656
10539
|
}));
|
|
10657
|
-
var defaultSubmit =
|
|
10658
|
-
className: cx$
|
|
10540
|
+
var defaultSubmit = React__default.createElement("svg", {
|
|
10541
|
+
className: cx$4('submitIcon'),
|
|
10659
10542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10660
10543
|
width: "10",
|
|
10661
10544
|
height: "10",
|
|
10662
10545
|
viewBox: "0 0 40 40"
|
|
10663
|
-
},
|
|
10546
|
+
}, React__default.createElement("path", {
|
|
10664
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"
|
|
10665
10548
|
}));
|
|
10666
10549
|
|
|
10667
|
-
var SearchBox
|
|
10550
|
+
var SearchBox =
|
|
10668
10551
|
/*#__PURE__*/
|
|
10669
10552
|
function (_Component) {
|
|
10670
10553
|
_inherits(SearchBox, _Component);
|
|
@@ -10826,16 +10709,16 @@ function (_Component) {
|
|
|
10826
10709
|
var isSearchStalled = this.props.showLoadingIndicator && this.props.isSearchStalled;
|
|
10827
10710
|
/* eslint-disable max-len */
|
|
10828
10711
|
|
|
10829
|
-
return
|
|
10830
|
-
className: classnames(cx$
|
|
10831
|
-
},
|
|
10712
|
+
return React__default.createElement("div", {
|
|
10713
|
+
className: classnames(cx$4(''), className)
|
|
10714
|
+
}, React__default.createElement("form", {
|
|
10832
10715
|
noValidate: true,
|
|
10833
10716
|
onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
|
|
10834
10717
|
onReset: this.onReset,
|
|
10835
|
-
className: cx$
|
|
10718
|
+
className: cx$4('form', isSearchStalled && 'form--stalledSearch'),
|
|
10836
10719
|
action: "",
|
|
10837
10720
|
role: "search"
|
|
10838
|
-
},
|
|
10721
|
+
}, React__default.createElement("input", _extends({
|
|
10839
10722
|
ref: this.onInputMount,
|
|
10840
10723
|
type: "search",
|
|
10841
10724
|
placeholder: translate('placeholder'),
|
|
@@ -10849,19 +10732,19 @@ function (_Component) {
|
|
|
10849
10732
|
value: query,
|
|
10850
10733
|
onChange: this.onChange
|
|
10851
10734
|
}, searchInputEvents, {
|
|
10852
|
-
className: cx$
|
|
10853
|
-
})),
|
|
10735
|
+
className: cx$4('input')
|
|
10736
|
+
})), React__default.createElement("button", {
|
|
10854
10737
|
type: "submit",
|
|
10855
10738
|
title: translate('submitTitle'),
|
|
10856
|
-
className: cx$
|
|
10857
|
-
}, submit),
|
|
10739
|
+
className: cx$4('submit')
|
|
10740
|
+
}, submit), React__default.createElement("button", {
|
|
10858
10741
|
type: "reset",
|
|
10859
10742
|
title: translate('resetTitle'),
|
|
10860
|
-
className: cx$
|
|
10743
|
+
className: cx$4('reset'),
|
|
10861
10744
|
hidden: !query || isSearchStalled
|
|
10862
|
-
}, reset), this.props.showLoadingIndicator &&
|
|
10745
|
+
}, reset), this.props.showLoadingIndicator && React__default.createElement("span", {
|
|
10863
10746
|
hidden: !isSearchStalled,
|
|
10864
|
-
className: cx$
|
|
10747
|
+
className: cx$4('loadingIndicator')
|
|
10865
10748
|
}, loadingIndicator)));
|
|
10866
10749
|
/* eslint-enable */
|
|
10867
10750
|
}
|
|
@@ -10870,7 +10753,7 @@ function (_Component) {
|
|
|
10870
10753
|
return SearchBox;
|
|
10871
10754
|
}(Component);
|
|
10872
10755
|
|
|
10873
|
-
_defineProperty(SearchBox
|
|
10756
|
+
_defineProperty(SearchBox, "propTypes", {
|
|
10874
10757
|
currentRefinement: PropTypes.string,
|
|
10875
10758
|
className: PropTypes.string,
|
|
10876
10759
|
refine: PropTypes.func.isRequired,
|
|
@@ -10891,7 +10774,7 @@ _defineProperty(SearchBox$1, "propTypes", {
|
|
|
10891
10774
|
})])
|
|
10892
10775
|
});
|
|
10893
10776
|
|
|
10894
|
-
_defineProperty(SearchBox
|
|
10777
|
+
_defineProperty(SearchBox, "defaultProps", {
|
|
10895
10778
|
currentRefinement: '',
|
|
10896
10779
|
className: '',
|
|
10897
10780
|
focusShortcuts: ['s', '/'],
|
|
@@ -10904,11 +10787,11 @@ _defineProperty(SearchBox$1, "defaultProps", {
|
|
|
10904
10787
|
submit: defaultSubmit
|
|
10905
10788
|
});
|
|
10906
10789
|
|
|
10907
|
-
var SearchBox$
|
|
10790
|
+
var SearchBox$1 = translatable({
|
|
10908
10791
|
resetTitle: 'Clear the search query.',
|
|
10909
10792
|
submitTitle: 'Submit your search query.',
|
|
10910
10793
|
placeholder: 'Search here…'
|
|
10911
|
-
})(SearchBox
|
|
10794
|
+
})(SearchBox);
|
|
10912
10795
|
|
|
10913
10796
|
var itemsPropType$1 = PropTypes.arrayOf(PropTypes.shape({
|
|
10914
10797
|
value: PropTypes.any,
|
|
@@ -10954,10 +10837,10 @@ function (_Component) {
|
|
|
10954
10837
|
|
|
10955
10838
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10956
10839
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
10957
|
-
return
|
|
10840
|
+
return React__default.createElement("li", {
|
|
10958
10841
|
key: item.key || item.label,
|
|
10959
10842
|
className: _this.props.cx('item', item.isRefined && 'item--selected', item.noRefinement && 'item--noRefinement', itemHasChildren && 'item--parent')
|
|
10960
|
-
}, _this.props.renderItem(item, resetQuery), itemHasChildren &&
|
|
10843
|
+
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default.createElement("ul", {
|
|
10961
10844
|
className: _this.props.cx('list', 'list--child')
|
|
10962
10845
|
}, item.items.slice(0, _this.getLimit()).map(function (child) {
|
|
10963
10846
|
return _this.renderItem(child, item);
|
|
@@ -10985,7 +10868,7 @@ function (_Component) {
|
|
|
10985
10868
|
return null;
|
|
10986
10869
|
}
|
|
10987
10870
|
|
|
10988
|
-
return
|
|
10871
|
+
return React__default.createElement("button", {
|
|
10989
10872
|
disabled: disabled,
|
|
10990
10873
|
className: cx('showMore', disabled && 'showMore--disabled'),
|
|
10991
10874
|
onClick: this.onShowMoreClick
|
|
@@ -11003,12 +10886,12 @@ function (_Component) {
|
|
|
11003
10886
|
translate = _this$props3.translate,
|
|
11004
10887
|
items = _this$props3.items,
|
|
11005
10888
|
selectItem = _this$props3.selectItem;
|
|
11006
|
-
var noResults = items.length === 0 && this.state.query !== '' ?
|
|
10889
|
+
var noResults = items.length === 0 && this.state.query !== '' ? React__default.createElement("div", {
|
|
11007
10890
|
className: cx('noResults')
|
|
11008
10891
|
}, translate('noResults')) : null;
|
|
11009
|
-
return
|
|
10892
|
+
return React__default.createElement("div", {
|
|
11010
10893
|
className: cx('searchBox')
|
|
11011
|
-
},
|
|
10894
|
+
}, React__default.createElement(SearchBox$1, {
|
|
11012
10895
|
currentRefinement: this.state.query,
|
|
11013
10896
|
refine: function refine(value) {
|
|
11014
10897
|
_this2.setState({
|
|
@@ -11044,7 +10927,7 @@ function (_Component) {
|
|
|
11044
10927
|
var rootClassName = classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
11045
10928
|
|
|
11046
10929
|
if (items.length === 0) {
|
|
11047
|
-
return
|
|
10930
|
+
return React__default.createElement("div", {
|
|
11048
10931
|
className: rootClassName
|
|
11049
10932
|
}, searchBox);
|
|
11050
10933
|
} // Always limit the number of items we show on screen, since the actual
|
|
@@ -11052,9 +10935,9 @@ function (_Component) {
|
|
|
11052
10935
|
// option.
|
|
11053
10936
|
|
|
11054
10937
|
|
|
11055
|
-
return
|
|
10938
|
+
return React__default.createElement("div", {
|
|
11056
10939
|
className: rootClassName
|
|
11057
|
-
}, searchBox,
|
|
10940
|
+
}, searchBox, React__default.createElement("ul", {
|
|
11058
10941
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
11059
10942
|
}, items.slice(0, this.getLimit()).map(function (item) {
|
|
11060
10943
|
return _this3.renderItem(item, _this3.resetQuery);
|
|
@@ -11088,13 +10971,13 @@ _defineProperty(List, "defaultProps", {
|
|
|
11088
10971
|
isFromSearch: false
|
|
11089
10972
|
});
|
|
11090
10973
|
|
|
11091
|
-
var cx$
|
|
11092
|
-
var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
|
|
10974
|
+
var cx$5 = createClassNames('HierarchicalMenu');
|
|
10975
|
+
var itemsPropType$2 = PropTypes.arrayOf(PropTypes.shape({
|
|
11093
10976
|
label: PropTypes.string.isRequired,
|
|
11094
10977
|
value: PropTypes.string,
|
|
11095
10978
|
count: PropTypes.number.isRequired,
|
|
11096
10979
|
items: function items() {
|
|
11097
|
-
return itemsPropType.apply(void 0, arguments);
|
|
10980
|
+
return itemsPropType$2.apply(void 0, arguments);
|
|
11098
10981
|
}
|
|
11099
10982
|
}));
|
|
11100
10983
|
|
|
@@ -11120,16 +11003,16 @@ function (_Component) {
|
|
|
11120
11003
|
var _this$props = _this.props,
|
|
11121
11004
|
createURL = _this$props.createURL,
|
|
11122
11005
|
refine = _this$props.refine;
|
|
11123
|
-
return
|
|
11124
|
-
className: cx$
|
|
11006
|
+
return React__default.createElement(Link, {
|
|
11007
|
+
className: cx$5('link'),
|
|
11125
11008
|
onClick: function onClick() {
|
|
11126
11009
|
return refine(item.value);
|
|
11127
11010
|
},
|
|
11128
11011
|
href: createURL(item.value)
|
|
11129
|
-
},
|
|
11130
|
-
className: cx$
|
|
11131
|
-
}, item.label), ' ',
|
|
11132
|
-
className: cx$
|
|
11012
|
+
}, React__default.createElement("span", {
|
|
11013
|
+
className: cx$5('label')
|
|
11014
|
+
}, item.label), ' ', React__default.createElement("span", {
|
|
11015
|
+
className: cx$5('count')
|
|
11133
11016
|
}, item.count));
|
|
11134
11017
|
});
|
|
11135
11018
|
|
|
@@ -11147,9 +11030,9 @@ function (_Component) {
|
|
|
11147
11030
|
showMoreLimit = _this$props2.showMoreLimit,
|
|
11148
11031
|
canRefine = _this$props2.canRefine,
|
|
11149
11032
|
className = _this$props2.className;
|
|
11150
|
-
return
|
|
11033
|
+
return React__default.createElement(List, {
|
|
11151
11034
|
renderItem: this.renderItem,
|
|
11152
|
-
cx: cx$
|
|
11035
|
+
cx: cx$5,
|
|
11153
11036
|
translate: translate,
|
|
11154
11037
|
items: items,
|
|
11155
11038
|
showMore: showMore,
|
|
@@ -11169,7 +11052,7 @@ _defineProperty(HierarchicalMenu, "propTypes", {
|
|
|
11169
11052
|
refine: PropTypes.func.isRequired,
|
|
11170
11053
|
createURL: PropTypes.func.isRequired,
|
|
11171
11054
|
canRefine: PropTypes.bool.isRequired,
|
|
11172
|
-
items: itemsPropType,
|
|
11055
|
+
items: itemsPropType$2,
|
|
11173
11056
|
showMore: PropTypes.bool,
|
|
11174
11057
|
className: PropTypes.string,
|
|
11175
11058
|
limit: PropTypes.number,
|
|
@@ -11278,12 +11161,12 @@ var HierarchicalMenu$1 = translatable({
|
|
|
11278
11161
|
*/
|
|
11279
11162
|
|
|
11280
11163
|
var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
|
|
11281
|
-
return
|
|
11164
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(HierarchicalMenu$1, props));
|
|
11282
11165
|
};
|
|
11283
11166
|
|
|
11284
11167
|
connectHierarchicalMenu(HierarchicalMenuWidget);
|
|
11285
11168
|
|
|
11286
|
-
var Highlight
|
|
11169
|
+
var Highlight = function Highlight(_ref) {
|
|
11287
11170
|
var cx = _ref.cx,
|
|
11288
11171
|
value = _ref.value,
|
|
11289
11172
|
highlightedTagName = _ref.highlightedTagName,
|
|
@@ -11291,11 +11174,11 @@ var Highlight$2 = function Highlight(_ref) {
|
|
|
11291
11174
|
nonHighlightedTagName = _ref.nonHighlightedTagName;
|
|
11292
11175
|
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
11293
11176
|
var className = isHighlighted ? 'highlighted' : 'nonHighlighted';
|
|
11294
|
-
return
|
|
11177
|
+
return React__default.createElement(TagName, {
|
|
11295
11178
|
className: cx(className)
|
|
11296
11179
|
}, value);
|
|
11297
11180
|
};
|
|
11298
|
-
Highlight
|
|
11181
|
+
Highlight.propTypes = {
|
|
11299
11182
|
cx: PropTypes.func.isRequired,
|
|
11300
11183
|
value: PropTypes.string.isRequired,
|
|
11301
11184
|
isHighlighted: PropTypes.bool.isRequired,
|
|
@@ -11318,15 +11201,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11318
11201
|
attribute: attribute,
|
|
11319
11202
|
highlightProperty: highlightProperty
|
|
11320
11203
|
});
|
|
11321
|
-
return
|
|
11204
|
+
return React__default.createElement("span", {
|
|
11322
11205
|
className: classnames(cx(''), className)
|
|
11323
11206
|
}, parsedHighlightedValue.map(function (item, i) {
|
|
11324
11207
|
if (Array.isArray(item)) {
|
|
11325
11208
|
var isLast = i === parsedHighlightedValue.length - 1;
|
|
11326
|
-
return
|
|
11209
|
+
return React__default.createElement("span", {
|
|
11327
11210
|
key: i
|
|
11328
11211
|
}, item.map(function (element, index) {
|
|
11329
|
-
return
|
|
11212
|
+
return React__default.createElement(Highlight, {
|
|
11330
11213
|
cx: cx,
|
|
11331
11214
|
key: index,
|
|
11332
11215
|
value: element.value,
|
|
@@ -11334,12 +11217,12 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11334
11217
|
nonHighlightedTagName: nonHighlightedTagName,
|
|
11335
11218
|
isHighlighted: element.isHighlighted
|
|
11336
11219
|
});
|
|
11337
|
-
}), !isLast &&
|
|
11220
|
+
}), !isLast && React__default.createElement("span", {
|
|
11338
11221
|
className: cx('separator')
|
|
11339
11222
|
}, separator));
|
|
11340
11223
|
}
|
|
11341
11224
|
|
|
11342
|
-
return
|
|
11225
|
+
return React__default.createElement(Highlight, {
|
|
11343
11226
|
cx: cx,
|
|
11344
11227
|
key: i,
|
|
11345
11228
|
value: item.value,
|
|
@@ -11368,12 +11251,12 @@ Highlighter.defaultProps = {
|
|
|
11368
11251
|
separator: ', '
|
|
11369
11252
|
};
|
|
11370
11253
|
|
|
11371
|
-
var cx$
|
|
11254
|
+
var cx$6 = createClassNames('Highlight');
|
|
11372
11255
|
|
|
11373
11256
|
var Highlight$1 = function Highlight(props) {
|
|
11374
|
-
return
|
|
11257
|
+
return React__default.createElement(Highlighter, _extends({}, props, {
|
|
11375
11258
|
highlightProperty: "_highlightResult",
|
|
11376
|
-
cx: cx$
|
|
11259
|
+
cx: cx$6
|
|
11377
11260
|
}));
|
|
11378
11261
|
};
|
|
11379
11262
|
|
|
@@ -11418,12 +11301,12 @@ var Highlight$1 = function Highlight(props) {
|
|
|
11418
11301
|
* );
|
|
11419
11302
|
*/
|
|
11420
11303
|
|
|
11421
|
-
var Highlight = connectHighlight(Highlight$1);
|
|
11304
|
+
var Highlight$2 = connectHighlight(Highlight$1);
|
|
11422
11305
|
|
|
11423
|
-
var cx$
|
|
11306
|
+
var cx$7 = createClassNames('Hits');
|
|
11424
11307
|
|
|
11425
11308
|
var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
11426
|
-
return
|
|
11309
|
+
return React__default.createElement("div", {
|
|
11427
11310
|
style: {
|
|
11428
11311
|
borderBottom: '1px solid #bbb',
|
|
11429
11312
|
paddingBottom: '5px',
|
|
@@ -11433,21 +11316,21 @@ var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
|
11433
11316
|
}, JSON.stringify(props).slice(0, 100), "...");
|
|
11434
11317
|
};
|
|
11435
11318
|
|
|
11436
|
-
var Hits
|
|
11319
|
+
var Hits = function Hits(_ref) {
|
|
11437
11320
|
var hits = _ref.hits,
|
|
11438
11321
|
_ref$className = _ref.className,
|
|
11439
11322
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
11440
11323
|
_ref$hitComponent = _ref.hitComponent,
|
|
11441
11324
|
HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
|
|
11442
|
-
return
|
|
11443
|
-
className: classnames(cx$
|
|
11444
|
-
},
|
|
11445
|
-
className: cx$
|
|
11325
|
+
return React__default.createElement("div", {
|
|
11326
|
+
className: classnames(cx$7(''), className)
|
|
11327
|
+
}, React__default.createElement("ul", {
|
|
11328
|
+
className: cx$7('list')
|
|
11446
11329
|
}, hits.map(function (hit) {
|
|
11447
|
-
return
|
|
11448
|
-
className: cx$
|
|
11330
|
+
return React__default.createElement("li", {
|
|
11331
|
+
className: cx$7('item'),
|
|
11449
11332
|
key: hit.objectID
|
|
11450
|
-
},
|
|
11333
|
+
}, React__default.createElement(HitComponent, {
|
|
11451
11334
|
hit: hit
|
|
11452
11335
|
}));
|
|
11453
11336
|
})));
|
|
@@ -11456,7 +11339,7 @@ var Hits$1 = function Hits(_ref) {
|
|
|
11456
11339
|
var HitPropTypes = PropTypes.shape({
|
|
11457
11340
|
objectID: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
11458
11341
|
});
|
|
11459
|
-
Hits
|
|
11342
|
+
Hits.propTypes = {
|
|
11460
11343
|
hits: PropTypes.arrayOf(HitPropTypes.isRequired).isRequired,
|
|
11461
11344
|
className: PropTypes.string,
|
|
11462
11345
|
hitComponent: PropTypes.func
|
|
@@ -11495,7 +11378,7 @@ Hits$1.propTypes = {
|
|
|
11495
11378
|
* );
|
|
11496
11379
|
*/
|
|
11497
11380
|
|
|
11498
|
-
var Hits = connectHits(Hits
|
|
11381
|
+
var Hits$1 = connectHits(Hits);
|
|
11499
11382
|
|
|
11500
11383
|
var Select =
|
|
11501
11384
|
/*#__PURE__*/
|
|
@@ -11529,12 +11412,12 @@ function (_Component) {
|
|
|
11529
11412
|
cx = _this$props.cx,
|
|
11530
11413
|
items = _this$props.items,
|
|
11531
11414
|
selectedItem = _this$props.selectedItem;
|
|
11532
|
-
return
|
|
11415
|
+
return React__default.createElement("select", {
|
|
11533
11416
|
className: cx('select'),
|
|
11534
11417
|
value: selectedItem,
|
|
11535
11418
|
onChange: this.onChange
|
|
11536
11419
|
}, items.map(function (item) {
|
|
11537
|
-
return
|
|
11420
|
+
return React__default.createElement("option", {
|
|
11538
11421
|
className: cx('option'),
|
|
11539
11422
|
key: item.key === undefined ? item.value : item.key,
|
|
11540
11423
|
disabled: item.disabled,
|
|
@@ -11559,7 +11442,7 @@ _defineProperty(Select, "propTypes", {
|
|
|
11559
11442
|
selectedItem: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
11560
11443
|
});
|
|
11561
11444
|
|
|
11562
|
-
var cx$
|
|
11445
|
+
var cx$8 = createClassNames('HitsPerPage');
|
|
11563
11446
|
|
|
11564
11447
|
var HitsPerPage =
|
|
11565
11448
|
/*#__PURE__*/
|
|
@@ -11580,13 +11463,13 @@ function (_Component) {
|
|
|
11580
11463
|
currentRefinement = _this$props.currentRefinement,
|
|
11581
11464
|
refine = _this$props.refine,
|
|
11582
11465
|
className = _this$props.className;
|
|
11583
|
-
return
|
|
11584
|
-
className: classnames(cx$
|
|
11585
|
-
},
|
|
11466
|
+
return React__default.createElement("div", {
|
|
11467
|
+
className: classnames(cx$8(''), className)
|
|
11468
|
+
}, React__default.createElement(Select, {
|
|
11586
11469
|
onSelect: refine,
|
|
11587
11470
|
selectedItem: currentRefinement,
|
|
11588
11471
|
items: items,
|
|
11589
|
-
cx: cx$
|
|
11472
|
+
cx: cx$8
|
|
11590
11473
|
}));
|
|
11591
11474
|
}
|
|
11592
11475
|
}]);
|
|
@@ -11652,7 +11535,7 @@ _defineProperty(HitsPerPage, "defaultProps", {
|
|
|
11652
11535
|
|
|
11653
11536
|
connectHitsPerPage(HitsPerPage);
|
|
11654
11537
|
|
|
11655
|
-
var cx$
|
|
11538
|
+
var cx$9 = createClassNames('InfiniteHits');
|
|
11656
11539
|
|
|
11657
11540
|
var InfiniteHits =
|
|
11658
11541
|
/*#__PURE__*/
|
|
@@ -11678,25 +11561,25 @@ function (_Component) {
|
|
|
11678
11561
|
refineNext = _this$props.refineNext,
|
|
11679
11562
|
translate = _this$props.translate,
|
|
11680
11563
|
className = _this$props.className;
|
|
11681
|
-
return
|
|
11682
|
-
className: classnames(cx$
|
|
11683
|
-
}, showPrevious &&
|
|
11684
|
-
className: cx$
|
|
11564
|
+
return React__default.createElement("div", {
|
|
11565
|
+
className: classnames(cx$9(''), className)
|
|
11566
|
+
}, showPrevious && React__default.createElement("button", {
|
|
11567
|
+
className: cx$9('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
|
|
11685
11568
|
onClick: function onClick() {
|
|
11686
11569
|
return refinePrevious();
|
|
11687
11570
|
},
|
|
11688
11571
|
disabled: !hasPrevious
|
|
11689
|
-
}, translate('loadPrevious')),
|
|
11690
|
-
className: cx$
|
|
11572
|
+
}, translate('loadPrevious')), React__default.createElement("ul", {
|
|
11573
|
+
className: cx$9('list')
|
|
11691
11574
|
}, hits.map(function (hit) {
|
|
11692
|
-
return
|
|
11575
|
+
return React__default.createElement("li", {
|
|
11693
11576
|
key: hit.objectID,
|
|
11694
|
-
className: cx$
|
|
11695
|
-
},
|
|
11577
|
+
className: cx$9('item')
|
|
11578
|
+
}, React__default.createElement(HitComponent, {
|
|
11696
11579
|
hit: hit
|
|
11697
11580
|
}));
|
|
11698
|
-
})),
|
|
11699
|
-
className: cx$
|
|
11581
|
+
})), React__default.createElement("button", {
|
|
11582
|
+
className: cx$9('loadMore', !hasMore && 'loadMore--disabled'),
|
|
11700
11583
|
onClick: function onClick() {
|
|
11701
11584
|
return refineNext();
|
|
11702
11585
|
},
|
|
@@ -11723,7 +11606,7 @@ InfiniteHits.defaultProps = {
|
|
|
11723
11606
|
className: '',
|
|
11724
11607
|
showPrevious: false,
|
|
11725
11608
|
hitComponent: function hitComponent(hit) {
|
|
11726
|
-
return
|
|
11609
|
+
return React__default.createElement("div", {
|
|
11727
11610
|
style: {
|
|
11728
11611
|
borderBottom: '1px solid #bbb',
|
|
11729
11612
|
paddingBottom: '5px',
|
|
@@ -11777,7 +11660,7 @@ var InfiniteHits$1 = translatable({
|
|
|
11777
11660
|
|
|
11778
11661
|
connectInfiniteHits(InfiniteHits$1);
|
|
11779
11662
|
|
|
11780
|
-
var cx$
|
|
11663
|
+
var cx$a = createClassNames('Menu');
|
|
11781
11664
|
|
|
11782
11665
|
var Menu =
|
|
11783
11666
|
/*#__PURE__*/
|
|
@@ -11799,20 +11682,20 @@ function (_Component) {
|
|
|
11799
11682
|
|
|
11800
11683
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11801
11684
|
var createURL = _this.props.createURL;
|
|
11802
|
-
var label = _this.props.isFromSearch ?
|
|
11685
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
11803
11686
|
attribute: "label",
|
|
11804
11687
|
hit: item
|
|
11805
11688
|
}) : item.label;
|
|
11806
|
-
return
|
|
11807
|
-
className: cx$
|
|
11689
|
+
return React__default.createElement(Link, {
|
|
11690
|
+
className: cx$a('link'),
|
|
11808
11691
|
onClick: function onClick() {
|
|
11809
11692
|
return _this.selectItem(item, resetQuery);
|
|
11810
11693
|
},
|
|
11811
11694
|
href: createURL(item.value)
|
|
11812
|
-
},
|
|
11813
|
-
className: cx$
|
|
11814
|
-
}, label), ' ',
|
|
11815
|
-
className: cx$
|
|
11695
|
+
}, React__default.createElement("span", {
|
|
11696
|
+
className: cx$a('label')
|
|
11697
|
+
}, label), ' ', React__default.createElement("span", {
|
|
11698
|
+
className: cx$a('count')
|
|
11816
11699
|
}, item.count));
|
|
11817
11700
|
});
|
|
11818
11701
|
|
|
@@ -11839,10 +11722,10 @@ function (_Component) {
|
|
|
11839
11722
|
searchable = _this$props.searchable,
|
|
11840
11723
|
canRefine = _this$props.canRefine,
|
|
11841
11724
|
className = _this$props.className;
|
|
11842
|
-
return
|
|
11725
|
+
return React__default.createElement(List, {
|
|
11843
11726
|
renderItem: this.renderItem,
|
|
11844
11727
|
selectItem: this.selectItem,
|
|
11845
|
-
cx: cx$
|
|
11728
|
+
cx: cx$a,
|
|
11846
11729
|
translate: translate,
|
|
11847
11730
|
items: items,
|
|
11848
11731
|
showMore: showMore,
|
|
@@ -11947,12 +11830,12 @@ var Menu$1 = translatable({
|
|
|
11947
11830
|
*/
|
|
11948
11831
|
|
|
11949
11832
|
var MenuWidget = function MenuWidget(props) {
|
|
11950
|
-
return
|
|
11833
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Menu$1, props));
|
|
11951
11834
|
};
|
|
11952
11835
|
|
|
11953
11836
|
connectMenu(MenuWidget);
|
|
11954
11837
|
|
|
11955
|
-
var cx$
|
|
11838
|
+
var cx$b = createClassNames('MenuSelect');
|
|
11956
11839
|
|
|
11957
11840
|
var MenuSelect =
|
|
11958
11841
|
/*#__PURE__*/
|
|
@@ -11989,27 +11872,27 @@ function (_Component) {
|
|
|
11989
11872
|
canRefine = _this$props.canRefine,
|
|
11990
11873
|
translate = _this$props.translate,
|
|
11991
11874
|
className = _this$props.className;
|
|
11992
|
-
return
|
|
11993
|
-
className: classnames(cx$
|
|
11994
|
-
},
|
|
11875
|
+
return React__default.createElement("div", {
|
|
11876
|
+
className: classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
11877
|
+
}, React__default.createElement("select", {
|
|
11995
11878
|
value: this.selectedValue,
|
|
11996
11879
|
onChange: this.handleSelectChange,
|
|
11997
|
-
className: cx$
|
|
11998
|
-
},
|
|
11880
|
+
className: cx$b('select')
|
|
11881
|
+
}, React__default.createElement("option", {
|
|
11999
11882
|
value: "ais__see__all__option",
|
|
12000
|
-
className: cx$
|
|
11883
|
+
className: cx$b('option')
|
|
12001
11884
|
}, translate('seeAllOption')), items.map(function (item) {
|
|
12002
|
-
return
|
|
11885
|
+
return React__default.createElement("option", {
|
|
12003
11886
|
key: item.value,
|
|
12004
11887
|
value: item.value,
|
|
12005
|
-
className: cx$
|
|
11888
|
+
className: cx$b('option')
|
|
12006
11889
|
}, item.label, " (", item.count, ")");
|
|
12007
11890
|
})));
|
|
12008
11891
|
}
|
|
12009
11892
|
}, {
|
|
12010
11893
|
key: "selectedValue",
|
|
12011
11894
|
get: function get() {
|
|
12012
|
-
var _ref2 = find(this.props.items, function (item) {
|
|
11895
|
+
var _ref2 = find$2(this.props.items, function (item) {
|
|
12013
11896
|
return item.isRefined === true;
|
|
12014
11897
|
}) || {
|
|
12015
11898
|
value: 'ais__see__all__option'
|
|
@@ -12081,12 +11964,12 @@ var MenuSelect$1 = translatable({
|
|
|
12081
11964
|
*/
|
|
12082
11965
|
|
|
12083
11966
|
var MenuSelectWidget = function MenuSelectWidget(props) {
|
|
12084
|
-
return
|
|
11967
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(MenuSelect$1, props));
|
|
12085
11968
|
};
|
|
12086
11969
|
|
|
12087
11970
|
connectMenu(MenuSelectWidget);
|
|
12088
11971
|
|
|
12089
|
-
var cx$
|
|
11972
|
+
var cx$c = createClassNames('NumericMenu');
|
|
12090
11973
|
|
|
12091
11974
|
var NumericMenu =
|
|
12092
11975
|
/*#__PURE__*/
|
|
@@ -12110,18 +11993,18 @@ function (_Component) {
|
|
|
12110
11993
|
var _this$props = _this.props,
|
|
12111
11994
|
refine = _this$props.refine,
|
|
12112
11995
|
translate = _this$props.translate;
|
|
12113
|
-
return
|
|
12114
|
-
className: cx$
|
|
12115
|
-
},
|
|
12116
|
-
className: cx$
|
|
11996
|
+
return React__default.createElement("label", {
|
|
11997
|
+
className: cx$c('label')
|
|
11998
|
+
}, React__default.createElement("input", {
|
|
11999
|
+
className: cx$c('radio'),
|
|
12117
12000
|
type: "radio",
|
|
12118
12001
|
checked: item.isRefined,
|
|
12119
12002
|
disabled: item.noRefinement,
|
|
12120
12003
|
onChange: function onChange() {
|
|
12121
12004
|
return refine(item.value);
|
|
12122
12005
|
}
|
|
12123
|
-
}),
|
|
12124
|
-
className: cx$
|
|
12006
|
+
}), React__default.createElement("span", {
|
|
12007
|
+
className: cx$c('labelText')
|
|
12125
12008
|
}, item.value === '' ? translate('all') : item.label));
|
|
12126
12009
|
});
|
|
12127
12010
|
|
|
@@ -12135,11 +12018,11 @@ function (_Component) {
|
|
|
12135
12018
|
items = _this$props2.items,
|
|
12136
12019
|
canRefine = _this$props2.canRefine,
|
|
12137
12020
|
className = _this$props2.className;
|
|
12138
|
-
return
|
|
12021
|
+
return React__default.createElement(List, {
|
|
12139
12022
|
renderItem: this.renderItem,
|
|
12140
12023
|
showMore: false,
|
|
12141
12024
|
canRefine: canRefine,
|
|
12142
|
-
cx: cx$
|
|
12025
|
+
cx: cx$c,
|
|
12143
12026
|
items: items.map(function (item) {
|
|
12144
12027
|
return _objectSpread({}, item, {
|
|
12145
12028
|
key: item.value
|
|
@@ -12221,7 +12104,7 @@ var NumericMenu$1 = translatable({
|
|
|
12221
12104
|
*/
|
|
12222
12105
|
|
|
12223
12106
|
var NumericMenuWidget = function NumericMenuWidget(props) {
|
|
12224
|
-
return
|
|
12107
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(NumericMenu$1, props));
|
|
12225
12108
|
};
|
|
12226
12109
|
|
|
12227
12110
|
connectNumericMenu(NumericMenuWidget);
|
|
@@ -12246,15 +12129,15 @@ function (_Component) {
|
|
|
12246
12129
|
items = _this$props.items,
|
|
12247
12130
|
onSelect = _this$props.onSelect,
|
|
12248
12131
|
canRefine = _this$props.canRefine;
|
|
12249
|
-
return
|
|
12132
|
+
return React__default.createElement("ul", {
|
|
12250
12133
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
12251
12134
|
}, items.map(function (item) {
|
|
12252
|
-
return
|
|
12135
|
+
return React__default.createElement("li", {
|
|
12253
12136
|
key: item.key === undefined ? item.value : item.key,
|
|
12254
12137
|
className: cx('item', item.selected && !item.disabled && 'item--selected', item.disabled && 'item--disabled', item.modifier)
|
|
12255
|
-
}, item.disabled ?
|
|
12138
|
+
}, item.disabled ? React__default.createElement("span", {
|
|
12256
12139
|
className: cx('link')
|
|
12257
|
-
}, item.label === undefined ? item.value : item.label) :
|
|
12140
|
+
}, item.label === undefined ? item.value : item.label) : React__default.createElement(Link, {
|
|
12258
12141
|
className: cx('link', item.selected && 'link--selected'),
|
|
12259
12142
|
"aria-label": item.ariaLabel,
|
|
12260
12143
|
href: createURL(item.value),
|
|
@@ -12284,7 +12167,7 @@ _defineProperty(LinkList, "propTypes", {
|
|
|
12284
12167
|
canRefine: PropTypes.bool.isRequired
|
|
12285
12168
|
});
|
|
12286
12169
|
|
|
12287
|
-
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)
|
|
12288
12171
|
|
|
12289
12172
|
function calculateSize(padding, maxPages) {
|
|
12290
12173
|
return Math.min(2 * padding + 1, maxPages);
|
|
@@ -12320,7 +12203,7 @@ function getPages(currentPage, maxPages, padding) {
|
|
|
12320
12203
|
});
|
|
12321
12204
|
}
|
|
12322
12205
|
|
|
12323
|
-
var Pagination
|
|
12206
|
+
var Pagination =
|
|
12324
12207
|
/*#__PURE__*/
|
|
12325
12208
|
function (_Component) {
|
|
12326
12209
|
_inherits(Pagination, _Component);
|
|
@@ -12426,10 +12309,10 @@ function (_Component) {
|
|
|
12426
12309
|
});
|
|
12427
12310
|
}
|
|
12428
12311
|
|
|
12429
|
-
return
|
|
12430
|
-
className: classnames(cx$
|
|
12431
|
-
},
|
|
12432
|
-
cx: cx$
|
|
12312
|
+
return React__default.createElement("div", {
|
|
12313
|
+
className: classnames(cx$d('', !canRefine && '-noRefinement'), className)
|
|
12314
|
+
}, React__default.createElement(ListComponent, _extends({}, otherProps, {
|
|
12315
|
+
cx: cx$d,
|
|
12433
12316
|
items: items,
|
|
12434
12317
|
onSelect: refine,
|
|
12435
12318
|
createURL: createURL,
|
|
@@ -12441,7 +12324,7 @@ function (_Component) {
|
|
|
12441
12324
|
return Pagination;
|
|
12442
12325
|
}(Component);
|
|
12443
12326
|
|
|
12444
|
-
_defineProperty(Pagination
|
|
12327
|
+
_defineProperty(Pagination, "propTypes", {
|
|
12445
12328
|
nbPages: PropTypes.number.isRequired,
|
|
12446
12329
|
currentRefinement: PropTypes.number.isRequired,
|
|
12447
12330
|
refine: PropTypes.func.isRequired,
|
|
@@ -12458,7 +12341,7 @@ _defineProperty(Pagination$1, "propTypes", {
|
|
|
12458
12341
|
className: PropTypes.string
|
|
12459
12342
|
});
|
|
12460
12343
|
|
|
12461
|
-
_defineProperty(Pagination
|
|
12344
|
+
_defineProperty(Pagination, "defaultProps", {
|
|
12462
12345
|
listComponent: LinkList,
|
|
12463
12346
|
showFirst: true,
|
|
12464
12347
|
showPrevious: true,
|
|
@@ -12469,7 +12352,7 @@ _defineProperty(Pagination$1, "defaultProps", {
|
|
|
12469
12352
|
className: ''
|
|
12470
12353
|
});
|
|
12471
12354
|
|
|
12472
|
-
var Pagination$
|
|
12355
|
+
var Pagination$1 = translatable({
|
|
12473
12356
|
previous: '‹',
|
|
12474
12357
|
next: '›',
|
|
12475
12358
|
first: '«',
|
|
@@ -12484,7 +12367,7 @@ var Pagination$2 = translatable({
|
|
|
12484
12367
|
ariaPage: function ariaPage(currentRefinement) {
|
|
12485
12368
|
return "Page ".concat(currentRefinement.toString());
|
|
12486
12369
|
}
|
|
12487
|
-
})(Pagination
|
|
12370
|
+
})(Pagination);
|
|
12488
12371
|
|
|
12489
12372
|
/**
|
|
12490
12373
|
* The Pagination widget displays a simple pagination system allowing the user to
|
|
@@ -12541,23 +12424,23 @@ var Pagination$2 = translatable({
|
|
|
12541
12424
|
*/
|
|
12542
12425
|
|
|
12543
12426
|
var PaginationWidget = function PaginationWidget(props) {
|
|
12544
|
-
return
|
|
12427
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$1, props));
|
|
12545
12428
|
};
|
|
12546
12429
|
|
|
12547
|
-
var Pagination = connectPagination(PaginationWidget);
|
|
12430
|
+
var Pagination$2 = connectPagination(PaginationWidget);
|
|
12548
12431
|
|
|
12549
|
-
var cx$
|
|
12432
|
+
var cx$e = createClassNames('PoweredBy');
|
|
12550
12433
|
/* eslint-disable max-len */
|
|
12551
12434
|
|
|
12552
12435
|
var AlgoliaLogo = function AlgoliaLogo() {
|
|
12553
|
-
return
|
|
12436
|
+
return React__default.createElement("svg", {
|
|
12554
12437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12555
12438
|
baseProfile: "basic",
|
|
12556
12439
|
viewBox: "0 0 1366 362",
|
|
12557
12440
|
width: "100",
|
|
12558
12441
|
height: "27",
|
|
12559
|
-
className: cx$
|
|
12560
|
-
},
|
|
12442
|
+
className: cx$e('logo')
|
|
12443
|
+
}, React__default.createElement("linearGradient", {
|
|
12561
12444
|
id: "g",
|
|
12562
12445
|
x1: "428.258",
|
|
12563
12446
|
x2: "434.145",
|
|
@@ -12565,19 +12448,19 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12565
12448
|
y2: "409.85",
|
|
12566
12449
|
gradientUnits: "userSpaceOnUse",
|
|
12567
12450
|
gradientTransform: "matrix(94.045 0 0 -94.072 -40381.527 38479.52)"
|
|
12568
|
-
},
|
|
12451
|
+
}, React__default.createElement("stop", {
|
|
12569
12452
|
offset: "0",
|
|
12570
12453
|
stopColor: "#00AEFF"
|
|
12571
|
-
}),
|
|
12454
|
+
}), React__default.createElement("stop", {
|
|
12572
12455
|
offset: "1",
|
|
12573
12456
|
stopColor: "#3369E7"
|
|
12574
|
-
})),
|
|
12457
|
+
})), React__default.createElement("path", {
|
|
12575
12458
|
d: "M61.8 15.4h242.8c23.9 0 43.4 19.4 43.4 43.4v242.9c0 23.9-19.4 43.4-43.4 43.4H61.8c-23.9 0-43.4-19.4-43.4-43.4v-243c0-23.9 19.4-43.3 43.4-43.3z",
|
|
12576
12459
|
fill: "url(#g)"
|
|
12577
|
-
}),
|
|
12460
|
+
}), React__default.createElement("path", {
|
|
12578
12461
|
d: "M187 98.7c-51.4 0-93.1 41.7-93.1 93.2S135.6 285 187 285s93.1-41.7 93.1-93.2-41.6-93.1-93.1-93.1zm0 158.8c-36.2 0-65.6-29.4-65.6-65.6s29.4-65.6 65.6-65.6 65.6 29.4 65.6 65.6-29.3 65.6-65.6 65.6zm0-117.8v48.9c0 1.4 1.5 2.4 2.8 1.7l43.4-22.5c1-.5 1.3-1.7.8-2.7-9-15.8-25.7-26.6-45-27.3-1 0-2 .8-2 1.9zm-60.8-35.9l-5.7-5.7c-5.6-5.6-14.6-5.6-20.2 0l-6.8 6.8c-5.6 5.6-5.6 14.6 0 20.2l5.6 5.6c.9.9 2.2.7 3-.2 3.3-4.5 6.9-8.8 10.9-12.8 4.1-4.1 8.3-7.7 12.9-11 1-.6 1.1-2 .3-2.9zM217.5 89V77.7c0-7.9-6.4-14.3-14.3-14.3h-33.3c-7.9 0-14.3 6.4-14.3 14.3v11.6c0 1.3 1.2 2.2 2.5 1.9 9.3-2.7 19.1-4.1 29-4.1 9.5 0 18.9 1.3 28 3.8 1.2.3 2.4-.6 2.4-1.9z",
|
|
12579
12462
|
fill: "#FFFFFF"
|
|
12580
|
-
}),
|
|
12463
|
+
}), React__default.createElement("path", {
|
|
12581
12464
|
d: "M842.5 267.6c0 26.7-6.8 46.2-20.5 58.6-13.7 12.4-34.6 18.6-62.8 18.6-10.3 0-31.7-2-48.8-5.8l6.3-31c14.3 3 33.2 3.8 43.1 3.8 15.7 0 26.9-3.2 33.6-9.6s10-15.9 10-28.5v-6.4c-3.9 1.9-9 3.8-15.3 5.8-6.3 1.9-13.6 2.9-21.8 2.9-10.8 0-20.6-1.7-29.5-5.1-8.9-3.4-16.6-8.4-22.9-15-6.3-6.6-11.3-14.9-14.8-24.8s-5.3-27.6-5.3-40.6c0-12.2 1.9-27.5 5.6-37.7 3.8-10.2 9.2-19 16.5-26.3 7.2-7.3 16-12.9 26.3-17s22.4-6.7 35.5-6.7c12.7 0 24.4 1.6 35.8 3.5 11.4 1.9 21.1 3.9 29 6.1v155.2zm-108.7-77.2c0 16.4 3.6 34.6 10.8 42.2 7.2 7.6 16.5 11.4 27.9 11.4 6.2 0 12.1-.9 17.6-2.6 5.5-1.7 9.9-3.7 13.4-6.1v-97.1c-2.8-.6-14.5-3-25.8-3.3-14.2-.4-25 5.4-32.6 14.7-7.5 9.3-11.3 25.6-11.3 40.8zm294.3 0c0 13.2-1.9 23.2-5.8 34.1s-9.4 20.2-16.5 27.9c-7.1 7.7-15.6 13.7-25.6 17.9s-25.4 6.6-33.1 6.6c-7.7-.1-23-2.3-32.9-6.6-9.9-4.3-18.4-10.2-25.5-17.9-7.1-7.7-12.6-17-16.6-27.9s-6-20.9-6-34.1c0-13.2 1.8-25.9 5.8-36.7 4-10.8 9.6-20 16.8-27.7s15.8-13.6 25.6-17.8c9.9-4.2 20.8-6.2 32.6-6.2s22.7 2.1 32.7 6.2c10 4.2 18.6 10.1 25.6 17.8 7.1 7.7 12.6 16.9 16.6 27.7 4.2 10.8 6.3 23.5 6.3 36.7zm-40 .1c0-16.9-3.7-31-10.9-40.8-7.2-9.9-17.3-14.8-30.2-14.8-12.9 0-23 4.9-30.2 14.8-7.2 9.9-10.7 23.9-10.7 40.8 0 17.1 3.6 28.6 10.8 38.5 7.2 10 17.3 14.9 30.2 14.9 12.9 0 23-5 30.2-14.9 7.2-10 10.8-21.4 10.8-38.5zm127.1 86.4c-64.1.3-64.1-51.8-64.1-60.1L1051 32l39.1-6.2v183.6c0 4.7 0 34.5 25.1 34.6v32.9zm68.9 0h-39.3V108.1l39.3-6.2v175zm-19.7-193.5c13.1 0 23.8-10.6 23.8-23.7S1177.6 36 1164.4 36s-23.8 10.6-23.8 23.7 10.7 23.7 23.8 23.7zm117.4 18.6c12.9 0 23.8 1.6 32.6 4.8 8.8 3.2 15.9 7.7 21.1 13.4s8.9 13.5 11.1 21.7c2.3 8.2 3.4 17.2 3.4 27.1v100.6c-6 1.3-15.1 2.8-27.3 4.6s-25.9 2.7-41.1 2.7c-10.1 0-19.4-1-27.7-2.9-8.4-1.9-15.5-5-21.5-9.3-5.9-4.3-10.5-9.8-13.9-16.6-3.3-6.8-5-16.4-5-26.4 0-9.6 1.9-15.7 5.6-22.3 3.8-6.6 8.9-12 15.3-16.2 6.5-4.2 13.9-7.2 22.4-9s17.4-2.7 26.6-2.7c4.3 0 8.8.3 13.6.8s9.8 1.4 15.2 2.7v-6.4c0-4.5-.5-8.8-1.6-12.8-1.1-4.1-3-7.6-5.6-10.7-2.7-3.1-6.2-5.5-10.6-7.2s-10-3-16.7-3c-9 0-17.2 1.1-24.7 2.4-7.5 1.3-13.7 2.8-18.4 4.5l-4.7-32.1c4.9-1.7 12.2-3.4 21.6-5.1s19.5-2.6 30.3-2.6zm3.3 141.9c12 0 20.9-.7 27.1-1.9v-39.8c-2.2-.6-5.3-1.3-9.4-1.9-4.1-.6-8.6-1-13.6-1-4.3 0-8.7.3-13.1 1-4.4.6-8.4 1.8-11.9 3.5s-6.4 4.1-8.5 7.2c-2.2 3.1-3.2 4.9-3.2 9.6 0 9.2 3.2 14.5 9 18 5.9 3.6 13.7 5.3 23.6 5.3zM512.9 103c12.9 0 23.8 1.6 32.6 4.8 8.8 3.2 15.9 7.7 21.1 13.4 5.3 5.8 8.9 13.5 11.1 21.7 2.3 8.2 3.4 17.2 3.4 27.1v100.6c-6 1.3-15.1 2.8-27.3 4.6-12.2 1.8-25.9 2.7-41.1 2.7-10.1 0-19.4-1-27.7-2.9-8.4-1.9-15.5-5-21.5-9.3-5.9-4.3-10.5-9.8-13.9-16.6-3.3-6.8-5-16.4-5-26.4 0-9.6 1.9-15.7 5.6-22.3 3.8-6.6 8.9-12 15.3-16.2 6.5-4.2 13.9-7.2 22.4-9s17.4-2.7 26.6-2.7c4.3 0 8.8.3 13.6.8 4.7.5 9.8 1.4 15.2 2.7v-6.4c0-4.5-.5-8.8-1.6-12.8-1.1-4.1-3-7.6-5.6-10.7-2.7-3.1-6.2-5.5-10.6-7.2-4.4-1.7-10-3-16.7-3-9 0-17.2 1.1-24.7 2.4-7.5 1.3-13.7 2.8-18.4 4.5l-4.7-32.1c4.9-1.7 12.2-3.4 21.6-5.1 9.4-1.8 19.5-2.6 30.3-2.6zm3.4 142c12 0 20.9-.7 27.1-1.9v-39.8c-2.2-.6-5.3-1.3-9.4-1.9-4.1-.6-8.6-1-13.6-1-4.3 0-8.7.3-13.1 1-4.4.6-8.4 1.8-11.9 3.5s-6.4 4.1-8.5 7.2c-2.2 3.1-3.2 4.9-3.2 9.6 0 9.2 3.2 14.5 9 18s13.7 5.3 23.6 5.3zm158.5 31.9c-64.1.3-64.1-51.8-64.1-60.1L610.6 32l39.1-6.2v183.6c0 4.7 0 34.5 25.1 34.6v32.9z",
|
|
12582
12465
|
fill: "#182359"
|
|
12583
12466
|
}));
|
|
@@ -12603,17 +12486,17 @@ function (_Component) {
|
|
|
12603
12486
|
url = _this$props.url,
|
|
12604
12487
|
translate = _this$props.translate,
|
|
12605
12488
|
className = _this$props.className;
|
|
12606
|
-
return
|
|
12607
|
-
className: classnames(cx$
|
|
12608
|
-
},
|
|
12609
|
-
className: cx$
|
|
12610
|
-
}, translate('searchBy')), ' ',
|
|
12489
|
+
return React__default.createElement("div", {
|
|
12490
|
+
className: classnames(cx$e(''), className)
|
|
12491
|
+
}, React__default.createElement("span", {
|
|
12492
|
+
className: cx$e('text')
|
|
12493
|
+
}, translate('searchBy')), ' ', React__default.createElement("a", {
|
|
12611
12494
|
href: url,
|
|
12612
12495
|
target: "_blank",
|
|
12613
|
-
className: cx$
|
|
12496
|
+
className: cx$e('link'),
|
|
12614
12497
|
"aria-label": "Algolia",
|
|
12615
12498
|
rel: "noopener noreferrer"
|
|
12616
|
-
},
|
|
12499
|
+
}, React__default.createElement(AlgoliaLogo, null)));
|
|
12617
12500
|
}
|
|
12618
12501
|
}]);
|
|
12619
12502
|
|
|
@@ -12663,7 +12546,7 @@ var PoweredBy$1 = translatable({
|
|
|
12663
12546
|
|
|
12664
12547
|
connectPoweredBy(PoweredBy$1);
|
|
12665
12548
|
|
|
12666
|
-
var cx$
|
|
12549
|
+
var cx$f = createClassNames('RangeInput');
|
|
12667
12550
|
var RawRangeInput =
|
|
12668
12551
|
/*#__PURE__*/
|
|
12669
12552
|
function (_Component) {
|
|
@@ -12742,13 +12625,13 @@ function (_Component) {
|
|
|
12742
12625
|
max = _this$normalizeRangeF.max;
|
|
12743
12626
|
|
|
12744
12627
|
var step = 1 / Math.pow(10, precision);
|
|
12745
|
-
return
|
|
12746
|
-
className: classnames(cx$
|
|
12747
|
-
},
|
|
12748
|
-
className: cx$
|
|
12628
|
+
return React__default.createElement("div", {
|
|
12629
|
+
className: classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12630
|
+
}, React__default.createElement("form", {
|
|
12631
|
+
className: cx$f('form'),
|
|
12749
12632
|
onSubmit: this.onSubmit
|
|
12750
|
-
},
|
|
12751
|
-
className: cx$
|
|
12633
|
+
}, React__default.createElement("input", {
|
|
12634
|
+
className: cx$f('input', 'input--min'),
|
|
12752
12635
|
type: "number",
|
|
12753
12636
|
min: min,
|
|
12754
12637
|
max: max,
|
|
@@ -12761,10 +12644,10 @@ function (_Component) {
|
|
|
12761
12644
|
from: e.currentTarget.value
|
|
12762
12645
|
});
|
|
12763
12646
|
}
|
|
12764
|
-
}),
|
|
12765
|
-
className: cx$
|
|
12766
|
-
}, translate('separator')),
|
|
12767
|
-
className: cx$
|
|
12647
|
+
}), React__default.createElement("span", {
|
|
12648
|
+
className: cx$f('separator')
|
|
12649
|
+
}, translate('separator')), React__default.createElement("input", {
|
|
12650
|
+
className: cx$f('input', 'input--max'),
|
|
12768
12651
|
type: "number",
|
|
12769
12652
|
min: min,
|
|
12770
12653
|
max: max,
|
|
@@ -12777,8 +12660,8 @@ function (_Component) {
|
|
|
12777
12660
|
to: e.currentTarget.value
|
|
12778
12661
|
});
|
|
12779
12662
|
}
|
|
12780
|
-
}),
|
|
12781
|
-
className: cx$
|
|
12663
|
+
}), React__default.createElement("button", {
|
|
12664
|
+
className: cx$f('submit'),
|
|
12782
12665
|
type: "submit"
|
|
12783
12666
|
}, translate('submit'))));
|
|
12784
12667
|
}
|
|
@@ -12854,12 +12737,12 @@ var RangeInput = translatable({
|
|
|
12854
12737
|
*/
|
|
12855
12738
|
|
|
12856
12739
|
var RangeInputWidget = function RangeInputWidget(props) {
|
|
12857
|
-
return
|
|
12740
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RangeInput, props));
|
|
12858
12741
|
};
|
|
12859
12742
|
|
|
12860
12743
|
connectRange(RangeInputWidget);
|
|
12861
12744
|
|
|
12862
|
-
var cx$
|
|
12745
|
+
var cx$g = createClassNames('RatingMenu');
|
|
12863
12746
|
|
|
12864
12747
|
var RatingMenu =
|
|
12865
12748
|
/*#__PURE__*/
|
|
@@ -12910,14 +12793,14 @@ function (_Component) {
|
|
|
12910
12793
|
rating++;
|
|
12911
12794
|
}
|
|
12912
12795
|
|
|
12913
|
-
icons.push([
|
|
12796
|
+
icons.push([React__default.createElement("svg", {
|
|
12914
12797
|
key: icon,
|
|
12915
|
-
className: cx$
|
|
12798
|
+
className: cx$g('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
|
|
12916
12799
|
"aria-hidden": "true",
|
|
12917
12800
|
width: "24",
|
|
12918
12801
|
height: "24"
|
|
12919
|
-
},
|
|
12920
|
-
xlinkHref: "#".concat(cx$
|
|
12802
|
+
}, React__default.createElement("use", {
|
|
12803
|
+
xlinkHref: "#".concat(cx$g(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
|
|
12921
12804
|
})), ' ']);
|
|
12922
12805
|
} // The last item of the list (the default item), should not
|
|
12923
12806
|
// be clickable if it is selected.
|
|
@@ -12931,17 +12814,17 @@ function (_Component) {
|
|
|
12931
12814
|
}),
|
|
12932
12815
|
onClick: this.onClick.bind(this, lowerBound, max)
|
|
12933
12816
|
};
|
|
12934
|
-
return
|
|
12817
|
+
return React__default.createElement("li", {
|
|
12935
12818
|
key: lowerBound,
|
|
12936
|
-
className: cx$
|
|
12937
|
-
},
|
|
12938
|
-
className: cx$
|
|
12819
|
+
className: cx$g('item', selected && 'item--selected', disabled && 'item--disabled')
|
|
12820
|
+
}, React__default.createElement("a", _extends({
|
|
12821
|
+
className: cx$g('link'),
|
|
12939
12822
|
"aria-label": "".concat(rating).concat(translate('ratingLabel'))
|
|
12940
|
-
}, onClickHandler), icons,
|
|
12941
|
-
className: cx$
|
|
12823
|
+
}, onClickHandler), icons, React__default.createElement("span", {
|
|
12824
|
+
className: cx$g('label'),
|
|
12942
12825
|
"aria-hidden": "true"
|
|
12943
|
-
}, translate('ratingLabel')), ' ',
|
|
12944
|
-
className: cx$
|
|
12826
|
+
}, translate('ratingLabel')), ' ', React__default.createElement("span", {
|
|
12827
|
+
className: cx$g('count')
|
|
12945
12828
|
}, count)));
|
|
12946
12829
|
}
|
|
12947
12830
|
}, {
|
|
@@ -12973,7 +12856,7 @@ function (_Component) {
|
|
|
12973
12856
|
start: 0,
|
|
12974
12857
|
end: Math.max(inclusiveLength, 0)
|
|
12975
12858
|
}).map(function (index) {
|
|
12976
|
-
var element = find(values, function (item) {
|
|
12859
|
+
var element = find$2(values, function (item) {
|
|
12977
12860
|
return item.value === limitMax - index;
|
|
12978
12861
|
});
|
|
12979
12862
|
var placeholder = {
|
|
@@ -12996,25 +12879,25 @@ function (_Component) {
|
|
|
12996
12879
|
createURL: createURL
|
|
12997
12880
|
});
|
|
12998
12881
|
});
|
|
12999
|
-
return
|
|
13000
|
-
className: classnames(cx$
|
|
13001
|
-
},
|
|
12882
|
+
return React__default.createElement("div", {
|
|
12883
|
+
className: classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
12884
|
+
}, React__default.createElement("svg", {
|
|
13002
12885
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13003
12886
|
style: {
|
|
13004
12887
|
display: 'none'
|
|
13005
12888
|
}
|
|
13006
|
-
},
|
|
13007
|
-
id: cx$
|
|
12889
|
+
}, React__default.createElement("symbol", {
|
|
12890
|
+
id: cx$g('starSymbol'),
|
|
13008
12891
|
viewBox: "0 0 24 24"
|
|
13009
|
-
},
|
|
12892
|
+
}, React__default.createElement("path", {
|
|
13010
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"
|
|
13011
|
-
})),
|
|
13012
|
-
id: cx$
|
|
12894
|
+
})), React__default.createElement("symbol", {
|
|
12895
|
+
id: cx$g('starEmptySymbol'),
|
|
13013
12896
|
viewBox: "0 0 24 24"
|
|
13014
|
-
},
|
|
12897
|
+
}, React__default.createElement("path", {
|
|
13015
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"
|
|
13016
|
-
}))),
|
|
13017
|
-
className: cx$
|
|
12899
|
+
}))), React__default.createElement("ul", {
|
|
12900
|
+
className: cx$g('list', !canRefine && 'list--noRefinement')
|
|
13018
12901
|
}, items));
|
|
13019
12902
|
}
|
|
13020
12903
|
}]);
|
|
@@ -13097,12 +12980,12 @@ var RatingMenu$1 = translatable({
|
|
|
13097
12980
|
*/
|
|
13098
12981
|
|
|
13099
12982
|
var RatingMenuWidget = function RatingMenuWidget(props) {
|
|
13100
|
-
return
|
|
12983
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RatingMenu$1, props));
|
|
13101
12984
|
};
|
|
13102
12985
|
|
|
13103
12986
|
connectRange(RatingMenuWidget);
|
|
13104
12987
|
|
|
13105
|
-
var cx$
|
|
12988
|
+
var cx$h = createClassNames('RefinementList');
|
|
13106
12989
|
|
|
13107
12990
|
var RefinementList$1 =
|
|
13108
12991
|
/*#__PURE__*/
|
|
@@ -13133,23 +13016,23 @@ function (_Component) {
|
|
|
13133
13016
|
});
|
|
13134
13017
|
|
|
13135
13018
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13136
|
-
var label = _this.props.isFromSearch ?
|
|
13019
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
13137
13020
|
attribute: "label",
|
|
13138
13021
|
hit: item
|
|
13139
13022
|
}) : item.label;
|
|
13140
|
-
return
|
|
13141
|
-
className: cx$
|
|
13142
|
-
},
|
|
13143
|
-
className: cx$
|
|
13023
|
+
return React__default.createElement("label", {
|
|
13024
|
+
className: cx$h('label')
|
|
13025
|
+
}, React__default.createElement("input", {
|
|
13026
|
+
className: cx$h('checkbox'),
|
|
13144
13027
|
type: "checkbox",
|
|
13145
13028
|
checked: item.isRefined,
|
|
13146
13029
|
onChange: function onChange() {
|
|
13147
13030
|
return _this.selectItem(item, resetQuery);
|
|
13148
13031
|
}
|
|
13149
|
-
}),
|
|
13150
|
-
className: cx$
|
|
13151
|
-
}, label), ' ',
|
|
13152
|
-
className: cx$
|
|
13032
|
+
}), React__default.createElement("span", {
|
|
13033
|
+
className: cx$h('labelText')
|
|
13034
|
+
}, label), ' ', React__default.createElement("span", {
|
|
13035
|
+
className: cx$h('count')
|
|
13153
13036
|
}, item.count.toLocaleString()));
|
|
13154
13037
|
});
|
|
13155
13038
|
|
|
@@ -13170,10 +13053,10 @@ function (_Component) {
|
|
|
13170
13053
|
searchable = _this$props.searchable,
|
|
13171
13054
|
canRefine = _this$props.canRefine,
|
|
13172
13055
|
className = _this$props.className;
|
|
13173
|
-
return
|
|
13056
|
+
return React__default.createElement(List, {
|
|
13174
13057
|
renderItem: this.renderItem,
|
|
13175
13058
|
selectItem: this.selectItem,
|
|
13176
|
-
cx: cx$
|
|
13059
|
+
cx: cx$h,
|
|
13177
13060
|
translate: translate,
|
|
13178
13061
|
items: items,
|
|
13179
13062
|
showMore: showMore,
|
|
@@ -13282,12 +13165,12 @@ var RefinementList$2 = translatable({
|
|
|
13282
13165
|
*/
|
|
13283
13166
|
|
|
13284
13167
|
var RefinementListWidget = function RefinementListWidget(props) {
|
|
13285
|
-
return
|
|
13168
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RefinementList$2, props));
|
|
13286
13169
|
};
|
|
13287
13170
|
|
|
13288
|
-
var RefinementList = connectRefinementList(RefinementListWidget);
|
|
13171
|
+
var RefinementList$3 = connectRefinementList(RefinementListWidget);
|
|
13289
13172
|
|
|
13290
|
-
var cx$
|
|
13173
|
+
var cx$i = createClassNames('ScrollTo');
|
|
13291
13174
|
|
|
13292
13175
|
var ScrollTo =
|
|
13293
13176
|
/*#__PURE__*/
|
|
@@ -13316,11 +13199,11 @@ function (_Component) {
|
|
|
13316
13199
|
value: function render() {
|
|
13317
13200
|
var _this = this;
|
|
13318
13201
|
|
|
13319
|
-
return
|
|
13202
|
+
return React__default.createElement("div", {
|
|
13320
13203
|
ref: function ref(_ref) {
|
|
13321
13204
|
return _this.el = _ref;
|
|
13322
13205
|
},
|
|
13323
|
-
className: cx$
|
|
13206
|
+
className: cx$i('')
|
|
13324
13207
|
}, this.props.children);
|
|
13325
13208
|
}
|
|
13326
13209
|
}]);
|
|
@@ -13414,14 +13297,14 @@ connectScrollTo(ScrollTo);
|
|
|
13414
13297
|
* );
|
|
13415
13298
|
*/
|
|
13416
13299
|
|
|
13417
|
-
var SearchBox = connectSearchBox(SearchBox$
|
|
13300
|
+
var SearchBox$2 = connectSearchBox(SearchBox$1);
|
|
13418
13301
|
|
|
13419
|
-
var cx$
|
|
13302
|
+
var cx$j = createClassNames('Snippet');
|
|
13420
13303
|
|
|
13421
13304
|
var Snippet = function Snippet(props) {
|
|
13422
|
-
return
|
|
13305
|
+
return React__default.createElement(Highlighter, _extends({}, props, {
|
|
13423
13306
|
highlightProperty: "_snippetResult",
|
|
13424
|
-
cx: cx$
|
|
13307
|
+
cx: cx$j
|
|
13425
13308
|
}));
|
|
13426
13309
|
};
|
|
13427
13310
|
|
|
@@ -13471,11 +13354,11 @@ var Snippet = function Snippet(props) {
|
|
|
13471
13354
|
|
|
13472
13355
|
connectHighlight(Snippet);
|
|
13473
13356
|
|
|
13474
|
-
var cx$
|
|
13357
|
+
var cx$k = createClassNames('RelevantSort');
|
|
13475
13358
|
|
|
13476
13359
|
var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
|
|
13477
13360
|
var isRelevantSorted = _ref.isRelevantSorted;
|
|
13478
|
-
return
|
|
13361
|
+
return React__default.createElement("span", null, isRelevantSorted ? 'See all results' : 'See relevant results');
|
|
13479
13362
|
};
|
|
13480
13363
|
|
|
13481
13364
|
var RelevantSort = function RelevantSort(_ref2) {
|
|
@@ -13487,18 +13370,18 @@ var RelevantSort = function RelevantSort(_ref2) {
|
|
|
13487
13370
|
ButtonTextComponent = _ref2$buttonTextCompo === void 0 ? DefaultButtonTextComponent : _ref2$buttonTextCompo,
|
|
13488
13371
|
TextComponent = _ref2.textComponent,
|
|
13489
13372
|
refine = _ref2.refine;
|
|
13490
|
-
return !isVirtualReplica ? null :
|
|
13491
|
-
className: classnames(cx$
|
|
13492
|
-
},
|
|
13493
|
-
className: cx$
|
|
13494
|
-
}, TextComponent &&
|
|
13373
|
+
return !isVirtualReplica ? null : React__default.createElement("div", {
|
|
13374
|
+
className: classnames(cx$k(''), className)
|
|
13375
|
+
}, React__default.createElement("div", {
|
|
13376
|
+
className: cx$k('text')
|
|
13377
|
+
}, TextComponent && React__default.createElement(TextComponent, {
|
|
13495
13378
|
isRelevantSorted: isRelevantSorted
|
|
13496
|
-
})),
|
|
13497
|
-
className: cx$
|
|
13379
|
+
})), React__default.createElement("button", {
|
|
13380
|
+
className: cx$k('button'),
|
|
13498
13381
|
onClick: function onClick() {
|
|
13499
13382
|
return refine(isRelevantSorted ? 0 : undefined);
|
|
13500
13383
|
}
|
|
13501
|
-
},
|
|
13384
|
+
}, React__default.createElement(ButtonTextComponent, {
|
|
13502
13385
|
isRelevantSorted: isRelevantSorted
|
|
13503
13386
|
})));
|
|
13504
13387
|
};
|
|
@@ -13514,7 +13397,7 @@ RelevantSort.propTypes = {
|
|
|
13514
13397
|
|
|
13515
13398
|
connectRelevantSort(RelevantSort);
|
|
13516
13399
|
|
|
13517
|
-
var cx$
|
|
13400
|
+
var cx$l = createClassNames('SortBy');
|
|
13518
13401
|
|
|
13519
13402
|
var SortBy =
|
|
13520
13403
|
/*#__PURE__*/
|
|
@@ -13535,10 +13418,10 @@ function (_Component) {
|
|
|
13535
13418
|
currentRefinement = _this$props.currentRefinement,
|
|
13536
13419
|
refine = _this$props.refine,
|
|
13537
13420
|
className = _this$props.className;
|
|
13538
|
-
return
|
|
13539
|
-
className: classnames(cx$
|
|
13540
|
-
},
|
|
13541
|
-
cx: cx$
|
|
13421
|
+
return React__default.createElement("div", {
|
|
13422
|
+
className: classnames(cx$l(''), className)
|
|
13423
|
+
}, React__default.createElement(Select, {
|
|
13424
|
+
cx: cx$l,
|
|
13542
13425
|
items: items,
|
|
13543
13426
|
selectedItem: currentRefinement,
|
|
13544
13427
|
onSelect: refine
|
|
@@ -13604,7 +13487,7 @@ _defineProperty(SortBy, "defaultProps", {
|
|
|
13604
13487
|
|
|
13605
13488
|
connectSortBy(SortBy);
|
|
13606
13489
|
|
|
13607
|
-
var cx$
|
|
13490
|
+
var cx$m = createClassNames('Stats');
|
|
13608
13491
|
|
|
13609
13492
|
var Stats = function Stats(_ref) {
|
|
13610
13493
|
var _ref$className = _ref.className,
|
|
@@ -13614,10 +13497,10 @@ var Stats = function Stats(_ref) {
|
|
|
13614
13497
|
nbSortedHits = _ref.nbSortedHits,
|
|
13615
13498
|
processingTimeMS = _ref.processingTimeMS,
|
|
13616
13499
|
translate = _ref.translate;
|
|
13617
|
-
return
|
|
13618
|
-
className: classnames(cx$
|
|
13619
|
-
},
|
|
13620
|
-
className: cx$
|
|
13500
|
+
return React__default.createElement("div", {
|
|
13501
|
+
className: classnames(cx$m(''), className)
|
|
13502
|
+
}, React__default.createElement("span", {
|
|
13503
|
+
className: cx$m('text')
|
|
13621
13504
|
}, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
|
|
13622
13505
|
};
|
|
13623
13506
|
|
|
@@ -13665,7 +13548,7 @@ var Stats$1 = translatable({
|
|
|
13665
13548
|
|
|
13666
13549
|
connectStats(Stats$1);
|
|
13667
13550
|
|
|
13668
|
-
var cx$
|
|
13551
|
+
var cx$n = createClassNames('ToggleRefinement');
|
|
13669
13552
|
|
|
13670
13553
|
var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
13671
13554
|
var currentRefinement = _ref.currentRefinement,
|
|
@@ -13673,19 +13556,19 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
|
13673
13556
|
canRefine = _ref.canRefine,
|
|
13674
13557
|
refine = _ref.refine,
|
|
13675
13558
|
className = _ref.className;
|
|
13676
|
-
return
|
|
13677
|
-
className: classnames(cx$
|
|
13678
|
-
},
|
|
13679
|
-
className: cx$
|
|
13680
|
-
},
|
|
13681
|
-
className: cx$
|
|
13559
|
+
return React__default.createElement("div", {
|
|
13560
|
+
className: classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13561
|
+
}, React__default.createElement("label", {
|
|
13562
|
+
className: cx$n('label')
|
|
13563
|
+
}, React__default.createElement("input", {
|
|
13564
|
+
className: cx$n('checkbox'),
|
|
13682
13565
|
type: "checkbox",
|
|
13683
13566
|
checked: currentRefinement,
|
|
13684
13567
|
onChange: function onChange(event) {
|
|
13685
13568
|
return refine(event.target.checked);
|
|
13686
13569
|
}
|
|
13687
|
-
}),
|
|
13688
|
-
className: cx$
|
|
13570
|
+
}), React__default.createElement("span", {
|
|
13571
|
+
className: cx$n('labelText')
|
|
13689
13572
|
}, label)));
|
|
13690
13573
|
};
|
|
13691
13574
|
|
|
@@ -13894,11 +13777,11 @@ function createVoiceSearchHelper(_ref) {
|
|
|
13894
13777
|
};
|
|
13895
13778
|
}
|
|
13896
13779
|
|
|
13897
|
-
var cx$
|
|
13780
|
+
var cx$o = createClassNames('VoiceSearch');
|
|
13898
13781
|
|
|
13899
13782
|
var ButtonSvg = function ButtonSvg(_ref) {
|
|
13900
13783
|
var children = _ref.children;
|
|
13901
|
-
return
|
|
13784
|
+
return React__default.createElement("svg", {
|
|
13902
13785
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13903
13786
|
width: "16",
|
|
13904
13787
|
height: "16",
|
|
@@ -13915,36 +13798,36 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13915
13798
|
var status = _ref2.status,
|
|
13916
13799
|
errorCode = _ref2.errorCode,
|
|
13917
13800
|
isListening = _ref2.isListening;
|
|
13918
|
-
return status === 'error' && errorCode === 'not-allowed' ?
|
|
13801
|
+
return status === 'error' && errorCode === 'not-allowed' ? React__default.createElement(ButtonSvg, null, React__default.createElement("line", {
|
|
13919
13802
|
x1: "1",
|
|
13920
13803
|
y1: "1",
|
|
13921
13804
|
x2: "23",
|
|
13922
13805
|
y2: "23"
|
|
13923
|
-
}),
|
|
13806
|
+
}), React__default.createElement("path", {
|
|
13924
13807
|
d: "M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"
|
|
13925
|
-
}),
|
|
13808
|
+
}), React__default.createElement("path", {
|
|
13926
13809
|
d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"
|
|
13927
|
-
}),
|
|
13810
|
+
}), React__default.createElement("line", {
|
|
13928
13811
|
x1: "12",
|
|
13929
13812
|
y1: "19",
|
|
13930
13813
|
x2: "12",
|
|
13931
13814
|
y2: "23"
|
|
13932
|
-
}),
|
|
13815
|
+
}), React__default.createElement("line", {
|
|
13933
13816
|
x1: "8",
|
|
13934
13817
|
y1: "23",
|
|
13935
13818
|
x2: "16",
|
|
13936
13819
|
y2: "23"
|
|
13937
|
-
})) :
|
|
13820
|
+
})) : React__default.createElement(ButtonSvg, null, React__default.createElement("path", {
|
|
13938
13821
|
d: "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",
|
|
13939
13822
|
fill: isListening ? 'currentColor' : ''
|
|
13940
|
-
}),
|
|
13823
|
+
}), React__default.createElement("path", {
|
|
13941
13824
|
d: "M19 10v2a7 7 0 0 1-14 0v-2"
|
|
13942
|
-
}),
|
|
13825
|
+
}), React__default.createElement("line", {
|
|
13943
13826
|
x1: "12",
|
|
13944
13827
|
y1: "19",
|
|
13945
13828
|
x2: "12",
|
|
13946
13829
|
y2: "23"
|
|
13947
|
-
}),
|
|
13830
|
+
}), React__default.createElement("line", {
|
|
13948
13831
|
x1: "8",
|
|
13949
13832
|
y1: "23",
|
|
13950
13833
|
x2: "16",
|
|
@@ -13954,7 +13837,7 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13954
13837
|
|
|
13955
13838
|
var DefaultStatus = function DefaultStatus(_ref3) {
|
|
13956
13839
|
var transcript = _ref3.transcript;
|
|
13957
|
-
return
|
|
13840
|
+
return React__default.createElement("p", null, transcript);
|
|
13958
13841
|
};
|
|
13959
13842
|
|
|
13960
13843
|
var VoiceSearch =
|
|
@@ -14039,17 +13922,17 @@ function (_Component) {
|
|
|
14039
13922
|
isSpeechFinal: isSpeechFinal,
|
|
14040
13923
|
isBrowserSupported: isBrowserSupported()
|
|
14041
13924
|
};
|
|
14042
|
-
return
|
|
14043
|
-
className: cx$
|
|
14044
|
-
},
|
|
14045
|
-
className: cx$
|
|
13925
|
+
return React__default.createElement("div", {
|
|
13926
|
+
className: cx$o('')
|
|
13927
|
+
}, React__default.createElement("button", {
|
|
13928
|
+
className: cx$o('button'),
|
|
14046
13929
|
type: "button",
|
|
14047
13930
|
title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
|
|
14048
13931
|
onClick: this.onClick,
|
|
14049
13932
|
disabled: !isBrowserSupported()
|
|
14050
|
-
},
|
|
14051
|
-
className: cx$
|
|
14052
|
-
},
|
|
13933
|
+
}, React__default.createElement(ButtonTextComponent, innerProps)), React__default.createElement("div", {
|
|
13934
|
+
className: cx$o('status')
|
|
13935
|
+
}, React__default.createElement(StatusComponent, innerProps)));
|
|
14053
13936
|
}
|
|
14054
13937
|
}, {
|
|
14055
13938
|
key: "componentWillUnmount",
|
|
@@ -14076,14 +13959,14 @@ var VoiceSearch$1 = translatable({
|
|
|
14076
13959
|
|
|
14077
13960
|
connectVoiceSearch(VoiceSearch$1);
|
|
14078
13961
|
|
|
14079
|
-
var cx = createClassNames('QueryRuleCustomData');
|
|
13962
|
+
var cx$p = createClassNames('QueryRuleCustomData');
|
|
14080
13963
|
|
|
14081
13964
|
var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
14082
13965
|
var items = _ref.items,
|
|
14083
13966
|
className = _ref.className,
|
|
14084
13967
|
children = _ref.children;
|
|
14085
|
-
return
|
|
14086
|
-
className: classnames(cx(''), className)
|
|
13968
|
+
return React__default.createElement("div", {
|
|
13969
|
+
className: classnames(cx$p(''), className)
|
|
14087
13970
|
}, children({
|
|
14088
13971
|
items: items
|
|
14089
13972
|
}));
|
|
@@ -14096,7 +13979,7 @@ QueryRuleCustomData.propTypes = {
|
|
|
14096
13979
|
};
|
|
14097
13980
|
|
|
14098
13981
|
var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
14099
|
-
return
|
|
13982
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(QueryRuleCustomData, props));
|
|
14100
13983
|
};
|
|
14101
13984
|
|
|
14102
13985
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
@@ -14120,57 +14003,57 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14120
14003
|
|
|
14121
14004
|
var hit = props.hit;
|
|
14122
14005
|
if (moment().isSameOrBefore(props.hit.pubDateSort)) return null;
|
|
14123
|
-
return
|
|
14006
|
+
return React__default.createElement(
|
|
14124
14007
|
'div',
|
|
14125
14008
|
{ key: hit.url, className: 'hitResult ' + styles.article },
|
|
14126
|
-
|
|
14009
|
+
React__default.createElement(
|
|
14127
14010
|
'a',
|
|
14128
14011
|
{ href: '/view/' + hit.url, style: this.props.variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14129
|
-
|
|
14012
|
+
React__default.createElement(
|
|
14130
14013
|
'div',
|
|
14131
14014
|
{ className: styles.thumb },
|
|
14132
|
-
|
|
14015
|
+
React__default.createElement(
|
|
14133
14016
|
'figure',
|
|
14134
14017
|
null,
|
|
14135
|
-
|
|
14018
|
+
React__default.createElement(
|
|
14136
14019
|
LazyLoad,
|
|
14137
14020
|
{ once: true },
|
|
14138
|
-
|
|
14139
|
-
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$
|
|
14021
|
+
React__default.createElement('img', {
|
|
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
|
|
14140
14023
|
})
|
|
14141
14024
|
)
|
|
14142
14025
|
)
|
|
14143
14026
|
)
|
|
14144
14027
|
),
|
|
14145
|
-
|
|
14028
|
+
React__default.createElement(
|
|
14146
14029
|
'div',
|
|
14147
14030
|
{ className: styles.info, style: this.props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14148
|
-
|
|
14031
|
+
React__default.createElement(
|
|
14149
14032
|
'a',
|
|
14150
14033
|
{ href: '/view/' + hit.url },
|
|
14151
|
-
|
|
14034
|
+
React__default.createElement(
|
|
14152
14035
|
'h2',
|
|
14153
14036
|
null,
|
|
14154
14037
|
hit.title
|
|
14155
14038
|
)
|
|
14156
14039
|
),
|
|
14157
|
-
hit.pubDateSort &&
|
|
14040
|
+
hit.pubDateSort && React__default.createElement(
|
|
14158
14041
|
'p',
|
|
14159
14042
|
{ className: styles.published },
|
|
14160
14043
|
moment(hit.pubDateSort).format('MMMM Do YYYY')
|
|
14161
14044
|
),
|
|
14162
|
-
hit.authorMapping && hit.authorMapping.length > 0 &&
|
|
14045
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default.createElement(
|
|
14163
14046
|
'p',
|
|
14164
14047
|
{ className: styles.author },
|
|
14165
14048
|
hit.authorMapping.map(function (author) {
|
|
14166
|
-
return
|
|
14049
|
+
return React__default.createElement(
|
|
14167
14050
|
'span',
|
|
14168
14051
|
null,
|
|
14169
14052
|
author.displayName
|
|
14170
14053
|
);
|
|
14171
14054
|
})
|
|
14172
14055
|
),
|
|
14173
|
-
hit.summary &&
|
|
14056
|
+
hit.summary && React__default.createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14174
14057
|
)
|
|
14175
14058
|
);
|
|
14176
14059
|
}
|
|
@@ -14183,10 +14066,10 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14183
14066
|
styles: this.props.deckStyles,
|
|
14184
14067
|
client: this.props.sanityClient
|
|
14185
14068
|
};
|
|
14186
|
-
return
|
|
14187
|
-
|
|
14069
|
+
return React__default.createElement(
|
|
14070
|
+
React__default.Fragment,
|
|
14188
14071
|
null,
|
|
14189
|
-
|
|
14072
|
+
React__default.createElement(
|
|
14190
14073
|
InstantSearch,
|
|
14191
14074
|
_extends$1({
|
|
14192
14075
|
searchClient: this.props.searchClient,
|
|
@@ -14197,29 +14080,29 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14197
14080
|
indexName: this.props.indexName,
|
|
14198
14081
|
onSearchParameters: this.props.onSearchParameters
|
|
14199
14082
|
}, this.props),
|
|
14200
|
-
|
|
14201
|
-
|
|
14202
|
-
this.props.refinementAttributes &&
|
|
14083
|
+
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14084
|
+
React__default.createElement(SearchBox$2, null),
|
|
14085
|
+
this.props.refinementAttributes && React__default.createElement(
|
|
14203
14086
|
'div',
|
|
14204
14087
|
{ className: 'search_refinement' },
|
|
14205
14088
|
this.props.refinementAttributes.map(function (item, index) {
|
|
14206
|
-
return
|
|
14089
|
+
return React__default.createElement(
|
|
14207
14090
|
DropdownButton,
|
|
14208
14091
|
{ title: item.title },
|
|
14209
|
-
|
|
14092
|
+
React__default.createElement(RefinementList$3, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
|
|
14210
14093
|
);
|
|
14211
14094
|
})
|
|
14212
14095
|
),
|
|
14213
|
-
|
|
14096
|
+
React__default.createElement(
|
|
14214
14097
|
'div',
|
|
14215
14098
|
{ className: 'AlgoliaResults' },
|
|
14216
|
-
|
|
14099
|
+
React__default.createElement(Hits$1, { hitComponent: function hitComponent(hit) {
|
|
14217
14100
|
return _this2.Deck(_extends$1({}, hit, { propsObj: propsObj }));
|
|
14218
14101
|
} })
|
|
14219
14102
|
),
|
|
14220
|
-
|
|
14103
|
+
React__default.createElement(Pagination$2, null)
|
|
14221
14104
|
),
|
|
14222
|
-
|
|
14105
|
+
React__default.createElement(
|
|
14223
14106
|
'style',
|
|
14224
14107
|
{ jsx: 'true' },
|
|
14225
14108
|
'\n .hitResult {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-bottom: 1rem;\n border-bottom: 1px solid #00000024;\n padding: 1rem 0;\n }\n .hitResult > a:first-child {\n width: 30%;\n }\n .hitResult > a:first-child > div{\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n .hitResult > div:last-child > a {\n margin-bottom: .5rem;\n width: 100%;\n }\n @media only screen and (max-width: 568px) {\n .hitResult {\n flex-direction: column;\n align-items: center;\n border: none;\n padding: 0;\n }\n .hitResult > a:first-child {\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n }\n .AlgoliaResults {\n padding-left: 15px;\n margin-top: 3rem;\n }\n\n .search_refinement {\n display: flex;\n margin: 2rem 0;\n }\n\n .search_refinement > div {\n padding-right: 1rem;\n max-height: 500px;\n }\n\n .ais-Hits-list {\n margin: 0;\n list-style: none;\n padding-inline-start: 0;\n }\n .ais-Pagination-list {\n list-style: none;\n }\n .ais-Pagination-list {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n .ais-Pagination-item + .ais-Pagination-item {\n margin-left: 0.3rem;\n }\n .ais-Pagination-link {\n padding: 0.3rem 0.6rem;\n display: block;\n border: 1px solid var(--search-primary);\n border-radius: 5px;\n transition: background-color 0.2s ease-out;\n }\n .ais-Pagination-link:focus,\n .ais-Pagination-link:hover {\n background-color: var(--search-secondary);\n color: #fff;\n }\n .ais-Pagination-item--disabled .ais-Pagination-link {\n opacity: 0.6;\n cursor: not-allowed;\n color: var(--search-secondary);\n }\n .ais-Pagination-item--disabled .ais-Pagination-link:focus,\n .ais-Pagination-item--disabled .ais-Pagination-link:hover {\n color: #fff;\n background-color: var(--search-secondary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link {\n color: #fff;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link:focus,\n .ais-Pagination-item--selected .ais-Pagination-link:hover {\n color: #fff;\n }\n .ais-Pagination-list,\n .ais-Results-list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .ais-Pagination-list,\n .ais-PoweredBy,\n .ais-RangeInput-form,\n .ais-RatingMenu-link {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .ais-RefinementList-item {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .ais-RefinementList-list {\n margin: 0;\n padding: 0 1rem;\n width: max-content;\n }\n .ais-SearchBox-form {\n width: 100%;\n border-radius: 5px;\n height: 48px;\n }\n .ais-SearchBox-input {\n padding: 0.5rem;\n border-radius: 5px;\n width: calc(100% - 150px);\n height: 48px;\n border: 0;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit {\n width: 78px;\n border-radius: 5px;\n padding: 7px;\n margin-left: 5px;\n height: 48px;\n background-color: var(--search-primary);\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit > svg {\n fill: #fff;\n }\n .search_refinement > .dropdown > button {\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n\n .ais-SearchBox-reset {\n height: 48px;\n width: 48px;\n color: #fff;\n background-color: var(--search-primary);\n border: 0;\n margin-left: 5px;\n border-radius: 5px;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-reset > svg {\n fill: #fff;\n }\n .ais-RefinementList-checkbox {\n margin-right: 5px;\n }\n\n .ais-RefinementList-showMore {\n padding: 0.5rem;\n border: 0;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n color: #fff;\n border: 1px solid;\n border-radius: 5px;\n margin-left: 1rem;\n }\n '
|
|
@@ -14229,7 +14112,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14229
14112
|
}]);
|
|
14230
14113
|
|
|
14231
14114
|
return AlgoliaSearch;
|
|
14232
|
-
}(
|
|
14115
|
+
}(React__default.Component);
|
|
14233
14116
|
|
|
14234
14117
|
AlgoliaSearch.propTypes = {
|
|
14235
14118
|
searchState: PropTypes.object,
|