@getlupa/vue 0.3.7 → 0.4.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.
@@ -3012,8 +3012,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
3012
3012
  resetHighlightIndex
3013
3013
  };
3014
3014
  });
3015
- const _hoisted_1$19 = { id: "lupa-search-box-input-container" };
3016
- const _hoisted_2$N = { class: "lupa-input-clear" };
3015
+ const _hoisted_1$1a = { id: "lupa-search-box-input-container" };
3016
+ const _hoisted_2$O = { class: "lupa-input-clear" };
3017
3017
  const _hoisted_3$A = { id: "lupa-search-box-input" };
3018
3018
  const _hoisted_4$r = ["value"];
3019
3019
  const _hoisted_5$f = ["placeholder"];
@@ -3021,7 +3021,7 @@ const _hoisted_6$8 = {
3021
3021
  key: 0,
3022
3022
  class: "lupa-close-label"
3023
3023
  };
3024
- const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
3024
+ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
3025
3025
  __name: "SearchBoxInput",
3026
3026
  props: {
3027
3027
  options: {},
@@ -3098,8 +3098,8 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
3098
3098
  };
3099
3099
  __expose({ focus });
3100
3100
  return (_ctx, _cache) => {
3101
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$19, [
3102
- vue.createElementVNode("div", _hoisted_2$N, [
3101
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1a, [
3102
+ vue.createElementVNode("div", _hoisted_2$O, [
3103
3103
  vue.createElementVNode("div", {
3104
3104
  class: vue.normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
3105
3105
  onClick: clear
@@ -3138,7 +3138,7 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
3138
3138
  };
3139
3139
  }
3140
3140
  });
3141
- const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
3141
+ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
3142
3142
  __name: "SearchBoxMoreResults",
3143
3143
  props: {
3144
3144
  labels: {},
@@ -3170,9 +3170,9 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
3170
3170
  };
3171
3171
  }
3172
3172
  });
3173
- const _hoisted_1$18 = { class: "lupa-search-box-history-item" };
3174
- const _hoisted_2$M = { class: "lupa-search-box-history-item-content" };
3175
- const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
3173
+ const _hoisted_1$19 = { class: "lupa-search-box-history-item" };
3174
+ const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
3175
+ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
3176
3176
  __name: "SearchBoxHistoryItem",
3177
3177
  props: {
3178
3178
  item: {},
@@ -3188,8 +3188,8 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
3188
3188
  emit("click", { query: props.item });
3189
3189
  };
3190
3190
  return (_ctx, _cache) => {
3191
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$18, [
3192
- vue.createElementVNode("div", _hoisted_2$M, [
3191
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$19, [
3192
+ vue.createElementVNode("div", _hoisted_2$N, [
3193
3193
  vue.createElementVNode("div", {
3194
3194
  class: vue.normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
3195
3195
  onClick: click2
@@ -3203,11 +3203,11 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
3203
3203
  };
3204
3204
  }
3205
3205
  });
3206
- const _hoisted_1$17 = {
3206
+ const _hoisted_1$18 = {
3207
3207
  key: 0,
3208
3208
  class: "lupa-search-box-history-panel"
3209
3209
  };
3210
- const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
3210
+ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
3211
3211
  __name: "SearchBoxHistoryPanel",
3212
3212
  props: {
3213
3213
  options: {}
@@ -3248,9 +3248,9 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
3248
3248
  }
3249
3249
  };
3250
3250
  return (_ctx, _cache) => {
3251
- return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$17, [
3251
+ return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$18, [
3252
3252
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(history), (item, index) => {
3253
- return vue.openBlock(), vue.createBlock(_sfc_main$1f, {
3253
+ return vue.openBlock(), vue.createBlock(_sfc_main$1g, {
3254
3254
  key: item,
3255
3255
  item,
3256
3256
  highlighted: index === highlightIndex.value,
@@ -3266,8 +3266,8 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
3266
3266
  };
3267
3267
  }
3268
3268
  });
3269
- const _hoisted_1$16 = ["innerHTML"];
3270
- const _hoisted_2$L = {
3269
+ const _hoisted_1$17 = ["innerHTML"];
3270
+ const _hoisted_2$M = {
3271
3271
  key: 1,
3272
3272
  "data-cy": "lupa-suggestion-value",
3273
3273
  class: "lupa-suggestion-value"
@@ -3285,7 +3285,7 @@ const _hoisted_5$e = {
3285
3285
  class: "lupa-suggestion-facet-value",
3286
3286
  "data-cy": "lupa-suggestion-facet-value"
3287
3287
  };
3288
- const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
3288
+ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
3289
3289
  __name: "SearchBoxSuggestion",
3290
3290
  props: {
3291
3291
  suggestion: {},
@@ -3321,7 +3321,7 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
3321
3321
  class: "lupa-suggestion-value",
3322
3322
  "data-cy": "lupa-suggestion-value",
3323
3323
  innerHTML: _ctx.suggestion.displayHighlight
3324
- }, null, 8, _hoisted_1$16)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$L, vue.toDisplayString(_ctx.suggestion.display), 1)),
3324
+ }, null, 8, _hoisted_1$17)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$M, vue.toDisplayString(_ctx.suggestion.display), 1)),
3325
3325
  _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
3326
3326
  vue.createElementVNode("span", _hoisted_4$q, vue.toDisplayString(facetLabel.value), 1),
3327
3327
  vue.createElementVNode("span", _hoisted_5$e, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -3330,11 +3330,11 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
3330
3330
  };
3331
3331
  }
3332
3332
  });
3333
- const _hoisted_1$15 = {
3333
+ const _hoisted_1$16 = {
3334
3334
  id: "lupa-search-box-suggestions",
3335
3335
  "data-cy": "lupa-search-box-suggestions"
3336
3336
  };
3337
- const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
3337
+ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
3338
3338
  __name: "SearchBoxSuggestions",
3339
3339
  props: {
3340
3340
  items: {},
@@ -3394,9 +3394,9 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
3394
3394
  });
3395
3395
  });
3396
3396
  return (_ctx, _cache) => {
3397
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$15, [
3397
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$16, [
3398
3398
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
3399
- return vue.openBlock(), vue.createBlock(_sfc_main$1d, {
3399
+ return vue.openBlock(), vue.createBlock(_sfc_main$1e, {
3400
3400
  key: getSuggestionKey(item),
3401
3401
  class: vue.normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
3402
3402
  suggestion: item,
@@ -3424,7 +3424,7 @@ const debounce$1 = (func, timeout) => {
3424
3424
  }, timeout);
3425
3425
  };
3426
3426
  };
3427
- const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
3427
+ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
3428
3428
  __name: "SearchBoxSuggestionsWrapper",
3429
3429
  props: {
3430
3430
  panel: {},
@@ -3465,7 +3465,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
3465
3465
  };
3466
3466
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
3467
3467
  return (_ctx, _cache) => {
3468
- return vue.openBlock(), vue.createBlock(_sfc_main$1c, {
3468
+ return vue.openBlock(), vue.createBlock(_sfc_main$1d, {
3469
3469
  items: searchResult.value,
3470
3470
  highlight: _ctx.panel.highlight,
3471
3471
  queryKey: _ctx.panel.queryKey,
@@ -3543,8 +3543,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
3543
3543
  });
3544
3544
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
3545
3545
  });
3546
- const _hoisted_1$14 = ["src"];
3547
- const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
3546
+ const _hoisted_1$15 = ["src"];
3547
+ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
3548
3548
  __name: "ProductImage",
3549
3549
  props: {
3550
3550
  item: {},
@@ -3592,12 +3592,12 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
3592
3592
  class: vue.normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
3593
3593
  src: finalUrl.value,
3594
3594
  onError: replaceWithPlaceholder
3595
- }, null, 42, _hoisted_1$14)
3595
+ }, null, 42, _hoisted_1$15)
3596
3596
  ], 2);
3597
3597
  };
3598
3598
  }
3599
3599
  });
3600
- const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
3600
+ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
3601
3601
  __name: "SearchBoxProductImage",
3602
3602
  props: {
3603
3603
  item: {},
@@ -3605,7 +3605,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
3605
3605
  },
3606
3606
  setup(__props) {
3607
3607
  return (_ctx, _cache) => {
3608
- return vue.openBlock(), vue.createBlock(_sfc_main$1a, {
3608
+ return vue.openBlock(), vue.createBlock(_sfc_main$1b, {
3609
3609
  item: _ctx.item,
3610
3610
  options: _ctx.options,
3611
3611
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -3614,12 +3614,12 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
3614
3614
  };
3615
3615
  }
3616
3616
  });
3617
- const _hoisted_1$13 = ["innerHTML"];
3618
- const _hoisted_2$K = {
3617
+ const _hoisted_1$14 = ["innerHTML"];
3618
+ const _hoisted_2$L = {
3619
3619
  key: 1,
3620
3620
  class: "lupa-search-box-product-title"
3621
3621
  };
3622
- const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
3622
+ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
3623
3623
  __name: "SearchBoxProductTitle",
3624
3624
  props: {
3625
3625
  item: {},
@@ -3639,18 +3639,18 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
3639
3639
  key: 0,
3640
3640
  class: "lupa-search-box-product-title",
3641
3641
  innerHTML: title.value
3642
- }, null, 8, _hoisted_1$13)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$K, [
3642
+ }, null, 8, _hoisted_1$14)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$L, [
3643
3643
  vue.createElementVNode("strong", null, vue.toDisplayString(title.value), 1)
3644
3644
  ]));
3645
3645
  };
3646
3646
  }
3647
3647
  });
3648
- const _hoisted_1$12 = ["innerHTML"];
3649
- const _hoisted_2$J = {
3648
+ const _hoisted_1$13 = ["innerHTML"];
3649
+ const _hoisted_2$K = {
3650
3650
  key: 1,
3651
3651
  class: "lupa-search-box-product-description"
3652
3652
  };
3653
- const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
3653
+ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
3654
3654
  __name: "SearchBoxProductDescription",
3655
3655
  props: {
3656
3656
  item: {},
@@ -3670,12 +3670,12 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
3670
3670
  key: 0,
3671
3671
  class: "lupa-search-box-product-description",
3672
3672
  innerHTML: description.value
3673
- }, null, 8, _hoisted_1$12)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$J, vue.toDisplayString(description.value), 1));
3673
+ }, null, 8, _hoisted_1$13)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$K, vue.toDisplayString(description.value), 1));
3674
3674
  };
3675
3675
  }
3676
3676
  });
3677
- const _hoisted_1$11 = { class: "lupa-search-box-product-price" };
3678
- const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3677
+ const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
3678
+ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
3679
3679
  __name: "SearchBoxProductPrice",
3680
3680
  props: {
3681
3681
  item: {},
@@ -3693,14 +3693,14 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3693
3693
  );
3694
3694
  });
3695
3695
  return (_ctx, _cache) => {
3696
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
3696
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$12, [
3697
3697
  vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
3698
3698
  ]);
3699
3699
  };
3700
3700
  }
3701
3701
  });
3702
- const _hoisted_1$10 = { class: "lupa-search-box-product-regular-price" };
3703
- const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
3702
+ const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
3703
+ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3704
3704
  __name: "SearchBoxProductRegularPrice",
3705
3705
  props: {
3706
3706
  item: {},
@@ -3718,16 +3718,16 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
3718
3718
  );
3719
3719
  });
3720
3720
  return (_ctx, _cache) => {
3721
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$10, vue.toDisplayString(price.value), 1);
3721
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, vue.toDisplayString(price.value), 1);
3722
3722
  };
3723
3723
  }
3724
3724
  });
3725
- const _hoisted_1$$ = ["innerHTML"];
3726
- const _hoisted_2$I = { key: 0 };
3725
+ const _hoisted_1$10 = ["innerHTML"];
3726
+ const _hoisted_2$J = { key: 0 };
3727
3727
  const _hoisted_3$y = { key: 1 };
3728
3728
  const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
3729
3729
  const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
3730
- const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3730
+ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
3731
3731
  __name: "SearchBoxProductCustom",
3732
3732
  props: {
3733
3733
  item: {},
@@ -3753,11 +3753,11 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3753
3753
  key: 0,
3754
3754
  class: [className.value, "lupa-search-box-product-custom"],
3755
3755
  innerHTML: text.value
3756
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
3756
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
3757
3757
  key: 1,
3758
3758
  class: [className.value, "lupa-search-box-product-custom"]
3759
3759
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
3760
- !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$I, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
3760
+ !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$J, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
3761
3761
  vue.createElementVNode("div", _hoisted_4$p, vue.toDisplayString(label.value), 1),
3762
3762
  vue.createElementVNode("div", _hoisted_5$d, vue.toDisplayString(text.value), 1)
3763
3763
  ]))
@@ -3765,8 +3765,8 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3765
3765
  };
3766
3766
  }
3767
3767
  });
3768
- const _hoisted_1$_ = ["innerHTML"];
3769
- const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
3768
+ const _hoisted_1$$ = ["innerHTML"];
3769
+ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3770
3770
  __name: "SearchBoxProductCustomHtml",
3771
3771
  props: {
3772
3772
  item: {},
@@ -3786,7 +3786,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
3786
3786
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
3787
3787
  class: className.value,
3788
3788
  innerHTML: text.value
3789
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$_);
3789
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
3790
3790
  };
3791
3791
  }
3792
3792
  });
@@ -3981,10 +3981,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
3981
3981
  setLoading
3982
3982
  };
3983
3983
  });
3984
- const _hoisted_1$Z = { class: "lupa-search-box-add-to-cart-wrapper" };
3985
- const _hoisted_2$H = { class: "lupa-search-box-product-addtocart" };
3984
+ const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
3985
+ const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
3986
3986
  const _hoisted_3$x = ["onClick", "disabled"];
3987
- const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
3987
+ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
3988
3988
  __name: "SearchBoxProductAddToCart",
3989
3989
  props: {
3990
3990
  item: {},
@@ -4011,8 +4011,8 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
4011
4011
  loading.value = false;
4012
4012
  });
