@getlupa/client 0.5.1-alpha-17 → 0.5.1-alpha-20

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.
@@ -18134,6 +18134,256 @@ $$b({
18134
18134
  }
18135
18135
  });
18136
18136
 
18137
+ var global$6 = global$13;
18138
+
18139
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$9;
18140
+
18141
+ var toString$2 = toString$h;
18142
+
18143
+ var requireObjectCoercible$2 = requireObjectCoercible$c;
18144
+
18145
+ var RangeError$2 = global$6.RangeError; // `String.prototype.repeat` method implementation
18146
+ // https://tc39.es/ecma262/#sec-string.prototype.repeat
18147
+
18148
+ var stringRepeat = function repeat(count) {
18149
+ var str = toString$2(requireObjectCoercible$2(this));
18150
+ var result = '';
18151
+ var n = toIntegerOrInfinity$1(count);
18152
+ if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
18153
+
18154
+ for (; n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
18155
+
18156
+ return result;
18157
+ };
18158
+
18159
+ var $$a = _export;
18160
+
18161
+ var global$5 = global$13;
18162
+
18163
+ var uncurryThis$5 = functionUncurryThis;
18164
+
18165
+ var toIntegerOrInfinity = toIntegerOrInfinity$9;
18166
+
18167
+ var thisNumberValue = thisNumberValue$2;
18168
+
18169
+ var $repeat = stringRepeat;
18170
+
18171
+ var fails$2 = fails$F;
18172
+
18173
+ var RangeError$1 = global$5.RangeError;
18174
+ var String$1 = global$5.String;
18175
+ var floor$2 = Math.floor;
18176
+ var repeat = uncurryThis$5($repeat);
18177
+ var stringSlice$3 = uncurryThis$5(''.slice);
18178
+ var un$ToFixed = uncurryThis$5(1.0.toFixed);
18179
+
18180
+ var pow$1 = function (x, n, acc) {
18181
+ return n === 0 ? acc : n % 2 === 1 ? pow$1(x, n - 1, acc * x) : pow$1(x * x, n / 2, acc);
18182
+ };
18183
+
18184
+ var log = function (x) {
18185
+ var n = 0;
18186
+ var x2 = x;
18187
+
18188
+ while (x2 >= 4096) {
18189
+ n += 12;
18190
+ x2 /= 4096;
18191
+ }
18192
+
18193
+ while (x2 >= 2) {
18194
+ n += 1;
18195
+ x2 /= 2;
18196
+ }
18197
+
18198
+ return n;
18199
+ };
18200
+
18201
+ var multiply = function (data, n, c) {
18202
+ var index = -1;
18203
+ var c2 = c;
18204
+
18205
+ while (++index < 6) {
18206
+ c2 += n * data[index];
18207
+ data[index] = c2 % 1e7;
18208
+ c2 = floor$2(c2 / 1e7);
18209
+ }
18210
+ };
18211
+
18212
+ var divide = function (data, n) {
18213
+ var index = 6;
18214
+ var c = 0;
18215
+
18216
+ while (--index >= 0) {
18217
+ c += data[index];
18218
+ data[index] = floor$2(c / n);
18219
+ c = c % n * 1e7;
18220
+ }
18221
+ };
18222
+
18223
+ var dataToString = function (data) {
18224
+ var index = 6;
18225
+ var s = '';
18226
+
18227
+ while (--index >= 0) {
18228
+ if (s !== '' || index === 0 || data[index] !== 0) {
18229
+ var t = String$1(data[index]);
18230
+ s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
18231
+ }
18232
+ }
18233
+
18234
+ return s;
18235
+ };
18236
+
18237
+ var FORCED = fails$2(function () {
18238
+ 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';
18239
+ }) || !fails$2(function () {
18240
+ // V8 ~ Android 4.3-
18241
+ un$ToFixed({});
18242
+ }); // `Number.prototype.toFixed` method
18243
+ // https://tc39.es/ecma262/#sec-number.prototype.tofixed
18244
+
18245
+ $$a({
18246
+ target: 'Number',
18247
+ proto: true,
18248
+ forced: FORCED
18249
+ }, {
18250
+ toFixed: function toFixed(fractionDigits) {
18251
+ var number = thisNumberValue(this);
18252
+ var fractDigits = toIntegerOrInfinity(fractionDigits);
18253
+ var data = [0, 0, 0, 0, 0, 0];
18254
+ var sign = '';
18255
+ var result = '0';
18256
+ var e, z, j, k;
18257
+ if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits'); // eslint-disable-next-line no-self-compare -- NaN check
18258
+
18259
+ if (number != number) return 'NaN';
18260
+ if (number <= -1e21 || number >= 1e21) return String$1(number);
18261
+
18262
+ if (number < 0) {
18263
+ sign = '-';
18264
+ number = -number;
18265
+ }
18266
+
18267
+ if (number > 1e-21) {
18268
+ e = log(number * pow$1(2, 69, 1)) - 69;
18269
+ z = e < 0 ? number * pow$1(2, -e, 1) : number / pow$1(2, e, 1);
18270
+ z *= 0x10000000000000;
18271
+ e = 52 - e;
18272
+
18273
+ if (e > 0) {
18274
+ multiply(data, 0, z);
18275
+ j = fractDigits;
18276
+
18277
+ while (j >= 7) {
18278
+ multiply(data, 1e7, 0);
18279
+ j -= 7;
18280
+ }
18281
+
18282
+ multiply(data, pow$1(10, j, 1), 0);
18283
+ j = e - 1;
18284
+
18285
+ while (j >= 23) {
18286
+ divide(data, 1 << 23);
18287
+ j -= 23;
18288
+ }
18289
+
18290
+ divide(data, 1 << j);
18291
+ multiply(data, 1, 1);
18292
+ divide(data, 2);
18293
+ result = dataToString(data);
18294
+ } else {
18295
+ multiply(data, 0, z);
18296
+ multiply(data, 1 << -e, 0);
18297
+ result = dataToString(data) + repeat('0', fractDigits);
18298
+ }
18299
+ }
18300
+
18301
+ if (fractDigits > 0) {
18302
+ k = result.length;
18303
+ result = sign + (k <= fractDigits ? '0.' + repeat('0', fractDigits - k) + result : stringSlice$3(result, 0, k - fractDigits) + '.' + stringSlice$3(result, k - fractDigits));
18304
+ } else {
18305
+ result = sign + result;
18306
+ }
18307
+
18308
+ return result;
18309
+ }
18310
+ });
18311
+
18312
+ var getNormalizedString = function getNormalizedString(str) {
18313
+ if (!str) {
18314
+ return "";
18315
+ }
18316
+
18317
+ var transformedStr = typeof str === "string" ? str : str.toString();
18318
+ return transformedStr.normalize === undefined ? transformedStr.toLocaleLowerCase() : transformedStr.toLocaleLowerCase().normalize("NFKD").replace(/[^\w\s.-_/]/g, "");
18319
+ };
18320
+ var capitalize = function capitalize(str) {
18321
+ if (!str) {
18322
+ return "";
18323
+ }
18324
+
18325
+ return str[0].toLocaleUpperCase() + str.slice(1);
18326
+ };
18327
+ var addParamsToLabel = function addParamsToLabel(label) {
18328
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
18329
+ params[_key - 1] = arguments[_key];
18330
+ }
18331
+
18332
+ if (!params || params.length < 1) {
18333
+ return label;
18334
+ }
18335
+
18336
+ var paramKeys = Array.from(Array(params.length).keys());
18337
+ return paramKeys.reduce(function (a, c) {
18338
+ return a.replace("{".concat(c + 1, "}"), params[c]);
18339
+ }, label);
18340
+ };
18341
+ var getRandomString = function getRandomString(length) {
18342
+ var chars = "0123456789abcdefghijklmnopqrstuvwxyz";
18343
+ var result = "";
18344
+
18345
+ for (var i = length; i > 0; --i) {
18346
+ result += chars[Math.floor(Math.random() * chars.length)];
18347
+ }
18348
+
18349
+ return result;
18350
+ };
18351
+
18352
+ var toFixedIfNecessary = function toFixedIfNecessary(value) {
18353
+ var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
18354
+ return (+parseFloat(value).toFixed(precision)).toString();
18355
+ };
18356
+
18357
+ var getDisplayValue = function getDisplayValue(value) {
18358
+ if (value === undefined) {
18359
+ return "";
18360
+ }
18361
+
18362
+ if (typeof value === "string") {
18363
+ return value;
18364
+ }
18365
+
18366
+ return toFixedIfNecessary(value.toString());
18367
+ };
18368
+ var getProductKey = function getProductKey(index, product, idKey) {
18369
+ if (!idKey) {
18370
+ return index;
18371
+ }
18372
+
18373
+ if (product[idKey]) {
18374
+ return product[idKey];
18375
+ }
18376
+
18377
+ return index;
18378
+ };
18379
+ var escapeHtml = function escapeHtml(value) {
18380
+ if (!value) {
18381
+ return "";
18382
+ }
18383
+
18384
+ return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
18385
+ };
18386
+
18137
18387
  var pick = function pick(obj, keys) {
18138
18388
  var ret = Object.create({});
18139
18389
 
@@ -18154,11 +18404,13 @@ var pick = function pick(obj, keys) {
18154
18404
  return ret;
18155
18405
  };
18156
18406
  var getHint = function getHint(suggestion, inputValue) {
18157
- var hint = suggestion.replace(inputValue, "");
18407
+ var _a;
18408
+
18409
+ if (!inputValue) {
18410
+ return escapeHtml(suggestion);
18411
+ }
18158
18412
 
18159
- if (!hint || suggestion !== hint) {
18160
- return "<strong>".concat(inputValue, "</strong>").concat(hint);
18161
- } else return suggestion;
18413
+ return (_a = suggestion === null || suggestion === void 0 ? void 0 : suggestion.replace(inputValue, "<strong>".concat(escapeHtml(inputValue), "</strong>"))) !== null && _a !== void 0 ? _a : "";
18162
18414
  }; // https://stackoverflow.com/a/56781239
18163
18415
 
18164
18416
  var reverseKeyValue = function reverseKeyValue(obj) {
@@ -18270,25 +18522,25 @@ function merge$1(a, b) {
18270
18522
  return res;
18271
18523
  }
18272
18524
 
18273
- var $$a = _export;
18525
+ var $$9 = _export;
18274
18526
 
18275
- var uncurryThis$5 = functionUncurryThis;
18527
+ var uncurryThis$4 = functionUncurryThis;
18276
18528
 
18277
18529
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
18278
18530
 
18279
18531
  var toLength = toLength$7;
18280
18532
 
18281
- var toString$2 = toString$h;
18533
+ var toString$1 = toString$h;
18282
18534
 
18283
18535
  var notARegExp = notARegexp;
18284
18536
 
18285
- var requireObjectCoercible$2 = requireObjectCoercible$c;
18537
+ var requireObjectCoercible$1 = requireObjectCoercible$c;
18286
18538
 
18287
18539
  var correctIsRegExpLogic = correctIsRegexpLogic;
18288
18540
 
18289
18541
 
18290
- var un$StartsWith = uncurryThis$5(''.startsWith);
18291
- var stringSlice$3 = uncurryThis$5(''.slice);
18542
+ var un$StartsWith = uncurryThis$4(''.startsWith);
18543
+ var stringSlice$2 = uncurryThis$4(''.slice);
18292
18544
  var min = Math.min;
18293
18545
  var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith'); // https://github.com/zloirock/core-js/pull/702
18294
18546
 
@@ -18298,7 +18550,7 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
18298
18550
  }(); // `String.prototype.startsWith` method
18299
18551
  // https://tc39.es/ecma262/#sec-string.prototype.startswith
18300
18552
 
18301
- $$a({
18553
+ $$9({
18302
18554
  target: 'String',
18303
18555
  proto: true,
18304
18556
  forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC
@@ -18306,11 +18558,11 @@ $$a({
18306
18558
  startsWith: function startsWith(searchString
18307
18559
  /* , position = 0 */
18308
18560
  ) {
18309
- var that = toString$2(requireObjectCoercible$2(this));
18561
+ var that = toString$1(requireObjectCoercible$1(this));
18310
18562
  notARegExp(searchString);
18311
18563
  var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
18312
- var search = toString$2(searchString);
18313
- return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice$3(that, index, index + search.length) === search;
18564
+ var search = toString$1(searchString);
18565
+ return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice$2(that, index, index + search.length) === search;
18314
18566
  }
18315
18567
  });
18316
18568
 
@@ -18638,7 +18890,7 @@ var __vue_component__$17 = /*#__PURE__*/normalizeComponent({
18638
18890
  staticRenderFns: __vue_staticRenderFns__$17
18639
18891
  }, __vue_inject_styles__$17, __vue_script__$17, __vue_scope_id__$17, __vue_is_functional_template__$17, __vue_module_identifier__$17, false, createInjector, undefined, undefined);
18640
18892
 
18641
- var $$9 = _export;
18893
+ var $$8 = _export;
18642
18894
 
18643
18895
  var $find = arrayIteration.find;
18644
18896
 
@@ -18652,7 +18904,7 @@ if (FIND in []) Array(1)[FIND](function () {
18652
18904
  }); // `Array.prototype.find` method
18653
18905
  // https://tc39.es/ecma262/#sec-array.prototype.find
18654
18906
 
18655
- $$9({
18907
+ $$8({
18656
18908
  target: 'Array',
18657
18909
  proto: true,
18658
18910
  forced: SKIPS_HOLES
@@ -18881,272 +19133,97 @@ var __vue_scope_id__$15 = undefined;
18881
19133
  var __vue_module_identifier__$15 = undefined;
18882
19134
  /* functional template */
18883
19135
 
18884
- var __vue_is_functional_template__$15 = false;
18885
- /* style inject */
18886
-
18887
- /* style inject SSR */
18888
-
18889
- /* style inject shadow dom */
18890
-
18891
- var __vue_component__$15 = /*#__PURE__*/normalizeComponent({
18892
- render: __vue_render__$15,
18893
- staticRenderFns: __vue_staticRenderFns__$15
18894
- }, __vue_inject_styles__$15, __vue_script__$15, __vue_scope_id__$15, __vue_is_functional_template__$15, __vue_module_identifier__$15, false, undefined, undefined, undefined);
18895
-
18896
- var SearchBoxProductDescription = /*#__PURE__*/function (_Vue) {
18897
- _inherits(SearchBoxProductDescription, _Vue);
18898
-
18899
- var _super = _createSuper(SearchBoxProductDescription);
18900
-
18901
- function SearchBoxProductDescription() {
18902
- _classCallCheck(this, SearchBoxProductDescription);
18903
-
18904
- return _super.apply(this, arguments);
18905
- }
18906
-
18907
- _createClass(SearchBoxProductDescription, [{
18908
- key: "description",
18909
- get: function get() {
18910
- return this.item[this.options.key];
18911
- }
18912
- }, {
18913
- key: "isHtml",
18914
- get: function get() {
18915
- var _a;
18916
-
18917
- return (_a = this.options.isHtml) !== null && _a !== void 0 ? _a : false;
18918
- }
18919
- }]);
18920
-
18921
- return SearchBoxProductDescription;
18922
- }(Vue$1);
18923
-
18924
- __decorate([Prop()], SearchBoxProductDescription.prototype, "item", void 0);
18925
-
18926
- __decorate([Prop()], SearchBoxProductDescription.prototype, "options", void 0);
18927
-
18928
- SearchBoxProductDescription = __decorate([Component], SearchBoxProductDescription);
18929
- var script$13 = SearchBoxProductDescription;
18930
-
18931
- var __vue_script__$14 = script$13;
18932
- /* template */
18933
-
18934
- var __vue_render__$14 = function __vue_render__() {
18935
- var _vm = this;
18936
-
18937
- var _h = _vm.$createElement;
18938
-
18939
- var _c = _vm._self._c || _h;
18940
-
18941
- return _vm.isHtml ? _c("div", {
18942
- staticClass: "lupa-search-box-product-description",
18943
- domProps: {
18944
- innerHTML: _vm._s(_vm.description)
18945
- }
18946
- }) : _c("div", {
18947
- staticClass: "lupa-search-box-product-description"
18948
- }, [_vm._v("\n " + _vm._s(_vm.description) + "\n")]);
18949
- };
18950
-
18951
- var __vue_staticRenderFns__$14 = [];
18952
- __vue_render__$14._withStripped = true;
18953
- /* style */
18954
-
18955
- var __vue_inject_styles__$14 = undefined;
18956
- /* scoped */
18957
-
18958
- var __vue_scope_id__$14 = undefined;
18959
- /* module identifier */
18960
-
18961
- var __vue_module_identifier__$14 = undefined;
18962
- /* functional template */
18963
-
18964
- var __vue_is_functional_template__$14 = false;
18965
- /* style inject */
18966
-
18967
- /* style inject SSR */
18968
-
18969
- /* style inject shadow dom */
18970
-
18971
- var __vue_component__$14 = /*#__PURE__*/normalizeComponent({
18972
- render: __vue_render__$14,
18973
- staticRenderFns: __vue_staticRenderFns__$14
18974
- }, __vue_inject_styles__$14, __vue_script__$14, __vue_scope_id__$14, __vue_is_functional_template__$14, __vue_module_identifier__$14, false, undefined, undefined, undefined);
18975
-
18976
- var global$6 = global$13;
18977
-
18978
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$9;
18979
-
18980
- var toString$1 = toString$h;
18981
-
18982
- var requireObjectCoercible$1 = requireObjectCoercible$c;
18983
-
18984
- var RangeError$2 = global$6.RangeError; // `String.prototype.repeat` method implementation
18985
- // https://tc39.es/ecma262/#sec-string.prototype.repeat
18986
-
18987
- var stringRepeat = function repeat(count) {
18988
- var str = toString$1(requireObjectCoercible$1(this));
18989
- var result = '';
18990
- var n = toIntegerOrInfinity$1(count);
18991
- if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
18992
-
18993
- for (; n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
18994
-
18995
- return result;
18996
- };
18997
-
18998
- var $$8 = _export;
18999
-
19000
- var global$5 = global$13;
19001
-
19002
- var uncurryThis$4 = functionUncurryThis;
19003
-
19004
- var toIntegerOrInfinity = toIntegerOrInfinity$9;
19005
-
19006
- var thisNumberValue = thisNumberValue$2;
19007
-
19008
- var $repeat = stringRepeat;
19009
-
19010
- var fails$2 = fails$F;
19011
-
19012
- var RangeError$1 = global$5.RangeError;
19013
- var String$1 = global$5.String;
19014
- var floor$2 = Math.floor;
19015
- var repeat = uncurryThis$4($repeat);
19016
- var stringSlice$2 = uncurryThis$4(''.slice);
19017
- var un$ToFixed = uncurryThis$4(1.0.toFixed);
19018
-
19019
- var pow$1 = function (x, n, acc) {
19020
- return n === 0 ? acc : n % 2 === 1 ? pow$1(x, n - 1, acc * x) : pow$1(x * x, n / 2, acc);
19021
- };
19022
-
19023
- var log = function (x) {
19024
- var n = 0;
19025
- var x2 = x;
19136
+ var __vue_is_functional_template__$15 = false;
19137
+ /* style inject */
19026
19138
 
19027
- while (x2 >= 4096) {
19028
- n += 12;
19029
- x2 /= 4096;
19030
- }
19139
+ /* style inject SSR */
19031
19140
 
19032
- while (x2 >= 2) {
19033
- n += 1;
19034
- x2 /= 2;
19035
- }
19141
+ /* style inject shadow dom */
19036
19142
 
19037
- return n;
19038
- };
19143
+ var __vue_component__$15 = /*#__PURE__*/normalizeComponent({
19144
+ render: __vue_render__$15,
19145
+ staticRenderFns: __vue_staticRenderFns__$15
19146
+ }, __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
19147
 
19040
- var multiply = function (data, n, c) {
19041
- var index = -1;
19042
- var c2 = c;
19148
+ var SearchBoxProductDescription = /*#__PURE__*/function (_Vue) {
19149
+ _inherits(SearchBoxProductDescription, _Vue);
19043
19150
 
19044
- while (++index < 6) {
19045
- c2 += n * data[index];
19046
- data[index] = c2 % 1e7;
19047
- c2 = floor$2(c2 / 1e7);
19048
- }
19049
- };
19151
+ var _super = _createSuper(SearchBoxProductDescription);
19050
19152
 
19051
- var divide = function (data, n) {
19052
- var index = 6;
19053
- var c = 0;
19153
+ function SearchBoxProductDescription() {
19154
+ _classCallCheck(this, SearchBoxProductDescription);
19054
19155
 
19055
- while (--index >= 0) {
19056
- c += data[index];
19057
- data[index] = floor$2(c / n);
19058
- c = c % n * 1e7;
19156
+ return _super.apply(this, arguments);
19059
19157
  }
19060
- };
19061
19158
 
19062
- var dataToString = function (data) {
19063
- var index = 6;
19064
- var s = '';
19159
+ _createClass(SearchBoxProductDescription, [{
19160
+ key: "description",
19161
+ get: function get() {
19162
+ return this.item[this.options.key];
19163
+ }
19164
+ }, {
19165
+ key: "isHtml",
19166
+ get: function get() {
19167
+ var _a;
19065
19168
 
19066
- while (--index >= 0) {
19067
- if (s !== '' || index === 0 || data[index] !== 0) {
19068
- var t = String$1(data[index]);
19069
- s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
19169
+ return (_a = this.options.isHtml) !== null && _a !== void 0 ? _a : false;
19070
19170
  }
19071
- }
19171
+ }]);
19072
19172
 
19073
- return s;
19074
- };
19173
+ return SearchBoxProductDescription;
19174
+ }(Vue$1);
19075
19175
 
19076
- var FORCED = fails$2(function () {
19077
- 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';
19078
- }) || !fails$2(function () {
19079
- // V8 ~ Android 4.3-
19080
- un$ToFixed({});
19081
- }); // `Number.prototype.toFixed` method
19082
- // https://tc39.es/ecma262/#sec-number.prototype.tofixed
19176
+ __decorate([Prop()], SearchBoxProductDescription.prototype, "item", void 0);
19083
19177
 
19084
- $$8({
19085
- target: 'Number',
19086
- proto: true,
19087
- forced: FORCED
19088
- }, {
19089
- toFixed: function toFixed(fractionDigits) {
19090
- var number = thisNumberValue(this);
19091
- var fractDigits = toIntegerOrInfinity(fractionDigits);
19092
- var data = [0, 0, 0, 0, 0, 0];
19093
- var sign = '';
19094
- var result = '0';
19095
- var e, z, j, k;
19096
- if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits'); // eslint-disable-next-line no-self-compare -- NaN check
19178
+ __decorate([Prop()], SearchBoxProductDescription.prototype, "options", void 0);
19097
19179
 
19098
- if (number != number) return 'NaN';
19099
- if (number <= -1e21 || number >= 1e21) return String$1(number);
19180
+ SearchBoxProductDescription = __decorate([Component], SearchBoxProductDescription);
19181
+ var script$13 = SearchBoxProductDescription;
19100
19182
 
19101
- if (number < 0) {
19102
- sign = '-';
19103
- number = -number;
19183
+ var __vue_script__$14 = script$13;
19184
+ /* template */
19185
+
19186
+ var __vue_render__$14 = function __vue_render__() {
19187
+ var _vm = this;
19188
+
19189
+ var _h = _vm.$createElement;
19190
+
19191
+ var _c = _vm._self._c || _h;
19192
+
19193
+ return _vm.isHtml ? _c("div", {
19194
+ staticClass: "lupa-search-box-product-description",
19195
+ domProps: {
19196
+ innerHTML: _vm._s(_vm.description)
19104
19197
  }
19198
+ }) : _c("div", {
19199
+ staticClass: "lupa-search-box-product-description"
19200
+ }, [_vm._v("\n " + _vm._s(_vm.description) + "\n")]);
19201
+ };
19105
19202
 
19106
- if (number > 1e-21) {
19107
- e = log(number * pow$1(2, 69, 1)) - 69;
19108
- z = e < 0 ? number * pow$1(2, -e, 1) : number / pow$1(2, e, 1);
19109
- z *= 0x10000000000000;
19110
- e = 52 - e;
19203
+ var __vue_staticRenderFns__$14 = [];
19204
+ __vue_render__$14._withStripped = true;
19205
+ /* style */
19111
19206
 
19112
- if (e > 0) {
19113
- multiply(data, 0, z);
19114
- j = fractDigits;
19207
+ var __vue_inject_styles__$14 = undefined;
19208
+ /* scoped */
19115
19209
 
19116
- while (j >= 7) {
19117
- multiply(data, 1e7, 0);
19118
- j -= 7;
19119
- }
19210
+ var __vue_scope_id__$14 = undefined;
19211
+ /* module identifier */
19120
19212
 
19121
- multiply(data, pow$1(10, j, 1), 0);
19122
- j = e - 1;
19213
+ var __vue_module_identifier__$14 = undefined;
19214
+ /* functional template */
19123
19215
 
19124
- while (j >= 23) {
19125
- divide(data, 1 << 23);
19126
- j -= 23;
19127
- }
19216
+ var __vue_is_functional_template__$14 = false;
19217
+ /* style inject */
19128
19218
 
19129
- divide(data, 1 << j);
19130
- multiply(data, 1, 1);
19131
- divide(data, 2);
19132
- result = dataToString(data);
19133
- } else {
19134
- multiply(data, 0, z);
19135
- multiply(data, 1 << -e, 0);
19136
- result = dataToString(data) + repeat('0', fractDigits);
19137
- }
19138
- }
19219
+ /* style inject SSR */
19139
19220
 
19140
- if (fractDigits > 0) {
19141
- k = result.length;
19142
- result = sign + (k <= fractDigits ? '0.' + repeat('0', fractDigits - k) + result : stringSlice$2(result, 0, k - fractDigits) + '.' + stringSlice$2(result, k - fractDigits));
19143
- } else {
19144
- result = sign + result;
19145
- }
19221
+ /* style inject shadow dom */
19146
19222
 
19147
- return result;
19148
- }
19149
- });
19223
+ var __vue_component__$14 = /*#__PURE__*/normalizeComponent({
19224
+ render: __vue_render__$14,
19225
+ staticRenderFns: __vue_staticRenderFns__$14
19226
+ }, __vue_inject_styles__$14, __vue_script__$14, __vue_scope_id__$14, __vue_is_functional_template__$14, __vue_module_identifier__$14, false, undefined, undefined, undefined);
19150
19227
 
19151
19228
  var getAmount = function getAmount(price) {
19152
19229
  var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ".";
@@ -21604,74 +21681,6 @@ var CURRENCY_KEY_INDICATOR = "price";
21604
21681
  var DEFAULT_PAGE_SIZE = 12;
21605
21682
  var LUPA_ROUTING_EVENT = "lupaRedirect";
21606
21683
 
21607
- var getNormalizedString = function getNormalizedString(str) {
21608
- if (!str) {
21609
- return "";
21610
- }
21611
-
21612
- var transformedStr = typeof str === "string" ? str : str.toString();
21613
- return transformedStr.normalize === undefined ? transformedStr.toLocaleLowerCase() : transformedStr.toLocaleLowerCase().normalize("NFKD").replace(/[^\w\s.-_/]/g, "");
21614
- };
21615
- var capitalize = function capitalize(str) {
21616
- if (!str) {
21617
- return "";
21618
- }
21619
-
21620
- return str[0].toLocaleUpperCase() + str.slice(1);
21621
- };
21622
- var addParamsToLabel = function addParamsToLabel(label) {
21623
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
21624
- params[_key - 1] = arguments[_key];
21625
- }
21626
-
21627
- if (!params || params.length < 1) {
21628
- return label;
21629
- }
21630
-
21631
- var paramKeys = Array.from(Array(params.length).keys());
21632
- return paramKeys.reduce(function (a, c) {
21633
- return a.replace("{".concat(c + 1, "}"), params[c]);
21634
- }, label);
21635
- };
21636
- var getRandomString = function getRandomString(length) {
21637
- var chars = "0123456789abcdefghijklmnopqrstuvwxyz";
21638
- var result = "";
21639
-
21640
- for (var i = length; i > 0; --i) {
21641
- result += chars[Math.floor(Math.random() * chars.length)];
21642
- }
21643
-
21644
- return result;
21645
- };
21646
-
21647
- var toFixedIfNecessary = function toFixedIfNecessary(value) {
21648
- var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
21649
- return (+parseFloat(value).toFixed(precision)).toString();
21650
- };
21651
-
21652
- var getDisplayValue = function getDisplayValue(value) {
21653
- if (value === undefined) {
21654
- return "";
21655
- }
21656
-
21657
- if (typeof value === "string") {
21658
- return value;
21659
- }
21660
-
21661
- return toFixedIfNecessary(value.toString());
21662
- };
21663
- var getProductKey = function getProductKey(index, product, idKey) {
21664
- if (!idKey) {
21665
- return index;
21666
- }
21667
-
21668
- if (product[idKey]) {
21669
- return product[idKey];
21670
- }
21671
-
21672
- return index;
21673
- };
21674
-
21675
21684
  var formatRange = function formatRange(filter) {
21676
21685
  var _a, _b;
21677
21686
 
@@ -22138,7 +22147,7 @@ var getPageUrl = function getPageUrl(pathnameOverride) {
22138
22147
 
22139
22148
  var history$3 = namespace("history");
22140
22149
  var tracking$5 = namespace("tracking");
22141
- var options$9 = namespace("options");
22150
+ var options$a = namespace("options");
22142
22151
 
22143
22152
  var SearchBoxProduct = /*#__PURE__*/function (_Vue) {
22144
22153
  _inherits(SearchBoxProduct, _Vue);
@@ -22236,7 +22245,7 @@ __decorate([Prop({
22236
22245
  default: false
22237
22246
  })], SearchBoxProduct.prototype, "highlighted", void 0);
22238
22247
 
22239
- __decorate([options$9.Getter("boxRoutingBehavior")], SearchBoxProduct.prototype, "boxRoutingBehavior", void 0);
22248
+ __decorate([options$a.Getter("boxRoutingBehavior")], SearchBoxProduct.prototype, "boxRoutingBehavior", void 0);
22240
22249
 
22241
22250
  __decorate([tracking$5.Action("track")], SearchBoxProduct.prototype, "trackClick", void 0);
22242
22251
 
@@ -23667,7 +23676,7 @@ var defaultSuggestedValue = {
23667
23676
  var history$1 = namespace("history");
23668
23677
  var params$d = namespace("params");
23669
23678
  var searchBox$2 = namespace("searchBox");
23670
- var options$8 = namespace("options");
23679
+ var options$9 = namespace("options");
23671
23680
  var tracking$4 = namespace("tracking");
23672
23681
 
23673
23682
  var SearchBox = /*#__PURE__*/function (_Vue) {
@@ -23952,7 +23961,7 @@ __decorate([tracking$4.Action("track")], SearchBox.prototype, "trackClick", void
23952
23961
 
23953
23962
  __decorate([params$d.Action("setSearchResultsLink")], SearchBox.prototype, "setSearchResultsLink", void 0);
23954
23963
 
23955
- __decorate([options$8.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
23964
+ __decorate([options$9.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
23956
23965
 
23957
23966
  __decorate([params$d.Action("goToResults")], SearchBox.prototype, "goToResults", void 0);
23958
23967
 
@@ -25601,7 +25610,7 @@ var toggleHierarchyParam = function toggleHierarchyParam() {
25601
25610
 
25602
25611
  var searchResult$g = namespace("searchResult");
25603
25612
  var params$c = namespace("params");
25604
- var options$7 = namespace("options");
25613
+ var options$8 = namespace("options");
25605
25614
 
25606
25615
  var CurrentFilters = /*#__PURE__*/function (_Vue) {
25607
25616
  _inherits(CurrentFilters, _Vue);
@@ -25678,7 +25687,7 @@ __decorate([searchResult$g.Getter("displayFilters")], CurrentFilters.prototype,
25678
25687
 
25679
25688
  __decorate([searchResult$g.Getter("currentFilterCount")], CurrentFilters.prototype, "currentFilterCount", void 0);
25680
25689
 
25681
- __decorate([options$7.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
25690
+ __decorate([options$8.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
25682
25691
 
25683
25692
  __decorate([params$c.Action("removeParams")], CurrentFilters.prototype, "removeParams", void 0);
25684
25693
 
@@ -28613,7 +28622,7 @@ var _typeof = _typeof$2.exports.default;
28613
28622
 
28614
28623
  var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
28615
28624
 
28616
- var options$6 = namespace("options");
28625
+ var options$7 = namespace("options");
28617
28626
 
28618
28627
  var TermFacet = /*#__PURE__*/function (_Vue) {
28619
28628
  _inherits(TermFacet, _Vue);
@@ -28820,7 +28829,7 @@ __decorate([Prop({
28820
28829
  }
28821
28830
  })], TermFacet.prototype, "currentFilters", void 0);
28822
28831
 
28823
- __decorate([options$6.State(function (s) {
28832
+ __decorate([options$7.State(function (s) {
28824
28833
  return s.searchResultOptions;
28825
28834
  })], TermFacet.prototype, "searchResultOptions", void 0);
28826
28835
 
@@ -29936,7 +29945,7 @@ var __vue_component__$F = /*#__PURE__*/normalizeComponent({
29936
29945
  staticRenderFns: __vue_staticRenderFns__$F
29937
29946
  }, __vue_inject_styles__$F, __vue_script__$F, __vue_scope_id__$F, __vue_is_functional_template__$F, __vue_module_identifier__$F, false, undefined, undefined, undefined);
29938
29947
 
29939
- var options$5 = namespace("options");
29948
+ var options$6 = namespace("options");
29940
29949
 
29941
29950
  var CategoryFilter = /*#__PURE__*/function (_Vue) {
29942
29951
  _inherits(CategoryFilter, _Vue);
@@ -30066,7 +30075,7 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
30066
30075
 
30067
30076
  __decorate([Prop()], CategoryFilter.prototype, "options", void 0);
30068
30077
 
30069
- __decorate([options$5.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
30078
+ __decorate([options$6.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
30070
30079
 
30071
30080
  CategoryFilter = __decorate([Component({
30072
30081
  name: "categoryFilter",
@@ -31053,7 +31062,7 @@ var __vue_component__$w = /*#__PURE__*/normalizeComponent({
31053
31062
  staticRenderFns: __vue_staticRenderFns__$w
31054
31063
  }, __vue_inject_styles__$w, __vue_script__$w, __vue_scope_id__$w, __vue_is_functional_template__$w, __vue_module_identifier__$w, false, undefined, undefined, undefined);
31055
31064
 
31056
- var options$4 = namespace("options");
31065
+ var options$5 = namespace("options");
31057
31066
 
31058
31067
  var SearchResultsProductTitle = /*#__PURE__*/function (_Vue) {
31059
31068
  _inherits(SearchResultsProductTitle, _Vue);
@@ -31106,7 +31115,7 @@ __decorate([Prop({
31106
31115
  default: ""
31107
31116
  })], SearchResultsProductTitle.prototype, "link", void 0);
31108
31117
 
31109
- __decorate([options$4.State(function (o) {
31118
+ __decorate([options$5.State(function (o) {
31110
31119
  return o.searchResultOptions;
31111
31120
  })], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
31112
31121
 
@@ -32017,6 +32026,7 @@ var __vue_component__$n = /*#__PURE__*/normalizeComponent({
32017
32026
  var tracking$3 = namespace("tracking");
32018
32027
  var params$9 = namespace("params");
32019
32028
  var searchResult$b = namespace("searchResult");
32029
+ var options$4 = namespace("options");
32020
32030
 
32021
32031
  var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
32022
32032
  _inherits(SearchResultsProductCard, _Vue);
@@ -32082,7 +32092,7 @@ var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
32082
32092
  }, {
32083
32093
  key: "hasEventRouting",
32084
32094
  get: function get() {
32085
- return this.options.routingBehavior === "event";
32095
+ return this.searchResultsRoutingBehavior === "event";
32086
32096
  }
32087
32097
  }, {
32088
32098
  key: "mounted",
@@ -32187,6 +32197,8 @@ __decorate([searchResult$b.State(function (state) {
32187
32197
  return state.layout;
32188
32198
  })], SearchResultsProductCard.prototype, "layout", void 0);
32189
32199
 
32200
+ __decorate([options$4.Getter("searchResultsRoutingBehavior")], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
32201
+
32190
32202
  __decorate([params$9.Getter("query")], SearchResultsProductCard.prototype, "query", void 0);
32191
32203
 
32192
32204
  __decorate([tracking$3.Action("track")], SearchResultsProductCard.prototype, "trackClick", void 0);
@@ -32964,7 +32976,11 @@ var SearchResultsPageSelect = /*#__PURE__*/function (_Vue) {
32964
32976
 
32965
32977
  __decorate([Prop({
32966
32978
  default: ">"
32967
- })], SearchResultsPageSelect.prototype, "label", void 0);
32979
+ })], SearchResultsPageSelect.prototype, "lastPageLabel", void 0);
32980
+
32981
+ __decorate([Prop({
32982
+ default: "<"
32983
+ })], SearchResultsPageSelect.prototype, "firstPageLabel", void 0);
32968
32984
 
32969
32985
  __decorate([Prop({
32970
32986
  default: {}
@@ -32994,13 +33010,13 @@ var __vue_render__$i = function __vue_render__() {
32994
33010
  "data-cy": "lupa-search-results-page-select"
32995
33011
  }
32996
33012
  }, [_vm.options.selectedPage > 1 ? _c("div", {
32997
- staticClass: "lupa-page-arrow",
33013
+ class: _vm.firstPageLabel === "<" ? "lupa-page-arrow" : "lupa-show-less",
32998
33014
  on: {
32999
33015
  click: function click() {
33000
33016
  return _vm.handlePageChange(_vm.options.selectedPage - 1);
33001
33017
  }
33002
33018
  }
33003
- }, [_vm._v("\n <\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
33019
+ }, [_vm._v("\n " + _vm._s(_vm.firstPageLabel) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
33004
33020
  staticClass: "lupa-page-number lupa-page-number-first",
33005
33021
  on: {
33006
33022
  click: function click() {
@@ -33032,7 +33048,7 @@ var __vue_render__$i = function __vue_render__() {
33032
33048
  }
33033
33049
  }
33034
33050
  }, [_vm._v("\n " + _vm._s(_vm.lastPage) + "\n ")])] : _vm._e(), _vm._v(" "), _vm.options.selectedPage < _vm.options.count ? _c("div", {
33035
- class: _vm.label === ">" ? "lupa-page-arrow" : "lupa-show-more",
33051
+ class: _vm.lastPageLabel === ">" ? "lupa-page-arrow" : "lupa-show-more",
33036
33052
  attrs: {
33037
33053
  "data-cy": "lupa-show-more"
33038
33054
  },
@@ -33041,7 +33057,7 @@ var __vue_render__$i = function __vue_render__() {
33041
33057
  return _vm.handlePageChange(_vm.options.selectedPage + 1);
33042
33058
  }
33043
33059
  }
33044
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]) : _vm._e()], 2);
33060
+ }, [_vm._v("\n " + _vm._s(_vm.lastPageLabel) + "\n ")]) : _vm._e()], 2);
33045
33061
  };
33046
33062
 
33047
33063
  var __vue_staticRenderFns__$i = [];
@@ -33712,7 +33728,8 @@ var __vue_render__$d = function __vue_render__() {
33712
33728
  }) : _c("div"), _vm._v(" "), _vm.displayPageSelect ? _c("SearchResultsPageSelect", {
33713
33729
  attrs: {
33714
33730
  options: _vm.paginationOptions.pageSelect,
33715
- label: _vm.paginationOptions.labels.showMore
33731
+ "last-page-label": _vm.paginationOptions.labels.showMore,
33732
+ "first-page-label": _vm.paginationOptions.labels.showLess
33716
33733
  }
33717
33734
  }) : _c("div")], 1), _vm._v(" "), _c("div", {
33718
33735
  staticClass: "lupa-toolbar-right"
@@ -36890,6 +36907,13 @@ var OptionsModule = /*#__PURE__*/function (_VuexModule) {
36890
36907
 
36891
36908
  return (_a = this.searchBoxOptions.routingBehavior) !== null && _a !== void 0 ? _a : "direct-link";
36892
36909
  }
36910
+ }, {
36911
+ key: "searchResultsRoutingBehavior",
36912
+ get: function get() {
36913
+ var _a;
36914
+
36915
+ return (_a = this.searchResultOptions.routingBehavior) !== null && _a !== void 0 ? _a : "direct-link";
36916
+ }
36893
36917
  }, {
36894
36918
  key: "defaultSearchResultPageSize",
36895
36919
  get: function get() {