@getlupa/client 1.23.3 → 1.24.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.
@@ -10974,11 +10974,11 @@ var __async = (__this, __arguments, generator) => {
10974
10974
  return result2;
10975
10975
  };
10976
10976
  init_esm_shims();
10977
- function simpleTransformation(isApplicable, annotation, transform, untransform) {
10977
+ function simpleTransformation(isApplicable, annotation, transform2, untransform) {
10978
10978
  return {
10979
10979
  isApplicable,
10980
10980
  annotation,
10981
- transform,
10981
+ transform: transform2,
10982
10982
  untransform
10983
10983
  };
10984
10984
  }
@@ -11039,11 +11039,11 @@ var __async = (__this, __arguments, generator) => {
11039
11039
  }, Number),
11040
11040
  simpleTransformation(isURL, "URL", (v) => v.toString(), (v) => new URL(v))
11041
11041
  ];
11042
- function compositeTransformation(isApplicable, annotation, transform, untransform) {
11042
+ function compositeTransformation(isApplicable, annotation, transform2, untransform) {
11043
11043
  return {
11044
11044
  isApplicable,
11045
11045
  annotation,
11046
- transform,
11046
+ transform: transform2,
11047
11047
  untransform
11048
11048
  };
11049
11049
  }
@@ -11992,33 +11992,6 @@ var __async = (__this, __arguments, generator) => {
11992
11992
  const separator = url.includes("?") ? "&" : "?";
11993
11993
  return url + separator + e(customParams);
11994
11994
  };
11995
- var __awaiter = function(thisArg, _arguments, P, generator) {
11996
- function adopt(value) {
11997
- return value instanceof P ? value : new P(function(resolve2) {
11998
- resolve2(value);
11999
- });
12000
- }
12001
- return new (P || (P = Promise))(function(resolve2, reject) {
12002
- function fulfilled(value) {
12003
- try {
12004
- step(generator.next(value));
12005
- } catch (e2) {
12006
- reject(e2);
12007
- }
12008
- }
12009
- function rejected(value) {
12010
- try {
12011
- step(generator["throw"](value));
12012
- } catch (e2) {
12013
- reject(e2);
12014
- }
12015
- }
12016
- function step(result2) {
12017
- result2.done ? resolve2(result2.value) : adopt(result2.value).then(fulfilled, rejected);
12018
- }
12019
- step((generator = generator.apply(thisArg, [])).next());
12020
- });
12021
- };
12022
11995
  const defaultConfig = {
12023
11996
  method: "POST",
12024
11997
  headers: { "Content-Type": "application/json" }
@@ -12029,7 +12002,7 @@ var __async = (__this, __arguments, generator) => {
12029
12002
  headers: Object.assign(Object.assign({}, defaultConfig.headers), customHeaders !== null && customHeaders !== void 0 ? customHeaders : {})
12030
12003
  };
12031
12004
  };
12032
- const searchCustom = (query, options) => __awaiter(void 0, void 0, void 0, function* () {
12005
+ const searchCustom = (query, options) => __async2(null, null, function* () {
12033
12006
  var _a25;
12034
12007
  const res = yield fetch(options.customUrl, Object.assign(Object.assign({}, customRequestConfig({ customHeaders: options.customHeaders })), { body: JSON.stringify(Object.assign({ publicQuery: query }, (_a25 = options.customPayload) !== null && _a25 !== void 0 ? _a25 : {})) }));
12035
12008
  if (res.status < 400) {
@@ -12039,9 +12012,9 @@ var __async = (__this, __arguments, generator) => {
12039
12012
  const errors = yield res.json();
12040
12013
  return { success: false, errors };
12041
12014
  });
12042
- const suggestCustom = (query, options) => __awaiter(void 0, void 0, void 0, function* () {
12043
- var _b25;
12044
- const res = yield fetch(options.customUrl, Object.assign(Object.assign({}, customRequestConfig({ customHeaders: options.customHeaders })), { body: JSON.stringify(Object.assign({ publicQuery: query }, (_b25 = options.customPayload) !== null && _b25 !== void 0 ? _b25 : {})) }));
12015
+ const suggestCustom = (query, options) => __async2(null, null, function* () {
12016
+ var _a25;
12017
+ const res = yield fetch(options.customUrl, Object.assign(Object.assign({}, customRequestConfig({ customHeaders: options.customHeaders })), { body: JSON.stringify(Object.assign({ publicQuery: query }, (_a25 = options.customPayload) !== null && _a25 !== void 0 ? _a25 : {})) }));
12045
12018
  if (res.status < 400) {
12046
12019
  const items = yield res.json();
12047
12020
  return { items, success: true };
@@ -12049,7 +12022,7 @@ var __async = (__this, __arguments, generator) => {
12049
12022
  const errors = yield res.json();
12050
12023
  return { success: false, errors };
12051
12024
  });
12052
- const search = (queryKey, query, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12025
+ const search = (queryKey, query, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12053
12026
  const endpoint = `${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}`;
12054
12027
  const url = addCustomParams(endpoint, customParams);
12055
12028
  const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
@@ -12060,7 +12033,7 @@ var __async = (__this, __arguments, generator) => {
12060
12033
  const errors = yield res.json();
12061
12034
  return { success: false, errors };
12062
12035
  });
12063
- const facets = (queryKey, query, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12036
+ const facets = (queryKey, query, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12064
12037
  const endpoint = `${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/facets`;
12065
12038
  const url = addCustomParams(endpoint, customParams);
12066
12039
  const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
@@ -12071,7 +12044,7 @@ var __async = (__this, __arguments, generator) => {
12071
12044
  const errors = yield res.json();
12072
12045
  return { success: false, errors };
12073
12046
  });
12074
- const refiners = (queryKey, query, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12047
+ const refiners = (queryKey, query, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12075
12048
  const endpoint = `${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/refiners`;
12076
12049
  const url = addCustomParams(endpoint, customParams);
12077
12050
  const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
@@ -12082,7 +12055,7 @@ var __async = (__this, __arguments, generator) => {
12082
12055
  const errors = yield res.json();
12083
12056
  return { success: false, errors };
12084
12057
  });
12085
- const relatedQueries = (queryKey, query, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12058
+ const relatedQueries = (queryKey, query, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12086
12059
  const endpoint = `${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/related`;
12087
12060
  const url = addCustomParams(endpoint, customParams);
12088
12061
  const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
@@ -12093,7 +12066,7 @@ var __async = (__this, __arguments, generator) => {
12093
12066
  const errors = yield res.json();
12094
12067
  return { success: false, errors };
12095
12068
  });
12096
- const queryByIds = (queryKey, ids, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12069
+ const queryByIds = (queryKey, ids, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12097
12070
  const idParam = ids.map((id) => `ids=${id}`).join("&");
12098
12071
  const endpoint = `${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`;
12099
12072
  const url = addCustomParams(endpoint, customParams);
@@ -12105,7 +12078,7 @@ var __async = (__this, __arguments, generator) => {
12105
12078
  const errors = yield res.json();
12106
12079
  return { success: false, errors };
12107
12080
  });
12108
- const recommendForSingleId = (queryKey, recommendForId, filters, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12081
+ const recommendForSingleId = (queryKey, recommendForId, filters, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12109
12082
  let endpoint = `${getApiUrl$1(environment, customBaseUrl)}recommendations/document/${recommendForId}?recommendationQueryKey=${queryKey}`;
12110
12083
  if (filters) {
12111
12084
  endpoint += `&${e({ filters })}`;
@@ -12119,7 +12092,7 @@ var __async = (__this, __arguments, generator) => {
12119
12092
  const errors = yield res.json();
12120
12093
  return { success: false, errors };
12121
12094
  });
12122
- const recommendForMultipleIds = (queryKey, recommendForIds, filters, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12095
+ const recommendForMultipleIds = (queryKey, recommendForIds, filters, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12123
12096
  const limitedRecommendForIds = recommendForIds.slice(0, 20);
12124
12097
  let endpoint = `${getApiUrl$1(environment, customBaseUrl)}recommendations/documentsByMultipleIds?recommendationQueryKey=${queryKey}&itemId[]=${limitedRecommendForIds.join("&itemId[]=")}`;
12125
12098
  if (filters) {
@@ -12134,10 +12107,10 @@ var __async = (__this, __arguments, generator) => {
12134
12107
  const errors = yield res.json();
12135
12108
  return { success: false, errors };
12136
12109
  });
12137
- const recommend = (queryKey, recommendForId, filters, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12110
+ const recommend = (queryKey, recommendForId, filters, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12138
12111
  return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, filters, environment, customBaseUrl, customParams) : yield recommendForSingleId(queryKey, recommendForId, filters, environment, customBaseUrl, customParams);
12139
12112
  });
12140
- const suggest = (queryKey, query, environment, customBaseUrl, customParams) => __awaiter(void 0, void 0, void 0, function* () {
12113
+ const suggest = (queryKey, query, environment, customBaseUrl, customParams) => __async2(null, null, function* () {
12141
12114
  const endpoint = `${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}`;
12142
12115
  const url = addCustomParams(endpoint, customParams);
12143
12116
  const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
@@ -12148,18 +12121,18 @@ var __async = (__this, __arguments, generator) => {
12148
12121
  const errors = yield res.json();
12149
12122
  return { success: false, errors };
12150
12123
  });
12151
- const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
12124
+ const track$1 = (queryKey, event, environment, customBaseUrl) => __async2(null, null, function* () {
12152
12125
  try {
12153
12126
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
12154
12127
  if (res.status < 400) {
12155
12128
  return { success: false };
12156
12129
  }
12157
12130
  return res.json();
12158
- } catch (e2) {
12131
+ } catch (_a25) {
12159
12132
  return { success: false };
12160
12133
  }
12161
12134
  });
12162
- const loadRedirectionRules = (queryKey, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
12135
+ const loadRedirectionRules = (queryKey, environment, customBaseUrl) => __async2(null, null, function* () {
12163
12136
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}redirections/${queryKey}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
12164
12137
  if (res.status < 400) {
12165
12138
  return res.json();
@@ -12167,27 +12140,164 @@ var __async = (__this, __arguments, generator) => {
12167
12140
  const errors = yield res.json();
12168
12141
  return { success: false, errors };
12169
12142
  });
12143
+ const FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
12144
+ const isSafeKey = (key) => !FORBIDDEN_KEYS.has(key);
12145
+ const toPath = (key) => key.split(".").filter(Boolean);
12146
+ const isObjectLike = (v) => typeof v === "object" && v !== null;
12147
+ const hasByPath = (obj, path) => {
12148
+ let cur = obj;
12149
+ for (let i = 0; i < path.length; i++) {
12150
+ const k = path[i];
12151
+ if (!isSafeKey(k) || !isObjectLike(cur)) {
12152
+ return false;
12153
+ }
12154
+ if (!Object.prototype.hasOwnProperty.call(cur, k)) {
12155
+ return false;
12156
+ }
12157
+ cur = cur[k];
12158
+ }
12159
+ return true;
12160
+ };
12161
+ const getByPath = (obj, path) => {
12162
+ let cur = obj;
12163
+ for (const k of path) {
12164
+ if (!isSafeKey(k) || !isObjectLike(cur)) {
12165
+ return void 0;
12166
+ }
12167
+ cur = cur[k];
12168
+ }
12169
+ return cur;
12170
+ };
12171
+ const setByPath = (obj, path, value) => {
12172
+ if (!path.length) {
12173
+ return;
12174
+ }
12175
+ let cur = obj;
12176
+ for (let i = 0; i < path.length - 1; i++) {
12177
+ const k = path[i];
12178
+ if (!isSafeKey(k) || !isObjectLike(cur)) {
12179
+ return;
12180
+ }
12181
+ const next = cur[k];
12182
+ if (!isObjectLike(next))
12183
+ cur[k] = {};
12184
+ cur = cur[k];
12185
+ }
12186
+ const lastKey = path[path.length - 1];
12187
+ if (!isSafeKey(lastKey) || !isObjectLike(cur)) {
12188
+ return;
12189
+ }
12190
+ cur[lastKey] = value;
12191
+ };
12192
+ const unsetByPath = (obj, path) => {
12193
+ if (!path.length) {
12194
+ return;
12195
+ }
12196
+ let cur = obj;
12197
+ for (let i = 0; i < path.length - 1; i++) {
12198
+ const k = path[i];
12199
+ if (!isSafeKey(k) || !isObjectLike(cur)) {
12200
+ return;
12201
+ }
12202
+ if (!Object.prototype.hasOwnProperty.call(cur, k)) {
12203
+ return;
12204
+ }
12205
+ cur = cur[k];
12206
+ }
12207
+ const lastKey = path[path.length - 1];
12208
+ if (!isSafeKey(lastKey) || !isObjectLike(cur)) {
12209
+ return;
12210
+ }
12211
+ delete cur[lastKey];
12212
+ };
12213
+ const transformItems = (items, transformOptions) => {
12214
+ var _a25;
12215
+ const mapping = (_a25 = transformOptions === null || transformOptions === void 0 ? void 0 : transformOptions.transform) === null || _a25 === void 0 ? void 0 : _a25.fieldNames;
12216
+ if (!(items === null || items === void 0 ? void 0 : items.length) || !mapping) {
12217
+ return items;
12218
+ }
12219
+ return items.map((item) => {
12220
+ for (const [originalField, newField] of Object.entries(mapping)) {
12221
+ const fromPath = toPath(originalField);
12222
+ const toPathArr = toPath(newField);
12223
+ if (!fromPath.length || !toPathArr.length) {
12224
+ continue;
12225
+ }
12226
+ if (!hasByPath(item, fromPath)) {
12227
+ continue;
12228
+ }
12229
+ const value = getByPath(item, fromPath);
12230
+ setByPath(item, toPathArr, value);
12231
+ unsetByPath(item, fromPath);
12232
+ }
12233
+ return item;
12234
+ });
12235
+ };
12236
+ const transform = (result2, transformOptions) => {
12237
+ var _a25, _b25, _c, _d, _e, _f, _g;
12238
+ let transformedResult = result2;
12239
+ if (!result2 || !(transformOptions === null || transformOptions === void 0 ? void 0 : transformOptions.transform)) {
12240
+ return result2;
12241
+ }
12242
+ if ((_a25 = result2 === null || result2 === void 0 ? void 0 : result2.items) === null || _a25 === void 0 ? void 0 : _a25.length) {
12243
+ transformedResult = Object.assign(Object.assign({}, transformedResult), { items: transformItems(transformedResult.items, transformOptions) });
12244
+ }
12245
+ if ((_b25 = result2 === null || result2 === void 0 ? void 0 : result2.similarQueries) === null || _b25 === void 0 ? void 0 : _b25.length) {
12246
+ transformedResult = Object.assign(Object.assign({}, transformedResult), { similarQueries: (_c = transformedResult.similarQueries) === null || _c === void 0 ? void 0 : _c.map((similarQuery) => Object.assign(Object.assign({}, similarQuery), { items: transformItems(similarQuery.items, transformOptions) })) });
12247
+ }
12248
+ if ((_e = (_d = result2 === null || result2 === void 0 ? void 0 : result2.similarResults) === null || _d === void 0 ? void 0 : _d.items) === null || _e === void 0 ? void 0 : _e.length) {
12249
+ transformedResult = Object.assign(Object.assign({}, transformedResult), { similarResults: Object.assign(Object.assign({}, transformedResult.similarResults), { items: transformItems(transformedResult.similarResults.items, transformOptions) }) });
12250
+ }
12251
+ if ((_f = result2.relatedQueries) === null || _f === void 0 ? void 0 : _f.length) {
12252
+ transformedResult = Object.assign(Object.assign({}, transformedResult), { relatedQueries: (_g = transformedResult.relatedQueries) === null || _g === void 0 ? void 0 : _g.map((relatedQuery) => Object.assign(Object.assign({}, relatedQuery), { topItems: transformItems(relatedQuery.topItems, transformOptions) })) });
12253
+ }
12254
+ return transformedResult;
12255
+ };
12256
+ const transformSearchQueryResult = (result2, transformOptions) => {
12257
+ if (result2.success === false) {
12258
+ return result2;
12259
+ }
12260
+ return transform(result2, transformOptions);
12261
+ };
12262
+ const transformSearchQueryRefinersResult = (result2, transformOptions) => {
12263
+ if (result2.success === false) {
12264
+ return result2;
12265
+ }
12266
+ return transform(result2, transformOptions);
12267
+ };
12268
+ const transformRelatedQueries = (result2, transformOptions) => {
12269
+ if (result2.success === false) {
12270
+ return result2;
12271
+ }
12272
+ return transform(result2, transformOptions);
12273
+ };
12170
12274
  const LupaSearchSdk = {
12171
- query: (queryKey, publicQuery, options = null) => {
12275
+ query: (queryKey, publicQuery, options = null) => __async2(null, null, function* () {
12172
12276
  if (options === null || options === void 0 ? void 0 : options.customUrl) {
12173
- return searchCustom(publicQuery, options);
12277
+ const result3 = yield searchCustom(publicQuery, options);
12278
+ return transformSearchQueryResult(result3, options);
12174
12279
  }
12175
- return search(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12176
- },
12280
+ const result2 = yield search(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12281
+ return transformSearchQueryResult(result2, options);
12282
+ }),
12177
12283
  queryFacets: (queryKey, publicQuery, options = null) => {
12178
12284
  return facets(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12179
12285
  },
12180
- queryRefiners: (queryKey, publicQuery, options = null) => {
12181
- return refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12182
- },
12183
- queryRelated: (queryKey, publicQuery, options = null) => {
12184
- return relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12185
- },
12286
+ queryRefiners: (queryKey, publicQuery, options = null) => __async2(null, null, function* () {
12287
+ const result2 = yield refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12288
+ return transformSearchQueryRefinersResult(result2, options);
12289
+ }),
12290
+ queryRelated: (queryKey, publicQuery, options = null) => __async2(null, null, function* () {
12291
+ const result2 = yield relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12292
+ return transformRelatedQueries(result2, options);
12293
+ }),
12186
12294
  suggestions: (queryKey, suggestionQuery, options = null) => {
12187
12295
  if (options === null || options === void 0 ? void 0 : options.customUrl) {
12188
- return suggestCustom(suggestionQuery, options);
12296
+ const result3 = suggestCustom(suggestionQuery, options);
12297
+ return result3;
12189
12298
  }
12190
- return suggest(queryKey, suggestionQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12299
+ const result2 = suggest(queryKey, suggestionQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl, options === null || options === void 0 ? void 0 : options.customParams);
12300
+ return result2;
12191
12301
  },
12192
12302
  track: (queryKey, eventData, options = null) => {
12193
12303
  return track$1(queryKey, eventData, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
@@ -12862,9 +12972,9 @@ var __async = (__this, __arguments, generator) => {
12862
12972
  });
12863
12973
  return result2;
12864
12974
  }
12865
- function overArg(func, transform) {
12975
+ function overArg(func, transform2) {
12866
12976
  return function(arg) {
12867
- return func(transform(arg));
12977
+ return func(transform2(arg));
12868
12978
  };
12869
12979
  }
12870
12980
  function replaceHolders(array, placeholder) {
@@ -12971,7 +13081,7 @@ var __async = (__this, __arguments, generator) => {
12971
13081
  var dataViewCtorString = toSource(DataView2), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
12972
13082
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
12973
13083
  function lodash2(value) {
12974
- if (isObjectLike(value) && !isArray3(value) && !(value instanceof LazyWrapper)) {
13084
+ if (isObjectLike2(value) && !isArray3(value) && !(value instanceof LazyWrapper)) {
12975
13085
  if (value instanceof LodashWrapper) {
12976
13086
  return value;
12977
13087
  }
@@ -13652,19 +13762,19 @@ var __async = (__this, __arguments, generator) => {
13652
13762
  return func == null ? undefined$1 : apply2(func, object, args);
13653
13763
  }
13654
13764
  function baseIsArguments(value) {
13655
- return isObjectLike(value) && baseGetTag(value) == argsTag;
13765
+ return isObjectLike2(value) && baseGetTag(value) == argsTag;
13656
13766
  }
13657
13767
  function baseIsArrayBuffer(value) {
13658
- return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
13768
+ return isObjectLike2(value) && baseGetTag(value) == arrayBufferTag;
13659
13769
  }
13660
13770
  function baseIsDate(value) {
13661
- return isObjectLike(value) && baseGetTag(value) == dateTag;
13771
+ return isObjectLike2(value) && baseGetTag(value) == dateTag;
13662
13772
  }
13663
13773
  function baseIsEqual(value, other, bitmask, customizer, stack2) {
13664
13774
  if (value === other) {
13665
13775
  return true;
13666
13776
  }
13667
- if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
13777
+ if (value == null || other == null || !isObjectLike2(value) && !isObjectLike2(other)) {
13668
13778
  return value !== value && other !== other;
13669
13779
  }
13670
13780
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack2);
@@ -13700,7 +13810,7 @@ var __async = (__this, __arguments, generator) => {
13700
13810
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack2);
13701
13811
  }
13702
13812
  function baseIsMap(value) {
13703
- return isObjectLike(value) && getTag(value) == mapTag;
13813
+ return isObjectLike2(value) && getTag(value) == mapTag;
13704
13814
  }
13705
13815
  function baseIsMatch(object, source, matchData, customizer) {
13706
13816
  var index = matchData.length, length = index, noCustomizer = !customizer;
@@ -13741,13 +13851,13 @@ var __async = (__this, __arguments, generator) => {
13741
13851
  return pattern.test(toSource(value));
13742
13852
  }
13743
13853
  function baseIsRegExp(value) {
13744
- return isObjectLike(value) && baseGetTag(value) == regexpTag;
13854
+ return isObjectLike2(value) && baseGetTag(value) == regexpTag;
13745
13855
  }
13746
13856
  function baseIsSet(value) {
13747
- return isObjectLike(value) && getTag(value) == setTag;
13857
+ return isObjectLike2(value) && getTag(value) == setTag;
13748
13858
  }
13749
13859
  function baseIsTypedArray(value) {
13750
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
13860
+ return isObjectLike2(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
13751
13861
  }
13752
13862
  function baseIteratee(value) {
13753
13863
  if (typeof value == "function") {
@@ -15257,7 +15367,7 @@ var __async = (__this, __arguments, generator) => {
15257
15367
  function objectToString2(value) {
15258
15368
  return nativeObjectToString.call(value);
15259
15369
  }
15260
- function overRest(func, start, transform2) {
15370
+ function overRest(func, start, transform3) {
15261
15371
  start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
15262
15372
  return function() {
15263
15373
  var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
@@ -15269,7 +15379,7 @@ var __async = (__this, __arguments, generator) => {
15269
15379
  while (++index < start) {
15270
15380
  otherArgs[index] = args[index];
15271
15381
  }
15272
- otherArgs[start] = transform2(array);
15382
+ otherArgs[start] = transform3(array);
15273
15383
  return apply2(func, this, otherArgs);
15274
15384
  };
15275
15385
  }
@@ -16291,7 +16401,7 @@ var __async = (__this, __arguments, generator) => {
16291
16401
  var isArguments = baseIsArguments(/* @__PURE__ */ function() {
16292
16402
  return arguments;
16293
16403
  }()) ? baseIsArguments : function(value) {
16294
- return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
16404
+ return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
16295
16405
  };
16296
16406
  var isArray3 = Array2.isArray;
16297
16407
  var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
@@ -16299,15 +16409,15 @@ var __async = (__this, __arguments, generator) => {
16299
16409
  return value != null && isLength(value.length) && !isFunction2(value);
16300
16410
  }
16301
16411
  function isArrayLikeObject(value) {
16302
- return isObjectLike(value) && isArrayLike(value);
16412
+ return isObjectLike2(value) && isArrayLike(value);
16303
16413
  }
16304
16414
  function isBoolean2(value) {
16305
- return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;
16415
+ return value === true || value === false || isObjectLike2(value) && baseGetTag(value) == boolTag;
16306
16416
  }
16307
16417
  var isBuffer = nativeIsBuffer || stubFalse;
16308
16418
  var isDate2 = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
16309
16419
  function isElement(value) {
16310
- return isObjectLike(value) && value.nodeType === 1 && !isPlainObject4(value);
16420
+ return isObjectLike2(value) && value.nodeType === 1 && !isPlainObject4(value);
16311
16421
  }
16312
16422
  function isEmpty(value) {
16313
16423
  if (value == null) {
@@ -16339,7 +16449,7 @@ var __async = (__this, __arguments, generator) => {
16339
16449
  return result3 === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result3;
16340
16450
  }
16341
16451
  function isError2(value) {
16342
- if (!isObjectLike(value)) {
16452
+ if (!isObjectLike2(value)) {
16343
16453
  return false;
16344
16454
  }
16345
16455
  var tag = baseGetTag(value);
@@ -16365,7 +16475,7 @@ var __async = (__this, __arguments, generator) => {
16365
16475
  var type = typeof value;
16366
16476
  return value != null && (type == "object" || type == "function");
16367
16477
  }
16368
- function isObjectLike(value) {
16478
+ function isObjectLike2(value) {
16369
16479
  return value != null && typeof value == "object";
16370
16480
  }
16371
16481
  var isMap2 = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
@@ -16392,10 +16502,10 @@ var __async = (__this, __arguments, generator) => {
16392
16502
  return value == null;
16393
16503
  }
16394
16504
  function isNumber2(value) {
16395
- return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
16505
+ return typeof value == "number" || isObjectLike2(value) && baseGetTag(value) == numberTag;
16396
16506
  }
16397
16507
  function isPlainObject4(value) {
16398
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
16508
+ if (!isObjectLike2(value) || baseGetTag(value) != objectTag) {
16399
16509
  return false;
16400
16510
  }
16401
16511
  var proto = getPrototype(value);
@@ -16411,20 +16521,20 @@ var __async = (__this, __arguments, generator) => {
16411
16521
  }
16412
16522
  var isSet2 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
16413
16523
  function isString2(value) {
16414
- return typeof value == "string" || !isArray3(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
16524
+ return typeof value == "string" || !isArray3(value) && isObjectLike2(value) && baseGetTag(value) == stringTag;
16415
16525
  }
16416
16526
  function isSymbol2(value) {
16417
- return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
16527
+ return typeof value == "symbol" || isObjectLike2(value) && baseGetTag(value) == symbolTag;
16418
16528
  }
16419
16529
  var isTypedArray2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
16420
16530
  function isUndefined2(value) {
16421
16531
  return value === undefined$1;
16422
16532
  }
16423
16533
  function isWeakMap(value) {
16424
- return isObjectLike(value) && getTag(value) == weakMapTag;
16534
+ return isObjectLike2(value) && getTag(value) == weakMapTag;
16425
16535
  }
16426
16536
  function isWeakSet(value) {
16427
- return isObjectLike(value) && baseGetTag(value) == weakSetTag;
16537
+ return isObjectLike2(value) && baseGetTag(value) == weakSetTag;
16428
16538
  }
16429
16539
  var lt = createRelationalOperation(baseLt);
16430
16540
  var lte = createRelationalOperation(function(value, other) {
@@ -16684,7 +16794,7 @@ var __async = (__this, __arguments, generator) => {
16684
16794
  }
16685
16795
  var toPairs = createToPairs(keys);
16686
16796
  var toPairsIn = createToPairs(keysIn);
16687
- function transform(object, iteratee2, accumulator) {
16797
+ function transform2(object, iteratee2, accumulator) {
16688
16798
  var isArr = isArray3(object), isArrLike = isArr || isBuffer(object) || isTypedArray2(object);
16689
16799
  iteratee2 = getIteratee(iteratee2, 4);
16690
16800
  if (accumulator == null) {
@@ -17187,7 +17297,7 @@ var __async = (__this, __arguments, generator) => {
17187
17297
  }
17188
17298
  return result3;
17189
17299
  }
17190
- function toPath(value) {
17300
+ function toPath2(value) {
17191
17301
  if (isArray3(value)) {
17192
17302
  return arrayMap(value, toKey);
17193
17303
  }
@@ -17358,9 +17468,9 @@ var __async = (__this, __arguments, generator) => {
17358
17468
  lodash2.toArray = toArray;
17359
17469
  lodash2.toPairs = toPairs;
17360
17470
  lodash2.toPairsIn = toPairsIn;
17361
- lodash2.toPath = toPath;
17471
+ lodash2.toPath = toPath2;
17362
17472
  lodash2.toPlainObject = toPlainObject;
17363
- lodash2.transform = transform;
17473
+ lodash2.transform = transform2;
17364
17474
  lodash2.unary = unary;
17365
17475
  lodash2.union = union;
17366
17476
  lodash2.unionBy = unionBy;
@@ -17459,7 +17569,7 @@ var __async = (__this, __arguments, generator) => {
17459
17569
  lodash2.isNull = isNull2;
17460
17570
  lodash2.isNumber = isNumber2;
17461
17571
  lodash2.isObject = isObject2;
17462
- lodash2.isObjectLike = isObjectLike;
17572
+ lodash2.isObjectLike = isObjectLike2;
17463
17573
  lodash2.isPlainObject = isPlainObject4;
17464
17574
  lodash2.isRegExp = isRegExp2;
17465
17575
  lodash2.isSafeInteger = isSafeInteger;
@@ -19154,6 +19264,10 @@ var __async = (__this, __arguments, generator) => {
19154
19264
  const page2 = Number(params.value[QUERY_PARAMS_PARSED.PAGE]) || 1;
19155
19265
  return page2 <= 0 ? 1 : page2;
19156
19266
  });
19267
+ const disableNavigationToSearchResults = computed(() => {
19268
+ var _a25;
19269
+ return ((_a25 = optionsStore.searchBoxOptions) == null ? void 0 : _a25.disableNavigationToSearchResults) || false;
19270
+ });
19157
19271
  const limit = computed(() => {
19158
19272
  return Number(params.value[QUERY_PARAMS_PARSED.LIMIT]) || optionsStore.defaultSearchResultPageSize || defaultLimit.value;
19159
19273
  });
@@ -19247,6 +19361,9 @@ var __async = (__this, __arguments, generator) => {
19247
19361
  if (redirectionApplied) {
19248
19362
  return;
19249
19363
  }
19364
+ if (disableNavigationToSearchResults.value) {
19365
+ return;
19366
+ }
19250
19367
  const forceFullReload = (_a25 = optionsStore.searchBoxOptions.forceFullReloadOnParams) == null ? void 0 : _a25.some(
19251
19368
  (p2) => getQueryParam$1(p2)
19252
19369
  );
@@ -19811,10 +19928,10 @@ var __async = (__this, __arguments, generator) => {
19811
19928
  key: 0,
19812
19929
  class: "lupa-dialog-overlay"
19813
19930
  };
19814
- const _hoisted_2$Y = { class: "lupa-dialog-content" };
19931
+ const _hoisted_2$Z = { class: "lupa-dialog-content" };
19815
19932
  const _hoisted_3$G = { class: "lupa-listening-text" };
19816
- const _hoisted_4$w = { class: "lupa-mic-button-wrapper" };
19817
- const _hoisted_5$m = ["aria-label"];
19933
+ const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
19934
+ const _hoisted_5$l = ["aria-label"];
19818
19935
  const _sfc_main$1F = /* @__PURE__ */ defineComponent({
19819
19936
  __name: "VoiceSearchDialog",
19820
19937
  props: {
@@ -19925,15 +20042,15 @@ var __async = (__this, __arguments, generator) => {
19925
20042
  class: "lupa-dialog-box-close-button",
19926
20043
  onClick: _cache[0] || (_cache[0] = () => emit2("close"))
19927
20044
  }),
19928
- createBaseVNode("div", _hoisted_2$Y, [
20045
+ createBaseVNode("div", _hoisted_2$Z, [
19929
20046
  createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
19930
- createBaseVNode("div", _hoisted_4$w, [
20047
+ createBaseVNode("div", _hoisted_4$v, [
19931
20048
  createBaseVNode("button", {
19932
20049
  class: normalizeClass(["lupa-mic-button", { recording: unref(isRecording) }]),
19933
20050
  onClick: handleRecordingButtonClick,
19934
20051
  "aria-controls": "voice-search-microphone",
19935
20052
  "aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
19936
- }, null, 10, _hoisted_5$m),
20053
+ }, null, 10, _hoisted_5$l),
19937
20054
  createVNode(_sfc_main$1G, {
19938
20055
  ref_key: "voiceSearchProgressBar",
19939
20056
  ref: voiceSearchProgressBar,
@@ -19950,10 +20067,10 @@ var __async = (__this, __arguments, generator) => {
19950
20067
  }
19951
20068
  });
19952
20069
  const _hoisted_1$1n = { id: "lupa-search-box-input-container" };
19953
- const _hoisted_2$X = { class: "lupa-input-clear" };
20070
+ const _hoisted_2$Y = { class: "lupa-input-clear" };
19954
20071
  const _hoisted_3$F = { id: "lupa-search-box-input" };
19955
- const _hoisted_4$v = ["value"];
19956
- const _hoisted_5$l = ["aria-label", "placeholder"];
20072
+ const _hoisted_4$u = ["value"];
20073
+ const _hoisted_5$k = ["aria-label", "placeholder"];
19957
20074
  const _hoisted_6$7 = {
19958
20075
  key: 0,
19959
20076
  class: "lupa-close-label"
@@ -20093,7 +20210,7 @@ var __async = (__this, __arguments, generator) => {
20093
20210
  __expose({ focus });
20094
20211
  return (_ctx, _cache) => {
20095
20212
  return openBlock(), createElementBlock("div", _hoisted_1$1n, [
20096
- createBaseVNode("div", _hoisted_2$X, [
20213
+ createBaseVNode("div", _hoisted_2$Y, [
20097
20214
  createBaseVNode("div", {
20098
20215
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
20099
20216
  onClick: clear
@@ -20105,7 +20222,7 @@ var __async = (__this, __arguments, generator) => {
20105
20222
  "aria-hidden": "true",
20106
20223
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
20107
20224
  disabled: ""
20108
- }, null, 8, _hoisted_4$v),
20225
+ }, null, 8, _hoisted_4$u),
20109
20226
  withDirectives(createBaseVNode("input", mergeProps({
20110
20227
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
20111
20228
  }, inputAttributes.value, {
@@ -20119,7 +20236,7 @@ var __async = (__this, __arguments, generator) => {
20119
20236
  placeholder: labels.value.placeholder,
20120
20237
  onInput: handleInput,
20121
20238
  onFocus: handleFocus
20122
- }), null, 16, _hoisted_5$l), [
20239
+ }), null, 16, _hoisted_5$k), [
20123
20240
  [vModelText, inputValue.value]
20124
20241
  ]),
20125
20242
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -20198,7 +20315,7 @@ var __async = (__this, __arguments, generator) => {
20198
20315
  }
20199
20316
  });
20200
20317
  const _hoisted_1$1m = { class: "lupa-search-box-history-item" };
20201
- const _hoisted_2$W = { class: "lupa-search-box-history-item-content" };
20318
+ const _hoisted_2$X = { class: "lupa-search-box-history-item-content" };
20202
20319
  const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20203
20320
  __name: "SearchBoxHistoryItem",
20204
20321
  props: {
@@ -20217,7 +20334,7 @@ var __async = (__this, __arguments, generator) => {
20217
20334
  };
20218
20335
  return (_ctx, _cache) => {
20219
20336
  return openBlock(), createElementBlock("div", _hoisted_1$1m, [
20220
- createBaseVNode("div", _hoisted_2$W, [
20337
+ createBaseVNode("div", _hoisted_2$X, [
20221
20338
  createBaseVNode("div", {
20222
20339
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
20223
20340
  onClick: click2
@@ -20304,15 +20421,31 @@ var __async = (__this, __arguments, generator) => {
20304
20421
  };
20305
20422
  }
20306
20423
  });
20307
- const _hoisted_1$1k = { class: "lupa-search-box-no-results" };
20424
+ const _hoisted_1$1k = ["innerHTML"];
20425
+ const _hoisted_2$W = {
20426
+ key: 1,
20427
+ class: "lupa-search-box-no-results"
20428
+ };
20308
20429
  const _sfc_main$1A = /* @__PURE__ */ defineComponent({
20309
20430
  __name: "SearchBoxNoResults",
20310
20431
  props: {
20311
- labels: {}
20432
+ options: {}
20312
20433
  },
20313
20434
  setup(__props) {
20435
+ const props = __props;
20436
+ const customHtml = computed(() => {
20437
+ return props.options.noResultsCustomHtml;
20438
+ });
20439
+ const labels = computed(() => {
20440
+ return props.options.labels;
20441
+ });
20314
20442
  return (_ctx, _cache) => {
20315
- return openBlock(), createElementBlock("p", _hoisted_1$1k, toDisplayString(_ctx.labels.noResults), 1);
20443
+ var _a25;
20444
+ return customHtml.value ? (openBlock(), createElementBlock("div", {
20445
+ key: 0,
20446
+ class: "lupa-search-box-no-results",
20447
+ innerHTML: customHtml.value
20448
+ }, null, 8, _hoisted_1$1k)) : (openBlock(), createElementBlock("p", _hoisted_2$W, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
20316
20449
  };
20317
20450
  }
20318
20451
  });
@@ -20355,11 +20488,11 @@ var __async = (__this, __arguments, generator) => {
20355
20488
  class: "lupa-suggestion-facet",
20356
20489
  "data-cy": "lupa-suggestion-facet"
20357
20490
  };
20358
- const _hoisted_4$u = {
20491
+ const _hoisted_4$t = {
20359
20492
  class: "lupa-suggestion-facet-label",
20360
20493
  "data-cy": "lupa-suggestion-facet-label"
20361
20494
  };
20362
- const _hoisted_5$k = {
20495
+ const _hoisted_5$j = {
20363
20496
  class: "lupa-suggestion-facet-value",
20364
20497
  "data-cy": "lupa-suggestion-facet-value"
20365
20498
  };
@@ -20402,8 +20535,8 @@ var __async = (__this, __arguments, generator) => {
20402
20535
  innerHTML: _ctx.suggestion.displayHighlight
20403
20536
  }, null, 8, _hoisted_1$1j)) : (openBlock(), createElementBlock("div", _hoisted_2$V, toDisplayString(_ctx.suggestion.display), 1)),
20404
20537
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
20405
- createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
20406
- createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
20538
+ createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
20539
+ createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
20407
20540
  ])) : createCommentVNode("", true)
20408
20541
  ]);
20409
20542
  };
@@ -28469,12 +28602,12 @@ and ensure you are accounting for this risk.
28469
28602
  });
28470
28603
  const transformTagsMap = {};
28471
28604
  let transformTagsAll;
28472
- each(options.transformTags, function(transform, tag) {
28605
+ each(options.transformTags, function(transform2, tag) {
28473
28606
  let transFun;
28474
- if (typeof transform === "function") {
28475
- transFun = transform;
28476
- } else if (typeof transform === "string") {
28477
- transFun = sanitizeHtml2.simpleTransform(transform);
28607
+ if (typeof transform2 === "function") {
28608
+ transFun = transform2;
28609
+ } else if (typeof transform2 === "string") {
28610
+ transFun = sanitizeHtml2.simpleTransform(transform2);
28478
28611
  }
28479
28612
  if (tag === "*") {
28480
28613
  transformTagsAll = transFun;
@@ -30142,8 +30275,8 @@ and ensure you are accounting for this risk.
30142
30275
  const _hoisted_1$1d = ["innerHTML"];
30143
30276
  const _hoisted_2$R = { key: 0 };
30144
30277
  const _hoisted_3$D = { key: 1 };
30145
- const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
30146
- const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
30278
+ const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
30279
+ const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
30147
30280
  const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30148
30281
  __name: "SearchBoxProductCustom",
30149
30282
  props: {
@@ -30175,8 +30308,8 @@ and ensure you are accounting for this risk.
30175
30308
  class: [className.value, "lupa-search-box-product-custom"]
30176
30309
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
30177
30310
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
30178
- createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
30179
- createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
30311
+ createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
30312
+ createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
30180
30313
  ]))
30181
30314
  ], 16));
30182
30315
  };
@@ -30566,8 +30699,8 @@ and ensure you are accounting for this risk.
30566
30699
  const _hoisted_1$1b = { class: "lupa-search-box-add-to-cart-wrapper" };
30567
30700
  const _hoisted_2$Q = { class: "lupa-search-box-product-addtocart" };
30568
30701
  const _hoisted_3$C = ["disabled"];
30569
- const _hoisted_4$s = ["href"];
30570
- const _hoisted_5$i = ["disabled"];
30702
+ const _hoisted_4$r = ["href"];
30703
+ const _hoisted_5$h = ["disabled"];
30571
30704
  const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30572
30705
  __name: "SearchBoxProductAddToCart",
30573
30706
  props: {
@@ -30622,7 +30755,7 @@ and ensure you are accounting for this risk.
30622
30755
  "data-cy": "lupa-add-to-cart",
30623
30756
  disabled: !inStockValue.value || loading.value
30624
30757
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
30625
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
30758
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
30626
30759
  ], 16, _hoisted_3$C)) : (openBlock(), createElementBlock("button", mergeProps({
30627
30760
  key: 1,
30628
30761
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -30630,7 +30763,7 @@ and ensure you are accounting for this risk.
30630
30763
  "data-cy": "lupa-add-to-cart",
30631
30764
  type: "button",
30632
30765
  disabled: !inStockValue.value || loading.value
30633
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
30766
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$h))
30634
30767
  ])
30635
30768
  ]);
30636
30769
  };
@@ -30742,7 +30875,7 @@ and ensure you are accounting for this risk.
30742
30875
  const _hoisted_1$19 = { class: "lupa-badge-title" };
30743
30876
  const _hoisted_2$P = ["src"];
30744
30877
  const _hoisted_3$B = { key: 1 };
30745
- const _hoisted_4$r = {
30878
+ const _hoisted_4$q = {
30746
30879
  key: 0,
30747
30880
  class: "lupa-badge-full-text"
30748
30881
  };
@@ -30786,7 +30919,7 @@ and ensure you are accounting for this risk.
30786
30919
  }, null, 8, _hoisted_2$P)) : createCommentVNode("", true),
30787
30920
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
30788
30921
  ]),
30789
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
30922
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
30790
30923
  ], 6);
30791
30924
  };
30792
30925
  }
@@ -31319,7 +31452,7 @@ and ensure you are accounting for this risk.
31319
31452
  };
31320
31453
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
31321
31454
  });
31322
- const _hoisted_1$12 = { id: "lupa-search-box-products" };
31455
+ const _hoisted_1$12 = ["innerHTML"];
31323
31456
  const _sfc_main$1e = /* @__PURE__ */ defineComponent({
31324
31457
  __name: "SearchBoxProducts",
31325
31458
  props: {
@@ -31345,6 +31478,29 @@ and ensure you are accounting for this risk.
31345
31478
  }
31346
31479
  return (_c = (_b25 = highlightedItem.value) == null ? void 0 : _b25.index) != null ? _c : -1;
31347
31480
  });
31481
+ const showAll = ref(false);
31482
+ const hasResults = computed(() => {
31483
+ return props.items && props.items.length > 0;
31484
+ });
31485
+ const hasUncollapsedDocumentCountLimit = computed(() => {
31486
+ var _a25;
31487
+ return Boolean((_a25 = props.panelOptions) == null ? void 0 : _a25.uncollapsedDocumentCount);
31488
+ });
31489
+ const showAllItemsToggleButton = computed(() => {
31490
+ var _a25, _b25, _c;
31491
+ if (!hasUncollapsedDocumentCountLimit.value) {
31492
+ return false;
31493
+ }
31494
+ return ((_a25 = props.items) == null ? void 0 : _a25.length) > ((_c = (_b25 = props.panelOptions) == null ? void 0 : _b25.uncollapsedDocumentCount) != null ? _c : 0);
31495
+ });
31496
+ const displayItems = computed(() => {
31497
+ var _a25, _b25;
31498
+ if (showAll.value) {
31499
+ return props.items;
31500
+ }
31501
+ const count = (_b25 = (_a25 = props.panelOptions.uncollapsedDocumentCount) != null ? _a25 : props.panelOptions.limit) != null ? _b25 : props.items.length;
31502
+ return props.items.slice(0, count);
31503
+ });
31348
31504
  const handleProductClick = ({
31349
31505
  item,
31350
31506
  eventType,
@@ -31392,8 +31548,12 @@ and ensure you are accounting for this risk.
31392
31548
  }
31393
31549
  };
31394
31550
  return (_ctx, _cache) => {
31395
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
31396
- _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
31551
+ var _a25, _b25, _c;
31552
+ return openBlock(), createElementBlock("div", {
31553
+ id: "lupa-search-box-products",
31554
+ class: normalizeClass({ "lupa-search-box-products-expanded": showAll.value })
31555
+ }, [
31556
+ _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(displayItems.value, (item, index) => {
31397
31557
  return renderSlot(_ctx.$slots, "productCard", {
31398
31558
  key: index,
31399
31559
  item,
@@ -31403,7 +31563,7 @@ and ensure you are accounting for this risk.
31403
31563
  inputValue: _ctx.inputValue,
31404
31564
  itemClicked: handleProductClick
31405
31565
  });
31406
- }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
31566
+ }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
31407
31567
  return openBlock(), createBlock(_sfc_main$1f, {
31408
31568
  key: index,
31409
31569
  item,
@@ -31414,8 +31574,17 @@ and ensure you are accounting for this risk.
31414
31574
  onProductClick: handleProductClick
31415
31575
  }, null, 8, ["item", "panelOptions", "labels", "highlighted", "inputValue"]);
31416
31576
  }), 128)),
31577
+ hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
31578
+ key: 2,
31579
+ innerHTML: _ctx.panelOptions.appendCustomHtml
31580
+ }, null, 8, _hoisted_1$12)) : createCommentVNode("", true),
31581
+ showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
31582
+ key: 3,
31583
+ class: "lupa-search-box-expand",
31584
+ onClick: _cache[0] || (_cache[0] = ($event) => showAll.value = !showAll.value)
31585
+ }, toDisplayString(showAll.value ? (_b25 = _ctx.labels) == null ? void 0 : _b25.showLess : (_c = _ctx.labels) == null ? void 0 : _c.showMore), 1)) : createCommentVNode("", true),
31417
31586
  renderSlot(_ctx.$slots, "default")
31418
- ]);
31587
+ ], 2);
31419
31588
  };
31420
31589
  }
31421
31590
  });
@@ -31603,6 +31772,7 @@ and ensure you are accounting for this risk.
31603
31772
  searchText: props.inputValue,
31604
31773
  limit: props.panel.limit,
31605
31774
  filters: extractedInitialFilters.value,
31775
+ selectFields: props.panel.selectFields,
31606
31776
  modifiers: {
31607
31777
  facets: false,
31608
31778
  refiners: false
@@ -31745,23 +31915,15 @@ and ensure you are accounting for this risk.
31745
31915
  };
31746
31916
  }
31747
31917
  });
31748
- const _hoisted_1$10 = {
31749
- key: 0,
31750
- id: "lupa-search-box-panel"
31751
- };
31752
- const _hoisted_2$L = ["data-cy"];
31753
- const _hoisted_3$z = {
31918
+ const _hoisted_1$10 = ["data-cy"];
31919
+ const _hoisted_2$L = {
31754
31920
  key: 0,
31755
31921
  class: "lupa-panel-title lupa-panel-title-top-results"
31756
31922
  };
31757
- const _hoisted_4$q = {
31923
+ const _hoisted_3$z = {
31758
31924
  key: 1,
31759
31925
  class: "lupa-panel-title"
31760
31926
  };
31761
- const _hoisted_5$h = {
31762
- key: 1,
31763
- id: "lupa-search-box-panel"
31764
- };
31765
31927
  const __default__$2 = {
31766
31928
  components: {
31767
31929
  SearchBoxSuggestionsWrapper: _sfc_main$1x,
@@ -31934,7 +32096,11 @@ and ensure you are accounting for this risk.
31934
32096
  ref_key: "panelContainer",
31935
32097
  ref: panelContainer
31936
32098
  }, [
31937
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
32099
+ displayResults.value ? (openBlock(), createElementBlock("div", {
32100
+ key: 0,
32101
+ id: "lupa-search-box-panel",
32102
+ class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
32103
+ }, [
31938
32104
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
31939
32105
  key: 0,
31940
32106
  class: "lupa-search-box-close-panel",
@@ -31956,8 +32122,8 @@ and ensure you are accounting for this risk.
31956
32122
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
31957
32123
  "data-cy": "lupa-panel-" + panel.type + "-index"
31958
32124
  }, [
31959
- ((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
31960
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$q, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
32125
+ ((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
32126
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
31961
32127
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
31962
32128
  key: 2,
31963
32129
  panel,
@@ -31979,20 +32145,24 @@ and ensure you are accounting for this risk.
31979
32145
  key: "0"
31980
32146
  } : void 0
31981
32147
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
31982
- ], 14, _hoisted_2$L);
32148
+ ], 14, _hoisted_1$10);
31983
32149
  }), 128))
31984
32150
  ], 4),
31985
32151
  !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1A, {
31986
32152
  key: 1,
31987
- labels: labels.value
31988
- }, null, 8, ["labels"])) : createCommentVNode("", true),
32153
+ options: _ctx.options
32154
+ }, null, 8, ["options"])) : createCommentVNode("", true),
31989
32155
  displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1D, {
31990
32156
  key: 2,
31991
32157
  labels: labels.value,
31992
32158
  options: _ctx.options,
31993
32159
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
31994
32160
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
31995
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
32161
+ ], 2)) : displayHistory.value ? (openBlock(), createElementBlock("div", {
32162
+ key: 1,
32163
+ id: "lupa-search-box-panel",
32164
+ class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
32165
+ }, [
31996
32166
  createVNode(_sfc_main$1B, {
31997
32167
  options: _ctx.options.history,
31998
32168
  history: history.value,
@@ -32000,7 +32170,7 @@ and ensure you are accounting for this risk.
32000
32170
  onRemove: remove2,
32001
32171
  onRemoveAll: removeAll
32002
32172
  }, null, 8, ["options", "history"])
32003
- ])) : createCommentVNode("", true)
32173
+ ], 2)) : createCommentVNode("", true)
32004
32174
  ], 512);
32005
32175
  };
32006
32176
  }
@@ -32073,7 +32243,8 @@ and ensure you are accounting for this risk.
32073
32243
  "hideMoreResultsButtonOnEmptyQuery",
32074
32244
  "showNoResultsPanel",
32075
32245
  "expandOnSinglePanel",
32076
- "showMoreResultsButton"
32246
+ "showMoreResultsButton",
32247
+ "noResultsCustomHtml"
32077
32248
  ])
32078
32249
  );
32079
32250
  const searchTriggers = computed(() => {
@@ -32139,22 +32310,31 @@ and ensure you are accounting for this risk.
32139
32310
  (_b25 = props.options.callbacks) == null ? void 0 : _b25.onClosed();
32140
32311
  }
32141
32312
  };
32142
- const handleKeyDown = (e2) => {
32313
+ const fillInputWithSuggestion = () => {
32143
32314
  var _a26, _b25;
32315
+ if ((_b25 = (_a26 = suggestedValue == null ? void 0 : suggestedValue.value) == null ? void 0 : _a26.item) == null ? void 0 : _b25.suggestion) {
32316
+ selectSuggestion(__spreadProps2(__spreadValues2({}, suggestedValue.value), { override: true }));
32317
+ }
32318
+ };
32319
+ const goToResults = () => {
32320
+ handleSearch();
32321
+ resetValues();
32322
+ };
32323
+ const handleKeyDown = (e2) => {
32144
32324
  if (!focused.value) {
32145
32325
  return;
32146
32326
  }
32147
32327
  switch (e2.key) {
32148
32328
  case "Tab":
32149
- if ((_b25 = (_a26 = suggestedValue == null ? void 0 : suggestedValue.value) == null ? void 0 : _a26.item) == null ? void 0 : _b25.suggestion) {
32150
- e2.preventDefault();
32151
- selectSuggestion(__spreadProps2(__spreadValues2({}, suggestedValue.value), { override: true }));
32152
- }
32329
+ fillInputWithSuggestion();
32153
32330
  break;
32154
32331
  case "Enter":
32155
32332
  e2.preventDefault();
32156
- handleSearch();
32157
- resetValues();
32333
+ if (props.options.disableNavigationToSearchResults) {
32334
+ fillInputWithSuggestion();
32335
+ } else {
32336
+ goToResults();
32337
+ }
32158
32338
  break;
32159
32339
  case "Escape":
32160
32340
  opened.value = false;
@@ -32215,7 +32395,11 @@ and ensure you are accounting for this risk.
32215
32395
  inputValue.value = inputSuggestion.override ? inputSuggestion.item.suggestion : inputValue.value;
32216
32396
  }
32217
32397
  if (shouldSearch) {
32218
- handleSearch();
32398
+ if (props.options.disableNavigationToSearchResults) {
32399
+ fillInputWithSuggestion();
32400
+ } else {
32401
+ handleSearch();
32402
+ }
32219
32403
  }
32220
32404
  };
32221
32405
  const handleNavigateDocument = ({ link }) => {
@@ -32381,7 +32565,7 @@ and ensure you are accounting for this risk.
32381
32565
  };
32382
32566
  }
32383
32567
  });
32384
- const createPublicQuery = (queryParams, sortOptions, defaultPageSize) => {
32568
+ const createPublicQuery = (queryParams, sortOptions, defaultPageSize, selectFields) => {
32385
32569
  var _a25;
32386
32570
  const publicQuery = {};
32387
32571
  for (const param in queryParams) {
@@ -32415,6 +32599,9 @@ and ensure you are accounting for this risk.
32415
32599
  }
32416
32600
  publicQuery.sort = publicQuery.sort || getDefaultSort(sortOptions);
32417
32601
  publicQuery.filters = queryParams.filters;
32602
+ if (selectFields) {
32603
+ publicQuery.selectFields = selectFields;
32604
+ }
32418
32605
  return publicQuery;
32419
32606
  };
32420
32607
  const getDefaultSort = (sortOptions) => {
@@ -34146,7 +34333,7 @@ and ensure you are accounting for this risk.
34146
34333
  }
34147
34334
  );
34148
34335
  const facetMin = computed(() => Math.floor(facetValue.value.min * currencyMultiplier.value));
34149
- const facetMax = computed(() => Math.ceil(facetValue.value.max * currencyMultiplier.value));
34336
+ const facetMax = computed(() => Number((facetValue.value.max * currencyMultiplier.value).toFixed(2)));
34150
34337
  const currentGte = computed(
34151
34338
  () => getAdjustedNumber(currentFilters.value.gte, currencyMultiplier.value)
34152
34339
  );
@@ -35616,7 +35803,7 @@ and ensure you are accounting for this risk.
35616
35803
  class: "lupa-select-label",
35617
35804
  for: "lupa-page-size-select-dropdown"
35618
35805
  };
35619
- const _hoisted_4$g = ["aria-label"];
35806
+ const _hoisted_4$g = ["value", "aria-label"];
35620
35807
  const _hoisted_5$b = ["value"];
35621
35808
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
35622
35809
  __name: "SearchResultsPageSize",
@@ -35629,6 +35816,7 @@ and ensure you are accounting for this risk.
35629
35816
  const paramsStore = useParamsStore();
35630
35817
  const optionsStore = useOptionsStore();
35631
35818
  const { ariaLabels } = storeToRefs(optionsStore);
35819
+ const { limit } = storeToRefs(paramsStore);
35632
35820
  const select = ref(null);
35633
35821
  const prefixLabel = computed(() => {
35634
35822
  var _a25, _b25;
@@ -35652,6 +35840,7 @@ and ensure you are accounting for this risk.
35652
35840
  createBaseVNode("div", _hoisted_2$v, [
35653
35841
  createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
35654
35842
  createBaseVNode("select", {
35843
+ value: unref(limit),
35655
35844
  id: "lupa-page-size-select-dropdown",
35656
35845
  class: "lupa-select-dropdown",
35657
35846
  "aria-label": (_c = (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.pageSizeSelect) != null ? _b25 : label.value) != null ? _c : "Select page size",
@@ -35710,6 +35899,7 @@ and ensure you are accounting for this risk.
35710
35899
  previousKey.value = selectedKey.value;
35711
35900
  };
35712
35901
  watch(sort, () => setSortValue());
35902
+ watch(sortOptions, () => setSortValue());
35713
35903
  const handleSelect = () => {
35714
35904
  var _a25, _b25, _c;
35715
35905
  const value = (_a25 = sortItems.value.find((x) => x.key === selectedKey.value)) == null ? void 0 : _a25.key;
@@ -35725,12 +35915,15 @@ and ensure you are accounting for this risk.
35725
35915
  previousKey.value = selectedKey.value;
35726
35916
  };
35727
35917
  return {
35918
+ sort,
35728
35919
  sotyByTitleLabel,
35729
35920
  sortItems,
35730
35921
  selectedKey,
35922
+ previousKey,
35731
35923
  ariaLabels,
35732
35924
  sortOptions,
35733
35925
  sortStyle,
35926
+ defaultSortValue,
35734
35927
  handleSelect,
35735
35928
  setSortValue
35736
35929
  };
@@ -37283,7 +37476,7 @@ and ensure you are accounting for this risk.
37283
37476
  } : {};
37284
37477
  });
37285
37478
  const searchForRelatedQuery = () => __async2(null, null, function* () {
37286
- var _a25, _b25, _c, _d, _e, _f, _g, _h;
37479
+ var _a25, _b25, _c, _d, _e, _f, _g, _h, _i;
37287
37480
  if (!props.query) {
37288
37481
  return;
37289
37482
  }
@@ -37292,6 +37485,7 @@ and ensure you are accounting for this risk.
37292
37485
  limit: 3,
37293
37486
  filters: relatedQueryFilters.value,
37294
37487
  trackTerm: false,
37488
+ selectFields: (_a25 = searchResultOptions.value) == null ? void 0 : _a25.selectFields,
37295
37489
  modifiers: {
37296
37490
  facets: false,
37297
37491
  refiners: false
@@ -37302,18 +37496,18 @@ and ensure you are accounting for this risk.
37302
37496
  const result2 = yield LupaSearchSdk.query(
37303
37497
  queryKey.value,
37304
37498
  lupaQuery,
37305
- (_a25 = searchResultOptions.value) == null ? void 0 : _a25.options
37499
+ (_b25 = searchResultOptions.value) == null ? void 0 : _b25.options
37306
37500
  );
37307
37501
  if (result2.success) {
37308
37502
  relatedQueryResult.value = result2;
37309
37503
  }
37310
- const firstItem = (_c = (_b25 = relatedQueryResult.value) == null ? void 0 : _b25.items) == null ? void 0 : _c[0];
37311
- itemToDisplay.value = (_f = (_e = (_d = relatedQueryResult == null ? void 0 : relatedQueryResult.value) == null ? void 0 : _d.items) == null ? void 0 : _e.find(
37504
+ const firstItem = (_d = (_c = relatedQueryResult.value) == null ? void 0 : _c.items) == null ? void 0 : _d[0];
37505
+ itemToDisplay.value = (_g = (_f = (_e = relatedQueryResult == null ? void 0 : relatedQueryResult.value) == null ? void 0 : _e.items) == null ? void 0 : _f.find(
37312
37506
  (i) => !props.existingItemsFromOtherQueries[`${i.id}`]
37313
- )) != null ? _f : firstItem;
37507
+ )) != null ? _g : firstItem;
37314
37508
  emit2("loaded", itemToDisplay.value);
37315
37509
  } catch (error) {
37316
- (_h = (_g = searchResultOptions.value) == null ? void 0 : _g.options) == null ? void 0 : _h.onError(error);
37510
+ (_i = (_h = searchResultOptions.value) == null ? void 0 : _h.options) == null ? void 0 : _i.onError(error);
37317
37511
  } finally {
37318
37512
  loading.value = false;
37319
37513
  }
@@ -38444,7 +38638,8 @@ and ensure you are accounting for this risk.
38444
38638
  const publicQuery = createPublicQuery(
38445
38639
  parseParams(optionStore.getQueryParamName, searchParams),
38446
38640
  props.options.sort,
38447
- defaultSearchResultPageSize.value
38641
+ defaultSearchResultPageSize.value,
38642
+ props.options.selectFields
38448
38643
  );
38449
38644
  searchResultStore.setLoading(true);
38450
38645
  const finalPublicQuery = getPublicQuery(publicQuery, initialFilters.value, props.isProductList);
@@ -38919,8 +39114,8 @@ and ensure you are accounting for this risk.
38919
39114
  return Math.min(Math.max(val, isNaN(min) ? val : min), isNaN(max) ? val : max);
38920
39115
  }
38921
39116
  function getTransformValues(el) {
38922
- const { transform } = window.getComputedStyle(el);
38923
- return transform.split(/[(,)]/).slice(1, -1).map((v) => parseFloat(v));
39117
+ const { transform: transform2 } = window.getComputedStyle(el);
39118
+ return transform2.split(/[(,)]/).slice(1, -1).map((v) => parseFloat(v));
38924
39119
  }
38925
39120
  function getScaleMultipliers(transformElements) {
38926
39121
  let widthMultiplier = 1;
@@ -42036,9 +42231,9 @@ and ensure you are accounting for this risk.
42036
42231
  });
42037
42232
  return result2;
42038
42233
  }
42039
- function overArg(func, transform) {
42234
+ function overArg(func, transform2) {
42040
42235
  return function(arg) {
42041
- return func(transform(arg));
42236
+ return func(transform2(arg));
42042
42237
  };
42043
42238
  }
42044
42239
  function replaceHolders(array, placeholder) {
@@ -42145,7 +42340,7 @@ and ensure you are accounting for this risk.
42145
42340
  var dataViewCtorString = toSource(DataView2), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
42146
42341
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
42147
42342
  function lodash2(value) {
42148
- if (isObjectLike(value) && !isArray3(value) && !(value instanceof LazyWrapper)) {
42343
+ if (isObjectLike2(value) && !isArray3(value) && !(value instanceof LazyWrapper)) {
42149
42344
  if (value instanceof LodashWrapper) {
42150
42345
  return value;
42151
42346
  }
@@ -42826,19 +43021,19 @@ and ensure you are accounting for this risk.
42826
43021
  return func == null ? undefined$1 : apply2(func, object, args);
42827
43022
  }
42828
43023
  function baseIsArguments(value) {
42829
- return isObjectLike(value) && baseGetTag(value) == argsTag;
43024
+ return isObjectLike2(value) && baseGetTag(value) == argsTag;
42830
43025
  }
42831
43026
  function baseIsArrayBuffer(value) {
42832
- return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
43027
+ return isObjectLike2(value) && baseGetTag(value) == arrayBufferTag;
42833
43028
  }
42834
43029
  function baseIsDate(value) {
42835
- return isObjectLike(value) && baseGetTag(value) == dateTag;
43030
+ return isObjectLike2(value) && baseGetTag(value) == dateTag;
42836
43031
  }
42837
43032
  function baseIsEqual(value, other, bitmask, customizer, stack2) {
42838
43033
  if (value === other) {
42839
43034
  return true;
42840
43035
  }
42841
- if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
43036
+ if (value == null || other == null || !isObjectLike2(value) && !isObjectLike2(other)) {
42842
43037
  return value !== value && other !== other;
42843
43038
  }
42844
43039
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack2);
@@ -42874,7 +43069,7 @@ and ensure you are accounting for this risk.
42874
43069
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack2);
42875
43070
  }
42876
43071
  function baseIsMap(value) {
42877
- return isObjectLike(value) && getTag(value) == mapTag;
43072
+ return isObjectLike2(value) && getTag(value) == mapTag;
42878
43073
  }
42879
43074
  function baseIsMatch(object, source, matchData, customizer) {
42880
43075
  var index = matchData.length, length = index, noCustomizer = !customizer;
@@ -42915,13 +43110,13 @@ and ensure you are accounting for this risk.
42915
43110
  return pattern.test(toSource(value));
42916
43111
  }
42917
43112
  function baseIsRegExp(value) {
42918
- return isObjectLike(value) && baseGetTag(value) == regexpTag;
43113
+ return isObjectLike2(value) && baseGetTag(value) == regexpTag;
42919
43114
  }
42920
43115
  function baseIsSet(value) {
42921
- return isObjectLike(value) && getTag(value) == setTag;
43116
+ return isObjectLike2(value) && getTag(value) == setTag;
42922
43117
  }
42923
43118
  function baseIsTypedArray(value) {
42924
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
43119
+ return isObjectLike2(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
42925
43120
  }
42926
43121
  function baseIteratee(value) {
42927
43122
  if (typeof value == "function") {
@@ -44431,7 +44626,7 @@ and ensure you are accounting for this risk.
44431
44626
  function objectToString2(value) {
44432
44627
  return nativeObjectToString.call(value);
44433
44628
  }
44434
- function overRest(func, start, transform2) {
44629
+ function overRest(func, start, transform3) {
44435
44630
  start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
44436
44631
  return function() {
44437
44632
  var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
@@ -44443,7 +44638,7 @@ and ensure you are accounting for this risk.
44443
44638
  while (++index < start) {
44444
44639
  otherArgs[index] = args[index];
44445
44640
  }
44446
- otherArgs[start] = transform2(array);
44641
+ otherArgs[start] = transform3(array);
44447
44642
  return apply2(func, this, otherArgs);
44448
44643
  };
44449
44644
  }
@@ -45465,7 +45660,7 @@ and ensure you are accounting for this risk.
45465
45660
  var isArguments = baseIsArguments(/* @__PURE__ */ function() {
45466
45661
  return arguments;
45467
45662
  }()) ? baseIsArguments : function(value) {
45468
- return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
45663
+ return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
45469
45664
  };
45470
45665
  var isArray3 = Array2.isArray;
45471
45666
  var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
@@ -45473,15 +45668,15 @@ and ensure you are accounting for this risk.
45473
45668
  return value != null && isLength(value.length) && !isFunction2(value);
45474
45669
  }
45475
45670
  function isArrayLikeObject(value) {
45476
- return isObjectLike(value) && isArrayLike(value);
45671
+ return isObjectLike2(value) && isArrayLike(value);
45477
45672
  }
45478
45673
  function isBoolean2(value) {
45479
- return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;
45674
+ return value === true || value === false || isObjectLike2(value) && baseGetTag(value) == boolTag;
45480
45675
  }
45481
45676
  var isBuffer = nativeIsBuffer || stubFalse;
45482
45677
  var isDate2 = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
45483
45678
  function isElement(value) {
45484
- return isObjectLike(value) && value.nodeType === 1 && !isPlainObject4(value);
45679
+ return isObjectLike2(value) && value.nodeType === 1 && !isPlainObject4(value);
45485
45680
  }
45486
45681
  function isEmpty(value) {
45487
45682
  if (value == null) {
@@ -45513,7 +45708,7 @@ and ensure you are accounting for this risk.
45513
45708
  return result3 === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result3;
45514
45709
  }
45515
45710
  function isError2(value) {
45516
- if (!isObjectLike(value)) {
45711
+ if (!isObjectLike2(value)) {
45517
45712
  return false;
45518
45713
  }
45519
45714
  var tag = baseGetTag(value);
@@ -45539,7 +45734,7 @@ and ensure you are accounting for this risk.
45539
45734
  var type = typeof value;
45540
45735
  return value != null && (type == "object" || type == "function");
45541
45736
  }
45542
- function isObjectLike(value) {
45737
+ function isObjectLike2(value) {
45543
45738
  return value != null && typeof value == "object";
45544
45739
  }
45545
45740
  var isMap2 = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
@@ -45566,10 +45761,10 @@ and ensure you are accounting for this risk.
45566
45761
  return value == null;
45567
45762
  }
45568
45763
  function isNumber2(value) {
45569
- return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
45764
+ return typeof value == "number" || isObjectLike2(value) && baseGetTag(value) == numberTag;
45570
45765
  }
45571
45766
  function isPlainObject4(value) {
45572
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
45767
+ if (!isObjectLike2(value) || baseGetTag(value) != objectTag) {
45573
45768
  return false;
45574
45769
  }
45575
45770
  var proto = getPrototype(value);
@@ -45585,20 +45780,20 @@ and ensure you are accounting for this risk.
45585
45780
  }
45586
45781
  var isSet2 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
45587
45782
  function isString2(value) {
45588
- return typeof value == "string" || !isArray3(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
45783
+ return typeof value == "string" || !isArray3(value) && isObjectLike2(value) && baseGetTag(value) == stringTag;
45589
45784
  }
45590
45785
  function isSymbol2(value) {
45591
- return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
45786
+ return typeof value == "symbol" || isObjectLike2(value) && baseGetTag(value) == symbolTag;
45592
45787
  }
45593
45788
  var isTypedArray2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
45594
45789
  function isUndefined2(value) {
45595
45790
  return value === undefined$1;
45596
45791
  }
45597
45792
  function isWeakMap(value) {
45598
- return isObjectLike(value) && getTag(value) == weakMapTag;
45793
+ return isObjectLike2(value) && getTag(value) == weakMapTag;
45599
45794
  }
45600
45795
  function isWeakSet(value) {
45601
- return isObjectLike(value) && baseGetTag(value) == weakSetTag;
45796
+ return isObjectLike2(value) && baseGetTag(value) == weakSetTag;
45602
45797
  }
45603
45798
  var lt = createRelationalOperation(baseLt);
45604
45799
  var lte = createRelationalOperation(function(value, other) {
@@ -45858,7 +46053,7 @@ and ensure you are accounting for this risk.
45858
46053
  }
45859
46054
  var toPairs = createToPairs(keys);
45860
46055
  var toPairsIn = createToPairs(keysIn);
45861
- function transform(object, iteratee2, accumulator) {
46056
+ function transform2(object, iteratee2, accumulator) {
45862
46057
  var isArr = isArray3(object), isArrLike = isArr || isBuffer(object) || isTypedArray2(object);
45863
46058
  iteratee2 = getIteratee(iteratee2, 4);
45864
46059
  if (accumulator == null) {
@@ -46361,7 +46556,7 @@ and ensure you are accounting for this risk.
46361
46556
  }
46362
46557
  return result3;
46363
46558
  }
46364
- function toPath(value) {
46559
+ function toPath2(value) {
46365
46560
  if (isArray3(value)) {
46366
46561
  return arrayMap(value, toKey);
46367
46562
  }
@@ -46532,9 +46727,9 @@ and ensure you are accounting for this risk.
46532
46727
  lodash2.toArray = toArray;
46533
46728
  lodash2.toPairs = toPairs;
46534
46729
  lodash2.toPairsIn = toPairsIn;
46535
- lodash2.toPath = toPath;
46730
+ lodash2.toPath = toPath2;
46536
46731
  lodash2.toPlainObject = toPlainObject;
46537
- lodash2.transform = transform;
46732
+ lodash2.transform = transform2;
46538
46733
  lodash2.unary = unary;
46539
46734
  lodash2.union = union;
46540
46735
  lodash2.unionBy = unionBy;
@@ -46633,7 +46828,7 @@ and ensure you are accounting for this risk.
46633
46828
  lodash2.isNull = isNull2;
46634
46829
  lodash2.isNumber = isNumber2;
46635
46830
  lodash2.isObject = isObject2;
46636
- lodash2.isObjectLike = isObjectLike;
46831
+ lodash2.isObjectLike = isObjectLike2;
46637
46832
  lodash2.isPlainObject = isPlainObject4;
46638
46833
  lodash2.isRegExp = isRegExp2;
46639
46834
  lodash2.isSafeInteger = isSafeInteger;