4013
4013
  return (_ctx, _cache) => {
4014
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
4015
- vue.createElementVNode("div", _hoisted_2$H, [
4014
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
4015
+ vue.createElementVNode("div", _hoisted_2$I, [
4016
4016
  vue.createElementVNode("button", {
4017
4017
  onClick: vue.withModifiers(handleClick, ["stop", "prevent"]),
4018
4018
  class: vue.normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -4027,17 +4027,17 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
4027
4027
  });
4028
4028
  const __default__$4 = {
4029
4029
  components: {
4030
- SearchBoxProductImage: _sfc_main$19,
4031
- SearchBoxProductTitle: _sfc_main$18,
4032
- SearchBoxProductDescription: _sfc_main$17,
4033
- SearchBoxProductPrice: _sfc_main$16,
4034
- SearchBoxProductRegularPrice: _sfc_main$15,
4035
- SearchBoxProductCustom: _sfc_main$14,
4036
- SearchBoxProductCustomHtml: _sfc_main$13,
4037
- SearchBoxProductAddToCart: _sfc_main$12
4030
+ SearchBoxProductImage: _sfc_main$1a,
4031
+ SearchBoxProductTitle: _sfc_main$19,
4032
+ SearchBoxProductDescription: _sfc_main$18,
4033
+ SearchBoxProductPrice: _sfc_main$17,
4034
+ SearchBoxProductRegularPrice: _sfc_main$16,
4035
+ SearchBoxProductCustom: _sfc_main$15,
4036
+ SearchBoxProductCustomHtml: _sfc_main$14,
4037
+ SearchBoxProductAddToCart: _sfc_main$13
4038
4038
  }
4039
4039
  };
4040
- const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
4040
+ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
4041
4041
  __name: "SearchBoxProductElement",
4042
4042
  props: {
4043
4043
  item: {},
@@ -4151,14 +4151,14 @@ const useTrackingStore = defineStore("tracking", () => {
4151
4151
  };
4152
4152
  return { trackSearch, trackResults, trackEvent };
4153
4153
  });
4154
- const _hoisted_1$Y = ["href"];
4155
- const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
4154
+ const _hoisted_1$Z = ["href"];
4155
+ const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
4156
4156
  const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
4157
4157
  const _hoisted_4$o = {
4158
4158
  key: 0,
4159
4159
  class: "lupa-search-box-product-add-to-cart-section"
4160
4160
  };
4161
- const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
4161
+ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
4162
4162
  __name: "SearchBoxProduct",
4163
4163
  props: {
4164
4164
  item: {},
@@ -4251,9 +4251,9 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
4251
4251
  href: link.value,
4252
4252
  onClick: handleClick
4253
4253
  }, [
4254
- vue.createElementVNode("div", _hoisted_2$G, [
4254
+ vue.createElementVNode("div", _hoisted_2$H, [
4255
4255
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
4256
- return vue.openBlock(), vue.createBlock(_sfc_main$11, {
4256
+ return vue.openBlock(), vue.createBlock(_sfc_main$12, {
4257
4257
  class: "lupa-search-box-product-element",
4258
4258
  item: _ctx.item,
4259
4259
  element,
@@ -4265,7 +4265,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
4265
4265
  ]),
4266
4266
  vue.createElementVNode("div", _hoisted_3$w, [
4267
4267
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
4268
- return vue.openBlock(), vue.createBlock(_sfc_main$11, {
4268
+ return vue.openBlock(), vue.createBlock(_sfc_main$12, {
4269
4269
  class: "lupa-search-box-product-element",
4270
4270
  item: _ctx.item,
4271
4271
  element,
@@ -4276,7 +4276,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
4276
4276
  }), 128))
4277
4277
  ]),
4278
4278
  addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, [
4279
- vue.createVNode(_sfc_main$11, {
4279
+ vue.createVNode(_sfc_main$12, {
4280
4280
  class: "lupa-search-box-product-element",
4281
4281
  item: _ctx.item,
4282
4282
  element: addToCartElement.value,
@@ -4285,12 +4285,12 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
4285
4285
  isInStock: isInStock.value
4286
4286
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
4287
4287
  ])) : vue.createCommentVNode("", true)
4288
- ], 10, _hoisted_1$Y);
4288
+ ], 10, _hoisted_1$Z);
4289
4289
  };
4290
4290
  }
4291
4291
  });
4292
- const _hoisted_1$X = { id: "lupa-search-box-products" };
4293
- const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4292
+ const _hoisted_1$Y = { id: "lupa-search-box-products" };
4293
+ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
4294
4294
  __name: "SearchBoxProducts",
4295
4295
  props: {
4296
4296
  items: {},
@@ -4310,7 +4310,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4310
4310
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
4311
4311
  });
4312
4312
  return (_ctx, _cache) => {
4313
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
4313
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y, [
4314
4314
  _ctx.$slots.productCard ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.items, (item, index) => {
4315
4315
  return vue.renderSlot(_ctx.$slots, "productCard", {
4316
4316
  key: index,
@@ -4322,7 +4322,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4322
4322
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
4323
4323
  });
4324
4324
  }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.items, (item, index) => {
4325
- return vue.openBlock(), vue.createBlock(_sfc_main$10, {
4325
+ return vue.openBlock(), vue.createBlock(_sfc_main$11, {
4326
4326
  key: index,
4327
4327
  item,
4328
4328
  panelOptions: _ctx.panelOptions,
@@ -4336,7 +4336,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4336
4336
  };
4337
4337
  }
4338
4338
  });
4339
- const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
4339
+ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4340
4340
  __name: "SearchBoxProductsWrapper",
4341
4341
  props: {
4342
4342
  panel: {},
@@ -4388,7 +4388,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
4388
4388
  const getItemsDebounced = debounce$1(getItems, props.debounce);
4389
4389
  return (_ctx, _cache) => {
4390
4390
  var _a, _b;
4391
- return vue.openBlock(), vue.createBlock(_sfc_main$$, {
4391
+ return vue.openBlock(), vue.createBlock(_sfc_main$10, {
4392
4392
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
4393
4393
  panelOptions: _ctx.panel,
4394
4394
  labels: _ctx.labels,
@@ -4406,11 +4406,11 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
4406
4406
  };
4407
4407
  }
4408
4408
  });
4409
- const _hoisted_1$W = {
4409
+ const _hoisted_1$X = {
4410
4410
  key: 0,
4411
4411
  id: "lupa-search-box-panel"
4412
4412
  };
4413
- const _hoisted_2$F = {
4413
+ const _hoisted_2$G = {
4414
4414
  class: "lupa-main-panel",
4415
4415
  "data-cy": "lupa-main-panel"
4416
4416
  };
@@ -4421,11 +4421,11 @@ const _hoisted_4$n = {
4421
4421
  };
4422
4422
  const __default__$3 = {
4423
4423
  components: {
4424
- SearchBoxSuggestionsWrapper: _sfc_main$1b,
4425
- SearchBoxProductsWrapper: _sfc_main$_
4424
+ SearchBoxSuggestionsWrapper: _sfc_main$1c,
4425
+ SearchBoxProductsWrapper: _sfc_main$$
4426
4426
  }
4427
4427
  };
4428
- const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
4428
+ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
4429
4429
  __name: "SearchBoxMainPanel",
4430
4430
  props: {
4431
4431
  options: {},
@@ -4539,8 +4539,8 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
4539
4539
  ref_key: "panelContainer",
4540
4540
  ref: panelContainer
4541
4541
  }, [
4542
- displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
4543
- vue.createElementVNode("div", _hoisted_2$F, [
4542
+ displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
4543
+ vue.createElementVNode("div", _hoisted_2$G, [
4544
4544
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayPanels.value, (panel, index) => {
4545
4545
  return vue.openBlock(), vue.createElementBlock("div", {
4546
4546
  key: index,
@@ -4572,13 +4572,13 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
4572
4572
  ], 10, _hoisted_3$v);
4573
4573
  }), 128))
4574
4574
  ]),
4575
- vue.createVNode(_sfc_main$1g, {
4575
+ vue.createVNode(_sfc_main$1h, {
4576
4576
  labels: labels.value,
4577
4577
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
4578
4578
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
4579
4579
  }, null, 8, ["labels", "showTotalCount"])
4580
4580
  ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$n, [
4581
- vue.createVNode(_sfc_main$1e, {
4581
+ vue.createVNode(_sfc_main$1f, {
4582
4582
  options: _ctx.options.history,
4583
4583
  history: history.value,
4584
4584
  onGoToResults: handleGoToResults,
@@ -4603,9 +4603,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
4603
4603
  const elements = getElements(triggers);
4604
4604
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
4605
4605
  };
4606
- const _hoisted_1$V = { id: "lupa-search-box" };
4607
- const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
4608
- const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
4606
+ const _hoisted_1$W = { id: "lupa-search-box" };
4607
+ const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
4608
+ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
4609
4609
  __name: "SearchBox",
4610
4610
  props: {
4611
4611
  options: {},
@@ -4838,9 +4838,9 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
4838
4838
  };
4839
4839
  return (_ctx, _cache) => {
4840
4840
  var _a2;
4841
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
4842
- vue.createElementVNode("div", _hoisted_2$E, [
4843
- vue.createVNode(_sfc_main$1h, {
4841
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
4842
+ vue.createElementVNode("div", _hoisted_2$F, [
4843
+ vue.createVNode(_sfc_main$1i, {
4844
4844
  options: inputOptions.value,
4845
4845
  suggestedValue: suggestedValue.value,
4846
4846
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -4851,7 +4851,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
4851
4851
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
4852
4852
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
4853
4853
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
4854
- opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, {
4854
+ opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$_, {
4855
4855
  key: 0,
4856
4856
  options: panelOptions.value,
4857
4857
  inputValue: inputValue.value,
@@ -4954,11 +4954,11 @@ const getInitialSearchResults = (options, defaultData) => __async(exports, null,
4954
4954
  options.options.onError(e);
4955
4955
  }
4956
4956
  });
4957
- const _hoisted_1$U = {
4957
+ const _hoisted_1$V = {
4958
4958
  key: 0,
4959
4959
  id: "lupa-search-results-did-you-mean"
4960
4960
  };
4961
- const _hoisted_2$D = {
4961
+ const _hoisted_2$E = {
4962
4962
  key: 0,
4963
4963
  "data-cy": "suggested-search-text-label"
4964
4964
  };
@@ -4967,7 +4967,7 @@ const _hoisted_3$u = {
4967
4967
  "data-cy": "did-you-mean-label"
4968
4968
  };
4969
4969
  const _hoisted_4$m = { key: 1 };
4970
- const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
4970
+ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
4971
4971
  __name: "SearchResultsDidYouMean",
4972
4972
  props: {
4973
4973
  labels: {}
@@ -4999,8 +4999,8 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
4999
4999
  paramStore.goToResults({ searchText, facet });
5000
5000
  };
5001
5001
  return (_ctx, _cache) => {
5002
- return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
5003
- vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$D, [
5002
+ return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
5003
+ vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$E, [
5004
5004
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
5005
5005
  return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
5006
5006
  vue.createElementVNode("span", {
@@ -5025,12 +5025,12 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
5025
5025
  };
5026
5026
  }
5027
5027
  });
5028
- const _hoisted_1$T = {
5028
+ const _hoisted_1$U = {
5029
5029
  key: 0,
5030
5030
  class: "lupa-search-results-summary"
5031
5031
  };
5032
- const _hoisted_2$C = ["innerHTML"];
5033
- const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
5032
+ const _hoisted_2$D = ["innerHTML"];
5033
+ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
5034
5034
  __name: "SearchResultsSummary",
5035
5035
  props: {
5036
5036
  label: {},
@@ -5045,8 +5045,8 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
5045
5045
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
5046
5046
  });
5047
5047
  return (_ctx, _cache) => {
5048
- return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
5049
- vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
5048
+ return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
5049
+ vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
5050
5050
  _ctx.clearable ? (vue.openBlock(), vue.createElementBlock("span", {
5051
5051
  key: 0,
5052
5052
  class: "lupa-filter-clear",
@@ -5057,18 +5057,18 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
5057
5057
  };
5058
5058
  }
5059
5059
  });
5060
- const _hoisted_1$S = {
5060
+ const _hoisted_1$T = {
5061
5061
  key: 0,
5062
5062
  class: "lupa-result-page-title",
5063
5063
  "data-cy": "lupa-result-page-title"
5064
5064
  };
5065
- const _hoisted_2$B = { key: 0 };
5065
+ const _hoisted_2$C = { key: 0 };
5066
5066
  const _hoisted_3$t = {
5067
5067
  key: 1,
5068
5068
  class: "lupa-results-total-count"
5069
5069
  };
5070
5070
  const _hoisted_4$l = ["innerHTML"];
5071
- const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
5071
+ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
5072
5072
  __name: "SearchResultsTitle",
5073
5073
  props: {
5074
5074
  options: {},
@@ -5103,12 +5103,12 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
5103
5103
  });
5104
5104
  return (_ctx, _cache) => {
5105
5105
  return vue.openBlock(), vue.createElementBlock("div", null, [
5106
- showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$S, [
5106
+ showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$T, [
5107
5107
  vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.searchResults), 1),
5108
- queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$B, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
5108
+ queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$C, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
5109
5109
  showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$t, "(" + vue.toDisplayString(vue.unref(totalItems)) + ")", 1)) : vue.createCommentVNode("", true)
5110
5110
  ])) : vue.createCommentVNode("", true),
5111
- _ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$W, {
5111
+ _ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
5112
5112
  key: 1,
5113
5113
  label: summaryLabel.value
5114
5114
  }, null, 8, ["label"])) : vue.createCommentVNode("", true),
@@ -5121,8 +5121,8 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
5121
5121
  };
5122
5122
  }
5123
5123
  });
5124
- const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
5125
- const _hoisted_2$A = {
5124
+ const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
5125
+ const _hoisted_2$B = {
5126
5126
  class: "lupa-current-filter-label",
5127
5127
  "data-cy": "lupa-current-filter-label"
5128
5128
  };
@@ -5130,7 +5130,7 @@ const _hoisted_3$s = {
5130
5130
  class: "lupa-current-filter-value",
5131
5131
  "data-cy": "lupa-current-filter-value"
5132
5132
  };
5133
- const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
5133
+ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
5134
5134
  __name: "CurrentFilterDisplay",
5135
5135
  props: {
5136
5136
  filter: {}
@@ -5142,19 +5142,19 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
5142
5142
  emit("remove", { filter: props.filter });
5143
5143
  };
5144
5144
  return (_ctx, _cache) => {
5145
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
5145
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
5146
5146
  vue.createElementVNode("div", {
5147
5147
  class: "lupa-current-filter-action",
5148
5148
  onClick: handleClick
5149
5149
  }, "⨉"),
5150
- vue.createElementVNode("div", _hoisted_2$A, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
5150
+ vue.createElementVNode("div", _hoisted_2$B, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
5151
5151
  vue.createElementVNode("div", _hoisted_3$s, vue.toDisplayString(_ctx.filter.value), 1)
5152
5152
  ]);
5153
5153
  };
5154
5154
  }
5155
5155
  });
5156
- const _hoisted_1$Q = { class: "lupa-filter-title-text" };
5157
- const _hoisted_2$z = {
5156
+ const _hoisted_1$R = { class: "lupa-filter-title-text" };
5157
+ const _hoisted_2$A = {
5158
5158
  key: 0,
5159
5159
  class: "lupa-filter-count"
5160
5160
  };
@@ -5163,7 +5163,7 @@ const _hoisted_3$r = {
5163
5163
  class: "filter-values"
5164
5164
  };
5165
5165
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
5166
- const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
5166
+ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
5167
5167
  __name: "CurrentFilters",
5168
5168
  props: {
5169
5169
  options: {},
@@ -5218,9 +5218,9 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
5218
5218
  class: "lupa-current-filter-title",
5219
5219
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
5220
5220
  }, [
5221
- vue.createElementVNode("div", _hoisted_1$Q, [
5221
+ vue.createElementVNode("div", _hoisted_1$R, [
5222
5222
  vue.createTextVNode(vue.toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
5223
- _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$z, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
5223
+ _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$A, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
5224
5224
  ]),
5225
5225
  _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("div", {
5226
5226
  key: 0,
@@ -5230,7 +5230,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
5230
5230
  !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$r, [
5231
5231
  vue.createElementVNode("div", _hoisted_4$k, [
5232
5232
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(displayFilters), (filter) => {
5233
- return vue.openBlock(), vue.createBlock(_sfc_main$U, {
5233
+ return vue.openBlock(), vue.createBlock(_sfc_main$V, {
5234
5234
  key: filter.key + "_" + filter.value,
5235
5235
  filter,
5236
5236
  onRemove: handleRemove
@@ -5247,8 +5247,8 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
5247
5247
  };
5248
5248
  }
5249
5249
  });
5250
- const _hoisted_1$P = ["href"];
5251
- const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
5250
+ const _hoisted_1$Q = ["href"];
5251
+ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
5252
5252
  __name: "CategoryFilterItem",
5253
5253
  props: {
5254
5254
  options: {},
@@ -5285,20 +5285,20 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
5285
5285
  "data-cy": "lupa-child-category-item",
5286
5286
  href: urlLink.value,
5287
5287
  onClick: handleNavigation
5288
- }, vue.toDisplayString(title.value), 9, _hoisted_1$P)
5288
+ }, vue.toDisplayString(title.value), 9, _hoisted_1$Q)
5289
5289
  ], 2);
5290
5290
  };
5291
5291
  }
5292
5292
  });
5293
- const _hoisted_1$O = {
5293
+ const _hoisted_1$P = {
5294
5294
  class: "lupa-category-filter",
5295
5295
  "data-cy": "lupa-category-filter"
5296
5296
  };
5297
- const _hoisted_2$y = { class: "lupa-category-back" };
5297
+ const _hoisted_2$z = { class: "lupa-category-back" };
5298
5298
  const _hoisted_3$q = ["href"];
5299
5299
  const _hoisted_4$j = ["href"];
5300
5300
  const _hoisted_5$c = { class: "lupa-child-category-list" };
5301
- const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
5301
+ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
5302
5302
  __name: "CategoryFilter",
5303
5303
  props: {
5304
5304
  options: {}
@@ -5384,8 +5384,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
5384
5384
  };
5385
5385
  __expose({ fetch: fetch2 });
5386
5386
  return (_ctx, _cache) => {
5387
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
5388
- vue.createElementVNode("div", _hoisted_2$y, [
5387
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
5388
+ vue.createElementVNode("div", _hoisted_2$z, [
5389
5389
  hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("a", {
5390
5390
  key: 0,
5391
5391
  "data-cy": "lupa-category-back",
@@ -5405,7 +5405,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
5405
5405
  ], 2),
5406
5406
  vue.createElementVNode("div", _hoisted_5$c, [
5407
5407
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
5408
- return vue.openBlock(), vue.createBlock(_sfc_main$S, {
5408
+ return vue.openBlock(), vue.createBlock(_sfc_main$T, {
5409
5409
  key: getCategoryKey(child),
5410
5410
  item: child,
5411
5411
  options: _ctx.options
@@ -5416,11 +5416,11 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
5416
5416
  };
5417
5417
  }
5418
5418
  });
5419
- const _hoisted_1$N = {
5419
+ const _hoisted_1$O = {
5420
5420
  class: "lupa-search-result-facet-term-values",
5421
5421
  "data-cy": "lupa-search-result-facet-term-values"
5422
5422
  };
5423
- const _hoisted_2$x = ["placeholder"];
5423
+ const _hoisted_2$y = ["placeholder"];
5424
5424
  const _hoisted_3$p = { class: "lupa-terms-list" };
5425
5425
  const _hoisted_4$i = ["onClick"];
5426
5426
  const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
@@ -5432,7 +5432,7 @@ const _hoisted_8$1 = {
5432
5432
  };
5433
5433
  const _hoisted_9$1 = { key: 0 };
5434
5434
  const _hoisted_10$1 = { key: 1 };
5435
- const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
5435
+ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
5436
5436
  __name: "TermFacet",
5437
5437
  props: {
5438
5438
  options: {},
@@ -5501,14 +5501,14 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
5501
5501
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
5502
5502
  };
5503
5503
  return (_ctx, _cache) => {
5504
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
5504
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
5505
5505
  isFilterable.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
5506
5506
  key: 0,
5507
5507
  class: "lupa-term-filter",
5508
5508
  "data-cy": "lupa-term-filter",
5509
5509
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
5510
5510
  placeholder: _ctx.options.labels.facetFilter
5511
- }, null, 8, _hoisted_2$x)), [
5511
+ }, null, 8, _hoisted_2$y)), [
5512
5512
  [vue.vModelText, termFilter.value]
5513
5513
  ]) : vue.createCommentVNode("", true),
5514
5514
  vue.createElementVNode("div", _hoisted_3$p, [
@@ -6519,8 +6519,8 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
6519
6519
  m.render = function(e, t, r, i, n, o) {
6520
6520
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
6521
6521
  }, m.__file = "src/Slider.vue";
6522
- const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
6523
- const _hoisted_2$w = {
6522
+ const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
6523
+ const _hoisted_2$x = {
6524
6524
  key: 0,
6525
6525
  class: "lupa-stats-facet-summary"
6526
6526
  };
@@ -6547,7 +6547,7 @@ const _hoisted_13 = {
6547
6547
  key: 2,
6548
6548
  class: "lupa-stats-slider-wrapper"
6549
6549
  };
6550
- const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
6550
+ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
6551
6551
  __name: "StatsFacet",
6552
6552
  props: {
6553
6553
  options: {},
@@ -6695,8 +6695,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
6695
6695
  innerSliderRange.value = value;
6696
6696
  };
6697
6697
  return (_ctx, _cache) => {
6698
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
6699
- !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$w, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$o, [
6698
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
6699
+ !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$o, [
6700
6700
  vue.createElementVNode("div", null, [
6701
6701
  rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$h, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
6702
6702
  vue.createElementVNode("div", _hoisted_5$a, [
@@ -6759,8 +6759,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
6759
6759
  };
6760
6760
  }
6761
6761
  });
6762
- const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
6763
- const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
6762
+ const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
6763
+ const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
6764
6764
  const _hoisted_3$n = { class: "lupa-term-label" };
6765
6765
  const _hoisted_4$g = {
6766
6766
  key: 0,
@@ -6770,7 +6770,7 @@ const _hoisted_5$9 = {
6770
6770
  key: 0,
6771
6771
  class: "lupa-facet-level"
6772
6772
  };
6773
- const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
6773
+ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
6774
6774
  __name: "HierarchyFacetLevel",
6775
6775
  props: {
6776
6776
  options: {},
@@ -6816,12 +6816,12 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
6816
6816
  "data-cy": "lupa-facet-term",
6817
6817
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
6818
6818
  }, [
6819
- vue.createElementVNode("div", _hoisted_1$L, [
6819
+ vue.createElementVNode("div", _hoisted_1$M, [
6820
6820
  vue.createElementVNode("span", {
6821
6821
  class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
6822
6822
  }, null, 2)
6823
6823
  ]),
6824
- vue.createElementVNode("div", _hoisted_2$v, [
6824
+ vue.createElementVNode("div", _hoisted_2$w, [
6825
6825
  vue.createElementVNode("span", _hoisted_3$n, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
6826
6826
  _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$g, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
6827
6827
  ])
@@ -6842,13 +6842,13 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
6842
6842
  };
6843
6843
  }
6844
6844
  });
6845
- const _hoisted_1$K = {
6845
+ const _hoisted_1$L = {
6846
6846
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
6847
6847
  "data-cy": "lupa-search-result-facet-term-values"
6848
6848
  };
6849
- const _hoisted_2$u = { key: 0 };
6849
+ const _hoisted_2$v = { key: 0 };
6850
6850
  const _hoisted_3$m = ["placeholder"];
6851
- const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
6851
+ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
6852
6852
  __name: "HierarchyFacet",
6853
6853
  props: {
6854
6854
  options: {},
@@ -6898,8 +6898,8 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
6898
6898
  showAll.value = true;
6899
6899
  };
6900
6900
  return (_ctx, _cache) => {
6901
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
6902
- isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, [
6901
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
6902
+ isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$v, [
6903
6903
  vue.withDirectives(vue.createElementVNode("input", {
6904
6904
  class: "lupa-term-filter",
6905
6905
  "data-cy": "lupa-term-filter",
@@ -6910,7 +6910,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
6910
6910
  ])
6911
6911
  ])) : vue.createCommentVNode("", true),
6912
6912
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
6913
- return vue.openBlock(), vue.createBlock(_sfc_main$O, {
6913
+ return vue.openBlock(), vue.createBlock(_sfc_main$P, {
6914
6914
  key: item.title,
6915
6915
  options: _ctx.options,
6916
6916
  item,
@@ -6930,20 +6930,20 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
6930
6930
  };
6931
6931
  }
6932
6932
  });
6933
- const _hoisted_1$J = { class: "lupa-facet-label-text" };
6934
- const _hoisted_2$t = {
6933
+ const _hoisted_1$K = { class: "lupa-facet-label-text" };
6934
+ const _hoisted_2$u = {
6935
6935
  key: 0,
6936
6936
  class: "lupa-facet-content",
6937
6937
  "data-cy": "lupa-facet-content"
6938
6938
  };
6939
6939
  const __default__$2 = {
6940
6940
  components: {
6941
- TermFacet: _sfc_main$Q,
6942
- StatsFacet: _sfc_main$P,
6943
- HierarchyFacet: _sfc_main$N
6941
+ TermFacet: _sfc_main$R,
6942
+ StatsFacet: _sfc_main$Q,
6943
+ HierarchyFacet: _sfc_main$O
6944
6944
  }
6945
6945
  };
6946
- const _sfc_main$M = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
6946
+ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
6947
6947
  __name: "FacetDisplay",
6948
6948
  props: {
6949
6949
  options: {},
@@ -7054,12 +7054,12 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
7054
7054
  "data-cy": "lupa-search-result-facet-label",
7055
7055
  onClick: toggleFacet
7056
7056
  }, [
7057
- vue.createElementVNode("div", _hoisted_1$J, vue.toDisplayString(facet.value.label), 1),
7057
+ vue.createElementVNode("div", _hoisted_1$K, vue.toDisplayString(facet.value.label), 1),
7058
7058
  vue.createElementVNode("div", {
7059
7059
  class: vue.normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
7060
7060
  }, null, 2)
7061
7061
  ], 2),
7062
- isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$t, [
7062
+ isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, [
7063
7063
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(facetType.value), {
7064
7064
  facet: facet.value,
7065
7065
  currentFilters: currentFilters.value[facet.value.key],
@@ -7077,12 +7077,12 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
7077
7077
  };
7078
7078
  }
7079
7079
  }));
7080
- const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
7081
- const _hoisted_2$s = {
7080
+ const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
7081
+ const _hoisted_2$t = {
7082
7082
  key: 0,
7083
7083
  class: "lupa-facets-title"
7084
7084
  };
7085
- const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
7085
+ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
7086
7086
  __name: "FacetList",
7087
7087
  props: {
7088
7088
  options: {},
@@ -7116,14 +7116,14 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
7116
7116
  };
7117
7117
  return (_ctx, _cache) => {
7118
7118
  var _a;
7119
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
7120
- _ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$s, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
7119
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
7120
+ _ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$t, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
7121
7121
  vue.createElementVNode("div", {
7122
7122
  class: vue.normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
7123
7123
  }, [
7124
7124
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayFacets.value, (facet) => {
7125
7125
  var _a2;
7126
- return vue.openBlock(), vue.createBlock(_sfc_main$M, {
7126
+ return vue.openBlock(), vue.createBlock(_sfc_main$N, {
7127
7127
  key: facet.key,
7128
7128
  facet,
7129
7129
  currentFilters: currentFiltersValue.value,
@@ -7138,8 +7138,8 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
7138
7138
  };
7139
7139
  }
7140
7140
  });
7141
- const _hoisted_1$H = { class: "lupa-search-result-facets" };
7142
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
7141
+ const _hoisted_1$I = { class: "lupa-search-result-facets" };
7142
+ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
7143
7143
  __name: "Facets",
7144
7144
  props: {
7145
7145
  options: {},
@@ -7185,8 +7185,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
7185
7185
  paramStore.removeParameters({ paramsToRemove: [param] });
7186
7186
  };
7187
7187
  return (_ctx, _cache) => {
7188
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
7189
- regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
7188
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
7189
+ regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$M, {
7190
7190
  key: 0,
7191
7191
  options: _ctx.options,
7192
7192
  facets: regularFacets.value,
@@ -7200,11 +7200,11 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
7200
7200
  };
7201
7201
  }
7202
7202
  });
7203
- const _hoisted_1$G = {
7203
+ const _hoisted_1$H = {
7204
7204
  id: "lupa-search-result-filters",
7205
7205
  class: "lupa-search-result-filters"
7206
7206
  };
7207
- const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
7207
+ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
7208
7208
  __name: "SearchResultsFilters",
7209
7209
  props: {
7210
7210
  options: {},
@@ -7233,19 +7233,19 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
7233
7233
  __expose({ fetch: fetch2 });
7234
7234
  return (_ctx, _cache) => {
7235
7235
  var _a;
7236
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
7237
- showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$T, {
7236
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
7237
+ showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$U, {
7238
7238
  key: 0,
7239
7239
  options: _ctx.options.currentFilters,
7240
7240
  expandable: (_a = _ctx.expandable) != null ? _a : false
7241
7241
  }, null, 8, ["options", "expandable"])) : vue.createCommentVNode("", true),
7242
- _ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$R, {
7242
+ _ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$S, {
7243
7243
  key: 1,
7244
7244
  options: _ctx.options.categories,
7245
7245
  ref_key: "categoryFilters",
7246
7246
  ref: categoryFilters
7247
7247
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
7248
- _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
7248
+ _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
7249
7249
  key: 2,
7250
7250
  options: _ctx.options.facets
7251
7251
  }, null, 8, ["options"])) : vue.createCommentVNode("", true)
@@ -7253,11 +7253,11 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
7253
7253
  };
7254
7254
  }
7255
7255
  });
7256
- const _hoisted_1$F = {
7256
+ const _hoisted_1$G = {
7257
7257
  key: 0,
7258
7258
  class: "lupa-mobile-filter-sidebar"
7259
7259
  };
7260
- const _hoisted_2$r = ["onClick"];
7260
+ const _hoisted_2$s = ["onClick"];
7261
7261
  const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
7262
7262
  const _hoisted_4$f = { class: "lupa-sidebar-top" };
7263
7263
  const _hoisted_5$8 = { class: "lupa-sidebar-title" };
@@ -7266,7 +7266,7 @@ const _hoisted_6$5 = {
7266
7266
  class: "lupa-sidebar-filter-count"
7267
7267
  };
7268
7268
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
7269
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
7269
+ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
7270
7270
  __name: "MobileFilterSidebar",
7271
7271
  props: {
7272
7272
  options: {}
@@ -7292,11 +7292,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
7292
7292
  searchResultStore.setSidebarState({ visible: false });
7293
7293
  };
7294
7294
  return (_ctx, _cache) => {
7295
- return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
7295
+ return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
7296
7296
  vue.createElementVNode("div", {
7297
7297
  class: "lupa-sidebar-close",
7298
7298
  onClick: vue.withModifiers(handleMobileToggle, ["stop"])
7299
- }, null, 8, _hoisted_2$r),
7299
+ }, null, 8, _hoisted_2$s),
7300
7300
  vue.createElementVNode("div", _hoisted_3$l, [
7301
7301
  vue.createElementVNode("div", _hoisted_4$f, [
7302
7302
  vue.createElementVNode("div", _hoisted_5$8, [
@@ -7309,7 +7309,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
7309
7309
  })
7310
7310
  ]),
7311
7311
  vue.createElementVNode("div", _hoisted_7$4, [
7312
- vue.createVNode(_sfc_main$J, {
7312
+ vue.createVNode(_sfc_main$K, {
7313
7313
  options: _ctx.options,
7314
7314
  expandable: isActiveFiltersExpanded.value
7315
7315
  }, null, 8, ["options", "expandable"])
@@ -7319,14 +7319,14 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
7319
7319
  };
7320
7320
  }
7321
7321
  });
7322
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
7323
- const _hoisted_2$q = ["href", "onClick"];
7322
+ const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
7323
+ const _hoisted_2$r = ["href", "onClick"];
7324
7324
  const _hoisted_3$k = {
7325
7325
  key: 1,
7326
7326
  class: "lupa-search-results-breadcrumb-text"
7327
7327
  };
7328
7328
  const _hoisted_4$e = { key: 2 };
7329
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
7329
+ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
7330
7330
  __name: "SearchResultsBreadcrumbs",
7331
7331
  props: {
7332
7332
  breadcrumbs: {}
@@ -7351,7 +7351,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
7351
7351
  handleRoutingEvent(link, event, hasEventRouting.value);
7352
7352
  };
7353
7353
  return (_ctx, _cache) => {
7354
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
7354
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
7355
7355
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(breadcrumbsValue.value, (breadcrumb, index) => {
7356
7356
  return vue.openBlock(), vue.createElementBlock("span", {
7357
7357
  class: "lupa-search-results-breadcrumb",
@@ -7365,7 +7365,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
7365
7365
  var _a;
7366
7366
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
7367
7367
  }
7368
- }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$k, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
7368
+ }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$k, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
7369
7369
  index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$e, " / ")) : vue.createCommentVNode("", true)
7370
7370
  ]);
7371
7371
  }), 128))
@@ -7373,11 +7373,11 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
7373
7373
  };
7374
7374
  }
7375
7375
  });
7376
- const _hoisted_1$D = {
7376
+ const _hoisted_1$E = {
7377
7377
  id: "lupa-search-result-filters",
7378
7378
  class: "lupa-search-result-filters"
7379
7379
  };
7380
- const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
7380
+ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
7381
7381
  __name: "FiltersTopDropdown",
7382
7382
  props: {
7383
7383
  options: {}
@@ -7385,8 +7385,8 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
7385
7385
  setup(__props) {
7386
7386
  return (_ctx, _cache) => {
7387
7387
  var _a;
7388
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
7389
- _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
7388
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
7389
+ _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
7390
7390
  key: 0,
7391
7391
  options: _ctx.options.facets,
7392
7392
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -7396,8 +7396,8 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
7396
7396
  };
7397
7397
  }
7398
7398
  });
7399
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
7400
- const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
7399
+ const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
7400
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
7401
7401
  __name: "SearchResultsLayoutSelection",
7402
7402
  setup(__props) {
7403
7403
  const searchResultStore = useSearchResultStore();
@@ -7408,7 +7408,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
7408
7408
  searchResultStore.setLayout(layout2);
7409
7409
  };
7410
7410
  return (_ctx, _cache) => {
7411
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
7411
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
7412
7412
  vue.createElementVNode("div", {
7413
7413
  class: vue.normalizeClass([
7414
7414
  "lupa-layout-selection-grid",
@@ -7430,11 +7430,11 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
7430
7430
  };
7431
7431
  }
7432
7432
  });
7433
- const _hoisted_1$B = {
7433
+ const _hoisted_1$C = {
7434
7434
  key: 0,
7435
7435
  class: "lupa-mobile-toggle-filter-count"
7436
7436
  };
7437
- const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
7437
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
7438
7438
  __name: "SearchResultsMobileToggle",
7439
7439
  props: {
7440
7440
  label: {},
@@ -7452,17 +7452,17 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
7452
7452
  onClick: handleMobileToggle
7453
7453
  }, [
7454
7454
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
7455
- _ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$B, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
7455
+ _ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$C, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
7456
7456
  ], 2);
7457
7457
  };
7458
7458
  }
7459
7459
  });
7460
- const _hoisted_1$A = {
7460
+ const _hoisted_1$B = {
7461
7461
  key: 0,
7462
7462
  id: "lupa-search-results-page-select",
7463
7463
  "data-cy": "lupa-search-results-page-select"
7464
7464
  };
7465
- const _hoisted_2$p = {
7465
+ const _hoisted_2$q = {
7466
7466
  key: 0,
7467
7467
  class: "lupa-page-number-separator"
7468
7468
  };
@@ -7471,7 +7471,7 @@ const _hoisted_4$d = {
7471
7471
  key: 0,
7472
7472
  class: "lupa-page-number-separator"
7473
7473
  };
7474
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
7474
+ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
7475
7475
  __name: "SearchResultsPageSelect",
7476
7476
  props: {
7477
7477
  lastPageLabel: {},
@@ -7533,7 +7533,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
7533
7533
  }
7534
7534
  };
7535
7535
  return (_ctx, _cache) => {
7536
- return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
7536
+ return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
7537
7537
  showBack.value ? (vue.openBlock(), vue.createElementBlock("div", {
7538
7538
  key: 0,
7539
7539
  class: vue.normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -7544,7 +7544,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
7544
7544
  class: "lupa-page-number lupa-page-number-first",
7545
7545
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
7546
7546
  }, " 1 "),
7547
- showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$p, "...")) : vue.createCommentVNode("", true)
7547
+ showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$q, "...")) : vue.createCommentVNode("", true)
7548
7548
  ], 64)) : vue.createCommentVNode("", true),
7549
7549
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pages.value, (page) => {
7550
7550
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -7577,13 +7577,13 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
7577
7577
  };
7578
7578
  }
7579
7579
  });
7580
- const _hoisted_1$z = {
7580
+ const _hoisted_1$A = {
7581
7581
  id: "lupa-search-results-page-size",
7582
7582
  "data-cy": "lupa-search-results-page-size"
7583
7583
  };
7584
- const _hoisted_2$o = { id: "lupa-select" };
7584
+ const _hoisted_2$p = { id: "lupa-select" };
7585
7585
  const _hoisted_3$i = { class: "lupa-select-label" };
7586
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
7586
+ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
7587
7587
  __name: "SearchResultsPageSize",
7588
7588
  props: {
7589
7589
  label: {},
@@ -7600,8 +7600,8 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
7600
7600
  });
7601
7601
  };
7602
7602
  return (_ctx, _cache) => {
7603
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
7604
- vue.createElementVNode("div", _hoisted_2$o, [
7603
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
7604
+ vue.createElementVNode("div", _hoisted_2$p, [
7605
7605
  vue.createElementVNode("label", _hoisted_3$i, vue.toDisplayString(_ctx.label), 1),
7606
7606
  vue.createElementVNode("select", {
7607
7607
  class: "lupa-select-dropdown",
@@ -7619,14 +7619,14 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
7619
7619
  };
7620
7620
  }
7621
7621
  });
7622
- const _hoisted_1$y = {
7622
+ const _hoisted_1$z = {
7623
7623
  id: "lupa-search-results-sort",
7624
7624
  class: "lupa-search-results-sort"
7625
7625
  };
7626
- const _hoisted_2$n = { id: "lupa-select" };
7626
+ const _hoisted_2$o = { id: "lupa-select" };
7627
7627
  const _hoisted_3$h = { class: "lupa-select-label" };
7628
7628
  const _hoisted_4$c = ["value"];
7629
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
7629
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
7630
7630
  __name: "SearchResultsSort",
7631
7631
  props: {
7632
7632
  options: {},
@@ -7673,8 +7673,8 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
7673
7673
  previousKey.value = selectedKey.value;
7674
7674
  };
7675
7675
  return (_ctx, _cache) => {
7676
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
7677
- vue.createElementVNode("div", _hoisted_2$n, [
7676
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
7677
+ vue.createElementVNode("div", _hoisted_2$o, [
7678
7678
  vue.createElementVNode("label", _hoisted_3$h, vue.toDisplayString(_ctx.options.label), 1),
7679
7679
  vue.withDirectives(vue.createElementVNode("select", {
7680
7680
  class: "lupa-select-dropdown",
@@ -7697,14 +7697,14 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
7697
7697
  };
7698
7698
  }
7699
7699
  });
7700
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
7701
- const _hoisted_2$m = { key: 1 };
7700
+ const _hoisted_1$y = { class: "lupa-toolbar-left" };
7701
+ const _hoisted_2$n = { key: 1 };
7702
7702
  const _hoisted_3$g = { key: 3 };
7703
7703
  const _hoisted_4$b = { key: 5 };
7704
7704
  const _hoisted_5$7 = { class: "lupa-toolbar-right" };
7705
7705
  const _hoisted_6$4 = { key: 1 };
7706
7706
  const _hoisted_7$3 = { key: 3 };
7707
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
7707
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
7708
7708
  __name: "SearchResultsToolbar",
7709
7709
  props: {
7710
7710
  options: {},
@@ -7803,15 +7803,15 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
7803
7803
  id: "lupa-search-results-toolbar",
7804
7804
  class: vue.normalizeClass({ "lupa-filter-no-results": !hasResults.value })
7805
7805
  }, [
7806
- vue.createElementVNode("div", _hoisted_1$x, [
7807
- showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, { key: 0 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$m)),
7808
- showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$W, {
7806
+ vue.createElementVNode("div", _hoisted_1$y, [
7807
+ showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$G, { key: 0 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$n)),
7808
+ showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
7809
7809
  key: 2,
7810
7810
  label: searchSummaryLabel.value,
7811
7811
  clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
7812
7812
  onClear: handleClearAll
7813
7813
  }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$g)),
7814
- displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$D, {
7814
+ displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
7815
7815
  key: 4,
7816
7816
  options: paginationOptions.value.pageSelect,
7817
7817
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -7819,16 +7819,16 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
7819
7819
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b))
7820
7820
  ]),
7821
7821
  vue.createElementVNode("div", _hoisted_5$7, [
7822
- vue.createVNode(_sfc_main$E, {
7822
+ vue.createVNode(_sfc_main$F, {
7823
7823
  label: optionsValue.value.labels.mobileFilterButton,
7824
7824
  "show-filter-count": showMobileFilterCount.value
7825
7825
  }, null, 8, ["label", "show-filter-count"]),
7826
- paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$C, {
7826
+ paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$D, {
7827
7827
  key: 0,
7828
7828
  options: paginationOptions.value.pageSize,
7829
7829
  label: paginationOptions.value.labels.pageSize
7830
7830
  }, null, 8, ["options", "label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$4)),
7831
- sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
7831
+ sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$C, {
7832
7832
  key: 2,
7833
7833
  options: sortOptions.value,
7834
7834
  callbacks: callbacks.value
@@ -7838,14 +7838,14 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
7838
7838
  };
7839
7839
  }
7840
7840
  });
7841
- const _hoisted_1$w = { class: "lupa-badge-title" };
7842
- const _hoisted_2$l = ["src"];
7841
+ const _hoisted_1$x = { class: "lupa-badge-title" };
7842
+ const _hoisted_2$m = ["src"];
7843
7843
  const _hoisted_3$f = { key: 1 };
7844
7844
  const _hoisted_4$a = {
7845
7845
  key: 0,
7846
7846
  class: "lupa-badge-full-text"
7847
7847
  };
7848
- const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
7848
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
7849
7849
  __name: "SearchResultGeneratedBadge",
7850
7850
  props: {
7851
7851
  options: {},
@@ -7878,11 +7878,11 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
7878
7878
  class: vue.normalizeClass(["lupa-dynamic-badge", customClassName.value]),
7879
7879
  style: vue.normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
7880
7880
  }, [
7881
- vue.createElementVNode("span", _hoisted_1$w, [
7881
+ vue.createElementVNode("span", _hoisted_1$x, [
7882
7882
  image.value ? (vue.openBlock(), vue.createElementBlock("img", {
7883
7883
  key: 0,
7884
7884
  src: image.value
7885
- }, null, 8, _hoisted_2$l)) : vue.createCommentVNode("", true),
7885
+ }, null, 8, _hoisted_2$m)) : vue.createCommentVNode("", true),
7886
7886
  hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$f, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
7887
7887
  ]),
7888
7888
  hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$a, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
@@ -7890,8 +7890,8 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
7890
7890
  };
7891
7891
  }
7892
7892
  });
7893
- const _hoisted_1$v = { class: "lupa-generated-badges" };
7894
- const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
7893
+ const _hoisted_1$w = { class: "lupa-generated-badges" };
7894
+ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
7895
7895
  __name: "SearchResultGeneratedBadges",
7896
7896
  props: {
7897
7897
  options: {}
@@ -7917,9 +7917,9 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
7917
7917
  })).filter((b) => Boolean(b.id));
7918
7918
  });
7919
7919
  return (_ctx, _cache) => {
7920
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
7920
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
7921
7921
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(badges.value, (badge) => {
7922
- return vue.openBlock(), vue.createBlock(_sfc_main$z, {
7922
+ return vue.openBlock(), vue.createBlock(_sfc_main$A, {
7923
7923
  key: badge.id,
7924
7924
  badge,
7925
7925
  options: _ctx.options
@@ -7929,8 +7929,8 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
7929
7929
  };
7930
7930
  }
7931
7931
  });
7932
- const _hoisted_1$u = ["innerHTML"];
7933
- const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
7932
+ const _hoisted_1$v = ["innerHTML"];
7933
+ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
7934
7934
  __name: "CustomBadge",
7935
7935
  props: {
7936
7936
  badge: {}
@@ -7949,12 +7949,12 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
7949
7949
  return vue.openBlock(), vue.createElementBlock("div", {
7950
7950
  class: vue.normalizeClass(className.value),
7951
7951
  innerHTML: text.value
7952
- }, null, 10, _hoisted_1$u);
7952
+ }, null, 10, _hoisted_1$v);
7953
7953
  };
7954
7954
  }
7955
7955
  });
7956
- const _hoisted_1$t = { class: "lupa-text-badges" };
7957
- const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
7956
+ const _hoisted_1$u = { class: "lupa-text-badges" };
7957
+ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
7958
7958
  __name: "TextBadge",
7959
7959
  props: {
7960
7960
  badge: {}
@@ -7969,7 +7969,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
7969
7969
  return badges.value.slice(0, props.badge.maxItems);
7970
7970
  });
7971
7971
  return (_ctx, _cache) => {
7972
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [
7972
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
7973
7973
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
7974
7974
  return vue.openBlock(), vue.createElementBlock("div", {
7975
7975
  class: "lupa-badge lupa-text-badge",
@@ -7980,9 +7980,9 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
7980
7980
  };
7981
7981
  }
7982
7982
  });
7983
- const _hoisted_1$s = { class: "lupa-image-badges" };
7984
- const _hoisted_2$k = ["src"];
7985
- const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
7983
+ const _hoisted_1$t = { class: "lupa-image-badges" };
7984
+ const _hoisted_2$l = ["src"];
7985
+ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
7986
7986
  __name: "ImageBadge",
7987
7987
  props: {
7988
7988
  badge: {}
@@ -8002,7 +8002,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
8002
8002
  return `${props.badge.rootImageUrl}${src}`;
8003
8003
  };
8004
8004
  return (_ctx, _cache) => {
8005
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
8005
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [
8006
8006
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
8007
8007
  return vue.openBlock(), vue.createElementBlock("div", {
8008
8008
  class: "lupa-badge lupa-image-badge",
@@ -8010,22 +8010,22 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
8010
8010
  }, [
8011
8011
  vue.createElementVNode("img", {
8012
8012
  src: getImageUrl(item)
8013
- }, null, 8, _hoisted_2$k)
8013
+ }, null, 8, _hoisted_2$l)
8014
8014
  ]);
8015
8015
  }), 128))
8016
8016
  ]);
8017
8017
  };
8018
8018
  }
8019
8019
  });
8020
- const _hoisted_1$r = { id: "lupa-search-results-badges" };
8020
+ const _hoisted_1$s = { id: "lupa-search-results-badges" };
8021
8021
  const __default__$1 = {
8022
8022
  components: {
8023
- CustomBadge: _sfc_main$x,
8024
- TextBadge: _sfc_main$w,
8025
- ImageBadge: _sfc_main$v
8023
+ CustomBadge: _sfc_main$y,
8024
+ TextBadge: _sfc_main$x,
8025
+ ImageBadge: _sfc_main$w
8026
8026
  }
8027
8027
  };
8028
- const _sfc_main$u = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
8028
+ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
8029
8029
  __name: "SearchResultsBadgeWrapper",
8030
8030
  props: {
8031
8031
  position: {},
@@ -8071,7 +8071,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
8071
8071
  }
8072
8072
  };
8073
8073
  return (_ctx, _cache) => {
8074
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
8074
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
8075
8075
  vue.createElementVNode("div", {
8076
8076
  id: "lupa-badges",
8077
8077
  class: vue.normalizeClass(anchorPosition.value)
@@ -8082,7 +8082,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
8082
8082
  badge
8083
8083
  }, null, 8, ["badge"]);
8084
8084
  }), 128)),
