instantsearch.js 4.49.2 → 4.49.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -6
- package/cjs/components/Answers/Answers.js +5 -2
- package/cjs/components/Breadcrumb/Breadcrumb.js +1 -1
- package/cjs/components/ClearRefinements/ClearRefinements.js +1 -1
- package/cjs/components/CurrentRefinements/CurrentRefinements.js +3 -4
- package/cjs/components/GeoSearchControls/GeoSearchButton.js +0 -1
- package/cjs/components/GeoSearchControls/GeoSearchControls.js +3 -3
- package/cjs/components/GeoSearchControls/GeoSearchToggle.js +0 -1
- package/cjs/components/Highlight/Highlight.js +3 -2
- package/cjs/components/Hits/Hits.js +5 -2
- package/cjs/components/InfiniteHits/InfiniteHits.js +5 -2
- package/cjs/components/MenuSelect/MenuSelect.js +3 -3
- package/cjs/components/Pagination/Pagination.js +2 -3
- package/cjs/components/Panel/Panel.js +3 -3
- package/cjs/components/PoweredBy/PoweredBy.js +0 -1
- package/cjs/components/QueryRuleCustomData/QueryRuleCustomData.js +1 -2
- package/cjs/components/RangeInput/RangeInput.js +6 -4
- package/cjs/components/RefinementList/RefinementList.js +13 -10
- package/cjs/components/RefinementList/RefinementListItem.js +1 -1
- package/cjs/components/RelevantSort/RelevantSort.js +1 -2
- package/cjs/components/ReverseHighlight/ReverseHighlight.js +3 -2
- package/cjs/components/ReverseSnippet/ReverseSnippet.js +3 -2
- package/cjs/components/SearchBox/SearchBox.js +11 -9
- package/cjs/components/Selector/Selector.js +0 -1
- package/cjs/components/Slider/Pit.js +4 -1
- package/cjs/components/Slider/Rheostat.js +7 -3
- package/cjs/components/Slider/Slider.js +13 -9
- package/cjs/components/Snippet/Snippet.js +3 -2
- package/cjs/components/Stats/Stats.js +7 -3
- package/cjs/components/Template/Template.js +9 -7
- package/cjs/components/ToggleRefinement/ToggleRefinement.js +1 -1
- package/cjs/components/VoiceSearch/VoiceSearch.js +1 -2
- package/cjs/connectors/answers/connectAnswers.js +17 -12
- package/cjs/connectors/autocomplete/connectAutocomplete.js +13 -10
- package/cjs/connectors/breadcrumb/connectBreadcrumb.js +11 -8
- package/cjs/connectors/clear-refinements/connectClearRefinements.js +14 -11
- package/cjs/connectors/configure/connectConfigure.js +12 -9
- package/cjs/connectors/configure-related-items/connectConfigureRelatedItems.js +10 -7
- package/cjs/connectors/current-refinements/connectCurrentRefinements.js +11 -8
- package/cjs/connectors/dynamic-widgets/connectDynamicWidgets.js +10 -8
- package/cjs/connectors/geo-search/connectGeoSearch.js +15 -12
- package/cjs/connectors/hierarchical-menu/connectHierarchicalMenu.js +14 -10
- package/cjs/connectors/hits/connectHits.js +15 -12
- package/cjs/connectors/hits/connectHitsWithInsights.js +3 -3
- package/cjs/connectors/hits-per-page/connectHitsPerPage.js +11 -8
- package/cjs/connectors/index.js +32 -32
- package/cjs/connectors/infinite-hits/connectInfiniteHits.js +19 -15
- package/cjs/connectors/infinite-hits/connectInfiniteHitsWithInsights.js +3 -3
- package/cjs/connectors/menu/connectMenu.js +13 -9
- package/cjs/connectors/numeric-menu/connectNumericMenu.js +14 -9
- package/cjs/connectors/pagination/Paginator.js +8 -5
- package/cjs/connectors/pagination/connectPagination.js +9 -6
- package/cjs/connectors/powered-by/connectPoweredBy.js +9 -6
- package/cjs/connectors/query-rules/connectQueryRules.js +12 -9
- package/cjs/connectors/range/connectRange.js +32 -29
- package/cjs/connectors/rating-menu/connectRatingMenu.js +12 -9
- package/cjs/connectors/refinement-list/connectRefinementList.js +16 -11
- package/cjs/connectors/relevant-sort/connectRelevantSort.js +7 -4
- package/cjs/connectors/search-box/connectSearchBox.js +8 -5
- package/cjs/connectors/sort-by/connectSortBy.js +10 -7
- package/cjs/connectors/stats/connectStats.js +8 -5
- package/cjs/connectors/toggle-refinement/connectToggleRefinement.js +15 -12
- package/cjs/connectors/voice-search/connectVoiceSearch.js +10 -7
- package/cjs/helpers/components/Highlight.js +8 -7
- package/cjs/helpers/components/ReverseHighlight.js +14 -9
- package/cjs/helpers/components/ReverseSnippet.js +14 -9
- package/cjs/helpers/components/Snippet.js +8 -7
- package/cjs/helpers/components/index.js +4 -4
- package/cjs/helpers/get-insights-anonymous-user-token.js +2 -2
- package/cjs/helpers/highlight.js +8 -6
- package/cjs/helpers/index.js +6 -6
- package/cjs/helpers/insights.js +4 -4
- package/cjs/helpers/reverseHighlight.js +9 -7
- package/cjs/helpers/reverseSnippet.js +9 -7
- package/cjs/helpers/snippet.js +8 -6
- package/cjs/index.js +9 -9
- package/cjs/lib/InstantSearch.js +31 -29
- package/cjs/lib/createHelpers.js +11 -8
- package/cjs/lib/infiniteHitsCache/index.js +1 -1
- package/cjs/lib/infiniteHitsCache/sessionStorage.js +6 -5
- package/cjs/lib/insights/client.js +9 -6
- package/cjs/lib/insights/index.js +2 -2
- package/cjs/lib/insights/listener.js +3 -4
- package/cjs/lib/routers/history.js +16 -19
- package/cjs/lib/routers/index.js +1 -1
- package/cjs/lib/stateMappings/index.js +2 -2
- package/cjs/lib/stateMappings/simple.js +6 -2
- package/cjs/lib/stateMappings/singleIndex.js +6 -2
- package/cjs/lib/templating/index.js +2 -2
- package/cjs/lib/templating/prepareTemplateProps.js +6 -3
- package/cjs/lib/templating/renderTemplate.js +8 -6
- package/cjs/lib/utils/checkIndexUiState.js +5 -5
- package/cjs/lib/utils/checkRendering.js +1 -1
- package/cjs/lib/utils/concatHighlightedParts.js +1 -1
- package/cjs/lib/utils/createSendEventForFacet.js +1 -1
- package/cjs/lib/utils/createSendEventForHits.js +1 -1
- package/cjs/lib/utils/detect-insights-client.js +1 -1
- package/cjs/lib/utils/escape-highlight.js +8 -4
- package/cjs/lib/utils/geo-search.js +14 -10
- package/cjs/lib/utils/getContainerNode.js +1 -1
- package/cjs/lib/utils/getHighlightFromSiblings.js +1 -1
- package/cjs/lib/utils/getHighlightedParts.js +1 -1
- package/cjs/lib/utils/getRefinements.js +17 -19
- package/cjs/lib/utils/hits-absolute-position.js +4 -1
- package/cjs/lib/utils/hits-query-id.js +4 -1
- package/cjs/lib/utils/index.js +46 -46
- package/cjs/lib/utils/isEqual.js +3 -0
- package/cjs/lib/utils/logger.js +3 -3
- package/cjs/lib/utils/mergeSearchParameters.js +8 -4
- package/cjs/lib/utils/range.js +1 -1
- package/cjs/lib/utils/reverseHighlightedParts.js +5 -2
- package/cjs/lib/utils/setIndexHelperState.js +2 -2
- package/cjs/lib/version.js +1 -1
- package/cjs/lib/voiceSearchHelper/index.js +4 -1
- package/cjs/middlewares/createInsightsMiddleware.js +18 -13
- package/cjs/middlewares/createMetadataMiddleware.js +3 -3
- package/cjs/middlewares/createRouterMiddleware.js +8 -5
- package/cjs/middlewares/index.js +3 -3
- package/cjs/types/index.js +14 -14
- package/cjs/widgets/analytics/analytics.js +13 -4
- package/cjs/widgets/answers/answers.js +13 -10
- package/cjs/widgets/breadcrumb/breadcrumb.js +13 -10
- package/cjs/widgets/clear-refinements/clear-refinements.js +13 -10
- package/cjs/widgets/configure/configure.js +7 -4
- package/cjs/widgets/configure-related-items/configure-related-items.js +7 -4
- package/cjs/widgets/current-refinements/current-refinements.js +10 -7
- package/cjs/widgets/dynamic-widgets/dynamic-widgets.js +12 -8
- package/cjs/widgets/geo-search/GeoSearchRenderer.js +12 -7
- package/cjs/widgets/geo-search/createHTMLMarker.js +4 -2
- package/cjs/widgets/geo-search/geo-search.js +20 -14
- package/cjs/widgets/hierarchical-menu/defaultTemplates.js +1 -2
- package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +13 -10
- package/cjs/widgets/hits/hits.js +16 -13
- package/cjs/widgets/hits-per-page/hits-per-page.js +11 -8
- package/cjs/widgets/index/index.js +24 -20
- package/cjs/widgets/index.js +37 -37
- package/cjs/widgets/infinite-hits/infinite-hits.js +16 -13
- package/cjs/widgets/menu/defaultTemplates.js +1 -2
- package/cjs/widgets/menu/menu.js +13 -10
- package/cjs/widgets/menu-select/defaultTemplates.js +1 -1
- package/cjs/widgets/menu-select/menu-select.js +13 -10
- package/cjs/widgets/numeric-menu/defaultTemplates.js +0 -1
- package/cjs/widgets/numeric-menu/numeric-menu.js +13 -10
- package/cjs/widgets/pagination/pagination.js +11 -8
- package/cjs/widgets/panel/panel.js +11 -8
- package/cjs/widgets/places/places.js +8 -3
- package/cjs/widgets/powered-by/powered-by.js +10 -7
- package/cjs/widgets/query-rule-context/query-rule-context.js +8 -5
- package/cjs/widgets/query-rule-custom-data/query-rule-custom-data.js +10 -7
- package/cjs/widgets/range-input/range-input.js +14 -11
- package/cjs/widgets/range-slider/range-slider.js +12 -9
- package/cjs/widgets/rating-menu/defaultTemplates.js +1 -2
- package/cjs/widgets/rating-menu/rating-menu.js +13 -10
- package/cjs/widgets/refinement-list/defaultTemplates.js +1 -2
- package/cjs/widgets/refinement-list/refinement-list.js +15 -12
- package/cjs/widgets/relevant-sort/relevant-sort.js +11 -8
- package/cjs/widgets/search-box/search-box.js +11 -8
- package/cjs/widgets/sort-by/sort-by.js +10 -7
- package/cjs/widgets/stats/defaultTemplates.js +1 -1
- package/cjs/widgets/stats/stats.js +13 -10
- package/cjs/widgets/toggle-refinement/toggle-refinement.js +13 -10
- package/cjs/widgets/voice-search/voice-search.js +11 -8
- package/dist/instantsearch.development.d.ts +1 -0
- package/dist/instantsearch.development.js +184 -120
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +1 -0
- package/dist/instantsearch.production.min.d.ts +1 -0
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Answers/Answers.js +4 -2
- package/es/components/Breadcrumb/Breadcrumb.js +0 -1
- package/es/components/ClearRefinements/ClearRefinements.js +0 -1
- package/es/components/CurrentRefinements/CurrentRefinements.js +0 -2
- package/es/components/GeoSearchControls/GeoSearchButton.js +0 -2
- package/es/components/GeoSearchControls/GeoSearchControls.js +0 -1
- package/es/components/GeoSearchControls/GeoSearchToggle.js +0 -2
- package/es/components/Highlight/Highlight.js +2 -1
- package/es/components/Hits/Hits.js +4 -2
- package/es/components/InfiniteHits/InfiniteHits.js +4 -2
- package/es/components/MenuSelect/MenuSelect.js +0 -1
- package/es/components/Pagination/Pagination.js +0 -2
- package/es/components/Panel/Panel.js +2 -3
- package/es/components/PoweredBy/PoweredBy.js +0 -2
- package/es/components/QueryRuleCustomData/QueryRuleCustomData.js +0 -2
- package/es/components/RangeInput/RangeInput.js +4 -3
- package/es/components/RefinementList/RefinementList.js +6 -4
- package/es/components/RefinementList/RefinementListItem.js +0 -1
- package/es/components/RelevantSort/RelevantSort.js +0 -2
- package/es/components/ReverseHighlight/ReverseHighlight.js +2 -1
- package/es/components/ReverseSnippet/ReverseSnippet.js +2 -1
- package/es/components/SearchBox/SearchBox.js +4 -3
- package/es/components/Selector/Selector.js +0 -2
- package/es/components/Slider/Pit.js +4 -2
- package/es/components/Slider/Rheostat.js +8 -6
- package/es/components/Slider/Slider.js +8 -5
- package/es/components/Snippet/Snippet.js +2 -1
- package/es/components/Stats/Stats.js +6 -3
- package/es/components/Template/Template.js +4 -3
- package/es/components/ToggleRefinement/ToggleRefinement.js +0 -1
- package/es/components/VoiceSearch/VoiceSearch.js +0 -2
- package/es/connectors/answers/connectAnswers.js +7 -2
- package/es/connectors/autocomplete/connectAutocomplete.js +4 -1
- package/es/connectors/breadcrumb/connectBreadcrumb.js +6 -3
- package/es/connectors/clear-refinements/connectClearRefinements.js +5 -2
- package/es/connectors/configure/connectConfigure.js +4 -1
- package/es/connectors/configure-related-items/connectConfigureRelatedItems.js +5 -2
- package/es/connectors/current-refinements/connectCurrentRefinements.js +5 -2
- package/es/connectors/dynamic-widgets/connectDynamicWidgets.js +3 -1
- package/es/connectors/geo-search/connectGeoSearch.js +4 -1
- package/es/connectors/hierarchical-menu/connectHierarchicalMenu.js +8 -4
- package/es/connectors/hits/connectHits.js +4 -1
- package/es/connectors/hits-per-page/connectHitsPerPage.js +5 -2
- package/es/connectors/infinite-hits/connectInfiniteHits.js +7 -3
- package/es/connectors/menu/connectMenu.js +8 -4
- package/es/connectors/numeric-menu/connectNumericMenu.js +8 -3
- package/es/connectors/pagination/Paginator.js +5 -2
- package/es/connectors/pagination/connectPagination.js +4 -1
- package/es/connectors/powered-by/connectPoweredBy.js +4 -1
- package/es/connectors/query-rules/connectQueryRules.js +5 -2
- package/es/connectors/range/connectRange.js +6 -3
- package/es/connectors/rating-menu/connectRatingMenu.js +6 -3
- package/es/connectors/refinement-list/connectRefinementList.js +8 -3
- package/es/connectors/relevant-sort/connectRelevantSort.js +4 -1
- package/es/connectors/search-box/connectSearchBox.js +4 -1
- package/es/connectors/sort-by/connectSortBy.js +4 -1
- package/es/connectors/stats/connectStats.js +4 -1
- package/es/connectors/toggle-refinement/connectToggleRefinement.js +4 -1
- package/es/connectors/toggle-refinement/types.js +1 -0
- package/es/connectors/voice-search/connectVoiceSearch.js +4 -1
- package/es/helpers/components/Highlight.js +2 -1
- package/es/helpers/components/ReverseHighlight.js +8 -3
- package/es/helpers/components/ReverseSnippet.js +8 -3
- package/es/helpers/components/Snippet.js +2 -1
- package/es/helpers/highlight.js +3 -1
- package/es/helpers/reverseHighlight.js +3 -1
- package/es/helpers/reverseSnippet.js +3 -1
- package/es/helpers/snippet.js +3 -1
- package/es/lib/InstantSearch.js +4 -2
- package/es/lib/createHelpers.js +4 -1
- package/es/lib/infiniteHitsCache/sessionStorage.js +2 -1
- package/es/lib/insights/client.js +4 -1
- package/es/lib/insights/listener.js +0 -2
- package/es/lib/routers/history.js +9 -12
- package/es/lib/stateMappings/simple.js +6 -2
- package/es/lib/stateMappings/singleIndex.js +6 -2
- package/es/lib/templating/prepareTemplateProps.js +5 -2
- package/es/lib/templating/renderTemplate.js +3 -1
- package/es/lib/utils/checkIndexUiState.js +2 -2
- package/es/lib/utils/escape-highlight.js +6 -2
- package/es/lib/utils/geo-search.js +14 -10
- package/es/lib/utils/getRefinements.js +15 -17
- package/es/lib/utils/hits-absolute-position.js +4 -1
- package/es/lib/utils/hits-query-id.js +4 -1
- package/es/lib/utils/isEqual.js +3 -0
- package/es/lib/utils/logger.js +2 -2
- package/es/lib/utils/mergeSearchParameters.js +6 -2
- package/es/lib/utils/range.js +1 -1
- package/es/lib/utils/reverseHighlightedParts.js +4 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/lib/voiceSearchHelper/index.js +4 -1
- package/es/lib/voiceSearchHelper/types.js +1 -0
- package/es/middlewares/createInsightsMiddleware.js +9 -4
- package/es/middlewares/createRouterMiddleware.js +4 -1
- package/es/types/algoliasearch.js +1 -0
- package/es/types/component.js +1 -0
- package/es/types/connector.js +1 -0
- package/es/types/insights.js +1 -0
- package/es/types/instantsearch.js +1 -0
- package/es/types/middleware.js +1 -0
- package/es/types/render-state.js +1 -0
- package/es/types/results.js +1 -0
- package/es/types/router.js +1 -0
- package/es/types/templates.js +1 -0
- package/es/types/ui-state.js +1 -0
- package/es/types/utils.js +1 -0
- package/es/types/widget-factory.js +1 -0
- package/es/types/widget.js +1 -0
- package/es/widgets/analytics/analytics.js +10 -1
- package/es/widgets/answers/answers.js +4 -2
- package/es/widgets/breadcrumb/breadcrumb.js +4 -2
- package/es/widgets/clear-refinements/clear-refinements.js +4 -2
- package/es/widgets/configure/configure.js +4 -1
- package/es/widgets/configure-related-items/configure-related-items.js +4 -1
- package/es/widgets/current-refinements/current-refinements.js +4 -2
- package/es/widgets/dynamic-widgets/dynamic-widgets.js +6 -2
- package/es/widgets/geo-search/GeoSearchRenderer.d.js +1 -0
- package/es/widgets/geo-search/GeoSearchRenderer.js +9 -5
- package/es/widgets/geo-search/createHTMLMarker.d.ts +1 -0
- package/es/widgets/geo-search/createHTMLMarker.js +4 -2
- package/es/widgets/geo-search/defaultTemplates.js +0 -2
- package/es/widgets/geo-search/geo-search.d.ts +1 -0
- package/es/widgets/geo-search/geo-search.js +10 -4
- package/es/widgets/hierarchical-menu/defaultTemplates.js +0 -1
- package/es/widgets/hierarchical-menu/hierarchical-menu.js +4 -2
- package/es/widgets/hits/hits.js +4 -2
- package/es/widgets/hits-per-page/hits-per-page.js +4 -2
- package/es/widgets/index/index.js +7 -3
- package/es/widgets/infinite-hits/infinite-hits.js +4 -2
- package/es/widgets/menu/defaultTemplates.js +0 -1
- package/es/widgets/menu/menu.js +4 -2
- package/es/widgets/menu-select/menu-select.js +4 -2
- package/es/widgets/numeric-menu/defaultTemplates.js +0 -1
- package/es/widgets/numeric-menu/numeric-menu.js +4 -2
- package/es/widgets/pagination/pagination.js +4 -2
- package/es/widgets/panel/panel.js +4 -2
- package/es/widgets/places/places.js +8 -3
- package/es/widgets/powered-by/powered-by.js +4 -2
- package/es/widgets/query-rule-context/query-rule-context.js +4 -1
- package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +4 -2
- package/es/widgets/range-input/range-input.js +6 -4
- package/es/widgets/range-slider/range-slider.js +6 -4
- package/es/widgets/rating-menu/defaultTemplates.js +0 -1
- package/es/widgets/rating-menu/rating-menu.js +4 -2
- package/es/widgets/refinement-list/defaultTemplates.js +0 -1
- package/es/widgets/refinement-list/refinement-list.js +4 -2
- package/es/widgets/relevant-sort/relevant-sort.js +4 -2
- package/es/widgets/search-box/defaultTemplates.js +0 -1
- package/es/widgets/search-box/search-box.js +4 -2
- package/es/widgets/sort-by/sort-by.js +4 -2
- package/es/widgets/stats/stats.js +4 -2
- package/es/widgets/toggle-refinement/toggle-refinement.js +4 -2
- package/es/widgets/voice-search/defaultTemplates.js +0 -1
- package/es/widgets/voice-search/voice-search.js +4 -2
- package/package.json +6 -6
- package/scripts/transforms/__tests__/addWidget-to-addWidgets.test.js +1 -0
|
@@ -1,10 +1,37 @@
|
|
|
1
|
-
/*! InstantSearch.js 4.49.
|
|
1
|
+
/*! InstantSearch.js 4.49.3 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
5
5
|
(global = global || self, global.instantsearch = factory());
|
|
6
6
|
}(this, (function () { 'use strict';
|
|
7
7
|
|
|
8
|
+
function _iterableToArrayLimit(arr, i) {
|
|
9
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
10
|
+
if (null != _i) {
|
|
11
|
+
var _s,
|
|
12
|
+
_e,
|
|
13
|
+
_x,
|
|
14
|
+
_r,
|
|
15
|
+
_arr = [],
|
|
16
|
+
_n = !0,
|
|
17
|
+
_d = !1;
|
|
18
|
+
try {
|
|
19
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
20
|
+
if (Object(_i) !== _i) return;
|
|
21
|
+
_n = !1;
|
|
22
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
23
|
+
} catch (err) {
|
|
24
|
+
_d = !0, _e = err;
|
|
25
|
+
} finally {
|
|
26
|
+
try {
|
|
27
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
28
|
+
} finally {
|
|
29
|
+
if (_d) throw _e;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return _arr;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
8
35
|
function ownKeys(object, enumerableOnly) {
|
|
9
36
|
var keys = Object.keys(object);
|
|
10
37
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46,7 +73,7 @@
|
|
|
46
73
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
47
74
|
descriptor.configurable = true;
|
|
48
75
|
if ("value" in descriptor) descriptor.writable = true;
|
|
49
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
76
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
50
77
|
}
|
|
51
78
|
}
|
|
52
79
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -58,6 +85,7 @@
|
|
|
58
85
|
return Constructor;
|
|
59
86
|
}
|
|
60
87
|
function _defineProperty(obj, key, value) {
|
|
88
|
+
key = _toPropertyKey(key);
|
|
61
89
|
if (key in obj) {
|
|
62
90
|
Object.defineProperty(obj, key, {
|
|
63
91
|
value: value,
|
|
@@ -124,6 +152,9 @@
|
|
|
124
152
|
return false;
|
|
125
153
|
}
|
|
126
154
|
}
|
|
155
|
+
function _objectDestructuringEmpty(obj) {
|
|
156
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
157
|
+
}
|
|
127
158
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
128
159
|
if (source == null) return {};
|
|
129
160
|
var target = {};
|
|
@@ -194,30 +225,6 @@
|
|
|
194
225
|
function _iterableToArray(iter) {
|
|
195
226
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
196
227
|
}
|
|
197
|
-
function _iterableToArrayLimit(arr, i) {
|
|
198
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
199
|
-
if (_i == null) return;
|
|
200
|
-
var _arr = [];
|
|
201
|
-
var _n = true;
|
|
202
|
-
var _d = false;
|
|
203
|
-
var _s, _e;
|
|
204
|
-
try {
|
|
205
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
206
|
-
_arr.push(_s.value);
|
|
207
|
-
if (i && _arr.length === i) break;
|
|
208
|
-
}
|
|
209
|
-
} catch (err) {
|
|
210
|
-
_d = true;
|
|
211
|
-
_e = err;
|
|
212
|
-
} finally {
|
|
213
|
-
try {
|
|
214
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
215
|
-
} finally {
|
|
216
|
-
if (_d) throw _e;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return _arr;
|
|
220
|
-
}
|
|
221
228
|
function _unsupportedIterableToArray(o, minLen) {
|
|
222
229
|
if (!o) return;
|
|
223
230
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -288,6 +295,20 @@
|
|
|
288
295
|
}
|
|
289
296
|
};
|
|
290
297
|
}
|
|
298
|
+
function _toPrimitive(input, hint) {
|
|
299
|
+
if (typeof input !== "object" || input === null) return input;
|
|
300
|
+
var prim = input[Symbol.toPrimitive];
|
|
301
|
+
if (prim !== undefined) {
|
|
302
|
+
var res = prim.call(input, hint || "default");
|
|
303
|
+
if (typeof res !== "object") return res;
|
|
304
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
305
|
+
}
|
|
306
|
+
return (hint === "string" ? String : Number)(input);
|
|
307
|
+
}
|
|
308
|
+
function _toPropertyKey(arg) {
|
|
309
|
+
var key = _toPrimitive(arg, "string");
|
|
310
|
+
return typeof key === "symbol" ? key : String(key);
|
|
311
|
+
}
|
|
291
312
|
|
|
292
313
|
function clone(value) {
|
|
293
314
|
if (typeof value === 'object' && value !== null) {
|
|
@@ -5801,7 +5822,7 @@
|
|
|
5801
5822
|
return function () {
|
|
5802
5823
|
if (!hasAlreadyPrinted) {
|
|
5803
5824
|
hasAlreadyPrinted = true;
|
|
5804
|
-
|
|
5825
|
+
warn(message) ;
|
|
5805
5826
|
}
|
|
5806
5827
|
return fn.apply(void 0, arguments);
|
|
5807
5828
|
};
|
|
@@ -5813,7 +5834,7 @@
|
|
|
5813
5834
|
var hasAlreadyPrinted = _warning.cache[message];
|
|
5814
5835
|
if (!hasAlreadyPrinted) {
|
|
5815
5836
|
_warning.cache[message] = true;
|
|
5816
|
-
|
|
5837
|
+
warn(message) ;
|
|
5817
5838
|
}
|
|
5818
5839
|
};
|
|
5819
5840
|
_warning.cache = {};
|
|
@@ -6119,7 +6140,7 @@
|
|
|
6119
6140
|
// We don't override the value on hit because it will mutate the raw results
|
|
6120
6141
|
// instead we make a shallow copy and we assign the escaped values on it.
|
|
6121
6142
|
hits = hits.map(function (_ref) {
|
|
6122
|
-
var hit = _extends({}, _ref);
|
|
6143
|
+
var hit = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
6123
6144
|
if (hit._highlightResult) {
|
|
6124
6145
|
hit._highlightResult = recursiveEscape(hit._highlightResult);
|
|
6125
6146
|
}
|
|
@@ -6542,13 +6563,15 @@
|
|
|
6542
6563
|
}
|
|
6543
6564
|
function insideBoundingBoxArrayToBoundingBox(value) {
|
|
6544
6565
|
var _value = _slicedToArray(value, 1),
|
|
6545
|
-
_value$ = _value[0]
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
neLat = _value$
|
|
6549
|
-
neLng = _value$
|
|
6550
|
-
swLat = _value$
|
|
6551
|
-
swLng = _value$
|
|
6566
|
+
_value$ = _value[0],
|
|
6567
|
+
_value$2 = _value$ === void 0 ? [undefined, undefined, undefined, undefined] : _value$,
|
|
6568
|
+
_value$3 = _slicedToArray(_value$2, 4),
|
|
6569
|
+
neLat = _value$3[0],
|
|
6570
|
+
neLng = _value$3[1],
|
|
6571
|
+
swLat = _value$3[2],
|
|
6572
|
+
swLng = _value$3[3];
|
|
6573
|
+
|
|
6574
|
+
// Since the value provided is the one send with the request, the API should
|
|
6552
6575
|
// throw an error due to the wrong format. So throw an error should be safe.
|
|
6553
6576
|
if (!neLat || !neLng || !swLat || !swLng) {
|
|
6554
6577
|
throw new Error("Invalid value for \"insideBoundingBox\" parameter: [".concat(value, "]"));
|
|
@@ -6570,7 +6593,9 @@
|
|
|
6570
6593
|
neLat = _value$split$map2[0],
|
|
6571
6594
|
neLng = _value$split$map2[1],
|
|
6572
6595
|
swLat = _value$split$map2[2],
|
|
6573
|
-
swLng = _value$split$map2[3];
|
|
6596
|
+
swLng = _value$split$map2[3];
|
|
6597
|
+
|
|
6598
|
+
// Since the value provided is the one send with the request, the API should
|
|
6574
6599
|
// throw an error due to the wrong format. So throw an error should be safe.
|
|
6575
6600
|
if (!neLat || !neLng || !swLat || !swLng) {
|
|
6576
6601
|
throw new Error("Invalid value for \"insideBoundingBox\" parameter: \"".concat(value, "\""));
|
|
@@ -6694,24 +6719,22 @@
|
|
|
6694
6719
|
});
|
|
6695
6720
|
var count;
|
|
6696
6721
|
if (type === 'hierarchical') {
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
return
|
|
6702
|
-
return facetData[refinementKey];
|
|
6703
|
-
};
|
|
6722
|
+
var facetDeclaration = state.getHierarchicalFacetByName(attribute);
|
|
6723
|
+
var nameParts = name.split(facetDeclaration.separator);
|
|
6724
|
+
var getFacetRefinement = function getFacetRefinement(facetData) {
|
|
6725
|
+
return function (refinementKey) {
|
|
6726
|
+
return facetData[refinementKey];
|
|
6704
6727
|
};
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
};
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6728
|
+
};
|
|
6729
|
+
var _loop = function _loop(i) {
|
|
6730
|
+
facet = facet && facet.data && find$1(Object.keys(facet.data).map(getFacetRefinement(facet.data)), function (refinement) {
|
|
6731
|
+
return refinement.name === nameParts[i];
|
|
6732
|
+
});
|
|
6733
|
+
};
|
|
6734
|
+
for (var i = 0; facet !== undefined && i < nameParts.length; ++i) {
|
|
6735
|
+
_loop(i);
|
|
6736
|
+
}
|
|
6737
|
+
count = facet && facet.count;
|
|
6715
6738
|
} else {
|
|
6716
6739
|
count = facet && facet.data && facet.data[res.name];
|
|
6717
6740
|
}
|
|
@@ -6856,6 +6879,9 @@
|
|
|
6856
6879
|
if (Object.keys(first).length !== Object.keys(second).length) {
|
|
6857
6880
|
return false;
|
|
6858
6881
|
}
|
|
6882
|
+
|
|
6883
|
+
// @TODO avoid for..of because of the large polyfill
|
|
6884
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
6859
6885
|
for (var _i = 0, _Object$keys = Object.keys(first); _i < _Object$keys.length; _i++) {
|
|
6860
6886
|
var key = _Object$keys[_i];
|
|
6861
6887
|
if (!(key in second)) {
|
|
@@ -6887,6 +6913,7 @@
|
|
|
6887
6913
|
});
|
|
6888
6914
|
}
|
|
6889
6915
|
|
|
6916
|
+
var _excluded = ["facets", "disjunctiveFacets", "facetsRefinements", "facetsExcludes", "disjunctiveFacetsRefinements", "numericRefinements", "tagRefinements", "hierarchicalFacets", "hierarchicalFacetsRefinements", "ruleContexts"];
|
|
6890
6917
|
var mergeWithRest = function mergeWithRest(left, right) {
|
|
6891
6918
|
var facets = right.facets,
|
|
6892
6919
|
disjunctiveFacets = right.disjunctiveFacets,
|
|
@@ -6898,7 +6925,7 @@
|
|
|
6898
6925
|
hierarchicalFacets = right.hierarchicalFacets,
|
|
6899
6926
|
hierarchicalFacetsRefinements = right.hierarchicalFacetsRefinements,
|
|
6900
6927
|
ruleContexts = right.ruleContexts,
|
|
6901
|
-
rest = _objectWithoutProperties(right,
|
|
6928
|
+
rest = _objectWithoutProperties(right, _excluded);
|
|
6902
6929
|
return left.setQueryParameters(rest);
|
|
6903
6930
|
};
|
|
6904
6931
|
|
|
@@ -7101,6 +7128,7 @@
|
|
|
7101
7128
|
return Array.isArray(value) ? value : [value];
|
|
7102
7129
|
}
|
|
7103
7130
|
|
|
7131
|
+
var _excluded$1 = ["initialSearchParameters"];
|
|
7104
7132
|
var withUsage = createDocumentationMessageGenerator({
|
|
7105
7133
|
name: 'index-widget'
|
|
7106
7134
|
});
|
|
@@ -7140,7 +7168,7 @@
|
|
|
7140
7168
|
}
|
|
7141
7169
|
function getLocalWidgetsSearchParameters(widgets, widgetSearchParametersOptions) {
|
|
7142
7170
|
var initialSearchParameters = widgetSearchParametersOptions.initialSearchParameters,
|
|
7143
|
-
rest = _objectWithoutProperties(widgetSearchParametersOptions,
|
|
7171
|
+
rest = _objectWithoutProperties(widgetSearchParametersOptions, _excluded$1);
|
|
7144
7172
|
return widgets.filter(function (widget) {
|
|
7145
7173
|
return !isIndexWidget(widget);
|
|
7146
7174
|
}).reduce(function (state, widget) {
|
|
@@ -7542,7 +7570,7 @@
|
|
|
7542
7570
|
instantSearchInstance.renderState = _objectSpread2(_objectSpread2({}, instantSearchInstance.renderState), {}, _defineProperty({}, parentIndexName, _objectSpread2(_objectSpread2({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
|
|
7543
7571
|
}
|
|
7544
7572
|
|
|
7545
|
-
var version$1 = '4.49.
|
|
7573
|
+
var version$1 = '4.49.3';
|
|
7546
7574
|
|
|
7547
7575
|
var NAMESPACE = 'ais';
|
|
7548
7576
|
var component = function component(componentName) {
|
|
@@ -7570,7 +7598,9 @@
|
|
|
7570
7598
|
_warning(highlightAttributeResult, "Could not enable highlight for \"".concat(attribute, "\", will display an empty string.\nPlease check whether this attribute exists and is either searchable or specified in `attributesToHighlight`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
7571
7599
|
var _ref2 = highlightAttributeResult || {},
|
|
7572
7600
|
_ref2$value = _ref2.value,
|
|
7573
|
-
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7601
|
+
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7602
|
+
|
|
7603
|
+
// cx is not used, since it would be bundled as a dependency for Vue & Angular
|
|
7574
7604
|
var className = suit({
|
|
7575
7605
|
descendantName: 'highlighted'
|
|
7576
7606
|
}) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
|
|
@@ -7591,7 +7621,9 @@
|
|
|
7591
7621
|
_warning(highlightAttributeResult, "Could not enable reverse highlight for \"".concat(attribute, "\", will display an empty string.\nPlease check whether this attribute exists and is either searchable or specified in `attributesToHighlight`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
7592
7622
|
var _ref2 = highlightAttributeResult || {},
|
|
7593
7623
|
_ref2$value = _ref2.value,
|
|
7594
|
-
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7624
|
+
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7625
|
+
|
|
7626
|
+
// cx is not used, since it would be bundled as a dependency for Vue & Angular
|
|
7595
7627
|
var className = suit$1({
|
|
7596
7628
|
descendantName: 'highlighted'
|
|
7597
7629
|
}) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
|
|
@@ -7613,7 +7645,9 @@
|
|
|
7613
7645
|
_warning(snippetAttributeResult, "Could not enable snippet for \"".concat(attribute, "\", will display an empty string.\nPlease check whether this attribute exists and is specified in `attributesToSnippet`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
7614
7646
|
var _ref2 = snippetAttributeResult || {},
|
|
7615
7647
|
_ref2$value = _ref2.value,
|
|
7616
|
-
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7648
|
+
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7649
|
+
|
|
7650
|
+
// cx is not used, since it would be bundled as a dependency for Vue & Angular
|
|
7617
7651
|
var className = suit$2({
|
|
7618
7652
|
descendantName: 'highlighted'
|
|
7619
7653
|
}) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
|
|
@@ -7634,7 +7668,9 @@
|
|
|
7634
7668
|
_warning(snippetAttributeResult, "Could not enable reverse snippet for \"".concat(attribute, "\", will display an empty string.\nPlease check whether this attribute exists and is specified in `attributesToSnippet`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
7635
7669
|
var _ref2 = snippetAttributeResult || {},
|
|
7636
7670
|
_ref2$value = _ref2.value,
|
|
7637
|
-
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7671
|
+
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7672
|
+
|
|
7673
|
+
// cx is not used, since it would be bundled as a dependency for Vue & Angular
|
|
7638
7674
|
var className = suit$3({
|
|
7639
7675
|
descendantName: 'highlighted'
|
|
7640
7676
|
}) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
|
|
@@ -7774,9 +7810,10 @@
|
|
|
7774
7810
|
};
|
|
7775
7811
|
}
|
|
7776
7812
|
|
|
7813
|
+
var _excluded$2 = ["configure"];
|
|
7777
7814
|
function getIndexStateWithoutConfigure(uiState) {
|
|
7778
7815
|
var configure = uiState.configure,
|
|
7779
|
-
trackedUiState = _objectWithoutProperties(uiState,
|
|
7816
|
+
trackedUiState = _objectWithoutProperties(uiState, _excluded$2);
|
|
7780
7817
|
return trackedUiState;
|
|
7781
7818
|
}
|
|
7782
7819
|
|
|
@@ -8694,22 +8731,16 @@
|
|
|
8694
8731
|
key: "onUpdate",
|
|
8695
8732
|
value: function onUpdate(callback) {
|
|
8696
8733
|
var _this3 = this;
|
|
8697
|
-
this._onPopState = function (
|
|
8734
|
+
this._onPopState = function () {
|
|
8698
8735
|
if (_this3.writeTimer) {
|
|
8699
8736
|
clearTimeout(_this3.writeTimer);
|
|
8700
8737
|
_this3.writeTimer = undefined;
|
|
8701
8738
|
}
|
|
8702
8739
|
_this3.inPopState = true;
|
|
8703
|
-
var routeState = event.state;
|
|
8704
8740
|
|
|
8705
|
-
//
|
|
8706
|
-
//
|
|
8707
|
-
|
|
8708
|
-
if (!routeState) {
|
|
8709
|
-
callback(_this3.read());
|
|
8710
|
-
} else {
|
|
8711
|
-
callback(routeState);
|
|
8712
|
-
}
|
|
8741
|
+
// We always read the state from the URL because the state of the history
|
|
8742
|
+
// can be incorect in some cases (e.g. using React Router).
|
|
8743
|
+
callback(_this3.read());
|
|
8713
8744
|
};
|
|
8714
8745
|
safelyRunOnBrowser(function (_ref4) {
|
|
8715
8746
|
var window = _ref4.window;
|
|
@@ -9816,6 +9847,7 @@
|
|
|
9816
9847
|
return refinement.name;
|
|
9817
9848
|
}
|
|
9818
9849
|
|
|
9850
|
+
var _excluded$3 = ["name", "escapedValue", "data", "path"];
|
|
9819
9851
|
var withUsage$4 = createDocumentationMessageGenerator({
|
|
9820
9852
|
name: 'hierarchical-menu',
|
|
9821
9853
|
connector: true
|
|
@@ -9894,7 +9926,7 @@
|
|
|
9894
9926
|
value = _ref2.escapedValue,
|
|
9895
9927
|
data = _ref2.data,
|
|
9896
9928
|
path = _ref2.path,
|
|
9897
|
-
subValue = _objectWithoutProperties(_ref2,
|
|
9929
|
+
subValue = _objectWithoutProperties(_ref2, _excluded$3);
|
|
9898
9930
|
var item = _objectSpread2(_objectSpread2({}, subValue), {}, {
|
|
9899
9931
|
value: value,
|
|
9900
9932
|
label: label,
|
|
@@ -10233,7 +10265,7 @@
|
|
|
10233
10265
|
};
|
|
10234
10266
|
}
|
|
10235
10267
|
|
|
10236
|
-
var n,l,u,t,o,r,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n);}function h(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v(l,f,t,o,null)}function v(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null==r&&null!=l.vnode&&l.vnode(f),f}function y(){return {current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l;}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_(n):null}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function b(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!g.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||setTimeout)(g);}function g(){for(var n;g.__r=t.length;)n=t.sort(function(n,l){return n.__v.__b-l.__v.__b}),t=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z(u,t),t.__e!=o&&k(t)));});}function w(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v(null,k,null,null,k):Array.isArray(k)?v(p,{children:k},null,null,null):k.__b>0?v(k.type,k.props,k.key,null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j(n,k,d=d||f,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=_(i,h+1)),N(x[h],x[h]));if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m(i,l,u):A(u,i,i,t,i.__e,l));return l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else{for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l.event?l.event(n):n);}function T(n){this.l[n.type+!0](l.event?l.event(n):n);}function j(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l.__b)&&a(u);try{n:if("function"==typeof H){if(g=u.props,m=(a=H.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in H&&H.prototype.render?u.__c=h=new H(g,x):(u.__c=h=new d(g,x),h.constructor=H,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,H.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==H.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,A=l.__r,C=0,"prototype"in H&&H.prototype.render)h.state=h.__s,h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context);else do{h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++C<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),$=null!=a&&a.type===p&&null==a.key?a.props.children:a,w(n,Array.isArray($)?$:[$],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l.__e(n,u,i);}}function z(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else{if(r=r&&n.call(l.childNodes),h=(y=i.props||f).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l.__e(n,i);}}function N(n,u,i){var t,o;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||a(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l.__&&l.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j(i,u=(!o&&t||i).__k=h(p,null,[u]),r||f,f,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z(e,u);}n=e.slice,l={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u=0,d.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),b(this));},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b(this));},d.prototype.render=p,t=[],g.__r=0,r=0;
|
|
10268
|
+
var n,l,u,t,o,r,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n);}function h(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v(l,f,t,o,null)}function v(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null==r&&null!=l.vnode&&l.vnode(f),f}function y(){return {current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l;}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_(n):null}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function b(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!g.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||setTimeout)(g);}function g(){for(var n;g.__r=t.length;)n=t.sort(function(n,l){return n.__v.__b-l.__v.__b}),t=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z(u,t),t.__e!=o&&k(t)));});}function w(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v(null,k,null,null,k):Array.isArray(k)?v(p,{children:k},null,null,null):k.__b>0?v(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j(n,k,d=d||f,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=_(i,h+1)),N(x[h],x[h]));if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m(i,l,u):A(u,i,i,t,i.__e,l));return l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else{for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l.event?l.event(n):n);}function T(n){this.l[n.type+!0](l.event?l.event(n):n);}function j(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l.__b)&&a(u);try{n:if("function"==typeof H){if(g=u.props,m=(a=H.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in H&&H.prototype.render?u.__c=h=new H(g,x):(u.__c=h=new d(g,x),h.constructor=H,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,H.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==H.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,A=l.__r,C=0,"prototype"in H&&H.prototype.render)h.state=h.__s,h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context);else do{h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++C<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),$=null!=a&&a.type===p&&null==a.key?a.props.children:a,w(n,Array.isArray($)?$:[$],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l.__e(n,u,i);}}function z(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else{if(r=r&&n.call(l.childNodes),h=(y=i.props||f).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l.__e(n,i);}}function N(n,u,i){var t,o;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||a(n.__e),n.__=n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l.__&&l.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j(i,u=(!o&&t||i).__k=h(p,null,[u]),r||f,f,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z(e,u);}n=e.slice,l={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u=0,d.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),b(this));},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b(this));},d.prototype.render=p,t=[],g.__r=0,r=0;
|
|
10237
10269
|
|
|
10238
10270
|
var findInsightsTarget = function findInsightsTarget(startElement, endElement, validator) {
|
|
10239
10271
|
var element = startElement;
|
|
@@ -10420,6 +10452,7 @@
|
|
|
10420
10452
|
};
|
|
10421
10453
|
};
|
|
10422
10454
|
|
|
10455
|
+
var _excluded$4 = ["page"];
|
|
10423
10456
|
var withUsage$7 = createDocumentationMessageGenerator({
|
|
10424
10457
|
name: 'infinite-hits',
|
|
10425
10458
|
connector: true
|
|
@@ -10427,7 +10460,7 @@
|
|
|
10427
10460
|
function getStateWithoutPage(state) {
|
|
10428
10461
|
var _ref = state || {},
|
|
10429
10462
|
page = _ref.page,
|
|
10430
|
-
rest = _objectWithoutProperties(_ref,
|
|
10463
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
10431
10464
|
return rest;
|
|
10432
10465
|
}
|
|
10433
10466
|
function getInMemoryCache() {
|
|
@@ -10633,6 +10666,7 @@
|
|
|
10633
10666
|
|
|
10634
10667
|
var connectInfiniteHitsWithInsights = withInsights(connectInfiniteHits);
|
|
10635
10668
|
|
|
10669
|
+
var _excluded$5 = ["name", "escapedValue", "path"];
|
|
10636
10670
|
var withUsage$8 = createDocumentationMessageGenerator({
|
|
10637
10671
|
name: 'menu',
|
|
10638
10672
|
connector: true
|
|
@@ -10758,7 +10792,7 @@
|
|
|
10758
10792
|
var label = _ref3.name,
|
|
10759
10793
|
value = _ref3.escapedValue,
|
|
10760
10794
|
path = _ref3.path,
|
|
10761
|
-
item = _objectWithoutProperties(_ref3,
|
|
10795
|
+
item = _objectWithoutProperties(_ref3, _excluded$5);
|
|
10762
10796
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
10763
10797
|
label: label,
|
|
10764
10798
|
value: value
|
|
@@ -10956,6 +10990,8 @@
|
|
|
10956
10990
|
var hasNoResults = results ? results.nbHits === 0 : true;
|
|
10957
10991
|
var preparedItems = prepareItems(state);
|
|
10958
10992
|
var allIsSelected = true;
|
|
10993
|
+
// @TODO avoid for..of for polyfill reasons
|
|
10994
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
10959
10995
|
var _iterator = _createForOfIteratorHelper(preparedItems),
|
|
10960
10996
|
_step;
|
|
10961
10997
|
try {
|
|
@@ -11498,6 +11534,8 @@
|
|
|
11498
11534
|
};
|
|
11499
11535
|
};
|
|
11500
11536
|
|
|
11537
|
+
var _excluded$6 = ["name", "escapedValue"],
|
|
11538
|
+
_excluded2 = ["escapedValue", "value"];
|
|
11501
11539
|
var withUsage$c = createDocumentationMessageGenerator({
|
|
11502
11540
|
name: 'refinement-list',
|
|
11503
11541
|
connector: true
|
|
@@ -11549,7 +11587,7 @@
|
|
|
11549
11587
|
var formatItems = function formatItems(_ref2) {
|
|
11550
11588
|
var label = _ref2.name,
|
|
11551
11589
|
value = _ref2.escapedValue,
|
|
11552
|
-
item = _objectWithoutProperties(_ref2,
|
|
11590
|
+
item = _objectWithoutProperties(_ref2, _excluded$6);
|
|
11553
11591
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
11554
11592
|
value: value,
|
|
11555
11593
|
label: label,
|
|
@@ -11606,7 +11644,7 @@
|
|
|
11606
11644
|
var normalizedFacetValues = transformItems(facetValues.map(function (_ref3) {
|
|
11607
11645
|
var escapedValue = _ref3.escapedValue,
|
|
11608
11646
|
value = _ref3.value,
|
|
11609
|
-
item = _objectWithoutProperties(_ref3,
|
|
11647
|
+
item = _objectWithoutProperties(_ref3, _excluded2);
|
|
11610
11648
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
11611
11649
|
value: escapedValue,
|
|
11612
11650
|
label: value
|
|
@@ -13604,7 +13642,9 @@
|
|
|
13604
13642
|
_ref$escapeHTML = _ref.escapeHTML,
|
|
13605
13643
|
escapeHTML = _ref$escapeHTML === void 0 ? true : _ref$escapeHTML,
|
|
13606
13644
|
_ref$extraParameters = _ref.extraParameters,
|
|
13607
|
-
extraParameters = _ref$extraParameters === void 0 ? {} : _ref$extraParameters;
|
|
13645
|
+
extraParameters = _ref$extraParameters === void 0 ? {} : _ref$extraParameters;
|
|
13646
|
+
|
|
13647
|
+
// @ts-expect-error checking for the wrong value
|
|
13608
13648
|
if (!queryLanguages || queryLanguages.length === 0) {
|
|
13609
13649
|
throw new Error(withUsage$q('The `queryLanguages` expects an array of strings.'));
|
|
13610
13650
|
}
|
|
@@ -13961,6 +14001,8 @@
|
|
|
13961
14001
|
var cachedState = null;
|
|
13962
14002
|
var serializeRefinements = function serializeRefinements(parameters) {
|
|
13963
14003
|
var refinements = [];
|
|
14004
|
+
|
|
14005
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
13964
14006
|
for (var parameter in parameters) {
|
|
13965
14007
|
if (parameters.hasOwnProperty(parameter)) {
|
|
13966
14008
|
var values = parameters[parameter].join('+');
|
|
@@ -13971,6 +14013,8 @@
|
|
|
13971
14013
|
};
|
|
13972
14014
|
var serializeNumericRefinements = function serializeNumericRefinements(numericRefinements) {
|
|
13973
14015
|
var refinements = [];
|
|
14016
|
+
|
|
14017
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
13974
14018
|
for (var attribute in numericRefinements) {
|
|
13975
14019
|
if (numericRefinements.hasOwnProperty(attribute)) {
|
|
13976
14020
|
var filter = numericRefinements[attribute];
|
|
@@ -13986,6 +14030,8 @@
|
|
|
13986
14030
|
refinements.push("".concat(attribute, "=").concat(attribute, "_to").concat(filter['<=']));
|
|
13987
14031
|
} else if (filter.hasOwnProperty('=')) {
|
|
13988
14032
|
var equals = [];
|
|
14033
|
+
|
|
14034
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
13989
14035
|
for (var equal in filter['=']) {
|
|
13990
14036
|
// eslint-disable-next-line max-depth
|
|
13991
14037
|
if (filter['='].hasOwnProperty(equal)) {
|
|
@@ -14919,19 +14965,16 @@
|
|
|
14919
14965
|
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
14920
14966
|
for (var i = 1; i < arguments.length; i++) {
|
|
14921
14967
|
var source = arguments[i];
|
|
14922
|
-
|
|
14923
14968
|
for (var key in source) {
|
|
14924
14969
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14925
14970
|
target[key] = source[key];
|
|
14926
14971
|
}
|
|
14927
14972
|
}
|
|
14928
14973
|
}
|
|
14929
|
-
|
|
14930
14974
|
return target;
|
|
14931
14975
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14932
14976
|
return _extends.apply(this, arguments);
|
|
14933
14977
|
}
|
|
14934
|
-
|
|
14935
14978
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14936
14979
|
});
|
|
14937
14980
|
|
|
@@ -14943,16 +14986,13 @@
|
|
|
14943
14986
|
var target = {};
|
|
14944
14987
|
var sourceKeys = Object.keys(source);
|
|
14945
14988
|
var key, i;
|
|
14946
|
-
|
|
14947
14989
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
14948
14990
|
key = sourceKeys[i];
|
|
14949
14991
|
if (excluded.indexOf(key) >= 0) continue;
|
|
14950
14992
|
target[key] = source[key];
|
|
14951
14993
|
}
|
|
14952
|
-
|
|
14953
14994
|
return target;
|
|
14954
14995
|
}
|
|
14955
|
-
|
|
14956
14996
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14957
14997
|
});
|
|
14958
14998
|
|
|
@@ -14963,10 +15003,8 @@
|
|
|
14963
15003
|
if (source == null) return {};
|
|
14964
15004
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
14965
15005
|
var key, i;
|
|
14966
|
-
|
|
14967
15006
|
if (Object.getOwnPropertySymbols) {
|
|
14968
15007
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
14969
|
-
|
|
14970
15008
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
14971
15009
|
key = sourceSymbolKeys[i];
|
|
14972
15010
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -14974,16 +15012,14 @@
|
|
|
14974
15012
|
target[key] = source[key];
|
|
14975
15013
|
}
|
|
14976
15014
|
}
|
|
14977
|
-
|
|
14978
15015
|
return target;
|
|
14979
15016
|
}
|
|
14980
|
-
|
|
14981
15017
|
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14982
15018
|
});
|
|
14983
15019
|
|
|
14984
15020
|
var _objectWithoutProperties$1 = unwrapExports(objectWithoutProperties);
|
|
14985
15021
|
|
|
14986
|
-
var _excluded = ["parts", "highlightedTagName", "nonHighlightedTagName", "separator", "className", "classNames"];
|
|
15022
|
+
var _excluded$7 = ["parts", "highlightedTagName", "nonHighlightedTagName", "separator", "className", "classNames"];
|
|
14987
15023
|
// This is a minimal subset of the actual types from the `JSX` namespace.
|
|
14988
15024
|
|
|
14989
15025
|
function createHighlightPartComponent(_ref) {
|
|
@@ -15019,7 +15055,7 @@
|
|
|
15019
15055
|
className = _ref4.className,
|
|
15020
15056
|
_ref4$classNames = _ref4.classNames,
|
|
15021
15057
|
classNames = _ref4$classNames === void 0 ? {} : _ref4$classNames,
|
|
15022
|
-
props = _objectWithoutProperties$1(_ref4, _excluded);
|
|
15058
|
+
props = _objectWithoutProperties$1(_ref4, _excluded$7);
|
|
15023
15059
|
|
|
15024
15060
|
return createElement("span", _extends$1({}, props, {
|
|
15025
15061
|
className: cx(classNames.root, className)
|
|
@@ -15047,10 +15083,11 @@
|
|
|
15047
15083
|
Fragment: p
|
|
15048
15084
|
});
|
|
15049
15085
|
|
|
15086
|
+
var _excluded$8 = ["classNames"];
|
|
15050
15087
|
function Highlight(_ref) {
|
|
15051
15088
|
var _ref$classNames = _ref.classNames,
|
|
15052
15089
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
15053
|
-
props = _objectWithoutProperties(_ref,
|
|
15090
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
15054
15091
|
return h(InternalHighlight, _extends({
|
|
15055
15092
|
classNames: {
|
|
15056
15093
|
root: cx('ais-Highlight', classNames.root),
|
|
@@ -15061,11 +15098,12 @@
|
|
|
15061
15098
|
}, props));
|
|
15062
15099
|
}
|
|
15063
15100
|
|
|
15101
|
+
var _excluded$9 = ["hit", "attribute", "cssClasses"];
|
|
15064
15102
|
function Highlight$1(_ref) {
|
|
15065
15103
|
var hit = _ref.hit,
|
|
15066
15104
|
attribute = _ref.attribute,
|
|
15067
15105
|
cssClasses = _ref.cssClasses,
|
|
15068
|
-
props = _objectWithoutProperties(_ref,
|
|
15106
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
15069
15107
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
15070
15108
|
var properties = toArray(property);
|
|
15071
15109
|
_warning(Boolean(properties.length), "Could not enable highlight for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is either searchable or specified in `attributesToHighlight`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -15079,10 +15117,11 @@
|
|
|
15079
15117
|
}));
|
|
15080
15118
|
}
|
|
15081
15119
|
|
|
15120
|
+
var _excluded$a = ["classNames"];
|
|
15082
15121
|
function ReverseHighlight(_ref) {
|
|
15083
15122
|
var _ref$classNames = _ref.classNames,
|
|
15084
15123
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
15085
|
-
props = _objectWithoutProperties(_ref,
|
|
15124
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
15086
15125
|
return h(InternalHighlight, _extends({
|
|
15087
15126
|
classNames: {
|
|
15088
15127
|
root: cx('ais-ReverseHighlight', classNames.root),
|
|
@@ -15093,11 +15132,13 @@
|
|
|
15093
15132
|
}, props));
|
|
15094
15133
|
}
|
|
15095
15134
|
|
|
15135
|
+
var _excluded$b = ["hit", "attribute", "cssClasses"],
|
|
15136
|
+
_excluded2$1 = ["isHighlighted"];
|
|
15096
15137
|
function ReverseHighlight$1(_ref) {
|
|
15097
15138
|
var hit = _ref.hit,
|
|
15098
15139
|
attribute = _ref.attribute,
|
|
15099
15140
|
cssClasses = _ref.cssClasses,
|
|
15100
|
-
props = _objectWithoutProperties(_ref,
|
|
15141
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
15101
15142
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
15102
15143
|
var properties = toArray(property);
|
|
15103
15144
|
_warning(Boolean(properties.length), "Could not enable highlight for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is either searchable or specified in `attributesToHighlight`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -15105,7 +15146,7 @@
|
|
|
15105
15146
|
var value = _ref2.value;
|
|
15106
15147
|
return getHighlightedParts(unescape$1(value || '')).map(function (_ref3) {
|
|
15107
15148
|
var isHighlighted = _ref3.isHighlighted,
|
|
15108
|
-
rest = _objectWithoutProperties(_ref3,
|
|
15149
|
+
rest = _objectWithoutProperties(_ref3, _excluded2$1);
|
|
15109
15150
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
15110
15151
|
isHighlighted: !isHighlighted
|
|
15111
15152
|
});
|
|
@@ -15117,10 +15158,11 @@
|
|
|
15117
15158
|
}));
|
|
15118
15159
|
}
|
|
15119
15160
|
|
|
15161
|
+
var _excluded$c = ["classNames"];
|
|
15120
15162
|
function ReverseSnippet(_ref) {
|
|
15121
15163
|
var _ref$classNames = _ref.classNames,
|
|
15122
15164
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
15123
|
-
props = _objectWithoutProperties(_ref,
|
|
15165
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
15124
15166
|
return h(InternalHighlight, _extends({
|
|
15125
15167
|
classNames: {
|
|
15126
15168
|
root: cx('ais-ReverseSnippet', classNames.root),
|
|
@@ -15131,11 +15173,13 @@
|
|
|
15131
15173
|
}, props));
|
|
15132
15174
|
}
|
|
15133
15175
|
|
|
15176
|
+
var _excluded$d = ["hit", "attribute", "cssClasses"],
|
|
15177
|
+
_excluded2$2 = ["isHighlighted"];
|
|
15134
15178
|
function ReverseSnippet$1(_ref) {
|
|
15135
15179
|
var hit = _ref.hit,
|
|
15136
15180
|
attribute = _ref.attribute,
|
|
15137
15181
|
cssClasses = _ref.cssClasses,
|
|
15138
|
-
props = _objectWithoutProperties(_ref,
|
|
15182
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
15139
15183
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
15140
15184
|
var properties = toArray(property);
|
|
15141
15185
|
_warning(Boolean(properties.length), "Could not enable snippet for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is specified in `attributesToSnippet`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -15143,7 +15187,7 @@
|
|
|
15143
15187
|
var value = _ref2.value;
|
|
15144
15188
|
return getHighlightedParts(unescape$1(value || '')).map(function (_ref3) {
|
|
15145
15189
|
var isHighlighted = _ref3.isHighlighted,
|
|
15146
|
-
rest = _objectWithoutProperties(_ref3,
|
|
15190
|
+
rest = _objectWithoutProperties(_ref3, _excluded2$2);
|
|
15147
15191
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
15148
15192
|
isHighlighted: !isHighlighted
|
|
15149
15193
|
});
|
|
@@ -15155,10 +15199,11 @@
|
|
|
15155
15199
|
}));
|
|
15156
15200
|
}
|
|
15157
15201
|
|
|
15202
|
+
var _excluded$e = ["classNames"];
|
|
15158
15203
|
function Snippet(_ref) {
|
|
15159
15204
|
var _ref$classNames = _ref.classNames,
|
|
15160
15205
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
15161
|
-
props = _objectWithoutProperties(_ref,
|
|
15206
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
15162
15207
|
return h(InternalHighlight, _extends({
|
|
15163
15208
|
classNames: {
|
|
15164
15209
|
root: cx('ais-Snippet', classNames.root),
|
|
@@ -15169,11 +15214,12 @@
|
|
|
15169
15214
|
}, props));
|
|
15170
15215
|
}
|
|
15171
15216
|
|
|
15217
|
+
var _excluded$f = ["hit", "attribute", "cssClasses"];
|
|
15172
15218
|
function Snippet$1(_ref) {
|
|
15173
15219
|
var hit = _ref.hit,
|
|
15174
15220
|
attribute = _ref.attribute,
|
|
15175
15221
|
cssClasses = _ref.cssClasses,
|
|
15176
|
-
props = _objectWithoutProperties(_ref,
|
|
15222
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
15177
15223
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
15178
15224
|
var properties = toArray(property);
|
|
15179
15225
|
_warning(Boolean(properties.length), "Could not enable snippet for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is specified in `attributesToSnippet`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -15816,6 +15862,7 @@
|
|
|
15816
15862
|
});
|
|
15817
15863
|
};
|
|
15818
15864
|
|
|
15865
|
+
var _excluded$g = ["container", "widgets", "fallbackWidget"];
|
|
15819
15866
|
var withUsage$x = createDocumentationMessageGenerator({
|
|
15820
15867
|
name: 'dynamic-widgets'
|
|
15821
15868
|
});
|
|
@@ -15833,7 +15880,7 @@
|
|
|
15833
15880
|
containerSelector = _ref.container,
|
|
15834
15881
|
widgets = _ref.widgets,
|
|
15835
15882
|
fallbackWidget = _ref.fallbackWidget,
|
|
15836
|
-
otherWidgetParams = _objectWithoutProperties(_ref,
|
|
15883
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$g);
|
|
15837
15884
|
if (!containerSelector) {
|
|
15838
15885
|
throw new Error(withUsage$x('The `container` option is required.'));
|
|
15839
15886
|
}
|
|
@@ -16081,7 +16128,9 @@
|
|
|
16081
16128
|
var _collectMarkersForNex = collectMarkersForNextRender(renderState.markers, nextItemsIds),
|
|
16082
16129
|
_collectMarkersForNex2 = _slicedToArray(_collectMarkersForNex, 2),
|
|
16083
16130
|
updateMarkers = _collectMarkersForNex2[0],
|
|
16084
|
-
exitMarkers = _collectMarkersForNex2[1];
|
|
16131
|
+
exitMarkers = _collectMarkersForNex2[1];
|
|
16132
|
+
|
|
16133
|
+
// Collect items that will be added
|
|
16085
16134
|
var updateMarkerIds = updateMarkers.map(function (_) {
|
|
16086
16135
|
return _.__id;
|
|
16087
16136
|
});
|
|
@@ -16276,6 +16325,9 @@
|
|
|
16276
16325
|
return HTMLMarker;
|
|
16277
16326
|
};
|
|
16278
16327
|
|
|
16328
|
+
var _excluded$h = ["initialZoom", "initialPosition", "templates", "cssClasses", "builtInMarker", "customHTMLMarker", "enableRefine", "enableClearMapRefinement", "enableRefineControl", "container", "googleReference"],
|
|
16329
|
+
_excluded2$3 = ["item"],
|
|
16330
|
+
_excluded3 = ["item"];
|
|
16279
16331
|
var withUsage$y = createDocumentationMessageGenerator({
|
|
16280
16332
|
name: 'geo-search'
|
|
16281
16333
|
});
|
|
@@ -16317,7 +16369,7 @@
|
|
|
16317
16369
|
enableRefineControl = _ref$enableRefineCont === void 0 ? true : _ref$enableRefineCont,
|
|
16318
16370
|
container = _ref.container,
|
|
16319
16371
|
googleReference = _ref.googleReference,
|
|
16320
|
-
otherWidgetParams = _objectWithoutProperties(_ref,
|
|
16372
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$h);
|
|
16321
16373
|
var defaultBuiltInMarker = {
|
|
16322
16374
|
createOptions: function createOptions() {
|
|
16323
16375
|
return {};
|
|
@@ -16376,7 +16428,7 @@
|
|
|
16376
16428
|
var customHTMLMarker = isCustomHTMLMarker && _objectSpread2(_objectSpread2({}, defaultCustomHTMLMarker), userCustomHTMLMarker);
|
|
16377
16429
|
var createBuiltInMarker = function createBuiltInMarker(_ref2) {
|
|
16378
16430
|
var item = _ref2.item,
|
|
16379
|
-
rest = _objectWithoutProperties(_ref2,
|
|
16431
|
+
rest = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
16380
16432
|
return new googleReference.maps.Marker(_objectSpread2(_objectSpread2(_objectSpread2({}, builtInMarker.createOptions(item)), rest), {}, {
|
|
16381
16433
|
// @ts-expect-error @types/googlemaps doesn't document this
|
|
16382
16434
|
__id: item.objectID,
|
|
@@ -16386,7 +16438,7 @@
|
|
|
16386
16438
|
var HTMLMarker = createHTMLMarker(googleReference);
|
|
16387
16439
|
var createCustomHTMLMarker = function createCustomHTMLMarker(_ref3) {
|
|
16388
16440
|
var item = _ref3.item,
|
|
16389
|
-
rest = _objectWithoutProperties(_ref3,
|
|
16441
|
+
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
16390
16442
|
return new HTMLMarker(_objectSpread2(_objectSpread2(_objectSpread2({}, customHTMLMarker.createOptions(item)), rest), {}, {
|
|
16391
16443
|
__id: item.objectID,
|
|
16392
16444
|
position: item._geoloc,
|
|
@@ -16644,6 +16696,7 @@
|
|
|
16644
16696
|
}(d);
|
|
16645
16697
|
_defineProperty(SearchBox, "defaultProps", defaultProps$1);
|
|
16646
16698
|
|
|
16699
|
+
var _excluded$i = ["root"];
|
|
16647
16700
|
var defaultProps$2 = {
|
|
16648
16701
|
cssClasses: {},
|
|
16649
16702
|
depth: 0
|
|
@@ -16680,7 +16733,7 @@
|
|
|
16680
16733
|
if (isHierarchicalMenuItem(facetValue) && Array.isArray(facetValue.data) && facetValue.data.length > 0) {
|
|
16681
16734
|
var _this$props$cssClasse = this.props.cssClasses,
|
|
16682
16735
|
root = _this$props$cssClasse.root,
|
|
16683
|
-
cssClasses = _objectWithoutProperties(_this$props$cssClasse,
|
|
16736
|
+
cssClasses = _objectWithoutProperties(_this$props$cssClasse, _excluded$i);
|
|
16684
16737
|
subItems = h(RefinementList, _extends({}, this.props, {
|
|
16685
16738
|
// We want to keep `root` required for external usage but not for the
|
|
16686
16739
|
// sub items.
|
|
@@ -18046,19 +18099,19 @@
|
|
|
18046
18099
|
});
|
|
18047
18100
|
};
|
|
18048
18101
|
|
|
18049
|
-
var
|
|
18102
|
+
var r$1,u$1,i,o$1,f$1=0,c$1=[],e$2=[],a$1=l.__b,v$1=l.__r,l$1=l.diffed,m$2=l.__c,d$1=l.unmount;function p$1(t,r){l.__h&&l.__h(u$1,t,f$1||r),f$1=0;var i=u$1.__H||(u$1.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:e$2}),i.__[t]}function y$1(n){return f$1=1,h$1(C$1,n)}function h$1(n,t,i){var o=p$1(r$1++,2);if(o.t=n,!o.__c&&(o.__=[i?i(t):C$1(void 0,t),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=u$1,!u$1.u)){u$1.u=!0;var f=u$1.shouldComponentUpdate;u$1.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!!i&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function s$1(t,i){var o=p$1(r$1++,3);!l.__s&&B(o.__H,i)&&(o.__=t,o.i=i,u$1.__H.__h.push(o));}function A$1(n){return f$1=5,T$1(function(){return {current:n}},[])}function T$1(n,t){var u=p$1(r$1++,7);return B(u.__H,t)?(u.__V=n(),u.i=t,u.__h=n,u.__V):u.__}function g$1(){for(var t;t=c$1.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(w$1),t.__H.__h.forEach(z$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l.__e(r,t.__v);}}l.__b=function(n){"function"!=typeof n.type||n.o||n.type===p?n.o||(n.o=n.__&&n.__.o?n.__.o:""):n.o=(n.__&&n.__.o?n.__.o:"")+(n.__&&n.__.__k?n.__.__k.indexOf(n):0),u$1=null,a$1&&a$1(n);},l.__r=function(n){v$1&&v$1(n),r$1=0;var t=(u$1=n.__c).__H;t&&(i===u$1?(t.__h=[],u$1.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=e$2,n.__N=n.i=void 0;})):(t.__h.forEach(w$1),t.__h.forEach(z$1),t.__h=[])),i=u$1;},l.diffed=function(t){l$1&&l$1(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==c$1.push(r)&&o$1===l.requestAnimationFrame||((o$1=l.requestAnimationFrame)||k$1)(g$1)),r.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==e$2&&(n.__=n.__V),n.i=void 0,n.__V=e$2;})),i=u$1=null;},l.__c=function(t,r){r.some(function(t){try{t.__h.forEach(w$1),t.__h=t.__h.filter(function(n){return !n.__||z$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l.__e(u,t.__v);}}),m$2&&m$2(t,r);},l.unmount=function(t){d$1&&d$1(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{w$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l.__e(r,u.__v));};var j$1="function"==typeof requestAnimationFrame;function k$1(n){var t,r=function(){clearTimeout(u),j$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);j$1&&(t=requestAnimationFrame(r));}function w$1(n){var t=u$1,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u$1=t;}function z$1(n){var t=u$1;n.__c=n.__(),u$1=t;}function B(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function C$1(n,t){return "function"==typeof t?t(n):t}
|
|
18050
18103
|
|
|
18051
18104
|
function Panel(props) {
|
|
18052
|
-
var _useState =
|
|
18105
|
+
var _useState = y$1(props.isCollapsed),
|
|
18053
18106
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18054
18107
|
isCollapsed = _useState2[0],
|
|
18055
18108
|
setIsCollapsed = _useState2[1];
|
|
18056
|
-
var _useState3 =
|
|
18109
|
+
var _useState3 = y$1(false),
|
|
18057
18110
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18058
18111
|
isControlled = _useState4[0],
|
|
18059
18112
|
setIsControlled = _useState4[1];
|
|
18060
|
-
var bodyRef =
|
|
18061
|
-
|
|
18113
|
+
var bodyRef = A$1(null);
|
|
18114
|
+
s$1(function () {
|
|
18062
18115
|
var node = bodyRef.current;
|
|
18063
18116
|
if (!node) {
|
|
18064
18117
|
return undefined;
|
|
@@ -18264,6 +18317,8 @@
|
|
|
18264
18317
|
};
|
|
18265
18318
|
};
|
|
18266
18319
|
|
|
18320
|
+
var _excluded$j = ["placesReference", "defaultPosition"],
|
|
18321
|
+
_excluded2$4 = ["places"];
|
|
18267
18322
|
/** @ts-ignore */
|
|
18268
18323
|
|
|
18269
18324
|
// using the type like this requires only one ts-ignore
|
|
@@ -18277,7 +18332,7 @@
|
|
|
18277
18332
|
placesReference = _ref.placesReference,
|
|
18278
18333
|
_ref$defaultPosition = _ref.defaultPosition,
|
|
18279
18334
|
defaultPosition = _ref$defaultPosition === void 0 ? [] : _ref$defaultPosition,
|
|
18280
|
-
placesOptions = _objectWithoutProperties(_ref,
|
|
18335
|
+
placesOptions = _objectWithoutProperties(_ref, _excluded$j);
|
|
18281
18336
|
if (typeof placesReference !== 'function') {
|
|
18282
18337
|
throw new Error('The `placesReference` option requires a valid Places.js reference.');
|
|
18283
18338
|
}
|
|
@@ -18318,7 +18373,7 @@
|
|
|
18318
18373
|
var hasPositionSet = position !== defaultPosition.join(',');
|
|
18319
18374
|
if (!hasPositionSet && !state.query) {
|
|
18320
18375
|
var places = uiState.places,
|
|
18321
|
-
uiStateWithoutPlaces = _objectWithoutProperties(uiState,
|
|
18376
|
+
uiStateWithoutPlaces = _objectWithoutProperties(uiState, _excluded2$4);
|
|
18322
18377
|
return uiStateWithoutPlaces;
|
|
18323
18378
|
}
|
|
18324
18379
|
return _objectSpread2(_objectSpread2({}, uiState), {}, {
|
|
@@ -19250,7 +19305,9 @@
|
|
|
19250
19305
|
key: "updateNewValues",
|
|
19251
19306
|
value: function updateNewValues(nextProps) {
|
|
19252
19307
|
var _this6 = this;
|
|
19253
|
-
var slidingIndex = this.state.slidingIndex;
|
|
19308
|
+
var slidingIndex = this.state.slidingIndex;
|
|
19309
|
+
|
|
19310
|
+
// Don't update while the slider is sliding
|
|
19254
19311
|
if (slidingIndex !== null) {
|
|
19255
19312
|
return;
|
|
19256
19313
|
}
|
|
@@ -19463,7 +19520,9 @@
|
|
|
19463
19520
|
step = _this$props.step,
|
|
19464
19521
|
pips = _this$props.pips,
|
|
19465
19522
|
values = _this$props.values,
|
|
19466
|
-
cssClasses = _this$props.cssClasses;
|
|
19523
|
+
cssClasses = _this$props.cssClasses;
|
|
19524
|
+
|
|
19525
|
+
// @TODO: figure out why this.props needs to be non-null asserted
|
|
19467
19526
|
var _ref4 = this.isDisabled ? {
|
|
19468
19527
|
min: this.props.min,
|
|
19469
19528
|
max: this.props.max + 0.001
|
|
@@ -20372,12 +20431,13 @@
|
|
|
20372
20431
|
});
|
|
20373
20432
|
};
|
|
20374
20433
|
|
|
20434
|
+
var _excluded$k = ["nbHits", "nbSortedHits", "cssClasses", "templateProps"];
|
|
20375
20435
|
var Stats = function Stats(_ref) {
|
|
20376
20436
|
var nbHits = _ref.nbHits,
|
|
20377
20437
|
nbSortedHits = _ref.nbSortedHits,
|
|
20378
20438
|
cssClasses = _ref.cssClasses,
|
|
20379
20439
|
templateProps = _ref.templateProps,
|
|
20380
|
-
rest = _objectWithoutProperties(_ref,
|
|
20440
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
20381
20441
|
return h("div", {
|
|
20382
20442
|
className: cx(cssClasses.root)
|
|
20383
20443
|
}, h(Template, _extends({}, templateProps, {
|
|
@@ -20903,7 +20963,9 @@
|
|
|
20903
20963
|
var _getAppIdAndApiKey = getAppIdAndApiKey(instantSearchInstance.client),
|
|
20904
20964
|
_getAppIdAndApiKey2 = _slicedToArray(_getAppIdAndApiKey, 2),
|
|
20905
20965
|
appId = _getAppIdAndApiKey2[0],
|
|
20906
|
-
apiKey = _getAppIdAndApiKey2[1];
|
|
20966
|
+
apiKey = _getAppIdAndApiKey2[1];
|
|
20967
|
+
|
|
20968
|
+
// search-insights.js also throws an error so dev-only clarification is sufficient
|
|
20907
20969
|
if ( !(appId && apiKey)) {
|
|
20908
20970
|
throw new Error('[insights middleware]: could not extract Algolia credentials from searchClient');
|
|
20909
20971
|
}
|
|
@@ -21025,9 +21087,10 @@
|
|
|
21025
21087
|
history: historyRouter
|
|
21026
21088
|
});
|
|
21027
21089
|
|
|
21090
|
+
var _excluded$l = ["configure"];
|
|
21028
21091
|
function getIndexStateWithoutConfigure$1(uiState) {
|
|
21029
21092
|
var configure = uiState.configure,
|
|
21030
|
-
trackedUiState = _objectWithoutProperties(uiState,
|
|
21093
|
+
trackedUiState = _objectWithoutProperties(uiState, _excluded$l);
|
|
21031
21094
|
return trackedUiState;
|
|
21032
21095
|
}
|
|
21033
21096
|
function singleIndexStateMapping(indexName) {
|
|
@@ -21050,10 +21113,11 @@
|
|
|
21050
21113
|
singleIndex: singleIndexStateMapping
|
|
21051
21114
|
});
|
|
21052
21115
|
|
|
21116
|
+
var _excluded$m = ["page"];
|
|
21053
21117
|
function getStateWithoutPage$1(state) {
|
|
21054
21118
|
var _ref = state || {},
|
|
21055
21119
|
page = _ref.page,
|
|
21056
|
-
rest = _objectWithoutProperties(_ref,
|
|
21120
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
21057
21121
|
return rest;
|
|
21058
21122
|
}
|
|
21059
21123
|
var KEY = 'ais.infiniteHits';
|