react-instantsearch 7.2.0 → 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.0';
10
+ var version = '7.3.0';
11
11
 
12
12
  // Copyright Joyent, Inc. and other Node contributors.
13
13
  //
@@ -4327,7 +4327,7 @@
4327
4327
 
4328
4328
  var SearchResults_1 = SearchResults;
4329
4329
 
4330
- var version$1 = '3.14.2';
4330
+ var version$1 = '3.15.0';
4331
4331
 
4332
4332
  var escapeFacetValue$3 = escapeFacetValue_1.escapeFacetValue;
4333
4333
 
@@ -6505,6 +6505,55 @@
6505
6505
  }
6506
6506
  }
6507
6507
 
6508
+ function ownKeys$1(object, enumerableOnly) {
6509
+ var keys = Object.keys(object);
6510
+ if (Object.getOwnPropertySymbols) {
6511
+ var symbols = Object.getOwnPropertySymbols(object);
6512
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
6513
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6514
+ })), keys.push.apply(keys, symbols);
6515
+ }
6516
+ return keys;
6517
+ }
6518
+ function _objectSpread$1(target) {
6519
+ for (var i = 1; i < arguments.length; i++) {
6520
+ var source = null != arguments[i] ? arguments[i] : {};
6521
+ i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
6522
+ _defineProperty$1(target, key, source[key]);
6523
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
6524
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6525
+ });
6526
+ }
6527
+ return target;
6528
+ }
6529
+ function _defineProperty$1(obj, key, value) {
6530
+ key = _toPropertyKey$1(key);
6531
+ if (key in obj) {
6532
+ Object.defineProperty(obj, key, {
6533
+ value: value,
6534
+ enumerable: true,
6535
+ configurable: true,
6536
+ writable: true
6537
+ });
6538
+ } else {
6539
+ obj[key] = value;
6540
+ }
6541
+ return obj;
6542
+ }
6543
+ function _toPropertyKey$1(arg) {
6544
+ var key = _toPrimitive$1(arg, "string");
6545
+ return _typeof$2(key) === "symbol" ? key : String(key);
6546
+ }
6547
+ function _toPrimitive$1(input, hint) {
6548
+ if (_typeof$2(input) !== "object" || input === null) return input;
6549
+ var prim = input[Symbol.toPrimitive];
6550
+ if (prim !== undefined) {
6551
+ var res = prim.call(input, hint || "default");
6552
+ if (_typeof$2(res) !== "object") return res;
6553
+ throw new TypeError("@@toPrimitive must return a primitive value.");
6554
+ }
6555
+ return (hint === "string" ? String : Number)(input);
6556
+ }
6508
6557
  function _typeof$2(obj) {
6509
6558
  "@babel/helpers - typeof";
6510
6559
 
@@ -6574,7 +6623,9 @@
6574
6623
  }
6575
6624
  var facetValue = args[1],
6576
6625
  _args$ = args[2],
6577
- eventName = _args$ === void 0 ? 'Filter Applied' : _args$;
6626
+ eventName = _args$ === void 0 ? 'Filter Applied' : _args$,
6627
+ _args$2 = args[3],
6628
+ additionalData = _args$2 === void 0 ? {} : _args$2;
6578
6629
  var _args$0$split = args[0].split(':'),
6579
6630
  _args$0$split2 = _slicedToArray(_args$0$split, 2),
6580
6631
  eventType = _args$0$split2[0],
@@ -6582,7 +6633,7 @@
6582
6633
  var attribute = typeof attr === 'string' ? attr : attr(facetValue);
6583
6634
  if (args.length === 1 && _typeof$2(args[0]) === 'object') {
6584
6635
  instantSearchInstance.sendEventToInsights(args[0]);
6585
- } else if (eventType === 'click' && (args.length === 2 || args.length === 3)) {
6636
+ } else if (eventType === 'click' && args.length >= 2 && args.length <= 4) {
6586
6637
  if (!isFacetRefined(helper, attribute, facetValue)) {
6587
6638
  // send event only when the facet is being checked "ON"
6588
6639
  instantSearchInstance.sendEventToInsights({
@@ -6590,11 +6641,11 @@
6590
6641
  widgetType: widgetType,
6591
6642
  eventType: eventType,
6592
6643
  eventModifier: eventModifier,
6593
- payload: {
6644
+ payload: _objectSpread$1({
6594
6645
  eventName: eventName,
6595
6646
  index: helper.getIndex(),
6596
6647
  filters: ["".concat(attribute, ":").concat(facetValue)]
6597
- },
6648
+ }, additionalData),
6598
6649
  attribute: attribute
6599
6650
  });
6600
6651
  }
@@ -6607,6 +6658,55 @@
6607
6658
  return btoa(encodeURIComponent(JSON.stringify(payload)));
6608
6659
  }
6609
6660
 
6661
+ function ownKeys$2(object, enumerableOnly) {
6662
+ var keys = Object.keys(object);
6663
+ if (Object.getOwnPropertySymbols) {
6664
+ var symbols = Object.getOwnPropertySymbols(object);
6665
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
6666
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6667
+ })), keys.push.apply(keys, symbols);
6668
+ }
6669
+ return keys;
6670
+ }
6671
+ function _objectSpread$2(target) {
6672
+ for (var i = 1; i < arguments.length; i++) {
6673
+ var source = null != arguments[i] ? arguments[i] : {};
6674
+ i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
6675
+ _defineProperty$2(target, key, source[key]);
6676
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
6677
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6678
+ });
6679
+ }
6680
+ return target;
6681
+ }
6682
+ function _defineProperty$2(obj, key, value) {
6683
+ key = _toPropertyKey$2(key);
6684
+ if (key in obj) {
6685
+ Object.defineProperty(obj, key, {
6686
+ value: value,
6687
+ enumerable: true,
6688
+ configurable: true,
6689
+ writable: true
6690
+ });
6691
+ } else {
6692
+ obj[key] = value;
6693
+ }
6694
+ return obj;
6695
+ }
6696
+ function _toPropertyKey$2(arg) {
6697
+ var key = _toPrimitive$2(arg, "string");
6698
+ return _typeof$3(key) === "symbol" ? key : String(key);
6699
+ }
6700
+ function _toPrimitive$2(input, hint) {
6701
+ if (_typeof$3(input) !== "object" || input === null) return input;
6702
+ var prim = input[Symbol.toPrimitive];
6703
+ if (prim !== undefined) {
6704
+ var res = prim.call(input, hint || "default");
6705
+ if (_typeof$3(res) !== "object") return res;
6706
+ throw new TypeError("@@toPrimitive must return a primitive value.");
6707
+ }
6708
+ return (hint === "string" ? String : Number)(input);
6709
+ }
6610
6710
  function _slicedToArray$1(arr, i) {
6611
6711
  return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
6612
6712
  }
@@ -6689,6 +6789,7 @@
6689
6789
  eventModifier = _args$0$split2[1];
6690
6790
  var hits = args[1];
6691
6791
  var eventName = args[2];
6792
+ var additionalData = args[3] || {};
6692
6793
  if (!hits) {
6693
6794
  {
6694
6795
  return [];
@@ -6724,11 +6825,11 @@
6724
6825
  insightsMethod: 'viewedObjectIDs',
6725
6826
  widgetType: widgetType,
6726
6827
  eventType: eventType,
6727
- payload: {
6828
+ payload: _objectSpread$2({
6728
6829
  eventName: eventName || 'Hits Viewed',
6729
6830
  index: index,
6730
6831
  objectIDs: objectIDsByChunk[i]
6731
- },
6832
+ }, additionalData),
6732
6833
  hits: batch,
6733
6834
  eventModifier: eventModifier
6734
6835
  };
@@ -6739,13 +6840,13 @@
6739
6840
  insightsMethod: 'clickedObjectIDsAfterSearch',
6740
6841
  widgetType: widgetType,
6741
6842
  eventType: eventType,
6742
- payload: {
6843
+ payload: _objectSpread$2({
6743
6844
  eventName: eventName || 'Hit Clicked',
6744
6845
  index: index,
6745
6846
  queryID: queryID,
6746
6847
  objectIDs: objectIDsByChunk[i],
6747
6848
  positions: positionsByChunk[i]
6748
- },
6849
+ }, additionalData),
6749
6850
  hits: batch,
6750
6851
  eventModifier: eventModifier
6751
6852
  };
@@ -6756,12 +6857,12 @@
6756
6857
  insightsMethod: 'convertedObjectIDsAfterSearch',
6757
6858
  widgetType: widgetType,
6758
6859
  eventType: eventType,
6759
- payload: {
6860
+ payload: _objectSpread$2({
6760
6861
  eventName: eventName || 'Hit Converted',
6761
6862
  index: index,
6762
6863
  queryID: queryID,
6763
6864
  objectIDs: objectIDsByChunk[i]
6764
- },
6865
+ }, additionalData),
6765
6866
  hits: batch,
6766
6867
  eventModifier: eventModifier
6767
6868
  };
@@ -7270,7 +7371,7 @@
7270
7371
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7271
7372
  }, _typeof$4(obj);
7272
7373
  }
7273
- function ownKeys$1(object, enumerableOnly) {
7374
+ function ownKeys$3(object, enumerableOnly) {
7274
7375
  var keys = Object.keys(object);
7275
7376
  if (Object.getOwnPropertySymbols) {
7276
7377
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7280,19 +7381,19 @@
7280
7381
  }
7281
7382
  return keys;
7282
7383
  }
7283
- function _objectSpread$1(target) {
7384
+ function _objectSpread$3(target) {
7284
7385
  for (var i = 1; i < arguments.length; i++) {
7285
7386
  var source = null != arguments[i] ? arguments[i] : {};
7286
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
7287
- _defineProperty$1(target, key, source[key]);
7288
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
7387
+ i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
7388
+ _defineProperty$3(target, key, source[key]);
7389
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) {
7289
7390
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7290
7391
  });
7291
7392
  }
7292
7393
  return target;
7293
7394
  }
