@mjhls/mjh-framework 1.0.1001-popup-polls → 1.0.1002-docgroup-fix-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -5
- package/dist/cjs/AD300x250x600.js +5 -5
- package/dist/cjs/AD728x90.js +6 -6
- package/dist/cjs/ADFloatingFooter.js +8 -8
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -8
- package/dist/cjs/{ADInfeed-0394f391.js → ADInfeed-e87afe8a.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +8 -8
- package/dist/cjs/ADSponsoredResources.js +8 -8
- package/dist/cjs/ADWebcast.js +8 -8
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-759969d6.js → ADlgInfeed-b5a3d436.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -9
- package/dist/cjs/AdSlotsProvider.js +5 -5
- package/dist/cjs/AlgoliaSearch.js +573 -575
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +16 -17
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
- package/dist/cjs/ArticleSeriesListing.js +29 -29
- package/dist/cjs/Auth.js +74 -74
- package/dist/cjs/AuthWrapper.js +24 -24
- package/dist/cjs/{AuthorComponent-7d00f6d5.js → AuthorComponent-39b37d84.js} +9 -9
- package/dist/cjs/{BlockContent-96b44364.js → BlockContent-9ebd251f.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +27 -27
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-213003ce.js → ConferenceBanner-6c9e718a.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -49
- package/dist/cjs/DeckContent.js +58 -58
- package/dist/cjs/DeckQueue.js +57 -57
- package/dist/cjs/DeckQueuePaginated.js +46 -46
- package/dist/cjs/{Dfp-c313a700.js → Dfp-9be904d5.js} +17 -17
- package/dist/cjs/EventsDeck.js +89 -89
- package/dist/cjs/ExternalResources.js +35 -36
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -134
- package/dist/cjs/GridContentPaginated.js +121 -121
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +105 -105
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +17 -17
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +30 -31
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-17fdaf3b.js → ImageSlider-6c00b878.js} +72 -72
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +21 -22
- package/dist/cjs/LeftNav.js +17 -17
- package/dist/cjs/MasterDeck.js +39 -39
- package/dist/cjs/MasterDeckPaginated.js +29 -29
- package/dist/cjs/{MediaSeriesCard-eacea66a.js → MediaSeriesCard-2e5cd247.js} +16 -16
- package/dist/cjs/MediaSeriesLanding.js +37 -38
- package/dist/cjs/MediaSeriesLandingPaginated.js +36 -37
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-880e9d87.js → NavFooter-4799de4b.js} +11 -11
- package/dist/cjs/NavMagazine.js +106 -106
- package/dist/cjs/NavNative.js +97 -97
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-842c556f.js → Pagination-2a3d0103.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +51 -52
- package/dist/cjs/PartnerDetailListingPaginated.js +50 -51
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +23 -24
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -13
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-a989a2b3.js → PublicationFeature-5ccf9b13.js} +29 -29
- package/dist/cjs/PublicationLanding.js +73 -73
- package/dist/cjs/QueueDeckExpanded.js +245 -245
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -222
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +14 -14
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +54 -52
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -18
- package/dist/cjs/{SeriesSlider-3d57985d.js → SeriesSlider-594b19eb.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-62bceb87.js → SocialSearchComponent-d2ab3d62.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +13 -14
- package/dist/cjs/TemplateNormal.js +27 -27
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/{Tooltip-4cb8849a.js → Tooltip-f075b7ef.js} +440 -440
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +30 -31
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -11
- package/dist/cjs/VideoSeriesListing.js +46 -46
- package/dist/cjs/View.js +230 -224
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +33 -33
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-a195642e.js} +2 -2
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +8 -9
- package/dist/cjs/iconBase-be4097c0.js +4 -2
- package/dist/cjs/{index-65621b6c.js → index-eadd5035.js} +5 -5
- package/dist/cjs/{index-19fbbcea.js → index-f95a3c0f.js} +571 -621
- package/dist/cjs/{index-d2a6ef75.js → index-fc2f1ca2.js} +4 -4
- package/dist/cjs/{index.es-1ab8dda7.js → index.es-f3e47207.js} +4 -4
- package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-1461604c.js} +14 -14
- package/dist/cjs/index.js +100 -100
- package/dist/cjs/{main-3643d499.js → main-f1c77adb.js} +13 -13
- package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-af932527.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-56020df6.js → visibility-sensor-eb2c5b69.js} +1 -1
- package/dist/esm/AlgoliaSearch.js +0 -2
- package/dist/esm/ArticleProgramLandingPage.js +3 -4
- package/dist/esm/ExternalResources.js +3 -4
- package/dist/esm/HorizontalArticleListing.js +3 -4
- package/dist/esm/IssueLanding.js +3 -4
- package/dist/esm/{MediaSeriesCard-f56c8274.js → MediaSeriesCard-afb517a5.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +3 -4
- package/dist/esm/MediaSeriesLandingPaginated.js +3 -4
- package/dist/esm/PartnerDetailListing.js +3 -4
- package/dist/esm/PartnerDetailListingPaginated.js +3 -4
- package/dist/esm/PodcastsLanding.js +3 -4
- package/dist/esm/Schema.js +54 -52
- package/dist/esm/TaxonomyDescription.js +3 -4
- package/dist/esm/VideoProgramLandingPage.js +3 -4
- package/dist/esm/View.js +10 -4
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +3 -4
- package/dist/esm/{index-5d8b0a9d.js → index-04817712.js} +91 -141
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ var events = require('./events-1b438fe7.js');
|
|
|
11
11
|
var reactBootstrap = require('react-bootstrap');
|
|
12
12
|
var urlFor = require('./urlFor.js');
|
|
13
13
|
var moment = require('./moment-aca40de1.js');
|
|
14
|
-
var index$1 = require('./index-
|
|
14
|
+
var index$1 = require('./index-eadd5035.js');
|
|
15
15
|
require('./_commonjsHelpers-06173234.js');
|
|
16
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
17
17
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -115,8 +115,6 @@ function _assertThisInitialized(self) {
|
|
|
115
115
|
function _possibleConstructorReturn(self, call) {
|
|
116
116
|
if (call && (_typeof$1._typeof(call) === "object" || typeof call === "function")) {
|
|
117
117
|
return call;
|
|
118
|
-
} else if (call !== void 0) {
|
|
119
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
120
118
|
}
|
|
121
119
|
|
|
122
120
|
return _assertThisInitialized(self);
|
|
@@ -695,7 +693,7 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
695
693
|
var searchForFacetValuesProps = typeof connectorDesc.searchForFacetValues === 'function' ? {
|
|
696
694
|
searchForItems: this.searchForFacetValues
|
|
697
695
|
} : {};
|
|
698
|
-
return React__default[
|
|
696
|
+
return React__default['default'].createElement(Composed, index._extends({}, props, providedProps, refineProps, searchForFacetValuesProps));
|
|
699
697
|
}
|
|
700
698
|
}]);
|
|
701
699
|
|
|
@@ -717,9 +715,9 @@ var createConnectorWithContext = function createConnectorWithContext(connectorDe
|
|
|
717
715
|
var Connector = createConnectorWithoutContext(connectorDesc)(Composed);
|
|
718
716
|
|
|
719
717
|
var ConnectorWrapper = function ConnectorWrapper(props) {
|
|
720
|
-
return React__default[
|
|
721
|
-
return React__default[
|
|
722
|
-
return React__default[
|
|
718
|
+
return React__default['default'].createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
719
|
+
return React__default['default'].createElement(IndexConsumer, null, function (indexContextValue) {
|
|
720
|
+
return React__default['default'].createElement(Connector, index._extends({
|
|
723
721
|
contextValue: contextValue,
|
|
724
722
|
indexContextValue: indexContextValue
|
|
725
723
|
}, props));
|
|
@@ -892,7 +890,7 @@ function translatable(defaultTranslations) {
|
|
|
892
890
|
_createClass(Translatable, [{
|
|
893
891
|
key: "render",
|
|
894
892
|
value: function render() {
|
|
895
|
-
return React__default[
|
|
893
|
+
return React__default['default'].createElement(Composed, index._extends({
|
|
896
894
|
translate: this.translate
|
|
897
895
|
}, this.props));
|
|
898
896
|
}
|
|
@@ -6423,9 +6421,9 @@ function ConfigureRelatedItems() {
|
|
|
6423
6421
|
}
|
|
6424
6422
|
|
|
6425
6423
|
ConfigureRelatedItems.propTypes = {
|
|
6426
|
-
hit: PropTypes__default[
|
|
6427
|
-
matchingPatterns: PropTypes__default[
|
|
6428
|
-
transformSearchParameters: PropTypes__default[
|
|
6424
|
+
hit: PropTypes__default['default'].object.isRequired,
|
|
6425
|
+
matchingPatterns: PropTypes__default['default'].object.isRequired,
|
|
6426
|
+
transformSearchParameters: PropTypes__default['default'].func
|
|
6429
6427
|
};
|
|
6430
6428
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6431
6429
|
|
|
@@ -6437,7 +6435,7 @@ var connectDynamicWidgets = createConnectorWithContext({
|
|
|
6437
6435
|
}
|
|
6438
6436
|
},
|
|
6439
6437
|
propTypes: {
|
|
6440
|
-
transformItems: PropTypes__default[
|
|
6438
|
+
transformItems: PropTypes__default['default'].func
|
|
6441
6439
|
},
|
|
6442
6440
|
getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
|
|
6443
6441
|
var results = getResults(searchResults, {
|
|
@@ -6474,7 +6472,7 @@ function getAttribute(component) {
|
|
|
6474
6472
|
}
|
|
6475
6473
|
|
|
6476
6474
|
if (component.props.children) {
|
|
6477
|
-
return getAttribute(React__default[
|
|
6475
|
+
return getAttribute(React__default['default'].Children.only(component.props.children));
|
|
6478
6476
|
}
|
|
6479
6477
|
|
|
6480
6478
|
return undefined;
|
|
@@ -6488,7 +6486,7 @@ function DynamicWidgets(_ref) {
|
|
|
6488
6486
|
return null;
|
|
6489
6487
|
} : _ref$fallbackComponen;
|
|
6490
6488
|
var widgets = new Map();
|
|
6491
|
-
React__default[
|
|
6489
|
+
React__default['default'].Children.forEach(children, function (child) {
|
|
6492
6490
|
var attribute = getAttribute(child);
|
|
6493
6491
|
|
|
6494
6492
|
if (!attribute) {
|
|
@@ -6499,10 +6497,10 @@ function DynamicWidgets(_ref) {
|
|
|
6499
6497
|
}); // on initial render this will be empty, but React InstantSearch keeps
|
|
6500
6498
|
// search state for unmounted components in place, so routing works.
|
|
6501
6499
|
|
|
6502
|
-
return React__default[
|
|
6503
|
-
return React__default[
|
|
6500
|
+
return React__default['default'].createElement(React__default['default'].Fragment, null, attributesToRender.map(function (attribute) {
|
|
6501
|
+
return React__default['default'].createElement(React.Fragment, {
|
|
6504
6502
|
key: attribute
|
|
6505
|
-
}, widgets.get(attribute) || React__default[
|
|
6503
|
+
}, widgets.get(attribute) || React__default['default'].createElement(Fallback, {
|
|
6506
6504
|
attribute: attribute
|
|
6507
6505
|
}));
|
|
6508
6506
|
}));
|
|
@@ -6747,7 +6745,7 @@ function (_Component) {
|
|
|
6747
6745
|
return null;
|
|
6748
6746
|
}
|
|
6749
6747
|
|
|
6750
|
-
return React__default[
|
|
6748
|
+
return React__default['default'].createElement(IndexProvider, {
|
|
6751
6749
|
value: this.state.indexContext
|
|
6752
6750
|
}, this.props.children);
|
|
6753
6751
|
}
|
|
@@ -6757,14 +6755,14 @@ function (_Component) {
|
|
|
6757
6755
|
}(React.Component);
|
|
6758
6756
|
|
|
6759
6757
|
_defineProperty(Index, "propTypes", {
|
|
6760
|
-
indexName: PropTypes__default[
|
|
6761
|
-
indexId: PropTypes__default[
|
|
6762
|
-
children: PropTypes__default[
|
|
6758
|
+
indexName: PropTypes__default['default'].string.isRequired,
|
|
6759
|
+
indexId: PropTypes__default['default'].string.isRequired,
|
|
6760
|
+
children: PropTypes__default['default'].node
|
|
6763
6761
|
});
|
|
6764
6762
|
|
|
6765
6763
|
({
|
|
6766
|
-
indexName: PropTypes__default[
|
|
6767
|
-
indexId: PropTypes__default[
|
|
6764
|
+
indexName: PropTypes__default['default'].string.isRequired,
|
|
6765
|
+
indexId: PropTypes__default['default'].string
|
|
6768
6766
|
});
|
|
6769
6767
|
|
|
6770
6768
|
function createWidgetsManager(onWidgetsUpdate) {
|
|
@@ -7572,7 +7570,7 @@ function (_Component) {
|
|
|
7572
7570
|
return null;
|
|
7573
7571
|
}
|
|
7574
7572
|
|
|
7575
|
-
return React__default[
|
|
7573
|
+
return React__default['default'].createElement(InstantSearchProvider, {
|
|
7576
7574
|
value: this.state.contextValue
|
|
7577
7575
|
}, this.props.children);
|
|
7578
7576
|
}
|
|
@@ -7588,22 +7586,22 @@ _defineProperty(InstantSearch, "defaultProps", {
|
|
|
7588
7586
|
|
|
7589
7587
|
_defineProperty(InstantSearch, "propTypes", {
|
|
7590
7588
|
// @TODO: These props are currently constant.
|
|
7591
|
-
indexName: PropTypes__default[
|
|
7592
|
-
searchClient: PropTypes__default[
|
|
7593
|
-
search: PropTypes__default[
|
|
7594
|
-
searchForFacetValues: PropTypes__default[
|
|
7595
|
-
addAlgoliaAgent: PropTypes__default[
|
|
7596
|
-
clearCache: PropTypes__default[
|
|
7589
|
+
indexName: PropTypes__default['default'].string.isRequired,
|
|
7590
|
+
searchClient: PropTypes__default['default'].shape({
|
|
7591
|
+
search: PropTypes__default['default'].func.isRequired,
|
|
7592
|
+
searchForFacetValues: PropTypes__default['default'].func,
|
|
7593
|
+
addAlgoliaAgent: PropTypes__default['default'].func,
|
|
7594
|
+
clearCache: PropTypes__default['default'].func
|
|
7597
7595
|
}).isRequired,
|
|
7598
|
-
createURL: PropTypes__default[
|
|
7599
|
-
refresh: PropTypes__default[
|
|
7600
|
-
searchState: PropTypes__default[
|
|
7601
|
-
onSearchStateChange: PropTypes__default[
|
|
7602
|
-
onSearchParameters: PropTypes__default[
|
|
7603
|
-
widgetsCollector: PropTypes__default[
|
|
7604
|
-
resultsState: PropTypes__default[
|
|
7605
|
-
children: PropTypes__default[
|
|
7606
|
-
stalledSearchDelay: PropTypes__default[
|
|
7596
|
+
createURL: PropTypes__default['default'].func,
|
|
7597
|
+
refresh: PropTypes__default['default'].bool,
|
|
7598
|
+
searchState: PropTypes__default['default'].object,
|
|
7599
|
+
onSearchStateChange: PropTypes__default['default'].func,
|
|
7600
|
+
onSearchParameters: PropTypes__default['default'].func,
|
|
7601
|
+
widgetsCollector: PropTypes__default['default'].func,
|
|
7602
|
+
resultsState: PropTypes__default['default'].oneOfType([PropTypes__default['default'].object, PropTypes__default['default'].array]),
|
|
7603
|
+
children: PropTypes__default['default'].node,
|
|
7604
|
+
stalledSearchDelay: PropTypes__default['default'].number
|
|
7607
7605
|
});
|
|
7608
7606
|
|
|
7609
7607
|
var getId$d = function getId(props) {
|
|
@@ -7690,7 +7688,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7690
7688
|
|
|
7691
7689
|
return undefined;
|
|
7692
7690
|
},
|
|
7693
|
-
transformItems: PropTypes__default[
|
|
7691
|
+
transformItems: PropTypes__default['default'].func
|
|
7694
7692
|
},
|
|
7695
7693
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7696
7694
|
var id = getId$d(props);
|
|
@@ -7739,7 +7737,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7739
7737
|
var connectCurrentRefinements = createConnectorWithContext({
|
|
7740
7738
|
displayName: 'AlgoliaCurrentRefinements',
|
|
7741
7739
|
propTypes: {
|
|
7742
|
-
transformItems: PropTypes__default[
|
|
7740
|
+
transformItems: PropTypes__default['default'].func
|
|
7743
7741
|
},
|
|
7744
7742
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata) {
|
|
7745
7743
|
var items = metadata.reduce(function (res, meta) {
|
|
@@ -7918,15 +7916,15 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7918
7916
|
|
|
7919
7917
|
return undefined;
|
|
7920
7918
|
},
|
|
7921
|
-
separator: PropTypes__default[
|
|
7922
|
-
rootPath: PropTypes__default[
|
|
7923
|
-
showParentLevel: PropTypes__default[
|
|
7924
|
-
defaultRefinement: PropTypes__default[
|
|
7925
|
-
showMore: PropTypes__default[
|
|
7926
|
-
limit: PropTypes__default[
|
|
7927
|
-
showMoreLimit: PropTypes__default[
|
|
7928
|
-
transformItems: PropTypes__default[
|
|
7929
|
-
facetOrdering: PropTypes__default[
|
|
7919
|
+
separator: PropTypes__default['default'].string,
|
|
7920
|
+
rootPath: PropTypes__default['default'].string,
|
|
7921
|
+
showParentLevel: PropTypes__default['default'].bool,
|
|
7922
|
+
defaultRefinement: PropTypes__default['default'].string,
|
|
7923
|
+
showMore: PropTypes__default['default'].bool,
|
|
7924
|
+
limit: PropTypes__default['default'].number,
|
|
7925
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
7926
|
+
transformItems: PropTypes__default['default'].func,
|
|
7927
|
+
facetOrdering: PropTypes__default['default'].bool
|
|
7930
7928
|
},
|
|
7931
7929
|
defaultProps: {
|
|
7932
7930
|
showMore: false,
|
|
@@ -8242,12 +8240,12 @@ function getCurrentRefinement$a(props, searchState, context) {
|
|
|
8242
8240
|
var connectHitsPerPage = createConnectorWithContext({
|
|
8243
8241
|
displayName: 'AlgoliaHitsPerPage',
|
|
8244
8242
|
propTypes: {
|
|
8245
|
-
defaultRefinement: PropTypes__default[
|
|
8246
|
-
items: PropTypes__default[
|
|
8247
|
-
label: PropTypes__default[
|
|
8248
|
-
value: PropTypes__default[
|
|
8243
|
+
defaultRefinement: PropTypes__default['default'].number.isRequired,
|
|
8244
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
8245
|
+
label: PropTypes__default['default'].string,
|
|
8246
|
+
value: PropTypes__default['default'].number.isRequired
|
|
8249
8247
|
})).isRequired,
|
|
8250
|
-
transformItems: PropTypes__default[
|
|
8248
|
+
transformItems: PropTypes__default['default'].func
|
|
8251
8249
|
},
|
|
8252
8250
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
8253
8251
|
var currentRefinement = getCurrentRefinement$a(props, searchState, {
|
|
@@ -8509,14 +8507,14 @@ var defaultSortBy = ['count:desc', 'name:asc'];
|
|
|
8509
8507
|
var connectMenu = createConnectorWithContext({
|
|
8510
8508
|
displayName: 'AlgoliaMenu',
|
|
8511
8509
|
propTypes: {
|
|
8512
|
-
attribute: PropTypes__default[
|
|
8513
|
-
showMore: PropTypes__default[
|
|
8514
|
-
limit: PropTypes__default[
|
|
8515
|
-
showMoreLimit: PropTypes__default[
|
|
8516
|
-
defaultRefinement: PropTypes__default[
|
|
8517
|
-
transformItems: PropTypes__default[
|
|
8518
|
-
searchable: PropTypes__default[
|
|
8519
|
-
facetOrdering: PropTypes__default[
|
|
8510
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
8511
|
+
showMore: PropTypes__default['default'].bool,
|
|
8512
|
+
limit: PropTypes__default['default'].number,
|
|
8513
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
8514
|
+
defaultRefinement: PropTypes__default['default'].string,
|
|
8515
|
+
transformItems: PropTypes__default['default'].func,
|
|
8516
|
+
searchable: PropTypes__default['default'].bool,
|
|
8517
|
+
facetOrdering: PropTypes__default['default'].bool
|
|
8520
8518
|
},
|
|
8521
8519
|
defaultProps: {
|
|
8522
8520
|
showMore: false,
|
|
@@ -8792,14 +8790,14 @@ function _cleanUp$5(props, searchState, context) {
|
|
|
8792
8790
|
var connectNumericMenu = createConnectorWithContext({
|
|
8793
8791
|
displayName: 'AlgoliaNumericMenu',
|
|
8794
8792
|
propTypes: {
|
|
8795
|
-
id: PropTypes__default[
|
|
8796
|
-
attribute: PropTypes__default[
|
|
8797
|
-
items: PropTypes__default[
|
|
8798
|
-
label: PropTypes__default[
|
|
8799
|
-
start: PropTypes__default[
|
|
8800
|
-
end: PropTypes__default[
|
|
8793
|
+
id: PropTypes__default['default'].string,
|
|
8794
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
8795
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
8796
|
+
label: PropTypes__default['default'].node,
|
|
8797
|
+
start: PropTypes__default['default'].number,
|
|
8798
|
+
end: PropTypes__default['default'].number
|
|
8801
8799
|
})).isRequired,
|
|
8802
|
-
transformItems: PropTypes__default[
|
|
8800
|
+
transformItems: PropTypes__default['default'].func
|
|
8803
8801
|
},
|
|
8804
8802
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
8805
8803
|
var attribute = props.attribute;
|
|
@@ -9191,17 +9189,17 @@ function _cleanUp$4(props, searchState, context) {
|
|
|
9191
9189
|
var connectRange = createConnectorWithContext({
|
|
9192
9190
|
displayName: 'AlgoliaRange',
|
|
9193
9191
|
propTypes: {
|
|
9194
|
-
id: PropTypes__default[
|
|
9195
|
-
attribute: PropTypes__default[
|
|
9196
|
-
defaultRefinement: PropTypes__default[
|
|
9197
|
-
min: PropTypes__default[
|
|
9198
|
-
max: PropTypes__default[
|
|
9192
|
+
id: PropTypes__default['default'].string,
|
|
9193
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
9194
|
+
defaultRefinement: PropTypes__default['default'].shape({
|
|
9195
|
+
min: PropTypes__default['default'].number,
|
|
9196
|
+
max: PropTypes__default['default'].number
|
|
9199
9197
|
}),
|
|
9200
|
-
min: PropTypes__default[
|
|
9201
|
-
max: PropTypes__default[
|
|
9202
|
-
precision: PropTypes__default[
|
|
9203
|
-
header: PropTypes__default[
|
|
9204
|
-
footer: PropTypes__default[
|
|
9198
|
+
min: PropTypes__default['default'].number,
|
|
9199
|
+
max: PropTypes__default['default'].number,
|
|
9200
|
+
precision: PropTypes__default['default'].number,
|
|
9201
|
+
header: PropTypes__default['default'].node,
|
|
9202
|
+
footer: PropTypes__default['default'].node
|
|
9205
9203
|
},
|
|
9206
9204
|
defaultProps: {
|
|
9207
9205
|
precision: 0
|
|
@@ -9424,16 +9422,16 @@ var sortBy = ['isRefined', 'count:desc', 'name:asc'];
|
|
|
9424
9422
|
var connectRefinementList = createConnectorWithContext({
|
|
9425
9423
|
displayName: 'AlgoliaRefinementList',
|
|
9426
9424
|
propTypes: {
|
|
9427
|
-
id: PropTypes__default[
|
|
9428
|
-
attribute: PropTypes__default[
|
|
9429
|
-
operator: PropTypes__default[
|
|
9430
|
-
showMore: PropTypes__default[
|
|
9431
|
-
limit: PropTypes__default[
|
|
9432
|
-
showMoreLimit: PropTypes__default[
|
|
9433
|
-
defaultRefinement: PropTypes__default[
|
|
9434
|
-
searchable: PropTypes__default[
|
|
9435
|
-
transformItems: PropTypes__default[
|
|
9436
|
-
facetOrdering: PropTypes__default[
|
|
9425
|
+
id: PropTypes__default['default'].string,
|
|
9426
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
9427
|
+
operator: PropTypes__default['default'].oneOf(['and', 'or']),
|
|
9428
|
+
showMore: PropTypes__default['default'].bool,
|
|
9429
|
+
limit: PropTypes__default['default'].number,
|
|
9430
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
9431
|
+
defaultRefinement: PropTypes__default['default'].arrayOf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number])),
|
|
9432
|
+
searchable: PropTypes__default['default'].bool,
|
|
9433
|
+
transformItems: PropTypes__default['default'].func,
|
|
9434
|
+
facetOrdering: PropTypes__default['default'].bool
|
|
9437
9435
|
},
|
|
9438
9436
|
defaultProps: {
|
|
9439
9437
|
operator: 'or',
|
|
@@ -9592,7 +9590,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9592
9590
|
var connectScrollTo = createConnectorWithContext({
|
|
9593
9591
|
displayName: 'AlgoliaScrollTo',
|
|
9594
9592
|
propTypes: {
|
|
9595
|
-
scrollOn: PropTypes__default[
|
|
9593
|
+
scrollOn: PropTypes__default['default'].string
|
|
9596
9594
|
},
|
|
9597
9595
|
defaultProps: {
|
|
9598
9596
|
scrollOn: 'page'
|
|
@@ -9681,7 +9679,7 @@ function _cleanUp$2(props, searchState, context) {
|
|
|
9681
9679
|
var connectSearchBox = createConnectorWithContext({
|
|
9682
9680
|
displayName: 'AlgoliaSearchBox',
|
|
9683
9681
|
propTypes: {
|
|
9684
|
-
defaultRefinement: PropTypes__default[
|
|
9682
|
+
defaultRefinement: PropTypes__default['default'].string
|
|
9685
9683
|
},
|
|
9686
9684
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9687
9685
|
return {
|
|
@@ -9817,12 +9815,12 @@ function getCurrentRefinement$1(props, searchState, context) {
|
|
|
9817
9815
|
var connectSortBy = createConnectorWithContext({
|
|
9818
9816
|
displayName: 'AlgoliaSortBy',
|
|
9819
9817
|
propTypes: {
|
|
9820
|
-
defaultRefinement: PropTypes__default[
|
|
9821
|
-
items: PropTypes__default[
|
|
9822
|
-
label: PropTypes__default[
|
|
9823
|
-
value: PropTypes__default[
|
|
9818
|
+
defaultRefinement: PropTypes__default['default'].string,
|
|
9819
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
9820
|
+
label: PropTypes__default['default'].string,
|
|
9821
|
+
value: PropTypes__default['default'].string.isRequired
|
|
9824
9822
|
})).isRequired,
|
|
9825
|
-
transformItems: PropTypes__default[
|
|
9823
|
+
transformItems: PropTypes__default['default'].func
|
|
9826
9824
|
},
|
|
9827
9825
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
9828
9826
|
var currentRefinement = getCurrentRefinement$1(props, searchState, {
|
|
@@ -9956,11 +9954,11 @@ function _cleanUp$1(props, searchState, context) {
|
|
|
9956
9954
|
var connectToggleRefinement = createConnectorWithContext({
|
|
9957
9955
|
displayName: 'AlgoliaToggle',
|
|
9958
9956
|
propTypes: {
|
|
9959
|
-
label: PropTypes__default[
|
|
9960
|
-
attribute: PropTypes__default[
|
|
9961
|
-
value: PropTypes__default[
|
|
9962
|
-
filter: PropTypes__default[
|
|
9963
|
-
defaultRefinement: PropTypes__default[
|
|
9957
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
9958
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
9959
|
+
value: PropTypes__default['default'].any.isRequired,
|
|
9960
|
+
filter: PropTypes__default['default'].func,
|
|
9961
|
+
defaultRefinement: PropTypes__default['default'].bool
|
|
9964
9962
|
},
|
|
9965
9963
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9966
9964
|
var attribute = props.attribute,
|
|
@@ -10120,7 +10118,7 @@ function _cleanUp(props, searchState, context) {
|
|
|
10120
10118
|
var connectVoiceSearch = createConnectorWithContext({
|
|
10121
10119
|
displayName: 'AlgoliaVoiceSearch',
|
|
10122
10120
|
propTypes: {
|
|
10123
|
-
defaultRefinement: PropTypes__default[
|
|
10121
|
+
defaultRefinement: PropTypes__default['default'].string
|
|
10124
10122
|
},
|
|
10125
10123
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
10126
10124
|
return {
|
|
@@ -10282,15 +10280,15 @@ function (_Component) {
|
|
|
10282
10280
|
header = _this$props.header,
|
|
10283
10281
|
footer = _this$props.footer;
|
|
10284
10282
|
var canRefine = this.state.canRefine;
|
|
10285
|
-
return React__default[
|
|
10283
|
+
return React__default['default'].createElement("div", {
|
|
10286
10284
|
className: index.classnames(cx$p('', !canRefine && '-noRefinement'), className)
|
|
10287
|
-
}, header && React__default[
|
|
10285
|
+
}, header && React__default['default'].createElement("div", {
|
|
10288
10286
|
className: cx$p('header')
|
|
10289
|
-
}, header), React__default[
|
|
10287
|
+
}, header), React__default['default'].createElement("div", {
|
|
10290
10288
|
className: cx$p('body')
|
|
10291
|
-
}, React__default[
|
|
10289
|
+
}, React__default['default'].createElement(PanelProvider, {
|
|
10292
10290
|
value: this.setCanRefine
|
|
10293
|
-
}, children)), footer && React__default[
|
|
10291
|
+
}, children)), footer && React__default['default'].createElement("div", {
|
|
10294
10292
|
className: cx$p('footer')
|
|
10295
10293
|
}, footer));
|
|
10296
10294
|
}
|
|
@@ -10300,10 +10298,10 @@ function (_Component) {
|
|
|
10300
10298
|
}(React.Component);
|
|
10301
10299
|
|
|
10302
10300
|
_defineProperty(Panel, "propTypes", {
|
|
10303
|
-
children: PropTypes__default[
|
|
10304
|
-
className: PropTypes__default[
|
|
10305
|
-
header: PropTypes__default[
|
|
10306
|
-
footer: PropTypes__default[
|
|
10301
|
+
children: PropTypes__default['default'].node.isRequired,
|
|
10302
|
+
className: PropTypes__default['default'].string,
|
|
10303
|
+
header: PropTypes__default['default'].node,
|
|
10304
|
+
footer: PropTypes__default['default'].node
|
|
10307
10305
|
});
|
|
10308
10306
|
|
|
10309
10307
|
_defineProperty(Panel, "defaultProps", {
|
|
@@ -10346,16 +10344,16 @@ function (_Component) {
|
|
|
10346
10344
|
}(React.Component);
|
|
10347
10345
|
|
|
10348
10346
|
_defineProperty(PanelCallbackHandler, "propTypes", {
|
|
10349
|
-
children: PropTypes__default[
|
|
10350
|
-
canRefine: PropTypes__default[
|
|
10351
|
-
setCanRefine: PropTypes__default[
|
|
10347
|
+
children: PropTypes__default['default'].node.isRequired,
|
|
10348
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10349
|
+
setCanRefine: PropTypes__default['default'].func.isRequired
|
|
10352
10350
|
});
|
|
10353
10351
|
|
|
10354
10352
|
var PanelWrapper = function PanelWrapper(_ref) {
|
|
10355
10353
|
var canRefine = _ref.canRefine,
|
|
10356
10354
|
children = _ref.children;
|
|
10357
|
-
return React__default[
|
|
10358
|
-
return React__default[
|
|
10355
|
+
return React__default['default'].createElement(PanelConsumer, null, function (setCanRefine) {
|
|
10356
|
+
return React__default['default'].createElement(PanelCallbackHandler, {
|
|
10359
10357
|
setCanRefine: setCanRefine,
|
|
10360
10358
|
canRefine: canRefine
|
|
10361
10359
|
}, children);
|
|
@@ -10363,8 +10361,8 @@ var PanelWrapper = function PanelWrapper(_ref) {
|
|
|
10363
10361
|
};
|
|
10364
10362
|
|
|
10365
10363
|
PanelWrapper.propTypes = {
|
|
10366
|
-
canRefine: PropTypes__default[
|
|
10367
|
-
children: PropTypes__default[
|
|
10364
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10365
|
+
children: PropTypes__default['default'].node.isRequired
|
|
10368
10366
|
};
|
|
10369
10367
|
|
|
10370
10368
|
var Link =
|
|
@@ -10401,7 +10399,7 @@ function (_Component) {
|
|
|
10401
10399
|
_createClass(Link, [{
|
|
10402
10400
|
key: "render",
|
|
10403
10401
|
value: function render() {
|
|
10404
|
-
return React__default[
|
|
10402
|
+
return React__default['default'].createElement("a", index._extends({}, this.props, {
|
|
10405
10403
|
onClick: this.onClick
|
|
10406
10404
|
}));
|
|
10407
10405
|
}
|
|
@@ -10411,13 +10409,13 @@ function (_Component) {
|
|
|
10411
10409
|
}(React.Component);
|
|
10412
10410
|
|
|
10413
10411
|
_defineProperty(Link, "propTypes", {
|
|
10414
|
-
onClick: PropTypes__default[
|
|
10412
|
+
onClick: PropTypes__default['default'].func.isRequired
|
|
10415
10413
|
});
|
|
10416
10414
|
|
|
10417
10415
|
var cx$o = createClassNames('Breadcrumb');
|
|
10418
|
-
var itemsPropType$2 = PropTypes__default[
|
|
10419
|
-
label: PropTypes__default[
|
|
10420
|
-
value: PropTypes__default[
|
|
10416
|
+
var itemsPropType$2 = PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
10417
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
10418
|
+
value: PropTypes__default['default'].string.isRequired
|
|
10421
10419
|
}));
|
|
10422
10420
|
|
|
10423
10421
|
var Breadcrumb =
|
|
@@ -10443,9 +10441,9 @@ function (_Component) {
|
|
|
10443
10441
|
separator = _this$props.separator,
|
|
10444
10442
|
translate = _this$props.translate,
|
|
10445
10443
|
className = _this$props.className;
|
|
10446
|
-
var rootPath = canRefine ? React__default[
|
|
10444
|
+
var rootPath = canRefine ? React__default['default'].createElement("li", {
|
|
10447
10445
|
className: cx$o('item')
|
|
10448
|
-
}, React__default[
|
|
10446
|
+
}, React__default['default'].createElement(Link, {
|
|
10449
10447
|
className: cx$o('link'),
|
|
10450
10448
|
onClick: function onClick() {
|
|
10451
10449
|
return !rootURL ? refine() : null;
|
|
@@ -10454,12 +10452,12 @@ function (_Component) {
|
|
|
10454
10452
|
}, translate('rootLabel'))) : null;
|
|
10455
10453
|
var breadcrumb = items.map(function (item, idx) {
|
|
10456
10454
|
var isLast = idx === items.length - 1;
|
|
10457
|
-
return React__default[
|
|
10455
|
+
return React__default['default'].createElement("li", {
|
|
10458
10456
|
className: cx$o('item', isLast && 'item--selected'),
|
|
10459
10457
|
key: idx
|
|
10460
|
-
}, React__default[
|
|
10458
|
+
}, React__default['default'].createElement("span", {
|
|
10461
10459
|
className: cx$o('separator')
|
|
10462
|
-
}, separator), !isLast ? React__default[
|
|
10460
|
+
}, separator), !isLast ? React__default['default'].createElement(Link, {
|
|
10463
10461
|
className: cx$o('link'),
|
|
10464
10462
|
onClick: function onClick() {
|
|
10465
10463
|
return refine(item.value);
|
|
@@ -10467,9 +10465,9 @@ function (_Component) {
|
|
|
10467
10465
|
href: createURL(item.value)
|
|
10468
10466
|
}, item.label) : item.label);
|
|
10469
10467
|
});
|
|
10470
|
-
return React__default[
|
|
10468
|
+
return React__default['default'].createElement("div", {
|
|
10471
10469
|
className: index.classnames(cx$o('', !canRefine && '-noRefinement'), className)
|
|
10472
|
-
}, React__default[
|
|
10470
|
+
}, React__default['default'].createElement("ul", {
|
|
10473
10471
|
className: cx$o('list')
|
|
10474
10472
|
}, rootPath, breadcrumb));
|
|
10475
10473
|
}
|
|
@@ -10479,14 +10477,14 @@ function (_Component) {
|
|
|
10479
10477
|
}(React.Component);
|
|
10480
10478
|
|
|
10481
10479
|
_defineProperty(Breadcrumb, "propTypes", {
|
|
10482
|
-
canRefine: PropTypes__default[
|
|
10483
|
-
createURL: PropTypes__default[
|
|
10480
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10481
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
10484
10482
|
items: itemsPropType$2,
|
|
10485
|
-
refine: PropTypes__default[
|
|
10486
|
-
rootURL: PropTypes__default[
|
|
10487
|
-
separator: PropTypes__default[
|
|
10488
|
-
translate: PropTypes__default[
|
|
10489
|
-
className: PropTypes__default[
|
|
10483
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
10484
|
+
rootURL: PropTypes__default['default'].string,
|
|
10485
|
+
separator: PropTypes__default['default'].node,
|
|
10486
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
10487
|
+
className: PropTypes__default['default'].string
|
|
10490
10488
|
});
|
|
10491
10489
|
|
|
10492
10490
|
_defineProperty(Breadcrumb, "defaultProps", {
|
|
@@ -10588,7 +10586,7 @@ var Breadcrumb$1 = translatable({
|
|
|
10588
10586
|
*/
|
|
10589
10587
|
|
|
10590
10588
|
var BreadcrumbWidget = function BreadcrumbWidget(props) {
|
|
10591
|
-
return React__default[
|
|
10589
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(Breadcrumb$1, props));
|
|
10592
10590
|
};
|
|
10593
10591
|
|
|
10594
10592
|
connectBreadcrumb(BreadcrumbWidget);
|
|
@@ -10615,9 +10613,9 @@ function (_Component) {
|
|
|
10615
10613
|
refine = _this$props.refine,
|
|
10616
10614
|
translate = _this$props.translate,
|
|
10617
10615
|
className = _this$props.className;
|
|
10618
|
-
return React__default[
|
|
10616
|
+
return React__default['default'].createElement("div", {
|
|
10619
10617
|
className: index.classnames(cx$n(''), className)
|
|
10620
|
-
}, React__default[
|
|
10618
|
+
}, React__default['default'].createElement("button", {
|
|
10621
10619
|
className: cx$n('button', !canRefine && 'button--disabled'),
|
|
10622
10620
|
onClick: function onClick() {
|
|
10623
10621
|
return refine(items);
|
|
@@ -10631,11 +10629,11 @@ function (_Component) {
|
|
|
10631
10629
|
}(React.Component);
|
|
10632
10630
|
|
|
10633
10631
|
_defineProperty(ClearRefinements$1, "propTypes", {
|
|
10634
|
-
items: PropTypes__default[
|
|
10635
|
-
canRefine: PropTypes__default[
|
|
10636
|
-
refine: PropTypes__default[
|
|
10637
|
-
translate: PropTypes__default[
|
|
10638
|
-
className: PropTypes__default[
|
|
10632
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].object).isRequired,
|
|
10633
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10634
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
10635
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
10636
|
+
className: PropTypes__default['default'].string
|
|
10639
10637
|
});
|
|
10640
10638
|
|
|
10641
10639
|
_defineProperty(ClearRefinements$1, "defaultProps", {
|
|
@@ -10681,7 +10679,7 @@ var ClearRefinements$2 = translatable({
|
|
|
10681
10679
|
*/
|
|
10682
10680
|
|
|
10683
10681
|
var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
|
|
10684
|
-
return React__default[
|
|
10682
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(ClearRefinements$2, props));
|
|
10685
10683
|
};
|
|
10686
10684
|
|
|
10687
10685
|
var ClearRefinements = connectCurrentRefinements(ClearRefinementsWidget);
|
|
@@ -10693,31 +10691,31 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10693
10691
|
refine = _ref.refine,
|
|
10694
10692
|
translate = _ref.translate,
|
|
10695
10693
|
className = _ref.className;
|
|
10696
|
-
return React__default[
|
|
10694
|
+
return React__default['default'].createElement("div", {
|
|
10697
10695
|
className: index.classnames(cx$m('', !canRefine && '-noRefinement'), className)
|
|
10698
|
-
}, React__default[
|
|
10696
|
+
}, React__default['default'].createElement("ul", {
|
|
10699
10697
|
className: cx$m('list', !canRefine && 'list--noRefinement')
|
|
10700
10698
|
}, items.map(function (item) {
|
|
10701
|
-
return React__default[
|
|
10699
|
+
return React__default['default'].createElement("li", {
|
|
10702
10700
|
key: item.label,
|
|
10703
10701
|
className: cx$m('item')
|
|
10704
|
-
}, React__default[
|
|
10702
|
+
}, React__default['default'].createElement("span", {
|
|
10705
10703
|
className: cx$m('label')
|
|
10706
10704
|
}, item.label), item.items ? item.items.map(function (nest) {
|
|
10707
|
-
return React__default[
|
|
10705
|
+
return React__default['default'].createElement("span", {
|
|
10708
10706
|
key: nest.label,
|
|
10709
10707
|
className: cx$m('category')
|
|
10710
|
-
}, React__default[
|
|
10708
|
+
}, React__default['default'].createElement("span", {
|
|
10711
10709
|
className: cx$m('categoryLabel')
|
|
10712
|
-
}, nest.label), React__default[
|
|
10710
|
+
}, nest.label), React__default['default'].createElement("button", {
|
|
10713
10711
|
className: cx$m('delete'),
|
|
10714
10712
|
onClick: function onClick() {
|
|
10715
10713
|
return refine(nest.value);
|
|
10716
10714
|
}
|
|
10717
10715
|
}, translate('clearFilter', nest)));
|
|
10718
|
-
}) : React__default[
|
|
10716
|
+
}) : React__default['default'].createElement("span", {
|
|
10719
10717
|
className: cx$m('category')
|
|
10720
|
-
}, React__default[
|
|
10718
|
+
}, React__default['default'].createElement("button", {
|
|
10721
10719
|
className: cx$m('delete'),
|
|
10722
10720
|
onClick: function onClick() {
|
|
10723
10721
|
return refine(item.value);
|
|
@@ -10725,19 +10723,19 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10725
10723
|
}, translate('clearFilter', item))));
|
|
10726
10724
|
})));
|
|
10727
10725
|
};
|
|
10728
|
-
var itemPropTypes = PropTypes__default[
|
|
10729
|
-
label: PropTypes__default[
|
|
10730
|
-
value: PropTypes__default[
|
|
10726
|
+
var itemPropTypes = PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
10727
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
10728
|
+
value: PropTypes__default['default'].func.isRequired,
|
|
10731
10729
|
items: function items() {
|
|
10732
10730
|
return itemPropTypes.apply(void 0, arguments);
|
|
10733
10731
|
}
|
|
10734
10732
|
}));
|
|
10735
10733
|
CurrentRefinements.propTypes = {
|
|
10736
10734
|
items: itemPropTypes.isRequired,
|
|
10737
|
-
canRefine: PropTypes__default[
|
|
10738
|
-
refine: PropTypes__default[
|
|
10739
|
-
translate: PropTypes__default[
|
|
10740
|
-
className: PropTypes__default[
|
|
10735
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10736
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
10737
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
10738
|
+
className: PropTypes__default['default'].string
|
|
10741
10739
|
};
|
|
10742
10740
|
CurrentRefinements.defaultProps = {
|
|
10743
10741
|
className: ''
|
|
@@ -10789,33 +10787,33 @@ var CurrentRefinements$1 = translatable({
|
|
|
10789
10787
|
*/
|
|
10790
10788
|
|
|
10791
10789
|
var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
|
|
10792
|
-
return React__default[
|
|
10790
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(CurrentRefinements$1, props));
|
|
10793
10791
|
};
|
|
10794
10792
|
|
|
10795
10793
|
connectCurrentRefinements(CurrentRefinementsWidget);
|
|
10796
10794
|
|
|
10797
10795
|
var cx$l = createClassNames('SearchBox');
|
|
10798
|
-
var defaultLoadingIndicator = React__default[
|
|
10796
|
+
var defaultLoadingIndicator = React__default['default'].createElement("svg", {
|
|
10799
10797
|
width: "18",
|
|
10800
10798
|
height: "18",
|
|
10801
10799
|
viewBox: "0 0 38 38",
|
|
10802
10800
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10803
10801
|
stroke: "#444",
|
|
10804
10802
|
className: cx$l('loadingIcon')
|
|
10805
|
-
}, React__default[
|
|
10803
|
+
}, React__default['default'].createElement("g", {
|
|
10806
10804
|
fill: "none",
|
|
10807
10805
|
fillRule: "evenodd"
|
|
10808
|
-
}, React__default[
|
|
10806
|
+
}, React__default['default'].createElement("g", {
|
|
10809
10807
|
transform: "translate(1 1)",
|
|
10810
10808
|
strokeWidth: "2"
|
|
10811
|
-
}, React__default[
|
|
10809
|
+
}, React__default['default'].createElement("circle", {
|
|
10812
10810
|
strokeOpacity: ".5",
|
|
10813
10811
|
cx: "18",
|
|
10814
10812
|
cy: "18",
|
|
10815
10813
|
r: "18"
|
|
10816
|
-
}), React__default[
|
|
10814
|
+
}), React__default['default'].createElement("path", {
|
|
10817
10815
|
d: "M36 18c0-9.94-8.06-18-18-18"
|
|
10818
|
-
}, React__default[
|
|
10816
|
+
}, React__default['default'].createElement("animateTransform", {
|
|
10819
10817
|
attributeName: "transform",
|
|
10820
10818
|
type: "rotate",
|
|
10821
10819
|
from: "0 18 18",
|
|
@@ -10823,22 +10821,22 @@ var defaultLoadingIndicator = React__default["default"].createElement("svg", {
|
|
|
10823
10821
|
dur: "1s",
|
|
10824
10822
|
repeatCount: "indefinite"
|
|
10825
10823
|
})))));
|
|
10826
|
-
var defaultReset = React__default[
|
|
10824
|
+
var defaultReset = React__default['default'].createElement("svg", {
|
|
10827
10825
|
className: cx$l('resetIcon'),
|
|
10828
10826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10829
10827
|
viewBox: "0 0 20 20",
|
|
10830
10828
|
width: "10",
|
|
10831
10829
|
height: "10"
|
|
10832
|
-
}, React__default[
|
|
10830
|
+
}, React__default['default'].createElement("path", {
|
|
10833
10831
|
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"
|
|
10834
10832
|
}));
|
|
10835
|
-
var defaultSubmit = React__default[
|
|
10833
|
+
var defaultSubmit = React__default['default'].createElement("svg", {
|
|
10836
10834
|
className: cx$l('submitIcon'),
|
|
10837
10835
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10838
10836
|
width: "10",
|
|
10839
10837
|
height: "10",
|
|
10840
10838
|
viewBox: "0 0 40 40"
|
|
10841
|
-
}, React__default[
|
|
10839
|
+
}, React__default['default'].createElement("path", {
|
|
10842
10840
|
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"
|
|
10843
10841
|
}));
|
|
10844
10842
|
|
|
@@ -11005,16 +11003,16 @@ function (_Component) {
|
|
|
11005
11003
|
var isSearchStalled = this.props.showLoadingIndicator && this.props.isSearchStalled;
|
|
11006
11004
|
/* eslint-disable max-len */
|
|
11007
11005
|
|
|
11008
|
-
return React__default[
|
|
11006
|
+
return React__default['default'].createElement("div", {
|
|
11009
11007
|
className: index.classnames(cx$l(''), className)
|
|
11010
|
-
}, React__default[
|
|
11008
|
+
}, React__default['default'].createElement("form", {
|
|
11011
11009
|
noValidate: true,
|
|
11012
11010
|
onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
|
|
11013
11011
|
onReset: this.onReset,
|
|
11014
11012
|
className: cx$l('form', isSearchStalled && 'form--stalledSearch'),
|
|
11015
11013
|
action: "",
|
|
11016
11014
|
role: "search"
|
|
11017
|
-
}, React__default[
|
|
11015
|
+
}, React__default['default'].createElement("input", index._extends({
|
|
11018
11016
|
ref: this.onInputMount,
|
|
11019
11017
|
id: inputId,
|
|
11020
11018
|
type: "search",
|
|
@@ -11030,16 +11028,16 @@ function (_Component) {
|
|
|
11030
11028
|
onChange: this.onChange
|
|
11031
11029
|
}, searchInputEvents, {
|
|
11032
11030
|
className: cx$l('input')
|
|
11033
|
-
})), React__default[
|
|
11031
|
+
})), React__default['default'].createElement("button", {
|
|
11034
11032
|
type: "submit",
|
|
11035
11033
|
title: translate('submitTitle'),
|
|
11036
11034
|
className: cx$l('submit')
|
|
11037
|
-
}, submit), React__default[
|
|
11035
|
+
}, submit), React__default['default'].createElement("button", {
|
|
11038
11036
|
type: "reset",
|
|
11039
11037
|
title: translate('resetTitle'),
|
|
11040
11038
|
className: cx$l('reset'),
|
|
11041
11039
|
hidden: !query || isSearchStalled
|
|
11042
|
-
}, reset), this.props.showLoadingIndicator && React__default[
|
|
11040
|
+
}, reset), this.props.showLoadingIndicator && React__default['default'].createElement("span", {
|
|
11043
11041
|
hidden: !isSearchStalled,
|
|
11044
11042
|
className: cx$l('loadingIndicator')
|
|
11045
11043
|
}, loadingIndicator)));
|
|
@@ -11051,25 +11049,25 @@ function (_Component) {
|
|
|
11051
11049
|
}(React.Component);
|
|
11052
11050
|
|
|
11053
11051
|
_defineProperty(SearchBox$1, "propTypes", {
|
|
11054
|
-
currentRefinement: PropTypes__default[
|
|
11055
|
-
className: PropTypes__default[
|
|
11056
|
-
refine: PropTypes__default[
|
|
11057
|
-
translate: PropTypes__default[
|
|
11058
|
-
loadingIndicator: PropTypes__default[
|
|
11059
|
-
reset: PropTypes__default[
|
|
11060
|
-
submit: PropTypes__default[
|
|
11061
|
-
focusShortcuts: PropTypes__default[
|
|
11062
|
-
autoFocus: PropTypes__default[
|
|
11063
|
-
searchAsYouType: PropTypes__default[
|
|
11064
|
-
onSubmit: PropTypes__default[
|
|
11065
|
-
onReset: PropTypes__default[
|
|
11066
|
-
onChange: PropTypes__default[
|
|
11067
|
-
isSearchStalled: PropTypes__default[
|
|
11068
|
-
showLoadingIndicator: PropTypes__default[
|
|
11069
|
-
inputRef: PropTypes__default[
|
|
11070
|
-
current: PropTypes__default[
|
|
11052
|
+
currentRefinement: PropTypes__default['default'].string,
|
|
11053
|
+
className: PropTypes__default['default'].string,
|
|
11054
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
11055
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
11056
|
+
loadingIndicator: PropTypes__default['default'].node,
|
|
11057
|
+
reset: PropTypes__default['default'].node,
|
|
11058
|
+
submit: PropTypes__default['default'].node,
|
|
11059
|
+
focusShortcuts: PropTypes__default['default'].arrayOf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number])),
|
|
11060
|
+
autoFocus: PropTypes__default['default'].bool,
|
|
11061
|
+
searchAsYouType: PropTypes__default['default'].bool,
|
|
11062
|
+
onSubmit: PropTypes__default['default'].func,
|
|
11063
|
+
onReset: PropTypes__default['default'].func,
|
|
11064
|
+
onChange: PropTypes__default['default'].func,
|
|
11065
|
+
isSearchStalled: PropTypes__default['default'].bool,
|
|
11066
|
+
showLoadingIndicator: PropTypes__default['default'].bool,
|
|
11067
|
+
inputRef: PropTypes__default['default'].oneOfType([PropTypes__default['default'].func, PropTypes__default['default'].exact({
|
|
11068
|
+
current: PropTypes__default['default'].object
|
|
11071
11069
|
})]),
|
|
11072
|
-
inputId: PropTypes__default[
|
|
11070
|
+
inputId: PropTypes__default['default'].string
|
|
11073
11071
|
});
|
|
11074
11072
|
|
|
11075
11073
|
_defineProperty(SearchBox$1, "defaultProps", {
|
|
@@ -11091,9 +11089,9 @@ var SearchBox$2 = translatable({
|
|
|
11091
11089
|
placeholder: 'Search here…'
|
|
11092
11090
|
})(SearchBox$1);
|
|
11093
11091
|
|
|
11094
|
-
var itemsPropType$1 = PropTypes__default[
|
|
11095
|
-
value: PropTypes__default[
|
|
11096
|
-
label: PropTypes__default[
|
|
11092
|
+
var itemsPropType$1 = PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11093
|
+
value: PropTypes__default['default'].any,
|
|
11094
|
+
label: PropTypes__default['default'].node.isRequired,
|
|
11097
11095
|
items: function items() {
|
|
11098
11096
|
return itemsPropType$1.apply(void 0, arguments);
|
|
11099
11097
|
}
|
|
@@ -11135,10 +11133,10 @@ function (_Component) {
|
|
|
11135
11133
|
|
|
11136
11134
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11137
11135
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
11138
|
-
return React__default[
|
|
11136
|
+
return React__default['default'].createElement("li", {
|
|
11139
11137
|
key: item.key || item.label,
|
|
11140
11138
|
className: _this.props.cx('item', item.isRefined && 'item--selected', item.noRefinement && 'item--noRefinement', itemHasChildren && 'item--parent')
|
|
11141
|
-
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default[
|
|
11139
|
+
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default['default'].createElement("ul", {
|
|
11142
11140
|
className: _this.props.cx('list', 'list--child')
|
|
11143
11141
|
}, item.items.slice(0, _this.getLimit()).map(function (child) {
|
|
11144
11142
|
return _this.renderItem(child, item);
|
|
@@ -11166,7 +11164,7 @@ function (_Component) {
|
|
|
11166
11164
|
return null;
|
|
11167
11165
|
}
|
|
11168
11166
|
|
|
11169
|
-
return React__default[
|
|
11167
|
+
return React__default['default'].createElement("button", {
|
|
11170
11168
|
disabled: disabled,
|
|
11171
11169
|
className: cx('showMore', disabled && 'showMore--disabled'),
|
|
11172
11170
|
onClick: this.onShowMoreClick
|
|
@@ -11184,12 +11182,12 @@ function (_Component) {
|
|
|
11184
11182
|
translate = _this$props3.translate,
|
|
11185
11183
|
items = _this$props3.items,
|
|
11186
11184
|
selectItem = _this$props3.selectItem;
|
|
11187
|
-
var noResults = items.length === 0 && this.state.query !== '' ? React__default[
|
|
11185
|
+
var noResults = items.length === 0 && this.state.query !== '' ? React__default['default'].createElement("div", {
|
|
11188
11186
|
className: cx('noResults')
|
|
11189
11187
|
}, translate('noResults')) : null;
|
|
11190
|
-
return React__default[
|
|
11188
|
+
return React__default['default'].createElement("div", {
|
|
11191
11189
|
className: cx('searchBox')
|
|
11192
|
-
}, React__default[
|
|
11190
|
+
}, React__default['default'].createElement(SearchBox$2, {
|
|
11193
11191
|
currentRefinement: this.state.query,
|
|
11194
11192
|
refine: function refine(value) {
|
|
11195
11193
|
_this2.setState({
|
|
@@ -11225,7 +11223,7 @@ function (_Component) {
|
|
|
11225
11223
|
var rootClassName = index.classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
11226
11224
|
|
|
11227
11225
|
if (items.length === 0) {
|
|
11228
|
-
return React__default[
|
|
11226
|
+
return React__default['default'].createElement("div", {
|
|
11229
11227
|
className: rootClassName
|
|
11230
11228
|
}, searchBox);
|
|
11231
11229
|
} // Always limit the number of items we show on screen, since the actual
|
|
@@ -11233,9 +11231,9 @@ function (_Component) {
|
|
|
11233
11231
|
// option.
|
|
11234
11232
|
|
|
11235
11233
|
|
|
11236
|
-
return React__default[
|
|
11234
|
+
return React__default['default'].createElement("div", {
|
|
11237
11235
|
className: rootClassName
|
|
11238
|
-
}, searchBox, React__default[
|
|
11236
|
+
}, searchBox, React__default['default'].createElement("ul", {
|
|
11239
11237
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
11240
11238
|
}, items.slice(0, this.getLimit()).map(function (item) {
|
|
11241
11239
|
return _this3.renderItem(item, _this3.resetQuery);
|
|
@@ -11247,21 +11245,21 @@ function (_Component) {
|
|
|
11247
11245
|
}(React.Component);
|
|
11248
11246
|
|
|
11249
11247
|
_defineProperty(List, "propTypes", {
|
|
11250
|
-
cx: PropTypes__default[
|
|
11248
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
11251
11249
|
// Only required with showMore.
|
|
11252
|
-
translate: PropTypes__default[
|
|
11250
|
+
translate: PropTypes__default['default'].func,
|
|
11253
11251
|
items: itemsPropType$1,
|
|
11254
|
-
renderItem: PropTypes__default[
|
|
11255
|
-
selectItem: PropTypes__default[
|
|
11256
|
-
className: PropTypes__default[
|
|
11257
|
-
showMore: PropTypes__default[
|
|
11258
|
-
limit: PropTypes__default[
|
|
11259
|
-
showMoreLimit: PropTypes__default[
|
|
11260
|
-
show: PropTypes__default[
|
|
11261
|
-
searchForItems: PropTypes__default[
|
|
11262
|
-
searchable: PropTypes__default[
|
|
11263
|
-
isFromSearch: PropTypes__default[
|
|
11264
|
-
canRefine: PropTypes__default[
|
|
11252
|
+
renderItem: PropTypes__default['default'].func.isRequired,
|
|
11253
|
+
selectItem: PropTypes__default['default'].func,
|
|
11254
|
+
className: PropTypes__default['default'].string,
|
|
11255
|
+
showMore: PropTypes__default['default'].bool,
|
|
11256
|
+
limit: PropTypes__default['default'].number,
|
|
11257
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
11258
|
+
show: PropTypes__default['default'].func,
|
|
11259
|
+
searchForItems: PropTypes__default['default'].func,
|
|
11260
|
+
searchable: PropTypes__default['default'].bool,
|
|
11261
|
+
isFromSearch: PropTypes__default['default'].bool,
|
|
11262
|
+
canRefine: PropTypes__default['default'].bool
|
|
11265
11263
|
});
|
|
11266
11264
|
|
|
11267
11265
|
_defineProperty(List, "defaultProps", {
|
|
@@ -11270,10 +11268,10 @@ _defineProperty(List, "defaultProps", {
|
|
|
11270
11268
|
});
|
|
11271
11269
|
|
|
11272
11270
|
var cx$k = createClassNames('HierarchicalMenu');
|
|
11273
|
-
var itemsPropType = PropTypes__default[
|
|
11274
|
-
label: PropTypes__default[
|
|
11275
|
-
value: PropTypes__default[
|
|
11276
|
-
count: PropTypes__default[
|
|
11271
|
+
var itemsPropType = PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11272
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
11273
|
+
value: PropTypes__default['default'].string,
|
|
11274
|
+
count: PropTypes__default['default'].number.isRequired,
|
|
11277
11275
|
items: function items() {
|
|
11278
11276
|
return itemsPropType.apply(void 0, arguments);
|
|
11279
11277
|
}
|
|
@@ -11301,15 +11299,15 @@ function (_Component) {
|
|
|
11301
11299
|
var _this$props = _this.props,
|
|
11302
11300
|
createURL = _this$props.createURL,
|
|
11303
11301
|
refine = _this$props.refine;
|
|
11304
|
-
return React__default[
|
|
11302
|
+
return React__default['default'].createElement(Link, {
|
|
11305
11303
|
className: cx$k('link'),
|
|
11306
11304
|
onClick: function onClick() {
|
|
11307
11305
|
return refine(item.value);
|
|
11308
11306
|
},
|
|
11309
11307
|
href: createURL(item.value)
|
|
11310
|
-
}, React__default[
|
|
11308
|
+
}, React__default['default'].createElement("span", {
|
|
11311
11309
|
className: cx$k('label')
|
|
11312
|
-
}, item.label), ' ', React__default[
|
|
11310
|
+
}, item.label), ' ', React__default['default'].createElement("span", {
|
|
11313
11311
|
className: cx$k('count')
|
|
11314
11312
|
}, item.count));
|
|
11315
11313
|
});
|
|
@@ -11328,7 +11326,7 @@ function (_Component) {
|
|
|
11328
11326
|
showMoreLimit = _this$props2.showMoreLimit,
|
|
11329
11327
|
canRefine = _this$props2.canRefine,
|
|
11330
11328
|
className = _this$props2.className;
|
|
11331
|
-
return React__default[
|
|
11329
|
+
return React__default['default'].createElement(List, {
|
|
11332
11330
|
renderItem: this.renderItem,
|
|
11333
11331
|
cx: cx$k,
|
|
11334
11332
|
translate: translate,
|
|
@@ -11346,16 +11344,16 @@ function (_Component) {
|
|
|
11346
11344
|
}(React.Component);
|
|
11347
11345
|
|
|
11348
11346
|
_defineProperty(HierarchicalMenu, "propTypes", {
|
|
11349
|
-
translate: PropTypes__default[
|
|
11350
|
-
refine: PropTypes__default[
|
|
11351
|
-
createURL: PropTypes__default[
|
|
11352
|
-
canRefine: PropTypes__default[
|
|
11347
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
11348
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
11349
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
11350
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
11353
11351
|
items: itemsPropType,
|
|
11354
|
-
showMore: PropTypes__default[
|
|
11355
|
-
className: PropTypes__default[
|
|
11356
|
-
limit: PropTypes__default[
|
|
11357
|
-
showMoreLimit: PropTypes__default[
|
|
11358
|
-
transformItems: PropTypes__default[
|
|
11352
|
+
showMore: PropTypes__default['default'].bool,
|
|
11353
|
+
className: PropTypes__default['default'].string,
|
|
11354
|
+
limit: PropTypes__default['default'].number,
|
|
11355
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
11356
|
+
transformItems: PropTypes__default['default'].func
|
|
11359
11357
|
});
|
|
11360
11358
|
|
|
11361
11359
|
_defineProperty(HierarchicalMenu, "defaultProps", {
|
|
@@ -11459,7 +11457,7 @@ var HierarchicalMenu$1 = translatable({
|
|
|
11459
11457
|
*/
|
|
11460
11458
|
|
|
11461
11459
|
var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
|
|
11462
|
-
return React__default[
|
|
11460
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(HierarchicalMenu$1, props));
|
|
11463
11461
|
};
|
|
11464
11462
|
|
|
11465
11463
|
connectHierarchicalMenu(HierarchicalMenuWidget);
|
|
@@ -11472,16 +11470,16 @@ var Highlight$2 = function Highlight(_ref) {
|
|
|
11472
11470
|
nonHighlightedTagName = _ref.nonHighlightedTagName;
|
|
11473
11471
|
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
11474
11472
|
var className = isHighlighted ? 'highlighted' : 'nonHighlighted';
|
|
11475
|
-
return React__default[
|
|
11473
|
+
return React__default['default'].createElement(TagName, {
|
|
11476
11474
|
className: cx(className)
|
|
11477
11475
|
}, value);
|
|
11478
11476
|
};
|
|
11479
11477
|
Highlight$2.propTypes = {
|
|
11480
|
-
cx: PropTypes__default[
|
|
11481
|
-
value: PropTypes__default[
|
|
11482
|
-
isHighlighted: PropTypes__default[
|
|
11483
|
-
highlightedTagName: PropTypes__default[
|
|
11484
|
-
nonHighlightedTagName: PropTypes__default[
|
|
11478
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
11479
|
+
value: PropTypes__default['default'].string.isRequired,
|
|
11480
|
+
isHighlighted: PropTypes__default['default'].bool.isRequired,
|
|
11481
|
+
highlightedTagName: PropTypes__default['default'].string.isRequired,
|
|
11482
|
+
nonHighlightedTagName: PropTypes__default['default'].string.isRequired
|
|
11485
11483
|
};
|
|
11486
11484
|
|
|
11487
11485
|
var Highlighter = function Highlighter(_ref2) {
|
|
@@ -11499,15 +11497,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11499
11497
|
attribute: attribute,
|
|
11500
11498
|
highlightProperty: highlightProperty
|
|
11501
11499
|
});
|
|
11502
|
-
return React__default[
|
|
11500
|
+
return React__default['default'].createElement("span", {
|
|
11503
11501
|
className: index.classnames(cx(''), className)
|
|
11504
11502
|
}, parsedHighlightedValue.map(function (item, i) {
|
|
11505
11503
|
if (Array.isArray(item)) {
|
|
11506
11504
|
var isLast = i === parsedHighlightedValue.length - 1;
|
|
11507
|
-
return React__default[
|
|
11505
|
+
return React__default['default'].createElement("span", {
|
|
11508
11506
|
key: i
|
|
11509
11507
|
}, item.map(function (element, index) {
|
|
11510
|
-
return React__default[
|
|
11508
|
+
return React__default['default'].createElement(Highlight$2, {
|
|
11511
11509
|
cx: cx,
|
|
11512
11510
|
key: index,
|
|
11513
11511
|
value: element.value,
|
|
@@ -11515,12 +11513,12 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11515
11513
|
nonHighlightedTagName: nonHighlightedTagName,
|
|
11516
11514
|
isHighlighted: element.isHighlighted
|
|
11517
11515
|
});
|
|
11518
|
-
}), !isLast && React__default[
|
|
11516
|
+
}), !isLast && React__default['default'].createElement("span", {
|
|
11519
11517
|
className: cx('separator')
|
|
11520
11518
|
}, separator));
|
|
11521
11519
|
}
|
|
11522
11520
|
|
|
11523
|
-
return React__default[
|
|
11521
|
+
return React__default['default'].createElement(Highlight$2, {
|
|
11524
11522
|
cx: cx,
|
|
11525
11523
|
key: i,
|
|
11526
11524
|
value: item.value,
|
|
@@ -11532,15 +11530,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11532
11530
|
};
|
|
11533
11531
|
|
|
11534
11532
|
Highlighter.propTypes = {
|
|
11535
|
-
cx: PropTypes__default[
|
|
11536
|
-
hit: PropTypes__default[
|
|
11537
|
-
attribute: PropTypes__default[
|
|
11538
|
-
highlight: PropTypes__default[
|
|
11539
|
-
highlightProperty: PropTypes__default[
|
|
11540
|
-
tagName: PropTypes__default[
|
|
11541
|
-
nonHighlightedTagName: PropTypes__default[
|
|
11542
|
-
className: PropTypes__default[
|
|
11543
|
-
separator: PropTypes__default[
|
|
11533
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
11534
|
+
hit: PropTypes__default['default'].object.isRequired,
|
|
11535
|
+
attribute: PropTypes__default['default'].oneOfType([PropTypes__default['default'].arrayOf(PropTypes__default['default'].string), PropTypes__default['default'].string]).isRequired,
|
|
11536
|
+
highlight: PropTypes__default['default'].func.isRequired,
|
|
11537
|
+
highlightProperty: PropTypes__default['default'].string.isRequired,
|
|
11538
|
+
tagName: PropTypes__default['default'].string,
|
|
11539
|
+
nonHighlightedTagName: PropTypes__default['default'].string,
|
|
11540
|
+
className: PropTypes__default['default'].string,
|
|
11541
|
+
separator: PropTypes__default['default'].node
|
|
11544
11542
|
};
|
|
11545
11543
|
Highlighter.defaultProps = {
|
|
11546
11544
|
tagName: 'em',
|
|
@@ -11552,7 +11550,7 @@ Highlighter.defaultProps = {
|
|
|
11552
11550
|
var cx$j = createClassNames('Highlight');
|
|
11553
11551
|
|
|
11554
11552
|
var Highlight$1 = function Highlight(props) {
|
|
11555
|
-
return React__default[
|
|
11553
|
+
return React__default['default'].createElement(Highlighter, index._extends({}, props, {
|
|
11556
11554
|
highlightProperty: "_highlightResult",
|
|
11557
11555
|
cx: cx$j
|
|
11558
11556
|
}));
|
|
@@ -11604,7 +11602,7 @@ var Highlight = connectHighlight(Highlight$1);
|
|
|
11604
11602
|
var cx$i = createClassNames('Hits');
|
|
11605
11603
|
|
|
11606
11604
|
var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
11607
|
-
return React__default[
|
|
11605
|
+
return React__default['default'].createElement("div", {
|
|
11608
11606
|
style: {
|
|
11609
11607
|
borderBottom: '1px solid #bbb',
|
|
11610
11608
|
paddingBottom: '5px',
|
|
@@ -11620,27 +11618,27 @@ var Hits$1 = function Hits(_ref) {
|
|
|
11620
11618
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
11621
11619
|
_ref$hitComponent = _ref.hitComponent,
|
|
11622
11620
|
HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
|
|
11623
|
-
return React__default[
|
|
11621
|
+
return React__default['default'].createElement("div", {
|
|
11624
11622
|
className: index.classnames(cx$i(''), className)
|
|
11625
|
-
}, React__default[
|
|
11623
|
+
}, React__default['default'].createElement("ul", {
|
|
11626
11624
|
className: cx$i('list')
|
|
11627
11625
|
}, hits.map(function (hit) {
|
|
11628
|
-
return React__default[
|
|
11626
|
+
return React__default['default'].createElement("li", {
|
|
11629
11627
|
className: cx$i('item'),
|
|
11630
11628
|
key: hit.objectID
|
|
11631
|
-
}, React__default[
|
|
11629
|
+
}, React__default['default'].createElement(HitComponent, {
|
|
11632
11630
|
hit: hit
|
|
11633
11631
|
}));
|
|
11634
11632
|
})));
|
|
11635
11633
|
};
|
|
11636
11634
|
|
|
11637
|
-
var HitPropTypes = PropTypes__default[
|
|
11638
|
-
objectID: PropTypes__default[
|
|
11635
|
+
var HitPropTypes = PropTypes__default['default'].shape({
|
|
11636
|
+
objectID: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired
|
|
11639
11637
|
});
|
|
11640
11638
|
Hits$1.propTypes = {
|
|
11641
|
-
hits: PropTypes__default[
|
|
11642
|
-
className: PropTypes__default[
|
|
11643
|
-
hitComponent: PropTypes__default[
|
|
11639
|
+
hits: PropTypes__default['default'].arrayOf(HitPropTypes.isRequired).isRequired,
|
|
11640
|
+
className: PropTypes__default['default'].string,
|
|
11641
|
+
hitComponent: PropTypes__default['default'].func
|
|
11644
11642
|
};
|
|
11645
11643
|
|
|
11646
11644
|
/**
|
|
@@ -11711,13 +11709,13 @@ function (_Component) {
|
|
|
11711
11709
|
id = _this$props.id,
|
|
11712
11710
|
items = _this$props.items,
|
|
11713
11711
|
selectedItem = _this$props.selectedItem;
|
|
11714
|
-
return React__default[
|
|
11712
|
+
return React__default['default'].createElement("select", {
|
|
11715
11713
|
id: id,
|
|
11716
11714
|
className: cx('select'),
|
|
11717
11715
|
value: selectedItem,
|
|
11718
11716
|
onChange: this.onChange
|
|
11719
11717
|
}, items.map(function (item) {
|
|
11720
|
-
return React__default[
|
|
11718
|
+
return React__default['default'].createElement("option", {
|
|
11721
11719
|
className: cx('option'),
|
|
11722
11720
|
key: item.key === undefined ? item.value : item.key,
|
|
11723
11721
|
disabled: item.disabled,
|
|
@@ -11731,16 +11729,16 @@ function (_Component) {
|
|
|
11731
11729
|
}(React.Component);
|
|
11732
11730
|
|
|
11733
11731
|
_defineProperty(Select, "propTypes", {
|
|
11734
|
-
cx: PropTypes__default[
|
|
11735
|
-
id: PropTypes__default[
|
|
11736
|
-
onSelect: PropTypes__default[
|
|
11737
|
-
items: PropTypes__default[
|
|
11738
|
-
value: PropTypes__default[
|
|
11739
|
-
key: PropTypes__default[
|
|
11740
|
-
label: PropTypes__default[
|
|
11741
|
-
disabled: PropTypes__default[
|
|
11732
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
11733
|
+
id: PropTypes__default['default'].string,
|
|
11734
|
+
onSelect: PropTypes__default['default'].func.isRequired,
|
|
11735
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11736
|
+
value: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired,
|
|
11737
|
+
key: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]),
|
|
11738
|
+
label: PropTypes__default['default'].string,
|
|
11739
|
+
disabled: PropTypes__default['default'].bool
|
|
11742
11740
|
})).isRequired,
|
|
11743
|
-
selectedItem: PropTypes__default[
|
|
11741
|
+
selectedItem: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired
|
|
11744
11742
|
});
|
|
11745
11743
|
|
|
11746
11744
|
var cx$h = createClassNames('HitsPerPage');
|
|
@@ -11765,9 +11763,9 @@ function (_Component) {
|
|
|
11765
11763
|
currentRefinement = _this$props.currentRefinement,
|
|
11766
11764
|
refine = _this$props.refine,
|
|
11767
11765
|
className = _this$props.className;
|
|
11768
|
-
return React__default[
|
|
11766
|
+
return React__default['default'].createElement("div", {
|
|
11769
11767
|
className: index.classnames(cx$h(''), className)
|
|
11770
|
-
}, React__default[
|
|
11768
|
+
}, React__default['default'].createElement(Select, {
|
|
11771
11769
|
id: id,
|
|
11772
11770
|
onSelect: refine,
|
|
11773
11771
|
selectedItem: currentRefinement,
|
|
@@ -11781,14 +11779,14 @@ function (_Component) {
|
|
|
11781
11779
|
}(React.Component);
|
|
11782
11780
|
|
|
11783
11781
|
_defineProperty(HitsPerPage, "propTypes", {
|
|
11784
|
-
id: PropTypes__default[
|
|
11785
|
-
items: PropTypes__default[
|
|
11786
|
-
value: PropTypes__default[
|
|
11787
|
-
label: PropTypes__default[
|
|
11782
|
+
id: PropTypes__default['default'].string,
|
|
11783
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11784
|
+
value: PropTypes__default['default'].number.isRequired,
|
|
11785
|
+
label: PropTypes__default['default'].string
|
|
11788
11786
|
})).isRequired,
|
|
11789
|
-
currentRefinement: PropTypes__default[
|
|
11790
|
-
refine: PropTypes__default[
|
|
11791
|
-
className: PropTypes__default[
|
|
11787
|
+
currentRefinement: PropTypes__default['default'].number.isRequired,
|
|
11788
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
11789
|
+
className: PropTypes__default['default'].string
|
|
11792
11790
|
});
|
|
11793
11791
|
|
|
11794
11792
|
_defineProperty(HitsPerPage, "defaultProps", {
|
|
@@ -11866,24 +11864,24 @@ function (_Component) {
|
|
|
11866
11864
|
refineNext = _this$props.refineNext,
|
|
11867
11865
|
translate = _this$props.translate,
|
|
11868
11866
|
className = _this$props.className;
|
|
11869
|
-
return React__default[
|
|
11867
|
+
return React__default['default'].createElement("div", {
|
|
11870
11868
|
className: index.classnames(cx$g(''), className)
|
|
11871
|
-
}, showPrevious && React__default[
|
|
11869
|
+
}, showPrevious && React__default['default'].createElement("button", {
|
|
11872
11870
|
className: cx$g('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
|
|
11873
11871
|
onClick: function onClick() {
|
|
11874
11872
|
return refinePrevious();
|
|
11875
11873
|
},
|
|
11876
11874
|
disabled: !hasPrevious
|
|
11877
|
-
}, translate('loadPrevious')), React__default[
|
|
11875
|
+
}, translate('loadPrevious')), React__default['default'].createElement("ul", {
|
|
11878
11876
|
className: cx$g('list')
|
|
11879
11877
|
}, hits.map(function (hit) {
|
|
11880
|
-
return React__default[
|
|
11878
|
+
return React__default['default'].createElement("li", {
|
|
11881
11879
|
key: hit.objectID,
|
|
11882
11880
|
className: cx$g('item')
|
|
11883
|
-
}, React__default[
|
|
11881
|
+
}, React__default['default'].createElement(HitComponent, {
|
|
11884
11882
|
hit: hit
|
|
11885
11883
|
}));
|
|
11886
|
-
})), React__default[
|
|
11884
|
+
})), React__default['default'].createElement("button", {
|
|
11887
11885
|
className: cx$g('loadMore', !hasMore && 'loadMore--disabled'),
|
|
11888
11886
|
onClick: function onClick() {
|
|
11889
11887
|
return refineNext();
|
|
@@ -11897,21 +11895,21 @@ function (_Component) {
|
|
|
11897
11895
|
}(React.Component);
|
|
11898
11896
|
|
|
11899
11897
|
InfiniteHits.propTypes = {
|
|
11900
|
-
hits: PropTypes__default[
|
|
11901
|
-
showPrevious: PropTypes__default[
|
|
11902
|
-
hasPrevious: PropTypes__default[
|
|
11903
|
-
hasMore: PropTypes__default[
|
|
11904
|
-
refinePrevious: PropTypes__default[
|
|
11905
|
-
refineNext: PropTypes__default[
|
|
11906
|
-
translate: PropTypes__default[
|
|
11907
|
-
className: PropTypes__default[
|
|
11908
|
-
hitComponent: PropTypes__default[
|
|
11898
|
+
hits: PropTypes__default['default'].arrayOf(PropTypes__default['default'].object).isRequired,
|
|
11899
|
+
showPrevious: PropTypes__default['default'].bool.isRequired,
|
|
11900
|
+
hasPrevious: PropTypes__default['default'].bool.isRequired,
|
|
11901
|
+
hasMore: PropTypes__default['default'].bool.isRequired,
|
|
11902
|
+
refinePrevious: PropTypes__default['default'].func.isRequired,
|
|
11903
|
+
refineNext: PropTypes__default['default'].func.isRequired,
|
|
11904
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
11905
|
+
className: PropTypes__default['default'].string,
|
|
11906
|
+
hitComponent: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].func])
|
|
11909
11907
|
};
|
|
11910
11908
|
InfiniteHits.defaultProps = {
|
|
11911
11909
|
className: '',
|
|
11912
11910
|
showPrevious: false,
|
|
11913
11911
|
hitComponent: function hitComponent(hit) {
|
|
11914
|
-
return React__default[
|
|
11912
|
+
return React__default['default'].createElement("div", {
|
|
11915
11913
|
style: {
|
|
11916
11914
|
borderBottom: '1px solid #bbb',
|
|
11917
11915
|
paddingBottom: '5px',
|
|
@@ -11987,19 +11985,19 @@ function (_Component) {
|
|
|
11987
11985
|
|
|
11988
11986
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11989
11987
|
var createURL = _this.props.createURL;
|
|
11990
|
-
var label = _this.props.isFromSearch ? React__default[
|
|
11988
|
+
var label = _this.props.isFromSearch ? React__default['default'].createElement(Highlight, {
|
|
11991
11989
|
attribute: "label",
|
|
11992
11990
|
hit: item
|
|
11993
11991
|
}) : item.label;
|
|
11994
|
-
return React__default[
|
|
11992
|
+
return React__default['default'].createElement(Link, {
|
|
11995
11993
|
className: cx$f('link'),
|
|
11996
11994
|
onClick: function onClick() {
|
|
11997
11995
|
return _this.selectItem(item, resetQuery);
|
|
11998
11996
|
},
|
|
11999
11997
|
href: createURL(item.value)
|
|
12000
|
-
}, React__default[
|
|
11998
|
+
}, React__default['default'].createElement("span", {
|
|
12001
11999
|
className: cx$f('label')
|
|
12002
|
-
}, label), ' ', React__default[
|
|
12000
|
+
}, label), ' ', React__default['default'].createElement("span", {
|
|
12003
12001
|
className: cx$f('count')
|
|
12004
12002
|
}, item.count));
|
|
12005
12003
|
});
|
|
@@ -12027,7 +12025,7 @@ function (_Component) {
|
|
|
12027
12025
|
searchable = _this$props.searchable,
|
|
12028
12026
|
canRefine = _this$props.canRefine,
|
|
12029
12027
|
className = _this$props.className;
|
|
12030
|
-
return React__default[
|
|
12028
|
+
return React__default['default'].createElement(List, {
|
|
12031
12029
|
renderItem: this.renderItem,
|
|
12032
12030
|
selectItem: this.selectItem,
|
|
12033
12031
|
cx: cx$f,
|
|
@@ -12049,24 +12047,24 @@ function (_Component) {
|
|
|
12049
12047
|
}(React.Component);
|
|
12050
12048
|
|
|
12051
12049
|
_defineProperty(Menu, "propTypes", {
|
|
12052
|
-
translate: PropTypes__default[
|
|
12053
|
-
refine: PropTypes__default[
|
|
12054
|
-
searchForItems: PropTypes__default[
|
|
12055
|
-
searchable: PropTypes__default[
|
|
12056
|
-
createURL: PropTypes__default[
|
|
12057
|
-
items: PropTypes__default[
|
|
12058
|
-
label: PropTypes__default[
|
|
12059
|
-
value: PropTypes__default[
|
|
12060
|
-
count: PropTypes__default[
|
|
12061
|
-
isRefined: PropTypes__default[
|
|
12050
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12051
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12052
|
+
searchForItems: PropTypes__default['default'].func.isRequired,
|
|
12053
|
+
searchable: PropTypes__default['default'].bool,
|
|
12054
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
12055
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12056
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
12057
|
+
value: PropTypes__default['default'].string.isRequired,
|
|
12058
|
+
count: PropTypes__default['default'].number.isRequired,
|
|
12059
|
+
isRefined: PropTypes__default['default'].bool.isRequired
|
|
12062
12060
|
})),
|
|
12063
|
-
isFromSearch: PropTypes__default[
|
|
12064
|
-
canRefine: PropTypes__default[
|
|
12065
|
-
showMore: PropTypes__default[
|
|
12066
|
-
limit: PropTypes__default[
|
|
12067
|
-
showMoreLimit: PropTypes__default[
|
|
12068
|
-
transformItems: PropTypes__default[
|
|
12069
|
-
className: PropTypes__default[
|
|
12061
|
+
isFromSearch: PropTypes__default['default'].bool.isRequired,
|
|
12062
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12063
|
+
showMore: PropTypes__default['default'].bool,
|
|
12064
|
+
limit: PropTypes__default['default'].number,
|
|
12065
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
12066
|
+
transformItems: PropTypes__default['default'].func,
|
|
12067
|
+
className: PropTypes__default['default'].string
|
|
12070
12068
|
});
|
|
12071
12069
|
|
|
12072
12070
|
_defineProperty(Menu, "defaultProps", {
|
|
@@ -12135,7 +12133,7 @@ var Menu$1 = translatable({
|
|
|
12135
12133
|
*/
|
|
12136
12134
|
|
|
12137
12135
|
var MenuWidget = function MenuWidget(props) {
|
|
12138
|
-
return React__default[
|
|
12136
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(Menu$1, props));
|
|
12139
12137
|
};
|
|
12140
12138
|
|
|
12141
12139
|
connectMenu(MenuWidget);
|
|
@@ -12178,18 +12176,18 @@ function (_Component) {
|
|
|
12178
12176
|
canRefine = _this$props.canRefine,
|
|
12179
12177
|
translate = _this$props.translate,
|
|
12180
12178
|
className = _this$props.className;
|
|
12181
|
-
return React__default[
|
|
12179
|
+
return React__default['default'].createElement("div", {
|
|
12182
12180
|
className: index.classnames(cx$e('', !canRefine && '-noRefinement'), className)
|
|
12183
|
-
}, React__default[
|
|
12181
|
+
}, React__default['default'].createElement("select", {
|
|
12184
12182
|
id: id,
|
|
12185
12183
|
value: this.selectedValue,
|
|
12186
12184
|
onChange: this.handleSelectChange,
|
|
12187
12185
|
className: cx$e('select')
|
|
12188
|
-
}, React__default[
|
|
12186
|
+
}, React__default['default'].createElement("option", {
|
|
12189
12187
|
value: "ais__see__all__option",
|
|
12190
12188
|
className: cx$e('option')
|
|
12191
12189
|
}, translate('seeAllOption')), items.map(function (item) {
|
|
12192
|
-
return React__default[
|
|
12190
|
+
return React__default['default'].createElement("option", {
|
|
12193
12191
|
key: item.value,
|
|
12194
12192
|
value: item.value,
|
|
12195
12193
|
className: cx$e('option')
|
|
@@ -12214,17 +12212,17 @@ function (_Component) {
|
|
|
12214
12212
|
}(React.Component);
|
|
12215
12213
|
|
|
12216
12214
|
_defineProperty(MenuSelect, "propTypes", {
|
|
12217
|
-
id: PropTypes__default[
|
|
12218
|
-
items: PropTypes__default[
|
|
12219
|
-
label: PropTypes__default[
|
|
12220
|
-
value: PropTypes__default[
|
|
12221
|
-
count: PropTypes__default[
|
|
12222
|
-
isRefined: PropTypes__default[
|
|
12215
|
+
id: PropTypes__default['default'].string,
|
|
12216
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12217
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
12218
|
+
value: PropTypes__default['default'].string.isRequired,
|
|
12219
|
+
count: PropTypes__default['default'].oneOfType([PropTypes__default['default'].number.isRequired, PropTypes__default['default'].string.isRequired]),
|
|
12220
|
+
isRefined: PropTypes__default['default'].bool.isRequired
|
|
12223
12221
|
})).isRequired,
|
|
12224
|
-
canRefine: PropTypes__default[
|
|
12225
|
-
refine: PropTypes__default[
|
|
12226
|
-
translate: PropTypes__default[
|
|
12227
|
-
className: PropTypes__default[
|
|
12222
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12223
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12224
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12225
|
+
className: PropTypes__default['default'].string
|
|
12228
12226
|
});
|
|
12229
12227
|
|
|
12230
12228
|
_defineProperty(MenuSelect, "defaultProps", {
|
|
@@ -12273,7 +12271,7 @@ var MenuSelect$1 = translatable({
|
|
|
12273
12271
|
*/
|
|
12274
12272
|
|
|
12275
12273
|
var MenuSelectWidget = function MenuSelectWidget(props) {
|
|
12276
|
-
return React__default[
|
|
12274
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(MenuSelect$1, props));
|
|
12277
12275
|
};
|
|
12278
12276
|
|
|
12279
12277
|
connectMenu(MenuSelectWidget);
|
|
@@ -12302,9 +12300,9 @@ function (_Component) {
|
|
|
12302
12300
|
var _this$props = _this.props,
|
|
12303
12301
|
refine = _this$props.refine,
|
|
12304
12302
|
translate = _this$props.translate;
|
|
12305
|
-
return React__default[
|
|
12303
|
+
return React__default['default'].createElement("label", {
|
|
12306
12304
|
className: cx$d('label')
|
|
12307
|
-
}, React__default[
|
|
12305
|
+
}, React__default['default'].createElement("input", {
|
|
12308
12306
|
className: cx$d('radio'),
|
|
12309
12307
|
type: "radio",
|
|
12310
12308
|
checked: item.isRefined,
|
|
@@ -12312,7 +12310,7 @@ function (_Component) {
|
|
|
12312
12310
|
onChange: function onChange() {
|
|
12313
12311
|
return refine(item.value);
|
|
12314
12312
|
}
|
|
12315
|
-
}), React__default[
|
|
12313
|
+
}), React__default['default'].createElement("span", {
|
|
12316
12314
|
className: cx$d('labelText')
|
|
12317
12315
|
}, item.value === '' ? translate('all') : item.label));
|
|
12318
12316
|
});
|
|
@@ -12327,7 +12325,7 @@ function (_Component) {
|
|
|
12327
12325
|
items = _this$props2.items,
|
|
12328
12326
|
canRefine = _this$props2.canRefine,
|
|
12329
12327
|
className = _this$props2.className;
|
|
12330
|
-
return React__default[
|
|
12328
|
+
return React__default['default'].createElement(List, {
|
|
12331
12329
|
renderItem: this.renderItem,
|
|
12332
12330
|
showMore: false,
|
|
12333
12331
|
canRefine: canRefine,
|
|
@@ -12346,16 +12344,16 @@ function (_Component) {
|
|
|
12346
12344
|
}(React.Component);
|
|
12347
12345
|
|
|
12348
12346
|
_defineProperty(NumericMenu, "propTypes", {
|
|
12349
|
-
items: PropTypes__default[
|
|
12350
|
-
label: PropTypes__default[
|
|
12351
|
-
value: PropTypes__default[
|
|
12352
|
-
isRefined: PropTypes__default[
|
|
12353
|
-
noRefinement: PropTypes__default[
|
|
12347
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12348
|
+
label: PropTypes__default['default'].node.isRequired,
|
|
12349
|
+
value: PropTypes__default['default'].string.isRequired,
|
|
12350
|
+
isRefined: PropTypes__default['default'].bool.isRequired,
|
|
12351
|
+
noRefinement: PropTypes__default['default'].bool.isRequired
|
|
12354
12352
|
})).isRequired,
|
|
12355
|
-
canRefine: PropTypes__default[
|
|
12356
|
-
refine: PropTypes__default[
|
|
12357
|
-
translate: PropTypes__default[
|
|
12358
|
-
className: PropTypes__default[
|
|
12353
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12354
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12355
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12356
|
+
className: PropTypes__default['default'].string
|
|
12359
12357
|
});
|
|
12360
12358
|
|
|
12361
12359
|
_defineProperty(NumericMenu, "defaultProps", {
|
|
@@ -12413,7 +12411,7 @@ var NumericMenu$1 = translatable({
|
|
|
12413
12411
|
*/
|
|
12414
12412
|
|
|
12415
12413
|
var NumericMenuWidget = function NumericMenuWidget(props) {
|
|
12416
|
-
return React__default[
|
|
12414
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(NumericMenu$1, props));
|
|
12417
12415
|
};
|
|
12418
12416
|
|
|
12419
12417
|
connectNumericMenu(NumericMenuWidget);
|
|
@@ -12438,15 +12436,15 @@ function (_Component) {
|
|
|
12438
12436
|
items = _this$props.items,
|
|
12439
12437
|
onSelect = _this$props.onSelect,
|
|
12440
12438
|
canRefine = _this$props.canRefine;
|
|
12441
|
-
return React__default[
|
|
12439
|
+
return React__default['default'].createElement("ul", {
|
|
12442
12440
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
12443
12441
|
}, items.map(function (item) {
|
|
12444
|
-
return React__default[
|
|
12442
|
+
return React__default['default'].createElement("li", {
|
|
12445
12443
|
key: item.key === undefined ? item.value : item.key,
|
|
12446
12444
|
className: cx('item', item.selected && !item.disabled && 'item--selected', item.disabled && 'item--disabled', item.modifier)
|
|
12447
|
-
}, item.disabled ? React__default[
|
|
12445
|
+
}, item.disabled ? React__default['default'].createElement("span", {
|
|
12448
12446
|
className: cx('link')
|
|
12449
|
-
}, item.label === undefined ? item.value : item.label) : React__default[
|
|
12447
|
+
}, item.label === undefined ? item.value : item.label) : React__default['default'].createElement(Link, {
|
|
12450
12448
|
className: cx('link', item.selected && 'link--selected'),
|
|
12451
12449
|
"aria-label": item.ariaLabel,
|
|
12452
12450
|
href: createURL(item.value),
|
|
@@ -12462,18 +12460,18 @@ function (_Component) {
|
|
|
12462
12460
|
}(React.Component);
|
|
12463
12461
|
|
|
12464
12462
|
_defineProperty(LinkList, "propTypes", {
|
|
12465
|
-
cx: PropTypes__default[
|
|
12466
|
-
createURL: PropTypes__default[
|
|
12467
|
-
items: PropTypes__default[
|
|
12468
|
-
value: PropTypes__default[
|
|
12469
|
-
key: PropTypes__default[
|
|
12470
|
-
label: PropTypes__default[
|
|
12471
|
-
modifier: PropTypes__default[
|
|
12472
|
-
ariaLabel: PropTypes__default[
|
|
12473
|
-
disabled: PropTypes__default[
|
|
12463
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
12464
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
12465
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12466
|
+
value: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number, PropTypes__default['default'].object]).isRequired,
|
|
12467
|
+
key: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]),
|
|
12468
|
+
label: PropTypes__default['default'].node,
|
|
12469
|
+
modifier: PropTypes__default['default'].string,
|
|
12470
|
+
ariaLabel: PropTypes__default['default'].string,
|
|
12471
|
+
disabled: PropTypes__default['default'].bool
|
|
12474
12472
|
})),
|
|
12475
|
-
onSelect: PropTypes__default[
|
|
12476
|
-
canRefine: PropTypes__default[
|
|
12473
|
+
onSelect: PropTypes__default['default'].func.isRequired,
|
|
12474
|
+
canRefine: PropTypes__default['default'].bool.isRequired
|
|
12477
12475
|
});
|
|
12478
12476
|
|
|
12479
12477
|
var cx$c = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
|
|
@@ -12618,9 +12616,9 @@ function (_Component) {
|
|
|
12618
12616
|
});
|
|
12619
12617
|
}
|
|
12620
12618
|
|
|
12621
|
-
return React__default[
|
|
12619
|
+
return React__default['default'].createElement("div", {
|
|
12622
12620
|
className: index.classnames(cx$c('', !canRefine && '-noRefinement'), className)
|
|
12623
|
-
}, React__default[
|
|
12621
|
+
}, React__default['default'].createElement(ListComponent, index._extends({}, otherProps, {
|
|
12624
12622
|
cx: cx$c,
|
|
12625
12623
|
items: items,
|
|
12626
12624
|
onSelect: refine,
|
|
@@ -12634,20 +12632,20 @@ function (_Component) {
|
|
|
12634
12632
|
}(React.Component);
|
|
12635
12633
|
|
|
12636
12634
|
_defineProperty(Pagination$1, "propTypes", {
|
|
12637
|
-
nbPages: PropTypes__default[
|
|
12638
|
-
currentRefinement: PropTypes__default[
|
|
12639
|
-
refine: PropTypes__default[
|
|
12640
|
-
createURL: PropTypes__default[
|
|
12641
|
-
canRefine: PropTypes__default[
|
|
12642
|
-
translate: PropTypes__default[
|
|
12643
|
-
listComponent: PropTypes__default[
|
|
12644
|
-
showFirst: PropTypes__default[
|
|
12645
|
-
showPrevious: PropTypes__default[
|
|
12646
|
-
showNext: PropTypes__default[
|
|
12647
|
-
showLast: PropTypes__default[
|
|
12648
|
-
padding: PropTypes__default[
|
|
12649
|
-
totalPages: PropTypes__default[
|
|
12650
|
-
className: PropTypes__default[
|
|
12635
|
+
nbPages: PropTypes__default['default'].number.isRequired,
|
|
12636
|
+
currentRefinement: PropTypes__default['default'].number.isRequired,
|
|
12637
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12638
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
12639
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12640
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12641
|
+
listComponent: PropTypes__default['default'].func,
|
|
12642
|
+
showFirst: PropTypes__default['default'].bool,
|
|
12643
|
+
showPrevious: PropTypes__default['default'].bool,
|
|
12644
|
+
showNext: PropTypes__default['default'].bool,
|
|
12645
|
+
showLast: PropTypes__default['default'].bool,
|
|
12646
|
+
padding: PropTypes__default['default'].number,
|
|
12647
|
+
totalPages: PropTypes__default['default'].number,
|
|
12648
|
+
className: PropTypes__default['default'].string
|
|
12651
12649
|
});
|
|
12652
12650
|
|
|
12653
12651
|
_defineProperty(Pagination$1, "defaultProps", {
|
|
@@ -12733,7 +12731,7 @@ var Pagination$2 = translatable({
|
|
|
12733
12731
|
*/
|
|
12734
12732
|
|
|
12735
12733
|
var PaginationWidget = function PaginationWidget(props) {
|
|
12736
|
-
return React__default[
|
|
12734
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(Pagination$2, props));
|
|
12737
12735
|
};
|
|
12738
12736
|
|
|
12739
12737
|
var Pagination = connectPagination(PaginationWidget);
|
|
@@ -12742,14 +12740,14 @@ var cx$b = createClassNames('PoweredBy');
|
|
|
12742
12740
|
/* eslint-disable max-len */
|
|
12743
12741
|
|
|
12744
12742
|
var AlgoliaLogo = function AlgoliaLogo() {
|
|
12745
|
-
return React__default[
|
|
12743
|
+
return React__default['default'].createElement("svg", {
|
|
12746
12744
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12747
12745
|
baseProfile: "basic",
|
|
12748
12746
|
viewBox: "0 0 1366 362",
|
|
12749
12747
|
width: "100",
|
|
12750
12748
|
height: "27",
|
|
12751
12749
|
className: cx$b('logo')
|
|
12752
|
-
}, React__default[
|
|
12750
|
+
}, React__default['default'].createElement("linearGradient", {
|
|
12753
12751
|
id: "g",
|
|
12754
12752
|
x1: "428.258",
|
|
12755
12753
|
x2: "434.145",
|
|
@@ -12757,19 +12755,19 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12757
12755
|
y2: "409.85",
|
|
12758
12756
|
gradientUnits: "userSpaceOnUse",
|
|
12759
12757
|
gradientTransform: "matrix(94.045 0 0 -94.072 -40381.527 38479.52)"
|
|
12760
|
-
}, React__default[
|
|
12758
|
+
}, React__default['default'].createElement("stop", {
|
|
12761
12759
|
offset: "0",
|
|
12762
12760
|
stopColor: "#00AEFF"
|
|
12763
|
-
}), React__default[
|
|
12761
|
+
}), React__default['default'].createElement("stop", {
|
|
12764
12762
|
offset: "1",
|
|
12765
12763
|
stopColor: "#3369E7"
|
|
12766
|
-
})), React__default[
|
|
12764
|
+
})), React__default['default'].createElement("path", {
|
|
12767
12765
|
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",
|
|
12768
12766
|
fill: "url(#g)"
|
|
12769
|
-
}), React__default[
|
|
12767
|
+
}), React__default['default'].createElement("path", {
|
|
12770
12768
|
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",
|
|
12771
12769
|
fill: "#FFFFFF"
|
|
12772
|
-
}), React__default[
|
|
12770
|
+
}), React__default['default'].createElement("path", {
|
|
12773
12771
|
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",
|
|
12774
12772
|
fill: "#182359"
|
|
12775
12773
|
}));
|
|
@@ -12795,17 +12793,17 @@ function (_Component) {
|
|
|
12795
12793
|
url = _this$props.url,
|
|
12796
12794
|
translate = _this$props.translate,
|
|
12797
12795
|
className = _this$props.className;
|
|
12798
|
-
return React__default[
|
|
12796
|
+
return React__default['default'].createElement("div", {
|
|
12799
12797
|
className: index.classnames(cx$b(''), className)
|
|
12800
|
-
}, React__default[
|
|
12798
|
+
}, React__default['default'].createElement("span", {
|
|
12801
12799
|
className: cx$b('text')
|
|
12802
|
-
}, translate('searchBy')), ' ', React__default[
|
|
12800
|
+
}, translate('searchBy')), ' ', React__default['default'].createElement("a", {
|
|
12803
12801
|
href: url,
|
|
12804
12802
|
target: "_blank",
|
|
12805
12803
|
className: cx$b('link'),
|
|
12806
12804
|
"aria-label": "Algolia",
|
|
12807
12805
|
rel: "noopener noreferrer"
|
|
12808
|
-
}, React__default[
|
|
12806
|
+
}, React__default['default'].createElement(AlgoliaLogo, null)));
|
|
12809
12807
|
}
|
|
12810
12808
|
}]);
|
|
12811
12809
|
|
|
@@ -12813,9 +12811,9 @@ function (_Component) {
|
|
|
12813
12811
|
}(React.Component);
|
|
12814
12812
|
|
|
12815
12813
|
_defineProperty(PoweredBy, "propTypes", {
|
|
12816
|
-
url: PropTypes__default[
|
|
12817
|
-
translate: PropTypes__default[
|
|
12818
|
-
className: PropTypes__default[
|
|
12814
|
+
url: PropTypes__default['default'].string.isRequired,
|
|
12815
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12816
|
+
className: PropTypes__default['default'].string
|
|
12819
12817
|
});
|
|
12820
12818
|
|
|
12821
12819
|
var PoweredBy$1 = translatable({
|
|
@@ -12934,12 +12932,12 @@ function (_Component) {
|
|
|
12934
12932
|
max = _this$normalizeRangeF.max;
|
|
12935
12933
|
|
|
12936
12934
|
var step = 1 / Math.pow(10, precision);
|
|
12937
|
-
return React__default[
|
|
12935
|
+
return React__default['default'].createElement("div", {
|
|
12938
12936
|
className: index.classnames(cx$a('', !canRefine && '-noRefinement'), className)
|
|
12939
|
-
}, React__default[
|
|
12937
|
+
}, React__default['default'].createElement("form", {
|
|
12940
12938
|
className: cx$a('form'),
|
|
12941
12939
|
onSubmit: this.onSubmit
|
|
12942
|
-
}, React__default[
|
|
12940
|
+
}, React__default['default'].createElement("input", {
|
|
12943
12941
|
className: cx$a('input', 'input--min'),
|
|
12944
12942
|
type: "number",
|
|
12945
12943
|
min: min,
|
|
@@ -12953,9 +12951,9 @@ function (_Component) {
|
|
|
12953
12951
|
from: e.currentTarget.value
|
|
12954
12952
|
});
|
|
12955
12953
|
}
|
|
12956
|
-
}), React__default[
|
|
12954
|
+
}), React__default['default'].createElement("span", {
|
|
12957
12955
|
className: cx$a('separator')
|
|
12958
|
-
}, translate('separator')), React__default[
|
|
12956
|
+
}, translate('separator')), React__default['default'].createElement("input", {
|
|
12959
12957
|
className: cx$a('input', 'input--max'),
|
|
12960
12958
|
type: "number",
|
|
12961
12959
|
min: min,
|
|
@@ -12969,7 +12967,7 @@ function (_Component) {
|
|
|
12969
12967
|
to: e.currentTarget.value
|
|
12970
12968
|
});
|
|
12971
12969
|
}
|
|
12972
|
-
}), React__default[
|
|
12970
|
+
}), React__default['default'].createElement("button", {
|
|
12973
12971
|
className: cx$a('submit'),
|
|
12974
12972
|
type: "submit"
|
|
12975
12973
|
}, translate('submit'))));
|
|
@@ -12980,17 +12978,17 @@ function (_Component) {
|
|
|
12980
12978
|
}(React.Component);
|
|
12981
12979
|
|
|
12982
12980
|
_defineProperty(RawRangeInput, "propTypes", {
|
|
12983
|
-
canRefine: PropTypes__default[
|
|
12984
|
-
precision: PropTypes__default[
|
|
12985
|
-
translate: PropTypes__default[
|
|
12986
|
-
refine: PropTypes__default[
|
|
12987
|
-
min: PropTypes__default[
|
|
12988
|
-
max: PropTypes__default[
|
|
12989
|
-
currentRefinement: PropTypes__default[
|
|
12990
|
-
min: PropTypes__default[
|
|
12991
|
-
max: PropTypes__default[
|
|
12981
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12982
|
+
precision: PropTypes__default['default'].number.isRequired,
|
|
12983
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12984
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12985
|
+
min: PropTypes__default['default'].number,
|
|
12986
|
+
max: PropTypes__default['default'].number,
|
|
12987
|
+
currentRefinement: PropTypes__default['default'].shape({
|
|
12988
|
+
min: PropTypes__default['default'].number,
|
|
12989
|
+
max: PropTypes__default['default'].number
|
|
12992
12990
|
}),
|
|
12993
|
-
className: PropTypes__default[
|
|
12991
|
+
className: PropTypes__default['default'].string
|
|
12994
12992
|
});
|
|
12995
12993
|
|
|
12996
12994
|
_defineProperty(RawRangeInput, "defaultProps", {
|
|
@@ -13046,7 +13044,7 @@ var RangeInput = translatable({
|
|
|
13046
13044
|
*/
|
|
13047
13045
|
|
|
13048
13046
|
var RangeInputWidget = function RangeInputWidget(props) {
|
|
13049
|
-
return React__default[
|
|
13047
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(RangeInput, props));
|
|
13050
13048
|
};
|
|
13051
13049
|
|
|
13052
13050
|
connectRange(RangeInputWidget);
|
|
@@ -13102,13 +13100,13 @@ function (_Component) {
|
|
|
13102
13100
|
rating++;
|
|
13103
13101
|
}
|
|
13104
13102
|
|
|
13105
|
-
icons.push([React__default[
|
|
13103
|
+
icons.push([React__default['default'].createElement("svg", {
|
|
13106
13104
|
key: icon,
|
|
13107
13105
|
className: cx$9('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
|
|
13108
13106
|
"aria-hidden": "true",
|
|
13109
13107
|
width: "24",
|
|
13110
13108
|
height: "24"
|
|
13111
|
-
}, React__default[
|
|
13109
|
+
}, React__default['default'].createElement("use", {
|
|
13112
13110
|
xlinkHref: "#".concat(cx$9(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
|
|
13113
13111
|
})), ' ']);
|
|
13114
13112
|
} // The last item of the list (the default item), should not
|
|
@@ -13123,16 +13121,16 @@ function (_Component) {
|
|
|
13123
13121
|
}),
|
|
13124
13122
|
onClick: this.onClick.bind(this, lowerBound, max)
|
|
13125
13123
|
};
|
|
13126
|
-
return React__default[
|
|
13124
|
+
return React__default['default'].createElement("li", {
|
|
13127
13125
|
key: lowerBound,
|
|
13128
13126
|
className: cx$9('item', selected && 'item--selected', disabled && 'item--disabled')
|
|
13129
|
-
}, React__default[
|
|
13127
|
+
}, React__default['default'].createElement("a", index._extends({
|
|
13130
13128
|
className: cx$9('link'),
|
|
13131
13129
|
"aria-label": "".concat(rating).concat(translate('ratingLabel'))
|
|
13132
|
-
}, onClickHandler), icons, React__default[
|
|
13130
|
+
}, onClickHandler), icons, React__default['default'].createElement("span", {
|
|
13133
13131
|
className: cx$9('label'),
|
|
13134
13132
|
"aria-hidden": "true"
|
|
13135
|
-
}, translate('ratingLabel')), ' ', React__default[
|
|
13133
|
+
}, translate('ratingLabel')), ' ', React__default['default'].createElement("span", {
|
|
13136
13134
|
className: cx$9('count')
|
|
13137
13135
|
}, count)));
|
|
13138
13136
|
}
|
|
@@ -13188,24 +13186,24 @@ function (_Component) {
|
|
|
13188
13186
|
createURL: createURL
|
|
13189
13187
|
});
|
|
13190
13188
|
});
|
|
13191
|
-
return React__default[
|
|
13189
|
+
return React__default['default'].createElement("div", {
|
|
13192
13190
|
className: index.classnames(cx$9('', !canRefine && '-noRefinement'), className)
|
|
13193
|
-
}, React__default[
|
|
13191
|
+
}, React__default['default'].createElement("svg", {
|
|
13194
13192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13195
13193
|
style: {
|
|
13196
13194
|
display: 'none'
|
|
13197
13195
|
}
|
|
13198
|
-
}, React__default[
|
|
13196
|
+
}, React__default['default'].createElement("symbol", {
|
|
13199
13197
|
id: cx$9('starSymbol'),
|
|
13200
13198
|
viewBox: "0 0 24 24"
|
|
13201
|
-
}, React__default[
|
|
13199
|
+
}, React__default['default'].createElement("path", {
|
|
13202
13200
|
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"
|
|
13203
|
-
})), React__default[
|
|
13201
|
+
})), React__default['default'].createElement("symbol", {
|
|
13204
13202
|
id: cx$9('starEmptySymbol'),
|
|
13205
13203
|
viewBox: "0 0 24 24"
|
|
13206
|
-
}, React__default[
|
|
13204
|
+
}, React__default['default'].createElement("path", {
|
|
13207
13205
|
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"
|
|
13208
|
-
}))), React__default[
|
|
13206
|
+
}))), React__default['default'].createElement("ul", {
|
|
13209
13207
|
className: cx$9('list', !canRefine && 'list--noRefinement')
|
|
13210
13208
|
}, items));
|
|
13211
13209
|
}
|
|
@@ -13215,21 +13213,21 @@ function (_Component) {
|
|
|
13215
13213
|
}(React.Component);
|
|
13216
13214
|
|
|
13217
13215
|
_defineProperty(RatingMenu, "propTypes", {
|
|
13218
|
-
translate: PropTypes__default[
|
|
13219
|
-
refine: PropTypes__default[
|
|
13220
|
-
createURL: PropTypes__default[
|
|
13221
|
-
min: PropTypes__default[
|
|
13222
|
-
max: PropTypes__default[
|
|
13223
|
-
currentRefinement: PropTypes__default[
|
|
13224
|
-
min: PropTypes__default[
|
|
13225
|
-
max: PropTypes__default[
|
|
13216
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
13217
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13218
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
13219
|
+
min: PropTypes__default['default'].number,
|
|
13220
|
+
max: PropTypes__default['default'].number,
|
|
13221
|
+
currentRefinement: PropTypes__default['default'].shape({
|
|
13222
|
+
min: PropTypes__default['default'].number,
|
|
13223
|
+
max: PropTypes__default['default'].number
|
|
13226
13224
|
}),
|
|
13227
|
-
count: PropTypes__default[
|
|
13228
|
-
value: PropTypes__default[
|
|
13229
|
-
count: PropTypes__default[
|
|
13225
|
+
count: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
13226
|
+
value: PropTypes__default['default'].string,
|
|
13227
|
+
count: PropTypes__default['default'].number
|
|
13230
13228
|
})),
|
|
13231
|
-
canRefine: PropTypes__default[
|
|
13232
|
-
className: PropTypes__default[
|
|
13229
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
13230
|
+
className: PropTypes__default['default'].string
|
|
13233
13231
|
});
|
|
13234
13232
|
|
|
13235
13233
|
_defineProperty(RatingMenu, "defaultProps", {
|
|
@@ -13289,7 +13287,7 @@ var RatingMenu$1 = translatable({
|
|
|
13289
13287
|
*/
|
|
13290
13288
|
|
|
13291
13289
|
var RatingMenuWidget = function RatingMenuWidget(props) {
|
|
13292
|
-
return React__default[
|
|
13290
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(RatingMenu$1, props));
|
|
13293
13291
|
};
|
|
13294
13292
|
|
|
13295
13293
|
connectRange(RatingMenuWidget);
|
|
@@ -13325,22 +13323,22 @@ function (_Component) {
|
|
|
13325
13323
|
});
|
|
13326
13324
|
|
|
13327
13325
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13328
|
-
var label = _this.props.isFromSearch ? React__default[
|
|
13326
|
+
var label = _this.props.isFromSearch ? React__default['default'].createElement(Highlight, {
|
|
13329
13327
|
attribute: "label",
|
|
13330
13328
|
hit: item
|
|
13331
13329
|
}) : item.label;
|
|
13332
|
-
return React__default[
|
|
13330
|
+
return React__default['default'].createElement("label", {
|
|
13333
13331
|
className: cx$8('label')
|
|
13334
|
-
}, React__default[
|
|
13332
|
+
}, React__default['default'].createElement("input", {
|
|
13335
13333
|
className: cx$8('checkbox'),
|
|
13336
13334
|
type: "checkbox",
|
|
13337
13335
|
checked: item.isRefined,
|
|
13338
13336
|
onChange: function onChange() {
|
|
13339
13337
|
return _this.selectItem(item, resetQuery);
|
|
13340
13338
|
}
|
|
13341
|
-
}), React__default[
|
|
13339
|
+
}), React__default['default'].createElement("span", {
|
|
13342
13340
|
className: cx$8('labelText')
|
|
13343
|
-
}, label), ' ', React__default[
|
|
13341
|
+
}, label), ' ', React__default['default'].createElement("span", {
|
|
13344
13342
|
className: cx$8('count')
|
|
13345
13343
|
}, item.count.toLocaleString()));
|
|
13346
13344
|
});
|
|
@@ -13362,7 +13360,7 @@ function (_Component) {
|
|
|
13362
13360
|
searchable = _this$props.searchable,
|
|
13363
13361
|
canRefine = _this$props.canRefine,
|
|
13364
13362
|
className = _this$props.className;
|
|
13365
|
-
return React__default[
|
|
13363
|
+
return React__default['default'].createElement(List, {
|
|
13366
13364
|
renderItem: this.renderItem,
|
|
13367
13365
|
selectItem: this.selectItem,
|
|
13368
13366
|
cx: cx$8,
|
|
@@ -13385,24 +13383,24 @@ function (_Component) {
|
|
|
13385
13383
|
}(React.Component);
|
|
13386
13384
|
|
|
13387
13385
|
_defineProperty(RefinementList$1, "propTypes", {
|
|
13388
|
-
translate: PropTypes__default[
|
|
13389
|
-
refine: PropTypes__default[
|
|
13390
|
-
searchForItems: PropTypes__default[
|
|
13391
|
-
searchable: PropTypes__default[
|
|
13392
|
-
createURL: PropTypes__default[
|
|
13393
|
-
items: PropTypes__default[
|
|
13394
|
-
label: PropTypes__default[
|
|
13395
|
-
value: PropTypes__default[
|
|
13396
|
-
count: PropTypes__default[
|
|
13397
|
-
isRefined: PropTypes__default[
|
|
13386
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
13387
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13388
|
+
searchForItems: PropTypes__default['default'].func.isRequired,
|
|
13389
|
+
searchable: PropTypes__default['default'].bool,
|
|
13390
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
13391
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
13392
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
13393
|
+
value: PropTypes__default['default'].arrayOf(PropTypes__default['default'].string).isRequired,
|
|
13394
|
+
count: PropTypes__default['default'].number.isRequired,
|
|
13395
|
+
isRefined: PropTypes__default['default'].bool.isRequired
|
|
13398
13396
|
})),
|
|
13399
|
-
isFromSearch: PropTypes__default[
|
|
13400
|
-
canRefine: PropTypes__default[
|
|
13401
|
-
showMore: PropTypes__default[
|
|
13402
|
-
limit: PropTypes__default[
|
|
13403
|
-
showMoreLimit: PropTypes__default[
|
|
13404
|
-
transformItems: PropTypes__default[
|
|
13405
|
-
className: PropTypes__default[
|
|
13397
|
+
isFromSearch: PropTypes__default['default'].bool.isRequired,
|
|
13398
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
13399
|
+
showMore: PropTypes__default['default'].bool,
|
|
13400
|
+
limit: PropTypes__default['default'].number,
|
|
13401
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
13402
|
+
transformItems: PropTypes__default['default'].func,
|
|
13403
|
+
className: PropTypes__default['default'].string
|
|
13406
13404
|
});
|
|
13407
13405
|
|
|
13408
13406
|
_defineProperty(RefinementList$1, "defaultProps", {
|
|
@@ -13474,7 +13472,7 @@ var RefinementList$2 = translatable({
|
|
|
13474
13472
|
*/
|
|
13475
13473
|
|
|
13476
13474
|
var RefinementListWidget = function RefinementListWidget(props) {
|
|
13477
|
-
return React__default[
|
|
13475
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(RefinementList$2, props));
|
|
13478
13476
|
};
|
|
13479
13477
|
|
|
13480
13478
|
var RefinementList = connectRefinementList(RefinementListWidget);
|
|
@@ -13508,7 +13506,7 @@ function (_Component) {
|
|
|
13508
13506
|
value: function render() {
|
|
13509
13507
|
var _this = this;
|
|
13510
13508
|
|
|
13511
|
-
return React__default[
|
|
13509
|
+
return React__default['default'].createElement("div", {
|
|
13512
13510
|
ref: function ref(_ref) {
|
|
13513
13511
|
return _this.el = _ref;
|
|
13514
13512
|
},
|
|
@@ -13521,9 +13519,9 @@ function (_Component) {
|
|
|
13521
13519
|
}(React.Component);
|
|
13522
13520
|
|
|
13523
13521
|
_defineProperty(ScrollTo, "propTypes", {
|
|
13524
|
-
value: PropTypes__default[
|
|
13525
|
-
children: PropTypes__default[
|
|
13526
|
-
hasNotChanged: PropTypes__default[
|
|
13522
|
+
value: PropTypes__default['default'].any,
|
|
13523
|
+
children: PropTypes__default['default'].node,
|
|
13524
|
+
hasNotChanged: PropTypes__default['default'].bool
|
|
13527
13525
|
});
|
|
13528
13526
|
|
|
13529
13527
|
/**
|
|
@@ -13612,7 +13610,7 @@ var SearchBox = connectSearchBox(SearchBox$2);
|
|
|
13612
13610
|
var cx$6 = createClassNames('Snippet');
|
|
13613
13611
|
|
|
13614
13612
|
var Snippet = function Snippet(props) {
|
|
13615
|
-
return React__default[
|
|
13613
|
+
return React__default['default'].createElement(Highlighter, index._extends({}, props, {
|
|
13616
13614
|
highlightProperty: "_snippetResult",
|
|
13617
13615
|
cx: cx$6
|
|
13618
13616
|
}));
|
|
@@ -13668,7 +13666,7 @@ var cx$5 = createClassNames('RelevantSort');
|
|
|
13668
13666
|
|
|
13669
13667
|
var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
|
|
13670
13668
|
var isRelevantSorted = _ref.isRelevantSorted;
|
|
13671
|
-
return React__default[
|
|
13669
|
+
return React__default['default'].createElement("span", null, isRelevantSorted ? 'See all results' : 'See relevant results');
|
|
13672
13670
|
};
|
|
13673
13671
|
|
|
13674
13672
|
var RelevantSort = function RelevantSort(_ref2) {
|
|
@@ -13680,29 +13678,29 @@ var RelevantSort = function RelevantSort(_ref2) {
|
|
|
13680
13678
|
ButtonTextComponent = _ref2$buttonTextCompo === void 0 ? DefaultButtonTextComponent : _ref2$buttonTextCompo,
|
|
13681
13679
|
TextComponent = _ref2.textComponent,
|
|
13682
13680
|
refine = _ref2.refine;
|
|
13683
|
-
return !isVirtualReplica ? null : React__default[
|
|
13681
|
+
return !isVirtualReplica ? null : React__default['default'].createElement("div", {
|
|
13684
13682
|
className: index.classnames(cx$5(''), className)
|
|
13685
|
-
}, React__default[
|
|
13683
|
+
}, React__default['default'].createElement("div", {
|
|
13686
13684
|
className: cx$5('text')
|
|
13687
|
-
}, TextComponent && React__default[
|
|
13685
|
+
}, TextComponent && React__default['default'].createElement(TextComponent, {
|
|
13688
13686
|
isRelevantSorted: isRelevantSorted
|
|
13689
|
-
})), React__default[
|
|
13687
|
+
})), React__default['default'].createElement("button", {
|
|
13690
13688
|
className: cx$5('button'),
|
|
13691
13689
|
onClick: function onClick() {
|
|
13692
13690
|
return refine(isRelevantSorted ? 0 : undefined);
|
|
13693
13691
|
}
|
|
13694
|
-
}, React__default[
|
|
13692
|
+
}, React__default['default'].createElement(ButtonTextComponent, {
|
|
13695
13693
|
isRelevantSorted: isRelevantSorted
|
|
13696
13694
|
})));
|
|
13697
13695
|
};
|
|
13698
13696
|
|
|
13699
13697
|
RelevantSort.propTypes = {
|
|
13700
|
-
buttonTextComponent: PropTypes__default[
|
|
13701
|
-
className: PropTypes__default[
|
|
13702
|
-
isVirtualReplica: PropTypes__default[
|
|
13703
|
-
isRelevantSorted: PropTypes__default[
|
|
13704
|
-
refine: PropTypes__default[
|
|
13705
|
-
textComponent: PropTypes__default[
|
|
13698
|
+
buttonTextComponent: PropTypes__default['default'].func,
|
|
13699
|
+
className: PropTypes__default['default'].string,
|
|
13700
|
+
isVirtualReplica: PropTypes__default['default'].bool.isRequired,
|
|
13701
|
+
isRelevantSorted: PropTypes__default['default'].bool.isRequired,
|
|
13702
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13703
|
+
textComponent: PropTypes__default['default'].func
|
|
13706
13704
|
};
|
|
13707
13705
|
|
|
13708
13706
|
connectRelevantSort(RelevantSort);
|
|
@@ -13729,9 +13727,9 @@ function (_Component) {
|
|
|
13729
13727
|
currentRefinement = _this$props.currentRefinement,
|
|
13730
13728
|
refine = _this$props.refine,
|
|
13731
13729
|
className = _this$props.className;
|
|
13732
|
-
return React__default[
|
|
13730
|
+
return React__default['default'].createElement("div", {
|
|
13733
13731
|
className: index.classnames(cx$4(''), className)
|
|
13734
|
-
}, React__default[
|
|
13732
|
+
}, React__default['default'].createElement(Select, {
|
|
13735
13733
|
id: id,
|
|
13736
13734
|
cx: cx$4,
|
|
13737
13735
|
items: items,
|
|
@@ -13745,14 +13743,14 @@ function (_Component) {
|
|
|
13745
13743
|
}(React.Component);
|
|
13746
13744
|
|
|
13747
13745
|
_defineProperty(SortBy, "propTypes", {
|
|
13748
|
-
id: PropTypes__default[
|
|
13749
|
-
items: PropTypes__default[
|
|
13750
|
-
label: PropTypes__default[
|
|
13751
|
-
value: PropTypes__default[
|
|
13746
|
+
id: PropTypes__default['default'].string,
|
|
13747
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
13748
|
+
label: PropTypes__default['default'].string,
|
|
13749
|
+
value: PropTypes__default['default'].string.isRequired
|
|
13752
13750
|
})).isRequired,
|
|
13753
|
-
currentRefinement: PropTypes__default[
|
|
13754
|
-
refine: PropTypes__default[
|
|
13755
|
-
className: PropTypes__default[
|
|
13751
|
+
currentRefinement: PropTypes__default['default'].string.isRequired,
|
|
13752
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13753
|
+
className: PropTypes__default['default'].string
|
|
13756
13754
|
});
|
|
13757
13755
|
|
|
13758
13756
|
_defineProperty(SortBy, "defaultProps", {
|
|
@@ -13811,20 +13809,20 @@ var Stats = function Stats(_ref) {
|
|
|
13811
13809
|
nbSortedHits = _ref.nbSortedHits,
|
|
13812
13810
|
processingTimeMS = _ref.processingTimeMS,
|
|
13813
13811
|
translate = _ref.translate;
|
|
13814
|
-
return React__default[
|
|
13812
|
+
return React__default['default'].createElement("div", {
|
|
13815
13813
|
className: index.classnames(cx$3(''), className)
|
|
13816
|
-
}, React__default[
|
|
13814
|
+
}, React__default['default'].createElement("span", {
|
|
13817
13815
|
className: cx$3('text')
|
|
13818
13816
|
}, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
|
|
13819
13817
|
};
|
|
13820
13818
|
|
|
13821
13819
|
Stats.propTypes = {
|
|
13822
|
-
className: PropTypes__default[
|
|
13823
|
-
areHitsSorted: PropTypes__default[
|
|
13824
|
-
nbHits: PropTypes__default[
|
|
13825
|
-
nbSortedHits: PropTypes__default[
|
|
13826
|
-
processingTimeMS: PropTypes__default[
|
|
13827
|
-
translate: PropTypes__default[
|
|
13820
|
+
className: PropTypes__default['default'].string,
|
|
13821
|
+
areHitsSorted: PropTypes__default['default'].bool.isRequired,
|
|
13822
|
+
nbHits: PropTypes__default['default'].number.isRequired,
|
|
13823
|
+
nbSortedHits: PropTypes__default['default'].number,
|
|
13824
|
+
processingTimeMS: PropTypes__default['default'].number.isRequired,
|
|
13825
|
+
translate: PropTypes__default['default'].func.isRequired
|
|
13828
13826
|
};
|
|
13829
13827
|
var Stats$1 = translatable({
|
|
13830
13828
|
stats: function stats(n, ms, nSorted, areHitsSorted) {
|
|
@@ -13870,28 +13868,28 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
|
13870
13868
|
canRefine = _ref.canRefine,
|
|
13871
13869
|
refine = _ref.refine,
|
|
13872
13870
|
className = _ref.className;
|
|
13873
|
-
return React__default[
|
|
13871
|
+
return React__default['default'].createElement("div", {
|
|
13874
13872
|
className: index.classnames(cx$2('', !canRefine && '-noRefinement'), className)
|
|
13875
|
-
}, React__default[
|
|
13873
|
+
}, React__default['default'].createElement("label", {
|
|
13876
13874
|
className: cx$2('label')
|
|
13877
|
-
}, React__default[
|
|
13875
|
+
}, React__default['default'].createElement("input", {
|
|
13878
13876
|
className: cx$2('checkbox'),
|
|
13879
13877
|
type: "checkbox",
|
|
13880
13878
|
checked: currentRefinement,
|
|
13881
13879
|
onChange: function onChange(event) {
|
|
13882
13880
|
return refine(event.target.checked);
|
|
13883
13881
|
}
|
|
13884
|
-
}), React__default[
|
|
13882
|
+
}), React__default['default'].createElement("span", {
|
|
13885
13883
|
className: cx$2('labelText')
|
|
13886
13884
|
}, label)));
|
|
13887
13885
|
};
|
|
13888
13886
|
|
|
13889
13887
|
ToggleRefinement.propTypes = {
|
|
13890
|
-
currentRefinement: PropTypes__default[
|
|
13891
|
-
label: PropTypes__default[
|
|
13892
|
-
canRefine: PropTypes__default[
|
|
13893
|
-
refine: PropTypes__default[
|
|
13894
|
-
className: PropTypes__default[
|
|
13888
|
+
currentRefinement: PropTypes__default['default'].bool.isRequired,
|
|
13889
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
13890
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
13891
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13892
|
+
className: PropTypes__default['default'].string
|
|
13895
13893
|
};
|
|
13896
13894
|
ToggleRefinement.defaultProps = {
|
|
13897
13895
|
className: ''
|
|
@@ -14095,7 +14093,7 @@ var cx$1 = createClassNames('VoiceSearch');
|
|
|
14095
14093
|
|
|
14096
14094
|
var ButtonSvg = function ButtonSvg(_ref) {
|
|
14097
14095
|
var children = _ref.children;
|
|
14098
|
-
return React__default[
|
|
14096
|
+
return React__default['default'].createElement("svg", {
|
|
14099
14097
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14100
14098
|
width: "16",
|
|
14101
14099
|
height: "16",
|
|
@@ -14112,36 +14110,36 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
14112
14110
|
var status = _ref2.status,
|
|
14113
14111
|
errorCode = _ref2.errorCode,
|
|
14114
14112
|
isListening = _ref2.isListening;
|
|
14115
|
-
return status === 'error' && errorCode === 'not-allowed' ? React__default[
|
|
14113
|
+
return status === 'error' && errorCode === 'not-allowed' ? React__default['default'].createElement(ButtonSvg, null, React__default['default'].createElement("line", {
|
|
14116
14114
|
x1: "1",
|
|
14117
14115
|
y1: "1",
|
|
14118
14116
|
x2: "23",
|
|
14119
14117
|
y2: "23"
|
|
14120
|
-
}), React__default[
|
|
14118
|
+
}), React__default['default'].createElement("path", {
|
|
14121
14119
|
d: "M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"
|
|
14122
|
-
}), React__default[
|
|
14120
|
+
}), React__default['default'].createElement("path", {
|
|
14123
14121
|
d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"
|
|
14124
|
-
}), React__default[
|
|
14122
|
+
}), React__default['default'].createElement("line", {
|
|
14125
14123
|
x1: "12",
|
|
14126
14124
|
y1: "19",
|
|
14127
14125
|
x2: "12",
|
|
14128
14126
|
y2: "23"
|
|
14129
|
-
}), React__default[
|
|
14127
|
+
}), React__default['default'].createElement("line", {
|
|
14130
14128
|
x1: "8",
|
|
14131
14129
|
y1: "23",
|
|
14132
14130
|
x2: "16",
|
|
14133
14131
|
y2: "23"
|
|
14134
|
-
})) : React__default[
|
|
14132
|
+
})) : React__default['default'].createElement(ButtonSvg, null, React__default['default'].createElement("path", {
|
|
14135
14133
|
d: "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",
|
|
14136
14134
|
fill: isListening ? 'currentColor' : ''
|
|
14137
|
-
}), React__default[
|
|
14135
|
+
}), React__default['default'].createElement("path", {
|
|
14138
14136
|
d: "M19 10v2a7 7 0 0 1-14 0v-2"
|
|
14139
|
-
}), React__default[
|
|
14137
|
+
}), React__default['default'].createElement("line", {
|
|
14140
14138
|
x1: "12",
|
|
14141
14139
|
y1: "19",
|
|
14142
14140
|
x2: "12",
|
|
14143
14141
|
y2: "23"
|
|
14144
|
-
}), React__default[
|
|
14142
|
+
}), React__default['default'].createElement("line", {
|
|
14145
14143
|
x1: "8",
|
|
14146
14144
|
y1: "23",
|
|
14147
14145
|
x2: "16",
|
|
@@ -14151,7 +14149,7 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
14151
14149
|
|
|
14152
14150
|
var DefaultStatus = function DefaultStatus(_ref3) {
|
|
14153
14151
|
var transcript = _ref3.transcript;
|
|
14154
|
-
return React__default[
|
|
14152
|
+
return React__default['default'].createElement("p", null, transcript);
|
|
14155
14153
|
};
|
|
14156
14154
|
|
|
14157
14155
|
var VoiceSearch =
|
|
@@ -14236,17 +14234,17 @@ function (_Component) {
|
|
|
14236
14234
|
isSpeechFinal: isSpeechFinal,
|
|
14237
14235
|
isBrowserSupported: isBrowserSupported()
|
|
14238
14236
|
};
|
|
14239
|
-
return React__default[
|
|
14237
|
+
return React__default['default'].createElement("div", {
|
|
14240
14238
|
className: cx$1('')
|
|
14241
|
-
}, React__default[
|
|
14239
|
+
}, React__default['default'].createElement("button", {
|
|
14242
14240
|
className: cx$1('button'),
|
|
14243
14241
|
type: "button",
|
|
14244
14242
|
title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
|
|
14245
14243
|
onClick: this.onClick,
|
|
14246
14244
|
disabled: !isBrowserSupported()
|
|
14247
|
-
}, React__default[
|
|
14245
|
+
}, React__default['default'].createElement(ButtonTextComponent, innerProps)), React__default['default'].createElement("div", {
|
|
14248
14246
|
className: cx$1('status')
|
|
14249
|
-
}, React__default[
|
|
14247
|
+
}, React__default['default'].createElement(StatusComponent, innerProps)));
|
|
14250
14248
|
}
|
|
14251
14249
|
}, {
|
|
14252
14250
|
key: "componentWillUnmount",
|
|
@@ -14279,7 +14277,7 @@ var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
|
14279
14277
|
var items = _ref.items,
|
|
14280
14278
|
className = _ref.className,
|
|
14281
14279
|
children = _ref.children;
|
|
14282
|
-
return React__default[
|
|
14280
|
+
return React__default['default'].createElement("div", {
|
|
14283
14281
|
className: index.classnames(cx(''), className)
|
|
14284
14282
|
}, children({
|
|
14285
14283
|
items: items
|
|
@@ -14287,13 +14285,13 @@ var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
|
14287
14285
|
};
|
|
14288
14286
|
|
|
14289
14287
|
QueryRuleCustomData.propTypes = {
|
|
14290
|
-
items: PropTypes__default[
|
|
14291
|
-
className: PropTypes__default[
|
|
14292
|
-
children: PropTypes__default[
|
|
14288
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].object).isRequired,
|
|
14289
|
+
className: PropTypes__default['default'].string,
|
|
14290
|
+
children: PropTypes__default['default'].func.isRequired
|
|
14293
14291
|
};
|
|
14294
14292
|
|
|
14295
14293
|
var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
14296
|
-
return React__default[
|
|
14294
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(QueryRuleCustomData, props));
|
|
14297
14295
|
};
|
|
14298
14296
|
|
|
14299
14297
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
@@ -14316,57 +14314,57 @@ var HitComponent = function HitComponent(hits, props) {
|
|
|
14316
14314
|
|
|
14317
14315
|
var dateFormat = siteType === 'pharmsci' ? 'MMMM DD, YYYY' : 'MMMM Do YYYY';
|
|
14318
14316
|
|
|
14319
|
-
return React__default[
|
|
14317
|
+
return React__default['default'].createElement(
|
|
14320
14318
|
'div',
|
|
14321
14319
|
{ key: hit.url, className: 'hitResult ' + styles.article },
|
|
14322
14320
|
hit.thumbnail && hit.thumbnail.asset ? imageDiv(hit, styles, client, siteType, defaultImage, variant) : !hit.thumbnail && siteType !== 'pharmsci' ? imageDiv(hit, styles, client, siteType, defaultImage, variant) : null,
|
|
14323
|
-
React__default[
|
|
14321
|
+
React__default['default'].createElement(
|
|
14324
14322
|
'div',
|
|
14325
14323
|
{ className: styles.info, style: props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14326
|
-
React__default[
|
|
14324
|
+
React__default['default'].createElement(
|
|
14327
14325
|
'a',
|
|
14328
14326
|
{ href: '/view/' + hit.url },
|
|
14329
|
-
React__default[
|
|
14327
|
+
React__default['default'].createElement(
|
|
14330
14328
|
'h2',
|
|
14331
14329
|
null,
|
|
14332
14330
|
hit.title
|
|
14333
14331
|
)
|
|
14334
14332
|
),
|
|
14335
|
-
hit.pubDateSort && React__default[
|
|
14333
|
+
hit.pubDateSort && React__default['default'].createElement(
|
|
14336
14334
|
'p',
|
|
14337
14335
|
{ className: styles.published },
|
|
14338
14336
|
moment.moment(hit.pubDateSort).format('' + dateFormat)
|
|
14339
14337
|
),
|
|
14340
|
-
hit.authorMapping && hit.authorMapping.length > 0 && React__default[
|
|
14338
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default['default'].createElement(
|
|
14341
14339
|
'p',
|
|
14342
14340
|
{ className: styles.author },
|
|
14343
14341
|
hit.authorMapping.map(function (author, index) {
|
|
14344
|
-
return React__default[
|
|
14342
|
+
return React__default['default'].createElement(
|
|
14345
14343
|
'span',
|
|
14346
14344
|
{ key: author + '_' + index },
|
|
14347
14345
|
author.displayName
|
|
14348
14346
|
);
|
|
14349
14347
|
})
|
|
14350
14348
|
),
|
|
14351
|
-
hit.summary && React__default[
|
|
14349
|
+
hit.summary && React__default['default'].createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14352
14350
|
)
|
|
14353
14351
|
);
|
|
14354
14352
|
};
|
|
14355
14353
|
|
|
14356
14354
|
var imageDiv = function imageDiv(hit, styles, client, siteType, defaultImage, variant) {
|
|
14357
|
-
return React__default[
|
|
14355
|
+
return React__default['default'].createElement(
|
|
14358
14356
|
'a',
|
|
14359
14357
|
{ href: '/view/' + hit.url, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14360
|
-
React__default[
|
|
14358
|
+
React__default['default'].createElement(
|
|
14361
14359
|
'div',
|
|
14362
14360
|
{ className: styles.thumb },
|
|
14363
|
-
React__default[
|
|
14361
|
+
React__default['default'].createElement(
|
|
14364
14362
|
'figure',
|
|
14365
14363
|
null,
|
|
14366
|
-
React__default[
|
|
14364
|
+
React__default['default'].createElement(
|
|
14367
14365
|
index$1.LazyLoad,
|
|
14368
14366
|
{ once: true },
|
|
14369
|
-
React__default[
|
|
14367
|
+
React__default['default'].createElement('img', {
|
|
14370
14368
|
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2._typeof(hit.thumbnail === 'string') ? hit.thumbnail : defaultImage
|
|
14371
14369
|
})
|
|
14372
14370
|
)
|
|
@@ -14391,10 +14389,10 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14391
14389
|
value: function render() {
|
|
14392
14390
|
var _this2 = this;
|
|
14393
14391
|
|
|
14394
|
-
return React__default[
|
|
14395
|
-
React__default[
|
|
14392
|
+
return React__default['default'].createElement(
|
|
14393
|
+
React__default['default'].Fragment,
|
|
14396
14394
|
null,
|
|
14397
|
-
React__default[
|
|
14395
|
+
React__default['default'].createElement(
|
|
14398
14396
|
InstantSearch,
|
|
14399
14397
|
_extends._extends({
|
|
14400
14398
|
searchClient: this.props.searchClient,
|
|
@@ -14405,43 +14403,43 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14405
14403
|
indexName: this.props.indexName,
|
|
14406
14404
|
onSearchParameters: this.props.onSearchParameters
|
|
14407
14405
|
}, this.props),
|
|
14408
|
-
React__default[
|
|
14409
|
-
React__default[
|
|
14406
|
+
React__default['default'].createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20, filters: 'pubDateSort <= ' + nowTimestamp + ' AND "visible":\'true\' AND "passwordLock":false' }),
|
|
14407
|
+
React__default['default'].createElement(
|
|
14410
14408
|
'div',
|
|
14411
14409
|
{ className: 'd-flex align-items-center' },
|
|
14412
|
-
this.props.searchIconUrl && React__default[
|
|
14410
|
+
this.props.searchIconUrl && React__default['default'].createElement(
|
|
14413
14411
|
'div',
|
|
14414
14412
|
{ className: 'custom-search-img mr-2' },
|
|
14415
|
-
React__default[
|
|
14413
|
+
React__default['default'].createElement('img', { className: 'img-fluid', src: this.props.searchIconUrl, alt: 'search icon' })
|
|
14416
14414
|
),
|
|
14417
|
-
React__default[
|
|
14415
|
+
React__default['default'].createElement(
|
|
14418
14416
|
'div',
|
|
14419
14417
|
{ style: { flex: '1 1 auto' } },
|
|
14420
|
-
React__default[
|
|
14418
|
+
React__default['default'].createElement(SearchBox, null)
|
|
14421
14419
|
)
|
|
14422
14420
|
),
|
|
14423
|
-
this.props.refinementAttributes && React__default[
|
|
14421
|
+
this.props.refinementAttributes && React__default['default'].createElement(
|
|
14424
14422
|
'div',
|
|
14425
14423
|
{ className: 'search_refinement' },
|
|
14426
14424
|
this.props.refinementAttributes.map(function (item, index) {
|
|
14427
|
-
return React__default[
|
|
14425
|
+
return React__default['default'].createElement(
|
|
14428
14426
|
reactBootstrap.DropdownButton,
|
|
14429
14427
|
{ key: item.title, align: 'end', title: item.title },
|
|
14430
|
-
React__default[
|
|
14428
|
+
React__default['default'].createElement(RefinementList, { searchable: true, showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
|
|
14431
14429
|
);
|
|
14432
14430
|
}),
|
|
14433
|
-
React__default[
|
|
14431
|
+
React__default['default'].createElement(ClearRefinements, null)
|
|
14434
14432
|
),
|
|
14435
|
-
React__default[
|
|
14433
|
+
React__default['default'].createElement(
|
|
14436
14434
|
'div',
|
|
14437
14435
|
{ className: 'AlgoliaResults' },
|
|
14438
|
-
React__default[
|
|
14436
|
+
React__default['default'].createElement(Hits, { hitComponent: function hitComponent(hit) {
|
|
14439
14437
|
return HitComponent(hit, _this2.props);
|
|
14440
14438
|
} })
|
|
14441
14439
|
),
|
|
14442
|
-
React__default[
|
|
14440
|
+
React__default['default'].createElement(Pagination, null)
|
|
14443
14441
|
),
|
|
14444
|
-
React__default[
|
|
14442
|
+
React__default['default'].createElement(
|
|
14445
14443
|
'style',
|
|
14446
14444
|
{ jsx: 'true' },
|
|
14447
14445
|
'\n .hitResult {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-bottom: 1rem;\n border-bottom: 1px solid #00000024;\n padding: 1rem 0;\n }\n .hitResult > a:first-child {\n width: 30%;\n }\n .hitResult > a:first-child > div {\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n .hitResult > div:last-child > a {\n margin-bottom: 0.5rem;\n width: 100%;\n }\n .custom-search-img{\n max-width: 130px;\n }\n @media only screen and (max-width: 568px) {\n .custom-search-img {\n max-width: 80px;\n }\n .hitResult {\n align-items: center;\n border: none;\n padding: 0;\n flex-direction: column;\n }\n .hitResult > a:first-child {\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n .search_refinement {\n flex-wrap: wrap;\n }\n .dropdown{\n margin-bottom: 1rem;\n }\n .ais-SearchBox-form{\n display: flex;\n }\n .ais-RefinementList-list {\n width: 95vw;\n }\n .ais-SearchBox-input {\n width: calc(100vw - ' + (this.props.searchIconUrl ? '110px' : '150px') + ');\n }\n }\n .AlgoliaResults {\n padding-left: 15px;\n margin-top: 3rem;\n }\n\n .search_refinement {\n display: flex;\n margin: 2rem 0;\n align-items: center;\n }\n\n .search_refinement > div {\n padding-right: 1rem;\n max-height: 500px;\n align-self: flex-start;\n }\n\n .search_refinement > .dropdown {\n position: relative;\n right: 0px;\n top: 0px;\n margin-right: 0px;\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 .ais-RefinementList{\n min-width: 325px;\n }\n .ais-RefinementList-item {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .ais-RefinementList-list {\n margin: 1rem 0;\n padding: 0 1rem;\n width: 100%;\n }\n .ais-SearchBox-form {\n width: 100%;\n border-radius: 5px;\n height: 48px;\n text-align: center\'\n }\n .ais-SearchBox-input {\n padding: 0.5rem;\n border-radius: 5px;\n width: calc(100% - ' + (this.props.searchIconUrl ? '110px' : '150px') + ');\n min-width: 225px;\n height: 48px;\n border: 0;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit {\n width: ' + (this.props.searchIconUrl ? '48px' : '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 .ais-ClearRefinements-button{\n background-color: var(--search-primary);\n border: 0.5px solid var(--search-secondary);\n color: #fff;\n padding: 7px;\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 '
|
|
@@ -14451,16 +14449,16 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14451
14449
|
}]);
|
|
14452
14450
|
|
|
14453
14451
|
return AlgoliaSearch;
|
|
14454
|
-
}(React__default[
|
|
14452
|
+
}(React__default['default'].Component);
|
|
14455
14453
|
|
|
14456
14454
|
AlgoliaSearch.propTypes = {
|
|
14457
|
-
searchState: PropTypes__default[
|
|
14458
|
-
resultsState: PropTypes__default[
|
|
14459
|
-
onSearchStateChange: PropTypes__default[
|
|
14460
|
-
createURL: PropTypes__default[
|
|
14461
|
-
indexName: PropTypes__default[
|
|
14462
|
-
searchClient: PropTypes__default[
|
|
14463
|
-
refinementAttributes: PropTypes__default[
|
|
14455
|
+
searchState: PropTypes__default['default'].object,
|
|
14456
|
+
resultsState: PropTypes__default['default'].oneOfType([PropTypes__default['default'].object, PropTypes__default['default'].array]),
|
|
14457
|
+
onSearchStateChange: PropTypes__default['default'].func,
|
|
14458
|
+
createURL: PropTypes__default['default'].func,
|
|
14459
|
+
indexName: PropTypes__default['default'].string,
|
|
14460
|
+
searchClient: PropTypes__default['default'].object,
|
|
14461
|
+
refinementAttributes: PropTypes__default['default'].array
|
|
14464
14462
|
};
|
|
14465
14463
|
|
|
14466
14464
|
module.exports = AlgoliaSearch;
|