react-instantsearch 7.19.0 → 7.20.1
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/ui/ReverseHighlight.js +27 -0
- package/dist/cjs/widgets/Autocomplete.js +97 -48
- package/dist/cjs/widgets/ReverseHighlight.js +46 -0
- package/dist/cjs/widgets/chat/tools/SearchIndexTool.js +3 -3
- package/dist/cjs/widgets/index.js +11 -0
- package/dist/cjs/widgets/index.umd.js +12 -0
- package/dist/es/ui/ReverseHighlight.d.ts +7 -0
- package/dist/es/ui/ReverseHighlight.js +20 -0
- package/dist/es/widgets/Autocomplete.d.ts +12 -1
- package/dist/es/widgets/Autocomplete.js +97 -48
- package/dist/es/widgets/ReverseHighlight.d.ts +9 -0
- package/dist/es/widgets/ReverseHighlight.js +39 -0
- package/dist/es/widgets/chat/tools/SearchIndexTool.js +4 -4
- package/dist/es/widgets/index.d.ts +1 -0
- package/dist/es/widgets/index.js +1 -0
- package/dist/es/widgets/index.umd.d.ts +1 -0
- package/dist/es/widgets/index.umd.js +1 -0
- package/dist/umd/ReactInstantSearch.js +349 -194
- package/dist/umd/ReactInstantSearch.js.map +1 -1
- package/dist/umd/ReactInstantSearch.min.js +1 -1
- package/dist/umd/ReactInstantSearch.min.js.map +1 -1
- package/package.json +5 -5
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
var React__default = 'default' in React ? React['default'] : React;
|
|
9
9
|
|
|
10
|
-
var version = '7.
|
|
10
|
+
var version = '7.20.1';
|
|
11
11
|
|
|
12
12
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
13
13
|
//
|
|
@@ -8068,6 +8068,11 @@
|
|
|
8068
8068
|
return insideBoundingBoxStringToBoundingBox(value);
|
|
8069
8069
|
}
|
|
8070
8070
|
|
|
8071
|
+
function getAlgoliaAgent(client) {
|
|
8072
|
+
var clientTyped = client;
|
|
8073
|
+
return clientTyped.transporter && clientTyped.transporter.userAgent ? clientTyped.transporter.userAgent.value : clientTyped._ua;
|
|
8074
|
+
}
|
|
8075
|
+
|
|
8071
8076
|
// typed as any, since it accepts the _real_ js clients, not the interface we otherwise expect
|
|
8072
8077
|
function getAppIdAndApiKey(searchClient) {
|
|
8073
8078
|
if (searchClient.appId && searchClient.apiKey) {
|
|
@@ -10516,6 +10521,12 @@
|
|
|
10516
10521
|
helper: helper
|
|
10517
10522
|
})));
|
|
10518
10523
|
},
|
|
10524
|
+
scheduleLocalSearch: defer(function () {
|
|
10525
|
+
if (isolated) {
|
|
10526
|
+
var _helper2;
|
|
10527
|
+
(_helper2 = helper) === null || _helper2 === void 0 ? void 0 : _helper2.search();
|
|
10528
|
+
}
|
|
10529
|
+
}),
|
|
10519
10530
|
getWidgets: function getWidgets() {
|
|
10520
10531
|
return localWidgets;
|
|
10521
10532
|
},
|
|
@@ -10581,8 +10592,7 @@
|
|
|
10581
10592
|
}
|
|
10582
10593
|
});
|
|
10583
10594
|
if (isolated) {
|
|
10584
|
-
|
|
10585
|
-
(_helper2 = helper) === null || _helper2 === void 0 ? void 0 : _helper2.search();
|
|
10595
|
+
this.scheduleLocalSearch();
|
|
10586
10596
|
} else {
|
|
10587
10597
|
localInstantSearchInstance.scheduleSearch();
|
|
10588
10598
|
}
|
|
@@ -10661,8 +10671,7 @@
|
|
|
10661
10671
|
helper.recommendState = cleanedRecommendState;
|
|
10662
10672
|
if (localWidgets.length) {
|
|
10663
10673
|
if (isolated) {
|
|
10664
|
-
|
|
10665
|
-
(_helper3 = helper) === null || _helper3 === void 0 ? void 0 : _helper3.search();
|
|
10674
|
+
this.scheduleLocalSearch();
|
|
10666
10675
|
} else {
|
|
10667
10676
|
localInstantSearchInstance.scheduleSearch();
|
|
10668
10677
|
}
|
|
@@ -10906,7 +10915,7 @@
|
|
|
10906
10915
|
},
|
|
10907
10916
|
dispose: function dispose() {
|
|
10908
10917
|
var _this5 = this,
|
|
10909
|
-
|
|
10918
|
+
_helper3,
|
|
10910
10919
|
_derivedHelper3;
|
|
10911
10920
|
localWidgets.forEach(function (widget) {
|
|
10912
10921
|
if (widget.dispose && helper) {
|
|
@@ -10926,7 +10935,7 @@
|
|
|
10926
10935
|
});
|
|
10927
10936
|
localInstantSearchInstance = null;
|
|
10928
10937
|
localParent = null;
|
|
10929
|
-
(
|
|
10938
|
+
(_helper3 = helper) === null || _helper3 === void 0 ? void 0 : _helper3.removeAllListeners();
|
|
10930
10939
|
helper = null;
|
|
10931
10940
|
(_derivedHelper3 = derivedHelper) === null || _derivedHelper3 === void 0 ? void 0 : _derivedHelper3.detach();
|
|
10932
10941
|
derivedHelper = null;
|
|
@@ -11823,8 +11832,7 @@
|
|
|
11823
11832
|
subscribe: function subscribe() {
|
|
11824
11833
|
// using setTimeout here to delay extraction until widgets have been added in a tick (e.g. Vue)
|
|
11825
11834
|
setTimeout(function () {
|
|
11826
|
-
|
|
11827
|
-
payload.ua = client.transporter && client.transporter.userAgent ? client.transporter.userAgent.value : client._ua;
|
|
11835
|
+
payload.ua = getAlgoliaAgent(instantSearchInstance.client);
|
|
11828
11836
|
extractWidgetPayload(instantSearchInstance.mainIndex.getWidgets(), instantSearchInstance, payload);
|
|
11829
11837
|
instantSearchInstance.middleware.forEach(function (middleware) {
|
|
11830
11838
|
return payload.widgets.push({
|
|
@@ -13347,7 +13355,7 @@
|
|
|
13347
13355
|
};
|
|
13348
13356
|
}
|
|
13349
13357
|
|
|
13350
|
-
var version$3 = '4.
|
|
13358
|
+
var version$3 = '4.85.0';
|
|
13351
13359
|
|
|
13352
13360
|
function _typeof$q(o) {
|
|
13353
13361
|
"@babel/helpers - typeof";
|
|
@@ -20937,7 +20945,7 @@
|
|
|
20937
20945
|
onSelect = _getItemProps.onSelect,
|
|
20938
20946
|
itemProps = _objectWithoutProperties$d(_getItemProps, _excluded$d);
|
|
20939
20947
|
return createElement("li", _extends$2({
|
|
20940
|
-
key: item.objectID
|
|
20948
|
+
key: "".concat(itemProps.id, ":").concat(item.objectID)
|
|
20941
20949
|
}, itemProps, {
|
|
20942
20950
|
className: cx('ais-AutocompleteIndexItem', classNames.item, className)
|
|
20943
20951
|
}), createElement(ItemComponent, {
|
|
@@ -20948,16 +20956,23 @@
|
|
|
20948
20956
|
};
|
|
20949
20957
|
}
|
|
20950
20958
|
|
|
20951
|
-
var _excluded$e = ["children", "classNames"];
|
|
20959
|
+
var _excluded$e = ["children", "classNames", "hidden"];
|
|
20952
20960
|
function createAutocompletePanelComponent(_ref) {
|
|
20953
20961
|
var createElement = _ref.createElement;
|
|
20954
20962
|
return function AutocompletePanel(userProps) {
|
|
20955
20963
|
var children = userProps.children,
|
|
20956
20964
|
_userProps$classNames = userProps.classNames,
|
|
20957
20965
|
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
20966
|
+
hidden = userProps.hidden,
|
|
20958
20967
|
props = _objectWithoutProperties$d(userProps, _excluded$e);
|
|
20959
20968
|
return createElement("div", _extends$2({}, props, {
|
|
20960
|
-
|
|
20969
|
+
"aria-hidden": hidden,
|
|
20970
|
+
className: cx('ais-AutocompletePanel', !hidden && 'ais-AutocompletePanel--open', classNames.root, props.className),
|
|
20971
|
+
onMouseDown: function onMouseDown(event) {
|
|
20972
|
+
// Prevents the autocomplete panel from blurring the input when
|
|
20973
|
+
// clicking inside the panel.
|
|
20974
|
+
event.preventDefault();
|
|
20975
|
+
}
|
|
20961
20976
|
}), createElement("div", {
|
|
20962
20977
|
className: cx('ais-AutocompletePanelLayout', classNames.layout)
|
|
20963
20978
|
}, children));
|
|
@@ -21106,25 +21121,21 @@
|
|
|
21106
21121
|
|
|
21107
21122
|
var _slicedToArray$h = unwrapExports(slicedToArray);
|
|
21108
21123
|
|
|
21109
|
-
function
|
|
21124
|
+
function SubmitIcon(_ref) {
|
|
21110
21125
|
var createElement = _ref.createElement;
|
|
21111
21126
|
return createElement("svg", {
|
|
21112
21127
|
className: "ais-AutocompleteSubmitIcon",
|
|
21113
21128
|
viewBox: "0 0 24 24",
|
|
21114
|
-
width: "20",
|
|
21115
|
-
height: "20",
|
|
21116
21129
|
fill: "currentColor"
|
|
21117
21130
|
}, createElement("path", {
|
|
21118
21131
|
d: "M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"
|
|
21119
21132
|
}));
|
|
21120
21133
|
}
|
|
21121
|
-
function
|
|
21134
|
+
function LoadingIcon(_ref2) {
|
|
21122
21135
|
var createElement = _ref2.createElement;
|
|
21123
21136
|
return createElement("svg", {
|
|
21124
21137
|
className: "ais-AutocompleteLoadingIcon",
|
|
21125
|
-
viewBox: "0 0 100 100"
|
|
21126
|
-
width: "20",
|
|
21127
|
-
height: "20"
|
|
21138
|
+
viewBox: "0 0 100 100"
|
|
21128
21139
|
}, createElement("circle", {
|
|
21129
21140
|
cx: "50",
|
|
21130
21141
|
cy: "50",
|
|
@@ -21142,19 +21153,17 @@
|
|
|
21142
21153
|
keyTimes: "0;0.40;0.65;1"
|
|
21143
21154
|
})));
|
|
21144
21155
|
}
|
|
21145
|
-
function
|
|
21156
|
+
function ClearIcon(_ref3) {
|
|
21146
21157
|
var createElement = _ref3.createElement;
|
|
21147
21158
|
return createElement("svg", {
|
|
21148
21159
|
className: "ais-AutocompleteClearIcon",
|
|
21149
21160
|
viewBox: "0 0 24 24",
|
|
21150
|
-
width: "18",
|
|
21151
|
-
height: "18",
|
|
21152
21161
|
fill: "currentColor"
|
|
21153
21162
|
}, createElement("path", {
|
|
21154
21163
|
d: "M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"
|
|
21155
21164
|
}));
|
|
21156
21165
|
}
|
|
21157
|
-
function
|
|
21166
|
+
function ClockIcon(_ref4) {
|
|
21158
21167
|
var createElement = _ref4.createElement;
|
|
21159
21168
|
return createElement("svg", {
|
|
21160
21169
|
viewBox: "0 0 24 24",
|
|
@@ -21163,7 +21172,7 @@
|
|
|
21163
21172
|
d: "M12.516 6.984v5.25l4.5 2.672-0.75 1.266-5.25-3.188v-6h1.5zM12 20.016q3.281 0 5.648-2.367t2.367-5.648-2.367-5.648-5.648-2.367-5.648 2.367-2.367 5.648 2.367 5.648 5.648 2.367zM12 2.016q4.125 0 7.055 2.93t2.93 7.055-2.93 7.055-7.055 2.93-7.055-2.93-2.93-7.055 2.93-7.055 7.055-2.93z"
|
|
21164
21173
|
}));
|
|
21165
21174
|
}
|
|
21166
|
-
function
|
|
21175
|
+
function TrashIcon(_ref5) {
|
|
21167
21176
|
var createElement = _ref5.createElement;
|
|
21168
21177
|
return createElement("svg", {
|
|
21169
21178
|
viewBox: "0 0 24 24",
|
|
@@ -21177,6 +21186,7 @@
|
|
|
21177
21186
|
var createElement = _ref.createElement;
|
|
21178
21187
|
return function AutocompleteRecentSearch(_ref2) {
|
|
21179
21188
|
var item = _ref2.item,
|
|
21189
|
+
children = _ref2.children,
|
|
21180
21190
|
onSelect = _ref2.onSelect,
|
|
21181
21191
|
onRemoveRecentSearch = _ref2.onRemoveRecentSearch,
|
|
21182
21192
|
_ref2$classNames = _ref2.classNames,
|
|
@@ -21188,11 +21198,11 @@
|
|
|
21188
21198
|
className: cx('ais-AutocompleteItemContent', 'ais-AutocompleteRecentSearchItemContent', classNames.content)
|
|
21189
21199
|
}, createElement("div", {
|
|
21190
21200
|
className: cx('ais-AutocompleteItemIcon', 'ais-AutocompleteRecentSearchItemIcon', classNames.content)
|
|
21191
|
-
}, createElement(
|
|
21201
|
+
}, createElement(ClockIcon, {
|
|
21192
21202
|
createElement: createElement
|
|
21193
21203
|
})), createElement("div", {
|
|
21194
21204
|
className: cx('ais-AutocompleteItemContentBody', 'ais-AutocompleteRecentSearchItemContentBody', classNames.content)
|
|
21195
|
-
},
|
|
21205
|
+
}, children)), createElement("div", {
|
|
21196
21206
|
className: cx('ais-AutocompleteItemActions', 'ais-AutocompleteRecentSearchItemActions', classNames.actions)
|
|
21197
21207
|
}, createElement("button", {
|
|
21198
21208
|
className: cx('ais-AutocompleteItemActionButton', 'ais-AutocompleteRecentSearchItemDeleteButton', classNames.deleteButton),
|
|
@@ -21201,7 +21211,7 @@
|
|
|
21201
21211
|
evt.stopPropagation();
|
|
21202
21212
|
onRemoveRecentSearch();
|
|
21203
21213
|
}
|
|
21204
|
-
}, createElement(
|
|
21214
|
+
}, createElement(TrashIcon, {
|
|
21205
21215
|
createElement: createElement
|
|
21206
21216
|
}))));
|
|
21207
21217
|
};
|
|
@@ -21214,6 +21224,7 @@
|
|
|
21214
21224
|
onClear = _ref2.onClear,
|
|
21215
21225
|
query = _ref2.query,
|
|
21216
21226
|
isSearchStalled = _ref2.isSearchStalled;
|
|
21227
|
+
var inputRef = inputProps.ref;
|
|
21217
21228
|
return createElement("form", {
|
|
21218
21229
|
className: "ais-AutocompleteForm",
|
|
21219
21230
|
action: "",
|
|
@@ -21221,6 +21232,10 @@
|
|
|
21221
21232
|
role: "search",
|
|
21222
21233
|
onSubmit: function onSubmit(e) {
|
|
21223
21234
|
return e.preventDefault();
|
|
21235
|
+
},
|
|
21236
|
+
onReset: function onReset() {
|
|
21237
|
+
var _inputRef$current;
|
|
21238
|
+
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
21224
21239
|
}
|
|
21225
21240
|
}, createElement("div", {
|
|
21226
21241
|
className: "ais-AutocompleteInputWrapperPrefix"
|
|
@@ -21233,12 +21248,12 @@
|
|
|
21233
21248
|
className: "ais-AutocompleteSubmitButton",
|
|
21234
21249
|
type: "submit",
|
|
21235
21250
|
title: "Submit"
|
|
21236
|
-
}, createElement(
|
|
21251
|
+
}, createElement(SubmitIcon, {
|
|
21237
21252
|
createElement: createElement
|
|
21238
21253
|
}))), createElement("div", {
|
|
21239
21254
|
className: "ais-AutocompleteLoadingIndicator",
|
|
21240
21255
|
hidden: !isSearchStalled
|
|
21241
|
-
}, createElement(
|
|
21256
|
+
}, createElement(LoadingIcon, {
|
|
21242
21257
|
createElement: createElement
|
|
21243
21258
|
}))), createElement("div", {
|
|
21244
21259
|
className: "ais-AutocompleteInputWrapper"
|
|
@@ -21251,7 +21266,6 @@
|
|
|
21251
21266
|
autoCapitalize: "off",
|
|
21252
21267
|
enterKeyHint: "search",
|
|
21253
21268
|
spellCheck: "false",
|
|
21254
|
-
placeholder: "",
|
|
21255
21269
|
maxLength: 512,
|
|
21256
21270
|
type: "search",
|
|
21257
21271
|
value: query
|
|
@@ -21263,7 +21277,7 @@
|
|
|
21263
21277
|
title: "Clear",
|
|
21264
21278
|
hidden: query.length === 0 || isSearchStalled,
|
|
21265
21279
|
onClick: onClear
|
|
21266
|
-
}, createElement(
|
|
21280
|
+
}, createElement(ClearIcon, {
|
|
21267
21281
|
createElement: createElement
|
|
21268
21282
|
}))));
|
|
21269
21283
|
};
|
|
@@ -21272,7 +21286,7 @@
|
|
|
21272
21286
|
function createAutocompleteSuggestionComponent(_ref) {
|
|
21273
21287
|
var createElement = _ref.createElement;
|
|
21274
21288
|
return function AutocompleteSuggestion(_ref2) {
|
|
21275
|
-
var
|
|
21289
|
+
var children = _ref2.children,
|
|
21276
21290
|
onSelect = _ref2.onSelect,
|
|
21277
21291
|
_ref2$classNames = _ref2.classNames,
|
|
21278
21292
|
classNames = _ref2$classNames === void 0 ? {} : _ref2$classNames;
|
|
@@ -21283,11 +21297,11 @@
|
|
|
21283
21297
|
className: cx('ais-AutocompleteItemContent', 'ais-AutocompleteSuggestionItemContent', classNames.content)
|
|
21284
21298
|
}, createElement("div", {
|
|
21285
21299
|
className: cx('ais-AutocompleteItemIcon', 'ais-AutocompleteSuggestionItemIcon', classNames.content)
|
|
21286
|
-
}, createElement(
|
|
21300
|
+
}, createElement(SubmitIcon, {
|
|
21287
21301
|
createElement: createElement
|
|
21288
21302
|
})), createElement("div", {
|
|
21289
21303
|
className: cx('ais-AutocompleteItemContentBody', 'ais-AutocompleteSuggestionItemContentBody', classNames.content)
|
|
21290
|
-
},
|
|
21304
|
+
}, children)));
|
|
21291
21305
|
};
|
|
21292
21306
|
}
|
|
21293
21307
|
|
|
@@ -21301,8 +21315,10 @@
|
|
|
21301
21315
|
var indices = _ref2.indices,
|
|
21302
21316
|
indicesConfig = _ref2.indicesConfig,
|
|
21303
21317
|
onRefine = _ref2.onRefine,
|
|
21304
|
-
globalOnSelect = _ref2.onSelect
|
|
21318
|
+
globalOnSelect = _ref2.onSelect,
|
|
21319
|
+
placeholder = _ref2.placeholder;
|
|
21305
21320
|
var getElementId = createGetElementId(useId());
|
|
21321
|
+
var inputRef = useRef(null);
|
|
21306
21322
|
var rootRef = useRef(null);
|
|
21307
21323
|
var _useState = useState(false),
|
|
21308
21324
|
_useState2 = _slicedToArray$h(_useState, 2),
|
|
@@ -21334,7 +21350,7 @@
|
|
|
21334
21350
|
document.body.removeEventListener('click', onBodyClick);
|
|
21335
21351
|
};
|
|
21336
21352
|
}, [rootRef]);
|
|
21337
|
-
var
|
|
21353
|
+
var getNextActiveDescendant = function getNextActiveDescendant(key) {
|
|
21338
21354
|
switch (key) {
|
|
21339
21355
|
case 'ArrowLeft':
|
|
21340
21356
|
case 'ArrowUp':
|
|
@@ -21353,11 +21369,21 @@
|
|
|
21353
21369
|
}
|
|
21354
21370
|
};
|
|
21355
21371
|
var submit = function submit() {
|
|
21356
|
-
var
|
|
21357
|
-
|
|
21358
|
-
if (
|
|
21372
|
+
var _override$activeDesce;
|
|
21373
|
+
var override = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
21374
|
+
if (isOpen) {
|
|
21375
|
+
setIsOpen(false);
|
|
21376
|
+
} else {
|
|
21377
|
+
var _inputRef$current;
|
|
21378
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.blur();
|
|
21379
|
+
}
|
|
21380
|
+
var actualDescendant = (_override$activeDesce = override.activeDescendant) !== null && _override$activeDesce !== void 0 ? _override$activeDesce : activeDescendant;
|
|
21381
|
+
if (!actualDescendant && override.query) {
|
|
21382
|
+
onRefine(override.query);
|
|
21383
|
+
}
|
|
21384
|
+
if (actualDescendant && items.has(actualDescendant)) {
|
|
21359
21385
|
var _getQuery;
|
|
21360
|
-
var _ref3 = items.get(
|
|
21386
|
+
var _ref3 = items.get(actualDescendant),
|
|
21361
21387
|
_item = _ref3.item,
|
|
21362
21388
|
_ref3$config = _ref3.config,
|
|
21363
21389
|
indexOnSelect = _ref3$config.onSelect,
|
|
@@ -21379,43 +21405,54 @@
|
|
|
21379
21405
|
getInputProps: function getInputProps() {
|
|
21380
21406
|
return {
|
|
21381
21407
|
id: getElementId('input'),
|
|
21408
|
+
ref: inputRef,
|
|
21382
21409
|
role: 'combobox',
|
|
21383
21410
|
'aria-autocomplete': 'list',
|
|
21384
21411
|
'aria-expanded': isOpen,
|
|
21385
21412
|
'aria-haspopup': 'grid',
|
|
21386
21413
|
'aria-controls': getElementId('panel'),
|
|
21387
21414
|
'aria-activedescendant': activeDescendant,
|
|
21415
|
+
placeholder: placeholder,
|
|
21388
21416
|
onFocus: function onFocus() {
|
|
21389
21417
|
return setIsOpen(true);
|
|
21390
21418
|
},
|
|
21391
21419
|
onKeyDown: function onKeyDown(event) {
|
|
21392
|
-
if (event.key === 'Escape') {
|
|
21393
|
-
setActiveDescendant(undefined);
|
|
21394
|
-
setIsOpen(false);
|
|
21395
|
-
return;
|
|
21396
|
-
}
|
|
21397
21420
|
switch (event.key) {
|
|
21421
|
+
case 'Escape':
|
|
21422
|
+
{
|
|
21423
|
+
if (isOpen) {
|
|
21424
|
+
setIsOpen(false);
|
|
21425
|
+
event.preventDefault();
|
|
21426
|
+
} else {
|
|
21427
|
+
setActiveDescendant(undefined);
|
|
21428
|
+
}
|
|
21429
|
+
break;
|
|
21430
|
+
}
|
|
21398
21431
|
case 'ArrowLeft':
|
|
21399
21432
|
case 'ArrowUp':
|
|
21400
21433
|
case 'ArrowRight':
|
|
21401
21434
|
case 'ArrowDown':
|
|
21402
21435
|
{
|
|
21403
21436
|
var _document$getElementB;
|
|
21404
|
-
|
|
21405
|
-
|
|
21406
|
-
(
|
|
21437
|
+
setIsOpen(true);
|
|
21438
|
+
var nextActiveDescendant = getNextActiveDescendant(event.key);
|
|
21439
|
+
setActiveDescendant(nextActiveDescendant);
|
|
21440
|
+
(_document$getElementB = document.getElementById(nextActiveDescendant)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.scrollIntoView(false);
|
|
21407
21441
|
event.preventDefault();
|
|
21408
21442
|
break;
|
|
21409
21443
|
}
|
|
21410
21444
|
case 'Enter':
|
|
21411
21445
|
{
|
|
21412
|
-
submit(
|
|
21446
|
+
submit({
|
|
21447
|
+
query: event.target.value
|
|
21448
|
+
});
|
|
21413
21449
|
break;
|
|
21414
21450
|
}
|
|
21415
21451
|
case 'Tab':
|
|
21416
21452
|
setIsOpen(false);
|
|
21417
21453
|
break;
|
|
21418
21454
|
default:
|
|
21455
|
+
setIsOpen(true);
|
|
21419
21456
|
return;
|
|
21420
21457
|
}
|
|
21421
21458
|
},
|
|
@@ -21443,7 +21480,9 @@
|
|
|
21443
21480
|
role: 'row',
|
|
21444
21481
|
'aria-selected': id === activeDescendant,
|
|
21445
21482
|
onSelect: function onSelect() {
|
|
21446
|
-
return submit(
|
|
21483
|
+
return submit({
|
|
21484
|
+
activeDescendant: id
|
|
21485
|
+
});
|
|
21447
21486
|
}
|
|
21448
21487
|
};
|
|
21449
21488
|
},
|
|
@@ -21584,7 +21623,13 @@
|
|
|
21584
21623
|
return {
|
|
21585
21624
|
objectID: value,
|
|
21586
21625
|
query: value,
|
|
21587
|
-
__indexName: 'recent-searches'
|
|
21626
|
+
__indexName: 'recent-searches',
|
|
21627
|
+
_highlightResult: getHighlightedAttribute({
|
|
21628
|
+
item: {
|
|
21629
|
+
query: value
|
|
21630
|
+
},
|
|
21631
|
+
query: query || ''
|
|
21632
|
+
})
|
|
21588
21633
|
};
|
|
21589
21634
|
});
|
|
21590
21635
|
var indicesForPropGetters = _toConsumableArray$9(indices);
|
|
@@ -21620,6 +21665,24 @@
|
|
|
21620
21665
|
return false;
|
|
21621
21666
|
}
|
|
21622
21667
|
}
|
|
21668
|
+
function getHighlightedAttribute(_ref3) {
|
|
21669
|
+
var item = _ref3.item,
|
|
21670
|
+
query = _ref3.query;
|
|
21671
|
+
if (!query.trim().length) {
|
|
21672
|
+
return {
|
|
21673
|
+
query: {
|
|
21674
|
+
matchLevel: 'none'
|
|
21675
|
+
}
|
|
21676
|
+
};
|
|
21677
|
+
}
|
|
21678
|
+
return {
|
|
21679
|
+
query: {
|
|
21680
|
+
value: item.query.replace(new RegExp(query.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), 'gi'), function (match) {
|
|
21681
|
+
return "<mark>".concat(match, "</mark>");
|
|
21682
|
+
})
|
|
21683
|
+
}
|
|
21684
|
+
};
|
|
21685
|
+
}
|
|
21623
21686
|
function getLocalStorage() {
|
|
21624
21687
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LOCAL_STORAGE_KEY;
|
|
21625
21688
|
if (!isLocalStorageSupported()) {
|
|
@@ -21644,10 +21707,10 @@
|
|
|
21644
21707
|
}
|
|
21645
21708
|
};
|
|
21646
21709
|
}
|
|
21647
|
-
function createStorage(
|
|
21648
|
-
var
|
|
21649
|
-
limit =
|
|
21650
|
-
storageKey =
|
|
21710
|
+
function createStorage(_ref4) {
|
|
21711
|
+
var _ref4$limit = _ref4.limit,
|
|
21712
|
+
limit = _ref4$limit === void 0 ? 5 : _ref4$limit,
|
|
21713
|
+
storageKey = _ref4.storageKey;
|
|
21651
21714
|
var storage = getLocalStorage(storageKey);
|
|
21652
21715
|
var updateListener = null;
|
|
21653
21716
|
return {
|
|
@@ -21820,9 +21883,9 @@
|
|
|
21820
21883
|
Fragment: Fragment
|
|
21821
21884
|
}) : _userProps$itemCompon,
|
|
21822
21885
|
_userProps$previousIc = userProps.previousIconComponent,
|
|
21823
|
-
|
|
21886
|
+
PreviousIcon = _userProps$previousIc === void 0 ? PreviousIconDefaultComponent : _userProps$previousIc,
|
|
21824
21887
|
_userProps$nextIconCo = userProps.nextIconComponent,
|
|
21825
|
-
|
|
21888
|
+
NextIcon = _userProps$nextIconCo === void 0 ? NextIconDefaultComponent : _userProps$nextIconCo,
|
|
21826
21889
|
HeaderComponent = userProps.headerComponent,
|
|
21827
21890
|
_userProps$showNaviga = userProps.showNavigation,
|
|
21828
21891
|
showNavigation = _userProps$showNaviga === void 0 ? true : _userProps$showNaviga,
|
|
@@ -21891,7 +21954,7 @@
|
|
|
21891
21954
|
event.preventDefault();
|
|
21892
21955
|
scrollLeft();
|
|
21893
21956
|
}
|
|
21894
|
-
}, createElement(
|
|
21957
|
+
}, createElement(PreviousIcon, {
|
|
21895
21958
|
createElement: createElement
|
|
21896
21959
|
})), createElement("ol", {
|
|
21897
21960
|
className: cx(cssClasses.list),
|
|
@@ -21937,7 +22000,7 @@
|
|
|
21937
22000
|
event.preventDefault();
|
|
21938
22001
|
scrollRight();
|
|
21939
22002
|
}
|
|
21940
|
-
}, createElement(
|
|
22003
|
+
}, createElement(NextIcon, {
|
|
21941
22004
|
createElement: createElement
|
|
21942
22005
|
})));
|
|
21943
22006
|
};
|
|
@@ -22434,8 +22497,56 @@
|
|
|
22434
22497
|
});
|
|
22435
22498
|
}
|
|
22436
22499
|
|
|
22437
|
-
var
|
|
22438
|
-
|
|
22500
|
+
var InternalHighlight = createHighlightComponent({
|
|
22501
|
+
createElement: React.createElement,
|
|
22502
|
+
Fragment: React.Fragment
|
|
22503
|
+
});
|
|
22504
|
+
|
|
22505
|
+
var _excluded$m = ["classNames"];
|
|
22506
|
+
function ReverseHighlight(_ref) {
|
|
22507
|
+
var _ref$classNames = _ref.classNames,
|
|
22508
|
+
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
22509
|
+
props = _objectWithoutProperties$c(_ref, _excluded$m);
|
|
22510
|
+
return /*#__PURE__*/React__default.createElement(InternalHighlight, _extends$1({
|
|
22511
|
+
classNames: {
|
|
22512
|
+
root: cx('ais-ReverseHighlight', classNames.root),
|
|
22513
|
+
highlighted: cx('ais-ReverseHighlight-highlighted', classNames.highlighted),
|
|
22514
|
+
nonHighlighted: cx('ais-ReverseHighlight-nonHighlighted', classNames.nonHighlighted),
|
|
22515
|
+
separator: cx('ais-ReverseHighlight-separator', classNames.separator)
|
|
22516
|
+
}
|
|
22517
|
+
}, props));
|
|
22518
|
+
}
|
|
22519
|
+
|
|
22520
|
+
var _excluded$n = ["hit", "attribute", "highlightedTagName", "nonHighlightedTagName", "separator"],
|
|
22521
|
+
_excluded2$4 = ["isHighlighted"];
|
|
22522
|
+
function ReverseHighlight$1(_ref) {
|
|
22523
|
+
var hit = _ref.hit,
|
|
22524
|
+
attribute = _ref.attribute,
|
|
22525
|
+
highlightedTagName = _ref.highlightedTagName,
|
|
22526
|
+
nonHighlightedTagName = _ref.nonHighlightedTagName,
|
|
22527
|
+
separator = _ref.separator,
|
|
22528
|
+
props = _objectWithoutProperties$c(_ref, _excluded$n);
|
|
22529
|
+
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
22530
|
+
var properties = Array.isArray(property) ? property : [property];
|
|
22531
|
+
var parts = properties.map(function (singleValue) {
|
|
22532
|
+
return getHighlightedParts(unescape$1(singleValue.value || '')).map(function (_ref2) {
|
|
22533
|
+
var isHighlighted = _ref2.isHighlighted,
|
|
22534
|
+
rest = _objectWithoutProperties$c(_ref2, _excluded2$4);
|
|
22535
|
+
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
22536
|
+
isHighlighted: !isHighlighted
|
|
22537
|
+
});
|
|
22538
|
+
});
|
|
22539
|
+
});
|
|
22540
|
+
return /*#__PURE__*/React__default.createElement(ReverseHighlight, _extends$1({}, props, {
|
|
22541
|
+
parts: parts,
|
|
22542
|
+
highlightedTagName: highlightedTagName,
|
|
22543
|
+
nonHighlightedTagName: nonHighlightedTagName,
|
|
22544
|
+
separator: separator
|
|
22545
|
+
}));
|
|
22546
|
+
}
|
|
22547
|
+
|
|
22548
|
+
var _excluded$o = ["indices", "showSuggestions", "showRecent", "searchParameters"],
|
|
22549
|
+
_excluded2$5 = ["indicesConfig", "refineSearchBox", "getSearchPageURL", "onSelect", "indexUiState", "isSearchPage", "panelComponent", "showRecent", "showSuggestions", "placeholder"];
|
|
22439
22550
|
var Autocomplete = createAutocompleteComponent({
|
|
22440
22551
|
createElement: React.createElement,
|
|
22441
22552
|
Fragment: React.Fragment
|
|
@@ -22468,15 +22579,13 @@
|
|
|
22468
22579
|
useMemo: React.useMemo,
|
|
22469
22580
|
useState: React.useState
|
|
22470
22581
|
});
|
|
22471
|
-
var _ref2 = /*#__PURE__*/React__default.createElement(Configure, {
|
|
22472
|
-
hitsPerPage: 5
|
|
22473
|
-
});
|
|
22474
22582
|
function EXPERIMENTAL_Autocomplete(_ref) {
|
|
22475
22583
|
var _ref$indices = _ref.indices,
|
|
22476
22584
|
indices = _ref$indices === void 0 ? [] : _ref$indices,
|
|
22477
22585
|
showSuggestions = _ref.showSuggestions,
|
|
22478
22586
|
showRecent = _ref.showRecent,
|
|
22479
|
-
|
|
22587
|
+
userSearchParameters = _ref.searchParameters,
|
|
22588
|
+
props = _objectWithoutProperties$c(_ref, _excluded$o);
|
|
22480
22589
|
var _useInstantSearch = useInstantSearch(),
|
|
22481
22590
|
indexUiState = _useInstantSearch.indexUiState,
|
|
22482
22591
|
indexRenderState = _useInstantSearch.indexRenderState;
|
|
@@ -22485,13 +22594,25 @@
|
|
|
22485
22594
|
$$widgetType: 'ais.autocomplete'
|
|
22486
22595
|
}),
|
|
22487
22596
|
refine = _useSearchBox.refine;
|
|
22597
|
+
var searchParameters = _objectSpread2({
|
|
22598
|
+
hitsPerPage: 5
|
|
22599
|
+
}, userSearchParameters);
|
|
22488
22600
|
var indicesConfig = _toConsumableArray$8(indices);
|
|
22489
22601
|
if (showSuggestions !== null && showSuggestions !== void 0 && showSuggestions.indexName) {
|
|
22490
22602
|
var _showSuggestions$clas, _showSuggestions$clas2, _showSuggestions$clas3, _showSuggestions$clas4;
|
|
22491
22603
|
indicesConfig.unshift({
|
|
22492
22604
|
indexName: showSuggestions.indexName,
|
|
22493
22605
|
headerComponent: showSuggestions.headerComponent,
|
|
22494
|
-
itemComponent: showSuggestions.itemComponent ||
|
|
22606
|
+
itemComponent: showSuggestions.itemComponent || function (_ref2) {
|
|
22607
|
+
var item = _ref2.item,
|
|
22608
|
+
onSelect = _ref2.onSelect;
|
|
22609
|
+
return /*#__PURE__*/React__default.createElement(AutocompleteSuggestion, {
|
|
22610
|
+
item: item,
|
|
22611
|
+
onSelect: onSelect
|
|
22612
|
+
}, /*#__PURE__*/React__default.createElement(ConditionalReverseHighlight, {
|
|
22613
|
+
item: item
|
|
22614
|
+
}));
|
|
22615
|
+
},
|
|
22495
22616
|
classNames: {
|
|
22496
22617
|
root: cx('ais-AutocompleteSuggestions', showSuggestions === null || showSuggestions === void 0 ? void 0 : (_showSuggestions$clas = showSuggestions.classNames) === null || _showSuggestions$clas === void 0 ? void 0 : _showSuggestions$clas.root),
|
|
22497
22618
|
list: cx('ais-AutocompleteSuggestionsList', showSuggestions === null || showSuggestions === void 0 ? void 0 : (_showSuggestions$clas2 = showSuggestions.classNames) === null || _showSuggestions$clas2 === void 0 ? void 0 : _showSuggestions$clas2.list),
|
|
@@ -22509,17 +22630,18 @@
|
|
|
22509
22630
|
}, [indexRenderState]);
|
|
22510
22631
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(Index, {
|
|
22511
22632
|
EXPERIMENTAL_isolated: true
|
|
22512
|
-
},
|
|
22633
|
+
}, /*#__PURE__*/React__default.createElement(Configure, searchParameters), indicesConfig.map(function (index) {
|
|
22513
22634
|
return /*#__PURE__*/React__default.createElement(Index, {
|
|
22514
22635
|
key: index.indexName,
|
|
22515
22636
|
indexName: index.indexName
|
|
22516
|
-
});
|
|
22637
|
+
}, /*#__PURE__*/React__default.createElement(Configure, index.searchParameters));
|
|
22517
22638
|
}), /*#__PURE__*/React__default.createElement(InnerAutocomplete, _extends$1({}, props, {
|
|
22518
22639
|
indicesConfig: indicesConfig,
|
|
22519
22640
|
refineSearchBox: refine,
|
|
22520
22641
|
indexUiState: indexUiState,
|
|
22521
22642
|
isSearchPage: isSearchPage,
|
|
22522
|
-
showRecent: showRecent
|
|
22643
|
+
showRecent: showRecent,
|
|
22644
|
+
showSuggestions: showSuggestions
|
|
22523
22645
|
}))));
|
|
22524
22646
|
}
|
|
22525
22647
|
function InnerAutocomplete(_ref3) {
|
|
@@ -22529,8 +22651,11 @@
|
|
|
22529
22651
|
userOnSelect = _ref3.onSelect,
|
|
22530
22652
|
indexUiState = _ref3.indexUiState,
|
|
22531
22653
|
isSearchPage = _ref3.isSearchPage,
|
|
22654
|
+
PanelComponent = _ref3.panelComponent,
|
|
22532
22655
|
showRecent = _ref3.showRecent,
|
|
22533
|
-
|
|
22656
|
+
showSuggestions = _ref3.showSuggestions,
|
|
22657
|
+
placeholder = _ref3.placeholder,
|
|
22658
|
+
props = _objectWithoutProperties$c(_ref3, _excluded2$5);
|
|
22534
22659
|
var _useAutocomplete = useAutocomplete(),
|
|
22535
22660
|
indices = _useAutocomplete.indices,
|
|
22536
22661
|
refineAutocomplete = _useAutocomplete.refine,
|
|
@@ -22568,68 +22693,102 @@
|
|
|
22568
22693
|
return;
|
|
22569
22694
|
}
|
|
22570
22695
|
setQuery(query);
|
|
22571
|
-
}
|
|
22696
|
+
},
|
|
22697
|
+
placeholder: placeholder
|
|
22572
22698
|
}),
|
|
22573
22699
|
getInputProps = _usePropGetters.getInputProps,
|
|
22574
22700
|
getItemProps = _usePropGetters.getItemProps,
|
|
22575
22701
|
getPanelProps = _usePropGetters.getPanelProps,
|
|
22576
22702
|
getRootProps = _usePropGetters.getRootProps;
|
|
22577
22703
|
var AutocompleteRecentSearchComponent = _typeof$S(showRecent) === 'object' && showRecent.itemComponent || AutocompleteRecentSearch;
|
|
22578
|
-
|
|
22579
|
-
|
|
22580
|
-
|
|
22581
|
-
|
|
22582
|
-
|
|
22583
|
-
|
|
22584
|
-
|
|
22585
|
-
|
|
22586
|
-
|
|
22587
|
-
|
|
22588
|
-
|
|
22589
|
-
|
|
22590
|
-
|
|
22591
|
-
|
|
22592
|
-
|
|
22593
|
-
|
|
22594
|
-
|
|
22595
|
-
|
|
22596
|
-
|
|
22597
|
-
|
|
22598
|
-
|
|
22599
|
-
|
|
22600
|
-
|
|
22601
|
-
|
|
22602
|
-
|
|
22603
|
-
|
|
22604
|
-
|
|
22605
|
-
}
|
|
22704
|
+
var elements = {};
|
|
22705
|
+
if (showRecent) {
|
|
22706
|
+
elements.recent = /*#__PURE__*/React__default.createElement(AutocompleteIndex
|
|
22707
|
+
// @ts-ignore - there seems to be problems with React.ComponentType and this, but it's actually correct
|
|
22708
|
+
, {
|
|
22709
|
+
ItemComponent: function ItemComponent(_ref5) {
|
|
22710
|
+
var item = _ref5.item,
|
|
22711
|
+
onSelect = _ref5.onSelect;
|
|
22712
|
+
return /*#__PURE__*/React__default.createElement(AutocompleteRecentSearchComponent, {
|
|
22713
|
+
item: item,
|
|
22714
|
+
onSelect: onSelect,
|
|
22715
|
+
onRemoveRecentSearch: function onRemoveRecentSearch() {
|
|
22716
|
+
return storage.onRemove(item.query);
|
|
22717
|
+
}
|
|
22718
|
+
}, /*#__PURE__*/React__default.createElement(ConditionalReverseHighlight, {
|
|
22719
|
+
item: item
|
|
22720
|
+
}));
|
|
22721
|
+
},
|
|
22722
|
+
classNames: {
|
|
22723
|
+
root: 'ais-AutocompleteRecentSearches',
|
|
22724
|
+
list: 'ais-AutocompleteRecentSearchesList',
|
|
22725
|
+
item: 'ais-AutocompleteRecentSearchesItem'
|
|
22726
|
+
},
|
|
22727
|
+
items: storageHits,
|
|
22728
|
+
getItemProps: getItemProps,
|
|
22729
|
+
key: "recentSearches"
|
|
22730
|
+
});
|
|
22731
|
+
}
|
|
22732
|
+
indices.forEach(function (_ref6, i) {
|
|
22606
22733
|
var indexId = _ref6.indexId,
|
|
22734
|
+
indexName = _ref6.indexName,
|
|
22607
22735
|
hits = _ref6.hits;
|
|
22608
|
-
|
|
22736
|
+
var elementId = indexName === (showSuggestions === null || showSuggestions === void 0 ? void 0 : showSuggestions.indexName) ? 'suggestions' : indexName;
|
|
22737
|
+
var filteredHits = elementId === 'suggestions' && showRecent ? hits.filter(function (suggestionHit) {
|
|
22738
|
+
return !storageHits.find(function (storageHit) {
|
|
22739
|
+
return storageHit.query === suggestionHit.query;
|
|
22740
|
+
});
|
|
22741
|
+
}) : hits;
|
|
22742
|
+
elements[elementId] = /*#__PURE__*/React__default.createElement(AutocompleteIndex, {
|
|
22609
22743
|
key: indexId
|
|
22610
22744
|
// @ts-expect-error - there seems to be problems with React.ComponentType and this, but it's actually correct
|
|
22611
22745
|
,
|
|
22612
|
-
HeaderComponent: indicesConfig[
|
|
22746
|
+
HeaderComponent: indicesConfig[i].headerComponent
|
|
22613
22747
|
// @ts-expect-error - there seems to be problems with React.ComponentType and this, but it's actually correct
|
|
22614
22748
|
,
|
|
22615
|
-
ItemComponent: indicesConfig[
|
|
22616
|
-
items:
|
|
22749
|
+
ItemComponent: indicesConfig[i].itemComponent,
|
|
22750
|
+
items: filteredHits.map(function (item) {
|
|
22617
22751
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22618
22752
|
__indexName: indexId
|
|
22619
22753
|
});
|
|
22620
22754
|
}),
|
|
22621
22755
|
getItemProps: getItemProps,
|
|
22622
|
-
classNames: indicesConfig[
|
|
22756
|
+
classNames: indicesConfig[i].classNames
|
|
22623
22757
|
});
|
|
22758
|
+
});
|
|
22759
|
+
return /*#__PURE__*/React__default.createElement(Autocomplete, _extends$1({}, props, getRootProps()), /*#__PURE__*/React__default.createElement(AutocompleteSearch, {
|
|
22760
|
+
inputProps: getInputProps(),
|
|
22761
|
+
clearQuery: function clearQuery() {
|
|
22762
|
+
refineSearchBox('');
|
|
22763
|
+
refineAutocomplete('');
|
|
22764
|
+
}
|
|
22765
|
+
}), /*#__PURE__*/React__default.createElement(AutocompletePanel, getPanelProps(), PanelComponent ? /*#__PURE__*/React__default.createElement(PanelComponent, {
|
|
22766
|
+
elements: elements,
|
|
22767
|
+
indices: indices
|
|
22768
|
+
}) : Object.keys(elements).map(function (elementId) {
|
|
22769
|
+
return elements[elementId];
|
|
22624
22770
|
})));
|
|
22625
22771
|
}
|
|
22772
|
+
function ConditionalReverseHighlight(_ref7) {
|
|
22773
|
+
var _item$_highlightResul;
|
|
22774
|
+
var item = _ref7.item;
|
|
22775
|
+
if (!((_item$_highlightResul = item._highlightResult) !== null && _item$_highlightResul !== void 0 && _item$_highlightResul.query) ||
|
|
22776
|
+
// @ts-expect-error - we should not have matchLevel as arrays here
|
|
22777
|
+
item._highlightResult.query.matchLevel === 'none') {
|
|
22778
|
+
return item.query;
|
|
22779
|
+
}
|
|
22780
|
+
return /*#__PURE__*/React__default.createElement(ReverseHighlight$1, {
|
|
22781
|
+
attribute: "query",
|
|
22782
|
+
hit: item
|
|
22783
|
+
});
|
|
22784
|
+
}
|
|
22626
22785
|
|
|
22627
22786
|
function isModifierClick(event) {
|
|
22628
22787
|
var isMiddleClick = event.button === 1;
|
|
22629
22788
|
return Boolean(isMiddleClick || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey);
|
|
22630
22789
|
}
|
|
22631
22790
|
|
|
22632
|
-
var _excluded$
|
|
22791
|
+
var _excluded$p = ["classNames", "items", "hasItems", "createURL", "onNavigate", "separator", "translations"];
|
|
22633
22792
|
function Breadcrumb(_ref) {
|
|
22634
22793
|
var _ref$classNames = _ref.classNames,
|
|
22635
22794
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
@@ -22641,7 +22800,7 @@
|
|
|
22641
22800
|
_ref$separator = _ref.separator,
|
|
22642
22801
|
separator = _ref$separator === void 0 ? '>' : _ref$separator,
|
|
22643
22802
|
translations = _ref.translations,
|
|
22644
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
22803
|
+
props = _objectWithoutProperties$c(_ref, _excluded$p);
|
|
22645
22804
|
var handleClick = function handleClick(value) {
|
|
22646
22805
|
return function (event) {
|
|
22647
22806
|
if (!isModifierClick(event)) {
|
|
@@ -22676,14 +22835,14 @@
|
|
|
22676
22835
|
})));
|
|
22677
22836
|
}
|
|
22678
22837
|
|
|
22679
|
-
var _excluded$
|
|
22838
|
+
var _excluded$q = ["attributes", "rootPath", "separator", "transformItems", "translations"];
|
|
22680
22839
|
function Breadcrumb$1(_ref) {
|
|
22681
22840
|
var attributes = _ref.attributes,
|
|
22682
22841
|
rootPath = _ref.rootPath,
|
|
22683
22842
|
separator = _ref.separator,
|
|
22684
22843
|
transformItems = _ref.transformItems,
|
|
22685
22844
|
translations = _ref.translations,
|
|
22686
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
22845
|
+
props = _objectWithoutProperties$c(_ref, _excluded$q);
|
|
22687
22846
|
var _useBreadcrumb = useBreadcrumb({
|
|
22688
22847
|
attributes: attributes,
|
|
22689
22848
|
rootPath: rootPath,
|
|
@@ -22707,7 +22866,7 @@
|
|
|
22707
22866
|
return /*#__PURE__*/React__default.createElement(Breadcrumb, _extends$1({}, props, uiProps));
|
|
22708
22867
|
}
|
|
22709
22868
|
|
|
22710
|
-
var _excluded$
|
|
22869
|
+
var _excluded$r = ["classNames", "disabled", "onClick", "translations"];
|
|
22711
22870
|
function ClearRefinements(_ref) {
|
|
22712
22871
|
var _ref$classNames = _ref.classNames,
|
|
22713
22872
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
@@ -22716,7 +22875,7 @@
|
|
|
22716
22875
|
_ref$onClick = _ref.onClick,
|
|
22717
22876
|
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
22718
22877
|
translations = _ref.translations,
|
|
22719
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
22878
|
+
props = _objectWithoutProperties$c(_ref, _excluded$r);
|
|
22720
22879
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
22721
22880
|
className: cx('ais-ClearRefinements', classNames.root, props.className)
|
|
22722
22881
|
}), /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -22726,13 +22885,13 @@
|
|
|
22726
22885
|
}, translations.resetButtonText));
|
|
22727
22886
|
}
|
|
22728
22887
|
|
|
22729
|
-
var _excluded$
|
|
22888
|
+
var _excluded$s = ["includedAttributes", "excludedAttributes", "transformItems", "translations"];
|
|
22730
22889
|
function ClearRefinements$1(_ref) {
|
|
22731
22890
|
var includedAttributes = _ref.includedAttributes,
|
|
22732
22891
|
excludedAttributes = _ref.excludedAttributes,
|
|
22733
22892
|
transformItems = _ref.transformItems,
|
|
22734
22893
|
translations = _ref.translations,
|
|
22735
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
22894
|
+
props = _objectWithoutProperties$c(_ref, _excluded$s);
|
|
22736
22895
|
var _useClearRefinements = useClearRefinements({
|
|
22737
22896
|
includedAttributes: includedAttributes,
|
|
22738
22897
|
excludedAttributes: excludedAttributes,
|
|
@@ -22756,7 +22915,7 @@
|
|
|
22756
22915
|
return text.toString().charAt(0).toUpperCase() + text.toString().slice(1);
|
|
22757
22916
|
}
|
|
22758
22917
|
|
|
22759
|
-
var _excluded$
|
|
22918
|
+
var _excluded$t = ["classNames", "items", "hasRefinements"];
|
|
22760
22919
|
function CurrentRefinements(_ref) {
|
|
22761
22920
|
var _ref$classNames = _ref.classNames,
|
|
22762
22921
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
@@ -22764,7 +22923,7 @@
|
|
|
22764
22923
|
items = _ref$items === void 0 ? [] : _ref$items,
|
|
22765
22924
|
_ref$hasRefinements = _ref.hasRefinements,
|
|
22766
22925
|
hasRefinements = _ref$hasRefinements === void 0 ? false : _ref$hasRefinements,
|
|
22767
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
22926
|
+
props = _objectWithoutProperties$c(_ref, _excluded$t);
|
|
22768
22927
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
22769
22928
|
className: cx('ais-CurrentRefinements', classNames.root, !hasRefinements && cx('ais-CurrentRefinements--noRefinement', classNames.noRefinementRoot), props.className)
|
|
22770
22929
|
}), /*#__PURE__*/React__default.createElement("ul", {
|
|
@@ -22796,12 +22955,12 @@
|
|
|
22796
22955
|
})));
|
|
22797
22956
|
}
|
|
22798
22957
|
|
|
22799
|
-
var _excluded$
|
|
22958
|
+
var _excluded$u = ["includedAttributes", "excludedAttributes", "transformItems"];
|
|
22800
22959
|
function CurrentRefinements$1(_ref) {
|
|
22801
22960
|
var includedAttributes = _ref.includedAttributes,
|
|
22802
22961
|
excludedAttributes = _ref.excludedAttributes,
|
|
22803
22962
|
transformItems = _ref.transformItems,
|
|
22804
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
22963
|
+
props = _objectWithoutProperties$c(_ref, _excluded$u);
|
|
22805
22964
|
var _useCurrentRefinement = useCurrentRefinements({
|
|
22806
22965
|
includedAttributes: includedAttributes,
|
|
22807
22966
|
excludedAttributes: excludedAttributes,
|
|
@@ -22818,7 +22977,7 @@
|
|
|
22818
22977
|
return /*#__PURE__*/React__default.createElement(CurrentRefinements, _extends$1({}, props, uiProps));
|
|
22819
22978
|
}
|
|
22820
22979
|
|
|
22821
|
-
var _excluded$
|
|
22980
|
+
var _excluded$v = ["objectIDs", "limit", "threshold", "queryParameters", "fallbackParameters", "escapeHTML", "transformItems", "itemComponent", "headerComponent", "emptyComponent", "layoutComponent"];
|
|
22822
22981
|
var FrequentlyBoughtTogetherUiComponent = createFrequentlyBoughtTogetherComponent({
|
|
22823
22982
|
createElement: React.createElement,
|
|
22824
22983
|
Fragment: React.Fragment
|
|
@@ -22835,7 +22994,7 @@
|
|
|
22835
22994
|
headerComponent = _ref.headerComponent,
|
|
22836
22995
|
emptyComponent = _ref.emptyComponent,
|
|
22837
22996
|
layoutComponent = _ref.layoutComponent,
|
|
22838
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
22997
|
+
props = _objectWithoutProperties$c(_ref, _excluded$v);
|
|
22839
22998
|
var _useInstantSearch = useInstantSearch(),
|
|
22840
22999
|
status = _useInstantSearch.status;
|
|
22841
23000
|
var _useFrequentlyBoughtT = useFrequentlyBoughtTogether({
|
|
@@ -22878,17 +23037,17 @@
|
|
|
22878
23037
|
return /*#__PURE__*/React__default.createElement(FrequentlyBoughtTogetherUiComponent, _extends$1({}, props, uiProps));
|
|
22879
23038
|
}
|
|
22880
23039
|
|
|
22881
|
-
var _excluded$
|
|
23040
|
+
var _excluded$w = ["isShowingMore", "translations"];
|
|
22882
23041
|
function ShowMoreButton(_ref) {
|
|
22883
23042
|
var isShowingMore = _ref.isShowingMore,
|
|
22884
23043
|
translations = _ref.translations,
|
|
22885
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23044
|
+
props = _objectWithoutProperties$c(_ref, _excluded$w);
|
|
22886
23045
|
return /*#__PURE__*/React__default.createElement("button", props, translations.showMoreButtonText({
|
|
22887
23046
|
isShowingMore: isShowingMore
|
|
22888
23047
|
}));
|
|
22889
23048
|
}
|
|
22890
23049
|
|
|
22891
|
-
var _excluded$
|
|
23050
|
+
var _excluded$x = ["classNames", "items", "hasItems", "onNavigate", "createURL", "showMore", "canToggleShowMore", "onToggleShowMore", "isShowingMore", "translations"];
|
|
22892
23051
|
function HierarchicalList(_ref) {
|
|
22893
23052
|
var className = _ref.className,
|
|
22894
23053
|
_ref$classNames = _ref.classNames,
|
|
@@ -22940,7 +23099,7 @@
|
|
|
22940
23099
|
onToggleShowMore = _ref2.onToggleShowMore,
|
|
22941
23100
|
isShowingMore = _ref2.isShowingMore,
|
|
22942
23101
|
translations = _ref2.translations,
|
|
22943
|
-
props = _objectWithoutProperties$c(_ref2, _excluded$
|
|
23102
|
+
props = _objectWithoutProperties$c(_ref2, _excluded$x);
|
|
22944
23103
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
22945
23104
|
className: cx('ais-HierarchicalMenu', classNames.root, !hasItems && cx('ais-HierarchicalMenu--noRefinement', classNames.noRefinementRoot), props.className)
|
|
22946
23105
|
}), /*#__PURE__*/React__default.createElement(HierarchicalList, {
|
|
@@ -22957,7 +23116,7 @@
|
|
|
22957
23116
|
}));
|
|
22958
23117
|
}
|
|
22959
23118
|
|
|
22960
|
-
var _excluded$
|
|
23119
|
+
var _excluded$y = ["attributes", "limit", "rootPath", "separator", "showMore", "showMoreLimit", "showParentLevel", "sortBy", "transformItems", "translations"];
|
|
22961
23120
|
function HierarchicalMenu$1(_ref) {
|
|
22962
23121
|
var attributes = _ref.attributes,
|
|
22963
23122
|
limit = _ref.limit,
|
|
@@ -22969,7 +23128,7 @@
|
|
|
22969
23128
|
sortBy = _ref.sortBy,
|
|
22970
23129
|
transformItems = _ref.transformItems,
|
|
22971
23130
|
translations = _ref.translations,
|
|
22972
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23131
|
+
props = _objectWithoutProperties$c(_ref, _excluded$y);
|
|
22973
23132
|
var _useHierarchicalMenu = useHierarchicalMenu({
|
|
22974
23133
|
attributes: attributes,
|
|
22975
23134
|
limit: limit,
|
|
@@ -23009,16 +23168,11 @@
|
|
|
23009
23168
|
}));
|
|
23010
23169
|
}
|
|
23011
23170
|
|
|
23012
|
-
var
|
|
23013
|
-
createElement: React.createElement,
|
|
23014
|
-
Fragment: React.Fragment
|
|
23015
|
-
});
|
|
23016
|
-
|
|
23017
|
-
var _excluded$x = ["classNames"];
|
|
23171
|
+
var _excluded$z = ["classNames"];
|
|
23018
23172
|
function Highlight(_ref) {
|
|
23019
23173
|
var _ref$classNames = _ref.classNames,
|
|
23020
23174
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
23021
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23175
|
+
props = _objectWithoutProperties$c(_ref, _excluded$z);
|
|
23022
23176
|
return /*#__PURE__*/React__default.createElement(InternalHighlight, _extends$1({
|
|
23023
23177
|
classNames: {
|
|
23024
23178
|
root: cx('ais-Highlight', classNames.root),
|
|
@@ -23029,14 +23183,14 @@
|
|
|
23029
23183
|
}, props));
|
|
23030
23184
|
}
|
|
23031
23185
|
|
|
23032
|
-
var _excluded$
|
|
23186
|
+
var _excluded$A = ["hit", "attribute", "highlightedTagName", "nonHighlightedTagName", "separator"];
|
|
23033
23187
|
function Highlight$1(_ref) {
|
|
23034
23188
|
var hit = _ref.hit,
|
|
23035
23189
|
attribute = _ref.attribute,
|
|
23036
23190
|
highlightedTagName = _ref.highlightedTagName,
|
|
23037
23191
|
nonHighlightedTagName = _ref.nonHighlightedTagName,
|
|
23038
23192
|
separator = _ref.separator,
|
|
23039
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23193
|
+
props = _objectWithoutProperties$c(_ref, _excluded$A);
|
|
23040
23194
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
23041
23195
|
var properties = Array.isArray(property) ? property : [property];
|
|
23042
23196
|
var parts = properties.map(function (singleValue) {
|
|
@@ -23050,8 +23204,8 @@
|
|
|
23050
23204
|
}));
|
|
23051
23205
|
}
|
|
23052
23206
|
|
|
23053
|
-
var _excluded$
|
|
23054
|
-
_excluded2$
|
|
23207
|
+
var _excluded$B = ["escapeHTML", "transformItems", "hitComponent", "bannerComponent"],
|
|
23208
|
+
_excluded2$6 = ["hit", "index"];
|
|
23055
23209
|
// @MAJOR: Move default hit component back to the UI library
|
|
23056
23210
|
// once flavour specificities are erased
|
|
23057
23211
|
function DefaultHitComponent(_ref) {
|
|
@@ -23072,7 +23226,7 @@
|
|
|
23072
23226
|
_ref2$hitComponent = _ref2.hitComponent,
|
|
23073
23227
|
HitComponent = _ref2$hitComponent === void 0 ? DefaultHitComponent : _ref2$hitComponent,
|
|
23074
23228
|
BannerComponent = _ref2.bannerComponent,
|
|
23075
|
-
props = _objectWithoutProperties$c(_ref2, _excluded$
|
|
23229
|
+
props = _objectWithoutProperties$c(_ref2, _excluded$B);
|
|
23076
23230
|
var _useHits = useHits({
|
|
23077
23231
|
escapeHTML: escapeHTML,
|
|
23078
23232
|
transformItems: transformItems
|
|
@@ -23086,7 +23240,7 @@
|
|
|
23086
23240
|
return function (_ref3) {
|
|
23087
23241
|
var hit = _ref3.hit,
|
|
23088
23242
|
index = _ref3.index,
|
|
23089
|
-
itemProps = _objectWithoutProperties$c(_ref3, _excluded2$
|
|
23243
|
+
itemProps = _objectWithoutProperties$c(_ref3, _excluded2$6);
|
|
23090
23244
|
return /*#__PURE__*/React__default.createElement("li", _extends$1({
|
|
23091
23245
|
key: hit.objectID
|
|
23092
23246
|
}, itemProps), /*#__PURE__*/React__default.createElement(HitComponent, {
|
|
@@ -23108,14 +23262,14 @@
|
|
|
23108
23262
|
return /*#__PURE__*/React__default.createElement(HitsUiComponent, _extends$1({}, props, uiProps));
|
|
23109
23263
|
}
|
|
23110
23264
|
|
|
23111
|
-
var _excluded$
|
|
23265
|
+
var _excluded$C = ["items", "onChange", "currentValue", "classNames"];
|
|
23112
23266
|
function HitsPerPage(_ref) {
|
|
23113
23267
|
var items = _ref.items,
|
|
23114
23268
|
_onChange = _ref.onChange,
|
|
23115
23269
|
currentValue = _ref.currentValue,
|
|
23116
23270
|
_ref$classNames = _ref.classNames,
|
|
23117
23271
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
23118
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23272
|
+
props = _objectWithoutProperties$c(_ref, _excluded$C);
|
|
23119
23273
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
23120
23274
|
className: cx('ais-HitsPerPage', classNames.root, props.className)
|
|
23121
23275
|
}), /*#__PURE__*/React__default.createElement("select", {
|
|
@@ -23133,11 +23287,11 @@
|
|
|
23133
23287
|
})));
|
|
23134
23288
|
}
|
|
23135
23289
|
|
|
23136
|
-
var _excluded$
|
|
23290
|
+
var _excluded$D = ["items", "transformItems"];
|
|
23137
23291
|
function HitsPerPage$1(_ref) {
|
|
23138
23292
|
var userItems = _ref.items,
|
|
23139
23293
|
transformItems = _ref.transformItems,
|
|
23140
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23294
|
+
props = _objectWithoutProperties$c(_ref, _excluded$D);
|
|
23141
23295
|
var _useHitsPerPage = useHitsPerPage({
|
|
23142
23296
|
items: userItems,
|
|
23143
23297
|
transformItems: transformItems
|
|
@@ -23161,7 +23315,7 @@
|
|
|
23161
23315
|
return /*#__PURE__*/React__default.createElement(HitsPerPage, _extends$1({}, props, uiProps));
|
|
23162
23316
|
}
|
|
23163
23317
|
|
|
23164
|
-
var _excluded$
|
|
23318
|
+
var _excluded$E = ["hitComponent", "hits", "bannerComponent", "banner", "sendEvent", "isFirstPage", "isLastPage", "onShowPrevious", "onShowMore", "classNames", "translations"];
|
|
23165
23319
|
function DefaultHitComponent$1(_ref) {
|
|
23166
23320
|
var hit = _ref.hit;
|
|
23167
23321
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -23206,7 +23360,7 @@
|
|
|
23206
23360
|
_ref3$classNames = _ref3.classNames,
|
|
23207
23361
|
classNames = _ref3$classNames === void 0 ? {} : _ref3$classNames,
|
|
23208
23362
|
translations = _ref3.translations,
|
|
23209
|
-
props = _objectWithoutProperties$c(_ref3, _excluded$
|
|
23363
|
+
props = _objectWithoutProperties$c(_ref3, _excluded$E);
|
|
23210
23364
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
23211
23365
|
className: cx('ais-InfiniteHits', classNames.root, hits.length === 0 && cx('ais-InfiniteHits--empty', classNames.emptyRoot), props.className)
|
|
23212
23366
|
}), onShowPrevious && /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -23242,7 +23396,7 @@
|
|
|
23242
23396
|
}, translations.showMoreButtonText));
|
|
23243
23397
|
}
|
|
23244
23398
|
|
|
23245
|
-
var _excluded$
|
|
23399
|
+
var _excluded$F = ["showPrevious", "cache", "escapeHTML", "transformItems", "translations", "bannerComponent"];
|
|
23246
23400
|
function InfiniteHits$1(_ref) {
|
|
23247
23401
|
var _ref$showPrevious = _ref.showPrevious,
|
|
23248
23402
|
shouldShowPrevious = _ref$showPrevious === void 0 ? true : _ref$showPrevious,
|
|
@@ -23251,7 +23405,7 @@
|
|
|
23251
23405
|
transformItems = _ref.transformItems,
|
|
23252
23406
|
translations = _ref.translations,
|
|
23253
23407
|
BannerComponent = _ref.bannerComponent,
|
|
23254
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23408
|
+
props = _objectWithoutProperties$c(_ref, _excluded$F);
|
|
23255
23409
|
var _useInfiniteHits = useInfiniteHits({
|
|
23256
23410
|
cache: cache,
|
|
23257
23411
|
escapeHTML: escapeHTML,
|
|
@@ -23287,7 +23441,7 @@
|
|
|
23287
23441
|
return /*#__PURE__*/React__default.createElement(InfiniteHits, _extends$1({}, props, uiProps));
|
|
23288
23442
|
}
|
|
23289
23443
|
|
|
23290
|
-
var _excluded$
|
|
23444
|
+
var _excluded$G = ["objectIDs", "limit", "threshold", "queryParameters", "fallbackParameters", "escapeHTML", "transformItems", "itemComponent", "headerComponent", "emptyComponent", "layoutComponent"];
|
|
23291
23445
|
var LookingSimilarUiComponent = createLookingSimilarComponent({
|
|
23292
23446
|
createElement: React.createElement,
|
|
23293
23447
|
Fragment: React.Fragment
|
|
@@ -23304,7 +23458,7 @@
|
|
|
23304
23458
|
headerComponent = _ref.headerComponent,
|
|
23305
23459
|
emptyComponent = _ref.emptyComponent,
|
|
23306
23460
|
layoutComponent = _ref.layoutComponent,
|
|
23307
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23461
|
+
props = _objectWithoutProperties$c(_ref, _excluded$G);
|
|
23308
23462
|
var _useInstantSearch = useInstantSearch(),
|
|
23309
23463
|
status = _useInstantSearch.status;
|
|
23310
23464
|
var _useLookingSimilar = useLookingSimilar({
|
|
@@ -23347,7 +23501,7 @@
|
|
|
23347
23501
|
return /*#__PURE__*/React__default.createElement(LookingSimilarUiComponent, _extends$1({}, props, uiProps));
|
|
23348
23502
|
}
|
|
23349
23503
|
|
|
23350
|
-
var _excluded$
|
|
23504
|
+
var _excluded$H = ["items", "classNames", "showMore", "canToggleShowMore", "onToggleShowMore", "isShowingMore", "createURL", "onRefine", "translations"];
|
|
23351
23505
|
function Menu(_ref) {
|
|
23352
23506
|
var items = _ref.items,
|
|
23353
23507
|
_ref$classNames = _ref.classNames,
|
|
@@ -23359,7 +23513,7 @@
|
|
|
23359
23513
|
createURL = _ref.createURL,
|
|
23360
23514
|
onRefine = _ref.onRefine,
|
|
23361
23515
|
translations = _ref.translations,
|
|
23362
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23516
|
+
props = _objectWithoutProperties$c(_ref, _excluded$H);
|
|
23363
23517
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
23364
23518
|
className: cx('ais-Menu', classNames.root, items.length === 0 && cx('ais-Menu--noRefinement', classNames.noRefinementRoot), props.className)
|
|
23365
23519
|
}), /*#__PURE__*/React__default.createElement("ul", {
|
|
@@ -23392,7 +23546,7 @@
|
|
|
23392
23546
|
}));
|
|
23393
23547
|
}
|
|
23394
23548
|
|
|
23395
|
-
var _excluded$
|
|
23549
|
+
var _excluded$I = ["attribute", "limit", "showMore", "showMoreLimit", "sortBy", "transformItems", "translations"];
|
|
23396
23550
|
function Menu$1(_ref) {
|
|
23397
23551
|
var attribute = _ref.attribute,
|
|
23398
23552
|
limit = _ref.limit,
|
|
@@ -23401,7 +23555,7 @@
|
|
|
23401
23555
|
sortBy = _ref.sortBy,
|
|
23402
23556
|
transformItems = _ref.transformItems,
|
|
23403
23557
|
translations = _ref.translations,
|
|
23404
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23558
|
+
props = _objectWithoutProperties$c(_ref, _excluded$I);
|
|
23405
23559
|
var _useMenu = useMenu({
|
|
23406
23560
|
attribute: attribute,
|
|
23407
23561
|
limit: limit,
|
|
@@ -23438,8 +23592,8 @@
|
|
|
23438
23592
|
}));
|
|
23439
23593
|
}
|
|
23440
23594
|
|
|
23441
|
-
var _excluded$
|
|
23442
|
-
_excluded2$
|
|
23595
|
+
var _excluded$J = ["pages", "currentPage", "nbPages", "isFirstPage", "isLastPage", "showFirst", "showPrevious", "showNext", "showLast", "createURL", "onNavigate", "translations", "classNames"],
|
|
23596
|
+
_excluded2$7 = ["isDisabled", "className", "classNames", "href", "onClick"];
|
|
23443
23597
|
function Pagination(_ref) {
|
|
23444
23598
|
var pages = _ref.pages,
|
|
23445
23599
|
currentPage = _ref.currentPage,
|
|
@@ -23459,7 +23613,7 @@
|
|
|
23459
23613
|
translations = _ref.translations,
|
|
23460
23614
|
_ref$classNames = _ref.classNames,
|
|
23461
23615
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
23462
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23616
|
+
props = _objectWithoutProperties$c(_ref, _excluded$J);
|
|
23463
23617
|
var firstPageIndex = 0;
|
|
23464
23618
|
var previousPageIndex = currentPage - 1;
|
|
23465
23619
|
var nextPageIndex = currentPage + 1;
|
|
@@ -23530,7 +23684,7 @@
|
|
|
23530
23684
|
classNames = _ref2.classNames,
|
|
23531
23685
|
href = _ref2.href,
|
|
23532
23686
|
_onClick = _ref2.onClick,
|
|
23533
|
-
props = _objectWithoutProperties$c(_ref2, _excluded2$
|
|
23687
|
+
props = _objectWithoutProperties$c(_ref2, _excluded2$7);
|
|
23534
23688
|
if (isDisabled) {
|
|
23535
23689
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
23536
23690
|
className: cx('ais-Pagination-item', classNames.item, 'ais-Pagination-item--disabled', classNames.disabledItem, className)
|
|
@@ -23553,7 +23707,7 @@
|
|
|
23553
23707
|
}, props)));
|
|
23554
23708
|
}
|
|
23555
23709
|
|
|
23556
|
-
var _excluded$
|
|
23710
|
+
var _excluded$K = ["showFirst", "showPrevious", "showNext", "showLast", "padding", "totalPages", "translations"];
|
|
23557
23711
|
function Pagination$1(_ref) {
|
|
23558
23712
|
var showFirst = _ref.showFirst,
|
|
23559
23713
|
showPrevious = _ref.showPrevious,
|
|
@@ -23562,7 +23716,7 @@
|
|
|
23562
23716
|
padding = _ref.padding,
|
|
23563
23717
|
totalPages = _ref.totalPages,
|
|
23564
23718
|
translations = _ref.translations,
|
|
23565
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23719
|
+
props = _objectWithoutProperties$c(_ref, _excluded$K);
|
|
23566
23720
|
var _usePagination = usePagination({
|
|
23567
23721
|
padding: padding,
|
|
23568
23722
|
totalPages: totalPages
|
|
@@ -23611,14 +23765,14 @@
|
|
|
23611
23765
|
}));
|
|
23612
23766
|
}
|
|
23613
23767
|
|
|
23614
|
-
var _excluded$
|
|
23768
|
+
var _excluded$L = ["classNames", "url", "theme"];
|
|
23615
23769
|
function PoweredBy(_ref) {
|
|
23616
23770
|
var _ref$classNames = _ref.classNames,
|
|
23617
23771
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
23618
23772
|
url = _ref.url,
|
|
23619
23773
|
_ref$theme = _ref.theme,
|
|
23620
23774
|
theme = _ref$theme === void 0 ? 'light' : _ref$theme,
|
|
23621
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23775
|
+
props = _objectWithoutProperties$c(_ref, _excluded$L);
|
|
23622
23776
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
23623
23777
|
className: cx('ais-PoweredBy', theme === 'dark' ? cx('ais-PoweredBy--dark', classNames.dark) : cx('ais-PoweredBy--light', classNames.light), classNames.root, props.className)
|
|
23624
23778
|
}), /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -23648,7 +23802,7 @@
|
|
|
23648
23802
|
return /*#__PURE__*/React__default.createElement(PoweredBy, _extends$1({}, props, uiProps));
|
|
23649
23803
|
}
|
|
23650
23804
|
|
|
23651
|
-
var _excluded$
|
|
23805
|
+
var _excluded$M = ["classNames", "range", "start", "step", "disabled", "onSubmit", "translations"];
|
|
23652
23806
|
// if the default value is undefined, React considers the component uncontrolled initially, which we don't want 0 or NaN as the default value
|
|
23653
23807
|
var unsetNumberInputValue = '';
|
|
23654
23808
|
|
|
@@ -23673,7 +23827,7 @@
|
|
|
23673
23827
|
disabled = _ref.disabled,
|
|
23674
23828
|
_onSubmit = _ref.onSubmit,
|
|
23675
23829
|
translations = _ref.translations,
|
|
23676
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23830
|
+
props = _objectWithoutProperties$c(_ref, _excluded$M);
|
|
23677
23831
|
var values = {
|
|
23678
23832
|
min: minValue !== -Infinity && minValue !== min ? minValue : unsetNumberInputValue,
|
|
23679
23833
|
max: maxValue !== Infinity && maxValue !== max ? maxValue : unsetNumberInputValue
|
|
@@ -23753,14 +23907,14 @@
|
|
|
23753
23907
|
}, translations.submitButtonText)));
|
|
23754
23908
|
}
|
|
23755
23909
|
|
|
23756
|
-
var _excluded$
|
|
23910
|
+
var _excluded$N = ["attribute", "min", "max", "precision", "translations"];
|
|
23757
23911
|
function RangeInput$1(_ref) {
|
|
23758
23912
|
var attribute = _ref.attribute,
|
|
23759
23913
|
min = _ref.min,
|
|
23760
23914
|
max = _ref.max,
|
|
23761
23915
|
precision = _ref.precision,
|
|
23762
23916
|
translations = _ref.translations,
|
|
23763
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23917
|
+
props = _objectWithoutProperties$c(_ref, _excluded$N);
|
|
23764
23918
|
var _useRange = useRange({
|
|
23765
23919
|
attribute: attribute,
|
|
23766
23920
|
min: min,
|
|
@@ -23788,7 +23942,7 @@
|
|
|
23788
23942
|
return /*#__PURE__*/React__default.createElement(RangeInput, _extends$1({}, props, uiProps));
|
|
23789
23943
|
}
|
|
23790
23944
|
|
|
23791
|
-
var _excluded$
|
|
23945
|
+
var _excluded$O = ["canRefine", "items", "onRefine", "query", "searchBox", "noResults", "showMore", "canToggleShowMore", "onToggleShowMore", "isShowingMore", "className", "classNames", "translations"];
|
|
23792
23946
|
function RefinementList$1(_ref) {
|
|
23793
23947
|
var canRefine = _ref.canRefine,
|
|
23794
23948
|
items = _ref.items,
|
|
@@ -23804,7 +23958,7 @@
|
|
|
23804
23958
|
_ref$classNames = _ref.classNames,
|
|
23805
23959
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
23806
23960
|
translations = _ref.translations,
|
|
23807
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
23961
|
+
props = _objectWithoutProperties$c(_ref, _excluded$O);
|
|
23808
23962
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
23809
23963
|
className: cx('ais-RefinementList', classNames.root, items.length === 0 && cx('ais-RefinementList--noRefinement', classNames.noRefinementRoot), className)
|
|
23810
23964
|
}), searchBox && /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -23843,8 +23997,8 @@
|
|
|
23843
23997
|
}));
|
|
23844
23998
|
}
|
|
23845
23999
|
|
|
23846
|
-
var _excluded$
|
|
23847
|
-
var _ref2
|
|
24000
|
+
var _excluded$P = ["formRef", "inputRef", "inputProps", "isSearchStalled", "onChange", "onReset", "onSubmit", "placeholder", "value", "autoFocus", "resetIconComponent", "submitIconComponent", "loadingIconComponent", "classNames", "translations"];
|
|
24001
|
+
var _ref2 = /*#__PURE__*/React__default.createElement("path", {
|
|
23848
24002
|
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"
|
|
23849
24003
|
});
|
|
23850
24004
|
function DefaultSubmitIcon(_ref) {
|
|
@@ -23855,7 +24009,7 @@
|
|
|
23855
24009
|
height: "10",
|
|
23856
24010
|
viewBox: "0 0 40 40",
|
|
23857
24011
|
"aria-hidden": "true"
|
|
23858
|
-
}, _ref2
|
|
24012
|
+
}, _ref2);
|
|
23859
24013
|
}
|
|
23860
24014
|
var _ref4 = /*#__PURE__*/React__default.createElement("path", {
|
|
23861
24015
|
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"
|
|
@@ -23924,7 +24078,7 @@
|
|
|
23924
24078
|
_ref7$classNames = _ref7.classNames,
|
|
23925
24079
|
classNames = _ref7$classNames === void 0 ? {} : _ref7$classNames,
|
|
23926
24080
|
translations = _ref7.translations,
|
|
23927
|
-
props = _objectWithoutProperties$c(_ref7, _excluded$
|
|
24081
|
+
props = _objectWithoutProperties$c(_ref7, _excluded$P);
|
|
23928
24082
|
function handleSubmit(event) {
|
|
23929
24083
|
event.preventDefault();
|
|
23930
24084
|
event.stopPropagation();
|
|
@@ -23989,7 +24143,7 @@
|
|
|
23989
24143
|
}))));
|
|
23990
24144
|
}
|
|
23991
24145
|
|
|
23992
|
-
var _excluded$
|
|
24146
|
+
var _excluded$Q = ["searchable", "searchablePlaceholder", "searchableSelectOnSubmit", "attribute", "operator", "limit", "showMore", "showMoreLimit", "sortBy", "escapeFacetValues", "transformItems", "translations"];
|
|
23993
24147
|
function RefinementList$2(_ref) {
|
|
23994
24148
|
var searchable = _ref.searchable,
|
|
23995
24149
|
searchablePlaceholder = _ref.searchablePlaceholder,
|
|
@@ -24004,7 +24158,7 @@
|
|
|
24004
24158
|
escapeFacetValues = _ref.escapeFacetValues,
|
|
24005
24159
|
transformItems = _ref.transformItems,
|
|
24006
24160
|
translations = _ref.translations,
|
|
24007
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24161
|
+
props = _objectWithoutProperties$c(_ref, _excluded$Q);
|
|
24008
24162
|
var _useRefinementList = useRefinementList({
|
|
24009
24163
|
attribute: attribute,
|
|
24010
24164
|
operator: operator,
|
|
@@ -24096,7 +24250,7 @@
|
|
|
24096
24250
|
}));
|
|
24097
24251
|
}
|
|
24098
24252
|
|
|
24099
|
-
var _excluded$
|
|
24253
|
+
var _excluded$R = ["objectIDs", "limit", "threshold", "fallbackParameters", "queryParameters", "escapeHTML", "transformItems", "itemComponent", "headerComponent", "emptyComponent", "layoutComponent"];
|
|
24100
24254
|
var RelatedProductsUiComponent = createRelatedProductsComponent({
|
|
24101
24255
|
createElement: React.createElement,
|
|
24102
24256
|
Fragment: React.Fragment
|
|
@@ -24113,7 +24267,7 @@
|
|
|
24113
24267
|
headerComponent = _ref.headerComponent,
|
|
24114
24268
|
emptyComponent = _ref.emptyComponent,
|
|
24115
24269
|
layoutComponent = _ref.layoutComponent,
|
|
24116
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24270
|
+
props = _objectWithoutProperties$c(_ref, _excluded$R);
|
|
24117
24271
|
var _useInstantSearch = useInstantSearch(),
|
|
24118
24272
|
status = _useInstantSearch.status;
|
|
24119
24273
|
var _useRelatedProducts = useRelatedProducts({
|
|
@@ -24156,7 +24310,7 @@
|
|
|
24156
24310
|
return /*#__PURE__*/React__default.createElement(RelatedProductsUiComponent, _extends$1({}, props, uiProps));
|
|
24157
24311
|
}
|
|
24158
24312
|
|
|
24159
|
-
var _excluded$
|
|
24313
|
+
var _excluded$S = ["queryHook", "searchAsYouType", "ignoreCompositionEvents", "translations"];
|
|
24160
24314
|
function SearchBox$1(_ref) {
|
|
24161
24315
|
var queryHook = _ref.queryHook,
|
|
24162
24316
|
_ref$searchAsYouType = _ref.searchAsYouType,
|
|
@@ -24164,7 +24318,7 @@
|
|
|
24164
24318
|
_ref$ignoreCompositio = _ref.ignoreCompositionEvents,
|
|
24165
24319
|
ignoreCompositionEvents = _ref$ignoreCompositio === void 0 ? false : _ref$ignoreCompositio,
|
|
24166
24320
|
translations = _ref.translations,
|
|
24167
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24321
|
+
props = _objectWithoutProperties$c(_ref, _excluded$S);
|
|
24168
24322
|
var _useSearchBox = useSearchBox({
|
|
24169
24323
|
queryHook: queryHook
|
|
24170
24324
|
}, {
|
|
@@ -24225,11 +24379,11 @@
|
|
|
24225
24379
|
return /*#__PURE__*/React__default.createElement(SearchBox, _extends$1({}, props, uiProps));
|
|
24226
24380
|
}
|
|
24227
24381
|
|
|
24228
|
-
var _excluded$
|
|
24382
|
+
var _excluded$T = ["classNames"];
|
|
24229
24383
|
function Snippet(_ref) {
|
|
24230
24384
|
var _ref$classNames = _ref.classNames,
|
|
24231
24385
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
24232
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24386
|
+
props = _objectWithoutProperties$c(_ref, _excluded$T);
|
|
24233
24387
|
return /*#__PURE__*/React__default.createElement(InternalHighlight, _extends$1({
|
|
24234
24388
|
classNames: {
|
|
24235
24389
|
root: cx('ais-Snippet', classNames.root),
|
|
@@ -24240,14 +24394,14 @@
|
|
|
24240
24394
|
}, props));
|
|
24241
24395
|
}
|
|
24242
24396
|
|
|
24243
|
-
var _excluded$
|
|
24397
|
+
var _excluded$U = ["hit", "attribute", "highlightedTagName", "nonHighlightedTagName", "separator"];
|
|
24244
24398
|
function Snippet$1(_ref) {
|
|
24245
24399
|
var hit = _ref.hit,
|
|
24246
24400
|
attribute = _ref.attribute,
|
|
24247
24401
|
highlightedTagName = _ref.highlightedTagName,
|
|
24248
24402
|
nonHighlightedTagName = _ref.nonHighlightedTagName,
|
|
24249
24403
|
separator = _ref.separator,
|
|
24250
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24404
|
+
props = _objectWithoutProperties$c(_ref, _excluded$U);
|
|
24251
24405
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
24252
24406
|
var properties = Array.isArray(property) ? property : [property];
|
|
24253
24407
|
var parts = properties.map(function (singleValue) {
|
|
@@ -24261,7 +24415,7 @@
|
|
|
24261
24415
|
}));
|
|
24262
24416
|
}
|
|
24263
24417
|
|
|
24264
|
-
var _excluded$
|
|
24418
|
+
var _excluded$V = ["items", "value", "onChange", "classNames"];
|
|
24265
24419
|
function SortBy(_ref) {
|
|
24266
24420
|
var items = _ref.items,
|
|
24267
24421
|
value = _ref.value,
|
|
@@ -24269,7 +24423,7 @@
|
|
|
24269
24423
|
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
24270
24424
|
_ref$classNames = _ref.classNames,
|
|
24271
24425
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
24272
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24426
|
+
props = _objectWithoutProperties$c(_ref, _excluded$V);
|
|
24273
24427
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
24274
24428
|
className: cx('ais-SortBy', classNames.root, props.className)
|
|
24275
24429
|
}), /*#__PURE__*/React__default.createElement("select", {
|
|
@@ -24288,11 +24442,11 @@
|
|
|
24288
24442
|
})));
|
|
24289
24443
|
}
|
|
24290
24444
|
|
|
24291
|
-
var _excluded$
|
|
24445
|
+
var _excluded$W = ["items", "transformItems"];
|
|
24292
24446
|
function SortBy$1(_ref) {
|
|
24293
24447
|
var items = _ref.items,
|
|
24294
24448
|
transformItems = _ref.transformItems,
|
|
24295
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24449
|
+
props = _objectWithoutProperties$c(_ref, _excluded$W);
|
|
24296
24450
|
var _useSortBy = useSortBy({
|
|
24297
24451
|
items: items,
|
|
24298
24452
|
transformItems: transformItems
|
|
@@ -24310,7 +24464,7 @@
|
|
|
24310
24464
|
return /*#__PURE__*/React__default.createElement(SortBy, _extends$1({}, props, uiProps));
|
|
24311
24465
|
}
|
|
24312
24466
|
|
|
24313
|
-
var _excluded$
|
|
24467
|
+
var _excluded$X = ["classNames", "nbHits", "processingTimeMS", "nbSortedHits", "areHitsSorted", "translations"];
|
|
24314
24468
|
function Stats(_ref) {
|
|
24315
24469
|
var _ref$classNames = _ref.classNames,
|
|
24316
24470
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
@@ -24319,7 +24473,7 @@
|
|
|
24319
24473
|
nbSortedHits = _ref.nbSortedHits,
|
|
24320
24474
|
areHitsSorted = _ref.areHitsSorted,
|
|
24321
24475
|
translations = _ref.translations,
|
|
24322
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24476
|
+
props = _objectWithoutProperties$c(_ref, _excluded$X);
|
|
24323
24477
|
var translationOptions = {
|
|
24324
24478
|
nbHits: nbHits,
|
|
24325
24479
|
processingTimeMS: processingTimeMS,
|
|
@@ -24333,10 +24487,10 @@
|
|
|
24333
24487
|
}, translations.rootElementText(translationOptions)));
|
|
24334
24488
|
}
|
|
24335
24489
|
|
|
24336
|
-
var _excluded$
|
|
24490
|
+
var _excluded$Y = ["translations"];
|
|
24337
24491
|
function Stats$1(_ref) {
|
|
24338
24492
|
var translations = _ref.translations,
|
|
24339
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24493
|
+
props = _objectWithoutProperties$c(_ref, _excluded$Y);
|
|
24340
24494
|
var _useStats = useStats(undefined, {
|
|
24341
24495
|
$$widgetType: 'ais.stats'
|
|
24342
24496
|
}),
|
|
@@ -24386,14 +24540,14 @@
|
|
|
24386
24540
|
return '';
|
|
24387
24541
|
}
|
|
24388
24542
|
|
|
24389
|
-
var _excluded$
|
|
24543
|
+
var _excluded$Z = ["classNames", "checked", "onChange", "label"];
|
|
24390
24544
|
function ToggleRefinement(_ref) {
|
|
24391
24545
|
var _ref$classNames = _ref.classNames,
|
|
24392
24546
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
24393
24547
|
checked = _ref.checked,
|
|
24394
24548
|
_onChange = _ref.onChange,
|
|
24395
24549
|
label = _ref.label,
|
|
24396
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24550
|
+
props = _objectWithoutProperties$c(_ref, _excluded$Z);
|
|
24397
24551
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
24398
24552
|
className: cx('ais-ToggleRefinement', classNames.root, props.className)
|
|
24399
24553
|
}), /*#__PURE__*/React__default.createElement("label", {
|
|
@@ -24410,12 +24564,12 @@
|
|
|
24410
24564
|
}, label)));
|
|
24411
24565
|
}
|
|
24412
24566
|
|
|
24413
|
-
var _excluded$
|
|
24567
|
+
var _excluded$_ = ["attribute", "on", "off"];
|
|
24414
24568
|
function ToggleRefinement$1(_ref) {
|
|
24415
24569
|
var attribute = _ref.attribute,
|
|
24416
24570
|
on = _ref.on,
|
|
24417
24571
|
off = _ref.off,
|
|
24418
|
-
props = _objectWithoutProperties$c(_ref, _excluded$
|
|
24572
|
+
props = _objectWithoutProperties$c(_ref, _excluded$_);
|
|
24419
24573
|
var _useToggleRefinement = useToggleRefinement({
|
|
24420
24574
|
attribute: attribute,
|
|
24421
24575
|
on: on,
|
|
@@ -24438,7 +24592,7 @@
|
|
|
24438
24592
|
}, props, uiProps));
|
|
24439
24593
|
}
|
|
24440
24594
|
|
|
24441
|
-
var _excluded
|
|
24595
|
+
var _excluded$$ = ["facetName", "facetValue", "limit", "threshold", "fallbackParameters", "queryParameters", "escapeHTML", "transformItems", "itemComponent", "headerComponent", "emptyComponent", "layoutComponent"];
|
|
24442
24596
|
var TrendingItemsUiComponent = createTrendingItemsComponent({
|
|
24443
24597
|
createElement: React.createElement,
|
|
24444
24598
|
Fragment: React.Fragment
|
|
@@ -24456,7 +24610,7 @@
|
|
|
24456
24610
|
headerComponent = _ref.headerComponent,
|
|
24457
24611
|
emptyComponent = _ref.emptyComponent,
|
|
24458
24612
|
layoutComponent = _ref.layoutComponent,
|
|
24459
|
-
props = _objectWithoutProperties$c(_ref, _excluded
|
|
24613
|
+
props = _objectWithoutProperties$c(_ref, _excluded$$);
|
|
24460
24614
|
var facetParameters = facetName && facetValue ? {
|
|
24461
24615
|
facetName: facetName,
|
|
24462
24616
|
facetValue: facetValue
|
|
@@ -24563,6 +24717,7 @@
|
|
|
24563
24717
|
exports.RecommendToolType = RecommendToolType;
|
|
24564
24718
|
exports.RefinementList = RefinementList$2;
|
|
24565
24719
|
exports.RelatedProducts = RelatedProducts;
|
|
24720
|
+
exports.ReverseHighlight = ReverseHighlight$1;
|
|
24566
24721
|
exports.SearchBox = SearchBox$1;
|
|
24567
24722
|
exports.SearchIndexToolType = SearchIndexToolType;
|
|
24568
24723
|
exports.Snippet = Snippet$1;
|