8085
- positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$y, {
8085
+ positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$z, {
8086
8086
  key: 0,
8087
8087
  options: _ctx.options
8088
8088
  }, null, 8, ["options"])) : vue.createCommentVNode("", true)
@@ -8091,7 +8091,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
8091
8091
  };
8092
8092
  }
8093
8093
  }));
8094
- const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
8094
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
8095
8095
  __name: "SearchResultsProductImage",
8096
8096
  props: {
8097
8097
  item: {},
@@ -8099,7 +8099,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
8099
8099
  },
8100
8100
  setup(__props) {
8101
8101
  return (_ctx, _cache) => {
8102
- return vue.openBlock(), vue.createBlock(_sfc_main$1a, {
8102
+ return vue.openBlock(), vue.createBlock(_sfc_main$1b, {
8103
8103
  item: _ctx.item,
8104
8104
  options: _ctx.options,
8105
8105
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -8108,14 +8108,14 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
8108
8108
  };
8109
8109
  }
8110
8110
  });
8111
- const _hoisted_1$q = ["innerHTML"];
8112
- const _hoisted_2$j = ["title"];
8111
+ const _hoisted_1$r = ["innerHTML"];
8112
+ const _hoisted_2$k = ["title"];
8113
8113
  const _hoisted_3$e = {
8114
8114
  key: 0,
8115
8115
  class: "lupa-search-results-product-title-text"
8116
8116
  };
8117
8117
  const _hoisted_4$9 = ["href"];
8118
- const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
8118
+ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
8119
8119
  __name: "SearchResultsProductTitle",
8120
8120
  props: {
8121
8121
  item: {},
@@ -8148,7 +8148,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
8148
8148
  class: "lupa-search-results-product-title",
8149
8149
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
8150
8150
  innerHTML: title.value
8151
- }, null, 12, _hoisted_1$q)) : (vue.openBlock(), vue.createElementBlock("div", {
8151
+ }, null, 12, _hoisted_1$r)) : (vue.openBlock(), vue.createElementBlock("div", {
8152
8152
  key: 1,
8153
8153
  class: "lupa-search-results-product-title",
8154
8154
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -8161,12 +8161,12 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
8161
8161
  class: "lupa-search-results-product-title-text lupa-title-link",
8162
8162
  onClick: handleNavigation
8163
8163
  }, vue.toDisplayString(title.value), 9, _hoisted_4$9)) : vue.createCommentVNode("", true)
