react-instantsearch 7.8.0 → 7.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
7
7
 
8
8
  var React__default = 'default' in React ? React['default'] : React;
9
9
 
10
- var version = '7.8.0';
10
+ var version = '7.8.1';
11
11
 
12
12
  // Copyright Joyent, Inc. and other Node contributors.
13
13
  //
@@ -9385,13 +9385,15 @@
9385
9385
  }, additionalWidgetProperties);
9386
9386
  }
9387
9387
 
9388
- function Configure(props) {
9389
- useConfigure(props, {
9390
- $$widgetType: 'ais.configure'
9391
- });
9392
- return null;
9393
- }
9388
+ function _typeof$d(obj) {
9389
+ "@babel/helpers - typeof";
9394
9390
 
9391
+ return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9392
+ return typeof obj;
9393
+ } : function (obj) {
9394
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9395
+ }, _typeof$d(obj);
9396
+ }
9395
9397
  function ownKeys$b(object, enumerableOnly) {
9396
9398
  var keys = Object.keys(object);
9397
9399
  if (Object.getOwnPropertySymbols) {
@@ -9441,14 +9443,70 @@
9441
9443
  }
9442
9444
  return (hint === "string" ? String : Number)(input);
9443
9445
  }
9444
- function _typeof$d(obj) {
9446
+ function Configure(props) {
9447
+ useConfigure(_objectSpread$b({}, props), {
9448
+ $$widgetType: 'ais.configure'
9449
+ });
9450
+ return null;
9451
+ }
9452
+
9453
+ function ownKeys$c(object, enumerableOnly) {
9454
+ var keys = Object.keys(object);
9455
+ if (Object.getOwnPropertySymbols) {
9456
+ var symbols = Object.getOwnPropertySymbols(object);
9457
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
9458
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9459
+ })), keys.push.apply(keys, symbols);
9460
+ }
9461
+ return keys;
9462
+ }
9463
+ function _objectSpread$c(target) {
9464
+ for (var i = 1; i < arguments.length; i++) {
9465
+ var source = null != arguments[i] ? arguments[i] : {};
9466
+ i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
9467
+ _defineProperty$c(target, key, source[key]);
9468
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
9469
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9470
+ });
9471
+ }
9472
+ return target;
9473
+ }
9474
+ function _defineProperty$c(obj, key, value) {
9475
+ key = _toPropertyKey$c(key);
9476
+ if (key in obj) {
9477
+ Object.defineProperty(obj, key, {
9478
+ value: value,
9479
+ enumerable: true,
9480
+ configurable: true,
9481
+ writable: true
9482
+ });
9483
+ } else {
9484
+ obj[key] = value;
9485
+ }
9486
+ return obj;
9487
+ }
9488
+ function _toPropertyKey$c(arg) {
9489
+ var key = _toPrimitive$c(arg, "string");
9490
+ return _typeof$e(key) === "symbol" ? key : String(key);
9491
+ }
9492
+ function _toPrimitive$c(input, hint) {
9493
+ if (_typeof$e(input) !== "object" || input === null) return input;
9494
+ var prim = input[Symbol.toPrimitive];
9495
+ if (prim !== undefined) {
9496
+ var res = prim.call(input, hint || "default");
9497
+ if (_typeof$e(res) !== "object") return res;
9498
+ throw new TypeError("@@toPrimitive must return a primitive value.");
9499
+ }
9500
+ return (hint === "string" ? String : Number)(input);
9501
+ }
9502
+ function _typeof$e(obj) {
9445
9503
  "@babel/helpers - typeof";
9446
9504
 
9447
- return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9505
+ return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9448
9506
  return typeof obj;
9449
9507
  } : function (obj) {
9450
9508
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9451
- }, _typeof$d(obj);
9509
+ }, _typeof$e(obj);
9452
9510
  }
9453
9511
  var withUsage$1 = createDocumentationMessageGenerator({
9454
9512
  name: 'dynamic-widgets',
@@ -9469,7 +9527,7 @@
9469
9527
  } : _widgetParams$transfo,
9470
9528
  fallbackWidget = widgetParams.fallbackWidget;
9471
9529
  if (!(widgets && Array.isArray(widgets) && widgets.every(function (widget) {
9472
- return _typeof$d(widget) === 'object';
9530
+ return _typeof$e(widget) === 'object';
9473
9531
  }))) {
9474
9532
  throw new Error(withUsage$1('The `widgets` option expects an array of widgets.'));
9475
9533
  }
@@ -9487,7 +9545,7 @@
9487
9545
  isMounted: false
9488
9546
  });
9489
9547
  });
9490
- renderFn(_objectSpread$b(_objectSpread$b({}, this.getWidgetRenderState(initOptions)), {}, {
9548
+ renderFn(_objectSpread$c(_objectSpread$c({}, this.getWidgetRenderState(initOptions)), {}, {
9491
9549
  instantSearchInstance: initOptions.instantSearchInstance
9492
9550
  }), true);
9493
9551
  },
@@ -9534,7 +9592,7 @@
9534
9592
  setTimeout(function () {
9535
9593
  return parent.removeWidgets(widgetsToUnmount);
9536
9594
  }, 0);
9537
- renderFn(_objectSpread$b(_objectSpread$b({}, renderState), {}, {
9595
+ renderFn(_objectSpread$c(_objectSpread$c({}, renderState), {}, {
9538
9596
  instantSearchInstance: renderOptions.instantSearchInstance
9539
9597
  }), false);
9540
9598
  },
@@ -9559,7 +9617,7 @@
9559
9617
  }));
9560
9618
  },
9561
9619
  getRenderState: function getRenderState(renderState, renderOptions) {
9562
- return _objectSpread$b(_objectSpread$b({}, renderState), {}, {
9620
+ return _objectSpread$c(_objectSpread$c({}, renderState), {}, {
9563
9621
  dynamicWidgets: this.getWidgetRenderState(renderOptions)
9564
9622
  });
9565
9623
  },
@@ -9588,16 +9646,16 @@
9588
9646
  };
9589
9647
  };
9590
9648
 
9591
- function _typeof$e(obj) {
9649
+ function _typeof$f(obj) {
9592
9650
  "@babel/helpers - typeof";
9593
9651
 
9594
- return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9652
+ return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9595
9653
  return typeof obj;
9596
9654
  } : function (obj) {
9597
9655
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9598
- }, _typeof$e(obj);
9656
+ }, _typeof$f(obj);
9599
9657
  }
9600
- function ownKeys$c(object, enumerableOnly) {
9658
+ function ownKeys$d(object, enumerableOnly) {
9601
9659
  var keys = Object.keys(object);
9602
9660
  if (Object.getOwnPropertySymbols) {
9603
9661
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9607,19 +9665,19 @@
9607
9665
  }
9608
9666
  return keys;
9609
9667
  }
9610
- function _objectSpread$c(target) {
9668
+ function _objectSpread$d(target) {
9611
9669
  for (var i = 1; i < arguments.length; i++) {
9612
9670
  var source = null != arguments[i] ? arguments[i] : {};
9613
- i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
9614
- _defineProperty$c(target, key, source[key]);
9615
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
9671
+ i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
9672
+ _defineProperty$d(target, key, source[key]);
9673
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
9616
9674
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9617
9675
  });
9618
9676
  }
9619
9677
  return target;
9620
9678
  }
