react-instantsearch-core 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
 
@@ -6293,6 +6293,55 @@
6293
6293
  }
6294
6294
  }
6295
6295
 
6296
+ function ownKeys$1(object, enumerableOnly) {
6297
+ var keys = Object.keys(object);
6298
+ if (Object.getOwnPropertySymbols) {
6299
+ var symbols = Object.getOwnPropertySymbols(object);
6300
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
6301
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6302
+ })), keys.push.apply(keys, symbols);
6303
+ }
6304
+ return keys;
6305
+ }
6306
+ function _objectSpread$1(target) {
6307
+ for (var i = 1; i < arguments.length; i++) {
6308
+ var source = null != arguments[i] ? arguments[i] : {};
6309
+ i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
6310
+ _defineProperty$1(target, key, source[key]);
6311
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
6312
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6313
+ });
6314
+ }
6315
+ return target;
6316
+ }
6317
+ function _defineProperty$1(obj, key, value) {
6318
+ key = _toPropertyKey$1(key);
6319
+ if (key in obj) {
6320
+ Object.defineProperty(obj, key, {
6321
+ value: value,
6322
+ enumerable: true,
6323
+ configurable: true,
6324
+ writable: true
6325
+ });
6326
+ } else {
6327
+ obj[key] = value;
6328
+ }
6329
+ return obj;
6330
+ }
6331
+ function _toPropertyKey$1(arg) {
6332
+ var key = _toPrimitive$1(arg, "string");
6333
+ return _typeof$2(key) === "symbol" ? key : String(key);
6334
+ }
6335
+ function _toPrimitive$1(input, hint) {
6336
+ if (_typeof$2(input) !== "object" || input === null) return input;
6337
+ var prim = input[Symbol.toPrimitive];
6338
+ if (prim !== undefined) {
6339
+ var res = prim.call(input, hint || "default");
6340
+ if (_typeof$2(res) !== "object") return res;
6341
+ throw new TypeError("@@toPrimitive must return a primitive value.");
6342
+ }
6343
+ return (hint === "string" ? String : Number)(input);
6344
+ }
6296
6345
  function _typeof$2(obj) {
6297
6346
  "@babel/helpers - typeof";
6298
6347
 
@@ -6362,7 +6411,9 @@
6362
6411
  }
6363
6412
  var facetValue = args[1],
6364
6413
  _args$ = args[2],
6365
- eventName = _args$ === void 0 ? 'Filter Applied' : _args$;
6414
+ eventName = _args$ === void 0 ? 'Filter Applied' : _args$,
6415
+ _args$2 = args[3],
6416
+ additionalData = _args$2 === void 0 ? {} : _args$2;
6366
6417
  var _args$0$split = args[0].split(':'),
6367
6418
  _args$0$split2 = _slicedToArray(_args$0$split, 2),
6368
6419
  eventType = _args$0$split2[0],
@@ -6370,7 +6421,7 @@
6370
6421
  var attribute = typeof attr === 'string' ? attr : attr(facetValue);
6371
6422
  if (args.length === 1 && _typeof$2(args[0]) === 'object') {
6372
6423
  instantSearchInstance.sendEventToInsights(args[0]);
6373
- } else if (eventType === 'click' && (args.length === 2 || args.length === 3)) {
6424
+ } else if (eventType === 'click' && args.length >= 2 && args.length <= 4) {
6374
6425
  if (!isFacetRefined(helper, attribute, facetValue)) {
6375
6426
  // send event only when the facet is being checked "ON"
6376
6427
  instantSearchInstance.sendEventToInsights({
@@ -6378,11 +6429,11 @@
6378
6429
  widgetType: widgetType,
6379
6430
  eventType: eventType,
6380
6431
  eventModifier: eventModifier,
6381
- payload: {
6432
+ payload: _objectSpread$1({
6382
6433
  eventName: eventName,
6383
6434
  index: helper.getIndex(),
6384
6435
  filters: ["".concat(attribute, ":").concat(facetValue)]
6385
- },
6436
+ }, additionalData),
6386
6437
  attribute: attribute
6387
6438
  });
6388
6439
  }
@@ -6395,6 +6446,55 @@
6395
6446
  return btoa(encodeURIComponent(JSON.stringify(payload)));
6396
6447
  }
6397
6448
 
6449
+ function ownKeys$2(object, enumerableOnly) {
6450
+ var keys = Object.keys(object);
6451
+ if (Object.getOwnPropertySymbols) {
6452
+ var symbols = Object.getOwnPropertySymbols(object);
6453
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
6454
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6455
+ })), keys.push.apply(keys, symbols);
6456
+ }
6457
+ return keys;
6458
+ }
6459
+ function _objectSpread$2(target) {
6460
+ for (var i = 1; i < arguments.length; i++) {
6461
+ var source = null != arguments[i] ? arguments[i] : {};
6462
+ i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
6463
+ _defineProperty$2(target, key, source[key]);
6464
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
6465
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6466
+ });
6467
+ }
6468
+ return target;
6469
+ }
6470
+ function _defineProperty$2(obj, key, value) {
6471
+ key = _toPropertyKey$2(key);
6472
+ if (key in obj) {
6473
+ Object.defineProperty(obj, key, {
6474
+ value: value,
6475
+ enumerable: true,
6476
+ configurable: true,
6477
+ writable: true
6478
+ });
6479
+ } else {
6480
+ obj[key] = value;
6481
+ }
6482
+ return obj;
6483
+ }
6484
+ function _toPropertyKey$2(arg) {
6485
+ var key = _toPrimitive$2(arg, "string");
6486
+ return _typeof$3(key) === "symbol" ? key : String(key);
6487
+ }
6488
+ function _toPrimitive$2(input, hint) {
6489
+ if (_typeof$3(input) !== "object" || input === null) return input;
6490
+ var prim = input[Symbol.toPrimitive];
6491
+ if (prim !== undefined) {
6492
+ var res = prim.call(input, hint || "default");
6493
+ if (_typeof$3(res) !== "object") return res;
6494
+ throw new TypeError("@@toPrimitive must return a primitive value.");
6495
+ }
6496
+ return (hint === "string" ? String : Number)(input);
6497
+ }
6398
6498
  function _slicedToArray$1(arr, i) {
6399
6499
  return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
6400
6500
  }
@@ -6477,6 +6577,7 @@
6477
6577
  eventModifier = _args$0$split2[1];
6478
6578
  var hits = args[1];
6479
6579
  var eventName = args[2];
6580
+ var additionalData = args[3] || {};
6480
6581
  if (!hits) {
6481
6582
  {
6482
6583
  return [];
@@ -6512,11 +6613,11 @@
6512
6613
  insightsMethod: 'viewedObjectIDs',
6513
6614
  widgetType: widgetType,
6514
6615
  eventType: eventType,
6515
- payload: {
6616
+ payload: _objectSpread$2({
6516
6617
  eventName: eventName || 'Hits Viewed',
6517
6618
  index: index,
6518
6619
  objectIDs: objectIDsByChunk[i]
6519
- },
6620
+ }, additionalData),
6520
6621
  hits: batch,
6521
6622
  eventModifier: eventModifier
6522
6623
  };
@@ -6527,13 +6628,13 @@
6527
6628
  insightsMethod: 'clickedObjectIDsAfterSearch',
6528
6629
  widgetType: widgetType,
6529
6630
  eventType: eventType,
6530
- payload: {
6631
+ payload: _objectSpread$2({
6531
6632
  eventName: eventName || 'Hit Clicked',
6532
6633
  index: index,
6533
6634
  queryID: queryID,
6534
6635
  objectIDs: objectIDsByChunk[i],
6535
6636
  positions: positionsByChunk[i]
6536
- },
6637
+ }, additionalData),
6537
6638
  hits: batch,
6538
6639
  eventModifier: eventModifier
6539
6640
  };
@@ -6544,12 +6645,12 @@
6544
6645
  insightsMethod: 'convertedObjectIDsAfterSearch',
6545
6646
  widgetType: widgetType,
6546
6647
  eventType: eventType,
6547
- payload: {
6648
+ payload: _objectSpread$2({
6548
6649
  eventName: eventName || 'Hit Converted',
6549
6650
  index: index,
6550
6651
  queryID: queryID,
6551
6652
  objectIDs: objectIDsByChunk[i]
6552
- },
6653
+ }, additionalData),
6553
6654
  hits: batch,
6554
6655
  eventModifier: eventModifier
6555
6656
  };
@@ -7058,7 +7159,7 @@
7058
7159
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7059
7160
  }, _typeof$4(obj);
7060
7161
  }
7061
- function ownKeys$1(object, enumerableOnly) {
7162
+ function ownKeys$3(object, enumerableOnly) {
7062
7163
  var keys = Object.keys(object);
7063
7164
  if (Object.getOwnPropertySymbols) {
7064
7165
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7068,19 +7169,19 @@
7068
7169
  }
7069
7170
  return keys;
7070
7171
  }
7071
- function _objectSpread$1(target) {
7172
+ function _objectSpread$3(target) {
7072
7173
  for (var i = 1; i < arguments.length; i++) {
7073
7174
  var source = null != arguments[i] ? arguments[i] : {};
7074
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
7075
- _defineProperty$1(target, key, source[key]);
7076
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
7175
+ i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
7176
+ _defineProperty$3(target, key, source[key]);
7177
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) {
7077
7178
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7078
7179
  });
7079
7180
  }
7080
7181
  return target;
7081
7182
  }
