react-instantsearch-core 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
  //
@@ -7285,6 +7285,169 @@
7285
7285
  });
7286
7286
  }
7287
7287
 
7288
+ function _typeof$6(obj) {
7289
+ "@babel/helpers - typeof";
7290
+
7291
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7292
+ return typeof obj;
7293
+ } : function (obj) {
7294
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7295
+ }, _typeof$6(obj);
7296
+ }
7297
+ function ownKeys$5(object, enumerableOnly) {
7298
+ var keys = Object.keys(object);
7299
+ if (Object.getOwnPropertySymbols) {
7300
+ var symbols = Object.getOwnPropertySymbols(object);
7301
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
7302
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7303
+ })), keys.push.apply(keys, symbols);
7304
+ }
7305
+ return keys;
7306
+ }
7307
+ function _objectSpread$5(target) {
7308
+ for (var i = 1; i < arguments.length; i++) {
7309
+ var source = null != arguments[i] ? arguments[i] : {};
7310
+ i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7311
+ _defineProperty$5(target, key, source[key]);
7312
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7313
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7314
+ });
7315
+ }
7316
+ return target;
7317
+ }
7318
+ function _defineProperty$5(obj, key, value) {
7319
+ key = _toPropertyKey$5(key);
7320
+ if (key in obj) {
7321
+ Object.defineProperty(obj, key, {
7322
+ value: value,
7323
+ enumerable: true,
7324
+ configurable: true,
7325
+ writable: true
7326
+ });
7327
+ } else {
7328
+ obj[key] = value;
7329
+ }
7330
+ return obj;
7331
+ }
7332
+ function _toPropertyKey$5(arg) {
7333
+ var key = _toPrimitive$5(arg, "string");
7334
+ return _typeof$6(key) === "symbol" ? key : String(key);
7335
+ }
7336
+ function _toPrimitive$5(input, hint) {
7337
+ if (_typeof$6(input) !== "object" || input === null) return input;
7338
+ var prim = input[Symbol.toPrimitive];
7339
+ if (prim !== undefined) {
7340
+ var res = prim.call(input, hint || "default");
7341
+ if (_typeof$6(res) !== "object") return res;
7342
+ throw new TypeError("@@toPrimitive must return a primitive value.");
7343
+ }
7344
+ return (hint === "string" ? String : Number)(input);
7345
+ }
7346
+ // @ts-nocheck (types to be fixed during actual implementation)
7347
+
7348
+ function hydrateSearchClient(client, results) {
7349
+ if (!results) {
7350
+ return;
7351
+ }
7352
+
7353
+ // Disable cache hydration on:
7354
+ // - Algoliasearch API Client < v4 with cache disabled
7355
+ // - Third party clients (detected by the `addAlgoliaAgent` function missing)
7356
+
7357
+ if ((!client.transporter || client._cacheHydrated) && (!client._useCache || typeof client.addAlgoliaAgent !== 'function')) {
7358
+ return;
7359
+ }
7360
+
7361
+ // Algoliasearch API Client >= v4
7362
+ // To hydrate the client we need to populate the cache with the data from
7363
+ // the server (done in `hydrateSearchClientWithMultiIndexRequest` or
7364
+ // `hydrateSearchClientWithSingleIndexRequest`). But since there is no way
7365
+ // for us to compute the key the same way as `algoliasearch-client` we need
7366
+ // to populate it on a custom key and override the `search` method to
7367
+ // search on it first.
7368
+ if (client.transporter && !client._cacheHydrated) {
7369
+ client._cacheHydrated = true;
7370
+ var baseMethod = client.search;
7371
+ client.search = function (requests) {
7372
+ for (var _len = arguments.length, methodArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7373
+ methodArgs[_key - 1] = arguments[_key];
7374
+ }
7375
+ var requestsWithSerializedParams = requests.map(function (request) {
7376
+ return _objectSpread$5(_objectSpread$5({}, request), {}, {
7377
+ params: serializeQueryParameters(request.params)
7378
+ });
7379
+ });
7380
+ return client.transporter.responsesCache.get({
7381
+ method: 'search',
7382
+ args: [requestsWithSerializedParams].concat(methodArgs)
7383
+ }, function () {
7384
+ return baseMethod.apply(void 0, [requests].concat(methodArgs));
7385
+ });
7386
+ };
7387
+
7388
+ // Populate the cache with the data from the server
7389
+ client.transporter.responsesCache.set({
7390
+ method: 'search',
7391
+ args: [Object.keys(results).reduce(function (acc, key) {
7392
+ return acc.concat(results[key].results.map(function (request) {
7393
+ return {
7394
+ indexName: request.index,
7395
+ params: request.params
7396
+ };
7397
+ }));
7398
+ }, [])]
7399
+ }, {
7400
+ results: Object.keys(results).reduce(function (acc, key) {
7401
+ return acc.concat(results[key].results);
7402
+ }, [])
7403
+ });
7404
+ }
7405
+
7406
+ // Algoliasearch API Client < v4
7407
+ // Prior to client v4 we didn't have a proper API to hydrate the client
7408
+ // cache from the outside. The following code populates the cache with
7409
+ // a single-index result. You can find more information about the
7410
+ // computation of the key inside the client (see link below).
7411
+ // https://github.com/algolia/algoliasearch-client-javascript/blob/c27e89ff92b2a854ae6f40dc524bffe0f0cbc169/src/AlgoliaSearchCore.js#L232-L240
7412
+ if (!client.transporter) {
7413
+ var cacheKey = "/1/indexes/*/queries_body_".concat(JSON.stringify({
7414
+ requests: Object.keys(results).reduce(function (acc, key) {
7415
+ return acc.concat(results[key].rawResults.map(function (request) {
7416
+ return {
7417
+ indexName: request.index,
7418
+ params: request.params
7419
+ };
7420
+ }));
7421
+ }, [])
7422
+ }));
7423
+ client.cache = _objectSpread$5(_objectSpread$5({}, client.cache), {}, _defineProperty$5({}, cacheKey, JSON.stringify({
7424
+ results: Object.keys(results).reduce(function (acc, key) {
7425
+ return acc.concat(results[key].rawResults);
7426
+ }, [])
7427
+ })));
7428
+ }
7429
+ }
7430
+
7431
+ // This function is copied from the algoliasearch v4 API Client. If modified,
7432
+ // consider updating it also in `serializeQueryParameters` from `@algolia/transporter`.
7433
+ function serializeQueryParameters(parameters) {
7434
+ var isObjectOrArray = function isObjectOrArray(value) {
7435
+ return Object.prototype.toString.call(value) === '[object Object]' || Object.prototype.toString.call(value) === '[object Array]';
7436
+ };
7437
+ var encode = function encode(format) {
7438
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
7439
+ args[_key2 - 1] = arguments[_key2];
7440
+ }
7441
+ var i = 0;
7442
+ return format.replace(/%s/g, function () {
7443
+ return encodeURIComponent(args[i++]);
7444
+ });
7445
+ };
7446
+ return Object.keys(parameters).map(function (key) {
7447
+ return encode('%s=%s', key, isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key]);
7448
+ }).join('&');
7449
+ }
7450
+
7288
7451
  function isPrimitive(obj) {
7289
7452
  return obj !== Object(obj);
7290
7453
  }
@@ -7339,17 +7502,17 @@
7339
7502
  });
7340
7503
  }
7341
7504
 
7342
- function _typeof$6(obj) {
7505
+ function _typeof$7(obj) {
7343
7506
  "@babel/helpers - typeof";
7344
7507
 
7345
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7508
+ return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7346
7509
  return typeof obj;
7347
7510
  } : function (obj) {
7348
7511
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7349
- }, _typeof$6(obj);
7512
+ }, _typeof$7(obj);
7350
7513
  }
7351
7514
  var _excluded = ["facets", "disjunctiveFacets", "facetsRefinements", "facetsExcludes", "disjunctiveFacetsRefinements", "numericRefinements", "tagRefinements", "hierarchicalFacets", "hierarchicalFacetsRefinements", "ruleContexts"];
7352
- function ownKeys$5(object, enumerableOnly) {
7515
+ function ownKeys$6(object, enumerableOnly) {
7353
7516
  var keys = Object.keys(object);
7354
7517
  if (Object.getOwnPropertySymbols) {
7355
7518
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7359,19 +7522,19 @@
7359
7522
  }
7360
7523
  return keys;
7361
7524
  }
7362
- function _objectSpread$5(target) {
7525
+ function _objectSpread$6(target) {
7363
7526
  for (var i = 1; i < arguments.length; i++) {
7364
7527
  var source = null != arguments[i] ? arguments[i] : {};
7365
- i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7366
- _defineProperty$5(target, key, source[key]);
7367
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7528
+ i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
7529
+ _defineProperty$6(target, key, source[key]);
7530
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
7368
7531
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7369
7532
  });
7370
7533
  }
7371
7534
  return target;
7372
7535
  }