8164
- ], 12, _hoisted_2$j));
8164
+ ], 12, _hoisted_2$k));
8165
8165
  };
8166
8166
  }
8167
8167
  });
8168
- const _hoisted_1$p = ["innerHTML"];
8169
- const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
8168
+ const _hoisted_1$q = ["innerHTML"];
8169
+ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
8170
8170
  __name: "SearchResultsProductDescription",
8171
8171
  props: {
8172
8172
  item: {},
@@ -8190,7 +8190,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
8190
8190
  class: "lupa-search-results-product-description",
8191
8191
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
8192
8192
  innerHTML: description.value
8193
- }, null, 12, _hoisted_1$p)) : (vue.openBlock(), vue.createElementBlock("div", {
8193
+ }, null, 12, _hoisted_1$q)) : (vue.openBlock(), vue.createElementBlock("div", {
8194
8194
  key: 1,
8195
8195
  class: "lupa-search-results-product-description",
8196
8196
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -8198,15 +8198,15 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
8198
8198
  };
8199
8199
  }
8200
8200
  });
8201
- const _hoisted_1$o = { id: "lupa-search-results-rating" };
8202
- const _hoisted_2$i = { class: "lupa-ratings" };
8201
+ const _hoisted_1$p = { id: "lupa-search-results-rating" };
8202
+ const _hoisted_2$j = { class: "lupa-ratings" };
8203
8203
  const _hoisted_3$d = { class: "lupa-ratings-base" };