7082
- function _defineProperty$1(obj, key, value) {
7083
- key = _toPropertyKey$1(key);
7183
+ function _defineProperty$3(obj, key, value) {
7184
+ key = _toPropertyKey$3(key);
7084
7185
  if (key in obj) {
7085
7186
  Object.defineProperty(obj, key, {
7086
7187
  value: value,
@@ -7093,11 +7194,11 @@
7093
7194
  }
7094
7195
  return obj;
7095
7196
  }
7096
- function _toPropertyKey$1(arg) {
7097
- var key = _toPrimitive$1(arg, "string");
7197
+ function _toPropertyKey$3(arg) {
7198
+ var key = _toPrimitive$3(arg, "string");
7098
7199
  return _typeof$4(key) === "symbol" ? key : String(key);
7099
7200
  }
7100
- function _toPrimitive$1(input, hint) {
7201
+ function _toPrimitive$3(input, hint) {
7101
7202
  if (_typeof$4(input) !== "object" || input === null) return input;
7102
7203
  var prim = input[Symbol.toPrimitive];
7103
7204
  if (prim !== undefined) {
@@ -7109,7 +7210,7 @@
7109
7210
  }
7110
7211
  function addAbsolutePosition(hits, page, hitsPerPage) {
7111
7212
  return hits.map(function (hit, idx) {
7112
- return _objectSpread$1(_objectSpread$1({}, hit), {}, {
7213
+ return _objectSpread$3(_objectSpread$3({}, hit), {}, {
7113
7214
  __position: hitsPerPage * page + idx + 1
7114
7215
  });
7115
7216
  });
@@ -7124,7 +7225,7 @@
7124
7225
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7125
7226
  }, _typeof$5(obj);
7126
7227
  }
7127
- function ownKeys$2(object, enumerableOnly) {
7228
+ function ownKeys$4(object, enumerableOnly) {
7128
7229
  var keys = Object.keys(object);
7129
7230
  if (Object.getOwnPropertySymbols) {
7130
7231
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7134,19 +7235,19 @@
7134
7235
  }
7135
7236
  return keys;
7136
7237
  }
7137
- function _objectSpread$2(target) {
7238
+ function _objectSpread$4(target) {
7138
7239
  for (var i = 1; i < arguments.length; i++) {
7139
7240
  var source = null != arguments[i] ? arguments[i] : {};
7140
- i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
7141
- _defineProperty$2(target, key, source[key]);
7142
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
7241
+ i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {
7242
+ _defineProperty$4(target, key, source[key]);
7243
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) {
7143
7244
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7144
7245
  });
7145
7246
  }
7146
7247
  return target;
7147
7248
  }
7148
- function _defineProperty$2(obj, key, value) {
7149
- key = _toPropertyKey$2(key);
7249
+ function _defineProperty$4(obj, key, value) {
7250
+ key = _toPropertyKey$4(key);
7150
7251
  if (key in obj) {
7151
7252
  Object.defineProperty(obj, key, {
7152
7253
  value: value,
@@ -7159,11 +7260,11 @@
7159
7260
  }
7160
7261
  return obj;
7161
7262
  }
7162
- function _toPropertyKey$2(arg) {
7163
- var key = _toPrimitive$2(arg, "string");
7263
+ function _toPropertyKey$4(arg) {
7264
+ var key = _toPrimitive$4(arg, "string");
7164
7265
  return _typeof$5(key) === "symbol" ? key : String(key);
7165
7266
  }
7166
- function _toPrimitive$2(input, hint) {
7267
+ function _toPrimitive$4(input, hint) {
7167
7268
  if (_typeof$5(input) !== "object" || input === null) return input;
7168
7269
  var prim = input[Symbol.toPrimitive];
7169
7270
  if (prim !== undefined) {
@@ -7178,12 +7279,175 @@
7178
7279
  return hits;
7179
7280
  }
7180
7281
  return hits.map(function (hit) {
7181
- return _objectSpread$2(_objectSpread$2({}, hit), {}, {
7282
+ return _objectSpread$4(_objectSpread$4({}, hit), {}, {
7182
7283
  __queryID: queryID
7183
7284
  });
7184
7285
  });
7185
7286
  }
7186
7287
 
7288
+ function _typeof$6(obj) {
7289
+ "@babel/helpers - typeof";
7290
+
7291
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7292
+ return typeof obj;
7293
+ } : function (obj) {
7294
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7295
+ }, _typeof$6(obj);
7296
+ }
7297
+ function ownKeys$5(object, enumerableOnly) {
7298
+ var keys = Object.keys(object);
7299
+ if (Object.getOwnPropertySymbols) {
7300
+ var symbols = Object.getOwnPropertySymbols(object);
7301
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
7302
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7303
+ })), keys.push.apply(keys, symbols);
7304
+ }
7305
+ return keys;
7306
+ }
7307
+ function _objectSpread$5(target) {
7308
+ for (var i = 1; i < arguments.length; i++) {
7309
+ var source = null != arguments[i] ? arguments[i] : {};
7310
+ i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7311
+ _defineProperty$5(target, key, source[key]);
7312
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7313
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7314
+ });
7315
+ }
7316
+ return target;
7317
+ }
7318
+ function _defineProperty$5(obj, key, value) {
7319
+ key = _toPropertyKey$5(key);
7320
+ if (key in obj) {
7321
+ Object.defineProperty(obj, key, {
7322
+ value: value,
7323
+ enumerable: true,
7324
+ configurable: true,
7325
+ writable: true
7326
+ });
7327
+ } else {
7328
+ obj[key] = value;
7329
+ }
7330
+ return obj;
7331
+ }
7332
+ function _toPropertyKey$5(arg) {
7333
+ var key = _toPrimitive$5(arg, "string");
7334
+ return _typeof$6(key) === "symbol" ? key : String(key);
7335
+ }
7336
+ function _toPrimitive$5(input, hint) {
7337
+ if (_typeof$6(input) !== "object" || input === null) return input;
7338
+ var prim = input[Symbol.toPrimitive];
7339
+ if (prim !== undefined) {
7340
+ var res = prim.call(input, hint || "default");
7341
+ if (_typeof$6(res) !== "object") return res;
7342
+ throw new TypeError("@@toPrimitive must return a primitive value.");
7343
+ }
7344
+ return (hint === "string" ? String : Number)(input);
7345
+ }
7346
+ // @ts-nocheck (types to be fixed during actual implementation)
7347
+
7348
+ function hydrateSearchClient(client, results) {
7349
+ if (!results) {
7350
+ return;
7351
+ }
7352
+
7353
+ // Disable cache hydration on:
7354
+ // - Algoliasearch API Client < v4 with cache disabled
7355
+ // - Third party clients (detected by the `addAlgoliaAgent` function missing)
7356
+
7357
+ if ((!client.transporter || client._cacheHydrated) && (!client._useCache || typeof client.addAlgoliaAgent !== 'function')) {
7358
+ return;
7359
+ }
7360
+
7361
+ // Algoliasearch API Client >= v4
7362
+ // To hydrate the client we need to populate the cache with the data from
7363
+ // the server (done in `hydrateSearchClientWithMultiIndexRequest` or
7364
+ // `hydrateSearchClientWithSingleIndexRequest`). But since there is no way
7365
+ // for us to compute the key the same way as `algoliasearch-client` we need
7366
+ // to populate it on a custom key and override the `search` method to
7367
+ // search on it first.
7368
+ if (client.transporter && !client._cacheHydrated) {
7369
+ client._cacheHydrated = true;
7370
+ var baseMethod = client.search;
7371
+ client.search = function (requests) {
7372
+ for (var _len = arguments.length, methodArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7373
+ methodArgs[_key - 1] = arguments[_key];
7374
+ }
7375
+ var requestsWithSerializedParams = requests.map(function (request) {
7376
+ return _objectSpread$5(_objectSpread$5({}, request), {}, {
7377
+ params: serializeQueryParameters(request.params)
7378
+ });
7379
+ });
7380
+ return client.transporter.responsesCache.get({
7381
+ method: 'search',
7382
+ args: [requestsWithSerializedParams].concat(methodArgs)
7383
+ }, function () {
7384
+ return baseMethod.apply(void 0, [requests].concat(methodArgs));
7385
+ });
7386
+ };
7387
+
7388
+ // Populate the cache with the data from the server
7389
+ client.transporter.responsesCache.set({
7390
+ method: 'search',
7391
+ args: [Object.keys(results).reduce(function (acc, key) {
7392
+ return acc.concat(results[key].results.map(function (request) {
7393
+ return {
7394
+ indexName: request.index,
7395
+ params: request.params
7396
+ };
7397
+ }));
7398
+ }, [])]
7399
+ }, {
7400
+ results: Object.keys(results).reduce(function (acc, key) {
7401
+ return acc.concat(results[key].results);
7402
+ }, [])
7403
+ });
7404
+ }
7405
+
7406
+ // Algoliasearch API Client < v4
7407
+ // Prior to client v4 we didn't have a proper API to hydrate the client
7408
+ // cache from the outside. The following code populates the cache with
7409
+ // a single-index result. You can find more information about the
7410
+ // computation of the key inside the client (see link below).
7411
+ // https://github.com/algolia/algoliasearch-client-javascript/blob/c27e89ff92b2a854ae6f40dc524bffe0f0cbc169/src/AlgoliaSearchCore.js#L232-L240
7412
+ if (!client.transporter) {
7413
+ var cacheKey = "/1/indexes/*/queries_body_".concat(JSON.stringify({
7414
+ requests: Object.keys(results).reduce(function (acc, key) {
7415
+ return acc.concat(results[key].rawResults.map(function (request) {
7416
+ return {
7417
+ indexName: request.index,
7418
+ params: request.params
7419
+ };
7420
+ }));
7421
+ }, [])
7422
+ }));
7423
+ client.cache = _objectSpread$5(_objectSpread$5({}, client.cache), {}, _defineProperty$5({}, cacheKey, JSON.stringify({
7424
+ results: Object.keys(results).reduce(function (acc, key) {
7425
+ return acc.concat(results[key].rawResults);
7426
+ }, [])
7427
+ })));
7428
+ }
7429
+ }
7430
+
7431
+ // This function is copied from the algoliasearch v4 API Client. If modified,
7432
+ // consider updating it also in `serializeQueryParameters` from `@algolia/transporter`.
7433
+ function serializeQueryParameters(parameters) {
7434
+ var isObjectOrArray = function isObjectOrArray(value) {
7435
+ return Object.prototype.toString.call(value) === '[object Object]' || Object.prototype.toString.call(value) === '[object Array]';
7436
+ };
7437
+ var encode = function encode(format) {
7438
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
7439
+ args[_key2 - 1] = arguments[_key2];
7440
+ }
7441
+ var i = 0;
7442
+ return format.replace(/%s/g, function () {
7443
+ return encodeURIComponent(args[i++]);
7444
+ });
7445
+ };
7446
+ return Object.keys(parameters).map(function (key) {
7447
+ return encode('%s=%s', key, isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key]);
7448
+ }).join('&');
7449
+ }
7450
+
7187
7451
  function isPrimitive(obj) {
7188
7452
  return obj !== Object(obj);
7189
7453
  }
@@ -7238,17 +7502,17 @@
7238
7502
  });
7239
7503
  }
7240
7504
 
7241
- function _typeof$6(obj) {
7505
+ function _typeof$7(obj) {
7242
7506
  "@babel/helpers - typeof";
7243
7507
 
7244
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7508
+ return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7245
7509
  return typeof obj;
7246
7510
  } : function (obj) {
7247
7511
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7248
- }, _typeof$6(obj);
7512
+ }, _typeof$7(obj);
7249
7513
  }
7250
7514
  var _excluded = ["facets", "disjunctiveFacets", "facetsRefinements", "facetsExcludes", "disjunctiveFacetsRefinements", "numericRefinements", "tagRefinements", "hierarchicalFacets", "hierarchicalFacetsRefinements", "ruleContexts"];
7251
- function ownKeys$3(object, enumerableOnly) {
7515
+ function ownKeys$6(object, enumerableOnly) {
7252
7516
  var keys = Object.keys(object);
7253
7517
  if (Object.getOwnPropertySymbols) {
7254
7518
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7258,19 +7522,19 @@
7258
7522
  }
7259
7523
  return keys;
7260
7524
  }
7261
- function _objectSpread$3(target) {
7525
+ function _objectSpread$6(target) {
7262
7526
  for (var i = 1; i < arguments.length; i++) {
7263
7527
  var source = null != arguments[i] ? arguments[i] : {};
7264
- i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
7265
- _defineProperty$3(target, key, source[key]);
7266
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) {
7528
+ i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
7529
+ _defineProperty$6(target, key, source[key]);
7530
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
7267
7531
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7268
7532
  });
7269
7533
  }
7270
7534
  return target;
7271
7535
  }
7272
- function _defineProperty$3(obj, key, value) {
7273
- key = _toPropertyKey$3(key);
7536
+ function _defineProperty$6(obj, key, value) {
7537
+ key = _toPropertyKey$6(key);
7274
7538
  if (key in obj) {
7275
7539
  Object.defineProperty(obj, key, {
7276
7540
  value: value,
@@ -7283,16 +7547,16 @@
7283
7547
  }
7284
7548
  return obj;
7285
7549
  }
7286
- function _toPropertyKey$3(arg) {
7287
- var key = _toPrimitive$3(arg, "string");
7288
- return _typeof$6(key) === "symbol" ? key : String(key);
7289
- }
7290
- function _toPrimitive$3(input, hint) {
7291
- if (_typeof$6(input) !== "object" || input === null) return input;
7550
+ function _toPropertyKey$6(arg) {
7551
+ var key = _toPrimitive$6(arg, "string");
7552
+ return _typeof$7(key) === "symbol" ? key : String(key);
7553
+ }
7554
+ function _toPrimitive$6(input, hint) {
7555
+ if (_typeof$7(input) !== "object" || input === null) return input;
7292
7556
  var prim = input[Symbol.toPrimitive];
7293
7557
  if (prim !== undefined) {
7294
7558
  var res = prim.call(input, hint || "default");
7295
- if (_typeof$6(res) !== "object") return res;
7559
+ if (_typeof$7(res) !== "object") return res;
7296
7560
  throw new TypeError("@@toPrimitive must return a primitive value.");
7297
7561
  }
7298
7562
  return (hint === "string" ? String : Number)(input);
@@ -7374,27 +7638,27 @@
7374
7638
  };
7375
7639
  var mergeFacetRefinements = function mergeFacetRefinements(left, right) {
7376
7640
  return left.setQueryParameters({
7377
- facetsRefinements: _objectSpread$3(_objectSpread$3({}, left.facetsRefinements), right.facetsRefinements)
7641
+ facetsRefinements: _objectSpread$6(_objectSpread$6({}, left.facetsRefinements), right.facetsRefinements)
7378
7642
  });
7379
7643
  };
7380
7644
  var mergeFacetsExcludes = function mergeFacetsExcludes(left, right) {
7381
7645
  return left.setQueryParameters({
7382
- facetsExcludes: _objectSpread$3(_objectSpread$3({}, left.facetsExcludes), right.facetsExcludes)
7646
+ facetsExcludes: _objectSpread$6(_objectSpread$6({}, left.facetsExcludes), right.facetsExcludes)
7383
7647
  });
7384
7648
  };
7385
7649
  var mergeDisjunctiveFacetsRefinements = function mergeDisjunctiveFacetsRefinements(left, right) {
7386
7650
  return left.setQueryParameters({
7387
- disjunctiveFacetsRefinements: _objectSpread$3(_objectSpread$3({}, left.disjunctiveFacetsRefinements), right.disjunctiveFacetsRefinements)
7651
+ disjunctiveFacetsRefinements: _objectSpread$6(_objectSpread$6({}, left.disjunctiveFacetsRefinements), right.disjunctiveFacetsRefinements)
7388
7652
  });
7389
7653
  };
7390
7654
  var mergeNumericRefinements = function mergeNumericRefinements(left, right) {
7391
7655
  return left.setQueryParameters({
7392
- numericRefinements: _objectSpread$3(_objectSpread$3({}, left.numericRefinements), right.numericRefinements)
7656
+ numericRefinements: _objectSpread$6(_objectSpread$6({}, left.numericRefinements), right.numericRefinements)
7393
7657
  });
7394
7658
  };
7395
7659
  var mergeHierarchicalFacetsRefinements = function mergeHierarchicalFacetsRefinements(left, right) {
7396
7660
  return left.setQueryParameters({
7397
- hierarchicalFacetsRefinements: _objectSpread$3(_objectSpread$3({}, left.hierarchicalFacetsRefinements), right.hierarchicalFacetsRefinements)
7661
+ hierarchicalFacetsRefinements: _objectSpread$6(_objectSpread$6({}, left.hierarchicalFacetsRefinements), right.hierarchicalFacetsRefinements)
7398
7662
  });
7399
7663
  };
7400
7664
  var mergeRuleContexts = function mergeRuleContexts(left, right) {
@@ -7520,16 +7784,16 @@
7520
7784
  return states;
7521
7785
  }
7522
7786
 
7523
- function _typeof$7(obj) {
7787
+ function _typeof$8(obj) {
7524
7788
  "@babel/helpers - typeof";
7525
7789
 
7526
- return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7790
+ return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7527
7791
  return typeof obj;
7528
7792
  } : function (obj) {
7529
7793
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7530
- }, _typeof$7(obj);
7794
+ }, _typeof$8(obj);
7531
7795
  }
7532
- function ownKeys$4(object, enumerableOnly) {
7796
+ function ownKeys$7(object, enumerableOnly) {
7533
7797
  var keys = Object.keys(object);
7534
7798
  if (Object.getOwnPropertySymbols) {
7535
7799
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7539,19 +7803,19 @@
7539
7803
  }
7540
7804
  return keys;
7541
7805
  }
7542
- function _objectSpread$4(target) {
7806
+ function _objectSpread$7(target) {
7543
7807
  for (var i = 1; i < arguments.length; i++) {
7544
7808
  var source = null != arguments[i] ? arguments[i] : {};
7545
- i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {
7546
- _defineProperty$4(target, key, source[key]);
7547
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) {
7809
+ i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
7810
+ _defineProperty$7(target, key, source[key]);
7811
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
7548
7812
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7549
7813
  });
7550
7814
  }
7551
7815
  return target;
7552
7816
  }
7553
- function _defineProperty$4(obj, key, value) {
7554
- key = _toPropertyKey$4(key);
7817
+ function _defineProperty$7(obj, key, value) {
7818
+ key = _toPropertyKey$7(key);
7555
7819
  if (key in obj) {
7556
7820
  Object.defineProperty(obj, key, {
7557
7821
  value: value,
@@ -7564,16 +7828,16 @@
7564
7828
  }
7565
7829
  return obj;
7566
7830
  }
7567
- function _toPropertyKey$4(arg) {
7568
- var key = _toPrimitive$4(arg, "string");
7569
- return _typeof$7(key) === "symbol" ? key : String(key);
7831
+ function _toPropertyKey$7(arg) {
7832
+ var key = _toPrimitive$7(arg, "string");
7833
+ return _typeof$8(key) === "symbol" ? key : String(key);
7570
7834
  }
7571
- function _toPrimitive$4(input, hint) {
7572
- if (_typeof$7(input) !== "object" || input === null) return input;
7835
+ function _toPrimitive$7(input, hint) {
7836
+ if (_typeof$8(input) !== "object" || input === null) return input;
7573
7837
  var prim = input[Symbol.toPrimitive];
7574
7838
  if (prim !== undefined) {
7575
7839
  var res = prim.call(input, hint || "default");
7576
- if (_typeof$7(res) !== "object") return res;
7840
+ if (_typeof$8(res) !== "object") return res;
7577
7841
  throw new TypeError("@@toPrimitive must return a primitive value.");
7578
7842
  }
7579
7843
  return (hint === "string" ? String : Number)(input);
@@ -7583,13 +7847,13 @@
7583
7847
  return part.isHighlighted;
7584
7848
  })) {
7585
7849
  return parts.map(function (part) {
7586
- return _objectSpread$4(_objectSpread$4({}, part), {}, {
7850
+ return _objectSpread$7(_objectSpread$7({}, part), {}, {
7587
7851
  isHighlighted: false
7588
7852
  });
7589
7853
  });
7590
7854
  }
7591
7855
  return parts.map(function (part, i) {
7592
- return _objectSpread$4(_objectSpread$4({}, part), {}, {
7856
+ return _objectSpread$7(_objectSpread$7({}, part), {}, {
7593
7857
  isHighlighted: !getHighlightFromSiblings(parts, i)
7594
7858
  });
7595
7859
  });
@@ -7622,16 +7886,16 @@
7622
7886
  return Array.isArray(value) ? value : [value];
7623
7887
  }
7624
7888
 
7625
- function _typeof$8(obj) {
7889
+ function _typeof$9(obj) {
7626
7890
  "@babel/helpers - typeof";
7627
7891
 
7628
- return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7892
+ return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7629
7893
  return typeof obj;
7630
7894
  } : function (obj) {
7631
7895
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7632
- }, _typeof$8(obj);
7896
+ }, _typeof$9(obj);
7633
7897
  }
7634
- function ownKeys$5(object, enumerableOnly) {
7898
+ function ownKeys$8(object, enumerableOnly) {
7635
7899
  var keys = Object.keys(object);
7636
7900
  if (Object.getOwnPropertySymbols) {
7637
7901
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7641,19 +7905,19 @@
7641
7905
  }
7642
7906
  return keys;
7643
7907
  }
7644
- function _objectSpread$5(target) {
7908
+ function _objectSpread$8(target) {
7645
7909
  for (var i = 1; i < arguments.length; i++) {
7646
7910
  var source = null != arguments[i] ? arguments[i] : {};
7647
- i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7648
- _defineProperty$5(target, key, source[key]);
7649
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7911
+ i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
7912
+ _defineProperty$8(target, key, source[key]);
7913
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
7650
7914
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7651
7915
  });
7652
7916
  }
7653
7917
  return target;
7654
7918
  }
7655
- function _defineProperty$5(obj, key, value) {
7656
- key = _toPropertyKey$5(key);
7919
+ function _defineProperty$8(obj, key, value) {
7920
+ key = _toPropertyKey$8(key);
7657
7921
  if (key in obj) {
7658
7922
  Object.defineProperty(obj, key, {
7659
7923
  value: value,
@@ -7666,16 +7930,16 @@
7666
7930
  }
7667
7931
  return obj;
7668
7932
  }
7669
- function _toPropertyKey$5(arg) {
7670
- var key = _toPrimitive$5(arg, "string");
7671
- return _typeof$8(key) === "symbol" ? key : String(key);
7933
+ function _toPropertyKey$8(arg) {
7934
+ var key = _toPrimitive$8(arg, "string");
7935
+ return _typeof$9(key) === "symbol" ? key : String(key);
7672
7936
  }
7673
- function _toPrimitive$5(input, hint) {
7674
- if (_typeof$8(input) !== "object" || input === null) return input;
7937
+ function _toPrimitive$8(input, hint) {
7938
+ if (_typeof$9(input) !== "object" || input === null) return input;
7675
7939
  var prim = input[Symbol.toPrimitive];
7676
7940
  if (prim !== undefined) {
7677
7941
  var res = prim.call(input, hint || "default");
7678
- if (_typeof$8(res) !== "object") return res;
7942
+ if (_typeof$9(res) !== "object") return res;
7679
7943
  throw new TypeError("@@toPrimitive must return a primitive value.");
7680
7944
  }
7681
7945
  return (hint === "string" ? String : Number)(input);
@@ -7694,7 +7958,7 @@
7694
7958
  // the state. The function `setQueryParameters` omits the values that
7695
7959
  // are `undefined` on the next state.
7696
7960
  return state.setQueryParameters(Object.keys(widgetParams.searchParameters).reduce(function (acc, key) {
7697
- return _objectSpread$5(_objectSpread$5({}, acc), {}, _defineProperty$5({}, key, undefined));
7961
+ return _objectSpread$8(_objectSpread$8({}, acc), {}, _defineProperty$8({}, key, undefined));
7698
7962
  }, {}));
7699
7963
  }
7700
7964
  var connectConfigure = function connectConfigure() {
@@ -7722,13 +7986,13 @@
7722
7986
  $$type: 'ais.configure',
7723
7987
  init: function init(initOptions) {
7724
7988
  var instantSearchInstance = initOptions.instantSearchInstance;
7725
- renderFn(_objectSpread$5(_objectSpread$5({}, this.getWidgetRenderState(initOptions)), {}, {
7989
+ renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(initOptions)), {}, {
7726
7990
  instantSearchInstance: instantSearchInstance
7727
7991
  }), true);
7728
7992
  },
7729
7993
  render: function render(renderOptions) {
7730
7994
  var instantSearchInstance = renderOptions.instantSearchInstance;
7731
- renderFn(_objectSpread$5(_objectSpread$5({}, this.getWidgetRenderState(renderOptions)), {}, {
7995
+ renderFn(_objectSpread$8(_objectSpread$8({}, this.getWidgetRenderState(renderOptions)), {}, {
7732
7996
  instantSearchInstance: instantSearchInstance
7733
7997
  }), false);
7734
7998
  },
@@ -7740,9 +8004,9 @@
7740
8004
  getRenderState: function getRenderState(renderState, renderOptions) {
7741
8005
  var _renderState$configur;
7742
8006
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
7743
- return _objectSpread$5(_objectSpread$5({}, renderState), {}, {
7744
- configure: _objectSpread$5(_objectSpread$5({}, widgetRenderState), {}, {
7745
- widgetParams: _objectSpread$5(_objectSpread$5({}, widgetRenderState.widgetParams), {}, {
8007
+ return _objectSpread$8(_objectSpread$8({}, renderState), {}, {
8008
+ configure: _objectSpread$8(_objectSpread$8({}, widgetRenderState), {}, {
8009
+ widgetParams: _objectSpread$8(_objectSpread$8({}, widgetRenderState.widgetParams), {}, {
7746
8010
  searchParameters: mergeSearchParameters(new algoliasearchHelper_1.SearchParameters((_renderState$configur = renderState.configure) === null || _renderState$configur === void 0 ? void 0 : _renderState$configur.widgetParams.searchParameters), new algoliasearchHelper_1.SearchParameters(widgetRenderState.widgetParams.searchParameters)).getQueryParams()
7747
8011
  })
7748
8012
  })
@@ -7760,11 +8024,11 @@
7760
8024
  },
7761
8025
  getWidgetSearchParameters: function getWidgetSearchParameters(state, _ref3) {
7762
8026
  var uiState = _ref3.uiState;
7763
- return mergeSearchParameters(state, new algoliasearchHelper_1.SearchParameters(_objectSpread$5(_objectSpread$5({}, uiState.configure), widgetParams.searchParameters)));
8027
+ return mergeSearchParameters(state, new algoliasearchHelper_1.SearchParameters(_objectSpread$8(_objectSpread$8({}, uiState.configure), widgetParams.searchParameters)));
7764
8028
  },
7765
8029
  getWidgetUiState: function getWidgetUiState(uiState) {
7766
- return _objectSpread$5(_objectSpread$5({}, uiState), {}, {
7767
- configure: _objectSpread$5(_objectSpread$5({}, uiState.configure), widgetParams.searchParameters)
8030
+ return _objectSpread$8(_objectSpread$8({}, uiState), {}, {
8031
+ configure: _objectSpread$8(_objectSpread$8({}, uiState.configure), widgetParams.searchParameters)
7768
8032
  });
7769
8033
  }
7770
8034
  };
@@ -7798,7 +8062,7 @@
7798
8062
  return _arr;
7799
8063
  }
7800
8064
  }
7801
- function ownKeys$6(object, enumerableOnly) {
8065
+ function ownKeys$9(object, enumerableOnly) {
7802
8066
  var keys = Object.keys(object);
7803
8067
  if (Object.getOwnPropertySymbols) {
7804
8068
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7811,25 +8075,25 @@
7811
8075
  function _objectSpread2(target) {
7812
8076
  for (var i = 1; i < arguments.length; i++) {
7813
8077
  var source = null != arguments[i] ? arguments[i] : {};
7814
- i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
7815
- _defineProperty$6(target, key, source[key]);
7816
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
8078
+ i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8079
+ _defineProperty$9(target, key, source[key]);
8080
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
7817
8081
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7818
8082
  });
7819
8083
  }
7820
8084
  return target;
7821
8085
  }
7822
- function _typeof$9(obj) {
8086
+ function _typeof$a(obj) {
7823
8087
  "@babel/helpers - typeof";
7824
8088
 
7825
- return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8089
+ return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7826
8090
  return typeof obj;
7827
8091
  } : function (obj) {
7828
8092
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7829
- }, _typeof$9(obj);
8093
+ }, _typeof$a(obj);
7830
8094
  }
7831
- function _defineProperty$6(obj, key, value) {
7832
- key = _toPropertyKey$6(key);
8095
+ function _defineProperty$9(obj, key, value) {
8096
+ key = _toPropertyKey$9(key);
7833
8097
  if (key in obj) {
7834
8098
  Object.defineProperty(obj, key, {
7835
8099
  value: value,
@@ -7891,7 +8155,7 @@
7891
8155
  function _nonIterableRest$3() {
7892
8156
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7893
8157
  }
7894
- function _toPrimitive$6(input, hint) {
8158
+ function _toPrimitive$9(input, hint) {
7895
8159
  if (typeof input !== "object" || input === null) return input;
7896
8160
  var prim = input[Symbol.toPrimitive];
7897
8161
  if (prim !== undefined) {
@@ -7901,8 +8165,8 @@
7901
8165
  }
7902
8166
  return (hint === "string" ? String : Number)(input);
7903
8167
  }
7904
- function _toPropertyKey$6(arg) {
7905
- var key = _toPrimitive$6(arg, "string");
8168
+ function _toPropertyKey$9(arg) {
8169
+ var key = _toPrimitive$9(arg, "string");
7906
8170
  return typeof key === "symbol" ? key : String(key);
7907
8171
  }
7908
8172
 
@@ -7938,7 +8202,7 @@
7938
8202
  }
7939
8203
  return len === -1;
7940
8204
  }
7941
- if (!ctor || _typeof$9(foo) === 'object') {
8205
+ if (!ctor || _typeof$a(foo) === 'object') {
7942
8206
  len = 0;
7943
8207
  // eslint-disable-next-line guard-for-in, no-restricted-syntax
7944
8208
  for (ctor in foo) {
@@ -8267,7 +8531,7 @@
8267
8531
  return null;
8268
8532
  }
8269
8533
 
8270
- function ownKeys$7(object, enumerableOnly) {
8534
+ function ownKeys$a(object, enumerableOnly) {
8271
8535
  var keys = Object.keys(object);
8272
8536
  if (Object.getOwnPropertySymbols) {
8273
8537
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8277,19 +8541,19 @@
8277
8541
  }
8278
8542
  return keys;
8279
8543
  }
8280
- function _objectSpread$6(target) {
8544
+ function _objectSpread$9(target) {
8281
8545
  for (var i = 1; i < arguments.length; i++) {
8282
8546
  var source = null != arguments[i] ? arguments[i] : {};
8283
- i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
8284
- _defineProperty$7(target, key, source[key]);
8285
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
8547
+ i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) {
8548
+ _defineProperty$a(target, key, source[key]);
8549
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) {
8286
8550
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8287
8551
  });
8288
8552
  }
8289
8553
  return target;
8290
8554
  }
8291
- function _defineProperty$7(obj, key, value) {
8292
- key = _toPropertyKey$7(key);
8555
+ function _defineProperty$a(obj, key, value) {
8556
+ key = _toPropertyKey$a(key);
8293
8557
  if (key in obj) {
8294
8558
  Object.defineProperty(obj, key, {
8295
8559
  value: value,
@@ -8302,28 +8566,28 @@
8302
8566
  }
8303
8567
  return obj;
8304
8568
  }
8305
- function _toPropertyKey$7(arg) {
8306
- var key = _toPrimitive$7(arg, "string");
8307
- return _typeof$a(key) === "symbol" ? key : String(key);
8569
+ function _toPropertyKey$a(arg) {
8570
+ var key = _toPrimitive$a(arg, "string");
8571
+ return _typeof$b(key) === "symbol" ? key : String(key);
8308
8572
  }
8309
- function _toPrimitive$7(input, hint) {
8310
- if (_typeof$a(input) !== "object" || input === null) return input;
8573
+ function _toPrimitive$a(input, hint) {
8574
+ if (_typeof$b(input) !== "object" || input === null) return input;
8311
8575
  var prim = input[Symbol.toPrimitive];
8312
8576
  if (prim !== undefined) {
8313
8577
  var res = prim.call(input, hint || "default");
8314
- if (_typeof$a(res) !== "object") return res;
8578
+ if (_typeof$b(res) !== "object") return res;
8315
8579
  throw new TypeError("@@toPrimitive must return a primitive value.");
8316
8580
  }
8317
8581
  return (hint === "string" ? String : Number)(input);
8318
8582
  }
8319
- function _typeof$a(obj) {
8583
+ function _typeof$b(obj) {
8320
8584
  "@babel/helpers - typeof";
8321
8585
 
8322
- return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8586
+ return _typeof$b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8323
8587
  return typeof obj;
8324
8588
  } : function (obj) {
8325
8589
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8326
- }, _typeof$a(obj);
8590
+ }, _typeof$b(obj);
8327
8591
  }
8328
8592
  var withUsage$1 = createDocumentationMessageGenerator({
8329
8593
  name: 'dynamic-widgets',
@@ -8344,7 +8608,7 @@
8344
8608
  } : _widgetParams$transfo,
8345
8609
  fallbackWidget = widgetParams.fallbackWidget;
8346
8610
  if (!(widgets && Array.isArray(widgets) && widgets.every(function (widget) {
8347
- return _typeof$a(widget) === 'object';
8611
+ return _typeof$b(widget) === 'object';
8348
8612
  }))) {
8349
8613
  throw new Error(withUsage$1('The `widgets` option expects an array of widgets.'));
8350
8614
  }
@@ -8362,7 +8626,7 @@
8362
8626
  isMounted: false
8363
8627
  });
8364
8628
  });
8365
- renderFn(_objectSpread$6(_objectSpread$6({}, this.getWidgetRenderState(initOptions)), {}, {
8629
+ renderFn(_objectSpread$9(_objectSpread$9({}, this.getWidgetRenderState(initOptions)), {}, {
8366
8630
  instantSearchInstance: initOptions.instantSearchInstance
8367
8631
  }), true);
8368
8632
  },
@@ -8409,7 +8673,7 @@
8409
8673
  setTimeout(function () {
8410
8674
  return parent.removeWidgets(widgetsToUnmount);
8411
8675
  }, 0);
8412
- renderFn(_objectSpread$6(_objectSpread$6({}, renderState), {}, {
8676
+ renderFn(_objectSpread$9(_objectSpread$9({}, renderState), {}, {
8413
8677
  instantSearchInstance: renderOptions.instantSearchInstance
8414
8678
  }), false);
8415
8679
  },
@@ -8435,7 +8699,7 @@
8435
8699
  }));
8436
8700
  },
8437
8701
  getRenderState: function getRenderState(renderState, renderOptions) {
8438
- return _objectSpread$6(_objectSpread$6({}, renderState), {}, {
8702
+ return _objectSpread$9(_objectSpread$9({}, renderState), {}, {
8439
8703
  dynamicWidgets: this.getWidgetRenderState(renderOptions)
8440
8704
  });
8441
8705
  },
@@ -8501,7 +8765,7 @@
8501
8765
  }));
8502
8766
  }
8503
8767
  function isReactElement(element) {
8504
- return _typeof$9(element) === 'object' && element.props;
8768
+ return _typeof$a(element) === 'object' && element.props;
8505
8769
  }
8506
8770
  function getWidgetAttribute$1(element) {
8507
8771
  if (!isReactElement(element)) {
@@ -8520,17 +8784,17 @@
8520
8784
  return undefined;
8521
8785
  }
8522
8786
 
8523
- function _typeof$b(obj) {
8787
+ function _typeof$c(obj) {
8524
8788
  "@babel/helpers - typeof";
8525
8789
 
8526
- return _typeof$b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8790
+ return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8527
8791
  return typeof obj;
8528
8792
  } : function (obj) {
8529
8793
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8530
- }, _typeof$b(obj);
8794
+ }, _typeof$c(obj);
8531
8795
  }
8532
8796
  var _excluded$3 = ["initialSearchParameters"];
8533
- function ownKeys$8(object, enumerableOnly) {
8797
+ function ownKeys$b(object, enumerableOnly) {
8534
8798
  var keys = Object.keys(object);
8535
8799
  if (Object.getOwnPropertySymbols) {
8536
8800
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8540,19 +8804,19 @@
8540
8804
  }
8541
8805
  return keys;
8542
8806
  }
8543
- function _objectSpread$7(target) {
8807
+ function _objectSpread$a(target) {
8544
8808
  for (var i = 1; i < arguments.length; i++) {
8545
8809
  var source = null != arguments[i] ? arguments[i] : {};
8546
- i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
8547
- _defineProperty$8(target, key, source[key]);
8548
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
8810
+ i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
8811
+ _defineProperty$b(target, key, source[key]);
8812
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
8549
8813
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8550
8814
  });
8551
8815
  }
8552
8816
  return target;
8553
8817
  }
8554
- function _defineProperty$8(obj, key, value) {
8555
- key = _toPropertyKey$8(key);
8818
+ function _defineProperty$b(obj, key, value) {
8819
+ key = _toPropertyKey$b(key);
8556
8820
  if (key in obj) {
8557
8821
  Object.defineProperty(obj, key, {
8558
8822
  value: value,
@@ -8565,16 +8829,16 @@
8565
8829
  }
8566
8830
  return obj;
8567
8831
  }
8568
- function _toPropertyKey$8(arg) {
8569
- var key = _toPrimitive$8(arg, "string");
8570
- return _typeof$b(key) === "symbol" ? key : String(key);
8832
+ function _toPropertyKey$b(arg) {
8833
+ var key = _toPrimitive$b(arg, "string");
8834
+ return _typeof$c(key) === "symbol" ? key : String(key);
8571
8835
  }
8572
- function _toPrimitive$8(input, hint) {
8573
- if (_typeof$b(input) !== "object" || input === null) return input;
8836
+ function _toPrimitive$b(input, hint) {
8837
+ if (_typeof$c(input) !== "object" || input === null) return input;
8574
8838
  var prim = input[Symbol.toPrimitive];
8575
8839
  if (prim !== undefined) {
8576
8840
  var res = prim.call(input, hint || "default");
8577
- if (_typeof$b(res) !== "object") return res;
8841
+ if (_typeof$c(res) !== "object") return res;
8578
8842
  throw new TypeError("@@toPrimitive must return a primitive value.");
8579
8843
  }
8580
8844
  return (hint === "string" ? String : Number)(input);
@@ -8757,9 +9021,9 @@
8757
9021
  },
8758
9022
  createURL: function createURL(nextState) {
8759
9023
  if (typeof nextState === 'function') {
8760
- return localInstantSearchInstance._createURL(_defineProperty$8({}, indexId, nextState(localUiState)));
9024
+ return localInstantSearchInstance._createURL(_defineProperty$b({}, indexId, nextState(localUiState)));
8761
9025
  }
8762
- return localInstantSearchInstance._createURL(_defineProperty$8({}, indexId, getLocalWidgetsUiState(localWidgets, {
9026
+ return localInstantSearchInstance._createURL(_defineProperty$b({}, indexId, getLocalWidgetsUiState(localWidgets, {
8763
9027
  searchParameters: nextState,
8764
9028
  helper: helper
8765
9029
  })));
@@ -9067,7 +9331,7 @@
9067
9331
  getWidgetUiState: function getWidgetUiState(uiState) {
9068
9332
  return localWidgets.filter(isIndexWidget).reduce(function (previousUiState, innerIndex) {
9069
9333
  return innerIndex.getWidgetUiState(previousUiState);
9070
- }, _objectSpread$7(_objectSpread$7({}, uiState), {}, _defineProperty$8({}, indexId, _objectSpread$7(_objectSpread$7({}, uiState[indexId]), localUiState))));
9334
+ }, _objectSpread$a(_objectSpread$a({}, uiState), {}, _defineProperty$b({}, indexId, _objectSpread$a(_objectSpread$a({}, uiState[indexId]), localUiState))));
9071
9335
  },
9072
9336
  getWidgetState: function getWidgetState(uiState) {
9073
9337
  return this.getWidgetUiState(uiState);
@@ -9088,7 +9352,7 @@
9088
9352
  setIndexUiState: function setIndexUiState(indexUiState) {
9089
9353
  var nextIndexUiState = typeof indexUiState === 'function' ? indexUiState(localUiState) : indexUiState;
9090
9354
  localInstantSearchInstance.setUiState(function (state) {
9091
- return _objectSpread$7(_objectSpread$7({}, state), {}, _defineProperty$8({}, indexId, nextIndexUiState));
9355
+ return _objectSpread$a(_objectSpread$a({}, state), {}, _defineProperty$b({}, indexId, nextIndexUiState));
9092
9356
  });
9093
9357
  }
9094
9358
  };
@@ -9098,7 +9362,7 @@
9098
9362
  instantSearchInstance = _ref7.instantSearchInstance,
9099
9363
  parent = _ref7.parent;
9100
9364
  var parentIndexName = parent ? parent.getIndexId() : instantSearchInstance.mainIndex.getIndexId();
9101
- instantSearchInstance.renderState = _objectSpread$7(_objectSpread$7({}, instantSearchInstance.renderState), {}, _defineProperty$8({}, parentIndexName, _objectSpread$7(_objectSpread$7({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
9365
+ instantSearchInstance.renderState = _objectSpread$a(_objectSpread$a({}, instantSearchInstance.renderState), {}, _defineProperty$b({}, parentIndexName, _objectSpread$a(_objectSpread$a({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
9102
9366
  }
9103
9367
 
9104
9368
  /**
@@ -9266,21 +9530,21 @@
9266
9530
  return reverseHighlightedValue.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag, 'g'), "<".concat(highlightedTagName, " class=\"").concat(className, "\">")).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag, 'g'), "</".concat(highlightedTagName, ">"));
9267
9531
  }
9268
9532
 
9269
- function _typeof$c(obj) {
9533
+ function _typeof$d(obj) {
9270
9534
  "@babel/helpers - typeof";
9271
9535
 
9272
- return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9536
+ return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9273
9537
  return typeof obj;
9274
9538
  } : function (obj) {
9275
9539
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9276
- }, _typeof$c(obj);
9540
+ }, _typeof$d(obj);
9277
9541
  }
9278
9542
 
9279
9543
  /** @deprecated use bindEvent instead */
9280
9544
  function writeDataAttributes(_ref) {
9281
9545
  var method = _ref.method,
9282
9546
  payload = _ref.payload;
9283
- if (_typeof$c(payload) !== 'object') {
9547
+ if (_typeof$d(payload) !== 'object') {
9284
9548
  throw new Error("The insights helper expects the payload to be an object.");
9285
9549
  }
9286
9550
  var serializedPayload;
@@ -9302,18 +9566,18 @@
9302
9566
  });
9303
9567
  }
9304
9568
 
9305
- function _typeof$d(obj) {
9569
+ function _typeof$e(obj) {
9306
9570
  "@babel/helpers - typeof";
9307
9571
 
9308
- return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9572
+ return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9309
9573
  return typeof obj;
9310
9574
  } : function (obj) {
9311
9575
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9312
- }, _typeof$d(obj);
9576
+ }, _typeof$e(obj);
9313
9577
  }
9314
9578
  var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
9315
9579
  function getCookie(name) {
9316
- if ((typeof document === "undefined" ? "undefined" : _typeof$d(document)) !== 'object' || typeof document.cookie !== 'string') {
9580
+ if ((typeof document === "undefined" ? "undefined" : _typeof$e(document)) !== 'object' || typeof document.cookie !== 'string') {
9317
9581
  return undefined;
9318
9582
  }
9319
9583
  var prefix = "".concat(name, "=");
@@ -9333,16 +9597,16 @@
9333
9597
  return getCookie(ANONYMOUS_TOKEN_COOKIE_KEY);
9334
9598
  }
9335
9599
 
9336
- function _typeof$e(obj) {
9600
+ function _typeof$f(obj) {
9337
9601
  "@babel/helpers - typeof";
9338
9602
 
9339
- return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9603
+ return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9340
9604
  return typeof obj;
9341
9605
  } : function (obj) {
9342
9606
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9343
- }, _typeof$e(obj);
9607
+ }, _typeof$f(obj);
9344
9608
  }
9345
- function ownKeys$9(object, enumerableOnly) {
9609
+ function ownKeys$c(object, enumerableOnly) {
9346
9610
  var keys = Object.keys(object);
9347
9611
  if (Object.getOwnPropertySymbols) {
9348
9612
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9352,19 +9616,19 @@
9352
9616
  }
9353
9617
  return keys;
9354
9618
  }
9355
- function _objectSpread$8(target) {
9619
+ function _objectSpread$b(target) {
9356
9620
  for (var i = 1; i < arguments.length; i++) {
9357
9621
  var source = null != arguments[i] ? arguments[i] : {};
9358
- i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
9359
- _defineProperty$9(target, key, source[key]);
9360
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
9622
+ i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
9623
+ _defineProperty$c(target, key, source[key]);
9624
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
9361
9625
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9362
9626
  });
9363
9627
  }
9364
9628
  return target;
9365
9629
  }
9366
- function _defineProperty$9(obj, key, value) {
9367
- key = _toPropertyKey$9(key);
9630
+ function _defineProperty$c(obj, key, value) {
9631
+ key = _toPropertyKey$c(key);
9368
9632
  if (key in obj) {
9369
9633
  Object.defineProperty(obj, key, {
9370
9634
  value: value,
@@ -9377,16 +9641,16 @@
9377
9641
  }
9378
9642
  return obj;
9379
9643
  }
9380
- function _toPropertyKey$9(arg) {
9381
- var key = _toPrimitive$9(arg, "string");
9382
- return _typeof$e(key) === "symbol" ? key : String(key);
9644
+ function _toPropertyKey$c(arg) {
9645
+ var key = _toPrimitive$c(arg, "string");
9646
+ return _typeof$f(key) === "symbol" ? key : String(key);
9383
9647
  }
9384
- function _toPrimitive$9(input, hint) {
9385
- if (_typeof$e(input) !== "object" || input === null) return input;
9648
+ function _toPrimitive$c(input, hint) {
9649
+ if (_typeof$f(input) !== "object" || input === null) return input;
9386
9650
  var prim = input[Symbol.toPrimitive];
9387
9651
  if (prim !== undefined) {
9388
9652
  var res = prim.call(input, hint || "default");
9389
- if (_typeof$e(res) !== "object") return res;
9653
+ if (_typeof$f(res) !== "object") return res;
9390
9654
  throw new TypeError("@@toPrimitive must return a primitive value.");
9391
9655
  }
9392
9656
  return (hint === "string" ? String : Number)(input);
@@ -9460,7 +9724,9 @@
9460
9724
  insightsInitParams = props.insightsInitParams,
9461
9725
  onEvent = props.onEvent,
9462
9726
  _props$$$internal = props.$$internal,
9463
- $$internal = _props$$$internal === void 0 ? false : _props$$$internal;
9727
+ $$internal = _props$$$internal === void 0 ? false : _props$$$internal,
9728
+ _props$$$automatic = props.$$automatic,
9729
+ $$automatic = _props$$$automatic === void 0 ? false : _props$$$automatic;
9464
9730
  var potentialInsightsClient = _insightsClient;
9465
9731
  if (!_insightsClient && _insightsClient !== null) {
9466
9732
  safelyRunOnBrowser(function (_ref) {
@@ -9537,7 +9803,7 @@
9537
9803
  // Only `init` if the `insightsInitParams` option is passed or
9538
9804
  // if the `insightsClient` version doesn't supports optional `init` calling.
9539
9805
  if (insightsInitParams || !isModernInsightsClient(insightsClient)) {
9540
- insightsClient('init', _objectSpread$8({
9806
+ insightsClient('init', _objectSpread$b({
9541
9807
  appId: appId,
9542
9808
  apiKey: apiKey,
9543
9809
  partial: true
@@ -9548,6 +9814,7 @@
9548
9814
  return {
9549
9815
  $$type: 'ais.insights',
9550
9816
  $$internal: $$internal,
9817
+ $$automatic: $$automatic,
9551
9818
  onStateChange: function onStateChange() {},
9552
9819
  subscribe: function subscribe() {
9553
9820
  if (!insightsClient.shouldAddScript) return;
@@ -9573,9 +9840,14 @@
9573
9840
  userToken: helper.state.userToken,
9574
9841
  clickAnalytics: helper.state.clickAnalytics
9575
9842
  };
9576
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$8(_objectSpread$8({}, helper.state), {}, {
9577
- clickAnalytics: true
9578
- }));
9843
+
9844
+ // We don't want to force clickAnalytics when the insights is enabled from the search response.
9845
+ // This means we don't enable insights for indices that don't opt in
9846
+ if (!$$automatic) {
9847
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), {}, {
9848
+ clickAnalytics: true
9849
+ }));
9850
+ }
9579
9851
  if (!$$internal) {
9580
9852
  instantSearchInstance.scheduleSearch();
9581
9853
  }
@@ -9586,7 +9858,7 @@
9586
9858
  }
9587
9859
  var existingToken = helper.state.userToken;
9588
9860
  function applyToken() {
9589
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$8(_objectSpread$8({}, helper.state), {}, {
9861
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), {}, {
9590
9862
  userToken: userToken
9591
9863
  }));
9592
9864
  if (existingToken && existingToken !== userToken) {
@@ -9642,6 +9914,9 @@
9642
9914
  } else if (event.insightsMethod) {
9643
9915
  // Source is used to differentiate events sent by instantsearch from those sent manually.
9644
9916
  event.payload.algoliaSource = ['instantsearch'];
9917
+ if ($$automatic) {
9918
+ event.payload.algoliaSource.push('instantsearch-automatic');
9919
+ }
9645
9920
  if (event.eventModifier === 'internal') {
9646
9921
  event.payload.algoliaSource.push('instantsearch-internal');
9647
9922
  }
@@ -9653,7 +9928,7 @@
9653
9928
  insightsClient('onUserTokenChange', undefined);
9654
9929
  instantSearchInstance.sendEventToInsights = noop;
9655
9930
  if (helper && initialParameters) {
9656
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$8(_objectSpread$8({}, helper.state), initialParameters));
9931
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$b(_objectSpread$b({}, helper.state), initialParameters));
9657
9932
  instantSearchInstance.scheduleSearch();
9658
9933
  }
9659
9934
  }
@@ -10581,14 +10856,14 @@
10581
10856
  stringify: stringify_1
10582
10857
  };
10583
10858
 
10584
- function _typeof$f(obj) {
10859
+ function _typeof$g(obj) {
10585
10860
  "@babel/helpers - typeof";
10586
10861
 
10587
- return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10862
+ return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10588
10863
  return typeof obj;
10589
10864
  } : function (obj) {
10590
10865
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10591
- }, _typeof$f(obj);
10866
+ }, _typeof$g(obj);
10592
10867
  }
10593
10868
  function _classCallCheck(instance, Constructor) {
10594
10869
  if (!(instance instanceof Constructor)) {
@@ -10601,7 +10876,7 @@
10601
10876
  descriptor.enumerable = descriptor.enumerable || false;
10602
10877
  descriptor.configurable = true;
10603
10878
  if ("value" in descriptor) descriptor.writable = true;
10604
- Object.defineProperty(target, _toPropertyKey$a(descriptor.key), descriptor);
10879
+ Object.defineProperty(target, _toPropertyKey$d(descriptor.key), descriptor);
10605
10880
  }
10606
10881
  }
10607
10882
  function _createClass(Constructor, protoProps, staticProps) {
@@ -10612,8 +10887,8 @@
10612
10887
  });
10613
10888
  return Constructor;
10614
10889
  }
10615
- function _defineProperty$a(obj, key, value) {
10616
- key = _toPropertyKey$a(key);
10890
+ function _defineProperty$d(obj, key, value) {
10891
+ key = _toPropertyKey$d(key);
10617
10892
  if (key in obj) {
10618
10893
  Object.defineProperty(obj, key, {
10619
10894
  value: value,
@@ -10626,16 +10901,16 @@
10626
10901
  }
10627
10902
  return obj;
10628
10903
  }
10629
- function _toPropertyKey$a(arg) {
10630
- var key = _toPrimitive$a(arg, "string");
10631
- return _typeof$f(key) === "symbol" ? key : String(key);
10904
+ function _toPropertyKey$d(arg) {
10905
+ var key = _toPrimitive$d(arg, "string");
10906
+ return _typeof$g(key) === "symbol" ? key : String(key);
10632
10907
  }
10633
- function _toPrimitive$a(input, hint) {
10634
- if (_typeof$f(input) !== "object" || input === null) return input;
10908
+ function _toPrimitive$d(input, hint) {
10909
+ if (_typeof$g(input) !== "object" || input === null) return input;
10635
10910
  var prim = input[Symbol.toPrimitive];
10636
10911
  if (prim !== undefined) {
10637
10912
  var res = prim.call(input, hint || "default");
10638
- if (_typeof$f(res) !== "object") return res;
10913
+ if (_typeof$g(res) !== "object") return res;
10639
10914
  throw new TypeError("@@toPrimitive must return a primitive value.");
10640
10915
  }
10641
10916
  return (hint === "string" ? String : Number)(input);
@@ -10664,11 +10939,11 @@
10664
10939
  dispose = _ref.dispose,
10665
10940
  push = _ref.push;
10666
10941
  _classCallCheck(this, BrowserHistory);
10667
- _defineProperty$a(this, "$$type", 'ais.browser');
10942
+ _defineProperty$d(this, "$$type", 'ais.browser');
10668
10943
  /**
10669
10944
  * Transforms a UI state into a title for the page.
10670
10945
  */
10671
- _defineProperty$a(this, "windowTitle", void 0);
10946
+ _defineProperty$d(this, "windowTitle", void 0);
10672
10947
  /**
10673
10948
  * Time in milliseconds before performing a write in the history.
10674
10949
  * It prevents from adding too many entries in the history and
@@ -10676,42 +10951,42 @@
10676
10951
  *
10677
10952
  * @default 400
10678
10953
  */
10679
- _defineProperty$a(this, "writeDelay", void 0);
10954
+ _defineProperty$d(this, "writeDelay", void 0);
10680
10955
  /**
10681
10956
  * Creates a full URL based on the route state.
10682
10957
  * The storage adaptor maps all syncable keys to the query string of the URL.
10683
10958
  */
10684
- _defineProperty$a(this, "_createURL", void 0);
10959
+ _defineProperty$d(this, "_createURL", void 0);
10685
10960
  /**
10686
10961
  * Parses the URL into a route state.
10687
10962
  * It should be symmetrical to `createURL`.
10688
10963
  */
10689
- _defineProperty$a(this, "parseURL", void 0);
10964
+ _defineProperty$d(this, "parseURL", void 0);
10690
10965
  /**
10691
10966
  * Returns the location to store in the history.
10692
10967
  * @default () => window.location
10693
10968
  */
10694
- _defineProperty$a(this, "getLocation", void 0);
10695
- _defineProperty$a(this, "writeTimer", void 0);
10696
- _defineProperty$a(this, "_onPopState", void 0);
10969
+ _defineProperty$d(this, "getLocation", void 0);
10970
+ _defineProperty$d(this, "writeTimer", void 0);
10971
+ _defineProperty$d(this, "_onPopState", void 0);
10697
10972
  /**
10698
10973
  * Indicates if last action was back/forward in the browser.
10699
10974
  */
10700
- _defineProperty$a(this, "inPopState", false);
10975
+ _defineProperty$d(this, "inPopState", false);
10701
10976
  /**
10702
10977
  * Indicates whether the history router is disposed or not.
10703
10978
  */
10704
- _defineProperty$a(this, "isDisposed", false);
10979
+ _defineProperty$d(this, "isDisposed", false);
10705
10980
  /**
10706
10981
  * Indicates the window.history.length before the last call to
10707
10982
  * window.history.pushState (called in `write`).
10708
10983
  * It allows to determine if a `pushState` has been triggered elsewhere,
10709
10984
  * and thus to prevent the `write` method from calling `pushState`.
10710
10985
  */
10711
- _defineProperty$a(this, "latestAcknowledgedHistory", 0);
10712
- _defineProperty$a(this, "_start", void 0);
10713
- _defineProperty$a(this, "_dispose", void 0);
10714
- _defineProperty$a(this, "_push", void 0);
10986
+ _defineProperty$d(this, "latestAcknowledgedHistory", 0);
10987
+ _defineProperty$d(this, "_start", void 0);
10988
+ _defineProperty$d(this, "_dispose", void 0);
10989
+ _defineProperty$d(this, "_push", void 0);
10715
10990
  this.windowTitle = windowTitle;
10716
10991
  this.writeTimer = undefined;
10717
10992
  this.writeDelay = writeDelay;
@@ -10941,17 +11216,17 @@
10941
11216
  });
10942
11217
  }
10943
11218
 
10944
- function _typeof$g(obj) {
11219
+ function _typeof$h(obj) {
10945
11220
  "@babel/helpers - typeof";
10946
11221
 
10947
- return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11222
+ return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
10948
11223
  return typeof obj;
10949
11224
  } : function (obj) {
10950
11225
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10951
- }, _typeof$g(obj);
11226
+ }, _typeof$h(obj);
10952
11227
  }
10953
11228
  var _excluded$5 = ["configure"];
10954
- function ownKeys$a(object, enumerableOnly) {
11229
+ function ownKeys$d(object, enumerableOnly) {
10955
11230
  var keys = Object.keys(object);
10956
11231
  if (Object.getOwnPropertySymbols) {
10957
11232
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10961,19 +11236,19 @@
10961
11236
  }
10962
11237
  return keys;
10963
11238
  }
10964
- function _objectSpread$9(target) {
11239
+ function _objectSpread$c(target) {
10965
11240
  for (var i = 1; i < arguments.length; i++) {
10966
11241
  var source = null != arguments[i] ? arguments[i] : {};
10967
- i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) {
10968
- _defineProperty$b(target, key, source[key]);
10969
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) {
11242
+ i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
11243
+ _defineProperty$e(target, key, source[key]);
11244
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
10970
11245
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10971
11246
  });
10972
11247
  }
10973
11248
  return target;
10974
11249
  }
10975
- function _defineProperty$b(obj, key, value) {
10976
- key = _toPropertyKey$b(key);
11250
+ function _defineProperty$e(obj, key, value) {
11251
+ key = _toPropertyKey$e(key);
10977
11252
  if (key in obj) {
10978
11253
  Object.defineProperty(obj, key, {
10979
11254
  value: value,
@@ -10986,16 +11261,16 @@
10986
11261
  }
10987
11262
  return obj;
10988
11263
  }
10989
- function _toPropertyKey$b(arg) {
10990
- var key = _toPrimitive$b(arg, "string");
10991
- return _typeof$g(key) === "symbol" ? key : String(key);
11264
+ function _toPropertyKey$e(arg) {
11265
+ var key = _toPrimitive$e(arg, "string");
11266
+ return _typeof$h(key) === "symbol" ? key : String(key);
10992
11267
  }
10993
- function _toPrimitive$b(input, hint) {
10994
- if (_typeof$g(input) !== "object" || input === null) return input;
11268
+ function _toPrimitive$e(input, hint) {
11269
+ if (_typeof$h(input) !== "object" || input === null) return input;
10995
11270
  var prim = input[Symbol.toPrimitive];
10996
11271
  if (prim !== undefined) {
10997
11272
  var res = prim.call(input, hint || "default");
10998
- if (_typeof$g(res) !== "object") return res;
11273
+ if (_typeof$h(res) !== "object") return res;
10999
11274
  throw new TypeError("@@toPrimitive must return a primitive value.");
11000
11275
  }
11001
11276
  return (hint === "string" ? String : Number)(input);
@@ -11041,28 +11316,28 @@
11041
11316
  $$type: 'ais.simple',
11042
11317
  stateToRoute: function stateToRoute(uiState) {
11043
11318
  return Object.keys(uiState).reduce(function (state, indexId) {
11044
- return _objectSpread$9(_objectSpread$9({}, state), {}, _defineProperty$b({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
11319
+ return _objectSpread$c(_objectSpread$c({}, state), {}, _defineProperty$e({}, indexId, getIndexStateWithoutConfigure(uiState[indexId])));
11045
11320
  }, {});
11046
11321
  },
11047
11322
  routeToState: function routeToState() {
11048
11323
  var routeState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
11049
11324
  return Object.keys(routeState).reduce(function (state, indexId) {
11050
- return _objectSpread$9(_objectSpread$9({}, state), {}, _defineProperty$b({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
11325
+ return _objectSpread$c(_objectSpread$c({}, state), {}, _defineProperty$e({}, indexId, getIndexStateWithoutConfigure(routeState[indexId])));
11051
11326
  }, {});
11052
11327
  }
11053
11328
  };
11054
11329
  }
11055
11330
 
11056
- function _typeof$h(obj) {
11331
+ function _typeof$i(obj) {
11057
11332
  "@babel/helpers - typeof";
11058
11333
 
11059
- return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11334
+ return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11060
11335
  return typeof obj;
11061
11336
  } : function (obj) {
11062
11337
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11063
- }, _typeof$h(obj);
11338
+ }, _typeof$i(obj);
11064
11339
  }
11065
- function ownKeys$b(object, enumerableOnly) {
11340
+ function ownKeys$e(object, enumerableOnly) {
11066
11341
  var keys = Object.keys(object);
11067
11342
  if (Object.getOwnPropertySymbols) {
11068
11343
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11072,19 +11347,19 @@
11072
11347
  }
11073
11348
  return keys;
11074
11349
  }
11075
- function _objectSpread$a(target) {
11350
+ function _objectSpread$d(target) {
11076
11351
  for (var i = 1; i < arguments.length; i++) {
11077
11352
  var source = null != arguments[i] ? arguments[i] : {};
11078
- i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
11079
- _defineProperty$c(target, key, source[key]);
11080
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
11353
+ i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
11354
+ _defineProperty$f(target, key, source[key]);
11355
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
11081
11356
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11082
11357
  });
11083
11358
  }
11084
11359
  return target;
11085
11360
  }
11086
- function _defineProperty$c(obj, key, value) {
11087
- key = _toPropertyKey$c(key);
11361
+ function _defineProperty$f(obj, key, value) {
11362
+ key = _toPropertyKey$f(key);
11088
11363
  if (key in obj) {
11089
11364
  Object.defineProperty(obj, key, {
11090
11365
  value: value,
@@ -11097,16 +11372,16 @@
11097
11372
  }
11098
11373
  return obj;
11099
11374
  }
11100
- function _toPropertyKey$c(arg) {
11101
- var key = _toPrimitive$c(arg, "string");
11102
- return _typeof$h(key) === "symbol" ? key : String(key);
11375
+ function _toPropertyKey$f(arg) {
11376
+ var key = _toPrimitive$f(arg, "string");
11377
+ return _typeof$i(key) === "symbol" ? key : String(key);
11103
11378
  }
11104
- function _toPrimitive$c(input, hint) {
11105
- if (_typeof$h(input) !== "object" || input === null) return input;
11379
+ function _toPrimitive$f(input, hint) {
11380
+ if (_typeof$i(input) !== "object" || input === null) return input;
11106
11381
  var prim = input[Symbol.toPrimitive];
11107
11382
  if (prim !== undefined) {
11108
11383
  var res = prim.call(input, hint || "default");
11109
- if (_typeof$h(res) !== "object") return res;
11384
+ if (_typeof$i(res) !== "object") return res;
11110
11385
  throw new TypeError("@@toPrimitive must return a primitive value.");
11111
11386
  }
11112
11387
  return (hint === "string" ? String : Number)(input);
@@ -11131,7 +11406,7 @@
11131
11406
  // any changes.
11132
11407
  instantSearchInstance.mainIndex.getWidgets().length === 0 ? instantSearchInstance._initialUiState : instantSearchInstance.mainIndex.getWidgetUiState({});
11133
11408
  var uiState = Object.keys(nextState).reduce(function (acc, indexId) {
11134
- return _objectSpread$a(_objectSpread$a({}, acc), {}, _defineProperty$c({}, indexId, nextState[indexId]));
11409
+ return _objectSpread$d(_objectSpread$d({}, acc), {}, _defineProperty$f({}, indexId, nextState[indexId]));
11135
11410
  }, previousUiState);
11136
11411
  var route = stateMapping.stateToRoute(uiState);
11137
11412
  return router.createURL(route);
@@ -11154,7 +11429,7 @@
11154
11429
  }
11155
11430
  },
11156
11431
  subscribe: function subscribe() {
11157
- instantSearchInstance._initialUiState = _objectSpread$a(_objectSpread$a({}, initialUiState), stateMapping.routeToState(router.read()));
11432
+ instantSearchInstance._initialUiState = _objectSpread$d(_objectSpread$d({}, initialUiState), stateMapping.routeToState(router.read()));
11158
11433
  router.onUpdate(function (route) {
11159
11434
  if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
11160
11435
  instantSearchInstance.setUiState(stateMapping.routeToState(route));
@@ -11176,16 +11451,16 @@
11176
11451
  return value.toLocaleString(numberLocale);
11177
11452
  }
11178
11453
 
11179
- function _typeof$i(obj) {
11454
+ function _typeof$j(obj) {
11180
11455
  "@babel/helpers - typeof";
11181
11456
 
11182
- return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11457
+ return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11183
11458
  return typeof obj;
11184
11459
  } : function (obj) {
11185
11460
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11186
- }, _typeof$i(obj);
11461
+ }, _typeof$j(obj);
11187
11462
  }
11188
- function ownKeys$c(object, enumerableOnly) {
11463
+ function ownKeys$f(object, enumerableOnly) {
11189
11464
  var keys = Object.keys(object);
11190
11465
  if (Object.getOwnPropertySymbols) {
11191
11466
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11195,19 +11470,19 @@
11195
11470
  }
11196
11471
  return keys;
11197
11472
  }
11198
- function _objectSpread$b(target) {
11473
+ function _objectSpread$e(target) {
11199
11474
  for (var i = 1; i < arguments.length; i++) {
11200
11475
  var source = null != arguments[i] ? arguments[i] : {};
11201
- i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
11202
- _defineProperty$d(target, key, source[key]);
11203
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
11476
+ i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
11477
+ _defineProperty$g(target, key, source[key]);
11478
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
11204
11479
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11205
11480
  });
11206
11481
  }
11207
11482
  return target;
11208
11483
  }
11209
- function _defineProperty$d(obj, key, value) {
11210
- key = _toPropertyKey$d(key);
11484
+ function _defineProperty$g(obj, key, value) {
11485
+ key = _toPropertyKey$g(key);
11211
11486
  if (key in obj) {
11212
11487
  Object.defineProperty(obj, key, {
11213
11488
  value: value,
@@ -11220,16 +11495,16 @@
11220
11495
  }
11221
11496
  return obj;
11222
11497
  }
11223
- function _toPropertyKey$d(arg) {
11224
- var key = _toPrimitive$d(arg, "string");
11225
- return _typeof$i(key) === "symbol" ? key : String(key);
11498
+ function _toPropertyKey$g(arg) {
11499
+ var key = _toPrimitive$g(arg, "string");
11500
+ return _typeof$j(key) === "symbol" ? key : String(key);
11226
11501
  }
11227
- function _toPrimitive$d(input, hint) {
11228
- if (_typeof$i(input) !== "object" || input === null) return input;
11502
+ function _toPrimitive$g(input, hint) {
11503
+ if (_typeof$j(input) !== "object" || input === null) return input;
11229
11504
  var prim = input[Symbol.toPrimitive];
11230
11505
  if (prim !== undefined) {
11231
11506
  var res = prim.call(input, hint || "default");
11232
- if (_typeof$i(res) !== "object") return res;
11507
+ if (_typeof$j(res) !== "object") return res;
11233
11508
  throw new TypeError("@@toPrimitive must return a primitive value.");
11234
11509
  }
11235
11510
  return (hint === "string" ? String : Number)(input);
@@ -11243,7 +11518,7 @@
11243
11518
  highlight: function highlight$1(options, render) {
11244
11519
  try {
11245
11520
  var highlightOptions = JSON.parse(options);
11246
- return render(highlight(_objectSpread$b(_objectSpread$b({}, highlightOptions), {}, {
11521
+ return render(highlight(_objectSpread$e(_objectSpread$e({}, highlightOptions), {}, {
11247
11522
  hit: this
11248
11523
  })));
11249
11524
  } catch (error) {
@@ -11253,7 +11528,7 @@
11253
11528
  reverseHighlight: function reverseHighlight$1(options, render) {
11254
11529
  try {
11255
11530
  var reverseHighlightOptions = JSON.parse(options);
11256
- return render(reverseHighlight(_objectSpread$b(_objectSpread$b({}, reverseHighlightOptions), {}, {
11531
+ return render(reverseHighlight(_objectSpread$e(_objectSpread$e({}, reverseHighlightOptions), {}, {
11257
11532
  hit: this
11258
11533
  })));
11259
11534
  } catch (error) {
@@ -11263,7 +11538,7 @@
11263
11538
  snippet: function snippet$1(options, render) {
11264
11539
  try {
11265
11540
  var snippetOptions = JSON.parse(options);
11266
- return render(snippet(_objectSpread$b(_objectSpread$b({}, snippetOptions), {}, {
11541
+ return render(snippet(_objectSpread$e(_objectSpread$e({}, snippetOptions), {}, {
11267
11542
  hit: this
11268
11543
  })));
11269
11544
  } catch (error) {
@@ -11273,7 +11548,7 @@
11273
11548
  reverseSnippet: function reverseSnippet$1(options, render) {
11274
11549
  try {
11275
11550
  var reverseSnippetOptions = JSON.parse(options);
11276
- return render(reverseSnippet(_objectSpread$b(_objectSpread$b({}, reverseSnippetOptions), {}, {
11551
+ return render(reverseSnippet(_objectSpread$e(_objectSpread$e({}, reverseSnippetOptions), {}, {
11277
11552
  hit: this
11278
11553
  })));
11279
11554
  } catch (error) {
@@ -11285,7 +11560,7 @@
11285
11560
  var _JSON$parse = JSON.parse(options),
11286
11561
  method = _JSON$parse.method,
11287
11562
  payload = _JSON$parse.payload;
11288
- return render(insights(method, _objectSpread$b({
11563
+ return render(insights(method, _objectSpread$e({
11289
11564
  objectIDs: [this.objectID]
11290
11565
  }, payload)));
11291
11566
  } catch (error) {
@@ -11295,18 +11570,18 @@
11295
11570
  };
11296
11571
  }
11297
11572
 
11298
- var version$2 = '4.58.0';
11573
+ var version$2 = '4.60.0';
11299
11574
 
11300
- function _typeof$j(obj) {
11575
+ function _typeof$k(obj) {
11301
11576
  "@babel/helpers - typeof";
11302
11577
 
11303
- return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11578
+ return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11304
11579
  return typeof obj;
11305
11580
  } : function (obj) {
11306
11581
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11307
- }, _typeof$j(obj);
11582
+ }, _typeof$k(obj);
11308
11583
  }
11309
- function ownKeys$d(object, enumerableOnly) {
11584
+ function ownKeys$g(object, enumerableOnly) {
11310
11585
  var keys = Object.keys(object);
11311
11586
  if (Object.getOwnPropertySymbols) {
11312
11587
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11316,12 +11591,12 @@
11316
11591
  }
11317
11592
  return keys;
11318
11593
  }
11319
- function _objectSpread$c(target) {
11594
+ function _objectSpread$f(target) {
11320
11595
  for (var i = 1; i < arguments.length; i++) {
11321
11596
  var source = null != arguments[i] ? arguments[i] : {};
11322
- i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) {
11323
- _defineProperty$e(target, key, source[key]);
11324
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) {
11597
+ i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
11598
+ _defineProperty$h(target, key, source[key]);
11599
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
11325
11600
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11326
11601
  });
11327
11602
  }
@@ -11338,7 +11613,7 @@
11338
11613
  descriptor.enumerable = descriptor.enumerable || false;
11339
11614
  descriptor.configurable = true;
11340
11615
  if ("value" in descriptor) descriptor.writable = true;
11341
- Object.defineProperty(target, _toPropertyKey$e(descriptor.key), descriptor);
11616
+ Object.defineProperty(target, _toPropertyKey$h(descriptor.key), descriptor);
11342
11617
  }
11343
11618
  }
11344
11619
  function _createClass$1(Constructor, protoProps, staticProps) {
@@ -11387,7 +11662,7 @@
11387
11662
  };
11388
11663
  }
11389
11664
  function _possibleConstructorReturn(self, call) {
11390
- if (call && (_typeof$j(call) === "object" || typeof call === "function")) {
11665
+ if (call && (_typeof$k(call) === "object" || typeof call === "function")) {
11391
11666
  return call;
11392
11667
  } else if (call !== void 0) {
11393
11668
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -11417,8 +11692,8 @@
11417
11692
  };
11418
11693
  return _getPrototypeOf(o);
11419
11694
  }
11420
- function _defineProperty$e(obj, key, value) {
11421
- key = _toPropertyKey$e(key);
11695
+ function _defineProperty$h(obj, key, value) {
11696
+ key = _toPropertyKey$h(key);
11422
11697
  if (key in obj) {
11423
11698
  Object.defineProperty(obj, key, {
11424
11699
  value: value,
@@ -11431,16 +11706,16 @@
11431
11706
  }
11432
11707
  return obj;
11433
11708
  }
11434
- function _toPropertyKey$e(arg) {
11435
- var key = _toPrimitive$e(arg, "string");
11436
- return _typeof$j(key) === "symbol" ? key : String(key);
11709
+ function _toPropertyKey$h(arg) {
11710
+ var key = _toPrimitive$h(arg, "string");
11711
+ return _typeof$k(key) === "symbol" ? key : String(key);
11437
11712
  }
11438
- function _toPrimitive$e(input, hint) {
11439
- if (_typeof$j(input) !== "object" || input === null) return input;
11713
+ function _toPrimitive$h(input, hint) {
11714
+ if (_typeof$k(input) !== "object" || input === null) return input;
11440
11715
  var prim = input[Symbol.toPrimitive];
11441
11716
  if (prim !== undefined) {
11442
11717
  var res = prim.call(input, hint || "default");
11443
- if (_typeof$j(res) !== "object") return res;
11718
+ if (_typeof$k(res) !== "object") return res;
11444
11719
  throw new TypeError("@@toPrimitive must return a primitive value.");
11445
11720
  }
11446
11721
  return (hint === "string" ? String : Number)(input);
@@ -11476,41 +11751,42 @@
11476
11751
  _this = _super.call(this);
11477
11752
 
11478
11753
  // prevent `render` event listening from causing a warning
11479
- _defineProperty$e(_assertThisInitialized(_this), "client", void 0);
11480
- _defineProperty$e(_assertThisInitialized(_this), "indexName", void 0);
11481
- _defineProperty$e(_assertThisInitialized(_this), "insightsClient", void 0);
11482
- _defineProperty$e(_assertThisInitialized(_this), "onStateChange", null);
11483
- _defineProperty$e(_assertThisInitialized(_this), "future", void 0);
11484
- _defineProperty$e(_assertThisInitialized(_this), "helper", void 0);
11485
- _defineProperty$e(_assertThisInitialized(_this), "mainHelper", void 0);
11486
- _defineProperty$e(_assertThisInitialized(_this), "mainIndex", void 0);
11487
- _defineProperty$e(_assertThisInitialized(_this), "started", void 0);
11488
- _defineProperty$e(_assertThisInitialized(_this), "templatesConfig", void 0);
11489
- _defineProperty$e(_assertThisInitialized(_this), "renderState", {});
11490
- _defineProperty$e(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
11491
- _defineProperty$e(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
11492
- _defineProperty$e(_assertThisInitialized(_this), "_initialUiState", void 0);
11493
- _defineProperty$e(_assertThisInitialized(_this), "_initialResults", void 0);
11494
- _defineProperty$e(_assertThisInitialized(_this), "_createURL", void 0);
11495
- _defineProperty$e(_assertThisInitialized(_this), "_searchFunction", void 0);
11496
- _defineProperty$e(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
11497
- _defineProperty$e(_assertThisInitialized(_this), "middleware", []);
11498
- _defineProperty$e(_assertThisInitialized(_this), "sendEventToInsights", void 0);
11754
+ _defineProperty$h(_assertThisInitialized(_this), "client", void 0);
11755
+ _defineProperty$h(_assertThisInitialized(_this), "indexName", void 0);
11756
+ _defineProperty$h(_assertThisInitialized(_this), "insightsClient", void 0);
11757
+ _defineProperty$h(_assertThisInitialized(_this), "onStateChange", null);
11758
+ _defineProperty$h(_assertThisInitialized(_this), "future", void 0);
11759
+ _defineProperty$h(_assertThisInitialized(_this), "helper", void 0);
11760
+ _defineProperty$h(_assertThisInitialized(_this), "mainHelper", void 0);
11761
+ _defineProperty$h(_assertThisInitialized(_this), "mainIndex", void 0);
11762
+ _defineProperty$h(_assertThisInitialized(_this), "started", void 0);
11763
+ _defineProperty$h(_assertThisInitialized(_this), "templatesConfig", void 0);
11764
+ _defineProperty$h(_assertThisInitialized(_this), "renderState", {});
11765
+ _defineProperty$h(_assertThisInitialized(_this), "_stalledSearchDelay", void 0);
11766
+ _defineProperty$h(_assertThisInitialized(_this), "_searchStalledTimer", void 0);
11767
+ _defineProperty$h(_assertThisInitialized(_this), "_initialUiState", void 0);
11768
+ _defineProperty$h(_assertThisInitialized(_this), "_initialResults", void 0);
11769
+ _defineProperty$h(_assertThisInitialized(_this), "_createURL", void 0);
11770
+ _defineProperty$h(_assertThisInitialized(_this), "_searchFunction", void 0);
11771
+ _defineProperty$h(_assertThisInitialized(_this), "_mainHelperSearch", void 0);
11772
+ _defineProperty$h(_assertThisInitialized(_this), "_insights", void 0);
11773
+ _defineProperty$h(_assertThisInitialized(_this), "middleware", []);
11774
+ _defineProperty$h(_assertThisInitialized(_this), "sendEventToInsights", void 0);
11499
11775
  /**
11500
11776
  * The status of the search. Can be "idle", "loading", "stalled", or "error".
11501
11777
  */
11502
- _defineProperty$e(_assertThisInitialized(_this), "status", 'idle');
11778
+ _defineProperty$h(_assertThisInitialized(_this), "status", 'idle');
11503
11779
  /**
11504
11780
  * The last returned error from the Search API.
11505
11781
  * The error gets cleared when the next valid search response is rendered.
11506
11782
  */
11507
- _defineProperty$e(_assertThisInitialized(_this), "error", undefined);
11508
- _defineProperty$e(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
11783
+ _defineProperty$h(_assertThisInitialized(_this), "error", undefined);
11784
+ _defineProperty$h(_assertThisInitialized(_this), "scheduleSearch", defer(function () {
11509
11785
  if (_this.started) {
11510
11786
  _this.mainHelper.search();
11511
11787
  }
11512
11788
  }));
11513
- _defineProperty$e(_assertThisInitialized(_this), "scheduleRender", defer(function () {
11789
+ _defineProperty$h(_assertThisInitialized(_this), "scheduleRender", defer(function () {
11514
11790
  var _this$mainHelper;
11515
11791
  var shouldResetStatus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
11516
11792
  if (!((_this$mainHelper = _this.mainHelper) !== null && _this$mainHelper !== void 0 && _this$mainHelper.hasPendingRequests())) {
@@ -11526,7 +11802,7 @@
11526
11802
  });
11527
11803
  _this.emit('render');
11528
11804
  }));
11529
- _defineProperty$e(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
11805
+ _defineProperty$h(_assertThisInitialized(_this), "onInternalStateChange", defer(function () {
11530
11806
  var nextUiState = _this.mainIndex.getWidgetUiState({});
11531
11807
  _this.middleware.forEach(function (_ref) {
11532
11808
  var instance = _ref.instance;
@@ -11544,7 +11820,7 @@
11544
11820
  _options$routing = options.routing,
11545
11821
  routing = _options$routing === void 0 ? null : _options$routing,
11546
11822
  _options$insights = options.insights,
11547
- insights = _options$insights === void 0 ? false : _options$insights,
11823
+ insights = _options$insights === void 0 ? undefined : _options$insights,
11548
11824
  searchFunction = options.searchFunction,
11549
11825
  _options$stalledSearc = options.stalledSearchDelay,
11550
11826
  stalledSearchDelay = _options$stalledSearc === void 0 ? 200 : _options$stalledSearc,
@@ -11555,7 +11831,7 @@
11555
11831
  _options$onStateChang = options.onStateChange,
11556
11832
  onStateChange = _options$onStateChang === void 0 ? null : _options$onStateChang,
11557
11833
  _options$future = options.future,
11558
- future = _options$future === void 0 ? _objectSpread$c(_objectSpread$c({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
11834
+ future = _options$future === void 0 ? _objectSpread$f(_objectSpread$f({}, INSTANTSEARCH_FUTURE_DEFAULTS), options.future || {}) : _options$future;
11559
11835
  if (searchClient === null) {
11560
11836
  throw new Error(withUsage$3('The `searchClient` option is required.'));
11561
11837
  }
@@ -11590,6 +11866,7 @@
11590
11866
  _this._createURL = defaultCreateURL;
11591
11867
  _this._initialUiState = initialUiState;
11592
11868
  _this._initialResults = null;
11869
+ _this._insights = insights;
11593
11870
  if (searchFunction) {
11594
11871
  _this._searchFunction = searchFunction;
11595
11872
  }
@@ -11600,8 +11877,9 @@
11600
11877
  _this.use(createRouterMiddleware(routerOptions));
11601
11878
  }
11602
11879
 
11603
- // This is the default middleware,
11604
- // any user-provided middleware will be added later and override this one.
11880
+ // This is the default Insights middleware,
11881
+ // added when `insights` is set to true by the user.
11882
+ // Any user-provided middleware will be added later and override this one.
11605
11883
  if (insights) {
11606
11884
  var insightsOptions = typeof insights === 'boolean' ? {} : insights;
11607
11885
  insightsOptions.$$internal = true;
@@ -11635,7 +11913,7 @@
11635
11913
  middleware[_key] = arguments[_key];
11636
11914
  }
11637
11915
  var newMiddlewareList = middleware.map(function (fn) {
11638
- var newMiddleware = _objectSpread$c({
11916
+ var newMiddleware = _objectSpread$f({
11639
11917
  $$type: '__unknown__',
11640
11918
  $$internal: false,
11641
11919
  subscribe: noop,
@@ -11851,6 +12129,7 @@
11851
12129
  uiState: this._initialUiState
11852
12130
  });
11853
12131
  if (this._initialResults) {
12132
+ hydrateSearchClient(this.client, this._initialResults);
11854
12133
  var originalScheduleSearch = this.scheduleSearch;
11855
12134
  // We don't schedule a first search when initial results are provided
11856
12135
  // because we already have the results to render. This skips the initial
@@ -11888,6 +12167,24 @@
11888
12167
  var instance = _ref6.instance;
11889
12168
  instance.started();
11890
12169
  });
12170
+
12171
+ // This is the automatic Insights middleware,
12172
+ // added when `insights` is unset and the initial results possess `queryID`.
12173
+ // Any user-provided middleware will be added later and override this one.
12174
+ if (typeof this._insights === 'undefined') {
12175
+ mainHelper.derivedHelpers[0].once('result', function () {
12176
+ var hasAutomaticInsights = _this3.mainIndex.getScopedResults().some(function (_ref7) {
12177
+ var results = _ref7.results;
12178
+ return results === null || results === void 0 ? void 0 : results._automaticInsights;
12179
+ });
12180
+ if (hasAutomaticInsights) {
12181
+ _this3.use(createInsightsMiddleware({
12182
+ $$internal: true,
12183
+ $$automatic: true
12184
+ }));
12185
+ }
12186
+ });
12187
+ }
11891
12188
  }
11892
12189
 
11893
12190
  /**
@@ -11917,8 +12214,8 @@
11917
12214
  (_this$mainHelper2 = this.mainHelper) === null || _this$mainHelper2 === void 0 ? void 0 : _this$mainHelper2.removeAllListeners();
11918
12215
  this.mainHelper = null;
11919
12216
  this.helper = null;
11920
- this.middleware.forEach(function (_ref7) {
11921
- var instance = _ref7.instance;
12217
+ this.middleware.forEach(function (_ref8) {
12218
+ var instance = _ref8.instance;
11922
12219
  instance.unsubscribe();
11923
12220
  });
11924
12221
  }
@@ -12233,16 +12530,16 @@
12233
12530
  }, children);
12234
12531
  }
12235
12532
 
12236
- function _typeof$k(obj) {
12533
+ function _typeof$l(obj) {
12237
12534
  "@babel/helpers - typeof";
12238
12535
 
12239
- return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12536
+ return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12240
12537
  return typeof obj;
12241
12538
  } : function (obj) {
12242
12539
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12243
- }, _typeof$k(obj);
12540
+ }, _typeof$l(obj);
12244
12541
  }
12245
- function ownKeys$e(object, enumerableOnly) {
12542
+ function ownKeys$h(object, enumerableOnly) {
12246
12543
  var keys = Object.keys(object);
12247
12544
  if (Object.getOwnPropertySymbols) {
12248
12545
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12252,19 +12549,19 @@
12252
12549
  }
12253
12550
  return keys;
12254
12551
  }
12255
- function _objectSpread$d(target) {
12552
+ function _objectSpread$g(target) {
12256
12553
  for (var i = 1; i < arguments.length; i++) {
12257
12554
  var source = null != arguments[i] ? arguments[i] : {};
12258
- i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) {
12259
- _defineProperty$f(target, key, source[key]);
12260
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) {
12555
+ i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
12556
+ _defineProperty$i(target, key, source[key]);
12557
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
12261
12558
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12262
12559
  });
12263
12560
  }
12264
12561
  return target;
12265
12562
  }
12266
- function _defineProperty$f(obj, key, value) {
12267
- key = _toPropertyKey$f(key);
12563
+ function _defineProperty$i(obj, key, value) {
12564
+ key = _toPropertyKey$i(key);
12268
12565
  if (key in obj) {
12269
12566
  Object.defineProperty(obj, key, {
12270
12567
  value: value,
@@ -12277,16 +12574,16 @@
12277
12574
  }
12278
12575
  return obj;
12279
12576
  }
12280
- function _toPropertyKey$f(arg) {
12281
- var key = _toPrimitive$f(arg, "string");
12282
- return _typeof$k(key) === "symbol" ? key : String(key);
12577
+ function _toPropertyKey$i(arg) {
12578
+ var key = _toPrimitive$i(arg, "string");
12579
+ return _typeof$l(key) === "symbol" ? key : String(key);
12283
12580
  }
12284
- function _toPrimitive$f(input, hint) {
12285
- if (_typeof$k(input) !== "object" || input === null) return input;
12581
+ function _toPrimitive$i(input, hint) {
12582
+ if (_typeof$l(input) !== "object" || input === null) return input;
12286
12583
  var prim = input[Symbol.toPrimitive];
12287
12584
  if (prim !== undefined) {
12288
12585
  var res = prim.call(input, hint || "default");
12289
- if (_typeof$k(res) !== "object") return res;
12586
+ if (_typeof$l(res) !== "object") return res;
12290
12587
  throw new TypeError("@@toPrimitive must return a primitive value.");
12291
12588
  }
12292
12589
  return (hint === "string" ? String : Number)(input);
@@ -12378,12 +12675,12 @@
12378
12675
  return {
12379
12676
  $$type: 'ais.breadcrumb',
12380
12677
  init: function init(initOptions) {
12381
- renderFn(_objectSpread$d(_objectSpread$d({}, this.getWidgetRenderState(initOptions)), {}, {
12678
+ renderFn(_objectSpread$g(_objectSpread$g({}, this.getWidgetRenderState(initOptions)), {}, {
12382
12679
  instantSearchInstance: initOptions.instantSearchInstance
12383
12680
  }), true);
12384
12681
  },
12385
12682
  render: function render(renderOptions) {
12386
- renderFn(_objectSpread$d(_objectSpread$d({}, this.getWidgetRenderState(renderOptions)), {}, {
12683
+ renderFn(_objectSpread$g(_objectSpread$g({}, this.getWidgetRenderState(renderOptions)), {}, {
12387
12684
  instantSearchInstance: renderOptions.instantSearchInstance
12388
12685
  }), false);
12389
12686
  },
@@ -12391,8 +12688,8 @@
12391
12688
  unmountFn();
12392
12689
  },
12393
12690
  getRenderState: function getRenderState(renderState, renderOptions) {
12394
- return _objectSpread$d(_objectSpread$d({}, renderState), {}, {
12395
- breadcrumb: _objectSpread$d(_objectSpread$d({}, renderState.breadcrumb), {}, _defineProperty$f({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
12691
+ return _objectSpread$g(_objectSpread$g({}, renderState), {}, {
12692
+ breadcrumb: _objectSpread$g(_objectSpread$g({}, renderState.breadcrumb), {}, _defineProperty$i({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
12396
12693
  });
12397
12694
  },
12398
12695
  getWidgetRenderState: function getWidgetRenderState(_ref2) {
@@ -12447,8 +12744,8 @@
12447
12744
  if (!path.length) {
12448
12745
  return uiState;
12449
12746
  }
12450
- return _objectSpread$d(_objectSpread$d({}, uiState), {}, {
12451
- hierarchicalMenu: _objectSpread$d(_objectSpread$d({}, uiState.hierarchicalMenu), {}, _defineProperty$f({}, hierarchicalFacetName, path))
12747
+ return _objectSpread$g(_objectSpread$g({}, uiState), {}, {
12748
+ hierarchicalMenu: _objectSpread$g(_objectSpread$g({}, uiState.hierarchicalMenu), {}, _defineProperty$i({}, hierarchicalFacetName, path))
12452
12749
  });
12453
12750
  },
12454
12751
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref4) {
@@ -12468,7 +12765,7 @@
12468
12765
  });
12469
12766
  if (!values) {
12470
12767
  return withFacetConfiguration.setQueryParameters({
12471
- hierarchicalFacetsRefinements: _objectSpread$d(_objectSpread$d({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$f({}, hierarchicalFacetName, []))
12768
+ hierarchicalFacetsRefinements: _objectSpread$g(_objectSpread$g({}, withFacetConfiguration.hierarchicalFacetsRefinements), {}, _defineProperty$i({}, hierarchicalFacetName, []))
12472
12769
  });
12473
12770
  }
12474
12771
  return withFacetConfiguration.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -12503,14 +12800,14 @@
12503
12800
  return useConnector(connectBreadcrumb, props, additionalWidgetProperties);
12504
12801
  }
12505
12802
 
12506
- function _typeof$l(obj) {
12803
+ function _typeof$m(obj) {
12507
12804
  "@babel/helpers - typeof";
12508
12805
 
12509
- return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12806
+ return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12510
12807
  return typeof obj;
12511
12808
  } : function (obj) {
12512
12809
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12513
- }, _typeof$l(obj);
12810
+ }, _typeof$m(obj);
12514
12811
  }
12515
12812
  function _toConsumableArray$3(arr) {
12516
12813
  return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$8(arr) || _nonIterableSpread$3();
@@ -12537,7 +12834,7 @@
12537
12834
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
12538
12835
  return arr2;
12539
12836
  }
12540
- function ownKeys$f(object, enumerableOnly) {
12837
+ function ownKeys$i(object, enumerableOnly) {
12541
12838
  var keys = Object.keys(object);
12542
12839
  if (Object.getOwnPropertySymbols) {
12543
12840
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12547,19 +12844,19 @@
12547
12844
  }
12548
12845
  return keys;
12549
12846
  }
12550
- function _objectSpread$e(target) {
12847
+ function _objectSpread$h(target) {
12551
12848
  for (var i = 1; i < arguments.length; i++) {
12552
12849
  var source = null != arguments[i] ? arguments[i] : {};
12553
- i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) {
12554
- _defineProperty$g(target, key, source[key]);
12555
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) {
12850
+ i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
12851
+ _defineProperty$j(target, key, source[key]);
12852
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
12556
12853
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12557
12854
  });
12558
12855
  }
12559
12856
  return target;
12560
12857
  }
12561
- function _defineProperty$g(obj, key, value) {
12562
- key = _toPropertyKey$g(key);
12858
+ function _defineProperty$j(obj, key, value) {
12859
+ key = _toPropertyKey$j(key);
12563
12860
  if (key in obj) {
12564
12861
  Object.defineProperty(obj, key, {
12565
12862
  value: value,
@@ -12572,16 +12869,16 @@
12572
12869
  }
12573
12870
  return obj;
12574
12871
  }
12575
- function _toPropertyKey$g(arg) {
12576
- var key = _toPrimitive$g(arg, "string");
12577
- return _typeof$l(key) === "symbol" ? key : String(key);
12872
+ function _toPropertyKey$j(arg) {
12873
+ var key = _toPrimitive$j(arg, "string");
12874
+ return _typeof$m(key) === "symbol" ? key : String(key);
12578
12875
  }
12579
- function _toPrimitive$g(input, hint) {
12580
- if (_typeof$l(input) !== "object" || input === null) return input;
12876
+ function _toPrimitive$j(input, hint) {
12877
+ if (_typeof$m(input) !== "object" || input === null) return input;
12581
12878
  var prim = input[Symbol.toPrimitive];
12582
12879
  if (prim !== undefined) {
12583
12880
  var res = prim.call(input, hint || "default");
12584
- if (_typeof$l(res) !== "object") return res;
12881
+ if (_typeof$m(res) !== "object") return res;
12585
12882
  throw new TypeError("@@toPrimitive must return a primitive value.");
12586
12883
  }
12587
12884
  return (hint === "string" ? String : Number)(input);
@@ -12623,13 +12920,13 @@
12623
12920
  $$type: 'ais.clearRefinements',
12624
12921
  init: function init(initOptions) {
12625
12922
  var instantSearchInstance = initOptions.instantSearchInstance;
12626
- renderFn(_objectSpread$e(_objectSpread$e({}, this.getWidgetRenderState(initOptions)), {}, {
12923
+ renderFn(_objectSpread$h(_objectSpread$h({}, this.getWidgetRenderState(initOptions)), {}, {
12627
12924
  instantSearchInstance: instantSearchInstance
12628
12925
  }), true);
12629
12926
  },
12630
12927
  render: function render(renderOptions) {
12631
12928
  var instantSearchInstance = renderOptions.instantSearchInstance;
12632
- renderFn(_objectSpread$e(_objectSpread$e({}, this.getWidgetRenderState(renderOptions)), {}, {
12929
+ renderFn(_objectSpread$h(_objectSpread$h({}, this.getWidgetRenderState(renderOptions)), {}, {
12633
12930
  instantSearchInstance: instantSearchInstance
12634
12931
  }), false);
12635
12932
  },
@@ -12637,7 +12934,7 @@
12637
12934
  unmountFn();
12638
12935
  },
12639
12936
  getRenderState: function getRenderState(renderState, renderOptions) {
12640
- return _objectSpread$e(_objectSpread$e({}, renderState), {}, {
12937
+ return _objectSpread$h(_objectSpread$h({}, renderState), {}, {
12641
12938
  clearRefinements: this.getWidgetRenderState(renderOptions)
12642
12939
  });
12643
12940
  },
@@ -12723,14 +13020,14 @@
12723
13020
  return useConnector(connectClearRefinements, props, additionalWidgetProperties);
12724
13021
  }
12725
13022
 
12726
- function _typeof$m(obj) {
13023
+ function _typeof$n(obj) {
12727
13024
  "@babel/helpers - typeof";
12728
13025
 
12729
- return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13026
+ return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12730
13027
  return typeof obj;
12731
13028
  } : function (obj) {
12732
13029
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
12733
- }, _typeof$m(obj);
13030
+ }, _typeof$n(obj);
12734
13031
  }
12735
13032
  function _toConsumableArray$4(arr) {
12736
13033
  return _arrayWithoutHoles$4(arr) || _iterableToArray$4(arr) || _unsupportedIterableToArray$9(arr) || _nonIterableSpread$4();
@@ -12757,7 +13054,7 @@
12757
13054
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
12758
13055
  return arr2;
12759
13056
  }
12760
- function ownKeys$g(object, enumerableOnly) {
13057
+ function ownKeys$j(object, enumerableOnly) {
12761
13058
  var keys = Object.keys(object);
12762
13059
  if (Object.getOwnPropertySymbols) {
12763
13060
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12767,19 +13064,19 @@
12767
13064
  }
12768
13065
  return keys;
12769
13066
  }
12770
- function _objectSpread$f(target) {
13067
+ function _objectSpread$i(target) {
12771
13068
  for (var i = 1; i < arguments.length; i++) {
12772
13069
  var source = null != arguments[i] ? arguments[i] : {};
12773
- i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) {
12774
- _defineProperty$h(target, key, source[key]);
12775
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) {
13070
+ i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
13071
+ _defineProperty$k(target, key, source[key]);
13072
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
12776
13073
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12777
13074
  });
12778
13075
  }
12779
13076
  return target;
12780
13077
  }
12781
- function _defineProperty$h(obj, key, value) {
12782
- key = _toPropertyKey$h(key);
13078
+ function _defineProperty$k(obj, key, value) {
13079
+ key = _toPropertyKey$k(key);
12783
13080
  if (key in obj) {
12784
13081
  Object.defineProperty(obj, key, {
12785
13082
  value: value,
@@ -12792,16 +13089,16 @@
12792
13089
  }
12793
13090
  return obj;
12794
13091
  }
12795
- function _toPropertyKey$h(arg) {
12796
- var key = _toPrimitive$h(arg, "string");
12797
- return _typeof$m(key) === "symbol" ? key : String(key);
13092
+ function _toPropertyKey$k(arg) {
13093
+ var key = _toPrimitive$k(arg, "string");
13094
+ return _typeof$n(key) === "symbol" ? key : String(key);
12798
13095
  }
12799
- function _toPrimitive$h(input, hint) {
12800
- if (_typeof$m(input) !== "object" || input === null) return input;
13096
+ function _toPrimitive$k(input, hint) {
13097
+ if (_typeof$n(input) !== "object" || input === null) return input;
12801
13098
  var prim = input[Symbol.toPrimitive];
12802
13099
  if (prim !== undefined) {
12803
13100
  var res = prim.call(input, hint || "default");
12804
- if (_typeof$m(res) !== "object") return res;
13101
+ if (_typeof$n(res) !== "object") return res;
12805
13102
  throw new TypeError("@@toPrimitive must return a primitive value.");
12806
13103
  }
12807
13104
  return (hint === "string" ? String : Number)(input);
@@ -12829,13 +13126,13 @@
12829
13126
  $$type: 'ais.currentRefinements',
12830
13127
  init: function init(initOptions) {
12831
13128
  var instantSearchInstance = initOptions.instantSearchInstance;
12832
- renderFn(_objectSpread$f(_objectSpread$f({}, this.getWidgetRenderState(initOptions)), {}, {
13129
+ renderFn(_objectSpread$i(_objectSpread$i({}, this.getWidgetRenderState(initOptions)), {}, {
12833
13130
  instantSearchInstance: instantSearchInstance
12834
13131
  }), true);
12835
13132
  },
12836
13133
  render: function render(renderOptions) {
12837
13134
  var instantSearchInstance = renderOptions.instantSearchInstance;
12838
- renderFn(_objectSpread$f(_objectSpread$f({}, this.getWidgetRenderState(renderOptions)), {}, {
13135
+ renderFn(_objectSpread$i(_objectSpread$i({}, this.getWidgetRenderState(renderOptions)), {}, {
12839
13136
  instantSearchInstance: instantSearchInstance
12840
13137
  }), false);
12841
13138
  },
@@ -12843,7 +13140,7 @@
12843
13140
  unmountFn();
12844
13141
  },
12845
13142
  getRenderState: function getRenderState(renderState, renderOptions) {
12846
- return _objectSpread$f(_objectSpread$f({}, renderState), {}, {
13143
+ return _objectSpread$i(_objectSpread$i({}, renderState), {}, {
12847
13144
  currentRefinements: this.getWidgetRenderState(renderOptions)
12848
13145
  });
12849
13146
  },
@@ -12994,16 +13291,16 @@
12994
13291
  return useConnector(connectCurrentRefinements, props, additionalWidgetProperties);
12995
13292
  }
12996
13293
 
12997
- function _typeof$n(obj) {
13294
+ function _typeof$o(obj) {
12998
13295
  "@babel/helpers - typeof";
12999
13296
 
13000
- return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13297
+ return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13001
13298
  return typeof obj;
13002
13299
  } : function (obj) {
13003
13300
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13004
- }, _typeof$n(obj);
13301
+ }, _typeof$o(obj);
13005
13302
  }
13006
- function ownKeys$h(object, enumerableOnly) {
13303
+ function ownKeys$k(object, enumerableOnly) {
13007
13304
  var keys = Object.keys(object);
13008
13305
  if (Object.getOwnPropertySymbols) {
13009
13306
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13013,19 +13310,19 @@
13013
13310
  }
13014
13311
  return keys;
13015
13312
  }
13016
- function _objectSpread$g(target) {
13313
+ function _objectSpread$j(target) {
13017
13314
  for (var i = 1; i < arguments.length; i++) {
13018
13315
  var source = null != arguments[i] ? arguments[i] : {};
13019
- i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) {
13020
- _defineProperty$i(target, key, source[key]);
13021
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) {
13316
+ i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13317
+ _defineProperty$l(target, key, source[key]);
13318
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
13022
13319
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13023
13320
  });
13024
13321
  }
13025
13322
  return target;
13026
13323
  }
13027
- function _defineProperty$i(obj, key, value) {
13028
- key = _toPropertyKey$i(key);
13324
+ function _defineProperty$l(obj, key, value) {
13325
+ key = _toPropertyKey$l(key);
13029
13326
  if (key in obj) {
13030
13327
  Object.defineProperty(obj, key, {
13031
13328
  value: value,
@@ -13038,16 +13335,16 @@
13038
13335
  }
13039
13336
  return obj;
13040
13337
  }
13041
- function _toPropertyKey$i(arg) {
13042
- var key = _toPrimitive$i(arg, "string");
13043
- return _typeof$n(key) === "symbol" ? key : String(key);
13338
+ function _toPropertyKey$l(arg) {
13339
+ var key = _toPrimitive$l(arg, "string");
13340
+ return _typeof$o(key) === "symbol" ? key : String(key);
13044
13341
  }
13045
- function _toPrimitive$i(input, hint) {
13046
- if (_typeof$n(input) !== "object" || input === null) return input;
13342
+ function _toPrimitive$l(input, hint) {
13343
+ if (_typeof$o(input) !== "object" || input === null) return input;
13047
13344
  var prim = input[Symbol.toPrimitive];
13048
13345
  if (prim !== undefined) {
13049
13346
  var res = prim.call(input, hint || "default");
13050
- if (_typeof$n(res) !== "object") return res;
13347
+ if (_typeof$o(res) !== "object") return res;
13051
13348
  throw new TypeError("@@toPrimitive must return a primitive value.");
13052
13349
  }
13053
13350
  return (hint === "string" ? String : Number)(input);
@@ -13157,7 +13454,7 @@
13157
13454
  var isFirstRendering = true;
13158
13455
  widgetState.internalToggleRefineOnMapMove = createInternalToggleRefinementOnMapMove(initArgs, noop);
13159
13456
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(initArgs, noop);
13160
- renderFn(_objectSpread$g(_objectSpread$g({}, this.getWidgetRenderState(initArgs)), {}, {
13457
+ renderFn(_objectSpread$j(_objectSpread$j({}, this.getWidgetRenderState(initArgs)), {}, {
13161
13458
  instantSearchInstance: instantSearchInstance
13162
13459
  }), isFirstRendering);
13163
13460
  },
@@ -13179,7 +13476,7 @@
13179
13476
  widgetState.internalSetMapMoveSinceLastRefine = createInternalSetMapMoveSinceLastRefine(renderArgs, this.render.bind(this));
13180
13477
  var widgetRenderState = this.getWidgetRenderState(renderArgs);
13181
13478
  sendEvent('view:internal', widgetRenderState.items);
13182
- renderFn(_objectSpread$g(_objectSpread$g({}, widgetRenderState), {}, {
13479
+ renderFn(_objectSpread$j(_objectSpread$j({}, widgetRenderState), {}, {
13183
13480
  instantSearchInstance: instantSearchInstance
13184
13481
  }), isFirstRendering);
13185
13482
  },
@@ -13216,7 +13513,7 @@
13216
13513
  };
13217
13514
  },
13218
13515
  getRenderState: function getRenderState(renderState, renderOptions) {
13219
- return _objectSpread$g(_objectSpread$g({}, renderState), {}, {
13516
+ return _objectSpread$j(_objectSpread$j({}, renderState), {}, {
13220
13517
  geoSearch: this.getWidgetRenderState(renderOptions)
13221
13518
  });
13222
13519
  },
@@ -13231,7 +13528,7 @@
13231
13528
  if (!boundingBox || uiState && uiState.geoSearch && uiState.geoSearch.boundingBox === boundingBox) {
13232
13529
  return uiState;
13233
13530
  }
13234
- return _objectSpread$g(_objectSpread$g({}, uiState), {}, {
13531
+ return _objectSpread$j(_objectSpread$j({}, uiState), {}, {
13235
13532
  geoSearch: {
13236
13533
  boundingBox: boundingBox
13237
13534
  }
@@ -13252,17 +13549,17 @@
13252
13549
  return useConnector(connectGeoSearch, props, additionalWidgetProperties);
13253
13550
  }
13254
13551
 
13255
- function _typeof$o(obj) {
13552
+ function _typeof$p(obj) {
13256
13553
  "@babel/helpers - typeof";
13257
13554
 
13258
- return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13555
+ return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13259
13556
  return typeof obj;
13260
13557
  } : function (obj) {
13261
13558
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13262
- }, _typeof$o(obj);
13559
+ }, _typeof$p(obj);
13263
13560
  }
13264
13561
  var _excluded$8 = ["name", "escapedValue", "data", "path"];
13265
- function ownKeys$i(object, enumerableOnly) {
13562
+ function ownKeys$l(object, enumerableOnly) {
13266
13563
  var keys = Object.keys(object);
13267
13564
  if (Object.getOwnPropertySymbols) {
13268
13565
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13272,19 +13569,19 @@
13272
13569
  }
13273
13570
  return keys;
13274
13571
  }
13275
- function _objectSpread$h(target) {
13572
+ function _objectSpread$k(target) {
13276
13573
  for (var i = 1; i < arguments.length; i++) {
13277
13574
  var source = null != arguments[i] ? arguments[i] : {};
13278
- i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) {
13279
- _defineProperty$j(target, key, source[key]);
13280
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) {
13575
+ i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
13576
+ _defineProperty$m(target, key, source[key]);
13577
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
13281
13578
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13282
13579
  });
13283
13580
  }
13284
13581
  return target;
13285
13582
  }
13286
- function _defineProperty$j(obj, key, value) {
13287
- key = _toPropertyKey$j(key);
13583
+ function _defineProperty$m(obj, key, value) {
13584
+ key = _toPropertyKey$m(key);
13288
13585
  if (key in obj) {
13289
13586
  Object.defineProperty(obj, key, {
13290
13587
  value: value,
@@ -13297,16 +13594,16 @@
13297
13594
  }
13298
13595
  return obj;
13299
13596
  }
13300
- function _toPropertyKey$j(arg) {
13301
- var key = _toPrimitive$j(arg, "string");
13302
- return _typeof$o(key) === "symbol" ? key : String(key);
13303
- }
13304
- function _toPrimitive$j(input, hint) {
13305
- if (_typeof$o(input) !== "object" || input === null) return input;
13597
+ function _toPropertyKey$m(arg) {
13598
+ var key = _toPrimitive$m(arg, "string");
13599
+ return _typeof$p(key) === "symbol" ? key : String(key);
13600
+ }
13601
+ function _toPrimitive$m(input, hint) {
13602
+ if (_typeof$p(input) !== "object" || input === null) return input;
13306
13603
  var prim = input[Symbol.toPrimitive];
13307
13604
  if (prim !== undefined) {
13308
13605
  var res = prim.call(input, hint || "default");
13309
- if (_typeof$o(res) !== "object") return res;
13606
+ if (_typeof$p(res) !== "object") return res;
13310
13607
  throw new TypeError("@@toPrimitive must return a primitive value.");
13311
13608
  }
13312
13609
  return (hint === "string" ? String : Number)(input);
@@ -13466,7 +13763,7 @@
13466
13763
  data = _ref2.data,
13467
13764
  path = _ref2.path,
13468
13765
  subValue = _objectWithoutProperties$4(_ref2, _excluded$8);
13469
- var item = _objectSpread$h(_objectSpread$h({}, subValue), {}, {
13766
+ var item = _objectSpread$k(_objectSpread$k({}, subValue), {}, {
13470
13767
  value: value,
13471
13768
  label: label,
13472
13769
  data: null
@@ -13481,14 +13778,14 @@
13481
13778
  $$type: 'ais.hierarchicalMenu',
13482
13779
  init: function init(initOptions) {
13483
13780
  var instantSearchInstance = initOptions.instantSearchInstance;
13484
- renderFn(_objectSpread$h(_objectSpread$h({}, this.getWidgetRenderState(initOptions)), {}, {
13781
+ renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(initOptions)), {}, {
13485
13782
  instantSearchInstance: instantSearchInstance
13486
13783
  }), true);
13487
13784
  },
13488
13785
  render: function render(renderOptions) {
13489
13786
  var instantSearchInstance = renderOptions.instantSearchInstance;
13490
13787
  toggleShowMore = createToggleShowMore(renderOptions, this);
13491
- renderFn(_objectSpread$h(_objectSpread$h({}, this.getWidgetRenderState(renderOptions)), {}, {
13788
+ renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(renderOptions)), {}, {
13492
13789
  instantSearchInstance: instantSearchInstance
13493
13790
  }), false);
13494
13791
  },
@@ -13498,8 +13795,8 @@
13498
13795
  return state.removeHierarchicalFacet(hierarchicalFacetName).setQueryParameter('maxValuesPerFacet', undefined);
13499
13796
  },
13500
13797
  getRenderState: function getRenderState(renderState, renderOptions) {
13501
- return _objectSpread$h(_objectSpread$h({}, renderState), {}, {
13502
- hierarchicalMenu: _objectSpread$h(_objectSpread$h({}, renderState.hierarchicalMenu), {}, _defineProperty$j({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
13798
+ return _objectSpread$k(_objectSpread$k({}, renderState), {}, {
13799
+ hierarchicalMenu: _objectSpread$k(_objectSpread$k({}, renderState.hierarchicalMenu), {}, _defineProperty$m({}, hierarchicalFacetName, this.getWidgetRenderState(renderOptions)))
13503
13800
  });
13504
13801
  },
13505
13802
  getWidgetRenderState: function getWidgetRenderState(_ref4) {
@@ -13575,8 +13872,8 @@
13575
13872
  if (!path.length) {
13576
13873
  return uiState;
13577
13874
  }
13578
- return _objectSpread$h(_objectSpread$h({}, uiState), {}, {
13579
- hierarchicalMenu: _objectSpread$h(_objectSpread$h({}, uiState.hierarchicalMenu), {}, _defineProperty$j({}, hierarchicalFacetName, path))
13875
+ return _objectSpread$k(_objectSpread$k({}, uiState), {}, {
13876
+ hierarchicalMenu: _objectSpread$k(_objectSpread$k({}, uiState.hierarchicalMenu), {}, _defineProperty$m({}, hierarchicalFacetName, path))
13580
13877
  });
13581
13878
  },
13582
13879
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -13600,7 +13897,7 @@
13600
13897
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
13601
13898
  if (!values) {
13602
13899
  return withMaxValuesPerFacet.setQueryParameters({
13603
- hierarchicalFacetsRefinements: _objectSpread$h(_objectSpread$h({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$j({}, hierarchicalFacetName, []))
13900
+ hierarchicalFacetsRefinements: _objectSpread$k(_objectSpread$k({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$m({}, hierarchicalFacetName, []))
13604
13901
  });
13605
13902
  }
13606
13903
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(hierarchicalFacetName, values.join(separator));
@@ -13613,16 +13910,16 @@
13613
13910
  return useConnector(connectHierarchicalMenu, props, additionalWidgetProperties);
13614
13911
  }
13615
13912
 
13616
- function _typeof$p(obj) {
13913
+ function _typeof$q(obj) {
13617
13914
  "@babel/helpers - typeof";
13618
13915
 
13619
- return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13916
+ return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13620
13917
  return typeof obj;
13621
13918
  } : function (obj) {
13622
13919
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13623
- }, _typeof$p(obj);
13920
+ }, _typeof$q(obj);
13624
13921
  }
13625
- function ownKeys$j(object, enumerableOnly) {
13922
+ function ownKeys$m(object, enumerableOnly) {
13626
13923
  var keys = Object.keys(object);
13627
13924
  if (Object.getOwnPropertySymbols) {
13628
13925
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13632,19 +13929,19 @@
13632
13929
  }
13633
13930
  return keys;
13634
13931
  }
13635
- function _objectSpread$i(target) {
13932
+ function _objectSpread$l(target) {
13636
13933
  for (var i = 1; i < arguments.length; i++) {
13637
13934
  var source = null != arguments[i] ? arguments[i] : {};
13638
- i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) {
13639
- _defineProperty$k(target, key, source[key]);
13640
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) {
13935
+ i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
13936
+ _defineProperty$n(target, key, source[key]);
13937
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
13641
13938
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13642
13939
  });
13643
13940
  }
13644
13941
  return target;
13645
13942
  }
13646
- function _defineProperty$k(obj, key, value) {
13647
- key = _toPropertyKey$k(key);
13943
+ function _defineProperty$n(obj, key, value) {
13944
+ key = _toPropertyKey$n(key);
13648
13945
  if (key in obj) {
13649
13946
  Object.defineProperty(obj, key, {
13650
13947
  value: value,
@@ -13657,16 +13954,16 @@
13657
13954
  }
13658
13955
  return obj;
13659
13956
  }
13660
- function _toPropertyKey$k(arg) {
13661
- var key = _toPrimitive$k(arg, "string");
13662
- return _typeof$p(key) === "symbol" ? key : String(key);
13957
+ function _toPropertyKey$n(arg) {
13958
+ var key = _toPrimitive$n(arg, "string");
13959
+ return _typeof$q(key) === "symbol" ? key : String(key);
13663
13960
  }
13664
- function _toPrimitive$k(input, hint) {
13665
- if (_typeof$p(input) !== "object" || input === null) return input;
13961
+ function _toPrimitive$n(input, hint) {
13962
+ if (_typeof$q(input) !== "object" || input === null) return input;
13666
13963
  var prim = input[Symbol.toPrimitive];
13667
13964
  if (prim !== undefined) {
13668
13965
  var res = prim.call(input, hint || "default");
13669
- if (_typeof$p(res) !== "object") return res;
13966
+ if (_typeof$q(res) !== "object") return res;
13670
13967
  throw new TypeError("@@toPrimitive must return a primitive value.");
13671
13968
  }
13672
13969
  return (hint === "string" ? String : Number)(input);
@@ -13691,19 +13988,19 @@
13691
13988
  return {
13692
13989
  $$type: 'ais.hits',
13693
13990
  init: function init(initOptions) {
13694
- renderFn(_objectSpread$i(_objectSpread$i({}, this.getWidgetRenderState(initOptions)), {}, {
13991
+ renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
13695
13992
  instantSearchInstance: initOptions.instantSearchInstance
13696
13993
  }), true);
13697
13994
  },
13698
13995
  render: function render(renderOptions) {
13699
13996
  var renderState = this.getWidgetRenderState(renderOptions);
13700
- renderFn(_objectSpread$i(_objectSpread$i({}, renderState), {}, {
13997
+ renderFn(_objectSpread$l(_objectSpread$l({}, renderState), {}, {
13701
13998
  instantSearchInstance: renderOptions.instantSearchInstance
13702
13999
  }), false);
13703
14000
  renderState.sendEvent('view:internal', renderState.hits);
13704
14001
  },
13705
14002
  getRenderState: function getRenderState(renderState, renderOptions) {
13706
- return _objectSpread$i(_objectSpread$i({}, renderState), {}, {
14003
+ return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
13707
14004
  hits: this.getWidgetRenderState(renderOptions)
13708
14005
  });
13709
14006
  },
@@ -13757,7 +14054,7 @@
13757
14054
  return state;
13758
14055
  }
13759
14056
  return state.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
13760
- return _objectSpread$i(_objectSpread$i({}, acc), {}, _defineProperty$k({}, key, undefined));
14057
+ return _objectSpread$l(_objectSpread$l({}, acc), {}, _defineProperty$n({}, key, undefined));
13761
14058
  }, {}));
13762
14059
  },
13763
14060
  getWidgetSearchParameters: function getWidgetSearchParameters(state) {
@@ -13774,14 +14071,14 @@
13774
14071
  return useConnector(connectHits, props, additionalWidgetProperties);
13775
14072
  }
13776
14073
 
13777
- function _typeof$q(obj) {
14074
+ function _typeof$r(obj) {
13778
14075
  "@babel/helpers - typeof";
13779
14076
 
13780
- return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14077
+ return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
13781
14078
  return typeof obj;
13782
14079
  } : function (obj) {
13783
14080
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13784
- }, _typeof$q(obj);
14081
+ }, _typeof$r(obj);
13785
14082
  }
13786
14083
  function _toConsumableArray$5(arr) {
13787
14084
  return _arrayWithoutHoles$5(arr) || _iterableToArray$5(arr) || _unsupportedIterableToArray$b(arr) || _nonIterableSpread$5();
@@ -13808,7 +14105,7 @@
13808
14105
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13809
14106
  return arr2;
13810
14107
  }
13811
- function ownKeys$k(object, enumerableOnly) {
14108
+ function ownKeys$n(object, enumerableOnly) {
13812
14109
  var keys = Object.keys(object);
13813
14110
  if (Object.getOwnPropertySymbols) {
13814
14111
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13818,19 +14115,19 @@
13818
14115
  }
13819
14116
  return keys;
13820
14117
  }
13821
- function _objectSpread$j(target) {
14118
+ function _objectSpread$m(target) {
13822
14119
  for (var i = 1; i < arguments.length; i++) {
13823
14120
  var source = null != arguments[i] ? arguments[i] : {};
13824
- i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) {
13825
- _defineProperty$l(target, key, source[key]);
13826
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) {
14121
+ i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
14122
+ _defineProperty$o(target, key, source[key]);
14123
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
13827
14124
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13828
14125
  });
13829
14126
  }
13830
14127
  return target;
13831
14128
  }
13832
- function _defineProperty$l(obj, key, value) {
13833
- key = _toPropertyKey$l(key);
14129
+ function _defineProperty$o(obj, key, value) {
14130
+ key = _toPropertyKey$o(key);
13834
14131
  if (key in obj) {
13835
14132
  Object.defineProperty(obj, key, {
13836
14133
  value: value,
@@ -13843,16 +14140,16 @@
13843
14140
  }
13844
14141
  return obj;
13845
14142
  }
13846
- function _toPropertyKey$l(arg) {
13847
- var key = _toPrimitive$l(arg, "string");
13848
- return _typeof$q(key) === "symbol" ? key : String(key);
14143
+ function _toPropertyKey$o(arg) {
14144
+ var key = _toPrimitive$o(arg, "string");
14145
+ return _typeof$r(key) === "symbol" ? key : String(key);
13849
14146
  }
13850
- function _toPrimitive$l(input, hint) {
13851
- if (_typeof$q(input) !== "object" || input === null) return input;
14147
+ function _toPrimitive$o(input, hint) {
14148
+ if (_typeof$r(input) !== "object" || input === null) return input;
13852
14149
  var prim = input[Symbol.toPrimitive];
13853
14150
  if (prim !== undefined) {
13854
14151
  var res = prim.call(input, hint || "default");
13855
- if (_typeof$q(res) !== "object") return res;
14152
+ if (_typeof$r(res) !== "object") return res;
13856
14153
  throw new TypeError("@@toPrimitive must return a primitive value.");
13857
14154
  }
13858
14155
  return (hint === "string" ? String : Number)(input);
@@ -13888,7 +14185,7 @@
13888
14185
  var normalizeItems = function normalizeItems(_ref2) {
13889
14186
  var hitsPerPage = _ref2.hitsPerPage;
13890
14187
  return items.map(function (item) {
13891
- return _objectSpread$j(_objectSpread$j({}, item), {}, {
14188
+ return _objectSpread$m(_objectSpread$m({}, item), {}, {
13892
14189
  isRefined: Number(item.value) === Number(hitsPerPage)
13893
14190
  });
13894
14191
  });
@@ -13930,13 +14227,13 @@
13930
14227
  label: ''
13931
14228
  }].concat(_toConsumableArray$5(items));
13932
14229
  }
13933
- renderFn(_objectSpread$j(_objectSpread$j({}, this.getWidgetRenderState(initOptions)), {}, {
14230
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
13934
14231
  instantSearchInstance: instantSearchInstance
13935
14232
  }), true);
13936
14233
  },
13937
14234
  render: function render(initOptions) {
13938
14235
  var instantSearchInstance = initOptions.instantSearchInstance;
13939
- renderFn(_objectSpread$j(_objectSpread$j({}, this.getWidgetRenderState(initOptions)), {}, {
14236
+ renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
13940
14237
  instantSearchInstance: instantSearchInstance
13941
14238
  }), false);
13942
14239
  },
@@ -13946,7 +14243,7 @@
13946
14243
  return state.setQueryParameter('hitsPerPage', undefined);
13947
14244
  },
13948
14245
  getRenderState: function getRenderState(renderState, renderOptions) {
13949
- return _objectSpread$j(_objectSpread$j({}, renderState), {}, {
14246
+ return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
13950
14247
  hitsPerPage: this.getWidgetRenderState(renderOptions)
13951
14248
  });
13952
14249
  },
@@ -13978,7 +14275,7 @@
13978
14275
  if (hitsPerPage === undefined || hitsPerPage === defaultItem.value) {
13979
14276
  return uiState;
13980
14277
  }
13981
- return _objectSpread$j(_objectSpread$j({}, uiState), {}, {
14278
+ return _objectSpread$m(_objectSpread$m({}, uiState), {}, {
13982
14279
  hitsPerPage: hitsPerPage
13983
14280
  });
13984
14281
  },
@@ -13996,18 +14293,18 @@
13996
14293
  return useConnector(connectHitsPerPage, props, additionalWidgetProperties);
13997
14294
  }
13998
14295
 
13999
- function _typeof$r(obj) {
14296
+ function _typeof$s(obj) {
14000
14297
  "@babel/helpers - typeof";
14001
14298
 
14002
- return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14299
+ return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14003
14300
  return typeof obj;
14004
14301
  } : function (obj) {
14005
14302
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14006
- }, _typeof$r(obj);
14303
+ }, _typeof$s(obj);
14007
14304
  }
14008
14305
  var _excluded$9 = ["page"],
14009
14306
  _excluded2$1 = ["clickAnalytics", "userToken"];
14010
- function ownKeys$l(object, enumerableOnly) {
14307
+ function ownKeys$o(object, enumerableOnly) {
14011
14308
  var keys = Object.keys(object);
14012
14309
  if (Object.getOwnPropertySymbols) {
14013
14310
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14017,19 +14314,19 @@
14017
14314
  }
14018
14315
  return keys;
14019
14316
  }
14020
- function _objectSpread$k(target) {
14317
+ function _objectSpread$n(target) {
14021
14318
  for (var i = 1; i < arguments.length; i++) {
14022
14319
  var source = null != arguments[i] ? arguments[i] : {};
14023
- i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) {
14024
- _defineProperty$m(target, key, source[key]);
14025
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) {
14320
+ i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
14321
+ _defineProperty$p(target, key, source[key]);
14322
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
14026
14323
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14027
14324
  });
14028
14325
  }
14029
14326
  return target;
14030
14327
  }
14031
- function _defineProperty$m(obj, key, value) {
14032
- key = _toPropertyKey$m(key);
14328
+ function _defineProperty$p(obj, key, value) {
14329
+ key = _toPropertyKey$p(key);
14033
14330
  if (key in obj) {
14034
14331
  Object.defineProperty(obj, key, {
14035
14332
  value: value,
@@ -14042,16 +14339,16 @@
14042
14339
  }
14043
14340
  return obj;
14044
14341
  }
14045
- function _toPropertyKey$m(arg) {
14046
- var key = _toPrimitive$m(arg, "string");
14047
- return _typeof$r(key) === "symbol" ? key : String(key);
14342
+ function _toPropertyKey$p(arg) {
14343
+ var key = _toPrimitive$p(arg, "string");
14344
+ return _typeof$s(key) === "symbol" ? key : String(key);
14048
14345
  }
14049
- function _toPrimitive$m(input, hint) {
14050
- if (_typeof$r(input) !== "object" || input === null) return input;
14346
+ function _toPrimitive$p(input, hint) {
14347
+ if (_typeof$s(input) !== "object" || input === null) return input;
14051
14348
  var prim = input[Symbol.toPrimitive];
14052
14349
  if (prim !== undefined) {
14053
14350
  var res = prim.call(input, hint || "default");
14054
- if (_typeof$r(res) !== "object") return res;
14351
+ if (_typeof$s(res) !== "object") return res;
14055
14352
  throw new TypeError("@@toPrimitive must return a primitive value.");
14056
14353
  }
14057
14354
  return (hint === "string" ? String : Number)(input);
@@ -14192,7 +14489,7 @@
14192
14489
  return function () {
14193
14490
  // Using the helper's `overrideStateWithoutTriggeringChangeEvent` method
14194
14491
  // avoid updating the browser URL when the user displays the previous page.
14195
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$k(_objectSpread$k({}, helper.state), {}, {
14492
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$n(_objectSpread$n({}, helper.state), {}, {
14196
14493
  page: getFirstReceivedPage(helper.state, cache.read({
14197
14494
  state: normalizeState(helper.state)
14198
14495
  }) || {}) - 1
@@ -14209,20 +14506,20 @@
14209
14506
  return {
14210
14507
  $$type: 'ais.infiniteHits',
14211
14508
  init: function init(initOptions) {
14212
- renderFn(_objectSpread$k(_objectSpread$k({}, this.getWidgetRenderState(initOptions)), {}, {
14509
+ renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
14213
14510
  instantSearchInstance: initOptions.instantSearchInstance
14214
14511
  }), true);
14215
14512
  },
14216
14513
  render: function render(renderOptions) {
14217
14514
  var instantSearchInstance = renderOptions.instantSearchInstance;
14218
14515
  var widgetRenderState = this.getWidgetRenderState(renderOptions);
14219
- renderFn(_objectSpread$k(_objectSpread$k({}, widgetRenderState), {}, {
14516
+ renderFn(_objectSpread$n(_objectSpread$n({}, widgetRenderState), {}, {
14220
14517
  instantSearchInstance: instantSearchInstance
14221
14518
  }), false);
14222
14519
  sendEvent('view:internal', widgetRenderState.currentPageHits);
14223
14520
  },
14224
14521
  getRenderState: function getRenderState(renderState, renderOptions) {
14225
- return _objectSpread$k(_objectSpread$k({}, renderState), {}, {
14522
+ return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
14226
14523
  infiniteHits: this.getWidgetRenderState(renderOptions)
14227
14524
  });
14228
14525
  },
@@ -14318,7 +14615,7 @@
14318
14615
  return stateWithoutPage;
14319
14616
  }
14320
14617
  return stateWithoutPage.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function (acc, key) {
14321
- return _objectSpread$k(_objectSpread$k({}, acc), {}, _defineProperty$m({}, key, undefined));
14618
+ return _objectSpread$n(_objectSpread$n({}, acc), {}, _defineProperty$p({}, key, undefined));
14322
14619
  }, {}));
14323
14620
  },
14324
14621
  getWidgetUiState: function getWidgetUiState(uiState, _ref9) {
@@ -14329,7 +14626,7 @@
14329
14626
  // because we don't want `page=1` in the URL
14330
14627
  return uiState;
14331
14628
  }
14332
- return _objectSpread$k(_objectSpread$k({}, uiState), {}, {
14629
+ return _objectSpread$n(_objectSpread$n({}, uiState), {}, {
14333
14630
  // The page in the UI state is incremented by one
14334
14631
  // to expose the user value (not `0`).
14335
14632
  page: page + 1
@@ -14356,14 +14653,14 @@
14356
14653
  }
14357
14654
 
14358
14655
  var _excluded$a = ["name", "escapedValue", "path"];
14359
- function _typeof$s(obj) {
14656
+ function _typeof$t(obj) {
14360
14657
  "@babel/helpers - typeof";
14361
14658
 
14362
- return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14659
+ return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14363
14660
  return typeof obj;
14364
14661
  } : function (obj) {
14365
14662
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14366
- }, _typeof$s(obj);
14663
+ }, _typeof$t(obj);
14367
14664
  }
14368
14665
  function _objectWithoutProperties$6(source, excluded) {
14369
14666
  if (source == null) return {};
@@ -14441,7 +14738,7 @@
14441
14738
  function _arrayWithHoles$7(arr) {
14442
14739
  if (Array.isArray(arr)) return arr;
14443
14740
  }
14444
- function ownKeys$m(object, enumerableOnly) {
14741
+ function ownKeys$p(object, enumerableOnly) {
14445
14742
  var keys = Object.keys(object);
14446
14743
  if (Object.getOwnPropertySymbols) {
14447
14744
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14451,19 +14748,19 @@
14451
14748
  }
14452
14749
  return keys;
14453
14750
  }
14454
- function _objectSpread$l(target) {
14751
+ function _objectSpread$o(target) {
14455
14752
  for (var i = 1; i < arguments.length; i++) {
14456
14753
  var source = null != arguments[i] ? arguments[i] : {};
14457
- i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) {
14458
- _defineProperty$n(target, key, source[key]);
14459
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) {
14754
+ i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
14755
+ _defineProperty$q(target, key, source[key]);
14756
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
14460
14757
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14461
14758
  });
14462
14759
  }
14463
14760
  return target;
14464
14761
  }
14465
- function _defineProperty$n(obj, key, value) {
14466
- key = _toPropertyKey$n(key);
14762
+ function _defineProperty$q(obj, key, value) {
14763
+ key = _toPropertyKey$q(key);
14467
14764
  if (key in obj) {
14468
14765
  Object.defineProperty(obj, key, {
14469
14766
  value: value,
@@ -14476,16 +14773,16 @@
14476
14773
  }
14477
14774
  return obj;
14478
14775
  }
14479
- function _toPropertyKey$n(arg) {
14480
- var key = _toPrimitive$n(arg, "string");
14481
- return _typeof$s(key) === "symbol" ? key : String(key);
14776
+ function _toPropertyKey$q(arg) {
14777
+ var key = _toPrimitive$q(arg, "string");
14778
+ return _typeof$t(key) === "symbol" ? key : String(key);
14482
14779
  }
14483
- function _toPrimitive$n(input, hint) {
14484
- if (_typeof$s(input) !== "object" || input === null) return input;
14780
+ function _toPrimitive$q(input, hint) {
14781
+ if (_typeof$t(input) !== "object" || input === null) return input;
14485
14782
  var prim = input[Symbol.toPrimitive];
14486
14783
  if (prim !== undefined) {
14487
14784
  var res = prim.call(input, hint || "default");
14488
- if (_typeof$s(res) !== "object") return res;
14785
+ if (_typeof$t(res) !== "object") return res;
14489
14786
  throw new TypeError("@@toPrimitive must return a primitive value.");
14490
14787
  }
14491
14788
  return (hint === "string" ? String : Number)(input);
@@ -14552,13 +14849,13 @@
14552
14849
  $$type: 'ais.menu',
14553
14850
  init: function init(initOptions) {
14554
14851
  var instantSearchInstance = initOptions.instantSearchInstance;
14555
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(initOptions)), {}, {
14852
+ renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initOptions)), {}, {
14556
14853
  instantSearchInstance: instantSearchInstance
14557
14854
  }), true);
14558
14855
  },
14559
14856
  render: function render(renderOptions) {
14560
14857
  var instantSearchInstance = renderOptions.instantSearchInstance;
14561
- renderFn(_objectSpread$l(_objectSpread$l({}, this.getWidgetRenderState(renderOptions)), {}, {
14858
+ renderFn(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(renderOptions)), {}, {
14562
14859
  instantSearchInstance: instantSearchInstance
14563
14860
  }), false);
14564
14861
  },
@@ -14568,8 +14865,8 @@
14568
14865
  return state.removeHierarchicalFacet(attribute).setQueryParameter('maxValuesPerFacet', undefined);
14569
14866
  },
14570
14867
  getRenderState: function getRenderState(renderState, renderOptions) {
14571
- return _objectSpread$l(_objectSpread$l({}, renderState), {}, {
14572
- menu: _objectSpread$l(_objectSpread$l({}, renderState.menu), {}, _defineProperty$n({}, attribute, this.getWidgetRenderState(renderOptions)))
14868
+ return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
14869
+ menu: _objectSpread$o(_objectSpread$o({}, renderState.menu), {}, _defineProperty$q({}, attribute, this.getWidgetRenderState(renderOptions)))
14573
14870
  });
14574
14871
  },
14575
14872
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -14622,7 +14919,7 @@
14622
14919
  value = _ref3.escapedValue,
14623
14920
  path = _ref3.path,
14624
14921
  item = _objectWithoutProperties$6(_ref3, _excluded$a);
14625
- return _objectSpread$l(_objectSpread$l({}, item), {}, {
14922
+ return _objectSpread$o(_objectSpread$o({}, item), {}, {
14626
14923
  label: label,
14627
14924
  value: value
14628
14925
  });
@@ -14650,8 +14947,8 @@
14650
14947
  if (!value) {
14651
14948
  return uiState;
14652
14949
  }
14653
- return _objectSpread$l(_objectSpread$l({}, uiState), {}, {
14654
- menu: _objectSpread$l(_objectSpread$l({}, uiState.menu), {}, _defineProperty$n({}, attribute, value))
14950
+ return _objectSpread$o(_objectSpread$o({}, uiState), {}, {
14951
+ menu: _objectSpread$o(_objectSpread$o({}, uiState.menu), {}, _defineProperty$q({}, attribute, value))
14655
14952
  });
14656
14953
  },
14657
14954
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref5) {
@@ -14669,7 +14966,7 @@
14669
14966
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
14670
14967
  if (!value) {
14671
14968
  return withMaxValuesPerFacet.setQueryParameters({
14672
- hierarchicalFacetsRefinements: _objectSpread$l(_objectSpread$l({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$n({}, attribute, []))
14969
+ hierarchicalFacetsRefinements: _objectSpread$o(_objectSpread$o({}, withMaxValuesPerFacet.hierarchicalFacetsRefinements), {}, _defineProperty$q({}, attribute, []))
14673
14970
  });
14674
14971
  }
14675
14972
  return withMaxValuesPerFacet.addHierarchicalFacetRefinement(attribute, value);
@@ -14682,14 +14979,14 @@
14682
14979
  return useConnector(connectMenu, props, additionalWidgetProperties);
14683
14980
  }
14684
14981
 
14685
- function _typeof$t(obj) {
14982
+ function _typeof$u(obj) {
14686
14983
  "@babel/helpers - typeof";
14687
14984
 
14688
- return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14985
+ return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
14689
14986
  return typeof obj;
14690
14987
  } : function (obj) {
14691
14988
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14692
- }, _typeof$t(obj);
14989
+ }, _typeof$u(obj);
14693
14990
  }
14694
14991
  function _createForOfIteratorHelper(o, allowArrayLike) {
14695
14992
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -14791,7 +15088,7 @@
14791
15088
  function _arrayWithHoles$8(arr) {
14792
15089
  if (Array.isArray(arr)) return arr;
14793
15090
  }
14794
- function ownKeys$n(object, enumerableOnly) {
15091
+ function ownKeys$q(object, enumerableOnly) {
14795
15092
  var keys = Object.keys(object);
14796
15093
  if (Object.getOwnPropertySymbols) {
14797
15094
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14801,19 +15098,19 @@
14801
15098
  }
14802
15099
  return keys;
14803
15100
  }
14804
- function _objectSpread$m(target) {
15101
+ function _objectSpread$p(target) {
14805
15102
  for (var i = 1; i < arguments.length; i++) {
14806
15103
  var source = null != arguments[i] ? arguments[i] : {};
14807
- i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) {
14808
- _defineProperty$o(target, key, source[key]);
14809
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) {
15104
+ i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
15105
+ _defineProperty$r(target, key, source[key]);
15106
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
14810
15107
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14811
15108
  });
14812
15109
  }
14813
15110
  return target;
14814
15111
  }
14815
- function _defineProperty$o(obj, key, value) {
14816
- key = _toPropertyKey$o(key);
15112
+ function _defineProperty$r(obj, key, value) {
15113
+ key = _toPropertyKey$r(key);
14817
15114
  if (key in obj) {
14818
15115
  Object.defineProperty(obj, key, {
14819
15116
  value: value,
@@ -14826,16 +15123,16 @@
14826
15123
  }
14827
15124
  return obj;
14828
15125
  }
14829
- function _toPropertyKey$o(arg) {
14830
- var key = _toPrimitive$o(arg, "string");
14831
- return _typeof$t(key) === "symbol" ? key : String(key);
15126
+ function _toPropertyKey$r(arg) {
15127
+ var key = _toPrimitive$r(arg, "string");
15128
+ return _typeof$u(key) === "symbol" ? key : String(key);
14832
15129
  }
14833
- function _toPrimitive$o(input, hint) {
14834
- if (_typeof$t(input) !== "object" || input === null) return input;
15130
+ function _toPrimitive$r(input, hint) {
15131
+ if (_typeof$u(input) !== "object" || input === null) return input;
14835
15132
  var prim = input[Symbol.toPrimitive];
14836
15133
  if (prim !== undefined) {
14837
15134
  var res = prim.call(input, hint || "default");
14838
- if (_typeof$t(res) !== "object") return res;
15135
+ if (_typeof$u(res) !== "object") return res;
14839
15136
  throw new TypeError("@@toPrimitive must return a primitive value.");
14840
15137
  }
14841
15138
  return (hint === "string" ? String : Number)(input);
@@ -14897,13 +15194,13 @@
14897
15194
  $$type: $$type$1,
14898
15195
  init: function init(initOptions) {
14899
15196
  var instantSearchInstance = initOptions.instantSearchInstance;
14900
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(initOptions)), {}, {
15197
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
14901
15198
  instantSearchInstance: instantSearchInstance
14902
15199
  }), true);
14903
15200
  },
14904
15201
  render: function render(renderOptions) {
14905
15202
  var instantSearchInstance = renderOptions.instantSearchInstance;
14906
- renderFn(_objectSpread$m(_objectSpread$m({}, this.getWidgetRenderState(renderOptions)), {}, {
15203
+ renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(renderOptions)), {}, {
14907
15204
  instantSearchInstance: instantSearchInstance
14908
15205
  }), false);
14909
15206
  },
@@ -14917,8 +15214,8 @@
14917
15214
  var values = searchParameters.getNumericRefinements(attribute);
14918
15215
  var equal = values['='] && values['='][0];
14919
15216
  if (equal || equal === 0) {
14920
- return _objectSpread$m(_objectSpread$m({}, uiState), {}, {
14921
- numericMenu: _objectSpread$m(_objectSpread$m({}, uiState.numericMenu), {}, _defineProperty$o({}, attribute, "".concat(values['='])))
15217
+ return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
15218
+ numericMenu: _objectSpread$p(_objectSpread$p({}, uiState.numericMenu), {}, _defineProperty$r({}, attribute, "".concat(values['='])))
14922
15219
  });
14923
15220
  }
14924
15221
  var min = values['>='] && values['>='][0] || '';
@@ -14926,8 +15223,8 @@
14926
15223
  if (min === '' && max === '') {
14927
15224
  return uiState;
14928
15225
  }
14929
- return _objectSpread$m(_objectSpread$m({}, uiState), {}, {
14930
- numericMenu: _objectSpread$m(_objectSpread$m({}, uiState.numericMenu), {}, _defineProperty$o({}, attribute, "".concat(min, ":").concat(max)))
15226
+ return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
15227
+ numericMenu: _objectSpread$p(_objectSpread$p({}, uiState.numericMenu), {}, _defineProperty$r({}, attribute, "".concat(min, ":").concat(max)))
14931
15228
  });
14932
15229
  },
14933
15230
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -14936,7 +15233,7 @@
14936
15233
  var withoutRefinements = searchParameters.clearRefinements(attribute);
14937
15234
  if (!value) {
14938
15235
  return withoutRefinements.setQueryParameters({
14939
- numericRefinements: _objectSpread$m(_objectSpread$m({}, withoutRefinements.numericRefinements), {}, _defineProperty$o({}, attribute, {}))
15236
+ numericRefinements: _objectSpread$p(_objectSpread$p({}, withoutRefinements.numericRefinements), {}, _defineProperty$r({}, attribute, {}))
14940
15237
  });
14941
15238
  }
14942
15239
  var isExact = value.indexOf(':') === -1;
@@ -14952,8 +15249,8 @@
14952
15249
  return withMaxRefinement;
14953
15250
  },
14954
15251
  getRenderState: function getRenderState(renderState, renderOptions) {
14955
- return _objectSpread$m(_objectSpread$m({}, renderState), {}, {
14956
- numericMenu: _objectSpread$m(_objectSpread$m({}, renderState.numericMenu), {}, _defineProperty$o({}, attribute, this.getWidgetRenderState(renderOptions)))
15252
+ return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
15253
+ numericMenu: _objectSpread$p(_objectSpread$p({}, renderState.numericMenu), {}, _defineProperty$r({}, attribute, this.getWidgetRenderState(renderOptions)))
14957
15254
  });
14958
15255
  },
14959
15256
  getWidgetRenderState: function getWidgetRenderState(_ref7) {
@@ -15095,14 +15392,14 @@
15095
15392
  return useConnector(connectNumericMenu, props, additionalWidgetProperties);
15096
15393
  }
15097
15394
 
15098
- function _typeof$u(obj) {
15395
+ function _typeof$v(obj) {
15099
15396
  "@babel/helpers - typeof";
15100
15397
 
15101
- return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15398
+ return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15102
15399
  return typeof obj;
15103
15400
  } : function (obj) {
15104
15401
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15105
- }, _typeof$u(obj);
15402
+ }, _typeof$v(obj);
15106
15403
  }
15107
15404
  function _classCallCheck$2(instance, Constructor) {
15108
15405
  if (!(instance instanceof Constructor)) {
@@ -15115,7 +15412,7 @@
15115
15412
  descriptor.enumerable = descriptor.enumerable || false;
15116
15413
  descriptor.configurable = true;
15117
15414
  if ("value" in descriptor) descriptor.writable = true;
15118
- Object.defineProperty(target, _toPropertyKey$p(descriptor.key), descriptor);
15415
+ Object.defineProperty(target, _toPropertyKey$s(descriptor.key), descriptor);
15119
15416
  }
15120
15417
  }
15121
15418
  function _createClass$2(Constructor, protoProps, staticProps) {
@@ -15126,8 +15423,8 @@
15126
15423
  });
15127
15424
  return Constructor;
15128
15425
  }
15129
- function _defineProperty$p(obj, key, value) {
15130
- key = _toPropertyKey$p(key);
15426
+ function _defineProperty$s(obj, key, value) {
15427
+ key = _toPropertyKey$s(key);
15131
15428
  if (key in obj) {
15132
15429
  Object.defineProperty(obj, key, {
15133
15430
  value: value,
@@ -15140,16 +15437,16 @@
15140
15437
  }
15141
15438
  return obj;
15142
15439
  }
15143
- function _toPropertyKey$p(arg) {
15144
- var key = _toPrimitive$p(arg, "string");
15145
- return _typeof$u(key) === "symbol" ? key : String(key);
15440
+ function _toPropertyKey$s(arg) {
15441
+ var key = _toPrimitive$s(arg, "string");
15442
+ return _typeof$v(key) === "symbol" ? key : String(key);
15146
15443
  }
15147
- function _toPrimitive$p(input, hint) {
15148
- if (_typeof$u(input) !== "object" || input === null) return input;
15444
+ function _toPrimitive$s(input, hint) {
15445
+ if (_typeof$v(input) !== "object" || input === null) return input;
15149
15446
  var prim = input[Symbol.toPrimitive];
15150
15447
  if (prim !== undefined) {
15151
15448
  var res = prim.call(input, hint || "default");
15152
- if (_typeof$u(res) !== "object") return res;
15449
+ if (_typeof$v(res) !== "object") return res;
15153
15450
  throw new TypeError("@@toPrimitive must return a primitive value.");
15154
15451
  }
15155
15452
  return (hint === "string" ? String : Number)(input);
@@ -15157,9 +15454,9 @@
15157
15454
  var Paginator = /*#__PURE__*/function () {
15158
15455
  function Paginator(params) {
15159
15456
  _classCallCheck$2(this, Paginator);
15160
- _defineProperty$p(this, "currentPage", void 0);
15161
- _defineProperty$p(this, "total", void 0);
15162
- _defineProperty$p(this, "padding", void 0);
15457
+ _defineProperty$s(this, "currentPage", void 0);
15458
+ _defineProperty$s(this, "total", void 0);
15459
+ _defineProperty$s(this, "padding", void 0);
15163
15460
  this.currentPage = params.currentPage;
15164
15461
  this.total = params.total;
15165
15462
  this.padding = params.padding;
@@ -15216,16 +15513,16 @@
15216
15513
  return Paginator;
15217
15514
  }();
15218
15515
 
15219
- function _typeof$v(obj) {
15516
+ function _typeof$w(obj) {
15220
15517
  "@babel/helpers - typeof";
15221
15518
 
15222
- return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15519
+ return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15223
15520
  return typeof obj;
15224
15521
  } : function (obj) {
15225
15522
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15226
- }, _typeof$v(obj);
15523
+ }, _typeof$w(obj);
15227
15524
  }
15228
- function ownKeys$o(object, enumerableOnly) {
15525
+ function ownKeys$r(object, enumerableOnly) {
15229
15526
  var keys = Object.keys(object);
15230
15527
  if (Object.getOwnPropertySymbols) {
15231
15528
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15235,19 +15532,19 @@
15235
15532
  }
15236
15533
  return keys;
15237
15534
  }
15238
- function _objectSpread$n(target) {
15535
+ function _objectSpread$q(target) {
15239
15536
  for (var i = 1; i < arguments.length; i++) {
15240
15537
  var source = null != arguments[i] ? arguments[i] : {};
15241
- i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) {
15242
- _defineProperty$q(target, key, source[key]);
15243
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) {
15538
+ i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
15539
+ _defineProperty$t(target, key, source[key]);
15540
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
15244
15541
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15245
15542
  });
15246
15543
  }
15247
15544
  return target;
15248
15545
  }
15249
- function _defineProperty$q(obj, key, value) {
15250
- key = _toPropertyKey$q(key);
15546
+ function _defineProperty$t(obj, key, value) {
15547
+ key = _toPropertyKey$t(key);
15251
15548
  if (key in obj) {
15252
15549
  Object.defineProperty(obj, key, {
15253
15550
  value: value,
@@ -15260,16 +15557,16 @@
15260
15557
  }
15261
15558
  return obj;
15262
15559
  }
15263
- function _toPropertyKey$q(arg) {
15264
- var key = _toPrimitive$q(arg, "string");
15265
- return _typeof$v(key) === "symbol" ? key : String(key);
15560
+ function _toPropertyKey$t(arg) {
15561
+ var key = _toPrimitive$t(arg, "string");
15562
+ return _typeof$w(key) === "symbol" ? key : String(key);
15266
15563
  }
15267
- function _toPrimitive$q(input, hint) {
15268
- if (_typeof$v(input) !== "object" || input === null) return input;
15564
+ function _toPrimitive$t(input, hint) {
15565
+ if (_typeof$w(input) !== "object" || input === null) return input;
15269
15566
  var prim = input[Symbol.toPrimitive];
15270
15567
  if (prim !== undefined) {
15271
15568
  var res = prim.call(input, hint || "default");
15272
- if (_typeof$v(res) !== "object") return res;
15569
+ if (_typeof$w(res) !== "object") return res;
15273
15570
  throw new TypeError("@@toPrimitive must return a primitive value.");
15274
15571
  }
15275
15572
  return (hint === "string" ? String : Number)(input);
@@ -15307,13 +15604,13 @@
15307
15604
  $$type: 'ais.pagination',
15308
15605
  init: function init(initOptions) {
15309
15606
  var instantSearchInstance = initOptions.instantSearchInstance;
15310
- renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(initOptions)), {}, {
15607
+ renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
15311
15608
  instantSearchInstance: instantSearchInstance
15312
15609
  }), true);
15313
15610
  },
15314
15611
  render: function render(renderOptions) {
15315
15612
  var instantSearchInstance = renderOptions.instantSearchInstance;
15316
- renderFn(_objectSpread$n(_objectSpread$n({}, this.getWidgetRenderState(renderOptions)), {}, {
15613
+ renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(renderOptions)), {}, {
15317
15614
  instantSearchInstance: instantSearchInstance
15318
15615
  }), false);
15319
15616
  },
@@ -15328,7 +15625,7 @@
15328
15625
  if (!page) {
15329
15626
  return uiState;
15330
15627
  }
15331
- return _objectSpread$n(_objectSpread$n({}, uiState), {}, {
15628
+ return _objectSpread$q(_objectSpread$q({}, uiState), {}, {
15332
15629
  page: page + 1
15333
15630
  });
15334
15631
  },
@@ -15351,7 +15648,7 @@
15351
15648
  if (!connectorState.createURL) {
15352
15649
  connectorState.createURL = function (page) {
15353
15650
  return createURL(function (uiState) {
15354
- return _objectSpread$n(_objectSpread$n({}, uiState), {}, {
15651
+ return _objectSpread$q(_objectSpread$q({}, uiState), {}, {
15355
15652
  page: page + 1
15356
15653
  });
15357
15654
  });
@@ -15377,7 +15674,7 @@
15377
15674
  };
15378
15675
  },
15379
15676
  getRenderState: function getRenderState(renderState, renderOptions) {
15380
- return _objectSpread$n(_objectSpread$n({}, renderState), {}, {
15677
+ return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
15381
15678
  pagination: this.getWidgetRenderState(renderOptions)
15382
15679
  });
15383
15680
  }
@@ -15404,16 +15701,16 @@
15404
15701
  };
15405
15702
  }
15406
15703
 
15407
- function _typeof$w(obj) {
15704
+ function _typeof$x(obj) {
15408
15705
  "@babel/helpers - typeof";
15409
15706
 
15410
- return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15707
+ return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15411
15708
  return typeof obj;
15412
15709
  } : function (obj) {
15413
15710
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15414
- }, _typeof$w(obj);
15711
+ }, _typeof$x(obj);
15415
15712
  }
15416
- function ownKeys$p(object, enumerableOnly) {
15713
+ function ownKeys$s(object, enumerableOnly) {
15417
15714
  var keys = Object.keys(object);
15418
15715
  if (Object.getOwnPropertySymbols) {
15419
15716
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15423,19 +15720,19 @@
15423
15720
  }
15424
15721
  return keys;
15425
15722
  }
15426
- function _objectSpread$o(target) {
15723
+ function _objectSpread$r(target) {
15427
15724
  for (var i = 1; i < arguments.length; i++) {
15428
15725
  var source = null != arguments[i] ? arguments[i] : {};
15429
- i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) {
15430
- _defineProperty$r(target, key, source[key]);
15431
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) {
15726
+ i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
15727
+ _defineProperty$u(target, key, source[key]);
15728
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
15432
15729
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15433
15730
  });
15434
15731
  }
15435
15732
  return target;
15436
15733
  }
15437
- function _defineProperty$r(obj, key, value) {
15438
- key = _toPropertyKey$r(key);
15734
+ function _defineProperty$u(obj, key, value) {
15735
+ key = _toPropertyKey$u(key);
15439
15736
  if (key in obj) {
15440
15737
  Object.defineProperty(obj, key, {
15441
15738
  value: value,
@@ -15448,16 +15745,16 @@
15448
15745
  }
15449
15746
  return obj;
15450
15747
  }
15451
- function _toPropertyKey$r(arg) {
15452
- var key = _toPrimitive$r(arg, "string");
15453
- return _typeof$w(key) === "symbol" ? key : String(key);
15748
+ function _toPropertyKey$u(arg) {
15749
+ var key = _toPrimitive$u(arg, "string");
15750
+ return _typeof$x(key) === "symbol" ? key : String(key);
15454
15751
  }
15455
- function _toPrimitive$r(input, hint) {
15456
- if (_typeof$w(input) !== "object" || input === null) return input;
15752
+ function _toPrimitive$u(input, hint) {
15753
+ if (_typeof$x(input) !== "object" || input === null) return input;
15457
15754
  var prim = input[Symbol.toPrimitive];
15458
15755
  if (prim !== undefined) {
15459
15756
  var res = prim.call(input, hint || "default");
15460
- if (_typeof$w(res) !== "object") return res;
15757
+ if (_typeof$x(res) !== "object") return res;
15461
15758
  throw new TypeError("@@toPrimitive must return a primitive value.");
15462
15759
  }
15463
15760
  return (hint === "string" ? String : Number)(input);
@@ -15537,7 +15834,7 @@
15537
15834
  var nextRuleContexts = [].concat(_toConsumableArray$7(initialRuleContexts), _toConsumableArray$7(newRuleContexts));
15538
15835
  var ruleContexts = transformRuleContexts(nextRuleContexts).slice(0, 10);
15539
15836
  if (!isEqual(previousRuleContexts, ruleContexts)) {
15540
- helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$o(_objectSpread$o({}, sharedHelperState), {}, {
15837
+ helper.overrideStateWithoutTriggeringChangeEvent(_objectSpread$r(_objectSpread$r({}, sharedHelperState), {}, {
15541
15838
  ruleContexts: ruleContexts
15542
15839
  }));
15543
15840
  }
@@ -15596,13 +15893,13 @@
15596
15893
  // any `ruleContexts` needed based on the `trackedFilters`.
15597
15894
  helper.on('change', onHelperChange);
15598
15895
  }
15599
- _render(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(initOptions)), {}, {
15896
+ _render(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
15600
15897
  instantSearchInstance: instantSearchInstance
15601
15898
  }), true);
15602
15899
  },
15603
15900
  render: function render(renderOptions) {
15604
15901
  var instantSearchInstance = renderOptions.instantSearchInstance;
15605
- _render(_objectSpread$o(_objectSpread$o({}, this.getWidgetRenderState(renderOptions)), {}, {
15902
+ _render(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(renderOptions)), {}, {
15606
15903
  instantSearchInstance: instantSearchInstance
15607
15904
  }), false);
15608
15905
  },
@@ -15620,7 +15917,7 @@
15620
15917
  };
15621
15918
  },
15622
15919
  getRenderState: function getRenderState(renderState, renderOptions) {
15623
- return _objectSpread$o(_objectSpread$o({}, renderState), {}, {
15920
+ return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
15624
15921
  queryRules: this.getWidgetRenderState(renderOptions)
15625
15922
  });
15626
15923
  },
@@ -15642,16 +15939,16 @@
15642
15939
  return useConnector(connectQueryRules, props, additionalWidgetProperties);
15643
15940
  }
15644
15941
 
15645
- function _typeof$x(obj) {
15942
+ function _typeof$y(obj) {
15646
15943
  "@babel/helpers - typeof";
15647
15944
 
15648
- return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15945
+ return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15649
15946
  return typeof obj;
15650
15947
  } : function (obj) {
15651
15948
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15652
- }, _typeof$x(obj);
15949
+ }, _typeof$y(obj);
15653
15950
  }
15654
- function ownKeys$q(object, enumerableOnly) {
15951
+ function ownKeys$t(object, enumerableOnly) {
15655
15952
  var keys = Object.keys(object);
15656
15953
  if (Object.getOwnPropertySymbols) {
15657
15954
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15661,19 +15958,19 @@
15661
15958
  }
15662
15959
  return keys;
15663
15960
  }
15664
- function _objectSpread$p(target) {
15961
+ function _objectSpread$s(target) {
15665
15962
  for (var i = 1; i < arguments.length; i++) {
15666
15963
  var source = null != arguments[i] ? arguments[i] : {};
15667
- i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) {
15668
- _defineProperty$s(target, key, source[key]);
15669
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) {
15964
+ i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
15965
+ _defineProperty$v(target, key, source[key]);
15966
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
15670
15967
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15671
15968
  });
15672
15969
  }
15673
15970
  return target;
15674
15971
  }
15675
- function _defineProperty$s(obj, key, value) {
15676
- key = _toPropertyKey$s(key);
15972
+ function _defineProperty$v(obj, key, value) {
15973
+ key = _toPropertyKey$v(key);
15677
15974
  if (key in obj) {
15678
15975
  Object.defineProperty(obj, key, {
15679
15976
  value: value,
@@ -15686,16 +15983,16 @@
15686
15983
  }
15687
15984
  return obj;
15688
15985
  }
15689
- function _toPropertyKey$s(arg) {
15690
- var key = _toPrimitive$s(arg, "string");
15691
- return _typeof$x(key) === "symbol" ? key : String(key);
15986
+ function _toPropertyKey$v(arg) {
15987
+ var key = _toPrimitive$v(arg, "string");
15988
+ return _typeof$y(key) === "symbol" ? key : String(key);
15692
15989
  }
15693
- function _toPrimitive$s(input, hint) {
15694
- if (_typeof$x(input) !== "object" || input === null) return input;
15990
+ function _toPrimitive$v(input, hint) {
15991
+ if (_typeof$y(input) !== "object" || input === null) return input;
15695
15992
  var prim = input[Symbol.toPrimitive];
15696
15993
  if (prim !== undefined) {
15697
15994
  var res = prim.call(input, hint || "default");
15698
- if (_typeof$x(res) !== "object") return res;
15995
+ if (_typeof$y(res) !== "object") return res;
15699
15996
  throw new TypeError("@@toPrimitive must return a primitive value.");
15700
15997
  }
15701
15998
  return (hint === "string" ? String : Number)(input);
@@ -15920,18 +16217,18 @@
15920
16217
  return {
15921
16218
  $$type: $$type$2,
15922
16219
  init: function init(initOptions) {
15923
- renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(initOptions)), {}, {
16220
+ renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(initOptions)), {}, {
15924
16221
  instantSearchInstance: initOptions.instantSearchInstance
15925
16222
  }), true);
15926
16223
  },
15927
16224
  render: function render(renderOptions) {
15928
- renderFn(_objectSpread$p(_objectSpread$p({}, this.getWidgetRenderState(renderOptions)), {}, {
16225
+ renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(renderOptions)), {}, {
15929
16226
  instantSearchInstance: renderOptions.instantSearchInstance
15930
16227
  }), false);
15931
16228
  },
15932
16229
  getRenderState: function getRenderState(renderState, renderOptions) {
15933
- return _objectSpread$p(_objectSpread$p({}, renderState), {}, {
15934
- range: _objectSpread$p(_objectSpread$p({}, renderState.range), {}, _defineProperty$s({}, attribute, this.getWidgetRenderState(renderOptions)))
16230
+ return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
16231
+ range: _objectSpread$s(_objectSpread$s({}, renderState.range), {}, _defineProperty$v({}, attribute, this.getWidgetRenderState(renderOptions)))
15935
16232
  });
15936
16233
  },
15937
16234
  getWidgetRenderState: function getWidgetRenderState(_ref13) {
@@ -15966,7 +16263,7 @@
15966
16263
  format: rangeFormatter,
15967
16264
  range: currentRange,
15968
16265
  sendEvent: createSendEvent(instantSearchInstance),
15969
- widgetParams: _objectSpread$p(_objectSpread$p({}, widgetParams), {}, {
16266
+ widgetParams: _objectSpread$s(_objectSpread$s({}, widgetParams), {}, {
15970
16267
  precision: precision
15971
16268
  }),
15972
16269
  start: start
@@ -15987,14 +16284,14 @@
15987
16284
  if (min.length === 0 && max.length === 0) {
15988
16285
  return uiState;
15989
16286
  }
15990
- return _objectSpread$p(_objectSpread$p({}, uiState), {}, {
15991
- range: _objectSpread$p(_objectSpread$p({}, uiState.range), {}, _defineProperty$s({}, attribute, "".concat(min, ":").concat(max)))
16287
+ return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
16288
+ range: _objectSpread$s(_objectSpread$s({}, uiState.range), {}, _defineProperty$v({}, attribute, "".concat(min, ":").concat(max)))
15992
16289
  });
15993
16290
  },
15994
16291
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref16) {
15995
16292
  var uiState = _ref16.uiState;
15996
16293
  var widgetSearchParameters = searchParameters.addDisjunctiveFacet(attribute).setQueryParameters({
15997
- numericRefinements: _objectSpread$p(_objectSpread$p({}, searchParameters.numericRefinements), {}, _defineProperty$s({}, attribute, {}))
16294
+ numericRefinements: _objectSpread$s(_objectSpread$s({}, searchParameters.numericRefinements), {}, _defineProperty$v({}, attribute, {}))
15998
16295
  });
15999
16296
  if (isFiniteNumber(minBound)) {
16000
16297
  widgetSearchParameters = widgetSearchParameters.addNumericRefinement(attribute, '>=', minBound);
@@ -16028,18 +16325,18 @@
16028
16325
  return useConnector(connectRange, props, additionalWidgetProperties);
16029
16326
  }
16030
16327
 
16031
- function _typeof$y(obj) {
16328
+ function _typeof$z(obj) {
16032
16329
  "@babel/helpers - typeof";
16033
16330
 
16034
- return _typeof$y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16331
+ return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16035
16332
  return typeof obj;
16036
16333
  } : function (obj) {
16037
16334
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16038
- }, _typeof$y(obj);
16335
+ }, _typeof$z(obj);
16039
16336
  }
16040
16337
  var _excluded$b = ["name", "escapedValue"],
16041
16338
  _excluded2$2 = ["escapedValue", "value"];
16042
- function ownKeys$r(object, enumerableOnly) {
16339
+ function ownKeys$u(object, enumerableOnly) {
16043
16340
  var keys = Object.keys(object);
16044
16341
  if (Object.getOwnPropertySymbols) {
16045
16342
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16049,19 +16346,19 @@
16049
16346
  }
16050
16347
  return keys;
16051
16348
  }
16052
- function _objectSpread$q(target) {
16349
+ function _objectSpread$t(target) {
16053
16350
  for (var i = 1; i < arguments.length; i++) {
16054
16351
  var source = null != arguments[i] ? arguments[i] : {};
16055
- i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) {
16056
- _defineProperty$t(target, key, source[key]);
16057
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) {
16352
+ i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
16353
+ _defineProperty$w(target, key, source[key]);
16354
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
16058
16355
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16059
16356
  });
16060
16357
  }
16061
16358
  return target;
16062
16359
  }
16063
- function _defineProperty$t(obj, key, value) {
16064
- key = _toPropertyKey$t(key);
16360
+ function _defineProperty$w(obj, key, value) {
16361
+ key = _toPropertyKey$w(key);
16065
16362
  if (key in obj) {
16066
16363
  Object.defineProperty(obj, key, {
16067
16364
  value: value,
@@ -16074,16 +16371,16 @@
16074
16371
  }
16075
16372
  return obj;
16076
16373
  }
16077
- function _toPropertyKey$t(arg) {
16078
- var key = _toPrimitive$t(arg, "string");
16079
- return _typeof$y(key) === "symbol" ? key : String(key);
16374
+ function _toPropertyKey$w(arg) {
16375
+ var key = _toPrimitive$w(arg, "string");
16376
+ return _typeof$z(key) === "symbol" ? key : String(key);
16080
16377
  }
16081
- function _toPrimitive$t(input, hint) {
16082
- if (_typeof$y(input) !== "object" || input === null) return input;
16378
+ function _toPrimitive$w(input, hint) {
16379
+ if (_typeof$z(input) !== "object" || input === null) return input;
16083
16380
  var prim = input[Symbol.toPrimitive];
16084
16381
  if (prim !== undefined) {
16085
16382
  var res = prim.call(input, hint || "default");
16086
- if (_typeof$y(res) !== "object") return res;
16383
+ if (_typeof$z(res) !== "object") return res;
16087
16384
  throw new TypeError("@@toPrimitive must return a primitive value.");
16088
16385
  }
16089
16386
  return (hint === "string" ? String : Number)(input);
@@ -16167,7 +16464,7 @@
16167
16464
  var label = _ref2.name,
16168
16465
  value = _ref2.escapedValue,
16169
16466
  item = _objectWithoutProperties$7(_ref2, _excluded$b);
16170
- return _objectSpread$q(_objectSpread$q({}, item), {}, {
16467
+ return _objectSpread$t(_objectSpread$t({}, item), {}, {
16171
16468
  value: value,
16172
16469
  label: label,
16173
16470
  highlighted: label
@@ -16204,7 +16501,7 @@
16204
16501
  searchResults = renderOptions.results;
16205
16502
  if (query === '' && lastItemsFromMainSearch) {
16206
16503
  // render with previous data from the helper.
16207
- renderFn(_objectSpread$q(_objectSpread$q({}, widget.getWidgetRenderState(_objectSpread$q(_objectSpread$q({}, renderOptions), {}, {
16504
+ renderFn(_objectSpread$t(_objectSpread$t({}, widget.getWidgetRenderState(_objectSpread$t(_objectSpread$t({}, renderOptions), {}, {
16208
16505
  results: lastResultsFromMainSearch
16209
16506
  }))), {}, {
16210
16507
  instantSearchInstance: instantSearchInstance
@@ -16224,14 +16521,14 @@
16224
16521
  var escapedValue = _ref3.escapedValue,
16225
16522
  value = _ref3.value,
16226
16523
  item = _objectWithoutProperties$7(_ref3, _excluded2$2);
16227
- return _objectSpread$q(_objectSpread$q({}, item), {}, {
16524
+ return _objectSpread$t(_objectSpread$t({}, item), {}, {
16228
16525
  value: escapedValue,
16229
16526
  label: value
16230
16527
  });
16231
16528
  }), {
16232
16529
  results: searchResults
16233
16530
  });
16234
- renderFn(_objectSpread$q(_objectSpread$q({}, widget.getWidgetRenderState(_objectSpread$q(_objectSpread$q({}, renderOptions), {}, {
16531
+ renderFn(_objectSpread$t(_objectSpread$t({}, widget.getWidgetRenderState(_objectSpread$t(_objectSpread$t({}, renderOptions), {}, {
16235
16532
  results: lastResultsFromMainSearch
16236
16533
  }))), {}, {
16237
16534
  items: normalizedFacetValues,
@@ -16248,18 +16545,18 @@
16248
16545
  return {
16249
16546
  $$type: 'ais.refinementList',
16250
16547
  init: function init(initOptions) {
16251
- renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(initOptions)), {}, {
16548
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
16252
16549
  instantSearchInstance: initOptions.instantSearchInstance
16253
16550
  }), true);
16254
16551
  },
16255
16552
  render: function render(renderOptions) {
16256
- renderFn(_objectSpread$q(_objectSpread$q({}, this.getWidgetRenderState(renderOptions)), {}, {
16553
+ renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
16257
16554
  instantSearchInstance: renderOptions.instantSearchInstance
16258
16555
  }), false);
16259
16556
  },
16260
16557
  getRenderState: function getRenderState(renderState, renderOptions) {
16261
- return _objectSpread$q(_objectSpread$q({}, renderState), {}, {
16262
- refinementList: _objectSpread$q(_objectSpread$q({}, renderState.refinementList), {}, _defineProperty$t({}, attribute, this.getWidgetRenderState(renderOptions)))
16558
+ return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
16559
+ refinementList: _objectSpread$t(_objectSpread$t({}, renderState.refinementList), {}, _defineProperty$w({}, attribute, this.getWidgetRenderState(renderOptions)))
16263
16560
  });
16264
16561
  },
16265
16562
  getWidgetRenderState: function getWidgetRenderState(renderOptions) {
@@ -16352,8 +16649,8 @@
16352
16649
  if (!values.length) {
16353
16650
  return uiState;
16354
16651
  }
16355
- return _objectSpread$q(_objectSpread$q({}, uiState), {}, {
16356
- refinementList: _objectSpread$q(_objectSpread$q({}, uiState.refinementList), {}, _defineProperty$t({}, attribute, values))
16652
+ return _objectSpread$t(_objectSpread$t({}, uiState), {}, {
16653
+ refinementList: _objectSpread$t(_objectSpread$t({}, uiState.refinementList), {}, _defineProperty$w({}, attribute, values))
16357
16654
  });
16358
16655
  },
16359
16656
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref6) {
@@ -16373,7 +16670,7 @@
16373
16670
  var withMaxValuesPerFacet = withFacetConfiguration.setQueryParameter('maxValuesPerFacet', nextMaxValuesPerFacet);
16374
16671
  if (!values) {
16375
16672
  var key = isDisjunctive ? 'disjunctiveFacetsRefinements' : 'facetsRefinements';
16376
- return withMaxValuesPerFacet.setQueryParameters(_defineProperty$t({}, key, _objectSpread$q(_objectSpread$q({}, withMaxValuesPerFacet[key]), {}, _defineProperty$t({}, attribute, []))));
16673
+ return withMaxValuesPerFacet.setQueryParameters(_defineProperty$w({}, key, _objectSpread$t(_objectSpread$t({}, withMaxValuesPerFacet[key]), {}, _defineProperty$w({}, attribute, []))));
16377
16674
  }
16378
16675
  return values.reduce(function (parameters, value) {
16379
16676
  return isDisjunctive ? parameters.addDisjunctiveFacetRefinement(attribute, value) : parameters.addFacetRefinement(attribute, value);
@@ -16387,16 +16684,16 @@
16387
16684
  return useConnector(connectRefinementList, props, additionalWidgetProperties);
16388
16685
  }
16389
16686
 
16390
- function _typeof$z(obj) {
16687
+ function _typeof$A(obj) {
16391
16688
  "@babel/helpers - typeof";
16392
16689
 
16393
- return _typeof$z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16690
+ return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16394
16691
  return typeof obj;
16395
16692
  } : function (obj) {
16396
16693
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16397
- }, _typeof$z(obj);
16694
+ }, _typeof$A(obj);
16398
16695
  }
16399
- function ownKeys$s(object, enumerableOnly) {
16696
+ function ownKeys$v(object, enumerableOnly) {
16400
16697
  var keys = Object.keys(object);
16401
16698
  if (Object.getOwnPropertySymbols) {
16402
16699
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16406,19 +16703,19 @@
16406
16703
  }
16407
16704
  return keys;
16408
16705
  }
16409
- function _objectSpread$r(target) {
16706
+ function _objectSpread$u(target) {
16410
16707
  for (var i = 1; i < arguments.length; i++) {
16411
16708
  var source = null != arguments[i] ? arguments[i] : {};
16412
- i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) {
16413
- _defineProperty$u(target, key, source[key]);
16414
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) {
16709
+ i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16710
+ _defineProperty$x(target, key, source[key]);
16711
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
16415
16712
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16416
16713
  });
16417
16714
  }
16418
16715
  return target;
16419
16716
  }
16420
- function _defineProperty$u(obj, key, value) {
16421
- key = _toPropertyKey$u(key);
16717
+ function _defineProperty$x(obj, key, value) {
16718
+ key = _toPropertyKey$x(key);
16422
16719
  if (key in obj) {
16423
16720
  Object.defineProperty(obj, key, {
16424
16721
  value: value,
@@ -16431,16 +16728,16 @@
16431
16728
  }
16432
16729
  return obj;
16433
16730
  }
16434
- function _toPropertyKey$u(arg) {
16435
- var key = _toPrimitive$u(arg, "string");
16436
- return _typeof$z(key) === "symbol" ? key : String(key);
16731
+ function _toPropertyKey$x(arg) {
16732
+ var key = _toPrimitive$x(arg, "string");
16733
+ return _typeof$A(key) === "symbol" ? key : String(key);
16437
16734
  }
16438
- function _toPrimitive$u(input, hint) {
16439
- if (_typeof$z(input) !== "object" || input === null) return input;
16735
+ function _toPrimitive$x(input, hint) {
16736
+ if (_typeof$A(input) !== "object" || input === null) return input;
16440
16737
  var prim = input[Symbol.toPrimitive];
16441
16738
  if (prim !== undefined) {
16442
16739
  var res = prim.call(input, hint || "default");
16443
- if (_typeof$z(res) !== "object") return res;
16740
+ if (_typeof$A(res) !== "object") return res;
16444
16741
  throw new TypeError("@@toPrimitive must return a primitive value.");
16445
16742
  }
16446
16743
  return (hint === "string" ? String : Number)(input);
@@ -16482,13 +16779,13 @@
16482
16779
  $$type: 'ais.searchBox',
16483
16780
  init: function init(initOptions) {
16484
16781
  var instantSearchInstance = initOptions.instantSearchInstance;
16485
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(initOptions)), {}, {
16782
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
16486
16783
  instantSearchInstance: instantSearchInstance
16487
16784
  }), true);
16488
16785
  },
16489
16786
  render: function render(renderOptions) {
16490
16787
  var instantSearchInstance = renderOptions.instantSearchInstance;
16491
- renderFn(_objectSpread$r(_objectSpread$r({}, this.getWidgetRenderState(renderOptions)), {}, {
16788
+ renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
16492
16789
  instantSearchInstance: instantSearchInstance
16493
16790
  }), false);
16494
16791
  },
@@ -16498,7 +16795,7 @@
16498
16795
  return state.setQueryParameter('query', undefined);
16499
16796
  },
16500
16797
  getRenderState: function getRenderState(renderState, renderOptions) {
16501
- return _objectSpread$r(_objectSpread$r({}, renderState), {}, {
16798
+ return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
16502
16799
  searchBox: this.getWidgetRenderState(renderOptions)
16503
16800
  });
16504
16801
  },
@@ -16530,7 +16827,7 @@
16530
16827
  if (query === '' || uiState && uiState.query === query) {
16531
16828
  return uiState;
16532
16829
  }
16533
- return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
16830
+ return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
16534
16831
  query: query
16535
16832
  });
16536
16833
  },
@@ -16546,16 +16843,16 @@
16546
16843
  return useConnector(connectSearchBox, props, additionalWidgetProperties);
16547
16844
  }
16548
16845
 
16549
- function _typeof$A(obj) {
16846
+ function _typeof$B(obj) {
16550
16847
  "@babel/helpers - typeof";
16551
16848
 
16552
- return _typeof$A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16849
+ return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16553
16850
  return typeof obj;
16554
16851
  } : function (obj) {
16555
16852
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16556
- }, _typeof$A(obj);
16853
+ }, _typeof$B(obj);
16557
16854
  }
16558
- function ownKeys$t(object, enumerableOnly) {
16855
+ function ownKeys$w(object, enumerableOnly) {
16559
16856
  var keys = Object.keys(object);
16560
16857
  if (Object.getOwnPropertySymbols) {
16561
16858
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16565,19 +16862,19 @@
16565
16862
  }
16566
16863
  return keys;
16567
16864
  }
16568
- function _objectSpread$s(target) {
16865
+ function _objectSpread$v(target) {
16569
16866
  for (var i = 1; i < arguments.length; i++) {
16570
16867
  var source = null != arguments[i] ? arguments[i] : {};
16571
- i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) {
16572
- _defineProperty$v(target, key, source[key]);
16573
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) {
16868
+ i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
16869
+ _defineProperty$y(target, key, source[key]);
16870
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
16574
16871
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16575
16872
  });
16576
16873
  }
16577
16874
  return target;
16578
16875
  }
16579
- function _defineProperty$v(obj, key, value) {
16580
- key = _toPropertyKey$v(key);
16876
+ function _defineProperty$y(obj, key, value) {
16877
+ key = _toPropertyKey$y(key);
16581
16878
  if (key in obj) {
16582
16879
  Object.defineProperty(obj, key, {
16583
16880
  value: value,
@@ -16590,16 +16887,16 @@
16590
16887
  }
16591
16888
  return obj;
16592
16889
  }
16593
- function _toPropertyKey$v(arg) {
16594
- var key = _toPrimitive$v(arg, "string");
16595
- return _typeof$A(key) === "symbol" ? key : String(key);
16890
+ function _toPropertyKey$y(arg) {
16891
+ var key = _toPrimitive$y(arg, "string");
16892
+ return _typeof$B(key) === "symbol" ? key : String(key);
16596
16893
  }
16597
- function _toPrimitive$v(input, hint) {
16598
- if (_typeof$A(input) !== "object" || input === null) return input;
16894
+ function _toPrimitive$y(input, hint) {
16895
+ if (_typeof$B(input) !== "object" || input === null) return input;
16599
16896
  var prim = input[Symbol.toPrimitive];
16600
16897
  if (prim !== undefined) {
16601
16898
  var res = prim.call(input, hint || "default");
16602
- if (_typeof$A(res) !== "object") return res;
16899
+ if (_typeof$B(res) !== "object") return res;
16603
16900
  throw new TypeError("@@toPrimitive must return a primitive value.");
16604
16901
  }
16605
16902
  return (hint === "string" ? String : Number)(input);
@@ -16638,13 +16935,13 @@
16638
16935
  var isCurrentIndexInItems = find$1(items, function (item) {
16639
16936
  return item.value === currentIndex;
16640
16937
  });
16641
- renderFn(_objectSpread$s(_objectSpread$s({}, widgetRenderState), {}, {
16938
+ renderFn(_objectSpread$v(_objectSpread$v({}, widgetRenderState), {}, {
16642
16939
  instantSearchInstance: instantSearchInstance
16643
16940
  }), true);
16644
16941
  },
16645
16942
  render: function render(renderOptions) {
16646
16943
  var instantSearchInstance = renderOptions.instantSearchInstance;
16647
- renderFn(_objectSpread$s(_objectSpread$s({}, this.getWidgetRenderState(renderOptions)), {}, {
16944
+ renderFn(_objectSpread$v(_objectSpread$v({}, this.getWidgetRenderState(renderOptions)), {}, {
16648
16945
  instantSearchInstance: instantSearchInstance
16649
16946
  }), false);
16650
16947
  },
@@ -16654,7 +16951,7 @@
16654
16951
  return connectorState.initialIndex ? state.setIndex(connectorState.initialIndex) : state;
16655
16952
  },
16656
16953
  getRenderState: function getRenderState(renderState, renderOptions) {
16657
- return _objectSpread$s(_objectSpread$s({}, renderState), {}, {
16954
+ return _objectSpread$v(_objectSpread$v({}, renderState), {}, {
16658
16955
  sortBy: this.getWidgetRenderState(renderOptions)
16659
16956
  });
16660
16957
  },
@@ -16686,7 +16983,7 @@
16686
16983
  getWidgetUiState: function getWidgetUiState(uiState, _ref4) {
16687
16984
  var searchParameters = _ref4.searchParameters;
16688
16985
  var currentIndex = searchParameters.index;
16689
- return _objectSpread$s(_objectSpread$s({}, uiState), {}, {
16986
+ return _objectSpread$v(_objectSpread$v({}, uiState), {}, {
16690
16987
  sortBy: currentIndex !== connectorState.initialIndex ? currentIndex : undefined
16691
16988
  });
16692
16989
  },
@@ -16702,16 +16999,16 @@
16702
16999
  return useConnector(connectSortBy, props, additionalWidgetProperties);
16703
17000
  }
16704
17001
 
16705
- function _typeof$B(obj) {
17002
+ function _typeof$C(obj) {
16706
17003
  "@babel/helpers - typeof";
16707
17004
 
16708
- return _typeof$B = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17005
+ return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16709
17006
  return typeof obj;
16710
17007
  } : function (obj) {
16711
17008
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16712
- }, _typeof$B(obj);
17009
+ }, _typeof$C(obj);
16713
17010
  }
16714
- function ownKeys$u(object, enumerableOnly) {
17011
+ function ownKeys$x(object, enumerableOnly) {
16715
17012
  var keys = Object.keys(object);
16716
17013
  if (Object.getOwnPropertySymbols) {
16717
17014
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16721,19 +17018,19 @@
16721
17018
  }
16722
17019
  return keys;
16723
17020
  }
16724
- function _objectSpread$t(target) {
17021
+ function _objectSpread$w(target) {
16725
17022
  for (var i = 1; i < arguments.length; i++) {
16726
17023
  var source = null != arguments[i] ? arguments[i] : {};
16727
- i % 2 ? ownKeys$u(Object(source), !0).forEach(function (key) {
16728
- _defineProperty$w(target, key, source[key]);
16729
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$u(Object(source)).forEach(function (key) {
17024
+ i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) {
17025
+ _defineProperty$z(target, key, source[key]);
17026
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) {
16730
17027
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16731
17028
  });
16732
17029
  }
16733
17030
  return target;
16734
17031
  }
16735
- function _defineProperty$w(obj, key, value) {
16736
- key = _toPropertyKey$w(key);
17032
+ function _defineProperty$z(obj, key, value) {
17033
+ key = _toPropertyKey$z(key);
16737
17034
  if (key in obj) {
16738
17035
  Object.defineProperty(obj, key, {
16739
17036
  value: value,
@@ -16746,16 +17043,16 @@
16746
17043
  }
16747
17044
  return obj;
16748
17045
  }
16749
- function _toPropertyKey$w(arg) {
16750
- var key = _toPrimitive$w(arg, "string");
16751
- return _typeof$B(key) === "symbol" ? key : String(key);
17046
+ function _toPropertyKey$z(arg) {
17047
+ var key = _toPrimitive$z(arg, "string");
17048
+ return _typeof$C(key) === "symbol" ? key : String(key);
16752
17049
  }
16753
- function _toPrimitive$w(input, hint) {
16754
- if (_typeof$B(input) !== "object" || input === null) return input;
17050
+ function _toPrimitive$z(input, hint) {
17051
+ if (_typeof$C(input) !== "object" || input === null) return input;
16755
17052
  var prim = input[Symbol.toPrimitive];
16756
17053
  if (prim !== undefined) {
16757
17054
  var res = prim.call(input, hint || "default");
16758
- if (_typeof$B(res) !== "object") return res;
17055
+ if (_typeof$C(res) !== "object") return res;
16759
17056
  throw new TypeError("@@toPrimitive must return a primitive value.");
16760
17057
  }
16761
17058
  return (hint === "string" ? String : Number)(input);
@@ -16778,13 +17075,13 @@
16778
17075
  $$type: 'ais.stats',
16779
17076
  init: function init(initOptions) {
16780
17077
  var instantSearchInstance = initOptions.instantSearchInstance;
16781
- renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(initOptions)), {}, {
17078
+ renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(initOptions)), {}, {
16782
17079
  instantSearchInstance: instantSearchInstance
16783
17080
  }), true);
16784
17081
  },
16785
17082
  render: function render(renderOptions) {
16786
17083
  var instantSearchInstance = renderOptions.instantSearchInstance;
16787
- renderFn(_objectSpread$t(_objectSpread$t({}, this.getWidgetRenderState(renderOptions)), {}, {
17084
+ renderFn(_objectSpread$w(_objectSpread$w({}, this.getWidgetRenderState(renderOptions)), {}, {
16788
17085
  instantSearchInstance: instantSearchInstance
16789
17086
  }), false);
16790
17087
  },
@@ -16792,7 +17089,7 @@
16792
17089
  unmountFn();
16793
17090
  },
16794
17091
  getRenderState: function getRenderState(renderState, renderOptions) {
16795
- return _objectSpread$t(_objectSpread$t({}, renderState), {}, {
17092
+ return _objectSpread$w(_objectSpread$w({}, renderState), {}, {
16796
17093
  stats: this.getWidgetRenderState(renderOptions)
16797
17094
  });
16798
17095
  },
@@ -16832,16 +17129,16 @@
16832
17129
  return useConnector(connectStats, props, additionalWidgetProperties);
16833
17130
  }
16834
17131
 
16835
- function _typeof$C(obj) {
17132
+ function _typeof$D(obj) {
16836
17133
  "@babel/helpers - typeof";
16837
17134
 
16838
- return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17135
+ return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
16839
17136
  return typeof obj;
16840
17137
  } : function (obj) {
16841
17138
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16842
- }, _typeof$C(obj);
17139
+ }, _typeof$D(obj);
16843
17140
  }
16844
- function ownKeys$v(object, enumerableOnly) {
17141
+ function ownKeys$y(object, enumerableOnly) {
16845
17142
  var keys = Object.keys(object);
16846
17143
  if (Object.getOwnPropertySymbols) {
16847
17144
  var symbols = Object.getOwnPropertySymbols(object);
@@ -16851,19 +17148,19 @@
16851
17148
  }
16852
17149
  return keys;
16853
17150
  }
16854
- function _objectSpread$u(target) {
17151
+ function _objectSpread$x(target) {
16855
17152
  for (var i = 1; i < arguments.length; i++) {
16856
17153
  var source = null != arguments[i] ? arguments[i] : {};
16857
- i % 2 ? ownKeys$v(Object(source), !0).forEach(function (key) {
16858
- _defineProperty$x(target, key, source[key]);
16859
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$v(Object(source)).forEach(function (key) {
17154
+ i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) {
17155
+ _defineProperty$A(target, key, source[key]);
17156
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) {
16860
17157
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16861
17158
  });
16862
17159
  }
16863
17160
  return target;
16864
17161
  }
16865
- function _defineProperty$x(obj, key, value) {
16866
- key = _toPropertyKey$x(key);
17162
+ function _defineProperty$A(obj, key, value) {
17163
+ key = _toPropertyKey$A(key);
16867
17164
  if (key in obj) {
16868
17165
  Object.defineProperty(obj, key, {
16869
17166
  value: value,
@@ -16876,16 +17173,16 @@
16876
17173
  }
16877
17174
  return obj;
16878
17175
  }
16879
- function _toPropertyKey$x(arg) {
16880
- var key = _toPrimitive$x(arg, "string");
16881
- return _typeof$C(key) === "symbol" ? key : String(key);
17176
+ function _toPropertyKey$A(arg) {
17177
+ var key = _toPrimitive$A(arg, "string");
17178
+ return _typeof$D(key) === "symbol" ? key : String(key);
16882
17179
  }
16883
- function _toPrimitive$x(input, hint) {
16884
- if (_typeof$C(input) !== "object" || input === null) return input;
17180
+ function _toPrimitive$A(input, hint) {
17181
+ if (_typeof$D(input) !== "object" || input === null) return input;
16885
17182
  var prim = input[Symbol.toPrimitive];
16886
17183
  if (prim !== undefined) {
16887
17184
  var res = prim.call(input, hint || "default");
16888
- if (_typeof$C(res) !== "object") return res;
17185
+ if (_typeof$D(res) !== "object") return res;
16889
17186
  throw new TypeError("@@toPrimitive must return a primitive value.");
16890
17187
  }
16891
17188
  return (hint === "string" ? String : Number)(input);
@@ -17077,13 +17374,13 @@
17077
17374
  $$type: $$type$3,
17078
17375
  init: function init(initOptions) {
17079
17376
  var instantSearchInstance = initOptions.instantSearchInstance;
17080
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(initOptions)), {}, {
17377
+ renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(initOptions)), {}, {
17081
17378
  instantSearchInstance: instantSearchInstance
17082
17379
  }), true);
17083
17380
  },
17084
17381
  render: function render(renderOptions) {
17085
17382
  var instantSearchInstance = renderOptions.instantSearchInstance;
17086
- renderFn(_objectSpread$u(_objectSpread$u({}, this.getWidgetRenderState(renderOptions)), {}, {
17383
+ renderFn(_objectSpread$x(_objectSpread$x({}, this.getWidgetRenderState(renderOptions)), {}, {
17087
17384
  instantSearchInstance: instantSearchInstance
17088
17385
  }), false);
17089
17386
  },
@@ -17093,8 +17390,8 @@
17093
17390
  return state.removeDisjunctiveFacet(attribute);
17094
17391
  },
17095
17392
  getRenderState: function getRenderState(renderState, renderOptions) {
17096
- return _objectSpread$u(_objectSpread$u({}, renderState), {}, {
17097
- toggleRefinement: _objectSpread$u(_objectSpread$u({}, renderState.toggleRefinement), {}, _defineProperty$x({}, attribute, this.getWidgetRenderState(renderOptions)))
17393
+ return _objectSpread$x(_objectSpread$x({}, renderState), {}, {
17394
+ toggleRefinement: _objectSpread$x(_objectSpread$x({}, renderState.toggleRefinement), {}, _defineProperty$A({}, attribute, this.getWidgetRenderState(renderOptions)))
17098
17395
  });
17099
17396
  },
17100
17397
  getWidgetRenderState: function getWidgetRenderState(_ref6) {
@@ -17195,8 +17492,8 @@
17195
17492
  (_uiState$toggle = uiState.toggle) === null || _uiState$toggle === void 0 ? true : delete _uiState$toggle[attribute];
17196
17493
  return uiState;
17197
17494
  }
17198
- return _objectSpread$u(_objectSpread$u({}, uiState), {}, {
17199
- toggle: _objectSpread$u(_objectSpread$u({}, uiState.toggle), {}, _defineProperty$x({}, attribute, isRefined))
17495
+ return _objectSpread$x(_objectSpread$x({}, uiState), {}, {
17496
+ toggle: _objectSpread$x(_objectSpread$x({}, uiState.toggle), {}, _defineProperty$A({}, attribute, isRefined))
17200
17497
  });
17201
17498
  },
17202
17499
  getWidgetSearchParameters: function getWidgetSearchParameters(searchParameters, _ref11) {
@@ -17227,7 +17524,7 @@
17227
17524
 
17228
17525
  // It's not refined without an `off` value
17229
17526
  return withFacetConfiguration.setQueryParameters({
17230
- disjunctiveFacetsRefinements: _objectSpread$u(_objectSpread$u({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$x({}, attribute, []))
17527
+ disjunctiveFacetsRefinements: _objectSpread$x(_objectSpread$x({}, searchParameters.disjunctiveFacetsRefinements), {}, _defineProperty$A({}, attribute, []))
17231
17528
  });
17232
17529
  }
17233
17530
  };
@@ -17392,16 +17689,16 @@
17392
17689
  return promise;
17393
17690
  }
17394
17691
 
17395
- function _typeof$D(obj) {
17692
+ function _typeof$E(obj) {
17396
17693
  "@babel/helpers - typeof";
17397
17694
 
17398
- return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17695
+ return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17399
17696
  return typeof obj;
17400
17697
  } : function (obj) {
17401
17698
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17402
- }, _typeof$D(obj);
17699
+ }, _typeof$E(obj);
17403
17700
  }
17404
- function ownKeys$w(object, enumerableOnly) {
17701
+ function ownKeys$z(object, enumerableOnly) {
17405
17702
  var keys = Object.keys(object);
17406
17703
  if (Object.getOwnPropertySymbols) {
17407
17704
  var symbols = Object.getOwnPropertySymbols(object);
@@ -17411,19 +17708,19 @@
17411
17708
  }
17412
17709
  return keys;
17413
17710
  }
17414
- function _objectSpread$v(target) {
17711
+ function _objectSpread$y(target) {
17415
17712
  for (var i = 1; i < arguments.length; i++) {
17416
17713
  var source = null != arguments[i] ? arguments[i] : {};
17417
- i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) {
17418
- _defineProperty$y(target, key, source[key]);
17419
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) {
17714
+ i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) {
17715
+ _defineProperty$B(target, key, source[key]);
17716
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) {
17420
17717
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
17421
17718
  });
17422
17719
  }
17423
17720
  return target;
17424
17721
  }
17425
- function _defineProperty$y(obj, key, value) {
17426
- key = _toPropertyKey$y(key);
17722
+ function _defineProperty$B(obj, key, value) {
17723
+ key = _toPropertyKey$B(key);
17427
17724
  if (key in obj) {
17428
17725
  Object.defineProperty(obj, key, {
17429
17726
  value: value,
@@ -17436,16 +17733,16 @@
17436
17733
  }
17437
17734
  return obj;
17438
17735
  }
17439
- function _toPropertyKey$y(arg) {
17440
- var key = _toPrimitive$y(arg, "string");
17441
- return _typeof$D(key) === "symbol" ? key : String(key);
17736
+ function _toPropertyKey$B(arg) {
17737
+ var key = _toPrimitive$B(arg, "string");
17738
+ return _typeof$E(key) === "symbol" ? key : String(key);
17442
17739
  }
17443
- function _toPrimitive$y(input, hint) {
17444
- if (_typeof$D(input) !== "object" || input === null) return input;
17740
+ function _toPrimitive$B(input, hint) {
17741
+ if (_typeof$E(input) !== "object" || input === null) return input;
17445
17742
  var prim = input[Symbol.toPrimitive];
17446
17743
  if (prim !== undefined) {
17447
17744
  var res = prim.call(input, hint || "default");
17448
- if (_typeof$D(res) !== "object") return res;
17745
+ if (_typeof$E(res) !== "object") return res;
17449
17746
  throw new TypeError("@@toPrimitive must return a primitive value.");
17450
17747
  }
17451
17748
  return (hint === "string" ? String : Number)(input);
@@ -17491,7 +17788,7 @@
17491
17788
  initialResults[widget.getIndexId()] = {
17492
17789
  // We convert the Helper state to a plain object to pass parsable data
17493
17790
  // structures from server to client.
17494
- state: _objectSpread$v({}, searchResults._state),
17791
+ state: _objectSpread$y({}, searchResults._state),
17495
17792
  results: searchResults._rawResults
17496
17793
  };
17497
17794
  }