@getlupa/client 0.5.1-alpha-16 → 0.5.1-alpha-19

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.
@@ -18130,6 +18130,256 @@ $$b({
18130
18130
  }
18131
18131
  });
18132
18132
 
18133
+ var global$6 = global$13;
18134
+
18135
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$9;
18136
+
18137
+ var toString$2 = toString$h;
18138
+
18139
+ var requireObjectCoercible$2 = requireObjectCoercible$c;
18140
+
18141
+ var RangeError$2 = global$6.RangeError; // `String.prototype.repeat` method implementation
18142
+ // https://tc39.es/ecma262/#sec-string.prototype.repeat
18143
+
18144
+ var stringRepeat = function repeat(count) {
18145
+ var str = toString$2(requireObjectCoercible$2(this));
18146
+ var result = '';
18147
+ var n = toIntegerOrInfinity$1(count);
18148
+ if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
18149
+
18150
+ for (; n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
18151
+
18152
+ return result;
18153
+ };
18154
+
18155
+ var $$a = _export;
18156
+
18157
+ var global$5 = global$13;
18158
+
18159
+ var uncurryThis$5 = functionUncurryThis;
18160
+
18161
+ var toIntegerOrInfinity = toIntegerOrInfinity$9;
18162
+
18163
+ var thisNumberValue = thisNumberValue$2;
18164
+
18165
+ var $repeat = stringRepeat;
18166
+
18167
+ var fails$2 = fails$F;
18168
+
18169
+ var RangeError$1 = global$5.RangeError;
18170
+ var String$1 = global$5.String;
18171
+ var floor$2 = Math.floor;
18172
+ var repeat = uncurryThis$5($repeat);
18173
+ var stringSlice$3 = uncurryThis$5(''.slice);
18174
+ var un$ToFixed = uncurryThis$5(1.0.toFixed);
18175
+
18176
+ var pow$1 = function (x, n, acc) {
18177
+ return n === 0 ? acc : n % 2 === 1 ? pow$1(x, n - 1, acc * x) : pow$1(x * x, n / 2, acc);
18178
+ };
18179
+
18180
+ var log = function (x) {
18181
+ var n = 0;
18182
+ var x2 = x;
18183
+
18184
+ while (x2 >= 4096) {
18185
+ n += 12;
18186
+ x2 /= 4096;
18187
+ }
18188
+
18189
+ while (x2 >= 2) {
18190
+ n += 1;
18191
+ x2 /= 2;
18192
+ }
18193
+
18194
+ return n;
18195
+ };
18196
+
18197
+ var multiply = function (data, n, c) {
18198
+ var index = -1;
18199
+ var c2 = c;
18200
+
18201
+ while (++index < 6) {
18202
+ c2 += n * data[index];
18203
+ data[index] = c2 % 1e7;
18204
+ c2 = floor$2(c2 / 1e7);
18205
+ }
18206
+ };
18207
+
18208
+ var divide = function (data, n) {
18209
+ var index = 6;
18210
+ var c = 0;
18211
+
18212
+ while (--index >= 0) {
18213
+ c += data[index];
18214
+ data[index] = floor$2(c / n);
18215
+ c = c % n * 1e7;
18216
+ }
18217
+ };
18218
+
18219
+ var dataToString = function (data) {
18220
+ var index = 6;
18221
+ var s = '';
18222
+
18223
+ while (--index >= 0) {
18224
+ if (s !== '' || index === 0 || data[index] !== 0) {
18225
+ var t = String$1(data[index]);
18226
+ s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
18227
+ }
18228
+ }
18229
+
18230
+ return s;
18231
+ };
18232
+
18233
+ var FORCED = fails$2(function () {
18234
+ return un$ToFixed(0.00008, 3) !== '0.000' || un$ToFixed(0.9, 0) !== '1' || un$ToFixed(1.255, 2) !== '1.25' || un$ToFixed(1000000000000000128.0, 0) !== '1000000000000000128';
18235
+ }) || !fails$2(function () {
18236
+ // V8 ~ Android 4.3-
18237
+ un$ToFixed({});
18238
+ }); // `Number.prototype.toFixed` method
18239
+ // https://tc39.es/ecma262/#sec-number.prototype.tofixed
18240
+
18241
+ $$a({
18242
+ target: 'Number',
18243
+ proto: true,
18244
+ forced: FORCED
18245
+ }, {
18246
+ toFixed: function toFixed(fractionDigits) {
18247
+ var number = thisNumberValue(this);
18248
+ var fractDigits = toIntegerOrInfinity(fractionDigits);
18249
+ var data = [0, 0, 0, 0, 0, 0];
18250
+ var sign = '';
18251
+ var result = '0';
18252
+ var e, z, j, k;
18253
+ if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits'); // eslint-disable-next-line no-self-compare -- NaN check
18254
+
18255
+ if (number != number) return 'NaN';
18256
+ if (number <= -1e21 || number >= 1e21) return String$1(number);
18257
+
18258
+ if (number < 0) {
18259
+ sign = '-';
18260
+ number = -number;
18261
+ }
18262
+
18263
+ if (number > 1e-21) {
18264
+ e = log(number * pow$1(2, 69, 1)) - 69;
18265
+ z = e < 0 ? number * pow$1(2, -e, 1) : number / pow$1(2, e, 1);
18266
+ z *= 0x10000000000000;
18267
+ e = 52 - e;
18268
+
18269
+ if (e > 0) {
18270
+ multiply(data, 0, z);
18271
+ j = fractDigits;
18272
+
18273
+ while (j >= 7) {
18274
+ multiply(data, 1e7, 0);
18275
+ j -= 7;
18276
+ }
18277
+
18278
+ multiply(data, pow$1(10, j, 1), 0);
18279
+ j = e - 1;
18280
+
18281
+ while (j >= 23) {
18282
+ divide(data, 1 << 23);
18283
+ j -= 23;
18284
+ }
18285
+
18286
+ divide(data, 1 << j);
18287
+ multiply(data, 1, 1);
18288
+ divide(data, 2);
18289
+ result = dataToString(data);
18290
+ } else {
18291
+ multiply(data, 0, z);
18292
+ multiply(data, 1 << -e, 0);
18293
+ result = dataToString(data) + repeat('0', fractDigits);
18294
+ }
18295
+ }
18296
+
18297
+ if (fractDigits > 0) {
18298
+ k = result.length;
18299
+ result = sign + (k <= fractDigits ? '0.' + repeat('0', fractDigits - k) + result : stringSlice$3(result, 0, k - fractDigits) + '.' + stringSlice$3(result, k - fractDigits));
18300
+ } else {
18301
+ result = sign + result;
18302
+ }
18303
+
18304
+ return result;
18305
+ }
18306
+ });
18307
+
18308
+ var getNormalizedString = function getNormalizedString(str) {
18309
+ if (!str) {
18310
+ return "";
18311
+ }
18312
+
18313
+ var transformedStr = typeof str === "string" ? str : str.toString();
18314
+ return transformedStr.normalize === undefined ? transformedStr.toLocaleLowerCase() : transformedStr.toLocaleLowerCase().normalize("NFKD").replace(/[^\w\s.-_/]/g, "");
18315
+ };
18316
+ var capitalize = function capitalize(str) {
18317
+ if (!str) {
18318
+ return "";
18319
+ }
18320
+
18321
+ return str[0].toLocaleUpperCase() + str.slice(1);
18322
+ };
18323
+ var addParamsToLabel = function addParamsToLabel(label) {
18324
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
18325
+ params[_key - 1] = arguments[_key];
18326
+ }
18327
+
18328
+ if (!params || params.length < 1) {
18329
+ return label;
18330
+ }
18331
+
18332
+ var paramKeys = Array.from(Array(params.length).keys());
18333
+ return paramKeys.reduce(function (a, c) {
18334
+ return a.replace("{".concat(c + 1, "}"), params[c]);
18335
+ }, label);
18336
+ };
18337
+ var getRandomString = function getRandomString(length) {
18338
+ var chars = "0123456789abcdefghijklmnopqrstuvwxyz";
18339
+ var result = "";
18340
+
18341
+ for (var i = length; i > 0; --i) {
18342
+ result += chars[Math.floor(Math.random() * chars.length)];
18343
+ }
18344
+
18345
+ return result;
18346
+ };
18347
+
18348
+ var toFixedIfNecessary = function toFixedIfNecessary(value) {
18349
+ var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
18350
+ return (+parseFloat(value).toFixed(precision)).toString();
18351
+ };
18352
+
18353
+ var getDisplayValue = function getDisplayValue(value) {
18354
+ if (value === undefined) {
18355
+ return "";
18356
+ }
18357
+
18358
+ if (typeof value === "string") {
18359
+ return value;
18360
+ }
18361
+
18362
+ return toFixedIfNecessary(value.toString());
18363
+ };
18364
+ var getProductKey = function getProductKey(index, product, idKey) {
18365
+ if (!idKey) {
18366
+ return index;
18367
+ }
18368
+
18369
+ if (product[idKey]) {
18370
+ return product[idKey];
18371
+ }
18372
+
18373
+ return index;
18374
+ };
18375
+ var escapeHtml = function escapeHtml(value) {
18376
+ if (!value) {
18377
+ return "";
18378
+ }
18379
+
18380
+ return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
18381
+ };
18382
+
18133
18383
  var pick = function pick(obj, keys) {
18134
18384
  var ret = Object.create({});
18135
18385
 
@@ -18150,11 +18400,13 @@ var pick = function pick(obj, keys) {
18150
18400
  return ret;
18151
18401
  };
18152
18402
  var getHint = function getHint(suggestion, inputValue) {
18153
- var hint = suggestion.replace(inputValue, "");
18403
+ var _a;
18404
+
18405
+ if (!inputValue) {
18406
+ return escapeHtml(suggestion);
18407
+ }
18154
18408
 
18155
- if (!hint || suggestion !== hint) {
18156
- return "<strong>".concat(inputValue, "</strong>").concat(hint);
18157
- } else return suggestion;
18409
+ return (_a = suggestion === null || suggestion === void 0 ? void 0 : suggestion.replace(inputValue, "<strong>".concat(escapeHtml(inputValue), "</strong>"))) !== null && _a !== void 0 ? _a : "";
18158
18410
  }; // https://stackoverflow.com/a/56781239
18159
18411
 
18160
18412
  var reverseKeyValue = function reverseKeyValue(obj) {
@@ -18266,25 +18518,25 @@ function merge$1(a, b) {
18266
18518
  return res;
18267
18519
  }
18268
18520
 
18269
- var $$a = _export;
18521
+ var $$9 = _export;
18270
18522
 
18271
- var uncurryThis$5 = functionUncurryThis;
18523
+ var uncurryThis$4 = functionUncurryThis;
18272
18524
 
18273
18525
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
18274
18526
 
18275
18527
  var toLength = toLength$7;
18276
18528
 
18277
- var toString$2 = toString$h;
18529
+ var toString$1 = toString$h;
18278
18530
 
18279
18531
  var notARegExp = notARegexp;
18280
18532
 
18281
- var requireObjectCoercible$2 = requireObjectCoercible$c;
18533
+ var requireObjectCoercible$1 = requireObjectCoercible$c;
18282
18534
 
18283
18535
  var correctIsRegExpLogic = correctIsRegexpLogic;
18284
18536
 
18285
18537
 
18286
- var un$StartsWith = uncurryThis$5(''.startsWith);
18287
- var stringSlice$3 = uncurryThis$5(''.slice);
18538
+ var un$StartsWith = uncurryThis$4(''.startsWith);
18539
+ var stringSlice$2 = uncurryThis$4(''.slice);
18288
18540
  var min = Math.min;
18289
18541
  var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith'); // https://github.com/zloirock/core-js/pull/702
18290
18542
 
@@ -18294,7 +18546,7 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
18294
18546
  }(); // `String.prototype.startsWith` method
18295
18547
  // https://tc39.es/ecma262/#sec-string.prototype.startswith
18296
18548
 
18297
- $$a({
18549
+ $$9({
18298
18550
  target: 'String',
18299
18551
  proto: true,
18300
18552
  forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC
@@ -18302,11 +18554,11 @@ $$a({
18302
18554
  startsWith: function startsWith(searchString
18303
18555
  /* , position = 0 */
18304
18556
  ) {
18305
- var that = toString$2(requireObjectCoercible$2(this));
18557
+ var that = toString$1(requireObjectCoercible$1(this));
18306
18558
  notARegExp(searchString);
18307
18559
  var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
18308
- var search = toString$2(searchString);
18309
- return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice$3(that, index, index + search.length) === search;
18560
+ var search = toString$1(searchString);
18561
+ return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice$2(that, index, index + search.length) === search;
18310
18562
  }
18311
18563
  });
18312
18564
 
@@ -18634,7 +18886,7 @@ var __vue_component__$17 = /*#__PURE__*/normalizeComponent({
18634
18886
  staticRenderFns: __vue_staticRenderFns__$17
18635
18887
  }, __vue_inject_styles__$17, __vue_script__$17, __vue_scope_id__$17, __vue_is_functional_template__$17, __vue_module_identifier__$17, false, createInjector, undefined, undefined);
18636
18888
 
18637
- var $$9 = _export;
18889
+ var $$8 = _export;
18638
18890
 
18639
18891
  var $find = arrayIteration.find;
18640
18892
 
@@ -18648,7 +18900,7 @@ if (FIND in []) Array(1)[FIND](function () {
18648
18900
  }); // `Array.prototype.find` method
18649
18901
  // https://tc39.es/ecma262/#sec-array.prototype.find
18650
18902
 
18651
- $$9({
18903
+ $$8({
18652
18904
  target: 'Array',
18653
18905
  proto: true,
18654
18906
  forced: SKIPS_HOLES
@@ -18877,272 +19129,97 @@ var __vue_scope_id__$15 = undefined;
18877
19129
  var __vue_module_identifier__$15 = undefined;
18878
19130
  /* functional template */
18879
19131
 
18880
- var __vue_is_functional_template__$15 = false;
18881
- /* style inject */
18882
-
18883
- /* style inject SSR */
18884
-
18885
- /* style inject shadow dom */
18886
-
18887
- var __vue_component__$15 = /*#__PURE__*/normalizeComponent({
18888
- render: __vue_render__$15,
18889
- staticRenderFns: __vue_staticRenderFns__$15
18890
- }, __vue_inject_styles__$15, __vue_script__$15, __vue_scope_id__$15, __vue_is_functional_template__$15, __vue_module_identifier__$15, false, undefined, undefined, undefined);
18891
-
18892
- var SearchBoxProductDescription = /*#__PURE__*/function (_Vue) {
18893
- _inherits(SearchBoxProductDescription, _Vue);
18894
-
18895
- var _super = _createSuper(SearchBoxProductDescription);
18896
-
18897
- function SearchBoxProductDescription() {
18898
- _classCallCheck(this, SearchBoxProductDescription);
18899
-
18900
- return _super.apply(this, arguments);
18901
- }
18902
-
18903
- _createClass(SearchBoxProductDescription, [{
18904
- key: "description",
18905
- get: function get() {
18906
- return this.item[this.options.key];
18907
- }
18908
- }, {
18909
- key: "isHtml",
18910
- get: function get() {
18911
- var _a;
18912
-
18913
- return (_a = this.options.isHtml) !== null && _a !== void 0 ? _a : false;
18914
- }
18915
- }]);
18916
-
18917
- return SearchBoxProductDescription;
18918
- }(Vue$1);
18919
-
18920
- __decorate([Prop()], SearchBoxProductDescription.prototype, "item", void 0);
18921
-
18922
- __decorate([Prop()], SearchBoxProductDescription.prototype, "options", void 0);
18923
-
18924
- SearchBoxProductDescription = __decorate([Component], SearchBoxProductDescription);
18925
- var script$13 = SearchBoxProductDescription;
18926
-
18927
- var __vue_script__$14 = script$13;
18928
- /* template */
18929
-
18930
- var __vue_render__$14 = function __vue_render__() {
18931
- var _vm = this;
18932
-
18933
- var _h = _vm.$createElement;
18934
-
18935
- var _c = _vm._self._c || _h;
18936
-
18937
- return _vm.isHtml ? _c("div", {
18938
- staticClass: "lupa-search-box-product-description",
18939
- domProps: {
18940
- innerHTML: _vm._s(_vm.description)
18941
- }
18942
- }) : _c("div", {
18943
- staticClass: "lupa-search-box-product-description"
18944
- }, [_vm._v("\n " + _vm._s(_vm.description) + "\n")]);
18945
- };
18946
-
18947
- var __vue_staticRenderFns__$14 = [];
18948
- __vue_render__$14._withStripped = true;
18949
- /* style */
18950
-
18951
- var __vue_inject_styles__$14 = undefined;
18952
- /* scoped */
18953
-
18954
- var __vue_scope_id__$14 = undefined;
18955
- /* module identifier */
18956
-
18957
- var __vue_module_identifier__$14 = undefined;
18958
- /* functional template */
18959
-
18960
- var __vue_is_functional_template__$14 = false;
18961
- /* style inject */
18962
-
18963
- /* style inject SSR */
18964
-
18965
- /* style inject shadow dom */
18966
-
18967
- var __vue_component__$14 = /*#__PURE__*/normalizeComponent({
18968
- render: __vue_render__$14,
18969
- staticRenderFns: __vue_staticRenderFns__$14
18970
- }, __vue_inject_styles__$14, __vue_script__$14, __vue_scope_id__$14, __vue_is_functional_template__$14, __vue_module_identifier__$14, false, undefined, undefined, undefined);
18971
-
18972
- var global$6 = global$13;
18973
-
18974
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$9;
18975
-
18976
- var toString$1 = toString$h;
18977
-
18978
- var requireObjectCoercible$1 = requireObjectCoercible$c;
18979
-
18980
- var RangeError$2 = global$6.RangeError; // `String.prototype.repeat` method implementation
18981
- // https://tc39.es/ecma262/#sec-string.prototype.repeat
18982
-
18983
- var stringRepeat = function repeat(count) {
18984
- var str = toString$1(requireObjectCoercible$1(this));
18985
- var result = '';
18986
- var n = toIntegerOrInfinity$1(count);
18987
- if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
18988
-
18989
- for (; n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
18990
-
18991
- return result;
18992
- };
18993
-
18994
- var $$8 = _export;
18995
-
18996
- var global$5 = global$13;
18997
-
18998
- var uncurryThis$4 = functionUncurryThis;
18999
-
19000
- var toIntegerOrInfinity = toIntegerOrInfinity$9;
19001
-
19002
- var thisNumberValue = thisNumberValue$2;
19003
-
19004
- var $repeat = stringRepeat;
19005
-
19006
- var fails$2 = fails$F;
19007
-
19008
- var RangeError$1 = global$5.RangeError;
19009
- var String$1 = global$5.String;
19010
- var floor$2 = Math.floor;
19011
- var repeat = uncurryThis$4($repeat);
19012
- var stringSlice$2 = uncurryThis$4(''.slice);
19013
- var un$ToFixed = uncurryThis$4(1.0.toFixed);
19014
-
19015
- var pow$1 = function (x, n, acc) {
19016
- return n === 0 ? acc : n % 2 === 1 ? pow$1(x, n - 1, acc * x) : pow$1(x * x, n / 2, acc);
19017
- };
19018
-
19019
- var log = function (x) {
19020
- var n = 0;
19021
- var x2 = x;
19022
-
19023
- while (x2 >= 4096) {
19024
- n += 12;
19025
- x2 /= 4096;
19026
- }
19132
+ var __vue_is_functional_template__$15 = false;
19133
+ /* style inject */
19027
19134
 
19028
- while (x2 >= 2) {
19029
- n += 1;
19030
- x2 /= 2;
19031
- }
19135
+ /* style inject SSR */
19032
19136
 
19033
- return n;
19034
- };
19137
+ /* style inject shadow dom */
19035
19138
 
19036
- var multiply = function (data, n, c) {
19037
- var index = -1;
19038
- var c2 = c;
19139
+ var __vue_component__$15 = /*#__PURE__*/normalizeComponent({
19140
+ render: __vue_render__$15,
19141
+ staticRenderFns: __vue_staticRenderFns__$15
19142
+ }, __vue_inject_styles__$15, __vue_script__$15, __vue_scope_id__$15, __vue_is_functional_template__$15, __vue_module_identifier__$15, false, undefined, undefined, undefined);
19039
19143
 
19040
- while (++index < 6) {
19041
- c2 += n * data[index];
19042
- data[index] = c2 % 1e7;
19043
- c2 = floor$2(c2 / 1e7);
19044
- }
19045
- };
19144
+ var SearchBoxProductDescription = /*#__PURE__*/function (_Vue) {
19145
+ _inherits(SearchBoxProductDescription, _Vue);
19046
19146
 
19047
- var divide = function (data, n) {
19048
- var index = 6;
19049
- var c = 0;
19147
+ var _super = _createSuper(SearchBoxProductDescription);
19050
19148
 
19051
- while (--index >= 0) {
19052
- c += data[index];
19053
- data[index] = floor$2(c / n);
19054
- c = c % n * 1e7;
19149
+ function SearchBoxProductDescription() {
19150
+ _classCallCheck(this, SearchBoxProductDescription);
19151
+
19152
+ return _super.apply(this, arguments);
19055
19153
  }
19056
- };
19057
19154
 
19058
- var dataToString = function (data) {
19059
- var index = 6;
19060
- var s = '';
19155
+ _createClass(SearchBoxProductDescription, [{
19156
+ key: "description",
19157
+ get: function get() {
19158
+ return this.item[this.options.key];
19159
+ }
19160
+ }, {
19161
+ key: "isHtml",
19162
+ get: function get() {
19163
+ var _a;
19061
19164
 
19062
- while (--index >= 0) {
19063
- if (s !== '' || index === 0 || data[index] !== 0) {
19064
- var t = String$1(data[index]);
19065
- s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
19165
+ return (_a = this.options.isHtml) !== null && _a !== void 0 ? _a : false;
19066
19166
  }
19067
- }
19167
+ }]);
19068
19168
 
19069
- return s;
19070
- };
19169
+ return SearchBoxProductDescription;
19170
+ }(Vue$1);
19071
19171
 
19072
- var FORCED = fails$2(function () {
19073
- return un$ToFixed(0.00008, 3) !== '0.000' || un$ToFixed(0.9, 0) !== '1' || un$ToFixed(1.255, 2) !== '1.25' || un$ToFixed(1000000000000000128.0, 0) !== '1000000000000000128';
19074
- }) || !fails$2(function () {
19075
- // V8 ~ Android 4.3-
19076
- un$ToFixed({});
19077
- }); // `Number.prototype.toFixed` method
19078
- // https://tc39.es/ecma262/#sec-number.prototype.tofixed
19172
+ __decorate([Prop()], SearchBoxProductDescription.prototype, "item", void 0);
19079
19173
 
19080
- $$8({
19081
- target: 'Number',
19082
- proto: true,
19083
- forced: FORCED
19084
- }, {
19085
- toFixed: function toFixed(fractionDigits) {
19086
- var number = thisNumberValue(this);
19087
- var fractDigits = toIntegerOrInfinity(fractionDigits);
19088
- var data = [0, 0, 0, 0, 0, 0];
19089
- var sign = '';
19090
- var result = '0';
19091
- var e, z, j, k;
19092
- if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits'); // eslint-disable-next-line no-self-compare -- NaN check
19174
+ __decorate([Prop()], SearchBoxProductDescription.prototype, "options", void 0);
19093
19175
 
19094
- if (number != number) return 'NaN';
19095
- if (number <= -1e21 || number >= 1e21) return String$1(number);
19176
+ SearchBoxProductDescription = __decorate([Component], SearchBoxProductDescription);
19177
+ var script$13 = SearchBoxProductDescription;
19096
19178
 
19097
- if (number < 0) {
19098
- sign = '-';
19099
- number = -number;
19179
+ var __vue_script__$14 = script$13;
19180
+ /* template */
19181
+
19182
+ var __vue_render__$14 = function __vue_render__() {
19183
+ var _vm = this;
19184
+
19185
+ var _h = _vm.$createElement;
19186
+
19187
+ var _c = _vm._self._c || _h;
19188
+
19189
+ return _vm.isHtml ? _c("div", {
19190
+ staticClass: "lupa-search-box-product-description",
19191
+ domProps: {
19192
+ innerHTML: _vm._s(_vm.description)
19100
19193
  }
19194
+ }) : _c("div", {
19195
+ staticClass: "lupa-search-box-product-description"
19196
+ }, [_vm._v("\n " + _vm._s(_vm.description) + "\n")]);
19197
+ };
19101
19198
 
19102
- if (number > 1e-21) {
19103
- e = log(number * pow$1(2, 69, 1)) - 69;
19104
- z = e < 0 ? number * pow$1(2, -e, 1) : number / pow$1(2, e, 1);
19105
- z *= 0x10000000000000;
19106
- e = 52 - e;
19199
+ var __vue_staticRenderFns__$14 = [];
19200
+ __vue_render__$14._withStripped = true;
19201
+ /* style */
19107
19202
 
19108
- if (e > 0) {
19109
- multiply(data, 0, z);
19110
- j = fractDigits;
19203
+ var __vue_inject_styles__$14 = undefined;
19204
+ /* scoped */
19111
19205
 
19112
- while (j >= 7) {
19113
- multiply(data, 1e7, 0);
19114
- j -= 7;
19115
- }
19206
+ var __vue_scope_id__$14 = undefined;
19207
+ /* module identifier */
19116
19208
 
19117
- multiply(data, pow$1(10, j, 1), 0);
19118
- j = e - 1;
19209
+ var __vue_module_identifier__$14 = undefined;
19210
+ /* functional template */
19119
19211
 
19120
- while (j >= 23) {
19121
- divide(data, 1 << 23);
19122
- j -= 23;
19123
- }
19212
+ var __vue_is_functional_template__$14 = false;
19213
+ /* style inject */
19124
19214
 
19125
- divide(data, 1 << j);
19126
- multiply(data, 1, 1);
19127
- divide(data, 2);
19128
- result = dataToString(data);
19129
- } else {
19130
- multiply(data, 0, z);
19131
- multiply(data, 1 << -e, 0);
19132
- result = dataToString(data) + repeat('0', fractDigits);
19133
- }
19134
- }
19215
+ /* style inject SSR */
19135
19216
 
19136
- if (fractDigits > 0) {
19137
- k = result.length;
19138
- result = sign + (k <= fractDigits ? '0.' + repeat('0', fractDigits - k) + result : stringSlice$2(result, 0, k - fractDigits) + '.' + stringSlice$2(result, k - fractDigits));
19139
- } else {
19140
- result = sign + result;
19141
- }
19217
+ /* style inject shadow dom */
19142
19218
 
19143
- return result;
19144
- }
19145
- });
19219
+ var __vue_component__$14 = /*#__PURE__*/normalizeComponent({
19220
+ render: __vue_render__$14,
19221
+ staticRenderFns: __vue_staticRenderFns__$14
19222
+ }, __vue_inject_styles__$14, __vue_script__$14, __vue_scope_id__$14, __vue_is_functional_template__$14, __vue_module_identifier__$14, false, undefined, undefined, undefined);
19146
19223
 
19147
19224
  var getAmount = function getAmount(price) {
19148
19225
  var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ".";
@@ -21600,74 +21677,6 @@ var CURRENCY_KEY_INDICATOR = "price";
21600
21677
  var DEFAULT_PAGE_SIZE = 12;
21601
21678
  var LUPA_ROUTING_EVENT = "lupaRedirect";
21602
21679
 
21603
- var getNormalizedString = function getNormalizedString(str) {
21604
- if (!str) {
21605
- return "";
21606
- }
21607
-
21608
- var transformedStr = typeof str === "string" ? str : str.toString();
21609
- return transformedStr.normalize === undefined ? transformedStr.toLocaleLowerCase() : transformedStr.toLocaleLowerCase().normalize("NFKD").replace(/[^\w\s.-_/]/g, "");
21610
- };
21611
- var capitalize = function capitalize(str) {
21612
- if (!str) {
21613
- return "";
21614
- }
21615
-
21616
- return str[0].toLocaleUpperCase() + str.slice(1);
21617
- };
21618
- var addParamsToLabel = function addParamsToLabel(label) {
21619
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
21620
- params[_key - 1] = arguments[_key];
21621
- }
21622
-
21623
- if (!params || params.length < 1) {
21624
- return label;
21625
- }
21626
-
21627
- var paramKeys = Array.from(Array(params.length).keys());
21628
- return paramKeys.reduce(function (a, c) {
21629
- return a.replace("{".concat(c + 1, "}"), params[c]);
21630
- }, label);
21631
- };
21632
- var getRandomString = function getRandomString(length) {
21633
- var chars = "0123456789abcdefghijklmnopqrstuvwxyz";
21634
- var result = "";
21635
-
21636
- for (var i = length; i > 0; --i) {
21637
- result += chars[Math.floor(Math.random() * chars.length)];
21638
- }
21639
-
21640
- return result;
21641
- };
21642
-
21643
- var toFixedIfNecessary = function toFixedIfNecessary(value) {
21644
- var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
21645
- return (+parseFloat(value).toFixed(precision)).toString();
21646
- };
21647
-
21648
- var getDisplayValue = function getDisplayValue(value) {
21649
- if (value === undefined) {
21650
- return "";
21651
- }
21652
-
21653
- if (typeof value === "string") {
21654
- return value;
21655
- }
21656
-
21657
- return toFixedIfNecessary(value.toString());
21658
- };
21659
- var getProductKey = function getProductKey(index, product, idKey) {
21660
- if (!idKey) {
21661
- return index;
21662
- }
21663
-
21664
- if (product[idKey]) {
21665
- return product[idKey];
21666
- }
21667
-
21668
- return index;
21669
- };
21670
-
21671
21680
  var formatRange = function formatRange(filter) {
21672
21681
  var _a, _b;
21673
21682
 
@@ -22134,7 +22143,7 @@ var getPageUrl = function getPageUrl(pathnameOverride) {
22134
22143
 
22135
22144
  var history$3 = namespace("history");
22136
22145
  var tracking$5 = namespace("tracking");
22137
- var options$9 = namespace("options");
22146
+ var options$a = namespace("options");
22138
22147
 
22139
22148
  var SearchBoxProduct = /*#__PURE__*/function (_Vue) {
22140
22149
  _inherits(SearchBoxProduct, _Vue);
@@ -22232,7 +22241,7 @@ __decorate([Prop({
22232
22241
  default: false
22233
22242
  })], SearchBoxProduct.prototype, "highlighted", void 0);
22234
22243
 
22235
- __decorate([options$9.Getter("boxRoutingBehavior")], SearchBoxProduct.prototype, "boxRoutingBehavior", void 0);
22244
+ __decorate([options$a.Getter("boxRoutingBehavior")], SearchBoxProduct.prototype, "boxRoutingBehavior", void 0);
22236
22245
 
22237
22246
  __decorate([tracking$5.Action("track")], SearchBoxProduct.prototype, "trackClick", void 0);
22238
22247
 
@@ -23663,7 +23672,7 @@ var defaultSuggestedValue = {
23663
23672
  var history$1 = namespace("history");
23664
23673
  var params$d = namespace("params");
23665
23674
  var searchBox$2 = namespace("searchBox");
23666
- var options$8 = namespace("options");
23675
+ var options$9 = namespace("options");
23667
23676
  var tracking$4 = namespace("tracking");
23668
23677
 
23669
23678
  var SearchBox = /*#__PURE__*/function (_Vue) {
@@ -23733,7 +23742,8 @@ var SearchBox = /*#__PURE__*/function (_Vue) {
23733
23742
 
23734
23743
  var el = document.getElementById("lupa-search-box");
23735
23744
  var elementClass = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.className) !== null && _b !== void 0 ? _b : "";
23736
- var isOutsideElement = el && !el.contains(e.target) && !elementClass.includes("lupa-search-box");
23745
+ var hasLupaClass = typeof elementClass.includes == "function" && elementClass.includes("lupa-search-box");
23746
+ var isOutsideElement = el && !el.contains(e.target) && !hasLupaClass;
23737
23747
 
23738
23748
  if (!isOutsideElement) {
23739
23749
  return;
@@ -23947,7 +23957,7 @@ __decorate([tracking$4.Action("track")], SearchBox.prototype, "trackClick", void
23947
23957
 
23948
23958
  __decorate([params$d.Action("setSearchResultsLink")], SearchBox.prototype, "setSearchResultsLink", void 0);
23949
23959
 
23950
- __decorate([options$8.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
23960
+ __decorate([options$9.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
23951
23961
 
23952
23962
  __decorate([params$d.Action("goToResults")], SearchBox.prototype, "goToResults", void 0);
23953
23963
 
@@ -24007,7 +24017,7 @@ __vue_render__$Q._withStripped = true;
24007
24017
 
24008
24018
  var __vue_inject_styles__$Q = function __vue_inject_styles__(inject) {
24009
24019
  if (!inject) return;
24010
- inject("data-v-17a13ac4_0", {
24020
+ inject("data-v-73ed57d5_0", {
24011
24021
  source: "\n#lupa-search-box {\n width: 100%;\n}\n.lupa-search-box-wrapper {\n position: relative;\n}\n",
24012
24022
  map: undefined,
24013
24023
  media: undefined
@@ -25596,7 +25606,7 @@ var toggleHierarchyParam = function toggleHierarchyParam() {
25596
25606
 
25597
25607
  var searchResult$g = namespace("searchResult");
25598
25608
  var params$c = namespace("params");
25599
- var options$7 = namespace("options");
25609
+ var options$8 = namespace("options");
25600
25610
 
25601
25611
  var CurrentFilters = /*#__PURE__*/function (_Vue) {
25602
25612
  _inherits(CurrentFilters, _Vue);
@@ -25673,7 +25683,7 @@ __decorate([searchResult$g.Getter("displayFilters")], CurrentFilters.prototype,
25673
25683
 
25674
25684
  __decorate([searchResult$g.Getter("currentFilterCount")], CurrentFilters.prototype, "currentFilterCount", void 0);
25675
25685
 
25676
- __decorate([options$7.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
25686
+ __decorate([options$8.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
25677
25687
 
25678
25688
  __decorate([params$c.Action("removeParams")], CurrentFilters.prototype, "removeParams", void 0);
25679
25689
 
@@ -28608,7 +28618,7 @@ var _typeof = _typeof$2.exports.default;
28608
28618
 
28609
28619
  var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
28610
28620
 
28611
- var options$6 = namespace("options");
28621
+ var options$7 = namespace("options");
28612
28622
 
28613
28623
  var TermFacet = /*#__PURE__*/function (_Vue) {
28614
28624
  _inherits(TermFacet, _Vue);
@@ -28815,7 +28825,7 @@ __decorate([Prop({
28815
28825
  }
28816
28826
  })], TermFacet.prototype, "currentFilters", void 0);
28817
28827
 
28818
- __decorate([options$6.State(function (s) {
28828
+ __decorate([options$7.State(function (s) {
28819
28829
  return s.searchResultOptions;
28820
28830
  })], TermFacet.prototype, "searchResultOptions", void 0);
28821
28831
 
@@ -29931,7 +29941,7 @@ var __vue_component__$F = /*#__PURE__*/normalizeComponent({
29931
29941
  staticRenderFns: __vue_staticRenderFns__$F
29932
29942
  }, __vue_inject_styles__$F, __vue_script__$F, __vue_scope_id__$F, __vue_is_functional_template__$F, __vue_module_identifier__$F, false, undefined, undefined, undefined);
29933
29943
 
29934
- var options$5 = namespace("options");
29944
+ var options$6 = namespace("options");
29935
29945
 
29936
29946
  var CategoryFilter = /*#__PURE__*/function (_Vue) {
29937
29947
  _inherits(CategoryFilter, _Vue);
@@ -30061,7 +30071,7 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
30061
30071
 
30062
30072
  __decorate([Prop()], CategoryFilter.prototype, "options", void 0);
30063
30073
 
30064
- __decorate([options$5.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
30074
+ __decorate([options$6.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
30065
30075
 
30066
30076
  CategoryFilter = __decorate([Component({
30067
30077
  name: "categoryFilter",
@@ -31048,7 +31058,7 @@ var __vue_component__$w = /*#__PURE__*/normalizeComponent({
31048
31058
  staticRenderFns: __vue_staticRenderFns__$w
31049
31059
  }, __vue_inject_styles__$w, __vue_script__$w, __vue_scope_id__$w, __vue_is_functional_template__$w, __vue_module_identifier__$w, false, undefined, undefined, undefined);
31050
31060
 
31051
- var options$4 = namespace("options");
31061
+ var options$5 = namespace("options");
31052
31062
 
31053
31063
  var SearchResultsProductTitle = /*#__PURE__*/function (_Vue) {
31054
31064
  _inherits(SearchResultsProductTitle, _Vue);
@@ -31101,7 +31111,7 @@ __decorate([Prop({
31101
31111
  default: ""
31102
31112
  })], SearchResultsProductTitle.prototype, "link", void 0);
31103
31113
 
31104
- __decorate([options$4.State(function (o) {
31114
+ __decorate([options$5.State(function (o) {
31105
31115
  return o.searchResultOptions;
31106
31116
  })], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
31107
31117
 
@@ -32012,6 +32022,7 @@ var __vue_component__$n = /*#__PURE__*/normalizeComponent({
32012
32022
  var tracking$3 = namespace("tracking");
32013
32023
  var params$9 = namespace("params");
32014
32024
  var searchResult$b = namespace("searchResult");
32025
+ var options$4 = namespace("options");
32015
32026
 
32016
32027
  var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
32017
32028
  _inherits(SearchResultsProductCard, _Vue);
@@ -32077,7 +32088,7 @@ var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
32077
32088
  }, {
32078
32089
  key: "hasEventRouting",
32079
32090
  get: function get() {
32080
- return this.options.routingBehavior === "event";
32091
+ return this.searchResultsRoutingBehavior === "event";
32081
32092
  }
32082
32093
  }, {
32083
32094
  key: "mounted",
@@ -32182,6 +32193,8 @@ __decorate([searchResult$b.State(function (state) {
32182
32193
  return state.layout;
32183
32194
  })], SearchResultsProductCard.prototype, "layout", void 0);
32184
32195
 
32196
+ __decorate([options$4.Getter("searchResultsRoutingBehavior")], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
32197
+
32185
32198
  __decorate([params$9.Getter("query")], SearchResultsProductCard.prototype, "query", void 0);
32186
32199
 
32187
32200
  __decorate([tracking$3.Action("track")], SearchResultsProductCard.prototype, "trackClick", void 0);
@@ -34784,6 +34797,11 @@ var SearchResults = /*#__PURE__*/function (_Vue) {
34784
34797
  var query = Object.assign(Object.assign(Object.assign({}, publicQuery), context), {
34785
34798
  limit: limit
34786
34799
  });
34800
+
34801
+ if (!query.searchText && this.options.disallowEmptyQuery) {
34802
+ return;
34803
+ }
34804
+
34787
34805
  getLupaSdk.query(this.options.queryKey, query, this.options.options).then(function (res) {
34788
34806
  var _a, _b;
34789
34807
 
@@ -36880,6 +36898,13 @@ var OptionsModule = /*#__PURE__*/function (_VuexModule) {
36880
36898
 
36881
36899
  return (_a = this.searchBoxOptions.routingBehavior) !== null && _a !== void 0 ? _a : "direct-link";
36882
36900
  }
36901
+ }, {
36902
+ key: "searchResultsRoutingBehavior",
36903
+ get: function get() {
36904
+ var _a;
36905
+
36906
+ return (_a = this.searchResultOptions.routingBehavior) !== null && _a !== void 0 ? _a : "direct-link";
36907
+ }
36883
36908
  }, {
36884
36909
  key: "defaultSearchResultPageSize",
36885
36910
  get: function get() {