8204
8204
  const _hoisted_4$8 = ["innerHTML"];
8205
8205
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
8206
8206
  const _hoisted_6$3 = ["innerHTML"];
8207
8207
  const _hoisted_7$2 = ["href"];
8208
8208
  const STAR_COUNT = 5;
8209
- const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
8209
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
8210
8210
  __name: "SearchResultsProductRating",
8211
8211
  props: {
8212
8212
  item: {},
@@ -8237,8 +8237,8 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
8237
8237
  return generateLink(props.options.links.ratingDetails, props.item);
8238
8238
  });
8239
8239
  return (_ctx, _cache) => {
8240
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
8241
- vue.createElementVNode("div", _hoisted_2$i, [
8240
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
8241
+ vue.createElementVNode("div", _hoisted_2$j, [
8242
8242
  vue.createElementVNode("div", _hoisted_3$d, [
8243
8243
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseStars.value, (star, index) => {
8244
8244
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -8271,11 +8271,11 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
8271
8271
  };
8272
8272
  }
8273
8273
  });
8274
- const _hoisted_1$n = {
8274
+ const _hoisted_1$o = {
8275
8275
  class: "lupa-search-results-product-regular-price",
8276
8276
  "data-cy": "lupa-search-results-product-regular-price"
8277
8277
  };
8278
- const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
8278
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
8279
8279
  __name: "SearchResultsProductRegularPrice",
8280
8280
  props: {
8281
8281
  item: {},
@@ -8293,15 +8293,15 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
8293
8293
  );
8294
8294
  });
8295
8295
  return (_ctx, _cache) => {
8296
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, vue.toDisplayString(price.value), 1);
8296
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, vue.toDisplayString(price.value), 1);
8297
8297
  };
8298
8298
  }
8299
8299
  });
8300
- const _hoisted_1$m = {
8300
+ const _hoisted_1$n = {
8301
8301
  class: "lupa-search-results-product-price",
8302
8302
  "data-cy": "lupa-search-results-product-price"
8303
8303
  };
8304
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
8304
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
8305
8305
  __name: "SearchResultsProductPrice",
8306
8306
  props: {
8307
8307
  item: {},
@@ -8319,16 +8319,16 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
8319
8319
  );
8320
8320
  });
8321
8321
  return (_ctx, _cache) => {
8322
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
8322
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
8323
8323
  vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
8324
8324
  ]);
8325
8325
  };
8326
8326
  }
8327
8327
  });
8328
- const _hoisted_1$l = { class: "lupa-search-results-add-to-cart-wrapper" };
8329
- const _hoisted_2$h = { class: "lupa-search-results-product-addtocart" };
8328
+ const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
8329
+ const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
8330
8330
  const _hoisted_3$c = ["onClick", "disabled"];
8331
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
8331
+ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
8332
8332
  __name: "SearchResultsProductAddToCart",
8333
8333
  props: {
8334
8334
  item: {},
@@ -8355,8 +8355,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
8355
8355
  loading.value = false;
8356
8356
  });
8357
8357
  return (_ctx, _cache) => {
8358
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
8359
- vue.createElementVNode("div", _hoisted_2$h, [
8358
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
8359
+ vue.createElementVNode("div", _hoisted_2$i, [
8360
8360
  vue.createElementVNode("button", {
8361
8361
  onClick: vue.withModifiers(handleClick, ["stop"]),
8362
8362
  class: vue.normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -8368,12 +8368,12 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
8368
8368
  };
8369
8369
  }
8370
8370
  });
8371
- const _hoisted_1$k = ["innerHTML"];
8372
- const _hoisted_2$g = { key: 0 };
8371
+ const _hoisted_1$l = ["innerHTML"];
8372
+ const _hoisted_2$h = { key: 0 };
8373
8373
  const _hoisted_3$b = { key: 1 };
8374
8374
  const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
8375
8375
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
8376
- const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
8376
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
8377
8377
  __name: "SearchResultsProductCustom",
8378
8378
  props: {
8379
8379
  item: {},
@@ -8411,11 +8411,11 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
8411
8411
  key: 0,
8412
8412
  class: className.value,
8413
8413
  innerHTML: text.value
8414
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
8414
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
8415
8415
  key: 1,
8416
8416
  class: className.value
8417
8417
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8418
- !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$g, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
8418
+ !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$h, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
8419
8419
  vue.createElementVNode("div", _hoisted_4$7, vue.toDisplayString(label.value), 1),
8420
8420
  vue.createElementVNode("div", _hoisted_5$5, vue.toDisplayString(text.value), 1)
8421
8421
  ]))
@@ -8423,8 +8423,8 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
8423
8423
  };
8424
8424
  }
8425
8425
  });
8426
- const _hoisted_1$j = ["innerHTML"];
8427
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
8426
+ const _hoisted_1$k = ["innerHTML"];
8427
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
8428
8428
  __name: "SearchResultsProductCustomHtmlElement",
8429
8429
  props: {
8430
8430
  item: {},
@@ -8448,15 +8448,15 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
8448
8448
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
8449
8449
  class: className.value,
8450
8450
  innerHTML: text.value
8451
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$j);
8451
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
8452
8452
  };
8453
8453
  }
8454
8454
  });
