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