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