8455
- const _hoisted_1$i = { id: "lupa-search-results-rating" };
8456
- const _hoisted_2$f = ["innerHTML"];
8455
+ const _hoisted_1$j = { id: "lupa-search-results-rating" };
8456
+ const _hoisted_2$g = ["innerHTML"];
8457
8457
  const _hoisted_3$a = { class: "lupa-ratings" };
8458
8458
  const _hoisted_4$6 = ["href"];
8459
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
8459
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
8460
8460
  __name: "SearchResultsProductSingleStarRating",
8461
8461
  props: {
8462
8462
  item: {},
@@ -8484,11 +8484,11 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
8484
8484
  return RATING_STAR_HTML;
8485
8485
  });
8486
8486
  return (_ctx, _cache) => {
8487
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
8487
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
8488
8488
  vue.createElementVNode("div", {
8489
8489
  innerHTML: star.value,
8490
8490
  class: "lupa-rating lupa-rating-highlighted"
8491
- }, null, 8, _hoisted_2$f),
8491
+ }, null, 8, _hoisted_2$g),
8492
8492
  vue.createElementVNode("div", _hoisted_3$a, vue.toDisplayString(rating.value), 1),
8493
8493
  vue.createElementVNode("a", {
8494
8494
  href: ratingLink.value,
@@ -8500,19 +8500,19 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
8500
8500
  });
8501
8501
  const __default__ = {
8502
8502
  components: {
8503
- SearchResultsProductImage: _sfc_main$t,
8504
- SearchResultsProductTitle: _sfc_main$s,
8505
- SearchResultsProductDescription: _sfc_main$r,
8506
- SearchResultsProductRating: _sfc_main$q,
8507
- SearchResultsProductRegularPrice: _sfc_main$p,
8508
- SearchResultsProductPrice: _sfc_main$o,
8509
- SearchResultsProductAddToCart: _sfc_main$n,
8510
- SearchResultsProductCustom: _sfc_main$m,
8511
- SearchResultsProductCustomHtmlElement: _sfc_main$l,
8512
- SearchResultsProductSingleStarRating: _sfc_main$k
8503
+ SearchResultsProductImage: _sfc_main$u,
8504
+ SearchResultsProductTitle: _sfc_main$t,
8505
+ SearchResultsProductDescription: _sfc_main$s,
8506
+ SearchResultsProductRating: _sfc_main$r,
8507
+ SearchResultsProductRegularPrice: _sfc_main$q,
8508
+ SearchResultsProductPrice: _sfc_main$p,
8509
+ SearchResultsProductAddToCart: _sfc_main$o,
8510
+ SearchResultsProductCustom: _sfc_main$n,
8511
+ SearchResultsProductCustomHtmlElement: _sfc_main$m,
8512
+ SearchResultsProductSingleStarRating: _sfc_main$l
8513
8513
  }
8514
8514
  };
8515
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
8515
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
8516
8516
  __name: "SearchResultsProductCardElement",
8517
8517
  props: {
8518
8518
  item: {},
@@ -8582,13 +8582,13 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
8582
8582
  };
8583
8583
  }
8584
8584
  }));
