@mjhls/mjh-framework 1.0.810-disable-social-test → 1.0.811-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -31
- package/dist/cjs/AD300x250x600.js +30 -31
- package/dist/cjs/AD728x90.js +33 -34
- package/dist/cjs/ADFloatingFooter.js +32 -33
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -33
- package/dist/cjs/{ADInfeed-77f334bb.js → ADInfeed-7c4b33b3.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -33
- package/dist/cjs/ADSponsoredResources.js +32 -33
- package/dist/cjs/ADWebcast.js +32 -33
- package/dist/cjs/ADWelcome.js +33 -34
- package/dist/cjs/{ADlgInfeed-0664c67f.js → ADlgInfeed-563e0168.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +35 -36
- package/dist/cjs/AdSlotsProvider.js +911 -20
- package/dist/cjs/AlgoliaSearch.js +1066 -1085
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +57 -58
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/Auth.js +462 -686
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -62
- package/dist/cjs/ConferenceArticleCard.js +38 -39
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +103 -107
- package/dist/cjs/DeckQueue.js +88 -92
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
- package/dist/cjs/EventsDeck.js +152 -159
- package/dist/cjs/ExternalResources.js +80 -81
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +178 -182
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +139 -144
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +70 -71
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +71 -76
- package/dist/cjs/IssueLanding.js +71 -72
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +80 -81
- package/dist/cjs/MediaSeriesLanding.js +1123 -1114
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +147 -152
- package/dist/cjs/NavNative.js +139 -147
- package/dist/cjs/NavNormal.js +47 -52
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +108 -109
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +41 -42
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +138 -142
- package/dist/cjs/QueueDeckExpanded.js +294 -294
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +52 -53
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-4abb21b4.js} +41 -42
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-97dd19a5.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -65
- package/dist/cjs/TaxonomyDescription.js +54 -55
- package/dist/cjs/TemplateNormal.js +76 -77
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +29 -30
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +73 -77
- package/dist/cjs/VideoSeriesCard.js +33 -34
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +262 -265
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +66 -67
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-9d158713.js → extends-0a918631.js} +8 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-c8081c76.js → getTargeting-021d644c.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-667c091e.js → index-7340b76d.js} +1261 -1059
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +162 -166
- package/dist/cjs/{inherits-3ff1b657.js → inherits-9953db94.js} +25 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -27
- package/dist/esm/AD300x250x600.js +27 -27
- package/dist/esm/AD728x90.js +30 -30
- package/dist/esm/ADFloatingFooter.js +29 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -29
- package/dist/esm/{ADInfeed-6ed88032.js → ADInfeed-31055afd.js} +11 -11
- package/dist/esm/ADSkyscraper.js +29 -29
- package/dist/esm/ADSponsoredResources.js +29 -29
- package/dist/esm/ADWebcast.js +29 -29
- package/dist/esm/ADWelcome.js +30 -30
- package/dist/esm/{ADlgInfeed-e02d1d98.js → ADlgInfeed-dcb27a6c.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -27
- package/dist/esm/AdSlotsProvider.js +909 -17
- package/dist/esm/AlgoliaSearch.js +717 -735
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +445 -665
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +56 -56
- package/dist/esm/ConferenceArticleCard.js +34 -34
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +97 -97
- package/dist/esm/DeckQueue.js +82 -82
- package/dist/esm/{Dfp-43f121ff.js → Dfp-b7236041.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +170 -170
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +115 -115
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +67 -67
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +60 -60
- package/dist/esm/IssueDeck.js +64 -64
- package/dist/esm/IssueLanding.js +68 -68
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +77 -77
- package/dist/esm/MediaSeriesLanding.js +850 -838
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/NavNormal.js +38 -38
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +104 -104
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +38 -38
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +52 -52
- package/dist/esm/PublicationLanding.js +125 -125
- package/dist/esm/QueueDeckExpanded.js +274 -274
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-36be7223.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db5ba548.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -55
- package/dist/esm/TaxonomyDescription.js +49 -49
- package/dist/esm/TemplateNormal.js +72 -72
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +26 -26
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +66 -66
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +41 -41
- package/dist/esm/VideoSeriesListing.js +73 -73
- package/dist/esm/View.js +246 -245
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +50 -50
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-f076879e.js → extends-6f2fcc99.js} +8 -8
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-2302c1b4.js → getTargeting-82e86707.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-d2fb744b.js → index-73a91c0b.js} +1201 -992
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +134 -135
- package/dist/esm/{inherits-f71787cf.js → inherits-cf8dde54.js} +20 -20
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +109 -109
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-025fdc78.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-b5c5aac1.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import React, { createContext, Component, Children, version as version$2 } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-67e1773f.js';
|
|
8
|
-
import { E as EventEmitter } from './events-6c3a7a63.js';
|
|
9
|
-
import { DropdownButton } from 'react-bootstrap';
|
|
10
|
-
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
11
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
12
|
-
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
13
|
-
import './_to-object-b50e61c3.js';
|
|
14
|
-
import './_object-pie-133f504a.js';
|
|
15
|
-
import './es6.string.iterator-bc33758b.js';
|
|
16
|
-
import './web.dom.iterable-4109ff68.js';
|
|
17
|
-
import './_is-array-3e99e06e.js';
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
18
4
|
import './_library-528f1934.js';
|
|
19
|
-
import './_object-
|
|
20
|
-
import './
|
|
5
|
+
import './_object-pie-33c40e79.js';
|
|
6
|
+
import { _ as _extends$1 } from './extends-6f2fcc99.js';
|
|
7
|
+
import './_object-sap-964b6feb.js';
|
|
8
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-cf8dde54.js';
|
|
9
|
+
import './define-property-8af5f002.js';
|
|
10
|
+
import './web.dom.iterable-4439f05a.js';
|
|
11
|
+
import { _ as _typeof$1 } from './typeof-6435ba1c.js';
|
|
12
|
+
import './_is-array-58e95429.js';
|
|
13
|
+
import React__default, { createContext, Component, Children, version as version$2 } from 'react';
|
|
14
|
+
import { E as EventEmitter } from './events-6c3a7a63.js';
|
|
15
|
+
import PropTypes from 'prop-types';
|
|
16
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
21
17
|
import 'react-dom';
|
|
18
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
19
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
20
|
+
import { DropdownButton } from 'react-bootstrap';
|
|
21
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
22
22
|
|
|
23
23
|
function _objectWithoutProperties(source, excluded) {
|
|
24
24
|
if (source == null) return {};
|
|
@@ -56,7 +56,7 @@ function _defineProperty(obj, key, value) {
|
|
|
56
56
|
|
|
57
57
|
function _objectSpread(target) {
|
|
58
58
|
for (var i = 1; i < arguments.length; i++) {
|
|
59
|
-
var source = arguments[i] != null ?
|
|
59
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
60
60
|
var ownKeys = Object.keys(source);
|
|
61
61
|
|
|
62
62
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
@@ -95,33 +95,22 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
95
95
|
return Constructor;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
function _typeof(obj) {
|
|
100
|
-
"@babel/helpers - typeof";
|
|
98
|
+
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
|
|
101
99
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
function _typeof(obj) {
|
|
101
|
+
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
|
102
|
+
_typeof = function _typeof(obj) {
|
|
103
|
+
return _typeof2(obj);
|
|
105
104
|
};
|
|
106
|
-
|
|
107
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
108
105
|
} else {
|
|
109
|
-
|
|
110
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :
|
|
106
|
+
_typeof = function _typeof(obj) {
|
|
107
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
|
111
108
|
};
|
|
112
|
-
|
|
113
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
114
109
|
}
|
|
115
110
|
|
|
116
111
|
return _typeof(obj);
|
|
117
112
|
}
|
|
118
113
|
|
|
119
|
-
module.exports = _typeof;
|
|
120
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
var _typeof$1 = unwrapExports(_typeof_1);
|
|
124
|
-
|
|
125
114
|
function _assertThisInitialized(self) {
|
|
126
115
|
if (self === void 0) {
|
|
127
116
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -131,7 +120,7 @@ function _assertThisInitialized(self) {
|
|
|
131
120
|
}
|
|
132
121
|
|
|
133
122
|
function _possibleConstructorReturn(self, call) {
|
|
134
|
-
if (call && (_typeof
|
|
123
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
135
124
|
return call;
|
|
136
125
|
}
|
|
137
126
|
|
|
@@ -145,6 +134,15 @@ function _getPrototypeOf(o) {
|
|
|
145
134
|
return _getPrototypeOf(o);
|
|
146
135
|
}
|
|
147
136
|
|
|
137
|
+
function _setPrototypeOf(o, p) {
|
|
138
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
139
|
+
o.__proto__ = p;
|
|
140
|
+
return o;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
return _setPrototypeOf(o, p);
|
|
144
|
+
}
|
|
145
|
+
|
|
148
146
|
function _inherits(subClass, superClass) {
|
|
149
147
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
150
148
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -295,22 +293,6 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
295
293
|
}
|
|
296
294
|
};
|
|
297
295
|
|
|
298
|
-
function _typeof(obj) {
|
|
299
|
-
"@babel/helpers - typeof";
|
|
300
|
-
|
|
301
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
302
|
-
_typeof = function _typeof(obj) {
|
|
303
|
-
return typeof obj;
|
|
304
|
-
};
|
|
305
|
-
} else {
|
|
306
|
-
_typeof = function _typeof(obj) {
|
|
307
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
return _typeof(obj);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
296
|
// From https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
|
|
315
297
|
var shallowEqual = function shallowEqual(objA, objB) {
|
|
316
298
|
if (objA === objB) {
|
|
@@ -355,7 +337,7 @@ var removeEmptyKey = function removeEmptyKey(obj) {
|
|
|
355
337
|
return;
|
|
356
338
|
}
|
|
357
339
|
|
|
358
|
-
if (!objectHasKeys
|
|
340
|
+
if (!objectHasKeys(value)) {
|
|
359
341
|
delete obj[key];
|
|
360
342
|
} else {
|
|
361
343
|
removeEmptyKey(value);
|
|
@@ -391,7 +373,7 @@ function addQueryID(hits, queryID) {
|
|
|
391
373
|
});
|
|
392
374
|
});
|
|
393
375
|
}
|
|
394
|
-
function find
|
|
376
|
+
function find(array, comparator) {
|
|
395
377
|
if (!Array.isArray(array)) {
|
|
396
378
|
return undefined;
|
|
397
379
|
}
|
|
@@ -404,11 +386,11 @@ function find$2(array, comparator) {
|
|
|
404
386
|
|
|
405
387
|
return undefined;
|
|
406
388
|
}
|
|
407
|
-
function objectHasKeys
|
|
389
|
+
function objectHasKeys(object) {
|
|
408
390
|
return object && Object.keys(object).length > 0;
|
|
409
391
|
} // https://github.com/babel/babel/blob/3aaafae053fa75febb3aa45d45b6f00646e30ba4/packages/babel-helpers/src/helpers.js#L604-L620
|
|
410
392
|
|
|
411
|
-
function omit
|
|
393
|
+
function omit(source, excluded) {
|
|
412
394
|
if (source === null || source === undefined) {
|
|
413
395
|
return {};
|
|
414
396
|
}
|
|
@@ -479,9 +461,9 @@ var instantSearchContext = createContext({
|
|
|
479
461
|
var InstantSearchConsumer = instantSearchContext.Consumer,
|
|
480
462
|
InstantSearchProvider = instantSearchContext.Provider;
|
|
481
463
|
|
|
482
|
-
var _createContext
|
|
483
|
-
IndexConsumer = _createContext
|
|
484
|
-
IndexProvider = _createContext
|
|
464
|
+
var _createContext = createContext(undefined),
|
|
465
|
+
IndexConsumer = _createContext.Consumer,
|
|
466
|
+
IndexProvider = _createContext.Provider;
|
|
485
467
|
|
|
486
468
|
/**
|
|
487
469
|
* Connectors are the HOC used to transform React components
|
|
@@ -694,9 +676,9 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
694
676
|
}, {
|
|
695
677
|
key: "render",
|
|
696
678
|
value: function render() {
|
|
697
|
-
var _this$props = this.props
|
|
698
|
-
_this$props.contextValue
|
|
699
|
-
|
|
679
|
+
var _this$props = this.props,
|
|
680
|
+
contextValue = _this$props.contextValue,
|
|
681
|
+
props = _objectWithoutProperties(_this$props, ["contextValue"]);
|
|
700
682
|
|
|
701
683
|
var providedProps = this.state.providedProps;
|
|
702
684
|
|
|
@@ -711,7 +693,7 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
711
693
|
var searchForFacetValuesProps = typeof connectorDesc.searchForFacetValues === 'function' ? {
|
|
712
694
|
searchForItems: this.searchForFacetValues
|
|
713
695
|
} : {};
|
|
714
|
-
return
|
|
696
|
+
return React__default.createElement(Composed, _extends({}, props, providedProps, refineProps, searchForFacetValuesProps));
|
|
715
697
|
}
|
|
716
698
|
}]);
|
|
717
699
|
|
|
@@ -733,9 +715,9 @@ var createConnectorWithContext = function createConnectorWithContext(connectorDe
|
|
|
733
715
|
var Connector = createConnectorWithoutContext(connectorDesc)(Composed);
|
|
734
716
|
|
|
735
717
|
var ConnectorWrapper = function ConnectorWrapper(props) {
|
|
736
|
-
return
|
|
737
|
-
return
|
|
738
|
-
return
|
|
718
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
719
|
+
return React__default.createElement(IndexConsumer, null, function (indexContextValue) {
|
|
720
|
+
return React__default.createElement(Connector, _extends({
|
|
739
721
|
contextValue: contextValue,
|
|
740
722
|
indexContextValue: indexContextValue
|
|
741
723
|
}, props));
|
|
@@ -847,7 +829,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
847
829
|
});
|
|
848
830
|
}
|
|
849
831
|
|
|
850
|
-
var version
|
|
832
|
+
var version = '6.10.3';
|
|
851
833
|
|
|
852
834
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
853
835
|
return function (props, propName, componentName) {
|
|
@@ -908,7 +890,7 @@ function translatable(defaultTranslations) {
|
|
|
908
890
|
_createClass(Translatable, [{
|
|
909
891
|
key: "render",
|
|
910
892
|
value: function render() {
|
|
911
|
-
return
|
|
893
|
+
return React__default.createElement(Composed, _extends({
|
|
912
894
|
translate: this.translate
|
|
913
895
|
}, this.props));
|
|
914
896
|
}
|
|
@@ -1044,7 +1026,7 @@ function hasRefinements(_ref) {
|
|
|
1044
1026
|
return Object.hasOwnProperty.call(searchState, id);
|
|
1045
1027
|
}
|
|
1046
1028
|
|
|
1047
|
-
function getRefinements
|
|
1029
|
+
function getRefinements(_ref2) {
|
|
1048
1030
|
var multiIndex = _ref2.multiIndex,
|
|
1049
1031
|
indexId = _ref2.indexId,
|
|
1050
1032
|
namespace = _ref2.namespace,
|
|
@@ -1086,7 +1068,7 @@ function getCurrentRefinementValue(props, searchState, context, id, defaultValue
|
|
|
1086
1068
|
var hasRefinementsValue = hasRefinements(args);
|
|
1087
1069
|
|
|
1088
1070
|
if (hasRefinementsValue) {
|
|
1089
|
-
return getRefinements
|
|
1071
|
+
return getRefinements(args);
|
|
1090
1072
|
}
|
|
1091
1073
|
|
|
1092
1074
|
if (props.defaultRefinement) {
|
|
@@ -1127,10 +1109,10 @@ function cleanUpValueWithSingleIndex(_ref3) {
|
|
|
1127
1109
|
attribute = _ref3.attribute;
|
|
1128
1110
|
|
|
1129
1111
|
if (namespace) {
|
|
1130
|
-
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit
|
|
1112
|
+
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1131
1113
|
}
|
|
1132
1114
|
|
|
1133
|
-
return omit
|
|
1115
|
+
return omit(searchState, [id]);
|
|
1134
1116
|
}
|
|
1135
1117
|
|
|
1136
1118
|
function cleanUpValueWithMultiIndex(_ref4) {
|
|
@@ -1143,20 +1125,20 @@ function cleanUpValueWithMultiIndex(_ref4) {
|
|
|
1143
1125
|
|
|
1144
1126
|
if (namespace && indexSearchState) {
|
|
1145
1127
|
return _objectSpread({}, searchState, {
|
|
1146
|
-
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit
|
|
1128
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit(indexSearchState[namespace], [attribute])))))
|
|
1147
1129
|
});
|
|
1148
1130
|
}
|
|
1149
1131
|
|
|
1150
1132
|
if (indexSearchState) {
|
|
1151
1133
|
return _objectSpread({}, searchState, {
|
|
1152
|
-
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit
|
|
1134
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1153
1135
|
});
|
|
1154
1136
|
}
|
|
1155
1137
|
|
|
1156
1138
|
return searchState;
|
|
1157
1139
|
}
|
|
1158
1140
|
|
|
1159
|
-
function getId
|
|
1141
|
+
function getId() {
|
|
1160
1142
|
return 'configure';
|
|
1161
1143
|
}
|
|
1162
1144
|
|
|
@@ -1166,20 +1148,20 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1166
1148
|
return {};
|
|
1167
1149
|
},
|
|
1168
1150
|
getSearchParameters: function getSearchParameters(searchParameters, props) {
|
|
1169
|
-
props.children
|
|
1170
|
-
props.contextValue
|
|
1171
|
-
props.indexContextValue
|
|
1172
|
-
|
|
1151
|
+
var children = props.children,
|
|
1152
|
+
contextValue = props.contextValue,
|
|
1153
|
+
indexContextValue = props.indexContextValue,
|
|
1154
|
+
items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
|
|
1173
1155
|
|
|
1174
1156
|
return searchParameters.setQueryParameters(items);
|
|
1175
1157
|
},
|
|
1176
1158
|
transitionState: function transitionState(props, prevSearchState, nextSearchState) {
|
|
1177
|
-
var id = getId
|
|
1159
|
+
var id = getId();
|
|
1178
1160
|
|
|
1179
|
-
props.children
|
|
1180
|
-
props.contextValue
|
|
1181
|
-
props.indexContextValue
|
|
1182
|
-
|
|
1161
|
+
var children = props.children,
|
|
1162
|
+
contextValue = props.contextValue,
|
|
1163
|
+
indexContextValue = props.indexContextValue,
|
|
1164
|
+
items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
|
|
1183
1165
|
|
|
1184
1166
|
var propKeys = Object.keys(props);
|
|
1185
1167
|
var nonPresentKeys = this._props ? Object.keys(this._props).filter(function (prop) {
|
|
@@ -1187,7 +1169,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1187
1169
|
}) : [];
|
|
1188
1170
|
this._props = props;
|
|
1189
1171
|
|
|
1190
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit
|
|
1172
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1191
1173
|
|
|
1192
1174
|
return refineValue(nextSearchState, nextValue, {
|
|
1193
1175
|
ais: props.contextValue,
|
|
@@ -1195,7 +1177,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1195
1177
|
});
|
|
1196
1178
|
},
|
|
1197
1179
|
cleanUp: function cleanUp(props, searchState) {
|
|
1198
|
-
var id = getId
|
|
1180
|
+
var id = getId();
|
|
1199
1181
|
var indexId = getIndexId({
|
|
1200
1182
|
ais: props.contextValue,
|
|
1201
1183
|
multiIndexContext: props.indexContextValue
|
|
@@ -1261,39 +1243,26 @@ var Configure = connectConfigure(function Configure() {
|
|
|
1261
1243
|
return null;
|
|
1262
1244
|
});
|
|
1263
1245
|
|
|
1264
|
-
function
|
|
1265
|
-
if (
|
|
1246
|
+
function _arrayWithoutHoles(arr) {
|
|
1247
|
+
if (Array.isArray(arr)) {
|
|
1248
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
1249
|
+
arr2[i] = arr[i];
|
|
1250
|
+
}
|
|
1266
1251
|
|
|
1267
|
-
|
|
1268
|
-
arr2[i] = arr[i];
|
|
1252
|
+
return arr2;
|
|
1269
1253
|
}
|
|
1270
|
-
|
|
1271
|
-
return arr2;
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
function _arrayWithoutHoles(arr) {
|
|
1275
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1276
1254
|
}
|
|
1277
1255
|
|
|
1278
1256
|
function _iterableToArray(iter) {
|
|
1279
|
-
if (
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1283
|
-
if (!o) return;
|
|
1284
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1285
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1286
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1287
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1288
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1257
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
1289
1258
|
}
|
|
1290
1259
|
|
|
1291
1260
|
function _nonIterableSpread() {
|
|
1292
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1261
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1293
1262
|
}
|
|
1294
1263
|
|
|
1295
1264
|
function _toConsumableArray(arr) {
|
|
1296
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
1265
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
1297
1266
|
}
|
|
1298
1267
|
|
|
1299
1268
|
function clone(value) {
|
|
@@ -1443,13 +1412,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1443
1412
|
return target;
|
|
1444
1413
|
}
|
|
1445
1414
|
|
|
1446
|
-
var omit = _objectWithoutPropertiesLoose;
|
|
1415
|
+
var omit$1 = _objectWithoutPropertiesLoose;
|
|
1447
1416
|
|
|
1448
|
-
function objectHasKeys(obj) {
|
|
1417
|
+
function objectHasKeys$1(obj) {
|
|
1449
1418
|
return obj && Object.keys(obj).length > 0;
|
|
1450
1419
|
}
|
|
1451
1420
|
|
|
1452
|
-
var objectHasKeys_1 = objectHasKeys;
|
|
1421
|
+
var objectHasKeys_1 = objectHasKeys$1;
|
|
1453
1422
|
|
|
1454
1423
|
var isValidUserToken = function isValidUserToken(userToken) {
|
|
1455
1424
|
if (userToken === null) {
|
|
@@ -1557,7 +1526,7 @@ var lib = {
|
|
|
1557
1526
|
}
|
|
1558
1527
|
return {};
|
|
1559
1528
|
} else if (typeof attribute === 'string') {
|
|
1560
|
-
return omit(refinementList, [attribute]);
|
|
1529
|
+
return omit$1(refinementList, [attribute]);
|
|
1561
1530
|
} else if (typeof attribute === 'function') {
|
|
1562
1531
|
var hasChanged = false;
|
|
1563
1532
|
|
|
@@ -1602,7 +1571,7 @@ var lib = {
|
|
|
1602
1571
|
}
|
|
1603
1572
|
};
|
|
1604
1573
|
|
|
1605
|
-
var RefinementList
|
|
1574
|
+
var RefinementList = lib;
|
|
1606
1575
|
|
|
1607
1576
|
/**
|
|
1608
1577
|
* isEqual, but only for numeric refinement values, possible values:
|
|
@@ -1971,22 +1940,22 @@ SearchParameters.prototype = {
|
|
|
1971
1940
|
clearRefinements: function clearRefinements(attribute) {
|
|
1972
1941
|
var patch = {
|
|
1973
1942
|
numericRefinements: this._clearNumericRefinements(attribute),
|
|
1974
|
-
facetsRefinements: RefinementList
|
|
1943
|
+
facetsRefinements: RefinementList.clearRefinement(
|
|
1975
1944
|
this.facetsRefinements,
|
|
1976
1945
|
attribute,
|
|
1977
1946
|
'conjunctiveFacet'
|
|
1978
1947
|
),
|
|
1979
|
-
facetsExcludes: RefinementList
|
|
1948
|
+
facetsExcludes: RefinementList.clearRefinement(
|
|
1980
1949
|
this.facetsExcludes,
|
|
1981
1950
|
attribute,
|
|
1982
1951
|
'exclude'
|
|
1983
1952
|
),
|
|
1984
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
1953
|
+
disjunctiveFacetsRefinements: RefinementList.clearRefinement(
|
|
1985
1954
|
this.disjunctiveFacetsRefinements,
|
|
1986
1955
|
attribute,
|
|
1987
1956
|
'disjunctiveFacet'
|
|
1988
1957
|
),
|
|
1989
|
-
hierarchicalFacetsRefinements: RefinementList
|
|
1958
|
+
hierarchicalFacetsRefinements: RefinementList.clearRefinement(
|
|
1990
1959
|
this.hierarchicalFacetsRefinements,
|
|
1991
1960
|
attribute,
|
|
1992
1961
|
'hierarchicalFacet'
|
|
@@ -2262,7 +2231,7 @@ SearchParameters.prototype = {
|
|
|
2262
2231
|
}
|
|
2263
2232
|
return {};
|
|
2264
2233
|
} else if (typeof attribute === 'string') {
|
|
2265
|
-
return omit(this.numericRefinements, [attribute]);
|
|
2234
|
+
return omit$1(this.numericRefinements, [attribute]);
|
|
2266
2235
|
} else if (typeof attribute === 'function') {
|
|
2267
2236
|
var hasChanged = false;
|
|
2268
2237
|
var numericRefinements = this.numericRefinements;
|
|
@@ -2354,10 +2323,10 @@ SearchParameters.prototype = {
|
|
|
2354
2323
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2355
2324
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2356
2325
|
}
|
|
2357
|
-
if (RefinementList
|
|
2326
|
+
if (RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
|
|
2358
2327
|
|
|
2359
2328
|
return this.setQueryParameters({
|
|
2360
|
-
facetsRefinements: RefinementList
|
|
2329
|
+
facetsRefinements: RefinementList.addRefinement(this.facetsRefinements, facet, value)
|
|
2361
2330
|
});
|
|
2362
2331
|
},
|
|
2363
2332
|
/**
|
|
@@ -2371,10 +2340,10 @@ SearchParameters.prototype = {
|
|
|
2371
2340
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2372
2341
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2373
2342
|
}
|
|
2374
|
-
if (RefinementList
|
|
2343
|
+
if (RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
|
|
2375
2344
|
|
|
2376
2345
|
return this.setQueryParameters({
|
|
2377
|
-
facetsExcludes: RefinementList
|
|
2346
|
+
facetsExcludes: RefinementList.addRefinement(this.facetsExcludes, facet, value)
|
|
2378
2347
|
});
|
|
2379
2348
|
},
|
|
2380
2349
|
/**
|
|
@@ -2390,10 +2359,10 @@ SearchParameters.prototype = {
|
|
|
2390
2359
|
facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
|
|
2391
2360
|
}
|
|
2392
2361
|
|
|
2393
|
-
if (RefinementList
|
|
2362
|
+
if (RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
|
|
2394
2363
|
|
|
2395
2364
|
return this.setQueryParameters({
|
|
2396
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2365
|
+
disjunctiveFacetsRefinements: RefinementList.addRefinement(
|
|
2397
2366
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2398
2367
|
});
|
|
2399
2368
|
},
|
|
@@ -2478,10 +2447,10 @@ SearchParameters.prototype = {
|
|
|
2478
2447
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2479
2448
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2480
2449
|
}
|
|
2481
|
-
if (!RefinementList
|
|
2450
|
+
if (!RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
|
|
2482
2451
|
|
|
2483
2452
|
return this.setQueryParameters({
|
|
2484
|
-
facetsRefinements: RefinementList
|
|
2453
|
+
facetsRefinements: RefinementList.removeRefinement(this.facetsRefinements, facet, value)
|
|
2485
2454
|
});
|
|
2486
2455
|
},
|
|
2487
2456
|
/**
|
|
@@ -2495,10 +2464,10 @@ SearchParameters.prototype = {
|
|
|
2495
2464
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2496
2465
|
throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
|
|
2497
2466
|
}
|
|
2498
|
-
if (!RefinementList
|
|
2467
|
+
if (!RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
|
|
2499
2468
|
|
|
2500
2469
|
return this.setQueryParameters({
|
|
2501
|
-
facetsExcludes: RefinementList
|
|
2470
|
+
facetsExcludes: RefinementList.removeRefinement(this.facetsExcludes, facet, value)
|
|
2502
2471
|
});
|
|
2503
2472
|
},
|
|
2504
2473
|
/**
|
|
@@ -2513,10 +2482,10 @@ SearchParameters.prototype = {
|
|
|
2513
2482
|
throw new Error(
|
|
2514
2483
|
facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
|
|
2515
2484
|
}
|
|
2516
|
-
if (!RefinementList
|
|
2485
|
+
if (!RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
|
|
2517
2486
|
|
|
2518
2487
|
return this.setQueryParameters({
|
|
2519
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2488
|
+
disjunctiveFacetsRefinements: RefinementList.removeRefinement(
|
|
2520
2489
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2521
2490
|
});
|
|
2522
2491
|
},
|
|
@@ -2582,7 +2551,7 @@ SearchParameters.prototype = {
|
|
|
2582
2551
|
}
|
|
2583
2552
|
|
|
2584
2553
|
return this.setQueryParameters({
|
|
2585
|
-
facetsRefinements: RefinementList
|
|
2554
|
+
facetsRefinements: RefinementList.toggleRefinement(this.facetsRefinements, facet, value)
|
|
2586
2555
|
});
|
|
2587
2556
|
},
|
|
2588
2557
|
/**
|
|
@@ -2598,7 +2567,7 @@ SearchParameters.prototype = {
|
|
|
2598
2567
|
}
|
|
2599
2568
|
|
|
2600
2569
|
return this.setQueryParameters({
|
|
2601
|
-
facetsExcludes: RefinementList
|
|
2570
|
+
facetsExcludes: RefinementList.toggleRefinement(this.facetsExcludes, facet, value)
|
|
2602
2571
|
});
|
|
2603
2572
|
},
|
|
2604
2573
|
/**
|
|
@@ -2615,7 +2584,7 @@ SearchParameters.prototype = {
|
|
|
2615
2584
|
}
|
|
2616
2585
|
|
|
2617
2586
|
return this.setQueryParameters({
|
|
2618
|
-
disjunctiveFacetsRefinements: RefinementList
|
|
2587
|
+
disjunctiveFacetsRefinements: RefinementList.toggleRefinement(
|
|
2619
2588
|
this.disjunctiveFacetsRefinements, facet, value)
|
|
2620
2589
|
});
|
|
2621
2590
|
},
|
|
@@ -2754,7 +2723,7 @@ SearchParameters.prototype = {
|
|
|
2754
2723
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2755
2724
|
return false;
|
|
2756
2725
|
}
|
|
2757
|
-
return RefinementList
|
|
2726
|
+
return RefinementList.isRefined(this.facetsRefinements, facet, value);
|
|
2758
2727
|
},
|
|
2759
2728
|
/**
|
|
2760
2729
|
* Returns true if the facet contains exclusions or if a specific value is
|
|
@@ -2770,7 +2739,7 @@ SearchParameters.prototype = {
|
|
|
2770
2739
|
if (!this.isConjunctiveFacet(facet)) {
|
|
2771
2740
|
return false;
|
|
2772
2741
|
}
|
|
2773
|
-
return RefinementList
|
|
2742
|
+
return RefinementList.isRefined(this.facetsExcludes, facet, value);
|
|
2774
2743
|
},
|
|
2775
2744
|
/**
|
|
2776
2745
|
* Returns true if the facet contains a refinement, or if a value passed is a
|
|
@@ -2785,7 +2754,7 @@ SearchParameters.prototype = {
|
|
|
2785
2754
|
if (!this.isDisjunctiveFacet(facet)) {
|
|
2786
2755
|
return false;
|
|
2787
2756
|
}
|
|
2788
|
-
return RefinementList
|
|
2757
|
+
return RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value);
|
|
2789
2758
|
},
|
|
2790
2759
|
/**
|
|
2791
2760
|
* Returns true if the facet contains a refinement, or if a value passed is a
|
|
@@ -2971,7 +2940,7 @@ SearchParameters.prototype = {
|
|
|
2971
2940
|
var isNextValueDefined = nextWithNumbers[key] !== undefined;
|
|
2972
2941
|
|
|
2973
2942
|
if (isPreviousValueDefined && !isNextValueDefined) {
|
|
2974
|
-
return omit(previous, [key]);
|
|
2943
|
+
return omit$1(previous, [key]);
|
|
2975
2944
|
}
|
|
2976
2945
|
|
|
2977
2946
|
if (isNextValueDefined) {
|
|
@@ -4704,7 +4673,7 @@ var requestBuilder = {
|
|
|
4704
4673
|
|
|
4705
4674
|
var requestBuilder_1 = requestBuilder;
|
|
4706
4675
|
|
|
4707
|
-
var version = '3.4.4';
|
|
4676
|
+
var version$1 = '3.4.4';
|
|
4708
4677
|
|
|
4709
4678
|
/**
|
|
4710
4679
|
* Event triggered when a parameter is set or updated
|
|
@@ -4811,7 +4780,7 @@ var version = '3.4.4';
|
|
|
4811
4780
|
*/
|
|
4812
4781
|
function AlgoliaSearchHelper(client, index, options) {
|
|
4813
4782
|
if (typeof client.addAlgoliaAgent === 'function') {
|
|
4814
|
-
client.addAlgoliaAgent('JS Helper (' + version + ')');
|
|
4783
|
+
client.addAlgoliaAgent('JS Helper (' + version$1 + ')');
|
|
4815
4784
|
}
|
|
4816
4785
|
|
|
4817
4786
|
this.setClient(client);
|
|
@@ -4966,7 +4935,7 @@ AlgoliaSearchHelper.prototype.findAnswers = function(options) {
|
|
|
4966
4935
|
nbHits: options.nbHits
|
|
4967
4936
|
},
|
|
4968
4937
|
{
|
|
4969
|
-
params: omit(requestBuilder_1._getHitsSearchParams(derivedState), [
|
|
4938
|
+
params: omit$1(requestBuilder_1._getHitsSearchParams(derivedState), [
|
|
4970
4939
|
'attributesToSnippet',
|
|
4971
4940
|
'hitsPerPage',
|
|
4972
4941
|
'restrictSearchableAttributes',
|
|
@@ -6080,7 +6049,7 @@ AlgoliaSearchHelper.prototype.setClient = function(newClient) {
|
|
|
6080
6049
|
if (this.client === newClient) return this;
|
|
6081
6050
|
|
|
6082
6051
|
if (typeof newClient.addAlgoliaAgent === 'function') {
|
|
6083
|
-
newClient.addAlgoliaAgent('JS Helper (' + version + ')');
|
|
6052
|
+
newClient.addAlgoliaAgent('JS Helper (' + version$1 + ')');
|
|
6084
6053
|
}
|
|
6085
6054
|
this.client = newClient;
|
|
6086
6055
|
|
|
@@ -6199,7 +6168,7 @@ function algoliasearchHelper(client, index, opts) {
|
|
|
6199
6168
|
* @member module:algoliasearchHelper.version
|
|
6200
6169
|
* @type {number}
|
|
6201
6170
|
*/
|
|
6202
|
-
algoliasearchHelper.version = version;
|
|
6171
|
+
algoliasearchHelper.version = version$1;
|
|
6203
6172
|
|
|
6204
6173
|
/**
|
|
6205
6174
|
* Constructor for the Helper.
|
|
@@ -6231,13 +6200,13 @@ function createOptionalFilter(_ref) {
|
|
|
6231
6200
|
return "".concat(attributeName, ":").concat(attributeValue, "<score=").concat(attributeScore || 1, ">");
|
|
6232
6201
|
}
|
|
6233
6202
|
|
|
6234
|
-
var defaultProps
|
|
6203
|
+
var defaultProps = {
|
|
6235
6204
|
transformSearchParameters: function transformSearchParameters(x) {
|
|
6236
6205
|
return _objectSpread({}, x);
|
|
6237
6206
|
}
|
|
6238
6207
|
};
|
|
6239
6208
|
|
|
6240
|
-
function getId$
|
|
6209
|
+
function getId$1() {
|
|
6241
6210
|
// We store the search state of this widget in `configure`.
|
|
6242
6211
|
return 'configure';
|
|
6243
6212
|
}
|
|
@@ -6285,7 +6254,7 @@ function getSearchParametersFromProps(props) {
|
|
|
6285
6254
|
|
|
6286
6255
|
var connectConfigureRelatedItems = createConnectorWithContext({
|
|
6287
6256
|
displayName: 'AlgoliaConfigureRelatedItems',
|
|
6288
|
-
defaultProps: defaultProps
|
|
6257
|
+
defaultProps: defaultProps,
|
|
6289
6258
|
getProvidedProps: function getProvidedProps() {
|
|
6290
6259
|
return {};
|
|
6291
6260
|
},
|
|
@@ -6293,7 +6262,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6293
6262
|
return searchParameters.setQueryParameters(getSearchParametersFromProps(props));
|
|
6294
6263
|
},
|
|
6295
6264
|
transitionState: function transitionState(props, _prevSearchState, nextSearchState) {
|
|
6296
|
-
var id = getId$
|
|
6265
|
+
var id = getId$1(); // We need to transform the exhaustive search parameters back to clean
|
|
6297
6266
|
// search parameters without the empty default keys so we don't pollute the
|
|
6298
6267
|
// `configure` search state.
|
|
6299
6268
|
|
|
@@ -6304,7 +6273,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6304
6273
|
}) : [];
|
|
6305
6274
|
this._searchParameters = searchParameters;
|
|
6306
6275
|
|
|
6307
|
-
var nextValue = _defineProperty({}, id, _objectSpread({}, omit
|
|
6276
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6308
6277
|
|
|
6309
6278
|
return refineValue(nextSearchState, nextValue, {
|
|
6310
6279
|
ais: props.contextValue,
|
|
@@ -6314,7 +6283,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6314
6283
|
cleanUp: function cleanUp(props, searchState) {
|
|
6315
6284
|
var _this = this;
|
|
6316
6285
|
|
|
6317
|
-
var id = getId$
|
|
6286
|
+
var id = getId$1();
|
|
6318
6287
|
var indexId = getIndexId({
|
|
6319
6288
|
ais: props.contextValue,
|
|
6320
6289
|
multiIndexContext: props.indexContextValue
|
|
@@ -6387,7 +6356,7 @@ function getWidgetRefinements(attribute, widgetKey, searchState) {
|
|
|
6387
6356
|
}
|
|
6388
6357
|
}
|
|
6389
6358
|
|
|
6390
|
-
function getRefinements(attribute) {
|
|
6359
|
+
function getRefinements$1(attribute) {
|
|
6391
6360
|
var searchState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
6392
6361
|
var refinements = Object.keys(searchState).filter(function (widgetKey) {
|
|
6393
6362
|
return searchState[widgetKey] !== undefined && searchState[widgetKey][attribute] !== undefined;
|
|
@@ -6404,7 +6373,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
|
|
|
6404
6373
|
var searchState = _ref.searchState,
|
|
6405
6374
|
trackedFilters = _ref.trackedFilters;
|
|
6406
6375
|
var ruleContexts = Object.keys(trackedFilters).reduce(function (facets, facetName) {
|
|
6407
|
-
var facetRefinements = getRefinements(facetName, searchState);
|
|
6376
|
+
var facetRefinements = getRefinements$1(facetName, searchState);
|
|
6408
6377
|
var getTrackedFacetValues = trackedFilters[facetName];
|
|
6409
6378
|
var trackedFacetValues = getTrackedFacetValues(facetRefinements);
|
|
6410
6379
|
return [].concat(_toConsumableArray(facets), _toConsumableArray(facetRefinements.filter(function (facetRefinement) {
|
|
@@ -6416,7 +6385,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
|
|
|
6416
6385
|
return ruleContexts;
|
|
6417
6386
|
}
|
|
6418
6387
|
|
|
6419
|
-
var defaultProps = {
|
|
6388
|
+
var defaultProps$1 = {
|
|
6420
6389
|
transformItems: function transformItems(items) {
|
|
6421
6390
|
return items;
|
|
6422
6391
|
},
|
|
@@ -6427,7 +6396,7 @@ var defaultProps = {
|
|
|
6427
6396
|
};
|
|
6428
6397
|
var connectQueryRules = createConnectorWithContext({
|
|
6429
6398
|
displayName: 'AlgoliaQueryRules',
|
|
6430
|
-
defaultProps: defaultProps,
|
|
6399
|
+
defaultProps: defaultProps$1,
|
|
6431
6400
|
getProvidedProps: function getProvidedProps(props, _1, searchResults) {
|
|
6432
6401
|
var results = getResults(searchResults, {
|
|
6433
6402
|
ais: props.contextValue,
|
|
@@ -6589,7 +6558,7 @@ function (_Component) {
|
|
|
6589
6558
|
return null;
|
|
6590
6559
|
}
|
|
6591
6560
|
|
|
6592
|
-
return
|
|
6561
|
+
return React__default.createElement(IndexProvider, {
|
|
6593
6562
|
value: this.state.indexContext
|
|
6594
6563
|
}, this.props.children);
|
|
6595
6564
|
}
|
|
@@ -6604,10 +6573,20 @@ _defineProperty(Index, "propTypes", {
|
|
|
6604
6573
|
children: PropTypes.node
|
|
6605
6574
|
});
|
|
6606
6575
|
|
|
6607
|
-
({
|
|
6576
|
+
var IndexWrapper = function IndexWrapper(props) {
|
|
6577
|
+
var inferredIndexId = props.indexName;
|
|
6578
|
+
return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
6579
|
+
return React__default.createElement(Index, _extends({
|
|
6580
|
+
contextValue: contextValue,
|
|
6581
|
+
indexId: inferredIndexId
|
|
6582
|
+
}, props));
|
|
6583
|
+
});
|
|
6584
|
+
};
|
|
6585
|
+
|
|
6586
|
+
IndexWrapper.propTypes = {
|
|
6608
6587
|
indexName: PropTypes.string.isRequired,
|
|
6609
6588
|
indexId: PropTypes.string
|
|
6610
|
-
}
|
|
6589
|
+
};
|
|
6611
6590
|
|
|
6612
6591
|
function createWidgetsManager(onWidgetsUpdate) {
|
|
6613
6592
|
var widgets = []; // Is an update scheduled?
|
|
@@ -6668,7 +6647,7 @@ function createStore(initialState) {
|
|
|
6668
6647
|
function addAlgoliaAgents(searchClient) {
|
|
6669
6648
|
if (typeof searchClient.addAlgoliaAgent === 'function') {
|
|
6670
6649
|
searchClient.addAlgoliaAgent("react (".concat(version$2, ")"));
|
|
6671
|
-
searchClient.addAlgoliaAgent("react-instantsearch (".concat(version
|
|
6650
|
+
searchClient.addAlgoliaAgent("react-instantsearch (".concat(version, ")"));
|
|
6672
6651
|
}
|
|
6673
6652
|
}
|
|
6674
6653
|
|
|
@@ -6906,8 +6885,8 @@ function createInstantSearchManager(_ref) {
|
|
|
6906
6885
|
nextIsSearchStalled = false;
|
|
6907
6886
|
}
|
|
6908
6887
|
|
|
6909
|
-
currentState.resultsFacetValues
|
|
6910
|
-
|
|
6888
|
+
var resultsFacetValues = currentState.resultsFacetValues,
|
|
6889
|
+
partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
|
|
6911
6890
|
|
|
6912
6891
|
store.setState(_objectSpread({}, partialState, {
|
|
6913
6892
|
results: results,
|
|
@@ -6928,8 +6907,8 @@ function createInstantSearchManager(_ref) {
|
|
|
6928
6907
|
nextIsSearchStalled = false;
|
|
6929
6908
|
}
|
|
6930
6909
|
|
|
6931
|
-
currentState.resultsFacetValues
|
|
6932
|
-
|
|
6910
|
+
var resultsFacetValues = currentState.resultsFacetValues,
|
|
6911
|
+
partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
|
|
6933
6912
|
|
|
6934
6913
|
store.setState(_objectSpread({}, partialState, {
|
|
6935
6914
|
isSearchStalled: nextIsSearchStalled,
|
|
@@ -6941,9 +6920,9 @@ function createInstantSearchManager(_ref) {
|
|
|
6941
6920
|
function handleNewSearch() {
|
|
6942
6921
|
if (!stalledSearchTimer) {
|
|
6943
6922
|
stalledSearchTimer = setTimeout(function () {
|
|
6944
|
-
var _store$getState = store.getState()
|
|
6945
|
-
_store$getState.resultsFacetValues
|
|
6946
|
-
|
|
6923
|
+
var _store$getState = store.getState(),
|
|
6924
|
+
resultsFacetValues = _store$getState.resultsFacetValues,
|
|
6925
|
+
partialState = _objectWithoutProperties(_store$getState, ["resultsFacetValues"]);
|
|
6947
6926
|
|
|
6948
6927
|
store.setState(_objectSpread({}, partialState, {
|
|
6949
6928
|
isSearchStalled: true
|
|
@@ -7408,7 +7387,7 @@ function (_Component) {
|
|
|
7408
7387
|
return null;
|
|
7409
7388
|
}
|
|
7410
7389
|
|
|
7411
|
-
return
|
|
7390
|
+
return React__default.createElement(InstantSearchProvider, {
|
|
7412
7391
|
value: this.state.contextValue
|
|
7413
7392
|
}, this.props.children);
|
|
7414
7393
|
}
|
|
@@ -7442,21 +7421,21 @@ _defineProperty(InstantSearch, "propTypes", {
|
|
|
7442
7421
|
stalledSearchDelay: PropTypes.number
|
|
7443
7422
|
});
|
|
7444
7423
|
|
|
7445
|
-
var getId$
|
|
7424
|
+
var getId$2 = function getId(props) {
|
|
7446
7425
|
return props.attributes[0];
|
|
7447
7426
|
};
|
|
7448
|
-
var namespace
|
|
7427
|
+
var namespace = 'hierarchicalMenu';
|
|
7449
7428
|
|
|
7450
|
-
function _refine
|
|
7451
|
-
var id = getId$
|
|
7429
|
+
function _refine(props, searchState, nextRefinement, context) {
|
|
7430
|
+
var id = getId$2(props);
|
|
7452
7431
|
|
|
7453
7432
|
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7454
7433
|
|
|
7455
7434
|
var resetPage = true;
|
|
7456
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace
|
|
7435
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
7457
7436
|
}
|
|
7458
7437
|
|
|
7459
|
-
function transformValue
|
|
7438
|
+
function transformValue(values) {
|
|
7460
7439
|
return values.reduce(function (acc, item) {
|
|
7461
7440
|
if (item.isRefined) {
|
|
7462
7441
|
acc.push({
|
|
@@ -7467,7 +7446,7 @@ function transformValue$1(values) {
|
|
|
7467
7446
|
}); // Create a variable in order to keep the same acc for the recursion, otherwise "reduce" returns a new one
|
|
7468
7447
|
|
|
7469
7448
|
if (item.data) {
|
|
7470
|
-
acc = acc.concat(transformValue
|
|
7449
|
+
acc = acc.concat(transformValue(item.data));
|
|
7471
7450
|
}
|
|
7472
7451
|
}
|
|
7473
7452
|
|
|
@@ -7529,7 +7508,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7529
7508
|
transformItems: PropTypes.func
|
|
7530
7509
|
},
|
|
7531
7510
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7532
|
-
var id = getId$
|
|
7511
|
+
var id = getId$2(props);
|
|
7533
7512
|
var results = getResults(searchResults, {
|
|
7534
7513
|
ais: props.contextValue,
|
|
7535
7514
|
multiIndexContext: props.indexContextValue
|
|
@@ -7544,7 +7523,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7544
7523
|
}
|
|
7545
7524
|
|
|
7546
7525
|
var values = results.getFacetValues(id);
|
|
7547
|
-
var items = values.data ? transformValue
|
|
7526
|
+
var items = values.data ? transformValue(values.data) : [];
|
|
7548
7527
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
7549
7528
|
return {
|
|
7550
7529
|
canRefine: transformedItems.length > 0,
|
|
@@ -7552,7 +7531,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7552
7531
|
};
|
|
7553
7532
|
},
|
|
7554
7533
|
refine: function refine(props, searchState, nextRefinement) {
|
|
7555
|
-
return _refine
|
|
7534
|
+
return _refine(props, searchState, nextRefinement, {
|
|
7556
7535
|
ais: props.contextValue,
|
|
7557
7536
|
multiIndexContext: props.indexContextValue
|
|
7558
7537
|
});
|
|
@@ -7615,13 +7594,13 @@ var connectCurrentRefinements = createConnectorWithContext({
|
|
|
7615
7594
|
}
|
|
7616
7595
|
});
|
|
7617
7596
|
|
|
7618
|
-
var getId$
|
|
7597
|
+
var getId$3 = function getId(props) {
|
|
7619
7598
|
return props.attributes[0];
|
|
7620
7599
|
};
|
|
7621
|
-
var namespace$
|
|
7600
|
+
var namespace$1 = 'hierarchicalMenu';
|
|
7622
7601
|
|
|
7623
|
-
function getCurrentRefinement
|
|
7624
|
-
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$
|
|
7602
|
+
function getCurrentRefinement(props, searchState, context) {
|
|
7603
|
+
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)), null);
|
|
7625
7604
|
|
|
7626
7605
|
if (currentRefinement === '') {
|
|
7627
7606
|
return null;
|
|
@@ -7630,13 +7609,13 @@ function getCurrentRefinement$b(props, searchState, context) {
|
|
|
7630
7609
|
return currentRefinement;
|
|
7631
7610
|
}
|
|
7632
7611
|
|
|
7633
|
-
function getValue
|
|
7612
|
+
function getValue(path, props, searchState, context) {
|
|
7634
7613
|
var id = props.id,
|
|
7635
7614
|
attributes = props.attributes,
|
|
7636
7615
|
separator = props.separator,
|
|
7637
7616
|
rootPath = props.rootPath,
|
|
7638
7617
|
showParentLevel = props.showParentLevel;
|
|
7639
|
-
var currentRefinement = getCurrentRefinement
|
|
7618
|
+
var currentRefinement = getCurrentRefinement(props, searchState, context);
|
|
7640
7619
|
var nextRefinement;
|
|
7641
7620
|
|
|
7642
7621
|
if (currentRefinement === null) {
|
|
@@ -7657,14 +7636,14 @@ function getValue$2(path, props, searchState, context) {
|
|
|
7657
7636
|
return nextRefinement;
|
|
7658
7637
|
}
|
|
7659
7638
|
|
|
7660
|
-
function transformValue(value, props, searchState, context) {
|
|
7639
|
+
function transformValue$1(value, props, searchState, context) {
|
|
7661
7640
|
return value.map(function (v) {
|
|
7662
7641
|
return {
|
|
7663
7642
|
label: v.name,
|
|
7664
|
-
value: getValue
|
|
7643
|
+
value: getValue(v.path, props, searchState, context),
|
|
7665
7644
|
count: v.count,
|
|
7666
7645
|
isRefined: v.isRefined,
|
|
7667
|
-
items: v.data && transformValue(v.data, props, searchState, context)
|
|
7646
|
+
items: v.data && transformValue$1(v.data, props, searchState, context)
|
|
7668
7647
|
};
|
|
7669
7648
|
});
|
|
7670
7649
|
}
|
|
@@ -7680,20 +7659,20 @@ var truncate = function truncate() {
|
|
|
7680
7659
|
});
|
|
7681
7660
|
};
|
|
7682
7661
|
|
|
7683
|
-
function _refine$
|
|
7684
|
-
var id = getId$
|
|
7662
|
+
function _refine$1(props, searchState, nextRefinement, context) {
|
|
7663
|
+
var id = getId$3(props);
|
|
7685
7664
|
|
|
7686
7665
|
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7687
7666
|
|
|
7688
7667
|
var resetPage = true;
|
|
7689
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
7668
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$1);
|
|
7690
7669
|
}
|
|
7691
7670
|
|
|
7692
|
-
function _cleanUp
|
|
7693
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
7671
|
+
function _cleanUp(props, searchState, context) {
|
|
7672
|
+
return cleanUpValue(searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)));
|
|
7694
7673
|
}
|
|
7695
7674
|
|
|
7696
|
-
var sortBy
|
|
7675
|
+
var sortBy = ['name:asc'];
|
|
7697
7676
|
/**
|
|
7698
7677
|
* connectHierarchicalMenu connector provides the logic to build a widget that will
|
|
7699
7678
|
* give the user the ability to explore a tree-like structure.
|
|
@@ -7775,7 +7754,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7775
7754
|
var showMore = props.showMore,
|
|
7776
7755
|
limit = props.limit,
|
|
7777
7756
|
showMoreLimit = props.showMoreLimit;
|
|
7778
|
-
var id = getId$
|
|
7757
|
+
var id = getId$3(props);
|
|
7779
7758
|
var results = getResults(searchResults, {
|
|
7780
7759
|
ais: props.contextValue,
|
|
7781
7760
|
multiIndexContext: props.indexContextValue
|
|
@@ -7785,7 +7764,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7785
7764
|
if (!isFacetPresent) {
|
|
7786
7765
|
return {
|
|
7787
7766
|
items: [],
|
|
7788
|
-
currentRefinement: getCurrentRefinement
|
|
7767
|
+
currentRefinement: getCurrentRefinement(props, searchState, {
|
|
7789
7768
|
ais: props.contextValue,
|
|
7790
7769
|
multiIndexContext: props.indexContextValue
|
|
7791
7770
|
}),
|
|
@@ -7795,16 +7774,16 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7795
7774
|
|
|
7796
7775
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7797
7776
|
var value = results.getFacetValues(id, {
|
|
7798
|
-
sortBy: sortBy
|
|
7777
|
+
sortBy: sortBy
|
|
7799
7778
|
});
|
|
7800
|
-
var items = value.data ? transformValue(value.data, props, searchState, {
|
|
7779
|
+
var items = value.data ? transformValue$1(value.data, props, searchState, {
|
|
7801
7780
|
ais: props.contextValue,
|
|
7802
7781
|
multiIndexContext: props.indexContextValue
|
|
7803
7782
|
}) : [];
|
|
7804
7783
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
7805
7784
|
return {
|
|
7806
7785
|
items: truncate(transformedItems, itemsLimit),
|
|
7807
|
-
currentRefinement: getCurrentRefinement
|
|
7786
|
+
currentRefinement: getCurrentRefinement(props, searchState, {
|
|
7808
7787
|
ais: props.contextValue,
|
|
7809
7788
|
multiIndexContext: props.indexContextValue
|
|
7810
7789
|
}),
|
|
@@ -7812,13 +7791,13 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7812
7791
|
};
|
|
7813
7792
|
},
|
|
7814
7793
|
refine: function refine(props, searchState, nextRefinement) {
|
|
7815
|
-
return _refine$
|
|
7794
|
+
return _refine$1(props, searchState, nextRefinement, {
|
|
7816
7795
|
ais: props.contextValue,
|
|
7817
7796
|
multiIndexContext: props.indexContextValue
|
|
7818
7797
|
});
|
|
7819
7798
|
},
|
|
7820
7799
|
cleanUp: function cleanUp(props, searchState) {
|
|
7821
|
-
return _cleanUp
|
|
7800
|
+
return _cleanUp(props, searchState, {
|
|
7822
7801
|
ais: props.contextValue,
|
|
7823
7802
|
multiIndexContext: props.indexContextValue
|
|
7824
7803
|
});
|
|
@@ -7832,7 +7811,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7832
7811
|
limit = props.limit,
|
|
7833
7812
|
showMoreLimit = props.showMoreLimit,
|
|
7834
7813
|
contextValue = props.contextValue;
|
|
7835
|
-
var id = getId$
|
|
7814
|
+
var id = getId$3(props);
|
|
7836
7815
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7837
7816
|
searchParameters = searchParameters.addHierarchicalFacet({
|
|
7838
7817
|
name: id,
|
|
@@ -7843,7 +7822,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7843
7822
|
}).setQueryParameters({
|
|
7844
7823
|
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, itemsLimit)
|
|
7845
7824
|
});
|
|
7846
|
-
var currentRefinement = getCurrentRefinement
|
|
7825
|
+
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
7847
7826
|
ais: contextValue,
|
|
7848
7827
|
multiIndexContext: props.indexContextValue
|
|
7849
7828
|
});
|
|
@@ -7856,8 +7835,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7856
7835
|
},
|
|
7857
7836
|
getMetadata: function getMetadata(props, searchState) {
|
|
7858
7837
|
var rootAttribute = props.attributes[0];
|
|
7859
|
-
var id = getId$
|
|
7860
|
-
var currentRefinement = getCurrentRefinement
|
|
7838
|
+
var id = getId$3(props);
|
|
7839
|
+
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
7861
7840
|
ais: props.contextValue,
|
|
7862
7841
|
multiIndexContext: props.indexContextValue
|
|
7863
7842
|
});
|
|
@@ -7865,7 +7844,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7865
7844
|
label: "".concat(rootAttribute, ": ").concat(currentRefinement),
|
|
7866
7845
|
attribute: rootAttribute,
|
|
7867
7846
|
value: function value(nextState) {
|
|
7868
|
-
return _refine$
|
|
7847
|
+
return _refine$1(props, nextState, '', {
|
|
7869
7848
|
ais: props.contextValue,
|
|
7870
7849
|
multiIndexContext: props.indexContextValue
|
|
7871
7850
|
});
|
|
@@ -8042,12 +8021,12 @@ var connectHits = createConnectorWithContext({
|
|
|
8042
8021
|
}
|
|
8043
8022
|
});
|
|
8044
8023
|
|
|
8045
|
-
function getId$
|
|
8024
|
+
function getId$4() {
|
|
8046
8025
|
return 'hitsPerPage';
|
|
8047
8026
|
}
|
|
8048
8027
|
|
|
8049
|
-
function getCurrentRefinement$
|
|
8050
|
-
var id = getId$
|
|
8028
|
+
function getCurrentRefinement$1(props, searchState, context) {
|
|
8029
|
+
var id = getId$4();
|
|
8051
8030
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
|
|
8052
8031
|
|
|
8053
8032
|
if (typeof currentRefinement === 'string') {
|
|
@@ -8082,7 +8061,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8082
8061
|
transformItems: PropTypes.func
|
|
8083
8062
|
},
|
|
8084
8063
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
8085
|
-
var currentRefinement = getCurrentRefinement$
|
|
8064
|
+
var currentRefinement = getCurrentRefinement$1(props, searchState, {
|
|
8086
8065
|
ais: props.contextValue,
|
|
8087
8066
|
multiIndexContext: props.indexContextValue
|
|
8088
8067
|
});
|
|
@@ -8099,7 +8078,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8099
8078
|
};
|
|
8100
8079
|
},
|
|
8101
8080
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8102
|
-
var id = getId$
|
|
8081
|
+
var id = getId$4();
|
|
8103
8082
|
|
|
8104
8083
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
8105
8084
|
|
|
@@ -8113,27 +8092,27 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
8113
8092
|
return cleanUpValue(searchState, {
|
|
8114
8093
|
ais: props.contextValue,
|
|
8115
8094
|
multiIndexContext: props.indexContextValue
|
|
8116
|
-
}, getId$
|
|
8095
|
+
}, getId$4());
|
|
8117
8096
|
},
|
|
8118
8097
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8119
|
-
return searchParameters.setHitsPerPage(getCurrentRefinement$
|
|
8098
|
+
return searchParameters.setHitsPerPage(getCurrentRefinement$1(props, searchState, {
|
|
8120
8099
|
ais: props.contextValue,
|
|
8121
8100
|
multiIndexContext: props.indexContextValue
|
|
8122
8101
|
}));
|
|
8123
8102
|
},
|
|
8124
8103
|
getMetadata: function getMetadata() {
|
|
8125
8104
|
return {
|
|
8126
|
-
id: getId$
|
|
8105
|
+
id: getId$4()
|
|
8127
8106
|
};
|
|
8128
8107
|
}
|
|
8129
8108
|
});
|
|
8130
8109
|
|
|
8131
|
-
function getId$
|
|
8110
|
+
function getId$5() {
|
|
8132
8111
|
return 'page';
|
|
8133
8112
|
}
|
|
8134
8113
|
|
|
8135
|
-
function getCurrentRefinement$
|
|
8136
|
-
var id = getId$
|
|
8114
|
+
function getCurrentRefinement$2(props, searchState, context) {
|
|
8115
|
+
var id = getId$5();
|
|
8137
8116
|
var page = 1;
|
|
8138
8117
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
|
|
8139
8118
|
|
|
@@ -8145,9 +8124,9 @@ function getCurrentRefinement$9(props, searchState, context) {
|
|
|
8145
8124
|
}
|
|
8146
8125
|
|
|
8147
8126
|
function getStateWithoutPage(state) {
|
|
8148
|
-
var _ref = state || {}
|
|
8149
|
-
_ref.page
|
|
8150
|
-
|
|
8127
|
+
var _ref = state || {},
|
|
8128
|
+
page = _ref.page,
|
|
8129
|
+
rest = _objectWithoutProperties(_ref, ["page"]);
|
|
8151
8130
|
|
|
8152
8131
|
return rest;
|
|
8153
8132
|
}
|
|
@@ -8256,14 +8235,14 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8256
8235
|
},
|
|
8257
8236
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8258
8237
|
return searchParameters.setQueryParameters({
|
|
8259
|
-
page: getCurrentRefinement$
|
|
8238
|
+
page: getCurrentRefinement$2(props, searchState, {
|
|
8260
8239
|
ais: props.contextValue,
|
|
8261
8240
|
multiIndexContext: props.indexContextValue
|
|
8262
8241
|
}) - 1
|
|
8263
8242
|
});
|
|
8264
8243
|
},
|
|
8265
8244
|
refine: function refine(props, searchState, event, index) {
|
|
8266
|
-
var id = getId$
|
|
8245
|
+
var id = getId$5();
|
|
8267
8246
|
|
|
8268
8247
|
var nextValue = _defineProperty({}, id, index + 1);
|
|
8269
8248
|
|
|
@@ -8275,14 +8254,14 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8275
8254
|
}
|
|
8276
8255
|
});
|
|
8277
8256
|
|
|
8278
|
-
var namespace$
|
|
8257
|
+
var namespace$2 = 'menu';
|
|
8279
8258
|
|
|
8280
|
-
function getId$
|
|
8259
|
+
function getId$6(props) {
|
|
8281
8260
|
return props.attribute;
|
|
8282
8261
|
}
|
|
8283
8262
|
|
|
8284
|
-
function getCurrentRefinement$
|
|
8285
|
-
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$
|
|
8263
|
+
function getCurrentRefinement$3(props, searchState, context) {
|
|
8264
|
+
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)), null);
|
|
8286
8265
|
|
|
8287
8266
|
if (currentRefinement === '') {
|
|
8288
8267
|
return null;
|
|
@@ -8292,28 +8271,28 @@ function getCurrentRefinement$8(props, searchState, context) {
|
|
|
8292
8271
|
}
|
|
8293
8272
|
|
|
8294
8273
|
function getValue$1(name, props, searchState, context) {
|
|
8295
|
-
var currentRefinement = getCurrentRefinement$
|
|
8274
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, context);
|
|
8296
8275
|
return name === currentRefinement ? '' : name;
|
|
8297
8276
|
}
|
|
8298
8277
|
|
|
8299
|
-
function getLimit
|
|
8278
|
+
function getLimit(_ref) {
|
|
8300
8279
|
var showMore = _ref.showMore,
|
|
8301
8280
|
limit = _ref.limit,
|
|
8302
8281
|
showMoreLimit = _ref.showMoreLimit;
|
|
8303
8282
|
return showMore ? showMoreLimit : limit;
|
|
8304
8283
|
}
|
|
8305
8284
|
|
|
8306
|
-
function _refine$
|
|
8307
|
-
var id = getId$
|
|
8285
|
+
function _refine$2(props, searchState, nextRefinement, context) {
|
|
8286
|
+
var id = getId$6(props);
|
|
8308
8287
|
|
|
8309
8288
|
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8310
8289
|
|
|
8311
8290
|
var resetPage = true;
|
|
8312
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
8291
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$2);
|
|
8313
8292
|
}
|
|
8314
8293
|
|
|
8315
|
-
function _cleanUp$
|
|
8316
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
8294
|
+
function _cleanUp$1(props, searchState, context) {
|
|
8295
|
+
return cleanUpValue(searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)));
|
|
8317
8296
|
}
|
|
8318
8297
|
|
|
8319
8298
|
var defaultSortBy = ['count:desc', 'name:asc'];
|
|
@@ -8372,7 +8351,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8372
8351
|
if (!canRefine) {
|
|
8373
8352
|
return {
|
|
8374
8353
|
items: [],
|
|
8375
|
-
currentRefinement: getCurrentRefinement$
|
|
8354
|
+
currentRefinement: getCurrentRefinement$3(props, searchState, {
|
|
8376
8355
|
ais: props.contextValue,
|
|
8377
8356
|
multiIndexContext: props.indexContextValue
|
|
8378
8357
|
}),
|
|
@@ -8419,8 +8398,8 @@ var connectMenu = createConnectorWithContext({
|
|
|
8419
8398
|
|
|
8420
8399
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
8421
8400
|
return {
|
|
8422
|
-
items: transformedItems.slice(0, getLimit
|
|
8423
|
-
currentRefinement: getCurrentRefinement$
|
|
8401
|
+
items: transformedItems.slice(0, getLimit(props)),
|
|
8402
|
+
currentRefinement: getCurrentRefinement$3(props, searchState, {
|
|
8424
8403
|
ais: props.contextValue,
|
|
8425
8404
|
multiIndexContext: props.indexContextValue
|
|
8426
8405
|
}),
|
|
@@ -8430,7 +8409,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8430
8409
|
};
|
|
8431
8410
|
},
|
|
8432
8411
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8433
|
-
return _refine$
|
|
8412
|
+
return _refine$2(props, searchState, nextRefinement, {
|
|
8434
8413
|
ais: props.contextValue,
|
|
8435
8414
|
multiIndexContext: props.indexContextValue
|
|
8436
8415
|
});
|
|
@@ -8439,11 +8418,11 @@ var connectMenu = createConnectorWithContext({
|
|
|
8439
8418
|
return {
|
|
8440
8419
|
facetName: props.attribute,
|
|
8441
8420
|
query: nextRefinement,
|
|
8442
|
-
maxFacetHits: getLimit
|
|
8421
|
+
maxFacetHits: getLimit(props)
|
|
8443
8422
|
};
|
|
8444
8423
|
},
|
|
8445
8424
|
cleanUp: function cleanUp(props, searchState) {
|
|
8446
|
-
return _cleanUp$
|
|
8425
|
+
return _cleanUp$1(props, searchState, {
|
|
8447
8426
|
ais: props.contextValue,
|
|
8448
8427
|
multiIndexContext: props.indexContextValue
|
|
8449
8428
|
});
|
|
@@ -8451,10 +8430,10 @@ var connectMenu = createConnectorWithContext({
|
|
|
8451
8430
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8452
8431
|
var attribute = props.attribute;
|
|
8453
8432
|
searchParameters = searchParameters.setQueryParameters({
|
|
8454
|
-
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit
|
|
8433
|
+
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
|
|
8455
8434
|
});
|
|
8456
8435
|
searchParameters = searchParameters.addDisjunctiveFacet(attribute);
|
|
8457
|
-
var currentRefinement = getCurrentRefinement$
|
|
8436
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, {
|
|
8458
8437
|
ais: props.contextValue,
|
|
8459
8438
|
multiIndexContext: props.indexContextValue
|
|
8460
8439
|
});
|
|
@@ -8466,8 +8445,8 @@ var connectMenu = createConnectorWithContext({
|
|
|
8466
8445
|
return searchParameters;
|
|
8467
8446
|
},
|
|
8468
8447
|
getMetadata: function getMetadata(props, searchState) {
|
|
8469
|
-
var id = getId$
|
|
8470
|
-
var currentRefinement = getCurrentRefinement$
|
|
8448
|
+
var id = getId$6(props);
|
|
8449
|
+
var currentRefinement = getCurrentRefinement$3(props, searchState, {
|
|
8471
8450
|
ais: props.contextValue,
|
|
8472
8451
|
multiIndexContext: props.indexContextValue
|
|
8473
8452
|
});
|
|
@@ -8481,7 +8460,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8481
8460
|
label: "".concat(props.attribute, ": ").concat(currentRefinement),
|
|
8482
8461
|
attribute: props.attribute,
|
|
8483
8462
|
value: function value(nextState) {
|
|
8484
|
-
return _refine$
|
|
8463
|
+
return _refine$2(props, nextState, '', {
|
|
8485
8464
|
ais: props.contextValue,
|
|
8486
8465
|
multiIndexContext: props.indexContextValue
|
|
8487
8466
|
});
|
|
@@ -8497,7 +8476,10 @@ function _arrayWithHoles(arr) {
|
|
|
8497
8476
|
}
|
|
8498
8477
|
|
|
8499
8478
|
function _iterableToArrayLimit(arr, i) {
|
|
8500
|
-
if (
|
|
8479
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
8480
|
+
return;
|
|
8481
|
+
}
|
|
8482
|
+
|
|
8501
8483
|
var _arr = [];
|
|
8502
8484
|
var _n = true;
|
|
8503
8485
|
var _d = false;
|
|
@@ -8524,11 +8506,11 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
8524
8506
|
}
|
|
8525
8507
|
|
|
8526
8508
|
function _nonIterableRest() {
|
|
8527
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8509
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
8528
8510
|
}
|
|
8529
8511
|
|
|
8530
8512
|
function _slicedToArray(arr, i) {
|
|
8531
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
8513
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
8532
8514
|
}
|
|
8533
8515
|
|
|
8534
8516
|
function stringifyItem(item) {
|
|
@@ -8562,12 +8544,12 @@ function parseItem(value) {
|
|
|
8562
8544
|
|
|
8563
8545
|
var namespace$3 = 'multiRange';
|
|
8564
8546
|
|
|
8565
|
-
function getId$
|
|
8547
|
+
function getId$7(props) {
|
|
8566
8548
|
return props.attribute;
|
|
8567
8549
|
}
|
|
8568
8550
|
|
|
8569
|
-
function getCurrentRefinement$
|
|
8570
|
-
return getCurrentRefinementValue(props, searchState, context, "".concat(namespace$3, ".").concat(getId$
|
|
8551
|
+
function getCurrentRefinement$4(props, searchState, context) {
|
|
8552
|
+
return getCurrentRefinementValue(props, searchState, context, "".concat(namespace$3, ".").concat(getId$7(props)), '');
|
|
8571
8553
|
}
|
|
8572
8554
|
|
|
8573
8555
|
function isRefinementsRangeIncludesInsideItemRange(stats, start, end) {
|
|
@@ -8586,15 +8568,15 @@ function itemHasRefinement(attribute, results, value) {
|
|
|
8586
8568
|
return !(Boolean(stats) && (isRefinementsRangeIncludesInsideItemRange(stats, start, end) || isItemRangeIncludedInsideRefinementsRange(stats, start, end)));
|
|
8587
8569
|
}
|
|
8588
8570
|
|
|
8589
|
-
function _refine$
|
|
8590
|
-
var nextValue = _defineProperty({}, getId$
|
|
8571
|
+
function _refine$3(props, searchState, nextRefinement, context) {
|
|
8572
|
+
var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
|
|
8591
8573
|
|
|
8592
8574
|
var resetPage = true;
|
|
8593
8575
|
return refineValue(searchState, nextValue, context, resetPage, namespace$3);
|
|
8594
8576
|
}
|
|
8595
8577
|
|
|
8596
|
-
function _cleanUp$
|
|
8597
|
-
return cleanUpValue(searchState, context, "".concat(namespace$3, ".").concat(getId$
|
|
8578
|
+
function _cleanUp$2(props, searchState, context) {
|
|
8579
|
+
return cleanUpValue(searchState, context, "".concat(namespace$3, ".").concat(getId$7(props)));
|
|
8598
8580
|
}
|
|
8599
8581
|
/**
|
|
8600
8582
|
* connectNumericMenu connector provides the logic to build a widget that will
|
|
@@ -8628,7 +8610,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8628
8610
|
},
|
|
8629
8611
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
8630
8612
|
var attribute = props.attribute;
|
|
8631
|
-
var currentRefinement = getCurrentRefinement$
|
|
8613
|
+
var currentRefinement = getCurrentRefinement$4(props, searchState, {
|
|
8632
8614
|
ais: props.contextValue,
|
|
8633
8615
|
multiIndexContext: props.indexContextValue
|
|
8634
8616
|
});
|
|
@@ -8642,11 +8624,11 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8642
8624
|
label: item.label,
|
|
8643
8625
|
value: value,
|
|
8644
8626
|
isRefined: value === currentRefinement,
|
|
8645
|
-
noRefinement: results ? itemHasRefinement(getId$
|
|
8627
|
+
noRefinement: results ? itemHasRefinement(getId$7(props), results, value) : false
|
|
8646
8628
|
};
|
|
8647
8629
|
});
|
|
8648
8630
|
var stats = results && results.getFacetByName(attribute) ? results.getFacetStats(attribute) : null;
|
|
8649
|
-
var refinedItem = find
|
|
8631
|
+
var refinedItem = find(items, function (item) {
|
|
8650
8632
|
return item.isRefined === true;
|
|
8651
8633
|
});
|
|
8652
8634
|
|
|
@@ -8671,13 +8653,13 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8671
8653
|
};
|
|
8672
8654
|
},
|
|
8673
8655
|
refine: function refine(props, searchState, nextRefinement) {
|
|
8674
|
-
return _refine$
|
|
8656
|
+
return _refine$3(props, searchState, nextRefinement, {
|
|
8675
8657
|
ais: props.contextValue,
|
|
8676
8658
|
multiIndexContext: props.indexContextValue
|
|
8677
8659
|
});
|
|
8678
8660
|
},
|
|
8679
8661
|
cleanUp: function cleanUp(props, searchState) {
|
|
8680
|
-
return _cleanUp$
|
|
8662
|
+
return _cleanUp$2(props, searchState, {
|
|
8681
8663
|
ais: props.contextValue,
|
|
8682
8664
|
multiIndexContext: props.indexContextValue
|
|
8683
8665
|
});
|
|
@@ -8685,7 +8667,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8685
8667
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8686
8668
|
var attribute = props.attribute;
|
|
8687
8669
|
|
|
8688
|
-
var _parseItem = parseItem(getCurrentRefinement$
|
|
8670
|
+
var _parseItem = parseItem(getCurrentRefinement$4(props, searchState, {
|
|
8689
8671
|
ais: props.contextValue,
|
|
8690
8672
|
multiIndexContext: props.indexContextValue
|
|
8691
8673
|
})),
|
|
@@ -8705,8 +8687,8 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8705
8687
|
return searchParameters;
|
|
8706
8688
|
},
|
|
8707
8689
|
getMetadata: function getMetadata(props, searchState) {
|
|
8708
|
-
var id = getId$
|
|
8709
|
-
var value = getCurrentRefinement$
|
|
8690
|
+
var id = getId$7(props);
|
|
8691
|
+
var value = getCurrentRefinement$4(props, searchState, {
|
|
8710
8692
|
ais: props.contextValue,
|
|
8711
8693
|
multiIndexContext: props.indexContextValue
|
|
8712
8694
|
});
|
|
@@ -8717,7 +8699,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8717
8699
|
});
|
|
8718
8700
|
|
|
8719
8701
|
if (value !== '') {
|
|
8720
|
-
var _find = find
|
|
8702
|
+
var _find = find(props.items, function (item) {
|
|
8721
8703
|
return stringifyItem(item) === value;
|
|
8722
8704
|
}),
|
|
8723
8705
|
label = _find.label;
|
|
@@ -8727,7 +8709,7 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8727
8709
|
attribute: props.attribute,
|
|
8728
8710
|
currentRefinement: label,
|
|
8729
8711
|
value: function value(nextState) {
|
|
8730
|
-
return _refine$
|
|
8712
|
+
return _refine$3(props, nextState, '', {
|
|
8731
8713
|
ais: props.contextValue,
|
|
8732
8714
|
multiIndexContext: props.indexContextValue
|
|
8733
8715
|
});
|
|
@@ -8743,12 +8725,12 @@ var connectNumericMenu = createConnectorWithContext({
|
|
|
8743
8725
|
}
|
|
8744
8726
|
});
|
|
8745
8727
|
|
|
8746
|
-
function getId$
|
|
8728
|
+
function getId$8() {
|
|
8747
8729
|
return 'page';
|
|
8748
8730
|
}
|
|
8749
8731
|
|
|
8750
|
-
function getCurrentRefinement$
|
|
8751
|
-
var id = getId$
|
|
8732
|
+
function getCurrentRefinement$5(props, searchState, context) {
|
|
8733
|
+
var id = getId$8();
|
|
8752
8734
|
var page = 1;
|
|
8753
8735
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
|
|
8754
8736
|
|
|
@@ -8759,8 +8741,8 @@ function getCurrentRefinement$6(props, searchState, context) {
|
|
|
8759
8741
|
return currentRefinement;
|
|
8760
8742
|
}
|
|
8761
8743
|
|
|
8762
|
-
function _refine$
|
|
8763
|
-
var id = getId$
|
|
8744
|
+
function _refine$4(props, searchState, nextPage, context) {
|
|
8745
|
+
var id = getId$8();
|
|
8764
8746
|
|
|
8765
8747
|
var nextValue = _defineProperty({}, id, nextPage);
|
|
8766
8748
|
|
|
@@ -8800,7 +8782,7 @@ var connectPagination = createConnectorWithContext({
|
|
|
8800
8782
|
var nbPages = results.nbPages;
|
|
8801
8783
|
return {
|
|
8802
8784
|
nbPages: nbPages,
|
|
8803
|
-
currentRefinement: getCurrentRefinement$
|
|
8785
|
+
currentRefinement: getCurrentRefinement$5(props, searchState, {
|
|
8804
8786
|
ais: props.contextValue,
|
|
8805
8787
|
multiIndexContext: props.indexContextValue
|
|
8806
8788
|
}),
|
|
@@ -8808,7 +8790,7 @@ var connectPagination = createConnectorWithContext({
|
|
|
8808
8790
|
};
|
|
8809
8791
|
},
|
|
8810
8792
|
refine: function refine(props, searchState, nextPage) {
|
|
8811
|
-
return _refine$
|
|
8793
|
+
return _refine$4(props, searchState, nextPage, {
|
|
8812
8794
|
ais: props.contextValue,
|
|
8813
8795
|
multiIndexContext: props.indexContextValue
|
|
8814
8796
|
});
|
|
@@ -8817,17 +8799,17 @@ var connectPagination = createConnectorWithContext({
|
|
|
8817
8799
|
return cleanUpValue(searchState, {
|
|
8818
8800
|
ais: props.contextValue,
|
|
8819
8801
|
multiIndexContext: props.indexContextValue
|
|
8820
|
-
}, getId$
|
|
8802
|
+
}, getId$8());
|
|
8821
8803
|
},
|
|
8822
8804
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
8823
|
-
return searchParameters.setPage(getCurrentRefinement$
|
|
8805
|
+
return searchParameters.setPage(getCurrentRefinement$5(props, searchState, {
|
|
8824
8806
|
ais: props.contextValue,
|
|
8825
8807
|
multiIndexContext: props.indexContextValue
|
|
8826
8808
|
}) - 1);
|
|
8827
8809
|
},
|
|
8828
8810
|
getMetadata: function getMetadata() {
|
|
8829
8811
|
return {
|
|
8830
|
-
id: getId$
|
|
8812
|
+
id: getId$8()
|
|
8831
8813
|
};
|
|
8832
8814
|
}
|
|
8833
8815
|
});
|
|
@@ -8873,11 +8855,11 @@ var connectPoweredBy = createConnectorWithContext({
|
|
|
8873
8855
|
* @providedPropType {number} precision - Number of digits after decimal point to use.
|
|
8874
8856
|
*/
|
|
8875
8857
|
|
|
8876
|
-
function getId$
|
|
8858
|
+
function getId$9(props) {
|
|
8877
8859
|
return props.attribute;
|
|
8878
8860
|
}
|
|
8879
8861
|
|
|
8880
|
-
var namespace$
|
|
8862
|
+
var namespace$4 = 'range';
|
|
8881
8863
|
|
|
8882
8864
|
function getCurrentRange(boundaries, stats, precision) {
|
|
8883
8865
|
var pow = Math.pow(10, precision);
|
|
@@ -8907,8 +8889,8 @@ function getCurrentRange(boundaries, stats, precision) {
|
|
|
8907
8889
|
};
|
|
8908
8890
|
}
|
|
8909
8891
|
|
|
8910
|
-
function getCurrentRefinement$
|
|
8911
|
-
var _getCurrentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$
|
|
8892
|
+
function getCurrentRefinement$6(props, searchState, currentRange, context) {
|
|
8893
|
+
var _getCurrentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)), {}),
|
|
8912
8894
|
min = _getCurrentRefinement.min,
|
|
8913
8895
|
max = _getCurrentRefinement.max;
|
|
8914
8896
|
|
|
@@ -8974,7 +8956,7 @@ function nextValueForRefinement(hasBound, isReset, range, value) {
|
|
|
8974
8956
|
return next;
|
|
8975
8957
|
}
|
|
8976
8958
|
|
|
8977
|
-
function _refine$
|
|
8959
|
+
function _refine$5(props, searchState, nextRefinement, currentRange, context) {
|
|
8978
8960
|
var nextMin = nextRefinement.min,
|
|
8979
8961
|
nextMax = nextRefinement.max;
|
|
8980
8962
|
var currentMinRange = currentRange.min,
|
|
@@ -8998,7 +8980,7 @@ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
|
|
|
8998
8980
|
throw Error("You can't provide max value greater than range.");
|
|
8999
8981
|
}
|
|
9000
8982
|
|
|
9001
|
-
var id = getId$
|
|
8983
|
+
var id = getId$9(props);
|
|
9002
8984
|
var resetPage = true;
|
|
9003
8985
|
|
|
9004
8986
|
var nextValue = _defineProperty({}, id, {
|
|
@@ -9006,11 +8988,11 @@ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
|
|
|
9006
8988
|
max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
|
|
9007
8989
|
});
|
|
9008
8990
|
|
|
9009
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
8991
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$4);
|
|
9010
8992
|
}
|
|
9011
8993
|
|
|
9012
|
-
function _cleanUp$
|
|
9013
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
8994
|
+
function _cleanUp$3(props, searchState, context) {
|
|
8995
|
+
return cleanUpValue(searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)));
|
|
9014
8996
|
}
|
|
9015
8997
|
|
|
9016
8998
|
var connectRange = createConnectorWithContext({
|
|
@@ -9065,7 +9047,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9065
9047
|
min: rangeMin,
|
|
9066
9048
|
max: rangeMax
|
|
9067
9049
|
};
|
|
9068
|
-
var currentRefinement = getCurrentRefinement$
|
|
9050
|
+
var currentRefinement = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9069
9051
|
ais: props.contextValue,
|
|
9070
9052
|
multiIndexContext: props.indexContextValue
|
|
9071
9053
|
});
|
|
@@ -9079,13 +9061,13 @@ var connectRange = createConnectorWithContext({
|
|
|
9079
9061
|
};
|
|
9080
9062
|
},
|
|
9081
9063
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9082
|
-
return _refine$
|
|
9064
|
+
return _refine$5(props, searchState, nextRefinement, this._currentRange, {
|
|
9083
9065
|
ais: props.contextValue,
|
|
9084
9066
|
multiIndexContext: props.indexContextValue
|
|
9085
9067
|
});
|
|
9086
9068
|
},
|
|
9087
9069
|
cleanUp: function cleanUp(props, searchState) {
|
|
9088
|
-
return _cleanUp$
|
|
9070
|
+
return _cleanUp$3(props, searchState, {
|
|
9089
9071
|
ais: props.contextValue,
|
|
9090
9072
|
multiIndexContext: props.indexContextValue
|
|
9091
9073
|
});
|
|
@@ -9093,7 +9075,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9093
9075
|
getSearchParameters: function getSearchParameters(params, props, searchState) {
|
|
9094
9076
|
var attribute = props.attribute;
|
|
9095
9077
|
|
|
9096
|
-
var _getCurrentRefinement2 = getCurrentRefinement$
|
|
9078
|
+
var _getCurrentRefinement2 = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9097
9079
|
ais: props.contextValue,
|
|
9098
9080
|
multiIndexContext: props.indexContextValue
|
|
9099
9081
|
}),
|
|
@@ -9119,7 +9101,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9119
9101
|
minRange = _this$_currentRange.min,
|
|
9120
9102
|
maxRange = _this$_currentRange.max;
|
|
9121
9103
|
|
|
9122
|
-
var _getCurrentRefinement3 = getCurrentRefinement$
|
|
9104
|
+
var _getCurrentRefinement3 = getCurrentRefinement$6(props, searchState, this._currentRange, {
|
|
9123
9105
|
ais: props.contextValue,
|
|
9124
9106
|
multiIndexContext: props.indexContextValue
|
|
9125
9107
|
}),
|
|
@@ -9138,7 +9120,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9138
9120
|
label: fragments.join(''),
|
|
9139
9121
|
attribute: props.attribute,
|
|
9140
9122
|
value: function value(nextState) {
|
|
9141
|
-
return _refine$
|
|
9123
|
+
return _refine$5(props, nextState, {}, _this._currentRange, {
|
|
9142
9124
|
ais: props.contextValue,
|
|
9143
9125
|
multiIndexContext: props.indexContextValue
|
|
9144
9126
|
});
|
|
@@ -9154,7 +9136,7 @@ var connectRange = createConnectorWithContext({
|
|
|
9154
9136
|
}
|
|
9155
9137
|
|
|
9156
9138
|
return {
|
|
9157
|
-
id: getId$
|
|
9139
|
+
id: getId$9(props),
|
|
9158
9140
|
index: getIndexId({
|
|
9159
9141
|
ais: props.contextValue,
|
|
9160
9142
|
multiIndexContext: props.indexContextValue
|
|
@@ -9164,14 +9146,14 @@ var connectRange = createConnectorWithContext({
|
|
|
9164
9146
|
}
|
|
9165
9147
|
});
|
|
9166
9148
|
|
|
9167
|
-
var namespace$
|
|
9149
|
+
var namespace$5 = 'refinementList';
|
|
9168
9150
|
|
|
9169
|
-
function getId$
|
|
9151
|
+
function getId$a(props) {
|
|
9170
9152
|
return props.attribute;
|
|
9171
9153
|
}
|
|
9172
9154
|
|
|
9173
|
-
function getCurrentRefinement$
|
|
9174
|
-
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$
|
|
9155
|
+
function getCurrentRefinement$7(props, searchState, context) {
|
|
9156
|
+
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$5, ".").concat(getId$a(props)), []);
|
|
9175
9157
|
|
|
9176
9158
|
if (typeof currentRefinement !== 'string') {
|
|
9177
9159
|
return currentRefinement;
|
|
@@ -9184,8 +9166,8 @@ function getCurrentRefinement$4(props, searchState, context) {
|
|
|
9184
9166
|
return [];
|
|
9185
9167
|
}
|
|
9186
9168
|
|
|
9187
|
-
function getValue(name, props, searchState, context) {
|
|
9188
|
-
var currentRefinement = getCurrentRefinement$
|
|
9169
|
+
function getValue$2(name, props, searchState, context) {
|
|
9170
|
+
var currentRefinement = getCurrentRefinement$7(props, searchState, context);
|
|
9189
9171
|
var isAnewValue = currentRefinement.indexOf(name) === -1;
|
|
9190
9172
|
var nextRefinement = isAnewValue ? currentRefinement.concat([name]) // cannot use .push(), it mutates
|
|
9191
9173
|
: currentRefinement.filter(function (selectedValue) {
|
|
@@ -9195,15 +9177,15 @@ function getValue(name, props, searchState, context) {
|
|
|
9195
9177
|
return nextRefinement;
|
|
9196
9178
|
}
|
|
9197
9179
|
|
|
9198
|
-
function getLimit(_ref) {
|
|
9180
|
+
function getLimit$1(_ref) {
|
|
9199
9181
|
var showMore = _ref.showMore,
|
|
9200
9182
|
limit = _ref.limit,
|
|
9201
9183
|
showMoreLimit = _ref.showMoreLimit;
|
|
9202
9184
|
return showMore ? showMoreLimit : limit;
|
|
9203
9185
|
}
|
|
9204
9186
|
|
|
9205
|
-
function _refine$
|
|
9206
|
-
var id = getId$
|
|
9187
|
+
function _refine$6(props, searchState, nextRefinement, context) {
|
|
9188
|
+
var id = getId$a(props); // Setting the value to an empty string ensures that it is persisted in
|
|
9207
9189
|
// the URL as an empty value.
|
|
9208
9190
|
// This is necessary in the case where `defaultRefinement` contains one
|
|
9209
9191
|
// item and we try to deselect it. `nextSelected` would be an empty array,
|
|
@@ -9214,11 +9196,11 @@ function _refine$3(props, searchState, nextRefinement, context) {
|
|
|
9214
9196
|
var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9215
9197
|
|
|
9216
9198
|
var resetPage = true;
|
|
9217
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace$
|
|
9199
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$5);
|
|
9218
9200
|
}
|
|
9219
9201
|
|
|
9220
|
-
function _cleanUp$
|
|
9221
|
-
return cleanUpValue(searchState, context, "".concat(namespace$
|
|
9202
|
+
function _cleanUp$4(props, searchState, context) {
|
|
9203
|
+
return cleanUpValue(searchState, context, "".concat(namespace$5, ".").concat(getId$a(props)));
|
|
9222
9204
|
}
|
|
9223
9205
|
/**
|
|
9224
9206
|
* connectRefinementList connector provides the logic to build a widget that will
|
|
@@ -9245,7 +9227,7 @@ function _cleanUp$3(props, searchState, context) {
|
|
|
9245
9227
|
*/
|
|
9246
9228
|
|
|
9247
9229
|
|
|
9248
|
-
var sortBy = ['isRefined', 'count:desc', 'name:asc'];
|
|
9230
|
+
var sortBy$1 = ['isRefined', 'count:desc', 'name:asc'];
|
|
9249
9231
|
var connectRefinementList = createConnectorWithContext({
|
|
9250
9232
|
displayName: 'AlgoliaRefinementList',
|
|
9251
9233
|
propTypes: {
|
|
@@ -9283,7 +9265,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9283
9265
|
if (!canRefine) {
|
|
9284
9266
|
return {
|
|
9285
9267
|
items: [],
|
|
9286
|
-
currentRefinement: getCurrentRefinement$
|
|
9268
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, {
|
|
9287
9269
|
ais: props.contextValue,
|
|
9288
9270
|
multiIndexContext: props.indexContextValue
|
|
9289
9271
|
}),
|
|
@@ -9296,7 +9278,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9296
9278
|
var items = isFromSearch ? searchForFacetValuesResults[attribute].map(function (v) {
|
|
9297
9279
|
return {
|
|
9298
9280
|
label: v.value,
|
|
9299
|
-
value: getValue(v.value, props, searchState, {
|
|
9281
|
+
value: getValue$2(v.value, props, searchState, {
|
|
9300
9282
|
ais: props.contextValue,
|
|
9301
9283
|
multiIndexContext: props.indexContextValue
|
|
9302
9284
|
}),
|
|
@@ -9309,11 +9291,11 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9309
9291
|
isRefined: v.isRefined
|
|
9310
9292
|
};
|
|
9311
9293
|
}) : results.getFacetValues(attribute, {
|
|
9312
|
-
sortBy: sortBy
|
|
9294
|
+
sortBy: sortBy$1
|
|
9313
9295
|
}).map(function (v) {
|
|
9314
9296
|
return {
|
|
9315
9297
|
label: v.name,
|
|
9316
|
-
value: getValue(v.name, props, searchState, {
|
|
9298
|
+
value: getValue$2(v.name, props, searchState, {
|
|
9317
9299
|
ais: props.contextValue,
|
|
9318
9300
|
multiIndexContext: props.indexContextValue
|
|
9319
9301
|
}),
|
|
@@ -9323,8 +9305,8 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9323
9305
|
});
|
|
9324
9306
|
var transformedItems = props.transformItems ? props.transformItems(items) : items;
|
|
9325
9307
|
return {
|
|
9326
|
-
items: transformedItems.slice(0, getLimit(props)),
|
|
9327
|
-
currentRefinement: getCurrentRefinement$
|
|
9308
|
+
items: transformedItems.slice(0, getLimit$1(props)),
|
|
9309
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, {
|
|
9328
9310
|
ais: props.contextValue,
|
|
9329
9311
|
multiIndexContext: props.indexContextValue
|
|
9330
9312
|
}),
|
|
@@ -9334,7 +9316,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9334
9316
|
};
|
|
9335
9317
|
},
|
|
9336
9318
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9337
|
-
return _refine$
|
|
9319
|
+
return _refine$6(props, searchState, nextRefinement, {
|
|
9338
9320
|
ais: props.contextValue,
|
|
9339
9321
|
multiIndexContext: props.indexContextValue
|
|
9340
9322
|
});
|
|
@@ -9343,11 +9325,11 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9343
9325
|
return {
|
|
9344
9326
|
facetName: props.attribute,
|
|
9345
9327
|
query: nextRefinement,
|
|
9346
|
-
maxFacetHits: getLimit(props)
|
|
9328
|
+
maxFacetHits: getLimit$1(props)
|
|
9347
9329
|
};
|
|
9348
9330
|
},
|
|
9349
9331
|
cleanUp: function cleanUp(props, searchState) {
|
|
9350
|
-
return _cleanUp$
|
|
9332
|
+
return _cleanUp$4(props, searchState, {
|
|
9351
9333
|
ais: props.contextValue,
|
|
9352
9334
|
multiIndexContext: props.indexContextValue
|
|
9353
9335
|
});
|
|
@@ -9358,10 +9340,10 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9358
9340
|
var addKey = operator === 'and' ? 'addFacet' : 'addDisjunctiveFacet';
|
|
9359
9341
|
var addRefinementKey = "".concat(addKey, "Refinement");
|
|
9360
9342
|
searchParameters = searchParameters.setQueryParameters({
|
|
9361
|
-
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
|
|
9343
|
+
maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit$1(props))
|
|
9362
9344
|
});
|
|
9363
9345
|
searchParameters = searchParameters[addKey](attribute);
|
|
9364
|
-
return getCurrentRefinement$
|
|
9346
|
+
return getCurrentRefinement$7(props, searchState, {
|
|
9365
9347
|
ais: props.contextValue,
|
|
9366
9348
|
multiIndexContext: props.indexContextValue
|
|
9367
9349
|
}).reduce(function (res, val) {
|
|
@@ -9369,7 +9351,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9369
9351
|
}, searchParameters);
|
|
9370
9352
|
},
|
|
9371
9353
|
getMetadata: function getMetadata(props, searchState) {
|
|
9372
|
-
var id = getId$
|
|
9354
|
+
var id = getId$a(props);
|
|
9373
9355
|
var context = {
|
|
9374
9356
|
ais: props.contextValue,
|
|
9375
9357
|
multiIndexContext: props.indexContextValue
|
|
@@ -9377,21 +9359,21 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9377
9359
|
return {
|
|
9378
9360
|
id: id,
|
|
9379
9361
|
index: getIndexId(context),
|
|
9380
|
-
items: getCurrentRefinement$
|
|
9362
|
+
items: getCurrentRefinement$7(props, searchState, context).length > 0 ? [{
|
|
9381
9363
|
attribute: props.attribute,
|
|
9382
9364
|
label: "".concat(props.attribute, ": "),
|
|
9383
|
-
currentRefinement: getCurrentRefinement$
|
|
9365
|
+
currentRefinement: getCurrentRefinement$7(props, searchState, context),
|
|
9384
9366
|
value: function value(nextState) {
|
|
9385
|
-
return _refine$
|
|
9367
|
+
return _refine$6(props, nextState, [], context);
|
|
9386
9368
|
},
|
|
9387
|
-
items: getCurrentRefinement$
|
|
9369
|
+
items: getCurrentRefinement$7(props, searchState, context).map(function (item) {
|
|
9388
9370
|
return {
|
|
9389
9371
|
label: "".concat(item),
|
|
9390
9372
|
value: function value(nextState) {
|
|
9391
|
-
var nextSelectedItems = getCurrentRefinement$
|
|
9373
|
+
var nextSelectedItems = getCurrentRefinement$7(props, nextState, context).filter(function (other) {
|
|
9392
9374
|
return other !== item;
|
|
9393
9375
|
});
|
|
9394
|
-
return _refine$
|
|
9376
|
+
return _refine$6(props, searchState, nextSelectedItems, context);
|
|
9395
9377
|
}
|
|
9396
9378
|
};
|
|
9397
9379
|
})
|
|
@@ -9450,7 +9432,7 @@ var connectScrollTo = createConnectorWithContext({
|
|
|
9450
9432
|
// See: https://github.com/algolia/react-instantsearch/issues/164
|
|
9451
9433
|
|
|
9452
9434
|
|
|
9453
|
-
var cleanedSearchState = omit
|
|
9435
|
+
var cleanedSearchState = omit(searchState, ['configure', id]);
|
|
9454
9436
|
var hasNotChanged = shallowEqual(this._prevSearchState, cleanedSearchState);
|
|
9455
9437
|
this._prevSearchState = cleanedSearchState;
|
|
9456
9438
|
return {
|
|
@@ -9460,12 +9442,12 @@ var connectScrollTo = createConnectorWithContext({
|
|
|
9460
9442
|
}
|
|
9461
9443
|
});
|
|
9462
9444
|
|
|
9463
|
-
function getId$
|
|
9445
|
+
function getId$b() {
|
|
9464
9446
|
return 'query';
|
|
9465
9447
|
}
|
|
9466
9448
|
|
|
9467
|
-
function getCurrentRefinement$
|
|
9468
|
-
var id = getId$
|
|
9449
|
+
function getCurrentRefinement$8(props, searchState, context) {
|
|
9450
|
+
var id = getId$b();
|
|
9469
9451
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
|
|
9470
9452
|
|
|
9471
9453
|
if (currentRefinement) {
|
|
@@ -9475,8 +9457,8 @@ function getCurrentRefinement$3(props, searchState, context) {
|
|
|
9475
9457
|
return '';
|
|
9476
9458
|
}
|
|
9477
9459
|
|
|
9478
|
-
function _refine$
|
|
9479
|
-
var id = getId$
|
|
9460
|
+
function _refine$7(props, searchState, nextRefinement, context) {
|
|
9461
|
+
var id = getId$b();
|
|
9480
9462
|
|
|
9481
9463
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9482
9464
|
|
|
@@ -9484,8 +9466,8 @@ function _refine$2(props, searchState, nextRefinement, context) {
|
|
|
9484
9466
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9485
9467
|
}
|
|
9486
9468
|
|
|
9487
|
-
function _cleanUp$
|
|
9488
|
-
return cleanUpValue(searchState, context, getId$
|
|
9469
|
+
function _cleanUp$5(props, searchState, context) {
|
|
9470
|
+
return cleanUpValue(searchState, context, getId$b());
|
|
9489
9471
|
}
|
|
9490
9472
|
/**
|
|
9491
9473
|
* connectSearchBox connector provides the logic to build a widget that will
|
|
@@ -9506,7 +9488,7 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9506
9488
|
},
|
|
9507
9489
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9508
9490
|
return {
|
|
9509
|
-
currentRefinement: getCurrentRefinement$
|
|
9491
|
+
currentRefinement: getCurrentRefinement$8(props, searchState, {
|
|
9510
9492
|
ais: props.contextValue,
|
|
9511
9493
|
multiIndexContext: props.indexContextValue
|
|
9512
9494
|
}),
|
|
@@ -9514,26 +9496,26 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9514
9496
|
};
|
|
9515
9497
|
},
|
|
9516
9498
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9517
|
-
return _refine$
|
|
9499
|
+
return _refine$7(props, searchState, nextRefinement, {
|
|
9518
9500
|
ais: props.contextValue,
|
|
9519
9501
|
multiIndexContext: props.indexContextValue
|
|
9520
9502
|
});
|
|
9521
9503
|
},
|
|
9522
9504
|
cleanUp: function cleanUp(props, searchState) {
|
|
9523
|
-
return _cleanUp$
|
|
9505
|
+
return _cleanUp$5(props, searchState, {
|
|
9524
9506
|
ais: props.contextValue,
|
|
9525
9507
|
multiIndexContext: props.indexContextValue
|
|
9526
9508
|
});
|
|
9527
9509
|
},
|
|
9528
9510
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9529
|
-
return searchParameters.setQuery(getCurrentRefinement$
|
|
9511
|
+
return searchParameters.setQuery(getCurrentRefinement$8(props, searchState, {
|
|
9530
9512
|
ais: props.contextValue,
|
|
9531
9513
|
multiIndexContext: props.indexContextValue
|
|
9532
9514
|
}));
|
|
9533
9515
|
},
|
|
9534
9516
|
getMetadata: function getMetadata(props, searchState) {
|
|
9535
|
-
var id = getId$
|
|
9536
|
-
var currentRefinement = getCurrentRefinement$
|
|
9517
|
+
var id = getId$b();
|
|
9518
|
+
var currentRefinement = getCurrentRefinement$8(props, searchState, {
|
|
9537
9519
|
ais: props.contextValue,
|
|
9538
9520
|
multiIndexContext: props.indexContextValue
|
|
9539
9521
|
});
|
|
@@ -9546,7 +9528,7 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9546
9528
|
items: currentRefinement === null ? [] : [{
|
|
9547
9529
|
label: "".concat(id, ": ").concat(currentRefinement),
|
|
9548
9530
|
value: function value(nextState) {
|
|
9549
|
-
return _refine$
|
|
9531
|
+
return _refine$7(props, nextState, '', {
|
|
9550
9532
|
ais: props.contextValue,
|
|
9551
9533
|
multiIndexContext: props.indexContextValue
|
|
9552
9534
|
});
|
|
@@ -9557,12 +9539,12 @@ var connectSearchBox = createConnectorWithContext({
|
|
|
9557
9539
|
}
|
|
9558
9540
|
});
|
|
9559
9541
|
|
|
9560
|
-
function getId$
|
|
9542
|
+
function getId$c() {
|
|
9561
9543
|
return 'relevancyStrictness';
|
|
9562
9544
|
}
|
|
9563
9545
|
|
|
9564
|
-
function getCurrentRefinement$
|
|
9565
|
-
var id = getId$
|
|
9546
|
+
function getCurrentRefinement$9(props, searchState, context) {
|
|
9547
|
+
var id = getId$c();
|
|
9566
9548
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id);
|
|
9567
9549
|
return currentRefinement;
|
|
9568
9550
|
}
|
|
@@ -9588,13 +9570,13 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9588
9570
|
};
|
|
9589
9571
|
},
|
|
9590
9572
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9591
|
-
return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$
|
|
9573
|
+
return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$9(props, searchState, {
|
|
9592
9574
|
ais: props.contextValue,
|
|
9593
9575
|
multiIndexContext: props.indexContextValue
|
|
9594
9576
|
}));
|
|
9595
9577
|
},
|
|
9596
9578
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9597
|
-
var nextValue = _defineProperty({}, getId$
|
|
9579
|
+
var nextValue = _defineProperty({}, getId$c(), nextRefinement);
|
|
9598
9580
|
|
|
9599
9581
|
var resetPage = true;
|
|
9600
9582
|
return refineValue(searchState, nextValue, {
|
|
@@ -9604,12 +9586,12 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9604
9586
|
}
|
|
9605
9587
|
});
|
|
9606
9588
|
|
|
9607
|
-
function getId$
|
|
9589
|
+
function getId$d() {
|
|
9608
9590
|
return 'sortBy';
|
|
9609
9591
|
}
|
|
9610
9592
|
|
|
9611
|
-
function getCurrentRefinement$
|
|
9612
|
-
var id = getId$
|
|
9593
|
+
function getCurrentRefinement$a(props, searchState, context) {
|
|
9594
|
+
var id = getId$d();
|
|
9613
9595
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
|
|
9614
9596
|
|
|
9615
9597
|
if (currentRefinement) {
|
|
@@ -9646,7 +9628,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9646
9628
|
transformItems: PropTypes.func
|
|
9647
9629
|
},
|
|
9648
9630
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
9649
|
-
var currentRefinement = getCurrentRefinement$
|
|
9631
|
+
var currentRefinement = getCurrentRefinement$a(props, searchState, {
|
|
9650
9632
|
ais: props.contextValue,
|
|
9651
9633
|
multiIndexContext: props.indexContextValue
|
|
9652
9634
|
});
|
|
@@ -9663,7 +9645,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9663
9645
|
};
|
|
9664
9646
|
},
|
|
9665
9647
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9666
|
-
var id = getId$
|
|
9648
|
+
var id = getId$d();
|
|
9667
9649
|
|
|
9668
9650
|
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9669
9651
|
|
|
@@ -9677,10 +9659,10 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9677
9659
|
return cleanUpValue(searchState, {
|
|
9678
9660
|
ais: props.contextValue,
|
|
9679
9661
|
multiIndexContext: props.indexContextValue
|
|
9680
|
-
}, getId$
|
|
9662
|
+
}, getId$d());
|
|
9681
9663
|
},
|
|
9682
9664
|
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
|
|
9683
|
-
var selectedIndex = getCurrentRefinement$
|
|
9665
|
+
var selectedIndex = getCurrentRefinement$a(props, searchState, {
|
|
9684
9666
|
ais: props.contextValue,
|
|
9685
9667
|
multiIndexContext: props.indexContextValue
|
|
9686
9668
|
});
|
|
@@ -9688,7 +9670,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9688
9670
|
},
|
|
9689
9671
|
getMetadata: function getMetadata() {
|
|
9690
9672
|
return {
|
|
9691
|
-
id: getId$
|
|
9673
|
+
id: getId$d()
|
|
9692
9674
|
};
|
|
9693
9675
|
}
|
|
9694
9676
|
});
|
|
@@ -9724,15 +9706,15 @@ var connectStats = createConnectorWithContext({
|
|
|
9724
9706
|
}
|
|
9725
9707
|
});
|
|
9726
9708
|
|
|
9727
|
-
function getId$
|
|
9709
|
+
function getId$e(props) {
|
|
9728
9710
|
return props.attribute;
|
|
9729
9711
|
}
|
|
9730
9712
|
|
|
9731
|
-
var namespace = 'toggle';
|
|
9713
|
+
var namespace$6 = 'toggle';
|
|
9732
9714
|
var falsyStrings = ['0', 'false', 'null', 'undefined'];
|
|
9733
9715
|
|
|
9734
|
-
function getCurrentRefinement(props, searchState, context) {
|
|
9735
|
-
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace, ".").concat(getId$
|
|
9716
|
+
function getCurrentRefinement$b(props, searchState, context) {
|
|
9717
|
+
var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$6, ".").concat(getId$e(props)), false);
|
|
9736
9718
|
|
|
9737
9719
|
if (falsyStrings.indexOf(currentRefinement) !== -1) {
|
|
9738
9720
|
return false;
|
|
@@ -9741,17 +9723,17 @@ function getCurrentRefinement(props, searchState, context) {
|
|
|
9741
9723
|
return Boolean(currentRefinement);
|
|
9742
9724
|
}
|
|
9743
9725
|
|
|
9744
|
-
function _refine$
|
|
9745
|
-
var id = getId$
|
|
9726
|
+
function _refine$8(props, searchState, nextRefinement, context) {
|
|
9727
|
+
var id = getId$e(props);
|
|
9746
9728
|
|
|
9747
9729
|
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9748
9730
|
|
|
9749
9731
|
var resetPage = true;
|
|
9750
|
-
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
9732
|
+
return refineValue(searchState, nextValue, context, resetPage, namespace$6);
|
|
9751
9733
|
}
|
|
9752
9734
|
|
|
9753
|
-
function _cleanUp$
|
|
9754
|
-
return cleanUpValue(searchState, context, "".concat(namespace, ".").concat(getId$
|
|
9735
|
+
function _cleanUp$6(props, searchState, context) {
|
|
9736
|
+
return cleanUpValue(searchState, context, "".concat(namespace$6, ".").concat(getId$e(props)));
|
|
9755
9737
|
}
|
|
9756
9738
|
/**
|
|
9757
9739
|
* connectToggleRefinement connector provides the logic to build a widget that will
|
|
@@ -9790,14 +9772,14 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9790
9772
|
ais: props.contextValue,
|
|
9791
9773
|
multiIndexContext: props.indexContextValue
|
|
9792
9774
|
});
|
|
9793
|
-
var currentRefinement = getCurrentRefinement(props, searchState, {
|
|
9775
|
+
var currentRefinement = getCurrentRefinement$b(props, searchState, {
|
|
9794
9776
|
ais: props.contextValue,
|
|
9795
9777
|
multiIndexContext: props.indexContextValue
|
|
9796
9778
|
});
|
|
9797
9779
|
var allFacetValues = results && results.getFacetByName(attribute) ? results.getFacetValues(attribute) : null;
|
|
9798
9780
|
var facetValue = // Use null to always be consistent with type of the value
|
|
9799
9781
|
// count: number | null
|
|
9800
|
-
allFacetValues && allFacetValues.length ? find
|
|
9782
|
+
allFacetValues && allFacetValues.length ? find(allFacetValues, function (item) {
|
|
9801
9783
|
return item.name === value.toString();
|
|
9802
9784
|
}) : null;
|
|
9803
9785
|
var facetValueCount = facetValue && facetValue.count;
|
|
@@ -9818,13 +9800,13 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9818
9800
|
};
|
|
9819
9801
|
},
|
|
9820
9802
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9821
|
-
return _refine$
|
|
9803
|
+
return _refine$8(props, searchState, nextRefinement, {
|
|
9822
9804
|
ais: props.contextValue,
|
|
9823
9805
|
multiIndexContext: props.indexContextValue
|
|
9824
9806
|
});
|
|
9825
9807
|
},
|
|
9826
9808
|
cleanUp: function cleanUp(props, searchState) {
|
|
9827
|
-
return _cleanUp$
|
|
9809
|
+
return _cleanUp$6(props, searchState, {
|
|
9828
9810
|
ais: props.contextValue,
|
|
9829
9811
|
multiIndexContext: props.indexContextValue
|
|
9830
9812
|
});
|
|
@@ -9833,7 +9815,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9833
9815
|
var attribute = props.attribute,
|
|
9834
9816
|
value = props.value,
|
|
9835
9817
|
filter = props.filter;
|
|
9836
|
-
var checked = getCurrentRefinement(props, searchState, {
|
|
9818
|
+
var checked = getCurrentRefinement$b(props, searchState, {
|
|
9837
9819
|
ais: props.contextValue,
|
|
9838
9820
|
multiIndexContext: props.indexContextValue
|
|
9839
9821
|
});
|
|
@@ -9850,8 +9832,8 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9850
9832
|
return nextSearchParameters;
|
|
9851
9833
|
},
|
|
9852
9834
|
getMetadata: function getMetadata(props, searchState) {
|
|
9853
|
-
var id = getId$
|
|
9854
|
-
var checked = getCurrentRefinement(props, searchState, {
|
|
9835
|
+
var id = getId$e(props);
|
|
9836
|
+
var checked = getCurrentRefinement$b(props, searchState, {
|
|
9855
9837
|
ais: props.contextValue,
|
|
9856
9838
|
multiIndexContext: props.indexContextValue
|
|
9857
9839
|
});
|
|
@@ -9867,7 +9849,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9867
9849
|
currentRefinement: checked,
|
|
9868
9850
|
attribute: props.attribute,
|
|
9869
9851
|
value: function value(nextState) {
|
|
9870
|
-
return _refine$
|
|
9852
|
+
return _refine$8(props, nextState, false, {
|
|
9871
9853
|
ais: props.contextValue,
|
|
9872
9854
|
multiIndexContext: props.indexContextValue
|
|
9873
9855
|
});
|
|
@@ -9883,7 +9865,7 @@ var connectToggleRefinement = createConnectorWithContext({
|
|
|
9883
9865
|
}
|
|
9884
9866
|
});
|
|
9885
9867
|
|
|
9886
|
-
function getId() {
|
|
9868
|
+
function getId$f() {
|
|
9887
9869
|
return 'query';
|
|
9888
9870
|
}
|
|
9889
9871
|
|
|
@@ -9892,7 +9874,7 @@ function getAdditionalId() {
|
|
|
9892
9874
|
}
|
|
9893
9875
|
|
|
9894
9876
|
function getCurrentRefinementQuery(props, searchState, context) {
|
|
9895
|
-
var id = getId();
|
|
9877
|
+
var id = getId$f();
|
|
9896
9878
|
var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
|
|
9897
9879
|
|
|
9898
9880
|
if (currentRefinement) {
|
|
@@ -9913,10 +9895,10 @@ function getCurrentRefinementAdditional(props, searchState, context) {
|
|
|
9913
9895
|
return {};
|
|
9914
9896
|
}
|
|
9915
9897
|
|
|
9916
|
-
function _refine(props, searchState, nextRefinement, context) {
|
|
9898
|
+
function _refine$9(props, searchState, nextRefinement, context) {
|
|
9917
9899
|
var _nextValue;
|
|
9918
9900
|
|
|
9919
|
-
var id = getId();
|
|
9901
|
+
var id = getId$f();
|
|
9920
9902
|
var voiceParams = getAdditionalId();
|
|
9921
9903
|
var queryLanguages = props.language ? {
|
|
9922
9904
|
queryLanguages: [props.language.split('-')[0]]
|
|
@@ -9933,8 +9915,8 @@ function _refine(props, searchState, nextRefinement, context) {
|
|
|
9933
9915
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9934
9916
|
}
|
|
9935
9917
|
|
|
9936
|
-
function _cleanUp(props, searchState, context) {
|
|
9937
|
-
var interimState = cleanUpValue(searchState, context, getId());
|
|
9918
|
+
function _cleanUp$7(props, searchState, context) {
|
|
9919
|
+
var interimState = cleanUpValue(searchState, context, getId$f());
|
|
9938
9920
|
return cleanUpValue(interimState, context, getAdditionalId());
|
|
9939
9921
|
}
|
|
9940
9922
|
|
|
@@ -9953,13 +9935,13 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9953
9935
|
};
|
|
9954
9936
|
},
|
|
9955
9937
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9956
|
-
return _refine(props, searchState, nextRefinement, {
|
|
9938
|
+
return _refine$9(props, searchState, nextRefinement, {
|
|
9957
9939
|
ais: props.contextValue,
|
|
9958
9940
|
multiIndexContext: props.indexContextValue
|
|
9959
9941
|
});
|
|
9960
9942
|
},
|
|
9961
9943
|
cleanUp: function cleanUp(props, searchState) {
|
|
9962
|
-
return _cleanUp(props, searchState, {
|
|
9944
|
+
return _cleanUp$7(props, searchState, {
|
|
9963
9945
|
ais: props.contextValue,
|
|
9964
9946
|
multiIndexContext: props.indexContextValue
|
|
9965
9947
|
});
|
|
@@ -9976,7 +9958,7 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9976
9958
|
return searchParameters.setQuery(query).setQueryParameters(additionalParams);
|
|
9977
9959
|
},
|
|
9978
9960
|
getMetadata: function getMetadata(props, searchState) {
|
|
9979
|
-
var id = getId();
|
|
9961
|
+
var id = getId$f();
|
|
9980
9962
|
var currentRefinement = getCurrentRefinementQuery(props, searchState, {
|
|
9981
9963
|
ais: props.contextValue,
|
|
9982
9964
|
multiIndexContext: props.indexContextValue
|
|
@@ -9990,7 +9972,7 @@ var connectVoiceSearch = createConnectorWithContext({
|
|
|
9990
9972
|
items: currentRefinement === null ? [] : [{
|
|
9991
9973
|
label: "".concat(id, ": ").concat(currentRefinement),
|
|
9992
9974
|
value: function value(nextState) {
|
|
9993
|
-
return _refine(props, nextState, '', {
|
|
9975
|
+
return _refine$9(props, nextState, '', {
|
|
9994
9976
|
ais: props.contextValue,
|
|
9995
9977
|
multiIndexContext: props.indexContextValue
|
|
9996
9978
|
});
|
|
@@ -10043,7 +10025,7 @@ function range(_ref) {
|
|
|
10043
10025
|
return (start + current) * limitStep;
|
|
10044
10026
|
});
|
|
10045
10027
|
}
|
|
10046
|
-
function find(array, comparator) {
|
|
10028
|
+
function find$2(array, comparator) {
|
|
10047
10029
|
if (!Array.isArray(array)) {
|
|
10048
10030
|
return undefined;
|
|
10049
10031
|
}
|
|
@@ -10057,11 +10039,11 @@ function find(array, comparator) {
|
|
|
10057
10039
|
return undefined;
|
|
10058
10040
|
}
|
|
10059
10041
|
|
|
10060
|
-
var cx
|
|
10042
|
+
var cx = createClassNames('Panel');
|
|
10061
10043
|
|
|
10062
|
-
var _createContext = createContext(function setCanRefine() {}),
|
|
10063
|
-
PanelConsumer = _createContext.Consumer,
|
|
10064
|
-
PanelProvider = _createContext.Provider;
|
|
10044
|
+
var _createContext$1 = createContext(function setCanRefine() {}),
|
|
10045
|
+
PanelConsumer = _createContext$1.Consumer,
|
|
10046
|
+
PanelProvider = _createContext$1.Provider;
|
|
10065
10047
|
|
|
10066
10048
|
var Panel =
|
|
10067
10049
|
/*#__PURE__*/
|
|
@@ -10103,16 +10085,16 @@ function (_Component) {
|
|
|
10103
10085
|
header = _this$props.header,
|
|
10104
10086
|
footer = _this$props.footer;
|
|
10105
10087
|
var canRefine = this.state.canRefine;
|
|
10106
|
-
return
|
|
10107
|
-
className: classnames(cx
|
|
10108
|
-
}, header &&
|
|
10109
|
-
className: cx
|
|
10110
|
-
}, header),
|
|
10111
|
-
className: cx
|
|
10112
|
-
},
|
|
10088
|
+
return React__default.createElement("div", {
|
|
10089
|
+
className: classnames(cx('', !canRefine && '-noRefinement'), className)
|
|
10090
|
+
}, header && React__default.createElement("div", {
|
|
10091
|
+
className: cx('header')
|
|
10092
|
+
}, header), React__default.createElement("div", {
|
|
10093
|
+
className: cx('body')
|
|
10094
|
+
}, React__default.createElement(PanelProvider, {
|
|
10113
10095
|
value: this.setCanRefine
|
|
10114
|
-
}, children)), footer &&
|
|
10115
|
-
className: cx
|
|
10096
|
+
}, children)), footer && React__default.createElement("div", {
|
|
10097
|
+
className: cx('footer')
|
|
10116
10098
|
}, footer));
|
|
10117
10099
|
}
|
|
10118
10100
|
}]);
|
|
@@ -10175,8 +10157,8 @@ _defineProperty(PanelCallbackHandler, "propTypes", {
|
|
|
10175
10157
|
var PanelWrapper = function PanelWrapper(_ref) {
|
|
10176
10158
|
var canRefine = _ref.canRefine,
|
|
10177
10159
|
children = _ref.children;
|
|
10178
|
-
return
|
|
10179
|
-
return
|
|
10160
|
+
return React__default.createElement(PanelConsumer, null, function (setCanRefine) {
|
|
10161
|
+
return React__default.createElement(PanelCallbackHandler, {
|
|
10180
10162
|
setCanRefine: setCanRefine,
|
|
10181
10163
|
canRefine: canRefine
|
|
10182
10164
|
}, children);
|
|
@@ -10222,7 +10204,7 @@ function (_Component) {
|
|
|
10222
10204
|
_createClass(Link, [{
|
|
10223
10205
|
key: "render",
|
|
10224
10206
|
value: function render() {
|
|
10225
|
-
return
|
|
10207
|
+
return React__default.createElement("a", _extends({}, this.props, {
|
|
10226
10208
|
onClick: this.onClick
|
|
10227
10209
|
}));
|
|
10228
10210
|
}
|
|
@@ -10235,8 +10217,8 @@ _defineProperty(Link, "propTypes", {
|
|
|
10235
10217
|
onClick: PropTypes.func.isRequired
|
|
10236
10218
|
});
|
|
10237
10219
|
|
|
10238
|
-
var cx$
|
|
10239
|
-
var itemsPropType
|
|
10220
|
+
var cx$1 = createClassNames('Breadcrumb');
|
|
10221
|
+
var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
|
|
10240
10222
|
label: PropTypes.string.isRequired,
|
|
10241
10223
|
value: PropTypes.string.isRequired
|
|
10242
10224
|
}));
|
|
@@ -10264,10 +10246,10 @@ function (_Component) {
|
|
|
10264
10246
|
separator = _this$props.separator,
|
|
10265
10247
|
translate = _this$props.translate,
|
|
10266
10248
|
className = _this$props.className;
|
|
10267
|
-
var rootPath = canRefine ?
|
|
10268
|
-
className: cx$
|
|
10269
|
-
},
|
|
10270
|
-
className: cx$
|
|
10249
|
+
var rootPath = canRefine ? React__default.createElement("li", {
|
|
10250
|
+
className: cx$1('item')
|
|
10251
|
+
}, React__default.createElement(Link, {
|
|
10252
|
+
className: cx$1('link'),
|
|
10271
10253
|
onClick: function onClick() {
|
|
10272
10254
|
return !rootURL ? refine() : null;
|
|
10273
10255
|
},
|
|
@@ -10275,23 +10257,23 @@ function (_Component) {
|
|
|
10275
10257
|
}, translate('rootLabel'))) : null;
|
|
10276
10258
|
var breadcrumb = items.map(function (item, idx) {
|
|
10277
10259
|
var isLast = idx === items.length - 1;
|
|
10278
|
-
return
|
|
10279
|
-
className: cx$
|
|
10260
|
+
return React__default.createElement("li", {
|
|
10261
|
+
className: cx$1('item', isLast && 'item--selected'),
|
|
10280
10262
|
key: idx
|
|
10281
|
-
},
|
|
10282
|
-
className: cx$
|
|
10283
|
-
}, separator), !isLast ?
|
|
10284
|
-
className: cx$
|
|
10263
|
+
}, React__default.createElement("span", {
|
|
10264
|
+
className: cx$1('separator')
|
|
10265
|
+
}, separator), !isLast ? React__default.createElement(Link, {
|
|
10266
|
+
className: cx$1('link'),
|
|
10285
10267
|
onClick: function onClick() {
|
|
10286
10268
|
return refine(item.value);
|
|
10287
10269
|
},
|
|
10288
10270
|
href: createURL(item.value)
|
|
10289
10271
|
}, item.label) : item.label);
|
|
10290
10272
|
});
|
|
10291
|
-
return
|
|
10292
|
-
className: classnames(cx$
|
|
10293
|
-
},
|
|
10294
|
-
className: cx$
|
|
10273
|
+
return React__default.createElement("div", {
|
|
10274
|
+
className: classnames(cx$1('', !canRefine && '-noRefinement'), className)
|
|
10275
|
+
}, React__default.createElement("ul", {
|
|
10276
|
+
className: cx$1('list')
|
|
10295
10277
|
}, rootPath, breadcrumb));
|
|
10296
10278
|
}
|
|
10297
10279
|
}]);
|
|
@@ -10302,7 +10284,7 @@ function (_Component) {
|
|
|
10302
10284
|
_defineProperty(Breadcrumb, "propTypes", {
|
|
10303
10285
|
canRefine: PropTypes.bool.isRequired,
|
|
10304
10286
|
createURL: PropTypes.func.isRequired,
|
|
10305
|
-
items: itemsPropType
|
|
10287
|
+
items: itemsPropType,
|
|
10306
10288
|
refine: PropTypes.func.isRequired,
|
|
10307
10289
|
rootURL: PropTypes.string,
|
|
10308
10290
|
separator: PropTypes.node,
|
|
@@ -10409,12 +10391,12 @@ var Breadcrumb$1 = translatable({
|
|
|
10409
10391
|
*/
|
|
10410
10392
|
|
|
10411
10393
|
var BreadcrumbWidget = function BreadcrumbWidget(props) {
|
|
10412
|
-
return
|
|
10394
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Breadcrumb$1, props));
|
|
10413
10395
|
};
|
|
10414
10396
|
|
|
10415
10397
|
connectBreadcrumb(BreadcrumbWidget);
|
|
10416
10398
|
|
|
10417
|
-
var cx$
|
|
10399
|
+
var cx$2 = createClassNames('ClearRefinements');
|
|
10418
10400
|
|
|
10419
10401
|
var ClearRefinements =
|
|
10420
10402
|
/*#__PURE__*/
|
|
@@ -10436,10 +10418,10 @@ function (_Component) {
|
|
|
10436
10418
|
refine = _this$props.refine,
|
|
10437
10419
|
translate = _this$props.translate,
|
|
10438
10420
|
className = _this$props.className;
|
|
10439
|
-
return
|
|
10440
|
-
className: classnames(cx$
|
|
10441
|
-
},
|
|
10442
|
-
className: cx$
|
|
10421
|
+
return React__default.createElement("div", {
|
|
10422
|
+
className: classnames(cx$2(''), className)
|
|
10423
|
+
}, React__default.createElement("button", {
|
|
10424
|
+
className: cx$2('button', !canRefine && 'button--disabled'),
|
|
10443
10425
|
onClick: function onClick() {
|
|
10444
10426
|
return refine(items);
|
|
10445
10427
|
},
|
|
@@ -10502,44 +10484,44 @@ var ClearRefinements$1 = translatable({
|
|
|
10502
10484
|
*/
|
|
10503
10485
|
|
|
10504
10486
|
var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
|
|
10505
|
-
return
|
|
10487
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(ClearRefinements$1, props));
|
|
10506
10488
|
};
|
|
10507
10489
|
|
|
10508
10490
|
connectCurrentRefinements(ClearRefinementsWidget);
|
|
10509
10491
|
|
|
10510
|
-
var cx$
|
|
10492
|
+
var cx$3 = createClassNames('CurrentRefinements');
|
|
10511
10493
|
var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
10512
10494
|
var items = _ref.items,
|
|
10513
10495
|
canRefine = _ref.canRefine,
|
|
10514
10496
|
refine = _ref.refine,
|
|
10515
10497
|
translate = _ref.translate,
|
|
10516
10498
|
className = _ref.className;
|
|
10517
|
-
return
|
|
10518
|
-
className: classnames(cx$
|
|
10519
|
-
},
|
|
10520
|
-
className: cx$
|
|
10499
|
+
return React__default.createElement("div", {
|
|
10500
|
+
className: classnames(cx$3('', !canRefine && '-noRefinement'), className)
|
|
10501
|
+
}, React__default.createElement("ul", {
|
|
10502
|
+
className: cx$3('list', !canRefine && 'list--noRefinement')
|
|
10521
10503
|
}, items.map(function (item) {
|
|
10522
|
-
return
|
|
10504
|
+
return React__default.createElement("li", {
|
|
10523
10505
|
key: item.label,
|
|
10524
|
-
className: cx$
|
|
10525
|
-
},
|
|
10526
|
-
className: cx$
|
|
10506
|
+
className: cx$3('item')
|
|
10507
|
+
}, React__default.createElement("span", {
|
|
10508
|
+
className: cx$3('label')
|
|
10527
10509
|
}, item.label), item.items ? item.items.map(function (nest) {
|
|
10528
|
-
return
|
|
10510
|
+
return React__default.createElement("span", {
|
|
10529
10511
|
key: nest.label,
|
|
10530
|
-
className: cx$
|
|
10531
|
-
},
|
|
10532
|
-
className: cx$
|
|
10533
|
-
}, nest.label),
|
|
10534
|
-
className: cx$
|
|
10512
|
+
className: cx$3('category')
|
|
10513
|
+
}, React__default.createElement("span", {
|
|
10514
|
+
className: cx$3('categoryLabel')
|
|
10515
|
+
}, nest.label), React__default.createElement("button", {
|
|
10516
|
+
className: cx$3('delete'),
|
|
10535
10517
|
onClick: function onClick() {
|
|
10536
10518
|
return refine(nest.value);
|
|
10537
10519
|
}
|
|
10538
10520
|
}, translate('clearFilter', nest)));
|
|
10539
|
-
}) :
|
|
10540
|
-
className: cx$
|
|
10541
|
-
},
|
|
10542
|
-
className: cx$
|
|
10521
|
+
}) : React__default.createElement("span", {
|
|
10522
|
+
className: cx$3('category')
|
|
10523
|
+
}, React__default.createElement("button", {
|
|
10524
|
+
className: cx$3('delete'),
|
|
10543
10525
|
onClick: function onClick() {
|
|
10544
10526
|
return refine(item.value);
|
|
10545
10527
|
}
|
|
@@ -10610,33 +10592,33 @@ var CurrentRefinements$1 = translatable({
|
|
|
10610
10592
|
*/
|
|
10611
10593
|
|
|
10612
10594
|
var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
|
|
10613
|
-
return
|
|
10595
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(CurrentRefinements$1, props));
|
|
10614
10596
|
};
|
|
10615
10597
|
|
|
10616
10598
|
connectCurrentRefinements(CurrentRefinementsWidget);
|
|
10617
10599
|
|
|
10618
|
-
var cx$
|
|
10619
|
-
var defaultLoadingIndicator =
|
|
10600
|
+
var cx$4 = createClassNames('SearchBox');
|
|
10601
|
+
var defaultLoadingIndicator = React__default.createElement("svg", {
|
|
10620
10602
|
width: "18",
|
|
10621
10603
|
height: "18",
|
|
10622
10604
|
viewBox: "0 0 38 38",
|
|
10623
10605
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10624
10606
|
stroke: "#444",
|
|
10625
|
-
className: cx$
|
|
10626
|
-
},
|
|
10607
|
+
className: cx$4('loadingIcon')
|
|
10608
|
+
}, React__default.createElement("g", {
|
|
10627
10609
|
fill: "none",
|
|
10628
10610
|
fillRule: "evenodd"
|
|
10629
|
-
},
|
|
10611
|
+
}, React__default.createElement("g", {
|
|
10630
10612
|
transform: "translate(1 1)",
|
|
10631
10613
|
strokeWidth: "2"
|
|
10632
|
-
},
|
|
10614
|
+
}, React__default.createElement("circle", {
|
|
10633
10615
|
strokeOpacity: ".5",
|
|
10634
10616
|
cx: "18",
|
|
10635
10617
|
cy: "18",
|
|
10636
10618
|
r: "18"
|
|
10637
|
-
}),
|
|
10619
|
+
}), React__default.createElement("path", {
|
|
10638
10620
|
d: "M36 18c0-9.94-8.06-18-18-18"
|
|
10639
|
-
},
|
|
10621
|
+
}, React__default.createElement("animateTransform", {
|
|
10640
10622
|
attributeName: "transform",
|
|
10641
10623
|
type: "rotate",
|
|
10642
10624
|
from: "0 18 18",
|
|
@@ -10644,26 +10626,26 @@ var defaultLoadingIndicator = React.createElement("svg", {
|
|
|
10644
10626
|
dur: "1s",
|
|
10645
10627
|
repeatCount: "indefinite"
|
|
10646
10628
|
})))));
|
|
10647
|
-
var defaultReset =
|
|
10648
|
-
className: cx$
|
|
10629
|
+
var defaultReset = React__default.createElement("svg", {
|
|
10630
|
+
className: cx$4('resetIcon'),
|
|
10649
10631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10650
10632
|
viewBox: "0 0 20 20",
|
|
10651
10633
|
width: "10",
|
|
10652
10634
|
height: "10"
|
|
10653
|
-
},
|
|
10635
|
+
}, React__default.createElement("path", {
|
|
10654
10636
|
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"
|
|
10655
10637
|
}));
|
|
10656
|
-
var defaultSubmit =
|
|
10657
|
-
className: cx$
|
|
10638
|
+
var defaultSubmit = React__default.createElement("svg", {
|
|
10639
|
+
className: cx$4('submitIcon'),
|
|
10658
10640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10659
10641
|
width: "10",
|
|
10660
10642
|
height: "10",
|
|
10661
10643
|
viewBox: "0 0 40 40"
|
|
10662
|
-
},
|
|
10644
|
+
}, React__default.createElement("path", {
|
|
10663
10645
|
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"
|
|
10664
10646
|
}));
|
|
10665
10647
|
|
|
10666
|
-
var SearchBox
|
|
10648
|
+
var SearchBox =
|
|
10667
10649
|
/*#__PURE__*/
|
|
10668
10650
|
function (_Component) {
|
|
10669
10651
|
_inherits(SearchBox, _Component);
|
|
@@ -10825,16 +10807,16 @@ function (_Component) {
|
|
|
10825
10807
|
var isSearchStalled = this.props.showLoadingIndicator && this.props.isSearchStalled;
|
|
10826
10808
|
/* eslint-disable max-len */
|
|
10827
10809
|
|
|
10828
|
-
return
|
|
10829
|
-
className: classnames(cx$
|
|
10830
|
-
},
|
|
10810
|
+
return React__default.createElement("div", {
|
|
10811
|
+
className: classnames(cx$4(''), className)
|
|
10812
|
+
}, React__default.createElement("form", {
|
|
10831
10813
|
noValidate: true,
|
|
10832
10814
|
onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
|
|
10833
10815
|
onReset: this.onReset,
|
|
10834
|
-
className: cx$
|
|
10816
|
+
className: cx$4('form', isSearchStalled && 'form--stalledSearch'),
|
|
10835
10817
|
action: "",
|
|
10836
10818
|
role: "search"
|
|
10837
|
-
},
|
|
10819
|
+
}, React__default.createElement("input", _extends({
|
|
10838
10820
|
ref: this.onInputMount,
|
|
10839
10821
|
type: "search",
|
|
10840
10822
|
placeholder: translate('placeholder'),
|
|
@@ -10848,19 +10830,19 @@ function (_Component) {
|
|
|
10848
10830
|
value: query,
|
|
10849
10831
|
onChange: this.onChange
|
|
10850
10832
|
}, searchInputEvents, {
|
|
10851
|
-
className: cx$
|
|
10852
|
-
})),
|
|
10833
|
+
className: cx$4('input')
|
|
10834
|
+
})), React__default.createElement("button", {
|
|
10853
10835
|
type: "submit",
|
|
10854
10836
|
title: translate('submitTitle'),
|
|
10855
|
-
className: cx$
|
|
10856
|
-
}, submit),
|
|
10837
|
+
className: cx$4('submit')
|
|
10838
|
+
}, submit), React__default.createElement("button", {
|
|
10857
10839
|
type: "reset",
|
|
10858
10840
|
title: translate('resetTitle'),
|
|
10859
|
-
className: cx$
|
|
10841
|
+
className: cx$4('reset'),
|
|
10860
10842
|
hidden: !query || isSearchStalled
|
|
10861
|
-
}, reset), this.props.showLoadingIndicator &&
|
|
10843
|
+
}, reset), this.props.showLoadingIndicator && React__default.createElement("span", {
|
|
10862
10844
|
hidden: !isSearchStalled,
|
|
10863
|
-
className: cx$
|
|
10845
|
+
className: cx$4('loadingIndicator')
|
|
10864
10846
|
}, loadingIndicator)));
|
|
10865
10847
|
/* eslint-enable */
|
|
10866
10848
|
}
|
|
@@ -10869,7 +10851,7 @@ function (_Component) {
|
|
|
10869
10851
|
return SearchBox;
|
|
10870
10852
|
}(Component);
|
|
10871
10853
|
|
|
10872
|
-
_defineProperty(SearchBox
|
|
10854
|
+
_defineProperty(SearchBox, "propTypes", {
|
|
10873
10855
|
currentRefinement: PropTypes.string,
|
|
10874
10856
|
className: PropTypes.string,
|
|
10875
10857
|
refine: PropTypes.func.isRequired,
|
|
@@ -10890,7 +10872,7 @@ _defineProperty(SearchBox$1, "propTypes", {
|
|
|
10890
10872
|
})])
|
|
10891
10873
|
});
|
|
10892
10874
|
|
|
10893
|
-
_defineProperty(SearchBox
|
|
10875
|
+
_defineProperty(SearchBox, "defaultProps", {
|
|
10894
10876
|
currentRefinement: '',
|
|
10895
10877
|
className: '',
|
|
10896
10878
|
focusShortcuts: ['s', '/'],
|
|
@@ -10903,11 +10885,11 @@ _defineProperty(SearchBox$1, "defaultProps", {
|
|
|
10903
10885
|
submit: defaultSubmit
|
|
10904
10886
|
});
|
|
10905
10887
|
|
|
10906
|
-
var SearchBox$
|
|
10888
|
+
var SearchBox$1 = translatable({
|
|
10907
10889
|
resetTitle: 'Clear the search query.',
|
|
10908
10890
|
submitTitle: 'Submit your search query.',
|
|
10909
10891
|
placeholder: 'Search here…'
|
|
10910
|
-
})(SearchBox
|
|
10892
|
+
})(SearchBox);
|
|
10911
10893
|
|
|
10912
10894
|
var itemsPropType$1 = PropTypes.arrayOf(PropTypes.shape({
|
|
10913
10895
|
value: PropTypes.any,
|
|
@@ -10953,10 +10935,10 @@ function (_Component) {
|
|
|
10953
10935
|
|
|
10954
10936
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10955
10937
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
10956
|
-
return
|
|
10938
|
+
return React__default.createElement("li", {
|
|
10957
10939
|
key: item.key || item.label,
|
|
10958
10940
|
className: _this.props.cx('item', item.isRefined && 'item--selected', item.noRefinement && 'item--noRefinement', itemHasChildren && 'item--parent')
|
|
10959
|
-
}, _this.props.renderItem(item, resetQuery), itemHasChildren &&
|
|
10941
|
+
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default.createElement("ul", {
|
|
10960
10942
|
className: _this.props.cx('list', 'list--child')
|
|
10961
10943
|
}, item.items.slice(0, _this.getLimit()).map(function (child) {
|
|
10962
10944
|
return _this.renderItem(child, item);
|
|
@@ -10984,7 +10966,7 @@ function (_Component) {
|
|
|
10984
10966
|
return null;
|
|
10985
10967
|
}
|
|
10986
10968
|
|
|
10987
|
-
return
|
|
10969
|
+
return React__default.createElement("button", {
|
|
10988
10970
|
disabled: disabled,
|
|
10989
10971
|
className: cx('showMore', disabled && 'showMore--disabled'),
|
|
10990
10972
|
onClick: this.onShowMoreClick
|
|
@@ -11002,12 +10984,12 @@ function (_Component) {
|
|
|
11002
10984
|
translate = _this$props3.translate,
|
|
11003
10985
|
items = _this$props3.items,
|
|
11004
10986
|
selectItem = _this$props3.selectItem;
|
|
11005
|
-
var noResults = items.length === 0 && this.state.query !== '' ?
|
|
10987
|
+
var noResults = items.length === 0 && this.state.query !== '' ? React__default.createElement("div", {
|
|
11006
10988
|
className: cx('noResults')
|
|
11007
10989
|
}, translate('noResults')) : null;
|
|
11008
|
-
return
|
|
10990
|
+
return React__default.createElement("div", {
|
|
11009
10991
|
className: cx('searchBox')
|
|
11010
|
-
},
|
|
10992
|
+
}, React__default.createElement(SearchBox$1, {
|
|
11011
10993
|
currentRefinement: this.state.query,
|
|
11012
10994
|
refine: function refine(value) {
|
|
11013
10995
|
_this2.setState({
|
|
@@ -11043,7 +11025,7 @@ function (_Component) {
|
|
|
11043
11025
|
var rootClassName = classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
11044
11026
|
|
|
11045
11027
|
if (items.length === 0) {
|
|
11046
|
-
return
|
|
11028
|
+
return React__default.createElement("div", {
|
|
11047
11029
|
className: rootClassName
|
|
11048
11030
|
}, searchBox);
|
|
11049
11031
|
} // Always limit the number of items we show on screen, since the actual
|
|
@@ -11051,9 +11033,9 @@ function (_Component) {
|
|
|
11051
11033
|
// option.
|
|
11052
11034
|
|
|
11053
11035
|
|
|
11054
|
-
return
|
|
11036
|
+
return React__default.createElement("div", {
|
|
11055
11037
|
className: rootClassName
|
|
11056
|
-
}, searchBox,
|
|
11038
|
+
}, searchBox, React__default.createElement("ul", {
|
|
11057
11039
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
11058
11040
|
}, items.slice(0, this.getLimit()).map(function (item) {
|
|
11059
11041
|
return _this3.renderItem(item, _this3.resetQuery);
|
|
@@ -11087,13 +11069,13 @@ _defineProperty(List, "defaultProps", {
|
|
|
11087
11069
|
isFromSearch: false
|
|
11088
11070
|
});
|
|
11089
11071
|
|
|
11090
|
-
var cx$
|
|
11091
|
-
var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
|
|
11072
|
+
var cx$5 = createClassNames('HierarchicalMenu');
|
|
11073
|
+
var itemsPropType$2 = PropTypes.arrayOf(PropTypes.shape({
|
|
11092
11074
|
label: PropTypes.string.isRequired,
|
|
11093
11075
|
value: PropTypes.string,
|
|
11094
11076
|
count: PropTypes.number.isRequired,
|
|
11095
11077
|
items: function items() {
|
|
11096
|
-
return itemsPropType.apply(void 0, arguments);
|
|
11078
|
+
return itemsPropType$2.apply(void 0, arguments);
|
|
11097
11079
|
}
|
|
11098
11080
|
}));
|
|
11099
11081
|
|
|
@@ -11119,16 +11101,16 @@ function (_Component) {
|
|
|
11119
11101
|
var _this$props = _this.props,
|
|
11120
11102
|
createURL = _this$props.createURL,
|
|
11121
11103
|
refine = _this$props.refine;
|
|
11122
|
-
return
|
|
11123
|
-
className: cx$
|
|
11104
|
+
return React__default.createElement(Link, {
|
|
11105
|
+
className: cx$5('link'),
|
|
11124
11106
|
onClick: function onClick() {
|
|
11125
11107
|
return refine(item.value);
|
|
11126
11108
|
},
|
|
11127
11109
|
href: createURL(item.value)
|
|
11128
|
-
},
|
|
11129
|
-
className: cx$
|
|
11130
|
-
}, item.label), ' ',
|
|
11131
|
-
className: cx$
|
|
11110
|
+
}, React__default.createElement("span", {
|
|
11111
|
+
className: cx$5('label')
|
|
11112
|
+
}, item.label), ' ', React__default.createElement("span", {
|
|
11113
|
+
className: cx$5('count')
|
|
11132
11114
|
}, item.count));
|
|
11133
11115
|
});
|
|
11134
11116
|
|
|
@@ -11146,9 +11128,9 @@ function (_Component) {
|
|
|
11146
11128
|
showMoreLimit = _this$props2.showMoreLimit,
|
|
11147
11129
|
canRefine = _this$props2.canRefine,
|
|
11148
11130
|
className = _this$props2.className;
|
|
11149
|
-
return
|
|
11131
|
+
return React__default.createElement(List, {
|
|
11150
11132
|
renderItem: this.renderItem,
|
|
11151
|
-
cx: cx$
|
|
11133
|
+
cx: cx$5,
|
|
11152
11134
|
translate: translate,
|
|
11153
11135
|
items: items,
|
|
11154
11136
|
showMore: showMore,
|
|
@@ -11168,7 +11150,7 @@ _defineProperty(HierarchicalMenu, "propTypes", {
|
|
|
11168
11150
|
refine: PropTypes.func.isRequired,
|
|
11169
11151
|
createURL: PropTypes.func.isRequired,
|
|
11170
11152
|
canRefine: PropTypes.bool.isRequired,
|
|
11171
|
-
items: itemsPropType,
|
|
11153
|
+
items: itemsPropType$2,
|
|
11172
11154
|
showMore: PropTypes.bool,
|
|
11173
11155
|
className: PropTypes.string,
|
|
11174
11156
|
limit: PropTypes.number,
|
|
@@ -11277,12 +11259,12 @@ var HierarchicalMenu$1 = translatable({
|
|
|
11277
11259
|
*/
|
|
11278
11260
|
|
|
11279
11261
|
var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
|
|
11280
|
-
return
|
|
11262
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(HierarchicalMenu$1, props));
|
|
11281
11263
|
};
|
|
11282
11264
|
|
|
11283
11265
|
connectHierarchicalMenu(HierarchicalMenuWidget);
|
|
11284
11266
|
|
|
11285
|
-
var Highlight
|
|
11267
|
+
var Highlight = function Highlight(_ref) {
|
|
11286
11268
|
var cx = _ref.cx,
|
|
11287
11269
|
value = _ref.value,
|
|
11288
11270
|
highlightedTagName = _ref.highlightedTagName,
|
|
@@ -11290,11 +11272,11 @@ var Highlight$2 = function Highlight(_ref) {
|
|
|
11290
11272
|
nonHighlightedTagName = _ref.nonHighlightedTagName;
|
|
11291
11273
|
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
11292
11274
|
var className = isHighlighted ? 'highlighted' : 'nonHighlighted';
|
|
11293
|
-
return
|
|
11275
|
+
return React__default.createElement(TagName, {
|
|
11294
11276
|
className: cx(className)
|
|
11295
11277
|
}, value);
|
|
11296
11278
|
};
|
|
11297
|
-
Highlight
|
|
11279
|
+
Highlight.propTypes = {
|
|
11298
11280
|
cx: PropTypes.func.isRequired,
|
|
11299
11281
|
value: PropTypes.string.isRequired,
|
|
11300
11282
|
isHighlighted: PropTypes.bool.isRequired,
|
|
@@ -11317,15 +11299,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11317
11299
|
attribute: attribute,
|
|
11318
11300
|
highlightProperty: highlightProperty
|
|
11319
11301
|
});
|
|
11320
|
-
return
|
|
11302
|
+
return React__default.createElement("span", {
|
|
11321
11303
|
className: classnames(cx(''), className)
|
|
11322
11304
|
}, parsedHighlightedValue.map(function (item, i) {
|
|
11323
11305
|
if (Array.isArray(item)) {
|
|
11324
11306
|
var isLast = i === parsedHighlightedValue.length - 1;
|
|
11325
|
-
return
|
|
11307
|
+
return React__default.createElement("span", {
|
|
11326
11308
|
key: i
|
|
11327
11309
|
}, item.map(function (element, index) {
|
|
11328
|
-
return
|
|
11310
|
+
return React__default.createElement(Highlight, {
|
|
11329
11311
|
cx: cx,
|
|
11330
11312
|
key: index,
|
|
11331
11313
|
value: element.value,
|
|
@@ -11333,12 +11315,12 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11333
11315
|
nonHighlightedTagName: nonHighlightedTagName,
|
|
11334
11316
|
isHighlighted: element.isHighlighted
|
|
11335
11317
|
});
|
|
11336
|
-
}), !isLast &&
|
|
11318
|
+
}), !isLast && React__default.createElement("span", {
|
|
11337
11319
|
className: cx('separator')
|
|
11338
11320
|
}, separator));
|
|
11339
11321
|
}
|
|
11340
11322
|
|
|
11341
|
-
return
|
|
11323
|
+
return React__default.createElement(Highlight, {
|
|
11342
11324
|
cx: cx,
|
|
11343
11325
|
key: i,
|
|
11344
11326
|
value: item.value,
|
|
@@ -11367,12 +11349,12 @@ Highlighter.defaultProps = {
|
|
|
11367
11349
|
separator: ', '
|
|
11368
11350
|
};
|
|
11369
11351
|
|
|
11370
|
-
var cx$
|
|
11352
|
+
var cx$6 = createClassNames('Highlight');
|
|
11371
11353
|
|
|
11372
11354
|
var Highlight$1 = function Highlight(props) {
|
|
11373
|
-
return
|
|
11355
|
+
return React__default.createElement(Highlighter, _extends({}, props, {
|
|
11374
11356
|
highlightProperty: "_highlightResult",
|
|
11375
|
-
cx: cx$
|
|
11357
|
+
cx: cx$6
|
|
11376
11358
|
}));
|
|
11377
11359
|
};
|
|
11378
11360
|
|
|
@@ -11417,12 +11399,12 @@ var Highlight$1 = function Highlight(props) {
|
|
|
11417
11399
|
* );
|
|
11418
11400
|
*/
|
|
11419
11401
|
|
|
11420
|
-
var Highlight = connectHighlight(Highlight$1);
|
|
11402
|
+
var Highlight$2 = connectHighlight(Highlight$1);
|
|
11421
11403
|
|
|
11422
|
-
var cx$
|
|
11404
|
+
var cx$7 = createClassNames('Hits');
|
|
11423
11405
|
|
|
11424
11406
|
var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
11425
|
-
return
|
|
11407
|
+
return React__default.createElement("div", {
|
|
11426
11408
|
style: {
|
|
11427
11409
|
borderBottom: '1px solid #bbb',
|
|
11428
11410
|
paddingBottom: '5px',
|
|
@@ -11432,21 +11414,21 @@ var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
|
11432
11414
|
}, JSON.stringify(props).slice(0, 100), "...");
|
|
11433
11415
|
};
|
|
11434
11416
|
|
|
11435
|
-
var Hits
|
|
11417
|
+
var Hits = function Hits(_ref) {
|
|
11436
11418
|
var hits = _ref.hits,
|
|
11437
11419
|
_ref$className = _ref.className,
|
|
11438
11420
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
11439
11421
|
_ref$hitComponent = _ref.hitComponent,
|
|
11440
11422
|
HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
|
|
11441
|
-
return
|
|
11442
|
-
className: classnames(cx$
|
|
11443
|
-
},
|
|
11444
|
-
className: cx$
|
|
11423
|
+
return React__default.createElement("div", {
|
|
11424
|
+
className: classnames(cx$7(''), className)
|
|
11425
|
+
}, React__default.createElement("ul", {
|
|
11426
|
+
className: cx$7('list')
|
|
11445
11427
|
}, hits.map(function (hit) {
|
|
11446
|
-
return
|
|
11447
|
-
className: cx$
|
|
11428
|
+
return React__default.createElement("li", {
|
|
11429
|
+
className: cx$7('item'),
|
|
11448
11430
|
key: hit.objectID
|
|
11449
|
-
},
|
|
11431
|
+
}, React__default.createElement(HitComponent, {
|
|
11450
11432
|
hit: hit
|
|
11451
11433
|
}));
|
|
11452
11434
|
})));
|
|
@@ -11455,7 +11437,7 @@ var Hits$1 = function Hits(_ref) {
|
|
|
11455
11437
|
var HitPropTypes = PropTypes.shape({
|
|
11456
11438
|
objectID: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
11457
11439
|
});
|
|
11458
|
-
Hits
|
|
11440
|
+
Hits.propTypes = {
|
|
11459
11441
|
hits: PropTypes.arrayOf(HitPropTypes.isRequired).isRequired,
|
|
11460
11442
|
className: PropTypes.string,
|
|
11461
11443
|
hitComponent: PropTypes.func
|
|
@@ -11494,7 +11476,7 @@ Hits$1.propTypes = {
|
|
|
11494
11476
|
* );
|
|
11495
11477
|
*/
|
|
11496
11478
|
|
|
11497
|
-
var Hits = connectHits(Hits
|
|
11479
|
+
var Hits$1 = connectHits(Hits);
|
|
11498
11480
|
|
|
11499
11481
|
var Select =
|
|
11500
11482
|
/*#__PURE__*/
|
|
@@ -11528,12 +11510,12 @@ function (_Component) {
|
|
|
11528
11510
|
cx = _this$props.cx,
|
|
11529
11511
|
items = _this$props.items,
|
|
11530
11512
|
selectedItem = _this$props.selectedItem;
|
|
11531
|
-
return
|
|
11513
|
+
return React__default.createElement("select", {
|
|
11532
11514
|
className: cx('select'),
|
|
11533
11515
|
value: selectedItem,
|
|
11534
11516
|
onChange: this.onChange
|
|
11535
11517
|
}, items.map(function (item) {
|
|
11536
|
-
return
|
|
11518
|
+
return React__default.createElement("option", {
|
|
11537
11519
|
className: cx('option'),
|
|
11538
11520
|
key: item.key === undefined ? item.value : item.key,
|
|
11539
11521
|
disabled: item.disabled,
|
|
@@ -11558,7 +11540,7 @@ _defineProperty(Select, "propTypes", {
|
|
|
11558
11540
|
selectedItem: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
11559
11541
|
});
|
|
11560
11542
|
|
|
11561
|
-
var cx$
|
|
11543
|
+
var cx$8 = createClassNames('HitsPerPage');
|
|
11562
11544
|
|
|
11563
11545
|
var HitsPerPage =
|
|
11564
11546
|
/*#__PURE__*/
|
|
@@ -11579,13 +11561,13 @@ function (_Component) {
|
|
|
11579
11561
|
currentRefinement = _this$props.currentRefinement,
|
|
11580
11562
|
refine = _this$props.refine,
|
|
11581
11563
|
className = _this$props.className;
|
|
11582
|
-
return
|
|
11583
|
-
className: classnames(cx$
|
|
11584
|
-
},
|
|
11564
|
+
return React__default.createElement("div", {
|
|
11565
|
+
className: classnames(cx$8(''), className)
|
|
11566
|
+
}, React__default.createElement(Select, {
|
|
11585
11567
|
onSelect: refine,
|
|
11586
11568
|
selectedItem: currentRefinement,
|
|
11587
11569
|
items: items,
|
|
11588
|
-
cx: cx$
|
|
11570
|
+
cx: cx$8
|
|
11589
11571
|
}));
|
|
11590
11572
|
}
|
|
11591
11573
|
}]);
|
|
@@ -11651,7 +11633,7 @@ _defineProperty(HitsPerPage, "defaultProps", {
|
|
|
11651
11633
|
|
|
11652
11634
|
connectHitsPerPage(HitsPerPage);
|
|
11653
11635
|
|
|
11654
|
-
var cx$
|
|
11636
|
+
var cx$9 = createClassNames('InfiniteHits');
|
|
11655
11637
|
|
|
11656
11638
|
var InfiniteHits =
|
|
11657
11639
|
/*#__PURE__*/
|
|
@@ -11677,25 +11659,25 @@ function (_Component) {
|
|
|
11677
11659
|
refineNext = _this$props.refineNext,
|
|
11678
11660
|
translate = _this$props.translate,
|
|
11679
11661
|
className = _this$props.className;
|
|
11680
|
-
return
|
|
11681
|
-
className: classnames(cx$
|
|
11682
|
-
}, showPrevious &&
|
|
11683
|
-
className: cx$
|
|
11662
|
+
return React__default.createElement("div", {
|
|
11663
|
+
className: classnames(cx$9(''), className)
|
|
11664
|
+
}, showPrevious && React__default.createElement("button", {
|
|
11665
|
+
className: cx$9('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
|
|
11684
11666
|
onClick: function onClick() {
|
|
11685
11667
|
return refinePrevious();
|
|
11686
11668
|
},
|
|
11687
11669
|
disabled: !hasPrevious
|
|
11688
|
-
}, translate('loadPrevious')),
|
|
11689
|
-
className: cx$
|
|
11670
|
+
}, translate('loadPrevious')), React__default.createElement("ul", {
|
|
11671
|
+
className: cx$9('list')
|
|
11690
11672
|
}, hits.map(function (hit) {
|
|
11691
|
-
return
|
|
11673
|
+
return React__default.createElement("li", {
|
|
11692
11674
|
key: hit.objectID,
|
|
11693
|
-
className: cx$
|
|
11694
|
-
},
|
|
11675
|
+
className: cx$9('item')
|
|
11676
|
+
}, React__default.createElement(HitComponent, {
|
|
11695
11677
|
hit: hit
|
|
11696
11678
|
}));
|
|
11697
|
-
})),
|
|
11698
|
-
className: cx$
|
|
11679
|
+
})), React__default.createElement("button", {
|
|
11680
|
+
className: cx$9('loadMore', !hasMore && 'loadMore--disabled'),
|
|
11699
11681
|
onClick: function onClick() {
|
|
11700
11682
|
return refineNext();
|
|
11701
11683
|
},
|
|
@@ -11722,7 +11704,7 @@ InfiniteHits.defaultProps = {
|
|
|
11722
11704
|
className: '',
|
|
11723
11705
|
showPrevious: false,
|
|
11724
11706
|
hitComponent: function hitComponent(hit) {
|
|
11725
|
-
return
|
|
11707
|
+
return React__default.createElement("div", {
|
|
11726
11708
|
style: {
|
|
11727
11709
|
borderBottom: '1px solid #bbb',
|
|
11728
11710
|
paddingBottom: '5px',
|
|
@@ -11776,7 +11758,7 @@ var InfiniteHits$1 = translatable({
|
|
|
11776
11758
|
|
|
11777
11759
|
connectInfiniteHits(InfiniteHits$1);
|
|
11778
11760
|
|
|
11779
|
-
var cx$
|
|
11761
|
+
var cx$a = createClassNames('Menu');
|
|
11780
11762
|
|
|
11781
11763
|
var Menu =
|
|
11782
11764
|
/*#__PURE__*/
|
|
@@ -11798,20 +11780,20 @@ function (_Component) {
|
|
|
11798
11780
|
|
|
11799
11781
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11800
11782
|
var createURL = _this.props.createURL;
|
|
11801
|
-
var label = _this.props.isFromSearch ?
|
|
11783
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
11802
11784
|
attribute: "label",
|
|
11803
11785
|
hit: item
|
|
11804
11786
|
}) : item.label;
|
|
11805
|
-
return
|
|
11806
|
-
className: cx$
|
|
11787
|
+
return React__default.createElement(Link, {
|
|
11788
|
+
className: cx$a('link'),
|
|
11807
11789
|
onClick: function onClick() {
|
|
11808
11790
|
return _this.selectItem(item, resetQuery);
|
|
11809
11791
|
},
|
|
11810
11792
|
href: createURL(item.value)
|
|
11811
|
-
},
|
|
11812
|
-
className: cx$
|
|
11813
|
-
}, label), ' ',
|
|
11814
|
-
className: cx$
|
|
11793
|
+
}, React__default.createElement("span", {
|
|
11794
|
+
className: cx$a('label')
|
|
11795
|
+
}, label), ' ', React__default.createElement("span", {
|
|
11796
|
+
className: cx$a('count')
|
|
11815
11797
|
}, item.count));
|
|
11816
11798
|
});
|
|
11817
11799
|
|
|
@@ -11838,10 +11820,10 @@ function (_Component) {
|
|
|
11838
11820
|
searchable = _this$props.searchable,
|
|
11839
11821
|
canRefine = _this$props.canRefine,
|
|
11840
11822
|
className = _this$props.className;
|
|
11841
|
-
return
|
|
11823
|
+
return React__default.createElement(List, {
|
|
11842
11824
|
renderItem: this.renderItem,
|
|
11843
11825
|
selectItem: this.selectItem,
|
|
11844
|
-
cx: cx$
|
|
11826
|
+
cx: cx$a,
|
|
11845
11827
|
translate: translate,
|
|
11846
11828
|
items: items,
|
|
11847
11829
|
showMore: showMore,
|
|
@@ -11946,12 +11928,12 @@ var Menu$1 = translatable({
|
|
|
11946
11928
|
*/
|
|
11947
11929
|
|
|
11948
11930
|
var MenuWidget = function MenuWidget(props) {
|
|
11949
|
-
return
|
|
11931
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Menu$1, props));
|
|
11950
11932
|
};
|
|
11951
11933
|
|
|
11952
11934
|
connectMenu(MenuWidget);
|
|
11953
11935
|
|
|
11954
|
-
var cx$
|
|
11936
|
+
var cx$b = createClassNames('MenuSelect');
|
|
11955
11937
|
|
|
11956
11938
|
var MenuSelect =
|
|
11957
11939
|
/*#__PURE__*/
|
|
@@ -11988,27 +11970,27 @@ function (_Component) {
|
|
|
11988
11970
|
canRefine = _this$props.canRefine,
|
|
11989
11971
|
translate = _this$props.translate,
|
|
11990
11972
|
className = _this$props.className;
|
|
11991
|
-
return
|
|
11992
|
-
className: classnames(cx$
|
|
11993
|
-
},
|
|
11973
|
+
return React__default.createElement("div", {
|
|
11974
|
+
className: classnames(cx$b('', !canRefine && '-noRefinement'), className)
|
|
11975
|
+
}, React__default.createElement("select", {
|
|
11994
11976
|
value: this.selectedValue,
|
|
11995
11977
|
onChange: this.handleSelectChange,
|
|
11996
|
-
className: cx$
|
|
11997
|
-
},
|
|
11978
|
+
className: cx$b('select')
|
|
11979
|
+
}, React__default.createElement("option", {
|
|
11998
11980
|
value: "ais__see__all__option",
|
|
11999
|
-
className: cx$
|
|
11981
|
+
className: cx$b('option')
|
|
12000
11982
|
}, translate('seeAllOption')), items.map(function (item) {
|
|
12001
|
-
return
|
|
11983
|
+
return React__default.createElement("option", {
|
|
12002
11984
|
key: item.value,
|
|
12003
11985
|
value: item.value,
|
|
12004
|
-
className: cx$
|
|
11986
|
+
className: cx$b('option')
|
|
12005
11987
|
}, item.label, " (", item.count, ")");
|
|
12006
11988
|
})));
|
|
12007
11989
|
}
|
|
12008
11990
|
}, {
|
|
12009
11991
|
key: "selectedValue",
|
|
12010
11992
|
get: function get() {
|
|
12011
|
-
var _ref2 = find(this.props.items, function (item) {
|
|
11993
|
+
var _ref2 = find$2(this.props.items, function (item) {
|
|
12012
11994
|
return item.isRefined === true;
|
|
12013
11995
|
}) || {
|
|
12014
11996
|
value: 'ais__see__all__option'
|
|
@@ -12080,12 +12062,12 @@ var MenuSelect$1 = translatable({
|
|
|
12080
12062
|
*/
|
|
12081
12063
|
|
|
12082
12064
|
var MenuSelectWidget = function MenuSelectWidget(props) {
|
|
12083
|
-
return
|
|
12065
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(MenuSelect$1, props));
|
|
12084
12066
|
};
|
|
12085
12067
|
|
|
12086
12068
|
connectMenu(MenuSelectWidget);
|
|
12087
12069
|
|
|
12088
|
-
var cx$
|
|
12070
|
+
var cx$c = createClassNames('NumericMenu');
|
|
12089
12071
|
|
|
12090
12072
|
var NumericMenu =
|
|
12091
12073
|
/*#__PURE__*/
|
|
@@ -12109,18 +12091,18 @@ function (_Component) {
|
|
|
12109
12091
|
var _this$props = _this.props,
|
|
12110
12092
|
refine = _this$props.refine,
|
|
12111
12093
|
translate = _this$props.translate;
|
|
12112
|
-
return
|
|
12113
|
-
className: cx$
|
|
12114
|
-
},
|
|
12115
|
-
className: cx$
|
|
12094
|
+
return React__default.createElement("label", {
|
|
12095
|
+
className: cx$c('label')
|
|
12096
|
+
}, React__default.createElement("input", {
|
|
12097
|
+
className: cx$c('radio'),
|
|
12116
12098
|
type: "radio",
|
|
12117
12099
|
checked: item.isRefined,
|
|
12118
12100
|
disabled: item.noRefinement,
|
|
12119
12101
|
onChange: function onChange() {
|
|
12120
12102
|
return refine(item.value);
|
|
12121
12103
|
}
|
|
12122
|
-
}),
|
|
12123
|
-
className: cx$
|
|
12104
|
+
}), React__default.createElement("span", {
|
|
12105
|
+
className: cx$c('labelText')
|
|
12124
12106
|
}, item.value === '' ? translate('all') : item.label));
|
|
12125
12107
|
});
|
|
12126
12108
|
|
|
@@ -12134,11 +12116,11 @@ function (_Component) {
|
|
|
12134
12116
|
items = _this$props2.items,
|
|
12135
12117
|
canRefine = _this$props2.canRefine,
|
|
12136
12118
|
className = _this$props2.className;
|
|
12137
|
-
return
|
|
12119
|
+
return React__default.createElement(List, {
|
|
12138
12120
|
renderItem: this.renderItem,
|
|
12139
12121
|
showMore: false,
|
|
12140
12122
|
canRefine: canRefine,
|
|
12141
|
-
cx: cx$
|
|
12123
|
+
cx: cx$c,
|
|
12142
12124
|
items: items.map(function (item) {
|
|
12143
12125
|
return _objectSpread({}, item, {
|
|
12144
12126
|
key: item.value
|
|
@@ -12220,7 +12202,7 @@ var NumericMenu$1 = translatable({
|
|
|
12220
12202
|
*/
|
|
12221
12203
|
|
|
12222
12204
|
var NumericMenuWidget = function NumericMenuWidget(props) {
|
|
12223
|
-
return
|
|
12205
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(NumericMenu$1, props));
|
|
12224
12206
|
};
|
|
12225
12207
|
|
|
12226
12208
|
connectNumericMenu(NumericMenuWidget);
|
|
@@ -12245,15 +12227,15 @@ function (_Component) {
|
|
|
12245
12227
|
items = _this$props.items,
|
|
12246
12228
|
onSelect = _this$props.onSelect,
|
|
12247
12229
|
canRefine = _this$props.canRefine;
|
|
12248
|
-
return
|
|
12230
|
+
return React__default.createElement("ul", {
|
|
12249
12231
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
12250
12232
|
}, items.map(function (item) {
|
|
12251
|
-
return
|
|
12233
|
+
return React__default.createElement("li", {
|
|
12252
12234
|
key: item.key === undefined ? item.value : item.key,
|
|
12253
12235
|
className: cx('item', item.selected && !item.disabled && 'item--selected', item.disabled && 'item--disabled', item.modifier)
|
|
12254
|
-
}, item.disabled ?
|
|
12236
|
+
}, item.disabled ? React__default.createElement("span", {
|
|
12255
12237
|
className: cx('link')
|
|
12256
|
-
}, item.label === undefined ? item.value : item.label) :
|
|
12238
|
+
}, item.label === undefined ? item.value : item.label) : React__default.createElement(Link, {
|
|
12257
12239
|
className: cx('link', item.selected && 'link--selected'),
|
|
12258
12240
|
"aria-label": item.ariaLabel,
|
|
12259
12241
|
href: createURL(item.value),
|
|
@@ -12283,7 +12265,7 @@ _defineProperty(LinkList, "propTypes", {
|
|
|
12283
12265
|
canRefine: PropTypes.bool.isRequired
|
|
12284
12266
|
});
|
|
12285
12267
|
|
|
12286
|
-
var cx$
|
|
12268
|
+
var cx$d = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
|
|
12287
12269
|
|
|
12288
12270
|
function calculateSize(padding, maxPages) {
|
|
12289
12271
|
return Math.min(2 * padding + 1, maxPages);
|
|
@@ -12319,7 +12301,7 @@ function getPages(currentPage, maxPages, padding) {
|
|
|
12319
12301
|
});
|
|
12320
12302
|
}
|
|
12321
12303
|
|
|
12322
|
-
var Pagination
|
|
12304
|
+
var Pagination =
|
|
12323
12305
|
/*#__PURE__*/
|
|
12324
12306
|
function (_Component) {
|
|
12325
12307
|
_inherits(Pagination, _Component);
|
|
@@ -12425,10 +12407,10 @@ function (_Component) {
|
|
|
12425
12407
|
});
|
|
12426
12408
|
}
|
|
12427
12409
|
|
|
12428
|
-
return
|
|
12429
|
-
className: classnames(cx$
|
|
12430
|
-
},
|
|
12431
|
-
cx: cx$
|
|
12410
|
+
return React__default.createElement("div", {
|
|
12411
|
+
className: classnames(cx$d('', !canRefine && '-noRefinement'), className)
|
|
12412
|
+
}, React__default.createElement(ListComponent, _extends({}, otherProps, {
|
|
12413
|
+
cx: cx$d,
|
|
12432
12414
|
items: items,
|
|
12433
12415
|
onSelect: refine,
|
|
12434
12416
|
createURL: createURL,
|
|
@@ -12440,7 +12422,7 @@ function (_Component) {
|
|
|
12440
12422
|
return Pagination;
|
|
12441
12423
|
}(Component);
|
|
12442
12424
|
|
|
12443
|
-
_defineProperty(Pagination
|
|
12425
|
+
_defineProperty(Pagination, "propTypes", {
|
|
12444
12426
|
nbPages: PropTypes.number.isRequired,
|
|
12445
12427
|
currentRefinement: PropTypes.number.isRequired,
|
|
12446
12428
|
refine: PropTypes.func.isRequired,
|
|
@@ -12457,7 +12439,7 @@ _defineProperty(Pagination$1, "propTypes", {
|
|
|
12457
12439
|
className: PropTypes.string
|
|
12458
12440
|
});
|
|
12459
12441
|
|
|
12460
|
-
_defineProperty(Pagination
|
|
12442
|
+
_defineProperty(Pagination, "defaultProps", {
|
|
12461
12443
|
listComponent: LinkList,
|
|
12462
12444
|
showFirst: true,
|
|
12463
12445
|
showPrevious: true,
|
|
@@ -12468,7 +12450,7 @@ _defineProperty(Pagination$1, "defaultProps", {
|
|
|
12468
12450
|
className: ''
|
|
12469
12451
|
});
|
|
12470
12452
|
|
|
12471
|
-
var Pagination$
|
|
12453
|
+
var Pagination$1 = translatable({
|
|
12472
12454
|
previous: '‹',
|
|
12473
12455
|
next: '›',
|
|
12474
12456
|
first: '«',
|
|
@@ -12483,7 +12465,7 @@ var Pagination$2 = translatable({
|
|
|
12483
12465
|
ariaPage: function ariaPage(currentRefinement) {
|
|
12484
12466
|
return "Page ".concat(currentRefinement.toString());
|
|
12485
12467
|
}
|
|
12486
|
-
})(Pagination
|
|
12468
|
+
})(Pagination);
|
|
12487
12469
|
|
|
12488
12470
|
/**
|
|
12489
12471
|
* The Pagination widget displays a simple pagination system allowing the user to
|
|
@@ -12540,23 +12522,23 @@ var Pagination$2 = translatable({
|
|
|
12540
12522
|
*/
|
|
12541
12523
|
|
|
12542
12524
|
var PaginationWidget = function PaginationWidget(props) {
|
|
12543
|
-
return
|
|
12525
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$1, props));
|
|
12544
12526
|
};
|
|
12545
12527
|
|
|
12546
|
-
var Pagination = connectPagination(PaginationWidget);
|
|
12528
|
+
var Pagination$2 = connectPagination(PaginationWidget);
|
|
12547
12529
|
|
|
12548
|
-
var cx$
|
|
12530
|
+
var cx$e = createClassNames('PoweredBy');
|
|
12549
12531
|
/* eslint-disable max-len */
|
|
12550
12532
|
|
|
12551
12533
|
var AlgoliaLogo = function AlgoliaLogo() {
|
|
12552
|
-
return
|
|
12534
|
+
return React__default.createElement("svg", {
|
|
12553
12535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12554
12536
|
baseProfile: "basic",
|
|
12555
12537
|
viewBox: "0 0 1366 362",
|
|
12556
12538
|
width: "100",
|
|
12557
12539
|
height: "27",
|
|
12558
|
-
className: cx$
|
|
12559
|
-
},
|
|
12540
|
+
className: cx$e('logo')
|
|
12541
|
+
}, React__default.createElement("linearGradient", {
|
|
12560
12542
|
id: "g",
|
|
12561
12543
|
x1: "428.258",
|
|
12562
12544
|
x2: "434.145",
|
|
@@ -12564,19 +12546,19 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12564
12546
|
y2: "409.85",
|
|
12565
12547
|
gradientUnits: "userSpaceOnUse",
|
|
12566
12548
|
gradientTransform: "matrix(94.045 0 0 -94.072 -40381.527 38479.52)"
|
|
12567
|
-
},
|
|
12549
|
+
}, React__default.createElement("stop", {
|
|
12568
12550
|
offset: "0",
|
|
12569
12551
|
stopColor: "#00AEFF"
|
|
12570
|
-
}),
|
|
12552
|
+
}), React__default.createElement("stop", {
|
|
12571
12553
|
offset: "1",
|
|
12572
12554
|
stopColor: "#3369E7"
|
|
12573
|
-
})),
|
|
12555
|
+
})), React__default.createElement("path", {
|
|
12574
12556
|
d: "M61.8 15.4h242.8c23.9 0 43.4 19.4 43.4 43.4v242.9c0 23.9-19.4 43.4-43.4 43.4H61.8c-23.9 0-43.4-19.4-43.4-43.4v-243c0-23.9 19.4-43.3 43.4-43.3z",
|
|
12575
12557
|
fill: "url(#g)"
|
|
12576
|
-
}),
|
|
12558
|
+
}), React__default.createElement("path", {
|
|
12577
12559
|
d: "M187 98.7c-51.4 0-93.1 41.7-93.1 93.2S135.6 285 187 285s93.1-41.7 93.1-93.2-41.6-93.1-93.1-93.1zm0 158.8c-36.2 0-65.6-29.4-65.6-65.6s29.4-65.6 65.6-65.6 65.6 29.4 65.6 65.6-29.3 65.6-65.6 65.6zm0-117.8v48.9c0 1.4 1.5 2.4 2.8 1.7l43.4-22.5c1-.5 1.3-1.7.8-2.7-9-15.8-25.7-26.6-45-27.3-1 0-2 .8-2 1.9zm-60.8-35.9l-5.7-5.7c-5.6-5.6-14.6-5.6-20.2 0l-6.8 6.8c-5.6 5.6-5.6 14.6 0 20.2l5.6 5.6c.9.9 2.2.7 3-.2 3.3-4.5 6.9-8.8 10.9-12.8 4.1-4.1 8.3-7.7 12.9-11 1-.6 1.1-2 .3-2.9zM217.5 89V77.7c0-7.9-6.4-14.3-14.3-14.3h-33.3c-7.9 0-14.3 6.4-14.3 14.3v11.6c0 1.3 1.2 2.2 2.5 1.9 9.3-2.7 19.1-4.1 29-4.1 9.5 0 18.9 1.3 28 3.8 1.2.3 2.4-.6 2.4-1.9z",
|
|
12578
12560
|
fill: "#FFFFFF"
|
|
12579
|
-
}),
|
|
12561
|
+
}), React__default.createElement("path", {
|
|
12580
12562
|
d: "M842.5 267.6c0 26.7-6.8 46.2-20.5 58.6-13.7 12.4-34.6 18.6-62.8 18.6-10.3 0-31.7-2-48.8-5.8l6.3-31c14.3 3 33.2 3.8 43.1 3.8 15.7 0 26.9-3.2 33.6-9.6s10-15.9 10-28.5v-6.4c-3.9 1.9-9 3.8-15.3 5.8-6.3 1.9-13.6 2.9-21.8 2.9-10.8 0-20.6-1.7-29.5-5.1-8.9-3.4-16.6-8.4-22.9-15-6.3-6.6-11.3-14.9-14.8-24.8s-5.3-27.6-5.3-40.6c0-12.2 1.9-27.5 5.6-37.7 3.8-10.2 9.2-19 16.5-26.3 7.2-7.3 16-12.9 26.3-17s22.4-6.7 35.5-6.7c12.7 0 24.4 1.6 35.8 3.5 11.4 1.9 21.1 3.9 29 6.1v155.2zm-108.7-77.2c0 16.4 3.6 34.6 10.8 42.2 7.2 7.6 16.5 11.4 27.9 11.4 6.2 0 12.1-.9 17.6-2.6 5.5-1.7 9.9-3.7 13.4-6.1v-97.1c-2.8-.6-14.5-3-25.8-3.3-14.2-.4-25 5.4-32.6 14.7-7.5 9.3-11.3 25.6-11.3 40.8zm294.3 0c0 13.2-1.9 23.2-5.8 34.1s-9.4 20.2-16.5 27.9c-7.1 7.7-15.6 13.7-25.6 17.9s-25.4 6.6-33.1 6.6c-7.7-.1-23-2.3-32.9-6.6-9.9-4.3-18.4-10.2-25.5-17.9-7.1-7.7-12.6-17-16.6-27.9s-6-20.9-6-34.1c0-13.2 1.8-25.9 5.8-36.7 4-10.8 9.6-20 16.8-27.7s15.8-13.6 25.6-17.8c9.9-4.2 20.8-6.2 32.6-6.2s22.7 2.1 32.7 6.2c10 4.2 18.6 10.1 25.6 17.8 7.1 7.7 12.6 16.9 16.6 27.7 4.2 10.8 6.3 23.5 6.3 36.7zm-40 .1c0-16.9-3.7-31-10.9-40.8-7.2-9.9-17.3-14.8-30.2-14.8-12.9 0-23 4.9-30.2 14.8-7.2 9.9-10.7 23.9-10.7 40.8 0 17.1 3.6 28.6 10.8 38.5 7.2 10 17.3 14.9 30.2 14.9 12.9 0 23-5 30.2-14.9 7.2-10 10.8-21.4 10.8-38.5zm127.1 86.4c-64.1.3-64.1-51.8-64.1-60.1L1051 32l39.1-6.2v183.6c0 4.7 0 34.5 25.1 34.6v32.9zm68.9 0h-39.3V108.1l39.3-6.2v175zm-19.7-193.5c13.1 0 23.8-10.6 23.8-23.7S1177.6 36 1164.4 36s-23.8 10.6-23.8 23.7 10.7 23.7 23.8 23.7zm117.4 18.6c12.9 0 23.8 1.6 32.6 4.8 8.8 3.2 15.9 7.7 21.1 13.4s8.9 13.5 11.1 21.7c2.3 8.2 3.4 17.2 3.4 27.1v100.6c-6 1.3-15.1 2.8-27.3 4.6s-25.9 2.7-41.1 2.7c-10.1 0-19.4-1-27.7-2.9-8.4-1.9-15.5-5-21.5-9.3-5.9-4.3-10.5-9.8-13.9-16.6-3.3-6.8-5-16.4-5-26.4 0-9.6 1.9-15.7 5.6-22.3 3.8-6.6 8.9-12 15.3-16.2 6.5-4.2 13.9-7.2 22.4-9s17.4-2.7 26.6-2.7c4.3 0 8.8.3 13.6.8s9.8 1.4 15.2 2.7v-6.4c0-4.5-.5-8.8-1.6-12.8-1.1-4.1-3-7.6-5.6-10.7-2.7-3.1-6.2-5.5-10.6-7.2s-10-3-16.7-3c-9 0-17.2 1.1-24.7 2.4-7.5 1.3-13.7 2.8-18.4 4.5l-4.7-32.1c4.9-1.7 12.2-3.4 21.6-5.1s19.5-2.6 30.3-2.6zm3.3 141.9c12 0 20.9-.7 27.1-1.9v-39.8c-2.2-.6-5.3-1.3-9.4-1.9-4.1-.6-8.6-1-13.6-1-4.3 0-8.7.3-13.1 1-4.4.6-8.4 1.8-11.9 3.5s-6.4 4.1-8.5 7.2c-2.2 3.1-3.2 4.9-3.2 9.6 0 9.2 3.2 14.5 9 18 5.9 3.6 13.7 5.3 23.6 5.3zM512.9 103c12.9 0 23.8 1.6 32.6 4.8 8.8 3.2 15.9 7.7 21.1 13.4 5.3 5.8 8.9 13.5 11.1 21.7 2.3 8.2 3.4 17.2 3.4 27.1v100.6c-6 1.3-15.1 2.8-27.3 4.6-12.2 1.8-25.9 2.7-41.1 2.7-10.1 0-19.4-1-27.7-2.9-8.4-1.9-15.5-5-21.5-9.3-5.9-4.3-10.5-9.8-13.9-16.6-3.3-6.8-5-16.4-5-26.4 0-9.6 1.9-15.7 5.6-22.3 3.8-6.6 8.9-12 15.3-16.2 6.5-4.2 13.9-7.2 22.4-9s17.4-2.7 26.6-2.7c4.3 0 8.8.3 13.6.8 4.7.5 9.8 1.4 15.2 2.7v-6.4c0-4.5-.5-8.8-1.6-12.8-1.1-4.1-3-7.6-5.6-10.7-2.7-3.1-6.2-5.5-10.6-7.2-4.4-1.7-10-3-16.7-3-9 0-17.2 1.1-24.7 2.4-7.5 1.3-13.7 2.8-18.4 4.5l-4.7-32.1c4.9-1.7 12.2-3.4 21.6-5.1 9.4-1.8 19.5-2.6 30.3-2.6zm3.4 142c12 0 20.9-.7 27.1-1.9v-39.8c-2.2-.6-5.3-1.3-9.4-1.9-4.1-.6-8.6-1-13.6-1-4.3 0-8.7.3-13.1 1-4.4.6-8.4 1.8-11.9 3.5s-6.4 4.1-8.5 7.2c-2.2 3.1-3.2 4.9-3.2 9.6 0 9.2 3.2 14.5 9 18s13.7 5.3 23.6 5.3zm158.5 31.9c-64.1.3-64.1-51.8-64.1-60.1L610.6 32l39.1-6.2v183.6c0 4.7 0 34.5 25.1 34.6v32.9z",
|
|
12581
12563
|
fill: "#182359"
|
|
12582
12564
|
}));
|
|
@@ -12602,17 +12584,17 @@ function (_Component) {
|
|
|
12602
12584
|
url = _this$props.url,
|
|
12603
12585
|
translate = _this$props.translate,
|
|
12604
12586
|
className = _this$props.className;
|
|
12605
|
-
return
|
|
12606
|
-
className: classnames(cx$
|
|
12607
|
-
},
|
|
12608
|
-
className: cx$
|
|
12609
|
-
}, translate('searchBy')), ' ',
|
|
12587
|
+
return React__default.createElement("div", {
|
|
12588
|
+
className: classnames(cx$e(''), className)
|
|
12589
|
+
}, React__default.createElement("span", {
|
|
12590
|
+
className: cx$e('text')
|
|
12591
|
+
}, translate('searchBy')), ' ', React__default.createElement("a", {
|
|
12610
12592
|
href: url,
|
|
12611
12593
|
target: "_blank",
|
|
12612
|
-
className: cx$
|
|
12594
|
+
className: cx$e('link'),
|
|
12613
12595
|
"aria-label": "Algolia",
|
|
12614
12596
|
rel: "noopener noreferrer"
|
|
12615
|
-
},
|
|
12597
|
+
}, React__default.createElement(AlgoliaLogo, null)));
|
|
12616
12598
|
}
|
|
12617
12599
|
}]);
|
|
12618
12600
|
|
|
@@ -12662,7 +12644,7 @@ var PoweredBy$1 = translatable({
|
|
|
12662
12644
|
|
|
12663
12645
|
connectPoweredBy(PoweredBy$1);
|
|
12664
12646
|
|
|
12665
|
-
var cx$
|
|
12647
|
+
var cx$f = createClassNames('RangeInput');
|
|
12666
12648
|
var RawRangeInput =
|
|
12667
12649
|
/*#__PURE__*/
|
|
12668
12650
|
function (_Component) {
|
|
@@ -12741,13 +12723,13 @@ function (_Component) {
|
|
|
12741
12723
|
max = _this$normalizeRangeF.max;
|
|
12742
12724
|
|
|
12743
12725
|
var step = 1 / Math.pow(10, precision);
|
|
12744
|
-
return
|
|
12745
|
-
className: classnames(cx$
|
|
12746
|
-
},
|
|
12747
|
-
className: cx$
|
|
12726
|
+
return React__default.createElement("div", {
|
|
12727
|
+
className: classnames(cx$f('', !canRefine && '-noRefinement'), className)
|
|
12728
|
+
}, React__default.createElement("form", {
|
|
12729
|
+
className: cx$f('form'),
|
|
12748
12730
|
onSubmit: this.onSubmit
|
|
12749
|
-
},
|
|
12750
|
-
className: cx$
|
|
12731
|
+
}, React__default.createElement("input", {
|
|
12732
|
+
className: cx$f('input', 'input--min'),
|
|
12751
12733
|
type: "number",
|
|
12752
12734
|
min: min,
|
|
12753
12735
|
max: max,
|
|
@@ -12760,10 +12742,10 @@ function (_Component) {
|
|
|
12760
12742
|
from: e.currentTarget.value
|
|
12761
12743
|
});
|
|
12762
12744
|
}
|
|
12763
|
-
}),
|
|
12764
|
-
className: cx$
|
|
12765
|
-
}, translate('separator')),
|
|
12766
|
-
className: cx$
|
|
12745
|
+
}), React__default.createElement("span", {
|
|
12746
|
+
className: cx$f('separator')
|
|
12747
|
+
}, translate('separator')), React__default.createElement("input", {
|
|
12748
|
+
className: cx$f('input', 'input--max'),
|
|
12767
12749
|
type: "number",
|
|
12768
12750
|
min: min,
|
|
12769
12751
|
max: max,
|
|
@@ -12776,8 +12758,8 @@ function (_Component) {
|
|
|
12776
12758
|
to: e.currentTarget.value
|
|
12777
12759
|
});
|
|
12778
12760
|
}
|
|
12779
|
-
}),
|
|
12780
|
-
className: cx$
|
|
12761
|
+
}), React__default.createElement("button", {
|
|
12762
|
+
className: cx$f('submit'),
|
|
12781
12763
|
type: "submit"
|
|
12782
12764
|
}, translate('submit'))));
|
|
12783
12765
|
}
|
|
@@ -12853,12 +12835,12 @@ var RangeInput = translatable({
|
|
|
12853
12835
|
*/
|
|
12854
12836
|
|
|
12855
12837
|
var RangeInputWidget = function RangeInputWidget(props) {
|
|
12856
|
-
return
|
|
12838
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RangeInput, props));
|
|
12857
12839
|
};
|
|
12858
12840
|
|
|
12859
12841
|
connectRange(RangeInputWidget);
|
|
12860
12842
|
|
|
12861
|
-
var cx$
|
|
12843
|
+
var cx$g = createClassNames('RatingMenu');
|
|
12862
12844
|
|
|
12863
12845
|
var RatingMenu =
|
|
12864
12846
|
/*#__PURE__*/
|
|
@@ -12909,14 +12891,14 @@ function (_Component) {
|
|
|
12909
12891
|
rating++;
|
|
12910
12892
|
}
|
|
12911
12893
|
|
|
12912
|
-
icons.push([
|
|
12894
|
+
icons.push([React__default.createElement("svg", {
|
|
12913
12895
|
key: icon,
|
|
12914
|
-
className: cx$
|
|
12896
|
+
className: cx$g('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
|
|
12915
12897
|
"aria-hidden": "true",
|
|
12916
12898
|
width: "24",
|
|
12917
12899
|
height: "24"
|
|
12918
|
-
},
|
|
12919
|
-
xlinkHref: "#".concat(cx$
|
|
12900
|
+
}, React__default.createElement("use", {
|
|
12901
|
+
xlinkHref: "#".concat(cx$g(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
|
|
12920
12902
|
})), ' ']);
|
|
12921
12903
|
} // The last item of the list (the default item), should not
|
|
12922
12904
|
// be clickable if it is selected.
|
|
@@ -12930,17 +12912,17 @@ function (_Component) {
|
|
|
12930
12912
|
}),
|
|
12931
12913
|
onClick: this.onClick.bind(this, lowerBound, max)
|
|
12932
12914
|
};
|
|
12933
|
-
return
|
|
12915
|
+
return React__default.createElement("li", {
|
|
12934
12916
|
key: lowerBound,
|
|
12935
|
-
className: cx$
|
|
12936
|
-
},
|
|
12937
|
-
className: cx$
|
|
12917
|
+
className: cx$g('item', selected && 'item--selected', disabled && 'item--disabled')
|
|
12918
|
+
}, React__default.createElement("a", _extends({
|
|
12919
|
+
className: cx$g('link'),
|
|
12938
12920
|
"aria-label": "".concat(rating).concat(translate('ratingLabel'))
|
|
12939
|
-
}, onClickHandler), icons,
|
|
12940
|
-
className: cx$
|
|
12921
|
+
}, onClickHandler), icons, React__default.createElement("span", {
|
|
12922
|
+
className: cx$g('label'),
|
|
12941
12923
|
"aria-hidden": "true"
|
|
12942
|
-
}, translate('ratingLabel')), ' ',
|
|
12943
|
-
className: cx$
|
|
12924
|
+
}, translate('ratingLabel')), ' ', React__default.createElement("span", {
|
|
12925
|
+
className: cx$g('count')
|
|
12944
12926
|
}, count)));
|
|
12945
12927
|
}
|
|
12946
12928
|
}, {
|
|
@@ -12972,7 +12954,7 @@ function (_Component) {
|
|
|
12972
12954
|
start: 0,
|
|
12973
12955
|
end: Math.max(inclusiveLength, 0)
|
|
12974
12956
|
}).map(function (index) {
|
|
12975
|
-
var element = find(values, function (item) {
|
|
12957
|
+
var element = find$2(values, function (item) {
|
|
12976
12958
|
return item.value === limitMax - index;
|
|
12977
12959
|
});
|
|
12978
12960
|
var placeholder = {
|
|
@@ -12995,25 +12977,25 @@ function (_Component) {
|
|
|
12995
12977
|
createURL: createURL
|
|
12996
12978
|
});
|
|
12997
12979
|
});
|
|
12998
|
-
return
|
|
12999
|
-
className: classnames(cx$
|
|
13000
|
-
},
|
|
12980
|
+
return React__default.createElement("div", {
|
|
12981
|
+
className: classnames(cx$g('', !canRefine && '-noRefinement'), className)
|
|
12982
|
+
}, React__default.createElement("svg", {
|
|
13001
12983
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13002
12984
|
style: {
|
|
13003
12985
|
display: 'none'
|
|
13004
12986
|
}
|
|
13005
|
-
},
|
|
13006
|
-
id: cx$
|
|
12987
|
+
}, React__default.createElement("symbol", {
|
|
12988
|
+
id: cx$g('starSymbol'),
|
|
13007
12989
|
viewBox: "0 0 24 24"
|
|
13008
|
-
},
|
|
12990
|
+
}, React__default.createElement("path", {
|
|
13009
12991
|
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"
|
|
13010
|
-
})),
|
|
13011
|
-
id: cx$
|
|
12992
|
+
})), React__default.createElement("symbol", {
|
|
12993
|
+
id: cx$g('starEmptySymbol'),
|
|
13012
12994
|
viewBox: "0 0 24 24"
|
|
13013
|
-
},
|
|
12995
|
+
}, React__default.createElement("path", {
|
|
13014
12996
|
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"
|
|
13015
|
-
}))),
|
|
13016
|
-
className: cx$
|
|
12997
|
+
}))), React__default.createElement("ul", {
|
|
12998
|
+
className: cx$g('list', !canRefine && 'list--noRefinement')
|
|
13017
12999
|
}, items));
|
|
13018
13000
|
}
|
|
13019
13001
|
}]);
|
|
@@ -13096,12 +13078,12 @@ var RatingMenu$1 = translatable({
|
|
|
13096
13078
|
*/
|
|
13097
13079
|
|
|
13098
13080
|
var RatingMenuWidget = function RatingMenuWidget(props) {
|
|
13099
|
-
return
|
|
13081
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RatingMenu$1, props));
|
|
13100
13082
|
};
|
|
13101
13083
|
|
|
13102
13084
|
connectRange(RatingMenuWidget);
|
|
13103
13085
|
|
|
13104
|
-
var cx$
|
|
13086
|
+
var cx$h = createClassNames('RefinementList');
|
|
13105
13087
|
|
|
13106
13088
|
var RefinementList$1 =
|
|
13107
13089
|
/*#__PURE__*/
|
|
@@ -13132,23 +13114,23 @@ function (_Component) {
|
|
|
13132
13114
|
});
|
|
13133
13115
|
|
|
13134
13116
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13135
|
-
var label = _this.props.isFromSearch ?
|
|
13117
|
+
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
13136
13118
|
attribute: "label",
|
|
13137
13119
|
hit: item
|
|
13138
13120
|
}) : item.label;
|
|
13139
|
-
return
|
|
13140
|
-
className: cx$
|
|
13141
|
-
},
|
|
13142
|
-
className: cx$
|
|
13121
|
+
return React__default.createElement("label", {
|
|
13122
|
+
className: cx$h('label')
|
|
13123
|
+
}, React__default.createElement("input", {
|
|
13124
|
+
className: cx$h('checkbox'),
|
|
13143
13125
|
type: "checkbox",
|
|
13144
13126
|
checked: item.isRefined,
|
|
13145
13127
|
onChange: function onChange() {
|
|
13146
13128
|
return _this.selectItem(item, resetQuery);
|
|
13147
13129
|
}
|
|
13148
|
-
}),
|
|
13149
|
-
className: cx$
|
|
13150
|
-
}, label), ' ',
|
|
13151
|
-
className: cx$
|
|
13130
|
+
}), React__default.createElement("span", {
|
|
13131
|
+
className: cx$h('labelText')
|
|
13132
|
+
}, label), ' ', React__default.createElement("span", {
|
|
13133
|
+
className: cx$h('count')
|
|
13152
13134
|
}, item.count.toLocaleString()));
|
|
13153
13135
|
});
|
|
13154
13136
|
|
|
@@ -13169,10 +13151,10 @@ function (_Component) {
|
|
|
13169
13151
|
searchable = _this$props.searchable,
|
|
13170
13152
|
canRefine = _this$props.canRefine,
|
|
13171
13153
|
className = _this$props.className;
|
|
13172
|
-
return
|
|
13154
|
+
return React__default.createElement(List, {
|
|
13173
13155
|
renderItem: this.renderItem,
|
|
13174
13156
|
selectItem: this.selectItem,
|
|
13175
|
-
cx: cx$
|
|
13157
|
+
cx: cx$h,
|
|
13176
13158
|
translate: translate,
|
|
13177
13159
|
items: items,
|
|
13178
13160
|
showMore: showMore,
|
|
@@ -13281,12 +13263,12 @@ var RefinementList$2 = translatable({
|
|
|
13281
13263
|
*/
|
|
13282
13264
|
|
|
13283
13265
|
var RefinementListWidget = function RefinementListWidget(props) {
|
|
13284
|
-
return
|
|
13266
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(RefinementList$2, props));
|
|
13285
13267
|
};
|
|
13286
13268
|
|
|
13287
|
-
var RefinementList = connectRefinementList(RefinementListWidget);
|
|
13269
|
+
var RefinementList$3 = connectRefinementList(RefinementListWidget);
|
|
13288
13270
|
|
|
13289
|
-
var cx$
|
|
13271
|
+
var cx$i = createClassNames('ScrollTo');
|
|
13290
13272
|
|
|
13291
13273
|
var ScrollTo =
|
|
13292
13274
|
/*#__PURE__*/
|
|
@@ -13315,11 +13297,11 @@ function (_Component) {
|
|
|
13315
13297
|
value: function render() {
|
|
13316
13298
|
var _this = this;
|
|
13317
13299
|
|
|
13318
|
-
return
|
|
13300
|
+
return React__default.createElement("div", {
|
|
13319
13301
|
ref: function ref(_ref) {
|
|
13320
13302
|
return _this.el = _ref;
|
|
13321
13303
|
},
|
|
13322
|
-
className: cx$
|
|
13304
|
+
className: cx$i('')
|
|
13323
13305
|
}, this.props.children);
|
|
13324
13306
|
}
|
|
13325
13307
|
}]);
|
|
@@ -13413,14 +13395,14 @@ connectScrollTo(ScrollTo);
|
|
|
13413
13395
|
* );
|
|
13414
13396
|
*/
|
|
13415
13397
|
|
|
13416
|
-
var SearchBox = connectSearchBox(SearchBox$
|
|
13398
|
+
var SearchBox$2 = connectSearchBox(SearchBox$1);
|
|
13417
13399
|
|
|
13418
|
-
var cx$
|
|
13400
|
+
var cx$j = createClassNames('Snippet');
|
|
13419
13401
|
|
|
13420
13402
|
var Snippet = function Snippet(props) {
|
|
13421
|
-
return
|
|
13403
|
+
return React__default.createElement(Highlighter, _extends({}, props, {
|
|
13422
13404
|
highlightProperty: "_snippetResult",
|
|
13423
|
-
cx: cx$
|
|
13405
|
+
cx: cx$j
|
|
13424
13406
|
}));
|
|
13425
13407
|
};
|
|
13426
13408
|
|
|
@@ -13470,11 +13452,11 @@ var Snippet = function Snippet(props) {
|
|
|
13470
13452
|
|
|
13471
13453
|
connectHighlight(Snippet);
|
|
13472
13454
|
|
|
13473
|
-
var cx$
|
|
13455
|
+
var cx$k = createClassNames('RelevantSort');
|
|
13474
13456
|
|
|
13475
13457
|
var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
|
|
13476
13458
|
var isRelevantSorted = _ref.isRelevantSorted;
|
|
13477
|
-
return
|
|
13459
|
+
return React__default.createElement("span", null, isRelevantSorted ? 'See all results' : 'See relevant results');
|
|
13478
13460
|
};
|
|
13479
13461
|
|
|
13480
13462
|
var RelevantSort = function RelevantSort(_ref2) {
|
|
@@ -13486,18 +13468,18 @@ var RelevantSort = function RelevantSort(_ref2) {
|
|
|
13486
13468
|
ButtonTextComponent = _ref2$buttonTextCompo === void 0 ? DefaultButtonTextComponent : _ref2$buttonTextCompo,
|
|
13487
13469
|
TextComponent = _ref2.textComponent,
|
|
13488
13470
|
refine = _ref2.refine;
|
|
13489
|
-
return !isVirtualReplica ? null :
|
|
13490
|
-
className: classnames(cx$
|
|
13491
|
-
},
|
|
13492
|
-
className: cx$
|
|
13493
|
-
}, TextComponent &&
|
|
13471
|
+
return !isVirtualReplica ? null : React__default.createElement("div", {
|
|
13472
|
+
className: classnames(cx$k(''), className)
|
|
13473
|
+
}, React__default.createElement("div", {
|
|
13474
|
+
className: cx$k('text')
|
|
13475
|
+
}, TextComponent && React__default.createElement(TextComponent, {
|
|
13494
13476
|
isRelevantSorted: isRelevantSorted
|
|
13495
|
-
})),
|
|
13496
|
-
className: cx$
|
|
13477
|
+
})), React__default.createElement("button", {
|
|
13478
|
+
className: cx$k('button'),
|
|
13497
13479
|
onClick: function onClick() {
|
|
13498
13480
|
return refine(isRelevantSorted ? 0 : undefined);
|
|
13499
13481
|
}
|
|
13500
|
-
},
|
|
13482
|
+
}, React__default.createElement(ButtonTextComponent, {
|
|
13501
13483
|
isRelevantSorted: isRelevantSorted
|
|
13502
13484
|
})));
|
|
13503
13485
|
};
|
|
@@ -13513,7 +13495,7 @@ RelevantSort.propTypes = {
|
|
|
13513
13495
|
|
|
13514
13496
|
connectRelevantSort(RelevantSort);
|
|
13515
13497
|
|
|
13516
|
-
var cx$
|
|
13498
|
+
var cx$l = createClassNames('SortBy');
|
|
13517
13499
|
|
|
13518
13500
|
var SortBy =
|
|
13519
13501
|
/*#__PURE__*/
|
|
@@ -13534,10 +13516,10 @@ function (_Component) {
|
|
|
13534
13516
|
currentRefinement = _this$props.currentRefinement,
|
|
13535
13517
|
refine = _this$props.refine,
|
|
13536
13518
|
className = _this$props.className;
|
|
13537
|
-
return
|
|
13538
|
-
className: classnames(cx$
|
|
13539
|
-
},
|
|
13540
|
-
cx: cx$
|
|
13519
|
+
return React__default.createElement("div", {
|
|
13520
|
+
className: classnames(cx$l(''), className)
|
|
13521
|
+
}, React__default.createElement(Select, {
|
|
13522
|
+
cx: cx$l,
|
|
13541
13523
|
items: items,
|
|
13542
13524
|
selectedItem: currentRefinement,
|
|
13543
13525
|
onSelect: refine
|
|
@@ -13603,7 +13585,7 @@ _defineProperty(SortBy, "defaultProps", {
|
|
|
13603
13585
|
|
|
13604
13586
|
connectSortBy(SortBy);
|
|
13605
13587
|
|
|
13606
|
-
var cx$
|
|
13588
|
+
var cx$m = createClassNames('Stats');
|
|
13607
13589
|
|
|
13608
13590
|
var Stats = function Stats(_ref) {
|
|
13609
13591
|
var _ref$className = _ref.className,
|
|
@@ -13613,10 +13595,10 @@ var Stats = function Stats(_ref) {
|
|
|
13613
13595
|
nbSortedHits = _ref.nbSortedHits,
|
|
13614
13596
|
processingTimeMS = _ref.processingTimeMS,
|
|
13615
13597
|
translate = _ref.translate;
|
|
13616
|
-
return
|
|
13617
|
-
className: classnames(cx$
|
|
13618
|
-
},
|
|
13619
|
-
className: cx$
|
|
13598
|
+
return React__default.createElement("div", {
|
|
13599
|
+
className: classnames(cx$m(''), className)
|
|
13600
|
+
}, React__default.createElement("span", {
|
|
13601
|
+
className: cx$m('text')
|
|
13620
13602
|
}, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
|
|
13621
13603
|
};
|
|
13622
13604
|
|
|
@@ -13664,7 +13646,7 @@ var Stats$1 = translatable({
|
|
|
13664
13646
|
|
|
13665
13647
|
connectStats(Stats$1);
|
|
13666
13648
|
|
|
13667
|
-
var cx$
|
|
13649
|
+
var cx$n = createClassNames('ToggleRefinement');
|
|
13668
13650
|
|
|
13669
13651
|
var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
13670
13652
|
var currentRefinement = _ref.currentRefinement,
|
|
@@ -13672,19 +13654,19 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
|
13672
13654
|
canRefine = _ref.canRefine,
|
|
13673
13655
|
refine = _ref.refine,
|
|
13674
13656
|
className = _ref.className;
|
|
13675
|
-
return
|
|
13676
|
-
className: classnames(cx$
|
|
13677
|
-
},
|
|
13678
|
-
className: cx$
|
|
13679
|
-
},
|
|
13680
|
-
className: cx$
|
|
13657
|
+
return React__default.createElement("div", {
|
|
13658
|
+
className: classnames(cx$n('', !canRefine && '-noRefinement'), className)
|
|
13659
|
+
}, React__default.createElement("label", {
|
|
13660
|
+
className: cx$n('label')
|
|
13661
|
+
}, React__default.createElement("input", {
|
|
13662
|
+
className: cx$n('checkbox'),
|
|
13681
13663
|
type: "checkbox",
|
|
13682
13664
|
checked: currentRefinement,
|
|
13683
13665
|
onChange: function onChange(event) {
|
|
13684
13666
|
return refine(event.target.checked);
|
|
13685
13667
|
}
|
|
13686
|
-
}),
|
|
13687
|
-
className: cx$
|
|
13668
|
+
}), React__default.createElement("span", {
|
|
13669
|
+
className: cx$n('labelText')
|
|
13688
13670
|
}, label)));
|
|
13689
13671
|
};
|
|
13690
13672
|
|
|
@@ -13893,11 +13875,11 @@ function createVoiceSearchHelper(_ref) {
|
|
|
13893
13875
|
};
|
|
13894
13876
|
}
|
|
13895
13877
|
|
|
13896
|
-
var cx$
|
|
13878
|
+
var cx$o = createClassNames('VoiceSearch');
|
|
13897
13879
|
|
|
13898
13880
|
var ButtonSvg = function ButtonSvg(_ref) {
|
|
13899
13881
|
var children = _ref.children;
|
|
13900
|
-
return
|
|
13882
|
+
return React__default.createElement("svg", {
|
|
13901
13883
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13902
13884
|
width: "16",
|
|
13903
13885
|
height: "16",
|
|
@@ -13914,36 +13896,36 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13914
13896
|
var status = _ref2.status,
|
|
13915
13897
|
errorCode = _ref2.errorCode,
|
|
13916
13898
|
isListening = _ref2.isListening;
|
|
13917
|
-
return status === 'error' && errorCode === 'not-allowed' ?
|
|
13899
|
+
return status === 'error' && errorCode === 'not-allowed' ? React__default.createElement(ButtonSvg, null, React__default.createElement("line", {
|
|
13918
13900
|
x1: "1",
|
|
13919
13901
|
y1: "1",
|
|
13920
13902
|
x2: "23",
|
|
13921
13903
|
y2: "23"
|
|
13922
|
-
}),
|
|
13904
|
+
}), React__default.createElement("path", {
|
|
13923
13905
|
d: "M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"
|
|
13924
|
-
}),
|
|
13906
|
+
}), React__default.createElement("path", {
|
|
13925
13907
|
d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"
|
|
13926
|
-
}),
|
|
13908
|
+
}), React__default.createElement("line", {
|
|
13927
13909
|
x1: "12",
|
|
13928
13910
|
y1: "19",
|
|
13929
13911
|
x2: "12",
|
|
13930
13912
|
y2: "23"
|
|
13931
|
-
}),
|
|
13913
|
+
}), React__default.createElement("line", {
|
|
13932
13914
|
x1: "8",
|
|
13933
13915
|
y1: "23",
|
|
13934
13916
|
x2: "16",
|
|
13935
13917
|
y2: "23"
|
|
13936
|
-
})) :
|
|
13918
|
+
})) : React__default.createElement(ButtonSvg, null, React__default.createElement("path", {
|
|
13937
13919
|
d: "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",
|
|
13938
13920
|
fill: isListening ? 'currentColor' : ''
|
|
13939
|
-
}),
|
|
13921
|
+
}), React__default.createElement("path", {
|
|
13940
13922
|
d: "M19 10v2a7 7 0 0 1-14 0v-2"
|
|
13941
|
-
}),
|
|
13923
|
+
}), React__default.createElement("line", {
|
|
13942
13924
|
x1: "12",
|
|
13943
13925
|
y1: "19",
|
|
13944
13926
|
x2: "12",
|
|
13945
13927
|
y2: "23"
|
|
13946
|
-
}),
|
|
13928
|
+
}), React__default.createElement("line", {
|
|
13947
13929
|
x1: "8",
|
|
13948
13930
|
y1: "23",
|
|
13949
13931
|
x2: "16",
|
|
@@ -13953,7 +13935,7 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
13953
13935
|
|
|
13954
13936
|
var DefaultStatus = function DefaultStatus(_ref3) {
|
|
13955
13937
|
var transcript = _ref3.transcript;
|
|
13956
|
-
return
|
|
13938
|
+
return React__default.createElement("p", null, transcript);
|
|
13957
13939
|
};
|
|
13958
13940
|
|
|
13959
13941
|
var VoiceSearch =
|
|
@@ -14038,17 +14020,17 @@ function (_Component) {
|
|
|
14038
14020
|
isSpeechFinal: isSpeechFinal,
|
|
14039
14021
|
isBrowserSupported: isBrowserSupported()
|
|
14040
14022
|
};
|
|
14041
|
-
return
|
|
14042
|
-
className: cx$
|
|
14043
|
-
},
|
|
14044
|
-
className: cx$
|
|
14023
|
+
return React__default.createElement("div", {
|
|
14024
|
+
className: cx$o('')
|
|
14025
|
+
}, React__default.createElement("button", {
|
|
14026
|
+
className: cx$o('button'),
|
|
14045
14027
|
type: "button",
|
|
14046
14028
|
title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
|
|
14047
14029
|
onClick: this.onClick,
|
|
14048
14030
|
disabled: !isBrowserSupported()
|
|
14049
|
-
},
|
|
14050
|
-
className: cx$
|
|
14051
|
-
},
|
|
14031
|
+
}, React__default.createElement(ButtonTextComponent, innerProps)), React__default.createElement("div", {
|
|
14032
|
+
className: cx$o('status')
|
|
14033
|
+
}, React__default.createElement(StatusComponent, innerProps)));
|
|
14052
14034
|
}
|
|
14053
14035
|
}, {
|
|
14054
14036
|
key: "componentWillUnmount",
|
|
@@ -14075,14 +14057,14 @@ var VoiceSearch$1 = translatable({
|
|
|
14075
14057
|
|
|
14076
14058
|
connectVoiceSearch(VoiceSearch$1);
|
|
14077
14059
|
|
|
14078
|
-
var cx = createClassNames('QueryRuleCustomData');
|
|
14060
|
+
var cx$p = createClassNames('QueryRuleCustomData');
|
|
14079
14061
|
|
|
14080
14062
|
var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
14081
14063
|
var items = _ref.items,
|
|
14082
14064
|
className = _ref.className,
|
|
14083
14065
|
children = _ref.children;
|
|
14084
|
-
return
|
|
14085
|
-
className: classnames(cx(''), className)
|
|
14066
|
+
return React__default.createElement("div", {
|
|
14067
|
+
className: classnames(cx$p(''), className)
|
|
14086
14068
|
}, children({
|
|
14087
14069
|
items: items
|
|
14088
14070
|
}));
|
|
@@ -14095,7 +14077,7 @@ QueryRuleCustomData.propTypes = {
|
|
|
14095
14077
|
};
|
|
14096
14078
|
|
|
14097
14079
|
var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
14098
|
-
return
|
|
14080
|
+
return React__default.createElement(PanelWrapper, props, React__default.createElement(QueryRuleCustomData, props));
|
|
14099
14081
|
};
|
|
14100
14082
|
|
|
14101
14083
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
@@ -14118,52 +14100,52 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14118
14100
|
|
|
14119
14101
|
var builder = imageUrlBuilder(client);
|
|
14120
14102
|
var hit = props.hit;
|
|
14121
|
-
return
|
|
14103
|
+
return React__default.createElement(
|
|
14122
14104
|
'div',
|
|
14123
14105
|
{ key: hit.url, className: styles.article },
|
|
14124
|
-
|
|
14106
|
+
React__default.createElement(
|
|
14125
14107
|
'a',
|
|
14126
14108
|
{ href: '/view/' + hit.url, style: this.props.variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14127
|
-
|
|
14109
|
+
React__default.createElement(
|
|
14128
14110
|
'div',
|
|
14129
14111
|
{ className: styles.thumb },
|
|
14130
|
-
|
|
14112
|
+
React__default.createElement(
|
|
14131
14113
|
'figure',
|
|
14132
14114
|
null,
|
|
14133
|
-
|
|
14115
|
+
React__default.createElement(
|
|
14134
14116
|
LazyLoad,
|
|
14135
14117
|
null,
|
|
14136
|
-
|
|
14137
|
-
src: hit.thumbnail && hit.thumbnail.asset ? builder.image(hit.thumbnail).url() : hit.thumbnail && _typeof$
|
|
14118
|
+
React__default.createElement('img', {
|
|
14119
|
+
src: hit.thumbnail && hit.thumbnail.asset ? builder.image(hit.thumbnail).url() : hit.thumbnail && _typeof$1(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14138
14120
|
})
|
|
14139
14121
|
)
|
|
14140
14122
|
)
|
|
14141
14123
|
),
|
|
14142
|
-
|
|
14124
|
+
React__default.createElement(
|
|
14143
14125
|
'div',
|
|
14144
14126
|
{ className: styles.info, style: this.props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14145
|
-
|
|
14127
|
+
React__default.createElement(
|
|
14146
14128
|
'h2',
|
|
14147
14129
|
null,
|
|
14148
14130
|
hit.title
|
|
14149
14131
|
),
|
|
14150
|
-
hit.pubDateSort &&
|
|
14132
|
+
hit.pubDateSort && React__default.createElement(
|
|
14151
14133
|
'p',
|
|
14152
14134
|
{ className: styles.published },
|
|
14153
14135
|
moment(hit.pubDateSort).format('MMMM Do YYYY')
|
|
14154
14136
|
),
|
|
14155
|
-
hit.authorMapping && hit.authorMapping.length > 0 &&
|
|
14137
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default.createElement(
|
|
14156
14138
|
'p',
|
|
14157
14139
|
{ className: styles.author },
|
|
14158
14140
|
hit.authorMapping.map(function (author) {
|
|
14159
|
-
return
|
|
14141
|
+
return React__default.createElement(
|
|
14160
14142
|
'span',
|
|
14161
14143
|
null,
|
|
14162
14144
|
author.displayName
|
|
14163
14145
|
);
|
|
14164
14146
|
})
|
|
14165
14147
|
),
|
|
14166
|
-
hit.summary &&
|
|
14148
|
+
hit.summary && React__default.createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14167
14149
|
)
|
|
14168
14150
|
)
|
|
14169
14151
|
);
|
|
@@ -14177,10 +14159,10 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14177
14159
|
styles: this.props.deckStyles,
|
|
14178
14160
|
client: this.props.sanityClient
|
|
14179
14161
|
};
|
|
14180
|
-
return
|
|
14181
|
-
|
|
14162
|
+
return React__default.createElement(
|
|
14163
|
+
React__default.Fragment,
|
|
14182
14164
|
null,
|
|
14183
|
-
|
|
14165
|
+
React__default.createElement(
|
|
14184
14166
|
InstantSearch,
|
|
14185
14167
|
_extends$1({
|
|
14186
14168
|
searchClient: this.props.searchClient,
|
|
@@ -14191,29 +14173,29 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14191
14173
|
indexName: this.props.indexName,
|
|
14192
14174
|
onSearchParameters: this.props.onSearchParameters
|
|
14193
14175
|
}, this.props),
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
this.props.refinementAttributes &&
|
|
14176
|
+
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14177
|
+
React__default.createElement(SearchBox$2, null),
|
|
14178
|
+
this.props.refinementAttributes && React__default.createElement(
|
|
14197
14179
|
'div',
|
|
14198
14180
|
{ className: 'search_refinement' },
|
|
14199
14181
|
this.props.refinementAttributes.map(function (item, index) {
|
|
14200
|
-
return
|
|
14182
|
+
return React__default.createElement(
|
|
14201
14183
|
DropdownButton,
|
|
14202
14184
|
{ title: item.title },
|
|
14203
|
-
|
|
14185
|
+
React__default.createElement(RefinementList$3, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
|
|
14204
14186
|
);
|
|
14205
14187
|
})
|
|
14206
14188
|
),
|
|
14207
|
-
|
|
14189
|
+
React__default.createElement(
|
|
14208
14190
|
'div',
|
|
14209
14191
|
{ className: 'AlgoliaResults' },
|
|
14210
|
-
|
|
14192
|
+
React__default.createElement(Hits$1, { hitComponent: function hitComponent(hit) {
|
|
14211
14193
|
return _this2.Deck(_extends$1({}, hit, { propsObj: propsObj }));
|
|
14212
14194
|
} })
|
|
14213
14195
|
),
|
|
14214
|
-
|
|
14196
|
+
React__default.createElement(Pagination$2, null)
|
|
14215
14197
|
),
|
|
14216
|
-
|
|
14198
|
+
React__default.createElement(
|
|
14217
14199
|
'style',
|
|
14218
14200
|
{ jsx: 'true' },
|
|
14219
14201
|
'\n .AlgoliaResults {\n padding-left: 15px;\n margin-top: 3rem;\n }\n\n .search_refinement {\n display: flex;\n margin: 2rem 0;\n }\n\n .search_refinement > div {\n padding-right: 1rem;\n max-height: 500px;\n }\n\n .ais-Hits-list {\n margin: 0;\n list-style: none;\n padding-inline-start: 0;\n }\n .ais-Pagination-list {\n list-style: none;\n }\n .ais-Pagination-list {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n .ais-Pagination-item + .ais-Pagination-item {\n margin-left: 0.3rem;\n }\n .ais-Pagination-link {\n padding: 0.3rem 0.6rem;\n display: block;\n border: 1px solid var(--search-primary);\n border-radius: 5px;\n transition: background-color 0.2s ease-out;\n }\n .ais-Pagination-link:focus,\n .ais-Pagination-link:hover {\n background-color: var(--search-secondary);\n color: #fff;\n }\n .ais-Pagination-item--disabled .ais-Pagination-link {\n opacity: 0.6;\n cursor: not-allowed;\n color: var(--search-secondary);\n }\n .ais-Pagination-item--disabled .ais-Pagination-link:focus,\n .ais-Pagination-item--disabled .ais-Pagination-link:hover {\n color: #fff;\n background-color: var(--search-secondary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link {\n color: #fff;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link:focus,\n .ais-Pagination-item--selected .ais-Pagination-link:hover {\n color: #fff;\n }\n .ais-Pagination-list,\n .ais-Results-list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .ais-Pagination-list,\n .ais-PoweredBy,\n .ais-RangeInput-form,\n .ais-RatingMenu-link {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .ais-RefinementList-item {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .ais-RefinementList-list {\n margin: 0;\n padding: 0 1rem;\n width: max-content;\n }\n .ais-SearchBox-form {\n width: 100%;\n border-radius: 5px;\n height: 48px;\n }\n .ais-SearchBox-input {\n padding: 0.5rem;\n border-radius: 5px;\n width: calc(100% - 150px);\n height: 48px;\n border: 0;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit {\n width: 78px;\n border-radius: 5px;\n padding: 7px;\n margin-left: 5px;\n height: 48px;\n background-color: var(--search-primary);\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit > svg {\n fill: #fff;\n }\n .search_refinement > .dropdown > button {\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n\n .ais-SearchBox-reset {\n height: 48px;\n width: 48px;\n color: #fff;\n background-color: var(--search-primary);\n border: 0;\n margin-left: 5px;\n border-radius: 5px;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-reset > svg {\n fill: #fff;\n }\n .ais-RefinementList-checkbox {\n margin-right: 5px;\n }\n\n .ais-RefinementList-showMore {\n padding: 0.5rem;\n border: 0;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n color: #fff;\n border: 1px solid;\n border-radius: 5px;\n margin-left: 1rem;\n }\n '
|
|
@@ -14223,7 +14205,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14223
14205
|
}]);
|
|
14224
14206
|
|
|
14225
14207
|
return AlgoliaSearch;
|
|
14226
|
-
}(
|
|
14208
|
+
}(React__default.Component);
|
|
14227
14209
|
|
|
14228
14210
|
AlgoliaSearch.propTypes = {
|
|
14229
14211
|
searchState: PropTypes.object,
|