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