react-instantsearch 7.2.1 → 7.3.0

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.2.1';
10
+ var version = '7.3.0';
11
11
 
12
12
  // Copyright Joyent, Inc. and other Node contributors.
13
13
  //
@@ -7497,6 +7497,169 @@
7497
7497
  });
7498
7498
  }
7499
7499
 
7500
+ function _typeof$6(obj) {
7501
+ "@babel/helpers - typeof";
7502
+
7503
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7504
+ return typeof obj;
7505
+ } : function (obj) {
7506
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7507
+ }, _typeof$6(obj);
7508
+ }
7509
+ function ownKeys$5(object, enumerableOnly) {
7510
+ var keys = Object.keys(object);
7511
+ if (Object.getOwnPropertySymbols) {
7512
+ var symbols = Object.getOwnPropertySymbols(object);
7513
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
7514
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7515
+ })), keys.push.apply(keys, symbols);
7516
+ }
7517
+ return keys;
7518
+ }
7519
+ function _objectSpread$5(target) {
7520
+ for (var i = 1; i < arguments.length; i++) {
7521
+ var source = null != arguments[i] ? arguments[i] : {};
7522
+ i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7523
+ _defineProperty$5(target, key, source[key]);
7524
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7525
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7526
+ });
7527
+ }
7528
+ return target;
7529
+ }
7530
+ function _defineProperty$5(obj, key, value) {
7531
+ key = _toPropertyKey$5(key);
7532
+ if (key in obj) {
7533
+ Object.defineProperty(obj, key, {
7534
+ value: value,
7535
+ enumerable: true,
7536
+ configurable: true,
7537
+ writable: true
7538
+ });
7539
+ } else {
7540
+ obj[key] = value;
7541
+ }
7542
+ return obj;
7543
+ }
7544
+ function _toPropertyKey$5(arg) {
7545
+ var key = _toPrimitive$5(arg, "string");
7546
+ return _typeof$6(key) === "symbol" ? key : String(key);
7547
+ }
7548
+ function _toPrimitive$5(input, hint) {
7549
+ if (_typeof$6(input) !== "object" || input === null) return input;
7550
+ var prim = input[Symbol.toPrimitive];
7551
+ if (prim !== undefined) {
7552
+ var res = prim.call(input, hint || "default");
7553
+ if (_typeof$6(res) !== "object") return res;
7554
+ throw new TypeError("@@toPrimitive must return a primitive value.");
7555
+ }
7556
+ return (hint === "string" ? String : Number)(input);
7557
+ }
7558
+ // @ts-nocheck (types to be fixed during actual implementation)
7559
+
7560
+ function hydrateSearchClient(client, results) {
7561
+ if (!results) {
7562
+ return;
7563
+ }
7564
+
7565
+ // Disable cache hydration on:
7566
+ // - Algoliasearch API Client < v4 with cache disabled
7567
+ // - Third party clients (detected by the `addAlgoliaAgent` function missing)
7568
+
7569
+ if ((!client.transporter || client._cacheHydrated) && (!client._useCache || typeof client.addAlgoliaAgent !== 'function')) {
7570
+ return;
7571
+ }
7572
+
7573
+ // Algoliasearch API Client >= v4
7574
+ // To hydrate the client we need to populate the cache with the data from
7575
+ // the server (done in `hydrateSearchClientWithMultiIndexRequest` or
7576
+ // `hydrateSearchClientWithSingleIndexRequest`). But since there is no way
7577
+ // for us to compute the key the same way as `algoliasearch-client` we need
7578
+ // to populate it on a custom key and override the `search` method to
7579
+ // search on it first.
7580
+ if (client.transporter && !client._cacheHydrated) {
7581
+ client._cacheHydrated = true;
7582
+ var baseMethod = client.search;
7583
+ client.search = function (requests) {
7584
+ for (var _len = arguments.length, methodArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7585
+ methodArgs[_key - 1] = arguments[_key];
7586
+ }
7587
+ var requestsWithSerializedParams = requests.map(function (request) {
7588
+ return _objectSpread$5(_objectSpread$5({}, request), {}, {
7589
+ params: serializeQueryParameters(request.params)
7590
+ });
7591
+ });
7592
+ return client.transporter.responsesCache.get({
7593
+ method: 'search',
7594
+ args: [requestsWithSerializedParams].concat(methodArgs)
7595
+ }, function () {
7596
+ return baseMethod.apply(void 0, [requests].concat(methodArgs));
7597
+ });
7598
+ };
7599
+
7600
+ // Populate the cache with the data from the server
7601
+ client.transporter.responsesCache.set({
7602
+ method: 'search',
7603
+ args: [Object.keys(results).reduce(function (acc, key) {
7604
+ return acc.concat(results[key].results.map(function (request) {
7605
+ return {
7606
+ indexName: request.index,
7607
+ params: request.params
7608
+ };
7609
+ }));
7610
+ }, [])]
7611
+ }, {
7612
+ results: Object.keys(results).reduce(function (acc, key) {
7613
+ return acc.concat(results[key].results);
7614
+ }, [])
7615
+ });
7616
+ }
7617
+
7618
+ // Algoliasearch API Client < v4
7619
+ // Prior to client v4 we didn't have a proper API to hydrate the client
7620
+ // cache from the outside. The following code populates the cache with
7621
+ // a single-index result. You can find more information about the
7622
+ // computation of the key inside the client (see link below).
7623
+ // https://github.com/algolia/algoliasearch-client-javascript/blob/c27e89ff92b2a854ae6f40dc524bffe0f0cbc169/src/AlgoliaSearchCore.js#L232-L240
7624
+ if (!client.transporter) {
7625
+ var cacheKey = "/1/indexes/*/queries_body_".concat(JSON.stringify({
7626
+ requests: Object.keys(results).reduce(function (acc, key) {
7627
+ return acc.concat(results[key].rawResults.map(function (request) {
7628
+ return {
7629
+ indexName: request.index,
7630
+ params: request.params
7631
+ };
7632
+ }));
7633
+ }, [])
7634
+ }));
7635
+ client.cache = _objectSpread$5(_objectSpread$5({}, client.cache), {}, _defineProperty$5({}, cacheKey, JSON.stringify({
7636
+ results: Object.keys(results).reduce(function (acc, key) {
7637
+ return acc.concat(results[key].rawResults);
7638
+ }, [])
7639
+ })));
7640
+ }
7641
+ }
7642
+
7643
+ // This function is copied from the algoliasearch v4 API Client. If modified,
7644
+ // consider updating it also in `serializeQueryParameters` from `@algolia/transporter`.
7645
+ function serializeQueryParameters(parameters) {
7646
+ var isObjectOrArray = function isObjectOrArray(value) {
7647
+ return Object.prototype.toString.call(value) === '[object Object]' || Object.prototype.toString.call(value) === '[object Array]';
7648
+ };
7649
+ var encode = function encode(format) {
7650
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
7651
+ args[_key2 - 1] = arguments[_key2];
7652
+ }
7653
+ var i = 0;
7654
+ return format.replace(/%s/g, function () {
7655
+ return encodeURIComponent(args[i++]);
7656
+ });
7657
+ };
7658
+ return Object.keys(parameters).map(function (key) {
7659
+ return encode('%s=%s', key, isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key]);
7660
+ }).join('&');
7661
+ }
7662
+
7500
7663
  function isPrimitive(obj) {
7501
7664
  return obj !== Object(obj);
7502
7665
  }
@@ -7551,17 +7714,17 @@
7551
7714
  });
7552
7715
  }
7553
7716
 
7554
- function _typeof$6(obj) {
7717
+ function _typeof$7(obj) {
7555
7718
  "@babel/helpers - typeof";
7556
7719
 
7557
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7720
+ return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7558
7721
  return typeof obj;
7559
7722
  } : function (obj) {
7560
7723
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7561
- }, _typeof$6(obj);
7724
+ }, _typeof$7(obj);
7562
7725
  }
7563
7726
  var _excluded = ["facets", "disjunctiveFacets", "facetsRefinements", "facetsExcludes", "disjunctiveFacetsRefinements", "numericRefinements", "tagRefinements", "hierarchicalFacets", "hierarchicalFacetsRefinements", "ruleContexts"];
7564
- function ownKeys$5(object, enumerableOnly) {
7727
+ function ownKeys$6(object, enumerableOnly) {
7565
7728
  var keys = Object.keys(object);
7566
7729
  if (Object.getOwnPropertySymbols) {
7567
7730
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7571,19 +7734,19 @@
7571
7734
  }
7572
7735
  return keys;
7573
7736
  }
7574
- function _objectSpread$5(target) {
7737
+ function _objectSpread$6(target) {
7575
7738
  for (var i = 1; i < arguments.length; i++) {
7576
7739
  var source = null != arguments[i] ? arguments[i] : {};
7577
- i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7578
- _defineProperty$5(target, key, source[key]);
7579
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7740
+ i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
7741
+ _defineProperty$6(target, key, source[key]);
7742
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
7580
7743
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7581
7744
  });
7582
7745
  }
7583
7746
  return target;
7584
7747
  }