8585
- const _hoisted_1$h = ["href"];
8586
- const _hoisted_2$e = {
8585
+ const _hoisted_1$i = ["href"];
8586
+ const _hoisted_2$f = {
8587
8587
  key: 0,
8588
8588
  class: "lupa-out-of-stock"
8589
8589
  };
8590
8590
  const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
8591
- const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8591
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
8592
8592
  __name: "SearchResultsProductCard",
8593
8593
  props: {
8594
8594
  product: {},
@@ -8733,7 +8733,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8733
8733
  class: vue.normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
8734
8734
  onClick: handleClick
8735
8735
  }, [
8736
- vue.createVNode(_sfc_main$u, { options: badgesOptions.value }, null, 8, ["options"]),
8736
+ vue.createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
8737
8737
  vue.createElementVNode("div", {
8738
8738
  class: vue.normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
8739
8739
  }, [
@@ -8743,7 +8743,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8743
8743
  onClick: handleNavigation
8744
8744
  }, [
8745
8745
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
8746
- return vue.openBlock(), vue.createBlock(_sfc_main$j, {
8746
+ return vue.openBlock(), vue.createBlock(_sfc_main$k, {
8747
8747
  class: "lupa-search-results-product-element",
8748
8748
  item: _ctx.product,
8749
8749
  element,
@@ -8753,16 +8753,16 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8753
8753
  link: link.value
8754
8754
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
8755
8755
  }), 128)),
8756
- vue.createVNode(_sfc_main$u, {
8756
+ vue.createVNode(_sfc_main$v, {
8757
8757
  options: badgesOptions.value,
8758
8758
  position: "image",
8759
8759
  class: "lupa-image-badges"
8760
8760
  }, null, 8, ["options"]),
8761
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$e, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
8762
- ], 8, _hoisted_1$h),
8761
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
8762
+ ], 8, _hoisted_1$i),
8763
8763
  vue.createElementVNode("div", _hoisted_3$9, [
8764
8764
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
8765
- return vue.openBlock(), vue.createBlock(_sfc_main$j, {
8765
+ return vue.openBlock(), vue.createBlock(_sfc_main$k, {
8766
8766
  class: "lupa-search-results-product-element",
8767
8767
  item: _ctx.product,
8768
8768
  element,
@@ -8780,7 +8780,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8780
8780
  class: vue.normalizeClass("lupa-element-group-" + group)
8781
8781
  }, [
8782
8782
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getGroupElements(group), (element) => {
8783
- return vue.openBlock(), vue.createBlock(_sfc_main$j, {
8783
+ return vue.openBlock(), vue.createBlock(_sfc_main$k, {
8784
8784
  class: "lupa-search-results-product-element",
8785
8785
  item: _ctx.product,
8786
8786
  element,
@@ -8798,11 +8798,11 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8798
8798
  };
8799
8799
  }
8800
8800
  });
8801
- const _hoisted_1$g = {
8801
+ const _hoisted_1$h = {
8802
8802
  id: "lupa-search-results-similar-queries",
8803
8803
  "data-cy": "lupa-search-results-similar-queries"
8804
8804
  };
8805
- const _hoisted_2$d = { class: "lupa-similar-queries-label" };
8805
+ const _hoisted_2$e = { class: "lupa-similar-queries-label" };
8806
8806
  const _hoisted_3$8 = {
8807
8807
  class: "lupa-similar-query-label",
8808
8808
  "data-cy": "lupa-similar-query-label"
@@ -8814,7 +8814,7 @@ const _hoisted_7$1 = {
8814
8814
  class: "lupa-products",
8815
8815
  "data-cy": "lupa-products"
8816
8816
  };
8817
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8817
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8818
8818
  __name: "SearchResultsSimilarQueries",
8819
8819
  props: {
8820
8820
  labels: {},
@@ -8844,8 +8844,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8844
8844
  paramsStore.goToResults({ searchText, facet });
8845
8845
  };
8846
8846
  return (_ctx, _cache) => {
8847
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
8848
- vue.createElementVNode("div", _hoisted_2$d, vue.toDisplayString(_ctx.labels.similarQueries), 1),
8847
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
8848
+ vue.createElementVNode("div", _hoisted_2$e, vue.toDisplayString(_ctx.labels.similarQueries), 1),
8849
8849
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQueries.value, (similarQuery, index) => {
8850
8850
  return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
8851
8851
  vue.createElementVNode("div", _hoisted_3$8, [
@@ -8864,7 +8864,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8864
8864
  ]),
8865
8865
  vue.createElementVNode("div", _hoisted_7$1, [
8866
8866
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQuery.items, (product, index2) => {
8867
- return vue.openBlock(), vue.createBlock(_sfc_main$i, {
8867
+ return vue.openBlock(), vue.createBlock(_sfc_main$j, {
8868
8868
  style: vue.normalizeStyle(_ctx.columnSize),
8869
8869
  key: getDocumentKey(index2, product),
8870
8870
  product,
@@ -8878,15 +8878,15 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8878
8878
  };
8879
8879
  }
8880
8880
  });
8881
- const _hoisted_1$f = {
8881
+ const _hoisted_1$g = {
8882
8882
  key: 0,
8883
8883
  class: "lupa-results-additional-panel"
8884
8884
  };
8885
- const _hoisted_2$c = {
8885
+ const _hoisted_2$d = {
8886
8886
  class: "lupa-results-additional-panel-items",
8887
8887
  "data-cy": "lupa-results-additional-panel-items"
8888
8888
  };
8889
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
8889
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8890
8890
  __name: "AdditionalPanel",
8891
8891
  props: {
8892
8892
  panel: {},
@@ -8958,10 +8958,10 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
8958
8958
  handleQueryChange();
8959
8959
  });
8960
8960
  return (_ctx, _cache) => {
8961
- return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
8962
- vue.createElementVNode("div", _hoisted_2$c, [
8961
+ return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
8962
+ vue.createElementVNode("div", _hoisted_2$d, [
8963
8963
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleItems.value, (item, index) => {
8964
- return vue.openBlock(), vue.createBlock(_sfc_main$i, {
8964
+ return vue.openBlock(), vue.createBlock(_sfc_main$j, {
8965
8965
  key: index,
8966
8966
  product: item,
8967
8967
  options: _ctx.panel,
@@ -8979,11 +8979,11 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
8979
8979
  };
8980
8980
  }
8981
8981
  });
8982
- const _hoisted_1$e = {
8982
+ const _hoisted_1$f = {
8983
8983
  key: 0,
8984
8984
  class: "lupa-results-additional-panels"
8985
8985
  };
8986
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
8986
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
8987
8987
  __name: "AdditionalPanels",
8988
8988
  props: {
8989
8989
  options: {},
@@ -9000,9 +9000,9 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
9000
9000
  return locationPanels.value.length > 0;
9001
9001
  });
9002
9002
  return (_ctx, _cache) => {
9003
- return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
9003
+ return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
9004
9004
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(locationPanels.value, (panel) => {
9005
- return vue.openBlock(), vue.createBlock(_sfc_main$g, {
9005
+ return vue.openBlock(), vue.createBlock(_sfc_main$h, {
9006
9006
  key: panel.queryKey,
9007
9007
  panel,
9008
9008
  options: _ctx.sdkOptions
@@ -9019,21 +9019,21 @@ const _export_sfc = (sfc, props) => {
9019
9019
  }
9020
9020
  return target;
9021
9021
  };
9022
- const _sfc_main$e = {};
9023
- const _hoisted_1$d = { class: "lupa-spinner-wrapper" };
9024
- const _hoisted_2$b = { class: "lupa-spinner" };
9022
+ const _sfc_main$f = {};
9023
+ const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
9024
+ const _hoisted_2$c = { class: "lupa-spinner" };
9025
9025
  function _sfc_render(_ctx, _cache) {
9026
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
9027
- vue.createElementVNode("div", _hoisted_2$b, [
9026
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
9027
+ vue.createElementVNode("div", _hoisted_2$c, [
9028
9028
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(12, (x) => {
9029
9029
  return vue.createElementVNode("div", { key: x });
9030
9030
  }), 64))
9031
9031
  ])
9032
9032
  ]);
9033
9033
  }
9034
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render]]);
9035
- const _hoisted_1$c = { id: "lupa-search-results-products" };
9036
- const _hoisted_2$a = {
9034
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
9035
+ const _hoisted_1$d = { id: "lupa-search-results-products" };
9036
+ const _hoisted_2$b = {
9037
9037
  class: "lupa-products",
9038
9038
  "data-cy": "lupa-products"
9039
9039
  };
@@ -9048,7 +9048,7 @@ const _hoisted_4$4 = {
9048
9048
  "data-cy": "lupa-no-results"
9049
9049
  };
9050
9050
  const _hoisted_5$3 = { key: 4 };
9051
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
9051
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
9052
9052
  __name: "SearchResultsProducts",
9053
9053
  props: {
9054
9054
  options: {},
@@ -9139,23 +9139,23 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
9139
9139
  };
9140
9140
  return (_ctx, _cache) => {
9141
9141
  var _a;
9142
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
9142
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
9143
9143
  vue.unref(loading) && !vue.unref(isMobileSidebarVisible) ? (vue.openBlock(), vue.createBlock(Spinner, {
9144
9144
  key: 0,
9145
9145
  class: "lupa-loader"
9146
9146
  })) : vue.createCommentVNode("", true),
9147
9147
  vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
9148
- showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
9148
+ showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
9149
9149
  key: 0,
9150
9150
  options: (_a = _ctx.options.filters) != null ? _a : {}
9151
9151
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
9152
- showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
9152
+ showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
9153
9153
  key: 1,
9154
9154
  class: "lupa-toolbar-mobile",
9155
9155
  options: _ctx.options,
9156
9156
  "pagination-location": "top"
9157
9157
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
9158
- currentFilterOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$T, {
9158
+ currentFilterOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$U, {
9159
9159
  key: 2,
9160
9160
  class: vue.normalizeClass(currentFiltersClass.value),
9161
9161
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -9163,18 +9163,18 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
9163
9163
  expandable: !desktopFiltersExpanded.value
9164
9164
  }, null, 8, ["class", "options", "expandable"])) : vue.createCommentVNode("", true)
9165
9165
  ], 64)) : vue.createCommentVNode("", true),
9166
- vue.createVNode(_sfc_main$f, {
9166
+ vue.createVNode(_sfc_main$g, {
9167
9167
  options: _ctx.options,
9168
9168
  location: "top",
9169
9169
  sdkOptions: _ctx.options.options
9170
9170
  }, null, 8, ["options", "sdkOptions"]),
9171
9171
  vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
9172
- vue.createVNode(_sfc_main$A, {
9172
+ vue.createVNode(_sfc_main$B, {
9173
9173
  class: "lupa-toolbar-top",
9174
9174
  options: _ctx.options,
9175
9175
  "pagination-location": "top"
9176
9176
  }, null, 8, ["options"]),
9177
- vue.createElementVNode("div", _hoisted_2$a, [
9177
+ vue.createElementVNode("div", _hoisted_2$b, [
9178
9178
  _ctx.$slots.productCard ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(vue.unref(searchResult).items, (product, index) => {
9179
9179
  return vue.renderSlot(_ctx.$slots, "productCard", {
9180
9180
  style: vue.normalizeStyle(columnSize.value),
@@ -9183,7 +9183,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
9183
9183
  options: productCardOptions.value
9184
9184
  });
9185
9185
  }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(searchResult).items, (product, index) => {
9186
- return vue.openBlock(), vue.createBlock(_sfc_main$i, {
9186
+ return vue.openBlock(), vue.createBlock(_sfc_main$j, {
9187
9187
  style: vue.normalizeStyle(columnSize.value),
9188
9188
  key: getProductKeyAction(index, product),
9189
9189
  product,
@@ -9199,12 +9199,12 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
9199
9199
  onClick: goToFirstPage
9200
9200
  }, vue.toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : vue.createCommentVNode("", true)
9201
9201
  ])) : vue.createCommentVNode("", true),
9202
- vue.createVNode(_sfc_main$A, {
9202
+ vue.createVNode(_sfc_main$B, {
9203
9203
  class: "lupa-toolbar-bottom",
9204
9204
  options: _ctx.options,
9205
9205
  "pagination-location": "bottom"
9206
9206
  }, null, 8, ["options"]),
9207
- vue.createVNode(_sfc_main$f, {
9207
+ vue.createVNode(_sfc_main$g, {
9208
9208
  options: _ctx.options,
9209
9209
  location: "bottom",
9210
9210
  sdkOptions: _ctx.options.options
@@ -9214,7 +9214,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
9214
9214
  vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(currentQueryText)), 1)
9215
9215
  ])) : vue.createCommentVNode("", true),
9216
9216
  hasSimilarQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$3, [
9217
- vue.createVNode(_sfc_main$h, {
9217
+ vue.createVNode(_sfc_main$i, {
9218
9218
  labels: similarQueriesLabels.value,
9219
9219
  columnSize: columnSize.value,
9220
9220
  productCardOptions: productCardOptions.value
@@ -9225,13 +9225,13 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
9225
9225
  };
9226
9226
  }
9227
9227
  });
9228
- const _hoisted_1$b = { class: "lupa-top-mobile-filter-wrapper" };
9229
- const _hoisted_2$9 = {
9228
+ const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
9229
+ const _hoisted_2$a = {
9230
9230
  key: 0,
9231
9231
  class: "lupa-category-back"
9232
9232
  };
9233
9233
  const _hoisted_3$6 = ["href"];
9234
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
9234
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
9235
9235
  __name: "CategoryTopFilters",
9236
9236
  props: {
9237
9237
  options: {}
@@ -9263,15 +9263,15 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
9263
9263
  return vue.openBlock(), vue.createElementBlock("div", {
9264
9264
  class: vue.normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
9265
9265
  }, [
9266
- vue.createElementVNode("div", _hoisted_1$b, [
9267
- hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
9266
+ vue.createElementVNode("div", _hoisted_1$c, [
9267
+ hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
9268
9268
  vue.createElementVNode("a", {
9269
9269
  "data-cy": "lupa-category-back",
9270
9270
  href: backUrlLink.value,
9271
9271
  onClick: handleNavigationBack
9272
9272
  }, vue.toDisplayString(backTitle.value), 9, _hoisted_3$6)
9273
9273
  ])) : vue.createCommentVNode("", true),
9274
- vue.createVNode(_sfc_main$A, {
9274
+ vue.createVNode(_sfc_main$B, {
9275
9275
  class: "lupa-toolbar-mobile",
9276
9276
  "pagination-location": "top",
9277
9277
  options: _ctx.options
@@ -9281,18 +9281,18 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
9281
9281
  };
9282
9282
  }
9283
9283
  });
9284
- const _hoisted_1$a = {
9284
+ const _hoisted_1$b = {
9285
9285
  key: 0,
9286
9286
  class: "lupa-container-title-summary-mobile"
9287
9287
  };
9288
- const _hoisted_2$8 = {
9288
+ const _hoisted_2$9 = {
9289
9289
  key: 4,
9290
9290
  id: "lupa-search-results",
9291
9291
  class: "top-layout-wrapper"
9292
9292
  };
9293
9293
  const _hoisted_3$5 = { class: "search-content" };
9294
9294
  const _hoisted_4$3 = { id: "lupa-search-results" };
9295
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
9295
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
9296
9296
  __name: "SearchResults",
9297
9297
  props: {
9298
9298
  options: {},
@@ -9481,40 +9481,40 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
9481
9481
  return vue.openBlock(), vue.createElementBlock("div", {
9482
9482
  class: vue.normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !vue.unref(hasResults) }])
9483
9483
  }, [
9484
- _ctx.isContainer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
9485
- vue.createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9486
- vue.createVNode(_sfc_main$V, {
9484
+ _ctx.isContainer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
9485
+ vue.createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9486
+ vue.createVNode(_sfc_main$W, {
9487
9487
  "show-summary": true,
9488
9488
  options: _ctx.options,
9489
9489
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
9490
9490
  }, null, 8, ["options", "is-product-list"])
9491
9491
  ])) : vue.createCommentVNode("", true),
9492
- isTitleResultTopPosition.value ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
9492
+ isTitleResultTopPosition.value ? (vue.openBlock(), vue.createBlock(_sfc_main$d, {
9493
9493
  key: 1,
9494
9494
  options: _ctx.options
9495
9495
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
9496
- _ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
9496
+ _ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$J, {
9497
9497
  key: 2,
9498
9498
  options: _ctx.options.filters
9499
9499
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
9500
- vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
9500
+ vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
9501
9501
  key: 3,
9502
9502
  breadcrumbs: _ctx.options.breadcrumbs
9503
9503
  }, null, 8, ["breadcrumbs"])) : vue.createCommentVNode("", true),
9504
- isTitleResultTopPosition.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
9505
- showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$J, {
9504
+ isTitleResultTopPosition.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
9505
+ showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
9506
9506
  key: 0,
9507
9507
  options: (_b = _ctx.options.filters) != null ? _b : {},
9508
9508
  ref_key: "searchResultsFilters",
9509
9509
  ref: searchResultsFilters
9510
9510
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
9511
9511
  vue.createElementVNode("div", _hoisted_3$5, [
9512
- vue.createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9513
- vue.createVNode(_sfc_main$V, {
9512
+ vue.createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9513
+ vue.createVNode(_sfc_main$W, {
9514
9514
  options: _ctx.options,
9515
9515
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
9516
9516
  }, null, 8, ["options", "is-product-list"]),
9517
- vue.createVNode(_sfc_main$d, {
9517
+ vue.createVNode(_sfc_main$e, {
9518
9518
  options: _ctx.options,
9519
9519
  ssr: ssrEnabled.value
9520
9520
  }, {
@@ -9525,19 +9525,19 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
9525
9525
  }, 8, ["options", "ssr"])
9526
9526
  ])
9527
9527
  ])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 5 }, [
9528
- vue.createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9529
- vue.createVNode(_sfc_main$V, {
9528
+ vue.createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
9529
+ vue.createVNode(_sfc_main$W, {
9530
9530
  options: _ctx.options,
9531
9531
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
9532
9532
  }, null, 8, ["options", "is-product-list"]),
9533
9533
  vue.createElementVNode("div", _hoisted_4$3, [
9534
- showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$J, {
9534
+ showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
9535
9535
  key: 0,
9536
9536
  options: (_e = _ctx.options.filters) != null ? _e : {},
9537
9537
  ref_key: "searchResultsFilters",
9538
9538
  ref: searchResultsFilters
9539
9539
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
9540
- vue.createVNode(_sfc_main$d, {
9540
+ vue.createVNode(_sfc_main$e, {
9541
9541
  options: _ctx.options,
9542
9542
  ssr: ssrEnabled.value
9543
9543
  }, vue.createSlots({
@@ -9560,12 +9560,12 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
9560
9560
  };
9561
9561
  }
9562
9562
  });
9563
- const _hoisted_1$9 = {
9563
+ const _hoisted_1$a = {
9564
9564
  key: 0,
9565
9565
  class: "lupa-category-overview"
9566
9566
  };
9567
- const _hoisted_2$7 = ["innerHTML"];
9568
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
9567
+ const _hoisted_2$8 = ["innerHTML"];
9568
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
9569
9569
  __name: "CategoryDescription",
9570
9570
  props: {
9571
9571
  options: {}
@@ -9581,16 +9581,16 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
9581
9581
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
9582
9582
  });
9583
9583
  return (_ctx, _cache) => {
9584
- return overviewVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
9584
+ return overviewVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
9585
9585
  vue.createElementVNode("div", {
9586
9586
  class: "lupa-category-description",
9587
9587
  innerHTML: description.value
9588
- }, null, 8, _hoisted_2$7)
9588
+ }, null, 8, _hoisted_2$8)
9589
9589
  ])) : vue.createCommentVNode("", true);
9590
9590
  };
9591
9591
  }
9592
9592
  });
9593
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
9593
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
9594
9594
  __name: "ProductList",
9595
9595
  props: {
9596
9596
  options: {}
@@ -9612,7 +9612,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
9612
9612
  __expose({ fetch: fetch2 });
9613
9613
  return (_ctx, _cache) => {
9614
9614
  return vue.openBlock(), vue.createElementBlock("div", null, [
9615
- vue.createVNode(_sfc_main$b, {
9615
+ vue.createVNode(_sfc_main$c, {
9616
9616
  options: componentOptions.value,
9617
9617
  "initial-filters": _ctx.options.initialFilters,
9618
9618
  "is-product-list": true,
@@ -9620,7 +9620,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
9620
9620
  ref: searchResults
9621
9621
  }, {
9622
9622
  default: vue.withCtx(() => [
9623
- vue.createVNode(_sfc_main$a, { options: _ctx.options }, null, 8, ["options"])
9623
+ vue.createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
9624
9624
  ]),
9625
9625
  _: 1
9626
9626
  }, 8, ["options", "initial-filters"])
@@ -15111,9 +15111,9 @@ lodash.exports;
15111
15111
  }).call(commonjsGlobal);
15112
15112
  })(lodash, lodash.exports);
15113
15113
  var lodashExports = lodash.exports;
15114
- const _hoisted_1$8 = ["onClick"];
15115
- const _hoisted_2$6 = { class: "lupa-search-box-container" };
15116
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
15114
+ const _hoisted_1$9 = ["onClick"];
15115
+ const _hoisted_2$7 = { class: "lupa-search-box-container" };
15116
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
15117
15117
  __name: "SearchContainer",
15118
15118
  props: {
15119
15119
  options: {}
@@ -15158,8 +15158,8 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
15158
15158
  class: "lupa-search-container",
15159
15159
  onClick: vue.withModifiers(innerClick, ["stop"])
15160
15160
  }, [
15161
- vue.createElementVNode("div", _hoisted_2$6, [
15162
- vue.createVNode(_sfc_main$Y, {
15161
+ vue.createElementVNode("div", _hoisted_2$7, [
15162
+ vue.createVNode(_sfc_main$Z, {
15163
15163
  options: fullSearchBoxOptions.value,
15164
15164
  "is-search-container": true,
15165
15165
  ref_key: "searchBox",
@@ -15167,13 +15167,13 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
15167
15167
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
15168
15168
  }, null, 8, ["options"])
15169
15169
  ]),
15170
- vue.createVNode(_sfc_main$b, {
15170
+ vue.createVNode(_sfc_main$c, {
15171
15171
  options: fullSearchResultsOptions.value,
15172
15172
  "is-container": true,
15173
15173
  ref_key: "searchResults",
15174
15174
  ref: searchResults
15175
15175
  }, null, 8, ["options"])
15176
- ], 8, _hoisted_1$8)
15176
+ ], 8, _hoisted_1$9)
15177
15177
  ]);
15178
15178
  };
15179
15179
  }
@@ -15877,13 +15877,13 @@ var Slide = vue.defineComponent({
15877
15877
  }
15878
15878
  });
15879
15879
  const carousel = "";
15880
- const _hoisted_1$7 = { class: "lupa-search-product-recommendations-wrapper" };
15881
- const _hoisted_2$5 = {
15880
+ const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
15881
+ const _hoisted_2$6 = {
15882
15882
  key: 0,
15883
15883
  class: "lupa-recommended-products",
15884
15884
  "data-cy": "lupa-recommended-products"
15885
15885
  };
15886
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
15886
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
15887
15887
  __name: "Recommendations",
15888
15888
  props: {
15889
15889
  options: {}
@@ -15969,8 +15969,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
15969
15969
  });
15970
15970
  __expose({ fetch: fetch2 });
15971
15971
  return (_ctx, _cache) => {
15972
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
15973
- !loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, [
15972
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
15973
+ !loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
15974
15974
  vue.createVNode(vue.unref(Carousel), vue.mergeProps(carouselOptions.value, { "wrap-around": true }), {
15975
15975
  addons: vue.withCtx(() => [
15976
15976
  vue.createVNode(vue.unref(Navigation))
@@ -15981,7 +15981,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
15981
15981
  key: getProductKeyAction(index, product)
15982
15982
  }, {
15983
15983
  default: vue.withCtx(() => [
15984
- vue.createVNode(_sfc_main$i, {
15984
+ vue.createVNode(_sfc_main$j, {
15985
15985
  product,
15986
15986
  options: _ctx.options,
15987
15987
  "click-tracking-settings": clickTrackingSettings.value
@@ -15998,19 +15998,19 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
15998
15998
  };
15999
15999
  }
16000
16000
  });
16001
- const _hoisted_1$6 = { class: "lupa-chat-spinner" };
16002
- const _hoisted_2$4 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
16001
+ const _hoisted_1$7 = { class: "lupa-chat-spinner" };
16002
+ const _hoisted_2$5 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
16003
16003
  const _hoisted_3$4 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
16004
16004
  const _hoisted_4$2 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
16005
16005
  const _hoisted_5$2 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
16006
16006
  const _hoisted_6$1 = [
16007
- _hoisted_2$4,
16007
+ _hoisted_2$5,
16008
16008
  _hoisted_3$4,
16009
16009
  _hoisted_4$2,
16010
16010
  _hoisted_5$2
16011
16011
  ];
16012
16012
  const _hoisted_7 = { class: "lupa-chat-spinner-message" };
16013
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
16013
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
16014
16014
  __name: "ChatSpinner",
16015
16015
  props: {
16016
16016
  small: { type: Boolean },
@@ -16018,7 +16018,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
16018
16018
  },
16019
16019
  setup(__props) {
16020
16020
  return (_ctx, _cache) => {
16021
- return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$6, [
16021
+ return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$7, [
16022
16022
  vue.createElementVNode("div", {
16023
16023
  class: vue.normalizeClass([{ small: _ctx.small }, "lds-ring"])
16024
16024
  }, _hoisted_6$1, 2),
@@ -16027,13 +16027,13 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
16027
16027
  };
16028
16028
  }
16029
16029
  });
16030
- const _hoisted_1$5 = { class: "lupa-chat-input-container" };
16031
- const _hoisted_2$3 = { id: "lupa-search-box-input" };
16030
+ const _hoisted_1$6 = { class: "lupa-chat-input-container" };
16031
+ const _hoisted_2$4 = { id: "lupa-search-box-input" };
16032
16032
  const _hoisted_3$3 = {
16033
16033
  key: 0,
16034
16034
  class: "lupa-chat-form-submit"
16035
16035
  };
16036
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
16036
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
16037
16037
  __name: "ChatInput",
16038
16038
  props: {
16039
16039
  disabled: { type: Boolean }
@@ -16046,13 +16046,13 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
16046
16046
  inputValue.value = "";
16047
16047
  };
16048
16048
  return (_ctx, _cache) => {
16049
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
16049
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
16050
16050
  vue.createElementVNode("form", {
16051
16051
  action: "javascript:void(0);",
16052
16052
  class: "chat-input-form",
16053
16053
  onSubmit: submit
16054
16054
  }, [
16055
- vue.createElementVNode("div", _hoisted_2$3, [
16055
+ vue.createElementVNode("div", _hoisted_2$4, [
16056
16056
  vue.withDirectives(vue.createElementVNode("input", {
16057
16057
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
16058
16058
  ref: "mainInput",
@@ -16065,7 +16065,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
16065
16065
  [vue.vModelText, inputValue.value]
16066
16066
  ])
16067
16067
  ]),
16068
- !_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (vue.openBlock(), vue.createBlock(_sfc_main$6, {
16068
+ !_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (vue.openBlock(), vue.createBlock(_sfc_main$7, {
16069
16069
  key: 1,
16070
16070
  small: true
16071
16071
  }))
@@ -16194,15 +16194,36 @@ const prepareChatHistory = (chatLog) => {
16194
16194
  }
16195
16195
  return history;
16196
16196
  };
16197
+ const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
16198
+ var _a;
16199
+ fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps(__spreadValues({}, defaultConfig), {
16200
+ body: JSON.stringify({ initialQuery, messageHistory }),
16201
+ headers: __spreadValues(__spreadValues({}, headers), (_a = options.customHeaders) != null ? _a : {})
16202
+ })).then((response) => {
16203
+ const reader = response.body.getReader();
16204
+ return reader.read().then(function processStream({ done, value }) {
16205
+ if (done) {
16206
+ return "";
16207
+ }
16208
+ const result = new TextDecoder("utf-8").decode(value);
16209
+ const sanitezedResult = result.replace("\n", '<div class="br"></div>');
16210
+ onChunkReceived(sanitezedResult);
16211
+ return reader.read().then(processStream);
16212
+ });
16213
+ }).catch((error) => {
16214
+ console.error(`Fetch Error: ${error}`);
16215
+ });
16216
+ };
16197
16217
  const ChatService = {
16198
16218
  suggestSearchChatPhrases,
16199
16219
  suggestPhraseAlternatives,
16200
16220
  suggestSimplifiedPhrases,
16201
16221
  suggestBestProductMatches,
16202
- prepareChatHistory
16222
+ prepareChatHistory,
16223
+ getTextResponseChunkStream
16203
16224
  };
16204
- const _hoisted_1$4 = { class: "lupa-chat-results" };
16205
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
16225
+ const _hoisted_1$5 = { class: "lupa-chat-results" };
16226
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
16206
16227
  __name: "ChatPhraseProductsList",
16207
16228
  props: {
16208
16229
  options: {},
@@ -16214,9 +16235,9 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
16214
16235
  return getProductKey(`${index}`, product, props.options.idKey);
16215
16236
  };
16216
16237
  return (_ctx, _cache) => {
16217
- return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$4, [
16238
+ return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$5, [
16218
16239
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.searchResults, (product, index) => {
16219
- return vue.openBlock(), vue.createBlock(_sfc_main$i, {
16240
+ return vue.openBlock(), vue.createBlock(_sfc_main$j, {
16220
16241
  class: "lupa-chat-product-card",
16221
16242
  key: getProductKeyAction(index, product),
16222
16243
  product,
@@ -16227,8 +16248,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
16227
16248
  };
16228
16249
  }
16229
16250
  });
16230
- const _hoisted_1$3 = { class: "lupa-chat-content-entry-phrase" };
16231
- const _hoisted_2$2 = { class: "lupa-chat-phrase-title" };
16251
+ const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
16252
+ const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
16232
16253
  const _hoisted_3$2 = {
16233
16254
  key: 0,
16234
16255
  class: "alert"
@@ -16241,7 +16262,7 @@ const _hoisted_5$1 = /* @__PURE__ */ vue.createElementVNode("p", null, "We found
16241
16262
  const _hoisted_6 = [
16242
16263
  _hoisted_5$1
16243
16264
  ];
16244
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
16265
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
16245
16266
  __name: "ChatContentEntryPhrase",
16246
16267
  props: {
16247
16268
  options: {},
@@ -16321,20 +16342,20 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
16321
16342
  return phrases != null ? phrases : [];
16322
16343
  });
16323
16344
  return (_ctx, _cache) => {
16324
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
16325
- vue.createElementVNode("div", _hoisted_2$2, [
16345
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
16346
+ vue.createElementVNode("div", _hoisted_2$3, [
16326
16347
  vue.createElementVNode("h3", null, vue.toDisplayString(displayPhrase.value), 1),
16327
16348
  vue.createElementVNode("sub", null, vue.toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
16328
16349
  usedPartialResults.value ? (vue.openBlock(), vue.createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : vue.createCommentVNode("", true)
16329
16350
  ]),
16330
16351
  vue.createElementVNode("div", null, [
16331
- vue.createVNode(_sfc_main$4, {
16352
+ vue.createVNode(_sfc_main$5, {
16332
16353
  "search-results": searchResults.value,
16333
16354
  options: _ctx.options.displayOptions
16334
16355
  }, null, 8, ["search-results", "options"])
16335
16356
  ]),
16336
16357
  !loading.value && !searchResults.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, _hoisted_6)) : vue.createCommentVNode("", true),
16337
- loading.value ? (vue.openBlock(), vue.createBlock(_sfc_main$6, {
16358
+ loading.value ? (vue.openBlock(), vue.createBlock(_sfc_main$7, {
16338
16359
  key: 1,
16339
16360
  message: currentAction.value
16340
16361
  }, null, 8, ["message"])) : vue.createCommentVNode("", true)
@@ -16342,10 +16363,10 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
16342
16363
  };
16343
16364
  }
16344
16365
  });
16345
- const _hoisted_1$2 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
16346
- const _hoisted_2$1 = /* @__PURE__ */ vue.createElementVNode("h3", null, "Best matches", -1);
16366
+ const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
16367
+ const _hoisted_2$2 = /* @__PURE__ */ vue.createElementVNode("h3", null, "Best matches", -1);
16347
16368
  const _hoisted_3$1 = { key: 0 };
16348
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
16369
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
16349
16370
  __name: "ChatContentEntry",
16350
16371
  props: {
16351
16372
  entry: {},
@@ -16410,7 +16431,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
16410
16431
  key: phrase,
16411
16432
  class: "lupa-chat-content-entry"
16412
16433
  }, [
16413
- phrase ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
16434
+ phrase ? (vue.openBlock(), vue.createBlock(_sfc_main$4, {
16414
16435
  key: 0,
16415
16436
  phrase,
16416
16437
  options: _ctx.options,
@@ -16419,14 +16440,14 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
16419
16440
  ]);
16420
16441
  }), 128))
16421
16442
  ]),
16422
- vue.createElementVNode("section", _hoisted_1$2, [
16423
- _hoisted_2$1,
16443
+ vue.createElementVNode("section", _hoisted_1$3, [
16444
+ _hoisted_2$2,
16424
16445
  explanation.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$1, vue.toDisplayString(explanation.value), 1)) : vue.createCommentVNode("", true),
16425
- loading.value ? (vue.openBlock(), vue.createBlock(_sfc_main$6, {
16446
+ loading.value ? (vue.openBlock(), vue.createBlock(_sfc_main$7, {
16426
16447
  key: 1,
16427
16448
  message: "Selecting the best matches for you. This might take a few seconds."
16428
16449
  })) : vue.createCommentVNode("", true),
16429
- bestMatches.value.length ? (vue.openBlock(), vue.createBlock(_sfc_main$4, {
16450
+ bestMatches.value.length ? (vue.openBlock(), vue.createBlock(_sfc_main$5, {
16430
16451
  key: 2,
16431
16452
  "search-results": bestMatchProducts.value,
16432
16453
  options: _ctx.options.displayOptions
@@ -16436,6 +16457,39 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
16436
16457
  };
16437
16458
  }
16438
16459
  });
16460
+ const _hoisted_1$2 = { class: "lupa-chat-text-response" };
16461
+ const _hoisted_2$1 = ["innerHTML"];
16462
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
16463
+ __name: "ChatTextEntry",
16464
+ props: {
16465
+ content: {},
16466
+ options: {},
16467
+ history: {}
16468
+ },
16469
+ setup(__props) {
16470
+ const props = __props;
16471
+ const content = vue.ref("");
16472
+ const processChunk = (chunk) => {
16473
+ content.value += chunk;
16474
+ };
16475
+ vue.onMounted(() => {
16476
+ var _a;
16477
+ ChatService.getTextResponseChunkStream(
16478
+ props.options.sdkOptions,
16479
+ {
16480
+ initialQuery: props.content,
16481
+ messageHistory: (_a = props.history) != null ? _a : []
16482
+ },
16483
+ processChunk
16484
+ );
16485
+ });
16486
+ return (_ctx, _cache) => {
16487
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
16488
+ vue.createElementVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
16489
+ ]);
16490
+ };
16491
+ }
16492
+ });
16439
16493
  const _hoisted_1$1 = { class: "lupa-chat-section-title" };
16440
16494
  const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
16441
16495
  __name: "ChatContentList",
@@ -16453,16 +16507,23 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
16453
16507
  return vue.openBlock(), vue.createElementBlock("div", null, [
16454
16508
  vue.createElementVNode("ul", null, [
16455
16509
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.content, (entry) => {
16510
+ var _a;
16456
16511
  return vue.openBlock(), vue.createElementBlock("li", {
16457
16512
  key: entry.key
16458
16513
  }, [
16459
16514
  vue.createElementVNode("h4", _hoisted_1$1, vue.toDisplayString(entry.userInput), 1),
16460
16515
  vue.createVNode(_sfc_main$2, {
16516
+ content: entry.userInput,
16517
+ history: _ctx.history,
16518
+ options: _ctx.options
16519
+ }, null, 8, ["content", "history", "options"]),
16520
+ ((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
16521
+ key: 0,
16461
16522
  entry,
16462
16523
  options: _ctx.options,
16463
16524
  history: _ctx.history,
16464
16525
  onLoaded: (items) => bestItemsLoaded(items, entry.key)
16465
- }, null, 8, ["entry", "options", "history", "onLoaded"])
16526
+ }, null, 8, ["entry", "options", "history", "onLoaded"])) : vue.createCommentVNode("", true)
16466
16527
  ]);
16467
16528
  }), 128))
16468
16529
  ])
@@ -16501,6 +16562,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16501
16562
  }
16502
16563
  try {
16503
16564
  loading.value = true;
16565
+ const key = Date.now().toString();
16566
+ let chatLog = {
16567
+ key,
16568
+ userInput: input,
16569
+ allPhrases: [],
16570
+ suggestedPhrases: []
16571
+ };
16572
+ chatContent.value.push(chatLog);
16504
16573
  const request = {
16505
16574
  userPrompt: input,
16506
16575
  messageHistory: (_a = history.value) != null ? _a : [],
@@ -16515,13 +16584,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16515
16584
  return;
16516
16585
  }
16517
16586
  const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
16518
- const chatLog = {
16519
- key: Date.now().toString(),
16520
- userInput: input,
16521
- allPhrases: [...validPhrases],
16522
- suggestedPhrases: phrases
16523
- };
16524
- chatContent.value.push(chatLog);
16587
+ chatContent.value = chatContent.value.map(
16588
+ (c2) => c2.key === key ? __spreadProps(__spreadValues({}, c2), {
16589
+ allPhrases: [...validPhrases],
16590
+ suggestedPhrases: phrases
16591
+ }) : c2
16592
+ );
16525
16593
  } finally {
16526
16594
  loading.value = false;
16527
16595
  }
@@ -16542,10 +16610,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16542
16610
  }, null, 8, ["content", "options", "history"])
16543
16611
  ])) : vue.createCommentVNode("", true),
16544
16612
  loading.value ? (vue.openBlock(), vue.createElementBlock("section", _hoisted_4, [
16545
- vue.createVNode(_sfc_main$6, { message: "Loading initial recommendations... This might take up to 20s" })
16613
+ vue.createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
16546
16614
  ])) : vue.createCommentVNode("", true),
16547
16615
  vue.createElementVNode("section", _hoisted_5, [
16548
- vue.createVNode(_sfc_main$5, {
16616
+ vue.createVNode(_sfc_main$6, {
16549
16617
  onSubmit: submitChatInput,
16550
16618
  disabled: loading.value
16551
16619
  }, null, 8, ["disabled"])
@@ -16579,12 +16647,12 @@ exports.BadgeType = BadgeType;
16579
16647
  exports.ChatContainer = _sfc_main;
16580
16648
  exports.DocumentElementType = DocumentElementType;
16581
16649
  exports.LupaSearch = LupaSearch;
16582
- exports.ProductList = _sfc_main$9;
16583
- exports.Recommendations = _sfc_main$7;
16584
- exports.SearchBox = _sfc_main$Y;
16650
+ exports.ProductList = _sfc_main$a;
16651
+ exports.Recommendations = _sfc_main$8;
16652
+ exports.SearchBox = _sfc_main$Z;
16585
16653
  exports.SearchBoxPanelType = SearchBoxPanelType;
16586
- exports.SearchContainer = _sfc_main$8;
16587
- exports.SearchResults = _sfc_main$b;
16654
+ exports.SearchContainer = _sfc_main$9;
16655
+ exports.SearchResults = _sfc_main$c;
16588
16656
  exports.getInitialSearchResults = getInitialSearchResults;
16589
16657
  exports.initPinia = initPinia;
16590
16658
  exports.setupTracking = setupTracking;