@mjhls/mjh-framework 1.0.1067-iframe-test-2 → 1.0.1068-publication-pixel-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-93cad44d.js → ADInfeed-3a68b356.js} +6 -6
- 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-80062861.js → ADlgInfeed-d88a0250.js} +4 -4
- 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 +14 -14
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
- package/dist/cjs/ArticleSeriesListing.js +29 -29
- 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/CEDeckSupabase.js +67 -67
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +6 -6
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +26 -26
- 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 +33 -33
- 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 +111 -111
- package/dist/cjs/Header.js +25 -25
- 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 +28 -28
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-984a697b.js → ImageSlider-294d3fc0.js} +72 -72
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +22 -19
- 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-69f28654.js → MediaSeriesCard-b842b86f.js} +16 -16
- package/dist/cjs/MediaSeriesLanding.js +36 -36
- package/dist/cjs/MediaSeriesLandingPaginated.js +35 -35
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-b7b16d48.js → NavFooter-fa5fae05.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 +49 -49
- package/dist/cjs/PartnerDetailListingPaginated.js +48 -48
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +22 -22
- 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-e945bd55.js → PublicationFeature-03de3225.js} +29 -29
- package/dist/cjs/PublicationLanding.js +75 -75
- 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 +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -18
- package/dist/cjs/{SeriesSlider-a2621860.js → SeriesSlider-621d0cbb.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-e9ec9c63.js → SocialSearchComponent-f874175b.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +11 -11
- 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 +28 -28
- 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 +238 -234
- 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 +1 -1
- package/dist/cjs/getSerializers.js +6 -6
- package/dist/cjs/iconBase-be4097c0.js +4 -2
- package/dist/cjs/{index-4ef0337e.js → index-6900cba9.js} +492 -510
- package/dist/cjs/{index-65621b6c.js → index-eadd5035.js} +5 -5
- 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-2ea9e9ff.js → index.esm-f51609ab.js} +14 -14
- package/dist/cjs/index.js +99 -99
- package/dist/cjs/{main-47be4f9f.js → main-1ec1de84.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 +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +4 -1
- package/dist/esm/{MediaSeriesCard-ae514b3b.js → MediaSeriesCard-ba6a0d3b.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -2
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +1 -1
- package/dist/esm/PodcastsLanding.js +2 -2
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +5 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-1d8d115d.js → index-c10c03a2.js} +4 -22
- 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-sap-d1978572.js');
|
|
@@ -114,8 +114,6 @@ function _assertThisInitialized(self) {
|
|
|
114
114
|
function _possibleConstructorReturn(self, call) {
|
|
115
115
|
if (call && (_typeof$1._typeof(call) === "object" || typeof call === "function")) {
|
|
116
116
|
return call;
|
|
117
|
-
} else if (call !== void 0) {
|
|
118
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
return _assertThisInitialized(self);
|
|
@@ -694,7 +692,7 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
694
692
|
var searchForFacetValuesProps = typeof connectorDesc.searchForFacetValues === 'function' ? {
|
|
695
693
|
searchForItems: this.searchForFacetValues
|
|
696
694
|
} : {};
|
|
697
|
-
return React__default[
|
|
695
|
+
return React__default['default'].createElement(Composed, index._extends({}, props, providedProps, refineProps, searchForFacetValuesProps));
|
|
698
696
|
}
|
|
699
697
|
}]);
|
|
700
698
|
|
|
@@ -716,9 +714,9 @@ var createConnectorWithContext = function createConnectorWithContext(connectorDe
|
|
|
716
714
|
var Connector = createConnectorWithoutContext(connectorDesc)(Composed);
|
|
717
715
|
|
|
718
716
|
var ConnectorWrapper = function ConnectorWrapper(props) {
|
|
719
|
-
return React__default[
|
|
720
|
-
return React__default[
|
|
721
|
-
return React__default[
|
|
717
|
+
return React__default['default'].createElement(InstantSearchConsumer, null, function (contextValue) {
|
|
718
|
+
return React__default['default'].createElement(IndexConsumer, null, function (indexContextValue) {
|
|
719
|
+
return React__default['default'].createElement(Connector, index._extends({
|
|
722
720
|
contextValue: contextValue,
|
|
723
721
|
indexContextValue: indexContextValue
|
|
724
722
|
}, props));
|
|
@@ -891,7 +889,7 @@ function translatable(defaultTranslations) {
|
|
|
891
889
|
_createClass(Translatable, [{
|
|
892
890
|
key: "render",
|
|
893
891
|
value: function render() {
|
|
894
|
-
return React__default[
|
|
892
|
+
return React__default['default'].createElement(Composed, index._extends({
|
|
895
893
|
translate: this.translate
|
|
896
894
|
}, this.props));
|
|
897
895
|
}
|
|
@@ -6422,9 +6420,9 @@ function ConfigureRelatedItems() {
|
|
|
6422
6420
|
}
|
|
6423
6421
|
|
|
6424
6422
|
ConfigureRelatedItems.propTypes = {
|
|
6425
|
-
hit: PropTypes__default[
|
|
6426
|
-
matchingPatterns: PropTypes__default[
|
|
6427
|
-
transformSearchParameters: PropTypes__default[
|
|
6423
|
+
hit: PropTypes__default['default'].object.isRequired,
|
|
6424
|
+
matchingPatterns: PropTypes__default['default'].object.isRequired,
|
|
6425
|
+
transformSearchParameters: PropTypes__default['default'].func
|
|
6428
6426
|
};
|
|
6429
6427
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6430
6428
|
|
|
@@ -6436,7 +6434,7 @@ var connectDynamicWidgets = createConnectorWithContext({
|
|
|
6436
6434
|
}
|
|
6437
6435
|
},
|
|
6438
6436
|
propTypes: {
|
|
6439
|
-
transformItems: PropTypes__default[
|
|
6437
|
+
transformItems: PropTypes__default['default'].func
|
|
6440
6438
|
},
|
|
6441
6439
|
getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
|
|
6442
6440
|
var results = getResults(searchResults, {
|
|
@@ -6473,7 +6471,7 @@ function getAttribute(component) {
|
|
|
6473
6471
|
}
|
|
6474
6472
|
|
|
6475
6473
|
if (component.props.children) {
|
|
6476
|
-
return getAttribute(React__default[
|
|
6474
|
+
return getAttribute(React__default['default'].Children.only(component.props.children));
|
|
6477
6475
|
}
|
|
6478
6476
|
|
|
6479
6477
|
return undefined;
|
|
@@ -6487,7 +6485,7 @@ function DynamicWidgets(_ref) {
|
|
|
6487
6485
|
return null;
|
|
6488
6486
|
} : _ref$fallbackComponen;
|
|
6489
6487
|
var widgets = new Map();
|
|
6490
|
-
React__default[
|
|
6488
|
+
React__default['default'].Children.forEach(children, function (child) {
|
|
6491
6489
|
var attribute = getAttribute(child);
|
|
6492
6490
|
|
|
6493
6491
|
if (!attribute) {
|
|
@@ -6498,10 +6496,10 @@ function DynamicWidgets(_ref) {
|
|
|
6498
6496
|
}); // on initial render this will be empty, but React InstantSearch keeps
|
|
6499
6497
|
// search state for unmounted components in place, so routing works.
|
|
6500
6498
|
|
|
6501
|
-
return React__default[
|
|
6502
|
-
return React__default[
|
|
6499
|
+
return React__default['default'].createElement(React__default['default'].Fragment, null, attributesToRender.map(function (attribute) {
|
|
6500
|
+
return React__default['default'].createElement(React.Fragment, {
|
|
6503
6501
|
key: attribute
|
|
6504
|
-
}, widgets.get(attribute) || React__default[
|
|
6502
|
+
}, widgets.get(attribute) || React__default['default'].createElement(Fallback, {
|
|
6505
6503
|
attribute: attribute
|
|
6506
6504
|
}));
|
|
6507
6505
|
}));
|
|
@@ -6746,7 +6744,7 @@ function (_Component) {
|
|
|
6746
6744
|
return null;
|
|
6747
6745
|
}
|
|
6748
6746
|
|
|
6749
|
-
return React__default[
|
|
6747
|
+
return React__default['default'].createElement(IndexProvider, {
|
|
6750
6748
|
value: this.state.indexContext
|
|
6751
6749
|
}, this.props.children);
|
|
6752
6750
|
}
|
|
@@ -6756,14 +6754,14 @@ function (_Component) {
|
|
|
6756
6754
|
}(React.Component);
|
|
6757
6755
|
|
|
6758
6756
|
_defineProperty(Index, "propTypes", {
|
|
6759
|
-
indexName: PropTypes__default[
|
|
6760
|
-
indexId: PropTypes__default[
|
|
6761
|
-
children: PropTypes__default[
|
|
6757
|
+
indexName: PropTypes__default['default'].string.isRequired,
|
|
6758
|
+
indexId: PropTypes__default['default'].string.isRequired,
|
|
6759
|
+
children: PropTypes__default['default'].node
|
|
6762
6760
|
});
|
|
6763
6761
|
|
|
6764
6762
|
({
|
|
6765
|
-
indexName: PropTypes__default[
|
|
6766
|
-
indexId: PropTypes__default[
|
|
6763
|
+
indexName: PropTypes__default['default'].string.isRequired,
|
|
6764
|
+
indexId: PropTypes__default['default'].string
|
|
6767
6765
|
});
|
|
6768
6766
|
|
|
6769
6767
|
function createWidgetsManager(onWidgetsUpdate) {
|
|
@@ -7571,7 +7569,7 @@ function (_Component) {
|
|
|
7571
7569
|
return null;
|
|
7572
7570
|
}
|
|
7573
7571
|
|
|
7574
|
-
return React__default[
|
|
7572
|
+
return React__default['default'].createElement(InstantSearchProvider, {
|
|
7575
7573
|
value: this.state.contextValue
|
|
7576
7574
|
}, this.props.children);
|
|
7577
7575
|
}
|
|
@@ -7587,22 +7585,22 @@ _defineProperty(InstantSearch, "defaultProps", {
|
|
|
7587
7585
|
|
|
7588
7586
|
_defineProperty(InstantSearch, "propTypes", {
|
|
7589
7587
|
// @TODO: These props are currently constant.
|
|
7590
|
-
indexName: PropTypes__default[
|
|
7591
|
-
searchClient: PropTypes__default[
|
|
7592
|
-
search: PropTypes__default[
|
|
7593
|
-
searchForFacetValues: PropTypes__default[
|
|
7594
|
-
addAlgoliaAgent: PropTypes__default[
|
|
7595
|
-
clearCache: PropTypes__default[
|
|
7588
|
+
indexName: PropTypes__default['default'].string.isRequired,
|
|
7589
|
+
searchClient: PropTypes__default['default'].shape({
|
|
7590
|
+
search: PropTypes__default['default'].func.isRequired,
|
|
7591
|
+
searchForFacetValues: PropTypes__default['default'].func,
|
|
7592
|
+
addAlgoliaAgent: PropTypes__default['default'].func,
|
|
7593
|
+
clearCache: PropTypes__default['default'].func
|
|
7596
7594
|
}).isRequired,
|
|
7597
|
-
createURL: PropTypes__default[
|
|
7598
|
-
refresh: PropTypes__default[
|
|
7599
|
-
searchState: PropTypes__default[
|
|
7600
|
-
onSearchStateChange: PropTypes__default[
|
|
7601
|
-
onSearchParameters: PropTypes__default[
|
|
7602
|
-
widgetsCollector: PropTypes__default[
|
|
7603
|
-
resultsState: PropTypes__default[
|
|
7604
|
-
children: PropTypes__default[
|
|
7605
|
-
stalledSearchDelay: PropTypes__default[
|
|
7595
|
+
createURL: PropTypes__default['default'].func,
|
|
7596
|
+
refresh: PropTypes__default['default'].bool,
|
|
7597
|
+
searchState: PropTypes__default['default'].object,
|
|
7598
|
+
onSearchStateChange: PropTypes__default['default'].func,
|
|
7599
|
+
onSearchParameters: PropTypes__default['default'].func,
|
|
7600
|
+
widgetsCollector: PropTypes__default['default'].func,
|
|
7601
|
+
resultsState: PropTypes__default['default'].oneOfType([PropTypes__default['default'].object, PropTypes__default['default'].array]),
|
|
7602
|
+
children: PropTypes__default['default'].node,
|
|
7603
|
+
stalledSearchDelay: PropTypes__default['default'].number
|
|
7606
7604
|
});
|
|
7607
7605
|
|
|
7608
7606
|
var getId$d = function getId(props) {
|
|
@@ -7689,7 +7687,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7689
7687
|
|
|
7690
7688
|
return undefined;
|
|
7691
7689
|
},
|
|
7692
|
-
transformItems: PropTypes__default[
|
|
7690
|
+
transformItems: PropTypes__default['default'].func
|
|
7693
7691
|
},
|
|
7694
7692
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7695
7693
|
var id = getId$d(props);
|
|
@@ -7738,7 +7736,7 @@ var connectBreadcrumb = createConnectorWithContext({
|
|
|
7738
7736
|
var connectCurrentRefinements = createConnectorWithContext({
|
|
7739
7737
|
displayName: 'AlgoliaCurrentRefinements',
|
|
7740
7738
|
propTypes: {
|
|
7741
|
-
transformItems: PropTypes__default[
|
|
7739
|
+
transformItems: PropTypes__default['default'].func
|
|
7742
7740
|
},
|
|
7743
7741
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata) {
|
|
7744
7742
|
var items = metadata.reduce(function (res, meta) {
|
|
@@ -7917,15 +7915,15 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7917
7915
|
|
|
7918
7916
|
return undefined;
|
|
7919
7917
|
},
|
|
7920
|
-
separator: PropTypes__default[
|
|
7921
|
-
rootPath: PropTypes__default[
|
|
7922
|
-
showParentLevel: PropTypes__default[
|
|
7923
|
-
defaultRefinement: PropTypes__default[
|
|
7924
|
-
showMore: PropTypes__default[
|
|
7925
|
-
limit: PropTypes__default[
|
|
7926
|
-
showMoreLimit: PropTypes__default[
|
|
7927
|
-
transformItems: PropTypes__default[
|
|
7928
|
-
facetOrdering: PropTypes__default[
|
|
7918
|
+
separator: PropTypes__default['default'].string,
|
|
7919
|
+
rootPath: PropTypes__default['default'].string,
|
|
7920
|
+
showParentLevel: PropTypes__default['default'].bool,
|
|
7921
|
+
defaultRefinement: PropTypes__default['default'].string,
|
|
7922
|
+
showMore: PropTypes__default['default'].bool,
|
|
7923
|
+
limit: PropTypes__default['default'].number,
|
|
7924
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
7925
|
+
transformItems: PropTypes__default['default'].func,
|
|
7926
|
+
facetOrdering: PropTypes__default['default'].bool
|
|
7929
7927
|
},
|
|
7930
7928
|
defaultProps: {
|
|
7931
7929
|
showMore: false,
|
|
@@ -8241,12 +8239,12 @@ function getCurrentRefinement$a(props, searchState, context) {
|
|
|
8241
8239
|
var connectHitsPerPage = createConnectorWithContext({
|
|
8242
8240
|
displayName: 'AlgoliaHitsPerPage',
|
|
8243
8241
|
propTypes: {
|
|
8244
|
-
defaultRefinement: PropTypes__default[
|
|
8245
|
-
items: PropTypes__default[
|
|
8246
|
-
label: PropTypes__default[
|
|
8247
|
-
value: PropTypes__default[
|
|
8242
|
+
defaultRefinement: PropTypes__default['default'].number.isRequired,
|
|
8243
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
8244
|
+
label: PropTypes__default['default'].string,
|
|
8245
|
+
value: PropTypes__default['default'].number.isRequired
|
|
8248
8246
|
})).isRequired,
|
|
8249
|
-
transformItems: PropTypes__default[
|
|
8247
|
+
transformItems: PropTypes__default['default'].func
|
|
8250
8248
|
},
|
|
8251
8249
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
8252
8250
|
var currentRefinement = getCurrentRefinement$a(props, searchState, {
|
|
@@ -8508,14 +8506,14 @@ var defaultSortBy = ['count:desc', 'name:asc'];
|
|
|
8508
8506
|
var connectMenu = createConnectorWithContext({
|
|
8509
8507
|
displayName: 'AlgoliaMenu',
|
|
8510
8508
|
propTypes: {
|
|
8511
|
-
attribute: PropTypes__default[
|
|
8512
|
-
showMore: PropTypes__default[
|
|
8513
|
-
limit: PropTypes__default[
|
|
8514
|
-
showMoreLimit: PropTypes__default[
|
|
8515
|
-
defaultRefinement: PropTypes__default[
|
|
8516
|
-
transformItems: PropTypes__default[
|
|
8517
|
-
searchable: PropTypes__default[
|
|
8518
|
-
facetOrdering: PropTypes__default[
|
|
8509
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
8510
|
+
showMore: PropTypes__default['default'].bool,
|
|
8511
|
+
limit: PropTypes__default['default'].number,
|
|
8512
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
8513
|
+
defaultRefinement: PropTypes__default['default'].string,
|
|
8514
|
+
transformItems: PropTypes__default['default'].func,
|
|
8515
|
+
searchable: PropTypes__default['default'].bool,
|
|
8516
|
+
facetOrdering: PropTypes__default['default'].bool
|
|
8519
8517
|
},
|
|
8520
8518
|
defaultProps: {
|
|
8521
8519
|
showMore: false,
|
|
@@ -8791,14 +8789,14 @@ function _cleanUp$5(props, searchState, context) {
|
|
|
8791
8789
|
var connectNumericMenu = createConnectorWithContext({
|
|
8792
8790
|
displayName: 'AlgoliaNumericMenu',
|
|
8793
8791
|
propTypes: {
|
|
8794
|
-
id: PropTypes__default[
|
|
8795
|
-
attribute: PropTypes__default[
|
|
8796
|
-
items: PropTypes__default[
|
|
8797
|
-
label: PropTypes__default[
|
|
8798
|
-
start: PropTypes__default[
|
|
8799
|
-
end: PropTypes__default[
|
|
8792
|
+
id: PropTypes__default['default'].string,
|
|
8793
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
8794
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
8795
|
+
label: PropTypes__default['default'].node,
|
|
8796
|
+
start: PropTypes__default['default'].number,
|
|
8797
|
+
end: PropTypes__default['default'].number
|
|
8800
8798
|
})).isRequired,
|
|
8801
|
-
transformItems: PropTypes__default[
|
|
8799
|
+
transformItems: PropTypes__default['default'].func
|
|
8802
8800
|
},
|
|
8803
8801
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
8804
8802
|
var attribute = props.attribute;
|
|
@@ -9190,17 +9188,17 @@ function _cleanUp$4(props, searchState, context) {
|
|
|
9190
9188
|
var connectRange = createConnectorWithContext({
|
|
9191
9189
|
displayName: 'AlgoliaRange',
|
|
9192
9190
|
propTypes: {
|
|
9193
|
-
id: PropTypes__default[
|
|
9194
|
-
attribute: PropTypes__default[
|
|
9195
|
-
defaultRefinement: PropTypes__default[
|
|
9196
|
-
min: PropTypes__default[
|
|
9197
|
-
max: PropTypes__default[
|
|
9191
|
+
id: PropTypes__default['default'].string,
|
|
9192
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
9193
|
+
defaultRefinement: PropTypes__default['default'].shape({
|
|
9194
|
+
min: PropTypes__default['default'].number,
|
|
9195
|
+
max: PropTypes__default['default'].number
|
|
9198
9196
|
}),
|
|
9199
|
-
min: PropTypes__default[
|
|
9200
|
-
max: PropTypes__default[
|
|
9201
|
-
precision: PropTypes__default[
|
|
9202
|
-
header: PropTypes__default[
|
|
9203
|
-
footer: PropTypes__default[
|
|
9197
|
+
min: PropTypes__default['default'].number,
|
|
9198
|
+
max: PropTypes__default['default'].number,
|
|
9199
|
+
precision: PropTypes__default['default'].number,
|
|
9200
|
+
header: PropTypes__default['default'].node,
|
|
9201
|
+
footer: PropTypes__default['default'].node
|
|
9204
9202
|
},
|
|
9205
9203
|
defaultProps: {
|
|
9206
9204
|
precision: 0
|
|
@@ -9423,16 +9421,16 @@ var sortBy = ['isRefined', 'count:desc', 'name:asc'];
|
|
|
9423
9421
|
var connectRefinementList = createConnectorWithContext({
|
|
9424
9422
|
displayName: 'AlgoliaRefinementList',
|
|
9425
9423
|
propTypes: {
|
|
9426
|
-
id: PropTypes__default[
|
|
9427
|
-
attribute: PropTypes__default[
|
|
9428
|
-
operator: PropTypes__default[
|
|
9429
|
-
showMore: PropTypes__default[
|
|
9430
|
-
limit: PropTypes__default[
|
|
9431
|
-
showMoreLimit: PropTypes__default[
|
|
9432
|
-
defaultRefinement: PropTypes__default[
|
|
9433
|
-
searchable: PropTypes__default[
|
|
9434
|
-
transformItems: PropTypes__default[
|
|
9435
|
-
facetOrdering: PropTypes__default[
|
|
9424
|
+
id: PropTypes__default['default'].string,
|
|
9425
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
9426
|
+
operator: PropTypes__default['default'].oneOf(['and', 'or']),
|
|
9427
|
+
showMore: PropTypes__default['default'].bool,
|
|
9428
|
+
limit: PropTypes__default['default'].number,
|
|
9429
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
9430
|
+
defaultRefinement: PropTypes__default['default'].arrayOf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number])),
|
|
9431
|
+
searchable: PropTypes__default['default'].bool,
|
|
9432
|
+
transformItems: PropTypes__default['default'].func,
|
|
9433
|
+
facetOrdering: PropTypes__default['default'].bool
|
|
9436
9434
|
},
|
|
9437
9435
|
defaultProps: {
|
|
9438
9436
|
operator: 'or',
|
|
@@ -9591,7 +9589,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9591
9589
|
var connectScrollTo = createConnectorWithContext({
|
|
9592
9590
|
displayName: 'AlgoliaScrollTo',
|
|
9593
9591
|
propTypes: {
|
|
9594
|
-
scrollOn: PropTypes__default[
|
|
9592
|
+
scrollOn: PropTypes__default['default'].string
|
|
9595
9593
|
},
|
|
9596
9594
|
defaultProps: {
|
|
9597
9595
|
scrollOn: 'page'
|
|
@@ -9680,7 +9678,7 @@ function _cleanUp$2(props, searchState, context) {
|
|
|
9680
9678
|
var connectSearchBox = createConnectorWithContext({
|
|
9681
9679
|
displayName: 'AlgoliaSearchBox',
|
|
9682
9680
|
propTypes: {
|
|
9683
|
-
defaultRefinement: PropTypes__default[
|
|
9681
|
+
defaultRefinement: PropTypes__default['default'].string
|
|
9684
9682
|
},
|
|
9685
9683
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9686
9684
|
return {
|
|
@@ -9816,12 +9814,12 @@ function getCurrentRefinement$1(props, searchState, context) {
|
|
|
9816
9814
|
var connectSortBy = createConnectorWithContext({
|
|
9817
9815
|
displayName: 'AlgoliaSortBy',
|
|
9818
9816
|
propTypes: {
|
|
9819
|
-
defaultRefinement: PropTypes__default[
|
|
9820
|
-
items: PropTypes__default[
|
|
9821
|
-
label: PropTypes__default[
|
|
9822
|
-
value: PropTypes__default[
|
|
9817
|
+
defaultRefinement: PropTypes__default['default'].string,
|
|
9818
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
9819
|
+
label: PropTypes__default['default'].string,
|
|
9820
|
+
value: PropTypes__default['default'].string.isRequired
|
|
9823
9821
|
})).isRequired,
|
|
9824
|
-
transformItems: PropTypes__default[
|
|
9822
|
+
transformItems: PropTypes__default['default'].func
|
|
9825
9823
|
},
|
|
9826
9824
|
getProvidedProps: function getProvidedProps(props, searchState) {
|
|
9827
9825
|
var currentRefinement = getCurrentRefinement$1(props, searchState, {
|
|
@@ -9955,11 +9953,11 @@ function _cleanUp$1(props, searchState, context) {
|
|
|
9955
9953
|
var connectToggleRefinement = createConnectorWithContext({
|
|
9956
9954
|
displayName: 'AlgoliaToggle',
|
|
9957
9955
|
propTypes: {
|
|
9958
|
-
label: PropTypes__default[
|
|
9959
|
-
attribute: PropTypes__default[
|
|
9960
|
-
value: PropTypes__default[
|
|
9961
|
-
filter: PropTypes__default[
|
|
9962
|
-
defaultRefinement: PropTypes__default[
|
|
9956
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
9957
|
+
attribute: PropTypes__default['default'].string.isRequired,
|
|
9958
|
+
value: PropTypes__default['default'].any.isRequired,
|
|
9959
|
+
filter: PropTypes__default['default'].func,
|
|
9960
|
+
defaultRefinement: PropTypes__default['default'].bool
|
|
9963
9961
|
},
|
|
9964
9962
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
9965
9963
|
var attribute = props.attribute,
|
|
@@ -10119,7 +10117,7 @@ function _cleanUp(props, searchState, context) {
|
|
|
10119
10117
|
var connectVoiceSearch = createConnectorWithContext({
|
|
10120
10118
|
displayName: 'AlgoliaVoiceSearch',
|
|
10121
10119
|
propTypes: {
|
|
10122
|
-
defaultRefinement: PropTypes__default[
|
|
10120
|
+
defaultRefinement: PropTypes__default['default'].string
|
|
10123
10121
|
},
|
|
10124
10122
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
10125
10123
|
return {
|
|
@@ -10281,15 +10279,15 @@ function (_Component) {
|
|
|
10281
10279
|
header = _this$props.header,
|
|
10282
10280
|
footer = _this$props.footer;
|
|
10283
10281
|
var canRefine = this.state.canRefine;
|
|
10284
|
-
return React__default[
|
|
10282
|
+
return React__default['default'].createElement("div", {
|
|
10285
10283
|
className: index.classnames(cx$p('', !canRefine && '-noRefinement'), className)
|
|
10286
|
-
}, header && React__default[
|
|
10284
|
+
}, header && React__default['default'].createElement("div", {
|
|
10287
10285
|
className: cx$p('header')
|
|
10288
|
-
}, header), React__default[
|
|
10286
|
+
}, header), React__default['default'].createElement("div", {
|
|
10289
10287
|
className: cx$p('body')
|
|
10290
|
-
}, React__default[
|
|
10288
|
+
}, React__default['default'].createElement(PanelProvider, {
|
|
10291
10289
|
value: this.setCanRefine
|
|
10292
|
-
}, children)), footer && React__default[
|
|
10290
|
+
}, children)), footer && React__default['default'].createElement("div", {
|
|
10293
10291
|
className: cx$p('footer')
|
|
10294
10292
|
}, footer));
|
|
10295
10293
|
}
|
|
@@ -10299,10 +10297,10 @@ function (_Component) {
|
|
|
10299
10297
|
}(React.Component);
|
|
10300
10298
|
|
|
10301
10299
|
_defineProperty(Panel, "propTypes", {
|
|
10302
|
-
children: PropTypes__default[
|
|
10303
|
-
className: PropTypes__default[
|
|
10304
|
-
header: PropTypes__default[
|
|
10305
|
-
footer: PropTypes__default[
|
|
10300
|
+
children: PropTypes__default['default'].node.isRequired,
|
|
10301
|
+
className: PropTypes__default['default'].string,
|
|
10302
|
+
header: PropTypes__default['default'].node,
|
|
10303
|
+
footer: PropTypes__default['default'].node
|
|
10306
10304
|
});
|
|
10307
10305
|
|
|
10308
10306
|
_defineProperty(Panel, "defaultProps", {
|
|
@@ -10345,16 +10343,16 @@ function (_Component) {
|
|
|
10345
10343
|
}(React.Component);
|
|
10346
10344
|
|
|
10347
10345
|
_defineProperty(PanelCallbackHandler, "propTypes", {
|
|
10348
|
-
children: PropTypes__default[
|
|
10349
|
-
canRefine: PropTypes__default[
|
|
10350
|
-
setCanRefine: PropTypes__default[
|
|
10346
|
+
children: PropTypes__default['default'].node.isRequired,
|
|
10347
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10348
|
+
setCanRefine: PropTypes__default['default'].func.isRequired
|
|
10351
10349
|
});
|
|
10352
10350
|
|
|
10353
10351
|
var PanelWrapper = function PanelWrapper(_ref) {
|
|
10354
10352
|
var canRefine = _ref.canRefine,
|
|
10355
10353
|
children = _ref.children;
|
|
10356
|
-
return React__default[
|
|
10357
|
-
return React__default[
|
|
10354
|
+
return React__default['default'].createElement(PanelConsumer, null, function (setCanRefine) {
|
|
10355
|
+
return React__default['default'].createElement(PanelCallbackHandler, {
|
|
10358
10356
|
setCanRefine: setCanRefine,
|
|
10359
10357
|
canRefine: canRefine
|
|
10360
10358
|
}, children);
|
|
@@ -10362,8 +10360,8 @@ var PanelWrapper = function PanelWrapper(_ref) {
|
|
|
10362
10360
|
};
|
|
10363
10361
|
|
|
10364
10362
|
PanelWrapper.propTypes = {
|
|
10365
|
-
canRefine: PropTypes__default[
|
|
10366
|
-
children: PropTypes__default[
|
|
10363
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10364
|
+
children: PropTypes__default['default'].node.isRequired
|
|
10367
10365
|
};
|
|
10368
10366
|
|
|
10369
10367
|
var Link =
|
|
@@ -10400,7 +10398,7 @@ function (_Component) {
|
|
|
10400
10398
|
_createClass(Link, [{
|
|
10401
10399
|
key: "render",
|
|
10402
10400
|
value: function render() {
|
|
10403
|
-
return React__default[
|
|
10401
|
+
return React__default['default'].createElement("a", index._extends({}, this.props, {
|
|
10404
10402
|
onClick: this.onClick
|
|
10405
10403
|
}));
|
|
10406
10404
|
}
|
|
@@ -10410,13 +10408,13 @@ function (_Component) {
|
|
|
10410
10408
|
}(React.Component);
|
|
10411
10409
|
|
|
10412
10410
|
_defineProperty(Link, "propTypes", {
|
|
10413
|
-
onClick: PropTypes__default[
|
|
10411
|
+
onClick: PropTypes__default['default'].func.isRequired
|
|
10414
10412
|
});
|
|
10415
10413
|
|
|
10416
10414
|
var cx$o = createClassNames('Breadcrumb');
|
|
10417
|
-
var itemsPropType$2 = PropTypes__default[
|
|
10418
|
-
label: PropTypes__default[
|
|
10419
|
-
value: PropTypes__default[
|
|
10415
|
+
var itemsPropType$2 = PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
10416
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
10417
|
+
value: PropTypes__default['default'].string.isRequired
|
|
10420
10418
|
}));
|
|
10421
10419
|
|
|
10422
10420
|
var Breadcrumb =
|
|
@@ -10442,9 +10440,9 @@ function (_Component) {
|
|
|
10442
10440
|
separator = _this$props.separator,
|
|
10443
10441
|
translate = _this$props.translate,
|
|
10444
10442
|
className = _this$props.className;
|
|
10445
|
-
var rootPath = canRefine ? React__default[
|
|
10443
|
+
var rootPath = canRefine ? React__default['default'].createElement("li", {
|
|
10446
10444
|
className: cx$o('item')
|
|
10447
|
-
}, React__default[
|
|
10445
|
+
}, React__default['default'].createElement(Link, {
|
|
10448
10446
|
className: cx$o('link'),
|
|
10449
10447
|
onClick: function onClick() {
|
|
10450
10448
|
return !rootURL ? refine() : null;
|
|
@@ -10453,12 +10451,12 @@ function (_Component) {
|
|
|
10453
10451
|
}, translate('rootLabel'))) : null;
|
|
10454
10452
|
var breadcrumb = items.map(function (item, idx) {
|
|
10455
10453
|
var isLast = idx === items.length - 1;
|
|
10456
|
-
return React__default[
|
|
10454
|
+
return React__default['default'].createElement("li", {
|
|
10457
10455
|
className: cx$o('item', isLast && 'item--selected'),
|
|
10458
10456
|
key: idx
|
|
10459
|
-
}, React__default[
|
|
10457
|
+
}, React__default['default'].createElement("span", {
|
|
10460
10458
|
className: cx$o('separator')
|
|
10461
|
-
}, separator), !isLast ? React__default[
|
|
10459
|
+
}, separator), !isLast ? React__default['default'].createElement(Link, {
|
|
10462
10460
|
className: cx$o('link'),
|
|
10463
10461
|
onClick: function onClick() {
|
|
10464
10462
|
return refine(item.value);
|
|
@@ -10466,9 +10464,9 @@ function (_Component) {
|
|
|
10466
10464
|
href: createURL(item.value)
|
|
10467
10465
|
}, item.label) : item.label);
|
|
10468
10466
|
});
|
|
10469
|
-
return React__default[
|
|
10467
|
+
return React__default['default'].createElement("div", {
|
|
10470
10468
|
className: index.classnames(cx$o('', !canRefine && '-noRefinement'), className)
|
|
10471
|
-
}, React__default[
|
|
10469
|
+
}, React__default['default'].createElement("ul", {
|
|
10472
10470
|
className: cx$o('list')
|
|
10473
10471
|
}, rootPath, breadcrumb));
|
|
10474
10472
|
}
|
|
@@ -10478,14 +10476,14 @@ function (_Component) {
|
|
|
10478
10476
|
}(React.Component);
|
|
10479
10477
|
|
|
10480
10478
|
_defineProperty(Breadcrumb, "propTypes", {
|
|
10481
|
-
canRefine: PropTypes__default[
|
|
10482
|
-
createURL: PropTypes__default[
|
|
10479
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10480
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
10483
10481
|
items: itemsPropType$2,
|
|
10484
|
-
refine: PropTypes__default[
|
|
10485
|
-
rootURL: PropTypes__default[
|
|
10486
|
-
separator: PropTypes__default[
|
|
10487
|
-
translate: PropTypes__default[
|
|
10488
|
-
className: PropTypes__default[
|
|
10482
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
10483
|
+
rootURL: PropTypes__default['default'].string,
|
|
10484
|
+
separator: PropTypes__default['default'].node,
|
|
10485
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
10486
|
+
className: PropTypes__default['default'].string
|
|
10489
10487
|
});
|
|
10490
10488
|
|
|
10491
10489
|
_defineProperty(Breadcrumb, "defaultProps", {
|
|
@@ -10587,7 +10585,7 @@ var Breadcrumb$1 = translatable({
|
|
|
10587
10585
|
*/
|
|
10588
10586
|
|
|
10589
10587
|
var BreadcrumbWidget = function BreadcrumbWidget(props) {
|
|
10590
|
-
return React__default[
|
|
10588
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(Breadcrumb$1, props));
|
|
10591
10589
|
};
|
|
10592
10590
|
|
|
10593
10591
|
connectBreadcrumb(BreadcrumbWidget);
|
|
@@ -10614,9 +10612,9 @@ function (_Component) {
|
|
|
10614
10612
|
refine = _this$props.refine,
|
|
10615
10613
|
translate = _this$props.translate,
|
|
10616
10614
|
className = _this$props.className;
|
|
10617
|
-
return React__default[
|
|
10615
|
+
return React__default['default'].createElement("div", {
|
|
10618
10616
|
className: index.classnames(cx$n(''), className)
|
|
10619
|
-
}, React__default[
|
|
10617
|
+
}, React__default['default'].createElement("button", {
|
|
10620
10618
|
className: cx$n('button', !canRefine && 'button--disabled'),
|
|
10621
10619
|
onClick: function onClick() {
|
|
10622
10620
|
return refine(items);
|
|
@@ -10630,11 +10628,11 @@ function (_Component) {
|
|
|
10630
10628
|
}(React.Component);
|
|
10631
10629
|
|
|
10632
10630
|
_defineProperty(ClearRefinements$1, "propTypes", {
|
|
10633
|
-
items: PropTypes__default[
|
|
10634
|
-
canRefine: PropTypes__default[
|
|
10635
|
-
refine: PropTypes__default[
|
|
10636
|
-
translate: PropTypes__default[
|
|
10637
|
-
className: PropTypes__default[
|
|
10631
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].object).isRequired,
|
|
10632
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10633
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
10634
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
10635
|
+
className: PropTypes__default['default'].string
|
|
10638
10636
|
});
|
|
10639
10637
|
|
|
10640
10638
|
_defineProperty(ClearRefinements$1, "defaultProps", {
|
|
@@ -10680,7 +10678,7 @@ var ClearRefinements$2 = translatable({
|
|
|
10680
10678
|
*/
|
|
10681
10679
|
|
|
10682
10680
|
var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
|
|
10683
|
-
return React__default[
|
|
10681
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(ClearRefinements$2, props));
|
|
10684
10682
|
};
|
|
10685
10683
|
|
|
10686
10684
|
var ClearRefinements = connectCurrentRefinements(ClearRefinementsWidget);
|
|
@@ -10692,31 +10690,31 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10692
10690
|
refine = _ref.refine,
|
|
10693
10691
|
translate = _ref.translate,
|
|
10694
10692
|
className = _ref.className;
|
|
10695
|
-
return React__default[
|
|
10693
|
+
return React__default['default'].createElement("div", {
|
|
10696
10694
|
className: index.classnames(cx$m('', !canRefine && '-noRefinement'), className)
|
|
10697
|
-
}, React__default[
|
|
10695
|
+
}, React__default['default'].createElement("ul", {
|
|
10698
10696
|
className: cx$m('list', !canRefine && 'list--noRefinement')
|
|
10699
10697
|
}, items.map(function (item) {
|
|
10700
|
-
return React__default[
|
|
10698
|
+
return React__default['default'].createElement("li", {
|
|
10701
10699
|
key: item.label,
|
|
10702
10700
|
className: cx$m('item')
|
|
10703
|
-
}, React__default[
|
|
10701
|
+
}, React__default['default'].createElement("span", {
|
|
10704
10702
|
className: cx$m('label')
|
|
10705
10703
|
}, item.label), item.items ? item.items.map(function (nest) {
|
|
10706
|
-
return React__default[
|
|
10704
|
+
return React__default['default'].createElement("span", {
|
|
10707
10705
|
key: nest.label,
|
|
10708
10706
|
className: cx$m('category')
|
|
10709
|
-
}, React__default[
|
|
10707
|
+
}, React__default['default'].createElement("span", {
|
|
10710
10708
|
className: cx$m('categoryLabel')
|
|
10711
|
-
}, nest.label), React__default[
|
|
10709
|
+
}, nest.label), React__default['default'].createElement("button", {
|
|
10712
10710
|
className: cx$m('delete'),
|
|
10713
10711
|
onClick: function onClick() {
|
|
10714
10712
|
return refine(nest.value);
|
|
10715
10713
|
}
|
|
10716
10714
|
}, translate('clearFilter', nest)));
|
|
10717
|
-
}) : React__default[
|
|
10715
|
+
}) : React__default['default'].createElement("span", {
|
|
10718
10716
|
className: cx$m('category')
|
|
10719
|
-
}, React__default[
|
|
10717
|
+
}, React__default['default'].createElement("button", {
|
|
10720
10718
|
className: cx$m('delete'),
|
|
10721
10719
|
onClick: function onClick() {
|
|
10722
10720
|
return refine(item.value);
|
|
@@ -10724,19 +10722,19 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
|
|
|
10724
10722
|
}, translate('clearFilter', item))));
|
|
10725
10723
|
})));
|
|
10726
10724
|
};
|
|
10727
|
-
var itemPropTypes = PropTypes__default[
|
|
10728
|
-
label: PropTypes__default[
|
|
10729
|
-
value: PropTypes__default[
|
|
10725
|
+
var itemPropTypes = PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
10726
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
10727
|
+
value: PropTypes__default['default'].func.isRequired,
|
|
10730
10728
|
items: function items() {
|
|
10731
10729
|
return itemPropTypes.apply(void 0, arguments);
|
|
10732
10730
|
}
|
|
10733
10731
|
}));
|
|
10734
10732
|
CurrentRefinements.propTypes = {
|
|
10735
10733
|
items: itemPropTypes.isRequired,
|
|
10736
|
-
canRefine: PropTypes__default[
|
|
10737
|
-
refine: PropTypes__default[
|
|
10738
|
-
translate: PropTypes__default[
|
|
10739
|
-
className: PropTypes__default[
|
|
10734
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
10735
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
10736
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
10737
|
+
className: PropTypes__default['default'].string
|
|
10740
10738
|
};
|
|
10741
10739
|
CurrentRefinements.defaultProps = {
|
|
10742
10740
|
className: ''
|
|
@@ -10788,33 +10786,33 @@ var CurrentRefinements$1 = translatable({
|
|
|
10788
10786
|
*/
|
|
10789
10787
|
|
|
10790
10788
|
var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
|
|
10791
|
-
return React__default[
|
|
10789
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(CurrentRefinements$1, props));
|
|
10792
10790
|
};
|
|
10793
10791
|
|
|
10794
10792
|
connectCurrentRefinements(CurrentRefinementsWidget);
|
|
10795
10793
|
|
|
10796
10794
|
var cx$l = createClassNames('SearchBox');
|
|
10797
|
-
var defaultLoadingIndicator = React__default[
|
|
10795
|
+
var defaultLoadingIndicator = React__default['default'].createElement("svg", {
|
|
10798
10796
|
width: "18",
|
|
10799
10797
|
height: "18",
|
|
10800
10798
|
viewBox: "0 0 38 38",
|
|
10801
10799
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10802
10800
|
stroke: "#444",
|
|
10803
10801
|
className: cx$l('loadingIcon')
|
|
10804
|
-
}, React__default[
|
|
10802
|
+
}, React__default['default'].createElement("g", {
|
|
10805
10803
|
fill: "none",
|
|
10806
10804
|
fillRule: "evenodd"
|
|
10807
|
-
}, React__default[
|
|
10805
|
+
}, React__default['default'].createElement("g", {
|
|
10808
10806
|
transform: "translate(1 1)",
|
|
10809
10807
|
strokeWidth: "2"
|
|
10810
|
-
}, React__default[
|
|
10808
|
+
}, React__default['default'].createElement("circle", {
|
|
10811
10809
|
strokeOpacity: ".5",
|
|
10812
10810
|
cx: "18",
|
|
10813
10811
|
cy: "18",
|
|
10814
10812
|
r: "18"
|
|
10815
|
-
}), React__default[
|
|
10813
|
+
}), React__default['default'].createElement("path", {
|
|
10816
10814
|
d: "M36 18c0-9.94-8.06-18-18-18"
|
|
10817
|
-
}, React__default[
|
|
10815
|
+
}, React__default['default'].createElement("animateTransform", {
|
|
10818
10816
|
attributeName: "transform",
|
|
10819
10817
|
type: "rotate",
|
|
10820
10818
|
from: "0 18 18",
|
|
@@ -10822,22 +10820,22 @@ var defaultLoadingIndicator = React__default["default"].createElement("svg", {
|
|
|
10822
10820
|
dur: "1s",
|
|
10823
10821
|
repeatCount: "indefinite"
|
|
10824
10822
|
})))));
|
|
10825
|
-
var defaultReset = React__default[
|
|
10823
|
+
var defaultReset = React__default['default'].createElement("svg", {
|
|
10826
10824
|
className: cx$l('resetIcon'),
|
|
10827
10825
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10828
10826
|
viewBox: "0 0 20 20",
|
|
10829
10827
|
width: "10",
|
|
10830
10828
|
height: "10"
|
|
10831
|
-
}, React__default[
|
|
10829
|
+
}, React__default['default'].createElement("path", {
|
|
10832
10830
|
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"
|
|
10833
10831
|
}));
|
|
10834
|
-
var defaultSubmit = React__default[
|
|
10832
|
+
var defaultSubmit = React__default['default'].createElement("svg", {
|
|
10835
10833
|
className: cx$l('submitIcon'),
|
|
10836
10834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10837
10835
|
width: "10",
|
|
10838
10836
|
height: "10",
|
|
10839
10837
|
viewBox: "0 0 40 40"
|
|
10840
|
-
}, React__default[
|
|
10838
|
+
}, React__default['default'].createElement("path", {
|
|
10841
10839
|
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"
|
|
10842
10840
|
}));
|
|
10843
10841
|
|
|
@@ -11004,16 +11002,16 @@ function (_Component) {
|
|
|
11004
11002
|
var isSearchStalled = this.props.showLoadingIndicator && this.props.isSearchStalled;
|
|
11005
11003
|
/* eslint-disable max-len */
|
|
11006
11004
|
|
|
11007
|
-
return React__default[
|
|
11005
|
+
return React__default['default'].createElement("div", {
|
|
11008
11006
|
className: index.classnames(cx$l(''), className)
|
|
11009
|
-
}, React__default[
|
|
11007
|
+
}, React__default['default'].createElement("form", {
|
|
11010
11008
|
noValidate: true,
|
|
11011
11009
|
onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
|
|
11012
11010
|
onReset: this.onReset,
|
|
11013
11011
|
className: cx$l('form', isSearchStalled && 'form--stalledSearch'),
|
|
11014
11012
|
action: "",
|
|
11015
11013
|
role: "search"
|
|
11016
|
-
}, React__default[
|
|
11014
|
+
}, React__default['default'].createElement("input", index._extends({
|
|
11017
11015
|
ref: this.onInputMount,
|
|
11018
11016
|
id: inputId,
|
|
11019
11017
|
type: "search",
|
|
@@ -11029,16 +11027,16 @@ function (_Component) {
|
|
|
11029
11027
|
onChange: this.onChange
|
|
11030
11028
|
}, searchInputEvents, {
|
|
11031
11029
|
className: cx$l('input')
|
|
11032
|
-
})), React__default[
|
|
11030
|
+
})), React__default['default'].createElement("button", {
|
|
11033
11031
|
type: "submit",
|
|
11034
11032
|
title: translate('submitTitle'),
|
|
11035
11033
|
className: cx$l('submit')
|
|
11036
|
-
}, submit), React__default[
|
|
11034
|
+
}, submit), React__default['default'].createElement("button", {
|
|
11037
11035
|
type: "reset",
|
|
11038
11036
|
title: translate('resetTitle'),
|
|
11039
11037
|
className: cx$l('reset'),
|
|
11040
11038
|
hidden: !query || isSearchStalled
|
|
11041
|
-
}, reset), this.props.showLoadingIndicator && React__default[
|
|
11039
|
+
}, reset), this.props.showLoadingIndicator && React__default['default'].createElement("span", {
|
|
11042
11040
|
hidden: !isSearchStalled,
|
|
11043
11041
|
className: cx$l('loadingIndicator')
|
|
11044
11042
|
}, loadingIndicator)));
|
|
@@ -11050,25 +11048,25 @@ function (_Component) {
|
|
|
11050
11048
|
}(React.Component);
|
|
11051
11049
|
|
|
11052
11050
|
_defineProperty(SearchBox$1, "propTypes", {
|
|
11053
|
-
currentRefinement: PropTypes__default[
|
|
11054
|
-
className: PropTypes__default[
|
|
11055
|
-
refine: PropTypes__default[
|
|
11056
|
-
translate: PropTypes__default[
|
|
11057
|
-
loadingIndicator: PropTypes__default[
|
|
11058
|
-
reset: PropTypes__default[
|
|
11059
|
-
submit: PropTypes__default[
|
|
11060
|
-
focusShortcuts: PropTypes__default[
|
|
11061
|
-
autoFocus: PropTypes__default[
|
|
11062
|
-
searchAsYouType: PropTypes__default[
|
|
11063
|
-
onSubmit: PropTypes__default[
|
|
11064
|
-
onReset: PropTypes__default[
|
|
11065
|
-
onChange: PropTypes__default[
|
|
11066
|
-
isSearchStalled: PropTypes__default[
|
|
11067
|
-
showLoadingIndicator: PropTypes__default[
|
|
11068
|
-
inputRef: PropTypes__default[
|
|
11069
|
-
current: PropTypes__default[
|
|
11051
|
+
currentRefinement: PropTypes__default['default'].string,
|
|
11052
|
+
className: PropTypes__default['default'].string,
|
|
11053
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
11054
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
11055
|
+
loadingIndicator: PropTypes__default['default'].node,
|
|
11056
|
+
reset: PropTypes__default['default'].node,
|
|
11057
|
+
submit: PropTypes__default['default'].node,
|
|
11058
|
+
focusShortcuts: PropTypes__default['default'].arrayOf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number])),
|
|
11059
|
+
autoFocus: PropTypes__default['default'].bool,
|
|
11060
|
+
searchAsYouType: PropTypes__default['default'].bool,
|
|
11061
|
+
onSubmit: PropTypes__default['default'].func,
|
|
11062
|
+
onReset: PropTypes__default['default'].func,
|
|
11063
|
+
onChange: PropTypes__default['default'].func,
|
|
11064
|
+
isSearchStalled: PropTypes__default['default'].bool,
|
|
11065
|
+
showLoadingIndicator: PropTypes__default['default'].bool,
|
|
11066
|
+
inputRef: PropTypes__default['default'].oneOfType([PropTypes__default['default'].func, PropTypes__default['default'].exact({
|
|
11067
|
+
current: PropTypes__default['default'].object
|
|
11070
11068
|
})]),
|
|
11071
|
-
inputId: PropTypes__default[
|
|
11069
|
+
inputId: PropTypes__default['default'].string
|
|
11072
11070
|
});
|
|
11073
11071
|
|
|
11074
11072
|
_defineProperty(SearchBox$1, "defaultProps", {
|
|
@@ -11090,9 +11088,9 @@ var SearchBox$2 = translatable({
|
|
|
11090
11088
|
placeholder: 'Search here…'
|
|
11091
11089
|
})(SearchBox$1);
|
|
11092
11090
|
|
|
11093
|
-
var itemsPropType$1 = PropTypes__default[
|
|
11094
|
-
value: PropTypes__default[
|
|
11095
|
-
label: PropTypes__default[
|
|
11091
|
+
var itemsPropType$1 = PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11092
|
+
value: PropTypes__default['default'].any,
|
|
11093
|
+
label: PropTypes__default['default'].node.isRequired,
|
|
11096
11094
|
items: function items() {
|
|
11097
11095
|
return itemsPropType$1.apply(void 0, arguments);
|
|
11098
11096
|
}
|
|
@@ -11134,10 +11132,10 @@ function (_Component) {
|
|
|
11134
11132
|
|
|
11135
11133
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11136
11134
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
11137
|
-
return React__default[
|
|
11135
|
+
return React__default['default'].createElement("li", {
|
|
11138
11136
|
key: item.key || item.label,
|
|
11139
11137
|
className: _this.props.cx('item', item.isRefined && 'item--selected', item.noRefinement && 'item--noRefinement', itemHasChildren && 'item--parent')
|
|
11140
|
-
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default[
|
|
11138
|
+
}, _this.props.renderItem(item, resetQuery), itemHasChildren && React__default['default'].createElement("ul", {
|
|
11141
11139
|
className: _this.props.cx('list', 'list--child')
|
|
11142
11140
|
}, item.items.slice(0, _this.getLimit()).map(function (child) {
|
|
11143
11141
|
return _this.renderItem(child, item);
|
|
@@ -11165,7 +11163,7 @@ function (_Component) {
|
|
|
11165
11163
|
return null;
|
|
11166
11164
|
}
|
|
11167
11165
|
|
|
11168
|
-
return React__default[
|
|
11166
|
+
return React__default['default'].createElement("button", {
|
|
11169
11167
|
disabled: disabled,
|
|
11170
11168
|
className: cx('showMore', disabled && 'showMore--disabled'),
|
|
11171
11169
|
onClick: this.onShowMoreClick
|
|
@@ -11183,12 +11181,12 @@ function (_Component) {
|
|
|
11183
11181
|
translate = _this$props3.translate,
|
|
11184
11182
|
items = _this$props3.items,
|
|
11185
11183
|
selectItem = _this$props3.selectItem;
|
|
11186
|
-
var noResults = items.length === 0 && this.state.query !== '' ? React__default[
|
|
11184
|
+
var noResults = items.length === 0 && this.state.query !== '' ? React__default['default'].createElement("div", {
|
|
11187
11185
|
className: cx('noResults')
|
|
11188
11186
|
}, translate('noResults')) : null;
|
|
11189
|
-
return React__default[
|
|
11187
|
+
return React__default['default'].createElement("div", {
|
|
11190
11188
|
className: cx('searchBox')
|
|
11191
|
-
}, React__default[
|
|
11189
|
+
}, React__default['default'].createElement(SearchBox$2, {
|
|
11192
11190
|
currentRefinement: this.state.query,
|
|
11193
11191
|
refine: function refine(value) {
|
|
11194
11192
|
_this2.setState({
|
|
@@ -11224,7 +11222,7 @@ function (_Component) {
|
|
|
11224
11222
|
var rootClassName = index.classnames(cx('', !canRefine && '-noRefinement'), className);
|
|
11225
11223
|
|
|
11226
11224
|
if (items.length === 0) {
|
|
11227
|
-
return React__default[
|
|
11225
|
+
return React__default['default'].createElement("div", {
|
|
11228
11226
|
className: rootClassName
|
|
11229
11227
|
}, searchBox);
|
|
11230
11228
|
} // Always limit the number of items we show on screen, since the actual
|
|
@@ -11232,9 +11230,9 @@ function (_Component) {
|
|
|
11232
11230
|
// option.
|
|
11233
11231
|
|
|
11234
11232
|
|
|
11235
|
-
return React__default[
|
|
11233
|
+
return React__default['default'].createElement("div", {
|
|
11236
11234
|
className: rootClassName
|
|
11237
|
-
}, searchBox, React__default[
|
|
11235
|
+
}, searchBox, React__default['default'].createElement("ul", {
|
|
11238
11236
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
11239
11237
|
}, items.slice(0, this.getLimit()).map(function (item) {
|
|
11240
11238
|
return _this3.renderItem(item, _this3.resetQuery);
|
|
@@ -11246,21 +11244,21 @@ function (_Component) {
|
|
|
11246
11244
|
}(React.Component);
|
|
11247
11245
|
|
|
11248
11246
|
_defineProperty(List, "propTypes", {
|
|
11249
|
-
cx: PropTypes__default[
|
|
11247
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
11250
11248
|
// Only required with showMore.
|
|
11251
|
-
translate: PropTypes__default[
|
|
11249
|
+
translate: PropTypes__default['default'].func,
|
|
11252
11250
|
items: itemsPropType$1,
|
|
11253
|
-
renderItem: PropTypes__default[
|
|
11254
|
-
selectItem: PropTypes__default[
|
|
11255
|
-
className: PropTypes__default[
|
|
11256
|
-
showMore: PropTypes__default[
|
|
11257
|
-
limit: PropTypes__default[
|
|
11258
|
-
showMoreLimit: PropTypes__default[
|
|
11259
|
-
show: PropTypes__default[
|
|
11260
|
-
searchForItems: PropTypes__default[
|
|
11261
|
-
searchable: PropTypes__default[
|
|
11262
|
-
isFromSearch: PropTypes__default[
|
|
11263
|
-
canRefine: PropTypes__default[
|
|
11251
|
+
renderItem: PropTypes__default['default'].func.isRequired,
|
|
11252
|
+
selectItem: PropTypes__default['default'].func,
|
|
11253
|
+
className: PropTypes__default['default'].string,
|
|
11254
|
+
showMore: PropTypes__default['default'].bool,
|
|
11255
|
+
limit: PropTypes__default['default'].number,
|
|
11256
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
11257
|
+
show: PropTypes__default['default'].func,
|
|
11258
|
+
searchForItems: PropTypes__default['default'].func,
|
|
11259
|
+
searchable: PropTypes__default['default'].bool,
|
|
11260
|
+
isFromSearch: PropTypes__default['default'].bool,
|
|
11261
|
+
canRefine: PropTypes__default['default'].bool
|
|
11264
11262
|
});
|
|
11265
11263
|
|
|
11266
11264
|
_defineProperty(List, "defaultProps", {
|
|
@@ -11269,10 +11267,10 @@ _defineProperty(List, "defaultProps", {
|
|
|
11269
11267
|
});
|
|
11270
11268
|
|
|
11271
11269
|
var cx$k = createClassNames('HierarchicalMenu');
|
|
11272
|
-
var itemsPropType = PropTypes__default[
|
|
11273
|
-
label: PropTypes__default[
|
|
11274
|
-
value: PropTypes__default[
|
|
11275
|
-
count: PropTypes__default[
|
|
11270
|
+
var itemsPropType = PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11271
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
11272
|
+
value: PropTypes__default['default'].string,
|
|
11273
|
+
count: PropTypes__default['default'].number.isRequired,
|
|
11276
11274
|
items: function items() {
|
|
11277
11275
|
return itemsPropType.apply(void 0, arguments);
|
|
11278
11276
|
}
|
|
@@ -11300,15 +11298,15 @@ function (_Component) {
|
|
|
11300
11298
|
var _this$props = _this.props,
|
|
11301
11299
|
createURL = _this$props.createURL,
|
|
11302
11300
|
refine = _this$props.refine;
|
|
11303
|
-
return React__default[
|
|
11301
|
+
return React__default['default'].createElement(Link, {
|
|
11304
11302
|
className: cx$k('link'),
|
|
11305
11303
|
onClick: function onClick() {
|
|
11306
11304
|
return refine(item.value);
|
|
11307
11305
|
},
|
|
11308
11306
|
href: createURL(item.value)
|
|
11309
|
-
}, React__default[
|
|
11307
|
+
}, React__default['default'].createElement("span", {
|
|
11310
11308
|
className: cx$k('label')
|
|
11311
|
-
}, item.label), ' ', React__default[
|
|
11309
|
+
}, item.label), ' ', React__default['default'].createElement("span", {
|
|
11312
11310
|
className: cx$k('count')
|
|
11313
11311
|
}, item.count));
|
|
11314
11312
|
});
|
|
@@ -11327,7 +11325,7 @@ function (_Component) {
|
|
|
11327
11325
|
showMoreLimit = _this$props2.showMoreLimit,
|
|
11328
11326
|
canRefine = _this$props2.canRefine,
|
|
11329
11327
|
className = _this$props2.className;
|
|
11330
|
-
return React__default[
|
|
11328
|
+
return React__default['default'].createElement(List, {
|
|
11331
11329
|
renderItem: this.renderItem,
|
|
11332
11330
|
cx: cx$k,
|
|
11333
11331
|
translate: translate,
|
|
@@ -11345,16 +11343,16 @@ function (_Component) {
|
|
|
11345
11343
|
}(React.Component);
|
|
11346
11344
|
|
|
11347
11345
|
_defineProperty(HierarchicalMenu, "propTypes", {
|
|
11348
|
-
translate: PropTypes__default[
|
|
11349
|
-
refine: PropTypes__default[
|
|
11350
|
-
createURL: PropTypes__default[
|
|
11351
|
-
canRefine: PropTypes__default[
|
|
11346
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
11347
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
11348
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
11349
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
11352
11350
|
items: itemsPropType,
|
|
11353
|
-
showMore: PropTypes__default[
|
|
11354
|
-
className: PropTypes__default[
|
|
11355
|
-
limit: PropTypes__default[
|
|
11356
|
-
showMoreLimit: PropTypes__default[
|
|
11357
|
-
transformItems: PropTypes__default[
|
|
11351
|
+
showMore: PropTypes__default['default'].bool,
|
|
11352
|
+
className: PropTypes__default['default'].string,
|
|
11353
|
+
limit: PropTypes__default['default'].number,
|
|
11354
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
11355
|
+
transformItems: PropTypes__default['default'].func
|
|
11358
11356
|
});
|
|
11359
11357
|
|
|
11360
11358
|
_defineProperty(HierarchicalMenu, "defaultProps", {
|
|
@@ -11458,7 +11456,7 @@ var HierarchicalMenu$1 = translatable({
|
|
|
11458
11456
|
*/
|
|
11459
11457
|
|
|
11460
11458
|
var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
|
|
11461
|
-
return React__default[
|
|
11459
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(HierarchicalMenu$1, props));
|
|
11462
11460
|
};
|
|
11463
11461
|
|
|
11464
11462
|
connectHierarchicalMenu(HierarchicalMenuWidget);
|
|
@@ -11471,16 +11469,16 @@ var Highlight$2 = function Highlight(_ref) {
|
|
|
11471
11469
|
nonHighlightedTagName = _ref.nonHighlightedTagName;
|
|
11472
11470
|
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
11473
11471
|
var className = isHighlighted ? 'highlighted' : 'nonHighlighted';
|
|
11474
|
-
return React__default[
|
|
11472
|
+
return React__default['default'].createElement(TagName, {
|
|
11475
11473
|
className: cx(className)
|
|
11476
11474
|
}, value);
|
|
11477
11475
|
};
|
|
11478
11476
|
Highlight$2.propTypes = {
|
|
11479
|
-
cx: PropTypes__default[
|
|
11480
|
-
value: PropTypes__default[
|
|
11481
|
-
isHighlighted: PropTypes__default[
|
|
11482
|
-
highlightedTagName: PropTypes__default[
|
|
11483
|
-
nonHighlightedTagName: PropTypes__default[
|
|
11477
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
11478
|
+
value: PropTypes__default['default'].string.isRequired,
|
|
11479
|
+
isHighlighted: PropTypes__default['default'].bool.isRequired,
|
|
11480
|
+
highlightedTagName: PropTypes__default['default'].string.isRequired,
|
|
11481
|
+
nonHighlightedTagName: PropTypes__default['default'].string.isRequired
|
|
11484
11482
|
};
|
|
11485
11483
|
|
|
11486
11484
|
var Highlighter = function Highlighter(_ref2) {
|
|
@@ -11498,15 +11496,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11498
11496
|
attribute: attribute,
|
|
11499
11497
|
highlightProperty: highlightProperty
|
|
11500
11498
|
});
|
|
11501
|
-
return React__default[
|
|
11499
|
+
return React__default['default'].createElement("span", {
|
|
11502
11500
|
className: index.classnames(cx(''), className)
|
|
11503
11501
|
}, parsedHighlightedValue.map(function (item, i) {
|
|
11504
11502
|
if (Array.isArray(item)) {
|
|
11505
11503
|
var isLast = i === parsedHighlightedValue.length - 1;
|
|
11506
|
-
return React__default[
|
|
11504
|
+
return React__default['default'].createElement("span", {
|
|
11507
11505
|
key: i
|
|
11508
11506
|
}, item.map(function (element, index) {
|
|
11509
|
-
return React__default[
|
|
11507
|
+
return React__default['default'].createElement(Highlight$2, {
|
|
11510
11508
|
cx: cx,
|
|
11511
11509
|
key: index,
|
|
11512
11510
|
value: element.value,
|
|
@@ -11514,12 +11512,12 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11514
11512
|
nonHighlightedTagName: nonHighlightedTagName,
|
|
11515
11513
|
isHighlighted: element.isHighlighted
|
|
11516
11514
|
});
|
|
11517
|
-
}), !isLast && React__default[
|
|
11515
|
+
}), !isLast && React__default['default'].createElement("span", {
|
|
11518
11516
|
className: cx('separator')
|
|
11519
11517
|
}, separator));
|
|
11520
11518
|
}
|
|
11521
11519
|
|
|
11522
|
-
return React__default[
|
|
11520
|
+
return React__default['default'].createElement(Highlight$2, {
|
|
11523
11521
|
cx: cx,
|
|
11524
11522
|
key: i,
|
|
11525
11523
|
value: item.value,
|
|
@@ -11531,15 +11529,15 @@ var Highlighter = function Highlighter(_ref2) {
|
|
|
11531
11529
|
};
|
|
11532
11530
|
|
|
11533
11531
|
Highlighter.propTypes = {
|
|
11534
|
-
cx: PropTypes__default[
|
|
11535
|
-
hit: PropTypes__default[
|
|
11536
|
-
attribute: PropTypes__default[
|
|
11537
|
-
highlight: PropTypes__default[
|
|
11538
|
-
highlightProperty: PropTypes__default[
|
|
11539
|
-
tagName: PropTypes__default[
|
|
11540
|
-
nonHighlightedTagName: PropTypes__default[
|
|
11541
|
-
className: PropTypes__default[
|
|
11542
|
-
separator: PropTypes__default[
|
|
11532
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
11533
|
+
hit: PropTypes__default['default'].object.isRequired,
|
|
11534
|
+
attribute: PropTypes__default['default'].oneOfType([PropTypes__default['default'].arrayOf(PropTypes__default['default'].string), PropTypes__default['default'].string]).isRequired,
|
|
11535
|
+
highlight: PropTypes__default['default'].func.isRequired,
|
|
11536
|
+
highlightProperty: PropTypes__default['default'].string.isRequired,
|
|
11537
|
+
tagName: PropTypes__default['default'].string,
|
|
11538
|
+
nonHighlightedTagName: PropTypes__default['default'].string,
|
|
11539
|
+
className: PropTypes__default['default'].string,
|
|
11540
|
+
separator: PropTypes__default['default'].node
|
|
11543
11541
|
};
|
|
11544
11542
|
Highlighter.defaultProps = {
|
|
11545
11543
|
tagName: 'em',
|
|
@@ -11551,7 +11549,7 @@ Highlighter.defaultProps = {
|
|
|
11551
11549
|
var cx$j = createClassNames('Highlight');
|
|
11552
11550
|
|
|
11553
11551
|
var Highlight$1 = function Highlight(props) {
|
|
11554
|
-
return React__default[
|
|
11552
|
+
return React__default['default'].createElement(Highlighter, index._extends({}, props, {
|
|
11555
11553
|
highlightProperty: "_highlightResult",
|
|
11556
11554
|
cx: cx$j
|
|
11557
11555
|
}));
|
|
@@ -11603,7 +11601,7 @@ var Highlight = connectHighlight(Highlight$1);
|
|
|
11603
11601
|
var cx$i = createClassNames('Hits');
|
|
11604
11602
|
|
|
11605
11603
|
var DefaultHitComponent = function DefaultHitComponent(props) {
|
|
11606
|
-
return React__default[
|
|
11604
|
+
return React__default['default'].createElement("div", {
|
|
11607
11605
|
style: {
|
|
11608
11606
|
borderBottom: '1px solid #bbb',
|
|
11609
11607
|
paddingBottom: '5px',
|
|
@@ -11619,27 +11617,27 @@ var Hits$1 = function Hits(_ref) {
|
|
|
11619
11617
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
11620
11618
|
_ref$hitComponent = _ref.hitComponent,
|
|
11621
11619
|
HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
|
|
11622
|
-
return React__default[
|
|
11620
|
+
return React__default['default'].createElement("div", {
|
|
11623
11621
|
className: index.classnames(cx$i(''), className)
|
|
11624
|
-
}, React__default[
|
|
11622
|
+
}, React__default['default'].createElement("ul", {
|
|
11625
11623
|
className: cx$i('list')
|
|
11626
11624
|
}, hits.map(function (hit) {
|
|
11627
|
-
return React__default[
|
|
11625
|
+
return React__default['default'].createElement("li", {
|
|
11628
11626
|
className: cx$i('item'),
|
|
11629
11627
|
key: hit.objectID
|
|
11630
|
-
}, React__default[
|
|
11628
|
+
}, React__default['default'].createElement(HitComponent, {
|
|
11631
11629
|
hit: hit
|
|
11632
11630
|
}));
|
|
11633
11631
|
})));
|
|
11634
11632
|
};
|
|
11635
11633
|
|
|
11636
|
-
var HitPropTypes = PropTypes__default[
|
|
11637
|
-
objectID: PropTypes__default[
|
|
11634
|
+
var HitPropTypes = PropTypes__default['default'].shape({
|
|
11635
|
+
objectID: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired
|
|
11638
11636
|
});
|
|
11639
11637
|
Hits$1.propTypes = {
|
|
11640
|
-
hits: PropTypes__default[
|
|
11641
|
-
className: PropTypes__default[
|
|
11642
|
-
hitComponent: PropTypes__default[
|
|
11638
|
+
hits: PropTypes__default['default'].arrayOf(HitPropTypes.isRequired).isRequired,
|
|
11639
|
+
className: PropTypes__default['default'].string,
|
|
11640
|
+
hitComponent: PropTypes__default['default'].func
|
|
11643
11641
|
};
|
|
11644
11642
|
|
|
11645
11643
|
/**
|
|
@@ -11710,13 +11708,13 @@ function (_Component) {
|
|
|
11710
11708
|
id = _this$props.id,
|
|
11711
11709
|
items = _this$props.items,
|
|
11712
11710
|
selectedItem = _this$props.selectedItem;
|
|
11713
|
-
return React__default[
|
|
11711
|
+
return React__default['default'].createElement("select", {
|
|
11714
11712
|
id: id,
|
|
11715
11713
|
className: cx('select'),
|
|
11716
11714
|
value: selectedItem,
|
|
11717
11715
|
onChange: this.onChange
|
|
11718
11716
|
}, items.map(function (item) {
|
|
11719
|
-
return React__default[
|
|
11717
|
+
return React__default['default'].createElement("option", {
|
|
11720
11718
|
className: cx('option'),
|
|
11721
11719
|
key: item.key === undefined ? item.value : item.key,
|
|
11722
11720
|
disabled: item.disabled,
|
|
@@ -11730,16 +11728,16 @@ function (_Component) {
|
|
|
11730
11728
|
}(React.Component);
|
|
11731
11729
|
|
|
11732
11730
|
_defineProperty(Select, "propTypes", {
|
|
11733
|
-
cx: PropTypes__default[
|
|
11734
|
-
id: PropTypes__default[
|
|
11735
|
-
onSelect: PropTypes__default[
|
|
11736
|
-
items: PropTypes__default[
|
|
11737
|
-
value: PropTypes__default[
|
|
11738
|
-
key: PropTypes__default[
|
|
11739
|
-
label: PropTypes__default[
|
|
11740
|
-
disabled: PropTypes__default[
|
|
11731
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
11732
|
+
id: PropTypes__default['default'].string,
|
|
11733
|
+
onSelect: PropTypes__default['default'].func.isRequired,
|
|
11734
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11735
|
+
value: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired,
|
|
11736
|
+
key: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]),
|
|
11737
|
+
label: PropTypes__default['default'].string,
|
|
11738
|
+
disabled: PropTypes__default['default'].bool
|
|
11741
11739
|
})).isRequired,
|
|
11742
|
-
selectedItem: PropTypes__default[
|
|
11740
|
+
selectedItem: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired
|
|
11743
11741
|
});
|
|
11744
11742
|
|
|
11745
11743
|
var cx$h = createClassNames('HitsPerPage');
|
|
@@ -11764,9 +11762,9 @@ function (_Component) {
|
|
|
11764
11762
|
currentRefinement = _this$props.currentRefinement,
|
|
11765
11763
|
refine = _this$props.refine,
|
|
11766
11764
|
className = _this$props.className;
|
|
11767
|
-
return React__default[
|
|
11765
|
+
return React__default['default'].createElement("div", {
|
|
11768
11766
|
className: index.classnames(cx$h(''), className)
|
|
11769
|
-
}, React__default[
|
|
11767
|
+
}, React__default['default'].createElement(Select, {
|
|
11770
11768
|
id: id,
|
|
11771
11769
|
onSelect: refine,
|
|
11772
11770
|
selectedItem: currentRefinement,
|
|
@@ -11780,14 +11778,14 @@ function (_Component) {
|
|
|
11780
11778
|
}(React.Component);
|
|
11781
11779
|
|
|
11782
11780
|
_defineProperty(HitsPerPage, "propTypes", {
|
|
11783
|
-
id: PropTypes__default[
|
|
11784
|
-
items: PropTypes__default[
|
|
11785
|
-
value: PropTypes__default[
|
|
11786
|
-
label: PropTypes__default[
|
|
11781
|
+
id: PropTypes__default['default'].string,
|
|
11782
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11783
|
+
value: PropTypes__default['default'].number.isRequired,
|
|
11784
|
+
label: PropTypes__default['default'].string
|
|
11787
11785
|
})).isRequired,
|
|
11788
|
-
currentRefinement: PropTypes__default[
|
|
11789
|
-
refine: PropTypes__default[
|
|
11790
|
-
className: PropTypes__default[
|
|
11786
|
+
currentRefinement: PropTypes__default['default'].number.isRequired,
|
|
11787
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
11788
|
+
className: PropTypes__default['default'].string
|
|
11791
11789
|
});
|
|
11792
11790
|
|
|
11793
11791
|
_defineProperty(HitsPerPage, "defaultProps", {
|
|
@@ -11865,24 +11863,24 @@ function (_Component) {
|
|
|
11865
11863
|
refineNext = _this$props.refineNext,
|
|
11866
11864
|
translate = _this$props.translate,
|
|
11867
11865
|
className = _this$props.className;
|
|
11868
|
-
return React__default[
|
|
11866
|
+
return React__default['default'].createElement("div", {
|
|
11869
11867
|
className: index.classnames(cx$g(''), className)
|
|
11870
|
-
}, showPrevious && React__default[
|
|
11868
|
+
}, showPrevious && React__default['default'].createElement("button", {
|
|
11871
11869
|
className: cx$g('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
|
|
11872
11870
|
onClick: function onClick() {
|
|
11873
11871
|
return refinePrevious();
|
|
11874
11872
|
},
|
|
11875
11873
|
disabled: !hasPrevious
|
|
11876
|
-
}, translate('loadPrevious')), React__default[
|
|
11874
|
+
}, translate('loadPrevious')), React__default['default'].createElement("ul", {
|
|
11877
11875
|
className: cx$g('list')
|
|
11878
11876
|
}, hits.map(function (hit) {
|
|
11879
|
-
return React__default[
|
|
11877
|
+
return React__default['default'].createElement("li", {
|
|
11880
11878
|
key: hit.objectID,
|
|
11881
11879
|
className: cx$g('item')
|
|
11882
|
-
}, React__default[
|
|
11880
|
+
}, React__default['default'].createElement(HitComponent, {
|
|
11883
11881
|
hit: hit
|
|
11884
11882
|
}));
|
|
11885
|
-
})), React__default[
|
|
11883
|
+
})), React__default['default'].createElement("button", {
|
|
11886
11884
|
className: cx$g('loadMore', !hasMore && 'loadMore--disabled'),
|
|
11887
11885
|
onClick: function onClick() {
|
|
11888
11886
|
return refineNext();
|
|
@@ -11896,21 +11894,21 @@ function (_Component) {
|
|
|
11896
11894
|
}(React.Component);
|
|
11897
11895
|
|
|
11898
11896
|
InfiniteHits.propTypes = {
|
|
11899
|
-
hits: PropTypes__default[
|
|
11900
|
-
showPrevious: PropTypes__default[
|
|
11901
|
-
hasPrevious: PropTypes__default[
|
|
11902
|
-
hasMore: PropTypes__default[
|
|
11903
|
-
refinePrevious: PropTypes__default[
|
|
11904
|
-
refineNext: PropTypes__default[
|
|
11905
|
-
translate: PropTypes__default[
|
|
11906
|
-
className: PropTypes__default[
|
|
11907
|
-
hitComponent: PropTypes__default[
|
|
11897
|
+
hits: PropTypes__default['default'].arrayOf(PropTypes__default['default'].object).isRequired,
|
|
11898
|
+
showPrevious: PropTypes__default['default'].bool.isRequired,
|
|
11899
|
+
hasPrevious: PropTypes__default['default'].bool.isRequired,
|
|
11900
|
+
hasMore: PropTypes__default['default'].bool.isRequired,
|
|
11901
|
+
refinePrevious: PropTypes__default['default'].func.isRequired,
|
|
11902
|
+
refineNext: PropTypes__default['default'].func.isRequired,
|
|
11903
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
11904
|
+
className: PropTypes__default['default'].string,
|
|
11905
|
+
hitComponent: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].func])
|
|
11908
11906
|
};
|
|
11909
11907
|
InfiniteHits.defaultProps = {
|
|
11910
11908
|
className: '',
|
|
11911
11909
|
showPrevious: false,
|
|
11912
11910
|
hitComponent: function hitComponent(hit) {
|
|
11913
|
-
return React__default[
|
|
11911
|
+
return React__default['default'].createElement("div", {
|
|
11914
11912
|
style: {
|
|
11915
11913
|
borderBottom: '1px solid #bbb',
|
|
11916
11914
|
paddingBottom: '5px',
|
|
@@ -11986,19 +11984,19 @@ function (_Component) {
|
|
|
11986
11984
|
|
|
11987
11985
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11988
11986
|
var createURL = _this.props.createURL;
|
|
11989
|
-
var label = _this.props.isFromSearch ? React__default[
|
|
11987
|
+
var label = _this.props.isFromSearch ? React__default['default'].createElement(Highlight, {
|
|
11990
11988
|
attribute: "label",
|
|
11991
11989
|
hit: item
|
|
11992
11990
|
}) : item.label;
|
|
11993
|
-
return React__default[
|
|
11991
|
+
return React__default['default'].createElement(Link, {
|
|
11994
11992
|
className: cx$f('link'),
|
|
11995
11993
|
onClick: function onClick() {
|
|
11996
11994
|
return _this.selectItem(item, resetQuery);
|
|
11997
11995
|
},
|
|
11998
11996
|
href: createURL(item.value)
|
|
11999
|
-
}, React__default[
|
|
11997
|
+
}, React__default['default'].createElement("span", {
|
|
12000
11998
|
className: cx$f('label')
|
|
12001
|
-
}, label), ' ', React__default[
|
|
11999
|
+
}, label), ' ', React__default['default'].createElement("span", {
|
|
12002
12000
|
className: cx$f('count')
|
|
12003
12001
|
}, item.count));
|
|
12004
12002
|
});
|
|
@@ -12026,7 +12024,7 @@ function (_Component) {
|
|
|
12026
12024
|
searchable = _this$props.searchable,
|
|
12027
12025
|
canRefine = _this$props.canRefine,
|
|
12028
12026
|
className = _this$props.className;
|
|
12029
|
-
return React__default[
|
|
12027
|
+
return React__default['default'].createElement(List, {
|
|
12030
12028
|
renderItem: this.renderItem,
|
|
12031
12029
|
selectItem: this.selectItem,
|
|
12032
12030
|
cx: cx$f,
|
|
@@ -12048,24 +12046,24 @@ function (_Component) {
|
|
|
12048
12046
|
}(React.Component);
|
|
12049
12047
|
|
|
12050
12048
|
_defineProperty(Menu, "propTypes", {
|
|
12051
|
-
translate: PropTypes__default[
|
|
12052
|
-
refine: PropTypes__default[
|
|
12053
|
-
searchForItems: PropTypes__default[
|
|
12054
|
-
searchable: PropTypes__default[
|
|
12055
|
-
createURL: PropTypes__default[
|
|
12056
|
-
items: PropTypes__default[
|
|
12057
|
-
label: PropTypes__default[
|
|
12058
|
-
value: PropTypes__default[
|
|
12059
|
-
count: PropTypes__default[
|
|
12060
|
-
isRefined: PropTypes__default[
|
|
12049
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12050
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12051
|
+
searchForItems: PropTypes__default['default'].func.isRequired,
|
|
12052
|
+
searchable: PropTypes__default['default'].bool,
|
|
12053
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
12054
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12055
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
12056
|
+
value: PropTypes__default['default'].string.isRequired,
|
|
12057
|
+
count: PropTypes__default['default'].number.isRequired,
|
|
12058
|
+
isRefined: PropTypes__default['default'].bool.isRequired
|
|
12061
12059
|
})),
|
|
12062
|
-
isFromSearch: PropTypes__default[
|
|
12063
|
-
canRefine: PropTypes__default[
|
|
12064
|
-
showMore: PropTypes__default[
|
|
12065
|
-
limit: PropTypes__default[
|
|
12066
|
-
showMoreLimit: PropTypes__default[
|
|
12067
|
-
transformItems: PropTypes__default[
|
|
12068
|
-
className: PropTypes__default[
|
|
12060
|
+
isFromSearch: PropTypes__default['default'].bool.isRequired,
|
|
12061
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12062
|
+
showMore: PropTypes__default['default'].bool,
|
|
12063
|
+
limit: PropTypes__default['default'].number,
|
|
12064
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
12065
|
+
transformItems: PropTypes__default['default'].func,
|
|
12066
|
+
className: PropTypes__default['default'].string
|
|
12069
12067
|
});
|
|
12070
12068
|
|
|
12071
12069
|
_defineProperty(Menu, "defaultProps", {
|
|
@@ -12134,7 +12132,7 @@ var Menu$1 = translatable({
|
|
|
12134
12132
|
*/
|
|
12135
12133
|
|
|
12136
12134
|
var MenuWidget = function MenuWidget(props) {
|
|
12137
|
-
return React__default[
|
|
12135
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(Menu$1, props));
|
|
12138
12136
|
};
|
|
12139
12137
|
|
|
12140
12138
|
connectMenu(MenuWidget);
|
|
@@ -12177,18 +12175,18 @@ function (_Component) {
|
|
|
12177
12175
|
canRefine = _this$props.canRefine,
|
|
12178
12176
|
translate = _this$props.translate,
|
|
12179
12177
|
className = _this$props.className;
|
|
12180
|
-
return React__default[
|
|
12178
|
+
return React__default['default'].createElement("div", {
|
|
12181
12179
|
className: index.classnames(cx$e('', !canRefine && '-noRefinement'), className)
|
|
12182
|
-
}, React__default[
|
|
12180
|
+
}, React__default['default'].createElement("select", {
|
|
12183
12181
|
id: id,
|
|
12184
12182
|
value: this.selectedValue,
|
|
12185
12183
|
onChange: this.handleSelectChange,
|
|
12186
12184
|
className: cx$e('select')
|
|
12187
|
-
}, React__default[
|
|
12185
|
+
}, React__default['default'].createElement("option", {
|
|
12188
12186
|
value: "ais__see__all__option",
|
|
12189
12187
|
className: cx$e('option')
|
|
12190
12188
|
}, translate('seeAllOption')), items.map(function (item) {
|
|
12191
|
-
return React__default[
|
|
12189
|
+
return React__default['default'].createElement("option", {
|
|
12192
12190
|
key: item.value,
|
|
12193
12191
|
value: item.value,
|
|
12194
12192
|
className: cx$e('option')
|
|
@@ -12213,17 +12211,17 @@ function (_Component) {
|
|
|
12213
12211
|
}(React.Component);
|
|
12214
12212
|
|
|
12215
12213
|
_defineProperty(MenuSelect, "propTypes", {
|
|
12216
|
-
id: PropTypes__default[
|
|
12217
|
-
items: PropTypes__default[
|
|
12218
|
-
label: PropTypes__default[
|
|
12219
|
-
value: PropTypes__default[
|
|
12220
|
-
count: PropTypes__default[
|
|
12221
|
-
isRefined: PropTypes__default[
|
|
12214
|
+
id: PropTypes__default['default'].string,
|
|
12215
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12216
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
12217
|
+
value: PropTypes__default['default'].string.isRequired,
|
|
12218
|
+
count: PropTypes__default['default'].oneOfType([PropTypes__default['default'].number.isRequired, PropTypes__default['default'].string.isRequired]),
|
|
12219
|
+
isRefined: PropTypes__default['default'].bool.isRequired
|
|
12222
12220
|
})).isRequired,
|
|
12223
|
-
canRefine: PropTypes__default[
|
|
12224
|
-
refine: PropTypes__default[
|
|
12225
|
-
translate: PropTypes__default[
|
|
12226
|
-
className: PropTypes__default[
|
|
12221
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12222
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12223
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12224
|
+
className: PropTypes__default['default'].string
|
|
12227
12225
|
});
|
|
12228
12226
|
|
|
12229
12227
|
_defineProperty(MenuSelect, "defaultProps", {
|
|
@@ -12272,7 +12270,7 @@ var MenuSelect$1 = translatable({
|
|
|
12272
12270
|
*/
|
|
12273
12271
|
|
|
12274
12272
|
var MenuSelectWidget = function MenuSelectWidget(props) {
|
|
12275
|
-
return React__default[
|
|
12273
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(MenuSelect$1, props));
|
|
12276
12274
|
};
|
|
12277
12275
|
|
|
12278
12276
|
connectMenu(MenuSelectWidget);
|
|
@@ -12301,9 +12299,9 @@ function (_Component) {
|
|
|
12301
12299
|
var _this$props = _this.props,
|
|
12302
12300
|
refine = _this$props.refine,
|
|
12303
12301
|
translate = _this$props.translate;
|
|
12304
|
-
return React__default[
|
|
12302
|
+
return React__default['default'].createElement("label", {
|
|
12305
12303
|
className: cx$d('label')
|
|
12306
|
-
}, React__default[
|
|
12304
|
+
}, React__default['default'].createElement("input", {
|
|
12307
12305
|
className: cx$d('radio'),
|
|
12308
12306
|
type: "radio",
|
|
12309
12307
|
checked: item.isRefined,
|
|
@@ -12311,7 +12309,7 @@ function (_Component) {
|
|
|
12311
12309
|
onChange: function onChange() {
|
|
12312
12310
|
return refine(item.value);
|
|
12313
12311
|
}
|
|
12314
|
-
}), React__default[
|
|
12312
|
+
}), React__default['default'].createElement("span", {
|
|
12315
12313
|
className: cx$d('labelText')
|
|
12316
12314
|
}, item.value === '' ? translate('all') : item.label));
|
|
12317
12315
|
});
|
|
@@ -12326,7 +12324,7 @@ function (_Component) {
|
|
|
12326
12324
|
items = _this$props2.items,
|
|
12327
12325
|
canRefine = _this$props2.canRefine,
|
|
12328
12326
|
className = _this$props2.className;
|
|
12329
|
-
return React__default[
|
|
12327
|
+
return React__default['default'].createElement(List, {
|
|
12330
12328
|
renderItem: this.renderItem,
|
|
12331
12329
|
showMore: false,
|
|
12332
12330
|
canRefine: canRefine,
|
|
@@ -12345,16 +12343,16 @@ function (_Component) {
|
|
|
12345
12343
|
}(React.Component);
|
|
12346
12344
|
|
|
12347
12345
|
_defineProperty(NumericMenu, "propTypes", {
|
|
12348
|
-
items: PropTypes__default[
|
|
12349
|
-
label: PropTypes__default[
|
|
12350
|
-
value: PropTypes__default[
|
|
12351
|
-
isRefined: PropTypes__default[
|
|
12352
|
-
noRefinement: PropTypes__default[
|
|
12346
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12347
|
+
label: PropTypes__default['default'].node.isRequired,
|
|
12348
|
+
value: PropTypes__default['default'].string.isRequired,
|
|
12349
|
+
isRefined: PropTypes__default['default'].bool.isRequired,
|
|
12350
|
+
noRefinement: PropTypes__default['default'].bool.isRequired
|
|
12353
12351
|
})).isRequired,
|
|
12354
|
-
canRefine: PropTypes__default[
|
|
12355
|
-
refine: PropTypes__default[
|
|
12356
|
-
translate: PropTypes__default[
|
|
12357
|
-
className: PropTypes__default[
|
|
12352
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12353
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12354
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12355
|
+
className: PropTypes__default['default'].string
|
|
12358
12356
|
});
|
|
12359
12357
|
|
|
12360
12358
|
_defineProperty(NumericMenu, "defaultProps", {
|
|
@@ -12412,7 +12410,7 @@ var NumericMenu$1 = translatable({
|
|
|
12412
12410
|
*/
|
|
12413
12411
|
|
|
12414
12412
|
var NumericMenuWidget = function NumericMenuWidget(props) {
|
|
12415
|
-
return React__default[
|
|
12413
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(NumericMenu$1, props));
|
|
12416
12414
|
};
|
|
12417
12415
|
|
|
12418
12416
|
connectNumericMenu(NumericMenuWidget);
|
|
@@ -12437,15 +12435,15 @@ function (_Component) {
|
|
|
12437
12435
|
items = _this$props.items,
|
|
12438
12436
|
onSelect = _this$props.onSelect,
|
|
12439
12437
|
canRefine = _this$props.canRefine;
|
|
12440
|
-
return React__default[
|
|
12438
|
+
return React__default['default'].createElement("ul", {
|
|
12441
12439
|
className: cx('list', !canRefine && 'list--noRefinement')
|
|
12442
12440
|
}, items.map(function (item) {
|
|
12443
|
-
return React__default[
|
|
12441
|
+
return React__default['default'].createElement("li", {
|
|
12444
12442
|
key: item.key === undefined ? item.value : item.key,
|
|
12445
12443
|
className: cx('item', item.selected && !item.disabled && 'item--selected', item.disabled && 'item--disabled', item.modifier)
|
|
12446
|
-
}, item.disabled ? React__default[
|
|
12444
|
+
}, item.disabled ? React__default['default'].createElement("span", {
|
|
12447
12445
|
className: cx('link')
|
|
12448
|
-
}, item.label === undefined ? item.value : item.label) : React__default[
|
|
12446
|
+
}, item.label === undefined ? item.value : item.label) : React__default['default'].createElement(Link, {
|
|
12449
12447
|
className: cx('link', item.selected && 'link--selected'),
|
|
12450
12448
|
"aria-label": item.ariaLabel,
|
|
12451
12449
|
href: createURL(item.value),
|
|
@@ -12461,18 +12459,18 @@ function (_Component) {
|
|
|
12461
12459
|
}(React.Component);
|
|
12462
12460
|
|
|
12463
12461
|
_defineProperty(LinkList, "propTypes", {
|
|
12464
|
-
cx: PropTypes__default[
|
|
12465
|
-
createURL: PropTypes__default[
|
|
12466
|
-
items: PropTypes__default[
|
|
12467
|
-
value: PropTypes__default[
|
|
12468
|
-
key: PropTypes__default[
|
|
12469
|
-
label: PropTypes__default[
|
|
12470
|
-
modifier: PropTypes__default[
|
|
12471
|
-
ariaLabel: PropTypes__default[
|
|
12472
|
-
disabled: PropTypes__default[
|
|
12462
|
+
cx: PropTypes__default['default'].func.isRequired,
|
|
12463
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
12464
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12465
|
+
value: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number, PropTypes__default['default'].object]).isRequired,
|
|
12466
|
+
key: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]),
|
|
12467
|
+
label: PropTypes__default['default'].node,
|
|
12468
|
+
modifier: PropTypes__default['default'].string,
|
|
12469
|
+
ariaLabel: PropTypes__default['default'].string,
|
|
12470
|
+
disabled: PropTypes__default['default'].bool
|
|
12473
12471
|
})),
|
|
12474
|
-
onSelect: PropTypes__default[
|
|
12475
|
-
canRefine: PropTypes__default[
|
|
12472
|
+
onSelect: PropTypes__default['default'].func.isRequired,
|
|
12473
|
+
canRefine: PropTypes__default['default'].bool.isRequired
|
|
12476
12474
|
});
|
|
12477
12475
|
|
|
12478
12476
|
var cx$c = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
|
|
@@ -12617,9 +12615,9 @@ function (_Component) {
|
|
|
12617
12615
|
});
|
|
12618
12616
|
}
|
|
12619
12617
|
|
|
12620
|
-
return React__default[
|
|
12618
|
+
return React__default['default'].createElement("div", {
|
|
12621
12619
|
className: index.classnames(cx$c('', !canRefine && '-noRefinement'), className)
|
|
12622
|
-
}, React__default[
|
|
12620
|
+
}, React__default['default'].createElement(ListComponent, index._extends({}, otherProps, {
|
|
12623
12621
|
cx: cx$c,
|
|
12624
12622
|
items: items,
|
|
12625
12623
|
onSelect: refine,
|
|
@@ -12633,20 +12631,20 @@ function (_Component) {
|
|
|
12633
12631
|
}(React.Component);
|
|
12634
12632
|
|
|
12635
12633
|
_defineProperty(Pagination$1, "propTypes", {
|
|
12636
|
-
nbPages: PropTypes__default[
|
|
12637
|
-
currentRefinement: PropTypes__default[
|
|
12638
|
-
refine: PropTypes__default[
|
|
12639
|
-
createURL: PropTypes__default[
|
|
12640
|
-
canRefine: PropTypes__default[
|
|
12641
|
-
translate: PropTypes__default[
|
|
12642
|
-
listComponent: PropTypes__default[
|
|
12643
|
-
showFirst: PropTypes__default[
|
|
12644
|
-
showPrevious: PropTypes__default[
|
|
12645
|
-
showNext: PropTypes__default[
|
|
12646
|
-
showLast: PropTypes__default[
|
|
12647
|
-
padding: PropTypes__default[
|
|
12648
|
-
totalPages: PropTypes__default[
|
|
12649
|
-
className: PropTypes__default[
|
|
12634
|
+
nbPages: PropTypes__default['default'].number.isRequired,
|
|
12635
|
+
currentRefinement: PropTypes__default['default'].number.isRequired,
|
|
12636
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12637
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
12638
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12639
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12640
|
+
listComponent: PropTypes__default['default'].func,
|
|
12641
|
+
showFirst: PropTypes__default['default'].bool,
|
|
12642
|
+
showPrevious: PropTypes__default['default'].bool,
|
|
12643
|
+
showNext: PropTypes__default['default'].bool,
|
|
12644
|
+
showLast: PropTypes__default['default'].bool,
|
|
12645
|
+
padding: PropTypes__default['default'].number,
|
|
12646
|
+
totalPages: PropTypes__default['default'].number,
|
|
12647
|
+
className: PropTypes__default['default'].string
|
|
12650
12648
|
});
|
|
12651
12649
|
|
|
12652
12650
|
_defineProperty(Pagination$1, "defaultProps", {
|
|
@@ -12732,7 +12730,7 @@ var Pagination$2 = translatable({
|
|
|
12732
12730
|
*/
|
|
12733
12731
|
|
|
12734
12732
|
var PaginationWidget = function PaginationWidget(props) {
|
|
12735
|
-
return React__default[
|
|
12733
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(Pagination$2, props));
|
|
12736
12734
|
};
|
|
12737
12735
|
|
|
12738
12736
|
var Pagination = connectPagination(PaginationWidget);
|
|
@@ -12741,14 +12739,14 @@ var cx$b = createClassNames('PoweredBy');
|
|
|
12741
12739
|
/* eslint-disable max-len */
|
|
12742
12740
|
|
|
12743
12741
|
var AlgoliaLogo = function AlgoliaLogo() {
|
|
12744
|
-
return React__default[
|
|
12742
|
+
return React__default['default'].createElement("svg", {
|
|
12745
12743
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12746
12744
|
baseProfile: "basic",
|
|
12747
12745
|
viewBox: "0 0 1366 362",
|
|
12748
12746
|
width: "100",
|
|
12749
12747
|
height: "27",
|
|
12750
12748
|
className: cx$b('logo')
|
|
12751
|
-
}, React__default[
|
|
12749
|
+
}, React__default['default'].createElement("linearGradient", {
|
|
12752
12750
|
id: "g",
|
|
12753
12751
|
x1: "428.258",
|
|
12754
12752
|
x2: "434.145",
|
|
@@ -12756,19 +12754,19 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12756
12754
|
y2: "409.85",
|
|
12757
12755
|
gradientUnits: "userSpaceOnUse",
|
|
12758
12756
|
gradientTransform: "matrix(94.045 0 0 -94.072 -40381.527 38479.52)"
|
|
12759
|
-
}, React__default[
|
|
12757
|
+
}, React__default['default'].createElement("stop", {
|
|
12760
12758
|
offset: "0",
|
|
12761
12759
|
stopColor: "#00AEFF"
|
|
12762
|
-
}), React__default[
|
|
12760
|
+
}), React__default['default'].createElement("stop", {
|
|
12763
12761
|
offset: "1",
|
|
12764
12762
|
stopColor: "#3369E7"
|
|
12765
|
-
})), React__default[
|
|
12763
|
+
})), React__default['default'].createElement("path", {
|
|
12766
12764
|
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",
|
|
12767
12765
|
fill: "url(#g)"
|
|
12768
|
-
}), React__default[
|
|
12766
|
+
}), React__default['default'].createElement("path", {
|
|
12769
12767
|
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",
|
|
12770
12768
|
fill: "#FFFFFF"
|
|
12771
|
-
}), React__default[
|
|
12769
|
+
}), React__default['default'].createElement("path", {
|
|
12772
12770
|
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",
|
|
12773
12771
|
fill: "#182359"
|
|
12774
12772
|
}));
|
|
@@ -12794,17 +12792,17 @@ function (_Component) {
|
|
|
12794
12792
|
url = _this$props.url,
|
|
12795
12793
|
translate = _this$props.translate,
|
|
12796
12794
|
className = _this$props.className;
|
|
12797
|
-
return React__default[
|
|
12795
|
+
return React__default['default'].createElement("div", {
|
|
12798
12796
|
className: index.classnames(cx$b(''), className)
|
|
12799
|
-
}, React__default[
|
|
12797
|
+
}, React__default['default'].createElement("span", {
|
|
12800
12798
|
className: cx$b('text')
|
|
12801
|
-
}, translate('searchBy')), ' ', React__default[
|
|
12799
|
+
}, translate('searchBy')), ' ', React__default['default'].createElement("a", {
|
|
12802
12800
|
href: url,
|
|
12803
12801
|
target: "_blank",
|
|
12804
12802
|
className: cx$b('link'),
|
|
12805
12803
|
"aria-label": "Algolia",
|
|
12806
12804
|
rel: "noopener noreferrer"
|
|
12807
|
-
}, React__default[
|
|
12805
|
+
}, React__default['default'].createElement(AlgoliaLogo, null)));
|
|
12808
12806
|
}
|
|
12809
12807
|
}]);
|
|
12810
12808
|
|
|
@@ -12812,9 +12810,9 @@ function (_Component) {
|
|
|
12812
12810
|
}(React.Component);
|
|
12813
12811
|
|
|
12814
12812
|
_defineProperty(PoweredBy, "propTypes", {
|
|
12815
|
-
url: PropTypes__default[
|
|
12816
|
-
translate: PropTypes__default[
|
|
12817
|
-
className: PropTypes__default[
|
|
12813
|
+
url: PropTypes__default['default'].string.isRequired,
|
|
12814
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12815
|
+
className: PropTypes__default['default'].string
|
|
12818
12816
|
});
|
|
12819
12817
|
|
|
12820
12818
|
var PoweredBy$1 = translatable({
|
|
@@ -12933,12 +12931,12 @@ function (_Component) {
|
|
|
12933
12931
|
max = _this$normalizeRangeF.max;
|
|
12934
12932
|
|
|
12935
12933
|
var step = 1 / Math.pow(10, precision);
|
|
12936
|
-
return React__default[
|
|
12934
|
+
return React__default['default'].createElement("div", {
|
|
12937
12935
|
className: index.classnames(cx$a('', !canRefine && '-noRefinement'), className)
|
|
12938
|
-
}, React__default[
|
|
12936
|
+
}, React__default['default'].createElement("form", {
|
|
12939
12937
|
className: cx$a('form'),
|
|
12940
12938
|
onSubmit: this.onSubmit
|
|
12941
|
-
}, React__default[
|
|
12939
|
+
}, React__default['default'].createElement("input", {
|
|
12942
12940
|
className: cx$a('input', 'input--min'),
|
|
12943
12941
|
type: "number",
|
|
12944
12942
|
min: min,
|
|
@@ -12952,9 +12950,9 @@ function (_Component) {
|
|
|
12952
12950
|
from: e.currentTarget.value
|
|
12953
12951
|
});
|
|
12954
12952
|
}
|
|
12955
|
-
}), React__default[
|
|
12953
|
+
}), React__default['default'].createElement("span", {
|
|
12956
12954
|
className: cx$a('separator')
|
|
12957
|
-
}, translate('separator')), React__default[
|
|
12955
|
+
}, translate('separator')), React__default['default'].createElement("input", {
|
|
12958
12956
|
className: cx$a('input', 'input--max'),
|
|
12959
12957
|
type: "number",
|
|
12960
12958
|
min: min,
|
|
@@ -12968,7 +12966,7 @@ function (_Component) {
|
|
|
12968
12966
|
to: e.currentTarget.value
|
|
12969
12967
|
});
|
|
12970
12968
|
}
|
|
12971
|
-
}), React__default[
|
|
12969
|
+
}), React__default['default'].createElement("button", {
|
|
12972
12970
|
className: cx$a('submit'),
|
|
12973
12971
|
type: "submit"
|
|
12974
12972
|
}, translate('submit'))));
|
|
@@ -12979,17 +12977,17 @@ function (_Component) {
|
|
|
12979
12977
|
}(React.Component);
|
|
12980
12978
|
|
|
12981
12979
|
_defineProperty(RawRangeInput, "propTypes", {
|
|
12982
|
-
canRefine: PropTypes__default[
|
|
12983
|
-
precision: PropTypes__default[
|
|
12984
|
-
translate: PropTypes__default[
|
|
12985
|
-
refine: PropTypes__default[
|
|
12986
|
-
min: PropTypes__default[
|
|
12987
|
-
max: PropTypes__default[
|
|
12988
|
-
currentRefinement: PropTypes__default[
|
|
12989
|
-
min: PropTypes__default[
|
|
12990
|
-
max: PropTypes__default[
|
|
12980
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
12981
|
+
precision: PropTypes__default['default'].number.isRequired,
|
|
12982
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
12983
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
12984
|
+
min: PropTypes__default['default'].number,
|
|
12985
|
+
max: PropTypes__default['default'].number,
|
|
12986
|
+
currentRefinement: PropTypes__default['default'].shape({
|
|
12987
|
+
min: PropTypes__default['default'].number,
|
|
12988
|
+
max: PropTypes__default['default'].number
|
|
12991
12989
|
}),
|
|
12992
|
-
className: PropTypes__default[
|
|
12990
|
+
className: PropTypes__default['default'].string
|
|
12993
12991
|
});
|
|
12994
12992
|
|
|
12995
12993
|
_defineProperty(RawRangeInput, "defaultProps", {
|
|
@@ -13045,7 +13043,7 @@ var RangeInput = translatable({
|
|
|
13045
13043
|
*/
|
|
13046
13044
|
|
|
13047
13045
|
var RangeInputWidget = function RangeInputWidget(props) {
|
|
13048
|
-
return React__default[
|
|
13046
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(RangeInput, props));
|
|
13049
13047
|
};
|
|
13050
13048
|
|
|
13051
13049
|
connectRange(RangeInputWidget);
|
|
@@ -13101,13 +13099,13 @@ function (_Component) {
|
|
|
13101
13099
|
rating++;
|
|
13102
13100
|
}
|
|
13103
13101
|
|
|
13104
|
-
icons.push([React__default[
|
|
13102
|
+
icons.push([React__default['default'].createElement("svg", {
|
|
13105
13103
|
key: icon,
|
|
13106
13104
|
className: cx$9('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
|
|
13107
13105
|
"aria-hidden": "true",
|
|
13108
13106
|
width: "24",
|
|
13109
13107
|
height: "24"
|
|
13110
|
-
}, React__default[
|
|
13108
|
+
}, React__default['default'].createElement("use", {
|
|
13111
13109
|
xlinkHref: "#".concat(cx$9(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
|
|
13112
13110
|
})), ' ']);
|
|
13113
13111
|
} // The last item of the list (the default item), should not
|
|
@@ -13122,16 +13120,16 @@ function (_Component) {
|
|
|
13122
13120
|
}),
|
|
13123
13121
|
onClick: this.onClick.bind(this, lowerBound, max)
|
|
13124
13122
|
};
|
|
13125
|
-
return React__default[
|
|
13123
|
+
return React__default['default'].createElement("li", {
|
|
13126
13124
|
key: lowerBound,
|
|
13127
13125
|
className: cx$9('item', selected && 'item--selected', disabled && 'item--disabled')
|
|
13128
|
-
}, React__default[
|
|
13126
|
+
}, React__default['default'].createElement("a", index._extends({
|
|
13129
13127
|
className: cx$9('link'),
|
|
13130
13128
|
"aria-label": "".concat(rating).concat(translate('ratingLabel'))
|
|
13131
|
-
}, onClickHandler), icons, React__default[
|
|
13129
|
+
}, onClickHandler), icons, React__default['default'].createElement("span", {
|
|
13132
13130
|
className: cx$9('label'),
|
|
13133
13131
|
"aria-hidden": "true"
|
|
13134
|
-
}, translate('ratingLabel')), ' ', React__default[
|
|
13132
|
+
}, translate('ratingLabel')), ' ', React__default['default'].createElement("span", {
|
|
13135
13133
|
className: cx$9('count')
|
|
13136
13134
|
}, count)));
|
|
13137
13135
|
}
|
|
@@ -13187,24 +13185,24 @@ function (_Component) {
|
|
|
13187
13185
|
createURL: createURL
|
|
13188
13186
|
});
|
|
13189
13187
|
});
|
|
13190
|
-
return React__default[
|
|
13188
|
+
return React__default['default'].createElement("div", {
|
|
13191
13189
|
className: index.classnames(cx$9('', !canRefine && '-noRefinement'), className)
|
|
13192
|
-
}, React__default[
|
|
13190
|
+
}, React__default['default'].createElement("svg", {
|
|
13193
13191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13194
13192
|
style: {
|
|
13195
13193
|
display: 'none'
|
|
13196
13194
|
}
|
|
13197
|
-
}, React__default[
|
|
13195
|
+
}, React__default['default'].createElement("symbol", {
|
|
13198
13196
|
id: cx$9('starSymbol'),
|
|
13199
13197
|
viewBox: "0 0 24 24"
|
|
13200
|
-
}, React__default[
|
|
13198
|
+
}, React__default['default'].createElement("path", {
|
|
13201
13199
|
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"
|
|
13202
|
-
})), React__default[
|
|
13200
|
+
})), React__default['default'].createElement("symbol", {
|
|
13203
13201
|
id: cx$9('starEmptySymbol'),
|
|
13204
13202
|
viewBox: "0 0 24 24"
|
|
13205
|
-
}, React__default[
|
|
13203
|
+
}, React__default['default'].createElement("path", {
|
|
13206
13204
|
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"
|
|
13207
|
-
}))), React__default[
|
|
13205
|
+
}))), React__default['default'].createElement("ul", {
|
|
13208
13206
|
className: cx$9('list', !canRefine && 'list--noRefinement')
|
|
13209
13207
|
}, items));
|
|
13210
13208
|
}
|
|
@@ -13214,21 +13212,21 @@ function (_Component) {
|
|
|
13214
13212
|
}(React.Component);
|
|
13215
13213
|
|
|
13216
13214
|
_defineProperty(RatingMenu, "propTypes", {
|
|
13217
|
-
translate: PropTypes__default[
|
|
13218
|
-
refine: PropTypes__default[
|
|
13219
|
-
createURL: PropTypes__default[
|
|
13220
|
-
min: PropTypes__default[
|
|
13221
|
-
max: PropTypes__default[
|
|
13222
|
-
currentRefinement: PropTypes__default[
|
|
13223
|
-
min: PropTypes__default[
|
|
13224
|
-
max: PropTypes__default[
|
|
13215
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
13216
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13217
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
13218
|
+
min: PropTypes__default['default'].number,
|
|
13219
|
+
max: PropTypes__default['default'].number,
|
|
13220
|
+
currentRefinement: PropTypes__default['default'].shape({
|
|
13221
|
+
min: PropTypes__default['default'].number,
|
|
13222
|
+
max: PropTypes__default['default'].number
|
|
13225
13223
|
}),
|
|
13226
|
-
count: PropTypes__default[
|
|
13227
|
-
value: PropTypes__default[
|
|
13228
|
-
count: PropTypes__default[
|
|
13224
|
+
count: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
13225
|
+
value: PropTypes__default['default'].string,
|
|
13226
|
+
count: PropTypes__default['default'].number
|
|
13229
13227
|
})),
|
|
13230
|
-
canRefine: PropTypes__default[
|
|
13231
|
-
className: PropTypes__default[
|
|
13228
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
13229
|
+
className: PropTypes__default['default'].string
|
|
13232
13230
|
});
|
|
13233
13231
|
|
|
13234
13232
|
_defineProperty(RatingMenu, "defaultProps", {
|
|
@@ -13288,7 +13286,7 @@ var RatingMenu$1 = translatable({
|
|
|
13288
13286
|
*/
|
|
13289
13287
|
|
|
13290
13288
|
var RatingMenuWidget = function RatingMenuWidget(props) {
|
|
13291
|
-
return React__default[
|
|
13289
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(RatingMenu$1, props));
|
|
13292
13290
|
};
|
|
13293
13291
|
|
|
13294
13292
|
connectRange(RatingMenuWidget);
|
|
@@ -13324,22 +13322,22 @@ function (_Component) {
|
|
|
13324
13322
|
});
|
|
13325
13323
|
|
|
13326
13324
|
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13327
|
-
var label = _this.props.isFromSearch ? React__default[
|
|
13325
|
+
var label = _this.props.isFromSearch ? React__default['default'].createElement(Highlight, {
|
|
13328
13326
|
attribute: "label",
|
|
13329
13327
|
hit: item
|
|
13330
13328
|
}) : item.label;
|
|
13331
|
-
return React__default[
|
|
13329
|
+
return React__default['default'].createElement("label", {
|
|
13332
13330
|
className: cx$8('label')
|
|
13333
|
-
}, React__default[
|
|
13331
|
+
}, React__default['default'].createElement("input", {
|
|
13334
13332
|
className: cx$8('checkbox'),
|
|
13335
13333
|
type: "checkbox",
|
|
13336
13334
|
checked: item.isRefined,
|
|
13337
13335
|
onChange: function onChange() {
|
|
13338
13336
|
return _this.selectItem(item, resetQuery);
|
|
13339
13337
|
}
|
|
13340
|
-
}), React__default[
|
|
13338
|
+
}), React__default['default'].createElement("span", {
|
|
13341
13339
|
className: cx$8('labelText')
|
|
13342
|
-
}, label), ' ', React__default[
|
|
13340
|
+
}, label), ' ', React__default['default'].createElement("span", {
|
|
13343
13341
|
className: cx$8('count')
|
|
13344
13342
|
}, item.count.toLocaleString()));
|
|
13345
13343
|
});
|
|
@@ -13361,7 +13359,7 @@ function (_Component) {
|
|
|
13361
13359
|
searchable = _this$props.searchable,
|
|
13362
13360
|
canRefine = _this$props.canRefine,
|
|
13363
13361
|
className = _this$props.className;
|
|
13364
|
-
return React__default[
|
|
13362
|
+
return React__default['default'].createElement(List, {
|
|
13365
13363
|
renderItem: this.renderItem,
|
|
13366
13364
|
selectItem: this.selectItem,
|
|
13367
13365
|
cx: cx$8,
|
|
@@ -13384,24 +13382,24 @@ function (_Component) {
|
|
|
13384
13382
|
}(React.Component);
|
|
13385
13383
|
|
|
13386
13384
|
_defineProperty(RefinementList$1, "propTypes", {
|
|
13387
|
-
translate: PropTypes__default[
|
|
13388
|
-
refine: PropTypes__default[
|
|
13389
|
-
searchForItems: PropTypes__default[
|
|
13390
|
-
searchable: PropTypes__default[
|
|
13391
|
-
createURL: PropTypes__default[
|
|
13392
|
-
items: PropTypes__default[
|
|
13393
|
-
label: PropTypes__default[
|
|
13394
|
-
value: PropTypes__default[
|
|
13395
|
-
count: PropTypes__default[
|
|
13396
|
-
isRefined: PropTypes__default[
|
|
13385
|
+
translate: PropTypes__default['default'].func.isRequired,
|
|
13386
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13387
|
+
searchForItems: PropTypes__default['default'].func.isRequired,
|
|
13388
|
+
searchable: PropTypes__default['default'].bool,
|
|
13389
|
+
createURL: PropTypes__default['default'].func.isRequired,
|
|
13390
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
13391
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
13392
|
+
value: PropTypes__default['default'].arrayOf(PropTypes__default['default'].string).isRequired,
|
|
13393
|
+
count: PropTypes__default['default'].number.isRequired,
|
|
13394
|
+
isRefined: PropTypes__default['default'].bool.isRequired
|
|
13397
13395
|
})),
|
|
13398
|
-
isFromSearch: PropTypes__default[
|
|
13399
|
-
canRefine: PropTypes__default[
|
|
13400
|
-
showMore: PropTypes__default[
|
|
13401
|
-
limit: PropTypes__default[
|
|
13402
|
-
showMoreLimit: PropTypes__default[
|
|
13403
|
-
transformItems: PropTypes__default[
|
|
13404
|
-
className: PropTypes__default[
|
|
13396
|
+
isFromSearch: PropTypes__default['default'].bool.isRequired,
|
|
13397
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
13398
|
+
showMore: PropTypes__default['default'].bool,
|
|
13399
|
+
limit: PropTypes__default['default'].number,
|
|
13400
|
+
showMoreLimit: PropTypes__default['default'].number,
|
|
13401
|
+
transformItems: PropTypes__default['default'].func,
|
|
13402
|
+
className: PropTypes__default['default'].string
|
|
13405
13403
|
});
|
|
13406
13404
|
|
|
13407
13405
|
_defineProperty(RefinementList$1, "defaultProps", {
|
|
@@ -13473,7 +13471,7 @@ var RefinementList$2 = translatable({
|
|
|
13473
13471
|
*/
|
|
13474
13472
|
|
|
13475
13473
|
var RefinementListWidget = function RefinementListWidget(props) {
|
|
13476
|
-
return React__default[
|
|
13474
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(RefinementList$2, props));
|
|
13477
13475
|
};
|
|
13478
13476
|
|
|
13479
13477
|
var RefinementList = connectRefinementList(RefinementListWidget);
|
|
@@ -13507,7 +13505,7 @@ function (_Component) {
|
|
|
13507
13505
|
value: function render() {
|
|
13508
13506
|
var _this = this;
|
|
13509
13507
|
|
|
13510
|
-
return React__default[
|
|
13508
|
+
return React__default['default'].createElement("div", {
|
|
13511
13509
|
ref: function ref(_ref) {
|
|
13512
13510
|
return _this.el = _ref;
|
|
13513
13511
|
},
|
|
@@ -13520,9 +13518,9 @@ function (_Component) {
|
|
|
13520
13518
|
}(React.Component);
|
|
13521
13519
|
|
|
13522
13520
|
_defineProperty(ScrollTo, "propTypes", {
|
|
13523
|
-
value: PropTypes__default[
|
|
13524
|
-
children: PropTypes__default[
|
|
13525
|
-
hasNotChanged: PropTypes__default[
|
|
13521
|
+
value: PropTypes__default['default'].any,
|
|
13522
|
+
children: PropTypes__default['default'].node,
|
|
13523
|
+
hasNotChanged: PropTypes__default['default'].bool
|
|
13526
13524
|
});
|
|
13527
13525
|
|
|
13528
13526
|
/**
|
|
@@ -13611,7 +13609,7 @@ var SearchBox = connectSearchBox(SearchBox$2);
|
|
|
13611
13609
|
var cx$6 = createClassNames('Snippet');
|
|
13612
13610
|
|
|
13613
13611
|
var Snippet = function Snippet(props) {
|
|
13614
|
-
return React__default[
|
|
13612
|
+
return React__default['default'].createElement(Highlighter, index._extends({}, props, {
|
|
13615
13613
|
highlightProperty: "_snippetResult",
|
|
13616
13614
|
cx: cx$6
|
|
13617
13615
|
}));
|
|
@@ -13667,7 +13665,7 @@ var cx$5 = createClassNames('RelevantSort');
|
|
|
13667
13665
|
|
|
13668
13666
|
var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
|
|
13669
13667
|
var isRelevantSorted = _ref.isRelevantSorted;
|
|
13670
|
-
return React__default[
|
|
13668
|
+
return React__default['default'].createElement("span", null, isRelevantSorted ? 'See all results' : 'See relevant results');
|
|
13671
13669
|
};
|
|
13672
13670
|
|
|
13673
13671
|
var RelevantSort = function RelevantSort(_ref2) {
|
|
@@ -13679,29 +13677,29 @@ var RelevantSort = function RelevantSort(_ref2) {
|
|
|
13679
13677
|
ButtonTextComponent = _ref2$buttonTextCompo === void 0 ? DefaultButtonTextComponent : _ref2$buttonTextCompo,
|
|
13680
13678
|
TextComponent = _ref2.textComponent,
|
|
13681
13679
|
refine = _ref2.refine;
|
|
13682
|
-
return !isVirtualReplica ? null : React__default[
|
|
13680
|
+
return !isVirtualReplica ? null : React__default['default'].createElement("div", {
|
|
13683
13681
|
className: index.classnames(cx$5(''), className)
|
|
13684
|
-
}, React__default[
|
|
13682
|
+
}, React__default['default'].createElement("div", {
|
|
13685
13683
|
className: cx$5('text')
|
|
13686
|
-
}, TextComponent && React__default[
|
|
13684
|
+
}, TextComponent && React__default['default'].createElement(TextComponent, {
|
|
13687
13685
|
isRelevantSorted: isRelevantSorted
|
|
13688
|
-
})), React__default[
|
|
13686
|
+
})), React__default['default'].createElement("button", {
|
|
13689
13687
|
className: cx$5('button'),
|
|
13690
13688
|
onClick: function onClick() {
|
|
13691
13689
|
return refine(isRelevantSorted ? 0 : undefined);
|
|
13692
13690
|
}
|
|
13693
|
-
}, React__default[
|
|
13691
|
+
}, React__default['default'].createElement(ButtonTextComponent, {
|
|
13694
13692
|
isRelevantSorted: isRelevantSorted
|
|
13695
13693
|
})));
|
|
13696
13694
|
};
|
|
13697
13695
|
|
|
13698
13696
|
RelevantSort.propTypes = {
|
|
13699
|
-
buttonTextComponent: PropTypes__default[
|
|
13700
|
-
className: PropTypes__default[
|
|
13701
|
-
isVirtualReplica: PropTypes__default[
|
|
13702
|
-
isRelevantSorted: PropTypes__default[
|
|
13703
|
-
refine: PropTypes__default[
|
|
13704
|
-
textComponent: PropTypes__default[
|
|
13697
|
+
buttonTextComponent: PropTypes__default['default'].func,
|
|
13698
|
+
className: PropTypes__default['default'].string,
|
|
13699
|
+
isVirtualReplica: PropTypes__default['default'].bool.isRequired,
|
|
13700
|
+
isRelevantSorted: PropTypes__default['default'].bool.isRequired,
|
|
13701
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13702
|
+
textComponent: PropTypes__default['default'].func
|
|
13705
13703
|
};
|
|
13706
13704
|
|
|
13707
13705
|
connectRelevantSort(RelevantSort);
|
|
@@ -13728,9 +13726,9 @@ function (_Component) {
|
|
|
13728
13726
|
currentRefinement = _this$props.currentRefinement,
|
|
13729
13727
|
refine = _this$props.refine,
|
|
13730
13728
|
className = _this$props.className;
|
|
13731
|
-
return React__default[
|
|
13729
|
+
return React__default['default'].createElement("div", {
|
|
13732
13730
|
className: index.classnames(cx$4(''), className)
|
|
13733
|
-
}, React__default[
|
|
13731
|
+
}, React__default['default'].createElement(Select, {
|
|
13734
13732
|
id: id,
|
|
13735
13733
|
cx: cx$4,
|
|
13736
13734
|
items: items,
|
|
@@ -13744,14 +13742,14 @@ function (_Component) {
|
|
|
13744
13742
|
}(React.Component);
|
|
13745
13743
|
|
|
13746
13744
|
_defineProperty(SortBy, "propTypes", {
|
|
13747
|
-
id: PropTypes__default[
|
|
13748
|
-
items: PropTypes__default[
|
|
13749
|
-
label: PropTypes__default[
|
|
13750
|
-
value: PropTypes__default[
|
|
13745
|
+
id: PropTypes__default['default'].string,
|
|
13746
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
13747
|
+
label: PropTypes__default['default'].string,
|
|
13748
|
+
value: PropTypes__default['default'].string.isRequired
|
|
13751
13749
|
})).isRequired,
|
|
13752
|
-
currentRefinement: PropTypes__default[
|
|
13753
|
-
refine: PropTypes__default[
|
|
13754
|
-
className: PropTypes__default[
|
|
13750
|
+
currentRefinement: PropTypes__default['default'].string.isRequired,
|
|
13751
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13752
|
+
className: PropTypes__default['default'].string
|
|
13755
13753
|
});
|
|
13756
13754
|
|
|
13757
13755
|
_defineProperty(SortBy, "defaultProps", {
|
|
@@ -13810,20 +13808,20 @@ var Stats = function Stats(_ref) {
|
|
|
13810
13808
|
nbSortedHits = _ref.nbSortedHits,
|
|
13811
13809
|
processingTimeMS = _ref.processingTimeMS,
|
|
13812
13810
|
translate = _ref.translate;
|
|
13813
|
-
return React__default[
|
|
13811
|
+
return React__default['default'].createElement("div", {
|
|
13814
13812
|
className: index.classnames(cx$3(''), className)
|
|
13815
|
-
}, React__default[
|
|
13813
|
+
}, React__default['default'].createElement("span", {
|
|
13816
13814
|
className: cx$3('text')
|
|
13817
13815
|
}, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
|
|
13818
13816
|
};
|
|
13819
13817
|
|
|
13820
13818
|
Stats.propTypes = {
|
|
13821
|
-
className: PropTypes__default[
|
|
13822
|
-
areHitsSorted: PropTypes__default[
|
|
13823
|
-
nbHits: PropTypes__default[
|
|
13824
|
-
nbSortedHits: PropTypes__default[
|
|
13825
|
-
processingTimeMS: PropTypes__default[
|
|
13826
|
-
translate: PropTypes__default[
|
|
13819
|
+
className: PropTypes__default['default'].string,
|
|
13820
|
+
areHitsSorted: PropTypes__default['default'].bool.isRequired,
|
|
13821
|
+
nbHits: PropTypes__default['default'].number.isRequired,
|
|
13822
|
+
nbSortedHits: PropTypes__default['default'].number,
|
|
13823
|
+
processingTimeMS: PropTypes__default['default'].number.isRequired,
|
|
13824
|
+
translate: PropTypes__default['default'].func.isRequired
|
|
13827
13825
|
};
|
|
13828
13826
|
var Stats$1 = translatable({
|
|
13829
13827
|
stats: function stats(n, ms, nSorted, areHitsSorted) {
|
|
@@ -13869,28 +13867,28 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
|
|
|
13869
13867
|
canRefine = _ref.canRefine,
|
|
13870
13868
|
refine = _ref.refine,
|
|
13871
13869
|
className = _ref.className;
|
|
13872
|
-
return React__default[
|
|
13870
|
+
return React__default['default'].createElement("div", {
|
|
13873
13871
|
className: index.classnames(cx$2('', !canRefine && '-noRefinement'), className)
|
|
13874
|
-
}, React__default[
|
|
13872
|
+
}, React__default['default'].createElement("label", {
|
|
13875
13873
|
className: cx$2('label')
|
|
13876
|
-
}, React__default[
|
|
13874
|
+
}, React__default['default'].createElement("input", {
|
|
13877
13875
|
className: cx$2('checkbox'),
|
|
13878
13876
|
type: "checkbox",
|
|
13879
13877
|
checked: currentRefinement,
|
|
13880
13878
|
onChange: function onChange(event) {
|
|
13881
13879
|
return refine(event.target.checked);
|
|
13882
13880
|
}
|
|
13883
|
-
}), React__default[
|
|
13881
|
+
}), React__default['default'].createElement("span", {
|
|
13884
13882
|
className: cx$2('labelText')
|
|
13885
13883
|
}, label)));
|
|
13886
13884
|
};
|
|
13887
13885
|
|
|
13888
13886
|
ToggleRefinement.propTypes = {
|
|
13889
|
-
currentRefinement: PropTypes__default[
|
|
13890
|
-
label: PropTypes__default[
|
|
13891
|
-
canRefine: PropTypes__default[
|
|
13892
|
-
refine: PropTypes__default[
|
|
13893
|
-
className: PropTypes__default[
|
|
13887
|
+
currentRefinement: PropTypes__default['default'].bool.isRequired,
|
|
13888
|
+
label: PropTypes__default['default'].string.isRequired,
|
|
13889
|
+
canRefine: PropTypes__default['default'].bool.isRequired,
|
|
13890
|
+
refine: PropTypes__default['default'].func.isRequired,
|
|
13891
|
+
className: PropTypes__default['default'].string
|
|
13894
13892
|
};
|
|
13895
13893
|
ToggleRefinement.defaultProps = {
|
|
13896
13894
|
className: ''
|
|
@@ -14094,7 +14092,7 @@ var cx$1 = createClassNames('VoiceSearch');
|
|
|
14094
14092
|
|
|
14095
14093
|
var ButtonSvg = function ButtonSvg(_ref) {
|
|
14096
14094
|
var children = _ref.children;
|
|
14097
|
-
return React__default[
|
|
14095
|
+
return React__default['default'].createElement("svg", {
|
|
14098
14096
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14099
14097
|
width: "16",
|
|
14100
14098
|
height: "16",
|
|
@@ -14111,36 +14109,36 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
14111
14109
|
var status = _ref2.status,
|
|
14112
14110
|
errorCode = _ref2.errorCode,
|
|
14113
14111
|
isListening = _ref2.isListening;
|
|
14114
|
-
return status === 'error' && errorCode === 'not-allowed' ? React__default[
|
|
14112
|
+
return status === 'error' && errorCode === 'not-allowed' ? React__default['default'].createElement(ButtonSvg, null, React__default['default'].createElement("line", {
|
|
14115
14113
|
x1: "1",
|
|
14116
14114
|
y1: "1",
|
|
14117
14115
|
x2: "23",
|
|
14118
14116
|
y2: "23"
|
|
14119
|
-
}), React__default[
|
|
14117
|
+
}), React__default['default'].createElement("path", {
|
|
14120
14118
|
d: "M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"
|
|
14121
|
-
}), React__default[
|
|
14119
|
+
}), React__default['default'].createElement("path", {
|
|
14122
14120
|
d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"
|
|
14123
|
-
}), React__default[
|
|
14121
|
+
}), React__default['default'].createElement("line", {
|
|
14124
14122
|
x1: "12",
|
|
14125
14123
|
y1: "19",
|
|
14126
14124
|
x2: "12",
|
|
14127
14125
|
y2: "23"
|
|
14128
|
-
}), React__default[
|
|
14126
|
+
}), React__default['default'].createElement("line", {
|
|
14129
14127
|
x1: "8",
|
|
14130
14128
|
y1: "23",
|
|
14131
14129
|
x2: "16",
|
|
14132
14130
|
y2: "23"
|
|
14133
|
-
})) : React__default[
|
|
14131
|
+
})) : React__default['default'].createElement(ButtonSvg, null, React__default['default'].createElement("path", {
|
|
14134
14132
|
d: "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",
|
|
14135
14133
|
fill: isListening ? 'currentColor' : ''
|
|
14136
|
-
}), React__default[
|
|
14134
|
+
}), React__default['default'].createElement("path", {
|
|
14137
14135
|
d: "M19 10v2a7 7 0 0 1-14 0v-2"
|
|
14138
|
-
}), React__default[
|
|
14136
|
+
}), React__default['default'].createElement("line", {
|
|
14139
14137
|
x1: "12",
|
|
14140
14138
|
y1: "19",
|
|
14141
14139
|
x2: "12",
|
|
14142
14140
|
y2: "23"
|
|
14143
|
-
}), React__default[
|
|
14141
|
+
}), React__default['default'].createElement("line", {
|
|
14144
14142
|
x1: "8",
|
|
14145
14143
|
y1: "23",
|
|
14146
14144
|
x2: "16",
|
|
@@ -14150,7 +14148,7 @@ var DefaultButtonText = function DefaultButtonText(_ref2) {
|
|
|
14150
14148
|
|
|
14151
14149
|
var DefaultStatus = function DefaultStatus(_ref3) {
|
|
14152
14150
|
var transcript = _ref3.transcript;
|
|
14153
|
-
return React__default[
|
|
14151
|
+
return React__default['default'].createElement("p", null, transcript);
|
|
14154
14152
|
};
|
|
14155
14153
|
|
|
14156
14154
|
var VoiceSearch =
|
|
@@ -14235,17 +14233,17 @@ function (_Component) {
|
|
|
14235
14233
|
isSpeechFinal: isSpeechFinal,
|
|
14236
14234
|
isBrowserSupported: isBrowserSupported()
|
|
14237
14235
|
};
|
|
14238
|
-
return React__default[
|
|
14236
|
+
return React__default['default'].createElement("div", {
|
|
14239
14237
|
className: cx$1('')
|
|
14240
|
-
}, React__default[
|
|
14238
|
+
}, React__default['default'].createElement("button", {
|
|
14241
14239
|
className: cx$1('button'),
|
|
14242
14240
|
type: "button",
|
|
14243
14241
|
title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
|
|
14244
14242
|
onClick: this.onClick,
|
|
14245
14243
|
disabled: !isBrowserSupported()
|
|
14246
|
-
}, React__default[
|
|
14244
|
+
}, React__default['default'].createElement(ButtonTextComponent, innerProps)), React__default['default'].createElement("div", {
|
|
14247
14245
|
className: cx$1('status')
|
|
14248
|
-
}, React__default[
|
|
14246
|
+
}, React__default['default'].createElement(StatusComponent, innerProps)));
|
|
14249
14247
|
}
|
|
14250
14248
|
}, {
|
|
14251
14249
|
key: "componentWillUnmount",
|
|
@@ -14278,7 +14276,7 @@ var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
|
14278
14276
|
var items = _ref.items,
|
|
14279
14277
|
className = _ref.className,
|
|
14280
14278
|
children = _ref.children;
|
|
14281
|
-
return React__default[
|
|
14279
|
+
return React__default['default'].createElement("div", {
|
|
14282
14280
|
className: index.classnames(cx(''), className)
|
|
14283
14281
|
}, children({
|
|
14284
14282
|
items: items
|
|
@@ -14286,13 +14284,13 @@ var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
|
|
|
14286
14284
|
};
|
|
14287
14285
|
|
|
14288
14286
|
QueryRuleCustomData.propTypes = {
|
|
14289
|
-
items: PropTypes__default[
|
|
14290
|
-
className: PropTypes__default[
|
|
14291
|
-
children: PropTypes__default[
|
|
14287
|
+
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].object).isRequired,
|
|
14288
|
+
className: PropTypes__default['default'].string,
|
|
14289
|
+
children: PropTypes__default['default'].func.isRequired
|
|
14292
14290
|
};
|
|
14293
14291
|
|
|
14294
14292
|
var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
14295
|
-
return React__default[
|
|
14293
|
+
return React__default['default'].createElement(PanelWrapper, props, React__default['default'].createElement(QueryRuleCustomData, props));
|
|
14296
14294
|
};
|
|
14297
14295
|
|
|
14298
14296
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
@@ -14315,32 +14313,32 @@ var HitComponent = function HitComponent(hits, props) {
|
|
|
14315
14313
|
|
|
14316
14314
|
var dateFormat = siteType === 'pharmsci' ? 'MMMM DD, YYYY' : 'MMMM Do YYYY';
|
|
14317
14315
|
|
|
14318
|
-
return React__default[
|
|
14316
|
+
return React__default['default'].createElement(
|
|
14319
14317
|
'div',
|
|
14320
14318
|
{ key: hit.url, className: 'hitResult ' + styles.article },
|
|
14321
14319
|
hit.thumbnail && hit.thumbnail.asset ? imageDiv(hit, styles, client, siteType, defaultImage, variant) : !hit.thumbnail && siteType !== 'pharmsci' ? imageDiv(hit, styles, client, siteType, defaultImage, variant) : null,
|
|
14322
|
-
React__default[
|
|
14320
|
+
React__default['default'].createElement(
|
|
14323
14321
|
'div',
|
|
14324
14322
|
{ className: styles.info, style: props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14325
|
-
React__default[
|
|
14323
|
+
React__default['default'].createElement(
|
|
14326
14324
|
'a',
|
|
14327
14325
|
{ href: '/view/' + hit.url },
|
|
14328
|
-
React__default[
|
|
14326
|
+
React__default['default'].createElement(
|
|
14329
14327
|
'h2',
|
|
14330
14328
|
null,
|
|
14331
14329
|
hit.title
|
|
14332
14330
|
)
|
|
14333
14331
|
),
|
|
14334
|
-
hit.pubDateSort && React__default[
|
|
14332
|
+
hit.pubDateSort && React__default['default'].createElement(
|
|
14335
14333
|
'p',
|
|
14336
14334
|
{ className: styles.published },
|
|
14337
14335
|
moment.moment(hit.pubDateSort).format('' + dateFormat)
|
|
14338
14336
|
),
|
|
14339
|
-
hit.authorMapping && hit.authorMapping.length > 0 && React__default[
|
|
14337
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default['default'].createElement(
|
|
14340
14338
|
'p',
|
|
14341
14339
|
{ className: styles.author },
|
|
14342
14340
|
hit.authorMapping.map(function (author, index) {
|
|
14343
|
-
return React__default[
|
|
14341
|
+
return React__default['default'].createElement(
|
|
14344
14342
|
'span',
|
|
14345
14343
|
{ key: author + '_' + index },
|
|
14346
14344
|
author.displayName,
|
|
@@ -14348,25 +14346,25 @@ var HitComponent = function HitComponent(hits, props) {
|
|
|
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 AND "type":article' }),
|
|
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;
|