instantsearch.js 4.49.2 → 4.49.4
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 +189 -122
- 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 +7 -7
- 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.4 | © 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) {
|
|
@@ -312,7 +333,8 @@
|
|
|
312
333
|
for (var key in source) {
|
|
313
334
|
if (
|
|
314
335
|
!Object.prototype.hasOwnProperty.call(source, key) ||
|
|
315
|
-
key === '__proto__'
|
|
336
|
+
key === '__proto__' ||
|
|
337
|
+
key === 'constructor'
|
|
316
338
|
) {
|
|
317
339
|
continue;
|
|
318
340
|
}
|
|
@@ -4217,7 +4239,7 @@
|
|
|
4217
4239
|
|
|
4218
4240
|
var requestBuilder_1 = requestBuilder;
|
|
4219
4241
|
|
|
4220
|
-
var version = '3.11.
|
|
4242
|
+
var version = '3.11.2';
|
|
4221
4243
|
|
|
4222
4244
|
var escapeFacetValue$3 = escapeFacetValue_1.escapeFacetValue;
|
|
4223
4245
|
|
|
@@ -4467,8 +4489,10 @@
|
|
|
4467
4489
|
* @param {number} options.nbHits - Maximum number of answers to retrieve from the Answers Engine. Cannot be greater than 1000.
|
|
4468
4490
|
*
|
|
4469
4491
|
* @return {promise} the answer results
|
|
4492
|
+
* @deprecated answers is deprecated and will be replaced with new initiatives
|
|
4470
4493
|
*/
|
|
4471
4494
|
AlgoliaSearchHelper.prototype.findAnswers = function(options) {
|
|
4495
|
+
console.warn('[algoliasearch-helper] answers is no longer supported');
|
|
4472
4496
|
var state = this.state;
|
|
4473
4497
|
var derivedHelper = this.derivedHelpers[0];
|
|
4474
4498
|
if (!derivedHelper) {
|
|
@@ -5801,7 +5825,7 @@
|
|
|
5801
5825
|
return function () {
|
|
5802
5826
|
if (!hasAlreadyPrinted) {
|
|
5803
5827
|
hasAlreadyPrinted = true;
|
|
5804
|
-
|
|
5828
|
+
warn(message) ;
|
|
5805
5829
|
}
|
|
5806
5830
|
return fn.apply(void 0, arguments);
|
|
5807
5831
|
};
|
|
@@ -5813,7 +5837,7 @@
|
|
|
5813
5837
|
var hasAlreadyPrinted = _warning.cache[message];
|
|
5814
5838
|
if (!hasAlreadyPrinted) {
|
|
5815
5839
|
_warning.cache[message] = true;
|
|
5816
|
-
|
|
5840
|
+
warn(message) ;
|
|
5817
5841
|
}
|
|
5818
5842
|
};
|
|
5819
5843
|
_warning.cache = {};
|
|
@@ -6119,7 +6143,7 @@
|
|
|
6119
6143
|
// We don't override the value on hit because it will mutate the raw results
|
|
6120
6144
|
// instead we make a shallow copy and we assign the escaped values on it.
|
|
6121
6145
|
hits = hits.map(function (_ref) {
|
|
6122
|
-
var hit = _extends({}, _ref);
|
|
6146
|
+
var hit = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
6123
6147
|
if (hit._highlightResult) {
|
|
6124
6148
|
hit._highlightResult = recursiveEscape(hit._highlightResult);
|
|
6125
6149
|
}
|
|
@@ -6542,13 +6566,15 @@
|
|
|
6542
6566
|
}
|
|
6543
6567
|
function insideBoundingBoxArrayToBoundingBox(value) {
|
|
6544
6568
|
var _value = _slicedToArray(value, 1),
|
|
6545
|
-
_value$ = _value[0]
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
neLat = _value$
|
|
6549
|
-
neLng = _value$
|
|
6550
|
-
swLat = _value$
|
|
6551
|
-
swLng = _value$
|
|
6569
|
+
_value$ = _value[0],
|
|
6570
|
+
_value$2 = _value$ === void 0 ? [undefined, undefined, undefined, undefined] : _value$,
|
|
6571
|
+
_value$3 = _slicedToArray(_value$2, 4),
|
|
6572
|
+
neLat = _value$3[0],
|
|
6573
|
+
neLng = _value$3[1],
|
|
6574
|
+
swLat = _value$3[2],
|
|
6575
|
+
swLng = _value$3[3];
|
|
6576
|
+
|
|
6577
|
+
// Since the value provided is the one send with the request, the API should
|
|
6552
6578
|
// throw an error due to the wrong format. So throw an error should be safe.
|
|
6553
6579
|
if (!neLat || !neLng || !swLat || !swLng) {
|
|
6554
6580
|
throw new Error("Invalid value for \"insideBoundingBox\" parameter: [".concat(value, "]"));
|
|
@@ -6570,7 +6596,9 @@
|
|
|
6570
6596
|
neLat = _value$split$map2[0],
|
|
6571
6597
|
neLng = _value$split$map2[1],
|
|
6572
6598
|
swLat = _value$split$map2[2],
|
|
6573
|
-
swLng = _value$split$map2[3];
|
|
6599
|
+
swLng = _value$split$map2[3];
|
|
6600
|
+
|
|
6601
|
+
// Since the value provided is the one send with the request, the API should
|
|
6574
6602
|
// throw an error due to the wrong format. So throw an error should be safe.
|
|
6575
6603
|
if (!neLat || !neLng || !swLat || !swLng) {
|
|
6576
6604
|
throw new Error("Invalid value for \"insideBoundingBox\" parameter: \"".concat(value, "\""));
|
|
@@ -6694,24 +6722,22 @@
|
|
|
6694
6722
|
});
|
|
6695
6723
|
var count;
|
|
6696
6724
|
if (type === 'hierarchical') {
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
return
|
|
6702
|
-
return facetData[refinementKey];
|
|
6703
|
-
};
|
|
6725
|
+
var facetDeclaration = state.getHierarchicalFacetByName(attribute);
|
|
6726
|
+
var nameParts = name.split(facetDeclaration.separator);
|
|
6727
|
+
var getFacetRefinement = function getFacetRefinement(facetData) {
|
|
6728
|
+
return function (refinementKey) {
|
|
6729
|
+
return facetData[refinementKey];
|
|
6704
6730
|
};
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
};
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6731
|
+
};
|
|
6732
|
+
var _loop = function _loop(i) {
|
|
6733
|
+
facet = facet && facet.data && find$1(Object.keys(facet.data).map(getFacetRefinement(facet.data)), function (refinement) {
|
|
6734
|
+
return refinement.name === nameParts[i];
|
|
6735
|
+
});
|
|
6736
|
+
};
|
|
6737
|
+
for (var i = 0; facet !== undefined && i < nameParts.length; ++i) {
|
|
6738
|
+
_loop(i);
|
|
6739
|
+
}
|
|
6740
|
+
count = facet && facet.count;
|
|
6715
6741
|
} else {
|
|
6716
6742
|
count = facet && facet.data && facet.data[res.name];
|
|
6717
6743
|
}
|
|
@@ -6856,6 +6882,9 @@
|
|
|
6856
6882
|
if (Object.keys(first).length !== Object.keys(second).length) {
|
|
6857
6883
|
return false;
|
|
6858
6884
|
}
|
|
6885
|
+
|
|
6886
|
+
// @TODO avoid for..of because of the large polyfill
|
|
6887
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
6859
6888
|
for (var _i = 0, _Object$keys = Object.keys(first); _i < _Object$keys.length; _i++) {
|
|
6860
6889
|
var key = _Object$keys[_i];
|
|
6861
6890
|
if (!(key in second)) {
|
|
@@ -6887,6 +6916,7 @@
|
|
|
6887
6916
|
});
|
|
6888
6917
|
}
|
|
6889
6918
|
|
|
6919
|
+
var _excluded = ["facets", "disjunctiveFacets", "facetsRefinements", "facetsExcludes", "disjunctiveFacetsRefinements", "numericRefinements", "tagRefinements", "hierarchicalFacets", "hierarchicalFacetsRefinements", "ruleContexts"];
|
|
6890
6920
|
var mergeWithRest = function mergeWithRest(left, right) {
|
|
6891
6921
|
var facets = right.facets,
|
|
6892
6922
|
disjunctiveFacets = right.disjunctiveFacets,
|
|
@@ -6898,7 +6928,7 @@
|
|
|
6898
6928
|
hierarchicalFacets = right.hierarchicalFacets,
|
|
6899
6929
|
hierarchicalFacetsRefinements = right.hierarchicalFacetsRefinements,
|
|
6900
6930
|
ruleContexts = right.ruleContexts,
|
|
6901
|
-
rest = _objectWithoutProperties(right,
|
|
6931
|
+
rest = _objectWithoutProperties(right, _excluded);
|
|
6902
6932
|
return left.setQueryParameters(rest);
|
|
6903
6933
|
};
|
|
6904
6934
|
|
|
@@ -7101,6 +7131,7 @@
|
|
|
7101
7131
|
return Array.isArray(value) ? value : [value];
|
|
7102
7132
|
}
|
|
7103
7133
|
|
|
7134
|
+
var _excluded$1 = ["initialSearchParameters"];
|
|
7104
7135
|
var withUsage = createDocumentationMessageGenerator({
|
|
7105
7136
|
name: 'index-widget'
|
|
7106
7137
|
});
|
|
@@ -7140,7 +7171,7 @@
|
|
|
7140
7171
|
}
|
|
7141
7172
|
function getLocalWidgetsSearchParameters(widgets, widgetSearchParametersOptions) {
|
|
7142
7173
|
var initialSearchParameters = widgetSearchParametersOptions.initialSearchParameters,
|
|
7143
|
-
rest = _objectWithoutProperties(widgetSearchParametersOptions,
|
|
7174
|
+
rest = _objectWithoutProperties(widgetSearchParametersOptions, _excluded$1);
|
|
7144
7175
|
return widgets.filter(function (widget) {
|
|
7145
7176
|
return !isIndexWidget(widget);
|
|
7146
7177
|
}).reduce(function (state, widget) {
|
|
@@ -7542,7 +7573,7 @@
|
|
|
7542
7573
|
instantSearchInstance.renderState = _objectSpread2(_objectSpread2({}, instantSearchInstance.renderState), {}, _defineProperty({}, parentIndexName, _objectSpread2(_objectSpread2({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
|
|
7543
7574
|
}
|
|
7544
7575
|
|
|
7545
|
-
var version$1 = '4.49.
|
|
7576
|
+
var version$1 = '4.49.4';
|
|
7546
7577
|
|
|
7547
7578
|
var NAMESPACE = 'ais';
|
|
7548
7579
|
var component = function component(componentName) {
|
|
@@ -7570,7 +7601,9 @@
|
|
|
7570
7601
|
_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
7602
|
var _ref2 = highlightAttributeResult || {},
|
|
7572
7603
|
_ref2$value = _ref2.value,
|
|
7573
|
-
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7604
|
+
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7605
|
+
|
|
7606
|
+
// cx is not used, since it would be bundled as a dependency for Vue & Angular
|
|
7574
7607
|
var className = suit({
|
|
7575
7608
|
descendantName: 'highlighted'
|
|
7576
7609
|
}) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
|
|
@@ -7591,7 +7624,9 @@
|
|
|
7591
7624
|
_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
7625
|
var _ref2 = highlightAttributeResult || {},
|
|
7593
7626
|
_ref2$value = _ref2.value,
|
|
7594
|
-
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7627
|
+
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7628
|
+
|
|
7629
|
+
// cx is not used, since it would be bundled as a dependency for Vue & Angular
|
|
7595
7630
|
var className = suit$1({
|
|
7596
7631
|
descendantName: 'highlighted'
|
|
7597
7632
|
}) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
|
|
@@ -7613,7 +7648,9 @@
|
|
|
7613
7648
|
_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
7649
|
var _ref2 = snippetAttributeResult || {},
|
|
7615
7650
|
_ref2$value = _ref2.value,
|
|
7616
|
-
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7651
|
+
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7652
|
+
|
|
7653
|
+
// cx is not used, since it would be bundled as a dependency for Vue & Angular
|
|
7617
7654
|
var className = suit$2({
|
|
7618
7655
|
descendantName: 'highlighted'
|
|
7619
7656
|
}) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
|
|
@@ -7634,7 +7671,9 @@
|
|
|
7634
7671
|
_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
7672
|
var _ref2 = snippetAttributeResult || {},
|
|
7636
7673
|
_ref2$value = _ref2.value,
|
|
7637
|
-
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7674
|
+
attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
|
|
7675
|
+
|
|
7676
|
+
// cx is not used, since it would be bundled as a dependency for Vue & Angular
|
|
7638
7677
|
var className = suit$3({
|
|
7639
7678
|
descendantName: 'highlighted'
|
|
7640
7679
|
}) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
|
|
@@ -7774,9 +7813,10 @@
|
|
|
7774
7813
|
};
|
|
7775
7814
|
}
|
|
7776
7815
|
|
|
7816
|
+
var _excluded$2 = ["configure"];
|
|
7777
7817
|
function getIndexStateWithoutConfigure(uiState) {
|
|
7778
7818
|
var configure = uiState.configure,
|
|
7779
|
-
trackedUiState = _objectWithoutProperties(uiState,
|
|
7819
|
+
trackedUiState = _objectWithoutProperties(uiState, _excluded$2);
|
|
7780
7820
|
return trackedUiState;
|
|
7781
7821
|
}
|
|
7782
7822
|
|
|
@@ -8694,22 +8734,16 @@
|
|
|
8694
8734
|
key: "onUpdate",
|
|
8695
8735
|
value: function onUpdate(callback) {
|
|
8696
8736
|
var _this3 = this;
|
|
8697
|
-
this._onPopState = function (
|
|
8737
|
+
this._onPopState = function () {
|
|
8698
8738
|
if (_this3.writeTimer) {
|
|
8699
8739
|
clearTimeout(_this3.writeTimer);
|
|
8700
8740
|
_this3.writeTimer = undefined;
|
|
8701
8741
|
}
|
|
8702
8742
|
_this3.inPopState = true;
|
|
8703
|
-
var routeState = event.state;
|
|
8704
8743
|
|
|
8705
|
-
//
|
|
8706
|
-
//
|
|
8707
|
-
|
|
8708
|
-
if (!routeState) {
|
|
8709
|
-
callback(_this3.read());
|
|
8710
|
-
} else {
|
|
8711
|
-
callback(routeState);
|
|
8712
|
-
}
|
|
8744
|
+
// We always read the state from the URL because the state of the history
|
|
8745
|
+
// can be incorect in some cases (e.g. using React Router).
|
|
8746
|
+
callback(_this3.read());
|
|
8713
8747
|
};
|
|
8714
8748
|
safelyRunOnBrowser(function (_ref4) {
|
|
8715
8749
|
var window = _ref4.window;
|
|
@@ -9816,6 +9850,7 @@
|
|
|
9816
9850
|
return refinement.name;
|
|
9817
9851
|
}
|
|
9818
9852
|
|
|
9853
|
+
var _excluded$3 = ["name", "escapedValue", "data", "path"];
|
|
9819
9854
|
var withUsage$4 = createDocumentationMessageGenerator({
|
|
9820
9855
|
name: 'hierarchical-menu',
|
|
9821
9856
|
connector: true
|
|
@@ -9894,7 +9929,7 @@
|
|
|
9894
9929
|
value = _ref2.escapedValue,
|
|
9895
9930
|
data = _ref2.data,
|
|
9896
9931
|
path = _ref2.path,
|
|
9897
|
-
subValue = _objectWithoutProperties(_ref2,
|
|
9932
|
+
subValue = _objectWithoutProperties(_ref2, _excluded$3);
|
|
9898
9933
|
var item = _objectSpread2(_objectSpread2({}, subValue), {}, {
|
|
9899
9934
|
value: value,
|
|
9900
9935
|
label: label,
|
|
@@ -10233,7 +10268,7 @@
|
|
|
10233
10268
|
};
|
|
10234
10269
|
}
|
|
10235
10270
|
|
|
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;
|
|
10271
|
+
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
10272
|
|
|
10238
10273
|
var findInsightsTarget = function findInsightsTarget(startElement, endElement, validator) {
|
|
10239
10274
|
var element = startElement;
|
|
@@ -10420,6 +10455,7 @@
|
|
|
10420
10455
|
};
|
|
10421
10456
|
};
|
|
10422
10457
|
|
|
10458
|
+
var _excluded$4 = ["page"];
|
|
10423
10459
|
var withUsage$7 = createDocumentationMessageGenerator({
|
|
10424
10460
|
name: 'infinite-hits',
|
|
10425
10461
|
connector: true
|
|
@@ -10427,7 +10463,7 @@
|
|
|
10427
10463
|
function getStateWithoutPage(state) {
|
|
10428
10464
|
var _ref = state || {},
|
|
10429
10465
|
page = _ref.page,
|
|
10430
|
-
rest = _objectWithoutProperties(_ref,
|
|
10466
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
10431
10467
|
return rest;
|
|
10432
10468
|
}
|
|
10433
10469
|
function getInMemoryCache() {
|
|
@@ -10633,6 +10669,7 @@
|
|
|
10633
10669
|
|
|
10634
10670
|
var connectInfiniteHitsWithInsights = withInsights(connectInfiniteHits);
|
|
10635
10671
|
|
|
10672
|
+
var _excluded$5 = ["name", "escapedValue", "path"];
|
|
10636
10673
|
var withUsage$8 = createDocumentationMessageGenerator({
|
|
10637
10674
|
name: 'menu',
|
|
10638
10675
|
connector: true
|
|
@@ -10758,7 +10795,7 @@
|
|
|
10758
10795
|
var label = _ref3.name,
|
|
10759
10796
|
value = _ref3.escapedValue,
|
|
10760
10797
|
path = _ref3.path,
|
|
10761
|
-
item = _objectWithoutProperties(_ref3,
|
|
10798
|
+
item = _objectWithoutProperties(_ref3, _excluded$5);
|
|
10762
10799
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
10763
10800
|
label: label,
|
|
10764
10801
|
value: value
|
|
@@ -10956,6 +10993,8 @@
|
|
|
10956
10993
|
var hasNoResults = results ? results.nbHits === 0 : true;
|
|
10957
10994
|
var preparedItems = prepareItems(state);
|
|
10958
10995
|
var allIsSelected = true;
|
|
10996
|
+
// @TODO avoid for..of for polyfill reasons
|
|
10997
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
10959
10998
|
var _iterator = _createForOfIteratorHelper(preparedItems),
|
|
10960
10999
|
_step;
|
|
10961
11000
|
try {
|
|
@@ -11498,6 +11537,8 @@
|
|
|
11498
11537
|
};
|
|
11499
11538
|
};
|
|
11500
11539
|
|
|
11540
|
+
var _excluded$6 = ["name", "escapedValue"],
|
|
11541
|
+
_excluded2 = ["escapedValue", "value"];
|
|
11501
11542
|
var withUsage$c = createDocumentationMessageGenerator({
|
|
11502
11543
|
name: 'refinement-list',
|
|
11503
11544
|
connector: true
|
|
@@ -11549,7 +11590,7 @@
|
|
|
11549
11590
|
var formatItems = function formatItems(_ref2) {
|
|
11550
11591
|
var label = _ref2.name,
|
|
11551
11592
|
value = _ref2.escapedValue,
|
|
11552
|
-
item = _objectWithoutProperties(_ref2,
|
|
11593
|
+
item = _objectWithoutProperties(_ref2, _excluded$6);
|
|
11553
11594
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
11554
11595
|
value: value,
|
|
11555
11596
|
label: label,
|
|
@@ -11606,7 +11647,7 @@
|
|
|
11606
11647
|
var normalizedFacetValues = transformItems(facetValues.map(function (_ref3) {
|
|
11607
11648
|
var escapedValue = _ref3.escapedValue,
|
|
11608
11649
|
value = _ref3.value,
|
|
11609
|
-
item = _objectWithoutProperties(_ref3,
|
|
11650
|
+
item = _objectWithoutProperties(_ref3, _excluded2);
|
|
11610
11651
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
11611
11652
|
value: escapedValue,
|
|
11612
11653
|
label: value
|
|
@@ -13604,7 +13645,9 @@
|
|
|
13604
13645
|
_ref$escapeHTML = _ref.escapeHTML,
|
|
13605
13646
|
escapeHTML = _ref$escapeHTML === void 0 ? true : _ref$escapeHTML,
|
|
13606
13647
|
_ref$extraParameters = _ref.extraParameters,
|
|
13607
|
-
extraParameters = _ref$extraParameters === void 0 ? {} : _ref$extraParameters;
|
|
13648
|
+
extraParameters = _ref$extraParameters === void 0 ? {} : _ref$extraParameters;
|
|
13649
|
+
|
|
13650
|
+
// @ts-expect-error checking for the wrong value
|
|
13608
13651
|
if (!queryLanguages || queryLanguages.length === 0) {
|
|
13609
13652
|
throw new Error(withUsage$q('The `queryLanguages` expects an array of strings.'));
|
|
13610
13653
|
}
|
|
@@ -13961,6 +14004,8 @@
|
|
|
13961
14004
|
var cachedState = null;
|
|
13962
14005
|
var serializeRefinements = function serializeRefinements(parameters) {
|
|
13963
14006
|
var refinements = [];
|
|
14007
|
+
|
|
14008
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
13964
14009
|
for (var parameter in parameters) {
|
|
13965
14010
|
if (parameters.hasOwnProperty(parameter)) {
|
|
13966
14011
|
var values = parameters[parameter].join('+');
|
|
@@ -13971,6 +14016,8 @@
|
|
|
13971
14016
|
};
|
|
13972
14017
|
var serializeNumericRefinements = function serializeNumericRefinements(numericRefinements) {
|
|
13973
14018
|
var refinements = [];
|
|
14019
|
+
|
|
14020
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
13974
14021
|
for (var attribute in numericRefinements) {
|
|
13975
14022
|
if (numericRefinements.hasOwnProperty(attribute)) {
|
|
13976
14023
|
var filter = numericRefinements[attribute];
|
|
@@ -13986,6 +14033,8 @@
|
|
|
13986
14033
|
refinements.push("".concat(attribute, "=").concat(attribute, "_to").concat(filter['<=']));
|
|
13987
14034
|
} else if (filter.hasOwnProperty('=')) {
|
|
13988
14035
|
var equals = [];
|
|
14036
|
+
|
|
14037
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
13989
14038
|
for (var equal in filter['=']) {
|
|
13990
14039
|
// eslint-disable-next-line max-depth
|
|
13991
14040
|
if (filter['='].hasOwnProperty(equal)) {
|
|
@@ -14919,19 +14968,16 @@
|
|
|
14919
14968
|
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
14920
14969
|
for (var i = 1; i < arguments.length; i++) {
|
|
14921
14970
|
var source = arguments[i];
|
|
14922
|
-
|
|
14923
14971
|
for (var key in source) {
|
|
14924
14972
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14925
14973
|
target[key] = source[key];
|
|
14926
14974
|
}
|
|
14927
14975
|
}
|
|
14928
14976
|
}
|
|
14929
|
-
|
|
14930
14977
|
return target;
|
|
14931
14978
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14932
14979
|
return _extends.apply(this, arguments);
|
|
14933
14980
|
}
|
|
14934
|
-
|
|
14935
14981
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14936
14982
|
});
|
|
14937
14983
|
|
|
@@ -14943,16 +14989,13 @@
|
|
|
14943
14989
|
var target = {};
|
|
14944
14990
|
var sourceKeys = Object.keys(source);
|
|
14945
14991
|
var key, i;
|
|
14946
|
-
|
|
14947
14992
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
14948
14993
|
key = sourceKeys[i];
|
|
14949
14994
|
if (excluded.indexOf(key) >= 0) continue;
|
|
14950
14995
|
target[key] = source[key];
|
|
14951
14996
|
}
|
|
14952
|
-
|
|
14953
14997
|
return target;
|
|
14954
14998
|
}
|
|
14955
|
-
|
|
14956
14999
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14957
15000
|
});
|
|
14958
15001
|
|
|
@@ -14963,10 +15006,8 @@
|
|
|
14963
15006
|
if (source == null) return {};
|
|
14964
15007
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
14965
15008
|
var key, i;
|
|
14966
|
-
|
|
14967
15009
|
if (Object.getOwnPropertySymbols) {
|
|
14968
15010
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
14969
|
-
|
|
14970
15011
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
14971
15012
|
key = sourceSymbolKeys[i];
|
|
14972
15013
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -14974,16 +15015,14 @@
|
|
|
14974
15015
|
target[key] = source[key];
|
|
14975
15016
|
}
|
|
14976
15017
|
}
|
|
14977
|
-
|
|
14978
15018
|
return target;
|
|
14979
15019
|
}
|
|
14980
|
-
|
|
14981
15020
|
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14982
15021
|
});
|
|
14983
15022
|
|
|
14984
15023
|
var _objectWithoutProperties$1 = unwrapExports(objectWithoutProperties);
|
|
14985
15024
|
|
|
14986
|
-
var _excluded = ["parts", "highlightedTagName", "nonHighlightedTagName", "separator", "className", "classNames"];
|
|
15025
|
+
var _excluded$7 = ["parts", "highlightedTagName", "nonHighlightedTagName", "separator", "className", "classNames"];
|
|
14987
15026
|
// This is a minimal subset of the actual types from the `JSX` namespace.
|
|
14988
15027
|
|
|
14989
15028
|
function createHighlightPartComponent(_ref) {
|
|
@@ -15019,7 +15058,7 @@
|
|
|
15019
15058
|
className = _ref4.className,
|
|
15020
15059
|
_ref4$classNames = _ref4.classNames,
|
|
15021
15060
|
classNames = _ref4$classNames === void 0 ? {} : _ref4$classNames,
|
|
15022
|
-
props = _objectWithoutProperties$1(_ref4, _excluded);
|
|
15061
|
+
props = _objectWithoutProperties$1(_ref4, _excluded$7);
|
|
15023
15062
|
|
|
15024
15063
|
return createElement("span", _extends$1({}, props, {
|
|
15025
15064
|
className: cx(classNames.root, className)
|
|
@@ -15047,10 +15086,11 @@
|
|
|
15047
15086
|
Fragment: p
|
|
15048
15087
|
});
|
|
15049
15088
|
|
|
15089
|
+
var _excluded$8 = ["classNames"];
|
|
15050
15090
|
function Highlight(_ref) {
|
|
15051
15091
|
var _ref$classNames = _ref.classNames,
|
|
15052
15092
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
15053
|
-
props = _objectWithoutProperties(_ref,
|
|
15093
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
15054
15094
|
return h(InternalHighlight, _extends({
|
|
15055
15095
|
classNames: {
|
|
15056
15096
|
root: cx('ais-Highlight', classNames.root),
|
|
@@ -15061,11 +15101,12 @@
|
|
|
15061
15101
|
}, props));
|
|
15062
15102
|
}
|
|
15063
15103
|
|
|
15104
|
+
var _excluded$9 = ["hit", "attribute", "cssClasses"];
|
|
15064
15105
|
function Highlight$1(_ref) {
|
|
15065
15106
|
var hit = _ref.hit,
|
|
15066
15107
|
attribute = _ref.attribute,
|
|
15067
15108
|
cssClasses = _ref.cssClasses,
|
|
15068
|
-
props = _objectWithoutProperties(_ref,
|
|
15109
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
15069
15110
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
15070
15111
|
var properties = toArray(property);
|
|
15071
15112
|
_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 +15120,11 @@
|
|
|
15079
15120
|
}));
|
|
15080
15121
|
}
|
|
15081
15122
|
|
|
15123
|
+
var _excluded$a = ["classNames"];
|
|
15082
15124
|
function ReverseHighlight(_ref) {
|
|
15083
15125
|
var _ref$classNames = _ref.classNames,
|
|
15084
15126
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
15085
|
-
props = _objectWithoutProperties(_ref,
|
|
15127
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
15086
15128
|
return h(InternalHighlight, _extends({
|
|
15087
15129
|
classNames: {
|
|
15088
15130
|
root: cx('ais-ReverseHighlight', classNames.root),
|
|
@@ -15093,11 +15135,13 @@
|
|
|
15093
15135
|
}, props));
|
|
15094
15136
|
}
|
|
15095
15137
|
|
|
15138
|
+
var _excluded$b = ["hit", "attribute", "cssClasses"],
|
|
15139
|
+
_excluded2$1 = ["isHighlighted"];
|
|
15096
15140
|
function ReverseHighlight$1(_ref) {
|
|
15097
15141
|
var hit = _ref.hit,
|
|
15098
15142
|
attribute = _ref.attribute,
|
|
15099
15143
|
cssClasses = _ref.cssClasses,
|
|
15100
|
-
props = _objectWithoutProperties(_ref,
|
|
15144
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
15101
15145
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
15102
15146
|
var properties = toArray(property);
|
|
15103
15147
|
_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 +15149,7 @@
|
|
|
15105
15149
|
var value = _ref2.value;
|
|
15106
15150
|
return getHighlightedParts(unescape$1(value || '')).map(function (_ref3) {
|
|
15107
15151
|
var isHighlighted = _ref3.isHighlighted,
|
|
15108
|
-
rest = _objectWithoutProperties(_ref3,
|
|
15152
|
+
rest = _objectWithoutProperties(_ref3, _excluded2$1);
|
|
15109
15153
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
15110
15154
|
isHighlighted: !isHighlighted
|
|
15111
15155
|
});
|
|
@@ -15117,10 +15161,11 @@
|
|
|
15117
15161
|
}));
|
|
15118
15162
|
}
|
|
15119
15163
|
|
|
15164
|
+
var _excluded$c = ["classNames"];
|
|
15120
15165
|
function ReverseSnippet(_ref) {
|
|
15121
15166
|
var _ref$classNames = _ref.classNames,
|
|
15122
15167
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
15123
|
-
props = _objectWithoutProperties(_ref,
|
|
15168
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
15124
15169
|
return h(InternalHighlight, _extends({
|
|
15125
15170
|
classNames: {
|
|
15126
15171
|
root: cx('ais-ReverseSnippet', classNames.root),
|
|
@@ -15131,11 +15176,13 @@
|
|
|
15131
15176
|
}, props));
|
|
15132
15177
|
}
|
|
15133
15178
|
|
|
15179
|
+
var _excluded$d = ["hit", "attribute", "cssClasses"],
|
|
15180
|
+
_excluded2$2 = ["isHighlighted"];
|
|
15134
15181
|
function ReverseSnippet$1(_ref) {
|
|
15135
15182
|
var hit = _ref.hit,
|
|
15136
15183
|
attribute = _ref.attribute,
|
|
15137
15184
|
cssClasses = _ref.cssClasses,
|
|
15138
|
-
props = _objectWithoutProperties(_ref,
|
|
15185
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
15139
15186
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
15140
15187
|
var properties = toArray(property);
|
|
15141
15188
|
_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 +15190,7 @@
|
|
|
15143
15190
|
var value = _ref2.value;
|
|
15144
15191
|
return getHighlightedParts(unescape$1(value || '')).map(function (_ref3) {
|
|
15145
15192
|
var isHighlighted = _ref3.isHighlighted,
|
|
15146
|
-
rest = _objectWithoutProperties(_ref3,
|
|
15193
|
+
rest = _objectWithoutProperties(_ref3, _excluded2$2);
|
|
15147
15194
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
15148
15195
|
isHighlighted: !isHighlighted
|
|
15149
15196
|
});
|
|
@@ -15155,10 +15202,11 @@
|
|
|
15155
15202
|
}));
|
|
15156
15203
|
}
|
|
15157
15204
|
|
|
15205
|
+
var _excluded$e = ["classNames"];
|
|
15158
15206
|
function Snippet(_ref) {
|
|
15159
15207
|
var _ref$classNames = _ref.classNames,
|
|
15160
15208
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
15161
|
-
props = _objectWithoutProperties(_ref,
|
|
15209
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
15162
15210
|
return h(InternalHighlight, _extends({
|
|
15163
15211
|
classNames: {
|
|
15164
15212
|
root: cx('ais-Snippet', classNames.root),
|
|
@@ -15169,11 +15217,12 @@
|
|
|
15169
15217
|
}, props));
|
|
15170
15218
|
}
|
|
15171
15219
|
|
|
15220
|
+
var _excluded$f = ["hit", "attribute", "cssClasses"];
|
|
15172
15221
|
function Snippet$1(_ref) {
|
|
15173
15222
|
var hit = _ref.hit,
|
|
15174
15223
|
attribute = _ref.attribute,
|
|
15175
15224
|
cssClasses = _ref.cssClasses,
|
|
15176
|
-
props = _objectWithoutProperties(_ref,
|
|
15225
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
15177
15226
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
15178
15227
|
var properties = toArray(property);
|
|
15179
15228
|
_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 +15865,7 @@
|
|
|
15816
15865
|
});
|
|
15817
15866
|
};
|
|
15818
15867
|
|
|
15868
|
+
var _excluded$g = ["container", "widgets", "fallbackWidget"];
|
|
15819
15869
|
var withUsage$x = createDocumentationMessageGenerator({
|
|
15820
15870
|
name: 'dynamic-widgets'
|
|
15821
15871
|
});
|
|
@@ -15833,7 +15883,7 @@
|
|
|
15833
15883
|
containerSelector = _ref.container,
|
|
15834
15884
|
widgets = _ref.widgets,
|
|
15835
15885
|
fallbackWidget = _ref.fallbackWidget,
|
|
15836
|
-
otherWidgetParams = _objectWithoutProperties(_ref,
|
|
15886
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$g);
|
|
15837
15887
|
if (!containerSelector) {
|
|
15838
15888
|
throw new Error(withUsage$x('The `container` option is required.'));
|
|
15839
15889
|
}
|
|
@@ -16081,7 +16131,9 @@
|
|
|
16081
16131
|
var _collectMarkersForNex = collectMarkersForNextRender(renderState.markers, nextItemsIds),
|
|
16082
16132
|
_collectMarkersForNex2 = _slicedToArray(_collectMarkersForNex, 2),
|
|
16083
16133
|
updateMarkers = _collectMarkersForNex2[0],
|
|
16084
|
-
exitMarkers = _collectMarkersForNex2[1];
|
|
16134
|
+
exitMarkers = _collectMarkersForNex2[1];
|
|
16135
|
+
|
|
16136
|
+
// Collect items that will be added
|
|
16085
16137
|
var updateMarkerIds = updateMarkers.map(function (_) {
|
|
16086
16138
|
return _.__id;
|
|
16087
16139
|
});
|
|
@@ -16276,6 +16328,9 @@
|
|
|
16276
16328
|
return HTMLMarker;
|
|
16277
16329
|
};
|
|
16278
16330
|
|
|
16331
|
+
var _excluded$h = ["initialZoom", "initialPosition", "templates", "cssClasses", "builtInMarker", "customHTMLMarker", "enableRefine", "enableClearMapRefinement", "enableRefineControl", "container", "googleReference"],
|
|
16332
|
+
_excluded2$3 = ["item"],
|
|
16333
|
+
_excluded3 = ["item"];
|
|
16279
16334
|
var withUsage$y = createDocumentationMessageGenerator({
|
|
16280
16335
|
name: 'geo-search'
|
|
16281
16336
|
});
|
|
@@ -16317,7 +16372,7 @@
|
|
|
16317
16372
|
enableRefineControl = _ref$enableRefineCont === void 0 ? true : _ref$enableRefineCont,
|
|
16318
16373
|
container = _ref.container,
|
|
16319
16374
|
googleReference = _ref.googleReference,
|
|
16320
|
-
otherWidgetParams = _objectWithoutProperties(_ref,
|
|
16375
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$h);
|
|
16321
16376
|
var defaultBuiltInMarker = {
|
|
16322
16377
|
createOptions: function createOptions() {
|
|
16323
16378
|
return {};
|
|
@@ -16376,7 +16431,7 @@
|
|
|
16376
16431
|
var customHTMLMarker = isCustomHTMLMarker && _objectSpread2(_objectSpread2({}, defaultCustomHTMLMarker), userCustomHTMLMarker);
|
|
16377
16432
|
var createBuiltInMarker = function createBuiltInMarker(_ref2) {
|
|
16378
16433
|
var item = _ref2.item,
|
|
16379
|
-
rest = _objectWithoutProperties(_ref2,
|
|
16434
|
+
rest = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
16380
16435
|
return new googleReference.maps.Marker(_objectSpread2(_objectSpread2(_objectSpread2({}, builtInMarker.createOptions(item)), rest), {}, {
|
|
16381
16436
|
// @ts-expect-error @types/googlemaps doesn't document this
|
|
16382
16437
|
__id: item.objectID,
|
|
@@ -16386,7 +16441,7 @@
|
|
|
16386
16441
|
var HTMLMarker = createHTMLMarker(googleReference);
|
|
16387
16442
|
var createCustomHTMLMarker = function createCustomHTMLMarker(_ref3) {
|
|
16388
16443
|
var item = _ref3.item,
|
|
16389
|
-
rest = _objectWithoutProperties(_ref3,
|
|
16444
|
+
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
16390
16445
|
return new HTMLMarker(_objectSpread2(_objectSpread2(_objectSpread2({}, customHTMLMarker.createOptions(item)), rest), {}, {
|
|
16391
16446
|
__id: item.objectID,
|
|
16392
16447
|
position: item._geoloc,
|
|
@@ -16644,6 +16699,7 @@
|
|
|
16644
16699
|
}(d);
|
|
16645
16700
|
_defineProperty(SearchBox, "defaultProps", defaultProps$1);
|
|
16646
16701
|
|
|
16702
|
+
var _excluded$i = ["root"];
|
|
16647
16703
|
var defaultProps$2 = {
|
|
16648
16704
|
cssClasses: {},
|
|
16649
16705
|
depth: 0
|
|
@@ -16680,7 +16736,7 @@
|
|
|
16680
16736
|
if (isHierarchicalMenuItem(facetValue) && Array.isArray(facetValue.data) && facetValue.data.length > 0) {
|
|
16681
16737
|
var _this$props$cssClasse = this.props.cssClasses,
|
|
16682
16738
|
root = _this$props$cssClasse.root,
|
|
16683
|
-
cssClasses = _objectWithoutProperties(_this$props$cssClasse,
|
|
16739
|
+
cssClasses = _objectWithoutProperties(_this$props$cssClasse, _excluded$i);
|
|
16684
16740
|
subItems = h(RefinementList, _extends({}, this.props, {
|
|
16685
16741
|
// We want to keep `root` required for external usage but not for the
|
|
16686
16742
|
// sub items.
|
|
@@ -18046,19 +18102,19 @@
|
|
|
18046
18102
|
});
|
|
18047
18103
|
};
|
|
18048
18104
|
|
|
18049
|
-
var
|
|
18105
|
+
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
18106
|
|
|
18051
18107
|
function Panel(props) {
|
|
18052
|
-
var _useState =
|
|
18108
|
+
var _useState = y$1(props.isCollapsed),
|
|
18053
18109
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18054
18110
|
isCollapsed = _useState2[0],
|
|
18055
18111
|
setIsCollapsed = _useState2[1];
|
|
18056
|
-
var _useState3 =
|
|
18112
|
+
var _useState3 = y$1(false),
|
|
18057
18113
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18058
18114
|
isControlled = _useState4[0],
|
|
18059
18115
|
setIsControlled = _useState4[1];
|
|
18060
|
-
var bodyRef =
|
|
18061
|
-
|
|
18116
|
+
var bodyRef = A$1(null);
|
|
18117
|
+
s$1(function () {
|
|
18062
18118
|
var node = bodyRef.current;
|
|
18063
18119
|
if (!node) {
|
|
18064
18120
|
return undefined;
|
|
@@ -18264,6 +18320,8 @@
|
|
|
18264
18320
|
};
|
|
18265
18321
|
};
|
|
18266
18322
|
|
|
18323
|
+
var _excluded$j = ["placesReference", "defaultPosition"],
|
|
18324
|
+
_excluded2$4 = ["places"];
|
|
18267
18325
|
/** @ts-ignore */
|
|
18268
18326
|
|
|
18269
18327
|
// using the type like this requires only one ts-ignore
|
|
@@ -18277,7 +18335,7 @@
|
|
|
18277
18335
|
placesReference = _ref.placesReference,
|
|
18278
18336
|
_ref$defaultPosition = _ref.defaultPosition,
|
|
18279
18337
|
defaultPosition = _ref$defaultPosition === void 0 ? [] : _ref$defaultPosition,
|
|
18280
|
-
placesOptions = _objectWithoutProperties(_ref,
|
|
18338
|
+
placesOptions = _objectWithoutProperties(_ref, _excluded$j);
|
|
18281
18339
|
if (typeof placesReference !== 'function') {
|
|
18282
18340
|
throw new Error('The `placesReference` option requires a valid Places.js reference.');
|
|
18283
18341
|
}
|
|
@@ -18318,7 +18376,7 @@
|
|
|
18318
18376
|
var hasPositionSet = position !== defaultPosition.join(',');
|
|
18319
18377
|
if (!hasPositionSet && !state.query) {
|
|
18320
18378
|
var places = uiState.places,
|
|
18321
|
-
uiStateWithoutPlaces = _objectWithoutProperties(uiState,
|
|
18379
|
+
uiStateWithoutPlaces = _objectWithoutProperties(uiState, _excluded2$4);
|
|
18322
18380
|
return uiStateWithoutPlaces;
|
|
18323
18381
|
}
|
|
18324
18382
|
return _objectSpread2(_objectSpread2({}, uiState), {}, {
|
|
@@ -19250,7 +19308,9 @@
|
|
|
19250
19308
|
key: "updateNewValues",
|
|
19251
19309
|
value: function updateNewValues(nextProps) {
|
|
19252
19310
|
var _this6 = this;
|
|
19253
|
-
var slidingIndex = this.state.slidingIndex;
|
|
19311
|
+
var slidingIndex = this.state.slidingIndex;
|
|
19312
|
+
|
|
19313
|
+
// Don't update while the slider is sliding
|
|
19254
19314
|
if (slidingIndex !== null) {
|
|
19255
19315
|
return;
|
|
19256
19316
|
}
|
|
@@ -19463,7 +19523,9 @@
|
|
|
19463
19523
|
step = _this$props.step,
|
|
19464
19524
|
pips = _this$props.pips,
|
|
19465
19525
|
values = _this$props.values,
|
|
19466
|
-
cssClasses = _this$props.cssClasses;
|
|
19526
|
+
cssClasses = _this$props.cssClasses;
|
|
19527
|
+
|
|
19528
|
+
// @TODO: figure out why this.props needs to be non-null asserted
|
|
19467
19529
|
var _ref4 = this.isDisabled ? {
|
|
19468
19530
|
min: this.props.min,
|
|
19469
19531
|
max: this.props.max + 0.001
|
|
@@ -20372,12 +20434,13 @@
|
|
|
20372
20434
|
});
|
|
20373
20435
|
};
|
|
20374
20436
|
|
|
20437
|
+
var _excluded$k = ["nbHits", "nbSortedHits", "cssClasses", "templateProps"];
|
|
20375
20438
|
var Stats = function Stats(_ref) {
|
|
20376
20439
|
var nbHits = _ref.nbHits,
|
|
20377
20440
|
nbSortedHits = _ref.nbSortedHits,
|
|
20378
20441
|
cssClasses = _ref.cssClasses,
|
|
20379
20442
|
templateProps = _ref.templateProps,
|
|
20380
|
-
rest = _objectWithoutProperties(_ref,
|
|
20443
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
20381
20444
|
return h("div", {
|
|
20382
20445
|
className: cx(cssClasses.root)
|
|
20383
20446
|
}, h(Template, _extends({}, templateProps, {
|
|
@@ -20903,7 +20966,9 @@
|
|
|
20903
20966
|
var _getAppIdAndApiKey = getAppIdAndApiKey(instantSearchInstance.client),
|
|
20904
20967
|
_getAppIdAndApiKey2 = _slicedToArray(_getAppIdAndApiKey, 2),
|
|
20905
20968
|
appId = _getAppIdAndApiKey2[0],
|
|
20906
|
-
apiKey = _getAppIdAndApiKey2[1];
|
|
20969
|
+
apiKey = _getAppIdAndApiKey2[1];
|
|
20970
|
+
|
|
20971
|
+
// search-insights.js also throws an error so dev-only clarification is sufficient
|
|
20907
20972
|
if ( !(appId && apiKey)) {
|
|
20908
20973
|
throw new Error('[insights middleware]: could not extract Algolia credentials from searchClient');
|
|
20909
20974
|
}
|
|
@@ -21025,9 +21090,10 @@
|
|
|
21025
21090
|
history: historyRouter
|
|
21026
21091
|
});
|
|
21027
21092
|
|
|
21093
|
+
var _excluded$l = ["configure"];
|
|
21028
21094
|
function getIndexStateWithoutConfigure$1(uiState) {
|
|
21029
21095
|
var configure = uiState.configure,
|
|
21030
|
-
trackedUiState = _objectWithoutProperties(uiState,
|
|
21096
|
+
trackedUiState = _objectWithoutProperties(uiState, _excluded$l);
|
|
21031
21097
|
return trackedUiState;
|
|
21032
21098
|
}
|
|
21033
21099
|
function singleIndexStateMapping(indexName) {
|
|
@@ -21050,10 +21116,11 @@
|
|
|
21050
21116
|
singleIndex: singleIndexStateMapping
|
|
21051
21117
|
});
|
|
21052
21118
|
|
|
21119
|
+
var _excluded$m = ["page"];
|
|
21053
21120
|
function getStateWithoutPage$1(state) {
|
|
21054
21121
|
var _ref = state || {},
|
|
21055
21122
|
page = _ref.page,
|
|
21056
|
-
rest = _objectWithoutProperties(_ref,
|
|
21123
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
21057
21124
|
return rest;
|
|
21058
21125
|
}
|
|
21059
21126
|
var KEY = 'ais.infiniteHits';
|