@mjhls/mjh-framework 1.0.850-beta.0 → 1.0.850-beta.2
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/dist/cjs/AdSlotsProvider.js +2 -895
- package/dist/cjs/AlgoliaSearch.js +336 -237
- package/dist/cjs/ArticleProgramLandingPage.js +2 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +1 -1
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/ExternalResources.js +2 -3
- package/dist/cjs/GridContent.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +2 -3
- package/dist/cjs/IssueLanding.js +2 -3
- package/dist/cjs/MasterDeck.js +1 -1
- package/dist/cjs/MediaSeriesLanding.js +5 -6
- package/dist/cjs/PartnerDetailListing.js +6 -1105
- package/dist/cjs/QueueDeckExpanded.js +1097 -112
- package/dist/cjs/TaxonomyDescription.js +2 -3
- package/dist/cjs/VideoProgramLandingPage.js +2 -3
- package/dist/cjs/VideoSeriesCard.js +2 -2
- package/dist/cjs/VideoSeriesLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +5 -7
- package/dist/cjs/faundadb.js +321 -4
- package/dist/cjs/getRelatedArticle.js +21 -438
- package/dist/cjs/getSerializers.js +2 -3
- package/dist/cjs/{index-bc88f898.js → index-4151deb3.js} +587 -15
- package/dist/cjs/index.js +6 -13
- package/dist/cjs/{inherits-452ff02c.js → inherits-9953db94.js} +4 -4
- package/dist/esm/AdSlotsProvider.js +6 -898
- package/dist/esm/AlgoliaSearch.js +100 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -2
- package/dist/esm/ExternalResources.js +1 -2
- package/dist/esm/HorizontalArticleListing.js +1 -2
- package/dist/esm/IssueLanding.js +1 -2
- package/dist/esm/MediaSeriesLanding.js +1 -2
- package/dist/esm/PartnerDetailListing.js +5 -1103
- package/dist/esm/QueueDeckExpanded.js +1098 -113
- package/dist/esm/TaxonomyDescription.js +1 -2
- package/dist/esm/VideoProgramLandingPage.js +1 -2
- package/dist/esm/View.js +2 -4
- package/dist/esm/faundadb.js +319 -2
- package/dist/esm/getRelatedArticle.js +21 -438
- package/dist/esm/getSerializers.js +1 -2
- package/dist/esm/{index-f2a0d400.js → index-d6dc592a.js} +575 -3
- package/dist/esm/index.js +4 -10
- package/package.json +8 -3
- package/dist/cjs/Auth.js +0 -3428
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/md5-5039b1a6.js +0 -323
- package/dist/cjs/util-f2c1b65b.js +0 -576
- package/dist/esm/Auth.js +0 -3412
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/md5-9be0e905.js +0 -321
- package/dist/esm/util-7700fc59.js +0 -574
|
@@ -9,10 +9,10 @@ require('./_library-dd23b178.js');
|
|
|
9
9
|
require('./_object-pie-68c5bcbc.js');
|
|
10
10
|
var _extends = require('./extends-0a918631.js');
|
|
11
11
|
require('./_object-sap-5e74ba08.js');
|
|
12
|
-
var inherits$1 = require('./inherits-
|
|
12
|
+
var inherits$1 = require('./inherits-9953db94.js');
|
|
13
13
|
require('./define-property-f4d12f4e.js');
|
|
14
14
|
require('./web.dom.iterable-a0e279c1.js');
|
|
15
|
-
var _typeof = require('./typeof-725500bc.js');
|
|
15
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
16
16
|
require('./_is-array-754e012d.js');
|
|
17
17
|
var React = require('react');
|
|
18
18
|
var React__default = _interopDefault(React);
|
|
@@ -26,7 +26,6 @@ var urlFor = require('./urlFor.js');
|
|
|
26
26
|
var index$2 = require('./index-96b3db50.js');
|
|
27
27
|
var reactBootstrap = require('react-bootstrap');
|
|
28
28
|
var index$5 = require('./index-e2e62963.js');
|
|
29
|
-
var inherits$1$1 = require('./inherits-8d29278d.js');
|
|
30
29
|
|
|
31
30
|
function _objectWithoutProperties(source, excluded) {
|
|
32
31
|
if (source == null) return {};
|
|
@@ -47,6 +46,21 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
47
46
|
return target;
|
|
48
47
|
}
|
|
49
48
|
|
|
49
|
+
function _defineProperty(obj, key, value) {
|
|
50
|
+
if (key in obj) {
|
|
51
|
+
Object.defineProperty(obj, key, {
|
|
52
|
+
value: value,
|
|
53
|
+
enumerable: true,
|
|
54
|
+
configurable: true,
|
|
55
|
+
writable: true
|
|
56
|
+
});
|
|
57
|
+
} else {
|
|
58
|
+
obj[key] = value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return obj;
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
function _objectSpread(target) {
|
|
51
65
|
for (var i = 1; i < arguments.length; i++) {
|
|
52
66
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -59,13 +73,98 @@ function _objectSpread(target) {
|
|
|
59
73
|
}
|
|
60
74
|
|
|
61
75
|
ownKeys.forEach(function (key) {
|
|
62
|
-
|
|
76
|
+
_defineProperty(target, key, source[key]);
|
|
63
77
|
});
|
|
64
78
|
}
|
|
65
79
|
|
|
66
80
|
return target;
|
|
67
81
|
}
|
|
68
82
|
|
|
83
|
+
function _classCallCheck(instance, Constructor) {
|
|
84
|
+
if (!(instance instanceof Constructor)) {
|
|
85
|
+
throw new TypeError("Cannot call a class as a function");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function _defineProperties(target, props) {
|
|
90
|
+
for (var i = 0; i < props.length; i++) {
|
|
91
|
+
var descriptor = props[i];
|
|
92
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
93
|
+
descriptor.configurable = true;
|
|
94
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
95
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
100
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
101
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
102
|
+
return Constructor;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
|
|
106
|
+
|
|
107
|
+
function _typeof(obj) {
|
|
108
|
+
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
|
109
|
+
_typeof = function _typeof(obj) {
|
|
110
|
+
return _typeof2(obj);
|
|
111
|
+
};
|
|
112
|
+
} else {
|
|
113
|
+
_typeof = function _typeof(obj) {
|
|
114
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return _typeof(obj);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function _assertThisInitialized(self) {
|
|
122
|
+
if (self === void 0) {
|
|
123
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return self;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function _possibleConstructorReturn(self, call) {
|
|
130
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
131
|
+
return call;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return _assertThisInitialized(self);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function _getPrototypeOf(o) {
|
|
138
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
139
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
140
|
+
};
|
|
141
|
+
return _getPrototypeOf(o);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function _setPrototypeOf(o, p) {
|
|
145
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
146
|
+
o.__proto__ = p;
|
|
147
|
+
return o;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
return _setPrototypeOf(o, p);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function _inherits(subClass, superClass) {
|
|
154
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
155
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
159
|
+
constructor: {
|
|
160
|
+
value: subClass,
|
|
161
|
+
writable: true,
|
|
162
|
+
configurable: true
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
166
|
+
}
|
|
167
|
+
|
|
69
168
|
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
70
169
|
|
|
71
170
|
var hasElementType = typeof Element !== 'undefined';
|
|
@@ -234,7 +333,7 @@ var defer = function defer(f) {
|
|
|
234
333
|
};
|
|
235
334
|
|
|
236
335
|
var isPlainObject = function isPlainObject(value) {
|
|
237
|
-
return
|
|
336
|
+
return _typeof(value) === 'object' && value !== null && !Array.isArray(value);
|
|
238
337
|
};
|
|
239
338
|
|
|
240
339
|
var removeEmptyKey = function removeEmptyKey(obj) {
|
|
@@ -393,26 +492,26 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
393
492
|
var Connector =
|
|
394
493
|
/*#__PURE__*/
|
|
395
494
|
function (_Component) {
|
|
396
|
-
|
|
495
|
+
_inherits(Connector, _Component);
|
|
397
496
|
|
|
398
497
|
function Connector(props) {
|
|
399
498
|
var _this;
|
|
400
499
|
|
|
401
|
-
|
|
500
|
+
_classCallCheck(this, Connector);
|
|
402
501
|
|
|
403
|
-
_this =
|
|
502
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(Connector).call(this, props));
|
|
404
503
|
|
|
405
|
-
|
|
504
|
+
_defineProperty(_assertThisInitialized(_this), "unsubscribe", void 0);
|
|
406
505
|
|
|
407
|
-
|
|
506
|
+
_defineProperty(_assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
408
507
|
|
|
409
|
-
|
|
508
|
+
_defineProperty(_assertThisInitialized(_this), "isUnmounting", false);
|
|
410
509
|
|
|
411
|
-
|
|
510
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
412
511
|
providedProps: _this.getProvidedProps(_this.props)
|
|
413
512
|
});
|
|
414
513
|
|
|
415
|
-
|
|
514
|
+
_defineProperty(_assertThisInitialized(_this), "refine", function () {
|
|
416
515
|
var _ref;
|
|
417
516
|
|
|
418
517
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -420,10 +519,10 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
420
519
|
}
|
|
421
520
|
|
|
422
521
|
_this.props.contextValue.onInternalStateUpdate( // refine will always be defined here because the prop is only given conditionally
|
|
423
|
-
(_ref = connectorDesc.refine).call.apply(_ref, [
|
|
522
|
+
(_ref = connectorDesc.refine).call.apply(_ref, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
424
523
|
});
|
|
425
524
|
|
|
426
|
-
|
|
525
|
+
_defineProperty(_assertThisInitialized(_this), "createURL", function () {
|
|
427
526
|
var _ref2;
|
|
428
527
|
|
|
429
528
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
@@ -431,10 +530,10 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
431
530
|
}
|
|
432
531
|
|
|
433
532
|
return _this.props.contextValue.createHrefForState( // refine will always be defined here because the prop is only given conditionally
|
|
434
|
-
(_ref2 = connectorDesc.refine).call.apply(_ref2, [
|
|
533
|
+
(_ref2 = connectorDesc.refine).call.apply(_ref2, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
435
534
|
});
|
|
436
535
|
|
|
437
|
-
|
|
536
|
+
_defineProperty(_assertThisInitialized(_this), "searchForFacetValues", function () {
|
|
438
537
|
var _ref3;
|
|
439
538
|
|
|
440
539
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
@@ -442,20 +541,20 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
442
541
|
}
|
|
443
542
|
|
|
444
543
|
_this.props.contextValue.onSearchForFacetValues( // searchForFacetValues will always be defined here because the prop is only given conditionally
|
|
445
|
-
(_ref3 = connectorDesc.searchForFacetValues).call.apply(_ref3, [
|
|
544
|
+
(_ref3 = connectorDesc.searchForFacetValues).call.apply(_ref3, [_assertThisInitialized(_this), _this.props, _this.props.contextValue.store.getState().widgets].concat(args)));
|
|
446
545
|
});
|
|
447
546
|
|
|
448
547
|
if (connectorDesc.getSearchParameters) {
|
|
449
|
-
_this.props.contextValue.onSearchParameters(connectorDesc.getSearchParameters.bind(
|
|
548
|
+
_this.props.contextValue.onSearchParameters(connectorDesc.getSearchParameters.bind(_assertThisInitialized(_this)), {
|
|
450
549
|
ais: _this.props.contextValue,
|
|
451
550
|
multiIndexContext: _this.props.indexContextValue
|
|
452
|
-
}, _this.props, connectorDesc.getMetadata && connectorDesc.getMetadata.bind(
|
|
551
|
+
}, _this.props, connectorDesc.getMetadata && connectorDesc.getMetadata.bind(_assertThisInitialized(_this)));
|
|
453
552
|
}
|
|
454
553
|
|
|
455
554
|
return _this;
|
|
456
555
|
}
|
|
457
556
|
|
|
458
|
-
|
|
557
|
+
_createClass(Connector, [{
|
|
459
558
|
key: "componentDidMount",
|
|
460
559
|
value: function componentDidMount() {
|
|
461
560
|
var _this2 = this;
|
|
@@ -608,11 +707,11 @@ function createConnectorWithoutContext(connectorDesc) {
|
|
|
608
707
|
return Connector;
|
|
609
708
|
}(React.Component);
|
|
610
709
|
|
|
611
|
-
|
|
710
|
+
_defineProperty(Connector, "displayName", "".concat(connectorDesc.displayName, "(").concat(getDisplayName(Composed), ")"));
|
|
612
711
|
|
|
613
|
-
|
|
712
|
+
_defineProperty(Connector, "propTypes", connectorDesc.propTypes);
|
|
614
713
|
|
|
615
|
-
|
|
714
|
+
_defineProperty(Connector, "defaultProps", connectorDesc.defaultProps);
|
|
616
715
|
|
|
617
716
|
return Connector;
|
|
618
717
|
};
|
|
@@ -762,22 +861,22 @@ function translatable(defaultTranslations) {
|
|
|
762
861
|
var Translatable =
|
|
763
862
|
/*#__PURE__*/
|
|
764
863
|
function (_Component) {
|
|
765
|
-
|
|
864
|
+
_inherits(Translatable, _Component);
|
|
766
865
|
|
|
767
866
|
function Translatable() {
|
|
768
867
|
var _getPrototypeOf2;
|
|
769
868
|
|
|
770
869
|
var _this;
|
|
771
870
|
|
|
772
|
-
|
|
871
|
+
_classCallCheck(this, Translatable);
|
|
773
872
|
|
|
774
873
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
775
874
|
args[_key] = arguments[_key];
|
|
776
875
|
}
|
|
777
876
|
|
|
778
|
-
_this =
|
|
877
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Translatable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
779
878
|
|
|
780
|
-
|
|
879
|
+
_defineProperty(_assertThisInitialized(_this), "translate", function (key) {
|
|
781
880
|
var translations = _this.props.translations;
|
|
782
881
|
var translation = translations && translations.hasOwnProperty(key) ? translations[key] : defaultTranslations[key];
|
|
783
882
|
|
|
@@ -795,7 +894,7 @@ function translatable(defaultTranslations) {
|
|
|
795
894
|
return _this;
|
|
796
895
|
}
|
|
797
896
|
|
|
798
|
-
|
|
897
|
+
_createClass(Translatable, [{
|
|
799
898
|
key: "render",
|
|
800
899
|
value: function render() {
|
|
801
900
|
return React__default.createElement(Composed, index$5._extends({
|
|
@@ -868,7 +967,7 @@ function refineMultiIndex(searchState, nextRefinement, indexId, resetPage) {
|
|
|
868
967
|
var page = resetPage ? {
|
|
869
968
|
page: 1
|
|
870
969
|
} : undefined;
|
|
871
|
-
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices,
|
|
970
|
+
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, searchState.indices[indexId], nextRefinement, page))) : _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, nextRefinement, page)));
|
|
872
971
|
return _objectSpread({}, searchState, {
|
|
873
972
|
indices: state
|
|
874
973
|
});
|
|
@@ -888,7 +987,7 @@ function refineMultiIndexWithNamespace(searchState, nextRefinement, indexId, res
|
|
|
888
987
|
var page = resetPage ? {
|
|
889
988
|
page: 1
|
|
890
989
|
} : undefined;
|
|
891
|
-
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices,
|
|
990
|
+
var state = searchState.indices && searchState.indices[indexId] ? _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, searchState.indices[indexId], (_objectSpread4 = {}, _defineProperty(_objectSpread4, namespace, _objectSpread({}, searchState.indices[indexId][namespace], nextRefinement)), _defineProperty(_objectSpread4, "page", 1), _objectSpread4)))) : _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread(_defineProperty({}, namespace, nextRefinement), page)));
|
|
892
991
|
return _objectSpread({}, searchState, {
|
|
893
992
|
indices: state
|
|
894
993
|
});
|
|
@@ -898,7 +997,7 @@ function refineSingleIndexWithNamespace(searchState, nextRefinement, resetPage,
|
|
|
898
997
|
var page = resetPage ? {
|
|
899
998
|
page: 1
|
|
900
999
|
} : undefined;
|
|
901
|
-
return _objectSpread({}, searchState,
|
|
1000
|
+
return _objectSpread({}, searchState, _defineProperty({}, namespace, _objectSpread({}, searchState[namespace], nextRefinement)), page);
|
|
902
1001
|
}
|
|
903
1002
|
|
|
904
1003
|
function getNamespaceAndAttributeName(id) {
|
|
@@ -1017,7 +1116,7 @@ function cleanUpValueWithSingleIndex(_ref3) {
|
|
|
1017
1116
|
attribute = _ref3.attribute;
|
|
1018
1117
|
|
|
1019
1118
|
if (namespace) {
|
|
1020
|
-
return _objectSpread({}, searchState,
|
|
1119
|
+
return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
|
|
1021
1120
|
}
|
|
1022
1121
|
|
|
1023
1122
|
return omit(searchState, [id]);
|
|
@@ -1033,13 +1132,13 @@ function cleanUpValueWithMultiIndex(_ref4) {
|
|
|
1033
1132
|
|
|
1034
1133
|
if (namespace && indexSearchState) {
|
|
1035
1134
|
return _objectSpread({}, searchState, {
|
|
1036
|
-
indices: _objectSpread({}, searchState.indices,
|
|
1135
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit(indexSearchState[namespace], [attribute])))))
|
|
1037
1136
|
});
|
|
1038
1137
|
}
|
|
1039
1138
|
|
|
1040
1139
|
if (indexSearchState) {
|
|
1041
1140
|
return _objectSpread({}, searchState, {
|
|
1042
|
-
indices: _objectSpread({}, searchState.indices,
|
|
1141
|
+
indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
|
|
1043
1142
|
});
|
|
1044
1143
|
}
|
|
1045
1144
|
|
|
@@ -1077,7 +1176,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1077
1176
|
}) : [];
|
|
1078
1177
|
this._props = props;
|
|
1079
1178
|
|
|
1080
|
-
var nextValue =
|
|
1179
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
|
|
1081
1180
|
|
|
1082
1181
|
return refineValue(nextSearchState, nextValue, {
|
|
1083
1182
|
ais: props.contextValue,
|
|
@@ -1103,7 +1202,7 @@ var connectConfigure = createConnectorWithContext({
|
|
|
1103
1202
|
return acc;
|
|
1104
1203
|
}, {});
|
|
1105
1204
|
|
|
1106
|
-
var nextValue =
|
|
1205
|
+
var nextValue = _defineProperty({}, id, configureState);
|
|
1107
1206
|
|
|
1108
1207
|
return refineValue(searchState, nextValue, {
|
|
1109
1208
|
ais: props.contextValue,
|
|
@@ -6181,7 +6280,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6181
6280
|
}) : [];
|
|
6182
6281
|
this._searchParameters = searchParameters;
|
|
6183
6282
|
|
|
6184
|
-
var nextValue =
|
|
6283
|
+
var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
|
|
6185
6284
|
|
|
6186
6285
|
return refineValue(nextSearchState, nextValue, {
|
|
6187
6286
|
ais: props.contextValue,
|
|
@@ -6209,7 +6308,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
|
|
|
6209
6308
|
return acc;
|
|
6210
6309
|
}, {});
|
|
6211
6310
|
|
|
6212
|
-
var nextValue =
|
|
6311
|
+
var nextValue = _defineProperty({}, id, configureState);
|
|
6213
6312
|
|
|
6214
6313
|
return refineValue(searchState, nextValue, {
|
|
6215
6314
|
ais: props.contextValue,
|
|
@@ -6401,9 +6500,9 @@ function getIndexContext(props) {
|
|
|
6401
6500
|
var Index =
|
|
6402
6501
|
/*#__PURE__*/
|
|
6403
6502
|
function (_Component) {
|
|
6404
|
-
|
|
6503
|
+
_inherits(Index, _Component);
|
|
6405
6504
|
|
|
6406
|
-
|
|
6505
|
+
_createClass(Index, null, [{
|
|
6407
6506
|
key: "getDerivedStateFromProps",
|
|
6408
6507
|
value: function getDerivedStateFromProps(props) {
|
|
6409
6508
|
return {
|
|
@@ -6415,17 +6514,17 @@ function (_Component) {
|
|
|
6415
6514
|
function Index(props) {
|
|
6416
6515
|
var _this;
|
|
6417
6516
|
|
|
6418
|
-
|
|
6517
|
+
_classCallCheck(this, Index);
|
|
6419
6518
|
|
|
6420
|
-
_this =
|
|
6519
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(Index).call(this, props));
|
|
6421
6520
|
|
|
6422
|
-
|
|
6521
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
6423
6522
|
indexContext: getIndexContext(_this.props)
|
|
6424
6523
|
});
|
|
6425
6524
|
|
|
6426
|
-
|
|
6525
|
+
_defineProperty(_assertThisInitialized(_this), "unregisterWidget", void 0);
|
|
6427
6526
|
|
|
6428
|
-
_this.props.contextValue.onSearchParameters(_this.getSearchParameters.bind(
|
|
6527
|
+
_this.props.contextValue.onSearchParameters(_this.getSearchParameters.bind(_assertThisInitialized(_this)), {
|
|
6429
6528
|
ais: _this.props.contextValue,
|
|
6430
6529
|
multiIndexContext: _this.state.indexContext
|
|
6431
6530
|
}, _this.props, undefined);
|
|
@@ -6433,7 +6532,7 @@ function (_Component) {
|
|
|
6433
6532
|
return _this;
|
|
6434
6533
|
}
|
|
6435
6534
|
|
|
6436
|
-
|
|
6535
|
+
_createClass(Index, [{
|
|
6437
6536
|
key: "componentDidMount",
|
|
6438
6537
|
value: function componentDidMount() {
|
|
6439
6538
|
this.unregisterWidget = this.props.contextValue.widgetsManager.registerWidget(this);
|
|
@@ -6475,7 +6574,7 @@ function (_Component) {
|
|
|
6475
6574
|
return Index;
|
|
6476
6575
|
}(React.Component);
|
|
6477
6576
|
|
|
6478
|
-
|
|
6577
|
+
_defineProperty(Index, "propTypes", {
|
|
6479
6578
|
indexName: PropTypes__default.string.isRequired,
|
|
6480
6579
|
indexId: PropTypes__default.string.isRequired,
|
|
6481
6580
|
children: PropTypes__default.node
|
|
@@ -6709,7 +6808,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6709
6808
|
.sort(sortIndexWidgetsFirst).reduce(function (indices, widget) {
|
|
6710
6809
|
var indexId = isMultiIndexContext(widget) ? widget.props.indexContextValue.targetedIndex : widget.props.indexId;
|
|
6711
6810
|
var widgets = indices[indexId] || [];
|
|
6712
|
-
return _objectSpread({}, indices,
|
|
6811
|
+
return _objectSpread({}, indices, _defineProperty({}, indexId, widgets.concat(widget)));
|
|
6713
6812
|
}, {});
|
|
6714
6813
|
var derivedParameters = Object.keys(derivedIndices).map(function (indexId) {
|
|
6715
6814
|
return {
|
|
@@ -6779,7 +6878,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6779
6878
|
results = !isDerivedHelpersEmpty && results.getFacetByName ? {} : results;
|
|
6780
6879
|
|
|
6781
6880
|
if (!isDerivedHelpersEmpty) {
|
|
6782
|
-
results = _objectSpread({}, results,
|
|
6881
|
+
results = _objectSpread({}, results, _defineProperty({}, indexId, event.results));
|
|
6783
6882
|
} else {
|
|
6784
6883
|
results = event.results;
|
|
6785
6884
|
}
|
|
@@ -6927,7 +7026,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6927
7026
|
}));
|
|
6928
7027
|
}, [])
|
|
6929
7028
|
}));
|
|
6930
|
-
client.cache = _objectSpread({}, client.cache,
|
|
7029
|
+
client.cache = _objectSpread({}, client.cache, _defineProperty({}, key, JSON.stringify({
|
|
6931
7030
|
results: results.reduce(function (acc, result) {
|
|
6932
7031
|
return acc.concat(result.rawResults);
|
|
6933
7032
|
}, [])
|
|
@@ -6966,7 +7065,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6966
7065
|
};
|
|
6967
7066
|
})
|
|
6968
7067
|
}));
|
|
6969
|
-
client.cache = _objectSpread({}, client.cache,
|
|
7068
|
+
client.cache = _objectSpread({}, client.cache, _defineProperty({}, key, JSON.stringify({
|
|
6970
7069
|
results: results.rawResults
|
|
6971
7070
|
})));
|
|
6972
7071
|
}
|
|
@@ -6978,7 +7077,7 @@ function createInstantSearchManager(_ref) {
|
|
|
6978
7077
|
|
|
6979
7078
|
if (Array.isArray(results.results)) {
|
|
6980
7079
|
return results.results.reduce(function (acc, result) {
|
|
6981
|
-
return _objectSpread({}, acc,
|
|
7080
|
+
return _objectSpread({}, acc, _defineProperty({}, result._internalIndexId, new algoliasearchHelper_1.SearchResults(new algoliasearchHelper_1.SearchParameters(result.state), result.rawResults)));
|
|
6982
7081
|
}, {});
|
|
6983
7082
|
}
|
|
6984
7083
|
|
|
@@ -7033,7 +7132,7 @@ function createInstantSearchManager(_ref) {
|
|
|
7033
7132
|
store.setState(_objectSpread({}, store.getState(), {
|
|
7034
7133
|
error: null,
|
|
7035
7134
|
searchingForFacetValues: false,
|
|
7036
|
-
resultsFacetValues: _objectSpread({}, store.getState().resultsFacetValues, (_objectSpread7 = {},
|
|
7135
|
+
resultsFacetValues: _objectSpread({}, store.getState().resultsFacetValues, (_objectSpread7 = {}, _defineProperty(_objectSpread7, facetName, content.facetHits), _defineProperty(_objectSpread7, "query", query), _objectSpread7))
|
|
7037
7136
|
}));
|
|
7038
7137
|
}, function (error) {
|
|
7039
7138
|
store.setState(_objectSpread({}, store.getState(), {
|
|
@@ -7147,9 +7246,9 @@ function isControlled(props) {
|
|
|
7147
7246
|
var InstantSearch =
|
|
7148
7247
|
/*#__PURE__*/
|
|
7149
7248
|
function (_Component) {
|
|
7150
|
-
|
|
7249
|
+
_inherits(InstantSearch, _Component);
|
|
7151
7250
|
|
|
7152
|
-
|
|
7251
|
+
_createClass(InstantSearch, null, [{
|
|
7153
7252
|
key: "getDerivedStateFromProps",
|
|
7154
7253
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
7155
7254
|
var nextIsControlled = isControlled(nextProps);
|
|
@@ -7172,11 +7271,11 @@ function (_Component) {
|
|
|
7172
7271
|
function InstantSearch(props) {
|
|
7173
7272
|
var _this;
|
|
7174
7273
|
|
|
7175
|
-
|
|
7274
|
+
_classCallCheck(this, InstantSearch);
|
|
7176
7275
|
|
|
7177
|
-
_this =
|
|
7276
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(InstantSearch).call(this, props));
|
|
7178
7277
|
|
|
7179
|
-
|
|
7278
|
+
_defineProperty(_assertThisInitialized(_this), "isUnmounting", false);
|
|
7180
7279
|
|
|
7181
7280
|
var instantSearchManager = createInstantSearchManager({
|
|
7182
7281
|
indexName: _this.props.indexName,
|
|
@@ -7189,11 +7288,11 @@ function (_Component) {
|
|
|
7189
7288
|
store: instantSearchManager.store,
|
|
7190
7289
|
widgetsManager: instantSearchManager.widgetsManager,
|
|
7191
7290
|
mainTargetedIndex: _this.props.indexName,
|
|
7192
|
-
onInternalStateUpdate: _this.onWidgetsInternalStateUpdate.bind(
|
|
7193
|
-
createHrefForState: _this.createHrefForState.bind(
|
|
7194
|
-
onSearchForFacetValues: _this.onSearchForFacetValues.bind(
|
|
7195
|
-
onSearchStateChange: _this.onSearchStateChange.bind(
|
|
7196
|
-
onSearchParameters: _this.onSearchParameters.bind(
|
|
7291
|
+
onInternalStateUpdate: _this.onWidgetsInternalStateUpdate.bind(_assertThisInitialized(_this)),
|
|
7292
|
+
createHrefForState: _this.createHrefForState.bind(_assertThisInitialized(_this)),
|
|
7293
|
+
onSearchForFacetValues: _this.onSearchForFacetValues.bind(_assertThisInitialized(_this)),
|
|
7294
|
+
onSearchStateChange: _this.onSearchStateChange.bind(_assertThisInitialized(_this)),
|
|
7295
|
+
onSearchParameters: _this.onSearchParameters.bind(_assertThisInitialized(_this))
|
|
7197
7296
|
};
|
|
7198
7297
|
_this.state = {
|
|
7199
7298
|
isControlled: isControlled(_this.props),
|
|
@@ -7203,7 +7302,7 @@ function (_Component) {
|
|
|
7203
7302
|
return _this;
|
|
7204
7303
|
}
|
|
7205
7304
|
|
|
7206
|
-
|
|
7305
|
+
_createClass(InstantSearch, [{
|
|
7207
7306
|
key: "componentDidUpdate",
|
|
7208
7307
|
value: function componentDidUpdate(prevProps) {
|
|
7209
7308
|
var prevIsControlled = isControlled(prevProps);
|
|
@@ -7304,12 +7403,12 @@ function (_Component) {
|
|
|
7304
7403
|
return InstantSearch;
|
|
7305
7404
|
}(React.Component);
|
|
7306
7405
|
|
|
7307
|
-
|
|
7406
|
+
_defineProperty(InstantSearch, "defaultProps", {
|
|
7308
7407
|
stalledSearchDelay: 200,
|
|
7309
7408
|
refresh: false
|
|
7310
7409
|
});
|
|
7311
7410
|
|
|
7312
|
-
|
|
7411
|
+
_defineProperty(InstantSearch, "propTypes", {
|
|
7313
7412
|
// @TODO: These props are currently constant.
|
|
7314
7413
|
indexName: PropTypes__default.string.isRequired,
|
|
7315
7414
|
searchClient: PropTypes__default.shape({
|
|
@@ -7337,7 +7436,7 @@ var namespace = 'hierarchicalMenu';
|
|
|
7337
7436
|
function _refine(props, searchState, nextRefinement, context) {
|
|
7338
7437
|
var id = getId$2(props);
|
|
7339
7438
|
|
|
7340
|
-
var nextValue =
|
|
7439
|
+
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7341
7440
|
|
|
7342
7441
|
var resetPage = true;
|
|
7343
7442
|
return refineValue(searchState, nextValue, context, resetPage, namespace);
|
|
@@ -7570,7 +7669,7 @@ var truncate = function truncate() {
|
|
|
7570
7669
|
function _refine$1(props, searchState, nextRefinement, context) {
|
|
7571
7670
|
var id = getId$3(props);
|
|
7572
7671
|
|
|
7573
|
-
var nextValue =
|
|
7672
|
+
var nextValue = _defineProperty({}, id, nextRefinement || '');
|
|
7574
7673
|
|
|
7575
7674
|
var resetPage = true;
|
|
7576
7675
|
return refineValue(searchState, nextValue, context, resetPage, namespace$1);
|
|
@@ -7988,7 +8087,7 @@ var connectHitsPerPage = createConnectorWithContext({
|
|
|
7988
8087
|
refine: function refine(props, searchState, nextRefinement) {
|
|
7989
8088
|
var id = getId$4();
|
|
7990
8089
|
|
|
7991
|
-
var nextValue =
|
|
8090
|
+
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
7992
8091
|
|
|
7993
8092
|
var resetPage = true;
|
|
7994
8093
|
return refineValue(searchState, nextValue, {
|
|
@@ -8152,7 +8251,7 @@ var connectInfiniteHits = createConnectorWithContext({
|
|
|
8152
8251
|
refine: function refine(props, searchState, event, index) {
|
|
8153
8252
|
var id = getId$5();
|
|
8154
8253
|
|
|
8155
|
-
var nextValue =
|
|
8254
|
+
var nextValue = _defineProperty({}, id, index + 1);
|
|
8156
8255
|
|
|
8157
8256
|
var resetPage = false;
|
|
8158
8257
|
return refineValue(searchState, nextValue, {
|
|
@@ -8193,7 +8292,7 @@ function getLimit(_ref) {
|
|
|
8193
8292
|
function _refine$2(props, searchState, nextRefinement, context) {
|
|
8194
8293
|
var id = getId$6(props);
|
|
8195
8294
|
|
|
8196
|
-
var nextValue =
|
|
8295
|
+
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
|
|
8197
8296
|
|
|
8198
8297
|
var resetPage = true;
|
|
8199
8298
|
return refineValue(searchState, nextValue, context, resetPage, namespace$2);
|
|
@@ -8477,7 +8576,7 @@ function itemHasRefinement(attribute, results, value) {
|
|
|
8477
8576
|
}
|
|
8478
8577
|
|
|
8479
8578
|
function _refine$3(props, searchState, nextRefinement, context) {
|
|
8480
|
-
var nextValue =
|
|
8579
|
+
var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
|
|
8481
8580
|
|
|
8482
8581
|
var resetPage = true;
|
|
8483
8582
|
return refineValue(searchState, nextValue, context, resetPage, namespace$3);
|
|
@@ -8652,7 +8751,7 @@ function getCurrentRefinement$5(props, searchState, context) {
|
|
|
8652
8751
|
function _refine$4(props, searchState, nextPage, context) {
|
|
8653
8752
|
var id = getId$8();
|
|
8654
8753
|
|
|
8655
|
-
var nextValue =
|
|
8754
|
+
var nextValue = _defineProperty({}, id, nextPage);
|
|
8656
8755
|
|
|
8657
8756
|
var resetPage = false;
|
|
8658
8757
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
@@ -8891,7 +8990,7 @@ function _refine$5(props, searchState, nextRefinement, currentRange, context) {
|
|
|
8891
8990
|
var id = getId$9(props);
|
|
8892
8991
|
var resetPage = true;
|
|
8893
8992
|
|
|
8894
|
-
var nextValue =
|
|
8993
|
+
var nextValue = _defineProperty({}, id, {
|
|
8895
8994
|
min: nextValueForRefinement(props.min !== undefined, isMinReset, currentMinRange, nextMinAsNumber),
|
|
8896
8995
|
max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
|
|
8897
8996
|
});
|
|
@@ -9101,7 +9200,7 @@ function _refine$6(props, searchState, nextRefinement, context) {
|
|
|
9101
9200
|
// {foo: ['bar']} => "foo[0]=bar"
|
|
9102
9201
|
// {foo: []} => ""
|
|
9103
9202
|
|
|
9104
|
-
var nextValue =
|
|
9203
|
+
var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
|
|
9105
9204
|
|
|
9106
9205
|
var resetPage = true;
|
|
9107
9206
|
return refineValue(searchState, nextValue, context, resetPage, namespace$5);
|
|
@@ -9368,7 +9467,7 @@ function getCurrentRefinement$8(props, searchState, context) {
|
|
|
9368
9467
|
function _refine$7(props, searchState, nextRefinement, context) {
|
|
9369
9468
|
var id = getId$b();
|
|
9370
9469
|
|
|
9371
|
-
var nextValue =
|
|
9470
|
+
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9372
9471
|
|
|
9373
9472
|
var resetPage = true;
|
|
9374
9473
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
@@ -9484,7 +9583,7 @@ var connectRelevantSort = createConnectorWithContext({
|
|
|
9484
9583
|
}));
|
|
9485
9584
|
},
|
|
9486
9585
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9487
|
-
var nextValue =
|
|
9586
|
+
var nextValue = _defineProperty({}, getId$c(), nextRefinement);
|
|
9488
9587
|
|
|
9489
9588
|
var resetPage = true;
|
|
9490
9589
|
return refineValue(searchState, nextValue, {
|
|
@@ -9555,7 +9654,7 @@ var connectSortBy = createConnectorWithContext({
|
|
|
9555
9654
|
refine: function refine(props, searchState, nextRefinement) {
|
|
9556
9655
|
var id = getId$d();
|
|
9557
9656
|
|
|
9558
|
-
var nextValue =
|
|
9657
|
+
var nextValue = _defineProperty({}, id, nextRefinement);
|
|
9559
9658
|
|
|
9560
9659
|
var resetPage = true;
|
|
9561
9660
|
return refineValue(searchState, nextValue, {
|
|
@@ -9634,7 +9733,7 @@ function getCurrentRefinement$b(props, searchState, context) {
|
|
|
9634
9733
|
function _refine$8(props, searchState, nextRefinement, context) {
|
|
9635
9734
|
var id = getId$e(props);
|
|
9636
9735
|
|
|
9637
|
-
var nextValue =
|
|
9736
|
+
var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
|
|
9638
9737
|
|
|
9639
9738
|
var resetPage = true;
|
|
9640
9739
|
return refineValue(searchState, nextValue, context, resetPage, namespace$6);
|
|
@@ -9818,7 +9917,7 @@ function _refine$9(props, searchState, nextRefinement, context) {
|
|
|
9818
9917
|
}, props.additionalQueryParameters({
|
|
9819
9918
|
query: nextRefinement
|
|
9820
9919
|
})) : {};
|
|
9821
|
-
var nextValue = (_nextValue = {},
|
|
9920
|
+
var nextValue = (_nextValue = {}, _defineProperty(_nextValue, id, nextRefinement), _defineProperty(_nextValue, voiceParams, _objectSpread({}, queryLanguages, additionalQueryParameters)), _nextValue);
|
|
9822
9921
|
var resetPage = true;
|
|
9823
9922
|
return refineValue(searchState, nextValue, context, resetPage);
|
|
9824
9923
|
}
|
|
@@ -9956,26 +10055,26 @@ var _createContext$1 = React.createContext(function setCanRefine() {}),
|
|
|
9956
10055
|
var Panel =
|
|
9957
10056
|
/*#__PURE__*/
|
|
9958
10057
|
function (_Component) {
|
|
9959
|
-
|
|
10058
|
+
_inherits(Panel, _Component);
|
|
9960
10059
|
|
|
9961
10060
|
function Panel() {
|
|
9962
10061
|
var _getPrototypeOf2;
|
|
9963
10062
|
|
|
9964
10063
|
var _this;
|
|
9965
10064
|
|
|
9966
|
-
|
|
10065
|
+
_classCallCheck(this, Panel);
|
|
9967
10066
|
|
|
9968
10067
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9969
10068
|
args[_key] = arguments[_key];
|
|
9970
10069
|
}
|
|
9971
10070
|
|
|
9972
|
-
_this =
|
|
10071
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9973
10072
|
|
|
9974
|
-
|
|
10073
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
9975
10074
|
canRefine: true
|
|
9976
10075
|
});
|
|
9977
10076
|
|
|
9978
|
-
|
|
10077
|
+
_defineProperty(_assertThisInitialized(_this), "setCanRefine", function (nextCanRefine) {
|
|
9979
10078
|
_this.setState({
|
|
9980
10079
|
canRefine: nextCanRefine
|
|
9981
10080
|
});
|
|
@@ -9984,7 +10083,7 @@ function (_Component) {
|
|
|
9984
10083
|
return _this;
|
|
9985
10084
|
}
|
|
9986
10085
|
|
|
9987
|
-
|
|
10086
|
+
_createClass(Panel, [{
|
|
9988
10087
|
key: "render",
|
|
9989
10088
|
value: function render() {
|
|
9990
10089
|
var _this$props = this.props,
|
|
@@ -10010,14 +10109,14 @@ function (_Component) {
|
|
|
10010
10109
|
return Panel;
|
|
10011
10110
|
}(React.Component);
|
|
10012
10111
|
|
|
10013
|
-
|
|
10112
|
+
_defineProperty(Panel, "propTypes", {
|
|
10014
10113
|
children: PropTypes__default.node.isRequired,
|
|
10015
10114
|
className: PropTypes__default.string,
|
|
10016
10115
|
header: PropTypes__default.node,
|
|
10017
10116
|
footer: PropTypes__default.node
|
|
10018
10117
|
});
|
|
10019
10118
|
|
|
10020
|
-
|
|
10119
|
+
_defineProperty(Panel, "defaultProps", {
|
|
10021
10120
|
className: '',
|
|
10022
10121
|
header: null,
|
|
10023
10122
|
footer: null
|
|
@@ -10026,15 +10125,15 @@ inherits$1$1._defineProperty(Panel, "defaultProps", {
|
|
|
10026
10125
|
var PanelCallbackHandler =
|
|
10027
10126
|
/*#__PURE__*/
|
|
10028
10127
|
function (_Component) {
|
|
10029
|
-
|
|
10128
|
+
_inherits(PanelCallbackHandler, _Component);
|
|
10030
10129
|
|
|
10031
10130
|
function PanelCallbackHandler() {
|
|
10032
|
-
|
|
10131
|
+
_classCallCheck(this, PanelCallbackHandler);
|
|
10033
10132
|
|
|
10034
|
-
return
|
|
10133
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(PanelCallbackHandler).apply(this, arguments));
|
|
10035
10134
|
}
|
|
10036
10135
|
|
|
10037
|
-
|
|
10136
|
+
_createClass(PanelCallbackHandler, [{
|
|
10038
10137
|
key: "componentDidMount",
|
|
10039
10138
|
value: function componentDidMount() {
|
|
10040
10139
|
this.props.setCanRefine(this.props.canRefine);
|
|
@@ -10056,7 +10155,7 @@ function (_Component) {
|
|
|
10056
10155
|
return PanelCallbackHandler;
|
|
10057
10156
|
}(React.Component);
|
|
10058
10157
|
|
|
10059
|
-
|
|
10158
|
+
_defineProperty(PanelCallbackHandler, "propTypes", {
|
|
10060
10159
|
children: PropTypes__default.node.isRequired,
|
|
10061
10160
|
canRefine: PropTypes__default.bool.isRequired,
|
|
10062
10161
|
setCanRefine: PropTypes__default.func.isRequired
|
|
@@ -10081,22 +10180,22 @@ PanelWrapper.propTypes = {
|
|
|
10081
10180
|
var Link =
|
|
10082
10181
|
/*#__PURE__*/
|
|
10083
10182
|
function (_Component) {
|
|
10084
|
-
|
|
10183
|
+
_inherits(Link, _Component);
|
|
10085
10184
|
|
|
10086
10185
|
function Link() {
|
|
10087
10186
|
var _getPrototypeOf2;
|
|
10088
10187
|
|
|
10089
10188
|
var _this;
|
|
10090
10189
|
|
|
10091
|
-
|
|
10190
|
+
_classCallCheck(this, Link);
|
|
10092
10191
|
|
|
10093
10192
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10094
10193
|
args[_key] = arguments[_key];
|
|
10095
10194
|
}
|
|
10096
10195
|
|
|
10097
|
-
_this =
|
|
10196
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Link)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10098
10197
|
|
|
10099
|
-
|
|
10198
|
+
_defineProperty(_assertThisInitialized(_this), "onClick", function (e) {
|
|
10100
10199
|
if (isSpecialClick(e)) {
|
|
10101
10200
|
return;
|
|
10102
10201
|
}
|
|
@@ -10109,7 +10208,7 @@ function (_Component) {
|
|
|
10109
10208
|
return _this;
|
|
10110
10209
|
}
|
|
10111
10210
|
|
|
10112
|
-
|
|
10211
|
+
_createClass(Link, [{
|
|
10113
10212
|
key: "render",
|
|
10114
10213
|
value: function render() {
|
|
10115
10214
|
return React__default.createElement("a", index$5._extends({}, this.props, {
|
|
@@ -10121,7 +10220,7 @@ function (_Component) {
|
|
|
10121
10220
|
return Link;
|
|
10122
10221
|
}(React.Component);
|
|
10123
10222
|
|
|
10124
|
-
|
|
10223
|
+
_defineProperty(Link, "propTypes", {
|
|
10125
10224
|
onClick: PropTypes__default.func.isRequired
|
|
10126
10225
|
});
|
|
10127
10226
|
|
|
@@ -10134,15 +10233,15 @@ var itemsPropType = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
|
10134
10233
|
var Breadcrumb =
|
|
10135
10234
|
/*#__PURE__*/
|
|
10136
10235
|
function (_Component) {
|
|
10137
|
-
|
|
10236
|
+
_inherits(Breadcrumb, _Component);
|
|
10138
10237
|
|
|
10139
10238
|
function Breadcrumb() {
|
|
10140
|
-
|
|
10239
|
+
_classCallCheck(this, Breadcrumb);
|
|
10141
10240
|
|
|
10142
|
-
return
|
|
10241
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(Breadcrumb).apply(this, arguments));
|
|
10143
10242
|
}
|
|
10144
10243
|
|
|
10145
|
-
|
|
10244
|
+
_createClass(Breadcrumb, [{
|
|
10146
10245
|
key: "render",
|
|
10147
10246
|
value: function render() {
|
|
10148
10247
|
var _this$props = this.props,
|
|
@@ -10189,7 +10288,7 @@ function (_Component) {
|
|
|
10189
10288
|
return Breadcrumb;
|
|
10190
10289
|
}(React.Component);
|
|
10191
10290
|
|
|
10192
|
-
|
|
10291
|
+
_defineProperty(Breadcrumb, "propTypes", {
|
|
10193
10292
|
canRefine: PropTypes__default.bool.isRequired,
|
|
10194
10293
|
createURL: PropTypes__default.func.isRequired,
|
|
10195
10294
|
items: itemsPropType,
|
|
@@ -10200,7 +10299,7 @@ inherits$1$1._defineProperty(Breadcrumb, "propTypes", {
|
|
|
10200
10299
|
className: PropTypes__default.string
|
|
10201
10300
|
});
|
|
10202
10301
|
|
|
10203
|
-
|
|
10302
|
+
_defineProperty(Breadcrumb, "defaultProps", {
|
|
10204
10303
|
rootURL: null,
|
|
10205
10304
|
separator: ' > ',
|
|
10206
10305
|
className: ''
|
|
@@ -10309,15 +10408,15 @@ var cx$2 = createClassNames('ClearRefinements');
|
|
|
10309
10408
|
var ClearRefinements =
|
|
10310
10409
|
/*#__PURE__*/
|
|
10311
10410
|
function (_Component) {
|
|
10312
|
-
|
|
10411
|
+
_inherits(ClearRefinements, _Component);
|
|
10313
10412
|
|
|
10314
10413
|
function ClearRefinements() {
|
|
10315
|
-
|
|
10414
|
+
_classCallCheck(this, ClearRefinements);
|
|
10316
10415
|
|
|
10317
|
-
return
|
|
10416
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(ClearRefinements).apply(this, arguments));
|
|
10318
10417
|
}
|
|
10319
10418
|
|
|
10320
|
-
|
|
10419
|
+
_createClass(ClearRefinements, [{
|
|
10321
10420
|
key: "render",
|
|
10322
10421
|
value: function render() {
|
|
10323
10422
|
var _this$props = this.props,
|
|
@@ -10341,7 +10440,7 @@ function (_Component) {
|
|
|
10341
10440
|
return ClearRefinements;
|
|
10342
10441
|
}(React.Component);
|
|
10343
10442
|
|
|
10344
|
-
|
|
10443
|
+
_defineProperty(ClearRefinements, "propTypes", {
|
|
10345
10444
|
items: PropTypes__default.arrayOf(PropTypes__default.object).isRequired,
|
|
10346
10445
|
canRefine: PropTypes__default.bool.isRequired,
|
|
10347
10446
|
refine: PropTypes__default.func.isRequired,
|
|
@@ -10349,7 +10448,7 @@ inherits$1$1._defineProperty(ClearRefinements, "propTypes", {
|
|
|
10349
10448
|
className: PropTypes__default.string
|
|
10350
10449
|
});
|
|
10351
10450
|
|
|
10352
|
-
|
|
10451
|
+
_defineProperty(ClearRefinements, "defaultProps", {
|
|
10353
10452
|
className: ''
|
|
10354
10453
|
});
|
|
10355
10454
|
|
|
@@ -10556,20 +10655,20 @@ var defaultSubmit = React__default.createElement("svg", {
|
|
|
10556
10655
|
var SearchBox =
|
|
10557
10656
|
/*#__PURE__*/
|
|
10558
10657
|
function (_Component) {
|
|
10559
|
-
|
|
10658
|
+
_inherits(SearchBox, _Component);
|
|
10560
10659
|
|
|
10561
10660
|
function SearchBox(props) {
|
|
10562
10661
|
var _this;
|
|
10563
10662
|
|
|
10564
|
-
|
|
10663
|
+
_classCallCheck(this, SearchBox);
|
|
10565
10664
|
|
|
10566
|
-
_this =
|
|
10665
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(SearchBox).call(this));
|
|
10567
10666
|
|
|
10568
|
-
|
|
10667
|
+
_defineProperty(_assertThisInitialized(_this), "getQuery", function () {
|
|
10569
10668
|
return _this.props.searchAsYouType ? _this.props.currentRefinement : _this.state.query;
|
|
10570
10669
|
});
|
|
10571
10670
|
|
|
10572
|
-
|
|
10671
|
+
_defineProperty(_assertThisInitialized(_this), "onInputMount", function (input) {
|
|
10573
10672
|
_this.input = input;
|
|
10574
10673
|
if (!_this.props.inputRef) return;
|
|
10575
10674
|
|
|
@@ -10580,7 +10679,7 @@ function (_Component) {
|
|
|
10580
10679
|
}
|
|
10581
10680
|
});
|
|
10582
10681
|
|
|
10583
|
-
|
|
10682
|
+
_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (e) {
|
|
10584
10683
|
if (!_this.props.focusShortcuts) {
|
|
10585
10684
|
return;
|
|
10586
10685
|
}
|
|
@@ -10610,7 +10709,7 @@ function (_Component) {
|
|
|
10610
10709
|
e.preventDefault();
|
|
10611
10710
|
});
|
|
10612
10711
|
|
|
10613
|
-
|
|
10712
|
+
_defineProperty(_assertThisInitialized(_this), "onSubmit", function (e) {
|
|
10614
10713
|
e.preventDefault();
|
|
10615
10714
|
e.stopPropagation();
|
|
10616
10715
|
|
|
@@ -10627,7 +10726,7 @@ function (_Component) {
|
|
|
10627
10726
|
return false;
|
|
10628
10727
|
});
|
|
10629
10728
|
|
|
10630
|
-
|
|
10729
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (event) {
|
|
10631
10730
|
var _this$props2 = _this.props,
|
|
10632
10731
|
searchAsYouType = _this$props2.searchAsYouType,
|
|
10633
10732
|
refine = _this$props2.refine,
|
|
@@ -10647,7 +10746,7 @@ function (_Component) {
|
|
|
10647
10746
|
}
|
|
10648
10747
|
});
|
|
10649
10748
|
|
|
10650
|
-
|
|
10749
|
+
_defineProperty(_assertThisInitialized(_this), "onReset", function (event) {
|
|
10651
10750
|
var _this$props3 = _this.props,
|
|
10652
10751
|
searchAsYouType = _this$props3.searchAsYouType,
|
|
10653
10752
|
refine = _this$props3.refine,
|
|
@@ -10673,7 +10772,7 @@ function (_Component) {
|
|
|
10673
10772
|
return _this;
|
|
10674
10773
|
}
|
|
10675
10774
|
|
|
10676
|
-
|
|
10775
|
+
_createClass(SearchBox, [{
|
|
10677
10776
|
key: "componentDidMount",
|
|
10678
10777
|
value: function componentDidMount() {
|
|
10679
10778
|
document.addEventListener('keydown', this.onKeyDown);
|
|
@@ -10707,7 +10806,7 @@ function (_Component) {
|
|
|
10707
10806
|
var query = this.getQuery();
|
|
10708
10807
|
var searchInputEvents = Object.keys(this.props).reduce(function (props, prop) {
|
|
10709
10808
|
if (['onsubmit', 'onreset', 'onchange'].indexOf(prop.toLowerCase()) === -1 && prop.indexOf('on') === 0) {
|
|
10710
|
-
return _objectSpread({}, props,
|
|
10809
|
+
return _objectSpread({}, props, _defineProperty({}, prop, _this2.props[prop]));
|
|
10711
10810
|
}
|
|
10712
10811
|
|
|
10713
10812
|
return props;
|
|
@@ -10759,7 +10858,7 @@ function (_Component) {
|
|
|
10759
10858
|
return SearchBox;
|
|
10760
10859
|
}(React.Component);
|
|
10761
10860
|
|
|
10762
|
-
|
|
10861
|
+
_defineProperty(SearchBox, "propTypes", {
|
|
10763
10862
|
currentRefinement: PropTypes__default.string,
|
|
10764
10863
|
className: PropTypes__default.string,
|
|
10765
10864
|
refine: PropTypes__default.func.isRequired,
|
|
@@ -10780,7 +10879,7 @@ inherits$1$1._defineProperty(SearchBox, "propTypes", {
|
|
|
10780
10879
|
})])
|
|
10781
10880
|
});
|
|
10782
10881
|
|
|
10783
|
-
|
|
10882
|
+
_defineProperty(SearchBox, "defaultProps", {
|
|
10784
10883
|
currentRefinement: '',
|
|
10785
10884
|
className: '',
|
|
10786
10885
|
focusShortcuts: ['s', '/'],
|
|
@@ -10810,16 +10909,16 @@ var itemsPropType$1 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
|
10810
10909
|
var List =
|
|
10811
10910
|
/*#__PURE__*/
|
|
10812
10911
|
function (_Component) {
|
|
10813
|
-
|
|
10912
|
+
_inherits(List, _Component);
|
|
10814
10913
|
|
|
10815
10914
|
function List() {
|
|
10816
10915
|
var _this;
|
|
10817
10916
|
|
|
10818
|
-
|
|
10917
|
+
_classCallCheck(this, List);
|
|
10819
10918
|
|
|
10820
|
-
_this =
|
|
10919
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(List).call(this));
|
|
10821
10920
|
|
|
10822
|
-
|
|
10921
|
+
_defineProperty(_assertThisInitialized(_this), "onShowMoreClick", function () {
|
|
10823
10922
|
_this.setState(function (state) {
|
|
10824
10923
|
return {
|
|
10825
10924
|
extended: !state.extended
|
|
@@ -10827,7 +10926,7 @@ function (_Component) {
|
|
|
10827
10926
|
});
|
|
10828
10927
|
});
|
|
10829
10928
|
|
|
10830
|
-
|
|
10929
|
+
_defineProperty(_assertThisInitialized(_this), "getLimit", function () {
|
|
10831
10930
|
var _this$props = _this.props,
|
|
10832
10931
|
limit = _this$props.limit,
|
|
10833
10932
|
showMoreLimit = _this$props.showMoreLimit;
|
|
@@ -10835,13 +10934,13 @@ function (_Component) {
|
|
|
10835
10934
|
return extended ? showMoreLimit : limit;
|
|
10836
10935
|
});
|
|
10837
10936
|
|
|
10838
|
-
|
|
10937
|
+
_defineProperty(_assertThisInitialized(_this), "resetQuery", function () {
|
|
10839
10938
|
_this.setState({
|
|
10840
10939
|
query: ''
|
|
10841
10940
|
});
|
|
10842
10941
|
});
|
|
10843
10942
|
|
|
10844
|
-
|
|
10943
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
10845
10944
|
var itemHasChildren = item.items && Boolean(item.items.length);
|
|
10846
10945
|
return React__default.createElement("li", {
|
|
10847
10946
|
key: item.key || item.label,
|
|
@@ -10860,7 +10959,7 @@ function (_Component) {
|
|
|
10860
10959
|
return _this;
|
|
10861
10960
|
}
|
|
10862
10961
|
|
|
10863
|
-
|
|
10962
|
+
_createClass(List, [{
|
|
10864
10963
|
key: "renderShowMore",
|
|
10865
10964
|
value: function renderShowMore() {
|
|
10866
10965
|
var _this$props2 = this.props,
|
|
@@ -10954,7 +11053,7 @@ function (_Component) {
|
|
|
10954
11053
|
return List;
|
|
10955
11054
|
}(React.Component);
|
|
10956
11055
|
|
|
10957
|
-
|
|
11056
|
+
_defineProperty(List, "propTypes", {
|
|
10958
11057
|
cx: PropTypes__default.func.isRequired,
|
|
10959
11058
|
// Only required with showMore.
|
|
10960
11059
|
translate: PropTypes__default.func,
|
|
@@ -10972,7 +11071,7 @@ inherits$1$1._defineProperty(List, "propTypes", {
|
|
|
10972
11071
|
canRefine: PropTypes__default.bool
|
|
10973
11072
|
});
|
|
10974
11073
|
|
|
10975
|
-
|
|
11074
|
+
_defineProperty(List, "defaultProps", {
|
|
10976
11075
|
className: '',
|
|
10977
11076
|
isFromSearch: false
|
|
10978
11077
|
});
|
|
@@ -10990,22 +11089,22 @@ var itemsPropType$2 = PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
|
10990
11089
|
var HierarchicalMenu =
|
|
10991
11090
|
/*#__PURE__*/
|
|
10992
11091
|
function (_Component) {
|
|
10993
|
-
|
|
11092
|
+
_inherits(HierarchicalMenu, _Component);
|
|
10994
11093
|
|
|
10995
11094
|
function HierarchicalMenu() {
|
|
10996
11095
|
var _getPrototypeOf2;
|
|
10997
11096
|
|
|
10998
11097
|
var _this;
|
|
10999
11098
|
|
|
11000
|
-
|
|
11099
|
+
_classCallCheck(this, HierarchicalMenu);
|
|
11001
11100
|
|
|
11002
11101
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11003
11102
|
args[_key] = arguments[_key];
|
|
11004
11103
|
}
|
|
11005
11104
|
|
|
11006
|
-
_this =
|
|
11105
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(HierarchicalMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11007
11106
|
|
|
11008
|
-
|
|
11107
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item) {
|
|
11009
11108
|
var _this$props = _this.props,
|
|
11010
11109
|
createURL = _this$props.createURL,
|
|
11011
11110
|
refine = _this$props.refine;
|
|
@@ -11025,7 +11124,7 @@ function (_Component) {
|
|
|
11025
11124
|
return _this;
|
|
11026
11125
|
}
|
|
11027
11126
|
|
|
11028
|
-
|
|
11127
|
+
_createClass(HierarchicalMenu, [{
|
|
11029
11128
|
key: "render",
|
|
11030
11129
|
value: function render() {
|
|
11031
11130
|
var _this$props2 = this.props,
|
|
@@ -11053,7 +11152,7 @@ function (_Component) {
|
|
|
11053
11152
|
return HierarchicalMenu;
|
|
11054
11153
|
}(React.Component);
|
|
11055
11154
|
|
|
11056
|
-
|
|
11155
|
+
_defineProperty(HierarchicalMenu, "propTypes", {
|
|
11057
11156
|
translate: PropTypes__default.func.isRequired,
|
|
11058
11157
|
refine: PropTypes__default.func.isRequired,
|
|
11059
11158
|
createURL: PropTypes__default.func.isRequired,
|
|
@@ -11066,7 +11165,7 @@ inherits$1$1._defineProperty(HierarchicalMenu, "propTypes", {
|
|
|
11066
11165
|
transformItems: PropTypes__default.func
|
|
11067
11166
|
});
|
|
11068
11167
|
|
|
11069
|
-
|
|
11168
|
+
_defineProperty(HierarchicalMenu, "defaultProps", {
|
|
11070
11169
|
className: ''
|
|
11071
11170
|
});
|
|
11072
11171
|
|
|
@@ -11389,29 +11488,29 @@ var Hits$1 = connectHits(Hits);
|
|
|
11389
11488
|
var Select =
|
|
11390
11489
|
/*#__PURE__*/
|
|
11391
11490
|
function (_Component) {
|
|
11392
|
-
|
|
11491
|
+
_inherits(Select, _Component);
|
|
11393
11492
|
|
|
11394
11493
|
function Select() {
|
|
11395
11494
|
var _getPrototypeOf2;
|
|
11396
11495
|
|
|
11397
11496
|
var _this;
|
|
11398
11497
|
|
|
11399
|
-
|
|
11498
|
+
_classCallCheck(this, Select);
|
|
11400
11499
|
|
|
11401
11500
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11402
11501
|
args[_key] = arguments[_key];
|
|
11403
11502
|
}
|
|
11404
11503
|
|
|
11405
|
-
_this =
|
|
11504
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Select)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11406
11505
|
|
|
11407
|
-
|
|
11506
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (e) {
|
|
11408
11507
|
_this.props.onSelect(e.target.value);
|
|
11409
11508
|
});
|
|
11410
11509
|
|
|
11411
11510
|
return _this;
|
|
11412
11511
|
}
|
|
11413
11512
|
|
|
11414
|
-
|
|
11513
|
+
_createClass(Select, [{
|
|
11415
11514
|
key: "render",
|
|
11416
11515
|
value: function render() {
|
|
11417
11516
|
var _this$props = this.props,
|
|
@@ -11436,7 +11535,7 @@ function (_Component) {
|
|
|
11436
11535
|
return Select;
|
|
11437
11536
|
}(React.Component);
|
|
11438
11537
|
|
|
11439
|
-
|
|
11538
|
+
_defineProperty(Select, "propTypes", {
|
|
11440
11539
|
cx: PropTypes__default.func.isRequired,
|
|
11441
11540
|
onSelect: PropTypes__default.func.isRequired,
|
|
11442
11541
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
@@ -11453,15 +11552,15 @@ var cx$8 = createClassNames('HitsPerPage');
|
|
|
11453
11552
|
var HitsPerPage =
|
|
11454
11553
|
/*#__PURE__*/
|
|
11455
11554
|
function (_Component) {
|
|
11456
|
-
|
|
11555
|
+
_inherits(HitsPerPage, _Component);
|
|
11457
11556
|
|
|
11458
11557
|
function HitsPerPage() {
|
|
11459
|
-
|
|
11558
|
+
_classCallCheck(this, HitsPerPage);
|
|
11460
11559
|
|
|
11461
|
-
return
|
|
11560
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(HitsPerPage).apply(this, arguments));
|
|
11462
11561
|
}
|
|
11463
11562
|
|
|
11464
|
-
|
|
11563
|
+
_createClass(HitsPerPage, [{
|
|
11465
11564
|
key: "render",
|
|
11466
11565
|
value: function render() {
|
|
11467
11566
|
var _this$props = this.props,
|
|
@@ -11483,7 +11582,7 @@ function (_Component) {
|
|
|
11483
11582
|
return HitsPerPage;
|
|
11484
11583
|
}(React.Component);
|
|
11485
11584
|
|
|
11486
|
-
|
|
11585
|
+
_defineProperty(HitsPerPage, "propTypes", {
|
|
11487
11586
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11488
11587
|
value: PropTypes__default.number.isRequired,
|
|
11489
11588
|
label: PropTypes__default.string
|
|
@@ -11493,7 +11592,7 @@ inherits$1$1._defineProperty(HitsPerPage, "propTypes", {
|
|
|
11493
11592
|
className: PropTypes__default.string
|
|
11494
11593
|
});
|
|
11495
11594
|
|
|
11496
|
-
|
|
11595
|
+
_defineProperty(HitsPerPage, "defaultProps", {
|
|
11497
11596
|
className: ''
|
|
11498
11597
|
});
|
|
11499
11598
|
|
|
@@ -11546,15 +11645,15 @@ var cx$9 = createClassNames('InfiniteHits');
|
|
|
11546
11645
|
var InfiniteHits =
|
|
11547
11646
|
/*#__PURE__*/
|
|
11548
11647
|
function (_Component) {
|
|
11549
|
-
|
|
11648
|
+
_inherits(InfiniteHits, _Component);
|
|
11550
11649
|
|
|
11551
11650
|
function InfiniteHits() {
|
|
11552
|
-
|
|
11651
|
+
_classCallCheck(this, InfiniteHits);
|
|
11553
11652
|
|
|
11554
|
-
return
|
|
11653
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(InfiniteHits).apply(this, arguments));
|
|
11555
11654
|
}
|
|
11556
11655
|
|
|
11557
|
-
|
|
11656
|
+
_createClass(InfiniteHits, [{
|
|
11558
11657
|
key: "render",
|
|
11559
11658
|
value: function render() {
|
|
11560
11659
|
var _this$props = this.props,
|
|
@@ -11671,22 +11770,22 @@ var cx$a = createClassNames('Menu');
|
|
|
11671
11770
|
var Menu =
|
|
11672
11771
|
/*#__PURE__*/
|
|
11673
11772
|
function (_Component) {
|
|
11674
|
-
|
|
11773
|
+
_inherits(Menu, _Component);
|
|
11675
11774
|
|
|
11676
11775
|
function Menu() {
|
|
11677
11776
|
var _getPrototypeOf2;
|
|
11678
11777
|
|
|
11679
11778
|
var _this;
|
|
11680
11779
|
|
|
11681
|
-
|
|
11780
|
+
_classCallCheck(this, Menu);
|
|
11682
11781
|
|
|
11683
11782
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11684
11783
|
args[_key] = arguments[_key];
|
|
11685
11784
|
}
|
|
11686
11785
|
|
|
11687
|
-
_this =
|
|
11786
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Menu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11688
11787
|
|
|
11689
|
-
|
|
11788
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
11690
11789
|
var createURL = _this.props.createURL;
|
|
11691
11790
|
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
11692
11791
|
attribute: "label",
|
|
@@ -11705,7 +11804,7 @@ function (_Component) {
|
|
|
11705
11804
|
}, item.count));
|
|
11706
11805
|
});
|
|
11707
11806
|
|
|
11708
|
-
|
|
11807
|
+
_defineProperty(_assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
11709
11808
|
resetQuery();
|
|
11710
11809
|
|
|
11711
11810
|
_this.props.refine(item.value);
|
|
@@ -11714,7 +11813,7 @@ function (_Component) {
|
|
|
11714
11813
|
return _this;
|
|
11715
11814
|
}
|
|
11716
11815
|
|
|
11717
|
-
|
|
11816
|
+
_createClass(Menu, [{
|
|
11718
11817
|
key: "render",
|
|
11719
11818
|
value: function render() {
|
|
11720
11819
|
var _this$props = this.props,
|
|
@@ -11749,7 +11848,7 @@ function (_Component) {
|
|
|
11749
11848
|
return Menu;
|
|
11750
11849
|
}(React.Component);
|
|
11751
11850
|
|
|
11752
|
-
|
|
11851
|
+
_defineProperty(Menu, "propTypes", {
|
|
11753
11852
|
translate: PropTypes__default.func.isRequired,
|
|
11754
11853
|
refine: PropTypes__default.func.isRequired,
|
|
11755
11854
|
searchForItems: PropTypes__default.func.isRequired,
|
|
@@ -11770,7 +11869,7 @@ inherits$1$1._defineProperty(Menu, "propTypes", {
|
|
|
11770
11869
|
className: PropTypes__default.string
|
|
11771
11870
|
});
|
|
11772
11871
|
|
|
11773
|
-
|
|
11872
|
+
_defineProperty(Menu, "defaultProps", {
|
|
11774
11873
|
className: ''
|
|
11775
11874
|
});
|
|
11776
11875
|
|
|
@@ -11846,22 +11945,22 @@ var cx$b = createClassNames('MenuSelect');
|
|
|
11846
11945
|
var MenuSelect =
|
|
11847
11946
|
/*#__PURE__*/
|
|
11848
11947
|
function (_Component) {
|
|
11849
|
-
|
|
11948
|
+
_inherits(MenuSelect, _Component);
|
|
11850
11949
|
|
|
11851
11950
|
function MenuSelect() {
|
|
11852
11951
|
var _getPrototypeOf2;
|
|
11853
11952
|
|
|
11854
11953
|
var _this;
|
|
11855
11954
|
|
|
11856
|
-
|
|
11955
|
+
_classCallCheck(this, MenuSelect);
|
|
11857
11956
|
|
|
11858
11957
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11859
11958
|
args[_key] = arguments[_key];
|
|
11860
11959
|
}
|
|
11861
11960
|
|
|
11862
|
-
_this =
|
|
11961
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MenuSelect)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11863
11962
|
|
|
11864
|
-
|
|
11963
|
+
_defineProperty(_assertThisInitialized(_this), "handleSelectChange", function (_ref) {
|
|
11865
11964
|
var value = _ref.target.value;
|
|
11866
11965
|
|
|
11867
11966
|
_this.props.refine(value === 'ais__see__all__option' ? '' : value);
|
|
@@ -11870,7 +11969,7 @@ function (_Component) {
|
|
|
11870
11969
|
return _this;
|
|
11871
11970
|
}
|
|
11872
11971
|
|
|
11873
|
-
|
|
11972
|
+
_createClass(MenuSelect, [{
|
|
11874
11973
|
key: "render",
|
|
11875
11974
|
value: function render() {
|
|
11876
11975
|
var _this$props = this.props,
|
|
@@ -11912,7 +12011,7 @@ function (_Component) {
|
|
|
11912
12011
|
return MenuSelect;
|
|
11913
12012
|
}(React.Component);
|
|
11914
12013
|
|
|
11915
|
-
|
|
12014
|
+
_defineProperty(MenuSelect, "propTypes", {
|
|
11916
12015
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
11917
12016
|
label: PropTypes__default.string.isRequired,
|
|
11918
12017
|
value: PropTypes__default.string.isRequired,
|
|
@@ -11925,7 +12024,7 @@ inherits$1$1._defineProperty(MenuSelect, "propTypes", {
|
|
|
11925
12024
|
className: PropTypes__default.string
|
|
11926
12025
|
});
|
|
11927
12026
|
|
|
11928
|
-
|
|
12027
|
+
_defineProperty(MenuSelect, "defaultProps", {
|
|
11929
12028
|
className: ''
|
|
11930
12029
|
});
|
|
11931
12030
|
|
|
@@ -11980,22 +12079,22 @@ var cx$c = createClassNames('NumericMenu');
|
|
|
11980
12079
|
var NumericMenu =
|
|
11981
12080
|
/*#__PURE__*/
|
|
11982
12081
|
function (_Component) {
|
|
11983
|
-
|
|
12082
|
+
_inherits(NumericMenu, _Component);
|
|
11984
12083
|
|
|
11985
12084
|
function NumericMenu() {
|
|
11986
12085
|
var _getPrototypeOf2;
|
|
11987
12086
|
|
|
11988
12087
|
var _this;
|
|
11989
12088
|
|
|
11990
|
-
|
|
12089
|
+
_classCallCheck(this, NumericMenu);
|
|
11991
12090
|
|
|
11992
12091
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11993
12092
|
args[_key] = arguments[_key];
|
|
11994
12093
|
}
|
|
11995
12094
|
|
|
11996
|
-
_this =
|
|
12095
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(NumericMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11997
12096
|
|
|
11998
|
-
|
|
12097
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item) {
|
|
11999
12098
|
var _this$props = _this.props,
|
|
12000
12099
|
refine = _this$props.refine,
|
|
12001
12100
|
translate = _this$props.translate;
|
|
@@ -12017,7 +12116,7 @@ function (_Component) {
|
|
|
12017
12116
|
return _this;
|
|
12018
12117
|
}
|
|
12019
12118
|
|
|
12020
|
-
|
|
12119
|
+
_createClass(NumericMenu, [{
|
|
12021
12120
|
key: "render",
|
|
12022
12121
|
value: function render() {
|
|
12023
12122
|
var _this$props2 = this.props,
|
|
@@ -12042,7 +12141,7 @@ function (_Component) {
|
|
|
12042
12141
|
return NumericMenu;
|
|
12043
12142
|
}(React.Component);
|
|
12044
12143
|
|
|
12045
|
-
|
|
12144
|
+
_defineProperty(NumericMenu, "propTypes", {
|
|
12046
12145
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
12047
12146
|
label: PropTypes__default.node.isRequired,
|
|
12048
12147
|
value: PropTypes__default.string.isRequired,
|
|
@@ -12055,7 +12154,7 @@ inherits$1$1._defineProperty(NumericMenu, "propTypes", {
|
|
|
12055
12154
|
className: PropTypes__default.string
|
|
12056
12155
|
});
|
|
12057
12156
|
|
|
12058
|
-
|
|
12157
|
+
_defineProperty(NumericMenu, "defaultProps", {
|
|
12059
12158
|
className: ''
|
|
12060
12159
|
});
|
|
12061
12160
|
|
|
@@ -12118,15 +12217,15 @@ connectNumericMenu(NumericMenuWidget);
|
|
|
12118
12217
|
var LinkList =
|
|
12119
12218
|
/*#__PURE__*/
|
|
12120
12219
|
function (_Component) {
|
|
12121
|
-
|
|
12220
|
+
_inherits(LinkList, _Component);
|
|
12122
12221
|
|
|
12123
12222
|
function LinkList() {
|
|
12124
|
-
|
|
12223
|
+
_classCallCheck(this, LinkList);
|
|
12125
12224
|
|
|
12126
|
-
return
|
|
12225
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(LinkList).apply(this, arguments));
|
|
12127
12226
|
}
|
|
12128
12227
|
|
|
12129
|
-
|
|
12228
|
+
_createClass(LinkList, [{
|
|
12130
12229
|
key: "render",
|
|
12131
12230
|
value: function render() {
|
|
12132
12231
|
var _this$props = this.props,
|
|
@@ -12158,7 +12257,7 @@ function (_Component) {
|
|
|
12158
12257
|
return LinkList;
|
|
12159
12258
|
}(React.Component);
|
|
12160
12259
|
|
|
12161
|
-
|
|
12260
|
+
_defineProperty(LinkList, "propTypes", {
|
|
12162
12261
|
cx: PropTypes__default.func.isRequired,
|
|
12163
12262
|
createURL: PropTypes__default.func.isRequired,
|
|
12164
12263
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
@@ -12212,15 +12311,15 @@ function getPages(currentPage, maxPages, padding) {
|
|
|
12212
12311
|
var Pagination =
|
|
12213
12312
|
/*#__PURE__*/
|
|
12214
12313
|
function (_Component) {
|
|
12215
|
-
|
|
12314
|
+
_inherits(Pagination, _Component);
|
|
12216
12315
|
|
|
12217
12316
|
function Pagination() {
|
|
12218
|
-
|
|
12317
|
+
_classCallCheck(this, Pagination);
|
|
12219
12318
|
|
|
12220
|
-
return
|
|
12319
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(Pagination).apply(this, arguments));
|
|
12221
12320
|
}
|
|
12222
12321
|
|
|
12223
|
-
|
|
12322
|
+
_createClass(Pagination, [{
|
|
12224
12323
|
key: "getItem",
|
|
12225
12324
|
value: function getItem(modifier, translationKey, value) {
|
|
12226
12325
|
var _this$props = this.props,
|
|
@@ -12330,7 +12429,7 @@ function (_Component) {
|
|
|
12330
12429
|
return Pagination;
|
|
12331
12430
|
}(React.Component);
|
|
12332
12431
|
|
|
12333
|
-
|
|
12432
|
+
_defineProperty(Pagination, "propTypes", {
|
|
12334
12433
|
nbPages: PropTypes__default.number.isRequired,
|
|
12335
12434
|
currentRefinement: PropTypes__default.number.isRequired,
|
|
12336
12435
|
refine: PropTypes__default.func.isRequired,
|
|
@@ -12347,7 +12446,7 @@ inherits$1$1._defineProperty(Pagination, "propTypes", {
|
|
|
12347
12446
|
className: PropTypes__default.string
|
|
12348
12447
|
});
|
|
12349
12448
|
|
|
12350
|
-
|
|
12449
|
+
_defineProperty(Pagination, "defaultProps", {
|
|
12351
12450
|
listComponent: LinkList,
|
|
12352
12451
|
showFirst: true,
|
|
12353
12452
|
showPrevious: true,
|
|
@@ -12477,15 +12576,15 @@ var AlgoliaLogo = function AlgoliaLogo() {
|
|
|
12477
12576
|
var PoweredBy =
|
|
12478
12577
|
/*#__PURE__*/
|
|
12479
12578
|
function (_Component) {
|
|
12480
|
-
|
|
12579
|
+
_inherits(PoweredBy, _Component);
|
|
12481
12580
|
|
|
12482
12581
|
function PoweredBy() {
|
|
12483
|
-
|
|
12582
|
+
_classCallCheck(this, PoweredBy);
|
|
12484
12583
|
|
|
12485
|
-
return
|
|
12584
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(PoweredBy).apply(this, arguments));
|
|
12486
12585
|
}
|
|
12487
12586
|
|
|
12488
|
-
|
|
12587
|
+
_createClass(PoweredBy, [{
|
|
12489
12588
|
key: "render",
|
|
12490
12589
|
value: function render() {
|
|
12491
12590
|
var _this$props = this.props,
|
|
@@ -12509,7 +12608,7 @@ function (_Component) {
|
|
|
12509
12608
|
return PoweredBy;
|
|
12510
12609
|
}(React.Component);
|
|
12511
12610
|
|
|
12512
|
-
|
|
12611
|
+
_defineProperty(PoweredBy, "propTypes", {
|
|
12513
12612
|
url: PropTypes__default.string.isRequired,
|
|
12514
12613
|
translate: PropTypes__default.func.isRequired,
|
|
12515
12614
|
className: PropTypes__default.string
|
|
@@ -12556,16 +12655,16 @@ var cx$f = createClassNames('RangeInput');
|
|
|
12556
12655
|
var RawRangeInput =
|
|
12557
12656
|
/*#__PURE__*/
|
|
12558
12657
|
function (_Component) {
|
|
12559
|
-
|
|
12658
|
+
_inherits(RawRangeInput, _Component);
|
|
12560
12659
|
|
|
12561
12660
|
function RawRangeInput(props) {
|
|
12562
12661
|
var _this;
|
|
12563
12662
|
|
|
12564
|
-
|
|
12663
|
+
_classCallCheck(this, RawRangeInput);
|
|
12565
12664
|
|
|
12566
|
-
_this =
|
|
12665
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(RawRangeInput).call(this, props));
|
|
12567
12666
|
|
|
12568
|
-
|
|
12667
|
+
_defineProperty(_assertThisInitialized(_this), "onSubmit", function (e) {
|
|
12569
12668
|
e.preventDefault();
|
|
12570
12669
|
|
|
12571
12670
|
_this.props.refine({
|
|
@@ -12578,7 +12677,7 @@ function (_Component) {
|
|
|
12578
12677
|
return _this;
|
|
12579
12678
|
}
|
|
12580
12679
|
|
|
12581
|
-
|
|
12680
|
+
_createClass(RawRangeInput, [{
|
|
12582
12681
|
key: "componentDidUpdate",
|
|
12583
12682
|
value: function componentDidUpdate(prevProps) {
|
|
12584
12683
|
if (this.props.canRefine && (prevProps.currentRefinement.min !== this.props.currentRefinement.min || prevProps.currentRefinement.max !== this.props.currentRefinement.max)) {
|
|
@@ -12676,7 +12775,7 @@ function (_Component) {
|
|
|
12676
12775
|
return RawRangeInput;
|
|
12677
12776
|
}(React.Component);
|
|
12678
12777
|
|
|
12679
|
-
|
|
12778
|
+
_defineProperty(RawRangeInput, "propTypes", {
|
|
12680
12779
|
canRefine: PropTypes__default.bool.isRequired,
|
|
12681
12780
|
precision: PropTypes__default.number.isRequired,
|
|
12682
12781
|
translate: PropTypes__default.func.isRequired,
|
|
@@ -12690,7 +12789,7 @@ inherits$1$1._defineProperty(RawRangeInput, "propTypes", {
|
|
|
12690
12789
|
className: PropTypes__default.string
|
|
12691
12790
|
});
|
|
12692
12791
|
|
|
12693
|
-
|
|
12792
|
+
_defineProperty(RawRangeInput, "defaultProps", {
|
|
12694
12793
|
currentRefinement: {},
|
|
12695
12794
|
className: ''
|
|
12696
12795
|
});
|
|
@@ -12753,15 +12852,15 @@ var cx$g = createClassNames('RatingMenu');
|
|
|
12753
12852
|
var RatingMenu =
|
|
12754
12853
|
/*#__PURE__*/
|
|
12755
12854
|
function (_Component) {
|
|
12756
|
-
|
|
12855
|
+
_inherits(RatingMenu, _Component);
|
|
12757
12856
|
|
|
12758
12857
|
function RatingMenu() {
|
|
12759
|
-
|
|
12858
|
+
_classCallCheck(this, RatingMenu);
|
|
12760
12859
|
|
|
12761
|
-
return
|
|
12860
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(RatingMenu).apply(this, arguments));
|
|
12762
12861
|
}
|
|
12763
12862
|
|
|
12764
|
-
|
|
12863
|
+
_createClass(RatingMenu, [{
|
|
12765
12864
|
key: "onClick",
|
|
12766
12865
|
value: function onClick(min, max, e) {
|
|
12767
12866
|
e.preventDefault();
|
|
@@ -12911,7 +13010,7 @@ function (_Component) {
|
|
|
12911
13010
|
return RatingMenu;
|
|
12912
13011
|
}(React.Component);
|
|
12913
13012
|
|
|
12914
|
-
|
|
13013
|
+
_defineProperty(RatingMenu, "propTypes", {
|
|
12915
13014
|
translate: PropTypes__default.func.isRequired,
|
|
12916
13015
|
refine: PropTypes__default.func.isRequired,
|
|
12917
13016
|
createURL: PropTypes__default.func.isRequired,
|
|
@@ -12929,7 +13028,7 @@ inherits$1$1._defineProperty(RatingMenu, "propTypes", {
|
|
|
12929
13028
|
className: PropTypes__default.string
|
|
12930
13029
|
});
|
|
12931
13030
|
|
|
12932
|
-
|
|
13031
|
+
_defineProperty(RatingMenu, "defaultProps", {
|
|
12933
13032
|
className: ''
|
|
12934
13033
|
});
|
|
12935
13034
|
|
|
@@ -12996,32 +13095,32 @@ var cx$h = createClassNames('RefinementList');
|
|
|
12996
13095
|
var RefinementList$1 =
|
|
12997
13096
|
/*#__PURE__*/
|
|
12998
13097
|
function (_Component) {
|
|
12999
|
-
|
|
13098
|
+
_inherits(RefinementList, _Component);
|
|
13000
13099
|
|
|
13001
13100
|
function RefinementList() {
|
|
13002
13101
|
var _getPrototypeOf2;
|
|
13003
13102
|
|
|
13004
13103
|
var _this;
|
|
13005
13104
|
|
|
13006
|
-
|
|
13105
|
+
_classCallCheck(this, RefinementList);
|
|
13007
13106
|
|
|
13008
13107
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13009
13108
|
args[_key] = arguments[_key];
|
|
13010
13109
|
}
|
|
13011
13110
|
|
|
13012
|
-
_this =
|
|
13111
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(RefinementList)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
13013
13112
|
|
|
13014
|
-
|
|
13113
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
13015
13114
|
query: ''
|
|
13016
13115
|
});
|
|
13017
13116
|
|
|
13018
|
-
|
|
13117
|
+
_defineProperty(_assertThisInitialized(_this), "selectItem", function (item, resetQuery) {
|
|
13019
13118
|
resetQuery();
|
|
13020
13119
|
|
|
13021
13120
|
_this.props.refine(item.value);
|
|
13022
13121
|
});
|
|
13023
13122
|
|
|
13024
|
-
|
|
13123
|
+
_defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
|
|
13025
13124
|
var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
|
|
13026
13125
|
attribute: "label",
|
|
13027
13126
|
hit: item
|
|
@@ -13045,7 +13144,7 @@ function (_Component) {
|
|
|
13045
13144
|
return _this;
|
|
13046
13145
|
}
|
|
13047
13146
|
|
|
13048
|
-
|
|
13147
|
+
_createClass(RefinementList, [{
|
|
13049
13148
|
key: "render",
|
|
13050
13149
|
value: function render() {
|
|
13051
13150
|
var _this$props = this.props,
|
|
@@ -13081,7 +13180,7 @@ function (_Component) {
|
|
|
13081
13180
|
return RefinementList;
|
|
13082
13181
|
}(React.Component);
|
|
13083
13182
|
|
|
13084
|
-
|
|
13183
|
+
_defineProperty(RefinementList$1, "propTypes", {
|
|
13085
13184
|
translate: PropTypes__default.func.isRequired,
|
|
13086
13185
|
refine: PropTypes__default.func.isRequired,
|
|
13087
13186
|
searchForItems: PropTypes__default.func.isRequired,
|
|
@@ -13102,7 +13201,7 @@ inherits$1$1._defineProperty(RefinementList$1, "propTypes", {
|
|
|
13102
13201
|
className: PropTypes__default.string
|
|
13103
13202
|
});
|
|
13104
13203
|
|
|
13105
|
-
|
|
13204
|
+
_defineProperty(RefinementList$1, "defaultProps", {
|
|
13106
13205
|
className: ''
|
|
13107
13206
|
});
|
|
13108
13207
|
|
|
@@ -13181,15 +13280,15 @@ var cx$i = createClassNames('ScrollTo');
|
|
|
13181
13280
|
var ScrollTo =
|
|
13182
13281
|
/*#__PURE__*/
|
|
13183
13282
|
function (_Component) {
|
|
13184
|
-
|
|
13283
|
+
_inherits(ScrollTo, _Component);
|
|
13185
13284
|
|
|
13186
13285
|
function ScrollTo() {
|
|
13187
|
-
|
|
13286
|
+
_classCallCheck(this, ScrollTo);
|
|
13188
13287
|
|
|
13189
|
-
return
|
|
13288
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(ScrollTo).apply(this, arguments));
|
|
13190
13289
|
}
|
|
13191
13290
|
|
|
13192
|
-
|
|
13291
|
+
_createClass(ScrollTo, [{
|
|
13193
13292
|
key: "componentDidUpdate",
|
|
13194
13293
|
value: function componentDidUpdate(prevProps) {
|
|
13195
13294
|
var _this$props = this.props,
|
|
@@ -13217,7 +13316,7 @@ function (_Component) {
|
|
|
13217
13316
|
return ScrollTo;
|
|
13218
13317
|
}(React.Component);
|
|
13219
13318
|
|
|
13220
|
-
|
|
13319
|
+
_defineProperty(ScrollTo, "propTypes", {
|
|
13221
13320
|
value: PropTypes__default.any,
|
|
13222
13321
|
children: PropTypes__default.node,
|
|
13223
13322
|
hasNotChanged: PropTypes__default.bool
|
|
@@ -13408,15 +13507,15 @@ var cx$l = createClassNames('SortBy');
|
|
|
13408
13507
|
var SortBy =
|
|
13409
13508
|
/*#__PURE__*/
|
|
13410
13509
|
function (_Component) {
|
|
13411
|
-
|
|
13510
|
+
_inherits(SortBy, _Component);
|
|
13412
13511
|
|
|
13413
13512
|
function SortBy() {
|
|
13414
|
-
|
|
13513
|
+
_classCallCheck(this, SortBy);
|
|
13415
13514
|
|
|
13416
|
-
return
|
|
13515
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(SortBy).apply(this, arguments));
|
|
13417
13516
|
}
|
|
13418
13517
|
|
|
13419
|
-
|
|
13518
|
+
_createClass(SortBy, [{
|
|
13420
13519
|
key: "render",
|
|
13421
13520
|
value: function render() {
|
|
13422
13521
|
var _this$props = this.props,
|
|
@@ -13438,7 +13537,7 @@ function (_Component) {
|
|
|
13438
13537
|
return SortBy;
|
|
13439
13538
|
}(React.Component);
|
|
13440
13539
|
|
|
13441
|
-
|
|
13540
|
+
_defineProperty(SortBy, "propTypes", {
|
|
13442
13541
|
items: PropTypes__default.arrayOf(PropTypes__default.shape({
|
|
13443
13542
|
label: PropTypes__default.string,
|
|
13444
13543
|
value: PropTypes__default.string.isRequired
|
|
@@ -13448,7 +13547,7 @@ inherits$1$1._defineProperty(SortBy, "propTypes", {
|
|
|
13448
13547
|
className: PropTypes__default.string
|
|
13449
13548
|
});
|
|
13450
13549
|
|
|
13451
|
-
|
|
13550
|
+
_defineProperty(SortBy, "defaultProps", {
|
|
13452
13551
|
className: ''
|
|
13453
13552
|
});
|
|
13454
13553
|
|
|
@@ -13849,24 +13948,24 @@ var DefaultStatus = function DefaultStatus(_ref3) {
|
|
|
13849
13948
|
var VoiceSearch =
|
|
13850
13949
|
/*#__PURE__*/
|
|
13851
13950
|
function (_Component) {
|
|
13852
|
-
|
|
13951
|
+
_inherits(VoiceSearch, _Component);
|
|
13853
13952
|
|
|
13854
13953
|
function VoiceSearch() {
|
|
13855
13954
|
var _getPrototypeOf2;
|
|
13856
13955
|
|
|
13857
13956
|
var _this;
|
|
13858
13957
|
|
|
13859
|
-
|
|
13958
|
+
_classCallCheck(this, VoiceSearch);
|
|
13860
13959
|
|
|
13861
13960
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13862
13961
|
args[_key] = arguments[_key];
|
|
13863
13962
|
}
|
|
13864
13963
|
|
|
13865
|
-
_this =
|
|
13964
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(VoiceSearch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
13866
13965
|
|
|
13867
|
-
|
|
13966
|
+
_defineProperty(_assertThisInitialized(_this), "voiceSearchHelper", void 0);
|
|
13868
13967
|
|
|
13869
|
-
|
|
13968
|
+
_defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
|
|
13870
13969
|
if (!_this.voiceSearchHelper) {
|
|
13871
13970
|
return;
|
|
13872
13971
|
}
|
|
@@ -13879,7 +13978,7 @@ function (_Component) {
|
|
|
13879
13978
|
return _this;
|
|
13880
13979
|
}
|
|
13881
13980
|
|
|
13882
|
-
|
|
13981
|
+
_createClass(VoiceSearch, [{
|
|
13883
13982
|
key: "componentDidMount",
|
|
13884
13983
|
value: function componentDidMount() {
|
|
13885
13984
|
var _this2 = this;
|
|
@@ -13952,7 +14051,7 @@ function (_Component) {
|
|
|
13952
14051
|
return VoiceSearch;
|
|
13953
14052
|
}(React.Component);
|
|
13954
14053
|
|
|
13955
|
-
|
|
14054
|
+
_defineProperty(VoiceSearch, "defaultProps", {
|
|
13956
14055
|
searchAsYouSpeak: false,
|
|
13957
14056
|
buttonTextComponent: DefaultButtonText,
|
|
13958
14057
|
statusComponent: DefaultStatus
|
|
@@ -14025,7 +14124,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14025
14124
|
index$2.LazyLoad,
|
|
14026
14125
|
null,
|
|
14027
14126
|
React__default.createElement('img', {
|
|
14028
|
-
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof._typeof(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14127
|
+
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$1._typeof(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14029
14128
|
})
|
|
14030
14129
|
)
|
|
14031
14130
|
)
|