7373
- function _defineProperty$5(obj, key, value) {
7374
- key = _toPropertyKey$5(key);
7536
+ function _defineProperty$6(obj, key, value) {
7537
+ key = _toPropertyKey$6(key);
7375
7538
  if (key in obj) {
7376
7539
  Object.defineProperty(obj, key, {
7377
7540
  value: value,
@@ -7384,16 +7547,16 @@
7384
7547
  }
7385
7548
  return obj;
7386
7549
  }
7387
- function _toPropertyKey$5(arg) {
7388
- var key = _toPrimitive$5(arg, "string");
7389
- return _typeof$6(key) === "symbol" ? key : String(key);
7550
+ function _toPropertyKey$6(arg) {
7551
+ var key = _toPrimitive$6(arg, "string");
7552
+ return _typeof$7(key) === "symbol" ? key : String(key);
7390
7553
  }
7391
- function _toPrimitive$5(input, hint) {
7392
- if (_typeof$6(input) !== "object" || input === null) return input;
7554
+ function _toPrimitive$6(input, hint) {
7555
+ if (_typeof$7(input) !== "object" || input === null) return input;
7393
7556
  var prim = input[Symbol.toPrimitive];
7394
7557
  if (prim !== undefined) {
7395
7558
  var res = prim.call(input, hint || "default");
7396
- if (_typeof$6(res) !== "object") return res;
7559
+ if (_typeof$7(res) !== "object") return res;
7397
7560
  throw new TypeError("@@toPrimitive must return a primitive value.");
7398
7561
  }
7399
7562
  return (hint === "string" ? String : Number)(input);
@@ -7475,27 +7638,27 @@
7475
7638
  };
7476
7639
  var mergeFacetRefinements = function mergeFacetRefinements(left, right) {
7477
7640
  return left.setQueryParameters({
7478
- facetsRefinements: _objectSpread$5(_objectSpread$5({}, left.facetsRefinements), right.facetsRefinements)
7641
+ facetsRefinements: _objectSpread$6(_objectSpread$6({}, left.facetsRefinements), right.facetsRefinements)
7479
7642
  });
7480
7643
  };
7481
7644
  var mergeFacetsExcludes = function mergeFacetsExcludes(left, right) {
7482
7645
  return left.setQueryParameters({
7483
- facetsExcludes: _objectSpread$5(_objectSpread$5({}, left.facetsExcludes), right.facetsExcludes)
7646
+ facetsExcludes: _objectSpread$6(_objectSpread$6({}, left.facetsExcludes), right.facetsExcludes)
7484
7647
  });
7485
7648
  };
7486
7649
  var mergeDisjunctiveFacetsRefinements = function mergeDisjunctiveFacetsRefinements(left, right) {
7487
7650
  return left.setQueryParameters({
7488
- disjunctiveFacetsRefinements: _objectSpread$5(_objectSpread$5({}, left.disjunctiveFacetsRefinements), right.disjunctiveFacetsRefinements)
7651
+ disjunctiveFacetsRefinements: _objectSpread$6(_objectSpread$6({}, left.disjunctiveFacetsRefinements), right.disjunctiveFacetsRefinements)
7489
7652
  });
7490
7653
  };
7491
7654
  var mergeNumericRefinements = function mergeNumericRefinements(left, right) {
7492
7655
  return left.setQueryParameters({
7493
- numericRefinements: _objectSpread$5(_objectSpread$5({}, left.numericRefinements), right.numericRefinements)
7656
+ numericRefinements: _objectSpread$6(_objectSpread$6({}, left.numericRefinements), right.numericRefinements)
7494
7657
  });
7495
7658
  };
7496
7659
  var mergeHierarchicalFacetsRefinements = function mergeHierarchicalFacetsRefinements(left, right) {
7497
7660
  return left.setQueryParameters({
7498
- hierarchicalFacetsRefinements: _objectSpread$5(_objectSpread$5({}, left.hierarchicalFacetsRefinements), right.hierarchicalFacetsRefinements)
7661
+ hierarchicalFacetsRefinements: _objectSpread$6(_objectSpread$6({}, left.hierarchicalFacetsRefinements), right.hierarchicalFacetsRefinements)
7499
7662
  });
7500
7663
  };
7501
7664
  var mergeRuleContexts = function mergeRuleContexts(left, right) {
@@ -7621,16 +7784,16 @@
7621
7784
  return states;
7622
7785
  }
7623
7786
 
7624
- function _typeof$7(obj) {
7787
+ function _typeof$8(obj) {
7625
7788
  "@babel/helpers - typeof";
7626
7789
 
7627
- return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7790
+ return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7628
7791
  return typeof obj;
7629
7792
  } : function (obj) {
7630
7793
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7631
- }, _typeof$7(obj);
7794
+ }, _typeof$8(obj);
7632
7795
  }
7633
- function ownKeys$6(object, enumerableOnly) {
7796
+ function ownKeys$7(object, enumerableOnly) {
7634
7797
  var keys = Object.keys(object);
7635
7798
  if (Object.getOwnPropertySymbols) {
7636
7799
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7640,19 +7803,19 @@
7640
7803
  }
7641
7804
  return keys;
7642
7805
  }
7643
- function _objectSpread$6(target) {
7806
+ function _objectSpread$7(target) {
7644
7807
  for (var i = 1; i < arguments.length; i++) {
7645
7808
  var source = null != arguments[i] ? arguments[i] : {};
7646
- i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
7647
- _defineProperty$6(target, key, source[key]);
7648
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
7809
+ i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
7810
+ _defineProperty$7(target, key, source[key]);
7811
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
7649
7812
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7650
7813
  });
7651
7814
  }
7652
7815
  return target;
7653
7816
  }
7654
- function _defineProperty$6(obj, key, value) {
7655
- key = _toPropertyKey$6(key);
7817
+ function _defineProperty$7(obj, key, value) {
7818
+ key = _toPropertyKey$7(key);
7656
7819
  if (key in obj) {
7657
7820
  Object.defineProperty(obj, key, {
7658
7821
  value: value,
@@ -7665,16 +7828,16 @@
7665
7828
  }
7666
7829
  return obj;
7667
7830
  }
7668
- function _toPropertyKey$6(arg) {
7669
- var key = _toPrimitive$6(arg, "string");
7670
- return _typeof$7(key) === "symbol" ? key : String(key);
7831
+ function _toPropertyKey$7(arg) {
7832
+ var key = _toPrimitive$7(arg, "string");
7833
+ return _typeof$8(key) === "symbol" ? key : String(key);
7671
7834
  }
7672
- function _toPrimitive$6(input, hint) {
7673
- if (_typeof$7(input) !== "object" || input === null) return input;
7835
+ function _toPrimitive$7(input, hint) {
7836
+ if (_typeof$8(input) !== "object" || input === null) return input;
7674
7837
  var prim = input[Symbol.toPrimitive];
7675
7838
  if (prim !== undefined) {
7676
7839
  var res = prim.call(input, hint || "default");
7677
- if (_typeof$7(res) !== "object") return res;
7840
+ if (_typeof$8(res) !== "object") return res;
7678
7841
  throw new TypeError("@@toPrimitive must return a primitive value.");
7679
7842
  }
7680
7843
  return (hint === "string" ? String : Number)(input);
@@ -7684,13 +7847,13 @@
7684
7847
  return part.isHighlighted;
7685
7848
  })) {
7686
7849
  return parts.map(function (part) {
7687
- return _objectSpread$6(_objectSpread$6({}, part), {}, {
7850
+ return _objectSpread$7(_objectSpread$7({}, part), {}, {
7688
7851
  isHighlighted: false
7689
7852
  });
7690
7853
  });
7691
7854
  }
7692
7855
  return parts.map(function (part, i) {
7693
- return _objectSpread$6(_objectSpread$6({}, part), {}, {
7856
+ return _objectSpread$7(_objectSpread$7({}, part), {}, {
7694
7857
  isHighlighted: !getHighlightFromSiblings(parts, i)
7695
7858
  });
7696
7859
  });
@@ -7723,16 +7886,16 @@
7723
7886
  return Array.isArray(value) ? value : [value];
7724
7887
  }
7725
7888
 
7726
- function _typeof$8(obj) {
7889
+ function _typeof$9(obj) {
7727
7890
  "@babel/helpers - typeof";
7728
7891
 
7729
- return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7892
+ return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7730
7893
  return typeof obj;
7731
7894
  } : function (obj) {
7732
7895
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7733
- }, _typeof$8(obj);
7896
+ }, _typeof$9(obj);
7734
7897
  }
7735
- function ownKeys$7(object, enumerableOnly) {
7898
+ function ownKeys$8(object, enumerableOnly) {
7736
7899
  var keys = Object.keys(object);
7737
7900
  if (Object.getOwnPropertySymbols) {
7738
7901
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7742,19 +7905,19 @@
7742
7905
  }
7743
7906
  return keys;
7744
7907
  }
7745
- function _objectSpread$7(target) {
7908
+ function _objectSpread$8(target) {
7746
7909
  for (var i = 1; i < arguments.length; i++) {
7747
7910
  var source = null != arguments[i] ? arguments[i] : {};
7748
- i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
7749
- _defineProperty$7(target, key, source[key]);
7750
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
7911
+ i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
7912
+ _defineProperty$8(target, key, source[key]);
7913
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
7751
7914
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7752
7915
  });
7753
7916
  }
7754
7917
  return target;
7755
7918
  }
7756
- function _defineProperty$7(obj, key, value) {
7757
- key = _toPropertyKey$7(key);
7919
+ function _defineProperty$8(obj, key, value) {
7920
+ key = _toPropertyKey$8(key);
7758
7921
  if (key in obj) {
7759
7922
  Object.defineProperty(obj, key, {
7760
7923
  value: value,
@@ -7767,16 +7930,16 @@
7767
7930
  }
7768
7931
  return obj;
7769
7932
  }
7770
- function _toPropertyKey$7(arg) {
7771
- var key = _toPrimitive$7(arg, "string");
7772
- return _typeof$8(key) === "symbol" ? key : String(key);
7933
+ function _toPropertyKey$8(arg) {
7934
+ var key = _toPrimitive$8(arg, "string");
7935
+ return _typeof$9(key) === "symbol" ? key : String(key);
7773
7936
  }
7774
- function _toPrimitive$7(input, hint) {
7775
- if (_typeof$8(input) !== "object" || input === null) return input;
7937
+ function _toPrimitive$8(input, hint) {
7938
+ if (_typeof$9(input) !== "object" || input === null) return input;
7776
7939
  var prim = input[Symbol.toPrimitive];
7777
7940
  if (prim !== undefined) {
7778
7941
  var res = prim.call(input, hint || "default");
7779
- if (_typeof$8(res) !== "object") return res;
7942
+ if (_typeof$9(res) !== "object") return res;
7780
7943
  throw new TypeError("@@toPrimitive must return a primitive value.");
7781
7944
  }
7782
7945
  return (hint === "string" ? String : Number)(input);
@@ -7795,7 +7958,7 @@
7795
7958
  // the state. The function `setQueryParameters` omits the values that
7796
7959
  // are `undefined` on the next state.
7797
7960
  return state.setQueryParameters(Object.keys(widgetParams.searchParameters).reduce(function (acc, key) {
7798
- return _objectSpread$7(_objectSpread$7({}, acc), {}, _defineProperty$7({}, key, undefined));
7961
+ return _objectSpread$8(_objectSpread$8({}, acc), {}, _defineProperty$8({}, key, undefined));
7799
7962
  }, {}));
7800
7963
  }
7801
7964
  var connectConfigure = function connectConfigure() {
@@ -7823,13 +7986,13 @@
7823
7986
  $$type: 'ais.configure',
7824
7987
  init: function init(initOptions) {
7825
7988
  var instantSearchInstance = initOptions.instantSearchInstance;
7826
- renderFn(_objectSpread$7(_objectSpread$7({}, this.getWidgetRenderState(initOptions)), {}, {
7989
+ renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(initOptions)), {}, {
7827
7990
  instantSearchInstance: instantSearchInstance
7828
7991
  }), true);
7829
7992
  },
7830
7993
  render: function render(renderOptions) {
7831
7994
  var instantSearchInstance = renderOptions.instantSearchInstance;
7832
- renderFn(_objectSpread$7(_objectSpread$7({}, this.getWidgetRenderState(renderOptions)), {}, {
7995
+ renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(renderOptions)), {}, {
7833
7996
  instantSearchInstance: instantSearchInstance
7834
7997
  }), false);
7835
7998
  },
@@ -7841,9 +8004,9 @@
7841
8004
  getRenderState: function getRenderState(renderState, renderOptions) {
7842
8005
  var _renderState$configur;
7843
8006
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
7844
- return _objectSpread$7(_objectSpread$7({}, renderState), {}, {
7845
- configure: _objectSpread$7(_objectSpread$7({}, widgetRenderState), {}, {
7846
- widgetParams: _objectSpread$7(_objectSpread$7({}, widgetRenderState.widgetParams), {}, {
8007
+ return _objectSpread$8(_objectSpread$8({}, renderState), {}, {
8008
+ configure: _objectSpread$8(_objectSpread$8({}, widgetRenderState), {}, {
8009
+ widgetParams: _objectSpread$8(_objectSpread$8({}, widgetRenderState.widgetParams), {}, {
7847
8010
  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()
7848
8011
  })
7849
8012
  })
@@ -7861,11 +8024,11 @@
7861
8024
  },
7862
8025
  getWidgetSearchParameters: function getWidgetSearchParameters(state, _ref3) {
7863
8026
  var uiState = _ref3.uiState;
7864
- return mergeSearchParameters(state, new algoliasearchHelper_1.SearchParameters(_objectSpread$7(_objectSpread$7({}, uiState.configure), widgetParams.searchParameters)));
8027
+ return mergeSearchParameters(state, new algoliasearchHelper_1.SearchParameters(_objectSpread$8(_objectSpread$8({}, uiState.configure), widgetParams.searchParameters)));
7865
8028
  },
7866
8029
  getWidgetUiState: function getWidgetUiState(uiState) {
7867
- return _objectSpread$7(_objectSpread$7({}, uiState), {}, {
7868
- configure: _objectSpread$7(_objectSpread$7({}, uiState.configure), widgetParams.searchParameters)
8030
+ return _objectSpread$8(_objectSpread$8({}, uiState), {}, {
8031
+ configure: _objectSpread$8(_objectSpread$8({}, uiState.configure), widgetParams.searchParameters)
7869
8032
  });
7870
8033
  }
7871
8034
  };
@@ -7899,7 +8062,7 @@
7899
8062
  return _arr;
7900
8063
  }
7901
8064
  }
7902
- function ownKeys$8(object, enumerableOnly) {
8065
+ function ownKeys$9(object, enumerableOnly) {
7903
8066
  var keys = Object.keys(object);
7904
8067
  if (Object.getOwnPropertySymbols) {
7905
8068
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7912,25 +8075,25 @@
7912
8075
  function _objectSpread2(target) {
7913
8076
  for (var i = 1; i < arguments.length; i++) {
7914
8077
  var source = null != arguments[i] ? arguments[i] : {};
7915
- i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
7916
- _defineProperty$8(target, key, source[key]);
7917
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
8078
+ i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8079
+ _defineProperty$9(target, key, source[key]);
8080
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
7918
8081
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7919
8082
  });
7920
8083
  }
7921
8084
  return target;
7922
8085
  }
7923
- function _typeof$9(obj) {
8086
+ function _typeof$a(obj) {
7924
8087
  "@babel/helpers - typeof";
7925
8088
 
7926
- return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8089
+ return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7927
8090
  return typeof obj;
7928
8091
  } : function (obj) {
7929
8092
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7930
- }, _typeof$9(obj);
8093
+ }, _typeof$a(obj);
7931
8094
  }
7932
- function _defineProperty$8(obj, key, value) {
7933
- key = _toPropertyKey$8(key);
8095
+ function _defineProperty$9(obj, key, value) {
8096
+ key = _toPropertyKey$9(key);
7934
8097
  if (key in obj) {
7935
8098
  Object.defineProperty(obj, key, {
7936
8099
  value: value,
@@ -7992,7 +8155,7 @@
7992
8155
  function _nonIterableRest$3() {
7993
8156
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7994
8157
  }
7995
- function _toPrimitive$8(input, hint) {
8158
+ function _toPrimitive$9(input, hint) {
7996
8159
  if (typeof input !== "object" || input === null) return input;
7997
8160
  var prim = input[Symbol.toPrimitive];
7998
8161
  if (prim !== undefined) {
@@ -8002,8 +8165,8 @@
8002
8165
  }
8003
8166
  return (hint === "string" ? String : Number)(input);
8004
8167
  }
8005
- function _toPropertyKey$8(arg) {
8006
- var key = _toPrimitive$8(arg, "string");
8168
+ function _toPropertyKey$9(arg) {
8169
+ var key = _toPrimitive$9(arg, "string");
8007
8170
  return typeof key === "symbol" ? key : String(key);
8008
8171
  }
8009
8172
 
@@ -8039,7 +8202,7 @@
8039
8202
  }
8040
8203
  return len === -1;
8041
8204
  }
8042
- if (!ctor || _typeof$9(foo) === 'object') {
8205
+ if (!ctor || _typeof$a(foo) === 'object') {
8043
8206
  len = 0;
8044
8207
  // eslint-disable-next-line guard-for-in, no-restricted-syntax
8045
8208
  for (ctor in foo) {
@@ -8368,7 +8531,7 @@
8368
8531
  return null;
8369
8532
  }
8370
8533
 
8371
- function ownKeys$9(object, enumerableOnly) {
8534
+ function ownKeys$a(object, enumerableOnly) {
8372
8535
  var keys = Object.keys(object);
8373
8536
  if (Object.getOwnPropertySymbols) {
8374
8537
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8378,19 +8541,19 @@
8378
8541
  }
8379
8542
  return keys;
8380
8543
  }
8381
- function _objectSpread$8(target) {
8544
+ function _objectSpread$9(target) {
8382
8545
  for (var i = 1; i < arguments.length; i++) {
8383
8546
  var source = null != arguments[i] ? arguments[i] : {};
8384
- i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8385
- _defineProperty$9(target, key, source[key]);
8386
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
8547
+ i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) {
8548
+ _defineProperty$a(target, key, source[key]);
8549
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) {
8387
8550
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8388
8551
  });
8389
8552
  }
8390
8553
  return target;
8391
8554
  }
8392
- function _defineProperty$9(obj, key, value) {
8393
- key = _toPropertyKey$9(key);
8555
+ function _defineProperty$a(obj, key, value) {
8556
+ key = _toPropertyKey$a(key);
8394
8557
  if (key in obj) {
8395
8558
  Object.defineProperty(obj, key, {
8396
8559
  value: value,
@@ -8403,28 +8566,28 @@
8403
8566
  }
8404
8567
  return obj;
8405
8568
  }
8406
- function _toPropertyKey$9(arg) {
8407
- var key = _toPrimitive$9(arg, "string");
8408
- return _typeof$a(key) === "symbol" ? key : String(key);
8569
+ function _toPropertyKey$a(arg) {
8570
+ var key = _toPrimitive$a(arg, "string");
8571
+ return _typeof$b(key) === "symbol" ? key : String(key);
8409
8572
  }
8410
- function _toPrimitive$9(input, hint) {
8411
- if (_typeof$a(input) !== "object" || input === null) return input;
8573
+ function _toPrimitive$a(input, hint) {
8574
+ if (_typeof$b(input) !== "object" || input === null) return input;
8412
8575
  var prim = input[Symbol.toPrimitive];
8413
8576
  if (prim !== undefined) {
8414
8577
  var res = prim.call(input, hint || "default");
8415
- if (_typeof$a(res) !== "object") return res;
8578
+ if (_typeof$b(res) !== "object") return res;
8416
8579
  throw new TypeError("@@toPrimitive must return a primitive value.");
8417
8580
  }
8418
8581
  return (hint === "string" ? String : Number)(input);
8419
8582
  }
8420
- function _typeof$a(obj) {
8583
+ function _typeof$b(obj) {
8421
8584
  "@babel/helpers - typeof";
8422
8585
 
8423
- return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8586
+ return _typeof$b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8424
8587
  return typeof obj;
8425
8588
  } : function (obj) {
8426
8589
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8427
- }, _typeof$a(obj);
8590
+ }, _typeof$b(obj);
8428
8591
  }
8429
8592
  var withUsage$1 = createDocumentationMessageGenerator({
8430
8593
  name: 'dynamic-widgets',
@@ -8445,7 +8608,7 @@
8445
8608
  } : _widgetParams$transfo,
8446
8609
  fallbackWidget = widgetParams.fallbackWidget;
8447
8610
  if (!(widgets && Array.isArray(widgets) && widgets.every(function (widget) {
8448
- return _typeof$a(widget) === 'object';
8611
+ return _typeof$b(widget) === 'object';
8449
8612
  }))) {
8450
8613
  throw new Error(withUsage$1('The `widgets` option expects an array of widgets.'));
8451
8614
  }
@@ -8463,7 +8626,7 @@
8463
8626
  isMounted: false
8464
8627
  });
8465
8628
  });
8466
- renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(initOptions)), {}, {
8629
+ renderFn(_objectSpread$9(_objectSpread$9({}, this.getWidgetRenderState(initOptions)), {}, {
8467
8630
  instantSearchInstance: initOptions.instantSearchInstance
8468
8631
  }), true);
8469
8632
  },
@@ -8510,7 +8673,7 @@
8510
8673
  setTimeout(function () {
8511
8674
  return parent.removeWidgets(widgetsToUnmount);
8512
8675
  }, 0);
8513
- renderFn(_objectSpread$8(_objectSpread$8({}, renderState), {}, {
8676
+ renderFn(_objectSpread$9(_objectSpread$9({}, renderState), {}, {
8514
8677
  instantSearchInstance: renderOptions.instantSearchInstance
8515
8678
  }), false);
8516
8679
  },
@@ -8536,7 +8699,7 @@
8536
8699
  }));
8537
8700
  },
8538
8701
  getRenderState: function getRenderState(renderState, renderOptions) {
8539
- return _objectSpread$8(_objectSpread$8({}, renderState), {}, {
8702
+ return _objectSpread$9(_objectSpread$9({}, renderState), {}, {
8540
8703
  dynamicWidgets: this.getWidgetRenderState(renderOptions)
8541
8704
  });
8542
8705
  },
@@ -8602,7 +8765,7 @@
8602
8765
  }));
8603
8766
  }
8604
8767
  function isReactElement(element) {
8605
- return _typeof$9(element) === 'object' && element.props;
8768
+ return _typeof$a(element) === 'object' && element.props;
8606
8769
  }
8607
8770
  function getWidgetAttribute$1(element) {
8608
8771
  if (!isReactElement(element)) {
@@ -8621,17 +8784,17 @@
8621
8784
  return undefined;
8622
8785
  }
8623
8786
 
8624
- function _typeof$b(obj) {
8787
+ function _typeof$c(obj) {
8625
8788
  "@babel/helpers - typeof";
8626
8789
 
8627
- return _typeof$b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8790
+ return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8628
8791
  return typeof obj;
8629
8792
  } : function (obj) {
8630
8793
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8631
- }, _typeof$b(obj);
8794
+ }, _typeof$c(obj);
8632
8795
  }
8633
8796
  var _excluded$3 = ["initialSearchParameters"];
8634
- function ownKeys$a(object, enumerableOnly) {
8797
+ function ownKeys$b(object, enumerableOnly) {
8635
8798
  var keys = Object.keys(object);
8636
8799
  if (Object.getOwnPropertySymbols) {
8637
8800
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8641,19 +8804,19 @@
8641
8804
  }
8642
8805
  return keys;
8643
8806
  }
8644
- function _objectSpread$9(target) {
8807
+ function _objectSpread$a(target) {
8645
8808
  for (var i = 1; i < arguments.length; i++) {
8646
8809
  var source = null != arguments[i] ? arguments[i] : {};
8647
- i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) {
8648
- _defineProperty$a(target, key, source[key]);
8649
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) {
8810
+ i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
8811
+ _defineProperty$b(target, key, source[key]);
8812
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
8650
8813
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8651
8814
  });
8652
8815
  }
8653
8816
  return target;
8654
8817
  }
8655
- function _defineProperty$a(obj, key, value) {
8656
- key = _toPropertyKey$a(key);
8818
+ function _defineProperty$b(obj, key, value) {
8819
+ key = _toPropertyKey$b(key);
8657
8820
  if (key in obj) {
8658
8821
  Object.defineProperty(obj, key, {
8659
8822
  value: value,
@@ -8666,16 +8829,16 @@
8666
8829
  }
8667
8830
  return obj;
8668
8831
  }
8669
- function _toPropertyKey$a(arg) {
8670
- var key = _toPrimitive$a(arg, "string");
8671
- return _typeof$b(key) === "symbol" ? key : String(key);
8832
+ function _toPropertyKey$b(arg) {
8833
+ var key = _toPrimitive$b(arg, "string");
8834
+ return _typeof$c(key) === "symbol" ? key : String(key);
8672
8835
  }
8673
- function _toPrimitive$a(input, hint) {
8674
- if (_typeof$b(input) !== "object" || input === null) return input;
8836
+ function _toPrimitive$b(input, hint) {
8837
+ if (_typeof$c(input) !== "object" || input === null) return input;
8675
8838
  var prim = input[Symbol.toPrimitive];
8676
8839
  if (prim !== undefined) {
8677
8840
  var res = prim.call(input, hint || "default");
8678
- if (_typeof$b(res) !== "object") return res;
8841
+ if (_typeof$c(res) !== "object") return res;
8679
8842
  throw new TypeError("@@toPrimitive must return a primitive value.");
8680
8843
  }
8681
8844
  return (hint === "string" ? String : Number)(input);
@@ -8858,9 +9021,9 @@
8858
9021
  },
8859
9022
  createURL: function createURL(nextState) {
8860
9023
  if (typeof nextState === 'function') {
8861
- return localInstantSearchInstance._createURL(_defineProperty$a({}, indexId, nextState(localUiState)));
9024
+ return localInstantSearchInstance._createURL(_defineProperty$b({}, indexId, nextState(localUiState)));
8862
9025
  }
8863
- return localInstantSearchInstance._createURL(_defineProperty$a({}, indexId, getLocalWidgetsUiState(localWidgets, {
9026
+ return localInstantSearchInstance._createURL(_defineProperty$b({}, indexId, getLocalWidgetsUiState(localWidgets, {
8864
9027
  searchParameters: nextState,
8865
9028
  helper: helper
8866
9029
  })));
@@ -9168,7 +9331,7 @@
9168
9331
  getWidgetUiState: function getWidgetUiState(uiState) {
9169
9332
  return localWidgets.filter(isIndexWidget).reduce(function (previousUiState, innerIndex) {
9170
9333
  return innerIndex.getWidgetUiState(previousUiState);
9171
- }, _objectSpread$9(_objectSpread$9({}, uiState), {}, _defineProperty$a({}, indexId, _objectSpread$9(_objectSpread$9({}, uiState[indexId]), localUiState))));
9334
+ }, _objectSpread$a(_objectSpread$a({}, uiState), {}, _defineProperty$b({}, indexId, _objectSpread$a(_objectSpread$a({}, uiState[indexId]), localUiState))));
9172
9335
  },
9173
9336
  getWidgetState: function getWidgetState(uiState) {
9174
9337
  return this.getWidgetUiState(uiState);
@@ -9189,7 +9352,7 @@
9189
9352
  setIndexUiState: function setIndexUiState(indexUiState) {
9190
9353
  var nextIndexUiState = typeof indexUiState === 'function' ? indexUiState(localUiState) : indexUiState;
9191
9354
  localInstantSearchInstance.setUiState(function (state) {
9192
- return _objectSpread$9(_objectSpread$9({}, state), {}, _defineProperty$a({}, indexId, nextIndexUiState));
9355
+ return _objectSpread$a(_objectSpread$a({}, state), {}, _defineProperty$b({}, indexId, nextIndexUiState));
9193
9356
  });
9194
9357
  }
9195
9358
  };
@@ -9199,7 +9362,7 @@
9199
9362
  instantSearchInstance = _ref7.instantSearchInstance,
9200
9363
  parent = _ref7.parent;
9201
9364
  var parentIndexName = parent ? parent.getIndexId() : instantSearchInstance.mainIndex.getIndexId();
9202
- instantSearchInstance.renderState = _objectSpread$9(_objectSpread$9({}, instantSearchInstance.renderState), {}, _defineProperty$a({}, parentIndexName, _objectSpread$9(_objectSpread$9({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
9365
+ instantSearchInstance.renderState = _objectSpread$a(_objectSpread$a({}, instantSearchInstance.renderState), {}, _defineProperty$b({}, parentIndexName, _objectSpread$a(_objectSpread$a({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
9203
9366
  }
9204
9367
 
9205
9368
  /**
@@ -9367,21 +9530,21 @@
9367
9530
  return reverseHighlightedValue.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag, 'g'), "<".concat(highlightedTagName, " class=\"").concat(className, "\">")).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag, 'g'), "</".concat(highlightedTagName, ">"));
9368
9531
  }
9369
9532
 
9370
- function _typeof$c(obj) {
9533
+ function _typeof$d(obj) {
9371
9534
  "@babel/helpers - typeof";
9372
9535
 
9373
- return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9536
+ return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9374
9537
  return typeof obj;
9375
9538
  } : function (obj) {
9376
9539
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9377
- }, _typeof$c(obj);
9540
+ }, _typeof$d(obj);
9378
9541
  }
9379
9542
 
9380
9543
  /** @deprecated use bindEvent instead */
9381
9544
  function writeDataAttributes(_ref) {
9382
9545
  var method = _ref.method,
9383
9546
  payload = _ref.payload;
9384
- if (_typeof$c(payload) !== 'object') {
9547
+ if (_typeof$d(payload) !== 'object') {
9385
9548
  throw new Error("The insights helper expects the payload to be an object.");
9386
9549
  }
9387
9550
  var serializedPayload;
@@ -9403,18 +9566,18 @@
9403
9566
  });
9404
9567
  }
9405
9568
 
9406
- function _typeof$d(obj) {
9569
+ function _typeof$e(obj) {
9407
9570
  "@babel/helpers - typeof";
9408
9571
 
9409
- return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9572
+ return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9410
9573
  return typeof obj;
9411
9574
  } : function (obj) {
9412
9575
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9413
- }, _typeof$d(obj);
9576
+ }, _typeof$e(obj);
9414
9577
  }
9415
9578
  var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
9416
9579
  function getCookie(name) {
9417
- if ((typeof document === "undefined" ? "undefined" : _typeof$d(document)) !== 'object' || typeof document.cookie !== 'string') {
9580
+ if ((typeof document === "undefined" ? "undefined" : _typeof$e(document)) !== 'object' || typeof document.cookie !== 'string') {
9418
9581
  return undefined;
9419
9582
  }
9420
9583
  var prefix = "".concat(name, "=");
@@ -9434,16 +9597,16 @@
9434
9597
  return getCookie(ANONYMOUS_TOKEN_COOKIE_KEY);
9435
9598
  }
9436
9599
 
9437
- function _typeof$e(obj) {
9600
+ function _typeof$f(obj) {
9438
9601
  "@babel/helpers - typeof";
9439
9602
 
9440
- return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9603
+ return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9441
9604
  return typeof obj;
9442
9605
  } : function (obj) {
9443
9606
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9444
- }, _typeof$e(obj);
9607
+ }, _typeof$f(obj);
9445
9608
  }
9446
- function ownKeys$b(object, enumerableOnly) {
9609
+ function ownKeys$c(object, enumerableOnly) {
9447
9610
  var keys = Object.keys(object);
9448
9611
  if (Object.getOwnPropertySymbols) {
9449
9612
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9453,19 +9616,19 @@
9453
9616
  }
9454
9617
  return keys;
9455
9618
  }
9456
- function _objectSpread$a(target) {
9619
+ function _objectSpread$b(target) {
9457
9620
  for (var i = 1; i < arguments.length; i++) {
9458
9621
  var source = null != arguments[i] ? arguments[i] : {};
9459
- i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
9460
- _defineProperty$b(target, key, source[key]);
9461
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
9622
+ i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
9623
+ _defineProperty$c(target, key, source[key]);
9624
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
9462
9625
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9463
9626
  });
9464
9627
  }
9465
9628
  return target;
9466
9629
  }
9467
- function _defineProperty$b(obj, key, value) {
9468
- key = _toPropertyKey$b(key);
9630
+ function _defineProperty$c(obj, key, value) {
9631
+ key = _toPropertyKey$c(key);
9469
9632
  if (key in obj) {
9470
9633
  Object.defineProperty(obj, key, {
9471
9634
  value: value,
@@ -9478,16 +9641,16 @@
9478
9641
  }
9479
9642
  return obj;
9480
9643
  }
9481
- function _toPropertyKey$b(arg) {
9482
- var key = _toPrimitive$b(arg, "string");
9483
- return _typeof$e(key) === "symbol" ? key : String(key);
9644
+ function _toPropertyKey$c(arg) {
9645
+ var key = _toPrimitive$c(arg, "string");
9646
+ return _typeof$f(key) === "symbol" ? key : String(key);
9484
9647
  }
9485
- function _toPrimitive$b(input, hint) {
9486
- if (_typeof$e(input) !== "object" || input === null) return input;
9648
+ function _toPrimitive$c(input, hint) {
9649
+ if (_typeof$f(input) !== "object" || input === null) return input;
9487
9650
  var prim = input[Symbol.toPrimitive];
9488
9651
  if (prim !== undefined) {
9489
9652
  var res = prim.call(input, hint || "default");
9490
- if (_typeof$e(res) !== "object") return res;
9653
+ if (_typeof$f(res) !== "object") return res;
9491
9654
  throw new TypeError("@@toPrimitive must return a primitive value.");
9492
9655
  }
9493
9656
  return (hint === "string" ? String : Number)(input);
@@ -9640,7 +9803,7 @@
9640
9803
  // Only `init` if the `insightsInitParams` option is passed or
9641
9804
  // if the `insightsClient` version doesn't supports optional `init` calling.
9642
9805
  if (insightsInitParams || !isModernInsightsClient(insightsClient)) {
9643
- insightsClient('init', _objectSpread$a({
9806
+ insightsClient('init', _objectSpread$b({
9644
9807
  appId: appId,
9645
9808
  apiKey: apiKey,
9646
9809
  partial: true
@@ -9681,7 +9844,7 @@
9681
9844
  // We don't want to force clickAnalytics when the insights is enabled from the search response.
9682
9845
  // This means we don't enable insights for indices that don't opt in
9683
9846
  if (!$$automatic) {
9684
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$a(_objectSpread$a({}, helper.state), {}, {
9847
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), {}, {
9685
9848
  clickAnalytics: true
9686
9849
  }));
9687
9850
  }
@@ -9695,7 +9858,7 @@
9695
9858
  }
9696
9859
  var existingToken = helper.state.userToken;
9697
9860
  function applyToken() {
9698
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$a(_objectSpread$a({}, helper.state), {}, {
9861
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), {}, {
9699
9862
  userToken: userToken
9700
9863
  }));
9701
9864
  if (existingToken && existingToken !== userToken) {
@@ -9765,7 +9928,7 @@
9765
9928
  insightsClient('onUserTokenChange', undefined);
9766
9929
  instantSearchInstance.sendEventToInsights = noop;
9767
9930
  if (helper && initialParameters) {
9768
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$a(_objectSpread$a({}, helper.state), initialParameters));
9931
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), initialParameters));
9769
9932
  instantSearchInstance.scheduleSearch();
9770
9933
  }
9771
9934
  }
@@ -10693,14 +10856,14 @@
10693
10856
  stringify: stringify_1
10694
10857
  };
10695
10858
 
10696
- function _typeof$f(obj) {
10859
+ function _typeof$g(obj) {
10697
10860
  "@babel/helpers - typeof";
10698
10861
 
10699
- return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10862
+ return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10700
10863
  return typeof obj;
10701
10864
  } : function (obj) {
10702
10865
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10703
- }, _typeof$f(obj);
10866
+ }, _typeof$g(obj);
10704
10867
  }
10705
10868
  function _classCallCheck(instance, Constructor) {
10706
10869
  if (!(instance instanceof Constructor)) {
@@ -10713,7 +10876,7 @@
10713
10876
  descriptor.enumerable = descriptor.enumerable || false;
10714
10877
  descriptor.configurable = true;
10715
10878
  if ("value" in descriptor) descriptor.writable = true;
10716
- Object.defineProperty(target, _toPropertyKey$c(descriptor.key), descriptor);
10879
+ Object.defineProperty(target, _toPropertyKey$d(descriptor.key), descriptor);
10717
10880
  }
10718
10881
  }
10719
10882
  function _createClass(Constructor, protoProps, staticProps) {
@@ -10724,8 +10887,8 @@
10724
10887
  });
10725
10888
  return Constructor;
10726
10889
  }
10727
- function _defineProperty$c(obj, key, value) {
10728
- key = _toPropertyKey$c(key);
10890
+ function _defineProperty$d(obj, key, value) {
10891
+ key = _toPropertyKey$d(key);
10729
10892
  if (key in obj) {
10730
10893
  Object.defineProperty(obj, key, {
10731
10894
  value: value,
@@ -10738,16 +10901,16 @@
10738
10901
  }
10739
10902
  return obj;
10740
10903
  }
10741
- function _toPropertyKey$c(arg) {
10742
- var key = _toPrimitive$c(arg, "string");
10743
- return _typeof$f(key) === "symbol" ? key : String(key);
10904
+ function _toPropertyKey$d(arg) {
10905
+ var key = _toPrimitive$d(arg, "string");
10906
+ return _typeof$g(key) === "symbol" ? key : String(key);
10744
10907
  }
10745
- function _toPrimitive$c(input, hint) {
10746
- if (_typeof$f(input) !== "object" || input === null) return input;
10908
+ function _toPrimitive$d(input, hint) {
10909
+ if (_typeof$g(input) !== "object" || input === null) return input;
10747
10910
  var prim = input[Symbol.toPrimitive];
10748
10911
  if (prim !== undefined) {
10749
10912
  var res = prim.call(input, hint || "default");
10750
- if (_typeof$f(res) !== "object") return res;
10913
+ if (_typeof$g(res) !== "object") return res;
10751
10914
  throw new TypeError("@@toPrimitive must return a primitive value.");
10752
10915
  }
10753
10916
  return (hint === "string" ? String : Number)(input);
@@ -10776,11 +10939,11 @@
10776
10939
  dispose = _ref.dispose,
10777
10940
  push = _ref.push;
10778
10941
  _classCallCheck(this, BrowserHistory);
10779
- _defineProperty$c(this, "$$type", 'ais.browser');
10942
+ _defineProperty$d(this, "$$type", 'ais.browser');
10780
10943
  /**
10781
10944
  * Transforms a UI state into a title for the page.
10782
10945
  */
10783
- _defineProperty$c(this, "windowTitle", void 0);
10946
+ _defineProperty$d(this, "windowTitle", void 0);
10784
10947
  /**
10785
10948
  * Time in milliseconds before performing a write in the history.
10786
10949
  * It prevents from adding too many entries in the history and
@@ -10788,42 +10951,42 @@
10788
10951
  *
10789
10952
  * @default 400
10790
10953
  */
10791
- _defineProperty$c(this, "writeDelay", void 0);
10954
+ _defineProperty$d(this, "writeDelay", void 0);
10792
10955
  /**
10793
10956
  * Creates a full URL based on the route state.
10794
10957
  * The storage adaptor maps all syncable keys to the query string of the URL.
10795
10958
  */
10796
- _defineProperty$c(this, "_createURL", void 0);
10959
+ _defineProperty$d(this, "_createURL", void 0);
10797
10960
  /**
10798
10961
  * Parses the URL into a route state.
10799
10962
  * It should be symmetrical to `createURL`.
10800
10963
  */
10801
- _defineProperty$c(this, "parseURL", void 0);
10964
+ _defineProperty$d(this, "parseURL", void 0);
10802
10965
  /**
10803
10966
  * Returns the location to store in the history.
10804
10967
  * @default () => window.location
10805
10968
  */
10806
- _defineProperty$c(this, "getLocation", void 0);
10807
- _defineProperty$c(this, "writeTimer", void 0);
10808
- _defineProperty$c(this, "_onPopState", void 0);
10969
+ _defineProperty$d(this, "getLocation", void 0);
10970
+ _defineProperty$d(this, "writeTimer", void 0);
10971
+ _defineProperty$d(this, "_onPopState", void 0);
10809
10972
  /**
10810
10973
  * Indicates if last action was back/forward in the browser.
10811
10974
  */
10812
- _defineProperty$c(this, "inPopState", false);
10975
+ _defineProperty$d(this, "inPopState", false);
10813
10976
  /**
10814
10977
  * Indicates whether the history router is disposed or not.
10815
10978
  */
10816
- _defineProperty$c(this, "isDisposed", false);
10979
+ _defineProperty$d(this, "isDisposed", false);
10817
10980
  /**
10818
10981
  * Indicates the window.history.length before the last call to
10819
10982
  * window.history.pushState (called in `write`).
10820
10983
  * It allows to determine if a `pushState` has been triggered elsewhere,
10821
10984
  * and thus to prevent the `write` method from calling `pushState`.
10822
10985
  */
10823
- _defineProperty$c(this, "latestAcknowledgedHistory", 0);
10824
- _defineProperty$c(this, "_start", void 0);
10825
- _defineProperty$c(this, "_dispose", void 0);
10826
- _defineProperty$c(this, "_push", void 0);
10986
+ _defineProperty$d(this, "latestAcknowledgedHistory", 0);
10987
+ _defineProperty$d(this, "_start", void 0);
10988
+ _defineProperty$d(this, "_dispose", void 0);
10989
+ _defineProperty$d(this, "_push", void 0);
10827
10990
  this.windowTitle = windowTitle;
10828
10991
  this.writeTimer = undefined;
10829
10992
  this.writeDelay = writeDelay;
@@ -11053,17 +11216,17 @@
11053
11216
  });
11054
11217
  }
11055
11218
 
11056
- function _typeof$g(obj) {
11219
+ function _typeof$h(obj) {
11057
11220
  "@babel/helpers - typeof";
11058
11221
 
11059
- return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11222
+ return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11060
11223
  return typeof obj;
11061
11224
  } : function (obj) {
11062
11225
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11063
- }, _typeof$g(obj);
11226
+ }, _typeof$h(obj);
11064
11227
  }
11065
11228
  var _excluded$5 = ["configure"];
11066
- function ownKeys$c(object, enumerableOnly) {
11229
+ function ownKeys$d(object, enumerableOnly) {
11067
11230
  var keys = Object.keys(object);
11068
11231
  if (Object.getOwnPropertySymbols) {
11069
11232
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11073,19 +11236,19 @@
11073
11236
  }
11074
11237
  return keys;
11075
11238
  }
11076
- function _objectSpread$b(target) {
11239
+ function _objectSpread$c(target) {
11077
11240
  for (var i = 1; i < arguments.length; i++) {
11078
11241
  var source = null != arguments[i] ? arguments[i] : {};
11079
- i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
11080
- _defineProperty$d(target, key, source[key]);
11081
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
11242
+ i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
11243
+ _defineProperty$e(target, key, source[key]);
11244
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
11082
11245
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11083
11246
  });
11084
11247
  }
11085
11248
  return target;
11086
11249
  }
11087
- function _defineProperty$d(obj, key, value) {
11088
- key = _toPropertyKey$d(key);
11250
+ function _defineProperty$e(obj, key, value) {
11251
+ key = _toPropertyKey$e(key);
11089
11252
  if (key in obj) {
11090
11253
  Object.defineProperty(obj, key, {
11091
11254
  value: value,
@@ -11098,16 +11261,16 @@
11098
11261
  }
11099
11262
  return obj;
11100
11263
  }
11101
- function _toPropertyKey$d(arg) {
11102
- var key = _toPrimitive$d(arg, "string");
11103
- return _typeof$g(key) === "symbol" ? key : String(key);
11264
+ function _toPropertyKey$e(arg) {
11265
+ var key = _toPrimitive$e(arg, "string");
11266
+ return _typeof$h(key) === "symbol" ? key : String(key);
11104
11267
  }
11105
- function _toPrimitive$d(input, hint) {
11106
- if (_typeof$g(input) !== "object" || input === null) return input;
11268
+ function _toPrimitive$e(input, hint) {
11269
+ if (_typeof$h(input) !== "object" || input === null) return input;
11107
11270
  var prim = input[Symbol.toPrimitive];
11108
11271
  if (prim !== undefined) {
11109
11272
  var res = prim.call(input, hint || "default");
11110
- if (_typeof$g(res) !== "object") return res;
11273
+ if (_typeof$h(res) !== "object") return res;
11111
11274
  throw new TypeError("@@toPrimitive must return a primitive value.");
11112
11275
  }
11113
11276
  return (hint === "string" ? String : Number)(input);
@@ -11153,28 +11316,28 @@
11153
11316
  $$type: 'ais.simple',
11154
11317
  stateToRoute: function stateToRoute(uiState) {
11155
11318
  return Object.keys(uiState).reduce(function (state, indexId) {
11156
- return _objectSpread$b(_objectSpread$b({}, state), {}, _defineProperty$d({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
11319
+ return _objectSpread$c(_objectSpread$c({}, state), {}, _defineProperty$e({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
11157
11320
  }, {});
11158
11321
  },
11159
11322
  routeToState: function routeToState() {
11160
11323
  var routeState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
11161
11324
  return Object.keys(routeState).reduce(function (state, indexId) {
11162
- return _objectSpread$b(_objectSpread$b({}, state), {}, _defineProperty$d({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
11325
+ return _objectSpread$c(_objectSpread$c({}, state), {}, _defineProperty$e({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
11163
11326
  }, {});
11164
11327
  }
11165
11328
  };
11166
11329
  }
11167
11330
 
11168
- function _typeof$h(obj) {
11331
+ function _typeof$i(obj) {
11169
11332
  "@babel/helpers - typeof";
11170
11333
 
11171
- return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11334
+ return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11172
11335
  return typeof obj;
11173
11336
  } : function (obj) {
11174
11337
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11175
- }, _typeof$h(obj);
11338
+ }, _typeof$i(obj);
11176
11339
  }
11177
- function ownKeys$d(object, enumerableOnly) {
11340
+ function ownKeys$e(object, enumerableOnly) {
11178
11341
  var keys = Object.keys(object);
11179
11342
  if (Object.getOwnPropertySymbols) {
11180
11343
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11184,19 +11347,19 @@
11184
11347
  }
11185
11348
  return keys;
11186
11349
  }
11187
- function _objectSpread$c(target) {
11350
+ function _objectSpread$d(target) {
11188
11351
  for (var i = 1; i < arguments.length; i++) {
11189
11352
  var source = null != arguments[i] ? arguments[i] : {};
11190
- i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
11191
- _defineProperty$e(target, key, source[key]);
11192
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
11353
+ i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
11354
+ _defineProperty$f(target, key, source[key]);
11355
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
11193
11356
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11194
11357
  });
11195
11358
  }
11196
11359
  return target;
11197
11360
  }
11198
- function _defineProperty$e(obj, key, value) {
11199
- key = _toPropertyKey$e(key);
11361
+ function _defineProperty$f(obj, key, value) {
11362
+ key = _toPropertyKey$f(key);
11200
11363
  if (key in obj) {
11201
11364
  Object.defineProperty(obj, key, {
11202
11365
  value: value,
@@ -11209,16 +11372,16 @@
11209
11372
  }
11210
11373
  return obj;
11211
11374
  }
11212
- function _toPropertyKey$e(arg) {
11213
- var key = _toPrimitive$e(arg, "string");
11214
- return _typeof$h(key) === "symbol" ? key : String(key);
11375
+ function _toPropertyKey$f(arg) {
11376
+ var key = _toPrimitive$f(arg, "string");
11377
+ return _typeof$i(key) === "symbol" ? key : String(key);
11215
11378
  }
11216
- function _toPrimitive$e(input, hint) {
11217
- if (_typeof$h(input) !== "object" || input === null) return input;
11379
+ function _toPrimitive$f(input, hint) {
11380
+ if (_typeof$i(input) !== "object" || input === null) return input;
11218
11381
  var prim = input[Symbol.toPrimitive];
11219
11382
  if (prim !== undefined) {
11220
11383
  var res = prim.call(input, hint || "default");
11221
- if (_typeof$h(res) !== "object") return res;
11384
+ if (_typeof$i(res) !== "object") return res;
11222
11385
  throw new TypeError("@@toPrimitive must return a primitive value.");
11223
11386
  }
11224
11387
  return (hint === "string" ? String : Number)(input);
@@ -11243,7 +11406,7 @@
11243
11406
  // any changes.
11244
11407
  instantSearchInstance.mainIndex.getWidgets().length === 0 ? instantSearchInstance._initialUiState : instantSearchInstance.mainIndex.getWidgetUiState({});
11245
11408
  var uiState = Object.keys(nextState).reduce(function (acc, indexId) {
11246
- return _objectSpread$c(_objectSpread$c({}, acc), {}, _defineProperty$e({}, indexId, nextState[indexId]));
11409
+ return _objectSpread$d(_objectSpread$d({}, acc), {}, _defineProperty$f({}, indexId, nextState[indexId]));
11247
11410
  }, previousUiState);
11248
11411
  var route = stateMapping.stateToRoute(uiState);
11249
11412
  return router.createURL(route);
@@ -11266,7 +11429,7 @@
11266
11429
  }
11267
11430
  },
11268
11431
  subscribe: function subscribe() {
11269
- instantSearchInstance._initialUiState = _objectSpread$c(_objectSpread$c({}, initialUiState), stateMapping.routeToState(router.read()));
11432
+ instantSearchInstance._initialUiState = _objectSpread$d(_objectSpread$d({}, initialUiState), stateMapping.routeToState(router.read()));
11270
11433
  router.onUpdate(function (route) {
11271
11434
  if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
11272
11435
  instantSearchInstance.setUiState(stateMapping.routeToState(route));
@@ -11288,16 +11451,16 @@
11288
11451
  return value.toLocaleString(numberLocale);
11289
11452
  }
11290
11453
 
11291
- function _typeof$i(obj) {
11454
+ function _typeof$j(obj) {
11292
11455
  "@babel/helpers - typeof";
11293
11456
 
11294
- return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11457
+ return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11295
11458
  return typeof obj;
11296
11459
  } : function (obj) {
11297
11460
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11298
- }, _typeof$i(obj);
11461
+ }, _typeof$j(obj);
11299
11462
  }
11300
- function ownKeys$e(object, enumerableOnly) {
11463
+ function ownKeys$f(object, enumerableOnly) {
11301
11464
  var keys = Object.keys(object);
11302
11465
  if (Object.getOwnPropertySymbols) {
11303
11466
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11307,19 +11470,19 @@
11307
11470
  }
11308
11471
  return keys;
11309
11472
  }
11310
- function _objectSpread$d(target) {
11473
+ function _objectSpread$e(target) {
11311
11474
  for (var i = 1; i < arguments.length; i++) {
11312
11475
  var source = null != arguments[i] ? arguments[i] : {};
11313
- i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
11314
- _defineProperty$f(target, key, source[key]);
11315
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
11476
+ i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
11477
+ _defineProperty$g(target, key, source[key]);
11478
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
11316
11479
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11317
11480
  });
11318
11481
  }
11319
11482
  return target;
11320
11483
  }
11321
- function _defineProperty$f(obj, key, value) {
11322
- key = _toPropertyKey$f(key);
11484
+ function _defineProperty$g(obj, key, value) {
11485
+ key = _toPropertyKey$g(key);
11323
11486
  if (key in obj) {
11324
11487
  Object.defineProperty(obj, key, {
11325
11488
  value: value,
@@ -11332,16 +11495,16 @@
11332
11495
  }
11333
11496
  return obj;
11334
11497
  }
11335
- function _toPropertyKey$f(arg) {
11336
- var key = _toPrimitive$f(arg, "string");
11337
- return _typeof$i(key) === "symbol" ? key : String(key);
11498
+ function _toPropertyKey$g(arg) {
11499
+ var key = _toPrimitive$g(arg, "string");
11500
+ return _typeof$j(key) === "symbol" ? key : String(key);
11338
11501
  }
11339
- function _toPrimitive$f(input, hint) {
11340
- if (_typeof$i(input) !== "object" || input === null) return input;
11502
+ function _toPrimitive$g(input, hint) {
11503
+ if (_typeof$j(input) !== "object" || input === null) return input;
11341
11504
  var prim = input[Symbol.toPrimitive];
11342
11505
  if (prim !== undefined) {
11343
11506
  var res = prim.call(input, hint || "default");
11344
- if (_typeof$i(res) !== "object") return res;
11507
+ if (_typeof$j(res) !== "object") return res;
11345
11508
  throw new TypeError("@@toPrimitive must return a primitive value.");
11346
11509
  }
11347
11510
  return (hint === "string" ? String : Number)(input);
@@ -11355,7 +11518,7 @@
11355
11518
  highlight: function highlight$1(options, render) {
11356
11519
  try {
11357
11520
  var highlightOptions = JSON.parse(options);
11358
- return render(highlight(_objectSpread$d(_objectSpread$d({}, highlightOptions), {}, {
11521
+ return render(highlight(_objectSpread$e(_objectSpread$e({}, highlightOptions), {}, {
11359
11522
  hit: this
11360
11523
  })));
11361
11524
  } catch (error) {
@@ -11365,7 +11528,7 @@
11365
11528
  reverseHighlight: function reverseHighlight$1(options, render) {
11366
11529
  try {
11367
11530
  var reverseHighlightOptions = JSON.parse(options);
11368
- return render(reverseHighlight(_objectSpread$d(_objectSpread$d({}, reverseHighlightOptions), {}, {
11531
+ return render(reverseHighlight(_objectSpread$e(_objectSpread$e({}, reverseHighlightOptions), {}, {
11369
11532
  hit: this
11370
11533
  })));
11371
11534
  } catch (error) {
@@ -11375,7 +11538,7 @@
11375
11538
  snippet: function snippet$1(options, render) {
11376
11539
  try {
11377
11540
  var snippetOptions = JSON.parse(options);
11378
- return render(snippet(_objectSpread$d(_objectSpread$d({}, snippetOptions), {}, {
11541
+ return render(snippet(_objectSpread$e(_objectSpread$e({}, snippetOptions), {}, {
11379
11542
  hit: this
11380
11543
  })));
11381
11544
  } catch (error) {
@@ -11385,7 +11548,7 @@
11385
11548
  reverseSnippet: function reverseSnippet$1(options, render) {
11386
11549
  try {
11387
11550
  var reverseSnippetOptions = JSON.parse(options);
11388
- return render(reverseSnippet(_objectSpread$d(_objectSpread$d({}, reverseSnippetOptions), {}, {
11551
+ return render(reverseSnippet(_objectSpread$e(_objectSpread$e({}, reverseSnippetOptions), {}, {
11389
11552
  hit: this
11390
11553
  })));
11391
11554
  } catch (error) {
@@ -11397,7 +11560,7 @@
11397
11560
  var _JSON$parse = JSON.parse(options),
11398
11561
  method = _JSON$parse.method,
11399
11562
  payload = _JSON$parse.payload;
11400
- return render(insights(method, _objectSpread$d({
11563
+ return render(insights(method, _objectSpread$e({
11401
11564
  objectIDs: [this.objectID]
11402
11565
  }, payload)));
11403
11566
  } catch (error) {
@@ -11407,18 +11570,18 @@
11407
11570
  };
11408
11571
  }
11409
11572
 
11410
- var version$2 = '4.59.0';
11573
+ var version$2 = '4.60.0';
11411
11574
 
11412
- function _typeof$j(obj) {
11575
+ function _typeof$k(obj) {
11413
11576
  "@babel/helpers - typeof";
11414
11577
 
11415
- return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11578
+ return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11416
11579
  return typeof obj;
11417
11580
  } : function (obj) {
11418
11581
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11419
- }, _typeof$j(obj);
11582
+ }, _typeof$k(obj);
11420
11583
  }
11421
- function ownKeys$f(object, enumerableOnly) {
11584
+ function ownKeys$g(object, enumerableOnly) {
11422
11585
  var keys = Object.keys(object);
11423
11586
  if (Object.getOwnPropertySymbols) {
11424
11587
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11428,12 +11591,12 @@
11428
11591
  }
11429
11592
  return keys;
11430
11593
  }
11431
- function _objectSpread$e(target) {
11594
+ function _objectSpread$f(target) {
11432
11595
  for (var i = 1; i < arguments.length; i++) {
11433
11596
  var source = null != arguments[i] ? arguments[i] : {};
11434
- i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
11435
- _defineProperty$g(target, key, source[key]);
11436
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
11597
+ i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
11598
+ _defineProperty$h(target, key, source[key]);
11599
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
11437
11600
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11438
11601
  });
11439
11602
  }
@@ -11450,7 +11613,7 @@
11450
11613
  descriptor.enumerable = descriptor.enumerable || false;
11451
11614
  descriptor.configurable = true;
11452
11615
  if ("value" in descriptor) descriptor.writable = true;
11453
- Object.defineProperty(target, _toPropertyKey$g(descriptor.key), descriptor);
11616
+ Object.defineProperty(target, _toPropertyKey$h(descriptor.key), descriptor);
11454
11617
  }
11455
11618
  }
11456
11619
  function _createClass$1(Constructor, protoProps, staticProps) {
@@ -11499,7 +11662,7 @@
11499
11662
  };
11500
11663
  }
11501
11664
  function _possibleConstructorReturn(self, call) {
11502
- if (call && (_typeof$j(call) === "object" || typeof call === "function")) {
11665
+ if (call && (_typeof$k(call) === "object" || typeof call === "function")) {
11503
11666
  return call;
11504
11667
  } else if (call !== void 0) {
11505
11668
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -11529,8 +11692,8 @@
11529
11692
  };
11530
11693
  return _getPrototypeOf(o);
11531
11694
  }
11532
- function _defineProperty$g(obj, key, value) {
11533
- key = _toPropertyKey$g(key);
11695
+ function _defineProperty$h(obj, key, value) {
11696
+ key = _toPropertyKey$h(key);
11534
11697
  if (key in obj) {
11535
11698
  Object.defineProperty(obj, key, {
11536
11699
  value: value,
@@ -11543,16 +11706,16 @@
11543
11706
  }
11544
11707
  return obj;
11545
11708
  }
11546
- function _toPropertyKey$g(arg) {
11547
- var key = _toPrimitive$g(arg, "string");
11548
- return _typeof$j(key) === "symbol" ? key : String(key);
11709
+ function _toPropertyKey$h(arg) {
11710
+ var key = _toPrimitive$h(arg, "string");
11711
+ return _typeof$k(key) === "symbol" ? key : String(key);
11549
11712
  }
11550
- function _toPrimitive$g(input, hint) {
11551
- if (_typeof$j(input) !== "object" || input === null) return input;
11713
+ function _toPrimitive$h(input, hint) {
11714
+ if (_typeof$k(input) !== "object" || input === null) return input;
11552
11715
  var prim = input[Symbol.toPrimitive];
11553
11716
  if (prim !== undefined) {
11554
11717
  var res = prim.call(input, hint || "default");
11555
- if (_typeof$j(res) !== "object") return res;
11718
+ if (_typeof$k(res) !== "object") return res;
11556
11719
  throw new TypeError("@@toPrimitive must return a primitive value.");
11557
11720
  }
11558
11721
  return (hint === "string" ? String : Number)(input);
@@ -11588,42 +11751,42 @@
11588
11751
  _this = _super.call(this);
11589
11752
 
11590
11753
  // prevent `render` event listening from causing a warning
11591
- _defineProperty$g(_assertThisInitialized(_this), "client", void 0);
11592
- _defineProperty$g(_assertThisInitialized(_this), "indexName", void 0);
11593
- _defineProperty$g(_assertThisInitialized(_this), "insightsClient", void 0);
11594
- _defineProperty$g(_assertThisInitialized(_this), "onStateChange", null);
11595
- _defineProperty$g(_assertThisInitialized(_this), "future", void 0);
11596
- _defineProperty$g(_assertThisInitialized(_this), "helper", void 0);
11597
- _defineProperty$g(_assertThisInitialized(_this), "mainHelper", void 0);
11598
- _defineProperty$g(_assertThisInitialized(_this), "mainIndex", void 0);
11599
- _defineProperty$g(_assertThisInitialized(_this), "started", void 0);
11600
- _defineProperty$g(_assertThisInitialized(_this), "templatesConfig", void 0);
11601
- _defineProperty$g(_assertThisInitialized(_this), "renderState", {});
11602
- _defineProperty$g(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
11603
- _defineProperty$g(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
11604
- _defineProperty$g(_assertThisInitialized(_this), "_initialUiState", void 0);
11605
- _defineProperty$g(_assertThisInitialized(_this), "_initialResults", void 0);
11606
- _defineProperty$g(_assertThisInitialized(_this), "_createURL", void 0);
11607
- _defineProperty$g(_assertThisInitialized(_this), "_searchFunction", void 0);
11608
- _defineProperty$g(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
11609
- _defineProperty$g(_assertThisInitialized(_this), "_insights", void 0);
11610
- _defineProperty$g(_assertThisInitialized(_this), "middleware", []);
11611
- _defineProperty$g(_assertThisInitialized(_this), "sendEventToInsights", void 0);
11754
+ _defineProperty$h(_assertThisInitialized(_this), "client", void 0);
11755
+ _defineProperty$h(_assertThisInitialized(_this), "indexName", void 0);
11756
+ _defineProperty$h(_assertThisInitialized(_this), "insightsClient", void 0);
11757
+ _defineProperty$h(_assertThisInitialized(_this), "onStateChange", null);
11758
+ _defineProperty$h(_assertThisInitialized(_this), "future", void 0);
11759
+ _defineProperty$h(_assertThisInitialized(_this), "helper", void 0);
11760
+ _defineProperty$h(_assertThisInitialized(_this), "mainHelper", void 0);
11761
+ _defineProperty$h(_assertThisInitialized(_this), "mainIndex", void 0);
11762
+ _defineProperty$h(_assertThisInitialized(_this), "started", void 0);
11763
+ _defineProperty$h(_assertThisInitialized(_this), "templatesConfig", void 0);
11764
+ _defineProperty$h(_assertThisInitialized(_this), "renderState", {});
11765
+ _defineProperty$h(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
11766
+ _defineProperty$h(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
11767
+ _defineProperty$h(_assertThisInitialized(_this), "_initialUiState", void 0);
11768
+ _defineProperty$h(_assertThisInitialized(_this), "_initialResults", void 0);
11769
+ _defineProperty$h(_assertThisInitialized(_this), "_createURL", void 0);
11770
+ _defineProperty$h(_assertThisInitialized(_this), "_searchFunction", void 0);
11771
+ _defineProperty$h(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
11772
+ _defineProperty$h(_assertThisInitialized(_this), "_insights", void 0);
11773
+ _defineProperty$h(_assertThisInitialized(_this), "middleware", []);
11774
+ _defineProperty$h(_assertThisInitialized(_this), "sendEventToInsights", void 0);
11612
11775
  /**
11613
11776
  * The status of the search. Can be "idle", "loading", "stalled", or "error".
11614
11777
  */
11615
- _defineProperty$g(_assertThisInitialized(_this), "status", 'idle');
11778
+ _defineProperty$h(_assertThisInitialized(_this), "status", 'idle');
11616
11779
  /**
11617
11780
  * The last returned error from the Search API.
11618
11781
  * The error gets cleared when the next valid search response is rendered.
11619
11782
  */
11620
- _defineProperty$g(_assertThisInitialized(_this), "error", undefined);
11621
- _defineProperty$g(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
11783
+ _defineProperty$h(_assertThisInitialized(_this), "error", undefined);
11784
+ _defineProperty$h(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
11622
11785
  if (_this.started) {
11623
11786
  _this.mainHelper.search();
11624
11787
  }
11625
11788
  }));
11626
- _defineProperty$g(_assertThisInitialized(_this), "scheduleRender", defer(function () {
11789
+ _defineProperty$h(_assertThisInitialized(_this), "scheduleRender", defer(function () {
11627
11790
  var _this$mainHelper;
11628
11791
  var shouldResetStatus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
11629
11792
  if (!((_this$mainHelper = _this.mainHelper) !== null && _this$mainHelper !== void 0 && _this$mainHelper.hasPendingRequests())) {
@@ -11639,7 +11802,7 @@
11639
11802
  });
11640
11803
  _this.emit('render');
11641
11804
  }));
11642
- _defineProperty$g(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
11805
+ _defineProperty$h(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
11643
11806
  var nextUiState = _this.mainIndex.getWidgetUiState({});
11644
11807
  _this.middleware.forEach(function (_ref) {
11645
11808
  var instance = _ref.instance;
@@ -11668,7 +11831,7 @@
11668
11831
  _options$onStateChang = options.onStateChange,
11669
11832
  onStateChange = _options$onStateChang === void 0 ? null : _options$onStateChang,
11670
11833
  _options$future = options.future,
11671
- future = _options$future === void 0 ? _objectSpread$e(_objectSpread$e({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
11834
+ future = _options$future === void 0 ? _objectSpread$f(_objectSpread$f({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
11672
11835
  if (searchClient === null) {
11673
11836
  throw new Error(withUsage$3('The `searchClient` option is required.'));
11674
11837
  }
@@ -11750,7 +11913,7 @@
11750
11913
  middleware[_key] = arguments[_key];
11751
11914
  }
11752
11915
  var newMiddlewareList = middleware.map(function (fn) {
11753
- var newMiddleware = _objectSpread$e({
11916
+ var newMiddleware = _objectSpread$f({
11754
11917
  $$type: '__unknown__',
11755
11918
  $$internal: false,
11756
11919
  subscribe: noop,
@@ -11966,6 +12129,7 @@
11966
12129
  uiState: this._initialUiState
11967
12130
  });
11968
12131
  if (this._initialResults) {
12132
+ hydrateSearchClient(this.client, this._initialResults);
11969
12133
  var originalScheduleSearch = this.scheduleSearch;
11970
12134
  // We don't schedule a first search when initial results are provided
11971
12135
  // because we already have the results to render. This skips the initial
@@ -12366,16 +12530,16 @@
12366
12530
  }, children);
12367
12531
  }
12368
12532
 
12369
- function _typeof$k(obj) {
12533
+ function _typeof$l(obj) {
12370
12534
  "@babel/helpers - typeof";
12371
12535
 
12372
- return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12536
+ return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12373
12537
  return typeof obj;
12374
12538
  } : function (obj) {
12375
12539
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12376
- }, _typeof$k(obj);
12540
+ }, _typeof$l(obj);
12377
12541
  }
12378
- function ownKeys$g(object, enumerableOnly) {
12542
+ function ownKeys$h(object, enumerableOnly) {
12379
12543
  var keys = Object.keys(object);
12380
12544
  if (Object.getOwnPropertySymbols) {
12381
12545
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12385,19 +12549,19 @@
12385
12549
  }
12386
12550
  return keys;
12387
12551
  }
12388
- function _objectSpread$f(target) {
12552
+ function _objectSpread$g(target) {
12389
12553
  for (var i = 1; i < arguments.length; i++) {
12390
12554
  var source = null != arguments[i] ? arguments[i] : {};
12391
- i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
12392
- _defineProperty$h(target, key, source[key]);
12393
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
12555
+ i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
12556
+ _defineProperty$i(target, key, source[key]);
12557
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
12394
12558
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12395
12559
  });
12396
12560
  }
12397
12561
  return target;
12398
12562
  }
12399
- function _defineProperty$h(obj, key, value) {
12400
- key = _toPropertyKey$h(key);
12563
+ function _defineProperty$i(obj, key, value) {
12564
+ key = _toPropertyKey$i(key);
12401
12565
  if (key in obj) {
12402
12566
  Object.defineProperty(obj, key, {
12403
12567
  value: value,
@@ -12410,16 +12574,16 @@
12410
12574
  }
12411
12575
  return obj;
12412
12576
  }
12413
- function _toPropertyKey$h(arg) {
12414
- var key = _toPrimitive$h(arg, "string");
12415
- return _typeof$k(key) === "symbol" ? key : String(key);
12577
+ function _toPropertyKey$i(arg) {
12578
+ var key = _toPrimitive$i(arg, "string");
12579
+ return _typeof$l(key) === "symbol" ? key : String(key);
12416
12580
  }
12417
- function _toPrimitive$h(input, hint) {
12418
- if (_typeof$k(input) !== "object" || input === null) return input;
12581
+ function _toPrimitive$i(input, hint) {
12582
+ if (_typeof$l(input) !== "object" || input === null) return input;
12419
12583
  var prim = input[Symbol.toPrimitive];
12420
12584
  if (prim !== undefined) {
12421
12585
  var res = prim.call(input, hint || "default");
12422
- if (_typeof$k(res) !== "object") return res;
12586
+ if (_typeof$l(res) !== "object") return res;
12423
12587
  throw new TypeError("@@toPrimitive must return a primitive value.");
12424
12588
  }
12425
12589
  return (hint === "string" ? String : Number)(input);
@@ -12511,12 +12675,12 @@
12511
12675
  return {
12512
12676
  $$type: 'ais.breadcrumb',
12513
12677
  init: function init(initOptions) {
12514
- renderFn(_objectSpread$f(_objectSpread$f({}, this.getWidgetRenderState(initOptions)), {}, {
12678
+ renderFn(_objectSpread$g(_objectSpread$g({}, this.getWidgetRenderState(initOptions)), {}, {
12515
12679
  instantSearchInstance: initOptions.instantSearchInstance
12516
12680
  }), true);
12517
12681
  },
12518
12682
  render: function render(renderOptions) {
12519
- renderFn(_objectSpread$f(_objectSpread$f({}, this.getWidgetRenderState(renderOptions)), {}, {
12683
+ renderFn(_objectSpread$g(_objectSpread$g({}, this.getWidgetRenderState(renderOptions)), {}, {
12520
12684
  instantSearchInstance: renderOptions.instantSearchInstance
12521
12685
  }), false);
12522
12686
  },
@@ -12524,8 +12688,8 @@
12524
12688
  unmountFn();
12525
12689
  },
12526
12690
  getRenderState: function getRenderState(renderState, renderOptions) {
12527
- return _objectSpread$f(_objectSpread$f({}, renderState), {}, {
12528
- breadcrumb: _objectSpread$f(_objectSpread$f({}, renderState.breadcrumb), {}, _defineProperty$h({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
12691
+ return _objectSpread$g(_objectSpread$g({}, renderState), {}, {
12692
+ breadcrumb: _objectSpread$g(_objectSpread$g({}, renderState.breadcrumb), {}, _defineProperty$i({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
12529
12693
  });
12530
12694
  },
12531
12695
  getWidgetRenderState: function getWidgetRenderState(_ref2) {
@@ -12580,8 +12744,8 @@
12580
12744
  if (!path.length) {
12581
12745
  return uiState;
12582
12746
  }
12583
- return _objectSpread$f(_objectSpread$f({}, uiState), {}, {
12584
- hierarchicalMenu: _objectSpread$f(_objectSpread$f({}, uiState.hierarchicalMenu), {}, _defineProperty$h({}, hierarchicalFacetName, path))
12747
+ return _objectSpread$g(_objectSpread$g({}, uiState), {}, {
12748
+ hierarchicalMenu: _objectSpread$g(_objectSpread$g({}, uiState.hierarchicalMenu), {}, _defineProperty$i({}, hierarchicalFacetName, path))
12585
12749
  });
12586
12750
  },
12587
12751
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref4) {
@@ -12601,7 +12765,7 @@
12601
12765
  });
12602
12766
  if (!values) {
12603
12767
  return withFacetConfiguration.setQueryParameters({
12604
- hierarchicalFacetsRefinements: _objectSpread$f(_objectSpread$f({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$h({}, hierarchicalFacetName, []))
12768
+ hierarchicalFacetsRefinements: _objectSpread$g(_objectSpread$g({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$i({}, hierarchicalFacetName, []))
12605
12769
  });
12606
12770
  }
12607
12771
  return withFacetConfiguration.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -12636,14 +12800,14 @@
12636
12800
  return useConnector(connectBreadcrumb, props, additionalWidgetProperties);
12637
12801
  }
12638
12802
 
12639
- function _typeof$l(obj) {
12803
+ function _typeof$m(obj) {
12640
12804
  "@babel/helpers - typeof";
12641
12805
 
12642
- return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12806
+ return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12643
12807
  return typeof obj;
12644
12808
  } : function (obj) {
12645
12809
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12646
- }, _typeof$l(obj);
12810
+ }, _typeof$m(obj);
12647
12811
  }
12648
12812
  function _toConsumableArray$3(arr) {
12649
12813
  return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$8(arr) || _nonIterableSpread$3();
@@ -12670,7 +12834,7 @@
12670
12834
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
12671
12835
  return arr2;
12672
12836
  }
12673
- function ownKeys$h(object, enumerableOnly) {
12837
+ function ownKeys$i(object, enumerableOnly) {
12674
12838
  var keys = Object.keys(object);
12675
12839
  if (Object.getOwnPropertySymbols) {
12676
12840
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12680,19 +12844,19 @@
12680
12844
  }
12681
12845
  return keys;
12682
12846
  }
12683
- function _objectSpread$g(target) {
12847
+ function _objectSpread$h(target) {
12684
12848
  for (var i = 1; i < arguments.length; i++) {
12685
12849
  var source = null != arguments[i] ? arguments[i] : {};
12686
- i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
12687
- _defineProperty$i(target, key, source[key]);
12688
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
12850
+ i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12851
+ _defineProperty$j(target, key, source[key]);
12852
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
12689
12853
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12690
12854
  });
12691
12855
  }
12692
12856
  return target;
12693
12857
  }
12694
- function _defineProperty$i(obj, key, value) {
12695
- key = _toPropertyKey$i(key);
12858
+ function _defineProperty$j(obj, key, value) {
12859
+ key = _toPropertyKey$j(key);
12696
12860
  if (key in obj) {
12697
12861
  Object.defineProperty(obj, key, {
12698
12862
  value: value,
@@ -12705,16 +12869,16 @@
12705
12869
  }
12706
12870
  return obj;
12707
12871
  }
12708
- function _toPropertyKey$i(arg) {
12709
- var key = _toPrimitive$i(arg, "string");
12710
- return _typeof$l(key) === "symbol" ? key : String(key);
12872
+ function _toPropertyKey$j(arg) {
12873
+ var key = _toPrimitive$j(arg, "string");
12874
+ return _typeof$m(key) === "symbol" ? key : String(key);
12711
12875
  }
12712
- function _toPrimitive$i(input, hint) {
12713
- if (_typeof$l(input) !== "object" || input === null) return input;
12876
+ function _toPrimitive$j(input, hint) {
12877
+ if (_typeof$m(input) !== "object" || input === null) return input;
12714
12878
  var prim = input[Symbol.toPrimitive];
12715
12879
  if (prim !== undefined) {
12716
12880
  var res = prim.call(input, hint || "default");
12717
- if (_typeof$l(res) !== "object") return res;
12881
+ if (_typeof$m(res) !== "object") return res;
12718
12882
  throw new TypeError("@@toPrimitive must return a primitive value.");
12719
12883
  }
12720
12884
  return (hint === "string" ? String : Number)(input);
@@ -12756,13 +12920,13 @@
12756
12920
  $$type: 'ais.clearRefinements',
12757
12921
  init: function init(initOptions) {
12758
12922
  var instantSearchInstance = initOptions.instantSearchInstance;
12759
- renderFn(_objectSpread$g(_objectSpread$g({}, this.getWidgetRenderState(initOptions)), {}, {
12923
+ renderFn(_objectSpread$h(_objectSpread$h({}, this.getWidgetRenderState(initOptions)), {}, {
12760
12924
  instantSearchInstance: instantSearchInstance
12761
12925
  }), true);
12762
12926
  },
12763
12927
  render: function render(renderOptions) {
12764
12928
  var instantSearchInstance = renderOptions.instantSearchInstance;
12765
- renderFn(_objectSpread$g(_objectSpread$g({}, this.getWidgetRenderState(renderOptions)), {}, {
12929
+ renderFn(_objectSpread$h(_objectSpread$h({}, this.getWidgetRenderState(renderOptions)), {}, {
12766
12930
  instantSearchInstance: instantSearchInstance
12767
12931
  }), false);
12768
12932
  },
@@ -12770,7 +12934,7 @@
12770
12934
  unmountFn();
12771
12935
  },
12772
12936
  getRenderState: function getRenderState(renderState, renderOptions) {
12773
- return _objectSpread$g(_objectSpread$g({}, renderState), {}, {
12937
+ return _objectSpread$h(_objectSpread$h({}, renderState), {}, {
12774
12938
  clearRefinements: this.getWidgetRenderState(renderOptions)
12775
12939
  });
12776
12940
  },
@@ -12856,14 +13020,14 @@
12856
13020
  return useConnector(connectClearRefinements, props, additionalWidgetProperties);
12857
13021
  }
12858
13022
 
12859
- function _typeof$m(obj) {
13023
+ function _typeof$n(obj) {
12860
13024
  "@babel/helpers - typeof";
12861
13025
 
12862
- return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13026
+ return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12863
13027
  return typeof obj;
12864
13028
  } : function (obj) {
12865
13029
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12866
- }, _typeof$m(obj);
13030
+ }, _typeof$n(obj);
12867
13031
  }
12868
13032
  function _toConsumableArray$4(arr) {
12869
13033
  return _arrayWithoutHoles$4(arr) || _iterableToArray$4(arr) || _unsupportedIterableToArray$9(arr) || _nonIterableSpread$4();
@@ -12890,7 +13054,7 @@
12890
13054
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
12891
13055
  return arr2;
12892
13056
  }
12893
- function ownKeys$i(object, enumerableOnly) {
13057
+ function ownKeys$j(object, enumerableOnly) {
12894
13058
  var keys = Object.keys(object);
12895
13059
  if (Object.getOwnPropertySymbols) {
12896
13060
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12900,19 +13064,19 @@
12900
13064
  }
12901
13065
  return keys;
12902
13066
  }
12903
- function _objectSpread$h(target) {
13067
+ function _objectSpread$i(target) {
12904
13068
  for (var i = 1; i < arguments.length; i++) {
12905
13069
  var source = null != arguments[i] ? arguments[i] : {};
12906
- i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12907
- _defineProperty$j(target, key, source[key]);
12908
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
13070
+ i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
13071
+ _defineProperty$k(target, key, source[key]);
13072
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
12909
13073
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12910
13074
  });
12911
13075
  }
12912
13076
  return target;
12913
13077
  }
12914
- function _defineProperty$j(obj, key, value) {
12915
- key = _toPropertyKey$j(key);
13078
+ function _defineProperty$k(obj, key, value) {
13079
+ key = _toPropertyKey$k(key);
12916
13080
  if (key in obj) {
12917
13081
  Object.defineProperty(obj, key, {
12918
13082
  value: value,
@@ -12925,16 +13089,16 @@
12925
13089
  }
12926
13090
  return obj;
12927
13091
  }
12928
- function _toPropertyKey$j(arg) {
12929
- var key = _toPrimitive$j(arg, "string");
12930
- return _typeof$m(key) === "symbol" ? key : String(key);
13092
+ function _toPropertyKey$k(arg) {
13093
+ var key = _toPrimitive$k(arg, "string");
13094
+ return _typeof$n(key) === "symbol" ? key : String(key);
12931
13095
  }
12932
- function _toPrimitive$j(input, hint) {
12933
- if (_typeof$m(input) !== "object" || input === null) return input;
13096
+ function _toPrimitive$k(input, hint) {
13097
+ if (_typeof$n(input) !== "object" || input === null) return input;
12934
13098
  var prim = input[Symbol.toPrimitive];
12935
13099
  if (prim !== undefined) {
12936
13100
  var res = prim.call(input, hint || "default");
12937
- if (_typeof$m(res) !== "object") return res;
13101
+ if (_typeof$n(res) !== "object") return res;
12938
13102
  throw new TypeError("@@toPrimitive must return a primitive value.");
12939
13103
  }
12940
13104
  return (hint === "string" ? String : Number)(input);
@@ -12962,13 +13126,13 @@
12962
13126
  $$type: 'ais.currentRefinements',
12963
13127
  init: function init(initOptions) {
12964
13128
  var instantSearchInstance = initOptions.instantSearchInstance;
12965
- renderFn(_objectSpread$h(_objectSpread$h({}, this.getWidgetRenderState(initOptions)), {}, {
13129
+ renderFn(_objectSpread$i(_objectSpread$i({}, this.getWidgetRenderState(initOptions)), {}, {
12966
13130
  instantSearchInstance: instantSearchInstance
12967
13131
  }), true);
12968
13132
  },
12969
13133
  render: function render(renderOptions) {
12970
13134
  var instantSearchInstance = renderOptions.instantSearchInstance;
12971
- renderFn(_objectSpread$h(_objectSpread$h({}, this.getWidgetRenderState(renderOptions)), {}, {
13135
+ renderFn(_objectSpread$i(_objectSpread$i({}, this.getWidgetRenderState(renderOptions)), {}, {
12972
13136
  instantSearchInstance: instantSearchInstance
12973
13137
  }), false);
12974
13138
  },
@@ -12976,7 +13140,7 @@
12976
13140
  unmountFn();
12977
13141
  },
12978
13142
  getRenderState: function getRenderState(renderState, renderOptions) {
12979
- return _objectSpread$h(_objectSpread$h({}, renderState), {}, {
13143
+ return _objectSpread$i(_objectSpread$i({}, renderState), {}, {
12980
13144
  currentRefinements: this.getWidgetRenderState(renderOptions)
12981
13145
  });
12982
13146
  },
@@ -13127,16 +13291,16 @@
13127
13291
  return useConnector(connectCurrentRefinements, props, additionalWidgetProperties);
13128
13292
  }
13129
13293
 
13130
- function _typeof$n(obj) {
13294
+ function _typeof$o(obj) {
13131
13295
  "@babel/helpers - typeof";
13132
13296
 
13133
- return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13297
+ return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13134
13298
  return typeof obj;
13135
13299
  } : function (obj) {
13136
13300
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13137
- }, _typeof$n(obj);
13301
+ }, _typeof$o(obj);
13138
13302
  }
13139
- function ownKeys$j(object, enumerableOnly) {
13303
+ function ownKeys$k(object, enumerableOnly) {
13140
13304
  var keys = Object.keys(object);
13141
13305
  if (Object.getOwnPropertySymbols) {
13142
13306
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13146,19 +13310,19 @@
13146
13310
  }
13147
13311
  return keys;
13148
13312
  }
13149
- function _objectSpread$i(target) {
13313
+ function _objectSpread$j(target) {
13150
13314
  for (var i = 1; i < arguments.length; i++) {
13151
13315
  var source = null != arguments[i] ? arguments[i] : {};
13152
- i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
13153
- _defineProperty$k(target, key, source[key]);
13154
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
13316
+ i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13317
+ _defineProperty$l(target, key, source[key]);
13318
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
13155
13319
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13156
13320
  });
13157
13321
  }
13158
13322
  return target;
13159
13323
  }
13160
- function _defineProperty$k(obj, key, value) {
13161
- key = _toPropertyKey$k(key);
13324
+ function _defineProperty$l(obj, key, value) {
13325
+ key = _toPropertyKey$l(key);
13162
13326
  if (key in obj) {
13163
13327
  Object.defineProperty(obj, key, {
13164
13328
  value: value,
@@ -13171,16 +13335,16 @@
13171
13335
  }
13172
13336
  return obj;
13173
13337
  }
13174
- function _toPropertyKey$k(arg) {
13175
- var key = _toPrimitive$k(arg, "string");
13176
- return _typeof$n(key) === "symbol" ? key : String(key);
13338
+ function _toPropertyKey$l(arg) {
13339
+ var key = _toPrimitive$l(arg, "string");
13340
+ return _typeof$o(key) === "symbol" ? key : String(key);
13177
13341
  }
13178
- function _toPrimitive$k(input, hint) {
13179
- if (_typeof$n(input) !== "object" || input === null) return input;
13342
+ function _toPrimitive$l(input, hint) {
13343
+ if (_typeof$o(input) !== "object" || input === null) return input;
13180
13344
  var prim = input[Symbol.toPrimitive];
13181
13345
  if (prim !== undefined) {
13182
13346
  var res = prim.call(input, hint || "default");
13183
- if (_typeof$n(res) !== "object") return res;
13347
+ if (_typeof$o(res) !== "object") return res;
13184
13348
  throw new TypeError("@@toPrimitive must return a primitive value.");
13185
13349
  }
13186
13350
  return (hint === "string" ? String : Number)(input);
@@ -13290,7 +13454,7 @@
13290
13454
  var isFirstRendering = true;
13291
13455
  widgetState.internalToggleRefineOnMapMove = createInternalToggleRefinementOnMapMove(initArgs, noop);
13292
13456
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(initArgs, noop);
13293
- renderFn(_objectSpread$i(_objectSpread$i({}, this.getWidgetRenderState(initArgs)), {}, {
13457
+ renderFn(_objectSpread$j(_objectSpread$j({}, this.getWidgetRenderState(initArgs)), {}, {
13294
13458
  instantSearchInstance: instantSearchInstance
13295
13459
  }), isFirstRendering);
13296
13460
  },
@@ -13312,7 +13476,7 @@
13312
13476
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(renderArgs, this.render.bind(this));
13313
13477
  var widgetRenderState = this.getWidgetRenderState(renderArgs);
13314
13478
  sendEvent('view:internal', widgetRenderState.items);
13315
- renderFn(_objectSpread$i(_objectSpread$i({}, widgetRenderState), {}, {
13479
+ renderFn(_objectSpread$j(_objectSpread$j({}, widgetRenderState), {}, {
13316
13480
  instantSearchInstance: instantSearchInstance
13317
13481
  }), isFirstRendering);
13318
13482
  },
@@ -13349,7 +13513,7 @@
13349
13513
  };
13350
13514
  },
13351
13515
  getRenderState: function getRenderState(renderState, renderOptions) {
13352
- return _objectSpread$i(_objectSpread$i({}, renderState), {}, {
13516
+ return _objectSpread$j(_objectSpread$j({}, renderState), {}, {
13353
13517
  geoSearch: this.getWidgetRenderState(renderOptions)
13354
13518
  });
13355
13519
  },
@@ -13364,7 +13528,7 @@
13364
13528
  if (!boundingBox || uiState && uiState.geoSearch && uiState.geoSearch.boundingBox === boundingBox) {
13365
13529
  return uiState;
13366
13530
  }
13367
- return _objectSpread$i(_objectSpread$i({}, uiState), {}, {
13531
+ return _objectSpread$j(_objectSpread$j({}, uiState), {}, {
13368
13532
  geoSearch: {
13369
13533
  boundingBox: boundingBox
13370
13534
  }
@@ -13385,17 +13549,17 @@
13385
13549
  return useConnector(connectGeoSearch, props, additionalWidgetProperties);
13386
13550
  }
13387
13551
 
13388
- function _typeof$o(obj) {
13552
+ function _typeof$p(obj) {
13389
13553
  "@babel/helpers - typeof";
13390
13554
 
13391
- return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13555
+ return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13392
13556
  return typeof obj;
13393
13557
  } : function (obj) {
13394
13558
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13395
- }, _typeof$o(obj);
13559
+ }, _typeof$p(obj);
13396
13560
  }
13397
13561
  var _excluded$8 = ["name", "escapedValue", "data", "path"];
13398
- function ownKeys$k(object, enumerableOnly) {
13562
+ function ownKeys$l(object, enumerableOnly) {
13399
13563
  var keys = Object.keys(object);
13400
13564
  if (Object.getOwnPropertySymbols) {
13401
13565
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13405,19 +13569,19 @@
13405
13569
  }
13406
13570
  return keys;
13407
13571
  }
13408
- function _objectSpread$j(target) {
13572
+ function _objectSpread$k(target) {
13409
13573
  for (var i = 1; i < arguments.length; i++) {
13410
13574
  var source = null != arguments[i] ? arguments[i] : {};
13411
- i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13412
- _defineProperty$l(target, key, source[key]);
13413
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
13575
+ i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13576
+ _defineProperty$m(target, key, source[key]);
13577
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
13414
13578
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13415
13579
  });
13416
13580
  }
13417
13581
  return target;
13418
13582
  }
13419
- function _defineProperty$l(obj, key, value) {
13420
- key = _toPropertyKey$l(key);
13583
+ function _defineProperty$m(obj, key, value) {
13584
+ key = _toPropertyKey$m(key);
13421
13585
  if (key in obj) {
13422
13586
  Object.defineProperty(obj, key, {
13423
13587
  value: value,
@@ -13430,16 +13594,16 @@
13430
13594
  }
13431
13595
  return obj;
13432
13596
  }
13433
- function _toPropertyKey$l(arg) {
13434
- var key = _toPrimitive$l(arg, "string");
13435
- return _typeof$o(key) === "symbol" ? key : String(key);
13597
+ function _toPropertyKey$m(arg) {
13598
+ var key = _toPrimitive$m(arg, "string");
13599
+ return _typeof$p(key) === "symbol" ? key : String(key);
13436
13600
  }
13437
- function _toPrimitive$l(input, hint) {
13438
- if (_typeof$o(input) !== "object" || input === null) return input;
13601
+ function _toPrimitive$m(input, hint) {
13602
+ if (_typeof$p(input) !== "object" || input === null) return input;
13439
13603
  var prim = input[Symbol.toPrimitive];
13440
13604
  if (prim !== undefined) {
13441
13605
  var res = prim.call(input, hint || "default");
13442
- if (_typeof$o(res) !== "object") return res;
13606
+ if (_typeof$p(res) !== "object") return res;
13443
13607
  throw new TypeError("@@toPrimitive must return a primitive value.");
13444
13608
  }
13445
13609
  return (hint === "string" ? String : Number)(input);
@@ -13599,7 +13763,7 @@
13599
13763
  data = _ref2.data,
13600
13764
  path = _ref2.path,
13601
13765
  subValue = _objectWithoutProperties$4(_ref2, _excluded$8);
13602
- var item = _objectSpread$j(_objectSpread$j({}, subValue), {}, {
13766
+ var item = _objectSpread$k(_objectSpread$k({}, subValue), {}, {
13603
13767
  value: value,
13604
13768
  label: label,
13605
13769
  data: null
@@ -13614,14 +13778,14 @@
13614
13778
  $$type: 'ais.hierarchicalMenu',
13615
13779
  init: function init(initOptions) {
13616
13780
  var instantSearchInstance = initOptions.instantSearchInstance;
13617
- renderFn(_objectSpread$j(_objectSpread$j({}, this.getWidgetRenderState(initOptions)), {}, {
13781
+ renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(initOptions)), {}, {
13618
13782
  instantSearchInstance: instantSearchInstance
13619
13783
  }), true);
13620
13784
  },
13621
13785
  render: function render(renderOptions) {
13622
13786
  var instantSearchInstance = renderOptions.instantSearchInstance;
13623
13787
  toggleShowMore = createToggleShowMore(renderOptions, this);
13624
- renderFn(_objectSpread$j(_objectSpread$j({}, this.getWidgetRenderState(renderOptions)), {}, {
13788
+ renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(renderOptions)), {}, {
13625
13789
  instantSearchInstance: instantSearchInstance
13626
13790
  }), false);
13627
13791
  },
@@ -13631,8 +13795,8 @@
13631
13795
  return state.removeHierarchicalFacet(hierarchicalFacetName).setQueryParameter('maxValuesPerFacet', undefined);
13632
13796
  },
13633
13797
  getRenderState: function getRenderState(renderState, renderOptions) {
13634
- return _objectSpread$j(_objectSpread$j({}, renderState), {}, {
13635
- hierarchicalMenu: _objectSpread$j(_objectSpread$j({}, renderState.hierarchicalMenu), {}, _defineProperty$l({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
13798
+ return _objectSpread$k(_objectSpread$k({}, renderState), {}, {
13799
+ hierarchicalMenu: _objectSpread$k(_objectSpread$k({}, renderState.hierarchicalMenu), {}, _defineProperty$m({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
13636
13800
  });
13637
13801
  },
13638
13802
  getWidgetRenderState: function getWidgetRenderState(_ref4) {
@@ -13708,8 +13872,8 @@
13708
13872
  if (!path.length) {
13709
13873
  return uiState;
13710
13874
  }
13711
- return _objectSpread$j(_objectSpread$j({}, uiState), {}, {
13712
- hierarchicalMenu: _objectSpread$j(_objectSpread$j({}, uiState.hierarchicalMenu), {}, _defineProperty$l({}, hierarchicalFacetName, path))
13875
+ return _objectSpread$k(_objectSpread$k({}, uiState), {}, {
13876
+ hierarchicalMenu: _objectSpread$k(_objectSpread$k({}, uiState.hierarchicalMenu), {}, _defineProperty$m({}, hierarchicalFacetName, path))
13713
13877
  });
13714
13878
  },
13715
13879
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -13733,7 +13897,7 @@
13733
13897
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
13734
13898
  if (!values) {
13735
13899
  return withMaxValuesPerFacet.setQueryParameters({
13736
- hierarchicalFacetsRefinements: _objectSpread$j(_objectSpread$j({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$l({}, hierarchicalFacetName, []))
13900
+ hierarchicalFacetsRefinements: _objectSpread$k(_objectSpread$k({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$m({}, hierarchicalFacetName, []))
13737
13901
  });
13738
13902
  }
13739
13903
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -13746,16 +13910,16 @@
13746
13910
  return useConnector(connectHierarchicalMenu, props, additionalWidgetProperties);
13747
13911
  }
13748
13912
 
13749
- function _typeof$p(obj) {
13913
+ function _typeof$q(obj) {
13750
13914
  "@babel/helpers - typeof";
13751
13915
 
13752
- return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13916
+ return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13753
13917
  return typeof obj;
13754
13918
  } : function (obj) {
13755
13919
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13756
- }, _typeof$p(obj);
13920
+ }, _typeof$q(obj);
13757
13921
  }
13758
- function ownKeys$l(object, enumerableOnly) {
13922
+ function ownKeys$m(object, enumerableOnly) {
13759
13923
  var keys = Object.keys(object);
13760
13924
  if (Object.getOwnPropertySymbols) {
13761
13925
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13765,19 +13929,19 @@
13765
13929
  }
13766
13930
  return keys;
13767
13931
  }
13768
- function _objectSpread$k(target) {
13932
+ function _objectSpread$l(target) {
13769
13933
  for (var i = 1; i < arguments.length; i++) {
13770
- var source = null != arguments[i] ? arguments[i] : {};
13771
- i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13772
- _defineProperty$m(target, key, source[key]);
13773
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
13934
+ var source = null != arguments[i] ? arguments[i] : {};
13935
+ i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
13936
+ _defineProperty$n(target, key, source[key]);
13937
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
13774
13938
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13775
13939
  });
13776
13940
  }
13777
13941
  return target;
13778
13942
  }
13779
- function _defineProperty$m(obj, key, value) {
13780
- key = _toPropertyKey$m(key);
13943
+ function _defineProperty$n(obj, key, value) {
13944
+ key = _toPropertyKey$n(key);
13781
13945
  if (key in obj) {
13782
13946
  Object.defineProperty(obj, key, {
13783
13947
  value: value,
@@ -13790,16 +13954,16 @@
13790
13954
  }
13791
13955
  return obj;
13792
13956
  }
13793
- function _toPropertyKey$m(arg) {
13794
- var key = _toPrimitive$m(arg, "string");
13795
- return _typeof$p(key) === "symbol" ? key : String(key);
13957
+ function _toPropertyKey$n(arg) {
13958
+ var key = _toPrimitive$n(arg, "string");
13959
+ return _typeof$q(key) === "symbol" ? key : String(key);
13796
13960
  }
13797
- function _toPrimitive$m(input, hint) {
13798
- if (_typeof$p(input) !== "object" || input === null) return input;
13961
+ function _toPrimitive$n(input, hint) {
13962
+ if (_typeof$q(input) !== "object" || input === null) return input;
13799
13963
  var prim = input[Symbol.toPrimitive];
13800
13964
  if (prim !== undefined) {
13801
13965
  var res = prim.call(input, hint || "default");
13802
- if (_typeof$p(res) !== "object") return res;
13966
+ if (_typeof$q(res) !== "object") return res;
13803
13967
  throw new TypeError("@@toPrimitive must return a primitive value.");
13804
13968
  }
13805
13969
  return (hint === "string" ? String : Number)(input);
@@ -13824,19 +13988,19 @@
13824
13988
  return {
13825
13989
  $$type: 'ais.hits',
13826
13990
  init: function init(initOptions) {
13827
- renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(initOptions)), {}, {
13991
+ renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
13828
13992
  instantSearchInstance: initOptions.instantSearchInstance
13829
13993
  }), true);
13830
13994
  },
13831
13995
  render: function render(renderOptions) {
13832
13996
  var renderState = this.getWidgetRenderState(renderOptions);
13833
- renderFn(_objectSpread$k(_objectSpread$k({}, renderState), {}, {
13997
+ renderFn(_objectSpread$l(_objectSpread$l({}, renderState), {}, {
13834
13998
  instantSearchInstance: renderOptions.instantSearchInstance
13835
13999
  }), false);
13836
14000
  renderState.sendEvent('view:internal', renderState.hits);
13837
14001
  },
13838
14002
  getRenderState: function getRenderState(renderState, renderOptions) {
13839
- return _objectSpread$k(_objectSpread$k({}, renderState), {}, {
14003
+ return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
13840
14004
  hits: this.getWidgetRenderState(renderOptions)
13841
14005
  });
13842
14006
  },
@@ -13890,7 +14054,7 @@
13890
14054
  return state;
13891
14055
  }
13892
14056
  return state.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
13893
- return _objectSpread$k(_objectSpread$k({}, acc), {}, _defineProperty$m({}, key, undefined));
14057
+ return _objectSpread$l(_objectSpread$l({}, acc), {}, _defineProperty$n({}, key, undefined));
13894
14058
  }, {}));
13895
14059
  },
13896
14060
  getWidgetSearchParameters: function getWidgetSearchParameters(state) {
@@ -13907,14 +14071,14 @@
13907
14071
  return useConnector(connectHits, props, additionalWidgetProperties);
13908
14072
  }
13909
14073
 
13910
- function _typeof$q(obj) {
14074
+ function _typeof$r(obj) {
13911
14075
  "@babel/helpers - typeof";
13912
14076
 
13913
- return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14077
+ return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13914
14078
  return typeof obj;
13915
14079
  } : function (obj) {
13916
14080
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13917
- }, _typeof$q(obj);
14081
+ }, _typeof$r(obj);
13918
14082
  }
13919
14083
  function _toConsumableArray$5(arr) {
13920
14084
  return _arrayWithoutHoles$5(arr) || _iterableToArray$5(arr) || _unsupportedIterableToArray$b(arr) || _nonIterableSpread$5();
@@ -13941,7 +14105,7 @@
13941
14105
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13942
14106
  return arr2;
13943
14107
  }
13944
- function ownKeys$m(object, enumerableOnly) {
14108
+ function ownKeys$n(object, enumerableOnly) {
13945
14109
  var keys = Object.keys(object);
13946
14110
  if (Object.getOwnPropertySymbols) {
13947
14111
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13951,19 +14115,19 @@
13951
14115
  }
13952
14116
  return keys;
13953
14117
  }
13954
- function _objectSpread$l(target) {
14118
+ function _objectSpread$m(target) {
13955
14119
  for (var i = 1; i < arguments.length; i++) {
13956
14120
  var source = null != arguments[i] ? arguments[i] : {};
13957
- i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
13958
- _defineProperty$n(target, key, source[key]);
13959
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
14121
+ i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
14122
+ _defineProperty$o(target, key, source[key]);
14123
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
13960
14124
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13961
14125
  });
13962
14126
  }
13963
14127
  return target;
13964
14128
  }
13965
- function _defineProperty$n(obj, key, value) {
13966
- key = _toPropertyKey$n(key);
14129
+ function _defineProperty$o(obj, key, value) {
14130
+ key = _toPropertyKey$o(key);
13967
14131
  if (key in obj) {
13968
14132
  Object.defineProperty(obj, key, {
13969
14133
  value: value,
@@ -13976,16 +14140,16 @@
13976
14140
  }
13977
14141
  return obj;
13978
14142
  }
13979
- function _toPropertyKey$n(arg) {
13980
- var key = _toPrimitive$n(arg, "string");
13981
- return _typeof$q(key) === "symbol" ? key : String(key);
14143
+ function _toPropertyKey$o(arg) {
14144
+ var key = _toPrimitive$o(arg, "string");
14145
+ return _typeof$r(key) === "symbol" ? key : String(key);
13982
14146
  }
13983
- function _toPrimitive$n(input, hint) {
13984
- if (_typeof$q(input) !== "object" || input === null) return input;
14147
+ function _toPrimitive$o(input, hint) {
14148
+ if (_typeof$r(input) !== "object" || input === null) return input;
13985
14149
  var prim = input[Symbol.toPrimitive];
13986
14150
  if (prim !== undefined) {
13987
14151
  var res = prim.call(input, hint || "default");
13988
- if (_typeof$q(res) !== "object") return res;
14152
+ if (_typeof$r(res) !== "object") return res;
13989
14153
  throw new TypeError("@@toPrimitive must return a primitive value.");
13990
14154
  }
13991
14155
  return (hint === "string" ? String : Number)(input);
@@ -14021,7 +14185,7 @@
14021
14185
  var normalizeItems = function normalizeItems(_ref2) {
14022
14186
  var hitsPerPage = _ref2.hitsPerPage;
14023
14187
  return items.map(function (item) {
14024
- return _objectSpread$l(_objectSpread$l({}, item), {}, {
14188
+ return _objectSpread$m(_objectSpread$m({}, item), {}, {
14025
14189
  isRefined: Number(item.value) === Number(hitsPerPage)
14026
14190
  });
14027
14191
  });
@@ -14063,13 +14227,13 @@
14063
14227
  label: ''
14064
14228
  }].concat(_toConsumableArray$5(items));
14065
14229
  }
14066
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
14230
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
14067
14231
  instantSearchInstance: instantSearchInstance
14068
14232
  }), true);
14069
14233
  },
14070
14234
  render: function render(initOptions) {
14071
14235
  var instantSearchInstance = initOptions.instantSearchInstance;
14072
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
14236
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
14073
14237
  instantSearchInstance: instantSearchInstance
14074
14238
  }), false);
14075
14239
  },
@@ -14079,7 +14243,7 @@
14079
14243
  return state.setQueryParameter('hitsPerPage', undefined);
14080
14244
  },
14081
14245
  getRenderState: function getRenderState(renderState, renderOptions) {
14082
- return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
14246
+ return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
14083
14247
  hitsPerPage: this.getWidgetRenderState(renderOptions)
14084
14248
  });
14085
14249
  },
@@ -14111,7 +14275,7 @@
14111
14275
  if (hitsPerPage === undefined || hitsPerPage === defaultItem.value) {
14112
14276
  return uiState;
14113
14277
  }
14114
- return _objectSpread$l(_objectSpread$l({}, uiState), {}, {
14278
+ return _objectSpread$m(_objectSpread$m({}, uiState), {}, {
14115
14279
  hitsPerPage: hitsPerPage
14116
14280
  });
14117
14281
  },
@@ -14129,18 +14293,18 @@
14129
14293
  return useConnector(connectHitsPerPage, props, additionalWidgetProperties);
14130
14294
  }
14131
14295
 
14132
- function _typeof$r(obj) {
14296
+ function _typeof$s(obj) {
14133
14297
  "@babel/helpers - typeof";
14134
14298
 
14135
- return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14299
+ return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14136
14300
  return typeof obj;
14137
14301
  } : function (obj) {
14138
14302
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14139
- }, _typeof$r(obj);
14303
+ }, _typeof$s(obj);
14140
14304
  }
14141
14305
  var _excluded$9 = ["page"],
14142
14306
  _excluded2$1 = ["clickAnalytics", "userToken"];
14143
- function ownKeys$n(object, enumerableOnly) {
14307
+ function ownKeys$o(object, enumerableOnly) {
14144
14308
  var keys = Object.keys(object);
14145
14309
  if (Object.getOwnPropertySymbols) {
14146
14310
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14150,19 +14314,19 @@
14150
14314
  }
14151
14315
  return keys;
14152
14316
  }
14153
- function _objectSpread$m(target) {
14317
+ function _objectSpread$n(target) {
14154
14318
  for (var i = 1; i < arguments.length; i++) {
14155
14319
  var source = null != arguments[i] ? arguments[i] : {};
14156
- i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
14157
- _defineProperty$o(target, key, source[key]);
14158
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
14320
+ i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
14321
+ _defineProperty$p(target, key, source[key]);
14322
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
14159
14323
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14160
14324
  });
14161
14325
  }
14162
14326
  return target;
14163
14327
  }
14164
- function _defineProperty$o(obj, key, value) {
14165
- key = _toPropertyKey$o(key);
14328
+ function _defineProperty$p(obj, key, value) {
14329
+ key = _toPropertyKey$p(key);
14166
14330
  if (key in obj) {
14167
14331
  Object.defineProperty(obj, key, {
14168
14332
  value: value,
@@ -14175,16 +14339,16 @@
14175
14339
  }
14176
14340
  return obj;
14177
14341
  }
14178
- function _toPropertyKey$o(arg) {
14179
- var key = _toPrimitive$o(arg, "string");
14180
- return _typeof$r(key) === "symbol" ? key : String(key);
14342
+ function _toPropertyKey$p(arg) {
14343
+ var key = _toPrimitive$p(arg, "string");
14344
+ return _typeof$s(key) === "symbol" ? key : String(key);
14181
14345
  }
14182
- function _toPrimitive$o(input, hint) {
14183
- if (_typeof$r(input) !== "object" || input === null) return input;
14346
+ function _toPrimitive$p(input, hint) {
14347
+ if (_typeof$s(input) !== "object" || input === null) return input;
14184
14348
  var prim = input[Symbol.toPrimitive];
14185
14349
  if (prim !== undefined) {
14186
14350
  var res = prim.call(input, hint || "default");
14187
- if (_typeof$r(res) !== "object") return res;
14351
+ if (_typeof$s(res) !== "object") return res;
14188
14352
  throw new TypeError("@@toPrimitive must return a primitive value.");
14189
14353
  }
14190
14354
  return (hint === "string" ? String : Number)(input);
@@ -14325,7 +14489,7 @@
14325
14489
  return function () {
14326
14490
  // Using the helper's `overrideStateWithoutTriggeringChangeEvent` method
14327
14491
  // avoid updating the browser URL when the user displays the previous page.
14328
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$m(_objectSpread$m({}, helper.state), {}, {
14492
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$n(_objectSpread$n({}, helper.state), {}, {
14329
14493
  page: getFirstReceivedPage(helper.state, cache.read({
14330
14494
  state: normalizeState(helper.state)
14331
14495
  }) || {}) - 1
@@ -14342,20 +14506,20 @@
14342
14506
  return {
14343
14507
  $$type: 'ais.infiniteHits',
14344
14508
  init: function init(initOptions) {
14345
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
14509
+ renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
14346
14510
  instantSearchInstance: initOptions.instantSearchInstance
14347
14511
  }), true);
14348
14512
  },
14349
14513
  render: function render(renderOptions) {
14350
14514
  var instantSearchInstance = renderOptions.instantSearchInstance;
14351
14515
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
14352
- renderFn(_objectSpread$m(_objectSpread$m({}, widgetRenderState), {}, {
14516
+ renderFn(_objectSpread$n(_objectSpread$n({}, widgetRenderState), {}, {
14353
14517
  instantSearchInstance: instantSearchInstance
14354
14518
  }), false);
14355
14519
  sendEvent('view:internal', widgetRenderState.currentPageHits);
14356
14520
  },
14357
14521
  getRenderState: function getRenderState(renderState, renderOptions) {
14358
- return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
14522
+ return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
14359
14523
  infiniteHits: this.getWidgetRenderState(renderOptions)
14360
14524
  });
14361
14525
  },
@@ -14451,7 +14615,7 @@
14451
14615
  return stateWithoutPage;
14452
14616
  }
14453
14617
  return stateWithoutPage.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
14454
- return _objectSpread$m(_objectSpread$m({}, acc), {}, _defineProperty$o({}, key, undefined));
14618
+ return _objectSpread$n(_objectSpread$n({}, acc), {}, _defineProperty$p({}, key, undefined));
14455
14619
  }, {}));
14456
14620
  },
14457
14621
  getWidgetUiState: function getWidgetUiState(uiState, _ref9) {
@@ -14462,7 +14626,7 @@
14462
14626
  // because we don't want `page=1` in the URL
14463
14627
  return uiState;
14464
14628
  }
14465
- return _objectSpread$m(_objectSpread$m({}, uiState), {}, {
14629
+ return _objectSpread$n(_objectSpread$n({}, uiState), {}, {
14466
14630
  // The page in the UI state is incremented by one
14467
14631
  // to expose the user value (not `0`).
14468
14632
  page: page + 1
@@ -14489,14 +14653,14 @@
14489
14653
  }
14490
14654
 
14491
14655
  var _excluded$a = ["name", "escapedValue", "path"];
14492
- function _typeof$s(obj) {
14656
+ function _typeof$t(obj) {
14493
14657
  "@babel/helpers - typeof";
14494
14658
 
14495
- return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14659
+ return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14496
14660
  return typeof obj;
14497
14661
  } : function (obj) {
14498
14662
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14499
- }, _typeof$s(obj);
14663
+ }, _typeof$t(obj);
14500
14664
  }
14501
14665
  function _objectWithoutProperties$6(source, excluded) {
14502
14666
  if (source == null) return {};
@@ -14574,7 +14738,7 @@
14574
14738
  function _arrayWithHoles$7(arr) {
14575
14739
  if (Array.isArray(arr)) return arr;
14576
14740
  }
14577
- function ownKeys$o(object, enumerableOnly) {
14741
+ function ownKeys$p(object, enumerableOnly) {
14578
14742
  var keys = Object.keys(object);
14579
14743
  if (Object.getOwnPropertySymbols) {
14580
14744
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14584,19 +14748,19 @@
14584
14748
  }
14585
14749
  return keys;
14586
14750
  }
14587
- function _objectSpread$n(target) {
14751
+ function _objectSpread$o(target) {
14588
14752
  for (var i = 1; i < arguments.length; i++) {
14589
14753
  var source = null != arguments[i] ? arguments[i] : {};
14590
- i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
14591
- _defineProperty$p(target, key, source[key]);
14592
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
14754
+ i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14755
+ _defineProperty$q(target, key, source[key]);
14756
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
14593
14757
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14594
14758
  });
14595
14759
  }
14596
14760
  return target;
14597
14761
  }
14598
- function _defineProperty$p(obj, key, value) {
14599
- key = _toPropertyKey$p(key);
14762
+ function _defineProperty$q(obj, key, value) {
14763
+ key = _toPropertyKey$q(key);
14600
14764
  if (key in obj) {
14601
14765
  Object.defineProperty(obj, key, {
14602
14766
  value: value,
@@ -14609,16 +14773,16 @@
14609
14773
  }
14610
14774
  return obj;
14611
14775
  }
14612
- function _toPropertyKey$p(arg) {
14613
- var key = _toPrimitive$p(arg, "string");
14614
- return _typeof$s(key) === "symbol" ? key : String(key);
14776
+ function _toPropertyKey$q(arg) {
14777
+ var key = _toPrimitive$q(arg, "string");
14778
+ return _typeof$t(key) === "symbol" ? key : String(key);
14615
14779
  }
14616
- function _toPrimitive$p(input, hint) {
14617
- if (_typeof$s(input) !== "object" || input === null) return input;
14780
+ function _toPrimitive$q(input, hint) {
14781
+ if (_typeof$t(input) !== "object" || input === null) return input;
14618
14782
  var prim = input[Symbol.toPrimitive];
14619
14783
  if (prim !== undefined) {
14620
14784
  var res = prim.call(input, hint || "default");
14621
- if (_typeof$s(res) !== "object") return res;
14785
+ if (_typeof$t(res) !== "object") return res;
14622
14786
  throw new TypeError("@@toPrimitive must return a primitive value.");
14623
14787
  }
14624
14788
  return (hint === "string" ? String : Number)(input);
@@ -14685,13 +14849,13 @@
14685
14849
  $$type: 'ais.menu',
14686
14850
  init: function init(initOptions) {
14687
14851
  var instantSearchInstance = initOptions.instantSearchInstance;
14688
- renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
14852
+ renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initOptions)), {}, {
14689
14853
  instantSearchInstance: instantSearchInstance
14690
14854
  }), true);
14691
14855
  },
14692
14856
  render: function render(renderOptions) {
14693
14857
  var instantSearchInstance = renderOptions.instantSearchInstance;
14694
- renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(renderOptions)), {}, {
14858
+ renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(renderOptions)), {}, {
14695
14859
  instantSearchInstance: instantSearchInstance
14696
14860
  }), false);
14697
14861
  },
@@ -14701,8 +14865,8 @@
14701
14865
  return state.removeHierarchicalFacet(attribute).setQueryParameter('maxValuesPerFacet', undefined);
14702
14866
  },
14703
14867
  getRenderState: function getRenderState(renderState, renderOptions) {
14704
- return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
14705
- menu: _objectSpread$n(_objectSpread$n({}, renderState.menu), {}, _defineProperty$p({}, attribute, this.getWidgetRenderState(renderOptions)))
14868
+ return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
14869
+ menu: _objectSpread$o(_objectSpread$o({}, renderState.menu), {}, _defineProperty$q({}, attribute, this.getWidgetRenderState(renderOptions)))
14706
14870
  });
14707
14871
  },
14708
14872
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -14755,7 +14919,7 @@
14755
14919
  value = _ref3.escapedValue,
14756
14920
  path = _ref3.path,
14757
14921
  item = _objectWithoutProperties$6(_ref3, _excluded$a);
14758
- return _objectSpread$n(_objectSpread$n({}, item), {}, {
14922
+ return _objectSpread$o(_objectSpread$o({}, item), {}, {
14759
14923
  label: label,
14760
14924
  value: value
14761
14925
  });
@@ -14783,8 +14947,8 @@
14783
14947
  if (!value) {
14784
14948
  return uiState;
14785
14949
  }
14786
- return _objectSpread$n(_objectSpread$n({}, uiState), {}, {
14787
- menu: _objectSpread$n(_objectSpread$n({}, uiState.menu), {}, _defineProperty$p({}, attribute, value))
14950
+ return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
14951
+ menu: _objectSpread$o(_objectSpread$o({}, uiState.menu), {}, _defineProperty$q({}, attribute, value))
14788
14952
  });
14789
14953
  },
14790
14954
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref5) {
@@ -14802,7 +14966,7 @@
14802
14966
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
14803
14967
  if (!value) {
14804
14968
  return withMaxValuesPerFacet.setQueryParameters({
14805
- hierarchicalFacetsRefinements: _objectSpread$n(_objectSpread$n({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$p({}, attribute, []))
14969
+ hierarchicalFacetsRefinements: _objectSpread$o(_objectSpread$o({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$q({}, attribute, []))
14806
14970
  });
14807
14971
  }
14808
14972
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(attribute, value);
@@ -14815,14 +14979,14 @@
14815
14979
  return useConnector(connectMenu, props, additionalWidgetProperties);
14816
14980
  }
14817
14981
 
14818
- function _typeof$t(obj) {
14982
+ function _typeof$u(obj) {
14819
14983
  "@babel/helpers - typeof";
14820
14984
 
14821
- return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14985
+ return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14822
14986
  return typeof obj;
14823
14987
  } : function (obj) {
14824
14988
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14825
- }, _typeof$t(obj);
14989
+ }, _typeof$u(obj);
14826
14990
  }
14827
14991
  function _createForOfIteratorHelper(o, allowArrayLike) {
14828
14992
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -14924,7 +15088,7 @@
14924
15088
  function _arrayWithHoles$8(arr) {
14925
15089
  if (Array.isArray(arr)) return arr;
14926
15090
  }
14927
- function ownKeys$p(object, enumerableOnly) {
15091
+ function ownKeys$q(object, enumerableOnly) {
14928
15092
  var keys = Object.keys(object);
14929
15093
  if (Object.getOwnPropertySymbols) {
14930
15094
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14934,19 +15098,19 @@
14934
15098
  }
14935
15099
  return keys;
14936
15100
  }
14937
- function _objectSpread$o(target) {
15101
+ function _objectSpread$p(target) {
14938
15102
  for (var i = 1; i < arguments.length; i++) {
14939
15103
  var source = null != arguments[i] ? arguments[i] : {};
14940
- i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14941
- _defineProperty$q(target, key, source[key]);
14942
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
15104
+ i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
15105
+ _defineProperty$r(target, key, source[key]);
15106
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
14943
15107
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14944
15108
  });
14945
15109
  }
14946
15110
  return target;
14947
15111
  }
14948
- function _defineProperty$q(obj, key, value) {
14949
- key = _toPropertyKey$q(key);
15112
+ function _defineProperty$r(obj, key, value) {
15113
+ key = _toPropertyKey$r(key);
14950
15114
  if (key in obj) {
14951
15115
  Object.defineProperty(obj, key, {
14952
15116
  value: value,
@@ -14959,16 +15123,16 @@
14959
15123
  }
14960
15124
  return obj;
14961
15125
  }
14962
- function _toPropertyKey$q(arg) {
14963
- var key = _toPrimitive$q(arg, "string");
14964
- return _typeof$t(key) === "symbol" ? key : String(key);
15126
+ function _toPropertyKey$r(arg) {
15127
+ var key = _toPrimitive$r(arg, "string");
15128
+ return _typeof$u(key) === "symbol" ? key : String(key);
14965
15129
  }
14966
- function _toPrimitive$q(input, hint) {
14967
- if (_typeof$t(input) !== "object" || input === null) return input;
15130
+ function _toPrimitive$r(input, hint) {
15131
+ if (_typeof$u(input) !== "object" || input === null) return input;
14968
15132
  var prim = input[Symbol.toPrimitive];
14969
15133
  if (prim !== undefined) {
14970
15134
  var res = prim.call(input, hint || "default");
14971
- if (_typeof$t(res) !== "object") return res;
15135
+ if (_typeof$u(res) !== "object") return res;
14972
15136
  throw new TypeError("@@toPrimitive must return a primitive value.");
14973
15137
  }
14974
15138
  return (hint === "string" ? String : Number)(input);
@@ -15030,13 +15194,13 @@
15030
15194
  $$type: $$type$1,
15031
15195
  init: function init(initOptions) {
15032
15196
  var instantSearchInstance = initOptions.instantSearchInstance;
15033
- renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initOptions)), {}, {
15197
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
15034
15198
  instantSearchInstance: instantSearchInstance
15035
15199
  }), true);
15036
15200
  },
15037
15201
  render: function render(renderOptions) {
15038
15202
  var instantSearchInstance = renderOptions.instantSearchInstance;
15039
- renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(renderOptions)), {}, {
15203
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(renderOptions)), {}, {
15040
15204
  instantSearchInstance: instantSearchInstance
15041
15205
  }), false);
15042
15206
  },
@@ -15050,8 +15214,8 @@
15050
15214
  var values = searchParameters.getNumericRefinements(attribute);
15051
15215
  var equal = values['='] && values['='][0];
15052
15216
  if (equal || equal === 0) {
15053
- return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
15054
- numericMenu: _objectSpread$o(_objectSpread$o({}, uiState.numericMenu), {}, _defineProperty$q({}, attribute, "".concat(values['='])))
15217
+ return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
15218
+ numericMenu: _objectSpread$p(_objectSpread$p({}, uiState.numericMenu), {}, _defineProperty$r({}, attribute, "".concat(values['='])))
15055
15219
  });
15056
15220
  }
15057
15221
  var min = values['>='] && values['>='][0] || '';
@@ -15059,8 +15223,8 @@
15059
15223
  if (min === '' && max === '') {
15060
15224
  return uiState;
15061
15225
  }
15062
- return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
15063
- numericMenu: _objectSpread$o(_objectSpread$o({}, uiState.numericMenu), {}, _defineProperty$q({}, attribute, "".concat(min, ":").concat(max)))
15226
+ return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
15227
+ numericMenu: _objectSpread$p(_objectSpread$p({}, uiState.numericMenu), {}, _defineProperty$r({}, attribute, "".concat(min, ":").concat(max)))
15064
15228
  });
15065
15229
  },
15066
15230
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -15069,7 +15233,7 @@
15069
15233
  var withoutRefinements = searchParameters.clearRefinements(attribute);
15070
15234
  if (!value) {
15071
15235
  return withoutRefinements.setQueryParameters({
15072
- numericRefinements: _objectSpread$o(_objectSpread$o({}, withoutRefinements.numericRefinements), {}, _defineProperty$q({}, attribute, {}))
15236
+ numericRefinements: _objectSpread$p(_objectSpread$p({}, withoutRefinements.numericRefinements), {}, _defineProperty$r({}, attribute, {}))
15073
15237
  });
15074
15238
  }
15075
15239
  var isExact = value.indexOf(':') === -1;
@@ -15085,8 +15249,8 @@
15085
15249
  return withMaxRefinement;
15086
15250
  },
15087
15251
  getRenderState: function getRenderState(renderState, renderOptions) {
15088
- return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
15089
- numericMenu: _objectSpread$o(_objectSpread$o({}, renderState.numericMenu), {}, _defineProperty$q({}, attribute, this.getWidgetRenderState(renderOptions)))
15252
+ return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
15253
+ numericMenu: _objectSpread$p(_objectSpread$p({}, renderState.numericMenu), {}, _defineProperty$r({}, attribute, this.getWidgetRenderState(renderOptions)))
15090
15254
  });
15091
15255
  },
15092
15256
  getWidgetRenderState: function getWidgetRenderState(_ref7) {
@@ -15228,14 +15392,14 @@
15228
15392
  return useConnector(connectNumericMenu, props, additionalWidgetProperties);
15229
15393
  }
15230
15394
 
15231
- function _typeof$u(obj) {
15395
+ function _typeof$v(obj) {
15232
15396
  "@babel/helpers - typeof";
15233
15397
 
15234
- return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15398
+ return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15235
15399
  return typeof obj;
15236
15400
  } : function (obj) {
15237
15401
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15238
- }, _typeof$u(obj);
15402
+ }, _typeof$v(obj);
15239
15403
  }
15240
15404
  function _classCallCheck$2(instance, Constructor) {
15241
15405
  if (!(instance instanceof Constructor)) {
@@ -15248,7 +15412,7 @@
15248
15412
  descriptor.enumerable = descriptor.enumerable || false;
15249
15413
  descriptor.configurable = true;
15250
15414
  if ("value" in descriptor) descriptor.writable = true;
15251
- Object.defineProperty(target, _toPropertyKey$r(descriptor.key), descriptor);
15415
+ Object.defineProperty(target, _toPropertyKey$s(descriptor.key), descriptor);
15252
15416
  }
15253
15417
  }
15254
15418
  function _createClass$2(Constructor, protoProps, staticProps) {
@@ -15259,8 +15423,8 @@
15259
15423
  });
15260
15424
  return Constructor;
15261
15425
  }
15262
- function _defineProperty$r(obj, key, value) {
15263
- key = _toPropertyKey$r(key);
15426
+ function _defineProperty$s(obj, key, value) {
15427
+ key = _toPropertyKey$s(key);
15264
15428
  if (key in obj) {
15265
15429
  Object.defineProperty(obj, key, {
15266
15430
  value: value,
@@ -15273,16 +15437,16 @@
15273
15437
  }
15274
15438
  return obj;
15275
15439
  }
15276
- function _toPropertyKey$r(arg) {
15277
- var key = _toPrimitive$r(arg, "string");
15278
- return _typeof$u(key) === "symbol" ? key : String(key);
15440
+ function _toPropertyKey$s(arg) {
15441
+ var key = _toPrimitive$s(arg, "string");
15442
+ return _typeof$v(key) === "symbol" ? key : String(key);
15279
15443
  }
15280
- function _toPrimitive$r(input, hint) {
15281
- if (_typeof$u(input) !== "object" || input === null) return input;
15444
+ function _toPrimitive$s(input, hint) {
15445
+ if (_typeof$v(input) !== "object" || input === null) return input;
15282
15446
  var prim = input[Symbol.toPrimitive];
15283
15447
  if (prim !== undefined) {
15284
15448
  var res = prim.call(input, hint || "default");
15285
- if (_typeof$u(res) !== "object") return res;
15449
+ if (_typeof$v(res) !== "object") return res;
15286
15450
  throw new TypeError("@@toPrimitive must return a primitive value.");
15287
15451
  }
15288
15452
  return (hint === "string" ? String : Number)(input);
@@ -15290,9 +15454,9 @@
15290
15454
  var Paginator = /*#__PURE__*/function () {
15291
15455
  function Paginator(params) {
15292
15456
  _classCallCheck$2(this, Paginator);
15293
- _defineProperty$r(this, "currentPage", void 0);
15294
- _defineProperty$r(this, "total", void 0);
15295
- _defineProperty$r(this, "padding", void 0);
15457
+ _defineProperty$s(this, "currentPage", void 0);
15458
+ _defineProperty$s(this, "total", void 0);
15459
+ _defineProperty$s(this, "padding", void 0);
15296
15460
  this.currentPage = params.currentPage;
15297
15461
  this.total = params.total;
15298
15462
  this.padding = params.padding;
@@ -15349,16 +15513,16 @@
15349
15513
  return Paginator;
15350
15514
  }();
15351
15515
 
15352
- function _typeof$v(obj) {
15516
+ function _typeof$w(obj) {
15353
15517
  "@babel/helpers - typeof";
15354
15518
 
15355
- return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15519
+ return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15356
15520
  return typeof obj;
15357
15521
  } : function (obj) {
15358
15522
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15359
- }, _typeof$v(obj);
15523
+ }, _typeof$w(obj);
15360
15524
  }
15361
- function ownKeys$q(object, enumerableOnly) {
15525
+ function ownKeys$r(object, enumerableOnly) {
15362
15526
  var keys = Object.keys(object);
15363
15527
  if (Object.getOwnPropertySymbols) {
15364
15528
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15368,19 +15532,19 @@
15368
15532
  }
15369
15533
  return keys;
15370
15534
  }
15371
- function _objectSpread$p(target) {
15535
+ function _objectSpread$q(target) {
15372
15536
  for (var i = 1; i < arguments.length; i++) {
15373
15537
  var source = null != arguments[i] ? arguments[i] : {};
15374
- i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
15375
- _defineProperty$s(target, key, source[key]);
15376
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
15538
+ i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
15539
+ _defineProperty$t(target, key, source[key]);
15540
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
15377
15541
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15378
15542
  });
15379
15543
  }
15380
15544
  return target;
15381
15545
  }
15382
- function _defineProperty$s(obj, key, value) {
15383
- key = _toPropertyKey$s(key);
15546
+ function _defineProperty$t(obj, key, value) {
15547
+ key = _toPropertyKey$t(key);
15384
15548
  if (key in obj) {
15385
15549
  Object.defineProperty(obj, key, {
15386
15550
  value: value,
@@ -15393,16 +15557,16 @@
15393
15557
  }
15394
15558
  return obj;
15395
15559
  }
15396
- function _toPropertyKey$s(arg) {
15397
- var key = _toPrimitive$s(arg, "string");
15398
- return _typeof$v(key) === "symbol" ? key : String(key);
15560
+ function _toPropertyKey$t(arg) {
15561
+ var key = _toPrimitive$t(arg, "string");
15562
+ return _typeof$w(key) === "symbol" ? key : String(key);
15399
15563
  }
15400
- function _toPrimitive$s(input, hint) {
15401
- if (_typeof$v(input) !== "object" || input === null) return input;
15564
+ function _toPrimitive$t(input, hint) {
15565
+ if (_typeof$w(input) !== "object" || input === null) return input;
15402
15566
  var prim = input[Symbol.toPrimitive];
15403
15567
  if (prim !== undefined) {
15404
15568
  var res = prim.call(input, hint || "default");
15405
- if (_typeof$v(res) !== "object") return res;
15569
+ if (_typeof$w(res) !== "object") return res;
15406
15570
  throw new TypeError("@@toPrimitive must return a primitive value.");
15407
15571
  }
15408
15572
  return (hint === "string" ? String : Number)(input);
@@ -15440,13 +15604,13 @@
15440
15604
  $$type: 'ais.pagination',
15441
15605
  init: function init(initOptions) {
15442
15606
  var instantSearchInstance = initOptions.instantSearchInstance;
15443
- renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
15607
+ renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
15444
15608
  instantSearchInstance: instantSearchInstance
15445
15609
  }), true);
15446
15610
  },
15447
15611
  render: function render(renderOptions) {
15448
15612
  var instantSearchInstance = renderOptions.instantSearchInstance;
15449
- renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(renderOptions)), {}, {
15613
+ renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(renderOptions)), {}, {
15450
15614
  instantSearchInstance: instantSearchInstance
15451
15615
  }), false);
15452
15616
  },
@@ -15461,7 +15625,7 @@
15461
15625
  if (!page) {
15462
15626
  return uiState;
15463
15627
  }
15464
- return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
15628
+ return _objectSpread$q(_objectSpread$q({}, uiState), {}, {
15465
15629
  page: page + 1
15466
15630
  });
15467
15631
  },
@@ -15484,7 +15648,7 @@
15484
15648
  if (!connectorState.createURL) {
15485
15649
  connectorState.createURL = function (page) {
15486
15650
  return createURL(function (uiState) {
15487
- return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
15651
+ return _objectSpread$q(_objectSpread$q({}, uiState), {}, {
15488
15652
  page: page + 1
15489
15653
  });
15490
15654
  });
@@ -15510,7 +15674,7 @@
15510
15674
  };
15511
15675
  },
15512
15676
  getRenderState: function getRenderState(renderState, renderOptions) {
15513
- return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
15677
+ return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
15514
15678
  pagination: this.getWidgetRenderState(renderOptions)
15515
15679
  });
15516
15680
  }
@@ -15537,16 +15701,16 @@
15537
15701
  };
15538
15702
  }
15539
15703
 
15540
- function _typeof$w(obj) {
15704
+ function _typeof$x(obj) {
15541
15705
  "@babel/helpers - typeof";
15542
15706
 
15543
- return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15707
+ return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15544
15708
  return typeof obj;
15545
15709
  } : function (obj) {
15546
15710
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15547
- }, _typeof$w(obj);
15711
+ }, _typeof$x(obj);
15548
15712
  }
15549
- function ownKeys$r(object, enumerableOnly) {
15713
+ function ownKeys$s(object, enumerableOnly) {
15550
15714
  var keys = Object.keys(object);
15551
15715
  if (Object.getOwnPropertySymbols) {
15552
15716
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15556,19 +15720,19 @@
15556
15720
  }
15557
15721
  return keys;
15558
15722
  }
15559
- function _objectSpread$q(target) {
15723
+ function _objectSpread$r(target) {
15560
15724
  for (var i = 1; i < arguments.length; i++) {
15561
15725
  var source = null != arguments[i] ? arguments[i] : {};
15562
- i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
15563
- _defineProperty$t(target, key, source[key]);
15564
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
15726
+ i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
15727
+ _defineProperty$u(target, key, source[key]);
15728
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
15565
15729
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15566
15730
  });
15567
15731
  }
15568
15732
  return target;
15569
15733
  }
15570
- function _defineProperty$t(obj, key, value) {
15571
- key = _toPropertyKey$t(key);
15734
+ function _defineProperty$u(obj, key, value) {
15735
+ key = _toPropertyKey$u(key);
15572
15736
  if (key in obj) {
15573
15737
  Object.defineProperty(obj, key, {
15574
15738
  value: value,
@@ -15581,16 +15745,16 @@
15581
15745
  }
15582
15746
  return obj;
15583
15747
  }
15584
- function _toPropertyKey$t(arg) {
15585
- var key = _toPrimitive$t(arg, "string");
15586
- return _typeof$w(key) === "symbol" ? key : String(key);
15748
+ function _toPropertyKey$u(arg) {
15749
+ var key = _toPrimitive$u(arg, "string");
15750
+ return _typeof$x(key) === "symbol" ? key : String(key);
15587
15751
  }
15588
- function _toPrimitive$t(input, hint) {
15589
- if (_typeof$w(input) !== "object" || input === null) return input;
15752
+ function _toPrimitive$u(input, hint) {
15753
+ if (_typeof$x(input) !== "object" || input === null) return input;
15590
15754
  var prim = input[Symbol.toPrimitive];
15591
15755
  if (prim !== undefined) {
15592
15756
  var res = prim.call(input, hint || "default");
15593
- if (_typeof$w(res) !== "object") return res;
15757
+ if (_typeof$x(res) !== "object") return res;
15594
15758
  throw new TypeError("@@toPrimitive must return a primitive value.");
15595
15759
  }
15596
15760
  return (hint === "string" ? String : Number)(input);
@@ -15670,7 +15834,7 @@
15670
15834
  var nextRuleContexts = [].concat(_toConsumableArray$7(initialRuleContexts), _toConsumableArray$7(newRuleContexts));
15671
15835
  var ruleContexts = transformRuleContexts(nextRuleContexts).slice(0, 10);
15672
15836
  if (!isEqual(previousRuleContexts, ruleContexts)) {
15673
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$q(_objectSpread$q({}, sharedHelperState), {}, {
15837
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$r(_objectSpread$r({}, sharedHelperState), {}, {
15674
15838
  ruleContexts: ruleContexts
15675
15839
  }));
15676
15840
  }
@@ -15729,13 +15893,13 @@
15729
15893
  // any `ruleContexts` needed based on the `trackedFilters`.
15730
15894
  helper.on('change', onHelperChange);
15731
15895
  }
15732
- _render(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
15896
+ _render(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
15733
15897
  instantSearchInstance: instantSearchInstance
15734
15898
  }), true);
15735
15899
  },
15736
15900
  render: function render(renderOptions) {
15737
15901
  var instantSearchInstance = renderOptions.instantSearchInstance;
15738
- _render(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(renderOptions)), {}, {
15902
+ _render(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(renderOptions)), {}, {
15739
15903
  instantSearchInstance: instantSearchInstance
15740
15904
  }), false);
15741
15905
  },
@@ -15753,7 +15917,7 @@
15753
15917
  };
15754
15918
  },
15755
15919
  getRenderState: function getRenderState(renderState, renderOptions) {
15756
- return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
15920
+ return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
15757
15921
  queryRules: this.getWidgetRenderState(renderOptions)
15758
15922
  });
15759
15923
  },
@@ -15775,16 +15939,16 @@
15775
15939
  return useConnector(connectQueryRules, props, additionalWidgetProperties);
15776
15940
  }
15777
15941
 
15778
- function _typeof$x(obj) {
15942
+ function _typeof$y(obj) {
15779
15943
  "@babel/helpers - typeof";
15780
15944
 
15781
- return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15945
+ return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15782
15946
  return typeof obj;
15783
15947
  } : function (obj) {
15784
15948
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15785
- }, _typeof$x(obj);
15949
+ }, _typeof$y(obj);
15786
15950
  }
15787
- function ownKeys$s(object, enumerableOnly) {
15951
+ function ownKeys$t(object, enumerableOnly) {
15788
15952
  var keys = Object.keys(object);
15789
15953
  if (Object.getOwnPropertySymbols) {
15790
15954
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15794,19 +15958,19 @@
15794
15958
  }
15795
15959
  return keys;
15796
15960
  }
15797
- function _objectSpread$r(target) {
15961
+ function _objectSpread$s(target) {
15798
15962
  for (var i = 1; i < arguments.length; i++) {
15799
15963
  var source = null != arguments[i] ? arguments[i] : {};
15800
- i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
15801
- _defineProperty$u(target, key, source[key]);
15802
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
15964
+ i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
15965
+ _defineProperty$v(target, key, source[key]);
15966
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
15803
15967
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15804
15968
  });
15805
15969
  }
15806
15970
  return target;
15807
15971
  }
15808
- function _defineProperty$u(obj, key, value) {
15809
- key = _toPropertyKey$u(key);
15972
+ function _defineProperty$v(obj, key, value) {
15973
+ key = _toPropertyKey$v(key);
15810
15974
  if (key in obj) {
15811
15975
  Object.defineProperty(obj, key, {
15812
15976
  value: value,
@@ -15819,16 +15983,16 @@
15819
15983
  }
15820
15984
  return obj;
15821
15985
  }
15822
- function _toPropertyKey$u(arg) {
15823
- var key = _toPrimitive$u(arg, "string");
15824
- return _typeof$x(key) === "symbol" ? key : String(key);
15986
+ function _toPropertyKey$v(arg) {
15987
+ var key = _toPrimitive$v(arg, "string");
15988
+ return _typeof$y(key) === "symbol" ? key : String(key);
15825
15989
  }
15826
- function _toPrimitive$u(input, hint) {
15827
- if (_typeof$x(input) !== "object" || input === null) return input;
15990
+ function _toPrimitive$v(input, hint) {
15991
+ if (_typeof$y(input) !== "object" || input === null) return input;
15828
15992
  var prim = input[Symbol.toPrimitive];
15829
15993
  if (prim !== undefined) {
15830
15994
  var res = prim.call(input, hint || "default");
15831
- if (_typeof$x(res) !== "object") return res;
15995
+ if (_typeof$y(res) !== "object") return res;
15832
15996
  throw new TypeError("@@toPrimitive must return a primitive value.");
15833
15997
  }
15834
15998
  return (hint === "string" ? String : Number)(input);
@@ -16053,18 +16217,18 @@
16053
16217
  return {
16054
16218
  $$type: $$type$2,
16055
16219
  init: function init(initOptions) {
16056
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
16220
+ renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
16057
16221
  instantSearchInstance: initOptions.instantSearchInstance
16058
16222
  }), true);
16059
16223
  },
16060
16224
  render: function render(renderOptions) {
16061
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(renderOptions)), {}, {
16225
+ renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(renderOptions)), {}, {
16062
16226
  instantSearchInstance: renderOptions.instantSearchInstance
16063
16227
  }), false);
16064
16228
  },
16065
16229
  getRenderState: function getRenderState(renderState, renderOptions) {
16066
- return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
16067
- range: _objectSpread$r(_objectSpread$r({}, renderState.range), {}, _defineProperty$u({}, attribute, this.getWidgetRenderState(renderOptions)))
16230
+ return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
16231
+ range: _objectSpread$s(_objectSpread$s({}, renderState.range), {}, _defineProperty$v({}, attribute, this.getWidgetRenderState(renderOptions)))
16068
16232
  });
16069
16233
  },
16070
16234
  getWidgetRenderState: function getWidgetRenderState(_ref13) {
@@ -16099,7 +16263,7 @@
16099
16263
  format: rangeFormatter,
16100
16264
  range: currentRange,
16101
16265
  sendEvent: createSendEvent(instantSearchInstance),
16102
- widgetParams: _objectSpread$r(_objectSpread$r({}, widgetParams), {}, {
16266
+ widgetParams: _objectSpread$s(_objectSpread$s({}, widgetParams), {}, {
16103
16267
  precision: precision
16104
16268
  }),
16105
16269
  start: start
@@ -16120,14 +16284,14 @@
16120
16284
  if (min.length === 0 && max.length === 0) {
16121
16285
  return uiState;
16122
16286
  }
16123
- return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
16124
- range: _objectSpread$r(_objectSpread$r({}, uiState.range), {}, _defineProperty$u({}, attribute, "".concat(min, ":").concat(max)))
16287
+ return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
16288
+ range: _objectSpread$s(_objectSpread$s({}, uiState.range), {}, _defineProperty$v({}, attribute, "".concat(min, ":").concat(max)))
16125
16289
  });
16126
16290
  },
16127
16291
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref16) {
16128
16292
  var uiState = _ref16.uiState;
16129
16293
  var widgetSearchParameters = searchParameters.addDisjunctiveFacet(attribute).setQueryParameters({
16130
- numericRefinements: _objectSpread$r(_objectSpread$r({}, searchParameters.numericRefinements), {}, _defineProperty$u({}, attribute, {}))
16294
+ numericRefinements: _objectSpread$s(_objectSpread$s({}, searchParameters.numericRefinements), {}, _defineProperty$v({}, attribute, {}))
16131
16295
  });
16132
16296
  if (isFiniteNumber(minBound)) {
16133
16297
  widgetSearchParameters = widgetSearchParameters.addNumericRefinement(attribute, '>=', minBound);
@@ -16161,18 +16325,18 @@
16161
16325
  return useConnector(connectRange, props, additionalWidgetProperties);
16162
16326
  }
16163
16327
 
16164
- function _typeof$y(obj) {
16328
+ function _typeof$z(obj) {
16165
16329
  "@babel/helpers - typeof";
16166
16330
 
16167
- return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16331
+ return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16168
16332
  return typeof obj;
16169
16333
  } : function (obj) {
16170
16334
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16171
- }, _typeof$y(obj);
16335
+ }, _typeof$z(obj);
16172
16336
  }
16173
16337
  var _excluded$b = ["name", "escapedValue"],
16174
16338
  _excluded2$2 = ["escapedValue", "value"];
16175
- function ownKeys$t(object, enumerableOnly) {
16339
+ function ownKeys$u(object, enumerableOnly) {
16176
16340
  var keys = Object.keys(object);
16177
16341
  if (Object.getOwnPropertySymbols) {
16178
16342
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16182,19 +16346,19 @@
16182
16346
  }
16183
16347
  return keys;
16184
16348
  }
16185
- function _objectSpread$s(target) {
16349
+ function _objectSpread$t(target) {
16186
16350
  for (var i = 1; i < arguments.length; i++) {
16187
16351
  var source = null != arguments[i] ? arguments[i] : {};
16188
- i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
16189
- _defineProperty$v(target, key, source[key]);
16190
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
16352
+ i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
16353
+ _defineProperty$w(target, key, source[key]);
16354
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
16191
16355
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16192
16356
  });
16193
16357
  }
16194
16358
  return target;
16195
16359
  }
16196
- function _defineProperty$v(obj, key, value) {
16197
- key = _toPropertyKey$v(key);
16360
+ function _defineProperty$w(obj, key, value) {
16361
+ key = _toPropertyKey$w(key);
16198
16362
  if (key in obj) {
16199
16363
  Object.defineProperty(obj, key, {
16200
16364
  value: value,
@@ -16207,16 +16371,16 @@
16207
16371
  }
16208
16372
  return obj;
16209
16373
  }
16210
- function _toPropertyKey$v(arg) {
16211
- var key = _toPrimitive$v(arg, "string");
16212
- return _typeof$y(key) === "symbol" ? key : String(key);
16374
+ function _toPropertyKey$w(arg) {
16375
+ var key = _toPrimitive$w(arg, "string");
16376
+ return _typeof$z(key) === "symbol" ? key : String(key);
16213
16377
  }
16214
- function _toPrimitive$v(input, hint) {
16215
- if (_typeof$y(input) !== "object" || input === null) return input;
16378
+ function _toPrimitive$w(input, hint) {
16379
+ if (_typeof$z(input) !== "object" || input === null) return input;
16216
16380
  var prim = input[Symbol.toPrimitive];
16217
16381
  if (prim !== undefined) {
16218
16382
  var res = prim.call(input, hint || "default");
16219
- if (_typeof$y(res) !== "object") return res;
16383
+ if (_typeof$z(res) !== "object") return res;
16220
16384
  throw new TypeError("@@toPrimitive must return a primitive value.");
16221
16385
  }
16222
16386
  return (hint === "string" ? String : Number)(input);
@@ -16300,7 +16464,7 @@
16300
16464
  var label = _ref2.name,
16301
16465
  value = _ref2.escapedValue,
16302
16466
  item = _objectWithoutProperties$7(_ref2, _excluded$b);
16303
- return _objectSpread$s(_objectSpread$s({}, item), {}, {
16467
+ return _objectSpread$t(_objectSpread$t({}, item), {}, {
16304
16468
  value: value,
16305
16469
  label: label,
16306
16470
  highlighted: label
@@ -16337,7 +16501,7 @@
16337
16501
  searchResults = renderOptions.results;
16338
16502
  if (query === '' && lastItemsFromMainSearch) {
16339
16503
  // render with previous data from the helper.
16340
- renderFn(_objectSpread$s(_objectSpread$s({}, widget.getWidgetRenderState(_objectSpread$s(_objectSpread$s({}, renderOptions), {}, {
16504
+ renderFn(_objectSpread$t(_objectSpread$t({}, widget.getWidgetRenderState(_objectSpread$t(_objectSpread$t({}, renderOptions), {}, {
16341
16505
  results: lastResultsFromMainSearch
16342
16506
  }))), {}, {
16343
16507
  instantSearchInstance: instantSearchInstance
@@ -16357,14 +16521,14 @@
16357
16521
  var escapedValue = _ref3.escapedValue,
16358
16522
  value = _ref3.value,
16359
16523
  item = _objectWithoutProperties$7(_ref3, _excluded2$2);
16360
- return _objectSpread$s(_objectSpread$s({}, item), {}, {
16524
+ return _objectSpread$t(_objectSpread$t({}, item), {}, {
16361
16525
  value: escapedValue,
16362
16526
  label: value
16363
16527
  });
16364
16528
  }), {
16365
16529
  results: searchResults
16366
16530
  });
16367
- renderFn(_objectSpread$s(_objectSpread$s({}, widget.getWidgetRenderState(_objectSpread$s(_objectSpread$s({}, renderOptions), {}, {
16531
+ renderFn(_objectSpread$t(_objectSpread$t({}, widget.getWidgetRenderState(_objectSpread$t(_objectSpread$t({}, renderOptions), {}, {
16368
16532
  results: lastResultsFromMainSearch
16369
16533
  }))), {}, {
16370
16534
  items: normalizedFacetValues,
@@ -16381,18 +16545,18 @@
16381
16545
  return {
16382
16546
  $$type: 'ais.refinementList',
16383
16547
  init: function init(initOptions) {
16384
- renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
16548
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
16385
16549
  instantSearchInstance: initOptions.instantSearchInstance
16386
16550
  }), true);
16387
16551
  },
16388
16552
  render: function render(renderOptions) {
16389
- renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(renderOptions)), {}, {
16553
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
16390
16554
  instantSearchInstance: renderOptions.instantSearchInstance
16391
16555
  }), false);
16392
16556
  },
16393
16557
  getRenderState: function getRenderState(renderState, renderOptions) {
16394
- return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
16395
- refinementList: _objectSpread$s(_objectSpread$s({}, renderState.refinementList), {}, _defineProperty$v({}, attribute, this.getWidgetRenderState(renderOptions)))
16558
+ return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
16559
+ refinementList: _objectSpread$t(_objectSpread$t({}, renderState.refinementList), {}, _defineProperty$w({}, attribute, this.getWidgetRenderState(renderOptions)))
16396
16560
  });
16397
16561
  },
16398
16562
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -16485,8 +16649,8 @@
16485
16649
  if (!values.length) {
16486
16650
  return uiState;
16487
16651
  }
16488
- return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
16489
- refinementList: _objectSpread$s(_objectSpread$s({}, uiState.refinementList), {}, _defineProperty$v({}, attribute, values))
16652
+ return _objectSpread$t(_objectSpread$t({}, uiState), {}, {
16653
+ refinementList: _objectSpread$t(_objectSpread$t({}, uiState.refinementList), {}, _defineProperty$w({}, attribute, values))
16490
16654
  });
16491
16655
  },
16492
16656
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -16506,7 +16670,7 @@
16506
16670
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
16507
16671
  if (!values) {
16508
16672
  var key = isDisjunctive ? 'disjunctiveFacetsRefinements' : 'facetsRefinements';
16509
- return withMaxValuesPerFacet.setQueryParameters(_defineProperty$v({}, key, _objectSpread$s(_objectSpread$s({}, withMaxValuesPerFacet[key]), {}, _defineProperty$v({}, attribute, []))));
16673
+ return withMaxValuesPerFacet.setQueryParameters(_defineProperty$w({}, key, _objectSpread$t(_objectSpread$t({}, withMaxValuesPerFacet[key]), {}, _defineProperty$w({}, attribute, []))));
16510
16674
  }
16511
16675
  return values.reduce(function (parameters, value) {
16512
16676
  return isDisjunctive ? parameters.addDisjunctiveFacetRefinement(attribute, value) : parameters.addFacetRefinement(attribute, value);
@@ -16520,16 +16684,16 @@
16520
16684
  return useConnector(connectRefinementList, props, additionalWidgetProperties);
16521
16685
  }
16522
16686
 
16523
- function _typeof$z(obj) {
16687
+ function _typeof$A(obj) {
16524
16688
  "@babel/helpers - typeof";
16525
16689
 
16526
- return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16690
+ return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16527
16691
  return typeof obj;
16528
16692
  } : function (obj) {
16529
16693
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16530
- }, _typeof$z(obj);
16694
+ }, _typeof$A(obj);
16531
16695
  }
16532
- function ownKeys$u(object, enumerableOnly) {
16696
+ function ownKeys$v(object, enumerableOnly) {
16533
16697
  var keys = Object.keys(object);
16534
16698
  if (Object.getOwnPropertySymbols) {
16535
16699
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16539,19 +16703,19 @@
16539
16703
  }
16540
16704
  return keys;
16541
16705
  }
16542
- function _objectSpread$t(target) {
16706
+ function _objectSpread$u(target) {
16543
16707
  for (var i = 1; i < arguments.length; i++) {
16544
16708
  var source = null != arguments[i] ? arguments[i] : {};
16545
- i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
16546
- _defineProperty$w(target, key, source[key]);
16547
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
16709
+ i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16710
+ _defineProperty$x(target, key, source[key]);
16711
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
16548
16712
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16549
16713
  });
16550
16714
  }
16551
16715
  return target;
16552
16716
  }
16553
- function _defineProperty$w(obj, key, value) {
16554
- key = _toPropertyKey$w(key);
16717
+ function _defineProperty$x(obj, key, value) {
16718
+ key = _toPropertyKey$x(key);
16555
16719
  if (key in obj) {
16556
16720
  Object.defineProperty(obj, key, {
16557
16721
  value: value,
@@ -16564,16 +16728,16 @@
16564
16728
  }
16565
16729
  return obj;
16566
16730
  }
16567
- function _toPropertyKey$w(arg) {
16568
- var key = _toPrimitive$w(arg, "string");
16569
- return _typeof$z(key) === "symbol" ? key : String(key);
16731
+ function _toPropertyKey$x(arg) {
16732
+ var key = _toPrimitive$x(arg, "string");
16733
+ return _typeof$A(key) === "symbol" ? key : String(key);
16570
16734
  }
16571
- function _toPrimitive$w(input, hint) {
16572
- if (_typeof$z(input) !== "object" || input === null) return input;
16735
+ function _toPrimitive$x(input, hint) {
16736
+ if (_typeof$A(input) !== "object" || input === null) return input;
16573
16737
  var prim = input[Symbol.toPrimitive];
16574
16738
  if (prim !== undefined) {
16575
16739
  var res = prim.call(input, hint || "default");
16576
- if (_typeof$z(res) !== "object") return res;
16740
+ if (_typeof$A(res) !== "object") return res;
16577
16741
  throw new TypeError("@@toPrimitive must return a primitive value.");
16578
16742
  }
16579
16743
  return (hint === "string" ? String : Number)(input);
@@ -16615,13 +16779,13 @@
16615
16779
  $$type: 'ais.searchBox',
16616
16780
  init: function init(initOptions) {
16617
16781
  var instantSearchInstance = initOptions.instantSearchInstance;
16618
- renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
16782
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
16619
16783
  instantSearchInstance: instantSearchInstance
16620
16784
  }), true);
16621
16785
  },
16622
16786
  render: function render(renderOptions) {
16623
16787
  var instantSearchInstance = renderOptions.instantSearchInstance;
16624
- renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
16788
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
16625
16789
  instantSearchInstance: instantSearchInstance
16626
16790
  }), false);
16627
16791
  },
@@ -16631,7 +16795,7 @@
16631
16795
  return state.setQueryParameter('query', undefined);
16632
16796
  },
16633
16797
  getRenderState: function getRenderState(renderState, renderOptions) {
16634
- return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
16798
+ return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
16635
16799
  searchBox: this.getWidgetRenderState(renderOptions)
16636
16800
  });
16637
16801
  },
@@ -16663,7 +16827,7 @@
16663
16827
  if (query === '' || uiState && uiState.query === query) {
16664
16828
  return uiState;
16665
16829
  }
16666
- return _objectSpread$t(_objectSpread$t({}, uiState), {}, {
16830
+ return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
16667
16831
  query: query
16668
16832
  });
16669
16833
  },
@@ -16679,16 +16843,16 @@
16679
16843
  return useConnector(connectSearchBox, props, additionalWidgetProperties);
16680
16844
  }
16681
16845
 
16682
- function _typeof$A(obj) {
16846
+ function _typeof$B(obj) {
16683
16847
  "@babel/helpers - typeof";
16684
16848
 
16685
- return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16849
+ return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16686
16850
  return typeof obj;
16687
16851
  } : function (obj) {
16688
16852
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16689
- }, _typeof$A(obj);
16853
+ }, _typeof$B(obj);
16690
16854
  }
16691
- function ownKeys$v(object, enumerableOnly) {
16855
+ function ownKeys$w(object, enumerableOnly) {
16692
16856
  var keys = Object.keys(object);
16693
16857
  if (Object.getOwnPropertySymbols) {
16694
16858
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16698,19 +16862,19 @@
16698
16862
  }
16699
16863
  return keys;
16700
16864
  }
16701
- function _objectSpread$u(target) {
16865
+ function _objectSpread$v(target) {
16702
16866
  for (var i = 1; i < arguments.length; i++) {
16703
16867
  var source = null != arguments[i] ? arguments[i] : {};
16704
- i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16705
- _defineProperty$x(target, key, source[key]);
16706
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
16868
+ i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
16869
+ _defineProperty$y(target, key, source[key]);
16870
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
16707
16871
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16708
16872
  });
16709
16873
  }
16710
16874
  return target;
16711
16875
  }
16712
- function _defineProperty$x(obj, key, value) {
16713
- key = _toPropertyKey$x(key);
16876
+ function _defineProperty$y(obj, key, value) {
16877
+ key = _toPropertyKey$y(key);
16714
16878
  if (key in obj) {
16715
16879
  Object.defineProperty(obj, key, {
16716
16880
  value: value,
@@ -16723,16 +16887,16 @@
16723
16887
  }
16724
16888
  return obj;
16725
16889
  }
16726
- function _toPropertyKey$x(arg) {
16727
- var key = _toPrimitive$x(arg, "string");
16728
- return _typeof$A(key) === "symbol" ? key : String(key);
16890
+ function _toPropertyKey$y(arg) {
16891
+ var key = _toPrimitive$y(arg, "string");
16892
+ return _typeof$B(key) === "symbol" ? key : String(key);
16729
16893
  }
16730
- function _toPrimitive$x(input, hint) {
16731
- if (_typeof$A(input) !== "object" || input === null) return input;
16894
+ function _toPrimitive$y(input, hint) {
16895
+ if (_typeof$B(input) !== "object" || input === null) return input;
16732
16896
  var prim = input[Symbol.toPrimitive];
16733
16897
  if (prim !== undefined) {
16734
16898
  var res = prim.call(input, hint || "default");
16735
- if (_typeof$A(res) !== "object") return res;
16899
+ if (_typeof$B(res) !== "object") return res;
16736
16900
  throw new TypeError("@@toPrimitive must return a primitive value.");
16737
16901
  }
16738
16902
  return (hint === "string" ? String : Number)(input);
@@ -16771,13 +16935,13 @@
16771
16935
  var isCurrentIndexInItems = find$1(items, function (item) {
16772
16936
  return item.value === currentIndex;
16773
16937
  });
16774
- renderFn(_objectSpread$u(_objectSpread$u({}, widgetRenderState), {}, {
16938
+ renderFn(_objectSpread$v(_objectSpread$v({}, widgetRenderState), {}, {
16775
16939
  instantSearchInstance: instantSearchInstance
16776
16940
  }), true);
16777
16941
  },
16778
16942
  render: function render(renderOptions) {
16779
16943
  var instantSearchInstance = renderOptions.instantSearchInstance;
16780
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
16944
+ renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
16781
16945
  instantSearchInstance: instantSearchInstance
16782
16946
  }), false);
16783
16947
  },
@@ -16787,7 +16951,7 @@
16787
16951
  return connectorState.initialIndex ? state.setIndex(connectorState.initialIndex) : state;
16788
16952
  },
16789
16953
  getRenderState: function getRenderState(renderState, renderOptions) {
16790
- return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
16954
+ return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
16791
16955
  sortBy: this.getWidgetRenderState(renderOptions)
16792
16956
  });
16793
16957
  },
@@ -16819,7 +16983,7 @@
16819
16983
  getWidgetUiState: function getWidgetUiState(uiState, _ref4) {
16820
16984
  var searchParameters = _ref4.searchParameters;
16821
16985
  var currentIndex = searchParameters.index;
16822
- return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
16986
+ return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
16823
16987
  sortBy: currentIndex !== connectorState.initialIndex ? currentIndex : undefined
16824
16988
  });
16825
16989
  },
@@ -16835,16 +16999,16 @@
16835
16999
  return useConnector(connectSortBy, props, additionalWidgetProperties);
16836
17000
  }
16837
17001
 
16838
- function _typeof$B(obj) {
17002
+ function _typeof$C(obj) {
16839
17003
  "@babel/helpers - typeof";
16840
17004
 
16841
- return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17005
+ return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16842
17006
  return typeof obj;
16843
17007
  } : function (obj) {
16844
17008
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16845
- }, _typeof$B(obj);
17009
+ }, _typeof$C(obj);
16846
17010
  }
16847
- function ownKeys$w(object, enumerableOnly) {
17011
+ function ownKeys$x(object, enumerableOnly) {
16848
17012
  var keys = Object.keys(object);
16849
17013
  if (Object.getOwnPropertySymbols) {
16850
17014
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16854,19 +17018,19 @@
16854
17018
  }
16855
17019
  return keys;
16856
17020
  }
16857
- function _objectSpread$v(target) {
17021
+ function _objectSpread$w(target) {
16858
17022
  for (var i = 1; i < arguments.length; i++) {
16859
17023
  var source = null != arguments[i] ? arguments[i] : {};
16860
- i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
16861
- _defineProperty$y(target, key, source[key]);
16862
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
17024
+ i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
17025
+ _defineProperty$z(target, key, source[key]);
17026
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
16863
17027
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16864
17028
  });
16865
17029
  }
16866
17030
  return target;
16867
17031
  }
16868
- function _defineProperty$y(obj, key, value) {
16869
- key = _toPropertyKey$y(key);
17032
+ function _defineProperty$z(obj, key, value) {
17033
+ key = _toPropertyKey$z(key);
16870
17034
  if (key in obj) {
16871
17035
  Object.defineProperty(obj, key, {
16872
17036
  value: value,
@@ -16879,16 +17043,16 @@
16879
17043
  }
16880
17044
  return obj;
16881
17045
  }
16882
- function _toPropertyKey$y(arg) {
16883
- var key = _toPrimitive$y(arg, "string");
16884
- return _typeof$B(key) === "symbol" ? key : String(key);
17046
+ function _toPropertyKey$z(arg) {
17047
+ var key = _toPrimitive$z(arg, "string");
17048
+ return _typeof$C(key) === "symbol" ? key : String(key);
16885
17049
  }
16886
- function _toPrimitive$y(input, hint) {
16887
- if (_typeof$B(input) !== "object" || input === null) return input;
17050
+ function _toPrimitive$z(input, hint) {
17051
+ if (_typeof$C(input) !== "object" || input === null) return input;
16888
17052
  var prim = input[Symbol.toPrimitive];
16889
17053
  if (prim !== undefined) {
16890
17054
  var res = prim.call(input, hint || "default");
16891
- if (_typeof$B(res) !== "object") return res;
17055
+ if (_typeof$C(res) !== "object") return res;
16892
17056
  throw new TypeError("@@toPrimitive must return a primitive value.");
16893
17057
  }
16894
17058
  return (hint === "string" ? String : Number)(input);
@@ -16911,13 +17075,13 @@
16911
17075
  $$type: 'ais.stats',
16912
17076
  init: function init(initOptions) {
16913
17077
  var instantSearchInstance = initOptions.instantSearchInstance;
16914
- renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(initOptions)), {}, {
17078
+ renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
16915
17079
  instantSearchInstance: instantSearchInstance
16916
17080
  }), true);
16917
17081
  },
16918
17082
  render: function render(renderOptions) {
16919
17083
  var instantSearchInstance = renderOptions.instantSearchInstance;
16920
- renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
17084
+ renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
16921
17085
  instantSearchInstance: instantSearchInstance
16922
17086
  }), false);
16923
17087
  },
@@ -16925,7 +17089,7 @@
16925
17089
  unmountFn();
16926
17090
  },
16927
17091
  getRenderState: function getRenderState(renderState, renderOptions) {
16928
- return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
17092
+ return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
16929
17093
  stats: this.getWidgetRenderState(renderOptions)
16930
17094
  });
16931
17095
  },
@@ -16965,16 +17129,16 @@
16965
17129
  return useConnector(connectStats, props, additionalWidgetProperties);
16966
17130
  }
16967
17131
 
16968
- function _typeof$C(obj) {
17132
+ function _typeof$D(obj) {
16969
17133
  "@babel/helpers - typeof";
16970
17134
 
16971
- return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17135
+ return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16972
17136
  return typeof obj;
16973
17137
  } : function (obj) {
16974
17138
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16975
- }, _typeof$C(obj);
17139
+ }, _typeof$D(obj);
16976
17140
  }
16977
- function ownKeys$x(object, enumerableOnly) {
17141
+ function ownKeys$y(object, enumerableOnly) {
16978
17142
  var keys = Object.keys(object);
16979
17143
  if (Object.getOwnPropertySymbols) {
16980
17144
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16984,19 +17148,19 @@
16984
17148
  }
16985
17149
  return keys;
16986
17150
  }
16987
- function _objectSpread$w(target) {
17151
+ function _objectSpread$x(target) {
16988
17152
  for (var i = 1; i < arguments.length; i++) {
16989
17153
  var source = null != arguments[i] ? arguments[i] : {};
16990
- i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
16991
- _defineProperty$z(target, key, source[key]);
16992
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
17154
+ i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17155
+ _defineProperty$A(target, key, source[key]);
17156
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
16993
17157
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16994
17158
  });
16995
17159
  }
16996
17160
  return target;
16997
17161
  }
16998
- function _defineProperty$z(obj, key, value) {
16999
- key = _toPropertyKey$z(key);
17162
+ function _defineProperty$A(obj, key, value) {
17163
+ key = _toPropertyKey$A(key);
17000
17164
  if (key in obj) {
17001
17165
  Object.defineProperty(obj, key, {
17002
17166
  value: value,
@@ -17009,16 +17173,16 @@
17009
17173
  }
17010
17174
  return obj;
17011
17175
  }
17012
- function _toPropertyKey$z(arg) {
17013
- var key = _toPrimitive$z(arg, "string");
17014
- return _typeof$C(key) === "symbol" ? key : String(key);
17176
+ function _toPropertyKey$A(arg) {
17177
+ var key = _toPrimitive$A(arg, "string");
17178
+ return _typeof$D(key) === "symbol" ? key : String(key);
17015
17179
  }
17016
- function _toPrimitive$z(input, hint) {
17017
- if (_typeof$C(input) !== "object" || input === null) return input;
17180
+ function _toPrimitive$A(input, hint) {
17181
+ if (_typeof$D(input) !== "object" || input === null) return input;
17018
17182
  var prim = input[Symbol.toPrimitive];
17019
17183
  if (prim !== undefined) {
17020
17184
  var res = prim.call(input, hint || "default");
17021
- if (_typeof$C(res) !== "object") return res;
17185
+ if (_typeof$D(res) !== "object") return res;
17022
17186
  throw new TypeError("@@toPrimitive must return a primitive value.");
17023
17187
  }
17024
17188
  return (hint === "string" ? String : Number)(input);
@@ -17210,13 +17374,13 @@
17210
17374
  $$type: $$type$3,
17211
17375
  init: function init(initOptions) {
17212
17376
  var instantSearchInstance = initOptions.instantSearchInstance;
17213
- renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
17377
+ renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(initOptions)), {}, {
17214
17378
  instantSearchInstance: instantSearchInstance
17215
17379
  }), true);
17216
17380
  },
17217
17381
  render: function render(renderOptions) {
17218
17382
  var instantSearchInstance = renderOptions.instantSearchInstance;
17219
- renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
17383
+ renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(renderOptions)), {}, {
17220
17384
  instantSearchInstance: instantSearchInstance
17221
17385
  }), false);
17222
17386
  },
@@ -17226,8 +17390,8 @@
17226
17390
  return state.removeDisjunctiveFacet(attribute);
17227
17391
  },
17228
17392
  getRenderState: function getRenderState(renderState, renderOptions) {
17229
- return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
17230
- toggleRefinement: _objectSpread$w(_objectSpread$w({}, renderState.toggleRefinement), {}, _defineProperty$z({}, attribute, this.getWidgetRenderState(renderOptions)))
17393
+ return _objectSpread$x(_objectSpread$x({}, renderState), {}, {
17394
+ toggleRefinement: _objectSpread$x(_objectSpread$x({}, renderState.toggleRefinement), {}, _defineProperty$A({}, attribute, this.getWidgetRenderState(renderOptions)))
17231
17395
  });
17232
17396
  },
17233
17397
  getWidgetRenderState: function getWidgetRenderState(_ref6) {
@@ -17328,8 +17492,8 @@
17328
17492
  (_uiState$toggle = uiState.toggle) === null || _uiState$toggle === void 0 ? true : delete _uiState$toggle[attribute];
17329
17493
  return uiState;
17330
17494
  }
17331
- return _objectSpread$w(_objectSpread$w({}, uiState), {}, {
17332
- toggle: _objectSpread$w(_objectSpread$w({}, uiState.toggle), {}, _defineProperty$z({}, attribute, isRefined))
17495
+ return _objectSpread$x(_objectSpread$x({}, uiState), {}, {
17496
+ toggle: _objectSpread$x(_objectSpread$x({}, uiState.toggle), {}, _defineProperty$A({}, attribute, isRefined))
17333
17497
  });
17334
17498
  },
17335
17499
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref11) {
@@ -17360,7 +17524,7 @@
17360
17524
 
17361
17525
  // It's not refined without an `off` value
17362
17526
  return withFacetConfiguration.setQueryParameters({
17363
- disjunctiveFacetsRefinements: _objectSpread$w(_objectSpread$w({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$z({}, attribute, []))
17527
+ disjunctiveFacetsRefinements: _objectSpread$x(_objectSpread$x({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$A({}, attribute, []))
17364
17528
  });
17365
17529
  }
17366
17530
  };
@@ -17525,16 +17689,16 @@
17525
17689
  return promise;
17526
17690
  }
17527
17691
 
17528
- function _typeof$D(obj) {
17692
+ function _typeof$E(obj) {
17529
17693
  "@babel/helpers - typeof";
17530
17694
 
17531
- return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17695
+ return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17532
17696
  return typeof obj;
17533
17697
  } : function (obj) {
17534
17698
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17535
- }, _typeof$D(obj);
17699
+ }, _typeof$E(obj);
17536
17700
  }
17537
- function ownKeys$y(object, enumerableOnly) {
17701
+ function ownKeys$z(object, enumerableOnly) {
17538
17702
  var keys = Object.keys(object);
17539
17703
  if (Object.getOwnPropertySymbols) {
17540
17704
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17544,19 +17708,19 @@
17544
17708
  }
17545
17709
  return keys;
17546
17710
  }
17547
- function _objectSpread$x(target) {
17711
+ function _objectSpread$y(target) {
17548
17712
  for (var i = 1; i < arguments.length; i++) {
17549
17713
  var source = null != arguments[i] ? arguments[i] : {};
17550
- i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17551
- _defineProperty$A(target, key, source[key]);
17552
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
17714
+ i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) {
17715
+ _defineProperty$B(target, key, source[key]);
17716
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) {
17553
17717
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17554
17718
  });
17555
17719
  }
17556
17720
  return target;
17557
17721
  }
17558
- function _defineProperty$A(obj, key, value) {
17559
- key = _toPropertyKey$A(key);
17722
+ function _defineProperty$B(obj, key, value) {
17723
+ key = _toPropertyKey$B(key);
17560
17724
  if (key in obj) {
17561
17725
  Object.defineProperty(obj, key, {
17562
17726
  value: value,
@@ -17569,16 +17733,16 @@
17569
17733
  }
17570
17734
  return obj;
17571
17735
  }
17572
- function _toPropertyKey$A(arg) {
17573
- var key = _toPrimitive$A(arg, "string");
17574
- return _typeof$D(key) === "symbol" ? key : String(key);
17736
+ function _toPropertyKey$B(arg) {
17737
+ var key = _toPrimitive$B(arg, "string");
17738
+ return _typeof$E(key) === "symbol" ? key : String(key);
17575
17739
  }
17576
- function _toPrimitive$A(input, hint) {
17577
- if (_typeof$D(input) !== "object" || input === null) return input;
17740
+ function _toPrimitive$B(input, hint) {
17741
+ if (_typeof$E(input) !== "object" || input === null) return input;
17578
17742
  var prim = input[Symbol.toPrimitive];
17579
17743
  if (prim !== undefined) {
17580
17744
  var res = prim.call(input, hint || "default");
17581
- if (_typeof$D(res) !== "object") return res;
17745
+ if (_typeof$E(res) !== "object") return res;
17582
17746
  throw new TypeError("@@toPrimitive must return a primitive value.");
17583
17747
  }
17584
17748
  return (hint === "string" ? String : Number)(input);
@@ -17624,7 +17788,7 @@
17624
17788
  initialResults[widget.getIndexId()] = {
17625
17789
  // We convert the Helper state to a plain object to pass parsable data
17626
17790
  // structures from server to client.
17627
- state: _objectSpread$x({}, searchResults._state),
17791
+ state: _objectSpread$y({}, searchResults._state),
17628
17792
  results: searchResults._rawResults
17629
17793
  };
17630
17794
  }