9621
- function _defineProperty$c(obj, key, value) {
9622
- key = _toPropertyKey$c(key);
9679
+ function _defineProperty$d(obj, key, value) {
9680
+ key = _toPropertyKey$d(key);
9623
9681
  if (key in obj) {
9624
9682
  Object.defineProperty(obj, key, {
9625
9683
  value: value,
@@ -9632,22 +9690,22 @@
9632
9690
  }
9633
9691
  return obj;
9634
9692
  }
9635
- function _toPropertyKey$c(arg) {
9636
- var key = _toPrimitive$c(arg, "string");
9637
- return _typeof$e(key) === "symbol" ? key : String(key);
9693
+ function _toPropertyKey$d(arg) {
9694
+ var key = _toPrimitive$d(arg, "string");
9695
+ return _typeof$f(key) === "symbol" ? key : String(key);
9638
9696
  }
9639
- function _toPrimitive$c(input, hint) {
9640
- if (_typeof$e(input) !== "object" || input === null) return input;
9697
+ function _toPrimitive$d(input, hint) {
9698
+ if (_typeof$f(input) !== "object" || input === null) return input;
9641
9699
  var prim = input[Symbol.toPrimitive];
9642
9700
  if (prim !== undefined) {
9643
9701
  var res = prim.call(input, hint || "default");
9644
- if (_typeof$e(res) !== "object") return res;
9702
+ if (_typeof$f(res) !== "object") return res;
9645
9703
  throw new TypeError("@@toPrimitive must return a primitive value.");
9646
9704
  }
9647
9705
  return (hint === "string" ? String : Number)(input);
9648
9706
  }
9649
9707
  function useDynamicWidgets(props, additionalWidgetProperties) {
9650
- return useConnector(connectDynamicWidgets, _objectSpread$c(_objectSpread$c({}, props), {}, {
9708
+ return useConnector(connectDynamicWidgets, _objectSpread$d(_objectSpread$d({}, props), {}, {
9651
9709
  // We don't rely on InstantSearch.js for rendering widgets because React
9652
9710
  // directly manipulates the children.
9653
9711
  widgets: []
@@ -9655,14 +9713,14 @@
9655
9713
  }
9656
9714
 
9657
9715
  var _excluded$2 = ["children", "fallbackComponent"];
9658
- function _typeof$f(obj) {
9716
+ function _typeof$g(obj) {
9659
9717
  "@babel/helpers - typeof";
9660
9718
 
9661
- return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9719
+ return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9662
9720
  return typeof obj;
9663
9721
  } : function (obj) {
9664
9722
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9665
- }, _typeof$f(obj);
9723
+ }, _typeof$g(obj);
9666
9724
  }
9667
9725
  function _objectWithoutProperties$2(source, excluded) {
9668
9726
  if (source == null) return {};
@@ -9719,7 +9777,7 @@
9719
9777
  }));
9720
9778
  }
9721
9779
  function isReactElement(element) {
9722
- return _typeof$f(element) === 'object' && element.props;
9780
+ return _typeof$g(element) === 'object' && element.props;
9723
9781
  }
9724
9782
  function getWidgetAttribute$1(element) {
9725
9783
  if (!isReactElement(element)) {
@@ -9738,18 +9796,18 @@
9738
9796
  return undefined;
9739
9797
  }
9740
9798
 
9741
- function _typeof$g(obj) {
9799
+ function _typeof$h(obj) {
9742
9800
  "@babel/helpers - typeof";
9743
9801
 
9744
- return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9802
+ return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9745
9803
  return typeof obj;
9746
9804
  } : function (obj) {
9747
9805
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9748
- }, _typeof$g(obj);
9806
+ }, _typeof$h(obj);
9749
9807
  }
9750
9808
  var _excluded$3 = ["initialSearchParameters"],
9751
9809
  _excluded2$1 = ["initialRecommendParameters"];
9752
- function ownKeys$d(object, enumerableOnly) {
9810
+ function ownKeys$e(object, enumerableOnly) {
9753
9811
  var keys = Object.keys(object);
9754
9812
  if (Object.getOwnPropertySymbols) {
9755
9813
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9759,19 +9817,19 @@
9759
9817
  }
9760
9818
  return keys;
9761
9819
  }
9762
- function _objectSpread$d(target) {
9820
+ function _objectSpread$e(target) {
9763
9821
  for (var i = 1; i < arguments.length; i++) {
9764
9822
  var source = null != arguments[i] ? arguments[i] : {};
9765
- i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
9766
- _defineProperty$d(target, key, source[key]);
9767
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
9823
+ i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
9824
+ _defineProperty$e(target, key, source[key]);
9825
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
9768
9826
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9769
9827
  });
9770
9828
  }
9771
9829
  return target;
9772
9830
  }
9773
- function _defineProperty$d(obj, key, value) {
9774
- key = _toPropertyKey$d(key);
9831
+ function _defineProperty$e(obj, key, value) {
9832
+ key = _toPropertyKey$e(key);
9775
9833
  if (key in obj) {
9776
9834
  Object.defineProperty(obj, key, {
9777
9835
  value: value,
@@ -9784,16 +9842,16 @@
9784
9842
  }
9785
9843
  return obj;
9786
9844
  }
9787
- function _toPropertyKey$d(arg) {
9788
- var key = _toPrimitive$d(arg, "string");
9789
- return _typeof$g(key) === "symbol" ? key : String(key);
9845
+ function _toPropertyKey$e(arg) {
9846
+ var key = _toPrimitive$e(arg, "string");
9847
+ return _typeof$h(key) === "symbol" ? key : String(key);
9790
9848
  }
9791
- function _toPrimitive$d(input, hint) {
9792
- if (_typeof$g(input) !== "object" || input === null) return input;
9849
+ function _toPrimitive$e(input, hint) {
9850
+ if (_typeof$h(input) !== "object" || input === null) return input;
9793
9851
  var prim = input[Symbol.toPrimitive];
9794
9852
  if (prim !== undefined) {
9795
9853
  var res = prim.call(input, hint || "default");
9796
- if (_typeof$g(res) !== "object") return res;
9854
+ if (_typeof$h(res) !== "object") return res;
9797
9855
  throw new TypeError("@@toPrimitive must return a primitive value.");
9798
9856
  }
9799
9857
  return (hint === "string" ? String : Number)(input);
@@ -10005,9 +10063,9 @@
10005
10063
  },
10006
10064
  createURL: function createURL(nextState) {
10007
10065
  if (typeof nextState === 'function') {
10008
- return localInstantSearchInstance._createURL(_defineProperty$d({}, indexId, nextState(localUiState)));
10066
+ return localInstantSearchInstance._createURL(_defineProperty$e({}, indexId, nextState(localUiState)));
10009
10067
  }
10010
- return localInstantSearchInstance._createURL(_defineProperty$d({}, indexId, getLocalWidgetsUiState(localWidgets, {
10068
+ return localInstantSearchInstance._createURL(_defineProperty$e({}, indexId, getLocalWidgetsUiState(localWidgets, {
10011
10069
  searchParameters: nextState,
10012
10070
  helper: helper
10013
10071
  })));
@@ -10349,7 +10407,7 @@
10349
10407
  getWidgetUiState: function getWidgetUiState(uiState) {
10350
10408
  return localWidgets.filter(isIndexWidget).reduce(function (previousUiState, innerIndex) {
10351
10409
  return innerIndex.getWidgetUiState(previousUiState);
10352
- }, _objectSpread$d(_objectSpread$d({}, uiState), {}, _defineProperty$d({}, indexId, _objectSpread$d(_objectSpread$d({}, uiState[indexId]), localUiState))));
10410
+ }, _objectSpread$e(_objectSpread$e({}, uiState), {}, _defineProperty$e({}, indexId, _objectSpread$e(_objectSpread$e({}, uiState[indexId]), localUiState))));
10353
10411
  },
10354
10412
  getWidgetState: function getWidgetState(uiState) {
10355
10413
  return this.getWidgetUiState(uiState);
@@ -10370,7 +10428,7 @@
10370
10428
  setIndexUiState: function setIndexUiState(indexUiState) {
10371
10429
  var nextIndexUiState = typeof indexUiState === 'function' ? indexUiState(localUiState) : indexUiState;
10372
10430
  localInstantSearchInstance.setUiState(function (state) {
10373
- return _objectSpread$d(_objectSpread$d({}, state), {}, _defineProperty$d({}, indexId, nextIndexUiState));
10431
+ return _objectSpread$e(_objectSpread$e({}, state), {}, _defineProperty$e({}, indexId, nextIndexUiState));
10374
10432
  });
10375
10433
  }
10376
10434
  };
@@ -10380,7 +10438,7 @@
10380
10438
  instantSearchInstance = _ref8.instantSearchInstance,
10381
10439
  parent = _ref8.parent;
10382
10440
  var parentIndexName = parent ? parent.getIndexId() : instantSearchInstance.mainIndex.getIndexId();
10383
- instantSearchInstance.renderState = _objectSpread$d(_objectSpread$d({}, instantSearchInstance.renderState), {}, _defineProperty$d({}, parentIndexName, _objectSpread$d(_objectSpread$d({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
10441
+ instantSearchInstance.renderState = _objectSpread$e(_objectSpread$e({}, instantSearchInstance.renderState), {}, _defineProperty$e({}, parentIndexName, _objectSpread$e(_objectSpread$e({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
10384
10442
  }
10385
10443
 
10386
10444
  function _slicedToArray$6(arr, i) {
@@ -10625,21 +10683,21 @@
10625
10683
  return reverseHighlightedValue.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag, 'g'), "<".concat(highlightedTagName, " class=\"").concat(className, "\">")).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag, 'g'), "</".concat(highlightedTagName, ">"));
10626
10684
  }
10627
10685
 
10628
- function _typeof$h(obj) {
10686
+ function _typeof$i(obj) {
10629
10687
  "@babel/helpers - typeof";
10630
10688
 
10631
- return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10689
+ return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10632
10690
  return typeof obj;
10633
10691
  } : function (obj) {
10634
10692
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10635
- }, _typeof$h(obj);
10693
+ }, _typeof$i(obj);
10636
10694
  }
10637
10695
 
10638
10696
  /** @deprecated use bindEvent instead */
10639
10697
  function writeDataAttributes(_ref) {
10640
10698
  var method = _ref.method,
10641
10699
  payload = _ref.payload;
10642
- if (_typeof$h(payload) !== 'object') {
10700
+ if (_typeof$i(payload) !== 'object') {
10643
10701
  throw new Error("The insights helper expects the payload to be an object.");
10644
10702
  }
10645
10703
  var serializedPayload;
@@ -10661,18 +10719,18 @@
10661
10719
  });
10662
10720
  }
10663
10721
 
10664
- function _typeof$i(obj) {
10722
+ function _typeof$j(obj) {
10665
10723
  "@babel/helpers - typeof";
10666
10724
 
10667
- return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10725
+ return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10668
10726
  return typeof obj;
10669
10727
  } : function (obj) {
10670
10728
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10671
- }, _typeof$i(obj);
10729
+ }, _typeof$j(obj);
10672
10730
  }
10673
10731
  var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
10674
10732
  function getCookie(name) {
10675
- if ((typeof document === "undefined" ? "undefined" : _typeof$i(document)) !== 'object' || typeof document.cookie !== 'string') {
10733
+ if ((typeof document === "undefined" ? "undefined" : _typeof$j(document)) !== 'object' || typeof document.cookie !== 'string') {
10676
10734
  return undefined;
10677
10735
  }
10678
10736
  var prefix = "".concat(name, "=");
@@ -10692,16 +10750,16 @@
10692
10750
  return getCookie(ANONYMOUS_TOKEN_COOKIE_KEY);
10693
10751
  }
10694
10752
 
10695
- function _typeof$j(obj) {
10753
+ function _typeof$k(obj) {
10696
10754
  "@babel/helpers - typeof";
10697
10755
 
10698
- return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10756
+ return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10699
10757
  return typeof obj;
10700
10758
  } : function (obj) {
10701
10759
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10702
- }, _typeof$j(obj);
10760
+ }, _typeof$k(obj);
10703
10761
  }
10704
- function ownKeys$e(object, enumerableOnly) {
10762
+ function ownKeys$f(object, enumerableOnly) {
10705
10763
  var keys = Object.keys(object);
10706
10764
  if (Object.getOwnPropertySymbols) {
10707
10765
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10711,19 +10769,19 @@
10711
10769
  }
10712
10770
  return keys;
10713
10771
  }
10714
- function _objectSpread$e(target) {
10772
+ function _objectSpread$f(target) {
10715
10773
  for (var i = 1; i < arguments.length; i++) {
10716
10774
  var source = null != arguments[i] ? arguments[i] : {};
10717
- i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
10718
- _defineProperty$e(target, key, source[key]);
10719
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
10775
+ i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
10776
+ _defineProperty$f(target, key, source[key]);
10777
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
10720
10778
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10721
10779
  });
10722
10780
  }
10723
10781
  return target;
10724
10782
  }
10725
- function _defineProperty$e(obj, key, value) {
10726
- key = _toPropertyKey$e(key);
10783
+ function _defineProperty$f(obj, key, value) {
10784
+ key = _toPropertyKey$f(key);
10727
10785
  if (key in obj) {
10728
10786
  Object.defineProperty(obj, key, {
10729
10787
  value: value,
@@ -10736,16 +10794,16 @@
10736
10794
  }
10737
10795
  return obj;
10738
10796
  }
10739
- function _toPropertyKey$e(arg) {
10740
- var key = _toPrimitive$e(arg, "string");
10741
- return _typeof$j(key) === "symbol" ? key : String(key);
10797
+ function _toPropertyKey$f(arg) {
10798
+ var key = _toPrimitive$f(arg, "string");
10799
+ return _typeof$k(key) === "symbol" ? key : String(key);
10742
10800
  }
10743
- function _toPrimitive$e(input, hint) {
10744
- if (_typeof$j(input) !== "object" || input === null) return input;
10801
+ function _toPrimitive$f(input, hint) {
10802
+ if (_typeof$k(input) !== "object" || input === null) return input;
10745
10803
  var prim = input[Symbol.toPrimitive];
10746
10804
  if (prim !== undefined) {
10747
10805
  var res = prim.call(input, hint || "default");
10748
- if (_typeof$j(res) !== "object") return res;
10806
+ if (_typeof$k(res) !== "object") return res;
10749
10807
  throw new TypeError("@@toPrimitive must return a primitive value.");
10750
10808
  }
10751
10809
  return (hint === "string" ? String : Number)(input);
@@ -10911,7 +10969,7 @@
10911
10969
  // Only `init` if the `insightsInitParams` option is passed or
10912
10970
  // if the `insightsClient` version doesn't supports optional `init` calling.
10913
10971
  if (insightsInitParams || !isModernInsightsClient(insightsClient)) {
10914
- insightsClient('init', _objectSpread$e({
10972
+ insightsClient('init', _objectSpread$f({
10915
10973
  appId: appId,
10916
10974
  apiKey: apiKey,
10917
10975
  partial: true
@@ -10952,7 +11010,7 @@
10952
11010
  // We don't want to force clickAnalytics when the insights is enabled from the search response.
10953
11011
  // This means we don't enable insights for indices that don't opt in
10954
11012
  if (!$$automatic) {
10955
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), {}, {
11013
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$f(_objectSpread$f({}, helper.state), {}, {
10956
11014
  clickAnalytics: true
10957
11015
  }));
10958
11016
  }
@@ -10967,7 +11025,7 @@
10967
11025
  }
10968
11026
  var existingToken = helper.state.userToken;
10969
11027
  function applyToken() {
10970
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), {}, {
11028
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$f(_objectSpread$f({}, helper.state), {}, {
10971
11029
  userToken: normalizedUserToken
10972
11030
  }));
10973
11031
  if (existingToken && existingToken !== userToken) {
@@ -11060,7 +11118,7 @@
11060
11118
  insightsClient('onAuthenticatedUserTokenChange', undefined);
11061
11119
  instantSearchInstance.sendEventToInsights = noop$1;
11062
11120
  if (helper && initialParameters) {
11063
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), initialParameters));
11121
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$f(_objectSpread$f({}, helper.state), initialParameters));
11064
11122
  instantSearchInstance.scheduleSearch();
11065
11123
  }
11066
11124
  }
@@ -11999,14 +12057,14 @@
11999
12057
  stringify: stringify_1
12000
12058
  };
12001
12059
 
12002
- function _typeof$k(obj) {
12060
+ function _typeof$l(obj) {
12003
12061
  "@babel/helpers - typeof";
12004
12062
 
12005
- return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12063
+ return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12006
12064
  return typeof obj;
12007
12065
  } : function (obj) {
12008
12066
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12009
- }, _typeof$k(obj);
12067
+ }, _typeof$l(obj);
12010
12068
  }
12011
12069
  function _classCallCheck(instance, Constructor) {
12012
12070
  if (!(instance instanceof Constructor)) {
@@ -12019,7 +12077,7 @@
12019
12077
  descriptor.enumerable = descriptor.enumerable || false;
12020
12078
  descriptor.configurable = true;
12021
12079
  if ("value" in descriptor) descriptor.writable = true;
12022
- Object.defineProperty(target, _toPropertyKey$f(descriptor.key), descriptor);
12080
+ Object.defineProperty(target, _toPropertyKey$g(descriptor.key), descriptor);
12023
12081
  }
12024
12082
  }
12025
12083
  function _createClass(Constructor, protoProps, staticProps) {
@@ -12030,8 +12088,8 @@
12030
12088
  });
12031
12089
  return Constructor;
12032
12090
  }
12033
- function _defineProperty$f(obj, key, value) {
12034
- key = _toPropertyKey$f(key);
12091
+ function _defineProperty$g(obj, key, value) {
12092
+ key = _toPropertyKey$g(key);
12035
12093
  if (key in obj) {
12036
12094
  Object.defineProperty(obj, key, {
12037
12095
  value: value,
@@ -12044,16 +12102,16 @@
12044
12102
  }
12045
12103
  return obj;
12046
12104
  }
12047
- function _toPropertyKey$f(arg) {
12048
- var key = _toPrimitive$f(arg, "string");
12049
- return _typeof$k(key) === "symbol" ? key : String(key);
12105
+ function _toPropertyKey$g(arg) {
12106
+ var key = _toPrimitive$g(arg, "string");
12107
+ return _typeof$l(key) === "symbol" ? key : String(key);
12050
12108
  }
12051
- function _toPrimitive$f(input, hint) {
12052
- if (_typeof$k(input) !== "object" || input === null) return input;
12109
+ function _toPrimitive$g(input, hint) {
12110
+ if (_typeof$l(input) !== "object" || input === null) return input;
12053
12111
  var prim = input[Symbol.toPrimitive];
12054
12112
  if (prim !== undefined) {
12055
12113
  var res = prim.call(input, hint || "default");
12056
- if (_typeof$k(res) !== "object") return res;
12114
+ if (_typeof$l(res) !== "object") return res;
12057
12115
  throw new TypeError("@@toPrimitive must return a primitive value.");
12058
12116
  }
12059
12117
  return (hint === "string" ? String : Number)(input);
@@ -12083,11 +12141,11 @@
12083
12141
  push = _ref.push,
12084
12142
  cleanUrlOnDispose = _ref.cleanUrlOnDispose;
12085
12143
  _classCallCheck(this, BrowserHistory);
12086
- _defineProperty$f(this, "$$type", 'ais.browser');
12144
+ _defineProperty$g(this, "$$type", 'ais.browser');
12087
12145
  /**
12088
12146
  * Transforms a UI state into a title for the page.
12089
12147
  */
12090
- _defineProperty$f(this, "windowTitle", void 0);
12148
+ _defineProperty$g(this, "windowTitle", void 0);
12091
12149
  /**
12092
12150
  * Time in milliseconds before performing a write in the history.
12093
12151
  * It prevents from adding too many entries in the history and
@@ -12095,43 +12153,43 @@
12095
12153
  *
12096
12154
  * @default 400
12097
12155
  */
12098
- _defineProperty$f(this, "writeDelay", void 0);
12156
+ _defineProperty$g(this, "writeDelay", void 0);
12099
12157
  /**
12100
12158
  * Creates a full URL based on the route state.
12101
12159
  * The storage adaptor maps all syncable keys to the query string of the URL.
12102
12160
  */
12103
- _defineProperty$f(this, "_createURL", void 0);
12161
+ _defineProperty$g(this, "_createURL", void 0);
12104
12162
  /**
12105
12163
  * Parses the URL into a route state.
12106
12164
  * It should be symmetrical to `createURL`.
12107
12165
  */
12108
- _defineProperty$f(this, "parseURL", void 0);
12166
+ _defineProperty$g(this, "parseURL", void 0);
12109
12167
  /**
12110
12168
  * Returns the location to store in the history.
12111
12169
  * @default () => window.location
12112
12170
  */
12113
- _defineProperty$f(this, "getLocation", void 0);
12114
- _defineProperty$f(this, "writeTimer", void 0);
12115
- _defineProperty$f(this, "_onPopState", void 0);
12171
+ _defineProperty$g(this, "getLocation", void 0);
12172
+ _defineProperty$g(this, "writeTimer", void 0);
12173
+ _defineProperty$g(this, "_onPopState", void 0);
12116
12174
  /**
12117
12175
  * Indicates if last action was back/forward in the browser.
12118
12176
  */
12119
- _defineProperty$f(this, "inPopState", false);
12177
+ _defineProperty$g(this, "inPopState", false);
12120
12178
  /**
12121
12179
  * Indicates whether the history router is disposed or not.
12122
12180
  */
12123
- _defineProperty$f(this, "isDisposed", false);
12181
+ _defineProperty$g(this, "isDisposed", false);
12124
12182
  /**
12125
12183
  * Indicates the window.history.length before the last call to
12126
12184
  * window.history.pushState (called in `write`).
12127
12185
  * It allows to determine if a `pushState` has been triggered elsewhere,
12128
12186
  * and thus to prevent the `write` method from calling `pushState`.
12129
12187
  */
12130
- _defineProperty$f(this, "latestAcknowledgedHistory", 0);
12131
- _defineProperty$f(this, "_start", void 0);
12132
- _defineProperty$f(this, "_dispose", void 0);
12133
- _defineProperty$f(this, "_push", void 0);
12134
- _defineProperty$f(this, "_cleanUrlOnDispose", void 0);
12188
+ _defineProperty$g(this, "latestAcknowledgedHistory", 0);
12189
+ _defineProperty$g(this, "_start", void 0);
12190
+ _defineProperty$g(this, "_dispose", void 0);
12191
+ _defineProperty$g(this, "_push", void 0);
12192
+ _defineProperty$g(this, "_cleanUrlOnDispose", void 0);
12135
12193
  this.windowTitle = windowTitle;
12136
12194
  this.writeTimer = undefined;
12137
12195
  this.writeDelay = writeDelay;
@@ -12366,17 +12424,17 @@
12366
12424
  });
12367
12425
  }
12368
12426
 
12369
- function _typeof$l(obj) {
12427
+ function _typeof$m(obj) {
12370
12428
  "@babel/helpers - typeof";
12371
12429
 
12372
- return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12430
+ return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12373
12431
  return typeof obj;
12374
12432
  } : function (obj) {
12375
12433
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12376
- }, _typeof$l(obj);
12434
+ }, _typeof$m(obj);
12377
12435
  }
12378
12436
  var _excluded$5 = ["configure"];
12379
- function ownKeys$f(object, enumerableOnly) {
12437
+ function ownKeys$g(object, enumerableOnly) {
12380
12438
  var keys = Object.keys(object);
12381
12439
  if (Object.getOwnPropertySymbols) {
12382
12440
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12386,19 +12444,19 @@
12386
12444
  }
12387
12445
  return keys;
12388
12446
  }
12389
- function _objectSpread$f(target) {
12447
+ function _objectSpread$g(target) {
12390
12448
  for (var i = 1; i < arguments.length; i++) {
12391
12449
  var source = null != arguments[i] ? arguments[i] : {};
12392
- i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
12393
- _defineProperty$g(target, key, source[key]);
12394
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
12450
+ i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
12451
+ _defineProperty$h(target, key, source[key]);
12452
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
12395
12453
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12396
12454
  });
12397
12455
  }
12398
12456
  return target;
12399
12457
  }
12400
- function _defineProperty$g(obj, key, value) {
12401
- key = _toPropertyKey$g(key);
12458
+ function _defineProperty$h(obj, key, value) {
12459
+ key = _toPropertyKey$h(key);
12402
12460
  if (key in obj) {
12403
12461
  Object.defineProperty(obj, key, {
12404
12462
  value: value,
@@ -12411,16 +12469,16 @@
12411
12469
  }
12412
12470
  return obj;
12413
12471
  }
12414
- function _toPropertyKey$g(arg) {
12415
- var key = _toPrimitive$g(arg, "string");
12416
- return _typeof$l(key) === "symbol" ? key : String(key);
12472
+ function _toPropertyKey$h(arg) {
12473
+ var key = _toPrimitive$h(arg, "string");
12474
+ return _typeof$m(key) === "symbol" ? key : String(key);
12417
12475
  }
12418
- function _toPrimitive$g(input, hint) {
12419
- if (_typeof$l(input) !== "object" || input === null) return input;
12476
+ function _toPrimitive$h(input, hint) {
12477
+ if (_typeof$m(input) !== "object" || input === null) return input;
12420
12478
  var prim = input[Symbol.toPrimitive];
12421
12479
  if (prim !== undefined) {
12422
12480
  var res = prim.call(input, hint || "default");
12423
- if (_typeof$l(res) !== "object") return res;
12481
+ if (_typeof$m(res) !== "object") return res;
12424
12482
  throw new TypeError("@@toPrimitive must return a primitive value.");
12425
12483
  }
12426
12484
  return (hint === "string" ? String : Number)(input);
@@ -12466,28 +12524,28 @@
12466
12524
  $$type: 'ais.simple',
12467
12525
  stateToRoute: function stateToRoute(uiState) {
12468
12526
  return Object.keys(uiState).reduce(function (state, indexId) {
12469
- return _objectSpread$f(_objectSpread$f({}, state), {}, _defineProperty$g({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
12527
+ return _objectSpread$g(_objectSpread$g({}, state), {}, _defineProperty$h({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
12470
12528
  }, {});
12471
12529
  },
12472
12530
  routeToState: function routeToState() {
12473
12531
  var routeState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
12474
12532
  return Object.keys(routeState).reduce(function (state, indexId) {
12475
- return _objectSpread$f(_objectSpread$f({}, state), {}, _defineProperty$g({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
12533
+ return _objectSpread$g(_objectSpread$g({}, state), {}, _defineProperty$h({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
12476
12534
  }, {});
12477
12535
  }
12478
12536
  };
12479
12537
  }
12480
12538
 
12481
- function _typeof$m(obj) {
12539
+ function _typeof$n(obj) {
12482
12540
  "@babel/helpers - typeof";
12483
12541
 
12484
- return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12542
+ return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12485
12543
  return typeof obj;
12486
12544
  } : function (obj) {
12487
12545
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12488
- }, _typeof$m(obj);
12546
+ }, _typeof$n(obj);
12489
12547
  }
12490
- function ownKeys$g(object, enumerableOnly) {
12548
+ function ownKeys$h(object, enumerableOnly) {
12491
12549
  var keys = Object.keys(object);
12492
12550
  if (Object.getOwnPropertySymbols) {
12493
12551
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12497,19 +12555,19 @@
12497
12555
  }
12498
12556
  return keys;
12499
12557
  }
12500
- function _objectSpread$g(target) {
12558
+ function _objectSpread$h(target) {
12501
12559
  for (var i = 1; i < arguments.length; i++) {
12502
12560
  var source = null != arguments[i] ? arguments[i] : {};
12503
- i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
12504
- _defineProperty$h(target, key, source[key]);
12505
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
12561
+ i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
12562
+ _defineProperty$i(target, key, source[key]);
12563
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
12506
12564
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12507
12565
  });
12508
12566
  }
12509
12567
  return target;
12510
12568
  }
12511
- function _defineProperty$h(obj, key, value) {
12512
- key = _toPropertyKey$h(key);
12569
+ function _defineProperty$i(obj, key, value) {
12570
+ key = _toPropertyKey$i(key);
12513
12571
  if (key in obj) {
12514
12572
  Object.defineProperty(obj, key, {
12515
12573
  value: value,
@@ -12522,16 +12580,16 @@
12522
12580
  }
12523
12581
  return obj;
12524
12582
  }
12525
- function _toPropertyKey$h(arg) {
12526
- var key = _toPrimitive$h(arg, "string");
12527
- return _typeof$m(key) === "symbol" ? key : String(key);
12583
+ function _toPropertyKey$i(arg) {
12584
+ var key = _toPrimitive$i(arg, "string");
12585
+ return _typeof$n(key) === "symbol" ? key : String(key);
12528
12586
  }
12529
- function _toPrimitive$h(input, hint) {
12530
- if (_typeof$m(input) !== "object" || input === null) return input;
12587
+ function _toPrimitive$i(input, hint) {
12588
+ if (_typeof$n(input) !== "object" || input === null) return input;
12531
12589
  var prim = input[Symbol.toPrimitive];
12532
12590
  if (prim !== undefined) {
12533
12591
  var res = prim.call(input, hint || "default");
12534
- if (_typeof$m(res) !== "object") return res;
12592
+ if (_typeof$n(res) !== "object") return res;
12535
12593
  throw new TypeError("@@toPrimitive must return a primitive value.");
12536
12594
  }
12537
12595
  return (hint === "string" ? String : Number)(input);
@@ -12556,7 +12614,7 @@
12556
12614
  // any changes.
12557
12615
  instantSearchInstance.mainIndex.getWidgets().length === 0 ? instantSearchInstance._initialUiState : instantSearchInstance.mainIndex.getWidgetUiState({});
12558
12616
  var uiState = Object.keys(nextState).reduce(function (acc, indexId) {
12559
- return _objectSpread$g(_objectSpread$g({}, acc), {}, _defineProperty$h({}, indexId, nextState[indexId]));
12617
+ return _objectSpread$h(_objectSpread$h({}, acc), {}, _defineProperty$i({}, indexId, nextState[indexId]));
12560
12618
  }, previousUiState);
12561
12619
  var route = stateMapping.stateToRoute(uiState);
12562
12620
  return router.createURL(route);
@@ -12579,7 +12637,7 @@
12579
12637
  }
12580
12638
  },
12581
12639
  subscribe: function subscribe() {
12582
- instantSearchInstance._initialUiState = _objectSpread$g(_objectSpread$g({}, initialUiState), stateMapping.routeToState(router.read()));
12640
+ instantSearchInstance._initialUiState = _objectSpread$h(_objectSpread$h({}, initialUiState), stateMapping.routeToState(router.read()));
12583
12641
  router.onUpdate(function (route) {
12584
12642
  if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
12585
12643
  instantSearchInstance.setUiState(stateMapping.routeToState(route));
@@ -12601,16 +12659,16 @@
12601
12659
  return value.toLocaleString(numberLocale);
12602
12660
  }
12603
12661
 
12604
- function _typeof$n(obj) {
12662
+ function _typeof$o(obj) {
12605
12663
  "@babel/helpers - typeof";
12606
12664
 
12607
- return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12665
+ return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12608
12666
  return typeof obj;
12609
12667
  } : function (obj) {
12610
12668
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12611
- }, _typeof$n(obj);
12669
+ }, _typeof$o(obj);
12612
12670
  }
12613
- function ownKeys$h(object, enumerableOnly) {
12671
+ function ownKeys$i(object, enumerableOnly) {
12614
12672
  var keys = Object.keys(object);
12615
12673
  if (Object.getOwnPropertySymbols) {
12616
12674
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12620,19 +12678,19 @@
12620
12678
  }
12621
12679
  return keys;
12622
12680
  }
12623
- function _objectSpread$h(target) {
12681
+ function _objectSpread$i(target) {
12624
12682
  for (var i = 1; i < arguments.length; i++) {
12625
12683
  var source = null != arguments[i] ? arguments[i] : {};
12626
- i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
12627
- _defineProperty$i(target, key, source[key]);
12628
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
12684
+ i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12685
+ _defineProperty$j(target, key, source[key]);
12686
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
12629
12687
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12630
12688
  });
12631
12689
  }
12632
12690
  return target;
12633
12691
  }
12634
- function _defineProperty$i(obj, key, value) {
12635
- key = _toPropertyKey$i(key);
12692
+ function _defineProperty$j(obj, key, value) {
12693
+ key = _toPropertyKey$j(key);
12636
12694
  if (key in obj) {
12637
12695
  Object.defineProperty(obj, key, {
12638
12696
  value: value,
@@ -12645,16 +12703,16 @@
12645
12703
  }
12646
12704
  return obj;
12647
12705
  }
12648
- function _toPropertyKey$i(arg) {
12649
- var key = _toPrimitive$i(arg, "string");
12650
- return _typeof$n(key) === "symbol" ? key : String(key);
12706
+ function _toPropertyKey$j(arg) {
12707
+ var key = _toPrimitive$j(arg, "string");
12708
+ return _typeof$o(key) === "symbol" ? key : String(key);
12651
12709
  }
12652
- function _toPrimitive$i(input, hint) {
12653
- if (_typeof$n(input) !== "object" || input === null) return input;
12710
+ function _toPrimitive$j(input, hint) {
12711
+ if (_typeof$o(input) !== "object" || input === null) return input;
12654
12712
  var prim = input[Symbol.toPrimitive];
12655
12713
  if (prim !== undefined) {
12656
12714
  var res = prim.call(input, hint || "default");
12657
- if (_typeof$n(res) !== "object") return res;
12715
+ if (_typeof$o(res) !== "object") return res;
12658
12716
  throw new TypeError("@@toPrimitive must return a primitive value.");
12659
12717
  }
12660
12718
  return (hint === "string" ? String : Number)(input);
@@ -12668,7 +12726,7 @@
12668
12726
  highlight: function highlight$1(options, render) {
12669
12727
  try {
12670
12728
  var highlightOptions = JSON.parse(options);
12671
- return render(highlight(_objectSpread$h(_objectSpread$h({}, highlightOptions), {}, {
12729
+ return render(highlight(_objectSpread$i(_objectSpread$i({}, highlightOptions), {}, {
12672
12730
  hit: this
12673
12731
  })));
12674
12732
  } catch (error) {
@@ -12678,7 +12736,7 @@
12678
12736
  reverseHighlight: function reverseHighlight$1(options, render) {
12679
12737
  try {
12680
12738
  var reverseHighlightOptions = JSON.parse(options);
12681
- return render(reverseHighlight(_objectSpread$h(_objectSpread$h({}, reverseHighlightOptions), {}, {
12739
+ return render(reverseHighlight(_objectSpread$i(_objectSpread$i({}, reverseHighlightOptions), {}, {
12682
12740
  hit: this
12683
12741
  })));
12684
12742
  } catch (error) {
@@ -12688,7 +12746,7 @@
12688
12746
  snippet: function snippet$1(options, render) {
12689
12747
  try {
12690
12748
  var snippetOptions = JSON.parse(options);
12691
- return render(snippet(_objectSpread$h(_objectSpread$h({}, snippetOptions), {}, {
12749
+ return render(snippet(_objectSpread$i(_objectSpread$i({}, snippetOptions), {}, {
12692
12750
  hit: this
12693
12751
  })));
12694
12752
  } catch (error) {
@@ -12698,7 +12756,7 @@
12698
12756
  reverseSnippet: function reverseSnippet$1(options, render) {
12699
12757
  try {
12700
12758
  var reverseSnippetOptions = JSON.parse(options);
12701
- return render(reverseSnippet(_objectSpread$h(_objectSpread$h({}, reverseSnippetOptions), {}, {
12759
+ return render(reverseSnippet(_objectSpread$i(_objectSpread$i({}, reverseSnippetOptions), {}, {
12702
12760
  hit: this
12703
12761
  })));
12704
12762
  } catch (error) {
@@ -12710,7 +12768,7 @@
12710
12768
  var _JSON$parse = JSON.parse(options),
12711
12769
  method = _JSON$parse.method,
12712
12770
  payload = _JSON$parse.payload;
12713
- return render(insights(method, _objectSpread$h({
12771
+ return render(insights(method, _objectSpread$i({
12714
12772
  objectIDs: [this.objectID]
12715
12773
  }, payload)));
12716
12774
  } catch (error) {
@@ -12722,16 +12780,16 @@
12722
12780
 
12723
12781
  var version$3 = '4.68.1';
12724
12782
 
12725
- function _typeof$o(obj) {
12783
+ function _typeof$p(obj) {
12726
12784
  "@babel/helpers - typeof";
12727
12785
 
12728
- return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12786
+ return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12729
12787
  return typeof obj;
12730
12788
  } : function (obj) {
12731
12789
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12732
- }, _typeof$o(obj);
12790
+ }, _typeof$p(obj);
12733
12791
  }
12734
- function ownKeys$i(object, enumerableOnly) {
12792
+ function ownKeys$j(object, enumerableOnly) {
12735
12793
  var keys = Object.keys(object);
12736
12794
  if (Object.getOwnPropertySymbols) {
12737
12795
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12741,12 +12799,12 @@
12741
12799
  }
12742
12800
  return keys;
12743
12801
  }
12744
- function _objectSpread$i(target) {
12802
+ function _objectSpread$j(target) {
12745
12803
  for (var i = 1; i < arguments.length; i++) {
12746
12804
  var source = null != arguments[i] ? arguments[i] : {};
12747
- i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12748
- _defineProperty$j(target, key, source[key]);
12749
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
12805
+ i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
12806
+ _defineProperty$k(target, key, source[key]);
12807
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
12750
12808
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12751
12809
  });
12752
12810
  }
@@ -12763,7 +12821,7 @@
12763
12821
  descriptor.enumerable = descriptor.enumerable || false;
12764
12822
  descriptor.configurable = true;
12765
12823
  if ("value" in descriptor) descriptor.writable = true;
12766
- Object.defineProperty(target, _toPropertyKey$j(descriptor.key), descriptor);
12824
+ Object.defineProperty(target, _toPropertyKey$k(descriptor.key), descriptor);
12767
12825
  }
12768
12826
  }
12769
12827
  function _createClass$1(Constructor, protoProps, staticProps) {
@@ -12812,7 +12870,7 @@
12812
12870
  };
12813
12871
  }
12814
12872
  function _possibleConstructorReturn(self, call) {
12815
- if (call && (_typeof$o(call) === "object" || typeof call === "function")) {
12873
+ if (call && (_typeof$p(call) === "object" || typeof call === "function")) {
12816
12874
  return call;
12817
12875
  } else if (call !== void 0) {
12818
12876
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -12842,8 +12900,8 @@
12842
12900
  };
12843
12901
  return _getPrototypeOf(o);
12844
12902
  }
12845
- function _defineProperty$j(obj, key, value) {
12846
- key = _toPropertyKey$j(key);
12903
+ function _defineProperty$k(obj, key, value) {
12904
+ key = _toPropertyKey$k(key);
12847
12905
  if (key in obj) {
12848
12906
  Object.defineProperty(obj, key, {
12849
12907
  value: value,
@@ -12856,16 +12914,16 @@
12856
12914
  }
12857
12915
  return obj;
12858
12916
  }
12859
- function _toPropertyKey$j(arg) {
12860
- var key = _toPrimitive$j(arg, "string");
12861
- return _typeof$o(key) === "symbol" ? key : String(key);
12917
+ function _toPropertyKey$k(arg) {
12918
+ var key = _toPrimitive$k(arg, "string");
12919
+ return _typeof$p(key) === "symbol" ? key : String(key);
12862
12920
  }
12863
- function _toPrimitive$j(input, hint) {
12864
- if (_typeof$o(input) !== "object" || input === null) return input;
12921
+ function _toPrimitive$k(input, hint) {
12922
+ if (_typeof$p(input) !== "object" || input === null) return input;
12865
12923
  var prim = input[Symbol.toPrimitive];
12866
12924
  if (prim !== undefined) {
12867
12925
  var res = prim.call(input, hint || "default");
12868
- if (_typeof$o(res) !== "object") return res;
12926
+ if (_typeof$p(res) !== "object") return res;
12869
12927
  throw new TypeError("@@toPrimitive must return a primitive value.");
12870
12928
  }
12871
12929
  return (hint === "string" ? String : Number)(input);
@@ -12902,42 +12960,42 @@
12902
12960
  _this = _super.call(this);
12903
12961
 
12904
12962
  // prevent `render` event listening from causing a warning
12905
- _defineProperty$j(_assertThisInitialized(_this), "client", void 0);
12906
- _defineProperty$j(_assertThisInitialized(_this), "indexName", void 0);
12907
- _defineProperty$j(_assertThisInitialized(_this), "insightsClient", void 0);
12908
- _defineProperty$j(_assertThisInitialized(_this), "onStateChange", null);
12909
- _defineProperty$j(_assertThisInitialized(_this), "future", void 0);
12910
- _defineProperty$j(_assertThisInitialized(_this), "helper", void 0);
12911
- _defineProperty$j(_assertThisInitialized(_this), "mainHelper", void 0);
12912
- _defineProperty$j(_assertThisInitialized(_this), "mainIndex", void 0);
12913
- _defineProperty$j(_assertThisInitialized(_this), "started", void 0);
12914
- _defineProperty$j(_assertThisInitialized(_this), "templatesConfig", void 0);
12915
- _defineProperty$j(_assertThisInitialized(_this), "renderState", {});
12916
- _defineProperty$j(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
12917
- _defineProperty$j(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
12918
- _defineProperty$j(_assertThisInitialized(_this), "_initialUiState", void 0);
12919
- _defineProperty$j(_assertThisInitialized(_this), "_initialResults", void 0);
12920
- _defineProperty$j(_assertThisInitialized(_this), "_createURL", void 0);
12921
- _defineProperty$j(_assertThisInitialized(_this), "_searchFunction", void 0);
12922
- _defineProperty$j(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
12923
- _defineProperty$j(_assertThisInitialized(_this), "_insights", void 0);
12924
- _defineProperty$j(_assertThisInitialized(_this), "middleware", []);
12925
- _defineProperty$j(_assertThisInitialized(_this), "sendEventToInsights", void 0);
12963
+ _defineProperty$k(_assertThisInitialized(_this), "client", void 0);
12964
+ _defineProperty$k(_assertThisInitialized(_this), "indexName", void 0);
12965
+ _defineProperty$k(_assertThisInitialized(_this), "insightsClient", void 0);
12966
+ _defineProperty$k(_assertThisInitialized(_this), "onStateChange", null);
12967
+ _defineProperty$k(_assertThisInitialized(_this), "future", void 0);
12968
+ _defineProperty$k(_assertThisInitialized(_this), "helper", void 0);
12969
+ _defineProperty$k(_assertThisInitialized(_this), "mainHelper", void 0);
12970
+ _defineProperty$k(_assertThisInitialized(_this), "mainIndex", void 0);
12971
+ _defineProperty$k(_assertThisInitialized(_this), "started", void 0);
12972
+ _defineProperty$k(_assertThisInitialized(_this), "templatesConfig", void 0);
12973
+ _defineProperty$k(_assertThisInitialized(_this), "renderState", {});
12974
+ _defineProperty$k(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
12975
+ _defineProperty$k(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
12976
+ _defineProperty$k(_assertThisInitialized(_this), "_initialUiState", void 0);
12977
+ _defineProperty$k(_assertThisInitialized(_this), "_initialResults", void 0);
12978
+ _defineProperty$k(_assertThisInitialized(_this), "_createURL", void 0);
12979
+ _defineProperty$k(_assertThisInitialized(_this), "_searchFunction", void 0);
12980
+ _defineProperty$k(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
12981
+ _defineProperty$k(_assertThisInitialized(_this), "_insights", void 0);
12982
+ _defineProperty$k(_assertThisInitialized(_this), "middleware", []);
12983
+ _defineProperty$k(_assertThisInitialized(_this), "sendEventToInsights", void 0);
12926
12984
  /**
12927
12985
  * The status of the search. Can be "idle", "loading", "stalled", or "error".
12928
12986
  */
12929
- _defineProperty$j(_assertThisInitialized(_this), "status", 'idle');
12987
+ _defineProperty$k(_assertThisInitialized(_this), "status", 'idle');
12930
12988
  /**
12931
12989
  * The last returned error from the Search API.
12932
12990
  * The error gets cleared when the next valid search response is rendered.
12933
12991
  */
12934
- _defineProperty$j(_assertThisInitialized(_this), "error", undefined);
12935
- _defineProperty$j(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
12992
+ _defineProperty$k(_assertThisInitialized(_this), "error", undefined);
12993
+ _defineProperty$k(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
12936
12994
  if (_this.started) {
12937
12995
  _this.mainHelper.search();
12938
12996
  }
12939
12997
  }));
12940
- _defineProperty$j(_assertThisInitialized(_this), "scheduleRender", defer(function () {
12998
+ _defineProperty$k(_assertThisInitialized(_this), "scheduleRender", defer(function () {
12941
12999
  var _this$mainHelper;
12942
13000
  var shouldResetStatus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
12943
13001
  if (!((_this$mainHelper = _this.mainHelper) !== null && _this$mainHelper !== void 0 && _this$mainHelper.hasPendingRequests())) {
@@ -12953,7 +13011,7 @@
12953
13011
  });
12954
13012
  _this.emit('render');
12955
13013
  }));
12956
- _defineProperty$j(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
13014
+ _defineProperty$k(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
12957
13015
  var nextUiState = _this.mainIndex.getWidgetUiState({});
12958
13016
  _this.middleware.forEach(function (_ref) {
12959
13017
  var instance = _ref.instance;
@@ -12982,7 +13040,7 @@
12982
13040
  _options$onStateChang = options.onStateChange,
12983
13041
  onStateChange = _options$onStateChang === void 0 ? null : _options$onStateChang,
12984
13042
  _options$future = options.future,
12985
- future = _options$future === void 0 ? _objectSpread$i(_objectSpread$i({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
13043
+ future = _options$future === void 0 ? _objectSpread$j(_objectSpread$j({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
12986
13044
  if (searchClient === null) {
12987
13045
  throw new Error(withUsage$3('The `searchClient` option is required.'));
12988
13046
  }
@@ -13064,7 +13122,7 @@
13064
13122
  middleware[_key] = arguments[_key];
13065
13123
  }
13066
13124
  var newMiddlewareList = middleware.map(function (fn) {
13067
- var newMiddleware = _objectSpread$i({
13125
+ var newMiddleware = _objectSpread$j({
13068
13126
  $$type: '__unknown__',
13069
13127
  $$internal: false,
13070
13128
  subscribe: noop$1,
@@ -13470,16 +13528,16 @@
13470
13528
  });
13471
13529
  var shim_1 = shim.useSyncExternalStore;
13472
13530
 
13473
- function _typeof$p(obj) {
13531
+ function _typeof$q(obj) {
13474
13532
  "@babel/helpers - typeof";
13475
13533
 
13476
- return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13534
+ return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13477
13535
  return typeof obj;
13478
13536
  } : function (obj) {
13479
13537
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13480
- }, _typeof$p(obj);
13538
+ }, _typeof$q(obj);
13481
13539
  }
13482
- function ownKeys$j(object, enumerableOnly) {
13540
+ function ownKeys$k(object, enumerableOnly) {
13483
13541
  var keys = Object.keys(object);
13484
13542
  if (Object.getOwnPropertySymbols) {
13485
13543
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13489,19 +13547,19 @@
13489
13547
  }
13490
13548
  return keys;
13491
13549
  }
13492
- function _objectSpread$j(target) {
13550
+ function _objectSpread$k(target) {
13493
13551
  for (var i = 1; i < arguments.length; i++) {
13494
13552
  var source = null != arguments[i] ? arguments[i] : {};
13495
- i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
13496
- _defineProperty$k(target, key, source[key]);
13497
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
13553
+ i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13554
+ _defineProperty$l(target, key, source[key]);
13555
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
13498
13556
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13499
13557
  });
13500
13558
  }
13501
13559
  return target;
13502
13560
  }
13503
- function _defineProperty$k(obj, key, value) {
13504
- key = _toPropertyKey$k(key);
13561
+ function _defineProperty$l(obj, key, value) {
13562
+ key = _toPropertyKey$l(key);
13505
13563
  if (key in obj) {
13506
13564
  Object.defineProperty(obj, key, {
13507
13565
  value: value,
@@ -13514,16 +13572,16 @@
13514
13572
  }
13515
13573
  return obj;
13516
13574
  }
13517
- function _toPropertyKey$k(arg) {
13518
- var key = _toPrimitive$k(arg, "string");
13519
- return _typeof$p(key) === "symbol" ? key : String(key);
13575
+ function _toPropertyKey$l(arg) {
13576
+ var key = _toPrimitive$l(arg, "string");
13577
+ return _typeof$q(key) === "symbol" ? key : String(key);
13520
13578
  }
13521
- function _toPrimitive$k(input, hint) {
13522
- if (_typeof$p(input) !== "object" || input === null) return input;
13579
+ function _toPrimitive$l(input, hint) {
13580
+ if (_typeof$q(input) !== "object" || input === null) return input;
13523
13581
  var prim = input[Symbol.toPrimitive];
13524
13582
  if (prim !== undefined) {
13525
13583
  var res = prim.call(input, hint || "default");
13526
- if (_typeof$p(res) !== "object") return res;
13584
+ if (_typeof$q(res) !== "object") return res;
13527
13585
  throw new TypeError("@@toPrimitive must return a primitive value.");
13528
13586
  }
13529
13587
  return (hint === "string" ? String : Number)(input);
@@ -13622,7 +13680,7 @@
13622
13680
  prevPropsRef.current = props;
13623
13681
  }
13624
13682
  if (!dequal(prevProps.future, props.future)) {
13625
- _search.future = _objectSpread$j(_objectSpread$j({}, INSTANTSEARCH_FUTURE_DEFAULTS), props.future);
13683
+ _search.future = _objectSpread$k(_objectSpread$k({}, INSTANTSEARCH_FUTURE_DEFAULTS), props.future);
13626
13684
  prevPropsRef.current = props;
13627
13685
  }
13628
13686
 
@@ -13742,17 +13800,17 @@
13742
13800
  }, children));
13743
13801
  }
13744
13802
 
13745
- function _typeof$q(obj) {
13803
+ function _typeof$r(obj) {
13746
13804
  "@babel/helpers - typeof";
13747
13805
 
13748
- return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13806
+ return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13749
13807
  return typeof obj;
13750
13808
  } : function (obj) {
13751
13809
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13752
- }, _typeof$q(obj);
13810
+ }, _typeof$r(obj);
13753
13811
  }
13754
13812
  var _excluded$7 = ["children"];
13755
- function ownKeys$k(object, enumerableOnly) {
13813
+ function ownKeys$l(object, enumerableOnly) {
13756
13814
  var keys = Object.keys(object);
13757
13815
  if (Object.getOwnPropertySymbols) {
13758
13816
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13762,19 +13820,19 @@
13762
13820
  }
13763
13821
  return keys;
13764
13822
  }
13765
- function _objectSpread$k(target) {
13823
+ function _objectSpread$l(target) {
13766
13824
  for (var i = 1; i < arguments.length; i++) {
13767
13825
  var source = null != arguments[i] ? arguments[i] : {};
13768
- i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13769
- _defineProperty$l(target, key, source[key]);
13770
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
13826
+ i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13827
+ _defineProperty$m(target, key, source[key]);
13828
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
13771
13829
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13772
13830
  });
13773
13831
  }
13774
13832
  return target;
13775
13833
  }
13776
- function _defineProperty$l(obj, key, value) {
13777
- key = _toPropertyKey$l(key);
13834
+ function _defineProperty$m(obj, key, value) {
13835
+ key = _toPropertyKey$m(key);
13778
13836
  if (key in obj) {
13779
13837
  Object.defineProperty(obj, key, {
13780
13838
  value: value,
@@ -13787,16 +13845,16 @@
13787
13845
  }
13788
13846
  return obj;
13789
13847
  }
13790
- function _toPropertyKey$l(arg) {
13791
- var key = _toPrimitive$l(arg, "string");
13792
- return _typeof$q(key) === "symbol" ? key : String(key);
13848
+ function _toPropertyKey$m(arg) {
13849
+ var key = _toPrimitive$m(arg, "string");
13850
+ return _typeof$r(key) === "symbol" ? key : String(key);
13793
13851
  }
13794
- function _toPrimitive$l(input, hint) {
13795
- if (_typeof$q(input) !== "object" || input === null) return input;
13852
+ function _toPrimitive$m(input, hint) {
13853
+ if (_typeof$r(input) !== "object" || input === null) return input;
13796
13854
  var prim = input[Symbol.toPrimitive];
13797
13855
  if (prim !== undefined) {
13798
13856
  var res = prim.call(input, hint || "default");
13799
- if (_typeof$q(res) !== "object") return res;
13857
+ if (_typeof$r(res) !== "object") return res;
13800
13858
  throw new TypeError("@@toPrimitive must return a primitive value.");
13801
13859
  }
13802
13860
  return (hint === "string" ? String : Number)(input);
@@ -13847,22 +13905,22 @@
13847
13905
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
13848
13906
  }
13849
13907
  return /*#__PURE__*/React__default.createElement(InstantSearchSSRContext.Provider, {
13850
- value: _objectSpread$k(_objectSpread$k({}, props), {}, {
13908
+ value: _objectSpread$l(_objectSpread$l({}, props), {}, {
13851
13909
  ssrSearchRef: ssrSearchRef
13852
13910
  })
13853
13911
  }, children);
13854
13912
  }
13855
13913
 
13856
- function _typeof$r(obj) {
13914
+ function _typeof$s(obj) {
13857
13915
  "@babel/helpers - typeof";
13858
13916
 
13859
- return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13917
+ return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13860
13918
  return typeof obj;
13861
13919
  } : function (obj) {
13862
13920
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13863
- }, _typeof$r(obj);
13921
+ }, _typeof$s(obj);
13864
13922
  }
13865
- function ownKeys$l(object, enumerableOnly) {
13923
+ function ownKeys$m(object, enumerableOnly) {
13866
13924
  var keys = Object.keys(object);
13867
13925
  if (Object.getOwnPropertySymbols) {
13868
13926
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13872,19 +13930,19 @@
13872
13930
  }
13873
13931
  return keys;
13874
13932
  }
13875
- function _objectSpread$l(target) {
13933
+ function _objectSpread$m(target) {
13876
13934
  for (var i = 1; i < arguments.length; i++) {
13877
13935
  var source = null != arguments[i] ? arguments[i] : {};
13878
- i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13879
- _defineProperty$m(target, key, source[key]);
13880
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
13936
+ i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
13937
+ _defineProperty$n(target, key, source[key]);
13938
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
13881
13939
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13882
13940
  });
13883
13941
  }
13884
13942
  return target;
13885
13943
  }
13886
- function _defineProperty$m(obj, key, value) {
13887
- key = _toPropertyKey$m(key);
13944
+ function _defineProperty$n(obj, key, value) {
13945
+ key = _toPropertyKey$n(key);
13888
13946
  if (key in obj) {
13889
13947
  Object.defineProperty(obj, key, {
13890
13948
  value: value,
@@ -13897,16 +13955,16 @@
13897
13955
  }
13898
13956
  return obj;
13899
13957
  }
13900
- function _toPropertyKey$m(arg) {
13901
- var key = _toPrimitive$m(arg, "string");
13902
- return _typeof$r(key) === "symbol" ? key : String(key);
13958
+ function _toPropertyKey$n(arg) {
13959
+ var key = _toPrimitive$n(arg, "string");
13960
+ return _typeof$s(key) === "symbol" ? key : String(key);
13903
13961
  }
13904
- function _toPrimitive$m(input, hint) {
13905
- if (_typeof$r(input) !== "object" || input === null) return input;
13962
+ function _toPrimitive$n(input, hint) {
13963
+ if (_typeof$s(input) !== "object" || input === null) return input;
13906
13964
  var prim = input[Symbol.toPrimitive];
13907
13965
  if (prim !== undefined) {
13908
13966
  var res = prim.call(input, hint || "default");
13909
- if (_typeof$r(res) !== "object") return res;
13967
+ if (_typeof$s(res) !== "object") return res;
13910
13968
  throw new TypeError("@@toPrimitive must return a primitive value.");
13911
13969
  }
13912
13970
  return (hint === "string" ? String : Number)(input);
@@ -13998,12 +14056,12 @@
13998
14056
  return {
13999
14057
  $$type: 'ais.breadcrumb',
14000
14058
  init: function init(initOptions) {
14001
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
14059
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
14002
14060
  instantSearchInstance: initOptions.instantSearchInstance
14003
14061
  }), true);
14004
14062
  },
14005
14063
  render: function render(renderOptions) {
14006
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(renderOptions)), {}, {
14064
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(renderOptions)), {}, {
14007
14065
  instantSearchInstance: renderOptions.instantSearchInstance
14008
14066
  }), false);
14009
14067
  },
@@ -14011,8 +14069,8 @@
14011
14069
  unmountFn();
14012
14070
  },
14013
14071
  getRenderState: function getRenderState(renderState, renderOptions) {
14014
- return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
14015
- breadcrumb: _objectSpread$l(_objectSpread$l({}, renderState.breadcrumb), {}, _defineProperty$m({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
14072
+ return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
14073
+ breadcrumb: _objectSpread$m(_objectSpread$m({}, renderState.breadcrumb), {}, _defineProperty$n({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
14016
14074
  });
14017
14075
  },
14018
14076
  getWidgetRenderState: function getWidgetRenderState(_ref2) {
@@ -14064,8 +14122,8 @@
14064
14122
  getWidgetUiState: function getWidgetUiState(uiState, _ref3) {
14065
14123
  var searchParameters = _ref3.searchParameters;
14066
14124
  var path = searchParameters.getHierarchicalFacetBreadcrumb(hierarchicalFacetName);
14067
- return removeEmptyRefinementsFromUiState(_objectSpread$l(_objectSpread$l({}, uiState), {}, {
14068
- hierarchicalMenu: _objectSpread$l(_objectSpread$l({}, uiState.hierarchicalMenu), {}, _defineProperty$m({}, hierarchicalFacetName, path))
14125
+ return removeEmptyRefinementsFromUiState(_objectSpread$m(_objectSpread$m({}, uiState), {}, {
14126
+ hierarchicalMenu: _objectSpread$m(_objectSpread$m({}, uiState.hierarchicalMenu), {}, _defineProperty$n({}, hierarchicalFacetName, path))
14069
14127
  }), hierarchicalFacetName);
14070
14128
  },
14071
14129
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref4) {
@@ -14085,7 +14143,7 @@
14085
14143
  });
14086
14144
  if (!values) {
14087
14145
  return withFacetConfiguration.setQueryParameters({
14088
- hierarchicalFacetsRefinements: _objectSpread$l(_objectSpread$l({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$m({}, hierarchicalFacetName, []))
14146
+ hierarchicalFacetsRefinements: _objectSpread$m(_objectSpread$m({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$n({}, hierarchicalFacetName, []))
14089
14147
  });
14090
14148
  }
14091
14149
  return withFacetConfiguration.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -14132,14 +14190,14 @@
14132
14190
  return useConnector(connectBreadcrumb, props, additionalWidgetProperties);
14133
14191
  }
14134
14192
 
14135
- function _typeof$s(obj) {
14193
+ function _typeof$t(obj) {
14136
14194
  "@babel/helpers - typeof";
14137
14195
 
14138
- return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14196
+ return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14139
14197
  return typeof obj;
14140
14198
  } : function (obj) {
14141
14199
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14142
- }, _typeof$s(obj);
14200
+ }, _typeof$t(obj);
14143
14201
  }
14144
14202
  function _toConsumableArray$3(arr) {
14145
14203
  return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$b(arr) || _nonIterableSpread$3();
@@ -14166,7 +14224,7 @@
14166
14224
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
14167
14225
  return arr2;
14168
14226
  }
14169
- function ownKeys$m(object, enumerableOnly) {
14227
+ function ownKeys$n(object, enumerableOnly) {
14170
14228
  var keys = Object.keys(object);
14171
14229
  if (Object.getOwnPropertySymbols) {
14172
14230
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14176,19 +14234,19 @@
14176
14234
  }
14177
14235
  return keys;
14178
14236
  }
14179
- function _objectSpread$m(target) {
14237
+ function _objectSpread$n(target) {
14180
14238
  for (var i = 1; i < arguments.length; i++) {
14181
14239
  var source = null != arguments[i] ? arguments[i] : {};
14182
- i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
14183
- _defineProperty$n(target, key, source[key]);
14184
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
14240
+ i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
14241
+ _defineProperty$o(target, key, source[key]);
14242
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
14185
14243
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14186
14244
  });
14187
14245
  }
14188
14246
  return target;
14189
14247
  }
14190
- function _defineProperty$n(obj, key, value) {
14191
- key = _toPropertyKey$n(key);
14248
+ function _defineProperty$o(obj, key, value) {
14249
+ key = _toPropertyKey$o(key);
14192
14250
  if (key in obj) {
14193
14251
  Object.defineProperty(obj, key, {
14194
14252
  value: value,
@@ -14201,16 +14259,16 @@
14201
14259
  }
14202
14260
  return obj;
14203
14261
  }
14204
- function _toPropertyKey$n(arg) {
14205
- var key = _toPrimitive$n(arg, "string");
14206
- return _typeof$s(key) === "symbol" ? key : String(key);
14262
+ function _toPropertyKey$o(arg) {
14263
+ var key = _toPrimitive$o(arg, "string");
14264
+ return _typeof$t(key) === "symbol" ? key : String(key);
14207
14265
  }
14208
- function _toPrimitive$n(input, hint) {
14209
- if (_typeof$s(input) !== "object" || input === null) return input;
14266
+ function _toPrimitive$o(input, hint) {
14267
+ if (_typeof$t(input) !== "object" || input === null) return input;
14210
14268
  var prim = input[Symbol.toPrimitive];
14211
14269
  if (prim !== undefined) {
14212
14270
  var res = prim.call(input, hint || "default");
14213
- if (_typeof$s(res) !== "object") return res;
14271
+ if (_typeof$t(res) !== "object") return res;
14214
14272
  throw new TypeError("@@toPrimitive must return a primitive value.");
14215
14273
  }
14216
14274
  return (hint === "string" ? String : Number)(input);
@@ -14252,13 +14310,13 @@
14252
14310
  $$type: 'ais.clearRefinements',
14253
14311
  init: function init(initOptions) {
14254
14312
  var instantSearchInstance = initOptions.instantSearchInstance;
14255
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
14313
+ renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
14256
14314
  instantSearchInstance: instantSearchInstance
14257
14315
  }), true);
14258
14316
  },
14259
14317
  render: function render(renderOptions) {
14260
14318
  var instantSearchInstance = renderOptions.instantSearchInstance;
14261
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(renderOptions)), {}, {
14319
+ renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(renderOptions)), {}, {
14262
14320
  instantSearchInstance: instantSearchInstance
14263
14321
  }), false);
14264
14322
  },
@@ -14266,7 +14324,7 @@
14266
14324
  unmountFn();
14267
14325
  },
14268
14326
  getRenderState: function getRenderState(renderState, renderOptions) {
14269
- return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
14327
+ return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
14270
14328
  clearRefinements: this.getWidgetRenderState(renderOptions)
14271
14329
  });
14272
14330
  },
@@ -14352,14 +14410,14 @@
14352
14410
  return useConnector(connectClearRefinements, props, additionalWidgetProperties);
14353
14411
  }
14354
14412
 
14355
- function _typeof$t(obj) {
14413
+ function _typeof$u(obj) {
14356
14414
  "@babel/helpers - typeof";
14357
14415
 
14358
- return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14416
+ return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14359
14417
  return typeof obj;
14360
14418
  } : function (obj) {
14361
14419
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14362
- }, _typeof$t(obj);
14420
+ }, _typeof$u(obj);
14363
14421
  }
14364
14422
  function _toConsumableArray$4(arr) {
14365
14423
  return _arrayWithoutHoles$4(arr) || _iterableToArray$4(arr) || _unsupportedIterableToArray$c(arr) || _nonIterableSpread$4();
@@ -14386,7 +14444,7 @@
14386
14444
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
14387
14445
  return arr2;
14388
14446
  }
14389
- function ownKeys$n(object, enumerableOnly) {
14447
+ function ownKeys$o(object, enumerableOnly) {
14390
14448
  var keys = Object.keys(object);
14391
14449
  if (Object.getOwnPropertySymbols) {
14392
14450
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14396,19 +14454,19 @@
14396
14454
  }
14397
14455
  return keys;
14398
14456
  }
14399
- function _objectSpread$n(target) {
14457
+ function _objectSpread$o(target) {
14400
14458
  for (var i = 1; i < arguments.length; i++) {
14401
14459
  var source = null != arguments[i] ? arguments[i] : {};
14402
- i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
14403
- _defineProperty$o(target, key, source[key]);
14404
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
14460
+ i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
14461
+ _defineProperty$p(target, key, source[key]);
14462
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
14405
14463
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14406
14464
  });
14407
14465
  }
14408
14466
  return target;
14409
14467
  }
14410
- function _defineProperty$o(obj, key, value) {
14411
- key = _toPropertyKey$o(key);
14468
+ function _defineProperty$p(obj, key, value) {
14469
+ key = _toPropertyKey$p(key);
14412
14470
  if (key in obj) {
14413
14471
  Object.defineProperty(obj, key, {
14414
14472
  value: value,
@@ -14421,16 +14479,16 @@
14421
14479
  }
14422
14480
  return obj;
14423
14481
  }
14424
- function _toPropertyKey$o(arg) {
14425
- var key = _toPrimitive$o(arg, "string");
14426
- return _typeof$t(key) === "symbol" ? key : String(key);
14482
+ function _toPropertyKey$p(arg) {
14483
+ var key = _toPrimitive$p(arg, "string");
14484
+ return _typeof$u(key) === "symbol" ? key : String(key);
14427
14485
  }
14428
- function _toPrimitive$o(input, hint) {
14429
- if (_typeof$t(input) !== "object" || input === null) return input;
14486
+ function _toPrimitive$p(input, hint) {
14487
+ if (_typeof$u(input) !== "object" || input === null) return input;
14430
14488
  var prim = input[Symbol.toPrimitive];
14431
14489
  if (prim !== undefined) {
14432
14490
  var res = prim.call(input, hint || "default");
14433
- if (_typeof$t(res) !== "object") return res;
14491
+ if (_typeof$u(res) !== "object") return res;
14434
14492
  throw new TypeError("@@toPrimitive must return a primitive value.");
14435
14493
  }
14436
14494
  return (hint === "string" ? String : Number)(input);
@@ -14458,13 +14516,13 @@
14458
14516
  $$type: 'ais.currentRefinements',
14459
14517
  init: function init(initOptions) {
14460
14518
  var instantSearchInstance = initOptions.instantSearchInstance;
14461
- renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
14519
+ renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initOptions)), {}, {
14462
14520
  instantSearchInstance: instantSearchInstance
14463
14521
  }), true);
14464
14522
  },
14465
14523
  render: function render(renderOptions) {
14466
14524
  var instantSearchInstance = renderOptions.instantSearchInstance;
14467
- renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(renderOptions)), {}, {
14525
+ renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(renderOptions)), {}, {
14468
14526
  instantSearchInstance: instantSearchInstance
14469
14527
  }), false);
14470
14528
  },
@@ -14472,7 +14530,7 @@
14472
14530
  unmountFn();
14473
14531
  },
14474
14532
  getRenderState: function getRenderState(renderState, renderOptions) {
14475
- return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
14533
+ return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
14476
14534
  currentRefinements: this.getWidgetRenderState(renderOptions)
14477
14535
  });
14478
14536
  },
@@ -14623,16 +14681,16 @@
14623
14681
  return useConnector(connectCurrentRefinements, props, additionalWidgetProperties);
14624
14682
  }
14625
14683
 
14626
- function _typeof$u(obj) {
14684
+ function _typeof$v(obj) {
14627
14685
  "@babel/helpers - typeof";
14628
14686
 
14629
- return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14687
+ return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14630
14688
  return typeof obj;
14631
14689
  } : function (obj) {
14632
14690
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14633
- }, _typeof$u(obj);
14691
+ }, _typeof$v(obj);
14634
14692
  }
14635
- function ownKeys$o(object, enumerableOnly) {
14693
+ function ownKeys$p(object, enumerableOnly) {
14636
14694
  var keys = Object.keys(object);
14637
14695
  if (Object.getOwnPropertySymbols) {
14638
14696
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14642,19 +14700,19 @@
14642
14700
  }
14643
14701
  return keys;
14644
14702
  }
14645
- function _objectSpread$o(target) {
14703
+ function _objectSpread$p(target) {
14646
14704
  for (var i = 1; i < arguments.length; i++) {
14647
14705
  var source = null != arguments[i] ? arguments[i] : {};
14648
- i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
14649
- _defineProperty$p(target, key, source[key]);
14650
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
14651
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14652
- });
14706
+ i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14707
+ _defineProperty$q(target, key, source[key]);
14708
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
14709
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14710
+ });
14653
14711
  }
14654
14712
  return target;
14655
14713
  }
14656
- function _defineProperty$p(obj, key, value) {
14657
- key = _toPropertyKey$p(key);
14714
+ function _defineProperty$q(obj, key, value) {
14715
+ key = _toPropertyKey$q(key);
14658
14716
  if (key in obj) {
14659
14717
  Object.defineProperty(obj, key, {
14660
14718
  value: value,
@@ -14667,16 +14725,16 @@
14667
14725
  }
14668
14726
  return obj;
14669
14727
  }
14670
- function _toPropertyKey$p(arg) {
14671
- var key = _toPrimitive$p(arg, "string");
14672
- return _typeof$u(key) === "symbol" ? key : String(key);
14728
+ function _toPropertyKey$q(arg) {
14729
+ var key = _toPrimitive$q(arg, "string");
14730
+ return _typeof$v(key) === "symbol" ? key : String(key);
14673
14731
  }
14674
- function _toPrimitive$p(input, hint) {
14675
- if (_typeof$u(input) !== "object" || input === null) return input;
14732
+ function _toPrimitive$q(input, hint) {
14733
+ if (_typeof$v(input) !== "object" || input === null) return input;
14676
14734
  var prim = input[Symbol.toPrimitive];
14677
14735
  if (prim !== undefined) {
14678
14736
  var res = prim.call(input, hint || "default");
14679
- if (_typeof$u(res) !== "object") return res;
14737
+ if (_typeof$v(res) !== "object") return res;
14680
14738
  throw new TypeError("@@toPrimitive must return a primitive value.");
14681
14739
  }
14682
14740
  return (hint === "string" ? String : Number)(input);
@@ -14786,7 +14844,7 @@
14786
14844
  var isFirstRendering = true;
14787
14845
  widgetState.internalToggleRefineOnMapMove = createInternalToggleRefinementOnMapMove(initArgs, noop$1);
14788
14846
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(initArgs, noop$1);
14789
- renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initArgs)), {}, {
14847
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initArgs)), {}, {
14790
14848
  instantSearchInstance: instantSearchInstance
14791
14849
  }), isFirstRendering);
14792
14850
  },
@@ -14808,7 +14866,7 @@
14808
14866
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(renderArgs, this.render.bind(this));
14809
14867
  var widgetRenderState = this.getWidgetRenderState(renderArgs);
14810
14868
  sendEvent('view:internal', widgetRenderState.items);
14811
- renderFn(_objectSpread$o(_objectSpread$o({}, widgetRenderState), {}, {
14869
+ renderFn(_objectSpread$p(_objectSpread$p({}, widgetRenderState), {}, {
14812
14870
  instantSearchInstance: instantSearchInstance
14813
14871
  }), isFirstRendering);
14814
14872
  },
@@ -14847,7 +14905,7 @@
14847
14905
  };
14848
14906
  },
14849
14907
  getRenderState: function getRenderState(renderState, renderOptions) {
14850
- return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
14908
+ return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
14851
14909
  geoSearch: this.getWidgetRenderState(renderOptions)
14852
14910
  });
14853
14911
  },
@@ -14862,7 +14920,7 @@
14862
14920
  if (!boundingBox || uiState && uiState.geoSearch && uiState.geoSearch.boundingBox === boundingBox) {
14863
14921
  return uiState;
14864
14922
  }
14865
- return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
14923
+ return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
14866
14924
  geoSearch: {
14867
14925
  boundingBox: boundingBox
14868
14926
  }
@@ -14883,17 +14941,17 @@
14883
14941
  return useConnector(connectGeoSearch, props, additionalWidgetProperties);
14884
14942
  }
14885
14943
 
14886
- function _typeof$v(obj) {
14944
+ function _typeof$w(obj) {
14887
14945
  "@babel/helpers - typeof";
14888
14946
 
14889
- return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14947
+ return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14890
14948
  return typeof obj;
14891
14949
  } : function (obj) {
14892
14950
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14893
- }, _typeof$v(obj);
14951
+ }, _typeof$w(obj);
14894
14952
  }
14895
14953
  var _excluded$8 = ["name", "escapedValue", "data", "path"];
14896
- function ownKeys$p(object, enumerableOnly) {
14954
+ function ownKeys$q(object, enumerableOnly) {
14897
14955
  var keys = Object.keys(object);
14898
14956
  if (Object.getOwnPropertySymbols) {
14899
14957
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14903,19 +14961,19 @@
14903
14961
  }
14904
14962
  return keys;
14905
14963
  }
14906
- function _objectSpread$p(target) {
14964
+ function _objectSpread$q(target) {
14907
14965
  for (var i = 1; i < arguments.length; i++) {
14908
14966
  var source = null != arguments[i] ? arguments[i] : {};
14909
- i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14910
- _defineProperty$q(target, key, source[key]);
14911
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
14967
+ i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
14968
+ _defineProperty$r(target, key, source[key]);
14969
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
14912
14970
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14913
14971
  });
14914
14972
  }
14915
14973
  return target;
14916
14974
  }
14917
- function _defineProperty$q(obj, key, value) {
14918
- key = _toPropertyKey$q(key);
14975
+ function _defineProperty$r(obj, key, value) {
14976
+ key = _toPropertyKey$r(key);
14919
14977
  if (key in obj) {
14920
14978
  Object.defineProperty(obj, key, {
14921
14979
  value: value,
@@ -14928,16 +14986,16 @@
14928
14986
  }
14929
14987
  return obj;
14930
14988
  }
14931
- function _toPropertyKey$q(arg) {
14932
- var key = _toPrimitive$q(arg, "string");
14933
- return _typeof$v(key) === "symbol" ? key : String(key);
14989
+ function _toPropertyKey$r(arg) {
14990
+ var key = _toPrimitive$r(arg, "string");
14991
+ return _typeof$w(key) === "symbol" ? key : String(key);
14934
14992
  }
14935
- function _toPrimitive$q(input, hint) {
14936
- if (_typeof$v(input) !== "object" || input === null) return input;
14993
+ function _toPrimitive$r(input, hint) {
14994
+ if (_typeof$w(input) !== "object" || input === null) return input;
14937
14995
  var prim = input[Symbol.toPrimitive];
14938
14996
  if (prim !== undefined) {
14939
14997
  var res = prim.call(input, hint || "default");
14940
- if (_typeof$v(res) !== "object") return res;
14998
+ if (_typeof$w(res) !== "object") return res;
14941
14999
  throw new TypeError("@@toPrimitive must return a primitive value.");
14942
15000
  }
14943
15001
  return (hint === "string" ? String : Number)(input);
@@ -15097,7 +15155,7 @@
15097
15155
  data = _ref2.data,
15098
15156
  path = _ref2.path,
15099
15157
  subValue = _objectWithoutProperties$8(_ref2, _excluded$8);
15100
- var item = _objectSpread$p(_objectSpread$p({}, subValue), {}, {
15158
+ var item = _objectSpread$q(_objectSpread$q({}, subValue), {}, {
15101
15159
  value: value,
15102
15160
  label: label,
15103
15161
  data: null
@@ -15112,14 +15170,14 @@
15112
15170
  $$type: 'ais.hierarchicalMenu',
15113
15171
  init: function init(initOptions) {
15114
15172
  var instantSearchInstance = initOptions.instantSearchInstance;
15115
- renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
15173
+ renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
15116
15174
  instantSearchInstance: instantSearchInstance
15117
15175
  }), true);
15118
15176
  },
15119
15177
  render: function render(renderOptions) {
15120
15178
  var instantSearchInstance = renderOptions.instantSearchInstance;
15121
15179
  toggleShowMore = createToggleShowMore(renderOptions, this);
15122
- renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(renderOptions)), {}, {
15180
+ renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(renderOptions)), {}, {
15123
15181
  instantSearchInstance: instantSearchInstance
15124
15182
  }), false);
15125
15183
  },
@@ -15129,8 +15187,8 @@
15129
15187
  return state.removeHierarchicalFacet(hierarchicalFacetName).setQueryParameter('maxValuesPerFacet', undefined);
15130
15188
  },
15131
15189
  getRenderState: function getRenderState(renderState, renderOptions) {
15132
- return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
15133
- hierarchicalMenu: _objectSpread$p(_objectSpread$p({}, renderState.hierarchicalMenu), {}, _defineProperty$q({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
15190
+ return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
15191
+ hierarchicalMenu: _objectSpread$q(_objectSpread$q({}, renderState.hierarchicalMenu), {}, _defineProperty$r({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
15134
15192
  });
15135
15193
  },
15136
15194
  getWidgetRenderState: function getWidgetRenderState(_ref4) {
@@ -15203,8 +15261,8 @@
15203
15261
  getWidgetUiState: function getWidgetUiState(uiState, _ref5) {
15204
15262
  var searchParameters = _ref5.searchParameters;
15205
15263
  var path = searchParameters.getHierarchicalFacetBreadcrumb(hierarchicalFacetName);
15206
- return removeEmptyRefinementsFromUiState$1(_objectSpread$p(_objectSpread$p({}, uiState), {}, {
15207
- hierarchicalMenu: _objectSpread$p(_objectSpread$p({}, uiState.hierarchicalMenu), {}, _defineProperty$q({}, hierarchicalFacetName, path))
15264
+ return removeEmptyRefinementsFromUiState$1(_objectSpread$q(_objectSpread$q({}, uiState), {}, {
15265
+ hierarchicalMenu: _objectSpread$q(_objectSpread$q({}, uiState.hierarchicalMenu), {}, _defineProperty$r({}, hierarchicalFacetName, path))
15208
15266
  }), hierarchicalFacetName);
15209
15267
  },
15210
15268
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -15228,7 +15286,7 @@
15228
15286
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
15229
15287
  if (!values) {
15230
15288
  return withMaxValuesPerFacet.setQueryParameters({
15231
- hierarchicalFacetsRefinements: _objectSpread$p(_objectSpread$p({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$q({}, hierarchicalFacetName, []))
15289
+ hierarchicalFacetsRefinements: _objectSpread$q(_objectSpread$q({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$r({}, hierarchicalFacetName, []))
15232
15290
  });
15233
15291
  }
15234
15292
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -15253,16 +15311,16 @@
15253
15311
  return useConnector(connectHierarchicalMenu, props, additionalWidgetProperties);
15254
15312
  }
15255
15313
 
15256
- function _typeof$w(obj) {
15314
+ function _typeof$x(obj) {
15257
15315
  "@babel/helpers - typeof";
15258
15316
 
15259
- return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15317
+ return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15260
15318
  return typeof obj;
15261
15319
  } : function (obj) {
15262
15320
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15263
- }, _typeof$w(obj);
15321
+ }, _typeof$x(obj);
15264
15322
  }
15265
- function ownKeys$q(object, enumerableOnly) {
15323
+ function ownKeys$r(object, enumerableOnly) {
15266
15324
  var keys = Object.keys(object);
15267
15325
  if (Object.getOwnPropertySymbols) {
15268
15326
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15272,19 +15330,19 @@
15272
15330
  }
15273
15331
  return keys;
15274
15332
  }
15275
- function _objectSpread$q(target) {
15333
+ function _objectSpread$r(target) {
15276
15334
  for (var i = 1; i < arguments.length; i++) {
15277
15335
  var source = null != arguments[i] ? arguments[i] : {};
15278
- i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
15279
- _defineProperty$r(target, key, source[key]);
15280
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
15336
+ i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
15337
+ _defineProperty$s(target, key, source[key]);
15338
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
15281
15339
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15282
15340
  });
15283
15341
  }
15284
15342
  return target;
15285
15343
  }
15286
- function _defineProperty$r(obj, key, value) {
15287
- key = _toPropertyKey$r(key);
15344
+ function _defineProperty$s(obj, key, value) {
15345
+ key = _toPropertyKey$s(key);
15288
15346
  if (key in obj) {
15289
15347
  Object.defineProperty(obj, key, {
15290
15348
  value: value,
@@ -15297,16 +15355,16 @@
15297
15355
  }
15298
15356
  return obj;
15299
15357
  }
15300
- function _toPropertyKey$r(arg) {
15301
- var key = _toPrimitive$r(arg, "string");
15302
- return _typeof$w(key) === "symbol" ? key : String(key);
15358
+ function _toPropertyKey$s(arg) {
15359
+ var key = _toPrimitive$s(arg, "string");
15360
+ return _typeof$x(key) === "symbol" ? key : String(key);
15303
15361
  }
15304
- function _toPrimitive$r(input, hint) {
15305
- if (_typeof$w(input) !== "object" || input === null) return input;
15362
+ function _toPrimitive$s(input, hint) {
15363
+ if (_typeof$x(input) !== "object" || input === null) return input;
15306
15364
  var prim = input[Symbol.toPrimitive];
15307
15365
  if (prim !== undefined) {
15308
15366
  var res = prim.call(input, hint || "default");
15309
- if (_typeof$w(res) !== "object") return res;
15367
+ if (_typeof$x(res) !== "object") return res;
15310
15368
  throw new TypeError("@@toPrimitive must return a primitive value.");
15311
15369
  }
15312
15370
  return (hint === "string" ? String : Number)(input);
@@ -15331,19 +15389,19 @@
15331
15389
  return {
15332
15390
  $$type: 'ais.hits',
15333
15391
  init: function init(initOptions) {
15334
- renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
15392
+ renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
15335
15393
  instantSearchInstance: initOptions.instantSearchInstance
15336
15394
  }), true);
15337
15395
  },
15338
15396
  render: function render(renderOptions) {
15339
15397
  var renderState = this.getWidgetRenderState(renderOptions);
15340
- renderFn(_objectSpread$q(_objectSpread$q({}, renderState), {}, {
15398
+ renderFn(_objectSpread$r(_objectSpread$r({}, renderState), {}, {
15341
15399
  instantSearchInstance: renderOptions.instantSearchInstance
15342
15400
  }), false);
15343
15401
  renderState.sendEvent('view:internal', renderState.hits);
15344
15402
  },
15345
15403
  getRenderState: function getRenderState(renderState, renderOptions) {
15346
- return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
15404
+ return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
15347
15405
  hits: this.getWidgetRenderState(renderOptions)
15348
15406
  });
15349
15407
  },
@@ -15405,7 +15463,7 @@
15405
15463
  return state;
15406
15464
  }
15407
15465
  return state.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
15408
- return _objectSpread$q(_objectSpread$q({}, acc), {}, _defineProperty$r({}, key, undefined));
15466
+ return _objectSpread$r(_objectSpread$r({}, acc), {}, _defineProperty$s({}, key, undefined));
15409
15467
  }, {}));
15410
15468
  },
15411
15469
  getWidgetSearchParameters: function getWidgetSearchParameters(state) {
@@ -15424,14 +15482,14 @@
15424
15482
  return useConnector(connectHits, props, additionalWidgetProperties);
15425
15483
  }
15426
15484
 
15427
- function _typeof$x(obj) {
15485
+ function _typeof$y(obj) {
15428
15486
  "@babel/helpers - typeof";
15429
15487
 
15430
- return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15488
+ return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15431
15489
  return typeof obj;
15432
15490
  } : function (obj) {
15433
15491
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15434
- }, _typeof$x(obj);
15492
+ }, _typeof$y(obj);
15435
15493
  }
15436
15494
  function _toConsumableArray$5(arr) {
15437
15495
  return _arrayWithoutHoles$5(arr) || _iterableToArray$5(arr) || _unsupportedIterableToArray$e(arr) || _nonIterableSpread$5();
@@ -15458,7 +15516,7 @@
15458
15516
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
15459
15517
  return arr2;
15460
15518
  }
15461
- function ownKeys$r(object, enumerableOnly) {
15519
+ function ownKeys$s(object, enumerableOnly) {
15462
15520
  var keys = Object.keys(object);
15463
15521
  if (Object.getOwnPropertySymbols) {
15464
15522
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15468,19 +15526,19 @@
15468
15526
  }
15469
15527
  return keys;
15470
15528
  }
15471
- function _objectSpread$r(target) {
15529
+ function _objectSpread$s(target) {
15472
15530
  for (var i = 1; i < arguments.length; i++) {
15473
15531
  var source = null != arguments[i] ? arguments[i] : {};
15474
- i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
15475
- _defineProperty$s(target, key, source[key]);
15476
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
15532
+ i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
15533
+ _defineProperty$t(target, key, source[key]);
15534
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
15477
15535
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15478
15536
  });
15479
15537
  }
15480
15538
  return target;
15481
15539
  }
15482
- function _defineProperty$s(obj, key, value) {
15483
- key = _toPropertyKey$s(key);
15540
+ function _defineProperty$t(obj, key, value) {
15541
+ key = _toPropertyKey$t(key);
15484
15542
  if (key in obj) {
15485
15543
  Object.defineProperty(obj, key, {
15486
15544
  value: value,
@@ -15493,16 +15551,16 @@
15493
15551
  }
15494
15552
  return obj;
15495
15553
  }
15496
- function _toPropertyKey$s(arg) {
15497
- var key = _toPrimitive$s(arg, "string");
15498
- return _typeof$x(key) === "symbol" ? key : String(key);
15554
+ function _toPropertyKey$t(arg) {
15555
+ var key = _toPrimitive$t(arg, "string");
15556
+ return _typeof$y(key) === "symbol" ? key : String(key);
15499
15557
  }
15500
- function _toPrimitive$s(input, hint) {
15501
- if (_typeof$x(input) !== "object" || input === null) return input;
15558
+ function _toPrimitive$t(input, hint) {
15559
+ if (_typeof$y(input) !== "object" || input === null) return input;
15502
15560
  var prim = input[Symbol.toPrimitive];
15503
15561
  if (prim !== undefined) {
15504
15562
  var res = prim.call(input, hint || "default");
15505
- if (_typeof$x(res) !== "object") return res;
15563
+ if (_typeof$y(res) !== "object") return res;
15506
15564
  throw new TypeError("@@toPrimitive must return a primitive value.");
15507
15565
  }
15508
15566
  return (hint === "string" ? String : Number)(input);
@@ -15538,7 +15596,7 @@
15538
15596
  var normalizeItems = function normalizeItems(_ref2) {
15539
15597
  var hitsPerPage = _ref2.hitsPerPage;
15540
15598
  return items.map(function (item) {
15541
- return _objectSpread$r(_objectSpread$r({}, item), {}, {
15599
+ return _objectSpread$s(_objectSpread$s({}, item), {}, {
15542
15600
  isRefined: Number(item.value) === Number(hitsPerPage)
15543
15601
  });
15544
15602
  });
@@ -15580,13 +15638,13 @@
15580
15638
  label: ''
15581
15639
  }].concat(_toConsumableArray$5(items));
15582
15640
  }
15583
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
15641
+ renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
15584
15642
  instantSearchInstance: instantSearchInstance
15585
15643
  }), true);
15586
15644
  },
15587
15645
  render: function render(initOptions) {
15588
15646
  var instantSearchInstance = initOptions.instantSearchInstance;
15589
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
15647
+ renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
15590
15648
  instantSearchInstance: instantSearchInstance
15591
15649
  }), false);
15592
15650
  },
@@ -15596,7 +15654,7 @@
15596
15654
  return state.setQueryParameter('hitsPerPage', undefined);
15597
15655
  },
15598
15656
  getRenderState: function getRenderState(renderState, renderOptions) {
15599
- return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
15657
+ return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
15600
15658
  hitsPerPage: this.getWidgetRenderState(renderOptions)
15601
15659
  });
15602
15660
  },
@@ -15628,7 +15686,7 @@
15628
15686
  if (hitsPerPage === undefined || hitsPerPage === defaultItem.value) {
15629
15687
  return uiState;
15630
15688
  }
15631
- return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
15689
+ return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
15632
15690
  hitsPerPage: hitsPerPage
15633
15691
  });
15634
15692
  },
@@ -15646,18 +15704,18 @@
15646
15704
  return useConnector(connectHitsPerPage, props, additionalWidgetProperties);
15647
15705
  }
15648
15706
 
15649
- function _typeof$y(obj) {
15707
+ function _typeof$z(obj) {
15650
15708
  "@babel/helpers - typeof";
15651
15709
 
15652
- return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15710
+ return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15653
15711
  return typeof obj;
15654
15712
  } : function (obj) {
15655
15713
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15656
- }, _typeof$y(obj);
15714
+ }, _typeof$z(obj);
15657
15715
  }
15658
15716
  var _excluded$9 = ["page"],
15659
15717
  _excluded2$2 = ["clickAnalytics", "userToken"];
15660
- function ownKeys$s(object, enumerableOnly) {
15718
+ function ownKeys$t(object, enumerableOnly) {
15661
15719
  var keys = Object.keys(object);
15662
15720
  if (Object.getOwnPropertySymbols) {
15663
15721
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15667,19 +15725,19 @@
15667
15725
  }
15668
15726
  return keys;
15669
15727
  }
15670
- function _objectSpread$s(target) {
15728
+ function _objectSpread$t(target) {
15671
15729
  for (var i = 1; i < arguments.length; i++) {
15672
15730
  var source = null != arguments[i] ? arguments[i] : {};
15673
- i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
15674
- _defineProperty$t(target, key, source[key]);
15675
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
15731
+ i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
15732
+ _defineProperty$u(target, key, source[key]);
15733
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
15676
15734
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15677
15735
  });
15678
15736
  }
15679
15737
  return target;
15680
15738
  }
15681
- function _defineProperty$t(obj, key, value) {
15682
- key = _toPropertyKey$t(key);
15739
+ function _defineProperty$u(obj, key, value) {
15740
+ key = _toPropertyKey$u(key);
15683
15741
  if (key in obj) {
15684
15742
  Object.defineProperty(obj, key, {
15685
15743
  value: value,
@@ -15692,16 +15750,16 @@
15692
15750
  }
15693
15751
  return obj;
15694
15752
  }
15695
- function _toPropertyKey$t(arg) {
15696
- var key = _toPrimitive$t(arg, "string");
15697
- return _typeof$y(key) === "symbol" ? key : String(key);
15753
+ function _toPropertyKey$u(arg) {
15754
+ var key = _toPrimitive$u(arg, "string");
15755
+ return _typeof$z(key) === "symbol" ? key : String(key);
15698
15756
  }
15699
- function _toPrimitive$t(input, hint) {
15700
- if (_typeof$y(input) !== "object" || input === null) return input;
15757
+ function _toPrimitive$u(input, hint) {
15758
+ if (_typeof$z(input) !== "object" || input === null) return input;
15701
15759
  var prim = input[Symbol.toPrimitive];
15702
15760
  if (prim !== undefined) {
15703
15761
  var res = prim.call(input, hint || "default");
15704
- if (_typeof$y(res) !== "object") return res;
15762
+ if (_typeof$z(res) !== "object") return res;
15705
15763
  throw new TypeError("@@toPrimitive must return a primitive value.");
15706
15764
  }
15707
15765
  return (hint === "string" ? String : Number)(input);
@@ -15842,7 +15900,7 @@
15842
15900
  return function () {
15843
15901
  // Using the helper's `overrideStateWithoutTriggeringChangeEvent` method
15844
15902
  // avoid updating the browser URL when the user displays the previous page.
15845
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$s(_objectSpread$s({}, helper.state), {}, {
15903
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$t(_objectSpread$t({}, helper.state), {}, {
15846
15904
  page: getFirstReceivedPage(helper.state, cache.read({
15847
15905
  state: normalizeState(helper.state)
15848
15906
  }) || {}) - 1
@@ -15859,20 +15917,20 @@
15859
15917
  return {
15860
15918
  $$type: 'ais.infiniteHits',
15861
15919
  init: function init(initOptions) {
15862
- renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
15920
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
15863
15921
  instantSearchInstance: initOptions.instantSearchInstance
15864
15922
  }), true);
15865
15923
  },
15866
15924
  render: function render(renderOptions) {
15867
15925
  var instantSearchInstance = renderOptions.instantSearchInstance;
15868
15926
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
15869
- renderFn(_objectSpread$s(_objectSpread$s({}, widgetRenderState), {}, {
15927
+ renderFn(_objectSpread$t(_objectSpread$t({}, widgetRenderState), {}, {
15870
15928
  instantSearchInstance: instantSearchInstance
15871
15929
  }), false);
15872
15930
  sendEvent('view:internal', widgetRenderState.currentPageHits);
15873
15931
  },
15874
15932
  getRenderState: function getRenderState(renderState, renderOptions) {
15875
- return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
15933
+ return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
15876
15934
  infiniteHits: this.getWidgetRenderState(renderOptions)
15877
15935
  });
15878
15936
  },
@@ -15972,7 +16030,7 @@
15972
16030
  return stateWithoutPage;
15973
16031
  }
15974
16032
  return stateWithoutPage.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
15975
- return _objectSpread$s(_objectSpread$s({}, acc), {}, _defineProperty$t({}, key, undefined));
16033
+ return _objectSpread$t(_objectSpread$t({}, acc), {}, _defineProperty$u({}, key, undefined));
15976
16034
  }, {}));
15977
16035
  },
15978
16036
  getWidgetUiState: function getWidgetUiState(uiState, _ref9) {
@@ -15983,7 +16041,7 @@
15983
16041
  // because we don't want `page=1` in the URL
15984
16042
  return uiState;
15985
16043
  }
15986
- return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
16044
+ return _objectSpread$t(_objectSpread$t({}, uiState), {}, {
15987
16045
  // The page in the UI state is incremented by one
15988
16046
  // to expose the user value (not `0`).
15989
16047
  page: page + 1
@@ -16011,14 +16069,14 @@
16011
16069
  }
16012
16070
 
16013
16071
  var _excluded$a = ["name", "escapedValue", "path"];
16014
- function _typeof$z(obj) {
16072
+ function _typeof$A(obj) {
16015
16073
  "@babel/helpers - typeof";
16016
16074
 
16017
- return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16075
+ return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16018
16076
  return typeof obj;
16019
16077
  } : function (obj) {
16020
16078
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16021
- }, _typeof$z(obj);
16079
+ }, _typeof$A(obj);
16022
16080
  }
16023
16081
  function _objectWithoutProperties$a(source, excluded) {
16024
16082
  if (source == null) return {};
@@ -16096,7 +16154,7 @@
16096
16154
  function _arrayWithHoles$a(arr) {
16097
16155
  if (Array.isArray(arr)) return arr;
16098
16156
  }
16099
- function ownKeys$t(object, enumerableOnly) {
16157
+ function ownKeys$u(object, enumerableOnly) {
16100
16158
  var keys = Object.keys(object);
16101
16159
  if (Object.getOwnPropertySymbols) {
16102
16160
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16106,19 +16164,19 @@
16106
16164
  }
16107
16165
  return keys;
16108
16166
  }
16109
- function _objectSpread$t(target) {
16167
+ function _objectSpread$u(target) {
16110
16168
  for (var i = 1; i < arguments.length; i++) {
16111
16169
  var source = null != arguments[i] ? arguments[i] : {};
16112
- i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
16113
- _defineProperty$u(target, key, source[key]);
16114
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
16170
+ i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
16171
+ _defineProperty$v(target, key, source[key]);
16172
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
16115
16173
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16116
16174
  });
16117
16175
  }
16118
16176
  return target;
16119
16177
  }
16120
- function _defineProperty$u(obj, key, value) {
16121
- key = _toPropertyKey$u(key);
16178
+ function _defineProperty$v(obj, key, value) {
16179
+ key = _toPropertyKey$v(key);
16122
16180
  if (key in obj) {
16123
16181
  Object.defineProperty(obj, key, {
16124
16182
  value: value,
@@ -16131,16 +16189,16 @@
16131
16189
  }
16132
16190
  return obj;
16133
16191
  }
16134
- function _toPropertyKey$u(arg) {
16135
- var key = _toPrimitive$u(arg, "string");
16136
- return _typeof$z(key) === "symbol" ? key : String(key);
16192
+ function _toPropertyKey$v(arg) {
16193
+ var key = _toPrimitive$v(arg, "string");
16194
+ return _typeof$A(key) === "symbol" ? key : String(key);
16137
16195
  }
16138
- function _toPrimitive$u(input, hint) {
16139
- if (_typeof$z(input) !== "object" || input === null) return input;
16196
+ function _toPrimitive$v(input, hint) {
16197
+ if (_typeof$A(input) !== "object" || input === null) return input;
16140
16198
  var prim = input[Symbol.toPrimitive];
16141
16199
  if (prim !== undefined) {
16142
16200
  var res = prim.call(input, hint || "default");
16143
- if (_typeof$z(res) !== "object") return res;
16201
+ if (_typeof$A(res) !== "object") return res;
16144
16202
  throw new TypeError("@@toPrimitive must return a primitive value.");
16145
16203
  }
16146
16204
  return (hint === "string" ? String : Number)(input);
@@ -16207,13 +16265,13 @@
16207
16265
  $$type: 'ais.menu',
16208
16266
  init: function init(initOptions) {
16209
16267
  var instantSearchInstance = initOptions.instantSearchInstance;
16210
- renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
16268
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
16211
16269
  instantSearchInstance: instantSearchInstance
16212
16270
  }), true);
16213
16271
  },
16214
16272
  render: function render(renderOptions) {
16215
16273
  var instantSearchInstance = renderOptions.instantSearchInstance;
16216
- renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
16274
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
16217
16275
  instantSearchInstance: instantSearchInstance
16218
16276
  }), false);
16219
16277
  },
@@ -16223,8 +16281,8 @@
16223
16281
  return state.removeHierarchicalFacet(attribute).setQueryParameter('maxValuesPerFacet', undefined);
16224
16282
  },
16225
16283
  getRenderState: function getRenderState(renderState, renderOptions) {
16226
- return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
16227
- menu: _objectSpread$t(_objectSpread$t({}, renderState.menu), {}, _defineProperty$u({}, attribute, this.getWidgetRenderState(renderOptions)))
16284
+ return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
16285
+ menu: _objectSpread$u(_objectSpread$u({}, renderState.menu), {}, _defineProperty$v({}, attribute, this.getWidgetRenderState(renderOptions)))
16228
16286
  });
16229
16287
  },
16230
16288
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -16277,7 +16335,7 @@
16277
16335
  value = _ref3.escapedValue,
16278
16336
  path = _ref3.path,
16279
16337
  item = _objectWithoutProperties$a(_ref3, _excluded$a);
16280
- return _objectSpread$t(_objectSpread$t({}, item), {}, {
16338
+ return _objectSpread$u(_objectSpread$u({}, item), {}, {
16281
16339
  label: label,
16282
16340
  value: value
16283
16341
  });
@@ -16302,8 +16360,8 @@
16302
16360
  var _searchParameters$get = searchParameters.getHierarchicalFacetBreadcrumb(attribute),
16303
16361
  _searchParameters$get2 = _slicedToArray$a(_searchParameters$get, 1),
16304
16362
  value = _searchParameters$get2[0];
16305
- return removeEmptyRefinementsFromUiState$2(_objectSpread$t(_objectSpread$t({}, uiState), {}, {
16306
- menu: _objectSpread$t(_objectSpread$t({}, uiState.menu), {}, _defineProperty$u({}, attribute, value))
16363
+ return removeEmptyRefinementsFromUiState$2(_objectSpread$u(_objectSpread$u({}, uiState), {}, {
16364
+ menu: _objectSpread$u(_objectSpread$u({}, uiState.menu), {}, _defineProperty$v({}, attribute, value))
16307
16365
  }), attribute);
16308
16366
  },
16309
16367
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref5) {
@@ -16321,7 +16379,7 @@
16321
16379
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
16322
16380
  if (!value) {
16323
16381
  return withMaxValuesPerFacet.setQueryParameters({
16324
- hierarchicalFacetsRefinements: _objectSpread$t(_objectSpread$t({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$u({}, attribute, []))
16382
+ hierarchicalFacetsRefinements: _objectSpread$u(_objectSpread$u({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$v({}, attribute, []))
16325
16383
  });
16326
16384
  }
16327
16385
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(attribute, value);
@@ -16346,14 +16404,14 @@
16346
16404
  return useConnector(connectMenu, props, additionalWidgetProperties);
16347
16405
  }
16348
16406
 
16349
- function _typeof$A(obj) {
16407
+ function _typeof$B(obj) {
16350
16408
  "@babel/helpers - typeof";
16351
16409
 
16352
- return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16410
+ return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16353
16411
  return typeof obj;
16354
16412
  } : function (obj) {
16355
16413
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16356
- }, _typeof$A(obj);
16414
+ }, _typeof$B(obj);
16357
16415
  }
16358
16416
  function _createForOfIteratorHelper(o, allowArrayLike) {
16359
16417
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -16455,7 +16513,7 @@
16455
16513
  function _arrayWithHoles$b(arr) {
16456
16514
  if (Array.isArray(arr)) return arr;
16457
16515
  }
16458
- function ownKeys$u(object, enumerableOnly) {
16516
+ function ownKeys$v(object, enumerableOnly) {
16459
16517
  var keys = Object.keys(object);
16460
16518
  if (Object.getOwnPropertySymbols) {
16461
16519
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16465,19 +16523,19 @@
16465
16523
  }
16466
16524
  return keys;
16467
16525
  }
16468
- function _objectSpread$u(target) {
16526
+ function _objectSpread$v(target) {
16469
16527
  for (var i = 1; i < arguments.length; i++) {
16470
16528
  var source = null != arguments[i] ? arguments[i] : {};
16471
- i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
16472
- _defineProperty$v(target, key, source[key]);
16473
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
16529
+ i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16530
+ _defineProperty$w(target, key, source[key]);
16531
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
16474
16532
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16475
16533
  });
16476
16534
  }
16477
16535
  return target;
16478
16536
  }
16479
- function _defineProperty$v(obj, key, value) {
16480
- key = _toPropertyKey$v(key);
16537
+ function _defineProperty$w(obj, key, value) {
16538
+ key = _toPropertyKey$w(key);
16481
16539
  if (key in obj) {
16482
16540
  Object.defineProperty(obj, key, {
16483
16541
  value: value,
@@ -16490,16 +16548,16 @@
16490
16548
  }
16491
16549
  return obj;
16492
16550
  }
16493
- function _toPropertyKey$v(arg) {
16494
- var key = _toPrimitive$v(arg, "string");
16495
- return _typeof$A(key) === "symbol" ? key : String(key);
16551
+ function _toPropertyKey$w(arg) {
16552
+ var key = _toPrimitive$w(arg, "string");
16553
+ return _typeof$B(key) === "symbol" ? key : String(key);
16496
16554
  }
16497
- function _toPrimitive$v(input, hint) {
16498
- if (_typeof$A(input) !== "object" || input === null) return input;
16555
+ function _toPrimitive$w(input, hint) {
16556
+ if (_typeof$B(input) !== "object" || input === null) return input;
16499
16557
  var prim = input[Symbol.toPrimitive];
16500
16558
  if (prim !== undefined) {
16501
16559
  var res = prim.call(input, hint || "default");
16502
- if (_typeof$A(res) !== "object") return res;
16560
+ if (_typeof$B(res) !== "object") return res;
16503
16561
  throw new TypeError("@@toPrimitive must return a primitive value.");
16504
16562
  }
16505
16563
  return (hint === "string" ? String : Number)(input);
@@ -16561,13 +16619,13 @@
16561
16619
  $$type: $$type$1,
16562
16620
  init: function init(initOptions) {
16563
16621
  var instantSearchInstance = initOptions.instantSearchInstance;
16564
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
16622
+ renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(initOptions)), {}, {
16565
16623
  instantSearchInstance: instantSearchInstance
16566
16624
  }), true);
16567
16625
  },
16568
16626
  render: function render(renderOptions) {
16569
16627
  var instantSearchInstance = renderOptions.instantSearchInstance;
16570
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
16628
+ renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
16571
16629
  instantSearchInstance: instantSearchInstance
16572
16630
  }), false);
16573
16631
  },
@@ -16581,21 +16639,21 @@
16581
16639
  var values = searchParameters.getNumericRefinements(attribute);
16582
16640
  var equal = values['='] && values['='][0];
16583
16641
  if (equal || equal === 0) {
16584
- return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
16585
- numericMenu: _objectSpread$u(_objectSpread$u({}, uiState.numericMenu), {}, _defineProperty$v({}, attribute, "".concat(values['='])))
16642
+ return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
16643
+ numericMenu: _objectSpread$v(_objectSpread$v({}, uiState.numericMenu), {}, _defineProperty$w({}, attribute, "".concat(values['='])))
16586
16644
  });
16587
16645
  }
16588
16646
  var min = values['>='] && values['>='][0] || '';
16589
16647
  var max = values['<='] && values['<='][0] || '';
16590
- return removeEmptyRefinementsFromUiState$3(_objectSpread$u(_objectSpread$u({}, uiState), {}, {
16591
- numericMenu: _objectSpread$u(_objectSpread$u({}, uiState.numericMenu), {}, _defineProperty$v({}, attribute, "".concat(min, ":").concat(max)))
16648
+ return removeEmptyRefinementsFromUiState$3(_objectSpread$v(_objectSpread$v({}, uiState), {}, {
16649
+ numericMenu: _objectSpread$v(_objectSpread$v({}, uiState.numericMenu), {}, _defineProperty$w({}, attribute, "".concat(min, ":").concat(max)))
16592
16650
  }), attribute);
16593
16651
  },
16594
16652
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
16595
16653
  var uiState = _ref6.uiState;
16596
16654
  var value = uiState.numericMenu && uiState.numericMenu[attribute];
16597
16655
  var withoutRefinements = searchParameters.setQueryParameters({
16598
- numericRefinements: _objectSpread$u(_objectSpread$u({}, searchParameters.numericRefinements), {}, _defineProperty$v({}, attribute, {}))
16656
+ numericRefinements: _objectSpread$v(_objectSpread$v({}, searchParameters.numericRefinements), {}, _defineProperty$w({}, attribute, {}))
16599
16657
  });
16600
16658
  if (!value) {
16601
16659
  return withoutRefinements;
@@ -16613,8 +16671,8 @@
16613
16671
  return withMaxRefinement;
16614
16672
  },
16615
16673
  getRenderState: function getRenderState(renderState, renderOptions) {
16616
- return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
16617
- numericMenu: _objectSpread$u(_objectSpread$u({}, renderState.numericMenu), {}, _defineProperty$v({}, attribute, this.getWidgetRenderState(renderOptions)))
16674
+ return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
16675
+ numericMenu: _objectSpread$v(_objectSpread$v({}, renderState.numericMenu), {}, _defineProperty$w({}, attribute, this.getWidgetRenderState(renderOptions)))
16618
16676
  });
16619
16677
  },
16620
16678
  getWidgetRenderState: function getWidgetRenderState(_ref7) {
@@ -16768,14 +16826,14 @@
16768
16826
  return useConnector(connectNumericMenu, props, additionalWidgetProperties);
16769
16827
  }
16770
16828
 
16771
- function _typeof$B(obj) {
16829
+ function _typeof$C(obj) {
16772
16830
  "@babel/helpers - typeof";
16773
16831
 
16774
- return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16832
+ return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16775
16833
  return typeof obj;
16776
16834
  } : function (obj) {
16777
16835
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16778
- }, _typeof$B(obj);
16836
+ }, _typeof$C(obj);
16779
16837
  }
16780
16838
  function _classCallCheck$2(instance, Constructor) {
16781
16839
  if (!(instance instanceof Constructor)) {
@@ -16788,7 +16846,7 @@
16788
16846
  descriptor.enumerable = descriptor.enumerable || false;
16789
16847
  descriptor.configurable = true;
16790
16848
  if ("value" in descriptor) descriptor.writable = true;
16791
- Object.defineProperty(target, _toPropertyKey$w(descriptor.key), descriptor);
16849
+ Object.defineProperty(target, _toPropertyKey$x(descriptor.key), descriptor);
16792
16850
  }
16793
16851
  }
16794
16852
  function _createClass$2(Constructor, protoProps, staticProps) {
@@ -16799,8 +16857,8 @@
16799
16857
  });
16800
16858
  return Constructor;
16801
16859
  }
16802
- function _defineProperty$w(obj, key, value) {
16803
- key = _toPropertyKey$w(key);
16860
+ function _defineProperty$x(obj, key, value) {
16861
+ key = _toPropertyKey$x(key);
16804
16862
  if (key in obj) {
16805
16863
  Object.defineProperty(obj, key, {
16806
16864
  value: value,
@@ -16813,16 +16871,16 @@
16813
16871
  }
16814
16872
  return obj;
16815
16873
  }
16816
- function _toPropertyKey$w(arg) {
16817
- var key = _toPrimitive$w(arg, "string");
16818
- return _typeof$B(key) === "symbol" ? key : String(key);
16874
+ function _toPropertyKey$x(arg) {
16875
+ var key = _toPrimitive$x(arg, "string");
16876
+ return _typeof$C(key) === "symbol" ? key : String(key);
16819
16877
  }
16820
- function _toPrimitive$w(input, hint) {
16821
- if (_typeof$B(input) !== "object" || input === null) return input;
16878
+ function _toPrimitive$x(input, hint) {
16879
+ if (_typeof$C(input) !== "object" || input === null) return input;
16822
16880
  var prim = input[Symbol.toPrimitive];
16823
16881
  if (prim !== undefined) {
16824
16882
  var res = prim.call(input, hint || "default");
16825
- if (_typeof$B(res) !== "object") return res;
16883
+ if (_typeof$C(res) !== "object") return res;
16826
16884
  throw new TypeError("@@toPrimitive must return a primitive value.");
16827
16885
  }
16828
16886
  return (hint === "string" ? String : Number)(input);
@@ -16830,9 +16888,9 @@
16830
16888
  var Paginator = /*#__PURE__*/function () {
16831
16889
  function Paginator(params) {
16832
16890
  _classCallCheck$2(this, Paginator);
16833
- _defineProperty$w(this, "currentPage", void 0);
16834
- _defineProperty$w(this, "total", void 0);
16835
- _defineProperty$w(this, "padding", void 0);
16891
+ _defineProperty$x(this, "currentPage", void 0);
16892
+ _defineProperty$x(this, "total", void 0);
16893
+ _defineProperty$x(this, "padding", void 0);
16836
16894
  this.currentPage = params.currentPage;
16837
16895
  this.total = params.total;
16838
16896
  this.padding = params.padding;
@@ -16889,16 +16947,16 @@
16889
16947
  return Paginator;
16890
16948
  }();
16891
16949
 
16892
- function _typeof$C(obj) {
16950
+ function _typeof$D(obj) {
16893
16951
  "@babel/helpers - typeof";
16894
16952
 
16895
- return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16953
+ return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16896
16954
  return typeof obj;
16897
16955
  } : function (obj) {
16898
16956
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16899
- }, _typeof$C(obj);
16957
+ }, _typeof$D(obj);
16900
16958
  }
16901
- function ownKeys$v(object, enumerableOnly) {
16959
+ function ownKeys$w(object, enumerableOnly) {
16902
16960
  var keys = Object.keys(object);
16903
16961
  if (Object.getOwnPropertySymbols) {
16904
16962
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16908,19 +16966,19 @@
16908
16966
  }
16909
16967
  return keys;
16910
16968
  }
16911
- function _objectSpread$v(target) {
16969
+ function _objectSpread$w(target) {
16912
16970
  for (var i = 1; i < arguments.length; i++) {
16913
16971
  var source = null != arguments[i] ? arguments[i] : {};
16914
- i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16915
- _defineProperty$x(target, key, source[key]);
16916
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
16972
+ i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
16973
+ _defineProperty$y(target, key, source[key]);
16974
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
16917
16975
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16918
16976
  });
16919
16977
  }
16920
16978
  return target;
16921
16979
  }
16922
- function _defineProperty$x(obj, key, value) {
16923
- key = _toPropertyKey$x(key);
16980
+ function _defineProperty$y(obj, key, value) {
16981
+ key = _toPropertyKey$y(key);
16924
16982
  if (key in obj) {
16925
16983
  Object.defineProperty(obj, key, {
16926
16984
  value: value,
@@ -16933,16 +16991,16 @@
16933
16991
  }
16934
16992
  return obj;
16935
16993
  }
16936
- function _toPropertyKey$x(arg) {
16937
- var key = _toPrimitive$x(arg, "string");
16938
- return _typeof$C(key) === "symbol" ? key : String(key);
16994
+ function _toPropertyKey$y(arg) {
16995
+ var key = _toPrimitive$y(arg, "string");
16996
+ return _typeof$D(key) === "symbol" ? key : String(key);
16939
16997
  }
16940
- function _toPrimitive$x(input, hint) {
16941
- if (_typeof$C(input) !== "object" || input === null) return input;
16998
+ function _toPrimitive$y(input, hint) {
16999
+ if (_typeof$D(input) !== "object" || input === null) return input;
16942
17000
  var prim = input[Symbol.toPrimitive];
16943
17001
  if (prim !== undefined) {
16944
17002
  var res = prim.call(input, hint || "default");
16945
- if (_typeof$C(res) !== "object") return res;
17003
+ if (_typeof$D(res) !== "object") return res;
16946
17004
  throw new TypeError("@@toPrimitive must return a primitive value.");
16947
17005
  }
16948
17006
  return (hint === "string" ? String : Number)(input);
@@ -16980,13 +17038,13 @@
16980
17038
  $$type: 'ais.pagination',
16981
17039
  init: function init(initOptions) {
16982
17040
  var instantSearchInstance = initOptions.instantSearchInstance;
16983
- renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(initOptions)), {}, {
17041
+ renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
16984
17042
  instantSearchInstance: instantSearchInstance
16985
17043
  }), true);
16986
17044
  },
16987
17045
  render: function render(renderOptions) {
16988
17046
  var instantSearchInstance = renderOptions.instantSearchInstance;
16989
- renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
17047
+ renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
16990
17048
  instantSearchInstance: instantSearchInstance
16991
17049
  }), false);
16992
17050
  },
@@ -17001,7 +17059,7 @@
17001
17059
  if (!page) {
17002
17060
  return uiState;
17003
17061
  }
17004
- return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
17062
+ return _objectSpread$w(_objectSpread$w({}, uiState), {}, {
17005
17063
  page: page + 1
17006
17064
  });
17007
17065
  },
@@ -17024,7 +17082,7 @@
17024
17082
  if (!connectorState.createURL) {
17025
17083
  connectorState.createURL = function (page) {
17026
17084
  return createURL(function (uiState) {
17027
- return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
17085
+ return _objectSpread$w(_objectSpread$w({}, uiState), {}, {
17028
17086
  page: page + 1
17029
17087
  });
17030
17088
  });
@@ -17050,7 +17108,7 @@
17050
17108
  };
17051
17109
  },
17052
17110
  getRenderState: function getRenderState(renderState, renderOptions) {
17053
- return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
17111
+ return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
17054
17112
  pagination: this.getWidgetRenderState(renderOptions)
17055
17113
  });
17056
17114
  }
@@ -17077,16 +17135,16 @@
17077
17135
  };
17078
17136
  }
17079
17137
 
17080
- function _typeof$D(obj) {
17138
+ function _typeof$E(obj) {
17081
17139
  "@babel/helpers - typeof";
17082
17140
 
17083
- return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17141
+ return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17084
17142
  return typeof obj;
17085
17143
  } : function (obj) {
17086
17144
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17087
- }, _typeof$D(obj);
17145
+ }, _typeof$E(obj);
17088
17146
  }
17089
- function ownKeys$w(object, enumerableOnly) {
17147
+ function ownKeys$x(object, enumerableOnly) {
17090
17148
  var keys = Object.keys(object);
17091
17149
  if (Object.getOwnPropertySymbols) {
17092
17150
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17096,19 +17154,19 @@
17096
17154
  }
17097
17155
  return keys;
17098
17156
  }
17099
- function _objectSpread$w(target) {
17157
+ function _objectSpread$x(target) {
17100
17158
  for (var i = 1; i < arguments.length; i++) {
17101
17159
  var source = null != arguments[i] ? arguments[i] : {};
17102
- i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
17103
- _defineProperty$y(target, key, source[key]);
17104
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
17160
+ i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
17161
+ _defineProperty$z(target, key, source[key]);
17162
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
17105
17163
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17106
17164
  });
17107
17165
  }
17108
17166
  return target;
17109
17167
  }
17110
- function _defineProperty$y(obj, key, value) {
17111
- key = _toPropertyKey$y(key);
17168
+ function _defineProperty$z(obj, key, value) {
17169
+ key = _toPropertyKey$z(key);
17112
17170
  if (key in obj) {
17113
17171
  Object.defineProperty(obj, key, {
17114
17172
  value: value,
@@ -17121,16 +17179,16 @@
17121
17179
  }
17122
17180
  return obj;
17123
17181
  }
17124
- function _toPropertyKey$y(arg) {
17125
- var key = _toPrimitive$y(arg, "string");
17126
- return _typeof$D(key) === "symbol" ? key : String(key);
17182
+ function _toPropertyKey$z(arg) {
17183
+ var key = _toPrimitive$z(arg, "string");
17184
+ return _typeof$E(key) === "symbol" ? key : String(key);
17127
17185
  }
17128
- function _toPrimitive$y(input, hint) {
17129
- if (_typeof$D(input) !== "object" || input === null) return input;
17186
+ function _toPrimitive$z(input, hint) {
17187
+ if (_typeof$E(input) !== "object" || input === null) return input;
17130
17188
  var prim = input[Symbol.toPrimitive];
17131
17189
  if (prim !== undefined) {
17132
17190
  var res = prim.call(input, hint || "default");
17133
- if (_typeof$D(res) !== "object") return res;
17191
+ if (_typeof$E(res) !== "object") return res;
17134
17192
  throw new TypeError("@@toPrimitive must return a primitive value.");
17135
17193
  }
17136
17194
  return (hint === "string" ? String : Number)(input);
@@ -17210,7 +17268,7 @@
17210
17268
  var nextRuleContexts = [].concat(_toConsumableArray$7(initialRuleContexts), _toConsumableArray$7(newRuleContexts));
17211
17269
  var ruleContexts = transformRuleContexts(nextRuleContexts).slice(0, 10);
17212
17270
  if (!isEqual(previousRuleContexts, ruleContexts)) {
17213
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$w(_objectSpread$w({}, sharedHelperState), {}, {
17271
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$x(_objectSpread$x({}, sharedHelperState), {}, {
17214
17272
  ruleContexts: ruleContexts
17215
17273
  }));
17216
17274
  }
@@ -17269,13 +17327,13 @@
17269
17327
  // any `ruleContexts` needed based on the `trackedFilters`.
17270
17328
  helper.on('change', onHelperChange);
17271
17329
  }
17272
- _render(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
17330
+ _render(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(initOptions)), {}, {
17273
17331
  instantSearchInstance: instantSearchInstance
17274
17332
  }), true);
17275
17333
  },
17276
17334
  render: function render(renderOptions) {
17277
17335
  var instantSearchInstance = renderOptions.instantSearchInstance;
17278
- _render(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
17336
+ _render(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(renderOptions)), {}, {
17279
17337
  instantSearchInstance: instantSearchInstance
17280
17338
  }), false);
17281
17339
  },
@@ -17293,7 +17351,7 @@
17293
17351
  };
17294
17352
  },
17295
17353
  getRenderState: function getRenderState(renderState, renderOptions) {
17296
- return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
17354
+ return _objectSpread$x(_objectSpread$x({}, renderState), {}, {
17297
17355
  queryRules: this.getWidgetRenderState(renderOptions)
17298
17356
  });
17299
17357
  },
@@ -17315,16 +17373,16 @@
17315
17373
  return useConnector(connectQueryRules, props, additionalWidgetProperties);
17316
17374
  }
17317
17375
 
17318
- function _typeof$E(obj) {
17376
+ function _typeof$F(obj) {
17319
17377
  "@babel/helpers - typeof";
17320
17378
 
17321
- return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17379
+ return _typeof$F = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17322
17380
  return typeof obj;
17323
17381
  } : function (obj) {
17324
17382
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17325
- }, _typeof$E(obj);
17383
+ }, _typeof$F(obj);
17326
17384
  }
17327
- function ownKeys$x(object, enumerableOnly) {
17385
+ function ownKeys$y(object, enumerableOnly) {
17328
17386
  var keys = Object.keys(object);
17329
17387
  if (Object.getOwnPropertySymbols) {
17330
17388
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17334,19 +17392,19 @@
17334
17392
  }
17335
17393
  return keys;
17336
17394
  }
17337
- function _objectSpread$x(target) {
17395
+ function _objectSpread$y(target) {
17338
17396
  for (var i = 1; i < arguments.length; i++) {
17339
17397
  var source = null != arguments[i] ? arguments[i] : {};
17340
- i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
17341
- _defineProperty$z(target, key, source[key]);
17342
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
17398
+ i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17399
+ _defineProperty$A(target, key, source[key]);
17400
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
17343
17401
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17344
17402
  });
17345
17403
  }
17346
17404
  return target;
17347
17405
  }
17348
- function _defineProperty$z(obj, key, value) {
17349
- key = _toPropertyKey$z(key);
17406
+ function _defineProperty$A(obj, key, value) {
17407
+ key = _toPropertyKey$A(key);
17350
17408
  if (key in obj) {
17351
17409
  Object.defineProperty(obj, key, {
17352
17410
  value: value,
@@ -17359,16 +17417,16 @@
17359
17417
  }
17360
17418
  return obj;
17361
17419
  }
17362
- function _toPropertyKey$z(arg) {
17363
- var key = _toPrimitive$z(arg, "string");
17364
- return _typeof$E(key) === "symbol" ? key : String(key);
17420
+ function _toPropertyKey$A(arg) {
17421
+ var key = _toPrimitive$A(arg, "string");
17422
+ return _typeof$F(key) === "symbol" ? key : String(key);
17365
17423
  }
17366
- function _toPrimitive$z(input, hint) {
17367
- if (_typeof$E(input) !== "object" || input === null) return input;
17424
+ function _toPrimitive$A(input, hint) {
17425
+ if (_typeof$F(input) !== "object" || input === null) return input;
17368
17426
  var prim = input[Symbol.toPrimitive];
17369
17427
  if (prim !== undefined) {
17370
17428
  var res = prim.call(input, hint || "default");
17371
- if (_typeof$E(res) !== "object") return res;
17429
+ if (_typeof$F(res) !== "object") return res;
17372
17430
  throw new TypeError("@@toPrimitive must return a primitive value.");
17373
17431
  }
17374
17432
  return (hint === "string" ? String : Number)(input);
@@ -17593,18 +17651,18 @@
17593
17651
  return {
17594
17652
  $$type: $$type$2,
17595
17653
  init: function init(initOptions) {
17596
- renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(initOptions)), {}, {
17654
+ renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(initOptions)), {}, {
17597
17655
  instantSearchInstance: initOptions.instantSearchInstance
17598
17656
  }), true);
17599
17657
  },
17600
17658
  render: function render(renderOptions) {
17601
- renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(renderOptions)), {}, {
17659
+ renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(renderOptions)), {}, {
17602
17660
  instantSearchInstance: renderOptions.instantSearchInstance
17603
17661
  }), false);
17604
17662
  },
17605
17663
  getRenderState: function getRenderState(renderState, renderOptions) {
17606
- return _objectSpread$x(_objectSpread$x({}, renderState), {}, {
17607
- range: _objectSpread$x(_objectSpread$x({}, renderState.range), {}, _defineProperty$z({}, attribute, this.getWidgetRenderState(renderOptions)))
17664
+ return _objectSpread$y(_objectSpread$y({}, renderState), {}, {
17665
+ range: _objectSpread$y(_objectSpread$y({}, renderState.range), {}, _defineProperty$A({}, attribute, this.getWidgetRenderState(renderOptions)))
17608
17666
  });
17609
17667
  },
17610
17668
  getWidgetRenderState: function getWidgetRenderState(_ref13) {
@@ -17639,7 +17697,7 @@
17639
17697
  format: rangeFormatter,
17640
17698
  range: currentRange,
17641
17699
  sendEvent: createSendEvent(instantSearchInstance),
17642
- widgetParams: _objectSpread$x(_objectSpread$x({}, widgetParams), {}, {
17700
+ widgetParams: _objectSpread$y(_objectSpread$y({}, widgetParams), {}, {
17643
17701
  precision: precision
17644
17702
  }),
17645
17703
  start: start
@@ -17660,14 +17718,14 @@
17660
17718
  if (min.length === 0 && max.length === 0) {
17661
17719
  return uiState;
17662
17720
  }
17663
- return _objectSpread$x(_objectSpread$x({}, uiState), {}, {
17664
- range: _objectSpread$x(_objectSpread$x({}, uiState.range), {}, _defineProperty$z({}, attribute, "".concat(min, ":").concat(max)))
17721
+ return _objectSpread$y(_objectSpread$y({}, uiState), {}, {
17722
+ range: _objectSpread$y(_objectSpread$y({}, uiState.range), {}, _defineProperty$A({}, attribute, "".concat(min, ":").concat(max)))
17665
17723
  });
17666
17724
  },
17667
17725
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref16) {
17668
17726
  var uiState = _ref16.uiState;
17669
17727
  var widgetSearchParameters = searchParameters.addDisjunctiveFacet(attribute).setQueryParameters({
17670
- numericRefinements: _objectSpread$x(_objectSpread$x({}, searchParameters.numericRefinements), {}, _defineProperty$z({}, attribute, {}))
17728
+ numericRefinements: _objectSpread$y(_objectSpread$y({}, searchParameters.numericRefinements), {}, _defineProperty$A({}, attribute, {}))
17671
17729
  });
17672
17730
  if (isFiniteNumber(minBound)) {
17673
17731
  widgetSearchParameters = widgetSearchParameters.addNumericRefinement(attribute, '>=', minBound);
@@ -17701,18 +17759,18 @@
17701
17759
  return useConnector(connectRange, props, additionalWidgetProperties);
17702
17760
  }
17703
17761
 
17704
- function _typeof$F(obj) {
17762
+ function _typeof$G(obj) {
17705
17763
  "@babel/helpers - typeof";
17706
17764
 
17707
- return _typeof$F = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17765
+ return _typeof$G = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17708
17766
  return typeof obj;
17709
17767
  } : function (obj) {
17710
17768
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17711
- }, _typeof$F(obj);
17769
+ }, _typeof$G(obj);
17712
17770
  }
17713
17771
  var _excluded$b = ["name", "escapedValue"],
17714
17772
  _excluded2$3 = ["escapedValue", "value"];
17715
- function ownKeys$y(object, enumerableOnly) {
17773
+ function ownKeys$z(object, enumerableOnly) {
17716
17774
  var keys = Object.keys(object);
17717
17775
  if (Object.getOwnPropertySymbols) {
17718
17776
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17722,19 +17780,19 @@
17722
17780
  }
17723
17781
  return keys;
17724
17782
  }
17725
- function _objectSpread$y(target) {
17783
+ function _objectSpread$z(target) {
17726
17784
  for (var i = 1; i < arguments.length; i++) {
17727
17785
  var source = null != arguments[i] ? arguments[i] : {};
17728
- i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17729
- _defineProperty$A(target, key, source[key]);
17730
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
17786
+ i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) {
17787
+ _defineProperty$B(target, key, source[key]);
17788
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) {
17731
17789
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17732
17790
  });
17733
17791
  }
17734
17792
  return target;
17735
17793
  }
17736
- function _defineProperty$A(obj, key, value) {
17737
- key = _toPropertyKey$A(key);
17794
+ function _defineProperty$B(obj, key, value) {
17795
+ key = _toPropertyKey$B(key);
17738
17796
  if (key in obj) {
17739
17797
  Object.defineProperty(obj, key, {
17740
17798
  value: value,
@@ -17747,16 +17805,16 @@
17747
17805
  }
17748
17806
  return obj;
17749
17807
  }
17750
- function _toPropertyKey$A(arg) {
17751
- var key = _toPrimitive$A(arg, "string");
17752
- return _typeof$F(key) === "symbol" ? key : String(key);
17808
+ function _toPropertyKey$B(arg) {
17809
+ var key = _toPrimitive$B(arg, "string");
17810
+ return _typeof$G(key) === "symbol" ? key : String(key);
17753
17811
  }
17754
- function _toPrimitive$A(input, hint) {
17755
- if (_typeof$F(input) !== "object" || input === null) return input;
17812
+ function _toPrimitive$B(input, hint) {
17813
+ if (_typeof$G(input) !== "object" || input === null) return input;
17756
17814
  var prim = input[Symbol.toPrimitive];
17757
17815
  if (prim !== undefined) {
17758
17816
  var res = prim.call(input, hint || "default");
17759
- if (_typeof$F(res) !== "object") return res;
17817
+ if (_typeof$G(res) !== "object") return res;
17760
17818
  throw new TypeError("@@toPrimitive must return a primitive value.");
17761
17819
  }
17762
17820
  return (hint === "string" ? String : Number)(input);
@@ -17840,7 +17898,7 @@
17840
17898
  var label = _ref2.name,
17841
17899
  value = _ref2.escapedValue,
17842
17900
  item = _objectWithoutProperties$b(_ref2, _excluded$b);
17843
- return _objectSpread$y(_objectSpread$y({}, item), {}, {
17901
+ return _objectSpread$z(_objectSpread$z({}, item), {}, {
17844
17902
  value: value,
17845
17903
  label: label,
17846
17904
  highlighted: label
@@ -17877,7 +17935,7 @@
17877
17935
  searchResults = renderOptions.results;
17878
17936
  if (query === '' && lastItemsFromMainSearch) {
17879
17937
  // render with previous data from the helper.
17880
- renderFn(_objectSpread$y(_objectSpread$y({}, widget.getWidgetRenderState(_objectSpread$y(_objectSpread$y({}, renderOptions), {}, {
17938
+ renderFn(_objectSpread$z(_objectSpread$z({}, widget.getWidgetRenderState(_objectSpread$z(_objectSpread$z({}, renderOptions), {}, {
17881
17939
  results: lastResultsFromMainSearch
17882
17940
  }))), {}, {
17883
17941
  instantSearchInstance: instantSearchInstance
@@ -17897,14 +17955,14 @@
17897
17955
  var escapedValue = _ref3.escapedValue,
17898
17956
  value = _ref3.value,
17899
17957
  item = _objectWithoutProperties$b(_ref3, _excluded2$3);
17900
- return _objectSpread$y(_objectSpread$y({}, item), {}, {
17958
+ return _objectSpread$z(_objectSpread$z({}, item), {}, {
17901
17959
  value: escapedValue,
17902
17960
  label: value
17903
17961
  });
17904
17962
  }), {
17905
17963
  results: searchResults
17906
17964
  });
17907
- renderFn(_objectSpread$y(_objectSpread$y({}, widget.getWidgetRenderState(_objectSpread$y(_objectSpread$y({}, renderOptions), {}, {
17965
+ renderFn(_objectSpread$z(_objectSpread$z({}, widget.getWidgetRenderState(_objectSpread$z(_objectSpread$z({}, renderOptions), {}, {
17908
17966
  results: lastResultsFromMainSearch
17909
17967
  }))), {}, {
17910
17968
  items: normalizedFacetValues,
@@ -17921,18 +17979,18 @@
17921
17979
  return {
17922
17980
  $$type: 'ais.refinementList',
17923
17981
  init: function init(initOptions) {
17924
- renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(initOptions)), {}, {
17982
+ renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(initOptions)), {}, {
17925
17983
  instantSearchInstance: initOptions.instantSearchInstance
17926
17984
  }), true);
17927
17985
  },
17928
17986
  render: function render(renderOptions) {
17929
- renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(renderOptions)), {}, {
17987
+ renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(renderOptions)), {}, {
17930
17988
  instantSearchInstance: renderOptions.instantSearchInstance
17931
17989
  }), false);
17932
17990
  },
17933
17991
  getRenderState: function getRenderState(renderState, renderOptions) {
17934
- return _objectSpread$y(_objectSpread$y({}, renderState), {}, {
17935
- refinementList: _objectSpread$y(_objectSpread$y({}, renderState.refinementList), {}, _defineProperty$A({}, attribute, this.getWidgetRenderState(renderOptions)))
17992
+ return _objectSpread$z(_objectSpread$z({}, renderState), {}, {
17993
+ refinementList: _objectSpread$z(_objectSpread$z({}, renderState.refinementList), {}, _defineProperty$B({}, attribute, this.getWidgetRenderState(renderOptions)))
17936
17994
  });
17937
17995
  },
17938
17996
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -18022,8 +18080,8 @@
18022
18080
  getWidgetUiState: function getWidgetUiState(uiState, _ref5) {
18023
18081
  var searchParameters = _ref5.searchParameters;
18024
18082
  var values = operator === 'or' ? searchParameters.getDisjunctiveRefinements(attribute) : searchParameters.getConjunctiveRefinements(attribute);
18025
- return removeEmptyRefinementsFromUiState$4(_objectSpread$y(_objectSpread$y({}, uiState), {}, {
18026
- refinementList: _objectSpread$y(_objectSpread$y({}, uiState.refinementList), {}, _defineProperty$A({}, attribute, values))
18083
+ return removeEmptyRefinementsFromUiState$4(_objectSpread$z(_objectSpread$z({}, uiState), {}, {
18084
+ refinementList: _objectSpread$z(_objectSpread$z({}, uiState.refinementList), {}, _defineProperty$B({}, attribute, values))
18027
18085
  }), attribute);
18028
18086
  },
18029
18087
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -18042,7 +18100,7 @@
18042
18100
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
18043
18101
  if (!values) {
18044
18102
  var key = isDisjunctive ? 'disjunctiveFacetsRefinements' : 'facetsRefinements';
18045
- return withMaxValuesPerFacet.setQueryParameters(_defineProperty$A({}, key, _objectSpread$y(_objectSpread$y({}, withMaxValuesPerFacet[key]), {}, _defineProperty$A({}, attribute, []))));
18103
+ return withMaxValuesPerFacet.setQueryParameters(_defineProperty$B({}, key, _objectSpread$z(_objectSpread$z({}, withMaxValuesPerFacet[key]), {}, _defineProperty$B({}, attribute, []))));
18046
18104
  }
18047
18105
  return values.reduce(function (parameters, value) {
18048
18106
  return isDisjunctive ? parameters.addDisjunctiveFacetRefinement(attribute, value) : parameters.addFacetRefinement(attribute, value);
@@ -18068,16 +18126,16 @@
18068
18126
  return useConnector(connectRefinementList, props, additionalWidgetProperties);
18069
18127
  }
18070
18128
 
18071
- function _typeof$G(obj) {
18129
+ function _typeof$H(obj) {
18072
18130
  "@babel/helpers - typeof";
18073
18131
 
18074
- return _typeof$G = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18132
+ return _typeof$H = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18075
18133
  return typeof obj;
18076
18134
  } : function (obj) {
18077
18135
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18078
- }, _typeof$G(obj);
18136
+ }, _typeof$H(obj);
18079
18137
  }
18080
- function ownKeys$z(object, enumerableOnly) {
18138
+ function ownKeys$A(object, enumerableOnly) {
18081
18139
  var keys = Object.keys(object);
18082
18140
  if (Object.getOwnPropertySymbols) {
18083
18141
  var symbols = Object.getOwnPropertySymbols(object);
@@ -18087,19 +18145,19 @@
18087
18145
  }
18088
18146
  return keys;
18089
18147
  }
18090
- function _objectSpread$z(target) {
18148
+ function _objectSpread$A(target) {
18091
18149
  for (var i = 1; i < arguments.length; i++) {
18092
18150
  var source = null != arguments[i] ? arguments[i] : {};
18093
- i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) {
18094
- _defineProperty$B(target, key, source[key]);
18095
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) {
18151
+ i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) {
18152
+ _defineProperty$C(target, key, source[key]);
18153
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) {
18096
18154
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18097
18155
  });
18098
18156
  }
18099
18157
  return target;
18100
18158
  }
18101
- function _defineProperty$B(obj, key, value) {
18102
- key = _toPropertyKey$B(key);
18159
+ function _defineProperty$C(obj, key, value) {
18160
+ key = _toPropertyKey$C(key);
18103
18161
  if (key in obj) {
18104
18162
  Object.defineProperty(obj, key, {
18105
18163
  value: value,
@@ -18112,16 +18170,16 @@
18112
18170
  }
18113
18171
  return obj;
18114
18172
  }
18115
- function _toPropertyKey$B(arg) {
18116
- var key = _toPrimitive$B(arg, "string");
18117
- return _typeof$G(key) === "symbol" ? key : String(key);
18173
+ function _toPropertyKey$C(arg) {
18174
+ var key = _toPrimitive$C(arg, "string");
18175
+ return _typeof$H(key) === "symbol" ? key : String(key);
18118
18176
  }
18119
- function _toPrimitive$B(input, hint) {
18120
- if (_typeof$G(input) !== "object" || input === null) return input;
18177
+ function _toPrimitive$C(input, hint) {
18178
+ if (_typeof$H(input) !== "object" || input === null) return input;
18121
18179
  var prim = input[Symbol.toPrimitive];
18122
18180
  if (prim !== undefined) {
18123
18181
  var res = prim.call(input, hint || "default");
18124
- if (_typeof$G(res) !== "object") return res;
18182
+ if (_typeof$H(res) !== "object") return res;
18125
18183
  throw new TypeError("@@toPrimitive must return a primitive value.");
18126
18184
  }
18127
18185
  return (hint === "string" ? String : Number)(input);
@@ -18163,13 +18221,13 @@
18163
18221
  $$type: 'ais.searchBox',
18164
18222
  init: function init(initOptions) {
18165
18223
  var instantSearchInstance = initOptions.instantSearchInstance;
18166
- renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(initOptions)), {}, {
18224
+ renderFn(_objectSpread$A(_objectSpread$A({}, this.getWidgetRenderState(initOptions)), {}, {
18167
18225
  instantSearchInstance: instantSearchInstance
18168
18226
  }), true);
18169
18227
  },
18170
18228
  render: function render(renderOptions) {
18171
18229
  var instantSearchInstance = renderOptions.instantSearchInstance;
18172
- renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(renderOptions)), {}, {
18230
+ renderFn(_objectSpread$A(_objectSpread$A({}, this.getWidgetRenderState(renderOptions)), {}, {
18173
18231
  instantSearchInstance: instantSearchInstance
18174
18232
  }), false);
18175
18233
  },
@@ -18179,7 +18237,7 @@
18179
18237
  return state.setQueryParameter('query', undefined);
18180
18238
  },
18181
18239
  getRenderState: function getRenderState(renderState, renderOptions) {
18182
- return _objectSpread$z(_objectSpread$z({}, renderState), {}, {
18240
+ return _objectSpread$A(_objectSpread$A({}, renderState), {}, {
18183
18241
  searchBox: this.getWidgetRenderState(renderOptions)
18184
18242
  });
18185
18243
  },
@@ -18211,7 +18269,7 @@
18211
18269
  if (query === '' || uiState && uiState.query === query) {
18212
18270
  return uiState;
18213
18271
  }
18214
- return _objectSpread$z(_objectSpread$z({}, uiState), {}, {
18272
+ return _objectSpread$A(_objectSpread$A({}, uiState), {}, {
18215
18273
  query: query
18216
18274
  });
18217
18275
  },
@@ -18227,16 +18285,16 @@
18227
18285
  return useConnector(connectSearchBox, props, additionalWidgetProperties);
18228
18286
  }
18229
18287
 
18230
- function _typeof$H(obj) {
18288
+ function _typeof$I(obj) {
18231
18289
  "@babel/helpers - typeof";
18232
18290
 
18233
- return _typeof$H = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18291
+ return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18234
18292
  return typeof obj;
18235
18293
  } : function (obj) {
18236
18294
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18237
- }, _typeof$H(obj);
18295
+ }, _typeof$I(obj);
18238
18296
  }
18239
- function ownKeys$A(object, enumerableOnly) {
18297
+ function ownKeys$B(object, enumerableOnly) {
18240
18298
  var keys = Object.keys(object);
18241
18299
  if (Object.getOwnPropertySymbols) {
18242
18300
  var symbols = Object.getOwnPropertySymbols(object);
@@ -18246,19 +18304,19 @@
18246
18304
  }
18247
18305
  return keys;
18248
18306
  }
18249
- function _objectSpread$A(target) {
18307
+ function _objectSpread$B(target) {
18250
18308
  for (var i = 1; i < arguments.length; i++) {
18251
18309
  var source = null != arguments[i] ? arguments[i] : {};
18252
- i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) {
18253
- _defineProperty$C(target, key, source[key]);
18254
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) {
18310
+ i % 2 ? ownKeys$B(Object(source), !0).forEach(function (key) {
18311
+ _defineProperty$D(target, key, source[key]);
18312
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$B(Object(source)).forEach(function (key) {
18255
18313
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18256
18314
  });
18257
18315
  }
18258
18316
  return target;
18259
18317
  }
18260
- function _defineProperty$C(obj, key, value) {
18261
- key = _toPropertyKey$C(key);
18318
+ function _defineProperty$D(obj, key, value) {
18319
+ key = _toPropertyKey$D(key);
18262
18320
  if (key in obj) {
18263
18321
  Object.defineProperty(obj, key, {
18264
18322
  value: value,
@@ -18271,16 +18329,16 @@
18271
18329
  }
18272
18330
  return obj;
18273
18331
  }
18274
- function _toPropertyKey$C(arg) {
18275
- var key = _toPrimitive$C(arg, "string");
18276
- return _typeof$H(key) === "symbol" ? key : String(key);
18332
+ function _toPropertyKey$D(arg) {
18333
+ var key = _toPrimitive$D(arg, "string");
18334
+ return _typeof$I(key) === "symbol" ? key : String(key);
18277
18335
  }
18278
- function _toPrimitive$C(input, hint) {
18279
- if (_typeof$H(input) !== "object" || input === null) return input;
18336
+ function _toPrimitive$D(input, hint) {
18337
+ if (_typeof$I(input) !== "object" || input === null) return input;
18280
18338
  var prim = input[Symbol.toPrimitive];
18281
18339
  if (prim !== undefined) {
18282
18340
  var res = prim.call(input, hint || "default");
18283
- if (_typeof$H(res) !== "object") return res;
18341
+ if (_typeof$I(res) !== "object") return res;
18284
18342
  throw new TypeError("@@toPrimitive must return a primitive value.");
18285
18343
  }
18286
18344
  return (hint === "string" ? String : Number)(input);
@@ -18319,13 +18377,13 @@
18319
18377
  var isCurrentIndexInItems = find$1(items, function (item) {
18320
18378
  return item.value === currentIndex;
18321
18379
  });
18322
- renderFn(_objectSpread$A(_objectSpread$A({}, widgetRenderState), {}, {
18380
+ renderFn(_objectSpread$B(_objectSpread$B({}, widgetRenderState), {}, {
18323
18381
  instantSearchInstance: instantSearchInstance
18324
18382
  }), true);
18325
18383
  },
18326
18384
  render: function render(renderOptions) {
18327
18385
  var instantSearchInstance = renderOptions.instantSearchInstance;
18328
- renderFn(_objectSpread$A(_objectSpread$A({}, this.getWidgetRenderState(renderOptions)), {}, {
18386
+ renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(renderOptions)), {}, {
18329
18387
  instantSearchInstance: instantSearchInstance
18330
18388
  }), false);
18331
18389
  },
@@ -18335,7 +18393,7 @@
18335
18393
  return connectorState.initialIndex ? state.setIndex(connectorState.initialIndex) : state;
18336
18394
  },
18337
18395
  getRenderState: function getRenderState(renderState, renderOptions) {
18338
- return _objectSpread$A(_objectSpread$A({}, renderState), {}, {
18396
+ return _objectSpread$B(_objectSpread$B({}, renderState), {}, {
18339
18397
  sortBy: this.getWidgetRenderState(renderOptions)
18340
18398
  });
18341
18399
  },
@@ -18367,7 +18425,7 @@
18367
18425
  getWidgetUiState: function getWidgetUiState(uiState, _ref4) {
18368
18426
  var searchParameters = _ref4.searchParameters;
18369
18427
  var currentIndex = searchParameters.index;
18370
- return _objectSpread$A(_objectSpread$A({}, uiState), {}, {
18428
+ return _objectSpread$B(_objectSpread$B({}, uiState), {}, {
18371
18429
  sortBy: currentIndex !== connectorState.initialIndex ? currentIndex : undefined
18372
18430
  });
18373
18431
  },
@@ -18383,16 +18441,16 @@
18383
18441
  return useConnector(connectSortBy, props, additionalWidgetProperties);
18384
18442
  }
18385
18443
 
18386
- function _typeof$I(obj) {
18444
+ function _typeof$J(obj) {
18387
18445
  "@babel/helpers - typeof";
18388
18446
 
18389
- return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18447
+ return _typeof$J = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18390
18448
  return typeof obj;
18391
18449
  } : function (obj) {
18392
18450
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18393
- }, _typeof$I(obj);
18451
+ }, _typeof$J(obj);
18394
18452
  }
18395
- function ownKeys$B(object, enumerableOnly) {
18453
+ function ownKeys$C(object, enumerableOnly) {
18396
18454
  var keys = Object.keys(object);
18397
18455
  if (Object.getOwnPropertySymbols) {
18398
18456
  var symbols = Object.getOwnPropertySymbols(object);
@@ -18402,19 +18460,19 @@
18402
18460
  }
18403
18461
  return keys;
18404
18462
  }
18405
- function _objectSpread$B(target) {
18463
+ function _objectSpread$C(target) {
18406
18464
  for (var i = 1; i < arguments.length; i++) {
18407
18465
  var source = null != arguments[i] ? arguments[i] : {};
18408
- i % 2 ? ownKeys$B(Object(source), !0).forEach(function (key) {
18409
- _defineProperty$D(target, key, source[key]);
18410
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$B(Object(source)).forEach(function (key) {
18466
+ i % 2 ? ownKeys$C(Object(source), !0).forEach(function (key) {
18467
+ _defineProperty$E(target, key, source[key]);
18468
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$C(Object(source)).forEach(function (key) {
18411
18469
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18412
18470
  });
18413
18471
  }
18414
18472
  return target;
18415
18473
  }
18416
- function _defineProperty$D(obj, key, value) {
18417
- key = _toPropertyKey$D(key);
18474
+ function _defineProperty$E(obj, key, value) {
18475
+ key = _toPropertyKey$E(key);
18418
18476
  if (key in obj) {
18419
18477
  Object.defineProperty(obj, key, {
18420
18478
  value: value,
@@ -18427,16 +18485,16 @@
18427
18485
  }
18428
18486
  return obj;
18429
18487
  }
18430
- function _toPropertyKey$D(arg) {
18431
- var key = _toPrimitive$D(arg, "string");
18432
- return _typeof$I(key) === "symbol" ? key : String(key);
18488
+ function _toPropertyKey$E(arg) {
18489
+ var key = _toPrimitive$E(arg, "string");
18490
+ return _typeof$J(key) === "symbol" ? key : String(key);
18433
18491
  }
18434
- function _toPrimitive$D(input, hint) {
18435
- if (_typeof$I(input) !== "object" || input === null) return input;
18492
+ function _toPrimitive$E(input, hint) {
18493
+ if (_typeof$J(input) !== "object" || input === null) return input;
18436
18494
  var prim = input[Symbol.toPrimitive];
18437
18495
  if (prim !== undefined) {
18438
18496
  var res = prim.call(input, hint || "default");
18439
- if (_typeof$I(res) !== "object") return res;
18497
+ if (_typeof$J(res) !== "object") return res;
18440
18498
  throw new TypeError("@@toPrimitive must return a primitive value.");
18441
18499
  }
18442
18500
  return (hint === "string" ? String : Number)(input);
@@ -18459,13 +18517,13 @@
18459
18517
  $$type: 'ais.stats',
18460
18518
  init: function init(initOptions) {
18461
18519
  var instantSearchInstance = initOptions.instantSearchInstance;
18462
- renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(initOptions)), {}, {
18520
+ renderFn(_objectSpread$C(_objectSpread$C({}, this.getWidgetRenderState(initOptions)), {}, {
18463
18521
  instantSearchInstance: instantSearchInstance
18464
18522
  }), true);
18465
18523
  },
18466
18524
  render: function render(renderOptions) {
18467
18525
  var instantSearchInstance = renderOptions.instantSearchInstance;
18468
- renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(renderOptions)), {}, {
18526
+ renderFn(_objectSpread$C(_objectSpread$C({}, this.getWidgetRenderState(renderOptions)), {}, {
18469
18527
  instantSearchInstance: instantSearchInstance
18470
18528
  }), false);
18471
18529
  },
@@ -18473,7 +18531,7 @@
18473
18531
  unmountFn();
18474
18532
  },
18475
18533
  getRenderState: function getRenderState(renderState, renderOptions) {
18476
- return _objectSpread$B(_objectSpread$B({}, renderState), {}, {
18534
+ return _objectSpread$C(_objectSpread$C({}, renderState), {}, {
18477
18535
  stats: this.getWidgetRenderState(renderOptions)
18478
18536
  });
18479
18537
  },
@@ -18513,16 +18571,16 @@
18513
18571
  return useConnector(connectStats, props, additionalWidgetProperties);
18514
18572
  }
18515
18573
 
18516
- function _typeof$J(obj) {
18574
+ function _typeof$K(obj) {
18517
18575
  "@babel/helpers - typeof";
18518
18576
 
18519
- return _typeof$J = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18577
+ return _typeof$K = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18520
18578
  return typeof obj;
18521
18579
  } : function (obj) {
18522
18580
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18523
- }, _typeof$J(obj);
18581
+ }, _typeof$K(obj);
18524
18582
  }
18525
- function ownKeys$C(object, enumerableOnly) {
18583
+ function ownKeys$D(object, enumerableOnly) {
18526
18584
  var keys = Object.keys(object);
18527
18585
  if (Object.getOwnPropertySymbols) {
18528
18586
  var symbols = Object.getOwnPropertySymbols(object);
@@ -18532,19 +18590,19 @@
18532
18590
  }
18533
18591
  return keys;
18534
18592
  }
18535
- function _objectSpread$C(target) {
18593
+ function _objectSpread$D(target) {
18536
18594
  for (var i = 1; i < arguments.length; i++) {
18537
18595
  var source = null != arguments[i] ? arguments[i] : {};
18538
- i % 2 ? ownKeys$C(Object(source), !0).forEach(function (key) {
18539
- _defineProperty$E(target, key, source[key]);
18540
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$C(Object(source)).forEach(function (key) {
18596
+ i % 2 ? ownKeys$D(Object(source), !0).forEach(function (key) {
18597
+ _defineProperty$F(target, key, source[key]);
18598
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$D(Object(source)).forEach(function (key) {
18541
18599
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18542
18600
  });
18543
18601
  }
18544
18602
  return target;
18545
18603
  }
18546
- function _defineProperty$E(obj, key, value) {
18547
- key = _toPropertyKey$E(key);
18604
+ function _defineProperty$F(obj, key, value) {
18605
+ key = _toPropertyKey$F(key);
18548
18606
  if (key in obj) {
18549
18607
  Object.defineProperty(obj, key, {
18550
18608
  value: value,
@@ -18557,16 +18615,16 @@
18557
18615
  }
18558
18616
  return obj;
18559
18617
  }
18560
- function _toPropertyKey$E(arg) {
18561
- var key = _toPrimitive$E(arg, "string");
18562
- return _typeof$J(key) === "symbol" ? key : String(key);
18618
+ function _toPropertyKey$F(arg) {
18619
+ var key = _toPrimitive$F(arg, "string");
18620
+ return _typeof$K(key) === "symbol" ? key : String(key);
18563
18621
  }
18564
- function _toPrimitive$E(input, hint) {
18565
- if (_typeof$J(input) !== "object" || input === null) return input;
18622
+ function _toPrimitive$F(input, hint) {
18623
+ if (_typeof$K(input) !== "object" || input === null) return input;
18566
18624
  var prim = input[Symbol.toPrimitive];
18567
18625
  if (prim !== undefined) {
18568
18626
  var res = prim.call(input, hint || "default");
18569
- if (_typeof$J(res) !== "object") return res;
18627
+ if (_typeof$K(res) !== "object") return res;
18570
18628
  throw new TypeError("@@toPrimitive must return a primitive value.");
18571
18629
  }
18572
18630
  return (hint === "string" ? String : Number)(input);
@@ -18758,13 +18816,13 @@
18758
18816
  $$type: $$type$3,
18759
18817
  init: function init(initOptions) {
18760
18818
  var instantSearchInstance = initOptions.instantSearchInstance;
18761
- renderFn(_objectSpread$C(_objectSpread$C({}, this.getWidgetRenderState(initOptions)), {}, {
18819
+ renderFn(_objectSpread$D(_objectSpread$D({}, this.getWidgetRenderState(initOptions)), {}, {
18762
18820
  instantSearchInstance: instantSearchInstance
18763
18821
  }), true);
18764
18822
  },
18765
18823
  render: function render(renderOptions) {
18766
18824
  var instantSearchInstance = renderOptions.instantSearchInstance;
18767
- renderFn(_objectSpread$C(_objectSpread$C({}, this.getWidgetRenderState(renderOptions)), {}, {
18825
+ renderFn(_objectSpread$D(_objectSpread$D({}, this.getWidgetRenderState(renderOptions)), {}, {
18768
18826
  instantSearchInstance: instantSearchInstance
18769
18827
  }), false);
18770
18828
  },
@@ -18774,8 +18832,8 @@
18774
18832
  return state.removeDisjunctiveFacet(attribute);
18775
18833
  },
18776
18834
  getRenderState: function getRenderState(renderState, renderOptions) {
18777
- return _objectSpread$C(_objectSpread$C({}, renderState), {}, {
18778
- toggleRefinement: _objectSpread$C(_objectSpread$C({}, renderState.toggleRefinement), {}, _defineProperty$E({}, attribute, this.getWidgetRenderState(renderOptions)))
18835
+ return _objectSpread$D(_objectSpread$D({}, renderState), {}, {
18836
+ toggleRefinement: _objectSpread$D(_objectSpread$D({}, renderState.toggleRefinement), {}, _defineProperty$F({}, attribute, this.getWidgetRenderState(renderOptions)))
18779
18837
  });
18780
18838
  },
18781
18839
  getWidgetRenderState: function getWidgetRenderState(_ref6) {
@@ -18876,8 +18934,8 @@
18876
18934
  (_uiState$toggle = uiState.toggle) === null || _uiState$toggle === void 0 ? true : delete _uiState$toggle[attribute];
18877
18935
  return uiState;
18878
18936
  }
18879
- return _objectSpread$C(_objectSpread$C({}, uiState), {}, {
18880
- toggle: _objectSpread$C(_objectSpread$C({}, uiState.toggle), {}, _defineProperty$E({}, attribute, isRefined))
18937
+ return _objectSpread$D(_objectSpread$D({}, uiState), {}, {
18938
+ toggle: _objectSpread$D(_objectSpread$D({}, uiState.toggle), {}, _defineProperty$F({}, attribute, isRefined))
18881
18939
  });
18882
18940
  },
18883
18941
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref11) {
@@ -18908,7 +18966,7 @@
18908
18966
 
18909
18967
  // It's not refined without an `off` value
18910
18968
  return withFacetConfiguration.setQueryParameters({
18911
- disjunctiveFacetsRefinements: _objectSpread$C(_objectSpread$C({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$E({}, attribute, []))
18969
+ disjunctiveFacetsRefinements: _objectSpread$D(_objectSpread$D({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$F({}, attribute, []))
18912
18970
  });
18913
18971
  }
18914
18972
  };
@@ -19179,16 +19237,16 @@
19179
19237
  return promise;
19180
19238
  }
19181
19239
 
19182
- function _typeof$K(obj) {
19240
+ function _typeof$L(obj) {
19183
19241
  "@babel/helpers - typeof";
19184
19242
 
19185
- return _typeof$K = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
19243
+ return _typeof$L = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
19186
19244
  return typeof obj;
19187
19245
  } : function (obj) {
19188
19246
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
19189
- }, _typeof$K(obj);
19247
+ }, _typeof$L(obj);
19190
19248
  }
19191
- function ownKeys$D(object, enumerableOnly) {
19249
+ function ownKeys$E(object, enumerableOnly) {
19192
19250
  var keys = Object.keys(object);
19193
19251
  if (Object.getOwnPropertySymbols) {
19194
19252
  var symbols = Object.getOwnPropertySymbols(object);
@@ -19198,19 +19256,19 @@
19198
19256
  }
19199
19257
  return keys;
19200
19258
  }
19201
- function _objectSpread$D(target) {
19259
+ function _objectSpread$E(target) {
19202
19260
  for (var i = 1; i < arguments.length; i++) {
19203
19261
  var source = null != arguments[i] ? arguments[i] : {};
19204
- i % 2 ? ownKeys$D(Object(source), !0).forEach(function (key) {
19205
- _defineProperty$F(target, key, source[key]);
19206
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$D(Object(source)).forEach(function (key) {
19262
+ i % 2 ? ownKeys$E(Object(source), !0).forEach(function (key) {
19263
+ _defineProperty$G(target, key, source[key]);
19264
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$E(Object(source)).forEach(function (key) {
19207
19265
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
19208
19266
  });
19209
19267
  }
19210
19268
  return target;
19211
19269
  }
19212
- function _defineProperty$F(obj, key, value) {
19213
- key = _toPropertyKey$F(key);
19270
+ function _defineProperty$G(obj, key, value) {
19271
+ key = _toPropertyKey$G(key);
19214
19272
  if (key in obj) {
19215
19273
  Object.defineProperty(obj, key, {
19216
19274
  value: value,
@@ -19223,16 +19281,16 @@
19223
19281
  }
19224
19282
  return obj;
19225
19283
  }
19226
- function _toPropertyKey$F(arg) {
19227
- var key = _toPrimitive$F(arg, "string");
19228
- return _typeof$K(key) === "symbol" ? key : String(key);
19284
+ function _toPropertyKey$G(arg) {
19285
+ var key = _toPrimitive$G(arg, "string");
19286
+ return _typeof$L(key) === "symbol" ? key : String(key);
19229
19287
  }
19230
- function _toPrimitive$F(input, hint) {
19231
- if (_typeof$K(input) !== "object" || input === null) return input;
19288
+ function _toPrimitive$G(input, hint) {
19289
+ if (_typeof$L(input) !== "object" || input === null) return input;
19232
19290
  var prim = input[Symbol.toPrimitive];
19233
19291
  if (prim !== undefined) {
19234
19292
  var res = prim.call(input, hint || "default");
19235
- if (_typeof$K(res) !== "object") return res;
19293
+ if (_typeof$L(res) !== "object") return res;
19236
19294
  throw new TypeError("@@toPrimitive must return a primitive value.");
19237
19295
  }
19238
19296
  return (hint === "string" ? String : Number)(input);
@@ -19296,10 +19354,10 @@
19296
19354
  var searchResults = widget.getResults();
19297
19355
  if (searchResults) {
19298
19356
  var requestParams = requestParamsList === null || requestParamsList === void 0 ? void 0 : requestParamsList[requestParamsIndex++];
19299
- initialResults[widget.getIndexId()] = _objectSpread$D({
19357
+ initialResults[widget.getIndexId()] = _objectSpread$E({
19300
19358
  // We convert the Helper state to a plain object to pass parsable data
19301
19359
  // structures from server to client.
19302
- state: _objectSpread$D({}, searchResults._state),
19360
+ state: _objectSpread$E({}, searchResults._state),
19303
19361
  results: searchResults._rawResults
19304
19362
  }, requestParams && {
19305
19363
  requestParams: requestParams
@@ -19422,7 +19480,7 @@
19422
19480
  return _arr;
19423
19481
  }
19424
19482
  }
19425
- function ownKeys$E(object, enumerableOnly) {
19483
+ function ownKeys$F(object, enumerableOnly) {
19426
19484
  var keys = Object.keys(object);
19427
19485
  if (Object.getOwnPropertySymbols) {
19428
19486
  var symbols = Object.getOwnPropertySymbols(object);
@@ -19435,16 +19493,16 @@
19435
19493
  function _objectSpread2(target) {
19436
19494
  for (var i = 1; i < arguments.length; i++) {
19437
19495
  var source = null != arguments[i] ? arguments[i] : {};
19438
- i % 2 ? ownKeys$E(Object(source), !0).forEach(function (key) {
19439
- _defineProperty$G(target, key, source[key]);
19440
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$E(Object(source)).forEach(function (key) {
19496
+ i % 2 ? ownKeys$F(Object(source), !0).forEach(function (key) {
19497
+ _defineProperty$H(target, key, source[key]);
19498
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$F(Object(source)).forEach(function (key) {
19441
19499
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
19442
19500
  });
19443
19501
  }
19444
19502
  return target;
19445
19503
  }
19446
- function _defineProperty$G(obj, key, value) {
19447
- key = _toPropertyKey$G(key);
19504
+ function _defineProperty$H(obj, key, value) {
19505
+ key = _toPropertyKey$H(key);
19448
19506
  if (key in obj) {
19449
19507
  Object.defineProperty(obj, key, {
19450
19508
  value: value,
@@ -19520,7 +19578,7 @@
19520
19578
  function _nonIterableRest$g() {
19521
19579
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
19522
19580
  }
19523
- function _toPrimitive$G(input, hint) {
19581
+ function _toPrimitive$H(input, hint) {
19524
19582
  if (typeof input !== "object" || input === null) return input;
19525
19583
  var prim = input[Symbol.toPrimitive];
19526
19584
  if (prim !== undefined) {
@@ -19530,8 +19588,8 @@
19530
19588
  }
19531
19589
  return (hint === "string" ? String : Number)(input);
19532
19590
  }
19533
- function _toPropertyKey$G(arg) {
19534
- var key = _toPrimitive$G(arg, "string");
19591
+ function _toPropertyKey$H(arg) {
19592
+ var key = _toPrimitive$H(arg, "string");
19535
19593
  return typeof key === "symbol" ? key : String(key);
19536
19594
  }
19537
19595
 
@@ -20133,17 +20191,19 @@
20133
20191
  hits = _useHits.hits,
20134
20192
  banner = _useHits.banner,
20135
20193
  sendEvent = _useHits.sendEvent;
20136
- var itemComponent = function itemComponent(_ref3) {
20137
- var hit = _ref3.hit,
20138
- index = _ref3.index,
20139
- itemProps = _objectWithoutProperties$c(_ref3, _excluded2$4);
20140
- return /*#__PURE__*/React__default.createElement("li", _extends$1({
20141
- key: hit.objectID
20142
- }, itemProps), /*#__PURE__*/React__default.createElement(HitComponent, {
20143
- hit: hit,
20144
- sendEvent: sendEvent
20145
- }));
20146
- };
20194
+ var itemComponent = React.useMemo(function () {
20195
+ return function (_ref3) {
20196
+ var hit = _ref3.hit,
20197
+ index = _ref3.index,
20198
+ itemProps = _objectWithoutProperties$c(_ref3, _excluded2$4);
20199
+ return /*#__PURE__*/React__default.createElement("li", _extends$1({
20200
+ key: hit.objectID
20201
+ }, itemProps), /*#__PURE__*/React__default.createElement(HitComponent, {
20202
+ hit: hit,
20203
+ sendEvent: sendEvent
20204
+ }));
20205
+ };
20206
+ }, [HitComponent, sendEvent]);
20147
20207
  var bannerComponent = BannerComponent === false ? function () {
20148
20208
  return null;
20149
20209
  } : BannerComponent;