7585
- function _defineProperty$5(obj, key, value) {
7586
- key = _toPropertyKey$5(key);
7748
+ function _defineProperty$6(obj, key, value) {
7749
+ key = _toPropertyKey$6(key);
7587
7750
  if (key in obj) {
7588
7751
  Object.defineProperty(obj, key, {
7589
7752
  value: value,
@@ -7596,16 +7759,16 @@
7596
7759
  }
7597
7760
  return obj;
7598
7761
  }
7599
- function _toPropertyKey$5(arg) {
7600
- var key = _toPrimitive$5(arg, "string");
7601
- return _typeof$6(key) === "symbol" ? key : String(key);
7762
+ function _toPropertyKey$6(arg) {
7763
+ var key = _toPrimitive$6(arg, "string");
7764
+ return _typeof$7(key) === "symbol" ? key : String(key);
7602
7765
  }
7603
- function _toPrimitive$5(input, hint) {
7604
- if (_typeof$6(input) !== "object" || input === null) return input;
7766
+ function _toPrimitive$6(input, hint) {
7767
+ if (_typeof$7(input) !== "object" || input === null) return input;
7605
7768
  var prim = input[Symbol.toPrimitive];
7606
7769
  if (prim !== undefined) {
7607
7770
  var res = prim.call(input, hint || "default");
7608
- if (_typeof$6(res) !== "object") return res;
7771
+ if (_typeof$7(res) !== "object") return res;
7609
7772
  throw new TypeError("@@toPrimitive must return a primitive value.");
7610
7773
  }
7611
7774
  return (hint === "string" ? String : Number)(input);
@@ -7687,27 +7850,27 @@
7687
7850
  };
7688
7851
  var mergeFacetRefinements = function mergeFacetRefinements(left, right) {
7689
7852
  return left.setQueryParameters({
7690
- facetsRefinements: _objectSpread$5(_objectSpread$5({}, left.facetsRefinements), right.facetsRefinements)
7853
+ facetsRefinements: _objectSpread$6(_objectSpread$6({}, left.facetsRefinements), right.facetsRefinements)
7691
7854
  });
7692
7855
  };
7693
7856
  var mergeFacetsExcludes = function mergeFacetsExcludes(left, right) {
7694
7857
  return left.setQueryParameters({
7695
- facetsExcludes: _objectSpread$5(_objectSpread$5({}, left.facetsExcludes), right.facetsExcludes)
7858
+ facetsExcludes: _objectSpread$6(_objectSpread$6({}, left.facetsExcludes), right.facetsExcludes)
7696
7859
  });
7697
7860
  };
7698
7861
  var mergeDisjunctiveFacetsRefinements = function mergeDisjunctiveFacetsRefinements(left, right) {
7699
7862
  return left.setQueryParameters({
7700
- disjunctiveFacetsRefinements: _objectSpread$5(_objectSpread$5({}, left.disjunctiveFacetsRefinements), right.disjunctiveFacetsRefinements)
7863
+ disjunctiveFacetsRefinements: _objectSpread$6(_objectSpread$6({}, left.disjunctiveFacetsRefinements), right.disjunctiveFacetsRefinements)
7701
7864
  });
7702
7865
  };
7703
7866
  var mergeNumericRefinements = function mergeNumericRefinements(left, right) {
7704
7867
  return left.setQueryParameters({
7705
- numericRefinements: _objectSpread$5(_objectSpread$5({}, left.numericRefinements), right.numericRefinements)
7868
+ numericRefinements: _objectSpread$6(_objectSpread$6({}, left.numericRefinements), right.numericRefinements)
7706
7869
  });
7707
7870
  };
7708
7871
  var mergeHierarchicalFacetsRefinements = function mergeHierarchicalFacetsRefinements(left, right) {
7709
7872
  return left.setQueryParameters({
7710
- hierarchicalFacetsRefinements: _objectSpread$5(_objectSpread$5({}, left.hierarchicalFacetsRefinements), right.hierarchicalFacetsRefinements)
7873
+ hierarchicalFacetsRefinements: _objectSpread$6(_objectSpread$6({}, left.hierarchicalFacetsRefinements), right.hierarchicalFacetsRefinements)
7711
7874
  });
7712
7875
  };
7713
7876
  var mergeRuleContexts = function mergeRuleContexts(left, right) {
@@ -7833,16 +7996,16 @@
7833
7996
  return states;
7834
7997
  }
7835
7998
 
7836
- function _typeof$7(obj) {
7999
+ function _typeof$8(obj) {
7837
8000
  "@babel/helpers - typeof";
7838
8001
 
7839
- return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8002
+ return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7840
8003
  return typeof obj;
7841
8004
  } : function (obj) {
7842
8005
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7843
- }, _typeof$7(obj);
8006
+ }, _typeof$8(obj);
7844
8007
  }
7845
- function ownKeys$6(object, enumerableOnly) {
8008
+ function ownKeys$7(object, enumerableOnly) {
7846
8009
  var keys = Object.keys(object);
7847
8010
  if (Object.getOwnPropertySymbols) {
7848
8011
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7852,19 +8015,19 @@
7852
8015
  }
7853
8016
  return keys;
7854
8017
  }
7855
- function _objectSpread$6(target) {
8018
+ function _objectSpread$7(target) {
7856
8019
  for (var i = 1; i < arguments.length; i++) {
7857
8020
  var source = null != arguments[i] ? arguments[i] : {};
7858
- i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
7859
- _defineProperty$6(target, key, source[key]);
7860
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
8021
+ i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
8022
+ _defineProperty$7(target, key, source[key]);
8023
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
7861
8024
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7862
8025
  });
7863
8026
  }
7864
8027
  return target;
7865
8028
  }
7866
- function _defineProperty$6(obj, key, value) {
7867
- key = _toPropertyKey$6(key);
8029
+ function _defineProperty$7(obj, key, value) {
8030
+ key = _toPropertyKey$7(key);
7868
8031
  if (key in obj) {
7869
8032
  Object.defineProperty(obj, key, {
7870
8033
  value: value,
@@ -7877,16 +8040,16 @@
7877
8040
  }
7878
8041
  return obj;
7879
8042
  }
7880
- function _toPropertyKey$6(arg) {
7881
- var key = _toPrimitive$6(arg, "string");
7882
- return _typeof$7(key) === "symbol" ? key : String(key);
8043
+ function _toPropertyKey$7(arg) {
8044
+ var key = _toPrimitive$7(arg, "string");
8045
+ return _typeof$8(key) === "symbol" ? key : String(key);
7883
8046
  }
7884
- function _toPrimitive$6(input, hint) {
7885
- if (_typeof$7(input) !== "object" || input === null) return input;
8047
+ function _toPrimitive$7(input, hint) {
8048
+ if (_typeof$8(input) !== "object" || input === null) return input;
7886
8049
  var prim = input[Symbol.toPrimitive];
7887
8050
  if (prim !== undefined) {
7888
8051
  var res = prim.call(input, hint || "default");
7889
- if (_typeof$7(res) !== "object") return res;
8052
+ if (_typeof$8(res) !== "object") return res;
7890
8053
  throw new TypeError("@@toPrimitive must return a primitive value.");
7891
8054
  }
7892
8055
  return (hint === "string" ? String : Number)(input);
@@ -7896,13 +8059,13 @@
7896
8059
  return part.isHighlighted;
7897
8060
  })) {
7898
8061
  return parts.map(function (part) {
7899
- return _objectSpread$6(_objectSpread$6({}, part), {}, {
8062
+ return _objectSpread$7(_objectSpread$7({}, part), {}, {
7900
8063
  isHighlighted: false
7901
8064
  });
7902
8065
  });
7903
8066
  }
7904
8067
  return parts.map(function (part, i) {
7905
- return _objectSpread$6(_objectSpread$6({}, part), {}, {
8068
+ return _objectSpread$7(_objectSpread$7({}, part), {}, {
7906
8069
  isHighlighted: !getHighlightFromSiblings(parts, i)
7907
8070
  });
7908
8071
  });
@@ -7935,16 +8098,16 @@
7935
8098
  return Array.isArray(value) ? value : [value];
7936
8099
  }
7937
8100
 
7938
- function _typeof$8(obj) {
8101
+ function _typeof$9(obj) {
7939
8102
  "@babel/helpers - typeof";
7940
8103
 
7941
- return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8104
+ return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7942
8105
  return typeof obj;
7943
8106
  } : function (obj) {
7944
8107
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7945
- }, _typeof$8(obj);
8108
+ }, _typeof$9(obj);
7946
8109
  }
7947
- function ownKeys$7(object, enumerableOnly) {
8110
+ function ownKeys$8(object, enumerableOnly) {
7948
8111
  var keys = Object.keys(object);
7949
8112
  if (Object.getOwnPropertySymbols) {
7950
8113
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7954,19 +8117,19 @@
7954
8117
  }
7955
8118
  return keys;
7956
8119
  }
7957
- function _objectSpread$7(target) {
8120
+ function _objectSpread$8(target) {
7958
8121
  for (var i = 1; i < arguments.length; i++) {
7959
8122
  var source = null != arguments[i] ? arguments[i] : {};
7960
- i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
7961
- _defineProperty$7(target, key, source[key]);
7962
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
8123
+ i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
8124
+ _defineProperty$8(target, key, source[key]);
8125
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
7963
8126
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7964
8127
  });
7965
8128
  }
7966
8129
  return target;
7967
8130
  }
7968
- function _defineProperty$7(obj, key, value) {
7969
- key = _toPropertyKey$7(key);
8131
+ function _defineProperty$8(obj, key, value) {
8132
+ key = _toPropertyKey$8(key);
7970
8133
  if (key in obj) {
7971
8134
  Object.defineProperty(obj, key, {
7972
8135
  value: value,
@@ -7979,16 +8142,16 @@
7979
8142
  }
7980
8143
  return obj;
7981
8144
  }
7982
- function _toPropertyKey$7(arg) {
7983
- var key = _toPrimitive$7(arg, "string");
7984
- return _typeof$8(key) === "symbol" ? key : String(key);
8145
+ function _toPropertyKey$8(arg) {
8146
+ var key = _toPrimitive$8(arg, "string");
8147
+ return _typeof$9(key) === "symbol" ? key : String(key);
7985
8148
  }
7986
- function _toPrimitive$7(input, hint) {
7987
- if (_typeof$8(input) !== "object" || input === null) return input;
8149
+ function _toPrimitive$8(input, hint) {
8150
+ if (_typeof$9(input) !== "object" || input === null) return input;
7988
8151
  var prim = input[Symbol.toPrimitive];
7989
8152
  if (prim !== undefined) {
7990
8153
  var res = prim.call(input, hint || "default");
7991
- if (_typeof$8(res) !== "object") return res;
8154
+ if (_typeof$9(res) !== "object") return res;
7992
8155
  throw new TypeError("@@toPrimitive must return a primitive value.");
7993
8156
  }
7994
8157
  return (hint === "string" ? String : Number)(input);
@@ -8007,7 +8170,7 @@
8007
8170
  // the state. The function `setQueryParameters` omits the values that
8008
8171
  // are `undefined` on the next state.
8009
8172
  return state.setQueryParameters(Object.keys(widgetParams.searchParameters).reduce(function (acc, key) {
8010
- return _objectSpread$7(_objectSpread$7({}, acc), {}, _defineProperty$7({}, key, undefined));
8173
+ return _objectSpread$8(_objectSpread$8({}, acc), {}, _defineProperty$8({}, key, undefined));
8011
8174
  }, {}));
8012
8175
  }
8013
8176
  var connectConfigure = function connectConfigure() {
@@ -8035,13 +8198,13 @@
8035
8198
  $$type: 'ais.configure',
8036
8199
  init: function init(initOptions) {
8037
8200
  var instantSearchInstance = initOptions.instantSearchInstance;
8038
- renderFn(_objectSpread$7(_objectSpread$7({}, this.getWidgetRenderState(initOptions)), {}, {
8201
+ renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(initOptions)), {}, {
8039
8202
  instantSearchInstance: instantSearchInstance
8040
8203
  }), true);
8041
8204
  },
8042
8205
  render: function render(renderOptions) {
8043
8206
  var instantSearchInstance = renderOptions.instantSearchInstance;
8044
- renderFn(_objectSpread$7(_objectSpread$7({}, this.getWidgetRenderState(renderOptions)), {}, {
8207
+ renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(renderOptions)), {}, {
8045
8208
  instantSearchInstance: instantSearchInstance
8046
8209
  }), false);
8047
8210
  },
@@ -8053,9 +8216,9 @@
8053
8216
  getRenderState: function getRenderState(renderState, renderOptions) {
8054
8217
  var _renderState$configur;
8055
8218
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
8056
- return _objectSpread$7(_objectSpread$7({}, renderState), {}, {
8057
- configure: _objectSpread$7(_objectSpread$7({}, widgetRenderState), {}, {
8058
- widgetParams: _objectSpread$7(_objectSpread$7({}, widgetRenderState.widgetParams), {}, {
8219
+ return _objectSpread$8(_objectSpread$8({}, renderState), {}, {
8220
+ configure: _objectSpread$8(_objectSpread$8({}, widgetRenderState), {}, {
8221
+ widgetParams: _objectSpread$8(_objectSpread$8({}, widgetRenderState.widgetParams), {}, {
8059
8222
  searchParameters: mergeSearchParameters(new algoliasearchHelper_1.SearchParameters((_renderState$configur = renderState.configure) === null || _renderState$configur === void 0 ? void 0 : _renderState$configur.widgetParams.searchParameters), new algoliasearchHelper_1.SearchParameters(widgetRenderState.widgetParams.searchParameters)).getQueryParams()
8060
8223
  })
8061
8224
  })
@@ -8073,25 +8236,25 @@
8073
8236
  },
8074
8237
  getWidgetSearchParameters: function getWidgetSearchParameters(state, _ref3) {
8075
8238
  var uiState = _ref3.uiState;
8076
- return mergeSearchParameters(state, new algoliasearchHelper_1.SearchParameters(_objectSpread$7(_objectSpread$7({}, uiState.configure), widgetParams.searchParameters)));
8239
+ return mergeSearchParameters(state, new algoliasearchHelper_1.SearchParameters(_objectSpread$8(_objectSpread$8({}, uiState.configure), widgetParams.searchParameters)));
8077
8240
  },
8078
8241
  getWidgetUiState: function getWidgetUiState(uiState) {
8079
- return _objectSpread$7(_objectSpread$7({}, uiState), {}, {
8080
- configure: _objectSpread$7(_objectSpread$7({}, uiState.configure), widgetParams.searchParameters)
8242
+ return _objectSpread$8(_objectSpread$8({}, uiState), {}, {
8243
+ configure: _objectSpread$8(_objectSpread$8({}, uiState.configure), widgetParams.searchParameters)
8081
8244
  });
8082
8245
  }
8083
8246
  };
8084
8247
  };
8085
8248
  };
8086
8249
 
8087
- function _typeof$9(obj) {
8250
+ function _typeof$a(obj) {
8088
8251
  "@babel/helpers - typeof";
8089
8252
 
8090
- return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8253
+ return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8091
8254
  return typeof obj;
8092
8255
  } : function (obj) {
8093
8256
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8094
- }, _typeof$9(obj);
8257
+ }, _typeof$a(obj);
8095
8258
  }
8096
8259
  /* eslint-disable complexity */
8097
8260
 
@@ -8125,7 +8288,7 @@
8125
8288
  }
8126
8289
  return len === -1;
8127
8290
  }
8128
- if (!ctor || _typeof$9(foo) === 'object') {
8291
+ if (!ctor || _typeof$a(foo) === 'object') {
8129
8292
  len = 0;
8130
8293
  // eslint-disable-next-line guard-for-in, no-restricted-syntax
8131
8294
  for (ctor in foo) {
@@ -8160,16 +8323,16 @@
8160
8323
  });
8161
8324
  }
8162
8325
 
8163
- function _typeof$a(obj) {
8326
+ function _typeof$b(obj) {
8164
8327
  "@babel/helpers - typeof";
8165
8328
 
8166
- return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8329
+ return _typeof$b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8167
8330
  return typeof obj;
8168
8331
  } : function (obj) {
8169
8332
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8170
- }, _typeof$a(obj);
8333
+ }, _typeof$b(obj);
8171
8334
  }
8172
- function ownKeys$8(object, enumerableOnly) {
8335
+ function ownKeys$9(object, enumerableOnly) {
8173
8336
  var keys = Object.keys(object);
8174
8337
  if (Object.getOwnPropertySymbols) {
8175
8338
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8179,19 +8342,19 @@
8179
8342
  }
8180
8343
  return keys;
8181
8344
  }
8182
- function _objectSpread$8(target) {
8345
+ function _objectSpread$9(target) {
8183
8346
  for (var i = 1; i < arguments.length; i++) {
8184
8347
  var source = null != arguments[i] ? arguments[i] : {};
8185
- i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
8186
- _defineProperty$8(target, key, source[key]);
8187
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
8348
+ i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8349
+ _defineProperty$9(target, key, source[key]);
8350
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
8188
8351
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8189
8352
  });
8190
8353
  }
8191
8354
  return target;
8192
8355
  }
8193
- function _defineProperty$8(obj, key, value) {
8194
- key = _toPropertyKey$8(key);
8356
+ function _defineProperty$9(obj, key, value) {
8357
+ key = _toPropertyKey$9(key);
8195
8358
  if (key in obj) {
8196
8359
  Object.defineProperty(obj, key, {
8197
8360
  value: value,
@@ -8204,16 +8367,16 @@
8204
8367
  }
8205
8368
  return obj;
8206
8369
  }
8207
- function _toPropertyKey$8(arg) {
8208
- var key = _toPrimitive$8(arg, "string");
8209
- return _typeof$a(key) === "symbol" ? key : String(key);
8370
+ function _toPropertyKey$9(arg) {
8371
+ var key = _toPrimitive$9(arg, "string");
8372
+ return _typeof$b(key) === "symbol" ? key : String(key);
8210
8373
  }
8211
- function _toPrimitive$8(input, hint) {
8212
- if (_typeof$a(input) !== "object" || input === null) return input;
8374
+ function _toPrimitive$9(input, hint) {
8375
+ if (_typeof$b(input) !== "object" || input === null) return input;
8213
8376
  var prim = input[Symbol.toPrimitive];
8214
8377
  if (prim !== undefined) {
8215
8378
  var res = prim.call(input, hint || "default");
8216
- if (_typeof$a(res) !== "object") return res;
8379
+ if (_typeof$b(res) !== "object") return res;
8217
8380
  throw new TypeError("@@toPrimitive must return a primitive value.");
8218
8381
  }
8219
8382
  return (hint === "string" ? String : Number)(input);
@@ -8227,7 +8390,7 @@
8227
8390
  createSearchResults(helper.state);
8228
8391
  var scopedResults = indexWidget.getScopedResults().map(function (scopedResult) {
8229
8392
  var fallbackResults = scopedResult.indexId === indexWidget.getIndexId() ? results : createSearchResults(scopedResult.helper.state);
8230
- return _objectSpread$8(_objectSpread$8({}, scopedResult), {}, {
8393
+ return _objectSpread$9(_objectSpread$9({}, scopedResult), {}, {
8231
8394
  // We keep `results` from being `null`.
8232
8395
  results: scopedResult.results || fallbackResults
8233
8396
  });
@@ -8439,14 +8602,14 @@
8439
8602
  }
8440
8603
  }
8441
8604
 
8442
- function _typeof$b(obj) {
8605
+ function _typeof$c(obj) {
8443
8606
  "@babel/helpers - typeof";
8444
8607
 
8445
- return _typeof$b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8608
+ return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8446
8609
  return typeof obj;
8447
8610
  } : function (obj) {
8448
8611
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8449
- }, _typeof$b(obj);
8612
+ }, _typeof$c(obj);
8450
8613
  }
8451
8614
  var _excluded$1 = ["instantSearchInstance", "widgetParams"],
8452
8615
  _excluded2 = ["widgetParams"];
@@ -8499,7 +8662,7 @@
8499
8662
  function _arrayWithHoles$4(arr) {
8500
8663
  if (Array.isArray(arr)) return arr;
8501
8664
  }
8502
- function ownKeys$9(object, enumerableOnly) {
8665
+ function ownKeys$a(object, enumerableOnly) {
8503
8666
  var keys = Object.keys(object);
8504
8667
  if (Object.getOwnPropertySymbols) {
8505
8668
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8509,19 +8672,19 @@
8509
8672
  }
8510
8673
  return keys;
8511
8674
  }
8512
- function _objectSpread$9(target) {
8675
+ function _objectSpread$a(target) {
8513
8676
  for (var i = 1; i < arguments.length; i++) {
8514
8677
  var source = null != arguments[i] ? arguments[i] : {};
8515
- i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8516
- _defineProperty$9(target, key, source[key]);
8517
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
8678
+ i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) {
8679
+ _defineProperty$a(target, key, source[key]);
8680
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) {
8518
8681
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8519
8682
  });
8520
8683
  }
8521
8684
  return target;
8522
8685
  }
8523
- function _defineProperty$9(obj, key, value) {
8524
- key = _toPropertyKey$9(key);
8686
+ function _defineProperty$a(obj, key, value) {
8687
+ key = _toPropertyKey$a(key);
8525
8688
  if (key in obj) {
8526
8689
  Object.defineProperty(obj, key, {
8527
8690
  value: value,
@@ -8534,16 +8697,16 @@
8534
8697
  }
8535
8698
  return obj;
8536
8699
  }
8537
- function _toPropertyKey$9(arg) {
8538
- var key = _toPrimitive$9(arg, "string");
8539
- return _typeof$b(key) === "symbol" ? key : String(key);
8700
+ function _toPropertyKey$a(arg) {
8701
+ var key = _toPrimitive$a(arg, "string");
8702
+ return _typeof$c(key) === "symbol" ? key : String(key);
8540
8703
  }
8541
- function _toPrimitive$9(input, hint) {
8542
- if (_typeof$b(input) !== "object" || input === null) return input;
8704
+ function _toPrimitive$a(input, hint) {
8705
+ if (_typeof$c(input) !== "object" || input === null) return input;
8543
8706
  var prim = input[Symbol.toPrimitive];
8544
8707
  if (prim !== undefined) {
8545
8708
  var res = prim.call(input, hint || "default");
8546
- if (_typeof$b(res) !== "object") return res;
8709
+ if (_typeof$c(res) !== "object") return res;
8547
8710
  throw new TypeError("@@toPrimitive must return a primitive value.");
8548
8711
  }
8549
8712
  return (hint === "string" ? String : Number)(input);
@@ -8630,7 +8793,7 @@
8630
8793
  // InstantSearch.js re-inits the component.
8631
8794
  shouldSetStateRef.current = false;
8632
8795
  });
8633
- return _objectSpread$9(_objectSpread$9({}, createWidget(stableProps)), stableAdditionalWidgetProperties);
8796
+ return _objectSpread$a(_objectSpread$a({}, createWidget(stableProps)), stableAdditionalWidgetProperties);
8634
8797
  }, [connector, stableProps, stableAdditionalWidgetProperties]);
8635
8798
  var _useState = React.useState(function () {
8636
8799
  if (widget.getWidgetRenderState) {
@@ -8695,7 +8858,7 @@
8695
8858
  return null;
8696
8859
  }
8697
8860
 
8698
- function ownKeys$a(object, enumerableOnly) {
8861
+ function ownKeys$b(object, enumerableOnly) {
8699
8862
  var keys = Object.keys(object);
8700
8863
  if (Object.getOwnPropertySymbols) {
8701
8864
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8705,19 +8868,19 @@
8705
8868
  }
8706
8869
  return keys;
8707
8870
  }
8708
- function _objectSpread$a(target) {
8871
+ function _objectSpread$b(target) {
8709
8872
  for (var i = 1; i < arguments.length; i++) {
8710
8873
  var source = null != arguments[i] ? arguments[i] : {};
8711
- i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) {
8712
- _defineProperty$a(target, key, source[key]);
8713
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) {
8874
+ i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
8875
+ _defineProperty$b(target, key, source[key]);
8876
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
8714
8877
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8715
8878
  });
8716
8879
  }
8717
8880
  return target;
8718
8881
  }
8719
- function _defineProperty$a(obj, key, value) {
8720
- key = _toPropertyKey$a(key);
8882
+ function _defineProperty$b(obj, key, value) {
8883
+ key = _toPropertyKey$b(key);
8721
8884
  if (key in obj) {
8722
8885
  Object.defineProperty(obj, key, {
8723
8886
  value: value,
@@ -8730,28 +8893,28 @@
8730
8893
  }
8731
8894
  return obj;
8732
8895
  }
8733
- function _toPropertyKey$a(arg) {
8734
- var key = _toPrimitive$a(arg, "string");
8735
- return _typeof$c(key) === "symbol" ? key : String(key);
8896
+ function _toPropertyKey$b(arg) {
8897
+ var key = _toPrimitive$b(arg, "string");
8898
+ return _typeof$d(key) === "symbol" ? key : String(key);
8736
8899
  }
8737
- function _toPrimitive$a(input, hint) {
8738
- if (_typeof$c(input) !== "object" || input === null) return input;
8900
+ function _toPrimitive$b(input, hint) {
8901
+ if (_typeof$d(input) !== "object" || input === null) return input;
8739
8902
  var prim = input[Symbol.toPrimitive];
8740
8903
  if (prim !== undefined) {
8741
8904
  var res = prim.call(input, hint || "default");
8742
- if (_typeof$c(res) !== "object") return res;
8905
+ if (_typeof$d(res) !== "object") return res;
8743
8906
  throw new TypeError("@@toPrimitive must return a primitive value.");
8744
8907
  }
8745
8908
  return (hint === "string" ? String : Number)(input);
8746
8909
  }
8747
- function _typeof$c(obj) {
8910
+ function _typeof$d(obj) {
8748
8911
  "@babel/helpers - typeof";
8749
8912
 
8750
- return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8913
+ return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8751
8914
  return typeof obj;
8752
8915
  } : function (obj) {
8753
8916
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8754
- }, _typeof$c(obj);
8917
+ }, _typeof$d(obj);
8755
8918
  }
8756
8919
  var withUsage$1 = createDocumentationMessageGenerator({
8757
8920
  name: 'dynamic-widgets',
@@ -8772,7 +8935,7 @@
8772
8935
  } : _widgetParams$transfo,
8773
8936
  fallbackWidget = widgetParams.fallbackWidget;
8774
8937
  if (!(widgets && Array.isArray(widgets) && widgets.every(function (widget) {
8775
- return _typeof$c(widget) === 'object';
8938
+ return _typeof$d(widget) === 'object';
8776
8939
  }))) {
8777
8940
  throw new Error(withUsage$1('The `widgets` option expects an array of widgets.'));
8778
8941
  }
@@ -8790,7 +8953,7 @@
8790
8953
  isMounted: false
8791
8954
  });
8792
8955
  });
8793
- renderFn(_objectSpread$a(_objectSpread$a({}, this.getWidgetRenderState(initOptions)), {}, {
8956
+ renderFn(_objectSpread$b(_objectSpread$b({}, this.getWidgetRenderState(initOptions)), {}, {
8794
8957
  instantSearchInstance: initOptions.instantSearchInstance
8795
8958
  }), true);
8796
8959
  },
@@ -8837,7 +9000,7 @@
8837
9000
  setTimeout(function () {
8838
9001
  return parent.removeWidgets(widgetsToUnmount);
8839
9002
  }, 0);
8840
- renderFn(_objectSpread$a(_objectSpread$a({}, renderState), {}, {
9003
+ renderFn(_objectSpread$b(_objectSpread$b({}, renderState), {}, {
8841
9004
  instantSearchInstance: renderOptions.instantSearchInstance
8842
9005
  }), false);
8843
9006
  },
@@ -8863,7 +9026,7 @@
8863
9026
  }));
8864
9027
  },
8865
9028
  getRenderState: function getRenderState(renderState, renderOptions) {
8866
- return _objectSpread$a(_objectSpread$a({}, renderState), {}, {
9029
+ return _objectSpread$b(_objectSpread$b({}, renderState), {}, {
8867
9030
  dynamicWidgets: this.getWidgetRenderState(renderOptions)
8868
9031
  });
8869
9032
  },
@@ -8892,16 +9055,16 @@
8892
9055
  };
8893
9056
  };
8894
9057
 
8895
- function _typeof$d(obj) {
9058
+ function _typeof$e(obj) {
8896
9059
  "@babel/helpers - typeof";
8897
9060
 
8898
- return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9061
+ return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8899
9062
  return typeof obj;
8900
9063
  } : function (obj) {
8901
9064
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8902
- }, _typeof$d(obj);
9065
+ }, _typeof$e(obj);
8903
9066
  }
8904
- function ownKeys$b(object, enumerableOnly) {
9067
+ function ownKeys$c(object, enumerableOnly) {
8905
9068
  var keys = Object.keys(object);
8906
9069
  if (Object.getOwnPropertySymbols) {
8907
9070
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8911,19 +9074,19 @@
8911
9074
  }
8912
9075
  return keys;
8913
9076
  }
8914
- function _objectSpread$b(target) {
9077
+ function _objectSpread$c(target) {
8915
9078
  for (var i = 1; i < arguments.length; i++) {
8916
- var source = null != arguments[i] ? arguments[i] : {};
8917
- i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
8918
- _defineProperty$b(target, key, source[key]);
8919
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
9079
+ var source = null != arguments[i] ? arguments[i] : {};
9080
+ i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
9081
+ _defineProperty$c(target, key, source[key]);
9082
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
8920
9083
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8921
9084
  });
8922
9085
  }
8923
9086
  return target;
8924
9087
  }
8925
- function _defineProperty$b(obj, key, value) {
8926
- key = _toPropertyKey$b(key);
9088
+ function _defineProperty$c(obj, key, value) {
9089
+ key = _toPropertyKey$c(key);
8927
9090
  if (key in obj) {
8928
9091
  Object.defineProperty(obj, key, {
8929
9092
  value: value,
@@ -8936,22 +9099,22 @@
8936
9099
  }
8937
9100
  return obj;
8938
9101
  }
8939
- function _toPropertyKey$b(arg) {
8940
- var key = _toPrimitive$b(arg, "string");
8941
- return _typeof$d(key) === "symbol" ? key : String(key);
9102
+ function _toPropertyKey$c(arg) {
9103
+ var key = _toPrimitive$c(arg, "string");
9104
+ return _typeof$e(key) === "symbol" ? key : String(key);
8942
9105
  }
8943
- function _toPrimitive$b(input, hint) {
8944
- if (_typeof$d(input) !== "object" || input === null) return input;
9106
+ function _toPrimitive$c(input, hint) {
9107
+ if (_typeof$e(input) !== "object" || input === null) return input;
8945
9108
  var prim = input[Symbol.toPrimitive];
8946
9109
  if (prim !== undefined) {
8947
9110
  var res = prim.call(input, hint || "default");
8948
- if (_typeof$d(res) !== "object") return res;
9111
+ if (_typeof$e(res) !== "object") return res;
8949
9112
  throw new TypeError("@@toPrimitive must return a primitive value.");
8950
9113
  }
8951
9114
  return (hint === "string" ? String : Number)(input);
8952
9115
  }
8953
9116
  function useDynamicWidgets(props, additionalWidgetProperties) {
8954
- return useConnector(connectDynamicWidgets, _objectSpread$b(_objectSpread$b({}, props), {}, {
9117
+ return useConnector(connectDynamicWidgets, _objectSpread$c(_objectSpread$c({}, props), {}, {
8955
9118
  // We don't rely on InstantSearch.js for rendering widgets because React
8956
9119
  // directly manipulates the children.
8957
9120
  widgets: []
@@ -8959,14 +9122,14 @@
8959
9122
  }
8960
9123
 
8961
9124
  var _excluded$2 = ["children", "fallbackComponent"];
8962
- function _typeof$e(obj) {
9125
+ function _typeof$f(obj) {
8963
9126
  "@babel/helpers - typeof";
8964
9127
 
8965
- return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9128
+ return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8966
9129
  return typeof obj;
8967
9130
  } : function (obj) {
8968
9131
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8969
- }, _typeof$e(obj);
9132
+ }, _typeof$f(obj);
8970
9133
  }
8971
9134
  function _objectWithoutProperties$2(source, excluded) {
8972
9135
  if (source == null) return {};
@@ -9023,7 +9186,7 @@
9023
9186
  }));
9024
9187
  }
9025
9188
  function isReactElement(element) {
9026
- return _typeof$e(element) === 'object' && element.props;
9189
+ return _typeof$f(element) === 'object' && element.props;
9027
9190
  }
9028
9191
  function getWidgetAttribute$1(element) {
9029
9192
  if (!isReactElement(element)) {
@@ -9042,17 +9205,17 @@
9042
9205
  return undefined;
9043
9206
  }
9044
9207
 
9045
- function _typeof$f(obj) {
9208
+ function _typeof$g(obj) {
9046
9209
  "@babel/helpers - typeof";
9047
9210
 
9048
- return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9211
+ return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9049
9212
  return typeof obj;
9050
9213
  } : function (obj) {
9051
9214
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9052
- }, _typeof$f(obj);
9215
+ }, _typeof$g(obj);
9053
9216
  }
9054
9217
  var _excluded$3 = ["initialSearchParameters"];
9055
- function ownKeys$c(object, enumerableOnly) {
9218
+ function ownKeys$d(object, enumerableOnly) {
9056
9219
  var keys = Object.keys(object);
9057
9220
  if (Object.getOwnPropertySymbols) {
9058
9221
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9062,19 +9225,19 @@
9062
9225
  }
9063
9226
  return keys;
9064
9227
  }
9065
- function _objectSpread$c(target) {
9228
+ function _objectSpread$d(target) {
9066
9229
  for (var i = 1; i < arguments.length; i++) {
9067
9230
  var source = null != arguments[i] ? arguments[i] : {};
9068
- i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
9069
- _defineProperty$c(target, key, source[key]);
9070
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
9231
+ i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
9232
+ _defineProperty$d(target, key, source[key]);
9233
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
9071
9234
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9072
9235
  });
9073
9236
  }
9074
9237
  return target;
9075
9238
  }
9076
- function _defineProperty$c(obj, key, value) {
9077
- key = _toPropertyKey$c(key);
9239
+ function _defineProperty$d(obj, key, value) {
9240
+ key = _toPropertyKey$d(key);
9078
9241
  if (key in obj) {
9079
9242
  Object.defineProperty(obj, key, {
9080
9243
  value: value,
@@ -9087,16 +9250,16 @@
9087
9250
  }
9088
9251
  return obj;
9089
9252
  }
9090
- function _toPropertyKey$c(arg) {
9091
- var key = _toPrimitive$c(arg, "string");
9092
- return _typeof$f(key) === "symbol" ? key : String(key);
9253
+ function _toPropertyKey$d(arg) {
9254
+ var key = _toPrimitive$d(arg, "string");
9255
+ return _typeof$g(key) === "symbol" ? key : String(key);
9093
9256
  }
9094
- function _toPrimitive$c(input, hint) {
9095
- if (_typeof$f(input) !== "object" || input === null) return input;
9257
+ function _toPrimitive$d(input, hint) {
9258
+ if (_typeof$g(input) !== "object" || input === null) return input;
9096
9259
  var prim = input[Symbol.toPrimitive];
9097
9260
  if (prim !== undefined) {
9098
9261
  var res = prim.call(input, hint || "default");
9099
- if (_typeof$f(res) !== "object") return res;
9262
+ if (_typeof$g(res) !== "object") return res;
9100
9263
  throw new TypeError("@@toPrimitive must return a primitive value.");
9101
9264
  }
9102
9265
  return (hint === "string" ? String : Number)(input);
@@ -9279,9 +9442,9 @@
9279
9442
  },
9280
9443
  createURL: function createURL(nextState) {
9281
9444
  if (typeof nextState === 'function') {
9282
- return localInstantSearchInstance._createURL(_defineProperty$c({}, indexId, nextState(localUiState)));
9445
+ return localInstantSearchInstance._createURL(_defineProperty$d({}, indexId, nextState(localUiState)));
9283
9446
  }
9284
- return localInstantSearchInstance._createURL(_defineProperty$c({}, indexId, getLocalWidgetsUiState(localWidgets, {
9447
+ return localInstantSearchInstance._createURL(_defineProperty$d({}, indexId, getLocalWidgetsUiState(localWidgets, {
9285
9448
  searchParameters: nextState,
9286
9449
  helper: helper
9287
9450
  })));
@@ -9589,7 +9752,7 @@
9589
9752
  getWidgetUiState: function getWidgetUiState(uiState) {
9590
9753
  return localWidgets.filter(isIndexWidget).reduce(function (previousUiState, innerIndex) {
9591
9754
  return innerIndex.getWidgetUiState(previousUiState);
9592
- }, _objectSpread$c(_objectSpread$c({}, uiState), {}, _defineProperty$c({}, indexId, _objectSpread$c(_objectSpread$c({}, uiState[indexId]), localUiState))));
9755
+ }, _objectSpread$d(_objectSpread$d({}, uiState), {}, _defineProperty$d({}, indexId, _objectSpread$d(_objectSpread$d({}, uiState[indexId]), localUiState))));
9593
9756
  },
9594
9757
  getWidgetState: function getWidgetState(uiState) {
9595
9758
  return this.getWidgetUiState(uiState);
@@ -9610,7 +9773,7 @@
9610
9773
  setIndexUiState: function setIndexUiState(indexUiState) {
9611
9774
  var nextIndexUiState = typeof indexUiState === 'function' ? indexUiState(localUiState) : indexUiState;
9612
9775
  localInstantSearchInstance.setUiState(function (state) {
9613
- return _objectSpread$c(_objectSpread$c({}, state), {}, _defineProperty$c({}, indexId, nextIndexUiState));
9776
+ return _objectSpread$d(_objectSpread$d({}, state), {}, _defineProperty$d({}, indexId, nextIndexUiState));
9614
9777
  });
9615
9778
  }
9616
9779
  };
@@ -9620,7 +9783,7 @@
9620
9783
  instantSearchInstance = _ref7.instantSearchInstance,
9621
9784
  parent = _ref7.parent;
9622
9785
  var parentIndexName = parent ? parent.getIndexId() : instantSearchInstance.mainIndex.getIndexId();
9623
- instantSearchInstance.renderState = _objectSpread$c(_objectSpread$c({}, instantSearchInstance.renderState), {}, _defineProperty$c({}, parentIndexName, _objectSpread$c(_objectSpread$c({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
9786
+ instantSearchInstance.renderState = _objectSpread$d(_objectSpread$d({}, instantSearchInstance.renderState), {}, _defineProperty$d({}, parentIndexName, _objectSpread$d(_objectSpread$d({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
9624
9787
  }
9625
9788
 
9626
9789
  function _slicedToArray$5(arr, i) {
@@ -9865,21 +10028,21 @@
9865
10028
  return reverseHighlightedValue.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag, 'g'), "<".concat(highlightedTagName, " class=\"").concat(className, "\">")).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag, 'g'), "</".concat(highlightedTagName, ">"));
9866
10029
  }
9867
10030
 
9868
- function _typeof$g(obj) {
10031
+ function _typeof$h(obj) {
9869
10032
  "@babel/helpers - typeof";
9870
10033
 
9871
- return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10034
+ return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9872
10035
  return typeof obj;
9873
10036
  } : function (obj) {
9874
10037
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9875
- }, _typeof$g(obj);
10038
+ }, _typeof$h(obj);
9876
10039
  }
9877
10040
 
9878
10041
  /** @deprecated use bindEvent instead */
9879
10042
  function writeDataAttributes(_ref) {
9880
10043
  var method = _ref.method,
9881
10044
  payload = _ref.payload;
9882
- if (_typeof$g(payload) !== 'object') {
10045
+ if (_typeof$h(payload) !== 'object') {
9883
10046
  throw new Error("The insights helper expects the payload to be an object.");
9884
10047
  }
9885
10048
  var serializedPayload;
@@ -9901,18 +10064,18 @@
9901
10064
  });
9902
10065
  }
9903
10066
 
9904
- function _typeof$h(obj) {
10067
+ function _typeof$i(obj) {
9905
10068
  "@babel/helpers - typeof";
9906
10069
 
9907
- return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10070
+ return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9908
10071
  return typeof obj;
9909
10072
  } : function (obj) {
9910
10073
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9911
- }, _typeof$h(obj);
10074
+ }, _typeof$i(obj);
9912
10075
  }
9913
10076
  var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
9914
10077
  function getCookie(name) {
9915
- if ((typeof document === "undefined" ? "undefined" : _typeof$h(document)) !== 'object' || typeof document.cookie !== 'string') {
10078
+ if ((typeof document === "undefined" ? "undefined" : _typeof$i(document)) !== 'object' || typeof document.cookie !== 'string') {
9916
10079
  return undefined;
9917
10080
  }
9918
10081
  var prefix = "".concat(name, "=");
@@ -9932,16 +10095,16 @@
9932
10095
  return getCookie(ANONYMOUS_TOKEN_COOKIE_KEY);
9933
10096
  }
9934
10097
 
9935
- function _typeof$i(obj) {
10098
+ function _typeof$j(obj) {
9936
10099
  "@babel/helpers - typeof";
9937
10100
 
9938
- return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10101
+ return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9939
10102
  return typeof obj;
9940
10103
  } : function (obj) {
9941
10104
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9942
- }, _typeof$i(obj);
10105
+ }, _typeof$j(obj);
9943
10106
  }
9944
- function ownKeys$d(object, enumerableOnly) {
10107
+ function ownKeys$e(object, enumerableOnly) {
9945
10108
  var keys = Object.keys(object);
9946
10109
  if (Object.getOwnPropertySymbols) {
9947
10110
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9951,19 +10114,19 @@
9951
10114
  }
9952
10115
  return keys;
9953
10116
  }
9954
- function _objectSpread$d(target) {
10117
+ function _objectSpread$e(target) {
9955
10118
  for (var i = 1; i < arguments.length; i++) {
9956
10119
  var source = null != arguments[i] ? arguments[i] : {};
9957
- i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
9958
- _defineProperty$d(target, key, source[key]);
9959
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
10120
+ i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
10121
+ _defineProperty$e(target, key, source[key]);
10122
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
9960
10123
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9961
10124
  });
9962
10125
  }
9963
10126
  return target;
9964
10127
  }
9965
- function _defineProperty$d(obj, key, value) {
9966
- key = _toPropertyKey$d(key);
10128
+ function _defineProperty$e(obj, key, value) {
10129
+ key = _toPropertyKey$e(key);
9967
10130
  if (key in obj) {
9968
10131
  Object.defineProperty(obj, key, {
9969
10132
  value: value,
@@ -9976,16 +10139,16 @@
9976
10139
  }
9977
10140
  return obj;
9978
10141
  }
9979
- function _toPropertyKey$d(arg) {
9980
- var key = _toPrimitive$d(arg, "string");
9981
- return _typeof$i(key) === "symbol" ? key : String(key);
10142
+ function _toPropertyKey$e(arg) {
10143
+ var key = _toPrimitive$e(arg, "string");
10144
+ return _typeof$j(key) === "symbol" ? key : String(key);
9982
10145
  }
9983
- function _toPrimitive$d(input, hint) {
9984
- if (_typeof$i(input) !== "object" || input === null) return input;
10146
+ function _toPrimitive$e(input, hint) {
10147
+ if (_typeof$j(input) !== "object" || input === null) return input;
9985
10148
  var prim = input[Symbol.toPrimitive];
9986
10149
  if (prim !== undefined) {
9987
10150
  var res = prim.call(input, hint || "default");
9988
- if (_typeof$i(res) !== "object") return res;
10151
+ if (_typeof$j(res) !== "object") return res;
9989
10152
  throw new TypeError("@@toPrimitive must return a primitive value.");
9990
10153
  }
9991
10154
  return (hint === "string" ? String : Number)(input);
@@ -10138,7 +10301,7 @@
10138
10301
  // Only `init` if the `insightsInitParams` option is passed or
10139
10302
  // if the `insightsClient` version doesn't supports optional `init` calling.
10140
10303
  if (insightsInitParams || !isModernInsightsClient(insightsClient)) {
10141
- insightsClient('init', _objectSpread$d({
10304
+ insightsClient('init', _objectSpread$e({
10142
10305
  appId: appId,
10143
10306
  apiKey: apiKey,
10144
10307
  partial: true
@@ -10179,7 +10342,7 @@
10179
10342
  // We don't want to force clickAnalytics when the insights is enabled from the search response.
10180
10343
  // This means we don't enable insights for indices that don't opt in
10181
10344
  if (!$$automatic) {
10182
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$d(_objectSpread$d({}, helper.state), {}, {
10345
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), {}, {
10183
10346
  clickAnalytics: true
10184
10347
  }));
10185
10348
  }
@@ -10193,7 +10356,7 @@
10193
10356
  }
10194
10357
  var existingToken = helper.state.userToken;
10195
10358
  function applyToken() {
10196
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$d(_objectSpread$d({}, helper.state), {}, {
10359
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), {}, {
10197
10360
  userToken: userToken
10198
10361
  }));
10199
10362
  if (existingToken && existingToken !== userToken) {
@@ -10263,7 +10426,7 @@
10263
10426
  insightsClient('onUserTokenChange', undefined);
10264
10427
  instantSearchInstance.sendEventToInsights = noop$1;
10265
10428
  if (helper && initialParameters) {
10266
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$d(_objectSpread$d({}, helper.state), initialParameters));
10429
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), initialParameters));
10267
10430
  instantSearchInstance.scheduleSearch();
10268
10431
  }
10269
10432
  }
@@ -11191,14 +11354,14 @@
11191
11354
  stringify: stringify_1
11192
11355
  };
11193
11356
 
11194
- function _typeof$j(obj) {
11357
+ function _typeof$k(obj) {
11195
11358
  "@babel/helpers - typeof";
11196
11359
 
11197
- return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11360
+ return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11198
11361
  return typeof obj;
11199
11362
  } : function (obj) {
11200
11363
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11201
- }, _typeof$j(obj);
11364
+ }, _typeof$k(obj);
11202
11365
  }
11203
11366
  function _classCallCheck(instance, Constructor) {
11204
11367
  if (!(instance instanceof Constructor)) {
@@ -11211,7 +11374,7 @@
11211
11374
  descriptor.enumerable = descriptor.enumerable || false;
11212
11375
  descriptor.configurable = true;
11213
11376
  if ("value" in descriptor) descriptor.writable = true;
11214
- Object.defineProperty(target, _toPropertyKey$e(descriptor.key), descriptor);
11377
+ Object.defineProperty(target, _toPropertyKey$f(descriptor.key), descriptor);
11215
11378
  }
11216
11379
  }
11217
11380
  function _createClass(Constructor, protoProps, staticProps) {
@@ -11222,8 +11385,8 @@
11222
11385
  });
11223
11386
  return Constructor;
11224
11387
  }
11225
- function _defineProperty$e(obj, key, value) {
11226
- key = _toPropertyKey$e(key);
11388
+ function _defineProperty$f(obj, key, value) {
11389
+ key = _toPropertyKey$f(key);
11227
11390
  if (key in obj) {
11228
11391
  Object.defineProperty(obj, key, {
11229
11392
  value: value,
@@ -11236,16 +11399,16 @@
11236
11399
  }
11237
11400
  return obj;
11238
11401
  }
11239
- function _toPropertyKey$e(arg) {
11240
- var key = _toPrimitive$e(arg, "string");
11241
- return _typeof$j(key) === "symbol" ? key : String(key);
11402
+ function _toPropertyKey$f(arg) {
11403
+ var key = _toPrimitive$f(arg, "string");
11404
+ return _typeof$k(key) === "symbol" ? key : String(key);
11242
11405
  }
11243
- function _toPrimitive$e(input, hint) {
11244
- if (_typeof$j(input) !== "object" || input === null) return input;
11406
+ function _toPrimitive$f(input, hint) {
11407
+ if (_typeof$k(input) !== "object" || input === null) return input;
11245
11408
  var prim = input[Symbol.toPrimitive];
11246
11409
  if (prim !== undefined) {
11247
11410
  var res = prim.call(input, hint || "default");
11248
- if (_typeof$j(res) !== "object") return res;
11411
+ if (_typeof$k(res) !== "object") return res;
11249
11412
  throw new TypeError("@@toPrimitive must return a primitive value.");
11250
11413
  }
11251
11414
  return (hint === "string" ? String : Number)(input);
@@ -11274,11 +11437,11 @@
11274
11437
  dispose = _ref.dispose,
11275
11438
  push = _ref.push;
11276
11439
  _classCallCheck(this, BrowserHistory);
11277
- _defineProperty$e(this, "$$type", 'ais.browser');
11440
+ _defineProperty$f(this, "$$type", 'ais.browser');
11278
11441
  /**
11279
11442
  * Transforms a UI state into a title for the page.
11280
11443
  */
11281
- _defineProperty$e(this, "windowTitle", void 0);
11444
+ _defineProperty$f(this, "windowTitle", void 0);
11282
11445
  /**
11283
11446
  * Time in milliseconds before performing a write in the history.
11284
11447
  * It prevents from adding too many entries in the history and
@@ -11286,42 +11449,42 @@
11286
11449
  *
11287
11450
  * @default 400
11288
11451
  */
11289
- _defineProperty$e(this, "writeDelay", void 0);
11452
+ _defineProperty$f(this, "writeDelay", void 0);
11290
11453
  /**
11291
11454
  * Creates a full URL based on the route state.
11292
11455
  * The storage adaptor maps all syncable keys to the query string of the URL.
11293
11456
  */
11294
- _defineProperty$e(this, "_createURL", void 0);
11457
+ _defineProperty$f(this, "_createURL", void 0);
11295
11458
  /**
11296
11459
  * Parses the URL into a route state.
11297
11460
  * It should be symmetrical to `createURL`.
11298
11461
  */
11299
- _defineProperty$e(this, "parseURL", void 0);
11462
+ _defineProperty$f(this, "parseURL", void 0);
11300
11463
  /**
11301
11464
  * Returns the location to store in the history.
11302
11465
  * @default () => window.location
11303
11466
  */
11304
- _defineProperty$e(this, "getLocation", void 0);
11305
- _defineProperty$e(this, "writeTimer", void 0);
11306
- _defineProperty$e(this, "_onPopState", void 0);
11467
+ _defineProperty$f(this, "getLocation", void 0);
11468
+ _defineProperty$f(this, "writeTimer", void 0);
11469
+ _defineProperty$f(this, "_onPopState", void 0);
11307
11470
  /**
11308
11471
  * Indicates if last action was back/forward in the browser.
11309
11472
  */
11310
- _defineProperty$e(this, "inPopState", false);
11473
+ _defineProperty$f(this, "inPopState", false);
11311
11474
  /**
11312
11475
  * Indicates whether the history router is disposed or not.
11313
11476
  */
11314
- _defineProperty$e(this, "isDisposed", false);
11477
+ _defineProperty$f(this, "isDisposed", false);
11315
11478
  /**
11316
11479
  * Indicates the window.history.length before the last call to
11317
11480
  * window.history.pushState (called in `write`).
11318
11481
  * It allows to determine if a `pushState` has been triggered elsewhere,
11319
11482
  * and thus to prevent the `write` method from calling `pushState`.
11320
11483
  */
11321
- _defineProperty$e(this, "latestAcknowledgedHistory", 0);
11322
- _defineProperty$e(this, "_start", void 0);
11323
- _defineProperty$e(this, "_dispose", void 0);
11324
- _defineProperty$e(this, "_push", void 0);
11484
+ _defineProperty$f(this, "latestAcknowledgedHistory", 0);
11485
+ _defineProperty$f(this, "_start", void 0);
11486
+ _defineProperty$f(this, "_dispose", void 0);
11487
+ _defineProperty$f(this, "_push", void 0);
11325
11488
  this.windowTitle = windowTitle;
11326
11489
  this.writeTimer = undefined;
11327
11490
  this.writeDelay = writeDelay;
@@ -11551,17 +11714,17 @@
11551
11714
  });
11552
11715
  }
11553
11716
 
11554
- function _typeof$k(obj) {
11717
+ function _typeof$l(obj) {
11555
11718
  "@babel/helpers - typeof";
11556
11719
 
11557
- return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11720
+ return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11558
11721
  return typeof obj;
11559
11722
  } : function (obj) {
11560
11723
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11561
- }, _typeof$k(obj);
11724
+ }, _typeof$l(obj);
11562
11725
  }
11563
11726
  var _excluded$5 = ["configure"];
11564
- function ownKeys$e(object, enumerableOnly) {
11727
+ function ownKeys$f(object, enumerableOnly) {
11565
11728
  var keys = Object.keys(object);
11566
11729
  if (Object.getOwnPropertySymbols) {
11567
11730
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11571,19 +11734,19 @@
11571
11734
  }
11572
11735
  return keys;
11573
11736
  }
11574
- function _objectSpread$e(target) {
11737
+ function _objectSpread$f(target) {
11575
11738
  for (var i = 1; i < arguments.length; i++) {
11576
11739
  var source = null != arguments[i] ? arguments[i] : {};
11577
- i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
11578
- _defineProperty$f(target, key, source[key]);
11579
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
11740
+ i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
11741
+ _defineProperty$g(target, key, source[key]);
11742
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
11580
11743
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11581
11744
  });
11582
11745
  }
11583
11746
  return target;
11584
11747
  }
11585
- function _defineProperty$f(obj, key, value) {
11586
- key = _toPropertyKey$f(key);
11748
+ function _defineProperty$g(obj, key, value) {
11749
+ key = _toPropertyKey$g(key);
11587
11750
  if (key in obj) {
11588
11751
  Object.defineProperty(obj, key, {
11589
11752
  value: value,
@@ -11596,16 +11759,16 @@
11596
11759
  }
11597
11760
  return obj;
11598
11761
  }
11599
- function _toPropertyKey$f(arg) {
11600
- var key = _toPrimitive$f(arg, "string");
11601
- return _typeof$k(key) === "symbol" ? key : String(key);
11762
+ function _toPropertyKey$g(arg) {
11763
+ var key = _toPrimitive$g(arg, "string");
11764
+ return _typeof$l(key) === "symbol" ? key : String(key);
11602
11765
  }
11603
- function _toPrimitive$f(input, hint) {
11604
- if (_typeof$k(input) !== "object" || input === null) return input;
11766
+ function _toPrimitive$g(input, hint) {
11767
+ if (_typeof$l(input) !== "object" || input === null) return input;
11605
11768
  var prim = input[Symbol.toPrimitive];
11606
11769
  if (prim !== undefined) {
11607
11770
  var res = prim.call(input, hint || "default");
11608
- if (_typeof$k(res) !== "object") return res;
11771
+ if (_typeof$l(res) !== "object") return res;
11609
11772
  throw new TypeError("@@toPrimitive must return a primitive value.");
11610
11773
  }
11611
11774
  return (hint === "string" ? String : Number)(input);
@@ -11651,28 +11814,28 @@
11651
11814
  $$type: 'ais.simple',
11652
11815
  stateToRoute: function stateToRoute(uiState) {
11653
11816
  return Object.keys(uiState).reduce(function (state, indexId) {
11654
- return _objectSpread$e(_objectSpread$e({}, state), {}, _defineProperty$f({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
11817
+ return _objectSpread$f(_objectSpread$f({}, state), {}, _defineProperty$g({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
11655
11818
  }, {});
11656
11819
  },
11657
11820
  routeToState: function routeToState() {
11658
11821
  var routeState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
11659
11822
  return Object.keys(routeState).reduce(function (state, indexId) {
11660
- return _objectSpread$e(_objectSpread$e({}, state), {}, _defineProperty$f({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
11823
+ return _objectSpread$f(_objectSpread$f({}, state), {}, _defineProperty$g({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
11661
11824
  }, {});
11662
11825
  }
11663
11826
  };
11664
11827
  }
11665
11828
 
11666
- function _typeof$l(obj) {
11829
+ function _typeof$m(obj) {
11667
11830
  "@babel/helpers - typeof";
11668
11831
 
11669
- return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11832
+ return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11670
11833
  return typeof obj;
11671
11834
  } : function (obj) {
11672
11835
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11673
- }, _typeof$l(obj);
11836
+ }, _typeof$m(obj);
11674
11837
  }
11675
- function ownKeys$f(object, enumerableOnly) {
11838
+ function ownKeys$g(object, enumerableOnly) {
11676
11839
  var keys = Object.keys(object);
11677
11840
  if (Object.getOwnPropertySymbols) {
11678
11841
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11682,19 +11845,19 @@
11682
11845
  }
11683
11846
  return keys;
11684
11847
  }
11685
- function _objectSpread$f(target) {
11848
+ function _objectSpread$g(target) {
11686
11849
  for (var i = 1; i < arguments.length; i++) {
11687
11850
  var source = null != arguments[i] ? arguments[i] : {};
11688
- i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
11689
- _defineProperty$g(target, key, source[key]);
11690
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
11851
+ i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
11852
+ _defineProperty$h(target, key, source[key]);
11853
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
11691
11854
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11692
11855
  });
11693
11856
  }
11694
11857
  return target;
11695
11858
  }
11696
- function _defineProperty$g(obj, key, value) {
11697
- key = _toPropertyKey$g(key);
11859
+ function _defineProperty$h(obj, key, value) {
11860
+ key = _toPropertyKey$h(key);
11698
11861
  if (key in obj) {
11699
11862
  Object.defineProperty(obj, key, {
11700
11863
  value: value,
@@ -11707,16 +11870,16 @@
11707
11870
  }
11708
11871
  return obj;
11709
11872
  }
11710
- function _toPropertyKey$g(arg) {
11711
- var key = _toPrimitive$g(arg, "string");
11712
- return _typeof$l(key) === "symbol" ? key : String(key);
11873
+ function _toPropertyKey$h(arg) {
11874
+ var key = _toPrimitive$h(arg, "string");
11875
+ return _typeof$m(key) === "symbol" ? key : String(key);
11713
11876
  }
11714
- function _toPrimitive$g(input, hint) {
11715
- if (_typeof$l(input) !== "object" || input === null) return input;
11877
+ function _toPrimitive$h(input, hint) {
11878
+ if (_typeof$m(input) !== "object" || input === null) return input;
11716
11879
  var prim = input[Symbol.toPrimitive];
11717
11880
  if (prim !== undefined) {
11718
11881
  var res = prim.call(input, hint || "default");
11719
- if (_typeof$l(res) !== "object") return res;
11882
+ if (_typeof$m(res) !== "object") return res;
11720
11883
  throw new TypeError("@@toPrimitive must return a primitive value.");
11721
11884
  }
11722
11885
  return (hint === "string" ? String : Number)(input);
@@ -11741,7 +11904,7 @@
11741
11904
  // any changes.
11742
11905
  instantSearchInstance.mainIndex.getWidgets().length === 0 ? instantSearchInstance._initialUiState : instantSearchInstance.mainIndex.getWidgetUiState({});
11743
11906
  var uiState = Object.keys(nextState).reduce(function (acc, indexId) {
11744
- return _objectSpread$f(_objectSpread$f({}, acc), {}, _defineProperty$g({}, indexId, nextState[indexId]));
11907
+ return _objectSpread$g(_objectSpread$g({}, acc), {}, _defineProperty$h({}, indexId, nextState[indexId]));
11745
11908
  }, previousUiState);
11746
11909
  var route = stateMapping.stateToRoute(uiState);
11747
11910
  return router.createURL(route);
@@ -11764,7 +11927,7 @@
11764
11927
  }
11765
11928
  },
11766
11929
  subscribe: function subscribe() {
11767
- instantSearchInstance._initialUiState = _objectSpread$f(_objectSpread$f({}, initialUiState), stateMapping.routeToState(router.read()));
11930
+ instantSearchInstance._initialUiState = _objectSpread$g(_objectSpread$g({}, initialUiState), stateMapping.routeToState(router.read()));
11768
11931
  router.onUpdate(function (route) {
11769
11932
  if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
11770
11933
  instantSearchInstance.setUiState(stateMapping.routeToState(route));
@@ -11786,16 +11949,16 @@
11786
11949
  return value.toLocaleString(numberLocale);
11787
11950
  }
11788
11951
 
11789
- function _typeof$m(obj) {
11952
+ function _typeof$n(obj) {
11790
11953
  "@babel/helpers - typeof";
11791
11954
 
11792
- return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11955
+ return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11793
11956
  return typeof obj;
11794
11957
  } : function (obj) {
11795
11958
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11796
- }, _typeof$m(obj);
11959
+ }, _typeof$n(obj);
11797
11960
  }
11798
- function ownKeys$g(object, enumerableOnly) {
11961
+ function ownKeys$h(object, enumerableOnly) {
11799
11962
  var keys = Object.keys(object);
11800
11963
  if (Object.getOwnPropertySymbols) {
11801
11964
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11805,19 +11968,19 @@
11805
11968
  }
11806
11969
  return keys;
11807
11970
  }
11808
- function _objectSpread$g(target) {
11971
+ function _objectSpread$h(target) {
11809
11972
  for (var i = 1; i < arguments.length; i++) {
11810
11973
  var source = null != arguments[i] ? arguments[i] : {};
11811
- i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
11812
- _defineProperty$h(target, key, source[key]);
11813
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
11974
+ i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
11975
+ _defineProperty$i(target, key, source[key]);
11976
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
11814
11977
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11815
11978
  });
11816
11979
  }
11817
11980
  return target;
11818
11981
  }
11819
- function _defineProperty$h(obj, key, value) {
11820
- key = _toPropertyKey$h(key);
11982
+ function _defineProperty$i(obj, key, value) {
11983
+ key = _toPropertyKey$i(key);
11821
11984
  if (key in obj) {
11822
11985
  Object.defineProperty(obj, key, {
11823
11986
  value: value,
@@ -11830,16 +11993,16 @@
11830
11993
  }
11831
11994
  return obj;
11832
11995
  }
11833
- function _toPropertyKey$h(arg) {
11834
- var key = _toPrimitive$h(arg, "string");
11835
- return _typeof$m(key) === "symbol" ? key : String(key);
11996
+ function _toPropertyKey$i(arg) {
11997
+ var key = _toPrimitive$i(arg, "string");
11998
+ return _typeof$n(key) === "symbol" ? key : String(key);
11836
11999
  }
11837
- function _toPrimitive$h(input, hint) {
11838
- if (_typeof$m(input) !== "object" || input === null) return input;
12000
+ function _toPrimitive$i(input, hint) {
12001
+ if (_typeof$n(input) !== "object" || input === null) return input;
11839
12002
  var prim = input[Symbol.toPrimitive];
11840
12003
  if (prim !== undefined) {
11841
12004
  var res = prim.call(input, hint || "default");
11842
- if (_typeof$m(res) !== "object") return res;
12005
+ if (_typeof$n(res) !== "object") return res;
11843
12006
  throw new TypeError("@@toPrimitive must return a primitive value.");
11844
12007
  }
11845
12008
  return (hint === "string" ? String : Number)(input);
@@ -11853,7 +12016,7 @@
11853
12016
  highlight: function highlight$1(options, render) {
11854
12017
  try {
11855
12018
  var highlightOptions = JSON.parse(options);
11856
- return render(highlight(_objectSpread$g(_objectSpread$g({}, highlightOptions), {}, {
12019
+ return render(highlight(_objectSpread$h(_objectSpread$h({}, highlightOptions), {}, {
11857
12020
  hit: this
11858
12021
  })));
11859
12022
  } catch (error) {
@@ -11863,7 +12026,7 @@
11863
12026
  reverseHighlight: function reverseHighlight$1(options, render) {
11864
12027
  try {
11865
12028
  var reverseHighlightOptions = JSON.parse(options);
11866
- return render(reverseHighlight(_objectSpread$g(_objectSpread$g({}, reverseHighlightOptions), {}, {
12029
+ return render(reverseHighlight(_objectSpread$h(_objectSpread$h({}, reverseHighlightOptions), {}, {
11867
12030
  hit: this
11868
12031
  })));
11869
12032
  } catch (error) {
@@ -11873,7 +12036,7 @@
11873
12036
  snippet: function snippet$1(options, render) {
11874
12037
  try {
11875
12038
  var snippetOptions = JSON.parse(options);
11876
- return render(snippet(_objectSpread$g(_objectSpread$g({}, snippetOptions), {}, {
12039
+ return render(snippet(_objectSpread$h(_objectSpread$h({}, snippetOptions), {}, {
11877
12040
  hit: this
11878
12041
  })));
11879
12042
  } catch (error) {
@@ -11883,7 +12046,7 @@
11883
12046
  reverseSnippet: function reverseSnippet$1(options, render) {
11884
12047
  try {
11885
12048
  var reverseSnippetOptions = JSON.parse(options);
11886
- return render(reverseSnippet(_objectSpread$g(_objectSpread$g({}, reverseSnippetOptions), {}, {
12049
+ return render(reverseSnippet(_objectSpread$h(_objectSpread$h({}, reverseSnippetOptions), {}, {
11887
12050
  hit: this
11888
12051
  })));
11889
12052
  } catch (error) {
@@ -11895,7 +12058,7 @@
11895
12058
  var _JSON$parse = JSON.parse(options),
11896
12059
  method = _JSON$parse.method,
11897
12060
  payload = _JSON$parse.payload;
11898
- return render(insights(method, _objectSpread$g({
12061
+ return render(insights(method, _objectSpread$h({
11899
12062
  objectIDs: [this.objectID]
11900
12063
  }, payload)));
11901
12064
  } catch (error) {
@@ -11905,18 +12068,18 @@
11905
12068
  };
11906
12069
  }
11907
12070
 
11908
- var version$3 = '4.59.0';
12071
+ var version$3 = '4.60.0';
11909
12072
 
11910
- function _typeof$n(obj) {
12073
+ function _typeof$o(obj) {
11911
12074
  "@babel/helpers - typeof";
11912
12075
 
11913
- return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12076
+ return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11914
12077
  return typeof obj;
11915
12078
  } : function (obj) {
11916
12079
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11917
- }, _typeof$n(obj);
12080
+ }, _typeof$o(obj);
11918
12081
  }
11919
- function ownKeys$h(object, enumerableOnly) {
12082
+ function ownKeys$i(object, enumerableOnly) {
11920
12083
  var keys = Object.keys(object);
11921
12084
  if (Object.getOwnPropertySymbols) {
11922
12085
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11926,12 +12089,12 @@
11926
12089
  }
11927
12090
  return keys;
11928
12091
  }
11929
- function _objectSpread$h(target) {
12092
+ function _objectSpread$i(target) {
11930
12093
  for (var i = 1; i < arguments.length; i++) {
11931
12094
  var source = null != arguments[i] ? arguments[i] : {};
11932
- i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
11933
- _defineProperty$i(target, key, source[key]);
11934
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
12095
+ i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12096
+ _defineProperty$j(target, key, source[key]);
12097
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
11935
12098
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11936
12099
  });
11937
12100
  }
@@ -11948,7 +12111,7 @@
11948
12111
  descriptor.enumerable = descriptor.enumerable || false;
11949
12112
  descriptor.configurable = true;
11950
12113
  if ("value" in descriptor) descriptor.writable = true;
11951
- Object.defineProperty(target, _toPropertyKey$i(descriptor.key), descriptor);
12114
+ Object.defineProperty(target, _toPropertyKey$j(descriptor.key), descriptor);
11952
12115
  }
11953
12116
  }
11954
12117
  function _createClass$1(Constructor, protoProps, staticProps) {
@@ -11997,7 +12160,7 @@
11997
12160
  };
11998
12161
  }
11999
12162
  function _possibleConstructorReturn(self, call) {
12000
- if (call && (_typeof$n(call) === "object" || typeof call === "function")) {
12163
+ if (call && (_typeof$o(call) === "object" || typeof call === "function")) {
12001
12164
  return call;
12002
12165
  } else if (call !== void 0) {
12003
12166
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -12027,8 +12190,8 @@
12027
12190
  };
12028
12191
  return _getPrototypeOf(o);
12029
12192
  }
12030
- function _defineProperty$i(obj, key, value) {
12031
- key = _toPropertyKey$i(key);
12193
+ function _defineProperty$j(obj, key, value) {
12194
+ key = _toPropertyKey$j(key);
12032
12195
  if (key in obj) {
12033
12196
  Object.defineProperty(obj, key, {
12034
12197
  value: value,
@@ -12041,16 +12204,16 @@
12041
12204
  }
12042
12205
  return obj;
12043
12206
  }
12044
- function _toPropertyKey$i(arg) {
12045
- var key = _toPrimitive$i(arg, "string");
12046
- return _typeof$n(key) === "symbol" ? key : String(key);
12207
+ function _toPropertyKey$j(arg) {
12208
+ var key = _toPrimitive$j(arg, "string");
12209
+ return _typeof$o(key) === "symbol" ? key : String(key);
12047
12210
  }
12048
- function _toPrimitive$i(input, hint) {
12049
- if (_typeof$n(input) !== "object" || input === null) return input;
12211
+ function _toPrimitive$j(input, hint) {
12212
+ if (_typeof$o(input) !== "object" || input === null) return input;
12050
12213
  var prim = input[Symbol.toPrimitive];
12051
12214
  if (prim !== undefined) {
12052
12215
  var res = prim.call(input, hint || "default");
12053
- if (_typeof$n(res) !== "object") return res;
12216
+ if (_typeof$o(res) !== "object") return res;
12054
12217
  throw new TypeError("@@toPrimitive must return a primitive value.");
12055
12218
  }
12056
12219
  return (hint === "string" ? String : Number)(input);
@@ -12086,42 +12249,42 @@
12086
12249
  _this = _super.call(this);
12087
12250
 
12088
12251
  // prevent `render` event listening from causing a warning
12089
- _defineProperty$i(_assertThisInitialized(_this), "client", void 0);
12090
- _defineProperty$i(_assertThisInitialized(_this), "indexName", void 0);
12091
- _defineProperty$i(_assertThisInitialized(_this), "insightsClient", void 0);
12092
- _defineProperty$i(_assertThisInitialized(_this), "onStateChange", null);
12093
- _defineProperty$i(_assertThisInitialized(_this), "future", void 0);
12094
- _defineProperty$i(_assertThisInitialized(_this), "helper", void 0);
12095
- _defineProperty$i(_assertThisInitialized(_this), "mainHelper", void 0);
12096
- _defineProperty$i(_assertThisInitialized(_this), "mainIndex", void 0);
12097
- _defineProperty$i(_assertThisInitialized(_this), "started", void 0);
12098
- _defineProperty$i(_assertThisInitialized(_this), "templatesConfig", void 0);
12099
- _defineProperty$i(_assertThisInitialized(_this), "renderState", {});
12100
- _defineProperty$i(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
12101
- _defineProperty$i(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
12102
- _defineProperty$i(_assertThisInitialized(_this), "_initialUiState", void 0);
12103
- _defineProperty$i(_assertThisInitialized(_this), "_initialResults", void 0);
12104
- _defineProperty$i(_assertThisInitialized(_this), "_createURL", void 0);
12105
- _defineProperty$i(_assertThisInitialized(_this), "_searchFunction", void 0);
12106
- _defineProperty$i(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
12107
- _defineProperty$i(_assertThisInitialized(_this), "_insights", void 0);
12108
- _defineProperty$i(_assertThisInitialized(_this), "middleware", []);
12109
- _defineProperty$i(_assertThisInitialized(_this), "sendEventToInsights", void 0);
12252
+ _defineProperty$j(_assertThisInitialized(_this), "client", void 0);
12253
+ _defineProperty$j(_assertThisInitialized(_this), "indexName", void 0);
12254
+ _defineProperty$j(_assertThisInitialized(_this), "insightsClient", void 0);
12255
+ _defineProperty$j(_assertThisInitialized(_this), "onStateChange", null);
12256
+ _defineProperty$j(_assertThisInitialized(_this), "future", void 0);
12257
+ _defineProperty$j(_assertThisInitialized(_this), "helper", void 0);
12258
+ _defineProperty$j(_assertThisInitialized(_this), "mainHelper", void 0);
12259
+ _defineProperty$j(_assertThisInitialized(_this), "mainIndex", void 0);
12260
+ _defineProperty$j(_assertThisInitialized(_this), "started", void 0);
12261
+ _defineProperty$j(_assertThisInitialized(_this), "templatesConfig", void 0);
12262
+ _defineProperty$j(_assertThisInitialized(_this), "renderState", {});
12263
+ _defineProperty$j(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
12264
+ _defineProperty$j(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
12265
+ _defineProperty$j(_assertThisInitialized(_this), "_initialUiState", void 0);
12266
+ _defineProperty$j(_assertThisInitialized(_this), "_initialResults", void 0);
12267
+ _defineProperty$j(_assertThisInitialized(_this), "_createURL", void 0);
12268
+ _defineProperty$j(_assertThisInitialized(_this), "_searchFunction", void 0);
12269
+ _defineProperty$j(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
12270
+ _defineProperty$j(_assertThisInitialized(_this), "_insights", void 0);
12271
+ _defineProperty$j(_assertThisInitialized(_this), "middleware", []);
12272
+ _defineProperty$j(_assertThisInitialized(_this), "sendEventToInsights", void 0);
12110
12273
  /**
12111
12274
  * The status of the search. Can be "idle", "loading", "stalled", or "error".
12112
12275
  */
12113
- _defineProperty$i(_assertThisInitialized(_this), "status", 'idle');
12276
+ _defineProperty$j(_assertThisInitialized(_this), "status", 'idle');
12114
12277
  /**
12115
12278
  * The last returned error from the Search API.
12116
12279
  * The error gets cleared when the next valid search response is rendered.
12117
12280
  */
12118
- _defineProperty$i(_assertThisInitialized(_this), "error", undefined);
12119
- _defineProperty$i(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
12281
+ _defineProperty$j(_assertThisInitialized(_this), "error", undefined);
12282
+ _defineProperty$j(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
12120
12283
  if (_this.started) {
12121
12284
  _this.mainHelper.search();
12122
12285
  }
12123
12286
  }));
12124
- _defineProperty$i(_assertThisInitialized(_this), "scheduleRender", defer(function () {
12287
+ _defineProperty$j(_assertThisInitialized(_this), "scheduleRender", defer(function () {
12125
12288
  var _this$mainHelper;
12126
12289
  var shouldResetStatus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
12127
12290
  if (!((_this$mainHelper = _this.mainHelper) !== null && _this$mainHelper !== void 0 && _this$mainHelper.hasPendingRequests())) {
@@ -12137,7 +12300,7 @@
12137
12300
  });
12138
12301
  _this.emit('render');
12139
12302
  }));
12140
- _defineProperty$i(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
12303
+ _defineProperty$j(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
12141
12304
  var nextUiState = _this.mainIndex.getWidgetUiState({});
12142
12305
  _this.middleware.forEach(function (_ref) {
12143
12306
  var instance = _ref.instance;
@@ -12166,7 +12329,7 @@
12166
12329
  _options$onStateChang = options.onStateChange,
12167
12330
  onStateChange = _options$onStateChang === void 0 ? null : _options$onStateChang,
12168
12331
  _options$future = options.future,
12169
- future = _options$future === void 0 ? _objectSpread$h(_objectSpread$h({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
12332
+ future = _options$future === void 0 ? _objectSpread$i(_objectSpread$i({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
12170
12333
  if (searchClient === null) {
12171
12334
  throw new Error(withUsage$3('The `searchClient` option is required.'));
12172
12335
  }
@@ -12248,7 +12411,7 @@
12248
12411
  middleware[_key] = arguments[_key];
12249
12412
  }
12250
12413
  var newMiddlewareList = middleware.map(function (fn) {
12251
- var newMiddleware = _objectSpread$h({
12414
+ var newMiddleware = _objectSpread$i({
12252
12415
  $$type: '__unknown__',
12253
12416
  $$internal: false,
12254
12417
  subscribe: noop$1,
@@ -12464,6 +12627,7 @@
12464
12627
  uiState: this._initialUiState
12465
12628
  });
12466
12629
  if (this._initialResults) {
12630
+ hydrateSearchClient(this.client, this._initialResults);
12467
12631
  var originalScheduleSearch = this.scheduleSearch;
12468
12632
  // We don't schedule a first search when initial results are provided
12469
12633
  // because we already have the results to render. This skips the initial
@@ -12651,16 +12815,16 @@
12651
12815
  });
12652
12816
  var shim_1 = shim.useSyncExternalStore;
12653
12817
 
12654
- function _typeof$o(obj) {
12818
+ function _typeof$p(obj) {
12655
12819
  "@babel/helpers - typeof";
12656
12820
 
12657
- return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12821
+ return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12658
12822
  return typeof obj;
12659
12823
  } : function (obj) {
12660
12824
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12661
- }, _typeof$o(obj);
12825
+ }, _typeof$p(obj);
12662
12826
  }
12663
- function ownKeys$i(object, enumerableOnly) {
12827
+ function ownKeys$j(object, enumerableOnly) {
12664
12828
  var keys = Object.keys(object);
12665
12829
  if (Object.getOwnPropertySymbols) {
12666
12830
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12670,19 +12834,19 @@
12670
12834
  }
12671
12835
  return keys;
12672
12836
  }
12673
- function _objectSpread$i(target) {
12837
+ function _objectSpread$j(target) {
12674
12838
  for (var i = 1; i < arguments.length; i++) {
12675
12839
  var source = null != arguments[i] ? arguments[i] : {};
12676
- i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12677
- _defineProperty$j(target, key, source[key]);
12678
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
12840
+ i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
12841
+ _defineProperty$k(target, key, source[key]);
12842
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
12679
12843
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12680
12844
  });
12681
12845
  }
12682
12846
  return target;
12683
12847
  }
12684
- function _defineProperty$j(obj, key, value) {
12685
- key = _toPropertyKey$j(key);
12848
+ function _defineProperty$k(obj, key, value) {
12849
+ key = _toPropertyKey$k(key);
12686
12850
  if (key in obj) {
12687
12851
  Object.defineProperty(obj, key, {
12688
12852
  value: value,
@@ -12695,16 +12859,16 @@
12695
12859
  }
12696
12860
  return obj;
12697
12861
  }
12698
- function _toPropertyKey$j(arg) {
12699
- var key = _toPrimitive$j(arg, "string");
12700
- return _typeof$o(key) === "symbol" ? key : String(key);
12862
+ function _toPropertyKey$k(arg) {
12863
+ var key = _toPrimitive$k(arg, "string");
12864
+ return _typeof$p(key) === "symbol" ? key : String(key);
12701
12865
  }
12702
- function _toPrimitive$j(input, hint) {
12703
- if (_typeof$o(input) !== "object" || input === null) return input;
12866
+ function _toPrimitive$k(input, hint) {
12867
+ if (_typeof$p(input) !== "object" || input === null) return input;
12704
12868
  var prim = input[Symbol.toPrimitive];
12705
12869
  if (prim !== undefined) {
12706
12870
  var res = prim.call(input, hint || "default");
12707
- if (_typeof$o(res) !== "object") return res;
12871
+ if (_typeof$p(res) !== "object") return res;
12708
12872
  throw new TypeError("@@toPrimitive must return a primitive value.");
12709
12873
  }
12710
12874
  return (hint === "string" ? String : Number)(input);
@@ -12803,7 +12967,7 @@
12803
12967
  prevPropsRef.current = props;
12804
12968
  }
12805
12969
  if (!dequal(prevProps.future, props.future)) {
12806
- _search.future = _objectSpread$i(_objectSpread$i({}, INSTANTSEARCH_FUTURE_DEFAULTS), props.future);
12970
+ _search.future = _objectSpread$j(_objectSpread$j({}, INSTANTSEARCH_FUTURE_DEFAULTS), props.future);
12807
12971
  prevPropsRef.current = props;
12808
12972
  }
12809
12973
 
@@ -12923,17 +13087,17 @@
12923
13087
  }, children));
12924
13088
  }
12925
13089
 
12926
- function _typeof$p(obj) {
13090
+ function _typeof$q(obj) {
12927
13091
  "@babel/helpers - typeof";
12928
13092
 
12929
- return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13093
+ return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12930
13094
  return typeof obj;
12931
13095
  } : function (obj) {
12932
13096
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12933
- }, _typeof$p(obj);
13097
+ }, _typeof$q(obj);
12934
13098
  }
12935
13099
  var _excluded$7 = ["children"];
12936
- function ownKeys$j(object, enumerableOnly) {
13100
+ function ownKeys$k(object, enumerableOnly) {
12937
13101
  var keys = Object.keys(object);
12938
13102
  if (Object.getOwnPropertySymbols) {
12939
13103
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12943,19 +13107,19 @@
12943
13107
  }
12944
13108
  return keys;
12945
13109
  }
12946
- function _objectSpread$j(target) {
13110
+ function _objectSpread$k(target) {
12947
13111
  for (var i = 1; i < arguments.length; i++) {
12948
13112
  var source = null != arguments[i] ? arguments[i] : {};
12949
- i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
12950
- _defineProperty$k(target, key, source[key]);
12951
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
13113
+ i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13114
+ _defineProperty$l(target, key, source[key]);
13115
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
12952
13116
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12953
13117
  });
12954
13118
  }
12955
13119
  return target;
12956
13120
  }
12957
- function _defineProperty$k(obj, key, value) {
12958
- key = _toPropertyKey$k(key);
13121
+ function _defineProperty$l(obj, key, value) {
13122
+ key = _toPropertyKey$l(key);
12959
13123
  if (key in obj) {
12960
13124
  Object.defineProperty(obj, key, {
12961
13125
  value: value,
@@ -12968,16 +13132,16 @@
12968
13132
  }
12969
13133
  return obj;
12970
13134
  }
12971
- function _toPropertyKey$k(arg) {
12972
- var key = _toPrimitive$k(arg, "string");
12973
- return _typeof$p(key) === "symbol" ? key : String(key);
13135
+ function _toPropertyKey$l(arg) {
13136
+ var key = _toPrimitive$l(arg, "string");
13137
+ return _typeof$q(key) === "symbol" ? key : String(key);
12974
13138
  }
12975
- function _toPrimitive$k(input, hint) {
12976
- if (_typeof$p(input) !== "object" || input === null) return input;
13139
+ function _toPrimitive$l(input, hint) {
13140
+ if (_typeof$q(input) !== "object" || input === null) return input;
12977
13141
  var prim = input[Symbol.toPrimitive];
12978
13142
  if (prim !== undefined) {
12979
13143
  var res = prim.call(input, hint || "default");
12980
- if (_typeof$p(res) !== "object") return res;
13144
+ if (_typeof$q(res) !== "object") return res;
12981
13145
  throw new TypeError("@@toPrimitive must return a primitive value.");
12982
13146
  }
12983
13147
  return (hint === "string" ? String : Number)(input);
@@ -13028,22 +13192,22 @@
13028
13192
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
13029
13193
  }
13030
13194
  return /*#__PURE__*/React__default.createElement(InstantSearchSSRContext.Provider, {
13031
- value: _objectSpread$j(_objectSpread$j({}, props), {}, {
13195
+ value: _objectSpread$k(_objectSpread$k({}, props), {}, {
13032
13196
  ssrSearchRef: ssrSearchRef
13033
13197
  })
13034
13198
  }, children);
13035
13199
  }
13036
13200
 
13037
- function _typeof$q(obj) {
13201
+ function _typeof$r(obj) {
13038
13202
  "@babel/helpers - typeof";
13039
13203
 
13040
- return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13204
+ return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13041
13205
  return typeof obj;
13042
13206
  } : function (obj) {
13043
13207
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13044
- }, _typeof$q(obj);
13208
+ }, _typeof$r(obj);
13045
13209
  }
13046
- function ownKeys$k(object, enumerableOnly) {
13210
+ function ownKeys$l(object, enumerableOnly) {
13047
13211
  var keys = Object.keys(object);
13048
13212
  if (Object.getOwnPropertySymbols) {
13049
13213
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13053,19 +13217,19 @@
13053
13217
  }
13054
13218
  return keys;
13055
13219
  }
13056
- function _objectSpread$k(target) {
13220
+ function _objectSpread$l(target) {
13057
13221
  for (var i = 1; i < arguments.length; i++) {
13058
13222
  var source = null != arguments[i] ? arguments[i] : {};
13059
- i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13060
- _defineProperty$l(target, key, source[key]);
13061
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
13223
+ i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13224
+ _defineProperty$m(target, key, source[key]);
13225
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
13062
13226
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13063
13227
  });
13064
13228
  }
13065
13229
  return target;
13066
13230
  }
13067
- function _defineProperty$l(obj, key, value) {
13068
- key = _toPropertyKey$l(key);
13231
+ function _defineProperty$m(obj, key, value) {
13232
+ key = _toPropertyKey$m(key);
13069
13233
  if (key in obj) {
13070
13234
  Object.defineProperty(obj, key, {
13071
13235
  value: value,
@@ -13078,16 +13242,16 @@
13078
13242
  }
13079
13243
  return obj;
13080
13244
  }
13081
- function _toPropertyKey$l(arg) {
13082
- var key = _toPrimitive$l(arg, "string");
13083
- return _typeof$q(key) === "symbol" ? key : String(key);
13245
+ function _toPropertyKey$m(arg) {
13246
+ var key = _toPrimitive$m(arg, "string");
13247
+ return _typeof$r(key) === "symbol" ? key : String(key);
13084
13248
  }
13085
- function _toPrimitive$l(input, hint) {
13086
- if (_typeof$q(input) !== "object" || input === null) return input;
13249
+ function _toPrimitive$m(input, hint) {
13250
+ if (_typeof$r(input) !== "object" || input === null) return input;
13087
13251
  var prim = input[Symbol.toPrimitive];
13088
13252
  if (prim !== undefined) {
13089
13253
  var res = prim.call(input, hint || "default");
13090
- if (_typeof$q(res) !== "object") return res;
13254
+ if (_typeof$r(res) !== "object") return res;
13091
13255
  throw new TypeError("@@toPrimitive must return a primitive value.");
13092
13256
  }
13093
13257
  return (hint === "string" ? String : Number)(input);
@@ -13179,12 +13343,12 @@
13179
13343
  return {
13180
13344
  $$type: 'ais.breadcrumb',
13181
13345
  init: function init(initOptions) {
13182
- renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(initOptions)), {}, {
13346
+ renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
13183
13347
  instantSearchInstance: initOptions.instantSearchInstance
13184
13348
  }), true);
13185
13349
  },
13186
13350
  render: function render(renderOptions) {
13187
- renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(renderOptions)), {}, {
13351
+ renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(renderOptions)), {}, {
13188
13352
  instantSearchInstance: renderOptions.instantSearchInstance
13189
13353
  }), false);
13190
13354
  },
@@ -13192,8 +13356,8 @@
13192
13356
  unmountFn();
13193
13357
  },
13194
13358
  getRenderState: function getRenderState(renderState, renderOptions) {
13195
- return _objectSpread$k(_objectSpread$k({}, renderState), {}, {
13196
- breadcrumb: _objectSpread$k(_objectSpread$k({}, renderState.breadcrumb), {}, _defineProperty$l({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
13359
+ return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
13360
+ breadcrumb: _objectSpread$l(_objectSpread$l({}, renderState.breadcrumb), {}, _defineProperty$m({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
13197
13361
  });
13198
13362
  },
13199
13363
  getWidgetRenderState: function getWidgetRenderState(_ref2) {
@@ -13248,8 +13412,8 @@
13248
13412
  if (!path.length) {
13249
13413
  return uiState;
13250
13414
  }
13251
- return _objectSpread$k(_objectSpread$k({}, uiState), {}, {
13252
- hierarchicalMenu: _objectSpread$k(_objectSpread$k({}, uiState.hierarchicalMenu), {}, _defineProperty$l({}, hierarchicalFacetName, path))
13415
+ return _objectSpread$l(_objectSpread$l({}, uiState), {}, {
13416
+ hierarchicalMenu: _objectSpread$l(_objectSpread$l({}, uiState.hierarchicalMenu), {}, _defineProperty$m({}, hierarchicalFacetName, path))
13253
13417
  });
13254
13418
  },
13255
13419
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref4) {
@@ -13269,7 +13433,7 @@
13269
13433
  });
13270
13434
  if (!values) {
13271
13435
  return withFacetConfiguration.setQueryParameters({
13272
- hierarchicalFacetsRefinements: _objectSpread$k(_objectSpread$k({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$l({}, hierarchicalFacetName, []))
13436
+ hierarchicalFacetsRefinements: _objectSpread$l(_objectSpread$l({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$m({}, hierarchicalFacetName, []))
13273
13437
  });
13274
13438
  }
13275
13439
  return withFacetConfiguration.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -13304,14 +13468,14 @@
13304
13468
  return useConnector(connectBreadcrumb, props, additionalWidgetProperties);
13305
13469
  }
13306
13470
 
13307
- function _typeof$r(obj) {
13471
+ function _typeof$s(obj) {
13308
13472
  "@babel/helpers - typeof";
13309
13473
 
13310
- return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13474
+ return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13311
13475
  return typeof obj;
13312
13476
  } : function (obj) {
13313
13477
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13314
- }, _typeof$r(obj);
13478
+ }, _typeof$s(obj);
13315
13479
  }
13316
13480
  function _toConsumableArray$3(arr) {
13317
13481
  return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$a(arr) || _nonIterableSpread$3();
@@ -13338,7 +13502,7 @@
13338
13502
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13339
13503
  return arr2;
13340
13504
  }
13341
- function ownKeys$l(object, enumerableOnly) {
13505
+ function ownKeys$m(object, enumerableOnly) {
13342
13506
  var keys = Object.keys(object);
13343
13507
  if (Object.getOwnPropertySymbols) {
13344
13508
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13348,19 +13512,19 @@
13348
13512
  }
13349
13513
  return keys;
13350
13514
  }
13351
- function _objectSpread$l(target) {
13515
+ function _objectSpread$m(target) {
13352
13516
  for (var i = 1; i < arguments.length; i++) {
13353
13517
  var source = null != arguments[i] ? arguments[i] : {};
13354
- i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13355
- _defineProperty$m(target, key, source[key]);
13356
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
13518
+ i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
13519
+ _defineProperty$n(target, key, source[key]);
13520
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
13357
13521
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13358
13522
  });
13359
13523
  }
13360
13524
  return target;
13361
13525
  }
13362
- function _defineProperty$m(obj, key, value) {
13363
- key = _toPropertyKey$m(key);
13526
+ function _defineProperty$n(obj, key, value) {
13527
+ key = _toPropertyKey$n(key);
13364
13528
  if (key in obj) {
13365
13529
  Object.defineProperty(obj, key, {
13366
13530
  value: value,
@@ -13373,16 +13537,16 @@
13373
13537
  }
13374
13538
  return obj;
13375
13539
  }
13376
- function _toPropertyKey$m(arg) {
13377
- var key = _toPrimitive$m(arg, "string");
13378
- return _typeof$r(key) === "symbol" ? key : String(key);
13540
+ function _toPropertyKey$n(arg) {
13541
+ var key = _toPrimitive$n(arg, "string");
13542
+ return _typeof$s(key) === "symbol" ? key : String(key);
13379
13543
  }
13380
- function _toPrimitive$m(input, hint) {
13381
- if (_typeof$r(input) !== "object" || input === null) return input;
13544
+ function _toPrimitive$n(input, hint) {
13545
+ if (_typeof$s(input) !== "object" || input === null) return input;
13382
13546
  var prim = input[Symbol.toPrimitive];
13383
13547
  if (prim !== undefined) {
13384
13548
  var res = prim.call(input, hint || "default");
13385
- if (_typeof$r(res) !== "object") return res;
13549
+ if (_typeof$s(res) !== "object") return res;
13386
13550
  throw new TypeError("@@toPrimitive must return a primitive value.");
13387
13551
  }
13388
13552
  return (hint === "string" ? String : Number)(input);
@@ -13424,13 +13588,13 @@
13424
13588
  $$type: 'ais.clearRefinements',
13425
13589
  init: function init(initOptions) {
13426
13590
  var instantSearchInstance = initOptions.instantSearchInstance;
13427
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
13591
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
13428
13592
  instantSearchInstance: instantSearchInstance
13429
13593
  }), true);
13430
13594
  },
13431
13595
  render: function render(renderOptions) {
13432
13596
  var instantSearchInstance = renderOptions.instantSearchInstance;
13433
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(renderOptions)), {}, {
13597
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(renderOptions)), {}, {
13434
13598
  instantSearchInstance: instantSearchInstance
13435
13599
  }), false);
13436
13600
  },
@@ -13438,7 +13602,7 @@
13438
13602
  unmountFn();
13439
13603
  },
13440
13604
  getRenderState: function getRenderState(renderState, renderOptions) {
13441
- return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
13605
+ return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
13442
13606
  clearRefinements: this.getWidgetRenderState(renderOptions)
13443
13607
  });
13444
13608
  },
@@ -13524,14 +13688,14 @@
13524
13688
  return useConnector(connectClearRefinements, props, additionalWidgetProperties);
13525
13689
  }
13526
13690
 
13527
- function _typeof$s(obj) {
13691
+ function _typeof$t(obj) {
13528
13692
  "@babel/helpers - typeof";
13529
13693
 
13530
- return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13694
+ return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13531
13695
  return typeof obj;
13532
13696
  } : function (obj) {
13533
13697
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13534
- }, _typeof$s(obj);
13698
+ }, _typeof$t(obj);
13535
13699
  }
13536
13700
  function _toConsumableArray$4(arr) {
13537
13701
  return _arrayWithoutHoles$4(arr) || _iterableToArray$4(arr) || _unsupportedIterableToArray$b(arr) || _nonIterableSpread$4();
@@ -13558,7 +13722,7 @@
13558
13722
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13559
13723
  return arr2;
13560
13724
  }
13561
- function ownKeys$m(object, enumerableOnly) {
13725
+ function ownKeys$n(object, enumerableOnly) {
13562
13726
  var keys = Object.keys(object);
13563
13727
  if (Object.getOwnPropertySymbols) {
13564
13728
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13568,19 +13732,19 @@
13568
13732
  }
13569
13733
  return keys;
13570
13734
  }
13571
- function _objectSpread$m(target) {
13735
+ function _objectSpread$n(target) {
13572
13736
  for (var i = 1; i < arguments.length; i++) {
13573
13737
  var source = null != arguments[i] ? arguments[i] : {};
13574
- i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
13575
- _defineProperty$n(target, key, source[key]);
13576
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
13738
+ i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
13739
+ _defineProperty$o(target, key, source[key]);
13740
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
13577
13741
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13578
13742
  });
13579
13743
  }
13580
13744
  return target;
13581
13745
  }
13582
- function _defineProperty$n(obj, key, value) {
13583
- key = _toPropertyKey$n(key);
13746
+ function _defineProperty$o(obj, key, value) {
13747
+ key = _toPropertyKey$o(key);
13584
13748
  if (key in obj) {
13585
13749
  Object.defineProperty(obj, key, {
13586
13750
  value: value,
@@ -13593,16 +13757,16 @@
13593
13757
  }
13594
13758
  return obj;
13595
13759
  }
13596
- function _toPropertyKey$n(arg) {
13597
- var key = _toPrimitive$n(arg, "string");
13598
- return _typeof$s(key) === "symbol" ? key : String(key);
13760
+ function _toPropertyKey$o(arg) {
13761
+ var key = _toPrimitive$o(arg, "string");
13762
+ return _typeof$t(key) === "symbol" ? key : String(key);
13599
13763
  }
13600
- function _toPrimitive$n(input, hint) {
13601
- if (_typeof$s(input) !== "object" || input === null) return input;
13764
+ function _toPrimitive$o(input, hint) {
13765
+ if (_typeof$t(input) !== "object" || input === null) return input;
13602
13766
  var prim = input[Symbol.toPrimitive];
13603
13767
  if (prim !== undefined) {
13604
13768
  var res = prim.call(input, hint || "default");
13605
- if (_typeof$s(res) !== "object") return res;
13769
+ if (_typeof$t(res) !== "object") return res;
13606
13770
  throw new TypeError("@@toPrimitive must return a primitive value.");
13607
13771
  }
13608
13772
  return (hint === "string" ? String : Number)(input);
@@ -13630,13 +13794,13 @@
13630
13794
  $$type: 'ais.currentRefinements',
13631
13795
  init: function init(initOptions) {
13632
13796
  var instantSearchInstance = initOptions.instantSearchInstance;
13633
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
13797
+ renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
13634
13798
  instantSearchInstance: instantSearchInstance
13635
13799
  }), true);
13636
13800
  },
13637
13801
  render: function render(renderOptions) {
13638
13802
  var instantSearchInstance = renderOptions.instantSearchInstance;
13639
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(renderOptions)), {}, {
13803
+ renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(renderOptions)), {}, {
13640
13804
  instantSearchInstance: instantSearchInstance
13641
13805
  }), false);
13642
13806
  },
@@ -13644,7 +13808,7 @@
13644
13808
  unmountFn();
13645
13809
  },
13646
13810
  getRenderState: function getRenderState(renderState, renderOptions) {
13647
- return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
13811
+ return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
13648
13812
  currentRefinements: this.getWidgetRenderState(renderOptions)
13649
13813
  });
13650
13814
  },
@@ -13795,16 +13959,16 @@
13795
13959
  return useConnector(connectCurrentRefinements, props, additionalWidgetProperties);
13796
13960
  }
13797
13961
 
13798
- function _typeof$t(obj) {
13962
+ function _typeof$u(obj) {
13799
13963
  "@babel/helpers - typeof";
13800
13964
 
13801
- return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13965
+ return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13802
13966
  return typeof obj;
13803
13967
  } : function (obj) {
13804
13968
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13805
- }, _typeof$t(obj);
13969
+ }, _typeof$u(obj);
13806
13970
  }
13807
- function ownKeys$n(object, enumerableOnly) {
13971
+ function ownKeys$o(object, enumerableOnly) {
13808
13972
  var keys = Object.keys(object);
13809
13973
  if (Object.getOwnPropertySymbols) {
13810
13974
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13814,19 +13978,19 @@
13814
13978
  }
13815
13979
  return keys;
13816
13980
  }
13817
- function _objectSpread$n(target) {
13981
+ function _objectSpread$o(target) {
13818
13982
  for (var i = 1; i < arguments.length; i++) {
13819
13983
  var source = null != arguments[i] ? arguments[i] : {};
13820
- i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
13821
- _defineProperty$o(target, key, source[key]);
13822
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
13984
+ i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
13985
+ _defineProperty$p(target, key, source[key]);
13986
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
13823
13987
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13824
13988
  });
13825
13989
  }
13826
13990
  return target;
13827
13991
  }
13828
- function _defineProperty$o(obj, key, value) {
13829
- key = _toPropertyKey$o(key);
13992
+ function _defineProperty$p(obj, key, value) {
13993
+ key = _toPropertyKey$p(key);
13830
13994
  if (key in obj) {
13831
13995
  Object.defineProperty(obj, key, {
13832
13996
  value: value,
@@ -13839,16 +14003,16 @@
13839
14003
  }
13840
14004
  return obj;
13841
14005
  }
13842
- function _toPropertyKey$o(arg) {
13843
- var key = _toPrimitive$o(arg, "string");
13844
- return _typeof$t(key) === "symbol" ? key : String(key);
14006
+ function _toPropertyKey$p(arg) {
14007
+ var key = _toPrimitive$p(arg, "string");
14008
+ return _typeof$u(key) === "symbol" ? key : String(key);
13845
14009
  }
13846
- function _toPrimitive$o(input, hint) {
13847
- if (_typeof$t(input) !== "object" || input === null) return input;
14010
+ function _toPrimitive$p(input, hint) {
14011
+ if (_typeof$u(input) !== "object" || input === null) return input;
13848
14012
  var prim = input[Symbol.toPrimitive];
13849
14013
  if (prim !== undefined) {
13850
14014
  var res = prim.call(input, hint || "default");
13851
- if (_typeof$t(res) !== "object") return res;
14015
+ if (_typeof$u(res) !== "object") return res;
13852
14016
  throw new TypeError("@@toPrimitive must return a primitive value.");
13853
14017
  }
13854
14018
  return (hint === "string" ? String : Number)(input);
@@ -13958,7 +14122,7 @@
13958
14122
  var isFirstRendering = true;
13959
14123
  widgetState.internalToggleRefineOnMapMove = createInternalToggleRefinementOnMapMove(initArgs, noop$1);
13960
14124
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(initArgs, noop$1);
13961
- renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initArgs)), {}, {
14125
+ renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initArgs)), {}, {
13962
14126
  instantSearchInstance: instantSearchInstance
13963
14127
  }), isFirstRendering);
13964
14128
  },
@@ -13980,7 +14144,7 @@
13980
14144
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(renderArgs, this.render.bind(this));
13981
14145
  var widgetRenderState = this.getWidgetRenderState(renderArgs);
13982
14146
  sendEvent('view:internal', widgetRenderState.items);
13983
- renderFn(_objectSpread$n(_objectSpread$n({}, widgetRenderState), {}, {
14147
+ renderFn(_objectSpread$o(_objectSpread$o({}, widgetRenderState), {}, {
13984
14148
  instantSearchInstance: instantSearchInstance
13985
14149
  }), isFirstRendering);
13986
14150
  },
@@ -14017,7 +14181,7 @@
14017
14181
  };
14018
14182
  },
14019
14183
  getRenderState: function getRenderState(renderState, renderOptions) {
14020
- return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
14184
+ return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
14021
14185
  geoSearch: this.getWidgetRenderState(renderOptions)
14022
14186
  });
14023
14187
  },
@@ -14032,7 +14196,7 @@
14032
14196
  if (!boundingBox || uiState && uiState.geoSearch && uiState.geoSearch.boundingBox === boundingBox) {
14033
14197
  return uiState;
14034
14198
  }
14035
- return _objectSpread$n(_objectSpread$n({}, uiState), {}, {
14199
+ return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
14036
14200
  geoSearch: {
14037
14201
  boundingBox: boundingBox
14038
14202
  }
@@ -14053,17 +14217,17 @@
14053
14217
  return useConnector(connectGeoSearch, props, additionalWidgetProperties);
14054
14218
  }
14055
14219
 
14056
- function _typeof$u(obj) {
14220
+ function _typeof$v(obj) {
14057
14221
  "@babel/helpers - typeof";
14058
14222
 
14059
- return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14223
+ return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14060
14224
  return typeof obj;
14061
14225
  } : function (obj) {
14062
14226
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14063
- }, _typeof$u(obj);
14227
+ }, _typeof$v(obj);
14064
14228
  }
14065
14229
  var _excluded$8 = ["name", "escapedValue", "data", "path"];
14066
- function ownKeys$o(object, enumerableOnly) {
14230
+ function ownKeys$p(object, enumerableOnly) {
14067
14231
  var keys = Object.keys(object);
14068
14232
  if (Object.getOwnPropertySymbols) {
14069
14233
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14073,19 +14237,19 @@
14073
14237
  }
14074
14238
  return keys;
14075
14239
  }
14076
- function _objectSpread$o(target) {
14240
+ function _objectSpread$p(target) {
14077
14241
  for (var i = 1; i < arguments.length; i++) {
14078
14242
  var source = null != arguments[i] ? arguments[i] : {};
14079
- i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
14080
- _defineProperty$p(target, key, source[key]);
14081
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
14243
+ i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14244
+ _defineProperty$q(target, key, source[key]);
14245
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
14082
14246
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14083
14247
  });
14084
14248
  }
14085
14249
  return target;
14086
14250
  }
14087
- function _defineProperty$p(obj, key, value) {
14088
- key = _toPropertyKey$p(key);
14251
+ function _defineProperty$q(obj, key, value) {
14252
+ key = _toPropertyKey$q(key);
14089
14253
  if (key in obj) {
14090
14254
  Object.defineProperty(obj, key, {
14091
14255
  value: value,
@@ -14098,16 +14262,16 @@
14098
14262
  }
14099
14263
  return obj;
14100
14264
  }
14101
- function _toPropertyKey$p(arg) {
14102
- var key = _toPrimitive$p(arg, "string");
14103
- return _typeof$u(key) === "symbol" ? key : String(key);
14265
+ function _toPropertyKey$q(arg) {
14266
+ var key = _toPrimitive$q(arg, "string");
14267
+ return _typeof$v(key) === "symbol" ? key : String(key);
14104
14268
  }
14105
- function _toPrimitive$p(input, hint) {
14106
- if (_typeof$u(input) !== "object" || input === null) return input;
14269
+ function _toPrimitive$q(input, hint) {
14270
+ if (_typeof$v(input) !== "object" || input === null) return input;
14107
14271
  var prim = input[Symbol.toPrimitive];
14108
14272
  if (prim !== undefined) {
14109
14273
  var res = prim.call(input, hint || "default");
14110
- if (_typeof$u(res) !== "object") return res;
14274
+ if (_typeof$v(res) !== "object") return res;
14111
14275
  throw new TypeError("@@toPrimitive must return a primitive value.");
14112
14276
  }
14113
14277
  return (hint === "string" ? String : Number)(input);
@@ -14267,7 +14431,7 @@
14267
14431
  data = _ref2.data,
14268
14432
  path = _ref2.path,
14269
14433
  subValue = _objectWithoutProperties$8(_ref2, _excluded$8);
14270
- var item = _objectSpread$o(_objectSpread$o({}, subValue), {}, {
14434
+ var item = _objectSpread$p(_objectSpread$p({}, subValue), {}, {
14271
14435
  value: value,
14272
14436
  label: label,
14273
14437
  data: null
@@ -14282,14 +14446,14 @@
14282
14446
  $$type: 'ais.hierarchicalMenu',
14283
14447
  init: function init(initOptions) {
14284
14448
  var instantSearchInstance = initOptions.instantSearchInstance;
14285
- renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initOptions)), {}, {
14449
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
14286
14450
  instantSearchInstance: instantSearchInstance
14287
14451
  }), true);
14288
14452
  },
14289
14453
  render: function render(renderOptions) {
14290
14454
  var instantSearchInstance = renderOptions.instantSearchInstance;
14291
14455
  toggleShowMore = createToggleShowMore(renderOptions, this);
14292
- renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(renderOptions)), {}, {
14456
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(renderOptions)), {}, {
14293
14457
  instantSearchInstance: instantSearchInstance
14294
14458
  }), false);
14295
14459
  },
@@ -14299,8 +14463,8 @@
14299
14463
  return state.removeHierarchicalFacet(hierarchicalFacetName).setQueryParameter('maxValuesPerFacet', undefined);
14300
14464
  },
14301
14465
  getRenderState: function getRenderState(renderState, renderOptions) {
14302
- return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
14303
- hierarchicalMenu: _objectSpread$o(_objectSpread$o({}, renderState.hierarchicalMenu), {}, _defineProperty$p({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
14466
+ return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
14467
+ hierarchicalMenu: _objectSpread$p(_objectSpread$p({}, renderState.hierarchicalMenu), {}, _defineProperty$q({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
14304
14468
  });
14305
14469
  },
14306
14470
  getWidgetRenderState: function getWidgetRenderState(_ref4) {
@@ -14376,8 +14540,8 @@
14376
14540
  if (!path.length) {
14377
14541
  return uiState;
14378
14542
  }
14379
- return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
14380
- hierarchicalMenu: _objectSpread$o(_objectSpread$o({}, uiState.hierarchicalMenu), {}, _defineProperty$p({}, hierarchicalFacetName, path))
14543
+ return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
14544
+ hierarchicalMenu: _objectSpread$p(_objectSpread$p({}, uiState.hierarchicalMenu), {}, _defineProperty$q({}, hierarchicalFacetName, path))
14381
14545
  });
14382
14546
  },
14383
14547
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -14401,7 +14565,7 @@
14401
14565
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
14402
14566
  if (!values) {
14403
14567
  return withMaxValuesPerFacet.setQueryParameters({
14404
- hierarchicalFacetsRefinements: _objectSpread$o(_objectSpread$o({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$p({}, hierarchicalFacetName, []))
14568
+ hierarchicalFacetsRefinements: _objectSpread$p(_objectSpread$p({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$q({}, hierarchicalFacetName, []))
14405
14569
  });
14406
14570
  }
14407
14571
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -14414,16 +14578,16 @@
14414
14578
  return useConnector(connectHierarchicalMenu, props, additionalWidgetProperties);
14415
14579
  }
14416
14580
 
14417
- function _typeof$v(obj) {
14581
+ function _typeof$w(obj) {
14418
14582
  "@babel/helpers - typeof";
14419
14583
 
14420
- return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14584
+ return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14421
14585
  return typeof obj;
14422
14586
  } : function (obj) {
14423
14587
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14424
- }, _typeof$v(obj);
14588
+ }, _typeof$w(obj);
14425
14589
  }
14426
- function ownKeys$p(object, enumerableOnly) {
14590
+ function ownKeys$q(object, enumerableOnly) {
14427
14591
  var keys = Object.keys(object);
14428
14592
  if (Object.getOwnPropertySymbols) {
14429
14593
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14433,19 +14597,19 @@
14433
14597
  }
14434
14598
  return keys;
14435
14599
  }
14436
- function _objectSpread$p(target) {
14600
+ function _objectSpread$q(target) {
14437
14601
  for (var i = 1; i < arguments.length; i++) {
14438
14602
  var source = null != arguments[i] ? arguments[i] : {};
14439
- i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14440
- _defineProperty$q(target, key, source[key]);
14441
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
14603
+ i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
14604
+ _defineProperty$r(target, key, source[key]);
14605
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
14442
14606
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14443
14607
  });
14444
14608
  }
14445
14609
  return target;
14446
14610
  }
14447
- function _defineProperty$q(obj, key, value) {
14448
- key = _toPropertyKey$q(key);
14611
+ function _defineProperty$r(obj, key, value) {
14612
+ key = _toPropertyKey$r(key);
14449
14613
  if (key in obj) {
14450
14614
  Object.defineProperty(obj, key, {
14451
14615
  value: value,
@@ -14458,16 +14622,16 @@
14458
14622
  }
14459
14623
  return obj;
14460
14624
  }
14461
- function _toPropertyKey$q(arg) {
14462
- var key = _toPrimitive$q(arg, "string");
14463
- return _typeof$v(key) === "symbol" ? key : String(key);
14625
+ function _toPropertyKey$r(arg) {
14626
+ var key = _toPrimitive$r(arg, "string");
14627
+ return _typeof$w(key) === "symbol" ? key : String(key);
14464
14628
  }
14465
- function _toPrimitive$q(input, hint) {
14466
- if (_typeof$v(input) !== "object" || input === null) return input;
14629
+ function _toPrimitive$r(input, hint) {
14630
+ if (_typeof$w(input) !== "object" || input === null) return input;
14467
14631
  var prim = input[Symbol.toPrimitive];
14468
14632
  if (prim !== undefined) {
14469
14633
  var res = prim.call(input, hint || "default");
14470
- if (_typeof$v(res) !== "object") return res;
14634
+ if (_typeof$w(res) !== "object") return res;
14471
14635
  throw new TypeError("@@toPrimitive must return a primitive value.");
14472
14636
  }
14473
14637
  return (hint === "string" ? String : Number)(input);
@@ -14492,19 +14656,19 @@
14492
14656
  return {
14493
14657
  $$type: 'ais.hits',
14494
14658
  init: function init(initOptions) {
14495
- renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
14659
+ renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
14496
14660
  instantSearchInstance: initOptions.instantSearchInstance
14497
14661
  }), true);
14498
14662
  },
14499
14663
  render: function render(renderOptions) {
14500
14664
  var renderState = this.getWidgetRenderState(renderOptions);
14501
- renderFn(_objectSpread$p(_objectSpread$p({}, renderState), {}, {
14665
+ renderFn(_objectSpread$q(_objectSpread$q({}, renderState), {}, {
14502
14666
  instantSearchInstance: renderOptions.instantSearchInstance
14503
14667
  }), false);
14504
14668
  renderState.sendEvent('view:internal', renderState.hits);
14505
14669
  },
14506
14670
  getRenderState: function getRenderState(renderState, renderOptions) {
14507
- return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
14671
+ return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
14508
14672
  hits: this.getWidgetRenderState(renderOptions)
14509
14673
  });
14510
14674
  },
@@ -14558,7 +14722,7 @@
14558
14722
  return state;
14559
14723
  }
14560
14724
  return state.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
14561
- return _objectSpread$p(_objectSpread$p({}, acc), {}, _defineProperty$q({}, key, undefined));
14725
+ return _objectSpread$q(_objectSpread$q({}, acc), {}, _defineProperty$r({}, key, undefined));
14562
14726
  }, {}));
14563
14727
  },
14564
14728
  getWidgetSearchParameters: function getWidgetSearchParameters(state) {
@@ -14575,14 +14739,14 @@
14575
14739
  return useConnector(connectHits, props, additionalWidgetProperties);
14576
14740
  }
14577
14741
 
14578
- function _typeof$w(obj) {
14742
+ function _typeof$x(obj) {
14579
14743
  "@babel/helpers - typeof";
14580
14744
 
14581
- return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14745
+ return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14582
14746
  return typeof obj;
14583
14747
  } : function (obj) {
14584
14748
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14585
- }, _typeof$w(obj);
14749
+ }, _typeof$x(obj);
14586
14750
  }
14587
14751
  function _toConsumableArray$5(arr) {
14588
14752
  return _arrayWithoutHoles$5(arr) || _iterableToArray$5(arr) || _unsupportedIterableToArray$d(arr) || _nonIterableSpread$5();
@@ -14609,7 +14773,7 @@
14609
14773
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
14610
14774
  return arr2;
14611
14775
  }
14612
- function ownKeys$q(object, enumerableOnly) {
14776
+ function ownKeys$r(object, enumerableOnly) {
14613
14777
  var keys = Object.keys(object);
14614
14778
  if (Object.getOwnPropertySymbols) {
14615
14779
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14619,19 +14783,19 @@
14619
14783
  }
14620
14784
  return keys;
14621
14785
  }
14622
- function _objectSpread$q(target) {
14786
+ function _objectSpread$r(target) {
14623
14787
  for (var i = 1; i < arguments.length; i++) {
14624
14788
  var source = null != arguments[i] ? arguments[i] : {};
14625
- i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
14626
- _defineProperty$r(target, key, source[key]);
14627
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
14789
+ i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
14790
+ _defineProperty$s(target, key, source[key]);
14791
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
14628
14792
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14629
14793
  });
14630
14794
  }
14631
14795
  return target;
14632
14796
  }
14633
- function _defineProperty$r(obj, key, value) {
14634
- key = _toPropertyKey$r(key);
14797
+ function _defineProperty$s(obj, key, value) {
14798
+ key = _toPropertyKey$s(key);
14635
14799
  if (key in obj) {
14636
14800
  Object.defineProperty(obj, key, {
14637
14801
  value: value,
@@ -14644,16 +14808,16 @@
14644
14808
  }
14645
14809
  return obj;
14646
14810
  }
14647
- function _toPropertyKey$r(arg) {
14648
- var key = _toPrimitive$r(arg, "string");
14649
- return _typeof$w(key) === "symbol" ? key : String(key);
14811
+ function _toPropertyKey$s(arg) {
14812
+ var key = _toPrimitive$s(arg, "string");
14813
+ return _typeof$x(key) === "symbol" ? key : String(key);
14650
14814
  }
14651
- function _toPrimitive$r(input, hint) {
14652
- if (_typeof$w(input) !== "object" || input === null) return input;
14815
+ function _toPrimitive$s(input, hint) {
14816
+ if (_typeof$x(input) !== "object" || input === null) return input;
14653
14817
  var prim = input[Symbol.toPrimitive];
14654
14818
  if (prim !== undefined) {
14655
14819
  var res = prim.call(input, hint || "default");
14656
- if (_typeof$w(res) !== "object") return res;
14820
+ if (_typeof$x(res) !== "object") return res;
14657
14821
  throw new TypeError("@@toPrimitive must return a primitive value.");
14658
14822
  }
14659
14823
  return (hint === "string" ? String : Number)(input);
@@ -14689,7 +14853,7 @@
14689
14853
  var normalizeItems = function normalizeItems(_ref2) {
14690
14854
  var hitsPerPage = _ref2.hitsPerPage;
14691
14855
  return items.map(function (item) {
14692
- return _objectSpread$q(_objectSpread$q({}, item), {}, {
14856
+ return _objectSpread$r(_objectSpread$r({}, item), {}, {
14693
14857
  isRefined: Number(item.value) === Number(hitsPerPage)
14694
14858
  });
14695
14859
  });
@@ -14731,13 +14895,13 @@
14731
14895
  label: ''
14732
14896
  }].concat(_toConsumableArray$5(items));
14733
14897
  }
14734
- renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
14898
+ renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
14735
14899
  instantSearchInstance: instantSearchInstance
14736
14900
  }), true);
14737
14901
  },
14738
14902
  render: function render(initOptions) {
14739
14903
  var instantSearchInstance = initOptions.instantSearchInstance;
14740
- renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
14904
+ renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
14741
14905
  instantSearchInstance: instantSearchInstance
14742
14906
  }), false);
14743
14907
  },
@@ -14747,7 +14911,7 @@
14747
14911
  return state.setQueryParameter('hitsPerPage', undefined);
14748
14912
  },
14749
14913
  getRenderState: function getRenderState(renderState, renderOptions) {
14750
- return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
14914
+ return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
14751
14915
  hitsPerPage: this.getWidgetRenderState(renderOptions)
14752
14916
  });
14753
14917
  },
@@ -14779,7 +14943,7 @@
14779
14943
  if (hitsPerPage === undefined || hitsPerPage === defaultItem.value) {
14780
14944
  return uiState;
14781
14945
  }
14782
- return _objectSpread$q(_objectSpread$q({}, uiState), {}, {
14946
+ return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
14783
14947
  hitsPerPage: hitsPerPage
14784
14948
  });
14785
14949
  },
@@ -14797,18 +14961,18 @@
14797
14961
  return useConnector(connectHitsPerPage, props, additionalWidgetProperties);
14798
14962
  }
14799
14963
 
14800
- function _typeof$x(obj) {
14964
+ function _typeof$y(obj) {
14801
14965
  "@babel/helpers - typeof";
14802
14966
 
14803
- return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14967
+ return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14804
14968
  return typeof obj;
14805
14969
  } : function (obj) {
14806
14970
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14807
- }, _typeof$x(obj);
14971
+ }, _typeof$y(obj);
14808
14972
  }
14809
14973
  var _excluded$9 = ["page"],
14810
14974
  _excluded2$1 = ["clickAnalytics", "userToken"];
14811
- function ownKeys$r(object, enumerableOnly) {
14975
+ function ownKeys$s(object, enumerableOnly) {
14812
14976
  var keys = Object.keys(object);
14813
14977
  if (Object.getOwnPropertySymbols) {
14814
14978
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14818,19 +14982,19 @@
14818
14982
  }
14819
14983
  return keys;
14820
14984
  }
14821
- function _objectSpread$r(target) {
14985
+ function _objectSpread$s(target) {
14822
14986
  for (var i = 1; i < arguments.length; i++) {
14823
14987
  var source = null != arguments[i] ? arguments[i] : {};
14824
- i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
14825
- _defineProperty$s(target, key, source[key]);
14826
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
14988
+ i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
14989
+ _defineProperty$t(target, key, source[key]);
14990
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
14827
14991
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14828
14992
  });
14829
14993
  }
14830
14994
  return target;
14831
14995
  }
14832
- function _defineProperty$s(obj, key, value) {
14833
- key = _toPropertyKey$s(key);
14996
+ function _defineProperty$t(obj, key, value) {
14997
+ key = _toPropertyKey$t(key);
14834
14998
  if (key in obj) {
14835
14999
  Object.defineProperty(obj, key, {
14836
15000
  value: value,
@@ -14843,16 +15007,16 @@
14843
15007
  }
14844
15008
  return obj;
14845
15009
  }
14846
- function _toPropertyKey$s(arg) {
14847
- var key = _toPrimitive$s(arg, "string");
14848
- return _typeof$x(key) === "symbol" ? key : String(key);
15010
+ function _toPropertyKey$t(arg) {
15011
+ var key = _toPrimitive$t(arg, "string");
15012
+ return _typeof$y(key) === "symbol" ? key : String(key);
14849
15013
  }
14850
- function _toPrimitive$s(input, hint) {
14851
- if (_typeof$x(input) !== "object" || input === null) return input;
15014
+ function _toPrimitive$t(input, hint) {
15015
+ if (_typeof$y(input) !== "object" || input === null) return input;
14852
15016
  var prim = input[Symbol.toPrimitive];
14853
15017
  if (prim !== undefined) {
14854
15018
  var res = prim.call(input, hint || "default");
14855
- if (_typeof$x(res) !== "object") return res;
15019
+ if (_typeof$y(res) !== "object") return res;
14856
15020
  throw new TypeError("@@toPrimitive must return a primitive value.");
14857
15021
  }
14858
15022
  return (hint === "string" ? String : Number)(input);
@@ -14993,7 +15157,7 @@
14993
15157
  return function () {
14994
15158
  // Using the helper's `overrideStateWithoutTriggeringChangeEvent` method
14995
15159
  // avoid updating the browser URL when the user displays the previous page.
14996
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$r(_objectSpread$r({}, helper.state), {}, {
15160
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$s(_objectSpread$s({}, helper.state), {}, {
14997
15161
  page: getFirstReceivedPage(helper.state, cache.read({
14998
15162
  state: normalizeState(helper.state)
14999
15163
  }) || {}) - 1
@@ -15010,20 +15174,20 @@
15010
15174
  return {
15011
15175
  $$type: 'ais.infiniteHits',
15012
15176
  init: function init(initOptions) {
15013
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
15177
+ renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
15014
15178
  instantSearchInstance: initOptions.instantSearchInstance
15015
15179
  }), true);
15016
15180
  },
15017
15181
  render: function render(renderOptions) {
15018
15182
  var instantSearchInstance = renderOptions.instantSearchInstance;
15019
15183
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
15020
- renderFn(_objectSpread$r(_objectSpread$r({}, widgetRenderState), {}, {
15184
+ renderFn(_objectSpread$s(_objectSpread$s({}, widgetRenderState), {}, {
15021
15185
  instantSearchInstance: instantSearchInstance
15022
15186
  }), false);
15023
15187
  sendEvent('view:internal', widgetRenderState.currentPageHits);
15024
15188
  },
15025
15189
  getRenderState: function getRenderState(renderState, renderOptions) {
15026
- return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
15190
+ return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
15027
15191
  infiniteHits: this.getWidgetRenderState(renderOptions)
15028
15192
  });
15029
15193
  },
@@ -15119,7 +15283,7 @@
15119
15283
  return stateWithoutPage;
15120
15284
  }
15121
15285
  return stateWithoutPage.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
15122
- return _objectSpread$r(_objectSpread$r({}, acc), {}, _defineProperty$s({}, key, undefined));
15286
+ return _objectSpread$s(_objectSpread$s({}, acc), {}, _defineProperty$t({}, key, undefined));
15123
15287
  }, {}));
15124
15288
  },
15125
15289
  getWidgetUiState: function getWidgetUiState(uiState, _ref9) {
@@ -15130,7 +15294,7 @@
15130
15294
  // because we don't want `page=1` in the URL
15131
15295
  return uiState;
15132
15296
  }
15133
- return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
15297
+ return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
15134
15298
  // The page in the UI state is incremented by one
15135
15299
  // to expose the user value (not `0`).
15136
15300
  page: page + 1
@@ -15157,14 +15321,14 @@
15157
15321
  }
15158
15322
 
15159
15323
  var _excluded$a = ["name", "escapedValue", "path"];
15160
- function _typeof$y(obj) {
15324
+ function _typeof$z(obj) {
15161
15325
  "@babel/helpers - typeof";
15162
15326
 
15163
- return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15327
+ return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15164
15328
  return typeof obj;
15165
15329
  } : function (obj) {
15166
15330
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15167
- }, _typeof$y(obj);
15331
+ }, _typeof$z(obj);
15168
15332
  }
15169
15333
  function _objectWithoutProperties$a(source, excluded) {
15170
15334
  if (source == null) return {};
@@ -15242,7 +15406,7 @@
15242
15406
  function _arrayWithHoles$9(arr) {
15243
15407
  if (Array.isArray(arr)) return arr;
15244
15408
  }
15245
- function ownKeys$s(object, enumerableOnly) {
15409
+ function ownKeys$t(object, enumerableOnly) {
15246
15410
  var keys = Object.keys(object);
15247
15411
  if (Object.getOwnPropertySymbols) {
15248
15412
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15252,19 +15416,19 @@
15252
15416
  }
15253
15417
  return keys;
15254
15418
  }
15255
- function _objectSpread$s(target) {
15419
+ function _objectSpread$t(target) {
15256
15420
  for (var i = 1; i < arguments.length; i++) {
15257
15421
  var source = null != arguments[i] ? arguments[i] : {};
15258
- i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
15259
- _defineProperty$t(target, key, source[key]);
15260
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
15422
+ i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
15423
+ _defineProperty$u(target, key, source[key]);
15424
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
15261
15425
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15262
15426
  });
15263
15427
  }
15264
15428
  return target;
15265
15429
  }
15266
- function _defineProperty$t(obj, key, value) {
15267
- key = _toPropertyKey$t(key);
15430
+ function _defineProperty$u(obj, key, value) {
15431
+ key = _toPropertyKey$u(key);
15268
15432
  if (key in obj) {
15269
15433
  Object.defineProperty(obj, key, {
15270
15434
  value: value,
@@ -15277,16 +15441,16 @@
15277
15441
  }
15278
15442
  return obj;
15279
15443
  }
15280
- function _toPropertyKey$t(arg) {
15281
- var key = _toPrimitive$t(arg, "string");
15282
- return _typeof$y(key) === "symbol" ? key : String(key);
15444
+ function _toPropertyKey$u(arg) {
15445
+ var key = _toPrimitive$u(arg, "string");
15446
+ return _typeof$z(key) === "symbol" ? key : String(key);
15283
15447
  }
15284
- function _toPrimitive$t(input, hint) {
15285
- if (_typeof$y(input) !== "object" || input === null) return input;
15448
+ function _toPrimitive$u(input, hint) {
15449
+ if (_typeof$z(input) !== "object" || input === null) return input;
15286
15450
  var prim = input[Symbol.toPrimitive];
15287
15451
  if (prim !== undefined) {
15288
15452
  var res = prim.call(input, hint || "default");
15289
- if (_typeof$y(res) !== "object") return res;
15453
+ if (_typeof$z(res) !== "object") return res;
15290
15454
  throw new TypeError("@@toPrimitive must return a primitive value.");
15291
15455
  }
15292
15456
  return (hint === "string" ? String : Number)(input);
@@ -15353,13 +15517,13 @@
15353
15517
  $$type: 'ais.menu',
15354
15518
  init: function init(initOptions) {
15355
15519
  var instantSearchInstance = initOptions.instantSearchInstance;
15356
- renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
15520
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
15357
15521
  instantSearchInstance: instantSearchInstance
15358
15522
  }), true);
15359
15523
  },
15360
15524
  render: function render(renderOptions) {
15361
15525
  var instantSearchInstance = renderOptions.instantSearchInstance;
15362
- renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(renderOptions)), {}, {
15526
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
15363
15527
  instantSearchInstance: instantSearchInstance
15364
15528
  }), false);
15365
15529
  },
@@ -15369,8 +15533,8 @@
15369
15533
  return state.removeHierarchicalFacet(attribute).setQueryParameter('maxValuesPerFacet', undefined);
15370
15534
  },
15371
15535
  getRenderState: function getRenderState(renderState, renderOptions) {
15372
- return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
15373
- menu: _objectSpread$s(_objectSpread$s({}, renderState.menu), {}, _defineProperty$t({}, attribute, this.getWidgetRenderState(renderOptions)))
15536
+ return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
15537
+ menu: _objectSpread$t(_objectSpread$t({}, renderState.menu), {}, _defineProperty$u({}, attribute, this.getWidgetRenderState(renderOptions)))
15374
15538
  });
15375
15539
  },
15376
15540
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -15423,7 +15587,7 @@
15423
15587
  value = _ref3.escapedValue,
15424
15588
  path = _ref3.path,
15425
15589
  item = _objectWithoutProperties$a(_ref3, _excluded$a);
15426
- return _objectSpread$s(_objectSpread$s({}, item), {}, {
15590
+ return _objectSpread$t(_objectSpread$t({}, item), {}, {
15427
15591
  label: label,
15428
15592
  value: value
15429
15593
  });
@@ -15451,8 +15615,8 @@
15451
15615
  if (!value) {
15452
15616
  return uiState;
15453
15617
  }
15454
- return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
15455
- menu: _objectSpread$s(_objectSpread$s({}, uiState.menu), {}, _defineProperty$t({}, attribute, value))
15618
+ return _objectSpread$t(_objectSpread$t({}, uiState), {}, {
15619
+ menu: _objectSpread$t(_objectSpread$t({}, uiState.menu), {}, _defineProperty$u({}, attribute, value))
15456
15620
  });
15457
15621
  },
15458
15622
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref5) {
@@ -15470,7 +15634,7 @@
15470
15634
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
15471
15635
  if (!value) {
15472
15636
  return withMaxValuesPerFacet.setQueryParameters({
15473
- hierarchicalFacetsRefinements: _objectSpread$s(_objectSpread$s({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$t({}, attribute, []))
15637
+ hierarchicalFacetsRefinements: _objectSpread$t(_objectSpread$t({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$u({}, attribute, []))
15474
15638
  });
15475
15639
  }
15476
15640
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(attribute, value);
@@ -15483,14 +15647,14 @@
15483
15647
  return useConnector(connectMenu, props, additionalWidgetProperties);
15484
15648
  }
15485
15649
 
15486
- function _typeof$z(obj) {
15650
+ function _typeof$A(obj) {
15487
15651
  "@babel/helpers - typeof";
15488
15652
 
15489
- return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15653
+ return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15490
15654
  return typeof obj;
15491
15655
  } : function (obj) {
15492
15656
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15493
- }, _typeof$z(obj);
15657
+ }, _typeof$A(obj);
15494
15658
  }
15495
15659
  function _createForOfIteratorHelper(o, allowArrayLike) {
15496
15660
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -15592,7 +15756,7 @@
15592
15756
  function _arrayWithHoles$a(arr) {
15593
15757
  if (Array.isArray(arr)) return arr;
15594
15758
  }
15595
- function ownKeys$t(object, enumerableOnly) {
15759
+ function ownKeys$u(object, enumerableOnly) {
15596
15760
  var keys = Object.keys(object);
15597
15761
  if (Object.getOwnPropertySymbols) {
15598
15762
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15602,19 +15766,19 @@
15602
15766
  }
15603
15767
  return keys;
15604
15768
  }
15605
- function _objectSpread$t(target) {
15769
+ function _objectSpread$u(target) {
15606
15770
  for (var i = 1; i < arguments.length; i++) {
15607
15771
  var source = null != arguments[i] ? arguments[i] : {};
15608
- i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
15609
- _defineProperty$u(target, key, source[key]);
15610
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
15772
+ i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
15773
+ _defineProperty$v(target, key, source[key]);
15774
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
15611
15775
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15612
15776
  });
15613
15777
  }
15614
15778
  return target;
15615
15779
  }
15616
- function _defineProperty$u(obj, key, value) {
15617
- key = _toPropertyKey$u(key);
15780
+ function _defineProperty$v(obj, key, value) {
15781
+ key = _toPropertyKey$v(key);
15618
15782
  if (key in obj) {
15619
15783
  Object.defineProperty(obj, key, {
15620
15784
  value: value,
@@ -15627,16 +15791,16 @@
15627
15791
  }
15628
15792
  return obj;
15629
15793
  }
15630
- function _toPropertyKey$u(arg) {
15631
- var key = _toPrimitive$u(arg, "string");
15632
- return _typeof$z(key) === "symbol" ? key : String(key);
15794
+ function _toPropertyKey$v(arg) {
15795
+ var key = _toPrimitive$v(arg, "string");
15796
+ return _typeof$A(key) === "symbol" ? key : String(key);
15633
15797
  }
15634
- function _toPrimitive$u(input, hint) {
15635
- if (_typeof$z(input) !== "object" || input === null) return input;
15798
+ function _toPrimitive$v(input, hint) {
15799
+ if (_typeof$A(input) !== "object" || input === null) return input;
15636
15800
  var prim = input[Symbol.toPrimitive];
15637
15801
  if (prim !== undefined) {
15638
15802
  var res = prim.call(input, hint || "default");
15639
- if (_typeof$z(res) !== "object") return res;
15803
+ if (_typeof$A(res) !== "object") return res;
15640
15804
  throw new TypeError("@@toPrimitive must return a primitive value.");
15641
15805
  }
15642
15806
  return (hint === "string" ? String : Number)(input);
@@ -15698,13 +15862,13 @@
15698
15862
  $$type: $$type$1,
15699
15863
  init: function init(initOptions) {
15700
15864
  var instantSearchInstance = initOptions.instantSearchInstance;
15701
- renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
15865
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
15702
15866
  instantSearchInstance: instantSearchInstance
15703
15867
  }), true);
15704
15868
  },
15705
15869
  render: function render(renderOptions) {
15706
15870
  var instantSearchInstance = renderOptions.instantSearchInstance;
15707
- renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
15871
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
15708
15872
  instantSearchInstance: instantSearchInstance
15709
15873
  }), false);
15710
15874
  },
@@ -15718,8 +15882,8 @@
15718
15882
  var values = searchParameters.getNumericRefinements(attribute);
15719
15883
  var equal = values['='] && values['='][0];
15720
15884
  if (equal || equal === 0) {
15721
- return _objectSpread$t(_objectSpread$t({}, uiState), {}, {
15722
- numericMenu: _objectSpread$t(_objectSpread$t({}, uiState.numericMenu), {}, _defineProperty$u({}, attribute, "".concat(values['='])))
15885
+ return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
15886
+ numericMenu: _objectSpread$u(_objectSpread$u({}, uiState.numericMenu), {}, _defineProperty$v({}, attribute, "".concat(values['='])))
15723
15887
  });
15724
15888
  }
15725
15889
  var min = values['>='] && values['>='][0] || '';
@@ -15727,8 +15891,8 @@
15727
15891
  if (min === '' && max === '') {
15728
15892
  return uiState;
15729
15893
  }
15730
- return _objectSpread$t(_objectSpread$t({}, uiState), {}, {
15731
- numericMenu: _objectSpread$t(_objectSpread$t({}, uiState.numericMenu), {}, _defineProperty$u({}, attribute, "".concat(min, ":").concat(max)))
15894
+ return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
15895
+ numericMenu: _objectSpread$u(_objectSpread$u({}, uiState.numericMenu), {}, _defineProperty$v({}, attribute, "".concat(min, ":").concat(max)))
15732
15896
  });
15733
15897
  },
15734
15898
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -15737,7 +15901,7 @@
15737
15901
  var withoutRefinements = searchParameters.clearRefinements(attribute);
15738
15902
  if (!value) {
15739
15903
  return withoutRefinements.setQueryParameters({
15740
- numericRefinements: _objectSpread$t(_objectSpread$t({}, withoutRefinements.numericRefinements), {}, _defineProperty$u({}, attribute, {}))
15904
+ numericRefinements: _objectSpread$u(_objectSpread$u({}, withoutRefinements.numericRefinements), {}, _defineProperty$v({}, attribute, {}))
15741
15905
  });
15742
15906
  }
15743
15907
  var isExact = value.indexOf(':') === -1;
@@ -15753,8 +15917,8 @@
15753
15917
  return withMaxRefinement;
15754
15918
  },
15755
15919
  getRenderState: function getRenderState(renderState, renderOptions) {
15756
- return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
15757
- numericMenu: _objectSpread$t(_objectSpread$t({}, renderState.numericMenu), {}, _defineProperty$u({}, attribute, this.getWidgetRenderState(renderOptions)))
15920
+ return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
15921
+ numericMenu: _objectSpread$u(_objectSpread$u({}, renderState.numericMenu), {}, _defineProperty$v({}, attribute, this.getWidgetRenderState(renderOptions)))
15758
15922
  });
15759
15923
  },
15760
15924
  getWidgetRenderState: function getWidgetRenderState(_ref7) {
@@ -15896,14 +16060,14 @@
15896
16060
  return useConnector(connectNumericMenu, props, additionalWidgetProperties);
15897
16061
  }
15898
16062
 
15899
- function _typeof$A(obj) {
16063
+ function _typeof$B(obj) {
15900
16064
  "@babel/helpers - typeof";
15901
16065
 
15902
- return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16066
+ return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15903
16067
  return typeof obj;
15904
16068
  } : function (obj) {
15905
16069
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15906
- }, _typeof$A(obj);
16070
+ }, _typeof$B(obj);
15907
16071
  }
15908
16072
  function _classCallCheck$2(instance, Constructor) {
15909
16073
  if (!(instance instanceof Constructor)) {
@@ -15916,7 +16080,7 @@
15916
16080
  descriptor.enumerable = descriptor.enumerable || false;
15917
16081
  descriptor.configurable = true;
15918
16082
  if ("value" in descriptor) descriptor.writable = true;
15919
- Object.defineProperty(target, _toPropertyKey$v(descriptor.key), descriptor);
16083
+ Object.defineProperty(target, _toPropertyKey$w(descriptor.key), descriptor);
15920
16084
  }
15921
16085
  }
15922
16086
  function _createClass$2(Constructor, protoProps, staticProps) {
@@ -15927,8 +16091,8 @@
15927
16091
  });
15928
16092
  return Constructor;
15929
16093
  }
15930
- function _defineProperty$v(obj, key, value) {
15931
- key = _toPropertyKey$v(key);
16094
+ function _defineProperty$w(obj, key, value) {
16095
+ key = _toPropertyKey$w(key);
15932
16096
  if (key in obj) {
15933
16097
  Object.defineProperty(obj, key, {
15934
16098
  value: value,
@@ -15941,16 +16105,16 @@
15941
16105
  }
15942
16106
  return obj;
15943
16107
  }
15944
- function _toPropertyKey$v(arg) {
15945
- var key = _toPrimitive$v(arg, "string");
15946
- return _typeof$A(key) === "symbol" ? key : String(key);
16108
+ function _toPropertyKey$w(arg) {
16109
+ var key = _toPrimitive$w(arg, "string");
16110
+ return _typeof$B(key) === "symbol" ? key : String(key);
15947
16111
  }
15948
- function _toPrimitive$v(input, hint) {
15949
- if (_typeof$A(input) !== "object" || input === null) return input;
16112
+ function _toPrimitive$w(input, hint) {
16113
+ if (_typeof$B(input) !== "object" || input === null) return input;
15950
16114
  var prim = input[Symbol.toPrimitive];
15951
16115
  if (prim !== undefined) {
15952
16116
  var res = prim.call(input, hint || "default");
15953
- if (_typeof$A(res) !== "object") return res;
16117
+ if (_typeof$B(res) !== "object") return res;
15954
16118
  throw new TypeError("@@toPrimitive must return a primitive value.");
15955
16119
  }
15956
16120
  return (hint === "string" ? String : Number)(input);
@@ -15958,9 +16122,9 @@
15958
16122
  var Paginator = /*#__PURE__*/function () {
15959
16123
  function Paginator(params) {
15960
16124
  _classCallCheck$2(this, Paginator);
15961
- _defineProperty$v(this, "currentPage", void 0);
15962
- _defineProperty$v(this, "total", void 0);
15963
- _defineProperty$v(this, "padding", void 0);
16125
+ _defineProperty$w(this, "currentPage", void 0);
16126
+ _defineProperty$w(this, "total", void 0);
16127
+ _defineProperty$w(this, "padding", void 0);
15964
16128
  this.currentPage = params.currentPage;
15965
16129
  this.total = params.total;
15966
16130
  this.padding = params.padding;
@@ -16017,16 +16181,16 @@
16017
16181
  return Paginator;
16018
16182
  }();
16019
16183
 
16020
- function _typeof$B(obj) {
16184
+ function _typeof$C(obj) {
16021
16185
  "@babel/helpers - typeof";
16022
16186
 
16023
- return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16187
+ return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16024
16188
  return typeof obj;
16025
16189
  } : function (obj) {
16026
16190
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16027
- }, _typeof$B(obj);
16191
+ }, _typeof$C(obj);
16028
16192
  }
16029
- function ownKeys$u(object, enumerableOnly) {
16193
+ function ownKeys$v(object, enumerableOnly) {
16030
16194
  var keys = Object.keys(object);
16031
16195
  if (Object.getOwnPropertySymbols) {
16032
16196
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16036,19 +16200,19 @@
16036
16200
  }
16037
16201
  return keys;
16038
16202
  }
16039
- function _objectSpread$u(target) {
16203
+ function _objectSpread$v(target) {
16040
16204
  for (var i = 1; i < arguments.length; i++) {
16041
16205
  var source = null != arguments[i] ? arguments[i] : {};
16042
- i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
16043
- _defineProperty$w(target, key, source[key]);
16044
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
16206
+ i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16207
+ _defineProperty$x(target, key, source[key]);
16208
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
16045
16209
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16046
16210
  });
16047
16211
  }
16048
16212
  return target;
16049
16213
  }
16050
- function _defineProperty$w(obj, key, value) {
16051
- key = _toPropertyKey$w(key);
16214
+ function _defineProperty$x(obj, key, value) {
16215
+ key = _toPropertyKey$x(key);
16052
16216
  if (key in obj) {
16053
16217
  Object.defineProperty(obj, key, {
16054
16218
  value: value,
@@ -16061,16 +16225,16 @@
16061
16225
  }
16062
16226
  return obj;
16063
16227
  }
16064
- function _toPropertyKey$w(arg) {
16065
- var key = _toPrimitive$w(arg, "string");
16066
- return _typeof$B(key) === "symbol" ? key : String(key);
16228
+ function _toPropertyKey$x(arg) {
16229
+ var key = _toPrimitive$x(arg, "string");
16230
+ return _typeof$C(key) === "symbol" ? key : String(key);
16067
16231
  }
16068
- function _toPrimitive$w(input, hint) {
16069
- if (_typeof$B(input) !== "object" || input === null) return input;
16232
+ function _toPrimitive$x(input, hint) {
16233
+ if (_typeof$C(input) !== "object" || input === null) return input;
16070
16234
  var prim = input[Symbol.toPrimitive];
16071
16235
  if (prim !== undefined) {
16072
16236
  var res = prim.call(input, hint || "default");
16073
- if (_typeof$B(res) !== "object") return res;
16237
+ if (_typeof$C(res) !== "object") return res;
16074
16238
  throw new TypeError("@@toPrimitive must return a primitive value.");
16075
16239
  }
16076
16240
  return (hint === "string" ? String : Number)(input);
@@ -16108,13 +16272,13 @@
16108
16272
  $$type: 'ais.pagination',
16109
16273
  init: function init(initOptions) {
16110
16274
  var instantSearchInstance = initOptions.instantSearchInstance;
16111
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
16275
+ renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(initOptions)), {}, {
16112
16276
  instantSearchInstance: instantSearchInstance
16113
16277
  }), true);
16114
16278
  },
16115
16279
  render: function render(renderOptions) {
16116
16280
  var instantSearchInstance = renderOptions.instantSearchInstance;
16117
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
16281
+ renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
16118
16282
  instantSearchInstance: instantSearchInstance
16119
16283
  }), false);
16120
16284
  },
@@ -16129,7 +16293,7 @@
16129
16293
  if (!page) {
16130
16294
  return uiState;
16131
16295
  }
16132
- return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
16296
+ return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
16133
16297
  page: page + 1
16134
16298
  });
16135
16299
  },
@@ -16152,7 +16316,7 @@
16152
16316
  if (!connectorState.createURL) {
16153
16317
  connectorState.createURL = function (page) {
16154
16318
  return createURL(function (uiState) {
16155
- return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
16319
+ return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
16156
16320
  page: page + 1
16157
16321
  });
16158
16322
  });
@@ -16178,7 +16342,7 @@
16178
16342
  };
16179
16343
  },
16180
16344
  getRenderState: function getRenderState(renderState, renderOptions) {
16181
- return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
16345
+ return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
16182
16346
  pagination: this.getWidgetRenderState(renderOptions)
16183
16347
  });
16184
16348
  }
@@ -16205,16 +16369,16 @@
16205
16369
  };
16206
16370
  }
16207
16371
 
16208
- function _typeof$C(obj) {
16372
+ function _typeof$D(obj) {
16209
16373
  "@babel/helpers - typeof";
16210
16374
 
16211
- return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16375
+ return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16212
16376
  return typeof obj;
16213
16377
  } : function (obj) {
16214
16378
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16215
- }, _typeof$C(obj);
16379
+ }, _typeof$D(obj);
16216
16380
  }
16217
- function ownKeys$v(object, enumerableOnly) {
16381
+ function ownKeys$w(object, enumerableOnly) {
16218
16382
  var keys = Object.keys(object);
16219
16383
  if (Object.getOwnPropertySymbols) {
16220
16384
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16224,19 +16388,19 @@
16224
16388
  }
16225
16389
  return keys;
16226
16390
  }
16227
- function _objectSpread$v(target) {
16391
+ function _objectSpread$w(target) {
16228
16392
  for (var i = 1; i < arguments.length; i++) {
16229
16393
  var source = null != arguments[i] ? arguments[i] : {};
16230
- i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16231
- _defineProperty$x(target, key, source[key]);
16232
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
16394
+ i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
16395
+ _defineProperty$y(target, key, source[key]);
16396
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
16233
16397
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16234
16398
  });
16235
16399
  }
16236
16400
  return target;
16237
16401
  }
16238
- function _defineProperty$x(obj, key, value) {
16239
- key = _toPropertyKey$x(key);
16402
+ function _defineProperty$y(obj, key, value) {
16403
+ key = _toPropertyKey$y(key);
16240
16404
  if (key in obj) {
16241
16405
  Object.defineProperty(obj, key, {
16242
16406
  value: value,
@@ -16249,16 +16413,16 @@
16249
16413
  }
16250
16414
  return obj;
16251
16415
  }
16252
- function _toPropertyKey$x(arg) {
16253
- var key = _toPrimitive$x(arg, "string");
16254
- return _typeof$C(key) === "symbol" ? key : String(key);
16416
+ function _toPropertyKey$y(arg) {
16417
+ var key = _toPrimitive$y(arg, "string");
16418
+ return _typeof$D(key) === "symbol" ? key : String(key);
16255
16419
  }
16256
- function _toPrimitive$x(input, hint) {
16257
- if (_typeof$C(input) !== "object" || input === null) return input;
16420
+ function _toPrimitive$y(input, hint) {
16421
+ if (_typeof$D(input) !== "object" || input === null) return input;
16258
16422
  var prim = input[Symbol.toPrimitive];
16259
16423
  if (prim !== undefined) {
16260
16424
  var res = prim.call(input, hint || "default");
16261
- if (_typeof$C(res) !== "object") return res;
16425
+ if (_typeof$D(res) !== "object") return res;
16262
16426
  throw new TypeError("@@toPrimitive must return a primitive value.");
16263
16427
  }
16264
16428
  return (hint === "string" ? String : Number)(input);
@@ -16338,7 +16502,7 @@
16338
16502
  var nextRuleContexts = [].concat(_toConsumableArray$7(initialRuleContexts), _toConsumableArray$7(newRuleContexts));
16339
16503
  var ruleContexts = transformRuleContexts(nextRuleContexts).slice(0, 10);
16340
16504
  if (!isEqual(previousRuleContexts, ruleContexts)) {
16341
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$v(_objectSpread$v({}, sharedHelperState), {}, {
16505
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$w(_objectSpread$w({}, sharedHelperState), {}, {
16342
16506
  ruleContexts: ruleContexts
16343
16507
  }));
16344
16508
  }
@@ -16397,13 +16561,13 @@
16397
16561
  // any `ruleContexts` needed based on the `trackedFilters`.
16398
16562
  helper.on('change', onHelperChange);
16399
16563
  }
16400
- _render(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(initOptions)), {}, {
16564
+ _render(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
16401
16565
  instantSearchInstance: instantSearchInstance
16402
16566
  }), true);
16403
16567
  },
16404
16568
  render: function render(renderOptions) {
16405
16569
  var instantSearchInstance = renderOptions.instantSearchInstance;
16406
- _render(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
16570
+ _render(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
16407
16571
  instantSearchInstance: instantSearchInstance
16408
16572
  }), false);
16409
16573
  },
@@ -16421,7 +16585,7 @@
16421
16585
  };
16422
16586
  },
16423
16587
  getRenderState: function getRenderState(renderState, renderOptions) {
16424
- return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
16588
+ return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
16425
16589
  queryRules: this.getWidgetRenderState(renderOptions)
16426
16590
  });
16427
16591
  },
@@ -16443,16 +16607,16 @@
16443
16607
  return useConnector(connectQueryRules, props, additionalWidgetProperties);
16444
16608
  }
16445
16609
 
16446
- function _typeof$D(obj) {
16610
+ function _typeof$E(obj) {
16447
16611
  "@babel/helpers - typeof";
16448
16612
 
16449
- return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16613
+ return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16450
16614
  return typeof obj;
16451
16615
  } : function (obj) {
16452
16616
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16453
- }, _typeof$D(obj);
16617
+ }, _typeof$E(obj);
16454
16618
  }
16455
- function ownKeys$w(object, enumerableOnly) {
16619
+ function ownKeys$x(object, enumerableOnly) {
16456
16620
  var keys = Object.keys(object);
16457
16621
  if (Object.getOwnPropertySymbols) {
16458
16622
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16462,19 +16626,19 @@
16462
16626
  }
16463
16627
  return keys;
16464
16628
  }
16465
- function _objectSpread$w(target) {
16629
+ function _objectSpread$x(target) {
16466
16630
  for (var i = 1; i < arguments.length; i++) {
16467
16631
  var source = null != arguments[i] ? arguments[i] : {};
16468
- i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
16469
- _defineProperty$y(target, key, source[key]);
16470
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
16632
+ i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
16633
+ _defineProperty$z(target, key, source[key]);
16634
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
16471
16635
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16472
16636
  });
16473
16637
  }
16474
16638
  return target;
16475
16639
  }
16476
- function _defineProperty$y(obj, key, value) {
16477
- key = _toPropertyKey$y(key);
16640
+ function _defineProperty$z(obj, key, value) {
16641
+ key = _toPropertyKey$z(key);
16478
16642
  if (key in obj) {
16479
16643
  Object.defineProperty(obj, key, {
16480
16644
  value: value,
@@ -16487,16 +16651,16 @@
16487
16651
  }
16488
16652
  return obj;
16489
16653
  }
16490
- function _toPropertyKey$y(arg) {
16491
- var key = _toPrimitive$y(arg, "string");
16492
- return _typeof$D(key) === "symbol" ? key : String(key);
16654
+ function _toPropertyKey$z(arg) {
16655
+ var key = _toPrimitive$z(arg, "string");
16656
+ return _typeof$E(key) === "symbol" ? key : String(key);
16493
16657
  }
16494
- function _toPrimitive$y(input, hint) {
16495
- if (_typeof$D(input) !== "object" || input === null) return input;
16658
+ function _toPrimitive$z(input, hint) {
16659
+ if (_typeof$E(input) !== "object" || input === null) return input;
16496
16660
  var prim = input[Symbol.toPrimitive];
16497
16661
  if (prim !== undefined) {
16498
16662
  var res = prim.call(input, hint || "default");
16499
- if (_typeof$D(res) !== "object") return res;
16663
+ if (_typeof$E(res) !== "object") return res;
16500
16664
  throw new TypeError("@@toPrimitive must return a primitive value.");
16501
16665
  }
16502
16666
  return (hint === "string" ? String : Number)(input);
@@ -16721,18 +16885,18 @@
16721
16885
  return {
16722
16886
  $$type: $$type$2,
16723
16887
  init: function init(initOptions) {
16724
- renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
16888
+ renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(initOptions)), {}, {
16725
16889
  instantSearchInstance: initOptions.instantSearchInstance
16726
16890
  }), true);
16727
16891
  },
16728
16892
  render: function render(renderOptions) {
16729
- renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
16893
+ renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(renderOptions)), {}, {
16730
16894
  instantSearchInstance: renderOptions.instantSearchInstance
16731
16895
  }), false);
16732
16896
  },
16733
16897
  getRenderState: function getRenderState(renderState, renderOptions) {
16734
- return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
16735
- range: _objectSpread$w(_objectSpread$w({}, renderState.range), {}, _defineProperty$y({}, attribute, this.getWidgetRenderState(renderOptions)))
16898
+ return _objectSpread$x(_objectSpread$x({}, renderState), {}, {
16899
+ range: _objectSpread$x(_objectSpread$x({}, renderState.range), {}, _defineProperty$z({}, attribute, this.getWidgetRenderState(renderOptions)))
16736
16900
  });
16737
16901
  },
16738
16902
  getWidgetRenderState: function getWidgetRenderState(_ref13) {
@@ -16767,7 +16931,7 @@
16767
16931
  format: rangeFormatter,
16768
16932
  range: currentRange,
16769
16933
  sendEvent: createSendEvent(instantSearchInstance),
16770
- widgetParams: _objectSpread$w(_objectSpread$w({}, widgetParams), {}, {
16934
+ widgetParams: _objectSpread$x(_objectSpread$x({}, widgetParams), {}, {
16771
16935
  precision: precision
16772
16936
  }),
16773
16937
  start: start
@@ -16788,14 +16952,14 @@
16788
16952
  if (min.length === 0 && max.length === 0) {
16789
16953
  return uiState;
16790
16954
  }
16791
- return _objectSpread$w(_objectSpread$w({}, uiState), {}, {
16792
- range: _objectSpread$w(_objectSpread$w({}, uiState.range), {}, _defineProperty$y({}, attribute, "".concat(min, ":").concat(max)))
16955
+ return _objectSpread$x(_objectSpread$x({}, uiState), {}, {
16956
+ range: _objectSpread$x(_objectSpread$x({}, uiState.range), {}, _defineProperty$z({}, attribute, "".concat(min, ":").concat(max)))
16793
16957
  });
16794
16958
  },
16795
16959
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref16) {
16796
16960
  var uiState = _ref16.uiState;
16797
16961
  var widgetSearchParameters = searchParameters.addDisjunctiveFacet(attribute).setQueryParameters({
16798
- numericRefinements: _objectSpread$w(_objectSpread$w({}, searchParameters.numericRefinements), {}, _defineProperty$y({}, attribute, {}))
16962
+ numericRefinements: _objectSpread$x(_objectSpread$x({}, searchParameters.numericRefinements), {}, _defineProperty$z({}, attribute, {}))
16799
16963
  });
16800
16964
  if (isFiniteNumber(minBound)) {
16801
16965
  widgetSearchParameters = widgetSearchParameters.addNumericRefinement(attribute, '>=', minBound);
@@ -16829,18 +16993,18 @@
16829
16993
  return useConnector(connectRange, props, additionalWidgetProperties);
16830
16994
  }
16831
16995
 
16832
- function _typeof$E(obj) {
16996
+ function _typeof$F(obj) {
16833
16997
  "@babel/helpers - typeof";
16834
16998
 
16835
- return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16999
+ return _typeof$F = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16836
17000
  return typeof obj;
16837
17001
  } : function (obj) {
16838
17002
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16839
- }, _typeof$E(obj);
17003
+ }, _typeof$F(obj);
16840
17004
  }
16841
17005
  var _excluded$b = ["name", "escapedValue"],
16842
17006
  _excluded2$2 = ["escapedValue", "value"];
16843
- function ownKeys$x(object, enumerableOnly) {
17007
+ function ownKeys$y(object, enumerableOnly) {
16844
17008
  var keys = Object.keys(object);
16845
17009
  if (Object.getOwnPropertySymbols) {
16846
17010
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16850,19 +17014,19 @@
16850
17014
  }
16851
17015
  return keys;
16852
17016
  }
16853
- function _objectSpread$x(target) {
17017
+ function _objectSpread$y(target) {
16854
17018
  for (var i = 1; i < arguments.length; i++) {
16855
17019
  var source = null != arguments[i] ? arguments[i] : {};
16856
- i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
16857
- _defineProperty$z(target, key, source[key]);
16858
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
17020
+ i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17021
+ _defineProperty$A(target, key, source[key]);
17022
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
16859
17023
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16860
17024
  });
16861
17025
  }
16862
17026
  return target;
16863
17027
  }
16864
- function _defineProperty$z(obj, key, value) {
16865
- key = _toPropertyKey$z(key);
17028
+ function _defineProperty$A(obj, key, value) {
17029
+ key = _toPropertyKey$A(key);
16866
17030
  if (key in obj) {
16867
17031
  Object.defineProperty(obj, key, {
16868
17032
  value: value,
@@ -16875,16 +17039,16 @@
16875
17039
  }
16876
17040
  return obj;
16877
17041
  }
16878
- function _toPropertyKey$z(arg) {
16879
- var key = _toPrimitive$z(arg, "string");
16880
- return _typeof$E(key) === "symbol" ? key : String(key);
17042
+ function _toPropertyKey$A(arg) {
17043
+ var key = _toPrimitive$A(arg, "string");
17044
+ return _typeof$F(key) === "symbol" ? key : String(key);
16881
17045
  }
16882
- function _toPrimitive$z(input, hint) {
16883
- if (_typeof$E(input) !== "object" || input === null) return input;
17046
+ function _toPrimitive$A(input, hint) {
17047
+ if (_typeof$F(input) !== "object" || input === null) return input;
16884
17048
  var prim = input[Symbol.toPrimitive];
16885
17049
  if (prim !== undefined) {
16886
17050
  var res = prim.call(input, hint || "default");
16887
- if (_typeof$E(res) !== "object") return res;
17051
+ if (_typeof$F(res) !== "object") return res;
16888
17052
  throw new TypeError("@@toPrimitive must return a primitive value.");
16889
17053
  }
16890
17054
  return (hint === "string" ? String : Number)(input);
@@ -16968,7 +17132,7 @@
16968
17132
  var label = _ref2.name,
16969
17133
  value = _ref2.escapedValue,
16970
17134
  item = _objectWithoutProperties$b(_ref2, _excluded$b);
16971
- return _objectSpread$x(_objectSpread$x({}, item), {}, {
17135
+ return _objectSpread$y(_objectSpread$y({}, item), {}, {
16972
17136
  value: value,
16973
17137
  label: label,
16974
17138
  highlighted: label
@@ -17005,7 +17169,7 @@
17005
17169
  searchResults = renderOptions.results;
17006
17170
  if (query === '' && lastItemsFromMainSearch) {
17007
17171
  // render with previous data from the helper.
17008
- renderFn(_objectSpread$x(_objectSpread$x({}, widget.getWidgetRenderState(_objectSpread$x(_objectSpread$x({}, renderOptions), {}, {
17172
+ renderFn(_objectSpread$y(_objectSpread$y({}, widget.getWidgetRenderState(_objectSpread$y(_objectSpread$y({}, renderOptions), {}, {
17009
17173
  results: lastResultsFromMainSearch
17010
17174
  }))), {}, {
17011
17175
  instantSearchInstance: instantSearchInstance
@@ -17025,14 +17189,14 @@
17025
17189
  var escapedValue = _ref3.escapedValue,
17026
17190
  value = _ref3.value,
17027
17191
  item = _objectWithoutProperties$b(_ref3, _excluded2$2);
17028
- return _objectSpread$x(_objectSpread$x({}, item), {}, {
17192
+ return _objectSpread$y(_objectSpread$y({}, item), {}, {
17029
17193
  value: escapedValue,
17030
17194
  label: value
17031
17195
  });
17032
17196
  }), {
17033
17197
  results: searchResults
17034
17198
  });
17035
- renderFn(_objectSpread$x(_objectSpread$x({}, widget.getWidgetRenderState(_objectSpread$x(_objectSpread$x({}, renderOptions), {}, {
17199
+ renderFn(_objectSpread$y(_objectSpread$y({}, widget.getWidgetRenderState(_objectSpread$y(_objectSpread$y({}, renderOptions), {}, {
17036
17200
  results: lastResultsFromMainSearch
17037
17201
  }))), {}, {
17038
17202
  items: normalizedFacetValues,
@@ -17049,18 +17213,18 @@
17049
17213
  return {
17050
17214
  $$type: 'ais.refinementList',
17051
17215
  init: function init(initOptions) {
17052
- renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(initOptions)), {}, {
17216
+ renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(initOptions)), {}, {
17053
17217
  instantSearchInstance: initOptions.instantSearchInstance
17054
17218
  }), true);
17055
17219
  },
17056
17220
  render: function render(renderOptions) {
17057
- renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(renderOptions)), {}, {
17221
+ renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(renderOptions)), {}, {
17058
17222
  instantSearchInstance: renderOptions.instantSearchInstance
17059
17223
  }), false);
17060
17224
  },
17061
17225
  getRenderState: function getRenderState(renderState, renderOptions) {
17062
- return _objectSpread$x(_objectSpread$x({}, renderState), {}, {
17063
- refinementList: _objectSpread$x(_objectSpread$x({}, renderState.refinementList), {}, _defineProperty$z({}, attribute, this.getWidgetRenderState(renderOptions)))
17226
+ return _objectSpread$y(_objectSpread$y({}, renderState), {}, {
17227
+ refinementList: _objectSpread$y(_objectSpread$y({}, renderState.refinementList), {}, _defineProperty$A({}, attribute, this.getWidgetRenderState(renderOptions)))
17064
17228
  });
17065
17229
  },
17066
17230
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -17153,8 +17317,8 @@
17153
17317
  if (!values.length) {
17154
17318
  return uiState;
17155
17319
  }
17156
- return _objectSpread$x(_objectSpread$x({}, uiState), {}, {
17157
- refinementList: _objectSpread$x(_objectSpread$x({}, uiState.refinementList), {}, _defineProperty$z({}, attribute, values))
17320
+ return _objectSpread$y(_objectSpread$y({}, uiState), {}, {
17321
+ refinementList: _objectSpread$y(_objectSpread$y({}, uiState.refinementList), {}, _defineProperty$A({}, attribute, values))
17158
17322
  });
17159
17323
  },
17160
17324
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -17174,7 +17338,7 @@
17174
17338
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
17175
17339
  if (!values) {
17176
17340
  var key = isDisjunctive ? 'disjunctiveFacetsRefinements' : 'facetsRefinements';
17177
- return withMaxValuesPerFacet.setQueryParameters(_defineProperty$z({}, key, _objectSpread$x(_objectSpread$x({}, withMaxValuesPerFacet[key]), {}, _defineProperty$z({}, attribute, []))));
17341
+ return withMaxValuesPerFacet.setQueryParameters(_defineProperty$A({}, key, _objectSpread$y(_objectSpread$y({}, withMaxValuesPerFacet[key]), {}, _defineProperty$A({}, attribute, []))));
17178
17342
  }
17179
17343
  return values.reduce(function (parameters, value) {
17180
17344
  return isDisjunctive ? parameters.addDisjunctiveFacetRefinement(attribute, value) : parameters.addFacetRefinement(attribute, value);
@@ -17188,16 +17352,16 @@
17188
17352
  return useConnector(connectRefinementList, props, additionalWidgetProperties);
17189
17353
  }
17190
17354
 
17191
- function _typeof$F(obj) {
17355
+ function _typeof$G(obj) {
17192
17356
  "@babel/helpers - typeof";
17193
17357
 
17194
- return _typeof$F = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17358
+ return _typeof$G = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17195
17359
  return typeof obj;
17196
17360
  } : function (obj) {
17197
17361
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17198
- }, _typeof$F(obj);
17362
+ }, _typeof$G(obj);
17199
17363
  }
17200
- function ownKeys$y(object, enumerableOnly) {
17364
+ function ownKeys$z(object, enumerableOnly) {
17201
17365
  var keys = Object.keys(object);
17202
17366
  if (Object.getOwnPropertySymbols) {
17203
17367
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17207,19 +17371,19 @@
17207
17371
  }
17208
17372
  return keys;
17209
17373
  }
17210
- function _objectSpread$y(target) {
17374
+ function _objectSpread$z(target) {
17211
17375
  for (var i = 1; i < arguments.length; i++) {
17212
17376
  var source = null != arguments[i] ? arguments[i] : {};
17213
- i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17214
- _defineProperty$A(target, key, source[key]);
17215
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
17377
+ i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) {
17378
+ _defineProperty$B(target, key, source[key]);
17379
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) {
17216
17380
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17217
17381
  });
17218
17382
  }
17219
17383
  return target;
17220
17384
  }
17221
- function _defineProperty$A(obj, key, value) {
17222
- key = _toPropertyKey$A(key);
17385
+ function _defineProperty$B(obj, key, value) {
17386
+ key = _toPropertyKey$B(key);
17223
17387
  if (key in obj) {
17224
17388
  Object.defineProperty(obj, key, {
17225
17389
  value: value,
@@ -17232,16 +17396,16 @@
17232
17396
  }
17233
17397
  return obj;
17234
17398
  }
17235
- function _toPropertyKey$A(arg) {
17236
- var key = _toPrimitive$A(arg, "string");
17237
- return _typeof$F(key) === "symbol" ? key : String(key);
17399
+ function _toPropertyKey$B(arg) {
17400
+ var key = _toPrimitive$B(arg, "string");
17401
+ return _typeof$G(key) === "symbol" ? key : String(key);
17238
17402
  }
17239
- function _toPrimitive$A(input, hint) {
17240
- if (_typeof$F(input) !== "object" || input === null) return input;
17403
+ function _toPrimitive$B(input, hint) {
17404
+ if (_typeof$G(input) !== "object" || input === null) return input;
17241
17405
  var prim = input[Symbol.toPrimitive];
17242
17406
  if (prim !== undefined) {
17243
17407
  var res = prim.call(input, hint || "default");
17244
- if (_typeof$F(res) !== "object") return res;
17408
+ if (_typeof$G(res) !== "object") return res;
17245
17409
  throw new TypeError("@@toPrimitive must return a primitive value.");
17246
17410
  }
17247
17411
  return (hint === "string" ? String : Number)(input);
@@ -17283,13 +17447,13 @@
17283
17447
  $$type: 'ais.searchBox',
17284
17448
  init: function init(initOptions) {
17285
17449
  var instantSearchInstance = initOptions.instantSearchInstance;
17286
- renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(initOptions)), {}, {
17450
+ renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(initOptions)), {}, {
17287
17451
  instantSearchInstance: instantSearchInstance
17288
17452
  }), true);
17289
17453
  },
17290
17454
  render: function render(renderOptions) {
17291
17455
  var instantSearchInstance = renderOptions.instantSearchInstance;
17292
- renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(renderOptions)), {}, {
17456
+ renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(renderOptions)), {}, {
17293
17457
  instantSearchInstance: instantSearchInstance
17294
17458
  }), false);
17295
17459
  },
@@ -17299,7 +17463,7 @@
17299
17463
  return state.setQueryParameter('query', undefined);
17300
17464
  },
17301
17465
  getRenderState: function getRenderState(renderState, renderOptions) {
17302
- return _objectSpread$y(_objectSpread$y({}, renderState), {}, {
17466
+ return _objectSpread$z(_objectSpread$z({}, renderState), {}, {
17303
17467
  searchBox: this.getWidgetRenderState(renderOptions)
17304
17468
  });
17305
17469
  },
@@ -17331,7 +17495,7 @@
17331
17495
  if (query === '' || uiState && uiState.query === query) {
17332
17496
  return uiState;
17333
17497
  }
17334
- return _objectSpread$y(_objectSpread$y({}, uiState), {}, {
17498
+ return _objectSpread$z(_objectSpread$z({}, uiState), {}, {
17335
17499
  query: query
17336
17500
  });
17337
17501
  },
@@ -17347,16 +17511,16 @@
17347
17511
  return useConnector(connectSearchBox, props, additionalWidgetProperties);
17348
17512
  }
17349
17513
 
17350
- function _typeof$G(obj) {
17514
+ function _typeof$H(obj) {
17351
17515
  "@babel/helpers - typeof";
17352
17516
 
17353
- return _typeof$G = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17517
+ return _typeof$H = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17354
17518
  return typeof obj;
17355
17519
  } : function (obj) {
17356
17520
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17357
- }, _typeof$G(obj);
17521
+ }, _typeof$H(obj);
17358
17522
  }
17359
- function ownKeys$z(object, enumerableOnly) {
17523
+ function ownKeys$A(object, enumerableOnly) {
17360
17524
  var keys = Object.keys(object);
17361
17525
  if (Object.getOwnPropertySymbols) {
17362
17526
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17366,19 +17530,19 @@
17366
17530
  }
17367
17531
  return keys;
17368
17532
  }
17369
- function _objectSpread$z(target) {
17533
+ function _objectSpread$A(target) {
17370
17534
  for (var i = 1; i < arguments.length; i++) {
17371
17535
  var source = null != arguments[i] ? arguments[i] : {};
17372
- i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) {
17373
- _defineProperty$B(target, key, source[key]);
17374
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) {
17536
+ i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) {
17537
+ _defineProperty$C(target, key, source[key]);
17538
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) {
17375
17539
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17376
17540
  });
17377
17541
  }
17378
17542
  return target;
17379
17543
  }
17380
- function _defineProperty$B(obj, key, value) {
17381
- key = _toPropertyKey$B(key);
17544
+ function _defineProperty$C(obj, key, value) {
17545
+ key = _toPropertyKey$C(key);
17382
17546
  if (key in obj) {
17383
17547
  Object.defineProperty(obj, key, {
17384
17548
  value: value,
@@ -17391,16 +17555,16 @@
17391
17555
  }
17392
17556
  return obj;
17393
17557
  }
17394
- function _toPropertyKey$B(arg) {
17395
- var key = _toPrimitive$B(arg, "string");
17396
- return _typeof$G(key) === "symbol" ? key : String(key);
17558
+ function _toPropertyKey$C(arg) {
17559
+ var key = _toPrimitive$C(arg, "string");
17560
+ return _typeof$H(key) === "symbol" ? key : String(key);
17397
17561
  }
17398
- function _toPrimitive$B(input, hint) {
17399
- if (_typeof$G(input) !== "object" || input === null) return input;
17562
+ function _toPrimitive$C(input, hint) {
17563
+ if (_typeof$H(input) !== "object" || input === null) return input;
17400
17564
  var prim = input[Symbol.toPrimitive];
17401
17565
  if (prim !== undefined) {
17402
17566
  var res = prim.call(input, hint || "default");
17403
- if (_typeof$G(res) !== "object") return res;
17567
+ if (_typeof$H(res) !== "object") return res;
17404
17568
  throw new TypeError("@@toPrimitive must return a primitive value.");
17405
17569
  }
17406
17570
  return (hint === "string" ? String : Number)(input);
@@ -17439,13 +17603,13 @@
17439
17603
  var isCurrentIndexInItems = find$1(items, function (item) {
17440
17604
  return item.value === currentIndex;
17441
17605
  });
17442
- renderFn(_objectSpread$z(_objectSpread$z({}, widgetRenderState), {}, {
17606
+ renderFn(_objectSpread$A(_objectSpread$A({}, widgetRenderState), {}, {
17443
17607
  instantSearchInstance: instantSearchInstance
17444
17608
  }), true);
17445
17609
  },
17446
17610
  render: function render(renderOptions) {
17447
17611
  var instantSearchInstance = renderOptions.instantSearchInstance;
17448
- renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(renderOptions)), {}, {
17612
+ renderFn(_objectSpread$A(_objectSpread$A({}, this.getWidgetRenderState(renderOptions)), {}, {
17449
17613
  instantSearchInstance: instantSearchInstance
17450
17614
  }), false);
17451
17615
  },
@@ -17455,7 +17619,7 @@
17455
17619
  return connectorState.initialIndex ? state.setIndex(connectorState.initialIndex) : state;
17456
17620
  },
17457
17621
  getRenderState: function getRenderState(renderState, renderOptions) {
17458
- return _objectSpread$z(_objectSpread$z({}, renderState), {}, {
17622
+ return _objectSpread$A(_objectSpread$A({}, renderState), {}, {
17459
17623
  sortBy: this.getWidgetRenderState(renderOptions)
17460
17624
  });
17461
17625
  },
@@ -17487,7 +17651,7 @@
17487
17651
  getWidgetUiState: function getWidgetUiState(uiState, _ref4) {
17488
17652
  var searchParameters = _ref4.searchParameters;
17489
17653
  var currentIndex = searchParameters.index;
17490
- return _objectSpread$z(_objectSpread$z({}, uiState), {}, {
17654
+ return _objectSpread$A(_objectSpread$A({}, uiState), {}, {
17491
17655
  sortBy: currentIndex !== connectorState.initialIndex ? currentIndex : undefined
17492
17656
  });
17493
17657
  },
@@ -17503,16 +17667,16 @@
17503
17667
  return useConnector(connectSortBy, props, additionalWidgetProperties);
17504
17668
  }
17505
17669
 
17506
- function _typeof$H(obj) {
17670
+ function _typeof$I(obj) {
17507
17671
  "@babel/helpers - typeof";
17508
17672
 
17509
- return _typeof$H = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17673
+ return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17510
17674
  return typeof obj;
17511
17675
  } : function (obj) {
17512
17676
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17513
- }, _typeof$H(obj);
17677
+ }, _typeof$I(obj);
17514
17678
  }
17515
- function ownKeys$A(object, enumerableOnly) {
17679
+ function ownKeys$B(object, enumerableOnly) {
17516
17680
  var keys = Object.keys(object);
17517
17681
  if (Object.getOwnPropertySymbols) {
17518
17682
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17522,19 +17686,19 @@
17522
17686
  }
17523
17687
  return keys;
17524
17688
  }
17525
- function _objectSpread$A(target) {
17689
+ function _objectSpread$B(target) {
17526
17690
  for (var i = 1; i < arguments.length; i++) {
17527
17691
  var source = null != arguments[i] ? arguments[i] : {};
17528
- i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) {
17529
- _defineProperty$C(target, key, source[key]);
17530
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) {
17692
+ i % 2 ? ownKeys$B(Object(source), !0).forEach(function (key) {
17693
+ _defineProperty$D(target, key, source[key]);
17694
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$B(Object(source)).forEach(function (key) {
17531
17695
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17532
17696
  });
17533
17697
  }
17534
17698
  return target;
17535
17699
  }
17536
- function _defineProperty$C(obj, key, value) {
17537
- key = _toPropertyKey$C(key);
17700
+ function _defineProperty$D(obj, key, value) {
17701
+ key = _toPropertyKey$D(key);
17538
17702
  if (key in obj) {
17539
17703
  Object.defineProperty(obj, key, {
17540
17704
  value: value,
@@ -17547,16 +17711,16 @@
17547
17711
  }
17548
17712
  return obj;
17549
17713
  }
17550
- function _toPropertyKey$C(arg) {
17551
- var key = _toPrimitive$C(arg, "string");
17552
- return _typeof$H(key) === "symbol" ? key : String(key);
17714
+ function _toPropertyKey$D(arg) {
17715
+ var key = _toPrimitive$D(arg, "string");
17716
+ return _typeof$I(key) === "symbol" ? key : String(key);
17553
17717
  }
17554
- function _toPrimitive$C(input, hint) {
17555
- if (_typeof$H(input) !== "object" || input === null) return input;
17718
+ function _toPrimitive$D(input, hint) {
17719
+ if (_typeof$I(input) !== "object" || input === null) return input;
17556
17720
  var prim = input[Symbol.toPrimitive];
17557
17721
  if (prim !== undefined) {
17558
17722
  var res = prim.call(input, hint || "default");
17559
- if (_typeof$H(res) !== "object") return res;
17723
+ if (_typeof$I(res) !== "object") return res;
17560
17724
  throw new TypeError("@@toPrimitive must return a primitive value.");
17561
17725
  }
17562
17726
  return (hint === "string" ? String : Number)(input);
@@ -17579,13 +17743,13 @@
17579
17743
  $$type: 'ais.stats',
17580
17744
  init: function init(initOptions) {
17581
17745
  var instantSearchInstance = initOptions.instantSearchInstance;
17582
- renderFn(_objectSpread$A(_objectSpread$A({}, this.getWidgetRenderState(initOptions)), {}, {
17746
+ renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(initOptions)), {}, {
17583
17747
  instantSearchInstance: instantSearchInstance
17584
17748
  }), true);
17585
17749
  },
17586
17750
  render: function render(renderOptions) {
17587
17751
  var instantSearchInstance = renderOptions.instantSearchInstance;
17588
- renderFn(_objectSpread$A(_objectSpread$A({}, this.getWidgetRenderState(renderOptions)), {}, {
17752
+ renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(renderOptions)), {}, {
17589
17753
  instantSearchInstance: instantSearchInstance
17590
17754
  }), false);
17591
17755
  },
@@ -17593,7 +17757,7 @@
17593
17757
  unmountFn();
17594
17758
  },
17595
17759
  getRenderState: function getRenderState(renderState, renderOptions) {
17596
- return _objectSpread$A(_objectSpread$A({}, renderState), {}, {
17760
+ return _objectSpread$B(_objectSpread$B({}, renderState), {}, {
17597
17761
  stats: this.getWidgetRenderState(renderOptions)
17598
17762
  });
17599
17763
  },
@@ -17633,16 +17797,16 @@
17633
17797
  return useConnector(connectStats, props, additionalWidgetProperties);
17634
17798
  }
17635
17799
 
17636
- function _typeof$I(obj) {
17800
+ function _typeof$J(obj) {
17637
17801
  "@babel/helpers - typeof";
17638
17802
 
17639
- return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17803
+ return _typeof$J = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17640
17804
  return typeof obj;
17641
17805
  } : function (obj) {
17642
17806
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17643
- }, _typeof$I(obj);
17807
+ }, _typeof$J(obj);
17644
17808
  }
17645
- function ownKeys$B(object, enumerableOnly) {
17809
+ function ownKeys$C(object, enumerableOnly) {
17646
17810
  var keys = Object.keys(object);
17647
17811
  if (Object.getOwnPropertySymbols) {
17648
17812
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17652,19 +17816,19 @@
17652
17816
  }
17653
17817
  return keys;
17654
17818
  }
17655
- function _objectSpread$B(target) {
17819
+ function _objectSpread$C(target) {
17656
17820
  for (var i = 1; i < arguments.length; i++) {
17657
17821
  var source = null != arguments[i] ? arguments[i] : {};
17658
- i % 2 ? ownKeys$B(Object(source), !0).forEach(function (key) {
17659
- _defineProperty$D(target, key, source[key]);
17660
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$B(Object(source)).forEach(function (key) {
17822
+ i % 2 ? ownKeys$C(Object(source), !0).forEach(function (key) {
17823
+ _defineProperty$E(target, key, source[key]);
17824
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$C(Object(source)).forEach(function (key) {
17661
17825
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17662
17826
  });
17663
17827
  }
17664
17828
  return target;
17665
17829
  }
17666
- function _defineProperty$D(obj, key, value) {
17667
- key = _toPropertyKey$D(key);
17830
+ function _defineProperty$E(obj, key, value) {
17831
+ key = _toPropertyKey$E(key);
17668
17832
  if (key in obj) {
17669
17833
  Object.defineProperty(obj, key, {
17670
17834
  value: value,
@@ -17677,16 +17841,16 @@
17677
17841
  }
17678
17842
  return obj;
17679
17843
  }
17680
- function _toPropertyKey$D(arg) {
17681
- var key = _toPrimitive$D(arg, "string");
17682
- return _typeof$I(key) === "symbol" ? key : String(key);
17844
+ function _toPropertyKey$E(arg) {
17845
+ var key = _toPrimitive$E(arg, "string");
17846
+ return _typeof$J(key) === "symbol" ? key : String(key);
17683
17847
  }
17684
- function _toPrimitive$D(input, hint) {
17685
- if (_typeof$I(input) !== "object" || input === null) return input;
17848
+ function _toPrimitive$E(input, hint) {
17849
+ if (_typeof$J(input) !== "object" || input === null) return input;
17686
17850
  var prim = input[Symbol.toPrimitive];
17687
17851
  if (prim !== undefined) {
17688
17852
  var res = prim.call(input, hint || "default");
17689
- if (_typeof$I(res) !== "object") return res;
17853
+ if (_typeof$J(res) !== "object") return res;
17690
17854
  throw new TypeError("@@toPrimitive must return a primitive value.");
17691
17855
  }
17692
17856
  return (hint === "string" ? String : Number)(input);
@@ -17878,13 +18042,13 @@
17878
18042
  $$type: $$type$3,
17879
18043
  init: function init(initOptions) {
17880
18044
  var instantSearchInstance = initOptions.instantSearchInstance;
17881
- renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(initOptions)), {}, {
18045
+ renderFn(_objectSpread$C(_objectSpread$C({}, this.getWidgetRenderState(initOptions)), {}, {
17882
18046
  instantSearchInstance: instantSearchInstance
17883
18047
  }), true);
17884
18048
  },
17885
18049
  render: function render(renderOptions) {
17886
18050
  var instantSearchInstance = renderOptions.instantSearchInstance;
17887
- renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(renderOptions)), {}, {
18051
+ renderFn(_objectSpread$C(_objectSpread$C({}, this.getWidgetRenderState(renderOptions)), {}, {
17888
18052
  instantSearchInstance: instantSearchInstance
17889
18053
  }), false);
17890
18054
  },
@@ -17894,8 +18058,8 @@
17894
18058
  return state.removeDisjunctiveFacet(attribute);
17895
18059
  },
17896
18060
  getRenderState: function getRenderState(renderState, renderOptions) {
17897
- return _objectSpread$B(_objectSpread$B({}, renderState), {}, {
17898
- toggleRefinement: _objectSpread$B(_objectSpread$B({}, renderState.toggleRefinement), {}, _defineProperty$D({}, attribute, this.getWidgetRenderState(renderOptions)))
18061
+ return _objectSpread$C(_objectSpread$C({}, renderState), {}, {
18062
+ toggleRefinement: _objectSpread$C(_objectSpread$C({}, renderState.toggleRefinement), {}, _defineProperty$E({}, attribute, this.getWidgetRenderState(renderOptions)))
17899
18063
  });
17900
18064
  },
17901
18065
  getWidgetRenderState: function getWidgetRenderState(_ref6) {
@@ -17996,8 +18160,8 @@
17996
18160
  (_uiState$toggle = uiState.toggle) === null || _uiState$toggle === void 0 ? true : delete _uiState$toggle[attribute];
17997
18161
  return uiState;
17998
18162
  }
17999
- return _objectSpread$B(_objectSpread$B({}, uiState), {}, {
18000
- toggle: _objectSpread$B(_objectSpread$B({}, uiState.toggle), {}, _defineProperty$D({}, attribute, isRefined))
18163
+ return _objectSpread$C(_objectSpread$C({}, uiState), {}, {
18164
+ toggle: _objectSpread$C(_objectSpread$C({}, uiState.toggle), {}, _defineProperty$E({}, attribute, isRefined))
18001
18165
  });
18002
18166
  },
18003
18167
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref11) {
@@ -18028,7 +18192,7 @@
18028
18192
 
18029
18193
  // It's not refined without an `off` value
18030
18194
  return withFacetConfiguration.setQueryParameters({
18031
- disjunctiveFacetsRefinements: _objectSpread$B(_objectSpread$B({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$D({}, attribute, []))
18195
+ disjunctiveFacetsRefinements: _objectSpread$C(_objectSpread$C({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$E({}, attribute, []))
18032
18196
  });
18033
18197
  }
18034
18198
  };
@@ -18291,16 +18455,16 @@
18291
18455
  return promise;
18292
18456
  }
18293
18457
 
18294
- function _typeof$J(obj) {
18458
+ function _typeof$K(obj) {
18295
18459
  "@babel/helpers - typeof";
18296
18460
 
18297
- return _typeof$J = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18461
+ return _typeof$K = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18298
18462
  return typeof obj;
18299
18463
  } : function (obj) {
18300
18464
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18301
- }, _typeof$J(obj);
18465
+ }, _typeof$K(obj);
18302
18466
  }
18303
- function ownKeys$C(object, enumerableOnly) {
18467
+ function ownKeys$D(object, enumerableOnly) {
18304
18468
  var keys = Object.keys(object);
18305
18469
  if (Object.getOwnPropertySymbols) {
18306
18470
  var symbols = Object.getOwnPropertySymbols(object);
@@ -18310,19 +18474,19 @@
18310
18474
  }
18311
18475
  return keys;
18312
18476
  }
18313
- function _objectSpread$C(target) {
18477
+ function _objectSpread$D(target) {
18314
18478
  for (var i = 1; i < arguments.length; i++) {
18315
18479
  var source = null != arguments[i] ? arguments[i] : {};
18316
- i % 2 ? ownKeys$C(Object(source), !0).forEach(function (key) {
18317
- _defineProperty$E(target, key, source[key]);
18318
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$C(Object(source)).forEach(function (key) {
18480
+ i % 2 ? ownKeys$D(Object(source), !0).forEach(function (key) {
18481
+ _defineProperty$F(target, key, source[key]);
18482
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$D(Object(source)).forEach(function (key) {
18319
18483
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18320
18484
  });
18321
18485
  }
18322
18486
  return target;
18323
18487
  }
18324
- function _defineProperty$E(obj, key, value) {
18325
- key = _toPropertyKey$E(key);
18488
+ function _defineProperty$F(obj, key, value) {
18489
+ key = _toPropertyKey$F(key);
18326
18490
  if (key in obj) {
18327
18491
  Object.defineProperty(obj, key, {
18328
18492
  value: value,
@@ -18335,16 +18499,16 @@
18335
18499
  }
18336
18500
  return obj;
18337
18501
  }
18338
- function _toPropertyKey$E(arg) {
18339
- var key = _toPrimitive$E(arg, "string");
18340
- return _typeof$J(key) === "symbol" ? key : String(key);
18502
+ function _toPropertyKey$F(arg) {
18503
+ var key = _toPrimitive$F(arg, "string");
18504
+ return _typeof$K(key) === "symbol" ? key : String(key);
18341
18505
  }
18342
- function _toPrimitive$E(input, hint) {
18343
- if (_typeof$J(input) !== "object" || input === null) return input;
18506
+ function _toPrimitive$F(input, hint) {
18507
+ if (_typeof$K(input) !== "object" || input === null) return input;
18344
18508
  var prim = input[Symbol.toPrimitive];
18345
18509
  if (prim !== undefined) {
18346
18510
  var res = prim.call(input, hint || "default");
18347
- if (_typeof$J(res) !== "object") return res;
18511
+ if (_typeof$K(res) !== "object") return res;
18348
18512
  throw new TypeError("@@toPrimitive must return a primitive value.");
18349
18513
  }
18350
18514
  return (hint === "string" ? String : Number)(input);
@@ -18390,7 +18554,7 @@
18390
18554
  initialResults[widget.getIndexId()] = {
18391
18555
  // We convert the Helper state to a plain object to pass parsable data
18392
18556
  // structures from server to client.
18393
- state: _objectSpread$C({}, searchResults._state),
18557
+ state: _objectSpread$D({}, searchResults._state),
18394
18558
  results: searchResults._rawResults
18395
18559
  };
18396
18560
  }
@@ -18511,7 +18675,7 @@
18511
18675
  return _arr;
18512
18676
  }
18513
18677
  }
18514
- function ownKeys$D(object, enumerableOnly) {
18678
+ function ownKeys$E(object, enumerableOnly) {
18515
18679
  var keys = Object.keys(object);
18516
18680
  if (Object.getOwnPropertySymbols) {
18517
18681
  var symbols = Object.getOwnPropertySymbols(object);
@@ -18524,16 +18688,16 @@
18524
18688
  function _objectSpread2(target) {
18525
18689
  for (var i = 1; i < arguments.length; i++) {
18526
18690
  var source = null != arguments[i] ? arguments[i] : {};
18527
- i % 2 ? ownKeys$D(Object(source), !0).forEach(function (key) {
18528
- _defineProperty$F(target, key, source[key]);
18529
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$D(Object(source)).forEach(function (key) {
18691
+ i % 2 ? ownKeys$E(Object(source), !0).forEach(function (key) {
18692
+ _defineProperty$G(target, key, source[key]);
18693
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$E(Object(source)).forEach(function (key) {
18530
18694
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18531
18695
  });
18532
18696
  }
18533
18697
  return target;
18534
18698
  }
18535
- function _defineProperty$F(obj, key, value) {
18536
- key = _toPropertyKey$F(key);
18699
+ function _defineProperty$G(obj, key, value) {
18700
+ key = _toPropertyKey$G(key);
18537
18701
  if (key in obj) {
18538
18702
  Object.defineProperty(obj, key, {
18539
18703
  value: value,
@@ -18609,7 +18773,7 @@
18609
18773
  function _nonIterableRest$f() {
18610
18774
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18611
18775
  }
18612
- function _toPrimitive$F(input, hint) {
18776
+ function _toPrimitive$G(input, hint) {
18613
18777
  if (typeof input !== "object" || input === null) return input;
18614
18778
  var prim = input[Symbol.toPrimitive];
18615
18779
  if (prim !== undefined) {
@@ -18619,8 +18783,8 @@
18619
18783
  }
18620
18784
  return (hint === "string" ? String : Number)(input);
18621
18785
  }
18622
- function _toPropertyKey$F(arg) {
18623
- var key = _toPrimitive$F(arg, "string");
18786
+ function _toPropertyKey$G(arg) {
18787
+ var key = _toPrimitive$G(arg, "string");
18624
18788
  return typeof key === "symbol" ? key : String(key);
18625
18789
  }
18626
18790