7294
- function _defineProperty$1(obj, key, value) {
7295
- key = _toPropertyKey$1(key);
7395
+ function _defineProperty$3(obj, key, value) {
7396
+ key = _toPropertyKey$3(key);
7296
7397
  if (key in obj) {
7297
7398
  Object.defineProperty(obj, key, {
7298
7399
  value: value,
@@ -7305,11 +7406,11 @@
7305
7406
  }
7306
7407
  return obj;
7307
7408
  }
7308
- function _toPropertyKey$1(arg) {
7309
- var key = _toPrimitive$1(arg, "string");
7409
+ function _toPropertyKey$3(arg) {
7410
+ var key = _toPrimitive$3(arg, "string");
7310
7411
  return _typeof$4(key) === "symbol" ? key : String(key);
7311
7412
  }
7312
- function _toPrimitive$1(input, hint) {
7413
+ function _toPrimitive$3(input, hint) {
7313
7414
  if (_typeof$4(input) !== "object" || input === null) return input;
7314
7415
  var prim = input[Symbol.toPrimitive];
7315
7416
  if (prim !== undefined) {
@@ -7321,7 +7422,7 @@
7321
7422
  }
7322
7423
  function addAbsolutePosition(hits, page, hitsPerPage) {
7323
7424
  return hits.map(function (hit, idx) {
7324
- return _objectSpread$1(_objectSpread$1({}, hit), {}, {
7425
+ return _objectSpread$3(_objectSpread$3({}, hit), {}, {
7325
7426
  __position: hitsPerPage * page + idx + 1
7326
7427
  });
7327
7428
  });
@@ -7336,7 +7437,7 @@
7336
7437
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7337
7438
  }, _typeof$5(obj);
7338
7439
  }
7339
- function ownKeys$2(object, enumerableOnly) {
7440
+ function ownKeys$4(object, enumerableOnly) {
7340
7441
  var keys = Object.keys(object);
7341
7442
  if (Object.getOwnPropertySymbols) {
7342
7443
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7346,19 +7447,19 @@
7346
7447
  }
7347
7448
  return keys;
7348
7449
  }
7349
- function _objectSpread$2(target) {
7450
+ function _objectSpread$4(target) {
7350
7451
  for (var i = 1; i < arguments.length; i++) {
7351
7452
  var source = null != arguments[i] ? arguments[i] : {};
7352
- i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
7353
- _defineProperty$2(target, key, source[key]);
7354
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
7453
+ i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {
7454
+ _defineProperty$4(target, key, source[key]);
7455
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) {
7355
7456
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7356
7457
  });
7357
7458
  }
7358
7459
  return target;
7359
7460
  }
7360
- function _defineProperty$2(obj, key, value) {
7361
- key = _toPropertyKey$2(key);
7461
+ function _defineProperty$4(obj, key, value) {
7462
+ key = _toPropertyKey$4(key);
7362
7463
  if (key in obj) {
7363
7464
  Object.defineProperty(obj, key, {
7364
7465
  value: value,
@@ -7371,11 +7472,11 @@
7371
7472
  }
7372
7473
  return obj;
7373
7474
  }
7374
- function _toPropertyKey$2(arg) {
7375
- var key = _toPrimitive$2(arg, "string");
7475
+ function _toPropertyKey$4(arg) {
7476
+ var key = _toPrimitive$4(arg, "string");
7376
7477
  return _typeof$5(key) === "symbol" ? key : String(key);
7377
7478
  }
7378
- function _toPrimitive$2(input, hint) {
7479
+ function _toPrimitive$4(input, hint) {
7379
7480
  if (_typeof$5(input) !== "object" || input === null) return input;
7380
7481
  var prim = input[Symbol.toPrimitive];
7381
7482
  if (prim !== undefined) {
@@ -7390,12 +7491,175 @@
7390
7491
  return hits;
7391
7492
  }
7392
7493
  return hits.map(function (hit) {
7393
- return _objectSpread$2(_objectSpread$2({}, hit), {}, {
7494
+ return _objectSpread$4(_objectSpread$4({}, hit), {}, {
7394
7495
  __queryID: queryID
7395
7496
  });
7396
7497
  });
7397
7498
  }
7398
7499
 
7500
+ function _typeof$6(obj) {
7501
+ "@babel/helpers - typeof";
7502
+
7503
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7504
+ return typeof obj;
7505
+ } : function (obj) {
7506
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7507
+ }, _typeof$6(obj);
7508
+ }
7509
+ function ownKeys$5(object, enumerableOnly) {
7510
+ var keys = Object.keys(object);
7511
+ if (Object.getOwnPropertySymbols) {
7512
+ var symbols = Object.getOwnPropertySymbols(object);
7513
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
7514
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7515
+ })), keys.push.apply(keys, symbols);
7516
+ }
7517
+ return keys;
7518
+ }
7519
+ function _objectSpread$5(target) {
7520
+ for (var i = 1; i < arguments.length; i++) {
7521
+ var source = null != arguments[i] ? arguments[i] : {};
7522
+ i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7523
+ _defineProperty$5(target, key, source[key]);
7524
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7525
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7526
+ });
7527
+ }
7528
+ return target;
7529
+ }
7530
+ function _defineProperty$5(obj, key, value) {
7531
+ key = _toPropertyKey$5(key);
7532
+ if (key in obj) {
7533
+ Object.defineProperty(obj, key, {
7534
+ value: value,
7535
+ enumerable: true,
7536
+ configurable: true,
7537
+ writable: true
7538
+ });
7539
+ } else {
7540
+ obj[key] = value;
7541
+ }
7542
+ return obj;
7543
+ }
7544
+ function _toPropertyKey$5(arg) {
7545
+ var key = _toPrimitive$5(arg, "string");
7546
+ return _typeof$6(key) === "symbol" ? key : String(key);
7547
+ }
7548
+ function _toPrimitive$5(input, hint) {
7549
+ if (_typeof$6(input) !== "object" || input === null) return input;
7550
+ var prim = input[Symbol.toPrimitive];
7551
+ if (prim !== undefined) {
7552
+ var res = prim.call(input, hint || "default");
7553
+ if (_typeof$6(res) !== "object") return res;
7554
+ throw new TypeError("@@toPrimitive must return a primitive value.");
7555
+ }
7556
+ return (hint === "string" ? String : Number)(input);
7557
+ }
7558
+ // @ts-nocheck (types to be fixed during actual implementation)
7559
+
7560
+ function hydrateSearchClient(client, results) {
7561
+ if (!results) {
7562
+ return;
7563
+ }
7564
+
7565
+ // Disable cache hydration on:
7566
+ // - Algoliasearch API Client < v4 with cache disabled
7567
+ // - Third party clients (detected by the `addAlgoliaAgent` function missing)
7568
+
7569
+ if ((!client.transporter || client._cacheHydrated) && (!client._useCache || typeof client.addAlgoliaAgent !== 'function')) {
7570
+ return;
7571
+ }
7572
+
7573
+ // Algoliasearch API Client >= v4
7574
+ // To hydrate the client we need to populate the cache with the data from
7575
+ // the server (done in `hydrateSearchClientWithMultiIndexRequest` or
7576
+ // `hydrateSearchClientWithSingleIndexRequest`). But since there is no way
7577
+ // for us to compute the key the same way as `algoliasearch-client` we need
7578
+ // to populate it on a custom key and override the `search` method to
7579
+ // search on it first.
7580
+ if (client.transporter && !client._cacheHydrated) {
7581
+ client._cacheHydrated = true;
7582
+ var baseMethod = client.search;
7583
+ client.search = function (requests) {
7584
+ for (var _len = arguments.length, methodArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7585
+ methodArgs[_key - 1] = arguments[_key];
7586
+ }
7587
+ var requestsWithSerializedParams = requests.map(function (request) {
7588
+ return _objectSpread$5(_objectSpread$5({}, request), {}, {
7589
+ params: serializeQueryParameters(request.params)
7590
+ });
7591
+ });
7592
+ return client.transporter.responsesCache.get({
7593
+ method: 'search',
7594
+ args: [requestsWithSerializedParams].concat(methodArgs)
7595
+ }, function () {
7596
+ return baseMethod.apply(void 0, [requests].concat(methodArgs));
7597
+ });
7598
+ };
7599
+
7600
+ // Populate the cache with the data from the server
7601
+ client.transporter.responsesCache.set({
7602
+ method: 'search',
7603
+ args: [Object.keys(results).reduce(function (acc, key) {
7604
+ return acc.concat(results[key].results.map(function (request) {
7605
+ return {
7606
+ indexName: request.index,
7607
+ params: request.params
7608
+ };
7609
+ }));
7610
+ }, [])]
7611
+ }, {
7612
+ results: Object.keys(results).reduce(function (acc, key) {
7613
+ return acc.concat(results[key].results);
7614
+ }, [])
7615
+ });
7616
+ }
7617
+
7618
+ // Algoliasearch API Client < v4
7619
+ // Prior to client v4 we didn't have a proper API to hydrate the client
7620
+ // cache from the outside. The following code populates the cache with
7621
+ // a single-index result. You can find more information about the
7622
+ // computation of the key inside the client (see link below).
7623
+ // https://github.com/algolia/algoliasearch-client-javascript/blob/c27e89ff92b2a854ae6f40dc524bffe0f0cbc169/src/AlgoliaSearchCore.js#L232-L240
7624
+ if (!client.transporter) {
7625
+ var cacheKey = "/1/indexes/*/queries_body_".concat(JSON.stringify({
7626
+ requests: Object.keys(results).reduce(function (acc, key) {
7627
+ return acc.concat(results[key].rawResults.map(function (request) {
7628
+ return {
7629
+ indexName: request.index,
7630
+ params: request.params
7631
+ };
7632
+ }));
7633
+ }, [])
7634
+ }));
7635
+ client.cache = _objectSpread$5(_objectSpread$5({}, client.cache), {}, _defineProperty$5({}, cacheKey, JSON.stringify({
7636
+ results: Object.keys(results).reduce(function (acc, key) {
7637
+ return acc.concat(results[key].rawResults);
7638
+ }, [])
7639
+ })));
7640
+ }
7641
+ }
7642
+
7643
+ // This function is copied from the algoliasearch v4 API Client. If modified,
7644
+ // consider updating it also in `serializeQueryParameters` from `@algolia/transporter`.
7645
+ function serializeQueryParameters(parameters) {
7646
+ var isObjectOrArray = function isObjectOrArray(value) {
7647
+ return Object.prototype.toString.call(value) === '[object Object]' || Object.prototype.toString.call(value) === '[object Array]';
7648
+ };
7649
+ var encode = function encode(format) {
7650
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
7651
+ args[_key2 - 1] = arguments[_key2];
7652
+ }
7653
+ var i = 0;
7654
+ return format.replace(/%s/g, function () {
7655
+ return encodeURIComponent(args[i++]);
7656
+ });
7657
+ };
7658
+ return Object.keys(parameters).map(function (key) {
7659
+ return encode('%s=%s', key, isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key]);
7660
+ }).join('&');
7661
+ }
7662
+
7399
7663
  function isPrimitive(obj) {
7400
7664
  return obj !== Object(obj);
7401
7665
  }
@@ -7450,17 +7714,17 @@
7450
7714
  });
7451
7715
  }
7452
7716
 
7453
- function _typeof$6(obj) {
7717
+ function _typeof$7(obj) {
7454
7718
  "@babel/helpers - typeof";
7455
7719
 
7456
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7720
+ return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7457
7721
  return typeof obj;
7458
7722
  } : function (obj) {
7459
7723
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7460
- }, _typeof$6(obj);
7724
+ }, _typeof$7(obj);
7461
7725
  }
7462
7726
  var _excluded = ["facets", "disjunctiveFacets", "facetsRefinements", "facetsExcludes", "disjunctiveFacetsRefinements", "numericRefinements", "tagRefinements", "hierarchicalFacets", "hierarchicalFacetsRefinements", "ruleContexts"];
7463
- function ownKeys$3(object, enumerableOnly) {
7727
+ function ownKeys$6(object, enumerableOnly) {
7464
7728
  var keys = Object.keys(object);
7465
7729
  if (Object.getOwnPropertySymbols) {
7466
7730
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7470,19 +7734,19 @@
7470
7734
  }
7471
7735
  return keys;
7472
7736
  }
7473
- function _objectSpread$3(target) {
7737
+ function _objectSpread$6(target) {
7474
7738
  for (var i = 1; i < arguments.length; i++) {
7475
7739
  var source = null != arguments[i] ? arguments[i] : {};
7476
- i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
7477
- _defineProperty$3(target, key, source[key]);
7478
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) {
7740
+ i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
7741
+ _defineProperty$6(target, key, source[key]);
7742
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
7479
7743
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7480
7744
  });
7481
7745
  }
7482
7746
  return target;
7483
7747
  }
7484
- function _defineProperty$3(obj, key, value) {
7485
- key = _toPropertyKey$3(key);
7748
+ function _defineProperty$6(obj, key, value) {
7749
+ key = _toPropertyKey$6(key);
7486
7750
  if (key in obj) {
7487
7751
  Object.defineProperty(obj, key, {
7488
7752
  value: value,
@@ -7495,16 +7759,16 @@
7495
7759
  }
7496
7760
  return obj;
7497
7761
  }
7498
- function _toPropertyKey$3(arg) {
7499
- var key = _toPrimitive$3(arg, "string");
7500
- return _typeof$6(key) === "symbol" ? key : String(key);
7762
+ function _toPropertyKey$6(arg) {
7763
+ var key = _toPrimitive$6(arg, "string");
7764
+ return _typeof$7(key) === "symbol" ? key : String(key);
7501
7765
  }
7502
- function _toPrimitive$3(input, hint) {
7503
- if (_typeof$6(input) !== "object" || input === null) return input;
7766
+ function _toPrimitive$6(input, hint) {
7767
+ if (_typeof$7(input) !== "object" || input === null) return input;
7504
7768
  var prim = input[Symbol.toPrimitive];
7505
7769
  if (prim !== undefined) {
7506
7770
  var res = prim.call(input, hint || "default");
7507
- if (_typeof$6(res) !== "object") return res;
7771
+ if (_typeof$7(res) !== "object") return res;
7508
7772
  throw new TypeError("@@toPrimitive must return a primitive value.");
7509
7773
  }
7510
7774
  return (hint === "string" ? String : Number)(input);
@@ -7586,27 +7850,27 @@
7586
7850
  };
7587
7851
  var mergeFacetRefinements = function mergeFacetRefinements(left, right) {
7588
7852
  return left.setQueryParameters({
7589
- facetsRefinements: _objectSpread$3(_objectSpread$3({}, left.facetsRefinements), right.facetsRefinements)
7853
+ facetsRefinements: _objectSpread$6(_objectSpread$6({}, left.facetsRefinements), right.facetsRefinements)
7590
7854
  });
7591
7855
  };
7592
7856
  var mergeFacetsExcludes = function mergeFacetsExcludes(left, right) {
7593
7857
  return left.setQueryParameters({
7594
- facetsExcludes: _objectSpread$3(_objectSpread$3({}, left.facetsExcludes), right.facetsExcludes)
7858
+ facetsExcludes: _objectSpread$6(_objectSpread$6({}, left.facetsExcludes), right.facetsExcludes)
7595
7859
  });
7596
7860
  };
7597
7861
  var mergeDisjunctiveFacetsRefinements = function mergeDisjunctiveFacetsRefinements(left, right) {
7598
7862
  return left.setQueryParameters({
7599
- disjunctiveFacetsRefinements: _objectSpread$3(_objectSpread$3({}, left.disjunctiveFacetsRefinements), right.disjunctiveFacetsRefinements)
7863
+ disjunctiveFacetsRefinements: _objectSpread$6(_objectSpread$6({}, left.disjunctiveFacetsRefinements), right.disjunctiveFacetsRefinements)
7600
7864
  });
7601
7865
  };
7602
7866
  var mergeNumericRefinements = function mergeNumericRefinements(left, right) {
7603
7867
  return left.setQueryParameters({
7604
- numericRefinements: _objectSpread$3(_objectSpread$3({}, left.numericRefinements), right.numericRefinements)
7868
+ numericRefinements: _objectSpread$6(_objectSpread$6({}, left.numericRefinements), right.numericRefinements)
7605
7869
  });
7606
7870
  };
7607
7871
  var mergeHierarchicalFacetsRefinements = function mergeHierarchicalFacetsRefinements(left, right) {
7608
7872
  return left.setQueryParameters({
7609
- hierarchicalFacetsRefinements: _objectSpread$3(_objectSpread$3({}, left.hierarchicalFacetsRefinements), right.hierarchicalFacetsRefinements)
7873
+ hierarchicalFacetsRefinements: _objectSpread$6(_objectSpread$6({}, left.hierarchicalFacetsRefinements), right.hierarchicalFacetsRefinements)
7610
7874
  });
7611
7875
  };
7612
7876
  var mergeRuleContexts = function mergeRuleContexts(left, right) {
@@ -7732,16 +7996,16 @@
7732
7996
  return states;
7733
7997
  }
7734
7998
 
7735
- function _typeof$7(obj) {
7999
+ function _typeof$8(obj) {
7736
8000
  "@babel/helpers - typeof";
7737
8001
 
7738
- return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8002
+ return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7739
8003
  return typeof obj;
7740
8004
  } : function (obj) {
7741
8005
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7742
- }, _typeof$7(obj);
8006
+ }, _typeof$8(obj);
7743
8007
  }
7744
- function ownKeys$4(object, enumerableOnly) {
8008
+ function ownKeys$7(object, enumerableOnly) {
7745
8009
  var keys = Object.keys(object);
7746
8010
  if (Object.getOwnPropertySymbols) {
7747
8011
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7751,19 +8015,19 @@
7751
8015
  }
7752
8016
  return keys;
7753
8017
  }
7754
- function _objectSpread$4(target) {
8018
+ function _objectSpread$7(target) {
7755
8019
  for (var i = 1; i < arguments.length; i++) {
7756
8020
  var source = null != arguments[i] ? arguments[i] : {};
7757
- i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {
7758
- _defineProperty$4(target, key, source[key]);
7759
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) {
8021
+ i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
8022
+ _defineProperty$7(target, key, source[key]);
8023
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
7760
8024
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7761
8025
  });
7762
8026
  }
7763
8027
  return target;
7764
8028
  }
7765
- function _defineProperty$4(obj, key, value) {
7766
- key = _toPropertyKey$4(key);
8029
+ function _defineProperty$7(obj, key, value) {
8030
+ key = _toPropertyKey$7(key);
7767
8031
  if (key in obj) {
7768
8032
  Object.defineProperty(obj, key, {
7769
8033
  value: value,
@@ -7776,16 +8040,16 @@
7776
8040
  }
7777
8041
  return obj;
7778
8042
  }
7779
- function _toPropertyKey$4(arg) {
7780
- var key = _toPrimitive$4(arg, "string");
7781
- return _typeof$7(key) === "symbol" ? key : String(key);
8043
+ function _toPropertyKey$7(arg) {
8044
+ var key = _toPrimitive$7(arg, "string");
8045
+ return _typeof$8(key) === "symbol" ? key : String(key);
7782
8046
  }
7783
- function _toPrimitive$4(input, hint) {
7784
- if (_typeof$7(input) !== "object" || input === null) return input;
8047
+ function _toPrimitive$7(input, hint) {
8048
+ if (_typeof$8(input) !== "object" || input === null) return input;
7785
8049
  var prim = input[Symbol.toPrimitive];
7786
8050
  if (prim !== undefined) {
7787
8051
  var res = prim.call(input, hint || "default");
7788
- if (_typeof$7(res) !== "object") return res;
8052
+ if (_typeof$8(res) !== "object") return res;
7789
8053
  throw new TypeError("@@toPrimitive must return a primitive value.");
7790
8054
  }
7791
8055
  return (hint === "string" ? String : Number)(input);
@@ -7795,13 +8059,13 @@
7795
8059
  return part.isHighlighted;
7796
8060
  })) {
7797
8061
  return parts.map(function (part) {
7798
- return _objectSpread$4(_objectSpread$4({}, part), {}, {
8062
+ return _objectSpread$7(_objectSpread$7({}, part), {}, {
7799
8063
  isHighlighted: false
7800
8064
  });
7801
8065
  });
7802
8066
  }
7803
8067
  return parts.map(function (part, i) {
7804
- return _objectSpread$4(_objectSpread$4({}, part), {}, {
8068
+ return _objectSpread$7(_objectSpread$7({}, part), {}, {
7805
8069
  isHighlighted: !getHighlightFromSiblings(parts, i)
7806
8070
  });
7807
8071
  });
@@ -7834,16 +8098,16 @@
7834
8098
  return Array.isArray(value) ? value : [value];
7835
8099
  }
7836
8100
 
7837
- function _typeof$8(obj) {
8101
+ function _typeof$9(obj) {
7838
8102
  "@babel/helpers - typeof";
7839
8103
 
7840
- return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8104
+ return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7841
8105
  return typeof obj;
7842
8106
  } : function (obj) {
7843
8107
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7844
- }, _typeof$8(obj);
8108
+ }, _typeof$9(obj);
7845
8109
  }
7846
- function ownKeys$5(object, enumerableOnly) {
8110
+ function ownKeys$8(object, enumerableOnly) {
7847
8111
  var keys = Object.keys(object);
7848
8112
  if (Object.getOwnPropertySymbols) {
7849
8113
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7853,19 +8117,19 @@
7853
8117
  }
7854
8118
  return keys;
7855
8119
  }
7856
- function _objectSpread$5(target) {
8120
+ function _objectSpread$8(target) {
7857
8121
  for (var i = 1; i < arguments.length; i++) {
7858
8122
  var source = null != arguments[i] ? arguments[i] : {};
7859
- i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7860
- _defineProperty$5(target, key, source[key]);
7861
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
8123
+ i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
8124
+ _defineProperty$8(target, key, source[key]);
8125
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
7862
8126
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7863
8127
  });
7864
8128
  }
7865
8129
  return target;
7866
8130
  }
7867
- function _defineProperty$5(obj, key, value) {
7868
- key = _toPropertyKey$5(key);
8131
+ function _defineProperty$8(obj, key, value) {
8132
+ key = _toPropertyKey$8(key);
7869
8133
  if (key in obj) {
7870
8134
  Object.defineProperty(obj, key, {
7871
8135
  value: value,
@@ -7878,16 +8142,16 @@
7878
8142
  }
7879
8143
  return obj;
7880
8144
  }
7881
- function _toPropertyKey$5(arg) {
7882
- var key = _toPrimitive$5(arg, "string");
7883
- return _typeof$8(key) === "symbol" ? key : String(key);
8145
+ function _toPropertyKey$8(arg) {
8146
+ var key = _toPrimitive$8(arg, "string");
8147
+ return _typeof$9(key) === "symbol" ? key : String(key);
7884
8148
  }
7885
- function _toPrimitive$5(input, hint) {
7886
- if (_typeof$8(input) !== "object" || input === null) return input;
8149
+ function _toPrimitive$8(input, hint) {
8150
+ if (_typeof$9(input) !== "object" || input === null) return input;
7887
8151
  var prim = input[Symbol.toPrimitive];
7888
8152
  if (prim !== undefined) {
7889
8153
  var res = prim.call(input, hint || "default");
7890
- if (_typeof$8(res) !== "object") return res;
8154
+ if (_typeof$9(res) !== "object") return res;
7891
8155
  throw new TypeError("@@toPrimitive must return a primitive value.");
7892
8156
  }
7893
8157
  return (hint === "string" ? String : Number)(input);
@@ -7906,7 +8170,7 @@
7906
8170
  // the state. The function `setQueryParameters` omits the values that
7907
8171
  // are `undefined` on the next state.
7908
8172
  return state.setQueryParameters(Object.keys(widgetParams.searchParameters).reduce(function (acc, key) {
7909
- return _objectSpread$5(_objectSpread$5({}, acc), {}, _defineProperty$5({}, key, undefined));
8173
+ return _objectSpread$8(_objectSpread$8({}, acc), {}, _defineProperty$8({}, key, undefined));
7910
8174
  }, {}));
7911
8175
  }
7912
8176
  var connectConfigure = function connectConfigure() {
@@ -7934,13 +8198,13 @@
7934
8198
  $$type: 'ais.configure',
7935
8199
  init: function init(initOptions) {
7936
8200
  var instantSearchInstance = initOptions.instantSearchInstance;
7937
- renderFn(_objectSpread$5(_objectSpread$5({}, this.getWidgetRenderState(initOptions)), {}, {
8201
+ renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(initOptions)), {}, {
7938
8202
  instantSearchInstance: instantSearchInstance
7939
8203
  }), true);
7940
8204
  },
7941
8205
  render: function render(renderOptions) {
7942
8206
  var instantSearchInstance = renderOptions.instantSearchInstance;
7943
- renderFn(_objectSpread$5(_objectSpread$5({}, this.getWidgetRenderState(renderOptions)), {}, {
8207
+ renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(renderOptions)), {}, {
7944
8208
  instantSearchInstance: instantSearchInstance
7945
8209
  }), false);
7946
8210
  },
@@ -7952,9 +8216,9 @@
7952
8216
  getRenderState: function getRenderState(renderState, renderOptions) {
7953
8217
  var _renderState$configur;
7954
8218
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
7955
- return _objectSpread$5(_objectSpread$5({}, renderState), {}, {
7956
- configure: _objectSpread$5(_objectSpread$5({}, widgetRenderState), {}, {
7957
- widgetParams: _objectSpread$5(_objectSpread$5({}, widgetRenderState.widgetParams), {}, {
8219
+ return _objectSpread$8(_objectSpread$8({}, renderState), {}, {
8220
+ configure: _objectSpread$8(_objectSpread$8({}, widgetRenderState), {}, {
8221
+ widgetParams: _objectSpread$8(_objectSpread$8({}, widgetRenderState.widgetParams), {}, {
7958
8222
  searchParameters: mergeSearchParameters(new algoliasearchHelper_1.SearchParameters((_renderState$configur = renderState.configure) === null || _renderState$configur === void 0 ? void 0 : _renderState$configur.widgetParams.searchParameters), new algoliasearchHelper_1.SearchParameters(widgetRenderState.widgetParams.searchParameters)).getQueryParams()
7959
8223
  })
7960
8224
  })
@@ -7972,25 +8236,25 @@
7972
8236
  },
7973
8237
  getWidgetSearchParameters: function getWidgetSearchParameters(state, _ref3) {
7974
8238
  var uiState = _ref3.uiState;
7975
- return mergeSearchParameters(state, new algoliasearchHelper_1.SearchParameters(_objectSpread$5(_objectSpread$5({}, uiState.configure), widgetParams.searchParameters)));
8239
+ return mergeSearchParameters(state, new algoliasearchHelper_1.SearchParameters(_objectSpread$8(_objectSpread$8({}, uiState.configure), widgetParams.searchParameters)));
7976
8240
  },
7977
8241
  getWidgetUiState: function getWidgetUiState(uiState) {
7978
- return _objectSpread$5(_objectSpread$5({}, uiState), {}, {
7979
- configure: _objectSpread$5(_objectSpread$5({}, uiState.configure), widgetParams.searchParameters)
8242
+ return _objectSpread$8(_objectSpread$8({}, uiState), {}, {
8243
+ configure: _objectSpread$8(_objectSpread$8({}, uiState.configure), widgetParams.searchParameters)
7980
8244
  });
7981
8245
  }
7982
8246
  };
7983
8247
  };
7984
8248
  };
7985
8249
 
7986
- function _typeof$9(obj) {
8250
+ function _typeof$a(obj) {
7987
8251
  "@babel/helpers - typeof";
7988
8252
 
7989
- return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8253
+ return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7990
8254
  return typeof obj;
7991
8255
  } : function (obj) {
7992
8256
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7993
- }, _typeof$9(obj);
8257
+ }, _typeof$a(obj);
7994
8258
  }
7995
8259
  /* eslint-disable complexity */
7996
8260
 
@@ -8024,7 +8288,7 @@
8024
8288
  }
8025
8289
  return len === -1;
8026
8290
  }
8027
- if (!ctor || _typeof$9(foo) === 'object') {
8291
+ if (!ctor || _typeof$a(foo) === 'object') {
8028
8292
  len = 0;
8029
8293
  // eslint-disable-next-line guard-for-in, no-restricted-syntax
8030
8294
  for (ctor in foo) {
@@ -8059,16 +8323,16 @@
8059
8323
  });
8060
8324
  }
8061
8325
 
8062
- function _typeof$a(obj) {
8326
+ function _typeof$b(obj) {
8063
8327
  "@babel/helpers - typeof";
8064
8328
 
8065
- return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8329
+ return _typeof$b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8066
8330
  return typeof obj;
8067
8331
  } : function (obj) {
8068
8332
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8069
- }, _typeof$a(obj);
8333
+ }, _typeof$b(obj);
8070
8334
  }
8071
- function ownKeys$6(object, enumerableOnly) {
8335
+ function ownKeys$9(object, enumerableOnly) {
8072
8336
  var keys = Object.keys(object);
8073
8337
  if (Object.getOwnPropertySymbols) {
8074
8338
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8078,19 +8342,19 @@
8078
8342
  }
8079
8343
  return keys;
8080
8344
  }
8081
- function _objectSpread$6(target) {
8345
+ function _objectSpread$9(target) {
8082
8346
  for (var i = 1; i < arguments.length; i++) {
8083
8347
  var source = null != arguments[i] ? arguments[i] : {};
8084
- i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
8085
- _defineProperty$6(target, key, source[key]);
8086
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
8348
+ i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8349
+ _defineProperty$9(target, key, source[key]);
8350
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
8087
8351
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8088
8352
  });
8089
8353
  }
8090
8354
  return target;
8091
8355
  }
8092
- function _defineProperty$6(obj, key, value) {
8093
- key = _toPropertyKey$6(key);
8356
+ function _defineProperty$9(obj, key, value) {
8357
+ key = _toPropertyKey$9(key);
8094
8358
  if (key in obj) {
8095
8359
  Object.defineProperty(obj, key, {
8096
8360
  value: value,
@@ -8103,16 +8367,16 @@
8103
8367
  }
8104
8368
  return obj;
8105
8369
  }
8106
- function _toPropertyKey$6(arg) {
8107
- var key = _toPrimitive$6(arg, "string");
8108
- return _typeof$a(key) === "symbol" ? key : String(key);
8370
+ function _toPropertyKey$9(arg) {
8371
+ var key = _toPrimitive$9(arg, "string");
8372
+ return _typeof$b(key) === "symbol" ? key : String(key);
8109
8373
  }
8110
- function _toPrimitive$6(input, hint) {
8111
- if (_typeof$a(input) !== "object" || input === null) return input;
8374
+ function _toPrimitive$9(input, hint) {
8375
+ if (_typeof$b(input) !== "object" || input === null) return input;
8112
8376
  var prim = input[Symbol.toPrimitive];
8113
8377
  if (prim !== undefined) {
8114
8378
  var res = prim.call(input, hint || "default");
8115
- if (_typeof$a(res) !== "object") return res;
8379
+ if (_typeof$b(res) !== "object") return res;
8116
8380
  throw new TypeError("@@toPrimitive must return a primitive value.");
8117
8381
  }
8118
8382
  return (hint === "string" ? String : Number)(input);
@@ -8126,7 +8390,7 @@
8126
8390
  createSearchResults(helper.state);
8127
8391
  var scopedResults = indexWidget.getScopedResults().map(function (scopedResult) {
8128
8392
  var fallbackResults = scopedResult.indexId === indexWidget.getIndexId() ? results : createSearchResults(scopedResult.helper.state);
8129
- return _objectSpread$6(_objectSpread$6({}, scopedResult), {}, {
8393
+ return _objectSpread$9(_objectSpread$9({}, scopedResult), {}, {
8130
8394
  // We keep `results` from being `null`.
8131
8395
  results: scopedResult.results || fallbackResults
8132
8396
  });
@@ -8338,14 +8602,14 @@
8338
8602
  }
8339
8603
  }
8340
8604
 
8341
- function _typeof$b(obj) {
8605
+ function _typeof$c(obj) {
8342
8606
  "@babel/helpers - typeof";
8343
8607
 
8344
- return _typeof$b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8608
+ return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8345
8609
  return typeof obj;
8346
8610
  } : function (obj) {
8347
8611
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8348
- }, _typeof$b(obj);
8612
+ }, _typeof$c(obj);
8349
8613
  }
8350
8614
  var _excluded$1 = ["instantSearchInstance", "widgetParams"],
8351
8615
  _excluded2 = ["widgetParams"];
@@ -8398,7 +8662,7 @@
8398
8662
  function _arrayWithHoles$4(arr) {
8399
8663
  if (Array.isArray(arr)) return arr;
8400
8664
  }
8401
- function ownKeys$7(object, enumerableOnly) {
8665
+ function ownKeys$a(object, enumerableOnly) {
8402
8666
  var keys = Object.keys(object);
8403
8667
  if (Object.getOwnPropertySymbols) {
8404
8668
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8408,19 +8672,19 @@
8408
8672
  }
8409
8673
  return keys;
8410
8674
  }
8411
- function _objectSpread$7(target) {
8675
+ function _objectSpread$a(target) {
8412
8676
  for (var i = 1; i < arguments.length; i++) {
8413
8677
  var source = null != arguments[i] ? arguments[i] : {};
8414
- i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
8415
- _defineProperty$7(target, key, source[key]);
8416
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
8678
+ i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) {
8679
+ _defineProperty$a(target, key, source[key]);
8680
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) {
8417
8681
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8418
8682
  });
8419
8683
  }
8420
8684
  return target;
8421
8685
  }
8422
- function _defineProperty$7(obj, key, value) {
8423
- key = _toPropertyKey$7(key);
8686
+ function _defineProperty$a(obj, key, value) {
8687
+ key = _toPropertyKey$a(key);
8424
8688
  if (key in obj) {
8425
8689
  Object.defineProperty(obj, key, {
8426
8690
  value: value,
@@ -8433,16 +8697,16 @@
8433
8697
  }
8434
8698
  return obj;
8435
8699
  }
8436
- function _toPropertyKey$7(arg) {
8437
- var key = _toPrimitive$7(arg, "string");
8438
- return _typeof$b(key) === "symbol" ? key : String(key);
8700
+ function _toPropertyKey$a(arg) {
8701
+ var key = _toPrimitive$a(arg, "string");
8702
+ return _typeof$c(key) === "symbol" ? key : String(key);
8439
8703
  }
8440
- function _toPrimitive$7(input, hint) {
8441
- if (_typeof$b(input) !== "object" || input === null) return input;
8704
+ function _toPrimitive$a(input, hint) {
8705
+ if (_typeof$c(input) !== "object" || input === null) return input;
8442
8706
  var prim = input[Symbol.toPrimitive];
8443
8707
  if (prim !== undefined) {
8444
8708
  var res = prim.call(input, hint || "default");
8445
- if (_typeof$b(res) !== "object") return res;
8709
+ if (_typeof$c(res) !== "object") return res;
8446
8710
  throw new TypeError("@@toPrimitive must return a primitive value.");
8447
8711
  }
8448
8712
  return (hint === "string" ? String : Number)(input);
@@ -8529,7 +8793,7 @@
8529
8793
  // InstantSearch.js re-inits the component.
8530
8794
  shouldSetStateRef.current = false;
8531
8795
  });
8532
- return _objectSpread$7(_objectSpread$7({}, createWidget(stableProps)), stableAdditionalWidgetProperties);
8796
+ return _objectSpread$a(_objectSpread$a({}, createWidget(stableProps)), stableAdditionalWidgetProperties);
8533
8797
  }, [connector, stableProps, stableAdditionalWidgetProperties]);
8534
8798
  var _useState = React.useState(function () {
8535
8799
  if (widget.getWidgetRenderState) {
@@ -8594,7 +8858,7 @@
8594
8858
  return null;
8595
8859
  }
8596
8860
 
8597
- function ownKeys$8(object, enumerableOnly) {
8861
+ function ownKeys$b(object, enumerableOnly) {
8598
8862
  var keys = Object.keys(object);
8599
8863
  if (Object.getOwnPropertySymbols) {
8600
8864
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8604,19 +8868,19 @@
8604
8868
  }
8605
8869
  return keys;
8606
8870
  }
8607
- function _objectSpread$8(target) {
8871
+ function _objectSpread$b(target) {
8608
8872
  for (var i = 1; i < arguments.length; i++) {
8609
8873
  var source = null != arguments[i] ? arguments[i] : {};
8610
- i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
8611
- _defineProperty$8(target, key, source[key]);
8612
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
8874
+ i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
8875
+ _defineProperty$b(target, key, source[key]);
8876
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
8613
8877
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8614
8878
  });
8615
8879
  }
8616
8880
  return target;
8617
8881
  }
8618
- function _defineProperty$8(obj, key, value) {
8619
- key = _toPropertyKey$8(key);
8882
+ function _defineProperty$b(obj, key, value) {
8883
+ key = _toPropertyKey$b(key);
8620
8884
  if (key in obj) {
8621
8885
  Object.defineProperty(obj, key, {
8622
8886
  value: value,
@@ -8629,28 +8893,28 @@
8629
8893
  }
8630
8894
  return obj;
8631
8895
  }
8632
- function _toPropertyKey$8(arg) {
8633
- var key = _toPrimitive$8(arg, "string");
8634
- return _typeof$c(key) === "symbol" ? key : String(key);
8896
+ function _toPropertyKey$b(arg) {
8897
+ var key = _toPrimitive$b(arg, "string");
8898
+ return _typeof$d(key) === "symbol" ? key : String(key);
8635
8899
  }
8636
- function _toPrimitive$8(input, hint) {
8637
- if (_typeof$c(input) !== "object" || input === null) return input;
8900
+ function _toPrimitive$b(input, hint) {
8901
+ if (_typeof$d(input) !== "object" || input === null) return input;
8638
8902
  var prim = input[Symbol.toPrimitive];
8639
8903
  if (prim !== undefined) {
8640
8904
  var res = prim.call(input, hint || "default");
8641
- if (_typeof$c(res) !== "object") return res;
8905
+ if (_typeof$d(res) !== "object") return res;
8642
8906
  throw new TypeError("@@toPrimitive must return a primitive value.");
8643
8907
  }
8644
8908
  return (hint === "string" ? String : Number)(input);
8645
8909
  }
8646
- function _typeof$c(obj) {
8910
+ function _typeof$d(obj) {
8647
8911
  "@babel/helpers - typeof";
8648
8912
 
8649
- return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8913
+ return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8650
8914
  return typeof obj;
8651
8915
  } : function (obj) {
8652
8916
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8653
- }, _typeof$c(obj);
8917
+ }, _typeof$d(obj);
8654
8918
  }
8655
8919
  var withUsage$1 = createDocumentationMessageGenerator({
8656
8920
  name: 'dynamic-widgets',
@@ -8671,7 +8935,7 @@
8671
8935
  } : _widgetParams$transfo,
8672
8936
  fallbackWidget = widgetParams.fallbackWidget;
8673
8937
  if (!(widgets && Array.isArray(widgets) && widgets.every(function (widget) {
8674
- return _typeof$c(widget) === 'object';
8938
+ return _typeof$d(widget) === 'object';
8675
8939
  }))) {
8676
8940
  throw new Error(withUsage$1('The `widgets` option expects an array of widgets.'));
8677
8941
  }
@@ -8689,7 +8953,7 @@
8689
8953
  isMounted: false
8690
8954
  });
8691
8955
  });
8692
- renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(initOptions)), {}, {
8956
+ renderFn(_objectSpread$b(_objectSpread$b({}, this.getWidgetRenderState(initOptions)), {}, {
8693
8957
  instantSearchInstance: initOptions.instantSearchInstance
8694
8958
  }), true);
8695
8959
  },
@@ -8736,7 +9000,7 @@
8736
9000
  setTimeout(function () {
8737
9001
  return parent.removeWidgets(widgetsToUnmount);
8738
9002
  }, 0);
8739
- renderFn(_objectSpread$8(_objectSpread$8({}, renderState), {}, {
9003
+ renderFn(_objectSpread$b(_objectSpread$b({}, renderState), {}, {
8740
9004
  instantSearchInstance: renderOptions.instantSearchInstance
8741
9005
  }), false);
8742
9006
  },
@@ -8762,7 +9026,7 @@
8762
9026
  }));
8763
9027
  },
8764
9028
  getRenderState: function getRenderState(renderState, renderOptions) {
8765
- return _objectSpread$8(_objectSpread$8({}, renderState), {}, {
9029
+ return _objectSpread$b(_objectSpread$b({}, renderState), {}, {
8766
9030
  dynamicWidgets: this.getWidgetRenderState(renderOptions)
8767
9031
  });
8768
9032
  },
@@ -8791,16 +9055,16 @@
8791
9055
  };
8792
9056
  };
8793
9057
 
8794
- function _typeof$d(obj) {
9058
+ function _typeof$e(obj) {
8795
9059
  "@babel/helpers - typeof";
8796
9060
 
8797
- return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9061
+ return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8798
9062
  return typeof obj;
8799
9063
  } : function (obj) {
8800
9064
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8801
- }, _typeof$d(obj);
9065
+ }, _typeof$e(obj);
8802
9066
  }
8803
- function ownKeys$9(object, enumerableOnly) {
9067
+ function ownKeys$c(object, enumerableOnly) {
8804
9068
  var keys = Object.keys(object);
8805
9069
  if (Object.getOwnPropertySymbols) {
8806
9070
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8810,19 +9074,19 @@
8810
9074
  }
8811
9075
  return keys;
8812
9076
  }
8813
- function _objectSpread$9(target) {
9077
+ function _objectSpread$c(target) {
8814
9078
  for (var i = 1; i < arguments.length; i++) {
8815
9079
  var source = null != arguments[i] ? arguments[i] : {};
8816
- i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8817
- _defineProperty$9(target, key, source[key]);
8818
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
9080
+ i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
9081
+ _defineProperty$c(target, key, source[key]);
9082
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
8819
9083
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8820
9084
  });
8821
9085
  }
8822
9086
  return target;
8823
9087
  }
8824
- function _defineProperty$9(obj, key, value) {
8825
- key = _toPropertyKey$9(key);
9088
+ function _defineProperty$c(obj, key, value) {
9089
+ key = _toPropertyKey$c(key);
8826
9090
  if (key in obj) {
8827
9091
  Object.defineProperty(obj, key, {
8828
9092
  value: value,
@@ -8835,22 +9099,22 @@
8835
9099
  }
8836
9100
  return obj;
8837
9101
  }
8838
- function _toPropertyKey$9(arg) {
8839
- var key = _toPrimitive$9(arg, "string");
8840
- return _typeof$d(key) === "symbol" ? key : String(key);
9102
+ function _toPropertyKey$c(arg) {
9103
+ var key = _toPrimitive$c(arg, "string");
9104
+ return _typeof$e(key) === "symbol" ? key : String(key);
8841
9105
  }
8842
- function _toPrimitive$9(input, hint) {
8843
- if (_typeof$d(input) !== "object" || input === null) return input;
9106
+ function _toPrimitive$c(input, hint) {
9107
+ if (_typeof$e(input) !== "object" || input === null) return input;
8844
9108
  var prim = input[Symbol.toPrimitive];
8845
9109
  if (prim !== undefined) {
8846
9110
  var res = prim.call(input, hint || "default");
8847
- if (_typeof$d(res) !== "object") return res;
9111
+ if (_typeof$e(res) !== "object") return res;
8848
9112
  throw new TypeError("@@toPrimitive must return a primitive value.");
8849
9113
  }
8850
9114
  return (hint === "string" ? String : Number)(input);
8851
9115
  }
8852
9116
  function useDynamicWidgets(props, additionalWidgetProperties) {
8853
- return useConnector(connectDynamicWidgets, _objectSpread$9(_objectSpread$9({}, props), {}, {
9117
+ return useConnector(connectDynamicWidgets, _objectSpread$c(_objectSpread$c({}, props), {}, {
8854
9118
  // We don't rely on InstantSearch.js for rendering widgets because React
8855
9119
  // directly manipulates the children.
8856
9120
  widgets: []
@@ -8858,14 +9122,14 @@
8858
9122
  }
8859
9123
 
8860
9124
  var _excluded$2 = ["children", "fallbackComponent"];
8861
- function _typeof$e(obj) {
9125
+ function _typeof$f(obj) {
8862
9126
  "@babel/helpers - typeof";
8863
9127
 
8864
- return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9128
+ return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8865
9129
  return typeof obj;
8866
9130
  } : function (obj) {
8867
9131
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8868
- }, _typeof$e(obj);
9132
+ }, _typeof$f(obj);
8869
9133
  }
8870
9134
  function _objectWithoutProperties$2(source, excluded) {
8871
9135
  if (source == null) return {};
@@ -8922,7 +9186,7 @@
8922
9186
  }));
8923
9187
  }
8924
9188
  function isReactElement(element) {
8925
- return _typeof$e(element) === 'object' && element.props;
9189
+ return _typeof$f(element) === 'object' && element.props;
8926
9190
  }
8927
9191
  function getWidgetAttribute$1(element) {
8928
9192
  if (!isReactElement(element)) {
@@ -8941,17 +9205,17 @@
8941
9205
  return undefined;
8942
9206
  }
8943
9207
 
8944
- function _typeof$f(obj) {
9208
+ function _typeof$g(obj) {
8945
9209
  "@babel/helpers - typeof";
8946
9210
 
8947
- return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9211
+ return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8948
9212
  return typeof obj;
8949
9213
  } : function (obj) {
8950
9214
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8951
- }, _typeof$f(obj);
9215
+ }, _typeof$g(obj);
8952
9216
  }
8953
9217
  var _excluded$3 = ["initialSearchParameters"];
8954
- function ownKeys$a(object, enumerableOnly) {
9218
+ function ownKeys$d(object, enumerableOnly) {
8955
9219
  var keys = Object.keys(object);
8956
9220
  if (Object.getOwnPropertySymbols) {
8957
9221
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8961,19 +9225,19 @@
8961
9225
  }
8962
9226
  return keys;
8963
9227
  }
8964
- function _objectSpread$a(target) {
9228
+ function _objectSpread$d(target) {
8965
9229
  for (var i = 1; i < arguments.length; i++) {
8966
9230
  var source = null != arguments[i] ? arguments[i] : {};
8967
- i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) {
8968
- _defineProperty$a(target, key, source[key]);
8969
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) {
9231
+ i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
9232
+ _defineProperty$d(target, key, source[key]);
9233
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
8970
9234
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8971
9235
  });
8972
9236
  }
8973
9237
  return target;
8974
9238
  }
8975
- function _defineProperty$a(obj, key, value) {
8976
- key = _toPropertyKey$a(key);
9239
+ function _defineProperty$d(obj, key, value) {
9240
+ key = _toPropertyKey$d(key);
8977
9241
  if (key in obj) {
8978
9242
  Object.defineProperty(obj, key, {
8979
9243
  value: value,
@@ -8986,16 +9250,16 @@
8986
9250
  }
8987
9251
  return obj;
8988
9252
  }
8989
- function _toPropertyKey$a(arg) {
8990
- var key = _toPrimitive$a(arg, "string");
8991
- return _typeof$f(key) === "symbol" ? key : String(key);
9253
+ function _toPropertyKey$d(arg) {
9254
+ var key = _toPrimitive$d(arg, "string");
9255
+ return _typeof$g(key) === "symbol" ? key : String(key);
8992
9256
  }
8993
- function _toPrimitive$a(input, hint) {
8994
- if (_typeof$f(input) !== "object" || input === null) return input;
9257
+ function _toPrimitive$d(input, hint) {
9258
+ if (_typeof$g(input) !== "object" || input === null) return input;
8995
9259
  var prim = input[Symbol.toPrimitive];
8996
9260
  if (prim !== undefined) {
8997
9261
  var res = prim.call(input, hint || "default");
8998
- if (_typeof$f(res) !== "object") return res;
9262
+ if (_typeof$g(res) !== "object") return res;
8999
9263
  throw new TypeError("@@toPrimitive must return a primitive value.");
9000
9264
  }
9001
9265
  return (hint === "string" ? String : Number)(input);
@@ -9178,9 +9442,9 @@
9178
9442
  },
9179
9443
  createURL: function createURL(nextState) {
9180
9444
  if (typeof nextState === 'function') {
9181
- return localInstantSearchInstance._createURL(_defineProperty$a({}, indexId, nextState(localUiState)));
9445
+ return localInstantSearchInstance._createURL(_defineProperty$d({}, indexId, nextState(localUiState)));
9182
9446
  }
9183
- return localInstantSearchInstance._createURL(_defineProperty$a({}, indexId, getLocalWidgetsUiState(localWidgets, {
9447
+ return localInstantSearchInstance._createURL(_defineProperty$d({}, indexId, getLocalWidgetsUiState(localWidgets, {
9184
9448
  searchParameters: nextState,
9185
9449
  helper: helper
9186
9450
  })));
@@ -9488,7 +9752,7 @@
9488
9752
  getWidgetUiState: function getWidgetUiState(uiState) {
9489
9753
  return localWidgets.filter(isIndexWidget).reduce(function (previousUiState, innerIndex) {
9490
9754
  return innerIndex.getWidgetUiState(previousUiState);
9491
- }, _objectSpread$a(_objectSpread$a({}, uiState), {}, _defineProperty$a({}, indexId, _objectSpread$a(_objectSpread$a({}, uiState[indexId]), localUiState))));
9755
+ }, _objectSpread$d(_objectSpread$d({}, uiState), {}, _defineProperty$d({}, indexId, _objectSpread$d(_objectSpread$d({}, uiState[indexId]), localUiState))));
9492
9756
  },
9493
9757
  getWidgetState: function getWidgetState(uiState) {
9494
9758
  return this.getWidgetUiState(uiState);
@@ -9509,7 +9773,7 @@
9509
9773
  setIndexUiState: function setIndexUiState(indexUiState) {
9510
9774
  var nextIndexUiState = typeof indexUiState === 'function' ? indexUiState(localUiState) : indexUiState;
9511
9775
  localInstantSearchInstance.setUiState(function (state) {
9512
- return _objectSpread$a(_objectSpread$a({}, state), {}, _defineProperty$a({}, indexId, nextIndexUiState));
9776
+ return _objectSpread$d(_objectSpread$d({}, state), {}, _defineProperty$d({}, indexId, nextIndexUiState));
9513
9777
  });
9514
9778
  }
9515
9779
  };
@@ -9519,7 +9783,7 @@
9519
9783
  instantSearchInstance = _ref7.instantSearchInstance,
9520
9784
  parent = _ref7.parent;
9521
9785
  var parentIndexName = parent ? parent.getIndexId() : instantSearchInstance.mainIndex.getIndexId();
9522
- instantSearchInstance.renderState = _objectSpread$a(_objectSpread$a({}, instantSearchInstance.renderState), {}, _defineProperty$a({}, parentIndexName, _objectSpread$a(_objectSpread$a({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
9786
+ instantSearchInstance.renderState = _objectSpread$d(_objectSpread$d({}, instantSearchInstance.renderState), {}, _defineProperty$d({}, parentIndexName, _objectSpread$d(_objectSpread$d({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
9523
9787
  }
9524
9788
 
9525
9789
  function _slicedToArray$5(arr, i) {
@@ -9764,21 +10028,21 @@
9764
10028
  return reverseHighlightedValue.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag, 'g'), "<".concat(highlightedTagName, " class=\"").concat(className, "\">")).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag, 'g'), "</".concat(highlightedTagName, ">"));
9765
10029
  }
9766
10030
 
9767
- function _typeof$g(obj) {
10031
+ function _typeof$h(obj) {
9768
10032
  "@babel/helpers - typeof";
9769
10033
 
9770
- return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10034
+ return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9771
10035
  return typeof obj;
9772
10036
  } : function (obj) {
9773
10037
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9774
- }, _typeof$g(obj);
10038
+ }, _typeof$h(obj);
9775
10039
  }
9776
10040
 
9777
10041
  /** @deprecated use bindEvent instead */
9778
10042
  function writeDataAttributes(_ref) {
9779
10043
  var method = _ref.method,
9780
10044
  payload = _ref.payload;
9781
- if (_typeof$g(payload) !== 'object') {
10045
+ if (_typeof$h(payload) !== 'object') {
9782
10046
  throw new Error("The insights helper expects the payload to be an object.");
9783
10047
  }
9784
10048
  var serializedPayload;
@@ -9800,18 +10064,18 @@
9800
10064
  });
9801
10065
  }
9802
10066
 
9803
- function _typeof$h(obj) {
10067
+ function _typeof$i(obj) {
9804
10068
  "@babel/helpers - typeof";
9805
10069
 
9806
- return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10070
+ return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9807
10071
  return typeof obj;
9808
10072
  } : function (obj) {
9809
10073
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9810
- }, _typeof$h(obj);
10074
+ }, _typeof$i(obj);
9811
10075
  }
9812
10076
  var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
9813
10077
  function getCookie(name) {
9814
- if ((typeof document === "undefined" ? "undefined" : _typeof$h(document)) !== 'object' || typeof document.cookie !== 'string') {
10078
+ if ((typeof document === "undefined" ? "undefined" : _typeof$i(document)) !== 'object' || typeof document.cookie !== 'string') {
9815
10079
  return undefined;
9816
10080
  }
9817
10081
  var prefix = "".concat(name, "=");
@@ -9831,16 +10095,16 @@
9831
10095
  return getCookie(ANONYMOUS_TOKEN_COOKIE_KEY);
9832
10096
  }
9833
10097
 
9834
- function _typeof$i(obj) {
10098
+ function _typeof$j(obj) {
9835
10099
  "@babel/helpers - typeof";
9836
10100
 
9837
- return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10101
+ return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9838
10102
  return typeof obj;
9839
10103
  } : function (obj) {
9840
10104
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9841
- }, _typeof$i(obj);
10105
+ }, _typeof$j(obj);
9842
10106
  }
9843
- function ownKeys$b(object, enumerableOnly) {
10107
+ function ownKeys$e(object, enumerableOnly) {
9844
10108
  var keys = Object.keys(object);
9845
10109
  if (Object.getOwnPropertySymbols) {
9846
10110
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9850,19 +10114,19 @@
9850
10114
  }
9851
10115
  return keys;
9852
10116
  }
9853
- function _objectSpread$b(target) {
10117
+ function _objectSpread$e(target) {
9854
10118
  for (var i = 1; i < arguments.length; i++) {
9855
10119
  var source = null != arguments[i] ? arguments[i] : {};
9856
- i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
9857
- _defineProperty$b(target, key, source[key]);
9858
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
10120
+ i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
10121
+ _defineProperty$e(target, key, source[key]);
10122
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
9859
10123
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9860
10124
  });
9861
10125
  }
9862
10126
  return target;
9863
10127
  }
9864
- function _defineProperty$b(obj, key, value) {
9865
- key = _toPropertyKey$b(key);
10128
+ function _defineProperty$e(obj, key, value) {
10129
+ key = _toPropertyKey$e(key);
9866
10130
  if (key in obj) {
9867
10131
  Object.defineProperty(obj, key, {
9868
10132
  value: value,
@@ -9875,16 +10139,16 @@
9875
10139
  }
9876
10140
  return obj;
9877
10141
  }
9878
- function _toPropertyKey$b(arg) {
9879
- var key = _toPrimitive$b(arg, "string");
9880
- return _typeof$i(key) === "symbol" ? key : String(key);
10142
+ function _toPropertyKey$e(arg) {
10143
+ var key = _toPrimitive$e(arg, "string");
10144
+ return _typeof$j(key) === "symbol" ? key : String(key);
9881
10145
  }
9882
- function _toPrimitive$b(input, hint) {
9883
- if (_typeof$i(input) !== "object" || input === null) return input;
10146
+ function _toPrimitive$e(input, hint) {
10147
+ if (_typeof$j(input) !== "object" || input === null) return input;
9884
10148
  var prim = input[Symbol.toPrimitive];
9885
10149
  if (prim !== undefined) {
9886
10150
  var res = prim.call(input, hint || "default");
9887
- if (_typeof$i(res) !== "object") return res;
10151
+ if (_typeof$j(res) !== "object") return res;
9888
10152
  throw new TypeError("@@toPrimitive must return a primitive value.");
9889
10153
  }
9890
10154
  return (hint === "string" ? String : Number)(input);
@@ -9958,7 +10222,9 @@
9958
10222
  insightsInitParams = props.insightsInitParams,
9959
10223
  onEvent = props.onEvent,
9960
10224
  _props$$$internal = props.$$internal,
9961
- $$internal = _props$$$internal === void 0 ? false : _props$$$internal;
10225
+ $$internal = _props$$$internal === void 0 ? false : _props$$$internal,
10226
+ _props$$$automatic = props.$$automatic,
10227
+ $$automatic = _props$$$automatic === void 0 ? false : _props$$$automatic;
9962
10228
  var potentialInsightsClient = _insightsClient;
9963
10229
  if (!_insightsClient && _insightsClient !== null) {
9964
10230
  safelyRunOnBrowser(function (_ref) {
@@ -10035,7 +10301,7 @@
10035
10301
  // Only `init` if the `insightsInitParams` option is passed or
10036
10302
  // if the `insightsClient` version doesn't supports optional `init` calling.
10037
10303
  if (insightsInitParams || !isModernInsightsClient(insightsClient)) {
10038
- insightsClient('init', _objectSpread$b({
10304
+ insightsClient('init', _objectSpread$e({
10039
10305
  appId: appId,
10040
10306
  apiKey: apiKey,
10041
10307
  partial: true
@@ -10046,6 +10312,7 @@
10046
10312
  return {
10047
10313
  $$type: 'ais.insights',
10048
10314
  $$internal: $$internal,
10315
+ $$automatic: $$automatic,
10049
10316
  onStateChange: function onStateChange() {},
10050
10317
  subscribe: function subscribe() {
10051
10318
  if (!insightsClient.shouldAddScript) return;
@@ -10071,9 +10338,14 @@
10071
10338
  userToken: helper.state.userToken,
10072
10339
  clickAnalytics: helper.state.clickAnalytics
10073
10340
  };
10074
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), {}, {
10075
- clickAnalytics: true
10076
- }));
10341
+
10342
+ // We don't want to force clickAnalytics when the insights is enabled from the search response.
10343
+ // This means we don't enable insights for indices that don't opt in
10344
+ if (!$$automatic) {
10345
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), {}, {
10346
+ clickAnalytics: true
10347
+ }));
10348
+ }
10077
10349
  if (!$$internal) {
10078
10350
  instantSearchInstance.scheduleSearch();
10079
10351
  }
@@ -10084,7 +10356,7 @@
10084
10356
  }
10085
10357
  var existingToken = helper.state.userToken;
10086
10358
  function applyToken() {
10087
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), {}, {
10359
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), {}, {
10088
10360
  userToken: userToken
10089
10361
  }));
10090
10362
  if (existingToken && existingToken !== userToken) {
@@ -10140,6 +10412,9 @@
10140
10412
  } else if (event.insightsMethod) {
10141
10413
  // Source is used to differentiate events sent by instantsearch from those sent manually.
10142
10414
  event.payload.algoliaSource = ['instantsearch'];
10415
+ if ($$automatic) {
10416
+ event.payload.algoliaSource.push('instantsearch-automatic');
10417
+ }
10143
10418
  if (event.eventModifier === 'internal') {
10144
10419
  event.payload.algoliaSource.push('instantsearch-internal');
10145
10420
  }
@@ -10151,7 +10426,7 @@
10151
10426
  insightsClient('onUserTokenChange', undefined);
10152
10427
  instantSearchInstance.sendEventToInsights = noop$1;
10153
10428
  if (helper && initialParameters) {
10154
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), initialParameters));
10429
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$e(_objectSpread$e({}, helper.state), initialParameters));
10155
10430
  instantSearchInstance.scheduleSearch();
10156
10431
  }
10157
10432
  }
@@ -11079,14 +11354,14 @@
11079
11354
  stringify: stringify_1
11080
11355
  };
11081
11356
 
11082
- function _typeof$j(obj) {
11357
+ function _typeof$k(obj) {
11083
11358
  "@babel/helpers - typeof";
11084
11359
 
11085
- return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11360
+ return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11086
11361
  return typeof obj;
11087
11362
  } : function (obj) {
11088
11363
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11089
- }, _typeof$j(obj);
11364
+ }, _typeof$k(obj);
11090
11365
  }
11091
11366
  function _classCallCheck(instance, Constructor) {
11092
11367
  if (!(instance instanceof Constructor)) {
@@ -11099,7 +11374,7 @@
11099
11374
  descriptor.enumerable = descriptor.enumerable || false;
11100
11375
  descriptor.configurable = true;
11101
11376
  if ("value" in descriptor) descriptor.writable = true;
11102
- Object.defineProperty(target, _toPropertyKey$c(descriptor.key), descriptor);
11377
+ Object.defineProperty(target, _toPropertyKey$f(descriptor.key), descriptor);
11103
11378
  }
11104
11379
  }
11105
11380
  function _createClass(Constructor, protoProps, staticProps) {
@@ -11110,8 +11385,8 @@
11110
11385
  });
11111
11386
  return Constructor;
11112
11387
  }
11113
- function _defineProperty$c(obj, key, value) {
11114
- key = _toPropertyKey$c(key);
11388
+ function _defineProperty$f(obj, key, value) {
11389
+ key = _toPropertyKey$f(key);
11115
11390
  if (key in obj) {
11116
11391
  Object.defineProperty(obj, key, {
11117
11392
  value: value,
@@ -11124,16 +11399,16 @@
11124
11399
  }
11125
11400
  return obj;
11126
11401
  }
11127
- function _toPropertyKey$c(arg) {
11128
- var key = _toPrimitive$c(arg, "string");
11129
- return _typeof$j(key) === "symbol" ? key : String(key);
11402
+ function _toPropertyKey$f(arg) {
11403
+ var key = _toPrimitive$f(arg, "string");
11404
+ return _typeof$k(key) === "symbol" ? key : String(key);
11130
11405
  }
11131
- function _toPrimitive$c(input, hint) {
11132
- if (_typeof$j(input) !== "object" || input === null) return input;
11406
+ function _toPrimitive$f(input, hint) {
11407
+ if (_typeof$k(input) !== "object" || input === null) return input;
11133
11408
  var prim = input[Symbol.toPrimitive];
11134
11409
  if (prim !== undefined) {
11135
11410
  var res = prim.call(input, hint || "default");
11136
- if (_typeof$j(res) !== "object") return res;
11411
+ if (_typeof$k(res) !== "object") return res;
11137
11412
  throw new TypeError("@@toPrimitive must return a primitive value.");
11138
11413
  }
11139
11414
  return (hint === "string" ? String : Number)(input);
@@ -11162,11 +11437,11 @@
11162
11437
  dispose = _ref.dispose,
11163
11438
  push = _ref.push;
11164
11439
  _classCallCheck(this, BrowserHistory);
11165
- _defineProperty$c(this, "$$type", 'ais.browser');
11440
+ _defineProperty$f(this, "$$type", 'ais.browser');
11166
11441
  /**
11167
11442
  * Transforms a UI state into a title for the page.
11168
11443
  */
11169
- _defineProperty$c(this, "windowTitle", void 0);
11444
+ _defineProperty$f(this, "windowTitle", void 0);
11170
11445
  /**
11171
11446
  * Time in milliseconds before performing a write in the history.
11172
11447
  * It prevents from adding too many entries in the history and
@@ -11174,42 +11449,42 @@
11174
11449
  *
11175
11450
  * @default 400
11176
11451
  */
11177
- _defineProperty$c(this, "writeDelay", void 0);
11452
+ _defineProperty$f(this, "writeDelay", void 0);
11178
11453
  /**
11179
11454
  * Creates a full URL based on the route state.
11180
11455
  * The storage adaptor maps all syncable keys to the query string of the URL.
11181
11456
  */
11182
- _defineProperty$c(this, "_createURL", void 0);
11457
+ _defineProperty$f(this, "_createURL", void 0);
11183
11458
  /**
11184
11459
  * Parses the URL into a route state.
11185
11460
  * It should be symmetrical to `createURL`.
11186
11461
  */
11187
- _defineProperty$c(this, "parseURL", void 0);
11462
+ _defineProperty$f(this, "parseURL", void 0);
11188
11463
  /**
11189
11464
  * Returns the location to store in the history.
11190
11465
  * @default () => window.location
11191
11466
  */
11192
- _defineProperty$c(this, "getLocation", void 0);
11193
- _defineProperty$c(this, "writeTimer", void 0);
11194
- _defineProperty$c(this, "_onPopState", void 0);
11467
+ _defineProperty$f(this, "getLocation", void 0);
11468
+ _defineProperty$f(this, "writeTimer", void 0);
11469
+ _defineProperty$f(this, "_onPopState", void 0);
11195
11470
  /**
11196
11471
  * Indicates if last action was back/forward in the browser.
11197
11472
  */
11198
- _defineProperty$c(this, "inPopState", false);
11473
+ _defineProperty$f(this, "inPopState", false);
11199
11474
  /**
11200
11475
  * Indicates whether the history router is disposed or not.
11201
11476
  */
11202
- _defineProperty$c(this, "isDisposed", false);
11477
+ _defineProperty$f(this, "isDisposed", false);
11203
11478
  /**
11204
11479
  * Indicates the window.history.length before the last call to
11205
11480
  * window.history.pushState (called in `write`).
11206
11481
  * It allows to determine if a `pushState` has been triggered elsewhere,
11207
11482
  * and thus to prevent the `write` method from calling `pushState`.
11208
11483
  */
11209
- _defineProperty$c(this, "latestAcknowledgedHistory", 0);
11210
- _defineProperty$c(this, "_start", void 0);
11211
- _defineProperty$c(this, "_dispose", void 0);
11212
- _defineProperty$c(this, "_push", void 0);
11484
+ _defineProperty$f(this, "latestAcknowledgedHistory", 0);
11485
+ _defineProperty$f(this, "_start", void 0);
11486
+ _defineProperty$f(this, "_dispose", void 0);
11487
+ _defineProperty$f(this, "_push", void 0);
11213
11488
  this.windowTitle = windowTitle;
11214
11489
  this.writeTimer = undefined;
11215
11490
  this.writeDelay = writeDelay;
@@ -11439,17 +11714,17 @@
11439
11714
  });
11440
11715
  }
11441
11716
 
11442
- function _typeof$k(obj) {
11717
+ function _typeof$l(obj) {
11443
11718
  "@babel/helpers - typeof";
11444
11719
 
11445
- return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11720
+ return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11446
11721
  return typeof obj;
11447
11722
  } : function (obj) {
11448
11723
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11449
- }, _typeof$k(obj);
11724
+ }, _typeof$l(obj);
11450
11725
  }
11451
11726
  var _excluded$5 = ["configure"];
11452
- function ownKeys$c(object, enumerableOnly) {
11727
+ function ownKeys$f(object, enumerableOnly) {
11453
11728
  var keys = Object.keys(object);
11454
11729
  if (Object.getOwnPropertySymbols) {
11455
11730
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11459,19 +11734,19 @@
11459
11734
  }
11460
11735
  return keys;
11461
11736
  }
11462
- function _objectSpread$c(target) {
11737
+ function _objectSpread$f(target) {
11463
11738
  for (var i = 1; i < arguments.length; i++) {
11464
11739
  var source = null != arguments[i] ? arguments[i] : {};
11465
- i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
11466
- _defineProperty$d(target, key, source[key]);
11467
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
11740
+ i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
11741
+ _defineProperty$g(target, key, source[key]);
11742
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
11468
11743
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11469
11744
  });
11470
11745
  }
11471
11746
  return target;
11472
11747
  }
11473
- function _defineProperty$d(obj, key, value) {
11474
- key = _toPropertyKey$d(key);
11748
+ function _defineProperty$g(obj, key, value) {
11749
+ key = _toPropertyKey$g(key);
11475
11750
  if (key in obj) {
11476
11751
  Object.defineProperty(obj, key, {
11477
11752
  value: value,
@@ -11484,16 +11759,16 @@
11484
11759
  }
11485
11760
  return obj;
11486
11761
  }
11487
- function _toPropertyKey$d(arg) {
11488
- var key = _toPrimitive$d(arg, "string");
11489
- return _typeof$k(key) === "symbol" ? key : String(key);
11762
+ function _toPropertyKey$g(arg) {
11763
+ var key = _toPrimitive$g(arg, "string");
11764
+ return _typeof$l(key) === "symbol" ? key : String(key);
11490
11765
  }
11491
- function _toPrimitive$d(input, hint) {
11492
- if (_typeof$k(input) !== "object" || input === null) return input;
11766
+ function _toPrimitive$g(input, hint) {
11767
+ if (_typeof$l(input) !== "object" || input === null) return input;
11493
11768
  var prim = input[Symbol.toPrimitive];
11494
11769
  if (prim !== undefined) {
11495
11770
  var res = prim.call(input, hint || "default");
11496
- if (_typeof$k(res) !== "object") return res;
11771
+ if (_typeof$l(res) !== "object") return res;
11497
11772
  throw new TypeError("@@toPrimitive must return a primitive value.");
11498
11773
  }
11499
11774
  return (hint === "string" ? String : Number)(input);
@@ -11539,28 +11814,28 @@
11539
11814
  $$type: 'ais.simple',
11540
11815
  stateToRoute: function stateToRoute(uiState) {
11541
11816
  return Object.keys(uiState).reduce(function (state, indexId) {
11542
- return _objectSpread$c(_objectSpread$c({}, state), {}, _defineProperty$d({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
11817
+ return _objectSpread$f(_objectSpread$f({}, state), {}, _defineProperty$g({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
11543
11818
  }, {});
11544
11819
  },
11545
11820
  routeToState: function routeToState() {
11546
11821
  var routeState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
11547
11822
  return Object.keys(routeState).reduce(function (state, indexId) {
11548
- return _objectSpread$c(_objectSpread$c({}, state), {}, _defineProperty$d({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
11823
+ return _objectSpread$f(_objectSpread$f({}, state), {}, _defineProperty$g({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
11549
11824
  }, {});
11550
11825
  }
11551
11826
  };
11552
11827
  }
11553
11828
 
11554
- function _typeof$l(obj) {
11829
+ function _typeof$m(obj) {
11555
11830
  "@babel/helpers - typeof";
11556
11831
 
11557
- return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11832
+ return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11558
11833
  return typeof obj;
11559
11834
  } : function (obj) {
11560
11835
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11561
- }, _typeof$l(obj);
11836
+ }, _typeof$m(obj);
11562
11837
  }
11563
- function ownKeys$d(object, enumerableOnly) {
11838
+ function ownKeys$g(object, enumerableOnly) {
11564
11839
  var keys = Object.keys(object);
11565
11840
  if (Object.getOwnPropertySymbols) {
11566
11841
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11570,19 +11845,19 @@
11570
11845
  }
11571
11846
  return keys;
11572
11847
  }
11573
- function _objectSpread$d(target) {
11848
+ function _objectSpread$g(target) {
11574
11849
  for (var i = 1; i < arguments.length; i++) {
11575
11850
  var source = null != arguments[i] ? arguments[i] : {};
11576
- i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
11577
- _defineProperty$e(target, key, source[key]);
11578
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
11851
+ i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
11852
+ _defineProperty$h(target, key, source[key]);
11853
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
11579
11854
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11580
11855
  });
11581
11856
  }
11582
11857
  return target;
11583
11858
  }
11584
- function _defineProperty$e(obj, key, value) {
11585
- key = _toPropertyKey$e(key);
11859
+ function _defineProperty$h(obj, key, value) {
11860
+ key = _toPropertyKey$h(key);
11586
11861
  if (key in obj) {
11587
11862
  Object.defineProperty(obj, key, {
11588
11863
  value: value,
@@ -11595,16 +11870,16 @@
11595
11870
  }
11596
11871
  return obj;
11597
11872
  }
11598
- function _toPropertyKey$e(arg) {
11599
- var key = _toPrimitive$e(arg, "string");
11600
- return _typeof$l(key) === "symbol" ? key : String(key);
11873
+ function _toPropertyKey$h(arg) {
11874
+ var key = _toPrimitive$h(arg, "string");
11875
+ return _typeof$m(key) === "symbol" ? key : String(key);
11601
11876
  }
11602
- function _toPrimitive$e(input, hint) {
11603
- if (_typeof$l(input) !== "object" || input === null) return input;
11877
+ function _toPrimitive$h(input, hint) {
11878
+ if (_typeof$m(input) !== "object" || input === null) return input;
11604
11879
  var prim = input[Symbol.toPrimitive];
11605
11880
  if (prim !== undefined) {
11606
11881
  var res = prim.call(input, hint || "default");
11607
- if (_typeof$l(res) !== "object") return res;
11882
+ if (_typeof$m(res) !== "object") return res;
11608
11883
  throw new TypeError("@@toPrimitive must return a primitive value.");
11609
11884
  }
11610
11885
  return (hint === "string" ? String : Number)(input);
@@ -11629,7 +11904,7 @@
11629
11904
  // any changes.
11630
11905
  instantSearchInstance.mainIndex.getWidgets().length === 0 ? instantSearchInstance._initialUiState : instantSearchInstance.mainIndex.getWidgetUiState({});
11631
11906
  var uiState = Object.keys(nextState).reduce(function (acc, indexId) {
11632
- return _objectSpread$d(_objectSpread$d({}, acc), {}, _defineProperty$e({}, indexId, nextState[indexId]));
11907
+ return _objectSpread$g(_objectSpread$g({}, acc), {}, _defineProperty$h({}, indexId, nextState[indexId]));
11633
11908
  }, previousUiState);
11634
11909
  var route = stateMapping.stateToRoute(uiState);
11635
11910
  return router.createURL(route);
@@ -11652,7 +11927,7 @@
11652
11927
  }
11653
11928
  },
11654
11929
  subscribe: function subscribe() {
11655
- instantSearchInstance._initialUiState = _objectSpread$d(_objectSpread$d({}, initialUiState), stateMapping.routeToState(router.read()));
11930
+ instantSearchInstance._initialUiState = _objectSpread$g(_objectSpread$g({}, initialUiState), stateMapping.routeToState(router.read()));
11656
11931
  router.onUpdate(function (route) {
11657
11932
  if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
11658
11933
  instantSearchInstance.setUiState(stateMapping.routeToState(route));
@@ -11674,16 +11949,16 @@
11674
11949
  return value.toLocaleString(numberLocale);
11675
11950
  }
11676
11951
 
11677
- function _typeof$m(obj) {
11952
+ function _typeof$n(obj) {
11678
11953
  "@babel/helpers - typeof";
11679
11954
 
11680
- return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11955
+ return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11681
11956
  return typeof obj;
11682
11957
  } : function (obj) {
11683
11958
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11684
- }, _typeof$m(obj);
11959
+ }, _typeof$n(obj);
11685
11960
  }
11686
- function ownKeys$e(object, enumerableOnly) {
11961
+ function ownKeys$h(object, enumerableOnly) {
11687
11962
  var keys = Object.keys(object);
11688
11963
  if (Object.getOwnPropertySymbols) {
11689
11964
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11693,19 +11968,19 @@
11693
11968
  }
11694
11969
  return keys;
11695
11970
  }
11696
- function _objectSpread$e(target) {
11971
+ function _objectSpread$h(target) {
11697
11972
  for (var i = 1; i < arguments.length; i++) {
11698
11973
  var source = null != arguments[i] ? arguments[i] : {};
11699
- i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
11700
- _defineProperty$f(target, key, source[key]);
11701
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
11974
+ i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
11975
+ _defineProperty$i(target, key, source[key]);
11976
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
11702
11977
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11703
11978
  });
11704
11979
  }
11705
11980
  return target;
11706
11981
  }
11707
- function _defineProperty$f(obj, key, value) {
11708
- key = _toPropertyKey$f(key);
11982
+ function _defineProperty$i(obj, key, value) {
11983
+ key = _toPropertyKey$i(key);
11709
11984
  if (key in obj) {
11710
11985
  Object.defineProperty(obj, key, {
11711
11986
  value: value,
@@ -11718,16 +11993,16 @@
11718
11993
  }
11719
11994
  return obj;
11720
11995
  }
11721
- function _toPropertyKey$f(arg) {
11722
- var key = _toPrimitive$f(arg, "string");
11723
- return _typeof$m(key) === "symbol" ? key : String(key);
11996
+ function _toPropertyKey$i(arg) {
11997
+ var key = _toPrimitive$i(arg, "string");
11998
+ return _typeof$n(key) === "symbol" ? key : String(key);
11724
11999
  }
11725
- function _toPrimitive$f(input, hint) {
11726
- if (_typeof$m(input) !== "object" || input === null) return input;
12000
+ function _toPrimitive$i(input, hint) {
12001
+ if (_typeof$n(input) !== "object" || input === null) return input;
11727
12002
  var prim = input[Symbol.toPrimitive];
11728
12003
  if (prim !== undefined) {
11729
12004
  var res = prim.call(input, hint || "default");
11730
- if (_typeof$m(res) !== "object") return res;
12005
+ if (_typeof$n(res) !== "object") return res;
11731
12006
  throw new TypeError("@@toPrimitive must return a primitive value.");
11732
12007
  }
11733
12008
  return (hint === "string" ? String : Number)(input);
@@ -11741,7 +12016,7 @@
11741
12016
  highlight: function highlight$1(options, render) {
11742
12017
  try {
11743
12018
  var highlightOptions = JSON.parse(options);
11744
- return render(highlight(_objectSpread$e(_objectSpread$e({}, highlightOptions), {}, {
12019
+ return render(highlight(_objectSpread$h(_objectSpread$h({}, highlightOptions), {}, {
11745
12020
  hit: this
11746
12021
  })));
11747
12022
  } catch (error) {
@@ -11751,7 +12026,7 @@
11751
12026
  reverseHighlight: function reverseHighlight$1(options, render) {
11752
12027
  try {
11753
12028
  var reverseHighlightOptions = JSON.parse(options);
11754
- return render(reverseHighlight(_objectSpread$e(_objectSpread$e({}, reverseHighlightOptions), {}, {
12029
+ return render(reverseHighlight(_objectSpread$h(_objectSpread$h({}, reverseHighlightOptions), {}, {
11755
12030
  hit: this
11756
12031
  })));
11757
12032
  } catch (error) {
@@ -11761,7 +12036,7 @@
11761
12036
  snippet: function snippet$1(options, render) {
11762
12037
  try {
11763
12038
  var snippetOptions = JSON.parse(options);
11764
- return render(snippet(_objectSpread$e(_objectSpread$e({}, snippetOptions), {}, {
12039
+ return render(snippet(_objectSpread$h(_objectSpread$h({}, snippetOptions), {}, {
11765
12040
  hit: this
11766
12041
  })));
11767
12042
  } catch (error) {
@@ -11771,7 +12046,7 @@
11771
12046
  reverseSnippet: function reverseSnippet$1(options, render) {
11772
12047
  try {
11773
12048
  var reverseSnippetOptions = JSON.parse(options);
11774
- return render(reverseSnippet(_objectSpread$e(_objectSpread$e({}, reverseSnippetOptions), {}, {
12049
+ return render(reverseSnippet(_objectSpread$h(_objectSpread$h({}, reverseSnippetOptions), {}, {
11775
12050
  hit: this
11776
12051
  })));
11777
12052
  } catch (error) {
@@ -11783,7 +12058,7 @@
11783
12058
  var _JSON$parse = JSON.parse(options),
11784
12059
  method = _JSON$parse.method,
11785
12060
  payload = _JSON$parse.payload;
11786
- return render(insights(method, _objectSpread$e({
12061
+ return render(insights(method, _objectSpread$h({
11787
12062
  objectIDs: [this.objectID]
11788
12063
  }, payload)));
11789
12064
  } catch (error) {
@@ -11793,18 +12068,18 @@
11793
12068
  };
11794
12069
  }
11795
12070
 
11796
- var version$3 = '4.58.0';
12071
+ var version$3 = '4.60.0';
11797
12072
 
11798
- function _typeof$n(obj) {
12073
+ function _typeof$o(obj) {
11799
12074
  "@babel/helpers - typeof";
11800
12075
 
11801
- return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12076
+ return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11802
12077
  return typeof obj;
11803
12078
  } : function (obj) {
11804
12079
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11805
- }, _typeof$n(obj);
12080
+ }, _typeof$o(obj);
11806
12081
  }
11807
- function ownKeys$f(object, enumerableOnly) {
12082
+ function ownKeys$i(object, enumerableOnly) {
11808
12083
  var keys = Object.keys(object);
11809
12084
  if (Object.getOwnPropertySymbols) {
11810
12085
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11814,12 +12089,12 @@
11814
12089
  }
11815
12090
  return keys;
11816
12091
  }
11817
- function _objectSpread$f(target) {
12092
+ function _objectSpread$i(target) {
11818
12093
  for (var i = 1; i < arguments.length; i++) {
11819
12094
  var source = null != arguments[i] ? arguments[i] : {};
11820
- i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
11821
- _defineProperty$g(target, key, source[key]);
11822
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
12095
+ i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12096
+ _defineProperty$j(target, key, source[key]);
12097
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
11823
12098
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11824
12099
  });
11825
12100
  }
@@ -11836,7 +12111,7 @@
11836
12111
  descriptor.enumerable = descriptor.enumerable || false;
11837
12112
  descriptor.configurable = true;
11838
12113
  if ("value" in descriptor) descriptor.writable = true;
11839
- Object.defineProperty(target, _toPropertyKey$g(descriptor.key), descriptor);
12114
+ Object.defineProperty(target, _toPropertyKey$j(descriptor.key), descriptor);
11840
12115
  }
11841
12116
  }
11842
12117
  function _createClass$1(Constructor, protoProps, staticProps) {
@@ -11885,7 +12160,7 @@
11885
12160
  };
11886
12161
  }
11887
12162
  function _possibleConstructorReturn(self, call) {
11888
- if (call && (_typeof$n(call) === "object" || typeof call === "function")) {
12163
+ if (call && (_typeof$o(call) === "object" || typeof call === "function")) {
11889
12164
  return call;
11890
12165
  } else if (call !== void 0) {
11891
12166
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -11915,8 +12190,8 @@
11915
12190
  };
11916
12191
  return _getPrototypeOf(o);
11917
12192
  }
11918
- function _defineProperty$g(obj, key, value) {
11919
- key = _toPropertyKey$g(key);
12193
+ function _defineProperty$j(obj, key, value) {
12194
+ key = _toPropertyKey$j(key);
11920
12195
  if (key in obj) {
11921
12196
  Object.defineProperty(obj, key, {
11922
12197
  value: value,
@@ -11929,16 +12204,16 @@
11929
12204
  }
11930
12205
  return obj;
11931
12206
  }
11932
- function _toPropertyKey$g(arg) {
11933
- var key = _toPrimitive$g(arg, "string");
11934
- return _typeof$n(key) === "symbol" ? key : String(key);
11935
- }
11936
- function _toPrimitive$g(input, hint) {
11937
- if (_typeof$n(input) !== "object" || input === null) return input;
12207
+ function _toPropertyKey$j(arg) {
12208
+ var key = _toPrimitive$j(arg, "string");
12209
+ return _typeof$o(key) === "symbol" ? key : String(key);
12210
+ }
12211
+ function _toPrimitive$j(input, hint) {
12212
+ if (_typeof$o(input) !== "object" || input === null) return input;
11938
12213
  var prim = input[Symbol.toPrimitive];
11939
12214
  if (prim !== undefined) {
11940
12215
  var res = prim.call(input, hint || "default");
11941
- if (_typeof$n(res) !== "object") return res;
12216
+ if (_typeof$o(res) !== "object") return res;
11942
12217
  throw new TypeError("@@toPrimitive must return a primitive value.");
11943
12218
  }
11944
12219
  return (hint === "string" ? String : Number)(input);
@@ -11974,41 +12249,42 @@
11974
12249
  _this = _super.call(this);
11975
12250
 
11976
12251
  // prevent `render` event listening from causing a warning
11977
- _defineProperty$g(_assertThisInitialized(_this), "client", void 0);
11978
- _defineProperty$g(_assertThisInitialized(_this), "indexName", void 0);
11979
- _defineProperty$g(_assertThisInitialized(_this), "insightsClient", void 0);
11980
- _defineProperty$g(_assertThisInitialized(_this), "onStateChange", null);
11981
- _defineProperty$g(_assertThisInitialized(_this), "future", void 0);
11982
- _defineProperty$g(_assertThisInitialized(_this), "helper", void 0);
11983
- _defineProperty$g(_assertThisInitialized(_this), "mainHelper", void 0);
11984
- _defineProperty$g(_assertThisInitialized(_this), "mainIndex", void 0);
11985
- _defineProperty$g(_assertThisInitialized(_this), "started", void 0);
11986
- _defineProperty$g(_assertThisInitialized(_this), "templatesConfig", void 0);
11987
- _defineProperty$g(_assertThisInitialized(_this), "renderState", {});
11988
- _defineProperty$g(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
11989
- _defineProperty$g(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
11990
- _defineProperty$g(_assertThisInitialized(_this), "_initialUiState", void 0);
11991
- _defineProperty$g(_assertThisInitialized(_this), "_initialResults", void 0);
11992
- _defineProperty$g(_assertThisInitialized(_this), "_createURL", void 0);
11993
- _defineProperty$g(_assertThisInitialized(_this), "_searchFunction", void 0);
11994
- _defineProperty$g(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
11995
- _defineProperty$g(_assertThisInitialized(_this), "middleware", []);
11996
- _defineProperty$g(_assertThisInitialized(_this), "sendEventToInsights", void 0);
12252
+ _defineProperty$j(_assertThisInitialized(_this), "client", void 0);
12253
+ _defineProperty$j(_assertThisInitialized(_this), "indexName", void 0);
12254
+ _defineProperty$j(_assertThisInitialized(_this), "insightsClient", void 0);
12255
+ _defineProperty$j(_assertThisInitialized(_this), "onStateChange", null);
12256
+ _defineProperty$j(_assertThisInitialized(_this), "future", void 0);
12257
+ _defineProperty$j(_assertThisInitialized(_this), "helper", void 0);
12258
+ _defineProperty$j(_assertThisInitialized(_this), "mainHelper", void 0);
12259
+ _defineProperty$j(_assertThisInitialized(_this), "mainIndex", void 0);
12260
+ _defineProperty$j(_assertThisInitialized(_this), "started", void 0);
12261
+ _defineProperty$j(_assertThisInitialized(_this), "templatesConfig", void 0);
12262
+ _defineProperty$j(_assertThisInitialized(_this), "renderState", {});
12263
+ _defineProperty$j(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
12264
+ _defineProperty$j(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
12265
+ _defineProperty$j(_assertThisInitialized(_this), "_initialUiState", void 0);
12266
+ _defineProperty$j(_assertThisInitialized(_this), "_initialResults", void 0);
12267
+ _defineProperty$j(_assertThisInitialized(_this), "_createURL", void 0);
12268
+ _defineProperty$j(_assertThisInitialized(_this), "_searchFunction", void 0);
12269
+ _defineProperty$j(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
12270
+ _defineProperty$j(_assertThisInitialized(_this), "_insights", void 0);
12271
+ _defineProperty$j(_assertThisInitialized(_this), "middleware", []);
12272
+ _defineProperty$j(_assertThisInitialized(_this), "sendEventToInsights", void 0);
11997
12273
  /**
11998
12274
  * The status of the search. Can be "idle", "loading", "stalled", or "error".
11999
12275
  */
12000
- _defineProperty$g(_assertThisInitialized(_this), "status", 'idle');
12276
+ _defineProperty$j(_assertThisInitialized(_this), "status", 'idle');
12001
12277
  /**
12002
12278
  * The last returned error from the Search API.
12003
12279
  * The error gets cleared when the next valid search response is rendered.
12004
12280
  */
12005
- _defineProperty$g(_assertThisInitialized(_this), "error", undefined);
12006
- _defineProperty$g(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
12281
+ _defineProperty$j(_assertThisInitialized(_this), "error", undefined);
12282
+ _defineProperty$j(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
12007
12283
  if (_this.started) {
12008
12284
  _this.mainHelper.search();
12009
12285
  }
12010
12286
  }));
12011
- _defineProperty$g(_assertThisInitialized(_this), "scheduleRender", defer(function () {
12287
+ _defineProperty$j(_assertThisInitialized(_this), "scheduleRender", defer(function () {
12012
12288
  var _this$mainHelper;
12013
12289
  var shouldResetStatus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
12014
12290
  if (!((_this$mainHelper = _this.mainHelper) !== null && _this$mainHelper !== void 0 && _this$mainHelper.hasPendingRequests())) {
@@ -12024,7 +12300,7 @@
12024
12300
  });
12025
12301
  _this.emit('render');
12026
12302
  }));
12027
- _defineProperty$g(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
12303
+ _defineProperty$j(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
12028
12304
  var nextUiState = _this.mainIndex.getWidgetUiState({});
12029
12305
  _this.middleware.forEach(function (_ref) {
12030
12306
  var instance = _ref.instance;
@@ -12042,7 +12318,7 @@
12042
12318
  _options$routing = options.routing,
12043
12319
  routing = _options$routing === void 0 ? null : _options$routing,
12044
12320
  _options$insights = options.insights,
12045
- insights = _options$insights === void 0 ? false : _options$insights,
12321
+ insights = _options$insights === void 0 ? undefined : _options$insights,
12046
12322
  searchFunction = options.searchFunction,
12047
12323
  _options$stalledSearc = options.stalledSearchDelay,
12048
12324
  stalledSearchDelay = _options$stalledSearc === void 0 ? 200 : _options$stalledSearc,
@@ -12053,7 +12329,7 @@
12053
12329
  _options$onStateChang = options.onStateChange,
12054
12330
  onStateChange = _options$onStateChang === void 0 ? null : _options$onStateChang,
12055
12331
  _options$future = options.future,
12056
- future = _options$future === void 0 ? _objectSpread$f(_objectSpread$f({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
12332
+ future = _options$future === void 0 ? _objectSpread$i(_objectSpread$i({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
12057
12333
  if (searchClient === null) {
12058
12334
  throw new Error(withUsage$3('The `searchClient` option is required.'));
12059
12335
  }
@@ -12088,6 +12364,7 @@
12088
12364
  _this._createURL = defaultCreateURL;
12089
12365
  _this._initialUiState = initialUiState;
12090
12366
  _this._initialResults = null;
12367
+ _this._insights = insights;
12091
12368
  if (searchFunction) {
12092
12369
  _this._searchFunction = searchFunction;
12093
12370
  }
@@ -12098,8 +12375,9 @@
12098
12375
  _this.use(createRouterMiddleware(routerOptions));
12099
12376
  }
12100
12377
 
12101
- // This is the default middleware,
12102
- // any user-provided middleware will be added later and override this one.
12378
+ // This is the default Insights middleware,
12379
+ // added when `insights` is set to true by the user.
12380
+ // Any user-provided middleware will be added later and override this one.
12103
12381
  if (insights) {
12104
12382
  var insightsOptions = typeof insights === 'boolean' ? {} : insights;
12105
12383
  insightsOptions.$$internal = true;
@@ -12133,7 +12411,7 @@
12133
12411
  middleware[_key] = arguments[_key];
12134
12412
  }
12135
12413
  var newMiddlewareList = middleware.map(function (fn) {
12136
- var newMiddleware = _objectSpread$f({
12414
+ var newMiddleware = _objectSpread$i({
12137
12415
  $$type: '__unknown__',
12138
12416
  $$internal: false,
12139
12417
  subscribe: noop$1,
@@ -12349,6 +12627,7 @@
12349
12627
  uiState: this._initialUiState
12350
12628
  });
12351
12629
  if (this._initialResults) {
12630
+ hydrateSearchClient(this.client, this._initialResults);
12352
12631
  var originalScheduleSearch = this.scheduleSearch;
12353
12632
  // We don't schedule a first search when initial results are provided
12354
12633
  // because we already have the results to render. This skips the initial
@@ -12386,6 +12665,24 @@
12386
12665
  var instance = _ref6.instance;
12387
12666
  instance.started();
12388
12667
  });
12668
+
12669
+ // This is the automatic Insights middleware,
12670
+ // added when `insights` is unset and the initial results possess `queryID`.
12671
+ // Any user-provided middleware will be added later and override this one.
12672
+ if (typeof this._insights === 'undefined') {
12673
+ mainHelper.derivedHelpers[0].once('result', function () {
12674
+ var hasAutomaticInsights = _this3.mainIndex.getScopedResults().some(function (_ref7) {
12675
+ var results = _ref7.results;
12676
+ return results === null || results === void 0 ? void 0 : results._automaticInsights;
12677
+ });
12678
+ if (hasAutomaticInsights) {
12679
+ _this3.use(createInsightsMiddleware({
12680
+ $$internal: true,
12681
+ $$automatic: true
12682
+ }));
12683
+ }
12684
+ });
12685
+ }
12389
12686
  }
12390
12687
 
12391
12688
  /**
@@ -12415,8 +12712,8 @@
12415
12712
  (_this$mainHelper2 = this.mainHelper) === null || _this$mainHelper2 === void 0 ? void 0 : _this$mainHelper2.removeAllListeners();
12416
12713
  this.mainHelper = null;
12417
12714
  this.helper = null;
12418
- this.middleware.forEach(function (_ref7) {
12419
- var instance = _ref7.instance;
12715
+ this.middleware.forEach(function (_ref8) {
12716
+ var instance = _ref8.instance;
12420
12717
  instance.unsubscribe();
12421
12718
  });
12422
12719
  }
@@ -12518,16 +12815,16 @@
12518
12815
  });
12519
12816
  var shim_1 = shim.useSyncExternalStore;
12520
12817
 
12521
- function _typeof$o(obj) {
12818
+ function _typeof$p(obj) {
12522
12819
  "@babel/helpers - typeof";
12523
12820
 
12524
- return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12821
+ return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12525
12822
  return typeof obj;
12526
12823
  } : function (obj) {
12527
12824
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12528
- }, _typeof$o(obj);
12825
+ }, _typeof$p(obj);
12529
12826
  }
12530
- function ownKeys$g(object, enumerableOnly) {
12827
+ function ownKeys$j(object, enumerableOnly) {
12531
12828
  var keys = Object.keys(object);
12532
12829
  if (Object.getOwnPropertySymbols) {
12533
12830
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12537,19 +12834,19 @@
12537
12834
  }
12538
12835
  return keys;
12539
12836
  }
12540
- function _objectSpread$g(target) {
12837
+ function _objectSpread$j(target) {
12541
12838
  for (var i = 1; i < arguments.length; i++) {
12542
12839
  var source = null != arguments[i] ? arguments[i] : {};
12543
- i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
12544
- _defineProperty$h(target, key, source[key]);
12545
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
12840
+ i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
12841
+ _defineProperty$k(target, key, source[key]);
12842
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
12546
12843
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12547
12844
  });
12548
12845
  }
12549
12846
  return target;
12550
12847
  }
12551
- function _defineProperty$h(obj, key, value) {
12552
- key = _toPropertyKey$h(key);
12848
+ function _defineProperty$k(obj, key, value) {
12849
+ key = _toPropertyKey$k(key);
12553
12850
  if (key in obj) {
12554
12851
  Object.defineProperty(obj, key, {
12555
12852
  value: value,
@@ -12562,16 +12859,16 @@
12562
12859
  }
12563
12860
  return obj;
12564
12861
  }
12565
- function _toPropertyKey$h(arg) {
12566
- var key = _toPrimitive$h(arg, "string");
12567
- return _typeof$o(key) === "symbol" ? key : String(key);
12862
+ function _toPropertyKey$k(arg) {
12863
+ var key = _toPrimitive$k(arg, "string");
12864
+ return _typeof$p(key) === "symbol" ? key : String(key);
12568
12865
  }
12569
- function _toPrimitive$h(input, hint) {
12570
- if (_typeof$o(input) !== "object" || input === null) return input;
12866
+ function _toPrimitive$k(input, hint) {
12867
+ if (_typeof$p(input) !== "object" || input === null) return input;
12571
12868
  var prim = input[Symbol.toPrimitive];
12572
12869
  if (prim !== undefined) {
12573
12870
  var res = prim.call(input, hint || "default");
12574
- if (_typeof$o(res) !== "object") return res;
12871
+ if (_typeof$p(res) !== "object") return res;
12575
12872
  throw new TypeError("@@toPrimitive must return a primitive value.");
12576
12873
  }
12577
12874
  return (hint === "string" ? String : Number)(input);
@@ -12670,7 +12967,7 @@
12670
12967
  prevPropsRef.current = props;
12671
12968
  }
12672
12969
  if (!dequal(prevProps.future, props.future)) {
12673
- _search.future = _objectSpread$g(_objectSpread$g({}, INSTANTSEARCH_FUTURE_DEFAULTS), props.future);
12970
+ _search.future = _objectSpread$j(_objectSpread$j({}, INSTANTSEARCH_FUTURE_DEFAULTS), props.future);
12674
12971
  prevPropsRef.current = props;
12675
12972
  }
12676
12973
 
@@ -12790,17 +13087,17 @@
12790
13087
  }, children));
12791
13088
  }
12792
13089
 
12793
- function _typeof$p(obj) {
13090
+ function _typeof$q(obj) {
12794
13091
  "@babel/helpers - typeof";
12795
13092
 
12796
- return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13093
+ return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12797
13094
  return typeof obj;
12798
13095
  } : function (obj) {
12799
13096
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12800
- }, _typeof$p(obj);
13097
+ }, _typeof$q(obj);
12801
13098
  }
12802
13099
  var _excluded$7 = ["children"];
12803
- function ownKeys$h(object, enumerableOnly) {
13100
+ function ownKeys$k(object, enumerableOnly) {
12804
13101
  var keys = Object.keys(object);
12805
13102
  if (Object.getOwnPropertySymbols) {
12806
13103
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12810,19 +13107,19 @@
12810
13107
  }
12811
13108
  return keys;
12812
13109
  }
12813
- function _objectSpread$h(target) {
13110
+ function _objectSpread$k(target) {
12814
13111
  for (var i = 1; i < arguments.length; i++) {
12815
13112
  var source = null != arguments[i] ? arguments[i] : {};
12816
- i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
12817
- _defineProperty$i(target, key, source[key]);
12818
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
13113
+ i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13114
+ _defineProperty$l(target, key, source[key]);
13115
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
12819
13116
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12820
13117
  });
12821
13118
  }
12822
13119
  return target;
12823
13120
  }
12824
- function _defineProperty$i(obj, key, value) {
12825
- key = _toPropertyKey$i(key);
13121
+ function _defineProperty$l(obj, key, value) {
13122
+ key = _toPropertyKey$l(key);
12826
13123
  if (key in obj) {
12827
13124
  Object.defineProperty(obj, key, {
12828
13125
  value: value,
@@ -12835,16 +13132,16 @@
12835
13132
  }
12836
13133
  return obj;
12837
13134
  }
12838
- function _toPropertyKey$i(arg) {
12839
- var key = _toPrimitive$i(arg, "string");
12840
- return _typeof$p(key) === "symbol" ? key : String(key);
13135
+ function _toPropertyKey$l(arg) {
13136
+ var key = _toPrimitive$l(arg, "string");
13137
+ return _typeof$q(key) === "symbol" ? key : String(key);
12841
13138
  }
12842
- function _toPrimitive$i(input, hint) {
12843
- if (_typeof$p(input) !== "object" || input === null) return input;
13139
+ function _toPrimitive$l(input, hint) {
13140
+ if (_typeof$q(input) !== "object" || input === null) return input;
12844
13141
  var prim = input[Symbol.toPrimitive];
12845
13142
  if (prim !== undefined) {
12846
13143
  var res = prim.call(input, hint || "default");
12847
- if (_typeof$p(res) !== "object") return res;
13144
+ if (_typeof$q(res) !== "object") return res;
12848
13145
  throw new TypeError("@@toPrimitive must return a primitive value.");
12849
13146
  }
12850
13147
  return (hint === "string" ? String : Number)(input);
@@ -12895,22 +13192,22 @@
12895
13192
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
12896
13193
  }
12897
13194
  return /*#__PURE__*/React__default.createElement(InstantSearchSSRContext.Provider, {
12898
- value: _objectSpread$h(_objectSpread$h({}, props), {}, {
13195
+ value: _objectSpread$k(_objectSpread$k({}, props), {}, {
12899
13196
  ssrSearchRef: ssrSearchRef
12900
13197
  })
12901
13198
  }, children);
12902
13199
  }
12903
13200
 
12904
- function _typeof$q(obj) {
13201
+ function _typeof$r(obj) {
12905
13202
  "@babel/helpers - typeof";
12906
13203
 
12907
- return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13204
+ return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12908
13205
  return typeof obj;
12909
13206
  } : function (obj) {
12910
13207
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12911
- }, _typeof$q(obj);
13208
+ }, _typeof$r(obj);
12912
13209
  }
12913
- function ownKeys$i(object, enumerableOnly) {
13210
+ function ownKeys$l(object, enumerableOnly) {
12914
13211
  var keys = Object.keys(object);
12915
13212
  if (Object.getOwnPropertySymbols) {
12916
13213
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12920,19 +13217,19 @@
12920
13217
  }
12921
13218
  return keys;
12922
13219
  }
12923
- function _objectSpread$i(target) {
13220
+ function _objectSpread$l(target) {
12924
13221
  for (var i = 1; i < arguments.length; i++) {
12925
13222
  var source = null != arguments[i] ? arguments[i] : {};
12926
- i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12927
- _defineProperty$j(target, key, source[key]);
12928
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
13223
+ i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13224
+ _defineProperty$m(target, key, source[key]);
13225
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
12929
13226
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12930
13227
  });
12931
13228
  }
12932
13229
  return target;
12933
13230
  }
12934
- function _defineProperty$j(obj, key, value) {
12935
- key = _toPropertyKey$j(key);
13231
+ function _defineProperty$m(obj, key, value) {
13232
+ key = _toPropertyKey$m(key);
12936
13233
  if (key in obj) {
12937
13234
  Object.defineProperty(obj, key, {
12938
13235
  value: value,
@@ -12945,16 +13242,16 @@
12945
13242
  }
12946
13243
  return obj;
12947
13244
  }
12948
- function _toPropertyKey$j(arg) {
12949
- var key = _toPrimitive$j(arg, "string");
12950
- return _typeof$q(key) === "symbol" ? key : String(key);
13245
+ function _toPropertyKey$m(arg) {
13246
+ var key = _toPrimitive$m(arg, "string");
13247
+ return _typeof$r(key) === "symbol" ? key : String(key);
12951
13248
  }
12952
- function _toPrimitive$j(input, hint) {
12953
- if (_typeof$q(input) !== "object" || input === null) return input;
13249
+ function _toPrimitive$m(input, hint) {
13250
+ if (_typeof$r(input) !== "object" || input === null) return input;
12954
13251
  var prim = input[Symbol.toPrimitive];
12955
13252
  if (prim !== undefined) {
12956
13253
  var res = prim.call(input, hint || "default");
12957
- if (_typeof$q(res) !== "object") return res;
13254
+ if (_typeof$r(res) !== "object") return res;
12958
13255
  throw new TypeError("@@toPrimitive must return a primitive value.");
12959
13256
  }
12960
13257
  return (hint === "string" ? String : Number)(input);
@@ -13046,12 +13343,12 @@
13046
13343
  return {
13047
13344
  $$type: 'ais.breadcrumb',
13048
13345
  init: function init(initOptions) {
13049
- renderFn(_objectSpread$i(_objectSpread$i({}, this.getWidgetRenderState(initOptions)), {}, {
13346
+ renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
13050
13347
  instantSearchInstance: initOptions.instantSearchInstance
13051
13348
  }), true);
13052
13349
  },
13053
13350
  render: function render(renderOptions) {
13054
- renderFn(_objectSpread$i(_objectSpread$i({}, this.getWidgetRenderState(renderOptions)), {}, {
13351
+ renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(renderOptions)), {}, {
13055
13352
  instantSearchInstance: renderOptions.instantSearchInstance
13056
13353
  }), false);
13057
13354
  },
@@ -13059,8 +13356,8 @@
13059
13356
  unmountFn();
13060
13357
  },
13061
13358
  getRenderState: function getRenderState(renderState, renderOptions) {
13062
- return _objectSpread$i(_objectSpread$i({}, renderState), {}, {
13063
- breadcrumb: _objectSpread$i(_objectSpread$i({}, renderState.breadcrumb), {}, _defineProperty$j({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
13359
+ return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
13360
+ breadcrumb: _objectSpread$l(_objectSpread$l({}, renderState.breadcrumb), {}, _defineProperty$m({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
13064
13361
  });
13065
13362
  },
13066
13363
  getWidgetRenderState: function getWidgetRenderState(_ref2) {
@@ -13115,8 +13412,8 @@
13115
13412
  if (!path.length) {
13116
13413
  return uiState;
13117
13414
  }
13118
- return _objectSpread$i(_objectSpread$i({}, uiState), {}, {
13119
- hierarchicalMenu: _objectSpread$i(_objectSpread$i({}, uiState.hierarchicalMenu), {}, _defineProperty$j({}, hierarchicalFacetName, path))
13415
+ return _objectSpread$l(_objectSpread$l({}, uiState), {}, {
13416
+ hierarchicalMenu: _objectSpread$l(_objectSpread$l({}, uiState.hierarchicalMenu), {}, _defineProperty$m({}, hierarchicalFacetName, path))
13120
13417
  });
13121
13418
  },
13122
13419
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref4) {
@@ -13136,7 +13433,7 @@
13136
13433
  });
13137
13434
  if (!values) {
13138
13435
  return withFacetConfiguration.setQueryParameters({
13139
- hierarchicalFacetsRefinements: _objectSpread$i(_objectSpread$i({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$j({}, hierarchicalFacetName, []))
13436
+ hierarchicalFacetsRefinements: _objectSpread$l(_objectSpread$l({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$m({}, hierarchicalFacetName, []))
13140
13437
  });
13141
13438
  }
13142
13439
  return withFacetConfiguration.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -13171,14 +13468,14 @@
13171
13468
  return useConnector(connectBreadcrumb, props, additionalWidgetProperties);
13172
13469
  }
13173
13470
 
13174
- function _typeof$r(obj) {
13471
+ function _typeof$s(obj) {
13175
13472
  "@babel/helpers - typeof";
13176
13473
 
13177
- return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13474
+ return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13178
13475
  return typeof obj;
13179
13476
  } : function (obj) {
13180
13477
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13181
- }, _typeof$r(obj);
13478
+ }, _typeof$s(obj);
13182
13479
  }
13183
13480
  function _toConsumableArray$3(arr) {
13184
13481
  return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$a(arr) || _nonIterableSpread$3();
@@ -13205,7 +13502,7 @@
13205
13502
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13206
13503
  return arr2;
13207
13504
  }
13208
- function ownKeys$j(object, enumerableOnly) {
13505
+ function ownKeys$m(object, enumerableOnly) {
13209
13506
  var keys = Object.keys(object);
13210
13507
  if (Object.getOwnPropertySymbols) {
13211
13508
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13215,19 +13512,19 @@
13215
13512
  }
13216
13513
  return keys;
13217
13514
  }
13218
- function _objectSpread$j(target) {
13515
+ function _objectSpread$m(target) {
13219
13516
  for (var i = 1; i < arguments.length; i++) {
13220
13517
  var source = null != arguments[i] ? arguments[i] : {};
13221
- i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
13222
- _defineProperty$k(target, key, source[key]);
13223
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
13518
+ i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
13519
+ _defineProperty$n(target, key, source[key]);
13520
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
13224
13521
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13225
13522
  });
13226
13523
  }
13227
13524
  return target;
13228
13525
  }
13229
- function _defineProperty$k(obj, key, value) {
13230
- key = _toPropertyKey$k(key);
13526
+ function _defineProperty$n(obj, key, value) {
13527
+ key = _toPropertyKey$n(key);
13231
13528
  if (key in obj) {
13232
13529
  Object.defineProperty(obj, key, {
13233
13530
  value: value,
@@ -13240,16 +13537,16 @@
13240
13537
  }
13241
13538
  return obj;
13242
13539
  }
13243
- function _toPropertyKey$k(arg) {
13244
- var key = _toPrimitive$k(arg, "string");
13245
- return _typeof$r(key) === "symbol" ? key : String(key);
13540
+ function _toPropertyKey$n(arg) {
13541
+ var key = _toPrimitive$n(arg, "string");
13542
+ return _typeof$s(key) === "symbol" ? key : String(key);
13246
13543
  }
13247
- function _toPrimitive$k(input, hint) {
13248
- if (_typeof$r(input) !== "object" || input === null) return input;
13544
+ function _toPrimitive$n(input, hint) {
13545
+ if (_typeof$s(input) !== "object" || input === null) return input;
13249
13546
  var prim = input[Symbol.toPrimitive];
13250
13547
  if (prim !== undefined) {
13251
13548
  var res = prim.call(input, hint || "default");
13252
- if (_typeof$r(res) !== "object") return res;
13549
+ if (_typeof$s(res) !== "object") return res;
13253
13550
  throw new TypeError("@@toPrimitive must return a primitive value.");
13254
13551
  }
13255
13552
  return (hint === "string" ? String : Number)(input);
@@ -13291,13 +13588,13 @@
13291
13588
  $$type: 'ais.clearRefinements',
13292
13589
  init: function init(initOptions) {
13293
13590
  var instantSearchInstance = initOptions.instantSearchInstance;
13294
- renderFn(_objectSpread$j(_objectSpread$j({}, this.getWidgetRenderState(initOptions)), {}, {
13591
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
13295
13592
  instantSearchInstance: instantSearchInstance
13296
13593
  }), true);
13297
13594
  },
13298
13595
  render: function render(renderOptions) {
13299
13596
  var instantSearchInstance = renderOptions.instantSearchInstance;
13300
- renderFn(_objectSpread$j(_objectSpread$j({}, this.getWidgetRenderState(renderOptions)), {}, {
13597
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(renderOptions)), {}, {
13301
13598
  instantSearchInstance: instantSearchInstance
13302
13599
  }), false);
13303
13600
  },
@@ -13305,7 +13602,7 @@
13305
13602
  unmountFn();
13306
13603
  },
13307
13604
  getRenderState: function getRenderState(renderState, renderOptions) {
13308
- return _objectSpread$j(_objectSpread$j({}, renderState), {}, {
13605
+ return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
13309
13606
  clearRefinements: this.getWidgetRenderState(renderOptions)
13310
13607
  });
13311
13608
  },
@@ -13391,14 +13688,14 @@
13391
13688
  return useConnector(connectClearRefinements, props, additionalWidgetProperties);
13392
13689
  }
13393
13690
 
13394
- function _typeof$s(obj) {
13691
+ function _typeof$t(obj) {
13395
13692
  "@babel/helpers - typeof";
13396
13693
 
13397
- return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13694
+ return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13398
13695
  return typeof obj;
13399
13696
  } : function (obj) {
13400
13697
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13401
- }, _typeof$s(obj);
13698
+ }, _typeof$t(obj);
13402
13699
  }
13403
13700
  function _toConsumableArray$4(arr) {
13404
13701
  return _arrayWithoutHoles$4(arr) || _iterableToArray$4(arr) || _unsupportedIterableToArray$b(arr) || _nonIterableSpread$4();
@@ -13425,7 +13722,7 @@
13425
13722
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13426
13723
  return arr2;
13427
13724
  }
13428
- function ownKeys$k(object, enumerableOnly) {
13725
+ function ownKeys$n(object, enumerableOnly) {
13429
13726
  var keys = Object.keys(object);
13430
13727
  if (Object.getOwnPropertySymbols) {
13431
13728
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13435,19 +13732,19 @@
13435
13732
  }
13436
13733
  return keys;
13437
13734
  }
13438
- function _objectSpread$k(target) {
13735
+ function _objectSpread$n(target) {
13439
13736
  for (var i = 1; i < arguments.length; i++) {
13440
13737
  var source = null != arguments[i] ? arguments[i] : {};
13441
- i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13442
- _defineProperty$l(target, key, source[key]);
13443
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
13738
+ i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
13739
+ _defineProperty$o(target, key, source[key]);
13740
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
13444
13741
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13445
13742
  });
13446
13743
  }
13447
13744
  return target;
13448
13745
  }
13449
- function _defineProperty$l(obj, key, value) {
13450
- key = _toPropertyKey$l(key);
13746
+ function _defineProperty$o(obj, key, value) {
13747
+ key = _toPropertyKey$o(key);
13451
13748
  if (key in obj) {
13452
13749
  Object.defineProperty(obj, key, {
13453
13750
  value: value,
@@ -13460,16 +13757,16 @@
13460
13757
  }
13461
13758
  return obj;
13462
13759
  }
13463
- function _toPropertyKey$l(arg) {
13464
- var key = _toPrimitive$l(arg, "string");
13465
- return _typeof$s(key) === "symbol" ? key : String(key);
13760
+ function _toPropertyKey$o(arg) {
13761
+ var key = _toPrimitive$o(arg, "string");
13762
+ return _typeof$t(key) === "symbol" ? key : String(key);
13466
13763
  }
13467
- function _toPrimitive$l(input, hint) {
13468
- if (_typeof$s(input) !== "object" || input === null) return input;
13764
+ function _toPrimitive$o(input, hint) {
13765
+ if (_typeof$t(input) !== "object" || input === null) return input;
13469
13766
  var prim = input[Symbol.toPrimitive];
13470
13767
  if (prim !== undefined) {
13471
13768
  var res = prim.call(input, hint || "default");
13472
- if (_typeof$s(res) !== "object") return res;
13769
+ if (_typeof$t(res) !== "object") return res;
13473
13770
  throw new TypeError("@@toPrimitive must return a primitive value.");
13474
13771
  }
13475
13772
  return (hint === "string" ? String : Number)(input);
@@ -13497,13 +13794,13 @@
13497
13794
  $$type: 'ais.currentRefinements',
13498
13795
  init: function init(initOptions) {
13499
13796
  var instantSearchInstance = initOptions.instantSearchInstance;
13500
- renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(initOptions)), {}, {
13797
+ renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
13501
13798
  instantSearchInstance: instantSearchInstance
13502
13799
  }), true);
13503
13800
  },
13504
13801
  render: function render(renderOptions) {
13505
13802
  var instantSearchInstance = renderOptions.instantSearchInstance;
13506
- renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(renderOptions)), {}, {
13803
+ renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(renderOptions)), {}, {
13507
13804
  instantSearchInstance: instantSearchInstance
13508
13805
  }), false);
13509
13806
  },
@@ -13511,7 +13808,7 @@
13511
13808
  unmountFn();
13512
13809
  },
13513
13810
  getRenderState: function getRenderState(renderState, renderOptions) {
13514
- return _objectSpread$k(_objectSpread$k({}, renderState), {}, {
13811
+ return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
13515
13812
  currentRefinements: this.getWidgetRenderState(renderOptions)
13516
13813
  });
13517
13814
  },
@@ -13662,16 +13959,16 @@
13662
13959
  return useConnector(connectCurrentRefinements, props, additionalWidgetProperties);
13663
13960
  }
13664
13961
 
13665
- function _typeof$t(obj) {
13962
+ function _typeof$u(obj) {
13666
13963
  "@babel/helpers - typeof";
13667
13964
 
13668
- return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13965
+ return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13669
13966
  return typeof obj;
13670
13967
  } : function (obj) {
13671
13968
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13672
- }, _typeof$t(obj);
13969
+ }, _typeof$u(obj);
13673
13970
  }
13674
- function ownKeys$l(object, enumerableOnly) {
13971
+ function ownKeys$o(object, enumerableOnly) {
13675
13972
  var keys = Object.keys(object);
13676
13973
  if (Object.getOwnPropertySymbols) {
13677
13974
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13681,19 +13978,19 @@
13681
13978
  }
13682
13979
  return keys;
13683
13980
  }
13684
- function _objectSpread$l(target) {
13981
+ function _objectSpread$o(target) {
13685
13982
  for (var i = 1; i < arguments.length; i++) {
13686
13983
  var source = null != arguments[i] ? arguments[i] : {};
13687
- i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13688
- _defineProperty$m(target, key, source[key]);
13689
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
13984
+ i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
13985
+ _defineProperty$p(target, key, source[key]);
13986
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
13690
13987
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13691
13988
  });
13692
13989
  }
13693
13990
  return target;
13694
13991
  }
13695
- function _defineProperty$m(obj, key, value) {
13696
- key = _toPropertyKey$m(key);
13992
+ function _defineProperty$p(obj, key, value) {
13993
+ key = _toPropertyKey$p(key);
13697
13994
  if (key in obj) {
13698
13995
  Object.defineProperty(obj, key, {
13699
13996
  value: value,
@@ -13706,16 +14003,16 @@
13706
14003
  }
13707
14004
  return obj;
13708
14005
  }
13709
- function _toPropertyKey$m(arg) {
13710
- var key = _toPrimitive$m(arg, "string");
13711
- return _typeof$t(key) === "symbol" ? key : String(key);
14006
+ function _toPropertyKey$p(arg) {
14007
+ var key = _toPrimitive$p(arg, "string");
14008
+ return _typeof$u(key) === "symbol" ? key : String(key);
13712
14009
  }
13713
- function _toPrimitive$m(input, hint) {
13714
- if (_typeof$t(input) !== "object" || input === null) return input;
14010
+ function _toPrimitive$p(input, hint) {
14011
+ if (_typeof$u(input) !== "object" || input === null) return input;
13715
14012
  var prim = input[Symbol.toPrimitive];
13716
14013
  if (prim !== undefined) {
13717
14014
  var res = prim.call(input, hint || "default");
13718
- if (_typeof$t(res) !== "object") return res;
14015
+ if (_typeof$u(res) !== "object") return res;
13719
14016
  throw new TypeError("@@toPrimitive must return a primitive value.");
13720
14017
  }
13721
14018
  return (hint === "string" ? String : Number)(input);
@@ -13825,7 +14122,7 @@
13825
14122
  var isFirstRendering = true;
13826
14123
  widgetState.internalToggleRefineOnMapMove = createInternalToggleRefinementOnMapMove(initArgs, noop$1);
13827
14124
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(initArgs, noop$1);
13828
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initArgs)), {}, {
14125
+ renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initArgs)), {}, {
13829
14126
  instantSearchInstance: instantSearchInstance
13830
14127
  }), isFirstRendering);
13831
14128
  },
@@ -13847,7 +14144,7 @@
13847
14144
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(renderArgs, this.render.bind(this));
13848
14145
  var widgetRenderState = this.getWidgetRenderState(renderArgs);
13849
14146
  sendEvent('view:internal', widgetRenderState.items);
13850
- renderFn(_objectSpread$l(_objectSpread$l({}, widgetRenderState), {}, {
14147
+ renderFn(_objectSpread$o(_objectSpread$o({}, widgetRenderState), {}, {
13851
14148
  instantSearchInstance: instantSearchInstance
13852
14149
  }), isFirstRendering);
13853
14150
  },
@@ -13884,7 +14181,7 @@
13884
14181
  };
13885
14182
  },
13886
14183
  getRenderState: function getRenderState(renderState, renderOptions) {
13887
- return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
14184
+ return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
13888
14185
  geoSearch: this.getWidgetRenderState(renderOptions)
13889
14186
  });
13890
14187
  },
@@ -13899,7 +14196,7 @@
13899
14196
  if (!boundingBox || uiState && uiState.geoSearch && uiState.geoSearch.boundingBox === boundingBox) {
13900
14197
  return uiState;
13901
14198
  }
13902
- return _objectSpread$l(_objectSpread$l({}, uiState), {}, {
14199
+ return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
13903
14200
  geoSearch: {
13904
14201
  boundingBox: boundingBox
13905
14202
  }
@@ -13920,17 +14217,17 @@
13920
14217
  return useConnector(connectGeoSearch, props, additionalWidgetProperties);
13921
14218
  }
13922
14219
 
13923
- function _typeof$u(obj) {
14220
+ function _typeof$v(obj) {
13924
14221
  "@babel/helpers - typeof";
13925
14222
 
13926
- return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14223
+ return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13927
14224
  return typeof obj;
13928
14225
  } : function (obj) {
13929
14226
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13930
- }, _typeof$u(obj);
14227
+ }, _typeof$v(obj);
13931
14228
  }
13932
14229
  var _excluded$8 = ["name", "escapedValue", "data", "path"];
13933
- function ownKeys$m(object, enumerableOnly) {
14230
+ function ownKeys$p(object, enumerableOnly) {
13934
14231
  var keys = Object.keys(object);
13935
14232
  if (Object.getOwnPropertySymbols) {
13936
14233
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13940,19 +14237,19 @@
13940
14237
  }
13941
14238
  return keys;
13942
14239
  }
13943
- function _objectSpread$m(target) {
14240
+ function _objectSpread$p(target) {
13944
14241
  for (var i = 1; i < arguments.length; i++) {
13945
14242
  var source = null != arguments[i] ? arguments[i] : {};
13946
- i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
13947
- _defineProperty$n(target, key, source[key]);
13948
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
14243
+ i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14244
+ _defineProperty$q(target, key, source[key]);
14245
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
13949
14246
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13950
14247
  });
13951
14248
  }
13952
14249
  return target;
13953
14250
  }
13954
- function _defineProperty$n(obj, key, value) {
13955
- key = _toPropertyKey$n(key);
14251
+ function _defineProperty$q(obj, key, value) {
14252
+ key = _toPropertyKey$q(key);
13956
14253
  if (key in obj) {
13957
14254
  Object.defineProperty(obj, key, {
13958
14255
  value: value,
@@ -13965,16 +14262,16 @@
13965
14262
  }
13966
14263
  return obj;
13967
14264
  }
13968
- function _toPropertyKey$n(arg) {
13969
- var key = _toPrimitive$n(arg, "string");
13970
- return _typeof$u(key) === "symbol" ? key : String(key);
14265
+ function _toPropertyKey$q(arg) {
14266
+ var key = _toPrimitive$q(arg, "string");
14267
+ return _typeof$v(key) === "symbol" ? key : String(key);
13971
14268
  }
13972
- function _toPrimitive$n(input, hint) {
13973
- if (_typeof$u(input) !== "object" || input === null) return input;
14269
+ function _toPrimitive$q(input, hint) {
14270
+ if (_typeof$v(input) !== "object" || input === null) return input;
13974
14271
  var prim = input[Symbol.toPrimitive];
13975
14272
  if (prim !== undefined) {
13976
14273
  var res = prim.call(input, hint || "default");
13977
- if (_typeof$u(res) !== "object") return res;
14274
+ if (_typeof$v(res) !== "object") return res;
13978
14275
  throw new TypeError("@@toPrimitive must return a primitive value.");
13979
14276
  }
13980
14277
  return (hint === "string" ? String : Number)(input);
@@ -14134,7 +14431,7 @@
14134
14431
  data = _ref2.data,
14135
14432
  path = _ref2.path,
14136
14433
  subValue = _objectWithoutProperties$8(_ref2, _excluded$8);
14137
- var item = _objectSpread$m(_objectSpread$m({}, subValue), {}, {
14434
+ var item = _objectSpread$p(_objectSpread$p({}, subValue), {}, {
14138
14435
  value: value,
14139
14436
  label: label,
14140
14437
  data: null
@@ -14149,14 +14446,14 @@
14149
14446
  $$type: 'ais.hierarchicalMenu',
14150
14447
  init: function init(initOptions) {
14151
14448
  var instantSearchInstance = initOptions.instantSearchInstance;
14152
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
14449
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
14153
14450
  instantSearchInstance: instantSearchInstance
14154
14451
  }), true);
14155
14452
  },
14156
14453
  render: function render(renderOptions) {
14157
14454
  var instantSearchInstance = renderOptions.instantSearchInstance;
14158
14455
  toggleShowMore = createToggleShowMore(renderOptions, this);
14159
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(renderOptions)), {}, {
14456
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(renderOptions)), {}, {
14160
14457
  instantSearchInstance: instantSearchInstance
14161
14458
  }), false);
14162
14459
  },
@@ -14166,8 +14463,8 @@
14166
14463
  return state.removeHierarchicalFacet(hierarchicalFacetName).setQueryParameter('maxValuesPerFacet', undefined);
14167
14464
  },
14168
14465
  getRenderState: function getRenderState(renderState, renderOptions) {
14169
- return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
14170
- hierarchicalMenu: _objectSpread$m(_objectSpread$m({}, renderState.hierarchicalMenu), {}, _defineProperty$n({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
14466
+ return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
14467
+ hierarchicalMenu: _objectSpread$p(_objectSpread$p({}, renderState.hierarchicalMenu), {}, _defineProperty$q({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
14171
14468
  });
14172
14469
  },
14173
14470
  getWidgetRenderState: function getWidgetRenderState(_ref4) {
@@ -14243,8 +14540,8 @@
14243
14540
  if (!path.length) {
14244
14541
  return uiState;
14245
14542
  }
14246
- return _objectSpread$m(_objectSpread$m({}, uiState), {}, {
14247
- hierarchicalMenu: _objectSpread$m(_objectSpread$m({}, uiState.hierarchicalMenu), {}, _defineProperty$n({}, hierarchicalFacetName, path))
14543
+ return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
14544
+ hierarchicalMenu: _objectSpread$p(_objectSpread$p({}, uiState.hierarchicalMenu), {}, _defineProperty$q({}, hierarchicalFacetName, path))
14248
14545
  });
14249
14546
  },
14250
14547
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -14268,7 +14565,7 @@
14268
14565
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
14269
14566
  if (!values) {
14270
14567
  return withMaxValuesPerFacet.setQueryParameters({
14271
- hierarchicalFacetsRefinements: _objectSpread$m(_objectSpread$m({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$n({}, hierarchicalFacetName, []))
14568
+ hierarchicalFacetsRefinements: _objectSpread$p(_objectSpread$p({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$q({}, hierarchicalFacetName, []))
14272
14569
  });
14273
14570
  }
14274
14571
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -14281,16 +14578,16 @@
14281
14578
  return useConnector(connectHierarchicalMenu, props, additionalWidgetProperties);
14282
14579
  }
14283
14580
 
14284
- function _typeof$v(obj) {
14581
+ function _typeof$w(obj) {
14285
14582
  "@babel/helpers - typeof";
14286
14583
 
14287
- return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14584
+ return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14288
14585
  return typeof obj;
14289
14586
  } : function (obj) {
14290
14587
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14291
- }, _typeof$v(obj);
14588
+ }, _typeof$w(obj);
14292
14589
  }
14293
- function ownKeys$n(object, enumerableOnly) {
14590
+ function ownKeys$q(object, enumerableOnly) {
14294
14591
  var keys = Object.keys(object);
14295
14592
  if (Object.getOwnPropertySymbols) {
14296
14593
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14300,19 +14597,19 @@
14300
14597
  }
14301
14598
  return keys;
14302
14599
  }
14303
- function _objectSpread$n(target) {
14600
+ function _objectSpread$q(target) {
14304
14601
  for (var i = 1; i < arguments.length; i++) {
14305
14602
  var source = null != arguments[i] ? arguments[i] : {};
14306
- i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
14307
- _defineProperty$o(target, key, source[key]);
14308
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
14603
+ i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
14604
+ _defineProperty$r(target, key, source[key]);
14605
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
14309
14606
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14310
14607
  });
14311
14608
  }
14312
14609
  return target;
14313
14610
  }
14314
- function _defineProperty$o(obj, key, value) {
14315
- key = _toPropertyKey$o(key);
14611
+ function _defineProperty$r(obj, key, value) {
14612
+ key = _toPropertyKey$r(key);
14316
14613
  if (key in obj) {
14317
14614
  Object.defineProperty(obj, key, {
14318
14615
  value: value,
@@ -14325,16 +14622,16 @@
14325
14622
  }
14326
14623
  return obj;
14327
14624
  }
14328
- function _toPropertyKey$o(arg) {
14329
- var key = _toPrimitive$o(arg, "string");
14330
- return _typeof$v(key) === "symbol" ? key : String(key);
14625
+ function _toPropertyKey$r(arg) {
14626
+ var key = _toPrimitive$r(arg, "string");
14627
+ return _typeof$w(key) === "symbol" ? key : String(key);
14331
14628
  }
14332
- function _toPrimitive$o(input, hint) {
14333
- if (_typeof$v(input) !== "object" || input === null) return input;
14629
+ function _toPrimitive$r(input, hint) {
14630
+ if (_typeof$w(input) !== "object" || input === null) return input;
14334
14631
  var prim = input[Symbol.toPrimitive];
14335
14632
  if (prim !== undefined) {
14336
14633
  var res = prim.call(input, hint || "default");
14337
- if (_typeof$v(res) !== "object") return res;
14634
+ if (_typeof$w(res) !== "object") return res;
14338
14635
  throw new TypeError("@@toPrimitive must return a primitive value.");
14339
14636
  }
14340
14637
  return (hint === "string" ? String : Number)(input);
@@ -14359,19 +14656,19 @@
14359
14656
  return {
14360
14657
  $$type: 'ais.hits',
14361
14658
  init: function init(initOptions) {
14362
- renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
14659
+ renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
14363
14660
  instantSearchInstance: initOptions.instantSearchInstance
14364
14661
  }), true);
14365
14662
  },
14366
14663
  render: function render(renderOptions) {
14367
14664
  var renderState = this.getWidgetRenderState(renderOptions);
14368
- renderFn(_objectSpread$n(_objectSpread$n({}, renderState), {}, {
14665
+ renderFn(_objectSpread$q(_objectSpread$q({}, renderState), {}, {
14369
14666
  instantSearchInstance: renderOptions.instantSearchInstance
14370
14667
  }), false);
14371
14668
  renderState.sendEvent('view:internal', renderState.hits);
14372
14669
  },
14373
14670
  getRenderState: function getRenderState(renderState, renderOptions) {
14374
- return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
14671
+ return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
14375
14672
  hits: this.getWidgetRenderState(renderOptions)
14376
14673
  });
14377
14674
  },
@@ -14425,7 +14722,7 @@
14425
14722
  return state;
14426
14723
  }
14427
14724
  return state.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
14428
- return _objectSpread$n(_objectSpread$n({}, acc), {}, _defineProperty$o({}, key, undefined));
14725
+ return _objectSpread$q(_objectSpread$q({}, acc), {}, _defineProperty$r({}, key, undefined));
14429
14726
  }, {}));
14430
14727
  },
14431
14728
  getWidgetSearchParameters: function getWidgetSearchParameters(state) {
@@ -14442,14 +14739,14 @@
14442
14739
  return useConnector(connectHits, props, additionalWidgetProperties);
14443
14740
  }
14444
14741
 
14445
- function _typeof$w(obj) {
14742
+ function _typeof$x(obj) {
14446
14743
  "@babel/helpers - typeof";
14447
14744
 
14448
- return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14745
+ return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14449
14746
  return typeof obj;
14450
14747
  } : function (obj) {
14451
14748
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14452
- }, _typeof$w(obj);
14749
+ }, _typeof$x(obj);
14453
14750
  }
14454
14751
  function _toConsumableArray$5(arr) {
14455
14752
  return _arrayWithoutHoles$5(arr) || _iterableToArray$5(arr) || _unsupportedIterableToArray$d(arr) || _nonIterableSpread$5();
@@ -14476,7 +14773,7 @@
14476
14773
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
14477
14774
  return arr2;
14478
14775
  }
14479
- function ownKeys$o(object, enumerableOnly) {
14776
+ function ownKeys$r(object, enumerableOnly) {
14480
14777
  var keys = Object.keys(object);
14481
14778
  if (Object.getOwnPropertySymbols) {
14482
14779
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14486,19 +14783,19 @@
14486
14783
  }
14487
14784
  return keys;
14488
14785
  }
14489
- function _objectSpread$o(target) {
14786
+ function _objectSpread$r(target) {
14490
14787
  for (var i = 1; i < arguments.length; i++) {
14491
14788
  var source = null != arguments[i] ? arguments[i] : {};
14492
- i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
14493
- _defineProperty$p(target, key, source[key]);
14494
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
14789
+ i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
14790
+ _defineProperty$s(target, key, source[key]);
14791
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
14495
14792
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14496
14793
  });
14497
14794
  }
14498
14795
  return target;
14499
14796
  }
14500
- function _defineProperty$p(obj, key, value) {
14501
- key = _toPropertyKey$p(key);
14797
+ function _defineProperty$s(obj, key, value) {
14798
+ key = _toPropertyKey$s(key);
14502
14799
  if (key in obj) {
14503
14800
  Object.defineProperty(obj, key, {
14504
14801
  value: value,
@@ -14511,16 +14808,16 @@
14511
14808
  }
14512
14809
  return obj;
14513
14810
  }
14514
- function _toPropertyKey$p(arg) {
14515
- var key = _toPrimitive$p(arg, "string");
14516
- return _typeof$w(key) === "symbol" ? key : String(key);
14811
+ function _toPropertyKey$s(arg) {
14812
+ var key = _toPrimitive$s(arg, "string");
14813
+ return _typeof$x(key) === "symbol" ? key : String(key);
14517
14814
  }
14518
- function _toPrimitive$p(input, hint) {
14519
- if (_typeof$w(input) !== "object" || input === null) return input;
14815
+ function _toPrimitive$s(input, hint) {
14816
+ if (_typeof$x(input) !== "object" || input === null) return input;
14520
14817
  var prim = input[Symbol.toPrimitive];
14521
14818
  if (prim !== undefined) {
14522
14819
  var res = prim.call(input, hint || "default");
14523
- if (_typeof$w(res) !== "object") return res;
14820
+ if (_typeof$x(res) !== "object") return res;
14524
14821
  throw new TypeError("@@toPrimitive must return a primitive value.");
14525
14822
  }
14526
14823
  return (hint === "string" ? String : Number)(input);
@@ -14556,7 +14853,7 @@
14556
14853
  var normalizeItems = function normalizeItems(_ref2) {
14557
14854
  var hitsPerPage = _ref2.hitsPerPage;
14558
14855
  return items.map(function (item) {
14559
- return _objectSpread$o(_objectSpread$o({}, item), {}, {
14856
+ return _objectSpread$r(_objectSpread$r({}, item), {}, {
14560
14857
  isRefined: Number(item.value) === Number(hitsPerPage)
14561
14858
  });
14562
14859
  });
@@ -14598,13 +14895,13 @@
14598
14895
  label: ''
14599
14896
  }].concat(_toConsumableArray$5(items));
14600
14897
  }
14601
- renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initOptions)), {}, {
14898
+ renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
14602
14899
  instantSearchInstance: instantSearchInstance
14603
14900
  }), true);
14604
14901
  },
14605
14902
  render: function render(initOptions) {
14606
14903
  var instantSearchInstance = initOptions.instantSearchInstance;
14607
- renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initOptions)), {}, {
14904
+ renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
14608
14905
  instantSearchInstance: instantSearchInstance
14609
14906
  }), false);
14610
14907
  },
@@ -14614,7 +14911,7 @@
14614
14911
  return state.setQueryParameter('hitsPerPage', undefined);
14615
14912
  },
14616
14913
  getRenderState: function getRenderState(renderState, renderOptions) {
14617
- return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
14914
+ return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
14618
14915
  hitsPerPage: this.getWidgetRenderState(renderOptions)
14619
14916
  });
14620
14917
  },
@@ -14646,7 +14943,7 @@
14646
14943
  if (hitsPerPage === undefined || hitsPerPage === defaultItem.value) {
14647
14944
  return uiState;
14648
14945
  }
14649
- return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
14946
+ return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
14650
14947
  hitsPerPage: hitsPerPage
14651
14948
  });
14652
14949
  },
@@ -14664,18 +14961,18 @@
14664
14961
  return useConnector(connectHitsPerPage, props, additionalWidgetProperties);
14665
14962
  }
14666
14963
 
14667
- function _typeof$x(obj) {
14964
+ function _typeof$y(obj) {
14668
14965
  "@babel/helpers - typeof";
14669
14966
 
14670
- return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14967
+ return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14671
14968
  return typeof obj;
14672
14969
  } : function (obj) {
14673
14970
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14674
- }, _typeof$x(obj);
14971
+ }, _typeof$y(obj);
14675
14972
  }
14676
14973
  var _excluded$9 = ["page"],
14677
14974
  _excluded2$1 = ["clickAnalytics", "userToken"];
14678
- function ownKeys$p(object, enumerableOnly) {
14975
+ function ownKeys$s(object, enumerableOnly) {
14679
14976
  var keys = Object.keys(object);
14680
14977
  if (Object.getOwnPropertySymbols) {
14681
14978
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14685,19 +14982,19 @@
14685
14982
  }
14686
14983
  return keys;
14687
14984
  }
14688
- function _objectSpread$p(target) {
14985
+ function _objectSpread$s(target) {
14689
14986
  for (var i = 1; i < arguments.length; i++) {
14690
14987
  var source = null != arguments[i] ? arguments[i] : {};
14691
- i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14692
- _defineProperty$q(target, key, source[key]);
14693
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
14988
+ i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
14989
+ _defineProperty$t(target, key, source[key]);
14990
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
14694
14991
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14695
14992
  });
14696
14993
  }
14697
14994
  return target;
14698
14995
  }
14699
- function _defineProperty$q(obj, key, value) {
14700
- key = _toPropertyKey$q(key);
14996
+ function _defineProperty$t(obj, key, value) {
14997
+ key = _toPropertyKey$t(key);
14701
14998
  if (key in obj) {
14702
14999
  Object.defineProperty(obj, key, {
14703
15000
  value: value,
@@ -14710,16 +15007,16 @@
14710
15007
  }
14711
15008
  return obj;
14712
15009
  }
14713
- function _toPropertyKey$q(arg) {
14714
- var key = _toPrimitive$q(arg, "string");
14715
- return _typeof$x(key) === "symbol" ? key : String(key);
15010
+ function _toPropertyKey$t(arg) {
15011
+ var key = _toPrimitive$t(arg, "string");
15012
+ return _typeof$y(key) === "symbol" ? key : String(key);
14716
15013
  }
14717
- function _toPrimitive$q(input, hint) {
14718
- if (_typeof$x(input) !== "object" || input === null) return input;
15014
+ function _toPrimitive$t(input, hint) {
15015
+ if (_typeof$y(input) !== "object" || input === null) return input;
14719
15016
  var prim = input[Symbol.toPrimitive];
14720
15017
  if (prim !== undefined) {
14721
15018
  var res = prim.call(input, hint || "default");
14722
- if (_typeof$x(res) !== "object") return res;
15019
+ if (_typeof$y(res) !== "object") return res;
14723
15020
  throw new TypeError("@@toPrimitive must return a primitive value.");
14724
15021
  }
14725
15022
  return (hint === "string" ? String : Number)(input);
@@ -14860,7 +15157,7 @@
14860
15157
  return function () {
14861
15158
  // Using the helper's `overrideStateWithoutTriggeringChangeEvent` method
14862
15159
  // avoid updating the browser URL when the user displays the previous page.
14863
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$p(_objectSpread$p({}, helper.state), {}, {
15160
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$s(_objectSpread$s({}, helper.state), {}, {
14864
15161
  page: getFirstReceivedPage(helper.state, cache.read({
14865
15162
  state: normalizeState(helper.state)
14866
15163
  }) || {}) - 1
@@ -14877,20 +15174,20 @@
14877
15174
  return {
14878
15175
  $$type: 'ais.infiniteHits',
14879
15176
  init: function init(initOptions) {
14880
- renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
15177
+ renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
14881
15178
  instantSearchInstance: initOptions.instantSearchInstance
14882
15179
  }), true);
14883
15180
  },
14884
15181
  render: function render(renderOptions) {
14885
15182
  var instantSearchInstance = renderOptions.instantSearchInstance;
14886
15183
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
14887
- renderFn(_objectSpread$p(_objectSpread$p({}, widgetRenderState), {}, {
15184
+ renderFn(_objectSpread$s(_objectSpread$s({}, widgetRenderState), {}, {
14888
15185
  instantSearchInstance: instantSearchInstance
14889
15186
  }), false);
14890
15187
  sendEvent('view:internal', widgetRenderState.currentPageHits);
14891
15188
  },
14892
15189
  getRenderState: function getRenderState(renderState, renderOptions) {
14893
- return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
15190
+ return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
14894
15191
  infiniteHits: this.getWidgetRenderState(renderOptions)
14895
15192
  });
14896
15193
  },
@@ -14986,7 +15283,7 @@
14986
15283
  return stateWithoutPage;
14987
15284
  }
14988
15285
  return stateWithoutPage.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
14989
- return _objectSpread$p(_objectSpread$p({}, acc), {}, _defineProperty$q({}, key, undefined));
15286
+ return _objectSpread$s(_objectSpread$s({}, acc), {}, _defineProperty$t({}, key, undefined));
14990
15287
  }, {}));
14991
15288
  },
14992
15289
  getWidgetUiState: function getWidgetUiState(uiState, _ref9) {
@@ -14997,7 +15294,7 @@
14997
15294
  // because we don't want `page=1` in the URL
14998
15295
  return uiState;
14999
15296
  }
15000
- return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
15297
+ return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
15001
15298
  // The page in the UI state is incremented by one
15002
15299
  // to expose the user value (not `0`).
15003
15300
  page: page + 1
@@ -15024,14 +15321,14 @@
15024
15321
  }
15025
15322
 
15026
15323
  var _excluded$a = ["name", "escapedValue", "path"];
15027
- function _typeof$y(obj) {
15324
+ function _typeof$z(obj) {
15028
15325
  "@babel/helpers - typeof";
15029
15326
 
15030
- return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15327
+ return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15031
15328
  return typeof obj;
15032
15329
  } : function (obj) {
15033
15330
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15034
- }, _typeof$y(obj);
15331
+ }, _typeof$z(obj);
15035
15332
  }
15036
15333
  function _objectWithoutProperties$a(source, excluded) {
15037
15334
  if (source == null) return {};
@@ -15109,7 +15406,7 @@
15109
15406
  function _arrayWithHoles$9(arr) {
15110
15407
  if (Array.isArray(arr)) return arr;
15111
15408
  }
15112
- function ownKeys$q(object, enumerableOnly) {
15409
+ function ownKeys$t(object, enumerableOnly) {
15113
15410
  var keys = Object.keys(object);
15114
15411
  if (Object.getOwnPropertySymbols) {
15115
15412
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15119,19 +15416,19 @@
15119
15416
  }
15120
15417
  return keys;
15121
15418
  }
15122
- function _objectSpread$q(target) {
15419
+ function _objectSpread$t(target) {
15123
15420
  for (var i = 1; i < arguments.length; i++) {
15124
15421
  var source = null != arguments[i] ? arguments[i] : {};
15125
- i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
15126
- _defineProperty$r(target, key, source[key]);
15127
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
15422
+ i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
15423
+ _defineProperty$u(target, key, source[key]);
15424
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
15128
15425
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15129
15426
  });
15130
15427
  }
15131
15428
  return target;
15132
15429
  }
15133
- function _defineProperty$r(obj, key, value) {
15134
- key = _toPropertyKey$r(key);
15430
+ function _defineProperty$u(obj, key, value) {
15431
+ key = _toPropertyKey$u(key);
15135
15432
  if (key in obj) {
15136
15433
  Object.defineProperty(obj, key, {
15137
15434
  value: value,
@@ -15144,16 +15441,16 @@
15144
15441
  }
15145
15442
  return obj;
15146
15443
  }
15147
- function _toPropertyKey$r(arg) {
15148
- var key = _toPrimitive$r(arg, "string");
15149
- return _typeof$y(key) === "symbol" ? key : String(key);
15444
+ function _toPropertyKey$u(arg) {
15445
+ var key = _toPrimitive$u(arg, "string");
15446
+ return _typeof$z(key) === "symbol" ? key : String(key);
15150
15447
  }
15151
- function _toPrimitive$r(input, hint) {
15152
- if (_typeof$y(input) !== "object" || input === null) return input;
15448
+ function _toPrimitive$u(input, hint) {
15449
+ if (_typeof$z(input) !== "object" || input === null) return input;
15153
15450
  var prim = input[Symbol.toPrimitive];
15154
15451
  if (prim !== undefined) {
15155
15452
  var res = prim.call(input, hint || "default");
15156
- if (_typeof$y(res) !== "object") return res;
15453
+ if (_typeof$z(res) !== "object") return res;
15157
15454
  throw new TypeError("@@toPrimitive must return a primitive value.");
15158
15455
  }
15159
15456
  return (hint === "string" ? String : Number)(input);
@@ -15220,13 +15517,13 @@
15220
15517
  $$type: 'ais.menu',
15221
15518
  init: function init(initOptions) {
15222
15519
  var instantSearchInstance = initOptions.instantSearchInstance;
15223
- renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
15520
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
15224
15521
  instantSearchInstance: instantSearchInstance
15225
15522
  }), true);
15226
15523
  },
15227
15524
  render: function render(renderOptions) {
15228
15525
  var instantSearchInstance = renderOptions.instantSearchInstance;
15229
- renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(renderOptions)), {}, {
15526
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
15230
15527
  instantSearchInstance: instantSearchInstance
15231
15528
  }), false);
15232
15529
  },
@@ -15236,8 +15533,8 @@
15236
15533
  return state.removeHierarchicalFacet(attribute).setQueryParameter('maxValuesPerFacet', undefined);
15237
15534
  },
15238
15535
  getRenderState: function getRenderState(renderState, renderOptions) {
15239
- return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
15240
- menu: _objectSpread$q(_objectSpread$q({}, renderState.menu), {}, _defineProperty$r({}, attribute, this.getWidgetRenderState(renderOptions)))
15536
+ return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
15537
+ menu: _objectSpread$t(_objectSpread$t({}, renderState.menu), {}, _defineProperty$u({}, attribute, this.getWidgetRenderState(renderOptions)))
15241
15538
  });
15242
15539
  },
15243
15540
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -15290,7 +15587,7 @@
15290
15587
  value = _ref3.escapedValue,
15291
15588
  path = _ref3.path,
15292
15589
  item = _objectWithoutProperties$a(_ref3, _excluded$a);
15293
- return _objectSpread$q(_objectSpread$q({}, item), {}, {
15590
+ return _objectSpread$t(_objectSpread$t({}, item), {}, {
15294
15591
  label: label,
15295
15592
  value: value
15296
15593
  });
@@ -15318,8 +15615,8 @@
15318
15615
  if (!value) {
15319
15616
  return uiState;
15320
15617
  }
15321
- return _objectSpread$q(_objectSpread$q({}, uiState), {}, {
15322
- menu: _objectSpread$q(_objectSpread$q({}, uiState.menu), {}, _defineProperty$r({}, attribute, value))
15618
+ return _objectSpread$t(_objectSpread$t({}, uiState), {}, {
15619
+ menu: _objectSpread$t(_objectSpread$t({}, uiState.menu), {}, _defineProperty$u({}, attribute, value))
15323
15620
  });
15324
15621
  },
15325
15622
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref5) {
@@ -15337,7 +15634,7 @@
15337
15634
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
15338
15635
  if (!value) {
15339
15636
  return withMaxValuesPerFacet.setQueryParameters({
15340
- hierarchicalFacetsRefinements: _objectSpread$q(_objectSpread$q({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$r({}, attribute, []))
15637
+ hierarchicalFacetsRefinements: _objectSpread$t(_objectSpread$t({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$u({}, attribute, []))
15341
15638
  });
15342
15639
  }
15343
15640
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(attribute, value);
@@ -15350,14 +15647,14 @@
15350
15647
  return useConnector(connectMenu, props, additionalWidgetProperties);
15351
15648
  }
15352
15649
 
15353
- function _typeof$z(obj) {
15650
+ function _typeof$A(obj) {
15354
15651
  "@babel/helpers - typeof";
15355
15652
 
15356
- return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15653
+ return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15357
15654
  return typeof obj;
15358
15655
  } : function (obj) {
15359
15656
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15360
- }, _typeof$z(obj);
15657
+ }, _typeof$A(obj);
15361
15658
  }
15362
15659
  function _createForOfIteratorHelper(o, allowArrayLike) {
15363
15660
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -15459,7 +15756,7 @@
15459
15756
  function _arrayWithHoles$a(arr) {
15460
15757
  if (Array.isArray(arr)) return arr;
15461
15758
  }
15462
- function ownKeys$r(object, enumerableOnly) {
15759
+ function ownKeys$u(object, enumerableOnly) {
15463
15760
  var keys = Object.keys(object);
15464
15761
  if (Object.getOwnPropertySymbols) {
15465
15762
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15469,19 +15766,19 @@
15469
15766
  }
15470
15767
  return keys;
15471
15768
  }
15472
- function _objectSpread$r(target) {
15769
+ function _objectSpread$u(target) {
15473
15770
  for (var i = 1; i < arguments.length; i++) {
15474
15771
  var source = null != arguments[i] ? arguments[i] : {};
15475
- i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
15476
- _defineProperty$s(target, key, source[key]);
15477
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
15772
+ i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
15773
+ _defineProperty$v(target, key, source[key]);
15774
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
15478
15775
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15479
15776
  });
15480
15777
  }
15481
15778
  return target;
15482
15779
  }
15483
- function _defineProperty$s(obj, key, value) {
15484
- key = _toPropertyKey$s(key);
15780
+ function _defineProperty$v(obj, key, value) {
15781
+ key = _toPropertyKey$v(key);
15485
15782
  if (key in obj) {
15486
15783
  Object.defineProperty(obj, key, {
15487
15784
  value: value,
@@ -15494,16 +15791,16 @@
15494
15791
  }
15495
15792
  return obj;
15496
15793
  }
15497
- function _toPropertyKey$s(arg) {
15498
- var key = _toPrimitive$s(arg, "string");
15499
- return _typeof$z(key) === "symbol" ? key : String(key);
15794
+ function _toPropertyKey$v(arg) {
15795
+ var key = _toPrimitive$v(arg, "string");
15796
+ return _typeof$A(key) === "symbol" ? key : String(key);
15500
15797
  }
15501
- function _toPrimitive$s(input, hint) {
15502
- if (_typeof$z(input) !== "object" || input === null) return input;
15798
+ function _toPrimitive$v(input, hint) {
15799
+ if (_typeof$A(input) !== "object" || input === null) return input;
15503
15800
  var prim = input[Symbol.toPrimitive];
15504
15801
  if (prim !== undefined) {
15505
15802
  var res = prim.call(input, hint || "default");
15506
- if (_typeof$z(res) !== "object") return res;
15803
+ if (_typeof$A(res) !== "object") return res;
15507
15804
  throw new TypeError("@@toPrimitive must return a primitive value.");
15508
15805
  }
15509
15806
  return (hint === "string" ? String : Number)(input);
@@ -15565,13 +15862,13 @@
15565
15862
  $$type: $$type$1,
15566
15863
  init: function init(initOptions) {
15567
15864
  var instantSearchInstance = initOptions.instantSearchInstance;
15568
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
15865
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
15569
15866
  instantSearchInstance: instantSearchInstance
15570
15867
  }), true);
15571
15868
  },
15572
15869
  render: function render(renderOptions) {
15573
15870
  var instantSearchInstance = renderOptions.instantSearchInstance;
15574
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(renderOptions)), {}, {
15871
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
15575
15872
  instantSearchInstance: instantSearchInstance
15576
15873
  }), false);
15577
15874
  },
@@ -15585,8 +15882,8 @@
15585
15882
  var values = searchParameters.getNumericRefinements(attribute);
15586
15883
  var equal = values['='] && values['='][0];
15587
15884
  if (equal || equal === 0) {
15588
- return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
15589
- numericMenu: _objectSpread$r(_objectSpread$r({}, uiState.numericMenu), {}, _defineProperty$s({}, attribute, "".concat(values['='])))
15885
+ return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
15886
+ numericMenu: _objectSpread$u(_objectSpread$u({}, uiState.numericMenu), {}, _defineProperty$v({}, attribute, "".concat(values['='])))
15590
15887
  });
15591
15888
  }
15592
15889
  var min = values['>='] && values['>='][0] || '';
@@ -15594,8 +15891,8 @@
15594
15891
  if (min === '' && max === '') {
15595
15892
  return uiState;
15596
15893
  }
15597
- return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
15598
- numericMenu: _objectSpread$r(_objectSpread$r({}, uiState.numericMenu), {}, _defineProperty$s({}, attribute, "".concat(min, ":").concat(max)))
15894
+ return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
15895
+ numericMenu: _objectSpread$u(_objectSpread$u({}, uiState.numericMenu), {}, _defineProperty$v({}, attribute, "".concat(min, ":").concat(max)))
15599
15896
  });
15600
15897
  },
15601
15898
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -15604,7 +15901,7 @@
15604
15901
  var withoutRefinements = searchParameters.clearRefinements(attribute);
15605
15902
  if (!value) {
15606
15903
  return withoutRefinements.setQueryParameters({
15607
- numericRefinements: _objectSpread$r(_objectSpread$r({}, withoutRefinements.numericRefinements), {}, _defineProperty$s({}, attribute, {}))
15904
+ numericRefinements: _objectSpread$u(_objectSpread$u({}, withoutRefinements.numericRefinements), {}, _defineProperty$v({}, attribute, {}))
15608
15905
  });
15609
15906
  }
15610
15907
  var isExact = value.indexOf(':') === -1;
@@ -15620,8 +15917,8 @@
15620
15917
  return withMaxRefinement;
15621
15918
  },
15622
15919
  getRenderState: function getRenderState(renderState, renderOptions) {
15623
- return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
15624
- numericMenu: _objectSpread$r(_objectSpread$r({}, renderState.numericMenu), {}, _defineProperty$s({}, attribute, this.getWidgetRenderState(renderOptions)))
15920
+ return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
15921
+ numericMenu: _objectSpread$u(_objectSpread$u({}, renderState.numericMenu), {}, _defineProperty$v({}, attribute, this.getWidgetRenderState(renderOptions)))
15625
15922
  });
15626
15923
  },
15627
15924
  getWidgetRenderState: function getWidgetRenderState(_ref7) {
@@ -15763,14 +16060,14 @@
15763
16060
  return useConnector(connectNumericMenu, props, additionalWidgetProperties);
15764
16061
  }
15765
16062
 
15766
- function _typeof$A(obj) {
16063
+ function _typeof$B(obj) {
15767
16064
  "@babel/helpers - typeof";
15768
16065
 
15769
- return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16066
+ return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15770
16067
  return typeof obj;
15771
16068
  } : function (obj) {
15772
16069
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15773
- }, _typeof$A(obj);
16070
+ }, _typeof$B(obj);
15774
16071
  }
15775
16072
  function _classCallCheck$2(instance, Constructor) {
15776
16073
  if (!(instance instanceof Constructor)) {
@@ -15783,7 +16080,7 @@
15783
16080
  descriptor.enumerable = descriptor.enumerable || false;
15784
16081
  descriptor.configurable = true;
15785
16082
  if ("value" in descriptor) descriptor.writable = true;
15786
- Object.defineProperty(target, _toPropertyKey$t(descriptor.key), descriptor);
16083
+ Object.defineProperty(target, _toPropertyKey$w(descriptor.key), descriptor);
15787
16084
  }
15788
16085
  }
15789
16086
  function _createClass$2(Constructor, protoProps, staticProps) {
@@ -15794,8 +16091,8 @@
15794
16091
  });
15795
16092
  return Constructor;
15796
16093
  }
15797
- function _defineProperty$t(obj, key, value) {
15798
- key = _toPropertyKey$t(key);
16094
+ function _defineProperty$w(obj, key, value) {
16095
+ key = _toPropertyKey$w(key);
15799
16096
  if (key in obj) {
15800
16097
  Object.defineProperty(obj, key, {
15801
16098
  value: value,
@@ -15808,16 +16105,16 @@
15808
16105
  }
15809
16106
  return obj;
15810
16107
  }
15811
- function _toPropertyKey$t(arg) {
15812
- var key = _toPrimitive$t(arg, "string");
15813
- return _typeof$A(key) === "symbol" ? key : String(key);
16108
+ function _toPropertyKey$w(arg) {
16109
+ var key = _toPrimitive$w(arg, "string");
16110
+ return _typeof$B(key) === "symbol" ? key : String(key);
15814
16111
  }
15815
- function _toPrimitive$t(input, hint) {
15816
- if (_typeof$A(input) !== "object" || input === null) return input;
16112
+ function _toPrimitive$w(input, hint) {
16113
+ if (_typeof$B(input) !== "object" || input === null) return input;
15817
16114
  var prim = input[Symbol.toPrimitive];
15818
16115
  if (prim !== undefined) {
15819
16116
  var res = prim.call(input, hint || "default");
15820
- if (_typeof$A(res) !== "object") return res;
16117
+ if (_typeof$B(res) !== "object") return res;
15821
16118
  throw new TypeError("@@toPrimitive must return a primitive value.");
15822
16119
  }
15823
16120
  return (hint === "string" ? String : Number)(input);
@@ -15825,9 +16122,9 @@
15825
16122
  var Paginator = /*#__PURE__*/function () {
15826
16123
  function Paginator(params) {
15827
16124
  _classCallCheck$2(this, Paginator);
15828
- _defineProperty$t(this, "currentPage", void 0);
15829
- _defineProperty$t(this, "total", void 0);
15830
- _defineProperty$t(this, "padding", void 0);
16125
+ _defineProperty$w(this, "currentPage", void 0);
16126
+ _defineProperty$w(this, "total", void 0);
16127
+ _defineProperty$w(this, "padding", void 0);
15831
16128
  this.currentPage = params.currentPage;
15832
16129
  this.total = params.total;
15833
16130
  this.padding = params.padding;
@@ -15884,16 +16181,16 @@
15884
16181
  return Paginator;
15885
16182
  }();
15886
16183
 
15887
- function _typeof$B(obj) {
16184
+ function _typeof$C(obj) {
15888
16185
  "@babel/helpers - typeof";
15889
16186
 
15890
- return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16187
+ return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15891
16188
  return typeof obj;
15892
16189
  } : function (obj) {
15893
16190
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15894
- }, _typeof$B(obj);
16191
+ }, _typeof$C(obj);
15895
16192
  }
15896
- function ownKeys$s(object, enumerableOnly) {
16193
+ function ownKeys$v(object, enumerableOnly) {
15897
16194
  var keys = Object.keys(object);
15898
16195
  if (Object.getOwnPropertySymbols) {
15899
16196
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15903,19 +16200,19 @@
15903
16200
  }
15904
16201
  return keys;
15905
16202
  }
15906
- function _objectSpread$s(target) {
16203
+ function _objectSpread$v(target) {
15907
16204
  for (var i = 1; i < arguments.length; i++) {
15908
16205
  var source = null != arguments[i] ? arguments[i] : {};
15909
- i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
15910
- _defineProperty$u(target, key, source[key]);
15911
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
16206
+ i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16207
+ _defineProperty$x(target, key, source[key]);
16208
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
15912
16209
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15913
16210
  });
15914
16211
  }
15915
16212
  return target;
15916
16213
  }
15917
- function _defineProperty$u(obj, key, value) {
15918
- key = _toPropertyKey$u(key);
16214
+ function _defineProperty$x(obj, key, value) {
16215
+ key = _toPropertyKey$x(key);
15919
16216
  if (key in obj) {
15920
16217
  Object.defineProperty(obj, key, {
15921
16218
  value: value,
@@ -15928,16 +16225,16 @@
15928
16225
  }
15929
16226
  return obj;
15930
16227
  }
15931
- function _toPropertyKey$u(arg) {
15932
- var key = _toPrimitive$u(arg, "string");
15933
- return _typeof$B(key) === "symbol" ? key : String(key);
16228
+ function _toPropertyKey$x(arg) {
16229
+ var key = _toPrimitive$x(arg, "string");
16230
+ return _typeof$C(key) === "symbol" ? key : String(key);
15934
16231
  }
15935
- function _toPrimitive$u(input, hint) {
15936
- if (_typeof$B(input) !== "object" || input === null) return input;
16232
+ function _toPrimitive$x(input, hint) {
16233
+ if (_typeof$C(input) !== "object" || input === null) return input;
15937
16234
  var prim = input[Symbol.toPrimitive];
15938
16235
  if (prim !== undefined) {
15939
16236
  var res = prim.call(input, hint || "default");
15940
- if (_typeof$B(res) !== "object") return res;
16237
+ if (_typeof$C(res) !== "object") return res;
15941
16238
  throw new TypeError("@@toPrimitive must return a primitive value.");
15942
16239
  }
15943
16240
  return (hint === "string" ? String : Number)(input);
@@ -15975,13 +16272,13 @@
15975
16272
  $$type: 'ais.pagination',
15976
16273
  init: function init(initOptions) {
15977
16274
  var instantSearchInstance = initOptions.instantSearchInstance;
15978
- renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
16275
+ renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(initOptions)), {}, {
15979
16276
  instantSearchInstance: instantSearchInstance
15980
16277
  }), true);
15981
16278
  },
15982
16279
  render: function render(renderOptions) {
15983
16280
  var instantSearchInstance = renderOptions.instantSearchInstance;
15984
- renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(renderOptions)), {}, {
16281
+ renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
15985
16282
  instantSearchInstance: instantSearchInstance
15986
16283
  }), false);
15987
16284
  },
@@ -15996,7 +16293,7 @@
15996
16293
  if (!page) {
15997
16294
  return uiState;
15998
16295
  }
15999
- return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
16296
+ return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
16000
16297
  page: page + 1
16001
16298
  });
16002
16299
  },
@@ -16019,7 +16316,7 @@
16019
16316
  if (!connectorState.createURL) {
16020
16317
  connectorState.createURL = function (page) {
16021
16318
  return createURL(function (uiState) {
16022
- return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
16319
+ return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
16023
16320
  page: page + 1
16024
16321
  });
16025
16322
  });
@@ -16045,7 +16342,7 @@
16045
16342
  };
16046
16343
  },
16047
16344
  getRenderState: function getRenderState(renderState, renderOptions) {
16048
- return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
16345
+ return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
16049
16346
  pagination: this.getWidgetRenderState(renderOptions)
16050
16347
  });
16051
16348
  }
@@ -16072,16 +16369,16 @@
16072
16369
  };
16073
16370
  }
16074
16371
 
16075
- function _typeof$C(obj) {
16372
+ function _typeof$D(obj) {
16076
16373
  "@babel/helpers - typeof";
16077
16374
 
16078
- return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16375
+ return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16079
16376
  return typeof obj;
16080
16377
  } : function (obj) {
16081
16378
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16082
- }, _typeof$C(obj);
16379
+ }, _typeof$D(obj);
16083
16380
  }
16084
- function ownKeys$t(object, enumerableOnly) {
16381
+ function ownKeys$w(object, enumerableOnly) {
16085
16382
  var keys = Object.keys(object);
16086
16383
  if (Object.getOwnPropertySymbols) {
16087
16384
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16091,19 +16388,19 @@
16091
16388
  }
16092
16389
  return keys;
16093
16390
  }
16094
- function _objectSpread$t(target) {
16391
+ function _objectSpread$w(target) {
16095
16392
  for (var i = 1; i < arguments.length; i++) {
16096
- var source = null != arguments[i] ? arguments[i] : {};
16097
- i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
16098
- _defineProperty$v(target, key, source[key]);
16099
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
16393
+ var source = null != arguments[i] ? arguments[i] : {};
16394
+ i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
16395
+ _defineProperty$y(target, key, source[key]);
16396
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
16100
16397
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16101
16398
  });
16102
16399
  }
16103
16400
  return target;
16104
16401
  }
16105
- function _defineProperty$v(obj, key, value) {
16106
- key = _toPropertyKey$v(key);
16402
+ function _defineProperty$y(obj, key, value) {
16403
+ key = _toPropertyKey$y(key);
16107
16404
  if (key in obj) {
16108
16405
  Object.defineProperty(obj, key, {
16109
16406
  value: value,
@@ -16116,16 +16413,16 @@
16116
16413
  }
16117
16414
  return obj;
16118
16415
  }
16119
- function _toPropertyKey$v(arg) {
16120
- var key = _toPrimitive$v(arg, "string");
16121
- return _typeof$C(key) === "symbol" ? key : String(key);
16416
+ function _toPropertyKey$y(arg) {
16417
+ var key = _toPrimitive$y(arg, "string");
16418
+ return _typeof$D(key) === "symbol" ? key : String(key);
16122
16419
  }
16123
- function _toPrimitive$v(input, hint) {
16124
- if (_typeof$C(input) !== "object" || input === null) return input;
16420
+ function _toPrimitive$y(input, hint) {
16421
+ if (_typeof$D(input) !== "object" || input === null) return input;
16125
16422
  var prim = input[Symbol.toPrimitive];
16126
16423
  if (prim !== undefined) {
16127
16424
  var res = prim.call(input, hint || "default");
16128
- if (_typeof$C(res) !== "object") return res;
16425
+ if (_typeof$D(res) !== "object") return res;
16129
16426
  throw new TypeError("@@toPrimitive must return a primitive value.");
16130
16427
  }
16131
16428
  return (hint === "string" ? String : Number)(input);
@@ -16205,7 +16502,7 @@
16205
16502
  var nextRuleContexts = [].concat(_toConsumableArray$7(initialRuleContexts), _toConsumableArray$7(newRuleContexts));
16206
16503
  var ruleContexts = transformRuleContexts(nextRuleContexts).slice(0, 10);
16207
16504
  if (!isEqual(previousRuleContexts, ruleContexts)) {
16208
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$t(_objectSpread$t({}, sharedHelperState), {}, {
16505
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$w(_objectSpread$w({}, sharedHelperState), {}, {
16209
16506
  ruleContexts: ruleContexts
16210
16507
  }));
16211
16508
  }
@@ -16264,13 +16561,13 @@
16264
16561
  // any `ruleContexts` needed based on the `trackedFilters`.
16265
16562
  helper.on('change', onHelperChange);
16266
16563
  }
16267
- _render(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
16564
+ _render(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
16268
16565
  instantSearchInstance: instantSearchInstance
16269
16566
  }), true);
16270
16567
  },
16271
16568
  render: function render(renderOptions) {
16272
16569
  var instantSearchInstance = renderOptions.instantSearchInstance;
16273
- _render(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
16570
+ _render(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
16274
16571
  instantSearchInstance: instantSearchInstance
16275
16572
  }), false);
16276
16573
  },
@@ -16288,7 +16585,7 @@
16288
16585
  };
16289
16586
  },
16290
16587
  getRenderState: function getRenderState(renderState, renderOptions) {
16291
- return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
16588
+ return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
16292
16589
  queryRules: this.getWidgetRenderState(renderOptions)
16293
16590
  });
16294
16591
  },
@@ -16310,16 +16607,16 @@
16310
16607
  return useConnector(connectQueryRules, props, additionalWidgetProperties);
16311
16608
  }
16312
16609
 
16313
- function _typeof$D(obj) {
16610
+ function _typeof$E(obj) {
16314
16611
  "@babel/helpers - typeof";
16315
16612
 
16316
- return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16613
+ return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16317
16614
  return typeof obj;
16318
16615
  } : function (obj) {
16319
16616
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16320
- }, _typeof$D(obj);
16617
+ }, _typeof$E(obj);
16321
16618
  }
16322
- function ownKeys$u(object, enumerableOnly) {
16619
+ function ownKeys$x(object, enumerableOnly) {
16323
16620
  var keys = Object.keys(object);
16324
16621
  if (Object.getOwnPropertySymbols) {
16325
16622
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16329,19 +16626,19 @@
16329
16626
  }
16330
16627
  return keys;
16331
16628
  }
16332
- function _objectSpread$u(target) {
16629
+ function _objectSpread$x(target) {
16333
16630
  for (var i = 1; i < arguments.length; i++) {
16334
16631
  var source = null != arguments[i] ? arguments[i] : {};
16335
- i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
16336
- _defineProperty$w(target, key, source[key]);
16337
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
16632
+ i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
16633
+ _defineProperty$z(target, key, source[key]);
16634
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
16338
16635
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16339
16636
  });
16340
16637
  }
16341
16638
  return target;
16342
16639
  }
16343
- function _defineProperty$w(obj, key, value) {
16344
- key = _toPropertyKey$w(key);
16640
+ function _defineProperty$z(obj, key, value) {
16641
+ key = _toPropertyKey$z(key);
16345
16642
  if (key in obj) {
16346
16643
  Object.defineProperty(obj, key, {
16347
16644
  value: value,
@@ -16354,16 +16651,16 @@
16354
16651
  }
16355
16652
  return obj;
16356
16653
  }
16357
- function _toPropertyKey$w(arg) {
16358
- var key = _toPrimitive$w(arg, "string");
16359
- return _typeof$D(key) === "symbol" ? key : String(key);
16654
+ function _toPropertyKey$z(arg) {
16655
+ var key = _toPrimitive$z(arg, "string");
16656
+ return _typeof$E(key) === "symbol" ? key : String(key);
16360
16657
  }
16361
- function _toPrimitive$w(input, hint) {
16362
- if (_typeof$D(input) !== "object" || input === null) return input;
16658
+ function _toPrimitive$z(input, hint) {
16659
+ if (_typeof$E(input) !== "object" || input === null) return input;
16363
16660
  var prim = input[Symbol.toPrimitive];
16364
16661
  if (prim !== undefined) {
16365
16662
  var res = prim.call(input, hint || "default");
16366
- if (_typeof$D(res) !== "object") return res;
16663
+ if (_typeof$E(res) !== "object") return res;
16367
16664
  throw new TypeError("@@toPrimitive must return a primitive value.");
16368
16665
  }
16369
16666
  return (hint === "string" ? String : Number)(input);
@@ -16588,18 +16885,18 @@
16588
16885
  return {
16589
16886
  $$type: $$type$2,
16590
16887
  init: function init(initOptions) {
16591
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
16888
+ renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(initOptions)), {}, {
16592
16889
  instantSearchInstance: initOptions.instantSearchInstance
16593
16890
  }), true);
16594
16891
  },
16595
16892
  render: function render(renderOptions) {
16596
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
16893
+ renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(renderOptions)), {}, {
16597
16894
  instantSearchInstance: renderOptions.instantSearchInstance
16598
16895
  }), false);
16599
16896
  },
16600
16897
  getRenderState: function getRenderState(renderState, renderOptions) {
16601
- return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
16602
- range: _objectSpread$u(_objectSpread$u({}, renderState.range), {}, _defineProperty$w({}, attribute, this.getWidgetRenderState(renderOptions)))
16898
+ return _objectSpread$x(_objectSpread$x({}, renderState), {}, {
16899
+ range: _objectSpread$x(_objectSpread$x({}, renderState.range), {}, _defineProperty$z({}, attribute, this.getWidgetRenderState(renderOptions)))
16603
16900
  });
16604
16901
  },
16605
16902
  getWidgetRenderState: function getWidgetRenderState(_ref13) {
@@ -16634,7 +16931,7 @@
16634
16931
  format: rangeFormatter,
16635
16932
  range: currentRange,
16636
16933
  sendEvent: createSendEvent(instantSearchInstance),
16637
- widgetParams: _objectSpread$u(_objectSpread$u({}, widgetParams), {}, {
16934
+ widgetParams: _objectSpread$x(_objectSpread$x({}, widgetParams), {}, {
16638
16935
  precision: precision
16639
16936
  }),
16640
16937
  start: start
@@ -16655,14 +16952,14 @@
16655
16952
  if (min.length === 0 && max.length === 0) {
16656
16953
  return uiState;
16657
16954
  }
16658
- return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
16659
- range: _objectSpread$u(_objectSpread$u({}, uiState.range), {}, _defineProperty$w({}, attribute, "".concat(min, ":").concat(max)))
16955
+ return _objectSpread$x(_objectSpread$x({}, uiState), {}, {
16956
+ range: _objectSpread$x(_objectSpread$x({}, uiState.range), {}, _defineProperty$z({}, attribute, "".concat(min, ":").concat(max)))
16660
16957
  });
16661
16958
  },
16662
16959
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref16) {
16663
16960
  var uiState = _ref16.uiState;
16664
16961
  var widgetSearchParameters = searchParameters.addDisjunctiveFacet(attribute).setQueryParameters({
16665
- numericRefinements: _objectSpread$u(_objectSpread$u({}, searchParameters.numericRefinements), {}, _defineProperty$w({}, attribute, {}))
16962
+ numericRefinements: _objectSpread$x(_objectSpread$x({}, searchParameters.numericRefinements), {}, _defineProperty$z({}, attribute, {}))
16666
16963
  });
16667
16964
  if (isFiniteNumber(minBound)) {
16668
16965
  widgetSearchParameters = widgetSearchParameters.addNumericRefinement(attribute, '>=', minBound);
@@ -16696,18 +16993,18 @@
16696
16993
  return useConnector(connectRange, props, additionalWidgetProperties);
16697
16994
  }
16698
16995
 
16699
- function _typeof$E(obj) {
16996
+ function _typeof$F(obj) {
16700
16997
  "@babel/helpers - typeof";
16701
16998
 
16702
- return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16999
+ return _typeof$F = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16703
17000
  return typeof obj;
16704
17001
  } : function (obj) {
16705
17002
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16706
- }, _typeof$E(obj);
17003
+ }, _typeof$F(obj);
16707
17004
  }
16708
17005
  var _excluded$b = ["name", "escapedValue"],
16709
17006
  _excluded2$2 = ["escapedValue", "value"];
16710
- function ownKeys$v(object, enumerableOnly) {
17007
+ function ownKeys$y(object, enumerableOnly) {
16711
17008
  var keys = Object.keys(object);
16712
17009
  if (Object.getOwnPropertySymbols) {
16713
17010
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16717,19 +17014,19 @@
16717
17014
  }
16718
17015
  return keys;
16719
17016
  }
16720
- function _objectSpread$v(target) {
17017
+ function _objectSpread$y(target) {
16721
17018
  for (var i = 1; i < arguments.length; i++) {
16722
17019
  var source = null != arguments[i] ? arguments[i] : {};
16723
- i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16724
- _defineProperty$x(target, key, source[key]);
16725
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
17020
+ i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17021
+ _defineProperty$A(target, key, source[key]);
17022
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
16726
17023
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16727
17024
  });
16728
17025
  }
16729
17026
  return target;
16730
17027
  }
16731
- function _defineProperty$x(obj, key, value) {
16732
- key = _toPropertyKey$x(key);
17028
+ function _defineProperty$A(obj, key, value) {
17029
+ key = _toPropertyKey$A(key);
16733
17030
  if (key in obj) {
16734
17031
  Object.defineProperty(obj, key, {
16735
17032
  value: value,
@@ -16742,16 +17039,16 @@
16742
17039
  }
16743
17040
  return obj;
16744
17041
  }
16745
- function _toPropertyKey$x(arg) {
16746
- var key = _toPrimitive$x(arg, "string");
16747
- return _typeof$E(key) === "symbol" ? key : String(key);
17042
+ function _toPropertyKey$A(arg) {
17043
+ var key = _toPrimitive$A(arg, "string");
17044
+ return _typeof$F(key) === "symbol" ? key : String(key);
16748
17045
  }
16749
- function _toPrimitive$x(input, hint) {
16750
- if (_typeof$E(input) !== "object" || input === null) return input;
17046
+ function _toPrimitive$A(input, hint) {
17047
+ if (_typeof$F(input) !== "object" || input === null) return input;
16751
17048
  var prim = input[Symbol.toPrimitive];
16752
17049
  if (prim !== undefined) {
16753
17050
  var res = prim.call(input, hint || "default");
16754
- if (_typeof$E(res) !== "object") return res;
17051
+ if (_typeof$F(res) !== "object") return res;
16755
17052
  throw new TypeError("@@toPrimitive must return a primitive value.");
16756
17053
  }
16757
17054
  return (hint === "string" ? String : Number)(input);
@@ -16835,7 +17132,7 @@
16835
17132
  var label = _ref2.name,
16836
17133
  value = _ref2.escapedValue,
16837
17134
  item = _objectWithoutProperties$b(_ref2, _excluded$b);
16838
- return _objectSpread$v(_objectSpread$v({}, item), {}, {
17135
+ return _objectSpread$y(_objectSpread$y({}, item), {}, {
16839
17136
  value: value,
16840
17137
  label: label,
16841
17138
  highlighted: label
@@ -16872,7 +17169,7 @@
16872
17169
  searchResults = renderOptions.results;
16873
17170
  if (query === '' && lastItemsFromMainSearch) {
16874
17171
  // render with previous data from the helper.
16875
- renderFn(_objectSpread$v(_objectSpread$v({}, widget.getWidgetRenderState(_objectSpread$v(_objectSpread$v({}, renderOptions), {}, {
17172
+ renderFn(_objectSpread$y(_objectSpread$y({}, widget.getWidgetRenderState(_objectSpread$y(_objectSpread$y({}, renderOptions), {}, {
16876
17173
  results: lastResultsFromMainSearch
16877
17174
  }))), {}, {
16878
17175
  instantSearchInstance: instantSearchInstance
@@ -16892,14 +17189,14 @@
16892
17189
  var escapedValue = _ref3.escapedValue,
16893
17190
  value = _ref3.value,
16894
17191
  item = _objectWithoutProperties$b(_ref3, _excluded2$2);
16895
- return _objectSpread$v(_objectSpread$v({}, item), {}, {
17192
+ return _objectSpread$y(_objectSpread$y({}, item), {}, {
16896
17193
  value: escapedValue,
16897
17194
  label: value
16898
17195
  });
16899
17196
  }), {
16900
17197
  results: searchResults
16901
17198
  });
16902
- renderFn(_objectSpread$v(_objectSpread$v({}, widget.getWidgetRenderState(_objectSpread$v(_objectSpread$v({}, renderOptions), {}, {
17199
+ renderFn(_objectSpread$y(_objectSpread$y({}, widget.getWidgetRenderState(_objectSpread$y(_objectSpread$y({}, renderOptions), {}, {
16903
17200
  results: lastResultsFromMainSearch
16904
17201
  }))), {}, {
16905
17202
  items: normalizedFacetValues,
@@ -16916,18 +17213,18 @@
16916
17213
  return {
16917
17214
  $$type: 'ais.refinementList',
16918
17215
  init: function init(initOptions) {
16919
- renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(initOptions)), {}, {
17216
+ renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(initOptions)), {}, {
16920
17217
  instantSearchInstance: initOptions.instantSearchInstance
16921
17218
  }), true);
16922
17219
  },
16923
17220
  render: function render(renderOptions) {
16924
- renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
17221
+ renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(renderOptions)), {}, {
16925
17222
  instantSearchInstance: renderOptions.instantSearchInstance
16926
17223
  }), false);
16927
17224
  },
16928
17225
  getRenderState: function getRenderState(renderState, renderOptions) {
16929
- return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
16930
- refinementList: _objectSpread$v(_objectSpread$v({}, renderState.refinementList), {}, _defineProperty$x({}, attribute, this.getWidgetRenderState(renderOptions)))
17226
+ return _objectSpread$y(_objectSpread$y({}, renderState), {}, {
17227
+ refinementList: _objectSpread$y(_objectSpread$y({}, renderState.refinementList), {}, _defineProperty$A({}, attribute, this.getWidgetRenderState(renderOptions)))
16931
17228
  });
16932
17229
  },
16933
17230
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -17020,8 +17317,8 @@
17020
17317
  if (!values.length) {
17021
17318
  return uiState;
17022
17319
  }
17023
- return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
17024
- refinementList: _objectSpread$v(_objectSpread$v({}, uiState.refinementList), {}, _defineProperty$x({}, attribute, values))
17320
+ return _objectSpread$y(_objectSpread$y({}, uiState), {}, {
17321
+ refinementList: _objectSpread$y(_objectSpread$y({}, uiState.refinementList), {}, _defineProperty$A({}, attribute, values))
17025
17322
  });
17026
17323
  },
17027
17324
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -17041,7 +17338,7 @@
17041
17338
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
17042
17339
  if (!values) {
17043
17340
  var key = isDisjunctive ? 'disjunctiveFacetsRefinements' : 'facetsRefinements';
17044
- return withMaxValuesPerFacet.setQueryParameters(_defineProperty$x({}, key, _objectSpread$v(_objectSpread$v({}, withMaxValuesPerFacet[key]), {}, _defineProperty$x({}, attribute, []))));
17341
+ return withMaxValuesPerFacet.setQueryParameters(_defineProperty$A({}, key, _objectSpread$y(_objectSpread$y({}, withMaxValuesPerFacet[key]), {}, _defineProperty$A({}, attribute, []))));
17045
17342
  }
17046
17343
  return values.reduce(function (parameters, value) {
17047
17344
  return isDisjunctive ? parameters.addDisjunctiveFacetRefinement(attribute, value) : parameters.addFacetRefinement(attribute, value);
@@ -17055,16 +17352,16 @@
17055
17352
  return useConnector(connectRefinementList, props, additionalWidgetProperties);
17056
17353
  }
17057
17354
 
17058
- function _typeof$F(obj) {
17355
+ function _typeof$G(obj) {
17059
17356
  "@babel/helpers - typeof";
17060
17357
 
17061
- return _typeof$F = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17358
+ return _typeof$G = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17062
17359
  return typeof obj;
17063
17360
  } : function (obj) {
17064
17361
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17065
- }, _typeof$F(obj);
17362
+ }, _typeof$G(obj);
17066
17363
  }
17067
- function ownKeys$w(object, enumerableOnly) {
17364
+ function ownKeys$z(object, enumerableOnly) {
17068
17365
  var keys = Object.keys(object);
17069
17366
  if (Object.getOwnPropertySymbols) {
17070
17367
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17074,19 +17371,19 @@
17074
17371
  }
17075
17372
  return keys;
17076
17373
  }
17077
- function _objectSpread$w(target) {
17374
+ function _objectSpread$z(target) {
17078
17375
  for (var i = 1; i < arguments.length; i++) {
17079
17376
  var source = null != arguments[i] ? arguments[i] : {};
17080
- i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
17081
- _defineProperty$y(target, key, source[key]);
17082
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
17377
+ i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) {
17378
+ _defineProperty$B(target, key, source[key]);
17379
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) {
17083
17380
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17084
17381
  });
17085
17382
  }
17086
17383
  return target;
17087
17384
  }
17088
- function _defineProperty$y(obj, key, value) {
17089
- key = _toPropertyKey$y(key);
17385
+ function _defineProperty$B(obj, key, value) {
17386
+ key = _toPropertyKey$B(key);
17090
17387
  if (key in obj) {
17091
17388
  Object.defineProperty(obj, key, {
17092
17389
  value: value,
@@ -17099,16 +17396,16 @@
17099
17396
  }
17100
17397
  return obj;
17101
17398
  }
17102
- function _toPropertyKey$y(arg) {
17103
- var key = _toPrimitive$y(arg, "string");
17104
- return _typeof$F(key) === "symbol" ? key : String(key);
17399
+ function _toPropertyKey$B(arg) {
17400
+ var key = _toPrimitive$B(arg, "string");
17401
+ return _typeof$G(key) === "symbol" ? key : String(key);
17105
17402
  }
17106
- function _toPrimitive$y(input, hint) {
17107
- if (_typeof$F(input) !== "object" || input === null) return input;
17403
+ function _toPrimitive$B(input, hint) {
17404
+ if (_typeof$G(input) !== "object" || input === null) return input;
17108
17405
  var prim = input[Symbol.toPrimitive];
17109
17406
  if (prim !== undefined) {
17110
17407
  var res = prim.call(input, hint || "default");
17111
- if (_typeof$F(res) !== "object") return res;
17408
+ if (_typeof$G(res) !== "object") return res;
17112
17409
  throw new TypeError("@@toPrimitive must return a primitive value.");
17113
17410
  }
17114
17411
  return (hint === "string" ? String : Number)(input);
@@ -17150,13 +17447,13 @@
17150
17447
  $$type: 'ais.searchBox',
17151
17448
  init: function init(initOptions) {
17152
17449
  var instantSearchInstance = initOptions.instantSearchInstance;
17153
- renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
17450
+ renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(initOptions)), {}, {
17154
17451
  instantSearchInstance: instantSearchInstance
17155
17452
  }), true);
17156
17453
  },
17157
17454
  render: function render(renderOptions) {
17158
17455
  var instantSearchInstance = renderOptions.instantSearchInstance;
17159
- renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
17456
+ renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(renderOptions)), {}, {
17160
17457
  instantSearchInstance: instantSearchInstance
17161
17458
  }), false);
17162
17459
  },
@@ -17166,7 +17463,7 @@
17166
17463
  return state.setQueryParameter('query', undefined);
17167
17464
  },
17168
17465
  getRenderState: function getRenderState(renderState, renderOptions) {
17169
- return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
17466
+ return _objectSpread$z(_objectSpread$z({}, renderState), {}, {
17170
17467
  searchBox: this.getWidgetRenderState(renderOptions)
17171
17468
  });
17172
17469
  },
@@ -17198,7 +17495,7 @@
17198
17495
  if (query === '' || uiState && uiState.query === query) {
17199
17496
  return uiState;
17200
17497
  }
17201
- return _objectSpread$w(_objectSpread$w({}, uiState), {}, {
17498
+ return _objectSpread$z(_objectSpread$z({}, uiState), {}, {
17202
17499
  query: query
17203
17500
  });
17204
17501
  },
@@ -17214,16 +17511,16 @@
17214
17511
  return useConnector(connectSearchBox, props, additionalWidgetProperties);
17215
17512
  }
17216
17513
 
17217
- function _typeof$G(obj) {
17514
+ function _typeof$H(obj) {
17218
17515
  "@babel/helpers - typeof";
17219
17516
 
17220
- return _typeof$G = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17517
+ return _typeof$H = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17221
17518
  return typeof obj;
17222
17519
  } : function (obj) {
17223
17520
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17224
- }, _typeof$G(obj);
17521
+ }, _typeof$H(obj);
17225
17522
  }
17226
- function ownKeys$x(object, enumerableOnly) {
17523
+ function ownKeys$A(object, enumerableOnly) {
17227
17524
  var keys = Object.keys(object);
17228
17525
  if (Object.getOwnPropertySymbols) {
17229
17526
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17233,19 +17530,19 @@
17233
17530
  }
17234
17531
  return keys;
17235
17532
  }
17236
- function _objectSpread$x(target) {
17533
+ function _objectSpread$A(target) {
17237
17534
  for (var i = 1; i < arguments.length; i++) {
17238
17535
  var source = null != arguments[i] ? arguments[i] : {};
17239
- i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
17240
- _defineProperty$z(target, key, source[key]);
17241
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
17536
+ i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) {
17537
+ _defineProperty$C(target, key, source[key]);
17538
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) {
17242
17539
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17243
17540
  });
17244
17541
  }
17245
17542
  return target;
17246
17543
  }
17247
- function _defineProperty$z(obj, key, value) {
17248
- key = _toPropertyKey$z(key);
17544
+ function _defineProperty$C(obj, key, value) {
17545
+ key = _toPropertyKey$C(key);
17249
17546
  if (key in obj) {
17250
17547
  Object.defineProperty(obj, key, {
17251
17548
  value: value,
@@ -17258,16 +17555,16 @@
17258
17555
  }
17259
17556
  return obj;
17260
17557
  }
17261
- function _toPropertyKey$z(arg) {
17262
- var key = _toPrimitive$z(arg, "string");
17263
- return _typeof$G(key) === "symbol" ? key : String(key);
17558
+ function _toPropertyKey$C(arg) {
17559
+ var key = _toPrimitive$C(arg, "string");
17560
+ return _typeof$H(key) === "symbol" ? key : String(key);
17264
17561
  }
17265
- function _toPrimitive$z(input, hint) {
17266
- if (_typeof$G(input) !== "object" || input === null) return input;
17562
+ function _toPrimitive$C(input, hint) {
17563
+ if (_typeof$H(input) !== "object" || input === null) return input;
17267
17564
  var prim = input[Symbol.toPrimitive];
17268
17565
  if (prim !== undefined) {
17269
17566
  var res = prim.call(input, hint || "default");
17270
- if (_typeof$G(res) !== "object") return res;
17567
+ if (_typeof$H(res) !== "object") return res;
17271
17568
  throw new TypeError("@@toPrimitive must return a primitive value.");
17272
17569
  }
17273
17570
  return (hint === "string" ? String : Number)(input);
@@ -17306,13 +17603,13 @@
17306
17603
  var isCurrentIndexInItems = find$1(items, function (item) {
17307
17604
  return item.value === currentIndex;
17308
17605
  });
17309
- renderFn(_objectSpread$x(_objectSpread$x({}, widgetRenderState), {}, {
17606
+ renderFn(_objectSpread$A(_objectSpread$A({}, widgetRenderState), {}, {
17310
17607
  instantSearchInstance: instantSearchInstance
17311
17608
  }), true);
17312
17609
  },
17313
17610
  render: function render(renderOptions) {
17314
17611
  var instantSearchInstance = renderOptions.instantSearchInstance;
17315
- renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(renderOptions)), {}, {
17612
+ renderFn(_objectSpread$A(_objectSpread$A({}, this.getWidgetRenderState(renderOptions)), {}, {
17316
17613
  instantSearchInstance: instantSearchInstance
17317
17614
  }), false);
17318
17615
  },
@@ -17322,7 +17619,7 @@
17322
17619
  return connectorState.initialIndex ? state.setIndex(connectorState.initialIndex) : state;
17323
17620
  },
17324
17621
  getRenderState: function getRenderState(renderState, renderOptions) {
17325
- return _objectSpread$x(_objectSpread$x({}, renderState), {}, {
17622
+ return _objectSpread$A(_objectSpread$A({}, renderState), {}, {
17326
17623
  sortBy: this.getWidgetRenderState(renderOptions)
17327
17624
  });
17328
17625
  },
@@ -17354,7 +17651,7 @@
17354
17651
  getWidgetUiState: function getWidgetUiState(uiState, _ref4) {
17355
17652
  var searchParameters = _ref4.searchParameters;
17356
17653
  var currentIndex = searchParameters.index;
17357
- return _objectSpread$x(_objectSpread$x({}, uiState), {}, {
17654
+ return _objectSpread$A(_objectSpread$A({}, uiState), {}, {
17358
17655
  sortBy: currentIndex !== connectorState.initialIndex ? currentIndex : undefined
17359
17656
  });
17360
17657
  },
@@ -17370,16 +17667,16 @@
17370
17667
  return useConnector(connectSortBy, props, additionalWidgetProperties);
17371
17668
  }
17372
17669
 
17373
- function _typeof$H(obj) {
17670
+ function _typeof$I(obj) {
17374
17671
  "@babel/helpers - typeof";
17375
17672
 
17376
- return _typeof$H = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17673
+ return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17377
17674
  return typeof obj;
17378
17675
  } : function (obj) {
17379
17676
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17380
- }, _typeof$H(obj);
17677
+ }, _typeof$I(obj);
17381
17678
  }
17382
- function ownKeys$y(object, enumerableOnly) {
17679
+ function ownKeys$B(object, enumerableOnly) {
17383
17680
  var keys = Object.keys(object);
17384
17681
  if (Object.getOwnPropertySymbols) {
17385
17682
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17389,19 +17686,19 @@
17389
17686
  }
17390
17687
  return keys;
17391
17688
  }
17392
- function _objectSpread$y(target) {
17689
+ function _objectSpread$B(target) {
17393
17690
  for (var i = 1; i < arguments.length; i++) {
17394
17691
  var source = null != arguments[i] ? arguments[i] : {};
17395
- i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17396
- _defineProperty$A(target, key, source[key]);
17397
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
17692
+ i % 2 ? ownKeys$B(Object(source), !0).forEach(function (key) {
17693
+ _defineProperty$D(target, key, source[key]);
17694
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$B(Object(source)).forEach(function (key) {
17398
17695
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17399
17696
  });
17400
17697
  }
17401
17698
  return target;
17402
17699
  }
17403
- function _defineProperty$A(obj, key, value) {
17404
- key = _toPropertyKey$A(key);
17700
+ function _defineProperty$D(obj, key, value) {
17701
+ key = _toPropertyKey$D(key);
17405
17702
  if (key in obj) {
17406
17703
  Object.defineProperty(obj, key, {
17407
17704
  value: value,
@@ -17414,16 +17711,16 @@
17414
17711
  }
17415
17712
  return obj;
17416
17713
  }
17417
- function _toPropertyKey$A(arg) {
17418
- var key = _toPrimitive$A(arg, "string");
17419
- return _typeof$H(key) === "symbol" ? key : String(key);
17714
+ function _toPropertyKey$D(arg) {
17715
+ var key = _toPrimitive$D(arg, "string");
17716
+ return _typeof$I(key) === "symbol" ? key : String(key);
17420
17717
  }
17421
- function _toPrimitive$A(input, hint) {
17422
- if (_typeof$H(input) !== "object" || input === null) return input;
17718
+ function _toPrimitive$D(input, hint) {
17719
+ if (_typeof$I(input) !== "object" || input === null) return input;
17423
17720
  var prim = input[Symbol.toPrimitive];
17424
17721
  if (prim !== undefined) {
17425
17722
  var res = prim.call(input, hint || "default");
17426
- if (_typeof$H(res) !== "object") return res;
17723
+ if (_typeof$I(res) !== "object") return res;
17427
17724
  throw new TypeError("@@toPrimitive must return a primitive value.");
17428
17725
  }
17429
17726
  return (hint === "string" ? String : Number)(input);
@@ -17446,13 +17743,13 @@
17446
17743
  $$type: 'ais.stats',
17447
17744
  init: function init(initOptions) {
17448
17745
  var instantSearchInstance = initOptions.instantSearchInstance;
17449
- renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(initOptions)), {}, {
17746
+ renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(initOptions)), {}, {
17450
17747
  instantSearchInstance: instantSearchInstance
17451
17748
  }), true);
17452
17749
  },
17453
17750
  render: function render(renderOptions) {
17454
17751
  var instantSearchInstance = renderOptions.instantSearchInstance;
17455
- renderFn(_objectSpread$y(_objectSpread$y({}, this.getWidgetRenderState(renderOptions)), {}, {
17752
+ renderFn(_objectSpread$B(_objectSpread$B({}, this.getWidgetRenderState(renderOptions)), {}, {
17456
17753
  instantSearchInstance: instantSearchInstance
17457
17754
  }), false);
17458
17755
  },
@@ -17460,7 +17757,7 @@
17460
17757
  unmountFn();
17461
17758
  },
17462
17759
  getRenderState: function getRenderState(renderState, renderOptions) {
17463
- return _objectSpread$y(_objectSpread$y({}, renderState), {}, {
17760
+ return _objectSpread$B(_objectSpread$B({}, renderState), {}, {
17464
17761
  stats: this.getWidgetRenderState(renderOptions)
17465
17762
  });
17466
17763
  },
@@ -17500,16 +17797,16 @@
17500
17797
  return useConnector(connectStats, props, additionalWidgetProperties);
17501
17798
  }
17502
17799
 
17503
- function _typeof$I(obj) {
17800
+ function _typeof$J(obj) {
17504
17801
  "@babel/helpers - typeof";
17505
17802
 
17506
- return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17803
+ return _typeof$J = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17507
17804
  return typeof obj;
17508
17805
  } : function (obj) {
17509
17806
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17510
- }, _typeof$I(obj);
17807
+ }, _typeof$J(obj);
17511
17808
  }
17512
- function ownKeys$z(object, enumerableOnly) {
17809
+ function ownKeys$C(object, enumerableOnly) {
17513
17810
  var keys = Object.keys(object);
17514
17811
  if (Object.getOwnPropertySymbols) {
17515
17812
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17519,19 +17816,19 @@
17519
17816
  }
17520
17817
  return keys;
17521
17818
  }
17522
- function _objectSpread$z(target) {
17819
+ function _objectSpread$C(target) {
17523
17820
  for (var i = 1; i < arguments.length; i++) {
17524
17821
  var source = null != arguments[i] ? arguments[i] : {};
17525
- i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) {
17526
- _defineProperty$B(target, key, source[key]);
17527
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) {
17822
+ i % 2 ? ownKeys$C(Object(source), !0).forEach(function (key) {
17823
+ _defineProperty$E(target, key, source[key]);
17824
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$C(Object(source)).forEach(function (key) {
17528
17825
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17529
17826
  });
17530
17827
  }
17531
17828
  return target;
17532
17829
  }
17533
- function _defineProperty$B(obj, key, value) {
17534
- key = _toPropertyKey$B(key);
17830
+ function _defineProperty$E(obj, key, value) {
17831
+ key = _toPropertyKey$E(key);
17535
17832
  if (key in obj) {
17536
17833
  Object.defineProperty(obj, key, {
17537
17834
  value: value,
@@ -17544,16 +17841,16 @@
17544
17841
  }
17545
17842
  return obj;
17546
17843
  }
17547
- function _toPropertyKey$B(arg) {
17548
- var key = _toPrimitive$B(arg, "string");
17549
- return _typeof$I(key) === "symbol" ? key : String(key);
17844
+ function _toPropertyKey$E(arg) {
17845
+ var key = _toPrimitive$E(arg, "string");
17846
+ return _typeof$J(key) === "symbol" ? key : String(key);
17550
17847
  }
17551
- function _toPrimitive$B(input, hint) {
17552
- if (_typeof$I(input) !== "object" || input === null) return input;
17848
+ function _toPrimitive$E(input, hint) {
17849
+ if (_typeof$J(input) !== "object" || input === null) return input;
17553
17850
  var prim = input[Symbol.toPrimitive];
17554
17851
  if (prim !== undefined) {
17555
17852
  var res = prim.call(input, hint || "default");
17556
- if (_typeof$I(res) !== "object") return res;
17853
+ if (_typeof$J(res) !== "object") return res;
17557
17854
  throw new TypeError("@@toPrimitive must return a primitive value.");
17558
17855
  }
17559
17856
  return (hint === "string" ? String : Number)(input);
@@ -17745,13 +18042,13 @@
17745
18042
  $$type: $$type$3,
17746
18043
  init: function init(initOptions) {
17747
18044
  var instantSearchInstance = initOptions.instantSearchInstance;
17748
- renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(initOptions)), {}, {
18045
+ renderFn(_objectSpread$C(_objectSpread$C({}, this.getWidgetRenderState(initOptions)), {}, {
17749
18046
  instantSearchInstance: instantSearchInstance
17750
18047
  }), true);
17751
18048
  },
17752
18049
  render: function render(renderOptions) {
17753
18050
  var instantSearchInstance = renderOptions.instantSearchInstance;
17754
- renderFn(_objectSpread$z(_objectSpread$z({}, this.getWidgetRenderState(renderOptions)), {}, {
18051
+ renderFn(_objectSpread$C(_objectSpread$C({}, this.getWidgetRenderState(renderOptions)), {}, {
17755
18052
  instantSearchInstance: instantSearchInstance
17756
18053
  }), false);
17757
18054
  },
@@ -17761,8 +18058,8 @@
17761
18058
  return state.removeDisjunctiveFacet(attribute);
17762
18059
  },
17763
18060
  getRenderState: function getRenderState(renderState, renderOptions) {
17764
- return _objectSpread$z(_objectSpread$z({}, renderState), {}, {
17765
- toggleRefinement: _objectSpread$z(_objectSpread$z({}, renderState.toggleRefinement), {}, _defineProperty$B({}, attribute, this.getWidgetRenderState(renderOptions)))
18061
+ return _objectSpread$C(_objectSpread$C({}, renderState), {}, {
18062
+ toggleRefinement: _objectSpread$C(_objectSpread$C({}, renderState.toggleRefinement), {}, _defineProperty$E({}, attribute, this.getWidgetRenderState(renderOptions)))
17766
18063
  });
17767
18064
  },
17768
18065
  getWidgetRenderState: function getWidgetRenderState(_ref6) {
@@ -17863,8 +18160,8 @@
17863
18160
  (_uiState$toggle = uiState.toggle) === null || _uiState$toggle === void 0 ? true : delete _uiState$toggle[attribute];
17864
18161
  return uiState;
17865
18162
  }
17866
- return _objectSpread$z(_objectSpread$z({}, uiState), {}, {
17867
- toggle: _objectSpread$z(_objectSpread$z({}, uiState.toggle), {}, _defineProperty$B({}, attribute, isRefined))
18163
+ return _objectSpread$C(_objectSpread$C({}, uiState), {}, {
18164
+ toggle: _objectSpread$C(_objectSpread$C({}, uiState.toggle), {}, _defineProperty$E({}, attribute, isRefined))
17868
18165
  });
17869
18166
  },
17870
18167
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref11) {
@@ -17895,7 +18192,7 @@
17895
18192
 
17896
18193
  // It's not refined without an `off` value
17897
18194
  return withFacetConfiguration.setQueryParameters({
17898
- disjunctiveFacetsRefinements: _objectSpread$z(_objectSpread$z({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$B({}, attribute, []))
18195
+ disjunctiveFacetsRefinements: _objectSpread$C(_objectSpread$C({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$E({}, attribute, []))
17899
18196
  });
17900
18197
  }
17901
18198
  };
@@ -18158,16 +18455,16 @@
18158
18455
  return promise;
18159
18456
  }
18160
18457
 
18161
- function _typeof$J(obj) {
18458
+ function _typeof$K(obj) {
18162
18459
  "@babel/helpers - typeof";
18163
18460
 
18164
- return _typeof$J = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18461
+ return _typeof$K = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
18165
18462
  return typeof obj;
18166
18463
  } : function (obj) {
18167
18464
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18168
- }, _typeof$J(obj);
18465
+ }, _typeof$K(obj);
18169
18466
  }
18170
- function ownKeys$A(object, enumerableOnly) {
18467
+ function ownKeys$D(object, enumerableOnly) {
18171
18468
  var keys = Object.keys(object);
18172
18469
  if (Object.getOwnPropertySymbols) {
18173
18470
  var symbols = Object.getOwnPropertySymbols(object);
@@ -18177,19 +18474,19 @@
18177
18474
  }
18178
18475
  return keys;
18179
18476
  }
18180
- function _objectSpread$A(target) {
18477
+ function _objectSpread$D(target) {
18181
18478
  for (var i = 1; i < arguments.length; i++) {
18182
18479
  var source = null != arguments[i] ? arguments[i] : {};
18183
- i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) {
18184
- _defineProperty$C(target, key, source[key]);
18185
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) {
18480
+ i % 2 ? ownKeys$D(Object(source), !0).forEach(function (key) {
18481
+ _defineProperty$F(target, key, source[key]);
18482
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$D(Object(source)).forEach(function (key) {
18186
18483
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18187
18484
  });
18188
18485
  }
18189
18486
  return target;
18190
18487
  }
18191
- function _defineProperty$C(obj, key, value) {
18192
- key = _toPropertyKey$C(key);
18488
+ function _defineProperty$F(obj, key, value) {
18489
+ key = _toPropertyKey$F(key);
18193
18490
  if (key in obj) {
18194
18491
  Object.defineProperty(obj, key, {
18195
18492
  value: value,
@@ -18202,16 +18499,16 @@
18202
18499
  }
18203
18500
  return obj;
18204
18501
  }
18205
- function _toPropertyKey$C(arg) {
18206
- var key = _toPrimitive$C(arg, "string");
18207
- return _typeof$J(key) === "symbol" ? key : String(key);
18502
+ function _toPropertyKey$F(arg) {
18503
+ var key = _toPrimitive$F(arg, "string");
18504
+ return _typeof$K(key) === "symbol" ? key : String(key);
18208
18505
  }
18209
- function _toPrimitive$C(input, hint) {
18210
- if (_typeof$J(input) !== "object" || input === null) return input;
18506
+ function _toPrimitive$F(input, hint) {
18507
+ if (_typeof$K(input) !== "object" || input === null) return input;
18211
18508
  var prim = input[Symbol.toPrimitive];
18212
18509
  if (prim !== undefined) {
18213
18510
  var res = prim.call(input, hint || "default");
18214
- if (_typeof$J(res) !== "object") return res;
18511
+ if (_typeof$K(res) !== "object") return res;
18215
18512
  throw new TypeError("@@toPrimitive must return a primitive value.");
18216
18513
  }
18217
18514
  return (hint === "string" ? String : Number)(input);
@@ -18257,7 +18554,7 @@
18257
18554
  initialResults[widget.getIndexId()] = {
18258
18555
  // We convert the Helper state to a plain object to pass parsable data
18259
18556
  // structures from server to client.
18260
- state: _objectSpread$A({}, searchResults._state),
18557
+ state: _objectSpread$D({}, searchResults._state),
18261
18558
  results: searchResults._rawResults
18262
18559
  };
18263
18560
  }
@@ -18378,7 +18675,7 @@
18378
18675
  return _arr;
18379
18676
  }
18380
18677
  }
18381
- function ownKeys$B(object, enumerableOnly) {
18678
+ function ownKeys$E(object, enumerableOnly) {
18382
18679
  var keys = Object.keys(object);
18383
18680
  if (Object.getOwnPropertySymbols) {
18384
18681
  var symbols = Object.getOwnPropertySymbols(object);
@@ -18391,16 +18688,16 @@
18391
18688
  function _objectSpread2(target) {
18392
18689
  for (var i = 1; i < arguments.length; i++) {
18393
18690
  var source = null != arguments[i] ? arguments[i] : {};
18394
- i % 2 ? ownKeys$B(Object(source), !0).forEach(function (key) {
18395
- _defineProperty$D(target, key, source[key]);
18396
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$B(Object(source)).forEach(function (key) {
18691
+ i % 2 ? ownKeys$E(Object(source), !0).forEach(function (key) {
18692
+ _defineProperty$G(target, key, source[key]);
18693
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$E(Object(source)).forEach(function (key) {
18397
18694
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18398
18695
  });
18399
18696
  }
18400
18697
  return target;
18401
18698
  }
18402
- function _defineProperty$D(obj, key, value) {
18403
- key = _toPropertyKey$D(key);
18699
+ function _defineProperty$G(obj, key, value) {
18700
+ key = _toPropertyKey$G(key);
18404
18701
  if (key in obj) {
18405
18702
  Object.defineProperty(obj, key, {
18406
18703
  value: value,
@@ -18476,7 +18773,7 @@
18476
18773
  function _nonIterableRest$f() {
18477
18774
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18478
18775
  }
18479
- function _toPrimitive$D(input, hint) {
18776
+ function _toPrimitive$G(input, hint) {
18480
18777
  if (typeof input !== "object" || input === null) return input;
18481
18778
  var prim = input[Symbol.toPrimitive];
18482
18779
  if (prim !== undefined) {
@@ -18486,8 +18783,8 @@
18486
18783
  }
18487
18784
  return (hint === "string" ? String : Number)(input);
18488
18785
  }
18489
- function _toPropertyKey$D(arg) {
18490
- var key = _toPrimitive$D(arg, "string");
18786
+ function _toPropertyKey$G(arg) {
18787
+ var key = _toPrimitive$G(arg, "string");
18491
18788
  return typeof key === "symbol" ? key : String(key);
18492
18789
  }
18493
18790
 
@@ -18630,14 +18927,12 @@
18630
18927
  return text.toString().charAt(0).toUpperCase() + text.toString().slice(1);
18631
18928
  }
18632
18929
 
18633
- var _excluded$g = ["classNames", "items", "onRemove", "hasRefinements"];
18930
+ var _excluded$g = ["classNames", "items", "hasRefinements"];
18634
18931
  function CurrentRefinements(_ref) {
18635
18932
  var _ref$classNames = _ref.classNames,
18636
18933
  classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
18637
18934
  _ref$items = _ref.items,
18638
18935
  items = _ref$items === void 0 ? [] : _ref$items,
18639
- _ref$onRemove = _ref.onRemove,
18640
- onRemove = _ref$onRemove === void 0 ? function () {} : _ref$onRemove,
18641
18936
  _ref$hasRefinements = _ref.hasRefinements,
18642
18937
  hasRefinements = _ref$hasRefinements === void 0 ? false : _ref$hasRefinements,
18643
18938
  props = _objectWithoutProperties$c(_ref, _excluded$g);
@@ -18664,7 +18959,7 @@
18664
18959
  if (isModifierClick(event)) {
18665
18960
  return;
18666
18961
  }
18667
- onRemove(refinement);
18962
+ item.refine(refinement);
18668
18963
  },
18669
18964
  className: cx('ais-CurrentRefinements-delete', classNames.delete)
18670
18965
  }, "\u2715"));
@@ -18686,11 +18981,9 @@
18686
18981
  $$widgetType: 'ais.currentRefinements'
18687
18982
  }),
18688
18983
  items = _useCurrentRefinement.items,
18689
- refine = _useCurrentRefinement.refine,
18690
18984
  canRefine = _useCurrentRefinement.canRefine;
18691
18985
  var uiProps = {
18692
18986
  items: items,
18693
- onRemove: refine,
18694
18987
  hasRefinements: canRefine
18695
18988
  };
18696
18989
  return /*#__PURE__*/React__default.createElement(CurrentRefinements, _extends$1({}, props, uiProps));
@@ -19350,10 +19643,10 @@
19350
19643
  var currentPage = _ref2.currentPage;
19351
19644
  return String(currentPage);
19352
19645
  },
19353
- firstPageItemAriaLabel: 'First',
19354
- previousPageItemAriaLabel: 'Previous',
19355
- nextPageItemAriaLabel: 'Next',
19356
- lastPageItemAriaLabel: 'Last',
19646
+ firstPageItemAriaLabel: 'First Page',
19647
+ previousPageItemAriaLabel: 'Previous Page',
19648
+ nextPageItemAriaLabel: 'Next Page',
19649
+ lastPageItemAriaLabel: "Last Page, Page ".concat(nbPages),
19357
19650
  pageItemAriaLabel: function pageItemAriaLabel(_ref3) {
19358
19651
  var currentPage = _ref3.currentPage;
19359
19652
  return "Page ".concat(currentPage);